@nadohq/mobile-client 0.65.0 → 0.67.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (211) hide show
  1. package/README.md +202 -10
  2. package/dist/{MobileClient-CfVZXTcz.cjs → MobileClient-vuI5wlB_.cjs} +303 -21
  3. package/dist/MobileClient-vuI5wlB_.cjs.map +1 -0
  4. package/dist/MobileClient.cjs +1 -1
  5. package/dist/MobileClient.d.cts +175 -20
  6. package/dist/MobileClient.d.cts.map +1 -1
  7. package/dist/MobileClient.d.ts +175 -20
  8. package/dist/MobileClient.d.ts.map +1 -1
  9. package/dist/MobileClient.js +303 -21
  10. package/dist/MobileClient.js.map +1 -1
  11. package/dist/{MobileServerFailureError-BZVwlsMg.d.ts → MobileServerFailureError-BeCCNShj.d.cts} +2 -3
  12. package/dist/MobileServerFailureError-BeCCNShj.d.cts.map +1 -0
  13. package/dist/{MobileServerFailureError-CbtK8kD4.d.cts → MobileServerFailureError-hHv28weI.d.ts} +2 -3
  14. package/dist/MobileServerFailureError-hHv28weI.d.ts.map +1 -0
  15. package/dist/MobileUnsupportedNotificationRouteError-DpiNBvvY.d.cts +15 -0
  16. package/dist/MobileUnsupportedNotificationRouteError-DpiNBvvY.d.cts.map +1 -0
  17. package/dist/MobileUnsupportedNotificationRouteError-DpiNBvvY.d.ts +15 -0
  18. package/dist/MobileUnsupportedNotificationRouteError-DpiNBvvY.d.ts.map +1 -0
  19. package/dist/{buildSignedMobileRequest-C1v0flCR.d.cts → buildSignedMobileRequest-DcEMKU_4.d.cts} +2 -2
  20. package/dist/{buildSignedMobileRequest-C1v0flCR.d.cts.map → buildSignedMobileRequest-DcEMKU_4.d.cts.map} +1 -1
  21. package/dist/{buildSignedMobileRequest-UeeWdYGU.d.ts → buildSignedMobileRequest-DlTMvoXR.d.ts} +2 -2
  22. package/dist/{buildSignedMobileRequest-UeeWdYGU.d.ts.map → buildSignedMobileRequest-DlTMvoXR.d.ts.map} +1 -1
  23. package/dist/{canonicalize-5eeZrkzQ.d.ts → canonicalize-BOZlflI3.d.ts} +2 -2
  24. package/dist/canonicalize-BOZlflI3.d.ts.map +1 -0
  25. package/dist/{canonicalize-CBaZprTo.d.cts → canonicalize-BvCozzvJ.d.cts} +2 -2
  26. package/dist/canonicalize-BvCozzvJ.d.cts.map +1 -0
  27. package/dist/{clientTypes-_mEgzmNs.d.cts → clientTypes-KpHlCDGZ.d.cts} +341 -38
  28. package/dist/clientTypes-KpHlCDGZ.d.cts.map +1 -0
  29. package/dist/{clientTypes-C9dJufxk.d.ts → clientTypes-XRI41VdC.d.ts} +341 -38
  30. package/dist/clientTypes-XRI41VdC.d.ts.map +1 -0
  31. package/dist/dataMappers.cjs +257 -20
  32. package/dist/dataMappers.cjs.map +1 -1
  33. package/dist/dataMappers.d.cts +98 -15
  34. package/dist/dataMappers.d.cts.map +1 -1
  35. package/dist/dataMappers.d.ts +98 -15
  36. package/dist/dataMappers.d.ts.map +1 -1
  37. package/dist/dataMappers.js +242 -20
  38. package/dist/dataMappers.js.map +1 -1
  39. package/dist/{eip712MethodByType-D8jLoxDu.d.cts → eip712MethodByType-DyAmzH7b.d.cts} +2 -2
  40. package/dist/eip712MethodByType-DyAmzH7b.d.cts.map +1 -0
  41. package/dist/{eip712MethodByType-DcUh8h-l.d.ts → eip712MethodByType-qSSAF6i2.d.ts} +2 -2
  42. package/dist/eip712MethodByType-qSSAF6i2.d.ts.map +1 -0
  43. package/dist/feed-BrgkFqP3.d.cts +23 -0
  44. package/dist/feed-BrgkFqP3.d.cts.map +1 -0
  45. package/dist/feed-DcbhLoo1.d.ts +23 -0
  46. package/dist/feed-DcbhLoo1.d.ts.map +1 -0
  47. package/dist/index-BVVgDSdq.d.cts +1 -0
  48. package/dist/index-BVVgDSdq.d.ts +1 -0
  49. package/dist/index.cjs +8 -2
  50. package/dist/index.d.cts +14 -16
  51. package/dist/index.d.ts +14 -16
  52. package/dist/index.js +4 -3
  53. package/dist/{mobileErrorCodes-CmjYEIYm.d.ts → mobileErrorCodes-CdwX6QTO.d.cts} +8 -3
  54. package/dist/mobileErrorCodes-CdwX6QTO.d.cts.map +1 -0
  55. package/dist/{mobileErrorCodes-CmjYEIYm.d.cts → mobileErrorCodes-CdwX6QTO.d.ts} +8 -3
  56. package/dist/mobileErrorCodes-CdwX6QTO.d.ts.map +1 -0
  57. package/dist/{payloadHash-DhHmgRqL.d.cts → payloadHash-BgGSZock.d.cts} +2 -2
  58. package/dist/payloadHash-BgGSZock.d.cts.map +1 -0
  59. package/dist/{payloadHash-E1_8fpLW.d.ts → payloadHash-Bi6upCLQ.d.ts} +2 -2
  60. package/dist/payloadHash-Bi6upCLQ.d.ts.map +1 -0
  61. package/dist/{serverExecuteTypes-BwWGspOg.d.ts → serverExecuteTypes-DuCWe_H_.d.cts} +23 -14
  62. package/dist/serverExecuteTypes-DuCWe_H_.d.cts.map +1 -0
  63. package/dist/{serverExecuteTypes-B-OJok19.d.cts → serverExecuteTypes-usJ6HMJv.d.ts} +23 -14
  64. package/dist/serverExecuteTypes-usJ6HMJv.d.ts.map +1 -0
  65. package/dist/{serverModelTypes-CiA-dy1R.d.ts → serverModelTypes-CTHMNIQS.d.cts} +170 -13
  66. package/dist/serverModelTypes-CTHMNIQS.d.cts.map +1 -0
  67. package/dist/{serverModelTypes-CiA-dy1R.d.cts → serverModelTypes-CTHMNIQS.d.ts} +170 -13
  68. package/dist/serverModelTypes-CTHMNIQS.d.ts.map +1 -0
  69. package/dist/{serverResponseGuards-CShiXpHT.d.ts → serverResponseGuards-CzmldAad.d.cts} +2 -2
  70. package/dist/{serverResponseGuards-BW69PS7O.d.cts.map → serverResponseGuards-CzmldAad.d.cts.map} +1 -1
  71. package/dist/{serverResponseGuards-BW69PS7O.d.cts → serverResponseGuards-Dvkbjp2_.d.ts} +2 -2
  72. package/dist/{serverResponseGuards-CShiXpHT.d.ts.map → serverResponseGuards-Dvkbjp2_.d.ts.map} +1 -1
  73. package/dist/signing/buildSignedMobileRequest.d.cts +1 -1
  74. package/dist/signing/buildSignedMobileRequest.d.ts +1 -1
  75. package/dist/signing/canonicalize.cjs +53 -2
  76. package/dist/signing/canonicalize.cjs.map +1 -1
  77. package/dist/signing/canonicalize.d.cts +1 -1
  78. package/dist/signing/canonicalize.d.ts +1 -1
  79. package/dist/signing/canonicalize.js +53 -2
  80. package/dist/signing/canonicalize.js.map +1 -1
  81. package/dist/signing/eip712MethodByType.cjs +7 -0
  82. package/dist/signing/eip712MethodByType.cjs.map +1 -1
  83. package/dist/signing/eip712MethodByType.d.cts +1 -1
  84. package/dist/signing/eip712MethodByType.d.ts +1 -1
  85. package/dist/signing/eip712MethodByType.js +7 -0
  86. package/dist/signing/eip712MethodByType.js.map +1 -1
  87. package/dist/signing/index.d.cts +5 -5
  88. package/dist/signing/index.d.ts +5 -5
  89. package/dist/signing/payloadHash.cjs +1 -1
  90. package/dist/signing/payloadHash.d.cts +1 -1
  91. package/dist/signing/payloadHash.d.ts +1 -1
  92. package/dist/signing/payloadHash.js +1 -1
  93. package/dist/signing/types.d.cts +1 -1
  94. package/dist/signing/types.d.ts +1 -1
  95. package/dist/types/MobileServerFailureError.d.cts +1 -1
  96. package/dist/types/MobileServerFailureError.d.ts +1 -1
  97. package/dist/types/MobileUnsupportedNotificationRouteError.cjs +19 -0
  98. package/dist/types/MobileUnsupportedNotificationRouteError.cjs.map +1 -0
  99. package/dist/types/MobileUnsupportedNotificationRouteError.d.cts +2 -0
  100. package/dist/types/MobileUnsupportedNotificationRouteError.d.ts +2 -0
  101. package/dist/types/MobileUnsupportedNotificationRouteError.js +18 -0
  102. package/dist/types/MobileUnsupportedNotificationRouteError.js.map +1 -0
  103. package/dist/types/clientTypes.d.cts +2 -2
  104. package/dist/types/clientTypes.d.ts +2 -2
  105. package/dist/types/index.cjs +4 -0
  106. package/dist/types/index.d.cts +8 -9
  107. package/dist/types/index.d.ts +8 -9
  108. package/dist/types/index.js +3 -2
  109. package/dist/types/mobileErrorCodes.cjs +11 -1
  110. package/dist/types/mobileErrorCodes.cjs.map +1 -1
  111. package/dist/types/mobileErrorCodes.d.cts +1 -1
  112. package/dist/types/mobileErrorCodes.d.ts +1 -1
  113. package/dist/types/mobileErrorCodes.js +11 -1
  114. package/dist/types/mobileErrorCodes.js.map +1 -1
  115. package/dist/types/serverBaseTypes.d.cts +1 -1
  116. package/dist/types/serverBaseTypes.d.ts +1 -1
  117. package/dist/types/serverExecuteTypes.d.cts +2 -2
  118. package/dist/types/serverExecuteTypes.d.ts +2 -2
  119. package/dist/types/serverModelTypes.cjs +15 -0
  120. package/dist/types/serverModelTypes.cjs.map +1 -1
  121. package/dist/types/serverModelTypes.d.cts +2 -2
  122. package/dist/types/serverModelTypes.d.ts +2 -2
  123. package/dist/types/serverModelTypes.js +14 -1
  124. package/dist/types/serverModelTypes.js.map +1 -1
  125. package/dist/types/serverQueryTypes.d.cts +2 -2
  126. package/dist/types/serverQueryTypes.d.ts +2 -2
  127. package/dist/types/serverRequestTypes.d.cts +2 -2
  128. package/dist/types/serverRequestTypes.d.ts +2 -2
  129. package/dist/types-CByl_NyJ.d.ts +825 -0
  130. package/dist/types-CByl_NyJ.d.ts.map +1 -0
  131. package/dist/types-CR5iaKR4.d.cts +825 -0
  132. package/dist/types-CR5iaKR4.d.cts.map +1 -0
  133. package/dist/utils/buildMobileFeedImageMultipart.cjs +31 -0
  134. package/dist/utils/buildMobileFeedImageMultipart.cjs.map +1 -0
  135. package/dist/utils/buildMobileFeedImageMultipart.d.cts +15 -0
  136. package/dist/utils/buildMobileFeedImageMultipart.d.cts.map +1 -0
  137. package/dist/utils/buildMobileFeedImageMultipart.d.ts +15 -0
  138. package/dist/utils/buildMobileFeedImageMultipart.d.ts.map +1 -0
  139. package/dist/utils/buildMobileFeedImageMultipart.js +30 -0
  140. package/dist/utils/buildMobileFeedImageMultipart.js.map +1 -0
  141. package/dist/utils/feed.cjs +12 -0
  142. package/dist/utils/feed.cjs.map +1 -1
  143. package/dist/utils/feed.d.cts +2 -2
  144. package/dist/utils/feed.d.ts +2 -2
  145. package/dist/utils/feed.js +11 -1
  146. package/dist/utils/feed.js.map +1 -1
  147. package/dist/utils/index.cjs +3 -1
  148. package/dist/utils/index.d.cts +3 -3
  149. package/dist/utils/index.d.ts +3 -3
  150. package/dist/utils/index.js +2 -2
  151. package/dist/utils/serverResponseGuards.d.cts +1 -1
  152. package/dist/utils/serverResponseGuards.d.ts +1 -1
  153. package/package.json +3 -3
  154. package/src/MobileClient.ts +444 -19
  155. package/src/dataMappers.test.ts +511 -6
  156. package/src/dataMappers.ts +325 -24
  157. package/src/feedImages.test.ts +309 -0
  158. package/src/notifications.test.ts +950 -0
  159. package/src/signing/canonicalize.ts +72 -0
  160. package/src/signing/eip712MethodByType.ts +10 -0
  161. package/src/signing/signing.test.ts +67 -1
  162. package/src/signing/types.ts +55 -9
  163. package/src/socialFeed.test.ts +63 -2
  164. package/src/types/MobileUnsupportedNotificationRouteError.ts +16 -0
  165. package/src/types/clientTypes.ts +427 -36
  166. package/src/types/index.ts +1 -0
  167. package/src/types/mobileErrorCodes.ts +10 -0
  168. package/src/types/serverExecuteTypes.ts +22 -10
  169. package/src/types/serverModelTypes.ts +216 -11
  170. package/src/types/serverQueryTypes.ts +106 -9
  171. package/src/types/serverRequestTypes.ts +114 -17
  172. package/src/utils/buildMobileFeedImageMultipart.test.ts +45 -0
  173. package/src/utils/buildMobileFeedImageMultipart.ts +36 -0
  174. package/src/utils/feed.ts +16 -0
  175. package/dist/MobileClient-CfVZXTcz.cjs.map +0 -1
  176. package/dist/MobileServerFailureError-BZVwlsMg.d.ts.map +0 -1
  177. package/dist/MobileServerFailureError-CbtK8kD4.d.cts.map +0 -1
  178. package/dist/canonicalize-5eeZrkzQ.d.ts.map +0 -1
  179. package/dist/canonicalize-CBaZprTo.d.cts.map +0 -1
  180. package/dist/clientTypes-C9dJufxk.d.ts.map +0 -1
  181. package/dist/clientTypes-_mEgzmNs.d.cts.map +0 -1
  182. package/dist/eip712MethodByType-D8jLoxDu.d.cts.map +0 -1
  183. package/dist/eip712MethodByType-DcUh8h-l.d.ts.map +0 -1
  184. package/dist/feed-DTJlsg8W.d.cts +0 -14
  185. package/dist/feed-DTJlsg8W.d.cts.map +0 -1
  186. package/dist/feed-DTJlsg8W.d.ts +0 -14
  187. package/dist/feed-DTJlsg8W.d.ts.map +0 -1
  188. package/dist/mobileErrorCodes-CmjYEIYm.d.cts.map +0 -1
  189. package/dist/mobileErrorCodes-CmjYEIYm.d.ts.map +0 -1
  190. package/dist/payloadHash-DhHmgRqL.d.cts.map +0 -1
  191. package/dist/payloadHash-E1_8fpLW.d.ts.map +0 -1
  192. package/dist/serverBaseTypes-B5J1_TyC.d.cts +0 -25
  193. package/dist/serverBaseTypes-B5J1_TyC.d.cts.map +0 -1
  194. package/dist/serverBaseTypes-DnLzsdm-.d.ts +0 -25
  195. package/dist/serverBaseTypes-DnLzsdm-.d.ts.map +0 -1
  196. package/dist/serverExecuteTypes-B-OJok19.d.cts.map +0 -1
  197. package/dist/serverExecuteTypes-BwWGspOg.d.ts.map +0 -1
  198. package/dist/serverModelTypes-CiA-dy1R.d.cts.map +0 -1
  199. package/dist/serverModelTypes-CiA-dy1R.d.ts.map +0 -1
  200. package/dist/serverQueryTypes-CJcjLB7n.d.ts +0 -283
  201. package/dist/serverQueryTypes-CJcjLB7n.d.ts.map +0 -1
  202. package/dist/serverQueryTypes-V1f9yE7L.d.cts +0 -283
  203. package/dist/serverQueryTypes-V1f9yE7L.d.cts.map +0 -1
  204. package/dist/serverRequestTypes-CRlkNSu5.d.cts +0 -270
  205. package/dist/serverRequestTypes-CRlkNSu5.d.cts.map +0 -1
  206. package/dist/serverRequestTypes-DZoOhV2o.d.ts +0 -270
  207. package/dist/serverRequestTypes-DZoOhV2o.d.ts.map +0 -1
  208. package/dist/types-BiRmH5Iv.d.cts +0 -108
  209. package/dist/types-BiRmH5Iv.d.cts.map +0 -1
  210. package/dist/types-DoJuq0Ij.d.ts +0 -108
  211. package/d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ImB;EAgJnB,SAAA,EAAW,gCAAA;EA9ID;EAgJV,cAAA;AAAA;;UAIe,oCAAA;EA9IA;EAgJf,UAAA;;EAEA,mBAAA,EAAqB,gCAAA;EAlJqC;EAoJ1D,UAAA,EAAY,iCAAA;EAlJH;EAoJT,UAAA,EAAY,mCAAA;EApJwB;EAsJpC,kBAAA;EAlJwD;EAoJxD,UAAA;AAAA;;UAIe,4BAAA;EApJf;EAsJA,YAAA;EAlJA;EAoJA,QAAA;EAlJkB;EAoJlB,QAAA;EAhJe;EAkJf,OAAA;;EAEA,SAAA;EAlJA;EAoJA,UAAA;AAAA;;UAIe,kCAAA;EAhJf;EAkJA,SAAA;EAlJ2D;EAoJ3D,YAAA;EAhJe;EAkJf,SAAA;;EAEA,MAAA,EAAQ,sBAAA;EAlJR;EAoJA,SAAA,EAAW,gCAAA;EAlJgB;EAoJ3B,WAAA,EAAa,gCAAA;AAAA;;UAIE,oCAAA;EAhJf;EAkJA,YAAA;EAlJgB;EAoJhB,UAAU;AAAA;;UAIK,8CAAA;EAjJuB;EAmJtC,SAAA;EAhJmD;EAkJnD,QAAQ;AAAA;;UAIO,gCAAA;EAxHL;EA0HV,OAAA;EA1HkC;EA4HlC,KAAK;AAAA"}
