@marcoappio/marco-config 2.0.599 → 3.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 (335) hide show
  1. package/dist/appwrite/appwrite.d.ts +12 -0
  2. package/dist/appwrite/appwrite.d.ts.map +1 -1
  3. package/dist/appwrite/appwrite.js +32 -0
  4. package/dist/appwrite/appwrite.test.js +16 -0
  5. package/dist/appwrite/index.d.ts +1 -1
  6. package/dist/appwrite/index.d.ts.map +1 -1
  7. package/dist/constants/index.d.ts +0 -8
  8. package/dist/constants/index.d.ts.map +1 -1
  9. package/dist/constants/index.js +0 -2
  10. package/dist/index.d.ts +3 -5
  11. package/dist/index.d.ts.map +1 -1
  12. package/dist/index.js +1 -3
  13. package/dist/index.test.d.ts +2 -0
  14. package/dist/index.test.d.ts.map +1 -0
  15. package/dist/index.test.js +26 -0
  16. package/dist/schemas/index.d.ts +1 -429
  17. package/dist/schemas/index.d.ts.map +1 -1
  18. package/dist/schemas/index.js +1 -10
  19. package/dist/schemas/models/index.d.ts +1 -1
  20. package/dist/schemas/models/index.d.ts.map +1 -1
  21. package/dist/schemas/models/index.js +1 -1
  22. package/dist/schemas/models/user.d.ts +0 -68
  23. package/dist/schemas/models/user.d.ts.map +1 -1
  24. package/dist/schemas/models/user.js +0 -19
  25. package/dist/types/index.d.ts +0 -6
  26. package/dist/types/index.d.ts.map +1 -1
  27. package/dist/types/index.js +0 -6
  28. package/dist/utils/index.d.ts +1 -0
  29. package/dist/utils/index.d.ts.map +1 -1
  30. package/dist/utils/index.js +1 -0
  31. package/dist/utils/validation/flattenRequirements/flattenRequirements.d.ts +8 -0
  32. package/dist/utils/validation/flattenRequirements/flattenRequirements.d.ts.map +1 -0
  33. package/dist/utils/validation/flattenRequirements/flattenRequirements.js +37 -0
  34. package/dist/utils/validation/flattenRequirements/flattenRequirements.test.d.ts +2 -0
  35. package/dist/utils/validation/flattenRequirements/flattenRequirements.test.d.ts.map +1 -0
  36. package/dist/utils/validation/flattenRequirements/flattenRequirements.test.js +25 -0
  37. package/dist/utils/validation/flattenRequirements/index.d.ts +2 -0
  38. package/dist/utils/validation/flattenRequirements/index.d.ts.map +1 -0
  39. package/dist/utils/validation/index.d.ts +2 -0
  40. package/dist/utils/validation/index.d.ts.map +1 -0
  41. package/dist/{sdk/validation/utils/flattenRequirements/index.d.ts → utils/validation/index.js} +0 -1
  42. package/package.json +4 -4
  43. package/dist/constants/api.d.ts +0 -9
  44. package/dist/constants/api.d.ts.map +0 -1
  45. package/dist/constants/api.js +0 -8
  46. package/dist/marcoPublicConfig.d.ts +0 -52
  47. package/dist/marcoPublicConfig.d.ts.map +0 -1
  48. package/dist/marcoPublicConfig.js +0 -144
  49. package/dist/marcoPublicConfig.test.d.ts +0 -2
  50. package/dist/marcoPublicConfig.test.d.ts.map +0 -1
  51. package/dist/marcoPublicConfig.test.js +0 -7
  52. package/dist/schemas/mutators/index.d.ts +0 -2
  53. package/dist/schemas/mutators/index.d.ts.map +0 -1
  54. package/dist/schemas/mutators/index.js +0 -1
  55. package/dist/schemas/mutators/mutatorSchemas.d.ts +0 -314
  56. package/dist/schemas/mutators/mutatorSchemas.d.ts.map +0 -1
  57. package/dist/schemas/mutators/mutatorSchemas.js +0 -229
  58. package/dist/schemas/mutators/mutatorSchemas.test.d.ts +0 -2
  59. package/dist/schemas/mutators/mutatorSchemas.test.d.ts.map +0 -1
  60. package/dist/schemas/mutators/mutatorSchemas.test.js +0 -39
  61. package/dist/schemas/stripe.d.ts +0 -43
  62. package/dist/schemas/stripe.d.ts.map +0 -1
  63. package/dist/schemas/stripe.js +0 -48
  64. package/dist/schemas/websocket.d.ts +0 -14
  65. package/dist/schemas/websocket.d.ts.map +0 -1
  66. package/dist/schemas/websocket.js +0 -10
  67. package/dist/sdk/endpoints/createEndpointConfig.d.ts +0 -12
  68. package/dist/sdk/endpoints/createEndpointConfig.d.ts.map +0 -1
  69. package/dist/sdk/endpoints/createEndpointConfig.js +0 -21
  70. package/dist/sdk/endpoints/index.d.ts +0 -308
  71. package/dist/sdk/endpoints/index.d.ts.map +0 -1
  72. package/dist/sdk/endpoints/index.js +0 -6
  73. package/dist/sdk/endpoints/private/draftAttachment/index.d.ts +0 -31
  74. package/dist/sdk/endpoints/private/draftAttachment/index.d.ts.map +0 -1
  75. package/dist/sdk/endpoints/private/draftAttachment/index.js +0 -4
  76. package/dist/sdk/endpoints/private/draftAttachment/uploadDraftAttachment.d.ts +0 -30
  77. package/dist/sdk/endpoints/private/draftAttachment/uploadDraftAttachment.d.ts.map +0 -1
  78. package/dist/sdk/endpoints/private/draftAttachment/uploadDraftAttachment.js +0 -18
  79. package/dist/sdk/endpoints/private/emailMessage/getEmailMessageAttachment.d.ts +0 -21
  80. package/dist/sdk/endpoints/private/emailMessage/getEmailMessageAttachment.d.ts.map +0 -1
  81. package/dist/sdk/endpoints/private/emailMessage/getEmailMessageAttachment.js +0 -16
  82. package/dist/sdk/endpoints/private/emailMessage/index.d.ts +0 -22
  83. package/dist/sdk/endpoints/private/emailMessage/index.d.ts.map +0 -1
  84. package/dist/sdk/endpoints/private/emailMessage/index.js +0 -4
  85. package/dist/sdk/endpoints/private/index.d.ts +0 -156
  86. package/dist/sdk/endpoints/private/index.d.ts.map +0 -1
  87. package/dist/sdk/endpoints/private/index.js +0 -12
  88. package/dist/sdk/endpoints/private/models/account/getAccounts.d.ts +0 -70
  89. package/dist/sdk/endpoints/private/models/account/getAccounts.d.ts.map +0 -1
  90. package/dist/sdk/endpoints/private/models/account/getAccounts.js +0 -26
  91. package/dist/sdk/endpoints/private/models/account/index.d.ts +0 -2
  92. package/dist/sdk/endpoints/private/models/account/index.d.ts.map +0 -1
  93. package/dist/sdk/endpoints/private/models/account/index.js +0 -1
  94. package/dist/sdk/endpoints/private/models/contact/getContacts.d.ts +0 -41
  95. package/dist/sdk/endpoints/private/models/contact/getContacts.d.ts.map +0 -1
  96. package/dist/sdk/endpoints/private/models/contact/getContacts.js +0 -26
  97. package/dist/sdk/endpoints/private/models/contact/index.d.ts +0 -2
  98. package/dist/sdk/endpoints/private/models/contact/index.d.ts.map +0 -1
  99. package/dist/sdk/endpoints/private/models/contact/index.js +0 -1
  100. package/dist/sdk/endpoints/private/models/draft/getDrafts.d.ts +0 -62
  101. package/dist/sdk/endpoints/private/models/draft/getDrafts.d.ts.map +0 -1
  102. package/dist/sdk/endpoints/private/models/draft/getDrafts.js +0 -25
  103. package/dist/sdk/endpoints/private/models/draft/index.d.ts +0 -2
  104. package/dist/sdk/endpoints/private/models/draft/index.d.ts.map +0 -1
  105. package/dist/sdk/endpoints/private/models/draft/index.js +0 -1
  106. package/dist/sdk/endpoints/private/models/index.d.ts +0 -13
  107. package/dist/sdk/endpoints/private/models/index.d.ts.map +0 -1
  108. package/dist/sdk/endpoints/private/models/index.js +0 -12
  109. package/dist/sdk/endpoints/private/models/thread/getThread.d.ts +0 -63
  110. package/dist/sdk/endpoints/private/models/thread/getThread.d.ts.map +0 -1
  111. package/dist/sdk/endpoints/private/models/thread/getThread.js +0 -17
  112. package/dist/sdk/endpoints/private/models/thread/getThreadByMessageId.d.ts +0 -63
  113. package/dist/sdk/endpoints/private/models/thread/getThreadByMessageId.d.ts.map +0 -1
  114. package/dist/sdk/endpoints/private/models/thread/getThreadByMessageId.js +0 -17
  115. package/dist/sdk/endpoints/private/models/thread/getThreadList.d.ts +0 -79
  116. package/dist/sdk/endpoints/private/models/thread/getThreadList.d.ts.map +0 -1
  117. package/dist/sdk/endpoints/private/models/thread/getThreadList.js +0 -47
  118. package/dist/sdk/endpoints/private/models/thread/getThreads.d.ts +0 -83
  119. package/dist/sdk/endpoints/private/models/thread/getThreads.d.ts.map +0 -1
  120. package/dist/sdk/endpoints/private/models/thread/getThreads.js +0 -36
  121. package/dist/sdk/endpoints/private/models/thread/index.d.ts +0 -5
  122. package/dist/sdk/endpoints/private/models/thread/index.d.ts.map +0 -1
  123. package/dist/sdk/endpoints/private/models/thread/index.js +0 -4
  124. package/dist/sdk/endpoints/private/models/user/getUser.d.ts +0 -75
  125. package/dist/sdk/endpoints/private/models/user/getUser.d.ts.map +0 -1
  126. package/dist/sdk/endpoints/private/models/user/getUser.js +0 -16
  127. package/dist/sdk/endpoints/private/models/user/index.d.ts +0 -2
  128. package/dist/sdk/endpoints/private/models/user/index.d.ts.map +0 -1
  129. package/dist/sdk/endpoints/private/models/user/index.js +0 -1
  130. package/dist/sdk/endpoints/private/mutations/account/createAccount.d.ts +0 -35
  131. package/dist/sdk/endpoints/private/mutations/account/createAccount.d.ts.map +0 -1
  132. package/dist/sdk/endpoints/private/mutations/account/createAccount.js +0 -18
  133. package/dist/sdk/endpoints/private/mutations/account/createAlias.d.ts +0 -42
  134. package/dist/sdk/endpoints/private/mutations/account/createAlias.d.ts.map +0 -1
  135. package/dist/sdk/endpoints/private/mutations/account/createAlias.js +0 -19
  136. package/dist/sdk/endpoints/private/mutations/account/createLabel.d.ts +0 -44
  137. package/dist/sdk/endpoints/private/mutations/account/createLabel.d.ts.map +0 -1
  138. package/dist/sdk/endpoints/private/mutations/account/createLabel.js +0 -20
  139. package/dist/sdk/endpoints/private/mutations/account/deleteAccount.d.ts +0 -27
  140. package/dist/sdk/endpoints/private/mutations/account/deleteAccount.d.ts.map +0 -1
  141. package/dist/sdk/endpoints/private/mutations/account/deleteAccount.js +0 -18
  142. package/dist/sdk/endpoints/private/mutations/account/deleteAlias.d.ts +0 -33
  143. package/dist/sdk/endpoints/private/mutations/account/deleteAlias.d.ts.map +0 -1
  144. package/dist/sdk/endpoints/private/mutations/account/deleteAlias.js +0 -19
  145. package/dist/sdk/endpoints/private/mutations/account/deleteLabel.d.ts +0 -43
  146. package/dist/sdk/endpoints/private/mutations/account/deleteLabel.d.ts.map +0 -1
  147. package/dist/sdk/endpoints/private/mutations/account/deleteLabel.js +0 -20
  148. package/dist/sdk/endpoints/private/mutations/account/index.d.ts +0 -14
  149. package/dist/sdk/endpoints/private/mutations/account/index.d.ts.map +0 -1
  150. package/dist/sdk/endpoints/private/mutations/account/index.js +0 -13
  151. package/dist/sdk/endpoints/private/mutations/account/renameLabel.d.ts +0 -49
  152. package/dist/sdk/endpoints/private/mutations/account/renameLabel.d.ts.map +0 -1
  153. package/dist/sdk/endpoints/private/mutations/account/renameLabel.js +0 -21
  154. package/dist/sdk/endpoints/private/mutations/account/setAliasName.d.ts +0 -44
  155. package/dist/sdk/endpoints/private/mutations/account/setAliasName.d.ts.map +0 -1
  156. package/dist/sdk/endpoints/private/mutations/account/setAliasName.js +0 -20
  157. package/dist/sdk/endpoints/private/mutations/account/setAliasPrimary.d.ts +0 -33
  158. package/dist/sdk/endpoints/private/mutations/account/setAliasPrimary.d.ts.map +0 -1
  159. package/dist/sdk/endpoints/private/mutations/account/setAliasPrimary.js +0 -19
  160. package/dist/sdk/endpoints/private/mutations/account/setAliasSignature.d.ts +0 -44
  161. package/dist/sdk/endpoints/private/mutations/account/setAliasSignature.d.ts.map +0 -1
  162. package/dist/sdk/endpoints/private/mutations/account/setAliasSignature.js +0 -20
  163. package/dist/sdk/endpoints/private/mutations/account/setConnectionConfigImap.d.ts +0 -49
  164. package/dist/sdk/endpoints/private/mutations/account/setConnectionConfigImap.d.ts.map +0 -1
  165. package/dist/sdk/endpoints/private/mutations/account/setConnectionConfigImap.js +0 -19
  166. package/dist/sdk/endpoints/private/mutations/account/setConnectionConfigOauth.d.ts +0 -42
  167. package/dist/sdk/endpoints/private/mutations/account/setConnectionConfigOauth.d.ts.map +0 -1
  168. package/dist/sdk/endpoints/private/mutations/account/setConnectionConfigOauth.js +0 -19
  169. package/dist/sdk/endpoints/private/mutations/account/setSettings.d.ts +0 -39
  170. package/dist/sdk/endpoints/private/mutations/account/setSettings.d.ts.map +0 -1
  171. package/dist/sdk/endpoints/private/mutations/account/setSettings.js +0 -19
  172. package/dist/sdk/endpoints/private/mutations/draft/cancelSend.d.ts +0 -28
  173. package/dist/sdk/endpoints/private/mutations/draft/cancelSend.d.ts.map +0 -1
  174. package/dist/sdk/endpoints/private/mutations/draft/cancelSend.js +0 -18
  175. package/dist/sdk/endpoints/private/mutations/draft/createAttachment.d.ts +0 -45
  176. package/dist/sdk/endpoints/private/mutations/draft/createAttachment.d.ts.map +0 -1
  177. package/dist/sdk/endpoints/private/mutations/draft/createAttachment.js +0 -19
  178. package/dist/sdk/endpoints/private/mutations/draft/createDraft.d.ts +0 -60
  179. package/dist/sdk/endpoints/private/mutations/draft/createDraft.d.ts.map +0 -1
  180. package/dist/sdk/endpoints/private/mutations/draft/createDraft.js +0 -19
  181. package/dist/sdk/endpoints/private/mutations/draft/deleteAttachment.d.ts +0 -34
  182. package/dist/sdk/endpoints/private/mutations/draft/deleteAttachment.d.ts.map +0 -1
  183. package/dist/sdk/endpoints/private/mutations/draft/deleteAttachment.js +0 -19
  184. package/dist/sdk/endpoints/private/mutations/draft/deleteDraft.d.ts +0 -27
  185. package/dist/sdk/endpoints/private/mutations/draft/deleteDraft.d.ts.map +0 -1
  186. package/dist/sdk/endpoints/private/mutations/draft/deleteDraft.js +0 -18
  187. package/dist/sdk/endpoints/private/mutations/draft/index.d.ts +0 -10
  188. package/dist/sdk/endpoints/private/mutations/draft/index.d.ts.map +0 -1
  189. package/dist/sdk/endpoints/private/mutations/draft/index.js +0 -9
  190. package/dist/sdk/endpoints/private/mutations/draft/replaceContent.d.ts +0 -39
  191. package/dist/sdk/endpoints/private/mutations/draft/replaceContent.d.ts.map +0 -1
  192. package/dist/sdk/endpoints/private/mutations/draft/replaceContent.js +0 -19
  193. package/dist/sdk/endpoints/private/mutations/draft/scheduleSend.d.ts +0 -45
  194. package/dist/sdk/endpoints/private/mutations/draft/scheduleSend.d.ts.map +0 -1
  195. package/dist/sdk/endpoints/private/mutations/draft/scheduleSend.js +0 -19
  196. package/dist/sdk/endpoints/private/mutations/draft/setEnvelope.d.ts +0 -85
  197. package/dist/sdk/endpoints/private/mutations/draft/setEnvelope.d.ts.map +0 -1
  198. package/dist/sdk/endpoints/private/mutations/draft/setEnvelope.js +0 -19
  199. package/dist/sdk/endpoints/private/mutations/draft/setFrom.d.ts +0 -47
  200. package/dist/sdk/endpoints/private/mutations/draft/setFrom.d.ts.map +0 -1
  201. package/dist/sdk/endpoints/private/mutations/draft/setFrom.js +0 -20
  202. package/dist/sdk/endpoints/private/mutations/index.d.ts +0 -11
  203. package/dist/sdk/endpoints/private/mutations/index.d.ts.map +0 -1
  204. package/dist/sdk/endpoints/private/mutations/index.js +0 -10
  205. package/dist/sdk/endpoints/private/mutations/thread/addLabel.d.ts +0 -40
  206. package/dist/sdk/endpoints/private/mutations/thread/addLabel.d.ts.map +0 -1
  207. package/dist/sdk/endpoints/private/mutations/thread/addLabel.js +0 -19
  208. package/dist/sdk/endpoints/private/mutations/thread/deleteThreads.d.ts +0 -34
  209. package/dist/sdk/endpoints/private/mutations/thread/deleteThreads.d.ts.map +0 -1
  210. package/dist/sdk/endpoints/private/mutations/thread/deleteThreads.js +0 -18
  211. package/dist/sdk/endpoints/private/mutations/thread/index.d.ts +0 -11
  212. package/dist/sdk/endpoints/private/mutations/thread/index.d.ts.map +0 -1
  213. package/dist/sdk/endpoints/private/mutations/thread/index.js +0 -10
  214. package/dist/sdk/endpoints/private/mutations/thread/removeLabel.d.ts +0 -40
  215. package/dist/sdk/endpoints/private/mutations/thread/removeLabel.d.ts.map +0 -1
  216. package/dist/sdk/endpoints/private/mutations/thread/removeLabel.js +0 -19
  217. package/dist/sdk/endpoints/private/mutations/thread/setArchive.d.ts +0 -34
  218. package/dist/sdk/endpoints/private/mutations/thread/setArchive.d.ts.map +0 -1
  219. package/dist/sdk/endpoints/private/mutations/thread/setArchive.js +0 -18
  220. package/dist/sdk/endpoints/private/mutations/thread/setFlagged.d.ts +0 -35
  221. package/dist/sdk/endpoints/private/mutations/thread/setFlagged.d.ts.map +0 -1
  222. package/dist/sdk/endpoints/private/mutations/thread/setFlagged.js +0 -18
  223. package/dist/sdk/endpoints/private/mutations/thread/setInbox.d.ts +0 -34
  224. package/dist/sdk/endpoints/private/mutations/thread/setInbox.d.ts.map +0 -1
  225. package/dist/sdk/endpoints/private/mutations/thread/setInbox.js +0 -18
  226. package/dist/sdk/endpoints/private/mutations/thread/setSeen.d.ts +0 -35
  227. package/dist/sdk/endpoints/private/mutations/thread/setSeen.d.ts.map +0 -1
  228. package/dist/sdk/endpoints/private/mutations/thread/setSeen.js +0 -18
  229. package/dist/sdk/endpoints/private/mutations/thread/setSnooze.d.ts +0 -35
  230. package/dist/sdk/endpoints/private/mutations/thread/setSnooze.d.ts.map +0 -1
  231. package/dist/sdk/endpoints/private/mutations/thread/setSnooze.js +0 -18
  232. package/dist/sdk/endpoints/private/mutations/thread/setSpam.d.ts +0 -34
  233. package/dist/sdk/endpoints/private/mutations/thread/setSpam.d.ts.map +0 -1
  234. package/dist/sdk/endpoints/private/mutations/thread/setSpam.js +0 -18
  235. package/dist/sdk/endpoints/private/mutations/thread/setTrash.d.ts +0 -34
  236. package/dist/sdk/endpoints/private/mutations/thread/setTrash.d.ts.map +0 -1
  237. package/dist/sdk/endpoints/private/mutations/thread/setTrash.js +0 -18
  238. package/dist/sdk/endpoints/private/mutations/user/createFeedback.d.ts +0 -34
  239. package/dist/sdk/endpoints/private/mutations/user/createFeedback.d.ts.map +0 -1
  240. package/dist/sdk/endpoints/private/mutations/user/createFeedback.js +0 -18
  241. package/dist/sdk/endpoints/private/mutations/user/createView.d.ts +0 -38
  242. package/dist/sdk/endpoints/private/mutations/user/createView.d.ts.map +0 -1
  243. package/dist/sdk/endpoints/private/mutations/user/createView.js +0 -18
  244. package/dist/sdk/endpoints/private/mutations/user/deletePushToken.d.ts +0 -23
  245. package/dist/sdk/endpoints/private/mutations/user/deletePushToken.d.ts.map +0 -1
  246. package/dist/sdk/endpoints/private/mutations/user/deletePushToken.js +0 -17
  247. package/dist/sdk/endpoints/private/mutations/user/deleteView.d.ts +0 -28
  248. package/dist/sdk/endpoints/private/mutations/user/deleteView.d.ts.map +0 -1
  249. package/dist/sdk/endpoints/private/mutations/user/deleteView.js +0 -18
  250. package/dist/sdk/endpoints/private/mutations/user/index.d.ts +0 -9
  251. package/dist/sdk/endpoints/private/mutations/user/index.d.ts.map +0 -1
  252. package/dist/sdk/endpoints/private/mutations/user/index.js +0 -8
  253. package/dist/sdk/endpoints/private/mutations/user/setFeedbackModalShown.d.ts +0 -32
  254. package/dist/sdk/endpoints/private/mutations/user/setFeedbackModalShown.d.ts.map +0 -1
  255. package/dist/sdk/endpoints/private/mutations/user/setFeedbackModalShown.js +0 -18
  256. package/dist/sdk/endpoints/private/mutations/user/setPushToken.d.ts +0 -37
  257. package/dist/sdk/endpoints/private/mutations/user/setPushToken.d.ts.map +0 -1
  258. package/dist/sdk/endpoints/private/mutations/user/setPushToken.js +0 -18
  259. package/dist/sdk/endpoints/private/mutations/user/setSettingsName.d.ts +0 -33
  260. package/dist/sdk/endpoints/private/mutations/user/setSettingsName.d.ts.map +0 -1
  261. package/dist/sdk/endpoints/private/mutations/user/setSettingsName.js +0 -18
  262. package/dist/sdk/endpoints/private/mutations/user/updateView.d.ts +0 -43
  263. package/dist/sdk/endpoints/private/mutations/user/updateView.d.ts.map +0 -1
  264. package/dist/sdk/endpoints/private/mutations/user/updateView.js +0 -19
  265. package/dist/sdk/endpoints/private/user/createBillingPortalSession.d.ts +0 -30
  266. package/dist/sdk/endpoints/private/user/createBillingPortalSession.d.ts.map +0 -1
  267. package/dist/sdk/endpoints/private/user/createBillingPortalSession.js +0 -19
  268. package/dist/sdk/endpoints/private/user/createCheckoutSession.d.ts +0 -27
  269. package/dist/sdk/endpoints/private/user/createCheckoutSession.d.ts.map +0 -1
  270. package/dist/sdk/endpoints/private/user/createCheckoutSession.js +0 -20
  271. package/dist/sdk/endpoints/private/user/deleteUser.d.ts +0 -10
  272. package/dist/sdk/endpoints/private/user/deleteUser.d.ts.map +0 -1
  273. package/dist/sdk/endpoints/private/user/deleteUser.js +0 -13
  274. package/dist/sdk/endpoints/private/user/index.d.ts +0 -90
  275. package/dist/sdk/endpoints/private/user/index.d.ts.map +0 -1
  276. package/dist/sdk/endpoints/private/user/index.js +0 -10
  277. package/dist/sdk/endpoints/private/user/uploadProfilePicture.d.ts +0 -28
  278. package/dist/sdk/endpoints/private/user/uploadProfilePicture.d.ts.map +0 -1
  279. package/dist/sdk/endpoints/private/user/uploadProfilePicture.js +0 -19
  280. package/dist/sdk/endpoints/public/auth/index.d.ts +0 -133
  281. package/dist/sdk/endpoints/public/auth/index.d.ts.map +0 -1
  282. package/dist/sdk/endpoints/public/auth/index.js +0 -8
  283. package/dist/sdk/endpoints/public/auth/refreshAuth.d.ts +0 -41
  284. package/dist/sdk/endpoints/public/auth/refreshAuth.d.ts.map +0 -1
  285. package/dist/sdk/endpoints/public/auth/refreshAuth.js +0 -33
  286. package/dist/sdk/endpoints/public/auth/sendAuthCode.d.ts +0 -27
  287. package/dist/sdk/endpoints/public/auth/sendAuthCode.d.ts.map +0 -1
  288. package/dist/sdk/endpoints/public/auth/sendAuthCode.js +0 -19
  289. package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts +0 -68
  290. package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts.map +0 -1
  291. package/dist/sdk/endpoints/public/auth/verifyAuthCode.js +0 -36
  292. package/dist/sdk/endpoints/public/config/index.d.ts +0 -10
  293. package/dist/sdk/endpoints/public/config/index.d.ts.map +0 -1
  294. package/dist/sdk/endpoints/public/config/index.js +0 -15
  295. package/dist/sdk/endpoints/public/healthcheck/index.d.ts +0 -8
  296. package/dist/sdk/endpoints/public/healthcheck/index.d.ts.map +0 -1
  297. package/dist/sdk/endpoints/public/healthcheck/index.js +0 -10
  298. package/dist/sdk/endpoints/public/index.d.ts +0 -149
  299. package/dist/sdk/endpoints/public/index.d.ts.map +0 -1
  300. package/dist/sdk/endpoints/public/index.js +0 -8
  301. package/dist/sdk/index.d.ts +0 -485
  302. package/dist/sdk/index.d.ts.map +0 -1
  303. package/dist/sdk/index.js +0 -6
  304. package/dist/sdk/validation/errors.d.ts +0 -338
  305. package/dist/sdk/validation/errors.d.ts.map +0 -1
  306. package/dist/sdk/validation/errors.js +0 -145
  307. package/dist/sdk/validation/index.d.ts +0 -178
  308. package/dist/sdk/validation/index.d.ts.map +0 -1
  309. package/dist/sdk/validation/index.js +0 -3
  310. package/dist/sdk/validation/utils/flattenRequirements/flattenRequirements.d.ts +0 -11
  311. package/dist/sdk/validation/utils/flattenRequirements/flattenRequirements.d.ts.map +0 -1
  312. package/dist/sdk/validation/utils/flattenRequirements/flattenRequirements.js +0 -22
  313. package/dist/sdk/validation/utils/flattenRequirements/index.d.ts.map +0 -1
  314. package/dist/sdk/validation/utils/index.d.ts +0 -7
  315. package/dist/sdk/validation/utils/index.d.ts.map +0 -1
  316. package/dist/sdk/validation/utils/index.js +0 -4
  317. package/dist/types/AuthData.d.ts +0 -4
  318. package/dist/types/AuthData.d.ts.map +0 -1
  319. package/dist/types/AuthData.js +0 -1
  320. package/dist/types/Endpoint.d.ts +0 -25
  321. package/dist/types/Endpoint.d.ts.map +0 -1
  322. package/dist/types/Endpoint.js +0 -1
  323. package/dist/types/PokeEvent.d.ts +0 -6
  324. package/dist/types/PokeEvent.d.ts.map +0 -1
  325. package/dist/types/PokeEvent.js +0 -1
  326. package/dist/types/SDKError.d.ts +0 -4
  327. package/dist/types/SDKError.d.ts.map +0 -1
  328. package/dist/types/SDKError.js +0 -1
  329. package/dist/types/StripeSubscriptionStatus.d.ts +0 -3
  330. package/dist/types/StripeSubscriptionStatus.d.ts.map +0 -1
  331. package/dist/types/StripeSubscriptionStatus.js +0 -10
  332. package/dist/types/SubscriptionTier.d.ts +0 -3
  333. package/dist/types/SubscriptionTier.d.ts.map +0 -1
  334. package/dist/types/SubscriptionTier.js +0 -1
  335. /package/dist/{sdk/validation/utils → utils/validation}/flattenRequirements/index.js +0 -0
