@nadohq/mobile-client 0.57.0 → 0.59.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 +6 -1
- package/dist/{MobileClient-DjNpN7Dw.cjs → MobileClient-aDxiM_Kf.cjs} +47 -1
- package/dist/MobileClient-aDxiM_Kf.cjs.map +1 -0
- package/dist/MobileClient.cjs +1 -1
- package/dist/MobileClient.d.cts +40 -6
- package/dist/MobileClient.d.cts.map +1 -1
- package/dist/MobileClient.d.ts +40 -6
- package/dist/MobileClient.d.ts.map +1 -1
- package/dist/MobileClient.js +47 -1
- package/dist/MobileClient.js.map +1 -1
- package/dist/{MobileServerFailureError-kbMi1Ntc.d.cts → MobileServerFailureError-Bpa_WA9f.d.cts} +3 -3
- package/dist/{MobileServerFailureError-kbMi1Ntc.d.cts.map → MobileServerFailureError-Bpa_WA9f.d.cts.map} +1 -1
- package/dist/{MobileServerFailureError-DvtkMAVX.d.ts → MobileServerFailureError-Dd3c6P_Z.d.ts} +3 -3
- package/dist/{MobileServerFailureError-DvtkMAVX.d.ts.map → MobileServerFailureError-Dd3c6P_Z.d.ts.map} +1 -1
- package/dist/{buildSignedMobileRequest-lSIJmG6D.d.ts → buildSignedMobileRequest-Cb1T74xV.d.ts} +2 -2
- package/dist/{buildSignedMobileRequest-lSIJmG6D.d.ts.map → buildSignedMobileRequest-Cb1T74xV.d.ts.map} +1 -1
- package/dist/{buildSignedMobileRequest-DBWN0z0u.d.cts → buildSignedMobileRequest-NHbMAPzd.d.cts} +2 -2
- package/dist/{buildSignedMobileRequest-DBWN0z0u.d.cts.map → buildSignedMobileRequest-NHbMAPzd.d.cts.map} +1 -1
- package/dist/{canonicalize-Cx3lCVpm.d.ts → canonicalize-BBYGh17w.d.ts} +2 -2
- package/dist/canonicalize-BBYGh17w.d.ts.map +1 -0
- package/dist/{canonicalize-DNgB8Jsm.d.cts → canonicalize-BF_SiNvO.d.cts} +2 -2
- package/dist/canonicalize-BF_SiNvO.d.cts.map +1 -0
- package/dist/{clientTypes-DnPE1zZO.d.cts → clientTypes-BWFKo9oE.d.cts} +63 -2
- package/dist/clientTypes-BWFKo9oE.d.cts.map +1 -0
- package/dist/{clientTypes-ws9CDHw4.d.ts → clientTypes-DCTiUV0H.d.ts} +63 -2
- package/dist/clientTypes-DCTiUV0H.d.ts.map +1 -0
- package/dist/dataMappers.cjs +34 -0
- package/dist/dataMappers.cjs.map +1 -1
- package/dist/dataMappers.d.cts +18 -5
- package/dist/dataMappers.d.cts.map +1 -1
- package/dist/dataMappers.d.ts +18 -5
- package/dist/dataMappers.d.ts.map +1 -1
- package/dist/dataMappers.js +32 -1
- package/dist/dataMappers.js.map +1 -1
- package/dist/{eip712MethodByType-T7dfjmC_.d.cts → eip712MethodByType-BSx11xG-.d.cts} +2 -2
- package/dist/eip712MethodByType-BSx11xG-.d.cts.map +1 -0
- package/dist/{eip712MethodByType-Bmu9PYx6.d.ts → eip712MethodByType-DkiAjCLs.d.ts} +2 -2
- package/dist/eip712MethodByType-DkiAjCLs.d.ts.map +1 -0
- package/dist/{follow-D6Mg8GHx.d.ts → follow-B3CZ04c0.d.cts} +7 -2
- package/dist/{follow-D6Mg8GHx.d.cts.map → follow-B3CZ04c0.d.cts.map} +1 -1
- package/dist/{follow-D6Mg8GHx.d.cts → follow-B3CZ04c0.d.ts} +7 -2
- package/dist/{follow-D6Mg8GHx.d.ts.map → follow-B3CZ04c0.d.ts.map} +1 -1
- package/dist/index.cjs +6 -1
- package/dist/index.d.cts +17 -16
- package/dist/index.d.ts +17 -16
- package/dist/index.js +4 -3
- package/dist/{mobileErrorCodes-B3kTLit_.d.ts → mobileErrorCodes-3LtreeZM.d.cts} +14 -3
- package/dist/mobileErrorCodes-3LtreeZM.d.cts.map +1 -0
- package/dist/{mobileErrorCodes-B3kTLit_.d.cts → mobileErrorCodes-3LtreeZM.d.ts} +14 -3
- package/dist/mobileErrorCodes-3LtreeZM.d.ts.map +1 -0
- package/dist/patterns-3UKIG5IS.d.cts +13 -0
- package/dist/patterns-3UKIG5IS.d.cts.map +1 -0
- package/dist/patterns-3UKIG5IS.d.ts +13 -0
- package/dist/patterns-3UKIG5IS.d.ts.map +1 -0
- package/dist/{payloadHash-Brc5ceFq.d.cts → payloadHash-BOWGjqdb.d.cts} +2 -2
- package/dist/payloadHash-BOWGjqdb.d.cts.map +1 -0
- package/dist/{payloadHash-cZgv7NSo.d.ts → payloadHash-Bzf4CtjV.d.ts} +2 -2
- package/dist/payloadHash-Bzf4CtjV.d.ts.map +1 -0
- package/dist/profileSearch-DCuB-IKD.d.cts +14 -0
- package/dist/profileSearch-DCuB-IKD.d.cts.map +1 -0
- package/dist/profileSearch-DCuB-IKD.d.ts +14 -0
- package/dist/profileSearch-DCuB-IKD.d.ts.map +1 -0
- package/dist/{serverBaseTypes-CWBdZomv.d.ts → serverBaseTypes-DWf3iGWy.d.ts} +2 -2
- package/dist/{serverBaseTypes-CWBdZomv.d.ts.map → serverBaseTypes-DWf3iGWy.d.ts.map} +1 -1
- package/dist/{serverBaseTypes-CcWT_ZBe.d.cts → serverBaseTypes-KREDe2M9.d.cts} +2 -2
- package/dist/{serverBaseTypes-CcWT_ZBe.d.cts.map → serverBaseTypes-KREDe2M9.d.cts.map} +1 -1
- package/dist/{serverExecuteTypes-CgjzwBaA.d.cts → serverExecuteTypes-DVRa6ifu.d.cts} +26 -6
- package/dist/serverExecuteTypes-DVRa6ifu.d.cts.map +1 -0
- package/dist/{serverExecuteTypes-jyr5aO5q.d.ts → serverExecuteTypes-DlYZCp1f.d.ts} +26 -6
- package/dist/serverExecuteTypes-DlYZCp1f.d.ts.map +1 -0
- package/dist/{serverQueryTypes-DPRP61yA.d.ts → serverQueryTypes-BFdwq0Z2.d.ts} +14 -4
- package/dist/serverQueryTypes-BFdwq0Z2.d.ts.map +1 -0
- package/dist/{serverQueryTypes-H_mI6fPl.d.cts → serverQueryTypes-DNdMpmDr.d.cts} +14 -4
- package/dist/serverQueryTypes-DNdMpmDr.d.cts.map +1 -0
- package/dist/{serverRequestTypes-BY0f5woc.d.ts → serverRequestTypes-BNA7FCY6.d.ts} +20 -3
- package/dist/serverRequestTypes-BNA7FCY6.d.ts.map +1 -0
- package/dist/{serverRequestTypes-DGGqQMK3.d.cts → serverRequestTypes-CxDRFKfv.d.cts} +20 -3
- package/dist/serverRequestTypes-CxDRFKfv.d.cts.map +1 -0
- package/dist/{serverResponseGuards-BGHTBbtz.d.ts → serverResponseGuards-BU1Xv_tG.d.ts} +2 -2
- package/dist/{serverResponseGuards-BGHTBbtz.d.ts.map → serverResponseGuards-BU1Xv_tG.d.ts.map} +1 -1
- package/dist/{serverResponseGuards-DGhrUL_c.d.cts → serverResponseGuards-Dkdok0Sm.d.cts} +2 -2
- package/dist/{serverResponseGuards-DGhrUL_c.d.cts.map → serverResponseGuards-Dkdok0Sm.d.cts.map} +1 -1
- package/dist/signing/buildSignedMobileRequest.d.cts +1 -1
- package/dist/signing/buildSignedMobileRequest.d.ts +1 -1
- package/dist/signing/canonicalize.cjs +5 -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 +5 -0
- package/dist/signing/canonicalize.js.map +1 -1
- package/dist/signing/eip712MethodByType.cjs +2 -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 +2 -1
- package/dist/signing/eip712MethodByType.js.map +1 -1
- package/dist/signing/index.d.cts +5 -5
- package/dist/signing/index.d.ts +5 -5
- package/dist/signing/payloadHash.d.cts +1 -1
- package/dist/signing/payloadHash.d.ts +1 -1
- package/dist/signing/types.d.cts +1 -1
- package/dist/signing/types.d.ts +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 +8 -8
- package/dist/types/index.d.ts +8 -8
- package/dist/types/mobileErrorCodes.cjs +12 -0
- 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/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-l47aSWtA.d.cts → types-BCr2G5gS.d.cts} +6 -2
- package/dist/types-BCr2G5gS.d.cts.map +1 -0
- package/dist/{types-B021odcS.d.ts → types-C18k-9Vy.d.ts} +6 -2
- package/dist/types-C18k-9Vy.d.ts.map +1 -0
- package/dist/utils/follow.cjs +6 -0
- package/dist/utils/follow.cjs.map +1 -1
- package/dist/utils/follow.d.cts +2 -2
- package/dist/utils/follow.d.ts +2 -2
- package/dist/utils/follow.js +6 -1
- package/dist/utils/follow.js.map +1 -1
- package/dist/utils/index.cjs +5 -0
- package/dist/utils/index.d.cts +5 -4
- package/dist/utils/index.d.ts +5 -4
- package/dist/utils/index.js +4 -3
- package/dist/utils/patterns.cjs +6 -0
- package/dist/utils/patterns.cjs.map +1 -1
- package/dist/utils/patterns.d.cts +2 -2
- package/dist/utils/patterns.d.ts +2 -2
- package/dist/utils/patterns.js +6 -1
- package/dist/utils/patterns.js.map +1 -1
- package/dist/utils/profileSearch.cjs +17 -0
- package/dist/utils/profileSearch.cjs.map +1 -0
- package/dist/utils/profileSearch.d.cts +2 -0
- package/dist/utils/profileSearch.d.ts +2 -0
- package/dist/utils/profileSearch.js +15 -0
- package/dist/utils/profileSearch.js.map +1 -0
- 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 +65 -0
- package/src/dataMappers.ts +48 -0
- package/src/signing/canonicalize.ts +6 -0
- package/src/signing/eip712MethodByType.ts +1 -0
- package/src/signing/signing.test.ts +34 -0
- package/src/signing/types.ts +7 -0
- package/src/types/clientTypes.ts +65 -0
- package/src/types/mobileErrorCodes.ts +12 -0
- package/src/types/serverExecuteTypes.ts +24 -2
- package/src/types/serverQueryTypes.ts +11 -0
- package/src/types/serverRequestTypes.ts +18 -0
- package/src/utils/follow.ts +6 -0
- package/src/utils/index.ts +1 -0
- package/src/utils/patterns.ts +7 -0
- package/src/utils/profileSearch.ts +11 -0
- package/dist/MobileClient-DjNpN7Dw.cjs.map +0 -1
- package/dist/canonicalize-Cx3lCVpm.d.ts.map +0 -1
- package/dist/canonicalize-DNgB8Jsm.d.cts.map +0 -1
- package/dist/clientTypes-DnPE1zZO.d.cts.map +0 -1
- package/dist/clientTypes-ws9CDHw4.d.ts.map +0 -1
- package/dist/eip712MethodByType-Bmu9PYx6.d.ts.map +0 -1
- package/dist/eip712MethodByType-T7dfjmC_.d.cts.map +0 -1
- package/dist/mobileErrorCodes-B3kTLit_.d.cts.map +0 -1
- package/dist/mobileErrorCodes-B3kTLit_.d.ts.map +0 -1
- package/dist/patterns-BE0Audp5.d.cts +0 -8
- package/dist/patterns-BE0Audp5.d.cts.map +0 -1
- package/dist/patterns-BE0Audp5.d.ts +0 -8
- package/dist/patterns-BE0Audp5.d.ts.map +0 -1
- package/dist/payloadHash-Brc5ceFq.d.cts.map +0 -1
- package/dist/payloadHash-cZgv7NSo.d.ts.map +0 -1
- package/dist/serverExecuteTypes-CgjzwBaA.d.cts.map +0 -1
- package/dist/serverExecuteTypes-jyr5aO5q.d.ts.map +0 -1
- package/dist/serverQueryTypes-DPRP61yA.d.ts.map +0 -1
- package/dist/serverQueryTypes-H_mI6fPl.d.cts.map +0 -1
- package/dist/serverRequestTypes-BY0f5woc.d.ts.map +0 -1
- package/dist/serverRequestTypes-DGGqQMK3.d.cts.map +0 -1
- package/dist/types-B021odcS.d.ts.map +0 -1
- package/dist/types-l47aSWtA.d.cts.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as MobileSignedInner } from "./types-
|
|
1
|
+
import { n as MobileSignedInner } from "./types-BCr2G5gS.cjs";
|
|
2
2
|
|
|
3
3
|
//#region src/signing/eip712MethodByType.d.ts
|
|
4
4
|
/**
|
|
@@ -7,4 +7,4 @@ import { n as MobileSignedInner } from "./types-l47aSWtA.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-
|
|
10
|
+
//# sourceMappingURL=eip712MethodByType-BSx11xG-.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eip712MethodByType-BSx11xG-.d.cts","names":[],"sources":["../src/signing/src/signing/eip712MethodByType.ts"],"mappings":";;;;;AAKA;cAAa,4BAAA,EAA8B,MAAM,CAC/C,iBAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as MobileSignedInner } from "./types-
|
|
1
|
+
import { n as MobileSignedInner } from "./types-C18k-9Vy.js";
|
|
2
2
|
|
|
3
3
|
//#region src/signing/eip712MethodByType.d.ts
|
|
4
4
|
/**
|
|
@@ -7,4 +7,4 @@ import { n as MobileSignedInner } from "./types-B021odcS.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-
|
|
10
|
+
//# sourceMappingURL=eip712MethodByType-DkiAjCLs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eip712MethodByType-DkiAjCLs.d.ts","names":[],"sources":["../src/signing/src/signing/eip712MethodByType.ts"],"mappings":";;;;;AAKA;cAAa,4BAAA,EAA8B,MAAM,CAC/C,iBAAA"}
|
|
@@ -18,6 +18,11 @@ declare const MOBILE_FOLLOWED_BY_PREVIEW_LIMIT = 2;
|
|
|
18
18
|
* this many fail with `INVALID_PROFILES_REQUEST`.
|
|
19
19
|
*/
|
|
20
20
|
declare const MOBILE_PROFILES_MAX_BATCH_SIZE = 25;
|
|
21
|
+
/**
|
|
22
|
+
* Maximum number of targets a single follow batch accepts. An empty list, a duplicate, or more than this many
|
|
23
|
+
* fail with `INVALID_FOLLOW_BATCH`.
|
|
24
|
+
*/
|
|
25
|
+
declare const MOBILE_FOLLOW_BATCH_MAX_SIZE = 25;
|
|
21
26
|
//#endregion
|
|
22
|
-
export { MOBILE_PROFILES_MAX_BATCH_SIZE as i,
|
|
23
|
-
//# sourceMappingURL=follow-
|
|
27
|
+
export { MOBILE_PROFILES_MAX_BATCH_SIZE as a, MOBILE_FOLLOW_LIST_MAX_PAGE_SIZE as i, MOBILE_FOLLOW_BATCH_MAX_SIZE as n, MOBILE_FOLLOW_LIST_DEFAULT_PAGE_SIZE as r, MOBILE_FOLLOWED_BY_PREVIEW_LIMIT as t };
|
|
28
|
+
//# sourceMappingURL=follow-B3CZ04c0.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"follow-
|
|
1
|
+
{"version":3,"file":"follow-B3CZ04c0.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;;AAA8B;AAM3C;;cAAa,4BAAA"}
|
|
@@ -18,6 +18,11 @@ declare const MOBILE_FOLLOWED_BY_PREVIEW_LIMIT = 2;
|
|
|
18
18
|
* this many fail with `INVALID_PROFILES_REQUEST`.
|
|
19
19
|
*/
|
|
20
20
|
declare const MOBILE_PROFILES_MAX_BATCH_SIZE = 25;
|
|
21
|
+
/**
|
|
22
|
+
* Maximum number of targets a single follow batch accepts. An empty list, a duplicate, or more than this many
|
|
23
|
+
* fail with `INVALID_FOLLOW_BATCH`.
|
|
24
|
+
*/
|
|
25
|
+
declare const MOBILE_FOLLOW_BATCH_MAX_SIZE = 25;
|
|
21
26
|
//#endregion
|
|
22
|
-
export { MOBILE_PROFILES_MAX_BATCH_SIZE as i,
|
|
23
|
-
//# sourceMappingURL=follow-
|
|
27
|
+
export { MOBILE_PROFILES_MAX_BATCH_SIZE as a, MOBILE_FOLLOW_LIST_MAX_PAGE_SIZE as i, MOBILE_FOLLOW_BATCH_MAX_SIZE as n, MOBILE_FOLLOW_LIST_DEFAULT_PAGE_SIZE as r, MOBILE_FOLLOWED_BY_PREVIEW_LIMIT as t };
|
|
28
|
+
//# sourceMappingURL=follow-B3CZ04c0.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"follow-
|
|
1
|
+
{"version":3,"file":"follow-B3CZ04c0.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;;AAA8B;AAM3C;;cAAa,4BAAA"}
|
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-aDxiM_Kf.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");
|
|
@@ -16,6 +16,7 @@ const require_utils_feed = require("./utils/feed.cjs");
|
|
|
16
16
|
const require_utils_follow = require("./utils/follow.cjs");
|
|
17
17
|
const require_utils_patterns = require("./utils/patterns.cjs");
|
|
18
18
|
const require_utils_profile = require("./utils/profile.cjs");
|
|
19
|
+
const require_utils_profileSearch = require("./utils/profileSearch.cjs");
|
|
19
20
|
require("./utils/index.cjs");
|
|
20
21
|
exports.MOBILE_AVATAR_MAX_UPLOAD_BYTES = require_utils_profile.MOBILE_AVATAR_MAX_UPLOAD_BYTES;
|
|
21
22
|
exports.MOBILE_BIO_MAX_LENGTH = require_utils_profile.MOBILE_BIO_MAX_LENGTH;
|
|
@@ -29,9 +30,13 @@ exports.MOBILE_FEED_MIN_NOTIONAL_FLOOR = require_utils_feed.MOBILE_FEED_MIN_NOTI
|
|
|
29
30
|
exports.MOBILE_FEED_TRADE_POSITION_DIRECTIONS = require_types_serverModelTypes.MOBILE_FEED_TRADE_POSITION_DIRECTIONS;
|
|
30
31
|
exports.MOBILE_FEED_TRADE_POSITION_EFFECTS = require_types_serverModelTypes.MOBILE_FEED_TRADE_POSITION_EFFECTS;
|
|
31
32
|
exports.MOBILE_FOLLOWED_BY_PREVIEW_LIMIT = require_utils_follow.MOBILE_FOLLOWED_BY_PREVIEW_LIMIT;
|
|
33
|
+
exports.MOBILE_FOLLOW_BATCH_MAX_SIZE = require_utils_follow.MOBILE_FOLLOW_BATCH_MAX_SIZE;
|
|
32
34
|
exports.MOBILE_FOLLOW_LIST_DEFAULT_PAGE_SIZE = require_utils_follow.MOBILE_FOLLOW_LIST_DEFAULT_PAGE_SIZE;
|
|
33
35
|
exports.MOBILE_FOLLOW_LIST_MAX_PAGE_SIZE = require_utils_follow.MOBILE_FOLLOW_LIST_MAX_PAGE_SIZE;
|
|
34
36
|
exports.MOBILE_PROFILES_MAX_BATCH_SIZE = require_utils_follow.MOBILE_PROFILES_MAX_BATCH_SIZE;
|
|
37
|
+
exports.MOBILE_PROFILE_SEARCH_MAX_ENRICHED_PAGE_SIZE = require_utils_profileSearch.MOBILE_PROFILE_SEARCH_MAX_ENRICHED_PAGE_SIZE;
|
|
38
|
+
exports.MOBILE_PROFILE_SEARCH_MAX_PAGE_SIZE = require_utils_profileSearch.MOBILE_PROFILE_SEARCH_MAX_PAGE_SIZE;
|
|
39
|
+
exports.MOBILE_PROFILE_SEARCH_QUERY_PATTERN = require_utils_patterns.MOBILE_PROFILE_SEARCH_QUERY_PATTERN;
|
|
35
40
|
exports.MobileClient = require_MobileClient.MobileClient;
|
|
36
41
|
exports.MobileServerFailureError = require_types_MobileServerFailureError.MobileServerFailureError;
|
|
37
42
|
exports.buildSignedMobileRequest = require_signing_buildSignedMobileRequest.buildSignedMobileRequest;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
import { $ as MobileSocialFeedTradeSizeChangeAction, A as MobileServerSocialFeedMarket, B as MobileSocialFeedCohortStatus, C as MobileServerSocialFeedCohort, D as MobileServerSocialFeedItem, E as MobileServerSocialFeedInteraction, F as MobileServerSocialFeedTradeCard, G as MobileSocialFeedPnlMode, H as MobileSocialFeedLeverage, I as MobileServerSocialFeedTradeRow, J as MobileSocialFeedPositionState, K as MobileSocialFeedPnlQuality, L as MobileServerSocialFeedTradeRowBase, M as MobileServerSocialFeedPositionCard, N as MobileServerSocialFeedPositionPatch, O as MobileServerSocialFeedItemBase, P as MobileServerSocialFeedReadSession, Q as MobileSocialFeedTradeCardAction, R as MobileServerSocialFeedTraderBadge, S as MobileServerSocialFeedCapabilities, T as MobileServerSocialFeedCommentPreview, U as MobileSocialFeedMarketCategory, V as MobileSocialFeedHistoryQuality, W as MobileSocialFeedPnlBasis, X as MobileSocialFeedSourceCategory, Y as MobileSocialFeedReadSessionMode, Z as MobileSocialFeedTargetType, _ as MobileServerNotificationCategoryPreference, a as MobileFeedTradePosition, b as MobileServerProfile, c as MobileNotificationCategory, d as MobileServerAvatarSelection, et as MobileSocialFeedTraderBadgeCode, f as MobileServerFeedMargin, g as MobileServerIdentitySummary, h as MobileServerFollowSummary, i as MobileFeedMarginMode, j as MobileServerSocialFeedPnl, k as MobileServerSocialFeedItemPatch, l as MobileNotificationPlatform, m as MobileServerFollowListAccount, n as MOBILE_FEED_TRADE_POSITION_DIRECTIONS, nt as MobileSocialFeedType, o as MobileFeedTradePositionDirection, p as MobileServerFeedTrade, q as MobileSocialFeedPositionDisplayBasis, r as MOBILE_FEED_TRADE_POSITION_EFFECTS, rt as MobileSocialFeedUnavailableTarget, s as MobileFeedTradePositionEffect, t as MOBILE_FEED_MARGIN_MODES, tt as MobileSocialFeedTraderDataStatus, u as MobileServerAvatarPreset, v as MobileServerNotificationPreferenceScope, w as MobileServerSocialFeedCohortCoverage, x as MobileServerSocialFeedAuthor, y as MobileServerNotificationPreferences, z as MobileServerSocialFeedViewTracking } from "./serverModelTypes-DAqEyYtB.cjs";
|
|
2
|
-
import { $ as
|
|
3
|
-
import { a as MobileSignedRequest, i as MobileSignedInnerParams, n as MobileSignedInner, r as MobileSignedInnerByType, t as BuildSignedMobileRequestParams } from "./types-
|
|
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-
|
|
2
|
+
import { $ as MobileSocialFeedItemBase, A as MobileNotificationCategoryPreference, B as MobileSetFollowBatchParams, C as MobileFeedTrade, D as MobileFollowMutationResult, E as MobileFollowListPage, F as MobilePublicProfile, G as MobileSocialFeedAuthor, H as MobileSetPrivateModeParams, I as MobileRegisterExpoTokenParams, J as MobileSocialFeedCohort, K as MobileSocialFeedCapabilities, L as MobileRegisteredWallet, M as MobileNotificationPreferences, N as MobileProfileSearchPage, O as MobileFollowSummary, P as MobileProfilesInclude, Q as MobileSocialFeedItem, R as MobileSetAvatarParams, S as MobileFeedPage, St as SearchMobileProfilesParams, T as MobileFollowListAccount, U as MobileSetUsernameParams, V as MobileSetFollowParams, W as MobileSignedRequestParams, X as MobileSocialFeedCommentPreview, Y as MobileSocialFeedCohortCoverage, Z as MobileSocialFeedInteraction, _ as MobileAvatarPreset, _t as MobileSocialFeedViewTracking, a as GetMobileFollowersParams, at as MobileSocialFeedPnl, b as MobileCreateAvatarUploadParams, bt as MobileUsernameAvailability, c as GetMobileFriendsFeedParams, ct as MobileSocialFeedRankedPage, d as GetMobilePositionFeedParams, dt as MobileSocialFeedTopTradersPage, et as MobileSocialFeedItemPatch, f as GetMobileProfileFeedParams, ft as MobileSocialFeedTradeCard, g as GetMobileUsernameAvailabilityParams, gt as MobileSocialFeedUpdates, h as GetMobileTopTradersFeedParams, ht as MobileSocialFeedTraderBadge, i as GetMobileFollowListParams, it as MobileSocialFeedPage, j as MobileNotificationPreferenceScope, k as MobileIdentitySummary, l as GetMobileMarketFeedParams, lt as MobileSocialFeedReadParams, m as GetMobileRegisteredWalletParams, mt as MobileSocialFeedTradeRowBase, n as GetMobileFeedParams, nt as MobileSocialFeedListParams, o as GetMobileFollowingParams, ot as MobileSocialFeedPositionCard, p as GetMobileProfilesParams, pt as MobileSocialFeedTradeRow, q as MobileSocialFeedCategorizedParams, r as GetMobileFeedUpdatesParams, rt as MobileSocialFeedMarket, s as GetMobileForYouFeedParams, st as MobileSocialFeedPositionPatch, t as GetMobileFeedItemParams, tt as MobileSocialFeedItemResponse, u as GetMobileNotificationPreferencesParams, ut as MobileSocialFeedReadSession, v as MobileAvatarSelection, vt as MobileUnregisterExpoTokenParams, w as MobileFollowBatchResultItem, x as MobileFeedMargin, xt as MobileWithExpoTokenParams, y as MobileAvatarUpload, yt as MobileUpdateNotificationPreferencesParams, z as MobileSetBioParams } from "./clientTypes-BWFKo9oE.cjs";
|
|
3
|
+
import { a as MobileSignedRequest, i as MobileSignedInnerParams, n as MobileSignedInner, r as MobileSignedInnerByType, t as BuildSignedMobileRequestParams } from "./types-BCr2G5gS.cjs";
|
|
4
|
+
import { t as buildSignedMobileRequest } from "./buildSignedMobileRequest-NHbMAPzd.cjs";
|
|
5
|
+
import { t as canonicalizeMobileInner } from "./canonicalize-BF_SiNvO.cjs";
|
|
6
|
+
import { t as MOBILE_EIP712_METHOD_BY_TYPE } from "./eip712MethodByType-BSx11xG-.cjs";
|
|
7
7
|
import { t as getMobileNonce } from "./nonce-7swNuPgu.cjs";
|
|
8
|
-
import { t as getMobilePayloadHash } from "./payloadHash-
|
|
9
|
-
import { a as MobileServerPublicExecuteRequestType, c as MobileServerRequestType, d as MobileServerSocialFeedReadParams, i as MobileServerPublicExecuteRequestByType, l as
|
|
10
|
-
import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "./serverBaseTypes-
|
|
11
|
-
import { a as MobileServerExecuteSuccessResponse, i as MobileServerExecuteResult, n as MobileServerEmptyExecuteResponse, o as
|
|
12
|
-
import { a as MobileServerProfilesResponse, c as MobileServerPublicQuerySuccessResponse, d as
|
|
8
|
+
import { t as getMobilePayloadHash } from "./payloadHash-BOWGjqdb.cjs";
|
|
9
|
+
import { a as MobileServerPublicExecuteRequestType, c as MobileServerRequestType, d as MobileServerSocialFeedListParams, f as MobileServerSocialFeedReadParams, i as MobileServerPublicExecuteRequestByType, l as MobileServerSearchProfilesRequest, n as MobileServerFollowListRequest, o as MobileServerPublicQueryRequestByType, r as MobileServerProfilesInclude, s as MobileServerPublicQueryRequestType, t as MobileServerExecuteRequestType, u as MobileServerSocialFeedCategorizedParams } from "./serverRequestTypes-CxDRFKfv.cjs";
|
|
10
|
+
import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "./serverBaseTypes-KREDe2M9.cjs";
|
|
11
|
+
import { a as MobileServerExecuteSuccessResponse, c as MobileServerFollowMutationResponse, i as MobileServerExecuteResult, l as MobileServerPublicExecuteRequest, n as MobileServerEmptyExecuteResponse, o as MobileServerFollowBatchResponse, r as MobileServerExecuteResponseByType, s as MobileServerFollowBatchResultItem, t as MobileServerAvatarUploadResponse } from "./serverExecuteTypes-DVRa6ifu.cjs";
|
|
12
|
+
import { a as MobileServerProfilesResponse, c as MobileServerPublicQuerySuccessResponse, d as MobileServerSocialFeedItemResponse, f as MobileServerSocialFeedRankedResponse, g as MobileServerUsernameAvailabilityResponse, h as MobileServerSocialFeedUpdatesResponse, i as MobileServerNotificationPreferencesResponse, l as MobileServerRegisteredWalletResponse, m as MobileServerSocialFeedTopTradersResponse, n as MobileServerFeedResponse, o as MobileServerPublicQueryRequest, p as MobileServerSocialFeedResponse, r as MobileServerFollowListResponse, s as MobileServerPublicQueryResponseByType, t as MobileServerAvatarPresetsResponse, u as MobileServerSearchProfilesResponse } from "./serverQueryTypes-DNdMpmDr.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-3LtreeZM.cjs";
|
|
16
|
+
import { t as MobileServerFailureError } from "./MobileServerFailureError-Bpa_WA9f.cjs";
|
|
17
17
|
import { n as MOBILE_FEED_MIN_NOTIONAL_FLOOR, t as MOBILE_FEED_MAX_PAGE_SIZE } from "./feed-DTJlsg8W.cjs";
|
|
18
|
-
import {
|
|
19
|
-
import { t as MOBILE_DISPLAY_NAME_PATTERN } from "./patterns-
|
|
18
|
+
import { a as MOBILE_PROFILES_MAX_BATCH_SIZE, i as MOBILE_FOLLOW_LIST_MAX_PAGE_SIZE, n as MOBILE_FOLLOW_BATCH_MAX_SIZE, r as MOBILE_FOLLOW_LIST_DEFAULT_PAGE_SIZE, t as MOBILE_FOLLOWED_BY_PREVIEW_LIMIT } from "./follow-B3CZ04c0.cjs";
|
|
19
|
+
import { n as MOBILE_PROFILE_SEARCH_QUERY_PATTERN, t as MOBILE_DISPLAY_NAME_PATTERN } from "./patterns-3UKIG5IS.cjs";
|
|
20
20
|
import { n as MOBILE_BIO_MAX_LENGTH, r as isValidMobileBio, t as MOBILE_AVATAR_MAX_UPLOAD_BYTES } from "./profile-BozA3yVP.cjs";
|
|
21
|
-
import { n as
|
|
22
|
-
|
|
21
|
+
import { n as MOBILE_PROFILE_SEARCH_MAX_PAGE_SIZE, t as MOBILE_PROFILE_SEARCH_MAX_ENRICHED_PAGE_SIZE } from "./profileSearch-DCuB-IKD.cjs";
|
|
22
|
+
import { n as isMobileServerSuccessResponse, t as isMobileServerFailureResponse } from "./serverResponseGuards-Dkdok0Sm.cjs";
|
|
23
|
+
export { BuildSignedMobileRequestParams, GetMobileFeedItemParams, GetMobileFeedParams, GetMobileFeedUpdatesParams, GetMobileFollowListParams, GetMobileFollowersParams, GetMobileFollowingParams, GetMobileForYouFeedParams, GetMobileFriendsFeedParams, GetMobileMarketFeedParams, GetMobileNotificationPreferencesParams, GetMobilePositionFeedParams, GetMobileProfileFeedParams, GetMobileProfilesParams, GetMobileRegisteredWalletParams, GetMobileTopTradersFeedParams, GetMobileUsernameAvailabilityParams, MOBILE_AVATAR_MAX_UPLOAD_BYTES, MOBILE_BIO_MAX_LENGTH, 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_BATCH_MAX_SIZE, MOBILE_FOLLOW_LIST_DEFAULT_PAGE_SIZE, MOBILE_FOLLOW_LIST_MAX_PAGE_SIZE, MOBILE_PROFILES_MAX_BATCH_SIZE, MOBILE_PROFILE_SEARCH_MAX_ENRICHED_PAGE_SIZE, MOBILE_PROFILE_SEARCH_MAX_PAGE_SIZE, MOBILE_PROFILE_SEARCH_QUERY_PATTERN, MobileAvatarPreset, MobileAvatarSelection, MobileAvatarUpload, MobileClient, MobileClientOpts, MobileCreateAvatarUploadParams, MobileErrorCode, MobileFeedMargin, MobileFeedMarginMode, MobileFeedPage, MobileFeedTrade, MobileFeedTradePosition, MobileFeedTradePositionDirection, MobileFeedTradePositionEffect, MobileFollowBatchResultItem, MobileFollowListAccount, MobileFollowListPage, MobileFollowMutationResult, MobileFollowSummary, MobileIdentitySummary, MobileNotificationCategory, MobileNotificationCategoryPreference, MobileNotificationPlatform, MobileNotificationPreferenceScope, MobileNotificationPreferences, MobileProfileSearchPage, MobileProfilesInclude, MobilePublicProfile, MobileRegisterExpoTokenParams, MobileRegisteredWallet, MobileServerAvatarPreset, MobileServerAvatarPresetsResponse, MobileServerAvatarSelection, MobileServerAvatarUploadResponse, MobileServerEmptyExecuteResponse, MobileServerExecuteRequestType, MobileServerExecuteResponseByType, MobileServerExecuteResult, MobileServerExecuteSuccessResponse, MobileServerFailureError, MobileServerFailureResponse, MobileServerFeedMargin, MobileServerFeedResponse, MobileServerFeedTrade, MobileServerFollowBatchResponse, MobileServerFollowBatchResultItem, MobileServerFollowListAccount, MobileServerFollowListRequest, MobileServerFollowListResponse, MobileServerFollowMutationResponse, MobileServerFollowSummary, MobileServerIdentitySummary, MobileServerNotificationCategoryPreference, MobileServerNotificationPreferenceScope, MobileServerNotificationPreferences, MobileServerNotificationPreferencesResponse, MobileServerProfile, MobileServerProfilesInclude, MobileServerProfilesResponse, MobileServerPublicExecuteRequest, MobileServerPublicExecuteRequestByType, MobileServerPublicExecuteRequestType, MobileServerPublicQueryRequest, MobileServerPublicQueryRequestByType, MobileServerPublicQueryRequestType, MobileServerPublicQueryResponseByType, MobileServerPublicQuerySuccessResponse, MobileServerRegisteredWalletResponse, MobileServerRequestType, MobileServerSearchProfilesRequest, MobileServerSearchProfilesResponse, MobileServerSocialFeedAuthor, MobileServerSocialFeedCapabilities, MobileServerSocialFeedCategorizedParams, MobileServerSocialFeedCohort, MobileServerSocialFeedCohortCoverage, MobileServerSocialFeedCommentPreview, MobileServerSocialFeedInteraction, MobileServerSocialFeedItem, MobileServerSocialFeedItemBase, MobileServerSocialFeedItemPatch, MobileServerSocialFeedItemResponse, MobileServerSocialFeedListParams, MobileServerSocialFeedMarket, MobileServerSocialFeedPnl, MobileServerSocialFeedPositionCard, MobileServerSocialFeedPositionPatch, MobileServerSocialFeedRankedResponse, MobileServerSocialFeedReadParams, MobileServerSocialFeedReadSession, MobileServerSocialFeedResponse, MobileServerSocialFeedTopTradersResponse, MobileServerSocialFeedTradeCard, MobileServerSocialFeedTradeRow, MobileServerSocialFeedTradeRowBase, MobileServerSocialFeedTraderBadge, MobileServerSocialFeedUpdatesResponse, MobileServerSocialFeedViewTracking, MobileServerSuccessResponse, MobileServerUsernameAvailabilityResponse, MobileSetAvatarParams, MobileSetBioParams, MobileSetFollowBatchParams, MobileSetFollowParams, MobileSetPrivateModeParams, MobileSetUsernameParams, MobileSignedInner, MobileSignedInnerByType, MobileSignedInnerParams, MobileSignedRequest, MobileSignedRequestParams, MobileSocialFeedAuthor, MobileSocialFeedCapabilities, MobileSocialFeedCategorizedParams, MobileSocialFeedCohort, MobileSocialFeedCohortCoverage, MobileSocialFeedCohortStatus, MobileSocialFeedCommentPreview, MobileSocialFeedHistoryQuality, MobileSocialFeedInteraction, MobileSocialFeedItem, MobileSocialFeedItemBase, MobileSocialFeedItemPatch, MobileSocialFeedItemResponse, MobileSocialFeedLeverage, MobileSocialFeedListParams, MobileSocialFeedMarket, MobileSocialFeedMarketCategory, MobileSocialFeedPage, MobileSocialFeedPnl, MobileSocialFeedPnlBasis, MobileSocialFeedPnlMode, MobileSocialFeedPnlQuality, MobileSocialFeedPositionCard, MobileSocialFeedPositionDisplayBasis, MobileSocialFeedPositionPatch, MobileSocialFeedPositionState, MobileSocialFeedRankedPage, MobileSocialFeedReadParams, MobileSocialFeedReadSession, MobileSocialFeedReadSessionMode, MobileSocialFeedSourceCategory, MobileSocialFeedTargetType, MobileSocialFeedTopTradersPage, MobileSocialFeedTradeCard, MobileSocialFeedTradeCardAction, MobileSocialFeedTradeRow, MobileSocialFeedTradeRowBase, MobileSocialFeedTradeSizeChangeAction, MobileSocialFeedTraderBadge, MobileSocialFeedTraderBadgeCode, MobileSocialFeedTraderDataStatus, MobileSocialFeedType, MobileSocialFeedUnavailableTarget, MobileSocialFeedUpdates, MobileSocialFeedViewTracking, MobileUnregisterExpoTokenParams, MobileUpdateNotificationPreferencesParams, MobileUsernameAvailability, MobileWithExpoTokenParams, SearchMobileProfilesParams, buildSignedMobileRequest, canonicalizeMobileInner, getMobileNonce, getMobilePayloadHash, isMobileServerFailureResponse, isMobileServerSuccessResponse, isValidMobileBio };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
import { $ as MobileSocialFeedTradeSizeChangeAction, A as MobileServerSocialFeedMarket, B as MobileSocialFeedCohortStatus, C as MobileServerSocialFeedCohort, D as MobileServerSocialFeedItem, E as MobileServerSocialFeedInteraction, F as MobileServerSocialFeedTradeCard, G as MobileSocialFeedPnlMode, H as MobileSocialFeedLeverage, I as MobileServerSocialFeedTradeRow, J as MobileSocialFeedPositionState, K as MobileSocialFeedPnlQuality, L as MobileServerSocialFeedTradeRowBase, M as MobileServerSocialFeedPositionCard, N as MobileServerSocialFeedPositionPatch, O as MobileServerSocialFeedItemBase, P as MobileServerSocialFeedReadSession, Q as MobileSocialFeedTradeCardAction, R as MobileServerSocialFeedTraderBadge, S as MobileServerSocialFeedCapabilities, T as MobileServerSocialFeedCommentPreview, U as MobileSocialFeedMarketCategory, V as MobileSocialFeedHistoryQuality, W as MobileSocialFeedPnlBasis, X as MobileSocialFeedSourceCategory, Y as MobileSocialFeedReadSessionMode, Z as MobileSocialFeedTargetType, _ as MobileServerNotificationCategoryPreference, a as MobileFeedTradePosition, b as MobileServerProfile, c as MobileNotificationCategory, d as MobileServerAvatarSelection, et as MobileSocialFeedTraderBadgeCode, f as MobileServerFeedMargin, g as MobileServerIdentitySummary, h as MobileServerFollowSummary, i as MobileFeedMarginMode, j as MobileServerSocialFeedPnl, k as MobileServerSocialFeedItemPatch, l as MobileNotificationPlatform, m as MobileServerFollowListAccount, n as MOBILE_FEED_TRADE_POSITION_DIRECTIONS, nt as MobileSocialFeedType, o as MobileFeedTradePositionDirection, p as MobileServerFeedTrade, q as MobileSocialFeedPositionDisplayBasis, r as MOBILE_FEED_TRADE_POSITION_EFFECTS, rt as MobileSocialFeedUnavailableTarget, s as MobileFeedTradePositionEffect, t as MOBILE_FEED_MARGIN_MODES, tt as MobileSocialFeedTraderDataStatus, u as MobileServerAvatarPreset, v as MobileServerNotificationPreferenceScope, w as MobileServerSocialFeedCohortCoverage, x as MobileServerSocialFeedAuthor, y as MobileServerNotificationPreferences, z as MobileServerSocialFeedViewTracking } from "./serverModelTypes-DAqEyYtB.js";
|
|
2
|
-
import { $ as
|
|
3
|
-
import { a as MobileSignedRequest, i as MobileSignedInnerParams, n as MobileSignedInner, r as MobileSignedInnerByType, t as BuildSignedMobileRequestParams } from "./types-
|
|
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-
|
|
2
|
+
import { $ as MobileSocialFeedItemBase, A as MobileNotificationCategoryPreference, B as MobileSetFollowBatchParams, C as MobileFeedTrade, D as MobileFollowMutationResult, E as MobileFollowListPage, F as MobilePublicProfile, G as MobileSocialFeedAuthor, H as MobileSetPrivateModeParams, I as MobileRegisterExpoTokenParams, J as MobileSocialFeedCohort, K as MobileSocialFeedCapabilities, L as MobileRegisteredWallet, M as MobileNotificationPreferences, N as MobileProfileSearchPage, O as MobileFollowSummary, P as MobileProfilesInclude, Q as MobileSocialFeedItem, R as MobileSetAvatarParams, S as MobileFeedPage, St as SearchMobileProfilesParams, T as MobileFollowListAccount, U as MobileSetUsernameParams, V as MobileSetFollowParams, W as MobileSignedRequestParams, X as MobileSocialFeedCommentPreview, Y as MobileSocialFeedCohortCoverage, Z as MobileSocialFeedInteraction, _ as MobileAvatarPreset, _t as MobileSocialFeedViewTracking, a as GetMobileFollowersParams, at as MobileSocialFeedPnl, b as MobileCreateAvatarUploadParams, bt as MobileUsernameAvailability, c as GetMobileFriendsFeedParams, ct as MobileSocialFeedRankedPage, d as GetMobilePositionFeedParams, dt as MobileSocialFeedTopTradersPage, et as MobileSocialFeedItemPatch, f as GetMobileProfileFeedParams, ft as MobileSocialFeedTradeCard, g as GetMobileUsernameAvailabilityParams, gt as MobileSocialFeedUpdates, h as GetMobileTopTradersFeedParams, ht as MobileSocialFeedTraderBadge, i as GetMobileFollowListParams, it as MobileSocialFeedPage, j as MobileNotificationPreferenceScope, k as MobileIdentitySummary, l as GetMobileMarketFeedParams, lt as MobileSocialFeedReadParams, m as GetMobileRegisteredWalletParams, mt as MobileSocialFeedTradeRowBase, n as GetMobileFeedParams, nt as MobileSocialFeedListParams, o as GetMobileFollowingParams, ot as MobileSocialFeedPositionCard, p as GetMobileProfilesParams, pt as MobileSocialFeedTradeRow, q as MobileSocialFeedCategorizedParams, r as GetMobileFeedUpdatesParams, rt as MobileSocialFeedMarket, s as GetMobileForYouFeedParams, st as MobileSocialFeedPositionPatch, t as GetMobileFeedItemParams, tt as MobileSocialFeedItemResponse, u as GetMobileNotificationPreferencesParams, ut as MobileSocialFeedReadSession, v as MobileAvatarSelection, vt as MobileUnregisterExpoTokenParams, w as MobileFollowBatchResultItem, x as MobileFeedMargin, xt as MobileWithExpoTokenParams, y as MobileAvatarUpload, yt as MobileUpdateNotificationPreferencesParams, z as MobileSetBioParams } from "./clientTypes-DCTiUV0H.js";
|
|
3
|
+
import { a as MobileSignedRequest, i as MobileSignedInnerParams, n as MobileSignedInner, r as MobileSignedInnerByType, t as BuildSignedMobileRequestParams } from "./types-C18k-9Vy.js";
|
|
4
|
+
import { t as buildSignedMobileRequest } from "./buildSignedMobileRequest-Cb1T74xV.js";
|
|
5
|
+
import { t as canonicalizeMobileInner } from "./canonicalize-BBYGh17w.js";
|
|
6
|
+
import { t as MOBILE_EIP712_METHOD_BY_TYPE } from "./eip712MethodByType-DkiAjCLs.js";
|
|
7
7
|
import { t as getMobileNonce } from "./nonce-7swNuPgu.js";
|
|
8
|
-
import { t as getMobilePayloadHash } from "./payloadHash-
|
|
9
|
-
import { a as MobileServerPublicExecuteRequestType, c as MobileServerRequestType, d as MobileServerSocialFeedReadParams, i as MobileServerPublicExecuteRequestByType, l as
|
|
10
|
-
import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "./serverBaseTypes-
|
|
11
|
-
import { a as MobileServerExecuteSuccessResponse, i as MobileServerExecuteResult, n as MobileServerEmptyExecuteResponse, o as
|
|
12
|
-
import { a as MobileServerProfilesResponse, c as MobileServerPublicQuerySuccessResponse, d as
|
|
8
|
+
import { t as getMobilePayloadHash } from "./payloadHash-Bzf4CtjV.js";
|
|
9
|
+
import { a as MobileServerPublicExecuteRequestType, c as MobileServerRequestType, d as MobileServerSocialFeedListParams, f as MobileServerSocialFeedReadParams, i as MobileServerPublicExecuteRequestByType, l as MobileServerSearchProfilesRequest, n as MobileServerFollowListRequest, o as MobileServerPublicQueryRequestByType, r as MobileServerProfilesInclude, s as MobileServerPublicQueryRequestType, t as MobileServerExecuteRequestType, u as MobileServerSocialFeedCategorizedParams } from "./serverRequestTypes-BNA7FCY6.js";
|
|
10
|
+
import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "./serverBaseTypes-DWf3iGWy.js";
|
|
11
|
+
import { a as MobileServerExecuteSuccessResponse, c as MobileServerFollowMutationResponse, i as MobileServerExecuteResult, l as MobileServerPublicExecuteRequest, n as MobileServerEmptyExecuteResponse, o as MobileServerFollowBatchResponse, r as MobileServerExecuteResponseByType, s as MobileServerFollowBatchResultItem, t as MobileServerAvatarUploadResponse } from "./serverExecuteTypes-DlYZCp1f.js";
|
|
12
|
+
import { a as MobileServerProfilesResponse, c as MobileServerPublicQuerySuccessResponse, d as MobileServerSocialFeedItemResponse, f as MobileServerSocialFeedRankedResponse, g as MobileServerUsernameAvailabilityResponse, h as MobileServerSocialFeedUpdatesResponse, i as MobileServerNotificationPreferencesResponse, l as MobileServerRegisteredWalletResponse, m as MobileServerSocialFeedTopTradersResponse, n as MobileServerFeedResponse, o as MobileServerPublicQueryRequest, p as MobileServerSocialFeedResponse, r as MobileServerFollowListResponse, s as MobileServerPublicQueryResponseByType, t as MobileServerAvatarPresetsResponse, u as MobileServerSearchProfilesResponse } from "./serverQueryTypes-BFdwq0Z2.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-3LtreeZM.js";
|
|
16
|
+
import { t as MobileServerFailureError } from "./MobileServerFailureError-Dd3c6P_Z.js";
|
|
17
17
|
import { n as MOBILE_FEED_MIN_NOTIONAL_FLOOR, t as MOBILE_FEED_MAX_PAGE_SIZE } from "./feed-DTJlsg8W.js";
|
|
18
|
-
import {
|
|
19
|
-
import { t as MOBILE_DISPLAY_NAME_PATTERN } from "./patterns-
|
|
18
|
+
import { a as MOBILE_PROFILES_MAX_BATCH_SIZE, i as MOBILE_FOLLOW_LIST_MAX_PAGE_SIZE, n as MOBILE_FOLLOW_BATCH_MAX_SIZE, r as MOBILE_FOLLOW_LIST_DEFAULT_PAGE_SIZE, t as MOBILE_FOLLOWED_BY_PREVIEW_LIMIT } from "./follow-B3CZ04c0.js";
|
|
19
|
+
import { n as MOBILE_PROFILE_SEARCH_QUERY_PATTERN, t as MOBILE_DISPLAY_NAME_PATTERN } from "./patterns-3UKIG5IS.js";
|
|
20
20
|
import { n as MOBILE_BIO_MAX_LENGTH, r as isValidMobileBio, t as MOBILE_AVATAR_MAX_UPLOAD_BYTES } from "./profile-BozA3yVP.js";
|
|
21
|
-
import { n as
|
|
22
|
-
|
|
21
|
+
import { n as MOBILE_PROFILE_SEARCH_MAX_PAGE_SIZE, t as MOBILE_PROFILE_SEARCH_MAX_ENRICHED_PAGE_SIZE } from "./profileSearch-DCuB-IKD.js";
|
|
22
|
+
import { n as isMobileServerSuccessResponse, t as isMobileServerFailureResponse } from "./serverResponseGuards-BU1Xv_tG.js";
|
|
23
|
+
export { BuildSignedMobileRequestParams, GetMobileFeedItemParams, GetMobileFeedParams, GetMobileFeedUpdatesParams, GetMobileFollowListParams, GetMobileFollowersParams, GetMobileFollowingParams, GetMobileForYouFeedParams, GetMobileFriendsFeedParams, GetMobileMarketFeedParams, GetMobileNotificationPreferencesParams, GetMobilePositionFeedParams, GetMobileProfileFeedParams, GetMobileProfilesParams, GetMobileRegisteredWalletParams, GetMobileTopTradersFeedParams, GetMobileUsernameAvailabilityParams, MOBILE_AVATAR_MAX_UPLOAD_BYTES, MOBILE_BIO_MAX_LENGTH, 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_BATCH_MAX_SIZE, MOBILE_FOLLOW_LIST_DEFAULT_PAGE_SIZE, MOBILE_FOLLOW_LIST_MAX_PAGE_SIZE, MOBILE_PROFILES_MAX_BATCH_SIZE, MOBILE_PROFILE_SEARCH_MAX_ENRICHED_PAGE_SIZE, MOBILE_PROFILE_SEARCH_MAX_PAGE_SIZE, MOBILE_PROFILE_SEARCH_QUERY_PATTERN, MobileAvatarPreset, MobileAvatarSelection, MobileAvatarUpload, MobileClient, MobileClientOpts, MobileCreateAvatarUploadParams, MobileErrorCode, MobileFeedMargin, MobileFeedMarginMode, MobileFeedPage, MobileFeedTrade, MobileFeedTradePosition, MobileFeedTradePositionDirection, MobileFeedTradePositionEffect, MobileFollowBatchResultItem, MobileFollowListAccount, MobileFollowListPage, MobileFollowMutationResult, MobileFollowSummary, MobileIdentitySummary, MobileNotificationCategory, MobileNotificationCategoryPreference, MobileNotificationPlatform, MobileNotificationPreferenceScope, MobileNotificationPreferences, MobileProfileSearchPage, MobileProfilesInclude, MobilePublicProfile, MobileRegisterExpoTokenParams, MobileRegisteredWallet, MobileServerAvatarPreset, MobileServerAvatarPresetsResponse, MobileServerAvatarSelection, MobileServerAvatarUploadResponse, MobileServerEmptyExecuteResponse, MobileServerExecuteRequestType, MobileServerExecuteResponseByType, MobileServerExecuteResult, MobileServerExecuteSuccessResponse, MobileServerFailureError, MobileServerFailureResponse, MobileServerFeedMargin, MobileServerFeedResponse, MobileServerFeedTrade, MobileServerFollowBatchResponse, MobileServerFollowBatchResultItem, MobileServerFollowListAccount, MobileServerFollowListRequest, MobileServerFollowListResponse, MobileServerFollowMutationResponse, MobileServerFollowSummary, MobileServerIdentitySummary, MobileServerNotificationCategoryPreference, MobileServerNotificationPreferenceScope, MobileServerNotificationPreferences, MobileServerNotificationPreferencesResponse, MobileServerProfile, MobileServerProfilesInclude, MobileServerProfilesResponse, MobileServerPublicExecuteRequest, MobileServerPublicExecuteRequestByType, MobileServerPublicExecuteRequestType, MobileServerPublicQueryRequest, MobileServerPublicQueryRequestByType, MobileServerPublicQueryRequestType, MobileServerPublicQueryResponseByType, MobileServerPublicQuerySuccessResponse, MobileServerRegisteredWalletResponse, MobileServerRequestType, MobileServerSearchProfilesRequest, MobileServerSearchProfilesResponse, MobileServerSocialFeedAuthor, MobileServerSocialFeedCapabilities, MobileServerSocialFeedCategorizedParams, MobileServerSocialFeedCohort, MobileServerSocialFeedCohortCoverage, MobileServerSocialFeedCommentPreview, MobileServerSocialFeedInteraction, MobileServerSocialFeedItem, MobileServerSocialFeedItemBase, MobileServerSocialFeedItemPatch, MobileServerSocialFeedItemResponse, MobileServerSocialFeedListParams, MobileServerSocialFeedMarket, MobileServerSocialFeedPnl, MobileServerSocialFeedPositionCard, MobileServerSocialFeedPositionPatch, MobileServerSocialFeedRankedResponse, MobileServerSocialFeedReadParams, MobileServerSocialFeedReadSession, MobileServerSocialFeedResponse, MobileServerSocialFeedTopTradersResponse, MobileServerSocialFeedTradeCard, MobileServerSocialFeedTradeRow, MobileServerSocialFeedTradeRowBase, MobileServerSocialFeedTraderBadge, MobileServerSocialFeedUpdatesResponse, MobileServerSocialFeedViewTracking, MobileServerSuccessResponse, MobileServerUsernameAvailabilityResponse, MobileSetAvatarParams, MobileSetBioParams, MobileSetFollowBatchParams, MobileSetFollowParams, MobileSetPrivateModeParams, MobileSetUsernameParams, MobileSignedInner, MobileSignedInnerByType, MobileSignedInnerParams, MobileSignedRequest, MobileSignedRequestParams, MobileSocialFeedAuthor, MobileSocialFeedCapabilities, MobileSocialFeedCategorizedParams, MobileSocialFeedCohort, MobileSocialFeedCohortCoverage, MobileSocialFeedCohortStatus, MobileSocialFeedCommentPreview, MobileSocialFeedHistoryQuality, MobileSocialFeedInteraction, MobileSocialFeedItem, MobileSocialFeedItemBase, MobileSocialFeedItemPatch, MobileSocialFeedItemResponse, MobileSocialFeedLeverage, MobileSocialFeedListParams, MobileSocialFeedMarket, MobileSocialFeedMarketCategory, MobileSocialFeedPage, MobileSocialFeedPnl, MobileSocialFeedPnlBasis, MobileSocialFeedPnlMode, MobileSocialFeedPnlQuality, MobileSocialFeedPositionCard, MobileSocialFeedPositionDisplayBasis, MobileSocialFeedPositionPatch, MobileSocialFeedPositionState, MobileSocialFeedRankedPage, MobileSocialFeedReadParams, MobileSocialFeedReadSession, MobileSocialFeedReadSessionMode, MobileSocialFeedSourceCategory, MobileSocialFeedTargetType, MobileSocialFeedTopTradersPage, MobileSocialFeedTradeCard, MobileSocialFeedTradeCardAction, MobileSocialFeedTradeRow, MobileSocialFeedTradeRowBase, MobileSocialFeedTradeSizeChangeAction, MobileSocialFeedTraderBadge, MobileSocialFeedTraderBadgeCode, MobileSocialFeedTraderDataStatus, MobileSocialFeedType, MobileSocialFeedUnavailableTarget, MobileSocialFeedUpdates, MobileSocialFeedViewTracking, MobileUnregisterExpoTokenParams, MobileUpdateNotificationPreferencesParams, MobileUsernameAvailability, MobileWithExpoTokenParams, SearchMobileProfilesParams, buildSignedMobileRequest, canonicalizeMobileInner, getMobileNonce, getMobilePayloadHash, isMobileServerFailureResponse, isMobileServerSuccessResponse, isValidMobileBio };
|
package/dist/index.js
CHANGED
|
@@ -12,8 +12,9 @@ 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";
|
|
16
|
-
import { MOBILE_DISPLAY_NAME_PATTERN } from "./utils/patterns.js";
|
|
15
|
+
import { MOBILE_FOLLOWED_BY_PREVIEW_LIMIT, MOBILE_FOLLOW_BATCH_MAX_SIZE, MOBILE_FOLLOW_LIST_DEFAULT_PAGE_SIZE, MOBILE_FOLLOW_LIST_MAX_PAGE_SIZE, MOBILE_PROFILES_MAX_BATCH_SIZE } from "./utils/follow.js";
|
|
16
|
+
import { MOBILE_DISPLAY_NAME_PATTERN, MOBILE_PROFILE_SEARCH_QUERY_PATTERN } from "./utils/patterns.js";
|
|
17
17
|
import { MOBILE_AVATAR_MAX_UPLOAD_BYTES, MOBILE_BIO_MAX_LENGTH, isValidMobileBio } from "./utils/profile.js";
|
|
18
|
+
import { MOBILE_PROFILE_SEARCH_MAX_ENRICHED_PAGE_SIZE, MOBILE_PROFILE_SEARCH_MAX_PAGE_SIZE } from "./utils/profileSearch.js";
|
|
18
19
|
import "./utils/index.js";
|
|
19
|
-
export { MOBILE_AVATAR_MAX_UPLOAD_BYTES, MOBILE_BIO_MAX_LENGTH, 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, isValidMobileBio };
|
|
20
|
+
export { MOBILE_AVATAR_MAX_UPLOAD_BYTES, MOBILE_BIO_MAX_LENGTH, 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_BATCH_MAX_SIZE, MOBILE_FOLLOW_LIST_DEFAULT_PAGE_SIZE, MOBILE_FOLLOW_LIST_MAX_PAGE_SIZE, MOBILE_PROFILES_MAX_BATCH_SIZE, MOBILE_PROFILE_SEARCH_MAX_ENRICHED_PAGE_SIZE, MOBILE_PROFILE_SEARCH_MAX_PAGE_SIZE, MOBILE_PROFILE_SEARCH_QUERY_PATTERN, MobileClient, MobileServerFailureError, buildSignedMobileRequest, canonicalizeMobileInner, getMobileNonce, getMobilePayloadHash, isMobileServerFailureResponse, isMobileServerSuccessResponse, isValidMobileBio };
|
|
@@ -10,14 +10,25 @@ declare const MOBILE_ERROR_CODES: {
|
|
|
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
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;
|
|
13
|
+
readonly INVALID_PROFILES_REQUEST: 6107;
|
|
14
|
+
/**
|
|
15
|
+
* Profile search query is outside the username alphabet or length, or its limit is out of range. Do not
|
|
16
|
+
* retry unchanged.
|
|
17
|
+
*/
|
|
18
|
+
readonly INVALID_PROFILE_SEARCH_REQUEST: 6108;
|
|
19
|
+
/**
|
|
20
|
+
* Profile search cursor is malformed, oversized, or was issued for a different query. Restart from
|
|
21
|
+
* `cursor: undefined`.
|
|
22
|
+
*/
|
|
23
|
+
readonly INVALID_PROFILE_SEARCH_CURSOR: 6109; /** Follow mutation names the same source and target, or an isolated participant. Do not retry unchanged. */
|
|
14
24
|
readonly INVALID_FOLLOW_TARGET: 6110; /** Signed follower is not yet in the canonical Query DB subaccount index. Retry after index catch-up. */
|
|
15
25
|
readonly FOLLOWER_NOT_ELIGIBLE: 6111; /** Follow target is not yet in the canonical Query DB subaccount index. Refresh after a new record. */
|
|
16
26
|
readonly FOLLOWING_NOT_FOUND: 6112; /** Follow list cursor is malformed or bound to a different list request. Restart from `cursor: null`. */
|
|
17
27
|
readonly INVALID_FOLLOW_CURSOR: 6113; /** A follow list or followed-by limit is outside its accepted range. Fix it; do not retry unchanged. */
|
|
18
28
|
readonly INVALID_FOLLOW_LIMIT: 6114; /** Biography exceeds the maximum length or contains a null character. */
|
|
19
29
|
readonly INVALID_BIO: 6115; /** Invalid preset, upload size, staging key, or image. Correct the selection before retrying. */
|
|
20
|
-
readonly INVALID_AVATAR: 6116;
|
|
30
|
+
readonly INVALID_AVATAR: 6116; /** Follow batch is empty, holds duplicates, or exceeds the batch maximum. Do not retry unchanged. */
|
|
31
|
+
readonly INVALID_FOLLOW_BATCH: 6117;
|
|
21
32
|
readonly INVALID_EXPO_TOKEN: 6200;
|
|
22
33
|
readonly INVALID_DEVICE_METADATA: 6201;
|
|
23
34
|
readonly INVALID_PREFERENCES: 6202; /** Feed `minimumNotional` or `limit` is outside its allowed domain. Fix the request; do not retry unchanged. */
|
|
@@ -50,4 +61,4 @@ declare const MOBILE_ERROR_CODES: {
|
|
|
50
61
|
type MobileErrorCode = (typeof MOBILE_ERROR_CODES)[keyof typeof MOBILE_ERROR_CODES];
|
|
51
62
|
//#endregion
|
|
52
63
|
export { MobileErrorCode as n, MOBILE_ERROR_CODES as t };
|
|
53
|
-
//# sourceMappingURL=mobileErrorCodes-
|
|
64
|
+
//# sourceMappingURL=mobileErrorCodes-3LtreeZM.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mobileErrorCodes-3LtreeZM.d.cts","names":[],"sources":["../src/types/src/types/mobileErrorCodes.ts"],"mappings":";;AAOA;;;;cAAa,kBAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6CA4Dc;EAAA,6CACjB;EAAA;;;;;;;;;;;;;;;;;;;;;;KADE,eAAA,WACF,kBAAA,eAAiC,kBAAkB"}
|
|
@@ -10,14 +10,25 @@ declare const MOBILE_ERROR_CODES: {
|
|
|
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
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;
|
|
13
|
+
readonly INVALID_PROFILES_REQUEST: 6107;
|
|
14
|
+
/**
|
|
15
|
+
* Profile search query is outside the username alphabet or length, or its limit is out of range. Do not
|
|
16
|
+
* retry unchanged.
|
|
17
|
+
*/
|
|
18
|
+
readonly INVALID_PROFILE_SEARCH_REQUEST: 6108;
|
|
19
|
+
/**
|
|
20
|
+
* Profile search cursor is malformed, oversized, or was issued for a different query. Restart from
|
|
21
|
+
* `cursor: undefined`.
|
|
22
|
+
*/
|
|
23
|
+
readonly INVALID_PROFILE_SEARCH_CURSOR: 6109; /** Follow mutation names the same source and target, or an isolated participant. Do not retry unchanged. */
|
|
14
24
|
readonly INVALID_FOLLOW_TARGET: 6110; /** Signed follower is not yet in the canonical Query DB subaccount index. Retry after index catch-up. */
|
|
15
25
|
readonly FOLLOWER_NOT_ELIGIBLE: 6111; /** Follow target is not yet in the canonical Query DB subaccount index. Refresh after a new record. */
|
|
16
26
|
readonly FOLLOWING_NOT_FOUND: 6112; /** Follow list cursor is malformed or bound to a different list request. Restart from `cursor: null`. */
|
|
17
27
|
readonly INVALID_FOLLOW_CURSOR: 6113; /** A follow list or followed-by limit is outside its accepted range. Fix it; do not retry unchanged. */
|
|
18
28
|
readonly INVALID_FOLLOW_LIMIT: 6114; /** Biography exceeds the maximum length or contains a null character. */
|
|
19
29
|
readonly INVALID_BIO: 6115; /** Invalid preset, upload size, staging key, or image. Correct the selection before retrying. */
|
|
20
|
-
readonly INVALID_AVATAR: 6116;
|
|
30
|
+
readonly INVALID_AVATAR: 6116; /** Follow batch is empty, holds duplicates, or exceeds the batch maximum. Do not retry unchanged. */
|
|
31
|
+
readonly INVALID_FOLLOW_BATCH: 6117;
|
|
21
32
|
readonly INVALID_EXPO_TOKEN: 6200;
|
|
22
33
|
readonly INVALID_DEVICE_METADATA: 6201;
|
|
23
34
|
readonly INVALID_PREFERENCES: 6202; /** Feed `minimumNotional` or `limit` is outside its allowed domain. Fix the request; do not retry unchanged. */
|
|
@@ -50,4 +61,4 @@ declare const MOBILE_ERROR_CODES: {
|
|
|
50
61
|
type MobileErrorCode = (typeof MOBILE_ERROR_CODES)[keyof typeof MOBILE_ERROR_CODES];
|
|
51
62
|
//#endregion
|
|
52
63
|
export { MobileErrorCode as n, MOBILE_ERROR_CODES as t };
|
|
53
|
-
//# sourceMappingURL=mobileErrorCodes-
|
|
64
|
+
//# sourceMappingURL=mobileErrorCodes-3LtreeZM.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mobileErrorCodes-3LtreeZM.d.ts","names":[],"sources":["../src/types/src/types/mobileErrorCodes.ts"],"mappings":";;AAOA;;;;cAAa,kBAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6CA4Dc;EAAA,6CACjB;EAAA;;;;;;;;;;;;;;;;;;;;;;KADE,eAAA,WACF,kBAAA,eAAiC,kBAAkB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
//#region src/utils/patterns.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Validates a display name: 3-20 ASCII characters from `[A-Za-z0-9_.]`, allowed in any position.
|
|
4
|
+
*/
|
|
5
|
+
declare const MOBILE_DISPLAY_NAME_PATTERN: RegExp;
|
|
6
|
+
/**
|
|
7
|
+
* Validates a profile search query: 1-20 ASCII characters, a letter or digit first, then letters, digits, `_`
|
|
8
|
+
* or `.`. The backend lowercases letters and trims nothing, so a prefix shorter than a full username matches.
|
|
9
|
+
*/
|
|
10
|
+
declare const MOBILE_PROFILE_SEARCH_QUERY_PATTERN: RegExp;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { MOBILE_PROFILE_SEARCH_QUERY_PATTERN as n, MOBILE_DISPLAY_NAME_PATTERN as t };
|
|
13
|
+
//# sourceMappingURL=patterns-3UKIG5IS.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patterns-3UKIG5IS.d.cts","names":[],"sources":["../src/utils/src/utils/patterns.ts"],"mappings":";;AAGA;;cAAa,2BAAA,EAA2B,MAA0B;;AAAA;AAMlE;;cAAa,mCAAA,EAAmC,MACZ"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
//#region src/utils/patterns.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Validates a display name: 3-20 ASCII characters from `[A-Za-z0-9_.]`, allowed in any position.
|
|
4
|
+
*/
|
|
5
|
+
declare const MOBILE_DISPLAY_NAME_PATTERN: RegExp;
|
|
6
|
+
/**
|
|
7
|
+
* Validates a profile search query: 1-20 ASCII characters, a letter or digit first, then letters, digits, `_`
|
|
8
|
+
* or `.`. The backend lowercases letters and trims nothing, so a prefix shorter than a full username matches.
|
|
9
|
+
*/
|
|
10
|
+
declare const MOBILE_PROFILE_SEARCH_QUERY_PATTERN: RegExp;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { MOBILE_PROFILE_SEARCH_QUERY_PATTERN as n, MOBILE_DISPLAY_NAME_PATTERN as t };
|
|
13
|
+
//# sourceMappingURL=patterns-3UKIG5IS.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patterns-3UKIG5IS.d.ts","names":[],"sources":["../src/utils/src/utils/patterns.ts"],"mappings":";;AAGA;;cAAa,2BAAA,EAA2B,MAA0B;;AAAA;AAMlE;;cAAa,mCAAA,EAAmC,MACZ"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as MobileSignedInner } from "./types-
|
|
1
|
+
import { n as MobileSignedInner } from "./types-BCr2G5gS.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-BOWGjqdb.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payloadHash-BOWGjqdb.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-C18k-9Vy.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-Bzf4CtjV.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payloadHash-Bzf4CtjV.d.ts","names":[],"sources":["../src/signing/src/signing/payloadHash.ts"],"mappings":";;;;;;AASA;;;iBAAgB,oBAAA,CAAqB,KAAA,EAAO,iBAAA,GAAoB,GAAG"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/utils/profileSearch.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Maximum profile search page size without an `include`. Requests outside 1-50 fail with
|
|
4
|
+
* `INVALID_PROFILE_SEARCH_REQUEST`.
|
|
5
|
+
*/
|
|
6
|
+
declare const MOBILE_PROFILE_SEARCH_MAX_PAGE_SIZE = 50;
|
|
7
|
+
/**
|
|
8
|
+
* Maximum profile search page size when `include` asks for follow data, matching
|
|
9
|
+
* `MOBILE_PROFILES_MAX_BATCH_SIZE`. Requests outside 1-25 fail with `INVALID_PROFILE_SEARCH_REQUEST`.
|
|
10
|
+
*/
|
|
11
|
+
declare const MOBILE_PROFILE_SEARCH_MAX_ENRICHED_PAGE_SIZE = 25;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { MOBILE_PROFILE_SEARCH_MAX_PAGE_SIZE as n, MOBILE_PROFILE_SEARCH_MAX_ENRICHED_PAGE_SIZE as t };
|
|
14
|
+
//# sourceMappingURL=profileSearch-DCuB-IKD.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profileSearch-DCuB-IKD.d.cts","names":[],"sources":["../src/utils/src/utils/profileSearch.ts"],"mappings":";;AAIA;;;cAAa,mCAAA;AAAmC;AAMhD;;;AANgD,cAMnC,4CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/utils/profileSearch.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Maximum profile search page size without an `include`. Requests outside 1-50 fail with
|
|
4
|
+
* `INVALID_PROFILE_SEARCH_REQUEST`.
|
|
5
|
+
*/
|
|
6
|
+
declare const MOBILE_PROFILE_SEARCH_MAX_PAGE_SIZE = 50;
|
|
7
|
+
/**
|
|
8
|
+
* Maximum profile search page size when `include` asks for follow data, matching
|
|
9
|
+
* `MOBILE_PROFILES_MAX_BATCH_SIZE`. Requests outside 1-25 fail with `INVALID_PROFILE_SEARCH_REQUEST`.
|
|
10
|
+
*/
|
|
11
|
+
declare const MOBILE_PROFILE_SEARCH_MAX_ENRICHED_PAGE_SIZE = 25;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { MOBILE_PROFILE_SEARCH_MAX_PAGE_SIZE as n, MOBILE_PROFILE_SEARCH_MAX_ENRICHED_PAGE_SIZE as t };
|
|
14
|
+
//# sourceMappingURL=profileSearch-DCuB-IKD.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profileSearch-DCuB-IKD.d.ts","names":[],"sources":["../src/utils/src/utils/profileSearch.ts"],"mappings":";;AAIA;;;cAAa,mCAAA;AAAmC;AAMhD;;;AANgD,cAMnC,4CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as MobileServerRequestType } from "./serverRequestTypes-
|
|
1
|
+
import { c as MobileServerRequestType } from "./serverRequestTypes-BNA7FCY6.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-DWf3iGWy.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serverBaseTypes-
|
|
1
|
+
{"version":3,"file":"serverBaseTypes-DWf3iGWy.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 { c as MobileServerRequestType } from "./serverRequestTypes-
|
|
1
|
+
import { c as MobileServerRequestType } from "./serverRequestTypes-CxDRFKfv.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-KREDe2M9.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serverBaseTypes-
|
|
1
|
+
{"version":3,"file":"serverBaseTypes-KREDe2M9.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,6 @@
|
|
|
1
|
-
import { a as MobileServerPublicExecuteRequestType, i as MobileServerPublicExecuteRequestByType, t as MobileServerExecuteRequestType } from "./serverRequestTypes-
|
|
2
|
-
import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "./serverBaseTypes-
|
|
1
|
+
import { a as MobileServerPublicExecuteRequestType, i as MobileServerPublicExecuteRequestByType, t as MobileServerExecuteRequestType } from "./serverRequestTypes-CxDRFKfv.cjs";
|
|
2
|
+
import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "./serverBaseTypes-KREDe2M9.cjs";
|
|
3
|
+
import { Hex } from "viem";
|
|
3
4
|
|
|
4
5
|
//#region src/types/serverExecuteTypes.d.ts
|
|
5
6
|
/**
|
|
@@ -19,6 +20,24 @@ interface MobileServerFollowMutationResponse {
|
|
|
19
20
|
/** The *target's* follower count after the mutation, not the sender's. */
|
|
20
21
|
follower_count: number;
|
|
21
22
|
}
|
|
23
|
+
/**
|
|
24
|
+
* One target's post-commit state in a `set_follow_batch` response.
|
|
25
|
+
*/
|
|
26
|
+
interface MobileServerFollowBatchResultItem {
|
|
27
|
+
/** The requested target, as lowercase hex. */
|
|
28
|
+
subaccount: Hex;
|
|
29
|
+
is_following: boolean;
|
|
30
|
+
/** The *target's* follower count after the batch, not the sender's. */
|
|
31
|
+
follower_count: number;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Payload the `set_follow_batch` execute returns alongside the success envelope: one result per target, in
|
|
35
|
+
* request order. Every write and count runs in one database transaction, so the batch either fully applies or
|
|
36
|
+
* changes nothing, and these values are authoritative post-commit state.
|
|
37
|
+
*/
|
|
38
|
+
interface MobileServerFollowBatchResponse {
|
|
39
|
+
results: MobileServerFollowBatchResultItem[];
|
|
40
|
+
}
|
|
22
41
|
/**
|
|
23
42
|
* Payload of an execute route that returns nothing beyond the success discriminant. Spelled `Record<never,
|
|
24
43
|
* never>` rather than `Record<string, never>` because the latter's index signature would collapse `status` to
|
|
@@ -40,8 +59,8 @@ interface MobileServerAvatarUploadResponse {
|
|
|
40
59
|
}
|
|
41
60
|
/**
|
|
42
61
|
* Success payloads for each signed `execute`, keyed by request `type`. Most execute routes carry no payload
|
|
43
|
-
* beyond the success discriminant and so map to an empty object; `set_follow`
|
|
44
|
-
* relationship state, and `create_avatar_upload` returns a temporary upload grant.
|
|
62
|
+
* beyond the success discriminant and so map to an empty object; `set_follow` and `set_follow_batch` return
|
|
63
|
+
* their post-commit relationship state, and `create_avatar_upload` returns a temporary upload grant.
|
|
45
64
|
*/
|
|
46
65
|
interface MobileServerExecuteResponseByType {
|
|
47
66
|
/** Bio writes return only the success envelope. */
|
|
@@ -54,6 +73,7 @@ interface MobileServerExecuteResponseByType {
|
|
|
54
73
|
set_private_mode: MobileServerEmptyExecuteResponse;
|
|
55
74
|
register_expo_token: MobileServerEmptyExecuteResponse;
|
|
56
75
|
set_follow: MobileServerFollowMutationResponse;
|
|
76
|
+
set_follow_batch: MobileServerFollowBatchResponse;
|
|
57
77
|
}
|
|
58
78
|
/**
|
|
59
79
|
* Full success response for a signed `execute`: the {@link MobileServerSuccessResponse} envelope with the
|
|
@@ -65,5 +85,5 @@ type MobileServerExecuteSuccessResponse<T extends MobileServerExecuteRequestType
|
|
|
65
85
|
*/
|
|
66
86
|
type MobileServerExecuteResult = MobileServerSuccessResponse | MobileServerFailureResponse;
|
|
67
87
|
//#endregion
|
|
68
|
-
export { MobileServerExecuteSuccessResponse as a, MobileServerExecuteResult as i, MobileServerEmptyExecuteResponse as n,
|
|
69
|
-
//# sourceMappingURL=serverExecuteTypes-
|
|
88
|
+
export { MobileServerExecuteSuccessResponse as a, MobileServerFollowMutationResponse as c, MobileServerExecuteResult as i, MobileServerPublicExecuteRequest as l, MobileServerEmptyExecuteResponse as n, MobileServerFollowBatchResponse as o, MobileServerExecuteResponseByType as r, MobileServerFollowBatchResultItem as s, MobileServerAvatarUploadResponse as t };
|
|
89
|
+
//# sourceMappingURL=serverExecuteTypes-DVRa6ifu.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"serverExecuteTypes-DVRa6ifu.d.cts","names":[],"sources":["../src/types/src/types/serverExecuteTypes.ts"],"mappings":";;;;;;;AAeA;;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;;;;UAMC,iCAAA;EAhBf;EAkBA,UAAA,EAAY,GAAG;EACf,YAAA;EAZe;EAcf,cAAA;AAAA;;AAXc;AAMhB;;;UAaiB,+BAAA;EACf,OAAA,EAAS,iCAAiC;AAAA;;;;AAT5B;AAQhB;KASY,gCAAA,GAAmC,MAAM;;;AART;UAa3B,gCAAA;EAL2B;EAO1C,UAAA;EAPmD;EASnD,UAAA;EAJe;EAMf,OAAA,EAAS,MAAM;;EAEf,kBAAA;AAAA;;;;;;UAQe,iCAAA;EAAA;EAEf,OAAA,EAAS,gCAAA;;EAET,UAAA,EAAY,gCAAA;EAAA;EAEZ,oBAAA,EAAsB,gCAAA;EACtB,YAAA,EAAc,gCAAA;EACd,gBAAA,EAAkB,gCAAA;EAClB,mBAAA,EAAqB,gCAAA;EACrB,UAAA,EAAY,kCAAA;EACZ,gBAAA,EAAkB,+BAAA;AAAA;;;;;KAOR,kCAAA,WACA,8BAAA,GAAiC,8BAAA,IACzC,2BAAA,GAA8B,iCAAA,CAAkC,CAAA;;;;KAKxD,yBAAA,GACR,2BAAA,GACA,2BAA2B"}
|