@nadohq/mobile-client 0.34.0 → 0.35.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 (145) hide show
  1. package/README.md +0 -11
  2. package/dist/{MobileClient-SQ7byUxo.cjs → MobileClient-D5TNTnLx.cjs} +3 -21
  3. package/dist/MobileClient-D5TNTnLx.cjs.map +1 -0
  4. package/dist/MobileClient.cjs +1 -1
  5. package/dist/MobileClient.d.cts +10 -16
  6. package/dist/MobileClient.d.cts.map +1 -1
  7. package/dist/MobileClient.d.ts +10 -16
  8. package/dist/MobileClient.d.ts.map +1 -1
  9. package/dist/MobileClient.js +4 -22
  10. package/dist/MobileClient.js.map +1 -1
  11. package/dist/{MobileServerFailureError-N3nGgdmg.d.cts → MobileServerFailureError-CPFjwUBx.d.cts} +3 -3
  12. package/dist/{MobileServerFailureError-N3nGgdmg.d.cts.map → MobileServerFailureError-CPFjwUBx.d.cts.map} +1 -1
  13. package/dist/{MobileServerFailureError-A2EcYe6Y.d.ts → MobileServerFailureError-Terv2Wzy.d.ts} +3 -3
  14. package/dist/{MobileServerFailureError-A2EcYe6Y.d.ts.map → MobileServerFailureError-Terv2Wzy.d.ts.map} +1 -1
  15. package/dist/{buildSignedMobileRequest-B8iVGxQc.d.ts → buildSignedMobileRequest-BScnCGPF.d.ts} +2 -2
  16. package/dist/{buildSignedMobileRequest-B8iVGxQc.d.ts.map → buildSignedMobileRequest-BScnCGPF.d.ts.map} +1 -1
  17. package/dist/{buildSignedMobileRequest-CtRX4zl4.d.cts → buildSignedMobileRequest-CXfnhc-4.d.cts} +2 -2
  18. package/dist/{buildSignedMobileRequest-CtRX4zl4.d.cts.map → buildSignedMobileRequest-CXfnhc-4.d.cts.map} +1 -1
  19. package/dist/{canonicalize-Cz1rz_ER.d.ts → canonicalize-CQ-pMYIt.d.ts} +2 -2
  20. package/dist/canonicalize-CQ-pMYIt.d.ts.map +1 -0
  21. package/dist/{canonicalize-afPLlUjE.d.cts → canonicalize-hzhboB-C.d.cts} +2 -2
  22. package/dist/canonicalize-hzhboB-C.d.cts.map +1 -0
  23. package/dist/{clientTypes-DqDZEcBu.d.ts → clientTypes-BwakovWk.d.cts} +3 -30
  24. package/dist/clientTypes-BwakovWk.d.cts.map +1 -0
  25. package/dist/{clientTypes-DIipTg9D.d.cts → clientTypes-D-o1_2Yc.d.ts} +3 -30
  26. package/dist/clientTypes-D-o1_2Yc.d.ts.map +1 -0
  27. package/dist/dataMappers.cjs +0 -12
  28. package/dist/dataMappers.cjs.map +1 -1
  29. package/dist/dataMappers.d.cts +4 -8
  30. package/dist/dataMappers.d.cts.map +1 -1
  31. package/dist/dataMappers.d.ts +4 -8
  32. package/dist/dataMappers.d.ts.map +1 -1
  33. package/dist/dataMappers.js +1 -12
  34. package/dist/dataMappers.js.map +1 -1
  35. package/dist/{eip712MethodByType-CUAcWwX0.d.cts → eip712MethodByType-3aiJkrHj.d.cts} +2 -2
  36. package/dist/eip712MethodByType-3aiJkrHj.d.cts.map +1 -0
  37. package/dist/{eip712MethodByType-BzfeoDTF.d.ts → eip712MethodByType-zNvZukU7.d.ts} +2 -2
  38. package/dist/eip712MethodByType-zNvZukU7.d.ts.map +1 -0
  39. package/dist/index.cjs +1 -1
  40. package/dist/index.d.cts +14 -14
  41. package/dist/index.d.ts +14 -14
  42. package/dist/{payloadHash-yIWBW4Iq.d.ts → payloadHash-BxL26uwq.d.ts} +2 -2
  43. package/dist/payloadHash-BxL26uwq.d.ts.map +1 -0
  44. package/dist/{payloadHash-CgKXMvZU.d.cts → payloadHash-DVkEt-Rg.d.cts} +2 -2
  45. package/dist/payloadHash-DVkEt-Rg.d.cts.map +1 -0
  46. package/dist/{serverBaseTypes-ClQZqTAK.d.ts → serverBaseTypes-B_KHFDab.d.ts} +2 -2
  47. package/dist/{serverBaseTypes-ClQZqTAK.d.ts.map → serverBaseTypes-B_KHFDab.d.ts.map} +1 -1
  48. package/dist/{serverBaseTypes-_a1pE464.d.cts → serverBaseTypes-C8KjE9Fm.d.cts} +2 -2
  49. package/dist/{serverBaseTypes-_a1pE464.d.cts.map → serverBaseTypes-C8KjE9Fm.d.cts.map} +1 -1
  50. package/dist/{serverExecuteTypes-CUla9jFj.d.cts → serverExecuteTypes-Cb5v7y0A.d.cts} +3 -3
  51. package/dist/{serverExecuteTypes-CUla9jFj.d.cts.map → serverExecuteTypes-Cb5v7y0A.d.cts.map} +1 -1
  52. package/dist/{serverExecuteTypes-BD8Awy8Q.d.ts → serverExecuteTypes-GFjZj_DC.d.ts} +3 -3
  53. package/dist/{serverExecuteTypes-BD8Awy8Q.d.ts.map → serverExecuteTypes-GFjZj_DC.d.ts.map} +1 -1
  54. package/dist/{serverModelTypes-BIGPd52y.d.ts → serverModelTypes-CwgibK-l.d.cts} +2 -12
  55. package/dist/serverModelTypes-CwgibK-l.d.cts.map +1 -0
  56. package/dist/{serverModelTypes-DGYc_3XP.d.cts → serverModelTypes-_cX99seo.d.ts} +2 -12
  57. package/dist/serverModelTypes-_cX99seo.d.ts.map +1 -0
  58. package/dist/{serverQueryTypes-4J8qNQld.d.ts → serverQueryTypes-DwE1iJ9f.d.cts} +5 -27
  59. package/dist/serverQueryTypes-DwE1iJ9f.d.cts.map +1 -0
  60. package/dist/{serverQueryTypes-C_rvZnol.d.cts → serverQueryTypes-NIrPm2Sl.d.ts} +5 -27
  61. package/dist/serverQueryTypes-NIrPm2Sl.d.ts.map +1 -0
  62. package/dist/{serverRequestTypes-w1r41ff7.d.ts → serverRequestTypes-516zXnQ6.d.ts} +9 -24
  63. package/dist/{serverRequestTypes-w1r41ff7.d.ts.map → serverRequestTypes-516zXnQ6.d.ts.map} +1 -1
  64. package/dist/{serverRequestTypes-Cw661qjM.d.cts → serverRequestTypes-GAtVYIda.d.cts} +9 -24
  65. package/dist/{serverRequestTypes-Cw661qjM.d.cts.map → serverRequestTypes-GAtVYIda.d.cts.map} +1 -1
  66. package/dist/{serverResponseGuards-DNJZw8yq.d.ts → serverResponseGuards-Cep5s7j5.d.ts} +2 -2
  67. package/dist/{serverResponseGuards-DNJZw8yq.d.ts.map → serverResponseGuards-Cep5s7j5.d.ts.map} +1 -1
  68. package/dist/{serverResponseGuards-DEyNjgwq.d.cts → serverResponseGuards-Dxt9_aGh.d.cts} +2 -2
  69. package/dist/{serverResponseGuards-DEyNjgwq.d.cts.map → serverResponseGuards-Dxt9_aGh.d.cts.map} +1 -1
  70. package/dist/signing/buildSignedMobileRequest.cjs +1 -1
  71. package/dist/signing/buildSignedMobileRequest.d.cts +1 -1
  72. package/dist/signing/buildSignedMobileRequest.d.ts +1 -1
  73. package/dist/signing/canonicalize.cjs +0 -1
  74. package/dist/signing/canonicalize.cjs.map +1 -1
  75. package/dist/signing/canonicalize.d.cts +1 -1
  76. package/dist/signing/canonicalize.d.ts +1 -1
  77. package/dist/signing/canonicalize.js +0 -1
  78. package/dist/signing/canonicalize.js.map +1 -1
  79. package/dist/signing/eip712MethodByType.cjs +0 -1
  80. package/dist/signing/eip712MethodByType.cjs.map +1 -1
  81. package/dist/signing/eip712MethodByType.d.cts +1 -1
  82. package/dist/signing/eip712MethodByType.d.ts +1 -1
  83. package/dist/signing/eip712MethodByType.js +0 -1
  84. package/dist/signing/eip712MethodByType.js.map +1 -1
  85. package/dist/signing/index.d.cts +5 -5
  86. package/dist/signing/index.d.ts +5 -5
  87. package/dist/signing/payloadHash.cjs +1 -1
  88. package/dist/signing/payloadHash.d.cts +1 -1
  89. package/dist/signing/payloadHash.d.ts +1 -1
  90. package/dist/signing/types.d.cts +1 -1
  91. package/dist/signing/types.d.ts +1 -1
  92. package/dist/types/MobileServerFailureError.cjs +1 -1
  93. package/dist/types/MobileServerFailureError.d.cts +1 -1
  94. package/dist/types/MobileServerFailureError.d.ts +1 -1
  95. package/dist/types/clientTypes.d.cts +2 -2
  96. package/dist/types/clientTypes.d.ts +2 -2
  97. package/dist/types/index.d.cts +8 -8
  98. package/dist/types/index.d.ts +8 -8
  99. package/dist/types/mobileErrorCodes.cjs +1 -1
  100. package/dist/types/serverBaseTypes.d.cts +1 -1
  101. package/dist/types/serverBaseTypes.d.ts +1 -1
  102. package/dist/types/serverExecuteTypes.d.cts +1 -1
  103. package/dist/types/serverExecuteTypes.d.ts +1 -1
  104. package/dist/types/serverModelTypes.cjs.map +1 -1
  105. package/dist/types/serverModelTypes.d.cts +2 -2
  106. package/dist/types/serverModelTypes.d.ts +2 -2
  107. package/dist/types/serverModelTypes.js.map +1 -1
  108. package/dist/types/serverQueryTypes.d.cts +2 -2
  109. package/dist/types/serverQueryTypes.d.ts +2 -2
  110. package/dist/types/serverRequestTypes.d.cts +2 -2
  111. package/dist/types/serverRequestTypes.d.ts +2 -2
  112. package/dist/{types-DNd9S0Rz.d.ts → types-47IPsDyA.d.cts} +3 -5
  113. package/dist/types-47IPsDyA.d.cts.map +1 -0
  114. package/dist/{types-BycRkqAj.d.cts → types-D5kFJzEX.d.ts} +3 -5
  115. package/dist/types-D5kFJzEX.d.ts.map +1 -0
  116. package/dist/utils/index.d.cts +1 -1
  117. package/dist/utils/index.d.ts +1 -1
  118. package/dist/utils/serverResponseGuards.d.cts +1 -1
  119. package/dist/utils/serverResponseGuards.d.ts +1 -1
  120. package/package.json +3 -3
  121. package/src/MobileClient.ts +7 -45
  122. package/src/dataMappers.ts +0 -16
  123. package/src/signing/canonicalize.ts +0 -2
  124. package/src/signing/eip712MethodByType.ts +0 -1
  125. package/src/signing/signing.test.ts +0 -8
  126. package/src/signing/types.ts +0 -1
  127. package/src/types/clientTypes.ts +0 -29
  128. package/src/types/serverModelTypes.ts +0 -11
  129. package/src/types/serverQueryTypes.ts +0 -30
  130. package/src/types/serverRequestTypes.ts +4 -26
  131. package/dist/MobileClient-SQ7byUxo.cjs.map +0 -1
  132. package/dist/canonicalize-Cz1rz_ER.d.ts.map +0 -1
  133. package/dist/canonicalize-afPLlUjE.d.cts.map +0 -1
  134. package/dist/clientTypes-DIipTg9D.d.cts.map +0 -1
  135. package/dist/clientTypes-DqDZEcBu.d.ts.map +0 -1
  136. package/dist/eip712MethodByType-BzfeoDTF.d.ts.map +0 -1
  137. package/dist/eip712MethodByType-CUAcWwX0.d.cts.map +0 -1
  138. package/dist/payloadHash-CgKXMvZU.d.cts.map +0 -1
  139. package/dist/payloadHash-yIWBW4Iq.d.ts.map +0 -1
  140. package/dist/serverModelTypes-BIGPd52y.d.ts.map +0 -1
  141. package/dist/serverModelTypes-DGYc_3XP.d.cts.map +0 -1
  142. package/dist/serverQueryTypes-4J8qNQld.d.ts.map +0 -1
  143. package/dist/serverQueryTypes-C_rvZnol.d.cts.map +0 -1
  144. package/dist/types-BycRkqAj.d.cts.map +0 -1
  145. package/dist/types-DNd9S0Rz.d.ts.map +0 -1