@@ -1,43 +0,0 @@
1
- import * as v from 'valibot';
2
- export declare const stripeUserDataSchema: v.ObjectSchema<{
3
- readonly customer: v.UnionSchema<[v.ObjectSchema<{
4
- readonly deleted: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
5
- readonly email: v.NullableSchema<v.StringSchema<undefined>, undefined>;
6
- readonly id: v.StringSchema<undefined>;
7
- readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
8
- readonly object: v.LiteralSchema<"customer", undefined>;
9
- }, undefined>, v.ObjectSchema<{
10
- readonly deleted: v.LiteralSchema<true, undefined>;
11
- readonly id: v.StringSchema<undefined>;
12
- readonly object: v.LiteralSchema<"customer", undefined>;
13
- }, undefined>], undefined>;
14
- readonly product: v.NullableSchema<v.ObjectSchema<{
15
- readonly description: v.NullableSchema<v.StringSchema<undefined>, undefined>;
16
- readonly id: v.StringSchema<undefined>;
17
- readonly name: v.StringSchema<undefined>;
18
- readonly object: v.LiteralSchema<"product", undefined>;
19
- }, undefined>, undefined>;
20
- readonly subscription: v.NullableSchema<v.ObjectSchema<{
21
- readonly cancelAtPeriodEnd: v.BooleanSchema<undefined>;
22
- readonly discounts: v.ArraySchema<v.ObjectSchema<{
23
- readonly coupon: v.ObjectSchema<{
24
- readonly amountOff: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
25
- readonly id: v.StringSchema<undefined>;
26
- readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
27
- readonly percentOff: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
28
- }, undefined>;
29
- readonly end: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
30
- readonly id: v.StringSchema<undefined>;
31
- readonly start: v.NumberSchema<undefined>;
32
- }, undefined>, undefined>;
33
- readonly id: v.StringSchema<undefined>;
34
- readonly object: v.LiteralSchema<"subscription", undefined>;
35
- readonly startDate: v.NumberSchema<undefined>;
36
- readonly status: v.PicklistSchema<readonly ["active", "canceled", "incomplete", "incomplete_expired", "past_due", "paused", "trialing", "unpaid"], undefined>;
37
- readonly trialEnd: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
38
- readonly trialStart: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
39
- }, undefined>, undefined>;
40
- readonly subscriptionTier: v.NullableSchema<v.PicklistSchema<readonly ["tier1"], undefined>, undefined>;
41
- }, undefined>;
42
- export type StripeUserData = v.InferOutput<typeof stripeUserDataSchema>;
43
- //# sourceMappingURL=stripe.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"stripe.d.ts","sourceRoot":"","sources":["../../src/schemas/stripe.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAwE5B,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAK/B,CAAA;AAEF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,oBAAoB,CAAC,CAAA"}
@@ -1,48 +0,0 @@
1
- import * as v from 'valibot';
2
- import { STRIPE_SUBSCRIPTION_STATUSES, SUBSCRIPTION_TIERS } from '../types';
3
- const stripeCustomerSchema = v.object({
4
- deleted: v.optional(v.never()),
5
- email: v.nullable(v.string()),
6
- id: v.string(),
7
- name: v.nullable(v.string()),
8
- object: v.literal('customer'),
9
- });
10
- const stripeDeletedCustomerSchema = v.object({
11
- deleted: v.literal(true),
12
- id: v.string(),
13
- object: v.literal('customer'),
14
- });
15
- const stripeProductSchema = v.object({
16
- description: v.nullable(v.string()),
17
- id: v.string(),
18
- name: v.string(),
19
- object: v.literal('product'),
20
- });
21
- const stripeCouponSchema = v.object({
22
- amountOff: v.nullable(v.number()),
23
- id: v.string(),
24
- name: v.nullable(v.string()),
25
- percentOff: v.nullable(v.number()),
26
- });
27
- const stripeDiscountSchema = v.object({
28
- coupon: stripeCouponSchema,
29
- end: v.nullable(v.number()),
30
- id: v.string(),
31
- start: v.number(),
32
- });
33
- const stripeSubscriptionSchema = v.object({
34
- cancelAtPeriodEnd: v.boolean(),
35
- discounts: v.array(stripeDiscountSchema),
36
- id: v.string(),
37
- object: v.literal('subscription'),
38
- startDate: v.number(),
39
- status: v.picklist(STRIPE_SUBSCRIPTION_STATUSES),
40
- trialEnd: v.nullable(v.number()),
41
- trialStart: v.nullable(v.number()),
42
- });
43
- export const stripeUserDataSchema = v.object({
44
- customer: v.union([stripeCustomerSchema, stripeDeletedCustomerSchema]),
45
- product: v.nullable(stripeProductSchema),
46
- subscription: v.nullable(stripeSubscriptionSchema),
47
- subscriptionTier: v.nullable(v.picklist(SUBSCRIPTION_TIERS)),
48
- });
@@ -1,14 +0,0 @@
1
- import * as v from 'valibot';
2
- export declare const pokeEventSchema: v.LooseObjectSchema<{
3
- readonly event: v.LiteralSchema<"poke", undefined>;
4
- readonly ids: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
5
- readonly model: v.PicklistSchema<readonly ["user", "account", "contact", "draft", "thread"], undefined>;
6
- }, undefined>;
7
- export declare const websocket: {
8
- pokeEvent: v.LooseObjectSchema<{
9
- readonly event: v.LiteralSchema<"poke", undefined>;
10
- readonly ids: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
11
- readonly model: v.PicklistSchema<readonly ["user", "account", "contact", "draft", "thread"], undefined>;
12
- }, undefined>;
13
- };
14
- //# sourceMappingURL=websocket.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"websocket.d.ts","sourceRoot":"","sources":["../../src/schemas/websocket.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAI5B,eAAO,MAAM,eAAe;;;;aAI1B,CAAA;AAEF,eAAO,MAAM,SAAS;;;;;;CAErB,CAAA"}
@@ -1,10 +0,0 @@
1
- import * as v from 'valibot';
2
- import { POKE_MODELS } from '../types';
3
- export const pokeEventSchema = v.looseObject({
4
- event: v.literal('poke'),
5
- ids: v.optional(v.array(v.string())),
6
- model: v.picklist(POKE_MODELS),
7
- });
8
- export const websocket = {
9
- pokeEvent: pokeEventSchema,
10
- };
@@ -1,12 +0,0 @@
1
- import type { GenericSchema } from 'valibot';
2
- import type { BodyType, EndpointConfig, HTTPMethod, SDKResponse, URLPattern } from '../../types/Endpoint';
3
- export declare const createURLPattern: <T extends string>(pattern: T) => (params: URLPattern<T>) => string;
4
- export declare const createEndpoint: <TPath extends string, TRequestBody extends GenericSchema | undefined, TRequestQuery extends GenericSchema | undefined, TResponse extends GenericSchema<SDKResponse>>(params: {
5
- body?: TRequestBody;
6
- bodyType?: BodyType;
7
- method: HTTPMethod;
8
- path: TPath;
9
- query?: TRequestQuery;
10
- response: TResponse;
11
- }) => EndpointConfig<TPath, TRequestBody, TRequestQuery, TResponse>;
12
- //# sourceMappingURL=createEndpointConfig.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createEndpointConfig.d.ts","sourceRoot":"","sources":["../../../src/sdk/endpoints/createEndpointConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAE5C,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAA;AAEjH,eAAO,MAAM,gBAAgB,GAC1B,CAAC,SAAS,MAAM,WAAW,CAAC,cACpB,UAAU,CAAC,CAAC,CAAC,KAAG,MAWxB,CAAA;AAEH,eAAO,MAAM,cAAc,GACzB,KAAK,SAAS,MAAM,EACpB,YAAY,SAAS,aAAa,GAAG,SAAS,EAC9C,aAAa,SAAS,aAAa,GAAG,SAAS,EAC/C,SAAS,SAAS,aAAa,CAAC,WAAW,CAAC,UACpC;IACR,IAAI,CAAC,EAAE,YAAY,CAAA;IACnB,QAAQ,CAAC,EAAE,QAAQ,CAAA;IACnB,MAAM,EAAE,UAAU,CAAA;IAClB,IAAI,EAAE,KAAK,CAAA;IACX,KAAK,CAAC,EAAE,aAAa,CAAA;IACrB,QAAQ,EAAE,SAAS,CAAA;CACpB,KAAG,cAAc,CAAC,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,SAAS,CAQ9D,CAAA"}
@@ -1,21 +0,0 @@
1
- export const createURLPattern = (pattern) => (params) => {
2
- const segments = pattern.split('/');
3
- return segments
4
- .map(segment => {
5
- if (segment.startsWith(':')) {
6
- const paramName = segment.slice(1);
7
- return params[paramName];
8
- }
9
- return segment;
10
- })
11
- .join('/');
12
- };
13
- export const createEndpoint = (params) => ({
14
- body: params.body,
15
- bodyType: params.bodyType ?? 'json',
16
- buildPath: createURLPattern(params.path),
17
- method: params.method,
18
- path: params.path,
19
- query: params.query,
20
- response: params.response,
21
- });
@@ -1,308 +0,0 @@
1
- import type { GenericSchema } from 'valibot';
2
- import type { EndpointConfig } from '../../types';
3
- export declare const endpoints: {
4
- private: {
5
- draftAttachment: {
6
- upload: EndpointConfig<"/v1/pv/drafts/:attachmentId/upload", import("valibot").BlobSchema<undefined>, GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
7
- readonly data: import("valibot").ObjectSchema<{
8
- readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
9
- }, undefined>;
10
- readonly status: import("valibot").LiteralSchema<401, undefined>;
11
- }, undefined>, import("valibot").ObjectSchema<{
12
- readonly data: import("valibot").ObjectSchema<{
13
- readonly code: import("valibot").LiteralSchema<"ATTACHMENT_NOT_FOUND", undefined>;
14
- }, undefined>;
15
- readonly status: import("valibot").LiteralSchema<404, undefined>;
16
- }, undefined>, import("valibot").ObjectSchema<{
17
- readonly data: import("valibot").ObjectSchema<{
18
- readonly code: import("valibot").LiteralSchema<"ATTACHMENT_STATE_INVALID", undefined>;
19
- }, undefined>;
20
- readonly status: import("valibot").LiteralSchema<409, undefined>;
21
- }, undefined>, import("valibot").ObjectSchema<{
22
- readonly data: import("valibot").ObjectSchema<{
23
- readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
24
- readonly issues: import("valibot").ObjectSchema<{
25
- 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>;
26
- readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
27
- readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
28
- }, undefined>;
29
- }, undefined>;
30
- readonly status: import("valibot").LiteralSchema<400, undefined>;
31
- }, undefined>, import("valibot").ObjectSchema<{
32
- readonly status: import("valibot").LiteralSchema<200, undefined>;
33
- }, undefined>], undefined>>;
34
- };
35
- emailMessage: {
36
- getAttachment: EndpointConfig<"/v1/pv/attachment/:attachmentId", GenericSchema | undefined, GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
37
- readonly data: import("valibot").ObjectSchema<{
38
- readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
39
- }, undefined>;
40
- readonly status: import("valibot").LiteralSchema<401, undefined>;
41
- }, undefined>, import("valibot").ObjectSchema<{
42
- readonly data: import("valibot").ObjectSchema<{
43
- readonly code: import("valibot").LiteralSchema<"ATTACHMENT_NOT_FOUND", undefined>;
44
- }, undefined>;
45
- readonly status: import("valibot").LiteralSchema<404, undefined>;
46
- }, undefined>, import("valibot").ObjectSchema<{
47
- readonly data: import("valibot").ObjectSchema<{
48
- readonly code: import("valibot").LiteralSchema<"ATTACHMENT_STATE_INVALID", undefined>;
49
- }, undefined>;
50
- readonly status: import("valibot").LiteralSchema<409, undefined>;
51
- }, undefined>, import("valibot").ObjectSchema<{
52
- readonly file: import("valibot").NonOptionalSchema<import("valibot").FileSchema<undefined>, undefined>;
53
- readonly status: import("valibot").LiteralSchema<200, undefined>;
54
- }, undefined>], undefined>>;
55
- };
56
- models: {
57
- account: typeof import("./private/models/account");
58
- contact: typeof import("./private/models/contact");
59
- draft: typeof import("./private/models/draft");
60
- thread: typeof import("./private/models/thread");
61
- user: typeof import("./private/models/user");
62
- };
63
- mutations: {
64
- account: typeof import("./private/mutations/account");
65
- draft: typeof import("./private/mutations/draft");
66
- thread: typeof import("./private/mutations/thread");
67
- user: typeof import("./private/mutations/user");
68
- };
69
- user: {
70
- createBillingPortalSession: EndpointConfig<"/v1/pv/user/create-billing-portal-session", import("valibot").ObjectSchema<{
71
- readonly returnUrl: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").UrlAction<string, undefined>]>;
72
- }, undefined>, GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
73
- readonly data: import("valibot").ObjectSchema<{
74
- readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
75
- }, undefined>;
76
- readonly status: import("valibot").LiteralSchema<401, undefined>;
77
- }, undefined>, import("valibot").ObjectSchema<{
78
- readonly data: import("valibot").ObjectSchema<{
79
- readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
80
- readonly issues: import("valibot").ObjectSchema<{
81
- 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>;
82
- readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
83
- readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
84
- }, undefined>;
85
- }, undefined>;
86
- readonly status: import("valibot").LiteralSchema<400, undefined>;
87
- }, undefined>, import("valibot").ObjectSchema<{
88
- readonly data: import("valibot").ObjectSchema<{
89
- readonly code: import("valibot").LiteralSchema<"SUBSCRIPTION_NOT_FOUND", undefined>;
90
- }, undefined>;
91
- readonly status: import("valibot").LiteralSchema<404, undefined>;
92
- }, undefined>, import("valibot").ObjectSchema<{
93
- readonly data: import("valibot").ObjectSchema<{
94
- readonly url: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").UrlAction<string, undefined>]>;
95
- }, undefined>;
96
- readonly status: import("valibot").LiteralSchema<200, undefined>;
97
- }, undefined>], undefined>>;
98
- createCheckoutSession: EndpointConfig<"/v1/pv/user/create-checkout-session", import("valibot").ObjectSchema<{
99
- readonly cancelUrl: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>]>;
100
- readonly priceId: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>]>;
101
- readonly successUrl: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>]>;
102
- }, undefined>, GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
103
- readonly data: import("valibot").ObjectSchema<{
104
- readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
105
- }, undefined>;
106
- readonly status: import("valibot").LiteralSchema<401, undefined>;
107
- }, undefined>, import("valibot").ObjectSchema<{
108
- readonly data: import("valibot").ObjectSchema<{
109
- readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
110
- readonly issues: import("valibot").ObjectSchema<{
111
- 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>;
112
- readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
113
- readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
114
- }, undefined>;
115
- }, undefined>;
116
- readonly status: import("valibot").LiteralSchema<400, undefined>;
117
- }, undefined>, import("valibot").ObjectSchema<{
118
- readonly data: import("valibot").ObjectSchema<{
119
- readonly url: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").UrlAction<string, undefined>]>;
120
- }, undefined>;
121
- readonly status: import("valibot").LiteralSchema<200, undefined>;
122
- }, undefined>], undefined>>;
123
- deleteUser: EndpointConfig<"/v1/pv/user", GenericSchema | undefined, GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
124
- readonly data: import("valibot").ObjectSchema<{
125
- readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
126
- }, undefined>;
127
- readonly status: import("valibot").LiteralSchema<401, undefined>;
128
- }, undefined>, import("valibot").ObjectSchema<{
129
- readonly status: import("valibot").LiteralSchema<204, undefined>;
130
- }, undefined>], undefined>>;
131
- uploadProfilePicture: EndpointConfig<"/v1/pv/user/profile-picture", import("valibot").BlobSchema<undefined>, GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
132
- readonly data: import("valibot").ObjectSchema<{
133
- readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
134
- }, undefined>;
135
- readonly status: import("valibot").LiteralSchema<401, undefined>;
136
- }, undefined>, import("valibot").ObjectSchema<{
137
- readonly data: import("valibot").ObjectSchema<{
138
- readonly code: import("valibot").LiteralSchema<"FILE_TOO_LARGE", undefined>;
139
- }, undefined>;
140
- readonly status: import("valibot").LiteralSchema<413, undefined>;
141
- }, undefined>, import("valibot").ObjectSchema<{
142
- readonly data: import("valibot").ObjectSchema<{
143
- readonly code: import("valibot").LiteralSchema<"INVALID_FILE_TYPE", undefined>;
144
- }, undefined>;
145
- readonly status: import("valibot").LiteralSchema<415, undefined>;
146
- }, undefined>, import("valibot").ObjectSchema<{
147
- readonly data: import("valibot").ObjectSchema<{
148
- readonly code: import("valibot").LiteralSchema<"INVALID_IMAGE_DIMENSIONS", undefined>;
149
- }, undefined>;
150
- readonly status: import("valibot").LiteralSchema<415, undefined>;
151
- }, undefined>, import("valibot").ObjectSchema<{
152
- readonly data: import("valibot").ObjectSchema<{
153
- readonly profilePicture: import("valibot").StringSchema<undefined>;
154
- }, undefined>;
155
- readonly status: import("valibot").LiteralSchema<200, undefined>;
156
- }, undefined>], undefined>>;
157
- };
158
- };
159
- public: {
160
- auth: {
161
- refreshAuth: EndpointConfig<"/v1/pb/auth/refresh", import("valibot").ObjectSchema<{
162
- readonly refreshToken: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
163
- }, undefined>, GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
164
- readonly data: import("valibot").ObjectSchema<{
165
- readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
166
- readonly issues: import("valibot").ObjectSchema<{
167
- 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>;
168
- readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
169
- readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
170
- }, undefined>;
171
- }, undefined>;
172
- readonly status: import("valibot").LiteralSchema<400, undefined>;
173
- }, undefined>, import("valibot").ObjectSchema<{
174
- readonly data: import("valibot").ObjectSchema<{
175
- readonly code: import("valibot").LiteralSchema<"AUTH_REFRESH_TOKEN_INVALID", undefined>;
176
- }, undefined>;
177
- readonly status: import("valibot").LiteralSchema<401, undefined>;
178
- }, undefined>, import("valibot").ObjectSchema<{
179
- readonly data: import("valibot").ObjectSchema<{
180
- readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
181
- }, undefined>;
182
- readonly status: import("valibot").LiteralSchema<502, undefined>;
183
- }, undefined>, import("valibot").ObjectSchema<{
184
- readonly data: import("valibot").ObjectSchema<{
185
- readonly accessToken: import("valibot").StringSchema<undefined>;
186
- readonly refreshToken: import("valibot").StringSchema<undefined>;
187
- readonly user: import("valibot").ObjectSchema<{
188
- readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
189
- readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>;
190
- readonly emailVerified: import("valibot").BooleanSchema<undefined>;
191
- readonly firstName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
192
- readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
193
- readonly lastName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
194
- readonly profilePictureUrl: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
195
- readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
196
- }, undefined>;
197
- }, undefined>;
198
- readonly status: import("valibot").LiteralSchema<200, undefined>;
199
- }, undefined>], undefined>>;
200
- sendAuthCode: EndpointConfig<"/v1/pb/auth/send-code", import("valibot").ObjectSchema<{
201
- readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>;
202
- }, undefined>, GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
203
- readonly data: import("valibot").ObjectSchema<{
204
- readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
205
- readonly issues: import("valibot").ObjectSchema<{
206
- 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>;
207
- readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
208
- readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
209
- }, undefined>;
210
- }, undefined>;
211
- readonly status: import("valibot").LiteralSchema<400, undefined>;
212
- }, undefined>, import("valibot").ObjectSchema<{
213
- readonly data: import("valibot").ObjectSchema<{
214
- readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
215
- }, undefined>;
216
- readonly status: import("valibot").LiteralSchema<502, undefined>;
217
- }, undefined>, import("valibot").ObjectSchema<{
218
- readonly data: import("valibot").ObjectSchema<{
219
- readonly code: import("valibot").LiteralSchema<"INVITE_NOT_FOUND", undefined>;
220
- }, undefined>;
221
- readonly status: import("valibot").LiteralSchema<404, undefined>;
222
- }, undefined>, import("valibot").ObjectSchema<{
223
- readonly status: import("valibot").LiteralSchema<200, undefined>;
224
- }, undefined>], undefined>>;
225
- verifyAuthCode: EndpointConfig<"/v1/pb/auth/verify-code", import("valibot").ObjectSchema<{
226
- readonly authType: import("valibot").LiteralSchema<"CODE", undefined>;
227
- readonly code: import("valibot").StringSchema<undefined>;
228
- readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>;
229
- }, undefined>, GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
230
- readonly data: import("valibot").ObjectSchema<{
231
- readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
232
- readonly issues: import("valibot").ObjectSchema<{
233
- 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>;
234
- readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
235
- readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
236
- }, undefined>;
237
- }, undefined>;
238
- readonly status: import("valibot").LiteralSchema<400, undefined>;
239
- }, undefined>, import("valibot").ObjectSchema<{
240
- readonly data: import("valibot").ObjectSchema<{
241
- readonly code: import("valibot").LiteralSchema<"AUTH_CODE_EXPIRED", undefined>;
242
- }, undefined>;
243
- readonly status: import("valibot").LiteralSchema<401, undefined>;
244
- }, undefined>, import("valibot").ObjectSchema<{
245
- readonly data: import("valibot").ObjectSchema<{
246
- readonly code: import("valibot").LiteralSchema<"AUTH_CODE_INVALID", undefined>;
247
- }, undefined>;
248
- readonly status: import("valibot").LiteralSchema<401, undefined>;
249
- }, undefined>, import("valibot").ObjectSchema<{
250
- readonly data: import("valibot").ObjectSchema<{
251
- readonly code: import("valibot").LiteralSchema<"AUTH_CODE_PREVIOUSLY_USED", undefined>;
252
- }, undefined>;
253
- readonly status: import("valibot").LiteralSchema<401, undefined>;
254
- }, undefined>, import("valibot").ObjectSchema<{
255
- readonly data: import("valibot").ObjectSchema<{
256
- readonly code: import("valibot").LiteralSchema<"AUTH_TOO_MANY_ATTEMPTS", undefined>;
257
- }, undefined>;
258
- readonly status: import("valibot").LiteralSchema<401, undefined>;
259
- }, undefined>, import("valibot").ObjectSchema<{
260
- readonly data: import("valibot").ObjectSchema<{
261
- readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
262
- }, undefined>;
263
- readonly status: import("valibot").LiteralSchema<502, undefined>;
264
- }, undefined>, import("valibot").ObjectSchema<{
265
- readonly data: import("valibot").ObjectSchema<{
266
- readonly code: import("valibot").LiteralSchema<"USER_NOT_FOUND", undefined>;
267
- }, undefined>;
268
- readonly status: import("valibot").LiteralSchema<404, undefined>;
269
- }, undefined>, import("valibot").ObjectSchema<{
270
- readonly data: import("valibot").ObjectSchema<{
271
- readonly code: import("valibot").LiteralSchema<"USER_MARKED_FOR_DELETION", undefined>;
272
- }, undefined>;
273
- readonly status: import("valibot").LiteralSchema<409, undefined>;
274
- }, undefined>, import("valibot").ObjectSchema<{
275
- readonly data: import("valibot").ObjectSchema<{
276
- readonly accessToken: import("valibot").StringSchema<undefined>;
277
- readonly refreshToken: import("valibot").StringSchema<undefined>;
278
- readonly user: import("valibot").ObjectSchema<{
279
- readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
280
- readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>;
281
- readonly emailVerified: import("valibot").BooleanSchema<undefined>;
282
- readonly firstName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
283
- readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
284
- readonly lastName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
285
- readonly profilePictureUrl: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
286
- readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
287
- }, undefined>;
288
- }, undefined>;
289
- readonly status: import("valibot").LiteralSchema<200, undefined>;
290
- }, undefined>], undefined>>;
291
- };
292
- config: EndpointConfig<"/v1/pb/config", GenericSchema | undefined, GenericSchema | undefined, import("valibot").ObjectSchema<{
293
- readonly data: import("valibot").ObjectSchema<{
294
- readonly app: import("valibot").ObjectSchema<{
295
- readonly minimumVersion: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
296
- }, undefined>;
297
- }, undefined>;
298
- readonly status: import("valibot").LiteralSchema<200, undefined>;
299
- }, undefined>>;
300
- healthcheck: EndpointConfig<"/v1/pb/healthcheck", GenericSchema | undefined, GenericSchema | undefined, import("valibot").ObjectSchema<{
301
- readonly data: import("valibot").ObjectSchema<{
302
- readonly status: import("valibot").LiteralSchema<"ok", undefined>;
303
- }, undefined>;
304
- readonly status: import("valibot").LiteralSchema<200, undefined>;
305
- }, undefined>>;
306
- };
307
- };
308
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/endpoints/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAE5C,OAAO,KAAK,EAAE,cAAc,EAAe,MAAM,qBAAqB,CAAA;AAWtE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGM,CAAA"}
@@ -1,6 +0,0 @@
1
- import { privateGroup } from './private';
2
- import { publicGroup } from './public';
3
- export const endpoints = {
4
- private: privateGroup,
5
- public: publicGroup,
6
- };
@@ -1,31 +0,0 @@
1
- export declare const draftAttachment: {
2
- upload: import("../../../..").EndpointConfig<"/v1/pv/drafts/:attachmentId/upload", import("valibot").BlobSchema<undefined>, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
3
- readonly data: import("valibot").ObjectSchema<{
4
- readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
5
- }, undefined>;
6
- readonly status: import("valibot").LiteralSchema<401, undefined>;
7
- }, undefined>, import("valibot").ObjectSchema<{
8
- readonly data: import("valibot").ObjectSchema<{
9
- readonly code: import("valibot").LiteralSchema<"ATTACHMENT_NOT_FOUND", undefined>;
10
- }, undefined>;
11
- readonly status: import("valibot").LiteralSchema<404, undefined>;
12
- }, undefined>, import("valibot").ObjectSchema<{
13
- readonly data: import("valibot").ObjectSchema<{
14
- readonly code: import("valibot").LiteralSchema<"ATTACHMENT_STATE_INVALID", undefined>;
15
- }, undefined>;
16
- readonly status: import("valibot").LiteralSchema<409, undefined>;
17
- }, undefined>, import("valibot").ObjectSchema<{
18
- readonly data: import("valibot").ObjectSchema<{
19
- readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
20
- readonly issues: import("valibot").ObjectSchema<{
21
- 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>;
22
- readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
23
- readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
24
- }, undefined>;
25
- }, undefined>;
26
- readonly status: import("valibot").LiteralSchema<400, undefined>;
27
- }, undefined>, import("valibot").ObjectSchema<{
28
- readonly status: import("valibot").LiteralSchema<200, undefined>;
29
- }, undefined>], undefined>>;
30
- };
31
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/draftAttachment/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAE3B,CAAA"}
@@ -1,4 +0,0 @@
1
- import { uploadDraftAttachment } from './uploadDraftAttachment';
2
- export const draftAttachment = {
3
- upload: uploadDraftAttachment,
4
- };
@@ -1,30 +0,0 @@
1
- import * as v from 'valibot';
2
- export declare const uploadDraftAttachment: import("../../../..").EndpointConfig<"/v1/pv/drafts/:attachmentId/upload", v.BlobSchema<undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
3
- readonly data: v.ObjectSchema<{
4
- readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
5
- }, undefined>;
6
- readonly status: v.LiteralSchema<401, undefined>;
7
- }, undefined>, v.ObjectSchema<{
8
- readonly data: v.ObjectSchema<{
9
- readonly code: v.LiteralSchema<"ATTACHMENT_NOT_FOUND", undefined>;
10
- }, undefined>;
11
- readonly status: v.LiteralSchema<404, undefined>;
12
- }, undefined>, v.ObjectSchema<{
13
- readonly data: v.ObjectSchema<{
14
- readonly code: v.LiteralSchema<"ATTACHMENT_STATE_INVALID", undefined>;
15
- }, undefined>;
16
- readonly status: v.LiteralSchema<409, undefined>;
17
- }, undefined>, v.ObjectSchema<{
18
- readonly data: v.ObjectSchema<{
19
- readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
20
- readonly issues: v.ObjectSchema<{
21
- readonly nested: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
22
- readonly other: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
23
- readonly root: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
24
- }, undefined>;
25
- }, undefined>;
26
- readonly status: v.LiteralSchema<400, undefined>;
27
- }, undefined>, v.ObjectSchema<{
28
- readonly status: v.LiteralSchema<200, undefined>;
29
- }, undefined>], undefined>>;
30
- //# sourceMappingURL=uploadDraftAttachment.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"uploadDraftAttachment.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/draftAttachment/uploadDraftAttachment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAU5B,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAchC,CAAA"}
@@ -1,18 +0,0 @@
1
- import * as v from 'valibot';
2
- import { createEndpoint } from '../../../../sdk/endpoints/createEndpointConfig';
3
- import { attachmentNotFoundErrorSchema, attachmentStateInvalidErrorSchema, authFailedErrorSchema, validationFailedErrorSchema, } from '../../../../sdk/validation/errors';
4
- export const uploadDraftAttachment = createEndpoint({
5
- body: v.blob(),
6
- bodyType: 'blob',
7
- method: 'POST',
8
- path: '/v1/pv/drafts/:attachmentId/upload',
9
- response: v.union([
10
- authFailedErrorSchema,
11
- attachmentNotFoundErrorSchema,
12
- attachmentStateInvalidErrorSchema,
13
- validationFailedErrorSchema,
14
- v.object({
15
- status: v.literal(200),
16
- }),
17
- ]),
18
- });
@@ -1,21 +0,0 @@
1
- import * as v from 'valibot';
2
- export declare const getEmailMessageAttachment: import("../../../..").EndpointConfig<"/v1/pv/attachment/:attachmentId", v.GenericSchema | undefined, v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
3
- readonly data: v.ObjectSchema<{
4
- readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
5
- }, undefined>;
6
- readonly status: v.LiteralSchema<401, undefined>;
7
- }, undefined>, v.ObjectSchema<{
8
- readonly data: v.ObjectSchema<{
9
- readonly code: v.LiteralSchema<"ATTACHMENT_NOT_FOUND", undefined>;
10
- }, undefined>;
11
- readonly status: v.LiteralSchema<404, undefined>;
12
- }, undefined>, v.ObjectSchema<{
13
- readonly data: v.ObjectSchema<{
14
- readonly code: v.LiteralSchema<"ATTACHMENT_STATE_INVALID", undefined>;
15
- }, undefined>;
16
- readonly status: v.LiteralSchema<409, undefined>;
17
- }, undefined>, v.ObjectSchema<{
18
- readonly file: v.NonOptionalSchema<v.FileSchema<undefined>, undefined>;
19
- readonly status: v.LiteralSchema<200, undefined>;
20
- }, undefined>], undefined>>;
21
- //# sourceMappingURL=getEmailMessageAttachment.d.ts.map