@nadohq/mobile-client 0.32.0 → 0.33.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 +2 -2
  2. package/dist/{MobileClient-_i0ZV6Dq.cjs → MobileClient-SQ7byUxo.cjs} +18 -8
  3. package/dist/MobileClient-SQ7byUxo.cjs.map +1 -0
  4. package/dist/MobileClient.cjs +1 -1
  5. package/dist/MobileClient.d.cts +17 -10
  6. package/dist/MobileClient.d.cts.map +1 -1
  7. package/dist/MobileClient.d.ts +17 -10
  8. package/dist/MobileClient.d.ts.map +1 -1
  9. package/dist/MobileClient.js +18 -8
  10. package/dist/MobileClient.js.map +1 -1
  11. package/dist/{MobileServerFailureError-MgYVBh5p.d.ts → MobileServerFailureError-A2EcYe6Y.d.ts} +3 -3
  12. package/dist/{MobileServerFailureError-MgYVBh5p.d.ts.map → MobileServerFailureError-A2EcYe6Y.d.ts.map} +1 -1
  13. package/dist/{MobileServerFailureError-BoyAfEZA.d.cts → MobileServerFailureError-N3nGgdmg.d.cts} +3 -3
  14. package/dist/{MobileServerFailureError-BoyAfEZA.d.cts.map → MobileServerFailureError-N3nGgdmg.d.cts.map} +1 -1
  15. package/dist/{buildSignedMobileRequest-qEC4gWaI.d.ts → buildSignedMobileRequest-B8iVGxQc.d.ts} +2 -2
  16. package/dist/{buildSignedMobileRequest-qEC4gWaI.d.ts.map → buildSignedMobileRequest-B8iVGxQc.d.ts.map} +1 -1
  17. package/dist/{buildSignedMobileRequest-CBMt97aY.d.cts → buildSignedMobileRequest-CtRX4zl4.d.cts} +2 -2
  18. package/dist/{buildSignedMobileRequest-CBMt97aY.d.cts.map → buildSignedMobileRequest-CtRX4zl4.d.cts.map} +1 -1
  19. package/dist/{canonicalize-wVdGejB1.d.ts → canonicalize-Cz1rz_ER.d.ts} +2 -2
  20. package/dist/canonicalize-Cz1rz_ER.d.ts.map +1 -0
  21. package/dist/{canonicalize-QNARV_Xc.d.cts → canonicalize-afPLlUjE.d.cts} +2 -2
  22. package/dist/canonicalize-afPLlUjE.d.cts.map +1 -0
  23. package/dist/{clientTypes-D9qgtNlE.d.cts → clientTypes-DIipTg9D.d.cts} +10 -7
  24. package/dist/clientTypes-DIipTg9D.d.cts.map +1 -0
  25. package/dist/{clientTypes-6utzUU-b.d.ts → clientTypes-DqDZEcBu.d.ts} +10 -7
  26. package/dist/clientTypes-DqDZEcBu.d.ts.map +1 -0
  27. package/dist/dataMappers.cjs +4 -3
  28. package/dist/dataMappers.cjs.map +1 -1
  29. package/dist/dataMappers.d.cts +6 -6
  30. package/dist/dataMappers.d.cts.map +1 -1
  31. package/dist/dataMappers.d.ts +6 -6
  32. package/dist/dataMappers.d.ts.map +1 -1
  33. package/dist/dataMappers.js +4 -3
  34. package/dist/dataMappers.js.map +1 -1
  35. package/dist/{eip712MethodByType-DBUy4AdI.d.ts → eip712MethodByType-BzfeoDTF.d.ts} +2 -2
  36. package/dist/eip712MethodByType-BzfeoDTF.d.ts.map +1 -0
  37. package/dist/{eip712MethodByType-CroIPqsJ.d.cts → eip712MethodByType-CUAcWwX0.d.cts} +2 -2
  38. package/dist/eip712MethodByType-CUAcWwX0.d.cts.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-B0tlFOK8.d.cts → payloadHash-CgKXMvZU.d.cts} +2 -2
  43. package/dist/payloadHash-CgKXMvZU.d.cts.map +1 -0
  44. package/dist/{payloadHash-D1yTQSF4.d.ts → payloadHash-yIWBW4Iq.d.ts} +2 -2
  45. package/dist/payloadHash-yIWBW4Iq.d.ts.map +1 -0
  46. package/dist/{serverBaseTypes-CzRgwUvA.d.ts → serverBaseTypes-ClQZqTAK.d.ts} +2 -2
  47. package/dist/{serverBaseTypes-CzRgwUvA.d.ts.map → serverBaseTypes-ClQZqTAK.d.ts.map} +1 -1
  48. package/dist/{serverBaseTypes-DSRgU2Fb.d.cts → serverBaseTypes-_a1pE464.d.cts} +2 -2
  49. package/dist/{serverBaseTypes-DSRgU2Fb.d.cts.map → serverBaseTypes-_a1pE464.d.cts.map} +1 -1
  50. package/dist/{serverExecuteTypes-CI3NBW2Z.d.ts → serverExecuteTypes-BD8Awy8Q.d.ts} +3 -3
  51. package/dist/{serverExecuteTypes-CI3NBW2Z.d.ts.map → serverExecuteTypes-BD8Awy8Q.d.ts.map} +1 -1
  52. package/dist/{serverExecuteTypes-BCb6bUMP.d.cts → serverExecuteTypes-CUla9jFj.d.cts} +3 -3
  53. package/dist/{serverExecuteTypes-BCb6bUMP.d.cts.map → serverExecuteTypes-CUla9jFj.d.cts.map} +1 -1
  54. package/dist/{serverModelTypes-DvPs5qs3.d.ts → serverModelTypes-BIGPd52y.d.ts} +2 -12
  55. package/dist/{serverModelTypes-DvPs5qs3.d.ts.map → serverModelTypes-BIGPd52y.d.ts.map} +1 -1
  56. package/dist/{serverModelTypes-BYQcsRrx.d.cts → serverModelTypes-DGYc_3XP.d.cts} +2 -12
  57. package/dist/{serverModelTypes-BYQcsRrx.d.cts.map → serverModelTypes-DGYc_3XP.d.cts.map} +1 -1
  58. package/dist/{serverQueryTypes-9H6P1vJ5.d.cts → serverQueryTypes-4J8qNQld.d.ts} +16 -9
  59. package/dist/serverQueryTypes-4J8qNQld.d.ts.map +1 -0
  60. package/dist/{serverQueryTypes-Cbjx0bIj.d.ts → serverQueryTypes-C_rvZnol.d.cts} +16 -9
  61. package/dist/serverQueryTypes-C_rvZnol.d.cts.map +1 -0
  62. package/dist/{serverRequestTypes-DYTLrCpz.d.ts → serverRequestTypes-Cw661qjM.d.cts} +6 -4
  63. package/dist/serverRequestTypes-Cw661qjM.d.cts.map +1 -0
  64. package/dist/{serverRequestTypes-CHDk6JwE.d.cts → serverRequestTypes-w1r41ff7.d.ts} +6 -4
  65. package/dist/serverRequestTypes-w1r41ff7.d.ts.map +1 -0
  66. package/dist/{serverResponseGuards-DRMHmfXh.d.cts → serverResponseGuards-DEyNjgwq.d.cts} +2 -2
  67. package/dist/{serverResponseGuards-DRMHmfXh.d.cts.map → serverResponseGuards-DEyNjgwq.d.cts.map} +1 -1
  68. package/dist/{serverResponseGuards-DpbZvJfL.d.ts → serverResponseGuards-DNJZw8yq.d.ts} +2 -2
  69. package/dist/{serverResponseGuards-DpbZvJfL.d.ts.map → serverResponseGuards-DNJZw8yq.d.ts.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 +1 -2
  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 +1 -2
  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 +1 -1
  111. package/dist/types/serverRequestTypes.d.ts +1 -1
  112. package/dist/{types-CQE3HD2V.d.ts → types-BycRkqAj.d.cts} +3 -5
  113. package/dist/types-BycRkqAj.d.cts.map +1 -0
  114. package/dist/{types-bNB98pYk.d.cts → types-DNd9S0Rz.d.ts} +3 -5
  115. package/dist/types-DNd9S0Rz.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 +24 -18
  122. package/src/dataMappers.ts +10 -7
  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 +1 -2
  127. package/src/types/clientTypes.ts +7 -4
  128. package/src/types/serverModelTypes.ts +0 -11
  129. package/src/types/serverQueryTypes.ts +12 -5
  130. package/src/types/serverRequestTypes.ts +1 -1
  131. package/dist/MobileClient-_i0ZV6Dq.cjs.map +0 -1
  132. package/dist/canonicalize-QNARV_Xc.d.cts.map +0 -1
  133. package/dist/canonicalize-wVdGejB1.d.ts.map +0 -1
  134. package/dist/clientTypes-6utzUU-b.d.ts.map +0 -1
  135. package/dist/clientTypes-D9qgtNlE.d.cts.map +0 -1
  136. package/dist/eip712MethodByType-CroIPqsJ.d.cts.map +0 -1
  137. package/dist/eip712MethodByType-DBUy4AdI.d.ts.map +0 -1
  138. package/dist/payloadHash-B0tlFOK8.d.cts.map +0 -1
  139. package/dist/payloadHash-D1yTQSF4.d.ts.map +0 -1
  140. package/dist/serverQueryTypes-9H6P1vJ5.d.cts.map +0 -1
  141. package/dist/serverQueryTypes-Cbjx0bIj.d.ts.map +0 -1
  142. package/dist/serverRequestTypes-CHDk6JwE.d.cts.map +0 -1
  143. package/dist/serverRequestTypes-DYTLrCpz.d.ts.map +0 -1
  144. package/dist/types-CQE3HD2V.d.ts.map +0 -1
  145. package/dist/types-bNB98pYk.d.cts.map +0 -1
@@ -101,10 +101,11 @@ function mapMobileFeedPage(server) {
101
101
  };
102
102
  }