@@ -1,31 +1,8 @@
1
- import { a as MobileFeedTradePosition, c as MobileNotificationCategory, i as MobileFeedMarginMode, l as MobileNotificationPlatform } from "./serverModelTypes-DGYc_3XP.cjs";
1
+ import { a as MobileFeedTradePosition, c as MobileNotificationCategory, i as MobileFeedMarginMode, l as MobileNotificationPlatform } from "./serverModelTypes-_cX99seo.js";
2
2
  import { SignatureParams, Subaccount } from "@nadohq/shared";
3
3
  import { Hex } from "viem";
4
4
 
5
5
  //#region src/types/clientTypes.d.ts
6
- /**
7
- * A subaccount's identity on the mobile service API. Every non-isolated subaccount has one implicitly, so
8
- * both name fields are `null` until a username is claimed — render a local fallback label in that case and
9
- * key lookups, links, and caches off `subaccount`.
10
- *
11
- * `username` and `displayName` are two representations of the same claimed name: `displayName` is what the
12
- * user entered (preserving casing, e.g. `Alice.One`), while `username` is the canonical, lowercased handle
13
- * derived from it (e.g. `alice.one`), unique across identities.
14
- */
15
- interface MobileIdentity {
16
- subaccount: Hex;
17
- /**
18
- * Canonical, lowercased handle derived from {@link MobileIdentity.displayName}, unique across identities,
19
- * or `null` if no username has been claimed.
20
- */
21
- username: string | null;
22
- /**
23
- * User-facing name as claimed, preserving original casing, or `null` if no username has been claimed.
24
- * Validated against `MOBILE_DISPLAY_NAME_PATTERN`.
25
- */
26
- displayName: string | null;
27
- privateMode: boolean;
28
- }
29
6
  /**
30
7
  * A subaccount's public profile, as returned by an unsigned profile lookup. Private Mode hides the account's
31
8
  * activity, not its profile, so `privateMode` is exposed here too.
@@ -185,10 +162,6 @@ interface GetMobileFeedParams {
185
162
  */
186
163
  cursor?: string;
187
164
  }
188
- /**
189
- * Params for {@link MobileClient.getSelfIdentity}.
190
- */
191
- type GetMobileSelfIdentityParams = MobileSignedRequestParams;
192
165
  /**
193
166
  * Params for {@link MobileClient.setUsername}.
194
167
  */
@@ -239,5 +212,5 @@ type GetMobileNotificationPreferencesParams = MobileWithExpoTokenParams;
239
212
  */
240
213
  type GetMobileRegisteredWalletParams = MobileWithExpoTokenParams;
241
214
  //#endregion
242
- export { MobileWithExpoTokenParams as C, MobileUsernameAvailability as S, MobileSetPrivateModeParams as _, GetMobileSelfIdentityParams as a, MobileUnregisterExpoTokenParams as b, MobileFeedPage as c, MobileNotificationCategoryPreference as d, MobileNotificationPreferenceScope as f, MobileRegisteredWallet as g, MobileRegisterExpoTokenParams as h, GetMobileRegisteredWalletParams as i, MobileFeedTrade as l, MobilePublicProfile as m, GetMobileNotificationPreferencesParams as n, GetMobileUsernameAvailabilityParams as o, MobileNotificationPreferences as p, GetMobilePublicProfileParams as r, MobileFeedMargin as s, GetMobileFeedParams as t, MobileIdentity as u, MobileSetUsernameParams as v, MobileUpdateNotificationPreferencesParams as x, MobileSignedRequestParams as y };
243
- //# sourceMappingURL=clientTypes-DIipTg9D.d.cts.map
215
+ export { MobileSignedRequestParams as _, GetMobileUsernameAvailabilityParams as a, MobileUsernameAvailability as b, MobileFeedTrade as c, MobileNotificationPreferences as d, MobilePublicProfile as f, MobileSetUsernameParams as g, MobileSetPrivateModeParams as h, GetMobileRegisteredWalletParams as i, MobileNotificationCategoryPreference as l, MobileRegisteredWallet as m, GetMobileNotificationPreferencesParams as n, MobileFeedMargin as o, MobileRegisterExpoTokenParams as p, GetMobilePublicProfileParams as r, MobileFeedPage as s, GetMobileFeedParams as t, MobileNotificationPreferenceScope as u, MobileUnregisterExpoTokenParams as v, MobileWithExpoTokenParams as x, MobileUpdateNotificationPreferencesParams as y };
216
+ //# sourceMappingURL=clientTypes-D-o1_2Yc.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clientTypes-D-o1_2Yc.d.ts","names":[],"sources":["../src/types/src/types/clientTypes.ts"],"mappings":";;;;;;;AAaA;;UAAiB,mBAAA;EACf,UAAA,EAAY,GAAG;EAAf;EAEA,QAAA;EAAA;EAEA,WAAA;EACA,WAAA;AAAA;AAAW;AAMb;;AANa,UAMI,0BAAA;EACf,QAAA;EACA,SAAS;AAAA;;;;;;UAQM,gBAAA;EACf,IAAA,EAAM,oBAAoB;EAC1B,iBAAA;AAAA;;;;;;UAQe,eAAA;EAmBkB;EAjBjC,WAAA,EAAa,GAAA;EACb,UAAA,EAAY,GAAA;EADC;EAGb,QAAA;EAFY;EAIZ,WAAA;EAAA;EAEA,SAAA;EACA,SAAA;EAEA;EAAA,QAAA;EAIA;EAFA,QAAA;EAGQ;EADR,YAAA;EACA,MAAA,EAAQ,gBAAA;EAIR;EAFA,QAAA,EAAU,uBAAA;EAIF;EAFR,WAAA;EAWe;EATf,QAAA;AAAA;;;;;;AAWU;UAFK,cAAA;EACf,MAAA,EAAQ,eAAe;EACvB,UAAA;AAAA;;;;;KAOU,iCAAA;EACN,IAAA;EAAoB,UAAA,EAAY,GAAG;AAAA;EACnC,IAAA;EAAiB,SAAA;AAAA;;;;UAKN,oCAAA;EACf,QAAA,EAAU,0BAAA;EACV,OAAA;EACA,MAAA,EAAQ,iCAAiC;AAAA;;;;;UAO1B,6BAAA;EAGH;EADZ,aAAA;EACA,UAAA,EAAY,oCAAoC;AAAA;;;;;UAOjC,sBAAA;EAIf;EAFA,MAAA,EAAQ,GAAA;EAIR;EAFA,QAAA,EAAU,0BAA0B;EASpC;EAPA,MAAA;EAWU;EATV,UAAA;EAee;;;;EAVf,sBAAA;EAkBe;;;EAdf,UAAA;AAAA;AAsBF;;;AAAA,UAhBiB,yBAAA,SACP,UAAA,EAAY,eAAe;AAsBrC;;;;AAAqD;AAArD,UAfiB,yBAAA;EAoBmB;EAlBlC,SAAS;AAAA;;;;UAMM,mCAAA;EACf,WAAW;AAAA;;;;KAMD,4BAAA,GAA+B,UAAU;AA+BrD;;;AAAA,UA1BiB,mBAAA;EA2BJ;AAMb;;;EA5BE,eAAA;EA4BqD;EA1BrD,KAAA;EA+BA;;;;EA1BA,MAAA;AAAA;AAwCF;;;AAAA,UAlCiB,uBAAA,SAAgC,yBAAyB;EAkCH;EAhCrE,WAAW;AAAA;;;;UAMI,0BAAA,SAAmC,yBAAyB;EAC3E,WAAW;AAAA;AA+B+B;AAM5C;;AAN4C,UAzB3B,6BAAA,SAAsC,yBAAyB;EA+BF;AAAA;AAK9E;EAhCE,SAAA;EACA,QAAA,EAAU,0BAAA;EA+B2D;AAAA;;EA3BrE,MAAA;;;;EAIA,UAAA;AAAA;;;;KAMU,+BAAA,GAAkC,yBAAyB;;;;UAKtD,yCAAA,SAAkD,yBAAyB;EAC1F,WAAA,EAAa,6BAAA;AAAA;;;;KAMH,sCAAA,GAAyC,yBAAyB;;;;KAKlE,+BAAA,GAAkC,yBAAyB"}
@@ -1,17 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  //#region src/dataMappers.ts
3
3
  /**
4
- * Maps a server-side identity (snake_case) to its client-side (camelCase) representation.
5
- */
6
- function mapMobileIdentity(server) {
7
- return {
8
- subaccount: server.subaccount,
9
- username: server.username,
10
- displayName: server.display_name,
11
- privateMode: server.private_mode
12
- };
13
- }
14
- /**
15
4
  * Maps a server-side public profile (snake_case) to its client-side (camelCase) representation.
16
5
  */
