@nadohq/mobile-client 0.29.0 → 0.31.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 +15 -8
- package/dist/{MobileClient-9JSAzblH.cjs → MobileClient-_i0ZV6Dq.cjs} +104 -44
- package/dist/MobileClient-_i0ZV6Dq.cjs.map +1 -0
- package/dist/MobileClient.cjs +1 -1
- package/dist/MobileClient.d.cts +77 -36
- package/dist/MobileClient.d.cts.map +1 -1
- package/dist/MobileClient.d.ts +77 -36
- package/dist/MobileClient.d.ts.map +1 -1
- package/dist/MobileClient.js +105 -45
- package/dist/MobileClient.js.map +1 -1
- package/dist/{MobileServerFailureError-ZggEcEda.d.cts → MobileServerFailureError-BoyAfEZA.d.cts} +3 -2
- package/dist/MobileServerFailureError-BoyAfEZA.d.cts.map +1 -0
- package/dist/{MobileServerFailureError-f9KhKnJj.d.ts → MobileServerFailureError-MgYVBh5p.d.ts} +3 -2
- package/dist/MobileServerFailureError-MgYVBh5p.d.ts.map +1 -0
- package/dist/{buildSignedMobileRequest-BsbBkU0K.d.cts → buildSignedMobileRequest-CBMt97aY.d.cts} +2 -2
- package/dist/{buildSignedMobileRequest-BsbBkU0K.d.cts.map → buildSignedMobileRequest-CBMt97aY.d.cts.map} +1 -1
- package/dist/{buildSignedMobileRequest-CDRsRNHm.d.ts → buildSignedMobileRequest-qEC4gWaI.d.ts} +2 -2
- package/dist/{buildSignedMobileRequest-CDRsRNHm.d.ts.map → buildSignedMobileRequest-qEC4gWaI.d.ts.map} +1 -1
- package/dist/{canonicalize-PX6dTIdF.d.ts → canonicalize-QNARV_Xc.d.cts} +4 -4
- package/dist/canonicalize-QNARV_Xc.d.cts.map +1 -0
- package/dist/{canonicalize-Dm7sXwPg.d.cts → canonicalize-wVdGejB1.d.ts} +4 -4
- package/dist/canonicalize-wVdGejB1.d.ts.map +1 -0
- package/dist/clientTypes-6utzUU-b.d.ts +240 -0
- package/dist/clientTypes-6utzUU-b.d.ts.map +1 -0
- package/dist/clientTypes-D9qgtNlE.d.cts +240 -0
- package/dist/clientTypes-D9qgtNlE.d.cts.map +1 -0
- package/dist/dataMappers.cjs +35 -1
- package/dist/dataMappers.cjs.map +1 -1
- package/dist/dataMappers.d.cts +8 -3
- package/dist/dataMappers.d.cts.map +1 -1
- package/dist/dataMappers.d.ts +8 -3
- package/dist/dataMappers.d.ts.map +1 -1
- package/dist/dataMappers.js +35 -2
- package/dist/dataMappers.js.map +1 -1
- package/dist/{eip712MethodByType-DLh9MRsD.d.cts → eip712MethodByType-CroIPqsJ.d.cts} +2 -2
- package/dist/eip712MethodByType-CroIPqsJ.d.cts.map +1 -0
- package/dist/{eip712MethodByType-DJgXal9r.d.ts → eip712MethodByType-DBUy4AdI.d.ts} +2 -2
- package/dist/eip712MethodByType-DBUy4AdI.d.ts.map +1 -0
- package/dist/feed-BF5k6Ryu.d.ts +14 -0
- package/dist/feed-BF5k6Ryu.d.ts.map +1 -0
- package/dist/feed-CBIwOhTO.d.cts +14 -0
- package/dist/feed-CBIwOhTO.d.cts.map +1 -0
- package/dist/index.cjs +8 -1
- package/dist/index.d.cts +17 -15
- package/dist/index.d.ts +17 -15
- package/dist/index.js +3 -1
- package/dist/{mobileErrorCodes-BeyBKmwh.d.cts → mobileErrorCodes-CuQ5lyBV.d.ts} +8 -8
- package/dist/mobileErrorCodes-CuQ5lyBV.d.ts.map +1 -0
- package/dist/{mobileErrorCodes-QG5XbEY6.d.ts → mobileErrorCodes-D_SyBm0k.d.cts} +8 -8
- package/dist/mobileErrorCodes-D_SyBm0k.d.cts.map +1 -0
- package/dist/{patterns-BbxH3_VA.d.ts → patterns-B5gi7OfV.d.ts} +1 -1
- package/dist/patterns-B5gi7OfV.d.ts.map +1 -0
- package/dist/{patterns-B9J2ldpx.d.cts → patterns-Db6fgz8i.d.cts} +1 -1
- package/dist/patterns-Db6fgz8i.d.cts.map +1 -0
- package/dist/{payloadHash-nj8WuLUP.d.cts → payloadHash-B0tlFOK8.d.cts} +2 -2
- package/dist/payloadHash-B0tlFOK8.d.cts.map +1 -0
- package/dist/{payloadHash-Bmhzs78N.d.ts → payloadHash-D1yTQSF4.d.ts} +2 -2
- package/dist/payloadHash-D1yTQSF4.d.ts.map +1 -0
- package/dist/serverBaseTypes-CzRgwUvA.d.ts +25 -0
- package/dist/serverBaseTypes-CzRgwUvA.d.ts.map +1 -0
- package/dist/serverBaseTypes-DSRgU2Fb.d.cts +25 -0
- package/dist/serverBaseTypes-DSRgU2Fb.d.cts.map +1 -0
- package/dist/serverExecuteTypes-BCb6bUMP.d.cts +19 -0
- package/dist/serverExecuteTypes-BCb6bUMP.d.cts.map +1 -0
- package/dist/serverExecuteTypes-CI3NBW2Z.d.ts +19 -0
- package/dist/serverExecuteTypes-CI3NBW2Z.d.ts.map +1 -0
- package/dist/serverModelTypes-BYQcsRrx.d.cts +146 -0
- package/dist/serverModelTypes-BYQcsRrx.d.cts.map +1 -0
- package/dist/serverModelTypes-DvPs5qs3.d.ts +146 -0
- package/dist/serverModelTypes-DvPs5qs3.d.ts.map +1 -0
- package/dist/serverQueryTypes-9H6P1vJ5.d.cts +92 -0
- package/dist/serverQueryTypes-9H6P1vJ5.d.cts.map +1 -0
- package/dist/serverQueryTypes-Cbjx0bIj.d.ts +92 -0
- package/dist/serverQueryTypes-Cbjx0bIj.d.ts.map +1 -0
- package/dist/serverRequestTypes-CHDk6JwE.d.cts +85 -0
- package/dist/serverRequestTypes-CHDk6JwE.d.cts.map +1 -0
- package/dist/serverRequestTypes-DYTLrCpz.d.ts +85 -0
- package/dist/serverRequestTypes-DYTLrCpz.d.ts.map +1 -0
- package/dist/{serverResponseGuards-DjCNL3CR.d.cts → serverResponseGuards-DRMHmfXh.d.cts} +2 -2
- package/dist/{serverResponseGuards-DjCNL3CR.d.cts.map → serverResponseGuards-DRMHmfXh.d.cts.map} +1 -1
- package/dist/{serverResponseGuards-C_vZIgGl.d.ts → serverResponseGuards-DpbZvJfL.d.ts} +2 -2
- package/dist/{serverResponseGuards-C_vZIgGl.d.ts.map → serverResponseGuards-DpbZvJfL.d.ts.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 +4 -37
- 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 +4 -37
- package/dist/signing/canonicalize.js.map +1 -1
- package/dist/signing/eip712MethodByType.cjs +1 -5
- 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 +1 -5
- 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.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 +1 -1
- package/dist/signing/types.d.ts +1 -1
- package/dist/types/MobileServerFailureError.cjs +1 -1
- package/dist/types/MobileServerFailureError.cjs.map +1 -1
- package/dist/types/MobileServerFailureError.d.cts +1 -1
- package/dist/types/MobileServerFailureError.d.ts +1 -1
- package/dist/types/MobileServerFailureError.js.map +1 -1
- package/dist/types/clientTypes.d.cts +2 -2
- package/dist/types/clientTypes.d.ts +2 -2
- package/dist/types/index.cjs +4 -0
- package/dist/types/index.d.cts +9 -8
- package/dist/types/index.d.ts +9 -8
- package/dist/types/index.js +2 -1
- package/dist/types/mobileErrorCodes.cjs +10 -7
- 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 +9 -6
- package/dist/types/mobileErrorCodes.js.map +1 -1
- package/dist/types/serverBaseTypes.d.cts +2 -2
- package/dist/types/serverBaseTypes.d.ts +2 -2
- package/dist/types/serverExecuteTypes.d.cts +2 -2
- package/dist/types/serverExecuteTypes.d.ts +2 -2
- package/dist/types/serverModelTypes.cjs +29 -0
- package/dist/types/serverModelTypes.cjs.map +1 -0
- package/dist/types/serverModelTypes.d.cts +2 -2
- package/dist/types/serverModelTypes.d.ts +2 -2
- package/dist/types/serverModelTypes.js +26 -1
- package/dist/types/serverModelTypes.js.map +1 -0
- package/dist/types/serverQueryTypes.d.cts +2 -2
- package/dist/types/serverQueryTypes.d.ts +2 -2
- package/dist/types/serverRequestTypes.cjs +0 -0
- package/dist/types/serverRequestTypes.d.cts +2 -0
- package/dist/types/serverRequestTypes.d.ts +2 -0
- package/dist/types/serverRequestTypes.js +1 -0
- package/dist/{types-B76Pn7Sy.d.ts → types-CQE3HD2V.d.ts} +4 -15
- package/dist/types-CQE3HD2V.d.ts.map +1 -0
- package/dist/{types-uCD4BNZR.d.cts → types-bNB98pYk.d.cts} +4 -15
- package/dist/types-bNB98pYk.d.cts.map +1 -0
- package/dist/utils/feed.cjs +17 -0
- package/dist/utils/feed.cjs.map +1 -0
- package/dist/utils/feed.d.cts +2 -0
- package/dist/utils/feed.d.ts +2 -0
- package/dist/utils/feed.js +15 -0
- package/dist/utils/feed.js.map +1 -0
- package/dist/utils/index.cjs +3 -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 +163 -112
- package/src/dataMappers.ts +41 -0
- package/src/signing/canonicalize.ts +4 -37
- package/src/signing/eip712MethodByType.ts +1 -5
- package/src/signing/signing.test.ts +17 -60
- package/src/signing/types.ts +2 -12
- package/src/types/MobileServerFailureError.ts +2 -4
- package/src/types/clientTypes.ts +105 -27
- package/src/types/index.ts +1 -0
- package/src/types/mobileErrorCodes.ts +8 -5
- package/src/types/serverBaseTypes.ts +7 -28
- package/src/types/serverExecuteTypes.ts +17 -0
- package/src/types/serverModelTypes.ts +104 -8
- package/src/types/serverQueryTypes.ts +84 -39
- package/src/types/serverRequestTypes.ts +91 -0
- package/src/utils/feed.ts +11 -0
- package/src/utils/index.ts +1 -0
- package/dist/MobileClient-9JSAzblH.cjs.map +0 -1
- package/dist/MobileServerFailureError-ZggEcEda.d.cts.map +0 -1
- package/dist/MobileServerFailureError-f9KhKnJj.d.ts.map +0 -1
- package/dist/canonicalize-Dm7sXwPg.d.cts.map +0 -1
- package/dist/canonicalize-PX6dTIdF.d.ts.map +0 -1
- package/dist/clientTypes-DWW2N66c.d.ts +0 -168
- package/dist/clientTypes-DWW2N66c.d.ts.map +0 -1
- package/dist/clientTypes-Et0PUa2d.d.cts +0 -168
- package/dist/clientTypes-Et0PUa2d.d.cts.map +0 -1
- package/dist/eip712MethodByType-DJgXal9r.d.ts.map +0 -1
- package/dist/eip712MethodByType-DLh9MRsD.d.cts.map +0 -1
- package/dist/mobileErrorCodes-BeyBKmwh.d.cts.map +0 -1
- package/dist/mobileErrorCodes-QG5XbEY6.d.ts.map +0 -1
- package/dist/patterns-B9J2ldpx.d.cts.map +0 -1
- package/dist/patterns-BbxH3_VA.d.ts.map +0 -1
- package/dist/payloadHash-Bmhzs78N.d.ts.map +0 -1
- package/dist/payloadHash-nj8WuLUP.d.cts.map +0 -1
- package/dist/serverBaseTypes-BicXMrZV.d.cts +0 -43
- package/dist/serverBaseTypes-BicXMrZV.d.cts.map +0 -1
- package/dist/serverBaseTypes-ewbo8l4R.d.ts +0 -43
- package/dist/serverBaseTypes-ewbo8l4R.d.ts.map +0 -1
- package/dist/serverExecuteTypes-CXnMjKnt.d.ts +0 -11
- package/dist/serverExecuteTypes-CXnMjKnt.d.ts.map +0 -1
- package/dist/serverExecuteTypes-DKYK1V7C.d.cts +0 -11
- package/dist/serverExecuteTypes-DKYK1V7C.d.cts.map +0 -1
- package/dist/serverModelTypes-CQgfqgW3.d.cts +0 -69
- package/dist/serverModelTypes-CQgfqgW3.d.cts.map +0 -1
- package/dist/serverModelTypes-vEPhHIit.d.ts +0 -69
- package/dist/serverModelTypes-vEPhHIit.d.ts.map +0 -1
- package/dist/serverQueryTypes-BI-2TD8F.d.ts +0 -53
- package/dist/serverQueryTypes-BI-2TD8F.d.ts.map +0 -1
- package/dist/serverQueryTypes-D7Yharse.d.cts +0 -53
- package/dist/serverQueryTypes-D7Yharse.d.cts.map +0 -1
- package/dist/types-B76Pn7Sy.d.ts.map +0 -1
- package/dist/types-uCD4BNZR.d.cts.map +0 -1
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { h as MobileServerNotificationPreferences } from "./serverModelTypes-DvPs5qs3.js";
|
|
2
|
+
import { n as MobileSignedInner } from "./types-CQE3HD2V.js";
|
|
3
|
+
import { Hex } from "viem";
|
|
4
|
+
|
|
5
|
+
//#region src/types/serverRequestTypes.d.ts
|
|
6
|
+
/**
|
|
7
|
+
* Params for each unsigned `public_query`, keyed by request `type`.
|
|
8
|
+
*/
|
|
9
|
+
interface MobileServerPublicQueryRequestByType {
|
|
10
|
+
username_availability: {
|
|
11
|
+
display_name: string;
|
|
12
|
+
};
|
|
13
|
+
profile: {
|
|
14
|
+
subaccount: Hex;
|
|
15
|
+
};
|
|
16
|
+
feed: {
|
|
17
|
+
/**
|
|
18
|
+
* Minimum notional as a whole-dollar JSON integer (NOT an x18 string), at least $1,000. Omitted or
|
|
19
|
+
* `null` means unfiltered.
|
|
20
|
+
*/
|
|
21
|
+
minimum_notional?: number; /** Page size, 1–50; the backend defaults to `MOBILE_FEED_MAX_PAGE_SIZE` (50) when omitted. */
|
|
22
|
+
limit?: number;
|
|
23
|
+
/**
|
|
24
|
+
* Opaque keyset cursor from a prior page's `next_cursor`. Bound to the exact `minimum_notional` it was
|
|
25
|
+
* issued for (including the unfiltered state) — reusing it with a different filter fails.
|
|
26
|
+
*/
|
|
27
|
+
cursor?: string;
|
|
28
|
+
};
|
|
29
|
+
notification_preferences: {
|
|
30
|
+
expo_token: string;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Discriminant `type` values for unsigned `public_query` requests.
|
|
35
|
+
*/
|
|
36
|
+
type MobileServerPublicQueryRequestType = keyof MobileServerPublicQueryRequestByType;
|
|
37
|
+
/**
|
|
38
|
+
* Params for each unsigned `public_execute`, keyed by request `type`. Possession of an active Expo push token
|
|
39
|
+
* authorizes these notification-only mutations: the backend resolves the token's owning wallet and mutates
|
|
40
|
+
* its state, so no signature, sender, or nonce is sent. Ordering is the backend's last-write-wins commit
|
|
41
|
+
* order, so callers must serialize their own writes.
|
|
42
|
+
*/
|
|
43
|
+
interface MobileServerPublicExecuteRequestByType {
|
|
44
|
+
unregister_expo_token: {
|
|
45
|
+
expo_token: string;
|
|
46
|
+
};
|
|
47
|
+
update_preferences: {
|
|
48
|
+
expo_token: string;
|
|
49
|
+
preferences: MobileServerNotificationPreferences;
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Discriminant `type` values for unsigned `public_execute` requests.
|
|
54
|
+
*/
|
|
55
|
+
type MobileServerPublicExecuteRequestType = keyof MobileServerPublicExecuteRequestByType;
|
|
56
|
+
/**
|
|
57
|
+
* Params for each signed `query`, keyed by request `type`. These queries identify the caller through the
|
|
58
|
+
* signed envelope (`sender`) and take no further params, so every entry is empty — the signed counterpart to
|
|
59
|
+
* {@link MobileServerPublicQueryRequestByType}, kept so both query routes expose one params lookup keyed by
|
|
60
|
+
* type (matching engine's `EngineServerQueryRequestByType`, which likewise uses `Record<string, never>` for
|
|
61
|
+
* param-less queries).
|
|
62
|
+
*/
|
|
63
|
+
interface MobileServerSignedQueryRequestByType {
|
|
64
|
+
self_identity: Record<string, never>;
|
|
65
|
+
registered_devices: Record<string, never>;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Discriminant `type` values for signed `query` requests: the read-only subset of {@link MobileSignedInner}
|
|
69
|
+
* tags, keyed the same way as {@link MobileServerPublicQueryRequestType}.
|
|
70
|
+
*/
|
|
71
|
+
type MobileServerSignedQueryRequestType = keyof MobileServerSignedQueryRequestByType;
|
|
72
|
+
/**
|
|
73
|
+
* Discriminant `type` values for signed `execute` requests: the write subset of {@link MobileSignedInner}
|
|
74
|
+
* tags, derived as everything that is not a signed query so the two routes cannot overlap or drift.
|
|
75
|
+
*/
|
|
76
|
+
type MobileServerExecuteRequestType = Exclude<MobileSignedInner['type'], MobileServerSignedQueryRequestType>;
|
|
77
|
+
/**
|
|
78
|
+
* Wire `request_type` the backend echoes on failure envelopes, prefixed by the route that produced it:
|
|
79
|
+
* `public_query_*` for unsigned queries, `public_execute_*` for unsigned writes, `query_*` for signed
|
|
80
|
+
* queries, and `execute_*` for signed writes (e.g. `execute_set_username`).
|
|
81
|
+
*/
|
|
82
|
+
type MobileServerRequestType = `public_query_${MobileServerPublicQueryRequestType}` | `public_execute_${MobileServerPublicExecuteRequestType}` | `query_${MobileServerSignedQueryRequestType}` | `execute_${MobileServerExecuteRequestType}`;
|
|
83
|
+
//#endregion
|
|
84
|
+
export { MobileServerPublicQueryRequestType as a, MobileServerSignedQueryRequestType as c, MobileServerPublicQueryRequestByType as i, MobileServerPublicExecuteRequestByType as n, MobileServerRequestType as o, MobileServerPublicExecuteRequestType as r, MobileServerSignedQueryRequestByType as s, MobileServerExecuteRequestType as t };
|
|
85
|
+
//# sourceMappingURL=serverRequestTypes-DYTLrCpz.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"serverRequestTypes-DYTLrCpz.d.ts","names":[],"sources":["../src/types/src/types/serverRequestTypes.ts"],"mappings":";;;;;;;AAOA;UAAiB,oCAAA;EACf,qBAAA;IAAyB,YAAA;EAAA;EACzB,OAAA;IAAW,UAAA,EAAY,GAAG;EAAA;EAC1B,IAAA;IAAA;;;;IAKE,gBAAA,WAS0B;IAP1B,KAAA;IAOoC;AAMxC;;;IARI,MAAA;EAAA;EAEF,wBAAA;IAA4B,UAAA;EAAA;AAAA;;;;KAMlB,kCAAA,SACJ,oCAAoC;;;;AAYQ;AAOpD;;UAXiB,sCAAA;EACf,qBAAA;IAAyB,UAAA;EAAA;EACzB,kBAAA;IACE,UAAA;IACA,WAAA,EAAa,mCAAmC;EAAA;AAAA;;;;KAOxC,oCAAA,SACJ,sCAAsC;AAkB9C;;;;AAC4C;AAM5C;;AAPA,UATiB,oCAAA;EACf,aAAA,EAAe,MAAA;EACf,kBAAA,EAAoB,MAAM;AAAA;;;;;KAOhB,kCAAA,SACJ,oCAAoC;;AAQR;AAQpC;;KAVY,8BAAA,GAAiC,OAAA,CAC3C,iBAAA,UACA,kCAAA;;;;;;KAQU,uBAAA,mBACQ,kCAAA,uBACE,oCAAA,cACT,kCAAA,gBACE,8BAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as MobileServerFailureResponse } from "./serverBaseTypes-
|
|
1
|
+
import { t as MobileServerFailureResponse } from "./serverBaseTypes-DSRgU2Fb.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-DRMHmfXh.d.cts.map
|
package/dist/{serverResponseGuards-DjCNL3CR.d.cts.map → serverResponseGuards-DRMHmfXh.d.cts.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serverResponseGuards-
|
|
1
|
+
{"version":3,"file":"serverResponseGuards-DRMHmfXh.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,4 +1,4 @@
|
|
|
1
|
-
import { t as MobileServerFailureResponse } from "./serverBaseTypes-
|
|
1
|
+
import { t as MobileServerFailureResponse } from "./serverBaseTypes-CzRgwUvA.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-DpbZvJfL.d.ts.map
|
package/dist/{serverResponseGuards-C_vZIgGl.d.ts.map → serverResponseGuards-DpbZvJfL.d.ts.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serverResponseGuards-
|
|
1
|
+
{"version":3,"file":"serverResponseGuards-DpbZvJfL.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,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
require("../MobileClient-
|
|
2
|
+
require("../MobileClient-_i0ZV6Dq.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-CBMt97aY.cjs";
|
|
2
2
|
export { buildSignedMobileRequest };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as buildSignedMobileRequest } from "../buildSignedMobileRequest-
|
|
1
|
+
import { t as buildSignedMobileRequest } from "../buildSignedMobileRequest-qEC4gWaI.js";
|
|
2
2
|
export { buildSignedMobileRequest };
|
|
@@ -4,17 +4,13 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
4
4
|
* Rebuilds an inner payload with its keys in the backend's struct declaration order (`type` first, then the
|
|
5
5
|
* remaining fields in the exact order the backend serializes them). msgpack encodes object keys in insertion
|
|
6
6
|
* order and the payload hash must be reproducible regardless of how the caller constructed the object, so
|
|
7
|
-
* every inner payload — and each of its sub-types — is canonicalized here before hashing. This function
|
|
8
|
-
*
|
|
7
|
+
* every inner payload — and each of its sub-types — is canonicalized here before hashing. This function is
|
|
8
|
+
* the source of truth for that order.
|
|
9
9
|
*/
|
|
10
10
|
function canonicalizeMobileInner(inner) {
|
|
11
11
|
switch (inner.type) {
|
|
12
|
-
case "
|
|
13
|
-
type: "
|
|
14
|
-
display_name: inner.display_name
|
|
15
|
-
};
|
|
16
|
-
case "update_username": return {
|
|
17
|
-
type: "update_username",
|
|
12
|
+
case "set_username": return {
|
|
13
|
+
type: "set_username",
|
|
18
14
|
display_name: inner.display_name
|
|
19
15
|
};
|
|
20
16
|
case "set_private_mode": return {
|
|
@@ -29,39 +25,10 @@ function canonicalizeMobileInner(inner) {
|
|
|
29
25
|
locale: inner.locale,
|
|
30
26
|
app_version: inner.app_version
|
|
31
27
|
};
|
|
32
|
-
case "unregister_expo_token": return {
|
|
33
|
-
type: "unregister_expo_token",
|
|
34
|
-
expo_token: inner.expo_token
|
|
35
|
-
};
|
|
36
|
-
case "update_preferences": return {
|
|
37
|
-
type: "update_preferences",
|
|
38
|
-
preferences: canonicalizeNotificationPreferences(inner.preferences)
|
|
39
|
-
};
|
|
40
|
-
case "notification_preferences": return { type: "notification_preferences" };
|
|
41
28
|
case "registered_devices": return { type: "registered_devices" };
|
|
42
29
|
default: throw new Error(`canonicalizeMobileInner: unhandled inner payload type: ${JSON.stringify(inner)}`);
|
|
43
30
|
}
|
|
44
31
|
}
|
|
45
|
-
/**
|
|
46
|
-
* Rebuilds notification preferences with keys in the backend's struct declaration order, so the msgpack
|
|
47
|
-
* encoding matches the backend's `rmp_serde::to_vec_named` output field-for-field.
|
|
48
|
-
*/
|
|
49
|
-
function canonicalizeNotificationPreferences(preferences) {
|
|
50
|
-
return {
|
|
51
|
-
schema_version: preferences.schema_version,
|
|
52
|
-
categories: preferences.categories.map((category) => ({
|
|
53
|
-
category: category.category,
|
|
54
|
-
enabled: category.enabled,
|
|
55
|
-
scopes: category.scopes.map((scope) => scope.type === "subaccount" ? {
|
|
56
|
-
type: "subaccount",
|
|
57
|
-
subaccount: scope.subaccount
|
|
58
|
-
} : {
|
|
59
|
-
type: "product",
|
|
60
|
-
product_id: scope.product_id
|
|
61
|
-
})
|
|
62
|
-
}))
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
32
|
//#endregion
|
|
66
33
|
exports.canonicalizeMobileInner = canonicalizeMobileInner;
|
|
67
34
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"canonicalize.cjs","names":[],"sources":["../../src/signing/canonicalize.ts"],"sourcesContent":["import {
|
|
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 'self_identity':\n return { type: 'self_identity' };\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 'registered_devices':\n return { type: 'registered_devices' };\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,iBACH,OAAO,EAAE,MAAM,gBAAgB;EACjC,KAAK,uBACH,OAAO;GACL,MAAM;GACN,YAAY,MAAM;GAClB,UAAU,MAAM;GAChB,QAAQ,MAAM;GACd,aAAa,MAAM;EACrB;EACF,KAAK,sBACH,OAAO,EAAE,MAAM,qBAAqB;EACtC,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-QNARV_Xc.cjs";
|
|
2
2
|
export { canonicalizeMobileInner };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as canonicalizeMobileInner } from "../canonicalize-
|
|
1
|
+
import { t as canonicalizeMobileInner } from "../canonicalize-wVdGejB1.js";
|
|
2
2
|
export { canonicalizeMobileInner };
|
|
@@ -3,17 +3,13 @@
|
|
|
3
3
|
* Rebuilds an inner payload with its keys in the backend's struct declaration order (`type` first, then the
|
|
4
4
|
* remaining fields in the exact order the backend serializes them). msgpack encodes object keys in insertion
|
|
5
5
|
* order and the payload hash must be reproducible regardless of how the caller constructed the object, so
|
|
6
|
-
* every inner payload — and each of its sub-types — is canonicalized here before hashing. This function
|
|
7
|
-
*
|
|
6
|
+
* every inner payload — and each of its sub-types — is canonicalized here before hashing. This function is
|
|
7
|
+
* the source of truth for that order.
|
|
8
8
|
*/
|
|
9
9
|
function canonicalizeMobileInner(inner) {
|
|
10
10
|
switch (inner.type) {
|
|
11
|
-
case "
|
|
12
|
-
type: "
|
|
13
|
-
display_name: inner.display_name
|
|
14
|
-
};
|
|
15
|
-
case "update_username": return {
|
|
16
|
-
type: "update_username",
|
|
11
|
+
case "set_username": return {
|
|
12
|
+
type: "set_username",
|
|
17
13
|
display_name: inner.display_name
|
|
18
14
|
};
|
|
19
15
|
case "set_private_mode": return {
|
|
@@ -28,39 +24,10 @@ function canonicalizeMobileInner(inner) {
|
|
|
28
24
|
locale: inner.locale,
|
|
29
25
|
app_version: inner.app_version
|
|
30
26
|
};
|
|
31
|
-
case "unregister_expo_token": return {
|
|
32
|
-
type: "unregister_expo_token",
|
|
33
|
-
expo_token: inner.expo_token
|
|
34
|
-
};
|
|
35
|
-
case "update_preferences": return {
|
|
36
|
-
type: "update_preferences",
|
|
37
|
-
preferences: canonicalizeNotificationPreferences(inner.preferences)
|
|
38
|
-
};
|
|
39
|
-
case "notification_preferences": return { type: "notification_preferences" };
|
|
40
27
|
case "registered_devices": return { type: "registered_devices" };
|
|
41
28
|
default: throw new Error(`canonicalizeMobileInner: unhandled inner payload type: ${JSON.stringify(inner)}`);
|
|
42
29
|
}
|
|
43
30
|
}
|
|
44
|
-
/**
|
|
45
|
-
* Rebuilds notification preferences with keys in the backend's struct declaration order, so the msgpack
|
|
46
|
-
* encoding matches the backend's `rmp_serde::to_vec_named` output field-for-field.
|
|
47
|
-
*/
|
|
48
|
-
function canonicalizeNotificationPreferences(preferences) {
|
|
49
|
-
return {
|
|
50
|
-
schema_version: preferences.schema_version,
|
|
51
|
-
categories: preferences.categories.map((category) => ({
|
|
52
|
-
category: category.category,
|
|
53
|
-
enabled: category.enabled,
|
|
54
|
-
scopes: category.scopes.map((scope) => scope.type === "subaccount" ? {
|
|
55
|
-
type: "subaccount",
|
|
56
|
-
subaccount: scope.subaccount
|
|
57
|
-
} : {
|
|
58
|
-
type: "product",
|
|
59
|
-
product_id: scope.product_id
|
|
60
|
-
})
|
|
61
|
-
}))
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
31
|
//#endregion
|
|
65
32
|
export { canonicalizeMobileInner };
|
|
66
33
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"canonicalize.js","names":[],"sources":["../../src/signing/canonicalize.ts"],"sourcesContent":["import {
|
|
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 'self_identity':\n return { type: 'self_identity' };\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 'registered_devices':\n return { type: 'registered_devices' };\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,iBACH,OAAO,EAAE,MAAM,gBAAgB;EACjC,KAAK,uBACH,OAAO;GACL,MAAM;GACN,YAAY,MAAM;GAClB,UAAU,MAAM;GAChB,QAAQ,MAAM;GACd,aAAa,MAAM;EACrB;EACF,KAAK,sBACH,OAAO,EAAE,MAAM,qBAAqB;EACtC,SACE,MAAM,IAAI,MACR,0DAA0D,KAAK,UAAU,KAAK,GAChF;CAEJ;AACF"}
|
|
@@ -4,14 +4,10 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
4
4
|
* EIP-712 `method` string for each signed inner payload type.
|
|
5
5
|
*/
|
|
6
6
|
const MOBILE_EIP712_METHOD_BY_TYPE = {
|
|
7
|
-
|
|
8
|
-
update_username: "mobile:execute_update_username",
|
|
7
|
+
set_username: "mobile:execute_set_username",
|
|
9
8
|
set_private_mode: "mobile:execute_set_private_mode",
|
|
10
9
|
self_identity: "mobile:query_self_identity",
|
|
11
10
|
register_expo_token: "mobile:execute_register_expo_token",
|
|
12
|
-
unregister_expo_token: "mobile:execute_unregister_expo_token",
|
|
13
|
-
update_preferences: "mobile:execute_update_preferences",
|
|
14
|
-
notification_preferences: "mobile:query_notification_preferences",
|
|
15
11
|
registered_devices: "mobile:query_registered_devices"
|
|
16
12
|
};
|
|
17
13
|
//#endregion
|
|
@@ -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
|
|
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 self_identity: 'mobile:query_self_identity',\n register_expo_token: 'mobile:execute_register_expo_token',\n registered_devices: 'mobile:query_registered_devices',\n};\n"],"mappings":";;;;;AAKA,MAAa,+BAGT;CACF,cAAc;CACd,kBAAkB;CAClB,eAAe;CACf,qBAAqB;CACrB,oBAAoB;AACtB"}
|
|
@@ -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-CroIPqsJ.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-DBUy4AdI.js";
|
|
2
2
|
export { MOBILE_EIP712_METHOD_BY_TYPE };
|
|
@@ -3,14 +3,10 @@
|
|
|
3
3
|
* EIP-712 `method` string for each signed inner payload type.
|
|
4
4
|
*/
|
|
5
5
|
const MOBILE_EIP712_METHOD_BY_TYPE = {
|
|
6
|
-
|
|
7
|
-
update_username: "mobile:execute_update_username",
|
|
6
|
+
set_username: "mobile:execute_set_username",
|
|
8
7
|
set_private_mode: "mobile:execute_set_private_mode",
|
|
9
8
|
self_identity: "mobile:query_self_identity",
|
|
10
9
|
register_expo_token: "mobile:execute_register_expo_token",
|
|
11
|
-
unregister_expo_token: "mobile:execute_unregister_expo_token",
|
|
12
|
-
update_preferences: "mobile:execute_update_preferences",
|
|
13
|
-
notification_preferences: "mobile:query_notification_preferences",
|
|
14
10
|
registered_devices: "mobile:query_registered_devices"
|
|
15
11
|
};
|
|
16
12
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eip712MethodByType.js","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
|
|
1
|
+
{"version":3,"file":"eip712MethodByType.js","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 self_identity: 'mobile:query_self_identity',\n register_expo_token: 'mobile:execute_register_expo_token',\n registered_devices: 'mobile:query_registered_devices',\n};\n"],"mappings":";;;;AAKA,MAAa,+BAGT;CACF,cAAc;CACd,kBAAkB;CAClB,eAAe;CACf,qBAAqB;CACrB,oBAAoB;AACtB"}
|
package/dist/signing/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { i as MobileSignedRequest, n as MobileSignedInner, r as MobileSignedInnerParams, t as BuildSignedMobileRequestParams } from "../types-
|
|
2
|
-
import { t as buildSignedMobileRequest } from "../buildSignedMobileRequest-
|
|
3
|
-
import { t as canonicalizeMobileInner } from "../canonicalize-
|
|
4
|
-
import { t as MOBILE_EIP712_METHOD_BY_TYPE } from "../eip712MethodByType-
|
|
1
|
+
import { i as MobileSignedRequest, n as MobileSignedInner, r as MobileSignedInnerParams, t as BuildSignedMobileRequestParams } from "../types-bNB98pYk.cjs";
|
|
2
|
+
import { t as buildSignedMobileRequest } from "../buildSignedMobileRequest-CBMt97aY.cjs";
|
|
3
|
+
import { t as canonicalizeMobileInner } from "../canonicalize-QNARV_Xc.cjs";
|
|
4
|
+
import { t as MOBILE_EIP712_METHOD_BY_TYPE } from "../eip712MethodByType-CroIPqsJ.cjs";
|
|
5
5
|
import { t as getMobileNonce } from "../nonce-zGyisRlj.cjs";
|
|
6
|
-
import { t as getMobilePayloadHash } from "../payloadHash-
|
|
6
|
+
import { t as getMobilePayloadHash } from "../payloadHash-B0tlFOK8.cjs";
|
|
7
7
|
export { BuildSignedMobileRequestParams, MOBILE_EIP712_METHOD_BY_TYPE, MobileSignedInner, MobileSignedInnerParams, MobileSignedRequest, buildSignedMobileRequest, canonicalizeMobileInner, getMobileNonce, getMobilePayloadHash };
|
package/dist/signing/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { i as MobileSignedRequest, n as MobileSignedInner, r as MobileSignedInnerParams, t as BuildSignedMobileRequestParams } from "../types-
|
|
2
|
-
import { t as buildSignedMobileRequest } from "../buildSignedMobileRequest-
|
|
3
|
-
import { t as canonicalizeMobileInner } from "../canonicalize-
|
|
4
|
-
import { t as MOBILE_EIP712_METHOD_BY_TYPE } from "../eip712MethodByType-
|
|
1
|
+
import { i as MobileSignedRequest, n as MobileSignedInner, r as MobileSignedInnerParams, t as BuildSignedMobileRequestParams } from "../types-CQE3HD2V.js";
|
|
2
|
+
import { t as buildSignedMobileRequest } from "../buildSignedMobileRequest-qEC4gWaI.js";
|
|
3
|
+
import { t as canonicalizeMobileInner } from "../canonicalize-wVdGejB1.js";
|
|
4
|
+
import { t as MOBILE_EIP712_METHOD_BY_TYPE } from "../eip712MethodByType-DBUy4AdI.js";
|
|
5
5
|
import { t as getMobileNonce } from "../nonce-DCOrXXkQ.js";
|
|
6
|
-
import { t as getMobilePayloadHash } from "../payloadHash-
|
|
6
|
+
import { t as getMobilePayloadHash } from "../payloadHash-D1yTQSF4.js";
|
|
7
7
|
export { BuildSignedMobileRequestParams, MOBILE_EIP712_METHOD_BY_TYPE, MobileSignedInner, MobileSignedInnerParams, MobileSignedRequest, buildSignedMobileRequest, canonicalizeMobileInner, getMobileNonce, getMobilePayloadHash };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
require("../MobileClient-
|
|
2
|
+
require("../MobileClient-_i0ZV6Dq.cjs");
|
|
3
3
|
let _msgpack_msgpack = require("@msgpack/msgpack");
|
|
4
4
|
let viem = require("viem");
|
|
5
5
|
//#region src/signing/payloadHash.ts
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as getMobilePayloadHash } from "../payloadHash-
|
|
1
|
+
import { t as getMobilePayloadHash } from "../payloadHash-B0tlFOK8.cjs";
|
|
2
2
|
export { getMobilePayloadHash };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as getMobilePayloadHash } from "../payloadHash-
|
|
1
|
+
import { t as getMobilePayloadHash } from "../payloadHash-D1yTQSF4.js";
|
|
2
2
|
export { getMobilePayloadHash };
|
package/dist/signing/types.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as MobileSignedRequest, n as MobileSignedInner, r as MobileSignedInnerParams, t as BuildSignedMobileRequestParams } from "../types-
|
|
1
|
+
import { i as MobileSignedRequest, n as MobileSignedInner, r as MobileSignedInnerParams, t as BuildSignedMobileRequestParams } from "../types-bNB98pYk.cjs";
|
|
2
2
|
export { BuildSignedMobileRequestParams, MobileSignedInner, MobileSignedInnerParams, MobileSignedRequest };
|
package/dist/signing/types.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as MobileSignedRequest, n as MobileSignedInner, r as MobileSignedInnerParams, t as BuildSignedMobileRequestParams } from "../types-
|
|
1
|
+
import { i as MobileSignedRequest, n as MobileSignedInner, r as MobileSignedInnerParams, t as BuildSignedMobileRequestParams } from "../types-CQE3HD2V.js";
|
|
2
2
|
export { BuildSignedMobileRequestParams, MobileSignedInner, MobileSignedInnerParams, MobileSignedRequest };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MobileServerFailureError.cjs","names":["BaseServerFailureError"],"sources":["../../src/types/MobileServerFailureError.ts"],"sourcesContent":["import { BaseServerFailureError } from '@nadohq/shared';\nimport {
|
|
1
|
+
{"version":3,"file":"MobileServerFailureError.cjs","names":["BaseServerFailureError"],"sources":["../../src/types/MobileServerFailureError.ts"],"sourcesContent":["import { BaseServerFailureError } from '@nadohq/shared';\nimport { MobileServerFailureResponse } from './serverBaseTypes';\nimport { MobileServerRequestType } from './serverRequestTypes';\n\n/**\n * Error thrown when the mobile service API returns a failure envelope, either as a non-2xx HTTP response\n * or a 2xx response with `status: 'failure'`. The numeric error code is exposed directly on\n * {@link BaseServerFailureError.errorCode} for comparison against {@link MOBILE_ERROR_CODES}.\n */\nexport class MobileServerFailureError extends BaseServerFailureError {\n declare readonly responseData: MobileServerFailureResponse;\n declare readonly requestType: MobileServerRequestType;\n\n /**\n * HTTP status code of the response, e.g. `404` for `PROFILE_NOT_FOUND`. Unlike the engine, the mobile\n * backend maps domain failures onto HTTP statuses.\n */\n readonly httpStatus: number;\n\n constructor(responseData: MobileServerFailureResponse, httpStatus: number) {\n super(responseData, 'MobileServerFailureError');\n this.httpStatus = httpStatus;\n }\n}\n"],"mappings":";;;;;;;;;AASA,IAAa,2BAAb,cAA8CA,eAAAA,uBAAuB;CAUnE,YAAY,cAA2C,YAAoB;EACzE,MAAM,cAAc,0BAA0B;EAC9C,KAAK,aAAa;CACpB;AACF"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as MobileServerFailureError } from "../MobileServerFailureError-
|
|
1
|
+
import { t as MobileServerFailureError } from "../MobileServerFailureError-BoyAfEZA.cjs";
|
|
2
2
|
export { MobileServerFailureError };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as MobileServerFailureError } from "../MobileServerFailureError-
|
|
1
|
+
import { t as MobileServerFailureError } from "../MobileServerFailureError-MgYVBh5p.js";
|
|
2
2
|
export { MobileServerFailureError };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MobileServerFailureError.js","names":[],"sources":["../../src/types/MobileServerFailureError.ts"],"sourcesContent":["import { BaseServerFailureError } from '@nadohq/shared';\nimport {
|
|
1
|
+
{"version":3,"file":"MobileServerFailureError.js","names":[],"sources":["../../src/types/MobileServerFailureError.ts"],"sourcesContent":["import { BaseServerFailureError } from '@nadohq/shared';\nimport { MobileServerFailureResponse } from './serverBaseTypes';\nimport { MobileServerRequestType } from './serverRequestTypes';\n\n/**\n * Error thrown when the mobile service API returns a failure envelope, either as a non-2xx HTTP response\n * or a 2xx response with `status: 'failure'`. The numeric error code is exposed directly on\n * {@link BaseServerFailureError.errorCode} for comparison against {@link MOBILE_ERROR_CODES}.\n */\nexport class MobileServerFailureError extends BaseServerFailureError {\n declare readonly responseData: MobileServerFailureResponse;\n declare readonly requestType: MobileServerRequestType;\n\n /**\n * HTTP status code of the response, e.g. `404` for `PROFILE_NOT_FOUND`. Unlike the engine, the mobile\n * backend maps domain failures onto HTTP statuses.\n */\n readonly httpStatus: number;\n\n constructor(responseData: MobileServerFailureResponse, httpStatus: number) {\n super(responseData, 'MobileServerFailureError');\n this.httpStatus = httpStatus;\n }\n}\n"],"mappings":";;;;;;;AASA,IAAa,2BAAb,cAA8C,uBAAuB;CAUnE,YAAY,cAA2C,YAAoB;EACzE,MAAM,cAAc,0BAA0B;EAC9C,KAAK,aAAa;CACpB;AACF"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as
|
|
2
|
-
export { GetMobileNotificationPreferencesParams, GetMobilePublicProfileParams, GetMobileRegisteredDevicesParams, GetMobileSelfIdentityParams, GetMobileUsernameAvailabilityParams,
|
|
1
|
+
import { C as MobileWithExpoTokenParams, S as MobileUsernameAvailability, _ as MobileSetPrivateModeParams, a as GetMobileSelfIdentityParams, b as MobileUnregisterExpoTokenParams, c as MobileFeedPage, d as MobileNotificationCategoryPreference, f as MobileNotificationPreferenceScope, g as MobileRegisteredDevice, h as MobileRegisterExpoTokenParams, i as GetMobileRegisteredDevicesParams, l as MobileFeedTrade, m as MobilePublicProfile, n as GetMobileNotificationPreferencesParams, o as GetMobileUsernameAvailabilityParams, p as MobileNotificationPreferences, r as GetMobilePublicProfileParams, s as MobileFeedMargin, t as GetMobileFeedParams, u as MobileIdentity, v as MobileSetUsernameParams, x as MobileUpdateNotificationPreferencesParams, y as MobileSignedRequestParams } from "../clientTypes-D9qgtNlE.cjs";
|
|
2
|
+
export { GetMobileFeedParams, GetMobileNotificationPreferencesParams, GetMobilePublicProfileParams, GetMobileRegisteredDevicesParams, GetMobileSelfIdentityParams, GetMobileUsernameAvailabilityParams, MobileFeedMargin, MobileFeedPage, MobileFeedTrade, MobileIdentity, MobileNotificationCategoryPreference, MobileNotificationPreferenceScope, MobileNotificationPreferences, MobilePublicProfile, MobileRegisterExpoTokenParams, MobileRegisteredDevice, MobileSetPrivateModeParams, MobileSetUsernameParams, MobileSignedRequestParams, MobileUnregisterExpoTokenParams, MobileUpdateNotificationPreferencesParams, MobileUsernameAvailability, MobileWithExpoTokenParams };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as
|
|
2
|
-
export { GetMobileNotificationPreferencesParams, GetMobilePublicProfileParams, GetMobileRegisteredDevicesParams, GetMobileSelfIdentityParams, GetMobileUsernameAvailabilityParams,
|
|
1
|
+
import { C as MobileWithExpoTokenParams, S as MobileUsernameAvailability, _ as MobileSetPrivateModeParams, a as GetMobileSelfIdentityParams, b as MobileUnregisterExpoTokenParams, c as MobileFeedPage, d as MobileNotificationCategoryPreference, f as MobileNotificationPreferenceScope, g as MobileRegisteredDevice, h as MobileRegisterExpoTokenParams, i as GetMobileRegisteredDevicesParams, l as MobileFeedTrade, m as MobilePublicProfile, n as GetMobileNotificationPreferencesParams, o as GetMobileUsernameAvailabilityParams, p as MobileNotificationPreferences, r as GetMobilePublicProfileParams, s as MobileFeedMargin, t as GetMobileFeedParams, u as MobileIdentity, v as MobileSetUsernameParams, x as MobileUpdateNotificationPreferencesParams, y as MobileSignedRequestParams } from "../clientTypes-6utzUU-b.js";
|
|
2
|
+
export { GetMobileFeedParams, GetMobileNotificationPreferencesParams, GetMobilePublicProfileParams, GetMobileRegisteredDevicesParams, GetMobileSelfIdentityParams, GetMobileUsernameAvailabilityParams, MobileFeedMargin, MobileFeedPage, MobileFeedTrade, MobileIdentity, MobileNotificationCategoryPreference, MobileNotificationPreferenceScope, MobileNotificationPreferences, MobilePublicProfile, MobileRegisterExpoTokenParams, MobileRegisteredDevice, MobileSetPrivateModeParams, MobileSetUsernameParams, MobileSignedRequestParams, MobileUnregisterExpoTokenParams, MobileUpdateNotificationPreferencesParams, MobileUsernameAvailability, MobileWithExpoTokenParams };
|
package/dist/types/index.cjs
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_types_MobileServerFailureError = require("./MobileServerFailureError.cjs");
|
|
3
3
|
const require_types_mobileErrorCodes = require("./mobileErrorCodes.cjs");
|
|
4
|
+
const require_types_serverModelTypes = require("./serverModelTypes.cjs");
|
|
4
5
|
exports.MOBILE_ERROR_CODES = require_types_mobileErrorCodes.MOBILE_ERROR_CODES;
|
|
6
|
+
exports.MOBILE_FEED_MARGIN_MODES = require_types_serverModelTypes.MOBILE_FEED_MARGIN_MODES;
|
|
7
|
+
exports.MOBILE_FEED_TRADE_POSITION_DIRECTIONS = require_types_serverModelTypes.MOBILE_FEED_TRADE_POSITION_DIRECTIONS;
|
|
8
|
+
exports.MOBILE_FEED_TRADE_POSITION_EFFECTS = require_types_serverModelTypes.MOBILE_FEED_TRADE_POSITION_EFFECTS;
|
|
5
9
|
exports.MobileServerFailureError = require_types_MobileServerFailureError.MobileServerFailureError;
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import { _ as
|
|
3
|
-
import { a as
|
|
4
|
-
import { n as
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import {
|
|
8
|
-
|
|
1
|
+
import { _ as MobileServerRegisteredDevice, a as MobileFeedTradePosition, c as MobileNotificationCategory, d as MobileServerFeedTrade, f as MobileServerIdentity, g as MobileServerProfile, h as MobileServerNotificationPreferences, i as MobileFeedMarginMode, l as MobileNotificationPlatform, m as MobileServerNotificationPreferenceScope, n as MOBILE_FEED_TRADE_POSITION_DIRECTIONS, o as MobileFeedTradePositionDirection, p as MobileServerNotificationCategoryPreference, r as MOBILE_FEED_TRADE_POSITION_EFFECTS, s as MobileFeedTradePositionEffect, t as MOBILE_FEED_MARGIN_MODES, u as MobileServerFeedMargin } from "../serverModelTypes-BYQcsRrx.cjs";
|
|
2
|
+
import { C as MobileWithExpoTokenParams, S as MobileUsernameAvailability, _ as MobileSetPrivateModeParams, a as GetMobileSelfIdentityParams, b as MobileUnregisterExpoTokenParams, c as MobileFeedPage, d as MobileNotificationCategoryPreference, f as MobileNotificationPreferenceScope, g as MobileRegisteredDevice, h as MobileRegisterExpoTokenParams, i as GetMobileRegisteredDevicesParams, l as MobileFeedTrade, m as MobilePublicProfile, n as GetMobileNotificationPreferencesParams, o as GetMobileUsernameAvailabilityParams, p as MobileNotificationPreferences, r as GetMobilePublicProfileParams, s as MobileFeedMargin, t as GetMobileFeedParams, u as MobileIdentity, v as MobileSetUsernameParams, x as MobileUpdateNotificationPreferencesParams, y as MobileSignedRequestParams } from "../clientTypes-D9qgtNlE.cjs";
|
|
3
|
+
import { a as MobileServerPublicQueryRequestType, c as MobileServerSignedQueryRequestType, i as MobileServerPublicQueryRequestByType, n as MobileServerPublicExecuteRequestByType, o as MobileServerRequestType, r as MobileServerPublicExecuteRequestType, s as MobileServerSignedQueryRequestByType, t as MobileServerExecuteRequestType } from "../serverRequestTypes-CHDk6JwE.cjs";
|
|
4
|
+
import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "../serverBaseTypes-DSRgU2Fb.cjs";
|
|
5
|
+
import { n as MobileServerPublicExecuteRequest, t as MobileServerExecuteResult } from "../serverExecuteTypes-BCb6bUMP.cjs";
|
|
6
|
+
import { a as MobileServerPublicQueryResponseByType, c as MobileServerSelfIdentityResponse, d as MobileServerUsernameAvailabilityResponse, i as MobileServerPublicQueryRequest, l as MobileServerSignedQueryResponseByType, n as MobileServerNotificationPreferencesResponse, o as MobileServerPublicQuerySuccessResponse, r as MobileServerProfileResponse, s as MobileServerRegisteredDevicesResponse, t as MobileServerFeedResponse, u as MobileServerSignedQuerySuccessResponse } from "../serverQueryTypes-9H6P1vJ5.cjs";
|
|
7
|
+
import { n as MobileErrorCode, t as MOBILE_ERROR_CODES } from "../mobileErrorCodes-D_SyBm0k.cjs";
|
|
8
|
+
import { t as MobileServerFailureError } from "../MobileServerFailureError-BoyAfEZA.cjs";
|
|
9
|
+
export { GetMobileFeedParams, GetMobileNotificationPreferencesParams, GetMobilePublicProfileParams, GetMobileRegisteredDevicesParams, GetMobileSelfIdentityParams, GetMobileUsernameAvailabilityParams, MOBILE_ERROR_CODES, MOBILE_FEED_MARGIN_MODES, MOBILE_FEED_TRADE_POSITION_DIRECTIONS, MOBILE_FEED_TRADE_POSITION_EFFECTS, MobileErrorCode, MobileFeedMargin, MobileFeedMarginMode, MobileFeedPage, MobileFeedTrade, MobileFeedTradePosition, MobileFeedTradePositionDirection, MobileFeedTradePositionEffect, MobileIdentity, MobileNotificationCategory, MobileNotificationCategoryPreference, MobileNotificationPlatform, MobileNotificationPreferenceScope, MobileNotificationPreferences, MobilePublicProfile, MobileRegisterExpoTokenParams, MobileRegisteredDevice, MobileServerExecuteRequestType, MobileServerExecuteResult, MobileServerFailureError, MobileServerFailureResponse, MobileServerFeedMargin, MobileServerFeedResponse, MobileServerFeedTrade, MobileServerIdentity, MobileServerNotificationCategoryPreference, MobileServerNotificationPreferenceScope, MobileServerNotificationPreferences, MobileServerNotificationPreferencesResponse, MobileServerProfile, MobileServerProfileResponse, MobileServerPublicExecuteRequest, MobileServerPublicExecuteRequestByType, MobileServerPublicExecuteRequestType, MobileServerPublicQueryRequest, MobileServerPublicQueryRequestByType, MobileServerPublicQueryRequestType, MobileServerPublicQueryResponseByType, MobileServerPublicQuerySuccessResponse, MobileServerRegisteredDevice, MobileServerRegisteredDevicesResponse, MobileServerRequestType, MobileServerSelfIdentityResponse, MobileServerSignedQueryRequestByType, MobileServerSignedQueryRequestType, MobileServerSignedQueryResponseByType, MobileServerSignedQuerySuccessResponse, MobileServerSuccessResponse, MobileServerUsernameAvailabilityResponse, MobileSetPrivateModeParams, MobileSetUsernameParams, MobileSignedRequestParams, MobileUnregisterExpoTokenParams, MobileUpdateNotificationPreferencesParams, MobileUsernameAvailability, MobileWithExpoTokenParams };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import { _ as
|
|
3
|
-
import { a as
|
|
4
|
-
import { n as
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import {
|
|
8
|
-
|
|
1
|
+
import { _ as MobileServerRegisteredDevice, a as MobileFeedTradePosition, c as MobileNotificationCategory, d as MobileServerFeedTrade, f as MobileServerIdentity, g as MobileServerProfile, h as MobileServerNotificationPreferences, i as MobileFeedMarginMode, l as MobileNotificationPlatform, m as MobileServerNotificationPreferenceScope, n as MOBILE_FEED_TRADE_POSITION_DIRECTIONS, o as MobileFeedTradePositionDirection, p as MobileServerNotificationCategoryPreference, r as MOBILE_FEED_TRADE_POSITION_EFFECTS, s as MobileFeedTradePositionEffect, t as MOBILE_FEED_MARGIN_MODES, u as MobileServerFeedMargin } from "../serverModelTypes-DvPs5qs3.js";
|
|
2
|
+
import { C as MobileWithExpoTokenParams, S as MobileUsernameAvailability, _ as MobileSetPrivateModeParams, a as GetMobileSelfIdentityParams, b as MobileUnregisterExpoTokenParams, c as MobileFeedPage, d as MobileNotificationCategoryPreference, f as MobileNotificationPreferenceScope, g as MobileRegisteredDevice, h as MobileRegisterExpoTokenParams, i as GetMobileRegisteredDevicesParams, l as MobileFeedTrade, m as MobilePublicProfile, n as GetMobileNotificationPreferencesParams, o as GetMobileUsernameAvailabilityParams, p as MobileNotificationPreferences, r as GetMobilePublicProfileParams, s as MobileFeedMargin, t as GetMobileFeedParams, u as MobileIdentity, v as MobileSetUsernameParams, x as MobileUpdateNotificationPreferencesParams, y as MobileSignedRequestParams } from "../clientTypes-6utzUU-b.js";
|
|
3
|
+
import { a as MobileServerPublicQueryRequestType, c as MobileServerSignedQueryRequestType, i as MobileServerPublicQueryRequestByType, n as MobileServerPublicExecuteRequestByType, o as MobileServerRequestType, r as MobileServerPublicExecuteRequestType, s as MobileServerSignedQueryRequestByType, t as MobileServerExecuteRequestType } from "../serverRequestTypes-DYTLrCpz.js";
|
|
4
|
+
import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "../serverBaseTypes-CzRgwUvA.js";
|
|
5
|
+
import { n as MobileServerPublicExecuteRequest, t as MobileServerExecuteResult } from "../serverExecuteTypes-CI3NBW2Z.js";
|
|
6
|
+
import { a as MobileServerPublicQueryResponseByType, c as MobileServerSelfIdentityResponse, d as MobileServerUsernameAvailabilityResponse, i as MobileServerPublicQueryRequest, l as MobileServerSignedQueryResponseByType, n as MobileServerNotificationPreferencesResponse, o as MobileServerPublicQuerySuccessResponse, r as MobileServerProfileResponse, s as MobileServerRegisteredDevicesResponse, t as MobileServerFeedResponse, u as MobileServerSignedQuerySuccessResponse } from "../serverQueryTypes-Cbjx0bIj.js";
|
|
7
|
+
import { n as MobileErrorCode, t as MOBILE_ERROR_CODES } from "../mobileErrorCodes-CuQ5lyBV.js";
|
|
8
|
+
import { t as MobileServerFailureError } from "../MobileServerFailureError-MgYVBh5p.js";
|
|
9
|
+
export { GetMobileFeedParams, GetMobileNotificationPreferencesParams, GetMobilePublicProfileParams, GetMobileRegisteredDevicesParams, GetMobileSelfIdentityParams, GetMobileUsernameAvailabilityParams, MOBILE_ERROR_CODES, MOBILE_FEED_MARGIN_MODES, MOBILE_FEED_TRADE_POSITION_DIRECTIONS, MOBILE_FEED_TRADE_POSITION_EFFECTS, MobileErrorCode, MobileFeedMargin, MobileFeedMarginMode, MobileFeedPage, MobileFeedTrade, MobileFeedTradePosition, MobileFeedTradePositionDirection, MobileFeedTradePositionEffect, MobileIdentity, MobileNotificationCategory, MobileNotificationCategoryPreference, MobileNotificationPlatform, MobileNotificationPreferenceScope, MobileNotificationPreferences, MobilePublicProfile, MobileRegisterExpoTokenParams, MobileRegisteredDevice, MobileServerExecuteRequestType, MobileServerExecuteResult, MobileServerFailureError, MobileServerFailureResponse, MobileServerFeedMargin, MobileServerFeedResponse, MobileServerFeedTrade, MobileServerIdentity, MobileServerNotificationCategoryPreference, MobileServerNotificationPreferenceScope, MobileServerNotificationPreferences, MobileServerNotificationPreferencesResponse, MobileServerProfile, MobileServerProfileResponse, MobileServerPublicExecuteRequest, MobileServerPublicExecuteRequestByType, MobileServerPublicExecuteRequestType, MobileServerPublicQueryRequest, MobileServerPublicQueryRequestByType, MobileServerPublicQueryRequestType, MobileServerPublicQueryResponseByType, MobileServerPublicQuerySuccessResponse, MobileServerRegisteredDevice, MobileServerRegisteredDevicesResponse, MobileServerRequestType, MobileServerSelfIdentityResponse, MobileServerSignedQueryRequestByType, MobileServerSignedQueryRequestType, MobileServerSignedQueryResponseByType, MobileServerSignedQuerySuccessResponse, MobileServerSuccessResponse, MobileServerUsernameAvailabilityResponse, MobileSetPrivateModeParams, MobileSetUsernameParams, MobileSignedRequestParams, MobileUnregisterExpoTokenParams, MobileUpdateNotificationPreferencesParams, MobileUsernameAvailability, MobileWithExpoTokenParams };
|
package/dist/types/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { MobileServerFailureError } from "./MobileServerFailureError.js";
|
|
2
2
|
import { MOBILE_ERROR_CODES } from "./mobileErrorCodes.js";
|
|
3
|
-
|
|
3
|
+
import { MOBILE_FEED_MARGIN_MODES, MOBILE_FEED_TRADE_POSITION_DIRECTIONS, MOBILE_FEED_TRADE_POSITION_EFFECTS } from "./serverModelTypes.js";
|
|
4
|
+
export { MOBILE_ERROR_CODES, MOBILE_FEED_MARGIN_MODES, MOBILE_FEED_TRADE_POSITION_DIRECTIONS, MOBILE_FEED_TRADE_POSITION_EFFECTS, MobileServerFailureError };
|