@nadohq/mobile-client 0.36.0 → 0.37.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.
- package/README.md +19 -6
- package/dist/{MobileClient-D5TNTnLx.cjs → MobileClient-C9S_o_eC.cjs} +82 -12
- package/dist/MobileClient-C9S_o_eC.cjs.map +1 -0
- package/dist/MobileClient.cjs +1 -1
- package/dist/MobileClient.d.cts +64 -16
- package/dist/MobileClient.d.cts.map +1 -1
- package/dist/MobileClient.d.ts +64 -16
- package/dist/MobileClient.d.ts.map +1 -1
- package/dist/MobileClient.js +82 -12
- package/dist/MobileClient.js.map +1 -1
- package/dist/{MobileServerFailureError-CPFjwUBx.d.cts → MobileServerFailureError-CVK3aLOi.d.cts} +3 -3
- package/dist/{MobileServerFailureError-CPFjwUBx.d.cts.map → MobileServerFailureError-CVK3aLOi.d.cts.map} +1 -1
- package/dist/{MobileServerFailureError-Terv2Wzy.d.ts → MobileServerFailureError-D-76n3pS.d.ts} +3 -3
- package/dist/{MobileServerFailureError-Terv2Wzy.d.ts.map → MobileServerFailureError-D-76n3pS.d.ts.map} +1 -1
- package/dist/{buildSignedMobileRequest-BScnCGPF.d.ts → buildSignedMobileRequest-42meR4yV.d.ts} +2 -2
- package/dist/{buildSignedMobileRequest-BScnCGPF.d.ts.map → buildSignedMobileRequest-42meR4yV.d.ts.map} +1 -1
- package/dist/{buildSignedMobileRequest-CXfnhc-4.d.cts → buildSignedMobileRequest-BDxji7Vy.d.cts} +2 -2
- package/dist/{buildSignedMobileRequest-CXfnhc-4.d.cts.map → buildSignedMobileRequest-BDxji7Vy.d.cts.map} +1 -1
- package/dist/{canonicalize-CQ-pMYIt.d.ts → canonicalize-BebHhHcF.d.ts} +2 -2
- package/dist/canonicalize-BebHhHcF.d.ts.map +1 -0
- package/dist/{canonicalize-hzhboB-C.d.cts → canonicalize-CIDJLLgg.d.cts} +2 -2
- package/dist/canonicalize-CIDJLLgg.d.cts.map +1 -0
- package/dist/{clientTypes-BwakovWk.d.cts → clientTypes-2I3x4TTt.d.ts} +142 -14
- package/dist/clientTypes-2I3x4TTt.d.ts.map +1 -0
- package/dist/{clientTypes-D-o1_2Yc.d.ts → clientTypes-tLld8E6J.d.cts} +142 -14
- package/dist/clientTypes-tLld8E6J.d.cts.map +1 -0
- package/dist/dataMappers.cjs +65 -6
- package/dist/dataMappers.cjs.map +1 -1
- package/dist/dataMappers.d.cts +21 -5
- package/dist/dataMappers.d.cts.map +1 -1
- package/dist/dataMappers.d.ts +21 -5
- package/dist/dataMappers.d.ts.map +1 -1
- package/dist/dataMappers.js +62 -7
- package/dist/dataMappers.js.map +1 -1
- package/dist/{eip712MethodByType-3aiJkrHj.d.cts → eip712MethodByType-2-vyN5SU.d.cts} +2 -2
- package/dist/eip712MethodByType-2-vyN5SU.d.cts.map +1 -0
- package/dist/{eip712MethodByType-zNvZukU7.d.ts → eip712MethodByType-CAVpvZoS.d.ts} +2 -2
- package/dist/eip712MethodByType-CAVpvZoS.d.ts.map +1 -0
- package/dist/follow-Bh3UmXMc.d.cts +23 -0
- package/dist/follow-Bh3UmXMc.d.cts.map +1 -0
- package/dist/follow-DjkQm1vR.d.ts +23 -0
- package/dist/follow-DjkQm1vR.d.ts.map +1 -0
- package/dist/index.cjs +6 -1
- package/dist/index.d.cts +17 -16
- package/dist/index.d.ts +17 -16
- package/dist/index.js +2 -1
- package/dist/{mobileErrorCodes-CuQ5lyBV.d.ts → mobileErrorCodes-B3eR6t4b.d.ts} +8 -2
- package/dist/mobileErrorCodes-B3eR6t4b.d.ts.map +1 -0
- package/dist/{mobileErrorCodes-D_SyBm0k.d.cts → mobileErrorCodes-DkzBW4v3.d.cts} +8 -2
- package/dist/mobileErrorCodes-DkzBW4v3.d.cts.map +1 -0
- package/dist/{patterns-B5gi7OfV.d.ts → patterns-C-aUAnKl.d.ts} +1 -1
- package/dist/patterns-C-aUAnKl.d.ts.map +1 -0
- package/dist/{patterns-Db6fgz8i.d.cts → patterns-DS8P5LH0.d.cts} +1 -1
- package/dist/patterns-DS8P5LH0.d.cts.map +1 -0
- package/dist/{payloadHash-DVkEt-Rg.d.cts → payloadHash-BVPYKdk4.d.cts} +2 -2
- package/dist/payloadHash-BVPYKdk4.d.cts.map +1 -0
- package/dist/{payloadHash-BxL26uwq.d.ts → payloadHash-DMqE5aMo.d.ts} +2 -2
- package/dist/payloadHash-DMqE5aMo.d.ts.map +1 -0
- package/dist/{serverBaseTypes-C8KjE9Fm.d.cts → serverBaseTypes-BybrVE6L.d.cts} +2 -2
- package/dist/{serverBaseTypes-C8KjE9Fm.d.cts.map → serverBaseTypes-BybrVE6L.d.cts.map} +1 -1
- package/dist/{serverBaseTypes-B_KHFDab.d.ts → serverBaseTypes-DPB1vEvv.d.ts} +2 -2
- package/dist/{serverBaseTypes-B_KHFDab.d.ts.map → serverBaseTypes-DPB1vEvv.d.ts.map} +1 -1
- package/dist/serverExecuteTypes-DoR0InCd.d.cts +50 -0
- package/dist/serverExecuteTypes-DoR0InCd.d.cts.map +1 -0
- package/dist/serverExecuteTypes-ih4Xbr3J.d.ts +50 -0
- package/dist/serverExecuteTypes-ih4Xbr3J.d.ts.map +1 -0
- package/dist/{serverModelTypes-_cX99seo.d.ts → serverModelTypes-DV-eARP8.d.ts} +54 -10
- package/dist/serverModelTypes-DV-eARP8.d.ts.map +1 -0
- package/dist/{serverModelTypes-CwgibK-l.d.cts → serverModelTypes-KSm0CAcF.d.cts} +54 -10
- package/dist/serverModelTypes-KSm0CAcF.d.cts.map +1 -0
- package/dist/{serverQueryTypes-NIrPm2Sl.d.ts → serverQueryTypes-B9OOpiJB.d.cts} +32 -9
- package/dist/serverQueryTypes-B9OOpiJB.d.cts.map +1 -0
- package/dist/{serverQueryTypes-DwE1iJ9f.d.cts → serverQueryTypes-LygPrZn7.d.ts} +32 -9
- package/dist/serverQueryTypes-LygPrZn7.d.ts.map +1 -0
- package/dist/serverRequestTypes-BDXIPjtw.d.ts +101 -0
- package/dist/serverRequestTypes-BDXIPjtw.d.ts.map +1 -0
- package/dist/serverRequestTypes-q4xTJHk0.d.cts +101 -0
- package/dist/serverRequestTypes-q4xTJHk0.d.cts.map +1 -0
- package/dist/{serverResponseGuards-Cep5s7j5.d.ts → serverResponseGuards-BcdkKV30.d.ts} +2 -2
- package/dist/{serverResponseGuards-Cep5s7j5.d.ts.map → serverResponseGuards-BcdkKV30.d.ts.map} +1 -1
- package/dist/{serverResponseGuards-Dxt9_aGh.d.cts → serverResponseGuards-k6xK1bZ1.d.cts} +2 -2
- package/dist/{serverResponseGuards-Dxt9_aGh.d.cts.map → serverResponseGuards-k6xK1bZ1.d.cts.map} +1 -1
- package/dist/signing/buildSignedMobileRequest.cjs +1 -1
- package/dist/signing/buildSignedMobileRequest.d.cts +1 -1
- package/dist/signing/buildSignedMobileRequest.d.ts +1 -1
- package/dist/signing/canonicalize.cjs +17 -0
- package/dist/signing/canonicalize.cjs.map +1 -1
- package/dist/signing/canonicalize.d.cts +1 -1
- package/dist/signing/canonicalize.d.ts +1 -1
- package/dist/signing/canonicalize.js +17 -0
- package/dist/signing/canonicalize.js.map +1 -1
- package/dist/signing/eip712MethodByType.cjs +4 -1
- package/dist/signing/eip712MethodByType.cjs.map +1 -1
- package/dist/signing/eip712MethodByType.d.cts +1 -1
- package/dist/signing/eip712MethodByType.d.ts +1 -1
- package/dist/signing/eip712MethodByType.js +4 -1
- package/dist/signing/eip712MethodByType.js.map +1 -1
- package/dist/signing/index.d.cts +6 -6
- package/dist/signing/index.d.ts +6 -6
- package/dist/signing/payloadHash.cjs +1 -1
- package/dist/signing/payloadHash.d.cts +1 -1
- package/dist/signing/payloadHash.d.ts +1 -1
- package/dist/signing/types.d.cts +2 -2
- package/dist/signing/types.d.ts +2 -2
- package/dist/types/MobileServerFailureError.cjs +1 -1
- package/dist/types/MobileServerFailureError.d.cts +1 -1
- package/dist/types/MobileServerFailureError.d.ts +1 -1
- package/dist/types/clientTypes.d.cts +2 -2
- package/dist/types/clientTypes.d.ts +2 -2
- package/dist/types/index.d.cts +9 -9
- package/dist/types/index.d.ts +9 -9
- package/dist/types/mobileErrorCodes.cjs +13 -1
- package/dist/types/mobileErrorCodes.cjs.map +1 -1
- package/dist/types/mobileErrorCodes.d.cts +1 -1
- package/dist/types/mobileErrorCodes.d.ts +1 -1
- package/dist/types/mobileErrorCodes.js +12 -0
- package/dist/types/mobileErrorCodes.js.map +1 -1
- package/dist/types/serverBaseTypes.d.cts +1 -1
- package/dist/types/serverBaseTypes.d.ts +1 -1
- package/dist/types/serverExecuteTypes.d.cts +2 -2
- package/dist/types/serverExecuteTypes.d.ts +2 -2
- package/dist/types/serverModelTypes.cjs.map +1 -1
- package/dist/types/serverModelTypes.d.cts +2 -2
- package/dist/types/serverModelTypes.d.ts +2 -2
- package/dist/types/serverModelTypes.js.map +1 -1
- package/dist/types/serverQueryTypes.d.cts +2 -2
- package/dist/types/serverQueryTypes.d.ts +2 -2
- package/dist/types/serverRequestTypes.d.cts +2 -2
- package/dist/types/serverRequestTypes.d.ts +2 -2
- package/dist/{types-47IPsDyA.d.cts → types-B8lDIhBP.d.ts} +30 -7
- package/dist/types-B8lDIhBP.d.ts.map +1 -0
- package/dist/{types-D5kFJzEX.d.ts → types-CClB00EN.d.cts} +30 -7
- package/dist/types-CClB00EN.d.cts.map +1 -0
- package/dist/utils/follow.cjs +28 -0
- package/dist/utils/follow.cjs.map +1 -0
- package/dist/utils/follow.d.cts +2 -0
- package/dist/utils/follow.d.ts +2 -0
- package/dist/utils/follow.js +24 -0
- package/dist/utils/follow.js.map +1 -0
- package/dist/utils/index.cjs +5 -0
- package/dist/utils/index.d.cts +4 -3
- package/dist/utils/index.d.ts +4 -3
- package/dist/utils/index.js +2 -1
- package/dist/utils/patterns.d.cts +1 -1
- package/dist/utils/patterns.d.ts +1 -1
- package/dist/utils/serverResponseGuards.d.cts +1 -1
- package/dist/utils/serverResponseGuards.d.ts +1 -1
- package/package.json +3 -3
- package/src/MobileClient.ts +138 -21
- package/src/dataMappers.ts +89 -5
- package/src/signing/canonicalize.ts +20 -0
- package/src/signing/eip712MethodByType.ts +3 -0
- package/src/signing/signing.test.ts +58 -4
- package/src/signing/types.ts +34 -1
- package/src/types/clientTypes.ts +148 -11
- package/src/types/mobileErrorCodes.ts +12 -0
- package/src/types/serverExecuteTypes.ts +40 -2
- package/src/types/serverModelTypes.ts +55 -8
- package/src/types/serverQueryTypes.ts +35 -4
- package/src/types/serverRequestTypes.ts +41 -6
- package/src/utils/follow.ts +22 -0
- package/src/utils/index.ts +1 -0
- package/dist/MobileClient-D5TNTnLx.cjs.map +0 -1
- package/dist/canonicalize-CQ-pMYIt.d.ts.map +0 -1
- package/dist/canonicalize-hzhboB-C.d.cts.map +0 -1
- package/dist/clientTypes-BwakovWk.d.cts.map +0 -1
- package/dist/clientTypes-D-o1_2Yc.d.ts.map +0 -1
- package/dist/eip712MethodByType-3aiJkrHj.d.cts.map +0 -1
- package/dist/eip712MethodByType-zNvZukU7.d.ts.map +0 -1
- package/dist/mobileErrorCodes-CuQ5lyBV.d.ts.map +0 -1
- package/dist/mobileErrorCodes-D_SyBm0k.d.cts.map +0 -1
- package/dist/patterns-B5gi7OfV.d.ts.map +0 -1
- package/dist/patterns-Db6fgz8i.d.cts.map +0 -1
- package/dist/payloadHash-BxL26uwq.d.ts.map +0 -1
- package/dist/payloadHash-DVkEt-Rg.d.cts.map +0 -1
- package/dist/serverExecuteTypes-Cb5v7y0A.d.cts +0 -19
- package/dist/serverExecuteTypes-Cb5v7y0A.d.cts.map +0 -1
- package/dist/serverExecuteTypes-GFjZj_DC.d.ts +0 -19
- package/dist/serverExecuteTypes-GFjZj_DC.d.ts.map +0 -1
- package/dist/serverModelTypes-CwgibK-l.d.cts.map +0 -1
- package/dist/serverModelTypes-_cX99seo.d.ts.map +0 -1
- package/dist/serverQueryTypes-DwE1iJ9f.d.cts.map +0 -1
- package/dist/serverQueryTypes-NIrPm2Sl.d.ts.map +0 -1
- package/dist/serverRequestTypes-516zXnQ6.d.ts +0 -72
- package/dist/serverRequestTypes-516zXnQ6.d.ts.map +0 -1
- package/dist/serverRequestTypes-GAtVYIda.d.cts +0 -72
- package/dist/serverRequestTypes-GAtVYIda.d.cts.map +0 -1
- package/dist/types-47IPsDyA.d.cts.map +0 -1
- package/dist/types-D5kFJzEX.d.ts.map +0 -1
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
//#region src/utils/follow.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Maximum Followers/Following page size the backend accepts. Requests outside 1–50 fail with
|
|
4
|
+
* `INVALID_FOLLOW_LIMIT`.
|
|
5
|
+
*/
|
|
6
|
+
declare const MOBILE_FOLLOW_LIST_MAX_PAGE_SIZE = 50;
|
|
7
|
+
/**
|
|
8
|
+
* Page size the backend uses when `limit` is omitted from a Followers or Following request.
|
|
9
|
+
*/
|
|
10
|
+
declare const MOBILE_FOLLOW_LIST_DEFAULT_PAGE_SIZE = 25;
|
|
11
|
+
/**
|
|
12
|
+
* Number of Followed By preview identities a follow summary carries. Fixed by the backend rather than
|
|
13
|
+
* requested, so use it to size the preview UI; `followedByCount` still reports the full intersection.
|
|
14
|
+
*/
|
|
15
|
+
declare const MOBILE_FOLLOWED_BY_PREVIEW_LIMIT = 2;
|
|
16
|
+
/**
|
|
17
|
+
* Maximum number of subaccounts a single profiles lookup accepts. An empty list, a duplicate, or more than
|
|
18
|
+
* this many fail with `INVALID_PROFILES_REQUEST`.
|
|
19
|
+
*/
|
|
20
|
+
declare const MOBILE_PROFILES_MAX_BATCH_SIZE = 25;
|
|
21
|
+
//#endregion
|
|
22
|
+
export { MOBILE_PROFILES_MAX_BATCH_SIZE as i, MOBILE_FOLLOW_LIST_DEFAULT_PAGE_SIZE as n, MOBILE_FOLLOW_LIST_MAX_PAGE_SIZE as r, MOBILE_FOLLOWED_BY_PREVIEW_LIMIT as t };
|
|
23
|
+
//# sourceMappingURL=follow-Bh3UmXMc.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"follow-Bh3UmXMc.d.cts","names":[],"sources":["../src/utils/src/utils/follow.ts"],"mappings":";;AAIA;;;cAAa,gCAAA;AAAgC;AAK7C;;AAL6C,cAKhC,oCAAA;;AAAoC;AAMjD;;cAAa,gCAAA;;AAAgC;AAM7C;;cAAa,8BAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
//#region src/utils/follow.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Maximum Followers/Following page size the backend accepts. Requests outside 1–50 fail with
|
|
4
|
+
* `INVALID_FOLLOW_LIMIT`.
|
|
5
|
+
*/
|
|
6
|
+
declare const MOBILE_FOLLOW_LIST_MAX_PAGE_SIZE = 50;
|
|
7
|
+
/**
|
|
8
|
+
* Page size the backend uses when `limit` is omitted from a Followers or Following request.
|
|
9
|
+
*/
|
|
10
|
+
declare const MOBILE_FOLLOW_LIST_DEFAULT_PAGE_SIZE = 25;
|
|
11
|
+
/**
|
|
12
|
+
* Number of Followed By preview identities a follow summary carries. Fixed by the backend rather than
|
|
13
|
+
* requested, so use it to size the preview UI; `followedByCount` still reports the full intersection.
|
|
14
|
+
*/
|
|
15
|
+
declare const MOBILE_FOLLOWED_BY_PREVIEW_LIMIT = 2;
|
|
16
|
+
/**
|
|
17
|
+
* Maximum number of subaccounts a single profiles lookup accepts. An empty list, a duplicate, or more than
|
|
18
|
+
* this many fail with `INVALID_PROFILES_REQUEST`.
|
|
19
|
+
*/
|
|
20
|
+
declare const MOBILE_PROFILES_MAX_BATCH_SIZE = 25;
|
|
21
|
+
//#endregion
|
|
22
|
+
export { MOBILE_PROFILES_MAX_BATCH_SIZE as i, MOBILE_FOLLOW_LIST_DEFAULT_PAGE_SIZE as n, MOBILE_FOLLOW_LIST_MAX_PAGE_SIZE as r, MOBILE_FOLLOWED_BY_PREVIEW_LIMIT as t };
|
|
23
|
+
//# sourceMappingURL=follow-DjkQm1vR.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"follow-DjkQm1vR.d.ts","names":[],"sources":["../src/utils/src/utils/follow.ts"],"mappings":";;AAIA;;;cAAa,gCAAA;AAAgC;AAK7C;;AAL6C,cAKhC,oCAAA;;AAAoC;AAMjD;;cAAa,gCAAA;;AAAgC;AAM7C;;cAAa,8BAAA"}
|
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_MobileClient = require("./MobileClient-
|
|
2
|
+
const require_MobileClient = require("./MobileClient-C9S_o_eC.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");
|
|
@@ -13,6 +13,7 @@ const require_types_mobileErrorCodes = require("./types/mobileErrorCodes.cjs");
|
|
|
13
13
|
const require_types_serverModelTypes = require("./types/serverModelTypes.cjs");
|
|
14
14
|
require("./types/index.cjs");
|
|
15
15
|
const require_utils_feed = require("./utils/feed.cjs");
|
|
16
|
+
const require_utils_follow = require("./utils/follow.cjs");
|
|
16
17
|
const require_utils_patterns = require("./utils/patterns.cjs");
|
|
17
18
|
require("./utils/index.cjs");
|
|
18
19
|
exports.MOBILE_CLIENT_ENDPOINTS = require_endpoints.MOBILE_CLIENT_ENDPOINTS;
|
|
@@ -24,6 +25,10 @@ exports.MOBILE_FEED_MAX_PAGE_SIZE = require_utils_feed.MOBILE_FEED_MAX_PAGE_SIZE
|
|
|
24
25
|
exports.MOBILE_FEED_MIN_NOTIONAL_FLOOR = require_utils_feed.MOBILE_FEED_MIN_NOTIONAL_FLOOR;
|
|
25
26
|
exports.MOBILE_FEED_TRADE_POSITION_DIRECTIONS = require_types_serverModelTypes.MOBILE_FEED_TRADE_POSITION_DIRECTIONS;
|
|
26
27
|
exports.MOBILE_FEED_TRADE_POSITION_EFFECTS = require_types_serverModelTypes.MOBILE_FEED_TRADE_POSITION_EFFECTS;
|
|
28
|
+
exports.MOBILE_FOLLOWED_BY_PREVIEW_LIMIT = require_utils_follow.MOBILE_FOLLOWED_BY_PREVIEW_LIMIT;
|
|
29
|
+
exports.MOBILE_FOLLOW_LIST_DEFAULT_PAGE_SIZE = require_utils_follow.MOBILE_FOLLOW_LIST_DEFAULT_PAGE_SIZE;
|
|
30
|
+
exports.MOBILE_FOLLOW_LIST_MAX_PAGE_SIZE = require_utils_follow.MOBILE_FOLLOW_LIST_MAX_PAGE_SIZE;
|
|
31
|
+
exports.MOBILE_PROFILES_MAX_BATCH_SIZE = require_utils_follow.MOBILE_PROFILES_MAX_BATCH_SIZE;
|
|
27
32
|
exports.MobileClient = require_MobileClient.MobileClient;
|
|
28
33
|
exports.MobileServerFailureError = require_types_MobileServerFailureError.MobileServerFailureError;
|
|
29
34
|
exports.buildSignedMobileRequest = require_signing_buildSignedMobileRequest.buildSignedMobileRequest;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import { a as MobileFeedTradePosition, c as MobileNotificationCategory, d as MobileServerFeedTrade, f as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { t as buildSignedMobileRequest } from "./buildSignedMobileRequest-
|
|
5
|
-
import { t as canonicalizeMobileInner } from "./canonicalize-
|
|
6
|
-
import { t as MOBILE_EIP712_METHOD_BY_TYPE } from "./eip712MethodByType-
|
|
1
|
+
import { _ as MobileServerNotificationPreferences, a as MobileFeedTradePosition, c as MobileNotificationCategory, d as MobileServerFeedTrade, f as MobileServerFollowListAccount, g as MobileServerNotificationPreferenceScope, h as MobileServerNotificationCategoryPreference, i as MobileFeedMarginMode, l as MobileNotificationPlatform, m as MobileServerIdentitySummary, n as MOBILE_FEED_TRADE_POSITION_DIRECTIONS, o as MobileFeedTradePositionDirection, p as MobileServerFollowSummary, r as MOBILE_FEED_TRADE_POSITION_EFFECTS, s as MobileFeedTradePositionEffect, t as MOBILE_FEED_MARGIN_MODES, u as MobileServerFeedMargin, v as MobileServerProfile } from "./serverModelTypes-KSm0CAcF.cjs";
|
|
2
|
+
import { A as MobileUpdateNotificationPreferencesParams, C as MobileRegisterExpoTokenParams, D as MobileSetUsernameParams, E as MobileSetPrivateModeParams, M as MobileWithExpoTokenParams, O as MobileSignedRequestParams, S as MobilePublicProfile, T as MobileSetFollowParams, _ as MobileIdentitySummary, a as GetMobileNotificationPreferencesParams, b as MobileNotificationPreferences, c as GetMobileUsernameAvailabilityParams, d as MobileFeedTrade, f as MobileFollowListAccount, g as MobileFollowSummary, h as MobileFollowRequestParams, i as GetMobileFollowingParams, j as MobileUsernameAvailability, k as MobileUnregisterExpoTokenParams, l as MobileFeedMargin, m as MobileFollowMutationResult, n as GetMobileFollowListParams, o as GetMobileProfilesParams, p as MobileFollowListPage, r as GetMobileFollowersParams, s as GetMobileRegisteredWalletParams, t as GetMobileFeedParams, u as MobileFeedPage, v as MobileNotificationCategoryPreference, w as MobileRegisteredWallet, x as MobileProfilesInclude, y as MobileNotificationPreferenceScope } from "./clientTypes-tLld8E6J.cjs";
|
|
3
|
+
import { a as MobileSignedRequest, i as MobileSignedInnerParams, n as MobileSignedInner, r as MobileSignedInnerByType, t as BuildSignedMobileRequestParams } from "./types-CClB00EN.cjs";
|
|
4
|
+
import { t as buildSignedMobileRequest } from "./buildSignedMobileRequest-BDxji7Vy.cjs";
|
|
5
|
+
import { t as canonicalizeMobileInner } from "./canonicalize-CIDJLLgg.cjs";
|
|
6
|
+
import { t as MOBILE_EIP712_METHOD_BY_TYPE } from "./eip712MethodByType-2-vyN5SU.cjs";
|
|
7
7
|
import { t as getMobileNonce } from "./nonce-zGyisRlj.cjs";
|
|
8
|
-
import { t as getMobilePayloadHash } from "./payloadHash-
|
|
9
|
-
import { a as
|
|
10
|
-
import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "./serverBaseTypes-
|
|
11
|
-
import { n as MobileServerPublicExecuteRequest,
|
|
12
|
-
import { a as
|
|
8
|
+
import { t as getMobilePayloadHash } from "./payloadHash-BVPYKdk4.cjs";
|
|
9
|
+
import { a as MobileServerPublicQueryRequestByType, c as MobileServerSignedQueryRequestType, i as MobileServerPublicExecuteRequestType, n as MobileServerProfilesInclude, o as MobileServerPublicQueryRequestType, r as MobileServerPublicExecuteRequestByType, s as MobileServerRequestType, t as MobileServerExecuteRequestType } from "./serverRequestTypes-q4xTJHk0.cjs";
|
|
10
|
+
import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "./serverBaseTypes-BybrVE6L.cjs";
|
|
11
|
+
import { a as MobileServerFollowMutationResponse, i as MobileServerExecuteSuccessResponse, n as MobileServerExecuteResponseByType, o as MobileServerPublicExecuteRequest, r as MobileServerExecuteResult, t as MobileServerEmptyExecuteResponse } from "./serverExecuteTypes-DoR0InCd.cjs";
|
|
12
|
+
import { a as MobileServerPublicQueryRequest, c as MobileServerRegisteredWalletResponse, d as MobileServerUsernameAvailabilityResponse, i as MobileServerProfilesResponse, l as MobileServerSignedQueryResponseByType, n as MobileServerFollowListResponse, o as MobileServerPublicQueryResponseByType, r as MobileServerNotificationPreferencesResponse, s as MobileServerPublicQuerySuccessResponse, t as MobileServerFeedResponse, u as MobileServerSignedQuerySuccessResponse } from "./serverQueryTypes-B9OOpiJB.cjs";
|
|
13
13
|
import { MobileClient, MobileClientOpts } from "./MobileClient.cjs";
|
|
14
14
|
import { MOBILE_CLIENT_ENDPOINTS } from "./endpoints.cjs";
|
|
15
|
-
import { n as MobileErrorCode, t as MOBILE_ERROR_CODES } from "./mobileErrorCodes-
|
|
16
|
-
import { t as MobileServerFailureError } from "./MobileServerFailureError-
|
|
15
|
+
import { n as MobileErrorCode, t as MOBILE_ERROR_CODES } from "./mobileErrorCodes-DkzBW4v3.cjs";
|
|
16
|
+
import { t as MobileServerFailureError } from "./MobileServerFailureError-CVK3aLOi.cjs";
|
|
17
17
|
import { n as MOBILE_FEED_MIN_NOTIONAL_FLOOR, t as MOBILE_FEED_MAX_PAGE_SIZE } from "./feed-CBIwOhTO.cjs";
|
|
18
|
-
import { t as
|
|
19
|
-
import {
|
|
20
|
-
|
|
18
|
+
import { i as MOBILE_PROFILES_MAX_BATCH_SIZE, n as MOBILE_FOLLOW_LIST_DEFAULT_PAGE_SIZE, r as MOBILE_FOLLOW_LIST_MAX_PAGE_SIZE, t as MOBILE_FOLLOWED_BY_PREVIEW_LIMIT } from "./follow-Bh3UmXMc.cjs";
|
|
19
|
+
import { t as MOBILE_DISPLAY_NAME_PATTERN } from "./patterns-DS8P5LH0.cjs";
|
|
20
|
+
import { n as isMobileServerSuccessResponse, t as isMobileServerFailureResponse } from "./serverResponseGuards-k6xK1bZ1.cjs";
|
|
21
|
+
export { BuildSignedMobileRequestParams, GetMobileFeedParams, GetMobileFollowListParams, GetMobileFollowersParams, GetMobileFollowingParams, GetMobileNotificationPreferencesParams, GetMobileProfilesParams, GetMobileRegisteredWalletParams, GetMobileUsernameAvailabilityParams, MOBILE_CLIENT_ENDPOINTS, MOBILE_DISPLAY_NAME_PATTERN, MOBILE_EIP712_METHOD_BY_TYPE, MOBILE_ERROR_CODES, MOBILE_FEED_MARGIN_MODES, MOBILE_FEED_MAX_PAGE_SIZE, MOBILE_FEED_MIN_NOTIONAL_FLOOR, MOBILE_FEED_TRADE_POSITION_DIRECTIONS, MOBILE_FEED_TRADE_POSITION_EFFECTS, MOBILE_FOLLOWED_BY_PREVIEW_LIMIT, MOBILE_FOLLOW_LIST_DEFAULT_PAGE_SIZE, MOBILE_FOLLOW_LIST_MAX_PAGE_SIZE, MOBILE_PROFILES_MAX_BATCH_SIZE, MobileClient, MobileClientOpts, MobileErrorCode, MobileFeedMargin, MobileFeedMarginMode, MobileFeedPage, MobileFeedTrade, MobileFeedTradePosition, MobileFeedTradePositionDirection, MobileFeedTradePositionEffect, MobileFollowListAccount, MobileFollowListPage, MobileFollowMutationResult, MobileFollowRequestParams, MobileFollowSummary, MobileIdentitySummary, MobileNotificationCategory, MobileNotificationCategoryPreference, MobileNotificationPlatform, MobileNotificationPreferenceScope, MobileNotificationPreferences, MobileProfilesInclude, MobilePublicProfile, MobileRegisterExpoTokenParams, MobileRegisteredWallet, MobileServerEmptyExecuteResponse, MobileServerExecuteRequestType, MobileServerExecuteResponseByType, MobileServerExecuteResult, MobileServerExecuteSuccessResponse, MobileServerFailureError, MobileServerFailureResponse, MobileServerFeedMargin, MobileServerFeedResponse, MobileServerFeedTrade, MobileServerFollowListAccount, MobileServerFollowListResponse, MobileServerFollowMutationResponse, MobileServerFollowSummary, MobileServerIdentitySummary, MobileServerNotificationCategoryPreference, MobileServerNotificationPreferenceScope, MobileServerNotificationPreferences, MobileServerNotificationPreferencesResponse, MobileServerProfile, MobileServerProfilesInclude, MobileServerProfilesResponse, MobileServerPublicExecuteRequest, MobileServerPublicExecuteRequestByType, MobileServerPublicExecuteRequestType, MobileServerPublicQueryRequest, MobileServerPublicQueryRequestByType, MobileServerPublicQueryRequestType, MobileServerPublicQueryResponseByType, MobileServerPublicQuerySuccessResponse, MobileServerRegisteredWalletResponse, MobileServerRequestType, MobileServerSignedQueryRequestType, MobileServerSignedQueryResponseByType, MobileServerSignedQuerySuccessResponse, MobileServerSuccessResponse, MobileServerUsernameAvailabilityResponse, MobileSetFollowParams, MobileSetPrivateModeParams, MobileSetUsernameParams, MobileSignedInner, MobileSignedInnerByType, MobileSignedInnerParams, MobileSignedRequest, MobileSignedRequestParams, MobileUnregisterExpoTokenParams, MobileUpdateNotificationPreferencesParams, MobileUsernameAvailability, MobileWithExpoTokenParams, buildSignedMobileRequest, canonicalizeMobileInner, getMobileNonce, getMobilePayloadHash, isMobileServerFailureResponse, isMobileServerSuccessResponse };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import { a as MobileFeedTradePosition, c as MobileNotificationCategory, d as MobileServerFeedTrade, f as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { t as buildSignedMobileRequest } from "./buildSignedMobileRequest-
|
|
5
|
-
import { t as canonicalizeMobileInner } from "./canonicalize-
|
|
6
|
-
import { t as MOBILE_EIP712_METHOD_BY_TYPE } from "./eip712MethodByType-
|
|
1
|
+
import { _ as MobileServerNotificationPreferences, a as MobileFeedTradePosition, c as MobileNotificationCategory, d as MobileServerFeedTrade, f as MobileServerFollowListAccount, g as MobileServerNotificationPreferenceScope, h as MobileServerNotificationCategoryPreference, i as MobileFeedMarginMode, l as MobileNotificationPlatform, m as MobileServerIdentitySummary, n as MOBILE_FEED_TRADE_POSITION_DIRECTIONS, o as MobileFeedTradePositionDirection, p as MobileServerFollowSummary, r as MOBILE_FEED_TRADE_POSITION_EFFECTS, s as MobileFeedTradePositionEffect, t as MOBILE_FEED_MARGIN_MODES, u as MobileServerFeedMargin, v as MobileServerProfile } from "./serverModelTypes-DV-eARP8.js";
|
|
2
|
+
import { A as MobileUpdateNotificationPreferencesParams, C as MobileRegisterExpoTokenParams, D as MobileSetUsernameParams, E as MobileSetPrivateModeParams, M as MobileWithExpoTokenParams, O as MobileSignedRequestParams, S as MobilePublicProfile, T as MobileSetFollowParams, _ as MobileIdentitySummary, a as GetMobileNotificationPreferencesParams, b as MobileNotificationPreferences, c as GetMobileUsernameAvailabilityParams, d as MobileFeedTrade, f as MobileFollowListAccount, g as MobileFollowSummary, h as MobileFollowRequestParams, i as GetMobileFollowingParams, j as MobileUsernameAvailability, k as MobileUnregisterExpoTokenParams, l as MobileFeedMargin, m as MobileFollowMutationResult, n as GetMobileFollowListParams, o as GetMobileProfilesParams, p as MobileFollowListPage, r as GetMobileFollowersParams, s as GetMobileRegisteredWalletParams, t as GetMobileFeedParams, u as MobileFeedPage, v as MobileNotificationCategoryPreference, w as MobileRegisteredWallet, x as MobileProfilesInclude, y as MobileNotificationPreferenceScope } from "./clientTypes-2I3x4TTt.js";
|
|
3
|
+
import { a as MobileSignedRequest, i as MobileSignedInnerParams, n as MobileSignedInner, r as MobileSignedInnerByType, t as BuildSignedMobileRequestParams } from "./types-B8lDIhBP.js";
|
|
4
|
+
import { t as buildSignedMobileRequest } from "./buildSignedMobileRequest-42meR4yV.js";
|
|
5
|
+
import { t as canonicalizeMobileInner } from "./canonicalize-BebHhHcF.js";
|
|
6
|
+
import { t as MOBILE_EIP712_METHOD_BY_TYPE } from "./eip712MethodByType-CAVpvZoS.js";
|
|
7
7
|
import { t as getMobileNonce } from "./nonce-DCOrXXkQ.js";
|
|
8
|
-
import { t as getMobilePayloadHash } from "./payloadHash-
|
|
9
|
-
import { a as
|
|
10
|
-
import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "./serverBaseTypes-
|
|
11
|
-
import { n as MobileServerPublicExecuteRequest,
|
|
12
|
-
import { a as
|
|
8
|
+
import { t as getMobilePayloadHash } from "./payloadHash-DMqE5aMo.js";
|
|
9
|
+
import { a as MobileServerPublicQueryRequestByType, c as MobileServerSignedQueryRequestType, i as MobileServerPublicExecuteRequestType, n as MobileServerProfilesInclude, o as MobileServerPublicQueryRequestType, r as MobileServerPublicExecuteRequestByType, s as MobileServerRequestType, t as MobileServerExecuteRequestType } from "./serverRequestTypes-BDXIPjtw.js";
|
|
10
|
+
import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "./serverBaseTypes-DPB1vEvv.js";
|
|
11
|
+
import { a as MobileServerFollowMutationResponse, i as MobileServerExecuteSuccessResponse, n as MobileServerExecuteResponseByType, o as MobileServerPublicExecuteRequest, r as MobileServerExecuteResult, t as MobileServerEmptyExecuteResponse } from "./serverExecuteTypes-ih4Xbr3J.js";
|
|
12
|
+
import { a as MobileServerPublicQueryRequest, c as MobileServerRegisteredWalletResponse, d as MobileServerUsernameAvailabilityResponse, i as MobileServerProfilesResponse, l as MobileServerSignedQueryResponseByType, n as MobileServerFollowListResponse, o as MobileServerPublicQueryResponseByType, r as MobileServerNotificationPreferencesResponse, s as MobileServerPublicQuerySuccessResponse, t as MobileServerFeedResponse, u as MobileServerSignedQuerySuccessResponse } from "./serverQueryTypes-LygPrZn7.js";
|
|
13
13
|
import { MobileClient, MobileClientOpts } from "./MobileClient.js";
|
|
14
14
|
import { MOBILE_CLIENT_ENDPOINTS } from "./endpoints.js";
|
|
15
|
-
import { n as MobileErrorCode, t as MOBILE_ERROR_CODES } from "./mobileErrorCodes-
|
|
16
|
-
import { t as MobileServerFailureError } from "./MobileServerFailureError-
|
|
15
|
+
import { n as MobileErrorCode, t as MOBILE_ERROR_CODES } from "./mobileErrorCodes-B3eR6t4b.js";
|
|
16
|
+
import { t as MobileServerFailureError } from "./MobileServerFailureError-D-76n3pS.js";
|
|
17
17
|
import { n as MOBILE_FEED_MIN_NOTIONAL_FLOOR, t as MOBILE_FEED_MAX_PAGE_SIZE } from "./feed-BF5k6Ryu.js";
|
|
18
|
-
import { t as
|
|
19
|
-
import {
|
|
20
|
-
|
|
18
|
+
import { i as MOBILE_PROFILES_MAX_BATCH_SIZE, n as MOBILE_FOLLOW_LIST_DEFAULT_PAGE_SIZE, r as MOBILE_FOLLOW_LIST_MAX_PAGE_SIZE, t as MOBILE_FOLLOWED_BY_PREVIEW_LIMIT } from "./follow-DjkQm1vR.js";
|
|
19
|
+
import { t as MOBILE_DISPLAY_NAME_PATTERN } from "./patterns-C-aUAnKl.js";
|
|
20
|
+
import { n as isMobileServerSuccessResponse, t as isMobileServerFailureResponse } from "./serverResponseGuards-BcdkKV30.js";
|
|
21
|
+
export { BuildSignedMobileRequestParams, GetMobileFeedParams, GetMobileFollowListParams, GetMobileFollowersParams, GetMobileFollowingParams, GetMobileNotificationPreferencesParams, GetMobileProfilesParams, GetMobileRegisteredWalletParams, GetMobileUsernameAvailabilityParams, MOBILE_CLIENT_ENDPOINTS, MOBILE_DISPLAY_NAME_PATTERN, MOBILE_EIP712_METHOD_BY_TYPE, MOBILE_ERROR_CODES, MOBILE_FEED_MARGIN_MODES, MOBILE_FEED_MAX_PAGE_SIZE, MOBILE_FEED_MIN_NOTIONAL_FLOOR, MOBILE_FEED_TRADE_POSITION_DIRECTIONS, MOBILE_FEED_TRADE_POSITION_EFFECTS, MOBILE_FOLLOWED_BY_PREVIEW_LIMIT, MOBILE_FOLLOW_LIST_DEFAULT_PAGE_SIZE, MOBILE_FOLLOW_LIST_MAX_PAGE_SIZE, MOBILE_PROFILES_MAX_BATCH_SIZE, MobileClient, MobileClientOpts, MobileErrorCode, MobileFeedMargin, MobileFeedMarginMode, MobileFeedPage, MobileFeedTrade, MobileFeedTradePosition, MobileFeedTradePositionDirection, MobileFeedTradePositionEffect, MobileFollowListAccount, MobileFollowListPage, MobileFollowMutationResult, MobileFollowRequestParams, MobileFollowSummary, MobileIdentitySummary, MobileNotificationCategory, MobileNotificationCategoryPreference, MobileNotificationPlatform, MobileNotificationPreferenceScope, MobileNotificationPreferences, MobileProfilesInclude, MobilePublicProfile, MobileRegisterExpoTokenParams, MobileRegisteredWallet, MobileServerEmptyExecuteResponse, MobileServerExecuteRequestType, MobileServerExecuteResponseByType, MobileServerExecuteResult, MobileServerExecuteSuccessResponse, MobileServerFailureError, MobileServerFailureResponse, MobileServerFeedMargin, MobileServerFeedResponse, MobileServerFeedTrade, MobileServerFollowListAccount, MobileServerFollowListResponse, MobileServerFollowMutationResponse, MobileServerFollowSummary, MobileServerIdentitySummary, MobileServerNotificationCategoryPreference, MobileServerNotificationPreferenceScope, MobileServerNotificationPreferences, MobileServerNotificationPreferencesResponse, MobileServerProfile, MobileServerProfilesInclude, MobileServerProfilesResponse, MobileServerPublicExecuteRequest, MobileServerPublicExecuteRequestByType, MobileServerPublicExecuteRequestType, MobileServerPublicQueryRequest, MobileServerPublicQueryRequestByType, MobileServerPublicQueryRequestType, MobileServerPublicQueryResponseByType, MobileServerPublicQuerySuccessResponse, MobileServerRegisteredWalletResponse, MobileServerRequestType, MobileServerSignedQueryRequestType, MobileServerSignedQueryResponseByType, MobileServerSignedQuerySuccessResponse, MobileServerSuccessResponse, MobileServerUsernameAvailabilityResponse, MobileSetFollowParams, MobileSetPrivateModeParams, MobileSetUsernameParams, MobileSignedInner, MobileSignedInnerByType, MobileSignedInnerParams, MobileSignedRequest, MobileSignedRequestParams, MobileUnregisterExpoTokenParams, MobileUpdateNotificationPreferencesParams, MobileUsernameAvailability, MobileWithExpoTokenParams, buildSignedMobileRequest, canonicalizeMobileInner, getMobileNonce, getMobilePayloadHash, isMobileServerFailureResponse, isMobileServerSuccessResponse };
|
package/dist/index.js
CHANGED
|
@@ -12,6 +12,7 @@ import { MOBILE_ERROR_CODES } from "./types/mobileErrorCodes.js";
|
|
|
12
12
|
import { MOBILE_FEED_MARGIN_MODES, MOBILE_FEED_TRADE_POSITION_DIRECTIONS, MOBILE_FEED_TRADE_POSITION_EFFECTS } from "./types/serverModelTypes.js";
|
|
13
13
|
import "./types/index.js";
|
|
14
14
|
import { MOBILE_FEED_MAX_PAGE_SIZE, MOBILE_FEED_MIN_NOTIONAL_FLOOR } from "./utils/feed.js";
|
|
15
|
+
import { MOBILE_FOLLOWED_BY_PREVIEW_LIMIT, MOBILE_FOLLOW_LIST_DEFAULT_PAGE_SIZE, MOBILE_FOLLOW_LIST_MAX_PAGE_SIZE, MOBILE_PROFILES_MAX_BATCH_SIZE } from "./utils/follow.js";
|
|
15
16
|
import { MOBILE_DISPLAY_NAME_PATTERN } from "./utils/patterns.js";
|
|
16
17
|
import "./utils/index.js";
|
|
17
|
-
export { 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, MobileServerFailureError, buildSignedMobileRequest, canonicalizeMobileInner, getMobileNonce, getMobilePayloadHash, isMobileServerFailureResponse, isMobileServerSuccessResponse };
|
|
18
|
+
export { MOBILE_CLIENT_ENDPOINTS, MOBILE_DISPLAY_NAME_PATTERN, MOBILE_EIP712_METHOD_BY_TYPE, MOBILE_ERROR_CODES, MOBILE_FEED_MARGIN_MODES, MOBILE_FEED_MAX_PAGE_SIZE, MOBILE_FEED_MIN_NOTIONAL_FLOOR, MOBILE_FEED_TRADE_POSITION_DIRECTIONS, MOBILE_FEED_TRADE_POSITION_EFFECTS, MOBILE_FOLLOWED_BY_PREVIEW_LIMIT, MOBILE_FOLLOW_LIST_DEFAULT_PAGE_SIZE, MOBILE_FOLLOW_LIST_MAX_PAGE_SIZE, MOBILE_PROFILES_MAX_BATCH_SIZE, MobileClient, MobileServerFailureError, buildSignedMobileRequest, canonicalizeMobileInner, getMobileNonce, getMobilePayloadHash, isMobileServerFailureResponse, isMobileServerSuccessResponse };
|
|
@@ -9,7 +9,13 @@ declare const MOBILE_ERROR_CODES: {
|
|
|
9
9
|
readonly USERNAME_UNAVAILABLE: 6101;
|
|
10
10
|
readonly INVALID_IDENTITY_TARGET: 6104; /** Another identity write for the subaccount committed with a later nonce. Re-read before retrying. */
|
|
11
11
|
readonly STALE_IDENTITY_UPDATE: 6105;
|
|
12
|
-
readonly PROFILE_NOT_FOUND: 6106;
|
|
12
|
+
readonly PROFILE_NOT_FOUND: 6106; /** Profiles lookup is empty, holds duplicates, or exceeds the batch maximum. Do not retry unchanged. */
|
|
13
|
+
readonly INVALID_PROFILES_REQUEST: 6107; /** Follow mutation names the same source and target, or an isolated participant. Do not retry unchanged. */
|
|
14
|
+
readonly INVALID_FOLLOW_TARGET: 6110; /** Signed follower is not yet in the canonical Query DB subaccount index. Retry after index catch-up. */
|
|
15
|
+
readonly FOLLOWER_NOT_ELIGIBLE: 6111; /** Follow target is not yet in the canonical Query DB subaccount index. Refresh after a new record. */
|
|
16
|
+
readonly FOLLOWING_NOT_FOUND: 6112; /** Follow list cursor is malformed or bound to a different list request. Restart from `cursor: null`. */
|
|
17
|
+
readonly INVALID_FOLLOW_CURSOR: 6113; /** A follow list or followed-by limit is outside its accepted range. Fix it; do not retry unchanged. */
|
|
18
|
+
readonly INVALID_FOLLOW_LIMIT: 6114;
|
|
13
19
|
readonly INVALID_EXPO_TOKEN: 6200;
|
|
14
20
|
readonly INVALID_DEVICE_METADATA: 6201;
|
|
15
21
|
readonly INVALID_PREFERENCES: 6202; /** Feed `minimumNotional` or `limit` is outside its allowed domain. Fix the request; do not retry unchanged. */
|
|
@@ -36,4 +42,4 @@ declare const MOBILE_ERROR_CODES: {
|
|
|
36
42
|
type MobileErrorCode = (typeof MOBILE_ERROR_CODES)[keyof typeof MOBILE_ERROR_CODES];
|
|
37
43
|
//#endregion
|
|
38
44
|
export { MobileErrorCode as n, MOBILE_ERROR_CODES as t };
|
|
39
|
-
//# sourceMappingURL=mobileErrorCodes-
|
|
45
|
+
//# sourceMappingURL=mobileErrorCodes-B3eR6t4b.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mobileErrorCodes-B3eR6t4b.d.ts","names":[],"sources":["../src/types/src/types/mobileErrorCodes.ts"],"mappings":";;AAOA;;;;cAAa,kBAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAgCD,eAAA,WACF,kBAAA,eAAiC,kBAAkB"}
|
|
@@ -9,7 +9,13 @@ declare const MOBILE_ERROR_CODES: {
|
|
|
9
9
|
readonly USERNAME_UNAVAILABLE: 6101;
|
|
10
10
|
readonly INVALID_IDENTITY_TARGET: 6104; /** Another identity write for the subaccount committed with a later nonce. Re-read before retrying. */
|
|
11
11
|
readonly STALE_IDENTITY_UPDATE: 6105;
|
|
12
|
-
readonly PROFILE_NOT_FOUND: 6106;
|
|
12
|
+
readonly PROFILE_NOT_FOUND: 6106; /** Profiles lookup is empty, holds duplicates, or exceeds the batch maximum. Do not retry unchanged. */
|
|
13
|
+
readonly INVALID_PROFILES_REQUEST: 6107; /** Follow mutation names the same source and target, or an isolated participant. Do not retry unchanged. */
|
|
14
|
+
readonly INVALID_FOLLOW_TARGET: 6110; /** Signed follower is not yet in the canonical Query DB subaccount index. Retry after index catch-up. */
|
|
15
|
+
readonly FOLLOWER_NOT_ELIGIBLE: 6111; /** Follow target is not yet in the canonical Query DB subaccount index. Refresh after a new record. */
|
|
16
|
+
readonly FOLLOWING_NOT_FOUND: 6112; /** Follow list cursor is malformed or bound to a different list request. Restart from `cursor: null`. */
|
|
17
|
+
readonly INVALID_FOLLOW_CURSOR: 6113; /** A follow list or followed-by limit is outside its accepted range. Fix it; do not retry unchanged. */
|
|
18
|
+
readonly INVALID_FOLLOW_LIMIT: 6114;
|
|
13
19
|
readonly INVALID_EXPO_TOKEN: 6200;
|
|
14
20
|
readonly INVALID_DEVICE_METADATA: 6201;
|
|
15
21
|
readonly INVALID_PREFERENCES: 6202; /** Feed `minimumNotional` or `limit` is outside its allowed domain. Fix the request; do not retry unchanged. */
|
|
@@ -36,4 +42,4 @@ declare const MOBILE_ERROR_CODES: {
|
|
|
36
42
|
type MobileErrorCode = (typeof MOBILE_ERROR_CODES)[keyof typeof MOBILE_ERROR_CODES];
|
|
37
43
|
//#endregion
|
|
38
44
|
export { MobileErrorCode as n, MOBILE_ERROR_CODES as t };
|
|
39
|
-
//# sourceMappingURL=mobileErrorCodes-
|
|
45
|
+
//# sourceMappingURL=mobileErrorCodes-DkzBW4v3.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mobileErrorCodes-DkzBW4v3.d.cts","names":[],"sources":["../src/types/src/types/mobileErrorCodes.ts"],"mappings":";;AAOA;;;;cAAa,kBAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAgCD,eAAA,WACF,kBAAA,eAAiC,kBAAkB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patterns-C-aUAnKl.d.ts","names":[],"sources":["../src/utils/src/utils/patterns.ts"],"mappings":";;AAGA;;cAAa,2BAAA,EAA2B,MAA0B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patterns-DS8P5LH0.d.cts","names":[],"sources":["../src/utils/src/utils/patterns.ts"],"mappings":";;AAGA;;cAAa,2BAAA,EAA2B,MAA0B"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as MobileSignedInner } from "./types-
|
|
1
|
+
import { n as MobileSignedInner } from "./types-CClB00EN.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-
|
|
13
|
+
//# sourceMappingURL=payloadHash-BVPYKdk4.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payloadHash-BVPYKdk4.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-
|
|
1
|
+
import { n as MobileSignedInner } from "./types-B8lDIhBP.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-
|
|
13
|
+
//# sourceMappingURL=payloadHash-DMqE5aMo.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payloadHash-DMqE5aMo.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 {
|
|
1
|
+
import { s as MobileServerRequestType } from "./serverRequestTypes-q4xTJHk0.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-
|
|
25
|
+
//# sourceMappingURL=serverBaseTypes-BybrVE6L.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serverBaseTypes-
|
|
1
|
+
{"version":3,"file":"serverBaseTypes-BybrVE6L.d.cts","names":[],"sources":["../src/types/src/types/serverBaseTypes.ts"],"mappings":";;;;;AAQA;;;;UAAiB,2BAAA;EACf,MAAM;AAAA;;;;;UAOS,2BAAA;EACf,MAAA;EACA,KAAA;EACA,UAAA;EACA,YAAA,EAAc,uBAAuB;AAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { s as MobileServerRequestType } from "./serverRequestTypes-BDXIPjtw.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-
|
|
25
|
+
//# sourceMappingURL=serverBaseTypes-DPB1vEvv.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serverBaseTypes-
|
|
1
|
+
{"version":3,"file":"serverBaseTypes-DPB1vEvv.d.ts","names":[],"sources":["../src/types/src/types/serverBaseTypes.ts"],"mappings":";;;;;AAQA;;;;UAAiB,2BAAA;EACf,MAAM;AAAA;;;;;UAOS,2BAAA;EACf,MAAA;EACA,KAAA;EACA,UAAA;EACA,YAAA,EAAc,uBAAuB;AAAA"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { i as MobileServerPublicExecuteRequestType, r as MobileServerPublicExecuteRequestByType, t as MobileServerExecuteRequestType } from "./serverRequestTypes-q4xTJHk0.cjs";
|
|
2
|
+
import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "./serverBaseTypes-BybrVE6L.cjs";
|
|
3
|
+
|
|
4
|
+
//#region src/types/serverExecuteTypes.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Unsigned `public_execute` request body: a `type` discriminant flattened with its params, mirroring
|
|
7
|
+
* {@link MobileServerPublicQueryRequest}.
|
|
8
|
+
*/
|
|
9
|
+
type MobileServerPublicExecuteRequest<T extends MobileServerPublicExecuteRequestType = MobileServerPublicExecuteRequestType> = { [K in MobileServerPublicExecuteRequestType]: {
|
|
10
|
+
type: K;
|
|
11
|
+
} & MobileServerPublicExecuteRequestByType[K] }[T];
|
|
12
|
+
/**
|
|
13
|
+
* Payload the `set_follow` execute returns alongside the success envelope. The mutation and the count commit
|
|
14
|
+
* in one database transaction, so these are the authoritative post-mutation values — prefer them over
|
|
15
|
+
* re-reading, and note that overlapping toggles for the same pair can respond out of arrival order.
|
|
16
|
+
*/
|
|
17
|
+
interface MobileServerFollowMutationResponse {
|
|
18
|
+
is_following: boolean;
|
|
19
|
+
/** The *target's* follower count after the mutation, not the sender's. */
|
|
20
|
+
follower_count: number;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Payload of an execute route that returns nothing beyond the success discriminant. Spelled `Record<never,
|
|
24
|
+
* never>` rather than `Record<string, never>` because the latter's index signature would collapse `status` to
|
|
25
|
+
* `never` when intersected with the success envelope.
|
|
26
|
+
*/
|
|
27
|
+
type MobileServerEmptyExecuteResponse = Record<never, never>;
|
|
28
|
+
/**
|
|
29
|
+
* Success payloads for each signed `execute`, keyed by request `type`. Most execute routes carry no payload
|
|
30
|
+
* beyond the success discriminant and so map to an empty object; `set_follow` returns its post-commit
|
|
31
|
+
* relationship state.
|
|
32
|
+
*/
|
|
33
|
+
interface MobileServerExecuteResponseByType {
|
|
34
|
+
set_username: MobileServerEmptyExecuteResponse;
|
|
35
|
+
set_private_mode: MobileServerEmptyExecuteResponse;
|
|
36
|
+
register_expo_token: MobileServerEmptyExecuteResponse;
|
|
37
|
+
set_follow: MobileServerFollowMutationResponse;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Full success response for a signed `execute`: the {@link MobileServerSuccessResponse} envelope with the
|
|
41
|
+
* route's payload inlined alongside `status`, matching how the query routes inline theirs.
|
|
42
|
+
*/
|
|
43
|
+
type MobileServerExecuteSuccessResponse<T extends MobileServerExecuteRequestType = MobileServerExecuteRequestType> = MobileServerSuccessResponse & MobileServerExecuteResponseByType[T];
|
|
44
|
+
/**
|
|
45
|
+
* Discriminated `execute` result union used at the transport boundary, before the envelope is narrowed.
|
|
46
|
+
*/
|
|
47
|
+
type MobileServerExecuteResult = MobileServerSuccessResponse | MobileServerFailureResponse;
|
|
48
|
+
//#endregion
|
|
49
|
+
export { MobileServerFollowMutationResponse as a, MobileServerExecuteSuccessResponse as i, MobileServerExecuteResponseByType as n, MobileServerPublicExecuteRequest as o, MobileServerExecuteResult as r, MobileServerEmptyExecuteResponse as t };
|
|
50
|
+
//# sourceMappingURL=serverExecuteTypes-DoR0InCd.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"serverExecuteTypes-DoR0InCd.d.cts","names":[],"sources":["../src/types/src/types/serverExecuteTypes.ts"],"mappings":";;;;;;AAcA;;KAAY,gCAAA,WACA,oCAAA,GACR,oCAAA,YAEI,oCAAA;EACJ,IAAA,EAAM,CAAA;AAAA,IACJ,sCAAA,CAAuC,CAAA,IAC3C,CAAA;;;;;;UAOe,kCAAA;EACf,YAAA;EAbE;EAeF,cAAc;AAAA;;;;;;KAQJ,gCAAA,GAAmC,MAAM;AAlBlD;AAOH;;;;AAPG,UAyBc,iCAAA;EACf,YAAA,EAAc,gCAAA;EACd,gBAAA,EAAkB,gCAAA;EAClB,mBAAA,EAAqB,gCAAA;EACrB,UAAA,EAAY,kCAAA;AAAA;AAJd;;;;AAAA,KAWY,kCAAA,WACA,8BAAA,GAAiC,8BAAA,IACzC,2BAAA,GAA8B,iCAAA,CAAkC,CAAA;;;;KAKxD,yBAAA,GACR,2BAAA,GACA,2BAA2B"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { i as MobileServerPublicExecuteRequestType, r as MobileServerPublicExecuteRequestByType, t as MobileServerExecuteRequestType } from "./serverRequestTypes-BDXIPjtw.js";
|
|
2
|
+
import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "./serverBaseTypes-DPB1vEvv.js";
|
|
3
|
+
|
|
4
|
+
//#region src/types/serverExecuteTypes.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Unsigned `public_execute` request body: a `type` discriminant flattened with its params, mirroring
|
|
7
|
+
* {@link MobileServerPublicQueryRequest}.
|
|
8
|
+
*/
|
|
9
|
+
type MobileServerPublicExecuteRequest<T extends MobileServerPublicExecuteRequestType = MobileServerPublicExecuteRequestType> = { [K in MobileServerPublicExecuteRequestType]: {
|
|
10
|
+
type: K;
|
|
11
|
+
} & MobileServerPublicExecuteRequestByType[K] }[T];
|
|
12
|
+
/**
|
|
13
|
+
* Payload the `set_follow` execute returns alongside the success envelope. The mutation and the count commit
|
|
14
|
+
* in one database transaction, so these are the authoritative post-mutation values — prefer them over
|
|
15
|
+
* re-reading, and note that overlapping toggles for the same pair can respond out of arrival order.
|
|
16
|
+
*/
|
|
17
|
+
interface MobileServerFollowMutationResponse {
|
|
18
|
+
is_following: boolean;
|
|
19
|
+
/** The *target's* follower count after the mutation, not the sender's. */
|
|
20
|
+
follower_count: number;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Payload of an execute route that returns nothing beyond the success discriminant. Spelled `Record<never,
|
|
24
|
+
* never>` rather than `Record<string, never>` because the latter's index signature would collapse `status` to
|
|
25
|
+
* `never` when intersected with the success envelope.
|
|
26
|
+
*/
|
|
27
|
+
type MobileServerEmptyExecuteResponse = Record<never, never>;
|
|
28
|
+
/**
|
|
29
|
+
* Success payloads for each signed `execute`, keyed by request `type`. Most execute routes carry no payload
|
|
30
|
+
* beyond the success discriminant and so map to an empty object; `set_follow` returns its post-commit
|
|
31
|
+
* relationship state.
|
|
32
|
+
*/
|
|
33
|
+
interface MobileServerExecuteResponseByType {
|
|
34
|
+
set_username: MobileServerEmptyExecuteResponse;
|
|
35
|
+
set_private_mode: MobileServerEmptyExecuteResponse;
|
|
36
|
+
register_expo_token: MobileServerEmptyExecuteResponse;
|
|
37
|
+
set_follow: MobileServerFollowMutationResponse;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Full success response for a signed `execute`: the {@link MobileServerSuccessResponse} envelope with the
|
|
41
|
+
* route's payload inlined alongside `status`, matching how the query routes inline theirs.
|
|
42
|
+
*/
|
|
43
|
+
type MobileServerExecuteSuccessResponse<T extends MobileServerExecuteRequestType = MobileServerExecuteRequestType> = MobileServerSuccessResponse & MobileServerExecuteResponseByType[T];
|
|
44
|
+
/**
|
|
45
|
+
* Discriminated `execute` result union used at the transport boundary, before the envelope is narrowed.
|
|
46
|
+
*/
|
|
47
|
+
type MobileServerExecuteResult = MobileServerSuccessResponse | MobileServerFailureResponse;
|
|
48
|
+
//#endregion
|
|
49
|
+
export { MobileServerFollowMutationResponse as a, MobileServerExecuteSuccessResponse as i, MobileServerExecuteResponseByType as n, MobileServerPublicExecuteRequest as o, MobileServerExecuteResult as r, MobileServerEmptyExecuteResponse as t };
|
|
50
|
+
//# sourceMappingURL=serverExecuteTypes-ih4Xbr3J.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"serverExecuteTypes-ih4Xbr3J.d.ts","names":[],"sources":["../src/types/src/types/serverExecuteTypes.ts"],"mappings":";;;;;;AAcA;;KAAY,gCAAA,WACA,oCAAA,GACR,oCAAA,YAEI,oCAAA;EACJ,IAAA,EAAM,CAAA;AAAA,IACJ,sCAAA,CAAuC,CAAA,IAC3C,CAAA;;;;;;UAOe,kCAAA;EACf,YAAA;EAbE;EAeF,cAAc;AAAA;;;;;;KAQJ,gCAAA,GAAmC,MAAM;AAlBlD;AAOH;;;;AAPG,UAyBc,iCAAA;EACf,YAAA,EAAc,gCAAA;EACd,gBAAA,EAAkB,gCAAA;EAClB,mBAAA,EAAqB,gCAAA;EACrB,UAAA,EAAY,kCAAA;AAAA;AAJd;;;;AAAA,KAWY,kCAAA,WACA,8BAAA,GAAiC,8BAAA,IACzC,2BAAA,GAA8B,iCAAA,CAAkC,CAAA;;;;KAKxD,yBAAA,GACR,2BAAA,GACA,2BAA2B"}
|
|
@@ -11,14 +11,63 @@ type MobileNotificationPlatform = 'ios' | 'android';
|
|
|
11
11
|
*/
|
|
12
12
|
type MobileNotificationCategory = 'order_fill' | 'order_update' | 'liquidation' | 'funding' | 'product_listing' | 'announcement';
|
|
13
13
|
/**
|
|
14
|
-
* Server-side
|
|
15
|
-
*
|
|
14
|
+
* Server-side identity summary (snake_case): the read-time identity fields the backend attaches to a
|
|
15
|
+
* subaccount wherever it surfaces one alongside other data. Name fields are `null` until the subaccount
|
|
16
|
+
* claims a username, and a rename shows up on the next read without any change to the surrounding record.
|
|
17
|
+
*/
|
|
18
|
+
interface MobileServerIdentitySummary {
|
|
19
|
+
subaccount: Hex;
|
|
20
|
+
username: string | null;
|
|
21
|
+
display_name: string | null;
|
|
22
|
+
/** Reserved for a future avatar source; `null` until one is implemented. */
|
|
23
|
+
avatar_url: string | null;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Server-side follow summary (snake_case), nested in a `profiles` entry when the `follow_summary` include is
|
|
27
|
+
* requested. `is_following` is the direct `view_as -> this profile` relationship; every `followed_by` entry
|
|
28
|
+
* satisfies both `view_as -> entry` and `entry -> this profile`, so each one is already familiar to the
|
|
29
|
+
* viewer and carries no `is_following` of its own.
|
|
30
|
+
*/
|
|
31
|
+
interface MobileServerFollowSummary {
|
|
32
|
+
is_following: boolean;
|
|
33
|
+
/** Exact size of the two-edge intersection, independent of how many previews came back. */
|
|
34
|
+
followed_by_count: number;
|
|
35
|
+
/** Capped at `MOBILE_FOLLOWED_BY_PREVIEW_LIMIT` (2) by the backend; not client-configurable. */
|
|
36
|
+
followed_by: MobileServerIdentitySummary[];
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Server-side public profile shape (snake_case), shared by the singular `profile` and batched `profiles`
|
|
40
|
+
* queries. Name fields are `null` until the subaccount claims a username; a subaccount with no identity row
|
|
41
|
+
* still yields an entry, with `null` names and `private_mode: false`.
|
|
42
|
+
*
|
|
43
|
+
* The three optional fields are omitted from the wire entirely unless the matching `profiles` include asked
|
|
44
|
+
* for them, which is why they are optional rather than nullable — absent means "not requested", not "none".
|
|
45
|
+
* The singular `profile` query never returns any of them.
|
|
16
46
|
*/
|
|
17
47
|
interface MobileServerProfile {
|
|
18
48
|
subaccount: Hex;
|
|
19
49
|
username: string | null;
|
|
20
50
|
display_name: string | null;
|
|
21
51
|
private_mode: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Exact count at query time — the backend counts rather than reading a cached counter. Unnamed and private
|
|
54
|
+
* accounts are included: Private Mode hides activity, not relationships. Requires `follow_counts`.
|
|
55
|
+
*/
|
|
56
|
+
follower_count?: number;
|
|
57
|
+
following_count?: number;
|
|
58
|
+
/** Requires the `follow_summary` include, and is relative to that include's `view_as`. */
|
|
59
|
+
follow_summary?: MobileServerFollowSummary;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Server-side row of a Followers or Following page (snake_case). `is_following` describes the *Viewer's*
|
|
63
|
+
* relationship to this account, not the listed relationship that put it in the page, so it is `false` on the
|
|
64
|
+
* Viewer's own row.
|
|
65
|
+
*/
|
|
66
|
+
interface MobileServerFollowListAccount {
|
|
67
|
+
identity: MobileServerIdentitySummary;
|
|
68
|
+
is_following: boolean;
|
|
69
|
+
/** The listed account's own follower count, exact at query time. */
|
|
70
|
+
follower_count: number;
|
|
22
71
|
}
|
|
23
72
|
/**
|
|
24
73
|
* Direction of the position a feed trade resulted in — for `closed`, the direction that was closed. This is
|
|
@@ -71,14 +120,9 @@ interface MobileServerFeedMargin {
|
|
|
71
120
|
* trader's current identity. Amounts are display-oriented human-unit JSON numbers — do not use them for
|
|
72
121
|
* accounting, order construction, or exact threshold decisions.
|
|
73
122
|
*/
|
|
74
|
-
interface MobileServerFeedTrade {
|
|
123
|
+
interface MobileServerFeedTrade extends MobileServerIdentitySummary {
|
|
75
124
|
/** Order digest this row is keyed by; the stable id clients use to reconcile live pagination. */
|
|
76
125
|
order_digest: Hex;
|
|
77
|
-
subaccount: Hex;
|
|
78
|
-
username: string | null;
|
|
79
|
-
display_name: string | null;
|
|
80
|
-
/** Reserved for a future avatar source; `null` until one is implemented. */
|
|
81
|
-
avatar_url: string | null;
|
|
82
126
|
product_id: number;
|
|
83
127
|
/** Executed quantity in human units. */
|
|
84
128
|
quantity: number;
|
|
@@ -122,5 +166,5 @@ interface MobileServerNotificationPreferences {
|
|
|
122
166
|
categories: MobileServerNotificationCategoryPreference[];
|
|
123
167
|
}
|
|
124
168
|
//#endregion
|
|
125
|
-
export { MobileFeedTradePosition as a, MobileNotificationCategory as c, MobileServerFeedTrade as d,
|
|
126
|
-
//# sourceMappingURL=serverModelTypes-
|
|
169
|
+
export { MobileServerNotificationPreferences as _, MobileFeedTradePosition as a, MobileNotificationCategory as c, MobileServerFeedTrade as d, MobileServerFollowListAccount as f, MobileServerNotificationPreferenceScope as g, MobileServerNotificationCategoryPreference as h, MobileFeedMarginMode as i, MobileNotificationPlatform as l, MobileServerIdentitySummary as m, MOBILE_FEED_TRADE_POSITION_DIRECTIONS as n, MobileFeedTradePositionDirection as o, MobileServerFollowSummary as p, MOBILE_FEED_TRADE_POSITION_EFFECTS as r, MobileFeedTradePositionEffect as s, MOBILE_FEED_MARGIN_MODES as t, MobileServerFeedMargin as u, MobileServerProfile as v };
|
|
170
|
+
//# sourceMappingURL=serverModelTypes-DV-eARP8.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"serverModelTypes-DV-eARP8.d.ts","names":[],"sources":["../src/types/src/types/serverModelTypes.ts"],"mappings":";;;;;;AAMA;KAAY,0BAAA;;;AAA0B;KAK1B,0BAAA;;;;AAA0B;AAatC;UAAiB,2BAAA;EACf,UAAA,EAAY,GAAG;EACf,QAAA;EACA,YAAA;EAFY;EAIZ,UAAA;AAAA;;;AAAU;AASZ;;;UAAiB,yBAAA;EACf,YAAA;EAEA;EAAA,iBAAA;EAEa;EAAb,WAAA,EAAa,2BAA2B;AAAA;AAY1C;;;;;;;;;AAAA,UAAiB,mBAAA;EACf,UAAA,EAAY,GAAA;EACZ,QAAA;EACA,YAAA;EACA,YAAA;EAQ0C;AAQ5C;;;EAXE,cAAA;EACA,eAAA;EAWU;EATV,cAAA,GAAiB,yBAAyB;AAAA;;AAY5B;AAQhB;;;UAZiB,6BAAA;EACf,QAAA,EAAU,2BAA2B;EACrC,YAAA;EAmB8D;EAjB9D,cAAA;AAAA;AAiB8D;AAMhE;;;;AANgE,KATpD,gCAAA,GAAmC,WAAW;AA0B1D;;;;AAAA,cApBa,qCAAA;AA2Bb;;;;AAAA,cAlBa,kCAAA;;;;KAWD,6BAAA,WACF,kCAAkC;AAQL;AAOvC;;;AAPuC,UAFtB,uBAAA;EACf,SAAA,EAAW,gCAAA;EACX,MAAA,EAAQ,6BAA6B;AAAA;;;AAY4B;AAOnE;cAZa,wBAAA;;;;KAKD,oBAAA,WAA+B,wBAAwB;;;AAS/C;AAQpB;;UAViB,sBAAA;EACf,IAAA,EAAM,oBAAoB;EAC1B,kBAAA;AAAA;;;;;;UAQe,qBAAA,SAA8B,2BAAA;EAG7C;EADA,YAAA,EAAc,GAAA;EACd,UAAA;EAMA;EAJA,QAAA;EAKQ;EAHR,QAAA;EAIU;EAFV,aAAA;EACA,MAAA,EAAQ,sBAAA;EACR,QAAA,EAAU,uBAAA;EAIE;EAFZ,YAAA;EASiD;EAPjD,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;;;;;UAOhC,mCAAA;EAGH;EADZ,cAAA;EACA,UAAA,EAAY,0CAA0C;AAAA"}
|