103
103
  /**
104
- * Maps a server-side registered device (snake_case) to its client-side (camelCase) representation.
104
+ * Maps a server-side registered wallet (snake_case) to its client-side (camelCase) representation.
105
105
  */
106
- function mapMobileRegisteredDevice(server) {
106
+ function mapMobileRegisteredWallet(server) {
107
107
  return {
108
+ wallet: server.wallet,
108
109
  platform: server.platform,
109
110
  locale: server.locale,
110
111
  appVersion: server.app_version,
@@ -118,6 +119,6 @@ exports.mapMobileIdentity = mapMobileIdentity;
118
119
  exports.mapMobileNotificationPreferences = mapMobileNotificationPreferences;
119
120
  exports.mapMobileNotificationPreferencesToServer = mapMobileNotificationPreferencesToServer;
120
121
  exports.mapMobilePublicProfile = mapMobilePublicProfile;
121
- exports.mapMobileRegisteredDevice = mapMobileRegisteredDevice;
122
+ exports.mapMobileRegisteredWallet = mapMobileRegisteredWallet;
122
123
 
123
124
  //# sourceMappingURL=dataMappers.cjs.map
@@ -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 MobileRegisteredDevice,\n} from './types/clientTypes';\nimport {\n MobileServerFeedTrade,\n MobileServerIdentity,\n MobileServerNotificationPreferenceScope,\n MobileServerNotificationPreferences,\n MobileServerProfile,\n MobileServerRegisteredDevice,\n} from './types/serverModelTypes';\nimport { MobileServerFeedResponse } 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 device (snake_case) to its client-side (camelCase) representation.\n */\nexport function mapMobileRegisteredDevice(\n server: MobileServerRegisteredDevice,\n): MobileRegisteredDevice {\n return {\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,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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.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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OAAO;EACjB,QAAQ,OAAO;EACf,YAAY,OAAO;EACnB,wBAAwB,OAAO;EAC/B,YAAY,OAAO;CACrB;AACF"}
@@ -1,6 +1,6 @@
1
- import { _ as MobileServerRegisteredDevice, f as MobileServerIdentity, g as MobileServerProfile, h as MobileServerNotificationPreferences } from "./serverModelTypes-BYQcsRrx.cjs";
2
- import { c as MobileFeedPage, g as MobileRegisteredDevice, m as MobilePublicProfile, p as MobileNotificationPreferences, u as MobileIdentity } from "./clientTypes-D9qgtNlE.cjs";
3
- import { t as MobileServerFeedResponse } from "./serverQueryTypes-9H6P1vJ5.cjs";
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";
4
4
 
5
5
  //#region src/dataMappers.d.ts
6
6
  /**
@@ -24,9 +24,9 @@ declare function mapMobileNotificationPreferencesToServer(preferences: MobileNot
24
24
  */
25
25
  declare function mapMobileFeedPage(server: MobileServerFeedResponse): MobileFeedPage;
26
26
  /**
27
- * Maps a server-side registered device (snake_case) to its client-side (camelCase) representation.
27
+ * Maps a server-side registered wallet (snake_case) to its client-side (camelCase) representation.
28
28
  */
29
- declare function mapMobileRegisteredDevice(server: MobileServerRegisteredDevice): MobileRegisteredDevice;
29
+ declare function mapMobileRegisteredWallet(server: MobileServerRegisteredWalletResponse): MobileRegisteredWallet;
30
30
  //#endregion
31
- export { mapMobileFeedPage, mapMobileIdentity, mapMobileNotificationPreferences, mapMobileNotificationPreferencesToServer, mapMobilePublicProfile, mapMobileRegisteredDevice };
31
+ export { mapMobileFeedPage, mapMobileIdentity, mapMobileNotificationPreferences, mapMobileNotificationPreferencesToServer, mapMobilePublicProfile, mapMobileRegisteredWallet };
32
32
  //# sourceMappingURL=dataMappers.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dataMappers.d.cts","names":[],"sources":["../src/src/dataMappers.ts"],"mappings":";;;;;;;AAsBA;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,4BAAA,GACP,sBAAsB"}
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,6 +1,6 @@
1
- import { _ as MobileServerRegisteredDevice, f as MobileServerIdentity, g as MobileServerProfile, h as MobileServerNotificationPreferences } from "./serverModelTypes-DvPs5qs3.js";
2
- import { c as MobileFeedPage, g as MobileRegisteredDevice, m as MobilePublicProfile, p as MobileNotificationPreferences, u as MobileIdentity } from "./clientTypes-6utzUU-b.js";
3
- import { t as MobileServerFeedResponse } from "./serverQueryTypes-Cbjx0bIj.js";
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";
4
4
 
5
5
  //#region src/dataMappers.d.ts
6
6
  /**
@@ -24,9 +24,9 @@ declare function mapMobileNotificationPreferencesToServer(preferences: MobileNot
24
24
  */
25
25
  declare function mapMobileFeedPage(server: MobileServerFeedResponse): MobileFeedPage;
26
26
  /**
27
- * Maps a server-side registered device (snake_case) to its client-side (camelCase) representation.
27
+ * Maps a server-side registered wallet (snake_case) to its client-side (camelCase) representation.
28
28
  */
29
- declare function mapMobileRegisteredDevice(server: MobileServerRegisteredDevice): MobileRegisteredDevice;
29
+ declare function mapMobileRegisteredWallet(server: MobileServerRegisteredWalletResponse): MobileRegisteredWallet;
30
30
  //#endregion
31
- export { mapMobileFeedPage, mapMobileIdentity, mapMobileNotificationPreferences, mapMobileNotificationPreferencesToServer, mapMobilePublicProfile, mapMobileRegisteredDevice };
31
+ export { mapMobileFeedPage, mapMobileIdentity, mapMobileNotificationPreferences, mapMobileNotificationPreferencesToServer, mapMobilePublicProfile, mapMobileRegisteredWallet };
32
32
  //# sourceMappingURL=dataMappers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dataMappers.d.ts","names":[],"sources":["../src/src/dataMappers.ts"],"mappings":";;;;;;;AAsBA;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,4BAAA,GACP,sBAAsB"}
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"}
@@ -100,10 +100,11 @@ function mapMobileFeedPage(server) {
100
100
  };
101
101
  }
102
102
  /**
103
- * Maps a server-side registered device (snake_case) to its client-side (camelCase) representation.
103
+ * Maps a server-side registered wallet (snake_case) to its client-side (camelCase) representation.
104
104
  */
105
- function mapMobileRegisteredDevice(server) {
105
+ function mapMobileRegisteredWallet(server) {
106
106
  return {
107
+ wallet: server.wallet,
107
108
  platform: server.platform,
108
109
  locale: server.locale,
109
110
  appVersion: server.app_version,
@@ -112,6 +113,6 @@ function mapMobileRegisteredDevice(server) {
112
113
  };
113
114
  }
114
115
  //#endregion
115
- export { mapMobileFeedPage, mapMobileIdentity, mapMobileNotificationPreferences, mapMobileNotificationPreferencesToServer, mapMobilePublicProfile, mapMobileRegisteredDevice };
116
+ export { mapMobileFeedPage, mapMobileIdentity, mapMobileNotificationPreferences, mapMobileNotificationPreferencesToServer, mapMobilePublicProfile, mapMobileRegisteredWallet };
116
117
 
117
118
  //# 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 MobileRegisteredDevice,\n} from './types/clientTypes';\nimport {\n MobileServerFeedTrade,\n MobileServerIdentity,\n MobileServerNotificationPreferenceScope,\n MobileServerNotificationPreferences,\n MobileServerProfile,\n MobileServerRegisteredDevice,\n} from './types/serverModelTypes';\nimport { MobileServerFeedResponse } 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 device (snake_case) to its client-side (camelCase) representation.\n */\nexport function mapMobileRegisteredDevice(\n server: MobileServerRegisteredDevice,\n): MobileRegisteredDevice {\n return {\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,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;;;;AA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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 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;;;;AA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AC5C,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-CQE3HD2V.js";
1
+ import { n as MobileSignedInner } from "./types-DNd9S0Rz.js";
2
2
 
3
3
  //#region src/signing/eip712MethodByType.d.ts
4
4
  /**
@@ -7,4 +7,4 @@ import { n as MobileSignedInner } from "./types-CQE3HD2V.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-DBUy4AdI.d.ts.map
10
+ //# sourceMappingURL=eip712MethodByType-BzfeoDTF.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eip712MethodByType-BzfeoDTF.d.ts","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-bNB98pYk.cjs";
1
+ import { n as MobileSignedInner } from "./types-BycRkqAj.cjs";
2
2
 
3
3
  //#region src/signing/eip712MethodByType.d.ts
4
4
  /**
@@ -7,4 +7,4 @@ import { n as MobileSignedInner } from "./types-bNB98pYk.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-CroIPqsJ.d.cts.map
10
+ //# sourceMappingURL=eip712MethodByType-CUAcWwX0.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eip712MethodByType-CUAcWwX0.d.cts","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-_i0ZV6Dq.cjs");
2
+ const require_MobileClient = require("./MobileClient-SQ7byUxo.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 { _ 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-BYQcsRrx.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 MobileRegisteredDevice, h as MobileRegisterExpoTokenParams, i as GetMobileRegisteredDevicesParams, 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-D9qgtNlE.cjs";
3
- import { i as MobileSignedRequest, n as MobileSignedInner, r as MobileSignedInnerParams, t as BuildSignedMobileRequestParams } from "./types-bNB98pYk.cjs";
4
- import { t as buildSignedMobileRequest } from "./buildSignedMobileRequest-CBMt97aY.cjs";
5
- import { t as canonicalizeMobileInner } from "./canonicalize-QNARV_Xc.cjs";
6
- import { t as MOBILE_EIP712_METHOD_BY_TYPE } from "./eip712MethodByType-CroIPqsJ.cjs";
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";
7
7
  import { t as getMobileNonce } from "./nonce-zGyisRlj.cjs";
8
- import { t as getMobilePayloadHash } from "./payloadHash-B0tlFOK8.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-CHDk6JwE.cjs";
10
- import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "./serverBaseTypes-DSRgU2Fb.cjs";
11
- import { n as MobileServerPublicExecuteRequest, t as MobileServerExecuteResult } from "./serverExecuteTypes-BCb6bUMP.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 MobileServerRegisteredDevicesResponse, t as MobileServerFeedResponse, u as MobileServerSignedQuerySuccessResponse } from "./serverQueryTypes-9H6P1vJ5.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";
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-BoyAfEZA.cjs";
16
+ import { t as MobileServerFailureError } from "./MobileServerFailureError-N3nGgdmg.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-DRMHmfXh.cjs";
20
- export { BuildSignedMobileRequestParams, GetMobileFeedParams, GetMobileNotificationPreferencesParams, GetMobilePublicProfileParams, GetMobileRegisteredDevicesParams, 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, MobileRegisteredDevice, MobileServerExecuteRequestType, MobileServerExecuteResult, MobileServerFailureError, MobileServerFailureResponse, MobileServerFeedMargin, MobileServerFeedResponse, MobileServerFeedTrade, MobileServerIdentity, MobileServerNotificationCategoryPreference, MobileServerNotificationPreferenceScope, MobileServerNotificationPreferences, MobileServerNotificationPreferencesResponse, MobileServerProfile, MobileServerProfileResponse, MobileServerPublicExecuteRequest, MobileServerPublicExecuteRequestByType, MobileServerPublicExecuteRequestType, MobileServerPublicQueryRequest, MobileServerPublicQueryRequestByType, MobileServerPublicQueryRequestType, MobileServerPublicQueryResponseByType, MobileServerPublicQuerySuccessResponse, MobileServerRegisteredDevice, MobileServerRegisteredDevicesResponse, 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-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 };
package/dist/index.d.ts CHANGED
@@ -1,20 +1,20 @@
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-DvPs5qs3.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 MobileRegisteredDevice, h as MobileRegisterExpoTokenParams, i as GetMobileRegisteredDevicesParams, 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-6utzUU-b.js";
3
- import { i as MobileSignedRequest, n as MobileSignedInner, r as MobileSignedInnerParams, t as BuildSignedMobileRequestParams } from "./types-CQE3HD2V.js";
4
- import { t as buildSignedMobileRequest } from "./buildSignedMobileRequest-qEC4gWaI.js";
5
- import { t as canonicalizeMobileInner } from "./canonicalize-wVdGejB1.js";
6
- import { t as MOBILE_EIP712_METHOD_BY_TYPE } from "./eip712MethodByType-DBUy4AdI.js";
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";
7
7
  import { t as getMobileNonce } from "./nonce-DCOrXXkQ.js";
8
- import { t as getMobilePayloadHash } from "./payloadHash-D1yTQSF4.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-DYTLrCpz.js";
10
- import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "./serverBaseTypes-CzRgwUvA.js";
11
- import { n as MobileServerPublicExecuteRequest, t as MobileServerExecuteResult } from "./serverExecuteTypes-CI3NBW2Z.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 MobileServerRegisteredDevicesResponse, t as MobileServerFeedResponse, u as MobileServerSignedQuerySuccessResponse } from "./serverQueryTypes-Cbjx0bIj.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";
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-MgYVBh5p.js";
16
+ import { t as MobileServerFailureError } from "./MobileServerFailureError-A2EcYe6Y.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-DpbZvJfL.js";
20
- export { BuildSignedMobileRequestParams, GetMobileFeedParams, GetMobileNotificationPreferencesParams, GetMobilePublicProfileParams, GetMobileRegisteredDevicesParams, 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, MobileRegisteredDevice, MobileServerExecuteRequestType, MobileServerExecuteResult, MobileServerFailureError, MobileServerFailureResponse, MobileServerFeedMargin, MobileServerFeedResponse, MobileServerFeedTrade, MobileServerIdentity, MobileServerNotificationCategoryPreference, MobileServerNotificationPreferenceScope, MobileServerNotificationPreferences, MobileServerNotificationPreferencesResponse, MobileServerProfile, MobileServerProfileResponse, MobileServerPublicExecuteRequest, MobileServerPublicExecuteRequestByType, MobileServerPublicExecuteRequestType, MobileServerPublicQueryRequest, MobileServerPublicQueryRequestByType, MobileServerPublicQueryRequestType, MobileServerPublicQueryResponseByType, MobileServerPublicQuerySuccessResponse, MobileServerRegisteredDevice, MobileServerRegisteredDevicesResponse, 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-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 };
@@ -1,4 +1,4 @@
1
- import { n as MobileSignedInner } from "./types-bNB98pYk.cjs";
1
+ import { n as MobileSignedInner } from "./types-BycRkqAj.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-B0tlFOK8.d.cts.map
13
+ //# sourceMappingURL=payloadHash-CgKXMvZU.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payloadHash-CgKXMvZU.d.cts","names":[],"sources":["../src/signing/src/signing/payloadHash.ts"],"mappings":";;;;;;AASA;;;iBAAgB,oBAAA,CAAqB,KAAA,EAAO,iBAAA,GAAoB,GAAG"}
@@ -1,4 +1,4 @@
1
- import { n as MobileSignedInner } from "./types-CQE3HD2V.js";
1
+ import { n as MobileSignedInner } from "./types-DNd9S0Rz.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-D1yTQSF4.d.ts.map
13
+ //# sourceMappingURL=payloadHash-yIWBW4Iq.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payloadHash-yIWBW4Iq.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 { o as MobileServerRequestType } from "./serverRequestTypes-DYTLrCpz.js";
1
+ import { o as MobileServerRequestType } from "./serverRequestTypes-w1r41ff7.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-CzRgwUvA.d.ts.map
25
+ //# sourceMappingURL=serverBaseTypes-ClQZqTAK.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"serverBaseTypes-CzRgwUvA.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-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,4 +1,4 @@
1
- import { o as MobileServerRequestType } from "./serverRequestTypes-CHDk6JwE.cjs";
1
+ import { o as MobileServerRequestType } from "./serverRequestTypes-Cw661qjM.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-DSRgU2Fb.d.cts.map
25
+ //# sourceMappingURL=serverBaseTypes-_a1pE464.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"serverBaseTypes-DSRgU2Fb.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-_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,5 +1,5 @@
1
- import { n as MobileServerPublicExecuteRequestByType, r as MobileServerPublicExecuteRequestType } from "./serverRequestTypes-DYTLrCpz.js";
2
- import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "./serverBaseTypes-CzRgwUvA.js";
1
+ import { n as MobileServerPublicExecuteRequestByType, r as MobileServerPublicExecuteRequestType } from "./serverRequestTypes-w1r41ff7.js";
2
+ import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "./serverBaseTypes-ClQZqTAK.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-CI3NBW2Z.d.ts.map
19
+ //# sourceMappingURL=serverExecuteTypes-BD8Awy8Q.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"serverExecuteTypes-CI3NBW2Z.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-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,5 +1,5 @@
1
- import { n as MobileServerPublicExecuteRequestByType, r as MobileServerPublicExecuteRequestType } from "./serverRequestTypes-CHDk6JwE.cjs";
2
- import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "./serverBaseTypes-DSRgU2Fb.cjs";
1
+ import { n as MobileServerPublicExecuteRequestByType, r as MobileServerPublicExecuteRequestType } from "./serverRequestTypes-Cw661qjM.cjs";
2
+ import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "./serverBaseTypes-_a1pE464.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-BCb6bUMP.d.cts.map
19
+ //# sourceMappingURL=serverExecuteTypes-CUla9jFj.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"serverExecuteTypes-BCb6bUMP.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-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"}
@@ -131,16 +131,6 @@ interface MobileServerNotificationPreferences {
131
131
  schema_version: 1;
132
132
  categories: MobileServerNotificationCategoryPreference[];
133
133
  }
134
- /**
135
- * Server-side registered push device shape (snake_case).
136
- */
137
- interface MobileServerRegisteredDevice {
138
- platform: MobileNotificationPlatform;
139
- locale: string | null;
140
- app_version: string | null;
141
- token_fingerprint_prefix: string;
142
- last_seen_at: number;
143
- }
144
134
  //#endregion
145
- export { MobileServerRegisteredDevice as _, 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 };
146
- //# sourceMappingURL=serverModelTypes-DvPs5qs3.d.ts.map
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
@@ -1 +1 @@
1
- {"version":3,"file":"serverModelTypes-D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 +131,6 @@ interface MobileServerNotificationPreferences {
131
131
  schema_version: 1;
132
132
  categories: MobileServerNotificationCategoryPreference[];
133
133
  }
134
- /**
135
- * Server-side registered push device shape (snake_case).
136
- */
137
- interface MobileServerRegisteredDevice {
138
- platform: MobileNotificationPlatform;
139
- locale: string | null;
140
- app_version: string | null;
141
- token_fingerprint_prefix: string;
142
- last_seen_at: number;
143
- }
144
134
  //#endregion
145
- export { MobileServerRegisteredDevice as _, 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 };
146
- //# sourceMappingURL=serverModelTypes-BYQcsRrx.d.cts.map
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
@@ -1 +1 @@
1
- {"version":3,"file":"serverModelTypes-BYQcsRrx.d.cts","names":[],"sources":["../src/types/src/types/serverModelTypes.ts"],"mappings":";;;;;;AAMA;KAAY,0BAAA;;;AAA0B;KAK1B,0BAAA;;;;AAA0B;UAYrB,mBAAA;EACf,UA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;;;AAA0B;KAK1B,0BAAA;;;;AAA0B;UAYrB,mBAAA;EACf,UAAA,EAAY,GAAG;EACf,QAAA;EACA,YAAA;EACA,YAAA;AAAA;;;;;UAOe,oBAAA;EACf,UAAA,EAAY,GAAG;EACf,QAAA;EACA,YAAA;EACA,YAAA;AAAA;;;;;;KAQU,gCAAA,GAAmC,WAAW;AAA1D;;;;AAAA,cAMa,qCAAA;AAAb;;;;AAAA,cASa,kCAAA;AAAb;;;AAAA,KAWY,6BAAA,WACF,kCAAkC;AANlC;AAKV;;;AALU,UAYO,uBAAA;EACf,SAAA,EAAW,gCAAA;EACX,MAAA,EAAQ,6BAA6B;AAAA;;;;;cAO1B,wBAAA;;;AAP0B;KAY3B,oBAAA,WAA+B,wBAAwB;;;;AALG;AAKtE;UAOiB,sBAAA;EACf,IAAA,EAAM,oBAAoB;EAC1B,kBAAA;AAAA;AAFF;;;;;AAAA,UAUiB,qBAAA;EARf;EAUA,YAAA,EAAc,GAAA;EACd,UAAA,EAAY,GAAA;EACZ,QAAA;EACA,YAAA;;EAEA,UAAA;EACA,UAAA;EAOQ;EALR,QAAA;EAMiC;EAJjC,QAAA;EAVA;EAYA,aAAA;EACA,MAAA,EAAQ,sBAAA;EACR,QAAA,EAAU,uBAAA;EAZV;EAcA,YAAA;EAXA;EAaA,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;;UAUiB,mCAAA;EAPgC;EAS/C,cAAA;EACA,UAAA,EAAY,0CAA0C;AAAA"}
@@ -1,6 +1,7 @@
1
- import { _ as MobileServerRegisteredDevice, d as MobileServerFeedTrade, f as MobileServerIdentity, g as MobileServerProfile, h as MobileServerNotificationPreferences } from "./serverModelTypes-BYQcsRrx.cjs";
2
- import { a as MobileServerPublicQueryRequestType, c as MobileServerSignedQueryRequestType, i as MobileServerPublicQueryRequestByType } from "./serverRequestTypes-CHDk6JwE.cjs";
3
- import { n as MobileServerSuccessResponse } from "./serverBaseTypes-DSRgU2Fb.cjs";
1
+ import { d as MobileServerFeedTrade, f as MobileServerIdentity, g as MobileServerProfile, h as MobileServerNotificationPreferences, l as MobileNotificationPlatform } from "./serverModelTypes-BIGPd52y.js";
2
+ import { a as MobileServerPublicQueryRequestType, c as MobileServerSignedQueryRequestType, i as MobileServerPublicQueryRequestByType } from "./serverRequestTypes-w1r41ff7.js";
3
+ import { n as MobileServerSuccessResponse } from "./serverBaseTypes-ClQZqTAK.js";
4
+ import { Hex } from "viem";
4
5
 
5
6
  //#region src/types/serverQueryTypes.d.ts
6
7
  /**
@@ -49,10 +50,16 @@ interface MobileServerNotificationPreferencesResponse {
49
50
  preferences: MobileServerNotificationPreferences;
50
51
  }
51
52
  /**
52
- * Payload of the signed `registered_devices` query success response.
53
+ * Payload of the `registered_wallet` public query success response. Inlined into the envelope rather than
54
+ * nested under a key, matching the backend's `RegisteredWalletResponse`.
53
55
  */
54
- interface MobileServerRegisteredDevicesResponse {
55
- devices: MobileServerRegisteredDevice[];
56
+ interface MobileServerRegisteredWalletResponse {
57
+ wallet: Hex;
58
+ platform: MobileNotificationPlatform;
59
+ locale: string | null;
60
+ app_version: string | null;
61
+ token_fingerprint_prefix: string;
62
+ last_seen_at: number;
56
63
  }
57
64
  /**
58
65
  * Success payloads for each unsigned `public_query`, keyed by request `type`. Counterpart to
@@ -65,6 +72,7 @@ interface MobileServerPublicQueryResponseByType {
65
72
  profile: MobileServerProfileResponse;
66
73
  feed: MobileServerFeedResponse;
67
74
  notification_preferences: MobileServerNotificationPreferencesResponse;
75
+ registered_wallet: MobileServerRegisteredWalletResponse;
68
76
  }
69
77
  /**
70
78
  * Success payloads for each signed `query`, keyed by request `type`. Counterpart to
@@ -74,7 +82,6 @@ interface MobileServerPublicQueryResponseByType {
74
82
  */
75
83
  interface MobileServerSignedQueryResponseByType {
76
84
  self_identity: MobileServerSelfIdentityResponse;
77
- registered_devices: MobileServerRegisteredDevicesResponse;
78
85
  }
79
86
  /**
80
87
  * Full success response for an unsigned `public_query`: the {@link MobileServerSuccessResponse} envelope with
@@ -88,5 +95,5 @@ type MobileServerPublicQuerySuccessResponse<T extends MobileServerPublicQueryReq
88
95
  */
89
96
  type MobileServerSignedQuerySuccessResponse<T extends MobileServerSignedQueryRequestType = MobileServerSignedQueryRequestType> = MobileServerSuccessResponse & MobileServerSignedQueryResponseByType[T];
90
97
  //#endregion
91
- export { MobileServerPublicQueryResponseByType as a, MobileServerSelfIdentityResponse as c, MobileServerUsernameAvailabilityResponse as d, MobileServerPublicQueryRequest as i, MobileServerSignedQueryResponseByType as l, MobileServerNotificationPreferencesResponse as n, MobileServerPublicQuerySuccessResponse as o, MobileServerProfileResponse as r, MobileServerRegisteredDevicesResponse as s, MobileServerFeedResponse as t, MobileServerSignedQuerySuccessResponse as u };
92
- //# sourceMappingURL=serverQueryTypes-9H6P1vJ5.d.cts.map
98
+ export { MobileServerPublicQueryResponseByType as a, MobileServerSelfIdentityResponse as c, MobileServerUsernameAvailabilityResponse as d, MobileServerPublicQueryRequest as i, MobileServerSignedQueryResponseByType as l, MobileServerNotificationPreferencesResponse as n, MobileServerPublicQuerySuccessResponse as o, MobileServerProfileResponse as r, MobileServerRegisteredWalletResponse as s, MobileServerFeedResponse as t, MobileServerSignedQuerySuccessResponse as u };
99
+ //# sourceMappingURL=serverQueryTypes-4J8qNQld.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serverQueryTypes-4J8qNQld.d.ts","names":[],"sources":["../src/types/src/types/serverQueryTypes.ts"],"mappings":";;;;;;;;AAkBA;KAAY,8BAAA,WACA,kCAAA,GACR,kCAAA,YAEI,kCAAA;EACJ,IAAA,EAAM,CAAA;AAAA,IACJ,oCAAA,CAAqC,CAAA,IACzC,CAAA;;;;UAKe,wCAAA;EACf,QAAA;EACA,SAAS;AAAA;;;;UAMM,2BAAA;EACf,OAAA,EAAS,mBAAmB;AAAA;;;;UAMb,wBAAA;EACf,MAAA,EAAQ,qBAAqB;EAhBd;;;;AAEN;EAoBT,WAAA;AAAA;;;AAb4B;AAM9B;;UAeiB,gCAAA;EACf,QAAA,EAAU,oBAAoB;AAAA;;;;UAMf,2CAAA;EACf,WAAA,EAAa,mCAAmC;AAAA;;;AAPlB;AAMhC;UAQiB,oCAAA;EACf,MAAA,EAAQ,GAAA;EACR,QAAA,EAAU,0BAA0B;EACpC,MAAA;EACA,WAAA;EACA,wBAAA;EACA,YAAA;AAAA;;;;;;;UASe,qCAAA;EACf,qBAAA,EAAuB,wCAAA;EACvB,OAAA,EAAS,2BAAA;EACT,IAAA,EAAM,wBAAA;EACN,wBAAA,EAA0B,2CAAA;EAC1B,iBAAA,EAAmB,oCAAA;AAAA;;;;;;;UASJ,qCAAA;EACf,aAAA,EAAe,gCAAgC;AAAA;;;;;;KAQrC,sCAAA,WACA,kCAAA,GACR,kCAAA,IACA,2BAAA,GAA8B,qCAAA,CAAsC,CAAA;;;;AArBf;KA2B7C,sCAAA,WACA,kCAAA,GACR,kCAAA,IACA,2BAAA,GAA8B,qCAAA,CAAsC,CAAA"}