@nadohq/mobile-client 0.54.0 → 0.56.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 (175) hide show
  1. package/README.md +4 -4
  2. package/dist/{MobileClient-BbTaqTzi.cjs → MobileClient-DjNpN7Dw.cjs} +55 -4
  3. package/dist/MobileClient-DjNpN7Dw.cjs.map +1 -0
  4. package/dist/MobileClient.cjs +1 -1
  5. package/dist/MobileClient.d.cts +49 -9
  6. package/dist/MobileClient.d.cts.map +1 -1
  7. package/dist/MobileClient.d.ts +49 -9
  8. package/dist/MobileClient.d.ts.map +1 -1
  9. package/dist/MobileClient.js +55 -4
  10. package/dist/MobileClient.js.map +1 -1
  11. package/dist/{MobileServerFailureError-B2og8e5O.d.ts → MobileServerFailureError-DvtkMAVX.d.ts} +3 -3
  12. package/dist/{MobileServerFailureError-B2og8e5O.d.ts.map → MobileServerFailureError-DvtkMAVX.d.ts.map} +1 -1
  13. package/dist/{MobileServerFailureError-BrLtaHnU.d.cts → MobileServerFailureError-kbMi1Ntc.d.cts} +3 -3
  14. package/dist/{MobileServerFailureError-BrLtaHnU.d.cts.map → MobileServerFailureError-kbMi1Ntc.d.cts.map} +1 -1
  15. package/dist/{buildSignedMobileRequest-CZ-EdxYI.d.cts → buildSignedMobileRequest-DBWN0z0u.d.cts} +2 -2
  16. package/dist/{buildSignedMobileRequest-CZ-EdxYI.d.cts.map → buildSignedMobileRequest-DBWN0z0u.d.cts.map} +1 -1
  17. package/dist/{buildSignedMobileRequest-CoAVSDPx.d.ts → buildSignedMobileRequest-lSIJmG6D.d.ts} +2 -2
  18. package/dist/{buildSignedMobileRequest-CoAVSDPx.d.ts.map → buildSignedMobileRequest-lSIJmG6D.d.ts.map} +1 -1
  19. package/dist/{canonicalize-BC-JICjp.d.ts → canonicalize-Cx3lCVpm.d.ts} +2 -2
  20. package/dist/canonicalize-Cx3lCVpm.d.ts.map +1 -0
  21. package/dist/{canonicalize-0_B6UOxO.d.cts → canonicalize-DNgB8Jsm.d.cts} +2 -2
  22. package/dist/canonicalize-DNgB8Jsm.d.cts.map +1 -0
  23. package/dist/{clientTypes-YF5d8bvg.d.cts → clientTypes-DnPE1zZO.d.cts} +64 -12
  24. package/dist/clientTypes-DnPE1zZO.d.cts.map +1 -0
  25. package/dist/{clientTypes-P4LAjreY.d.ts → clientTypes-ws9CDHw4.d.ts} +64 -12
  26. package/dist/clientTypes-ws9CDHw4.d.ts.map +1 -0
  27. package/dist/dataMappers.cjs +39 -3
  28. package/dist/dataMappers.cjs.map +1 -1
  29. package/dist/dataMappers.d.cts +18 -6
  30. package/dist/dataMappers.d.cts.map +1 -1
  31. package/dist/dataMappers.d.ts +18 -6
  32. package/dist/dataMappers.d.ts.map +1 -1
  33. package/dist/dataMappers.js +37 -4
  34. package/dist/dataMappers.js.map +1 -1
  35. package/dist/{eip712MethodByType-DWtLyPY7.d.ts → eip712MethodByType-Bmu9PYx6.d.ts} +2 -2
  36. package/dist/eip712MethodByType-Bmu9PYx6.d.ts.map +1 -0
  37. package/dist/{eip712MethodByType-sHQ-VTHd.d.cts → eip712MethodByType-T7dfjmC_.d.cts} +2 -2
  38. package/dist/eip712MethodByType-T7dfjmC_.d.cts.map +1 -0
  39. package/dist/index.cjs +5 -1
  40. package/dist/index.d.cts +16 -15
  41. package/dist/index.d.ts +16 -15
  42. package/dist/index.js +2 -1
  43. package/dist/{mobileErrorCodes-DccrM4NI.d.ts → mobileErrorCodes-B3kTLit_.d.cts} +4 -2
  44. package/dist/mobileErrorCodes-B3kTLit_.d.cts.map +1 -0
  45. package/dist/{mobileErrorCodes-DccrM4NI.d.cts → mobileErrorCodes-B3kTLit_.d.ts} +4 -2
  46. package/dist/mobileErrorCodes-B3kTLit_.d.ts.map +1 -0
  47. package/dist/{payloadHash-CSgTglN4.d.cts → payloadHash-Brc5ceFq.d.cts} +2 -2
  48. package/dist/payloadHash-Brc5ceFq.d.cts.map +1 -0
  49. package/dist/{payloadHash-qsU1DEF0.d.ts → payloadHash-cZgv7NSo.d.ts} +2 -2
  50. package/dist/payloadHash-cZgv7NSo.d.ts.map +1 -0
  51. package/dist/profile-BozA3yVP.d.cts +16 -0
  52. package/dist/profile-BozA3yVP.d.cts.map +1 -0
  53. package/dist/profile-BozA3yVP.d.ts +16 -0
  54. package/dist/profile-BozA3yVP.d.ts.map +1 -0
  55. package/dist/{serverBaseTypes-DKCLDn3x.d.ts → serverBaseTypes-CWBdZomv.d.ts} +2 -2
  56. package/dist/{serverBaseTypes-DKCLDn3x.d.ts.map → serverBaseTypes-CWBdZomv.d.ts.map} +1 -1
  57. package/dist/{serverBaseTypes-CuMsGXgc.d.cts → serverBaseTypes-CcWT_ZBe.d.cts} +2 -2
  58. package/dist/{serverBaseTypes-CuMsGXgc.d.cts.map → serverBaseTypes-CcWT_ZBe.d.cts.map} +1 -1
  59. package/dist/{serverExecuteTypes-TPX0GCgv.d.cts → serverExecuteTypes-CgjzwBaA.d.cts} +24 -5
  60. package/dist/serverExecuteTypes-CgjzwBaA.d.cts.map +1 -0
  61. package/dist/{serverExecuteTypes-DKG1mqy1.d.ts → serverExecuteTypes-jyr5aO5q.d.ts} +24 -5
  62. package/dist/serverExecuteTypes-jyr5aO5q.d.ts.map +1 -0
  63. package/dist/{serverModelTypes-MlqdaMRd.d.ts → serverModelTypes-DAqEyYtB.d.cts} +25 -7
  64. package/dist/serverModelTypes-DAqEyYtB.d.cts.map +1 -0
  65. package/dist/{serverModelTypes-MlqdaMRd.d.cts → serverModelTypes-DAqEyYtB.d.ts} +25 -7
  66. package/dist/serverModelTypes-DAqEyYtB.d.ts.map +1 -0
  67. package/dist/{serverQueryTypes-BLUe10AI.d.ts → serverQueryTypes-DPRP61yA.d.ts} +14 -5
  68. package/dist/serverQueryTypes-DPRP61yA.d.ts.map +1 -0
  69. package/dist/{serverQueryTypes-BZOoJBpb.d.cts → serverQueryTypes-H_mI6fPl.d.cts} +14 -5
  70. package/dist/serverQueryTypes-H_mI6fPl.d.cts.map +1 -0
  71. package/dist/{serverRequestTypes-BULjZnnz.d.ts → serverRequestTypes-BY0f5woc.d.ts} +5 -3
  72. package/dist/serverRequestTypes-BY0f5woc.d.ts.map +1 -0
  73. package/dist/{serverRequestTypes-XbnLUsXT.d.cts → serverRequestTypes-DGGqQMK3.d.cts} +5 -3
  74. package/dist/serverRequestTypes-DGGqQMK3.d.cts.map +1 -0
  75. package/dist/{serverResponseGuards-DY_8lAo7.d.ts → serverResponseGuards-BGHTBbtz.d.ts} +2 -2
  76. package/dist/{serverResponseGuards-DY_8lAo7.d.ts.map → serverResponseGuards-BGHTBbtz.d.ts.map} +1 -1
  77. package/dist/{serverResponseGuards-DIj9MIrJ.d.cts → serverResponseGuards-DGhrUL_c.d.cts} +2 -2
  78. package/dist/{serverResponseGuards-DIj9MIrJ.d.cts.map → serverResponseGuards-DGhrUL_c.d.cts.map} +1 -1
  79. package/dist/signing/buildSignedMobileRequest.d.cts +1 -1
  80. package/dist/signing/buildSignedMobileRequest.d.ts +1 -1
  81. package/dist/signing/canonicalize.cjs +25 -0
  82. package/dist/signing/canonicalize.cjs.map +1 -1
  83. package/dist/signing/canonicalize.d.cts +1 -1
  84. package/dist/signing/canonicalize.d.ts +1 -1
  85. package/dist/signing/canonicalize.js +25 -0
  86. package/dist/signing/canonicalize.js.map +1 -1
  87. package/dist/signing/eip712MethodByType.cjs +3 -0
  88. package/dist/signing/eip712MethodByType.cjs.map +1 -1
  89. package/dist/signing/eip712MethodByType.d.cts +1 -1
  90. package/dist/signing/eip712MethodByType.d.ts +1 -1
  91. package/dist/signing/eip712MethodByType.js +3 -0
  92. package/dist/signing/eip712MethodByType.js.map +1 -1
  93. package/dist/signing/index.d.cts +5 -5
  94. package/dist/signing/index.d.ts +5 -5
  95. package/dist/signing/payloadHash.d.cts +1 -1
  96. package/dist/signing/payloadHash.d.ts +1 -1
  97. package/dist/signing/types.d.cts +1 -1
  98. package/dist/signing/types.d.ts +1 -1
  99. package/dist/types/MobileServerFailureError.d.cts +1 -1
  100. package/dist/types/MobileServerFailureError.d.ts +1 -1
  101. package/dist/types/clientTypes.d.cts +2 -2
  102. package/dist/types/clientTypes.d.ts +2 -2
  103. package/dist/types/index.d.cts +9 -9
  104. package/dist/types/index.d.ts +9 -9
  105. package/dist/types/mobileErrorCodes.cjs +4 -0
  106. package/dist/types/mobileErrorCodes.cjs.map +1 -1
  107. package/dist/types/mobileErrorCodes.d.cts +1 -1
  108. package/dist/types/mobileErrorCodes.d.ts +1 -1
  109. package/dist/types/mobileErrorCodes.js +4 -0
  110. package/dist/types/mobileErrorCodes.js.map +1 -1
  111. package/dist/types/serverBaseTypes.d.cts +1 -1
  112. package/dist/types/serverBaseTypes.d.ts +1 -1
  113. package/dist/types/serverExecuteTypes.d.cts +2 -2
  114. package/dist/types/serverExecuteTypes.d.ts +2 -2
  115. package/dist/types/serverModelTypes.cjs.map +1 -1
  116. package/dist/types/serverModelTypes.d.cts +2 -2
  117. package/dist/types/serverModelTypes.d.ts +2 -2
  118. package/dist/types/serverModelTypes.js.map +1 -1
  119. package/dist/types/serverQueryTypes.d.cts +2 -2
  120. package/dist/types/serverQueryTypes.d.ts +2 -2
  121. package/dist/types/serverRequestTypes.d.cts +1 -1
  122. package/dist/types/serverRequestTypes.d.ts +1 -1
  123. package/dist/{types-B_4veFLc.d.ts → types-B021odcS.d.ts} +12 -3
  124. package/dist/types-B021odcS.d.ts.map +1 -0
  125. package/dist/{types-CwpXP7xM.d.cts → types-l47aSWtA.d.cts} +12 -3
  126. package/dist/types-l47aSWtA.d.cts.map +1 -0
  127. package/dist/utils/index.cjs +4 -0
  128. package/dist/utils/index.d.cts +3 -2
  129. package/dist/utils/index.d.ts +3 -2
  130. package/dist/utils/index.js +2 -1
  131. package/dist/utils/profile.cjs +22 -0
  132. package/dist/utils/profile.cjs.map +1 -0
  133. package/dist/utils/profile.d.cts +2 -0
  134. package/dist/utils/profile.d.ts +2 -0
  135. package/dist/utils/profile.js +19 -0
  136. package/dist/utils/profile.js.map +1 -0
  137. package/dist/utils/serverResponseGuards.d.cts +1 -1
  138. package/dist/utils/serverResponseGuards.d.ts +1 -1
  139. package/package.json +3 -3
  140. package/src/MobileClient.ts +85 -3
  141. package/src/dataMappers.ts +49 -4
  142. package/src/signing/canonicalize.ts +20 -0
  143. package/src/signing/eip712MethodByType.ts +3 -0
  144. package/src/signing/signing.test.ts +67 -1
  145. package/src/signing/types.ts +10 -1
  146. package/src/types/clientTypes.ts +73 -9
  147. package/src/types/mobileErrorCodes.ts +4 -0
  148. package/src/types/serverExecuteTypes.ts +21 -1
  149. package/src/types/serverModelTypes.ts +31 -5
  150. package/src/types/serverQueryTypes.ts +11 -0
  151. package/src/types/serverRequestTypes.ts +2 -0
  152. package/src/utils/index.ts +1 -0
  153. package/src/utils/profile.test.ts +22 -0
  154. package/src/utils/profile.ts +16 -0
  155. package/dist/MobileClient-BbTaqTzi.cjs.map +0 -1
  156. package/dist/canonicalize-0_B6UOxO.d.cts.map +0 -1
  157. package/dist/canonicalize-BC-JICjp.d.ts.map +0 -1
  158. package/dist/clientTypes-P4LAjreY.d.ts.map +0 -1
  159. package/dist/clientTypes-YF5d8bvg.d.cts.map +0 -1
  160. package/dist/eip712MethodByType-DWtLyPY7.d.ts.map +0 -1
  161. package/dist/eip712MethodByType-sHQ-VTHd.d.cts.map +0 -1
  162. package/dist/mobileErrorCodes-DccrM4NI.d.cts.map +0 -1
  163. package/dist/mobileErrorCodes-DccrM4NI.d.ts.map +0 -1
  164. package/dist/payloadHash-CSgTglN4.d.cts.map +0 -1
  165. package/dist/payloadHash-qsU1DEF0.d.ts.map +0 -1
  166. package/dist/serverExecuteTypes-DKG1mqy1.d.ts.map +0 -1
  167. package/dist/serverExecuteTypes-TPX0GCgv.d.cts.map +0 -1
  168. package/dist/serverModelTypes-MlqdaMRd.d.cts.map +0 -1
  169. package/dist/serverModelTypes-MlqdaMRd.d.ts.map +0 -1
  170. package/dist/serverQueryTypes-BLUe10AI.d.ts.map +0 -1
  171. package/dist/serverQueryTypes-BZOoJBpb.d.cts.map +0 -1
  172. package/dist/serverRequestTypes-BULjZnnz.d.ts.map +0 -1
  173. package/dist/serverRequestTypes-XbnLUsXT.d.cts.map +0 -1
  174. package/dist/types-B_4veFLc.d.ts.map +0 -1
  175. package/dist/types-CwpXP7xM.d.cts.map +0 -1
