@marcoappio/marco-config 4.0.26 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (465) hide show
  1. package/dist/constants/api.d.ts +9 -0
  2. package/dist/constants/api.d.ts.map +1 -0
  3. package/dist/constants/api.js +8 -0
  4. package/dist/constants/emailAccounts.d.ts.map +1 -1
  5. package/dist/constants/emailAccounts.js +14 -1
  6. package/dist/constants/emailProvider.js +1 -1
  7. package/dist/constants/index.d.ts +11 -3
  8. package/dist/constants/index.d.ts.map +1 -1
  9. package/dist/constants/index.js +7 -5
  10. package/dist/constants/messages.d.ts.map +1 -1
  11. package/dist/constants/oauth.d.ts +2 -2
  12. package/dist/constants/oauth.d.ts.map +1 -1
  13. package/dist/constants/oauth.js +5 -1
  14. package/dist/constants/user.d.ts +1 -1
  15. package/dist/constants/user.d.ts.map +1 -1
  16. package/dist/constants/user.js +1 -1
  17. package/dist/index.d.ts +6 -5
  18. package/dist/index.d.ts.map +1 -1
  19. package/dist/index.js +6 -5
  20. package/dist/marcoPublicConfig.d.ts +36 -0
  21. package/dist/marcoPublicConfig.d.ts.map +1 -0
  22. package/dist/marcoPublicConfig.js +99 -0
  23. package/dist/schemas/app.d.ts +2 -2
  24. package/dist/schemas/app.d.ts.map +1 -1
  25. package/dist/schemas/app.js +3 -3
  26. package/dist/schemas/auth.d.ts +1 -1
  27. package/dist/schemas/auth.d.ts.map +1 -1
  28. package/dist/schemas/auth.js +2 -2
  29. package/dist/schemas/boolean.d.ts +5 -0
  30. package/dist/schemas/boolean.d.ts.map +1 -0
  31. package/dist/schemas/boolean.js +4 -0
  32. package/dist/schemas/emailAccount.d.ts +10 -10
  33. package/dist/schemas/emailAccount.d.ts.map +1 -1
  34. package/dist/schemas/emailAccount.js +13 -13
  35. package/dist/schemas/id.d.ts +1 -6
  36. package/dist/schemas/id.d.ts.map +1 -1
  37. package/dist/schemas/id.js +1 -2
  38. package/dist/schemas/index.d.ts +429 -60
  39. package/dist/schemas/index.d.ts.map +1 -1
  40. package/dist/schemas/index.js +21 -9
  41. package/dist/schemas/labels.d.ts +5 -0
  42. package/dist/schemas/labels.d.ts.map +1 -0
  43. package/dist/schemas/labels.js +5 -0
  44. package/dist/schemas/models/account.d.ts +3 -3
  45. package/dist/schemas/models/account.d.ts.map +1 -1
  46. package/dist/schemas/models/account.js +8 -8
  47. package/dist/schemas/models/contact.d.ts +2 -2
  48. package/dist/schemas/models/contact.d.ts.map +1 -1
  49. package/dist/schemas/models/contact.js +4 -4
  50. package/dist/schemas/models/draft.d.ts +9 -9
  51. package/dist/schemas/models/draft.d.ts.map +1 -1
  52. package/dist/schemas/models/draft.js +9 -9
  53. package/dist/schemas/models/index.d.ts +5 -5
  54. package/dist/schemas/models/index.d.ts.map +1 -1
  55. package/dist/schemas/models/index.js +5 -5
  56. package/dist/schemas/models/thread.d.ts +46 -28
  57. package/dist/schemas/models/thread.d.ts.map +1 -1
  58. package/dist/schemas/models/thread.js +12 -11
  59. package/dist/schemas/models/user.d.ts +30 -3
  60. package/dist/schemas/models/user.d.ts.map +1 -1
  61. package/dist/schemas/models/user.js +21 -5
  62. package/dist/schemas/mutators/index.d.ts +2 -0
  63. package/dist/schemas/mutators/index.d.ts.map +1 -0
  64. package/dist/schemas/mutators/index.js +1 -0
  65. package/dist/schemas/mutators/mutatorSchemas.d.ts +314 -0
  66. package/dist/schemas/mutators/mutatorSchemas.d.ts.map +1 -0
  67. package/dist/schemas/mutators/mutatorSchemas.js +229 -0
  68. package/dist/schemas/number.d.ts +5 -3
  69. package/dist/schemas/number.d.ts.map +1 -1
  70. package/dist/schemas/number.js +5 -4
  71. package/dist/schemas/oauth.d.ts +2 -2
  72. package/dist/schemas/oauth.d.ts.map +1 -1
  73. package/dist/schemas/oauth.js +3 -3
  74. package/dist/schemas/paginatedResponse.d.ts +10 -0
  75. package/dist/schemas/paginatedResponse.d.ts.map +1 -0
  76. package/dist/schemas/paginatedResponse.js +5 -0
  77. package/dist/schemas/pushNotifications.d.ts +3 -3
  78. package/dist/schemas/pushNotifications.d.ts.map +1 -1
  79. package/dist/schemas/pushNotifications.js +4 -3
  80. package/dist/schemas/string.d.ts +4 -2
  81. package/dist/schemas/string.d.ts.map +1 -1
  82. package/dist/schemas/string.js +5 -4
  83. package/dist/schemas/websocket.d.ts +14 -0
  84. package/dist/schemas/websocket.d.ts.map +1 -0
  85. package/dist/schemas/websocket.js +10 -0
  86. package/dist/sdk/endpoints/createEndpointConfig.d.ts +12 -0
  87. package/dist/sdk/endpoints/createEndpointConfig.d.ts.map +1 -0
  88. package/dist/sdk/endpoints/createEndpointConfig.js +21 -0
  89. package/dist/sdk/endpoints/index.d.ts +255 -0
  90. package/dist/sdk/endpoints/index.d.ts.map +1 -0
  91. package/dist/sdk/endpoints/index.js +6 -0
  92. package/dist/sdk/endpoints/private/draftAttachment/index.d.ts +31 -0
  93. package/dist/sdk/endpoints/private/draftAttachment/index.d.ts.map +1 -0
  94. package/dist/sdk/endpoints/private/draftAttachment/index.js +4 -0
  95. package/dist/sdk/endpoints/private/draftAttachment/uploadDraftAttachment.d.ts +30 -0
  96. package/dist/sdk/endpoints/private/draftAttachment/uploadDraftAttachment.d.ts.map +1 -0
  97. package/dist/sdk/endpoints/private/draftAttachment/uploadDraftAttachment.js +18 -0
  98. package/dist/sdk/endpoints/private/emailMessage/getEmailMessageAttachment.d.ts +21 -0
  99. package/dist/sdk/endpoints/private/emailMessage/getEmailMessageAttachment.d.ts.map +1 -0
  100. package/dist/sdk/endpoints/private/emailMessage/getEmailMessageAttachment.js +16 -0
  101. package/dist/sdk/endpoints/private/emailMessage/index.d.ts +22 -0
  102. package/dist/sdk/endpoints/private/emailMessage/index.d.ts.map +1 -0
  103. package/dist/sdk/endpoints/private/emailMessage/index.js +4 -0
  104. package/dist/sdk/endpoints/private/index.d.ts +103 -0
  105. package/dist/sdk/endpoints/private/index.d.ts.map +1 -0
  106. package/dist/sdk/endpoints/private/index.js +12 -0
  107. package/dist/sdk/endpoints/private/models/account/getAccounts.d.ts +70 -0
  108. package/dist/sdk/endpoints/private/models/account/getAccounts.d.ts.map +1 -0
  109. package/dist/sdk/endpoints/private/models/account/getAccounts.js +26 -0
  110. package/dist/sdk/endpoints/private/models/account/index.d.ts +2 -0
  111. package/dist/sdk/endpoints/private/models/account/index.d.ts.map +1 -0
  112. package/dist/sdk/endpoints/private/models/account/index.js +1 -0
  113. package/dist/sdk/endpoints/private/models/contact/getContacts.d.ts +41 -0
  114. package/dist/sdk/endpoints/private/models/contact/getContacts.d.ts.map +1 -0
  115. package/dist/sdk/endpoints/private/models/contact/getContacts.js +26 -0
  116. package/dist/sdk/endpoints/private/models/contact/index.d.ts +2 -0
  117. package/dist/sdk/endpoints/private/models/contact/index.d.ts.map +1 -0
  118. package/dist/sdk/endpoints/private/models/contact/index.js +1 -0
  119. package/dist/sdk/endpoints/private/models/draft/getDrafts.d.ts +62 -0
  120. package/dist/sdk/endpoints/private/models/draft/getDrafts.d.ts.map +1 -0
  121. package/dist/sdk/endpoints/private/models/draft/getDrafts.js +25 -0
  122. package/dist/sdk/endpoints/private/models/draft/index.d.ts +2 -0
  123. package/dist/sdk/endpoints/private/models/draft/index.d.ts.map +1 -0
  124. package/dist/sdk/endpoints/private/models/draft/index.js +1 -0
  125. package/dist/sdk/endpoints/private/models/index.d.ts +13 -0
  126. package/dist/sdk/endpoints/private/models/index.d.ts.map +1 -0
  127. package/dist/sdk/endpoints/private/models/index.js +12 -0
  128. package/dist/sdk/endpoints/private/models/thread/getThread.d.ts +63 -0
  129. package/dist/sdk/endpoints/private/models/thread/getThread.d.ts.map +1 -0
  130. package/dist/sdk/endpoints/private/models/thread/getThread.js +17 -0
  131. package/dist/sdk/endpoints/private/models/thread/getThreadByMessageId.d.ts +63 -0
  132. package/dist/sdk/endpoints/private/models/thread/getThreadByMessageId.d.ts.map +1 -0
  133. package/dist/sdk/endpoints/private/models/thread/getThreadByMessageId.js +17 -0
  134. package/dist/sdk/endpoints/private/models/thread/getThreadList.d.ts +79 -0
  135. package/dist/sdk/endpoints/private/models/thread/getThreadList.d.ts.map +1 -0
  136. package/dist/sdk/endpoints/private/models/thread/getThreadList.js +47 -0
  137. package/dist/sdk/endpoints/private/models/thread/getThreads.d.ts +83 -0
  138. package/dist/sdk/endpoints/private/models/thread/getThreads.d.ts.map +1 -0
  139. package/dist/sdk/endpoints/private/models/thread/getThreads.js +36 -0
  140. package/dist/sdk/endpoints/private/models/thread/index.d.ts +5 -0
  141. package/dist/sdk/endpoints/private/models/thread/index.d.ts.map +1 -0
  142. package/dist/sdk/endpoints/private/models/thread/index.js +4 -0
  143. package/dist/sdk/endpoints/private/models/user/getUser.d.ts +34 -0
  144. package/dist/sdk/endpoints/private/models/user/getUser.d.ts.map +1 -0
  145. package/dist/sdk/endpoints/private/models/user/getUser.js +16 -0
  146. package/dist/sdk/endpoints/private/models/user/index.d.ts +2 -0
  147. package/dist/sdk/endpoints/private/models/user/index.d.ts.map +1 -0
  148. package/dist/sdk/endpoints/private/models/user/index.js +1 -0
  149. package/dist/sdk/endpoints/private/mutations/account/createAccount.d.ts +35 -0
  150. package/dist/sdk/endpoints/private/mutations/account/createAccount.d.ts.map +1 -0
  151. package/dist/sdk/endpoints/private/mutations/account/createAccount.js +18 -0
  152. package/dist/sdk/endpoints/private/mutations/account/createAlias.d.ts +42 -0
  153. package/dist/sdk/endpoints/private/mutations/account/createAlias.d.ts.map +1 -0
  154. package/dist/sdk/endpoints/private/mutations/account/createAlias.js +19 -0
  155. package/dist/sdk/endpoints/private/mutations/account/createLabel.d.ts +44 -0
  156. package/dist/sdk/endpoints/private/mutations/account/createLabel.d.ts.map +1 -0
  157. package/dist/sdk/endpoints/private/mutations/account/createLabel.js +20 -0
  158. package/dist/sdk/endpoints/private/mutations/account/deleteAccount.d.ts +27 -0
  159. package/dist/sdk/endpoints/private/mutations/account/deleteAccount.d.ts.map +1 -0
  160. package/dist/sdk/endpoints/private/mutations/account/deleteAccount.js +18 -0
  161. package/dist/sdk/endpoints/private/mutations/account/deleteAlias.d.ts +33 -0
  162. package/dist/sdk/endpoints/private/mutations/account/deleteAlias.d.ts.map +1 -0
  163. package/dist/sdk/endpoints/private/mutations/account/deleteAlias.js +19 -0
  164. package/dist/sdk/endpoints/private/mutations/account/deleteLabel.d.ts +43 -0
  165. package/dist/sdk/endpoints/private/mutations/account/deleteLabel.d.ts.map +1 -0
  166. package/dist/sdk/endpoints/private/mutations/account/deleteLabel.js +20 -0
  167. package/dist/sdk/endpoints/private/mutations/account/index.d.ts +14 -0
  168. package/dist/sdk/endpoints/private/mutations/account/index.d.ts.map +1 -0
  169. package/dist/sdk/endpoints/private/mutations/account/index.js +13 -0
  170. package/dist/sdk/endpoints/private/mutations/account/renameLabel.d.ts +49 -0
  171. package/dist/sdk/endpoints/private/mutations/account/renameLabel.d.ts.map +1 -0
  172. package/dist/sdk/endpoints/private/mutations/account/renameLabel.js +21 -0
  173. package/dist/sdk/endpoints/private/mutations/account/setAliasName.d.ts +44 -0
  174. package/dist/sdk/endpoints/private/mutations/account/setAliasName.d.ts.map +1 -0
  175. package/dist/sdk/endpoints/private/mutations/account/setAliasName.js +20 -0
  176. package/dist/sdk/endpoints/private/mutations/account/setAliasPrimary.d.ts +33 -0
  177. package/dist/sdk/endpoints/private/mutations/account/setAliasPrimary.d.ts.map +1 -0
  178. package/dist/sdk/endpoints/private/mutations/account/setAliasPrimary.js +19 -0
  179. package/dist/sdk/endpoints/private/mutations/account/setAliasSignature.d.ts +44 -0
  180. package/dist/sdk/endpoints/private/mutations/account/setAliasSignature.d.ts.map +1 -0
  181. package/dist/sdk/endpoints/private/mutations/account/setAliasSignature.js +20 -0
  182. package/dist/sdk/endpoints/private/mutations/account/setConnectionConfigImap.d.ts +49 -0
  183. package/dist/sdk/endpoints/private/mutations/account/setConnectionConfigImap.d.ts.map +1 -0
  184. package/dist/sdk/endpoints/private/mutations/account/setConnectionConfigImap.js +19 -0
  185. package/dist/sdk/endpoints/private/mutations/account/setConnectionConfigOauth.d.ts +42 -0
  186. package/dist/sdk/endpoints/private/mutations/account/setConnectionConfigOauth.d.ts.map +1 -0
  187. package/dist/sdk/endpoints/private/mutations/account/setConnectionConfigOauth.js +19 -0
  188. package/dist/sdk/endpoints/private/mutations/account/setSettings.d.ts +39 -0
  189. package/dist/sdk/endpoints/private/mutations/account/setSettings.d.ts.map +1 -0
  190. package/dist/sdk/endpoints/private/mutations/account/setSettings.js +19 -0
  191. package/dist/sdk/endpoints/private/mutations/draft/cancelSend.d.ts +28 -0
  192. package/dist/sdk/endpoints/private/mutations/draft/cancelSend.d.ts.map +1 -0
  193. package/dist/sdk/endpoints/private/mutations/draft/cancelSend.js +18 -0
  194. package/dist/sdk/endpoints/private/mutations/draft/createAttachment.d.ts +45 -0
  195. package/dist/sdk/endpoints/private/mutations/draft/createAttachment.d.ts.map +1 -0
  196. package/dist/sdk/endpoints/private/mutations/draft/createAttachment.js +19 -0
  197. package/dist/sdk/endpoints/private/mutations/draft/createDraft.d.ts +60 -0
  198. package/dist/sdk/endpoints/private/mutations/draft/createDraft.d.ts.map +1 -0
  199. package/dist/sdk/endpoints/private/mutations/draft/createDraft.js +19 -0
  200. package/dist/sdk/endpoints/private/mutations/draft/deleteAttachment.d.ts +34 -0
  201. package/dist/sdk/endpoints/private/mutations/draft/deleteAttachment.d.ts.map +1 -0
  202. package/dist/sdk/endpoints/private/mutations/draft/deleteAttachment.js +19 -0
  203. package/dist/sdk/endpoints/private/mutations/draft/deleteDraft.d.ts +27 -0
  204. package/dist/sdk/endpoints/private/mutations/draft/deleteDraft.d.ts.map +1 -0
  205. package/dist/sdk/endpoints/private/mutations/draft/deleteDraft.js +18 -0
  206. package/dist/sdk/endpoints/private/mutations/draft/index.d.ts +10 -0
  207. package/dist/sdk/endpoints/private/mutations/draft/index.d.ts.map +1 -0
  208. package/dist/sdk/endpoints/private/mutations/draft/index.js +9 -0
  209. package/dist/sdk/endpoints/private/mutations/draft/replaceContent.d.ts +39 -0
  210. package/dist/sdk/endpoints/private/mutations/draft/replaceContent.d.ts.map +1 -0
  211. package/dist/sdk/endpoints/private/mutations/draft/replaceContent.js +19 -0
  212. package/dist/sdk/endpoints/private/mutations/draft/scheduleSend.d.ts +45 -0
  213. package/dist/sdk/endpoints/private/mutations/draft/scheduleSend.d.ts.map +1 -0
  214. package/dist/sdk/endpoints/private/mutations/draft/scheduleSend.js +19 -0
  215. package/dist/sdk/endpoints/private/mutations/draft/setEnvelope.d.ts +85 -0
  216. package/dist/sdk/endpoints/private/mutations/draft/setEnvelope.d.ts.map +1 -0
  217. package/dist/sdk/endpoints/private/mutations/draft/setEnvelope.js +19 -0
  218. package/dist/sdk/endpoints/private/mutations/draft/setFrom.d.ts +47 -0
  219. package/dist/sdk/endpoints/private/mutations/draft/setFrom.d.ts.map +1 -0
  220. package/dist/sdk/endpoints/private/mutations/draft/setFrom.js +20 -0
  221. package/dist/sdk/endpoints/private/mutations/index.d.ts +11 -0
  222. package/dist/sdk/endpoints/private/mutations/index.d.ts.map +1 -0
  223. package/dist/sdk/endpoints/private/mutations/index.js +10 -0
  224. package/dist/sdk/endpoints/private/mutations/thread/addLabel.d.ts +40 -0
  225. package/dist/sdk/endpoints/private/mutations/thread/addLabel.d.ts.map +1 -0
  226. package/dist/sdk/endpoints/private/mutations/thread/addLabel.js +19 -0
  227. package/dist/sdk/endpoints/private/mutations/thread/deleteThreads.d.ts +34 -0
  228. package/dist/sdk/endpoints/private/mutations/thread/deleteThreads.d.ts.map +1 -0
  229. package/dist/sdk/endpoints/private/mutations/thread/deleteThreads.js +18 -0
  230. package/dist/sdk/endpoints/private/mutations/thread/index.d.ts +11 -0
  231. package/dist/sdk/endpoints/private/mutations/thread/index.d.ts.map +1 -0
  232. package/dist/sdk/endpoints/private/mutations/thread/index.js +10 -0
  233. package/dist/sdk/endpoints/private/mutations/thread/removeLabel.d.ts +40 -0
  234. package/dist/sdk/endpoints/private/mutations/thread/removeLabel.d.ts.map +1 -0
  235. package/dist/sdk/endpoints/private/mutations/thread/removeLabel.js +19 -0
  236. package/dist/sdk/endpoints/private/mutations/thread/setArchive.d.ts +34 -0
  237. package/dist/sdk/endpoints/private/mutations/thread/setArchive.d.ts.map +1 -0
  238. package/dist/sdk/endpoints/private/mutations/thread/setArchive.js +18 -0
  239. package/dist/sdk/endpoints/private/mutations/thread/setFlagged.d.ts +35 -0
  240. package/dist/sdk/endpoints/private/mutations/thread/setFlagged.d.ts.map +1 -0
  241. package/dist/sdk/endpoints/private/mutations/thread/setFlagged.js +18 -0
  242. package/dist/sdk/endpoints/private/mutations/thread/setInbox.d.ts +34 -0
  243. package/dist/sdk/endpoints/private/mutations/thread/setInbox.d.ts.map +1 -0
  244. package/dist/sdk/endpoints/private/mutations/thread/setInbox.js +18 -0
  245. package/dist/sdk/endpoints/private/mutations/thread/setSeen.d.ts +35 -0
  246. package/dist/sdk/endpoints/private/mutations/thread/setSeen.d.ts.map +1 -0
  247. package/dist/sdk/endpoints/private/mutations/thread/setSeen.js +18 -0
  248. package/dist/sdk/endpoints/private/mutations/thread/setSnooze.d.ts +35 -0
  249. package/dist/sdk/endpoints/private/mutations/thread/setSnooze.d.ts.map +1 -0
  250. package/dist/sdk/endpoints/private/mutations/thread/setSnooze.js +18 -0
  251. package/dist/sdk/endpoints/private/mutations/thread/setSpam.d.ts +34 -0
  252. package/dist/sdk/endpoints/private/mutations/thread/setSpam.d.ts.map +1 -0
  253. package/dist/sdk/endpoints/private/mutations/thread/setSpam.js +18 -0
  254. package/dist/sdk/endpoints/private/mutations/thread/setTrash.d.ts +34 -0
  255. package/dist/sdk/endpoints/private/mutations/thread/setTrash.d.ts.map +1 -0
  256. package/dist/sdk/endpoints/private/mutations/thread/setTrash.js +18 -0
  257. package/dist/sdk/endpoints/private/mutations/user/createFeedback.d.ts +34 -0
  258. package/dist/sdk/endpoints/private/mutations/user/createFeedback.d.ts.map +1 -0
  259. package/dist/sdk/endpoints/private/mutations/user/createFeedback.js +18 -0
  260. package/dist/sdk/endpoints/private/mutations/user/createView.d.ts +38 -0
  261. package/dist/sdk/endpoints/private/mutations/user/createView.d.ts.map +1 -0
  262. package/dist/sdk/endpoints/private/mutations/user/createView.js +18 -0
  263. package/dist/sdk/endpoints/private/mutations/user/deletePushToken.d.ts +23 -0
  264. package/dist/sdk/endpoints/private/mutations/user/deletePushToken.d.ts.map +1 -0
  265. package/dist/sdk/endpoints/private/mutations/user/deletePushToken.js +17 -0
  266. package/dist/sdk/endpoints/private/mutations/user/deleteView.d.ts +28 -0
  267. package/dist/sdk/endpoints/private/mutations/user/deleteView.d.ts.map +1 -0
  268. package/dist/sdk/endpoints/private/mutations/user/deleteView.js +18 -0
  269. package/dist/sdk/endpoints/private/mutations/user/index.d.ts +9 -0
  270. package/dist/sdk/endpoints/private/mutations/user/index.d.ts.map +1 -0
  271. package/dist/sdk/endpoints/private/mutations/user/index.js +8 -0
  272. package/dist/sdk/endpoints/private/mutations/user/setFeedbackModalShown.d.ts +32 -0
  273. package/dist/sdk/endpoints/private/mutations/user/setFeedbackModalShown.d.ts.map +1 -0
  274. package/dist/sdk/endpoints/private/mutations/user/setFeedbackModalShown.js +18 -0
  275. package/dist/sdk/endpoints/private/mutations/user/setPushToken.d.ts +37 -0
  276. package/dist/sdk/endpoints/private/mutations/user/setPushToken.d.ts.map +1 -0
  277. package/dist/sdk/endpoints/private/mutations/user/setPushToken.js +18 -0
  278. package/dist/sdk/endpoints/private/mutations/user/setSettingsName.d.ts +33 -0
  279. package/dist/sdk/endpoints/private/mutations/user/setSettingsName.d.ts.map +1 -0
  280. package/dist/sdk/endpoints/private/mutations/user/setSettingsName.js +18 -0
  281. package/dist/sdk/endpoints/private/mutations/user/updateView.d.ts +43 -0
  282. package/dist/sdk/endpoints/private/mutations/user/updateView.d.ts.map +1 -0
  283. package/dist/sdk/endpoints/private/mutations/user/updateView.js +19 -0
  284. package/dist/sdk/endpoints/private/user/deleteUser.d.ts +10 -0
  285. package/dist/sdk/endpoints/private/user/deleteUser.d.ts.map +1 -0
  286. package/dist/sdk/endpoints/private/user/deleteUser.js +13 -0
  287. package/dist/sdk/endpoints/private/user/index.d.ts +37 -0
  288. package/dist/sdk/endpoints/private/user/index.d.ts.map +1 -0
  289. package/dist/sdk/endpoints/private/user/index.js +6 -0
  290. package/dist/sdk/endpoints/private/user/uploadProfilePicture.d.ts +28 -0
  291. package/dist/sdk/endpoints/private/user/uploadProfilePicture.d.ts.map +1 -0
  292. package/dist/sdk/endpoints/private/user/uploadProfilePicture.js +19 -0
  293. package/dist/sdk/endpoints/public/auth/index.d.ts +133 -0
  294. package/dist/sdk/endpoints/public/auth/index.d.ts.map +1 -0
  295. package/dist/sdk/endpoints/public/auth/index.js +8 -0
  296. package/dist/sdk/endpoints/public/auth/refreshAuth.d.ts +41 -0
  297. package/dist/sdk/endpoints/public/auth/refreshAuth.d.ts.map +1 -0
  298. package/dist/sdk/endpoints/public/auth/refreshAuth.js +33 -0
  299. package/dist/sdk/endpoints/public/auth/sendAuthCode.d.ts +27 -0
  300. package/dist/sdk/endpoints/public/auth/sendAuthCode.d.ts.map +1 -0
  301. package/dist/sdk/endpoints/public/auth/sendAuthCode.js +19 -0
  302. package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts +68 -0
  303. package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts.map +1 -0
  304. package/dist/sdk/endpoints/public/auth/verifyAuthCode.js +36 -0
  305. package/dist/sdk/endpoints/public/config/index.d.ts +10 -0
  306. package/dist/sdk/endpoints/public/config/index.d.ts.map +1 -0
  307. package/dist/sdk/endpoints/public/config/index.js +15 -0
  308. package/dist/sdk/endpoints/public/healthcheck/index.d.ts +8 -0
  309. package/dist/sdk/endpoints/public/healthcheck/index.d.ts.map +1 -0
  310. package/dist/sdk/endpoints/public/healthcheck/index.js +10 -0
  311. package/dist/sdk/endpoints/public/index.d.ts +149 -0
  312. package/dist/sdk/endpoints/public/index.d.ts.map +1 -0
  313. package/dist/sdk/endpoints/public/index.js +8 -0
  314. package/dist/sdk/index.d.ts +426 -0
  315. package/dist/sdk/index.d.ts.map +1 -0
  316. package/dist/sdk/index.js +6 -0
  317. package/dist/sdk/validation/errors.d.ts +326 -0
  318. package/dist/sdk/validation/errors.d.ts.map +1 -0
  319. package/dist/sdk/validation/errors.js +140 -0
  320. package/dist/sdk/validation/index.d.ts +172 -0
  321. package/dist/sdk/validation/index.d.ts.map +1 -0
  322. package/dist/sdk/validation/index.js +3 -0
  323. package/dist/sdk/validation/utils/flattenRequirements/flattenRequirements.d.ts +11 -0
  324. package/dist/sdk/validation/utils/flattenRequirements/flattenRequirements.d.ts.map +1 -0
  325. package/dist/sdk/validation/utils/flattenRequirements/flattenRequirements.js +22 -0
  326. package/dist/sdk/validation/utils/flattenRequirements/index.d.ts +2 -0
  327. package/dist/sdk/validation/utils/flattenRequirements/index.d.ts.map +1 -0
  328. package/dist/sdk/validation/utils/flattenRequirements/index.js +1 -0
  329. package/dist/sdk/validation/utils/index.d.ts +7 -0
  330. package/dist/sdk/validation/utils/index.d.ts.map +1 -0
  331. package/dist/sdk/validation/utils/index.js +4 -0
  332. package/dist/types/AuthData.d.ts +4 -0
  333. package/dist/types/AuthData.d.ts.map +1 -0
  334. package/dist/types/AuthData.js +1 -0
  335. package/dist/types/DraftAttachmentUploadStatus.d.ts +1 -1
  336. package/dist/types/DraftAttachmentUploadStatus.d.ts.map +1 -1
  337. package/dist/types/DraftStatus.d.ts +1 -1
  338. package/dist/types/DraftStatus.d.ts.map +1 -1
  339. package/dist/types/DraftType.d.ts +1 -1
  340. package/dist/types/DraftType.d.ts.map +1 -1
  341. package/dist/types/Endpoint.d.ts +25 -0
  342. package/dist/types/Endpoint.d.ts.map +1 -0
  343. package/dist/types/Endpoint.js +1 -0
  344. package/dist/types/IMAPConnectionStatus.d.ts +1 -1
  345. package/dist/types/IMAPConnectionStatus.d.ts.map +1 -1
  346. package/dist/types/IMAPSourceLocation.d.ts +1 -1
  347. package/dist/types/LabelSpecialUse.d.ts +1 -1
  348. package/dist/types/LabelSpecialUse.d.ts.map +1 -1
  349. package/dist/types/MarcoPlatform.d.ts +1 -1
  350. package/dist/types/MarcoPlatform.d.ts.map +1 -1
  351. package/dist/types/MessageRecipientType.d.ts +1 -1
  352. package/dist/types/MessageRecipientType.d.ts.map +1 -1
  353. package/dist/types/OAuthProvider.d.ts +1 -1
  354. package/dist/types/OAuthProvider.d.ts.map +1 -1
  355. package/dist/types/PokeEvent.d.ts +6 -0
  356. package/dist/types/PokeEvent.d.ts.map +1 -0
  357. package/dist/types/PokeEvent.js +1 -0
  358. package/dist/types/SDKError.d.ts +4 -0
  359. package/dist/types/SDKError.d.ts.map +1 -0
  360. package/dist/types/SDKError.js +1 -0
  361. package/dist/types/UserSettings.d.ts +15 -16
  362. package/dist/types/UserSettings.d.ts.map +1 -1
  363. package/dist/types/UserSettings.js +29 -15
  364. package/dist/types/index.d.ts +15 -11
  365. package/dist/types/index.d.ts.map +1 -1
  366. package/dist/types/index.js +15 -11
  367. package/dist/utils/accounts/generateAccountColor.d.ts.map +1 -1
  368. package/dist/utils/accounts/generateAccountColor.js +15 -10
  369. package/dist/utils/accounts/index.d.ts +3 -1
  370. package/dist/utils/accounts/index.d.ts.map +1 -1
  371. package/dist/utils/accounts/index.js +4 -1
  372. package/dist/utils/index.d.ts +3 -3
  373. package/dist/utils/index.d.ts.map +1 -1
  374. package/dist/utils/index.js +3 -3
  375. package/dist/utils/labels/index.d.ts +3 -2
  376. package/dist/utils/labels/index.d.ts.map +1 -1
  377. package/dist/utils/labels/index.js +4 -1
  378. package/dist/utils/threads/index.d.ts +4 -2
  379. package/dist/utils/threads/index.d.ts.map +1 -1
  380. package/dist/utils/threads/index.js +6 -2
  381. package/dist/utils/threads/parseLabelIdList/index.d.ts +2 -0
  382. package/dist/utils/threads/parseLabelIdList/index.d.ts.map +1 -0
  383. package/dist/utils/threads/parseLabelIdList/index.js +1 -0
  384. package/dist/utils/threads/processSearchTerm/index.d.ts +2 -0
  385. package/dist/utils/threads/processSearchTerm/index.d.ts.map +1 -0
  386. package/dist/utils/threads/processSearchTerm/index.js +1 -0
  387. package/package.json +13 -28
  388. package/dist/appwrite/appwrite.d.ts +0 -77
  389. package/dist/appwrite/appwrite.d.ts.map +0 -1
  390. package/dist/appwrite/appwrite.js +0 -61
  391. package/dist/appwrite/appwrite.test.d.ts +0 -2
  392. package/dist/appwrite/appwrite.test.d.ts.map +0 -1
  393. package/dist/appwrite/appwrite.test.js +0 -901
  394. package/dist/appwrite/commands.d.ts +0 -5093
  395. package/dist/appwrite/commands.d.ts.map +0 -1
  396. package/dist/appwrite/commands.js +0 -208
  397. package/dist/appwrite/commands.test.d.ts +0 -2
  398. package/dist/appwrite/commands.test.d.ts.map +0 -1
  399. package/dist/appwrite/commands.test.js +0 -425
  400. package/dist/appwrite/decodedSchemas.d.ts +0 -35
  401. package/dist/appwrite/decodedSchemas.d.ts.map +0 -1
  402. package/dist/appwrite/decodedSchemas.js +0 -18
  403. package/dist/appwrite/functions.d.ts +0 -2806
  404. package/dist/appwrite/functions.d.ts.map +0 -1
  405. package/dist/appwrite/functions.js +0 -192
  406. package/dist/appwrite/functions.test.d.ts +0 -2
  407. package/dist/appwrite/functions.test.d.ts.map +0 -1
  408. package/dist/appwrite/functions.test.js +0 -370
  409. package/dist/appwrite/index.d.ts +0 -8
  410. package/dist/appwrite/index.d.ts.map +0 -1
  411. package/dist/appwrite/index.js +0 -5
  412. package/dist/appwrite/queryContracts/queryContracts.d.ts +0 -392
  413. package/dist/appwrite/queryContracts/queryContracts.d.ts.map +0 -1
  414. package/dist/appwrite/queryContracts/queryContracts.js +0 -299
  415. package/dist/appwrite/queryContracts/queryContracts.test.d.ts +0 -2
  416. package/dist/appwrite/queryContracts/queryContracts.test.d.ts.map +0 -1
  417. package/dist/appwrite/queryContracts/queryContracts.test.js +0 -39
  418. package/dist/appwrite/tableContract/identity.d.ts +0 -207
  419. package/dist/appwrite/tableContract/identity.d.ts.map +0 -1
  420. package/dist/appwrite/tableContract/identity.js +0 -169
  421. package/dist/appwrite/tableContract/index.d.ts +0 -3125
  422. package/dist/appwrite/tableContract/index.d.ts.map +0 -1
  423. package/dist/appwrite/tableContract/index.js +0 -94
  424. package/dist/appwrite/tableContract/index.test.d.ts +0 -2
  425. package/dist/appwrite/tableContract/index.test.d.ts.map +0 -1
  426. package/dist/appwrite/tableContract/index.test.js +0 -150
  427. package/dist/appwrite/tableContract/mailbox.d.ts +0 -276
  428. package/dist/appwrite/tableContract/mailbox.d.ts.map +0 -1
  429. package/dist/appwrite/tableContract/mailbox.js +0 -261
  430. package/dist/appwrite/tableContract/operational.d.ts +0 -247
  431. package/dist/appwrite/tableContract/operational.d.ts.map +0 -1
  432. package/dist/appwrite/tableContract/operational.js +0 -167
  433. package/dist/appwrite/tableContract/shared.d.ts +0 -145
  434. package/dist/appwrite/tableContract/shared.d.ts.map +0 -1
  435. package/dist/appwrite/tableContract/shared.js +0 -83
  436. package/dist/index.test.d.ts +0 -2
  437. package/dist/index.test.d.ts.map +0 -1
  438. package/dist/index.test.js +0 -106
  439. package/dist/schemas/models/mailboxAddress.test.d.ts +0 -2
  440. package/dist/schemas/models/mailboxAddress.test.d.ts.map +0 -1
  441. package/dist/schemas/models/mailboxAddress.test.js +0 -31
  442. package/dist/schemas/models/numericSemantics.test.d.ts +0 -2
  443. package/dist/schemas/models/numericSemantics.test.d.ts.map +0 -1
  444. package/dist/schemas/models/numericSemantics.test.js +0 -24
  445. package/dist/schemas/models/user.test.d.ts +0 -2
  446. package/dist/schemas/models/user.test.d.ts.map +0 -1
  447. package/dist/schemas/models/user.test.js +0 -18
  448. package/dist/schemas/scalars.d.ts +0 -13
  449. package/dist/schemas/scalars.d.ts.map +0 -1
  450. package/dist/schemas/scalars.js +0 -15
  451. package/dist/schemas/scalars.test.d.ts +0 -2
  452. package/dist/schemas/scalars.test.d.ts.map +0 -1
  453. package/dist/schemas/scalars.test.js +0 -44
  454. package/dist/schemas/schemaValues.test.d.ts +0 -2
  455. package/dist/schemas/schemaValues.test.d.ts.map +0 -1
  456. package/dist/schemas/schemaValues.test.js +0 -21
  457. package/dist/utils/threads/parseLabelIdList/parseLabelIdList.test.d.ts +0 -2
  458. package/dist/utils/threads/parseLabelIdList/parseLabelIdList.test.d.ts.map +0 -1
  459. package/dist/utils/threads/parseLabelIdList/parseLabelIdList.test.js +0 -18
  460. package/dist/utils/threads/processSearchTerm/processSearchTerm.test.d.ts +0 -2
  461. package/dist/utils/threads/processSearchTerm/processSearchTerm.test.d.ts.map +0 -1
  462. package/dist/utils/threads/processSearchTerm/processSearchTerm.test.js +0 -38
  463. package/dist/utils/valibot/index.d.ts +0 -3
  464. package/dist/utils/valibot/index.d.ts.map +0 -1
  465. package/dist/utils/valibot/index.js +0 -2
