@nadohq/mobile-client 0.36.0 → 0.38.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 (189) hide show
  1. package/README.md +19 -6
  2. package/dist/{MobileClient-D5TNTnLx.cjs → MobileClient-wjTrqP9z.cjs} +75 -12
  3. package/dist/MobileClient-wjTrqP9z.cjs.map +1 -0
  4. package/dist/MobileClient.cjs +1 -1
  5. package/dist/MobileClient.d.cts +62 -16
  6. package/dist/MobileClient.d.cts.map +1 -1
  7. package/dist/MobileClient.d.ts +62 -16
  8. package/dist/MobileClient.d.ts.map +1 -1
  9. package/dist/MobileClient.js +75 -12
  10. package/dist/MobileClient.js.map +1 -1
  11. package/dist/{MobileServerFailureError-CPFjwUBx.d.cts → MobileServerFailureError-BvQYrxjx.d.cts} +3 -3
  12. package/dist/{MobileServerFailureError-CPFjwUBx.d.cts.map → MobileServerFailureError-BvQYrxjx.d.cts.map} +1 -1
  13. package/dist/{MobileServerFailureError-Terv2Wzy.d.ts → MobileServerFailureError-CrNpL_L4.d.ts} +3 -3
  14. package/dist/{MobileServerFailureError-Terv2Wzy.d.ts.map → MobileServerFailureError-CrNpL_L4.d.ts.map} +1 -1
  15. package/dist/{buildSignedMobileRequest-BScnCGPF.d.ts → buildSignedMobileRequest-BqLRFLKV.d.ts} +2 -2
  16. package/dist/{buildSignedMobileRequest-BScnCGPF.d.ts.map → buildSignedMobileRequest-BqLRFLKV.d.ts.map} +1 -1
  17. package/dist/{buildSignedMobileRequest-CXfnhc-4.d.cts → buildSignedMobileRequest-DkkwEqIu.d.cts} +2 -2
  18. package/dist/{buildSignedMobileRequest-CXfnhc-4.d.cts.map → buildSignedMobileRequest-DkkwEqIu.d.cts.map} +1 -1
  19. package/dist/{canonicalize-CQ-pMYIt.d.ts → canonicalize-BRhCpYm1.d.ts} +2 -2
  20. package/dist/canonicalize-BRhCpYm1.d.ts.map +1 -0
  21. package/dist/{canonicalize-hzhboB-C.d.cts → canonicalize-DtpaaA2B.d.cts} +2 -2
  22. package/dist/canonicalize-DtpaaA2B.d.cts.map +1 -0
  23. package/dist/{clientTypes-BwakovWk.d.cts → clientTypes-CB_itU4Z.d.ts} +147 -14
  24. package/dist/clientTypes-CB_itU4Z.d.ts.map +1 -0
  25. package/dist/{clientTypes-D-o1_2Yc.d.ts → clientTypes-CceWsQzi.d.cts} +147 -14
  26. package/dist/clientTypes-CceWsQzi.d.cts.map +1 -0
  27. package/dist/dataMappers.cjs +79 -6
  28. package/dist/dataMappers.cjs.map +1 -1
  29. package/dist/dataMappers.d.cts +27 -5
  30. package/dist/dataMappers.d.cts.map +1 -1
  31. package/dist/dataMappers.d.ts +27 -5
  32. package/dist/dataMappers.d.ts.map +1 -1
  33. package/dist/dataMappers.js +75 -7
  34. package/dist/dataMappers.js.map +1 -1
  35. package/dist/{eip712MethodByType-3aiJkrHj.d.cts → eip712MethodByType-1xUkvTIp.d.cts} +2 -2
  36. package/dist/eip712MethodByType-1xUkvTIp.d.cts.map +1 -0
  37. package/dist/{eip712MethodByType-zNvZukU7.d.ts → eip712MethodByType-CrqBJIrp.d.ts} +2 -2
  38. package/dist/eip712MethodByType-CrqBJIrp.d.ts.map +1 -0
  39. package/dist/follow-Bh3UmXMc.d.cts +23 -0
  40. package/dist/follow-Bh3UmXMc.d.cts.map +1 -0
  41. package/dist/follow-DjkQm1vR.d.ts +23 -0
  42. package/dist/follow-DjkQm1vR.d.ts.map +1 -0
  43. package/dist/index.cjs +6 -1
  44. package/dist/index.d.cts +17 -16
  45. package/dist/index.d.ts +17 -16
  46. package/dist/index.js +2 -1
  47. package/dist/{mobileErrorCodes-CuQ5lyBV.d.ts → mobileErrorCodes-B3eR6t4b.d.ts} +8 -2
  48. package/dist/mobileErrorCodes-B3eR6t4b.d.ts.map +1 -0
  49. package/dist/{mobileErrorCodes-D_SyBm0k.d.cts → mobileErrorCodes-DkzBW4v3.d.cts} +8 -2
  50. package/dist/mobileErrorCodes-DkzBW4v3.d.cts.map +1 -0
  51. package/dist/{patterns-B5gi7OfV.d.ts → patterns-C-aUAnKl.d.ts} +1 -1
  52. package/dist/patterns-C-aUAnKl.d.ts.map +1 -0
  53. package/dist/{patterns-Db6fgz8i.d.cts → patterns-DS8P5LH0.d.cts} +1 -1
  54. package/dist/patterns-DS8P5LH0.d.cts.map +1 -0
  55. package/dist/{payloadHash-DVkEt-Rg.d.cts → payloadHash-CIo8Hkh6.d.cts} +2 -2
  56. package/dist/payloadHash-CIo8Hkh6.d.cts.map +1 -0
  57. package/dist/{payloadHash-BxL26uwq.d.ts → payloadHash-Cv4WwZCZ.d.ts} +2 -2
  58. package/dist/payloadHash-Cv4WwZCZ.d.ts.map +1 -0
  59. package/dist/{serverBaseTypes-B_KHFDab.d.ts → serverBaseTypes-C2JGib--.d.ts} +2 -2
  60. package/dist/{serverBaseTypes-B_KHFDab.d.ts.map → serverBaseTypes-C2JGib--.d.ts.map} +1 -1
  61. package/dist/{serverBaseTypes-C8KjE9Fm.d.cts → serverBaseTypes-YkCmgmt1.d.cts} +2 -2
  62. package/dist/{serverBaseTypes-C8KjE9Fm.d.cts.map → serverBaseTypes-YkCmgmt1.d.cts.map} +1 -1
  63. package/dist/serverExecuteTypes-C2NoNEwu.d.ts +50 -0
  64. package/dist/serverExecuteTypes-C2NoNEwu.d.ts.map +1 -0
  65. package/dist/serverExecuteTypes-DPZbs9ym.d.cts +50 -0
  66. package/dist/serverExecuteTypes-DPZbs9ym.d.cts.map +1 -0
  67. package/dist/{serverModelTypes-_cX99seo.d.ts → serverModelTypes-CDcRlRtw.d.ts} +57 -10
  68. package/dist/serverModelTypes-CDcRlRtw.d.ts.map +1 -0
  69. package/dist/{serverModelTypes-CwgibK-l.d.cts → serverModelTypes-CUzqFA6x.d.cts} +57 -10
  70. package/dist/serverModelTypes-CUzqFA6x.d.cts.map +1 -0
  71. package/dist/{serverQueryTypes-DwE1iJ9f.d.cts → serverQueryTypes-B0xI1G39.d.ts} +21 -9
  72. package/dist/serverQueryTypes-B0xI1G39.d.ts.map +1 -0
  73. package/dist/{serverQueryTypes-NIrPm2Sl.d.ts → serverQueryTypes-RdcIqRnM.d.cts} +21 -9
  74. package/dist/serverQueryTypes-RdcIqRnM.d.cts.map +1 -0
  75. package/dist/serverRequestTypes-Ddws3yXc.d.cts +116 -0
  76. package/dist/serverRequestTypes-Ddws3yXc.d.cts.map +1 -0
  77. package/dist/serverRequestTypes-Dv9NR-hQ.d.ts +116 -0
  78. package/dist/serverRequestTypes-Dv9NR-hQ.d.ts.map +1 -0
  79. package/dist/{serverResponseGuards-Cep5s7j5.d.ts → serverResponseGuards-BjIzucYt.d.ts} +2 -2
  80. package/dist/{serverResponseGuards-Cep5s7j5.d.ts.map → serverResponseGuards-BjIzucYt.d.ts.map} +1 -1
  81. package/dist/{serverResponseGuards-Dxt9_aGh.d.cts → serverResponseGuards-Dg9WbqBA.d.cts} +2 -2
  82. package/dist/{serverResponseGuards-Dxt9_aGh.d.cts.map → serverResponseGuards-Dg9WbqBA.d.cts.map} +1 -1
  83. package/dist/signing/buildSignedMobileRequest.cjs +1 -1
  84. package/dist/signing/buildSignedMobileRequest.d.cts +1 -1
  85. package/dist/signing/buildSignedMobileRequest.d.ts +1 -1
  86. package/dist/signing/canonicalize.cjs +5 -0
  87. package/dist/signing/canonicalize.cjs.map +1 -1
  88. package/dist/signing/canonicalize.d.cts +1 -1
  89. package/dist/signing/canonicalize.d.ts +1 -1
  90. package/dist/signing/canonicalize.js +5 -0
  91. package/dist/signing/canonicalize.js.map +1 -1
  92. package/dist/signing/eip712MethodByType.cjs +2 -1
  93. package/dist/signing/eip712MethodByType.cjs.map +1 -1
  94. package/dist/signing/eip712MethodByType.d.cts +1 -1
  95. package/dist/signing/eip712MethodByType.d.ts +1 -1
  96. package/dist/signing/eip712MethodByType.js +2 -1
  97. package/dist/signing/eip712MethodByType.js.map +1 -1
  98. package/dist/signing/index.d.cts +6 -6
  99. package/dist/signing/index.d.ts +6 -6
  100. package/dist/signing/payloadHash.cjs +1 -1
  101. package/dist/signing/payloadHash.d.cts +1 -1
  102. package/dist/signing/payloadHash.d.ts +1 -1
  103. package/dist/signing/types.d.cts +2 -2
  104. package/dist/signing/types.d.ts +2 -2
  105. package/dist/types/MobileServerFailureError.cjs +1 -1
  106. package/dist/types/MobileServerFailureError.d.cts +1 -1
  107. package/dist/types/MobileServerFailureError.d.ts +1 -1
  108. package/dist/types/clientTypes.d.cts +2 -2
  109. package/dist/types/clientTypes.d.ts +2 -2
  110. package/dist/types/index.d.cts +9 -9
  111. package/dist/types/index.d.ts +9 -9
  112. package/dist/types/mobileErrorCodes.cjs +13 -1
  113. package/dist/types/mobileErrorCodes.cjs.map +1 -1
  114. package/dist/types/mobileErrorCodes.d.cts +1 -1
  115. package/dist/types/mobileErrorCodes.d.ts +1 -1
  116. package/dist/types/mobileErrorCodes.js +12 -0
  117. package/dist/types/mobileErrorCodes.js.map +1 -1
  118. package/dist/types/serverBaseTypes.d.cts +1 -1
  119. package/dist/types/serverBaseTypes.d.ts +1 -1
  120. package/dist/types/serverExecuteTypes.d.cts +2 -2
  121. package/dist/types/serverExecuteTypes.d.ts +2 -2
  122. package/dist/types/serverModelTypes.cjs.map +1 -1
  123. package/dist/types/serverModelTypes.d.cts +2 -2
  124. package/dist/types/serverModelTypes.d.ts +2 -2
  125. package/dist/types/serverModelTypes.js.map +1 -1
  126. package/dist/types/serverQueryTypes.d.cts +2 -2
  127. package/dist/types/serverQueryTypes.d.ts +2 -2
  128. package/dist/types/serverRequestTypes.d.cts +2 -2
  129. package/dist/types/serverRequestTypes.d.ts +2 -2
  130. package/dist/{types-47IPsDyA.d.cts → types-BIIvIzG2.d.ts} +20 -7
  131. package/dist/types-BIIvIzG2.d.ts.map +1 -0
  132. package/dist/{types-D5kFJzEX.d.ts → types-UmYaeq1C.d.cts} +20 -7
  133. package/dist/types-UmYaeq1C.d.cts.map +1 -0
  134. package/dist/utils/follow.cjs +28 -0
  135. package/dist/utils/follow.cjs.map +1 -0
  136. package/dist/utils/follow.d.cts +2 -0
  137. package/dist/utils/follow.d.ts +2 -0
  138. package/dist/utils/follow.js +24 -0
  139. package/dist/utils/follow.js.map +1 -0
  140. package/dist/utils/index.cjs +5 -0
  141. package/dist/utils/index.d.cts +4 -3
  142. package/dist/utils/index.d.ts +4 -3
  143. package/dist/utils/index.js +2 -1
  144. package/dist/utils/patterns.d.cts +1 -1
  145. package/dist/utils/patterns.d.ts +1 -1
  146. package/dist/utils/serverResponseGuards.d.cts +1 -1
  147. package/dist/utils/serverResponseGuards.d.ts +1 -1
  148. package/package.json +3 -3
  149. package/src/MobileClient.ts +117 -21
  150. package/src/dataMappers.ts +109 -5
  151. package/src/signing/canonicalize.ts +6 -0
  152. package/src/signing/eip712MethodByType.ts +1 -0
  153. package/src/signing/signing.test.ts +32 -4
  154. package/src/signing/types.ts +18 -1
  155. package/src/types/clientTypes.ts +152 -11
  156. package/src/types/mobileErrorCodes.ts +12 -0
  157. package/src/types/serverExecuteTypes.ts +40 -2
  158. package/src/types/serverModelTypes.ts +58 -8
  159. package/src/types/serverQueryTypes.ts +18 -4
  160. package/src/types/serverRequestTypes.ts +50 -4
  161. package/src/utils/follow.ts +22 -0
  162. package/src/utils/index.ts +1 -0
  163. package/dist/MobileClient-D5TNTnLx.cjs.map +0 -1
  164. package/dist/canonicalize-CQ-pMYIt.d.ts.map +0 -1
  165. package/dist/canonicalize-hzhboB-C.d.cts.map +0 -1
  166. package/dist/clientTypes-BwakovWk.d.cts.map +0 -1
  167. package/dist/clientTypes-D-o1_2Yc.d.ts.map +0 -1
  168. package/dist/eip712MethodByType-3aiJkrHj.d.cts.map +0 -1
  169. package/dist/eip712MethodByType-zNvZukU7.d.ts.map +0 -1
  170. package/dist/mobileErrorCodes-CuQ5lyBV.d.ts.map +0 -1
  171. package/dist/mobileErrorCodes-D_SyBm0k.d.cts.map +0 -1
  172. package/dist/patterns-B5gi7OfV.d.ts.map +0 -1
  173. package/dist/patterns-Db6fgz8i.d.cts.map +0 -1
  174. package/dist/payloadHash-BxL26uwq.d.ts.map +0 -1
  175. package/dist/payloadHash-DVkEt-Rg.d.cts.map +0 -1
  176. package/dist/serverExecuteTypes-Cb5v7y0A.d.cts +0 -19
  177. package/dist/serverExecuteTypes-Cb5v7y0A.d.cts.map +0 -1
  178. package/dist/serverExecuteTypes-GFjZj_DC.d.ts +0 -19
  179. package/dist/serverExecuteTypes-GFjZj_DC.d.ts.map +0 -1
  180. package/dist/serverModelTypes-CwgibK-l.d.cts.map +0 -1
  181. package/dist/serverModelTypes-_cX99seo.d.ts.map +0 -1
  182. package/dist/serverQueryTypes-DwE1iJ9f.d.cts.map +0 -1
  183. package/dist/serverQueryTypes-NIrPm2Sl.d.ts.map +0 -1
  184. package/dist/serverRequestTypes-516zXnQ6.d.ts +0 -72
  185. package/dist/serverRequestTypes-516zXnQ6.d.ts.map +0 -1
  186. package/dist/serverRequestTypes-GAtVYIda.d.cts +0 -72
  187. package/dist/serverRequestTypes-GAtVYIda.d.cts.map +0 -1
  188. package/dist/types-47IPsDyA.d.cts.map +0 -1
  189. package/dist/types-D5kFJzEX.d.ts.map +0 -1