package/dist/index.d.cts CHANGED
@@ -1,21 +1,22 @@
1
- import { $ as MobileSocialFeedTraderDataStatus, A as MobileServerSocialFeedPositionCard, B as MobileSocialFeedLeverage, C as MobileServerSocialFeedCommentPreview, D as MobileServerSocialFeedItemPatch, E as MobileServerSocialFeedItemBase, F as MobileServerSocialFeedTradeRowBase, G as MobileSocialFeedPositionDisplayBasis, H as MobileSocialFeedPnlBasis, I as MobileServerSocialFeedTraderBadge, J as MobileSocialFeedSourceCategory, K as MobileSocialFeedPositionState, L as MobileServerSocialFeedViewTracking, M as MobileServerSocialFeedReadSession, N as MobileServerSocialFeedTradeCard, O as MobileServerSocialFeedMarket, P as MobileServerSocialFeedTradeRow, Q as MobileSocialFeedTraderBadgeCode, R as MobileSocialFeedCohortStatus, S as MobileServerSocialFeedCohortCoverage, T as MobileServerSocialFeedItem, U as MobileSocialFeedPnlMode, V as MobileSocialFeedMarketCategory, W as MobileSocialFeedPnlQuality, X as MobileSocialFeedTradeCardAction, Y as MobileSocialFeedTargetType, Z as MobileSocialFeedTradeSizeChangeAction, _ as MobileServerNotificationPreferences, a as MobileFeedTradePosition, b as MobileServerSocialFeedCapabilities, c as MobileNotificationCategory, d as MobileServerFeedTrade, et as MobileSocialFeedType, f as MobileServerFollowListAccount, g as MobileServerNotificationPreferenceScope, h as MobileServerNotificationCategoryPreference, i as MobileFeedMarginMode, j as MobileServerSocialFeedPositionPatch, k as MobileServerSocialFeedPnl, l as MobileNotificationPlatform, m as MobileServerIdentitySummary, n as MOBILE_FEED_TRADE_POSITION_DIRECTIONS, o as MobileFeedTradePositionDirection, p as MobileServerFollowSummary, q as MobileSocialFeedReadSessionMode, r as MOBILE_FEED_TRADE_POSITION_EFFECTS, s as MobileFeedTradePositionEffect, t as MOBILE_FEED_MARGIN_MODES, tt as MobileSocialFeedUnavailableTarget, u as MobileServerFeedMargin, v as MobileServerProfile, w as MobileServerSocialFeedInteraction, x as MobileServerSocialFeedCohort, y as MobileServerSocialFeedAuthor, z as MobileSocialFeedHistoryQuality } from "./serverModelTypes-MlqdaMRd.cjs";
2
- import { $ as MobileSocialFeedRankedPage, A as MobileRegisterExpoTokenParams, B as MobileSocialFeedCohortCoverage, C as MobileFollowSummary, D as MobileNotificationPreferences, E as MobileNotificationPreferenceScope, F as MobileSignedRequestParams, G as MobileSocialFeedItemPatch, H as MobileSocialFeedInteraction, I as MobileSocialFeedAuthor, J as MobileSocialFeedMarket, K as MobileSocialFeedItemResponse, L as MobileSocialFeedCapabilities, M as MobileSetFollowParams, N as MobileSetPrivateModeParams, O as MobileProfilesInclude, P as MobileSetUsernameParams, Q as MobileSocialFeedPositionPatch, R as MobileSocialFeedCategorizedParams, S as MobileFollowMutationResult, T as MobileNotificationCategoryPreference, U as MobileSocialFeedItem, V as MobileSocialFeedCommentPreview, W as MobileSocialFeedItemBase, X as MobileSocialFeedPnl, Y as MobileSocialFeedPage, Z as MobileSocialFeedPositionCard, _ as MobileFeedMargin, a as GetMobileFollowersParams, at as MobileSocialFeedTradeRowBase, b as MobileFollowListAccount, c as GetMobileFriendsFeedParams, ct as MobileSocialFeedViewTracking, d as GetMobilePositionFeedParams, dt as MobileUsernameAvailability, et as MobileSocialFeedReadParams, f as GetMobileProfileFeedParams, ft as MobileWithExpoTokenParams, g as GetMobileUsernameAvailabilityParams, h as GetMobileTopTradersFeedParams, i as GetMobileFollowListParams, it as MobileSocialFeedTradeRow, j as MobileRegisteredWallet, k as MobilePublicProfile, l as GetMobileMarketFeedParams, lt as MobileUnregisterExpoTokenParams, m as GetMobileRegisteredWalletParams, n as GetMobileFeedParams, nt as MobileSocialFeedTopTradersPage, o as GetMobileFollowingParams, ot as MobileSocialFeedTraderBadge, p as GetMobileProfilesParams, q as MobileSocialFeedListParams, r as GetMobileFeedUpdatesParams, rt as MobileSocialFeedTradeCard, s as GetMobileForYouFeedParams, st as MobileSocialFeedUpdates, t as GetMobileFeedItemParams, tt as MobileSocialFeedReadSession, u as GetMobileNotificationPreferencesParams, ut as MobileUpdateNotificationPreferencesParams, v as MobileFeedPage, w as MobileIdentitySummary, x as MobileFollowListPage, y as MobileFeedTrade, z as MobileSocialFeedCohort } from "./clientTypes-YF5d8bvg.cjs";
3
- import { a as MobileSignedRequest, i as MobileSignedInnerParams, n as MobileSignedInner, r as MobileSignedInnerByType, t as BuildSignedMobileRequestParams } from "./types-CwpXP7xM.cjs";
4
- import { t as buildSignedMobileRequest } from "./buildSignedMobileRequest-CZ-EdxYI.cjs";
5
- import { t as canonicalizeMobileInner } from "./canonicalize-0_B6UOxO.cjs";
6
- import { t as MOBILE_EIP712_METHOD_BY_TYPE } from "./eip712MethodByType-sHQ-VTHd.cjs";
1
+ import { $ as MobileSocialFeedTradeSizeChangeAction, A as MobileServerSocialFeedMarket, B as MobileSocialFeedCohortStatus, C as MobileServerSocialFeedCohort, D as MobileServerSocialFeedItem, E as MobileServerSocialFeedInteraction, F as MobileServerSocialFeedTradeCard, G as MobileSocialFeedPnlMode, H as MobileSocialFeedLeverage, I as MobileServerSocialFeedTradeRow, J as MobileSocialFeedPositionState, K as MobileSocialFeedPnlQuality, L as MobileServerSocialFeedTradeRowBase, M as MobileServerSocialFeedPositionCard, N as MobileServerSocialFeedPositionPatch, O as MobileServerSocialFeedItemBase, P as MobileServerSocialFeedReadSession, Q as MobileSocialFeedTradeCardAction, R as MobileServerSocialFeedTraderBadge, S as MobileServerSocialFeedCapabilities, T as MobileServerSocialFeedCommentPreview, U as MobileSocialFeedMarketCategory, V as MobileSocialFeedHistoryQuality, W as MobileSocialFeedPnlBasis, X as MobileSocialFeedSourceCategory, Y as MobileSocialFeedReadSessionMode, Z as MobileSocialFeedTargetType, _ as MobileServerNotificationCategoryPreference, a as MobileFeedTradePosition, b as MobileServerProfile, c as MobileNotificationCategory, d as MobileServerAvatarSelection, et as MobileSocialFeedTraderBadgeCode, f as MobileServerFeedMargin, g as MobileServerIdentitySummary, h as MobileServerFollowSummary, i as MobileFeedMarginMode, j as MobileServerSocialFeedPnl, k as MobileServerSocialFeedItemPatch, l as MobileNotificationPlatform, m as MobileServerFollowListAccount, n as MOBILE_FEED_TRADE_POSITION_DIRECTIONS, nt as MobileSocialFeedType, o as MobileFeedTradePositionDirection, p as MobileServerFeedTrade, q as MobileSocialFeedPositionDisplayBasis, r as MOBILE_FEED_TRADE_POSITION_EFFECTS, rt as MobileSocialFeedUnavailableTarget, s as MobileFeedTradePositionEffect, t as MOBILE_FEED_MARGIN_MODES, tt as MobileSocialFeedTraderDataStatus, u as MobileServerAvatarPreset, v as MobileServerNotificationPreferenceScope, w as MobileServerSocialFeedCohortCoverage, x as MobileServerSocialFeedAuthor, y as MobileServerNotificationPreferences, z as MobileServerSocialFeedViewTracking } from "./serverModelTypes-DAqEyYtB.cjs";
2
+ import { $ as MobileSocialFeedListParams, A as MobileNotificationPreferenceScope, B as MobileSetUsernameParams, C as MobileFeedTrade, D as MobileFollowSummary, E as MobileFollowMutationResult, F as MobileRegisteredWallet, G as MobileSocialFeedCohort, H as MobileSocialFeedAuthor, I as MobileSetAvatarParams, J as MobileSocialFeedInteraction, K as MobileSocialFeedCohortCoverage, L as MobileSetBioParams, M as MobileProfilesInclude, N as MobilePublicProfile, O as MobileIdentitySummary, P as MobileRegisterExpoTokenParams, Q as MobileSocialFeedItemResponse, R as MobileSetFollowParams, S as MobileFeedPage, T as MobileFollowListPage, U as MobileSocialFeedCapabilities, V as MobileSignedRequestParams, W as MobileSocialFeedCategorizedParams, X as MobileSocialFeedItemBase, Y as MobileSocialFeedItem, Z as MobileSocialFeedItemPatch, _ as MobileAvatarPreset, _t as MobileUsernameAvailability, a as GetMobileFollowersParams, at as MobileSocialFeedRankedPage, b as MobileCreateAvatarUploadParams, c as GetMobileFriendsFeedParams, ct as MobileSocialFeedTopTradersPage, d as GetMobilePositionFeedParams, dt as MobileSocialFeedTradeRowBase, et as MobileSocialFeedMarket, f as GetMobileProfileFeedParams, ft as MobileSocialFeedTraderBadge, g as GetMobileUsernameAvailabilityParams, gt as MobileUpdateNotificationPreferencesParams, h as GetMobileTopTradersFeedParams, ht as MobileUnregisterExpoTokenParams, i as GetMobileFollowListParams, it as MobileSocialFeedPositionPatch, j as MobileNotificationPreferences, k as MobileNotificationCategoryPreference, l as GetMobileMarketFeedParams, lt as MobileSocialFeedTradeCard, m as GetMobileRegisteredWalletParams, mt as MobileSocialFeedViewTracking, n as GetMobileFeedParams, nt as MobileSocialFeedPnl, o as GetMobileFollowingParams, ot as MobileSocialFeedReadParams, p as GetMobileProfilesParams, pt as MobileSocialFeedUpdates, q as MobileSocialFeedCommentPreview, r as GetMobileFeedUpdatesParams, rt as MobileSocialFeedPositionCard, s as GetMobileForYouFeedParams, st as MobileSocialFeedReadSession, t as GetMobileFeedItemParams, tt as MobileSocialFeedPage, u as GetMobileNotificationPreferencesParams, ut as MobileSocialFeedTradeRow, v as MobileAvatarSelection, vt as MobileWithExpoTokenParams, w as MobileFollowListAccount, x as MobileFeedMargin, y as MobileAvatarUpload, z as MobileSetPrivateModeParams } from "./clientTypes-DnPE1zZO.cjs";
3
+ import { a as MobileSignedRequest, i as MobileSignedInnerParams, n as MobileSignedInner, r as MobileSignedInnerByType, t as BuildSignedMobileRequestParams } from "./types-l47aSWtA.cjs";
4
+ import { t as buildSignedMobileRequest } from "./buildSignedMobileRequest-DBWN0z0u.cjs";
5
+ import { t as canonicalizeMobileInner } from "./canonicalize-DNgB8Jsm.cjs";
6
+ import { t as MOBILE_EIP712_METHOD_BY_TYPE } from "./eip712MethodByType-T7dfjmC_.cjs";
7
7
  import { t as getMobileNonce } from "./nonce-7swNuPgu.cjs";
