@nadohq/mobile-client 0.32.0 → 0.34.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 +2 -2
- package/dist/{MobileClient-_i0ZV6Dq.cjs → MobileClient-SQ7byUxo.cjs} +18 -8
- package/dist/MobileClient-SQ7byUxo.cjs.map +1 -0
- package/dist/MobileClient.cjs +1 -1
- package/dist/MobileClient.d.cts +17 -10
- package/dist/MobileClient.d.cts.map +1 -1
- package/dist/MobileClient.d.ts +17 -10
- package/dist/MobileClient.d.ts.map +1 -1
- package/dist/MobileClient.js +18 -8
- package/dist/MobileClient.js.map +1 -1
- package/dist/{MobileServerFailureError-MgYVBh5p.d.ts → MobileServerFailureError-A2EcYe6Y.d.ts} +3 -3
- package/dist/{MobileServerFailureError-MgYVBh5p.d.ts.map → MobileServerFailureError-A2EcYe6Y.d.ts.map} +1 -1
- package/dist/{MobileServerFailureError-BoyAfEZA.d.cts → MobileServerFailureError-N3nGgdmg.d.cts} +3 -3
- package/dist/{MobileServerFailureError-BoyAfEZA.d.cts.map → MobileServerFailureError-N3nGgdmg.d.cts.map} +1 -1
- package/dist/{buildSignedMobileRequest-qEC4gWaI.d.ts → buildSignedMobileRequest-B8iVGxQc.d.ts} +2 -2
- package/dist/{buildSignedMobileRequest-qEC4gWaI.d.ts.map → buildSignedMobileRequest-B8iVGxQc.d.ts.map} +1 -1
- package/dist/{buildSignedMobileRequest-CBMt97aY.d.cts → buildSignedMobileRequest-CtRX4zl4.d.cts} +2 -2
- package/dist/{buildSignedMobileRequest-CBMt97aY.d.cts.map → buildSignedMobileRequest-CtRX4zl4.d.cts.map} +1 -1
- package/dist/{canonicalize-wVdGejB1.d.ts → canonicalize-Cz1rz_ER.d.ts} +2 -2
- package/dist/canonicalize-Cz1rz_ER.d.ts.map +1 -0
- package/dist/{canonicalize-QNARV_Xc.d.cts → canonicalize-afPLlUjE.d.cts} +2 -2
- package/dist/canonicalize-afPLlUjE.d.cts.map +1 -0
- package/dist/{clientTypes-D9qgtNlE.d.cts → clientTypes-DIipTg9D.d.cts} +10 -7
- package/dist/clientTypes-DIipTg9D.d.cts.map +1 -0
- package/dist/{clientTypes-6utzUU-b.d.ts → clientTypes-DqDZEcBu.d.ts} +10 -7
- package/dist/clientTypes-DqDZEcBu.d.ts.map +1 -0
- package/dist/dataMappers.cjs +4 -3
- package/dist/dataMappers.cjs.map +1 -1
- package/dist/dataMappers.d.cts +6 -6
- package/dist/dataMappers.d.cts.map +1 -1
- package/dist/dataMappers.d.ts +6 -6
- package/dist/dataMappers.d.ts.map +1 -1
- package/dist/dataMappers.js +4 -3
- package/dist/dataMappers.js.map +1 -1
- package/dist/{eip712MethodByType-DBUy4AdI.d.ts → eip712MethodByType-BzfeoDTF.d.ts} +2 -2
- package/dist/eip712MethodByType-BzfeoDTF.d.ts.map +1 -0
- package/dist/{eip712MethodByType-CroIPqsJ.d.cts → eip712MethodByType-CUAcWwX0.d.cts} +2 -2
- package/dist/eip712MethodByType-CUAcWwX0.d.cts.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +14 -14
- package/dist/index.d.ts +14 -14
- package/dist/{payloadHash-B0tlFOK8.d.cts → payloadHash-CgKXMvZU.d.cts} +2 -2
- package/dist/payloadHash-CgKXMvZU.d.cts.map +1 -0
- package/dist/{payloadHash-D1yTQSF4.d.ts → payloadHash-yIWBW4Iq.d.ts} +2 -2
- package/dist/payloadHash-yIWBW4Iq.d.ts.map +1 -0
- package/dist/{serverBaseTypes-CzRgwUvA.d.ts → serverBaseTypes-ClQZqTAK.d.ts} +2 -2
- package/dist/{serverBaseTypes-CzRgwUvA.d.ts.map → serverBaseTypes-ClQZqTAK.d.ts.map} +1 -1
- package/dist/{serverBaseTypes-DSRgU2Fb.d.cts → serverBaseTypes-_a1pE464.d.cts} +2 -2
- package/dist/{serverBaseTypes-DSRgU2Fb.d.cts.map → serverBaseTypes-_a1pE464.d.cts.map} +1 -1
- package/dist/{serverExecuteTypes-CI3NBW2Z.d.ts → serverExecuteTypes-BD8Awy8Q.d.ts} +3 -3
- package/dist/{serverExecuteTypes-CI3NBW2Z.d.ts.map → serverExecuteTypes-BD8Awy8Q.d.ts.map} +1 -1
- package/dist/{serverExecuteTypes-BCb6bUMP.d.cts → serverExecuteTypes-CUla9jFj.d.cts} +3 -3
- package/dist/{serverExecuteTypes-BCb6bUMP.d.cts.map → serverExecuteTypes-CUla9jFj.d.cts.map} +1 -1
- package/dist/{serverModelTypes-DvPs5qs3.d.ts → serverModelTypes-BIGPd52y.d.ts} +2 -12
- package/dist/{serverModelTypes-DvPs5qs3.d.ts.map → serverModelTypes-BIGPd52y.d.ts.map} +1 -1
- package/dist/{serverModelTypes-BYQcsRrx.d.cts → serverModelTypes-DGYc_3XP.d.cts} +2 -12
- package/dist/{serverModelTypes-BYQcsRrx.d.cts.map → serverModelTypes-DGYc_3XP.d.cts.map} +1 -1
- package/dist/{serverQueryTypes-9H6P1vJ5.d.cts → serverQueryTypes-4J8qNQld.d.ts} +16 -9
- package/dist/serverQueryTypes-4J8qNQld.d.ts.map +1 -0
- package/dist/{serverQueryTypes-Cbjx0bIj.d.ts → serverQueryTypes-C_rvZnol.d.cts} +16 -9
- package/dist/serverQueryTypes-C_rvZnol.d.cts.map +1 -0
- package/dist/{serverRequestTypes-DYTLrCpz.d.ts → serverRequestTypes-Cw661qjM.d.cts} +6 -4
- package/dist/serverRequestTypes-Cw661qjM.d.cts.map +1 -0
- package/dist/{serverRequestTypes-CHDk6JwE.d.cts → serverRequestTypes-w1r41ff7.d.ts} +6 -4
- package/dist/serverRequestTypes-w1r41ff7.d.ts.map +1 -0
- package/dist/{serverResponseGuards-DRMHmfXh.d.cts → serverResponseGuards-DEyNjgwq.d.cts} +2 -2
- package/dist/{serverResponseGuards-DRMHmfXh.d.cts.map → serverResponseGuards-DEyNjgwq.d.cts.map} +1 -1
- package/dist/{serverResponseGuards-DpbZvJfL.d.ts → serverResponseGuards-DNJZw8yq.d.ts} +2 -2
- package/dist/{serverResponseGuards-DpbZvJfL.d.ts.map → serverResponseGuards-DNJZw8yq.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 +0 -1
- 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 +0 -1
- package/dist/signing/canonicalize.js.map +1 -1
- package/dist/signing/eip712MethodByType.cjs +1 -2
- 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 -2
- 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.d.cts +1 -1
- package/dist/types/MobileServerFailureError.d.ts +1 -1
- package/dist/types/clientTypes.d.cts +2 -2
- package/dist/types/clientTypes.d.ts +2 -2
- package/dist/types/index.d.cts +8 -8
- package/dist/types/index.d.ts +8 -8
- package/dist/types/mobileErrorCodes.cjs +1 -1
- package/dist/types/serverBaseTypes.d.cts +1 -1
- package/dist/types/serverBaseTypes.d.ts +1 -1
- package/dist/types/serverExecuteTypes.d.cts +1 -1
- package/dist/types/serverExecuteTypes.d.ts +1 -1
- 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 +1 -1
- package/dist/types/serverRequestTypes.d.ts +1 -1
- package/dist/{types-CQE3HD2V.d.ts → types-BycRkqAj.d.cts} +3 -5
- package/dist/types-BycRkqAj.d.cts.map +1 -0
- package/dist/{types-bNB98pYk.d.cts → types-DNd9S0Rz.d.ts} +3 -5
- package/dist/types-DNd9S0Rz.d.ts.map +1 -0
- package/dist/utils/index.d.cts +1 -1
- package/dist/utils/index.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 +24 -18
- package/src/dataMappers.ts +10 -7
- package/src/signing/canonicalize.ts +0 -2
- package/src/signing/eip712MethodByType.ts +0 -1
- package/src/signing/signing.test.ts +0 -8
- package/src/signing/types.ts +1 -2
- package/src/types/clientTypes.ts +7 -4
- package/src/types/serverModelTypes.ts +0 -11
- package/src/types/serverQueryTypes.ts +12 -5
- package/src/types/serverRequestTypes.ts +1 -1
- package/dist/MobileClient-_i0ZV6Dq.cjs.map +0 -1
- package/dist/canonicalize-QNARV_Xc.d.cts.map +0 -1
- package/dist/canonicalize-wVdGejB1.d.ts.map +0 -1
- package/dist/clientTypes-6utzUU-b.d.ts.map +0 -1
- package/dist/clientTypes-D9qgtNlE.d.cts.map +0 -1
- package/dist/eip712MethodByType-CroIPqsJ.d.cts.map +0 -1
- package/dist/eip712MethodByType-DBUy4AdI.d.ts.map +0 -1
- package/dist/payloadHash-B0tlFOK8.d.cts.map +0 -1
- package/dist/payloadHash-D1yTQSF4.d.ts.map +0 -1
- package/dist/serverQueryTypes-9H6P1vJ5.d.cts.map +0 -1
- package/dist/serverQueryTypes-Cbjx0bIj.d.ts.map +0 -1
- package/dist/serverRequestTypes-CHDk6JwE.d.cts.map +0 -1
- package/dist/serverRequestTypes-DYTLrCpz.d.ts.map +0 -1
- package/dist/types-CQE3HD2V.d.ts.map +0 -1
- package/dist/types-bNB98pYk.d.cts.map +0 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as MobileServerPublicQueryRequestType, c as MobileServerSignedQueryRequestType, i as MobileServerPublicQueryRequestByType } from "./serverRequestTypes-
|
|
3
|
-
import { n as MobileServerSuccessResponse } from "./serverBaseTypes-
|
|
1
|
+
import { d as MobileServerFeedTrade, f as MobileServerIdentity, g as MobileServerProfile, h as MobileServerNotificationPreferences, l as MobileNotificationPlatform } from "./serverModelTypes-DGYc_3XP.cjs";
|
|
2
|
+
import { a as MobileServerPublicQueryRequestType, c as MobileServerSignedQueryRequestType, i as MobileServerPublicQueryRequestByType } from "./serverRequestTypes-Cw661qjM.cjs";
|
|
3
|
+
import { n as MobileServerSuccessResponse } from "./serverBaseTypes-_a1pE464.cjs";
|
|
4
|
+
import { Hex } from "viem";
|
|
4
5
|
|
|
5
6
|
//#region src/types/serverQueryTypes.d.ts
|
|
6
7
|
/**
|
|
@@ -49,10 +50,16 @@ interface MobileServerNotificationPreferencesResponse {
|
|
|
49
50
|
preferences: MobileServerNotificationPreferences;
|
|
50
51
|
}
|
|
51
52
|
/**
|
|
52
|
-
* Payload of the
|
|
53
|
+
* Payload of the `registered_wallet` public query success response. Inlined into the envelope rather than
|
|
54
|
+
* nested under a key, matching the backend's `RegisteredWalletResponse`.
|
|
53
55
|
*/
|
|
54
|
-
interface
|
|
55
|
-
|
|
56
|
+
interface MobileServerRegisteredWalletResponse {
|
|
57
|
+
wallet: Hex;
|
|
58
|
+
platform: MobileNotificationPlatform;
|
|
59
|
+
locale: string | null;
|
|
60
|
+
app_version: string | null;
|
|
61
|
+
token_fingerprint_prefix: string;
|
|
62
|
+
last_seen_at: number;
|
|
56
63
|
}
|
|
57
64
|
/**
|
|
58
65
|
* Success payloads for each unsigned `public_query`, keyed by request `type`. Counterpart to
|
|
@@ -65,6 +72,7 @@ interface MobileServerPublicQueryResponseByType {
|
|
|
65
72
|
profile: MobileServerProfileResponse;
|
|
66
73
|
feed: MobileServerFeedResponse;
|
|
67
74
|
notification_preferences: MobileServerNotificationPreferencesResponse;
|
|
75
|
+
registered_wallet: MobileServerRegisteredWalletResponse;
|
|
68
76
|
}
|
|
69
77
|
/**
|
|
70
78
|
* Success payloads for each signed `query`, keyed by request `type`. Counterpart to
|
|
@@ -74,7 +82,6 @@ interface MobileServerPublicQueryResponseByType {
|
|
|
74
82
|
*/
|
|
75
83
|
interface MobileServerSignedQueryResponseByType {
|
|
76
84
|
self_identity: MobileServerSelfIdentityResponse;
|
|
77
|
-
registered_devices: MobileServerRegisteredDevicesResponse;
|
|
78
85
|
}
|
|
79
86
|
/**
|
|
80
87
|
* Full success response for an unsigned `public_query`: the {@link MobileServerSuccessResponse} envelope with
|
|
@@ -88,5 +95,5 @@ type MobileServerPublicQuerySuccessResponse<T extends MobileServerPublicQueryReq
|
|
|
88
95
|
*/
|
|
89
96
|
type MobileServerSignedQuerySuccessResponse<T extends MobileServerSignedQueryRequestType = MobileServerSignedQueryRequestType> = MobileServerSuccessResponse & MobileServerSignedQueryResponseByType[T];
|
|
90
97
|
//#endregion
|
|
91
|
-
export { MobileServerPublicQueryResponseByType as a, MobileServerSelfIdentityResponse as c, MobileServerUsernameAvailabilityResponse as d, MobileServerPublicQueryRequest as i, MobileServerSignedQueryResponseByType as l, MobileServerNotificationPreferencesResponse as n, MobileServerPublicQuerySuccessResponse as o, MobileServerProfileResponse as r,
|
|
92
|
-
//# sourceMappingURL=serverQueryTypes-
|
|
98
|
+
export { MobileServerPublicQueryResponseByType as a, MobileServerSelfIdentityResponse as c, MobileServerUsernameAvailabilityResponse as d, MobileServerPublicQueryRequest as i, MobileServerSignedQueryResponseByType as l, MobileServerNotificationPreferencesResponse as n, MobileServerPublicQuerySuccessResponse as o, MobileServerProfileResponse as r, MobileServerRegisteredWalletResponse as s, MobileServerFeedResponse as t, MobileServerSignedQuerySuccessResponse as u };
|
|
99
|
+
//# sourceMappingURL=serverQueryTypes-C_rvZnol.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"serverQueryTypes-C_rvZnol.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;;;;UAMM,2BAAA;EACf,OAAA,EAAS,mBAAmB;AAAA;;;;UAMb,wBAAA;EACf,MAAA,EAAQ,qBAAqB;EAhBd;;;;AAEN;EAoBT,WAAA;AAAA;;;AAb4B;AAM9B;;UAeiB,gCAAA;EACf,QAAA,EAAU,oBAAoB;AAAA;;;;UAMf,2CAAA;EACf,WAAA,EAAa,mCAAmC;AAAA;;;AAPlB;AAMhC;UAQiB,oCAAA;EACf,MAAA,EAAQ,GAAA;EACR,QAAA,EAAU,0BAA0B;EACpC,MAAA;EACA,WAAA;EACA,wBAAA;EACA,YAAA;AAAA;;;;;;;UASe,qCAAA;EACf,qBAAA,EAAuB,wCAAA;EACvB,OAAA,EAAS,2BAAA;EACT,IAAA,EAAM,wBAAA;EACN,wBAAA,EAA0B,2CAAA;EAC1B,iBAAA,EAAmB,oCAAA;AAAA;;;;;;;UASJ,qCAAA;EACf,aAAA,EAAe,gCAAgC;AAAA;;;;;;KAQrC,sCAAA,WACA,kCAAA,GACR,kCAAA,IACA,2BAAA,GAA8B,qCAAA,CAAsC,CAAA;;;;AArBf;KA2B7C,sCAAA,WACA,kCAAA,GACR,kCAAA,IACA,2BAAA,GAA8B,qCAAA,CAAsC,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { h as MobileServerNotificationPreferences } from "./serverModelTypes-
|
|
2
|
-
import { n as MobileSignedInner } from "./types-
|
|
1
|
+
import { h as MobileServerNotificationPreferences } from "./serverModelTypes-DGYc_3XP.cjs";
|
|
2
|
+
import { n as MobileSignedInner } from "./types-BycRkqAj.cjs";
|
|
3
3
|
import { Hex } from "viem";
|
|
4
4
|
|
|
5
5
|
//#region src/types/serverRequestTypes.d.ts
|
|
@@ -29,6 +29,9 @@ interface MobileServerPublicQueryRequestByType {
|
|
|
29
29
|
notification_preferences: {
|
|
30
30
|
expo_token: string;
|
|
31
31
|
};
|
|
32
|
+
registered_wallet: {
|
|
33
|
+
expo_token: string;
|
|
34
|
+
};
|
|
32
35
|
}
|
|
33
36
|
/**
|
|
34
37
|
* Discriminant `type` values for unsigned `public_query` requests.
|
|
@@ -62,7 +65,6 @@ type MobileServerPublicExecuteRequestType = keyof MobileServerPublicExecuteReque
|
|
|
62
65
|
*/
|
|
63
66
|
interface MobileServerSignedQueryRequestByType {
|
|
64
67
|
self_identity: Record<string, never>;
|
|
65
|
-
registered_devices: Record<string, never>;
|
|
66
68
|
}
|
|
67
69
|
/**
|
|
68
70
|
* Discriminant `type` values for signed `query` requests: the read-only subset of {@link MobileSignedInner}
|
|
@@ -82,4 +84,4 @@ type MobileServerExecuteRequestType = Exclude<MobileSignedInner['type'], MobileS
|
|
|
82
84
|
type MobileServerRequestType = `public_query_${MobileServerPublicQueryRequestType}` | `public_execute_${MobileServerPublicExecuteRequestType}` | `query_${MobileServerSignedQueryRequestType}` | `execute_${MobileServerExecuteRequestType}`;
|
|
83
85
|
//#endregion
|
|
84
86
|
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-
|
|
87
|
+
//# sourceMappingURL=serverRequestTypes-Cw661qjM.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"serverRequestTypes-Cw661qjM.d.cts","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;IAQmB;;AAAU;AAMjC;IATI,MAAA;EAAA;EAEF,wBAAA;IAA4B,UAAA;EAAA;EAC5B,iBAAA;IAAqB,UAAA;EAAA;AAAA;;;;KAMX,kCAAA,SACJ,oCAAoC;;;AAYQ;AAOpD;;;UAXiB,sCAAA;EACf,qBAAA;IAAyB,UAAA;EAAA;EACzB,kBAAA;IACE,UAAA;IACA,WAAA,EAAa,mCAAmC;EAAA;AAAA;;;AA0BR;KAnBhC,oCAAA,SACJ,sCAAsC;;;;;;;;UAS7B,oCAAA;EACf,aAAA,EAAe,MAAM;AAAA;;AAgBa;AAQpC;;KAjBY,kCAAA,SACJ,oCAAoC;;;;;KAMhC,8BAAA,GAAiC,OAAA,CAC3C,iBAAA,UACA,kCAAA;;;;;;KAQU,uBAAA,mBACQ,kCAAA,uBACE,oCAAA,cACT,kCAAA,gBACE,8BAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { h as MobileServerNotificationPreferences } from "./serverModelTypes-
|
|
2
|
-
import { n as MobileSignedInner } from "./types-
|
|
1
|
+
import { h as MobileServerNotificationPreferences } from "./serverModelTypes-BIGPd52y.js";
|
|
2
|
+
import { n as MobileSignedInner } from "./types-DNd9S0Rz.js";
|
|
3
3
|
import { Hex } from "viem";
|
|
4
4
|
|
|
5
5
|
//#region src/types/serverRequestTypes.d.ts
|
|
@@ -29,6 +29,9 @@ interface MobileServerPublicQueryRequestByType {
|
|
|
29
29
|
notification_preferences: {
|
|
30
30
|
expo_token: string;
|
|
31
31
|
};
|
|
32
|
+
registered_wallet: {
|
|
33
|
+
expo_token: string;
|
|
34
|
+
};
|
|
32
35
|
}
|
|
33
36
|
/**
|
|
34
37
|
* Discriminant `type` values for unsigned `public_query` requests.
|
|
@@ -62,7 +65,6 @@ type MobileServerPublicExecuteRequestType = keyof MobileServerPublicExecuteReque
|
|
|
62
65
|
*/
|
|
63
66
|
interface MobileServerSignedQueryRequestByType {
|
|
64
67
|
self_identity: Record<string, never>;
|
|
65
|
-
registered_devices: Record<string, never>;
|
|
66
68
|
}
|
|
67
69
|
/**
|
|
68
70
|
* Discriminant `type` values for signed `query` requests: the read-only subset of {@link MobileSignedInner}
|
|
@@ -82,4 +84,4 @@ type MobileServerExecuteRequestType = Exclude<MobileSignedInner['type'], MobileS
|
|
|
82
84
|
type MobileServerRequestType = `public_query_${MobileServerPublicQueryRequestType}` | `public_execute_${MobileServerPublicExecuteRequestType}` | `query_${MobileServerSignedQueryRequestType}` | `execute_${MobileServerExecuteRequestType}`;
|
|
83
85
|
//#endregion
|
|
84
86
|
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-
|
|
87
|
+
//# sourceMappingURL=serverRequestTypes-w1r41ff7.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"serverRequestTypes-w1r41ff7.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;IAQmB;;AAAU;AAMjC;IATI,MAAA;EAAA;EAEF,wBAAA;IAA4B,UAAA;EAAA;EAC5B,iBAAA;IAAqB,UAAA;EAAA;AAAA;;;;KAMX,kCAAA,SACJ,oCAAoC;;;AAYQ;AAOpD;;;UAXiB,sCAAA;EACf,qBAAA;IAAyB,UAAA;EAAA;EACzB,kBAAA;IACE,UAAA;IACA,WAAA,EAAa,mCAAmC;EAAA;AAAA;;;AA0BR;KAnBhC,oCAAA,SACJ,sCAAsC;;;;;;;;UAS7B,oCAAA;EACf,aAAA,EAAe,MAAM;AAAA;;AAgBa;AAQpC;;KAjBY,kCAAA,SACJ,oCAAoC;;;;;KAMhC,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-_a1pE464.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-DEyNjgwq.d.cts.map
|
package/dist/{serverResponseGuards-DRMHmfXh.d.cts.map → serverResponseGuards-DEyNjgwq.d.cts.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serverResponseGuards-
|
|
1
|
+
{"version":3,"file":"serverResponseGuards-DEyNjgwq.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-ClQZqTAK.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-DNJZw8yq.d.ts.map
|
package/dist/{serverResponseGuards-DpbZvJfL.d.ts.map → serverResponseGuards-DNJZw8yq.d.ts.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serverResponseGuards-
|
|
1
|
+
{"version":3,"file":"serverResponseGuards-DNJZw8yq.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-SQ7byUxo.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-CtRX4zl4.cjs";
|
|
2
2
|
export { buildSignedMobileRequest };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as buildSignedMobileRequest } from "../buildSignedMobileRequest-
|
|
1
|
+
import { t as buildSignedMobileRequest } from "../buildSignedMobileRequest-B8iVGxQc.js";
|
|
2
2
|
export { buildSignedMobileRequest };
|
|
@@ -25,7 +25,6 @@ function canonicalizeMobileInner(inner) {
|
|
|
25
25
|
locale: inner.locale,
|
|
26
26
|
app_version: inner.app_version
|
|
27
27
|
};
|
|
28
|
-
case "registered_devices": return { type: "registered_devices" };
|
|
29
28
|
default: throw new Error(`canonicalizeMobileInner: unhandled inner payload type: ${JSON.stringify(inner)}`);
|
|
30
29
|
}
|
|
31
30
|
}
|
|
@@ -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 '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
|
|
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 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,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-afPLlUjE.cjs";
|
|
2
2
|
export { canonicalizeMobileInner };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as canonicalizeMobileInner } from "../canonicalize-
|
|
1
|
+
import { t as canonicalizeMobileInner } from "../canonicalize-Cz1rz_ER.js";
|
|
2
2
|
export { canonicalizeMobileInner };
|
|
@@ -24,7 +24,6 @@ function canonicalizeMobileInner(inner) {
|
|
|
24
24
|
locale: inner.locale,
|
|
25
25
|
app_version: inner.app_version
|
|
26
26
|
};
|
|
27
|
-
case "registered_devices": return { type: "registered_devices" };
|
|
28
27
|
default: throw new Error(`canonicalizeMobileInner: unhandled inner payload type: ${JSON.stringify(inner)}`);
|
|
29
28
|
}
|
|
30
29
|
}
|
|
@@ -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 '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
|
|
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 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,SACE,MAAM,IAAI,MACR,0DAA0D,KAAK,UAAU,KAAK,GAChF;CAEJ;AACF"}
|
|
@@ -7,8 +7,7 @@ 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
9
|
self_identity: "mobile:query_self_identity",
|
|
10
|
-
register_expo_token: "mobile:execute_register_expo_token"
|
|
11
|
-
registered_devices: "mobile:query_registered_devices"
|
|
10
|
+
register_expo_token: "mobile:execute_register_expo_token"
|
|
12
11
|
};
|
|
13
12
|
//#endregion
|
|
14
13
|
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 self_identity: 'mobile:query_self_identity',\n register_expo_token: 'mobile:execute_register_expo_token',\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};\n"],"mappings":";;;;;AAKA,MAAa,+BAGT;CACF,cAAc;CACd,kBAAkB;CAClB,eAAe;CACf,qBAAqB;AACvB"}
|
|
@@ -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-CUAcWwX0.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-BzfeoDTF.js";
|
|
2
2
|
export { MOBILE_EIP712_METHOD_BY_TYPE };
|
|
@@ -6,8 +6,7 @@ const MOBILE_EIP712_METHOD_BY_TYPE = {
|
|
|
6
6
|
set_username: "mobile:execute_set_username",
|
|
7
7
|
set_private_mode: "mobile:execute_set_private_mode",
|
|
8
8
|
self_identity: "mobile:query_self_identity",
|
|
9
|
-
register_expo_token: "mobile:execute_register_expo_token"
|
|
10
|
-
registered_devices: "mobile:query_registered_devices"
|
|
9
|
+
register_expo_token: "mobile:execute_register_expo_token"
|
|
11
10
|
};
|
|
12
11
|
//#endregion
|
|
13
12
|
export { MOBILE_EIP712_METHOD_BY_TYPE };
|
|
@@ -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 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
|
|
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};\n"],"mappings":";;;;AAKA,MAAa,+BAGT;CACF,cAAc;CACd,kBAAkB;CAClB,eAAe;CACf,qBAAqB;AACvB"}
|
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-BycRkqAj.cjs";
|
|
2
|
+
import { t as buildSignedMobileRequest } from "../buildSignedMobileRequest-CtRX4zl4.cjs";
|
|
3
|
+
import { t as canonicalizeMobileInner } from "../canonicalize-afPLlUjE.cjs";
|
|
4
|
+
import { t as MOBILE_EIP712_METHOD_BY_TYPE } from "../eip712MethodByType-CUAcWwX0.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-CgKXMvZU.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-DNd9S0Rz.js";
|
|
2
|
+
import { t as buildSignedMobileRequest } from "../buildSignedMobileRequest-B8iVGxQc.js";
|
|
3
|
+
import { t as canonicalizeMobileInner } from "../canonicalize-Cz1rz_ER.js";
|
|
4
|
+
import { t as MOBILE_EIP712_METHOD_BY_TYPE } from "../eip712MethodByType-BzfeoDTF.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-yIWBW4Iq.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-SQ7byUxo.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-CgKXMvZU.cjs";
|
|
2
2
|
export { getMobilePayloadHash };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as getMobilePayloadHash } from "../payloadHash-
|
|
1
|
+
import { t as getMobilePayloadHash } from "../payloadHash-yIWBW4Iq.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-BycRkqAj.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-DNd9S0Rz.js";
|
|
2
2
|
export { BuildSignedMobileRequestParams, MobileSignedInner, MobileSignedInnerParams, MobileSignedRequest };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as MobileServerFailureError } from "../MobileServerFailureError-
|
|
1
|
+
import { t as MobileServerFailureError } from "../MobileServerFailureError-N3nGgdmg.cjs";
|
|
2
2
|
export { MobileServerFailureError };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as MobileServerFailureError } from "../MobileServerFailureError-
|
|
1
|
+
import { t as MobileServerFailureError } from "../MobileServerFailureError-A2EcYe6Y.js";
|
|
2
2
|
export { MobileServerFailureError };
|
|
@@ -1,2 +1,2 @@
|
|
|
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
|
|
2
|
-
export { GetMobileFeedParams, GetMobileNotificationPreferencesParams, GetMobilePublicProfileParams,
|
|
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 MobileRegisteredWallet, h as MobileRegisterExpoTokenParams, i as GetMobileRegisteredWalletParams, l as MobileFeedTrade, m as MobilePublicProfile, n as GetMobileNotificationPreferencesParams, o as GetMobileUsernameAvailabilityParams, p as MobileNotificationPreferences, r as GetMobilePublicProfileParams, s as MobileFeedMargin, t as GetMobileFeedParams, u as MobileIdentity, v as MobileSetUsernameParams, x as MobileUpdateNotificationPreferencesParams, y as MobileSignedRequestParams } from "../clientTypes-DIipTg9D.cjs";
|
|
2
|
+
export { GetMobileFeedParams, GetMobileNotificationPreferencesParams, GetMobilePublicProfileParams, GetMobileRegisteredWalletParams, GetMobileSelfIdentityParams, GetMobileUsernameAvailabilityParams, MobileFeedMargin, MobileFeedPage, MobileFeedTrade, MobileIdentity, MobileNotificationCategoryPreference, MobileNotificationPreferenceScope, MobileNotificationPreferences, MobilePublicProfile, MobileRegisterExpoTokenParams, MobileRegisteredWallet, MobileSetPrivateModeParams, MobileSetUsernameParams, MobileSignedRequestParams, MobileUnregisterExpoTokenParams, MobileUpdateNotificationPreferencesParams, MobileUsernameAvailability, MobileWithExpoTokenParams };
|
|
@@ -1,2 +1,2 @@
|
|
|
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
|
|
2
|
-
export { GetMobileFeedParams, GetMobileNotificationPreferencesParams, GetMobilePublicProfileParams,
|
|
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 MobileRegisteredWallet, h as MobileRegisterExpoTokenParams, i as GetMobileRegisteredWalletParams, l as MobileFeedTrade, m as MobilePublicProfile, n as GetMobileNotificationPreferencesParams, o as GetMobileUsernameAvailabilityParams, p as MobileNotificationPreferences, r as GetMobilePublicProfileParams, s as MobileFeedMargin, t as GetMobileFeedParams, u as MobileIdentity, v as MobileSetUsernameParams, x as MobileUpdateNotificationPreferencesParams, y as MobileSignedRequestParams } from "../clientTypes-DqDZEcBu.js";
|
|
2
|
+
export { GetMobileFeedParams, GetMobileNotificationPreferencesParams, GetMobilePublicProfileParams, GetMobileRegisteredWalletParams, GetMobileSelfIdentityParams, GetMobileUsernameAvailabilityParams, MobileFeedMargin, MobileFeedPage, MobileFeedTrade, MobileIdentity, MobileNotificationCategoryPreference, MobileNotificationPreferenceScope, MobileNotificationPreferences, MobilePublicProfile, MobileRegisterExpoTokenParams, MobileRegisteredWallet, MobileSetPrivateModeParams, MobileSetUsernameParams, MobileSignedRequestParams, MobileUnregisterExpoTokenParams, MobileUpdateNotificationPreferencesParams, MobileUsernameAvailability, MobileWithExpoTokenParams };
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
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
|
|
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-
|
|
4
|
-
import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "../serverBaseTypes-
|
|
5
|
-
import { n as MobileServerPublicExecuteRequest, t as MobileServerExecuteResult } from "../serverExecuteTypes-
|
|
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
|
|
1
|
+
import { a as MobileFeedTradePosition, c as MobileNotificationCategory, d as MobileServerFeedTrade, f as MobileServerIdentity, g as MobileServerProfile, h as MobileServerNotificationPreferences, i as MobileFeedMarginMode, l as MobileNotificationPlatform, m as MobileServerNotificationPreferenceScope, n as MOBILE_FEED_TRADE_POSITION_DIRECTIONS, o as MobileFeedTradePositionDirection, p as MobileServerNotificationCategoryPreference, r as MOBILE_FEED_TRADE_POSITION_EFFECTS, s as MobileFeedTradePositionEffect, t as MOBILE_FEED_MARGIN_MODES, u as MobileServerFeedMargin } from "../serverModelTypes-DGYc_3XP.cjs";
|
|
2
|
+
import { C as MobileWithExpoTokenParams, S as MobileUsernameAvailability, _ as MobileSetPrivateModeParams, a as GetMobileSelfIdentityParams, b as MobileUnregisterExpoTokenParams, c as MobileFeedPage, d as MobileNotificationCategoryPreference, f as MobileNotificationPreferenceScope, g as MobileRegisteredWallet, h as MobileRegisterExpoTokenParams, i as GetMobileRegisteredWalletParams, l as MobileFeedTrade, m as MobilePublicProfile, n as GetMobileNotificationPreferencesParams, o as GetMobileUsernameAvailabilityParams, p as MobileNotificationPreferences, r as GetMobilePublicProfileParams, s as MobileFeedMargin, t as GetMobileFeedParams, u as MobileIdentity, v as MobileSetUsernameParams, x as MobileUpdateNotificationPreferencesParams, y as MobileSignedRequestParams } from "../clientTypes-DIipTg9D.cjs";
|
|
3
|
+
import { a as MobileServerPublicQueryRequestType, c as MobileServerSignedQueryRequestType, i as MobileServerPublicQueryRequestByType, n as MobileServerPublicExecuteRequestByType, o as MobileServerRequestType, r as MobileServerPublicExecuteRequestType, s as MobileServerSignedQueryRequestByType, t as MobileServerExecuteRequestType } from "../serverRequestTypes-Cw661qjM.cjs";
|
|
4
|
+
import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "../serverBaseTypes-_a1pE464.cjs";
|
|
5
|
+
import { n as MobileServerPublicExecuteRequest, t as MobileServerExecuteResult } from "../serverExecuteTypes-CUla9jFj.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 MobileServerRegisteredWalletResponse, t as MobileServerFeedResponse, u as MobileServerSignedQuerySuccessResponse } from "../serverQueryTypes-C_rvZnol.cjs";
|
|
7
7
|
import { n as MobileErrorCode, t as MOBILE_ERROR_CODES } from "../mobileErrorCodes-D_SyBm0k.cjs";
|
|
8
|
-
import { t as MobileServerFailureError } from "../MobileServerFailureError-
|
|
9
|
-
export { GetMobileFeedParams, GetMobileNotificationPreferencesParams, GetMobilePublicProfileParams,
|
|
8
|
+
import { t as MobileServerFailureError } from "../MobileServerFailureError-N3nGgdmg.cjs";
|
|
9
|
+
export { GetMobileFeedParams, GetMobileNotificationPreferencesParams, GetMobilePublicProfileParams, GetMobileRegisteredWalletParams, 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, MobileRegisteredWallet, MobileServerExecuteRequestType, MobileServerExecuteResult, MobileServerFailureError, MobileServerFailureResponse, MobileServerFeedMargin, MobileServerFeedResponse, MobileServerFeedTrade, MobileServerIdentity, MobileServerNotificationCategoryPreference, MobileServerNotificationPreferenceScope, MobileServerNotificationPreferences, MobileServerNotificationPreferencesResponse, MobileServerProfile, MobileServerProfileResponse, MobileServerPublicExecuteRequest, MobileServerPublicExecuteRequestByType, MobileServerPublicExecuteRequestType, MobileServerPublicQueryRequest, MobileServerPublicQueryRequestByType, MobileServerPublicQueryRequestType, MobileServerPublicQueryResponseByType, MobileServerPublicQuerySuccessResponse, MobileServerRegisteredWalletResponse, MobileServerRequestType, MobileServerSelfIdentityResponse, MobileServerSignedQueryRequestByType, MobileServerSignedQueryRequestType, MobileServerSignedQueryResponseByType, MobileServerSignedQuerySuccessResponse, MobileServerSuccessResponse, MobileServerUsernameAvailabilityResponse, MobileSetPrivateModeParams, MobileSetUsernameParams, MobileSignedRequestParams, MobileUnregisterExpoTokenParams, MobileUpdateNotificationPreferencesParams, MobileUsernameAvailability, MobileWithExpoTokenParams };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
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
|
|
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-
|
|
4
|
-
import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "../serverBaseTypes-
|
|
5
|
-
import { n as MobileServerPublicExecuteRequest, t as MobileServerExecuteResult } from "../serverExecuteTypes-
|
|
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
|
|
1
|
+
import { a as MobileFeedTradePosition, c as MobileNotificationCategory, d as MobileServerFeedTrade, f as MobileServerIdentity, g as MobileServerProfile, h as MobileServerNotificationPreferences, i as MobileFeedMarginMode, l as MobileNotificationPlatform, m as MobileServerNotificationPreferenceScope, n as MOBILE_FEED_TRADE_POSITION_DIRECTIONS, o as MobileFeedTradePositionDirection, p as MobileServerNotificationCategoryPreference, r as MOBILE_FEED_TRADE_POSITION_EFFECTS, s as MobileFeedTradePositionEffect, t as MOBILE_FEED_MARGIN_MODES, u as MobileServerFeedMargin } from "../serverModelTypes-BIGPd52y.js";
|
|
2
|
+
import { C as MobileWithExpoTokenParams, S as MobileUsernameAvailability, _ as MobileSetPrivateModeParams, a as GetMobileSelfIdentityParams, b as MobileUnregisterExpoTokenParams, c as MobileFeedPage, d as MobileNotificationCategoryPreference, f as MobileNotificationPreferenceScope, g as MobileRegisteredWallet, h as MobileRegisterExpoTokenParams, i as GetMobileRegisteredWalletParams, l as MobileFeedTrade, m as MobilePublicProfile, n as GetMobileNotificationPreferencesParams, o as GetMobileUsernameAvailabilityParams, p as MobileNotificationPreferences, r as GetMobilePublicProfileParams, s as MobileFeedMargin, t as GetMobileFeedParams, u as MobileIdentity, v as MobileSetUsernameParams, x as MobileUpdateNotificationPreferencesParams, y as MobileSignedRequestParams } from "../clientTypes-DqDZEcBu.js";
|
|
3
|
+
import { a as MobileServerPublicQueryRequestType, c as MobileServerSignedQueryRequestType, i as MobileServerPublicQueryRequestByType, n as MobileServerPublicExecuteRequestByType, o as MobileServerRequestType, r as MobileServerPublicExecuteRequestType, s as MobileServerSignedQueryRequestByType, t as MobileServerExecuteRequestType } from "../serverRequestTypes-w1r41ff7.js";
|
|
4
|
+
import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "../serverBaseTypes-ClQZqTAK.js";
|
|
5
|
+
import { n as MobileServerPublicExecuteRequest, t as MobileServerExecuteResult } from "../serverExecuteTypes-BD8Awy8Q.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 MobileServerRegisteredWalletResponse, t as MobileServerFeedResponse, u as MobileServerSignedQuerySuccessResponse } from "../serverQueryTypes-4J8qNQld.js";
|
|
7
7
|
import { n as MobileErrorCode, t as MOBILE_ERROR_CODES } from "../mobileErrorCodes-CuQ5lyBV.js";
|
|
8
|
-
import { t as MobileServerFailureError } from "../MobileServerFailureError-
|
|
9
|
-
export { GetMobileFeedParams, GetMobileNotificationPreferencesParams, GetMobilePublicProfileParams,
|
|
8
|
+
import { t as MobileServerFailureError } from "../MobileServerFailureError-A2EcYe6Y.js";
|
|
9
|
+
export { GetMobileFeedParams, GetMobileNotificationPreferencesParams, GetMobilePublicProfileParams, GetMobileRegisteredWalletParams, 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, MobileRegisteredWallet, MobileServerExecuteRequestType, MobileServerExecuteResult, MobileServerFailureError, MobileServerFailureResponse, MobileServerFeedMargin, MobileServerFeedResponse, MobileServerFeedTrade, MobileServerIdentity, MobileServerNotificationCategoryPreference, MobileServerNotificationPreferenceScope, MobileServerNotificationPreferences, MobileServerNotificationPreferencesResponse, MobileServerProfile, MobileServerProfileResponse, MobileServerPublicExecuteRequest, MobileServerPublicExecuteRequestByType, MobileServerPublicExecuteRequestType, MobileServerPublicQueryRequest, MobileServerPublicQueryRequestByType, MobileServerPublicQueryRequestType, MobileServerPublicQueryResponseByType, MobileServerPublicQuerySuccessResponse, MobileServerRegisteredWalletResponse, MobileServerRequestType, MobileServerSelfIdentityResponse, MobileServerSignedQueryRequestByType, MobileServerSignedQueryRequestType, MobileServerSignedQueryResponseByType, MobileServerSignedQuerySuccessResponse, MobileServerSuccessResponse, MobileServerUsernameAvailabilityResponse, MobileSetPrivateModeParams, MobileSetUsernameParams, MobileSignedRequestParams, MobileUnregisterExpoTokenParams, MobileUpdateNotificationPreferencesParams, MobileUsernameAvailability, MobileWithExpoTokenParams };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
require("../MobileClient-
|
|
2
|
+
require("../MobileClient-SQ7byUxo.cjs");
|
|
3
3
|
//#region src/types/mobileErrorCodes.ts
|
|
4
4
|
/**
|
|
5
5
|
* Numeric error codes returned by the mobile service API. Identity codes (61xx), notification codes (62xx),
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "../serverBaseTypes-
|
|
1
|
+
import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "../serverBaseTypes-_a1pE464.cjs";
|
|
2
2
|
export { MobileServerFailureResponse, MobileServerSuccessResponse };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "../serverBaseTypes-
|
|
1
|
+
import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "../serverBaseTypes-ClQZqTAK.js";
|
|
2
2
|
export { MobileServerFailureResponse, MobileServerSuccessResponse };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as MobileServerPublicExecuteRequest, t as MobileServerExecuteResult } from "../serverExecuteTypes-
|
|
1
|
+
import { n as MobileServerPublicExecuteRequest, t as MobileServerExecuteResult } from "../serverExecuteTypes-CUla9jFj.cjs";
|
|
2
2
|
export { MobileServerExecuteResult, MobileServerPublicExecuteRequest };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as MobileServerPublicExecuteRequest, t as MobileServerExecuteResult } from "../serverExecuteTypes-
|
|
1
|
+
import { n as MobileServerPublicExecuteRequest, t as MobileServerExecuteResult } from "../serverExecuteTypes-BD8Awy8Q.js";
|
|
2
2
|
export { MobileServerExecuteResult, MobileServerPublicExecuteRequest };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serverModelTypes.cjs","names":[],"sources":["../../src/types/serverModelTypes.ts"],"sourcesContent":["import { BalanceSide } from '@nadohq/shared';\nimport { Hex } from 'viem';\n\n/**\n * Platform of a device registered for push notifications.\n */\nexport type MobileNotificationPlatform = 'ios' | 'android';\n\n/**\n * Category of push notification.\n */\nexport type MobileNotificationCategory =\n | 'order_fill'\n | 'order_update'\n | 'liquidation'\n | 'funding'\n | 'product_listing'\n | 'announcement';\n\n/**\n * Server-side public profile shape (snake_case). Name fields are `null` until the subaccount claims a\n * username.\n */\nexport interface MobileServerProfile {\n subaccount: Hex;\n username: string | null;\n display_name: string | null;\n private_mode: boolean;\n}\n\n/**\n * Server-side identity shape (snake_case) returned by the signed `self_identity` query. Name fields are\n * `null` until the subaccount claims a username.\n */\nexport interface MobileServerIdentity {\n subaccount: Hex;\n username: string | null;\n display_name: string | null;\n private_mode: boolean;\n}\n\n/**\n * Direction of the position a feed trade resulted in — for `closed`, the direction that was closed. This is\n * NOT the execution buy/sell side, which the feed does not expose. Aliases {@link BalanceSide} so the feed's\n * direction values stay in lockstep with the rest of the SDK.\n */\nexport type MobileFeedTradePositionDirection = BalanceSide;\n\n/**\n * Every {@link MobileFeedTradePositionDirection} the feed can report, for callers that need the values at\n * runtime (validation, filters, UI enumeration).\n */\nexport const MOBILE_FEED_TRADE_POSITION_DIRECTIONS = [\n 'long',\n 'short',\n] as const satisfies readonly MobileFeedTradePositionDirection[];\n\n/**\n * Every {@link MobileFeedTradePositionEffect} the feed can report, for callers that need the values at\n * runtime (validation, filters, UI enumeration).\n */\nexport const MOBILE_FEED_TRADE_POSITION_EFFECTS = [\n 'opened',\n 'increased',\n 'reduced',\n 'closed',\n 'flipped',\n] as const;\n\n/**\n * How a feed trade changed the trader's position in the product.\n */\nexport type MobileFeedTradePositionEffect =\n (typeof MOBILE_FEED_TRADE_POSITION_EFFECTS)[number];\n\n/**\n * Position change of a feed trade. Both keys are single words, so the wire and client shapes are identical\n * and this type is shared by {@link MobileServerFeedTrade} and the client-side `MobileFeedTrade`.\n */\nexport interface MobileFeedTradePosition {\n direction: MobileFeedTradePositionDirection;\n effect: MobileFeedTradePositionEffect;\n}\n\n/**\n * Every {@link MobileFeedMarginMode} the feed can report, for callers that need the values at runtime\n * (validation, filters, UI enumeration).\n */\nexport const MOBILE_FEED_MARGIN_MODES = ['cross', 'isolated'] as const;\n\n/**\n * Margin mode a feed trade was executed under. Shared by the wire and client margin shapes.\n */\nexport type MobileFeedMarginMode = (typeof MOBILE_FEED_MARGIN_MODES)[number];\n\n/**\n * Server-side margin of a feed trade. Branch on `mode` — do not infer isolated state from leverage presence:\n * `estimated_leverage` (a rounded whole-number estimate, not exact submitted leverage) is omitted on `cross`,\n * and also omitted inside `isolated` when no estimate is available.\n */\nexport interface MobileServerFeedMargin {\n mode: MobileFeedMarginMode;\n estimated_leverage?: number;\n}\n\n/**\n * Server-side feed trade shape (snake_case): one row per order digest, enriched at read time with the\n * trader's current identity. Amounts are display-oriented human-unit JSON numbers — do not use them for\n * accounting, order construction, or exact threshold decisions.\n */\nexport interface MobileServerFeedTrade {\n /** Order digest this row is keyed by; the stable id clients use to reconcile live pagination. */\n order_digest: Hex;\n subaccount: Hex;\n username: string | null;\n display_name: string | null;\n /** Reserved for a future avatar source; `null` until one is implemented. */\n avatar_url: string | null;\n product_id: number;\n /** Executed quantity in human units. */\n quantity: number;\n /** Trade notional in whole-dollar human units. */\n notional: number;\n /** Average execution price in human units. */\n average_price: number;\n margin: MobileServerFeedMargin;\n position: MobileFeedTradePosition;\n /** Realized PnL of the trade in human units; can be negative. */\n realized_pnl: number;\n /** Fill time as JavaScript-safe integer Unix milliseconds. */\n filled_at_ms: number;\n}\n\n/**\n * Server-side scope limiting a notification category preference. Scopes are rejected by the backend for the\n * MVP (`scopes` must be empty) but are part of the wire format.\n */\nexport type MobileServerNotificationPreferenceScope =\n | { type: 'subaccount'; subaccount: Hex }\n | { type: 'product'; product_id: number };\n\n/**\n * Server-side per-category notification preference (snake_case).\n */\nexport interface MobileServerNotificationCategoryPreference {\n category: MobileNotificationCategory;\n enabled: boolean;\n scopes: MobileServerNotificationPreferenceScope[];\n}\n\n/**\n * Server-side notification preferences shape (snake_case), used in both the `update_preferences` public\n * execute and the `notification_preferences` public query response.\n */\nexport interface MobileServerNotificationPreferences {\n /** Only `1` is accepted by the backend for the MVP. */\n schema_version: 1;\n categories: MobileServerNotificationCategoryPreference[];\n}\n
|
|
1
|
+
{"version":3,"file":"serverModelTypes.cjs","names":[],"sources":["../../src/types/serverModelTypes.ts"],"sourcesContent":["import { BalanceSide } from '@nadohq/shared';\nimport { Hex } from 'viem';\n\n/**\n * Platform of a device registered for push notifications.\n */\nexport type MobileNotificationPlatform = 'ios' | 'android';\n\n/**\n * Category of push notification.\n */\nexport type MobileNotificationCategory =\n | 'order_fill'\n | 'order_update'\n | 'liquidation'\n | 'funding'\n | 'product_listing'\n | 'announcement';\n\n/**\n * Server-side public profile shape (snake_case). Name fields are `null` until the subaccount claims a\n * username.\n */\nexport interface MobileServerProfile {\n subaccount: Hex;\n username: string | null;\n display_name: string | null;\n private_mode: boolean;\n}\n\n/**\n * Server-side identity shape (snake_case) returned by the signed `self_identity` query. Name fields are\n * `null` until the subaccount claims a username.\n */\nexport interface MobileServerIdentity {\n subaccount: Hex;\n username: string | null;\n display_name: string | null;\n private_mode: boolean;\n}\n\n/**\n * Direction of the position a feed trade resulted in — for `closed`, the direction that was closed. This is\n * NOT the execution buy/sell side, which the feed does not expose. Aliases {@link BalanceSide} so the feed's\n * direction values stay in lockstep with the rest of the SDK.\n */\nexport type MobileFeedTradePositionDirection = BalanceSide;\n\n/**\n * Every {@link MobileFeedTradePositionDirection} the feed can report, for callers that need the values at\n * runtime (validation, filters, UI enumeration).\n */\nexport const MOBILE_FEED_TRADE_POSITION_DIRECTIONS = [\n 'long',\n 'short',\n] as const satisfies readonly MobileFeedTradePositionDirection[];\n\n/**\n * Every {@link MobileFeedTradePositionEffect} the feed can report, for callers that need the values at\n * runtime (validation, filters, UI enumeration).\n */\nexport const MOBILE_FEED_TRADE_POSITION_EFFECTS = [\n 'opened',\n 'increased',\n 'reduced',\n 'closed',\n 'flipped',\n] as const;\n\n/**\n * How a feed trade changed the trader's position in the product.\n */\nexport type MobileFeedTradePositionEffect =\n (typeof MOBILE_FEED_TRADE_POSITION_EFFECTS)[number];\n\n/**\n * Position change of a feed trade. Both keys are single words, so the wire and client shapes are identical\n * and this type is shared by {@link MobileServerFeedTrade} and the client-side `MobileFeedTrade`.\n */\nexport interface MobileFeedTradePosition {\n direction: MobileFeedTradePositionDirection;\n effect: MobileFeedTradePositionEffect;\n}\n\n/**\n * Every {@link MobileFeedMarginMode} the feed can report, for callers that need the values at runtime\n * (validation, filters, UI enumeration).\n */\nexport const MOBILE_FEED_MARGIN_MODES = ['cross', 'isolated'] as const;\n\n/**\n * Margin mode a feed trade was executed under. Shared by the wire and client margin shapes.\n */\nexport type MobileFeedMarginMode = (typeof MOBILE_FEED_MARGIN_MODES)[number];\n\n/**\n * Server-side margin of a feed trade. Branch on `mode` — do not infer isolated state from leverage presence:\n * `estimated_leverage` (a rounded whole-number estimate, not exact submitted leverage) is omitted on `cross`,\n * and also omitted inside `isolated` when no estimate is available.\n */\nexport interface MobileServerFeedMargin {\n mode: MobileFeedMarginMode;\n estimated_leverage?: number;\n}\n\n/**\n * Server-side feed trade shape (snake_case): one row per order digest, enriched at read time with the\n * trader's current identity. Amounts are display-oriented human-unit JSON numbers — do not use them for\n * accounting, order construction, or exact threshold decisions.\n */\nexport interface MobileServerFeedTrade {\n /** Order digest this row is keyed by; the stable id clients use to reconcile live pagination. */\n order_digest: Hex;\n subaccount: Hex;\n username: string | null;\n display_name: string | null;\n /** Reserved for a future avatar source; `null` until one is implemented. */\n avatar_url: string | null;\n product_id: number;\n /** Executed quantity in human units. */\n quantity: number;\n /** Trade notional in whole-dollar human units. */\n notional: number;\n /** Average execution price in human units. */\n average_price: number;\n margin: MobileServerFeedMargin;\n position: MobileFeedTradePosition;\n /** Realized PnL of the trade in human units; can be negative. */\n realized_pnl: number;\n /** Fill time as JavaScript-safe integer Unix milliseconds. */\n filled_at_ms: number;\n}\n\n/**\n * Server-side scope limiting a notification category preference. Scopes are rejected by the backend for the\n * MVP (`scopes` must be empty) but are part of the wire format.\n */\nexport type MobileServerNotificationPreferenceScope =\n | { type: 'subaccount'; subaccount: Hex }\n | { type: 'product'; product_id: number };\n\n/**\n * Server-side per-category notification preference (snake_case).\n */\nexport interface MobileServerNotificationCategoryPreference {\n category: MobileNotificationCategory;\n enabled: boolean;\n scopes: MobileServerNotificationPreferenceScope[];\n}\n\n/**\n * Server-side notification preferences shape (snake_case), used in both the `update_preferences` public\n * execute and the `notification_preferences` public query response.\n */\nexport interface MobileServerNotificationPreferences {\n /** Only `1` is accepted by the backend for the MVP. */\n schema_version: 1;\n categories: MobileServerNotificationCategoryPreference[];\n}\n"],"mappings":";;;;;;AAoDA,MAAa,wCAAwC,CACnD,QACA,OACF;;;;;AAMA,MAAa,qCAAqC;CAChD;CACA;CACA;CACA;CACA;AACF;;;;;AAqBA,MAAa,2BAA2B,CAAC,SAAS,UAAU"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { MOBILE_FEED_MARGIN_MODES, MOBILE_FEED_TRADE_POSITION_DIRECTIONS, MOBILE_FEED_TRADE_POSITION_EFFECTS, MobileFeedMarginMode, MobileFeedTradePosition, MobileFeedTradePositionDirection, MobileFeedTradePositionEffect, MobileNotificationCategory, MobileNotificationPlatform, MobileServerFeedMargin, MobileServerFeedTrade, MobileServerIdentity, MobileServerNotificationCategoryPreference, MobileServerNotificationPreferenceScope, MobileServerNotificationPreferences, MobileServerProfile
|
|
1
|
+
import { a as MobileFeedTradePosition, c as MobileNotificationCategory, d as MobileServerFeedTrade, f as MobileServerIdentity, g as MobileServerProfile, h as MobileServerNotificationPreferences, i as MobileFeedMarginMode, l as MobileNotificationPlatform, m as MobileServerNotificationPreferenceScope, n as MOBILE_FEED_TRADE_POSITION_DIRECTIONS, o as MobileFeedTradePositionDirection, p as MobileServerNotificationCategoryPreference, r as MOBILE_FEED_TRADE_POSITION_EFFECTS, s as MobileFeedTradePositionEffect, t as MOBILE_FEED_MARGIN_MODES, u as MobileServerFeedMargin } from "../serverModelTypes-DGYc_3XP.cjs";
|
|
2
|
+
export { MOBILE_FEED_MARGIN_MODES, MOBILE_FEED_TRADE_POSITION_DIRECTIONS, MOBILE_FEED_TRADE_POSITION_EFFECTS, MobileFeedMarginMode, MobileFeedTradePosition, MobileFeedTradePositionDirection, MobileFeedTradePositionEffect, MobileNotificationCategory, MobileNotificationPlatform, MobileServerFeedMargin, MobileServerFeedTrade, MobileServerIdentity, MobileServerNotificationCategoryPreference, MobileServerNotificationPreferenceScope, MobileServerNotificationPreferences, MobileServerProfile };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { MOBILE_FEED_MARGIN_MODES, MOBILE_FEED_TRADE_POSITION_DIRECTIONS, MOBILE_FEED_TRADE_POSITION_EFFECTS, MobileFeedMarginMode, MobileFeedTradePosition, MobileFeedTradePositionDirection, MobileFeedTradePositionEffect, MobileNotificationCategory, MobileNotificationPlatform, MobileServerFeedMargin, MobileServerFeedTrade, MobileServerIdentity, MobileServerNotificationCategoryPreference, MobileServerNotificationPreferenceScope, MobileServerNotificationPreferences, MobileServerProfile
|
|
1
|
+
import { a as MobileFeedTradePosition, c as MobileNotificationCategory, d as MobileServerFeedTrade, f as MobileServerIdentity, g as MobileServerProfile, h as MobileServerNotificationPreferences, i as MobileFeedMarginMode, l as MobileNotificationPlatform, m as MobileServerNotificationPreferenceScope, n as MOBILE_FEED_TRADE_POSITION_DIRECTIONS, o as MobileFeedTradePositionDirection, p as MobileServerNotificationCategoryPreference, r as MOBILE_FEED_TRADE_POSITION_EFFECTS, s as MobileFeedTradePositionEffect, t as MOBILE_FEED_MARGIN_MODES, u as MobileServerFeedMargin } from "../serverModelTypes-BIGPd52y.js";
|
|
2
|
+
export { MOBILE_FEED_MARGIN_MODES, MOBILE_FEED_TRADE_POSITION_DIRECTIONS, MOBILE_FEED_TRADE_POSITION_EFFECTS, MobileFeedMarginMode, MobileFeedTradePosition, MobileFeedTradePositionDirection, MobileFeedTradePositionEffect, MobileNotificationCategory, MobileNotificationPlatform, MobileServerFeedMargin, MobileServerFeedTrade, MobileServerIdentity, MobileServerNotificationCategoryPreference, MobileServerNotificationPreferenceScope, MobileServerNotificationPreferences, MobileServerProfile };
|