@marcoappio/marco-config 4.0.26 → 6.0.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 (465) hide show
  1. package/dist/constants/api.d.ts +9 -0
  2. package/dist/constants/api.d.ts.map +1 -0
  3. package/dist/constants/api.js +8 -0
  4. package/dist/constants/emailAccounts.d.ts.map +1 -1
  5. package/dist/constants/emailAccounts.js +14 -1
  6. package/dist/constants/emailProvider.js +1 -1
  7. package/dist/constants/index.d.ts +11 -3
  8. package/dist/constants/index.d.ts.map +1 -1
  9. package/dist/constants/index.js +7 -5
  10. package/dist/constants/messages.d.ts.map +1 -1
  11. package/dist/constants/oauth.d.ts +2 -2
  12. package/dist/constants/oauth.d.ts.map +1 -1
  13. package/dist/constants/oauth.js +5 -1
  14. package/dist/constants/user.d.ts +1 -1
  15. package/dist/constants/user.d.ts.map +1 -1
  16. package/dist/constants/user.js +1 -1
  17. package/dist/index.d.ts +6 -5
  18. package/dist/index.d.ts.map +1 -1
  19. package/dist/index.js +6 -5
  20. package/dist/marcoPublicConfig.d.ts +36 -0
  21. package/dist/marcoPublicConfig.d.ts.map +1 -0
  22. package/dist/marcoPublicConfig.js +99 -0
  23. package/dist/schemas/app.d.ts +2 -2
  24. package/dist/schemas/app.d.ts.map +1 -1
  25. package/dist/schemas/app.js +3 -3
  26. package/dist/schemas/auth.d.ts +1 -1
  27. package/dist/schemas/auth.d.ts.map +1 -1
  28. package/dist/schemas/auth.js +2 -2
  29. package/dist/schemas/boolean.d.ts +5 -0
  30. package/dist/schemas/boolean.d.ts.map +1 -0
  31. package/dist/schemas/boolean.js +4 -0
  32. package/dist/schemas/emailAccount.d.ts +10 -10
  33. package/dist/schemas/emailAccount.d.ts.map +1 -1
  34. package/dist/schemas/emailAccount.js +13 -13
  35. package/dist/schemas/id.d.ts +1 -6
  36. package/dist/schemas/id.d.ts.map +1 -1
  37. package/dist/schemas/id.js +1 -2
  38. package/dist/schemas/index.d.ts +429 -60
  39. package/dist/schemas/index.d.ts.map +1 -1
  40. package/dist/schemas/index.js +21 -9
  41. package/dist/schemas/labels.d.ts +5 -0
  42. package/dist/schemas/labels.d.ts.map +1 -0
  43. package/dist/schemas/labels.js +5 -0
  44. package/dist/schemas/models/account.d.ts +3 -3
  45. package/dist/schemas/models/account.d.ts.map +1 -1
  46. package/dist/schemas/models/account.js +8 -8
  47. package/dist/schemas/models/contact.d.ts +2 -2
  48. package/dist/schemas/models/contact.d.ts.map +1 -1
  49. package/dist/schemas/models/contact.js +4 -4
  50. package/dist/schemas/models/draft.d.ts +9 -9
  51. package/dist/schemas/models/draft.d.ts.map +1 -1
  52. package/dist/schemas/models/draft.js +9 -9
  53. package/dist/schemas/models/index.d.ts +5 -5
  54. package/dist/schemas/models/index.d.ts.map +1 -1
  55. package/dist/schemas/models/index.js +5 -5
  56. package/dist/schemas/models/thread.d.ts +46 -28
  57. package/dist/schemas/models/thread.d.ts.map +1 -1
  58. package/dist/schemas/models/thread.js +12 -11
  59. package/dist/schemas/models/user.d.ts +30 -3
  60. package/dist/schemas/models/user.d.ts.map +1 -1
  61. package/dist/schemas/models/user.js +21 -5
  62. package/dist/schemas/mutators/index.d.ts +2 -0
  63. package/dist/schemas/mutators/index.d.ts.map +1 -0
  64. package/dist/schemas/mutators/index.js +1 -0
  65. package/dist/schemas/mutators/mutatorSchemas.d.ts +314 -0
  66. package/dist/schemas/mutators/mutatorSchemas.d.ts.map +1 -0
  67. package/dist/schemas/mutators/mutatorSchemas.js +229 -0
  68. package/dist/schemas/number.d.ts +5 -3
  69. package/dist/schemas/number.d.ts.map +1 -1
  70. package/dist/schemas/number.js +5 -4
  71. package/dist/schemas/oauth.d.ts +2 -2
  72. package/dist/schemas/oauth.d.ts.map +1 -1
  73. package/dist/schemas/oauth.js +3 -3
  74. package/dist/schemas/paginatedResponse.d.ts +10 -0
  75. package/dist/schemas/paginatedResponse.d.ts.map +1 -0
  76. package/dist/schemas/paginatedResponse.js +5 -0
  77. package/dist/schemas/pushNotifications.d.ts +3 -3
  78. package/dist/schemas/pushNotifications.d.ts.map +1 -1
  79. package/dist/schemas/pushNotifications.js +4 -3
  80. package/dist/schemas/string.d.ts +4 -2
  81. package/dist/schemas/string.d.ts.map +1 -1
  82. package/dist/schemas/string.js +5 -4
  83. package/dist/schemas/websocket.d.ts +14 -0
  84. package/dist/schemas/websocket.d.ts.map +1 -0
  85. package/dist/schemas/websocket.js +10 -0
  86. package/dist/sdk/endpoints/createEndpointConfig.d.ts +12 -0
  87. package/dist/sdk/endpoints/createEndpointConfig.d.ts.map +1 -0
  88. package/dist/sdk/endpoints/createEndpointConfig.js +21 -0
  89. package/dist/sdk/endpoints/index.d.ts +255 -0
  90. package/dist/sdk/endpoints/index.d.ts.map +1 -0
  91. package/dist/sdk/endpoints/index.js +6 -0
  92. package/dist/sdk/endpoints/private/draftAttachment/index.d.ts +31 -0
  93. package/dist/sdk/endpoints/private/draftAttachment/index.d.ts.map +1 -0
  94. package/dist/sdk/endpoints/private/draftAttachment/index.js +4 -0
  95. package/dist/sdk/endpoints/private/draftAttachment/uploadDraftAttachment.d.ts +30 -0
  96. package/dist/sdk/endpoints/private/draftAttachment/uploadDraftAttachment.d.ts.map +1 -0
  97. package/dist/sdk/endpoints/private/draftAttachment/uploadDraftAttachment.js +18 -0
  98. package/dist/sdk/endpoints/private/emailMessage/getEmailMessageAttachment.d.ts +21 -0
  99. package/dist/sdk/endpoints/private/emailMessage/getEmailMessageAttachment.d.ts.map +1 -0
  100. package/dist/sdk/endpoints/private/emailMessage/getEmailMessageAttachment.js +16 -0
  101. package/dist/sdk/endpoints/private/emailMessage/index.d.ts +22 -0
  102. package/dist/sdk/endpoints/private/emailMessage/index.d.ts.map +1 -0
  103. package/dist/sdk/endpoints/private/emailMessage/index.js +4 -0
  104. package/dist/sdk/endpoints/private/index.d.ts +103 -0
  105. package/dist/sdk/endpoints/private/index.d.ts.map +1 -0
  106. package/dist/sdk/endpoints/private/index.js +12 -0
  107. package/dist/sdk/endpoints/private/models/account/getAccounts.d.ts +70 -0
  108. package/dist/sdk/endpoints/private/models/account/getAccounts.d.ts.map +1 -0
  109. package/dist/sdk/endpoints/private/models/account/getAccounts.js +26 -0
  110. package/dist/sdk/endpoints/private/models/account/index.d.ts +2 -0
  111. package/dist/sdk/endpoints/private/models/account/index.d.ts.map +1 -0
  112. package/dist/sdk/endpoints/private/models/account/index.js +1 -0
  113. package/dist/sdk/endpoints/private/models/contact/getContacts.d.ts +41 -0
  114. package/dist/sdk/endpoints/private/models/contact/getContacts.d.ts.map +1 -0
  115. package/dist/sdk/endpoints/private/models/contact/getContacts.js +26 -0
  116. package/dist/sdk/endpoints/private/models/contact/index.d.ts +2 -0
  117. package/dist/sdk/endpoints/private/models/contact/index.d.ts.map +1 -0
  118. package/dist/sdk/endpoints/private/models/contact/index.js +1 -0
  119. package/dist/sdk/endpoints/private/models/draft/getDrafts.d.ts +62 -0
  120. package/dist/sdk/endpoints/private/models/draft/getDrafts.d.ts.map +1 -0
  121. package/dist/sdk/endpoints/private/models/draft/getDrafts.js +25 -0
  122. package/dist/sdk/endpoints/private/models/draft/index.d.ts +2 -0
  123. package/dist/sdk/endpoints/private/models/draft/index.d.ts.map +1 -0
  124. package/dist/sdk/endpoints/private/models/draft/index.js +1 -0
  125. package/dist/sdk/endpoints/private/models/index.d.ts +13 -0
  126. package/dist/sdk/endpoints/private/models/index.d.ts.map +1 -0
  127. package/dist/sdk/endpoints/private/models/index.js +12 -0
  128. package/dist/sdk/endpoints/private/models/thread/getThread.d.ts +63 -0
  129. package/dist/sdk/endpoints/private/models/thread/getThread.d.ts.map +1 -0
  130. package/dist/sdk/endpoints/private/models/thread/getThread.js +17 -0
  131. package/dist/sdk/endpoints/private/models/thread/getThreadByMessageId.d.ts +63 -0
  132. package/dist/sdk/endpoints/private/models/thread/getThreadByMessageId.d.ts.map +1 -0
  133. package/dist/sdk/endpoints/private/models/thread/getThreadByMessageId.js +17 -0
  134. package/dist/sdk/endpoints/private/models/thread/getThreadList.d.ts +79 -0
  135. package/dist/sdk/endpoints/private/models/thread/getThreadList.d.ts.map +1 -0
  136. package/dist/sdk/endpoints/private/models/thread/getThreadList.js +47 -0
  137. package/dist/sdk/endpoints/private/models/thread/getThreads.d.ts +83 -0
  138. package/dist/sdk/endpoints/private/models/thread/getThreads.d.ts.map +1 -0
  139. package/dist/sdk/endpoints/private/models/thread/getThreads.js +36 -0
  140. package/dist/sdk/endpoints/private/models/thread/index.d.ts +5 -0
  141. package/dist/sdk/endpoints/private/models/thread/index.d.ts.map +1 -0
  142. package/dist/sdk/endpoints/private/models/thread/index.js +4 -0
  143. package/dist/sdk/endpoints/private/models/user/getUser.d.ts +34 -0
  144. package/dist/sdk/endpoints/private/models/user/getUser.d.ts.map +1 -0
  145. package/dist/sdk/endpoints/private/models/user/getUser.js +16 -0
  146. package/dist/sdk/endpoints/private/models/user/index.d.ts +2 -0
  147. package/dist/sdk/endpoints/private/models/user/index.d.ts.map +1 -0
  148. package/dist/sdk/endpoints/private/models/user/index.js +1 -0
  149. package/dist/sdk/endpoints/private/mutations/account/createAccount.d.ts +35 -0
  150. package/dist/sdk/endpoints/private/mutations/account/createAccount.d.ts.map +1 -0
  151. package/dist/sdk/endpoints/private/mutations/account/createAccount.js +18 -0
  152. package/dist/sdk/endpoints/private/mutations/account/createAlias.d.ts +42 -0
  153. package/dist/sdk/endpoints/private/mutations/account/createAlias.d.ts.map +1 -0
  154. package/dist/sdk/endpoints/private/mutations/account/createAlias.js +19 -0
  155. package/dist/sdk/endpoints/private/mutations/account/createLabel.d.ts +44 -0
  156. package/dist/sdk/endpoints/private/mutations/account/createLabel.d.ts.map +1 -0
  157. package/dist/sdk/endpoints/private/mutations/account/createLabel.js +20 -0
  158. package/dist/sdk/endpoints/private/mutations/account/deleteAccount.d.ts +27 -0
  159. package/dist/sdk/endpoints/private/mutations/account/deleteAccount.d.ts.map +1 -0
  160. package/dist/sdk/endpoints/private/mutations/account/deleteAccount.js +18 -0
  161. package/dist/sdk/endpoints/private/mutations/account/deleteAlias.d.ts +33 -0
  162. package/dist/sdk/endpoints/private/mutations/account/deleteAlias.d.ts.map +1 -0
  163. package/dist/sdk/endpoints/private/mutations/account/deleteAlias.js +19 -0
  164. package/dist/sdk/endpoints/private/mutations/account/deleteLabel.d.ts +43 -0
  165. package/dist/sdk/endpoints/private/mutations/account/deleteLabel.d.ts.map +1 -0
  166. package/dist/sdk/endpoints/private/mutations/account/deleteLabel.js +20 -0
  167. package/dist/sdk/endpoints/private/mutations/account/index.d.ts +14 -0
  168. package/dist/sdk/endpoints/private/mutations/account/index.d.ts.map +1 -0
  169. package/dist/sdk/endpoints/private/mutations/account/index.js +13 -0
  170. package/dist/sdk/endpoints/private/mutations/account/renameLabel.d.ts +49 -0
  171. package/dist/sdk/endpoints/private/mutations/account/renameLabel.d.ts.map +1 -0
  172. package/dist/sdk/endpoints/private/mutations/account/renameLabel.js +21 -0
  173. package/dist/sdk/endpoints/private/mutations/account/setAliasName.d.ts +44 -0
  174. package/dist/sdk/endpoints/private/mutations/account/setAliasName.d.ts.map +1 -0
  175. package/dist/sdk/endpoints/private/mutations/account/setAliasName.js +20 -0
  176. package/dist/sdk/endpoints/private/mutations/account/setAliasPrimary.d.ts +33 -0
  177. package/dist/sdk/endpoints/private/mutations/account/setAliasPrimary.d.ts.map +1 -0
  178. package/dist/sdk/endpoints/private/mutations/account/setAliasPrimary.js +19 -0
  179. package/dist/sdk/endpoints/private/mutations/account/setAliasSignature.d.ts +44 -0
  180. package/dist/sdk/endpoints/private/mutations/account/setAliasSignature.d.ts.map +1 -0
  181. package/dist/sdk/endpoints/private/mutations/account/setAliasSignature.js +20 -0
  182. package/dist/sdk/endpoints/private/mutations/account/setConnectionConfigImap.d.ts +49 -0
  183. package/dist/sdk/endpoints/private/mutations/account/setConnectionConfigImap.d.ts.map +1 -0
  184. package/dist/sdk/endpoints/private/mutations/account/setConnectionConfigImap.js +19 -0
  185. package/dist/sdk/endpoints/private/mutations/account/setConnectionConfigOauth.d.ts +42 -0
  186. package/dist/sdk/endpoints/private/mutations/account/setConnectionConfigOauth.d.ts.map +1 -0
  187. package/dist/sdk/endpoints/private/mutations/account/setConnectionConfigOauth.js +19 -0
  188. package/dist/sdk/endpoints/private/mutations/account/setSettings.d.ts +39 -0
  189. package/dist/sdk/endpoints/private/mutations/account/setSettings.d.ts.map +1 -0
  190. package/dist/sdk/endpoints/private/mutations/account/setSettings.js +19 -0
  191. package/dist/sdk/endpoints/private/mutations/draft/cancelSend.d.ts +28 -0
  192. package/dist/sdk/endpoints/private/mutations/draft/cancelSend.d.ts.map +1 -0
  193. package/dist/sdk/endpoints/private/mutations/draft/cancelSend.js +18 -0
  194. package/dist/sdk/endpoints/private/mutations/draft/createAttachment.d.ts +45 -0
  195. package/dist/sdk/endpoints/private/mutations/draft/createAttachment.d.ts.map +1 -0
  196. package/dist/sdk/endpoints/private/mutations/draft/createAttachment.js +19 -0
  197. package/dist/sdk/endpoints/private/mutations/draft/createDraft.d.ts +60 -0
  198. package/dist/sdk/endpoints/private/mutations/draft/createDraft.d.ts.map +1 -0
  199. package/dist/sdk/endpoints/private/mutations/draft/createDraft.js +19 -0
  200. package/dist/sdk/endpoints/private/mutations/draft/deleteAttachment.d.ts +34 -0
  201. package/dist/sdk/endpoints/private/mutations/draft/deleteAttachment.d.ts.map +1 -0
  202. package/dist/sdk/endpoints/private/mutations/draft/deleteAttachment.js +19 -0
  203. package/dist/sdk/endpoints/private/mutations/draft/deleteDraft.d.ts +27 -0
  204. package/dist/sdk/endpoints/private/mutations/draft/deleteDraft.d.ts.map +1 -0
  205. package/dist/sdk/endpoints/private/mutations/draft/deleteDraft.js +18 -0
  206. package/dist/sdk/endpoints/private/mutations/draft/index.d.ts +10 -0
  207. package/dist/sdk/endpoints/private/mutations/draft/index.d.ts.map +1 -0
  208. package/dist/sdk/endpoints/private/mutations/draft/index.js +9 -0
  209. package/dist/sdk/endpoints/private/mutations/draft/replaceContent.d.ts +39 -0
  210. package/dist/sdk/endpoints/private/mutations/draft/replaceContent.d.ts.map +1 -0
  211. package/dist/sdk/endpoints/private/mutations/draft/replaceContent.js +19 -0
  212. package/dist/sdk/endpoints/private/mutations/draft/scheduleSend.d.ts +45 -0
  213. package/dist/sdk/endpoints/private/mutations/draft/scheduleSend.d.ts.map +1 -0
  214. package/dist/sdk/endpoints/private/mutations/draft/scheduleSend.js +19 -0
  215. package/dist/sdk/endpoints/private/mutations/draft/setEnvelope.d.ts +85 -0
  216. package/dist/sdk/endpoints/private/mutations/draft/setEnvelope.d.ts.map +1 -0
  217. package/dist/sdk/endpoints/private/mutations/draft/setEnvelope.js +19 -0
  218. package/dist/sdk/endpoints/private/mutations/draft/setFrom.d.ts +47 -0
  219. package/dist/sdk/endpoints/private/mutations/draft/setFrom.d.ts.map +1 -0
  220. package/dist/sdk/endpoints/private/mutations/draft/setFrom.js +20 -0
  221. package/dist/sdk/endpoints/private/mutations/index.d.ts +11 -0
  222. package/dist/sdk/endpoints/private/mutations/index.d.ts.map +1 -0
  223. package/dist/sdk/endpoints/private/mutations/index.js +10 -0
  224. package/dist/sdk/endpoints/private/mutations/thread/addLabel.d.ts +40 -0
  225. package/dist/sdk/endpoints/private/mutations/thread/addLabel.d.ts.map +1 -0
  226. package/dist/sdk/endpoints/private/mutations/thread/addLabel.js +19 -0
  227. package/dist/sdk/endpoints/private/mutations/thread/deleteThreads.d.ts +34 -0
  228. package/dist/sdk/endpoints/private/mutations/thread/deleteThreads.d.ts.map +1 -0
  229. package/dist/sdk/endpoints/private/mutations/thread/deleteThreads.js +18 -0
  230. package/dist/sdk/endpoints/private/mutations/thread/index.d.ts +11 -0
  231. package/dist/sdk/endpoints/private/mutations/thread/index.d.ts.map +1 -0
  232. package/dist/sdk/endpoints/private/mutations/thread/index.js +10 -0
  233. package/dist/sdk/endpoints/private/mutations/thread/removeLabel.d.ts +40 -0
  234. package/dist/sdk/endpoints/private/mutations/thread/removeLabel.d.ts.map +1 -0
  235. package/dist/sdk/endpoints/private/mutations/thread/removeLabel.js +19 -0
  236. package/dist/sdk/endpoints/private/mutations/thread/setArchive.d.ts +34 -0
  237. package/dist/sdk/endpoints/private/mutations/thread/setArchive.d.ts.map +1 -0
  238. package/dist/sdk/endpoints/private/mutations/thread/setArchive.js +18 -0
  239. package/dist/sdk/endpoints/private/mutations/thread/setFlagged.d.ts +35 -0
  240. package/dist/sdk/endpoints/private/mutations/thread/setFlagged.d.ts.map +1 -0
  241. package/dist/sdk/endpoints/private/mutations/thread/setFlagged.js +18 -0
  242. package/dist/sdk/endpoints/private/mutations/thread/setInbox.d.ts +34 -0
  243. package/dist/sdk/endpoints/private/mutations/thread/setInbox.d.ts.map +1 -0
  244. package/dist/sdk/endpoints/private/mutations/thread/setInbox.js +18 -0
  245. package/dist/sdk/endpoints/private/mutations/thread/setSeen.d.ts +35 -0
  246. package/dist/sdk/endpoints/private/mutations/thread/setSeen.d.ts.map +1 -0
  247. package/dist/sdk/endpoints/private/mutations/thread/setSeen.js +18 -0
  248. package/dist/sdk/endpoints/private/mutations/thread/setSnooze.d.ts +35 -0
  249. package/dist/sdk/endpoints/private/mutations/thread/setSnooze.d.ts.map +1 -0
  250. package/dist/sdk/endpoints/private/mutations/thread/setSnooze.js +18 -0
  251. package/dist/sdk/endpoints/private/mutations/thread/setSpam.d.ts +34 -0
  252. package/dist/sdk/endpoints/private/mutations/thread/setSpam.d.ts.map +1 -0
  253. package/dist/sdk/endpoints/private/mutations/thread/setSpam.js +18 -0
  254. package/dist/sdk/endpoints/private/mutations/thread/setTrash.d.ts +34 -0
  255. package/dist/sdk/endpoints/private/mutations/thread/setTrash.d.ts.map +1 -0
  256. package/dist/sdk/endpoints/private/mutations/thread/setTrash.js +18 -0
  257. package/dist/sdk/endpoints/private/mutations/user/createFeedback.d.ts +34 -0
  258. package/dist/sdk/endpoints/private/mutations/user/createFeedback.d.ts.map +1 -0
  259. package/dist/sdk/endpoints/private/mutations/user/createFeedback.js +18 -0
  260. package/dist/sdk/endpoints/private/mutations/user/createView.d.ts +38 -0
  261. package/dist/sdk/endpoints/private/mutations/user/createView.d.ts.map +1 -0
  262. package/dist/sdk/endpoints/private/mutations/user/createView.js +18 -0
  263. package/dist/sdk/endpoints/private/mutations/user/deletePushToken.d.ts +23 -0
  264. package/dist/sdk/endpoints/private/mutations/user/deletePushToken.d.ts.map +1 -0
  265. package/dist/sdk/endpoints/private/mutations/user/deletePushToken.js +17 -0
  266. package/dist/sdk/endpoints/private/mutations/user/deleteView.d.ts +28 -0
  267. package/dist/sdk/endpoints/private/mutations/user/deleteView.d.ts.map +1 -0
  268. package/dist/sdk/endpoints/private/mutations/user/deleteView.js +18 -0
  269. package/dist/sdk/endpoints/private/mutations/user/index.d.ts +9 -0
  270. package/dist/sdk/endpoints/private/mutations/user/index.d.ts.map +1 -0
  271. package/dist/sdk/endpoints/private/mutations/user/index.js +8 -0
  272. package/dist/sdk/endpoints/private/mutations/user/setFeedbackModalShown.d.ts +32 -0
  273. package/dist/sdk/endpoints/private/mutations/user/setFeedbackModalShown.d.ts.map +1 -0
  274. package/dist/sdk/endpoints/private/mutations/user/setFeedbackModalShown.js +18 -0
  275. package/dist/sdk/endpoints/private/mutations/user/setPushToken.d.ts +37 -0
  276. package/dist/sdk/endpoints/private/mutations/user/setPushToken.d.ts.map +1 -0
  277. package/dist/sdk/endpoints/private/mutations/user/setPushToken.js +18 -0
  278. package/dist/sdk/endpoints/private/mutations/user/setSettingsName.d.ts +33 -0
  279. package/dist/sdk/endpoints/private/mutations/user/setSettingsName.d.ts.map +1 -0
  280. package/dist/sdk/endpoints/private/mutations/user/setSettingsName.js +18 -0
  281. package/dist/sdk/endpoints/private/mutations/user/updateView.d.ts +43 -0
  282. package/dist/sdk/endpoints/private/mutations/user/updateView.d.ts.map +1 -0
  283. package/dist/sdk/endpoints/private/mutations/user/updateView.js +19 -0
  284. package/dist/sdk/endpoints/private/user/deleteUser.d.ts +10 -0
  285. package/dist/sdk/endpoints/private/user/deleteUser.d.ts.map +1 -0
  286. package/dist/sdk/endpoints/private/user/deleteUser.js +13 -0
  287. package/dist/sdk/endpoints/private/user/index.d.ts +37 -0
  288. package/dist/sdk/endpoints/private/user/index.d.ts.map +1 -0
  289. package/dist/sdk/endpoints/private/user/index.js +6 -0
  290. package/dist/sdk/endpoints/private/user/uploadProfilePicture.d.ts +28 -0
  291. package/dist/sdk/endpoints/private/user/uploadProfilePicture.d.ts.map +1 -0
  292. package/dist/sdk/endpoints/private/user/uploadProfilePicture.js +19 -0
  293. package/dist/sdk/endpoints/public/auth/index.d.ts +133 -0
  294. package/dist/sdk/endpoints/public/auth/index.d.ts.map +1 -0
  295. package/dist/sdk/endpoints/public/auth/index.js +8 -0
  296. package/dist/sdk/endpoints/public/auth/refreshAuth.d.ts +41 -0
  297. package/dist/sdk/endpoints/public/auth/refreshAuth.d.ts.map +1 -0
  298. package/dist/sdk/endpoints/public/auth/refreshAuth.js +33 -0
  299. package/dist/sdk/endpoints/public/auth/sendAuthCode.d.ts +27 -0
  300. package/dist/sdk/endpoints/public/auth/sendAuthCode.d.ts.map +1 -0
  301. package/dist/sdk/endpoints/public/auth/sendAuthCode.js +19 -0
  302. package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts +68 -0
  303. package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts.map +1 -0
  304. package/dist/sdk/endpoints/public/auth/verifyAuthCode.js +36 -0
  305. package/dist/sdk/endpoints/public/config/index.d.ts +10 -0
  306. package/dist/sdk/endpoints/public/config/index.d.ts.map +1 -0
  307. package/dist/sdk/endpoints/public/config/index.js +15 -0
  308. package/dist/sdk/endpoints/public/healthcheck/index.d.ts +8 -0
  309. package/dist/sdk/endpoints/public/healthcheck/index.d.ts.map +1 -0
  310. package/dist/sdk/endpoints/public/healthcheck/index.js +10 -0
  311. package/dist/sdk/endpoints/public/index.d.ts +149 -0
  312. package/dist/sdk/endpoints/public/index.d.ts.map +1 -0
  313. package/dist/sdk/endpoints/public/index.js +8 -0
  314. package/dist/sdk/index.d.ts +426 -0
  315. package/dist/sdk/index.d.ts.map +1 -0
  316. package/dist/sdk/index.js +6 -0
  317. package/dist/sdk/validation/errors.d.ts +326 -0
  318. package/dist/sdk/validation/errors.d.ts.map +1 -0
  319. package/dist/sdk/validation/errors.js +140 -0
  320. package/dist/sdk/validation/index.d.ts +172 -0
  321. package/dist/sdk/validation/index.d.ts.map +1 -0
  322. package/dist/sdk/validation/index.js +3 -0
  323. package/dist/sdk/validation/utils/flattenRequirements/flattenRequirements.d.ts +11 -0
  324. package/dist/sdk/validation/utils/flattenRequirements/flattenRequirements.d.ts.map +1 -0
  325. package/dist/sdk/validation/utils/flattenRequirements/flattenRequirements.js +22 -0
  326. package/dist/sdk/validation/utils/flattenRequirements/index.d.ts +2 -0
  327. package/dist/sdk/validation/utils/flattenRequirements/index.d.ts.map +1 -0
  328. package/dist/sdk/validation/utils/flattenRequirements/index.js +1 -0
  329. package/dist/sdk/validation/utils/index.d.ts +7 -0
  330. package/dist/sdk/validation/utils/index.d.ts.map +1 -0
  331. package/dist/sdk/validation/utils/index.js +4 -0
  332. package/dist/types/AuthData.d.ts +4 -0
  333. package/dist/types/AuthData.d.ts.map +1 -0
  334. package/dist/types/AuthData.js +1 -0
  335. package/dist/types/DraftAttachmentUploadStatus.d.ts +1 -1
  336. package/dist/types/DraftAttachmentUploadStatus.d.ts.map +1 -1
  337. package/dist/types/DraftStatus.d.ts +1 -1
  338. package/dist/types/DraftStatus.d.ts.map +1 -1
  339. package/dist/types/DraftType.d.ts +1 -1
  340. package/dist/types/DraftType.d.ts.map +1 -1
  341. package/dist/types/Endpoint.d.ts +25 -0
  342. package/dist/types/Endpoint.d.ts.map +1 -0
  343. package/dist/types/Endpoint.js +1 -0
  344. package/dist/types/IMAPConnectionStatus.d.ts +1 -1
  345. package/dist/types/IMAPConnectionStatus.d.ts.map +1 -1
  346. package/dist/types/IMAPSourceLocation.d.ts +1 -1
  347. package/dist/types/LabelSpecialUse.d.ts +1 -1
  348. package/dist/types/LabelSpecialUse.d.ts.map +1 -1
  349. package/dist/types/MarcoPlatform.d.ts +1 -1
  350. package/dist/types/MarcoPlatform.d.ts.map +1 -1
  351. package/dist/types/MessageRecipientType.d.ts +1 -1
  352. package/dist/types/MessageRecipientType.d.ts.map +1 -1
  353. package/dist/types/OAuthProvider.d.ts +1 -1
  354. package/dist/types/OAuthProvider.d.ts.map +1 -1
  355. package/dist/types/PokeEvent.d.ts +6 -0
  356. package/dist/types/PokeEvent.d.ts.map +1 -0
  357. package/dist/types/PokeEvent.js +1 -0
  358. package/dist/types/SDKError.d.ts +4 -0
  359. package/dist/types/SDKError.d.ts.map +1 -0
  360. package/dist/types/SDKError.js +1 -0
  361. package/dist/types/UserSettings.d.ts +15 -16
  362. package/dist/types/UserSettings.d.ts.map +1 -1
  363. package/dist/types/UserSettings.js +29 -15
  364. package/dist/types/index.d.ts +15 -11
  365. package/dist/types/index.d.ts.map +1 -1
  366. package/dist/types/index.js +15 -11
  367. package/dist/utils/accounts/generateAccountColor.d.ts.map +1 -1
  368. package/dist/utils/accounts/generateAccountColor.js +15 -10
  369. package/dist/utils/accounts/index.d.ts +3 -1
  370. package/dist/utils/accounts/index.d.ts.map +1 -1
  371. package/dist/utils/accounts/index.js +4 -1
  372. package/dist/utils/index.d.ts +3 -3
  373. package/dist/utils/index.d.ts.map +1 -1
  374. package/dist/utils/index.js +3 -3
  375. package/dist/utils/labels/index.d.ts +3 -2
  376. package/dist/utils/labels/index.d.ts.map +1 -1
  377. package/dist/utils/labels/index.js +4 -1
  378. package/dist/utils/threads/index.d.ts +4 -2
  379. package/dist/utils/threads/index.d.ts.map +1 -1
  380. package/dist/utils/threads/index.js +6 -2
  381. package/dist/utils/threads/parseLabelIdList/index.d.ts +2 -0
  382. package/dist/utils/threads/parseLabelIdList/index.d.ts.map +1 -0
  383. package/dist/utils/threads/parseLabelIdList/index.js +1 -0
  384. package/dist/utils/threads/processSearchTerm/index.d.ts +2 -0
  385. package/dist/utils/threads/processSearchTerm/index.d.ts.map +1 -0
  386. package/dist/utils/threads/processSearchTerm/index.js +1 -0
  387. package/package.json +13 -28
  388. package/dist/appwrite/appwrite.d.ts +0 -77
  389. package/dist/appwrite/appwrite.d.ts.map +0 -1
  390. package/dist/appwrite/appwrite.js +0 -61
  391. package/dist/appwrite/appwrite.test.d.ts +0 -2
  392. package/dist/appwrite/appwrite.test.d.ts.map +0 -1
  393. package/dist/appwrite/appwrite.test.js +0 -901
  394. package/dist/appwrite/commands.d.ts +0 -5093
  395. package/dist/appwrite/commands.d.ts.map +0 -1
  396. package/dist/appwrite/commands.js +0 -208
  397. package/dist/appwrite/commands.test.d.ts +0 -2
  398. package/dist/appwrite/commands.test.d.ts.map +0 -1
  399. package/dist/appwrite/commands.test.js +0 -425
  400. package/dist/appwrite/decodedSchemas.d.ts +0 -35
  401. package/dist/appwrite/decodedSchemas.d.ts.map +0 -1
  402. package/dist/appwrite/decodedSchemas.js +0 -18
  403. package/dist/appwrite/functions.d.ts +0 -2806
  404. package/dist/appwrite/functions.d.ts.map +0 -1
  405. package/dist/appwrite/functions.js +0 -192
  406. package/dist/appwrite/functions.test.d.ts +0 -2
  407. package/dist/appwrite/functions.test.d.ts.map +0 -1
  408. package/dist/appwrite/functions.test.js +0 -370
  409. package/dist/appwrite/index.d.ts +0 -8
  410. package/dist/appwrite/index.d.ts.map +0 -1
  411. package/dist/appwrite/index.js +0 -5
  412. package/dist/appwrite/queryContracts/queryContracts.d.ts +0 -392
  413. package/dist/appwrite/queryContracts/queryContracts.d.ts.map +0 -1
  414. package/dist/appwrite/queryContracts/queryContracts.js +0 -299
  415. package/dist/appwrite/queryContracts/queryContracts.test.d.ts +0 -2
  416. package/dist/appwrite/queryContracts/queryContracts.test.d.ts.map +0 -1
  417. package/dist/appwrite/queryContracts/queryContracts.test.js +0 -39
  418. package/dist/appwrite/tableContract/identity.d.ts +0 -207
  419. package/dist/appwrite/tableContract/identity.d.ts.map +0 -1
  420. package/dist/appwrite/tableContract/identity.js +0 -169
  421. package/dist/appwrite/tableContract/index.d.ts +0 -3125
  422. package/dist/appwrite/tableContract/index.d.ts.map +0 -1
  423. package/dist/appwrite/tableContract/index.js +0 -94
  424. package/dist/appwrite/tableContract/index.test.d.ts +0 -2
  425. package/dist/appwrite/tableContract/index.test.d.ts.map +0 -1
  426. package/dist/appwrite/tableContract/index.test.js +0 -150
  427. package/dist/appwrite/tableContract/mailbox.d.ts +0 -276
  428. package/dist/appwrite/tableContract/mailbox.d.ts.map +0 -1
  429. package/dist/appwrite/tableContract/mailbox.js +0 -261
  430. package/dist/appwrite/tableContract/operational.d.ts +0 -247
  431. package/dist/appwrite/tableContract/operational.d.ts.map +0 -1
  432. package/dist/appwrite/tableContract/operational.js +0 -167
  433. package/dist/appwrite/tableContract/shared.d.ts +0 -145
  434. package/dist/appwrite/tableContract/shared.d.ts.map +0 -1
  435. package/dist/appwrite/tableContract/shared.js +0 -83
  436. package/dist/index.test.d.ts +0 -2
  437. package/dist/index.test.d.ts.map +0 -1
  438. package/dist/index.test.js +0 -106
  439. package/dist/schemas/models/mailboxAddress.test.d.ts +0 -2
  440. package/dist/schemas/models/mailboxAddress.test.d.ts.map +0 -1
  441. package/dist/schemas/models/mailboxAddress.test.js +0 -31
  442. package/dist/schemas/models/numericSemantics.test.d.ts +0 -2
  443. package/dist/schemas/models/numericSemantics.test.d.ts.map +0 -1
  444. package/dist/schemas/models/numericSemantics.test.js +0 -24
  445. package/dist/schemas/models/user.test.d.ts +0 -2
  446. package/dist/schemas/models/user.test.d.ts.map +0 -1
  447. package/dist/schemas/models/user.test.js +0 -18
  448. package/dist/schemas/scalars.d.ts +0 -13
  449. package/dist/schemas/scalars.d.ts.map +0 -1
  450. package/dist/schemas/scalars.js +0 -15
  451. package/dist/schemas/scalars.test.d.ts +0 -2
  452. package/dist/schemas/scalars.test.d.ts.map +0 -1
  453. package/dist/schemas/scalars.test.js +0 -44
  454. package/dist/schemas/schemaValues.test.d.ts +0 -2
  455. package/dist/schemas/schemaValues.test.d.ts.map +0 -1
  456. package/dist/schemas/schemaValues.test.js +0 -21
  457. package/dist/utils/threads/parseLabelIdList/parseLabelIdList.test.d.ts +0 -2
  458. package/dist/utils/threads/parseLabelIdList/parseLabelIdList.test.d.ts.map +0 -1
  459. package/dist/utils/threads/parseLabelIdList/parseLabelIdList.test.js +0 -18
  460. package/dist/utils/threads/processSearchTerm/processSearchTerm.test.d.ts +0 -2
  461. package/dist/utils/threads/processSearchTerm/processSearchTerm.test.d.ts.map +0 -1
  462. package/dist/utils/threads/processSearchTerm/processSearchTerm.test.js +0 -38
  463. package/dist/utils/valibot/index.d.ts +0 -3
  464. package/dist/utils/valibot/index.d.ts.map +0 -1
  465. package/dist/utils/valibot/index.js +0 -2
