@nadohq/mobile-client 0.53.0 → 0.55.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 (147) hide show
  1. package/README.md +12 -4
  2. package/dist/{MobileClient-CEVEYnV1.cjs → MobileClient-BbTaqTzi.cjs} +141 -3
  3. package/dist/MobileClient-BbTaqTzi.cjs.map +1 -0
  4. package/dist/MobileClient.cjs +1 -1
  5. package/dist/MobileClient.d.cts +75 -8
  6. package/dist/MobileClient.d.cts.map +1 -1
  7. package/dist/MobileClient.d.ts +75 -8
  8. package/dist/MobileClient.d.ts.map +1 -1
  9. package/dist/MobileClient.js +141 -3
  10. package/dist/MobileClient.js.map +1 -1
  11. package/dist/{MobileServerFailureError-GsGrBgO0.d.ts → MobileServerFailureError-B2og8e5O.d.ts} +3 -3
  12. package/dist/{MobileServerFailureError-GsGrBgO0.d.ts.map → MobileServerFailureError-B2og8e5O.d.ts.map} +1 -1
  13. package/dist/{MobileServerFailureError-D4ina2b2.d.cts → MobileServerFailureError-BrLtaHnU.d.cts} +3 -3
  14. package/dist/{MobileServerFailureError-D4ina2b2.d.cts.map → MobileServerFailureError-BrLtaHnU.d.cts.map} +1 -1
  15. package/dist/{buildSignedMobileRequest-D9XzRTyq.d.cts → buildSignedMobileRequest-CZ-EdxYI.d.cts} +2 -2
  16. package/dist/{buildSignedMobileRequest-D9XzRTyq.d.cts.map → buildSignedMobileRequest-CZ-EdxYI.d.cts.map} +1 -1
  17. package/dist/{buildSignedMobileRequest-7Iwi5k6h.d.ts → buildSignedMobileRequest-CoAVSDPx.d.ts} +2 -2
  18. package/dist/{buildSignedMobileRequest-7Iwi5k6h.d.ts.map → buildSignedMobileRequest-CoAVSDPx.d.ts.map} +1 -1
  19. package/dist/{canonicalize-OYR35XMP.d.cts → canonicalize-0_B6UOxO.d.cts} +2 -2
  20. package/dist/canonicalize-0_B6UOxO.d.cts.map +1 -0
  21. package/dist/{canonicalize-T4ShepBu.d.ts → canonicalize-BC-JICjp.d.ts} +2 -2
  22. package/dist/canonicalize-BC-JICjp.d.ts.map +1 -0
  23. package/dist/clientTypes-P4LAjreY.d.ts +731 -0
  24. package/dist/clientTypes-P4LAjreY.d.ts.map +1 -0
  25. package/dist/clientTypes-YF5d8bvg.d.cts +731 -0
  26. package/dist/clientTypes-YF5d8bvg.d.cts.map +1 -0
  27. package/dist/dataMappers.cjs +358 -0
  28. package/dist/dataMappers.cjs.map +1 -1
  29. package/dist/dataMappers.d.cts +132 -6
  30. package/dist/dataMappers.d.cts.map +1 -1
  31. package/dist/dataMappers.d.ts +132 -6
  32. package/dist/dataMappers.d.ts.map +1 -1
  33. package/dist/dataMappers.js +339 -2
  34. package/dist/dataMappers.js.map +1 -1
  35. package/dist/{eip712MethodByType-D6edRSIs.d.ts → eip712MethodByType-DWtLyPY7.d.ts} +2 -2
  36. package/dist/eip712MethodByType-DWtLyPY7.d.ts.map +1 -0
  37. package/dist/{eip712MethodByType-BAqld4fP.d.cts → eip712MethodByType-sHQ-VTHd.d.cts} +2 -2
  38. package/dist/eip712MethodByType-sHQ-VTHd.d.cts.map +1 -0
  39. package/dist/index.cjs +1 -1
  40. package/dist/index.d.cts +15 -15
  41. package/dist/index.d.ts +15 -15
  42. package/dist/{mobileErrorCodes-CGYR3_Io.d.ts → mobileErrorCodes-DccrM4NI.d.cts} +8 -2
  43. package/dist/{mobileErrorCodes-CGYR3_Io.d.cts.map → mobileErrorCodes-DccrM4NI.d.cts.map} +1 -1
  44. package/dist/{mobileErrorCodes-CGYR3_Io.d.cts → mobileErrorCodes-DccrM4NI.d.ts} +8 -2
  45. package/dist/{mobileErrorCodes-CGYR3_Io.d.ts.map → mobileErrorCodes-DccrM4NI.d.ts.map} +1 -1
  46. package/dist/{payloadHash-B7Nmf64N.d.cts → payloadHash-CSgTglN4.d.cts} +2 -2
  47. package/dist/payloadHash-CSgTglN4.d.cts.map +1 -0
  48. package/dist/{payloadHash-RxkbwgTH.d.ts → payloadHash-qsU1DEF0.d.ts} +2 -2
  49. package/dist/payloadHash-qsU1DEF0.d.ts.map +1 -0
  50. package/dist/{serverBaseTypes-BOuAdmuQ.d.cts → serverBaseTypes-CuMsGXgc.d.cts} +2 -2
  51. package/dist/{serverBaseTypes-BOuAdmuQ.d.cts.map → serverBaseTypes-CuMsGXgc.d.cts.map} +1 -1
  52. package/dist/{serverBaseTypes-DDzfBA1a.d.ts → serverBaseTypes-DKCLDn3x.d.ts} +2 -2
  53. package/dist/{serverBaseTypes-DDzfBA1a.d.ts.map → serverBaseTypes-DKCLDn3x.d.ts.map} +1 -1
  54. package/dist/{serverExecuteTypes-DrxK2r7m.d.ts → serverExecuteTypes-DKG1mqy1.d.ts} +3 -3
  55. package/dist/{serverExecuteTypes-DrxK2r7m.d.ts.map → serverExecuteTypes-DKG1mqy1.d.ts.map} +1 -1
  56. package/dist/{serverExecuteTypes-DamHfu25.d.cts → serverExecuteTypes-TPX0GCgv.d.cts} +3 -3
  57. package/dist/{serverExecuteTypes-DamHfu25.d.cts.map → serverExecuteTypes-TPX0GCgv.d.cts.map} +1 -1
  58. package/dist/serverModelTypes-MlqdaMRd.d.cts +490 -0
  59. package/dist/serverModelTypes-MlqdaMRd.d.cts.map +1 -0
  60. package/dist/serverModelTypes-MlqdaMRd.d.ts +490 -0
  61. package/dist/serverModelTypes-MlqdaMRd.d.ts.map +1 -0
  62. package/dist/serverQueryTypes-BLUe10AI.d.ts +152 -0
  63. package/dist/serverQueryTypes-BLUe10AI.d.ts.map +1 -0
  64. package/dist/serverQueryTypes-BZOoJBpb.d.cts +152 -0
  65. package/dist/serverQueryTypes-BZOoJBpb.d.cts.map +1 -0
  66. package/dist/{serverRequestTypes-BylecTUn.d.cts → serverRequestTypes-BULjZnnz.d.ts} +69 -4
  67. package/dist/serverRequestTypes-BULjZnnz.d.ts.map +1 -0
  68. package/dist/{serverRequestTypes-DcdmGfTu.d.ts → serverRequestTypes-XbnLUsXT.d.cts} +69 -4
  69. package/dist/serverRequestTypes-XbnLUsXT.d.cts.map +1 -0
  70. package/dist/{serverResponseGuards-CjR1tv7G.d.cts → serverResponseGuards-DIj9MIrJ.d.cts} +2 -2
  71. package/dist/{serverResponseGuards-CjR1tv7G.d.cts.map → serverResponseGuards-DIj9MIrJ.d.cts.map} +1 -1
  72. package/dist/{serverResponseGuards-BspbRjOM.d.ts → serverResponseGuards-DY_8lAo7.d.ts} +2 -2
  73. package/dist/{serverResponseGuards-BspbRjOM.d.ts.map → serverResponseGuards-DY_8lAo7.d.ts.map} +1 -1
  74. package/dist/signing/buildSignedMobileRequest.d.cts +1 -1
  75. package/dist/signing/buildSignedMobileRequest.d.ts +1 -1
  76. package/dist/signing/canonicalize.d.cts +1 -1
  77. package/dist/signing/canonicalize.d.ts +1 -1
  78. package/dist/signing/eip712MethodByType.d.cts +1 -1
  79. package/dist/signing/eip712MethodByType.d.ts +1 -1
  80. package/dist/signing/index.d.cts +5 -5
  81. package/dist/signing/index.d.ts +5 -5
  82. package/dist/signing/payloadHash.d.cts +1 -1
  83. package/dist/signing/payloadHash.d.ts +1 -1
  84. package/dist/signing/types.d.cts +1 -1
  85. package/dist/signing/types.d.ts +1 -1
  86. package/dist/types/MobileServerFailureError.d.cts +1 -1
  87. package/dist/types/MobileServerFailureError.d.ts +1 -1
  88. package/dist/types/clientTypes.d.cts +2 -2
  89. package/dist/types/clientTypes.d.ts +2 -2
  90. package/dist/types/index.d.cts +9 -9
  91. package/dist/types/index.d.ts +9 -9
  92. package/dist/types/mobileErrorCodes.cjs +13 -1
  93. package/dist/types/mobileErrorCodes.cjs.map +1 -1
  94. package/dist/types/mobileErrorCodes.d.cts +1 -1
  95. package/dist/types/mobileErrorCodes.d.ts +1 -1
  96. package/dist/types/mobileErrorCodes.js +13 -1
  97. package/dist/types/mobileErrorCodes.js.map +1 -1
  98. package/dist/types/serverBaseTypes.d.cts +1 -1
  99. package/dist/types/serverBaseTypes.d.ts +1 -1
  100. package/dist/types/serverExecuteTypes.d.cts +1 -1
  101. package/dist/types/serverExecuteTypes.d.ts +1 -1
  102. package/dist/types/serverModelTypes.cjs.map +1 -1
  103. package/dist/types/serverModelTypes.d.cts +2 -2
  104. package/dist/types/serverModelTypes.d.ts +2 -2
  105. package/dist/types/serverModelTypes.js.map +1 -1
  106. package/dist/types/serverQueryTypes.d.cts +2 -2
  107. package/dist/types/serverQueryTypes.d.ts +2 -2
  108. package/dist/types/serverRequestTypes.d.cts +2 -2
  109. package/dist/types/serverRequestTypes.d.ts +2 -2
  110. package/dist/{types-BG321aOe.d.ts → types-B_4veFLc.d.ts} +3 -3
  111. package/dist/{types-BG321aOe.d.ts.map → types-B_4veFLc.d.ts.map} +1 -1
  112. package/dist/{types-D30luCKT.d.cts → types-CwpXP7xM.d.cts} +3 -3
  113. package/dist/{types-D30luCKT.d.cts.map → types-CwpXP7xM.d.cts.map} +1 -1
  114. package/dist/utils/index.d.cts +1 -1
  115. package/dist/utils/index.d.ts +1 -1
  116. package/dist/utils/serverResponseGuards.d.cts +1 -1
  117. package/dist/utils/serverResponseGuards.d.ts +1 -1
  118. package/package.json +3 -3
  119. package/src/MobileClient.ts +192 -2
  120. package/src/dataMappers.ts +503 -1
  121. package/src/socialFeed.test.ts +723 -0
  122. package/src/types/clientTypes.ts +467 -0
  123. package/src/types/mobileErrorCodes.ts +12 -0
  124. package/src/types/serverModelTypes.ts +388 -0
  125. package/src/types/serverQueryTypes.ts +74 -0
  126. package/src/types/serverRequestTypes.ts +94 -1
  127. package/dist/MobileClient-CEVEYnV1.cjs.map +0 -1
  128. package/dist/canonicalize-OYR35XMP.d.cts.map +0 -1
  129. package/dist/canonicalize-T4ShepBu.d.ts.map +0 -1
  130. package/dist/clientTypes-FQTkDfq3.d.cts +0 -349
  131. package/dist/clientTypes-FQTkDfq3.d.cts.map +0 -1
  132. package/dist/clientTypes-FaHdWkNu.d.ts +0 -349
  133. package/dist/clientTypes-FaHdWkNu.d.ts.map +0 -1
  134. package/dist/eip712MethodByType-BAqld4fP.d.cts.map +0 -1
  135. package/dist/eip712MethodByType-D6edRSIs.d.ts.map +0 -1
  136. package/dist/payloadHash-B7Nmf64N.d.cts.map +0 -1
  137. package/dist/payloadHash-RxkbwgTH.d.ts.map +0 -1
  138. package/dist/serverModelTypes-YmHqfxc8.d.cts +0 -173
  139. package/dist/serverModelTypes-YmHqfxc8.d.cts.map +0 -1
  140. package/dist/serverModelTypes-YmHqfxc8.d.ts +0 -173
  141. package/dist/serverModelTypes-YmHqfxc8.d.ts.map +0 -1
  142. package/dist/serverQueryTypes-C-_h9awN.d.ts +0 -89
  143. package/dist/serverQueryTypes-C-_h9awN.d.ts.map +0 -1
  144. package/dist/serverQueryTypes-CuVsrzGV.d.cts +0 -89
  145. package/dist/serverQueryTypes-CuVsrzGV.d.cts.map +0 -1
  146. package/dist/serverRequestTypes-BylecTUn.d.cts.map +0 -1
  147. package/dist/serverRequestTypes-DcdmGfTu.d.ts.map +0 -1
