@nadohq/mobile-client 0.29.0 → 0.30.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 (188) hide show
  1. package/dist/{MobileClient-9JSAzblH.cjs → MobileClient-CfDtaEeL.cjs} +21 -1
  2. package/dist/MobileClient-CfDtaEeL.cjs.map +1 -0
  3. package/dist/MobileClient.cjs +1 -1
  4. package/dist/MobileClient.d.cts +21 -9
  5. package/dist/MobileClient.d.cts.map +1 -1
  6. package/dist/MobileClient.d.ts +21 -9
  7. package/dist/MobileClient.d.ts.map +1 -1
  8. package/dist/MobileClient.js +21 -1
  9. package/dist/MobileClient.js.map +1 -1
  10. package/dist/{MobileServerFailureError-ZggEcEda.d.cts → MobileServerFailureError-B11rr9O5.d.cts} +3 -2
  11. package/dist/MobileServerFailureError-B11rr9O5.d.cts.map +1 -0
  12. package/dist/{MobileServerFailureError-f9KhKnJj.d.ts → MobileServerFailureError-DoIvXqYV.d.ts} +3 -2
  13. package/dist/MobileServerFailureError-DoIvXqYV.d.ts.map +1 -0
  14. package/dist/{buildSignedMobileRequest-CDRsRNHm.d.ts → buildSignedMobileRequest-B4KJ6T1y.d.ts} +2 -2
  15. package/dist/{buildSignedMobileRequest-CDRsRNHm.d.ts.map → buildSignedMobileRequest-B4KJ6T1y.d.ts.map} +1 -1
  16. package/dist/{buildSignedMobileRequest-BsbBkU0K.d.cts → buildSignedMobileRequest-EEnDgZF8.d.cts} +2 -2
  17. package/dist/{buildSignedMobileRequest-BsbBkU0K.d.cts.map → buildSignedMobileRequest-EEnDgZF8.d.cts.map} +1 -1
  18. package/dist/{canonicalize-Dm7sXwPg.d.cts → canonicalize-CDdYnhL3.d.cts} +2 -2
  19. package/dist/canonicalize-CDdYnhL3.d.cts.map +1 -0
  20. package/dist/{canonicalize-PX6dTIdF.d.ts → canonicalize-Cc7hdZLJ.d.ts} +2 -2
  21. package/dist/canonicalize-Cc7hdZLJ.d.ts.map +1 -0
  22. package/dist/{clientTypes-DWW2N66c.d.ts → clientTypes-BsOps_pY.d.ts} +67 -3
  23. package/dist/clientTypes-BsOps_pY.d.ts.map +1 -0
  24. package/dist/{clientTypes-Et0PUa2d.d.cts → clientTypes-UFInIAQd.d.cts} +67 -3
  25. package/dist/clientTypes-UFInIAQd.d.cts.map +1 -0
  26. package/dist/dataMappers.cjs +33 -0
  27. package/dist/dataMappers.cjs.map +1 -1
  28. package/dist/dataMappers.d.cts +8 -3
  29. package/dist/dataMappers.d.cts.map +1 -1
  30. package/dist/dataMappers.d.ts +8 -3
  31. package/dist/dataMappers.d.ts.map +1 -1
  32. package/dist/dataMappers.js +33 -1
  33. package/dist/dataMappers.js.map +1 -1
  34. package/dist/{eip712MethodByType-DJgXal9r.d.ts → eip712MethodByType-B67XiwTu.d.ts} +2 -2
  35. package/dist/eip712MethodByType-B67XiwTu.d.ts.map +1 -0
  36. package/dist/{eip712MethodByType-DLh9MRsD.d.cts → eip712MethodByType-DCU415zf.d.cts} +2 -2
  37. package/dist/eip712MethodByType-DCU415zf.d.cts.map +1 -0
  38. package/dist/feed-BF5k6Ryu.d.ts +14 -0
  39. package/dist/feed-BF5k6Ryu.d.ts.map +1 -0
  40. package/dist/feed-CBIwOhTO.d.cts +14 -0
  41. package/dist/feed-CBIwOhTO.d.cts.map +1 -0
  42. package/dist/index.cjs +8 -1
  43. package/dist/index.d.cts +17 -15
  44. package/dist/index.d.ts +17 -15
  45. package/dist/index.js +3 -1
  46. package/dist/{mobileErrorCodes-QG5XbEY6.d.ts → mobileErrorCodes-Cj84nBnT.d.cts} +7 -5
  47. package/dist/mobileErrorCodes-Cj84nBnT.d.cts.map +1 -0
  48. package/dist/{mobileErrorCodes-BeyBKmwh.d.cts → mobileErrorCodes-Czmigq9x.d.ts} +7 -5
  49. package/dist/mobileErrorCodes-Czmigq9x.d.ts.map +1 -0
  50. package/dist/{patterns-BbxH3_VA.d.ts → patterns-B5gi7OfV.d.ts} +1 -1
  51. package/dist/patterns-B5gi7OfV.d.ts.map +1 -0
  52. package/dist/{patterns-B9J2ldpx.d.cts → patterns-Db6fgz8i.d.cts} +1 -1
  53. package/dist/patterns-Db6fgz8i.d.cts.map +1 -0
  54. package/dist/{payloadHash-nj8WuLUP.d.cts → payloadHash-BSoGv3Lz.d.cts} +2 -2
  55. package/dist/payloadHash-BSoGv3Lz.d.cts.map +1 -0
  56. package/dist/{payloadHash-Bmhzs78N.d.ts → payloadHash-BVP2v3p9.d.ts} +2 -2
  57. package/dist/payloadHash-BVP2v3p9.d.ts.map +1 -0
  58. package/dist/serverBaseTypes-A16onlPN.d.cts +25 -0
  59. package/dist/serverBaseTypes-A16onlPN.d.cts.map +1 -0
  60. package/dist/serverBaseTypes-m3zEi0X9.d.ts +25 -0
  61. package/dist/serverBaseTypes-m3zEi0X9.d.ts.map +1 -0
  62. package/dist/{serverExecuteTypes-DKYK1V7C.d.cts → serverExecuteTypes-C-bioiuQ.d.cts} +2 -2
  63. package/dist/serverExecuteTypes-C-bioiuQ.d.cts.map +1 -0
  64. package/dist/{serverExecuteTypes-CXnMjKnt.d.ts → serverExecuteTypes-DfzWOeIx.d.ts} +2 -2
  65. package/dist/serverExecuteTypes-DfzWOeIx.d.ts.map +1 -0
  66. package/dist/serverModelTypes-CPZUvVil.d.cts +143 -0
  67. package/dist/serverModelTypes-CPZUvVil.d.cts.map +1 -0
  68. package/dist/serverModelTypes-CqnqHY5F.d.ts +143 -0
  69. package/dist/serverModelTypes-CqnqHY5F.d.ts.map +1 -0
  70. package/dist/serverQueryTypes-CJLWWZBs.d.ts +91 -0
  71. package/dist/serverQueryTypes-CJLWWZBs.d.ts.map +1 -0
  72. package/dist/serverQueryTypes-C_cCx0Ac.d.cts +91 -0
  73. package/dist/serverQueryTypes-C_cCx0Ac.d.cts.map +1 -0
  74. package/dist/serverRequestTypes-DQDy3K9O.d.ts +62 -0
  75. package/dist/serverRequestTypes-DQDy3K9O.d.ts.map +1 -0
  76. package/dist/serverRequestTypes-DnU_FfMI.d.cts +62 -0
  77. package/dist/serverRequestTypes-DnU_FfMI.d.cts.map +1 -0
  78. package/dist/{serverResponseGuards-DjCNL3CR.d.cts → serverResponseGuards-BlvfJjsa.d.cts} +2 -2
  79. package/dist/{serverResponseGuards-DjCNL3CR.d.cts.map → serverResponseGuards-BlvfJjsa.d.cts.map} +1 -1
  80. package/dist/{serverResponseGuards-C_vZIgGl.d.ts → serverResponseGuards-gpHH8SHk.d.ts} +2 -2
  81. package/dist/{serverResponseGuards-C_vZIgGl.d.ts.map → serverResponseGuards-gpHH8SHk.d.ts.map} +1 -1
  82. package/dist/signing/buildSignedMobileRequest.cjs +1 -1
  83. package/dist/signing/buildSignedMobileRequest.d.cts +1 -1
  84. package/dist/signing/buildSignedMobileRequest.d.ts +1 -1
  85. package/dist/signing/canonicalize.d.cts +1 -1
  86. package/dist/signing/canonicalize.d.ts +1 -1
  87. package/dist/signing/eip712MethodByType.d.cts +1 -1
  88. package/dist/signing/eip712MethodByType.d.ts +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.cjs.map +1 -1
  98. package/dist/types/MobileServerFailureError.d.cts +1 -1
  99. package/dist/types/MobileServerFailureError.d.ts +1 -1
  100. package/dist/types/MobileServerFailureError.js.map +1 -1
  101. package/dist/types/clientTypes.d.cts +2 -2
  102. package/dist/types/clientTypes.d.ts +2 -2
  103. package/dist/types/index.cjs +4 -0
  104. package/dist/types/index.d.cts +9 -8
  105. package/dist/types/index.d.ts +9 -8
  106. package/dist/types/index.js +2 -1
  107. package/dist/types/mobileErrorCodes.cjs +9 -5
  108. package/dist/types/mobileErrorCodes.cjs.map +1 -1
  109. package/dist/types/mobileErrorCodes.d.cts +1 -1
  110. package/dist/types/mobileErrorCodes.d.ts +1 -1
  111. package/dist/types/mobileErrorCodes.js +8 -4
  112. package/dist/types/mobileErrorCodes.js.map +1 -1
  113. package/dist/types/serverBaseTypes.d.cts +2 -2
  114. package/dist/types/serverBaseTypes.d.ts +2 -2
  115. package/dist/types/serverExecuteTypes.d.cts +1 -1
  116. package/dist/types/serverExecuteTypes.d.ts +1 -1
  117. package/dist/types/serverModelTypes.cjs +29 -0
  118. package/dist/types/serverModelTypes.cjs.map +1 -0
  119. package/dist/types/serverModelTypes.d.cts +2 -2
  120. package/dist/types/serverModelTypes.d.ts +2 -2
  121. package/dist/types/serverModelTypes.js +26 -1
  122. package/dist/types/serverModelTypes.js.map +1 -0
  123. package/dist/types/serverQueryTypes.d.cts +2 -2
  124. package/dist/types/serverQueryTypes.d.ts +2 -2
  125. package/dist/types/serverRequestTypes.cjs +0 -0
  126. package/dist/types/serverRequestTypes.d.cts +2 -0
  127. package/dist/types/serverRequestTypes.d.ts +2 -0
  128. package/dist/types/serverRequestTypes.js +1 -0
  129. package/dist/{types-uCD4BNZR.d.cts → types-CzOeSYnW.d.cts} +3 -3
  130. package/dist/{types-uCD4BNZR.d.cts.map → types-CzOeSYnW.d.cts.map} +1 -1
  131. package/dist/{types-B76Pn7Sy.d.ts → types-UHjZR-js.d.ts} +3 -3
  132. package/dist/{types-B76Pn7Sy.d.ts.map → types-UHjZR-js.d.ts.map} +1 -1
  133. package/dist/utils/feed.cjs +17 -0
  134. package/dist/utils/feed.cjs.map +1 -0
  135. package/dist/utils/feed.d.cts +2 -0
  136. package/dist/utils/feed.d.ts +2 -0
  137. package/dist/utils/feed.js +15 -0
  138. package/dist/utils/feed.js.map +1 -0
  139. package/dist/utils/index.cjs +3 -0
  140. package/dist/utils/index.d.cts +4 -3
  141. package/dist/utils/index.d.ts +4 -3
  142. package/dist/utils/index.js +2 -1
  143. package/dist/utils/patterns.d.cts +1 -1
  144. package/dist/utils/patterns.d.ts +1 -1
  145. package/dist/utils/serverResponseGuards.d.cts +1 -1
  146. package/dist/utils/serverResponseGuards.d.ts +1 -1
  147. package/package.json +3 -3
  148. package/src/MobileClient.ts +49 -27
  149. package/src/dataMappers.ts +40 -0
  150. package/src/types/MobileServerFailureError.ts +2 -4
  151. package/src/types/clientTypes.ts +70 -0
  152. package/src/types/index.ts +1 -0
  153. package/src/types/mobileErrorCodes.ts +7 -3
  154. package/src/types/serverBaseTypes.ts +7 -28
  155. package/src/types/serverModelTypes.ts +93 -0
  156. package/src/types/serverQueryTypes.ts +83 -39
  157. package/src/types/serverRequestTypes.ts +68 -0
  158. package/src/utils/feed.ts +11 -0
  159. package/src/utils/index.ts +1 -0
  160. package/dist/MobileClient-9JSAzblH.cjs.map +0 -1
  161. package/dist/MobileServerFailureError-ZggEcEda.d.cts.map +0 -1
  162. package/dist/MobileServerFailureError-f9KhKnJj.d.ts.map +0 -1
  163. package/dist/canonicalize-Dm7sXwPg.d.cts.map +0 -1
  164. package/dist/canonicalize-PX6dTIdF.d.ts.map +0 -1
  165. package/dist/clientTypes-DWW2N66c.d.ts.map +0 -1
  166. package/dist/clientTypes-Et0PUa2d.d.cts.map +0 -1
  167. package/dist/eip712MethodByType-DJgXal9r.d.ts.map +0 -1
  168. package/dist/eip712MethodByType-DLh9MRsD.d.cts.map +0 -1
  169. package/dist/mobileErrorCodes-BeyBKmwh.d.cts.map +0 -1
  170. package/dist/mobileErrorCodes-QG5XbEY6.d.ts.map +0 -1
  171. package/dist/patterns-B9J2ldpx.d.cts.map +0 -1
  172. package/dist/patterns-BbxH3_VA.d.ts.map +0 -1
  173. package/dist/payloadHash-Bmhzs78N.d.ts.map +0 -1
  174. package/dist/payloadHash-nj8WuLUP.d.cts.map +0 -1
  175. package/dist/serverBaseTypes-BicXMrZV.d.cts +0 -43
  176. package/dist/serverBaseTypes-BicXMrZV.d.cts.map +0 -1
  177. package/dist/serverBaseTypes-ewbo8l4R.d.ts +0 -43
  178. package/dist/serverBaseTypes-ewbo8l4R.d.ts.map +0 -1
  179. package/dist/serverExecuteTypes-CXnMjKnt.d.ts.map +0 -1
  180. package/dist/serverExecuteTypes-DKYK1V7C.d.cts.map +0 -1
  181. package/dist/serverModelTypes-CQgfqgW3.d.cts +0 -69
  182. package/dist/serverModelTypes-CQgfqgW3.d.cts.map +0 -1
  183. package/dist/serverModelTypes-vEPhHIit.d.ts +0 -69
  184. package/dist/serverModelTypes-vEPhHIit.d.ts.map +0 -1
  185. package/dist/serverQueryTypes-BI-2TD8F.d.ts +0 -53
  186. package/dist/serverQueryTypes-BI-2TD8F.d.ts.map +0 -1
  187. package/dist/serverQueryTypes-D7Yharse.d.cts +0 -53
  188. package/dist/serverQueryTypes-D7Yharse.d.cts.map +0 -1