@@ -1,4 +1,4 @@
1
- import { t as MobileServerFailureResponse } from "./serverBaseTypes-DnLzsdm-.js";
1
+ import { tt as MobileServerFailureResponse } from "./types-CR5iaKR4.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-CShiXpHT.d.ts.map
16
+ //# sourceMappingURL=serverResponseGuards-CzmldAad.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"serverResponseGuards-BW69PS7O.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
+ {"version":3,"file":"serverResponseGuards-CzmldAad.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,4 +1,4 @@
1
- import { t as MobileServerFailureResponse } from "./serverBaseTypes-B5J1_TyC.cjs";
1
+ import { tt as MobileServerFailureResponse } from "./types-CByl_NyJ.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-BW69PS7O.d.cts.map
16
+ //# sourceMappingURL=serverResponseGuards-Dvkbjp2_.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"serverResponseGuards-CShiXpHT.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
+ {"version":3,"file":"serverResponseGuards-Dvkbjp2_.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,2 +1,2 @@
1
- import { t as buildSignedMobileRequest } from "../buildSignedMobileRequest-C1v0flCR.cjs";
1
+ import { t as buildSignedMobileRequest } from "../buildSignedMobileRequest-DcEMKU_4.cjs";
2
2
  export { buildSignedMobileRequest };
@@ -1,2 +1,2 @@
1
- import { t as buildSignedMobileRequest } from "../buildSignedMobileRequest-UeeWdYGU.js";
1
+ import { t as buildSignedMobileRequest } from "../buildSignedMobileRequest-DlTMvoXR.js";
2
2
  export { buildSignedMobileRequest };
@@ -9,6 +9,48 @@ 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
+ };
12
54
  case "create_feed_post": return {
13
55
  type: inner.type,
14
56
  client_request_id: inner.client_request_id,
@@ -16,7 +58,9 @@ function canonicalizeMobileInner(inner) {
16
58
  ...inner.action_id === void 0 ? {} : { action_id: inner.action_id },
17
59
  text: inner.text,
18
60
  mentions: inner.mentions.map(canonicalizeMention),
19
- ...inner.drawing_data_json === void 0 ? {} : { drawing_data_json: inner.drawing_data_json }
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
+ ...inner.image_urls === void 0 ? {} : { image_urls: [...inner.image_urls] }
20
64
  };
21
65
  case "create_feed_comment": return {
22
66
  type: inner.type,
@@ -25,7 +69,14 @@ function canonicalizeMobileInner(inner) {
25
69
  ...inner.reply_to_item_id === void 0 ? {} : { reply_to_item_id: inner.reply_to_item_id },
26
70
  text: inner.text,
27
71
  mentions: inner.mentions.map(canonicalizeMention),
28
- ...inner.attached_position_id === void 0 ? {} : { attached_position_id: inner.attached_position_id }
72
+ ...inner.attached_position_id === void 0 ? {} : { attached_position_id: inner.attached_position_id },
73
+ ...inner.image_ids === void 0 ? {} : { image_ids: [...inner.image_ids] },
74
+ ...inner.image_urls === void 0 ? {} : { image_urls: [...inner.image_urls] }
75
+ };
76
+ case "create_feed_post_image_uploads":
77
+ case "create_feed_comment_image_uploads": return {
78
+ type: inner.type,
79
+ content_hash: inner.content_hash
29
80
  };
30
81
  case "create_feed_chart_drawing":
31
82
  case "update_feed_chart_drawing": return {
@@ -1 +1 @@
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 '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 };\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 };\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,oBACH,OAAO;GACL,MAAM,MAAM;GACZ,mBAAmB,MAAM;GACzB,aAAa,MAAM;GACnB,GAAI,MAAM,cAAc,KAAA,IACpB,CAAC,IACD,EAAE,WAAW,MAAM,UAAU;GACjC,MAAM,MAAM;GACZ,UAAU,MAAM,SAAS,IAAI,mBAAmB;GAChD,GAAI,MAAM,sBAAsB,KAAA,IAC5B,CAAC,IACD,EAAE,mBAAmB,MAAM,kBAAkB;EACnD;EACF,KAAK,uBACH,OAAO;GACL,MAAM,MAAM;GACZ,mBAAmB,MAAM;GACzB,cAAc,MAAM;GACpB,GAAI,MAAM,qBAAqB,KAAA,IAC3B,CAAC,IACD,EAAE,kBAAkB,MAAM,iBAAiB;GAC/C,MAAM,MAAM;GACZ,UAAU,MAAM,SAAS,IAAI,mBAAmB;GAChD,GAAI,MAAM,yBAAyB,KAAA,IAC/B,CAAC,IACD,EAAE,sBAAsB,MAAM,qBAAqB;EACzD;EACF,KAAK;EACL,KAAK,6BACH,OAAO;GACL,MAAM,MAAM;GACZ,SAAS,MAAM;GACf,WAAW,MAAM;EACnB;EACF,KAAK,iBACH,OAAO;GACL,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
+ {"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 ...(inner.image_urls === undefined\n ? {}\n : { image_urls: [...inner.image_urls] }),\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 ...(inner.image_urls === undefined\n ? {}\n : { image_urls: [...inner.image_urls] }),\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,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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-CBaZprTo.cjs";
1
+ import { t as canonicalizeMobileInner } from "../canonicalize-BvCozzvJ.cjs";
2
2
  export { canonicalizeMobileInner };
@@ -1,2 +1,2 @@
1
- import { t as canonicalizeMobileInner } from "../canonicalize-5eeZrkzQ.js";
1
+ import { t as canonicalizeMobileInner } from "../canonicalize-BOZlflI3.js";
2
2
  export { canonicalizeMobileInner };
@@ -8,6 +8,48 @@
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
+ };
11
53
  case "create_feed_post": return {
12
54
  type: inner.type,
13
55
  client_request_id: inner.client_request_id,
@@ -15,7 +57,9 @@ function canonicalizeMobileInner(inner) {
15
57
  ...inner.action_id === void 0 ? {} : { action_id: inner.action_id },
16
58
  text: inner.text,
17
59
  mentions: inner.mentions.map(canonicalizeMention),
18
- ...inner.drawing_data_json === void 0 ? {} : { drawing_data_json: inner.drawing_data_json }
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
+ ...inner.image_urls === void 0 ? {} : { image_urls: [...inner.image_urls] }
19
63
  };
20
64
  case "create_feed_comment": return {
21
65
  type: inner.type,
@@ -24,7 +68,14 @@ function canonicalizeMobileInner(inner) {
24
68
  ...inner.reply_to_item_id === void 0 ? {} : { reply_to_item_id: inner.reply_to_item_id },
25
69
  text: inner.text,
26
70
  mentions: inner.mentions.map(canonicalizeMention),
27
- ...inner.attached_position_id === void 0 ? {} : { attached_position_id: inner.attached_position_id }
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
+ ...inner.image_urls === void 0 ? {} : { image_urls: [...inner.image_urls] }
74
+ };
75
+ case "create_feed_post_image_uploads":
76
+ case "create_feed_comment_image_uploads": return {
77
+ type: inner.type,
78
+ content_hash: inner.content_hash
28
79
  };
29
80
  case "create_feed_chart_drawing":
30
81
  case "update_feed_chart_drawing": return {
@@ -1 +1 @@
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 '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 };\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 };\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,oBACH,OAAO;GACL,MAAM,MAAM;GACZ,mBAAmB,MAAM;GACzB,aAAa,MAAM;GACnB,GAAI,MAAM,cAAc,KAAA,IACpB,CAAC,IACD,EAAE,WAAW,MAAM,UAAU;GACjC,MAAM,MAAM;GACZ,UAAU,MAAM,SAAS,IAAI,mBAAmB;GAChD,GAAI,MAAM,sBAAsB,KAAA,IAC5B,CAAC,IACD,EAAE,mBAAmB,MAAM,kBAAkB;EACnD;EACF,KAAK,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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
+ {"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 ...(inner.image_urls === undefined\n ? {}\n : { image_urls: [...inner.image_urls] }),\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 ...(inner.image_urls === undefined\n ? {}\n : { image_urls: [...inner.image_urls] }),\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;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Z,cAAc,MAAM;EACtB;EACF,KAAK;EACL,KAAK,6BACH,OAAO;GACL,MAAM,MAAM;GACZ,SAAS,MAAM;GACf,WAAW,MAAM;EACnB;EACF,KAAK,iBACH,OAAO;GACL,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"}
@@ -4,8 +4,15 @@ 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",
7
12
  create_feed_post: "mobile:execute_create_feed_post",
8
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",
9
16
  create_feed_chart_drawing: "mobile:execute_create_feed_chart_drawing",
10
17
  update_feed_chart_drawing: "mobile:execute_update_feed_chart_drawing",
11
18
  set_feed_like: "mobile:execute_set_feed_like",
@@ -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 create_feed_post: 'mobile:execute_create_feed_post',\n create_feed_comment: 'mobile:execute_create_feed_comment',\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,kBAAkB;CAClB,qBAAqB;CACrB,2BAA2B;CAC3B,2BAA2B;CAC3B,eAAe;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-D8jLoxDu.cjs";
1
+ import { t as MOBILE_EIP712_METHOD_BY_TYPE } from "../eip712MethodByType-DyAmzH7b.cjs";
2
2
  export { MOBILE_EIP712_METHOD_BY_TYPE };
@@ -1,2 +1,2 @@
1
- import { t as MOBILE_EIP712_METHOD_BY_TYPE } from "../eip712MethodByType-DcUh8h-l.js";
1
+ import { t as MOBILE_EIP712_METHOD_BY_TYPE } from "../eip712MethodByType-qSSAF6i2.js";
2
2
  export { MOBILE_EIP712_METHOD_BY_TYPE };
@@ -3,8 +3,15 @@
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",
6
11
  create_feed_post: "mobile:execute_create_feed_post",
7
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",
8
15
  create_feed_chart_drawing: "mobile:execute_create_feed_chart_drawing",
9
16
  update_feed_chart_drawing: "mobile:execute_update_feed_chart_drawing",
10
17
  set_feed_like: "mobile:execute_set_feed_like",
@@ -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 create_feed_post: 'mobile:execute_create_feed_post',\n create_feed_comment: 'mobile:execute_create_feed_comment',\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,kBAAkB;CAClB,qBAAqB;CACrB,2BAA2B;CAC3B,2BAA2B;CAC3B,eAAe;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"}
@@ -1,7 +1,7 @@
1
- import { a as MobileSignedRequest, i as MobileSignedInnerParams, n as MobileSignedInner, r as MobileSignedInnerByType, t as BuildSignedMobileRequestParams } from "../types-BiRmH5Iv.cjs";
2
- import { t as buildSignedMobileRequest } from "../buildSignedMobileRequest-C1v0flCR.cjs";
3
- import { t as canonicalizeMobileInner } from "../canonicalize-CBaZprTo.cjs";
4
- import { t as MOBILE_EIP712_METHOD_BY_TYPE } from "../eip712MethodByType-D8jLoxDu.cjs";
1
+ import { a as MobileSignedRequest, i as MobileSignedInnerParams, n as MobileSignedInner, r as MobileSignedInnerByType, t as BuildSignedMobileRequestParams } from "../types-CR5iaKR4.cjs";
2
+ import { t as buildSignedMobileRequest } from "../buildSignedMobileRequest-DcEMKU_4.cjs";
3
+ import { t as canonicalizeMobileInner } from "../canonicalize-BvCozzvJ.cjs";
4
+ import { t as MOBILE_EIP712_METHOD_BY_TYPE } from "../eip712MethodByType-DyAmzH7b.cjs";
5
5
  import { t as getMobileNonce } from "../nonce-7swNuPgu.cjs";
6
- import { t as getMobilePayloadHash } from "../payloadHash-DhHmgRqL.cjs";
6
+ import { t as getMobilePayloadHash } from "../payloadHash-BgGSZock.cjs";
7
7
  export { BuildSignedMobileRequestParams, MOBILE_EIP712_METHOD_BY_TYPE, MobileSignedInner, MobileSignedInnerByType, MobileSignedInnerParams, MobileSignedRequest, buildSignedMobileRequest, canonicalizeMobileInner, getMobileNonce, getMobilePayloadHash };
@@ -1,7 +1,7 @@
1
- import { a as MobileSignedRequest, i as MobileSignedInnerParams, n as MobileSignedInner, r as MobileSignedInnerByType, t as BuildSignedMobileRequestParams } from "../types-DoJuq0Ij.js";
2
- import { t as buildSignedMobileRequest } from "../buildSignedMobileRequest-UeeWdYGU.js";
3
- import { t as canonicalizeMobileInner } from "../canonicalize-5eeZrkzQ.js";
4
- import { t as MOBILE_EIP712_METHOD_BY_TYPE } from "../eip712MethodByType-DcUh8h-l.js";
1
+ import { a as MobileSignedRequest, i as MobileSignedInnerParams, n as MobileSignedInner, r as MobileSignedInnerByType, t as BuildSignedMobileRequestParams } from "../types-CByl_NyJ.js";
2
+ import { t as buildSignedMobileRequest } from "../buildSignedMobileRequest-DlTMvoXR.js";
3
+ import { t as canonicalizeMobileInner } from "../canonicalize-BOZlflI3.js";
4
+ import { t as MOBILE_EIP712_METHOD_BY_TYPE } from "../eip712MethodByType-qSSAF6i2.js";
5
5
  import { t as getMobileNonce } from "../nonce-7swNuPgu.js";
6
- import { t as getMobilePayloadHash } from "../payloadHash-E1_8fpLW.js";
6
+ import { t as getMobilePayloadHash } from "../payloadHash-Bi6upCLQ.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-DhHmgRqL.cjs";
1
+ import { t as getMobilePayloadHash } from "../payloadHash-BgGSZock.cjs";
2
2
  export { getMobilePayloadHash };
@@ -1,2 +1,2 @@
1
- import { t as getMobilePayloadHash } from "../payloadHash-E1_8fpLW.js";
1
+ import { t as getMobilePayloadHash } from "../payloadHash-Bi6upCLQ.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))`.
@@ -1,2 +1,2 @@
1
- import { a as MobileSignedRequest, i as MobileSignedInnerParams, n as MobileSignedInner, r as MobileSignedInnerByType, t as BuildSignedMobileRequestParams } from "../types-BiRmH5Iv.cjs";
1
+ import { a as MobileSignedRequest, i as MobileSignedInnerParams, n as MobileSignedInner, r as MobileSignedInnerByType, t as BuildSignedMobileRequestParams } from "../types-CR5iaKR4.cjs";
2
2
  export { BuildSignedMobileRequestParams, MobileSignedInner, MobileSignedInnerByType, MobileSignedInnerParams, MobileSignedRequest };
@@ -1,2 +1,2 @@
1
- import { a as MobileSignedRequest, i as MobileSignedInnerParams, n as MobileSignedInner, r as MobileSignedInnerByType, t as BuildSignedMobileRequestParams } from "../types-DoJuq0Ij.js";
1
+ import { a as MobileSignedRequest, i as MobileSignedInnerParams, n as MobileSignedInner, r as MobileSignedInnerByType, t as BuildSignedMobileRequestParams } from "../types-CByl_NyJ.js";
2
2
  export { BuildSignedMobileRequestParams, MobileSignedInner, MobileSignedInnerByType, MobileSignedInnerParams, MobileSignedRequest };
@@ -1,2 +1,2 @@
1
- import { t as MobileServerFailureError } from "../MobileServerFailureError-CbtK8kD4.cjs";
1
+ import { t as MobileServerFailureError } from "../MobileServerFailureError-BeCCNShj.cjs";
2
2
  export { MobileServerFailureError };
@@ -1,2 +1,2 @@
1
- import { t as MobileServerFailureError } from "../MobileServerFailureError-BZVwlsMg.js";
1
+ import { t as MobileServerFailureError } from "../MobileServerFailureError-hHv28weI.js";
2
2
  export { MobileServerFailureError };
@@ -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,2 @@
1
+ import { t as MobileUnsupportedNotificationRouteError } from "../MobileUnsupportedNotificationRouteError-DpiNBvvY.cjs";
2
+ export { MobileUnsupportedNotificationRouteError };
@@ -0,0 +1,2 @@
1
+ import { t as MobileUnsupportedNotificationRouteError } from "../MobileUnsupportedNotificationRouteError-DpiNBvvY.js";
2
+ export { MobileUnsupportedNotificationRouteError };
@@ -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"}
@@ -1,2 +1,2 @@
1
- import { $ as MobileSetFollowParams, $t as MobileSocialFeedTradeCard, A as MobileFeedMargin, At as MobileSocialFeedLikeResult, B as MobileNotificationPreferenceScope, Bt as MobileSocialFeedPositionHistoryCard, C as MobileAvatarPreset, Ct as MobileSocialFeedHistorySummary, D as MobileCreateFeedCommentParams, Dt as MobileSocialFeedItemBase, E as MobileCreateAvatarUploadParams, Et as MobileSocialFeedItem, F as MobileFollowListPage, Ft as MobileSocialFeedPnl, G as MobilePublicProfile, Gt as MobileSocialFeedPresence, H as MobilePositionPresenceParams, Ht as MobileSocialFeedPositionResolutionResult, I as MobileFollowMutationResult, It as MobileSocialFeedPositionAction, J as MobileRegisteredWallet, Jt as MobileSocialFeedReadParams, K as MobileRecordFeedViewsParams, Kt as MobileSocialFeedPublishablePosition, L as MobileFollowSummary, Lt as MobileSocialFeedPositionCard, M as MobileFeedTrade, Mt as MobileSocialFeedMarket, N as MobileFollowBatchResultItem, Nt as MobileSocialFeedMentionParams, O as MobileCreateFeedPostParams, Ot as MobileSocialFeedItemPatch, P as MobileFollowListAccount, Pt as MobileSocialFeedPage, Q as MobileSetFollowBatchParams, Qt as MobileSocialFeedTopTradersPage, R as MobileIdentitySummary, Rt as MobileSocialFeedPositionChart, S as GetMobileUsernameAvailabilityParams, St as MobileSocialFeedHistoryMetrics, T as MobileAvatarUpload, Tt as MobileSocialFeedInteraction, U as MobileProfileSearchPage, Ut as MobileSocialFeedPositionsPage, V as MobileNotificationPreferences, Vt as MobileSocialFeedPositionPatch, W as MobileProfilesInclude, Wt as MobileSocialFeedPost, X as MobileSetBioParams, Xt as MobileSocialFeedReply, Y as MobileSetAvatarParams, Yt as MobileSocialFeedReadSession, Z as MobileSetFeedLikeParams, Zt as MobileSocialFeedTimelineEntry, _ as GetMobileProfileFeedParams, _t as MobileSocialFeedContentBase, a as GetMobileFeedUpdatesParams, an as MobileSocialFeedUpdates, at as MobileSocialFeedActionResolutionResult, b as GetMobileSelfFeedPositionsParams, bt as MobileSocialFeedDrawingResult, c as GetMobileFollowingParams, cn as MobileSocialFeedWatchers, ct as MobileSocialFeedCapabilities, d as GetMobileMarketFeedParams, dn as MobileUsernameAvailability, dt as MobileSocialFeedCohort, en as MobileSocialFeedTradeRow, et as MobileSetPrivateModeParams, f as GetMobileNotificationPreferencesParams, fn as MobileWithExpoTokenParams, ft as MobileSocialFeedCohortCoverage, g as GetMobilePositionWatchersParams, gt as MobileSocialFeedCompactCard, h as GetMobilePositionHistoryParams, hn as SearchMobileProfilesParams, ht as MobileSocialFeedCommentsPage, i as GetMobileFeedParams, in as MobileSocialFeedTradingTarget, it as MobileSocialFeedActionMarker, j as MobileFeedPage, jt as MobileSocialFeedListParams, k as MobileFeedChartDrawingParams, kt as MobileSocialFeedItemResponse, l as GetMobileForYouFeedParams, ln as MobileUnregisterExpoTokenParams, lt as MobileSocialFeedCategorizedParams, m as GetMobilePositionFeedParams, mn as ResolveMobileFeedPositionParams, mt as MobileSocialFeedCommentResult, n as GetMobileFeedCommentsParams, nn as MobileSocialFeedTraderBadge, nt as MobileSignedRequestParams, o as GetMobileFollowListParams, on as MobileSocialFeedViewTracking, ot as MobileSocialFeedAuthor, p as GetMobilePositionChartParams, pn as ResolveMobileFeedActionParams, pt as MobileSocialFeedCommentPreview, q as MobileRegisterExpoTokenParams, qt as MobileSocialFeedRankedPage, r as GetMobileFeedItemParams, rn as MobileSocialFeedTradingContext, rt as MobileSocialFeedActionCandidate, s as GetMobileFollowersParams, sn as MobileSocialFeedViewsResult, st as MobileSocialFeedCandle, t as GetMobileFeedChartDrawingParams, tn as MobileSocialFeedTradeRowBase, tt as MobileSetUsernameParams, u as GetMobileFriendsFeedParams, un as MobileUpdateNotificationPreferencesParams, ut as MobileSocialFeedChartRange, v as GetMobileProfilesParams, vt as MobileSocialFeedDrawing, w as MobileAvatarSelection, wt as MobileSocialFeedHistoryTake, x as GetMobileTopTradersFeedParams, xt as MobileSocialFeedEstimatedLiquidationLine, y as GetMobileRegisteredWalletParams, yt as MobileSocialFeedDrawingMutationResult, z as MobileNotificationCategoryPreference, zt as MobileSocialFeedPositionHistory } from "../clientTypes-_mEgzmNs.cjs";
2
- export { GetMobileFeedChartDrawingParams, GetMobileFeedCommentsParams, GetMobileFeedItemParams, GetMobileFeedParams, GetMobileFeedUpdatesParams, GetMobileFollowListParams, GetMobileFollowersParams, GetMobileFollowingParams, GetMobileForYouFeedParams, GetMobileFriendsFeedParams, GetMobileMarketFeedParams, GetMobileNotificationPreferencesParams, GetMobilePositionChartParams, GetMobilePositionFeedParams, GetMobilePositionHistoryParams, GetMobilePositionWatchersParams, GetMobileProfileFeedParams, GetMobileProfilesParams, GetMobileRegisteredWalletParams, GetMobileSelfFeedPositionsParams, GetMobileTopTradersFeedParams, GetMobileUsernameAvailabilityParams, MobileAvatarPreset, MobileAvatarSelection, MobileAvatarUpload, MobileCreateAvatarUploadParams, MobileCreateFeedCommentParams, MobileCreateFeedPostParams, MobileFeedChartDrawingParams, MobileFeedMargin, MobileFeedPage, MobileFeedTrade, MobileFollowBatchResultItem, MobileFollowListAccount, MobileFollowListPage, MobileFollowMutationResult, MobileFollowSummary, MobileIdentitySummary, MobileNotificationCategoryPreference, MobileNotificationPreferenceScope, MobileNotificationPreferences, MobilePositionPresenceParams, MobileProfileSearchPage, MobileProfilesInclude, MobilePublicProfile, MobileRecordFeedViewsParams, MobileRegisterExpoTokenParams, MobileRegisteredWallet, MobileSetAvatarParams, MobileSetBioParams, MobileSetFeedLikeParams, MobileSetFollowBatchParams, MobileSetFollowParams, MobileSetPrivateModeParams, MobileSetUsernameParams, MobileSignedRequestParams, MobileSocialFeedActionCandidate, MobileSocialFeedActionMarker, MobileSocialFeedActionResolutionResult, MobileSocialFeedAuthor, MobileSocialFeedCandle, MobileSocialFeedCapabilities, MobileSocialFeedCategorizedParams, MobileSocialFeedChartRange, MobileSocialFeedCohort, MobileSocialFeedCohortCoverage, MobileSocialFeedCommentPreview, MobileSocialFeedCommentResult, MobileSocialFeedCommentsPage, MobileSocialFeedCompactCard, MobileSocialFeedContentBase, MobileSocialFeedDrawing, MobileSocialFeedDrawingMutationResult, MobileSocialFeedDrawingResult, MobileSocialFeedEstimatedLiquidationLine, MobileSocialFeedHistoryMetrics, MobileSocialFeedHistorySummary, MobileSocialFeedHistoryTake, MobileSocialFeedInteraction, MobileSocialFeedItem, MobileSocialFeedItemBase, MobileSocialFeedItemPatch, MobileSocialFeedItemResponse, MobileSocialFeedLikeResult, MobileSocialFeedListParams, MobileSocialFeedMarket, MobileSocialFeedMentionParams, MobileSocialFeedPage, MobileSocialFeedPnl, MobileSocialFeedPositionAction, MobileSocialFeedPositionCard, MobileSocialFeedPositionChart, MobileSocialFeedPositionHistory, MobileSocialFeedPositionHistoryCard, MobileSocialFeedPositionPatch, MobileSocialFeedPositionResolutionResult, MobileSocialFeedPositionsPage, MobileSocialFeedPost, MobileSocialFeedPresence, MobileSocialFeedPublishablePosition, MobileSocialFeedRankedPage, MobileSocialFeedReadParams, MobileSocialFeedReadSession, MobileSocialFeedReply, MobileSocialFeedTimelineEntry, MobileSocialFeedTopTradersPage, MobileSocialFeedTradeCard, MobileSocialFeedTradeRow, MobileSocialFeedTradeRowBase, MobileSocialFeedTraderBadge, MobileSocialFeedTradingContext, MobileSocialFeedTradingTarget, MobileSocialFeedUpdates, MobileSocialFeedViewTracking, MobileSocialFeedViewsResult, MobileSocialFeedWatchers, MobileUnregisterExpoTokenParams, MobileUpdateNotificationPreferencesParams, MobileUsernameAvailability, MobileWithExpoTokenParams, ResolveMobileFeedActionParams, ResolveMobileFeedPositionParams, SearchMobileProfilesParams };
1
+ import { $ as MobileNotificationPayloadV2, $t as MobileSocialFeedItem, A as GetMobileUsernameAvailabilityParams, An as MobileSocialFeedTradeRowBase, At as MobileSocialFeedCandle, B as MobileFeedMargin, Bn as MobileUpdateNotificationSubscriptionsParams, Bt as MobileSocialFeedCompactCard, C as GetMobilePositionThoughtsParams, Cn as MobileSocialFeedReadParams, Ct as MobileSetPrivateModeParams, D as GetMobileRegisteredWalletParams, Dn as MobileSocialFeedTopTradersPage, Dt as MobileSocialFeedActionMarker, E as GetMobileProfilesParams, En as MobileSocialFeedTimelineEntry, Et as MobileSocialFeedActionCandidate, F as MobileCreateFeedCommentParams, Fn as MobileSocialFeedUploadedImage, Ft as MobileSocialFeedCohortCoverage, G as MobileFollowListPage, Gn as SearchMobileProfilesParams, Gt as MobileSocialFeedEstimatedLiquidationLine, H as MobileFeedTrade, Hn as MobileWithExpoTokenParams, Ht as MobileSocialFeedDrawing, I as MobileCreateFeedImageUploadParams, In as MobileSocialFeedWatchers, It as MobileSocialFeedCommentGroup, J as MobileIdentitySummary, Jt as MobileSocialFeedHistorySummary, K as MobileFollowMutationResult, Kt as MobileSocialFeedExternalImage, L as MobileCreateFeedPostParams, Ln as MobileUnregisterExpoTokenParams, Lt as MobileSocialFeedCommentPreview, M as MobileAvatarSelection, Mn as MobileSocialFeedTradingContext, Mt as MobileSocialFeedCategorizedParams, N as MobileAvatarUpload, Nn as MobileSocialFeedTradingTarget, Nt as MobileSocialFeedChartRange, O as GetMobileSelfFeedPositionsParams, On as MobileSocialFeedTradeCard, Ot as MobileSocialFeedActionResolutionResult, P as MobileCreateAvatarUploadParams, Pn as MobileSocialFeedUpdates, Pt as MobileSocialFeedCohort, Q as MobileNotificationInboxV2, Qt as MobileSocialFeedInteraction, R as MobileFeedChartDrawingParams, Rn as MobileUpdateNotificationPreferencesParams, Rt as MobileSocialFeedCommentResult, S as GetMobilePositionHistoryParams, Sn as MobileSocialFeedRankedPage, St as MobileSetFollowParams, T as GetMobileProfileFeedParams, Tn as MobileSocialFeedReply, Tt as MobileSignedRequestParams, U as MobileFollowBatchResultItem, Un as ResolveMobileFeedActionParams, Ut as MobileSocialFeedDrawingMutationResult, V as MobileFeedPage, Vn as MobileUsernameAvailability, Vt as MobileSocialFeedContentBase, W as MobileFollowListAccount, Wn as ResolveMobileFeedPositionParams, Wt as MobileSocialFeedDrawingResult, X as MobileNotificationCategoryPreference, Xt as MobileSocialFeedImage, Y as MobileNotificationCapabilities, Yt as MobileSocialFeedHistoryTake, Z as MobileNotificationInboxItem, Zt as MobileSocialFeedImageThumbnail, _ as GetMobileNotificationSettingsV2Params, _n as MobileSocialFeedPositionThoughtsPage, _t as MobileRegisteredWallet, a as GetMobileFeedItemParams, an as MobileSocialFeedMarket, at as MobileNotificationSettingsV2, b as GetMobilePositionFeedParams, bn as MobileSocialFeedPresence, bt as MobileSetFeedLikeParams, c as GetMobileFollowListParams, cn as MobileSocialFeedPnl, ct as MobilePositionPresenceParams, d as GetMobileForYouFeedParams, dn as MobileSocialFeedPositionChart, dt as MobileProfilesInclude, en as MobileSocialFeedItemBase, et as MobileNotificationPreferenceScope, f as GetMobileFriendsFeedParams, fn as MobileSocialFeedPositionHistory, ft as MobilePublicProfile, g as GetMobileNotificationRegistrationV2Params, gn as MobileSocialFeedPositionThought, gt as MobileRegisterExpoTokenV2Params, h as GetMobileNotificationPreferencesParams, hn as MobileSocialFeedPositionResolutionResult, ht as MobileRegisterExpoTokenParams, i as GetMobileFeedImageRequestParams, in as MobileSocialFeedListParams, it as MobileNotificationSettings, j as MobileAvatarPreset, jn as MobileSocialFeedTraderBadge, jt as MobileSocialFeedCapabilities, k as GetMobileTopTradersFeedParams, kn as MobileSocialFeedTradeRow, kt as MobileSocialFeedAuthor, l as GetMobileFollowersParams, ln as MobileSocialFeedPositionAction, lt as MobileProductEvent, m as GetMobileNotificationInboxV2Params, mn as MobileSocialFeedPositionPatch, mt as MobileRecordProductEventsParams, n as GetMobileFeedCommentsParams, nn as MobileSocialFeedItemResponse, nt as MobileNotificationRegistrationV2, o as GetMobileFeedParams, on as MobileSocialFeedMentionParams, ot as MobileNotificationSubscriptions, p as GetMobileMarketFeedParams, pn as MobileSocialFeedPositionHistoryCard, pt as MobileRecordFeedViewsParams, q as MobileFollowSummary, qt as MobileSocialFeedHistoryMetrics, r as GetMobileFeedImageBytesParams, rn as MobileSocialFeedLikeResult, rt as MobileNotificationRoute, s as GetMobileFeedUpdatesParams, sn as MobileSocialFeedPage, st as MobileNotificationSubscriptionsUpdate, t as GetMobileFeedChartDrawingParams, tn as MobileSocialFeedItemPatch, tt as MobileNotificationPreferences, u as GetMobileFollowingParams, un as MobileSocialFeedPositionCard, ut as MobileProfileSearchPage, v as GetMobileNotificationSubscriptionsParams, vn as MobileSocialFeedPositionsPage, vt as MobileSetAvatarParams, w as GetMobilePositionWatchersParams, wn as MobileSocialFeedReadSession, wt as MobileSetUsernameParams, x as GetMobilePositionHistoryAllParams, xn as MobileSocialFeedPublishablePosition, xt as MobileSetFollowBatchParams, y as GetMobilePositionChartParams, yn as MobileSocialFeedPost, yt as MobileSetBioParams, z as MobileFeedImageRequest, zn as MobileUpdateNotificationSettingsV2Params, zt as MobileSocialFeedCommentsPage } from "../clientTypes-KpHlCDGZ.cjs";
2
+ export { GetMobileFeedChartDrawingParams, GetMobileFeedCommentsParams, GetMobileFeedImageBytesParams, GetMobileFeedImageRequestParams, GetMobileFeedItemParams, GetMobileFeedParams, GetMobileFeedUpdatesParams, GetMobileFollowListParams, GetMobileFollowersParams, GetMobileFollowingParams, GetMobileForYouFeedParams, GetMobileFriendsFeedParams, GetMobileMarketFeedParams, GetMobileNotificationInboxV2Params, GetMobileNotificationPreferencesParams, GetMobileNotificationRegistrationV2Params, GetMobileNotificationSettingsV2Params, GetMobileNotificationSubscriptionsParams, GetMobilePositionChartParams, GetMobilePositionFeedParams, GetMobilePositionHistoryAllParams, GetMobilePositionHistoryParams, GetMobilePositionThoughtsParams, GetMobilePositionWatchersParams, GetMobileProfileFeedParams, GetMobileProfilesParams, GetMobileRegisteredWalletParams, GetMobileSelfFeedPositionsParams, GetMobileTopTradersFeedParams, GetMobileUsernameAvailabilityParams, MobileAvatarPreset, MobileAvatarSelection, MobileAvatarUpload, MobileCreateAvatarUploadParams, MobileCreateFeedCommentParams, MobileCreateFeedImageUploadParams, MobileCreateFeedPostParams, MobileFeedChartDrawingParams, MobileFeedImageRequest, MobileFeedMargin, MobileFeedPage, MobileFeedTrade, MobileFollowBatchResultItem, MobileFollowListAccount, MobileFollowListPage, MobileFollowMutationResult, MobileFollowSummary, MobileIdentitySummary, MobileNotificationCapabilities, MobileNotificationCategoryPreference, MobileNotificationInboxItem, MobileNotificationInboxV2, MobileNotificationPayloadV2, MobileNotificationPreferenceScope, MobileNotificationPreferences, MobileNotificationRegistrationV2, MobileNotificationRoute, MobileNotificationSettings, MobileNotificationSettingsV2, MobileNotificationSubscriptions, MobileNotificationSubscriptionsUpdate, MobilePositionPresenceParams, MobileProductEvent, MobileProfileSearchPage, MobileProfilesInclude, MobilePublicProfile, MobileRecordFeedViewsParams, MobileRecordProductEventsParams, MobileRegisterExpoTokenParams, MobileRegisterExpoTokenV2Params, MobileRegisteredWallet, MobileSetAvatarParams, MobileSetBioParams, MobileSetFeedLikeParams, MobileSetFollowBatchParams, MobileSetFollowParams, MobileSetPrivateModeParams, MobileSetUsernameParams, MobileSignedRequestParams, MobileSocialFeedActionCandidate, MobileSocialFeedActionMarker, MobileSocialFeedActionResolutionResult, MobileSocialFeedAuthor, MobileSocialFeedCandle, MobileSocialFeedCapabilities, MobileSocialFeedCategorizedParams, MobileSocialFeedChartRange, MobileSocialFeedCohort, MobileSocialFeedCohortCoverage, MobileSocialFeedCommentGroup, MobileSocialFeedCommentPreview, MobileSocialFeedCommentResult, MobileSocialFeedCommentsPage, MobileSocialFeedCompactCard, MobileSocialFeedContentBase, MobileSocialFeedDrawing, MobileSocialFeedDrawingMutationResult, MobileSocialFeedDrawingResult, MobileSocialFeedEstimatedLiquidationLine, MobileSocialFeedExternalImage, MobileSocialFeedHistoryMetrics, MobileSocialFeedHistorySummary, MobileSocialFeedHistoryTake, MobileSocialFeedImage, MobileSocialFeedImageThumbnail, MobileSocialFeedInteraction, MobileSocialFeedItem, MobileSocialFeedItemBase, MobileSocialFeedItemPatch, MobileSocialFeedItemResponse, MobileSocialFeedLikeResult, MobileSocialFeedListParams, MobileSocialFeedMarket, MobileSocialFeedMentionParams, MobileSocialFeedPage, MobileSocialFeedPnl, MobileSocialFeedPositionAction, MobileSocialFeedPositionCard, MobileSocialFeedPositionChart, MobileSocialFeedPositionHistory, MobileSocialFeedPositionHistoryCard, MobileSocialFeedPositionPatch, MobileSocialFeedPositionResolutionResult, MobileSocialFeedPositionThought, MobileSocialFeedPositionThoughtsPage, MobileSocialFeedPositionsPage, MobileSocialFeedPost, MobileSocialFeedPresence, MobileSocialFeedPublishablePosition, MobileSocialFeedRankedPage, MobileSocialFeedReadParams, MobileSocialFeedReadSession, MobileSocialFeedReply, MobileSocialFeedTimelineEntry, MobileSocialFeedTopTradersPage, MobileSocialFeedTradeCard, MobileSocialFeedTradeRow, MobileSocialFeedTradeRowBase, MobileSocialFeedTraderBadge, MobileSocialFeedTradingContext, MobileSocialFeedTradingTarget, MobileSocialFeedUpdates, MobileSocialFeedUploadedImage, MobileSocialFeedWatchers, MobileUnregisterExpoTokenParams, MobileUpdateNotificationPreferencesParams, MobileUpdateNotificationSettingsV2Params, MobileUpdateNotificationSubscriptionsParams, MobileUsernameAvailability, MobileWithExpoTokenParams, ResolveMobileFeedActionParams, ResolveMobileFeedPositionParams, SearchMobileProfilesParams };