@@ -1,9 +1,9 @@
1
- import { _ as MobileServerNotificationPreferences, a as MobileFeedTradePosition, c as MobileNotificationCategory, d as MobileServerFeedTrade, f as MobileServerFollowListAccount, g as MobileServerNotificationPreferenceScope, h as MobileServerNotificationCategoryPreference, i as MobileFeedMarginMode, l as MobileNotificationPlatform, m as MobileServerIdentitySummary, n as MOBILE_FEED_TRADE_POSITION_DIRECTIONS, o as MobileFeedTradePositionDirection, p as MobileServerFollowSummary, r as MOBILE_FEED_TRADE_POSITION_EFFECTS, s as MobileFeedTradePositionEffect, t as MOBILE_FEED_MARGIN_MODES, u as MobileServerFeedMargin, v as MobileServerProfile } from "../serverModelTypes-YmHqfxc8.js";
2
- import { A as MobileUsernameAvailability, C as MobileRegisteredWallet, D as MobileSignedRequestParams, E as MobileSetUsernameParams, O as MobileUnregisterExpoTokenParams, S as MobileRegisterExpoTokenParams, T as MobileSetPrivateModeParams, _ as MobileNotificationCategoryPreference, a as GetMobileNotificationPreferencesParams, b as MobileProfilesInclude, c as GetMobileUsernameAvailabilityParams, d as MobileFeedTrade, f as MobileFollowListAccount, g as MobileIdentitySummary, h as MobileFollowSummary, i as GetMobileFollowingParams, j as MobileWithExpoTokenParams, k as MobileUpdateNotificationPreferencesParams, l as MobileFeedMargin, m as MobileFollowMutationResult, n as GetMobileFollowListParams, o as GetMobileProfilesParams, p as MobileFollowListPage, r as GetMobileFollowersParams, s as GetMobileRegisteredWalletParams, t as GetMobileFeedParams, u as MobileFeedPage, v as MobileNotificationPreferenceScope, w as MobileSetFollowParams, x as MobilePublicProfile, y as MobileNotificationPreferences } from "../clientTypes-FaHdWkNu.js";
3
- import { a as MobileServerPublicExecuteRequestType, c as MobileServerRequestType, i as MobileServerPublicExecuteRequestByType, n as MobileServerFollowListRequest, o as MobileServerPublicQueryRequestByType, r as MobileServerProfilesInclude, s as MobileServerPublicQueryRequestType, t as MobileServerExecuteRequestType } from "../serverRequestTypes-DcdmGfTu.js";
4
- import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "../serverBaseTypes-DDzfBA1a.js";
5
- import { a as MobileServerFollowMutationResponse, i as MobileServerExecuteSuccessResponse, n as MobileServerExecuteResponseByType, o as MobileServerPublicExecuteRequest, r as MobileServerExecuteResult, t as MobileServerEmptyExecuteResponse } from "../serverExecuteTypes-DrxK2r7m.js";
6
- import { a as MobileServerPublicQueryRequest, c as MobileServerRegisteredWalletResponse, i as MobileServerProfilesResponse, l as MobileServerUsernameAvailabilityResponse, n as MobileServerFollowListResponse, o as MobileServerPublicQueryResponseByType, r as MobileServerNotificationPreferencesResponse, s as MobileServerPublicQuerySuccessResponse, t as MobileServerFeedResponse } from "../serverQueryTypes-C-_h9awN.js";
7
- import { n as MobileErrorCode, t as MOBILE_ERROR_CODES } from "../mobileErrorCodes-CGYR3_Io.js";
8
- import { t as MobileServerFailureError } from "../MobileServerFailureError-GsGrBgO0.js";
9
- export { GetMobileFeedParams, GetMobileFollowListParams, GetMobileFollowersParams, GetMobileFollowingParams, GetMobileNotificationPreferencesParams, GetMobileProfilesParams, GetMobileRegisteredWalletParams, GetMobileUsernameAvailabilityParams, MOBILE_ERROR_CODES, MOBILE_FEED_MARGIN_MODES, MOBILE_FEED_TRADE_POSITION_DIRECTIONS, MOBILE_FEED_TRADE_POSITION_EFFECTS, 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, MobileServerSuccessResponse, MobileServerUsernameAvailabilityResponse, MobileSetFollowParams, MobileSetPrivateModeParams, MobileSetUsernameParams, MobileSignedRequestParams, MobileUnregisterExpoTokenParams, MobileUpdateNotificationPreferencesParams, MobileUsernameAvailability, MobileWithExpoTokenParams };
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 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";
4
+ import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "../serverBaseTypes-DKCLDn3x.js";
5
+ import { a as MobileServerFollowMutationResponse, i as MobileServerExecuteSuccessResponse, n as MobileServerExecuteResponseByType, o as MobileServerPublicExecuteRequest, r as MobileServerExecuteResult, t as MobileServerEmptyExecuteResponse } from "../serverExecuteTypes-DKG1mqy1.js";
6
+ 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";
7
+ import { n as MobileErrorCode, t as MOBILE_ERROR_CODES } from "../mobileErrorCodes-DccrM4NI.js";
8
+ import { t as MobileServerFailureError } from "../MobileServerFailureError-B2og8e5O.js";
9
+ export { GetMobileFeedItemParams, GetMobileFeedParams, GetMobileFeedUpdatesParams, GetMobileFollowListParams, GetMobileFollowersParams, GetMobileFollowingParams, GetMobileForYouFeedParams, GetMobileFriendsFeedParams, GetMobileMarketFeedParams, GetMobileNotificationPreferencesParams, GetMobilePositionFeedParams, GetMobileProfileFeedParams, GetMobileProfilesParams, GetMobileRegisteredWalletParams, GetMobileTopTradersFeedParams, GetMobileUsernameAvailabilityParams, MOBILE_ERROR_CODES, MOBILE_FEED_MARGIN_MODES, MOBILE_FEED_TRADE_POSITION_DIRECTIONS, MOBILE_FEED_TRADE_POSITION_EFFECTS, 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, 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 };
@@ -31,7 +31,19 @@ const MOBILE_ERROR_CODES = {
31
31
  /** Feed `minimumNotional` or `limit` is outside its allowed domain. Fix the request; do not retry unchanged. */
32
32
  INVALID_FEED_FILTER: 6300,
33
33
  /** Feed cursor is malformed or bound to a different filter. Discard it and restart from the first page. */
34
- INVALID_FEED_CURSOR: 6301
34
+ INVALID_FEED_CURSOR: 6301,
35
+ /** Invalid social feed parameters, including missing fields, invalid types/formats, filters, or Content-Type. */
36
+ INVALID_SOCIAL_FEED_PARAMS: 6310,
37
+ /** Session, credential, viewing account, cursor, source, or viewport mismatch; also a request sequence or viewport revision rollback. */
38
+ SOCIAL_FEED_SESSION_MISMATCH: 6311,
39
+ /** Reading session or browsing credential is expired, missing, or incompatible; create a new session. */
40
+ SOCIAL_FEED_SESSION_EXPIRED: 6312,
41
+ /** Content does not exist or is not currently accessible. */
42
+ SOCIAL_FEED_CONTENT_UNAVAILABLE: 6313,
43
+ /** Required authoritative position, action, cohort, or market data is unavailable. */
44
+ SOCIAL_FEED_DATA_UNAVAILABLE: 6320,
45
+ /** Feed reads are only available through public_query. */
46
+ SOCIAL_FEED_QUERY_REMOVED: 6325
35
47
  };
36
48
  //#endregion
37
49
  exports.MOBILE_ERROR_CODES = MOBILE_ERROR_CODES;
@@ -1 +1 @@
1
- {"version":3,"file":"mobileErrorCodes.cjs","names":["NADO_ERROR_CODES"],"sources":["../../src/types/mobileErrorCodes.ts"],"sourcesContent":["import { NADO_ERROR_CODES } from '@nadohq/shared';\n\n/**\n * Numeric error codes returned by the mobile service API. Identity codes (61xx), notification codes (62xx),\n * and feed codes (63xx) are mobile-specific; the remaining codes are shared cross-service codes from the\n * backend's common error enum, inlined via spread from {@link NADO_ERROR_CODES}.\n */\nexport const MOBILE_ERROR_CODES = {\n ...NADO_ERROR_CODES,\n INVALID_DISPLAY_NAME: 6100,\n USERNAME_UNAVAILABLE: 6101,\n INVALID_IDENTITY_TARGET: 6104,\n /** Another identity write for the subaccount committed with a later nonce. Re-read before retrying. */\n STALE_IDENTITY_UPDATE: 6105,\n PROFILE_NOT_FOUND: 6106,\n /** Profiles lookup is empty, holds duplicates, or exceeds the batch maximum. Do not retry unchanged. */\n INVALID_PROFILES_REQUEST: 6107,\n /** Follow mutation names the same source and target, or an isolated participant. Do not retry unchanged. */\n INVALID_FOLLOW_TARGET: 6110,\n /** Signed follower is not yet in the canonical Query DB subaccount index. Retry after index catch-up. */\n FOLLOWER_NOT_ELIGIBLE: 6111,\n /** Follow target is not yet in the canonical Query DB subaccount index. Refresh after a new record. */\n FOLLOWING_NOT_FOUND: 6112,\n /** Follow list cursor is malformed or bound to a different list request. Restart from `cursor: null`. */\n INVALID_FOLLOW_CURSOR: 6113,\n /** A follow list or followed-by limit is outside its accepted range. Fix it; do not retry unchanged. */\n INVALID_FOLLOW_LIMIT: 6114,\n INVALID_EXPO_TOKEN: 6200,\n INVALID_DEVICE_METADATA: 6201,\n INVALID_PREFERENCES: 6202,\n /** Feed `minimumNotional` or `limit` is outside its allowed domain. Fix the request; do not retry unchanged. */\n INVALID_FEED_FILTER: 6300,\n /** Feed cursor is malformed or bound to a different filter. Discard it and restart from the first page. */\n INVALID_FEED_CURSOR: 6301,\n} as const;\n\n/**\n * Union of all known mobile service API error codes.\n */\nexport type MobileErrorCode =\n (typeof MOBILE_ERROR_CODES)[keyof typeof MOBILE_ERROR_CODES];\n"],"mappings":";;;;;;;AAOA,MAAa,qBAAqB;CAChC,2BAAGA,EAAAA;CACH,sBAAsB;CACtB,sBAAsB;CACtB,yBAAyB;;CAEzB,uBAAuB;CACvB,mBAAmB;;CAEnB,0BAA0B;;CAE1B,uBAAuB;;CAEvB,uBAAuB;;CAEvB,qBAAqB;;CAErB,uBAAuB;;CAEvB,sBAAsB;CACtB,oBAAoB;CACpB,yBAAyB;CACzB,qBAAqB;;CAErB,qBAAqB;;CAErB,qBAAqB;AACvB"}
1
+ {"version":3,"file":"mobileErrorCodes.cjs","names":["NADO_ERROR_CODES"],"sources":["../../src/types/mobileErrorCodes.ts"],"sourcesContent":["import { NADO_ERROR_CODES } from '@nadohq/shared';\n\n/**\n * Numeric error codes returned by the mobile service API. Identity codes (61xx), notification codes (62xx),\n * and feed codes (63xx) are mobile-specific; the remaining codes are shared cross-service codes from the\n * backend's common error enum, inlined via spread from {@link NADO_ERROR_CODES}.\n */\nexport const MOBILE_ERROR_CODES = {\n ...NADO_ERROR_CODES,\n INVALID_DISPLAY_NAME: 6100,\n USERNAME_UNAVAILABLE: 6101,\n INVALID_IDENTITY_TARGET: 6104,\n /** Another identity write for the subaccount committed with a later nonce. Re-read before retrying. */\n STALE_IDENTITY_UPDATE: 6105,\n PROFILE_NOT_FOUND: 6106,\n /** Profiles lookup is empty, holds duplicates, or exceeds the batch maximum. Do not retry unchanged. */\n INVALID_PROFILES_REQUEST: 6107,\n /** Follow mutation names the same source and target, or an isolated participant. Do not retry unchanged. */\n INVALID_FOLLOW_TARGET: 6110,\n /** Signed follower is not yet in the canonical Query DB subaccount index. Retry after index catch-up. */\n FOLLOWER_NOT_ELIGIBLE: 6111,\n /** Follow target is not yet in the canonical Query DB subaccount index. Refresh after a new record. */\n FOLLOWING_NOT_FOUND: 6112,\n /** Follow list cursor is malformed or bound to a different list request. Restart from `cursor: null`. */\n INVALID_FOLLOW_CURSOR: 6113,\n /** A follow list or followed-by limit is outside its accepted range. Fix it; do not retry unchanged. */\n INVALID_FOLLOW_LIMIT: 6114,\n INVALID_EXPO_TOKEN: 6200,\n INVALID_DEVICE_METADATA: 6201,\n INVALID_PREFERENCES: 6202,\n /** Feed `minimumNotional` or `limit` is outside its allowed domain. Fix the request; do not retry unchanged. */\n INVALID_FEED_FILTER: 6300,\n /** Feed cursor is malformed or bound to a different filter. Discard it and restart from the first page. */\n INVALID_FEED_CURSOR: 6301,\n /** Invalid social feed parameters, including missing fields, invalid types/formats, filters, or Content-Type. */\n INVALID_SOCIAL_FEED_PARAMS: 6310,\n /** Session, credential, viewing account, cursor, source, or viewport mismatch; also a request sequence or viewport revision rollback. */\n SOCIAL_FEED_SESSION_MISMATCH: 6311,\n /** Reading session or browsing credential is expired, missing, or incompatible; create a new session. */\n SOCIAL_FEED_SESSION_EXPIRED: 6312,\n /** Content does not exist or is not currently accessible. */\n SOCIAL_FEED_CONTENT_UNAVAILABLE: 6313,\n /** Required authoritative position, action, cohort, or market data is unavailable. */\n SOCIAL_FEED_DATA_UNAVAILABLE: 6320,\n /** Feed reads are only available through public_query. */\n SOCIAL_FEED_QUERY_REMOVED: 6325,\n} as const;\n\n/**\n * Union of all known mobile service API error codes.\n */\nexport type MobileErrorCode =\n (typeof MOBILE_ERROR_CODES)[keyof typeof MOBILE_ERROR_CODES];\n"],"mappings":";;;;;;;AAOA,MAAa,qBAAqB;CAChC,2BAAGA,EAAAA;CACH,sBAAsB;CACtB,sBAAsB;CACtB,yBAAyB;;CAEzB,uBAAuB;CACvB,mBAAmB;;CAEnB,0BAA0B;;CAE1B,uBAAuB;;CAEvB,uBAAuB;;CAEvB,qBAAqB;;CAErB,uBAAuB;;CAEvB,sBAAsB;CACtB,oBAAoB;CACpB,yBAAyB;CACzB,qBAAqB;;CAErB,qBAAqB;;CAErB,qBAAqB;;CAErB,4BAA4B;;CAE5B,8BAA8B;;CAE9B,6BAA6B;;CAE7B,iCAAiC;;CAEjC,8BAA8B;;CAE9B,2BAA2B;AAC7B"}
@@ -1,2 +1,2 @@
1
- import { n as MobileErrorCode, t as MOBILE_ERROR_CODES } from "../mobileErrorCodes-CGYR3_Io.cjs";
1
+ import { n as MobileErrorCode, t as MOBILE_ERROR_CODES } from "../mobileErrorCodes-DccrM4NI.cjs";
2
2
  export { MOBILE_ERROR_CODES, MobileErrorCode };
@@ -1,2 +1,2 @@
1
- import { n as MobileErrorCode, t as MOBILE_ERROR_CODES } from "../mobileErrorCodes-CGYR3_Io.js";
1
+ import { n as MobileErrorCode, t as MOBILE_ERROR_CODES } from "../mobileErrorCodes-DccrM4NI.js";
2
2
  export { MOBILE_ERROR_CODES, MobileErrorCode };
@@ -31,7 +31,19 @@ const MOBILE_ERROR_CODES = {
31
31
  /** Feed `minimumNotional` or `limit` is outside its allowed domain. Fix the request; do not retry unchanged. */
32
32
  INVALID_FEED_FILTER: 6300,
33
33
  /** Feed cursor is malformed or bound to a different filter. Discard it and restart from the first page. */
34
- INVALID_FEED_CURSOR: 6301
34
+ INVALID_FEED_CURSOR: 6301,
35
+ /** Invalid social feed parameters, including missing fields, invalid types/formats, filters, or Content-Type. */
36
+ INVALID_SOCIAL_FEED_PARAMS: 6310,
37
+ /** Session, credential, viewing account, cursor, source, or viewport mismatch; also a request sequence or viewport revision rollback. */
38
+ SOCIAL_FEED_SESSION_MISMATCH: 6311,
39
+ /** Reading session or browsing credential is expired, missing, or incompatible; create a new session. */
40
+ SOCIAL_FEED_SESSION_EXPIRED: 6312,
41
+ /** Content does not exist or is not currently accessible. */
42
+ SOCIAL_FEED_CONTENT_UNAVAILABLE: 6313,
43
+ /** Required authoritative position, action, cohort, or market data is unavailable. */
44
+ SOCIAL_FEED_DATA_UNAVAILABLE: 6320,
45
+ /** Feed reads are only available through public_query. */
46
+ SOCIAL_FEED_QUERY_REMOVED: 6325
35
47
  };
36
48
  //#endregion
37
49
  export { MOBILE_ERROR_CODES };