@@ -0,0 +1,62 @@
1
+ import { n as MobileSignedInner } from "./types-UHjZR-js.js";
2
+
3
+ //#region src/types/serverRequestTypes.d.ts
4
+ /**
5
+ * Params for each unsigned `public_query`, keyed by request `type`.
6
+ */
7
+ interface MobileServerPublicQueryRequestByType {
8
+ username_availability: {
9
+ display_name: string;
10
+ };
11
+ profile: {
12
+ username: string;
13
+ };
14
+ feed: {
15
+ /**
16
+ * Minimum notional as a whole-dollar JSON integer (NOT an x18 string), at least $1,000. Omitted or
17
+ * `null` means unfiltered.
18
+ */
19
+ minimum_notional?: number; /** Page size, 1–50; the backend defaults to `MOBILE_FEED_MAX_PAGE_SIZE` (50) when omitted. */
20
+ limit?: number;
21
+ /**
22
+ * Opaque keyset cursor from a prior page's `next_cursor`. Bound to the exact `minimum_notional` it was
23
+ * issued for (including the unfiltered state) — reusing it with a different filter fails.
24
+ */
25
+ cursor?: string;
26
+ };
27
+ }
28
+ /**
29
+ * Discriminant `type` values for unsigned `public_query` requests.
30
+ */
31
+ type MobileServerPublicQueryRequestType = keyof MobileServerPublicQueryRequestByType;
32
+ /**
33
+ * Params for each signed `query`, keyed by request `type`. These queries identify the caller through the
34
+ * signed envelope (`sender`) and take no further params, so every entry is empty — the signed counterpart to
35
+ * {@link MobileServerPublicQueryRequestByType}, kept so both query routes expose one params lookup keyed by
36
+ * type (matching engine's `EngineServerQueryRequestByType`, which likewise uses `Record<string, never>` for
37
+ * param-less queries).
38
+ */
39
+ interface MobileServerSignedQueryRequestByType {
40
+ self_identity: Record<string, never>;
41
+ notification_preferences: Record<string, never>;
42
+ registered_devices: Record<string, never>;
43
+ }
44
+ /**
45
+ * Discriminant `type` values for signed `query` requests: the read-only subset of {@link MobileSignedInner}
46
+ * tags, keyed the same way as {@link MobileServerPublicQueryRequestType}.
47
+ */
48
+ type MobileServerSignedQueryRequestType = keyof MobileServerSignedQueryRequestByType;
49
+ /**
50
+ * Discriminant `type` values for signed `execute` requests: the write subset of {@link MobileSignedInner}
51
+ * tags, derived as everything that is not a signed query so the two routes cannot overlap or drift.
52
+ */
53
+ type MobileServerExecuteRequestType = Exclude<MobileSignedInner['type'], MobileServerSignedQueryRequestType>;
54
+ /**
55
+ * Wire `request_type` the backend echoes on failure envelopes, prefixed by the route that produced it:
56
+ * `public_query_*` for unsigned queries, `query_*` for signed queries, and `execute_*` for signed writes
57
+ * (e.g. `execute_claim_username`).
58
+ */
59
+ type MobileServerRequestType = `public_query_${MobileServerPublicQueryRequestType}` | `query_${MobileServerSignedQueryRequestType}` | `execute_${MobileServerExecuteRequestType}`;
60
+ //#endregion
61
+ export { MobileServerSignedQueryRequestByType as a, MobileServerRequestType as i, MobileServerPublicQueryRequestByType as n, MobileServerSignedQueryRequestType as o, MobileServerPublicQueryRequestType as r, MobileServerExecuteRequestType as t };
62
+ //# sourceMappingURL=serverRequestTypes-DQDy3K9O.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serverRequestTypes-DQDy3K9O.d.ts","names":[],"sources":["../src/types/src/types/serverRequestTypes.ts"],"mappings":";;;;;AAKA;UAAiB,oCAAA;EACf,qBAAA;IAAyB,YAAA;EAAA;EACzB,OAAA;IAAW,QAAA;EAAA;EACX,IAAA;IAKE;;;;IAAA,gBAAA,WAcQ;IAZR,KAAA;IAaI;;AAAoC;AAS5C;IAjBI,MAAA;EAAA;AAAA;;;;KAOQ,kCAAA,SACJ,oCAAoC;;;;;;;;UAS3B,oCAAA;EACf,aAAA,EAAe,MAAA;EACf,wBAAA,EAA0B,MAAA;EAC1B,kBAAA,EAAoB,MAAA;AAAA;AAQsB;AAM5C;;;AAN4C,KADhC,kCAAA,SACJ,oCAAoC;;;;;KAMhC,8BAAA,GAAiC,OAAA,CAC3C,iBAAA,UACA,kCAAA;;;;AAAkC;AAQpC;KAAY,uBAAA,mBACQ,kCAAA,cACP,kCAAA,gBACE,8BAAA"}
@@ -0,0 +1,62 @@
1
+ import { n as MobileSignedInner } from "./types-CzOeSYnW.cjs";
2
+
3
+ //#region src/types/serverRequestTypes.d.ts
4
+ /**
5
+ * Params for each unsigned `public_query`, keyed by request `type`.
6
+ */
7
+ interface MobileServerPublicQueryRequestByType {
8
+ username_availability: {
9
+ display_name: string;
10
+ };
11
+ profile: {
12
+ username: string;
13
+ };
14
+ feed: {
15
+ /**
16
+ * Minimum notional as a whole-dollar JSON integer (NOT an x18 string), at least $1,000. Omitted or
17
+ * `null` means unfiltered.
18
+ */
19
+ minimum_notional?: number; /** Page size, 1–50; the backend defaults to `MOBILE_FEED_MAX_PAGE_SIZE` (50) when omitted. */
20
+ limit?: number;
21
+ /**
22
+ * Opaque keyset cursor from a prior page's `next_cursor`. Bound to the exact `minimum_notional` it was
23
+ * issued for (including the unfiltered state) — reusing it with a different filter fails.
24
+ */
25
+ cursor?: string;
26
+ };
27
+ }
28
+ /**
29
+ * Discriminant `type` values for unsigned `public_query` requests.
30
+ */
31
+ type MobileServerPublicQueryRequestType = keyof MobileServerPublicQueryRequestByType;
32
+ /**
33
+ * Params for each signed `query`, keyed by request `type`. These queries identify the caller through the
34
+ * signed envelope (`sender`) and take no further params, so every entry is empty — the signed counterpart to
35
+ * {@link MobileServerPublicQueryRequestByType}, kept so both query routes expose one params lookup keyed by
36
+ * type (matching engine's `EngineServerQueryRequestByType`, which likewise uses `Record<string, never>` for
37
+ * param-less queries).
38
+ */
39
+ interface MobileServerSignedQueryRequestByType {
40
+ self_identity: Record<string, never>;
41
+ notification_preferences: Record<string, never>;
42
+ registered_devices: Record<string, never>;
43
+ }
44
+ /**
45
+ * Discriminant `type` values for signed `query` requests: the read-only subset of {@link MobileSignedInner}
46
+ * tags, keyed the same way as {@link MobileServerPublicQueryRequestType}.
47
+ */
48
+ type MobileServerSignedQueryRequestType = keyof MobileServerSignedQueryRequestByType;
49
+ /**
50
+ * Discriminant `type` values for signed `execute` requests: the write subset of {@link MobileSignedInner}
51
+ * tags, derived as everything that is not a signed query so the two routes cannot overlap or drift.
52
+ */
53
+ type MobileServerExecuteRequestType = Exclude<MobileSignedInner['type'], MobileServerSignedQueryRequestType>;
54
+ /**
55
+ * Wire `request_type` the backend echoes on failure envelopes, prefixed by the route that produced it:
56
+ * `public_query_*` for unsigned queries, `query_*` for signed queries, and `execute_*` for signed writes
57
+ * (e.g. `execute_claim_username`).
58
+ */
59
+ type MobileServerRequestType = `public_query_${MobileServerPublicQueryRequestType}` | `query_${MobileServerSignedQueryRequestType}` | `execute_${MobileServerExecuteRequestType}`;
60
+ //#endregion
61
+ export { MobileServerSignedQueryRequestByType as a, MobileServerRequestType as i, MobileServerPublicQueryRequestByType as n, MobileServerSignedQueryRequestType as o, MobileServerPublicQueryRequestType as r, MobileServerExecuteRequestType as t };
62
+ //# sourceMappingURL=serverRequestTypes-DnU_FfMI.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serverRequestTypes-DnU_FfMI.d.cts","names":[],"sources":["../src/types/src/types/serverRequestTypes.ts"],"mappings":";;;;;AAKA;UAAiB,oCAAA;EACf,qBAAA;IAAyB,YAAA;EAAA;EACzB,OAAA;IAAW,QAAA;EAAA;EACX,IAAA;IAKE;;;;IAAA,gBAAA,WAcQ;IAZR,KAAA;IAaI;;AAAoC;AAS5C;IAjBI,MAAA;EAAA;AAAA;;;;KAOQ,kCAAA,SACJ,oCAAoC;;;;;;;;UAS3B,oCAAA;EACf,aAAA,EAAe,MAAA;EACf,wBAAA,EAA0B,MAAA;EAC1B,kBAAA,EAAoB,MAAA;AAAA;AAQsB;AAM5C;;;AAN4C,KADhC,kCAAA,SACJ,oCAAoC;;;;;KAMhC,8BAAA,GAAiC,OAAA,CAC3C,iBAAA,UACA,kCAAA;;;;AAAkC;AAQpC;KAAY,uBAAA,mBACQ,kCAAA,cACP,kCAAA,gBACE,8BAAA"}
@@ -1,4 +1,4 @@
1
- import { t as MobileServerFailureResponse } from "./serverBaseTypes-BicXMrZV.cjs";
1
+ import { t as MobileServerFailureResponse } from "./serverBaseTypes-A16onlPN.cjs";
2
2
 
