@nadohq/mobile-client 0.37.0 → 0.41.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 (152) hide show
  1. package/README.md +10 -10
  2. package/dist/{MobileClient-C9S_o_eC.cjs → MobileClient-Duy7MvxN.cjs} +39 -46
  3. package/dist/MobileClient-Duy7MvxN.cjs.map +1 -0
  4. package/dist/MobileClient.cjs +1 -1
  5. package/dist/MobileClient.d.cts +29 -31
  6. package/dist/MobileClient.d.cts.map +1 -1
  7. package/dist/MobileClient.d.ts +29 -31
  8. package/dist/MobileClient.d.ts.map +1 -1
  9. package/dist/MobileClient.js +39 -46
  10. package/dist/MobileClient.js.map +1 -1
  11. package/dist/{MobileServerFailureError-CVK3aLOi.d.cts → MobileServerFailureError-BvQYrxjx.d.cts} +3 -3
  12. package/dist/{MobileServerFailureError-CVK3aLOi.d.cts.map → MobileServerFailureError-BvQYrxjx.d.cts.map} +1 -1
  13. package/dist/{MobileServerFailureError-D-76n3pS.d.ts → MobileServerFailureError-CrNpL_L4.d.ts} +3 -3
  14. package/dist/{MobileServerFailureError-D-76n3pS.d.ts.map → MobileServerFailureError-CrNpL_L4.d.ts.map} +1 -1
  15. package/dist/{buildSignedMobileRequest-42meR4yV.d.ts → buildSignedMobileRequest-BqLRFLKV.d.ts} +2 -2
  16. package/dist/{buildSignedMobileRequest-42meR4yV.d.ts.map → buildSignedMobileRequest-BqLRFLKV.d.ts.map} +1 -1
  17. package/dist/{buildSignedMobileRequest-BDxji7Vy.d.cts → buildSignedMobileRequest-DkkwEqIu.d.cts} +2 -2
  18. package/dist/{buildSignedMobileRequest-BDxji7Vy.d.cts.map → buildSignedMobileRequest-DkkwEqIu.d.cts.map} +1 -1
  19. package/dist/{canonicalize-BebHhHcF.d.ts → canonicalize-BRhCpYm1.d.ts} +2 -2
  20. package/dist/canonicalize-BRhCpYm1.d.ts.map +1 -0
  21. package/dist/{canonicalize-CIDJLLgg.d.cts → canonicalize-DtpaaA2B.d.cts} +2 -2
  22. package/dist/canonicalize-DtpaaA2B.d.cts.map +1 -0
  23. package/dist/{clientTypes-2I3x4TTt.d.ts → clientTypes-CB_itU4Z.d.ts} +26 -21
  24. package/dist/clientTypes-CB_itU4Z.d.ts.map +1 -0
  25. package/dist/{clientTypes-tLld8E6J.d.cts → clientTypes-CceWsQzi.d.cts} +26 -21
  26. package/dist/clientTypes-CceWsQzi.d.cts.map +1 -0
  27. package/dist/dataMappers.cjs +16 -2
  28. package/dist/dataMappers.cjs.map +1 -1
  29. package/dist/dataMappers.d.cts +13 -7
  30. package/dist/dataMappers.d.cts.map +1 -1
  31. package/dist/dataMappers.d.ts +13 -7
  32. package/dist/dataMappers.d.ts.map +1 -1
  33. package/dist/dataMappers.js +15 -2
  34. package/dist/dataMappers.js.map +1 -1
  35. package/dist/{eip712MethodByType-2-vyN5SU.d.cts → eip712MethodByType-1xUkvTIp.d.cts} +2 -2
  36. package/dist/eip712MethodByType-1xUkvTIp.d.cts.map +1 -0
  37. package/dist/{eip712MethodByType-CAVpvZoS.d.ts → eip712MethodByType-CrqBJIrp.d.ts} +2 -2
  38. package/dist/eip712MethodByType-CrqBJIrp.d.ts.map +1 -0
  39. package/dist/endpoints.cjs +3 -3
  40. package/dist/endpoints.cjs.map +1 -1
  41. package/dist/endpoints.js +3 -3
  42. package/dist/endpoints.js.map +1 -1
  43. package/dist/index.cjs +1 -1
  44. package/dist/index.d.cts +14 -14
  45. package/dist/index.d.ts +14 -14
  46. package/dist/{payloadHash-BVPYKdk4.d.cts → payloadHash-CIo8Hkh6.d.cts} +2 -2
  47. package/dist/payloadHash-CIo8Hkh6.d.cts.map +1 -0
  48. package/dist/{payloadHash-DMqE5aMo.d.ts → payloadHash-Cv4WwZCZ.d.ts} +2 -2
  49. package/dist/payloadHash-Cv4WwZCZ.d.ts.map +1 -0
  50. package/dist/{serverBaseTypes-DPB1vEvv.d.ts → serverBaseTypes-C2JGib--.d.ts} +2 -2
  51. package/dist/{serverBaseTypes-DPB1vEvv.d.ts.map → serverBaseTypes-C2JGib--.d.ts.map} +1 -1
  52. package/dist/{serverBaseTypes-BybrVE6L.d.cts → serverBaseTypes-YkCmgmt1.d.cts} +2 -2
  53. package/dist/{serverBaseTypes-BybrVE6L.d.cts.map → serverBaseTypes-YkCmgmt1.d.cts.map} +1 -1
  54. package/dist/{serverExecuteTypes-ih4Xbr3J.d.ts → serverExecuteTypes-C2NoNEwu.d.ts} +3 -3
  55. package/dist/{serverExecuteTypes-ih4Xbr3J.d.ts.map → serverExecuteTypes-C2NoNEwu.d.ts.map} +1 -1
  56. package/dist/{serverExecuteTypes-DoR0InCd.d.cts → serverExecuteTypes-DPZbs9ym.d.cts} +3 -3
  57. package/dist/{serverExecuteTypes-DoR0InCd.d.cts.map → serverExecuteTypes-DPZbs9ym.d.cts.map} +1 -1
  58. package/dist/{serverModelTypes-KSm0CAcF.d.cts → serverModelTypes-CDcRlRtw.d.ts} +8 -5
  59. package/dist/serverModelTypes-CDcRlRtw.d.ts.map +1 -0
  60. package/dist/{serverModelTypes-DV-eARP8.d.ts → serverModelTypes-CUzqFA6x.d.cts} +8 -5
  61. package/dist/serverModelTypes-CUzqFA6x.d.cts.map +1 -0
  62. package/dist/{serverQueryTypes-LygPrZn7.d.ts → serverQueryTypes-B0xI1G39.d.ts} +16 -27
  63. package/dist/serverQueryTypes-B0xI1G39.d.ts.map +1 -0
  64. package/dist/{serverQueryTypes-B9OOpiJB.d.cts → serverQueryTypes-RdcIqRnM.d.cts} +16 -27
  65. package/dist/serverQueryTypes-RdcIqRnM.d.cts.map +1 -0
  66. package/dist/{serverRequestTypes-q4xTJHk0.d.cts → serverRequestTypes-Ddws3yXc.d.cts} +35 -20
  67. package/dist/serverRequestTypes-Ddws3yXc.d.cts.map +1 -0
  68. package/dist/{serverRequestTypes-BDXIPjtw.d.ts → serverRequestTypes-Dv9NR-hQ.d.ts} +35 -20
  69. package/dist/serverRequestTypes-Dv9NR-hQ.d.ts.map +1 -0
  70. package/dist/{serverResponseGuards-BcdkKV30.d.ts → serverResponseGuards-BjIzucYt.d.ts} +2 -2
  71. package/dist/{serverResponseGuards-BcdkKV30.d.ts.map → serverResponseGuards-BjIzucYt.d.ts.map} +1 -1
  72. package/dist/{serverResponseGuards-k6xK1bZ1.d.cts → serverResponseGuards-Dg9WbqBA.d.cts} +2 -2
  73. package/dist/{serverResponseGuards-k6xK1bZ1.d.cts.map → serverResponseGuards-Dg9WbqBA.d.cts.map} +1 -1
  74. package/dist/signing/buildSignedMobileRequest.cjs +1 -1
  75. package/dist/signing/buildSignedMobileRequest.d.cts +1 -1
  76. package/dist/signing/buildSignedMobileRequest.d.ts +1 -1
  77. package/dist/signing/canonicalize.cjs +0 -12
  78. package/dist/signing/canonicalize.cjs.map +1 -1
  79. package/dist/signing/canonicalize.d.cts +1 -1
  80. package/dist/signing/canonicalize.d.ts +1 -1
  81. package/dist/signing/canonicalize.js +0 -12
  82. package/dist/signing/canonicalize.js.map +1 -1
  83. package/dist/signing/eip712MethodByType.cjs +1 -3
  84. package/dist/signing/eip712MethodByType.cjs.map +1 -1
  85. package/dist/signing/eip712MethodByType.d.cts +1 -1
  86. package/dist/signing/eip712MethodByType.d.ts +1 -1
  87. package/dist/signing/eip712MethodByType.js +1 -3
  88. package/dist/signing/eip712MethodByType.js.map +1 -1
  89. package/dist/signing/index.d.cts +5 -5
  90. package/dist/signing/index.d.ts +5 -5
  91. package/dist/signing/payloadHash.cjs +1 -1
  92. package/dist/signing/payloadHash.d.cts +1 -1
  93. package/dist/signing/payloadHash.d.ts +1 -1
  94. package/dist/signing/types.d.cts +1 -1
  95. package/dist/signing/types.d.ts +1 -1
  96. package/dist/types/MobileServerFailureError.cjs +1 -1
  97. package/dist/types/MobileServerFailureError.d.cts +1 -1
  98. package/dist/types/MobileServerFailureError.d.ts +1 -1
  99. package/dist/types/clientTypes.d.cts +2 -2
  100. package/dist/types/clientTypes.d.ts +2 -2
  101. package/dist/types/index.d.cts +8 -8
  102. package/dist/types/index.d.ts +8 -8
  103. package/dist/types/mobileErrorCodes.cjs +1 -1
  104. package/dist/types/serverBaseTypes.d.cts +1 -1
  105. package/dist/types/serverBaseTypes.d.ts +1 -1
  106. package/dist/types/serverExecuteTypes.d.cts +1 -1
  107. package/dist/types/serverExecuteTypes.d.ts +1 -1
  108. package/dist/types/serverModelTypes.cjs.map +1 -1
  109. package/dist/types/serverModelTypes.d.cts +1 -1
  110. package/dist/types/serverModelTypes.d.ts +1 -1
  111. package/dist/types/serverModelTypes.js.map +1 -1
  112. package/dist/types/serverQueryTypes.d.cts +2 -2
  113. package/dist/types/serverQueryTypes.d.ts +2 -2
  114. package/dist/types/serverRequestTypes.d.cts +2 -2
  115. package/dist/types/serverRequestTypes.d.ts +2 -2
  116. package/dist/{types-B8lDIhBP.d.ts → types-BIIvIzG2.d.ts} +3 -13
  117. package/dist/types-BIIvIzG2.d.ts.map +1 -0
  118. package/dist/{types-CClB00EN.d.cts → types-UmYaeq1C.d.cts} +3 -13
  119. package/dist/types-UmYaeq1C.d.cts.map +1 -0
  120. package/dist/utils/index.d.cts +1 -1
  121. package/dist/utils/index.d.ts +1 -1
  122. package/dist/utils/serverResponseGuards.d.cts +1 -1
  123. package/dist/utils/serverResponseGuards.d.ts +1 -1
  124. package/package.json +3 -3
  125. package/src/MobileClient.ts +49 -70
  126. package/src/dataMappers.ts +22 -2
  127. package/src/endpoints.ts +3 -3
  128. package/src/signing/canonicalize.ts +0 -14
  129. package/src/signing/eip712MethodByType.ts +0 -2
  130. package/src/signing/signing.test.ts +0 -26
  131. package/src/signing/types.ts +0 -16
  132. package/src/types/clientTypes.ts +23 -19
  133. package/src/types/serverModelTypes.ts +7 -4
  134. package/src/types/serverQueryTypes.ts +12 -29
  135. package/src/types/serverRequestTypes.ts +32 -21
  136. package/dist/MobileClient-C9S_o_eC.cjs.map +0 -1
  137. package/dist/canonicalize-BebHhHcF.d.ts.map +0 -1
  138. package/dist/canonicalize-CIDJLLgg.d.cts.map +0 -1
  139. package/dist/clientTypes-2I3x4TTt.d.ts.map +0 -1
  140. package/dist/clientTypes-tLld8E6J.d.cts.map +0 -1
  141. package/dist/eip712MethodByType-2-vyN5SU.d.cts.map +0 -1
  142. package/dist/eip712MethodByType-CAVpvZoS.d.ts.map +0 -1
  143. package/dist/payloadHash-BVPYKdk4.d.cts.map +0 -1
  144. package/dist/payloadHash-DMqE5aMo.d.ts.map +0 -1
  145. package/dist/serverModelTypes-DV-eARP8.d.ts.map +0 -1
  146. package/dist/serverModelTypes-KSm0CAcF.d.cts.map +0 -1
  147. package/dist/serverQueryTypes-B9OOpiJB.d.cts.map +0 -1
  148. package/dist/serverQueryTypes-LygPrZn7.d.ts.map +0 -1
  149. package/dist/serverRequestTypes-BDXIPjtw.d.ts.map +0 -1
  150. package/dist/serverRequestTypes-q4xTJHk0.d.cts.map +0 -1
  151. package/dist/types-B8lDIhBP.d.ts.map +0 -1
  152. package/dist/types-CClB00EN.d.cts.map +0 -1
@@ -1,8 +1,8 @@
1
- import { _ as MobileServerNotificationPreferences, v as MobileServerProfile } from "./serverModelTypes-DV-eARP8.js";
2
- import { S as MobilePublicProfile, b as MobileNotificationPreferences, m as MobileFollowMutationResult, p as MobileFollowListPage, u as MobileFeedPage, w as MobileRegisteredWallet, x as MobileProfilesInclude } from "./clientTypes-2I3x4TTt.js";
3
- import { n as MobileServerProfilesInclude } from "./serverRequestTypes-BDXIPjtw.js";
4
- import { a as MobileServerFollowMutationResponse } from "./serverExecuteTypes-ih4Xbr3J.js";
5
- import { c as MobileServerRegisteredWalletResponse, n as MobileServerFollowListResponse, t as MobileServerFeedResponse } from "./serverQueryTypes-LygPrZn7.js";
1
+ import { _ as MobileServerNotificationPreferences, v as MobileServerProfile } from "./serverModelTypes-CDcRlRtw.js";
2
+ import { C as MobileRegisteredWallet, b as MobileProfilesInclude, m as MobileFollowMutationResult, n as GetMobileFollowListParams, p as MobileFollowListPage, u as MobileFeedPage, x as MobilePublicProfile, y as MobileNotificationPreferences } from "./clientTypes-CB_itU4Z.js";
3
+ import { n as MobileServerFollowListRequest, r as MobileServerProfilesInclude } from "./serverRequestTypes-Dv9NR-hQ.js";
4
+ import { a as MobileServerFollowMutationResponse } from "./serverExecuteTypes-C2NoNEwu.js";
5
+ import { c as MobileServerRegisteredWalletResponse, n as MobileServerFollowListResponse, t as MobileServerFeedResponse } from "./serverQueryTypes-B0xI1G39.js";
6
6
 