@@ -1 +1 @@
1
- {"version":3,"file":"mobileErrorCodes.js","names":[],"sources":["../../src/types/mobileErrorCodes.ts"],"sourcesContent":["import { NADO_ERROR_CODES } from '@nadohq/shared';\n\n/**\n * Numeric error codes returned by the mobile service API. Identity codes (61xx), notification codes (62xx),\n * and feed codes (63xx) are mobile-specific; the remaining codes are shared cross-service codes from the\n * backend's common error enum, inlined via spread from {@link NADO_ERROR_CODES}.\n */\nexport const MOBILE_ERROR_CODES = {\n ...NADO_ERROR_CODES,\n INVALID_DISPLAY_NAME: 6100,\n USERNAME_UNAVAILABLE: 6101,\n INVALID_IDENTITY_TARGET: 6104,\n /** Another identity write for the subaccount committed with a later nonce. Re-read before retrying. */\n STALE_IDENTITY_UPDATE: 6105,\n PROFILE_NOT_FOUND: 6106,\n /** Profiles lookup is empty, holds duplicates, or exceeds the batch maximum. Do not retry unchanged. */\n INVALID_PROFILES_REQUEST: 6107,\n /** Follow mutation names the same source and target, or an isolated participant. Do not retry unchanged. */\n INVALID_FOLLOW_TARGET: 6110,\n /** Signed follower is not yet in the canonical Query DB subaccount index. Retry after index catch-up. */\n FOLLOWER_NOT_ELIGIBLE: 6111,\n /** Follow target is not yet in the canonical Query DB subaccount index. Refresh after a new record. */\n FOLLOWING_NOT_FOUND: 6112,\n /** Follow list cursor is malformed or bound to a different list request. Restart from `cursor: null`. */\n INVALID_FOLLOW_CURSOR: 6113,\n /** A follow list or followed-by limit is outside its accepted range. Fix it; do not retry unchanged. */\n INVALID_FOLLOW_LIMIT: 6114,\n INVALID_EXPO_TOKEN: 6200,\n INVALID_DEVICE_METADATA: 6201,\n INVALID_PREFERENCES: 6202,\n /** Feed `minimumNotional` or `limit` is outside its allowed domain. Fix the request; do not retry unchanged. */\n INVALID_FEED_FILTER: 6300,\n /** Feed cursor is malformed or bound to a different filter. Discard it and restart from the first page. */\n INVALID_FEED_CURSOR: 6301,\n} as const;\n\n/**\n * Union of all known mobile service API error codes.\n */\nexport type MobileErrorCode =\n (typeof MOBILE_ERROR_CODES)[keyof typeof MOBILE_ERROR_CODES];\n"],"mappings":";;;;;;;AAOA,MAAa,qBAAqB;CAChC,GAAG;CACH,sBAAsB;CACtB,sBAAsB;CACtB,yBAAyB;;CAEzB,uBAAuB;CACvB,mBAAmB;;CAEnB,0BAA0B;;CAE1B,uBAAuB;;CAEvB,uBAAuB;;CAEvB,qBAAqB;;CAErB,uBAAuB;;CAEvB,sBAAsB;CACtB,oBAAoB;CACpB,yBAAyB;CACzB,qBAAqB;;CAErB,qBAAqB;;CAErB,qBAAqB;AACvB"}
1
+ {"version":3,"file":"mobileErrorCodes.js","names":[],"sources":["../../src/types/mobileErrorCodes.ts"],"sourcesContent":["import { NADO_ERROR_CODES } from '@nadohq/shared';\n\n/**\n * Numeric error codes returned by the mobile service API. Identity codes (61xx), notification codes (62xx),\n * and feed codes (63xx) are mobile-specific; the remaining codes are shared cross-service codes from the\n * backend's common error enum, inlined via spread from {@link NADO_ERROR_CODES}.\n */\nexport const MOBILE_ERROR_CODES = {\n ...NADO_ERROR_CODES,\n INVALID_DISPLAY_NAME: 6100,\n USERNAME_UNAVAILABLE: 6101,\n INVALID_IDENTITY_TARGET: 6104,\n /** Another identity write for the subaccount committed with a later nonce. Re-read before retrying. */\n STALE_IDENTITY_UPDATE: 6105,\n PROFILE_NOT_FOUND: 6106,\n /** Profiles lookup is empty, holds duplicates, or exceeds the batch maximum. Do not retry unchanged. */\n INVALID_PROFILES_REQUEST: 6107,\n /** Follow mutation names the same source and target, or an isolated participant. Do not retry unchanged. */\n INVALID_FOLLOW_TARGET: 6110,\n /** Signed follower is not yet in the canonical Query DB subaccount index. Retry after index catch-up. */\n FOLLOWER_NOT_ELIGIBLE: 6111,\n /** Follow target is not yet in the canonical Query DB subaccount index. Refresh after a new record. */\n FOLLOWING_NOT_FOUND: 6112,\n /** Follow list cursor is malformed or bound to a different list request. Restart from `cursor: null`. */\n INVALID_FOLLOW_CURSOR: 6113,\n /** A follow list or followed-by limit is outside its accepted range. Fix it; do not retry unchanged. */\n INVALID_FOLLOW_LIMIT: 6114,\n INVALID_EXPO_TOKEN: 6200,\n INVALID_DEVICE_METADATA: 6201,\n INVALID_PREFERENCES: 6202,\n /** Feed `minimumNotional` or `limit` is outside its allowed domain. Fix the request; do not retry unchanged. */\n INVALID_FEED_FILTER: 6300,\n /** Feed cursor is malformed or bound to a different filter. Discard it and restart from the first page. */\n INVALID_FEED_CURSOR: 6301,\n /** Invalid social feed parameters, including missing fields, invalid types/formats, filters, or Content-Type. */\n INVALID_SOCIAL_FEED_PARAMS: 6310,\n /** Session, credential, viewing account, cursor, source, or viewport mismatch; also a request sequence or viewport revision rollback. */\n SOCIAL_FEED_SESSION_MISMATCH: 6311,\n /** Reading session or browsing credential is expired, missing, or incompatible; create a new session. */\n SOCIAL_FEED_SESSION_EXPIRED: 6312,\n /** Content does not exist or is not currently accessible. */\n SOCIAL_FEED_CONTENT_UNAVAILABLE: 6313,\n /** Required authoritative position, action, cohort, or market data is unavailable. */\n SOCIAL_FEED_DATA_UNAVAILABLE: 6320,\n /** Feed reads are only available through public_query. */\n SOCIAL_FEED_QUERY_REMOVED: 6325,\n} as const;\n\n/**\n * Union of all known mobile service API error codes.\n */\nexport type MobileErrorCode =\n (typeof MOBILE_ERROR_CODES)[keyof typeof MOBILE_ERROR_CODES];\n"],"mappings":";;;;;;;AAOA,MAAa,qBAAqB;CAChC,GAAG;CACH,sBAAsB;CACtB,sBAAsB;CACtB,yBAAyB;;CAEzB,uBAAuB;CACvB,mBAAmB;;CAEnB,0BAA0B;;CAE1B,uBAAuB;;CAEvB,uBAAuB;;CAEvB,qBAAqB;;CAErB,uBAAuB;;CAEvB,sBAAsB;CACtB,oBAAoB;CACpB,yBAAyB;CACzB,qBAAqB;;CAErB,qBAAqB;;CAErB,qBAAqB;;CAErB,4BAA4B;;CAE5B,8BAA8B;;CAE9B,6BAA6B;;CAE7B,iCAAiC;;CAEjC,8BAA8B;;CAE9B,2BAA2B;AAC7B"}
@@ -1,2 +1,2 @@
1
- import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "../serverBaseTypes-BOuAdmuQ.cjs";
1
+ import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "../serverBaseTypes-CuMsGXgc.cjs";
2
2
  export { MobileServerFailureResponse, MobileServerSuccessResponse };
@@ -1,2 +1,2 @@
1
- import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "../serverBaseTypes-DDzfBA1a.js";
1
+ import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "../serverBaseTypes-DKCLDn3x.js";
2
2
  export { MobileServerFailureResponse, MobileServerSuccessResponse };
@@ -1,2 +1,2 @@
1
- import { a as MobileServerFollowMutationResponse, i as MobileServerExecuteSuccessResponse, n as MobileServerExecuteResponseByType, o as MobileServerPublicExecuteRequest, r as MobileServerExecuteResult, t as MobileServerEmptyExecuteResponse } from "../serverExecuteTypes-DamHfu25.cjs";
1
+ import { a as MobileServerFollowMutationResponse, i as MobileServerExecuteSuccessResponse, n as MobileServerExecuteResponseByType, o as MobileServerPublicExecuteRequest, r as MobileServerExecuteResult, t as MobileServerEmptyExecuteResponse } from "../serverExecuteTypes-TPX0GCgv.cjs";
2
2
  export { MobileServerEmptyExecuteResponse, MobileServerExecuteResponseByType, MobileServerExecuteResult, MobileServerExecuteSuccessResponse, MobileServerFollowMutationResponse, MobileServerPublicExecuteRequest };
@@ -1,2 +1,2 @@
1
- import { a as MobileServerFollowMutationResponse, i as MobileServerExecuteSuccessResponse, n as MobileServerExecuteResponseByType, o as MobileServerPublicExecuteRequest, r as MobileServerExecuteResult, t as MobileServerEmptyExecuteResponse } from "../serverExecuteTypes-DrxK2r7m.js";
1
+ import { a as MobileServerFollowMutationResponse, i as MobileServerExecuteSuccessResponse, n as MobileServerExecuteResponseByType, o as MobileServerPublicExecuteRequest, r as MobileServerExecuteResult, t as MobileServerEmptyExecuteResponse } from "../serverExecuteTypes-DKG1mqy1.js";
2
2
  export { MobileServerEmptyExecuteResponse, MobileServerExecuteResponseByType, MobileServerExecuteResult, MobileServerExecuteSuccessResponse, MobileServerFollowMutationResponse, MobileServerPublicExecuteRequest };
