@nadohq/mobile-client 0.64.0 → 0.66.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 (225) hide show
  1. package/README.md +124 -7
  2. package/dist/MobileClient-M4oC4lrX.cjs +1101 -0
  3. package/dist/MobileClient-M4oC4lrX.cjs.map +1 -0
  4. package/dist/MobileClient.cjs +1 -1
  5. package/dist/MobileClient.d.cts +306 -10
  6. package/dist/MobileClient.d.cts.map +1 -1
  7. package/dist/MobileClient.d.ts +306 -10
  8. package/dist/MobileClient.d.ts.map +1 -1
  9. package/dist/MobileClient.js +544 -5
  10. package/dist/MobileClient.js.map +1 -1
  11. package/dist/{MobileServerFailureError-Dd3c6P_Z.d.ts → MobileServerFailureError-C9iqNsxI.d.ts} +2 -3
  12. package/dist/MobileServerFailureError-C9iqNsxI.d.ts.map +1 -0
  13. package/dist/{MobileServerFailureError-Bpa_WA9f.d.cts → MobileServerFailureError-MtS2reel.d.cts} +2 -3
  14. package/dist/MobileServerFailureError-MtS2reel.d.cts.map +1 -0
  15. package/dist/MobileUnsupportedFeedItemError-BsZvW8i2.d.cts +15 -0
  16. package/dist/MobileUnsupportedFeedItemError-BsZvW8i2.d.cts.map +1 -0
  17. package/dist/MobileUnsupportedFeedItemError-BsZvW8i2.d.ts +15 -0
  18. package/dist/MobileUnsupportedFeedItemError-BsZvW8i2.d.ts.map +1 -0
  19. package/dist/MobileUnsupportedNotificationRouteError-DpiNBvvY.d.cts +15 -0
  20. package/dist/MobileUnsupportedNotificationRouteError-DpiNBvvY.d.cts.map +1 -0
  21. package/dist/MobileUnsupportedNotificationRouteError-DpiNBvvY.d.ts +15 -0
  22. package/dist/MobileUnsupportedNotificationRouteError-DpiNBvvY.d.ts.map +1 -0
  23. package/dist/{buildSignedMobileRequest-Cb1T74xV.d.ts → buildSignedMobileRequest-BR-KJhIF.d.ts} +2 -2
  24. package/dist/{buildSignedMobileRequest-Cb1T74xV.d.ts.map → buildSignedMobileRequest-BR-KJhIF.d.ts.map} +1 -1
  25. package/dist/{buildSignedMobileRequest-NHbMAPzd.d.cts → buildSignedMobileRequest-DyKCK34Y.d.cts} +2 -2
  26. package/dist/{buildSignedMobileRequest-NHbMAPzd.d.cts.map → buildSignedMobileRequest-DyKCK34Y.d.cts.map} +1 -1
  27. package/dist/{canonicalize-BBYGh17w.d.ts → canonicalize-Bv6UIAbR.d.ts} +2 -2
  28. package/dist/canonicalize-Bv6UIAbR.d.ts.map +1 -0
  29. package/dist/{canonicalize-BF_SiNvO.d.cts → canonicalize-CWh3XZzj.d.cts} +2 -2
  30. package/dist/canonicalize-CWh3XZzj.d.cts.map +1 -0
  31. package/dist/clientTypes-BUn5_OzK.d.ts +1665 -0
  32. package/dist/clientTypes-BUn5_OzK.d.ts.map +1 -0
  33. package/dist/clientTypes-DOpUcu80.d.cts +1665 -0
  34. package/dist/clientTypes-DOpUcu80.d.cts.map +1 -0
  35. package/dist/dataMappers.cjs +691 -14
  36. package/dist/dataMappers.cjs.map +1 -1
  37. package/dist/dataMappers.d.cts +254 -8
  38. package/dist/dataMappers.d.cts.map +1 -1
  39. package/dist/dataMappers.d.ts +254 -8
  40. package/dist/dataMappers.d.ts.map +1 -1
  41. package/dist/dataMappers.js +651 -15
  42. package/dist/dataMappers.js.map +1 -1
  43. package/dist/{eip712MethodByType-BSx11xG-.d.cts → eip712MethodByType-CJ6BoayT.d.cts} +2 -2
  44. package/dist/eip712MethodByType-CJ6BoayT.d.cts.map +1 -0
  45. package/dist/{eip712MethodByType-DkiAjCLs.d.ts → eip712MethodByType-Dx4mvgni.d.ts} +2 -2
  46. package/dist/eip712MethodByType-Dx4mvgni.d.ts.map +1 -0
  47. package/dist/{feed-DTJlsg8W.d.ts → feed-DErOLaoY.d.cts} +4 -2
  48. package/dist/feed-DErOLaoY.d.cts.map +1 -0
  49. package/dist/{feed-DTJlsg8W.d.cts → feed-DErOLaoY.d.ts} +4 -2
  50. package/dist/feed-DErOLaoY.d.ts.map +1 -0
  51. package/dist/index.cjs +9 -2
  52. package/dist/index.d.cts +15 -16
  53. package/dist/index.d.ts +15 -16
  54. package/dist/index.js +5 -3
  55. package/dist/{mobileErrorCodes-3LtreeZM.d.ts → mobileErrorCodes-vD6rbFuF.d.cts} +25 -6
  56. package/dist/mobileErrorCodes-vD6rbFuF.d.cts.map +1 -0
  57. package/dist/{mobileErrorCodes-3LtreeZM.d.cts → mobileErrorCodes-vD6rbFuF.d.ts} +25 -6
  58. package/dist/mobileErrorCodes-vD6rbFuF.d.ts.map +1 -0
  59. package/dist/{payloadHash-BOWGjqdb.d.cts → payloadHash-CdkF2Ocr.d.cts} +2 -2
  60. package/dist/payloadHash-CdkF2Ocr.d.cts.map +1 -0
  61. package/dist/{payloadHash-Bzf4CtjV.d.ts → payloadHash-HD29K77M.d.ts} +2 -2
  62. package/dist/payloadHash-HD29K77M.d.ts.map +1 -0
  63. package/dist/serverExecuteTypes-5JyyIXRK.d.ts +178 -0
  64. package/dist/serverExecuteTypes-5JyyIXRK.d.ts.map +1 -0
  65. package/dist/serverExecuteTypes-CHrQ9Rtq.d.cts +178 -0
  66. package/dist/serverExecuteTypes-CHrQ9Rtq.d.cts.map +1 -0
  67. package/dist/serverModelTypes-CGUZCi0y.d.cts +938 -0
  68. package/dist/serverModelTypes-CGUZCi0y.d.cts.map +1 -0
  69. package/dist/serverModelTypes-CGUZCi0y.d.ts +938 -0
  70. package/dist/serverModelTypes-CGUZCi0y.d.ts.map +1 -0
  71. package/dist/{serverResponseGuards-BU1Xv_tG.d.ts → serverResponseGuards-Bvw8ltYJ.d.ts} +2 -2
  72. package/dist/{serverResponseGuards-BU1Xv_tG.d.ts.map → serverResponseGuards-Bvw8ltYJ.d.ts.map} +1 -1
  73. package/dist/{serverResponseGuards-Dkdok0Sm.d.cts → serverResponseGuards-i1njcYKN.d.cts} +2 -2
  74. package/dist/{serverResponseGuards-Dkdok0Sm.d.cts.map → serverResponseGuards-i1njcYKN.d.cts.map} +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 +86 -0
  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 +86 -0
  82. package/dist/signing/canonicalize.js.map +1 -1
  83. package/dist/signing/eip712MethodByType.cjs +12 -0
  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 +12 -0
  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/payloadHash.js +1 -1
  95. package/dist/signing/types.d.cts +1 -1
  96. package/dist/signing/types.d.ts +1 -1
  97. package/dist/types/MobileServerFailureError.d.cts +1 -1
  98. package/dist/types/MobileServerFailureError.d.ts +1 -1
  99. package/dist/types/MobileUnsupportedFeedItemError.cjs +19 -0
  100. package/dist/types/MobileUnsupportedFeedItemError.cjs.map +1 -0
  101. package/dist/types/MobileUnsupportedFeedItemError.d.cts +2 -0
  102. package/dist/types/MobileUnsupportedFeedItemError.d.ts +2 -0
  103. package/dist/types/MobileUnsupportedFeedItemError.js +18 -0
  104. package/dist/types/MobileUnsupportedFeedItemError.js.map +1 -0
  105. package/dist/types/MobileUnsupportedNotificationRouteError.cjs +19 -0
  106. package/dist/types/MobileUnsupportedNotificationRouteError.cjs.map +1 -0
  107. package/dist/types/MobileUnsupportedNotificationRouteError.d.cts +2 -0
  108. package/dist/types/MobileUnsupportedNotificationRouteError.d.ts +2 -0
  109. package/dist/types/MobileUnsupportedNotificationRouteError.js +18 -0
  110. package/dist/types/MobileUnsupportedNotificationRouteError.js.map +1 -0
  111. package/dist/types/clientTypes.d.cts +2 -2
  112. package/dist/types/clientTypes.d.ts +2 -2
  113. package/dist/types/index.cjs +6 -0
  114. package/dist/types/index.d.cts +9 -9
  115. package/dist/types/index.d.ts +9 -9
  116. package/dist/types/index.js +4 -2
  117. package/dist/types/mobileErrorCodes.cjs +39 -1
  118. package/dist/types/mobileErrorCodes.cjs.map +1 -1
  119. package/dist/types/mobileErrorCodes.d.cts +1 -1
  120. package/dist/types/mobileErrorCodes.d.ts +1 -1
  121. package/dist/types/mobileErrorCodes.js +39 -1
  122. package/dist/types/mobileErrorCodes.js.map +1 -1
  123. package/dist/types/serverBaseTypes.d.cts +1 -1
  124. package/dist/types/serverBaseTypes.d.ts +1 -1
  125. package/dist/types/serverExecuteTypes.d.cts +2 -2
  126. package/dist/types/serverExecuteTypes.d.ts +2 -2
  127. package/dist/types/serverModelTypes.cjs +15 -0
  128. package/dist/types/serverModelTypes.cjs.map +1 -1
  129. package/dist/types/serverModelTypes.d.cts +2 -2
  130. package/dist/types/serverModelTypes.d.ts +2 -2
  131. package/dist/types/serverModelTypes.js +14 -1
  132. package/dist/types/serverModelTypes.js.map +1 -1
  133. package/dist/types/serverQueryTypes.d.cts +2 -2
  134. package/dist/types/serverQueryTypes.d.ts +2 -2
  135. package/dist/types/serverRequestTypes.d.cts +2 -2
  136. package/dist/types/serverRequestTypes.d.ts +2 -2
  137. package/dist/types-C9YE4EIt.d.cts +794 -0
  138. package/dist/types-C9YE4EIt.d.cts.map +1 -0
  139. package/dist/types-Cwy1y_9x.d.ts +794 -0
  140. package/dist/types-Cwy1y_9x.d.ts.map +1 -0
  141. package/dist/utils/buildMobileFeedImageMultipart.cjs +31 -0
  142. package/dist/utils/buildMobileFeedImageMultipart.cjs.map +1 -0
  143. package/dist/utils/buildMobileFeedImageMultipart.d.cts +15 -0
  144. package/dist/utils/buildMobileFeedImageMultipart.d.cts.map +1 -0
  145. package/dist/utils/buildMobileFeedImageMultipart.d.ts +15 -0
  146. package/dist/utils/buildMobileFeedImageMultipart.d.ts.map +1 -0
  147. package/dist/utils/buildMobileFeedImageMultipart.js +30 -0
  148. package/dist/utils/buildMobileFeedImageMultipart.js.map +1 -0
  149. package/dist/utils/feed.cjs +3 -0
  150. package/dist/utils/feed.cjs.map +1 -1
  151. package/dist/utils/feed.d.cts +2 -2
  152. package/dist/utils/feed.d.ts +2 -2
  153. package/dist/utils/feed.js +3 -1
  154. package/dist/utils/feed.js.map +1 -1
  155. package/dist/utils/index.cjs +2 -1
  156. package/dist/utils/index.d.cts +3 -3
  157. package/dist/utils/index.d.ts +3 -3
  158. package/dist/utils/index.js +2 -2
  159. package/dist/utils/serverResponseGuards.d.cts +1 -1
  160. package/dist/utils/serverResponseGuards.d.ts +1 -1
  161. package/package.json +3 -3
  162. package/src/MobileClient.ts +789 -7
  163. package/src/dataMappers.test.ts +848 -0
  164. package/src/dataMappers.ts +924 -17
  165. package/src/feedImages.test.ts +309 -0
  166. package/src/notifications.test.ts +950 -0
  167. package/src/signing/canonicalize.ts +119 -0
  168. package/src/signing/eip712MethodByType.ts +15 -0
  169. package/src/signing/signing.test.ts +362 -0
  170. package/src/signing/types.ts +108 -13
  171. package/src/socialFeed.test.ts +38 -2
  172. package/src/types/MobileUnsupportedFeedItemError.ts +18 -0
  173. package/src/types/MobileUnsupportedNotificationRouteError.ts +16 -0
  174. package/src/types/clientTypes.ts +1012 -34
  175. package/src/types/index.ts +2 -0
  176. package/src/types/mobileErrorCodes.ts +38 -0
  177. package/src/types/serverExecuteTypes.ts +112 -3
  178. package/src/types/serverModelTypes.ts +581 -28
  179. package/src/types/serverQueryTypes.ts +212 -5
  180. package/src/types/serverRequestTypes.ts +213 -13
  181. package/src/utils/buildMobileFeedImageMultipart.test.ts +45 -0
  182. package/src/utils/buildMobileFeedImageMultipart.ts +36 -0
  183. package/src/utils/feed.ts +3 -0
  184. package/dist/MobileClient-aDxiM_Kf.cjs +0 -562
  185. package/dist/MobileClient-aDxiM_Kf.cjs.map +0 -1
  186. package/dist/MobileServerFailureError-Bpa_WA9f.d.cts.map +0 -1
  187. package/dist/MobileServerFailureError-Dd3c6P_Z.d.ts.map +0 -1
  188. package/dist/canonicalize-BBYGh17w.d.ts.map +0 -1
  189. package/dist/canonicalize-BF_SiNvO.d.cts.map +0 -1
  190. package/dist/clientTypes-BWFKo9oE.d.cts +0 -844
  191. package/dist/clientTypes-BWFKo9oE.d.cts.map +0 -1
  192. package/dist/clientTypes-DCTiUV0H.d.ts +0 -844
  193. package/dist/clientTypes-DCTiUV0H.d.ts.map +0 -1
  194. package/dist/eip712MethodByType-BSx11xG-.d.cts.map +0 -1
  195. package/dist/eip712MethodByType-DkiAjCLs.d.ts.map +0 -1
  196. package/dist/feed-DTJlsg8W.d.cts.map +0 -1
  197. package/dist/feed-DTJlsg8W.d.ts.map +0 -1
  198. package/dist/mobileErrorCodes-3LtreeZM.d.cts.map +0 -1
  199. package/dist/mobileErrorCodes-3LtreeZM.d.ts.map +0 -1
  200. package/dist/payloadHash-BOWGjqdb.d.cts.map +0 -1
  201. package/dist/payloadHash-Bzf4CtjV.d.ts.map +0 -1
  202. package/dist/serverBaseTypes-DWf3iGWy.d.ts +0 -25
  203. package/dist/serverBaseTypes-DWf3iGWy.d.ts.map +0 -1
  204. package/dist/serverBaseTypes-KREDe2M9.d.cts +0 -25
  205. package/dist/serverBaseTypes-KREDe2M9.d.cts.map +0 -1
  206. package/dist/serverExecuteTypes-DVRa6ifu.d.cts +0 -89
  207. package/dist/serverExecuteTypes-DVRa6ifu.d.cts.map +0 -1
  208. package/dist/serverExecuteTypes-DlYZCp1f.d.ts +0 -89
  209. package/dist/serverExecuteTypes-DlYZCp1f.d.ts.map +0 -1
  210. package/dist/serverModelTypes-DAqEyYtB.d.cts +0 -508
  211. package/dist/serverModelTypes-DAqEyYtB.d.cts.map +0 -1
  212. package/dist/serverModelTypes-DAqEyYtB.d.ts +0 -508
  213. package/dist/serverModelTypes-DAqEyYtB.d.ts.map +0 -1
  214. package/dist/serverQueryTypes-BFdwq0Z2.d.ts +0 -171
  215. package/dist/serverQueryTypes-BFdwq0Z2.d.ts.map +0 -1
  216. package/dist/serverQueryTypes-DNdMpmDr.d.cts +0 -171
  217. package/dist/serverQueryTypes-DNdMpmDr.d.cts.map +0 -1
  218. package/dist/serverRequestTypes-BNA7FCY6.d.ts +0 -200
  219. package/dist/serverRequestTypes-BNA7FCY6.d.ts.map +0 -1
  220. package/dist/serverRequestTypes-CxDRFKfv.d.cts +0 -200
  221. package/dist/serverRequestTypes-CxDRFKfv.d.cts.map +0 -1
  222. package/dist/types-BCr2G5gS.d.cts +0 -84
  223. package/dist/types-BCr2G5gS.d.cts.map +0 -1
  224. package/dist/types-C18k-9Vy.d.ts +0 -84
  225. package/dist/types-C18k-9Vy.d.ts.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"clientTypes-DCTiUV0H.d.ts","names":[],"sources":["../src/types/src/types/clientTypes.ts"],"mappings":";;;;;;;;AA+BA;UAAiB,kBAAA;;EAEf,EAAA;EAES;EAAT,SAAS;AAAA;;;;KAMC,qBAAA;EASN,kCANA,IAAA,YAQS;EANT,EAAA;AAAA;EAc6B,8CAV7B,IAAA,YAgBW;EAdX,SAAA;AAAA;;;;;AAgBY;UARD,kBAAA;EAmBoB;EAjBnC,SAAA;EAiBgE;EAfhE,SAAA;EAiBA;EAfA,OAAA,EAAS,MAAM;EAqBf;EAnBA,gBAAA;AAAA;;;AAsBmC;AAOrC;;;;;UAlBiB,mBAAA,SAA4B,qBAAqB;EAqBhE;EAnBA,GAAA;EACA,WAAA;EAsBS;AAAA;AAQX;;EAzBE,aAAA;EACA,cAAA;EA0BA;EAxBA,aAAA,GAAgB,mBAAA;AAAA;;;AA+BiB;AAMnC;UA9BiB,qBAAA;EACf,UAAA,EAAY,GAAG;EA8BgB;EA5B/B,QAAA;EA4BU;EA1BV,W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BT;EAzBV,WAAA;AAAA;;UAIe,0BAAA;EAwBL;EAtBV,SAAA,GAAY,oBAAoB;;EAEhC,eAAA;EAoB2E;EAlB3E,KAAA;EAqBoC;EAnBpC,SAAA;EAqBkB;EAnBlB,MAAA;AAAA;;UAIe,iCAAA,SACP,0BAAA,EAA4B,0BAAA;EAclB;EAZlB,cAAA,GAAiB,8BAAA;AAAA;;KAIP,yBAAA,GAA4B,iCAAiC;;KAG7D,6BAAA,GAAgC,iCAAiC;;KAGjE,0BAAA,GAA6B,iCAAA;EAQjB,2FANtB,MAAA,EAAQ,UAAU;AAAA;;KAIR,0BAAA,GAA6B,iCAAA;EAMD,wDAJtC,UAAA,EAAY,UAAU;AAAA;;KAIZ,yBAAA,GAA4B,0BAAA,GACtC,0BAA0B;EAMhB,sCAJR,SAAA;AAAA;;KAIQ,2BAAA,GAA8B,0BAAA,GACxC,0BAA0B;EAA1B,4BAEE,UAAA;AAAA;AAAU;AAAA,KAIF,uBAAA,GAA0B,0BAA0B;EAA7B,wBAEjC,MAAA,UAF8D;EAI9D,mBAAA,WAFA;EAIA,SAAA;AAAA;;KAIU,0BAAA;EAAA,8FAEV,MAAA;EAEA,SAAA,UAFA;EAIA,cAAA;EAEA,kBAAA,YAEA;EAAA,YAAA,kBAIA;EAFA,gBAAA,UAIW;EAFX,UAAA;EAEA,WAAA;AAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"eip712MethodByType-BSx11xG-.d.cts","names":[],"sources":["../src/signing/src/signing/eip712MethodByType.ts"],"mappings":";;;;;AAKA;cAAa,4BAAA,EAA8B,MAAM,CAC/C,iBAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"eip712MethodByType-DkiAjCLs.d.ts","names":[],"sources":["../src/signing/src/signing/eip712MethodByType.ts"],"mappings":";;;;;AAKA;cAAa,4BAAA,EAA8B,MAAM,CAC/C,iBAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"feed-DTJlsg8W.d.cts","names":[],"sources":["../src/utils/src/utils/feed.ts"],"mappings":";;AAIA;;;cAAa,yBAAA;AAAyB;AAMtC;;;AANsC,cAMzB,8BAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"feed-DTJlsg8W.d.ts","names":[],"sources":["../src/utils/src/utils/feed.ts"],"mappings":";;AAIA;;;cAAa,yBAAA;AAAyB;AAMtC;;;AANsC,cAMzB,8BAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"mobileErrorCodes-3LtreeZM.d.cts","names":[],"sources":["../src/types/src/types/mobileErrorCodes.ts"],"mappings":";;AAOA;;;;cAAa,kBAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6CA4Dc;EAAA,6CACjB;EAAA;;;;;;;;;;;;;;;;;;;;;;KADE,eAAA,WACF,kBAAA,eAAiC,kBAAkB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"mobileErrorCodes-3LtreeZM.d.ts","names":[],"sources":["../src/types/src/types/mobileErrorCodes.ts"],"mappings":";;AAOA;;;;cAAa,kBAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6CA4Dc;EAAA,6CACjB;EAAA;;;;;;;;;;;;;;;;;;;;;;KADE,eAAA,WACF,kBAAA,eAAiC,kBAAkB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"payloadHash-BOWGjqdb.d.cts","names":[],"sources":["../src/signing/src/signing/payloadHash.ts"],"mappings":";;;;;;AASA;;;iBAAgB,oBAAA,CAAqB,KAAA,EAAO,iBAAA,GAAoB,GAAG"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"payloadHash-Bzf4CtjV.d.ts","names":[],"sources":["../src/signing/src/signing/payloadHash.ts"],"mappings":";;;;;;AASA;;;iBAAgB,oBAAA,CAAqB,KAAA,EAAO,iBAAA,GAAoB,GAAG"}
