@nadohq/mobile-client 0.30.0 → 0.32.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.
Files changed (164) hide show
  1. package/README.md +15 -8
  2. package/dist/{MobileClient-CfDtaEeL.cjs → MobileClient-_i0ZV6Dq.cjs} +88 -48
  3. package/dist/MobileClient-_i0ZV6Dq.cjs.map +1 -0
  4. package/dist/MobileClient.cjs +1 -1
  5. package/dist/MobileClient.d.cts +66 -37
  6. package/dist/MobileClient.d.cts.map +1 -1
  7. package/dist/MobileClient.d.ts +66 -37
  8. package/dist/MobileClient.d.ts.map +1 -1
  9. package/dist/MobileClient.js +88 -48
  10. package/dist/MobileClient.js.map +1 -1
  11. package/dist/{MobileServerFailureError-B11rr9O5.d.cts → MobileServerFailureError-BoyAfEZA.d.cts} +3 -3
  12. package/dist/{MobileServerFailureError-B11rr9O5.d.cts.map → MobileServerFailureError-BoyAfEZA.d.cts.map} +1 -1
  13. package/dist/{MobileServerFailureError-DoIvXqYV.d.ts → MobileServerFailureError-MgYVBh5p.d.ts} +3 -3
  14. package/dist/{MobileServerFailureError-DoIvXqYV.d.ts.map → MobileServerFailureError-MgYVBh5p.d.ts.map} +1 -1
  15. package/dist/{buildSignedMobileRequest-EEnDgZF8.d.cts → buildSignedMobileRequest-CBMt97aY.d.cts} +2 -2
  16. package/dist/{buildSignedMobileRequest-EEnDgZF8.d.cts.map → buildSignedMobileRequest-CBMt97aY.d.cts.map} +1 -1
  17. package/dist/{buildSignedMobileRequest-B4KJ6T1y.d.ts → buildSignedMobileRequest-qEC4gWaI.d.ts} +2 -2
  18. package/dist/{buildSignedMobileRequest-B4KJ6T1y.d.ts.map → buildSignedMobileRequest-qEC4gWaI.d.ts.map} +1 -1
  19. package/dist/{canonicalize-Cc7hdZLJ.d.ts → canonicalize-QNARV_Xc.d.cts} +4 -4
  20. package/dist/canonicalize-QNARV_Xc.d.cts.map +1 -0
  21. package/dist/{canonicalize-CDdYnhL3.d.cts → canonicalize-wVdGejB1.d.ts} +4 -4
  22. package/dist/canonicalize-wVdGejB1.d.ts.map +1 -0
  23. package/dist/{clientTypes-BsOps_pY.d.ts → clientTypes-6utzUU-b.d.ts} +40 -32
  24. package/dist/clientTypes-6utzUU-b.d.ts.map +1 -0
  25. package/dist/{clientTypes-UFInIAQd.d.cts → clientTypes-D9qgtNlE.d.cts} +40 -32
  26. package/dist/clientTypes-D9qgtNlE.d.cts.map +1 -0
  27. package/dist/dataMappers.cjs +2 -1
  28. package/dist/dataMappers.cjs.map +1 -1
  29. package/dist/dataMappers.d.cts +3 -3
  30. package/dist/dataMappers.d.cts.map +1 -1
  31. package/dist/dataMappers.d.ts +3 -3
  32. package/dist/dataMappers.d.ts.map +1 -1
  33. package/dist/dataMappers.js +2 -1
  34. package/dist/dataMappers.js.map +1 -1
  35. package/dist/{eip712MethodByType-DCU415zf.d.cts → eip712MethodByType-CroIPqsJ.d.cts} +2 -2
  36. package/dist/eip712MethodByType-CroIPqsJ.d.cts.map +1 -0
  37. package/dist/{eip712MethodByType-B67XiwTu.d.ts → eip712MethodByType-DBUy4AdI.d.ts} +2 -2
  38. package/dist/eip712MethodByType-DBUy4AdI.d.ts.map +1 -0
  39. package/dist/index.cjs +1 -1
  40. package/dist/index.d.cts +15 -15
  41. package/dist/index.d.ts +15 -15
  42. package/dist/{mobileErrorCodes-Cj84nBnT.d.cts → mobileErrorCodes-CuQ5lyBV.d.ts} +2 -4
  43. package/dist/mobileErrorCodes-CuQ5lyBV.d.ts.map +1 -0
  44. package/dist/{mobileErrorCodes-Czmigq9x.d.ts → mobileErrorCodes-D_SyBm0k.d.cts} +2 -4
  45. package/dist/mobileErrorCodes-D_SyBm0k.d.cts.map +1 -0
  46. package/dist/{payloadHash-BSoGv3Lz.d.cts → payloadHash-B0tlFOK8.d.cts} +2 -2
  47. package/dist/payloadHash-B0tlFOK8.d.cts.map +1 -0
  48. package/dist/{payloadHash-BVP2v3p9.d.ts → payloadHash-D1yTQSF4.d.ts} +2 -2
  49. package/dist/payloadHash-D1yTQSF4.d.ts.map +1 -0
  50. package/dist/{serverBaseTypes-m3zEi0X9.d.ts → serverBaseTypes-CzRgwUvA.d.ts} +2 -2
  51. package/dist/{serverBaseTypes-m3zEi0X9.d.ts.map → serverBaseTypes-CzRgwUvA.d.ts.map} +1 -1
  52. package/dist/{serverBaseTypes-A16onlPN.d.cts → serverBaseTypes-DSRgU2Fb.d.cts} +2 -2
  53. package/dist/{serverBaseTypes-A16onlPN.d.cts.map → serverBaseTypes-DSRgU2Fb.d.cts.map} +1 -1
  54. package/dist/serverExecuteTypes-BCb6bUMP.d.cts +19 -0
  55. package/dist/serverExecuteTypes-BCb6bUMP.d.cts.map +1 -0
  56. package/dist/serverExecuteTypes-CI3NBW2Z.d.ts +19 -0
  57. package/dist/serverExecuteTypes-CI3NBW2Z.d.ts.map +1 -0
  58. package/dist/{serverModelTypes-CPZUvVil.d.cts → serverModelTypes-BYQcsRrx.d.cts} +14 -11
  59. package/dist/serverModelTypes-BYQcsRrx.d.cts.map +1 -0
  60. package/dist/{serverModelTypes-CqnqHY5F.d.ts → serverModelTypes-DvPs5qs3.d.ts} +14 -11
  61. package/dist/serverModelTypes-DvPs5qs3.d.ts.map +1 -0
  62. package/dist/{serverQueryTypes-CJLWWZBs.d.ts → serverQueryTypes-9H6P1vJ5.d.cts} +9 -8
  63. package/dist/serverQueryTypes-9H6P1vJ5.d.cts.map +1 -0
  64. package/dist/{serverQueryTypes-C_cCx0Ac.d.cts → serverQueryTypes-Cbjx0bIj.d.ts} +9 -8
  65. package/dist/serverQueryTypes-Cbjx0bIj.d.ts.map +1 -0
  66. package/dist/{serverRequestTypes-DQDy3K9O.d.ts → serverRequestTypes-CHDk6JwE.d.cts} +31 -8
  67. package/dist/serverRequestTypes-CHDk6JwE.d.cts.map +1 -0
  68. package/dist/{serverRequestTypes-DnU_FfMI.d.cts → serverRequestTypes-DYTLrCpz.d.ts} +31 -8
  69. package/dist/serverRequestTypes-DYTLrCpz.d.ts.map +1 -0
  70. package/dist/{serverResponseGuards-BlvfJjsa.d.cts → serverResponseGuards-DRMHmfXh.d.cts} +2 -2
  71. package/dist/{serverResponseGuards-BlvfJjsa.d.cts.map → serverResponseGuards-DRMHmfXh.d.cts.map} +1 -1
  72. package/dist/{serverResponseGuards-gpHH8SHk.d.ts → serverResponseGuards-DpbZvJfL.d.ts} +2 -2
  73. package/dist/{serverResponseGuards-gpHH8SHk.d.ts.map → serverResponseGuards-DpbZvJfL.d.ts.map} +1 -1
  74. package/dist/signing/buildSignedMobileRequest.cjs +1 -1
  75. package/dist/signing/buildSignedMobileRequest.d.cts +1 -1
  76. package/dist/signing/buildSignedMobileRequest.d.ts +1 -1
  77. package/dist/signing/canonicalize.cjs +4 -37
  78. package/dist/signing/canonicalize.cjs.map +1 -1
  79. package/dist/signing/canonicalize.d.cts +1 -1
  80. package/dist/signing/canonicalize.d.ts +1 -1
  81. package/dist/signing/canonicalize.js +4 -37
  82. package/dist/signing/canonicalize.js.map +1 -1
  83. package/dist/signing/eip712MethodByType.cjs +1 -5
  84. package/dist/signing/eip712MethodByType.cjs.map +1 -1
  85. package/dist/signing/eip712MethodByType.d.cts +1 -1
  86. package/dist/signing/eip712MethodByType.d.ts +1 -1
  87. package/dist/signing/eip712MethodByType.js +1 -5
  88. package/dist/signing/eip712MethodByType.js.map +1 -1
  89. package/dist/signing/index.d.cts +5 -5
  90. package/dist/signing/index.d.ts +5 -5
  91. package/dist/signing/payloadHash.cjs +1 -1
  92. package/dist/signing/payloadHash.d.cts +1 -1
  93. package/dist/signing/payloadHash.d.ts +1 -1
  94. package/dist/signing/types.d.cts +1 -1
  95. package/dist/signing/types.d.ts +1 -1
  96. package/dist/types/MobileServerFailureError.cjs +1 -1
  97. package/dist/types/MobileServerFailureError.d.cts +1 -1
  98. package/dist/types/MobileServerFailureError.d.ts +1 -1
  99. package/dist/types/clientTypes.d.cts +2 -2
  100. package/dist/types/clientTypes.d.ts +2 -2
  101. package/dist/types/index.d.cts +9 -9
  102. package/dist/types/index.d.ts +9 -9
  103. package/dist/types/mobileErrorCodes.cjs +2 -3
  104. package/dist/types/mobileErrorCodes.cjs.map +1 -1
  105. package/dist/types/mobileErrorCodes.d.cts +1 -1
  106. package/dist/types/mobileErrorCodes.d.ts +1 -1
  107. package/dist/types/mobileErrorCodes.js +1 -2
  108. package/dist/types/mobileErrorCodes.js.map +1 -1
  109. package/dist/types/serverBaseTypes.d.cts +1 -1
  110. package/dist/types/serverBaseTypes.d.ts +1 -1
  111. package/dist/types/serverExecuteTypes.d.cts +2 -2
  112. package/dist/types/serverExecuteTypes.d.ts +2 -2
  113. package/dist/types/serverModelTypes.cjs.map +1 -1
  114. package/dist/types/serverModelTypes.d.cts +1 -1
  115. package/dist/types/serverModelTypes.d.ts +1 -1
  116. package/dist/types/serverModelTypes.js.map +1 -1
  117. package/dist/types/serverQueryTypes.d.cts +1 -1
  118. package/dist/types/serverQueryTypes.d.ts +1 -1
  119. package/dist/types/serverRequestTypes.d.cts +2 -2
  120. package/dist/types/serverRequestTypes.d.ts +2 -2
  121. package/dist/{types-UHjZR-js.d.ts → types-CQE3HD2V.d.ts} +4 -15
  122. package/dist/types-CQE3HD2V.d.ts.map +1 -0
  123. package/dist/{types-CzOeSYnW.d.cts → types-bNB98pYk.d.cts} +4 -15
  124. package/dist/types-bNB98pYk.d.cts.map +1 -0
  125. package/dist/utils/index.d.cts +1 -1
  126. package/dist/utils/index.d.ts +1 -1
  127. package/dist/utils/serverResponseGuards.d.cts +1 -1
  128. package/dist/utils/serverResponseGuards.d.ts +1 -1
  129. package/package.json +3 -3
  130. package/src/MobileClient.ts +119 -90
  131. package/src/dataMappers.ts +1 -0
  132. package/src/signing/canonicalize.ts +4 -37
  133. package/src/signing/eip712MethodByType.ts +1 -5
  134. package/src/signing/signing.test.ts +17 -60
  135. package/src/signing/types.ts +2 -12
  136. package/src/types/clientTypes.ts +38 -30
  137. package/src/types/mobileErrorCodes.ts +1 -2
  138. package/src/types/serverExecuteTypes.ts +17 -0
  139. package/src/types/serverModelTypes.ts +13 -10
  140. package/src/types/serverQueryTypes.ts +5 -4
  141. package/src/types/serverRequestTypes.ts +27 -4
  142. package/dist/MobileClient-CfDtaEeL.cjs.map +0 -1
  143. package/dist/canonicalize-CDdYnhL3.d.cts.map +0 -1
  144. package/dist/canonicalize-Cc7hdZLJ.d.ts.map +0 -1
  145. package/dist/clientTypes-BsOps_pY.d.ts.map +0 -1
  146. package/dist/clientTypes-UFInIAQd.d.cts.map +0 -1
  147. package/dist/eip712MethodByType-B67XiwTu.d.ts.map +0 -1
  148. package/dist/eip712MethodByType-DCU415zf.d.cts.map +0 -1
  149. package/dist/mobileErrorCodes-Cj84nBnT.d.cts.map +0 -1
  150. package/dist/mobileErrorCodes-Czmigq9x.d.ts.map +0 -1
  151. package/dist/payloadHash-BSoGv3Lz.d.cts.map +0 -1
  152. package/dist/payloadHash-BVP2v3p9.d.ts.map +0 -1
  153. package/dist/serverExecuteTypes-C-bioiuQ.d.cts +0 -11
  154. package/dist/serverExecuteTypes-C-bioiuQ.d.cts.map +0 -1
  155. package/dist/serverExecuteTypes-DfzWOeIx.d.ts +0 -11
  156. package/dist/serverExecuteTypes-DfzWOeIx.d.ts.map +0 -1
  157. package/dist/serverModelTypes-CPZUvVil.d.cts.map +0 -1
  158. package/dist/serverModelTypes-CqnqHY5F.d.ts.map +0 -1
  159. package/dist/serverQueryTypes-CJLWWZBs.d.ts.map +0 -1
  160. package/dist/serverQueryTypes-C_cCx0Ac.d.cts.map +0 -1
  161. package/dist/serverRequestTypes-DQDy3K9O.d.ts.map +0 -1
  162. package/dist/serverRequestTypes-DnU_FfMI.d.cts.map +0 -1
  163. package/dist/types-CzOeSYnW.d.cts.map +0 -1
  164. package/dist/types-UHjZR-js.d.ts.map +0 -1