@@ -1 +1 @@
1
- {"version":3,"file":"serverModelTypes.cjs","names":[],"sources":["../../src/types/serverModelTypes.ts"],"sourcesContent":["import { BalanceSide } from '@nadohq/shared';\nimport { Hex } from 'viem';\n\n/**\n * Platform of a device registered for push notifications.\n */\nexport type MobileNotificationPlatform = 'ios' | 'android';\n\n/**\n * Category of push notification.\n */\nexport type MobileNotificationCategory =\n | 'order_fill'\n | 'order_update'\n | 'liquidation'\n | 'funding'\n | 'product_listing'\n | 'announcement';\n\n/**\n * Server-side identity summary (snake_case): the read-time identity fields the backend attaches to a\n * subaccount wherever it surfaces one alongside other data. Name fields are `null` until the subaccount\n * claims a username, and a rename shows up on the next read without any change to the surrounding record.\n */\nexport interface MobileServerIdentitySummary {\n subaccount: Hex;\n username: string | null;\n display_name: string | null;\n /** Reserved for a future avatar source; `null` until one is implemented. */\n avatar_url: string | null;\n}\n\n/**\n * Server-side follow summary (snake_case), nested in a `profiles` entry when the `follow_summary` include is\n * requested. `is_following` is the direct `view_as -> this profile` relationship; every `followed_by` entry\n * satisfies both `view_as -> entry` and `entry -> this profile`, so each one is already familiar to the\n * viewer and carries no `is_following` of its own.\n */\nexport interface MobileServerFollowSummary {\n is_following: boolean;\n /** Exact size of the two-edge intersection, independent of how many previews came back. */\n followed_by_count: number;\n /** Capped at `MOBILE_FOLLOWED_BY_PREVIEW_LIMIT` (2) by the backend; not client-configurable. */\n followed_by: MobileServerIdentitySummary[];\n}\n\n/**\n * Server-side public profile shape (snake_case), shared by the singular `profile` and batched `profiles`\n * queries. Name fields are `null` until the subaccount claims a username; a subaccount with no identity row\n * still yields an entry, with `null` names and `private_mode: false`.\n *\n * The three optional fields are omitted from the wire entirely unless the matching `profiles` include asked\n * for them, which is why they are optional rather than nullable — absent means \"not requested\", not \"none\".\n * The singular `profile` query never returns any of them.\n */\nexport interface MobileServerProfile {\n subaccount: Hex;\n username: string | null;\n display_name: string | null;\n private_mode: boolean;\n /**\n * Exact count at query time — the backend counts rather than reading a cached counter. Unnamed and private\n * accounts are included: Private Mode hides activity, not relationships. Requires `follow_counts`.\n */\n follower_count?: number;\n following_count?: number;\n /** Requires the `follow_summary` include, and is relative to that include's `view_as`. */\n follow_summary?: MobileServerFollowSummary;\n}\n\n/**\n * Server-side row of a Followers or Following page (snake_case).\n */\nexport interface MobileServerFollowListAccount {\n identity: MobileServerIdentitySummary;\n /**\n * The `view_as` Viewer's relationship to this account, not the listed relationship that put it in the\n * page, so it is `false` on the Viewer's own row. Omitted entirely when the request named no `view_as`,\n * rather than being sent as a misleading `false`.\n */\n is_following?: boolean;\n /** The listed account's own follower count, exact at query time. */\n follower_count: number;\n}\n\n/**\n * Direction of the position a feed trade resulted in — for `closed`, the direction that was closed. This is\n * NOT the execution buy/sell side, which the feed does not expose. Aliases {@link BalanceSide} so the feed's\n * direction values stay in lockstep with the rest of the SDK.\n */\nexport type MobileFeedTradePositionDirection = BalanceSide;\n\n/**\n * Every {@link MobileFeedTradePositionDirection} the feed can report, for callers that need the values at\n * runtime (validation, filters, UI enumeration).\n */\nexport const MOBILE_FEED_TRADE_POSITION_DIRECTIONS = [\n 'long',\n 'short',\n] as const satisfies readonly MobileFeedTradePositionDirection[];\n\n/**\n * Every {@link MobileFeedTradePositionEffect} the feed can report, for callers that need the values at\n * runtime (validation, filters, UI enumeration).\n */\nexport const MOBILE_FEED_TRADE_POSITION_EFFECTS = [\n 'opened',\n 'increased',\n 'reduced',\n 'closed',\n 'flipped',\n] as const;\n\n/**\n * How a feed trade changed the trader's position in the product.\n */\nexport type MobileFeedTradePositionEffect =\n (typeof MOBILE_FEED_TRADE_POSITION_EFFECTS)[number];\n\n/**\n * Position change of a feed trade. Both keys are single words, so the wire and client shapes are identical\n * and this type is shared by {@link MobileServerFeedTrade} and the client-side `MobileFeedTrade`.\n */\nexport interface MobileFeedTradePosition {\n direction: MobileFeedTradePositionDirection;\n effect: MobileFeedTradePositionEffect;\n}\n\n/**\n * Every {@link MobileFeedMarginMode} the feed can report, for callers that need the values at runtime\n * (validation, filters, UI enumeration).\n */\nexport const MOBILE_FEED_MARGIN_MODES = ['cross', 'isolated'] as const;\n\n/**\n * Margin mode a feed trade was executed under. Shared by the wire and client margin shapes.\n */\nexport type MobileFeedMarginMode = (typeof MOBILE_FEED_MARGIN_MODES)[number];\n\n/**\n * Server-side margin of a feed trade. Branch on `mode` — do not infer isolated state from leverage presence:\n * `estimated_leverage` (a rounded whole-number estimate, not exact submitted leverage) is omitted on `cross`,\n * and also omitted inside `isolated` when no estimate is available.\n */\nexport interface MobileServerFeedMargin {\n mode: MobileFeedMarginMode;\n estimated_leverage?: number;\n}\n\n/**\n * Server-side feed trade shape (snake_case): one row per order digest, enriched at read time with the\n * trader's current identity. Amounts are display-oriented human-unit JSON numbers — do not use them for\n * accounting, order construction, or exact threshold decisions.\n */\nexport interface MobileServerFeedTrade extends MobileServerIdentitySummary {\n /** Order digest this row is keyed by; the stable id clients use to reconcile live pagination. */\n order_digest: Hex;\n product_id: number;\n /** Executed quantity in human units. */\n quantity: number;\n /** Trade notional in whole-dollar human units. */\n notional: number;\n /** Average execution price in human units. */\n average_price: number;\n margin: MobileServerFeedMargin;\n position: MobileFeedTradePosition;\n /** Realized PnL of the trade in human units; can be negative. */\n realized_pnl: number;\n /** Fill time as JavaScript-safe integer Unix milliseconds. */\n filled_at_ms: number;\n}\n\n/**\n * Server-side scope limiting a notification category preference. Scopes are rejected by the backend for the\n * MVP (`scopes` must be empty) but are part of the wire format.\n */\nexport type MobileServerNotificationPreferenceScope =\n | { type: 'subaccount'; subaccount: Hex }\n | { type: 'product'; product_id: number };\n\n/**\n * Server-side per-category notification preference (snake_case).\n */\nexport interface MobileServerNotificationCategoryPreference {\n category: MobileNotificationCategory;\n enabled: boolean;\n scopes: MobileServerNotificationPreferenceScope[];\n}\n\n/**\n * Server-side notification preferences shape (snake_case), used in both the `update_preferences` public\n * execute and the `notification_preferences` public query response.\n */\nexport interface MobileServerNotificationPreferences {\n /** Only `1` is accepted by the backend for the MVP. */\n schema_version: 1;\n categories: MobileServerNotificationCategoryPreference[];\n}\n"],"mappings":";;;;;;AAgGA,MAAa,wCAAwC,CACnD,QACA,OACF;;;;;AAMA,MAAa,qCAAqC;CAChD;CACA;CACA;CACA;CACA;AACF;;;;;AAqBA,MAAa,2BAA2B,CAAC,SAAS,UAAU"}
1
+ {"version":3,"file":"serverModelTypes.cjs","names":[],"sources":["../../src/types/serverModelTypes.ts"],"sourcesContent":["import { BalanceSide } from '@nadohq/shared';\nimport { Hex } from 'viem';\n\n/**\n * Platform of a device registered for push notifications.\n */\nexport type MobileNotificationPlatform = 'ios' | 'android';\n\n/**\n * Category of push notification.\n */\nexport type MobileNotificationCategory =\n | 'order_fill'\n | 'order_update'\n | 'liquidation'\n | 'funding'\n | 'product_listing'\n | 'announcement';\n\n/**\n * Server-side identity summary (snake_case): the read-time identity fields the backend attaches to a\n * subaccount wherever it surfaces one alongside other data. Name fields are `null` until the subaccount\n * claims a username, and a rename shows up on the next read without any change to the surrounding record.\n */\nexport interface MobileServerIdentitySummary {\n subaccount: Hex;\n username: string | null;\n display_name: string | null;\n /** Reserved for a future avatar source; `null` until one is implemented. */\n avatar_url: string | null;\n}\n\n/**\n * Server-side follow summary (snake_case), nested in a `profiles` entry when the `follow_summary` include is\n * requested. `is_following` is the direct `view_as -> this profile` relationship; every `followed_by` entry\n * satisfies both `view_as -> entry` and `entry -> this profile`, so each one is already familiar to the\n * viewer and carries no `is_following` of its own.\n */\nexport interface MobileServerFollowSummary {\n is_following: boolean;\n /** Exact size of the two-edge intersection, independent of how many previews came back. */\n followed_by_count: number;\n /** Capped at `MOBILE_FOLLOWED_BY_PREVIEW_LIMIT` (2) by the backend; not client-configurable. */\n followed_by: MobileServerIdentitySummary[];\n}\n\n/**\n * Server-side public profile shape (snake_case), shared by the singular `profile` and batched `profiles`\n * queries. Name fields are `null` until the subaccount claims a username; a subaccount with no identity row\n * still yields an entry, with `null` names and `private_mode: false`.\n *\n * The three optional fields are omitted from the wire entirely unless the matching `profiles` include asked\n * for them, which is why they are optional rather than nullable — absent means \"not requested\", not \"none\".\n * The singular `profile` query never returns any of them.\n */\nexport interface MobileServerProfile {\n subaccount: Hex;\n username: string | null;\n display_name: string | null;\n private_mode: boolean;\n /**\n * Exact count at query time — the backend counts rather than reading a cached counter. Unnamed and private\n * accounts are included: Private Mode hides activity, not relationships. Requires `follow_counts`.\n */\n follower_count?: number;\n following_count?: number;\n /** Requires the `follow_summary` include, and is relative to that include's `view_as`. */\n follow_summary?: MobileServerFollowSummary;\n}\n\n/**\n * Server-side row of a Followers or Following page (snake_case).\n */\nexport interface MobileServerFollowListAccount {\n identity: MobileServerIdentitySummary;\n /**\n * The `view_as` Viewer's relationship to this account, not the listed relationship that put it in the\n * page, so it is `false` on the Viewer's own row. Omitted entirely when the request named no `view_as`,\n * rather than being sent as a misleading `false`.\n */\n is_following?: boolean;\n /** The listed account's own follower count, exact at query time. */\n follower_count: number;\n}\n\n/**\n * Direction of the position a feed trade resulted in — for `closed`, the direction that was closed. This is\n * NOT the execution buy/sell side, which the feed does not expose. Aliases {@link BalanceSide} so the feed's\n * direction values stay in lockstep with the rest of the SDK.\n */\nexport type MobileFeedTradePositionDirection = BalanceSide;\n\n/**\n * Every {@link MobileFeedTradePositionDirection} the feed can report, for callers that need the values at\n * runtime (validation, filters, UI enumeration).\n */\nexport const MOBILE_FEED_TRADE_POSITION_DIRECTIONS = [\n 'long',\n 'short',\n] as const satisfies readonly MobileFeedTradePositionDirection[];\n\n/**\n * Every {@link MobileFeedTradePositionEffect} the feed can report, for callers that need the values at\n * runtime (validation, filters, UI enumeration).\n */\nexport const MOBILE_FEED_TRADE_POSITION_EFFECTS = [\n 'opened',\n 'increased',\n 'reduced',\n 'closed',\n 'flipped',\n] as const;\n\n/**\n * How a feed trade changed the trader's position in the product.\n */\nexport type MobileFeedTradePositionEffect =\n (typeof MOBILE_FEED_TRADE_POSITION_EFFECTS)[number];\n\n/**\n * Position change of a feed trade. Both keys are single words, so the wire and client shapes are identical\n * and this type is shared by {@link MobileServerFeedTrade} and the client-side `MobileFeedTrade`.\n */\nexport interface MobileFeedTradePosition {\n direction: MobileFeedTradePositionDirection;\n effect: MobileFeedTradePositionEffect;\n}\n\n/**\n * Every {@link MobileFeedMarginMode} the feed can report, for callers that need the values at runtime\n * (validation, filters, UI enumeration).\n */\nexport const MOBILE_FEED_MARGIN_MODES = ['cross', 'isolated'] as const;\n\n/**\n * Margin mode a feed trade was executed under. Shared by the wire and client margin shapes.\n */\nexport type MobileFeedMarginMode = (typeof MOBILE_FEED_MARGIN_MODES)[number];\n\n/**\n * Server-side margin of a feed trade. Branch on `mode` — do not infer isolated state from leverage presence:\n * `estimated_leverage` (a rounded whole-number estimate, not exact submitted leverage) is omitted on `cross`,\n * and also omitted inside `isolated` when no estimate is available.\n */\nexport interface MobileServerFeedMargin {\n mode: MobileFeedMarginMode;\n estimated_leverage?: number;\n}\n\n/**\n * Server-side feed trade shape (snake_case): one row per order digest, enriched at read time with the\n * trader's current identity. Amounts are display-oriented human-unit JSON numbers — do not use them for\n * accounting, order construction, or exact threshold decisions.\n */\nexport interface MobileServerFeedTrade extends MobileServerIdentitySummary {\n /** Order digest this row is keyed by; the stable id clients use to reconcile live pagination. */\n order_digest: Hex;\n product_id: number;\n /** Executed quantity in human units. */\n quantity: number;\n /** Trade notional in whole-dollar human units. */\n notional: number;\n /** Average execution price in human units. */\n average_price: number;\n margin: MobileServerFeedMargin;\n position: MobileFeedTradePosition;\n /** Realized PnL of the trade in human units; can be negative. */\n realized_pnl: number;\n /** Fill time as JavaScript-safe integer Unix milliseconds. */\n filled_at_ms: number;\n}\n\n/**\n * Server-side scope limiting a notification category preference. Scopes are rejected by the backend for the\n * MVP (`scopes` must be empty) but are part of the wire format.\n */\nexport type MobileServerNotificationPreferenceScope =\n | { type: 'subaccount'; subaccount: Hex }\n | { type: 'product'; product_id: number };\n\n/**\n * Server-side per-category notification preference (snake_case).\n */\nexport interface MobileServerNotificationCategoryPreference {\n category: MobileNotificationCategory;\n enabled: boolean;\n scopes: MobileServerNotificationPreferenceScope[];\n}\n\n/**\n * Server-side notification preferences shape (snake_case), used in both the `update_preferences` public\n * execute and the `notification_preferences` public query response.\n */\nexport interface MobileServerNotificationPreferences {\n /** Only `1` is accepted by the backend for the MVP. */\n schema_version: 1;\n categories: MobileServerNotificationCategoryPreference[];\n}\n\n/** Content filters accepted by the six social feed lists. Empty or omitted means all. */\nexport type MobileSocialFeedType =\n | 'open'\n | 'close'\n | 'size_change'\n | 'thoughts'\n | 'analysis'\n | 'comments';\n\n/** Market category used by the social feed. */\nexport type MobileSocialFeedMarketCategory = 'crypto' | 'finance';\n\n/** Qualification tier for an account-level PnL badge. */\nexport type MobileSocialFeedTraderBadgeCode = 'shark' | 'whale';\n\n/** Availability of the current or last successful qualification snapshot. */\nexport type MobileSocialFeedCohortStatus = 'ready' | 'stale';\n\n/** Availability of an author's qualification data. */\nexport type MobileSocialFeedTraderDataStatus =\n | MobileSocialFeedCohortStatus\n | 'unavailable';\n\n/** Category from the authoritative market source. */\nexport type MobileSocialFeedSourceCategory =\n | 'crypto'\n | 'stocks'\n | 'forex'\n | 'commodities';\n\n/** Accounting basis used for position PnL. */\nexport type MobileSocialFeedPnlBasis =\n | 'unrealized_excl_fees_funding'\n | 'realized_incl_fees_funding';\n\n/** Whether position PnL is live or frozen at close. */\nexport type MobileSocialFeedPnlMode = 'live' | 'frozen';\n\n/** Completeness of position PnL accounting. */\nexport type MobileSocialFeedPnlQuality = 'ready' | 'pending' | 'unavailable';\n\n/** Source of the displayed position size and entry price. */\nexport type MobileSocialFeedPositionDisplayBasis =\n | 'current_position'\n | 'closing_snapshot';\n\n/** Current state of a position lifecycle. */\nexport type MobileSocialFeedPositionState = 'open' | 'closed';\n\n/** Completeness of the available position history. */\nexport type MobileSocialFeedHistoryQuality = 'complete' | 'partial';\n\n/** Trading action represented by an ordinary size-change row. */\nexport type MobileSocialFeedTradeSizeChangeAction = 'increased' | 'reduced';\n\n/** Trading action represented by an automatic trade card. */\nexport type MobileSocialFeedTradeCardAction =\n | 'opened'\n | 'closed'\n | MobileSocialFeedTradeSizeChangeAction;\n\n/** Whether a reading session was created for a list or a direct item. */\nexport type MobileSocialFeedReadSessionMode = 'feed' | 'item';\n\n/** Kind of feed update target. */\nexport type MobileSocialFeedTargetType = 'item' | 'position';\n\n/** Official account-level 30-day PnL badge, independent of position PnL. */\nexport interface MobileServerSocialFeedTraderBadge {\n /** Qualification tier. */\n code: MobileSocialFeedTraderBadgeCode;\n /** Signed integer in x18 units. */\n pnl_x18: string;\n /** Stable compatibility identifier for the official Portfolio month result. */\n metric_key: 'account_pnl_30d_equity';\n /** PnL window label. */\n window: '30d';\n /** Official source timestamp in Unix milliseconds. */\n source_as_of_ms: number;\n /** Fetch completion timestamp in Unix milliseconds. */\n fetched_at_ms: number;\n /** Qualification snapshot UUID. */\n snapshot_id: string;\n}\n\n/** Public author identity and the selected viewing account's follow state. */\nexport interface MobileServerSocialFeedAuthor extends MobileServerIdentitySummary {\n /** Selected view_as account's follow state; null without a viewing account. */\n is_following: boolean | null;\n /** Null when no qualifying badge is available. */\n trader_badge: MobileServerSocialFeedTraderBadge | null;\n /** Stale means the last successful cohort is used after a refresh failure. */\n trader_data_status: MobileSocialFeedTraderDataStatus;\n}\n\n/** Market metadata from the service's authoritative market source. */\nexport interface MobileServerSocialFeedMarket {\n /** Market product ID. */\n product_id: number;\n /** Market symbol. */\n symbol: string;\n /** Logo URL when available. */\n logo_url: string | null;\n /** Social feed category when known. */\n category: MobileSocialFeedMarketCategory | null;\n /** Original market categories. */\n source_categories: MobileSocialFeedSourceCategory[];\n}\n\n/** Leverage display value; unknown isolated leverage differs from inapplicable cross leverage. */\nexport interface MobileSocialFeedLeverage {\n /** Rounded whole-number string, or null. Never an estimated replacement. */\n value: string | null;\n /** Cross margin uses not_applicable. */\n basis: 'effective' | 'unknown' | 'not_applicable';\n}\n\n/** Position PnL with explicit accounting basis and data quality. */\nexport interface MobileServerSocialFeedPnl {\n /** Signed x18 integer; null means unknown, not zero. */\n amount_x18: string | null;\n /** Open positions exclude fees/funding; closed results include them. */\n basis: MobileSocialFeedPnlBasis;\n /** Closed positions use frozen results. */\n mode: MobileSocialFeedPnlMode;\n /** Source timestamp in Unix milliseconds. */\n as_of_ms: number;\n /** Whether accounting is complete, pending, or unavailable. */\n quality: MobileSocialFeedPnlQuality;\n}\n\n/** Complete mutable position fields delivered together at one version. */\nexport interface MobileServerSocialFeedPositionPatch {\n /** Position lifecycle UUID. */\n position_id: string;\n /** Positive integer string; compare as integers without Number conversion. */\n position_version: string;\n /** Position state timestamp in Unix milliseconds. */\n state_as_of_ms: number;\n /** Remaining average entry cost, frozen on close; x18 or null. */\n entry_price_x18: string | null;\n /** Basis of the displayed size and entry price. */\n display_basis: MobileSocialFeedPositionDisplayBasis;\n /** Closing snapshot reference time, or null. */\n snapshot_at_ms: number | null;\n /** Absolute quantity in x18 units. */\n quantity_x18: string;\n /** Notional value in x18 units. */\n notional_x18: string;\n /** Current lifecycle state. */\n state: MobileSocialFeedPositionState;\n /** Completeness of the available historical facts. */\n history_quality: MobileSocialFeedHistoryQuality;\n /** Margin mode. */\n margin_mode: MobileFeedMarginMode;\n /** Current or closing leverage. */\n leverage: MobileSocialFeedLeverage;\n /** Leverage reference time; null when unknown or inapplicable. */\n leverage_at_ms: number | null;\n /** Current remaining PnL or the closed lifecycle's net result. */\n pnl: MobileServerSocialFeedPnl;\n}\n\n/** Position displayed inside an automatic trade card. */\nexport interface MobileServerSocialFeedPositionCard extends MobileServerSocialFeedPositionPatch {\n /** Market product ID. */\n product_id: number;\n /** Market display metadata. */\n market: MobileServerSocialFeedMarket;\n /** Position direction. */\n direction: MobileFeedTradePositionDirection;\n}\n\n/** Interaction counters; interaction writes are not currently available. */\nexport interface MobileServerSocialFeedInteraction {\n /** Number of likes. */\n like_count: number;\n /** Number of comments. */\n comment_count: number;\n /** Number of recorded views. */\n view_count: number;\n /** Null while likes are unavailable, including with a viewing account. */\n liked_by_me: boolean | null;\n}\n\n/** Capability flags for a social feed item. */\nexport interface MobileServerSocialFeedCapabilities {\n /** Whether liking is available. */\n can_like: boolean;\n /** Whether commenting is available. */\n can_comment: boolean;\n /** Whether exposure recording is available. */\n can_record_view: boolean;\n}\n\n/** Comment preview metadata for a social trade card. */\nexport interface MobileServerSocialFeedCommentPreview {\n /** Currently empty. */\n items: never[];\n /** Comment count. */\n total_count: number;\n /** Comment cursor, if available. */\n next_cursor: string | null;\n}\n\n/** Exposure requirements associated with a reading session. */\nexport interface MobileServerSocialFeedViewTracking {\n /** Required visible fraction. */\n min_visible_ratio: number;\n /** Required visible duration in milliseconds. */\n min_duration_ms: number;\n}\n\n/** Coverage of the candidate authors in a qualification snapshot. */\nexport interface MobileServerSocialFeedCohortCoverage {\n /** Coverage domain. */\n scope: 'eligible_content_candidates';\n /** Candidate author count. */\n total_authors: number;\n /** Authors queried for this snapshot. */\n queried_authors: number;\n /** A successful response requires complete coverage. */\n complete: true;\n}\n\n/** Shared qualification snapshot used for Top Traders eligibility and badges. */\nexport interface MobileServerSocialFeedCohort {\n /** Cohort UUID. */\n snapshot_id: string;\n /** Ready or the previous successful snapshot after a refresh failure. */\n status: MobileSocialFeedCohortStatus;\n /** Coverage of all eligible candidate authors. */\n coverage: MobileServerSocialFeedCohortCoverage;\n}\n\n/** Metadata shared by the automatic trade cards and rows available from the social feed. */\nexport interface MobileServerSocialFeedItemBase {\n /** Item UUID. */\n id: string;\n /** Whether authored analysis exists. */\n has_analysis: boolean;\n /** Drawings are not currently available. */\n drawing: null;\n /** Author identity, badge, and follow perspective. */\n author: MobileServerSocialFeedAuthor;\n /** Creation time in Unix milliseconds. */\n created_at_ms: number;\n /** Sorting time in Unix milliseconds. */\n display_at_ms: number;\n /** Positive integer version string. */\n version: string;\n /** Market metadata. */\n market: MobileServerSocialFeedMarket;\n /** Server capability flags; currently all false. */\n capabilities: MobileServerSocialFeedCapabilities;\n}\n\n/** Automatic trade card returned by the social feed. */\nexport interface MobileServerSocialFeedTradeCard extends MobileServerSocialFeedItemBase {\n /** Card discriminant. */\n kind: 'trade_card';\n /** Trading action. */\n action: MobileSocialFeedTradeCardAction;\n /** Card text, empty for automatic cards. */\n text: string;\n /** Automatic cards have no mentions. */\n mentions: never[];\n /** Current or frozen position display. */\n position: MobileServerSocialFeedPositionCard;\n /** Interaction counters. */\n interaction: MobileServerSocialFeedInteraction;\n /** Comment content is not currently available. */\n comment_preview: MobileServerSocialFeedCommentPreview;\n}\n\n/** Fields shared by size-change and liquidation trade rows. */\nexport interface MobileServerSocialFeedTradeRowBase extends MobileServerSocialFeedItemBase {\n /** Row discriminant. */\n kind: 'trade_row';\n /** Associated lifecycle UUID. */\n position_id: string;\n /** Position direction. */\n direction: MobileFeedTradePositionDirection;\n /** Historical margin mode. */\n margin_mode: MobileFeedMarginMode;\n /** Historical action leverage, not the position's current leverage. */\n leverage: MobileSocialFeedLeverage;\n /** Historical leverage reference time. */\n leverage_at_ms: number | null;\n /** Number of aggregated trades. */\n trade_count: number;\n /** Absolute traded quantity in x18 units. */\n quantity_x18: string;\n /** Actual execution price in x18 units, never an Oracle substitution. */\n average_price_x18: string | null;\n}\n\n/** A size-change row or liquidation row with independently nullable financial facts. */\nexport type MobileServerSocialFeedTradeRow =\n MobileServerSocialFeedTradeRowBase &\n (\n | {\n /** Ordinary size-change action. */\n action: MobileSocialFeedTradeSizeChangeAction;\n /** Executed notional in x18 units. */\n notional_x18: string;\n }\n | {\n /** Liquidation discriminant. */\n action: 'liquidated';\n /** Quantity times event Oracle; null if that Oracle is unknown. */\n notional_x18: string | null;\n /** Entry cost immediately before the event, in x18 units. */\n entry_price_x18: string | null;\n /** Event Oracle used for display and size filtering. */\n liquidation_oracle_price_x18: string | null;\n /** Actual execution price, independent of Oracle. */\n liquidation_execution_price_x18: string | null;\n /** Signed action PnL excluding ordinary fees/funding, or null. */\n realized_pnl_delta_x18: string | null;\n }\n );\n\n/** Automatic feed content; excludes posts, replies, drawings, and interaction writes. */\nexport type MobileServerSocialFeedItem =\n | MobileServerSocialFeedTradeCard\n | MobileServerSocialFeedTradeRow;\n\n/** Fixed-duration social feed reading session. Credentials and cursors must be returned unchanged. */\nexport interface MobileServerSocialFeedReadSession {\n /** Session identifier. */\n session_id: string;\n /** Feed or direct item session. */\n mode: MobileSocialFeedReadSessionMode;\n /** Fixed expiration time in Unix milliseconds; pagination does not extend it. */\n expires_at_ms: number;\n /** Exposure metadata only; recording is not available from the social feed. */\n view_tracking: MobileServerSocialFeedViewTracking;\n /** Initial update baseline, distinct from the page cursor. */\n update_cursor: string | null;\n /** Credential for this reading session. Do not log or cache publicly. */\n viewer_token: string;\n}\n\n/** Item delta: omitted means unchanged; explicit null clears a prior value. */\nexport interface MobileServerSocialFeedItemPatch {\n /** Current author identity, follow state, and qualification badge. */\n author: MobileServerSocialFeedAuthor;\n /** Target item UUID. */\n item_id: string;\n /** Positive integer version string. */\n version: string;\n /** Updated interaction counters. */\n interaction?: MobileServerSocialFeedInteraction;\n /** Updated display timestamp; does not reorder the current list. */\n display_at_ms: number;\n /** Updated aggregate count. */\n trade_count?: number;\n /** Updated quantity in x18 units. */\n quantity_x18?: string;\n /** Updated notional; liquidation Oracle may be unknown. */\n notional_x18?: string | null;\n /** Updated actual execution price. */\n average_price_x18?: string | null;\n /** Historical liquidation entry cost. */\n entry_price_x18?: string | null;\n /** Updated liquidation Oracle. */\n liquidation_oracle_price_x18?: string | null;\n /** Updated actual liquidation execution price. */\n liquidation_execution_price_x18?: string | null;\n /** Updated signed action PnL. */\n realized_pnl_delta_x18?: string | null;\n /** Updated historical row leverage. */\n leverage?: MobileSocialFeedLeverage;\n /** Updated historical leverage reference time. */\n leverage_at_ms?: number | null;\n}\n\n/** A previously authorized target that can no longer be read; shared by wire and client responses. */\nexport interface MobileSocialFeedUnavailableTarget {\n /** Target kind. */\n type: MobileSocialFeedTargetType;\n /** Target UUID. */\n id: string;\n /** Uniform reason prevents leaking inaccessible content. */\n reason: 'unavailable';\n}\n"],"mappings":";;;;;;AAgGA,MAAa,wCAAwC,CACnD,QACA,OACF;;;;;AAMA,MAAa,qCAAqC;CAChD;CACA;CACA;CACA;CACA;AACF;;;;;AAqBA,MAAa,2BAA2B,CAAC,SAAS,UAAU"}
@@ -1,2 +1,2 @@
1
- import { _ as MobileServerNotificationPreferences, a as MobileFeedTradePosition, c as MobileNotificationCategory, d as MobileServerFeedTrade, f as MobileServerFollowListAccount, g as MobileServerNotificationPreferenceScope, h as MobileServerNotificationCategoryPreference, i as MobileFeedMarginMode, l as MobileNotificationPlatform, m as MobileServerIdentitySummary, n as MOBILE_FEED_TRADE_POSITION_DIRECTIONS, o as MobileFeedTradePositionDirection, p as MobileServerFollowSummary, r as MOBILE_FEED_TRADE_POSITION_EFFECTS, s as MobileFeedTradePositionEffect, t as MOBILE_FEED_MARGIN_MODES, u as MobileServerFeedMargin, v as MobileServerProfile } from "../serverModelTypes-YmHqfxc8.cjs";
2
- export { MOBILE_FEED_MARGIN_MODES, MOBILE_FEED_TRADE_POSITION_DIRECTIONS, MOBILE_FEED_TRADE_POSITION_EFFECTS, MobileFeedMarginMode, MobileFeedTradePosition, MobileFeedTradePositionDirection, MobileFeedTradePositionEffect, MobileNotificationCategory, MobileNotificationPlatform, MobileServerFeedMargin, MobileServerFeedTrade, MobileServerFollowListAccount, MobileServerFollowSummary, MobileServerIdentitySummary, MobileServerNotificationCategoryPreference, MobileServerNotificationPreferenceScope, MobileServerNotificationPreferences, MobileServerProfile };
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
+ export { MOBILE_FEED_MARGIN_MODES, MOBILE_FEED_TRADE_POSITION_DIRECTIONS, MOBILE_FEED_TRADE_POSITION_EFFECTS, MobileFeedMarginMode, MobileFeedTradePosition, MobileFeedTradePositionDirection, MobileFeedTradePositionEffect, MobileNotificationCategory, MobileNotificationPlatform, MobileServerFeedMargin, MobileServerFeedTrade, MobileServerFollowListAccount, MobileServerFollowSummary, MobileServerIdentitySummary, MobileServerNotificationCategoryPreference, MobileServerNotificationPreferenceScope, MobileServerNotificationPreferences, MobileServerProfile, MobileServerSocialFeedAuthor, MobileServerSocialFeedCapabilities, MobileServerSocialFeedCohort, MobileServerSocialFeedCohortCoverage, MobileServerSocialFeedCommentPreview, MobileServerSocialFeedInteraction, MobileServerSocialFeedItem, MobileServerSocialFeedItemBase, MobileServerSocialFeedItemPatch, MobileServerSocialFeedMarket, MobileServerSocialFeedPnl, MobileServerSocialFeedPositionCard, MobileServerSocialFeedPositionPatch, MobileServerSocialFeedReadSession, MobileServerSocialFeedTradeCard, MobileServerSocialFeedTradeRow, MobileServerSocialFeedTradeRowBase, MobileServerSocialFeedTraderBadge, MobileServerSocialFeedViewTracking, MobileSocialFeedCohortStatus, MobileSocialFeedHistoryQuality, MobileSocialFeedLeverage, MobileSocialFeedMarketCategory, MobileSocialFeedPnlBasis, MobileSocialFeedPnlMode, MobileSocialFeedPnlQuality, MobileSocialFeedPositionDisplayBasis, MobileSocialFeedPositionState, MobileSocialFeedReadSessionMode, MobileSocialFeedSourceCategory, MobileSocialFeedTargetType, MobileSocialFeedTradeCardAction, MobileSocialFeedTradeSizeChangeAction, MobileSocialFeedTraderBadgeCode, MobileSocialFeedTraderDataStatus, MobileSocialFeedType, MobileSocialFeedUnavailableTarget };
@@ -1,2 +1,2 @@
1
- import { _ as MobileServerNotificationPreferences, a as MobileFeedTradePosition, c as MobileNotificationCategory, d as MobileServerFeedTrade, f as MobileServerFollowListAccount, g as MobileServerNotificationPreferenceScope, h as MobileServerNotificationCategoryPreference, i as MobileFeedMarginMode, l as MobileNotificationPlatform, m as MobileServerIdentitySummary, n as MOBILE_FEED_TRADE_POSITION_DIRECTIONS, o as MobileFeedTradePositionDirection, p as MobileServerFollowSummary, r as MOBILE_FEED_TRADE_POSITION_EFFECTS, s as MobileFeedTradePositionEffect, t as MOBILE_FEED_MARGIN_MODES, u as MobileServerFeedMargin, v as MobileServerProfile } from "../serverModelTypes-YmHqfxc8.js";
2
- export { MOBILE_FEED_MARGIN_MODES, MOBILE_FEED_TRADE_POSITION_DIRECTIONS, MOBILE_FEED_TRADE_POSITION_EFFECTS, MobileFeedMarginMode, MobileFeedTradePosition, MobileFeedTradePositionDirection, MobileFeedTradePositionEffect, MobileNotificationCategory, MobileNotificationPlatform, MobileServerFeedMargin, MobileServerFeedTrade, MobileServerFollowListAccount, MobileServerFollowSummary, MobileServerIdentitySummary, MobileServerNotificationCategoryPreference, MobileServerNotificationPreferenceScope, MobileServerNotificationPreferences, MobileServerProfile };
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
+ export { MOBILE_FEED_MARGIN_MODES, MOBILE_FEED_TRADE_POSITION_DIRECTIONS, MOBILE_FEED_TRADE_POSITION_EFFECTS, MobileFeedMarginMode, MobileFeedTradePosition, MobileFeedTradePositionDirection, MobileFeedTradePositionEffect, MobileNotificationCategory, MobileNotificationPlatform, MobileServerFeedMargin, MobileServerFeedTrade, MobileServerFollowListAccount, MobileServerFollowSummary, MobileServerIdentitySummary, MobileServerNotificationCategoryPreference, MobileServerNotificationPreferenceScope, MobileServerNotificationPreferences, MobileServerProfile, MobileServerSocialFeedAuthor, MobileServerSocialFeedCapabilities, MobileServerSocialFeedCohort, MobileServerSocialFeedCohortCoverage, MobileServerSocialFeedCommentPreview, MobileServerSocialFeedInteraction, MobileServerSocialFeedItem, MobileServerSocialFeedItemBase, MobileServerSocialFeedItemPatch, MobileServerSocialFeedMarket, MobileServerSocialFeedPnl, MobileServerSocialFeedPositionCard, MobileServerSocialFeedPositionPatch, MobileServerSocialFeedReadSession, MobileServerSocialFeedTradeCard, MobileServerSocialFeedTradeRow, MobileServerSocialFeedTradeRowBase, MobileServerSocialFeedTraderBadge, MobileServerSocialFeedViewTracking, MobileSocialFeedCohortStatus, MobileSocialFeedHistoryQuality, MobileSocialFeedLeverage, MobileSocialFeedMarketCategory, MobileSocialFeedPnlBasis, MobileSocialFeedPnlMode, MobileSocialFeedPnlQuality, MobileSocialFeedPositionDisplayBasis, MobileSocialFeedPositionState, MobileSocialFeedReadSessionMode, MobileSocialFeedSourceCategory, MobileSocialFeedTargetType, MobileSocialFeedTradeCardAction, MobileSocialFeedTradeSizeChangeAction, MobileSocialFeedTraderBadgeCode, MobileSocialFeedTraderDataStatus, MobileSocialFeedType, MobileSocialFeedUnavailableTarget };
@@ -1 +1 @@
1
- {"version":3,"file":"serverModelTypes.js","names":[],"sources":["../../src/types/serverModelTypes.ts"],"sourcesContent":["import { BalanceSide } from '@nadohq/shared';\nimport { Hex } from 'viem';\n\n/**\n * Platform of a device registered for push notifications.\n */\nexport type MobileNotificationPlatform = 'ios' | 'android';\n\n/**\n * Category of push notification.\n */\nexport type MobileNotificationCategory =\n | 'order_fill'\n | 'order_update'\n | 'liquidation'\n | 'funding'\n | 'product_listing'\n | 'announcement';\n\n/**\n * Server-side identity summary (snake_case): the read-time identity fields the backend attaches to a\n * subaccount wherever it surfaces one alongside other data. Name fields are `null` until the subaccount\n * claims a username, and a rename shows up on the next read without any change to the surrounding record.\n */\nexport interface MobileServerIdentitySummary {\n subaccount: Hex;\n username: string | null;\n display_name: string | null;\n /** Reserved for a future avatar source; `null` until one is implemented. */\n avatar_url: string | null;\n}\n\n/**\n * Server-side follow summary (snake_case), nested in a `profiles` entry when the `follow_summary` include is\n * requested. `is_following` is the direct `view_as -> this profile` relationship; every `followed_by` entry\n * satisfies both `view_as -> entry` and `entry -> this profile`, so each one is already familiar to the\n * viewer and carries no `is_following` of its own.\n */\nexport interface MobileServerFollowSummary {\n is_following: boolean;\n /** Exact size of the two-edge intersection, independent of how many previews came back. */\n followed_by_count: number;\n /** Capped at `MOBILE_FOLLOWED_BY_PREVIEW_LIMIT` (2) by the backend; not client-configurable. */\n followed_by: MobileServerIdentitySummary[];\n}\n\n/**\n * Server-side public profile shape (snake_case), shared by the singular `profile` and batched `profiles`\n * queries. Name fields are `null` until the subaccount claims a username; a subaccount with no identity row\n * still yields an entry, with `null` names and `private_mode: false`.\n *\n * The three optional fields are omitted from the wire entirely unless the matching `profiles` include asked\n * for them, which is why they are optional rather than nullable — absent means \"not requested\", not \"none\".\n * The singular `profile` query never returns any of them.\n */\nexport interface MobileServerProfile {\n subaccount: Hex;\n username: string | null;\n display_name: string | null;\n private_mode: boolean;\n /**\n * Exact count at query time — the backend counts rather than reading a cached counter. Unnamed and private\n * accounts are included: Private Mode hides activity, not relationships. Requires `follow_counts`.\n */\n follower_count?: number;\n following_count?: number;\n /** Requires the `follow_summary` include, and is relative to that include's `view_as`. */\n follow_summary?: MobileServerFollowSummary;\n}\n\n/**\n * Server-side row of a Followers or Following page (snake_case).\n */\nexport interface MobileServerFollowListAccount {\n identity: MobileServerIdentitySummary;\n /**\n * The `view_as` Viewer's relationship to this account, not the listed relationship that put it in the\n * page, so it is `false` on the Viewer's own row. Omitted entirely when the request named no `view_as`,\n * rather than being sent as a misleading `false`.\n */\n is_following?: boolean;\n /** The listed account's own follower count, exact at query time. */\n follower_count: number;\n}\n\n/**\n * Direction of the position a feed trade resulted in — for `closed`, the direction that was closed. This is\n * NOT the execution buy/sell side, which the feed does not expose. Aliases {@link BalanceSide} so the feed's\n * direction values stay in lockstep with the rest of the SDK.\n */\nexport type MobileFeedTradePositionDirection = BalanceSide;\n\n/**\n * Every {@link MobileFeedTradePositionDirection} the feed can report, for callers that need the values at\n * runtime (validation, filters, UI enumeration).\n */\nexport const MOBILE_FEED_TRADE_POSITION_DIRECTIONS = [\n 'long',\n 'short',\n] as const satisfies readonly MobileFeedTradePositionDirection[];\n\n/**\n * Every {@link MobileFeedTradePositionEffect} the feed can report, for callers that need the values at\n * runtime (validation, filters, UI enumeration).\n */\nexport const MOBILE_FEED_TRADE_POSITION_EFFECTS = [\n 'opened',\n 'increased',\n 'reduced',\n 'closed',\n 'flipped',\n] as const;\n\n/**\n * How a feed trade changed the trader's position in the product.\n */\nexport type MobileFeedTradePositionEffect =\n (typeof MOBILE_FEED_TRADE_POSITION_EFFECTS)[number];\n\n/**\n * Position change of a feed trade. Both keys are single words, so the wire and client shapes are identical\n * and this type is shared by {@link MobileServerFeedTrade} and the client-side `MobileFeedTrade`.\n */\nexport interface MobileFeedTradePosition {\n direction: MobileFeedTradePositionDirection;\n effect: MobileFeedTradePositionEffect;\n}\n\n/**\n * Every {@link MobileFeedMarginMode} the feed can report, for callers that need the values at runtime\n * (validation, filters, UI enumeration).\n */\nexport const MOBILE_FEED_MARGIN_MODES = ['cross', 'isolated'] as const;\n\n/**\n * Margin mode a feed trade was executed under. Shared by the wire and client margin shapes.\n */\nexport type MobileFeedMarginMode = (typeof MOBILE_FEED_MARGIN_MODES)[number];\n\n/**\n * Server-side margin of a feed trade. Branch on `mode` — do not infer isolated state from leverage presence:\n * `estimated_leverage` (a rounded whole-number estimate, not exact submitted leverage) is omitted on `cross`,\n * and also omitted inside `isolated` when no estimate is available.\n */\nexport interface MobileServerFeedMargin {\n mode: MobileFeedMarginMode;\n estimated_leverage?: number;\n}\n\n/**\n * Server-side feed trade shape (snake_case): one row per order digest, enriched at read time with the\n * trader's current identity. Amounts are display-oriented human-unit JSON numbers — do not use them for\n * accounting, order construction, or exact threshold decisions.\n */\nexport interface MobileServerFeedTrade extends MobileServerIdentitySummary {\n /** Order digest this row is keyed by; the stable id clients use to reconcile live pagination. */\n order_digest: Hex;\n product_id: number;\n /** Executed quantity in human units. */\n quantity: number;\n /** Trade notional in whole-dollar human units. */\n notional: number;\n /** Average execution price in human units. */\n average_price: number;\n margin: MobileServerFeedMargin;\n position: MobileFeedTradePosition;\n /** Realized PnL of the trade in human units; can be negative. */\n realized_pnl: number;\n /** Fill time as JavaScript-safe integer Unix milliseconds. */\n filled_at_ms: number;\n}\n\n/**\n * Server-side scope limiting a notification category preference. Scopes are rejected by the backend for the\n * MVP (`scopes` must be empty) but are part of the wire format.\n */\nexport type MobileServerNotificationPreferenceScope =\n | { type: 'subaccount'; subaccount: Hex }\n | { type: 'product'; product_id: number };\n\n/**\n * Server-side per-category notification preference (snake_case).\n */\nexport interface MobileServerNotificationCategoryPreference {\n category: MobileNotificationCategory;\n enabled: boolean;\n scopes: MobileServerNotificationPreferenceScope[];\n}\n\n/**\n * Server-side notification preferences shape (snake_case), used in both the `update_preferences` public\n * execute and the `notification_preferences` public query response.\n */\nexport interface MobileServerNotificationPreferences {\n /** Only `1` is accepted by the backend for the MVP. */\n schema_version: 1;\n categories: MobileServerNotificationCategoryPreference[];\n}\n"],"mappings":";;;;;AAgGA,MAAa,wCAAwC,CACnD,QACA,OACF;;;;;AAMA,MAAa,qCAAqC;CAChD;CACA;CACA;CACA;CACA;AACF;;;;;AAqBA,MAAa,2BAA2B,CAAC,SAAS,UAAU"}
1
+ {"version":3,"file":"serverModelTypes.js","names":[],"sources":["../../src/types/serverModelTypes.ts"],"sourcesContent":["import { BalanceSide } from '@nadohq/shared';\nimport { Hex } from 'viem';\n\n/**\n * Platform of a device registered for push notifications.\n */\nexport type MobileNotificationPlatform = 'ios' | 'android';\n\n/**\n * Category of push notification.\n */\nexport type MobileNotificationCategory =\n | 'order_fill'\n | 'order_update'\n | 'liquidation'\n | 'funding'\n | 'product_listing'\n | 'announcement';\n\n/**\n * Server-side identity summary (snake_case): the read-time identity fields the backend attaches to a\n * subaccount wherever it surfaces one alongside other data. Name fields are `null` until the subaccount\n * claims a username, and a rename shows up on the next read without any change to the surrounding record.\n */\nexport interface MobileServerIdentitySummary {\n subaccount: Hex;\n username: string | null;\n display_name: string | null;\n /** Reserved for a future avatar source; `null` until one is implemented. */\n avatar_url: string | null;\n}\n\n/**\n * Server-side follow summary (snake_case), nested in a `profiles` entry when the `follow_summary` include is\n * requested. `is_following` is the direct `view_as -> this profile` relationship; every `followed_by` entry\n * satisfies both `view_as -> entry` and `entry -> this profile`, so each one is already familiar to the\n * viewer and carries no `is_following` of its own.\n */\nexport interface MobileServerFollowSummary {\n is_following: boolean;\n /** Exact size of the two-edge intersection, independent of how many previews came back. */\n followed_by_count: number;\n /** Capped at `MOBILE_FOLLOWED_BY_PREVIEW_LIMIT` (2) by the backend; not client-configurable. */\n followed_by: MobileServerIdentitySummary[];\n}\n\n/**\n * Server-side public profile shape (snake_case), shared by the singular `profile` and batched `profiles`\n * queries. Name fields are `null` until the subaccount claims a username; a subaccount with no identity row\n * still yields an entry, with `null` names and `private_mode: false`.\n *\n * The three optional fields are omitted from the wire entirely unless the matching `profiles` include asked\n * for them, which is why they are optional rather than nullable — absent means \"not requested\", not \"none\".\n * The singular `profile` query never returns any of them.\n */\nexport interface MobileServerProfile {\n subaccount: Hex;\n username: string | null;\n display_name: string | null;\n private_mode: boolean;\n /**\n * Exact count at query time — the backend counts rather than reading a cached counter. Unnamed and private\n * accounts are included: Private Mode hides activity, not relationships. Requires `follow_counts`.\n */\n follower_count?: number;\n following_count?: number;\n /** Requires the `follow_summary` include, and is relative to that include's `view_as`. */\n follow_summary?: MobileServerFollowSummary;\n}\n\n/**\n * Server-side row of a Followers or Following page (snake_case).\n */\nexport interface MobileServerFollowListAccount {\n identity: MobileServerIdentitySummary;\n /**\n * The `view_as` Viewer's relationship to this account, not the listed relationship that put it in the\n * page, so it is `false` on the Viewer's own row. Omitted entirely when the request named no `view_as`,\n * rather than being sent as a misleading `false`.\n */\n is_following?: boolean;\n /** The listed account's own follower count, exact at query time. */\n follower_count: number;\n}\n\n/**\n * Direction of the position a feed trade resulted in — for `closed`, the direction that was closed. This is\n * NOT the execution buy/sell side, which the feed does not expose. Aliases {@link BalanceSide} so the feed's\n * direction values stay in lockstep with the rest of the SDK.\n */\nexport type MobileFeedTradePositionDirection = BalanceSide;\n\n/**\n * Every {@link MobileFeedTradePositionDirection} the feed can report, for callers that need the values at\n * runtime (validation, filters, UI enumeration).\n */\nexport const MOBILE_FEED_TRADE_POSITION_DIRECTIONS = [\n 'long',\n 'short',\n] as const satisfies readonly MobileFeedTradePositionDirection[];\n\n/**\n * Every {@link MobileFeedTradePositionEffect} the feed can report, for callers that need the values at\n * runtime (validation, filters, UI enumeration).\n */\nexport const MOBILE_FEED_TRADE_POSITION_EFFECTS = [\n 'opened',\n 'increased',\n 'reduced',\n 'closed',\n 'flipped',\n] as const;\n\n/**\n * How a feed trade changed the trader's position in the product.\n */\nexport type MobileFeedTradePositionEffect =\n (typeof MOBILE_FEED_TRADE_POSITION_EFFECTS)[number];\n\n/**\n * Position change of a feed trade. Both keys are single words, so the wire and client shapes are identical\n * and this type is shared by {@link MobileServerFeedTrade} and the client-side `MobileFeedTrade`.\n */\nexport interface MobileFeedTradePosition {\n direction: MobileFeedTradePositionDirection;\n effect: MobileFeedTradePositionEffect;\n}\n\n/**\n * Every {@link MobileFeedMarginMode} the feed can report, for callers that need the values at runtime\n * (validation, filters, UI enumeration).\n */\nexport const MOBILE_FEED_MARGIN_MODES = ['cross', 'isolated'] as const;\n\n/**\n * Margin mode a feed trade was executed under. Shared by the wire and client margin shapes.\n */\nexport type MobileFeedMarginMode = (typeof MOBILE_FEED_MARGIN_MODES)[number];\n\n/**\n * Server-side margin of a feed trade. Branch on `mode` — do not infer isolated state from leverage presence:\n * `estimated_leverage` (a rounded whole-number estimate, not exact submitted leverage) is omitted on `cross`,\n * and also omitted inside `isolated` when no estimate is available.\n */\nexport interface MobileServerFeedMargin {\n mode: MobileFeedMarginMode;\n estimated_leverage?: number;\n}\n\n/**\n * Server-side feed trade shape (snake_case): one row per order digest, enriched at read time with the\n * trader's current identity. Amounts are display-oriented human-unit JSON numbers — do not use them for\n * accounting, order construction, or exact threshold decisions.\n */\nexport interface MobileServerFeedTrade extends MobileServerIdentitySummary {\n /** Order digest this row is keyed by; the stable id clients use to reconcile live pagination. */\n order_digest: Hex;\n product_id: number;\n /** Executed quantity in human units. */\n quantity: number;\n /** Trade notional in whole-dollar human units. */\n notional: number;\n /** Average execution price in human units. */\n average_price: number;\n margin: MobileServerFeedMargin;\n position: MobileFeedTradePosition;\n /** Realized PnL of the trade in human units; can be negative. */\n realized_pnl: number;\n /** Fill time as JavaScript-safe integer Unix milliseconds. */\n filled_at_ms: number;\n}\n\n/**\n * Server-side scope limiting a notification category preference. Scopes are rejected by the backend for the\n * MVP (`scopes` must be empty) but are part of the wire format.\n */\nexport type MobileServerNotificationPreferenceScope =\n | { type: 'subaccount'; subaccount: Hex }\n | { type: 'product'; product_id: number };\n\n/**\n * Server-side per-category notification preference (snake_case).\n */\nexport interface MobileServerNotificationCategoryPreference {\n category: MobileNotificationCategory;\n enabled: boolean;\n scopes: MobileServerNotificationPreferenceScope[];\n}\n\n/**\n * Server-side notification preferences shape (snake_case), used in both the `update_preferences` public\n * execute and the `notification_preferences` public query response.\n */\nexport interface MobileServerNotificationPreferences {\n /** Only `1` is accepted by the backend for the MVP. */\n schema_version: 1;\n categories: MobileServerNotificationCategoryPreference[];\n}\n\n/** Content filters accepted by the six social feed lists. Empty or omitted means all. */\nexport type MobileSocialFeedType =\n | 'open'\n | 'close'\n | 'size_change'\n | 'thoughts'\n | 'analysis'\n | 'comments';\n\n/** Market category used by the social feed. */\nexport type MobileSocialFeedMarketCategory = 'crypto' | 'finance';\n\n/** Qualification tier for an account-level PnL badge. */\nexport type MobileSocialFeedTraderBadgeCode = 'shark' | 'whale';\n\n/** Availability of the current or last successful qualification snapshot. */\nexport type MobileSocialFeedCohortStatus = 'ready' | 'stale';\n\n/** Availability of an author's qualification data. */\nexport type MobileSocialFeedTraderDataStatus =\n | MobileSocialFeedCohortStatus\n | 'unavailable';\n\n/** Category from the authoritative market source. */\nexport type MobileSocialFeedSourceCategory =\n | 'crypto'\n | 'stocks'\n | 'forex'\n | 'commodities';\n\n/** Accounting basis used for position PnL. */\nexport type MobileSocialFeedPnlBasis =\n | 'unrealized_excl_fees_funding'\n | 'realized_incl_fees_funding';\n\n/** Whether position PnL is live or frozen at close. */\nexport type MobileSocialFeedPnlMode = 'live' | 'frozen';\n\n/** Completeness of position PnL accounting. */\nexport type MobileSocialFeedPnlQuality = 'ready' | 'pending' | 'unavailable';\n\n/** Source of the displayed position size and entry price. */\nexport type MobileSocialFeedPositionDisplayBasis =\n | 'current_position'\n | 'closing_snapshot';\n\n/** Current state of a position lifecycle. */\nexport type MobileSocialFeedPositionState = 'open' | 'closed';\n\n/** Completeness of the available position history. */\nexport type MobileSocialFeedHistoryQuality = 'complete' | 'partial';\n\n/** Trading action represented by an ordinary size-change row. */\nexport type MobileSocialFeedTradeSizeChangeAction = 'increased' | 'reduced';\n\n/** Trading action represented by an automatic trade card. */\nexport type MobileSocialFeedTradeCardAction =\n | 'opened'\n | 'closed'\n | MobileSocialFeedTradeSizeChangeAction;\n\n/** Whether a reading session was created for a list or a direct item. */\nexport type MobileSocialFeedReadSessionMode = 'feed' | 'item';\n\n/** Kind of feed update target. */\nexport type MobileSocialFeedTargetType = 'item' | 'position';\n\n/** Official account-level 30-day PnL badge, independent of position PnL. */\nexport interface MobileServerSocialFeedTraderBadge {\n /** Qualification tier. */\n code: MobileSocialFeedTraderBadgeCode;\n /** Signed integer in x18 units. */\n pnl_x18: string;\n /** Stable compatibility identifier for the official Portfolio month result. */\n metric_key: 'account_pnl_30d_equity';\n /** PnL window label. */\n window: '30d';\n /** Official source timestamp in Unix milliseconds. */\n source_as_of_ms: number;\n /** Fetch completion timestamp in Unix milliseconds. */\n fetched_at_ms: number;\n /** Qualification snapshot UUID. */\n snapshot_id: string;\n}\n\n/** Public author identity and the selected viewing account's follow state. */\nexport interface MobileServerSocialFeedAuthor extends MobileServerIdentitySummary {\n /** Selected view_as account's follow state; null without a viewing account. */\n is_following: boolean | null;\n /** Null when no qualifying badge is available. */\n trader_badge: MobileServerSocialFeedTraderBadge | null;\n /** Stale means the last successful cohort is used after a refresh failure. */\n trader_data_status: MobileSocialFeedTraderDataStatus;\n}\n\n/** Market metadata from the service's authoritative market source. */\nexport interface MobileServerSocialFeedMarket {\n /** Market product ID. */\n product_id: number;\n /** Market symbol. */\n symbol: string;\n /** Logo URL when available. */\n logo_url: string | null;\n /** Social feed category when known. */\n category: MobileSocialFeedMarketCategory | null;\n /** Original market categories. */\n source_categories: MobileSocialFeedSourceCategory[];\n}\n\n/** Leverage display value; unknown isolated leverage differs from inapplicable cross leverage. */\nexport interface MobileSocialFeedLeverage {\n /** Rounded whole-number string, or null. Never an estimated replacement. */\n value: string | null;\n /** Cross margin uses not_applicable. */\n basis: 'effective' | 'unknown' | 'not_applicable';\n}\n\n/** Position PnL with explicit accounting basis and data quality. */\nexport interface MobileServerSocialFeedPnl {\n /** Signed x18 integer; null means unknown, not zero. */\n amount_x18: string | null;\n /** Open positions exclude fees/funding; closed results include them. */\n basis: MobileSocialFeedPnlBasis;\n /** Closed positions use frozen results. */\n mode: MobileSocialFeedPnlMode;\n /** Source timestamp in Unix milliseconds. */\n as_of_ms: number;\n /** Whether accounting is complete, pending, or unavailable. */\n quality: MobileSocialFeedPnlQuality;\n}\n\n/** Complete mutable position fields delivered together at one version. */\nexport interface MobileServerSocialFeedPositionPatch {\n /** Position lifecycle UUID. */\n position_id: string;\n /** Positive integer string; compare as integers without Number conversion. */\n position_version: string;\n /** Position state timestamp in Unix milliseconds. */\n state_as_of_ms: number;\n /** Remaining average entry cost, frozen on close; x18 or null. */\n entry_price_x18: string | null;\n /** Basis of the displayed size and entry price. */\n display_basis: MobileSocialFeedPositionDisplayBasis;\n /** Closing snapshot reference time, or null. */\n snapshot_at_ms: number | null;\n /** Absolute quantity in x18 units. */\n quantity_x18: string;\n /** Notional value in x18 units. */\n notional_x18: string;\n /** Current lifecycle state. */\n state: MobileSocialFeedPositionState;\n /** Completeness of the available historical facts. */\n history_quality: MobileSocialFeedHistoryQuality;\n /** Margin mode. */\n margin_mode: MobileFeedMarginMode;\n /** Current or closing leverage. */\n leverage: MobileSocialFeedLeverage;\n /** Leverage reference time; null when unknown or inapplicable. */\n leverage_at_ms: number | null;\n /** Current remaining PnL or the closed lifecycle's net result. */\n pnl: MobileServerSocialFeedPnl;\n}\n\n/** Position displayed inside an automatic trade card. */\nexport interface MobileServerSocialFeedPositionCard extends MobileServerSocialFeedPositionPatch {\n /** Market product ID. */\n product_id: number;\n /** Market display metadata. */\n market: MobileServerSocialFeedMarket;\n /** Position direction. */\n direction: MobileFeedTradePositionDirection;\n}\n\n/** Interaction counters; interaction writes are not currently available. */\nexport interface MobileServerSocialFeedInteraction {\n /** Number of likes. */\n like_count: number;\n /** Number of comments. */\n comment_count: number;\n /** Number of recorded views. */\n view_count: number;\n /** Null while likes are unavailable, including with a viewing account. */\n liked_by_me: boolean | null;\n}\n\n/** Capability flags for a social feed item. */\nexport interface MobileServerSocialFeedCapabilities {\n /** Whether liking is available. */\n can_like: boolean;\n /** Whether commenting is available. */\n can_comment: boolean;\n /** Whether exposure recording is available. */\n can_record_view: boolean;\n}\n\n/** Comment preview metadata for a social trade card. */\nexport interface MobileServerSocialFeedCommentPreview {\n /** Currently empty. */\n items: never[];\n /** Comment count. */\n total_count: number;\n /** Comment cursor, if available. */\n next_cursor: string | null;\n}\n\n/** Exposure requirements associated with a reading session. */\nexport interface MobileServerSocialFeedViewTracking {\n /** Required visible fraction. */\n min_visible_ratio: number;\n /** Required visible duration in milliseconds. */\n min_duration_ms: number;\n}\n\n/** Coverage of the candidate authors in a qualification snapshot. */\nexport interface MobileServerSocialFeedCohortCoverage {\n /** Coverage domain. */\n scope: 'eligible_content_candidates';\n /** Candidate author count. */\n total_authors: number;\n /** Authors queried for this snapshot. */\n queried_authors: number;\n /** A successful response requires complete coverage. */\n complete: true;\n}\n\n/** Shared qualification snapshot used for Top Traders eligibility and badges. */\nexport interface MobileServerSocialFeedCohort {\n /** Cohort UUID. */\n snapshot_id: string;\n /** Ready or the previous successful snapshot after a refresh failure. */\n status: MobileSocialFeedCohortStatus;\n /** Coverage of all eligible candidate authors. */\n coverage: MobileServerSocialFeedCohortCoverage;\n}\n\n/** Metadata shared by the automatic trade cards and rows available from the social feed. */\nexport interface MobileServerSocialFeedItemBase {\n /** Item UUID. */\n id: string;\n /** Whether authored analysis exists. */\n has_analysis: boolean;\n /** Drawings are not currently available. */\n drawing: null;\n /** Author identity, badge, and follow perspective. */\n author: MobileServerSocialFeedAuthor;\n /** Creation time in Unix milliseconds. */\n created_at_ms: number;\n /** Sorting time in Unix milliseconds. */\n display_at_ms: number;\n /** Positive integer version string. */\n version: string;\n /** Market metadata. */\n market: MobileServerSocialFeedMarket;\n /** Server capability flags; currently all false. */\n capabilities: MobileServerSocialFeedCapabilities;\n}\n\n/** Automatic trade card returned by the social feed. */\nexport interface MobileServerSocialFeedTradeCard extends MobileServerSocialFeedItemBase {\n /** Card discriminant. */\n kind: 'trade_card';\n /** Trading action. */\n action: MobileSocialFeedTradeCardAction;\n /** Card text, empty for automatic cards. */\n text: string;\n /** Automatic cards have no mentions. */\n mentions: never[];\n /** Current or frozen position display. */\n position: MobileServerSocialFeedPositionCard;\n /** Interaction counters. */\n interaction: MobileServerSocialFeedInteraction;\n /** Comment content is not currently available. */\n comment_preview: MobileServerSocialFeedCommentPreview;\n}\n\n/** Fields shared by size-change and liquidation trade rows. */\nexport interface MobileServerSocialFeedTradeRowBase extends MobileServerSocialFeedItemBase {\n /** Row discriminant. */\n kind: 'trade_row';\n /** Associated lifecycle UUID. */\n position_id: string;\n /** Position direction. */\n direction: MobileFeedTradePositionDirection;\n /** Historical margin mode. */\n margin_mode: MobileFeedMarginMode;\n /** Historical action leverage, not the position's current leverage. */\n leverage: MobileSocialFeedLeverage;\n /** Historical leverage reference time. */\n leverage_at_ms: number | null;\n /** Number of aggregated trades. */\n trade_count: number;\n /** Absolute traded quantity in x18 units. */\n quantity_x18: string;\n /** Actual execution price in x18 units, never an Oracle substitution. */\n average_price_x18: string | null;\n}\n\n/** A size-change row or liquidation row with independently nullable financial facts. */\nexport type MobileServerSocialFeedTradeRow =\n MobileServerSocialFeedTradeRowBase &\n (\n | {\n /** Ordinary size-change action. */\n action: MobileSocialFeedTradeSizeChangeAction;\n /** Executed notional in x18 units. */\n notional_x18: string;\n }\n | {\n /** Liquidation discriminant. */\n action: 'liquidated';\n /** Quantity times event Oracle; null if that Oracle is unknown. */\n notional_x18: string | null;\n /** Entry cost immediately before the event, in x18 units. */\n entry_price_x18: string | null;\n /** Event Oracle used for display and size filtering. */\n liquidation_oracle_price_x18: string | null;\n /** Actual execution price, independent of Oracle. */\n liquidation_execution_price_x18: string | null;\n /** Signed action PnL excluding ordinary fees/funding, or null. */\n realized_pnl_delta_x18: string | null;\n }\n );\n\n/** Automatic feed content; excludes posts, replies, drawings, and interaction writes. */\nexport type MobileServerSocialFeedItem =\n | MobileServerSocialFeedTradeCard\n | MobileServerSocialFeedTradeRow;\n\n/** Fixed-duration social feed reading session. Credentials and cursors must be returned unchanged. */\nexport interface MobileServerSocialFeedReadSession {\n /** Session identifier. */\n session_id: string;\n /** Feed or direct item session. */\n mode: MobileSocialFeedReadSessionMode;\n /** Fixed expiration time in Unix milliseconds; pagination does not extend it. */\n expires_at_ms: number;\n /** Exposure metadata only; recording is not available from the social feed. */\n view_tracking: MobileServerSocialFeedViewTracking;\n /** Initial update baseline, distinct from the page cursor. */\n update_cursor: string | null;\n /** Credential for this reading session. Do not log or cache publicly. */\n viewer_token: string;\n}\n\n/** Item delta: omitted means unchanged; explicit null clears a prior value. */\nexport interface MobileServerSocialFeedItemPatch {\n /** Current author identity, follow state, and qualification badge. */\n author: MobileServerSocialFeedAuthor;\n /** Target item UUID. */\n item_id: string;\n /** Positive integer version string. */\n version: string;\n /** Updated interaction counters. */\n interaction?: MobileServerSocialFeedInteraction;\n /** Updated display timestamp; does not reorder the current list. */\n display_at_ms: number;\n /** Updated aggregate count. */\n trade_count?: number;\n /** Updated quantity in x18 units. */\n quantity_x18?: string;\n /** Updated notional; liquidation Oracle may be unknown. */\n notional_x18?: string | null;\n /** Updated actual execution price. */\n average_price_x18?: string | null;\n /** Historical liquidation entry cost. */\n entry_price_x18?: string | null;\n /** Updated liquidation Oracle. */\n liquidation_oracle_price_x18?: string | null;\n /** Updated actual liquidation execution price. */\n liquidation_execution_price_x18?: string | null;\n /** Updated signed action PnL. */\n realized_pnl_delta_x18?: string | null;\n /** Updated historical row leverage. */\n leverage?: MobileSocialFeedLeverage;\n /** Updated historical leverage reference time. */\n leverage_at_ms?: number | null;\n}\n\n/** A previously authorized target that can no longer be read; shared by wire and client responses. */\nexport interface MobileSocialFeedUnavailableTarget {\n /** Target kind. */\n type: MobileSocialFeedTargetType;\n /** Target UUID. */\n id: string;\n /** Uniform reason prevents leaking inaccessible content. */\n reason: 'unavailable';\n}\n"],"mappings":";;;;;AAgGA,MAAa,wCAAwC,CACnD,QACA,OACF;;;;;AAMA,MAAa,qCAAqC;CAChD;CACA;CACA;CACA;CACA;AACF;;;;;AAqBA,MAAa,2BAA2B,CAAC,SAAS,UAAU"}
@@ -1,2 +1,2 @@
1
- import { a as MobileServerPublicQueryRequest, c as MobileServerRegisteredWalletResponse, i as MobileServerProfilesResponse, l as MobileServerUsernameAvailabilityResponse, n as MobileServerFollowListResponse, o as MobileServerPublicQueryResponseByType, r as MobileServerNotificationPreferencesResponse, s as MobileServerPublicQuerySuccessResponse, t as MobileServerFeedResponse } from "../serverQueryTypes-CuVsrzGV.cjs";
2
- export { MobileServerFeedResponse, MobileServerFollowListResponse, MobileServerNotificationPreferencesResponse, MobileServerProfilesResponse, MobileServerPublicQueryRequest, MobileServerPublicQueryResponseByType, MobileServerPublicQuerySuccessResponse, MobileServerRegisteredWalletResponse, MobileServerUsernameAvailabilityResponse };
1
+ 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";
2
+ export { MobileServerFeedResponse, MobileServerFollowListResponse, MobileServerNotificationPreferencesResponse, MobileServerProfilesResponse, MobileServerPublicQueryRequest, MobileServerPublicQueryResponseByType, MobileServerPublicQuerySuccessResponse, MobileServerRegisteredWalletResponse, MobileServerSocialFeedItemResponse, MobileServerSocialFeedRankedResponse, MobileServerSocialFeedResponse, MobileServerSocialFeedTopTradersResponse, MobileServerSocialFeedUpdatesResponse, MobileServerUsernameAvailabilityResponse };
@@ -1,2 +1,2 @@
1
- import { a as MobileServerPublicQueryRequest, c as MobileServerRegisteredWalletResponse, i as MobileServerProfilesResponse, l as MobileServerUsernameAvailabilityResponse, n as MobileServerFollowListResponse, o as MobileServerPublicQueryResponseByType, r as MobileServerNotificationPreferencesResponse, s as MobileServerPublicQuerySuccessResponse, t as MobileServerFeedResponse } from "../serverQueryTypes-C-_h9awN.js";
2
- export { MobileServerFeedResponse, MobileServerFollowListResponse, MobileServerNotificationPreferencesResponse, MobileServerProfilesResponse, MobileServerPublicQueryRequest, MobileServerPublicQueryResponseByType, MobileServerPublicQuerySuccessResponse, MobileServerRegisteredWalletResponse, MobileServerUsernameAvailabilityResponse };
1
+ 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";
2
+ export { MobileServerFeedResponse, MobileServerFollowListResponse, MobileServerNotificationPreferencesResponse, MobileServerProfilesResponse, MobileServerPublicQueryRequest, MobileServerPublicQueryResponseByType, MobileServerPublicQuerySuccessResponse, MobileServerRegisteredWalletResponse, MobileServerSocialFeedItemResponse, MobileServerSocialFeedRankedResponse, MobileServerSocialFeedResponse, MobileServerSocialFeedTopTradersResponse, MobileServerSocialFeedUpdatesResponse, MobileServerUsernameAvailabilityResponse };
@@ -1,2 +1,2 @@
1
- import { a as MobileServerPublicExecuteRequestType, c as MobileServerRequestType, i as MobileServerPublicExecuteRequestByType, n as MobileServerFollowListRequest, o as MobileServerPublicQueryRequestByType, r as MobileServerProfilesInclude, s as MobileServerPublicQueryRequestType, t as MobileServerExecuteRequestType } from "../serverRequestTypes-BylecTUn.cjs";
2
- export { MobileServerExecuteRequestType, MobileServerFollowListRequest, MobileServerProfilesInclude, MobileServerPublicExecuteRequestByType, MobileServerPublicExecuteRequestType, MobileServerPublicQueryRequestByType, MobileServerPublicQueryRequestType, MobileServerRequestType };
1
+ 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";
2
+ export { MobileServerExecuteRequestType, MobileServerFollowListRequest, MobileServerProfilesInclude, MobileServerPublicExecuteRequestByType, MobileServerPublicExecuteRequestType, MobileServerPublicQueryRequestByType, MobileServerPublicQueryRequestType, MobileServerRequestType, MobileServerSocialFeedCategorizedParams, MobileServerSocialFeedListParams, MobileServerSocialFeedReadParams };
@@ -1,2 +1,2 @@
1
- import { a as MobileServerPublicExecuteRequestType, c as MobileServerRequestType, i as MobileServerPublicExecuteRequestByType, n as MobileServerFollowListRequest, o as MobileServerPublicQueryRequestByType, r as MobileServerProfilesInclude, s as MobileServerPublicQueryRequestType, t as MobileServerExecuteRequestType } from "../serverRequestTypes-DcdmGfTu.js";
2
- export { MobileServerExecuteRequestType, MobileServerFollowListRequest, MobileServerProfilesInclude, MobileServerPublicExecuteRequestByType, MobileServerPublicExecuteRequestType, MobileServerPublicQueryRequestByType, MobileServerPublicQueryRequestType, MobileServerRequestType };
1
+ 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";
2
+ export { MobileServerExecuteRequestType, MobileServerFollowListRequest, MobileServerProfilesInclude, MobileServerPublicExecuteRequestByType, MobileServerPublicExecuteRequestType, MobileServerPublicQueryRequestByType, MobileServerPublicQueryRequestType, MobileServerRequestType, MobileServerSocialFeedCategorizedParams, MobileServerSocialFeedListParams, MobileServerSocialFeedReadParams };
@@ -1,5 +1,5 @@
1
- import { l as MobileNotificationPlatform } from "./serverModelTypes-YmHqfxc8.js";
2
- import { D as MobileSignedRequestParams } from "./clientTypes-FaHdWkNu.js";
1
+ import { l as MobileNotificationPlatform } from "./serverModelTypes-MlqdaMRd.js";
2
+ import { F as MobileSignedRequestParams } from "./clientTypes-P4LAjreY.js";
3
3
  import { WalletClientWithAccount } from "@nadohq/shared";
