@nadohq/mobile-client 0.66.0 → 0.67.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (156) hide show
  1. package/README.md +110 -17
  2. package/dist/{MobileClient-M4oC4lrX.cjs → MobileClient-vuI5wlB_.cjs} +69 -29
  3. package/dist/MobileClient-vuI5wlB_.cjs.map +1 -0
  4. package/dist/MobileClient.cjs +1 -1
  5. package/dist/MobileClient.d.cts +50 -25
  6. package/dist/MobileClient.d.cts.map +1 -1
  7. package/dist/MobileClient.d.ts +50 -25
  8. package/dist/MobileClient.d.ts.map +1 -1
  9. package/dist/MobileClient.js +69 -29
  10. package/dist/MobileClient.js.map +1 -1
  11. package/dist/{MobileServerFailureError-MtS2reel.d.cts → MobileServerFailureError-BeCCNShj.d.cts} +2 -2
  12. package/dist/{MobileServerFailureError-MtS2reel.d.cts.map → MobileServerFailureError-BeCCNShj.d.cts.map} +1 -1
  13. package/dist/{MobileServerFailureError-C9iqNsxI.d.ts → MobileServerFailureError-hHv28weI.d.ts} +2 -2
  14. package/dist/{MobileServerFailureError-C9iqNsxI.d.ts.map → MobileServerFailureError-hHv28weI.d.ts.map} +1 -1
  15. package/dist/{buildSignedMobileRequest-DyKCK34Y.d.cts → buildSignedMobileRequest-DcEMKU_4.d.cts} +2 -2
  16. package/dist/{buildSignedMobileRequest-DyKCK34Y.d.cts.map → buildSignedMobileRequest-DcEMKU_4.d.cts.map} +1 -1
  17. package/dist/{buildSignedMobileRequest-BR-KJhIF.d.ts → buildSignedMobileRequest-DlTMvoXR.d.ts} +2 -2
  18. package/dist/{buildSignedMobileRequest-BR-KJhIF.d.ts.map → buildSignedMobileRequest-DlTMvoXR.d.ts.map} +1 -1
  19. package/dist/{canonicalize-Bv6UIAbR.d.ts → canonicalize-BOZlflI3.d.ts} +2 -2
  20. package/dist/canonicalize-BOZlflI3.d.ts.map +1 -0
  21. package/dist/{canonicalize-CWh3XZzj.d.cts → canonicalize-BvCozzvJ.d.cts} +2 -2
  22. package/dist/canonicalize-BvCozzvJ.d.cts.map +1 -0
  23. package/dist/{clientTypes-DOpUcu80.d.cts → clientTypes-KpHlCDGZ.d.cts} +75 -49
  24. package/dist/clientTypes-KpHlCDGZ.d.cts.map +1 -0
  25. package/dist/{clientTypes-BUn5_OzK.d.ts → clientTypes-XRI41VdC.d.ts} +75 -49
  26. package/dist/clientTypes-XRI41VdC.d.ts.map +1 -0
  27. package/dist/dataMappers.cjs +56 -17
  28. package/dist/dataMappers.cjs.map +1 -1
  29. package/dist/dataMappers.d.cts +33 -13
  30. package/dist/dataMappers.d.cts.map +1 -1
  31. package/dist/dataMappers.d.ts +33 -13
  32. package/dist/dataMappers.d.ts.map +1 -1
  33. package/dist/dataMappers.js +53 -17
  34. package/dist/dataMappers.js.map +1 -1
  35. package/dist/{eip712MethodByType-CJ6BoayT.d.cts → eip712MethodByType-DyAmzH7b.d.cts} +2 -2
  36. package/dist/eip712MethodByType-DyAmzH7b.d.cts.map +1 -0
  37. package/dist/{eip712MethodByType-Dx4mvgni.d.ts → eip712MethodByType-qSSAF6i2.d.ts} +2 -2
  38. package/dist/eip712MethodByType-qSSAF6i2.d.ts.map +1 -0
  39. package/dist/feed-BrgkFqP3.d.cts +23 -0
  40. package/dist/feed-BrgkFqP3.d.cts.map +1 -0
  41. package/dist/feed-DcbhLoo1.d.ts +23 -0
  42. package/dist/feed-DcbhLoo1.d.ts.map +1 -0
  43. package/dist/index-BVVgDSdq.d.cts +1 -0
  44. package/dist/index-BVVgDSdq.d.ts +1 -0
  45. package/dist/index.cjs +2 -1
  46. package/dist/index.d.cts +13 -13
  47. package/dist/index.d.ts +13 -13
  48. package/dist/index.js +2 -2
  49. package/dist/{mobileErrorCodes-vD6rbFuF.d.ts → mobileErrorCodes-CdwX6QTO.d.cts} +3 -3
  50. package/dist/{mobileErrorCodes-vD6rbFuF.d.cts.map → mobileErrorCodes-CdwX6QTO.d.cts.map} +1 -1
  51. package/dist/{mobileErrorCodes-vD6rbFuF.d.cts → mobileErrorCodes-CdwX6QTO.d.ts} +3 -3
  52. package/dist/{mobileErrorCodes-vD6rbFuF.d.ts.map → mobileErrorCodes-CdwX6QTO.d.ts.map} +1 -1
  53. package/dist/{payloadHash-CdkF2Ocr.d.cts → payloadHash-BgGSZock.d.cts} +2 -2
  54. package/dist/payloadHash-BgGSZock.d.cts.map +1 -0
  55. package/dist/{payloadHash-HD29K77M.d.ts → payloadHash-Bi6upCLQ.d.ts} +2 -2
  56. package/dist/payloadHash-Bi6upCLQ.d.ts.map +1 -0
  57. package/dist/{serverExecuteTypes-5JyyIXRK.d.ts → serverExecuteTypes-DuCWe_H_.d.cts} +7 -14
  58. package/dist/{serverExecuteTypes-CHrQ9Rtq.d.cts.map → serverExecuteTypes-DuCWe_H_.d.cts.map} +1 -1
  59. package/dist/{serverExecuteTypes-CHrQ9Rtq.d.cts → serverExecuteTypes-usJ6HMJv.d.ts} +7 -14
  60. package/dist/{serverExecuteTypes-5JyyIXRK.d.ts.map → serverExecuteTypes-usJ6HMJv.d.ts.map} +1 -1
  61. package/dist/{serverModelTypes-CGUZCi0y.d.ts → serverModelTypes-CTHMNIQS.d.cts} +16 -14
  62. package/dist/serverModelTypes-CTHMNIQS.d.cts.map +1 -0
  63. package/dist/{serverModelTypes-CGUZCi0y.d.cts → serverModelTypes-CTHMNIQS.d.ts} +16 -14
  64. package/dist/serverModelTypes-CTHMNIQS.d.ts.map +1 -0
  65. package/dist/{serverResponseGuards-i1njcYKN.d.cts → serverResponseGuards-CzmldAad.d.cts} +2 -2
  66. package/dist/{serverResponseGuards-i1njcYKN.d.cts.map → serverResponseGuards-CzmldAad.d.cts.map} +1 -1
  67. package/dist/{serverResponseGuards-Bvw8ltYJ.d.ts → serverResponseGuards-Dvkbjp2_.d.ts} +2 -2
  68. package/dist/{serverResponseGuards-Bvw8ltYJ.d.ts.map → serverResponseGuards-Dvkbjp2_.d.ts.map} +1 -1
  69. package/dist/signing/buildSignedMobileRequest.d.cts +1 -1
  70. package/dist/signing/buildSignedMobileRequest.d.ts +1 -1
  71. package/dist/signing/canonicalize.cjs +4 -2
  72. package/dist/signing/canonicalize.cjs.map +1 -1
  73. package/dist/signing/canonicalize.d.cts +1 -1
  74. package/dist/signing/canonicalize.d.ts +1 -1
  75. package/dist/signing/canonicalize.js +4 -2
  76. package/dist/signing/canonicalize.js.map +1 -1
  77. package/dist/signing/eip712MethodByType.d.cts +1 -1
  78. package/dist/signing/eip712MethodByType.d.ts +1 -1
  79. package/dist/signing/index.d.cts +5 -5
  80. package/dist/signing/index.d.ts +5 -5
  81. package/dist/signing/payloadHash.d.cts +1 -1
  82. package/dist/signing/payloadHash.d.ts +1 -1
  83. package/dist/signing/types.d.cts +1 -1
  84. package/dist/signing/types.d.ts +1 -1
  85. package/dist/types/MobileServerFailureError.d.cts +1 -1
  86. package/dist/types/MobileServerFailureError.d.ts +1 -1
  87. package/dist/types/clientTypes.d.cts +2 -2
  88. package/dist/types/clientTypes.d.ts +2 -2
  89. package/dist/types/index.d.cts +7 -7
  90. package/dist/types/index.d.ts +7 -7
  91. package/dist/types/mobileErrorCodes.cjs +2 -2
  92. package/dist/types/mobileErrorCodes.cjs.map +1 -1
  93. package/dist/types/mobileErrorCodes.d.cts +1 -1
  94. package/dist/types/mobileErrorCodes.d.ts +1 -1
  95. package/dist/types/mobileErrorCodes.js +2 -2
  96. package/dist/types/mobileErrorCodes.js.map +1 -1
  97. package/dist/types/serverBaseTypes.d.cts +1 -1
  98. package/dist/types/serverBaseTypes.d.ts +1 -1
  99. package/dist/types/serverExecuteTypes.d.cts +2 -2
  100. package/dist/types/serverExecuteTypes.d.ts +2 -2
  101. package/dist/types/serverModelTypes.cjs.map +1 -1
  102. package/dist/types/serverModelTypes.d.cts +2 -2
  103. package/dist/types/serverModelTypes.d.ts +2 -2
  104. package/dist/types/serverModelTypes.js.map +1 -1
  105. package/dist/types/serverQueryTypes.d.cts +2 -2
  106. package/dist/types/serverQueryTypes.d.ts +2 -2
  107. package/dist/types/serverRequestTypes.d.cts +1 -1
  108. package/dist/types/serverRequestTypes.d.ts +1 -1
  109. package/dist/{types-C9YE4EIt.d.cts → types-CByl_NyJ.d.ts} +49 -18
  110. package/dist/types-CByl_NyJ.d.ts.map +1 -0
  111. package/dist/{types-Cwy1y_9x.d.ts → types-CR5iaKR4.d.cts} +49 -18
  112. package/dist/types-CR5iaKR4.d.cts.map +1 -0
  113. package/dist/utils/feed.cjs +9 -0
  114. package/dist/utils/feed.cjs.map +1 -1
  115. package/dist/utils/feed.d.cts +2 -2
  116. package/dist/utils/feed.d.ts +2 -2
  117. package/dist/utils/feed.js +9 -1
  118. package/dist/utils/feed.js.map +1 -1
  119. package/dist/utils/index.cjs +1 -0
  120. package/dist/utils/index.d.cts +3 -3
  121. package/dist/utils/index.d.ts +3 -3
  122. package/dist/utils/index.js +2 -2
  123. package/dist/utils/serverResponseGuards.d.cts +1 -1
  124. package/dist/utils/serverResponseGuards.d.ts +1 -1
  125. package/package.json +3 -3
  126. package/src/MobileClient.ts +82 -34
  127. package/src/dataMappers.test.ts +408 -9
  128. package/src/dataMappers.ts +76 -23
  129. package/src/signing/canonicalize.ts +6 -0
  130. package/src/signing/signing.test.ts +51 -0
  131. package/src/signing/types.ts +4 -0
  132. package/src/socialFeed.test.ts +53 -28
  133. package/src/types/clientTypes.ts +82 -47
  134. package/src/types/mobileErrorCodes.ts +2 -2
  135. package/src/types/serverExecuteTypes.ts +4 -12
  136. package/src/types/serverModelTypes.ts +19 -13
  137. package/src/types/serverQueryTypes.ts +32 -4
  138. package/src/types/serverRequestTypes.ts +20 -12
  139. package/src/utils/feed.ts +13 -0
  140. package/dist/MobileClient-M4oC4lrX.cjs.map +0 -1
  141. package/dist/canonicalize-Bv6UIAbR.d.ts.map +0 -1
  142. package/dist/canonicalize-CWh3XZzj.d.cts.map +0 -1
  143. package/dist/clientTypes-BUn5_OzK.d.ts.map +0 -1
  144. package/dist/clientTypes-DOpUcu80.d.cts.map +0 -1
  145. package/dist/eip712MethodByType-CJ6BoayT.d.cts.map +0 -1
  146. package/dist/eip712MethodByType-Dx4mvgni.d.ts.map +0 -1
  147. package/dist/feed-DErOLaoY.d.cts +0 -16
  148. package/dist/feed-DErOLaoY.d.cts.map +0 -1
  149. package/dist/feed-DErOLaoY.d.ts +0 -16
  150. package/dist/feed-DErOLaoY.d.ts.map +0 -1
  151. package/dist/payloadHash-CdkF2Ocr.d.cts.map +0 -1
  152. package/dist/payloadHash-HD29K77M.d.ts.map +0 -1
  153. package/dist/serverModelTypes-CGUZCi0y.d.cts.map +0 -1
  154. package/dist/serverModelTypes-CGUZCi0y.d.ts.map +0 -1
  155. package/dist/types-C9YE4EIt.d.cts.map +0 -1
  156. package/dist/types-Cwy1y_9x.d.ts.map +0 -1