17
6
  function mapMobilePublicProfile(server) {
@@ -115,7 +104,6 @@ function mapMobileRegisteredWallet(server) {
115
104
  }
116
105
  //#endregion
117
106
  exports.mapMobileFeedPage = mapMobileFeedPage;
118
- exports.mapMobileIdentity = mapMobileIdentity;
119
107
  exports.mapMobileNotificationPreferences = mapMobileNotificationPreferences;
120
108
  exports.mapMobileNotificationPreferencesToServer = mapMobileNotificationPreferencesToServer;
121
109
  exports.mapMobilePublicProfile = mapMobilePublicProfile;
@@ -1 +1 @@
1
- {"version":3,"file":"dataMappers.cjs","names":[],"sources":["../src/dataMappers.ts"],"sourcesContent":["import {\n MobileFeedPage,\n MobileFeedTrade,\n MobileIdentity,\n MobileNotificationPreferenceScope,\n MobileNotificationPreferences,\n MobilePublicProfile,\n MobileRegisteredWallet,\n} from './types/clientTypes';\nimport {\n MobileServerFeedTrade,\n MobileServerIdentity,\n MobileServerNotificationPreferenceScope,\n MobileServerNotificationPreferences,\n MobileServerProfile,\n} from './types/serverModelTypes';\nimport {\n MobileServerFeedResponse,\n MobileServerRegisteredWalletResponse,\n} from './types/serverQueryTypes';\n\n/**\n * Maps a server-side identity (snake_case) to its client-side (camelCase) representation.\n */\nexport function mapMobileIdentity(\n server: MobileServerIdentity,\n): MobileIdentity {\n return {\n subaccount: server.subaccount,\n username: server.username,\n displayName: server.display_name,\n privateMode: server.private_mode,\n };\n}\n\n/**\n * Maps a server-side public profile (snake_case) to its client-side (camelCase) representation.\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 };\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 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 orderDigest: server.order_digest,\n subaccount: server.subaccount,\n username: server.username,\n displayName: server.display_name,\n avatarUrl: server.avatar_url,\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":";;;;;AAwBA,SAAgB,kBACd,QACgB;CAChB,OAAO;EACL,YAAY,OAAO;EACnB,UAAU,OAAO;EACjB,aAAa,OAAO;EACpB,aAAa,OAAO;CACtB;AACF;;;;AAKA,SAAgB,uBACd,QACqB;CACrB,OAAO;EACL,YAAY,OAAO;EACnB,UAAU,OAAO;EACjB,aAAa,OAAO;EACpB,aAAa,OAAO;CACtB;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,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,aAAa,OAAO;EACpB,YAAY,OAAO;EACnB,UAAU,OAAO;EACjB,aAAa,OAAO;EACpB,WAAW,OAAO;EAClB,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.cjs","names":[],"sources":["../src/dataMappers.ts"],"sourcesContent":["import {\n MobileFeedPage,\n MobileFeedTrade,\n MobileNotificationPreferenceScope,\n MobileNotificationPreferences,\n MobilePublicProfile,\n MobileRegisteredWallet,\n} from './types/clientTypes';\nimport {\n MobileServerFeedTrade,\n MobileServerNotificationPreferenceScope,\n MobileServerNotificationPreferences,\n MobileServerProfile,\n} from './types/serverModelTypes';\nimport {\n MobileServerFeedResponse,\n MobileServerRegisteredWalletResponse,\n} from './types/serverQueryTypes';\n\n/**\n * Maps a server-side public profile (snake_case) to its client-side (camelCase) representation.\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 };\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 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 orderDigest: server.order_digest,\n subaccount: server.subaccount,\n username: server.username,\n displayName: server.display_name,\n avatarUrl: server.avatar_url,\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":";;;;;AAsBA,SAAgB,uBACd,QACqB;CACrB,OAAO;EACL,YAAY,OAAO;EACnB,UAAU,OAAO;EACjB,aAAa,OAAO;EACpB,aAAa,OAAO;CACtB;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,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,aAAa,OAAO;EACpB,YAAY,OAAO;EACnB,UAAU,OAAO;EACjB,aAAa,OAAO;EACpB,WAAW,OAAO;EAClB,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,12 +1,8 @@
1
- import { f as MobileServerIdentity, g as MobileServerProfile, h as MobileServerNotificationPreferences } from "./serverModelTypes-DGYc_3XP.cjs";
2
- import { c as MobileFeedPage, g as MobileRegisteredWallet, m as MobilePublicProfile, p as MobileNotificationPreferences, u as MobileIdentity } from "./clientTypes-DIipTg9D.cjs";
3
- import { s as MobileServerRegisteredWalletResponse, t as MobileServerFeedResponse } from "./serverQueryTypes-C_rvZnol.cjs";
1
+ import { h as MobileServerProfile, m as MobileServerNotificationPreferences } from "./serverModelTypes-CwgibK-l.cjs";
2
+ import { d as MobileNotificationPreferences, f as MobilePublicProfile, m as MobileRegisteredWallet, s as MobileFeedPage } from "./clientTypes-BwakovWk.cjs";
3
+ import { s as MobileServerRegisteredWalletResponse, t as MobileServerFeedResponse } from "./serverQueryTypes-DwE1iJ9f.cjs";
4
4
 
5
5
  //#region src/dataMappers.d.ts
6
- /**
7
- * Maps a server-side identity (snake_case) to its client-side (camelCase) representation.
8
- */
9
- declare function mapMobileIdentity(server: MobileServerIdentity): MobileIdentity;
10
6
  /**
11
7
  * Maps a server-side public profile (snake_case) to its client-side (camelCase) representation.
12
8
  */
@@ -28,5 +24,5 @@ declare function mapMobileFeedPage(server: MobileServerFeedResponse): MobileFeed
28
24
  */
29
25
  declare function mapMobileRegisteredWallet(server: MobileServerRegisteredWalletResponse): MobileRegisteredWallet;
30
26
  //#endregion
31
- export { mapMobileFeedPage, mapMobileIdentity, mapMobileNotificationPreferences, mapMobileNotificationPreferencesToServer, mapMobilePublicProfile, mapMobileRegisteredWallet };
27
+ export { mapMobileFeedPage, mapMobileNotificationPreferences, mapMobileNotificationPreferencesToServer, mapMobilePublicProfile, mapMobileRegisteredWallet };
32
28
  //# sourceMappingURL=dataMappers.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dataMappers.d.cts","names":[],"sources":["../src/src/dataMappers.ts"],"mappings":";;;;;;;AAwBA;iBAAgB,iBAAA,CACd,MAAA,EAAQ,oBAAA,GACP,cAAc;;;;iBAYD,sBAAA,CACd,MAAA,EAAQ,mBAAA,GACP,mBAAmB;;;AAdL;iBA0BD,gCAAA,CACd,MAAA,EAAQ,mCAAA,GACP,6BAA6B;;;;iBAuBhB,wCAAA,CACd,WAAA,EAAa,6BAAA,GACZ,mCAAmC;;;;iBA+CtB,iBAAA,CACd,MAAA,EAAQ,wBAAA,GACP,cAAc;AA5EjB;;;AAAA,iBAsFgB,yBAAA,CACd,MAAA,EAAQ,oCAAA,GACP,sBAAsB"}
1
+ {"version":3,"file":"dataMappers.d.cts","names":[],"sources":["../src/src/dataMappers.ts"],"mappings":";;;;;;;AAsBA;iBAAgB,sBAAA,CACd,MAAA,EAAQ,mBAAA,GACP,mBAAmB;;;;iBAYN,gCAAA,CACd,MAAA,EAAQ,mCAAA,GACP,6BAA6B;;;AAdV;iBAqCN,wCAAA,CACd,WAAA,EAAa,6BAAA,GACZ,mCAAmC;;;;iBA+CtB,iBAAA,CACd,MAAA,EAAQ,wBAAA,GACP,cAAc;;;;iBAUD,yBAAA,CACd,MAAA,EAAQ,oCAAA,GACP,sBAAsB"}
@@ -1,12 +1,8 @@
1
- import { f as MobileServerIdentity, g as MobileServerProfile, h as MobileServerNotificationPreferences } from "./serverModelTypes-BIGPd52y.js";
2
- import { c as MobileFeedPage, g as MobileRegisteredWallet, m as MobilePublicProfile, p as MobileNotificationPreferences, u as MobileIdentity } from "./clientTypes-DqDZEcBu.js";
3
- import { s as MobileServerRegisteredWalletResponse, t as MobileServerFeedResponse } from "./serverQueryTypes-4J8qNQld.js";
1
+ import { h as MobileServerProfile, m as MobileServerNotificationPreferences } from "./serverModelTypes-_cX99seo.js";
2
+ import { d as MobileNotificationPreferences, f as MobilePublicProfile, m as MobileRegisteredWallet, s as MobileFeedPage } from "./clientTypes-D-o1_2Yc.js";
3
+ import { s as MobileServerRegisteredWalletResponse, t as MobileServerFeedResponse } from "./serverQueryTypes-NIrPm2Sl.js";
4
4
 
5
5
  //#region src/dataMappers.d.ts
6
- /**
7
- * Maps a server-side identity (snake_case) to its client-side (camelCase) representation.
8
- */
9
- declare function mapMobileIdentity(server: MobileServerIdentity): MobileIdentity;
10
6
  /**
11
7
  * Maps a server-side public profile (snake_case) to its client-side (camelCase) representation.
12
8
  */
@@ -28,5 +24,5 @@ declare function mapMobileFeedPage(server: MobileServerFeedResponse): MobileFeed
28
24
  */
29
25
  declare function mapMobileRegisteredWallet(server: MobileServerRegisteredWalletResponse): MobileRegisteredWallet;
30
26
  //#endregion
31
- export { mapMobileFeedPage, mapMobileIdentity, mapMobileNotificationPreferences, mapMobileNotificationPreferencesToServer, mapMobilePublicProfile, mapMobileRegisteredWallet };
27
+ export { mapMobileFeedPage, mapMobileNotificationPreferences, mapMobileNotificationPreferencesToServer, mapMobilePublicProfile, mapMobileRegisteredWallet };
32
28
  //# sourceMappingURL=dataMappers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dataMappers.d.ts","names":[],"sources":["../src/src/dataMappers.ts"],"mappings":";;;;;;;AAwBA;iBAAgB,iBAAA,CACd,MAAA,EAAQ,oBAAA,GACP,cAAc;;;;iBAYD,sBAAA,CACd,MAAA,EAAQ,mBAAA,GACP,mBAAmB;;;AAdL;iBA0BD,gCAAA,CACd,MAAA,EAAQ,mCAAA,GACP,6BAA6B;;;;iBAuBhB,wCAAA,CACd,WAAA,EAAa,6BAAA,GACZ,mCAAmC;;;;iBA+CtB,iBAAA,CACd,MAAA,EAAQ,wBAAA,GACP,cAAc;AA5EjB;;;AAAA,iBAsFgB,yBAAA,CACd,MAAA,EAAQ,oCAAA,GACP,sBAAsB"}
1
+ {"version":3,"file":"dataMappers.d.ts","names":[],"sources":["../src/src/dataMappers.ts"],"mappings":";;;;;;;AAsBA;iBAAgB,sBAAA,CACd,MAAA,EAAQ,mBAAA,GACP,mBAAmB;;;;iBAYN,gCAAA,CACd,MAAA,EAAQ,mCAAA,GACP,6BAA6B;;;AAdV;iBAqCN,wCAAA,CACd,WAAA,EAAa,6BAAA,GACZ,mCAAmC;;;;iBA+CtB,iBAAA,CACd,MAAA,EAAQ,wBAAA,GACP,cAAc;;;;iBAUD,yBAAA,CACd,MAAA,EAAQ,oCAAA,GACP,sBAAsB"}
@@ -1,16 +1,5 @@
1
1
  //#region src/dataMappers.ts
2
2
  /**
3
- * Maps a server-side identity (snake_case) to its client-side (camelCase) representation.
4
- */
5
- function mapMobileIdentity(server) {
6
- return {
7
- subaccount: server.subaccount,
8
- username: server.username,
9
- displayName: server.display_name,
10
- privateMode: server.private_mode
11
- };
12
- }
13
- /**
14
3
  * Maps a server-side public profile (snake_case) to its client-side (camelCase) representation.
15
4
  */
16
5
  function mapMobilePublicProfile(server) {
@@ -113,6 +102,6 @@ function mapMobileRegisteredWallet(server) {
113
102
  };
114
103
  }
115
104
  //#endregion
116
- export { mapMobileFeedPage, mapMobileIdentity, mapMobileNotificationPreferences, mapMobileNotificationPreferencesToServer, mapMobilePublicProfile, mapMobileRegisteredWallet };
105
+ export { mapMobileFeedPage, mapMobileNotificationPreferences, mapMobileNotificationPreferencesToServer, mapMobilePublicProfile, mapMobileRegisteredWallet };
117
106
 
118
107
  //# sourceMappingURL=dataMappers.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"dataMappers.js","names":[],"sources":["../src/dataMappers.ts"],"sourcesContent":["import {\n MobileFeedPage,\n MobileFeedTrade,\n MobileIdentity,\n MobileNotificationPreferenceScope,\n MobileNotificationPreferences,\n MobilePublicProfile,\n MobileRegisteredWallet,\n} from './types/clientTypes';\nimport {\n MobileServerFeedTrade,\n MobileServerIdentity,\n MobileServerNotificationPreferenceScope,\n MobileServerNotificationPreferences,\n MobileServerProfile,\n} from './types/serverModelTypes';\nimport {\n MobileServerFeedResponse,\n MobileServerRegisteredWalletResponse,\n} from './types/serverQueryTypes';\n\n/**\n * Maps a server-side identity (snake_case) to its client-side (camelCase) representation.\n */\nexport function mapMobileIdentity(\n server: MobileServerIdentity,\n): MobileIdentity {\n return {\n subaccount: server.subaccount,\n username: server.username,\n displayName: server.display_name,\n privateMode: server.private_mode,\n };\n}\n\n/**\n * Maps a server-side public profile (snake_case) to its client-side (camelCase) representation.\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 };\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 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 orderDigest: server.order_digest,\n subaccount: server.subaccount,\n username: server.username,\n displayName: server.display_name,\n avatarUrl: server.avatar_url,\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":";;;;AAwBA,SAAgB,kBACd,QACgB;CAChB,OAAO;EACL,YAAY,OAAO;EACnB,UAAU,OAAO;EACjB,aAAa,OAAO;EACpB,aAAa,OAAO;CACtB;AACF;;;;AAKA,SAAgB,uBACd,QACqB;CACrB,OAAO;EACL,YAAY,OAAO;EACnB,UAAU,OAAO;EACjB,aAAa,OAAO;EACpB,aAAa,OAAO;CACtB;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,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,aAAa,OAAO;EACpB,YAAY,OAAO;EACnB,UAAU,OAAO;EACjB,aAAa,OAAO;EACpB,WAAW,OAAO;EAClB,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 {\n MobileFeedPage,\n MobileFeedTrade,\n MobileNotificationPreferenceScope,\n MobileNotificationPreferences,\n MobilePublicProfile,\n MobileRegisteredWallet,\n} from './types/clientTypes';\nimport {\n MobileServerFeedTrade,\n MobileServerNotificationPreferenceScope,\n MobileServerNotificationPreferences,\n MobileServerProfile,\n} from './types/serverModelTypes';\nimport {\n MobileServerFeedResponse,\n MobileServerRegisteredWalletResponse,\n} from './types/serverQueryTypes';\n\n/**\n * Maps a server-side public profile (snake_case) to its client-side (camelCase) representation.\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 };\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 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 orderDigest: server.order_digest,\n subaccount: server.subaccount,\n username: server.username,\n displayName: server.display_name,\n avatarUrl: server.avatar_url,\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":";;;;AAsBA,SAAgB,uBACd,QACqB;CACrB,OAAO;EACL,YAAY,OAAO;EACnB,UAAU,OAAO;EACjB,aAAa,OAAO;EACpB,aAAa,OAAO;CACtB;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,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,aAAa,OAAO;EACpB,YAAY,OAAO;EACnB,UAAU,OAAO;EACjB,aAAa,OAAO;EACpB,WAAW,OAAO;EAClB,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-BycRkqAj.cjs";
1
+ import { n as MobileSignedInner } from "./types-47IPsDyA.cjs";
2
2
 
3
3
  //#region src/signing/eip712MethodByType.d.ts
4
4
  /**
@@ -7,4 +7,4 @@ import { n as MobileSignedInner } from "./types-BycRkqAj.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-CUAcWwX0.d.cts.map
10
+ //# sourceMappingURL=eip712MethodByType-3aiJkrHj.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eip712MethodByType-3aiJkrHj.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-DNd9S0Rz.js";
1
+ import { n as MobileSignedInner } from "./types-D5kFJzEX.js";
2
2
 
3
3
  //#region src/signing/eip712MethodByType.d.ts
4
4
  /**
@@ -7,4 +7,4 @@ import { n as MobileSignedInner } from "./types-DNd9S0Rz.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-BzfeoDTF.d.ts.map
10
+ //# sourceMappingURL=eip712MethodByType-zNvZukU7.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eip712MethodByType-zNvZukU7.d.ts","names":[],"sources":["../src/signing/src/signing/eip712MethodByType.ts"],"mappings":";;;;;AAKA;cAAa,4BAAA,EAA8B,MAAM,CAC/C,iBAAA"}
package/dist/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_MobileClient = require("./MobileClient-SQ7byUxo.cjs");
2
+ const require_MobileClient = require("./MobileClient-D5TNTnLx.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,20 +1,20 @@
1
- import { 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-DGYc_3XP.cjs";
2
- import { C as MobileWithExpoTokenParams, S as MobileUsernameAvailability, _ as MobileSetPrivateModeParams, a as GetMobileSelfIdentityParams, b as MobileUnregisterExpoTokenParams, c as MobileFeedPage, d as MobileNotificationCategoryPreference, f as MobileNotificationPreferenceScope, g as MobileRegisteredWallet, h as MobileRegisterExpoTokenParams, i as GetMobileRegisteredWalletParams, l as MobileFeedTrade, m as MobilePublicProfile, n as GetMobileNotificationPreferencesParams, o as GetMobileUsernameAvailabilityParams, p as MobileNotificationPreferences, r as GetMobilePublicProfileParams, s as MobileFeedMargin, t as GetMobileFeedParams, u as MobileIdentity, v as MobileSetUsernameParams, x as MobileUpdateNotificationPreferencesParams, y as MobileSignedRequestParams } from "./clientTypes-DIipTg9D.cjs";
3
- import { i as MobileSignedRequest, n as MobileSignedInner, r as MobileSignedInnerParams, t as BuildSignedMobileRequestParams } from "./types-BycRkqAj.cjs";
4
- import { t as buildSignedMobileRequest } from "./buildSignedMobileRequest-CtRX4zl4.cjs";
5
- import { t as canonicalizeMobileInner } from "./canonicalize-afPLlUjE.cjs";
6
- import { t as MOBILE_EIP712_METHOD_BY_TYPE } from "./eip712MethodByType-CUAcWwX0.cjs";
1
+ import { a as MobileFeedTradePosition, c as MobileNotificationCategory, d as MobileServerFeedTrade, f as MobileServerNotificationCategoryPreference, h as MobileServerProfile, i as MobileFeedMarginMode, l as MobileNotificationPlatform, m as MobileServerNotificationPreferences, n as MOBILE_FEED_TRADE_POSITION_DIRECTIONS, o as MobileFeedTradePositionDirection, p as MobileServerNotificationPreferenceScope, r as MOBILE_FEED_TRADE_POSITION_EFFECTS, s as MobileFeedTradePositionEffect, t as MOBILE_FEED_MARGIN_MODES, u as MobileServerFeedMargin } from "./serverModelTypes-CwgibK-l.cjs";
2
+ import { _ as MobileSignedRequestParams, a as GetMobileUsernameAvailabilityParams, b as MobileUsernameAvailability, c as MobileFeedTrade, d as MobileNotificationPreferences, f as MobilePublicProfile, g as MobileSetUsernameParams, h as MobileSetPrivateModeParams, i as GetMobileRegisteredWalletParams, l as MobileNotificationCategoryPreference, m as MobileRegisteredWallet, n as GetMobileNotificationPreferencesParams, o as MobileFeedMargin, p as MobileRegisterExpoTokenParams, r as GetMobilePublicProfileParams, s as MobileFeedPage, t as GetMobileFeedParams, u as MobileNotificationPreferenceScope, v as MobileUnregisterExpoTokenParams, x as MobileWithExpoTokenParams, y as MobileUpdateNotificationPreferencesParams } from "./clientTypes-BwakovWk.cjs";
3
+ import { i as MobileSignedRequest, n as MobileSignedInner, r as MobileSignedInnerParams, t as BuildSignedMobileRequestParams } from "./types-47IPsDyA.cjs";
4
+ import { t as buildSignedMobileRequest } from "./buildSignedMobileRequest-CXfnhc-4.cjs";
5
+ import { t as canonicalizeMobileInner } from "./canonicalize-hzhboB-C.cjs";
6
+ import { t as MOBILE_EIP712_METHOD_BY_TYPE } from "./eip712MethodByType-3aiJkrHj.cjs";
7
7
  import { t as getMobileNonce } from "./nonce-zGyisRlj.cjs";
8
- import { t as getMobilePayloadHash } from "./payloadHash-CgKXMvZU.cjs";
9
- import { a as MobileServerPublicQueryRequestType, c as MobileServerSignedQueryRequestType, i as MobileServerPublicQueryRequestByType, n as MobileServerPublicExecuteRequestByType, o as MobileServerRequestType, r as MobileServerPublicExecuteRequestType, s as MobileServerSignedQueryRequestByType, t as MobileServerExecuteRequestType } from "./serverRequestTypes-Cw661qjM.cjs";
10
- import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "./serverBaseTypes-_a1pE464.cjs";
11
- import { n as MobileServerPublicExecuteRequest, t as MobileServerExecuteResult } from "./serverExecuteTypes-CUla9jFj.cjs";
12
- 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 MobileServerRegisteredWalletResponse, t as MobileServerFeedResponse, u as MobileServerSignedQuerySuccessResponse } from "./serverQueryTypes-C_rvZnol.cjs";
8
+ import { t as getMobilePayloadHash } from "./payloadHash-DVkEt-Rg.cjs";
9
+ import { a as MobileServerPublicQueryRequestType, i as MobileServerPublicQueryRequestByType, n as MobileServerPublicExecuteRequestByType, o as MobileServerRequestType, r as MobileServerPublicExecuteRequestType, t as MobileServerExecuteRequestType } from "./serverRequestTypes-GAtVYIda.cjs";
10
+ import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "./serverBaseTypes-C8KjE9Fm.cjs";
11
+ import { n as MobileServerPublicExecuteRequest, t as MobileServerExecuteResult } from "./serverExecuteTypes-Cb5v7y0A.cjs";
12
+ import { a as MobileServerPublicQueryResponseByType, c as MobileServerUsernameAvailabilityResponse, i as MobileServerPublicQueryRequest, n as MobileServerNotificationPreferencesResponse, o as MobileServerPublicQuerySuccessResponse, r as MobileServerProfileResponse, s as MobileServerRegisteredWalletResponse, t as MobileServerFeedResponse } from "./serverQueryTypes-DwE1iJ9f.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-D_SyBm0k.cjs";
16
- import { t as MobileServerFailureError } from "./MobileServerFailureError-N3nGgdmg.cjs";
16
+ import { t as MobileServerFailureError } from "./MobileServerFailureError-CPFjwUBx.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 { t as MOBILE_DISPLAY_NAME_PATTERN } from "./patterns-Db6fgz8i.cjs";
19
- import { n as isMobileServerSuccessResponse, t as isMobileServerFailureResponse } from "./serverResponseGuards-DEyNjgwq.cjs";
20
- export { BuildSignedMobileRequestParams, GetMobileFeedParams, GetMobileNotificationPreferencesParams, GetMobilePublicProfileParams, GetMobileRegisteredWalletParams, GetMobileSelfIdentityParams, GetMobileUsernameAvailabilityParams, MOBILE_CLIENT_ENDPOINTS, MOBILE_DISPLAY_NAME_PATTERN, MOBILE_EIP712_METHOD_BY_TYPE, MOBILE_ERROR_CODES, MOBILE_FEED_MARGIN_MODES, MOBILE_FEED_MAX_PAGE_SIZE, MOBILE_FEED_MIN_NOTIONAL_FLOOR, MOBILE_FEED_TRADE_POSITION_DIRECTIONS, MOBILE_FEED_TRADE_POSITION_EFFECTS, MobileClient, MobileClientOpts, MobileErrorCode, MobileFeedMargin, MobileFeedMarginMode, MobileFeedPage, MobileFeedTrade, MobileFeedTradePosition, MobileFeedTradePositionDirection, MobileFeedTradePositionEffect, MobileIdentity, MobileNotificationCategory, MobileNotificationCategoryPreference, MobileNotificationPlatform, MobileNotificationPreferenceScope, MobileNotificationPreferences, MobilePublicProfile, MobileRegisterExpoTokenParams, MobileRegisteredWallet, MobileServerExecuteRequestType, MobileServerExecuteResult, MobileServerFailureError, MobileServerFailureResponse, MobileServerFeedMargin, MobileServerFeedResponse, MobileServerFeedTrade, MobileServerIdentity, MobileServerNotificationCategoryPreference, MobileServerNotificationPreferenceScope, MobileServerNotificationPreferences, MobileServerNotificationPreferencesResponse, MobileServerProfile, MobileServerProfileResponse, MobileServerPublicExecuteRequest, MobileServerPublicExecuteRequestByType, MobileServerPublicExecuteRequestType, MobileServerPublicQueryRequest, MobileServerPublicQueryRequestByType, MobileServerPublicQueryRequestType, MobileServerPublicQueryResponseByType, MobileServerPublicQuerySuccessResponse, MobileServerRegisteredWalletResponse, MobileServerRequestType, MobileServerSelfIdentityResponse, MobileServerSignedQueryRequestByType, MobileServerSignedQueryRequestType, MobileServerSignedQueryResponseByType, MobileServerSignedQuerySuccessResponse, MobileServerSuccessResponse, MobileServerUsernameAvailabilityResponse, MobileSetPrivateModeParams, MobileSetUsernameParams, MobileSignedInner, MobileSignedInnerParams, MobileSignedRequest, MobileSignedRequestParams, MobileUnregisterExpoTokenParams, MobileUpdateNotificationPreferencesParams, MobileUsernameAvailability, MobileWithExpoTokenParams, buildSignedMobileRequest, canonicalizeMobileInner, getMobileNonce, getMobilePayloadHash, isMobileServerFailureResponse, isMobileServerSuccessResponse };
19
+ import { n as isMobileServerSuccessResponse, t as isMobileServerFailureResponse } from "./serverResponseGuards-Dxt9_aGh.cjs";
20
+ export { BuildSignedMobileRequestParams, GetMobileFeedParams, GetMobileNotificationPreferencesParams, GetMobilePublicProfileParams, GetMobileRegisteredWalletParams, GetMobileUsernameAvailabilityParams, MOBILE_CLIENT_ENDPOINTS, MOBILE_DISPLAY_NAME_PATTERN, MOBILE_EIP712_METHOD_BY_TYPE, MOBILE_ERROR_CODES, MOBILE_FEED_MARGIN_MODES, MOBILE_FEED_MAX_PAGE_SIZE, MOBILE_FEED_MIN_NOTIONAL_FLOOR, MOBILE_FEED_TRADE_POSITION_DIRECTIONS, MOBILE_FEED_TRADE_POSITION_EFFECTS, MobileClient, MobileClientOpts, MobileErrorCode, MobileFeedMargin, MobileFeedMarginMode, MobileFeedPage, MobileFeedTrade, MobileFeedTradePosition, MobileFeedTradePositionDirection, MobileFeedTradePositionEffect, MobileNotificationCategory, MobileNotificationCategoryPreference, MobileNotificationPlatform, MobileNotificationPreferenceScope, MobileNotificationPreferences, MobilePublicProfile, MobileRegisterExpoTokenParams, MobileRegisteredWallet, MobileServerExecuteRequestType, MobileServerExecuteResult, MobileServerFailureError, MobileServerFailureResponse, MobileServerFeedMargin, MobileServerFeedResponse, MobileServerFeedTrade, MobileServerNotificationCategoryPreference, MobileServerNotificationPreferenceScope, MobileServerNotificationPreferences, MobileServerNotificationPreferencesResponse, MobileServerProfile, MobileServerProfileResponse, MobileServerPublicExecuteRequest, MobileServerPublicExecuteRequestByType, MobileServerPublicExecuteRequestType, MobileServerPublicQueryRequest, MobileServerPublicQueryRequestByType, MobileServerPublicQueryRequestType, MobileServerPublicQueryResponseByType, MobileServerPublicQuerySuccessResponse, MobileServerRegisteredWalletResponse, MobileServerRequestType, MobileServerSuccessResponse, MobileServerUsernameAvailabilityResponse, MobileSetPrivateModeParams, MobileSetUsernameParams, MobileSignedInner, MobileSignedInnerParams, MobileSignedRequest, MobileSignedRequestParams, MobileUnregisterExpoTokenParams, MobileUpdateNotificationPreferencesParams, MobileUsernameAvailability, MobileWithExpoTokenParams, buildSignedMobileRequest, canonicalizeMobileInner, getMobileNonce, getMobilePayloadHash, isMobileServerFailureResponse, isMobileServerSuccessResponse };
package/dist/index.d.ts CHANGED
@@ -1,20 +1,20 @@
1
- import { 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-BIGPd52y.js";
2
- import { C as MobileWithExpoTokenParams, S as MobileUsernameAvailability, _ as MobileSetPrivateModeParams, a as GetMobileSelfIdentityParams, b as MobileUnregisterExpoTokenParams, c as MobileFeedPage, d as MobileNotificationCategoryPreference, f as MobileNotificationPreferenceScope, g as MobileRegisteredWallet, h as MobileRegisterExpoTokenParams, i as GetMobileRegisteredWalletParams, l as MobileFeedTrade, m as MobilePublicProfile, n as GetMobileNotificationPreferencesParams, o as GetMobileUsernameAvailabilityParams, p as MobileNotificationPreferences, r as GetMobilePublicProfileParams, s as MobileFeedMargin, t as GetMobileFeedParams, u as MobileIdentity, v as MobileSetUsernameParams, x as MobileUpdateNotificationPreferencesParams, y as MobileSignedRequestParams } from "./clientTypes-DqDZEcBu.js";
3
- import { i as MobileSignedRequest, n as MobileSignedInner, r as MobileSignedInnerParams, t as BuildSignedMobileRequestParams } from "./types-DNd9S0Rz.js";
4
- import { t as buildSignedMobileRequest } from "./buildSignedMobileRequest-B8iVGxQc.js";
5
- import { t as canonicalizeMobileInner } from "./canonicalize-Cz1rz_ER.js";
6
- import { t as MOBILE_EIP712_METHOD_BY_TYPE } from "./eip712MethodByType-BzfeoDTF.js";
1
+ import { a as MobileFeedTradePosition, c as MobileNotificationCategory, d as MobileServerFeedTrade, f as MobileServerNotificationCategoryPreference, h as MobileServerProfile, i as MobileFeedMarginMode, l as MobileNotificationPlatform, m as MobileServerNotificationPreferences, n as MOBILE_FEED_TRADE_POSITION_DIRECTIONS, o as MobileFeedTradePositionDirection, p as MobileServerNotificationPreferenceScope, r as MOBILE_FEED_TRADE_POSITION_EFFECTS, s as MobileFeedTradePositionEffect, t as MOBILE_FEED_MARGIN_MODES, u as MobileServerFeedMargin } from "./serverModelTypes-_cX99seo.js";
2
+ import { _ as MobileSignedRequestParams, a as GetMobileUsernameAvailabilityParams, b as MobileUsernameAvailability, c as MobileFeedTrade, d as MobileNotificationPreferences, f as MobilePublicProfile, g as MobileSetUsernameParams, h as MobileSetPrivateModeParams, i as GetMobileRegisteredWalletParams, l as MobileNotificationCategoryPreference, m as MobileRegisteredWallet, n as GetMobileNotificationPreferencesParams, o as MobileFeedMargin, p as MobileRegisterExpoTokenParams, r as GetMobilePublicProfileParams, s as MobileFeedPage, t as GetMobileFeedParams, u as MobileNotificationPreferenceScope, v as MobileUnregisterExpoTokenParams, x as MobileWithExpoTokenParams, y as MobileUpdateNotificationPreferencesParams } from "./clientTypes-D-o1_2Yc.js";
3
+ import { i as MobileSignedRequest, n as MobileSignedInner, r as MobileSignedInnerParams, t as BuildSignedMobileRequestParams } from "./types-D5kFJzEX.js";
4
+ import { t as buildSignedMobileRequest } from "./buildSignedMobileRequest-BScnCGPF.js";
5
+ import { t as canonicalizeMobileInner } from "./canonicalize-CQ-pMYIt.js";
6
+ import { t as MOBILE_EIP712_METHOD_BY_TYPE } from "./eip712MethodByType-zNvZukU7.js";
7
7
  import { t as getMobileNonce } from "./nonce-DCOrXXkQ.js";
8
- import { t as getMobilePayloadHash } from "./payloadHash-yIWBW4Iq.js";
9
- import { a as MobileServerPublicQueryRequestType, c as MobileServerSignedQueryRequestType, i as MobileServerPublicQueryRequestByType, n as MobileServerPublicExecuteRequestByType, o as MobileServerRequestType, r as MobileServerPublicExecuteRequestType, s as MobileServerSignedQueryRequestByType, t as MobileServerExecuteRequestType } from "./serverRequestTypes-w1r41ff7.js";
10
- import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "./serverBaseTypes-ClQZqTAK.js";
11
- import { n as MobileServerPublicExecuteRequest, t as MobileServerExecuteResult } from "./serverExecuteTypes-BD8Awy8Q.js";
12
- 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 MobileServerRegisteredWalletResponse, t as MobileServerFeedResponse, u as MobileServerSignedQuerySuccessResponse } from "./serverQueryTypes-4J8qNQld.js";
8
+ import { t as getMobilePayloadHash } from "./payloadHash-BxL26uwq.js";
9
+ import { a as MobileServerPublicQueryRequestType, i as MobileServerPublicQueryRequestByType, n as MobileServerPublicExecuteRequestByType, o as MobileServerRequestType, r as MobileServerPublicExecuteRequestType, t as MobileServerExecuteRequestType } from "./serverRequestTypes-516zXnQ6.js";
10
+ import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "./serverBaseTypes-B_KHFDab.js";
11
+ import { n as MobileServerPublicExecuteRequest, t as MobileServerExecuteResult } from "./serverExecuteTypes-GFjZj_DC.js";
12
+ import { a as MobileServerPublicQueryResponseByType, c as MobileServerUsernameAvailabilityResponse, i as MobileServerPublicQueryRequest, n as MobileServerNotificationPreferencesResponse, o as MobileServerPublicQuerySuccessResponse, r as MobileServerProfileResponse, s as MobileServerRegisteredWalletResponse, t as MobileServerFeedResponse } from "./serverQueryTypes-NIrPm2Sl.js";
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-CuQ5lyBV.js";
16
- import { t as MobileServerFailureError } from "./MobileServerFailureError-A2EcYe6Y.js";
16
+ import { t as MobileServerFailureError } from "./MobileServerFailureError-Terv2Wzy.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 { t as MOBILE_DISPLAY_NAME_PATTERN } from "./patterns-B5gi7OfV.js";
19
- import { n as isMobileServerSuccessResponse, t as isMobileServerFailureResponse } from "./serverResponseGuards-DNJZw8yq.js";
20
- export { BuildSignedMobileRequestParams, GetMobileFeedParams, GetMobileNotificationPreferencesParams, GetMobilePublicProfileParams, GetMobileRegisteredWalletParams, GetMobileSelfIdentityParams, GetMobileUsernameAvailabilityParams, MOBILE_CLIENT_ENDPOINTS, MOBILE_DISPLAY_NAME_PATTERN, MOBILE_EIP712_METHOD_BY_TYPE, MOBILE_ERROR_CODES, MOBILE_FEED_MARGIN_MODES, MOBILE_FEED_MAX_PAGE_SIZE, MOBILE_FEED_MIN_NOTIONAL_FLOOR, MOBILE_FEED_TRADE_POSITION_DIRECTIONS, MOBILE_FEED_TRADE_POSITION_EFFECTS, MobileClient, MobileClientOpts, MobileErrorCode, MobileFeedMargin, MobileFeedMarginMode, MobileFeedPage, MobileFeedTrade, MobileFeedTradePosition, MobileFeedTradePositionDirection, MobileFeedTradePositionEffect, MobileIdentity, MobileNotificationCategory, MobileNotificationCategoryPreference, MobileNotificationPlatform, MobileNotificationPreferenceScope, MobileNotificationPreferences, MobilePublicProfile, MobileRegisterExpoTokenParams, MobileRegisteredWallet, MobileServerExecuteRequestType, MobileServerExecuteResult, MobileServerFailureError, MobileServerFailureResponse, MobileServerFeedMargin, MobileServerFeedResponse, MobileServerFeedTrade, MobileServerIdentity, MobileServerNotificationCategoryPreference, MobileServerNotificationPreferenceScope, MobileServerNotificationPreferences, MobileServerNotificationPreferencesResponse, MobileServerProfile, MobileServerProfileResponse, MobileServerPublicExecuteRequest, MobileServerPublicExecuteRequestByType, MobileServerPublicExecuteRequestType, MobileServerPublicQueryRequest, MobileServerPublicQueryRequestByType, MobileServerPublicQueryRequestType, MobileServerPublicQueryResponseByType, MobileServerPublicQuerySuccessResponse, MobileServerRegisteredWalletResponse, MobileServerRequestType, MobileServerSelfIdentityResponse, MobileServerSignedQueryRequestByType, MobileServerSignedQueryRequestType, MobileServerSignedQueryResponseByType, MobileServerSignedQuerySuccessResponse, MobileServerSuccessResponse, MobileServerUsernameAvailabilityResponse, MobileSetPrivateModeParams, MobileSetUsernameParams, MobileSignedInner, MobileSignedInnerParams, MobileSignedRequest, MobileSignedRequestParams, MobileUnregisterExpoTokenParams, MobileUpdateNotificationPreferencesParams, MobileUsernameAvailability, MobileWithExpoTokenParams, buildSignedMobileRequest, canonicalizeMobileInner, getMobileNonce, getMobilePayloadHash, isMobileServerFailureResponse, isMobileServerSuccessResponse };
19
+ import { n as isMobileServerSuccessResponse, t as isMobileServerFailureResponse } from "./serverResponseGuards-Cep5s7j5.js";
20
+ export { BuildSignedMobileRequestParams, GetMobileFeedParams, GetMobileNotificationPreferencesParams, GetMobilePublicProfileParams, GetMobileRegisteredWalletParams, GetMobileUsernameAvailabilityParams, MOBILE_CLIENT_ENDPOINTS, MOBILE_DISPLAY_NAME_PATTERN, MOBILE_EIP712_METHOD_BY_TYPE, MOBILE_ERROR_CODES, MOBILE_FEED_MARGIN_MODES, MOBILE_FEED_MAX_PAGE_SIZE, MOBILE_FEED_MIN_NOTIONAL_FLOOR, MOBILE_FEED_TRADE_POSITION_DIRECTIONS, MOBILE_FEED_TRADE_POSITION_EFFECTS, MobileClient, MobileClientOpts, MobileErrorCode, MobileFeedMargin, MobileFeedMarginMode, MobileFeedPage, MobileFeedTrade, MobileFeedTradePosition, MobileFeedTradePositionDirection, MobileFeedTradePositionEffect, MobileNotificationCategory, MobileNotificationCategoryPreference, MobileNotificationPlatform, MobileNotificationPreferenceScope, MobileNotificationPreferences, MobilePublicProfile, MobileRegisterExpoTokenParams, MobileRegisteredWallet, MobileServerExecuteRequestType, MobileServerExecuteResult, MobileServerFailureError, MobileServerFailureResponse, MobileServerFeedMargin, MobileServerFeedResponse, MobileServerFeedTrade, MobileServerNotificationCategoryPreference, MobileServerNotificationPreferenceScope, MobileServerNotificationPreferences, MobileServerNotificationPreferencesResponse, MobileServerProfile, MobileServerProfileResponse, MobileServerPublicExecuteRequest, MobileServerPublicExecuteRequestByType, MobileServerPublicExecuteRequestType, MobileServerPublicQueryRequest, MobileServerPublicQueryRequestByType, MobileServerPublicQueryRequestType, MobileServerPublicQueryResponseByType, MobileServerPublicQuerySuccessResponse, MobileServerRegisteredWalletResponse, MobileServerRequestType, MobileServerSuccessResponse, MobileServerUsernameAvailabilityResponse, MobileSetPrivateModeParams, MobileSetUsernameParams, MobileSignedInner, MobileSignedInnerParams, MobileSignedRequest, MobileSignedRequestParams, MobileUnregisterExpoTokenParams, MobileUpdateNotificationPreferencesParams, MobileUsernameAvailability, MobileWithExpoTokenParams, buildSignedMobileRequest, canonicalizeMobileInner, getMobileNonce, getMobilePayloadHash, isMobileServerFailureResponse, isMobileServerSuccessResponse };
@@ -1,4 +1,4 @@
1
- import { n as MobileSignedInner } from "./types-DNd9S0Rz.js";
1
+ import { n as MobileSignedInner } from "./types-D5kFJzEX.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-yIWBW4Iq.d.ts.map
13
+ //# sourceMappingURL=payloadHash-BxL26uwq.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payloadHash-BxL26uwq.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 { n as MobileSignedInner } from "./types-BycRkqAj.cjs";
1
+ import { n as MobileSignedInner } from "./types-47IPsDyA.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-CgKXMvZU.d.cts.map
13
+ //# sourceMappingURL=payloadHash-DVkEt-Rg.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payloadHash-DVkEt-Rg.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 { o as MobileServerRequestType } from "./serverRequestTypes-w1r41ff7.js";
1
+ import { o as MobileServerRequestType } from "./serverRequestTypes-516zXnQ6.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-ClQZqTAK.d.ts.map
25
+ //# sourceMappingURL=serverBaseTypes-B_KHFDab.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"serverBaseTypes-ClQZqTAK.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-B_KHFDab.d.ts","names":[],"sources":["../src/types/src/types/serverBaseTypes.ts"],"mappings":";;;;;AAQA;;;;UAAiB,2BAAA;EACf,MAAM;AAAA;;;;;UAOS,2BAAA;EACf,MAAA;EACA,KAAA;EACA,UAAA;EACA,YAAA,EAAc,uBAAuB;AAAA"}
@@ -1,4 +1,4 @@
1
- import { o as MobileServerRequestType } from "./serverRequestTypes-Cw661qjM.cjs";
1
+ import { o as MobileServerRequestType } from "./serverRequestTypes-GAtVYIda.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-_a1pE464.d.cts.map
25
+ //# sourceMappingURL=serverBaseTypes-C8KjE9Fm.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"serverBaseTypes-_a1pE464.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-C8KjE9Fm.d.cts","names":[],"sources":["../src/types/src/types/serverBaseTypes.ts"],"mappings":";;;;;AAQA;;;;UAAiB,2BAAA;EACf,MAAM;AAAA;;;;;UAOS,2BAAA;EACf,MAAA;EACA,KAAA;EACA,UAAA;EACA,YAAA,EAAc,uBAAuB;AAAA"}
@@ -1,5 +1,5 @@
1
- import { n as MobileServerPublicExecuteRequestByType, r as MobileServerPublicExecuteRequestType } from "./serverRequestTypes-Cw661qjM.cjs";
2
- import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "./serverBaseTypes-_a1pE464.cjs";
1
+ import { n as MobileServerPublicExecuteRequestByType, r as MobileServerPublicExecuteRequestType } from "./serverRequestTypes-GAtVYIda.cjs";
2
+ import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "./serverBaseTypes-C8KjE9Fm.cjs";
3
3
 
4
4
  //#region src/types/serverExecuteTypes.d.ts
5
5
  /**
@@ -16,4 +16,4 @@ type MobileServerPublicExecuteRequest<T extends MobileServerPublicExecuteRequest
16
16
  type MobileServerExecuteResult = MobileServerSuccessResponse | MobileServerFailureResponse;
17
17
  //#endregion
18
18
  export { MobileServerPublicExecuteRequest as n, MobileServerExecuteResult as t };
19
- //# sourceMappingURL=serverExecuteTypes-CUla9jFj.d.cts.map
19
+ //# sourceMappingURL=serverExecuteTypes-Cb5v7y0A.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"serverExecuteTypes-CUla9jFj.d.cts","names":[],"sources":["../src/types/src/types/serverExecuteTypes.ts"],"mappings":";;;;;;AAaA;;KAAY,gCAAA,WACA,oCAAA,GACR,oCAAA,YAEI,oCAAA;EACJ,IAAA,EAAM,CAAA;AAAA,IACJ,sCAAA,CAAuC,CAAA,IAC3C,CAAA;;;;;KAMU,yBAAA,GACR,2BAAA,GACA,2BAA2B"}
1
+ {"version":3,"file":"serverExecuteTypes-Cb5v7y0A.d.cts","names":[],"sources":["../src/types/src/types/serverExecuteTypes.ts"],"mappings":";;;;;;AAaA;;KAAY,gCAAA,WACA,oCAAA,GACR,oCAAA,YAEI,oCAAA;EACJ,IAAA,EAAM,CAAA;AAAA,IACJ,sCAAA,CAAuC,CAAA,IAC3C,CAAA;;;;;KAMU,yBAAA,GACR,2BAAA,GACA,2BAA2B"}
@@ -1,5 +1,5 @@
1
- import { n as MobileServerPublicExecuteRequestByType, r as MobileServerPublicExecuteRequestType } from "./serverRequestTypes-w1r41ff7.js";
2
- import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "./serverBaseTypes-ClQZqTAK.js";
1
+ import { n as MobileServerPublicExecuteRequestByType, r as MobileServerPublicExecuteRequestType } from "./serverRequestTypes-516zXnQ6.js";
2
+ import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "./serverBaseTypes-B_KHFDab.js";
3
3
 
4
4
  //#region src/types/serverExecuteTypes.d.ts
5
5
  /**
@@ -16,4 +16,4 @@ type MobileServerPublicExecuteRequest<T extends MobileServerPublicExecuteRequest
16
16
  type MobileServerExecuteResult = MobileServerSuccessResponse | MobileServerFailureResponse;
17
17
  //#endregion
18
18
  export { MobileServerPublicExecuteRequest as n, MobileServerExecuteResult as t };
19
- //# sourceMappingURL=serverExecuteTypes-BD8Awy8Q.d.ts.map
19
+ //# sourceMappingURL=serverExecuteTypes-GFjZj_DC.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"serverExecuteTypes-BD8Awy8Q.d.ts","names":[],"sources":["../src/types/src/types/serverExecuteTypes.ts"],"mappings":";;;;;;AAaA;;KAAY,gCAAA,WACA,oCAAA,GACR,oCAAA,YAEI,oCAAA;EACJ,IAAA,EAAM,CAAA;AAAA,IACJ,sCAAA,CAAuC,CAAA,IAC3C,CAAA;;;;;KAMU,yBAAA,GACR,2BAAA,GACA,2BAA2B"}
1
+ {"version":3,"file":"serverExecuteTypes-GFjZj_DC.d.ts","names":[],"sources":["../src/types/src/types/serverExecuteTypes.ts"],"mappings":";;;;;;AAaA;;KAAY,gCAAA,WACA,oCAAA,GACR,oCAAA,YAEI,oCAAA;EACJ,IAAA,EAAM,CAAA;AAAA,IACJ,sCAAA,CAAuC,CAAA,IAC3C,CAAA;;;;;KAMU,yBAAA,GACR,2BAAA,GACA,2BAA2B"}
@@ -20,16 +20,6 @@ interface MobileServerProfile {
20
20
  display_name: string | null;
21
21
  private_mode: boolean;
22
22
  }
23
- /**
24
- * Server-side identity shape (snake_case) returned by the signed `self_identity` query. Name fields are
25
- * `null` until the subaccount claims a username.
26
- */
27
- interface MobileServerIdentity {
28
- subaccount: Hex;
29
- username: string | null;
30
- display_name: string | null;
31
- private_mode: boolean;
32
- }
33
23
  /**
34
24
  * Direction of the position a feed trade resulted in — for `closed`, the direction that was closed. This is
35
25
  * NOT the execution buy/sell side, which the feed does not expose. Aliases {@link BalanceSide} so the feed's
@@ -132,5 +122,5 @@ interface MobileServerNotificationPreferences {
132
122
  categories: MobileServerNotificationCategoryPreference[];
133
123
  }
134
124
  //#endregion
135
- export { MobileFeedTradePosition as a, MobileNotificationCategory as c, MobileServerFeedTrade as d, MobileServerIdentity as f, MobileServerProfile as g, MobileServerNotificationPreferences as h, MobileFeedMarginMode as i, MobileNotificationPlatform as l, MobileServerNotificationPreferenceScope as m, MOBILE_FEED_TRADE_POSITION_DIRECTIONS as n, MobileFeedTradePositionDirection as o, MobileServerNotificationCategoryPreference as p, MOBILE_FEED_TRADE_POSITION_EFFECTS as r, MobileFeedTradePositionEffect as s, MOBILE_FEED_MARGIN_MODES as t, MobileServerFeedMargin as u };
136
- //# sourceMappingURL=serverModelTypes-BIGPd52y.d.ts.map
125
+ export { MobileFeedTradePosition as a, MobileNotificationCategory as c, MobileServerFeedTrade as d, MobileServerNotificationCategoryPreference as f, MobileServerProfile as h, MobileFeedMarginMode as i, MobileNotificationPlatform as l, MobileServerNotificationPreferences as m, MOBILE_FEED_TRADE_POSITION_DIRECTIONS as n, MobileFeedTradePositionDirection as o, MobileServerNotificationPreferenceScope as p, MOBILE_FEED_TRADE_POSITION_EFFECTS as r, MobileFeedTradePositionEffect as s, MOBILE_FEED_MARGIN_MODES as t, MobileServerFeedMargin as u };
126
+ //# sourceMappingURL=serverModelTypes-CwgibK-l.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serverModelTypes-CwgibK-l.d.cts","names":[],"sources":["../src/types/src/types/serverModelTypes.ts"],"mappings":";;;;;;AAMA;KAAY,0BAAA;;;AAA0B;KAK1B,0BAAA;;;;AAA0B;UAYrB,mBAAA;EACf,UAAA,EAAY,GAAG;EACf,QAAA;EACA,YAAA;EACA,YAAA;AAAA;;;;;AAAY;KAQF,gCAAA,GAAmC,WAAW;;;;AAAA;cAM7C,qCAAA;;;;AAGmD;cAMnD,kCAAA;;;;KAWD,6BAAA,WACF,kCAAkC;AAD5C;;;;AAAA,UAOiB,uBAAA;EACf,SAAA,EAAW,gCAAA;EACX,MAAA,EAAQ,6BAA6B;AAAA;;;;;cAO1B,wBAAA;;AAP0B;AAOvC;KAKY,oBAAA,WAA+B,wBAAwB;;;AALG;AAKtE;;UAOiB,sBAAA;EACf,IAAA,EAAM,oBAAoB;EAC1B,kBAAA;AAAA;;;;;;UAQe,qBAAA;EARG;EAUlB,YAAA,EAAc,GAAA;EACd,UAAA,EAAY,GAAA;EACZ,QAAA;EACA,YAAA;EAHc;EAKd,UAAA;EACA,UAAA;EAQU;EANV,QAAA;EAMiC;EAJjC,QAAA;EAVc;EAYd,aAAA;EACA,MAAA,EAAQ,sBAAA;EACR,QAAA,EAAU,uBAAA;EAXV;EAaA,YAAA;EAVA;EAYA,YAAA;AAAA;;;;;KAOU,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;AARhB;AAKjC;;;AALiC,UAehB,mCAAA;EATf;EAWA,cAAA;EACA,UAAA,EAAY,0CAA0C;AAAA"}
@@ -20,16 +20,6 @@ interface MobileServerProfile {
20
20
  display_name: string | null;
21
21
  private_mode: boolean;
22
22
  }
23
- /**
24
- * Server-side identity shape (snake_case) returned by the signed `self_identity` query. Name fields are
25
- * `null` until the subaccount claims a username.
26
- */
27
- interface MobileServerIdentity {
28
- subaccount: Hex;
29
- username: string | null;
30
- display_name: string | null;
31
- private_mode: boolean;
32
- }
33
23
  /**
34
24
  * Direction of the position a feed trade resulted in — for `closed`, the direction that was closed. This is
35
25
  * NOT the execution buy/sell side, which the feed does not expose. Aliases {@link BalanceSide} so the feed's
@@ -132,5 +122,5 @@ interface MobileServerNotificationPreferences {
132
122
  categories: MobileServerNotificationCategoryPreference[];
133
123
  }
134
124
  //#endregion
135
- export { MobileFeedTradePosition as a, MobileNotificationCategory as c, MobileServerFeedTrade as d, MobileServerIdentity as f, MobileServerProfile as g, MobileServerNotificationPreferences as h, MobileFeedMarginMode as i, MobileNotificationPlatform as l, MobileServerNotificationPreferenceScope as m, MOBILE_FEED_TRADE_POSITION_DIRECTIONS as n, MobileFeedTradePositionDirection as o, MobileServerNotificationCategoryPreference as p, MOBILE_FEED_TRADE_POSITION_EFFECTS as r, MobileFeedTradePositionEffect as s, MOBILE_FEED_MARGIN_MODES as t, MobileServerFeedMargin as u };
136
- //# sourceMappingURL=serverModelTypes-DGYc_3XP.d.cts.map
125
+ export { MobileFeedTradePosition as a, MobileNotificationCategory as c, MobileServerFeedTrade as d, MobileServerNotificationCategoryPreference as f, MobileServerProfile as h, MobileFeedMarginMode as i, MobileNotificationPlatform as l, MobileServerNotificationPreferences as m, MOBILE_FEED_TRADE_POSITION_DIRECTIONS as n, MobileFeedTradePositionDirection as o, MobileServerNotificationPreferenceScope as p, MOBILE_FEED_TRADE_POSITION_EFFECTS as r, MobileFeedTradePositionEffect as s, MOBILE_FEED_MARGIN_MODES as t, MobileServerFeedMargin as u };
126
+ //# sourceMappingURL=serverModelTypes-_cX99seo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serverModelTypes-_cX99seo.d.ts","names":[],"sources":["../src/types/src/types/serverModelTypes.ts"],"mappings":";;;;;;AAMA;KAAY,0BAAA;;;AAA0B;KAK1B,0BAAA;;;;AAA0B;UAYrB,mBAAA;EACf,UAAA,EAAY,GAAG;EACf,QAAA;EACA,YAAA;EACA,YAAA;AAAA;;;;;AAAY;KAQF,gCAAA,GAAmC,WAAW;;;;AAAA;cAM7C,qCAAA;;;;AAGmD;cAMnD,kCAAA;;;;KAWD,6BAAA,WACF,kCAAkC;AAD5C;;;;AAAA,UAOiB,uBAAA;EACf,SAAA,EAAW,gCAAA;EACX,MAAA,EAAQ,6BAA6B;AAAA;;;;;cAO1B,wBAAA;;AAP0B;AAOvC;KAKY,oBAAA,WAA+B,wBAAwB;;;AALG;AAKtE;;UAOiB,sBAAA;EACf,IAAA,EAAM,oBAAoB;EAC1B,kBAAA;AAAA;;;;;;UAQe,qBAAA;EARG;EAUlB,YAAA,EAAc,GAAA;EACd,UAAA,EAAY,GAAA;EACZ,QAAA;EACA,YAAA;EAHc;EAKd,UAAA;EACA,UAAA;EAQU;EANV,QAAA;EAMiC;EAJjC,QAAA;EAVc;EAYd,aAAA;EACA,MAAA,EAAQ,sBAAA;EACR,QAAA,EAAU,uBAAA;EAXV;EAaA,YAAA;EAVA;EAYA,YAAA;AAAA;;;;;KAOU,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;AARhB;AAKjC;;;AALiC,UAehB,mCAAA;EATf;EAWA,cAAA;EACA,UAAA,EAAY,0CAA0C;AAAA"}