4
4
  import { Hex } from "viem";
5
5
 
@@ -68,4 +68,4 @@ interface BuildSignedMobileRequestParams extends MobileSignedRequestParams {
68
68
  }
69
69
  //#endregion
70
70
  export { MobileSignedRequest as a, MobileSignedInnerParams as i, MobileSignedInner as n, MobileSignedInnerByType as r, BuildSignedMobileRequestParams as t };
71
- //# sourceMappingURL=types-BG321aOe.d.ts.map
71
+ //# sourceMappingURL=types-B_4veFLc.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types-BG321aOe.d.ts","names":[],"sources":["../src/signing/src/signing/types.ts"],"mappings":";;;;;;;;AAmBA;;;;;;;;;;;;KAAY,iBAAA;EACN,IAAA;EAAsB,YAAA;AAAA;EACtB,IAAA;EAA0B,YAAA;AAAA;EAE1B,IAAA;EACA,UAAA;EACA,QAAA,EAAU,0BAAA;EAGV,MAAA;EACA,WAAA;AAAA;EAGA,IAAA;EACA,UAAA,EAAY,GAAG,EASZ;EAPH,YAAA;AAAA;;;;KAMM,uBAAA,WAAkC,iBAAA,YAC5C,OAAA,CAAQ,iBAAA;EAAqB,IAAA,EAAM,CAAA;AAAA;AAAC;AAMtC;;;AANsC,KAM1B,uBAAA,WAAkC,iBAAA,YAA6B,IAAA,CACzE,uBAAA,CAAwB,CAAA;;;;;KAQd,mBAAA,WACA,iBAAA,GAAoB,iBAAA,IAC5B,CAAA;EACF,SAAA,EAAW,GAAA;EACX,MAAA,EAAQ,GAAA;EACR,KAAA;AAAA;;;AAbyB;UAmBV,8BAAA,SAAuC,yBAAA;EACtD,YAAA,EAAc,uBAAA;EACd,KAAA,EAAO,iBAAA;EAZG;;;EAgBV,KAAA;AAAA"}
1
+ {"version":3,"file":"types-B_4veFLc.d.ts","names":[],"sources":["../src/signing/src/signing/types.ts"],"mappings":";;;;;;;;AAmBA;;;;;;;;;;;;KAAY,iBAAA;EACN,IAAA;EAAsB,YAAA;AAAA;EACtB,IAAA;EAA0B,YAAA;AAAA;EAE1B,IAAA;EACA,UAAA;EACA,QAAA,EAAU,0BAAA;EAGV,MAAA;EACA,WAAA;AAAA;EAGA,IAAA;EACA,UAAA,EAAY,GAAG,EASZ;EAPH,YAAA;AAAA;;;;KAMM,uBAAA,WAAkC,iBAAA,YAC5C,OAAA,CAAQ,iBAAA;EAAqB,IAAA,EAAM,CAAA;AAAA;AAAC;AAMtC;;;AANsC,KAM1B,uBAAA,WAAkC,iBAAA,YAA6B,IAAA,CACzE,uBAAA,CAAwB,CAAA;;;;;KAQd,mBAAA,WACA,iBAAA,GAAoB,iBAAA,IAC5B,CAAA;EACF,SAAA,EAAW,GAAA;EACX,MAAA,EAAQ,GAAA;EACR,KAAA;AAAA;;;AAbyB;UAmBV,8BAAA,SAAuC,yBAAA;EACtD,YAAA,EAAc,uBAAA;EACd,KAAA,EAAO,iBAAA;EAZG;;;EAgBV,KAAA;AAAA"}
@@ -1,5 +1,5 @@
1
- import { l as MobileNotificationPlatform } from "./serverModelTypes-YmHqfxc8.cjs";
2
- import { D as MobileSignedRequestParams } from "./clientTypes-FQTkDfq3.cjs";
1
+ import { l as MobileNotificationPlatform } from "./serverModelTypes-MlqdaMRd.cjs";
2
+ import { F as MobileSignedRequestParams } from "./clientTypes-YF5d8bvg.cjs";
3
3
  import { WalletClientWithAccount } from "@nadohq/shared";