8
- import { t as getMobilePayloadHash } from "./payloadHash-CSgTglN4.cjs";
9
- import { a as MobileServerPublicExecuteRequestType, c as MobileServerRequestType, d as MobileServerSocialFeedReadParams, i as MobileServerPublicExecuteRequestByType, l as MobileServerSocialFeedCategorizedParams, n as MobileServerFollowListRequest, o as MobileServerPublicQueryRequestByType, r as MobileServerProfilesInclude, s as MobileServerPublicQueryRequestType, t as MobileServerExecuteRequestType, u as MobileServerSocialFeedListParams } from "./serverRequestTypes-XbnLUsXT.cjs";
10
- import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "./serverBaseTypes-CuMsGXgc.cjs";
11
- import { a as MobileServerFollowMutationResponse, i as MobileServerExecuteSuccessResponse, n as MobileServerExecuteResponseByType, o as MobileServerPublicExecuteRequest, r as MobileServerExecuteResult, t as MobileServerEmptyExecuteResponse } from "./serverExecuteTypes-TPX0GCgv.cjs";
12
- import { a as MobileServerPublicQueryRequest, c as MobileServerRegisteredWalletResponse, d as MobileServerSocialFeedResponse, f as MobileServerSocialFeedTopTradersResponse, i as MobileServerProfilesResponse, l as MobileServerSocialFeedItemResponse, m as MobileServerUsernameAvailabilityResponse, n as MobileServerFollowListResponse, o as MobileServerPublicQueryResponseByType, p as MobileServerSocialFeedUpdatesResponse, r as MobileServerNotificationPreferencesResponse, s as MobileServerPublicQuerySuccessResponse, t as MobileServerFeedResponse, u as MobileServerSocialFeedRankedResponse } from "./serverQueryTypes-BZOoJBpb.cjs";
8
+ import { t as getMobilePayloadHash } from "./payloadHash-Brc5ceFq.cjs";
9
+ import { a as MobileServerPublicExecuteRequestType, c as MobileServerRequestType, d as MobileServerSocialFeedReadParams, i as MobileServerPublicExecuteRequestByType, l as MobileServerSocialFeedCategorizedParams, n as MobileServerFollowListRequest, o as MobileServerPublicQueryRequestByType, r as MobileServerProfilesInclude, s as MobileServerPublicQueryRequestType, t as MobileServerExecuteRequestType, u as MobileServerSocialFeedListParams } from "./serverRequestTypes-DGGqQMK3.cjs";
10
+ import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "./serverBaseTypes-CcWT_ZBe.cjs";
11
+ import { a as MobileServerExecuteSuccessResponse, i as MobileServerExecuteResult, n as MobileServerEmptyExecuteResponse, o as MobileServerFollowMutationResponse, r as MobileServerExecuteResponseByType, s as MobileServerPublicExecuteRequest, t as MobileServerAvatarUploadResponse } from "./serverExecuteTypes-CgjzwBaA.cjs";
12
+ import { a as MobileServerProfilesResponse, c as MobileServerPublicQuerySuccessResponse, d as MobileServerSocialFeedRankedResponse, f as MobileServerSocialFeedResponse, h as MobileServerUsernameAvailabilityResponse, i as MobileServerNotificationPreferencesResponse, l as MobileServerRegisteredWalletResponse, m as MobileServerSocialFeedUpdatesResponse, n as MobileServerFeedResponse, o as MobileServerPublicQueryRequest, p as MobileServerSocialFeedTopTradersResponse, r as MobileServerFollowListResponse, s as MobileServerPublicQueryResponseByType, t as MobileServerAvatarPresetsResponse, u as MobileServerSocialFeedItemResponse } from "./serverQueryTypes-H_mI6fPl.cjs";
13
13
  import { MobileClient, MobileClientOpts } from "./MobileClient.cjs";
14
14
  import { MOBILE_CLIENT_ENDPOINTS } from "./endpoints.cjs";
15
- import { n as MobileErrorCode, t as MOBILE_ERROR_CODES } from "./mobileErrorCodes-DccrM4NI.cjs";
16
- import { t as MobileServerFailureError } from "./MobileServerFailureError-BrLtaHnU.cjs";
15
+ import { n as MobileErrorCode, t as MOBILE_ERROR_CODES } from "./mobileErrorCodes-B3kTLit_.cjs";
16
+ import { t as MobileServerFailureError } from "./MobileServerFailureError-kbMi1Ntc.cjs";
17
17
  import { n as MOBILE_FEED_MIN_NOTIONAL_FLOOR, t as MOBILE_FEED_MAX_PAGE_SIZE } from "./feed-DTJlsg8W.cjs";
18
18
  import { i as MOBILE_PROFILES_MAX_BATCH_SIZE, n as MOBILE_FOLLOW_LIST_DEFAULT_PAGE_SIZE, r as MOBILE_FOLLOW_LIST_MAX_PAGE_SIZE, t as MOBILE_FOLLOWED_BY_PREVIEW_LIMIT } from "./follow-D6Mg8GHx.cjs";
19
19
  import { t as MOBILE_DISPLAY_NAME_PATTERN } from "./patterns-BE0Audp5.cjs";
