@nadohq/mobile-client 0.63.0 → 0.65.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 (177) hide show
  1. package/README.md +20 -2
  2. package/dist/{MobileClient-aDxiM_Kf.cjs → MobileClient-CfVZXTcz.cjs} +298 -1
  3. package/dist/MobileClient-CfVZXTcz.cjs.map +1 -0
  4. package/dist/MobileClient.cjs +1 -1
  5. package/dist/MobileClient.d.cts +173 -7
  6. package/dist/MobileClient.d.cts.map +1 -1
  7. package/dist/MobileClient.d.ts +173 -7
  8. package/dist/MobileClient.d.ts.map +1 -1
  9. package/dist/MobileClient.js +298 -1
  10. package/dist/MobileClient.js.map +1 -1
  11. package/dist/{MobileServerFailureError-Dd3c6P_Z.d.ts → MobileServerFailureError-BZVwlsMg.d.ts} +3 -3
  12. package/dist/{MobileServerFailureError-Dd3c6P_Z.d.ts.map → MobileServerFailureError-BZVwlsMg.d.ts.map} +1 -1
  13. package/dist/{MobileServerFailureError-Bpa_WA9f.d.cts → MobileServerFailureError-CbtK8kD4.d.cts} +3 -3
  14. package/dist/{MobileServerFailureError-Bpa_WA9f.d.cts.map → MobileServerFailureError-CbtK8kD4.d.cts.map} +1 -1
  15. package/dist/MobileUnsupportedFeedItemError-BsZvW8i2.d.cts +15 -0
  16. package/dist/MobileUnsupportedFeedItemError-BsZvW8i2.d.cts.map +1 -0
  17. package/dist/MobileUnsupportedFeedItemError-BsZvW8i2.d.ts +15 -0
  18. package/dist/MobileUnsupportedFeedItemError-BsZvW8i2.d.ts.map +1 -0
  19. package/dist/{buildSignedMobileRequest-NHbMAPzd.d.cts → buildSignedMobileRequest-C1v0flCR.d.cts} +2 -2
  20. package/dist/{buildSignedMobileRequest-NHbMAPzd.d.cts.map → buildSignedMobileRequest-C1v0flCR.d.cts.map} +1 -1
  21. package/dist/{buildSignedMobileRequest-Cb1T74xV.d.ts → buildSignedMobileRequest-UeeWdYGU.d.ts} +2 -2
  22. package/dist/{buildSignedMobileRequest-Cb1T74xV.d.ts.map → buildSignedMobileRequest-UeeWdYGU.d.ts.map} +1 -1
  23. package/dist/{canonicalize-BBYGh17w.d.ts → canonicalize-5eeZrkzQ.d.ts} +2 -2
  24. package/dist/canonicalize-5eeZrkzQ.d.ts.map +1 -0
  25. package/dist/{canonicalize-BF_SiNvO.d.cts → canonicalize-CBaZprTo.d.cts} +2 -2
  26. package/dist/canonicalize-CBaZprTo.d.cts.map +1 -0
  27. package/dist/{clientTypes-BWFKo9oE.d.cts → clientTypes-C9dJufxk.d.ts} +569 -25
  28. package/dist/clientTypes-C9dJufxk.d.ts.map +1 -0
  29. package/dist/{clientTypes-DCTiUV0H.d.ts → clientTypes-_mEgzmNs.d.cts} +569 -25
  30. package/dist/clientTypes-_mEgzmNs.d.cts.map +1 -0
  31. package/dist/dataMappers.cjs +488 -9
  32. package/dist/dataMappers.cjs.map +1 -1
  33. package/dist/dataMappers.d.cts +190 -7
  34. package/dist/dataMappers.d.cts.map +1 -1
  35. package/dist/dataMappers.d.ts +190 -7
  36. package/dist/dataMappers.d.ts.map +1 -1
  37. package/dist/dataMappers.js +460 -10
  38. package/dist/dataMappers.js.map +1 -1
  39. package/dist/{eip712MethodByType-BSx11xG-.d.cts → eip712MethodByType-D8jLoxDu.d.cts} +2 -2
  40. package/dist/eip712MethodByType-D8jLoxDu.d.cts.map +1 -0
  41. package/dist/{eip712MethodByType-DkiAjCLs.d.ts → eip712MethodByType-DcUh8h-l.d.ts} +2 -2
  42. package/dist/eip712MethodByType-DcUh8h-l.d.ts.map +1 -0
  43. package/dist/index.cjs +3 -1
  44. package/dist/index.d.cts +16 -15
  45. package/dist/index.d.ts +16 -15
  46. package/dist/index.js +2 -1
  47. package/dist/{mobileErrorCodes-3LtreeZM.d.ts → mobileErrorCodes-CmjYEIYm.d.cts} +18 -4
  48. package/dist/mobileErrorCodes-CmjYEIYm.d.cts.map +1 -0
  49. package/dist/{mobileErrorCodes-3LtreeZM.d.cts → mobileErrorCodes-CmjYEIYm.d.ts} +18 -4
  50. package/dist/mobileErrorCodes-CmjYEIYm.d.ts.map +1 -0
  51. package/dist/{payloadHash-BOWGjqdb.d.cts → payloadHash-DhHmgRqL.d.cts} +2 -2
  52. package/dist/payloadHash-DhHmgRqL.d.cts.map +1 -0
  53. package/dist/{payloadHash-Bzf4CtjV.d.ts → payloadHash-E1_8fpLW.d.ts} +2 -2
  54. package/dist/payloadHash-E1_8fpLW.d.ts.map +1 -0
  55. package/dist/{serverBaseTypes-KREDe2M9.d.cts → serverBaseTypes-B5J1_TyC.d.cts} +2 -2
  56. package/dist/{serverBaseTypes-KREDe2M9.d.cts.map → serverBaseTypes-B5J1_TyC.d.cts.map} +1 -1
  57. package/dist/{serverBaseTypes-DWf3iGWy.d.ts → serverBaseTypes-DnLzsdm-.d.ts} +2 -2
  58. package/dist/{serverBaseTypes-DWf3iGWy.d.ts.map → serverBaseTypes-DnLzsdm-.d.ts.map} +1 -1
  59. package/dist/serverExecuteTypes-B-OJok19.d.cts +162 -0
  60. package/dist/serverExecuteTypes-B-OJok19.d.cts.map +1 -0
  61. package/dist/serverExecuteTypes-BwWGspOg.d.ts +162 -0
  62. package/dist/serverExecuteTypes-BwWGspOg.d.ts.map +1 -0
  63. package/dist/{serverModelTypes-DAqEyYtB.d.cts → serverModelTypes-CiA-dy1R.d.cts} +299 -24
  64. package/dist/serverModelTypes-CiA-dy1R.d.cts.map +1 -0
  65. package/dist/{serverModelTypes-DAqEyYtB.d.ts → serverModelTypes-CiA-dy1R.d.ts} +299 -24
  66. package/dist/serverModelTypes-CiA-dy1R.d.ts.map +1 -0
  67. package/dist/{serverQueryTypes-DNdMpmDr.d.cts → serverQueryTypes-CJcjLB7n.d.ts} +117 -5
  68. package/dist/serverQueryTypes-CJcjLB7n.d.ts.map +1 -0
  69. package/dist/{serverQueryTypes-BFdwq0Z2.d.ts → serverQueryTypes-V1f9yE7L.d.cts} +117 -5
  70. package/dist/serverQueryTypes-V1f9yE7L.d.cts.map +1 -0
  71. package/dist/{serverRequestTypes-CxDRFKfv.d.cts → serverRequestTypes-CRlkNSu5.d.cts} +77 -7
  72. package/dist/serverRequestTypes-CRlkNSu5.d.cts.map +1 -0
  73. package/dist/{serverRequestTypes-BNA7FCY6.d.ts → serverRequestTypes-DZoOhV2o.d.ts} +77 -7
  74. package/dist/serverRequestTypes-DZoOhV2o.d.ts.map +1 -0
  75. package/dist/{serverResponseGuards-Dkdok0Sm.d.cts → serverResponseGuards-BW69PS7O.d.cts} +2 -2
  76. package/dist/{serverResponseGuards-Dkdok0Sm.d.cts.map → serverResponseGuards-BW69PS7O.d.cts.map} +1 -1
  77. package/dist/{serverResponseGuards-BU1Xv_tG.d.ts → serverResponseGuards-CShiXpHT.d.ts} +2 -2
  78. package/dist/{serverResponseGuards-BU1Xv_tG.d.ts.map → serverResponseGuards-CShiXpHT.d.ts.map} +1 -1
  79. package/dist/signing/buildSignedMobileRequest.d.cts +1 -1
  80. package/dist/signing/buildSignedMobileRequest.d.ts +1 -1
  81. package/dist/signing/canonicalize.cjs +37 -0
  82. package/dist/signing/canonicalize.cjs.map +1 -1
  83. package/dist/signing/canonicalize.d.cts +1 -1
  84. package/dist/signing/canonicalize.d.ts +1 -1
  85. package/dist/signing/canonicalize.js +37 -0
  86. package/dist/signing/canonicalize.js.map +1 -1
  87. package/dist/signing/eip712MethodByType.cjs +5 -0
  88. package/dist/signing/eip712MethodByType.cjs.map +1 -1
  89. package/dist/signing/eip712MethodByType.d.cts +1 -1
  90. package/dist/signing/eip712MethodByType.d.ts +1 -1
  91. package/dist/signing/eip712MethodByType.js +5 -0
  92. package/dist/signing/eip712MethodByType.js.map +1 -1
  93. package/dist/signing/index.d.cts +5 -5
  94. package/dist/signing/index.d.ts +5 -5
  95. package/dist/signing/payloadHash.d.cts +1 -1
  96. package/dist/signing/payloadHash.d.ts +1 -1
  97. package/dist/signing/types.d.cts +1 -1
  98. package/dist/signing/types.d.ts +1 -1
  99. package/dist/types/MobileServerFailureError.d.cts +1 -1
  100. package/dist/types/MobileServerFailureError.d.ts +1 -1
  101. package/dist/types/MobileUnsupportedFeedItemError.cjs +19 -0
  102. package/dist/types/MobileUnsupportedFeedItemError.cjs.map +1 -0
  103. package/dist/types/MobileUnsupportedFeedItemError.d.cts +2 -0
  104. package/dist/types/MobileUnsupportedFeedItemError.d.ts +2 -0
  105. package/dist/types/MobileUnsupportedFeedItemError.js +18 -0
  106. package/dist/types/MobileUnsupportedFeedItemError.js.map +1 -0
  107. package/dist/types/clientTypes.d.cts +2 -2
  108. package/dist/types/clientTypes.d.ts +2 -2
  109. package/dist/types/index.cjs +2 -0
  110. package/dist/types/index.d.cts +10 -9
  111. package/dist/types/index.d.ts +10 -9
  112. package/dist/types/index.js +2 -1
  113. package/dist/types/mobileErrorCodes.cjs +28 -0
  114. package/dist/types/mobileErrorCodes.cjs.map +1 -1
  115. package/dist/types/mobileErrorCodes.d.cts +1 -1
  116. package/dist/types/mobileErrorCodes.d.ts +1 -1
  117. package/dist/types/mobileErrorCodes.js +28 -0
  118. package/dist/types/mobileErrorCodes.js.map +1 -1
  119. package/dist/types/serverBaseTypes.d.cts +1 -1
  120. package/dist/types/serverBaseTypes.d.ts +1 -1
  121. package/dist/types/serverExecuteTypes.d.cts +2 -2
  122. package/dist/types/serverExecuteTypes.d.ts +2 -2
  123. package/dist/types/serverModelTypes.cjs.map +1 -1
  124. package/dist/types/serverModelTypes.d.cts +2 -2
  125. package/dist/types/serverModelTypes.d.ts +2 -2
  126. package/dist/types/serverModelTypes.js.map +1 -1
  127. package/dist/types/serverQueryTypes.d.cts +2 -2
  128. package/dist/types/serverQueryTypes.d.ts +2 -2
  129. package/dist/types/serverRequestTypes.d.cts +1 -1
  130. package/dist/types/serverRequestTypes.d.ts +1 -1
  131. package/dist/{types-BCr2G5gS.d.cts → types-BiRmH5Iv.d.cts} +31 -7
  132. package/dist/types-BiRmH5Iv.d.cts.map +1 -0
  133. package/dist/{types-C18k-9Vy.d.ts → types-DoJuq0Ij.d.ts} +31 -7
  134. package/dist/types-DoJuq0Ij.d.ts.map +1 -0
  135. package/dist/utils/index.d.cts +1 -1
  136. package/dist/utils/index.d.ts +1 -1
  137. package/dist/utils/serverResponseGuards.d.cts +1 -1
  138. package/dist/utils/serverResponseGuards.d.ts +1 -1
  139. package/package.json +3 -3
  140. package/src/MobileClient.ts +409 -4
  141. package/src/dataMappers.test.ts +742 -0
  142. package/src/dataMappers.ts +671 -12
  143. package/src/signing/canonicalize.ts +53 -0
  144. package/src/signing/eip712MethodByType.ts +5 -0
  145. package/src/signing/signing.test.ts +347 -0
  146. package/src/signing/types.ts +57 -4
  147. package/src/types/MobileUnsupportedFeedItemError.ts +18 -0
  148. package/src/types/clientTypes.ts +645 -23
  149. package/src/types/index.ts +1 -0
  150. package/src/types/mobileErrorCodes.ts +28 -0
  151. package/src/types/serverExecuteTypes.ts +92 -3
  152. package/src/types/serverModelTypes.ts +376 -22
  153. package/src/types/serverQueryTypes.ts +138 -0
  154. package/src/types/serverRequestTypes.ts +115 -4
  155. package/dist/MobileClient-aDxiM_Kf.cjs.map +0 -1
  156. package/dist/canonicalize-BBYGh17w.d.ts.map +0 -1
  157. package/dist/canonicalize-BF_SiNvO.d.cts.map +0 -1
  158. package/dist/clientTypes-BWFKo9oE.d.cts.map +0 -1
  159. package/dist/clientTypes-DCTiUV0H.d.ts.map +0 -1
  160. package/dist/eip712MethodByType-BSx11xG-.d.cts.map +0 -1
  161. package/dist/eip712MethodByType-DkiAjCLs.d.ts.map +0 -1
  162. package/dist/mobileErrorCodes-3LtreeZM.d.cts.map +0 -1
  163. package/dist/mobileErrorCodes-3LtreeZM.d.ts.map +0 -1
  164. package/dist/payloadHash-BOWGjqdb.d.cts.map +0 -1
  165. package/dist/payloadHash-Bzf4CtjV.d.ts.map +0 -1
  166. package/dist/serverExecuteTypes-DVRa6ifu.d.cts +0 -89
  167. package/dist/serverExecuteTypes-DVRa6ifu.d.cts.map +0 -1
  168. package/dist/serverExecuteTypes-DlYZCp1f.d.ts +0 -89
  169. package/dist/serverExecuteTypes-DlYZCp1f.d.ts.map +0 -1
  170. package/dist/serverModelTypes-DAqEyYtB.d.cts.map +0 -1
  171. package/dist/serverModelTypes-DAqEyYtB.d.ts.map +0 -1
  172. package/dist/serverQueryTypes-BFdwq0Z2.d.ts.map +0 -1
  173. package/dist/serverQueryTypes-DNdMpmDr.d.cts.map +0 -1
  174. package/dist/serverRequestTypes-BNA7FCY6.d.ts.map +0 -1
  175. package/dist/serverRequestTypes-CxDRFKfv.d.cts.map +0 -1
  176. package/dist/types-BCr2G5gS.d.cts.map +0 -1
  177. package/dist/types-C18k-9Vy.d.ts.map +0 -1