4
4
  import { Hex } from "viem";
5
5
 
@@ -68,4 +68,4 @@ interface BuildSignedMobileRequestParams extends MobileSignedRequestParams {
68
68
  }
69
69
  //#endregion
70
70
  export { MobileSignedRequest as a, MobileSignedInnerParams as i, MobileSignedInner as n, MobileSignedInnerByType as r, BuildSignedMobileRequestParams as t };
71
- //# sourceMappingURL=types-D30luCKT.d.cts.map
71
+ //# sourceMappingURL=types-CwpXP7xM.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types-D30luCKT.d.cts","names":[],"sources":["../src/signing/src/signing/types.ts"],"mappings":";;;;;;;;AAmBA;;;;;;;;;;;;KAAY,iBAAA;EACN,IAAA;EAAsB,YAAA;AAAA;EACtB,IAAA;EAA0B,YAAA;AAAA;EAE1B,IAAA;EACA,UAAA;EACA,QAAA,EAAU,0BAAA;EAGV,MAAA;EACA,WAAA;AAAA;EAGA,IAAA;EACA,UAAA,EAAY,GAAG,EASZ;EAPH,YAAA;AAAA;;;;KAMM,uBAAA,WAAkC,iBAAA,YAC5C,OAAA,CAAQ,iBAAA;EAAqB,IAAA,EAAM,CAAA;AAAA;AAAC;AAMtC;;;AANsC,KAM1B,uBAAA,WAAkC,iBAAA,YAA6B,IAAA,CACzE,uBAAA,CAAwB,CAAA;;;;;KAQd,mBAAA,WACA,iBAAA,GAAoB,iBAAA,IAC5B,CAAA;EACF,SAAA,EAAW,GAAA;EACX,MAAA,EAAQ,GAAA;EACR,KAAA;AAAA;;;AAbyB;UAmBV,8BAAA,SAAuC,yBAAA;EACtD,YAAA,EAAc,uBAAA;EACd,KAAA,EAAO,iBAAA;EAZG;;;EAgBV,KAAA;AAAA"}
1
+ {"version":3,"file":"types-CwpXP7xM.d.cts","names":[],"sources":["../src/signing/src/signing/types.ts"],"mappings":";;;;;;;;AAmBA;;;;;;;;;;;;KAAY,iBAAA;EACN,IAAA;EAAsB,YAAA;AAAA;EACtB,IAAA;EAA0B,YAAA;AAAA;EAE1B,IAAA;EACA,UAAA;EACA,QAAA,EAAU,0BAAA;EAGV,MAAA;EACA,WAAA;AAAA;EAGA,IAAA;EACA,UAAA,EAAY,GAAG,EASZ;EAPH,YAAA;AAAA;;;;KAMM,uBAAA,WAAkC,iBAAA,YAC5C,OAAA,CAAQ,iBAAA;EAAqB,IAAA,EAAM,CAAA;AAAA;AAAC;AAMtC;;;AANsC,KAM1B,uBAAA,WAAkC,iBAAA,YAA6B,IAAA,CACzE,uBAAA,CAAwB,CAAA;;;;;KAQd,mBAAA,WACA,iBAAA,GAAoB,iBAAA,IAC5B,CAAA;EACF,SAAA,EAAW,GAAA;EACX,MAAA,EAAQ,GAAA;EACR,KAAA;AAAA;;;AAbyB;UAmBV,8BAAA,SAAuC,yBAAA;EACtD,YAAA,EAAc,uBAAA;EACd,KAAA,EAAO,iBAAA;EAZG;;;EAgBV,KAAA;AAAA"}
@@ -1,5 +1,5 @@
1
1
  import { n as MOBILE_FEED_MIN_NOTIONAL_FLOOR, t as MOBILE_FEED_MAX_PAGE_SIZE } from "../feed-DTJlsg8W.cjs";