7
7
  //#region src/dataMappers.d.ts
8
8
  /**
@@ -12,7 +12,8 @@ import { c as MobileServerRegisteredWalletResponse, n as MobileServerFollowListR
12
12
  */
13
13
  declare function mapMobilePublicProfile(server: MobileServerProfile): MobilePublicProfile;
14
14
  /**
15
- * Maps a server-side Followers or Following response to a client-side {@link MobileFollowListPage}.
15
+ * Maps a server-side Followers or Following response to a client-side {@link MobileFollowListPage}. Rows
16
+ * keep `isFollowing` absent when the request named no `viewAs`, rather than defaulting it to `false`.
16
17
  */
17
18
  declare function mapMobileFollowListPage(server: MobileServerFollowListResponse): MobileFollowListPage;
18
19
  /**
@@ -27,6 +28,11 @@ declare function mapMobileNotificationPreferences(server: MobileServerNotificati
27
28
  * Maps client-side profiles includes (camelCase) to the server-side (snake_case) wire shape.
28
29
  */
29
30
  declare function mapMobileProfilesIncludeToServer(include: MobileProfilesInclude): MobileServerProfilesInclude;
31
+ /**
32
+ * Maps the client-side params of a Followers or Following page to the server-side wire shape. Both list
33
+ * directions take identical params and differ only in the `type` the caller dispatches on.
34
+ */
35
+ declare function mapMobileFollowListParamsToServer(params: GetMobileFollowListParams): MobileServerFollowListRequest;
30
36
  /**
31
37
  * Maps client-side notification preferences (camelCase) to the server-side (snake_case) wire shape.
32
38
  */
@@ -40,5 +46,5 @@ declare function mapMobileFeedPage(server: MobileServerFeedResponse): MobileFeed
40
46
  */
41
47
  declare function mapMobileRegisteredWallet(server: MobileServerRegisteredWalletResponse): MobileRegisteredWallet;
42
48
  //#endregion
43
- export { mapMobileFeedPage, mapMobileFollowListPage, mapMobileFollowMutationResult, mapMobileNotificationPreferences, mapMobileNotificationPreferencesToServer, mapMobileProfilesIncludeToServer, mapMobilePublicProfile, mapMobileRegisteredWallet };
49
+ export { mapMobileFeedPage, mapMobileFollowListPage, mapMobileFollowListParamsToServer, mapMobileFollowMutationResult, mapMobileNotificationPreferences, mapMobileNotificationPreferencesToServer, mapMobileProfilesIncludeToServer, mapMobilePublicProfile, mapMobileRegisteredWallet };
44
50
  //# sourceMappingURL=dataMappers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dataMappers.d.ts","names":[],"sources":["../src/src/dataMappers.ts"],"mappings":";;;;;;;;;AAmCA;;;iBAAgB,sBAAA,CACd,MAAA,EAAQ,mBAAA,GACP,mBAAmB;;;;iBA4CN,uBAAA,CACd,MAAA,EAAQ,8BAAA,GACP,oBAAoB;AA9CD;AA4CtB;;AA5CsB,iBA4DN,6BAAA,CACd,MAAA,EAAQ,kCAAA,GACP,0BAA0B;;;;iBAUb,gCAAA,CACd,MAAA,EAAQ,mCAAA,GACP,6BAA6B;;AA5BT;AAcvB;iBAqCgB,gCAAA,CACd,OAAA,EAAS,qBAAA,GACR,2BAA2B;;;;iBAYd,wCAAA,CACd,WAAA,EAAa,6BAAA,GACZ,mCAAmC;;;AAnDT;iBA+Fb,iBAAA,CACd,MAAA,EAAQ,wBAAA,GACP,cAAc;;;;iBAUD,yBAAA,CACd,MAAA,EAAQ,oCAAA,GACP,sBAAsB"}
1
+ {"version":3,"file":"dataMappers.d.ts","names":[],"sources":["../src/src/dataMappers.ts"],"mappings":";;;;;;;;;AAuCA;;;iBAAgB,sBAAA,CACd,MAAA,EAAQ,mBAAA,GACP,mBAAmB;;;;;iBA6CN,uBAAA,CACd,MAAA,EAAQ,8BAAA,GACP,oBAAoB;AAFvB;;;AAAA,iBAgBgB,6BAAA,CACd,MAAA,EAAQ,kCAAA,GACP,0BAA0B;;;;iBAUb,gCAAA,CACd,MAAA,EAAQ,mCAAA,GACP,6BAA6B;AA5BT;AAcvB;;AAduB,iBAmDP,gCAAA,CACd,OAAA,EAAS,qBAAA,GACR,2BAA2B;;;;;iBAad,iCAAA,CACd,MAAA,EAAQ,yBAAA,GACP,6BAA6B;AApDH;AAU7B;;AAV6B,iBAgEb,wCAAA,CACd,WAAA,EAAa,6BAAA,GACZ,mCAAmC;;;;iBA4CtB,iBAAA,CACd,MAAA,EAAQ,wBAAA,GACP,cAAc;;AApGe;AAuBhC;iBAuFgB,yBAAA,CACd,MAAA,EAAQ,oCAAA,GACP,sBAAsB"}
@@ -38,7 +38,8 @@ function mapMobileFollowSummary(server) {
38
38
  };
39
39
  }
40
40
  /**
41
- * Maps a server-side Followers or Following response to a client-side {@link MobileFollowListPage}.
41
+ * Maps a server-side Followers or Following response to a client-side {@link MobileFollowListPage}. Rows
42
+ * keep `isFollowing` absent when the request named no `viewAs`, rather than defaulting it to `false`.
42
43
  */