20
- import { n as isMobileServerSuccessResponse, t as isMobileServerFailureResponse } from "./serverResponseGuards-DIj9MIrJ.cjs";
21
- export { BuildSignedMobileRequestParams, GetMobileFeedItemParams, GetMobileFeedParams, GetMobileFeedUpdatesParams, GetMobileFollowListParams, GetMobileFollowersParams, GetMobileFollowingParams, GetMobileForYouFeedParams, GetMobileFriendsFeedParams, GetMobileMarketFeedParams, GetMobileNotificationPreferencesParams, GetMobilePositionFeedParams, GetMobileProfileFeedParams, GetMobileProfilesParams, GetMobileRegisteredWalletParams, GetMobileTopTradersFeedParams, GetMobileUsernameAvailabilityParams, MOBILE_CLIENT_ENDPOINTS, MOBILE_DISPLAY_NAME_PATTERN, MOBILE_EIP712_METHOD_BY_TYPE, MOBILE_ERROR_CODES, MOBILE_FEED_MARGIN_MODES, MOBILE_FEED_MAX_PAGE_SIZE, MOBILE_FEED_MIN_NOTIONAL_FLOOR, MOBILE_FEED_TRADE_POSITION_DIRECTIONS, MOBILE_FEED_TRADE_POSITION_EFFECTS, MOBILE_FOLLOWED_BY_PREVIEW_LIMIT, MOBILE_FOLLOW_LIST_DEFAULT_PAGE_SIZE, MOBILE_FOLLOW_LIST_MAX_PAGE_SIZE, MOBILE_PROFILES_MAX_BATCH_SIZE, MobileClient, MobileClientOpts, MobileErrorCode, MobileFeedMargin, MobileFeedMarginMode, MobileFeedPage, MobileFeedTrade, MobileFeedTradePosition, MobileFeedTradePositionDirection, MobileFeedTradePositionEffect, MobileFollowListAccount, MobileFollowListPage, MobileFollowMutationResult, MobileFollowSummary, MobileIdentitySummary, MobileNotificationCategory, MobileNotificationCategoryPreference, MobileNotificationPlatform, MobileNotificationPreferenceScope, MobileNotificationPreferences, MobileProfilesInclude, MobilePublicProfile, MobileRegisterExpoTokenParams, MobileRegisteredWallet, MobileServerEmptyExecuteResponse, MobileServerExecuteRequestType, MobileServerExecuteResponseByType, MobileServerExecuteResult, MobileServerExecuteSuccessResponse, MobileServerFailureError, MobileServerFailureResponse, MobileServerFeedMargin, MobileServerFeedResponse, MobileServerFeedTrade, MobileServerFollowListAccount, MobileServerFollowListRequest, MobileServerFollowListResponse, MobileServerFollowMutationResponse, MobileServerFollowSummary, MobileServerIdentitySummary, MobileServerNotificationCategoryPreference, MobileServerNotificationPreferenceScope, MobileServerNotificationPreferences, MobileServerNotificationPreferencesResponse, MobileServerProfile, MobileServerProfilesInclude, MobileServerProfilesResponse, MobileServerPublicExecuteRequest, MobileServerPublicExecuteRequestByType, MobileServerPublicExecuteRequestType, MobileServerPublicQueryRequest, MobileServerPublicQueryRequestByType, MobileServerPublicQueryRequestType, MobileServerPublicQueryResponseByType, MobileServerPublicQuerySuccessResponse, MobileServerRegisteredWalletResponse, MobileServerRequestType, MobileServerSocialFeedAuthor, MobileServerSocialFeedCapabilities, MobileServerSocialFeedCategorizedParams, MobileServerSocialFeedCohort, MobileServerSocialFeedCohortCoverage, MobileServerSocialFeedCommentPreview, MobileServerSocialFeedInteraction, MobileServerSocialFeedItem, MobileServerSocialFeedItemBase, MobileServerSocialFeedItemPatch, MobileServerSocialFeedItemResponse, MobileServerSocialFeedListParams, MobileServerSocialFeedMarket, MobileServerSocialFeedPnl, MobileServerSocialFeedPositionCard, MobileServerSocialFeedPositionPatch, MobileServerSocialFeedRankedResponse, MobileServerSocialFeedReadParams, MobileServerSocialFeedReadSession, MobileServerSocialFeedResponse, MobileServerSocialFeedTopTradersResponse, MobileServerSocialFeedTradeCard, MobileServerSocialFeedTradeRow, MobileServerSocialFeedTradeRowBase, MobileServerSocialFeedTraderBadge, MobileServerSocialFeedUpdatesResponse, MobileServerSocialFeedViewTracking, MobileServerSuccessResponse, MobileServerUsernameAvailabilityResponse, MobileSetFollowParams, MobileSetPrivateModeParams, MobileSetUsernameParams, MobileSignedInner, MobileSignedInnerByType, MobileSignedInnerParams, MobileSignedRequest, MobileSignedRequestParams, MobileSocialFeedAuthor, MobileSocialFeedCapabilities, MobileSocialFeedCategorizedParams, MobileSocialFeedCohort, MobileSocialFeedCohortCoverage, MobileSocialFeedCohortStatus, MobileSocialFeedCommentPreview, MobileSocialFeedHistoryQuality, MobileSocialFeedInteraction, MobileSocialFeedItem, MobileSocialFeedItemBase, MobileSocialFeedItemPatch, MobileSocialFeedItemResponse, MobileSocialFeedLeverage, MobileSocialFeedListParams, MobileSocialFeedMarket, MobileSocialFeedMarketCategory, MobileSocialFeedPage, MobileSocialFeedPnl, MobileSocialFeedPnlBasis, MobileSocialFeedPnlMode, MobileSocialFeedPnlQuality, MobileSocialFeedPositionCard, MobileSocialFeedPositionDisplayBasis, MobileSocialFeedPositionPatch, MobileSocialFeedPositionState, MobileSocialFeedRankedPage, MobileSocialFeedReadParams, MobileSocialFeedReadSession, MobileSocialFeedReadSessionMode, MobileSocialFeedSourceCategory, MobileSocialFeedTargetType, MobileSocialFeedTopTradersPage, MobileSocialFeedTradeCard, MobileSocialFeedTradeCardAction, MobileSocialFeedTradeRow, MobileSocialFeedTradeRowBase, MobileSocialFeedTradeSizeChangeAction, MobileSocialFeedTraderBadge, MobileSocialFeedTraderBadgeCode, MobileSocialFeedTraderDataStatus, MobileSocialFeedType, MobileSocialFeedUnavailableTarget, MobileSocialFeedUpdates, MobileSocialFeedViewTracking, MobileUnregisterExpoTokenParams, MobileUpdateNotificationPreferencesParams, MobileUsernameAvailability, MobileWithExpoTokenParams, buildSignedMobileRequest, canonicalizeMobileInner, getMobileNonce, getMobilePayloadHash, isMobileServerFailureResponse, isMobileServerSuccessResponse };
20
+ import { n as MOBILE_BIO_MAX_LENGTH, r as isValidMobileBio, t as MOBILE_AVATAR_MAX_UPLOAD_BYTES } from "./profile-BozA3yVP.cjs";
21
+ import { n as isMobileServerSuccessResponse, t as isMobileServerFailureResponse } from "./serverResponseGuards-DGhrUL_c.cjs";
22
+ export { BuildSignedMobileRequestParams, GetMobileFeedItemParams, GetMobileFeedParams, GetMobileFeedUpdatesParams, GetMobileFollowListParams, GetMobileFollowersParams, GetMobileFollowingParams, GetMobileForYouFeedParams, GetMobileFriendsFeedParams, GetMobileMarketFeedParams, GetMobileNotificationPreferencesParams, GetMobilePositionFeedParams, GetMobileProfileFeedParams, GetMobileProfilesParams, GetMobileRegisteredWalletParams, GetMobileTopTradersFeedParams, GetMobileUsernameAvailabilityParams, MOBILE_AVATAR_MAX_UPLOAD_BYTES, MOBILE_BIO_MAX_LENGTH, MOBILE_CLIENT_ENDPOINTS, MOBILE_DISPLAY_NAME_PATTERN, MOBILE_EIP712_METHOD_BY_TYPE, MOBILE_ERROR_CODES, MOBILE_FEED_MARGIN_MODES, MOBILE_FEED_MAX_PAGE_SIZE, MOBILE_FEED_MIN_NOTIONAL_FLOOR, MOBILE_FEED_TRADE_POSITION_DIRECTIONS, MOBILE_FEED_TRADE_POSITION_EFFECTS, MOBILE_FOLLOWED_BY_PREVIEW_LIMIT, MOBILE_FOLLOW_LIST_DEFAULT_PAGE_SIZE, MOBILE_FOLLOW_LIST_MAX_PAGE_SIZE, MOBILE_PROFILES_MAX_BATCH_SIZE, MobileAvatarPreset, MobileAvatarSelection, MobileAvatarUpload, MobileClient, MobileClientOpts, MobileCreateAvatarUploadParams, MobileErrorCode, MobileFeedMargin, MobileFeedMarginMode, MobileFeedPage, MobileFeedTrade, MobileFeedTradePosition, MobileFeedTradePositionDirection, MobileFeedTradePositionEffect, MobileFollowListAccount, MobileFollowListPage, MobileFollowMutationResult, MobileFollowSummary, MobileIdentitySummary, MobileNotificationCategory, MobileNotificationCategoryPreference, MobileNotificationPlatform, MobileNotificationPreferenceScope, MobileNotificationPreferences, MobileProfilesInclude, MobilePublicProfile, MobileRegisterExpoTokenParams, MobileRegisteredWallet, MobileServerAvatarPreset, MobileServerAvatarPresetsResponse, MobileServerAvatarSelection, MobileServerAvatarUploadResponse, MobileServerEmptyExecuteResponse, MobileServerExecuteRequestType, MobileServerExecuteResponseByType, MobileServerExecuteResult, MobileServerExecuteSuccessResponse, MobileServerFailureError, MobileServerFailureResponse, MobileServerFeedMargin, MobileServerFeedResponse, MobileServerFeedTrade, MobileServerFollowListAccount, MobileServerFollowListRequest, MobileServerFollowListResponse, MobileServerFollowMutationResponse, MobileServerFollowSummary, MobileServerIdentitySummary, MobileServerNotificationCategoryPreference, MobileServerNotificationPreferenceScope, MobileServerNotificationPreferences, MobileServerNotificationPreferencesResponse, MobileServerProfile, MobileServerProfilesInclude, MobileServerProfilesResponse, MobileServerPublicExecuteRequest, MobileServerPublicExecuteRequestByType, MobileServerPublicExecuteRequestType, MobileServerPublicQueryRequest, MobileServerPublicQueryRequestByType, MobileServerPublicQueryRequestType, MobileServerPublicQueryResponseByType, MobileServerPublicQuerySuccessResponse, MobileServerRegisteredWalletResponse, MobileServerRequestType, MobileServerSocialFeedAuthor, MobileServerSocialFeedCapabilities, MobileServerSocialFeedCategorizedParams, MobileServerSocialFeedCohort, MobileServerSocialFeedCohortCoverage, MobileServerSocialFeedCommentPreview, MobileServerSocialFeedInteraction, MobileServerSocialFeedItem, MobileServerSocialFeedItemBase, MobileServerSocialFeedItemPatch, MobileServerSocialFeedItemResponse, MobileServerSocialFeedListParams, MobileServerSocialFeedMarket, MobileServerSocialFeedPnl, MobileServerSocialFeedPositionCard, MobileServerSocialFeedPositionPatch, MobileServerSocialFeedRankedResponse, MobileServerSocialFeedReadParams, MobileServerSocialFeedReadSession, MobileServerSocialFeedResponse, MobileServerSocialFeedTopTradersResponse, MobileServerSocialFeedTradeCard, MobileServerSocialFeedTradeRow, MobileServerSocialFeedTradeRowBase, MobileServerSocialFeedTraderBadge, MobileServerSocialFeedUpdatesResponse, MobileServerSocialFeedViewTracking, MobileServerSuccessResponse, MobileServerUsernameAvailabilityResponse, MobileSetAvatarParams, MobileSetBioParams, MobileSetFollowParams, MobileSetPrivateModeParams, MobileSetUsernameParams, MobileSignedInner, MobileSignedInnerByType, MobileSignedInnerParams, MobileSignedRequest, MobileSignedRequestParams, MobileSocialFeedAuthor, MobileSocialFeedCapabilities, MobileSocialFeedCategorizedParams, MobileSocialFeedCohort, MobileSocialFeedCohortCoverage, MobileSocialFeedCohortStatus, MobileSocialFeedCommentPreview, MobileSocialFeedHistoryQuality, MobileSocialFeedInteraction, MobileSocialFeedItem, MobileSocialFeedItemBase, MobileSocialFeedItemPatch, MobileSocialFeedItemResponse, MobileSocialFeedLeverage, MobileSocialFeedListParams, MobileSocialFeedMarket, MobileSocialFeedMarketCategory, MobileSocialFeedPage, MobileSocialFeedPnl, MobileSocialFeedPnlBasis, MobileSocialFeedPnlMode, MobileSocialFeedPnlQuality, MobileSocialFeedPositionCard, MobileSocialFeedPositionDisplayBasis, MobileSocialFeedPositionPatch, MobileSocialFeedPositionState, MobileSocialFeedRankedPage, MobileSocialFeedReadParams, MobileSocialFeedReadSession, MobileSocialFeedReadSessionMode, MobileSocialFeedSourceCategory, MobileSocialFeedTargetType, MobileSocialFeedTopTradersPage, MobileSocialFeedTradeCard, MobileSocialFeedTradeCardAction, MobileSocialFeedTradeRow, MobileSocialFeedTradeRowBase, MobileSocialFeedTradeSizeChangeAction, MobileSocialFeedTraderBadge, MobileSocialFeedTraderBadgeCode, MobileSocialFeedTraderDataStatus, MobileSocialFeedType, MobileSocialFeedUnavailableTarget, MobileSocialFeedUpdates, MobileSocialFeedViewTracking, MobileUnregisterExpoTokenParams, MobileUpdateNotificationPreferencesParams, MobileUsernameAvailability, MobileWithExpoTokenParams, buildSignedMobileRequest, canonicalizeMobileInner, getMobileNonce, getMobilePayloadHash, isMobileServerFailureResponse, isMobileServerSuccessResponse, isValidMobileBio };
package/dist/index.d.ts CHANGED
@@ -1,21 +1,22 @@
1
- import { $ as MobileSocialFeedTraderDataStatus, A as MobileServerSocialFeedPositionCard, B as MobileSocialFeedLeverage, C as MobileServerSocialFeedCommentPreview, D as MobileServerSocialFeedItemPatch, E as MobileServerSocialFeedItemBase, F as MobileServerSocialFeedTradeRowBase, G as MobileSocialFeedPositionDisplayBasis, H as MobileSocialFeedPnlBasis, I as MobileServerSocialFeedTraderBadge, J as MobileSocialFeedSourceCategory, K as MobileSocialFeedPositionState, L as MobileServerSocialFeedViewTracking, M as MobileServerSocialFeedReadSession, N as MobileServerSocialFeedTradeCard, O as MobileServerSocialFeedMarket, P as MobileServerSocialFeedTradeRow, Q as MobileSocialFeedTraderBadgeCode, R as MobileSocialFeedCohortStatus, S as MobileServerSocialFeedCohortCoverage, T as MobileServerSocialFeedItem, U as MobileSocialFeedPnlMode, V as MobileSocialFeedMarketCategory, W as MobileSocialFeedPnlQuality, X as MobileSocialFeedTradeCardAction, Y as MobileSocialFeedTargetType, Z as MobileSocialFeedTradeSizeChangeAction, _ as MobileServerNotificationPreferences, a as MobileFeedTradePosition, b as MobileServerSocialFeedCapabilities, c as MobileNotificationCategory, d as MobileServerFeedTrade, et as MobileSocialFeedType, f as MobileServerFollowListAccount, g as MobileServerNotificationPreferenceScope, h as MobileServerNotificationCategoryPreference, i as MobileFeedMarginMode, j as MobileServerSocialFeedPositionPatch, k as MobileServerSocialFeedPnl, l as MobileNotificationPlatform, m as MobileServerIdentitySummary, n as MOBILE_FEED_TRADE_POSITION_DIRECTIONS, o as MobileFeedTradePositionDirection, p as MobileServerFollowSummary, q as MobileSocialFeedReadSessionMode, r as MOBILE_FEED_TRADE_POSITION_EFFECTS, s as MobileFeedTradePositionEffect, t as MOBILE_FEED_MARGIN_MODES, tt as MobileSocialFeedUnavailableTarget, u as MobileServerFeedMargin, v as MobileServerProfile, w as MobileServerSocialFeedInteraction, x as MobileServerSocialFeedCohort, y as MobileServerSocialFeedAuthor, z as MobileSocialFeedHistoryQuality } from "./serverModelTypes-MlqdaMRd.js";
2
- import { $ as MobileSocialFeedRankedPage, A as MobileRegisterExpoTokenParams, B as MobileSocialFeedCohortCoverage, C as MobileFollowSummary, D as MobileNotificationPreferences, E as MobileNotificationPreferenceScope, F as MobileSignedRequestParams, G as MobileSocialFeedItemPatch, H as MobileSocialFeedInteraction, I as MobileSocialFeedAuthor, J as MobileSocialFeedMarket, K as MobileSocialFeedItemResponse, L as MobileSocialFeedCapabilities, M as MobileSetFollowParams, N as MobileSetPrivateModeParams, O as MobileProfilesInclude, P as MobileSetUsernameParams, Q as MobileSocialFeedPositionPatch, R as MobileSocialFeedCategorizedParams, S as MobileFollowMutationResult, T as MobileNotificationCategoryPreference, U as MobileSocialFeedItem, V as MobileSocialFeedCommentPreview, W as MobileSocialFeedItemBase, X as MobileSocialFeedPnl, Y as MobileSocialFeedPage, Z as MobileSocialFeedPositionCard, _ as MobileFeedMargin, a as GetMobileFollowersParams, at as MobileSocialFeedTradeRowBase, b as MobileFollowListAccount, c as GetMobileFriendsFeedParams, ct as MobileSocialFeedViewTracking, d as GetMobilePositionFeedParams, dt as MobileUsernameAvailability, et as MobileSocialFeedReadParams, f as GetMobileProfileFeedParams, ft as MobileWithExpoTokenParams, g as GetMobileUsernameAvailabilityParams, h as GetMobileTopTradersFeedParams, i as GetMobileFollowListParams, it as MobileSocialFeedTradeRow, j as MobileRegisteredWallet, k as MobilePublicProfile, l as GetMobileMarketFeedParams, lt as MobileUnregisterExpoTokenParams, m as GetMobileRegisteredWalletParams, n as GetMobileFeedParams, nt as MobileSocialFeedTopTradersPage, o as GetMobileFollowingParams, ot as MobileSocialFeedTraderBadge, p as GetMobileProfilesParams, q as MobileSocialFeedListParams, r as GetMobileFeedUpdatesParams, rt as MobileSocialFeedTradeCard, s as GetMobileForYouFeedParams, st as MobileSocialFeedUpdates, t as GetMobileFeedItemParams, tt as MobileSocialFeedReadSession, u as GetMobileNotificationPreferencesParams, ut as MobileUpdateNotificationPreferencesParams, v as MobileFeedPage, w as MobileIdentitySummary, x as MobileFollowListPage, y as MobileFeedTrade, z as MobileSocialFeedCohort } from "./clientTypes-P4LAjreY.js";
3
- import { a as MobileSignedRequest, i as MobileSignedInnerParams, n as MobileSignedInner, r as MobileSignedInnerByType, t as BuildSignedMobileRequestParams } from "./types-B_4veFLc.js";
4
- import { t as buildSignedMobileRequest } from "./buildSignedMobileRequest-CoAVSDPx.js";
5
- import { t as canonicalizeMobileInner } from "./canonicalize-BC-JICjp.js";
6
- import { t as MOBILE_EIP712_METHOD_BY_TYPE } from "./eip712MethodByType-DWtLyPY7.js";
1
+ import { $ as MobileSocialFeedTradeSizeChangeAction, A as MobileServerSocialFeedMarket, B as MobileSocialFeedCohortStatus, C as MobileServerSocialFeedCohort, D as MobileServerSocialFeedItem, E as MobileServerSocialFeedInteraction, F as MobileServerSocialFeedTradeCard, G as MobileSocialFeedPnlMode, H as MobileSocialFeedLeverage, I as MobileServerSocialFeedTradeRow, J as MobileSocialFeedPositionState, K as MobileSocialFeedPnlQuality, L as MobileServerSocialFeedTradeRowBase, M as MobileServerSocialFeedPositionCard, N as MobileServerSocialFeedPositionPatch, O as MobileServerSocialFeedItemBase, P as MobileServerSocialFeedReadSession, Q as MobileSocialFeedTradeCardAction, R as MobileServerSocialFeedTraderBadge, S as MobileServerSocialFeedCapabilities, T as MobileServerSocialFeedCommentPreview, U as MobileSocialFeedMarketCategory, V as MobileSocialFeedHistoryQuality, W as MobileSocialFeedPnlBasis, X as MobileSocialFeedSourceCategory, Y as MobileSocialFeedReadSessionMode, Z as MobileSocialFeedTargetType, _ as MobileServerNotificationCategoryPreference, a as MobileFeedTradePosition, b as MobileServerProfile, c as MobileNotificationCategory, d as MobileServerAvatarSelection, et as MobileSocialFeedTraderBadgeCode, f as MobileServerFeedMargin, g as MobileServerIdentitySummary, h as MobileServerFollowSummary, i as MobileFeedMarginMode, j as MobileServerSocialFeedPnl, k as MobileServerSocialFeedItemPatch, l as MobileNotificationPlatform, m as MobileServerFollowListAccount, n as MOBILE_FEED_TRADE_POSITION_DIRECTIONS, nt as MobileSocialFeedType, o as MobileFeedTradePositionDirection, p as MobileServerFeedTrade, q as MobileSocialFeedPositionDisplayBasis, r as MOBILE_FEED_TRADE_POSITION_EFFECTS, rt as MobileSocialFeedUnavailableTarget, s as MobileFeedTradePositionEffect, t as MOBILE_FEED_MARGIN_MODES, tt as MobileSocialFeedTraderDataStatus, u as MobileServerAvatarPreset, v as MobileServerNotificationPreferenceScope, w as MobileServerSocialFeedCohortCoverage, x as MobileServerSocialFeedAuthor, y as MobileServerNotificationPreferences, z as MobileServerSocialFeedViewTracking } from "./serverModelTypes-DAqEyYtB.js";
2
+ import { $ as MobileSocialFeedListParams, A as MobileNotificationPreferenceScope, B as MobileSetUsernameParams, C as MobileFeedTrade, D as MobileFollowSummary, E as MobileFollowMutationResult, F as MobileRegisteredWallet, G as MobileSocialFeedCohort, H as MobileSocialFeedAuthor, I as MobileSetAvatarParams, J as MobileSocialFeedInteraction, K as MobileSocialFeedCohortCoverage, L as MobileSetBioParams, M as MobileProfilesInclude, N as MobilePublicProfile, O as MobileIdentitySummary, P as MobileRegisterExpoTokenParams, Q as MobileSocialFeedItemResponse, R as MobileSetFollowParams, S as MobileFeedPage, T as MobileFollowListPage, U as MobileSocialFeedCapabilities, V as MobileSignedRequestParams, W as MobileSocialFeedCategorizedParams, X as MobileSocialFeedItemBase, Y as MobileSocialFeedItem, Z as MobileSocialFeedItemPatch, _ as MobileAvatarPreset, _t as MobileUsernameAvailability, a as GetMobileFollowersParams, at as MobileSocialFeedRankedPage, b as MobileCreateAvatarUploadParams, c as GetMobileFriendsFeedParams, ct as MobileSocialFeedTopTradersPage, d as GetMobilePositionFeedParams, dt as MobileSocialFeedTradeRowBase, et as MobileSocialFeedMarket, f as GetMobileProfileFeedParams, ft as MobileSocialFeedTraderBadge, g as GetMobileUsernameAvailabilityParams, gt as MobileUpdateNotificationPreferencesParams, h as GetMobileTopTradersFeedParams, ht as MobileUnregisterExpoTokenParams, i as GetMobileFollowListParams, it as MobileSocialFeedPositionPatch, j as MobileNotificationPreferences, k as MobileNotificationCategoryPreference, l as GetMobileMarketFeedParams, lt as MobileSocialFeedTradeCard, m as GetMobileRegisteredWalletParams, mt as MobileSocialFeedViewTracking, n as GetMobileFeedParams, nt as MobileSocialFeedPnl, o as GetMobileFollowingParams, ot as MobileSocialFeedReadParams, p as GetMobileProfilesParams, pt as MobileSocialFeedUpdates, q as MobileSocialFeedCommentPreview, r as GetMobileFeedUpdatesParams, rt as MobileSocialFeedPositionCard, s as GetMobileForYouFeedParams, st as MobileSocialFeedReadSession, t as GetMobileFeedItemParams, tt as MobileSocialFeedPage, u as GetMobileNotificationPreferencesParams, ut as MobileSocialFeedTradeRow, v as MobileAvatarSelection, vt as MobileWithExpoTokenParams, w as MobileFollowListAccount, x as MobileFeedMargin, y as MobileAvatarUpload, z as MobileSetPrivateModeParams } from "./clientTypes-ws9CDHw4.js";
3
+ import { a as MobileSignedRequest, i as MobileSignedInnerParams, n as MobileSignedInner, r as MobileSignedInnerByType, t as BuildSignedMobileRequestParams } from "./types-B021odcS.js";
4
+ import { t as buildSignedMobileRequest } from "./buildSignedMobileRequest-lSIJmG6D.js";
5
+ import { t as canonicalizeMobileInner } from "./canonicalize-Cx3lCVpm.js";
6
+ import { t as MOBILE_EIP712_METHOD_BY_TYPE } from "./eip712MethodByType-Bmu9PYx6.js";
7
7
  import { t as getMobileNonce } from "./nonce-7swNuPgu.js";