@@ -0,0 +1,326 @@
1
+ import * as v from 'valibot';
2
+ export declare const inviteNotFoundErrorSchema: v.ObjectSchema<{
3
+ readonly data: v.ObjectSchema<{
4
+ readonly code: v.LiteralSchema<"INVITE_NOT_FOUND", undefined>;
5
+ }, undefined>;
6
+ readonly status: v.LiteralSchema<404, undefined>;
7
+ }, undefined>;
8
+ export declare const authCodeExpiredErrorSchema: v.ObjectSchema<{
9
+ readonly data: v.ObjectSchema<{
10
+ readonly code: v.LiteralSchema<"AUTH_CODE_EXPIRED", undefined>;
11
+ }, undefined>;
12
+ readonly status: v.LiteralSchema<401, undefined>;
13
+ }, undefined>;
14
+ export declare const authCodeInvalidErrorSchema: v.ObjectSchema<{
15
+ readonly data: v.ObjectSchema<{
16
+ readonly code: v.LiteralSchema<"AUTH_CODE_INVALID", undefined>;
17
+ }, undefined>;
18
+ readonly status: v.LiteralSchema<401, undefined>;
19
+ }, undefined>;
20
+ export declare const authTooManyAttemptsErrorSchema: v.ObjectSchema<{
21
+ readonly data: v.ObjectSchema<{
22
+ readonly code: v.LiteralSchema<"AUTH_TOO_MANY_ATTEMPTS", undefined>;
23
+ }, undefined>;
24
+ readonly status: v.LiteralSchema<401, undefined>;
25
+ }, undefined>;
26
+ export declare const authCodePreviouslyUsedErrorSchema: v.ObjectSchema<{
27
+ readonly data: v.ObjectSchema<{
28
+ readonly code: v.LiteralSchema<"AUTH_CODE_PREVIOUSLY_USED", undefined>;
29
+ }, undefined>;
30
+ readonly status: v.LiteralSchema<401, undefined>;
31
+ }, undefined>;
32
+ export declare const authServerResponseUnexpectedErrorSchema: v.ObjectSchema<{
33
+ readonly data: v.ObjectSchema<{
34
+ readonly code: v.LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
35
+ }, undefined>;
36
+ readonly status: v.LiteralSchema<502, undefined>;
37
+ }, undefined>;
38
+ export declare const authFailedErrorSchema: v.ObjectSchema<{
39
+ readonly data: v.ObjectSchema<{
40
+ readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
41
+ }, undefined>;
42
+ readonly status: v.LiteralSchema<401, undefined>;
43
+ }, undefined>;
44
+ export declare const authRefreshTokenInvalid: v.ObjectSchema<{
45
+ readonly data: v.ObjectSchema<{
46
+ readonly code: v.LiteralSchema<"AUTH_REFRESH_TOKEN_INVALID", undefined>;
47
+ }, undefined>;
48
+ readonly status: v.LiteralSchema<401, undefined>;
49
+ }, undefined>;
50
+ export declare const userNotFoundErrorSchema: v.ObjectSchema<{
51
+ readonly data: v.ObjectSchema<{
52
+ readonly code: v.LiteralSchema<"USER_NOT_FOUND", undefined>;
53
+ }, undefined>;
54
+ readonly status: v.LiteralSchema<404, undefined>;
55
+ }, undefined>;
56
+ export declare const userMarkedForDeletionErrorSchema: v.ObjectSchema<{
57
+ readonly data: v.ObjectSchema<{
58
+ readonly code: v.LiteralSchema<"USER_MARKED_FOR_DELETION", undefined>;
59
+ }, undefined>;
60
+ readonly status: v.LiteralSchema<409, undefined>;
61
+ }, undefined>;
62
+ export declare const messageNotFoundErrorSchema: v.ObjectSchema<{
63
+ readonly data: v.ObjectSchema<{
64
+ readonly code: v.LiteralSchema<"MESSAGE_NOT_FOUND", undefined>;
65
+ }, undefined>;
66
+ readonly status: v.LiteralSchema<404, undefined>;
67
+ }, undefined>;
68
+ export declare const attachmentNotFoundErrorSchema: v.ObjectSchema<{
69
+ readonly data: v.ObjectSchema<{
70
+ readonly code: v.LiteralSchema<"ATTACHMENT_NOT_FOUND", undefined>;
71
+ }, undefined>;
72
+ readonly status: v.LiteralSchema<404, undefined>;
73
+ }, undefined>;
74
+ export declare const attachmentStateInvalidErrorSchema: v.ObjectSchema<{
75
+ readonly data: v.ObjectSchema<{
76
+ readonly code: v.LiteralSchema<"ATTACHMENT_STATE_INVALID", undefined>;
77
+ }, undefined>;
78
+ readonly status: v.LiteralSchema<409, undefined>;
79
+ }, undefined>;
80
+ export declare const accountNotFoundErrorSchema: v.ObjectSchema<{
81
+ readonly data: v.ObjectSchema<{
82
+ readonly code: v.LiteralSchema<"ACCOUNT_NOT_FOUND", undefined>;
83
+ }, undefined>;
84
+ readonly status: v.LiteralSchema<404, undefined>;
85
+ }, undefined>;
86
+ export declare const mutationRejectedErrorSchema: v.ObjectSchema<{
87
+ readonly data: v.ObjectSchema<{
88
+ readonly code: v.LiteralSchema<"MUTATION_REJECTED", undefined>;
89
+ }, undefined>;
90
+ readonly status: v.LiteralSchema<409, undefined>;
91
+ }, undefined>;
92
+ export declare const threadNotFoundErrorSchema: v.ObjectSchema<{
93
+ readonly data: v.ObjectSchema<{
94
+ readonly code: v.LiteralSchema<"THREAD_NOT_FOUND", undefined>;
95
+ }, undefined>;
96
+ readonly status: v.LiteralSchema<404, undefined>;
97
+ }, undefined>;
98
+ export declare const draftNotFoundErrorSchema: v.ObjectSchema<{
99
+ readonly data: v.ObjectSchema<{
100
+ readonly code: v.LiteralSchema<"DRAFT_NOT_FOUND", undefined>;
101
+ }, undefined>;
102
+ readonly status: v.LiteralSchema<404, undefined>;
103
+ }, undefined>;
104
+ export declare const contactNotFoundErrorSchema: v.ObjectSchema<{
105
+ readonly data: v.ObjectSchema<{
106
+ readonly code: v.LiteralSchema<"CONTACT_NOT_FOUND", undefined>;
107
+ }, undefined>;
108
+ readonly status: v.LiteralSchema<404, undefined>;
109
+ }, undefined>;
110
+ export declare const labelAlreadyExistsErrorSchema: v.ObjectSchema<{
111
+ readonly data: v.ObjectSchema<{
112
+ readonly code: v.LiteralSchema<"LABEL_ALREADY_EXISTS", undefined>;
113
+ }, undefined>;
114
+ readonly status: v.LiteralSchema<409, undefined>;
115
+ }, undefined>;
116
+ export declare const labelNotFoundErrorSchema: v.ObjectSchema<{
117
+ readonly data: v.ObjectSchema<{
118
+ readonly code: v.LiteralSchema<"LABEL_NOT_FOUND", undefined>;
119
+ }, undefined>;
120
+ readonly status: v.LiteralSchema<404, undefined>;
121
+ }, undefined>;
122
+ export declare const aliasNotFoundErrorSchema: v.ObjectSchema<{
123
+ readonly data: v.ObjectSchema<{
124
+ readonly code: v.LiteralSchema<"ALIAS_NOT_FOUND", undefined>;
125
+ }, undefined>;
126
+ readonly status: v.LiteralSchema<404, undefined>;
127
+ }, undefined>;
128
+ export declare const viewNotFoundErrorSchema: v.ObjectSchema<{
129
+ readonly data: v.ObjectSchema<{
130
+ readonly code: v.LiteralSchema<"VIEW_NOT_FOUND", undefined>;
131
+ }, undefined>;
132
+ readonly status: v.LiteralSchema<404, undefined>;
133
+ }, undefined>;
134
+ export declare const validationFailedErrorSchema: v.ObjectSchema<{
135
+ readonly data: v.ObjectSchema<{
136
+ readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
137
+ readonly issues: v.ObjectSchema<{
138
+ readonly nested: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
139
+ readonly other: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
140
+ readonly root: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
141
+ }, undefined>;
142
+ }, undefined>;
143
+ readonly status: v.LiteralSchema<400, undefined>;
144
+ }, undefined>;
145
+ export declare const fileTooLargeErrorSchema: v.ObjectSchema<{
146
+ readonly data: v.ObjectSchema<{
147
+ readonly code: v.LiteralSchema<"FILE_TOO_LARGE", undefined>;
148
+ }, undefined>;
149
+ readonly status: v.LiteralSchema<413, undefined>;
150
+ }, undefined>;
151
+ export declare const invalidFileTypeErrorSchema: v.ObjectSchema<{
152
+ readonly data: v.ObjectSchema<{
153
+ readonly code: v.LiteralSchema<"INVALID_FILE_TYPE", undefined>;
154
+ }, undefined>;
155
+ readonly status: v.LiteralSchema<415, undefined>;
156
+ }, undefined>;
157
+ export declare const invalidImageDimensionsErrorSchema: v.ObjectSchema<{
158
+ readonly data: v.ObjectSchema<{
159
+ readonly code: v.LiteralSchema<"INVALID_IMAGE_DIMENSIONS", undefined>;
160
+ }, undefined>;
161
+ readonly status: v.LiteralSchema<415, undefined>;
162
+ }, undefined>;
163
+ export declare const errors: {
164
+ readonly accountNotFoundErrorSchema: v.ObjectSchema<{
165
+ readonly data: v.ObjectSchema<{
166
+ readonly code: v.LiteralSchema<"ACCOUNT_NOT_FOUND", undefined>;
167
+ }, undefined>;
168
+ readonly status: v.LiteralSchema<404, undefined>;
169
+ }, undefined>;
170
+ readonly aliasNotFoundErrorSchema: v.ObjectSchema<{
171
+ readonly data: v.ObjectSchema<{
172
+ readonly code: v.LiteralSchema<"ALIAS_NOT_FOUND", undefined>;
173
+ }, undefined>;
174
+ readonly status: v.LiteralSchema<404, undefined>;
175
+ }, undefined>;
176
+ readonly attachmentNotFoundErrorSchema: v.ObjectSchema<{
177
+ readonly data: v.ObjectSchema<{
178
+ readonly code: v.LiteralSchema<"ATTACHMENT_NOT_FOUND", undefined>;
179
+ }, undefined>;
180
+ readonly status: v.LiteralSchema<404, undefined>;
181
+ }, undefined>;
182
+ readonly attachmentStateInvalidErrorSchema: v.ObjectSchema<{
183
+ readonly data: v.ObjectSchema<{
184
+ readonly code: v.LiteralSchema<"ATTACHMENT_STATE_INVALID", undefined>;
185
+ }, undefined>;
186
+ readonly status: v.LiteralSchema<409, undefined>;
187
+ }, undefined>;
188
+ readonly authCodeExpiredErrorSchema: v.ObjectSchema<{
189
+ readonly data: v.ObjectSchema<{
190
+ readonly code: v.LiteralSchema<"AUTH_CODE_EXPIRED", undefined>;
191
+ }, undefined>;
192
+ readonly status: v.LiteralSchema<401, undefined>;
193
+ }, undefined>;
194
+ readonly authCodeInvalidErrorSchema: v.ObjectSchema<{
195
+ readonly data: v.ObjectSchema<{
196
+ readonly code: v.LiteralSchema<"AUTH_CODE_INVALID", undefined>;
197
+ }, undefined>;
198
+ readonly status: v.LiteralSchema<401, undefined>;
199
+ }, undefined>;
200
+ readonly authCodePreviouslyUsedErrorSchema: v.ObjectSchema<{
201
+ readonly data: v.ObjectSchema<{
202
+ readonly code: v.LiteralSchema<"AUTH_CODE_PREVIOUSLY_USED", undefined>;
203
+ }, undefined>;
204
+ readonly status: v.LiteralSchema<401, undefined>;
205
+ }, undefined>;
206
+ readonly authFailedErrorSchema: v.ObjectSchema<{
207
+ readonly data: v.ObjectSchema<{
208
+ readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
209
+ }, undefined>;
210
+ readonly status: v.LiteralSchema<401, undefined>;
211
+ }, undefined>;
212
+ readonly authRefreshTokenInvalid: v.ObjectSchema<{
213
+ readonly data: v.ObjectSchema<{
214
+ readonly code: v.LiteralSchema<"AUTH_REFRESH_TOKEN_INVALID", undefined>;
215
+ }, undefined>;
216
+ readonly status: v.LiteralSchema<401, undefined>;
217
+ }, undefined>;
218
+ readonly authServerResponseUnexpectedErrorSchema: v.ObjectSchema<{
219
+ readonly data: v.ObjectSchema<{
220
+ readonly code: v.LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
221
+ }, undefined>;
222
+ readonly status: v.LiteralSchema<502, undefined>;
223
+ }, undefined>;
224
+ readonly authTooManyAttemptsErrorSchema: v.ObjectSchema<{
225
+ readonly data: v.ObjectSchema<{
226
+ readonly code: v.LiteralSchema<"AUTH_TOO_MANY_ATTEMPTS", undefined>;
227
+ }, undefined>;
228
+ readonly status: v.LiteralSchema<401, undefined>;
229
+ }, undefined>;
230
+ readonly contactNotFoundErrorSchema: v.ObjectSchema<{
231
+ readonly data: v.ObjectSchema<{
232
+ readonly code: v.LiteralSchema<"CONTACT_NOT_FOUND", undefined>;
233
+ }, undefined>;
234
+ readonly status: v.LiteralSchema<404, undefined>;
235
+ }, undefined>;
236
+ readonly draftNotFoundErrorSchema: v.ObjectSchema<{
237
+ readonly data: v.ObjectSchema<{
238
+ readonly code: v.LiteralSchema<"DRAFT_NOT_FOUND", undefined>;
239
+ }, undefined>;
240
+ readonly status: v.LiteralSchema<404, undefined>;
241
+ }, undefined>;
242
+ readonly fileTooLargeErrorSchema: v.ObjectSchema<{
243
+ readonly data: v.ObjectSchema<{
244
+ readonly code: v.LiteralSchema<"FILE_TOO_LARGE", undefined>;
245
+ }, undefined>;
246
+ readonly status: v.LiteralSchema<413, undefined>;
247
+ }, undefined>;
248
+ readonly invalidFileTypeErrorSchema: v.ObjectSchema<{
249
+ readonly data: v.ObjectSchema<{
250
+ readonly code: v.LiteralSchema<"INVALID_FILE_TYPE", undefined>;
251
+ }, undefined>;
252
+ readonly status: v.LiteralSchema<415, undefined>;
253
+ }, undefined>;
254
+ readonly invalidImageDimensionsErrorSchema: v.ObjectSchema<{
255
+ readonly data: v.ObjectSchema<{
256
+ readonly code: v.LiteralSchema<"INVALID_IMAGE_DIMENSIONS", undefined>;
257
+ }, undefined>;
258
+ readonly status: v.LiteralSchema<415, undefined>;
259
+ }, undefined>;
260
+ readonly inviteNotFoundErrorSchema: v.ObjectSchema<{
261
+ readonly data: v.ObjectSchema<{
262
+ readonly code: v.LiteralSchema<"INVITE_NOT_FOUND", undefined>;
263
+ }, undefined>;
264
+ readonly status: v.LiteralSchema<404, undefined>;
265
+ }, undefined>;
266
+ readonly labelAlreadyExistsErrorSchema: v.ObjectSchema<{
267
+ readonly data: v.ObjectSchema<{
268
+ readonly code: v.LiteralSchema<"LABEL_ALREADY_EXISTS", undefined>;
269
+ }, undefined>;
270
+ readonly status: v.LiteralSchema<409, undefined>;
271
+ }, undefined>;
272
+ readonly labelNotFoundErrorSchema: v.ObjectSchema<{
273
+ readonly data: v.ObjectSchema<{
274
+ readonly code: v.LiteralSchema<"LABEL_NOT_FOUND", undefined>;
275
+ }, undefined>;
276
+ readonly status: v.LiteralSchema<404, undefined>;
277
+ }, undefined>;
278
+ readonly messageNotFoundErrorSchema: v.ObjectSchema<{
279
+ readonly data: v.ObjectSchema<{
280
+ readonly code: v.LiteralSchema<"MESSAGE_NOT_FOUND", undefined>;
281
+ }, undefined>;
282
+ readonly status: v.LiteralSchema<404, undefined>;
283
+ }, undefined>;
284
+ readonly mutationRejectedErrorSchema: v.ObjectSchema<{
285
+ readonly data: v.ObjectSchema<{
286
+ readonly code: v.LiteralSchema<"MUTATION_REJECTED", undefined>;
287
+ }, undefined>;
288
+ readonly status: v.LiteralSchema<409, undefined>;
289
+ }, undefined>;
290
+ readonly threadNotFoundErrorSchema: v.ObjectSchema<{
291
+ readonly data: v.ObjectSchema<{
292
+ readonly code: v.LiteralSchema<"THREAD_NOT_FOUND", undefined>;
293
+ }, undefined>;
294
+ readonly status: v.LiteralSchema<404, undefined>;
295
+ }, undefined>;
296
+ readonly userMarkedForDeletionErrorSchema: v.ObjectSchema<{
297
+ readonly data: v.ObjectSchema<{
298
+ readonly code: v.LiteralSchema<"USER_MARKED_FOR_DELETION", undefined>;
299
+ }, undefined>;
300
+ readonly status: v.LiteralSchema<409, undefined>;
301
+ }, undefined>;
302
+ readonly userNotFoundErrorSchema: v.ObjectSchema<{
303
+ readonly data: v.ObjectSchema<{
304
+ readonly code: v.LiteralSchema<"USER_NOT_FOUND", undefined>;
305
+ }, undefined>;
306
+ readonly status: v.LiteralSchema<404, undefined>;
307
+ }, undefined>;
308
+ readonly validationFailedErrorSchema: v.ObjectSchema<{
309
+ readonly data: v.ObjectSchema<{
310
+ readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
311
+ readonly issues: v.ObjectSchema<{
312
+ readonly nested: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
313
+ readonly other: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
314
+ readonly root: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
315
+ }, undefined>;
316
+ }, undefined>;
317
+ readonly status: v.LiteralSchema<400, undefined>;
318
+ }, undefined>;
319
+ readonly viewNotFoundErrorSchema: v.ObjectSchema<{
320
+ readonly data: v.ObjectSchema<{
321
+ readonly code: v.LiteralSchema<"VIEW_NOT_FOUND", undefined>;
322
+ }, undefined>;
323
+ readonly status: v.LiteralSchema<404, undefined>;
324
+ }, undefined>;
325
+ };
326
+ //# sourceMappingURL=errors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/sdk/validation/errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,eAAO,MAAM,yBAAyB;;;;;aAGpC,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;aAGrC,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;aAGrC,CAAA;AAEF,eAAO,MAAM,8BAA8B;;;;;aAGzC,CAAA;AAEF,eAAO,MAAM,iCAAiC;;;;;aAG5C,CAAA;AAEF,eAAO,MAAM,uCAAuC;;;;;aAGlD,CAAA;AAEF,eAAO,MAAM,qBAAqB;;;;;aAGhC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;aAGlC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;aAGlC,CAAA;AAEF,eAAO,MAAM,gCAAgC;;;;;aAG3C,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;aAGrC,CAAA;AAEF,eAAO,MAAM,6BAA6B;;;;;aAGxC,CAAA;AAEF,eAAO,MAAM,iCAAiC;;;;;aAG5C,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;aAGrC,CAAA;AAEF,eAAO,MAAM,2BAA2B;;;;;aAGtC,CAAA;AAEF,eAAO,MAAM,yBAAyB;;;;;aAGpC,CAAA;AAEF,eAAO,MAAM,wBAAwB;;;;;aAGnC,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;aAGrC,CAAA;AAEF,eAAO,MAAM,6BAA6B;;;;;aAGxC,CAAA;AAEF,eAAO,MAAM,wBAAwB;;;;;aAGnC,CAAA;AAEF,eAAO,MAAM,wBAAwB;;;;;aAGnC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;aAGlC,CAAA;AAEF,eAAO,MAAM,2BAA2B;;;;;;;;;;aAUtC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;aAGlC,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;aAGrC,CAAA;AAEF,eAAO,MAAM,iCAAiC;;;;;aAG5C,CAAA;AAEF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2BT,CAAA"}
@@ -0,0 +1,140 @@
1
+ import * as v from 'valibot';
2
+ export const inviteNotFoundErrorSchema = v.object({
3
+ data: v.object({ code: v.literal('INVITE_NOT_FOUND') }),
4
+ status: v.literal(404),
5
+ });
6
+ export const authCodeExpiredErrorSchema = v.object({
7
+ data: v.object({ code: v.literal('AUTH_CODE_EXPIRED') }),
8
+ status: v.literal(401),
9
+ });
10
+ export const authCodeInvalidErrorSchema = v.object({
11
+ data: v.object({ code: v.literal('AUTH_CODE_INVALID') }),
12
+ status: v.literal(401),
13
+ });
14
+ export const authTooManyAttemptsErrorSchema = v.object({
15
+ data: v.object({ code: v.literal('AUTH_TOO_MANY_ATTEMPTS') }),
16
+ status: v.literal(401),
17
+ });
18
+ export const authCodePreviouslyUsedErrorSchema = v.object({
19
+ data: v.object({ code: v.literal('AUTH_CODE_PREVIOUSLY_USED') }),
20
+ status: v.literal(401),
21
+ });
22
+ export const authServerResponseUnexpectedErrorSchema = v.object({
23
+ data: v.object({ code: v.literal('AUTH_SERVER_RESPONSE_UNEXPECTED') }),
24
+ status: v.literal(502),
25
+ });
26
+ export const authFailedErrorSchema = v.object({
27
+ data: v.object({ code: v.literal('AUTHENTICATION_FAILED') }),
28
+ status: v.literal(401),
29
+ });
30
+ export const authRefreshTokenInvalid = v.object({
31
+ data: v.object({ code: v.literal('AUTH_REFRESH_TOKEN_INVALID') }),
32
+ status: v.literal(401),
33
+ });
34
+ export const userNotFoundErrorSchema = v.object({
35
+ data: v.object({ code: v.literal('USER_NOT_FOUND') }),
36
+ status: v.literal(404),
37
+ });
38
+ export const userMarkedForDeletionErrorSchema = v.object({
39
+ data: v.object({ code: v.literal('USER_MARKED_FOR_DELETION') }),
40
+ status: v.literal(409),
41
+ });
42
+ export const messageNotFoundErrorSchema = v.object({
43
+ data: v.object({ code: v.literal('MESSAGE_NOT_FOUND') }),
44
+ status: v.literal(404),
45
+ });
46
+ export const attachmentNotFoundErrorSchema = v.object({
47
+ data: v.object({ code: v.literal('ATTACHMENT_NOT_FOUND') }),
48
+ status: v.literal(404),
49
+ });
50
+ export const attachmentStateInvalidErrorSchema = v.object({
51
+ data: v.object({ code: v.literal('ATTACHMENT_STATE_INVALID') }),
52
+ status: v.literal(409),
53
+ });
54
+ export const accountNotFoundErrorSchema = v.object({
55
+ data: v.object({ code: v.literal('ACCOUNT_NOT_FOUND') }),
56
+ status: v.literal(404),
57
+ });
58
+ export const mutationRejectedErrorSchema = v.object({
59
+ data: v.object({ code: v.literal('MUTATION_REJECTED') }),
60
+ status: v.literal(409),
61
+ });
62
+ export const threadNotFoundErrorSchema = v.object({
63
+ data: v.object({ code: v.literal('THREAD_NOT_FOUND') }),
64
+ status: v.literal(404),
65
+ });
66
+ export const draftNotFoundErrorSchema = v.object({
67
+ data: v.object({ code: v.literal('DRAFT_NOT_FOUND') }),
68
+ status: v.literal(404),
69
+ });
70
+ export const contactNotFoundErrorSchema = v.object({
71
+ data: v.object({ code: v.literal('CONTACT_NOT_FOUND') }),
72
+ status: v.literal(404),
73
+ });
74
+ export const labelAlreadyExistsErrorSchema = v.object({
75
+ data: v.object({ code: v.literal('LABEL_ALREADY_EXISTS') }),
76
+ status: v.literal(409),
77
+ });
78
+ export const labelNotFoundErrorSchema = v.object({
79
+ data: v.object({ code: v.literal('LABEL_NOT_FOUND') }),
80
+ status: v.literal(404),
81
+ });
82
+ export const aliasNotFoundErrorSchema = v.object({
83
+ data: v.object({ code: v.literal('ALIAS_NOT_FOUND') }),
84
+ status: v.literal(404),
85
+ });
86
+ export const viewNotFoundErrorSchema = v.object({
87
+ data: v.object({ code: v.literal('VIEW_NOT_FOUND') }),
88
+ status: v.literal(404),
89
+ });
90
+ export const validationFailedErrorSchema = v.object({
91
+ data: v.object({
92
+ code: v.literal('VALIDATION_FAILED'),
93
+ issues: v.object({
94
+ nested: v.optional(v.record(v.string(), v.optional(v.array(v.string())))),
95
+ other: v.optional(v.array(v.string())),
96
+ root: v.optional(v.array(v.string())),
97
+ }),
98
+ }),
99
+ status: v.literal(400),
100
+ });
101
+ export const fileTooLargeErrorSchema = v.object({
102
+ data: v.object({ code: v.literal('FILE_TOO_LARGE') }),
103
+ status: v.literal(413),
104
+ });
105
+ export const invalidFileTypeErrorSchema = v.object({
106
+ data: v.object({ code: v.literal('INVALID_FILE_TYPE') }),
107
+ status: v.literal(415),
108
+ });
109
+ export const invalidImageDimensionsErrorSchema = v.object({
110
+ data: v.object({ code: v.literal('INVALID_IMAGE_DIMENSIONS') }),
111
+ status: v.literal(415),
112
+ });
113
+ export const errors = {
114
+ accountNotFoundErrorSchema,
115
+ aliasNotFoundErrorSchema,
116
+ attachmentNotFoundErrorSchema,
117
+ attachmentStateInvalidErrorSchema,
118
+ authCodeExpiredErrorSchema,
119
+ authCodeInvalidErrorSchema,
120
+ authCodePreviouslyUsedErrorSchema,
121
+ authFailedErrorSchema,
122
+ authRefreshTokenInvalid,
123
+ authServerResponseUnexpectedErrorSchema,
124
+ authTooManyAttemptsErrorSchema,
125
+ contactNotFoundErrorSchema,
126
+ draftNotFoundErrorSchema,
127
+ fileTooLargeErrorSchema,
128
+ invalidFileTypeErrorSchema,
129
+ invalidImageDimensionsErrorSchema,
130
+ inviteNotFoundErrorSchema,
131
+ labelAlreadyExistsErrorSchema,
132
+ labelNotFoundErrorSchema,
133
+ messageNotFoundErrorSchema,
134
+ mutationRejectedErrorSchema,
135
+ threadNotFoundErrorSchema,
136
+ userMarkedForDeletionErrorSchema,
137
+ userNotFoundErrorSchema,
138
+ validationFailedErrorSchema,
139
+ viewNotFoundErrorSchema,
140
+ };
@@ -0,0 +1,172 @@
1
+ export declare const validation: {
2
+ errors: {
3
+ readonly accountNotFoundErrorSchema: import("valibot").ObjectSchema<{
4
+ readonly data: import("valibot").ObjectSchema<{
5
+ readonly code: import("valibot").LiteralSchema<"ACCOUNT_NOT_FOUND", undefined>;
6
+ }, undefined>;
7
+ readonly status: import("valibot").LiteralSchema<404, undefined>;
8
+ }, undefined>;
9
+ readonly aliasNotFoundErrorSchema: import("valibot").ObjectSchema<{
10
+ readonly data: import("valibot").ObjectSchema<{
11
+ readonly code: import("valibot").LiteralSchema<"ALIAS_NOT_FOUND", undefined>;
12
+ }, undefined>;
13
+ readonly status: import("valibot").LiteralSchema<404, undefined>;
14
+ }, undefined>;
15
+ readonly attachmentNotFoundErrorSchema: import("valibot").ObjectSchema<{
16
+ readonly data: import("valibot").ObjectSchema<{
17
+ readonly code: import("valibot").LiteralSchema<"ATTACHMENT_NOT_FOUND", undefined>;
18
+ }, undefined>;
19
+ readonly status: import("valibot").LiteralSchema<404, undefined>;
20
+ }, undefined>;
21
+ readonly attachmentStateInvalidErrorSchema: import("valibot").ObjectSchema<{
22
+ readonly data: import("valibot").ObjectSchema<{
23
+ readonly code: import("valibot").LiteralSchema<"ATTACHMENT_STATE_INVALID", undefined>;
24
+ }, undefined>;
25
+ readonly status: import("valibot").LiteralSchema<409, undefined>;
26
+ }, undefined>;
27
+ readonly authCodeExpiredErrorSchema: import("valibot").ObjectSchema<{
28
+ readonly data: import("valibot").ObjectSchema<{
29
+ readonly code: import("valibot").LiteralSchema<"AUTH_CODE_EXPIRED", undefined>;
30
+ }, undefined>;
31
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
32
+ }, undefined>;
33
+ readonly authCodeInvalidErrorSchema: import("valibot").ObjectSchema<{
34
+ readonly data: import("valibot").ObjectSchema<{
35
+ readonly code: import("valibot").LiteralSchema<"AUTH_CODE_INVALID", undefined>;
36
+ }, undefined>;
37
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
38
+ }, undefined>;
39
+ readonly authCodePreviouslyUsedErrorSchema: import("valibot").ObjectSchema<{
40
+ readonly data: import("valibot").ObjectSchema<{
41
+ readonly code: import("valibot").LiteralSchema<"AUTH_CODE_PREVIOUSLY_USED", undefined>;
42
+ }, undefined>;
43
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
44
+ }, undefined>;
45
+ readonly authFailedErrorSchema: import("valibot").ObjectSchema<{
46
+ readonly data: import("valibot").ObjectSchema<{
47
+ readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
48
+ }, undefined>;
49
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
50
+ }, undefined>;
51
+ readonly authRefreshTokenInvalid: import("valibot").ObjectSchema<{
52
+ readonly data: import("valibot").ObjectSchema<{
53
+ readonly code: import("valibot").LiteralSchema<"AUTH_REFRESH_TOKEN_INVALID", undefined>;
54
+ }, undefined>;
55
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
56
+ }, undefined>;
57
+ readonly authServerResponseUnexpectedErrorSchema: import("valibot").ObjectSchema<{
58
+ readonly data: import("valibot").ObjectSchema<{
59
+ readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
60
+ }, undefined>;
61
+ readonly status: import("valibot").LiteralSchema<502, undefined>;
62
+ }, undefined>;
63
+ readonly authTooManyAttemptsErrorSchema: import("valibot").ObjectSchema<{
64
+ readonly data: import("valibot").ObjectSchema<{
65
+ readonly code: import("valibot").LiteralSchema<"AUTH_TOO_MANY_ATTEMPTS", undefined>;
66
+ }, undefined>;
67
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
68
+ }, undefined>;
69
+ readonly contactNotFoundErrorSchema: import("valibot").ObjectSchema<{
70
+ readonly data: import("valibot").ObjectSchema<{
71
+ readonly code: import("valibot").LiteralSchema<"CONTACT_NOT_FOUND", undefined>;
72
+ }, undefined>;
73
+ readonly status: import("valibot").LiteralSchema<404, undefined>;
74
+ }, undefined>;
75
+ readonly draftNotFoundErrorSchema: import("valibot").ObjectSchema<{
76
+ readonly data: import("valibot").ObjectSchema<{
77
+ readonly code: import("valibot").LiteralSchema<"DRAFT_NOT_FOUND", undefined>;
78
+ }, undefined>;
79
+ readonly status: import("valibot").LiteralSchema<404, undefined>;
80
+ }, undefined>;
81
+ readonly fileTooLargeErrorSchema: import("valibot").ObjectSchema<{
82
+ readonly data: import("valibot").ObjectSchema<{
83
+ readonly code: import("valibot").LiteralSchema<"FILE_TOO_LARGE", undefined>;
84
+ }, undefined>;
85
+ readonly status: import("valibot").LiteralSchema<413, undefined>;
86
+ }, undefined>;
87
+ readonly invalidFileTypeErrorSchema: import("valibot").ObjectSchema<{
88
+ readonly data: import("valibot").ObjectSchema<{
89
+ readonly code: import("valibot").LiteralSchema<"INVALID_FILE_TYPE", undefined>;
90
+ }, undefined>;
91
+ readonly status: import("valibot").LiteralSchema<415, undefined>;
92
+ }, undefined>;
93
+ readonly invalidImageDimensionsErrorSchema: import("valibot").ObjectSchema<{
94
+ readonly data: import("valibot").ObjectSchema<{
95
+ readonly code: import("valibot").LiteralSchema<"INVALID_IMAGE_DIMENSIONS", undefined>;
96
+ }, undefined>;
97
+ readonly status: import("valibot").LiteralSchema<415, undefined>;
98
+ }, undefined>;
99
+ readonly inviteNotFoundErrorSchema: import("valibot").ObjectSchema<{
100
+ readonly data: import("valibot").ObjectSchema<{
101
+ readonly code: import("valibot").LiteralSchema<"INVITE_NOT_FOUND", undefined>;
102
+ }, undefined>;
103
+ readonly status: import("valibot").LiteralSchema<404, undefined>;
104
+ }, undefined>;
105
+ readonly labelAlreadyExistsErrorSchema: import("valibot").ObjectSchema<{
106
+ readonly data: import("valibot").ObjectSchema<{
107
+ readonly code: import("valibot").LiteralSchema<"LABEL_ALREADY_EXISTS", undefined>;
108
+ }, undefined>;
109
+ readonly status: import("valibot").LiteralSchema<409, undefined>;
110
+ }, undefined>;
111
+ readonly labelNotFoundErrorSchema: import("valibot").ObjectSchema<{
112
+ readonly data: import("valibot").ObjectSchema<{
113
+ readonly code: import("valibot").LiteralSchema<"LABEL_NOT_FOUND", undefined>;
114
+ }, undefined>;
115
+ readonly status: import("valibot").LiteralSchema<404, undefined>;
116
+ }, undefined>;
117
+ readonly messageNotFoundErrorSchema: import("valibot").ObjectSchema<{
118
+ readonly data: import("valibot").ObjectSchema<{
119
+ readonly code: import("valibot").LiteralSchema<"MESSAGE_NOT_FOUND", undefined>;
120
+ }, undefined>;
121
+ readonly status: import("valibot").LiteralSchema<404, undefined>;
122
+ }, undefined>;
123
+ readonly mutationRejectedErrorSchema: import("valibot").ObjectSchema<{
124
+ readonly data: import("valibot").ObjectSchema<{
125
+ readonly code: import("valibot").LiteralSchema<"MUTATION_REJECTED", undefined>;
126
+ }, undefined>;
127
+ readonly status: import("valibot").LiteralSchema<409, undefined>;
128
+ }, undefined>;
129
+ readonly threadNotFoundErrorSchema: import("valibot").ObjectSchema<{
130
+ readonly data: import("valibot").ObjectSchema<{
131
+ readonly code: import("valibot").LiteralSchema<"THREAD_NOT_FOUND", undefined>;
132
+ }, undefined>;
133
+ readonly status: import("valibot").LiteralSchema<404, undefined>;
134
+ }, undefined>;
135
+ readonly userMarkedForDeletionErrorSchema: import("valibot").ObjectSchema<{
136
+ readonly data: import("valibot").ObjectSchema<{
137
+ readonly code: import("valibot").LiteralSchema<"USER_MARKED_FOR_DELETION", undefined>;
138
+ }, undefined>;
139
+ readonly status: import("valibot").LiteralSchema<409, undefined>;
140
+ }, undefined>;
141
+ readonly userNotFoundErrorSchema: import("valibot").ObjectSchema<{
142
+ readonly data: import("valibot").ObjectSchema<{
143
+ readonly code: import("valibot").LiteralSchema<"USER_NOT_FOUND", undefined>;
144
+ }, undefined>;
145
+ readonly status: import("valibot").LiteralSchema<404, undefined>;
146
+ }, undefined>;
147
+ readonly validationFailedErrorSchema: import("valibot").ObjectSchema<{
148
+ readonly data: import("valibot").ObjectSchema<{
149
+ readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
150
+ readonly issues: import("valibot").ObjectSchema<{
151
+ readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
152
+ readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
153
+ readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
154
+ }, undefined>;
155
+ }, undefined>;
156
+ readonly status: import("valibot").LiteralSchema<400, undefined>;
157
+ }, undefined>;
158
+ readonly viewNotFoundErrorSchema: import("valibot").ObjectSchema<{
159
+ readonly data: import("valibot").ObjectSchema<{
160
+ readonly code: import("valibot").LiteralSchema<"VIEW_NOT_FOUND", undefined>;
161
+ }, undefined>;
162
+ readonly status: import("valibot").LiteralSchema<404, undefined>;
163
+ }, undefined>;
164
+ };
165
+ utils: {
166
+ flattenRequirements: <T extends Record<string, any>>(schema: import("valibot").ObjectSchema<T, any>) => { [K in keyof T]: {
167
+ maxLength?: number;
168
+ minLength?: number;
169
+ }; };
170
+ };
171
+ };
172
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/validation/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAoB,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { errors } from './errors';
2
+ import { utils } from './utils';
3
+ export const validation = { errors, utils };
@@ -0,0 +1,11 @@
1
+ import type * as v from 'valibot';
2
+ type SchemaRequirements = {
3
+ maxLength?: number;
4
+ minLength?: number;
5
+ };
6
+ type FlattenedRequirements<T> = {
7
+ [K in keyof T]: SchemaRequirements;
8
+ };
9
+ export declare const flattenRequirements: <T extends Record<string, any>>(schema: v.ObjectSchema<T, any>) => FlattenedRequirements<T>;
10
+ export {};
11
+ //# sourceMappingURL=flattenRequirements.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flattenRequirements.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/validation/utils/flattenRequirements/flattenRequirements.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,CAAC,MAAM,SAAS,CAAA;AAEjC,KAAK,kBAAkB,GAAG;IACxB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,KAAK,qBAAqB,CAAC,CAAC,IAAI;KAC7B,CAAC,IAAI,MAAM,CAAC,GAAG,kBAAkB;CACnC,CAAA;AAED,eAAO,MAAM,mBAAmB,GAAI,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,UACvD,CAAC,CAAC,YAAY,CAAC,CAAC,EAAE,GAAG,CAAC,KAC7B,qBAAqB,CAAC,CAAC,CA0BzB,CAAA"}