3
3
  //#region src/utils/serverResponseGuards.d.ts
4
4
  /**
@@ -13,4 +13,4 @@ declare function isMobileServerSuccessResponse<T extends {
13
13
  }>(data: unknown): data is T;
14
14
  //#endregion
15
15
  export { isMobileServerSuccessResponse as n, isMobileServerFailureResponse as t };
16
- //# sourceMappingURL=serverResponseGuards-DjCNL3CR.d.cts.map
16
+ //# sourceMappingURL=serverResponseGuards-BlvfJjsa.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"serverResponseGuards-DjCNL3CR.d.cts","names":[],"sources":["../src/utils/src/utils/serverResponseGuards.ts"],"mappings":";;;;;AAKA;iBAAgB,6BAAA,CACd,IAAA,YACC,IAAA,IAAQ,2BAA2B;;;;iBAWtB,6BAAA;EAA0C,MAAA;AAAA,EAAA,CACxD,IAAA,YACC,IAAA,IAAQ,CAAC"}
1
+ {"version":3,"file":"serverResponseGuards-BlvfJjsa.d.cts","names":[],"sources":["../src/utils/src/utils/serverResponseGuards.ts"],"mappings":";;;;;AAKA;iBAAgB,6BAAA,CACd,IAAA,YACC,IAAA,IAAQ,2BAA2B;;;;iBAWtB,6BAAA;EAA0C,MAAA;AAAA,EAAA,CACxD,IAAA,YACC,IAAA,IAAQ,CAAC"}
@@ -1,4 +1,4 @@
1
- import { t as MobileServerFailureResponse } from "./serverBaseTypes-ewbo8l4R.js";
1
+ import { t as MobileServerFailureResponse } from "./serverBaseTypes-m3zEi0X9.js";
2
2
 
3
3
  //#region src/utils/serverResponseGuards.d.ts
4
4
  /**
@@ -13,4 +13,4 @@ declare function isMobileServerSuccessResponse<T extends {
13
13
  }>(data: unknown): data is T;
14
14
  //#endregion
15
15
  export { isMobileServerSuccessResponse as n, isMobileServerFailureResponse as t };
16
- //# sourceMappingURL=serverResponseGuards-C_vZIgGl.d.ts.map
16
+ //# sourceMappingURL=serverResponseGuards-gpHH8SHk.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"serverResponseGuards-C_vZIgGl.d.ts","names":[],"sources":["../src/utils/src/utils/serverResponseGuards.ts"],"mappings":";;;;;AAKA;iBAAgB,6BAAA,CACd,IAAA,YACC,IAAA,IAAQ,2BAA2B;;;;iBAWtB,6BAAA;EAA0C,MAAA;AAAA,EAAA,CACxD,IAAA,YACC,IAAA,IAAQ,CAAC"}
1
+ {"version":3,"file":"serverResponseGuards-gpHH8SHk.d.ts","names":[],"sources":["../src/utils/src/utils/serverResponseGuards.ts"],"mappings":";;;;;AAKA;iBAAgB,6BAAA,CACd,IAAA,YACC,IAAA,IAAQ,2BAA2B;;;;iBAWtB,6BAAA;EAA0C,MAAA;AAAA,EAAA,CACxD,IAAA,YACC,IAAA,IAAQ,CAAC"}
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- require("../MobileClient-9JSAzblH.cjs");
2
+ require("../MobileClient-CfDtaEeL.cjs");
3
3
  const require_signing_canonicalize = require("./canonicalize.cjs");
4
4
  const require_signing_eip712MethodByType = require("./eip712MethodByType.cjs");
5
5
  const require_signing_nonce = require("./nonce.cjs");
@@ -1,2 +1,2 @@
1
- import { t as buildSignedMobileRequest } from "../buildSignedMobileRequest-BsbBkU0K.cjs";
1
+ import { t as buildSignedMobileRequest } from "../buildSignedMobileRequest-EEnDgZF8.cjs";
2
2
  export { buildSignedMobileRequest };
@@ -1,2 +1,2 @@
1
- import { t as buildSignedMobileRequest } from "../buildSignedMobileRequest-CDRsRNHm.js";
1
+ import { t as buildSignedMobileRequest } from "../buildSignedMobileRequest-B4KJ6T1y.js";
2
2
  export { buildSignedMobileRequest };
@@ -1,2 +1,2 @@
1
- import { t as canonicalizeMobileInner } from "../canonicalize-Dm7sXwPg.cjs";
1
+ import { t as canonicalizeMobileInner } from "../canonicalize-CDdYnhL3.cjs";
2
2
  export { canonicalizeMobileInner };
@@ -1,2 +1,2 @@
1
- import { t as canonicalizeMobileInner } from "../canonicalize-PX6dTIdF.js";
1
+ import { t as canonicalizeMobileInner } from "../canonicalize-Cc7hdZLJ.js";
2
2
  export { canonicalizeMobileInner };
@@ -1,2 +1,2 @@
1
- import { t as MOBILE_EIP712_METHOD_BY_TYPE } from "../eip712MethodByType-DLh9MRsD.cjs";
1
+ import { t as MOBILE_EIP712_METHOD_BY_TYPE } from "../eip712MethodByType-DCU415zf.cjs";
2
2
  export { MOBILE_EIP712_METHOD_BY_TYPE };
@@ -1,2 +1,2 @@
1
- import { t as MOBILE_EIP712_METHOD_BY_TYPE } from "../eip712MethodByType-DJgXal9r.js";
1
+ import { t as MOBILE_EIP712_METHOD_BY_TYPE } from "../eip712MethodByType-B67XiwTu.js";
2
2
  export { MOBILE_EIP712_METHOD_BY_TYPE };
@@ -1,7 +1,7 @@
1
- import { i as MobileSignedRequest, n as MobileSignedInner, r as MobileSignedInnerParams, t as BuildSignedMobileRequestParams } from "../types-uCD4BNZR.cjs";
2
- import { t as buildSignedMobileRequest } from "../buildSignedMobileRequest-BsbBkU0K.cjs";
3
- import { t as canonicalizeMobileInner } from "../canonicalize-Dm7sXwPg.cjs";
4
- import { t as MOBILE_EIP712_METHOD_BY_TYPE } from "../eip712MethodByType-DLh9MRsD.cjs";
1
+ import { i as MobileSignedRequest, n as MobileSignedInner, r as MobileSignedInnerParams, t as BuildSignedMobileRequestParams } from "../types-CzOeSYnW.cjs";
2
+ import { t as buildSignedMobileRequest } from "../buildSignedMobileRequest-EEnDgZF8.cjs";
3
+ import { t as canonicalizeMobileInner } from "../canonicalize-CDdYnhL3.cjs";
4
+ import { t as MOBILE_EIP712_METHOD_BY_TYPE } from "../eip712MethodByType-DCU415zf.cjs";
5
5
  import { t as getMobileNonce } from "../nonce-zGyisRlj.cjs";
6
- import { t as getMobilePayloadHash } from "../payloadHash-nj8WuLUP.cjs";
6
+ import { t as getMobilePayloadHash } from "../payloadHash-BSoGv3Lz.cjs";
7
7
  export { BuildSignedMobileRequestParams, MOBILE_EIP712_METHOD_BY_TYPE, MobileSignedInner, MobileSignedInnerParams, MobileSignedRequest, buildSignedMobileRequest, canonicalizeMobileInner, getMobileNonce, getMobilePayloadHash };
@@ -1,7 +1,7 @@
1
- import { i as MobileSignedRequest, n as MobileSignedInner, r as MobileSignedInnerParams, t as BuildSignedMobileRequestParams } from "../types-B76Pn7Sy.js";
2
- import { t as buildSignedMobileRequest } from "../buildSignedMobileRequest-CDRsRNHm.js";
3
- import { t as canonicalizeMobileInner } from "../canonicalize-PX6dTIdF.js";
4
- import { t as MOBILE_EIP712_METHOD_BY_TYPE } from "../eip712MethodByType-DJgXal9r.js";
1
+ import { i as MobileSignedRequest, n as MobileSignedInner, r as MobileSignedInnerParams, t as BuildSignedMobileRequestParams } from "../types-UHjZR-js.js";
2
+ import { t as buildSignedMobileRequest } from "../buildSignedMobileRequest-B4KJ6T1y.js";
3
+ import { t as canonicalizeMobileInner } from "../canonicalize-Cc7hdZLJ.js";
4
+ import { t as MOBILE_EIP712_METHOD_BY_TYPE } from "../eip712MethodByType-B67XiwTu.js";
5
5
  import { t as getMobileNonce } from "../nonce-DCOrXXkQ.js";
6
- import { t as getMobilePayloadHash } from "../payloadHash-Bmhzs78N.js";
6
+ import { t as getMobilePayloadHash } from "../payloadHash-BVP2v3p9.js";
7
7
  export { BuildSignedMobileRequestParams, MOBILE_EIP712_METHOD_BY_TYPE, MobileSignedInner, MobileSignedInnerParams, MobileSignedRequest, buildSignedMobileRequest, canonicalizeMobileInner, getMobileNonce, getMobilePayloadHash };
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- require("../MobileClient-9JSAzblH.cjs");
2
+ require("../MobileClient-CfDtaEeL.cjs");
3
3
  let _msgpack_msgpack = require("@msgpack/msgpack");
4
4
  let viem = require("viem");
5
5
  //#region src/signing/payloadHash.ts
@@ -1,2 +1,2 @@
1
- import { t as getMobilePayloadHash } from "../payloadHash-nj8WuLUP.cjs";
1
+ import { t as getMobilePayloadHash } from "../payloadHash-BSoGv3Lz.cjs";
2
2
  export { getMobilePayloadHash };
@@ -1,2 +1,2 @@
1
- import { t as getMobilePayloadHash } from "../payloadHash-Bmhzs78N.js";
1
+ import { t as getMobilePayloadHash } from "../payloadHash-BVP2v3p9.js";
2
2
  export { getMobilePayloadHash };
@@ -1,2 +1,2 @@
1
- import { i as MobileSignedRequest, n as MobileSignedInner, r as MobileSignedInnerParams, t as BuildSignedMobileRequestParams } from "../types-uCD4BNZR.cjs";
1
+ import { i as MobileSignedRequest, n as MobileSignedInner, r as MobileSignedInnerParams, t as BuildSignedMobileRequestParams } from "../types-CzOeSYnW.cjs";
2
2
  export { BuildSignedMobileRequestParams, MobileSignedInner, MobileSignedInnerParams, MobileSignedRequest };
@@ -1,2 +1,2 @@
1
- import { i as MobileSignedRequest, n as MobileSignedInner, r as MobileSignedInnerParams, t as BuildSignedMobileRequestParams } from "../types-B76Pn7Sy.js";
1
+ import { i as MobileSignedRequest, n as MobileSignedInner, r as MobileSignedInnerParams, t as BuildSignedMobileRequestParams } from "../types-UHjZR-js.js";
2
2
  export { BuildSignedMobileRequestParams, MobileSignedInner, MobileSignedInnerParams, MobileSignedRequest };
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- require("../MobileClient-9JSAzblH.cjs");
2
+ require("../MobileClient-CfDtaEeL.cjs");
3
3
  let _nadohq_shared = require("@nadohq/shared");
4
4
  //#region src/types/MobileServerFailureError.ts
5
5
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"MobileServerFailureError.cjs","names":["BaseServerFailureError"],"sources":["../../src/types/MobileServerFailureError.ts"],"sourcesContent":["import { BaseServerFailureError } from '@nadohq/shared';\nimport {\n MobileServerFailureResponse,\n MobileServerRequestType,\n} from './serverBaseTypes';\n\n/**\n * Error thrown when the mobile service API returns a failure envelope, either as a non-2xx HTTP response\n * or a 2xx response with `status: 'failure'`. The numeric error code is exposed directly on\n * {@link BaseServerFailureError.errorCode} for comparison against {@link MOBILE_ERROR_CODES}.\n */\nexport class MobileServerFailureError extends BaseServerFailureError {\n declare readonly responseData: MobileServerFailureResponse;\n declare readonly requestType: MobileServerRequestType;\n\n /**\n * HTTP status code of the response, e.g. `404` for `PROFILE_NOT_FOUND`. Unlike the engine, the mobile\n * backend maps domain failures onto HTTP statuses.\n */\n readonly httpStatus: number;\n\n constructor(responseData: MobileServerFailureResponse, httpStatus: number) {\n super(responseData, 'MobileServerFailureError');\n this.httpStatus = httpStatus;\n }\n}\n"],"mappings":";;;;;;;;;AAWA,IAAa,2BAAb,cAA8CA,eAAAA,uBAAuB;CAUnE,YAAY,cAA2C,YAAoB;EACzE,MAAM,cAAc,0BAA0B;EAC9C,KAAK,aAAa;CACpB;AACF"}
1
+ {"version":3,"file":"MobileServerFailureError.cjs","names":["BaseServerFailureError"],"sources":["../../src/types/MobileServerFailureError.ts"],"sourcesContent":["import { BaseServerFailureError } from '@nadohq/shared';\nimport { MobileServerFailureResponse } from './serverBaseTypes';\nimport { MobileServerRequestType } from './serverRequestTypes';\n\n/**\n * Error thrown when the mobile service API returns a failure envelope, either as a non-2xx HTTP response\n * or a 2xx response with `status: 'failure'`. The numeric error code is exposed directly on\n * {@link BaseServerFailureError.errorCode} for comparison against {@link MOBILE_ERROR_CODES}.\n */\nexport class MobileServerFailureError extends BaseServerFailureError {\n declare readonly responseData: MobileServerFailureResponse;\n declare readonly requestType: MobileServerRequestType;\n\n /**\n * HTTP status code of the response, e.g. `404` for `PROFILE_NOT_FOUND`. Unlike the engine, the mobile\n * backend maps domain failures onto HTTP statuses.\n */\n readonly httpStatus: number;\n\n constructor(responseData: MobileServerFailureResponse, httpStatus: number) {\n super(responseData, 'MobileServerFailureError');\n this.httpStatus = httpStatus;\n }\n}\n"],"mappings":";;;;;;;;;AASA,IAAa,2BAAb,cAA8CA,eAAAA,uBAAuB;CAUnE,YAAY,cAA2C,YAAoB;EACzE,MAAM,cAAc,0BAA0B;EAC9C,KAAK,aAAa;CACpB;AACF"}
@@ -1,2 +1,2 @@
1
- import { t as MobileServerFailureError } from "../MobileServerFailureError-ZggEcEda.cjs";
1
+ import { t as MobileServerFailureError } from "../MobileServerFailureError-B11rr9O5.cjs";
2
2
  export { MobileServerFailureError };