package/dist/index.d.ts CHANGED
@@ -1,20 +1,21 @@
1
- import { a as MobileFeedTradePosition, c as MobileNotificationCategory, d as MobileServerFeedTrade, f as MobileServerNotificationCategoryPreference, h as MobileServerProfile, i as MobileFeedMarginMode, l as MobileNotificationPlatform, m as MobileServerNotificationPreferences, n as MOBILE_FEED_TRADE_POSITION_DIRECTIONS, o as MobileFeedTradePositionDirection, p as MobileServerNotificationPreferenceScope, r as MOBILE_FEED_TRADE_POSITION_EFFECTS, s as MobileFeedTradePositionEffect, t as MOBILE_FEED_MARGIN_MODES, u as MobileServerFeedMargin } from "./serverModelTypes-_cX99seo.js";
2
- import { _ as MobileSignedRequestParams, a as GetMobileUsernameAvailabilityParams, b as MobileUsernameAvailability, c as MobileFeedTrade, d as MobileNotificationPreferences, f as MobilePublicProfile, g as MobileSetUsernameParams, h as MobileSetPrivateModeParams, i as GetMobileRegisteredWalletParams, l as MobileNotificationCategoryPreference, m as MobileRegisteredWallet, n as GetMobileNotificationPreferencesParams, o as MobileFeedMargin, p as MobileRegisterExpoTokenParams, r as GetMobilePublicProfileParams, s as MobileFeedPage, t as GetMobileFeedParams, u as MobileNotificationPreferenceScope, v as MobileUnregisterExpoTokenParams, x as MobileWithExpoTokenParams, y as MobileUpdateNotificationPreferencesParams } from "./clientTypes-D-o1_2Yc.js";
3
- import { i as MobileSignedRequest, n as MobileSignedInner, r as MobileSignedInnerParams, t as BuildSignedMobileRequestParams } from "./types-D5kFJzEX.js";
4
- import { t as buildSignedMobileRequest } from "./buildSignedMobileRequest-BScnCGPF.js";
5
- import { t as canonicalizeMobileInner } from "./canonicalize-CQ-pMYIt.js";
6
- import { t as MOBILE_EIP712_METHOD_BY_TYPE } from "./eip712MethodByType-zNvZukU7.js";
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-CDcRlRtw.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-CB_itU4Z.js";
3
+ import { a as MobileSignedRequest, i as MobileSignedInnerParams, n as MobileSignedInner, r as MobileSignedInnerByType, t as BuildSignedMobileRequestParams } from "./types-BIIvIzG2.js";
4
+ import { t as buildSignedMobileRequest } from "./buildSignedMobileRequest-BqLRFLKV.js";
5
+ import { t as canonicalizeMobileInner } from "./canonicalize-BRhCpYm1.js";
6
+ import { t as MOBILE_EIP712_METHOD_BY_TYPE } from "./eip712MethodByType-CrqBJIrp.js";
7
7
  import { t as getMobileNonce } from "./nonce-DCOrXXkQ.js";