@@ -1,2 +1,2 @@
1
- import { S as MobileServerWithExpoTokenParams, _ as MobileServerSearchProfilesRequest, b as MobileServerSocialFeedListParams, c as MobileServerNotificationSubscriptionsUpdate, d as MobileServerPublicExecuteRequestType, f as MobileServerPublicQueryRequestByType, g as MobileServerRequestType, h as MobileServerRegisterExpoTokenV2Params, l as MobileServerProfilesInclude, m as MobileServerRegisterExpoTokenParams, o as MobileServerExecuteRequestType, p as MobileServerPublicQueryRequestType, s as MobileServerFollowListRequest, u as MobileServerPublicExecuteRequestByType, v as MobileServerSignedQueryRequestType, x as MobileServerSocialFeedReadParams, y as MobileServerSocialFeedCategorizedParams } from "../types-Cwy1y_9x.js";
1
+ import { S as MobileServerWithExpoTokenParams, _ as MobileServerSearchProfilesRequest, b as MobileServerSocialFeedListParams, c as MobileServerNotificationSubscriptionsUpdate, d as MobileServerPublicExecuteRequestType, f as MobileServerPublicQueryRequestByType, g as MobileServerRequestType, h as MobileServerRegisterExpoTokenV2Params, l as MobileServerProfilesInclude, m as MobileServerRegisterExpoTokenParams, o as MobileServerExecuteRequestType, p as MobileServerPublicQueryRequestType, s as MobileServerFollowListRequest, u as MobileServerPublicExecuteRequestByType, v as MobileServerSignedQueryRequestType, x as MobileServerSocialFeedReadParams, y as MobileServerSocialFeedCategorizedParams } from "../types-CByl_NyJ.js";
2
2
  export { MobileServerExecuteRequestType, MobileServerFollowListRequest, MobileServerNotificationSubscriptionsUpdate, MobileServerProfilesInclude, MobileServerPublicExecuteRequestByType, MobileServerPublicExecuteRequestType, MobileServerPublicQueryRequestByType, MobileServerPublicQueryRequestType, MobileServerRegisterExpoTokenParams, MobileServerRegisterExpoTokenV2Params, MobileServerRequestType, MobileServerSearchProfilesRequest, MobileServerSignedQueryRequestType, MobileServerSocialFeedCategorizedParams, MobileServerSocialFeedListParams, MobileServerSocialFeedReadParams, MobileServerWithExpoTokenParams };
@@ -1,5 +1,5 @@
1
- import { A as MobileServerNotificationPreferences, B as MobileServerSocialFeedChartRange, Ct as MobileSocialFeedActionResolution, D as MobileServerNotificationInboxItem, Dt as MobileSocialFeedChartInterval, E as MobileServerNotificationDeviceMetadata, Et as MobileSocialFeedChartDataQuality, F as MobileServerSocialFeedActionCandidate, I as MobileServerSocialFeedActionMarker, K as MobileServerSocialFeedDrawing, L as MobileServerSocialFeedAuthor, M as MobileServerNotificationSettings, Mt as MobileSocialFeedMarketCategory, N as MobileServerProductEvent, Nt as MobileSocialFeedMention, P as MobileServerProfile, R as MobileServerSocialFeedCandle, Rt as MobileSocialFeedPositionResolution, V as MobileServerSocialFeedCohort, Vt as MobileSocialFeedPresenceState, Xt as MobileSocialFeedType, Y as MobileServerSocialFeedHistorySummary, Zt as MobileSocialFeedUnavailableTarget, _ as MobileServerAvatarPreset, b as MobileServerFeedTrade, ct as MobileServerSocialFeedPositionPatch, dt as MobileServerSocialFeedReadSession, et as MobileServerSocialFeedItem, ft as MobileServerSocialFeedReply, h as MobileNotificationTypeId, kt as MobileSocialFeedHistoryQuality, m as MobileNotificationRouteName, nt as MobileServerSocialFeedItemPatch, pt as MobileServerSocialFeedTimelineEntry, q as MobileServerSocialFeedEstimatedLiquidationLine, rt as MobileServerSocialFeedMarket, st as MobileServerSocialFeedPositionHistoryCard, ut as MobileServerSocialFeedPublishablePosition, v as MobileServerAvatarSelection, vt as MobileServerSocialFeedTradingContext, w as MobileServerNotificationCapabilities, x as MobileServerFollowListAccount, zt as MobileSocialFeedPositionResolutionReason } from "./serverModelTypes-CGUZCi0y.cjs";
2
- import { Ct as MobileSignedRequestParams } from "./clientTypes-DOpUcu80.cjs";
1
+ import { $t as MobileSocialFeedUnavailableTarget, A as MobileServerNotificationPreferences, B as MobileServerSocialFeedChartRange, Bt as MobileSocialFeedPositionResolution, D as MobileServerNotificationInboxItem, E as MobileServerNotificationDeviceMetadata, F as MobileServerSocialFeedActionCandidate, Ft as MobileSocialFeedMention, I as MobileServerSocialFeedActionMarker, J as MobileServerSocialFeedEstimatedLiquidationLine, L as MobileServerSocialFeedAuthor, M as MobileServerNotificationSettings, N as MobileServerProductEvent, Ot as MobileSocialFeedChartDataQuality, P as MobileServerProfile, Pt as MobileSocialFeedMarketCategory, Q as MobileServerSocialFeedHistoryTake, Qt as MobileSocialFeedType, R as MobileServerSocialFeedCandle, Tt as MobileSocialFeedActionResolution, U as MobileServerSocialFeedCommentGroup, Ut as MobileSocialFeedPresenceState, V as MobileServerSocialFeedCohort, Vt as MobileSocialFeedPositionResolutionReason, Z as MobileServerSocialFeedHistorySummary, _ as MobileServerAvatarPreset, at as MobileServerSocialFeedMarket, b as MobileServerFeedTrade, bt as MobileServerSocialFeedTradingContext, ft as MobileServerSocialFeedPublishablePosition, h as MobileNotificationTypeId, ht as MobileServerSocialFeedTimelineEntry, it as MobileServerSocialFeedItemPatch, jt as MobileSocialFeedHistoryQuality, kt as MobileSocialFeedChartInterval, lt as MobileServerSocialFeedPositionHistoryCard, m as MobileNotificationRouteName, nt as MobileServerSocialFeedItem, pt as MobileServerSocialFeedReadSession, q as MobileServerSocialFeedDrawing, ut as MobileServerSocialFeedPositionPatch, v as MobileServerAvatarSelection, w as MobileServerNotificationCapabilities, x as MobileServerFollowListAccount } from "./serverModelTypes-CTHMNIQS.js";
2
+ import { Tt as MobileSignedRequestParams } from "./clientTypes-XRI41VdC.js";
3
3
  import { WalletClientWithAccount } from "@nadohq/shared";
4
4
  import { Hex } from "viem";
5
5
 
