@marcoappio/marco-config 2.0.599 → 3.0.1

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 (342) hide show
  1. package/dist/appwrite/appwrite.d.ts +107 -2
  2. package/dist/appwrite/appwrite.d.ts.map +1 -1
  3. package/dist/appwrite/appwrite.js +75 -2
  4. package/dist/appwrite/appwrite.test.js +81 -0
  5. package/dist/appwrite/commands.d.ts +1 -0
  6. package/dist/appwrite/commands.d.ts.map +1 -1
  7. package/dist/appwrite/commands.js +1 -0
  8. package/dist/appwrite/functions.d.ts +33 -1
  9. package/dist/appwrite/functions.d.ts.map +1 -1
  10. package/dist/appwrite/functions.js +22 -2
  11. package/dist/appwrite/functions.test.js +34 -1
  12. package/dist/appwrite/index.d.ts +1 -1
  13. package/dist/appwrite/index.d.ts.map +1 -1
  14. package/dist/constants/index.d.ts +0 -8
  15. package/dist/constants/index.d.ts.map +1 -1
  16. package/dist/constants/index.js +0 -2
  17. package/dist/index.d.ts +3 -5
  18. package/dist/index.d.ts.map +1 -1
  19. package/dist/index.js +1 -3
  20. package/dist/index.test.d.ts +2 -0
  21. package/dist/index.test.d.ts.map +1 -0
  22. package/dist/index.test.js +26 -0
  23. package/dist/schemas/index.d.ts +1 -429
  24. package/dist/schemas/index.d.ts.map +1 -1
  25. package/dist/schemas/index.js +1 -10
  26. package/dist/schemas/models/index.d.ts +1 -1
  27. package/dist/schemas/models/index.d.ts.map +1 -1
  28. package/dist/schemas/models/index.js +1 -1
  29. package/dist/schemas/models/user.d.ts +0 -68
  30. package/dist/schemas/models/user.d.ts.map +1 -1
  31. package/dist/schemas/models/user.js +0 -19
  32. package/dist/types/index.d.ts +0 -6
  33. package/dist/types/index.d.ts.map +1 -1
  34. package/dist/types/index.js +0 -6
  35. package/dist/utils/index.d.ts +1 -0
  36. package/dist/utils/index.d.ts.map +1 -1
  37. package/dist/utils/index.js +1 -0
  38. package/dist/utils/validation/flattenRequirements/flattenRequirements.d.ts +8 -0
  39. package/dist/utils/validation/flattenRequirements/flattenRequirements.d.ts.map +1 -0
  40. package/dist/utils/validation/flattenRequirements/flattenRequirements.js +37 -0
  41. package/dist/utils/validation/flattenRequirements/flattenRequirements.test.d.ts +2 -0
  42. package/dist/utils/validation/flattenRequirements/flattenRequirements.test.d.ts.map +1 -0
  43. package/dist/utils/validation/flattenRequirements/flattenRequirements.test.js +25 -0
  44. package/dist/utils/validation/flattenRequirements/index.d.ts +2 -0
  45. package/dist/utils/validation/flattenRequirements/index.d.ts.map +1 -0
  46. package/dist/utils/validation/index.d.ts +2 -0
  47. package/dist/utils/validation/index.d.ts.map +1 -0
  48. package/dist/{sdk/validation/utils/flattenRequirements/index.d.ts → utils/validation/index.js} +0 -1
  49. package/package.json +4 -4
  50. package/dist/constants/api.d.ts +0 -9
  51. package/dist/constants/api.d.ts.map +0 -1
  52. package/dist/constants/api.js +0 -8
  53. package/dist/marcoPublicConfig.d.ts +0 -52
  54. package/dist/marcoPublicConfig.d.ts.map +0 -1
  55. package/dist/marcoPublicConfig.js +0 -144
  56. package/dist/marcoPublicConfig.test.d.ts +0 -2
  57. package/dist/marcoPublicConfig.test.d.ts.map +0 -1
  58. package/dist/marcoPublicConfig.test.js +0 -7
  59. package/dist/schemas/mutators/index.d.ts +0 -2
  60. package/dist/schemas/mutators/index.d.ts.map +0 -1
  61. package/dist/schemas/mutators/index.js +0 -1
  62. package/dist/schemas/mutators/mutatorSchemas.d.ts +0 -314
  63. package/dist/schemas/mutators/mutatorSchemas.d.ts.map +0 -1
  64. package/dist/schemas/mutators/mutatorSchemas.js +0 -229
  65. package/dist/schemas/mutators/mutatorSchemas.test.d.ts +0 -2
  66. package/dist/schemas/mutators/mutatorSchemas.test.d.ts.map +0 -1
  67. package/dist/schemas/mutators/mutatorSchemas.test.js +0 -39
  68. package/dist/schemas/stripe.d.ts +0 -43
  69. package/dist/schemas/stripe.d.ts.map +0 -1
  70. package/dist/schemas/stripe.js +0 -48
  71. package/dist/schemas/websocket.d.ts +0 -14
  72. package/dist/schemas/websocket.d.ts.map +0 -1
  73. package/dist/schemas/websocket.js +0 -10
  74. package/dist/sdk/endpoints/createEndpointConfig.d.ts +0 -12
  75. package/dist/sdk/endpoints/createEndpointConfig.d.ts.map +0 -1
  76. package/dist/sdk/endpoints/createEndpointConfig.js +0 -21
  77. package/dist/sdk/endpoints/index.d.ts +0 -308
  78. package/dist/sdk/endpoints/index.d.ts.map +0 -1
  79. package/dist/sdk/endpoints/index.js +0 -6
  80. package/dist/sdk/endpoints/private/draftAttachment/index.d.ts +0 -31
  81. package/dist/sdk/endpoints/private/draftAttachment/index.d.ts.map +0 -1
  82. package/dist/sdk/endpoints/private/draftAttachment/index.js +0 -4
  83. package/dist/sdk/endpoints/private/draftAttachment/uploadDraftAttachment.d.ts +0 -30
  84. package/dist/sdk/endpoints/private/draftAttachment/uploadDraftAttachment.d.ts.map +0 -1
  85. package/dist/sdk/endpoints/private/draftAttachment/uploadDraftAttachment.js +0 -18
  86. package/dist/sdk/endpoints/private/emailMessage/getEmailMessageAttachment.d.ts +0 -21
  87. package/dist/sdk/endpoints/private/emailMessage/getEmailMessageAttachment.d.ts.map +0 -1
  88. package/dist/sdk/endpoints/private/emailMessage/getEmailMessageAttachment.js +0 -16
  89. package/dist/sdk/endpoints/private/emailMessage/index.d.ts +0 -22
  90. package/dist/sdk/endpoints/private/emailMessage/index.d.ts.map +0 -1
  91. package/dist/sdk/endpoints/private/emailMessage/index.js +0 -4
  92. package/dist/sdk/endpoints/private/index.d.ts +0 -156
  93. package/dist/sdk/endpoints/private/index.d.ts.map +0 -1
  94. package/dist/sdk/endpoints/private/index.js +0 -12
  95. package/dist/sdk/endpoints/private/models/account/getAccounts.d.ts +0 -70
  96. package/dist/sdk/endpoints/private/models/account/getAccounts.d.ts.map +0 -1
  97. package/dist/sdk/endpoints/private/models/account/getAccounts.js +0 -26
  98. package/dist/sdk/endpoints/private/models/account/index.d.ts +0 -2
  99. package/dist/sdk/endpoints/private/models/account/index.d.ts.map +0 -1
  100. package/dist/sdk/endpoints/private/models/account/index.js +0 -1
  101. package/dist/sdk/endpoints/private/models/contact/getContacts.d.ts +0 -41
  102. package/dist/sdk/endpoints/private/models/contact/getContacts.d.ts.map +0 -1
  103. package/dist/sdk/endpoints/private/models/contact/getContacts.js +0 -26
  104. package/dist/sdk/endpoints/private/models/contact/index.d.ts +0 -2
  105. package/dist/sdk/endpoints/private/models/contact/index.d.ts.map +0 -1
  106. package/dist/sdk/endpoints/private/models/contact/index.js +0 -1
  107. package/dist/sdk/endpoints/private/models/draft/getDrafts.d.ts +0 -62
  108. package/dist/sdk/endpoints/private/models/draft/getDrafts.d.ts.map +0 -1
  109. package/dist/sdk/endpoints/private/models/draft/getDrafts.js +0 -25
  110. package/dist/sdk/endpoints/private/models/draft/index.d.ts +0 -2
  111. package/dist/sdk/endpoints/private/models/draft/index.d.ts.map +0 -1
  112. package/dist/sdk/endpoints/private/models/draft/index.js +0 -1
  113. package/dist/sdk/endpoints/private/models/index.d.ts +0 -13
  114. package/dist/sdk/endpoints/private/models/index.d.ts.map +0 -1
  115. package/dist/sdk/endpoints/private/models/index.js +0 -12
  116. package/dist/sdk/endpoints/private/models/thread/getThread.d.ts +0 -63
  117. package/dist/sdk/endpoints/private/models/thread/getThread.d.ts.map +0 -1
  118. package/dist/sdk/endpoints/private/models/thread/getThread.js +0 -17
  119. package/dist/sdk/endpoints/private/models/thread/getThreadByMessageId.d.ts +0 -63
  120. package/dist/sdk/endpoints/private/models/thread/getThreadByMessageId.d.ts.map +0 -1
  121. package/dist/sdk/endpoints/private/models/thread/getThreadByMessageId.js +0 -17
  122. package/dist/sdk/endpoints/private/models/thread/getThreadList.d.ts +0 -79
  123. package/dist/sdk/endpoints/private/models/thread/getThreadList.d.ts.map +0 -1
  124. package/dist/sdk/endpoints/private/models/thread/getThreadList.js +0 -47
  125. package/dist/sdk/endpoints/private/models/thread/getThreads.d.ts +0 -83
  126. package/dist/sdk/endpoints/private/models/thread/getThreads.d.ts.map +0 -1
  127. package/dist/sdk/endpoints/private/models/thread/getThreads.js +0 -36
  128. package/dist/sdk/endpoints/private/models/thread/index.d.ts +0 -5
  129. package/dist/sdk/endpoints/private/models/thread/index.d.ts.map +0 -1
  130. package/dist/sdk/endpoints/private/models/thread/index.js +0 -4
  131. package/dist/sdk/endpoints/private/models/user/getUser.d.ts +0 -75
  132. package/dist/sdk/endpoints/private/models/user/getUser.d.ts.map +0 -1
  133. package/dist/sdk/endpoints/private/models/user/getUser.js +0 -16
  134. package/dist/sdk/endpoints/private/models/user/index.d.ts +0 -2
  135. package/dist/sdk/endpoints/private/models/user/index.d.ts.map +0 -1
  136. package/dist/sdk/endpoints/private/models/user/index.js +0 -1
  137. package/dist/sdk/endpoints/private/mutations/account/createAccount.d.ts +0 -35
  138. package/dist/sdk/endpoints/private/mutations/account/createAccount.d.ts.map +0 -1
  139. package/dist/sdk/endpoints/private/mutations/account/createAccount.js +0 -18
  140. package/dist/sdk/endpoints/private/mutations/account/createAlias.d.ts +0 -42
  141. package/dist/sdk/endpoints/private/mutations/account/createAlias.d.ts.map +0 -1
  142. package/dist/sdk/endpoints/private/mutations/account/createAlias.js +0 -19
  143. package/dist/sdk/endpoints/private/mutations/account/createLabel.d.ts +0 -44
  144. package/dist/sdk/endpoints/private/mutations/account/createLabel.d.ts.map +0 -1
  145. package/dist/sdk/endpoints/private/mutations/account/createLabel.js +0 -20
  146. package/dist/sdk/endpoints/private/mutations/account/deleteAccount.d.ts +0 -27
  147. package/dist/sdk/endpoints/private/mutations/account/deleteAccount.d.ts.map +0 -1
  148. package/dist/sdk/endpoints/private/mutations/account/deleteAccount.js +0 -18
  149. package/dist/sdk/endpoints/private/mutations/account/deleteAlias.d.ts +0 -33
  150. package/dist/sdk/endpoints/private/mutations/account/deleteAlias.d.ts.map +0 -1
  151. package/dist/sdk/endpoints/private/mutations/account/deleteAlias.js +0 -19
  152. package/dist/sdk/endpoints/private/mutations/account/deleteLabel.d.ts +0 -43
  153. package/dist/sdk/endpoints/private/mutations/account/deleteLabel.d.ts.map +0 -1
  154. package/dist/sdk/endpoints/private/mutations/account/deleteLabel.js +0 -20
  155. package/dist/sdk/endpoints/private/mutations/account/index.d.ts +0 -14
  156. package/dist/sdk/endpoints/private/mutations/account/index.d.ts.map +0 -1
  157. package/dist/sdk/endpoints/private/mutations/account/index.js +0 -13
  158. package/dist/sdk/endpoints/private/mutations/account/renameLabel.d.ts +0 -49
  159. package/dist/sdk/endpoints/private/mutations/account/renameLabel.d.ts.map +0 -1
  160. package/dist/sdk/endpoints/private/mutations/account/renameLabel.js +0 -21
  161. package/dist/sdk/endpoints/private/mutations/account/setAliasName.d.ts +0 -44
  162. package/dist/sdk/endpoints/private/mutations/account/setAliasName.d.ts.map +0 -1
  163. package/dist/sdk/endpoints/private/mutations/account/setAliasName.js +0 -20
  164. package/dist/sdk/endpoints/private/mutations/account/setAliasPrimary.d.ts +0 -33
  165. package/dist/sdk/endpoints/private/mutations/account/setAliasPrimary.d.ts.map +0 -1
  166. package/dist/sdk/endpoints/private/mutations/account/setAliasPrimary.js +0 -19
  167. package/dist/sdk/endpoints/private/mutations/account/setAliasSignature.d.ts +0 -44
  168. package/dist/sdk/endpoints/private/mutations/account/setAliasSignature.d.ts.map +0 -1
  169. package/dist/sdk/endpoints/private/mutations/account/setAliasSignature.js +0 -20
  170. package/dist/sdk/endpoints/private/mutations/account/setConnectionConfigImap.d.ts +0 -49
  171. package/dist/sdk/endpoints/private/mutations/account/setConnectionConfigImap.d.ts.map +0 -1
  172. package/dist/sdk/endpoints/private/mutations/account/setConnectionConfigImap.js +0 -19
  173. package/dist/sdk/endpoints/private/mutations/account/setConnectionConfigOauth.d.ts +0 -42
  174. package/dist/sdk/endpoints/private/mutations/account/setConnectionConfigOauth.d.ts.map +0 -1
  175. package/dist/sdk/endpoints/private/mutations/account/setConnectionConfigOauth.js +0 -19
  176. package/dist/sdk/endpoints/private/mutations/account/setSettings.d.ts +0 -39
  177. package/dist/sdk/endpoints/private/mutations/account/setSettings.d.ts.map +0 -1
  178. package/dist/sdk/endpoints/private/mutations/account/setSettings.js +0 -19
  179. package/dist/sdk/endpoints/private/mutations/draft/cancelSend.d.ts +0 -28
  180. package/dist/sdk/endpoints/private/mutations/draft/cancelSend.d.ts.map +0 -1
  181. package/dist/sdk/endpoints/private/mutations/draft/cancelSend.js +0 -18
  182. package/dist/sdk/endpoints/private/mutations/draft/createAttachment.d.ts +0 -45
  183. package/dist/sdk/endpoints/private/mutations/draft/createAttachment.d.ts.map +0 -1
  184. package/dist/sdk/endpoints/private/mutations/draft/createAttachment.js +0 -19
  185. package/dist/sdk/endpoints/private/mutations/draft/createDraft.d.ts +0 -60
  186. package/dist/sdk/endpoints/private/mutations/draft/createDraft.d.ts.map +0 -1
  187. package/dist/sdk/endpoints/private/mutations/draft/createDraft.js +0 -19
  188. package/dist/sdk/endpoints/private/mutations/draft/deleteAttachment.d.ts +0 -34
  189. package/dist/sdk/endpoints/private/mutations/draft/deleteAttachment.d.ts.map +0 -1
  190. package/dist/sdk/endpoints/private/mutations/draft/deleteAttachment.js +0 -19
  191. package/dist/sdk/endpoints/private/mutations/draft/deleteDraft.d.ts +0 -27
  192. package/dist/sdk/endpoints/private/mutations/draft/deleteDraft.d.ts.map +0 -1
  193. package/dist/sdk/endpoints/private/mutations/draft/deleteDraft.js +0 -18
  194. package/dist/sdk/endpoints/private/mutations/draft/index.d.ts +0 -10
  195. package/dist/sdk/endpoints/private/mutations/draft/index.d.ts.map +0 -1
  196. package/dist/sdk/endpoints/private/mutations/draft/index.js +0 -9
  197. package/dist/sdk/endpoints/private/mutations/draft/replaceContent.d.ts +0 -39
  198. package/dist/sdk/endpoints/private/mutations/draft/replaceContent.d.ts.map +0 -1
  199. package/dist/sdk/endpoints/private/mutations/draft/replaceContent.js +0 -19
  200. package/dist/sdk/endpoints/private/mutations/draft/scheduleSend.d.ts +0 -45
  201. package/dist/sdk/endpoints/private/mutations/draft/scheduleSend.d.ts.map +0 -1
  202. package/dist/sdk/endpoints/private/mutations/draft/scheduleSend.js +0 -19
  203. package/dist/sdk/endpoints/private/mutations/draft/setEnvelope.d.ts +0 -85
  204. package/dist/sdk/endpoints/private/mutations/draft/setEnvelope.d.ts.map +0 -1
  205. package/dist/sdk/endpoints/private/mutations/draft/setEnvelope.js +0 -19
  206. package/dist/sdk/endpoints/private/mutations/draft/setFrom.d.ts +0 -47
  207. package/dist/sdk/endpoints/private/mutations/draft/setFrom.d.ts.map +0 -1
  208. package/dist/sdk/endpoints/private/mutations/draft/setFrom.js +0 -20
  209. package/dist/sdk/endpoints/private/mutations/index.d.ts +0 -11
  210. package/dist/sdk/endpoints/private/mutations/index.d.ts.map +0 -1
  211. package/dist/sdk/endpoints/private/mutations/index.js +0 -10
  212. package/dist/sdk/endpoints/private/mutations/thread/addLabel.d.ts +0 -40
  213. package/dist/sdk/endpoints/private/mutations/thread/addLabel.d.ts.map +0 -1
  214. package/dist/sdk/endpoints/private/mutations/thread/addLabel.js +0 -19
  215. package/dist/sdk/endpoints/private/mutations/thread/deleteThreads.d.ts +0 -34
  216. package/dist/sdk/endpoints/private/mutations/thread/deleteThreads.d.ts.map +0 -1
  217. package/dist/sdk/endpoints/private/mutations/thread/deleteThreads.js +0 -18
  218. package/dist/sdk/endpoints/private/mutations/thread/index.d.ts +0 -11
  219. package/dist/sdk/endpoints/private/mutations/thread/index.d.ts.map +0 -1
  220. package/dist/sdk/endpoints/private/mutations/thread/index.js +0 -10
  221. package/dist/sdk/endpoints/private/mutations/thread/removeLabel.d.ts +0 -40
  222. package/dist/sdk/endpoints/private/mutations/thread/removeLabel.d.ts.map +0 -1
  223. package/dist/sdk/endpoints/private/mutations/thread/removeLabel.js +0 -19
  224. package/dist/sdk/endpoints/private/mutations/thread/setArchive.d.ts +0 -34
  225. package/dist/sdk/endpoints/private/mutations/thread/setArchive.d.ts.map +0 -1
  226. package/dist/sdk/endpoints/private/mutations/thread/setArchive.js +0 -18
  227. package/dist/sdk/endpoints/private/mutations/thread/setFlagged.d.ts +0 -35
  228. package/dist/sdk/endpoints/private/mutations/thread/setFlagged.d.ts.map +0 -1
  229. package/dist/sdk/endpoints/private/mutations/thread/setFlagged.js +0 -18
  230. package/dist/sdk/endpoints/private/mutations/thread/setInbox.d.ts +0 -34
  231. package/dist/sdk/endpoints/private/mutations/thread/setInbox.d.ts.map +0 -1
  232. package/dist/sdk/endpoints/private/mutations/thread/setInbox.js +0 -18
  233. package/dist/sdk/endpoints/private/mutations/thread/setSeen.d.ts +0 -35
  234. package/dist/sdk/endpoints/private/mutations/thread/setSeen.d.ts.map +0 -1
  235. package/dist/sdk/endpoints/private/mutations/thread/setSeen.js +0 -18
  236. package/dist/sdk/endpoints/private/mutations/thread/setSnooze.d.ts +0 -35
  237. package/dist/sdk/endpoints/private/mutations/thread/setSnooze.d.ts.map +0 -1
  238. package/dist/sdk/endpoints/private/mutations/thread/setSnooze.js +0 -18
  239. package/dist/sdk/endpoints/private/mutations/thread/setSpam.d.ts +0 -34
  240. package/dist/sdk/endpoints/private/mutations/thread/setSpam.d.ts.map +0 -1
  241. package/dist/sdk/endpoints/private/mutations/thread/setSpam.js +0 -18
  242. package/dist/sdk/endpoints/private/mutations/thread/setTrash.d.ts +0 -34
  243. package/dist/sdk/endpoints/private/mutations/thread/setTrash.d.ts.map +0 -1
  244. package/dist/sdk/endpoints/private/mutations/thread/setTrash.js +0 -18
  245. package/dist/sdk/endpoints/private/mutations/user/createFeedback.d.ts +0 -34
  246. package/dist/sdk/endpoints/private/mutations/user/createFeedback.d.ts.map +0 -1
  247. package/dist/sdk/endpoints/private/mutations/user/createFeedback.js +0 -18
  248. package/dist/sdk/endpoints/private/mutations/user/createView.d.ts +0 -38
  249. package/dist/sdk/endpoints/private/mutations/user/createView.d.ts.map +0 -1
  250. package/dist/sdk/endpoints/private/mutations/user/createView.js +0 -18
  251. package/dist/sdk/endpoints/private/mutations/user/deletePushToken.d.ts +0 -23
  252. package/dist/sdk/endpoints/private/mutations/user/deletePushToken.d.ts.map +0 -1
  253. package/dist/sdk/endpoints/private/mutations/user/deletePushToken.js +0 -17
  254. package/dist/sdk/endpoints/private/mutations/user/deleteView.d.ts +0 -28
  255. package/dist/sdk/endpoints/private/mutations/user/deleteView.d.ts.map +0 -1
  256. package/dist/sdk/endpoints/private/mutations/user/deleteView.js +0 -18
  257. package/dist/sdk/endpoints/private/mutations/user/index.d.ts +0 -9
  258. package/dist/sdk/endpoints/private/mutations/user/index.d.ts.map +0 -1
  259. package/dist/sdk/endpoints/private/mutations/user/index.js +0 -8
  260. package/dist/sdk/endpoints/private/mutations/user/setFeedbackModalShown.d.ts +0 -32
  261. package/dist/sdk/endpoints/private/mutations/user/setFeedbackModalShown.d.ts.map +0 -1
  262. package/dist/sdk/endpoints/private/mutations/user/setFeedbackModalShown.js +0 -18
  263. package/dist/sdk/endpoints/private/mutations/user/setPushToken.d.ts +0 -37
  264. package/dist/sdk/endpoints/private/mutations/user/setPushToken.d.ts.map +0 -1
  265. package/dist/sdk/endpoints/private/mutations/user/setPushToken.js +0 -18
  266. package/dist/sdk/endpoints/private/mutations/user/setSettingsName.d.ts +0 -33
  267. package/dist/sdk/endpoints/private/mutations/user/setSettingsName.d.ts.map +0 -1
  268. package/dist/sdk/endpoints/private/mutations/user/setSettingsName.js +0 -18
  269. package/dist/sdk/endpoints/private/mutations/user/updateView.d.ts +0 -43
  270. package/dist/sdk/endpoints/private/mutations/user/updateView.d.ts.map +0 -1
  271. package/dist/sdk/endpoints/private/mutations/user/updateView.js +0 -19
  272. package/dist/sdk/endpoints/private/user/createBillingPortalSession.d.ts +0 -30
  273. package/dist/sdk/endpoints/private/user/createBillingPortalSession.d.ts.map +0 -1
  274. package/dist/sdk/endpoints/private/user/createBillingPortalSession.js +0 -19
  275. package/dist/sdk/endpoints/private/user/createCheckoutSession.d.ts +0 -27
  276. package/dist/sdk/endpoints/private/user/createCheckoutSession.d.ts.map +0 -1
  277. package/dist/sdk/endpoints/private/user/createCheckoutSession.js +0 -20
  278. package/dist/sdk/endpoints/private/user/deleteUser.d.ts +0 -10
  279. package/dist/sdk/endpoints/private/user/deleteUser.d.ts.map +0 -1
  280. package/dist/sdk/endpoints/private/user/deleteUser.js +0 -13
  281. package/dist/sdk/endpoints/private/user/index.d.ts +0 -90
  282. package/dist/sdk/endpoints/private/user/index.d.ts.map +0 -1
  283. package/dist/sdk/endpoints/private/user/index.js +0 -10
  284. package/dist/sdk/endpoints/private/user/uploadProfilePicture.d.ts +0 -28
  285. package/dist/sdk/endpoints/private/user/uploadProfilePicture.d.ts.map +0 -1
  286. package/dist/sdk/endpoints/private/user/uploadProfilePicture.js +0 -19
  287. package/dist/sdk/endpoints/public/auth/index.d.ts +0 -133
  288. package/dist/sdk/endpoints/public/auth/index.d.ts.map +0 -1
  289. package/dist/sdk/endpoints/public/auth/index.js +0 -8
  290. package/dist/sdk/endpoints/public/auth/refreshAuth.d.ts +0 -41
  291. package/dist/sdk/endpoints/public/auth/refreshAuth.d.ts.map +0 -1
  292. package/dist/sdk/endpoints/public/auth/refreshAuth.js +0 -33
  293. package/dist/sdk/endpoints/public/auth/sendAuthCode.d.ts +0 -27
  294. package/dist/sdk/endpoints/public/auth/sendAuthCode.d.ts.map +0 -1
  295. package/dist/sdk/endpoints/public/auth/sendAuthCode.js +0 -19
  296. package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts +0 -68
  297. package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts.map +0 -1
  298. package/dist/sdk/endpoints/public/auth/verifyAuthCode.js +0 -36
  299. package/dist/sdk/endpoints/public/config/index.d.ts +0 -10
  300. package/dist/sdk/endpoints/public/config/index.d.ts.map +0 -1
  301. package/dist/sdk/endpoints/public/config/index.js +0 -15
  302. package/dist/sdk/endpoints/public/healthcheck/index.d.ts +0 -8
  303. package/dist/sdk/endpoints/public/healthcheck/index.d.ts.map +0 -1
  304. package/dist/sdk/endpoints/public/healthcheck/index.js +0 -10
  305. package/dist/sdk/endpoints/public/index.d.ts +0 -149
  306. package/dist/sdk/endpoints/public/index.d.ts.map +0 -1
  307. package/dist/sdk/endpoints/public/index.js +0 -8
  308. package/dist/sdk/index.d.ts +0 -485
  309. package/dist/sdk/index.d.ts.map +0 -1
  310. package/dist/sdk/index.js +0 -6
  311. package/dist/sdk/validation/errors.d.ts +0 -338
  312. package/dist/sdk/validation/errors.d.ts.map +0 -1
  313. package/dist/sdk/validation/errors.js +0 -145
  314. package/dist/sdk/validation/index.d.ts +0 -178
  315. package/dist/sdk/validation/index.d.ts.map +0 -1
  316. package/dist/sdk/validation/index.js +0 -3
  317. package/dist/sdk/validation/utils/flattenRequirements/flattenRequirements.d.ts +0 -11
  318. package/dist/sdk/validation/utils/flattenRequirements/flattenRequirements.d.ts.map +0 -1
  319. package/dist/sdk/validation/utils/flattenRequirements/flattenRequirements.js +0 -22
  320. package/dist/sdk/validation/utils/flattenRequirements/index.d.ts.map +0 -1
  321. package/dist/sdk/validation/utils/index.d.ts +0 -7
  322. package/dist/sdk/validation/utils/index.d.ts.map +0 -1
  323. package/dist/sdk/validation/utils/index.js +0 -4
  324. package/dist/types/AuthData.d.ts +0 -4
  325. package/dist/types/AuthData.d.ts.map +0 -1
  326. package/dist/types/AuthData.js +0 -1
  327. package/dist/types/Endpoint.d.ts +0 -25
  328. package/dist/types/Endpoint.d.ts.map +0 -1
  329. package/dist/types/Endpoint.js +0 -1
  330. package/dist/types/PokeEvent.d.ts +0 -6
  331. package/dist/types/PokeEvent.d.ts.map +0 -1
  332. package/dist/types/PokeEvent.js +0 -1
  333. package/dist/types/SDKError.d.ts +0 -4
  334. package/dist/types/SDKError.d.ts.map +0 -1
  335. package/dist/types/SDKError.js +0 -1
  336. package/dist/types/StripeSubscriptionStatus.d.ts +0 -3
  337. package/dist/types/StripeSubscriptionStatus.d.ts.map +0 -1
  338. package/dist/types/StripeSubscriptionStatus.js +0 -10
  339. package/dist/types/SubscriptionTier.d.ts +0 -3
  340. package/dist/types/SubscriptionTier.d.ts.map +0 -1
  341. package/dist/types/SubscriptionTier.js +0 -1
  342. /package/dist/{sdk/validation/utils → utils/validation}/flattenRequirements/index.js +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"file":"getEmailMessageAttachment.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/emailMessage/getEmailMessageAttachment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAS5B,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;2BAYpC,CAAA"}