@@ -1,2806 +0,0 @@
1
- import { v } from '../utils/valibot/index.js';
2
- type AppwriteFunctionContext = 'authenticated' | 'internal' | 'public' | 'webhook';
3
- export declare const appwriteFunctions: {
4
- readonly api: {
5
- readonly id: "marco-api";
6
- readonly routes: {
7
- readonly accountConnection: {
8
- context: "authenticated";
9
- method: "PUT";
10
- path: "/accounts/connection";
11
- requestSchema: v.StrictObjectSchema<{
12
- readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
13
- readonly connection: v.VariantSchema<"kind", [v.StrictObjectSchema<{
14
- readonly email: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>]>;
15
- readonly kind: v.LiteralSchema<"OAUTH", undefined>;
16
- readonly provider: v.PicklistSchema<["GMAIL", "OUTLOOK"], undefined>;
17
- readonly returnUri: v.PicklistSchema<readonly ["https://app.marcoapp.io/onboarding/loading"], undefined>;
18
- }, undefined>, v.StrictObjectSchema<{
19
- readonly imap: v.StrictObjectSchema<{
20
- readonly host: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
21
- readonly password: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
22
- readonly port: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, v.MaxValueAction<number, 65535, undefined>]>;
23
- readonly socketType: v.PicklistSchema<readonly ["SSL", "STARTTLS"], undefined>;
24
- readonly user: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
25
- }, undefined>;
26
- readonly kind: v.LiteralSchema<"IMAP", undefined>;
27
- readonly smtp: v.StrictObjectSchema<{
28
- readonly host: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
29
- readonly password: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
30
- readonly port: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, v.MaxValueAction<number, 65535, undefined>]>;
31
- readonly socketType: v.PicklistSchema<readonly ["SSL", "STARTTLS"], undefined>;
32
- readonly user: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
33
- }, undefined>;
34
- }, undefined>], undefined>;
35
- }, undefined>;
36
- responseSchema: v.StrictObjectSchema<{
37
- readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
38
- readonly authorizationUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
39
- readonly state: v.PicklistSchema<readonly ["AWAITING_CONNECTION", "CONNECTED", "ERROR", "DISCONNECTED"], undefined>;
40
- }, undefined>;
41
- errorSchema: v.StrictObjectSchema<{
42
- readonly code: v.PicklistSchema<readonly ["AUTHENTICATION_FAILED", "AUTHORIZATION_FAILED", "CONFLICT", "INVALID_REQUEST", "NOT_FOUND", "PROVIDER_REJECTED", "TRANSIENT_FAILURE", "INTERNAL_ERROR"], undefined>;
43
- readonly retryable: v.BooleanSchema<undefined>;
44
- }, undefined>;
45
- };
46
- readonly accountDelete: {
47
- context: "authenticated";
48
- method: "DELETE";
49
- path: "/account/delete";
50
- requestSchema: v.StrictObjectSchema<{}, undefined>;
51
- responseSchema: v.StrictObjectSchema<{
52
- readonly state: v.LiteralSchema<"ACCEPTED", undefined>;
53
- }, undefined>;
54
- errorSchema: v.StrictObjectSchema<{
55
- readonly code: v.PicklistSchema<readonly ["AUTHENTICATION_FAILED", "AUTHORIZATION_FAILED", "CONFLICT", "INVALID_REQUEST", "NOT_FOUND", "PROVIDER_REJECTED", "TRANSIENT_FAILURE", "INTERNAL_ERROR"], undefined>;
56
- readonly retryable: v.BooleanSchema<undefined>;
57
- }, undefined>;
58
- };
59
- readonly accountsConnect: {
60
- context: "authenticated";
61
- method: "POST";
62
- path: "/accounts/connect";
63
- requestSchema: v.StrictObjectSchema<{
64
- readonly connection: v.VariantSchema<"kind", [v.StrictObjectSchema<{
65
- readonly email: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>]>;
66
- readonly kind: v.LiteralSchema<"OAUTH", undefined>;
67
- readonly provider: v.PicklistSchema<["GMAIL", "OUTLOOK"], undefined>;
68
- readonly returnUri: v.PicklistSchema<readonly ["https://app.marcoapp.io/onboarding/loading"], undefined>;
69
- }, undefined>, v.StrictObjectSchema<{
70
- readonly imap: v.StrictObjectSchema<{
71
- readonly host: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
72
- readonly password: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
73
- readonly port: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, v.MaxValueAction<number, 65535, undefined>]>;
74
- readonly socketType: v.PicklistSchema<readonly ["SSL", "STARTTLS"], undefined>;
75
- readonly user: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
76
- }, undefined>;
77
- readonly kind: v.LiteralSchema<"IMAP", undefined>;
78
- readonly smtp: v.StrictObjectSchema<{
79
- readonly host: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
80
- readonly password: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
81
- readonly port: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, v.MaxValueAction<number, 65535, undefined>]>;
82
- readonly socketType: v.PicklistSchema<readonly ["SSL", "STARTTLS"], undefined>;
83
- readonly user: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
84
- }, undefined>;
85
- }, undefined>], undefined>;
86
- }, undefined>;
87
- responseSchema: v.StrictObjectSchema<{
88
- readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
89
- readonly authorizationUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
90
- readonly state: v.PicklistSchema<readonly ["AWAITING_CONNECTION", "CONNECTED", "ERROR", "DISCONNECTED"], undefined>;
91
- }, undefined>;
92
- errorSchema: v.StrictObjectSchema<{
93
- readonly code: v.PicklistSchema<readonly ["AUTHENTICATION_FAILED", "AUTHORIZATION_FAILED", "CONFLICT", "INVALID_REQUEST", "NOT_FOUND", "PROVIDER_REJECTED", "TRANSIENT_FAILURE", "INTERNAL_ERROR"], undefined>;
94
- readonly retryable: v.BooleanSchema<undefined>;
95
- }, undefined>;
96
- };
97
- readonly accountsPoll: {
98
- context: "authenticated";
99
- method: "POST";
100
- path: "/accounts/poll";
101
- requestSchema: v.StrictObjectSchema<{}, undefined>;
102
- responseSchema: v.StrictObjectSchema<{
103
- readonly commands: v.ArraySchema<v.StrictObjectSchema<{
104
- readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
105
- readonly commandId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 36, undefined>, v.RegexAction<string, undefined>]>;
106
- }, undefined>, undefined>;
107
- readonly failedAccountIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>, undefined>;
108
- }, undefined>;
109
- errorSchema: v.StrictObjectSchema<{
110
- readonly code: v.PicklistSchema<readonly ["AUTHENTICATION_FAILED", "AUTHORIZATION_FAILED", "CONFLICT", "INVALID_REQUEST", "NOT_FOUND", "PROVIDER_REJECTED", "TRANSIENT_FAILURE", "INTERNAL_ERROR"], undefined>;
111
- readonly retryable: v.BooleanSchema<undefined>;
112
- }, undefined>;
113
- };
114
- readonly authSendCode: {
115
- context: "public";
116
- method: "POST";
117
- path: "/auth/send-code";
118
- requestSchema: v.StrictObjectSchema<{
119
- readonly email: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, undefined>;
120
- readonly userId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 36, undefined>, v.RegexAction<string, undefined>]>;
121
- }, undefined>;
122
- responseSchema: v.StrictObjectSchema<{
123
- readonly userId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 36, undefined>, v.RegexAction<string, undefined>]>;
124
- }, undefined>;
125
- errorSchema: v.StrictObjectSchema<{
126
- readonly code: v.PicklistSchema<readonly ["AUTHENTICATION_FAILED", "AUTHORIZATION_FAILED", "CONFLICT", "INVALID_REQUEST", "NOT_FOUND", "PROVIDER_REJECTED", "TRANSIENT_FAILURE", "INTERNAL_ERROR"], undefined>;
127
- readonly retryable: v.BooleanSchema<undefined>;
128
- }, undefined>;
129
- };
130
- readonly authVerifyCode: {
131
- context: "public";
132
- method: "POST";
133
- path: "/auth/verify-code";
134
- requestSchema: v.StrictObjectSchema<{
135
- readonly code: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
136
- readonly email: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, undefined>;
137
- readonly userId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 36, undefined>, v.RegexAction<string, undefined>]>;
138
- }, undefined>;
139
- responseSchema: v.StrictObjectSchema<{
140
- readonly secret: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
141
- readonly userId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 36, undefined>, v.RegexAction<string, undefined>]>;
142
- }, undefined>;
143
- errorSchema: v.StrictObjectSchema<{
144
- readonly code: v.PicklistSchema<readonly ["AUTHENTICATION_FAILED", "AUTHORIZATION_FAILED", "CONFLICT", "INVALID_REQUEST", "NOT_FOUND", "PROVIDER_REJECTED", "TRANSIENT_FAILURE", "INTERNAL_ERROR"], undefined>;
145
- readonly retryable: v.BooleanSchema<undefined>;
146
- }, undefined>;
147
- };
148
- readonly commands: {
149
- context: "authenticated";
150
- method: "POST";
151
- path: "/commands";
152
- requestSchema: v.VariantSchema<"kind", ({
153
- kind: 'schema';
154
- async: false;
155
- '~standard': v.StandardProps<{
156
- accountId: string;
157
- id: string;
158
- kind: "account.delete";
159
- payload: {};
160
- submittedAt: string;
161
- version: 1;
162
- }, {
163
- accountId: string & v.Brand<"AccountId">;
164
- id: string & v.Brand<"CommandId">;
165
- kind: "account.delete";
166
- payload: {};
167
- submittedAt: string;
168
- version: 1;
169
- }>;
170
- '~run': (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
171
- accountId: string & v.Brand<"AccountId">;
172
- id: string & v.Brand<"CommandId">;
173
- kind: "account.delete";
174
- payload: {};
175
- submittedAt: string;
176
- version: 1;
177
- }, v.IsoTimestampIssue<string> | v.LiteralIssue | v.MaxLengthIssue<string, number> | v.NonEmptyIssue<string> | v.NonOptionalIssue | v.StrictObjectIssue | v.StringIssue | v.UuidIssue<string>>;
178
- '~types'?: {
179
- readonly input: {
180
- accountId: string;
181
- id: string;
182
- kind: "account.delete";
183
- payload: {};
184
- submittedAt: string;
185
- version: 1;
186
- };
187
- readonly output: {
188
- accountId: string & v.Brand<"AccountId">;
189
- id: string & v.Brand<"CommandId">;
190
- kind: "account.delete";
191
- payload: {};
192
- submittedAt: string;
193
- version: 1;
194
- };
195
- readonly issue: v.IsoTimestampIssue<string> | v.LiteralIssue | v.MaxLengthIssue<string, number> | v.NonEmptyIssue<string> | v.NonOptionalIssue | v.StrictObjectIssue | v.StringIssue | v.UuidIssue<string>;
196
- } | undefined;
197
- type: 'strict_object';
198
- reference: typeof v.strictObject;
199
- expects: 'Object';
200
- entries: {
201
- readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
202
- readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.BrandAction<string, "CommandId">]>;
203
- readonly kind: v.LiteralSchema<"account.delete", undefined>;
204
- readonly payload: v.StrictObjectSchema<{}, undefined>;
205
- readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
206
- readonly version: v.LiteralSchema<1, undefined>;
207
- };
208
- message: undefined;
209
- accountScope: "REQUIRED";
210
- commandKind: "account.delete";
211
- payloadSchema: v.StrictObjectSchema<{}, undefined>;
212
- } | {
213
- kind: 'schema';
214
- async: false;
215
- '~standard': v.StandardProps<{
216
- accountId: string;
217
- id: string;
218
- kind: "account.settings.set";
219
- payload: {
220
- colour?: string | undefined;
221
- displayName?: string | null | undefined;
222
- };
223
- submittedAt: string;
224
- version: 1;
225
- }, {
226
- accountId: string & v.Brand<"AccountId">;
227
- id: string & v.Brand<"CommandId">;
228
- kind: "account.settings.set";
229
- payload: {
230
- colour?: string | undefined;
231
- displayName?: string | null | undefined;
232
- };
233
- submittedAt: string;
234
- version: 1;
235
- }>;
236
- '~run': (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
237
- accountId: string & v.Brand<"AccountId">;
238
- id: string & v.Brand<"CommandId">;
239
- kind: "account.settings.set";
240
- payload: {
241
- colour?: string | undefined;
242
- displayName?: string | null | undefined;
243
- };
244
- submittedAt: string;
245
- version: 1;
246
- }, v.IsoTimestampIssue<string> | v.LiteralIssue | v.MaxLengthIssue<string, number> | v.NonEmptyIssue<string> | v.NonOptionalIssue | v.StrictObjectIssue | v.StringIssue | v.UuidIssue<string>>;
247
- '~types'?: {
248
- readonly input: {
249
- accountId: string;
250
- id: string;
251
- kind: "account.settings.set";
252
- payload: {
253
- colour?: string | undefined;
254
- displayName?: string | null | undefined;
255
- };
256
- submittedAt: string;
257
- version: 1;
258
- };
259
- readonly output: {
260
- accountId: string & v.Brand<"AccountId">;
261
- id: string & v.Brand<"CommandId">;
262
- kind: "account.settings.set";
263
- payload: {
264
- colour?: string | undefined;
265
- displayName?: string | null | undefined;
266
- };
267
- submittedAt: string;
268
- version: 1;
269
- };
270
- readonly issue: v.IsoTimestampIssue<string> | v.LiteralIssue | v.MaxLengthIssue<string, number> | v.NonEmptyIssue<string> | v.NonOptionalIssue | v.StrictObjectIssue | v.StringIssue | v.UuidIssue<string>;
271
- } | undefined;
272
- type: 'strict_object';
273
- reference: typeof v.strictObject;
274
- expects: 'Object';
275
- entries: {
276
- readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
277
- readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.BrandAction<string, "CommandId">]>;
278
- readonly kind: v.LiteralSchema<"account.settings.set", undefined>;
279
- readonly payload: v.StrictObjectSchema<{
280
- readonly colour: v.OptionalSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
281
- readonly displayName: v.OptionalSchema<v.NullableSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>, undefined>;
282
- }, undefined>;
283
- readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
284
- readonly version: v.LiteralSchema<1, undefined>;
285
- };
286
- message: undefined;
287
- accountScope: "REQUIRED";
288
- commandKind: "account.settings.set";
289
- payloadSchema: v.StrictObjectSchema<{
290
- readonly colour: v.OptionalSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
291
- readonly displayName: v.OptionalSchema<v.NullableSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>, undefined>;
292
- }, undefined>;
293
- } | {
294
- kind: 'schema';
295
- async: false;
296
- '~standard': v.StandardProps<{
297
- accountId: string;
298
- id: string;
299
- kind: "alias.create";
300
- payload: {
301
- aliasId: string;
302
- email: string;
303
- name: string | null;
304
- signature: string | null;
305
- };
306
- submittedAt: string;
307
- version: 1;
308
- }, {
309
- accountId: string & v.Brand<"AccountId">;
310
- id: string & v.Brand<"CommandId">;
311
- kind: "alias.create";
312
- payload: {
313
- aliasId: string & v.Brand<"AliasId">;
314
- email: string;
315
- name: string | null;
316
- signature: string | null;
317
- };
318
- submittedAt: string;
319
- version: 1;
320
- }>;
321
- '~run': (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
322
- accountId: string & v.Brand<"AccountId">;
323
- id: string & v.Brand<"CommandId">;
324
- kind: "alias.create";
325
- payload: {
326
- aliasId: string & v.Brand<"AliasId">;
327
- email: string;
328
- name: string | null;
329
- signature: string | null;
330
- };
331
- submittedAt: string;
332
- version: 1;
333
- }, v.IsoTimestampIssue<string> | v.LiteralIssue | v.MaxLengthIssue<string, number> | v.MaxLengthIssue<string, 50000> | v.NonEmptyIssue<string> | v.NonOptionalIssue | v.RfcEmailIssue<string> | v.StrictObjectIssue | v.StringIssue | v.UuidIssue<string>>;
334
- '~types'?: {
335
- readonly input: {
336
- accountId: string;
337
- id: string;
338
- kind: "alias.create";
339
- payload: {
340
- aliasId: string;
341
- email: string;
342
- name: string | null;
343
- signature: string | null;
344
- };
345
- submittedAt: string;
346
- version: 1;
347
- };
348
- readonly output: {
349
- accountId: string & v.Brand<"AccountId">;
350
- id: string & v.Brand<"CommandId">;
351
- kind: "alias.create";
352
- payload: {
353
- aliasId: string & v.Brand<"AliasId">;
354
- email: string;
355
- name: string | null;
356
- signature: string | null;
357
- };
358
- submittedAt: string;
359
- version: 1;
360
- };
361
- readonly issue: v.IsoTimestampIssue<string> | v.LiteralIssue | v.MaxLengthIssue<string, number> | v.MaxLengthIssue<string, 50000> | v.NonEmptyIssue<string> | v.NonOptionalIssue | v.RfcEmailIssue<string> | v.StrictObjectIssue | v.StringIssue | v.UuidIssue<string>;
362
- } | undefined;
363
- type: 'strict_object';
364
- reference: typeof v.strictObject;
365
- expects: 'Object';
366
- entries: {
367
- readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
368
- readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.BrandAction<string, "CommandId">]>;
369
- readonly kind: v.LiteralSchema<"alias.create", undefined>;
370
- readonly payload: v.StrictObjectSchema<{
371
- readonly aliasId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AliasId">]>, undefined>;
372
- readonly email: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, undefined>;
373
- readonly name: v.NullableSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
374
- readonly signature: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 50000, undefined>]>, undefined>;
375
- }, undefined>;
376
- readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
377
- readonly version: v.LiteralSchema<1, undefined>;
378
- };
379
- message: undefined;
380
- accountScope: "REQUIRED";
381
- commandKind: "alias.create";
382
- payloadSchema: v.StrictObjectSchema<{
383
- readonly aliasId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AliasId">]>, undefined>;
384
- readonly email: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, undefined>;
385
- readonly name: v.NullableSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
386
- readonly signature: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 50000, undefined>]>, undefined>;
387
- }, undefined>;
388
- } | {
389
- kind: 'schema';
390
- async: false;
391
- '~standard': v.StandardProps<{
392
- accountId: string;
393
- id: string;
394
- kind: "alias.delete";
395
- payload: {
396
- aliasId: string;
397
- };
398
- submittedAt: string;
399
- version: 1;
400
- }, {
401
- accountId: string & v.Brand<"AccountId">;
402
- id: string & v.Brand<"CommandId">;
403
- kind: "alias.delete";
404
- payload: {
405
- aliasId: string & v.Brand<"AliasId">;
406
- };
407
- submittedAt: string;
408
- version: 1;
409
- }>;
410
- '~run': (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
411
- accountId: string & v.Brand<"AccountId">;
412
- id: string & v.Brand<"CommandId">;
413
- kind: "alias.delete";
414
- payload: {
415
- aliasId: string & v.Brand<"AliasId">;
416
- };
417
- submittedAt: string;
418
- version: 1;
419
- }, v.IsoTimestampIssue<string> | v.LiteralIssue | v.MaxLengthIssue<string, number> | v.NonEmptyIssue<string> | v.NonOptionalIssue | v.StrictObjectIssue | v.StringIssue | v.UuidIssue<string>>;
420
- '~types'?: {
421
- readonly input: {
422
- accountId: string;
423
- id: string;
424
- kind: "alias.delete";
425
- payload: {
426
- aliasId: string;
427
- };
428
- submittedAt: string;
429
- version: 1;
430
- };
431
- readonly output: {
432
- accountId: string & v.Brand<"AccountId">;
433
- id: string & v.Brand<"CommandId">;
434
- kind: "alias.delete";
435
- payload: {
436
- aliasId: string & v.Brand<"AliasId">;
437
- };
438
- submittedAt: string;
439
- version: 1;
440
- };
441
- readonly issue: v.IsoTimestampIssue<string> | v.LiteralIssue | v.MaxLengthIssue<string, number> | v.NonEmptyIssue<string> | v.NonOptionalIssue | v.StrictObjectIssue | v.StringIssue | v.UuidIssue<string>;
442
- } | undefined;
443
- type: 'strict_object';
444
- reference: typeof v.strictObject;
445
- expects: 'Object';
446
- entries: {
447
- readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
448
- readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.BrandAction<string, "CommandId">]>;
449
- readonly kind: v.LiteralSchema<"alias.delete", undefined>;
450
- readonly payload: v.StrictObjectSchema<{
451
- readonly aliasId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AliasId">]>, undefined>;
452
- }, undefined>;
453
- readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
454
- readonly version: v.LiteralSchema<1, undefined>;
455
- };
456
- message: undefined;
457
- accountScope: "REQUIRED";
458
- commandKind: "alias.delete";
459
- payloadSchema: v.StrictObjectSchema<{
460
- readonly aliasId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AliasId">]>, undefined>;
461
- }, undefined>;
462
- } | {
463
- kind: 'schema';
464
- async: false;
465
- '~standard': v.StandardProps<{
466
- accountId: string;
467
- id: string;
468
- kind: "alias.name.set";
469
- payload: {
470
- aliasId: string;
471
- name: string | null;
472
- };
473
- submittedAt: string;
474
- version: 1;
475
- }, {
476
- accountId: string & v.Brand<"AccountId">;
477
- id: string & v.Brand<"CommandId">;
478
- kind: "alias.name.set";
479
- payload: {
480
- aliasId: string & v.Brand<"AliasId">;
481
- name: string | null;
482
- };
483
- submittedAt: string;
484
- version: 1;
485
- }>;
486
- '~run': (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
487
- accountId: string & v.Brand<"AccountId">;
488
- id: string & v.Brand<"CommandId">;
489
- kind: "alias.name.set";
490
- payload: {
491
- aliasId: string & v.Brand<"AliasId">;
492
- name: string | null;
493
- };
494
- submittedAt: string;
495
- version: 1;
496
- }, v.IsoTimestampIssue<string> | v.LiteralIssue | v.MaxLengthIssue<string, number> | v.NonEmptyIssue<string> | v.NonOptionalIssue | v.StrictObjectIssue | v.StringIssue | v.UuidIssue<string>>;
497
- '~types'?: {
498
- readonly input: {
499
- accountId: string;
500
- id: string;
501
- kind: "alias.name.set";
502
- payload: {
503
- aliasId: string;
504
- name: string | null;
505
- };
506
- submittedAt: string;
507
- version: 1;
508
- };
509
- readonly output: {
510
- accountId: string & v.Brand<"AccountId">;
511
- id: string & v.Brand<"CommandId">;
512
- kind: "alias.name.set";
513
- payload: {
514
- aliasId: string & v.Brand<"AliasId">;
515
- name: string | null;
516
- };
517
- submittedAt: string;
518
- version: 1;
519
- };
520
- readonly issue: v.IsoTimestampIssue<string> | v.LiteralIssue | v.MaxLengthIssue<string, number> | v.NonEmptyIssue<string> | v.NonOptionalIssue | v.StrictObjectIssue | v.StringIssue | v.UuidIssue<string>;
521
- } | undefined;
522
- type: 'strict_object';
523
- reference: typeof v.strictObject;
524
- expects: 'Object';
525
- entries: {
526
- readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
527
- readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.BrandAction<string, "CommandId">]>;
528
- readonly kind: v.LiteralSchema<"alias.name.set", undefined>;
529
- readonly payload: v.StrictObjectSchema<{
530
- readonly aliasId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AliasId">]>, undefined>;
531
- readonly name: v.NullableSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
532
- }, undefined>;
533
- readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
534
- readonly version: v.LiteralSchema<1, undefined>;
535
- };
536
- message: undefined;
537
- accountScope: "REQUIRED";
538
- commandKind: "alias.name.set";
539
- payloadSchema: v.StrictObjectSchema<{
540
- readonly aliasId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AliasId">]>, undefined>;
541
- readonly name: v.NullableSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
542
- }, undefined>;
543
- } | {
544
- kind: 'schema';
545
- async: false;
546
- '~standard': v.StandardProps<{
547
- accountId: string;
548
- id: string;
549
- kind: "alias.primary.set";
550
- payload: {
551
- aliasId: string;
552
- };
553
- submittedAt: string;
554
- version: 1;
555
- }, {
556
- accountId: string & v.Brand<"AccountId">;
557
- id: string & v.Brand<"CommandId">;
558
- kind: "alias.primary.set";
559
- payload: {
560
- aliasId: string & v.Brand<"AliasId">;
561
- };
562
- submittedAt: string;
563
- version: 1;
564
- }>;
565
- '~run': (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
566
- accountId: string & v.Brand<"AccountId">;
567
- id: string & v.Brand<"CommandId">;
568
- kind: "alias.primary.set";
569
- payload: {
570
- aliasId: string & v.Brand<"AliasId">;
571
- };
572
- submittedAt: string;
573
- version: 1;
574
- }, v.IsoTimestampIssue<string> | v.LiteralIssue | v.MaxLengthIssue<string, number> | v.NonEmptyIssue<string> | v.NonOptionalIssue | v.StrictObjectIssue | v.StringIssue | v.UuidIssue<string>>;
575
- '~types'?: {
576
- readonly input: {
577
- accountId: string;
578
- id: string;
579
- kind: "alias.primary.set";
580
- payload: {
581
- aliasId: string;
582
- };
583
- submittedAt: string;
584
- version: 1;
585
- };
586
- readonly output: {
587
- accountId: string & v.Brand<"AccountId">;
588
- id: string & v.Brand<"CommandId">;
589
- kind: "alias.primary.set";
590
- payload: {
591
- aliasId: string & v.Brand<"AliasId">;
592
- };
593
- submittedAt: string;
594
- version: 1;
595
- };
596
- readonly issue: v.IsoTimestampIssue<string> | v.LiteralIssue | v.MaxLengthIssue<string, number> | v.NonEmptyIssue<string> | v.NonOptionalIssue | v.StrictObjectIssue | v.StringIssue | v.UuidIssue<string>;
597
- } | undefined;
598
- type: 'strict_object';
599
- reference: typeof v.strictObject;
600
- expects: 'Object';
601
- entries: {
602
- readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
603
- readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.BrandAction<string, "CommandId">]>;
604
- readonly kind: v.LiteralSchema<"alias.primary.set", undefined>;
605
- readonly payload: v.StrictObjectSchema<{
606
- readonly aliasId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AliasId">]>, undefined>;
607
- }, undefined>;
608
- readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
609
- readonly version: v.LiteralSchema<1, undefined>;
610
- };
611
- message: undefined;
612
- accountScope: "REQUIRED";
613
- commandKind: "alias.primary.set";
614
- payloadSchema: v.StrictObjectSchema<{
615
- readonly aliasId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AliasId">]>, undefined>;
616
- }, undefined>;
617
- } | {
618
- kind: 'schema';
619
- async: false;
620
- '~standard': v.StandardProps<{
621
- accountId: string;
622
- id: string;
623
- kind: "alias.signature.set";
624
- payload: {
625
- aliasId: string;
626
- signature: string | null;
627
- };
628
- submittedAt: string;
629
- version: 1;
630
- }, {
631
- accountId: string & v.Brand<"AccountId">;
632
- id: string & v.Brand<"CommandId">;
633
- kind: "alias.signature.set";
634
- payload: {
635
- aliasId: string & v.Brand<"AliasId">;
636
- signature: string | null;
637
- };
638
- submittedAt: string;
639
- version: 1;
640
- }>;
641
- '~run': (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
642
- accountId: string & v.Brand<"AccountId">;
643
- id: string & v.Brand<"CommandId">;
644
- kind: "alias.signature.set";
645
- payload: {
646
- aliasId: string & v.Brand<"AliasId">;
647
- signature: string | null;
648
- };
649
- submittedAt: string;
650
- version: 1;
651
- }, v.IsoTimestampIssue<string> | v.LiteralIssue | v.MaxLengthIssue<string, number> | v.MaxLengthIssue<string, 50000> | v.NonEmptyIssue<string> | v.NonOptionalIssue | v.StrictObjectIssue | v.StringIssue | v.UuidIssue<string>>;
652
- '~types'?: {
653
- readonly input: {
654
- accountId: string;
655
- id: string;
656
- kind: "alias.signature.set";
657
- payload: {
658
- aliasId: string;
659
- signature: string | null;
660
- };
661
- submittedAt: string;
662
- version: 1;
663
- };
664
- readonly output: {
665
- accountId: string & v.Brand<"AccountId">;
666
- id: string & v.Brand<"CommandId">;
667
- kind: "alias.signature.set";
668
- payload: {
669
- aliasId: string & v.Brand<"AliasId">;
670
- signature: string | null;
671
- };
672
- submittedAt: string;
673
- version: 1;
674
- };
675
- readonly issue: v.IsoTimestampIssue<string> | v.LiteralIssue | v.MaxLengthIssue<string, number> | v.MaxLengthIssue<string, 50000> | v.NonEmptyIssue<string> | v.NonOptionalIssue | v.StrictObjectIssue | v.StringIssue | v.UuidIssue<string>;
676
- } | undefined;
677
- type: 'strict_object';
678
- reference: typeof v.strictObject;
679
- expects: 'Object';
680
- entries: {
681
- readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
682
- readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.BrandAction<string, "CommandId">]>;
683
- readonly kind: v.LiteralSchema<"alias.signature.set", undefined>;
684
- readonly payload: v.StrictObjectSchema<{
685
- readonly aliasId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AliasId">]>, undefined>;
686
- readonly signature: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 50000, undefined>]>, undefined>;
687
- }, undefined>;
688
- readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
689
- readonly version: v.LiteralSchema<1, undefined>;
690
- };
691
- message: undefined;
692
- accountScope: "REQUIRED";
693
- commandKind: "alias.signature.set";
694
- payloadSchema: v.StrictObjectSchema<{
695
- readonly aliasId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AliasId">]>, undefined>;
696
- readonly signature: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 50000, undefined>]>, undefined>;
697
- }, undefined>;
698
- } | {
699
- kind: 'schema';
700
- async: false;
701
- '~standard': v.StandardProps<{
702
- accountId: string;
703
- id: string;
704
- kind: "draft.attachment.delete";
705
- payload: {
706
- draftId: string;
707
- fileId: string;
708
- };
709
- submittedAt: string;
710
- version: 1;
711
- }, {
712
- accountId: string & v.Brand<"AccountId">;
713
- id: string & v.Brand<"CommandId">;
714
- kind: "draft.attachment.delete";
715
- payload: {
716
- draftId: string & v.Brand<"DraftId">;
717
- fileId: string;
718
- };
719
- submittedAt: string;
720
- version: 1;
721
- }>;
722
- '~run': (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
723
- accountId: string & v.Brand<"AccountId">;
724
- id: string & v.Brand<"CommandId">;
725
- kind: "draft.attachment.delete";
726
- payload: {
727
- draftId: string & v.Brand<"DraftId">;
728
- fileId: string;
729
- };
730
- submittedAt: string;
731
- version: 1;
732
- }, v.IsoTimestampIssue<string> | v.LiteralIssue | v.MaxLengthIssue<string, number> | v.MaxLengthIssue<string, 36> | v.MinLengthIssue<string, 1> | v.NonEmptyIssue<string> | v.NonOptionalIssue | v.RegexIssue<string> | v.StrictObjectIssue | v.StringIssue | v.UuidIssue<string>>;
733
- '~types'?: {
734
- readonly input: {
735
- accountId: string;
736
- id: string;
737
- kind: "draft.attachment.delete";
738
- payload: {
739
- draftId: string;
740
- fileId: string;
741
- };
742
- submittedAt: string;
743
- version: 1;
744
- };
745
- readonly output: {
746
- accountId: string & v.Brand<"AccountId">;
747
- id: string & v.Brand<"CommandId">;
748
- kind: "draft.attachment.delete";
749
- payload: {
750
- draftId: string & v.Brand<"DraftId">;
751
- fileId: string;
752
- };
753
- submittedAt: string;
754
- version: 1;
755
- };
756
- readonly issue: v.IsoTimestampIssue<string> | v.LiteralIssue | v.MaxLengthIssue<string, number> | v.MaxLengthIssue<string, 36> | v.MinLengthIssue<string, 1> | v.NonEmptyIssue<string> | v.NonOptionalIssue | v.RegexIssue<string> | v.StrictObjectIssue | v.StringIssue | v.UuidIssue<string>;
757
- } | undefined;
758
- type: 'strict_object';
759
- reference: typeof v.strictObject;
760
- expects: 'Object';
761
- entries: {
762
- readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
763
- readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.BrandAction<string, "CommandId">]>;
764
- readonly kind: v.LiteralSchema<"draft.attachment.delete", undefined>;
765
- readonly payload: v.StrictObjectSchema<{
766
- readonly draftId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "DraftId">]>, undefined>;
767
- readonly fileId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 36, undefined>, v.RegexAction<string, undefined>]>;
768
- }, undefined>;
769
- readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
770
- readonly version: v.LiteralSchema<1, undefined>;
771
- };
772
- message: undefined;
773
- accountScope: "REQUIRED";
774
- commandKind: "draft.attachment.delete";
775
- payloadSchema: v.StrictObjectSchema<{
776
- readonly draftId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "DraftId">]>, undefined>;
777
- readonly fileId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 36, undefined>, v.RegexAction<string, undefined>]>;
778
- }, undefined>;
779
- } | {
780
- kind: 'schema';
781
- async: false;
782
- '~standard': v.StandardProps<{
783
- accountId: string;
784
- id: string;
785
- kind: "draft.attachment.link";
786
- payload: {
787
- fileId: string;
788
- fileName: string;
789
- mimeType: string;
790
- size: number;
791
- draftId: string;
792
- };
793
- submittedAt: string;
794
- version: 1;
795
- }, {
796
- accountId: string & v.Brand<"AccountId">;
797
- id: string & v.Brand<"CommandId">;
798
- kind: "draft.attachment.link";
799
- payload: {
800
- fileId: string;
801
- fileName: string;
802
- mimeType: string;
803
- size: number;
804
- draftId: string & v.Brand<"DraftId">;
805
- };
806
- submittedAt: string;
807
- version: 1;
808
- }>;
809
- '~run': (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
810
- accountId: string & v.Brand<"AccountId">;
811
- id: string & v.Brand<"CommandId">;
812
- kind: "draft.attachment.link";
813
- payload: {
814
- fileId: string;
815
- fileName: string;
816
- mimeType: string;
817
- size: number;
818
- draftId: string & v.Brand<"DraftId">;
819
- };
820
- submittedAt: string;
821
- version: 1;
822
- }, v.IntegerIssue<number> | v.IsoTimestampIssue<string> | v.LiteralIssue | v.MaxLengthIssue<string, number> | v.MaxLengthIssue<string, 36> | v.MaxLengthIssue<string, 255> | v.MinLengthIssue<string, 1> | v.MinLengthIssue<string, 3> | v.MinValueIssue<number, 0> | v.NonEmptyIssue<string> | v.NonOptionalIssue | v.NumberIssue | v.RegexIssue<string> | v.StrictObjectIssue | v.StringIssue | v.UuidIssue<string>>;
823
- '~types'?: {
824
- readonly input: {
825
- accountId: string;
826
- id: string;
827
- kind: "draft.attachment.link";
828
- payload: {
829
- fileId: string;
830
- fileName: string;
831
- mimeType: string;
832
- size: number;
833
- draftId: string;
834
- };
835
- submittedAt: string;
836
- version: 1;
837
- };
838
- readonly output: {
839
- accountId: string & v.Brand<"AccountId">;
840
- id: string & v.Brand<"CommandId">;
841
- kind: "draft.attachment.link";
842
- payload: {
843
- fileId: string;
844
- fileName: string;
845
- mimeType: string;
846
- size: number;
847
- draftId: string & v.Brand<"DraftId">;
848
- };
849
- submittedAt: string;
850
- version: 1;
851
- };
852
- readonly issue: v.IntegerIssue<number> | v.IsoTimestampIssue<string> | v.LiteralIssue | v.MaxLengthIssue<string, number> | v.MaxLengthIssue<string, 36> | v.MaxLengthIssue<string, 255> | v.MinLengthIssue<string, 1> | v.MinLengthIssue<string, 3> | v.MinValueIssue<number, 0> | v.NonEmptyIssue<string> | v.NonOptionalIssue | v.NumberIssue | v.RegexIssue<string> | v.StrictObjectIssue | v.StringIssue | v.UuidIssue<string>;
853
- } | undefined;
854
- type: 'strict_object';
855
- reference: typeof v.strictObject;
856
- expects: 'Object';
857
- entries: {
858
- readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
859
- readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.BrandAction<string, "CommandId">]>;
860
- readonly kind: v.LiteralSchema<"draft.attachment.link", undefined>;
861
- readonly payload: v.StrictObjectSchema<{
862
- readonly fileId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 36, undefined>, v.RegexAction<string, undefined>]>;
863
- readonly fileName: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
864
- readonly mimeType: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 3, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
865
- readonly size: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
866
- readonly draftId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "DraftId">]>, undefined>;
867
- }, undefined>;
868
- readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
869
- readonly version: v.LiteralSchema<1, undefined>;
870
- };
871
- message: undefined;
872
- accountScope: "REQUIRED";
873
- commandKind: "draft.attachment.link";
874
- payloadSchema: v.StrictObjectSchema<{
875
- readonly fileId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 36, undefined>, v.RegexAction<string, undefined>]>;
876
- readonly fileName: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
877
- readonly mimeType: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 3, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
878
- readonly size: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
879
- readonly draftId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "DraftId">]>, undefined>;
880
- }, undefined>;
881
- } | {
882
- kind: 'schema';
883
- async: false;
884
- '~standard': v.StandardProps<{
885
- accountId: string;
886
- id: string;
887
- kind: "draft.content.set";
888
- payload: {
889
- draftId: string;
890
- html: string;
891
- };
892
- submittedAt: string;
893
- version: 1;
894
- }, {
895
- accountId: string & v.Brand<"AccountId">;
896
- id: string & v.Brand<"CommandId">;
897
- kind: "draft.content.set";
898
- payload: {
899
- draftId: string & v.Brand<"DraftId">;
900
- html: string;
901
- };
902
- submittedAt: string;
903
- version: 1;
904
- }>;
905
- '~run': (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
906
- accountId: string & v.Brand<"AccountId">;
907
- id: string & v.Brand<"CommandId">;
908
- kind: "draft.content.set";
909
- payload: {
910
- draftId: string & v.Brand<"DraftId">;
911
- html: string;
912
- };
913
- submittedAt: string;
914
- version: 1;
915
- }, v.IsoTimestampIssue<string> | v.LiteralIssue | v.MaxLengthIssue<string, number> | v.MaxLengthIssue<string, 384000> | v.NonEmptyIssue<string> | v.NonOptionalIssue | v.StrictObjectIssue | v.StringIssue | v.UuidIssue<string>>;
916
- '~types'?: {
917
- readonly input: {
918
- accountId: string;
919
- id: string;
920
- kind: "draft.content.set";
921
- payload: {
922
- draftId: string;
923
- html: string;
924
- };
925
- submittedAt: string;
926
- version: 1;
927
- };
928
- readonly output: {
929
- accountId: string & v.Brand<"AccountId">;
930
- id: string & v.Brand<"CommandId">;
931
- kind: "draft.content.set";
932
- payload: {
933
- draftId: string & v.Brand<"DraftId">;
934
- html: string;
935
- };
936
- submittedAt: string;
937
- version: 1;
938
- };
939
- readonly issue: v.IsoTimestampIssue<string> | v.LiteralIssue | v.MaxLengthIssue<string, number> | v.MaxLengthIssue<string, 384000> | v.NonEmptyIssue<string> | v.NonOptionalIssue | v.StrictObjectIssue | v.StringIssue | v.UuidIssue<string>;
940
- } | undefined;
941
- type: 'strict_object';
942
- reference: typeof v.strictObject;
943
- expects: 'Object';
944
- entries: {
945
- readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
946
- readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.BrandAction<string, "CommandId">]>;
947
- readonly kind: v.LiteralSchema<"draft.content.set", undefined>;
948
- readonly payload: v.StrictObjectSchema<{
949
- readonly draftId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "DraftId">]>, undefined>;
950
- readonly html: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 384000, undefined>]>;
951
- }, undefined>;
952
- readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
953
- readonly version: v.LiteralSchema<1, undefined>;
954
- };
955
- message: undefined;
956
- accountScope: "REQUIRED";
957
- commandKind: "draft.content.set";
958
- payloadSchema: v.StrictObjectSchema<{
959
- readonly draftId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "DraftId">]>, undefined>;
960
- readonly html: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 384000, undefined>]>;
961
- }, undefined>;
962
- } | {
963
- kind: 'schema';
964
- async: false;
965
- '~standard': v.StandardProps<{
966
- accountId: string;
967
- id: string;
968
- kind: "draft.create";
969
- payload: {
970
- draftId: string;
971
- fromAliasId: string | null;
972
- referencedMessageId: string | null;
973
- type: "FORWARD" | "NEW" | "REPLY";
974
- };
975
- submittedAt: string;
976
- version: 1;
977
- }, {
978
- accountId: string & v.Brand<"AccountId">;
979
- id: string & v.Brand<"CommandId">;
980
- kind: "draft.create";
981
- payload: {
982
- draftId: string & v.Brand<"DraftId">;
983
- fromAliasId: (string & v.Brand<"AliasId">) | null;
984
- referencedMessageId: (string & v.Brand<"MessageId">) | null;
985
- type: "FORWARD" | "NEW" | "REPLY";
986
- };
987
- submittedAt: string;
988
- version: 1;
989
- }>;
990
- '~run': (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
991
- accountId: string & v.Brand<"AccountId">;
992
- id: string & v.Brand<"CommandId">;
993
- kind: "draft.create";
994
- payload: {
995
- draftId: string & v.Brand<"DraftId">;
996
- fromAliasId: (string & v.Brand<"AliasId">) | null;
997
- referencedMessageId: (string & v.Brand<"MessageId">) | null;
998
- type: "FORWARD" | "NEW" | "REPLY";
999
- };
1000
- submittedAt: string;
1001
- version: 1;
1002
- }, v.IsoTimestampIssue<string> | v.LiteralIssue | v.MaxLengthIssue<string, number> | v.NonEmptyIssue<string> | v.NonOptionalIssue | v.PicklistIssue | v.StrictObjectIssue | v.StringIssue | v.UuidIssue<string>>;
1003
- '~types'?: {
1004
- readonly input: {
1005
- accountId: string;
1006
- id: string;
1007
- kind: "draft.create";
1008
- payload: {
1009
- draftId: string;
1010
- fromAliasId: string | null;
1011
- referencedMessageId: string | null;
1012
- type: "FORWARD" | "NEW" | "REPLY";
1013
- };
1014
- submittedAt: string;
1015
- version: 1;
1016
- };
1017
- readonly output: {
1018
- accountId: string & v.Brand<"AccountId">;
1019
- id: string & v.Brand<"CommandId">;
1020
- kind: "draft.create";
1021
- payload: {
1022
- draftId: string & v.Brand<"DraftId">;
1023
- fromAliasId: (string & v.Brand<"AliasId">) | null;
1024
- referencedMessageId: (string & v.Brand<"MessageId">) | null;
1025
- type: "FORWARD" | "NEW" | "REPLY";
1026
- };
1027
- submittedAt: string;
1028
- version: 1;
1029
- };
1030
- readonly issue: v.IsoTimestampIssue<string> | v.LiteralIssue | v.MaxLengthIssue<string, number> | v.NonEmptyIssue<string> | v.NonOptionalIssue | v.PicklistIssue | v.StrictObjectIssue | v.StringIssue | v.UuidIssue<string>;
1031
- } | undefined;
1032
- type: 'strict_object';
1033
- reference: typeof v.strictObject;
1034
- expects: 'Object';
1035
- entries: {
1036
- readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
1037
- readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.BrandAction<string, "CommandId">]>;
1038
- readonly kind: v.LiteralSchema<"draft.create", undefined>;
1039
- readonly payload: v.StrictObjectSchema<{
1040
- readonly draftId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "DraftId">]>, undefined>;
1041
- readonly fromAliasId: v.NullableSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AliasId">]>, undefined>, undefined>;
1042
- readonly referencedMessageId: v.NullableSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "MessageId">]>, undefined>, undefined>;
1043
- readonly type: v.PicklistSchema<readonly ["NEW", "REPLY", "FORWARD"], undefined>;
1044
- }, undefined>;
1045
- readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
1046
- readonly version: v.LiteralSchema<1, undefined>;
1047
- };
1048
- message: undefined;
1049
- accountScope: "REQUIRED";
1050
- commandKind: "draft.create";
1051
- payloadSchema: v.StrictObjectSchema<{
1052
- readonly draftId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "DraftId">]>, undefined>;
1053
- readonly fromAliasId: v.NullableSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AliasId">]>, undefined>, undefined>;
1054
- readonly referencedMessageId: v.NullableSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "MessageId">]>, undefined>, undefined>;
1055
- readonly type: v.PicklistSchema<readonly ["NEW", "REPLY", "FORWARD"], undefined>;
1056
- }, undefined>;
1057
- } | {
1058
- kind: 'schema';
1059
- async: false;
1060
- '~standard': v.StandardProps<{
1061
- accountId: string;
1062
- id: string;
1063
- kind: "draft.delete";
1064
- payload: {
1065
- draftId: string;
1066
- };
1067
- submittedAt: string;
1068
- version: 1;
1069
- }, {
1070
- accountId: string & v.Brand<"AccountId">;
1071
- id: string & v.Brand<"CommandId">;
1072
- kind: "draft.delete";
1073
- payload: {
1074
- draftId: string & v.Brand<"DraftId">;
1075
- };
1076
- submittedAt: string;
1077
- version: 1;
1078
- }>;
1079
- '~run': (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
1080
- accountId: string & v.Brand<"AccountId">;
1081
- id: string & v.Brand<"CommandId">;
1082
- kind: "draft.delete";
1083
- payload: {
1084
- draftId: string & v.Brand<"DraftId">;
1085
- };
1086
- submittedAt: string;
1087
- version: 1;
1088
- }, v.IsoTimestampIssue<string> | v.LiteralIssue | v.MaxLengthIssue<string, number> | v.NonEmptyIssue<string> | v.NonOptionalIssue | v.StrictObjectIssue | v.StringIssue | v.UuidIssue<string>>;
1089
- '~types'?: {
1090
- readonly input: {
1091
- accountId: string;
1092
- id: string;
1093
- kind: "draft.delete";
1094
- payload: {
1095
- draftId: string;
1096
- };
1097
- submittedAt: string;
1098
- version: 1;
1099
- };
1100
- readonly output: {
1101
- accountId: string & v.Brand<"AccountId">;
1102
- id: string & v.Brand<"CommandId">;
1103
- kind: "draft.delete";
1104
- payload: {
1105
- draftId: string & v.Brand<"DraftId">;
1106
- };
1107
- submittedAt: string;
1108
- version: 1;
1109
- };
1110
- readonly issue: v.IsoTimestampIssue<string> | v.LiteralIssue | v.MaxLengthIssue<string, number> | v.NonEmptyIssue<string> | v.NonOptionalIssue | v.StrictObjectIssue | v.StringIssue | v.UuidIssue<string>;
1111
- } | undefined;
1112
- type: 'strict_object';
1113
- reference: typeof v.strictObject;
1114
- expects: 'Object';
1115
- entries: {
1116
- readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
1117
- readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.BrandAction<string, "CommandId">]>;
1118
- readonly kind: v.LiteralSchema<"draft.delete", undefined>;
1119
- readonly payload: v.StrictObjectSchema<{
1120
- readonly draftId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "DraftId">]>, undefined>;
1121
- }, undefined>;
1122
- readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
1123
- readonly version: v.LiteralSchema<1, undefined>;
1124
- };
1125
- message: undefined;
1126
- accountScope: "REQUIRED";
1127
- commandKind: "draft.delete";
1128
- payloadSchema: v.StrictObjectSchema<{
1129
- readonly draftId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "DraftId">]>, undefined>;
1130
- }, undefined>;
1131
- } | {
1132
- kind: 'schema';
1133
- async: false;
1134
- '~standard': v.StandardProps<{
1135
- accountId: string;
1136
- id: string;
1137
- kind: "draft.envelope.set";
1138
- payload: {
1139
- bcc: string[];
1140
- cc: string[];
1141
- subject: string | null;
1142
- to: string[];
1143
- draftId: string;
1144
- };
1145
- submittedAt: string;
1146
- version: 1;
1147
- }, {
1148
- accountId: string & v.Brand<"AccountId">;
1149
- id: string & v.Brand<"CommandId">;
1150
- kind: "draft.envelope.set";
1151
- payload: {
1152
- bcc: string[];
1153
- cc: string[];
1154
- subject: string | null;
1155
- to: string[];
1156
- draftId: string & v.Brand<"DraftId">;
1157
- };
1158
- submittedAt: string;
1159
- version: 1;
1160
- }>;
1161
- '~run': (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
1162
- accountId: string & v.Brand<"AccountId">;
1163
- id: string & v.Brand<"CommandId">;
1164
- kind: "draft.envelope.set";
1165
- payload: {
1166
- bcc: string[];
1167
- cc: string[];
1168
- subject: string | null;
1169
- to: string[];
1170
- draftId: string & v.Brand<"DraftId">;
1171
- };
1172
- submittedAt: string;
1173
- version: 1;
1174
- }, v.ArrayIssue | v.IsoTimestampIssue<string> | v.LiteralIssue | v.MaxLengthIssue<string, number> | v.MaxLengthIssue<string, 320> | v.MaxLengthIssue<string, 998> | v.NonEmptyIssue<string> | v.NonOptionalIssue | v.RfcEmailIssue<string> | v.StrictObjectIssue | v.StringIssue | v.UuidIssue<string>>;
1175
- '~types'?: {
1176
- readonly input: {
1177
- accountId: string;
1178
- id: string;
1179
- kind: "draft.envelope.set";
1180
- payload: {
1181
- bcc: string[];
1182
- cc: string[];
1183
- subject: string | null;
1184
- to: string[];
1185
- draftId: string;
1186
- };
1187
- submittedAt: string;
1188
- version: 1;
1189
- };
1190
- readonly output: {
1191
- accountId: string & v.Brand<"AccountId">;
1192
- id: string & v.Brand<"CommandId">;
1193
- kind: "draft.envelope.set";
1194
- payload: {
1195
- bcc: string[];
1196
- cc: string[];
1197
- subject: string | null;
1198
- to: string[];
1199
- draftId: string & v.Brand<"DraftId">;
1200
- };
1201
- submittedAt: string;
1202
- version: 1;
1203
- };
1204
- readonly issue: v.ArrayIssue | v.IsoTimestampIssue<string> | v.LiteralIssue | v.MaxLengthIssue<string, number> | v.MaxLengthIssue<string, 320> | v.MaxLengthIssue<string, 998> | v.NonEmptyIssue<string> | v.NonOptionalIssue | v.RfcEmailIssue<string> | v.StrictObjectIssue | v.StringIssue | v.UuidIssue<string>;
1205
- } | undefined;
1206
- type: 'strict_object';
1207
- reference: typeof v.strictObject;
1208
- expects: 'Object';
1209
- entries: {
1210
- readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
1211
- readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.BrandAction<string, "CommandId">]>;
1212
- readonly kind: v.LiteralSchema<"draft.envelope.set", undefined>;
1213
- readonly payload: v.StrictObjectSchema<{
1214
- readonly bcc: v.ArraySchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, v.MaxLengthAction<string, 320, undefined>]>, undefined>;
1215
- readonly cc: v.ArraySchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, v.MaxLengthAction<string, 320, undefined>]>, undefined>;
1216
- readonly subject: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 998, undefined>]>, undefined>;
1217
- readonly to: v.ArraySchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, v.MaxLengthAction<string, 320, undefined>]>, undefined>;
1218
- readonly draftId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "DraftId">]>, undefined>;
1219
- }, undefined>;
1220
- readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
1221
- readonly version: v.LiteralSchema<1, undefined>;
1222
- };
1223
- message: undefined;
1224
- accountScope: "REQUIRED";
1225
- commandKind: "draft.envelope.set";
1226
- payloadSchema: v.StrictObjectSchema<{
1227
- readonly bcc: v.ArraySchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, v.MaxLengthAction<string, 320, undefined>]>, undefined>;
1228
- readonly cc: v.ArraySchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, v.MaxLengthAction<string, 320, undefined>]>, undefined>;
1229
- readonly subject: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 998, undefined>]>, undefined>;
1230
- readonly to: v.ArraySchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, v.MaxLengthAction<string, 320, undefined>]>, undefined>;
1231
- readonly draftId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "DraftId">]>, undefined>;
1232
- }, undefined>;
1233
- } | {
1234
- kind: 'schema';
1235
- async: false;
1236
- '~standard': v.StandardProps<{
1237
- accountId: string;
1238
- id: string;
1239
- kind: "draft.from.set";
1240
- payload: {
1241
- draftId: string;
1242
- fromAliasId: string;
1243
- targetAccountId: string;
1244
- };
1245
- submittedAt: string;
1246
- version: 1;
1247
- }, {
1248
- accountId: string & v.Brand<"AccountId">;
1249
- id: string & v.Brand<"CommandId">;
1250
- kind: "draft.from.set";
1251
- payload: {
1252
- draftId: string & v.Brand<"DraftId">;
1253
- fromAliasId: string & v.Brand<"AliasId">;
1254
- targetAccountId: string & v.Brand<"AccountId">;
1255
- };
1256
- submittedAt: string;
1257
- version: 1;
1258
- }>;
1259
- '~run': (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
1260
- accountId: string & v.Brand<"AccountId">;
1261
- id: string & v.Brand<"CommandId">;
1262
- kind: "draft.from.set";
1263
- payload: {
1264
- draftId: string & v.Brand<"DraftId">;
1265
- fromAliasId: string & v.Brand<"AliasId">;
1266
- targetAccountId: string & v.Brand<"AccountId">;
1267
- };
1268
- submittedAt: string;
1269
- version: 1;
1270
- }, v.IsoTimestampIssue<string> | v.LiteralIssue | v.MaxLengthIssue<string, number> | v.NonEmptyIssue<string> | v.NonOptionalIssue | v.StrictObjectIssue | v.StringIssue | v.UuidIssue<string>>;
1271
- '~types'?: {
1272
- readonly input: {
1273
- accountId: string;
1274
- id: string;
1275
- kind: "draft.from.set";
1276
- payload: {
1277
- draftId: string;
1278
- fromAliasId: string;
1279
- targetAccountId: string;
1280
- };
1281
- submittedAt: string;
1282
- version: 1;
1283
- };
1284
- readonly output: {
1285
- accountId: string & v.Brand<"AccountId">;
1286
- id: string & v.Brand<"CommandId">;
1287
- kind: "draft.from.set";
1288
- payload: {
1289
- draftId: string & v.Brand<"DraftId">;
1290
- fromAliasId: string & v.Brand<"AliasId">;
1291
- targetAccountId: string & v.Brand<"AccountId">;
1292
- };
1293
- submittedAt: string;
1294
- version: 1;
1295
- };
1296
- readonly issue: v.IsoTimestampIssue<string> | v.LiteralIssue | v.MaxLengthIssue<string, number> | v.NonEmptyIssue<string> | v.NonOptionalIssue | v.StrictObjectIssue | v.StringIssue | v.UuidIssue<string>;
1297
- } | undefined;
1298
- type: 'strict_object';
1299
- reference: typeof v.strictObject;
1300
- expects: 'Object';
1301
- entries: {
1302
- readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
1303
- readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.BrandAction<string, "CommandId">]>;
1304
- readonly kind: v.LiteralSchema<"draft.from.set", undefined>;
1305
- readonly payload: v.StrictObjectSchema<{
1306
- readonly draftId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "DraftId">]>, undefined>;
1307
- readonly fromAliasId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AliasId">]>, undefined>;
1308
- readonly targetAccountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
1309
- }, undefined>;
1310
- readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
1311
- readonly version: v.LiteralSchema<1, undefined>;
1312
- };
1313
- message: undefined;
1314
- accountScope: "REQUIRED";
1315
- commandKind: "draft.from.set";
1316
- payloadSchema: v.StrictObjectSchema<{
1317
- readonly draftId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "DraftId">]>, undefined>;
1318
- readonly fromAliasId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AliasId">]>, undefined>;
1319
- readonly targetAccountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
1320
- }, undefined>;
1321
- } | {
1322
- kind: 'schema';
1323
- async: false;
1324
- '~standard': v.StandardProps<{
1325
- accountId: string;
1326
- id: string;
1327
- kind: "draft.send";
1328
- payload: {
1329
- draftId: string;
1330
- };
1331
- submittedAt: string;
1332
- version: 1;
1333
- }, {
1334
- accountId: string & v.Brand<"AccountId">;
1335
- id: string & v.Brand<"CommandId">;
1336
- kind: "draft.send";
1337
- payload: {
1338
- draftId: string & v.Brand<"DraftId">;
1339
- };
1340
- submittedAt: string;
1341
- version: 1;
1342
- }>;
1343
- '~run': (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
1344
- accountId: string & v.Brand<"AccountId">;
1345
- id: string & v.Brand<"CommandId">;
1346
- kind: "draft.send";
1347
- payload: {
1348
- draftId: string & v.Brand<"DraftId">;
1349
- };
1350
- submittedAt: string;
1351
- version: 1;
1352
- }, v.IsoTimestampIssue<string> | v.LiteralIssue | v.MaxLengthIssue<string, number> | v.NonEmptyIssue<string> | v.NonOptionalIssue | v.StrictObjectIssue | v.StringIssue | v.UuidIssue<string>>;
1353
- '~types'?: {
1354
- readonly input: {
1355
- accountId: string;
1356
- id: string;
1357
- kind: "draft.send";
1358
- payload: {
1359
- draftId: string;
1360
- };
1361
- submittedAt: string;
1362
- version: 1;
1363
- };
1364
- readonly output: {
1365
- accountId: string & v.Brand<"AccountId">;
1366
- id: string & v.Brand<"CommandId">;
1367
- kind: "draft.send";
1368
- payload: {
1369
- draftId: string & v.Brand<"DraftId">;
1370
- };
1371
- submittedAt: string;
1372
- version: 1;
1373
- };
1374
- readonly issue: v.IsoTimestampIssue<string> | v.LiteralIssue | v.MaxLengthIssue<string, number> | v.NonEmptyIssue<string> | v.NonOptionalIssue | v.StrictObjectIssue | v.StringIssue | v.UuidIssue<string>;
1375
- } | undefined;
1376
- type: 'strict_object';
1377
- reference: typeof v.strictObject;
1378
- expects: 'Object';
1379
- entries: {
1380
- readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
1381
- readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.BrandAction<string, "CommandId">]>;
1382
- readonly kind: v.LiteralSchema<"draft.send", undefined>;
1383
- readonly payload: v.StrictObjectSchema<{
1384
- readonly draftId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "DraftId">]>, undefined>;
1385
- }, undefined>;
1386
- readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
1387
- readonly version: v.LiteralSchema<1, undefined>;
1388
- };
1389
- message: undefined;
1390
- accountScope: "REQUIRED";
1391
- commandKind: "draft.send";
1392
- payloadSchema: v.StrictObjectSchema<{
1393
- readonly draftId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "DraftId">]>, undefined>;
1394
- }, undefined>;
1395
- } | {
1396
- kind: 'schema';
1397
- async: false;
1398
- '~standard': v.StandardProps<{
1399
- accountId: string;
1400
- id: string;
1401
- kind: "draft.send.cancel";
1402
- payload: {
1403
- draftId: string;
1404
- };
1405
- submittedAt: string;
1406
- version: 1;
1407
- }, {
1408
- accountId: string & v.Brand<"AccountId">;
1409
- id: string & v.Brand<"CommandId">;
1410
- kind: "draft.send.cancel";
1411
- payload: {
1412
- draftId: string & v.Brand<"DraftId">;
1413
- };
1414
- submittedAt: string;
1415
- version: 1;
1416
- }>;
1417
- '~run': (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
1418
- accountId: string & v.Brand<"AccountId">;
1419
- id: string & v.Brand<"CommandId">;
1420
- kind: "draft.send.cancel";
1421
- payload: {
1422
- draftId: string & v.Brand<"DraftId">;
1423
- };
1424
- submittedAt: string;
1425
- version: 1;
1426
- }, v.IsoTimestampIssue<string> | v.LiteralIssue | v.MaxLengthIssue<string, number> | v.NonEmptyIssue<string> | v.NonOptionalIssue | v.StrictObjectIssue | v.StringIssue | v.UuidIssue<string>>;
1427
- '~types'?: {
1428
- readonly input: {
1429
- accountId: string;
1430
- id: string;
1431
- kind: "draft.send.cancel";
1432
- payload: {
1433
- draftId: string;
1434
- };
1435
- submittedAt: string;
1436
- version: 1;
1437
- };
1438
- readonly output: {
1439
- accountId: string & v.Brand<"AccountId">;
1440
- id: string & v.Brand<"CommandId">;
1441
- kind: "draft.send.cancel";
1442
- payload: {
1443
- draftId: string & v.Brand<"DraftId">;
1444
- };
1445
- submittedAt: string;
1446
- version: 1;
1447
- };
1448
- readonly issue: v.IsoTimestampIssue<string> | v.LiteralIssue | v.MaxLengthIssue<string, number> | v.NonEmptyIssue<string> | v.NonOptionalIssue | v.StrictObjectIssue | v.StringIssue | v.UuidIssue<string>;
1449
- } | undefined;
1450
- type: 'strict_object';
1451
- reference: typeof v.strictObject;
1452
- expects: 'Object';
1453
- entries: {
1454
- readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
1455
- readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.BrandAction<string, "CommandId">]>;
1456
- readonly kind: v.LiteralSchema<"draft.send.cancel", undefined>;
1457
- readonly payload: v.StrictObjectSchema<{
1458
- readonly draftId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "DraftId">]>, undefined>;
1459
- }, undefined>;
1460
- readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
1461
- readonly version: v.LiteralSchema<1, undefined>;
1462
- };
1463
- message: undefined;
1464
- accountScope: "REQUIRED";
1465
- commandKind: "draft.send.cancel";
1466
- payloadSchema: v.StrictObjectSchema<{
1467
- readonly draftId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "DraftId">]>, undefined>;
1468
- }, undefined>;
1469
- } | {
1470
- kind: 'schema';
1471
- async: false;
1472
- '~standard': v.StandardProps<{
1473
- accountId: string;
1474
- id: string;
1475
- kind: "draft.send.schedule";
1476
- payload: {
1477
- draftId: string;
1478
- scheduledAt: string;
1479
- };
1480
- submittedAt: string;
1481
- version: 1;
1482
- }, {
1483
- accountId: string & v.Brand<"AccountId">;
1484
- id: string & v.Brand<"CommandId">;
1485
- kind: "draft.send.schedule";
1486
- payload: {
1487
- draftId: string & v.Brand<"DraftId">;
1488
- scheduledAt: string;
1489
- };
1490
- submittedAt: string;
1491
- version: 1;
1492
- }>;
1493
- '~run': (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
1494
- accountId: string & v.Brand<"AccountId">;
1495
- id: string & v.Brand<"CommandId">;
1496
- kind: "draft.send.schedule";
1497
- payload: {
1498
- draftId: string & v.Brand<"DraftId">;
1499
- scheduledAt: string;
1500
- };
1501
- submittedAt: string;
1502
- version: 1;
1503
- }, v.CheckIssue<string> | v.IsoTimestampIssue<string> | v.LiteralIssue | v.MaxLengthIssue<string, number> | v.NonEmptyIssue<string> | v.NonOptionalIssue | v.StrictObjectIssue | v.StringIssue | v.UuidIssue<string>>;
1504
- '~types'?: {
1505
- readonly input: {
1506
- accountId: string;
1507
- id: string;
1508
- kind: "draft.send.schedule";
1509
- payload: {
1510
- draftId: string;
1511
- scheduledAt: string;
1512
- };
1513
- submittedAt: string;
1514
- version: 1;
1515
- };
1516
- readonly output: {
1517
- accountId: string & v.Brand<"AccountId">;
1518
- id: string & v.Brand<"CommandId">;
1519
- kind: "draft.send.schedule";
1520
- payload: {
1521
- draftId: string & v.Brand<"DraftId">;
1522
- scheduledAt: string;
1523
- };
1524
- submittedAt: string;
1525
- version: 1;
1526
- };
1527
- readonly issue: v.CheckIssue<string> | v.IsoTimestampIssue<string> | v.LiteralIssue | v.MaxLengthIssue<string, number> | v.NonEmptyIssue<string> | v.NonOptionalIssue | v.StrictObjectIssue | v.StringIssue | v.UuidIssue<string>;
1528
- } | undefined;
1529
- type: 'strict_object';
1530
- reference: typeof v.strictObject;
1531
- expects: 'Object';
1532
- entries: {
1533
- readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
1534
- readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.BrandAction<string, "CommandId">]>;
1535
- readonly kind: v.LiteralSchema<"draft.send.schedule", undefined>;
1536
- readonly payload: v.StrictObjectSchema<{
1537
- readonly draftId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "DraftId">]>, undefined>;
1538
- readonly scheduledAt: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.CheckAction<string, undefined>]>;
1539
- }, undefined>;
1540
- readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
1541
- readonly version: v.LiteralSchema<1, undefined>;
1542
- };
1543
- message: undefined;
1544
- accountScope: "REQUIRED";
1545
- commandKind: "draft.send.schedule";
1546
- payloadSchema: v.StrictObjectSchema<{
1547
- readonly draftId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "DraftId">]>, undefined>;
1548
- readonly scheduledAt: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.CheckAction<string, undefined>]>;
1549
- }, undefined>;
1550
- } | {
1551
- kind: 'schema';
1552
- async: false;
1553
- '~standard': v.StandardProps<{
1554
- accountId: string;
1555
- id: string;
1556
- kind: "label.create";
1557
- payload: {
1558
- labelId: string;
1559
- path: string;
1560
- };
1561
- submittedAt: string;
1562
- version: 1;
1563
- }, {
1564
- accountId: string & v.Brand<"AccountId">;
1565
- id: string & v.Brand<"CommandId">;
1566
- kind: "label.create";
1567
- payload: {
1568
- labelId: string & v.Brand<"LabelId">;
1569
- path: string;
1570
- };
1571
- submittedAt: string;
1572
- version: 1;
1573
- }>;
1574
- '~run': (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
1575
- accountId: string & v.Brand<"AccountId">;
1576
- id: string & v.Brand<"CommandId">;
1577
- kind: "label.create";
1578
- payload: {
1579
- labelId: string & v.Brand<"LabelId">;
1580
- path: string;
1581
- };
1582
- submittedAt: string;
1583
- version: 1;
1584
- }, v.IsoTimestampIssue<string> | v.LiteralIssue | v.MaxLengthIssue<string, number> | v.NonEmptyIssue<string> | v.NonOptionalIssue | v.StrictObjectIssue | v.StringIssue | v.UuidIssue<string>>;
1585
- '~types'?: {
1586
- readonly input: {
1587
- accountId: string;
1588
- id: string;
1589
- kind: "label.create";
1590
- payload: {
1591
- labelId: string;
1592
- path: string;
1593
- };
1594
- submittedAt: string;
1595
- version: 1;
1596
- };
1597
- readonly output: {
1598
- accountId: string & v.Brand<"AccountId">;
1599
- id: string & v.Brand<"CommandId">;
1600
- kind: "label.create";
1601
- payload: {
1602
- labelId: string & v.Brand<"LabelId">;
1603
- path: string;
1604
- };
1605
- submittedAt: string;
1606
- version: 1;
1607
- };
1608
- readonly issue: v.IsoTimestampIssue<string> | v.LiteralIssue | v.MaxLengthIssue<string, number> | v.NonEmptyIssue<string> | v.NonOptionalIssue | v.StrictObjectIssue | v.StringIssue | v.UuidIssue<string>;
1609
- } | undefined;
1610
- type: 'strict_object';
1611
- reference: typeof v.strictObject;
1612
- expects: 'Object';
1613
- entries: {
1614
- readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
1615
- readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.BrandAction<string, "CommandId">]>;
1616
- readonly kind: v.LiteralSchema<"label.create", undefined>;
1617
- readonly payload: v.StrictObjectSchema<{
1618
- readonly labelId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "LabelId">]>, undefined>;
1619
- readonly path: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
1620
- }, undefined>;
1621
- readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
1622
- readonly version: v.LiteralSchema<1, undefined>;
1623
- };
1624
- message: undefined;
1625
- accountScope: "REQUIRED";
1626
- commandKind: "label.create";
1627
- payloadSchema: v.StrictObjectSchema<{
1628
- readonly labelId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "LabelId">]>, undefined>;
1629
- readonly path: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
1630
- }, undefined>;
1631
- } | {
1632
- kind: 'schema';
1633
- async: false;
1634
- '~standard': v.StandardProps<{
1635
- accountId: string;
1636
- id: string;
1637
- kind: "label.delete";
1638
- payload: {
1639
- labelId: string;
1640
- };
1641
- submittedAt: string;
1642
- version: 1;
1643
- }, {
1644
- accountId: string & v.Brand<"AccountId">;
1645
- id: string & v.Brand<"CommandId">;
1646
- kind: "label.delete";
1647
- payload: {
1648
- labelId: string & v.Brand<"LabelId">;
1649
- };
1650
- submittedAt: string;
1651
- version: 1;
1652
- }>;
1653
- '~run': (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
1654
- accountId: string & v.Brand<"AccountId">;
1655
- id: string & v.Brand<"CommandId">;
1656
- kind: "label.delete";
1657
- payload: {
1658
- labelId: string & v.Brand<"LabelId">;
1659
- };
1660
- submittedAt: string;
1661
- version: 1;
1662
- }, v.IsoTimestampIssue<string> | v.LiteralIssue | v.MaxLengthIssue<string, number> | v.NonEmptyIssue<string> | v.NonOptionalIssue | v.StrictObjectIssue | v.StringIssue | v.UuidIssue<string>>;
1663
- '~types'?: {
1664
- readonly input: {
1665
- accountId: string;
1666
- id: string;
1667
- kind: "label.delete";
1668
- payload: {
1669
- labelId: string;
1670
- };
1671
- submittedAt: string;
1672
- version: 1;
1673
- };
1674
- readonly output: {
1675
- accountId: string & v.Brand<"AccountId">;
1676
- id: string & v.Brand<"CommandId">;
1677
- kind: "label.delete";
1678
- payload: {
1679
- labelId: string & v.Brand<"LabelId">;
1680
- };
1681
- submittedAt: string;
1682
- version: 1;
1683
- };
1684
- readonly issue: v.IsoTimestampIssue<string> | v.LiteralIssue | v.MaxLengthIssue<string, number> | v.NonEmptyIssue<string> | v.NonOptionalIssue | v.StrictObjectIssue | v.StringIssue | v.UuidIssue<string>;
1685
- } | undefined;
1686
- type: 'strict_object';
1687
- reference: typeof v.strictObject;
1688
- expects: 'Object';
1689
- entries: {
1690
- readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
1691
- readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.BrandAction<string, "CommandId">]>;
1692
- readonly kind: v.LiteralSchema<"label.delete", undefined>;
1693
- readonly payload: v.StrictObjectSchema<{
1694
- readonly labelId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "LabelId">]>, undefined>;
1695
- }, undefined>;
1696
- readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
1697
- readonly version: v.LiteralSchema<1, undefined>;
1698
- };
1699
- message: undefined;
1700
- accountScope: "REQUIRED";
1701
- commandKind: "label.delete";
1702
- payloadSchema: v.StrictObjectSchema<{
1703
- readonly labelId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "LabelId">]>, undefined>;
1704
- }, undefined>;
1705
- } | {
1706
- kind: 'schema';
1707
- async: false;
1708
- '~standard': v.StandardProps<{
1709
- accountId: string;
1710
- id: string;
1711
- kind: "label.rename";
1712
- payload: {
1713
- labelId: string;
1714
- path: string;
1715
- };
1716
- submittedAt: string;
1717
- version: 1;
1718
- }, {
1719
- accountId: string & v.Brand<"AccountId">;
1720
- id: string & v.Brand<"CommandId">;
1721
- kind: "label.rename";
1722
- payload: {
1723
- labelId: string & v.Brand<"LabelId">;
1724
- path: string;
1725
- };
1726
- submittedAt: string;
1727
- version: 1;
1728
- }>;
1729
- '~run': (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
1730
- accountId: string & v.Brand<"AccountId">;
1731
- id: string & v.Brand<"CommandId">;
1732
- kind: "label.rename";
1733
- payload: {
1734
- labelId: string & v.Brand<"LabelId">;
1735
- path: string;
1736
- };
1737
- submittedAt: string;
1738
- version: 1;
1739
- }, v.IsoTimestampIssue<string> | v.LiteralIssue | v.MaxLengthIssue<string, number> | v.NonEmptyIssue<string> | v.NonOptionalIssue | v.StrictObjectIssue | v.StringIssue | v.UuidIssue<string>>;
1740
- '~types'?: {
1741
- readonly input: {
1742
- accountId: string;
1743
- id: string;
1744
- kind: "label.rename";
1745
- payload: {
1746
- labelId: string;
1747
- path: string;
1748
- };
1749
- submittedAt: string;
1750
- version: 1;
1751
- };
1752
- readonly output: {
1753
- accountId: string & v.Brand<"AccountId">;
1754
- id: string & v.Brand<"CommandId">;
1755
- kind: "label.rename";
1756
- payload: {
1757
- labelId: string & v.Brand<"LabelId">;
1758
- path: string;
1759
- };
1760
- submittedAt: string;
1761
- version: 1;
1762
- };
1763
- readonly issue: v.IsoTimestampIssue<string> | v.LiteralIssue | v.MaxLengthIssue<string, number> | v.NonEmptyIssue<string> | v.NonOptionalIssue | v.StrictObjectIssue | v.StringIssue | v.UuidIssue<string>;
1764
- } | undefined;
1765
- type: 'strict_object';
1766
- reference: typeof v.strictObject;
1767
- expects: 'Object';
1768
- entries: {
1769
- readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
1770
- readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.BrandAction<string, "CommandId">]>;
1771
- readonly kind: v.LiteralSchema<"label.rename", undefined>;
1772
- readonly payload: v.StrictObjectSchema<{
1773
- readonly labelId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "LabelId">]>, undefined>;
1774
- readonly path: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
1775
- }, undefined>;
1776
- readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
1777
- readonly version: v.LiteralSchema<1, undefined>;
1778
- };
1779
- message: undefined;
1780
- accountScope: "REQUIRED";
1781
- commandKind: "label.rename";
1782
- payloadSchema: v.StrictObjectSchema<{
1783
- readonly labelId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "LabelId">]>, undefined>;
1784
- readonly path: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
1785
- }, undefined>;
1786
- } | {
1787
- kind: 'schema';
1788
- async: false;
1789
- '~standard': v.StandardProps<{
1790
- accountId: string | null;
1791
- id: string;
1792
- kind: "profile.avatar.set";
1793
- payload: {
1794
- sha256: string;
1795
- };
1796
- submittedAt: string;
1797
- version: 1;
1798
- }, {
1799
- accountId: (string & v.Brand<"AccountId">) | null;
1800
- id: string & v.Brand<"CommandId">;
1801
- kind: "profile.avatar.set";
1802
- payload: {
1803
- sha256: string;
1804
- };
1805
- submittedAt: string;
1806
- version: 1;
1807
- }>;
1808
- '~run': (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
1809
- accountId: (string & v.Brand<"AccountId">) | null;
1810
- id: string & v.Brand<"CommandId">;
1811
- kind: "profile.avatar.set";
1812
- payload: {
1813
- sha256: string;
1814
- };
1815
- submittedAt: string;
1816
- version: 1;
1817
- }, v.IsoTimestampIssue<string> | v.LiteralIssue | v.MaxLengthIssue<string, number> | v.NonEmptyIssue<string> | v.NonOptionalIssue | v.RegexIssue<string> | v.StrictObjectIssue | v.StringIssue | v.UuidIssue<string>>;
1818
- '~types'?: {
1819
- readonly input: {
1820
- accountId: string | null;
1821
- id: string;
1822
- kind: "profile.avatar.set";
1823
- payload: {
1824
- sha256: string;
1825
- };
1826
- submittedAt: string;
1827
- version: 1;
1828
- };
1829
- readonly output: {
1830
- accountId: (string & v.Brand<"AccountId">) | null;
1831
- id: string & v.Brand<"CommandId">;
1832
- kind: "profile.avatar.set";
1833
- payload: {
1834
- sha256: string;
1835
- };
1836
- submittedAt: string;
1837
- version: 1;
1838
- };
1839
- readonly issue: v.IsoTimestampIssue<string> | v.LiteralIssue | v.MaxLengthIssue<string, number> | v.NonEmptyIssue<string> | v.NonOptionalIssue | v.RegexIssue<string> | v.StrictObjectIssue | v.StringIssue | v.UuidIssue<string>;
1840
- } | undefined;
1841
- type: 'strict_object';
1842
- reference: typeof v.strictObject;
1843
- expects: 'Object';
1844
- entries: {
1845
- readonly accountId: v.NullableSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>, undefined>;
1846
- readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.BrandAction<string, "CommandId">]>;
1847
- readonly kind: v.LiteralSchema<"profile.avatar.set", undefined>;
1848
- readonly payload: v.StrictObjectSchema<{
1849
- readonly sha256: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
1850
- }, undefined>;
1851
- readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
1852
- readonly version: v.LiteralSchema<1, undefined>;
1853
- };
1854
- message: undefined;
1855
- accountScope: "NULLABLE";
1856
- commandKind: "profile.avatar.set";
1857
- payloadSchema: v.StrictObjectSchema<{
1858
- readonly sha256: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
1859
- }, undefined>;
1860
- } | {
1861
- kind: 'schema';
1862
- async: false;
1863
- '~standard': v.StandardProps<{
1864
- accountId: string | null;
1865
- id: string;
1866
- kind: "profile.settings.set";
1867
- payload: {
1868
- name?: string | null | undefined;
1869
- timezone?: string | null | undefined;
1870
- };
1871
- submittedAt: string;
1872
- version: 1;
1873
- }, {
1874
- accountId: (string & v.Brand<"AccountId">) | null;
1875
- id: string & v.Brand<"CommandId">;
1876
- kind: "profile.settings.set";
1877
- payload: {
1878
- name?: string | null | undefined;
1879
- timezone?: string | null | undefined;
1880
- };
1881
- submittedAt: string;
1882
- version: 1;
1883
- }>;
1884
- '~run': (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
1885
- accountId: (string & v.Brand<"AccountId">) | null;
1886
- id: string & v.Brand<"CommandId">;
1887
- kind: "profile.settings.set";
1888
- payload: {
1889
- name?: string | null | undefined;
1890
- timezone?: string | null | undefined;
1891
- };
1892
- submittedAt: string;
1893
- version: 1;
1894
- }, v.IsoTimestampIssue<string> | v.LiteralIssue | v.MaxLengthIssue<string, number> | v.NonEmptyIssue<string> | v.NonOptionalIssue | v.StrictObjectIssue | v.StringIssue | v.UuidIssue<string>>;
1895
- '~types'?: {
1896
- readonly input: {
1897
- accountId: string | null;
1898
- id: string;
1899
- kind: "profile.settings.set";
1900
- payload: {
1901
- name?: string | null | undefined;
1902
- timezone?: string | null | undefined;
1903
- };
1904
- submittedAt: string;
1905
- version: 1;
1906
- };
1907
- readonly output: {
1908
- accountId: (string & v.Brand<"AccountId">) | null;
1909
- id: string & v.Brand<"CommandId">;
1910
- kind: "profile.settings.set";
1911
- payload: {
1912
- name?: string | null | undefined;
1913
- timezone?: string | null | undefined;
1914
- };
1915
- submittedAt: string;
1916
- version: 1;
1917
- };
1918
- readonly issue: v.IsoTimestampIssue<string> | v.LiteralIssue | v.MaxLengthIssue<string, number> | v.NonEmptyIssue<string> | v.NonOptionalIssue | v.StrictObjectIssue | v.StringIssue | v.UuidIssue<string>;
1919
- } | undefined;
1920
- type: 'strict_object';
1921
- reference: typeof v.strictObject;
1922
- expects: 'Object';
1923
- entries: {
1924
- readonly accountId: v.NullableSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>, undefined>;
1925
- readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.BrandAction<string, "CommandId">]>;
1926
- readonly kind: v.LiteralSchema<"profile.settings.set", undefined>;
1927
- readonly payload: v.StrictObjectSchema<{
1928
- readonly name: v.OptionalSchema<v.NullableSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>, undefined>;
1929
- readonly timezone: v.OptionalSchema<v.NullableSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>, undefined>;
1930
- }, undefined>;
1931
- readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
1932
- readonly version: v.LiteralSchema<1, undefined>;
1933
- };
1934
- message: undefined;
1935
- accountScope: "NULLABLE";
1936
- commandKind: "profile.settings.set";
1937
- payloadSchema: v.StrictObjectSchema<{
1938
- readonly name: v.OptionalSchema<v.NullableSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>, undefined>;
1939
- readonly timezone: v.OptionalSchema<v.NullableSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>, undefined>;
1940
- }, undefined>;
1941
- } | {
1942
- kind: 'schema';
1943
- async: false;
1944
- '~standard': v.StandardProps<{
1945
- accountId: string;
1946
- id: string;
1947
- kind: "thread.archive.set";
1948
- payload: {
1949
- archived: boolean;
1950
- threadIds: string[];
1951
- };
1952
- submittedAt: string;
1953
- version: 1;
1954
- }, {
1955
- accountId: string & v.Brand<"AccountId">;
1956
- id: string & v.Brand<"CommandId">;
1957
- kind: "thread.archive.set";
1958
- payload: {
1959
- archived: boolean;
1960
- threadIds: (string & v.Brand<"ThreadId">)[];
1961
- };
1962
- submittedAt: string;
1963
- version: 1;
1964
- }>;
1965
- '~run': (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
1966
- accountId: string & v.Brand<"AccountId">;
1967
- id: string & v.Brand<"CommandId">;
1968
- kind: "thread.archive.set";
1969
- payload: {
1970
- archived: boolean;
1971
- threadIds: (string & v.Brand<"ThreadId">)[];
1972
- };
1973
- submittedAt: string;
1974
- version: 1;
1975
- }, v.ArrayIssue | v.BooleanIssue | v.IsoTimestampIssue<string> | v.LiteralIssue | v.MaxLengthIssue<string, number> | v.MaxLengthIssue<(string & v.Brand<"ThreadId">)[], 100> | v.MinLengthIssue<(string & v.Brand<"ThreadId">)[], 1> | v.NonEmptyIssue<string> | v.NonOptionalIssue | v.StrictObjectIssue | v.StringIssue | v.UuidIssue<string>>;
1976
- '~types'?: {
1977
- readonly input: {
1978
- accountId: string;
1979
- id: string;
1980
- kind: "thread.archive.set";
1981
- payload: {
1982
- archived: boolean;
1983
- threadIds: string[];
1984
- };
1985
- submittedAt: string;
1986
- version: 1;
1987
- };
1988
- readonly output: {
1989
- accountId: string & v.Brand<"AccountId">;
1990
- id: string & v.Brand<"CommandId">;
1991
- kind: "thread.archive.set";
1992
- payload: {
1993
- archived: boolean;
1994
- threadIds: (string & v.Brand<"ThreadId">)[];
1995
- };
1996
- submittedAt: string;
1997
- version: 1;
1998
- };
1999
- readonly issue: v.ArrayIssue | v.BooleanIssue | v.IsoTimestampIssue<string> | v.LiteralIssue | v.MaxLengthIssue<string, number> | v.MaxLengthIssue<(string & v.Brand<"ThreadId">)[], 100> | v.MinLengthIssue<(string & v.Brand<"ThreadId">)[], 1> | v.NonEmptyIssue<string> | v.NonOptionalIssue | v.StrictObjectIssue | v.StringIssue | v.UuidIssue<string>;
2000
- } | undefined;
2001
- type: 'strict_object';
2002
- reference: typeof v.strictObject;
2003
- expects: 'Object';
2004
- entries: {
2005
- readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
2006
- readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.BrandAction<string, "CommandId">]>;
2007
- readonly kind: v.LiteralSchema<"thread.archive.set", undefined>;
2008
- readonly payload: v.StrictObjectSchema<{
2009
- readonly archived: v.BooleanSchema<undefined>;
2010
- readonly threadIds: v.SchemaWithPipe<readonly [v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>, undefined>, v.MinLengthAction<(string & v.Brand<"ThreadId">)[], 1, undefined>, v.MaxLengthAction<(string & v.Brand<"ThreadId">)[], 100, undefined>]>;
2011
- }, undefined>;
2012
- readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
2013
- readonly version: v.LiteralSchema<1, undefined>;
2014
- };
2015
- message: undefined;
2016
- accountScope: "REQUIRED";
2017
- commandKind: "thread.archive.set";
2018
- payloadSchema: v.StrictObjectSchema<{
2019
- readonly archived: v.BooleanSchema<undefined>;
2020
- readonly threadIds: v.SchemaWithPipe<readonly [v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>, undefined>, v.MinLengthAction<(string & v.Brand<"ThreadId">)[], 1, undefined>, v.MaxLengthAction<(string & v.Brand<"ThreadId">)[], 100, undefined>]>;
2021
- }, undefined>;
2022
- } | {
2023
- kind: 'schema';
2024
- async: false;
2025
- '~standard': v.StandardProps<{
2026
- accountId: string;
2027
- id: string;
2028
- kind: "thread.delete";
2029
- payload: {
2030
- threadIds: string[];
2031
- };
2032
- submittedAt: string;
2033
- version: 1;
2034
- }, {
2035
- accountId: string & v.Brand<"AccountId">;
2036
- id: string & v.Brand<"CommandId">;
2037
- kind: "thread.delete";
2038
- payload: {
2039
- threadIds: (string & v.Brand<"ThreadId">)[];
2040
- };
2041
- submittedAt: string;
2042
- version: 1;
2043
- }>;
2044
- '~run': (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
2045
- accountId: string & v.Brand<"AccountId">;
2046
- id: string & v.Brand<"CommandId">;
2047
- kind: "thread.delete";
2048
- payload: {
2049
- threadIds: (string & v.Brand<"ThreadId">)[];
2050
- };
2051
- submittedAt: string;
2052
- version: 1;
2053
- }, v.ArrayIssue | v.IsoTimestampIssue<string> | v.LiteralIssue | v.MaxLengthIssue<string, number> | v.MaxLengthIssue<(string & v.Brand<"ThreadId">)[], 100> | v.MinLengthIssue<(string & v.Brand<"ThreadId">)[], 1> | v.NonEmptyIssue<string> | v.NonOptionalIssue | v.StrictObjectIssue | v.StringIssue | v.UuidIssue<string>>;
2054
- '~types'?: {
2055
- readonly input: {
2056
- accountId: string;
2057
- id: string;
2058
- kind: "thread.delete";
2059
- payload: {
2060
- threadIds: string[];
2061
- };
2062
- submittedAt: string;
2063
- version: 1;
2064
- };
2065
- readonly output: {
2066
- accountId: string & v.Brand<"AccountId">;
2067
- id: string & v.Brand<"CommandId">;
2068
- kind: "thread.delete";
2069
- payload: {
2070
- threadIds: (string & v.Brand<"ThreadId">)[];
2071
- };
2072
- submittedAt: string;
2073
- version: 1;
2074
- };
2075
- readonly issue: v.ArrayIssue | v.IsoTimestampIssue<string> | v.LiteralIssue | v.MaxLengthIssue<string, number> | v.MaxLengthIssue<(string & v.Brand<"ThreadId">)[], 100> | v.MinLengthIssue<(string & v.Brand<"ThreadId">)[], 1> | v.NonEmptyIssue<string> | v.NonOptionalIssue | v.StrictObjectIssue | v.StringIssue | v.UuidIssue<string>;
2076
- } | undefined;
2077
- type: 'strict_object';
2078
- reference: typeof v.strictObject;
2079
- expects: 'Object';
2080
- entries: {
2081
- readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
2082
- readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.BrandAction<string, "CommandId">]>;
2083
- readonly kind: v.LiteralSchema<"thread.delete", undefined>;
2084
- readonly payload: v.StrictObjectSchema<{
2085
- readonly threadIds: v.SchemaWithPipe<readonly [v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>, undefined>, v.MinLengthAction<(string & v.Brand<"ThreadId">)[], 1, undefined>, v.MaxLengthAction<(string & v.Brand<"ThreadId">)[], 100, undefined>]>;
2086
- }, undefined>;
2087
- readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
2088
- readonly version: v.LiteralSchema<1, undefined>;
2089
- };
2090
- message: undefined;
2091
- accountScope: "REQUIRED";
2092
- commandKind: "thread.delete";
2093
- payloadSchema: v.StrictObjectSchema<{
2094
- readonly threadIds: v.SchemaWithPipe<readonly [v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>, undefined>, v.MinLengthAction<(string & v.Brand<"ThreadId">)[], 1, undefined>, v.MaxLengthAction<(string & v.Brand<"ThreadId">)[], 100, undefined>]>;
2095
- }, undefined>;
2096
- } | {
2097
- kind: 'schema';
2098
- async: false;
2099
- '~standard': v.StandardProps<{
2100
- accountId: string;
2101
- id: string;
2102
- kind: "thread.flagged.set";
2103
- payload: {
2104
- flagged: boolean;
2105
- threadIds: string[];
2106
- };
2107
- submittedAt: string;
2108
- version: 1;
2109
- }, {
2110
- accountId: string & v.Brand<"AccountId">;
2111
- id: string & v.Brand<"CommandId">;
2112
- kind: "thread.flagged.set";
2113
- payload: {
2114
- flagged: boolean;
2115
- threadIds: (string & v.Brand<"ThreadId">)[];
2116
- };
2117
- submittedAt: string;
2118
- version: 1;
2119
- }>;
2120
- '~run': (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
2121
- accountId: string & v.Brand<"AccountId">;
2122
- id: string & v.Brand<"CommandId">;
2123
- kind: "thread.flagged.set";
2124
- payload: {
2125
- flagged: boolean;
2126
- threadIds: (string & v.Brand<"ThreadId">)[];
2127
- };
2128
- submittedAt: string;
2129
- version: 1;
2130
- }, v.ArrayIssue | v.BooleanIssue | v.IsoTimestampIssue<string> | v.LiteralIssue | v.MaxLengthIssue<string, number> | v.MaxLengthIssue<(string & v.Brand<"ThreadId">)[], 100> | v.MinLengthIssue<(string & v.Brand<"ThreadId">)[], 1> | v.NonEmptyIssue<string> | v.NonOptionalIssue | v.StrictObjectIssue | v.StringIssue | v.UuidIssue<string>>;
2131
- '~types'?: {
2132
- readonly input: {
2133
- accountId: string;
2134
- id: string;
2135
- kind: "thread.flagged.set";
2136
- payload: {
2137
- flagged: boolean;
2138
- threadIds: string[];
2139
- };
2140
- submittedAt: string;
2141
- version: 1;
2142
- };
2143
- readonly output: {
2144
- accountId: string & v.Brand<"AccountId">;
2145
- id: string & v.Brand<"CommandId">;
2146
- kind: "thread.flagged.set";
2147
- payload: {
2148
- flagged: boolean;
2149
- threadIds: (string & v.Brand<"ThreadId">)[];
2150
- };
2151
- submittedAt: string;
2152
- version: 1;
2153
- };
2154
- readonly issue: v.ArrayIssue | v.BooleanIssue | v.IsoTimestampIssue<string> | v.LiteralIssue | v.MaxLengthIssue<string, number> | v.MaxLengthIssue<(string & v.Brand<"ThreadId">)[], 100> | v.MinLengthIssue<(string & v.Brand<"ThreadId">)[], 1> | v.NonEmptyIssue<string> | v.NonOptionalIssue | v.StrictObjectIssue | v.StringIssue | v.UuidIssue<string>;
2155
- } | undefined;
2156
- type: 'strict_object';
2157
- reference: typeof v.strictObject;
2158
- expects: 'Object';
2159
- entries: {
2160
- readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
2161
- readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.BrandAction<string, "CommandId">]>;
2162
- readonly kind: v.LiteralSchema<"thread.flagged.set", undefined>;
2163
- readonly payload: v.StrictObjectSchema<{
2164
- readonly flagged: v.BooleanSchema<undefined>;
2165
- readonly threadIds: v.SchemaWithPipe<readonly [v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>, undefined>, v.MinLengthAction<(string & v.Brand<"ThreadId">)[], 1, undefined>, v.MaxLengthAction<(string & v.Brand<"ThreadId">)[], 100, undefined>]>;
2166
- }, undefined>;
2167
- readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
2168
- readonly version: v.LiteralSchema<1, undefined>;
2169
- };
2170
- message: undefined;
2171
- accountScope: "REQUIRED";
2172
- commandKind: "thread.flagged.set";
2173
- payloadSchema: v.StrictObjectSchema<{
2174
- readonly flagged: v.BooleanSchema<undefined>;
2175
- readonly threadIds: v.SchemaWithPipe<readonly [v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>, undefined>, v.MinLengthAction<(string & v.Brand<"ThreadId">)[], 1, undefined>, v.MaxLengthAction<(string & v.Brand<"ThreadId">)[], 100, undefined>]>;
2176
- }, undefined>;
2177
- } | {
2178
- kind: 'schema';
2179
- async: false;
2180
- '~standard': v.StandardProps<{
2181
- accountId: string;
2182
- id: string;
2183
- kind: "thread.label.add";
2184
- payload: {
2185
- labelId: string;
2186
- threadIds: string[];
2187
- };
2188
- submittedAt: string;
2189
- version: 1;
2190
- }, {
2191
- accountId: string & v.Brand<"AccountId">;
2192
- id: string & v.Brand<"CommandId">;
2193
- kind: "thread.label.add";
2194
- payload: {
2195
- labelId: string & v.Brand<"LabelId">;
2196
- threadIds: (string & v.Brand<"ThreadId">)[];
2197
- };
2198
- submittedAt: string;
2199
- version: 1;
2200
- }>;
2201
- '~run': (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
2202
- accountId: string & v.Brand<"AccountId">;
2203
- id: string & v.Brand<"CommandId">;
2204
- kind: "thread.label.add";
2205
- payload: {
2206
- labelId: string & v.Brand<"LabelId">;
2207
- threadIds: (string & v.Brand<"ThreadId">)[];
2208
- };
2209
- submittedAt: string;
2210
- version: 1;
2211
- }, v.ArrayIssue | v.IsoTimestampIssue<string> | v.LiteralIssue | v.MaxLengthIssue<string, number> | v.MaxLengthIssue<(string & v.Brand<"ThreadId">)[], 100> | v.MinLengthIssue<(string & v.Brand<"ThreadId">)[], 1> | v.NonEmptyIssue<string> | v.NonOptionalIssue | v.StrictObjectIssue | v.StringIssue | v.UuidIssue<string>>;
2212
- '~types'?: {
2213
- readonly input: {
2214
- accountId: string;
2215
- id: string;
2216
- kind: "thread.label.add";
2217
- payload: {
2218
- labelId: string;
2219
- threadIds: string[];
2220
- };
2221
- submittedAt: string;
2222
- version: 1;
2223
- };
2224
- readonly output: {
2225
- accountId: string & v.Brand<"AccountId">;
2226
- id: string & v.Brand<"CommandId">;
2227
- kind: "thread.label.add";
2228
- payload: {
2229
- labelId: string & v.Brand<"LabelId">;
2230
- threadIds: (string & v.Brand<"ThreadId">)[];
2231
- };
2232
- submittedAt: string;
2233
- version: 1;
2234
- };
2235
- readonly issue: v.ArrayIssue | v.IsoTimestampIssue<string> | v.LiteralIssue | v.MaxLengthIssue<string, number> | v.MaxLengthIssue<(string & v.Brand<"ThreadId">)[], 100> | v.MinLengthIssue<(string & v.Brand<"ThreadId">)[], 1> | v.NonEmptyIssue<string> | v.NonOptionalIssue | v.StrictObjectIssue | v.StringIssue | v.UuidIssue<string>;
2236
- } | undefined;
2237
- type: 'strict_object';
2238
- reference: typeof v.strictObject;
2239
- expects: 'Object';
2240
- entries: {
2241
- readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
2242
- readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.BrandAction<string, "CommandId">]>;
2243
- readonly kind: v.LiteralSchema<"thread.label.add", undefined>;
2244
- readonly payload: v.StrictObjectSchema<{
2245
- readonly labelId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "LabelId">]>, undefined>;
2246
- readonly threadIds: v.SchemaWithPipe<readonly [v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>, undefined>, v.MinLengthAction<(string & v.Brand<"ThreadId">)[], 1, undefined>, v.MaxLengthAction<(string & v.Brand<"ThreadId">)[], 100, undefined>]>;
2247
- }, undefined>;
2248
- readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
2249
- readonly version: v.LiteralSchema<1, undefined>;
2250
- };
2251
- message: undefined;
2252
- accountScope: "REQUIRED";
2253
- commandKind: "thread.label.add";
2254
- payloadSchema: v.StrictObjectSchema<{
2255
- readonly labelId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "LabelId">]>, undefined>;
2256
- readonly threadIds: v.SchemaWithPipe<readonly [v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>, undefined>, v.MinLengthAction<(string & v.Brand<"ThreadId">)[], 1, undefined>, v.MaxLengthAction<(string & v.Brand<"ThreadId">)[], 100, undefined>]>;
2257
- }, undefined>;
2258
- } | {
2259
- kind: 'schema';
2260
- async: false;
2261
- '~standard': v.StandardProps<{
2262
- accountId: string;
2263
- id: string;
2264
- kind: "thread.label.remove";
2265
- payload: {
2266
- labelId: string;
2267
- threadIds: string[];
2268
- };
2269
- submittedAt: string;
2270
- version: 1;
2271
- }, {
2272
- accountId: string & v.Brand<"AccountId">;
2273
- id: string & v.Brand<"CommandId">;
2274
- kind: "thread.label.remove";
2275
- payload: {
2276
- labelId: string & v.Brand<"LabelId">;
2277
- threadIds: (string & v.Brand<"ThreadId">)[];
2278
- };
2279
- submittedAt: string;
2280
- version: 1;
2281
- }>;
2282
- '~run': (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
2283
- accountId: string & v.Brand<"AccountId">;
2284
- id: string & v.Brand<"CommandId">;
2285
- kind: "thread.label.remove";
2286
- payload: {
2287
- labelId: string & v.Brand<"LabelId">;
2288
- threadIds: (string & v.Brand<"ThreadId">)[];
2289
- };
2290
- submittedAt: string;
2291
- version: 1;
2292
- }, v.ArrayIssue | v.IsoTimestampIssue<string> | v.LiteralIssue | v.MaxLengthIssue<string, number> | v.MaxLengthIssue<(string & v.Brand<"ThreadId">)[], 100> | v.MinLengthIssue<(string & v.Brand<"ThreadId">)[], 1> | v.NonEmptyIssue<string> | v.NonOptionalIssue | v.StrictObjectIssue | v.StringIssue | v.UuidIssue<string>>;
2293
- '~types'?: {
2294
- readonly input: {
2295
- accountId: string;
2296
- id: string;
2297
- kind: "thread.label.remove";
2298
- payload: {
2299
- labelId: string;
2300
- threadIds: string[];
2301
- };
2302
- submittedAt: string;
2303
- version: 1;
2304
- };
2305
- readonly output: {
2306
- accountId: string & v.Brand<"AccountId">;
2307
- id: string & v.Brand<"CommandId">;
2308
- kind: "thread.label.remove";
2309
- payload: {
2310
- labelId: string & v.Brand<"LabelId">;
2311
- threadIds: (string & v.Brand<"ThreadId">)[];
2312
- };
2313
- submittedAt: string;
2314
- version: 1;
2315
- };
2316
- readonly issue: v.ArrayIssue | v.IsoTimestampIssue<string> | v.LiteralIssue | v.MaxLengthIssue<string, number> | v.MaxLengthIssue<(string & v.Brand<"ThreadId">)[], 100> | v.MinLengthIssue<(string & v.Brand<"ThreadId">)[], 1> | v.NonEmptyIssue<string> | v.NonOptionalIssue | v.StrictObjectIssue | v.StringIssue | v.UuidIssue<string>;
2317
- } | undefined;
2318
- type: 'strict_object';
2319
- reference: typeof v.strictObject;
2320
- expects: 'Object';
2321
- entries: {
2322
- readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
2323
- readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.BrandAction<string, "CommandId">]>;
2324
- readonly kind: v.LiteralSchema<"thread.label.remove", undefined>;
2325
- readonly payload: v.StrictObjectSchema<{
2326
- readonly labelId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "LabelId">]>, undefined>;
2327
- readonly threadIds: v.SchemaWithPipe<readonly [v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>, undefined>, v.MinLengthAction<(string & v.Brand<"ThreadId">)[], 1, undefined>, v.MaxLengthAction<(string & v.Brand<"ThreadId">)[], 100, undefined>]>;
2328
- }, undefined>;
2329
- readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
2330
- readonly version: v.LiteralSchema<1, undefined>;
2331
- };
2332
- message: undefined;
2333
- accountScope: "REQUIRED";
2334
- commandKind: "thread.label.remove";
2335
- payloadSchema: v.StrictObjectSchema<{
2336
- readonly labelId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "LabelId">]>, undefined>;
2337
- readonly threadIds: v.SchemaWithPipe<readonly [v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>, undefined>, v.MinLengthAction<(string & v.Brand<"ThreadId">)[], 1, undefined>, v.MaxLengthAction<(string & v.Brand<"ThreadId">)[], 100, undefined>]>;
2338
- }, undefined>;
2339
- } | {
2340
- kind: 'schema';
2341
- async: false;
2342
- '~standard': v.StandardProps<{
2343
- accountId: string;
2344
- id: string;
2345
- kind: "thread.seen.set";
2346
- payload: {
2347
- seen: boolean;
2348
- threadIds: string[];
2349
- };
2350
- submittedAt: string;
2351
- version: 1;
2352
- }, {
2353
- accountId: string & v.Brand<"AccountId">;
2354
- id: string & v.Brand<"CommandId">;
2355
- kind: "thread.seen.set";
2356
- payload: {
2357
- seen: boolean;
2358
- threadIds: (string & v.Brand<"ThreadId">)[];
2359
- };
2360
- submittedAt: string;
2361
- version: 1;
2362
- }>;
2363
- '~run': (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
2364
- accountId: string & v.Brand<"AccountId">;
2365
- id: string & v.Brand<"CommandId">;
2366
- kind: "thread.seen.set";
2367
- payload: {
2368
- seen: boolean;
2369
- threadIds: (string & v.Brand<"ThreadId">)[];
2370
- };
2371
- submittedAt: string;
2372
- version: 1;
2373
- }, v.ArrayIssue | v.BooleanIssue | v.IsoTimestampIssue<string> | v.LiteralIssue | v.MaxLengthIssue<string, number> | v.MaxLengthIssue<(string & v.Brand<"ThreadId">)[], 100> | v.MinLengthIssue<(string & v.Brand<"ThreadId">)[], 1> | v.NonEmptyIssue<string> | v.NonOptionalIssue | v.StrictObjectIssue | v.StringIssue | v.UuidIssue<string>>;
2374
- '~types'?: {
2375
- readonly input: {
2376
- accountId: string;
2377
- id: string;
2378
- kind: "thread.seen.set";
2379
- payload: {
2380
- seen: boolean;
2381
- threadIds: string[];
2382
- };
2383
- submittedAt: string;
2384
- version: 1;
2385
- };
2386
- readonly output: {
2387
- accountId: string & v.Brand<"AccountId">;
2388
- id: string & v.Brand<"CommandId">;
2389
- kind: "thread.seen.set";
2390
- payload: {
2391
- seen: boolean;
2392
- threadIds: (string & v.Brand<"ThreadId">)[];
2393
- };
2394
- submittedAt: string;
2395
- version: 1;
2396
- };
2397
- readonly issue: v.ArrayIssue | v.BooleanIssue | v.IsoTimestampIssue<string> | v.LiteralIssue | v.MaxLengthIssue<string, number> | v.MaxLengthIssue<(string & v.Brand<"ThreadId">)[], 100> | v.MinLengthIssue<(string & v.Brand<"ThreadId">)[], 1> | v.NonEmptyIssue<string> | v.NonOptionalIssue | v.StrictObjectIssue | v.StringIssue | v.UuidIssue<string>;
2398
- } | undefined;
2399
- type: 'strict_object';
2400
- reference: typeof v.strictObject;
2401
- expects: 'Object';
2402
- entries: {
2403
- readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
2404
- readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.BrandAction<string, "CommandId">]>;
2405
- readonly kind: v.LiteralSchema<"thread.seen.set", undefined>;
2406
- readonly payload: v.StrictObjectSchema<{
2407
- readonly seen: v.BooleanSchema<undefined>;
2408
- readonly threadIds: v.SchemaWithPipe<readonly [v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>, undefined>, v.MinLengthAction<(string & v.Brand<"ThreadId">)[], 1, undefined>, v.MaxLengthAction<(string & v.Brand<"ThreadId">)[], 100, undefined>]>;
2409
- }, undefined>;
2410
- readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
2411
- readonly version: v.LiteralSchema<1, undefined>;
2412
- };
2413
- message: undefined;
2414
- accountScope: "REQUIRED";
2415
- commandKind: "thread.seen.set";
2416
- payloadSchema: v.StrictObjectSchema<{
2417
- readonly seen: v.BooleanSchema<undefined>;
2418
- readonly threadIds: v.SchemaWithPipe<readonly [v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>, undefined>, v.MinLengthAction<(string & v.Brand<"ThreadId">)[], 1, undefined>, v.MaxLengthAction<(string & v.Brand<"ThreadId">)[], 100, undefined>]>;
2419
- }, undefined>;
2420
- } | {
2421
- kind: 'schema';
2422
- async: false;
2423
- '~standard': v.StandardProps<{
2424
- accountId: string;
2425
- id: string;
2426
- kind: "thread.snooze.set";
2427
- payload: {
2428
- snoozedUntil: string | null;
2429
- threadIds: string[];
2430
- };
2431
- submittedAt: string;
2432
- version: 1;
2433
- }, {
2434
- accountId: string & v.Brand<"AccountId">;
2435
- id: string & v.Brand<"CommandId">;
2436
- kind: "thread.snooze.set";
2437
- payload: {
2438
- snoozedUntil: string | null;
2439
- threadIds: (string & v.Brand<"ThreadId">)[];
2440
- };
2441
- submittedAt: string;
2442
- version: 1;
2443
- }>;
2444
- '~run': (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
2445
- accountId: string & v.Brand<"AccountId">;
2446
- id: string & v.Brand<"CommandId">;
2447
- kind: "thread.snooze.set";
2448
- payload: {
2449
- snoozedUntil: string | null;
2450
- threadIds: (string & v.Brand<"ThreadId">)[];
2451
- };
2452
- submittedAt: string;
2453
- version: 1;
2454
- }, v.ArrayIssue | v.CheckIssue<string> | v.IsoTimestampIssue<string> | v.LiteralIssue | v.MaxLengthIssue<string, number> | v.MaxLengthIssue<(string & v.Brand<"ThreadId">)[], 100> | v.MinLengthIssue<(string & v.Brand<"ThreadId">)[], 1> | v.NonEmptyIssue<string> | v.NonOptionalIssue | v.StrictObjectIssue | v.StringIssue | v.UuidIssue<string>>;
2455
- '~types'?: {
2456
- readonly input: {
2457
- accountId: string;
2458
- id: string;
2459
- kind: "thread.snooze.set";
2460
- payload: {
2461
- snoozedUntil: string | null;
2462
- threadIds: string[];
2463
- };
2464
- submittedAt: string;
2465
- version: 1;
2466
- };
2467
- readonly output: {
2468
- accountId: string & v.Brand<"AccountId">;
2469
- id: string & v.Brand<"CommandId">;
2470
- kind: "thread.snooze.set";
2471
- payload: {
2472
- snoozedUntil: string | null;
2473
- threadIds: (string & v.Brand<"ThreadId">)[];
2474
- };
2475
- submittedAt: string;
2476
- version: 1;
2477
- };
2478
- readonly issue: v.ArrayIssue | v.CheckIssue<string> | v.IsoTimestampIssue<string> | v.LiteralIssue | v.MaxLengthIssue<string, number> | v.MaxLengthIssue<(string & v.Brand<"ThreadId">)[], 100> | v.MinLengthIssue<(string & v.Brand<"ThreadId">)[], 1> | v.NonEmptyIssue<string> | v.NonOptionalIssue | v.StrictObjectIssue | v.StringIssue | v.UuidIssue<string>;
2479
- } | undefined;
2480
- type: 'strict_object';
2481
- reference: typeof v.strictObject;
2482
- expects: 'Object';
2483
- entries: {
2484
- readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
2485
- readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.BrandAction<string, "CommandId">]>;
2486
- readonly kind: v.LiteralSchema<"thread.snooze.set", undefined>;
2487
- readonly payload: v.StrictObjectSchema<{
2488
- readonly snoozedUntil: v.NullableSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.CheckAction<string, undefined>]>, undefined>;
2489
- readonly threadIds: v.SchemaWithPipe<readonly [v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>, undefined>, v.MinLengthAction<(string & v.Brand<"ThreadId">)[], 1, undefined>, v.MaxLengthAction<(string & v.Brand<"ThreadId">)[], 100, undefined>]>;
2490
- }, undefined>;
2491
- readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
2492
- readonly version: v.LiteralSchema<1, undefined>;
2493
- };
2494
- message: undefined;
2495
- accountScope: "REQUIRED";
2496
- commandKind: "thread.snooze.set";
2497
- payloadSchema: v.StrictObjectSchema<{
2498
- readonly snoozedUntil: v.NullableSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.CheckAction<string, undefined>]>, undefined>;
2499
- readonly threadIds: v.SchemaWithPipe<readonly [v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>, undefined>, v.MinLengthAction<(string & v.Brand<"ThreadId">)[], 1, undefined>, v.MaxLengthAction<(string & v.Brand<"ThreadId">)[], 100, undefined>]>;
2500
- }, undefined>;
2501
- } | {
2502
- kind: 'schema';
2503
- async: false;
2504
- '~standard': v.StandardProps<{
2505
- accountId: string;
2506
- id: string;
2507
- kind: "thread.spam.set";
2508
- payload: {
2509
- spam: boolean;
2510
- threadIds: string[];
2511
- };
2512
- submittedAt: string;
2513
- version: 1;
2514
- }, {
2515
- accountId: string & v.Brand<"AccountId">;
2516
- id: string & v.Brand<"CommandId">;
2517
- kind: "thread.spam.set";
2518
- payload: {
2519
- spam: boolean;
2520
- threadIds: (string & v.Brand<"ThreadId">)[];
2521
- };
2522
- submittedAt: string;
2523
- version: 1;
2524
- }>;
2525
- '~run': (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
2526
- accountId: string & v.Brand<"AccountId">;
2527
- id: string & v.Brand<"CommandId">;
2528
- kind: "thread.spam.set";
2529
- payload: {
2530
- spam: boolean;
2531
- threadIds: (string & v.Brand<"ThreadId">)[];
2532
- };
2533
- submittedAt: string;
2534
- version: 1;
2535
- }, v.ArrayIssue | v.BooleanIssue | v.IsoTimestampIssue<string> | v.LiteralIssue | v.MaxLengthIssue<string, number> | v.MaxLengthIssue<(string & v.Brand<"ThreadId">)[], 100> | v.MinLengthIssue<(string & v.Brand<"ThreadId">)[], 1> | v.NonEmptyIssue<string> | v.NonOptionalIssue | v.StrictObjectIssue | v.StringIssue | v.UuidIssue<string>>;
2536
- '~types'?: {
2537
- readonly input: {
2538
- accountId: string;
2539
- id: string;
2540
- kind: "thread.spam.set";
2541
- payload: {
2542
- spam: boolean;
2543
- threadIds: string[];
2544
- };
2545
- submittedAt: string;
2546
- version: 1;
2547
- };
2548
- readonly output: {
2549
- accountId: string & v.Brand<"AccountId">;
2550
- id: string & v.Brand<"CommandId">;
2551
- kind: "thread.spam.set";
2552
- payload: {
2553
- spam: boolean;
2554
- threadIds: (string & v.Brand<"ThreadId">)[];
2555
- };
2556
- submittedAt: string;
2557
- version: 1;
2558
- };
2559
- readonly issue: v.ArrayIssue | v.BooleanIssue | v.IsoTimestampIssue<string> | v.LiteralIssue | v.MaxLengthIssue<string, number> | v.MaxLengthIssue<(string & v.Brand<"ThreadId">)[], 100> | v.MinLengthIssue<(string & v.Brand<"ThreadId">)[], 1> | v.NonEmptyIssue<string> | v.NonOptionalIssue | v.StrictObjectIssue | v.StringIssue | v.UuidIssue<string>;
2560
- } | undefined;
2561
- type: 'strict_object';
2562
- reference: typeof v.strictObject;
2563
- expects: 'Object';
2564
- entries: {
2565
- readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
2566
- readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.BrandAction<string, "CommandId">]>;
2567
- readonly kind: v.LiteralSchema<"thread.spam.set", undefined>;
2568
- readonly payload: v.StrictObjectSchema<{
2569
- readonly spam: v.BooleanSchema<undefined>;
2570
- readonly threadIds: v.SchemaWithPipe<readonly [v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>, undefined>, v.MinLengthAction<(string & v.Brand<"ThreadId">)[], 1, undefined>, v.MaxLengthAction<(string & v.Brand<"ThreadId">)[], 100, undefined>]>;
2571
- }, undefined>;
2572
- readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
2573
- readonly version: v.LiteralSchema<1, undefined>;
2574
- };
2575
- message: undefined;
2576
- accountScope: "REQUIRED";
2577
- commandKind: "thread.spam.set";
2578
- payloadSchema: v.StrictObjectSchema<{
2579
- readonly spam: v.BooleanSchema<undefined>;
2580
- readonly threadIds: v.SchemaWithPipe<readonly [v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>, undefined>, v.MinLengthAction<(string & v.Brand<"ThreadId">)[], 1, undefined>, v.MaxLengthAction<(string & v.Brand<"ThreadId">)[], 100, undefined>]>;
2581
- }, undefined>;
2582
- } | {
2583
- kind: 'schema';
2584
- async: false;
2585
- '~standard': v.StandardProps<{
2586
- accountId: string;
2587
- id: string;
2588
- kind: "thread.trash.set";
2589
- payload: {
2590
- threadIds: string[];
2591
- trashed: boolean;
2592
- };
2593
- submittedAt: string;
2594
- version: 1;
2595
- }, {
2596
- accountId: string & v.Brand<"AccountId">;
2597
- id: string & v.Brand<"CommandId">;
2598
- kind: "thread.trash.set";
2599
- payload: {
2600
- threadIds: (string & v.Brand<"ThreadId">)[];
2601
- trashed: boolean;
2602
- };
2603
- submittedAt: string;
2604
- version: 1;
2605
- }>;
2606
- '~run': (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
2607
- accountId: string & v.Brand<"AccountId">;
2608
- id: string & v.Brand<"CommandId">;
2609
- kind: "thread.trash.set";
2610
- payload: {
2611
- threadIds: (string & v.Brand<"ThreadId">)[];
2612
- trashed: boolean;
2613
- };
2614
- submittedAt: string;
2615
- version: 1;
2616
- }, v.ArrayIssue | v.BooleanIssue | v.IsoTimestampIssue<string> | v.LiteralIssue | v.MaxLengthIssue<string, number> | v.MaxLengthIssue<(string & v.Brand<"ThreadId">)[], 100> | v.MinLengthIssue<(string & v.Brand<"ThreadId">)[], 1> | v.NonEmptyIssue<string> | v.NonOptionalIssue | v.StrictObjectIssue | v.StringIssue | v.UuidIssue<string>>;
2617
- '~types'?: {
2618
- readonly input: {
2619
- accountId: string;
2620
- id: string;
2621
- kind: "thread.trash.set";
2622
- payload: {
2623
- threadIds: string[];
2624
- trashed: boolean;
2625
- };
2626
- submittedAt: string;
2627
- version: 1;
2628
- };
2629
- readonly output: {
2630
- accountId: string & v.Brand<"AccountId">;
2631
- id: string & v.Brand<"CommandId">;
2632
- kind: "thread.trash.set";
2633
- payload: {
2634
- threadIds: (string & v.Brand<"ThreadId">)[];
2635
- trashed: boolean;
2636
- };
2637
- submittedAt: string;
2638
- version: 1;
2639
- };
2640
- readonly issue: v.ArrayIssue | v.BooleanIssue | v.IsoTimestampIssue<string> | v.LiteralIssue | v.MaxLengthIssue<string, number> | v.MaxLengthIssue<(string & v.Brand<"ThreadId">)[], 100> | v.MinLengthIssue<(string & v.Brand<"ThreadId">)[], 1> | v.NonEmptyIssue<string> | v.NonOptionalIssue | v.StrictObjectIssue | v.StringIssue | v.UuidIssue<string>;
2641
- } | undefined;
2642
- type: 'strict_object';
2643
- reference: typeof v.strictObject;
2644
- expects: 'Object';
2645
- entries: {
2646
- readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
2647
- readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.BrandAction<string, "CommandId">]>;
2648
- readonly kind: v.LiteralSchema<"thread.trash.set", undefined>;
2649
- readonly payload: v.StrictObjectSchema<{
2650
- readonly threadIds: v.SchemaWithPipe<readonly [v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>, undefined>, v.MinLengthAction<(string & v.Brand<"ThreadId">)[], 1, undefined>, v.MaxLengthAction<(string & v.Brand<"ThreadId">)[], 100, undefined>]>;
2651
- readonly trashed: v.BooleanSchema<undefined>;
2652
- }, undefined>;
2653
- readonly submittedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
2654
- readonly version: v.LiteralSchema<1, undefined>;
2655
- };
2656
- message: undefined;
2657
- accountScope: "REQUIRED";
2658
- commandKind: "thread.trash.set";
2659
- payloadSchema: v.StrictObjectSchema<{
2660
- readonly threadIds: v.SchemaWithPipe<readonly [v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>, undefined>, v.MinLengthAction<(string & v.Brand<"ThreadId">)[], 1, undefined>, v.MaxLengthAction<(string & v.Brand<"ThreadId">)[], 100, undefined>]>;
2661
- readonly trashed: v.BooleanSchema<undefined>;
2662
- }, undefined>;
2663
- })[], undefined>;
2664
- responseSchema: v.VariantSchema<"state", readonly [v.StrictObjectSchema<{
2665
- readonly canonicalRevision: v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
2666
- readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.BrandAction<string, "CommandId">]>;
2667
- readonly error: v.NullSchema<undefined>;
2668
- readonly state: v.LiteralSchema<"ACCEPTED", undefined>;
2669
- }, undefined>, v.StrictObjectSchema<{
2670
- readonly canonicalRevision: v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
2671
- readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.BrandAction<string, "CommandId">]>;
2672
- readonly error: v.NullSchema<undefined>;
2673
- readonly state: v.LiteralSchema<"RUNNING", undefined>;
2674
- }, undefined>, v.StrictObjectSchema<{
2675
- readonly canonicalRevision: v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
2676
- readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.BrandAction<string, "CommandId">]>;
2677
- readonly error: v.NullSchema<undefined>;
2678
- readonly state: v.LiteralSchema<"SUCCEEDED", undefined>;
2679
- }, undefined>, v.StrictObjectSchema<{
2680
- readonly canonicalRevision: v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
2681
- readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>, v.BrandAction<string, "CommandId">]>;
2682
- readonly error: v.StrictObjectSchema<{
2683
- readonly code: v.PicklistSchema<readonly ["AUTHENTICATION_FAILED", "AUTHORIZATION_FAILED", "COMMAND_CONFLICT", "COMMAND_NOT_FOUND", "INVALID_COMMAND", "PROVIDER_REJECTED", "TRANSIENT_FAILURE", "INTERNAL_ERROR"], undefined>;
2684
- readonly retryable: v.BooleanSchema<undefined>;
2685
- }, undefined>;
2686
- readonly state: v.LiteralSchema<"FAILED", undefined>;
2687
- }, undefined>], undefined>;
2688
- errorSchema: v.StrictObjectSchema<{
2689
- readonly code: v.PicklistSchema<readonly ["AUTHENTICATION_FAILED", "AUTHORIZATION_FAILED", "CONFLICT", "INVALID_REQUEST", "NOT_FOUND", "PROVIDER_REJECTED", "TRANSIENT_FAILURE", "INTERNAL_ERROR"], undefined>;
2690
- readonly retryable: v.BooleanSchema<undefined>;
2691
- }, undefined>;
2692
- };
2693
- readonly oauthWebhook: {
2694
- context: "webhook";
2695
- method: "GET";
2696
- path: "/v1/wh/oauth/callback";
2697
- requestSchema: v.ObjectSchema<{
2698
- readonly code: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
2699
- readonly state: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
2700
- }, undefined>;
2701
- responseSchema: v.StrictObjectSchema<{
2702
- readonly state: v.LiteralSchema<"COMPLETED", undefined>;
2703
- }, undefined>;
2704
- errorSchema: v.StrictObjectSchema<{
2705
- readonly code: v.PicklistSchema<readonly ["AUTHENTICATION_FAILED", "AUTHORIZATION_FAILED", "CONFLICT", "INVALID_REQUEST", "NOT_FOUND", "PROVIDER_REJECTED", "TRANSIENT_FAILURE", "INTERNAL_ERROR"], undefined>;
2706
- readonly retryable: v.BooleanSchema<undefined>;
2707
- }, undefined>;
2708
- };
2709
- readonly pollsRun: {
2710
- context: "internal";
2711
- method: "POST";
2712
- path: "/polls/run";
2713
- requestSchema: v.StrictObjectSchema<{
2714
- readonly scheduledFor: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, v.CheckAction<string, undefined>]>;
2715
- readonly shardId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 36, undefined>, v.RegexAction<string, undefined>]>;
2716
- }, undefined>;
2717
- responseSchema: v.StrictObjectSchema<{
2718
- readonly state: v.LiteralSchema<"COMPLETED", undefined>;
2719
- }, undefined>;
2720
- errorSchema: v.StrictObjectSchema<{
2721
- readonly code: v.PicklistSchema<readonly ["AUTHENTICATION_FAILED", "AUTHORIZATION_FAILED", "CONFLICT", "INVALID_REQUEST", "NOT_FOUND", "PROVIDER_REJECTED", "TRANSIENT_FAILURE", "INTERNAL_ERROR"], undefined>;
2722
- readonly retryable: v.BooleanSchema<undefined>;
2723
- }, undefined>;
2724
- };
2725
- readonly profileEnsure: {
2726
- context: "authenticated";
2727
- method: "POST";
2728
- path: "/profile/ensure";
2729
- requestSchema: v.StrictObjectSchema<{}, undefined>;
2730
- responseSchema: v.StrictObjectSchema<{
2731
- readonly created: v.BooleanSchema<undefined>;
2732
- }, undefined>;
2733
- errorSchema: v.StrictObjectSchema<{
2734
- readonly code: v.PicklistSchema<readonly ["AUTHENTICATION_FAILED", "AUTHORIZATION_FAILED", "CONFLICT", "INVALID_REQUEST", "NOT_FOUND", "PROVIDER_REJECTED", "TRANSIENT_FAILURE", "INTERNAL_ERROR"], undefined>;
2735
- readonly retryable: v.BooleanSchema<undefined>;
2736
- }, undefined>;
2737
- };
2738
- readonly pushTokens: {
2739
- context: "authenticated";
2740
- method: "POST";
2741
- path: "/push-tokens";
2742
- requestSchema: v.StrictObjectSchema<{
2743
- readonly operation: v.PicklistSchema<["REGISTER", "REMOVE"], undefined>;
2744
- readonly token: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
2745
- }, undefined>;
2746
- responseSchema: v.StrictObjectSchema<{
2747
- readonly registered: v.BooleanSchema<undefined>;
2748
- }, undefined>;
2749
- errorSchema: v.StrictObjectSchema<{
2750
- readonly code: v.PicklistSchema<readonly ["AUTHENTICATION_FAILED", "AUTHORIZATION_FAILED", "CONFLICT", "INVALID_REQUEST", "NOT_FOUND", "PROVIDER_REJECTED", "TRANSIENT_FAILURE", "INTERNAL_ERROR"], undefined>;
2751
- readonly retryable: v.BooleanSchema<undefined>;
2752
- }, undefined>;
2753
- };
2754
- };
2755
- };
2756
- readonly errorCodes: readonly ["AUTHENTICATION_FAILED", "AUTHORIZATION_FAILED", "CONFLICT", "INVALID_REQUEST", "NOT_FOUND", "PROVIDER_REJECTED", "TRANSIENT_FAILURE", "INTERNAL_ERROR"];
2757
- readonly errorSchema: v.StrictObjectSchema<{
2758
- readonly code: v.PicklistSchema<readonly ["AUTHENTICATION_FAILED", "AUTHORIZATION_FAILED", "CONFLICT", "INVALID_REQUEST", "NOT_FOUND", "PROVIDER_REJECTED", "TRANSIENT_FAILURE", "INTERNAL_ERROR"], undefined>;
2759
- readonly retryable: v.BooleanSchema<undefined>;
2760
- }, undefined>;
2761
- readonly worker: {
2762
- readonly id: "marco-worker";
2763
- readonly routes: {
2764
- readonly jobsRun: {
2765
- context: "internal";
2766
- method: "POST";
2767
- path: "/jobs/run";
2768
- requestSchema: v.StrictObjectSchema<{
2769
- readonly jobId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "JobId">]>, undefined>;
2770
- }, undefined>;
2771
- responseSchema: v.StrictObjectSchema<{
2772
- readonly state: v.LiteralSchema<"COMPLETED", undefined>;
2773
- }, undefined>;
2774
- errorSchema: v.StrictObjectSchema<{
2775
- readonly code: v.PicklistSchema<readonly ["AUTHENTICATION_FAILED", "AUTHORIZATION_FAILED", "CONFLICT", "INVALID_REQUEST", "NOT_FOUND", "PROVIDER_REJECTED", "TRANSIENT_FAILURE", "INTERNAL_ERROR"], undefined>;
2776
- readonly retryable: v.BooleanSchema<undefined>;
2777
- }, undefined>;
2778
- };
2779
- readonly supervisor: {
2780
- context: "internal";
2781
- method: "POST";
2782
- path: "/";
2783
- requestSchema: v.StrictObjectSchema<{}, undefined>;
2784
- responseSchema: v.StrictObjectSchema<{
2785
- readonly state: v.LiteralSchema<"COMPLETED", undefined>;
2786
- }, undefined>;
2787
- errorSchema: v.StrictObjectSchema<{
2788
- readonly code: v.PicklistSchema<readonly ["AUTHENTICATION_FAILED", "AUTHORIZATION_FAILED", "CONFLICT", "INVALID_REQUEST", "NOT_FOUND", "PROVIDER_REJECTED", "TRANSIENT_FAILURE", "INTERNAL_ERROR"], undefined>;
2789
- readonly retryable: v.BooleanSchema<undefined>;
2790
- }, undefined>;
2791
- };
2792
- };
2793
- };
2794
- };
2795
- export type AppwriteFunctionError = v.InferOutput<typeof appwriteFunctions.errorSchema>;
2796
- export type { AppwriteFunctionContext };
2797
- export type AppwriteFunctionName = 'api' | 'worker';
2798
- export type AppwriteFunctionRouteName<TFunction extends AppwriteFunctionName> = TFunction extends AppwriteFunctionName ? keyof (typeof appwriteFunctions)[TFunction]['routes'] : never;
2799
- export type AppwriteFunctionRoute<TFunction extends AppwriteFunctionName, TRoute extends AppwriteFunctionRouteName<TFunction>> = TFunction extends AppwriteFunctionName ? TRoute extends keyof (typeof appwriteFunctions)[TFunction]['routes'] ? (typeof appwriteFunctions)[TFunction]['routes'][TRoute] : never : never;
2800
- export type AppwriteFunctionRequest<TFunction extends AppwriteFunctionName, TRoute extends AppwriteFunctionRouteName<TFunction>> = AppwriteFunctionRoute<TFunction, TRoute> extends {
2801
- requestSchema: infer TSchema extends v.GenericSchema;
2802
- } ? v.InferOutput<TSchema> : never;
2803
- export type AppwriteFunctionResponse<TFunction extends AppwriteFunctionName, TRoute extends AppwriteFunctionRouteName<TFunction>> = AppwriteFunctionRoute<TFunction, TRoute> extends {
2804
- responseSchema: infer TSchema extends v.GenericSchema;
2805
- } ? v.InferOutput<TSchema> : never;
2806
- //# sourceMappingURL=functions.d.ts.map