@@ -7,9 +7,7 @@
7
7
  declare const MOBILE_ERROR_CODES: {
8
8
  readonly INVALID_DISPLAY_NAME: 6100;
9
9
  readonly USERNAME_UNAVAILABLE: 6101;
10
- readonly IDENTITY_ALREADY_CLAIMED: 6102;
11
- readonly IDENTITY_REQUIRED: 6103;
12
- readonly INVALID_IDENTITY_TARGET: 6104;
10
+ readonly INVALID_IDENTITY_TARGET: 6104; /** Another identity write for the subaccount committed with a later nonce. Re-read before retrying. */
13
11
  readonly STALE_IDENTITY_UPDATE: 6105;
14
12
  readonly PROFILE_NOT_FOUND: 6106;
15
13
  readonly INVALID_EXPO_TOKEN: 6200;
@@ -38,4 +36,4 @@ declare const MOBILE_ERROR_CODES: {
38
36
  type MobileErrorCode = (typeof MOBILE_ERROR_CODES)[keyof typeof MOBILE_ERROR_CODES];
39
37
  //#endregion
40
38
  export { MobileErrorCode as n, MOBILE_ERROR_CODES as t };
41
- //# sourceMappingURL=mobileErrorCodes-Czmigq9x.d.ts.map
39
+ //# sourceMappingURL=mobileErrorCodes-D_SyBm0k.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mobileErrorCodes-D_SyBm0k.d.cts","names":[],"sources":["../src/types/src/types/mobileErrorCodes.ts"],"mappings":";;AAOA;;;;cAAa,kBAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;AAqBgD;;KADjD,eAAA,WACF,kBAAA,eAAiC,kBAAkB"}
@@ -1,4 +1,4 @@
1
- import { n as MobileSignedInner } from "./types-CzOeSYnW.cjs";
1
+ import { n as MobileSignedInner } from "./types-bNB98pYk.cjs";
2
2
  import { Hex } from "viem";
3
3
 
4
4
  //#region src/signing/payloadHash.d.ts
@@ -10,4 +10,4 @@ import { Hex } from "viem";
10
10
  declare function getMobilePayloadHash(inner: MobileSignedInner): Hex;
11
11
  //#endregion
12
12
  export { getMobilePayloadHash as t };
13
- //# sourceMappingURL=payloadHash-BSoGv3Lz.d.cts.map
13
+ //# sourceMappingURL=payloadHash-B0tlFOK8.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payloadHash-B0tlFOK8.d.cts","names":[],"sources":["../src/signing/src/signing/payloadHash.ts"],"mappings":";;;;;;AASA;;;iBAAgB,oBAAA,CAAqB,KAAA,EAAO,iBAAA,GAAoB,GAAG"}
@@ -1,4 +1,4 @@
1
- import { n as MobileSignedInner } from "./types-UHjZR-js.js";
1
+ import { n as MobileSignedInner } from "./types-CQE3HD2V.js";
2
2
  import { Hex } from "viem";
3
3
 
4
4
  //#region src/signing/payloadHash.d.ts
@@ -10,4 +10,4 @@ import { Hex } from "viem";
10
10
  declare function getMobilePayloadHash(inner: MobileSignedInner): Hex;
11
11
  //#endregion
12
12
  export { getMobilePayloadHash as t };
13
- //# sourceMappingURL=payloadHash-BVP2v3p9.d.ts.map
13
+ //# sourceMappingURL=payloadHash-D1yTQSF4.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payloadHash-D1yTQSF4.d.ts","names":[],"sources":["../src/signing/src/signing/payloadHash.ts"],"mappings":";;;;;;AASA;;;iBAAgB,oBAAA,CAAqB,KAAA,EAAO,iBAAA,GAAoB,GAAG"}
@@ -1,4 +1,4 @@
1
- import { i as MobileServerRequestType } from "./serverRequestTypes-DQDy3K9O.js";
1
+ import { o as MobileServerRequestType } from "./serverRequestTypes-DYTLrCpz.js";
2
2
 
3
3
  //#region src/types/serverBaseTypes.d.ts
4
4
  /**
@@ -22,4 +22,4 @@ interface MobileServerFailureResponse {
22
22
  }
23
23
  //#endregion
24
24
  export { MobileServerSuccessResponse as n, MobileServerFailureResponse as t };
25
- //# sourceMappingURL=serverBaseTypes-m3zEi0X9.d.ts.map
25
+ //# sourceMappingURL=serverBaseTypes-CzRgwUvA.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"serverBaseTypes-m3zEi0X9.d.ts","names":[],"sources":["../src/types/src/types/serverBaseTypes.ts"],"mappings":";;;;;AAQA;;;;UAAiB,2BAAA;EACf,MAAM;AAAA;;;;;UAOS,2BAAA;EACf,MAAA;EACA,KAAA;EACA,UAAA;EACA,YAAA,EAAc,uBAAuB;AAAA"}
1
+ {"version":3,"file":"serverBaseTypes-CzRgwUvA.d.ts","names":[],"sources":["../src/types/src/types/serverBaseTypes.ts"],"mappings":";;;;;AAQA;;;;UAAiB,2BAAA;EACf,MAAM;AAAA;;;;;UAOS,2BAAA;EACf,MAAA;EACA,KAAA;EACA,UAAA;EACA,YAAA,EAAc,uBAAuB;AAAA"}
@@ -1,4 +1,4 @@
1
- import { i as MobileServerRequestType } from "./serverRequestTypes-DnU_FfMI.cjs";
1
+ import { o as MobileServerRequestType } from "./serverRequestTypes-CHDk6JwE.cjs";
2
2
 
3
3
  //#region src/types/serverBaseTypes.d.ts
4
4
  /**
@@ -22,4 +22,4 @@ interface MobileServerFailureResponse {
22
22
  }
23
23
  //#endregion
24
24
  export { MobileServerSuccessResponse as n, MobileServerFailureResponse as t };
25
- //# sourceMappingURL=serverBaseTypes-A16onlPN.d.cts.map
25
+ //# sourceMappingURL=serverBaseTypes-DSRgU2Fb.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"serverBaseTypes-A16onlPN.d.cts","names":[],"sources":["../src/types/src/types/serverBaseTypes.ts"],"mappings":";;;;;AAQA;;;;UAAiB,2BAAA;EACf,MAAM;AAAA;;;;;UAOS,2BAAA;EACf,MAAA;EACA,KAAA;EACA,UAAA;EACA,YAAA,EAAc,uBAAuB;AAAA"}
1
+ {"version":3,"file":"serverBaseTypes-DSRgU2Fb.d.cts","names":[],"sources":["../src/types/src/types/serverBaseTypes.ts"],"mappings":";;;;;AAQA;;;;UAAiB,2BAAA;EACf,MAAM;AAAA;;;;;UAOS,2BAAA;EACf,MAAA;EACA,KAAA;EACA,UAAA;EACA,YAAA,EAAc,uBAAuB;AAAA"}
@@ -0,0 +1,19 @@
1
+ import { n as MobileServerPublicExecuteRequestByType, r as MobileServerPublicExecuteRequestType } from "./serverRequestTypes-CHDk6JwE.cjs";
2
+ import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "./serverBaseTypes-DSRgU2Fb.cjs";
3
+
4
+ //#region src/types/serverExecuteTypes.d.ts
5
+ /**
6
+ * Unsigned `public_execute` request body: a `type` discriminant flattened with its params, mirroring
7
+ * {@link MobileServerPublicQueryRequest}.
8
+ */
9
+ type MobileServerPublicExecuteRequest<T extends MobileServerPublicExecuteRequestType = MobileServerPublicExecuteRequestType> = { [K in MobileServerPublicExecuteRequestType]: {
10
+ type: K;
11
+ } & MobileServerPublicExecuteRequestByType[K] }[T];
12
+ /**
13
+ * Discriminated `execute` result union. Mobile execute routes return no payload beyond the success
14
+ * discriminant, so the success arm is the base success envelope; failures use the uniform failure envelope.
15
+ */
16
+ type MobileServerExecuteResult = MobileServerSuccessResponse | MobileServerFailureResponse;
17
+ //#endregion
18
+ export { MobileServerPublicExecuteRequest as n, MobileServerExecuteResult as t };
19
+ //# sourceMappingURL=serverExecuteTypes-BCb6bUMP.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serverExecuteTypes-BCb6bUMP.d.cts","names":[],"sources":["../src/types/src/types/serverExecuteTypes.ts"],"mappings":";;;;;;AAaA;;KAAY,gCAAA,WACA,oCAAA,GACR,oCAAA,YAEI,oCAAA;EACJ,IAAA,EAAM,CAAA;AAAA,IACJ,sCAAA,CAAuC,CAAA,IAC3C,CAAA;;;;;KAMU,yBAAA,GACR,2BAAA,GACA,2BAA2B"}
@@ -0,0 +1,19 @@
1
+ import { n as MobileServerPublicExecuteRequestByType, r as MobileServerPublicExecuteRequestType } from "./serverRequestTypes-DYTLrCpz.js";
2
+ import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "./serverBaseTypes-CzRgwUvA.js";
3
+
4
+ //#region src/types/serverExecuteTypes.d.ts
5
+ /**
6
+ * Unsigned `public_execute` request body: a `type` discriminant flattened with its params, mirroring
7
+ * {@link MobileServerPublicQueryRequest}.
8
+ */
9
+ type MobileServerPublicExecuteRequest<T extends MobileServerPublicExecuteRequestType = MobileServerPublicExecuteRequestType> = { [K in MobileServerPublicExecuteRequestType]: {
10
+ type: K;
11
+ } & MobileServerPublicExecuteRequestByType[K] }[T];
12
+ /**
13
+ * Discriminated `execute` result union. Mobile execute routes return no payload beyond the success
14
+ * discriminant, so the success arm is the base success envelope; failures use the uniform failure envelope.
15
+ */
16
+ type MobileServerExecuteResult = MobileServerSuccessResponse | MobileServerFailureResponse;
17
+ //#endregion
18
+ export { MobileServerPublicExecuteRequest as n, MobileServerExecuteResult as t };
19
+ //# sourceMappingURL=serverExecuteTypes-CI3NBW2Z.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serverExecuteTypes-CI3NBW2Z.d.ts","names":[],"sources":["../src/types/src/types/serverExecuteTypes.ts"],"mappings":";;;;;;AAaA;;KAAY,gCAAA,WACA,oCAAA,GACR,oCAAA,YAEI,oCAAA;EACJ,IAAA,EAAM,CAAA;AAAA,IACJ,sCAAA,CAAuC,CAAA,IAC3C,CAAA;;;;;KAMU,yBAAA,GACR,2BAAA,GACA,2BAA2B"}
@@ -11,20 +11,23 @@ type MobileNotificationPlatform = 'ios' | 'android';
11
11
  */
12
12
  type MobileNotificationCategory = 'order_fill' | 'order_update' | 'liquidation' | 'funding' | 'product_listing' | 'announcement';
13
13
  /**
14
- * Server-side public profile shape (snake_case).
14
+ * Server-side public profile shape (snake_case). Name fields are `null` until the subaccount claims a
15
+ * username.
15
16
  */
16
17
  interface MobileServerProfile {
17
18
  subaccount: Hex;
18
- username: string;
19
- display_name: string;
19
+ username: string | null;
20
+ display_name: string | null;
21
+ private_mode: boolean;
20
22
  }
21
23
  /**
22
- * Server-side identity shape (snake_case) returned by the signed `self_identity` query.
24
+ * Server-side identity shape (snake_case) returned by the signed `self_identity` query. Name fields are
25
+ * `null` until the subaccount claims a username.
23
26
  */
24
27
  interface MobileServerIdentity {
25
28
  subaccount: Hex;
26
- username: string;
27
- display_name: string;
29
+ username: string | null;
30
+ display_name: string | null;
28
31
  private_mode: boolean;
29
32
  }
30
33
  /**
@@ -82,8 +85,8 @@ interface MobileServerFeedTrade {
82
85
  /** Order digest this row is keyed by; the stable id clients use to reconcile live pagination. */
83
86
  order_digest: Hex;
84
87
  subaccount: Hex;
85
- username: string;
86
- display_name: string;
88
+ username: string | null;
89
+ display_name: string | null;
87
90
  /** Reserved for a future avatar source; `null` until one is implemented. */
88
91
  avatar_url: string | null;
89
92
  product_id: number;
@@ -120,8 +123,8 @@ interface MobileServerNotificationCategoryPreference {
120
123
  scopes: MobileServerNotificationPreferenceScope[];
121
124
  }
122
125
  /**
123
- * Server-side notification preferences shape (snake_case), used in both the `update_preferences` execute and
124
- * the `notification_preferences` query response.
126
+ * Server-side notification preferences shape (snake_case), used in both the `update_preferences` public
127
+ * execute and the `notification_preferences` public query response.
125
128
  */
126
129
  interface MobileServerNotificationPreferences {
127
130
  /** Only `1` is accepted by the backend for the MVP. */
@@ -140,4 +143,4 @@ interface MobileServerRegisteredDevice {
140
143
  }
141
144
  //#endregion
142
145
  export { MobileServerRegisteredDevice as _, MobileFeedTradePosition as a, MobileNotificationCategory as c, MobileServerFeedTrade as d, MobileServerIdentity as f, MobileServerProfile as g, MobileServerNotificationPreferences as h, MobileFeedMarginMode as i, MobileNotificationPlatform as l, MobileServerNotificationPreferenceScope as m, MOBILE_FEED_TRADE_POSITION_DIRECTIONS as n, MobileFeedTradePositionDirection as o, MobileServerNotificationCategoryPreference as p, MOBILE_FEED_TRADE_POSITION_EFFECTS as r, MobileFeedTradePositionEffect as s, MOBILE_FEED_MARGIN_MODES as t, MobileServerFeedMargin as u };
143
- //# sourceMappingURL=serverModelTypes-CPZUvVil.d.cts.map
146
+ //# sourceMappingURL=serverModelTypes-BYQcsRrx.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serverModelTypes-BYQcsRrx.d.cts","names":[],"sources":["../src/types/src/types/serverModelTypes.ts"],"mappings":";;;;;;AAMA;KAAY,0BAAA;;;AAA0B;KAK1B,0BAAA;;;;AAA0B;UAYrB,mBAAA;EACf,UAAA,EAAY,GAAG;EACf,QAAA;EACA,YAAA;EACA,YAAA;AAAA;;;;;UAOe,oBAAA;EACf,UAAA,EAAY,GAAG;EACf,QAAA;EACA,YAAA;EACA,YAAA;AAAA;;;;;;KAQU,gCAAA,GAAmC,WAAW;AAA1D;;;;AAAA,cAMa,qCAAA;AAAb;;;;AAAA,cASa,kCAAA;AAAb;;;AAAA,KAWY,6BAAA,WACF,kCAAkC;AANlC;AAKV;;;AALU,UAYO,uBAAA;EACf,SAAA,EAAW,gCAAA;EACX,MAAA,EAAQ,6BAA6B;AAAA;;;;;cAO1B,wBAAA;;;AAP0B;KAY3B,oBAAA,WAA+B,wBAAwB;;;;AALG;AAKtE;UAOiB,sBAAA;EACf,IAAA,EAAM,oBAAoB;EAC1B,kBAAA;AAAA;AAFF;;;;;AAAA,UAUiB,qBAAA;EARf;EAUA,YAAA,EAAc,GAAA;EACd,UAAA,EAAY,GAAA;EACZ,QAAA;EACA,YAAA;;EAEA,UAAA;EACA,UAAA;EAOQ;EALR,QAAA;EAMiC;EAJjC,QAAA;EAVA;EAYA,aAAA;EACA,MAAA,EAAQ,sBAAA;EACR,QAAA,EAAU,uBAAA;EAZV;EAcA,YAAA;EAXA;EAaA,YAAA;AAAA;;;;;KAOU,uCAAA;EACN,IAAA;EAAoB,UAAA,EAAY,GAAG;AAAA;EACnC,IAAA;EAAiB,UAAA;AAAA;;;;UAKN,0CAAA;EACf,QAAA,EAAU,0BAAA;EACV,OAAA;EACA,MAAA,EAAQ,uCAAuC;AAAA;;AARhB;AAKjC;;UAUiB,mCAAA;EAPgC;EAS/C,cAAA;EACA,UAAA,EAAY,0CAA0C;AAAA;;;;UAMvC,4BAAA;EACf,QAAA,EAAU,0BAA0B;EACpC,MAAA;EACA,WAAA;EACA,wBAAA;EACA,YAAA;AAAA"}
@@ -11,20 +11,23 @@ type MobileNotificationPlatform = 'ios' | 'android';
11
11
  */
12
12
  type MobileNotificationCategory = 'order_fill' | 'order_update' | 'liquidation' | 'funding' | 'product_listing' | 'announcement';
13
13
  /**
14
- * Server-side public profile shape (snake_case).
14
+ * Server-side public profile shape (snake_case). Name fields are `null` until the subaccount claims a
15
+ * username.
15
16
  */
16
17
  interface MobileServerProfile {
17
18
  subaccount: Hex;
18
- username: string;
19
- display_name: string;
19
+ username: string | null;
20
+ display_name: string | null;
21
+ private_mode: boolean;
20
22
  }
21
23
  /**
22
- * Server-side identity shape (snake_case) returned by the signed `self_identity` query.
24
+ * Server-side identity shape (snake_case) returned by the signed `self_identity` query. Name fields are
25
+ * `null` until the subaccount claims a username.
23
26
  */
24
27
  interface MobileServerIdentity {
25
28
  subaccount: Hex;
26
- username: string;
27
- display_name: string;
29
+ username: string | null;
30
+ display_name: string | null;
28
31
  private_mode: boolean;
29
32
  }
30
33
  /**
@@ -82,8 +85,8 @@ interface MobileServerFeedTrade {
82
85
  /** Order digest this row is keyed by; the stable id clients use to reconcile live pagination. */
83
86
  order_digest: Hex;
84
87
  subaccount: Hex;
85
- username: string;
86
- display_name: string;
88
+ username: string | null;
89
+ display_name: string | null;
87
90
  /** Reserved for a future avatar source; `null` until one is implemented. */
88
91
  avatar_url: string | null;
89
92
  product_id: number;
@@ -120,8 +123,8 @@ interface MobileServerNotificationCategoryPreference {
120
123
  scopes: MobileServerNotificationPreferenceScope[];
121
124
  }
122
125
  /**
123
- * Server-side notification preferences shape (snake_case), used in both the `update_preferences` execute and
124
- * the `notification_preferences` query response.
126
+ * Server-side notification preferences shape (snake_case), used in both the `update_preferences` public
127
+ * execute and the `notification_preferences` public query response.
125
128
  */
126
129
  interface MobileServerNotificationPreferences {
127
130
  /** Only `1` is accepted by the backend for the MVP. */
@@ -140,4 +143,4 @@ interface MobileServerRegisteredDevice {
140
143
  }
141
144
  //#endregion
142
145
  export { MobileServerRegisteredDevice as _, MobileFeedTradePosition as a, MobileNotificationCategory as c, MobileServerFeedTrade as d, MobileServerIdentity as f, MobileServerProfile as g, MobileServerNotificationPreferences as h, MobileFeedMarginMode as i, MobileNotificationPlatform as l, MobileServerNotificationPreferenceScope as m, MOBILE_FEED_TRADE_POSITION_DIRECTIONS as n, MobileFeedTradePositionDirection as o, MobileServerNotificationCategoryPreference as p, MOBILE_FEED_TRADE_POSITION_EFFECTS as r, MobileFeedTradePositionEffect as s, MOBILE_FEED_MARGIN_MODES as t, MobileServerFeedMargin as u };
143
- //# sourceMappingURL=serverModelTypes-CqnqHY5F.d.ts.map
146
+ //# sourceMappingURL=serverModelTypes-DvPs5qs3.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serverModelTypes-DvPs5qs3.d.ts","names":[],"sources":["../src/types/src/types/serverModelTypes.ts"],"mappings":";;;;;;AAMA;KAAY,0BAAA;;;AAA0B;KAK1B,0BAAA;;;;AAA0B;UAYrB,mBAAA;EACf,UAAA,EAAY,GAAG;EACf,QAAA;EACA,YAAA;EACA,YAAA;AAAA;;;;;UAOe,oBAAA;EACf,UAAA,EAAY,GAAG;EACf,QAAA;EACA,YAAA;EACA,YAAA;AAAA;;;;;;KAQU,gCAAA,GAAmC,WAAW;AAA1D;;;;AAAA,cAMa,qCAAA;AAAb;;;;AAAA,cASa,kCAAA;AAAb;;;AAAA,KAWY,6BAAA,WACF,kCAAkC;AANlC;AAKV;;;AALU,UAYO,uBAAA;EACf,SAAA,EAAW,gCAAA;EACX,MAAA,EAAQ,6BAA6B;AAAA;;;;;cAO1B,wBAAA;;;AAP0B;KAY3B,oBAAA,WAA+B,wBAAwB;;;;AALG;AAKtE;UAOiB,sBAAA;EACf,IAAA,EAAM,oBAAoB;EAC1B,kBAAA;AAAA;AAFF;;;;;AAAA,UAUiB,qBAAA;EARf;EAUA,YAAA,EAAc,GAAA;EACd,UAAA,EAAY,GAAA;EACZ,QAAA;EACA,YAAA;;EAEA,UAAA;EACA,UAAA;EAOQ;EALR,QAAA;EAMiC;EAJjC,QAAA;EAVA;EAYA,aAAA;EACA,MAAA,EAAQ,sBAAA;EACR,QAAA,EAAU,uBAAA;EAZV;EAcA,YAAA;EAXA;EAaA,YAAA;AAAA;;;;;KAOU,uCAAA;EACN,IAAA;EAAoB,UAAA,EAAY,GAAG;AAAA;EACnC,IAAA;EAAiB,UAAA;AAAA;;;;UAKN,0CAAA;EACf,QAAA,EAAU,0BAAA;EACV,OAAA;EACA,MAAA,EAAQ,uCAAuC;AAAA;;AARhB;AAKjC;;UAUiB,mCAAA;EAPgC;EAS/C,cAAA;EACA,UAAA,EAAY,0CAA0C;AAAA;;;;UAMvC,4BAAA;EACf,QAAA,EAAU,0BAA0B;EACpC,MAAA;EACA,WAAA;EACA,wBAAA;EACA,YAAA;AAAA"}
@@ -1,6 +1,6 @@
1
- import { _ as MobileServerRegisteredDevice, d as MobileServerFeedTrade, f as MobileServerIdentity, g as MobileServerProfile, h as MobileServerNotificationPreferences } from "./serverModelTypes-CqnqHY5F.js";
2
- import { n as MobileServerPublicQueryRequestByType, o as MobileServerSignedQueryRequestType, r as MobileServerPublicQueryRequestType } from "./serverRequestTypes-DQDy3K9O.js";
3
- import { n as MobileServerSuccessResponse } from "./serverBaseTypes-m3zEi0X9.js";
1
+ import { _ as MobileServerRegisteredDevice, d as MobileServerFeedTrade, f as MobileServerIdentity, g as MobileServerProfile, h as MobileServerNotificationPreferences } from "./serverModelTypes-BYQcsRrx.cjs";
2
+ import { a as MobileServerPublicQueryRequestType, c as MobileServerSignedQueryRequestType, i as MobileServerPublicQueryRequestByType } from "./serverRequestTypes-CHDk6JwE.cjs";
3
+ import { n as MobileServerSuccessResponse } from "./serverBaseTypes-DSRgU2Fb.cjs";
4
4
 
5
5
  //#region src/types/serverQueryTypes.d.ts
6
6
  /**
@@ -35,14 +35,15 @@ interface MobileServerFeedResponse {
35
35
  next_cursor: string | null;
36
36
  }
37
37
  /**
38
- * Payload of the signed `self_identity` query success response. A `null` identity means the subaccount has
39
- * not claimed a username yet — this is normal data, not an error.
38
+ * Payload of the signed `self_identity` query success response. Every non-isolated subaccount has an implicit
39
+ * identity, so the backend returns one for any valid sender, with `null` name fields when no username has
40
+ * been claimed; `identity` stays nullable to match the backend's `Option`.
40
41
  */
41
42
  interface MobileServerSelfIdentityResponse {
42
43
  identity: MobileServerIdentity | null;
43
44
  }
44
45
  /**
45
- * Payload of the signed `notification_preferences` query success response.
46
+ * Payload of the `notification_preferences` public query success response.
46
47
  */
47
48
  interface MobileServerNotificationPreferencesResponse {
48
49
  preferences: MobileServerNotificationPreferences;
@@ -63,6 +64,7 @@ interface MobileServerPublicQueryResponseByType {
63
64
  username_availability: MobileServerUsernameAvailabilityResponse;
64
65
  profile: MobileServerProfileResponse;
65
66
  feed: MobileServerFeedResponse;
67
+ notification_preferences: MobileServerNotificationPreferencesResponse;
66
68
  }
67
69
  /**
68
70
  * Success payloads for each signed `query`, keyed by request `type`. Counterpart to
@@ -72,7 +74,6 @@ interface MobileServerPublicQueryResponseByType {
72
74
  */
73
75
  interface MobileServerSignedQueryResponseByType {
74
76
  self_identity: MobileServerSelfIdentityResponse;
75
- notification_preferences: MobileServerNotificationPreferencesResponse;
76
77
  registered_devices: MobileServerRegisteredDevicesResponse;
77
78
  }
78
79
  /**
@@ -88,4 +89,4 @@ type MobileServerPublicQuerySuccessResponse<T extends MobileServerPublicQueryReq
88
89
  type MobileServerSignedQuerySuccessResponse<T extends MobileServerSignedQueryRequestType = MobileServerSignedQueryRequestType> = MobileServerSuccessResponse & MobileServerSignedQueryResponseByType[T];
89
90
  //#endregion
90
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, MobileServerRegisteredDevicesResponse as s, MobileServerFeedResponse as t, MobileServerSignedQuerySuccessResponse as u };
91
- //# sourceMappingURL=serverQueryTypes-CJLWWZBs.d.ts.map
92
+ //# sourceMappingURL=serverQueryTypes-9H6P1vJ5.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serverQueryTypes-9H6P1vJ5.d.cts","names":[],"sources":["../src/types/src/types/serverQueryTypes.ts"],"mappings":";;;;;;;AAiBA;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;UAaf,qCAAA;EACf,OAAA,EAAS,4BAA4B;AAAA;;AAPW;AAMlD;;;;UAUiB,qCAAA;EACf,qBAAA,EAAuB,wCAAA;EACvB,OAAA,EAAS,2BAAA;EACT,IAAA,EAAM,wBAAA;EACN,wBAAA,EAA0B,2CAAA;AAAA;;;;;;;UASX,qCAAA;EACf,aAAA,EAAe,gCAAA;EACf,kBAAA,EAAoB,qCAAqC;AAAA;;;;AAXY;AASvE;KAUY,sCAAA,WACA,kCAAA,GACR,kCAAA,IACA,2BAAA,GAA8B,qCAAA,CAAsC,CAAA;;;;;KAM5D,sCAAA,WACA,kCAAA,GACR,kCAAA,IACA,2BAAA,GAA8B,qCAAA,CAAsC,CAAA"}
@@ -1,6 +1,6 @@
1
- import { _ as MobileServerRegisteredDevice, d as MobileServerFeedTrade, f as MobileServerIdentity, g as MobileServerProfile, h as MobileServerNotificationPreferences } from "./serverModelTypes-CPZUvVil.cjs";
2
- import { n as MobileServerPublicQueryRequestByType, o as MobileServerSignedQueryRequestType, r as MobileServerPublicQueryRequestType } from "./serverRequestTypes-DnU_FfMI.cjs";
3
- import { n as MobileServerSuccessResponse } from "./serverBaseTypes-A16onlPN.cjs";
1
+ import { _ as MobileServerRegisteredDevice, d as MobileServerFeedTrade, f as MobileServerIdentity, g as MobileServerProfile, h as MobileServerNotificationPreferences } from "./serverModelTypes-DvPs5qs3.js";
2
+ import { a as MobileServerPublicQueryRequestType, c as MobileServerSignedQueryRequestType, i as MobileServerPublicQueryRequestByType } from "./serverRequestTypes-DYTLrCpz.js";
3
+ import { n as MobileServerSuccessResponse } from "./serverBaseTypes-CzRgwUvA.js";
4
4
 
5
5
  //#region src/types/serverQueryTypes.d.ts
6
6
  /**
@@ -35,14 +35,15 @@ interface MobileServerFeedResponse {
35
35
  next_cursor: string | null;
36
36
  }
37
37
  /**
38
- * Payload of the signed `self_identity` query success response. A `null` identity means the subaccount has
39
- * not claimed a username yet — this is normal data, not an error.
38
+ * Payload of the signed `self_identity` query success response. Every non-isolated subaccount has an implicit
39
+ * identity, so the backend returns one for any valid sender, with `null` name fields when no username has
40
+ * been claimed; `identity` stays nullable to match the backend's `Option`.
40
41
  */
41
42
  interface MobileServerSelfIdentityResponse {
42
43
  identity: MobileServerIdentity | null;
43
44
  }
44
45
  /**
45
- * Payload of the signed `notification_preferences` query success response.
46
+ * Payload of the `notification_preferences` public query success response.
46
47
  */
47
48
  interface MobileServerNotificationPreferencesResponse {
48
49
  preferences: MobileServerNotificationPreferences;
@@ -63,6 +64,7 @@ interface MobileServerPublicQueryResponseByType {
63
64
  username_availability: MobileServerUsernameAvailabilityResponse;
64
65
  profile: MobileServerProfileResponse;
65
66
  feed: MobileServerFeedResponse;
67
+ notification_preferences: MobileServerNotificationPreferencesResponse;
66
68
  }
67
69
  /**
68
70
  * Success payloads for each signed `query`, keyed by request `type`. Counterpart to
@@ -72,7 +74,6 @@ interface MobileServerPublicQueryResponseByType {
72
74
  */
73
75
  interface MobileServerSignedQueryResponseByType {
74
76
  self_identity: MobileServerSelfIdentityResponse;
75
- notification_preferences: MobileServerNotificationPreferencesResponse;
76
77
  registered_devices: MobileServerRegisteredDevicesResponse;
77
78
  }
78
79
  /**
@@ -88,4 +89,4 @@ type MobileServerPublicQuerySuccessResponse<T extends MobileServerPublicQueryReq
88
89
  type MobileServerSignedQuerySuccessResponse<T extends MobileServerSignedQueryRequestType = MobileServerSignedQueryRequestType> = MobileServerSuccessResponse & MobileServerSignedQueryResponseByType[T];
89
90
  //#endregion
90
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, MobileServerRegisteredDevicesResponse as s, MobileServerFeedResponse as t, MobileServerSignedQuerySuccessResponse as u };
91
- //# sourceMappingURL=serverQueryTypes-C_cCx0Ac.d.cts.map
92
+ //# sourceMappingURL=serverQueryTypes-Cbjx0bIj.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serverQueryTypes-Cbjx0bIj.d.ts","names":[],"sources":["../src/types/src/types/serverQueryTypes.ts"],"mappings":";;;;;;;AAiBA;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;UAaf,qCAAA;EACf,OAAA,EAAS,4BAA4B;AAAA;;AAPW;AAMlD;;;;UAUiB,qCAAA;EACf,qBAAA,EAAuB,wCAAA;EACvB,OAAA,EAAS,2BAAA;EACT,IAAA,EAAM,wBAAA;EACN,wBAAA,EAA0B,2CAAA;AAAA;;;;;;;UASX,qCAAA;EACf,aAAA,EAAe,gCAAA;EACf,kBAAA,EAAoB,qCAAqC;AAAA;;;;AAXY;AASvE;KAUY,sCAAA,WACA,kCAAA,GACR,kCAAA,IACA,2BAAA,GAA8B,qCAAA,CAAsC,CAAA;;;;;KAM5D,sCAAA,WACA,kCAAA,GACR,kCAAA,IACA,2BAAA,GAA8B,qCAAA,CAAsC,CAAA"}
@@ -1,4 +1,6 @@
1
- import { n as MobileSignedInner } from "./types-UHjZR-js.js";
1
+ import { h as MobileServerNotificationPreferences } from "./serverModelTypes-BYQcsRrx.cjs";
2
+ import { n as MobileSignedInner } from "./types-bNB98pYk.cjs";
3
+ import { Hex } from "viem";
2
4
 
3
5
  //#region src/types/serverRequestTypes.d.ts
4
6
  /**
@@ -9,7 +11,7 @@ interface MobileServerPublicQueryRequestByType {
9
11
  display_name: string;
10
12
  };
11
13
  profile: {
12
- username: string;
14
+ subaccount: Hex;
13
15
  };
14
16
  feed: {
15
17
  /**
@@ -24,11 +26,33 @@ interface MobileServerPublicQueryRequestByType {
24
26
  */
25
27
  cursor?: string;
26
28
  };
29
+ notification_preferences: {
30
+ expo_token: string;
31
+ };
27
32
  }
28
33
  /**
29
34
  * Discriminant `type` values for unsigned `public_query` requests.
30
35
  */
31
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;
32
56
  /**
33
57
  * Params for each signed `query`, keyed by request `type`. These queries identify the caller through the
34
58
  * signed envelope (`sender`) and take no further params, so every entry is empty — the signed counterpart to
@@ -38,7 +62,6 @@ type MobileServerPublicQueryRequestType = keyof MobileServerPublicQueryRequestBy
38
62
  */
39
63
  interface MobileServerSignedQueryRequestByType {
40
64
  self_identity: Record<string, never>;
41
- notification_preferences: Record<string, never>;
42
65
  registered_devices: Record<string, never>;
43
66
  }
44
67
  /**
@@ -53,10 +76,10 @@ type MobileServerSignedQueryRequestType = keyof MobileServerSignedQueryRequestBy
53
76
  type MobileServerExecuteRequestType = Exclude<MobileSignedInner['type'], MobileServerSignedQueryRequestType>;
54
77
  /**
55
78
  * Wire `request_type` the backend echoes on failure envelopes, prefixed by the route that produced it:
56
- * `public_query_*` for unsigned queries, `query_*` for signed queries, and `execute_*` for signed writes
57
- * (e.g. `execute_claim_username`).
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`).
58
81
  */
59
- type MobileServerRequestType = `public_query_${MobileServerPublicQueryRequestType}` | `query_${MobileServerSignedQueryRequestType}` | `execute_${MobileServerExecuteRequestType}`;
82
+ type MobileServerRequestType = `public_query_${MobileServerPublicQueryRequestType}` | `public_execute_${MobileServerPublicExecuteRequestType}` | `query_${MobileServerSignedQueryRequestType}` | `execute_${MobileServerExecuteRequestType}`;
60
83
  //#endregion
61
- export { MobileServerSignedQueryRequestByType as a, MobileServerRequestType as i, MobileServerPublicQueryRequestByType as n, MobileServerSignedQueryRequestType as o, MobileServerPublicQueryRequestType as r, MobileServerExecuteRequestType as t };
62
- //# sourceMappingURL=serverRequestTypes-DQDy3K9O.d.ts.map
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-CHDk6JwE.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serverRequestTypes-CHDk6JwE.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;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,6 @@
1
- import { n as MobileSignedInner } from "./types-CzOeSYnW.cjs";
1
+ import { h as MobileServerNotificationPreferences } from "./serverModelTypes-DvPs5qs3.js";
2
+ import { n as MobileSignedInner } from "./types-CQE3HD2V.js";
3
+ import { Hex } from "viem";
2
4
 
3
5
  //#region src/types/serverRequestTypes.d.ts
4
6
  /**
@@ -9,7 +11,7 @@ interface MobileServerPublicQueryRequestByType {
9
11
  display_name: string;
10
12
  };
11
13
  profile: {
12
- username: string;
14
+ subaccount: Hex;
13
15
  };
14
16
  feed: {
15
17
  /**
@@ -24,11 +26,33 @@ interface MobileServerPublicQueryRequestByType {
24
26
  */
25
27
  cursor?: string;
26
28
  };
29
+ notification_preferences: {
30
+ expo_token: string;
31
+ };
27
32
  }
28
33
  /**
29
34
  * Discriminant `type` values for unsigned `public_query` requests.
30
35
  */
31
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;
32
56
  /**
33
57
  * Params for each signed `query`, keyed by request `type`. These queries identify the caller through the
34
58
  * signed envelope (`sender`) and take no further params, so every entry is empty — the signed counterpart to
@@ -38,7 +62,6 @@ type MobileServerPublicQueryRequestType = keyof MobileServerPublicQueryRequestBy
38
62
  */
39
63
  interface MobileServerSignedQueryRequestByType {
40
64
  self_identity: Record<string, never>;
41
- notification_preferences: Record<string, never>;
42
65
  registered_devices: Record<string, never>;
43
66
  }
44
67
  /**
@@ -53,10 +76,10 @@ type MobileServerSignedQueryRequestType = keyof MobileServerSignedQueryRequestBy
53
76
  type MobileServerExecuteRequestType = Exclude<MobileSignedInner['type'], MobileServerSignedQueryRequestType>;
54
77
  /**
55
78
  * Wire `request_type` the backend echoes on failure envelopes, prefixed by the route that produced it:
56
- * `public_query_*` for unsigned queries, `query_*` for signed queries, and `execute_*` for signed writes
57
- * (e.g. `execute_claim_username`).
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`).
58
81
  */
59
- type MobileServerRequestType = `public_query_${MobileServerPublicQueryRequestType}` | `query_${MobileServerSignedQueryRequestType}` | `execute_${MobileServerExecuteRequestType}`;
82
+ type MobileServerRequestType = `public_query_${MobileServerPublicQueryRequestType}` | `public_execute_${MobileServerPublicExecuteRequestType}` | `query_${MobileServerSignedQueryRequestType}` | `execute_${MobileServerExecuteRequestType}`;
60
83
  //#endregion
61
- export { MobileServerSignedQueryRequestByType as a, MobileServerRequestType as i, MobileServerPublicQueryRequestByType as n, MobileServerSignedQueryRequestType as o, MobileServerPublicQueryRequestType as r, MobileServerExecuteRequestType as t };
62
- //# sourceMappingURL=serverRequestTypes-DnU_FfMI.d.cts.map
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-A16onlPN.cjs";
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-BlvfJjsa.d.cts.map
16
+ //# sourceMappingURL=serverResponseGuards-DRMHmfXh.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"serverResponseGuards-BlvfJjsa.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
+ {"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-m3zEi0X9.js";
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-gpHH8SHk.d.ts.map
16
+ //# sourceMappingURL=serverResponseGuards-DpbZvJfL.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"serverResponseGuards-gpHH8SHk.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
+ {"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-CfDtaEeL.cjs");
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-EEnDgZF8.cjs";
1
+ import { t as buildSignedMobileRequest } from "../buildSignedMobileRequest-CBMt97aY.cjs";
2
2
  export { buildSignedMobileRequest };
@@ -1,2 +1,2 @@
1
- import { t as buildSignedMobileRequest } from "../buildSignedMobileRequest-B4KJ6T1y.js";
1
+ import { t as buildSignedMobileRequest } from "../buildSignedMobileRequest-qEC4gWaI.js";
2
2
  export { buildSignedMobileRequest };