@@ -1,2 +1,2 @@
1
- import { t as MobileServerFailureError } from "../MobileServerFailureError-f9KhKnJj.js";
1
+ import { t as MobileServerFailureError } from "../MobileServerFailureError-DoIvXqYV.js";
2
2
  export { MobileServerFailureError };
@@ -1 +1 @@
1
- {"version":3,"file":"MobileServerFailureError.js","names":[],"sources":["../../src/types/MobileServerFailureError.ts"],"sourcesContent":["import { BaseServerFailureError } from '@nadohq/shared';\nimport {\n MobileServerFailureResponse,\n MobileServerRequestType,\n} from './serverBaseTypes';\n\n/**\n * Error thrown when the mobile service API returns a failure envelope, either as a non-2xx HTTP response\n * or a 2xx response with `status: 'failure'`. The numeric error code is exposed directly on\n * {@link BaseServerFailureError.errorCode} for comparison against {@link MOBILE_ERROR_CODES}.\n */\nexport class MobileServerFailureError extends BaseServerFailureError {\n declare readonly responseData: MobileServerFailureResponse;\n declare readonly requestType: MobileServerRequestType;\n\n /**\n * HTTP status code of the response, e.g. `404` for `PROFILE_NOT_FOUND`. Unlike the engine, the mobile\n * backend maps domain failures onto HTTP statuses.\n */\n readonly httpStatus: number;\n\n constructor(responseData: MobileServerFailureResponse, httpStatus: number) {\n super(responseData, 'MobileServerFailureError');\n this.httpStatus = httpStatus;\n }\n}\n"],"mappings":";;;;;;;AAWA,IAAa,2BAAb,cAA8C,uBAAuB;CAUnE,YAAY,cAA2C,YAAoB;EACzE,MAAM,cAAc,0BAA0B;EAC9C,KAAK,aAAa;CACpB;AACF"}
1
+ {"version":3,"file":"MobileServerFailureError.js","names":[],"sources":["../../src/types/MobileServerFailureError.ts"],"sourcesContent":["import { BaseServerFailureError } from '@nadohq/shared';\nimport { MobileServerFailureResponse } from './serverBaseTypes';\nimport { MobileServerRequestType } from './serverRequestTypes';\n\n/**\n * Error thrown when the mobile service API returns a failure envelope, either as a non-2xx HTTP response\n * or a 2xx response with `status: 'failure'`. The numeric error code is exposed directly on\n * {@link BaseServerFailureError.errorCode} for comparison against {@link MOBILE_ERROR_CODES}.\n */\nexport class MobileServerFailureError extends BaseServerFailureError {\n declare readonly responseData: MobileServerFailureResponse;\n declare readonly requestType: MobileServerRequestType;\n\n /**\n * HTTP status code of the response, e.g. `404` for `PROFILE_NOT_FOUND`. Unlike the engine, the mobile\n * backend maps domain failures onto HTTP statuses.\n */\n readonly httpStatus: number;\n\n constructor(responseData: MobileServerFailureResponse, httpStatus: number) {\n super(responseData, 'MobileServerFailureError');\n this.httpStatus = httpStatus;\n }\n}\n"],"mappings":";;;;;;;AASA,IAAa,2BAAb,cAA8C,uBAAuB;CAUnE,YAAY,cAA2C,YAAoB;EACzE,MAAM,cAAc,0BAA0B;EAC9C,KAAK,aAAa;CACpB;AACF"}
@@ -1,2 +1,2 @@
1
- import { _ as MobileUpdateNotificationPreferencesParams, a as GetMobileUsernameAvailabilityParams, c as MobileNotificationCategoryPreference, d as MobilePublicProfile, f as MobileRegisterExpoTokenParams, g as MobileUnregisterExpoTokenParams, h as MobileSignedRequestParams, i as GetMobileSelfIdentityParams, l as MobileNotificationPreferenceScope, m as MobileSetPrivateModeParams, n as GetMobilePublicProfileParams, o as MobileClaimUsernameParams, p as MobileRegisteredDevice, r as GetMobileRegisteredDevicesParams, s as MobileIdentity, t as GetMobileNotificationPreferencesParams, u as MobileNotificationPreferences, v as MobileUpdateUsernameParams, y as MobileUsernameAvailability } from "../clientTypes-Et0PUa2d.cjs";
2
- export { GetMobileNotificationPreferencesParams, GetMobilePublicProfileParams, GetMobileRegisteredDevicesParams, GetMobileSelfIdentityParams, GetMobileUsernameAvailabilityParams, MobileClaimUsernameParams, MobileIdentity, MobileNotificationCategoryPreference, MobileNotificationPreferenceScope, MobileNotificationPreferences, MobilePublicProfile, MobileRegisterExpoTokenParams, MobileRegisteredDevice, MobileSetPrivateModeParams, MobileSignedRequestParams, MobileUnregisterExpoTokenParams, MobileUpdateNotificationPreferencesParams, MobileUpdateUsernameParams, MobileUsernameAvailability };
1
+ import { C as MobileUsernameAvailability, S as MobileUpdateUsernameParams, _ as MobileRegisteredDevice, a as GetMobileSelfIdentityParams, b as MobileUnregisterExpoTokenParams, c as MobileFeedMargin, d as MobileIdentity, f as MobileNotificationCategoryPreference, g as MobileRegisterExpoTokenParams, h as MobilePublicProfile, i as GetMobileRegisteredDevicesParams, l as MobileFeedPage, m as MobileNotificationPreferences, n as GetMobileNotificationPreferencesParams, o as GetMobileUsernameAvailabilityParams, p as MobileNotificationPreferenceScope, r as GetMobilePublicProfileParams, s as MobileClaimUsernameParams, t as GetMobileFeedParams, u as MobileFeedTrade, v as MobileSetPrivateModeParams, x as MobileUpdateNotificationPreferencesParams, y as MobileSignedRequestParams } from "../clientTypes-UFInIAQd.cjs";
2
+ export { GetMobileFeedParams, GetMobileNotificationPreferencesParams, GetMobilePublicProfileParams, GetMobileRegisteredDevicesParams, GetMobileSelfIdentityParams, GetMobileUsernameAvailabilityParams, MobileClaimUsernameParams, MobileFeedMargin, MobileFeedPage, MobileFeedTrade, MobileIdentity, MobileNotificationCategoryPreference, MobileNotificationPreferenceScope, MobileNotificationPreferences, MobilePublicProfile, MobileRegisterExpoTokenParams, MobileRegisteredDevice, MobileSetPrivateModeParams, MobileSignedRequestParams, MobileUnregisterExpoTokenParams, MobileUpdateNotificationPreferencesParams, MobileUpdateUsernameParams, MobileUsernameAvailability };
@@ -1,2 +1,2 @@
1
- import { _ as MobileUpdateNotificationPreferencesParams, a as GetMobileUsernameAvailabilityParams, c as MobileNotificationCategoryPreference, d as MobilePublicProfile, f as MobileRegisterExpoTokenParams, g as MobileUnregisterExpoTokenParams, h as MobileSignedRequestParams, i as GetMobileSelfIdentityParams, l as MobileNotificationPreferenceScope, m as MobileSetPrivateModeParams, n as GetMobilePublicProfileParams, o as MobileClaimUsernameParams, p as MobileRegisteredDevice, r as GetMobileRegisteredDevicesParams, s as MobileIdentity, t as GetMobileNotificationPreferencesParams, u as MobileNotificationPreferences, v as MobileUpdateUsernameParams, y as MobileUsernameAvailability } from "../clientTypes-DWW2N66c.js";
2
- export { GetMobileNotificationPreferencesParams, GetMobilePublicProfileParams, GetMobileRegisteredDevicesParams, GetMobileSelfIdentityParams, GetMobileUsernameAvailabilityParams, MobileClaimUsernameParams, MobileIdentity, MobileNotificationCategoryPreference, MobileNotificationPreferenceScope, MobileNotificationPreferences, MobilePublicProfile, MobileRegisterExpoTokenParams, MobileRegisteredDevice, MobileSetPrivateModeParams, MobileSignedRequestParams, MobileUnregisterExpoTokenParams, MobileUpdateNotificationPreferencesParams, MobileUpdateUsernameParams, MobileUsernameAvailability };
1
+ import { C as MobileUsernameAvailability, S as MobileUpdateUsernameParams, _ as MobileRegisteredDevice, a as GetMobileSelfIdentityParams, b as MobileUnregisterExpoTokenParams, c as MobileFeedMargin, d as MobileIdentity, f as MobileNotificationCategoryPreference, g as MobileRegisterExpoTokenParams, h as MobilePublicProfile, i as GetMobileRegisteredDevicesParams, l as MobileFeedPage, m as MobileNotificationPreferences, n as GetMobileNotificationPreferencesParams, o as GetMobileUsernameAvailabilityParams, p as MobileNotificationPreferenceScope, r as GetMobilePublicProfileParams, s as MobileClaimUsernameParams, t as GetMobileFeedParams, u as MobileFeedTrade, v as MobileSetPrivateModeParams, x as MobileUpdateNotificationPreferencesParams, y as MobileSignedRequestParams } from "../clientTypes-BsOps_pY.js";
2
+ export { GetMobileFeedParams, GetMobileNotificationPreferencesParams, GetMobilePublicProfileParams, GetMobileRegisteredDevicesParams, GetMobileSelfIdentityParams, GetMobileUsernameAvailabilityParams, MobileClaimUsernameParams, MobileFeedMargin, MobileFeedPage, MobileFeedTrade, MobileIdentity, MobileNotificationCategoryPreference, MobileNotificationPreferenceScope, MobileNotificationPreferences, MobilePublicProfile, MobileRegisterExpoTokenParams, MobileRegisteredDevice, MobileSetPrivateModeParams, MobileSignedRequestParams, MobileUnregisterExpoTokenParams, MobileUpdateNotificationPreferencesParams, MobileUpdateUsernameParams, MobileUsernameAvailability };
@@ -1,5 +1,9 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_types_MobileServerFailureError = require("./MobileServerFailureError.cjs");
3
3
  const require_types_mobileErrorCodes = require("./mobileErrorCodes.cjs");