@@ -1,9 +1,9 @@
1
- import { B as MobileSetFollowBatchParams, D as MobileFollowMutationResult, E as MobileFollowListPage, F as MobilePublicProfile, H as MobileSetPrivateModeParams, I as MobileRegisterExpoTokenParams, L as MobileRegisteredWallet, M as MobileNotificationPreferences, N as MobileProfileSearchPage, R as MobileSetAvatarParams, S as MobileFeedPage, St as SearchMobileProfilesParams, U as MobileSetUsernameParams, V as MobileSetFollowParams, W as MobileSignedRequestParams, _ as MobileAvatarPreset, a as GetMobileFollowersParams, b as MobileCreateAvatarUploadParams, bt as MobileUsernameAvailability, c as GetMobileFriendsFeedParams, ct as MobileSocialFeedRankedPage, d as GetMobilePositionFeedParams, dt as MobileSocialFeedTopTradersPage, f as GetMobileProfileFeedParams, g as GetMobileUsernameAvailabilityParams, gt as MobileSocialFeedUpdates, h as GetMobileTopTradersFeedParams, it as MobileSocialFeedPage, l as GetMobileMarketFeedParams, m as GetMobileRegisteredWalletParams, n as GetMobileFeedParams, o as GetMobileFollowingParams, p as GetMobileProfilesParams, r as GetMobileFeedUpdatesParams, s as GetMobileForYouFeedParams, t as GetMobileFeedItemParams, tt as MobileSocialFeedItemResponse, u as GetMobileNotificationPreferencesParams, vt as MobileUnregisterExpoTokenParams, w as MobileFollowBatchResultItem, y as MobileAvatarUpload, yt as MobileUpdateNotificationPreferencesParams, z as MobileSetBioParams } from "./clientTypes-BWFKo9oE.cjs";
2
- import { a as MobileSignedRequest, i as MobileSignedInnerParams, n as MobileSignedInner, r as MobileSignedInnerByType } from "./types-BCr2G5gS.cjs";
3
- import { o as MobileServerPublicQueryRequestByType, s as MobileServerPublicQueryRequestType, t as MobileServerExecuteRequestType } from "./serverRequestTypes-CxDRFKfv.cjs";
4
- import { n as MobileServerSuccessResponse } from "./serverBaseTypes-KREDe2M9.cjs";
5
- import { a as MobileServerExecuteSuccessResponse, l as MobileServerPublicExecuteRequest } from "./serverExecuteTypes-DVRa6ifu.cjs";
6
- import { c as MobileServerPublicQuerySuccessResponse } from "./serverQueryTypes-DNdMpmDr.cjs";
1
+ import { $ as MobileSetFollowParams, At as MobileSocialFeedLikeResult, C as MobileAvatarPreset, D as MobileCreateFeedCommentParams, E as MobileCreateAvatarUploadParams, Et as MobileSocialFeedItem, F as MobileFollowListPage, G as MobilePublicProfile, Gt as MobileSocialFeedPresence, H as MobilePositionPresenceParams, Ht as MobileSocialFeedPositionResolutionResult, I as MobileFollowMutationResult, J as MobileRegisteredWallet, K as MobileRecordFeedViewsParams, N as MobileFollowBatchResultItem, O as MobileCreateFeedPostParams, Pt as MobileSocialFeedPage, Q as MobileSetFollowBatchParams, Qt as MobileSocialFeedTopTradersPage, Rt as MobileSocialFeedPositionChart, S as GetMobileUsernameAvailabilityParams, T as MobileAvatarUpload, U as MobileProfileSearchPage, Ut as MobileSocialFeedPositionsPage, V as MobileNotificationPreferences, X as MobileSetBioParams, Y as MobileSetAvatarParams, Z as MobileSetFeedLikeParams, _ as GetMobileProfileFeedParams, a as GetMobileFeedUpdatesParams, an as MobileSocialFeedUpdates, at as MobileSocialFeedActionResolutionResult, b as GetMobileSelfFeedPositionsParams, bt as MobileSocialFeedDrawingResult, c as GetMobileFollowingParams, cn as MobileSocialFeedWatchers, d as GetMobileMarketFeedParams, dn as MobileUsernameAvailability, et as MobileSetPrivateModeParams, f as GetMobileNotificationPreferencesParams, g as GetMobilePositionWatchersParams, h as GetMobilePositionHistoryParams, hn as SearchMobileProfilesParams, ht as MobileSocialFeedCommentsPage, i as GetMobileFeedParams, j as MobileFeedPage, k as MobileFeedChartDrawingParams, kt as MobileSocialFeedItemResponse, l as GetMobileForYouFeedParams, ln as MobileUnregisterExpoTokenParams, m as GetMobilePositionFeedParams, mn as ResolveMobileFeedPositionParams, mt as MobileSocialFeedCommentResult, n as GetMobileFeedCommentsParams, nt as MobileSignedRequestParams, p as GetMobilePositionChartParams, pn as ResolveMobileFeedActionParams, q as MobileRegisterExpoTokenParams, qt as MobileSocialFeedRankedPage, r as GetMobileFeedItemParams, s as GetMobileFollowersParams, sn as MobileSocialFeedViewsResult, t as GetMobileFeedChartDrawingParams, tt as MobileSetUsernameParams, u as GetMobileFriendsFeedParams, un as MobileUpdateNotificationPreferencesParams, v as GetMobileProfilesParams, x as GetMobileTopTradersFeedParams, y as GetMobileRegisteredWalletParams, yt as MobileSocialFeedDrawingMutationResult, zt as MobileSocialFeedPositionHistory } from "./clientTypes-_mEgzmNs.cjs";
2
+ import { a as MobileSignedRequest, i as MobileSignedInnerParams, n as MobileSignedInner, r as MobileSignedInnerByType } from "./types-BiRmH5Iv.cjs";
3
+ import { a as MobileServerPublicExecuteRequestType, i as MobileServerPublicExecuteRequestByType, o as MobileServerPublicQueryRequestByType, s as MobileServerPublicQueryRequestType, t as MobileServerExecuteRequestType } from "./serverRequestTypes-CRlkNSu5.cjs";
4
+ import { n as MobileServerSuccessResponse } from "./serverBaseTypes-B5J1_TyC.cjs";
5
+ import { a as MobileServerExecuteSuccessResponse, d as MobileServerPublicExecuteSuccessResponse } from "./serverExecuteTypes-B-OJok19.cjs";
6
+ import { c as MobileServerPublicQuerySuccessResponse } from "./serverQueryTypes-V1f9yE7L.cjs";
7
7
  import { WalletClientWithAccount } from "@nadohq/shared";