2
2
  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";
3
3
  import { t as MOBILE_DISPLAY_NAME_PATTERN } from "../patterns-BE0Audp5.cjs";
4
- import { n as isMobileServerSuccessResponse, t as isMobileServerFailureResponse } from "../serverResponseGuards-CjR1tv7G.cjs";
4
+ import { n as isMobileServerSuccessResponse, t as isMobileServerFailureResponse } from "../serverResponseGuards-DIj9MIrJ.cjs";
5
5
  export { MOBILE_DISPLAY_NAME_PATTERN, MOBILE_FEED_MAX_PAGE_SIZE, MOBILE_FEED_MIN_NOTIONAL_FLOOR, MOBILE_FOLLOWED_BY_PREVIEW_LIMIT, MOBILE_FOLLOW_LIST_DEFAULT_PAGE_SIZE, MOBILE_FOLLOW_LIST_MAX_PAGE_SIZE, MOBILE_PROFILES_MAX_BATCH_SIZE, isMobileServerFailureResponse, isMobileServerSuccessResponse };
@@ -1,5 +1,5 @@
1
1
  import { n as MOBILE_FEED_MIN_NOTIONAL_FLOOR, t as MOBILE_FEED_MAX_PAGE_SIZE } from "../feed-DTJlsg8W.js";