4
+ const require_types_serverModelTypes = require("./serverModelTypes.cjs");
4
5
  exports.MOBILE_ERROR_CODES = require_types_mobileErrorCodes.MOBILE_ERROR_CODES;
6
+ exports.MOBILE_FEED_MARGIN_MODES = require_types_serverModelTypes.MOBILE_FEED_MARGIN_MODES;
7
+ exports.MOBILE_FEED_TRADE_POSITION_DIRECTIONS = require_types_serverModelTypes.MOBILE_FEED_TRADE_POSITION_DIRECTIONS;
8
+ exports.MOBILE_FEED_TRADE_POSITION_EFFECTS = require_types_serverModelTypes.MOBILE_FEED_TRADE_POSITION_EFFECTS;
5
9
  exports.MobileServerFailureError = require_types_MobileServerFailureError.MobileServerFailureError;
@@ -1,8 +1,9 @@
1
- import { a as MobileServerNotificationPreferenceScope, c as MobileServerRegisteredDevice, i as MobileServerNotificationCategoryPreference, n as MobileNotificationPlatform, o as MobileServerNotificationPreferences, r as MobileServerIdentity, s as MobileServerProfile, t as MobileNotificationCategory } from "../serverModelTypes-CQgfqgW3.cjs";
2
- import { _ as MobileUpdateNotificationPreferencesParams, a as GetMobileUsernameAvailabilityParams, c as MobileNotificationCategoryPreference, d as MobilePublicProfile, f as MobileRegisterExpoTokenParams, g as MobileUnregisterExpoTokenParams, h as MobileSignedRequestParams, i as GetMobileSelfIdentityParams, l as MobileNotificationPreferenceScope, m as MobileSetPrivateModeParams, n as GetMobilePublicProfileParams, o as MobileClaimUsernameParams, p as MobileRegisteredDevice, r as GetMobileRegisteredDevicesParams, s as MobileIdentity, t as GetMobileNotificationPreferencesParams, u as MobileNotificationPreferences, v as MobileUpdateUsernameParams, y as MobileUsernameAvailability } from "../clientTypes-Et0PUa2d.cjs";
3
- import { a as MobileServerSuccessResponse, i as MobileServerRequestType, n as MobileServerPublicQueryParamsByType, r as MobileServerPublicQueryType, t as MobileServerFailureResponse } from "../serverBaseTypes-BicXMrZV.cjs";
4
- import { n as MobileErrorCode, t as MOBILE_ERROR_CODES } from "../mobileErrorCodes-BeyBKmwh.cjs";
5
- import { t as MobileServerFailureError } from "../MobileServerFailureError-ZggEcEda.cjs";
6
- import { t as MobileServerExecuteResult } from "../serverExecuteTypes-DKYK1V7C.cjs";
7
- import { a as MobileServerRegisteredDevicesResponse, c as MobileServerUsernameAvailabilityResponse, i as MobileServerPublicQueryRequest, n as MobileServerProfileRequest, o as MobileServerSelfIdentityResponse, r as MobileServerProfileResponse, s as MobileServerUsernameAvailabilityRequest, t as MobileServerNotificationPreferencesResponse } from "../serverQueryTypes-D7Yharse.cjs";
8
- export { GetMobileNotificationPreferencesParams, GetMobilePublicProfileParams, GetMobileRegisteredDevicesParams, GetMobileSelfIdentityParams, GetMobileUsernameAvailabilityParams, MOBILE_ERROR_CODES, MobileClaimUsernameParams, MobileErrorCode, MobileIdentity, MobileNotificationCategory, MobileNotificationCategoryPreference, MobileNotificationPlatform, MobileNotificationPreferenceScope, MobileNotificationPreferences, MobilePublicProfile, MobileRegisterExpoTokenParams, MobileRegisteredDevice, MobileServerExecuteResult, MobileServerFailureError, MobileServerFailureResponse, MobileServerIdentity, MobileServerNotificationCategoryPreference, MobileServerNotificationPreferenceScope, MobileServerNotificationPreferences, MobileServerNotificationPreferencesResponse, MobileServerProfile, MobileServerProfileRequest, MobileServerProfileResponse, MobileServerPublicQueryParamsByType, MobileServerPublicQueryRequest, MobileServerPublicQueryType, MobileServerRegisteredDevice, MobileServerRegisteredDevicesResponse, MobileServerRequestType, MobileServerSelfIdentityResponse, MobileServerSuccessResponse, MobileServerUsernameAvailabilityRequest, MobileServerUsernameAvailabilityResponse, MobileSetPrivateModeParams, MobileSignedRequestParams, MobileUnregisterExpoTokenParams, MobileUpdateNotificationPreferencesParams, MobileUpdateUsernameParams, MobileUsernameAvailability };
1
+ import { _ as MobileServerRegisteredDevice, a as MobileFeedTradePosition, c as MobileNotificationCategory, d as MobileServerFeedTrade, f as MobileServerIdentity, g as MobileServerProfile, h as MobileServerNotificationPreferences, i as MobileFeedMarginMode, l as MobileNotificationPlatform, m as MobileServerNotificationPreferenceScope, n as MOBILE_FEED_TRADE_POSITION_DIRECTIONS, o as MobileFeedTradePositionDirection, p as MobileServerNotificationCategoryPreference, r as MOBILE_FEED_TRADE_POSITION_EFFECTS, s as MobileFeedTradePositionEffect, t as MOBILE_FEED_MARGIN_MODES, u as MobileServerFeedMargin } from "../serverModelTypes-CPZUvVil.cjs";
2
+ import { C as MobileUsernameAvailability, S as MobileUpdateUsernameParams, _ as MobileRegisteredDevice, a as GetMobileSelfIdentityParams, b as MobileUnregisterExpoTokenParams, c as MobileFeedMargin, d as MobileIdentity, f as MobileNotificationCategoryPreference, g as MobileRegisterExpoTokenParams, h as MobilePublicProfile, i as GetMobileRegisteredDevicesParams, l as MobileFeedPage, m as MobileNotificationPreferences, n as GetMobileNotificationPreferencesParams, o as GetMobileUsernameAvailabilityParams, p as MobileNotificationPreferenceScope, r as GetMobilePublicProfileParams, s as MobileClaimUsernameParams, t as GetMobileFeedParams, u as MobileFeedTrade, v as MobileSetPrivateModeParams, x as MobileUpdateNotificationPreferencesParams, y as MobileSignedRequestParams } from "../clientTypes-UFInIAQd.cjs";
3
+ import { a as MobileServerSignedQueryRequestByType, i as MobileServerRequestType, n as MobileServerPublicQueryRequestByType, o as MobileServerSignedQueryRequestType, r as MobileServerPublicQueryRequestType, t as MobileServerExecuteRequestType } from "../serverRequestTypes-DnU_FfMI.cjs";
4
+ import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "../serverBaseTypes-A16onlPN.cjs";
5
+ import { a as MobileServerPublicQueryResponseByType, c as MobileServerSelfIdentityResponse, d as MobileServerUsernameAvailabilityResponse, i as MobileServerPublicQueryRequest, l as MobileServerSignedQueryResponseByType, n as MobileServerNotificationPreferencesResponse, o as MobileServerPublicQuerySuccessResponse, r as MobileServerProfileResponse, s as MobileServerRegisteredDevicesResponse, t as MobileServerFeedResponse, u as MobileServerSignedQuerySuccessResponse } from "../serverQueryTypes-C_cCx0Ac.cjs";
6
+ import { n as MobileErrorCode, t as MOBILE_ERROR_CODES } from "../mobileErrorCodes-Cj84nBnT.cjs";
7
+ import { t as MobileServerFailureError } from "../MobileServerFailureError-B11rr9O5.cjs";
8
+ import { t as MobileServerExecuteResult } from "../serverExecuteTypes-C-bioiuQ.cjs";
9
+ export { GetMobileFeedParams, GetMobileNotificationPreferencesParams, GetMobilePublicProfileParams, GetMobileRegisteredDevicesParams, GetMobileSelfIdentityParams, GetMobileUsernameAvailabilityParams, MOBILE_ERROR_CODES, MOBILE_FEED_MARGIN_MODES, MOBILE_FEED_TRADE_POSITION_DIRECTIONS, MOBILE_FEED_TRADE_POSITION_EFFECTS, MobileClaimUsernameParams, MobileErrorCode, MobileFeedMargin, MobileFeedMarginMode, MobileFeedPage, MobileFeedTrade, MobileFeedTradePosition, MobileFeedTradePositionDirection, MobileFeedTradePositionEffect, MobileIdentity, MobileNotificationCategory, MobileNotificationCategoryPreference, MobileNotificationPlatform, MobileNotificationPreferenceScope, MobileNotificationPreferences, MobilePublicProfile, MobileRegisterExpoTokenParams, MobileRegisteredDevice, MobileServerExecuteRequestType, MobileServerExecuteResult, MobileServerFailureError, MobileServerFailureResponse, MobileServerFeedMargin, MobileServerFeedResponse, MobileServerFeedTrade, MobileServerIdentity, MobileServerNotificationCategoryPreference, MobileServerNotificationPreferenceScope, MobileServerNotificationPreferences, MobileServerNotificationPreferencesResponse, MobileServerProfile, MobileServerProfileResponse, MobileServerPublicQueryRequest, MobileServerPublicQueryRequestByType, MobileServerPublicQueryRequestType, MobileServerPublicQueryResponseByType, MobileServerPublicQuerySuccessResponse, MobileServerRegisteredDevice, MobileServerRegisteredDevicesResponse, MobileServerRequestType, MobileServerSelfIdentityResponse, MobileServerSignedQueryRequestByType, MobileServerSignedQueryRequestType, MobileServerSignedQueryResponseByType, MobileServerSignedQuerySuccessResponse, MobileServerSuccessResponse, MobileServerUsernameAvailabilityResponse, MobileSetPrivateModeParams, MobileSignedRequestParams, MobileUnregisterExpoTokenParams, MobileUpdateNotificationPreferencesParams, MobileUpdateUsernameParams, MobileUsernameAvailability };
@@ -1,8 +1,9 @@
1
- import { a as MobileServerNotificationPreferenceScope, c as MobileServerRegisteredDevice, i as MobileServerNotificationCategoryPreference, n as MobileNotificationPlatform, o as MobileServerNotificationPreferences, r as MobileServerIdentity, s as MobileServerProfile, t as MobileNotificationCategory } from "../serverModelTypes-vEPhHIit.js";
2
- import { _ as MobileUpdateNotificationPreferencesParams, a as GetMobileUsernameAvailabilityParams, c as MobileNotificationCategoryPreference, d as MobilePublicProfile, f as MobileRegisterExpoTokenParams, g as MobileUnregisterExpoTokenParams, h as MobileSignedRequestParams, i as GetMobileSelfIdentityParams, l as MobileNotificationPreferenceScope, m as MobileSetPrivateModeParams, n as GetMobilePublicProfileParams, o as MobileClaimUsernameParams, p as MobileRegisteredDevice, r as GetMobileRegisteredDevicesParams, s as MobileIdentity, t as GetMobileNotificationPreferencesParams, u as MobileNotificationPreferences, v as MobileUpdateUsernameParams, y as MobileUsernameAvailability } from "../clientTypes-DWW2N66c.js";
3
- import { a as MobileServerSuccessResponse, i as MobileServerRequestType, n as MobileServerPublicQueryParamsByType, r as MobileServerPublicQueryType, t as MobileServerFailureResponse } from "../serverBaseTypes-ewbo8l4R.js";
4
- import { n as MobileErrorCode, t as MOBILE_ERROR_CODES } from "../mobileErrorCodes-QG5XbEY6.js";
5
- import { t as MobileServerFailureError } from "../MobileServerFailureError-f9KhKnJj.js";
6
- import { t as MobileServerExecuteResult } from "../serverExecuteTypes-CXnMjKnt.js";
7
- import { a as MobileServerRegisteredDevicesResponse, c as MobileServerUsernameAvailabilityResponse, i as MobileServerPublicQueryRequest, n as MobileServerProfileRequest, o as MobileServerSelfIdentityResponse, r as MobileServerProfileResponse, s as MobileServerUsernameAvailabilityRequest, t as MobileServerNotificationPreferencesResponse } from "../serverQueryTypes-BI-2TD8F.js";
8
- export { GetMobileNotificationPreferencesParams, GetMobilePublicProfileParams, GetMobileRegisteredDevicesParams, GetMobileSelfIdentityParams, GetMobileUsernameAvailabilityParams, MOBILE_ERROR_CODES, MobileClaimUsernameParams, MobileErrorCode, MobileIdentity, MobileNotificationCategory, MobileNotificationCategoryPreference, MobileNotificationPlatform, MobileNotificationPreferenceScope, MobileNotificationPreferences, MobilePublicProfile, MobileRegisterExpoTokenParams, MobileRegisteredDevice, MobileServerExecuteResult, MobileServerFailureError, MobileServerFailureResponse, MobileServerIdentity, MobileServerNotificationCategoryPreference, MobileServerNotificationPreferenceScope, MobileServerNotificationPreferences, MobileServerNotificationPreferencesResponse, MobileServerProfile, MobileServerProfileRequest, MobileServerProfileResponse, MobileServerPublicQueryParamsByType, MobileServerPublicQueryRequest, MobileServerPublicQueryType, MobileServerRegisteredDevice, MobileServerRegisteredDevicesResponse, MobileServerRequestType, MobileServerSelfIdentityResponse, MobileServerSuccessResponse, MobileServerUsernameAvailabilityRequest, MobileServerUsernameAvailabilityResponse, MobileSetPrivateModeParams, MobileSignedRequestParams, MobileUnregisterExpoTokenParams, MobileUpdateNotificationPreferencesParams, MobileUpdateUsernameParams, MobileUsernameAvailability };
1
+ import { _ as MobileServerRegisteredDevice, a as MobileFeedTradePosition, c as MobileNotificationCategory, d as MobileServerFeedTrade, f as MobileServerIdentity, g as MobileServerProfile, h as MobileServerNotificationPreferences, i as MobileFeedMarginMode, l as MobileNotificationPlatform, m as MobileServerNotificationPreferenceScope, n as MOBILE_FEED_TRADE_POSITION_DIRECTIONS, o as MobileFeedTradePositionDirection, p as MobileServerNotificationCategoryPreference, r as MOBILE_FEED_TRADE_POSITION_EFFECTS, s as MobileFeedTradePositionEffect, t as MOBILE_FEED_MARGIN_MODES, u as MobileServerFeedMargin } from "../serverModelTypes-CqnqHY5F.js";
2
+ import { C as MobileUsernameAvailability, S as MobileUpdateUsernameParams, _ as MobileRegisteredDevice, a as GetMobileSelfIdentityParams, b as MobileUnregisterExpoTokenParams, c as MobileFeedMargin, d as MobileIdentity, f as MobileNotificationCategoryPreference, g as MobileRegisterExpoTokenParams, h as MobilePublicProfile, i as GetMobileRegisteredDevicesParams, l as MobileFeedPage, m as MobileNotificationPreferences, n as GetMobileNotificationPreferencesParams, o as GetMobileUsernameAvailabilityParams, p as MobileNotificationPreferenceScope, r as GetMobilePublicProfileParams, s as MobileClaimUsernameParams, t as GetMobileFeedParams, u as MobileFeedTrade, v as MobileSetPrivateModeParams, x as MobileUpdateNotificationPreferencesParams, y as MobileSignedRequestParams } from "../clientTypes-BsOps_pY.js";
3
+ import { a as MobileServerSignedQueryRequestByType, i as MobileServerRequestType, n as MobileServerPublicQueryRequestByType, o as MobileServerSignedQueryRequestType, r as MobileServerPublicQueryRequestType, t as MobileServerExecuteRequestType } from "../serverRequestTypes-DQDy3K9O.js";
4
+ import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "../serverBaseTypes-m3zEi0X9.js";
5
+ import { a as MobileServerPublicQueryResponseByType, c as MobileServerSelfIdentityResponse, d as MobileServerUsernameAvailabilityResponse, i as MobileServerPublicQueryRequest, l as MobileServerSignedQueryResponseByType, n as MobileServerNotificationPreferencesResponse, o as MobileServerPublicQuerySuccessResponse, r as MobileServerProfileResponse, s as MobileServerRegisteredDevicesResponse, t as MobileServerFeedResponse, u as MobileServerSignedQuerySuccessResponse } from "../serverQueryTypes-CJLWWZBs.js";
6
+ import { n as MobileErrorCode, t as MOBILE_ERROR_CODES } from "../mobileErrorCodes-Czmigq9x.js";
7
+ import { t as MobileServerFailureError } from "../MobileServerFailureError-DoIvXqYV.js";
8
+ import { t as MobileServerExecuteResult } from "../serverExecuteTypes-DfzWOeIx.js";
9
+ export { GetMobileFeedParams, GetMobileNotificationPreferencesParams, GetMobilePublicProfileParams, GetMobileRegisteredDevicesParams, GetMobileSelfIdentityParams, GetMobileUsernameAvailabilityParams, MOBILE_ERROR_CODES, MOBILE_FEED_MARGIN_MODES, MOBILE_FEED_TRADE_POSITION_DIRECTIONS, MOBILE_FEED_TRADE_POSITION_EFFECTS, MobileClaimUsernameParams, MobileErrorCode, MobileFeedMargin, MobileFeedMarginMode, MobileFeedPage, MobileFeedTrade, MobileFeedTradePosition, MobileFeedTradePositionDirection, MobileFeedTradePositionEffect, MobileIdentity, MobileNotificationCategory, MobileNotificationCategoryPreference, MobileNotificationPlatform, MobileNotificationPreferenceScope, MobileNotificationPreferences, MobilePublicProfile, MobileRegisterExpoTokenParams, MobileRegisteredDevice, MobileServerExecuteRequestType, MobileServerExecuteResult, MobileServerFailureError, MobileServerFailureResponse, MobileServerFeedMargin, MobileServerFeedResponse, MobileServerFeedTrade, MobileServerIdentity, MobileServerNotificationCategoryPreference, MobileServerNotificationPreferenceScope, MobileServerNotificationPreferences, MobileServerNotificationPreferencesResponse, MobileServerProfile, MobileServerProfileResponse, MobileServerPublicQueryRequest, MobileServerPublicQueryRequestByType, MobileServerPublicQueryRequestType, MobileServerPublicQueryResponseByType, MobileServerPublicQuerySuccessResponse, MobileServerRegisteredDevice, MobileServerRegisteredDevicesResponse, MobileServerRequestType, MobileServerSelfIdentityResponse, MobileServerSignedQueryRequestByType, MobileServerSignedQueryRequestType, MobileServerSignedQueryResponseByType, MobileServerSignedQuerySuccessResponse, MobileServerSuccessResponse, MobileServerUsernameAvailabilityResponse, MobileSetPrivateModeParams, MobileSignedRequestParams, MobileUnregisterExpoTokenParams, MobileUpdateNotificationPreferencesParams, MobileUpdateUsernameParams, MobileUsernameAvailability };
@@ -1,3 +1,4 @@
1
1
  import { MobileServerFailureError } from "./MobileServerFailureError.js";