8
- import { t as getMobilePayloadHash } from "./payloadHash-qsU1DEF0.js";
9
- import { a as MobileServerPublicExecuteRequestType, c as MobileServerRequestType, d as MobileServerSocialFeedReadParams, i as MobileServerPublicExecuteRequestByType, l as MobileServerSocialFeedCategorizedParams, n as MobileServerFollowListRequest, o as MobileServerPublicQueryRequestByType, r as MobileServerProfilesInclude, s as MobileServerPublicQueryRequestType, t as MobileServerExecuteRequestType, u as MobileServerSocialFeedListParams } from "./serverRequestTypes-BULjZnnz.js";
10
- import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "./serverBaseTypes-DKCLDn3x.js";
11
- import { a as MobileServerFollowMutationResponse, i as MobileServerExecuteSuccessResponse, n as MobileServerExecuteResponseByType, o as MobileServerPublicExecuteRequest, r as MobileServerExecuteResult, t as MobileServerEmptyExecuteResponse } from "./serverExecuteTypes-DKG1mqy1.js";
12
- import { a as MobileServerPublicQueryRequest, c as MobileServerRegisteredWalletResponse, d as MobileServerSocialFeedResponse, f as MobileServerSocialFeedTopTradersResponse, i as MobileServerProfilesResponse, l as MobileServerSocialFeedItemResponse, m as MobileServerUsernameAvailabilityResponse, n as MobileServerFollowListResponse, o as MobileServerPublicQueryResponseByType, p as MobileServerSocialFeedUpdatesResponse, r as MobileServerNotificationPreferencesResponse, s as MobileServerPublicQuerySuccessResponse, t as MobileServerFeedResponse, u as MobileServerSocialFeedRankedResponse } from "./serverQueryTypes-BLUe10AI.js";
8
+ import { t as getMobilePayloadHash } from "./payloadHash-cZgv7NSo.js";
9
+ import { a as MobileServerPublicExecuteRequestType, c as MobileServerRequestType, d as MobileServerSocialFeedReadParams, i as MobileServerPublicExecuteRequestByType, l as MobileServerSocialFeedCategorizedParams, n as MobileServerFollowListRequest, o as MobileServerPublicQueryRequestByType, r as MobileServerProfilesInclude, s as MobileServerPublicQueryRequestType, t as MobileServerExecuteRequestType, u as MobileServerSocialFeedListParams } from "./serverRequestTypes-BY0f5woc.js";
10
+ import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "./serverBaseTypes-CWBdZomv.js";
11
+ import { a as MobileServerExecuteSuccessResponse, i as MobileServerExecuteResult, n as MobileServerEmptyExecuteResponse, o as MobileServerFollowMutationResponse, r as MobileServerExecuteResponseByType, s as MobileServerPublicExecuteRequest, t as MobileServerAvatarUploadResponse } from "./serverExecuteTypes-jyr5aO5q.js";
12
+ import { a as MobileServerProfilesResponse, c as MobileServerPublicQuerySuccessResponse, d as MobileServerSocialFeedRankedResponse, f as MobileServerSocialFeedResponse, h as MobileServerUsernameAvailabilityResponse, i as MobileServerNotificationPreferencesResponse, l as MobileServerRegisteredWalletResponse, m as MobileServerSocialFeedUpdatesResponse, n as MobileServerFeedResponse, o as MobileServerPublicQueryRequest, p as MobileServerSocialFeedTopTradersResponse, r as MobileServerFollowListResponse, s as MobileServerPublicQueryResponseByType, t as MobileServerAvatarPresetsResponse, u as MobileServerSocialFeedItemResponse } from "./serverQueryTypes-DPRP61yA.js";
13
13
  import { MobileClient, MobileClientOpts } from "./MobileClient.js";
14
14
  import { MOBILE_CLIENT_ENDPOINTS } from "./endpoints.js";
15
- import { n as MobileErrorCode, t as MOBILE_ERROR_CODES } from "./mobileErrorCodes-DccrM4NI.js";
16
- import { t as MobileServerFailureError } from "./MobileServerFailureError-B2og8e5O.js";
15
+ import { n as MobileErrorCode, t as MOBILE_ERROR_CODES } from "./mobileErrorCodes-B3kTLit_.js";
16
+ import { t as MobileServerFailureError } from "./MobileServerFailureError-DvtkMAVX.js";
17
17
  import { n as MOBILE_FEED_MIN_NOTIONAL_FLOOR, t as MOBILE_FEED_MAX_PAGE_SIZE } from "./feed-DTJlsg8W.js";
18
18
  import { i as MOBILE_PROFILES_MAX_BATCH_SIZE, n as MOBILE_FOLLOW_LIST_DEFAULT_PAGE_SIZE, r as MOBILE_FOLLOW_LIST_MAX_PAGE_SIZE, t as MOBILE_FOLLOWED_BY_PREVIEW_LIMIT } from "./follow-D6Mg8GHx.js";
19
19
  import { t as MOBILE_DISPLAY_NAME_PATTERN } from "./patterns-BE0Audp5.js";