8
- import { t as getMobilePayloadHash } from "./payloadHash-BxL26uwq.js";
9
- import { a as MobileServerPublicQueryRequestType, i as MobileServerPublicQueryRequestByType, n as MobileServerPublicExecuteRequestByType, o as MobileServerRequestType, r as MobileServerPublicExecuteRequestType, t as MobileServerExecuteRequestType } from "./serverRequestTypes-516zXnQ6.js";
10
- import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "./serverBaseTypes-B_KHFDab.js";
11
- import { n as MobileServerPublicExecuteRequest, t as MobileServerExecuteResult } from "./serverExecuteTypes-GFjZj_DC.js";
12
- import { a as MobileServerPublicQueryResponseByType, c as MobileServerUsernameAvailabilityResponse, i as MobileServerPublicQueryRequest, n as MobileServerNotificationPreferencesResponse, o as MobileServerPublicQuerySuccessResponse, r as MobileServerProfileResponse, s as MobileServerRegisteredWalletResponse, t as MobileServerFeedResponse } from "./serverQueryTypes-NIrPm2Sl.js";
8
+ import { t as getMobilePayloadHash } from "./payloadHash-Cv4WwZCZ.js";
9
+ 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-Dv9NR-hQ.js";
10
+ import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "./serverBaseTypes-C2JGib--.js";
11
+ import { a as MobileServerFollowMutationResponse, i as MobileServerExecuteSuccessResponse, n as MobileServerExecuteResponseByType, o as MobileServerPublicExecuteRequest, r as MobileServerExecuteResult, t as MobileServerEmptyExecuteResponse } from "./serverExecuteTypes-C2NoNEwu.js";
12
+ 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-B0xI1G39.js";
13
13
  import { MobileClient, MobileClientOpts } from "./MobileClient.js";
14
14
  import { MOBILE_CLIENT_ENDPOINTS } from "./endpoints.js";
15
- import { n as MobileErrorCode, t as MOBILE_ERROR_CODES } from "./mobileErrorCodes-CuQ5lyBV.js";
16
- import { t as MobileServerFailureError } from "./MobileServerFailureError-Terv2Wzy.js";
15
+ import { n as MobileErrorCode, t as MOBILE_ERROR_CODES } from "./mobileErrorCodes-B3eR6t4b.js";
16
+ import { t as MobileServerFailureError } from "./MobileServerFailureError-CrNpL_L4.js";
17
17
  import { n as MOBILE_FEED_MIN_NOTIONAL_FLOOR, t as MOBILE_FEED_MAX_PAGE_SIZE } from "./feed-BF5k6Ryu.js";
18
- import { t as MOBILE_DISPLAY_NAME_PATTERN } from "./patterns-B5gi7OfV.js";
19
- import { n as isMobileServerSuccessResponse, t as isMobileServerFailureResponse } from "./serverResponseGuards-Cep5s7j5.js";
20
- export { BuildSignedMobileRequestParams, GetMobileFeedParams, GetMobileNotificationPreferencesParams, GetMobilePublicProfileParams, GetMobileRegisteredWalletParams, GetMobileUsernameAvailabilityParams, MOBILE_CLIENT_ENDPOINTS, MOBILE_DISPLAY_NAME_PATTERN, MOBILE_EIP712_METHOD_BY_TYPE, MOBILE_ERROR_CODES, MOBILE_FEED_MARGIN_MODES, MOBILE_FEED_MAX_PAGE_SIZE, MOBILE_FEED_MIN_NOTIONAL_FLOOR, MOBILE_FEED_TRADE_POSITION_DIRECTIONS, MOBILE_FEED_TRADE_POSITION_EFFECTS, MobileClient, MobileClientOpts, MobileErrorCode, MobileFeedMargin, MobileFeedMarginMode, MobileFeedPage, MobileFeedTrade, MobileFeedTradePosition, MobileFeedTradePositionDirection, MobileFeedTradePositionEffect, MobileNotificationCategory, MobileNotificationCategoryPreference, MobileNotificationPlatform, MobileNotificationPreferenceScope, MobileNotificationPreferences, MobilePublicProfile, MobileRegisterExpoTokenParams, MobileRegisteredWallet, MobileServerExecuteRequestType, MobileServerExecuteResult, MobileServerFailureError, MobileServerFailureResponse, MobileServerFeedMargin, MobileServerFeedResponse, MobileServerFeedTrade, MobileServerNotificationCategoryPreference, MobileServerNotificationPreferenceScope, MobileServerNotificationPreferences, MobileServerNotificationPreferencesResponse, MobileServerProfile, MobileServerProfileResponse, MobileServerPublicExecuteRequest, MobileServerPublicExecuteRequestByType, MobileServerPublicExecuteRequestType, MobileServerPublicQueryRequest, MobileServerPublicQueryRequestByType, MobileServerPublicQueryRequestType, MobileServerPublicQueryResponseByType, MobileServerPublicQuerySuccessResponse, MobileServerRegisteredWalletResponse, MobileServerRequestType, MobileServerSuccessResponse, MobileServerUsernameAvailabilityResponse, MobileSetPrivateModeParams, MobileSetUsernameParams, MobileSignedInner, MobileSignedInnerParams, MobileSignedRequest, MobileSignedRequestParams, MobileUnregisterExpoTokenParams, MobileUpdateNotificationPreferencesParams, MobileUsernameAvailability, MobileWithExpoTokenParams, buildSignedMobileRequest, canonicalizeMobileInner, getMobileNonce, getMobilePayloadHash, isMobileServerFailureResponse, isMobileServerSuccessResponse };
18
+ import { i as MOBILE_PROFILES_MAX_BATCH_SIZE, n as MOBILE_FOLLOW_LIST_DEFAULT_PAGE_SIZE, r as MOBILE_FOLLOW_LIST_MAX_PAGE_SIZE, t as MOBILE_FOLLOWED_BY_PREVIEW_LIMIT } from "./follow-DjkQm1vR.js";
19
+ import { t as MOBILE_DISPLAY_NAME_PATTERN } from "./patterns-C-aUAnKl.js";
20
+ import { n as isMobileServerSuccessResponse, t as isMobileServerFailureResponse } from "./serverResponseGuards-BjIzucYt.js";
21
+ export { BuildSignedMobileRequestParams, GetMobileFeedParams, GetMobileFollowListParams, GetMobileFollowersParams, GetMobileFollowingParams, GetMobileNotificationPreferencesParams, GetMobileProfilesParams, GetMobileRegisteredWalletParams, GetMobileUsernameAvailabilityParams, MOBILE_CLIENT_ENDPOINTS, MOBILE_DISPLAY_NAME_PATTERN, MOBILE_EIP712_METHOD_BY_TYPE, MOBILE_ERROR_CODES, MOBILE_FEED_MARGIN_MODES, MOBILE_FEED_MAX_PAGE_SIZE, MOBILE_FEED_MIN_NOTIONAL_FLOOR, MOBILE_FEED_TRADE_POSITION_DIRECTIONS, MOBILE_FEED_TRADE_POSITION_EFFECTS, MOBILE_FOLLOWED_BY_PREVIEW_LIMIT, MOBILE_FOLLOW_LIST_DEFAULT_PAGE_SIZE, MOBILE_FOLLOW_LIST_MAX_PAGE_SIZE, MOBILE_PROFILES_MAX_BATCH_SIZE, MobileClient, MobileClientOpts, MobileErrorCode, MobileFeedMargin, MobileFeedMarginMode, MobileFeedPage, MobileFeedTrade, MobileFeedTradePosition, MobileFeedTradePositionDirection, MobileFeedTradePositionEffect, MobileFollowListAccount, MobileFollowListPage, MobileFollowMutationResult, MobileFollowSummary, MobileIdentitySummary, MobileNotificationCategory, MobileNotificationCategoryPreference, MobileNotificationPlatform, MobileNotificationPreferenceScope, MobileNotificationPreferences, MobileProfilesInclude, MobilePublicProfile, MobileRegisterExpoTokenParams, MobileRegisteredWallet, MobileServerEmptyExecuteResponse, MobileServerExecuteRequestType, MobileServerExecuteResponseByType, MobileServerExecuteResult, MobileServerExecuteSuccessResponse, MobileServerFailureError, MobileServerFailureResponse, MobileServerFeedMargin, MobileServerFeedResponse, MobileServerFeedTrade, MobileServerFollowListAccount, MobileServerFollowListRequest, MobileServerFollowListResponse, MobileServerFollowMutationResponse, MobileServerFollowSummary, MobileServerIdentitySummary, MobileServerNotificationCategoryPreference, MobileServerNotificationPreferenceScope, MobileServerNotificationPreferences, MobileServerNotificationPreferencesResponse, MobileServerProfile, MobileServerProfilesInclude, MobileServerProfilesResponse, MobileServerPublicExecuteRequest, MobileServerPublicExecuteRequestByType, MobileServerPublicExecuteRequestType, MobileServerPublicQueryRequest, MobileServerPublicQueryRequestByType, MobileServerPublicQueryRequestType, MobileServerPublicQueryResponseByType, MobileServerPublicQuerySuccessResponse, MobileServerRegisteredWalletResponse, MobileServerRequestType, MobileServerSuccessResponse, MobileServerUsernameAvailabilityResponse, MobileSetFollowParams, MobileSetPrivateModeParams, MobileSetUsernameParams, MobileSignedInner, MobileSignedInnerByType, MobileSignedInnerParams, MobileSignedRequest, MobileSignedRequestParams, MobileUnregisterExpoTokenParams, MobileUpdateNotificationPreferencesParams, MobileUsernameAvailability, MobileWithExpoTokenParams, buildSignedMobileRequest, canonicalizeMobileInner, getMobileNonce, getMobilePayloadHash, isMobileServerFailureResponse, isMobileServerSuccessResponse };
package/dist/index.js CHANGED
@@ -12,6 +12,7 @@ import { MOBILE_ERROR_CODES } from "./types/mobileErrorCodes.js";
12
12
  import { MOBILE_FEED_MARGIN_MODES, MOBILE_FEED_TRADE_POSITION_DIRECTIONS, MOBILE_FEED_TRADE_POSITION_EFFECTS } from "./types/serverModelTypes.js";