2
2
  import { MOBILE_ERROR_CODES } from "./mobileErrorCodes.js";
3
- export { MOBILE_ERROR_CODES, MobileServerFailureError };
3
+ import { MOBILE_FEED_MARGIN_MODES, MOBILE_FEED_TRADE_POSITION_DIRECTIONS, MOBILE_FEED_TRADE_POSITION_EFFECTS } from "./serverModelTypes.js";
4
+ export { MOBILE_ERROR_CODES, MOBILE_FEED_MARGIN_MODES, MOBILE_FEED_TRADE_POSITION_DIRECTIONS, MOBILE_FEED_TRADE_POSITION_EFFECTS, MobileServerFailureError };
@@ -1,10 +1,10 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- require("../MobileClient-9JSAzblH.cjs");
2
+ require("../MobileClient-CfDtaEeL.cjs");
3
3
  //#region src/types/mobileErrorCodes.ts
4
4
  /**
5
- * Numeric error codes returned by the mobile service API. Identity codes (61xx) and notification codes
6
- * (62xx) are mobile-specific; the remaining codes are shared cross-service codes from the backend's common
7
- * error enum, inlined via spread from {@link NADO_ERROR_CODES}.
5
+ * Numeric error codes returned by the mobile service API. Identity codes (61xx), notification codes (62xx),
6
+ * and feed codes (63xx) are mobile-specific; the remaining codes are shared cross-service codes from the
7
+ * backend's common error enum, inlined via spread from {@link NADO_ERROR_CODES}.
8
8
  */
