@nadohq/mobile-client 0.35.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
|
@@ -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-KSm0CAcF.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"serverModelTypes-KSm0CAcF.d.cts","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"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { d as MobileServerFeedTrade,
|
|
2
|
-
import { a as
|
|
3
|
-
import { n as MobileServerSuccessResponse } from "./serverBaseTypes-
|
|
1
|
+
import { _ as MobileServerNotificationPreferences, d as MobileServerFeedTrade, f as MobileServerFollowListAccount, l as MobileNotificationPlatform, v as MobileServerProfile } from "./serverModelTypes-KSm0CAcF.cjs";
|
|
2
|
+
import { a as MobileServerPublicQueryRequestByType, c as MobileServerSignedQueryRequestType, o as MobileServerPublicQueryRequestType } from "./serverRequestTypes-q4xTJHk0.cjs";
|
|
3
|
+
import { n as MobileServerSuccessResponse } from "./serverBaseTypes-BybrVE6L.cjs";
|
|
4
4
|
import { Hex } from "viem";
|
|
5
5
|
|
|
6
6
|
//#region src/types/serverQueryTypes.d.ts
|
|
@@ -18,10 +18,11 @@ interface MobileServerUsernameAvailabilityResponse {
|
|
|
18
18
|
available: boolean;
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
|
-
* Payload of the `
|
|
21
|
+
* Payload of the `profiles` public query success response. One entry per requested subaccount, in the exact
|
|
22
|
+
* order they were requested, so callers can correlate positionally as well as by `subaccount`.
|
|
22
23
|
*/
|
|
23
|
-
interface
|
|
24
|
-
|
|
24
|
+
interface MobileServerProfilesResponse {
|
|
25
|
+
profiles: MobileServerProfile[];
|
|
25
26
|
}
|
|
26
27
|
/**
|
|
27
28
|
* Payload of the `feed` public query success response.
|
|
@@ -61,7 +62,7 @@ interface MobileServerRegisteredWalletResponse {
|
|
|
61
62
|
*/
|
|
62
63
|
interface MobileServerPublicQueryResponseByType {
|
|
63
64
|
username_availability: MobileServerUsernameAvailabilityResponse;
|
|
64
|
-
|
|
65
|
+
profiles: MobileServerProfilesResponse;
|
|
65
66
|
feed: MobileServerFeedResponse;
|
|
66
67
|
notification_preferences: MobileServerNotificationPreferencesResponse;
|
|
67
68
|
registered_wallet: MobileServerRegisteredWalletResponse;
|
|
@@ -72,6 +73,28 @@ interface MobileServerPublicQueryResponseByType {
|
|
|
72
73
|
* mirroring engine's `EngineServerQuerySuccessResponse` (inlined here instead of nested under `data`).
|
|
73
74
|
*/
|
|
74
75
|
type MobileServerPublicQuerySuccessResponse<T extends MobileServerPublicQueryRequestType = MobileServerPublicQueryRequestType> = MobileServerSuccessResponse & MobileServerPublicQueryResponseByType[T];
|
|
76
|
+
/**
|
|
77
|
+
* Payload of the `followers` and `following` signed query success responses. Both list directions share one
|
|
78
|
+
* shape; only the relationship that selected the rows differs.
|
|
79
|
+
*/
|
|
80
|
+
interface MobileServerFollowListResponse {
|
|
81
|
+
accounts: MobileServerFollowListAccount[];
|
|
82
|
+
/** `null` means the list is complete. */
|
|
83
|
+
next_cursor: string | null;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Success payloads for each signed `query`, keyed by request `type` — the signed counterpart to
|
|
87
|
+
* {@link MobileServerPublicQueryResponseByType}.
|
|
88
|
+
*/
|
|
89
|
+
interface MobileServerSignedQueryResponseByType {
|
|
90
|
+
followers: MobileServerFollowListResponse;
|
|
91
|
+
following: MobileServerFollowListResponse;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Full success response for a signed `query`: the {@link MobileServerSuccessResponse} envelope with the
|
|
95
|
+
* query's payload inlined alongside `status`.
|
|
96
|
+
*/
|
|
97
|
+
type MobileServerSignedQuerySuccessResponse<T extends MobileServerSignedQueryRequestType = MobileServerSignedQueryRequestType> = MobileServerSuccessResponse & MobileServerSignedQueryResponseByType[T];
|
|
75
98
|
//#endregion
|
|
76
|
-
export {
|
|
77
|
-
//# sourceMappingURL=serverQueryTypes-
|
|
99
|
+
export { MobileServerPublicQueryRequest as a, MobileServerRegisteredWalletResponse as c, MobileServerUsernameAvailabilityResponse as d, MobileServerProfilesResponse as i, MobileServerSignedQueryResponseByType as l, MobileServerFollowListResponse as n, MobileServerPublicQueryResponseByType as o, MobileServerNotificationPreferencesResponse as r, MobileServerPublicQuerySuccessResponse as s, MobileServerFeedResponse as t, MobileServerSignedQuerySuccessResponse as u };
|
|
100
|
+
//# sourceMappingURL=serverQueryTypes-B9OOpiJB.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"serverQueryTypes-B9OOpiJB.d.cts","names":[],"sources":["../src/types/src/types/serverQueryTypes.ts"],"mappings":";;;;;;;;AAkBA;KAAY,8BAAA,WACA,kCAAA,GACR,kCAAA,YAEI,kCAAA;EACJ,IAAA,EAAM,CAAA;AAAA,IACJ,oCAAA,CAAqC,CAAA,IACzC,CAAA;;;;UAKe,wCAAA;EACf,QAAA;EACA,SAAS;AAAA;;;;;UAOM,4BAAA;EACf,QAAA,EAAU,mBAAmB;AAAA;;;;UAMd,wBAAA;EACf,MAAA,EAAQ,qBAAqB;EAjB0B;;;AAE9C;AAOX;EAcE,WAAA;AAAA;;AAb6B;AAM/B;UAaiB,2CAAA;EACf,WAAA,EAAa,mCAAmC;AAAA;;;;;UAOjC,oCAAA;EACf,MAAA,EAAQ,GAAA;EACR,QAAA,EAAU,0BAA0B;EACpC,MAAA;EACA,WAAA;EACA,wBAAA;EACA,YAAA;AAAA;;;;;;;UASe,qCAAA;EACf,qBAAA,EAAuB,wCAAA;EACvB,QAAA,EAAU,4BAAA;EACV,IAAA,EAAM,wBAAA;EACN,wBAAA,EAA0B,2CAAA;EAC1B,iBAAA,EAAmB,oCAAA;AAAA;;;;;;KAQT,sCAAA,WACA,kCAAA,GACR,kCAAA,IACA,2BAAA,GAA8B,qCAAA,CAAsC,CAAA;;;;;UAMvD,8BAAA;EACf,QAAA,EAAU,6BAA6B;EArB7B;EAuBV,WAAA;AAAA;;;;;UAOe,qCAAA;EACf,SAAA,EAAW,8BAAA;EACX,SAAA,EAAW,8BAA8B;AAAA;;;;;KAO/B,sCAAA,WACA,kCAAA,GACR,kCAAA,IACA,2BAAA,GAA8B,qCAAA,CAAsC,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { d as MobileServerFeedTrade,
|
|
2
|
-
import { a as
|
|
3
|
-
import { n as MobileServerSuccessResponse } from "./serverBaseTypes-
|
|
1
|
+
import { _ as MobileServerNotificationPreferences, d as MobileServerFeedTrade, f as MobileServerFollowListAccount, l as MobileNotificationPlatform, v as MobileServerProfile } from "./serverModelTypes-DV-eARP8.js";
|
|
2
|
+
import { a as MobileServerPublicQueryRequestByType, c as MobileServerSignedQueryRequestType, o as MobileServerPublicQueryRequestType } from "./serverRequestTypes-BDXIPjtw.js";
|
|
3
|
+
import { n as MobileServerSuccessResponse } from "./serverBaseTypes-DPB1vEvv.js";
|
|
4
4
|
import { Hex } from "viem";
|
|
5
5
|
|
|
6
6
|
//#region src/types/serverQueryTypes.d.ts
|
|
@@ -18,10 +18,11 @@ interface MobileServerUsernameAvailabilityResponse {
|
|
|
18
18
|
available: boolean;
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
|
-
* Payload of the `
|
|
21
|
+
* Payload of the `profiles` public query success response. One entry per requested subaccount, in the exact
|
|
22
|
+
* order they were requested, so callers can correlate positionally as well as by `subaccount`.
|
|
22
23
|
*/
|
|
23
|
-
interface
|
|
24
|
-
|
|
24
|
+
interface MobileServerProfilesResponse {
|
|
25
|
+
profiles: MobileServerProfile[];
|
|
25
26
|
}
|
|
26
27
|
/**
|
|
27
28
|
* Payload of the `feed` public query success response.
|
|
@@ -61,7 +62,7 @@ interface MobileServerRegisteredWalletResponse {
|
|
|
61
62
|
*/
|
|
62
63
|
interface MobileServerPublicQueryResponseByType {
|
|
63
64
|
username_availability: MobileServerUsernameAvailabilityResponse;
|
|
64
|
-
|
|
65
|
+
profiles: MobileServerProfilesResponse;
|
|
65
66
|
feed: MobileServerFeedResponse;
|
|
66
67
|
notification_preferences: MobileServerNotificationPreferencesResponse;
|
|
67
68
|
registered_wallet: MobileServerRegisteredWalletResponse;
|
|
@@ -72,6 +73,28 @@ interface MobileServerPublicQueryResponseByType {
|
|
|
72
73
|
* mirroring engine's `EngineServerQuerySuccessResponse` (inlined here instead of nested under `data`).
|
|
73
74
|
*/
|
|
74
75
|
type MobileServerPublicQuerySuccessResponse<T extends MobileServerPublicQueryRequestType = MobileServerPublicQueryRequestType> = MobileServerSuccessResponse & MobileServerPublicQueryResponseByType[T];
|
|
76
|
+
/**
|
|
77
|
+
* Payload of the `followers` and `following` signed query success responses. Both list directions share one
|
|
78
|
+
* shape; only the relationship that selected the rows differs.
|
|
79
|
+
*/
|
|
80
|
+
interface MobileServerFollowListResponse {
|
|
81
|
+
accounts: MobileServerFollowListAccount[];
|
|
82
|
+
/** `null` means the list is complete. */
|
|
83
|
+
next_cursor: string | null;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Success payloads for each signed `query`, keyed by request `type` — the signed counterpart to
|
|
87
|
+
* {@link MobileServerPublicQueryResponseByType}.
|
|
88
|
+
*/
|
|
89
|
+
interface MobileServerSignedQueryResponseByType {
|
|
90
|
+
followers: MobileServerFollowListResponse;
|
|
91
|
+
following: MobileServerFollowListResponse;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Full success response for a signed `query`: the {@link MobileServerSuccessResponse} envelope with the
|
|
95
|
+
* query's payload inlined alongside `status`.
|
|
96
|
+
*/
|
|
97
|
+
type MobileServerSignedQuerySuccessResponse<T extends MobileServerSignedQueryRequestType = MobileServerSignedQueryRequestType> = MobileServerSuccessResponse & MobileServerSignedQueryResponseByType[T];
|
|
75
98
|
//#endregion
|
|
76
|
-
export {
|
|
77
|
-
//# sourceMappingURL=serverQueryTypes-
|
|
99
|
+
export { MobileServerPublicQueryRequest as a, MobileServerRegisteredWalletResponse as c, MobileServerUsernameAvailabilityResponse as d, MobileServerProfilesResponse as i, MobileServerSignedQueryResponseByType as l, MobileServerFollowListResponse as n, MobileServerPublicQueryResponseByType as o, MobileServerNotificationPreferencesResponse as r, MobileServerPublicQuerySuccessResponse as s, MobileServerFeedResponse as t, MobileServerSignedQuerySuccessResponse as u };
|
|
100
|
+
//# sourceMappingURL=serverQueryTypes-LygPrZn7.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"serverQueryTypes-LygPrZn7.d.ts","names":[],"sources":["../src/types/src/types/serverQueryTypes.ts"],"mappings":";;;;;;;;AAkBA;KAAY,8BAAA,WACA,kCAAA,GACR,kCAAA,YAEI,kCAAA;EACJ,IAAA,EAAM,CAAA;AAAA,IACJ,oCAAA,CAAqC,CAAA,IACzC,CAAA;;;;UAKe,wCAAA;EACf,QAAA;EACA,SAAS;AAAA;;;;;UAOM,4BAAA;EACf,QAAA,EAAU,mBAAmB;AAAA;;;;UAMd,wBAAA;EACf,MAAA,EAAQ,qBAAqB;EAjB0B;;;AAE9C;AAOX;EAcE,WAAA;AAAA;;AAb6B;AAM/B;UAaiB,2CAAA;EACf,WAAA,EAAa,mCAAmC;AAAA;;;;;UAOjC,oCAAA;EACf,MAAA,EAAQ,GAAA;EACR,QAAA,EAAU,0BAA0B;EACpC,MAAA;EACA,WAAA;EACA,wBAAA;EACA,YAAA;AAAA;;;;;;;UASe,qCAAA;EACf,qBAAA,EAAuB,wCAAA;EACvB,QAAA,EAAU,4BAAA;EACV,IAAA,EAAM,wBAAA;EACN,wBAAA,EAA0B,2CAAA;EAC1B,iBAAA,EAAmB,oCAAA;AAAA;;;;;;KAQT,sCAAA,WACA,kCAAA,GACR,kCAAA,IACA,2BAAA,GAA8B,qCAAA,CAAsC,CAAA;;;;;UAMvD,8BAAA;EACf,QAAA,EAAU,6BAA6B;EArB7B;EAuBV,WAAA;AAAA;;;;;UAOe,qCAAA;EACf,SAAA,EAAW,8BAAA;EACX,SAAA,EAAW,8BAA8B;AAAA;;;;;KAO/B,sCAAA,WACA,kCAAA,GACR,kCAAA,IACA,2BAAA,GAA8B,qCAAA,CAAsC,CAAA"}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { _ as MobileServerNotificationPreferences } from "./serverModelTypes-DV-eARP8.js";
|
|
2
|
+
import { n as MobileSignedInner } from "./types-B8lDIhBP.js";
|
|
3
|
+
import { Hex } from "viem";
|
|
4
|
+
|
|
5
|
+
//#region src/types/serverRequestTypes.d.ts
|
|
6
|
+
/**
|
|
7
|
+
* Opt-in extras for a `profiles` query. Each one costs extra rate-limit weight per profile and adds fields
|
|
8
|
+
* that are otherwise absent from the response, so the backend gates them behind an explicit request rather
|
|
9
|
+
* than always resolving the follow graph on a public route.
|
|
10
|
+
*/
|
|
11
|
+
interface MobileServerProfilesInclude {
|
|
12
|
+
/** Adds `follower_count` and `following_count` to every entry. Omitted or `false` leaves both absent. */
|
|
13
|
+
follow_counts?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Adds `follow_summary` to every entry, relative to the `view_as` subaccount. Unlike the signed follow
|
|
16
|
+
* list reads, `view_as` is an unauthenticated claim on this public route.
|
|
17
|
+
*/
|
|
18
|
+
follow_summary?: {
|
|
19
|
+
view_as: Hex;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Params for each unsigned `public_query`, keyed by request `type`.
|
|
24
|
+
*/
|
|
25
|
+
interface MobileServerPublicQueryRequestByType {
|
|
26
|
+
username_availability: {
|
|
27
|
+
display_name: string;
|
|
28
|
+
};
|
|
29
|
+
profiles: {
|
|
30
|
+
/**
|
|
31
|
+
* 1–`MOBILE_PROFILES_MAX_BATCH_SIZE` (25) distinct subaccounts. Results come back in this exact order,
|
|
32
|
+
* one entry per request slot.
|
|
33
|
+
*/
|
|
34
|
+
subaccounts: Hex[];
|
|
35
|
+
include?: MobileServerProfilesInclude;
|
|
36
|
+
};
|
|
37
|
+
feed: {
|
|
38
|
+
/**
|
|
39
|
+
* Minimum notional as a whole-dollar JSON integer (NOT an x18 string), at least $1,000. Omitted or
|
|
40
|
+
* `null` means unfiltered.
|
|
41
|
+
*/
|
|
42
|
+
minimum_notional?: number; /** Page size, 1–50; the backend defaults to `MOBILE_FEED_MAX_PAGE_SIZE` (50) when omitted. */
|
|
43
|
+
limit?: number;
|
|
44
|
+
/**
|
|
45
|
+
* Opaque keyset cursor from a prior page's `next_cursor`. Bound to the exact `minimum_notional` it was
|
|
46
|
+
* issued for (including the unfiltered state) — reusing it with a different filter fails.
|
|
47
|
+
*/
|
|
48
|
+
cursor?: string;
|
|
49
|
+
};
|
|
50
|
+
notification_preferences: {
|
|
51
|
+
expo_token: string;
|
|
52
|
+
};
|
|
53
|
+
registered_wallet: {
|
|
54
|
+
expo_token: string;
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Discriminant `type` values for unsigned `public_query` requests.
|
|
59
|
+
*/
|
|
60
|
+
type MobileServerPublicQueryRequestType = keyof MobileServerPublicQueryRequestByType;
|
|
61
|
+
/**
|
|
62
|
+
* Params for each unsigned `public_execute`, keyed by request `type`. Possession of an active Expo push token
|
|
63
|
+
* authorizes these notification-only mutations: the backend resolves the token's owning wallet and mutates
|
|
64
|
+
* its state, so no signature, sender, or nonce is sent. Ordering is the backend's last-write-wins commit
|
|
65
|
+
* order, so callers must serialize their own writes.
|
|
66
|
+
*/
|
|
67
|
+
interface MobileServerPublicExecuteRequestByType {
|
|
68
|
+
unregister_expo_token: {
|
|
69
|
+
expo_token: string;
|
|
70
|
+
};
|
|
71
|
+
update_preferences: {
|
|
72
|
+
expo_token: string;
|
|
73
|
+
preferences: MobileServerNotificationPreferences;
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Discriminant `type` values for unsigned `public_execute` requests.
|
|
78
|
+
*/
|
|
79
|
+
type MobileServerPublicExecuteRequestType = keyof MobileServerPublicExecuteRequestByType;
|
|
80
|
+
/**
|
|
81
|
+
* Discriminant `type` values for signed `query` requests: the read-only subset of {@link MobileSignedInner}
|
|
82
|
+
* tags. Unlike the public queries, these carry no separate params map — a signed request body *is* its inner
|
|
83
|
+
* payload flattened with the envelope, so {@link MobileSignedInner} is the single source of truth for both
|
|
84
|
+
* the fields and their significant order.
|
|
85
|
+
*/
|
|
86
|
+
type MobileServerSignedQueryRequestType = 'followers' | 'following';
|
|
87
|
+
/**
|
|
88
|
+
* Discriminant `type` values for signed `execute` requests: the write subset of {@link MobileSignedInner}
|
|
89
|
+
* tags, i.e. everything that is not a signed query.
|
|
90
|
+
*/
|
|
91
|
+
type MobileServerExecuteRequestType = Exclude<MobileSignedInner['type'], MobileServerSignedQueryRequestType>;
|
|
92
|
+
/**
|
|
93
|
+
* Wire `request_type` the backend echoes on failure envelopes, prefixed by the route that produced it:
|
|
94
|
+
* `public_query_*` for unsigned queries, `public_execute_*` for unsigned writes, `execute_*` for signed
|
|
95
|
+
* writes (e.g. `execute_set_username`), and `query_*` for signed reads (e.g. `query_followers`). The prefix
|
|
96
|
+
* names the route, so it never carries the `mobile:` prefix that the EIP-712 method does.
|
|
97
|
+
*/
|
|
98
|
+
type MobileServerRequestType = `public_query_${MobileServerPublicQueryRequestType}` | `public_execute_${MobileServerPublicExecuteRequestType}` | `execute_${MobileServerExecuteRequestType}` | `query_${MobileServerSignedQueryRequestType}`;
|
|
99
|
+
//#endregion
|
|
100
|
+
export { MobileServerPublicQueryRequestByType as a, MobileServerSignedQueryRequestType as c, MobileServerPublicExecuteRequestType as i, MobileServerProfilesInclude as n, MobileServerPublicQueryRequestType as o, MobileServerPublicExecuteRequestByType as r, MobileServerRequestType as s, MobileServerExecuteRequestType as t };
|
|
101
|
+
//# sourceMappingURL=serverRequestTypes-BDXIPjtw.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"serverRequestTypes-BDXIPjtw.d.ts","names":[],"sources":["../src/types/src/types/serverRequestTypes.ts"],"mappings":";;;;;;;AASA;;;UAAiB,2BAAA;EAEf;EAAA,aAAA;EAKmB;;;AAAY;EAA/B,cAAA;IAAmB,OAAA,EAAS,GAAG;EAAA;AAAA;;;;UAMhB,oCAAA;EACf,qBAAA;IAAyB,YAAA;EAAA;EACzB,QAAA;IAaE;;;;IARA,WAAA,EAAa,GAAA;IACb,OAAA,GAAU,2BAA2B;EAAA;EAEvC,IAAA;IAe+B;AAMjC;;;IAhBI,gBAAA,WAiBwC;IAfxC,KAAA;IAuBmD;;;;IAlBnD,MAAA;EAAA;EAEF,wBAAA;IAA4B,UAAA;EAAA;EAC5B,iBAAA;IAAqB,UAAA;EAAA;AAAA;;;AA2BuB;KArBlC,kCAAA,SACJ,oCAAoC;;;;AA4BE;AAM9C;;UA1BiB,sCAAA;EACf,qBAAA;IAAyB,UAAA;EAAA;EACzB,kBAAA;IACE,UAAA;IACA,WAAA,EAAa,mCAAmC;EAAA;AAAA;;AAwBhB;AASpC;KA1BY,oCAAA,SACJ,sCAAsC;;;;;;;KAQlC,kCAAA;;;;;KAMA,8BAAA,GAAiC,OAAA,CAC3C,iBAAA,UACA,kCAAA;AAa6C;;;;;;AAAA,KAJnC,uBAAA,mBACQ,kCAAA,uBACE,oCAAA,gBACP,8BAAA,cACF,kCAAA"}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { _ as MobileServerNotificationPreferences } from "./serverModelTypes-KSm0CAcF.cjs";
|
|
2
|
+
import { n as MobileSignedInner } from "./types-CClB00EN.cjs";
|
|
3
|
+
import { Hex } from "viem";
|
|
4
|
+
|
|
5
|
+
//#region src/types/serverRequestTypes.d.ts
|
|
6
|
+
/**
|
|
7
|
+
* Opt-in extras for a `profiles` query. Each one costs extra rate-limit weight per profile and adds fields
|
|
8
|
+
* that are otherwise absent from the response, so the backend gates them behind an explicit request rather
|
|
9
|
+
* than always resolving the follow graph on a public route.
|
|
10
|
+
*/
|
|
11
|
+
interface MobileServerProfilesInclude {
|
|
12
|
+
/** Adds `follower_count` and `following_count` to every entry. Omitted or `false` leaves both absent. */
|
|
13
|
+
follow_counts?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Adds `follow_summary` to every entry, relative to the `view_as` subaccount. Unlike the signed follow
|
|
16
|
+
* list reads, `view_as` is an unauthenticated claim on this public route.
|
|
17
|
+
*/
|
|
18
|
+
follow_summary?: {
|
|
19
|
+
view_as: Hex;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Params for each unsigned `public_query`, keyed by request `type`.
|
|
24
|
+
*/
|
|
25
|
+
interface MobileServerPublicQueryRequestByType {
|
|
26
|
+
username_availability: {
|
|
27
|
+
display_name: string;
|
|
28
|
+
};
|
|
29
|
+
profiles: {
|
|
30
|
+
/**
|
|
31
|
+
* 1–`MOBILE_PROFILES_MAX_BATCH_SIZE` (25) distinct subaccounts. Results come back in this exact order,
|
|
32
|
+
* one entry per request slot.
|
|
33
|
+
*/
|
|
34
|
+
subaccounts: Hex[];
|
|
35
|
+
include?: MobileServerProfilesInclude;
|
|
36
|
+
};
|
|
37
|
+
feed: {
|
|
38
|
+
/**
|
|
39
|
+
* Minimum notional as a whole-dollar JSON integer (NOT an x18 string), at least $1,000. Omitted or
|
|
40
|
+
* `null` means unfiltered.
|
|
41
|
+
*/
|
|
42
|
+
minimum_notional?: number; /** Page size, 1–50; the backend defaults to `MOBILE_FEED_MAX_PAGE_SIZE` (50) when omitted. */
|
|
43
|
+
limit?: number;
|
|
44
|
+
/**
|
|
45
|
+
* Opaque keyset cursor from a prior page's `next_cursor`. Bound to the exact `minimum_notional` it was
|
|
46
|
+
* issued for (including the unfiltered state) — reusing it with a different filter fails.
|
|
47
|
+
*/
|
|
48
|
+
cursor?: string;
|
|
49
|
+
};
|
|
50
|
+
notification_preferences: {
|
|
51
|
+
expo_token: string;
|
|
52
|
+
};
|
|
53
|
+
registered_wallet: {
|
|
54
|
+
expo_token: string;
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Discriminant `type` values for unsigned `public_query` requests.
|
|
59
|
+
*/
|
|
60
|
+
type MobileServerPublicQueryRequestType = keyof MobileServerPublicQueryRequestByType;
|
|
61
|
+
/**
|
|
62
|
+
* Params for each unsigned `public_execute`, keyed by request `type`. Possession of an active Expo push token
|
|
63
|
+
* authorizes these notification-only mutations: the backend resolves the token's owning wallet and mutates
|
|
64
|
+
* its state, so no signature, sender, or nonce is sent. Ordering is the backend's last-write-wins commit
|
|
65
|
+
* order, so callers must serialize their own writes.
|
|
66
|
+
*/
|
|
67
|
+
interface MobileServerPublicExecuteRequestByType {
|
|
68
|
+
unregister_expo_token: {
|
|
69
|
+
expo_token: string;
|
|
70
|
+
};
|
|
71
|
+
update_preferences: {
|
|
72
|
+
expo_token: string;
|
|
73
|
+
preferences: MobileServerNotificationPreferences;
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Discriminant `type` values for unsigned `public_execute` requests.
|
|
78
|
+
*/
|
|
79
|
+
type MobileServerPublicExecuteRequestType = keyof MobileServerPublicExecuteRequestByType;
|
|
80
|
+
/**
|
|
81
|
+
* Discriminant `type` values for signed `query` requests: the read-only subset of {@link MobileSignedInner}
|
|
82
|
+
* tags. Unlike the public queries, these carry no separate params map — a signed request body *is* its inner
|
|
83
|
+
* payload flattened with the envelope, so {@link MobileSignedInner} is the single source of truth for both
|
|
84
|
+
* the fields and their significant order.
|
|
85
|
+
*/
|
|
86
|
+
type MobileServerSignedQueryRequestType = 'followers' | 'following';
|
|
87
|
+
/**
|
|
88
|
+
* Discriminant `type` values for signed `execute` requests: the write subset of {@link MobileSignedInner}
|
|
89
|
+
* tags, i.e. everything that is not a signed query.
|
|
90
|
+
*/
|
|
91
|
+
type MobileServerExecuteRequestType = Exclude<MobileSignedInner['type'], MobileServerSignedQueryRequestType>;
|
|
92
|
+
/**
|
|
93
|
+
* Wire `request_type` the backend echoes on failure envelopes, prefixed by the route that produced it:
|
|
94
|
+
* `public_query_*` for unsigned queries, `public_execute_*` for unsigned writes, `execute_*` for signed
|
|
95
|
+
* writes (e.g. `execute_set_username`), and `query_*` for signed reads (e.g. `query_followers`). The prefix
|
|
96
|
+
* names the route, so it never carries the `mobile:` prefix that the EIP-712 method does.
|
|
97
|
+
*/
|
|
98
|
+
type MobileServerRequestType = `public_query_${MobileServerPublicQueryRequestType}` | `public_execute_${MobileServerPublicExecuteRequestType}` | `execute_${MobileServerExecuteRequestType}` | `query_${MobileServerSignedQueryRequestType}`;
|
|
99
|
+
//#endregion
|
|
100
|
+
export { MobileServerPublicQueryRequestByType as a, MobileServerSignedQueryRequestType as c, MobileServerPublicExecuteRequestType as i, MobileServerProfilesInclude as n, MobileServerPublicQueryRequestType as o, MobileServerPublicExecuteRequestByType as r, MobileServerRequestType as s, MobileServerExecuteRequestType as t };
|
|
101
|
+
//# sourceMappingURL=serverRequestTypes-q4xTJHk0.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"serverRequestTypes-q4xTJHk0.d.cts","names":[],"sources":["../src/types/src/types/serverRequestTypes.ts"],"mappings":";;;;;;;AASA;;;UAAiB,2BAAA;EAEf;EAAA,aAAA;EAKmB;;;AAAY;EAA/B,cAAA;IAAmB,OAAA,EAAS,GAAG;EAAA;AAAA;;;;UAMhB,oCAAA;EACf,qBAAA;IAAyB,YAAA;EAAA;EACzB,QAAA;IAaE;;;;IARA,WAAA,EAAa,GAAA;IACb,OAAA,GAAU,2BAA2B;EAAA;EAEvC,IAAA;IAe+B;AAMjC;;;IAhBI,gBAAA,WAiBwC;IAfxC,KAAA;IAuBmD;;;;IAlBnD,MAAA;EAAA;EAEF,wBAAA;IAA4B,UAAA;EAAA;EAC5B,iBAAA;IAAqB,UAAA;EAAA;AAAA;;;AA2BuB;KArBlC,kCAAA,SACJ,oCAAoC;;;;AA4BE;AAM9C;;UA1BiB,sCAAA;EACf,qBAAA;IAAyB,UAAA;EAAA;EACzB,kBAAA;IACE,UAAA;IACA,WAAA,EAAa,mCAAmC;EAAA;AAAA;;AAwBhB;AASpC;KA1BY,oCAAA,SACJ,sCAAsC;;;;;;;KAQlC,kCAAA;;;;;KAMA,8BAAA,GAAiC,OAAA,CAC3C,iBAAA,UACA,kCAAA;AAa6C;;;;;;AAAA,KAJnC,uBAAA,mBACQ,kCAAA,uBACE,oCAAA,gBACP,8BAAA,cACF,kCAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as MobileServerFailureResponse } from "./serverBaseTypes-
|
|
1
|
+
import { t as MobileServerFailureResponse } from "./serverBaseTypes-DPB1vEvv.js";
|
|
2
2
|
|
|
3
3
|
//#region src/utils/serverResponseGuards.d.ts
|
|
4
4
|
/**
|
|
@@ -13,4 +13,4 @@ declare function isMobileServerSuccessResponse<T extends {
|
|
|
13
13
|
}>(data: unknown): data is T;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { isMobileServerSuccessResponse as n, isMobileServerFailureResponse as t };
|
|
16
|
-
//# sourceMappingURL=serverResponseGuards-
|
|
16
|
+
//# sourceMappingURL=serverResponseGuards-BcdkKV30.d.ts.map
|
package/dist/{serverResponseGuards-Cep5s7j5.d.ts.map → serverResponseGuards-BcdkKV30.d.ts.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serverResponseGuards-
|
|
1
|
+
{"version":3,"file":"serverResponseGuards-BcdkKV30.d.ts","names":[],"sources":["../src/utils/src/utils/serverResponseGuards.ts"],"mappings":";;;;;AAKA;iBAAgB,6BAAA,CACd,IAAA,YACC,IAAA,IAAQ,2BAA2B;;;;iBAWtB,6BAAA;EAA0C,MAAA;AAAA,EAAA,CACxD,IAAA,YACC,IAAA,IAAQ,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as MobileServerFailureResponse } from "./serverBaseTypes-
|
|
1
|
+
import { t as MobileServerFailureResponse } from "./serverBaseTypes-BybrVE6L.cjs";
|
|
2
2
|
|
|
3
3
|
//#region src/utils/serverResponseGuards.d.ts
|
|
4
4
|
/**
|
|
@@ -13,4 +13,4 @@ declare function isMobileServerSuccessResponse<T extends {
|
|
|
13
13
|
}>(data: unknown): data is T;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { isMobileServerSuccessResponse as n, isMobileServerFailureResponse as t };
|
|
16
|
-
//# sourceMappingURL=serverResponseGuards-
|
|
16
|
+
//# sourceMappingURL=serverResponseGuards-k6xK1bZ1.d.cts.map
|
package/dist/{serverResponseGuards-Dxt9_aGh.d.cts.map → serverResponseGuards-k6xK1bZ1.d.cts.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serverResponseGuards-
|
|
1
|
+
{"version":3,"file":"serverResponseGuards-k6xK1bZ1.d.cts","names":[],"sources":["../src/utils/src/utils/serverResponseGuards.ts"],"mappings":";;;;;AAKA;iBAAgB,6BAAA,CACd,IAAA,YACC,IAAA,IAAQ,2BAA2B;;;;iBAWtB,6BAAA;EAA0C,MAAA;AAAA,EAAA,CACxD,IAAA,YACC,IAAA,IAAQ,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
require("../MobileClient-
|
|
2
|
+
require("../MobileClient-C9S_o_eC.cjs");
|
|
3
3
|
const require_signing_canonicalize = require("./canonicalize.cjs");
|
|
4
4
|
const require_signing_eip712MethodByType = require("./eip712MethodByType.cjs");
|
|
5
5
|
const require_signing_nonce = require("./nonce.cjs");
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as buildSignedMobileRequest } from "../buildSignedMobileRequest-
|
|
1
|
+
import { t as buildSignedMobileRequest } from "../buildSignedMobileRequest-BDxji7Vy.cjs";
|
|
2
2
|
export { buildSignedMobileRequest };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as buildSignedMobileRequest } from "../buildSignedMobileRequest-
|
|
1
|
+
import { t as buildSignedMobileRequest } from "../buildSignedMobileRequest-42meR4yV.js";
|
|
2
2
|
export { buildSignedMobileRequest };
|
|
@@ -24,6 +24,23 @@ function canonicalizeMobileInner(inner) {
|
|
|
24
24
|
locale: inner.locale,
|
|
25
25
|
app_version: inner.app_version
|
|
26
26
|
};
|
|
27
|
+
case "set_follow": return {
|
|
28
|
+
type: "set_follow",
|
|
29
|
+
subaccount: inner.subaccount,
|
|
30
|
+
is_following: inner.is_following
|
|
31
|
+
};
|
|
32
|
+
case "followers": return {
|
|
33
|
+
type: "followers",
|
|
34
|
+
subaccount: inner.subaccount,
|
|
35
|
+
cursor: inner.cursor,
|
|
36
|
+
limit: inner.limit
|
|
37
|
+
};
|
|
38
|
+
case "following": return {
|
|
39
|
+
type: "following",
|
|
40
|
+
subaccount: inner.subaccount,
|
|
41
|
+
cursor: inner.cursor,
|
|
42
|
+
limit: inner.limit
|
|
43
|
+
};
|
|
27
44
|
default: throw new Error(`canonicalizeMobileInner: unhandled inner payload type: ${JSON.stringify(inner)}`);
|
|
28
45
|
}
|
|
29
46
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"canonicalize.cjs","names":[],"sources":["../../src/signing/canonicalize.ts"],"sourcesContent":["import { MobileSignedInner } from './types';\n\n/**\n * Rebuilds an inner payload with its keys in the backend's struct declaration order (`type` first, then the\n * remaining fields in the exact order the backend serializes them). msgpack encodes object keys in insertion\n * order and the payload hash must be reproducible regardless of how the caller constructed the object, so\n * every inner payload — and each of its sub-types — is canonicalized here before hashing. This function is\n * the source of truth for that order.\n */\nexport function canonicalizeMobileInner(\n inner: MobileSignedInner,\n): MobileSignedInner {\n switch (inner.type) {\n case 'set_username':\n return { type: 'set_username', display_name: inner.display_name };\n case 'set_private_mode':\n return { type: 'set_private_mode', private_mode: inner.private_mode };\n case 'register_expo_token':\n return {\n type: 'register_expo_token',\n expo_token: inner.expo_token,\n platform: inner.platform,\n locale: inner.locale,\n app_version: inner.app_version,\n };\n default: {\n throw new Error(\n `canonicalizeMobileInner: unhandled inner payload type: ${JSON.stringify(inner)}`,\n );\n }\n }\n}\n"],"mappings":";;;;;;;;;AASA,SAAgB,wBACd,OACmB;CACnB,QAAQ,MAAM,MAAd;EACE,KAAK,gBACH,OAAO;GAAE,MAAM;GAAgB,cAAc,MAAM;EAAa;EAClE,KAAK,oBACH,OAAO;GAAE,MAAM;GAAoB,cAAc,MAAM;EAAa;EACtE,KAAK,uBACH,OAAO;GACL,MAAM;GACN,YAAY,MAAM;GAClB,UAAU,MAAM;GAChB,QAAQ,MAAM;GACd,aAAa,MAAM;EACrB;EACF,SACE,MAAM,IAAI,MACR,0DAA0D,KAAK,UAAU,KAAK,GAChF;CAEJ;AACF"}
|
|
1
|
+
{"version":3,"file":"canonicalize.cjs","names":[],"sources":["../../src/signing/canonicalize.ts"],"sourcesContent":["import { MobileSignedInner } from './types';\n\n/**\n * Rebuilds an inner payload with its keys in the backend's struct declaration order (`type` first, then the\n * remaining fields in the exact order the backend serializes them). msgpack encodes object keys in insertion\n * order and the payload hash must be reproducible regardless of how the caller constructed the object, so\n * every inner payload — and each of its sub-types — is canonicalized here before hashing. This function is\n * the source of truth for that order.\n */\nexport function canonicalizeMobileInner(\n inner: MobileSignedInner,\n): MobileSignedInner {\n switch (inner.type) {\n case 'set_username':\n return { type: 'set_username', display_name: inner.display_name };\n case 'set_private_mode':\n return { type: 'set_private_mode', private_mode: inner.private_mode };\n case 'register_expo_token':\n return {\n type: 'register_expo_token',\n expo_token: inner.expo_token,\n platform: inner.platform,\n locale: inner.locale,\n app_version: inner.app_version,\n };\n case 'set_follow':\n return {\n type: 'set_follow',\n subaccount: inner.subaccount,\n is_following: inner.is_following,\n };\n case 'followers':\n return {\n type: 'followers',\n subaccount: inner.subaccount,\n cursor: inner.cursor,\n limit: inner.limit,\n };\n case 'following':\n return {\n type: 'following',\n subaccount: inner.subaccount,\n cursor: inner.cursor,\n limit: inner.limit,\n };\n default: {\n throw new Error(\n `canonicalizeMobileInner: unhandled inner payload type: ${JSON.stringify(inner)}`,\n );\n }\n }\n}\n"],"mappings":";;;;;;;;;AASA,SAAgB,wBACd,OACmB;CACnB,QAAQ,MAAM,MAAd;EACE,KAAK,gBACH,OAAO;GAAE,MAAM;GAAgB,cAAc,MAAM;EAAa;EAClE,KAAK,oBACH,OAAO;GAAE,MAAM;GAAoB,cAAc,MAAM;EAAa;EACtE,KAAK,uBACH,OAAO;GACL,MAAM;GACN,YAAY,MAAM;GAClB,UAAU,MAAM;GAChB,QAAQ,MAAM;GACd,aAAa,MAAM;EACrB;EACF,KAAK,cACH,OAAO;GACL,MAAM;GACN,YAAY,MAAM;GAClB,cAAc,MAAM;EACtB;EACF,KAAK,aACH,OAAO;GACL,MAAM;GACN,YAAY,MAAM;GAClB,QAAQ,MAAM;GACd,OAAO,MAAM;EACf;EACF,KAAK,aACH,OAAO;GACL,MAAM;GACN,YAAY,MAAM;GAClB,QAAQ,MAAM;GACd,OAAO,MAAM;EACf;EACF,SACE,MAAM,IAAI,MACR,0DAA0D,KAAK,UAAU,KAAK,GAChF;CAEJ;AACF"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as canonicalizeMobileInner } from "../canonicalize-
|
|
1
|
+
import { t as canonicalizeMobileInner } from "../canonicalize-CIDJLLgg.cjs";
|
|
2
2
|
export { canonicalizeMobileInner };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as canonicalizeMobileInner } from "../canonicalize-
|
|
1
|
+
import { t as canonicalizeMobileInner } from "../canonicalize-BebHhHcF.js";
|
|
2
2
|
export { canonicalizeMobileInner };
|
|
@@ -23,6 +23,23 @@ function canonicalizeMobileInner(inner) {
|
|
|
23
23
|
locale: inner.locale,
|
|
24
24
|
app_version: inner.app_version
|
|
25
25
|
};
|
|
26
|
+
case "set_follow": return {
|
|
27
|
+
type: "set_follow",
|
|
28
|
+
subaccount: inner.subaccount,
|
|
29
|
+
is_following: inner.is_following
|
|
30
|
+
};
|
|
31
|
+
case "followers": return {
|
|
32
|
+
type: "followers",
|
|
33
|
+
subaccount: inner.subaccount,
|
|
34
|
+
cursor: inner.cursor,
|
|
35
|
+
limit: inner.limit
|
|
36
|
+
};
|
|
37
|
+
case "following": return {
|
|
38
|
+
type: "following",
|
|
39
|
+
subaccount: inner.subaccount,
|
|
40
|
+
cursor: inner.cursor,
|
|
41
|
+
limit: inner.limit
|
|
42
|
+
};
|
|
26
43
|
default: throw new Error(`canonicalizeMobileInner: unhandled inner payload type: ${JSON.stringify(inner)}`);
|
|
27
44
|
}
|
|
28
45
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"canonicalize.js","names":[],"sources":["../../src/signing/canonicalize.ts"],"sourcesContent":["import { MobileSignedInner } from './types';\n\n/**\n * Rebuilds an inner payload with its keys in the backend's struct declaration order (`type` first, then the\n * remaining fields in the exact order the backend serializes them). msgpack encodes object keys in insertion\n * order and the payload hash must be reproducible regardless of how the caller constructed the object, so\n * every inner payload — and each of its sub-types — is canonicalized here before hashing. This function is\n * the source of truth for that order.\n */\nexport function canonicalizeMobileInner(\n inner: MobileSignedInner,\n): MobileSignedInner {\n switch (inner.type) {\n case 'set_username':\n return { type: 'set_username', display_name: inner.display_name };\n case 'set_private_mode':\n return { type: 'set_private_mode', private_mode: inner.private_mode };\n case 'register_expo_token':\n return {\n type: 'register_expo_token',\n expo_token: inner.expo_token,\n platform: inner.platform,\n locale: inner.locale,\n app_version: inner.app_version,\n };\n default: {\n throw new Error(\n `canonicalizeMobileInner: unhandled inner payload type: ${JSON.stringify(inner)}`,\n );\n }\n }\n}\n"],"mappings":";;;;;;;;AASA,SAAgB,wBACd,OACmB;CACnB,QAAQ,MAAM,MAAd;EACE,KAAK,gBACH,OAAO;GAAE,MAAM;GAAgB,cAAc,MAAM;EAAa;EAClE,KAAK,oBACH,OAAO;GAAE,MAAM;GAAoB,cAAc,MAAM;EAAa;EACtE,KAAK,uBACH,OAAO;GACL,MAAM;GACN,YAAY,MAAM;GAClB,UAAU,MAAM;GAChB,QAAQ,MAAM;GACd,aAAa,MAAM;EACrB;EACF,SACE,MAAM,IAAI,MACR,0DAA0D,KAAK,UAAU,KAAK,GAChF;CAEJ;AACF"}
|
|
1
|
+
{"version":3,"file":"canonicalize.js","names":[],"sources":["../../src/signing/canonicalize.ts"],"sourcesContent":["import { MobileSignedInner } from './types';\n\n/**\n * Rebuilds an inner payload with its keys in the backend's struct declaration order (`type` first, then the\n * remaining fields in the exact order the backend serializes them). msgpack encodes object keys in insertion\n * order and the payload hash must be reproducible regardless of how the caller constructed the object, so\n * every inner payload — and each of its sub-types — is canonicalized here before hashing. This function is\n * the source of truth for that order.\n */\nexport function canonicalizeMobileInner(\n inner: MobileSignedInner,\n): MobileSignedInner {\n switch (inner.type) {\n case 'set_username':\n return { type: 'set_username', display_name: inner.display_name };\n case 'set_private_mode':\n return { type: 'set_private_mode', private_mode: inner.private_mode };\n case 'register_expo_token':\n return {\n type: 'register_expo_token',\n expo_token: inner.expo_token,\n platform: inner.platform,\n locale: inner.locale,\n app_version: inner.app_version,\n };\n case 'set_follow':\n return {\n type: 'set_follow',\n subaccount: inner.subaccount,\n is_following: inner.is_following,\n };\n case 'followers':\n return {\n type: 'followers',\n subaccount: inner.subaccount,\n cursor: inner.cursor,\n limit: inner.limit,\n };\n case 'following':\n return {\n type: 'following',\n subaccount: inner.subaccount,\n cursor: inner.cursor,\n limit: inner.limit,\n };\n default: {\n throw new Error(\n `canonicalizeMobileInner: unhandled inner payload type: ${JSON.stringify(inner)}`,\n );\n }\n }\n}\n"],"mappings":";;;;;;;;AASA,SAAgB,wBACd,OACmB;CACnB,QAAQ,MAAM,MAAd;EACE,KAAK,gBACH,OAAO;GAAE,MAAM;GAAgB,cAAc,MAAM;EAAa;EAClE,KAAK,oBACH,OAAO;GAAE,MAAM;GAAoB,cAAc,MAAM;EAAa;EACtE,KAAK,uBACH,OAAO;GACL,MAAM;GACN,YAAY,MAAM;GAClB,UAAU,MAAM;GAChB,QAAQ,MAAM;GACd,aAAa,MAAM;EACrB;EACF,KAAK,cACH,OAAO;GACL,MAAM;GACN,YAAY,MAAM;GAClB,cAAc,MAAM;EACtB;EACF,KAAK,aACH,OAAO;GACL,MAAM;GACN,YAAY,MAAM;GAClB,QAAQ,MAAM;GACd,OAAO,MAAM;EACf;EACF,KAAK,aACH,OAAO;GACL,MAAM;GACN,YAAY,MAAM;GAClB,QAAQ,MAAM;GACd,OAAO,MAAM;EACf;EACF,SACE,MAAM,IAAI,MACR,0DAA0D,KAAK,UAAU,KAAK,GAChF;CAEJ;AACF"}
|
|
@@ -6,7 +6,10 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
6
6
|
const MOBILE_EIP712_METHOD_BY_TYPE = {
|
|
7
7
|
set_username: "mobile:execute_set_username",
|
|
8
8
|
set_private_mode: "mobile:execute_set_private_mode",
|
|
9
|
-
register_expo_token: "mobile:execute_register_expo_token"
|
|
9
|
+
register_expo_token: "mobile:execute_register_expo_token",
|
|
10
|
+
set_follow: "mobile:execute_set_follow",
|
|
11
|
+
followers: "mobile:query_followers",
|
|
12
|
+
following: "mobile:query_following"
|
|
10
13
|
};
|
|
11
14
|
//#endregion
|
|
12
15
|
exports.MOBILE_EIP712_METHOD_BY_TYPE = MOBILE_EIP712_METHOD_BY_TYPE;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eip712MethodByType.cjs","names":[],"sources":["../../src/signing/eip712MethodByType.ts"],"sourcesContent":["import { MobileSignedInner } from './types';\n\n/**\n * EIP-712 `method` string for each signed inner payload type.\n */\nexport const MOBILE_EIP712_METHOD_BY_TYPE: Record<\n MobileSignedInner['type'],\n string\n> = {\n set_username: 'mobile:execute_set_username',\n set_private_mode: 'mobile:execute_set_private_mode',\n register_expo_token: 'mobile:execute_register_expo_token',\n};\n"],"mappings":";;;;;AAKA,MAAa,+BAGT;CACF,cAAc;CACd,kBAAkB;CAClB,qBAAqB;
|
|
1
|
+
{"version":3,"file":"eip712MethodByType.cjs","names":[],"sources":["../../src/signing/eip712MethodByType.ts"],"sourcesContent":["import { MobileSignedInner } from './types';\n\n/**\n * EIP-712 `method` string for each signed inner payload type.\n */\nexport const MOBILE_EIP712_METHOD_BY_TYPE: Record<\n MobileSignedInner['type'],\n string\n> = {\n set_username: 'mobile:execute_set_username',\n set_private_mode: 'mobile:execute_set_private_mode',\n register_expo_token: 'mobile:execute_register_expo_token',\n set_follow: 'mobile:execute_set_follow',\n followers: 'mobile:query_followers',\n following: 'mobile:query_following',\n};\n"],"mappings":";;;;;AAKA,MAAa,+BAGT;CACF,cAAc;CACd,kBAAkB;CAClB,qBAAqB;CACrB,YAAY;CACZ,WAAW;CACX,WAAW;AACb"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as MOBILE_EIP712_METHOD_BY_TYPE } from "../eip712MethodByType-
|
|
1
|
+
import { t as MOBILE_EIP712_METHOD_BY_TYPE } from "../eip712MethodByType-2-vyN5SU.cjs";
|
|
2
2
|
export { MOBILE_EIP712_METHOD_BY_TYPE };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as MOBILE_EIP712_METHOD_BY_TYPE } from "../eip712MethodByType-
|
|
1
|
+
import { t as MOBILE_EIP712_METHOD_BY_TYPE } from "../eip712MethodByType-CAVpvZoS.js";
|
|
2
2
|
export { MOBILE_EIP712_METHOD_BY_TYPE };
|