@@ -222,6 +222,10 @@ interface MobileServerPublicQueryResponseByType {
222
222
  feed_comments: MobileServerSocialFeedCommentsResponse;
223
223
  /** Full lifecycle history. */
224
224
  position_history: MobileServerSocialFeedPositionHistoryResponse;
225
+ /** Most recent 500 actions, without pagination or authored content. */
226
+ position_history_all: MobileServerSocialFeedPositionHistoryResponse;
227
+ /** Published nonblank text with complete drawings. */
228
+ position_thoughts: MobileServerSocialFeedPositionThoughtsResponse;
225
229
  /** Candle page and markers. */
226
230
  position_chart: MobileServerSocialFeedPositionChartResponse;
227
231
  /** Read-only watcher observation. */
@@ -301,10 +305,12 @@ interface MobileServerSocialFeedDrawingResponse {
301
305
  }
302
306
  /** Comment thread, including bidirectional pagination around an optional anchor. */
303
307
  interface MobileServerSocialFeedCommentsResponse {
304
- /** Readable comments. */
305
- comments: MobileServerSocialFeedReply[];
306
- /** Total readable count. */
308
+ /** Top-level comments, newest first, each with all readable descendants in the snapshot. */
309
+ comments: MobileServerSocialFeedCommentGroup[];
310
+ /** All readable replies across the thread snapshot, including descendants. */
307
311
  total_count: number;
312
+ /** All readable top-level comments across the thread snapshot. */
313
+ top_level_count: number;
308
314
  /** Forward cursor. */
309
315
  next_cursor: string | null;
310
316
  /** Backward cursor. */
@@ -316,6 +322,8 @@ interface MobileServerSocialFeedCommentsResponse {
316
322
  }
317
323
  /** Full position history with additional metrics and trusted trading hints. */
318
324
  interface MobileServerSocialFeedPositionHistoryResponse {
325
+ /** Current position owner. */
326
+ owner: MobileServerSocialFeedAuthor;
319
327
  /** Current or frozen position and history metrics. */
320
328
  position: MobileServerSocialFeedPositionHistoryCard;
321
329
  /** Counts across the authorized history. */
@@ -355,6 +363,20 @@ interface MobileServerSocialFeedWatchersResponse {
355
363
  /** Observation time. */
356
364
  as_of_ms: number;
357
365
  }
366
+ /** Published position thought with nonblank text and a complete saved drawing. */
367
+ type MobileServerSocialFeedPositionThought = MobileServerSocialFeedHistoryTake & {
368
+ /** Always true for this endpoint; uploaded or external images alone do not qualify. */has_analysis: true; /** Parsed current drawing; saved data does not necessarily contain visible strokes. */
369
+ drawing: MobileServerSocialFeedDrawing;
370
+ };
371
+ /** Thoughts in descending drawing creation time and item UUID order; no 500-item total cap. */
372
+ interface MobileServerSocialFeedPositionThoughtsResponse {
373
+ /** Complete content in server order; never reorder by display time. */
374
+ items: MobileServerSocialFeedPositionThought[];
375
+ /** Null only at the directory end; an empty page can still have a cursor. */
376
+ next_cursor: string | null;
377
+ /** Independent position session; newly published content requires a refresh. */
378
+ read_session: MobileServerSocialFeedReadSession;
379
+ }
358
380
  //#endregion
359
381
  //#region src/types/serverRequestTypes.d.ts
360
382
  /**
@@ -506,8 +528,8 @@ interface MobileServerPublicQueryRequestByType {
506
528
  /** Read or navigate a comment thread. */
507
529
  feed_comments: MobileServerSocialFeedReadParams & {
508
530
  /** Root UUID. */root_item_id: string; /** Thread cursor. */
509
- cursor?: string; /** Page size, 1-50. */
510
- limit?: number; /** First-page anchor, mutually exclusive with cursor. */
531
+ cursor?: string; /** Top-level group count, 1-50; descendants do not consume the limit. */
532
+ limit?: number; /** Anchor at any depth selecting its top-level group; mutually exclusive with cursor. */
511
533
  anchor_reply_id?: string; /** Original reading session. */
512
534
  session_id?: string;
513
535
  };
@@ -519,6 +541,17 @@ interface MobileServerPublicQueryRequestByType {
519
541
  limit?: number; /** Original position-mode session. */
520
542
  session_id?: string;
521
543
  };
544
+ /** Recent actions only, capped at 500; creates a new session and does not paginate. */
545
+ position_history_all: MobileServerSocialFeedReadParams & {
546
+ /** Lifecycle UUID. */position_id: string;
547
+ };
548
+ /** Published nonblank text with a saved drawing, newest first by drawing creation time. */
549
+ position_thoughts: MobileServerSocialFeedReadParams & {
550
+ /** Lifecycle UUID. */position_id: string; /** Page size, 1-50; defaults to 20 and must remain unchanged across pages. */
551
+ limit?: number; /** Original thoughts session; cannot be reused from history or feed queries. */
552
+ session_id?: string; /** Previous next_cursor; requires the original session and viewer_token. */
553
+ cursor?: string;
554
+ };
522
555
  /** Market candles and independently priced action markers. */
523
556
  position_chart: MobileServerSocialFeedReadParams & {
524
557
  /** Lifecycle UUID. */position_id: string; /** Original session, paired with viewer_token. */
@@ -557,8 +590,7 @@ interface MobileServerPublicQueryRequestByType {
557
590
  };
558
591
  /** Item details visible to view_as, optionally reusing a reading session. */
559
592
  feed_item: MobileServerSocialFeedReadParams & {
560
- /** Target item UUID. */item_id: string; /** Detail-visit event; omit for prefetch. Does not increment the count alone. */
561
- view_event_id?: string; /** Preview size, 0-3. */
593
+ /** Target item UUID. */item_id: string; /** Preview size, 0-3. */
562
594
  comment_preview_limit?: number; /** Omit to create a new reading session. */
563
595
  session_id?: string;
564
596
  };
@@ -625,12 +657,9 @@ interface MobileServerPublicExecuteRequestByType {
625
657
  /** Latest settings revision. */expected_revision: number; /** Complete settings document. */
626
658
  settings: MobileServerNotificationSettings;
627
659
  };
628
- /** Explicit detail-visit report using the original browsing credential. */
660
+ /** Independent unsigned batch view report; repeat requests increment again. */
629
661
  record_feed_views: {
630
- /** Original reading session. */session_id: string; /** Original credential. */
631
- viewer_token: string; /** Detail-visit event previously registered on feed_item. */
632
- view_event_id: string; /** Exactly one fully delivered detail-target item. */
633
- item_ids: string[];
662
+ /** 1–50 canonical lowercase item UUIDs before deduplication; duplicates count once in this request. */item_ids: string[];
634
663
  };
635
664
  /** Per-page visitor lease; no wallet signature. */
636
665
  position_presence: {
@@ -708,7 +737,8 @@ type MobileSignedInner = ({
708
737
  text: string; /** Ordered mentions into the original text. */
709
738
  mentions: MobileSocialFeedMention[]; /** Original JSON text; omitted when absent. */
710
739
  drawing_data_json?: string; /** Ordered ready image UUIDs; omitted when absent. */
711
- image_ids?: string[];
740
+ image_ids?: string[]; /** Up to ten original HTTP/HTTPS URLs in order; omission differs from an empty array. */
741
+ image_urls?: string[];
712
742
  } | {
713
743
  /** Atomic comment publication. */type: 'create_feed_comment'; /** Author-scoped idempotency UUID. */
714
744
  client_request_id: string; /** Root UUID. */
@@ -717,7 +747,8 @@ type MobileSignedInner = ({
717
747
  text: string; /** Ordered mentions. */
718
748
  mentions: MobileSocialFeedMention[]; /** Optional owned position UUID. */
719
749
  attached_position_id?: string; /** Ordered ready image UUIDs; omitted when absent. */
720
- image_ids?: string[];
750
+ image_ids?: string[]; /** Up to ten original HTTP/HTTPS URLs in order; omission differs from an empty array. */
751
+ image_urls?: string[];
721
752
  } | {
722
753
  /** Direct multipart post-image upload; content_hash is Keccak256 of the raw file bytes. */type: 'create_feed_post_image_uploads'; /** `0x`-prefixed lowercase Keccak256 of the original file bytes. */
723
754
  content_hash: Hex;
@@ -790,5 +821,5 @@ interface BuildSignedMobileRequestParams extends MobileSignedRequestParams {
790
821
  inner: MobileSignedInner;
791
822
  }
792
823
  //#endregion
793
- export { MobileServerFailureResponse as $, MobileServerNotificationSubscriptionsResponse as A, MobileServerSocialFeedCommentsResponse as B, MobileServerAvatarPresetsResponse as C, MobileServerNotificationPreferencesResponse as D, MobileServerNotificationInboxV2Response as E, MobileServerRegisteredWalletResponse as F, MobileServerSocialFeedPositionResolutionResponse as G, MobileServerSocialFeedItemResponse as H, MobileServerSearchProfilesResponse as I, MobileServerSocialFeedResponse as J, MobileServerSocialFeedPositionsResponse as K, MobileServerSignedQueryResponseByType as L, MobileServerPublicQueryRequest as M, MobileServerPublicQueryResponseByType as N, MobileServerNotificationRegistrationV2Response as O, MobileServerPublicQuerySuccessResponse as P, MobileServerUsernameAvailabilityResponse as Q, MobileServerSignedQuerySuccessResponse as R, MobileServerWithExpoTokenParams as S, MobileServerFollowListResponse as T, MobileServerSocialFeedPositionChartResponse as U, MobileServerSocialFeedDrawingResponse as V, MobileServerSocialFeedPositionHistoryResponse as W, MobileServerSocialFeedUpdatesResponse as X, MobileServerSocialFeedTopTradersResponse as Y, MobileServerSocialFeedWatchersResponse as Z, MobileServerSearchProfilesRequest as _, MobileSignedRequest as a, MobileServerSocialFeedListParams as b, MobileServerNotificationSubscriptionsUpdate as c, MobileServerPublicExecuteRequestType as d, MobileServerSuccessResponse as et, MobileServerPublicQueryRequestByType as f, MobileServerRequestType as g, MobileServerRegisterExpoTokenV2Params as h, MobileSignedInnerParams as i, MobileServerProfilesResponse as j, MobileServerNotificationSettingsV2Response as k, MobileServerProfilesInclude as l, MobileServerRegisterExpoTokenParams as m, MobileSignedInner as n, MobileServerExecuteRequestType as o, MobileServerPublicQueryRequestType as p, MobileServerSocialFeedRankedResponse as q, MobileSignedInnerByType as r, MobileServerFollowListRequest as s, BuildSignedMobileRequestParams as t, MobileServerPublicExecuteRequestByType as u, MobileServerSignedQueryRequestType as v, MobileServerFeedResponse as w, MobileServerSocialFeedReadParams as x, MobileServerSocialFeedCategorizedParams as y, MobileServerSocialFeedActionResolutionResponse as z };
794
- //# sourceMappingURL=types-C9YE4EIt.d.cts.map
824
+ export { MobileServerSocialFeedWatchersResponse as $, MobileServerNotificationSubscriptionsResponse as A, MobileServerSocialFeedCommentsResponse as B, MobileServerAvatarPresetsResponse as C, MobileServerNotificationPreferencesResponse as D, MobileServerNotificationInboxV2Response as E, MobileServerRegisteredWalletResponse as F, MobileServerSocialFeedPositionResolutionResponse as G, MobileServerSocialFeedItemResponse as H, MobileServerSearchProfilesResponse as I, MobileServerSocialFeedPositionsResponse as J, MobileServerSocialFeedPositionThought as K, MobileServerSignedQueryResponseByType as L, MobileServerPublicQueryRequest as M, MobileServerPublicQueryResponseByType as N, MobileServerNotificationRegistrationV2Response as O, MobileServerPublicQuerySuccessResponse as P, MobileServerSocialFeedUpdatesResponse as Q, MobileServerSignedQuerySuccessResponse as R, MobileServerWithExpoTokenParams as S, MobileServerFollowListResponse as T, MobileServerSocialFeedPositionChartResponse as U, MobileServerSocialFeedDrawingResponse as V, MobileServerSocialFeedPositionHistoryResponse as W, MobileServerSocialFeedResponse as X, MobileServerSocialFeedRankedResponse as Y, MobileServerSocialFeedTopTradersResponse as Z, MobileServerSearchProfilesRequest as _, MobileSignedRequest as a, MobileServerSocialFeedListParams as b, MobileServerNotificationSubscriptionsUpdate as c, MobileServerPublicExecuteRequestType as d, MobileServerUsernameAvailabilityResponse as et, MobileServerPublicQueryRequestByType as f, MobileServerRequestType as g, MobileServerRegisterExpoTokenV2Params as h, MobileSignedInnerParams as i, MobileServerProfilesResponse as j, MobileServerNotificationSettingsV2Response as k, MobileServerProfilesInclude as l, MobileServerRegisterExpoTokenParams as m, MobileSignedInner as n, MobileServerSuccessResponse as nt, MobileServerExecuteRequestType as o, MobileServerPublicQueryRequestType as p, MobileServerSocialFeedPositionThoughtsResponse as q, MobileSignedInnerByType as r, MobileServerFollowListRequest as s, BuildSignedMobileRequestParams as t, MobileServerFailureResponse as tt, MobileServerPublicExecuteRequestByType as u, MobileServerSignedQueryRequestType as v, MobileServerFeedResponse as w, MobileServerSocialFeedReadParams as x, MobileServerSocialFeedCategorizedParams as y, MobileServerSocialFeedActionResolutionResponse as z };
825
+ //# sourceMappingURL=types-CByl_NyJ.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types-CByl_NyJ.d.ts","names":[],"sources":["../src/types/src/types/serverBaseTypes.ts","../src/types/src/types/serverQueryTypes.ts","../src/types/src/types/serverRequestTypes.ts","../src/signing/src/signing/types.ts"],"mappings":";;;;;;;;;;;AAQA;UAAiB,2BAAA;EACf,MAAM;AAAA;AAAA;AAOR;;;AAPQ,UAOS,2BAAA;EACf,MAAA;EACA,KAAA;EACA,UAAA;EACA,YAAA,EAAc,uBAAuB;AAAA;;;;;AAZvC;UCuCiB,qCAAA;;EAEf,0BAAA,EAA4B,6CAAA;EDxCtB;EC0CN,qBAAA,EAAuB,uCAAuC;AAAA;;;;KAMpD,sCAAA,WACA,kCAAA,GACR,kCAAA,IACA,2BAAA,GAA8B,qCAAA,CAAsC,CAAA;;;;KAK5D,8BAAA,WACA,kCAAA,GACR,kCAAA,YAEI,kCAAA;EACJ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BAAA,SAAuC,yBAAA;EACtD,YAAA,EAAc,uBAAA;EACd,KAAA,EAAO,iBAAA;AAAA"}
@@ -1,5 +1,5 @@
1
- import { A as MobileServerNotificationPreferences, B as MobileServerSocialFeedChartRange, Ct as MobileSocialFeedActionResolution, D as MobileServerNotificationInboxItem, Dt as MobileSocialFeedChartInterval, E as MobileServerNotificationDeviceMetadata, Et as MobileSocialFeedChartDataQuality, F as MobileServerSocialFeedActionCandidate, I as MobileServerSocialFeedActionMarker, K as MobileServerSocialFeedDrawing, L as MobileServerSocialFeedAuthor, M as MobileServerNotificationSettings, Mt as MobileSocialFeedMarketCategory, N as MobileServerProductEvent, Nt as MobileSocialFeedMention, P as MobileServerProfile, R as MobileServerSocialFeedCandle, Rt as MobileSocialFeedPositionResolution, V as MobileServerSocialFeedCohort, Vt as MobileSocialFeedPresenceState, Xt as MobileSocialFeedType, Y as MobileServerSocialFeedHistorySummary, Zt as MobileSocialFeedUnavailableTarget, _ as MobileServerAvatarPreset, b as MobileServerFeedTrade, ct as MobileServerSocialFeedPositionPatch, dt as MobileServerSocialFeedReadSession, et as MobileServerSocialFeedItem, ft as MobileServerSocialFeedReply, h as MobileNotificationTypeId, kt as MobileSocialFeedHistoryQuality, m as MobileNotificationRouteName, nt as MobileServerSocialFeedItemPatch, pt as MobileServerSocialFeedTimelineEntry, q as MobileServerSocialFeedEstimatedLiquidationLine, rt as MobileServerSocialFeedMarket, st as MobileServerSocialFeedPositionHistoryCard, ut as MobileServerSocialFeedPublishablePosition, v as MobileServerAvatarSelection, vt as MobileServerSocialFeedTradingContext, w as MobileServerNotificationCapabilities, x as MobileServerFollowListAccount, zt as MobileSocialFeedPositionResolutionReason } from "./serverModelTypes-CGUZCi0y.js";
2
- import { Ct as MobileSignedRequestParams } from "./clientTypes-BUn5_OzK.js";
1
+ import { $t as MobileSocialFeedUnavailableTarget, A as MobileServerNotificationPreferences, B as MobileServerSocialFeedChartRange, Bt as MobileSocialFeedPositionResolution, D as MobileServerNotificationInboxItem, E as MobileServerNotificationDeviceMetadata, F as MobileServerSocialFeedActionCandidate, Ft as MobileSocialFeedMention, I as MobileServerSocialFeedActionMarker, J as MobileServerSocialFeedEstimatedLiquidationLine, L as MobileServerSocialFeedAuthor, M as MobileServerNotificationSettings, N as MobileServerProductEvent, Ot as MobileSocialFeedChartDataQuality, P as MobileServerProfile, Pt as MobileSocialFeedMarketCategory, Q as MobileServerSocialFeedHistoryTake, Qt as MobileSocialFeedType, R as MobileServerSocialFeedCandle, Tt as MobileSocialFeedActionResolution, U as MobileServerSocialFeedCommentGroup, Ut as MobileSocialFeedPresenceState, V as MobileServerSocialFeedCohort, Vt as MobileSocialFeedPositionResolutionReason, Z as MobileServerSocialFeedHistorySummary, _ as MobileServerAvatarPreset, at as MobileServerSocialFeedMarket, b as MobileServerFeedTrade, bt as MobileServerSocialFeedTradingContext, ft as MobileServerSocialFeedPublishablePosition, h as MobileNotificationTypeId, ht as MobileServerSocialFeedTimelineEntry, it as MobileServerSocialFeedItemPatch, jt as MobileSocialFeedHistoryQuality, kt as MobileSocialFeedChartInterval, lt as MobileServerSocialFeedPositionHistoryCard, m as MobileNotificationRouteName, nt as MobileServerSocialFeedItem, pt as MobileServerSocialFeedReadSession, q as MobileServerSocialFeedDrawing, ut as MobileServerSocialFeedPositionPatch, v as MobileServerAvatarSelection, w as MobileServerNotificationCapabilities, x as MobileServerFollowListAccount } from "./serverModelTypes-CTHMNIQS.cjs";
2
+ import { Tt as MobileSignedRequestParams } from "./clientTypes-KpHlCDGZ.cjs";
3
3
  import { WalletClientWithAccount } from "@nadohq/shared";
4
4
  import { Hex } from "viem";
5
5
 
@@ -222,6 +222,10 @@ interface MobileServerPublicQueryResponseByType {
222
222
  feed_comments: MobileServerSocialFeedCommentsResponse;
223
223
  /** Full lifecycle history. */
224
224
  position_history: MobileServerSocialFeedPositionHistoryResponse;
225
+ /** Most recent 500 actions, without pagination or authored content. */
226
+ position_history_all: MobileServerSocialFeedPositionHistoryResponse;
227
+ /** Published nonblank text with complete drawings. */
228
+ position_thoughts: MobileServerSocialFeedPositionThoughtsResponse;
225
229
  /** Candle page and markers. */
226
230
  position_chart: MobileServerSocialFeedPositionChartResponse;
227
231
  /** Read-only watcher observation. */
@@ -301,10 +305,12 @@ interface MobileServerSocialFeedDrawingResponse {
301
305
  }
302
306
  /** Comment thread, including bidirectional pagination around an optional anchor. */
303
307
  interface MobileServerSocialFeedCommentsResponse {
304
- /** Readable comments. */
305
- comments: MobileServerSocialFeedReply[];
306
- /** Total readable count. */
308
+ /** Top-level comments, newest first, each with all readable descendants in the snapshot. */
309
+ comments: MobileServerSocialFeedCommentGroup[];
310
+ /** All readable replies across the thread snapshot, including descendants. */
307
311
  total_count: number;
312
+ /** All readable top-level comments across the thread snapshot. */
313
+ top_level_count: number;
308
314
  /** Forward cursor. */
309
315
  next_cursor: string | null;
310
316
  /** Backward cursor. */
@@ -316,6 +322,8 @@ interface MobileServerSocialFeedCommentsResponse {
316
322
  }
317
323
  /** Full position history with additional metrics and trusted trading hints. */
318
324
  interface MobileServerSocialFeedPositionHistoryResponse {
325
+ /** Current position owner. */
326
+ owner: MobileServerSocialFeedAuthor;
319
327
  /** Current or frozen position and history metrics. */
320
328
  position: MobileServerSocialFeedPositionHistoryCard;
321
329
  /** Counts across the authorized history. */
@@ -355,6 +363,20 @@ interface MobileServerSocialFeedWatchersResponse {
355
363
  /** Observation time. */
356
364
  as_of_ms: number;
357
365
  }
366
+ /** Published position thought with nonblank text and a complete saved drawing. */
367
+ type MobileServerSocialFeedPositionThought = MobileServerSocialFeedHistoryTake & {
368
+ /** Always true for this endpoint; uploaded or external images alone do not qualify. */has_analysis: true; /** Parsed current drawing; saved data does not necessarily contain visible strokes. */
369
+ drawing: MobileServerSocialFeedDrawing;
370
+ };
371
+ /** Thoughts in descending drawing creation time and item UUID order; no 500-item total cap. */
372
+ interface MobileServerSocialFeedPositionThoughtsResponse {
373
+ /** Complete content in server order; never reorder by display time. */
374
+ items: MobileServerSocialFeedPositionThought[];
375
+ /** Null only at the directory end; an empty page can still have a cursor. */
376
+ next_cursor: string | null;
377
+ /** Independent position session; newly published content requires a refresh. */
378
+ read_session: MobileServerSocialFeedReadSession;
379
+ }
358
380
  //#endregion
359
381
  //#region src/types/serverRequestTypes.d.ts
360
382
  /**
@@ -506,8 +528,8 @@ interface MobileServerPublicQueryRequestByType {
506
528
  /** Read or navigate a comment thread. */
507
529
  feed_comments: MobileServerSocialFeedReadParams & {
508
530
  /** Root UUID. */root_item_id: string; /** Thread cursor. */
509
- cursor?: string; /** Page size, 1-50. */
510
- limit?: number; /** First-page anchor, mutually exclusive with cursor. */
531
+ cursor?: string; /** Top-level group count, 1-50; descendants do not consume the limit. */
532
+ limit?: number; /** Anchor at any depth selecting its top-level group; mutually exclusive with cursor. */
511
533
  anchor_reply_id?: string; /** Original reading session. */
512
534
  session_id?: string;
513
535
  };
@@ -519,6 +541,17 @@ interface MobileServerPublicQueryRequestByType {
519
541
  limit?: number; /** Original position-mode session. */
520
542
  session_id?: string;
521
543
  };
544
+ /** Recent actions only, capped at 500; creates a new session and does not paginate. */
545
+ position_history_all: MobileServerSocialFeedReadParams & {
546
+ /** Lifecycle UUID. */position_id: string;
547
+ };
548
+ /** Published nonblank text with a saved drawing, newest first by drawing creation time. */
549
+ position_thoughts: MobileServerSocialFeedReadParams & {
550
+ /** Lifecycle UUID. */position_id: string; /** Page size, 1-50; defaults to 20 and must remain unchanged across pages. */
551
+ limit?: number; /** Original thoughts session; cannot be reused from history or feed queries. */
552
+ session_id?: string; /** Previous next_cursor; requires the original session and viewer_token. */
553
+ cursor?: string;
554
+ };
522
555
  /** Market candles and independently priced action markers. */
523
556
  position_chart: MobileServerSocialFeedReadParams & {
524
557
  /** Lifecycle UUID. */position_id: string; /** Original session, paired with viewer_token. */
@@ -557,8 +590,7 @@ interface MobileServerPublicQueryRequestByType {
557
590
  };
558
591
  /** Item details visible to view_as, optionally reusing a reading session. */
559
592
  feed_item: MobileServerSocialFeedReadParams & {
560
- /** Target item UUID. */item_id: string; /** Detail-visit event; omit for prefetch. Does not increment the count alone. */
561
- view_event_id?: string; /** Preview size, 0-3. */
593
+ /** Target item UUID. */item_id: string; /** Preview size, 0-3. */
562
594
  comment_preview_limit?: number; /** Omit to create a new reading session. */
563
595
  session_id?: string;
564
596
  };
@@ -625,12 +657,9 @@ interface MobileServerPublicExecuteRequestByType {
625
657
  /** Latest settings revision. */expected_revision: number; /** Complete settings document. */
626
658
  settings: MobileServerNotificationSettings;
627
659
  };
628
- /** Explicit detail-visit report using the original browsing credential. */
660
+ /** Independent unsigned batch view report; repeat requests increment again. */
629
661
  record_feed_views: {
630
- /** Original reading session. */session_id: string; /** Original credential. */
631
- viewer_token: string; /** Detail-visit event previously registered on feed_item. */
632
- view_event_id: string; /** Exactly one fully delivered detail-target item. */
633
- item_ids: string[];
662
+ /** 1–50 canonical lowercase item UUIDs before deduplication; duplicates count once in this request. */item_ids: string[];
634
663
  };
635
664
  /** Per-page visitor lease; no wallet signature. */
636
665
  position_presence: {
@@ -708,7 +737,8 @@ type MobileSignedInner = ({
708
737
  text: string; /** Ordered mentions into the original text. */
709
738
  mentions: MobileSocialFeedMention[]; /** Original JSON text; omitted when absent. */
710
739
  drawing_data_json?: string; /** Ordered ready image UUIDs; omitted when absent. */
711
- image_ids?: string[];
740
+ image_ids?: string[]; /** Up to ten original HTTP/HTTPS URLs in order; omission differs from an empty array. */
741
+ image_urls?: string[];
712
742
  } | {
713
743
  /** Atomic comment publication. */type: 'create_feed_comment'; /** Author-scoped idempotency UUID. */
714
744
  client_request_id: string; /** Root UUID. */
@@ -717,7 +747,8 @@ type MobileSignedInner = ({
717
747
  text: string; /** Ordered mentions. */
718
748
  mentions: MobileSocialFeedMention[]; /** Optional owned position UUID. */
719
749
  attached_position_id?: string; /** Ordered ready image UUIDs; omitted when absent. */
720
- image_ids?: string[];
750
+ image_ids?: string[]; /** Up to ten original HTTP/HTTPS URLs in order; omission differs from an empty array. */
751
+ image_urls?: string[];
721
752
  } | {
722
753
  /** Direct multipart post-image upload; content_hash is Keccak256 of the raw file bytes. */type: 'create_feed_post_image_uploads'; /** `0x`-prefixed lowercase Keccak256 of the original file bytes. */
723
754
  content_hash: Hex;
@@ -790,5 +821,5 @@ interface BuildSignedMobileRequestParams extends MobileSignedRequestParams {
790
821
  inner: MobileSignedInner;
791
822
  }
792
823
  //#endregion
793
- export { MobileServerFailureResponse as $, MobileServerNotificationSubscriptionsResponse as A, MobileServerSocialFeedCommentsResponse as B, MobileServerAvatarPresetsResponse as C, MobileServerNotificationPreferencesResponse as D, MobileServerNotificationInboxV2Response as E, MobileServerRegisteredWalletResponse as F, MobileServerSocialFeedPositionResolutionResponse as G, MobileServerSocialFeedItemResponse as H, MobileServerSearchProfilesResponse as I, MobileServerSocialFeedResponse as J, MobileServerSocialFeedPositionsResponse as K, MobileServerSignedQueryResponseByType as L, MobileServerPublicQueryRequest as M, MobileServerPublicQueryResponseByType as N, MobileServerNotificationRegistrationV2Response as O, MobileServerPublicQuerySuccessResponse as P, MobileServerUsernameAvailabilityResponse as Q, MobileServerSignedQuerySuccessResponse as R, MobileServerWithExpoTokenParams as S, MobileServerFollowListResponse as T, MobileServerSocialFeedPositionChartResponse as U, MobileServerSocialFeedDrawingResponse as V, MobileServerSocialFeedPositionHistoryResponse as W, MobileServerSocialFeedUpdatesResponse as X, MobileServerSocialFeedTopTradersResponse as Y, MobileServerSocialFeedWatchersResponse as Z, MobileServerSearchProfilesRequest as _, MobileSignedRequest as a, MobileServerSocialFeedListParams as b, MobileServerNotificationSubscriptionsUpdate as c, MobileServerPublicExecuteRequestType as d, MobileServerSuccessResponse as et, MobileServerPublicQueryRequestByType as f, MobileServerRequestType as g, MobileServerRegisterExpoTokenV2Params as h, MobileSignedInnerParams as i, MobileServerProfilesResponse as j, MobileServerNotificationSettingsV2Response as k, MobileServerProfilesInclude as l, MobileServerRegisterExpoTokenParams as m, MobileSignedInner as n, MobileServerExecuteRequestType as o, MobileServerPublicQueryRequestType as p, MobileServerSocialFeedRankedResponse as q, MobileSignedInnerByType as r, MobileServerFollowListRequest as s, BuildSignedMobileRequestParams as t, MobileServerPublicExecuteRequestByType as u, MobileServerSignedQueryRequestType as v, MobileServerFeedResponse as w, MobileServerSocialFeedReadParams as x, MobileServerSocialFeedCategorizedParams as y, MobileServerSocialFeedActionResolutionResponse as z };
794
- //# sourceMappingURL=types-Cwy1y_9x.d.ts.map
824
+ export { MobileServerSocialFeedWatchersResponse as $, MobileServerNotificationSubscriptionsResponse as A, MobileServerSocialFeedCommentsResponse as B, MobileServerAvatarPresetsResponse as C, MobileServerNotificationPreferencesResponse as D, MobileServerNotificationInboxV2Response as E, MobileServerRegisteredWalletResponse as F, MobileServerSocialFeedPositionResolutionResponse as G, MobileServerSocialFeedItemResponse as H, MobileServerSearchProfilesResponse as I, MobileServerSocialFeedPositionsResponse as J, MobileServerSocialFeedPositionThought as K, MobileServerSignedQueryResponseByType as L, MobileServerPublicQueryRequest as M, MobileServerPublicQueryResponseByType as N, MobileServerNotificationRegistrationV2Response as O, MobileServerPublicQuerySuccessResponse as P, MobileServerSocialFeedUpdatesResponse as Q, MobileServerSignedQuerySuccessResponse as R, MobileServerWithExpoTokenParams as S, MobileServerFollowListResponse as T, MobileServerSocialFeedPositionChartResponse as U, MobileServerSocialFeedDrawingResponse as V, MobileServerSocialFeedPositionHistoryResponse as W, MobileServerSocialFeedResponse as X, MobileServerSocialFeedRankedResponse as Y, MobileServerSocialFeedTopTradersResponse as Z, MobileServerSearchProfilesRequest as _, MobileSignedRequest as a, MobileServerSocialFeedListParams as b, MobileServerNotificationSubscriptionsUpdate as c, MobileServerPublicExecuteRequestType as d, MobileServerUsernameAvailabilityResponse as et, MobileServerPublicQueryRequestByType as f, MobileServerRequestType as g, MobileServerRegisterExpoTokenV2Params as h, MobileSignedInnerParams as i, MobileServerProfilesResponse as j, MobileServerNotificationSettingsV2Response as k, MobileServerProfilesInclude as l, MobileServerRegisterExpoTokenParams as m, MobileSignedInner as n, MobileServerSuccessResponse as nt, MobileServerExecuteRequestType as o, MobileServerPublicQueryRequestType as p, MobileServerSocialFeedPositionThoughtsResponse as q, MobileSignedInnerByType as r, MobileServerFollowListRequest as s, BuildSignedMobileRequestParams as t, MobileServerFailureResponse as tt, MobileServerPublicExecuteRequestByType as u, MobileServerSignedQueryRequestType as v, MobileServerFeedResponse as w, MobileServerSocialFeedReadParams as x, MobileServerSocialFeedCategorizedParams as y, MobileServerSocialFeedActionResolutionResponse as z };
825
+ //# sourceMappingURL=types-CR5iaKR4.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types-CR5iaKR4.d.cts","names":[],"sources":["../src/types/src/types/serverBaseTypes.ts","../src/types/src/types/serverQueryTypes.ts","../src/types/src/types/serverRequestTypes.ts","../src/signing/src/signing/types.ts"],"mappings":";;;;;;;;;;;AAQA;UAAiB,2BAAA;EACf,MAAM;AAAA;AAAA;AAOR;;;AAPQ,UAOS,2BAAA;EACf,MAAA;EACA,KAAA;EACA,UAAA;EACA,YAAA,EAAc,uBAAuB;AAAA;;;;;AAZvC;UCuCiB,qCAAA;;EAEf,0BAAA,EAA4B,6CAAA;EDxCtB;EC0CN,qBAAA,EAAuB,uCAAuC;AAAA;;;;KAMpD,sCAAA,WACA,kCAAA,GACR,kCAAA,IACA,2BAAA,GAA8B,qCAAA,CAAsC,CAAA;;;;KAK5D,8BAAA,WACA,kCAAA,GACR,kCAAA,YAEI,kCAAA;EACJ,IAAA,EAAM,CAAA;AAAA,IACJ,oCAAA,CAAqC,CAAA,IACzC,CAAA;AAzBF;;;AAAA,UA8BiB,wCAAA;EACf,QAAA;EACA,SAAS;AAAA;;;AA5BqD;UAkC/C,iCAAA;EA5BiC;EA8BhD,OAAA,EAAS,wBAAwB;AAAA;;;;;UAOlB,4BAAA;EACf,QAAA,EAAU,mBAAmB;AAAA;;;;;UAOd,kCAAA;EACf,QAAA,EAAU,mBAAmB;EA3C0C;EA6CvE,WAAA;AAAA;;;;;UAOe,8BAA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AAc,GAAA;AAAA;gGAId,IAAA,uCFhB6B;EEkB7B,YAAA,EAAc,GAAA;AAAA;0BAId,IAAA,+BFdyB;EEgBzB,OAAA,UFT6C;EEW7C,SAAA;AAAA;EFVJ,+CEcI,IAAA,+BFZJ;EEcI,OAAA,UFdO;EEgBP,SAAA;AAAA;0CAIA,IAAA,mBFZJ;EEcI,OAAA,UFZJ;EEcI,QAAA;AAAA;EAEA,IAAA;EAAiB,GAAA;AAAA;EACjB,IAAA;EAA8B,cAAA;AAAA;EAE9B,IAAA;EACA,MAAA,EAAQ,2BAAA;AAAA;EAER,IAAA;EAAsB,YAAA;AAAA;EACtB,IAAA;EAA0B,YAAA;AAAA;EFF9B,mEEKI,IAAA;AAAA,IACE,mCAAA;EAEF,IAAA;EACA,UAAA,EAAY,GAAA,EFLP;EEOL,YAAA;AAAA;EAGA,IAAA,sBFNwD;EEQxD,WAAA,EAAa,GAAA,IFFF;EEIX,YAAA;AAAA;;;;KAMM,uBAAA,WAAkC,iBAAA,YAC5C,OAAA,CAAQ,iBAAA;EAAqB,IAAA,EAAM,CAAA;AAAA;AFLrC;;;;AAAA,KEWY,uBAAA,WAAkC,iBAAA,YAA6B,IAAA,CACzE,uBAAA,CAAwB,CAAA;;;;;KAQd,mBAAA,WACA,iBAAA,GAAoB,iBAAA,IAC5B,CAAA;EACF,SAAA,EAAW,GAAA;EACX,MAAA,EAAQ,GAAA;EACR,KAAA;AAAA;;;;UAMe,8BAAA,SAAuC,yBAAA;EACtD,YAAA,EAAc,uBAAA;EACd,KAAA,EAAO,iBAAA;AAAA"}
@@ -1,6 +1,14 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  //#region src/utils/feed.ts
3
3
  /**
4
+ * Narrows a feed image to protected upload metadata rather than an external URL.
5
+ * @param image - An image returned with feed content.
6
+ * @returns Whether the image has upload metadata and requires Mobile session headers.
7
+ */
8
+ function isMobileSocialFeedUploadedImage(image) {
9
+ return "imageId" in image;
10
+ }
11
+ /**
4
12
  * Maximum feed page size the backend accepts; also the default when `limit` is omitted. Requests above this
5
13
  * fail with `INVALID_FEED_FILTER`.
6
14
  */
@@ -16,5 +24,6 @@ const MOBILE_FEED_MIN_NOTIONAL_FLOOR = 1e3;
16
24
  exports.MOBILE_FEED_IMAGE_MAX_REQUEST_BYTES = MOBILE_FEED_IMAGE_MAX_REQUEST_BYTES;
17
25
  exports.MOBILE_FEED_MAX_PAGE_SIZE = MOBILE_FEED_MAX_PAGE_SIZE;
18
26
  exports.MOBILE_FEED_MIN_NOTIONAL_FLOOR = MOBILE_FEED_MIN_NOTIONAL_FLOOR;
27
+ exports.isMobileSocialFeedUploadedImage = isMobileSocialFeedUploadedImage;
19
28
 
20
29
  //# sourceMappingURL=feed.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"feed.cjs","names":[],"sources":["../../src/utils/feed.ts"],"sourcesContent":["/**\n * Maximum feed page size the backend accepts; also the default when `limit` is omitted. Requests above this\n * fail with `INVALID_FEED_FILTER`.\n */\nexport const MOBILE_FEED_MAX_PAGE_SIZE = 50;\n\n/** Maximum feed image upload request size, including the signed payload and multipart framing (2 MiB). */\nexport const MOBILE_FEED_IMAGE_MAX_REQUEST_BYTES = 2 * 1024 * 1024;\n\n/**\n * Lowest minimum notional the backend accepts, in whole dollars. Filtered requests below this fail with\n * `INVALID_FEED_FILTER`; omitting the filter entirely returns the unfiltered feed.\n */\nexport const MOBILE_FEED_MIN_NOTIONAL_FLOOR = 1_000;\n"],"mappings":";;;;;;AAIA,MAAa,4BAA4B;;AAGzC,MAAa,sCAAsC,IAAI,OAAO;;;;;AAM9D,MAAa,iCAAiC"}
1
+ {"version":3,"file":"feed.cjs","names":[],"sources":["../../src/utils/feed.ts"],"sourcesContent":["import { MobileSocialFeedImage, MobileSocialFeedUploadedImage } from '../types';\n\n/**\n * Narrows a feed image to protected upload metadata rather than an external URL.\n * @param image - An image returned with feed content.\n * @returns Whether the image has upload metadata and requires Mobile session headers.\n */\nexport function isMobileSocialFeedUploadedImage(\n image: MobileSocialFeedImage,\n): image is MobileSocialFeedUploadedImage {\n return 'imageId' in image;\n}\n\n/**\n * Maximum feed page size the backend accepts; also the default when `limit` is omitted. Requests above this\n * fail with `INVALID_FEED_FILTER`.\n */\nexport const MOBILE_FEED_MAX_PAGE_SIZE = 50;\n\n/** Maximum feed image upload request size, including the signed payload and multipart framing (2 MiB). */\nexport const MOBILE_FEED_IMAGE_MAX_REQUEST_BYTES = 2 * 1024 * 1024;\n\n/**\n * Lowest minimum notional the backend accepts, in whole dollars. Filtered requests below this fail with\n * `INVALID_FEED_FILTER`; omitting the filter entirely returns the unfiltered feed.\n */\nexport const MOBILE_FEED_MIN_NOTIONAL_FLOOR = 1_000;\n"],"mappings":";;;;;;;AAOA,SAAgB,gCACd,OACwC;CACxC,OAAO,aAAa;AACtB;;;;;AAMA,MAAa,4BAA4B;;AAGzC,MAAa,sCAAsC,IAAI,OAAO;;;;;AAM9D,MAAa,iCAAiC"}
@@ -1,2 +1,2 @@
1
- import { n as MOBILE_FEED_MAX_PAGE_SIZE, r as MOBILE_FEED_MIN_NOTIONAL_FLOOR, t as MOBILE_FEED_IMAGE_MAX_REQUEST_BYTES } from "../feed-DErOLaoY.cjs";
2
- export { MOBILE_FEED_IMAGE_MAX_REQUEST_BYTES, MOBILE_FEED_MAX_PAGE_SIZE, MOBILE_FEED_MIN_NOTIONAL_FLOOR };
1
+ import { i as isMobileSocialFeedUploadedImage, n as MOBILE_FEED_MAX_PAGE_SIZE, r as MOBILE_FEED_MIN_NOTIONAL_FLOOR, t as MOBILE_FEED_IMAGE_MAX_REQUEST_BYTES } from "../feed-BrgkFqP3.cjs";
2
+ export { MOBILE_FEED_IMAGE_MAX_REQUEST_BYTES, MOBILE_FEED_MAX_PAGE_SIZE, MOBILE_FEED_MIN_NOTIONAL_FLOOR, isMobileSocialFeedUploadedImage };
@@ -1,2 +1,2 @@
1
- import { n as MOBILE_FEED_MAX_PAGE_SIZE, r as MOBILE_FEED_MIN_NOTIONAL_FLOOR, t as MOBILE_FEED_IMAGE_MAX_REQUEST_BYTES } from "../feed-DErOLaoY.js";
2
- export { MOBILE_FEED_IMAGE_MAX_REQUEST_BYTES, MOBILE_FEED_MAX_PAGE_SIZE, MOBILE_FEED_MIN_NOTIONAL_FLOOR };
1
+ import { i as isMobileSocialFeedUploadedImage, n as MOBILE_FEED_MAX_PAGE_SIZE, r as MOBILE_FEED_MIN_NOTIONAL_FLOOR, t as MOBILE_FEED_IMAGE_MAX_REQUEST_BYTES } from "../feed-DcbhLoo1.js";
2
+ export { MOBILE_FEED_IMAGE_MAX_REQUEST_BYTES, MOBILE_FEED_MAX_PAGE_SIZE, MOBILE_FEED_MIN_NOTIONAL_FLOOR, isMobileSocialFeedUploadedImage };
@@ -1,5 +1,13 @@
1
1
  //#region src/utils/feed.ts
2
2
  /**
3
+ * Narrows a feed image to protected upload metadata rather than an external URL.
4
+ * @param image - An image returned with feed content.
5
+ * @returns Whether the image has upload metadata and requires Mobile session headers.
6
+ */
7
+ function isMobileSocialFeedUploadedImage(image) {
8
+ return "imageId" in image;
9
+ }
10
+ /**
3
11
  * Maximum feed page size the backend accepts; also the default when `limit` is omitted. Requests above this
4
12
  * fail with `INVALID_FEED_FILTER`.
5
13
  */
@@ -12,6 +20,6 @@ const MOBILE_FEED_IMAGE_MAX_REQUEST_BYTES = 2 * 1024 * 1024;
12
20
  */
13
21
  const MOBILE_FEED_MIN_NOTIONAL_FLOOR = 1e3;
14
22
  //#endregion
15
- export { MOBILE_FEED_IMAGE_MAX_REQUEST_BYTES, MOBILE_FEED_MAX_PAGE_SIZE, MOBILE_FEED_MIN_NOTIONAL_FLOOR };
23
+ export { MOBILE_FEED_IMAGE_MAX_REQUEST_BYTES, MOBILE_FEED_MAX_PAGE_SIZE, MOBILE_FEED_MIN_NOTIONAL_FLOOR, isMobileSocialFeedUploadedImage };
16
24
 
17
25
  //# sourceMappingURL=feed.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"feed.js","names":[],"sources":["../../src/utils/feed.ts"],"sourcesContent":["/**\n * Maximum feed page size the backend accepts; also the default when `limit` is omitted. Requests above this\n * fail with `INVALID_FEED_FILTER`.\n */\nexport const MOBILE_FEED_MAX_PAGE_SIZE = 50;\n\n/** Maximum feed image upload request size, including the signed payload and multipart framing (2 MiB). */\nexport const MOBILE_FEED_IMAGE_MAX_REQUEST_BYTES = 2 * 1024 * 1024;\n\n/**\n * Lowest minimum notional the backend accepts, in whole dollars. Filtered requests below this fail with\n * `INVALID_FEED_FILTER`; omitting the filter entirely returns the unfiltered feed.\n */\nexport const MOBILE_FEED_MIN_NOTIONAL_FLOOR = 1_000;\n"],"mappings":";;;;;AAIA,MAAa,4BAA4B;;AAGzC,MAAa,sCAAsC,IAAI,OAAO;;;;;AAM9D,MAAa,iCAAiC"}
1
+ {"version":3,"file":"feed.js","names":[],"sources":["../../src/utils/feed.ts"],"sourcesContent":["import { MobileSocialFeedImage, MobileSocialFeedUploadedImage } from '../types';\n\n/**\n * Narrows a feed image to protected upload metadata rather than an external URL.\n * @param image - An image returned with feed content.\n * @returns Whether the image has upload metadata and requires Mobile session headers.\n */\nexport function isMobileSocialFeedUploadedImage(\n image: MobileSocialFeedImage,\n): image is MobileSocialFeedUploadedImage {\n return 'imageId' in image;\n}\n\n/**\n * Maximum feed page size the backend accepts; also the default when `limit` is omitted. Requests above this\n * fail with `INVALID_FEED_FILTER`.\n */\nexport const MOBILE_FEED_MAX_PAGE_SIZE = 50;\n\n/** Maximum feed image upload request size, including the signed payload and multipart framing (2 MiB). */\nexport const MOBILE_FEED_IMAGE_MAX_REQUEST_BYTES = 2 * 1024 * 1024;\n\n/**\n * Lowest minimum notional the backend accepts, in whole dollars. Filtered requests below this fail with\n * `INVALID_FEED_FILTER`; omitting the filter entirely returns the unfiltered feed.\n */\nexport const MOBILE_FEED_MIN_NOTIONAL_FLOOR = 1_000;\n"],"mappings":";;;;;;AAOA,SAAgB,gCACd,OACwC;CACxC,OAAO,aAAa;AACtB;;;;;AAMA,MAAa,4BAA4B;;AAGzC,MAAa,sCAAsC,IAAI,OAAO;;;;;AAM9D,MAAa,iCAAiC"}
@@ -21,4 +21,5 @@ exports.MOBILE_PROFILE_SEARCH_MAX_PAGE_SIZE = require_utils_profileSearch.MOBILE
21
21
  exports.MOBILE_PROFILE_SEARCH_QUERY_PATTERN = require_utils_patterns.MOBILE_PROFILE_SEARCH_QUERY_PATTERN;
22
22
  exports.isMobileServerFailureResponse = require_utils_serverResponseGuards.isMobileServerFailureResponse;
23
23
  exports.isMobileServerSuccessResponse = require_utils_serverResponseGuards.isMobileServerSuccessResponse;
24
+ exports.isMobileSocialFeedUploadedImage = require_utils_feed.isMobileSocialFeedUploadedImage;
24
25
  exports.isValidMobileBio = require_utils_profile.isValidMobileBio;
@@ -1,7 +1,7 @@
1
- import { n as MOBILE_FEED_MAX_PAGE_SIZE, r as MOBILE_FEED_MIN_NOTIONAL_FLOOR, t as MOBILE_FEED_IMAGE_MAX_REQUEST_BYTES } from "../feed-DErOLaoY.cjs";
1
+ import { i as isMobileSocialFeedUploadedImage, n as MOBILE_FEED_MAX_PAGE_SIZE, r as MOBILE_FEED_MIN_NOTIONAL_FLOOR, t as MOBILE_FEED_IMAGE_MAX_REQUEST_BYTES } from "../feed-BrgkFqP3.cjs";
2
2
  import { a as MOBILE_PROFILES_MAX_BATCH_SIZE, i as MOBILE_FOLLOW_LIST_MAX_PAGE_SIZE, n as MOBILE_FOLLOW_BATCH_MAX_SIZE, r as MOBILE_FOLLOW_LIST_DEFAULT_PAGE_SIZE, t as MOBILE_FOLLOWED_BY_PREVIEW_LIMIT } from "../follow-B3CZ04c0.cjs";
3
3
  import { n as MOBILE_PROFILE_SEARCH_QUERY_PATTERN, t as MOBILE_DISPLAY_NAME_PATTERN } from "../patterns-3UKIG5IS.cjs";
4
4
  import { n as MOBILE_BIO_MAX_LENGTH, r as isValidMobileBio, t as MOBILE_AVATAR_MAX_UPLOAD_BYTES } from "../profile-BozA3yVP.cjs";
5
5
  import { n as MOBILE_PROFILE_SEARCH_MAX_PAGE_SIZE, t as MOBILE_PROFILE_SEARCH_MAX_ENRICHED_PAGE_SIZE } from "../profileSearch-DCuB-IKD.cjs";
6
- import { n as isMobileServerSuccessResponse, t as isMobileServerFailureResponse } from "../serverResponseGuards-i1njcYKN.cjs";
7
- export { MOBILE_AVATAR_MAX_UPLOAD_BYTES, MOBILE_BIO_MAX_LENGTH, MOBILE_DISPLAY_NAME_PATTERN, MOBILE_FEED_IMAGE_MAX_REQUEST_BYTES, MOBILE_FEED_MAX_PAGE_SIZE, MOBILE_FEED_MIN_NOTIONAL_FLOOR, MOBILE_FOLLOWED_BY_PREVIEW_LIMIT, MOBILE_FOLLOW_BATCH_MAX_SIZE, MOBILE_FOLLOW_LIST_DEFAULT_PAGE_SIZE, MOBILE_FOLLOW_LIST_MAX_PAGE_SIZE, MOBILE_PROFILES_MAX_BATCH_SIZE, MOBILE_PROFILE_SEARCH_MAX_ENRICHED_PAGE_SIZE, MOBILE_PROFILE_SEARCH_MAX_PAGE_SIZE, MOBILE_PROFILE_SEARCH_QUERY_PATTERN, isMobileServerFailureResponse, isMobileServerSuccessResponse, isValidMobileBio };
6
+ import { n as isMobileServerSuccessResponse, t as isMobileServerFailureResponse } from "../serverResponseGuards-CzmldAad.cjs";
7
+ export { MOBILE_AVATAR_MAX_UPLOAD_BYTES, MOBILE_BIO_MAX_LENGTH, MOBILE_DISPLAY_NAME_PATTERN, MOBILE_FEED_IMAGE_MAX_REQUEST_BYTES, MOBILE_FEED_MAX_PAGE_SIZE, MOBILE_FEED_MIN_NOTIONAL_FLOOR, MOBILE_FOLLOWED_BY_PREVIEW_LIMIT, MOBILE_FOLLOW_BATCH_MAX_SIZE, MOBILE_FOLLOW_LIST_DEFAULT_PAGE_SIZE, MOBILE_FOLLOW_LIST_MAX_PAGE_SIZE, MOBILE_PROFILES_MAX_BATCH_SIZE, MOBILE_PROFILE_SEARCH_MAX_ENRICHED_PAGE_SIZE, MOBILE_PROFILE_SEARCH_MAX_PAGE_SIZE, MOBILE_PROFILE_SEARCH_QUERY_PATTERN, isMobileServerFailureResponse, isMobileServerSuccessResponse, isMobileSocialFeedUploadedImage, isValidMobileBio };
@@ -1,7 +1,7 @@
1
- import { n as MOBILE_FEED_MAX_PAGE_SIZE, r as MOBILE_FEED_MIN_NOTIONAL_FLOOR, t as MOBILE_FEED_IMAGE_MAX_REQUEST_BYTES } from "../feed-DErOLaoY.js";
1
+ import { i as isMobileSocialFeedUploadedImage, n as MOBILE_FEED_MAX_PAGE_SIZE, r as MOBILE_FEED_MIN_NOTIONAL_FLOOR, t as MOBILE_FEED_IMAGE_MAX_REQUEST_BYTES } from "../feed-DcbhLoo1.js";
2
2
  import { a as MOBILE_PROFILES_MAX_BATCH_SIZE, i as MOBILE_FOLLOW_LIST_MAX_PAGE_SIZE, n as MOBILE_FOLLOW_BATCH_MAX_SIZE, r as MOBILE_FOLLOW_LIST_DEFAULT_PAGE_SIZE, t as MOBILE_FOLLOWED_BY_PREVIEW_LIMIT } from "../follow-B3CZ04c0.js";
3
3
  import { n as MOBILE_PROFILE_SEARCH_QUERY_PATTERN, t as MOBILE_DISPLAY_NAME_PATTERN } from "../patterns-3UKIG5IS.js";
4
4
  import { n as MOBILE_BIO_MAX_LENGTH, r as isValidMobileBio, t as MOBILE_AVATAR_MAX_UPLOAD_BYTES } from "../profile-BozA3yVP.js";
5
5
  import { n as MOBILE_PROFILE_SEARCH_MAX_PAGE_SIZE, t as MOBILE_PROFILE_SEARCH_MAX_ENRICHED_PAGE_SIZE } from "../profileSearch-DCuB-IKD.js";
6
- import { n as isMobileServerSuccessResponse, t as isMobileServerFailureResponse } from "../serverResponseGuards-Bvw8ltYJ.js";
7
- export { MOBILE_AVATAR_MAX_UPLOAD_BYTES, MOBILE_BIO_MAX_LENGTH, MOBILE_DISPLAY_NAME_PATTERN, MOBILE_FEED_IMAGE_MAX_REQUEST_BYTES, MOBILE_FEED_MAX_PAGE_SIZE, MOBILE_FEED_MIN_NOTIONAL_FLOOR, MOBILE_FOLLOWED_BY_PREVIEW_LIMIT, MOBILE_FOLLOW_BATCH_MAX_SIZE, MOBILE_FOLLOW_LIST_DEFAULT_PAGE_SIZE, MOBILE_FOLLOW_LIST_MAX_PAGE_SIZE, MOBILE_PROFILES_MAX_BATCH_SIZE, MOBILE_PROFILE_SEARCH_MAX_ENRICHED_PAGE_SIZE, MOBILE_PROFILE_SEARCH_MAX_PAGE_SIZE, MOBILE_PROFILE_SEARCH_QUERY_PATTERN, isMobileServerFailureResponse, isMobileServerSuccessResponse, isValidMobileBio };
6
+ import { n as isMobileServerSuccessResponse, t as isMobileServerFailureResponse } from "../serverResponseGuards-Dvkbjp2_.js";
7
+ export { MOBILE_AVATAR_MAX_UPLOAD_BYTES, MOBILE_BIO_MAX_LENGTH, MOBILE_DISPLAY_NAME_PATTERN, MOBILE_FEED_IMAGE_MAX_REQUEST_BYTES, MOBILE_FEED_MAX_PAGE_SIZE, MOBILE_FEED_MIN_NOTIONAL_FLOOR, MOBILE_FOLLOWED_BY_PREVIEW_LIMIT, MOBILE_FOLLOW_BATCH_MAX_SIZE, MOBILE_FOLLOW_LIST_DEFAULT_PAGE_SIZE, MOBILE_FOLLOW_LIST_MAX_PAGE_SIZE, MOBILE_PROFILES_MAX_BATCH_SIZE, MOBILE_PROFILE_SEARCH_MAX_ENRICHED_PAGE_SIZE, MOBILE_PROFILE_SEARCH_MAX_PAGE_SIZE, MOBILE_PROFILE_SEARCH_QUERY_PATTERN, isMobileServerFailureResponse, isMobileServerSuccessResponse, isMobileSocialFeedUploadedImage, isValidMobileBio };
@@ -1,7 +1,7 @@
1
- import { MOBILE_FEED_IMAGE_MAX_REQUEST_BYTES, MOBILE_FEED_MAX_PAGE_SIZE, MOBILE_FEED_MIN_NOTIONAL_FLOOR } from "./feed.js";
1
+ import { MOBILE_FEED_IMAGE_MAX_REQUEST_BYTES, MOBILE_FEED_MAX_PAGE_SIZE, MOBILE_FEED_MIN_NOTIONAL_FLOOR, isMobileSocialFeedUploadedImage } from "./feed.js";
2
2
  import { isMobileServerFailureResponse, isMobileServerSuccessResponse } from "./serverResponseGuards.js";
3
3
  import { MOBILE_FOLLOWED_BY_PREVIEW_LIMIT, MOBILE_FOLLOW_BATCH_MAX_SIZE, MOBILE_FOLLOW_LIST_DEFAULT_PAGE_SIZE, MOBILE_FOLLOW_LIST_MAX_PAGE_SIZE, MOBILE_PROFILES_MAX_BATCH_SIZE } from "./follow.js";
4
4
  import { MOBILE_DISPLAY_NAME_PATTERN, MOBILE_PROFILE_SEARCH_QUERY_PATTERN } from "./patterns.js";
5
5
  import { MOBILE_AVATAR_MAX_UPLOAD_BYTES, MOBILE_BIO_MAX_LENGTH, isValidMobileBio } from "./profile.js";
6
6
  import { MOBILE_PROFILE_SEARCH_MAX_ENRICHED_PAGE_SIZE, MOBILE_PROFILE_SEARCH_MAX_PAGE_SIZE } from "./profileSearch.js";
7
- export { MOBILE_AVATAR_MAX_UPLOAD_BYTES, MOBILE_BIO_MAX_LENGTH, MOBILE_DISPLAY_NAME_PATTERN, MOBILE_FEED_IMAGE_MAX_REQUEST_BYTES, MOBILE_FEED_MAX_PAGE_SIZE, MOBILE_FEED_MIN_NOTIONAL_FLOOR, MOBILE_FOLLOWED_BY_PREVIEW_LIMIT, MOBILE_FOLLOW_BATCH_MAX_SIZE, MOBILE_FOLLOW_LIST_DEFAULT_PAGE_SIZE, MOBILE_FOLLOW_LIST_MAX_PAGE_SIZE, MOBILE_PROFILES_MAX_BATCH_SIZE, MOBILE_PROFILE_SEARCH_MAX_ENRICHED_PAGE_SIZE, MOBILE_PROFILE_SEARCH_MAX_PAGE_SIZE, MOBILE_PROFILE_SEARCH_QUERY_PATTERN, isMobileServerFailureResponse, isMobileServerSuccessResponse, isValidMobileBio };
7
+ export { MOBILE_AVATAR_MAX_UPLOAD_BYTES, MOBILE_BIO_MAX_LENGTH, MOBILE_DISPLAY_NAME_PATTERN, MOBILE_FEED_IMAGE_MAX_REQUEST_BYTES, MOBILE_FEED_MAX_PAGE_SIZE, MOBILE_FEED_MIN_NOTIONAL_FLOOR, MOBILE_FOLLOWED_BY_PREVIEW_LIMIT, MOBILE_FOLLOW_BATCH_MAX_SIZE, MOBILE_FOLLOW_LIST_DEFAULT_PAGE_SIZE, MOBILE_FOLLOW_LIST_MAX_PAGE_SIZE, MOBILE_PROFILES_MAX_BATCH_SIZE, MOBILE_PROFILE_SEARCH_MAX_ENRICHED_PAGE_SIZE, MOBILE_PROFILE_SEARCH_MAX_PAGE_SIZE, MOBILE_PROFILE_SEARCH_QUERY_PATTERN, isMobileServerFailureResponse, isMobileServerSuccessResponse, isMobileSocialFeedUploadedImage, isValidMobileBio };
@@ -1,2 +1,2 @@
1
- import { n as isMobileServerSuccessResponse, t as isMobileServerFailureResponse } from "../serverResponseGuards-i1njcYKN.cjs";
1
+ import { n as isMobileServerSuccessResponse, t as isMobileServerFailureResponse } from "../serverResponseGuards-CzmldAad.cjs";
2
2
  export { isMobileServerFailureResponse, isMobileServerSuccessResponse };
@@ -1,2 +1,2 @@
1
- import { n as isMobileServerSuccessResponse, t as isMobileServerFailureResponse } from "../serverResponseGuards-Bvw8ltYJ.js";
1
+ import { n as isMobileServerSuccessResponse, t as isMobileServerFailureResponse } from "../serverResponseGuards-Dvkbjp2_.js";
2
2
  export { isMobileServerFailureResponse, isMobileServerSuccessResponse };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nadohq/mobile-client",
3
- "version": "0.66.0",
3
+ "version": "0.67.0",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "description": "HTTP client for the Nado mobile service API — username claims, profiles, privacy settings, and push notification devices & preferences",
@@ -42,7 +42,7 @@
42
42
  "types": "./dist/index.d.ts",
43
43
  "dependencies": {
44
44
  "@msgpack/msgpack": "3.1.3",
45
- "@nadohq/shared": "^0.66.0",
45
+ "@nadohq/shared": "^0.67.0",
46
46
  "axios": "1.16.1"
47
47
  },
48
48
  "peerDependencies": {
@@ -54,5 +54,5 @@
54
54
  "bignumber.js": "11.1.1",
55
55
  "viem": "2.52.0"
56
56
  },
57
- "gitHead": "6736c7ef8ecee365ef339764dab15798a0a04117"
57
+ "gitHead": "58263d0bb5d08e10371a917e5c16d61cc81bb937"
58
58
  }