20
- import { n as isMobileServerSuccessResponse, t as isMobileServerFailureResponse } from "./serverResponseGuards-DY_8lAo7.js";
21
- export { BuildSignedMobileRequestParams, GetMobileFeedItemParams, GetMobileFeedParams, GetMobileFeedUpdatesParams, GetMobileFollowListParams, GetMobileFollowersParams, GetMobileFollowingParams, GetMobileForYouFeedParams, GetMobileFriendsFeedParams, GetMobileMarketFeedParams, GetMobileNotificationPreferencesParams, GetMobilePositionFeedParams, GetMobileProfileFeedParams, GetMobileProfilesParams, GetMobileRegisteredWalletParams, GetMobileTopTradersFeedParams, GetMobileUsernameAvailabilityParams, MOBILE_CLIENT_ENDPOINTS, MOBILE_DISPLAY_NAME_PATTERN, MOBILE_EIP712_METHOD_BY_TYPE, MOBILE_ERROR_CODES, MOBILE_FEED_MARGIN_MODES, MOBILE_FEED_MAX_PAGE_SIZE, MOBILE_FEED_MIN_NOTIONAL_FLOOR, MOBILE_FEED_TRADE_POSITION_DIRECTIONS, MOBILE_FEED_TRADE_POSITION_EFFECTS, MOBILE_FOLLOWED_BY_PREVIEW_LIMIT, MOBILE_FOLLOW_LIST_DEFAULT_PAGE_SIZE, MOBILE_FOLLOW_LIST_MAX_PAGE_SIZE, MOBILE_PROFILES_MAX_BATCH_SIZE, MobileClient, MobileClientOpts, MobileErrorCode, MobileFeedMargin, MobileFeedMarginMode, MobileFeedPage, MobileFeedTrade, MobileFeedTradePosition, MobileFeedTradePositionDirection, MobileFeedTradePositionEffect, MobileFollowListAccount, MobileFollowListPage, MobileFollowMutationResult, MobileFollowSummary, MobileIdentitySummary, MobileNotificationCategory, MobileNotificationCategoryPreference, MobileNotificationPlatform, MobileNotificationPreferenceScope, MobileNotificationPreferences, MobileProfilesInclude, MobilePublicProfile, MobileRegisterExpoTokenParams, MobileRegisteredWallet, MobileServerEmptyExecuteResponse, MobileServerExecuteRequestType, MobileServerExecuteResponseByType, MobileServerExecuteResult, MobileServerExecuteSuccessResponse, MobileServerFailureError, MobileServerFailureResponse, MobileServerFeedMargin, MobileServerFeedResponse, MobileServerFeedTrade, MobileServerFollowListAccount, MobileServerFollowListRequest, MobileServerFollowListResponse, MobileServerFollowMutationResponse, MobileServerFollowSummary, MobileServerIdentitySummary, MobileServerNotificationCategoryPreference, MobileServerNotificationPreferenceScope, MobileServerNotificationPreferences, MobileServerNotificationPreferencesResponse, MobileServerProfile, MobileServerProfilesInclude, MobileServerProfilesResponse, MobileServerPublicExecuteRequest, MobileServerPublicExecuteRequestByType, MobileServerPublicExecuteRequestType, MobileServerPublicQueryRequest, MobileServerPublicQueryRequestByType, MobileServerPublicQueryRequestType, MobileServerPublicQueryResponseByType, MobileServerPublicQuerySuccessResponse, MobileServerRegisteredWalletResponse, MobileServerRequestType, MobileServerSocialFeedAuthor, MobileServerSocialFeedCapabilities, MobileServerSocialFeedCategorizedParams, MobileServerSocialFeedCohort, MobileServerSocialFeedCohortCoverage, MobileServerSocialFeedCommentPreview, MobileServerSocialFeedInteraction, MobileServerSocialFeedItem, MobileServerSocialFeedItemBase, MobileServerSocialFeedItemPatch, MobileServerSocialFeedItemResponse, MobileServerSocialFeedListParams, MobileServerSocialFeedMarket, MobileServerSocialFeedPnl, MobileServerSocialFeedPositionCard, MobileServerSocialFeedPositionPatch, MobileServerSocialFeedRankedResponse, MobileServerSocialFeedReadParams, MobileServerSocialFeedReadSession, MobileServerSocialFeedResponse, MobileServerSocialFeedTopTradersResponse, MobileServerSocialFeedTradeCard, MobileServerSocialFeedTradeRow, MobileServerSocialFeedTradeRowBase, MobileServerSocialFeedTraderBadge, MobileServerSocialFeedUpdatesResponse, MobileServerSocialFeedViewTracking, MobileServerSuccessResponse, MobileServerUsernameAvailabilityResponse, MobileSetFollowParams, MobileSetPrivateModeParams, MobileSetUsernameParams, MobileSignedInner, MobileSignedInnerByType, MobileSignedInnerParams, MobileSignedRequest, MobileSignedRequestParams, MobileSocialFeedAuthor, MobileSocialFeedCapabilities, MobileSocialFeedCategorizedParams, MobileSocialFeedCohort, MobileSocialFeedCohortCoverage, MobileSocialFeedCohortStatus, MobileSocialFeedCommentPreview, MobileSocialFeedHistoryQuality, MobileSocialFeedInteraction, MobileSocialFeedItem, MobileSocialFeedItemBase, MobileSocialFeedItemPatch, MobileSocialFeedItemResponse, MobileSocialFeedLeverage, MobileSocialFeedListParams, MobileSocialFeedMarket, MobileSocialFeedMarketCategory, MobileSocialFeedPage, MobileSocialFeedPnl, MobileSocialFeedPnlBasis, MobileSocialFeedPnlMode, MobileSocialFeedPnlQuality, MobileSocialFeedPositionCard, MobileSocialFeedPositionDisplayBasis, MobileSocialFeedPositionPatch, MobileSocialFeedPositionState, MobileSocialFeedRankedPage, MobileSocialFeedReadParams, MobileSocialFeedReadSession, MobileSocialFeedReadSessionMode, MobileSocialFeedSourceCategory, MobileSocialFeedTargetType, MobileSocialFeedTopTradersPage, MobileSocialFeedTradeCard, MobileSocialFeedTradeCardAction, MobileSocialFeedTradeRow, MobileSocialFeedTradeRowBase, MobileSocialFeedTradeSizeChangeAction, MobileSocialFeedTraderBadge, MobileSocialFeedTraderBadgeCode, MobileSocialFeedTraderDataStatus, MobileSocialFeedType, MobileSocialFeedUnavailableTarget, MobileSocialFeedUpdates, MobileSocialFeedViewTracking, MobileUnregisterExpoTokenParams, MobileUpdateNotificationPreferencesParams, MobileUsernameAvailability, MobileWithExpoTokenParams, buildSignedMobileRequest, canonicalizeMobileInner, getMobileNonce, getMobilePayloadHash, isMobileServerFailureResponse, isMobileServerSuccessResponse };
20
+ import { n as MOBILE_BIO_MAX_LENGTH, r as isValidMobileBio, t as MOBILE_AVATAR_MAX_UPLOAD_BYTES } from "./profile-BozA3yVP.js";
21
+ import { n as isMobileServerSuccessResponse, t as isMobileServerFailureResponse } from "./serverResponseGuards-BGHTBbtz.js";
22
+ export { BuildSignedMobileRequestParams, GetMobileFeedItemParams, GetMobileFeedParams, GetMobileFeedUpdatesParams, GetMobileFollowListParams, GetMobileFollowersParams, GetMobileFollowingParams, GetMobileForYouFeedParams, GetMobileFriendsFeedParams, GetMobileMarketFeedParams, GetMobileNotificationPreferencesParams, GetMobilePositionFeedParams, GetMobileProfileFeedParams, GetMobileProfilesParams, GetMobileRegisteredWalletParams, GetMobileTopTradersFeedParams, GetMobileUsernameAvailabilityParams, MOBILE_AVATAR_MAX_UPLOAD_BYTES, MOBILE_BIO_MAX_LENGTH, MOBILE_CLIENT_ENDPOINTS, MOBILE_DISPLAY_NAME_PATTERN, MOBILE_EIP712_METHOD_BY_TYPE, MOBILE_ERROR_CODES, MOBILE_FEED_MARGIN_MODES, MOBILE_FEED_MAX_PAGE_SIZE, MOBILE_FEED_MIN_NOTIONAL_FLOOR, MOBILE_FEED_TRADE_POSITION_DIRECTIONS, MOBILE_FEED_TRADE_POSITION_EFFECTS, MOBILE_FOLLOWED_BY_PREVIEW_LIMIT, MOBILE_FOLLOW_LIST_DEFAULT_PAGE_SIZE, MOBILE_FOLLOW_LIST_MAX_PAGE_SIZE, MOBILE_PROFILES_MAX_BATCH_SIZE, MobileAvatarPreset, MobileAvatarSelection, MobileAvatarUpload, MobileClient, MobileClientOpts, MobileCreateAvatarUploadParams, MobileErrorCode, MobileFeedMargin, MobileFeedMarginMode, MobileFeedPage, MobileFeedTrade, MobileFeedTradePosition, MobileFeedTradePositionDirection, MobileFeedTradePositionEffect, MobileFollowListAccount, MobileFollowListPage, MobileFollowMutationResult, MobileFollowSummary, MobileIdentitySummary, MobileNotificationCategory, MobileNotificationCategoryPreference, MobileNotificationPlatform, MobileNotificationPreferenceScope, MobileNotificationPreferences, MobileProfilesInclude, MobilePublicProfile, MobileRegisterExpoTokenParams, MobileRegisteredWallet, MobileServerAvatarPreset, MobileServerAvatarPresetsResponse, MobileServerAvatarSelection, MobileServerAvatarUploadResponse, MobileServerEmptyExecuteResponse, MobileServerExecuteRequestType, MobileServerExecuteResponseByType, MobileServerExecuteResult, MobileServerExecuteSuccessResponse, MobileServerFailureError, MobileServerFailureResponse, MobileServerFeedMargin, MobileServerFeedResponse, MobileServerFeedTrade, MobileServerFollowListAccount, MobileServerFollowListRequest, MobileServerFollowListResponse, MobileServerFollowMutationResponse, MobileServerFollowSummary, MobileServerIdentitySummary, MobileServerNotificationCategoryPreference, MobileServerNotificationPreferenceScope, MobileServerNotificationPreferences, MobileServerNotificationPreferencesResponse, MobileServerProfile, MobileServerProfilesInclude, MobileServerProfilesResponse, MobileServerPublicExecuteRequest, MobileServerPublicExecuteRequestByType, MobileServerPublicExecuteRequestType, MobileServerPublicQueryRequest, MobileServerPublicQueryRequestByType, MobileServerPublicQueryRequestType, MobileServerPublicQueryResponseByType, MobileServerPublicQuerySuccessResponse, MobileServerRegisteredWalletResponse, MobileServerRequestType, MobileServerSocialFeedAuthor, MobileServerSocialFeedCapabilities, MobileServerSocialFeedCategorizedParams, MobileServerSocialFeedCohort, MobileServerSocialFeedCohortCoverage, MobileServerSocialFeedCommentPreview, MobileServerSocialFeedInteraction, MobileServerSocialFeedItem, MobileServerSocialFeedItemBase, MobileServerSocialFeedItemPatch, MobileServerSocialFeedItemResponse, MobileServerSocialFeedListParams, MobileServerSocialFeedMarket, MobileServerSocialFeedPnl, MobileServerSocialFeedPositionCard, MobileServerSocialFeedPositionPatch, MobileServerSocialFeedRankedResponse, MobileServerSocialFeedReadParams, MobileServerSocialFeedReadSession, MobileServerSocialFeedResponse, MobileServerSocialFeedTopTradersResponse, MobileServerSocialFeedTradeCard, MobileServerSocialFeedTradeRow, MobileServerSocialFeedTradeRowBase, MobileServerSocialFeedTraderBadge, MobileServerSocialFeedUpdatesResponse, MobileServerSocialFeedViewTracking, MobileServerSuccessResponse, MobileServerUsernameAvailabilityResponse, MobileSetAvatarParams, MobileSetBioParams, MobileSetFollowParams, MobileSetPrivateModeParams, MobileSetUsernameParams, MobileSignedInner, MobileSignedInnerByType, MobileSignedInnerParams, MobileSignedRequest, MobileSignedRequestParams, MobileSocialFeedAuthor, MobileSocialFeedCapabilities, MobileSocialFeedCategorizedParams, MobileSocialFeedCohort, MobileSocialFeedCohortCoverage, MobileSocialFeedCohortStatus, MobileSocialFeedCommentPreview, MobileSocialFeedHistoryQuality, MobileSocialFeedInteraction, MobileSocialFeedItem, MobileSocialFeedItemBase, MobileSocialFeedItemPatch, MobileSocialFeedItemResponse, MobileSocialFeedLeverage, MobileSocialFeedListParams, MobileSocialFeedMarket, MobileSocialFeedMarketCategory, MobileSocialFeedPage, MobileSocialFeedPnl, MobileSocialFeedPnlBasis, MobileSocialFeedPnlMode, MobileSocialFeedPnlQuality, MobileSocialFeedPositionCard, MobileSocialFeedPositionDisplayBasis, MobileSocialFeedPositionPatch, MobileSocialFeedPositionState, MobileSocialFeedRankedPage, MobileSocialFeedReadParams, MobileSocialFeedReadSession, MobileSocialFeedReadSessionMode, MobileSocialFeedSourceCategory, MobileSocialFeedTargetType, MobileSocialFeedTopTradersPage, MobileSocialFeedTradeCard, MobileSocialFeedTradeCardAction, MobileSocialFeedTradeRow, MobileSocialFeedTradeRowBase, MobileSocialFeedTradeSizeChangeAction, MobileSocialFeedTraderBadge, MobileSocialFeedTraderBadgeCode, MobileSocialFeedTraderDataStatus, MobileSocialFeedType, MobileSocialFeedUnavailableTarget, MobileSocialFeedUpdates, MobileSocialFeedViewTracking, MobileUnregisterExpoTokenParams, MobileUpdateNotificationPreferencesParams, MobileUsernameAvailability, MobileWithExpoTokenParams, buildSignedMobileRequest, canonicalizeMobileInner, getMobileNonce, getMobilePayloadHash, isMobileServerFailureResponse, isMobileServerSuccessResponse, isValidMobileBio };
package/dist/index.js CHANGED
@@ -14,5 +14,6 @@ import "./types/index.js";
14
14
  import { MOBILE_FEED_MAX_PAGE_SIZE, MOBILE_FEED_MIN_NOTIONAL_FLOOR } from "./utils/feed.js";
15
15
  import { MOBILE_FOLLOWED_BY_PREVIEW_LIMIT, MOBILE_FOLLOW_LIST_DEFAULT_PAGE_SIZE, MOBILE_FOLLOW_LIST_MAX_PAGE_SIZE, MOBILE_PROFILES_MAX_BATCH_SIZE } from "./utils/follow.js";
16
16
  import { MOBILE_DISPLAY_NAME_PATTERN } from "./utils/patterns.js";
17
+ import { MOBILE_AVATAR_MAX_UPLOAD_BYTES, MOBILE_BIO_MAX_LENGTH, isValidMobileBio } from "./utils/profile.js";
17
18
  import "./utils/index.js";