2
2
  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";
3
3
  import { t as MOBILE_DISPLAY_NAME_PATTERN } from "../patterns-BE0Audp5.js";
4
- import { n as isMobileServerSuccessResponse, t as isMobileServerFailureResponse } from "../serverResponseGuards-BspbRjOM.js";
4
+ import { n as isMobileServerSuccessResponse, t as isMobileServerFailureResponse } from "../serverResponseGuards-DY_8lAo7.js";
5
5
  export { MOBILE_DISPLAY_NAME_PATTERN, MOBILE_FEED_MAX_PAGE_SIZE, MOBILE_FEED_MIN_NOTIONAL_FLOOR, MOBILE_FOLLOWED_BY_PREVIEW_LIMIT, MOBILE_FOLLOW_LIST_DEFAULT_PAGE_SIZE, MOBILE_FOLLOW_LIST_MAX_PAGE_SIZE, MOBILE_PROFILES_MAX_BATCH_SIZE, isMobileServerFailureResponse, isMobileServerSuccessResponse };
@@ -1,2 +1,2 @@
1
- import { n as isMobileServerSuccessResponse, t as isMobileServerFailureResponse } from "../serverResponseGuards-CjR1tv7G.cjs";
1
+ import { n as isMobileServerSuccessResponse, t as isMobileServerFailureResponse } from "../serverResponseGuards-DIj9MIrJ.cjs";
2
2
  export { isMobileServerFailureResponse, isMobileServerSuccessResponse };
@@ -1,2 +1,2 @@
1
- import { n as isMobileServerSuccessResponse, t as isMobileServerFailureResponse } from "../serverResponseGuards-BspbRjOM.js";
1
+ import { n as isMobileServerSuccessResponse, t as isMobileServerFailureResponse } from "../serverResponseGuards-DY_8lAo7.js";
2
2
  export { isMobileServerFailureResponse, isMobileServerSuccessResponse };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nadohq/mobile-client",
3
- "version": "0.53.0",
3
+ "version": "0.55.0",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "description": "HTTP client for the Nado mobile service API — username claims, profiles, privacy settings, and push notification devices & preferences",
@@ -42,7 +42,7 @@
42
42
  "types": "./dist/index.d.ts",
43
43
  "dependencies": {
44
44
  "@msgpack/msgpack": "3.1.3",
45
- "@nadohq/shared": "^0.53.0",
45
+ "@nadohq/shared": "^0.55.0",
46
46
  "axios": "1.16.1"
47
47
  },
48
48
  "peerDependencies": {
@@ -54,5 +54,5 @@
54
54
  "bignumber.js": "11.1.1",
55
55
  "viem": "2.52.0"
56
56
  },
57
- "gitHead": "94a4731d08230a234122e6d225b59208313d846f"
57
+ "gitHead": "b76772999226b64d52b03662246c7e98ba5b7d06"
58
58
  }