13
13
  import "./types/index.js";
14
14
  import { MOBILE_FEED_MAX_PAGE_SIZE, MOBILE_FEED_MIN_NOTIONAL_FLOOR } from "./utils/feed.js";
15
+ import { MOBILE_FOLLOWED_BY_PREVIEW_LIMIT, MOBILE_FOLLOW_LIST_DEFAULT_PAGE_SIZE, MOBILE_FOLLOW_LIST_MAX_PAGE_SIZE, MOBILE_PROFILES_MAX_BATCH_SIZE } from "./utils/follow.js";
15
16
  import { MOBILE_DISPLAY_NAME_PATTERN } from "./utils/patterns.js";
16
17
  import "./utils/index.js";
17
- export { MOBILE_CLIENT_ENDPOINTS, MOBILE_DISPLAY_NAME_PATTERN, MOBILE_EIP712_METHOD_BY_TYPE, MOBILE_ERROR_CODES, MOBILE_FEED_MARGIN_MODES, MOBILE_FEED_MAX_PAGE_SIZE, MOBILE_FEED_MIN_NOTIONAL_FLOOR, MOBILE_FEED_TRADE_POSITION_DIRECTIONS, MOBILE_FEED_TRADE_POSITION_EFFECTS, MobileClient, MobileServerFailureError, buildSignedMobileRequest, canonicalizeMobileInner, getMobileNonce, getMobilePayloadHash, isMobileServerFailureResponse, isMobileServerSuccessResponse };
18
+ export { MOBILE_CLIENT_ENDPOINTS, MOBILE_DISPLAY_NAME_PATTERN, MOBILE_EIP712_METHOD_BY_TYPE, MOBILE_ERROR_CODES, MOBILE_FEED_MARGIN_MODES, MOBILE_FEED_MAX_PAGE_SIZE, MOBILE_FEED_MIN_NOTIONAL_FLOOR, MOBILE_FEED_TRADE_POSITION_DIRECTIONS, MOBILE_FEED_TRADE_POSITION_EFFECTS, MOBILE_FOLLOWED_BY_PREVIEW_LIMIT, MOBILE_FOLLOW_LIST_DEFAULT_PAGE_SIZE, MOBILE_FOLLOW_LIST_MAX_PAGE_SIZE, MOBILE_PROFILES_MAX_BATCH_SIZE, MobileClient, MobileServerFailureError, buildSignedMobileRequest, canonicalizeMobileInner, getMobileNonce, getMobilePayloadHash, isMobileServerFailureResponse, isMobileServerSuccessResponse };
@@ -9,7 +9,13 @@ declare const MOBILE_ERROR_CODES: {
9
9
  readonly USERNAME_UNAVAILABLE: 6101;
10
10
  readonly INVALID_IDENTITY_TARGET: 6104; /** Another identity write for the subaccount committed with a later nonce. Re-read before retrying. */
11
11
  readonly STALE_IDENTITY_UPDATE: 6105;
12
- readonly PROFILE_NOT_FOUND: 6106;
12
+ readonly PROFILE_NOT_FOUND: 6106; /** Profiles lookup is empty, holds duplicates, or exceeds the batch maximum. Do not retry unchanged. */
13
+ readonly INVALID_PROFILES_REQUEST: 6107; /** Follow mutation names the same source and target, or an isolated participant. Do not retry unchanged. */
14
+ readonly INVALID_FOLLOW_TARGET: 6110; /** Signed follower is not yet in the canonical Query DB subaccount index. Retry after index catch-up. */
15
+ readonly FOLLOWER_NOT_ELIGIBLE: 6111; /** Follow target is not yet in the canonical Query DB subaccount index. Refresh after a new record. */
16
+ readonly FOLLOWING_NOT_FOUND: 6112; /** Follow list cursor is malformed or bound to a different list request. Restart from `cursor: null`. */
17
+ readonly INVALID_FOLLOW_CURSOR: 6113; /** A follow list or followed-by limit is outside its accepted range. Fix it; do not retry unchanged. */
18
+ readonly INVALID_FOLLOW_LIMIT: 6114;
13
19
  readonly INVALID_EXPO_TOKEN: 6200;
14
20
  readonly INVALID_DEVICE_METADATA: 6201;
15
21
  readonly INVALID_PREFERENCES: 6202; /** Feed `minimumNotional` or `limit` is outside its allowed domain. Fix the request; do not retry unchanged. */
@@ -36,4 +42,4 @@ declare const MOBILE_ERROR_CODES: {
36
42
  type MobileErrorCode = (typeof MOBILE_ERROR_CODES)[keyof typeof MOBILE_ERROR_CODES];
37
43
  //#endregion
38
44
  export { MobileErrorCode as n, MOBILE_ERROR_CODES as t };
39
- //# sourceMappingURL=mobileErrorCodes-CuQ5lyBV.d.ts.map
45
+ //# sourceMappingURL=mobileErrorCodes-B3eR6t4b.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mobileErrorCodes-B3eR6t4b.d.ts","names":[],"sources":["../src/types/src/types/mobileErrorCodes.ts"],"mappings":";;AAOA;;;;cAAa,kBAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAgCD,eAAA,WACF,kBAAA,eAAiC,kBAAkB"}
@@ -9,7 +9,13 @@ declare const MOBILE_ERROR_CODES: {
9
9
  readonly USERNAME_UNAVAILABLE: 6101;
10
10
  readonly INVALID_IDENTITY_TARGET: 6104; /** Another identity write for the subaccount committed with a later nonce. Re-read before retrying. */
11
11
  readonly STALE_IDENTITY_UPDATE: 6105;
12
- readonly PROFILE_NOT_FOUND: 6106;
12
+ readonly PROFILE_NOT_FOUND: 6106; /** Profiles lookup is empty, holds duplicates, or exceeds the batch maximum. Do not retry unchanged. */
13
+ readonly INVALID_PROFILES_REQUEST: 6107; /** Follow mutation names the same source and target, or an isolated participant. Do not retry unchanged. */
14
+ readonly INVALID_FOLLOW_TARGET: 6110; /** Signed follower is not yet in the canonical Query DB subaccount index. Retry after index catch-up. */
15
+ readonly FOLLOWER_NOT_ELIGIBLE: 6111; /** Follow target is not yet in the canonical Query DB subaccount index. Refresh after a new record. */
16
+ readonly FOLLOWING_NOT_FOUND: 6112; /** Follow list cursor is malformed or bound to a different list request. Restart from `cursor: null`. */
17
+ readonly INVALID_FOLLOW_CURSOR: 6113; /** A follow list or followed-by limit is outside its accepted range. Fix it; do not retry unchanged. */
18
+ readonly INVALID_FOLLOW_LIMIT: 6114;
13
19
  readonly INVALID_EXPO_TOKEN: 6200;
14
20
  readonly INVALID_DEVICE_METADATA: 6201;
15
21
  readonly INVALID_PREFERENCES: 6202; /** Feed `minimumNotional` or `limit` is outside its allowed domain. Fix the request; do not retry unchanged. */
@@ -36,4 +42,4 @@ declare const MOBILE_ERROR_CODES: {
36
42
  type MobileErrorCode = (typeof MOBILE_ERROR_CODES)[keyof typeof MOBILE_ERROR_CODES];
37
43
  //#endregion
38
44
  export { MobileErrorCode as n, MOBILE_ERROR_CODES as t };
39
- //# sourceMappingURL=mobileErrorCodes-D_SyBm0k.d.cts.map
45
+ //# sourceMappingURL=mobileErrorCodes-DkzBW4v3.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mobileErrorCodes-DkzBW4v3.d.cts","names":[],"sources":["../src/types/src/types/mobileErrorCodes.ts"],"mappings":";;AAOA;;;;cAAa,kBAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAgCD,eAAA,WACF,kBAAA,eAAiC,kBAAkB"}
@@ -5,4 +5,4 @@
5
5
  declare const MOBILE_DISPLAY_NAME_PATTERN: RegExp;
6
6
  //#endregion
7
7
  export { MOBILE_DISPLAY_NAME_PATTERN as t };
8
- //# sourceMappingURL=patterns-B5gi7OfV.d.ts.map
8
+ //# sourceMappingURL=patterns-C-aUAnKl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"patterns-C-aUAnKl.d.ts","names":[],"sources":["../src/utils/src/utils/patterns.ts"],"mappings":";;AAGA;;cAAa,2BAAA,EAA2B,MAA0B"}
@@ -5,4 +5,4 @@
5
5
  declare const MOBILE_DISPLAY_NAME_PATTERN: RegExp;
6
6
  //#endregion
7
7
  export { MOBILE_DISPLAY_NAME_PATTERN as t };
8
- //# sourceMappingURL=patterns-Db6fgz8i.d.cts.map
8
+ //# sourceMappingURL=patterns-DS8P5LH0.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"patterns-DS8P5LH0.d.cts","names":[],"sources":["../src/utils/src/utils/patterns.ts"],"mappings":";;AAGA;;cAAa,2BAAA,EAA2B,MAA0B"}
@@ -1,4 +1,4 @@
1
- import { n as MobileSignedInner } from "./types-47IPsDyA.cjs";
1
+ import { n as MobileSignedInner } from "./types-UmYaeq1C.cjs";
2
2
  import { Hex } from "viem";
3
3
 
4
4
  //#region src/signing/payloadHash.d.ts
@@ -10,4 +10,4 @@ import { Hex } from "viem";
10
10
  declare function getMobilePayloadHash(inner: MobileSignedInner): Hex;
11
11
  //#endregion
12
12
  export { getMobilePayloadHash as t };
13
- //# sourceMappingURL=payloadHash-DVkEt-Rg.d.cts.map
13
+ //# sourceMappingURL=payloadHash-CIo8Hkh6.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payloadHash-CIo8Hkh6.d.cts","names":[],"sources":["../src/signing/src/signing/payloadHash.ts"],"mappings":";;;;;;AASA;;;iBAAgB,oBAAA,CAAqB,KAAA,EAAO,iBAAA,GAAoB,GAAG"}
@@ -1,4 +1,4 @@
1
- import { n as MobileSignedInner } from "./types-D5kFJzEX.js";
1
+ import { n as MobileSignedInner } from "./types-BIIvIzG2.js";
2
2
  import { Hex } from "viem";
3
3
 
4
4
  //#region src/signing/payloadHash.d.ts
@@ -10,4 +10,4 @@ import { Hex } from "viem";
10
10
  declare function getMobilePayloadHash(inner: MobileSignedInner): Hex;
11
11
  //#endregion
12
12
  export { getMobilePayloadHash as t };
13
- //# sourceMappingURL=payloadHash-BxL26uwq.d.ts.map
13
+ //# sourceMappingURL=payloadHash-Cv4WwZCZ.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payloadHash-Cv4WwZCZ.d.ts","names":[],"sources":["../src/signing/src/signing/payloadHash.ts"],"mappings":";;;;;;AASA;;;iBAAgB,oBAAA,CAAqB,KAAA,EAAO,iBAAA,GAAoB,GAAG"}
@@ -1,4 +1,4 @@
1
- import { o as MobileServerRequestType } from "./serverRequestTypes-516zXnQ6.js";
1
+ import { c as MobileServerRequestType } from "./serverRequestTypes-Dv9NR-hQ.js";
2
2
 
3
3
  //#region src/types/serverBaseTypes.d.ts
4
4
  /**
@@ -22,4 +22,4 @@ interface MobileServerFailureResponse {
22
22
  }
23
23
  //#endregion
24
24
  export { MobileServerSuccessResponse as n, MobileServerFailureResponse as t };
25
- //# sourceMappingURL=serverBaseTypes-B_KHFDab.d.ts.map
25
+ //# sourceMappingURL=serverBaseTypes-C2JGib--.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"serverBaseTypes-B_KHFDab.d.ts","names":[],"sources":["../src/types/src/types/serverBaseTypes.ts"],"mappings":";;;;;AAQA;;;;UAAiB,2BAAA;EACf,MAAM;AAAA;;;;;UAOS,2BAAA;EACf,MAAA;EACA,KAAA;EACA,UAAA;EACA,YAAA,EAAc,uBAAuB;AAAA"}
1
+ {"version":3,"file":"serverBaseTypes-C2JGib--.d.ts","names":[],"sources":["../src/types/src/types/serverBaseTypes.ts"],"mappings":";;;;;AAQA;;;;UAAiB,2BAAA;EACf,MAAM;AAAA;;;;;UAOS,2BAAA;EACf,MAAA;EACA,KAAA;EACA,UAAA;EACA,YAAA,EAAc,uBAAuB;AAAA"}
@@ -1,4 +1,4 @@
1
- import { o as MobileServerRequestType } from "./serverRequestTypes-GAtVYIda.cjs";
1
+ import { c as MobileServerRequestType } from "./serverRequestTypes-Ddws3yXc.cjs";
2
2
 
3
3
  //#region src/types/serverBaseTypes.d.ts
4
4
  /**
@@ -22,4 +22,4 @@ interface MobileServerFailureResponse {
22
22
  }
23
23
  //#endregion
24
24
  export { MobileServerSuccessResponse as n, MobileServerFailureResponse as t };
25
- //# sourceMappingURL=serverBaseTypes-C8KjE9Fm.d.cts.map
25
+ //# sourceMappingURL=serverBaseTypes-YkCmgmt1.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"serverBaseTypes-C8KjE9Fm.d.cts","names":[],"sources":["../src/types/src/types/serverBaseTypes.ts"],"mappings":";;;;;AAQA;;;;UAAiB,2BAAA;EACf,MAAM;AAAA;;;;;UAOS,2BAAA;EACf,MAAA;EACA,KAAA;EACA,UAAA;EACA,YAAA,EAAc,uBAAuB;AAAA"}
1
+ {"version":3,"file":"serverBaseTypes-YkCmgmt1.d.cts","names":[],"sources":["../src/types/src/types/serverBaseTypes.ts"],"mappings":";;;;;AAQA;;;;UAAiB,2BAAA;EACf,MAAM;AAAA;;;;;UAOS,2BAAA;EACf,MAAA;EACA,KAAA;EACA,UAAA;EACA,YAAA,EAAc,uBAAuB;AAAA"}
@@ -0,0 +1,50 @@
1
+ import { a as MobileServerPublicExecuteRequestType, i as MobileServerPublicExecuteRequestByType, t as MobileServerExecuteRequestType } from "./serverRequestTypes-Dv9NR-hQ.js";
2
+ import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "./serverBaseTypes-C2JGib--.js";
3
+
4
+ //#region src/types/serverExecuteTypes.d.ts
5
+ /**
6
+ * Unsigned `public_execute` request body: a `type` discriminant flattened with its params, mirroring
7
+ * {@link MobileServerPublicQueryRequest}.
8
+ */
9
+ type MobileServerPublicExecuteRequest<T extends MobileServerPublicExecuteRequestType = MobileServerPublicExecuteRequestType> = { [K in MobileServerPublicExecuteRequestType]: {
10
+ type: K;
11
+ } & MobileServerPublicExecuteRequestByType[K] }[T];
12
+ /**
13
+ * Payload the `set_follow` execute returns alongside the success envelope. The mutation and the count commit
14
+ * in one database transaction, so these are the authoritative post-mutation values — prefer them over
15
+ * re-reading, and note that overlapping toggles for the same pair can respond out of arrival order.
16
+ */
17
+ interface MobileServerFollowMutationResponse {
18
+ is_following: boolean;
19
+ /** The *target's* follower count after the mutation, not the sender's. */
20
+ follower_count: number;
21
+ }
22
+ /**
23
+ * Payload of an execute route that returns nothing beyond the success discriminant. Spelled `Record<never,
24
+ * never>` rather than `Record<string, never>` because the latter's index signature would collapse `status` to
25
+ * `never` when intersected with the success envelope.
26
+ */
27
+ type MobileServerEmptyExecuteResponse = Record<never, never>;
28
+ /**
29
+ * Success payloads for each signed `execute`, keyed by request `type`. Most execute routes carry no payload
30
+ * beyond the success discriminant and so map to an empty object; `set_follow` returns its post-commit
31
+ * relationship state.
32
+ */
33
+ interface MobileServerExecuteResponseByType {
34
+ set_username: MobileServerEmptyExecuteResponse;
35
+ set_private_mode: MobileServerEmptyExecuteResponse;
36
+ register_expo_token: MobileServerEmptyExecuteResponse;
37
+ set_follow: MobileServerFollowMutationResponse;
38
+ }
39
+ /**
40
+ * Full success response for a signed `execute`: the {@link MobileServerSuccessResponse} envelope with the
41
+ * route's payload inlined alongside `status`, matching how the query routes inline theirs.
42
+ */
43
+ type MobileServerExecuteSuccessResponse<T extends MobileServerExecuteRequestType = MobileServerExecuteRequestType> = MobileServerSuccessResponse & MobileServerExecuteResponseByType[T];
44
+ /**
45
+ * Discriminated `execute` result union used at the transport boundary, before the envelope is narrowed.
46
+ */
47
+ type MobileServerExecuteResult = MobileServerSuccessResponse | MobileServerFailureResponse;
48
+ //#endregion
49
+ export { MobileServerFollowMutationResponse as a, MobileServerExecuteSuccessResponse as i, MobileServerExecuteResponseByType as n, MobileServerPublicExecuteRequest as o, MobileServerExecuteResult as r, MobileServerEmptyExecuteResponse as t };
50
+ //# sourceMappingURL=serverExecuteTypes-C2NoNEwu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serverExecuteTypes-C2NoNEwu.d.ts","names":[],"sources":["../src/types/src/types/serverExecuteTypes.ts"],"mappings":";;;;;;AAcA;;KAAY,gCAAA,WACA,oCAAA,GACR,oCAAA,YAEI,oCAAA;EACJ,IAAA,EAAM,CAAA;AAAA,IACJ,sCAAA,CAAuC,CAAA,IAC3C,CAAA;;;;;;UAOe,kCAAA;EACf,YAAA;EAbE;EAeF,cAAc;AAAA;;;;;;KAQJ,gCAAA,GAAmC,MAAM;AAlBlD;AAOH;;;;AAPG,UAyBc,iCAAA;EACf,YAAA,EAAc,gCAAA;EACd,gBAAA,EAAkB,gCAAA;EAClB,mBAAA,EAAqB,gCAAA;EACrB,UAAA,EAAY,kCAAA;AAAA;AAJd;;;;AAAA,KAWY,kCAAA,WACA,8BAAA,GAAiC,8BAAA,IACzC,2BAAA,GAA8B,iCAAA,CAAkC,CAAA;;;;KAKxD,yBAAA,GACR,2BAAA,GACA,2BAA2B"}
@@ -0,0 +1,50 @@
1
+ import { a as MobileServerPublicExecuteRequestType, i as MobileServerPublicExecuteRequestByType, t as MobileServerExecuteRequestType } from "./serverRequestTypes-Ddws3yXc.cjs";
2
+ import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "./serverBaseTypes-YkCmgmt1.cjs";
3
+
4
+ //#region src/types/serverExecuteTypes.d.ts
5
+ /**
6
+ * Unsigned `public_execute` request body: a `type` discriminant flattened with its params, mirroring
7
+ * {@link MobileServerPublicQueryRequest}.
8
+ */
9
+ type MobileServerPublicExecuteRequest<T extends MobileServerPublicExecuteRequestType = MobileServerPublicExecuteRequestType> = { [K in MobileServerPublicExecuteRequestType]: {
10
+ type: K;
11
+ } & MobileServerPublicExecuteRequestByType[K] }[T];
12
+ /**
13
+ * Payload the `set_follow` execute returns alongside the success envelope. The mutation and the count commit
14
+ * in one database transaction, so these are the authoritative post-mutation values — prefer them over
15
+ * re-reading, and note that overlapping toggles for the same pair can respond out of arrival order.
16
+ */
17
+ interface MobileServerFollowMutationResponse {
18
+ is_following: boolean;
19
+ /** The *target's* follower count after the mutation, not the sender's. */
20
+ follower_count: number;
21
+ }
22
+ /**
23
+ * Payload of an execute route that returns nothing beyond the success discriminant. Spelled `Record<never,
24
+ * never>` rather than `Record<string, never>` because the latter's index signature would collapse `status` to
25
+ * `never` when intersected with the success envelope.
26
+ */
27
+ type MobileServerEmptyExecuteResponse = Record<never, never>;
28
+ /**
29
+ * Success payloads for each signed `execute`, keyed by request `type`. Most execute routes carry no payload
30
+ * beyond the success discriminant and so map to an empty object; `set_follow` returns its post-commit
31
+ * relationship state.
32
+ */
33
+ interface MobileServerExecuteResponseByType {
34
+ set_username: MobileServerEmptyExecuteResponse;
35
+ set_private_mode: MobileServerEmptyExecuteResponse;
36
+ register_expo_token: MobileServerEmptyExecuteResponse;
37
+ set_follow: MobileServerFollowMutationResponse;
38
+ }
39
+ /**
40
+ * Full success response for a signed `execute`: the {@link MobileServerSuccessResponse} envelope with the
41
+ * route's payload inlined alongside `status`, matching how the query routes inline theirs.
42
+ */
43
+ type MobileServerExecuteSuccessResponse<T extends MobileServerExecuteRequestType = MobileServerExecuteRequestType> = MobileServerSuccessResponse & MobileServerExecuteResponseByType[T];
44
+ /**
45
+ * Discriminated `execute` result union used at the transport boundary, before the envelope is narrowed.
46
+ */
47
+ type MobileServerExecuteResult = MobileServerSuccessResponse | MobileServerFailureResponse;
48
+ //#endregion
49
+ export { MobileServerFollowMutationResponse as a, MobileServerExecuteSuccessResponse as i, MobileServerExecuteResponseByType as n, MobileServerPublicExecuteRequest as o, MobileServerExecuteResult as r, MobileServerEmptyExecuteResponse as t };
50
+ //# sourceMappingURL=serverExecuteTypes-DPZbs9ym.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serverExecuteTypes-DPZbs9ym.d.cts","names":[],"sources":["../src/types/src/types/serverExecuteTypes.ts"],"mappings":";;;;;;AAcA;;KAAY,gCAAA,WACA,oCAAA,GACR,oCAAA,YAEI,oCAAA;EACJ,IAAA,EAAM,CAAA;AAAA,IACJ,sCAAA,CAAuC,CAAA,IAC3C,CAAA;;;;;;UAOe,kCAAA;EACf,YAAA;EAbE;EAeF,cAAc;AAAA;;;;;;KAQJ,gCAAA,GAAmC,MAAM;AAlBlD;AAOH;;;;AAPG,UAyBc,iCAAA;EACf,YAAA,EAAc,gCAAA;EACd,gBAAA,EAAkB,gCAAA;EAClB,mBAAA,EAAqB,gCAAA;EACrB,UAAA,EAAY,kCAAA;AAAA;AAJd;;;;AAAA,KAWY,kCAAA,WACA,8BAAA,GAAiC,8BAAA,IACzC,2BAAA,GAA8B,iCAAA,CAAkC,CAAA;;;;KAKxD,yBAAA,GACR,2BAAA,GACA,2BAA2B"}
@@ -11,14 +11,66 @@ type MobileNotificationPlatform = 'ios' | 'android';
11
11
  */
12
12
  type MobileNotificationCategory = 'order_fill' | 'order_update' | 'liquidation' | 'funding' | 'product_listing' | 'announcement';
13
13
  /**
14
- * Server-side public profile shape (snake_case). Name fields are `null` until the subaccount claims a
15
- * username.
14
+ * Server-side identity summary (snake_case): the read-time identity fields the backend attaches to a
15
+ * subaccount wherever it surfaces one alongside other data. Name fields are `null` until the subaccount
16
+ * claims a username, and a rename shows up on the next read without any change to the surrounding record.
17
+ */
18
+ interface MobileServerIdentitySummary {
19
+ subaccount: Hex;
20
+ username: string | null;
21
+ display_name: string | null;
22
+ /** Reserved for a future avatar source; `null` until one is implemented. */
23
+ avatar_url: string | null;
24
+ }
25
+ /**
26
+ * Server-side follow summary (snake_case), nested in a `profiles` entry when the `follow_summary` include is
27
+ * requested. `is_following` is the direct `view_as -> this profile` relationship; every `followed_by` entry
28
+ * satisfies both `view_as -> entry` and `entry -> this profile`, so each one is already familiar to the
29
+ * viewer and carries no `is_following` of its own.
30
+ */
31
+ interface MobileServerFollowSummary {
32
+ is_following: boolean;
33
+ /** Exact size of the two-edge intersection, independent of how many previews came back. */
34
+ followed_by_count: number;
35
+ /** Capped at `MOBILE_FOLLOWED_BY_PREVIEW_LIMIT` (2) by the backend; not client-configurable. */
36
+ followed_by: MobileServerIdentitySummary[];
37
+ }
38
+ /**
39
+ * Server-side public profile shape (snake_case), shared by the singular `profile` and batched `profiles`
40
+ * queries. Name fields are `null` until the subaccount claims a username; a subaccount with no identity row
41
+ * still yields an entry, with `null` names and `private_mode: false`.
42
+ *
43
+ * The three optional fields are omitted from the wire entirely unless the matching `profiles` include asked
44
+ * for them, which is why they are optional rather than nullable — absent means "not requested", not "none".
45
+ * The singular `profile` query never returns any of them.
16
46
  */
17
47
  interface MobileServerProfile {
18
48
  subaccount: Hex;
19
49
  username: string | null;
20
50
  display_name: string | null;
21
51
  private_mode: boolean;
52
+ /**
53
+ * Exact count at query time — the backend counts rather than reading a cached counter. Unnamed and private
54
+ * accounts are included: Private Mode hides activity, not relationships. Requires `follow_counts`.
55
+ */
56
+ follower_count?: number;
57
+ following_count?: number;
58
+ /** Requires the `follow_summary` include, and is relative to that include's `view_as`. */
59
+ follow_summary?: MobileServerFollowSummary;
60
+ }
61
+ /**
62
+ * Server-side row of a Followers or Following page (snake_case).
63
+ */
64
+ interface MobileServerFollowListAccount {
65
+ identity: MobileServerIdentitySummary;
66
+ /**
67
+ * The `view_as` Viewer's relationship to this account, not the listed relationship that put it in the
68
+ * page, so it is `false` on the Viewer's own row. Omitted entirely when the request named no `view_as`,
69
+ * rather than being sent as a misleading `false`.
70
+ */
71
+ is_following?: boolean;
72
+ /** The listed account's own follower count, exact at query time. */
73
+ follower_count: number;
22
74
  }
23
75
  /**
24
76
  * Direction of the position a feed trade resulted in — for `closed`, the direction that was closed. This is
@@ -71,14 +123,9 @@ interface MobileServerFeedMargin {
71
123
  * trader's current identity. Amounts are display-oriented human-unit JSON numbers — do not use them for
72
124
  * accounting, order construction, or exact threshold decisions.
73
125
  */
74
- interface MobileServerFeedTrade {
126
+ interface MobileServerFeedTrade extends MobileServerIdentitySummary {
75
127
  /** Order digest this row is keyed by; the stable id clients use to reconcile live pagination. */
76
128
  order_digest: Hex;
77
- subaccount: Hex;
78
- username: string | null;
79
- display_name: string | null;
80
- /** Reserved for a future avatar source; `null` until one is implemented. */
81
- avatar_url: string | null;
82
129
  product_id: number;
83
130
  /** Executed quantity in human units. */
84
131
  quantity: number;
@@ -122,5 +169,5 @@ interface MobileServerNotificationPreferences {
122
169
  categories: MobileServerNotificationCategoryPreference[];
123
170
  }
124
171
  //#endregion
125
- export { MobileFeedTradePosition as a, MobileNotificationCategory as c, MobileServerFeedTrade as d, MobileServerNotificationCategoryPreference as f, MobileServerProfile as h, MobileFeedMarginMode as i, MobileNotificationPlatform as l, MobileServerNotificationPreferences as m, MOBILE_FEED_TRADE_POSITION_DIRECTIONS as n, MobileFeedTradePositionDirection as o, MobileServerNotificationPreferenceScope as p, MOBILE_FEED_TRADE_POSITION_EFFECTS as r, MobileFeedTradePositionEffect as s, MOBILE_FEED_MARGIN_MODES as t, MobileServerFeedMargin as u };
126
- //# sourceMappingURL=serverModelTypes-_cX99seo.d.ts.map
172
+ export { MobileServerNotificationPreferences as _, MobileFeedTradePosition as a, MobileNotificationCategory as c, MobileServerFeedTrade as d, MobileServerFollowListAccount as f, MobileServerNotificationPreferenceScope as g, MobileServerNotificationCategoryPreference as h, MobileFeedMarginMode as i, MobileNotificationPlatform as l, MobileServerIdentitySummary as m, MOBILE_FEED_TRADE_POSITION_DIRECTIONS as n, MobileFeedTradePositionDirection as o, MobileServerFollowSummary as p, MOBILE_FEED_TRADE_POSITION_EFFECTS as r, MobileFeedTradePositionEffect as s, MOBILE_FEED_MARGIN_MODES as t, MobileServerFeedMargin as u, MobileServerProfile as v };
173
+ //# sourceMappingURL=serverModelTypes-CDcRlRtw.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serverModelTypes-CDcRlRtw.d.ts","names":[],"sources":["../src/types/src/types/serverModelTypes.ts"],"mappings":";;;;;;AAMA;KAAY,0BAAA;;;AAA0B;KAK1B,0BAAA;;;;AAA0B;AAatC;UAAiB,2BAAA;EACf,UAAA,EAAY,GAAG;EACf,QAAA;EACA,YAAA;EAFY;EAIZ,UAAA;AAAA;;;AAAU;AASZ;;;UAAiB,yBAAA;EACf,YAAA;EAEA;EAAA,iBAAA;EAEa;EAAb,WAAA,EAAa,2BAA2B;AAAA;AAY1C;;;;;;;;;AAAA,UAAiB,mBAAA;EACf,UAAA,EAAY,GAAA;EACZ,QAAA;EACA,YAAA;EACA,YAAA;EAQ0C;AAM5C;;;EATE,cAAA;EACA,eAAA;EASU;EAPV,cAAA,GAAiB,yBAAyB;AAAA;;AAe5B;AAQhB;UAjBiB,6BAAA;EACf,QAAA,EAAU,2BAA2B;EAgBmB;AAAA;AAM1D;;;EAhBE,YAAA;EAmB8D;EAjB9D,cAAA;AAAA;;;AA6BQ;AAKV;;KA1BY,gCAAA,GAAmC,WAAW;;AA2Bd;AAM5C;;cA3Ba,qCAAA;;;;;cASA,kCAAA;;AAoB0B;AAOvC;KAhBY,6BAAA,WACF,kCAAkC;;;AAe0B;AAKtE;UAdiB,uBAAA;EACf,SAAA,EAAW,gCAAA;EACX,MAAA,EAAQ,6BAA6B;AAAA;AAmBvC;;;;AAAA,cAZa,wBAAA;;;;KAKD,oBAAA,WAA+B,wBAAwB;AAiBnE;;;;;AAAA,UAViB,sBAAA;EACf,IAAA,EAAM,oBAAoB;EAC1B,kBAAA;AAAA;;;;;;UAQe,qBAAA,SAA8B,2BAAA;EAS7C;EAPA,YAAA,EAAc,GAAA;EACd,UAAA;EAQA;EANA,QAAA;EAQA;EANA,QAAA;EAQY;EANZ,aAAA;EACA,MAAA,EAAQ,sBAAA;EACR,QAAA,EAAU,uBAAA;;EAEV,YAAA;EAUI;EARJ,YAAA;AAAA;;;;AAS+B;KAFrB,uCAAA;EACN,IAAA;EAAoB,UAAA,EAAY,GAAG;AAAA;EACnC,IAAA;EAAiB,UAAA;AAAA;;;;UAKN,0CAAA;EACf,QAAA,EAAU,0BAAA;EACV,OAAA;EACA,MAAA,EAAQ,uCAAuC;AAAA;;;;;UAOhC,mCAAA;;EAEf,cAAA;EACA,UAAA,EAAY,0CAA0C;AAAA"}
@@ -11,14 +11,66 @@ type MobileNotificationPlatform = 'ios' | 'android';
11
11
  */
12
12
  type MobileNotificationCategory = 'order_fill' | 'order_update' | 'liquidation' | 'funding' | 'product_listing' | 'announcement';
13
13
  /**
14
- * Server-side public profile shape (snake_case). Name fields are `null` until the subaccount claims a
15
- * username.
14
+ * Server-side identity summary (snake_case): the read-time identity fields the backend attaches to a
15
+ * subaccount wherever it surfaces one alongside other data. Name fields are `null` until the subaccount
16
+ * claims a username, and a rename shows up on the next read without any change to the surrounding record.
17
+ */
18
+ interface MobileServerIdentitySummary {
19
+ subaccount: Hex;
20
+ username: string | null;
21
+ display_name: string | null;
22
+ /** Reserved for a future avatar source; `null` until one is implemented. */
23
+ avatar_url: string | null;
24
+ }
25
+ /**
26
+ * Server-side follow summary (snake_case), nested in a `profiles` entry when the `follow_summary` include is
27
+ * requested. `is_following` is the direct `view_as -> this profile` relationship; every `followed_by` entry
28
+ * satisfies both `view_as -> entry` and `entry -> this profile`, so each one is already familiar to the
29
+ * viewer and carries no `is_following` of its own.
30
+ */
31
+ interface MobileServerFollowSummary {
32
+ is_following: boolean;
33
+ /** Exact size of the two-edge intersection, independent of how many previews came back. */
34
+ followed_by_count: number;
35
+ /** Capped at `MOBILE_FOLLOWED_BY_PREVIEW_LIMIT` (2) by the backend; not client-configurable. */
36
+ followed_by: MobileServerIdentitySummary[];
37
+ }
38
+ /**
39
+ * Server-side public profile shape (snake_case), shared by the singular `profile` and batched `profiles`
40
+ * queries. Name fields are `null` until the subaccount claims a username; a subaccount with no identity row
41
+ * still yields an entry, with `null` names and `private_mode: false`.
42
+ *
43
+ * The three optional fields are omitted from the wire entirely unless the matching `profiles` include asked
44
+ * for them, which is why they are optional rather than nullable — absent means "not requested", not "none".
45
+ * The singular `profile` query never returns any of them.
16
46
  */
17
47
  interface MobileServerProfile {
18
48
  subaccount: Hex;
19
49
  username: string | null;
20
50
  display_name: string | null;
21
51
  private_mode: boolean;
52
+ /**
53
+ * Exact count at query time — the backend counts rather than reading a cached counter. Unnamed and private
54
+ * accounts are included: Private Mode hides activity, not relationships. Requires `follow_counts`.
55
+ */
56
+ follower_count?: number;
57
+ following_count?: number;
58
+ /** Requires the `follow_summary` include, and is relative to that include's `view_as`. */
59
+ follow_summary?: MobileServerFollowSummary;
60
+ }
61
+ /**
62
+ * Server-side row of a Followers or Following page (snake_case).
63
+ */
64
+ interface MobileServerFollowListAccount {
65
+ identity: MobileServerIdentitySummary;
66
+ /**
67
+ * The `view_as` Viewer's relationship to this account, not the listed relationship that put it in the
68
+ * page, so it is `false` on the Viewer's own row. Omitted entirely when the request named no `view_as`,
69
+ * rather than being sent as a misleading `false`.
70
+ */
71
+ is_following?: boolean;
72
+ /** The listed account's own follower count, exact at query time. */
73
+ follower_count: number;
22
74
  }
23
75
  /**
24
76
  * Direction of the position a feed trade resulted in — for `closed`, the direction that was closed. This is
@@ -71,14 +123,9 @@ interface MobileServerFeedMargin {
71
123
  * trader's current identity. Amounts are display-oriented human-unit JSON numbers — do not use them for
72
124
  * accounting, order construction, or exact threshold decisions.
73
125
  */
74
- interface MobileServerFeedTrade {
126
+ interface MobileServerFeedTrade extends MobileServerIdentitySummary {
75
127
  /** Order digest this row is keyed by; the stable id clients use to reconcile live pagination. */
76
128
  order_digest: Hex;
77
- subaccount: Hex;
78
- username: string | null;
79
- display_name: string | null;
80
- /** Reserved for a future avatar source; `null` until one is implemented. */
81
- avatar_url: string | null;
82
129
  product_id: number;
83
130
  /** Executed quantity in human units. */
84
131
  quantity: number;
@@ -122,5 +169,5 @@ interface MobileServerNotificationPreferences {
122
169
  categories: MobileServerNotificationCategoryPreference[];
123
170
  }
124
171
  //#endregion
125
- export { MobileFeedTradePosition as a, MobileNotificationCategory as c, MobileServerFeedTrade as d, MobileServerNotificationCategoryPreference as f, MobileServerProfile as h, MobileFeedMarginMode as i, MobileNotificationPlatform as l, MobileServerNotificationPreferences as m, MOBILE_FEED_TRADE_POSITION_DIRECTIONS as n, MobileFeedTradePositionDirection as o, MobileServerNotificationPreferenceScope as p, MOBILE_FEED_TRADE_POSITION_EFFECTS as r, MobileFeedTradePositionEffect as s, MOBILE_FEED_MARGIN_MODES as t, MobileServerFeedMargin as u };
126
- //# sourceMappingURL=serverModelTypes-CwgibK-l.d.cts.map
172
+ export { MobileServerNotificationPreferences as _, MobileFeedTradePosition as a, MobileNotificationCategory as c, MobileServerFeedTrade as d, MobileServerFollowListAccount as f, MobileServerNotificationPreferenceScope as g, MobileServerNotificationCategoryPreference as h, MobileFeedMarginMode as i, MobileNotificationPlatform as l, MobileServerIdentitySummary as m, MOBILE_FEED_TRADE_POSITION_DIRECTIONS as n, MobileFeedTradePositionDirection as o, MobileServerFollowSummary as p, MOBILE_FEED_TRADE_POSITION_EFFECTS as r, MobileFeedTradePositionEffect as s, MOBILE_FEED_MARGIN_MODES as t, MobileServerFeedMargin as u, MobileServerProfile as v };
173
+ //# sourceMappingURL=serverModelTypes-CUzqFA6x.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serverModelTypes-CUzqFA6x.d.cts","names":[],"sources":["../src/types/src/types/serverModelTypes.ts"],"mappings":";;;;;;AAMA;KAAY,0BAAA;;;AAA0B;KAK1B,0BAAA;;;;AAA0B;AAatC;UAAiB,2BAAA;EACf,UAAA,EAAY,GAAG;EACf,QAAA;EACA,YAAA;EAFY;EAIZ,UAAA;AAAA;;;AAAU;AASZ;;;UAAiB,yBAAA;EACf,YAAA;EAEA;EAAA,iBAAA;EAEa;EAAb,WAAA,EAAa,2BAA2B;AAAA;AAY1C;;;;;;;;;AAAA,UAAiB,mBAAA;EACf,UAAA,EAAY,GAAA;EACZ,QAAA;EACA,YAAA;EACA,YAAA;EAQ0C;AAM5C;;;EATE,cAAA;EACA,eAAA;EASU;EAPV,cAAA,GAAiB,yBAAyB;AAAA;;AAe5B;AAQhB;UAjBiB,6BAAA;EACf,QAAA,EAAU,2BAA2B;EAgBmB;AAAA;AAM1D;;;EAhBE,YAAA;EAmB8D;EAjB9D,cAAA;AAAA;;;AA6BQ;AAKV;;KA1BY,gCAAA,GAAmC,WAAW;;AA2Bd;AAM5C;;cA3Ba,qCAAA;;;;;cASA,kCAAA;;AAoB0B;AAOvC;KAhBY,6BAAA,WACF,kCAAkC;;;AAe0B;AAKtE;UAdiB,uBAAA;EACf,SAAA,EAAW,gCAAA;EACX,MAAA,EAAQ,6BAA6B;AAAA;AAmBvC;;;;AAAA,cAZa,wBAAA;;;;KAKD,oBAAA,WAA+B,wBAAwB;AAiBnE;;;;;AAAA,UAViB,sBAAA;EACf,IAAA,EAAM,oBAAoB;EAC1B,kBAAA;AAAA;;;;;;UAQe,qBAAA,SAA8B,2BAAA;EAS7C;EAPA,YAAA,EAAc,GAAA;EACd,UAAA;EAQA;EANA,QAAA;EAQA;EANA,QAAA;EAQY;EANZ,aAAA;EACA,MAAA,EAAQ,sBAAA;EACR,QAAA,EAAU,uBAAA;;EAEV,YAAA;EAUI;EARJ,YAAA;AAAA;;;;AAS+B;KAFrB,uCAAA;EACN,IAAA;EAAoB,UAAA,EAAY,GAAG;AAAA;EACnC,IAAA;EAAiB,UAAA;AAAA;;;;UAKN,0CAAA;EACf,QAAA,EAAU,0BAAA;EACV,OAAA;EACA,MAAA,EAAQ,uCAAuC;AAAA;;;;;UAOhC,mCAAA;;EAEf,cAAA;EACA,UAAA,EAAY,0CAA0C;AAAA"}
@@ -1,6 +1,6 @@
1
- import { d as MobileServerFeedTrade, h as MobileServerProfile, l as MobileNotificationPlatform, m as MobileServerNotificationPreferences } from "./serverModelTypes-CwgibK-l.cjs";
2
- import { a as MobileServerPublicQueryRequestType, i as MobileServerPublicQueryRequestByType } from "./serverRequestTypes-GAtVYIda.cjs";
3
- import { n as MobileServerSuccessResponse } from "./serverBaseTypes-C8KjE9Fm.cjs";
1
+ import { _ as MobileServerNotificationPreferences, d as MobileServerFeedTrade, f as MobileServerFollowListAccount, l as MobileNotificationPlatform, v as MobileServerProfile } from "./serverModelTypes-CDcRlRtw.js";
2
+ import { o as MobileServerPublicQueryRequestByType, s as MobileServerPublicQueryRequestType } from "./serverRequestTypes-Dv9NR-hQ.js";
3
+ import { n as MobileServerSuccessResponse } from "./serverBaseTypes-C2JGib--.js";
4
4
  import { Hex } from "viem";
5
5
 
6
6
  //#region src/types/serverQueryTypes.d.ts
@@ -18,10 +18,20 @@ interface MobileServerUsernameAvailabilityResponse {
18
18
  available: boolean;
19
19
  }
20
20
  /**
21
- * Payload of the `profile` public query success response.
21
+ * Payload of the `profiles` public query success response. One entry per requested subaccount, in the exact
22
+ * order they were requested, so callers can correlate positionally as well as by `subaccount`.
22
23
  */
23
- interface MobileServerProfileResponse {
24
- profile: MobileServerProfile;
24
+ interface MobileServerProfilesResponse {
25
+ profiles: MobileServerProfile[];
26
+ }
27
+ /**
28
+ * Payload of the `followers` and `following` public query success responses. Both list directions share one
29
+ * shape; only the relationship that selected the rows differs.
30
+ */
31
+ interface MobileServerFollowListResponse {
32
+ accounts: MobileServerFollowListAccount[];
33
+ /** `null` means the list is complete. */
34
+ next_cursor: string | null;
25
35
  }
26
36
  /**
27
37
  * Payload of the `feed` public query success response.
@@ -61,7 +71,9 @@ interface MobileServerRegisteredWalletResponse {
61
71
  */
62
72
  interface MobileServerPublicQueryResponseByType {
63
73
  username_availability: MobileServerUsernameAvailabilityResponse;
64
- profile: MobileServerProfileResponse;
74
+ profiles: MobileServerProfilesResponse;
75
+ followers: MobileServerFollowListResponse;
76
+ following: MobileServerFollowListResponse;
65
77
  feed: MobileServerFeedResponse;
66
78
  notification_preferences: MobileServerNotificationPreferencesResponse;
67
79
  registered_wallet: MobileServerRegisteredWalletResponse;
@@ -73,5 +85,5 @@ interface MobileServerPublicQueryResponseByType {
73
85
  */
74
86
  type MobileServerPublicQuerySuccessResponse<T extends MobileServerPublicQueryRequestType = MobileServerPublicQueryRequestType> = MobileServerSuccessResponse & MobileServerPublicQueryResponseByType[T];
75
87
  //#endregion
76
- export { MobileServerPublicQueryResponseByType as a, MobileServerUsernameAvailabilityResponse as c, MobileServerPublicQueryRequest as i, MobileServerNotificationPreferencesResponse as n, MobileServerPublicQuerySuccessResponse as o, MobileServerProfileResponse as r, MobileServerRegisteredWalletResponse as s, MobileServerFeedResponse as t };
77
- //# sourceMappingURL=serverQueryTypes-DwE1iJ9f.d.cts.map
88
+ export { MobileServerPublicQueryRequest as a, MobileServerRegisteredWalletResponse as c, MobileServerProfilesResponse as i, MobileServerUsernameAvailabilityResponse as l, MobileServerFollowListResponse as n, MobileServerPublicQueryResponseByType as o, MobileServerNotificationPreferencesResponse as r, MobileServerPublicQuerySuccessResponse as s, MobileServerFeedResponse as t };
89
+ //# sourceMappingURL=serverQueryTypes-B0xI1G39.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serverQueryTypes-B0xI1G39.d.ts","names":[],"sources":["../src/types/src/types/serverQueryTypes.ts"],"mappings":";;;;;;;;AAiBA;KAAY,8BAAA,WACA,kCAAA,GACR,kCAAA,YAEI,kCAAA;EACJ,IAAA,EAAM,CAAA;AAAA,IACJ,oCAAA,CAAqC,CAAA,IACzC,CAAA;;;;UAKe,wCAAA;EACf,QAAA;EACA,SAAS;AAAA;;;;;UAOM,4BAAA;EACf,QAAA,EAAU,mBAAmB;AAAA;;;;AAf5B;UAsBc,8BAAA;EACf,QAAA,EAAU,6BAA6B;;EAEvC,WAAA;AAAA;AAXF;;;AAAA,UAiBiB,wBAAA;EACf,MAAA,EAAQ,qBAAqB;EAVd;;;;;EAgBf,WAAA;AAAA;;AAbW;AAMb;UAaiB,2CAAA;EACf,WAAA,EAAa,mCAAmC;AAAA;;;;;UAOjC,oCAAA;EACf,MAAA,EAAQ,GAAA;EACR,QAAA,EAAU,0BAA0B;EACpC,MAAA;EACA,WAAA;EACA,wBAAA;EACA,YAAA;AAAA;;;;;;;UASe,qCAAA;EACf,qBAAA,EAAuB,wCAAA;EACvB,QAAA,EAAU,4BAAA;EACV,SAAA,EAAW,8BAAA;EACX,SAAA,EAAW,8BAAA;EACX,IAAA,EAAM,wBAAA;EACN,wBAAA,EAA0B,2CAAA;EAC1B,iBAAA,EAAmB,oCAAA;AAAA;;;;;;KAQT,sCAAA,WACA,kCAAA,GACR,kCAAA,IACA,2BAAA,GAA8B,qCAAA,CAAsC,CAAA"}