18
- export { MOBILE_CLIENT_ENDPOINTS, MOBILE_DISPLAY_NAME_PATTERN, MOBILE_EIP712_METHOD_BY_TYPE, MOBILE_ERROR_CODES, MOBILE_FEED_MARGIN_MODES, MOBILE_FEED_MAX_PAGE_SIZE, MOBILE_FEED_MIN_NOTIONAL_FLOOR, MOBILE_FEED_TRADE_POSITION_DIRECTIONS, MOBILE_FEED_TRADE_POSITION_EFFECTS, MOBILE_FOLLOWED_BY_PREVIEW_LIMIT, MOBILE_FOLLOW_LIST_DEFAULT_PAGE_SIZE, MOBILE_FOLLOW_LIST_MAX_PAGE_SIZE, MOBILE_PROFILES_MAX_BATCH_SIZE, MobileClient, MobileServerFailureError, buildSignedMobileRequest, canonicalizeMobileInner, getMobileNonce, getMobilePayloadHash, isMobileServerFailureResponse, isMobileServerSuccessResponse };
19
+ export { MOBILE_AVATAR_MAX_UPLOAD_BYTES, MOBILE_BIO_MAX_LENGTH, MOBILE_CLIENT_ENDPOINTS, MOBILE_DISPLAY_NAME_PATTERN, MOBILE_EIP712_METHOD_BY_TYPE, MOBILE_ERROR_CODES, MOBILE_FEED_MARGIN_MODES, MOBILE_FEED_MAX_PAGE_SIZE, MOBILE_FEED_MIN_NOTIONAL_FLOOR, MOBILE_FEED_TRADE_POSITION_DIRECTIONS, MOBILE_FEED_TRADE_POSITION_EFFECTS, MOBILE_FOLLOWED_BY_PREVIEW_LIMIT, MOBILE_FOLLOW_LIST_DEFAULT_PAGE_SIZE, MOBILE_FOLLOW_LIST_MAX_PAGE_SIZE, MOBILE_PROFILES_MAX_BATCH_SIZE, MobileClient, MobileServerFailureError, buildSignedMobileRequest, canonicalizeMobileInner, getMobileNonce, getMobilePayloadHash, isMobileServerFailureResponse, isMobileServerSuccessResponse, isValidMobileBio };
@@ -15,7 +15,9 @@ declare const MOBILE_ERROR_CODES: {
15
15
  readonly FOLLOWER_NOT_ELIGIBLE: 6111; /** Follow target is not yet in the canonical Query DB subaccount index. Refresh after a new record. */
16
16
  readonly FOLLOWING_NOT_FOUND: 6112; /** Follow list cursor is malformed or bound to a different list request. Restart from `cursor: null`. */
17
17
  readonly INVALID_FOLLOW_CURSOR: 6113; /** A follow list or followed-by limit is outside its accepted range. Fix it; do not retry unchanged. */
18
- readonly INVALID_FOLLOW_LIMIT: 6114;
18
+ readonly INVALID_FOLLOW_LIMIT: 6114; /** Biography exceeds the maximum length or contains a null character. */
19
+ readonly INVALID_BIO: 6115; /** Invalid preset, upload size, staging key, or image. Correct the selection before retrying. */
20
+ readonly INVALID_AVATAR: 6116;
19
21
  readonly INVALID_EXPO_TOKEN: 6200;
20
22
  readonly INVALID_DEVICE_METADATA: 6201;
21
23
  readonly INVALID_PREFERENCES: 6202; /** Feed `minimumNotional` or `limit` is outside its allowed domain. Fix the request; do not retry unchanged. */
@@ -48,4 +50,4 @@ declare const MOBILE_ERROR_CODES: {
48
50
  type MobileErrorCode = (typeof MOBILE_ERROR_CODES)[keyof typeof MOBILE_ERROR_CODES];
49
51
  //#endregion
50
52
  export { MobileErrorCode as n, MOBILE_ERROR_CODES as t };
51
- //# sourceMappingURL=mobileErrorCodes-DccrM4NI.d.ts.map
53
+ //# sourceMappingURL=mobileErrorCodes-B3kTLit_.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mobileErrorCodes-B3kTLit_.d.cts","names":[],"sources":["../src/types/src/types/mobileErrorCodes.ts"],"mappings":";;AAOA;;;;cAAa,kBAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;+CAgDD;EAAA;;;;;;;;;;;;;;;;;;;KAAA,eAAA,WACF,kBAAA,eAAiC,kBAAkB"}
@@ -15,7 +15,9 @@ declare const MOBILE_ERROR_CODES: {
15
15
  readonly FOLLOWER_NOT_ELIGIBLE: 6111; /** Follow target is not yet in the canonical Query DB subaccount index. Refresh after a new record. */
16
16
  readonly FOLLOWING_NOT_FOUND: 6112; /** Follow list cursor is malformed or bound to a different list request. Restart from `cursor: null`. */
17
17
  readonly INVALID_FOLLOW_CURSOR: 6113; /** A follow list or followed-by limit is outside its accepted range. Fix it; do not retry unchanged. */
18
- readonly INVALID_FOLLOW_LIMIT: 6114;
18
+ readonly INVALID_FOLLOW_LIMIT: 6114; /** Biography exceeds the maximum length or contains a null character. */
19
+ readonly INVALID_BIO: 6115; /** Invalid preset, upload size, staging key, or image. Correct the selection before retrying. */
20
+ readonly INVALID_AVATAR: 6116;
19
21
  readonly INVALID_EXPO_TOKEN: 6200;
20
22
  readonly INVALID_DEVICE_METADATA: 6201;
21
23
  readonly INVALID_PREFERENCES: 6202; /** Feed `minimumNotional` or `limit` is outside its allowed domain. Fix the request; do not retry unchanged. */
@@ -48,4 +50,4 @@ declare const MOBILE_ERROR_CODES: {
48
50
  type MobileErrorCode = (typeof MOBILE_ERROR_CODES)[keyof typeof MOBILE_ERROR_CODES];
49
51
  //#endregion
50
52
  export { MobileErrorCode as n, MOBILE_ERROR_CODES as t };
51
- //# sourceMappingURL=mobileErrorCodes-DccrM4NI.d.cts.map
53
+ //# sourceMappingURL=mobileErrorCodes-B3kTLit_.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mobileErrorCodes-B3kTLit_.d.ts","names":[],"sources":["../src/types/src/types/mobileErrorCodes.ts"],"mappings":";;AAOA;;;;cAAa,kBAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;+CAgDD;EAAA;;;;;;;;;;;;;;;;;;;KAAA,eAAA,WACF,kBAAA,eAAiC,kBAAkB"}
@@ -1,4 +1,4 @@
1
- import { n as MobileSignedInner } from "./types-CwpXP7xM.cjs";
1
+ import { n as MobileSignedInner } from "./types-l47aSWtA.cjs";
2
2
  import { Hex } from "viem";
3
3
 
4
4
  //#region src/signing/payloadHash.d.ts
@@ -10,4 +10,4 @@ import { Hex } from "viem";
10
10
  declare function getMobilePayloadHash(inner: MobileSignedInner): Hex;
11
11
  //#endregion
12
12
  export { getMobilePayloadHash as t };
13
- //# sourceMappingURL=payloadHash-CSgTglN4.d.cts.map
13
+ //# sourceMappingURL=payloadHash-Brc5ceFq.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payloadHash-Brc5ceFq.d.cts","names":[],"sources":["../src/signing/src/signing/payloadHash.ts"],"mappings":";;;;;;AASA;;;iBAAgB,oBAAA,CAAqB,KAAA,EAAO,iBAAA,GAAoB,GAAG"}
@@ -1,4 +1,4 @@
1
- import { n as MobileSignedInner } from "./types-B_4veFLc.js";
1
+ import { n as MobileSignedInner } from "./types-B021odcS.js";
2
2
  import { Hex } from "viem";
3
3
 
4
4
  //#region src/signing/payloadHash.d.ts
@@ -10,4 +10,4 @@ import { Hex } from "viem";
10
10
  declare function getMobilePayloadHash(inner: MobileSignedInner): Hex;
11
11
  //#endregion
12
12
  export { getMobilePayloadHash as t };
13
- //# sourceMappingURL=payloadHash-qsU1DEF0.d.ts.map
13
+ //# sourceMappingURL=payloadHash-cZgv7NSo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payloadHash-cZgv7NSo.d.ts","names":[],"sources":["../src/signing/src/signing/payloadHash.ts"],"mappings":";;;;;;AASA;;;iBAAgB,oBAAA,CAAqB,KAAA,EAAO,iBAAA,GAAoB,GAAG"}
@@ -0,0 +1,16 @@
1
+ //#region src/utils/profile.d.ts
2
+ /**
3
+ * Maximum biography length in Unicode code points. Exceeding it fails with `INVALID_BIO`.
4
+ */
5
+ declare const MOBILE_BIO_MAX_LENGTH = 150;
6
+ /**
7
+ * Maximum JPEG or PNG upload size in bytes. Exceeding it fails with `INVALID_AVATAR`.
8
+ */
9
+ declare const MOBILE_AVATAR_MAX_UPLOAD_BYTES: number;
10
+ /**
11
+ * Checks biography protocol limits; whitespace-only text is valid and clears the bio.
12
+ */
13
+ declare function isValidMobileBio(bio: string): boolean;
14
+ //#endregion
15
+ export { MOBILE_BIO_MAX_LENGTH as n, isValidMobileBio as r, MOBILE_AVATAR_MAX_UPLOAD_BYTES as t };
16
+ //# sourceMappingURL=profile-BozA3yVP.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"profile-BozA3yVP.d.cts","names":[],"sources":["../src/utils/src/utils/profile.ts"],"mappings":";;AAGA;;cAAa,qBAAA;;AAAqB;AAKlC;cAAa,8BAAA;;;AAAgD;iBAK7C,gBAAA,CAAiB,GAAW"}
@@ -0,0 +1,16 @@
1
+ //#region src/utils/profile.d.ts
2
+ /**
3
+ * Maximum biography length in Unicode code points. Exceeding it fails with `INVALID_BIO`.
4
+ */
5
+ declare const MOBILE_BIO_MAX_LENGTH = 150;
6
+ /**
7
+ * Maximum JPEG or PNG upload size in bytes. Exceeding it fails with `INVALID_AVATAR`.
8
+ */
9
+ declare const MOBILE_AVATAR_MAX_UPLOAD_BYTES: number;
10
+ /**
11
+ * Checks biography protocol limits; whitespace-only text is valid and clears the bio.
12
+ */
13
+ declare function isValidMobileBio(bio: string): boolean;
14
+ //#endregion
15
+ export { MOBILE_BIO_MAX_LENGTH as n, isValidMobileBio as r, MOBILE_AVATAR_MAX_UPLOAD_BYTES as t };
16
+ //# sourceMappingURL=profile-BozA3yVP.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"profile-BozA3yVP.d.ts","names":[],"sources":["../src/utils/src/utils/profile.ts"],"mappings":";;AAGA;;cAAa,qBAAA;;AAAqB;AAKlC;cAAa,8BAAA;;;AAAgD;iBAK7C,gBAAA,CAAiB,GAAW"}
@@ -1,4 +1,4 @@
1
- import { c as MobileServerRequestType } from "./serverRequestTypes-BULjZnnz.js";
1
+ import { c as MobileServerRequestType } from "./serverRequestTypes-BY0f5woc.js";
2
2
 
3
3
  //#region src/types/serverBaseTypes.d.ts
4
4
  /**
@@ -22,4 +22,4 @@ interface MobileServerFailureResponse {
22
22
  }
23
23
  //#endregion
24
24
  export { MobileServerSuccessResponse as n, MobileServerFailureResponse as t };
25
- //# sourceMappingURL=serverBaseTypes-DKCLDn3x.d.ts.map
25
+ //# sourceMappingURL=serverBaseTypes-CWBdZomv.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"serverBaseTypes-DKCLDn3x.d.ts","names":[],"sources":["../src/types/src/types/serverBaseTypes.ts"],"mappings":";;;;;AAQA;;;;UAAiB,2BAAA;EACf,MAAM;AAAA;;;;;UAOS,2BAAA;EACf,MAAA;EACA,KAAA;EACA,UAAA;EACA,YAAA,EAAc,uBAAuB;AAAA"}
1
+ {"version":3,"file":"serverBaseTypes-CWBdZomv.d.ts","names":[],"sources":["../src/types/src/types/serverBaseTypes.ts"],"mappings":";;;;;AAQA;;;;UAAiB,2BAAA;EACf,MAAM;AAAA;;;;;UAOS,2BAAA;EACf,MAAA;EACA,KAAA;EACA,UAAA;EACA,YAAA,EAAc,uBAAuB;AAAA"}
@@ -1,4 +1,4 @@
1
- import { c as MobileServerRequestType } from "./serverRequestTypes-XbnLUsXT.cjs";
1
+ import { c as MobileServerRequestType } from "./serverRequestTypes-DGGqQMK3.cjs";
2
2
 
3
3
  //#region src/types/serverBaseTypes.d.ts
4
4
  /**
@@ -22,4 +22,4 @@ interface MobileServerFailureResponse {
22
22
  }
23
23
  //#endregion
24
24
  export { MobileServerSuccessResponse as n, MobileServerFailureResponse as t };
25
- //# sourceMappingURL=serverBaseTypes-CuMsGXgc.d.cts.map
25
+ //# sourceMappingURL=serverBaseTypes-CcWT_ZBe.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"serverBaseTypes-CuMsGXgc.d.cts","names":[],"sources":["../src/types/src/types/serverBaseTypes.ts"],"mappings":";;;;;AAQA;;;;UAAiB,2BAAA;EACf,MAAM;AAAA;;;;;UAOS,2BAAA;EACf,MAAA;EACA,KAAA;EACA,UAAA;EACA,YAAA,EAAc,uBAAuB;AAAA"}
1
+ {"version":3,"file":"serverBaseTypes-CcWT_ZBe.d.cts","names":[],"sources":["../src/types/src/types/serverBaseTypes.ts"],"mappings":";;;;;AAQA;;;;UAAiB,2BAAA;EACf,MAAM;AAAA;;;;;UAOS,2BAAA;EACf,MAAA;EACA,KAAA;EACA,UAAA;EACA,YAAA,EAAc,uBAAuB;AAAA"}
@@ -1,5 +1,5 @@
1
- import { a as MobileServerPublicExecuteRequestType, i as MobileServerPublicExecuteRequestByType, t as MobileServerExecuteRequestType } from "./serverRequestTypes-XbnLUsXT.cjs";
2
- import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "./serverBaseTypes-CuMsGXgc.cjs";
1
+ import { a as MobileServerPublicExecuteRequestType, i as MobileServerPublicExecuteRequestByType, t as MobileServerExecuteRequestType } from "./serverRequestTypes-DGGqQMK3.cjs";
2
+ import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "./serverBaseTypes-CcWT_ZBe.cjs";
3
3
 
4
4
  //#region src/types/serverExecuteTypes.d.ts
5
5
  /**
@@ -25,12 +25,31 @@ interface MobileServerFollowMutationResponse {
25
25
  * `never` when intersected with the success envelope.
26
26
  */
27
27
  type MobileServerEmptyExecuteResponse = Record<never, never>;
28
+ /**
29
+ * Temporary upload grant returned by `create_avatar_upload`; publishing requires a subsequent `set_avatar`.
30
+ */
31
+ interface MobileServerAvatarUploadResponse {
32
+ /** Server-owned staging object key. */
33
+ upload_key: string;
34
+ /** Short-lived signed PUT URL. */
35
+ upload_url: string;
36
+ /** Headers required by the signed PUT. */
37
+ headers: Record<string, string>;
38
+ /** Upload URL lifetime in seconds from issuance. */
39
+ expires_in_seconds: number;
40
+ }
28
41
  /**
29
42
  * Success payloads for each signed `execute`, keyed by request `type`. Most execute routes carry no payload
30
43
  * beyond the success discriminant and so map to an empty object; `set_follow` returns its post-commit
31
- * relationship state.
44
+ * relationship state, and `create_avatar_upload` returns a temporary upload grant.
32
45
  */
33
46
  interface MobileServerExecuteResponseByType {
47
+ /** Bio writes return only the success envelope. */
48
+ set_bio: MobileServerEmptyExecuteResponse;
49
+ /** Avatar writes return only the success envelope. */
50
+ set_avatar: MobileServerEmptyExecuteResponse;
51
+ /** Temporary upload grant; publishing requires a subsequent set_avatar call. */
52
+ create_avatar_upload: MobileServerAvatarUploadResponse;
34
53
  set_username: MobileServerEmptyExecuteResponse;
35
54
  set_private_mode: MobileServerEmptyExecuteResponse;
36
55
  register_expo_token: MobileServerEmptyExecuteResponse;
@@ -46,5 +65,5 @@ type MobileServerExecuteSuccessResponse<T extends MobileServerExecuteRequestType
46
65
  */
47
66
  type MobileServerExecuteResult = MobileServerSuccessResponse | MobileServerFailureResponse;
48
67
  //#endregion
49
- export { MobileServerFollowMutationResponse as a, MobileServerExecuteSuccessResponse as i, MobileServerExecuteResponseByType as n, MobileServerPublicExecuteRequest as o, MobileServerExecuteResult as r, MobileServerEmptyExecuteResponse as t };
50
- //# sourceMappingURL=serverExecuteTypes-TPX0GCgv.d.cts.map
68
+ export { MobileServerExecuteSuccessResponse as a, MobileServerExecuteResult as i, MobileServerEmptyExecuteResponse as n, MobileServerFollowMutationResponse as o, MobileServerExecuteResponseByType as r, MobileServerPublicExecuteRequest as s, MobileServerAvatarUploadResponse as t };
69
+ //# sourceMappingURL=serverExecuteTypes-CgjzwBaA.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serverExecuteTypes-CgjzwBaA.d.cts","names":[],"sources":["../src/types/src/types/serverExecuteTypes.ts"],"mappings":";;;;;;AAcA;;KAAY,gCAAA,WACA,oCAAA,GACR,oCAAA,YAEI,oCAAA;EACJ,IAAA,EAAM,CAAA;AAAA,IACJ,sCAAA,CAAuC,CAAA,IAC3C,CAAA;;;;;;UAOe,kCAAA;EACf,YAAA;EAbE;EAeF,cAAc;AAAA;;;;;;KAQJ,gCAAA,GAAmC,MAAM;AAlBlD;AAOH;;AAPG,UAuBc,gCAAA;EAff;EAiBA,UAAA;EAPU;EASV,UAAA;;EAEA,OAAA,EAAS,MAAM;EAXoC;EAanD,kBAAA;AAAA;;;;;;UAQe,iCAAA;EARf;EAUA,OAAA,EAAS,gCAAA;EAVS;EAYlB,UAAA,EAAY,gCAAA;EAJoC;EAMhD,oBAAA,EAAsB,gCAAA;EACtB,YAAA,EAAc,gCAAA;EACd,gBAAA,EAAkB,gCAAA;EAClB,mBAAA,EAAqB,gCAAA;EACrB,UAAA,EAAY,kCAAA;AAAA;;;;;KAOF,kCAAA,WACA,8BAAA,GAAiC,8BAAA,IACzC,2BAAA,GAA8B,iCAAA,CAAkC,CAAA;;;;KAKxD,yBAAA,GACR,2BAAA,GACA,2BAA2B"}
@@ -1,5 +1,5 @@
1
- import { a as MobileServerPublicExecuteRequestType, i as MobileServerPublicExecuteRequestByType, t as MobileServerExecuteRequestType } from "./serverRequestTypes-BULjZnnz.js";
2
- import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "./serverBaseTypes-DKCLDn3x.js";
1
+ import { a as MobileServerPublicExecuteRequestType, i as MobileServerPublicExecuteRequestByType, t as MobileServerExecuteRequestType } from "./serverRequestTypes-BY0f5woc.js";
2
+ import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "./serverBaseTypes-CWBdZomv.js";
3
3
 
4
4
  //#region src/types/serverExecuteTypes.d.ts
5
5
  /**
@@ -25,12 +25,31 @@ interface MobileServerFollowMutationResponse {
25
25
  * `never` when intersected with the success envelope.
26
26
  */
27
27
  type MobileServerEmptyExecuteResponse = Record<never, never>;
28
+ /**
29
+ * Temporary upload grant returned by `create_avatar_upload`; publishing requires a subsequent `set_avatar`.
30
+ */
31
+ interface MobileServerAvatarUploadResponse {
32
+ /** Server-owned staging object key. */
33
+ upload_key: string;
34
+ /** Short-lived signed PUT URL. */
35
+ upload_url: string;
36
+ /** Headers required by the signed PUT. */
37
+ headers: Record<string, string>;
38
+ /** Upload URL lifetime in seconds from issuance. */
39
+ expires_in_seconds: number;
40
+ }
28
41
  /**
29
42
  * Success payloads for each signed `execute`, keyed by request `type`. Most execute routes carry no payload
30
43
  * beyond the success discriminant and so map to an empty object; `set_follow` returns its post-commit
31
- * relationship state.
44
+ * relationship state, and `create_avatar_upload` returns a temporary upload grant.
32
45
  */
33
46
  interface MobileServerExecuteResponseByType {
47
+ /** Bio writes return only the success envelope. */
48
+ set_bio: MobileServerEmptyExecuteResponse;
49
+ /** Avatar writes return only the success envelope. */
50
+ set_avatar: MobileServerEmptyExecuteResponse;
51
+ /** Temporary upload grant; publishing requires a subsequent set_avatar call. */
52
+ create_avatar_upload: MobileServerAvatarUploadResponse;
34
53
  set_username: MobileServerEmptyExecuteResponse;
35
54
  set_private_mode: MobileServerEmptyExecuteResponse;
36
55
  register_expo_token: MobileServerEmptyExecuteResponse;
@@ -46,5 +65,5 @@ type MobileServerExecuteSuccessResponse<T extends MobileServerExecuteRequestType
46
65
  */
47
66
  type MobileServerExecuteResult = MobileServerSuccessResponse | MobileServerFailureResponse;
48
67
  //#endregion
49
- export { MobileServerFollowMutationResponse as a, MobileServerExecuteSuccessResponse as i, MobileServerExecuteResponseByType as n, MobileServerPublicExecuteRequest as o, MobileServerExecuteResult as r, MobileServerEmptyExecuteResponse as t };
50
- //# sourceMappingURL=serverExecuteTypes-DKG1mqy1.d.ts.map
68
+ export { MobileServerExecuteSuccessResponse as a, MobileServerExecuteResult as i, MobileServerEmptyExecuteResponse as n, MobileServerFollowMutationResponse as o, MobileServerExecuteResponseByType as r, MobileServerPublicExecuteRequest as s, MobileServerAvatarUploadResponse as t };
69
+ //# sourceMappingURL=serverExecuteTypes-jyr5aO5q.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serverExecuteTypes-jyr5aO5q.d.ts","names":[],"sources":["../src/types/src/types/serverExecuteTypes.ts"],"mappings":";;;;;;AAcA;;KAAY,gCAAA,WACA,oCAAA,GACR,oCAAA,YAEI,oCAAA;EACJ,IAAA,EAAM,CAAA;AAAA,IACJ,sCAAA,CAAuC,CAAA,IAC3C,CAAA;;;;;;UAOe,kCAAA;EACf,YAAA;EAbE;EAeF,cAAc;AAAA;;;;;;KAQJ,gCAAA,GAAmC,MAAM;AAlBlD;AAOH;;AAPG,UAuBc,gCAAA;EAff;EAiBA,UAAA;EAPU;EASV,UAAA;;EAEA,OAAA,EAAS,MAAM;EAXoC;EAanD,kBAAA;AAAA;;;;;;UAQe,iCAAA;EARf;EAUA,OAAA,EAAS,gCAAA;EAVS;EAYlB,UAAA,EAAY,gCAAA;EAJoC;EAMhD,oBAAA,EAAsB,gCAAA;EACtB,YAAA,EAAc,gCAAA;EACd,gBAAA,EAAkB,gCAAA;EAClB,mBAAA,EAAqB,gCAAA;EACrB,UAAA,EAAY,kCAAA;AAAA;;;;;KAOF,kCAAA,WACA,8BAAA,GAAiC,8BAAA,IACzC,2BAAA,GAA8B,iCAAA,CAAkC,CAAA;;;;KAKxD,yBAAA,GACR,2BAAA,GACA,2BAA2B"}
@@ -2,6 +2,25 @@ import { BalanceSide } from "@nadohq/shared";
2
2
  import { Hex } from "viem";
3
3
 
4
4
  //#region src/types/serverModelTypes.d.ts
5
+ /**
6
+ * Server-side avatar selection, shared by request mapping and signing.
7
+ */
8
+ type MobileServerAvatarSelection = {
9
+ /** Shared catalogue selection. */type: 'preset'; /** Stable catalogue ID. */
10
+ id: string;
11
+ } | {
12
+ /** Uploaded image awaiting publication. */type: 'upload'; /** Staging key returned by create_avatar_upload. */
13
+ upload_key: string;
14
+ };
15
+ /**
16
+ * Server-owned avatar preset in catalogue order.
17
+ */
18
+ interface MobileServerAvatarPreset {
19
+ /** Stable catalogue ID used when selecting this preset. */
20
+ id: string;
21
+ /** Public image URL. */
22
+ avatar_url: string;
23
+ }
5
24
  /**
6
25
  * Platform of a device registered for push notifications.
7
26
  */
@@ -19,7 +38,7 @@ interface MobileServerIdentitySummary {
19
38
  subaccount: Hex;
20
39
  username: string | null;
21
40
  display_name: string | null;
22
- /** Reserved for a future avatar source; `null` until one is implemented. */
41
+ /** Published avatar URL, or null when the account has no saved avatar. */
23
42
  avatar_url: string | null;
24
43
  }
25
44
  /**
@@ -44,11 +63,10 @@ interface MobileServerFollowSummary {
44
63
  * for them, which is why they are optional rather than nullable — absent means "not requested", not "none".
45
64
  * The singular `profile` query never returns any of them.
46
65
  */
47
- interface MobileServerProfile {
48
- subaccount: Hex;
49
- username: string | null;
50
- display_name: string | null;
66
+ interface MobileServerProfile extends MobileServerIdentitySummary {
51
67
  private_mode: boolean;
68
+ /** Plain-text biography, or null when unset. */
69
+ bio: string | null;
52
70
  /**
53
71
  * Exact count at query time — the backend counts rather than reading a cached counter. Unnamed and private
54
72
  * accounts are included: Private Mode hides activity, not relationships. Requires `follow_counts`.
@@ -486,5 +504,5 @@ interface MobileSocialFeedUnavailableTarget {
486
504
  reason: 'unavailable';
487
505
  }
488
506
  //#endregion
489
- export { MobileSocialFeedTraderDataStatus as $, MobileServerSocialFeedPositionCard as A, MobileSocialFeedLeverage as B, MobileServerSocialFeedCommentPreview as C, MobileServerSocialFeedItemPatch as D, MobileServerSocialFeedItemBase as E, MobileServerSocialFeedTradeRowBase as F, MobileSocialFeedPositionDisplayBasis as G, MobileSocialFeedPnlBasis as H, MobileServerSocialFeedTraderBadge as I, MobileSocialFeedSourceCategory as J, MobileSocialFeedPositionState as K, MobileServerSocialFeedViewTracking as L, MobileServerSocialFeedReadSession as M, MobileServerSocialFeedTradeCard as N, MobileServerSocialFeedMarket as O, MobileServerSocialFeedTradeRow as P, MobileSocialFeedTraderBadgeCode as Q, MobileSocialFeedCohortStatus as R, MobileServerSocialFeedCohortCoverage as S, MobileServerSocialFeedItem as T, MobileSocialFeedPnlMode as U, MobileSocialFeedMarketCategory as V, MobileSocialFeedPnlQuality as W, MobileSocialFeedTradeCardAction as X, MobileSocialFeedTargetType as Y, MobileSocialFeedTradeSizeChangeAction as Z, MobileServerNotificationPreferences as _, MobileFeedTradePosition as a, MobileServerSocialFeedCapabilities as b, MobileNotificationCategory as c, MobileServerFeedTrade as d, MobileSocialFeedType as et, MobileServerFollowListAccount as f, MobileServerNotificationPreferenceScope as g, MobileServerNotificationCategoryPreference as h, MobileFeedMarginMode as i, MobileServerSocialFeedPositionPatch as j, MobileServerSocialFeedPnl as k, MobileNotificationPlatform as l, MobileServerIdentitySummary as m, MOBILE_FEED_TRADE_POSITION_DIRECTIONS as n, MobileFeedTradePositionDirection as o, MobileServerFollowSummary as p, MobileSocialFeedReadSessionMode as q, MOBILE_FEED_TRADE_POSITION_EFFECTS as r, MobileFeedTradePositionEffect as s, MOBILE_FEED_MARGIN_MODES as t, MobileSocialFeedUnavailableTarget as tt, MobileServerFeedMargin as u, MobileServerProfile as v, MobileServerSocialFeedInteraction as w, MobileServerSocialFeedCohort as x, MobileServerSocialFeedAuthor as y, MobileSocialFeedHistoryQuality as z };
490
- //# sourceMappingURL=serverModelTypes-MlqdaMRd.d.ts.map
507
+ export { MobileSocialFeedTradeSizeChangeAction as $, MobileServerSocialFeedMarket as A, MobileSocialFeedCohortStatus as B, MobileServerSocialFeedCohort as C, MobileServerSocialFeedItem as D, MobileServerSocialFeedInteraction as E, MobileServerSocialFeedTradeCard as F, MobileSocialFeedPnlMode as G, MobileSocialFeedLeverage as H, MobileServerSocialFeedTradeRow as I, MobileSocialFeedPositionState as J, MobileSocialFeedPnlQuality as K, MobileServerSocialFeedTradeRowBase as L, MobileServerSocialFeedPositionCard as M, MobileServerSocialFeedPositionPatch as N, MobileServerSocialFeedItemBase as O, MobileServerSocialFeedReadSession as P, MobileSocialFeedTradeCardAction as Q, MobileServerSocialFeedTraderBadge as R, MobileServerSocialFeedCapabilities as S, MobileServerSocialFeedCommentPreview as T, MobileSocialFeedMarketCategory as U, MobileSocialFeedHistoryQuality as V, MobileSocialFeedPnlBasis as W, MobileSocialFeedSourceCategory as X, MobileSocialFeedReadSessionMode as Y, MobileSocialFeedTargetType as Z, MobileServerNotificationCategoryPreference as _, MobileFeedTradePosition as a, MobileServerProfile as b, MobileNotificationCategory as c, MobileServerAvatarSelection as d, MobileSocialFeedTraderBadgeCode as et, MobileServerFeedMargin as f, MobileServerIdentitySummary as g, MobileServerFollowSummary as h, MobileFeedMarginMode as i, MobileServerSocialFeedPnl as j, MobileServerSocialFeedItemPatch as k, MobileNotificationPlatform as l, MobileServerFollowListAccount as m, MOBILE_FEED_TRADE_POSITION_DIRECTIONS as n, MobileSocialFeedType as nt, MobileFeedTradePositionDirection as o, MobileServerFeedTrade as p, MobileSocialFeedPositionDisplayBasis as q, MOBILE_FEED_TRADE_POSITION_EFFECTS as r, MobileSocialFeedUnavailableTarget as rt, MobileFeedTradePositionEffect as s, MOBILE_FEED_MARGIN_MODES as t, MobileSocialFeedTraderDataStatus as tt, MobileServerAvatarPreset as u, MobileServerNotificationPreferenceScope as v, MobileServerSocialFeedCohortCoverage as w, MobileServerSocialFeedAuthor as x, MobileServerNotificationPreferences as y, MobileServerSocialFeedViewTracking as z };
508
+ //# sourceMappingURL=serverModelTypes-DAqEyYtB.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serverModelTypes-DAqEyYtB.d.cts","names":[],"sources":["../src/types/src/types/serverModelTypes.ts"],"mappings":"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"}