@@ -1,25 +0,0 @@
1
- import { c as MobileServerRequestType } from "./serverRequestTypes-BNA7FCY6.js";
2
-
3
- //#region src/types/serverBaseTypes.d.ts
4
- /**
5
- * Base success envelope shared by every mobile service API route: just the `status` discriminant. Query
6
- * routes intersect this with their payload (see {@link MobileServerPublicQuerySuccessResponse}), inlining the
7
- * payload fields alongside `status` rather than nesting them under a `data` key like the engine does; execute
8
- * routes return it as-is because they carry no payload.
9
- */
10
- interface MobileServerSuccessResponse {
11
- status: 'success';
12
- }
13
- /**
14
- * Failure envelope returned by any mobile service API route. A response missing this envelope shape
15
- * (e.g. a malformed body, or a non-JSON response) is a transport-level error, not a domain error.
16
- */
17
- interface MobileServerFailureResponse {
18
- status: 'failure';
19
- error: string;
20
- error_code: number;
21
- request_type: MobileServerRequestType;
22
- }
23
- //#endregion
24
- export { MobileServerSuccessResponse as n, MobileServerFailureResponse as t };
25
- //# sourceMappingURL=serverBaseTypes-DWf3iGWy.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"serverBaseTypes-DWf3iGWy.d.ts","names":[],"sources":["../src/types/src/types/serverBaseTypes.ts"],"mappings":";;;;;AAQA;;;;UAAiB,2BAAA;EACf,MAAM;AAAA;;;;;UAOS,2BAAA;EACf,MAAA;EACA,KAAA;EACA,UAAA;EACA,YAAA,EAAc,uBAAuB;AAAA"}
@@ -1,25 +0,0 @@
1
- import { c as MobileServerRequestType } from "./serverRequestTypes-CxDRFKfv.cjs";
2
-
3
- //#region src/types/serverBaseTypes.d.ts
4
- /**
5
- * Base success envelope shared by every mobile service API route: just the `status` discriminant. Query
6
- * routes intersect this with their payload (see {@link MobileServerPublicQuerySuccessResponse}), inlining the
7
- * payload fields alongside `status` rather than nesting them under a `data` key like the engine does; execute
8
- * routes return it as-is because they carry no payload.
9
- */
10
- interface MobileServerSuccessResponse {
11
- status: 'success';
12
- }
13
- /**
14
- * Failure envelope returned by any mobile service API route. A response missing this envelope shape
15
- * (e.g. a malformed body, or a non-JSON response) is a transport-level error, not a domain error.
16
- */
17
- interface MobileServerFailureResponse {
18
- status: 'failure';
19
- error: string;
20
- error_code: number;
21
- request_type: MobileServerRequestType;
22
- }
23
- //#endregion
24
- export { MobileServerSuccessResponse as n, MobileServerFailureResponse as t };
25
- //# sourceMappingURL=serverBaseTypes-KREDe2M9.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"serverBaseTypes-KREDe2M9.d.cts","names":[],"sources":["../src/types/src/types/serverBaseTypes.ts"],"mappings":";;;;;AAQA;;;;UAAiB,2BAAA;EACf,MAAM;AAAA;;;;;UAOS,2BAAA;EACf,MAAA;EACA,KAAA;EACA,UAAA;EACA,YAAA,EAAc,uBAAuB;AAAA"}
@@ -1,89 +0,0 @@
1
- import { a as MobileServerPublicExecuteRequestType, i as MobileServerPublicExecuteRequestByType, t as MobileServerExecuteRequestType } from "./serverRequestTypes-CxDRFKfv.cjs";
2
- import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "./serverBaseTypes-KREDe2M9.cjs";
3
- import { Hex } from "viem";
4
-
5
- //#region src/types/serverExecuteTypes.d.ts
6
- /**
7
- * Unsigned `public_execute` request body: a `type` discriminant flattened with its params, mirroring
8
- * {@link MobileServerPublicQueryRequest}.
9
- */
10
- type MobileServerPublicExecuteRequest<T extends MobileServerPublicExecuteRequestType = MobileServerPublicExecuteRequestType> = { [K in MobileServerPublicExecuteRequestType]: {
11
- type: K;
12
- } & MobileServerPublicExecuteRequestByType[K] }[T];
13
- /**
14
- * Payload the `set_follow` execute returns alongside the success envelope. The mutation and the count commit
15
- * in one database transaction, so these are the authoritative post-mutation values — prefer them over
16
- * re-reading, and note that overlapping toggles for the same pair can respond out of arrival order.
17
- */
18
- interface MobileServerFollowMutationResponse {
19
- is_following: boolean;
20
- /** The *target's* follower count after the mutation, not the sender's. */
21
- follower_count: number;
22
- }
23
- /**
24
- * One target's post-commit state in a `set_follow_batch` response.
25
- */
26
- interface MobileServerFollowBatchResultItem {
27
- /** The requested target, as lowercase hex. */
28
- subaccount: Hex;
29
- is_following: boolean;
30
- /** The *target's* follower count after the batch, not the sender's. */
31
- follower_count: number;
32
- }
33
- /**
34
- * Payload the `set_follow_batch` execute returns alongside the success envelope: one result per target, in
35
- * request order. Every write and count runs in one database transaction, so the batch either fully applies or
36
- * changes nothing, and these values are authoritative post-commit state.
37
- */
38
- interface MobileServerFollowBatchResponse {
39
- results: MobileServerFollowBatchResultItem[];
40
- }
41
- /**
42
- * Payload of an execute route that returns nothing beyond the success discriminant. Spelled `Record<never,
43
- * never>` rather than `Record<string, never>` because the latter's index signature would collapse `status` to
44
- * `never` when intersected with the success envelope.
45
- */
46
- type MobileServerEmptyExecuteResponse = Record<never, never>;
47
- /**
48
- * Temporary upload grant returned by `create_avatar_upload`; publishing requires a subsequent `set_avatar`.
49
- */
50
- interface MobileServerAvatarUploadResponse {
51
- /** Server-owned staging object key. */
52
- upload_key: string;
53
- /** Short-lived signed PUT URL. */
54
- upload_url: string;
55
- /** Headers required by the signed PUT. */
56
- headers: Record<string, string>;
57
- /** Upload URL lifetime in seconds from issuance. */
58
- expires_in_seconds: number;
59
- }
60
- /**
61
- * Success payloads for each signed `execute`, keyed by request `type`. Most execute routes carry no payload
62
- * beyond the success discriminant and so map to an empty object; `set_follow` and `set_follow_batch` return
63
- * their post-commit relationship state, and `create_avatar_upload` returns a temporary upload grant.
64
- */
65
- interface MobileServerExecuteResponseByType {
66
- /** Bio writes return only the success envelope. */
67
- set_bio: MobileServerEmptyExecuteResponse;
68
- /** Avatar writes return only the success envelope. */
69
- set_avatar: MobileServerEmptyExecuteResponse;
70
- /** Temporary upload grant; publishing requires a subsequent set_avatar call. */
71
- create_avatar_upload: MobileServerAvatarUploadResponse;
72
- set_username: MobileServerEmptyExecuteResponse;
73
- set_private_mode: MobileServerEmptyExecuteResponse;
74
- register_expo_token: MobileServerEmptyExecuteResponse;
75
- set_follow: MobileServerFollowMutationResponse;
76
- set_follow_batch: MobileServerFollowBatchResponse;
77
- }
78
- /**
79
- * Full success response for a signed `execute`: the {@link MobileServerSuccessResponse} envelope with the
80
- * route's payload inlined alongside `status`, matching how the query routes inline theirs.
81
- */
82
- type MobileServerExecuteSuccessResponse<T extends MobileServerExecuteRequestType = MobileServerExecuteRequestType> = MobileServerSuccessResponse & MobileServerExecuteResponseByType[T];
83
- /**
84
- * Discriminated `execute` result union used at the transport boundary, before the envelope is narrowed.
85
- */
86
- type MobileServerExecuteResult = MobileServerSuccessResponse | MobileServerFailureResponse;
87
- //#endregion
88
- export { MobileServerExecuteSuccessResponse as a, MobileServerFollowMutationResponse as c, MobileServerExecuteResult as i, MobileServerPublicExecuteRequest as l, MobileServerEmptyExecuteResponse as n, MobileServerFollowBatchResponse as o, MobileServerExecuteResponseByType as r, MobileServerFollowBatchResultItem as s, MobileServerAvatarUploadResponse as t };
89
- //# sourceMappingURL=serverExecuteTypes-DVRa6ifu.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"serverExecuteTypes-DVRa6ifu.d.cts","names":[],"sources":["../src/types/src/types/serverExecuteTypes.ts"],"mappings":";;;;;;;AAeA;;KAAY,gCAAA,WACA,oCAAA,GACR,oCAAA,YAEI,oCAAA;EACJ,IAAA,EAAM,CAAA;AAAA,IACJ,sCAAA,CAAuC,CAAA,IAC3C,CAAA;;;;;;UAOe,kCAAA;EACf,YAAA;EAbE;EAeF,cAAc;AAAA;;;;UAMC,iCAAA;EAhBf;EAkBA,UAAA,EAAY,GAAG;EACf,YAAA;EAZe;EAcf,cAAA;AAAA;;AAXc;AAMhB;;;UAaiB,+BAAA;EACf,OAAA,EAAS,iCAAiC;AAAA;;;;AAT5B;AAQhB;KASY,gCAAA,GAAmC,MAAM;;;AART;UAa3B,gCAAA;EAL2B;EAO1C,UAAA;EAPmD;EASnD,UAAA;EAJe;EAMf,OAAA,EAAS,MAAM;;EAEf,kBAAA;AAAA;;;;;;UAQe,iCAAA;EAAA;EAEf,OAAA,EAAS,gCAAA;;EAET,UAAA,EAAY,gCAAA;EAAA;EAEZ,oBAAA,EAAsB,gCAAA;EACtB,YAAA,EAAc,gCAAA;EACd,gBAAA,EAAkB,gCAAA;EAClB,mBAAA,EAAqB,gCAAA;EACrB,UAAA,EAAY,kCAAA;EACZ,gBAAA,EAAkB,+BAAA;AAAA;;;;;KAOR,kCAAA,WACA,8BAAA,GAAiC,8BAAA,IACzC,2BAAA,GAA8B,iCAAA,CAAkC,CAAA;;;;KAKxD,yBAAA,GACR,2BAAA,GACA,2BAA2B"}
@@ -1,89 +0,0 @@
1
- import { a as MobileServerPublicExecuteRequestType, i as MobileServerPublicExecuteRequestByType, t as MobileServerExecuteRequestType } from "./serverRequestTypes-BNA7FCY6.js";
2
- import { n as MobileServerSuccessResponse, t as MobileServerFailureResponse } from "./serverBaseTypes-DWf3iGWy.js";
3
- import { Hex } from "viem";
4
-
5
- //#region src/types/serverExecuteTypes.d.ts
6
- /**
7
- * Unsigned `public_execute` request body: a `type` discriminant flattened with its params, mirroring
8
- * {@link MobileServerPublicQueryRequest}.
9
- */
10
- type MobileServerPublicExecuteRequest<T extends MobileServerPublicExecuteRequestType = MobileServerPublicExecuteRequestType> = { [K in MobileServerPublicExecuteRequestType]: {
11
- type: K;
12
- } & MobileServerPublicExecuteRequestByType[K] }[T];
13
- /**
14
- * Payload the `set_follow` execute returns alongside the success envelope. The mutation and the count commit
15
- * in one database transaction, so these are the authoritative post-mutation values — prefer them over
16
- * re-reading, and note that overlapping toggles for the same pair can respond out of arrival order.
17
- */
18
- interface MobileServerFollowMutationResponse {
19
- is_following: boolean;
20
- /** The *target's* follower count after the mutation, not the sender's. */
21
- follower_count: number;
22
- }
23
- /**
24
- * One target's post-commit state in a `set_follow_batch` response.
25
- */
26
- interface MobileServerFollowBatchResultItem {
27
- /** The requested target, as lowercase hex. */
28
- subaccount: Hex;
29
- is_following: boolean;
30
- /** The *target's* follower count after the batch, not the sender's. */
31
- follower_count: number;
32
- }
33
- /**
34
- * Payload the `set_follow_batch` execute returns alongside the success envelope: one result per target, in
35
- * request order. Every write and count runs in one database transaction, so the batch either fully applies or
36
- * changes nothing, and these values are authoritative post-commit state.
37
- */
38
- interface MobileServerFollowBatchResponse {
39
- results: MobileServerFollowBatchResultItem[];
40
- }
41
- /**
42
- * Payload of an execute route that returns nothing beyond the success discriminant. Spelled `Record<never,
43
- * never>` rather than `Record<string, never>` because the latter's index signature would collapse `status` to
44
- * `never` when intersected with the success envelope.
45
- */
46
- type MobileServerEmptyExecuteResponse = Record<never, never>;
47
- /**
48
- * Temporary upload grant returned by `create_avatar_upload`; publishing requires a subsequent `set_avatar`.
49
- */
50
- interface MobileServerAvatarUploadResponse {
51
- /** Server-owned staging object key. */
52
- upload_key: string;
53
- /** Short-lived signed PUT URL. */
54
- upload_url: string;
55
- /** Headers required by the signed PUT. */
56
- headers: Record<string, string>;
57
- /** Upload URL lifetime in seconds from issuance. */
58
- expires_in_seconds: number;
59
- }
60
- /**
61
- * Success payloads for each signed `execute`, keyed by request `type`. Most execute routes carry no payload
62
- * beyond the success discriminant and so map to an empty object; `set_follow` and `set_follow_batch` return
63
- * their post-commit relationship state, and `create_avatar_upload` returns a temporary upload grant.
64
- */
65
- interface MobileServerExecuteResponseByType {
66
- /** Bio writes return only the success envelope. */
67
- set_bio: MobileServerEmptyExecuteResponse;
68
- /** Avatar writes return only the success envelope. */
69
- set_avatar: MobileServerEmptyExecuteResponse;
70
- /** Temporary upload grant; publishing requires a subsequent set_avatar call. */
71
- create_avatar_upload: MobileServerAvatarUploadResponse;
72
- set_username: MobileServerEmptyExecuteResponse;
73
- set_private_mode: MobileServerEmptyExecuteResponse;
74
- register_expo_token: MobileServerEmptyExecuteResponse;
75
- set_follow: MobileServerFollowMutationResponse;
76
- set_follow_batch: MobileServerFollowBatchResponse;
77
- }
78
- /**
79
- * Full success response for a signed `execute`: the {@link MobileServerSuccessResponse} envelope with the
80
- * route's payload inlined alongside `status`, matching how the query routes inline theirs.
81
- */
82
- type MobileServerExecuteSuccessResponse<T extends MobileServerExecuteRequestType = MobileServerExecuteRequestType> = MobileServerSuccessResponse & MobileServerExecuteResponseByType[T];
83
- /**
84
- * Discriminated `execute` result union used at the transport boundary, before the envelope is narrowed.
85
- */
86
- type MobileServerExecuteResult = MobileServerSuccessResponse | MobileServerFailureResponse;
87
- //#endregion
88
- export { MobileServerExecuteSuccessResponse as a, MobileServerFollowMutationResponse as c, MobileServerExecuteResult as i, MobileServerPublicExecuteRequest as l, MobileServerEmptyExecuteResponse as n, MobileServerFollowBatchResponse as o, MobileServerExecuteResponseByType as r, MobileServerFollowBatchResultItem as s, MobileServerAvatarUploadResponse as t };
89
- //# sourceMappingURL=serverExecuteTypes-DlYZCp1f.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"serverExecuteTypes-DlYZCp1f.d.ts","names":[],"sources":["../src/types/src/types/serverExecuteTypes.ts"],"mappings":";;;;;;;AAeA;;KAAY,gCAAA,WACA,oCAAA,GACR,oCAAA,YAEI,oCAAA;EACJ,IAAA,EAAM,CAAA;AAAA,IACJ,sCAAA,CAAuC,CAAA,IAC3C,CAAA;;;;;;UAOe,kCAAA;EACf,YAAA;EAbE;EAeF,cAAc;AAAA;;;;UAMC,iCAAA;EAhBf;EAkBA,UAAA,EAAY,GAAG;EACf,YAAA;EAZe;EAcf,cAAA;AAAA;;AAXc;AAMhB;;;UAaiB,+BAAA;EACf,OAAA,EAAS,iCAAiC;AAAA;;;;AAT5B;AAQhB;KASY,gCAAA,GAAmC,MAAM;;;AART;UAa3B,gCAAA;EAL2B;EAO1C,UAAA;EAPmD;EASnD,UAAA;EAJe;EAMf,OAAA,EAAS,MAAM;;EAEf,kBAAA;AAAA;;;;;;UAQe,iCAAA;EAAA;EAEf,OAAA,EAAS,gCAAA;;EAET,UAAA,EAAY,gCAAA;EAAA;EAEZ,oBAAA,EAAsB,gCAAA;EACtB,YAAA,EAAc,gCAAA;EACd,gBAAA,EAAkB,gCAAA;EAClB,mBAAA,EAAqB,gCAAA;EACrB,UAAA,EAAY,kCAAA;EACZ,gBAAA,EAAkB,+BAAA;AAAA;;;;;KAOR,kCAAA,WACA,8BAAA,GAAiC,8BAAA,IACzC,2BAAA,GAA8B,iCAAA,CAAkC,CAAA;;;;KAKxD,yBAAA,GACR,2BAAA,GACA,2BAA2B"}