@@ -1,16 +0,0 @@
1
- import * as v from 'valibot';
2
- import { createEndpoint } from '../../../../sdk/endpoints/createEndpointConfig';
3
- import { attachmentNotFoundErrorSchema, attachmentStateInvalidErrorSchema, authFailedErrorSchema, } from '../../../../sdk/validation/errors';
4
- export const getEmailMessageAttachment = createEndpoint({
5
- method: 'GET',
6
- path: '/v1/pv/attachment/:attachmentId',
7
- response: v.union([
8
- authFailedErrorSchema,
9
- attachmentNotFoundErrorSchema,
10
- attachmentStateInvalidErrorSchema,
11
- v.object({
12
- file: v.nonOptional(v.file()),
13
- status: v.literal(200),
14
- }),
15
- ]),
16
- });
@@ -1,22 +0,0 @@
1
- export declare const emailMessage: {
2
- getAttachment: import("../../../..").EndpointConfig<"/v1/pv/attachment/:attachmentId", import("valibot").GenericSchema | 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 file: import("valibot").NonOptionalSchema<import("valibot").FileSchema<undefined>, undefined>;
19
- readonly status: import("valibot").LiteralSchema<200, undefined>;
20
- }, undefined>], undefined>>;
21
- };
22
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/emailMessage/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;CAExB,CAAA"}
@@ -1,4 +0,0 @@
1
- import { getEmailMessageAttachment } from './getEmailMessageAttachment';
2
- export const emailMessage = {
3
- getAttachment: getEmailMessageAttachment,
4
- };
@@ -1,156 +0,0 @@
1
- export declare const privateGroup: {
2
- draftAttachment: {
3
- upload: import("../../..").EndpointConfig<"/v1/pv/drafts/:attachmentId/upload", import("valibot").BlobSchema<undefined>, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
4
- readonly data: import("valibot").ObjectSchema<{
5
- readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
6
- }, undefined>;
7
- readonly status: import("valibot").LiteralSchema<401, undefined>;
8
- }, undefined>, import("valibot").ObjectSchema<{
9
- readonly data: import("valibot").ObjectSchema<{
10
- readonly code: import("valibot").LiteralSchema<"ATTACHMENT_NOT_FOUND", undefined>;
11
- }, undefined>;
12
- readonly status: import("valibot").LiteralSchema<404, undefined>;
13
- }, undefined>, import("valibot").ObjectSchema<{
14
- readonly data: import("valibot").ObjectSchema<{
15
- readonly code: import("valibot").LiteralSchema<"ATTACHMENT_STATE_INVALID", undefined>;
16
- }, undefined>;
17
- readonly status: import("valibot").LiteralSchema<409, undefined>;
18
- }, undefined>, import("valibot").ObjectSchema<{
19
- readonly data: import("valibot").ObjectSchema<{
20
- readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
21
- readonly issues: import("valibot").ObjectSchema<{
22
- 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>;
23
- readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
24
- readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
25
- }, undefined>;
26
- }, undefined>;
27
- readonly status: import("valibot").LiteralSchema<400, undefined>;
28
- }, undefined>, import("valibot").ObjectSchema<{
29
- readonly status: import("valibot").LiteralSchema<200, undefined>;
30
- }, undefined>], undefined>>;
31
- };
32
- emailMessage: {
33
- getAttachment: import("../../..").EndpointConfig<"/v1/pv/attachment/:attachmentId", import("valibot").GenericSchema | undefined, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
34
- readonly data: import("valibot").ObjectSchema<{
35
- readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
36
- }, undefined>;
37
- readonly status: import("valibot").LiteralSchema<401, undefined>;
38
- }, undefined>, import("valibot").ObjectSchema<{
39
- readonly data: import("valibot").ObjectSchema<{
40
- readonly code: import("valibot").LiteralSchema<"ATTACHMENT_NOT_FOUND", undefined>;
41
- }, undefined>;
42
- readonly status: import("valibot").LiteralSchema<404, undefined>;
43
- }, undefined>, import("valibot").ObjectSchema<{
44
- readonly data: import("valibot").ObjectSchema<{
45
- readonly code: import("valibot").LiteralSchema<"ATTACHMENT_STATE_INVALID", undefined>;
46
- }, undefined>;
47
- readonly status: import("valibot").LiteralSchema<409, undefined>;
48
- }, undefined>, import("valibot").ObjectSchema<{
49
- readonly file: import("valibot").NonOptionalSchema<import("valibot").FileSchema<undefined>, undefined>;
50
- readonly status: import("valibot").LiteralSchema<200, undefined>;
51
- }, undefined>], undefined>>;
52
- };
53
- models: {
54
- account: typeof import("./models/account");
55
- contact: typeof import("./models/contact");
56
- draft: typeof import("./models/draft");
57
- thread: typeof import("./models/thread");
58
- user: typeof import("./models/user");
59
- };
60
- mutations: {
61
- account: typeof import("./mutations/account");
62
- draft: typeof import("./mutations/draft");
63
- thread: typeof import("./mutations/thread");
64
- user: typeof import("./mutations/user");
65
- };
66
- user: {
67
- createBillingPortalSession: import("../../..").EndpointConfig<"/v1/pv/user/create-billing-portal-session", import("valibot").ObjectSchema<{
68
- readonly returnUrl: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").UrlAction<string, undefined>]>;
69
- }, undefined>, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
70
- readonly data: import("valibot").ObjectSchema<{
71
- readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
72
- }, undefined>;
73
- readonly status: import("valibot").LiteralSchema<401, undefined>;
74
- }, undefined>, import("valibot").ObjectSchema<{
75
- readonly data: import("valibot").ObjectSchema<{
76
- readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
77
- readonly issues: import("valibot").ObjectSchema<{
78
- 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>;
79
- readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
80
- readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
81
- }, undefined>;
82
- }, undefined>;
83
- readonly status: import("valibot").LiteralSchema<400, undefined>;
84
- }, undefined>, import("valibot").ObjectSchema<{
85
- readonly data: import("valibot").ObjectSchema<{
86
- readonly code: import("valibot").LiteralSchema<"SUBSCRIPTION_NOT_FOUND", undefined>;
87
- }, undefined>;
88
- readonly status: import("valibot").LiteralSchema<404, undefined>;
89
- }, undefined>, import("valibot").ObjectSchema<{
90
- readonly data: import("valibot").ObjectSchema<{
91
- readonly url: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").UrlAction<string, undefined>]>;
92
- }, undefined>;
93
- readonly status: import("valibot").LiteralSchema<200, undefined>;
94
- }, undefined>], undefined>>;
95
- createCheckoutSession: import("../../..").EndpointConfig<"/v1/pv/user/create-checkout-session", import("valibot").ObjectSchema<{
96
- readonly cancelUrl: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>]>;
97
- readonly priceId: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>]>;
98
- readonly successUrl: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>]>;
99
- }, undefined>, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
100
- readonly data: import("valibot").ObjectSchema<{
101
- readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
102
- }, undefined>;
103
- readonly status: import("valibot").LiteralSchema<401, undefined>;
104
- }, undefined>, import("valibot").ObjectSchema<{
105
- readonly data: import("valibot").ObjectSchema<{
106
- readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
107
- readonly issues: import("valibot").ObjectSchema<{
108
- 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>;
109
- readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
110
- readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
111
- }, undefined>;
112
- }, undefined>;
113
- readonly status: import("valibot").LiteralSchema<400, undefined>;
114
- }, undefined>, import("valibot").ObjectSchema<{
115
- readonly data: import("valibot").ObjectSchema<{
116
- readonly url: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").UrlAction<string, undefined>]>;
117
- }, undefined>;
118
- readonly status: import("valibot").LiteralSchema<200, undefined>;
119
- }, undefined>], undefined>>;
120
- deleteUser: import("../../..").EndpointConfig<"/v1/pv/user", import("valibot").GenericSchema | undefined, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
121
- readonly data: import("valibot").ObjectSchema<{
122
- readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
123
- }, undefined>;
124
- readonly status: import("valibot").LiteralSchema<401, undefined>;
125
- }, undefined>, import("valibot").ObjectSchema<{
126
- readonly status: import("valibot").LiteralSchema<204, undefined>;
127
- }, undefined>], undefined>>;
128
- uploadProfilePicture: import("../../..").EndpointConfig<"/v1/pv/user/profile-picture", import("valibot").BlobSchema<undefined>, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
129
- readonly data: import("valibot").ObjectSchema<{
130
- readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
131
- }, undefined>;
132
- readonly status: import("valibot").LiteralSchema<401, undefined>;
133
- }, undefined>, import("valibot").ObjectSchema<{
134
- readonly data: import("valibot").ObjectSchema<{
135
- readonly code: import("valibot").LiteralSchema<"FILE_TOO_LARGE", undefined>;
136
- }, undefined>;
137
- readonly status: import("valibot").LiteralSchema<413, undefined>;
138
- }, undefined>, import("valibot").ObjectSchema<{
139
- readonly data: import("valibot").ObjectSchema<{
140
- readonly code: import("valibot").LiteralSchema<"INVALID_FILE_TYPE", undefined>;
141
- }, undefined>;
142
- readonly status: import("valibot").LiteralSchema<415, undefined>;
143
- }, undefined>, import("valibot").ObjectSchema<{
144
- readonly data: import("valibot").ObjectSchema<{
145
- readonly code: import("valibot").LiteralSchema<"INVALID_IMAGE_DIMENSIONS", undefined>;
146
- }, undefined>;
147
- readonly status: import("valibot").LiteralSchema<415, undefined>;
148
- }, undefined>, import("valibot").ObjectSchema<{
149
- readonly data: import("valibot").ObjectSchema<{
150
- readonly profilePicture: import("valibot").StringSchema<undefined>;
151
- }, undefined>;
152
- readonly status: import("valibot").LiteralSchema<200, undefined>;
153
- }, undefined>], undefined>>;
154
- };
155
- };
156
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/endpoints/private/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMxB,CAAA"}
@@ -1,12 +0,0 @@
1
- import { draftAttachment } from './draftAttachment';
2
- import { emailMessage } from './emailMessage';
3
- import { models } from './models';
4
- import { mutations } from './mutations';
5
- import { user } from './user';
6
- export const privateGroup = {
7
- draftAttachment,
8
- emailMessage,
9
- models,
10
- mutations,
11
- user,
12
- };
@@ -1,70 +0,0 @@
1
- import * as v from 'valibot';
2
- export declare const getAccounts: import("../../../../..").EndpointConfig<"/v1/pv/models/accounts/list", v.GenericSchema | undefined, v.ObjectSchema<{
3
- readonly cursor: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
4
- readonly ids: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
5
- readonly include: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
6
- readonly labelIds: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
7
- readonly limit: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.TransformAction<string, number>, v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
8
- readonly search: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
9
- }, undefined>, v.UnionSchema<[v.ObjectSchema<{
10
- readonly data: v.ObjectSchema<{
11
- readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
12
- }, undefined>;
13
- readonly status: v.LiteralSchema<401, undefined>;
14
- }, undefined>, v.ObjectSchema<{
15
- readonly data: v.ObjectSchema<{
16
- readonly code: v.LiteralSchema<"USER_NOT_FOUND", undefined>;
17
- }, undefined>;
18
- readonly status: v.LiteralSchema<404, undefined>;
19
- }, undefined>, v.ObjectSchema<{
20
- readonly data: v.ObjectSchema<{
21
- readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
22
- readonly issues: v.ObjectSchema<{
23
- readonly nested: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
24
- readonly other: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
25
- readonly root: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
26
- }, undefined>;
27
- }, undefined>;
28
- readonly status: v.LiteralSchema<400, undefined>;
29
- }, undefined>, v.ObjectSchema<{
30
- readonly data: v.ObjectSchema<{
31
- readonly items: v.ArraySchema<v.ObjectSchema<{
32
- readonly aliases: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
33
- readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
34
- readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
35
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AliasId">]>, undefined>;
36
- readonly isPrimary: v.BooleanSchema<undefined>;
37
- readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
38
- readonly signature: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 50000, undefined>]>, undefined>;
39
- }, undefined>, undefined>, undefined>;
40
- readonly color: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
41
- readonly displayName: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
42
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
43
- readonly imapConnectionStatus: v.PicklistSchema<readonly ["AWAITING_CONNECTION", "CONNECTED", "CONNECTION_FAILED_AUTHENTICATION_ERROR", "CONNECTION_FAILED_CONNECTION_ERROR", "CONNECTION_FAILED_OAUTH_EXCHANGE_ERROR", "CONNECTION_FAILED_QUOTA_ERROR", "CONNECTION_FAILED_UNKNOWN_ERROR"], undefined>;
44
- readonly labels: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
45
- readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
46
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "LabelId">]>, undefined>;
47
- readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
48
- readonly path: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
49
- readonly specialUse: v.NullableSchema<v.PicklistSchema<readonly ["ARCHIVE", "INBOX", "SENT", "SPAM", "TRASH"], undefined>, undefined>;
50
- readonly uidValidity: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
51
- readonly unreadCount: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
52
- }, undefined>, undefined>, undefined>;
53
- readonly mailProcessedCount: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
54
- readonly mailTotalCount: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
55
- readonly primaryAlias: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
56
- readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
57
- readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
58
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AliasId">]>, undefined>;
59
- readonly isPrimary: v.BooleanSchema<undefined>;
60
- readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
61
- readonly signature: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 50000, undefined>]>, undefined>;
62
- }, undefined>, undefined>, undefined>;
63
- readonly primaryAliasId: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AliasId">]>, undefined>;
64
- readonly userId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "UserId">]>, undefined>;
65
- }, undefined>, undefined>;
66
- readonly nextCursor: v.NullableSchema<v.StringSchema<undefined>, undefined>;
67
- }, undefined>;
68
- readonly status: v.LiteralSchema<200, undefined>;
69
- }, undefined>], undefined>>;
70
- //# sourceMappingURL=getAccounts.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getAccounts.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/models/account/getAccounts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAW5B,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAoBtB,CAAA"}
@@ -1,26 +0,0 @@
1
- import * as v from 'valibot';
2
- import { marcoSchemas } from '../../../../../schemas';
3
- import { paginatedResponseSchema } from '../../../../../schemas/paginatedResponse';
4
- import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
5
- import { authFailedErrorSchema, userNotFoundErrorSchema, validationFailedErrorSchema, } from '../../../../../sdk/validation/errors';
6
- export const getAccounts = createEndpoint({
7
- method: 'GET',
8
- path: '/v1/pv/models/accounts/list',
9
- query: v.object({
10
- cursor: v.optional(v.string()),
11
- ids: v.optional(v.array(v.string())),
12
- include: v.optional(v.array(v.string())),
13
- labelIds: v.optional(v.array(v.string())),
14
- limit: v.optional(marcoSchemas.number.positiveIntegerFromString()),
15
- search: v.optional(v.string()),
16
- }),
17
- response: v.union([
18
- authFailedErrorSchema,
19
- userNotFoundErrorSchema,
20
- validationFailedErrorSchema,
21
- v.object({
22
- data: paginatedResponseSchema(marcoSchemas.models.accountSchema),
23
- status: v.literal(200),
24
- }),
25
- ]),
26
- });
@@ -1,2 +0,0 @@
1
- export { getAccounts } from './getAccounts';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/models/account/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA"}
@@ -1 +0,0 @@
1
- export { getAccounts } from './getAccounts';
@@ -1,41 +0,0 @@
1
- import * as v from 'valibot';
2
- export declare const getContacts: import("../../../../..").EndpointConfig<"/v1/pv/models/contacts/list", v.GenericSchema | undefined, v.ObjectSchema<{
3
- readonly cursor: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
4
- readonly emailAddresses: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
5
- readonly ids: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
6
- readonly limit: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.TransformAction<string, number>, v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
7
- readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
8
- readonly search: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
9
- }, undefined>, v.UnionSchema<[v.ObjectSchema<{
10
- readonly data: v.ObjectSchema<{
11
- readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
12
- }, undefined>;
13
- readonly status: v.LiteralSchema<401, undefined>;
14
- }, undefined>, v.ObjectSchema<{
15
- readonly data: v.ObjectSchema<{
16
- readonly code: v.LiteralSchema<"USER_NOT_FOUND", undefined>;
17
- }, undefined>;
18
- readonly status: v.LiteralSchema<404, undefined>;
19
- }, undefined>, v.ObjectSchema<{
20
- readonly data: v.ObjectSchema<{
21
- readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
22
- readonly issues: v.ObjectSchema<{
23
- readonly nested: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
24
- readonly other: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
25
- readonly root: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
26
- }, undefined>;
27
- }, undefined>;
28
- readonly status: v.LiteralSchema<400, undefined>;
29
- }, undefined>, v.ObjectSchema<{
30
- readonly data: v.ObjectSchema<{
31
- readonly items: v.ArraySchema<v.ObjectSchema<{
32
- readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
33
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ContactId">]>, undefined>;
34
- readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
35
- readonly userId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "UserId">]>, undefined>;
36
- }, undefined>, undefined>;
37
- readonly nextCursor: v.NullableSchema<v.StringSchema<undefined>, undefined>;
38
- }, undefined>;
39
- readonly status: v.LiteralSchema<200, undefined>;
40
- }, undefined>], undefined>>;
41
- //# sourceMappingURL=getContacts.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getContacts.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/models/contact/getContacts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAW5B,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAoBtB,CAAA"}
@@ -1,26 +0,0 @@
1
- import * as v from 'valibot';
2
- import { marcoSchemas } from '../../../../../schemas';
3
- import { paginatedResponseSchema } from '../../../../../schemas/paginatedResponse';
4
- import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
5
- import { authFailedErrorSchema, userNotFoundErrorSchema, validationFailedErrorSchema, } from '../../../../../sdk/validation/errors';
6
- export const getContacts = createEndpoint({
7
- method: 'GET',
8
- path: '/v1/pv/models/contacts/list',
9
- query: v.object({
10
- cursor: v.optional(v.string()),
11
- emailAddresses: v.optional(v.array(v.string())),
12
- ids: v.optional(v.array(v.string())),
13
- limit: v.optional(marcoSchemas.number.positiveIntegerFromString()),
14
- name: v.optional(v.string()),
15
- search: v.optional(v.string()),
16
- }),
17
- response: v.union([
18
- authFailedErrorSchema,
19
- userNotFoundErrorSchema,
20
- validationFailedErrorSchema,
21
- v.object({
22
- data: paginatedResponseSchema(marcoSchemas.models.contactSchema),
23
- status: v.literal(200),
24
- }),
25
- ]),
26
- });
@@ -1,2 +0,0 @@
1
- export { getContacts } from './getContacts';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/models/contact/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA"}
@@ -1 +0,0 @@
1
- export { getContacts } from './getContacts';
@@ -1,62 +0,0 @@
1
- import * as v from 'valibot';
2
- export declare const getDrafts: import("../../../../../types").EndpointConfig<"/v1/pv/models/drafts/list", v.GenericSchema | undefined, v.ObjectSchema<{
3
- readonly accountId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
4
- readonly cursor: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
5
- readonly limit: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.TransformAction<string, number>, v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
6
- readonly status: v.OptionalSchema<v.PicklistSchema<readonly ["DRAFT", "SEND_REQUESTED", "SEND_IN_PROGRESS", "SEND_CONFIRMED", "SEND_FAILED"], undefined>, undefined>;
7
- }, undefined>, v.UnionSchema<[v.ObjectSchema<{
8
- readonly data: v.ObjectSchema<{
9
- readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
10
- }, undefined>;
11
- readonly status: v.LiteralSchema<401, undefined>;
12
- }, undefined>, v.ObjectSchema<{
13
- readonly data: v.ObjectSchema<{
14
- readonly code: v.LiteralSchema<"USER_NOT_FOUND", undefined>;
15
- }, undefined>;
16
- readonly status: v.LiteralSchema<404, 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 data: v.ObjectSchema<{
29
- readonly items: v.ArraySchema<v.ObjectSchema<{
30
- readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
31
- readonly attachments: v.ArraySchema<v.ObjectSchema<{
32
- readonly draftId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "DraftId">]>, undefined>;
33
- readonly fileName: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
34
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AttachmentId">]>, undefined>;
35
- readonly mimeType: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
36
- readonly status: v.PicklistSchema<readonly ["PENDING", "COMPLETE", "FAILED"], undefined>;
37
- readonly totalSize: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
38
- }, undefined>, undefined>;
39
- readonly body: v.ObjectSchema<{
40
- readonly bcc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
41
- readonly cc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
42
- readonly content: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 384000, undefined>]>;
43
- readonly to: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
44
- }, undefined>;
45
- readonly error: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
46
- readonly fromAliasId: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AliasId">]>, undefined>;
47
- readonly fromEmail: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
48
- readonly fromName: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
49
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "DraftId">]>, undefined>;
50
- readonly referencedMessageId: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "MessageId">]>, undefined>;
51
- readonly scheduledFor: v.NullableSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
52
- readonly status: v.PicklistSchema<readonly ["DRAFT", "SEND_REQUESTED", "SEND_IN_PROGRESS", "SEND_CONFIRMED", "SEND_FAILED"], undefined>;
53
- readonly subject: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
54
- readonly type: v.PicklistSchema<readonly ["NEW", "REPLY", "FORWARD"], undefined>;
55
- readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
56
- readonly userId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "UserId">]>, undefined>;
57
- }, undefined>, undefined>;
58
- readonly nextCursor: v.NullableSchema<v.StringSchema<undefined>, undefined>;
59
- }, undefined>;
60
- readonly status: v.LiteralSchema<200, undefined>;
61
- }, undefined>], undefined>>;
62
- //# sourceMappingURL=getDrafts.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getDrafts.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/models/draft/getDrafts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAY5B,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAkBpB,CAAA"}
@@ -1,25 +0,0 @@
1
- import * as v from 'valibot';
2
- import { marcoSchemas } from '../../../../../schemas';
3
- import { paginatedResponseSchema } from '../../../../../schemas/paginatedResponse';
4
- import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
5
- import { authFailedErrorSchema, userNotFoundErrorSchema, validationFailedErrorSchema, } from '../../../../../sdk/validation/errors';
6
- import { DRAFT_STATUSES } from '../../../../../types';
7
- export const getDrafts = createEndpoint({
8
- method: 'GET',
9
- path: '/v1/pv/models/drafts/list',
10
- query: v.object({
11
- accountId: v.optional(v.string()),
12
- cursor: v.optional(v.string()),
13
- limit: v.optional(marcoSchemas.number.positiveIntegerFromString()),
14
- status: v.optional(v.picklist(DRAFT_STATUSES)),
15
- }),
16
- response: v.union([
17
- authFailedErrorSchema,
18
- userNotFoundErrorSchema,
19
- validationFailedErrorSchema,
20
- v.object({
21
- data: paginatedResponseSchema(marcoSchemas.models.draftSchema),
22
- status: v.literal(200),
23
- }),
24
- ]),
25
- });
@@ -1,2 +0,0 @@
1
- export { getDrafts } from './getDrafts';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/models/draft/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA"}
@@ -1 +0,0 @@
1
- export { getDrafts } from './getDrafts';
@@ -1,13 +0,0 @@
1
- import * as account from './account';
2
- import * as contact from './contact';
3
- import * as draft from './draft';
4
- import * as thread from './thread';
5
- import * as user from './user';
6
- export declare const models: {
7
- account: typeof account;
8
- contact: typeof contact;
9
- draft: typeof draft;
10
- thread: typeof thread;
11
- user: typeof user;
12
- };
13
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/models/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,WAAW,CAAA;AACpC,OAAO,KAAK,OAAO,MAAM,WAAW,CAAA;AACpC,OAAO,KAAK,KAAK,MAAM,SAAS,CAAA;AAChC,OAAO,KAAK,MAAM,MAAM,UAAU,CAAA;AAClC,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAA;AAE9B,eAAO,MAAM,MAAM;;;;;;CAMlB,CAAA"}
@@ -1,12 +0,0 @@
1
- import * as account from './account';
2
- import * as contact from './contact';
3
- import * as draft from './draft';
4
- import * as thread from './thread';
5
- import * as user from './user';
6
- export const models = {
7
- account,
8
- contact,
9
- draft,
10
- thread,
11
- user,
12
- };