43
44
  function mapMobileFollowListPage(server) {
44
45
  return {
@@ -92,6 +93,18 @@ function mapMobileProfilesIncludeToServer(include) {
92
93
  };
93
94
  }
94
95
  /**
96
+ * Maps the client-side params of a Followers or Following page to the server-side wire shape. Both list
97
+ * directions take identical params and differ only in the `type` the caller dispatches on.
98
+ */
99
+ function mapMobileFollowListParamsToServer(params) {
100
+ return {
101
+ subaccount: subaccountToHex(params.target),
102
+ view_as: params.viewAs ? subaccountToHex(params.viewAs) : void 0,
103
+ cursor: params.cursor,
104
+ limit: params.limit
105
+ };
106
+ }
107
+ /**
95
108
  * Maps client-side notification preferences (camelCase) to the server-side (snake_case) wire shape.
96
109
  */
97
110
  function mapMobileNotificationPreferencesToServer(preferences) {
@@ -157,6 +170,6 @@ function mapMobileRegisteredWallet(server) {
157
170
  };
158
171
  }
159
172
  //#endregion
160
- export { mapMobileFeedPage, mapMobileFollowListPage, mapMobileFollowMutationResult, mapMobileNotificationPreferences, mapMobileNotificationPreferencesToServer, mapMobileProfilesIncludeToServer, mapMobilePublicProfile, mapMobileRegisteredWallet };
173
+ export { mapMobileFeedPage, mapMobileFollowListPage, mapMobileFollowListParamsToServer, mapMobileFollowMutationResult, mapMobileNotificationPreferences, mapMobileNotificationPreferencesToServer, mapMobileProfilesIncludeToServer, mapMobilePublicProfile, mapMobileRegisteredWallet };
161
174
 
162
175
  //# sourceMappingURL=dataMappers.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"dataMappers.js","names":[],"sources":["../src/dataMappers.ts"],"sourcesContent":["import { subaccountToHex } from '@nadohq/shared';\nimport {\n MobileFeedPage,\n MobileFeedTrade,\n MobileFollowListPage,\n MobileFollowMutationResult,\n MobileFollowSummary,\n MobileIdentitySummary,\n MobileNotificationPreferenceScope,\n MobileNotificationPreferences,\n MobileProfilesInclude,\n MobilePublicProfile,\n MobileRegisteredWallet,\n} from './types/clientTypes';\nimport { MobileServerFollowMutationResponse } from './types/serverExecuteTypes';\nimport {\n MobileServerFeedTrade,\n MobileServerFollowSummary,\n MobileServerIdentitySummary,\n MobileServerNotificationPreferenceScope,\n MobileServerNotificationPreferences,\n MobileServerProfile,\n} from './types/serverModelTypes';\nimport {\n MobileServerFeedResponse,\n MobileServerFollowListResponse,\n MobileServerRegisteredWalletResponse,\n} from './types/serverQueryTypes';\nimport { MobileServerProfilesInclude } from './types/serverRequestTypes';\n\n/**\n * Maps a server-side public profile (snake_case) to its client-side (camelCase) representation. The three\n * include-gated fields stay `undefined` when the backend omitted them, rather than being coerced to `null`\n * or zero, so callers can tell \"not requested\" from a real value.\n */\nexport function mapMobilePublicProfile(\n server: MobileServerProfile,\n): MobilePublicProfile {\n return {\n subaccount: server.subaccount,\n username: server.username,\n displayName: server.display_name,\n privateMode: server.private_mode,\n followerCount: server.follower_count,\n followingCount: server.following_count,\n followSummary: server.follow_summary\n ? mapMobileFollowSummary(server.follow_summary)\n : undefined,\n };\n}\n\n/**\n * Maps a server-side identity summary (snake_case) to its client-side (camelCase) representation.\n */\nfunction mapMobileIdentitySummary(\n server: MobileServerIdentitySummary,\n): MobileIdentitySummary {\n return {\n subaccount: server.subaccount,\n username: server.username,\n displayName: server.display_name,\n avatarUrl: server.avatar_url,\n };\n}\n\n/**\n * Maps a server-side follow summary to its client-side representation.\n */\nfunction mapMobileFollowSummary(\n server: MobileServerFollowSummary,\n): MobileFollowSummary {\n return {\n isFollowing: server.is_following,\n followedByCount: server.followed_by_count,\n followedBy: server.followed_by.map(mapMobileIdentitySummary),\n };\n}\n\n/**\n * Maps a server-side Followers or Following response to a client-side {@link MobileFollowListPage}.\n */\nexport function mapMobileFollowListPage(\n server: MobileServerFollowListResponse,\n): MobileFollowListPage {\n return {\n accounts: server.accounts.map((account) => ({\n identity: mapMobileIdentitySummary(account.identity),\n isFollowing: account.is_following,\n followerCount: account.follower_count,\n })),\n nextCursor: server.next_cursor,\n };\n}\n\n/**\n * Maps a server-side follow or unfollow response to its client-side representation.\n */\nexport function mapMobileFollowMutationResult(\n server: MobileServerFollowMutationResponse,\n): MobileFollowMutationResult {\n return {\n isFollowing: server.is_following,\n followerCount: server.follower_count,\n };\n}\n\n/**\n * Maps server-side notification preferences (snake_case) to their client-side (camelCase) representation.\n */\nexport function mapMobileNotificationPreferences(\n server: MobileServerNotificationPreferences,\n): MobileNotificationPreferences {\n return {\n schemaVersion: server.schema_version,\n categories: server.categories.map((category) => ({\n category: category.category,\n enabled: category.enabled,\n scopes: category.scopes.map(mapMobileNotificationPreferenceScope),\n })),\n };\n}\n\nfunction mapMobileNotificationPreferenceScope(\n server: MobileServerNotificationPreferenceScope,\n): MobileNotificationPreferenceScope {\n if (server.type === 'subaccount') {\n return { type: 'subaccount', subaccount: server.subaccount };\n }\n return { type: 'product', productId: server.product_id };\n}\n\n/**\n * Maps client-side profiles includes (camelCase) to the server-side (snake_case) wire shape.\n */\nexport function mapMobileProfilesIncludeToServer(\n include: MobileProfilesInclude,\n): MobileServerProfilesInclude {\n return {\n follow_counts: include.followCounts,\n follow_summary: include.followSummary\n ? { view_as: subaccountToHex(include.followSummary.viewAs) }\n : undefined,\n };\n}\n\n/**\n * Maps client-side notification preferences (camelCase) to the server-side (snake_case) wire shape.\n */\nexport function mapMobileNotificationPreferencesToServer(\n preferences: MobileNotificationPreferences,\n): MobileServerNotificationPreferences {\n return {\n schema_version: preferences.schemaVersion,\n categories: preferences.categories.map((category) => ({\n category: category.category,\n enabled: category.enabled,\n scopes: category.scopes.map(mapMobileNotificationPreferenceScopeToServer),\n })),\n };\n}\n\nfunction mapMobileNotificationPreferenceScopeToServer(\n scope: MobileNotificationPreferenceScope,\n): MobileServerNotificationPreferenceScope {\n if (scope.type === 'subaccount') {\n return { type: 'subaccount', subaccount: scope.subaccount };\n }\n return { type: 'product', product_id: scope.productId };\n}\n\n/**\n * Maps a server-side feed trade (snake_case) to its client-side (camelCase) representation.\n */\nfunction mapMobileFeedTrade(server: MobileServerFeedTrade): MobileFeedTrade {\n return {\n ...mapMobileIdentitySummary(server),\n orderDigest: server.order_digest,\n productId: server.product_id,\n quantity: server.quantity,\n notional: server.notional,\n averagePrice: server.average_price,\n margin: {\n mode: server.margin.mode,\n estimatedLeverage: server.margin.estimated_leverage,\n },\n position: server.position,\n realizedPnl: server.realized_pnl,\n filledAt: server.filled_at_ms,\n };\n}\n\n/**\n * Maps a server-side feed response to a client-side {@link MobileFeedPage}.\n */\nexport function mapMobileFeedPage(\n server: MobileServerFeedResponse,\n): MobileFeedPage {\n return {\n trades: server.trades.map(mapMobileFeedTrade),\n nextCursor: server.next_cursor,\n };\n}\n\n/**\n * Maps a server-side registered wallet (snake_case) to its client-side (camelCase) representation.\n */\nexport function mapMobileRegisteredWallet(\n server: MobileServerRegisteredWalletResponse,\n): MobileRegisteredWallet {\n return {\n wallet: server.wallet,\n platform: server.platform,\n locale: server.locale,\n appVersion: server.app_version,\n tokenFingerprintPrefix: server.token_fingerprint_prefix,\n lastSeenAt: server.last_seen_at,\n };\n}\n"],"mappings":";;;;;;;AAmCA,SAAgB,uBACd,QACqB;CACrB,OAAO;EACL,YAAY,OAAO;EACnB,UAAU,OAAO;EACjB,aAAa,OAAO;EACpB,aAAa,OAAO;EACpB,eAAe,OAAO;EACtB,gBAAgB,OAAO;EACvB,eAAe,OAAO,iBAClB,uBAAuB,OAAO,cAAc,IAC5C,KAAA;CACN;AACF;;;;AAKA,SAAS,yBACP,QACuB;CACvB,OAAO;EACL,YAAY,OAAO;EACnB,UAAU,OAAO;EACjB,aAAa,OAAO;EACpB,WAAW,OAAO;CACpB;AACF;;;;AAKA,SAAS,uBACP,QACqB;CACrB,OAAO;EACL,aAAa,OAAO;EACpB,iBAAiB,OAAO;EACxB,YAAY,OAAO,YAAY,IAAI,wBAAwB;CAC7D;AACF;;;;AAKA,SAAgB,wBACd,QACsB;CACtB,OAAO;EACL,UAAU,OAAO,SAAS,KAAK,aAAa;GAC1C,UAAU,yBAAyB,QAAQ,QAAQ;GACnD,aAAa,QAAQ;GACrB,eAAe,QAAQ;EACzB,EAAE;EACF,YAAY,OAAO;CACrB;AACF;;;;AAKA,SAAgB,8BACd,QAC4B;CAC5B,OAAO;EACL,aAAa,OAAO;EACpB,eAAe,OAAO;CACxB;AACF;;;;AAKA,SAAgB,iCACd,QAC+B;CAC/B,OAAO;EACL,eAAe,OAAO;EACtB,YAAY,OAAO,WAAW,KAAK,cAAc;GAC/C,UAAU,SAAS;GACnB,SAAS,SAAS;GAClB,QAAQ,SAAS,OAAO,IAAI,oCAAoC;EAClE,EAAE;CACJ;AACF;AAEA,SAAS,qCACP,QACmC;CACnC,IAAI,OAAO,SAAS,cAClB,OAAO;EAAE,MAAM;EAAc,YAAY,OAAO;CAAW;CAE7D,OAAO;EAAE,MAAM;EAAW,WAAW,OAAO;CAAW;AACzD;;;;AAKA,SAAgB,iCACd,SAC6B;CAC7B,OAAO;EACL,eAAe,QAAQ;EACvB,gBAAgB,QAAQ,gBACpB,EAAE,SAAS,gBAAgB,QAAQ,cAAc,MAAM,EAAE,IACzD,KAAA;CACN;AACF;;;;AAKA,SAAgB,yCACd,aACqC;CACrC,OAAO;EACL,gBAAgB,YAAY;EAC5B,YAAY,YAAY,WAAW,KAAK,cAAc;GACpD,UAAU,SAAS;GACnB,SAAS,SAAS;GAClB,QAAQ,SAAS,OAAO,IAAI,4CAA4C;EAC1E,EAAE;CACJ;AACF;AAEA,SAAS,6CACP,OACyC;CACzC,IAAI,MAAM,SAAS,cACjB,OAAO;EAAE,MAAM;EAAc,YAAY,MAAM;CAAW;CAE5D,OAAO;EAAE,MAAM;EAAW,YAAY,MAAM;CAAU;AACxD;;;;AAKA,SAAS,mBAAmB,QAAgD;CAC1E,OAAO;EACL,GAAG,yBAAyB,MAAM;EAClC,aAAa,OAAO;EACpB,WAAW,OAAO;EAClB,UAAU,OAAO;EACjB,UAAU,OAAO;EACjB,cAAc,OAAO;EACrB,QAAQ;GACN,MAAM,OAAO,OAAO;GACpB,mBAAmB,OAAO,OAAO;EACnC;EACA,UAAU,OAAO;EACjB,aAAa,OAAO;EACpB,UAAU,OAAO;CACnB;AACF;;;;AAKA,SAAgB,kBACd,QACgB;CAChB,OAAO;EACL,QAAQ,OAAO,OAAO,IAAI,kBAAkB;EAC5C,YAAY,OAAO;CACrB;AACF;;;;AAKA,SAAgB,0BACd,QACwB;CACxB,OAAO;EACL,QAAQ,OAAO;EACf,UAAU,OAAO;EACjB,QAAQ,OAAO;EACf,YAAY,OAAO;EACnB,wBAAwB,OAAO;EAC/B,YAAY,OAAO;CACrB;AACF"}
1
+ {"version":3,"file":"dataMappers.js","names":[],"sources":["../src/dataMappers.ts"],"sourcesContent":["import { subaccountToHex } from '@nadohq/shared';\nimport {\n GetMobileFollowListParams,\n MobileFeedPage,\n MobileFeedTrade,\n MobileFollowListPage,\n MobileFollowMutationResult,\n MobileFollowSummary,\n MobileIdentitySummary,\n MobileNotificationPreferenceScope,\n MobileNotificationPreferences,\n MobileProfilesInclude,\n MobilePublicProfile,\n MobileRegisteredWallet,\n} from './types/clientTypes';\nimport { MobileServerFollowMutationResponse } from './types/serverExecuteTypes';\nimport {\n MobileServerFeedTrade,\n MobileServerFollowSummary,\n MobileServerIdentitySummary,\n MobileServerNotificationPreferenceScope,\n MobileServerNotificationPreferences,\n MobileServerProfile,\n} from './types/serverModelTypes';\nimport {\n MobileServerFeedResponse,\n MobileServerFollowListResponse,\n MobileServerRegisteredWalletResponse,\n} from './types/serverQueryTypes';\nimport {\n MobileServerFollowListRequest,\n MobileServerProfilesInclude,\n} from './types/serverRequestTypes';\n\n/**\n * Maps a server-side public profile (snake_case) to its client-side (camelCase) representation. The three\n * include-gated fields stay `undefined` when the backend omitted them, rather than being coerced to `null`\n * or zero, so callers can tell \"not requested\" from a real value.\n */\nexport function mapMobilePublicProfile(\n server: MobileServerProfile,\n): MobilePublicProfile {\n return {\n subaccount: server.subaccount,\n username: server.username,\n displayName: server.display_name,\n privateMode: server.private_mode,\n followerCount: server.follower_count,\n followingCount: server.following_count,\n followSummary: server.follow_summary\n ? mapMobileFollowSummary(server.follow_summary)\n : undefined,\n };\n}\n\n/**\n * Maps a server-side identity summary (snake_case) to its client-side (camelCase) representation.\n */\nfunction mapMobileIdentitySummary(\n server: MobileServerIdentitySummary,\n): MobileIdentitySummary {\n return {\n subaccount: server.subaccount,\n username: server.username,\n displayName: server.display_name,\n avatarUrl: server.avatar_url,\n };\n}\n\n/**\n * Maps a server-side follow summary to its client-side representation.\n */\nfunction mapMobileFollowSummary(\n server: MobileServerFollowSummary,\n): MobileFollowSummary {\n return {\n isFollowing: server.is_following,\n followedByCount: server.followed_by_count,\n followedBy: server.followed_by.map(mapMobileIdentitySummary),\n };\n}\n\n/**\n * Maps a server-side Followers or Following response to a client-side {@link MobileFollowListPage}. Rows\n * keep `isFollowing` absent when the request named no `viewAs`, rather than defaulting it to `false`.\n */\nexport function mapMobileFollowListPage(\n server: MobileServerFollowListResponse,\n): MobileFollowListPage {\n return {\n accounts: server.accounts.map((account) => ({\n identity: mapMobileIdentitySummary(account.identity),\n isFollowing: account.is_following,\n followerCount: account.follower_count,\n })),\n nextCursor: server.next_cursor,\n };\n}\n\n/**\n * Maps a server-side follow or unfollow response to its client-side representation.\n */\nexport function mapMobileFollowMutationResult(\n server: MobileServerFollowMutationResponse,\n): MobileFollowMutationResult {\n return {\n isFollowing: server.is_following,\n followerCount: server.follower_count,\n };\n}\n\n/**\n * Maps server-side notification preferences (snake_case) to their client-side (camelCase) representation.\n */\nexport function mapMobileNotificationPreferences(\n server: MobileServerNotificationPreferences,\n): MobileNotificationPreferences {\n return {\n schemaVersion: server.schema_version,\n categories: server.categories.map((category) => ({\n category: category.category,\n enabled: category.enabled,\n scopes: category.scopes.map(mapMobileNotificationPreferenceScope),\n })),\n };\n}\n\nfunction mapMobileNotificationPreferenceScope(\n server: MobileServerNotificationPreferenceScope,\n): MobileNotificationPreferenceScope {\n if (server.type === 'subaccount') {\n return { type: 'subaccount', subaccount: server.subaccount };\n }\n return { type: 'product', productId: server.product_id };\n}\n\n/**\n * Maps client-side profiles includes (camelCase) to the server-side (snake_case) wire shape.\n */\nexport function mapMobileProfilesIncludeToServer(\n include: MobileProfilesInclude,\n): MobileServerProfilesInclude {\n return {\n follow_counts: include.followCounts,\n follow_summary: include.followSummary\n ? { view_as: subaccountToHex(include.followSummary.viewAs) }\n : undefined,\n };\n}\n\n/**\n * Maps the client-side params of a Followers or Following page to the server-side wire shape. Both list\n * directions take identical params and differ only in the `type` the caller dispatches on.\n */\nexport function mapMobileFollowListParamsToServer(\n params: GetMobileFollowListParams,\n): MobileServerFollowListRequest {\n return {\n subaccount: subaccountToHex(params.target),\n view_as: params.viewAs ? subaccountToHex(params.viewAs) : undefined,\n cursor: params.cursor,\n limit: params.limit,\n };\n}\n\n/**\n * Maps client-side notification preferences (camelCase) to the server-side (snake_case) wire shape.\n */\nexport function mapMobileNotificationPreferencesToServer(\n preferences: MobileNotificationPreferences,\n): MobileServerNotificationPreferences {\n return {\n schema_version: preferences.schemaVersion,\n categories: preferences.categories.map((category) => ({\n category: category.category,\n enabled: category.enabled,\n scopes: category.scopes.map(mapMobileNotificationPreferenceScopeToServer),\n })),\n };\n}\n\nfunction mapMobileNotificationPreferenceScopeToServer(\n scope: MobileNotificationPreferenceScope,\n): MobileServerNotificationPreferenceScope {\n if (scope.type === 'subaccount') {\n return { type: 'subaccount', subaccount: scope.subaccount };\n }\n return { type: 'product', product_id: scope.productId };\n}\n\n/**\n * Maps a server-side feed trade (snake_case) to its client-side (camelCase) representation.\n */\nfunction mapMobileFeedTrade(server: MobileServerFeedTrade): MobileFeedTrade {\n return {\n ...mapMobileIdentitySummary(server),\n orderDigest: server.order_digest,\n productId: server.product_id,\n quantity: server.quantity,\n notional: server.notional,\n averagePrice: server.average_price,\n margin: {\n mode: server.margin.mode,\n estimatedLeverage: server.margin.estimated_leverage,\n },\n position: server.position,\n realizedPnl: server.realized_pnl,\n filledAt: server.filled_at_ms,\n };\n}\n\n/**\n * Maps a server-side feed response to a client-side {@link MobileFeedPage}.\n */\nexport function mapMobileFeedPage(\n server: MobileServerFeedResponse,\n): MobileFeedPage {\n return {\n trades: server.trades.map(mapMobileFeedTrade),\n nextCursor: server.next_cursor,\n };\n}\n\n/**\n * Maps a server-side registered wallet (snake_case) to its client-side (camelCase) representation.\n */\nexport function mapMobileRegisteredWallet(\n server: MobileServerRegisteredWalletResponse,\n): MobileRegisteredWallet {\n return {\n wallet: server.wallet,\n platform: server.platform,\n locale: server.locale,\n appVersion: server.app_version,\n tokenFingerprintPrefix: server.token_fingerprint_prefix,\n lastSeenAt: server.last_seen_at,\n };\n}\n"],"mappings":";;;;;;;AAuCA,SAAgB,uBACd,QACqB;CACrB,OAAO;EACL,YAAY,OAAO;EACnB,UAAU,OAAO;EACjB,aAAa,OAAO;EACpB,aAAa,OAAO;EACpB,eAAe,OAAO;EACtB,gBAAgB,OAAO;EACvB,eAAe,OAAO,iBAClB,uBAAuB,OAAO,cAAc,IAC5C,KAAA;CACN;AACF;;;;AAKA,SAAS,yBACP,QACuB;CACvB,OAAO;EACL,YAAY,OAAO;EACnB,UAAU,OAAO;EACjB,aAAa,OAAO;EACpB,WAAW,OAAO;CACpB;AACF;;;;AAKA,SAAS,uBACP,QACqB;CACrB,OAAO;EACL,aAAa,OAAO;EACpB,iBAAiB,OAAO;EACxB,YAAY,OAAO,YAAY,IAAI,wBAAwB;CAC7D;AACF;;;;;AAMA,SAAgB,wBACd,QACsB;CACtB,OAAO;EACL,UAAU,OAAO,SAAS,KAAK,aAAa;GAC1C,UAAU,yBAAyB,QAAQ,QAAQ;GACnD,aAAa,QAAQ;GACrB,eAAe,QAAQ;EACzB,EAAE;EACF,YAAY,OAAO;CACrB;AACF;;;;AAKA,SAAgB,8BACd,QAC4B;CAC5B,OAAO;EACL,aAAa,OAAO;EACpB,eAAe,OAAO;CACxB;AACF;;;;AAKA,SAAgB,iCACd,QAC+B;CAC/B,OAAO;EACL,eAAe,OAAO;EACtB,YAAY,OAAO,WAAW,KAAK,cAAc;GAC/C,UAAU,SAAS;GACnB,SAAS,SAAS;GAClB,QAAQ,SAAS,OAAO,IAAI,oCAAoC;EAClE,EAAE;CACJ;AACF;AAEA,SAAS,qCACP,QACmC;CACnC,IAAI,OAAO,SAAS,cAClB,OAAO;EAAE,MAAM;EAAc,YAAY,OAAO;CAAW;CAE7D,OAAO;EAAE,MAAM;EAAW,WAAW,OAAO;CAAW;AACzD;;;;AAKA,SAAgB,iCACd,SAC6B;CAC7B,OAAO;EACL,eAAe,QAAQ;EACvB,gBAAgB,QAAQ,gBACpB,EAAE,SAAS,gBAAgB,QAAQ,cAAc,MAAM,EAAE,IACzD,KAAA;CACN;AACF;;;;;AAMA,SAAgB,kCACd,QAC+B;CAC/B,OAAO;EACL,YAAY,gBAAgB,OAAO,MAAM;EACzC,SAAS,OAAO,SAAS,gBAAgB,OAAO,MAAM,IAAI,KAAA;EAC1D,QAAQ,OAAO;EACf,OAAO,OAAO;CAChB;AACF;;;;AAKA,SAAgB,yCACd,aACqC;CACrC,OAAO;EACL,gBAAgB,YAAY;EAC5B,YAAY,YAAY,WAAW,KAAK,cAAc;GACpD,UAAU,SAAS;GACnB,SAAS,SAAS;GAClB,QAAQ,SAAS,OAAO,IAAI,4CAA4C;EAC1E,EAAE;CACJ;AACF;AAEA,SAAS,6CACP,OACyC;CACzC,IAAI,MAAM,SAAS,cACjB,OAAO;EAAE,MAAM;EAAc,YAAY,MAAM;CAAW;CAE5D,OAAO;EAAE,MAAM;EAAW,YAAY,MAAM;CAAU;AACxD;;;;AAKA,SAAS,mBAAmB,QAAgD;CAC1E,OAAO;EACL,GAAG,yBAAyB,MAAM;EAClC,aAAa,OAAO;EACpB,WAAW,OAAO;EAClB,UAAU,OAAO;EACjB,UAAU,OAAO;EACjB,cAAc,OAAO;EACrB,QAAQ;GACN,MAAM,OAAO,OAAO;GACpB,mBAAmB,OAAO,OAAO;EACnC;EACA,UAAU,OAAO;EACjB,aAAa,OAAO;EACpB,UAAU,OAAO;CACnB;AACF;;;;AAKA,SAAgB,kBACd,QACgB;CAChB,OAAO;EACL,QAAQ,OAAO,OAAO,IAAI,kBAAkB;EAC5C,YAAY,OAAO;CACrB;AACF;;;;AAKA,SAAgB,0BACd,QACwB;CACxB,OAAO;EACL,QAAQ,OAAO;EACf,UAAU,OAAO;EACjB,QAAQ,OAAO;EACf,YAAY,OAAO;EACnB,wBAAwB,OAAO;EAC/B,YAAY,OAAO;CACrB;AACF"}
@@ -1,4 +1,4 @@
1
- import { n as MobileSignedInner } from "./types-CClB00EN.cjs";
1
+ import { n as MobileSignedInner } from "./types-UmYaeq1C.cjs";
2
2
 
3
3
  //#region src/signing/eip712MethodByType.d.ts
4
4
  /**
@@ -7,4 +7,4 @@ import { n as MobileSignedInner } from "./types-CClB00EN.cjs";
7
7
  declare const MOBILE_EIP712_METHOD_BY_TYPE: Record<MobileSignedInner['type'], string>;
8
8
  //#endregion
9
9
  export { MOBILE_EIP712_METHOD_BY_TYPE as t };
10
- //# sourceMappingURL=eip712MethodByType-2-vyN5SU.d.cts.map
10
+ //# sourceMappingURL=eip712MethodByType-1xUkvTIp.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eip712MethodByType-1xUkvTIp.d.cts","names":[],"sources":["../src/signing/src/signing/eip712MethodByType.ts"],"mappings":";;;;;AAKA;cAAa,4BAAA,EAA8B,MAAM,CAC/C,iBAAA"}
@@ -1,4 +1,4 @@
1
- import { n as MobileSignedInner } from "./types-B8lDIhBP.js";
1
+ import { n as MobileSignedInner } from "./types-BIIvIzG2.js";
2
2
 
3
3
  //#region src/signing/eip712MethodByType.d.ts
4
4
  /**
@@ -7,4 +7,4 @@ import { n as MobileSignedInner } from "./types-B8lDIhBP.js";
7
7
  declare const MOBILE_EIP712_METHOD_BY_TYPE: Record<MobileSignedInner['type'], string>;
8
8
  //#endregion
9
9
  export { MOBILE_EIP712_METHOD_BY_TYPE as t };
10
- //# sourceMappingURL=eip712MethodByType-CAVpvZoS.d.ts.map
10
+ //# sourceMappingURL=eip712MethodByType-CrqBJIrp.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eip712MethodByType-CrqBJIrp.d.ts","names":[],"sources":["../src/signing/src/signing/eip712MethodByType.ts"],"mappings":";;;;;AAKA;cAAa,4BAAA,EAA8B,MAAM,CAC/C,iBAAA"}
@@ -4,9 +4,9 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
4
4
  * Base URLs for the Nado mobile service API, keyed by chain environment.
5
5
  */
6
6
  const MOBILE_CLIENT_ENDPOINTS = {
7
- local: "http://mobile.local.nado.xyz:8004/v1",
8
- inkTestnet: "https://mobile.test.nado.xyz/v1",
9
- inkMainnet: "https://mobile.prod.nado.xyz/v1"
7
+ local: "http://mobile.local.nado.xyz:8004/v1/mobile",
8
+ inkTestnet: "https://api.test.nado.xyz/mobile/v1",
9
+ inkMainnet: "https://api.prod.nado.xyz/mobile/v1"
10
10
  };
11
11
  //#endregion
12
12
  exports.MOBILE_CLIENT_ENDPOINTS = MOBILE_CLIENT_ENDPOINTS;
@@ -1 +1 @@
1
- {"version":3,"file":"endpoints.cjs","names":[],"sources":["../src/endpoints.ts"],"sourcesContent":["import { ChainEnv } from '@nadohq/shared';\n\n/**\n * Base URLs for the Nado mobile service API, keyed by chain environment.\n */\nexport const MOBILE_CLIENT_ENDPOINTS: Record<ChainEnv, string> = {\n local: 'http://mobile.local.nado.xyz:8004/v1',\n inkTestnet: 'https://mobile.test.nado.xyz/v1',\n inkMainnet: 'https://mobile.prod.nado.xyz/v1',\n};\n"],"mappings":";;;;;AAKA,MAAa,0BAAoD;CAC/D,OAAO;CACP,YAAY;CACZ,YAAY;AACd"}
1
+ {"version":3,"file":"endpoints.cjs","names":[],"sources":["../src/endpoints.ts"],"sourcesContent":["import { ChainEnv } from '@nadohq/shared';\n\n/**\n * Base URLs for the Nado mobile service API, keyed by chain environment.\n */\nexport const MOBILE_CLIENT_ENDPOINTS: Record<ChainEnv, string> = {\n local: 'http://mobile.local.nado.xyz:8004/v1/mobile',\n inkTestnet: 'https://api.test.nado.xyz/mobile/v1',\n inkMainnet: 'https://api.prod.nado.xyz/mobile/v1',\n};\n"],"mappings":";;;;;AAKA,MAAa,0BAAoD;CAC/D,OAAO;CACP,YAAY;CACZ,YAAY;AACd"}
package/dist/endpoints.js CHANGED
@@ -3,9 +3,9 @@
3
3
  * Base URLs for the Nado mobile service API, keyed by chain environment.
4
4
  */
5
5
  const MOBILE_CLIENT_ENDPOINTS = {
6
- local: "http://mobile.local.nado.xyz:8004/v1",
7
- inkTestnet: "https://mobile.test.nado.xyz/v1",
8
- inkMainnet: "https://mobile.prod.nado.xyz/v1"
6
+ local: "http://mobile.local.nado.xyz:8004/v1/mobile",
7
+ inkTestnet: "https://api.test.nado.xyz/mobile/v1",
8
+ inkMainnet: "https://api.prod.nado.xyz/mobile/v1"
9
9
  };
10
10
  //#endregion
11
11
  export { MOBILE_CLIENT_ENDPOINTS };
@@ -1 +1 @@
1
- {"version":3,"file":"endpoints.js","names":[],"sources":["../src/endpoints.ts"],"sourcesContent":["import { ChainEnv } from '@nadohq/shared';\n\n/**\n * Base URLs for the Nado mobile service API, keyed by chain environment.\n */\nexport const MOBILE_CLIENT_ENDPOINTS: Record<ChainEnv, string> = {\n local: 'http://mobile.local.nado.xyz:8004/v1',\n inkTestnet: 'https://mobile.test.nado.xyz/v1',\n inkMainnet: 'https://mobile.prod.nado.xyz/v1',\n};\n"],"mappings":";;;;AAKA,MAAa,0BAAoD;CAC/D,OAAO;CACP,YAAY;CACZ,YAAY;AACd"}
1
+ {"version":3,"file":"endpoints.js","names":[],"sources":["../src/endpoints.ts"],"sourcesContent":["import { ChainEnv } from '@nadohq/shared';\n\n/**\n * Base URLs for the Nado mobile service API, keyed by chain environment.\n */\nexport const MOBILE_CLIENT_ENDPOINTS: Record<ChainEnv, string> = {\n local: 'http://mobile.local.nado.xyz:8004/v1/mobile',\n inkTestnet: 'https://api.test.nado.xyz/mobile/v1',\n inkMainnet: 'https://api.prod.nado.xyz/mobile/v1',\n};\n"],"mappings":";;;;AAKA,MAAa,0BAAoD;CAC/D,OAAO;CACP,YAAY;CACZ,YAAY;AACd"}
package/dist/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_MobileClient = require("./MobileClient-C9S_o_eC.cjs");
2
+ const require_MobileClient = require("./MobileClient-Duy7MvxN.cjs");
3
3
  const require_signing_canonicalize = require("./signing/canonicalize.cjs");
4
4
  const require_signing_eip712MethodByType = require("./signing/eip712MethodByType.cjs");
5
5
  const require_signing_nonce = require("./signing/nonce.cjs");
package/dist/index.d.cts CHANGED
@@ -1,21 +1,21 @@
1
- import { _ as MobileServerNotificationPreferences, a as MobileFeedTradePosition, c as MobileNotificationCategory, d as MobileServerFeedTrade, f as MobileServerFollowListAccount, g as MobileServerNotificationPreferenceScope, h as MobileServerNotificationCategoryPreference, i as MobileFeedMarginMode, l as MobileNotificationPlatform, m as MobileServerIdentitySummary, n as MOBILE_FEED_TRADE_POSITION_DIRECTIONS, o as MobileFeedTradePositionDirection, p as MobileServerFollowSummary, r as MOBILE_FEED_TRADE_POSITION_EFFECTS, s as MobileFeedTradePositionEffect, t as MOBILE_FEED_MARGIN_MODES, u as MobileServerFeedMargin, v as MobileServerProfile } from "./serverModelTypes-KSm0CAcF.cjs";
2
- import { A as MobileUpdateNotificationPreferencesParams, C as MobileRegisterExpoTokenParams, D as MobileSetUsernameParams, E as MobileSetPrivateModeParams, M as MobileWithExpoTokenParams, O as MobileSignedRequestParams, S as MobilePublicProfile, T as MobileSetFollowParams, _ as MobileIdentitySummary, a as GetMobileNotificationPreferencesParams, b as MobileNotificationPreferences, c as GetMobileUsernameAvailabilityParams, d as MobileFeedTrade, f as MobileFollowListAccount, g as MobileFollowSummary, h as MobileFollowRequestParams, i as GetMobileFollowingParams, j as MobileUsernameAvailability, k as MobileUnregisterExpoTokenParams, l as MobileFeedMargin, m as MobileFollowMutationResult, n as GetMobileFollowListParams, o as GetMobileProfilesParams, p as MobileFollowListPage, r as GetMobileFollowersParams, s as GetMobileRegisteredWalletParams, t as GetMobileFeedParams, u as MobileFeedPage, v as MobileNotificationCategoryPreference, w as MobileRegisteredWallet, x as MobileProfilesInclude, y as MobileNotificationPreferenceScope } from "./clientTypes-tLld8E6J.cjs";
3
- import { a as MobileSignedRequest, i as MobileSignedInnerParams, n as MobileSignedInner, r as MobileSignedInnerByType, t as BuildSignedMobileRequestParams } from "./types-CClB00EN.cjs";
4
- import { t as buildSignedMobileRequest } from "./buildSignedMobileRequest-BDxji7Vy.cjs";
5
- import { t as canonicalizeMobileInner } from "./canonicalize-CIDJLLgg.cjs";
6
- import { t as MOBILE_EIP712_METHOD_BY_TYPE } from "./eip712MethodByType-2-vyN5SU.cjs";
1
+ import { _ as MobileServerNotificationPreferences, a as MobileFeedTradePosition, c as MobileNotificationCategory, d as MobileServerFeedTrade, f as MobileServerFollowListAccount, g as MobileServerNotificationPreferenceScope, h as MobileServerNotificationCategoryPreference, i as MobileFeedMarginMode, l as MobileNotificationPlatform, m as MobileServerIdentitySummary, n as MOBILE_FEED_TRADE_POSITION_DIRECTIONS, o as MobileFeedTradePositionDirection, p as MobileServerFollowSummary, r as MOBILE_FEED_TRADE_POSITION_EFFECTS, s as MobileFeedTradePositionEffect, t as MOBILE_FEED_MARGIN_MODES, u as MobileServerFeedMargin, v as MobileServerProfile } from "./serverModelTypes-CUzqFA6x.cjs";
2
+ import { A as MobileUsernameAvailability, C as MobileRegisteredWallet, D as MobileSignedRequestParams, E as MobileSetUsernameParams, O as MobileUnregisterExpoTokenParams, S as MobileRegisterExpoTokenParams, T as MobileSetPrivateModeParams, _ as MobileNotificationCategoryPreference, a as GetMobileNotificationPreferencesParams, b as MobileProfilesInclude, c as GetMobileUsernameAvailabilityParams, d as MobileFeedTrade, f as MobileFollowListAccount, g as MobileIdentitySummary, h as MobileFollowSummary, i as GetMobileFollowingParams, j as MobileWithExpoTokenParams, k as MobileUpdateNotificationPreferencesParams, l as MobileFeedMargin, m as MobileFollowMutationResult, n as GetMobileFollowListParams, o as GetMobileProfilesParams, p as MobileFollowListPage, r as GetMobileFollowersParams, s as GetMobileRegisteredWalletParams, t as GetMobileFeedParams, u as MobileFeedPage, v as MobileNotificationPreferenceScope, w as MobileSetFollowParams, x as MobilePublicProfile, y as MobileNotificationPreferences } from "./clientTypes-CceWsQzi.cjs";
3
+ import { a as MobileSignedRequest, i as MobileSignedInnerParams, n as MobileSignedInner, r as MobileSignedInnerByType, t as BuildSignedMobileRequestParams } from "./types-UmYaeq1C.cjs";
4
+ import { t as buildSignedMobileRequest } from "./buildSignedMobileRequest-DkkwEqIu.cjs";
5
+ import { t as canonicalizeMobileInner } from "./canonicalize-DtpaaA2B.cjs";
6
+ import { t as MOBILE_EIP712_METHOD_BY_TYPE } from "./eip712MethodByType-1xUkvTIp.cjs";
7
7
  import { t as getMobileNonce } from "./nonce-zGyisRlj.cjs";
8
- import { t as getMobilePayloadHash } from "./payloadHash-BVPYKdk4.cjs";
9
- import { a as MobileServerPublicQueryRequestByType, c as MobileServerSignedQueryRequestType, i as MobileServerPublicExecuteRequestType, n as MobileServerProfilesInclude, o as MobileServerPublicQueryRequestType, r as MobileServerPublicExecuteRequestByType, s as MobileServerRequestType, t as MobileServerExecuteRequestType } from "./serverRequestTypes-q4xTJHk0.cjs";
10
- import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "./serverBaseTypes-BybrVE6L.cjs";
11
- import { a as MobileServerFollowMutationResponse, i as MobileServerExecuteSuccessResponse, n as MobileServerExecuteResponseByType, o as MobileServerPublicExecuteRequest, r as MobileServerExecuteResult, t as MobileServerEmptyExecuteResponse } from "./serverExecuteTypes-DoR0InCd.cjs";
12
- import { a as MobileServerPublicQueryRequest, c as MobileServerRegisteredWalletResponse, d as MobileServerUsernameAvailabilityResponse, i as MobileServerProfilesResponse, l as MobileServerSignedQueryResponseByType, n as MobileServerFollowListResponse, o as MobileServerPublicQueryResponseByType, r as MobileServerNotificationPreferencesResponse, s as MobileServerPublicQuerySuccessResponse, t as MobileServerFeedResponse, u as MobileServerSignedQuerySuccessResponse } from "./serverQueryTypes-B9OOpiJB.cjs";
8
+ import { t as getMobilePayloadHash } from "./payloadHash-CIo8Hkh6.cjs";
9
+ import { a as MobileServerPublicExecuteRequestType, c as MobileServerRequestType, i as MobileServerPublicExecuteRequestByType, n as MobileServerFollowListRequest, o as MobileServerPublicQueryRequestByType, r as MobileServerProfilesInclude, s as MobileServerPublicQueryRequestType, t as MobileServerExecuteRequestType } from "./serverRequestTypes-Ddws3yXc.cjs";
10
+ import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "./serverBaseTypes-YkCmgmt1.cjs";
11
+ import { a as MobileServerFollowMutationResponse, i as MobileServerExecuteSuccessResponse, n as MobileServerExecuteResponseByType, o as MobileServerPublicExecuteRequest, r as MobileServerExecuteResult, t as MobileServerEmptyExecuteResponse } from "./serverExecuteTypes-DPZbs9ym.cjs";
12
+ import { a as MobileServerPublicQueryRequest, c as MobileServerRegisteredWalletResponse, i as MobileServerProfilesResponse, l as MobileServerUsernameAvailabilityResponse, n as MobileServerFollowListResponse, o as MobileServerPublicQueryResponseByType, r as MobileServerNotificationPreferencesResponse, s as MobileServerPublicQuerySuccessResponse, t as MobileServerFeedResponse } from "./serverQueryTypes-RdcIqRnM.cjs";
13
13
  import { MobileClient, MobileClientOpts } from "./MobileClient.cjs";
14
14
  import { MOBILE_CLIENT_ENDPOINTS } from "./endpoints.cjs";
15
15
  import { n as MobileErrorCode, t as MOBILE_ERROR_CODES } from "./mobileErrorCodes-DkzBW4v3.cjs";
16
- import { t as MobileServerFailureError } from "./MobileServerFailureError-CVK3aLOi.cjs";
16
+ import { t as MobileServerFailureError } from "./MobileServerFailureError-BvQYrxjx.cjs";
17
17
  import { n as MOBILE_FEED_MIN_NOTIONAL_FLOOR, t as MOBILE_FEED_MAX_PAGE_SIZE } from "./feed-CBIwOhTO.cjs";
18
18
  import { i as MOBILE_PROFILES_MAX_BATCH_SIZE, n as MOBILE_FOLLOW_LIST_DEFAULT_PAGE_SIZE, r as MOBILE_FOLLOW_LIST_MAX_PAGE_SIZE, t as MOBILE_FOLLOWED_BY_PREVIEW_LIMIT } from "./follow-Bh3UmXMc.cjs";
19
19
  import { t as MOBILE_DISPLAY_NAME_PATTERN } from "./patterns-DS8P5LH0.cjs";
20
- import { n as isMobileServerSuccessResponse, t as isMobileServerFailureResponse } from "./serverResponseGuards-k6xK1bZ1.cjs";
21
- export { BuildSignedMobileRequestParams, GetMobileFeedParams, GetMobileFollowListParams, GetMobileFollowersParams, GetMobileFollowingParams, GetMobileNotificationPreferencesParams, GetMobileProfilesParams, GetMobileRegisteredWalletParams, GetMobileUsernameAvailabilityParams, MOBILE_CLIENT_ENDPOINTS, MOBILE_DISPLAY_NAME_PATTERN, MOBILE_EIP712_METHOD_BY_TYPE, MOBILE_ERROR_CODES, MOBILE_FEED_MARGIN_MODES, MOBILE_FEED_MAX_PAGE_SIZE, MOBILE_FEED_MIN_NOTIONAL_FLOOR, MOBILE_FEED_TRADE_POSITION_DIRECTIONS, MOBILE_FEED_TRADE_POSITION_EFFECTS, MOBILE_FOLLOWED_BY_PREVIEW_LIMIT, MOBILE_FOLLOW_LIST_DEFAULT_PAGE_SIZE, MOBILE_FOLLOW_LIST_MAX_PAGE_SIZE, MOBILE_PROFILES_MAX_BATCH_SIZE, MobileClient, MobileClientOpts, MobileErrorCode, MobileFeedMargin, MobileFeedMarginMode, MobileFeedPage, MobileFeedTrade, MobileFeedTradePosition, MobileFeedTradePositionDirection, MobileFeedTradePositionEffect, MobileFollowListAccount, MobileFollowListPage, MobileFollowMutationResult, MobileFollowRequestParams, MobileFollowSummary, MobileIdentitySummary, MobileNotificationCategory, MobileNotificationCategoryPreference, MobileNotificationPlatform, MobileNotificationPreferenceScope, MobileNotificationPreferences, MobileProfilesInclude, MobilePublicProfile, MobileRegisterExpoTokenParams, MobileRegisteredWallet, MobileServerEmptyExecuteResponse, MobileServerExecuteRequestType, MobileServerExecuteResponseByType, MobileServerExecuteResult, MobileServerExecuteSuccessResponse, MobileServerFailureError, MobileServerFailureResponse, MobileServerFeedMargin, MobileServerFeedResponse, MobileServerFeedTrade, MobileServerFollowListAccount, MobileServerFollowListResponse, MobileServerFollowMutationResponse, MobileServerFollowSummary, MobileServerIdentitySummary, MobileServerNotificationCategoryPreference, MobileServerNotificationPreferenceScope, MobileServerNotificationPreferences, MobileServerNotificationPreferencesResponse, MobileServerProfile, MobileServerProfilesInclude, MobileServerProfilesResponse, MobileServerPublicExecuteRequest, MobileServerPublicExecuteRequestByType, MobileServerPublicExecuteRequestType, MobileServerPublicQueryRequest, MobileServerPublicQueryRequestByType, MobileServerPublicQueryRequestType, MobileServerPublicQueryResponseByType, MobileServerPublicQuerySuccessResponse, MobileServerRegisteredWalletResponse, MobileServerRequestType, MobileServerSignedQueryRequestType, MobileServerSignedQueryResponseByType, MobileServerSignedQuerySuccessResponse, MobileServerSuccessResponse, MobileServerUsernameAvailabilityResponse, MobileSetFollowParams, MobileSetPrivateModeParams, MobileSetUsernameParams, MobileSignedInner, MobileSignedInnerByType, MobileSignedInnerParams, MobileSignedRequest, MobileSignedRequestParams, MobileUnregisterExpoTokenParams, MobileUpdateNotificationPreferencesParams, MobileUsernameAvailability, MobileWithExpoTokenParams, buildSignedMobileRequest, canonicalizeMobileInner, getMobileNonce, getMobilePayloadHash, isMobileServerFailureResponse, isMobileServerSuccessResponse };
20
+ import { n as isMobileServerSuccessResponse, t as isMobileServerFailureResponse } from "./serverResponseGuards-Dg9WbqBA.cjs";
21
+ export { BuildSignedMobileRequestParams, GetMobileFeedParams, GetMobileFollowListParams, GetMobileFollowersParams, GetMobileFollowingParams, GetMobileNotificationPreferencesParams, GetMobileProfilesParams, GetMobileRegisteredWalletParams, GetMobileUsernameAvailabilityParams, MOBILE_CLIENT_ENDPOINTS, MOBILE_DISPLAY_NAME_PATTERN, MOBILE_EIP712_METHOD_BY_TYPE, MOBILE_ERROR_CODES, MOBILE_FEED_MARGIN_MODES, MOBILE_FEED_MAX_PAGE_SIZE, MOBILE_FEED_MIN_NOTIONAL_FLOOR, MOBILE_FEED_TRADE_POSITION_DIRECTIONS, MOBILE_FEED_TRADE_POSITION_EFFECTS, MOBILE_FOLLOWED_BY_PREVIEW_LIMIT, MOBILE_FOLLOW_LIST_DEFAULT_PAGE_SIZE, MOBILE_FOLLOW_LIST_MAX_PAGE_SIZE, MOBILE_PROFILES_MAX_BATCH_SIZE, MobileClient, MobileClientOpts, MobileErrorCode, MobileFeedMargin, MobileFeedMarginMode, MobileFeedPage, MobileFeedTrade, MobileFeedTradePosition, MobileFeedTradePositionDirection, MobileFeedTradePositionEffect, MobileFollowListAccount, MobileFollowListPage, MobileFollowMutationResult, MobileFollowSummary, MobileIdentitySummary, MobileNotificationCategory, MobileNotificationCategoryPreference, MobileNotificationPlatform, MobileNotificationPreferenceScope, MobileNotificationPreferences, MobileProfilesInclude, MobilePublicProfile, MobileRegisterExpoTokenParams, MobileRegisteredWallet, MobileServerEmptyExecuteResponse, MobileServerExecuteRequestType, MobileServerExecuteResponseByType, MobileServerExecuteResult, MobileServerExecuteSuccessResponse, MobileServerFailureError, MobileServerFailureResponse, MobileServerFeedMargin, MobileServerFeedResponse, MobileServerFeedTrade, MobileServerFollowListAccount, MobileServerFollowListRequest, MobileServerFollowListResponse, MobileServerFollowMutationResponse, MobileServerFollowSummary, MobileServerIdentitySummary, MobileServerNotificationCategoryPreference, MobileServerNotificationPreferenceScope, MobileServerNotificationPreferences, MobileServerNotificationPreferencesResponse, MobileServerProfile, MobileServerProfilesInclude, MobileServerProfilesResponse, MobileServerPublicExecuteRequest, MobileServerPublicExecuteRequestByType, MobileServerPublicExecuteRequestType, MobileServerPublicQueryRequest, MobileServerPublicQueryRequestByType, MobileServerPublicQueryRequestType, MobileServerPublicQueryResponseByType, MobileServerPublicQuerySuccessResponse, MobileServerRegisteredWalletResponse, MobileServerRequestType, MobileServerSuccessResponse, MobileServerUsernameAvailabilityResponse, MobileSetFollowParams, MobileSetPrivateModeParams, MobileSetUsernameParams, MobileSignedInner, MobileSignedInnerByType, MobileSignedInnerParams, MobileSignedRequest, MobileSignedRequestParams, MobileUnregisterExpoTokenParams, MobileUpdateNotificationPreferencesParams, MobileUsernameAvailability, MobileWithExpoTokenParams, buildSignedMobileRequest, canonicalizeMobileInner, getMobileNonce, getMobilePayloadHash, isMobileServerFailureResponse, isMobileServerSuccessResponse };
package/dist/index.d.ts CHANGED
@@ -1,21 +1,21 @@
1
- import { _ as MobileServerNotificationPreferences, a as MobileFeedTradePosition, c as MobileNotificationCategory, d as MobileServerFeedTrade, f as MobileServerFollowListAccount, g as MobileServerNotificationPreferenceScope, h as MobileServerNotificationCategoryPreference, i as MobileFeedMarginMode, l as MobileNotificationPlatform, m as MobileServerIdentitySummary, n as MOBILE_FEED_TRADE_POSITION_DIRECTIONS, o as MobileFeedTradePositionDirection, p as MobileServerFollowSummary, r as MOBILE_FEED_TRADE_POSITION_EFFECTS, s as MobileFeedTradePositionEffect, t as MOBILE_FEED_MARGIN_MODES, u as MobileServerFeedMargin, v as MobileServerProfile } from "./serverModelTypes-DV-eARP8.js";
2
- import { A as MobileUpdateNotificationPreferencesParams, C as MobileRegisterExpoTokenParams, D as MobileSetUsernameParams, E as MobileSetPrivateModeParams, M as MobileWithExpoTokenParams, O as MobileSignedRequestParams, S as MobilePublicProfile, T as MobileSetFollowParams, _ as MobileIdentitySummary, a as GetMobileNotificationPreferencesParams, b as MobileNotificationPreferences, c as GetMobileUsernameAvailabilityParams, d as MobileFeedTrade, f as MobileFollowListAccount, g as MobileFollowSummary, h as MobileFollowRequestParams, i as GetMobileFollowingParams, j as MobileUsernameAvailability, k as MobileUnregisterExpoTokenParams, l as MobileFeedMargin, m as MobileFollowMutationResult, n as GetMobileFollowListParams, o as GetMobileProfilesParams, p as MobileFollowListPage, r as GetMobileFollowersParams, s as GetMobileRegisteredWalletParams, t as GetMobileFeedParams, u as MobileFeedPage, v as MobileNotificationCategoryPreference, w as MobileRegisteredWallet, x as MobileProfilesInclude, y as MobileNotificationPreferenceScope } from "./clientTypes-2I3x4TTt.js";
3
- import { a as MobileSignedRequest, i as MobileSignedInnerParams, n as MobileSignedInner, r as MobileSignedInnerByType, t as BuildSignedMobileRequestParams } from "./types-B8lDIhBP.js";
4
- import { t as buildSignedMobileRequest } from "./buildSignedMobileRequest-42meR4yV.js";
5
- import { t as canonicalizeMobileInner } from "./canonicalize-BebHhHcF.js";
6
- import { t as MOBILE_EIP712_METHOD_BY_TYPE } from "./eip712MethodByType-CAVpvZoS.js";
1
+ import { _ as MobileServerNotificationPreferences, a as MobileFeedTradePosition, c as MobileNotificationCategory, d as MobileServerFeedTrade, f as MobileServerFollowListAccount, g as MobileServerNotificationPreferenceScope, h as MobileServerNotificationCategoryPreference, i as MobileFeedMarginMode, l as MobileNotificationPlatform, m as MobileServerIdentitySummary, n as MOBILE_FEED_TRADE_POSITION_DIRECTIONS, o as MobileFeedTradePositionDirection, p as MobileServerFollowSummary, r as MOBILE_FEED_TRADE_POSITION_EFFECTS, s as MobileFeedTradePositionEffect, t as MOBILE_FEED_MARGIN_MODES, u as MobileServerFeedMargin, v as MobileServerProfile } from "./serverModelTypes-CDcRlRtw.js";
2
+ import { A as MobileUsernameAvailability, C as MobileRegisteredWallet, D as MobileSignedRequestParams, E as MobileSetUsernameParams, O as MobileUnregisterExpoTokenParams, S as MobileRegisterExpoTokenParams, T as MobileSetPrivateModeParams, _ as MobileNotificationCategoryPreference, a as GetMobileNotificationPreferencesParams, b as MobileProfilesInclude, c as GetMobileUsernameAvailabilityParams, d as MobileFeedTrade, f as MobileFollowListAccount, g as MobileIdentitySummary, h as MobileFollowSummary, i as GetMobileFollowingParams, j as MobileWithExpoTokenParams, k as MobileUpdateNotificationPreferencesParams, l as MobileFeedMargin, m as MobileFollowMutationResult, n as GetMobileFollowListParams, o as GetMobileProfilesParams, p as MobileFollowListPage, r as GetMobileFollowersParams, s as GetMobileRegisteredWalletParams, t as GetMobileFeedParams, u as MobileFeedPage, v as MobileNotificationPreferenceScope, w as MobileSetFollowParams, x as MobilePublicProfile, y as MobileNotificationPreferences } from "./clientTypes-CB_itU4Z.js";
3
+ import { a as MobileSignedRequest, i as MobileSignedInnerParams, n as MobileSignedInner, r as MobileSignedInnerByType, t as BuildSignedMobileRequestParams } from "./types-BIIvIzG2.js";
4
+ import { t as buildSignedMobileRequest } from "./buildSignedMobileRequest-BqLRFLKV.js";
5
+ import { t as canonicalizeMobileInner } from "./canonicalize-BRhCpYm1.js";
6
+ import { t as MOBILE_EIP712_METHOD_BY_TYPE } from "./eip712MethodByType-CrqBJIrp.js";
7
7
  import { t as getMobileNonce } from "./nonce-DCOrXXkQ.js";
8
- import { t as getMobilePayloadHash } from "./payloadHash-DMqE5aMo.js";
9
- import { a as MobileServerPublicQueryRequestByType, c as MobileServerSignedQueryRequestType, i as MobileServerPublicExecuteRequestType, n as MobileServerProfilesInclude, o as MobileServerPublicQueryRequestType, r as MobileServerPublicExecuteRequestByType, s as MobileServerRequestType, t as MobileServerExecuteRequestType } from "./serverRequestTypes-BDXIPjtw.js";
10
- import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "./serverBaseTypes-DPB1vEvv.js";
11
- import { a as MobileServerFollowMutationResponse, i as MobileServerExecuteSuccessResponse, n as MobileServerExecuteResponseByType, o as MobileServerPublicExecuteRequest, r as MobileServerExecuteResult, t as MobileServerEmptyExecuteResponse } from "./serverExecuteTypes-ih4Xbr3J.js";
12
- import { a as MobileServerPublicQueryRequest, c as MobileServerRegisteredWalletResponse, d as MobileServerUsernameAvailabilityResponse, i as MobileServerProfilesResponse, l as MobileServerSignedQueryResponseByType, n as MobileServerFollowListResponse, o as MobileServerPublicQueryResponseByType, r as MobileServerNotificationPreferencesResponse, s as MobileServerPublicQuerySuccessResponse, t as MobileServerFeedResponse, u as MobileServerSignedQuerySuccessResponse } from "./serverQueryTypes-LygPrZn7.js";
8
+ import { t as getMobilePayloadHash } from "./payloadHash-Cv4WwZCZ.js";
9
+ import { a as MobileServerPublicExecuteRequestType, c as MobileServerRequestType, i as MobileServerPublicExecuteRequestByType, n as MobileServerFollowListRequest, o as MobileServerPublicQueryRequestByType, r as MobileServerProfilesInclude, s as MobileServerPublicQueryRequestType, t as MobileServerExecuteRequestType } from "./serverRequestTypes-Dv9NR-hQ.js";
10
+ import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "./serverBaseTypes-C2JGib--.js";
11
+ import { a as MobileServerFollowMutationResponse, i as MobileServerExecuteSuccessResponse, n as MobileServerExecuteResponseByType, o as MobileServerPublicExecuteRequest, r as MobileServerExecuteResult, t as MobileServerEmptyExecuteResponse } from "./serverExecuteTypes-C2NoNEwu.js";
12
+ import { a as MobileServerPublicQueryRequest, c as MobileServerRegisteredWalletResponse, i as MobileServerProfilesResponse, l as MobileServerUsernameAvailabilityResponse, n as MobileServerFollowListResponse, o as MobileServerPublicQueryResponseByType, r as MobileServerNotificationPreferencesResponse, s as MobileServerPublicQuerySuccessResponse, t as MobileServerFeedResponse } from "./serverQueryTypes-B0xI1G39.js";
13
13
  import { MobileClient, MobileClientOpts } from "./MobileClient.js";
14
14
  import { MOBILE_CLIENT_ENDPOINTS } from "./endpoints.js";
15
15
  import { n as MobileErrorCode, t as MOBILE_ERROR_CODES } from "./mobileErrorCodes-B3eR6t4b.js";
16
- import { t as MobileServerFailureError } from "./MobileServerFailureError-D-76n3pS.js";
16
+ import { t as MobileServerFailureError } from "./MobileServerFailureError-CrNpL_L4.js";
17
17
  import { n as MOBILE_FEED_MIN_NOTIONAL_FLOOR, t as MOBILE_FEED_MAX_PAGE_SIZE } from "./feed-BF5k6Ryu.js";
18
18
  import { i as MOBILE_PROFILES_MAX_BATCH_SIZE, n as MOBILE_FOLLOW_LIST_DEFAULT_PAGE_SIZE, r as MOBILE_FOLLOW_LIST_MAX_PAGE_SIZE, t as MOBILE_FOLLOWED_BY_PREVIEW_LIMIT } from "./follow-DjkQm1vR.js";
19
19
  import { t as MOBILE_DISPLAY_NAME_PATTERN } from "./patterns-C-aUAnKl.js";
20
- import { n as isMobileServerSuccessResponse, t as isMobileServerFailureResponse } from "./serverResponseGuards-BcdkKV30.js";
21
- export { BuildSignedMobileRequestParams, GetMobileFeedParams, GetMobileFollowListParams, GetMobileFollowersParams, GetMobileFollowingParams, GetMobileNotificationPreferencesParams, GetMobileProfilesParams, GetMobileRegisteredWalletParams, GetMobileUsernameAvailabilityParams, MOBILE_CLIENT_ENDPOINTS, MOBILE_DISPLAY_NAME_PATTERN, MOBILE_EIP712_METHOD_BY_TYPE, MOBILE_ERROR_CODES, MOBILE_FEED_MARGIN_MODES, MOBILE_FEED_MAX_PAGE_SIZE, MOBILE_FEED_MIN_NOTIONAL_FLOOR, MOBILE_FEED_TRADE_POSITION_DIRECTIONS, MOBILE_FEED_TRADE_POSITION_EFFECTS, MOBILE_FOLLOWED_BY_PREVIEW_LIMIT, MOBILE_FOLLOW_LIST_DEFAULT_PAGE_SIZE, MOBILE_FOLLOW_LIST_MAX_PAGE_SIZE, MOBILE_PROFILES_MAX_BATCH_SIZE, MobileClient, MobileClientOpts, MobileErrorCode, MobileFeedMargin, MobileFeedMarginMode, MobileFeedPage, MobileFeedTrade, MobileFeedTradePosition, MobileFeedTradePositionDirection, MobileFeedTradePositionEffect, MobileFollowListAccount, MobileFollowListPage, MobileFollowMutationResult, MobileFollowRequestParams, MobileFollowSummary, MobileIdentitySummary, MobileNotificationCategory, MobileNotificationCategoryPreference, MobileNotificationPlatform, MobileNotificationPreferenceScope, MobileNotificationPreferences, MobileProfilesInclude, MobilePublicProfile, MobileRegisterExpoTokenParams, MobileRegisteredWallet, MobileServerEmptyExecuteResponse, MobileServerExecuteRequestType, MobileServerExecuteResponseByType, MobileServerExecuteResult, MobileServerExecuteSuccessResponse, MobileServerFailureError, MobileServerFailureResponse, MobileServerFeedMargin, MobileServerFeedResponse, MobileServerFeedTrade, MobileServerFollowListAccount, MobileServerFollowListResponse, MobileServerFollowMutationResponse, MobileServerFollowSummary, MobileServerIdentitySummary, MobileServerNotificationCategoryPreference, MobileServerNotificationPreferenceScope, MobileServerNotificationPreferences, MobileServerNotificationPreferencesResponse, MobileServerProfile, MobileServerProfilesInclude, MobileServerProfilesResponse, MobileServerPublicExecuteRequest, MobileServerPublicExecuteRequestByType, MobileServerPublicExecuteRequestType, MobileServerPublicQueryRequest, MobileServerPublicQueryRequestByType, MobileServerPublicQueryRequestType, MobileServerPublicQueryResponseByType, MobileServerPublicQuerySuccessResponse, MobileServerRegisteredWalletResponse, MobileServerRequestType, MobileServerSignedQueryRequestType, MobileServerSignedQueryResponseByType, MobileServerSignedQuerySuccessResponse, MobileServerSuccessResponse, MobileServerUsernameAvailabilityResponse, MobileSetFollowParams, MobileSetPrivateModeParams, MobileSetUsernameParams, MobileSignedInner, MobileSignedInnerByType, MobileSignedInnerParams, MobileSignedRequest, MobileSignedRequestParams, MobileUnregisterExpoTokenParams, MobileUpdateNotificationPreferencesParams, MobileUsernameAvailability, MobileWithExpoTokenParams, buildSignedMobileRequest, canonicalizeMobileInner, getMobileNonce, getMobilePayloadHash, isMobileServerFailureResponse, isMobileServerSuccessResponse };
20
+ import { n as isMobileServerSuccessResponse, t as isMobileServerFailureResponse } from "./serverResponseGuards-BjIzucYt.js";
21
+ export { BuildSignedMobileRequestParams, GetMobileFeedParams, GetMobileFollowListParams, GetMobileFollowersParams, GetMobileFollowingParams, GetMobileNotificationPreferencesParams, GetMobileProfilesParams, GetMobileRegisteredWalletParams, GetMobileUsernameAvailabilityParams, MOBILE_CLIENT_ENDPOINTS, MOBILE_DISPLAY_NAME_PATTERN, MOBILE_EIP712_METHOD_BY_TYPE, MOBILE_ERROR_CODES, MOBILE_FEED_MARGIN_MODES, MOBILE_FEED_MAX_PAGE_SIZE, MOBILE_FEED_MIN_NOTIONAL_FLOOR, MOBILE_FEED_TRADE_POSITION_DIRECTIONS, MOBILE_FEED_TRADE_POSITION_EFFECTS, MOBILE_FOLLOWED_BY_PREVIEW_LIMIT, MOBILE_FOLLOW_LIST_DEFAULT_PAGE_SIZE, MOBILE_FOLLOW_LIST_MAX_PAGE_SIZE, MOBILE_PROFILES_MAX_BATCH_SIZE, MobileClient, MobileClientOpts, MobileErrorCode, MobileFeedMargin, MobileFeedMarginMode, MobileFeedPage, MobileFeedTrade, MobileFeedTradePosition, MobileFeedTradePositionDirection, MobileFeedTradePositionEffect, MobileFollowListAccount, MobileFollowListPage, MobileFollowMutationResult, MobileFollowSummary, MobileIdentitySummary, MobileNotificationCategory, MobileNotificationCategoryPreference, MobileNotificationPlatform, MobileNotificationPreferenceScope, MobileNotificationPreferences, MobileProfilesInclude, MobilePublicProfile, MobileRegisterExpoTokenParams, MobileRegisteredWallet, MobileServerEmptyExecuteResponse, MobileServerExecuteRequestType, MobileServerExecuteResponseByType, MobileServerExecuteResult, MobileServerExecuteSuccessResponse, MobileServerFailureError, MobileServerFailureResponse, MobileServerFeedMargin, MobileServerFeedResponse, MobileServerFeedTrade, MobileServerFollowListAccount, MobileServerFollowListRequest, MobileServerFollowListResponse, MobileServerFollowMutationResponse, MobileServerFollowSummary, MobileServerIdentitySummary, MobileServerNotificationCategoryPreference, MobileServerNotificationPreferenceScope, MobileServerNotificationPreferences, MobileServerNotificationPreferencesResponse, MobileServerProfile, MobileServerProfilesInclude, MobileServerProfilesResponse, MobileServerPublicExecuteRequest, MobileServerPublicExecuteRequestByType, MobileServerPublicExecuteRequestType, MobileServerPublicQueryRequest, MobileServerPublicQueryRequestByType, MobileServerPublicQueryRequestType, MobileServerPublicQueryResponseByType, MobileServerPublicQuerySuccessResponse, MobileServerRegisteredWalletResponse, MobileServerRequestType, MobileServerSuccessResponse, MobileServerUsernameAvailabilityResponse, MobileSetFollowParams, MobileSetPrivateModeParams, MobileSetUsernameParams, MobileSignedInner, MobileSignedInnerByType, MobileSignedInnerParams, MobileSignedRequest, MobileSignedRequestParams, MobileUnregisterExpoTokenParams, MobileUpdateNotificationPreferencesParams, MobileUsernameAvailability, MobileWithExpoTokenParams, buildSignedMobileRequest, canonicalizeMobileInner, getMobileNonce, getMobilePayloadHash, isMobileServerFailureResponse, isMobileServerSuccessResponse };
@@ -1,4 +1,4 @@
1
- import { n as MobileSignedInner } from "./types-CClB00EN.cjs";
1
+ import { n as MobileSignedInner } from "./types-UmYaeq1C.cjs";
2
2
  import { Hex } from "viem";
3
3
 
4
4
  //#region src/signing/payloadHash.d.ts
@@ -10,4 +10,4 @@ import { Hex } from "viem";
10
10
  declare function getMobilePayloadHash(inner: MobileSignedInner): Hex;
11
11
  //#endregion
12
12
  export { getMobilePayloadHash as t };
13
- //# sourceMappingURL=payloadHash-BVPYKdk4.d.cts.map
13
+ //# sourceMappingURL=payloadHash-CIo8Hkh6.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payloadHash-CIo8Hkh6.d.cts","names":[],"sources":["../src/signing/src/signing/payloadHash.ts"],"mappings":";;;;;;AASA;;;iBAAgB,oBAAA,CAAqB,KAAA,EAAO,iBAAA,GAAoB,GAAG"}
@@ -1,4 +1,4 @@
1
- import { n as MobileSignedInner } from "./types-B8lDIhBP.js";
1
+ import { n as MobileSignedInner } from "./types-BIIvIzG2.js";
2
2
  import { Hex } from "viem";
3
3
 
4
4
  //#region src/signing/payloadHash.d.ts
@@ -10,4 +10,4 @@ import { Hex } from "viem";
10
10
  declare function getMobilePayloadHash(inner: MobileSignedInner): Hex;
11
11
  //#endregion
12
12
  export { getMobilePayloadHash as t };
13
- //# sourceMappingURL=payloadHash-DMqE5aMo.d.ts.map
13
+ //# sourceMappingURL=payloadHash-Cv4WwZCZ.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payloadHash-Cv4WwZCZ.d.ts","names":[],"sources":["../src/signing/src/signing/payloadHash.ts"],"mappings":";;;;;;AASA;;;iBAAgB,oBAAA,CAAqB,KAAA,EAAO,iBAAA,GAAoB,GAAG"}
@@ -1,4 +1,4 @@
1
- import { s as MobileServerRequestType } from "./serverRequestTypes-BDXIPjtw.js";
1
+ import { c as MobileServerRequestType } from "./serverRequestTypes-Dv9NR-hQ.js";
2
2
 
3
3
  //#region src/types/serverBaseTypes.d.ts
4
4
  /**
@@ -22,4 +22,4 @@ interface MobileServerFailureResponse {
22
22
  }
23
23
  //#endregion
24
24
  export { MobileServerSuccessResponse as n, MobileServerFailureResponse as t };
25
- //# sourceMappingURL=serverBaseTypes-DPB1vEvv.d.ts.map
25
+ //# sourceMappingURL=serverBaseTypes-C2JGib--.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"serverBaseTypes-DPB1vEvv.d.ts","names":[],"sources":["../src/types/src/types/serverBaseTypes.ts"],"mappings":";;;;;AAQA;;;;UAAiB,2BAAA;EACf,MAAM;AAAA;;;;;UAOS,2BAAA;EACf,MAAA;EACA,KAAA;EACA,UAAA;EACA,YAAA,EAAc,uBAAuB;AAAA"}
1
+ {"version":3,"file":"serverBaseTypes-C2JGib--.d.ts","names":[],"sources":["../src/types/src/types/serverBaseTypes.ts"],"mappings":";;;;;AAQA;;;;UAAiB,2BAAA;EACf,MAAM;AAAA;;;;;UAOS,2BAAA;EACf,MAAA;EACA,KAAA;EACA,UAAA;EACA,YAAA,EAAc,uBAAuB;AAAA"}
@@ -1,4 +1,4 @@
1
- import { s as MobileServerRequestType } from "./serverRequestTypes-q4xTJHk0.cjs";
1
+ import { c as MobileServerRequestType } from "./serverRequestTypes-Ddws3yXc.cjs";
2
2
 
3
3
  //#region src/types/serverBaseTypes.d.ts
4
4
  /**
@@ -22,4 +22,4 @@ interface MobileServerFailureResponse {
22
22
  }
23
23
  //#endregion
24
24
  export { MobileServerSuccessResponse as n, MobileServerFailureResponse as t };
25
- //# sourceMappingURL=serverBaseTypes-BybrVE6L.d.cts.map
25
+ //# sourceMappingURL=serverBaseTypes-YkCmgmt1.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"serverBaseTypes-BybrVE6L.d.cts","names":[],"sources":["../src/types/src/types/serverBaseTypes.ts"],"mappings":";;;;;AAQA;;;;UAAiB,2BAAA;EACf,MAAM;AAAA;;;;;UAOS,2BAAA;EACf,MAAA;EACA,KAAA;EACA,UAAA;EACA,YAAA,EAAc,uBAAuB;AAAA"}
1
+ {"version":3,"file":"serverBaseTypes-YkCmgmt1.d.cts","names":[],"sources":["../src/types/src/types/serverBaseTypes.ts"],"mappings":";;;;;AAQA;;;;UAAiB,2BAAA;EACf,MAAM;AAAA;;;;;UAOS,2BAAA;EACf,MAAA;EACA,KAAA;EACA,UAAA;EACA,YAAA,EAAc,uBAAuB;AAAA"}
@@ -1,5 +1,5 @@
1
- import { i as MobileServerPublicExecuteRequestType, r as MobileServerPublicExecuteRequestByType, t as MobileServerExecuteRequestType } from "./serverRequestTypes-BDXIPjtw.js";
2
- import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "./serverBaseTypes-DPB1vEvv.js";
1
+ import { a as MobileServerPublicExecuteRequestType, i as MobileServerPublicExecuteRequestByType, t as MobileServerExecuteRequestType } from "./serverRequestTypes-Dv9NR-hQ.js";
2
+ import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "./serverBaseTypes-C2JGib--.js";
3
3
 
4
4
  //#region src/types/serverExecuteTypes.d.ts
5
5
  /**
@@ -47,4 +47,4 @@ type MobileServerExecuteSuccessResponse<T extends MobileServerExecuteRequestType
47
47
  type MobileServerExecuteResult = MobileServerSuccessResponse | MobileServerFailureResponse;
48
48
  //#endregion
49
49
  export { MobileServerFollowMutationResponse as a, MobileServerExecuteSuccessResponse as i, MobileServerExecuteResponseByType as n, MobileServerPublicExecuteRequest as o, MobileServerExecuteResult as r, MobileServerEmptyExecuteResponse as t };
50
- //# sourceMappingURL=serverExecuteTypes-ih4Xbr3J.d.ts.map
50
+ //# sourceMappingURL=serverExecuteTypes-C2NoNEwu.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"serverExecuteTypes-ih4Xbr3J.d.ts","names":[],"sources":["../src/types/src/types/serverExecuteTypes.ts"],"mappings":";;;;;;AAcA;;KAAY,gCAAA,WACA,oCAAA,GACR,oCAAA,YAEI,oCAAA;EACJ,IAAA,EAAM,CAAA;AAAA,IACJ,sCAAA,CAAuC,CAAA,IAC3C,CAAA;;;;;;UAOe,kCAAA;EACf,YAAA;EAbE;EAeF,cAAc;AAAA;;;;;;KAQJ,gCAAA,GAAmC,MAAM;AAlBlD;AAOH;;;;AAPG,UAyBc,iCAAA;EACf,YAAA,EAAc,gCAAA;EACd,gBAAA,EAAkB,gCAAA;EAClB,mBAAA,EAAqB,gCAAA;EACrB,UAAA,EAAY,kCAAA;AAAA;AAJd;;;;AAAA,KAWY,kCAAA,WACA,8BAAA,GAAiC,8BAAA,IACzC,2BAAA,GAA8B,iCAAA,CAAkC,CAAA;;;;KAKxD,yBAAA,GACR,2BAAA,GACA,2BAA2B"}
1
+ {"version":3,"file":"serverExecuteTypes-C2NoNEwu.d.ts","names":[],"sources":["../src/types/src/types/serverExecuteTypes.ts"],"mappings":";;;;;;AAcA;;KAAY,gCAAA,WACA,oCAAA,GACR,oCAAA,YAEI,oCAAA;EACJ,IAAA,EAAM,CAAA;AAAA,IACJ,sCAAA,CAAuC,CAAA,IAC3C,CAAA;;;;;;UAOe,kCAAA;EACf,YAAA;EAbE;EAeF,cAAc;AAAA;;;;;;KAQJ,gCAAA,GAAmC,MAAM;AAlBlD;AAOH;;;;AAPG,UAyBc,iCAAA;EACf,YAAA,EAAc,gCAAA;EACd,gBAAA,EAAkB,gCAAA;EAClB,mBAAA,EAAqB,gCAAA;EACrB,UAAA,EAAY,kCAAA;AAAA;AAJd;;;;AAAA,KAWY,kCAAA,WACA,8BAAA,GAAiC,8BAAA,IACzC,2BAAA,GAA8B,iCAAA,CAAkC,CAAA;;;;KAKxD,yBAAA,GACR,2BAAA,GACA,2BAA2B"}
@@ -1,5 +1,5 @@
1
- import { i as MobileServerPublicExecuteRequestType, r as MobileServerPublicExecuteRequestByType, t as MobileServerExecuteRequestType } from "./serverRequestTypes-q4xTJHk0.cjs";
2
- import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "./serverBaseTypes-BybrVE6L.cjs";
1
+ import { a as MobileServerPublicExecuteRequestType, i as MobileServerPublicExecuteRequestByType, t as MobileServerExecuteRequestType } from "./serverRequestTypes-Ddws3yXc.cjs";
2
+ import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "./serverBaseTypes-YkCmgmt1.cjs";
3
3
 
4
4
  //#region src/types/serverExecuteTypes.d.ts
5
5
  /**
@@ -47,4 +47,4 @@ type MobileServerExecuteSuccessResponse<T extends MobileServerExecuteRequestType
47
47
  type MobileServerExecuteResult = MobileServerSuccessResponse | MobileServerFailureResponse;
48
48
  //#endregion
49
49
  export { MobileServerFollowMutationResponse as a, MobileServerExecuteSuccessResponse as i, MobileServerExecuteResponseByType as n, MobileServerPublicExecuteRequest as o, MobileServerExecuteResult as r, MobileServerEmptyExecuteResponse as t };
50
- //# sourceMappingURL=serverExecuteTypes-DoR0InCd.d.cts.map
50
+ //# sourceMappingURL=serverExecuteTypes-DPZbs9ym.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"serverExecuteTypes-DoR0InCd.d.cts","names":[],"sources":["../src/types/src/types/serverExecuteTypes.ts"],"mappings":";;;;;;AAcA;;KAAY,gCAAA,WACA,oCAAA,GACR,oCAAA,YAEI,oCAAA;EACJ,IAAA,EAAM,CAAA;AAAA,IACJ,sCAAA,CAAuC,CAAA,IAC3C,CAAA;;;;;;UAOe,kCAAA;EACf,YAAA;EAbE;EAeF,cAAc;AAAA;;;;;;KAQJ,gCAAA,GAAmC,MAAM;AAlBlD;AAOH;;;;AAPG,UAyBc,iCAAA;EACf,YAAA,EAAc,gCAAA;EACd,gBAAA,EAAkB,gCAAA;EAClB,mBAAA,EAAqB,gCAAA;EACrB,UAAA,EAAY,kCAAA;AAAA;AAJd;;;;AAAA,KAWY,kCAAA,WACA,8BAAA,GAAiC,8BAAA,IACzC,2BAAA,GAA8B,iCAAA,CAAkC,CAAA;;;;KAKxD,yBAAA,GACR,2BAAA,GACA,2BAA2B"}
1
+ {"version":3,"file":"serverExecuteTypes-DPZbs9ym.d.cts","names":[],"sources":["../src/types/src/types/serverExecuteTypes.ts"],"mappings":";;;;;;AAcA;;KAAY,gCAAA,WACA,oCAAA,GACR,oCAAA,YAEI,oCAAA;EACJ,IAAA,EAAM,CAAA;AAAA,IACJ,sCAAA,CAAuC,CAAA,IAC3C,CAAA;;;;;;UAOe,kCAAA;EACf,YAAA;EAbE;EAeF,cAAc;AAAA;;;;;;KAQJ,gCAAA,GAAmC,MAAM;AAlBlD;AAOH;;;;AAPG,UAyBc,iCAAA;EACf,YAAA,EAAc,gCAAA;EACd,gBAAA,EAAkB,gCAAA;EAClB,mBAAA,EAAqB,gCAAA;EACrB,UAAA,EAAY,kCAAA;AAAA;AAJd;;;;AAAA,KAWY,kCAAA,WACA,8BAAA,GAAiC,8BAAA,IACzC,2BAAA,GAA8B,iCAAA,CAAkC,CAAA;;;;KAKxD,yBAAA,GACR,2BAAA,GACA,2BAA2B"}
@@ -59,13 +59,16 @@ interface MobileServerProfile {
59
59
  follow_summary?: MobileServerFollowSummary;
60
60
  }
61
61
  /**
62
- * Server-side row of a Followers or Following page (snake_case). `is_following` describes the *Viewer's*
63
- * relationship to this account, not the listed relationship that put it in the page, so it is `false` on the
64
- * Viewer's own row.
62
+ * Server-side row of a Followers or Following page (snake_case).
65
63
  */
66
64
  interface MobileServerFollowListAccount {
67
65
  identity: MobileServerIdentitySummary;
68
- is_following: boolean;
66
+ /**
67
+ * The `view_as` Viewer's relationship to this account, not the listed relationship that put it in the
68
+ * page, so it is `false` on the Viewer's own row. Omitted entirely when the request named no `view_as`,
69
+ * rather than being sent as a misleading `false`.
70
+ */
71
+ is_following?: boolean;
69
72
  /** The listed account's own follower count, exact at query time. */
70
73
  follower_count: number;
71
74
  }
@@ -167,4 +170,4 @@ interface MobileServerNotificationPreferences {
167
170
  }
168
171
  //#endregion
169
172
  export { MobileServerNotificationPreferences as _, MobileFeedTradePosition as a, MobileNotificationCategory as c, MobileServerFeedTrade as d, MobileServerFollowListAccount as f, MobileServerNotificationPreferenceScope as g, MobileServerNotificationCategoryPreference as h, MobileFeedMarginMode as i, MobileNotificationPlatform as l, MobileServerIdentitySummary as m, MOBILE_FEED_TRADE_POSITION_DIRECTIONS as n, MobileFeedTradePositionDirection as o, MobileServerFollowSummary as p, MOBILE_FEED_TRADE_POSITION_EFFECTS as r, MobileFeedTradePositionEffect as s, MOBILE_FEED_MARGIN_MODES as t, MobileServerFeedMargin as u, MobileServerProfile as v };
170
- //# sourceMappingURL=serverModelTypes-KSm0CAcF.d.cts.map
173
+ //# sourceMappingURL=serverModelTypes-CDcRlRtw.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serverModelTypes-CDcRlRtw.d.ts","names":[],"sources":["../src/types/src/types/serverModelTypes.ts"],"mappings":";;;;;;AAMA;KAAY,0BAAA;;;AAA0B;KAK1B,0BAAA;;;;AAA0B;AAatC;UAAiB,2BAAA;EACf,UAAA,EAAY,GAAG;EACf,QAAA;EACA,YAAA;EAFY;EAIZ,UAAA;AAAA;;;AAAU;AASZ;;;UAAiB,yBAAA;EACf,YAAA;EAEA;EAAA,iBAAA;EAEa;EAAb,WAAA,EAAa,2BAA2B;AAAA;AAY1C;;;;;;;;;AAAA,UAAiB,mBAAA;EACf,UAAA,EAAY,GAAA;EACZ,QAAA;EACA,YAAA;EACA,YAAA;EAQ0C;AAM5C;;;EATE,cAAA;EACA,eAAA;EASU;EAPV,cAAA,GAAiB,yBAAyB;AAAA;;AAe5B;AAQhB;UAjBiB,6BAAA;EACf,QAAA,EAAU,2BAA2B;EAgBmB;AAAA;AAM1D;;;EAhBE,YAAA;EAmB8D;EAjB9D,cAAA;AAAA;;;AA6BQ;AAKV;;KA1BY,gCAAA,GAAmC,WAAW;;AA2Bd;AAM5C;;cA3Ba,qCAAA;;;;;cASA,kCAAA;;AAoB0B;AAOvC;KAhBY,6BAAA,WACF,kCAAkC;;;AAe0B;AAKtE;UAdiB,uBAAA;EACf,SAAA,EAAW,gCAAA;EACX,MAAA,EAAQ,6BAA6B;AAAA;AAmBvC;;;;AAAA,cAZa,wBAAA;;;;KAKD,oBAAA,WAA+B,wBAAwB;AAiBnE;;;;;AAAA,UAViB,sBAAA;EACf,IAAA,EAAM,oBAAoB;EAC1B,kBAAA;AAAA;;;;;;UAQe,qBAAA,SAA8B,2BAAA;EAS7C;EAPA,YAAA,EAAc,GAAA;EACd,UAAA;EAQA;EANA,QAAA;EAQA;EANA,QAAA;EAQY;EANZ,aAAA;EACA,MAAA,EAAQ,sBAAA;EACR,QAAA,EAAU,uBAAA;;EAEV,YAAA;EAUI;EARJ,YAAA;AAAA;;;;AAS+B;KAFrB,uCAAA;EACN,IAAA;EAAoB,UAAA,EAAY,GAAG;AAAA;EACnC,IAAA;EAAiB,UAAA;AAAA;;;;UAKN,0CAAA;EACf,QAAA,EAAU,0BAAA;EACV,OAAA;EACA,MAAA,EAAQ,uCAAuC;AAAA;;;;;UAOhC,mCAAA;;EAEf,cAAA;EACA,UAAA,EAAY,0CAA0C;AAAA"}
@@ -59,13 +59,16 @@ interface MobileServerProfile {
59
59
  follow_summary?: MobileServerFollowSummary;
60
60
  }
61
61
  /**
62
- * Server-side row of a Followers or Following page (snake_case). `is_following` describes the *Viewer's*
63
- * relationship to this account, not the listed relationship that put it in the page, so it is `false` on the
64
- * Viewer's own row.
62
+ * Server-side row of a Followers or Following page (snake_case).
65
63
  */
66
64
  interface MobileServerFollowListAccount {
67
65
  identity: MobileServerIdentitySummary;
68
- is_following: boolean;
66
+ /**
67
+ * The `view_as` Viewer's relationship to this account, not the listed relationship that put it in the
68
+ * page, so it is `false` on the Viewer's own row. Omitted entirely when the request named no `view_as`,
69
+ * rather than being sent as a misleading `false`.
70
+ */
71
+ is_following?: boolean;
69
72
  /** The listed account's own follower count, exact at query time. */
70
73
  follower_count: number;
71
74
  }
@@ -167,4 +170,4 @@ interface MobileServerNotificationPreferences {
167
170
  }
168
171
  //#endregion
169
172
  export { MobileServerNotificationPreferences as _, MobileFeedTradePosition as a, MobileNotificationCategory as c, MobileServerFeedTrade as d, MobileServerFollowListAccount as f, MobileServerNotificationPreferenceScope as g, MobileServerNotificationCategoryPreference as h, MobileFeedMarginMode as i, MobileNotificationPlatform as l, MobileServerIdentitySummary as m, MOBILE_FEED_TRADE_POSITION_DIRECTIONS as n, MobileFeedTradePositionDirection as o, MobileServerFollowSummary as p, MOBILE_FEED_TRADE_POSITION_EFFECTS as r, MobileFeedTradePositionEffect as s, MOBILE_FEED_MARGIN_MODES as t, MobileServerFeedMargin as u, MobileServerProfile as v };
170
- //# sourceMappingURL=serverModelTypes-DV-eARP8.d.ts.map
173
+ //# sourceMappingURL=serverModelTypes-CUzqFA6x.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serverModelTypes-CUzqFA6x.d.cts","names":[],"sources":["../src/types/src/types/serverModelTypes.ts"],"mappings":";;;;;;AAMA;KAAY,0BAAA;;;AAA0B;KAK1B,0BAAA;;;;AAA0B;AAatC;UAAiB,2BAAA;EACf,UAAA,EAAY,GAAG;EACf,QAAA;EACA,YAAA;EAFY;EAIZ,UAAA;AAAA;;;AAAU;AASZ;;;UAAiB,yBAAA;EACf,YAAA;EAEA;EAAA,iBAAA;EAEa;EAAb,WAAA,EAAa,2BAA2B;AAAA;AAY1C;;;;;;;;;AAAA,UAAiB,mBAAA;EACf,UAAA,EAAY,GAAA;EACZ,QAAA;EACA,YAAA;EACA,YAAA;EAQ0C;AAM5C;;;EATE,cAAA;EACA,eAAA;EASU;EAPV,cAAA,GAAiB,yBAAyB;AAAA;;AAe5B;AAQhB;UAjBiB,6BAAA;EACf,QAAA,EAAU,2BAA2B;EAgBmB;AAAA;AAM1D;;;EAhBE,YAAA;EAmB8D;EAjB9D,cAAA;AAAA;;;AA6BQ;AAKV;;KA1BY,gCAAA,GAAmC,WAAW;;AA2Bd;AAM5C;;cA3Ba,qCAAA;;;;;cASA,kCAAA;;AAoB0B;AAOvC;KAhBY,6BAAA,WACF,kCAAkC;;;AAe0B;AAKtE;UAdiB,uBAAA;EACf,SAAA,EAAW,gCAAA;EACX,MAAA,EAAQ,6BAA6B;AAAA;AAmBvC;;;;AAAA,cAZa,wBAAA;;;;KAKD,oBAAA,WAA+B,wBAAwB;AAiBnE;;;;;AAAA,UAViB,sBAAA;EACf,IAAA,EAAM,oBAAoB;EAC1B,kBAAA;AAAA;;;;;;UAQe,qBAAA,SAA8B,2BAAA;EAS7C;EAPA,YAAA,EAAc,GAAA;EACd,UAAA;EAQA;EANA,QAAA;EAQA;EANA,QAAA;EAQY;EANZ,aAAA;EACA,MAAA,EAAQ,sBAAA;EACR,QAAA,EAAU,uBAAA;;EAEV,YAAA;EAUI;EARJ,YAAA;AAAA;;;;AAS+B;KAFrB,uCAAA;EACN,IAAA;EAAoB,UAAA,EAAY,GAAG;AAAA;EACnC,IAAA;EAAiB,UAAA;AAAA;;;;UAKN,0CAAA;EACf,QAAA,EAAU,0BAAA;EACV,OAAA;EACA,MAAA,EAAQ,uCAAuC;AAAA;;;;;UAOhC,mCAAA;;EAEf,cAAA;EACA,UAAA,EAAY,0CAA0C;AAAA"}
@@ -1,6 +1,6 @@
1
- import { _ as MobileServerNotificationPreferences, d as MobileServerFeedTrade, f as MobileServerFollowListAccount, l as MobileNotificationPlatform, v as MobileServerProfile } from "./serverModelTypes-DV-eARP8.js";
2
- import { a as MobileServerPublicQueryRequestByType, c as MobileServerSignedQueryRequestType, o as MobileServerPublicQueryRequestType } from "./serverRequestTypes-BDXIPjtw.js";
3
- import { n as MobileServerSuccessResponse } from "./serverBaseTypes-DPB1vEvv.js";
1
+ import { _ as MobileServerNotificationPreferences, d as MobileServerFeedTrade, f as MobileServerFollowListAccount, l as MobileNotificationPlatform, v as MobileServerProfile } from "./serverModelTypes-CDcRlRtw.js";
2
+ import { o as MobileServerPublicQueryRequestByType, s as MobileServerPublicQueryRequestType } from "./serverRequestTypes-Dv9NR-hQ.js";
3
+ import { n as MobileServerSuccessResponse } from "./serverBaseTypes-C2JGib--.js";
4
4
  import { Hex } from "viem";
5
5
 
6
6
  //#region src/types/serverQueryTypes.d.ts
@@ -24,6 +24,15 @@ interface MobileServerUsernameAvailabilityResponse {
24
24
  interface MobileServerProfilesResponse {
25
25
  profiles: MobileServerProfile[];
26
26
  }
27
+ /**
28
+ * Payload of the `followers` and `following` public query success responses. Both list directions share one
29
+ * shape; only the relationship that selected the rows differs.
30
+ */
31
+ interface MobileServerFollowListResponse {
32
+ accounts: MobileServerFollowListAccount[];
33
+ /** `null` means the list is complete. */
34
+ next_cursor: string | null;
35
+ }
27
36
  /**
28
37
  * Payload of the `feed` public query success response.
29
38
  */
@@ -63,6 +72,8 @@ interface MobileServerRegisteredWalletResponse {
63
72
  interface MobileServerPublicQueryResponseByType {
64
73
  username_availability: MobileServerUsernameAvailabilityResponse;
65
74
  profiles: MobileServerProfilesResponse;
75
+ followers: MobileServerFollowListResponse;
76
+ following: MobileServerFollowListResponse;
66
77
  feed: MobileServerFeedResponse;
67
78
  notification_preferences: MobileServerNotificationPreferencesResponse;
68
79
  registered_wallet: MobileServerRegisteredWalletResponse;
@@ -73,28 +84,6 @@ interface MobileServerPublicQueryResponseByType {
73
84
  * mirroring engine's `EngineServerQuerySuccessResponse` (inlined here instead of nested under `data`).
74
85
  */
75
86
  type MobileServerPublicQuerySuccessResponse<T extends MobileServerPublicQueryRequestType = MobileServerPublicQueryRequestType> = MobileServerSuccessResponse & MobileServerPublicQueryResponseByType[T];
76
- /**
77
- * Payload of the `followers` and `following` signed query success responses. Both list directions share one
78
- * shape; only the relationship that selected the rows differs.
79
- */
80
- interface MobileServerFollowListResponse {
81
- accounts: MobileServerFollowListAccount[];
82
- /** `null` means the list is complete. */
83
- next_cursor: string | null;
84
- }
85
- /**
86
- * Success payloads for each signed `query`, keyed by request `type` — the signed counterpart to
87
- * {@link MobileServerPublicQueryResponseByType}.
88
- */
89
- interface MobileServerSignedQueryResponseByType {
90
- followers: MobileServerFollowListResponse;
91
- following: MobileServerFollowListResponse;
92
- }
93
- /**
94
- * Full success response for a signed `query`: the {@link MobileServerSuccessResponse} envelope with the
95
- * query's payload inlined alongside `status`.
96
- */
97
- type MobileServerSignedQuerySuccessResponse<T extends MobileServerSignedQueryRequestType = MobileServerSignedQueryRequestType> = MobileServerSuccessResponse & MobileServerSignedQueryResponseByType[T];
98
87
  //#endregion
99
- export { MobileServerPublicQueryRequest as a, MobileServerRegisteredWalletResponse as c, MobileServerUsernameAvailabilityResponse as d, MobileServerProfilesResponse as i, MobileServerSignedQueryResponseByType as l, MobileServerFollowListResponse as n, MobileServerPublicQueryResponseByType as o, MobileServerNotificationPreferencesResponse as r, MobileServerPublicQuerySuccessResponse as s, MobileServerFeedResponse as t, MobileServerSignedQuerySuccessResponse as u };
100
- //# sourceMappingURL=serverQueryTypes-LygPrZn7.d.ts.map
88
+ export { MobileServerPublicQueryRequest as a, MobileServerRegisteredWalletResponse as c, MobileServerProfilesResponse as i, MobileServerUsernameAvailabilityResponse as l, MobileServerFollowListResponse as n, MobileServerPublicQueryResponseByType as o, MobileServerNotificationPreferencesResponse as r, MobileServerPublicQuerySuccessResponse as s, MobileServerFeedResponse as t };
89
+ //# sourceMappingURL=serverQueryTypes-B0xI1G39.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serverQueryTypes-B0xI1G39.d.ts","names":[],"sources":["../src/types/src/types/serverQueryTypes.ts"],"mappings":";;;;;;;;AAiBA;KAAY,8BAAA,WACA,kCAAA,GACR,kCAAA,YAEI,kCAAA;EACJ,IAAA,EAAM,CAAA;AAAA,IACJ,oCAAA,CAAqC,CAAA,IACzC,CAAA;;;;UAKe,wCAAA;EACf,QAAA;EACA,SAAS;AAAA;;;;;UAOM,4BAAA;EACf,QAAA,EAAU,mBAAmB;AAAA;;;;AAf5B;UAsBc,8BAAA;EACf,QAAA,EAAU,6BAA6B;;EAEvC,WAAA;AAAA;AAXF;;;AAAA,UAiBiB,wBAAA;EACf,MAAA,EAAQ,qBAAqB;EAVd;;;;;EAgBf,WAAA;AAAA;;AAbW;AAMb;UAaiB,2CAAA;EACf,WAAA,EAAa,mCAAmC;AAAA;;;;;UAOjC,oCAAA;EACf,MAAA,EAAQ,GAAA;EACR,QAAA,EAAU,0BAA0B;EACpC,MAAA;EACA,WAAA;EACA,wBAAA;EACA,YAAA;AAAA;;;;;;;UASe,qCAAA;EACf,qBAAA,EAAuB,wCAAA;EACvB,QAAA,EAAU,4BAAA;EACV,SAAA,EAAW,8BAAA;EACX,SAAA,EAAW,8BAAA;EACX,IAAA,EAAM,wBAAA;EACN,wBAAA,EAA0B,2CAAA;EAC1B,iBAAA,EAAmB,oCAAA;AAAA;;;;;;KAQT,sCAAA,WACA,kCAAA,GACR,kCAAA,IACA,2BAAA,GAA8B,qCAAA,CAAsC,CAAA"}