8
8
  import { AxiosInstance } from "axios";
9
9
 
@@ -128,6 +128,7 @@ declare class MobileClient {
128
128
  * @param params - Filters, pagination, optional viewing account, and browser credential; no signing identity.
129
129
  * @returns A fixed-session page with its ranking version and new-content watermark.
130
130
  * @throws {MobileServerFailureError} On invalid parameters, session mismatch/expiry, or unavailable data.
131
+ * @throws {MobileUnsupportedFeedItemError} If the service returns an unsupported item kind.
131
132
  */
132
133
  getForYouFeed(params?: GetMobileForYouFeedParams): Promise<MobileSocialFeedRankedPage>;
133
134
  /**
@@ -136,6 +137,7 @@ declare class MobileClient {
136
137
  * @param params - Filters, pagination, optional viewing account, and browser credential.
137
138
  * @returns A page with its qualification cohort; an unavailable cohort fails instead of returning an empty ranking.
138
139
  * @throws {MobileServerFailureError} On request/session errors or unavailable cohort data.
140
+ * @throws {MobileUnsupportedFeedItemError} If the service returns an unsupported item kind.
139
141
  */
140
142
  getTopTradersFeed(params?: GetMobileTopTradersFeedParams): Promise<MobileSocialFeedTopTradersPage>;
141
143
  /**
@@ -143,6 +145,7 @@ declare class MobileClient {
143
145
  * @param params - Required viewing account on every request, filters, pagination, and browser credential.
144
146
  * @returns A chronological Friends page and reading session.
145
147
  * @throws {MobileServerFailureError} On invalid viewing account, session errors, or feed query failure.
148
+ * @throws {MobileUnsupportedFeedItemError} If the service returns an unsupported item kind.
146
149
  */
147
150
  getFriendsFeed(params: GetMobileFriendsFeedParams): Promise<MobileSocialFeedRankedPage>;
148
151
  /**
@@ -150,6 +153,7 @@ declare class MobileClient {
150
153
  * @param params - Target identity, filters, pagination, and optional public viewing account.
151
154
  * @returns An author page without main-feed ranking or cohort fields.
152
155
  * @throws {MobileServerFailureError} On invalid parameters, session errors, or inaccessible content.
156
+ * @throws {MobileUnsupportedFeedItemError} If the service returns an unsupported item kind.
153
157
  */
154
158
  getProfileFeed(params: GetMobileProfileFeedParams): Promise<MobileSocialFeedPage>;
155
159
  /**
@@ -157,6 +161,7 @@ declare class MobileClient {
157
161
  * @param params - Product ID, content/size filters, pagination, and public viewing account.
158
162
  * @returns A market page without main-feed ranking fields.
159
163
  * @throws {MobileServerFailureError} On an unknown market, session errors, or unavailable data.
164
+ * @throws {MobileUnsupportedFeedItemError} If the service returns an unsupported item kind.
160
165
  */
161
166
  getMarketFeed(params: GetMobileMarketFeedParams): Promise<MobileSocialFeedPage>;
162
167
  /**
@@ -165,6 +170,7 @@ declare class MobileClient {
165
170
  * @param params - Position UUID, filters, pagination, and public viewing account.
166
171
  * @returns A fixed-session position feed page.
167
172
  * @throws {MobileServerFailureError} On inaccessible content, session errors, or unavailable data.
173
+ * @throws {MobileUnsupportedFeedItemError} If the service returns an unsupported item kind.
168
174
  */
169
175
  getPositionFeed(params: GetMobilePositionFeedParams): Promise<MobileSocialFeedPage>;
170
176
  /**
@@ -173,6 +179,7 @@ declare class MobileClient {
173
179
  * @param params - Item UUID, preview limit, and optional existing session/read identity.
174
180
  * @returns The complete item and authorized reading session.
175
181
  * @throws {MobileServerFailureError} On inaccessible content or session mismatch/expiry.
182
+ * @throws {MobileUnsupportedFeedItemError} If the service returns an unsupported item kind.
176
183
  */
177
184
  getFeedItem(params: GetMobileFeedItemParams): Promise<MobileSocialFeedItemResponse>;
178
185
  /**
@@ -207,6 +214,78 @@ declare class MobileClient {
207
214
  * distinguish those cases.
208
215
  */
209
216
  getRegisteredWallet(params: GetMobileRegisteredWalletParams): Promise<MobileRegisteredWallet>;
217
+ /**
218
+ * Lists a selected account's current positions without signing or authenticating ownership.
219
+ * Publication and attachment eligibility are hints that the service rechecks on writes.
220
+ * @param params - Viewing subaccount, optional market filter, page size, and opaque cursor.
221
+ * @returns Current position candidates, their eligibility hints, the next cursor, and observation time.
222
+ * @throws {MobileServerFailureError} On invalid parameters, an unsupported viewing account, or unavailable
223
+ * position data. An account with no open positions returns an empty page instead of an error.
224
+ */
225
+ getSelfFeedPositions(params: GetMobileSelfFeedPositionsParams): Promise<MobileSocialFeedPositionsPage>;
226
+ /**
227
+ * Resolves a slash command against a selected account without changing the caller's input.
228
+ * @param params - Viewing subaccount, original command text, and optional market disambiguation.
229
+ * @returns The resolution, nullable market, candidate positions, and reason for an empty result.
230
+ * @throws {MobileServerFailureError} On invalid parameters, an unsupported viewing account, or unavailable
231
+ * source data. Unknown markets and accounts without open positions are normal resolution results.
232
+ */
233
+ resolveFeedPosition(params: ResolveMobileFeedPositionParams): Promise<MobileSocialFeedPositionResolutionResult>;
234
+ /**
235
+ * Resolves every trusted lifecycle segment of an order without requiring a signature.
236
+ * @param params - Order-owning subaccount and order digest; selecting the account is not authentication.
237
+ * @returns Trusted action candidates and their observation time, or a pending result with no actions.
238
+ * @throws {MobileServerFailureError} On invalid parameters, an inaccessible order, or unavailable source
239
+ * data. Pending projection is a successful result, not a source failure.
240
+ */
241
+ resolveFeedAction(params: ResolveMobileFeedActionParams): Promise<MobileSocialFeedActionResolutionResult>;
242
+ /**
243
+ * Reads a drawing publicly without issuing a reading session. Supplied sessions retain their scope.
244
+ * @param params - Parent item, optional viewing account, and optional original session and viewer token.
245
+ * @returns The parent ID and version, with a nullable drawing whose data may legitimately be false or zero.
246
+ * @throws {MobileServerFailureError} On invalid parameters, session mismatch or expiry, unavailable data,
247
+ * or `SOCIAL_FEED_DRAWING_UNAVAILABLE` when the parent is inaccessible. A readable parent without a drawing
248
+ * returns null. Acquire a new reading session when the original has expired.
249
+ */
250
+ getFeedChartDrawing(params: GetMobileFeedChartDrawingParams): Promise<MobileSocialFeedDrawingResult>;
251
+ /**
252
+ * Reads a comment thread with an optional anchor and bidirectional pagination.
253
+ * Independent reads create a public-only session; reused sessions retain their original scope.
254
+ * @param params - Root item, optional anchor or cursor (mutually exclusive), page size, and read perspective.
255
+ * Paging requires the original session and viewer token.
256
+ * @returns Replies, total count, forward and backward cursors, the anchor, and the actual reading session.
257
+ * @throws {MobileServerFailureError} On invalid parameters, session mismatch or expiry, inaccessible content,
258
+ * or unavailable data. Restart pagination with a new session after expiry; do not reuse the old cursor.
259
+ */
260
+ getFeedComments(params: GetMobileFeedCommentsParams): Promise<MobileSocialFeedCommentsPage>;
261
+ /**
262
+ * Reads the full position lifecycle and creates or reuses a position session.
263
+ * Unlike getPositionFeed, this includes lifecycle actions as well as published takes.
264
+ * @param params - Position, optional takes-only filter, pagination, and read perspective. Paging requires
265
+ * the original position session and viewer token, not a feed session.
266
+ * @returns Position metrics, ordered action/take history, summary, trading hints, cursor, and reading session.
267
+ * @throws {MobileServerFailureError} On invalid parameters, session mismatch or expiry, inaccessible content,
268
+ * or unavailable source data. Restart with a new position session after expiry.
269
+ * @throws {MobileUnsupportedFeedItemError} If a timeline entry or take has an unsupported kind.
270
+ */
271
+ getPositionHistory(params: GetMobilePositionHistoryParams): Promise<MobileSocialFeedPositionHistory>;
272
+ /**
273
+ * Reads candles and action markers without creating a reading session.
274
+ * Preserve the original range, interval, and read perspective when paging with nextBeforeMs.
275
+ * @param params - Position, candle interval, half-open time range, pagination, and optional original session
276
+ * and viewer token. An independent read omits both session credentials.
277
+ * @returns Candles with decimal prices and x18 volume, action markers, a nullable liquidation line, and paging metadata.
278
+ * @throws {MobileServerFailureError} On invalid parameters, session mismatch or expiry, inaccessible content,
279
+ * or wholly unavailable chart sources. Partially available data is returned with its quality indicator.
280
+ */
281
+ getPositionChart(params: GetMobilePositionChartParams): Promise<MobileSocialFeedPositionChart>;
282
+ /**
283
+ * Reads active visitor counts and self-reported account previews without registering presence.
284
+ * @param params - Position and optional viewing account, used only for preview relationship information.
285
+ * @returns The visitor count, public account previews, and observation time; previews need not match the count.
286
+ * @throws {MobileServerFailureError} On invalid parameters, an unavailable position, or unavailable source data.
287
+ */
288
+ getPositionWatchers(params: GetMobilePositionWatchersParams): Promise<MobileSocialFeedWatchers>;
210
289
  /**
211
290
  * Unregisters an Expo push token, stopping delivery to that device. Unsigned, so it still works at logout
212
291
  * when a wallet signature may no longer be obtainable. Idempotent: unregistering an inactive or unknown
@@ -231,6 +310,26 @@ declare class MobileClient {
231
310
  * `INVALID_EXPO_TOKEN` if the token is malformed or is not currently registered to a wallet.
232
311
  */
233
312
  updateNotificationPreferences(params: MobileUpdateNotificationPreferencesParams): Promise<MobileServerSuccessResponse>;
313
+ /**
314
+ * Reports qualified exposures without signing. Ordinary reads and root previews do not count as exposures.
315
+ * The caller must satisfy the session's viewTracking requirements before reporting an item.
316
+ * @param params - Original reading session and viewer token, plus one to fifty fully delivered, readable,
317
+ * interactive item IDs. The service deduplicates repeated exposures.
318
+ * @returns Separate lists of newly accepted and already-counted item IDs.
319
+ * @throws {MobileServerFailureError} On invalid parameters, session mismatch or expiry, or any ineligible item.
320
+ * A rejected batch is not partially counted. Acquire a new session after expiry and re-evaluate exposure eligibility.
321
+ */
322
+ recordFeedViews(params: MobileRecordFeedViewsParams): Promise<MobileSocialFeedViewsResult>;
323
+ /**
324
+ * Registers, renews, or leaves a page lease without signing or authenticating the displayed account.
325
+ * Omitting watcherSubaccount preserves its value; null clears it. This operation does not record item views.
326
+ * @param params - Authorized position, original session and viewer token, page-scoped viewSessionId,
327
+ * lease state, and optional self-reported display account. Retain viewSessionId for the lifetime of the page.
328
+ * @returns Visitor count, public previews, recommended heartbeat interval, and remaining lease lifetime.
329
+ * @throws {MobileServerFailureError} On invalid parameters, session mismatch or expiry, or an inaccessible
330
+ * position. Rejected requests leave leases unchanged; acquire a new reading session after expiry.
331
+ */
332
+ setPositionPresence(params: MobilePositionPresenceParams): Promise<MobileSocialFeedPresence>;
234
333
  /**
235
334
  * Updates the biography, or clears it when the text is whitespace-only.
236
335
  *
@@ -322,11 +421,78 @@ declare class MobileClient {
322
421
  * is isolated. Either rejects the whole batch before any write, so do not retry it unchanged.
323
422
  */
324
423
  setFollowBatch(params: MobileSetFollowBatchParams): Promise<MobileFollowBatchResultItem[]>;
424
+ /**
425
+ * Publishes text, a drawing, or both atomically using the signed author identity.
426
+ * For an idempotent retry, reuse clientRequestId and the exact original content with a valid signature.
427
+ * The SDK does not trim text or reformat the signed drawing JSON.
428
+ * @param params - Author subaccount and signing options, request UUID, owned position, original text and
429
+ * mentions, plus an optional trusted action and original drawing JSON.
430
+ * @returns The published item, including authoritative interaction state and any drawing or comment preview.
431
+ * @throws {WalletNotProvidedError} If neither a linked signer nor a default wallet is configured.
432
+ * @throws {MobileServerFailureError} On authentication, ownership, eligibility, content, mention, or drawing
433
+ * errors, or `SOCIAL_FEED_REQUEST_CONFLICT` when a request UUID is reused with different content. Do not
434
+ * change an earlier request to retry it; use a new UUID for a genuinely new publication.
435
+ * @throws {MobileUnsupportedFeedItemError} If the service returns an unsupported item kind.
436
+ */
437
+ createFeedPost(params: MobileCreateFeedPostParams): Promise<MobileSocialFeedItem>;
438
+ /**
439
+ * First attaches a drawing to an owned post or trade card while the author still holds its position.
440
+ * The original JSON is signed unchanged; false and zero are valid drawing documents.
441
+ * For an exact retry after a timeout, generate a nonce up front with {@link getMobileNonce} and reuse
442
+ * that nonce and the original JSON before its receive deadline. A fresh nonce is not an exact replay.
443
+ * If a retry returns `SOCIAL_FEED_DRAWING_EXISTS`, use {@link getFeedChartDrawing} to confirm that the
444
+ * stored data matches the intended drawing before treating the original create as successful.
445
+ * @param params - Author subaccount and signing options, parent item, and complete original drawing JSON.
446
+ * @returns The parent ID and updated version together with the stored drawing.
447
+ * @throws {WalletNotProvidedError} If neither a linked signer nor a default wallet is configured.
448
+ * @throws {MobileServerFailureError} On authentication, ownership, eligibility, or invalid/oversized drawing
449
+ * errors, an unavailable parent, or `SOCIAL_FEED_DRAWING_EXISTS` for a conflicting existing drawing.
450
+ * Read the existing drawing and use updateFeedChartDrawing when replacement is intended.
451
+ */
452
+ createFeedChartDrawing(params: MobileFeedChartDrawingParams): Promise<MobileSocialFeedDrawingMutationResult>;
453
+ /**
454
+ * Replaces an existing drawing, including after the associated position has closed.
455
+ * Serialize writes per item and preserve the original JSON text when retrying.
456
+ * @param params - Author subaccount and signing options, parent item, and complete replacement JSON.
457
+ * @returns The parent ID and updated version together with the stored replacement drawing.
458
+ * @throws {WalletNotProvidedError} If neither a linked signer nor a default wallet is configured.
459
+ * @throws {MobileServerFailureError} On authentication, ownership, or invalid/oversized drawing errors, an
460
+ * unavailable parent or drawing, or `STALE_SOCIAL_FEED_DRAWING_UPDATE`. Re-read the drawing before retrying
461
+ * a stale or conflicting update instead of blindly replacing newer content.
462
+ */
463
+ updateFeedChartDrawing(params: MobileFeedChartDrawingParams): Promise<MobileSocialFeedDrawingMutationResult>;
464
+ /**
465
+ * Publishes a comment or reply atomically; an invalid position attachment rejects the entire request.
466
+ * For an idempotent retry, reuse clientRequestId and the unmodified text, mentions, and attachment.
467
+ * @param params - Author subaccount and signing options, request UUID, root item, original nonblank text
468
+ * and mentions, plus an optional reply target in the same thread and currently owned position attachment.
469
+ * @returns The created reply and authoritative root comment count; this write does not create a reading session.
470
+ * @throws {WalletNotProvidedError} If neither a linked signer nor a default wallet is configured.
471
+ * @throws {MobileServerFailureError} On authentication, inaccessible content, invalid text/mentions/reply
472
+ * relationships, an ineligible attachment, or `SOCIAL_FEED_REQUEST_CONFLICT`. Correct invalid input before
473
+ * a new submission, and never reuse an existing request UUID with different content.
474
+ */
475
+ createFeedComment(params: MobileCreateFeedCommentParams): Promise<MobileSocialFeedCommentResult>;
476
+ /**
477
+ * Sets or clears a signed user's like without requiring an open position.
478
+ * Serialize mutations per item and author. Retrying the same isLiked state with a fresh nonce is safe
479
+ * when no newer change intervenes; an unchanged state does not increment the count or version again.
480
+ * Pass the original nonce on a retry before its deadline to avoid overwriting a newer change from
481
+ * another device. Re-read the current state if that retry conflicts.
482
+ * @param params - Acting subaccount and signing options, interactive item, and desired like state.
483
+ * @returns The applied like state, authoritative count, and item version after the mutation.
484
+ * @throws {WalletNotProvidedError} If neither a linked signer nor a default wallet is configured.
485
+ * @throws {MobileServerFailureError} On authentication errors, inaccessible or non-interactive content,
486
+ * or `STALE_SOCIAL_FEED_LIKE_UPDATE`. Re-read the current state before submitting a new mutation after a conflict.
487
+ */
488
+ setFeedLike(params: MobileSetFeedLikeParams): Promise<MobileSocialFeedLikeResult>;
325
489
  protected getSignedRequest<T extends MobileSignedInner['type']>(type: T, params: MobileSignedRequestParams, innerParams: MobileSignedInnerParams<T>): Promise<MobileSignedRequest<MobileSignedInnerByType<T>>>;
326
490
  protected publicQuery<T extends MobileServerPublicQueryRequestType>(body: {
327
491
  type: T;
328
492
  } & MobileServerPublicQueryRequestByType[T]): Promise<MobileServerPublicQuerySuccessResponse<T>>;
329
- protected publicExecute(body: MobileServerPublicExecuteRequest): Promise<MobileServerSuccessResponse>;
493
+ protected publicExecute<T extends MobileServerPublicExecuteRequestType>(body: {
494
+ type: T;
495
+ } & MobileServerPublicExecuteRequestByType[T]): Promise<MobileServerPublicExecuteSuccessResponse<T>>;
330
496
  protected execute<T extends MobileServerExecuteRequestType>(body: MobileSignedRequest & {
331
497
  type: T;
332
498
  }): Promise<MobileServerExecuteSuccessResponse<T>>;
@@ -1 +1 @@
1
- {"version":3,"file":"MobileClient.d.cts","names":[],"sources":["../src/src/MobileClient.ts"],"mappings":";;;;;;;;;;;;;UA2GiB,gBAAA;EAAgB;;;EAI/B,GAAA;EAIA;;;EAAA,YAAA,GAAe,uBAAA;EAQf;;AAAU;EAJV,wBAAA,GAA2B,uBAAuB;EAY3B;;;EARvB,UAAA;AAAA;;;;;;cAQW,YAAA;EAAA,SACF,IAAA,EAAM,gBAAA;EAAA,SACN,aAAA,EAAe,aAAA;cAEZ,IAAA,EAAM,gBAAA;EAiGR;;;;;EAlFH,eAAA,CACL,wBAAA,EAA0B,uBAAA;EA2HlB;;;;;EA7GJ,gBAAA,CAAA,GAAoB,OAAA,CAAQ,kBAAA;EAuJxB;;;EA5IJ,uBAAA,CACJ,MAAA,EAAQ,mCAAA,GACP,OAAA,CAAQ,0BAAA;EA+JA;;;;;;;;;;;;;;EAxIL,WAAA,CACJ,MAAA,EAAQ,uBAAA,GACP,OAAA,CAAQ,mBAAA;EAyOA;;;;;;;;;;;;;;;;EA7ML,cAAA,CACJ,MAAA,EAAQ,0BAAA,GACP,OAAA,CAAQ,uBAAA;EAyVD;;;;;;;;;;;;;;;EAjUJ,YAAA,CACJ,MAAA,EAAQ,wBAAA,GACP,OAAA,CAAQ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,6BAAA,GACP,OAAA,CAAQ,6BAAA;;;;;;;;;;;;;EAwBL,WAAA,CACJ,MAAA,EAAQ,uBAAA,GACP,OAAA,CAAQ,0BAAA;EAAA,UAcK,gBAAA,WAA2B,iBAAA,SAAA,CACzC,IAAA,EAAM,CAAA,EACN,MAAA,EAAQ,yBAAA,EACR,WAAA,EAAa,uBAAA,CAAwB,CAAA,IACpC,OAAA,CAAQ,mBAAA,CAAoB,uBAAA,CAAwB,CAAA;EAAA,UAkBvC,WAAA,WAAsB,kCAAA,CAAA,CACpC,IAAA;IAAQ,IAAA,EAAM,CAAA;EAAA,IAAM,oCAAA,CAAqC,CAAA,IACxD,OAAA,CAAQ,sCAAA,CAAuC,CAAA;EAAA,UAalC,aAAA,WAAwB,oCAAA,CAAA,CACtC,IAAA;IAAQ,IAAA,EAAM,CAAA;EAAA,IAAM,sCAAA,CAAuC,CAAA,IAC1D,OAAA,CAAQ,wCAAA,CAAyC,CAAA;EAAA,UAepC,OAAA,WAAkB,8BAAA,CAAA,CAChC,IAAA,EAAM,mBAAA;IAAwB,IAAA,EAAM,CAAA;EAAA,IACnC,OAAA,CAAQ,kCAAA,CAAmC,CAAA;;;;;;UAkBtC,mBAAA;EAAA,QAYA,iBAAA;AAAA"}
@@ -1,9 +1,9 @@
1
- import { B as MobileSetFollowBatchParams, D as MobileFollowMutationResult, E as MobileFollowListPage, F as MobilePublicProfile, H as MobileSetPrivateModeParams, I as MobileRegisterExpoTokenParams, L as MobileRegisteredWallet, M as MobileNotificationPreferences, N as MobileProfileSearchPage, R as MobileSetAvatarParams, S as MobileFeedPage, St as SearchMobileProfilesParams, U as MobileSetUsernameParams, V as MobileSetFollowParams, W as MobileSignedRequestParams, _ as MobileAvatarPreset, a as GetMobileFollowersParams, b as MobileCreateAvatarUploadParams, bt as MobileUsernameAvailability, c as GetMobileFriendsFeedParams, ct as MobileSocialFeedRankedPage, d as GetMobilePositionFeedParams, dt as MobileSocialFeedTopTradersPage, f as GetMobileProfileFeedParams, g as GetMobileUsernameAvailabilityParams, gt as MobileSocialFeedUpdates, h as GetMobileTopTradersFeedParams, it as MobileSocialFeedPage, l as GetMobileMarketFeedParams, m as GetMobileRegisteredWalletParams, n as GetMobileFeedParams, o as GetMobileFollowingParams, p as GetMobileProfilesParams, r as GetMobileFeedUpdatesParams, s as GetMobileForYouFeedParams, t as GetMobileFeedItemParams, tt as MobileSocialFeedItemResponse, u as GetMobileNotificationPreferencesParams, vt as MobileUnregisterExpoTokenParams, w as MobileFollowBatchResultItem, y as MobileAvatarUpload, yt as MobileUpdateNotificationPreferencesParams, z as MobileSetBioParams } from "./clientTypes-DCTiUV0H.js";
2
- import { a as MobileSignedRequest, i as MobileSignedInnerParams, n as MobileSignedInner, r as MobileSignedInnerByType } from "./types-C18k-9Vy.js";
3
- import { o as MobileServerPublicQueryRequestByType, s as MobileServerPublicQueryRequestType, t as MobileServerExecuteRequestType } from "./serverRequestTypes-BNA7FCY6.js";
4
- import { n as MobileServerSuccessResponse } from "./serverBaseTypes-DWf3iGWy.js";
5
- import { a as MobileServerExecuteSuccessResponse, l as MobileServerPublicExecuteRequest } from "./serverExecuteTypes-DlYZCp1f.js";
6
- import { c as MobileServerPublicQuerySuccessResponse } from "./serverQueryTypes-BFdwq0Z2.js";
1
+ import { $ as MobileSetFollowParams, At as MobileSocialFeedLikeResult, C as MobileAvatarPreset, D as MobileCreateFeedCommentParams, E as MobileCreateAvatarUploadParams, Et as MobileSocialFeedItem, F as MobileFollowListPage, G as MobilePublicProfile, Gt as MobileSocialFeedPresence, H as MobilePositionPresenceParams, Ht as MobileSocialFeedPositionResolutionResult, I as MobileFollowMutationResult, J as MobileRegisteredWallet, K as MobileRecordFeedViewsParams, N as MobileFollowBatchResultItem, O as MobileCreateFeedPostParams, Pt as MobileSocialFeedPage, Q as MobileSetFollowBatchParams, Qt as MobileSocialFeedTopTradersPage, Rt as MobileSocialFeedPositionChart, S as GetMobileUsernameAvailabilityParams, T as MobileAvatarUpload, U as MobileProfileSearchPage, Ut as MobileSocialFeedPositionsPage, V as MobileNotificationPreferences, X as MobileSetBioParams, Y as MobileSetAvatarParams, Z as MobileSetFeedLikeParams, _ as GetMobileProfileFeedParams, a as GetMobileFeedUpdatesParams, an as MobileSocialFeedUpdates, at as MobileSocialFeedActionResolutionResult, b as GetMobileSelfFeedPositionsParams, bt as MobileSocialFeedDrawingResult, c as GetMobileFollowingParams, cn as MobileSocialFeedWatchers, d as GetMobileMarketFeedParams, dn as MobileUsernameAvailability, et as MobileSetPrivateModeParams, f as GetMobileNotificationPreferencesParams, g as GetMobilePositionWatchersParams, h as GetMobilePositionHistoryParams, hn as SearchMobileProfilesParams, ht as MobileSocialFeedCommentsPage, i as GetMobileFeedParams, j as MobileFeedPage, k as MobileFeedChartDrawingParams, kt as MobileSocialFeedItemResponse, l as GetMobileForYouFeedParams, ln as MobileUnregisterExpoTokenParams, m as GetMobilePositionFeedParams, mn as ResolveMobileFeedPositionParams, mt as MobileSocialFeedCommentResult, n as GetMobileFeedCommentsParams, nt as MobileSignedRequestParams, p as GetMobilePositionChartParams, pn as ResolveMobileFeedActionParams, q as MobileRegisterExpoTokenParams, qt as MobileSocialFeedRankedPage, r as GetMobileFeedItemParams, s as GetMobileFollowersParams, sn as MobileSocialFeedViewsResult, t as GetMobileFeedChartDrawingParams, tt as MobileSetUsernameParams, u as GetMobileFriendsFeedParams, un as MobileUpdateNotificationPreferencesParams, v as GetMobileProfilesParams, x as GetMobileTopTradersFeedParams, y as GetMobileRegisteredWalletParams, yt as MobileSocialFeedDrawingMutationResult, zt as MobileSocialFeedPositionHistory } from "./clientTypes-C9dJufxk.js";
2
+ import { a as MobileSignedRequest, i as MobileSignedInnerParams, n as MobileSignedInner, r as MobileSignedInnerByType } from "./types-DoJuq0Ij.js";
3
+ import { a as MobileServerPublicExecuteRequestType, i as MobileServerPublicExecuteRequestByType, o as MobileServerPublicQueryRequestByType, s as MobileServerPublicQueryRequestType, t as MobileServerExecuteRequestType } from "./serverRequestTypes-DZoOhV2o.js";
4
+ import { n as MobileServerSuccessResponse } from "./serverBaseTypes-DnLzsdm-.js";
5
+ import { a as MobileServerExecuteSuccessResponse, d as MobileServerPublicExecuteSuccessResponse } from "./serverExecuteTypes-BwWGspOg.js";
6
+ import { c as MobileServerPublicQuerySuccessResponse } from "./serverQueryTypes-CJcjLB7n.js";
7
7
  import { WalletClientWithAccount } from "@nadohq/shared";
8
8
  import { AxiosInstance } from "axios";
9
9
 
@@ -128,6 +128,7 @@ declare class MobileClient {
128
128
  * @param params - Filters, pagination, optional viewing account, and browser credential; no signing identity.
129
129
  * @returns A fixed-session page with its ranking version and new-content watermark.
130
130
  * @throws {MobileServerFailureError} On invalid parameters, session mismatch/expiry, or unavailable data.
131
+ * @throws {MobileUnsupportedFeedItemError} If the service returns an unsupported item kind.
131
132
  */
132
133
  getForYouFeed(params?: GetMobileForYouFeedParams): Promise<MobileSocialFeedRankedPage>;
133
134
  /**
@@ -136,6 +137,7 @@ declare class MobileClient {
136
137
  * @param params - Filters, pagination, optional viewing account, and browser credential.
137
138
  * @returns A page with its qualification cohort; an unavailable cohort fails instead of returning an empty ranking.
138
139
  * @throws {MobileServerFailureError} On request/session errors or unavailable cohort data.
140
+ * @throws {MobileUnsupportedFeedItemError} If the service returns an unsupported item kind.
139
141
  */
140
142
  getTopTradersFeed(params?: GetMobileTopTradersFeedParams): Promise<MobileSocialFeedTopTradersPage>;
141
143
  /**
@@ -143,6 +145,7 @@ declare class MobileClient {
143
145
  * @param params - Required viewing account on every request, filters, pagination, and browser credential.
144
146
  * @returns A chronological Friends page and reading session.
145
147
  * @throws {MobileServerFailureError} On invalid viewing account, session errors, or feed query failure.
148
+ * @throws {MobileUnsupportedFeedItemError} If the service returns an unsupported item kind.
146
149
  */
147
150
  getFriendsFeed(params: GetMobileFriendsFeedParams): Promise<MobileSocialFeedRankedPage>;
148
151
  /**
@@ -150,6 +153,7 @@ declare class MobileClient {
150
153
  * @param params - Target identity, filters, pagination, and optional public viewing account.
151
154
  * @returns An author page without main-feed ranking or cohort fields.
152
155
  * @throws {MobileServerFailureError} On invalid parameters, session errors, or inaccessible content.
156
+ * @throws {MobileUnsupportedFeedItemError} If the service returns an unsupported item kind.
153
157
  */
154
158
  getProfileFeed(params: GetMobileProfileFeedParams): Promise<MobileSocialFeedPage>;
155
159
  /**
@@ -157,6 +161,7 @@ declare class MobileClient {
157
161
  * @param params - Product ID, content/size filters, pagination, and public viewing account.
158
162
  * @returns A market page without main-feed ranking fields.
159
163
  * @throws {MobileServerFailureError} On an unknown market, session errors, or unavailable data.
164
+ * @throws {MobileUnsupportedFeedItemError} If the service returns an unsupported item kind.
160
165
  */
161
166
  getMarketFeed(params: GetMobileMarketFeedParams): Promise<MobileSocialFeedPage>;
162
167
  /**
@@ -165,6 +170,7 @@ declare class MobileClient {
165
170
  * @param params - Position UUID, filters, pagination, and public viewing account.
166
171
  * @returns A fixed-session position feed page.
167
172
  * @throws {MobileServerFailureError} On inaccessible content, session errors, or unavailable data.
173
+ * @throws {MobileUnsupportedFeedItemError} If the service returns an unsupported item kind.
168
174
  */
169
175
  getPositionFeed(params: GetMobilePositionFeedParams): Promise<MobileSocialFeedPage>;
170
176
  /**
@@ -173,6 +179,7 @@ declare class MobileClient {
173
179
  * @param params - Item UUID, preview limit, and optional existing session/read identity.
174
180
  * @returns The complete item and authorized reading session.
175
181
  * @throws {MobileServerFailureError} On inaccessible content or session mismatch/expiry.
182
+ * @throws {MobileUnsupportedFeedItemError} If the service returns an unsupported item kind.
176
183
  */
177
184
  getFeedItem(params: GetMobileFeedItemParams): Promise<MobileSocialFeedItemResponse>;
178
185
  /**
@@ -207,6 +214,78 @@ declare class MobileClient {
207
214
  * distinguish those cases.
208
215
  */
209
216
  getRegisteredWallet(params: GetMobileRegisteredWalletParams): Promise<MobileRegisteredWallet>;
217
+ /**
218
+ * Lists a selected account's current positions without signing or authenticating ownership.
219
+ * Publication and attachment eligibility are hints that the service rechecks on writes.
220
+ * @param params - Viewing subaccount, optional market filter, page size, and opaque cursor.
221
+ * @returns Current position candidates, their eligibility hints, the next cursor, and observation time.
222
+ * @throws {MobileServerFailureError} On invalid parameters, an unsupported viewing account, or unavailable
223
+ * position data. An account with no open positions returns an empty page instead of an error.
224
+ */
225
+ getSelfFeedPositions(params: GetMobileSelfFeedPositionsParams): Promise<MobileSocialFeedPositionsPage>;
226
+ /**
227
+ * Resolves a slash command against a selected account without changing the caller's input.
228
+ * @param params - Viewing subaccount, original command text, and optional market disambiguation.
229
+ * @returns The resolution, nullable market, candidate positions, and reason for an empty result.
230
+ * @throws {MobileServerFailureError} On invalid parameters, an unsupported viewing account, or unavailable
231
+ * source data. Unknown markets and accounts without open positions are normal resolution results.
232
+ */
233
+ resolveFeedPosition(params: ResolveMobileFeedPositionParams): Promise<MobileSocialFeedPositionResolutionResult>;
234
+ /**
235
+ * Resolves every trusted lifecycle segment of an order without requiring a signature.
236
+ * @param params - Order-owning subaccount and order digest; selecting the account is not authentication.
237
+ * @returns Trusted action candidates and their observation time, or a pending result with no actions.
238
+ * @throws {MobileServerFailureError} On invalid parameters, an inaccessible order, or unavailable source
239
+ * data. Pending projection is a successful result, not a source failure.
240
+ */
241
+ resolveFeedAction(params: ResolveMobileFeedActionParams): Promise<MobileSocialFeedActionResolutionResult>;
242
+ /**
243
+ * Reads a drawing publicly without issuing a reading session. Supplied sessions retain their scope.
244
+ * @param params - Parent item, optional viewing account, and optional original session and viewer token.
245
+ * @returns The parent ID and version, with a nullable drawing whose data may legitimately be false or zero.
246
+ * @throws {MobileServerFailureError} On invalid parameters, session mismatch or expiry, unavailable data,
247
+ * or `SOCIAL_FEED_DRAWING_UNAVAILABLE` when the parent is inaccessible. A readable parent without a drawing
248
+ * returns null. Acquire a new reading session when the original has expired.
249
+ */
250
+ getFeedChartDrawing(params: GetMobileFeedChartDrawingParams): Promise<MobileSocialFeedDrawingResult>;
251
+ /**
252
+ * Reads a comment thread with an optional anchor and bidirectional pagination.
253
+ * Independent reads create a public-only session; reused sessions retain their original scope.
254
+ * @param params - Root item, optional anchor or cursor (mutually exclusive), page size, and read perspective.
255
+ * Paging requires the original session and viewer token.
256
+ * @returns Replies, total count, forward and backward cursors, the anchor, and the actual reading session.
257
+ * @throws {MobileServerFailureError} On invalid parameters, session mismatch or expiry, inaccessible content,
258
+ * or unavailable data. Restart pagination with a new session after expiry; do not reuse the old cursor.
259
+ */
260
+ getFeedComments(params: GetMobileFeedCommentsParams): Promise<MobileSocialFeedCommentsPage>;
261
+ /**
262
+ * Reads the full position lifecycle and creates or reuses a position session.
263
+ * Unlike getPositionFeed, this includes lifecycle actions as well as published takes.
264
+ * @param params - Position, optional takes-only filter, pagination, and read perspective. Paging requires
265
+ * the original position session and viewer token, not a feed session.
266
+ * @returns Position metrics, ordered action/take history, summary, trading hints, cursor, and reading session.
267
+ * @throws {MobileServerFailureError} On invalid parameters, session mismatch or expiry, inaccessible content,
268
+ * or unavailable source data. Restart with a new position session after expiry.
269
+ * @throws {MobileUnsupportedFeedItemError} If a timeline entry or take has an unsupported kind.
270
+ */
271
+ getPositionHistory(params: GetMobilePositionHistoryParams): Promise<MobileSocialFeedPositionHistory>;
272
+ /**
273
+ * Reads candles and action markers without creating a reading session.
274
+ * Preserve the original range, interval, and read perspective when paging with nextBeforeMs.
275
+ * @param params - Position, candle interval, half-open time range, pagination, and optional original session
276
+ * and viewer token. An independent read omits both session credentials.
277
+ * @returns Candles with decimal prices and x18 volume, action markers, a nullable liquidation line, and paging metadata.
278
+ * @throws {MobileServerFailureError} On invalid parameters, session mismatch or expiry, inaccessible content,
279
+ * or wholly unavailable chart sources. Partially available data is returned with its quality indicator.
280
+ */
281
+ getPositionChart(params: GetMobilePositionChartParams): Promise<MobileSocialFeedPositionChart>;
282
+ /**
283
+ * Reads active visitor counts and self-reported account previews without registering presence.
284
+ * @param params - Position and optional viewing account, used only for preview relationship information.
285
+ * @returns The visitor count, public account previews, and observation time; previews need not match the count.
286
+ * @throws {MobileServerFailureError} On invalid parameters, an unavailable position, or unavailable source data.
287
+ */
288
+ getPositionWatchers(params: GetMobilePositionWatchersParams): Promise<MobileSocialFeedWatchers>;
210
289
  /**
211
290
  * Unregisters an Expo push token, stopping delivery to that device. Unsigned, so it still works at logout
212
291
  * when a wallet signature may no longer be obtainable. Idempotent: unregistering an inactive or unknown
@@ -231,6 +310,26 @@ declare class MobileClient {
231
310
  * `INVALID_EXPO_TOKEN` if the token is malformed or is not currently registered to a wallet.
232
311
  */
233
312
  updateNotificationPreferences(params: MobileUpdateNotificationPreferencesParams): Promise<MobileServerSuccessResponse>;
313
+ /**
314
+ * Reports qualified exposures without signing. Ordinary reads and root previews do not count as exposures.
315
+ * The caller must satisfy the session's viewTracking requirements before reporting an item.
316
+ * @param params - Original reading session and viewer token, plus one to fifty fully delivered, readable,
317
+ * interactive item IDs. The service deduplicates repeated exposures.
318
+ * @returns Separate lists of newly accepted and already-counted item IDs.
319
+ * @throws {MobileServerFailureError} On invalid parameters, session mismatch or expiry, or any ineligible item.
320
+ * A rejected batch is not partially counted. Acquire a new session after expiry and re-evaluate exposure eligibility.
321
+ */
322
+ recordFeedViews(params: MobileRecordFeedViewsParams): Promise<MobileSocialFeedViewsResult>;
323
+ /**
324
+ * Registers, renews, or leaves a page lease without signing or authenticating the displayed account.
325
+ * Omitting watcherSubaccount preserves its value; null clears it. This operation does not record item views.
326
+ * @param params - Authorized position, original session and viewer token, page-scoped viewSessionId,
327
+ * lease state, and optional self-reported display account. Retain viewSessionId for the lifetime of the page.
328
+ * @returns Visitor count, public previews, recommended heartbeat interval, and remaining lease lifetime.
329
+ * @throws {MobileServerFailureError} On invalid parameters, session mismatch or expiry, or an inaccessible
330
+ * position. Rejected requests leave leases unchanged; acquire a new reading session after expiry.
331
+ */
332
+ setPositionPresence(params: MobilePositionPresenceParams): Promise<MobileSocialFeedPresence>;
234
333
  /**
235
334
  * Updates the biography, or clears it when the text is whitespace-only.
236
335
  *
@@ -322,11 +421,78 @@ declare class MobileClient {
322
421
  * is isolated. Either rejects the whole batch before any write, so do not retry it unchanged.
323
422
  */
324
423
  setFollowBatch(params: MobileSetFollowBatchParams): Promise<MobileFollowBatchResultItem[]>;
424
+ /**
425
+ * Publishes text, a drawing, or both atomically using the signed author identity.
426
+ * For an idempotent retry, reuse clientRequestId and the exact original content with a valid signature.
427
+ * The SDK does not trim text or reformat the signed drawing JSON.
428
+ * @param params - Author subaccount and signing options, request UUID, owned position, original text and
429
+ * mentions, plus an optional trusted action and original drawing JSON.
430
+ * @returns The published item, including authoritative interaction state and any drawing or comment preview.
431
+ * @throws {WalletNotProvidedError} If neither a linked signer nor a default wallet is configured.
432
+ * @throws {MobileServerFailureError} On authentication, ownership, eligibility, content, mention, or drawing
433
+ * errors, or `SOCIAL_FEED_REQUEST_CONFLICT` when a request UUID is reused with different content. Do not
434
+ * change an earlier request to retry it; use a new UUID for a genuinely new publication.
435
+ * @throws {MobileUnsupportedFeedItemError} If the service returns an unsupported item kind.
436
+ */
437
+ createFeedPost(params: MobileCreateFeedPostParams): Promise<MobileSocialFeedItem>;
438
+ /**
439
+ * First attaches a drawing to an owned post or trade card while the author still holds its position.
440
+ * The original JSON is signed unchanged; false and zero are valid drawing documents.
441
+ * For an exact retry after a timeout, generate a nonce up front with {@link getMobileNonce} and reuse
442
+ * that nonce and the original JSON before its receive deadline. A fresh nonce is not an exact replay.
443
+ * If a retry returns `SOCIAL_FEED_DRAWING_EXISTS`, use {@link getFeedChartDrawing} to confirm that the
444
+ * stored data matches the intended drawing before treating the original create as successful.
445
+ * @param params - Author subaccount and signing options, parent item, and complete original drawing JSON.
446
+ * @returns The parent ID and updated version together with the stored drawing.
447
+ * @throws {WalletNotProvidedError} If neither a linked signer nor a default wallet is configured.
448
+ * @throws {MobileServerFailureError} On authentication, ownership, eligibility, or invalid/oversized drawing
449
+ * errors, an unavailable parent, or `SOCIAL_FEED_DRAWING_EXISTS` for a conflicting existing drawing.
450
+ * Read the existing drawing and use updateFeedChartDrawing when replacement is intended.
451
+ */
452
+ createFeedChartDrawing(params: MobileFeedChartDrawingParams): Promise<MobileSocialFeedDrawingMutationResult>;
453
+ /**
454
+ * Replaces an existing drawing, including after the associated position has closed.
455
+ * Serialize writes per item and preserve the original JSON text when retrying.
456
+ * @param params - Author subaccount and signing options, parent item, and complete replacement JSON.
457
+ * @returns The parent ID and updated version together with the stored replacement drawing.
458
+ * @throws {WalletNotProvidedError} If neither a linked signer nor a default wallet is configured.
459
+ * @throws {MobileServerFailureError} On authentication, ownership, or invalid/oversized drawing errors, an
460
+ * unavailable parent or drawing, or `STALE_SOCIAL_FEED_DRAWING_UPDATE`. Re-read the drawing before retrying
461
+ * a stale or conflicting update instead of blindly replacing newer content.
462
+ */
463
+ updateFeedChartDrawing(params: MobileFeedChartDrawingParams): Promise<MobileSocialFeedDrawingMutationResult>;
464
+ /**
465
+ * Publishes a comment or reply atomically; an invalid position attachment rejects the entire request.
466
+ * For an idempotent retry, reuse clientRequestId and the unmodified text, mentions, and attachment.
467
+ * @param params - Author subaccount and signing options, request UUID, root item, original nonblank text
468
+ * and mentions, plus an optional reply target in the same thread and currently owned position attachment.
469
+ * @returns The created reply and authoritative root comment count; this write does not create a reading session.
470
+ * @throws {WalletNotProvidedError} If neither a linked signer nor a default wallet is configured.
471
+ * @throws {MobileServerFailureError} On authentication, inaccessible content, invalid text/mentions/reply
472
+ * relationships, an ineligible attachment, or `SOCIAL_FEED_REQUEST_CONFLICT`. Correct invalid input before
473
+ * a new submission, and never reuse an existing request UUID with different content.
474
+ */
475
+ createFeedComment(params: MobileCreateFeedCommentParams): Promise<MobileSocialFeedCommentResult>;
476
+ /**
477
+ * Sets or clears a signed user's like without requiring an open position.
478
+ * Serialize mutations per item and author. Retrying the same isLiked state with a fresh nonce is safe
479
+ * when no newer change intervenes; an unchanged state does not increment the count or version again.
480
+ * Pass the original nonce on a retry before its deadline to avoid overwriting a newer change from
481
+ * another device. Re-read the current state if that retry conflicts.
482
+ * @param params - Acting subaccount and signing options, interactive item, and desired like state.
483
+ * @returns The applied like state, authoritative count, and item version after the mutation.
484
+ * @throws {WalletNotProvidedError} If neither a linked signer nor a default wallet is configured.
485
+ * @throws {MobileServerFailureError} On authentication errors, inaccessible or non-interactive content,
486
+ * or `STALE_SOCIAL_FEED_LIKE_UPDATE`. Re-read the current state before submitting a new mutation after a conflict.
487
+ */
488
+ setFeedLike(params: MobileSetFeedLikeParams): Promise<MobileSocialFeedLikeResult>;
325
489
  protected getSignedRequest<T extends MobileSignedInner['type']>(type: T, params: MobileSignedRequestParams, innerParams: MobileSignedInnerParams<T>): Promise<MobileSignedRequest<MobileSignedInnerByType<T>>>;
326
490
  protected publicQuery<T extends MobileServerPublicQueryRequestType>(body: {
327
491
  type: T;
328
492
  } & MobileServerPublicQueryRequestByType[T]): Promise<MobileServerPublicQuerySuccessResponse<T>>;
329
- protected publicExecute(body: MobileServerPublicExecuteRequest): Promise<MobileServerSuccessResponse>;
493
+ protected publicExecute<T extends MobileServerPublicExecuteRequestType>(body: {
494
+ type: T;
495
+ } & MobileServerPublicExecuteRequestByType[T]): Promise<MobileServerPublicExecuteSuccessResponse<T>>;
330
496
  protected execute<T extends MobileServerExecuteRequestType>(body: MobileSignedRequest & {
331
497
  type: T;
332
498
  }): Promise<MobileServerExecuteSuccessResponse<T>>;
@@ -1 +1 @@
1
- {"version":3,"file":"MobileClient.d.ts","names":[],"sources":["../src/src/MobileClient.ts"],"mappings":";;;;;;;;;;;;;UA2GiB,gBAAA;EAAgB;;;EAI/B,GAAA;EAIA;;;EAAA,YAAA,GAAe,uBAAA;EAQf;;AAAU;EAJV,wBAAA,GAA2B,uBAAuB;EAY3B;;;EARvB,UAAA;AAAA;;;;;;cAQW,YAAA;EAAA,SACF,IAAA,EAAM,gBAAA;EAAA,SACN,aAAA,EAAe,aAAA;cAEZ,IAAA,EAAM,gBAAA;EAiGR;;;;;EAlFH,eAAA,CACL,wBAAA,EAA0B,uBAAA;EA2HlB;;;;;EA7GJ,gBAAA,CAAA,GAAoB,OAAA,CAAQ,kBAAA;EA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