9
9
  const MOBILE_ERROR_CODES = {
10
10
  ...require("@nadohq/shared").NADO_ERROR_CODES,
@@ -17,7 +17,11 @@ const MOBILE_ERROR_CODES = {
17
17
  PROFILE_NOT_FOUND: 6106,
18
18
  INVALID_EXPO_TOKEN: 6200,
19
19
  INVALID_DEVICE_METADATA: 6201,
20
- INVALID_PREFERENCES: 6202
20
+ INVALID_PREFERENCES: 6202,
21
+ /** Feed `minimumNotional` or `limit` is outside its allowed domain. Fix the request; do not retry unchanged. */
22
+ INVALID_FEED_FILTER: 6300,
23
+ /** Feed cursor is malformed or bound to a different filter. Discard it and restart from the first page. */
24
+ INVALID_FEED_CURSOR: 6301
21
25
  };
22
26
  //#endregion
23
27
  exports.MOBILE_ERROR_CODES = MOBILE_ERROR_CODES;
@@ -1 +1 @@
1
- {"version":3,"file":"mobileErrorCodes.cjs","names":["NADO_ERROR_CODES"],"sources":["../../src/types/mobileErrorCodes.ts"],"sourcesContent":["import { NADO_ERROR_CODES } from '@nadohq/shared';\n\n/**\n * Numeric error codes returned by the mobile service API. Identity codes (61xx) and notification codes\n * (62xx) are mobile-specific; the remaining codes are shared cross-service codes from the backend's common\n * error enum, inlined via spread from {@link NADO_ERROR_CODES}.\n */\nexport const MOBILE_ERROR_CODES = {\n ...NADO_ERROR_CODES,\n INVALID_DISPLAY_NAME: 6100,\n USERNAME_UNAVAILABLE: 6101,\n IDENTITY_ALREADY_CLAIMED: 6102,\n IDENTITY_REQUIRED: 6103,\n INVALID_IDENTITY_TARGET: 6104,\n STALE_IDENTITY_UPDATE: 6105,\n PROFILE_NOT_FOUND: 6106,\n INVALID_EXPO_TOKEN: 6200,\n INVALID_DEVICE_METADATA: 6201,\n INVALID_PREFERENCES: 6202,\n} as const;\n\n/**\n * Union of all known mobile service API error codes.\n */\nexport type MobileErrorCode =\n (typeof MOBILE_ERROR_CODES)[keyof typeof MOBILE_ERROR_CODES];\n"],"mappings":";;;;;;;;AAOA,MAAa,qBAAqB;CAChC,2BAAGA,EAAAA;CACH,sBAAsB;CACtB,sBAAsB;CACtB,0BAA0B;CAC1B,mBAAmB;CACnB,yBAAyB;CACzB,uBAAuB;CACvB,mBAAmB;CACnB,oBAAoB;CACpB,yBAAyB;CACzB,qBAAqB;AACvB"}
1
+ {"version":3,"file":"mobileErrorCodes.cjs","names":["NADO_ERROR_CODES"],"sources":["../../src/types/mobileErrorCodes.ts"],"sourcesContent":["import { NADO_ERROR_CODES } from '@nadohq/shared';\n\n/**\n * Numeric error codes returned by the mobile service API. Identity codes (61xx), notification codes (62xx),\n * and feed codes (63xx) are mobile-specific; the remaining codes are shared cross-service codes from the\n * backend's common error enum, inlined via spread from {@link NADO_ERROR_CODES}.\n */\nexport const MOBILE_ERROR_CODES = {\n ...NADO_ERROR_CODES,\n INVALID_DISPLAY_NAME: 6100,\n USERNAME_UNAVAILABLE: 6101,\n IDENTITY_ALREADY_CLAIMED: 6102,\n IDENTITY_REQUIRED: 6103,\n INVALID_IDENTITY_TARGET: 6104,\n STALE_IDENTITY_UPDATE: 6105,\n PROFILE_NOT_FOUND: 6106,\n INVALID_EXPO_TOKEN: 6200,\n INVALID_DEVICE_METADATA: 6201,\n INVALID_PREFERENCES: 6202,\n /** Feed `minimumNotional` or `limit` is outside its allowed domain. Fix the request; do not retry unchanged. */\n INVALID_FEED_FILTER: 6300,\n /** Feed cursor is malformed or bound to a different filter. Discard it and restart from the first page. */\n INVALID_FEED_CURSOR: 6301,\n} as const;\n\n/**\n * Union of all known mobile service API error codes.\n */\nexport type MobileErrorCode =\n (typeof MOBILE_ERROR_CODES)[keyof typeof MOBILE_ERROR_CODES];\n"],"mappings":";;;;;;;;AAOA,MAAa,qBAAqB;CAChC,2BAAGA,EAAAA;CACH,sBAAsB;CACtB,sBAAsB;CACtB,0BAA0B;CAC1B,mBAAmB;CACnB,yBAAyB;CACzB,uBAAuB;CACvB,mBAAmB;CACnB,oBAAoB;CACpB,yBAAyB;CACzB,qBAAqB;;CAErB,qBAAqB;;CAErB,qBAAqB;AACvB"}
@@ -1,2 +1,2 @@
1
- import { n as MobileErrorCode, t as MOBILE_ERROR_CODES } from "../mobileErrorCodes-BeyBKmwh.cjs";
1
+ import { n as MobileErrorCode, t as MOBILE_ERROR_CODES } from "../mobileErrorCodes-Cj84nBnT.cjs";
2
2
  export { MOBILE_ERROR_CODES, MobileErrorCode };
@@ -1,2 +1,2 @@
1
- import { n as MobileErrorCode, t as MOBILE_ERROR_CODES } from "../mobileErrorCodes-QG5XbEY6.js";
1
+ import { n as MobileErrorCode, t as MOBILE_ERROR_CODES } from "../mobileErrorCodes-Czmigq9x.js";
2
2
  export { MOBILE_ERROR_CODES, MobileErrorCode };
@@ -1,9 +1,9 @@
1
1
  import { NADO_ERROR_CODES } from "@nadohq/shared";
2
2
  //#region src/types/mobileErrorCodes.ts
3
3
  /**
4
- * Numeric error codes returned by the mobile service API. Identity codes (61xx) and notification codes
5
- * (62xx) are mobile-specific; the remaining codes are shared cross-service codes from the backend's common
6
- * error enum, inlined via spread from {@link NADO_ERROR_CODES}.
4
+ * Numeric error codes returned by the mobile service API. Identity codes (61xx), notification codes (62xx),
5
+ * and feed codes (63xx) are mobile-specific; the remaining codes are shared cross-service codes from the
6
+ * backend's common error enum, inlined via spread from {@link NADO_ERROR_CODES}.
7
7
  */
8
8
  const MOBILE_ERROR_CODES = {
9
9
  ...NADO_ERROR_CODES,
@@ -16,7 +16,11 @@ const MOBILE_ERROR_CODES = {
16
16
  PROFILE_NOT_FOUND: 6106,
17
17
  INVALID_EXPO_TOKEN: 6200,
18
18
  INVALID_DEVICE_METADATA: 6201,
19
- INVALID_PREFERENCES: 6202
19
+ INVALID_PREFERENCES: 6202,
20
+ /** Feed `minimumNotional` or `limit` is outside its allowed domain. Fix the request; do not retry unchanged. */
21
+ INVALID_FEED_FILTER: 6300,
22
+ /** Feed cursor is malformed or bound to a different filter. Discard it and restart from the first page. */
23
+ INVALID_FEED_CURSOR: 6301
20
24
  };
21
25
  //#endregion
22
26
  export { MOBILE_ERROR_CODES };
@@ -1 +1 @@
1
- {"version":3,"file":"mobileErrorCodes.js","names":[],"sources":["../../src/types/mobileErrorCodes.ts"],"sourcesContent":["import { NADO_ERROR_CODES } from '@nadohq/shared';\n\n/**\n * Numeric error codes returned by the mobile service API. Identity codes (61xx) and notification codes\n * (62xx) are mobile-specific; the remaining codes are shared cross-service codes from the backend's common\n * error enum, inlined via spread from {@link NADO_ERROR_CODES}.\n */\nexport const MOBILE_ERROR_CODES = {\n ...NADO_ERROR_CODES,\n INVALID_DISPLAY_NAME: 6100,\n USERNAME_UNAVAILABLE: 6101,\n IDENTITY_ALREADY_CLAIMED: 6102,\n IDENTITY_REQUIRED: 6103,\n INVALID_IDENTITY_TARGET: 6104,\n STALE_IDENTITY_UPDATE: 6105,\n PROFILE_NOT_FOUND: 6106,\n INVALID_EXPO_TOKEN: 6200,\n INVALID_DEVICE_METADATA: 6201,\n INVALID_PREFERENCES: 6202,\n} as const;\n\n/**\n * Union of all known mobile service API error codes.\n */\nexport type MobileErrorCode =\n (typeof MOBILE_ERROR_CODES)[keyof typeof MOBILE_ERROR_CODES];\n"],"mappings":";;;;;;;AAOA,MAAa,qBAAqB;CAChC,GAAG;CACH,sBAAsB;CACtB,sBAAsB;CACtB,0BAA0B;CAC1B,mBAAmB;CACnB,yBAAyB;CACzB,uBAAuB;CACvB,mBAAmB;CACnB,oBAAoB;CACpB,yBAAyB;CACzB,qBAAqB;AACvB"}
1
+ {"version":3,"file":"mobileErrorCodes.js","names":[],"sources":["../../src/types/mobileErrorCodes.ts"],"sourcesContent":["import { NADO_ERROR_CODES } from '@nadohq/shared';\n\n/**\n * Numeric error codes returned by the mobile service API. Identity codes (61xx), notification codes (62xx),\n * and feed codes (63xx) are mobile-specific; the remaining codes are shared cross-service codes from the\n * backend's common error enum, inlined via spread from {@link NADO_ERROR_CODES}.\n */\nexport const MOBILE_ERROR_CODES = {\n ...NADO_ERROR_CODES,\n INVALID_DISPLAY_NAME: 6100,\n USERNAME_UNAVAILABLE: 6101,\n IDENTITY_ALREADY_CLAIMED: 6102,\n IDENTITY_REQUIRED: 6103,\n INVALID_IDENTITY_TARGET: 6104,\n STALE_IDENTITY_UPDATE: 6105,\n PROFILE_NOT_FOUND: 6106,\n INVALID_EXPO_TOKEN: 6200,\n INVALID_DEVICE_METADATA: 6201,\n INVALID_PREFERENCES: 6202,\n /** Feed `minimumNotional` or `limit` is outside its allowed domain. Fix the request; do not retry unchanged. */\n INVALID_FEED_FILTER: 6300,\n /** Feed cursor is malformed or bound to a different filter. Discard it and restart from the first page. */\n INVALID_FEED_CURSOR: 6301,\n} as const;\n\n/**\n * Union of all known mobile service API error codes.\n */\nexport type MobileErrorCode =\n (typeof MOBILE_ERROR_CODES)[keyof typeof MOBILE_ERROR_CODES];\n"],"mappings":";;;;;;;AAOA,MAAa,qBAAqB;CAChC,GAAG;CACH,sBAAsB;CACtB,sBAAsB;CACtB,0BAA0B;CAC1B,mBAAmB;CACnB,yBAAyB;CACzB,uBAAuB;CACvB,mBAAmB;CACnB,oBAAoB;CACpB,yBAAyB;CACzB,qBAAqB;;CAErB,qBAAqB;;CAErB,qBAAqB;AACvB"}
@@ -1,2 +1,2 @@
1
- import { a as MobileServerSuccessResponse, i as MobileServerRequestType, n as MobileServerPublicQueryParamsByType, r as MobileServerPublicQueryType, t as MobileServerFailureResponse } from "../serverBaseTypes-BicXMrZV.cjs";
2
- export { MobileServerFailureResponse, MobileServerPublicQueryParamsByType, MobileServerPublicQueryType, MobileServerRequestType, MobileServerSuccessResponse };
1
+ import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "../serverBaseTypes-A16onlPN.cjs";
2
+ export { MobileServerFailureResponse, MobileServerSuccessResponse };
@@ -1,2 +1,2 @@
1
- import { a as MobileServerSuccessResponse, i as MobileServerRequestType, n as MobileServerPublicQueryParamsByType, r as MobileServerPublicQueryType, t as MobileServerFailureResponse } from "../serverBaseTypes-ewbo8l4R.js";
2
- export { MobileServerFailureResponse, MobileServerPublicQueryParamsByType, MobileServerPublicQueryType, MobileServerRequestType, MobileServerSuccessResponse };
1
+ import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "../serverBaseTypes-m3zEi0X9.js";
2
+ export { MobileServerFailureResponse, MobileServerSuccessResponse };
@@ -1,2 +1,2 @@
1
- import { t as MobileServerExecuteResult } from "../serverExecuteTypes-DKYK1V7C.cjs";
1
+ import { t as MobileServerExecuteResult } from "../serverExecuteTypes-C-bioiuQ.cjs";
2
2
  export { MobileServerExecuteResult };
@@ -1,2 +1,2 @@
1
- import { t as MobileServerExecuteResult } from "../serverExecuteTypes-CXnMjKnt.js";
1
+ import { t as MobileServerExecuteResult } from "../serverExecuteTypes-DfzWOeIx.js";
2
2
  export { MobileServerExecuteResult };
@@ -0,0 +1,29 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ //#region src/types/serverModelTypes.ts
3
+ /**
4
+ * Every {@link MobileFeedTradePositionDirection} the feed can report, for callers that need the values at
5
+ * runtime (validation, filters, UI enumeration).
6
+ */
7
+ const MOBILE_FEED_TRADE_POSITION_DIRECTIONS = ["long", "short"];
8
+ /**
9
+ * Every {@link MobileFeedTradePositionEffect} the feed can report, for callers that need the values at
10
+ * runtime (validation, filters, UI enumeration).
11
+ */
12
+ const MOBILE_FEED_TRADE_POSITION_EFFECTS = [
13
+ "opened",
14
+ "increased",
15
+ "reduced",
16
+ "closed",
17
+ "flipped"
18
+ ];
19
+ /**
20
+ * Every {@link MobileFeedMarginMode} the feed can report, for callers that need the values at runtime
21
+ * (validation, filters, UI enumeration).
22
+ */
23
+ const MOBILE_FEED_MARGIN_MODES = ["cross", "isolated"];
24
+ //#endregion
25
+ exports.MOBILE_FEED_MARGIN_MODES = MOBILE_FEED_MARGIN_MODES;
26
+ exports.MOBILE_FEED_TRADE_POSITION_DIRECTIONS = MOBILE_FEED_TRADE_POSITION_DIRECTIONS;
27
+ exports.MOBILE_FEED_TRADE_POSITION_EFFECTS = MOBILE_FEED_TRADE_POSITION_EFFECTS;
28
+
29
+ //# sourceMappingURL=serverModelTypes.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serverModelTypes.cjs","names":[],"sources":["../../src/types/serverModelTypes.ts"],"sourcesContent":["import { BalanceSide } from '@nadohq/shared';\nimport { Hex } from 'viem';\n\n/**\n * Platform of a device registered for push notifications.\n */\nexport type MobileNotificationPlatform = 'ios' | 'android';\n\n/**\n * Category of push notification.\n */\nexport type MobileNotificationCategory =\n | 'order_fill'\n | 'order_update'\n | 'liquidation'\n | 'funding'\n | 'product_listing'\n | 'announcement';\n\n/**\n * Server-side public profile shape (snake_case).\n */\nexport interface MobileServerProfile {\n subaccount: Hex;\n username: string;\n display_name: string;\n}\n\n/**\n * Server-side identity shape (snake_case) returned by the signed `self_identity` query.\n */\nexport interface MobileServerIdentity {\n subaccount: Hex;\n username: string;\n display_name: string;\n private_mode: boolean;\n}\n\n/**\n * Direction of the position a feed trade resulted in — for `closed`, the direction that was closed. This is\n * NOT the execution buy/sell side, which the feed does not expose. Aliases {@link BalanceSide} so the feed's\n * direction values stay in lockstep with the rest of the SDK.\n */\nexport type MobileFeedTradePositionDirection = BalanceSide;\n\n/**\n * Every {@link MobileFeedTradePositionDirection} the feed can report, for callers that need the values at\n * runtime (validation, filters, UI enumeration).\n */\nexport const MOBILE_FEED_TRADE_POSITION_DIRECTIONS = [\n 'long',\n 'short',\n] as const satisfies readonly MobileFeedTradePositionDirection[];\n\n/**\n * Every {@link MobileFeedTradePositionEffect} the feed can report, for callers that need the values at\n * runtime (validation, filters, UI enumeration).\n */\nexport const MOBILE_FEED_TRADE_POSITION_EFFECTS = [\n 'opened',\n 'increased',\n 'reduced',\n 'closed',\n 'flipped',\n] as const;\n\n/**\n * How a feed trade changed the trader's position in the product.\n */\nexport type MobileFeedTradePositionEffect =\n (typeof MOBILE_FEED_TRADE_POSITION_EFFECTS)[number];\n\n/**\n * Position change of a feed trade. Both keys are single words, so the wire and client shapes are identical\n * and this type is shared by {@link MobileServerFeedTrade} and the client-side `MobileFeedTrade`.\n */\nexport interface MobileFeedTradePosition {\n direction: MobileFeedTradePositionDirection;\n effect: MobileFeedTradePositionEffect;\n}\n\n/**\n * Every {@link MobileFeedMarginMode} the feed can report, for callers that need the values at runtime\n * (validation, filters, UI enumeration).\n */\nexport const MOBILE_FEED_MARGIN_MODES = ['cross', 'isolated'] as const;\n\n/**\n * Margin mode a feed trade was executed under. Shared by the wire and client margin shapes.\n */\nexport type MobileFeedMarginMode = (typeof MOBILE_FEED_MARGIN_MODES)[number];\n\n/**\n * Server-side margin of a feed trade. Branch on `mode` — do not infer isolated state from leverage presence:\n * `estimated_leverage` (a rounded whole-number estimate, not exact submitted leverage) is omitted on `cross`,\n * and also omitted inside `isolated` when no estimate is available.\n */\nexport interface MobileServerFeedMargin {\n mode: MobileFeedMarginMode;\n estimated_leverage?: number;\n}\n\n/**\n * Server-side feed trade shape (snake_case): one row per order digest, enriched at read time with the\n * trader's current identity. Amounts are display-oriented human-unit JSON numbers — do not use them for\n * accounting, order construction, or exact threshold decisions.\n */\nexport interface MobileServerFeedTrade {\n /** Order digest this row is keyed by; the stable id clients use to reconcile live pagination. */\n order_digest: Hex;\n subaccount: Hex;\n username: string;\n display_name: string;\n /** Reserved for a future avatar source; `null` until one is implemented. */\n avatar_url: string | null;\n product_id: number;\n /** Executed quantity in human units. */\n quantity: number;\n /** Trade notional in whole-dollar human units. */\n notional: number;\n /** Average execution price in human units. */\n average_price: number;\n margin: MobileServerFeedMargin;\n position: MobileFeedTradePosition;\n /** Realized PnL of the trade in human units; can be negative. */\n realized_pnl: number;\n /** Fill time as JavaScript-safe integer Unix milliseconds. */\n filled_at_ms: number;\n}\n\n/**\n * Server-side scope limiting a notification category preference. Scopes are rejected by the backend for the\n * MVP (`scopes` must be empty) but are part of the wire format.\n */\nexport type MobileServerNotificationPreferenceScope =\n | { type: 'subaccount'; subaccount: Hex }\n | { type: 'product'; product_id: number };\n\n/**\n * Server-side per-category notification preference (snake_case).\n */\nexport interface MobileServerNotificationCategoryPreference {\n category: MobileNotificationCategory;\n enabled: boolean;\n scopes: MobileServerNotificationPreferenceScope[];\n}\n\n/**\n * Server-side notification preferences shape (snake_case), used in both the `update_preferences` execute and\n * the `notification_preferences` query response.\n */\nexport interface MobileServerNotificationPreferences {\n /** Only `1` is accepted by the backend for the MVP. */\n schema_version: 1;\n categories: MobileServerNotificationCategoryPreference[];\n}\n\n/**\n * Server-side registered push device shape (snake_case).\n */\nexport interface MobileServerRegisteredDevice {\n platform: MobileNotificationPlatform;\n locale: string | null;\n app_version: string | null;\n token_fingerprint_prefix: string;\n last_seen_at: number;\n}\n"],"mappings":";;;;;;AAiDA,MAAa,wCAAwC,CACnD,QACA,OACF;;;;;AAMA,MAAa,qCAAqC;CAChD;CACA;CACA;CACA;CACA;AACF;;;;;AAqBA,MAAa,2BAA2B,CAAC,SAAS,UAAU"}
@@ -1,2 +1,2 @@
1
- import { a as MobileServerNotificationPreferenceScope, c as MobileServerRegisteredDevice, i as MobileServerNotificationCategoryPreference, n as MobileNotificationPlatform, o as MobileServerNotificationPreferences, r as MobileServerIdentity, s as MobileServerProfile, t as MobileNotificationCategory } from "../serverModelTypes-CQgfqgW3.cjs";
2
- export { MobileNotificationCategory, MobileNotificationPlatform, MobileServerIdentity, MobileServerNotificationCategoryPreference, MobileServerNotificationPreferenceScope, MobileServerNotificationPreferences, MobileServerProfile, MobileServerRegisteredDevice };
1
+ import { _ as MobileServerRegisteredDevice, a as MobileFeedTradePosition, c as MobileNotificationCategory, d as MobileServerFeedTrade, f as MobileServerIdentity, g as MobileServerProfile, h as MobileServerNotificationPreferences, i as MobileFeedMarginMode, l as MobileNotificationPlatform, m as MobileServerNotificationPreferenceScope, n as MOBILE_FEED_TRADE_POSITION_DIRECTIONS, o as MobileFeedTradePositionDirection, p as MobileServerNotificationCategoryPreference, r as MOBILE_FEED_TRADE_POSITION_EFFECTS, s as MobileFeedTradePositionEffect, t as MOBILE_FEED_MARGIN_MODES, u as MobileServerFeedMargin } from "../serverModelTypes-CPZUvVil.cjs";
2
+ export { MOBILE_FEED_MARGIN_MODES, MOBILE_FEED_TRADE_POSITION_DIRECTIONS, MOBILE_FEED_TRADE_POSITION_EFFECTS, MobileFeedMarginMode, MobileFeedTradePosition, MobileFeedTradePositionDirection, MobileFeedTradePositionEffect, MobileNotificationCategory, MobileNotificationPlatform, MobileServerFeedMargin, MobileServerFeedTrade, MobileServerIdentity, MobileServerNotificationCategoryPreference, MobileServerNotificationPreferenceScope, MobileServerNotificationPreferences, MobileServerProfile, MobileServerRegisteredDevice };