@leaflow/sdk 0.0.0-dev.437.gc278ab8 → 0.0.0-dev.441.gdbb8c45

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 (324) hide show
  1. package/dist/assistant/v1/generated/functions.d.ts +25 -58
  2. package/dist/assistant/v1/generated/functions.js +16 -54
  3. package/dist/assistant/v1/generated/models.d.ts +3 -105
  4. package/dist/assistant/v1/generated/models.js +0 -25
  5. package/dist/assistant/v1/generated/schemas.zod.d.ts +11 -12
  6. package/dist/assistant/v1/generated/schemas.zod.js +14 -12
  7. package/dist/assistant/v1/generated/validators/answerQuestionRequestBody.zod.d.ts +3 -2
  8. package/dist/assistant/v1/generated/validators/answerQuestionRequestBody.zod.js +3 -2
  9. package/dist/assistant/v1/generated/validators/approvalMode.zod.d.ts +3 -2
  10. package/dist/assistant/v1/generated/validators/approvalMode.zod.js +3 -2
  11. package/dist/assistant/v1/generated/validators/attachmentResource.zod.d.ts +3 -2
  12. package/dist/assistant/v1/generated/validators/attachmentResource.zod.js +3 -2
  13. package/dist/assistant/v1/generated/validators/bindingCodeResponseBody.zod.d.ts +3 -2
  14. package/dist/assistant/v1/generated/validators/bindingCodeResponseBody.zod.js +3 -2
  15. package/dist/assistant/v1/generated/validators/bindingResource.zod.d.ts +3 -2
  16. package/dist/assistant/v1/generated/validators/bindingResource.zod.js +3 -2
  17. package/dist/assistant/v1/generated/validators/channelResource.zod.d.ts +3 -2
  18. package/dist/assistant/v1/generated/validators/channelResource.zod.js +3 -2
  19. package/dist/assistant/v1/generated/validators/channelWithSecretResponseBody.zod.d.ts +3 -2
  20. package/dist/assistant/v1/generated/validators/channelWithSecretResponseBody.zod.js +3 -2
  21. package/dist/assistant/v1/generated/validators/checkSenderParams.zod.d.ts +3 -2
  22. package/dist/assistant/v1/generated/validators/checkSenderParams.zod.js +3 -2
  23. package/dist/assistant/v1/generated/validators/choiceResource.zod.d.ts +3 -2
  24. package/dist/assistant/v1/generated/validators/choiceResource.zod.js +3 -2
  25. package/dist/assistant/v1/generated/validators/clientActionRequest.zod.d.ts +3 -2
  26. package/dist/assistant/v1/generated/validators/clientActionRequest.zod.js +3 -2
  27. package/dist/assistant/v1/generated/validators/clientContextPart.zod.d.ts +3 -2
  28. package/dist/assistant/v1/generated/validators/clientContextPart.zod.js +3 -2
  29. package/dist/assistant/v1/generated/validators/clientContextRequest.zod.d.ts +3 -2
  30. package/dist/assistant/v1/generated/validators/clientContextRequest.zod.js +3 -2
  31. package/dist/assistant/v1/generated/validators/clientFunctionRequest.zod.d.ts +3 -2
  32. package/dist/assistant/v1/generated/validators/clientFunctionRequest.zod.js +3 -2
  33. package/dist/assistant/v1/generated/validators/completeUploadRequestBody.zod.d.ts +3 -2
  34. package/dist/assistant/v1/generated/validators/completeUploadRequestBody.zod.js +3 -2
  35. package/dist/assistant/v1/generated/validators/contextUsageResource.zod.d.ts +3 -2
  36. package/dist/assistant/v1/generated/validators/contextUsageResource.zod.js +3 -2
  37. package/dist/assistant/v1/generated/validators/createChannelRequestBody.zod.d.ts +3 -2
  38. package/dist/assistant/v1/generated/validators/createChannelRequestBody.zod.js +3 -2
  39. package/dist/assistant/v1/generated/validators/createFolderRequestBody.zod.d.ts +3 -2
  40. package/dist/assistant/v1/generated/validators/createFolderRequestBody.zod.js +3 -2
  41. package/dist/assistant/v1/generated/validators/createTaskRequestBody.zod.d.ts +3 -2
  42. package/dist/assistant/v1/generated/validators/createTaskRequestBody.zod.js +3 -2
  43. package/dist/assistant/v1/generated/validators/createThreadRequestBody.zod.d.ts +3 -2
  44. package/dist/assistant/v1/generated/validators/createThreadRequestBody.zod.js +3 -2
  45. package/dist/assistant/v1/generated/validators/createThreadResponseBody.zod.d.ts +3 -2
  46. package/dist/assistant/v1/generated/validators/createThreadResponseBody.zod.js +3 -2
  47. package/dist/assistant/v1/generated/validators/createUploadRequestBody.zod.d.ts +3 -2
  48. package/dist/assistant/v1/generated/validators/createUploadRequestBody.zod.js +3 -2
  49. package/dist/assistant/v1/generated/validators/credentialFieldResource.zod.d.ts +3 -2
  50. package/dist/assistant/v1/generated/validators/credentialFieldResource.zod.js +3 -2
  51. package/dist/assistant/v1/generated/validators/cursorPagination.zod.d.ts +3 -2
  52. package/dist/assistant/v1/generated/validators/cursorPagination.zod.js +3 -2
  53. package/dist/assistant/v1/generated/validators/decideToolCallsRequestBody.zod.d.ts +3 -2
  54. package/dist/assistant/v1/generated/validators/decideToolCallsRequestBody.zod.js +3 -2
  55. package/dist/assistant/v1/generated/validators/defaultModelResource.zod.d.ts +3 -2
  56. package/dist/assistant/v1/generated/validators/defaultModelResource.zod.js +3 -2
  57. package/dist/assistant/v1/generated/validators/error.zod.d.ts +3 -2
  58. package/dist/assistant/v1/generated/validators/error.zod.js +3 -2
  59. package/dist/assistant/v1/generated/validators/errorStatus.zod.d.ts +3 -2
  60. package/dist/assistant/v1/generated/validators/errorStatus.zod.js +3 -2
  61. package/dist/assistant/v1/generated/validators/fieldViolation.zod.d.ts +3 -2
  62. package/dist/assistant/v1/generated/validators/fieldViolation.zod.js +3 -2
  63. package/dist/assistant/v1/generated/validators/fileDiffResource.zod.d.ts +3 -2
  64. package/dist/assistant/v1/generated/validators/fileDiffResource.zod.js +3 -2
  65. package/dist/assistant/v1/generated/validators/folderCountsResource.zod.d.ts +3 -2
  66. package/dist/assistant/v1/generated/validators/folderCountsResource.zod.js +3 -2
  67. package/dist/assistant/v1/generated/validators/folderListResponseBody.zod.d.ts +3 -2
  68. package/dist/assistant/v1/generated/validators/folderListResponseBody.zod.js +3 -2
  69. package/dist/assistant/v1/generated/validators/folderResource.zod.d.ts +3 -2
  70. package/dist/assistant/v1/generated/validators/folderResource.zod.js +3 -2
  71. package/dist/assistant/v1/generated/validators/itemSourceResource.zod.d.ts +3 -2
  72. package/dist/assistant/v1/generated/validators/itemSourceResource.zod.js +3 -2
  73. package/dist/assistant/v1/generated/validators/lastTurnResource.zod.d.ts +3 -2
  74. package/dist/assistant/v1/generated/validators/lastTurnResource.zod.js +3 -2
  75. package/dist/assistant/v1/generated/validators/lengthAwarePageBindingResource.zod.d.ts +3 -2
  76. package/dist/assistant/v1/generated/validators/lengthAwarePageBindingResource.zod.js +3 -2
  77. package/dist/assistant/v1/generated/validators/lengthAwarePageChannelResource.zod.d.ts +3 -2
  78. package/dist/assistant/v1/generated/validators/lengthAwarePageChannelResource.zod.js +3 -2
  79. package/dist/assistant/v1/generated/validators/listBindingsParams.zod.d.ts +3 -2
  80. package/dist/assistant/v1/generated/validators/listBindingsParams.zod.js +3 -2
  81. package/dist/assistant/v1/generated/validators/listChannelRejectionsParams.zod.d.ts +3 -2
  82. package/dist/assistant/v1/generated/validators/listChannelRejectionsParams.zod.js +3 -2
  83. package/dist/assistant/v1/generated/validators/listChannelsParams.zod.d.ts +3 -2
  84. package/dist/assistant/v1/generated/validators/listChannelsParams.zod.js +3 -2
  85. package/dist/assistant/v1/generated/validators/listTaskRunsParams.zod.d.ts +3 -2
  86. package/dist/assistant/v1/generated/validators/listTaskRunsParams.zod.js +3 -2
  87. package/dist/assistant/v1/generated/validators/listThreadItemsParams.zod.d.ts +3 -2
  88. package/dist/assistant/v1/generated/validators/listThreadItemsParams.zod.js +3 -2
  89. package/dist/assistant/v1/generated/validators/listThreadMessagesParams.zod.d.ts +3 -2
  90. package/dist/assistant/v1/generated/validators/listThreadMessagesParams.zod.js +3 -2
  91. package/dist/assistant/v1/generated/validators/listThreadTurnsParams.zod.d.ts +3 -2
  92. package/dist/assistant/v1/generated/validators/listThreadTurnsParams.zod.js +3 -2
  93. package/dist/assistant/v1/generated/validators/loginResource.zod.d.ts +3 -2
  94. package/dist/assistant/v1/generated/validators/loginResource.zod.js +3 -2
  95. package/dist/assistant/v1/generated/validators/memoryListResponseBody.zod.d.ts +3 -2
  96. package/dist/assistant/v1/generated/validators/memoryListResponseBody.zod.js +3 -2
  97. package/dist/assistant/v1/generated/validators/memoryResource.zod.d.ts +3 -2
  98. package/dist/assistant/v1/generated/validators/memoryResource.zod.js +3 -2
  99. package/dist/assistant/v1/generated/validators/messagePart.zod.d.ts +3 -2
  100. package/dist/assistant/v1/generated/validators/messagePart.zod.js +3 -2
  101. package/dist/assistant/v1/generated/validators/moveFolderRequestBody.zod.d.ts +3 -2
  102. package/dist/assistant/v1/generated/validators/moveFolderRequestBody.zod.js +3 -2
  103. package/dist/assistant/v1/generated/validators/offsetPagination.zod.d.ts +3 -2
  104. package/dist/assistant/v1/generated/validators/offsetPagination.zod.js +3 -2
  105. package/dist/assistant/v1/generated/validators/partResource.zod.d.ts +3 -2
  106. package/dist/assistant/v1/generated/validators/partResource.zod.js +3 -2
  107. package/dist/assistant/v1/generated/validators/pendingActionResource.zod.d.ts +3 -2
  108. package/dist/assistant/v1/generated/validators/pendingActionResource.zod.js +3 -2
  109. package/dist/assistant/v1/generated/validators/placeThreadRequestBody.zod.d.ts +3 -2
  110. package/dist/assistant/v1/generated/validators/placeThreadRequestBody.zod.js +3 -2
  111. package/dist/assistant/v1/generated/validators/platformListResponseBody.zod.d.ts +3 -2
  112. package/dist/assistant/v1/generated/validators/platformListResponseBody.zod.js +3 -2
  113. package/dist/assistant/v1/generated/validators/platformResource.zod.d.ts +3 -2
  114. package/dist/assistant/v1/generated/validators/platformResource.zod.js +3 -2
  115. package/dist/assistant/v1/generated/validators/presentationResource.zod.d.ts +3 -2
  116. package/dist/assistant/v1/generated/validators/presentationResource.zod.js +3 -2
  117. package/dist/assistant/v1/generated/validators/putUploadPartHeaders.zod.d.ts +3 -2
  118. package/dist/assistant/v1/generated/validators/putUploadPartHeaders.zod.js +3 -2
  119. package/dist/assistant/v1/generated/validators/putUploadPartParams.zod.d.ts +3 -2
  120. package/dist/assistant/v1/generated/validators/putUploadPartParams.zod.js +3 -2
  121. package/dist/assistant/v1/generated/validators/questionResource.zod.d.ts +3 -2
  122. package/dist/assistant/v1/generated/validators/questionResource.zod.js +3 -2
  123. package/dist/assistant/v1/generated/validators/reasoningEffort.zod.d.ts +3 -2
  124. package/dist/assistant/v1/generated/validators/reasoningEffort.zod.js +3 -2
  125. package/dist/assistant/v1/generated/validators/rejectionListResponseBody.zod.d.ts +3 -2
  126. package/dist/assistant/v1/generated/validators/rejectionListResponseBody.zod.js +3 -2
  127. package/dist/assistant/v1/generated/validators/rejectionResource.zod.d.ts +3 -2
  128. package/dist/assistant/v1/generated/validators/rejectionResource.zod.js +3 -2
  129. package/dist/assistant/v1/generated/validators/resumeThreadRequestBody.zod.d.ts +3 -2
  130. package/dist/assistant/v1/generated/validators/resumeThreadRequestBody.zod.js +3 -2
  131. package/dist/assistant/v1/generated/validators/revertRequestBody.zod.d.ts +3 -2
  132. package/dist/assistant/v1/generated/validators/revertRequestBody.zod.js +3 -2
  133. package/dist/assistant/v1/generated/validators/revertedCountResponseBody.zod.d.ts +3 -2
  134. package/dist/assistant/v1/generated/validators/revertedCountResponseBody.zod.js +3 -2
  135. package/dist/assistant/v1/generated/validators/rotateSecretRequestBody.zod.d.ts +3 -2
  136. package/dist/assistant/v1/generated/validators/rotateSecretRequestBody.zod.js +3 -2
  137. package/dist/assistant/v1/generated/validators/searchTasksRequestBody.zod.d.ts +3 -2
  138. package/dist/assistant/v1/generated/validators/searchTasksRequestBody.zod.js +3 -2
  139. package/dist/assistant/v1/generated/validators/searchThreadsRequestBody.zod.d.ts +3 -2
  140. package/dist/assistant/v1/generated/validators/searchThreadsRequestBody.zod.js +3 -2
  141. package/dist/assistant/v1/generated/validators/sendMessageRequestBody.zod.d.ts +3 -2
  142. package/dist/assistant/v1/generated/validators/sendMessageRequestBody.zod.js +3 -2
  143. package/dist/assistant/v1/generated/validators/sendMessageResponseBody.zod.d.ts +3 -2
  144. package/dist/assistant/v1/generated/validators/sendMessageResponseBody.zod.js +3 -2
  145. package/dist/assistant/v1/generated/validators/senderCheckResource.zod.d.ts +3 -2
  146. package/dist/assistant/v1/generated/validators/senderCheckResource.zod.js +3 -2
  147. package/dist/assistant/v1/generated/validators/settingsResource.zod.d.ts +3 -2
  148. package/dist/assistant/v1/generated/validators/settingsResource.zod.js +3 -2
  149. package/dist/assistant/v1/generated/validators/skillEnabledRequestBody.zod.d.ts +3 -2
  150. package/dist/assistant/v1/generated/validators/skillEnabledRequestBody.zod.js +3 -2
  151. package/dist/assistant/v1/generated/validators/skillListResponseBody.zod.d.ts +3 -2
  152. package/dist/assistant/v1/generated/validators/skillListResponseBody.zod.js +3 -2
  153. package/dist/assistant/v1/generated/validators/skillRequestBody.zod.d.ts +3 -2
  154. package/dist/assistant/v1/generated/validators/skillRequestBody.zod.js +3 -2
  155. package/dist/assistant/v1/generated/validators/skillResource.zod.d.ts +3 -2
  156. package/dist/assistant/v1/generated/validators/skillResource.zod.js +3 -2
  157. package/dist/assistant/v1/generated/validators/subagentCountResource.zod.d.ts +3 -2
  158. package/dist/assistant/v1/generated/validators/subagentCountResource.zod.js +3 -2
  159. package/dist/assistant/v1/generated/validators/taskAction.zod.d.ts +3 -2
  160. package/dist/assistant/v1/generated/validators/taskAction.zod.js +3 -2
  161. package/dist/assistant/v1/generated/validators/taskListResponseBody.zod.d.ts +3 -2
  162. package/dist/assistant/v1/generated/validators/taskListResponseBody.zod.js +3 -2
  163. package/dist/assistant/v1/generated/validators/taskResource.zod.d.ts +3 -2
  164. package/dist/assistant/v1/generated/validators/taskResource.zod.js +3 -2
  165. package/dist/assistant/v1/generated/validators/taskRunListResponseBody.zod.d.ts +3 -2
  166. package/dist/assistant/v1/generated/validators/taskRunListResponseBody.zod.js +3 -2
  167. package/dist/assistant/v1/generated/validators/taskRunResource.zod.d.ts +3 -2
  168. package/dist/assistant/v1/generated/validators/taskRunResource.zod.js +3 -2
  169. package/dist/assistant/v1/generated/validators/taskTrigger.zod.d.ts +3 -2
  170. package/dist/assistant/v1/generated/validators/taskTrigger.zod.js +3 -2
  171. package/dist/assistant/v1/generated/validators/threadCountsResource.zod.d.ts +3 -2
  172. package/dist/assistant/v1/generated/validators/threadCountsResource.zod.js +3 -2
  173. package/dist/assistant/v1/generated/validators/threadItemListResponseBody.zod.d.ts +3 -2
  174. package/dist/assistant/v1/generated/validators/threadItemListResponseBody.zod.js +3 -2
  175. package/dist/assistant/v1/generated/validators/threadItemResource.zod.d.ts +3 -2
  176. package/dist/assistant/v1/generated/validators/threadItemResource.zod.js +3 -2
  177. package/dist/assistant/v1/generated/validators/threadListResponseBody.zod.d.ts +3 -2
  178. package/dist/assistant/v1/generated/validators/threadListResponseBody.zod.js +3 -2
  179. package/dist/assistant/v1/generated/validators/threadMessageListResponseBody.zod.d.ts +3 -2
  180. package/dist/assistant/v1/generated/validators/threadMessageListResponseBody.zod.js +3 -2
  181. package/dist/assistant/v1/generated/validators/threadMessageResource.zod.d.ts +3 -2
  182. package/dist/assistant/v1/generated/validators/threadMessageResource.zod.js +3 -2
  183. package/dist/assistant/v1/generated/validators/threadResource.zod.d.ts +3 -2
  184. package/dist/assistant/v1/generated/validators/threadResource.zod.js +3 -2
  185. package/dist/assistant/v1/generated/validators/threadStatus.zod.d.ts +3 -2
  186. package/dist/assistant/v1/generated/validators/threadStatus.zod.js +3 -2
  187. package/dist/assistant/v1/generated/validators/threadTurnListResponseBody.zod.d.ts +3 -2
  188. package/dist/assistant/v1/generated/validators/threadTurnListResponseBody.zod.js +3 -2
  189. package/dist/assistant/v1/generated/validators/threadTurnResource.zod.d.ts +3 -2
  190. package/dist/assistant/v1/generated/validators/threadTurnResource.zod.js +3 -2
  191. package/dist/assistant/v1/generated/validators/todoResource.zod.d.ts +3 -2
  192. package/dist/assistant/v1/generated/validators/todoResource.zod.js +3 -2
  193. package/dist/assistant/v1/generated/validators/toolCallResource.zod.d.ts +3 -2
  194. package/dist/assistant/v1/generated/validators/toolCallResource.zod.js +3 -2
  195. package/dist/assistant/v1/generated/validators/toolResultRequestBody.zod.d.ts +3 -2
  196. package/dist/assistant/v1/generated/validators/toolResultRequestBody.zod.js +3 -2
  197. package/dist/assistant/v1/generated/validators/turnStartedResponseBody.zod.d.ts +3 -2
  198. package/dist/assistant/v1/generated/validators/turnStartedResponseBody.zod.js +3 -2
  199. package/dist/assistant/v1/generated/validators/turnStatus.zod.d.ts +3 -2
  200. package/dist/assistant/v1/generated/validators/turnStatus.zod.js +3 -2
  201. package/dist/assistant/v1/generated/validators/turnType.zod.d.ts +3 -2
  202. package/dist/assistant/v1/generated/validators/turnType.zod.js +3 -2
  203. package/dist/assistant/v1/generated/validators/updateChannelRequestBody.zod.d.ts +3 -2
  204. package/dist/assistant/v1/generated/validators/updateChannelRequestBody.zod.js +3 -2
  205. package/dist/assistant/v1/generated/validators/updateFolderRequestBody.zod.d.ts +3 -2
  206. package/dist/assistant/v1/generated/validators/updateFolderRequestBody.zod.js +3 -2
  207. package/dist/assistant/v1/generated/validators/updateSettingsRequestBody.zod.d.ts +3 -2
  208. package/dist/assistant/v1/generated/validators/updateSettingsRequestBody.zod.js +3 -2
  209. package/dist/assistant/v1/generated/validators/updateTaskRequestBody.zod.d.ts +3 -2
  210. package/dist/assistant/v1/generated/validators/updateTaskRequestBody.zod.js +3 -2
  211. package/dist/assistant/v1/generated/validators/updateThreadRequestBody.zod.d.ts +3 -2
  212. package/dist/assistant/v1/generated/validators/updateThreadRequestBody.zod.js +3 -2
  213. package/dist/assistant/v1/generated/validators/updateUploadRequestBody.zod.d.ts +3 -2
  214. package/dist/assistant/v1/generated/validators/updateUploadRequestBody.zod.js +3 -2
  215. package/dist/assistant/v1/generated/validators/uploadAttachmentParams.zod.d.ts +3 -2
  216. package/dist/assistant/v1/generated/validators/uploadAttachmentParams.zod.js +3 -2
  217. package/dist/assistant/v1/generated/validators/uploadConfigurationResource.zod.d.ts +3 -2
  218. package/dist/assistant/v1/generated/validators/uploadConfigurationResource.zod.js +3 -2
  219. package/dist/assistant/v1/generated/validators/uploadListResponseBody.zod.d.ts +3 -2
  220. package/dist/assistant/v1/generated/validators/uploadListResponseBody.zod.js +3 -2
  221. package/dist/assistant/v1/generated/validators/uploadPartResource.zod.d.ts +3 -2
  222. package/dist/assistant/v1/generated/validators/uploadPartResource.zod.js +3 -2
  223. package/dist/assistant/v1/generated/validators/uploadResource.zod.d.ts +3 -2
  224. package/dist/assistant/v1/generated/validators/uploadResource.zod.js +3 -2
  225. package/dist/assistant/v1/generated/validators/uploadedResource.zod.d.ts +3 -2
  226. package/dist/assistant/v1/generated/validators/uploadedResource.zod.js +3 -2
  227. package/dist/assistant/v1/generated/validators/usage.zod.d.ts +3 -2
  228. package/dist/assistant/v1/generated/validators/usage.zod.js +3 -2
  229. package/dist/assistant/v1/generated/validators/verifyCodeRequestBody.zod.d.ts +3 -2
  230. package/dist/assistant/v1/generated/validators/verifyCodeRequestBody.zod.js +3 -2
  231. package/dist/assistant/v1/generated/validators/webhookSecretResponseBody.zod.d.ts +3 -2
  232. package/dist/assistant/v1/generated/validators/webhookSecretResponseBody.zod.js +3 -2
  233. package/dist/eventbus/v1/generated/functions.d.ts +316 -41
  234. package/dist/eventbus/v1/generated/functions.js +202 -16
  235. package/dist/eventbus/v1/generated/models.d.ts +230 -26
  236. package/dist/eventbus/v1/generated/models.js +4 -0
  237. package/dist/eventbus/v1/generated/schemas.zod.d.ts +163 -30
  238. package/dist/eventbus/v1/generated/schemas.zod.js +173 -32
  239. package/dist/eventbus/v1/generated/validators/createEventRequest.zod.d.ts +58 -14
  240. package/dist/eventbus/v1/generated/validators/createEventRequest.zod.js +58 -14
  241. package/dist/eventbus/v1/generated/validators/createNamespaceRequest.zod.d.ts +93 -0
  242. package/dist/eventbus/v1/generated/validators/createNamespaceRequest.zod.js +98 -0
  243. package/dist/eventbus/v1/generated/validators/createVersionRequest.zod.d.ts +58 -14
  244. package/dist/eventbus/v1/generated/validators/createVersionRequest.zod.js +58 -14
  245. package/dist/eventbus/v1/generated/validators/cursorPagination.zod.d.ts +58 -14
  246. package/dist/eventbus/v1/generated/validators/cursorPagination.zod.js +58 -14
  247. package/dist/eventbus/v1/generated/validators/error.zod.d.ts +58 -14
  248. package/dist/eventbus/v1/generated/validators/error.zod.js +58 -14
  249. package/dist/eventbus/v1/generated/validators/errorStatus.zod.d.ts +58 -14
  250. package/dist/eventbus/v1/generated/validators/errorStatus.zod.js +58 -14
  251. package/dist/eventbus/v1/generated/validators/eventDetail.zod.d.ts +60 -14
  252. package/dist/eventbus/v1/generated/validators/eventDetail.zod.js +67 -15
  253. package/dist/eventbus/v1/generated/validators/eventList.zod.d.ts +59 -14
  254. package/dist/eventbus/v1/generated/validators/eventList.zod.js +58 -14
  255. package/dist/eventbus/v1/generated/validators/eventMessage.zod.d.ts +103 -0
  256. package/dist/eventbus/v1/generated/validators/eventMessage.zod.js +105 -0
  257. package/dist/eventbus/v1/generated/validators/eventResource.zod.d.ts +60 -14
  258. package/dist/eventbus/v1/generated/validators/eventResource.zod.js +67 -15
  259. package/dist/eventbus/v1/generated/validators/eventStatus.zod.d.ts +58 -14
  260. package/dist/eventbus/v1/generated/validators/eventStatus.zod.js +58 -14
  261. package/dist/eventbus/v1/generated/validators/eventVersion.zod.d.ts +58 -14
  262. package/dist/eventbus/v1/generated/validators/eventVersion.zod.js +58 -14
  263. package/dist/eventbus/v1/generated/validators/fieldViolation.zod.d.ts +58 -14
  264. package/dist/eventbus/v1/generated/validators/fieldViolation.zod.js +58 -14
  265. package/dist/eventbus/v1/generated/validators/listEventsParams.zod.d.ts +58 -14
  266. package/dist/eventbus/v1/generated/validators/listEventsParams.zod.js +58 -14
  267. package/dist/eventbus/v1/generated/validators/listNamespacesParams.zod.d.ts +97 -0
  268. package/dist/eventbus/v1/generated/validators/listNamespacesParams.zod.js +99 -0
  269. package/dist/eventbus/v1/generated/validators/namespaceList.zod.d.ts +102 -0
  270. package/dist/eventbus/v1/generated/validators/namespaceList.zod.js +94 -0
  271. package/dist/eventbus/v1/generated/validators/namespaceResource.zod.d.ts +98 -0
  272. package/dist/eventbus/v1/generated/validators/namespaceResource.zod.js +100 -0
  273. package/dist/eventbus/v1/generated/validators/namespaceStatus.zod.d.ts +89 -0
  274. package/dist/eventbus/v1/generated/validators/namespaceStatus.zod.js +86 -0
  275. package/dist/eventbus/v1/generated/validators/offsetPagination.zod.d.ts +58 -14
  276. package/dist/eventbus/v1/generated/validators/offsetPagination.zod.js +58 -14
  277. package/dist/eventbus/v1/generated/validators/publication.zod.d.ts +98 -0
  278. package/dist/eventbus/v1/generated/validators/publication.zod.js +106 -0
  279. package/dist/eventbus/v1/generated/validators/publicationRecipient.zod.d.ts +89 -0
  280. package/dist/eventbus/v1/generated/validators/publicationRecipient.zod.js +89 -0
  281. package/dist/eventbus/v1/generated/validators/publishRequest.zod.d.ts +70 -20
  282. package/dist/eventbus/v1/generated/validators/publishRequest.zod.js +65 -26
  283. package/dist/eventbus/v1/generated/validators/publishResponse.zod.d.ts +64 -18
  284. package/dist/eventbus/v1/generated/validators/publishResponse.zod.js +62 -20
  285. package/dist/eventbus/v1/generated/validators/publishedMessage.zod.d.ts +91 -0
  286. package/dist/eventbus/v1/generated/validators/publishedMessage.zod.js +91 -0
  287. package/dist/eventbus/v1/generated/validators/realtimeTicket.zod.d.ts +59 -15
  288. package/dist/eventbus/v1/generated/validators/realtimeTicket.zod.js +65 -17
  289. package/dist/eventbus/v1/generated/validators/realtimeTicketRequest.zod.d.ts +90 -0
  290. package/dist/eventbus/v1/generated/validators/realtimeTicketRequest.zod.js +92 -0
  291. package/dist/eventbus/v1/generated/validators/recipient.zod.d.ts +89 -0
  292. package/dist/eventbus/v1/generated/validators/recipient.zod.js +89 -0
  293. package/dist/eventbus/v1/generated/validators/sender.zod.d.ts +89 -0
  294. package/dist/eventbus/v1/generated/validators/sender.zod.js +92 -0
  295. package/dist/eventbus/v1/generated/validators/updateEventRequest.zod.d.ts +58 -14
  296. package/dist/eventbus/v1/generated/validators/updateEventRequest.zod.js +58 -14
  297. package/dist/eventbus/v1/generated/validators/updateNamespaceRequest.zod.d.ts +93 -0
  298. package/dist/eventbus/v1/generated/validators/updateNamespaceRequest.zod.js +89 -0
  299. package/dist/notification/v1/generated/functions.d.ts +3 -58
  300. package/dist/notification/v1/generated/functions.js +2 -64
  301. package/dist/notification/v1/generated/models.d.ts +0 -47
  302. package/dist/notification/v1/generated/schemas.zod.d.ts +2 -17
  303. package/dist/notification/v1/generated/schemas.zod.js +2 -15
  304. package/dist/routes.d.ts +58 -34
  305. package/dist/routes.js +65 -38
  306. package/package.json +1 -1
  307. package/dist/assistant/v1/generated/validators/itemFrame.zod.d.ts +0 -36
  308. package/dist/assistant/v1/generated/validators/itemFrame.zod.js +0 -32
  309. package/dist/assistant/v1/generated/validators/openRealtimeParams.zod.d.ts +0 -31
  310. package/dist/assistant/v1/generated/validators/openRealtimeParams.zod.js +0 -29
  311. package/dist/assistant/v1/generated/validators/realtimeClientMessage.zod.d.ts +0 -38
  312. package/dist/assistant/v1/generated/validators/realtimeClientMessage.zod.js +0 -42
  313. package/dist/assistant/v1/generated/validators/realtimeExchange.zod.d.ts +0 -285
  314. package/dist/assistant/v1/generated/validators/realtimeExchange.zod.js +0 -33
  315. package/dist/assistant/v1/generated/validators/realtimeServerMessage.zod.d.ts +0 -274
  316. package/dist/assistant/v1/generated/validators/realtimeServerMessage.zod.js +0 -64
  317. package/dist/assistant/v1/generated/validators/realtimeTicketResource.zod.d.ts +0 -32
  318. package/dist/assistant/v1/generated/validators/realtimeTicketResource.zod.js +0 -30
  319. package/dist/notification/v1/generated/validators/authorizeRealtimeChannelRequestBody.zod.d.ts +0 -70
  320. package/dist/notification/v1/generated/validators/authorizeRealtimeChannelRequestBody.zod.js +0 -76
  321. package/dist/notification/v1/generated/validators/realtimeAuthResource.zod.d.ts +0 -67
  322. package/dist/notification/v1/generated/validators/realtimeAuthResource.zod.js +0 -67
  323. package/dist/notification/v1/generated/validators/realtimeConnectionResource.zod.d.ts +0 -76
  324. package/dist/notification/v1/generated/validators/realtimeConnectionResource.zod.js +0 -88
@@ -1,36 +0,0 @@
1
- /**
2
- * Generated by orval 🍺
3
- * Do not edit manually.
4
- * Leaflow Assistant API
5
- * Conversations with agents that operate the Leaflow platform, plus their folders, tasks, files and
6
- * chat-app channels.
7
- *
8
- * A conversation is a thread. A person talks to the main thread; the agent in it can start subagents,
9
- * which are threads too and run on their own: stopping the main thread does not stop them, and each
10
- * subagent tells its parent when it ends. A thread runs in turns; each turn records the model and
11
- * reasoning effort it used and its token usage.
12
- *
13
- * Models come from the Canopy catalogue. A new thread uses the model it names, the caller's default
14
- * from /api/v1/settings, or the first catalogue model that can run an agent. Reasoning models take one
15
- * of three efforts — low, medium or high — which are sent to the model unchanged.
16
- *
17
- * Read a thread's state with get-thread and its transcript with list-thread-items. Follow both live
18
- * over the WebSocket described under /api/v1/realtime/tickets. list-thread-messages outlines the
19
- * person's messages for navigating a long conversation.
20
- *
21
- * Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
22
- * parts, then complete the upload and send its attachment id in a message.
23
- * OpenAPI spec version: 2.0.0
24
- */
25
- import * as zod from "zod";
26
- export declare const ItemFrame: zod.ZodObject<{
27
- path: zod.ZodString;
28
- op: zod.ZodEnum<{
29
- set: "set";
30
- add: "add";
31
- append: "append";
32
- }>;
33
- value: zod.ZodUnknown;
34
- }, zod.z.core.$strict>;
35
- export type ItemFrame = zod.input<typeof ItemFrame>;
36
- export type ItemFrameOutput = zod.output<typeof ItemFrame>;
@@ -1,32 +0,0 @@
1
- /**
2
- * Generated by orval 🍺
3
- * Do not edit manually.
4
- * Leaflow Assistant API
5
- * Conversations with agents that operate the Leaflow platform, plus their folders, tasks, files and
6
- * chat-app channels.
7
- *
8
- * A conversation is a thread. A person talks to the main thread; the agent in it can start subagents,
9
- * which are threads too and run on their own: stopping the main thread does not stop them, and each
10
- * subagent tells its parent when it ends. A thread runs in turns; each turn records the model and
11
- * reasoning effort it used and its token usage.
12
- *
13
- * Models come from the Canopy catalogue. A new thread uses the model it names, the caller's default
14
- * from /api/v1/settings, or the first catalogue model that can run an agent. Reasoning models take one
15
- * of three efforts — low, medium or high — which are sent to the model unchanged.
16
- *
17
- * Read a thread's state with get-thread and its transcript with list-thread-items. Follow both live
18
- * over the WebSocket described under /api/v1/realtime/tickets. list-thread-messages outlines the
19
- * person's messages for navigating a long conversation.
20
- *
21
- * Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
22
- * parts, then complete the upload and send its attachment id in a message.
23
- * OpenAPI spec version: 2.0.0
24
- */
25
- import * as zod from "zod";
26
- export const ItemFrame = zod
27
- .strictObject({
28
- path: zod.string(),
29
- op: zod.enum(["add", "set", "append"]),
30
- value: zod.unknown(),
31
- })
32
- .describe("An edit to the transcript as returned by list-thread-items. `path` is a JSON Pointer under\n`/items`: `add` appends `value` to `/items` or replaces the item with the same id, `set`\nreplaces the value at `path`, and `append` concatenates the string `value` to the string at\n`path`, which is how answer text streams in.");
@@ -1,31 +0,0 @@
1
- /**
2
- * Generated by orval 🍺
3
- * Do not edit manually.
4
- * Leaflow Assistant API
5
- * Conversations with agents that operate the Leaflow platform, plus their folders, tasks, files and
6
- * chat-app channels.
7
- *
8
- * A conversation is a thread. A person talks to the main thread; the agent in it can start subagents,
9
- * which are threads too and run on their own: stopping the main thread does not stop them, and each
10
- * subagent tells its parent when it ends. A thread runs in turns; each turn records the model and
11
- * reasoning effort it used and its token usage.
12
- *
13
- * Models come from the Canopy catalogue. A new thread uses the model it names, the caller's default
14
- * from /api/v1/settings, or the first catalogue model that can run an agent. Reasoning models take one
15
- * of three efforts — low, medium or high — which are sent to the model unchanged.
16
- *
17
- * Read a thread's state with get-thread and its transcript with list-thread-items. Follow both live
18
- * over the WebSocket described under /api/v1/realtime/tickets. list-thread-messages outlines the
19
- * person's messages for navigating a long conversation.
20
- *
21
- * Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
22
- * parts, then complete the upload and send its attachment id in a message.
23
- * OpenAPI spec version: 2.0.0
24
- */
25
- import * as zod from "zod";
26
- export declare const openRealtimeParamsTicketMax = 4096;
27
- export declare const OpenRealtimeParams: zod.ZodObject<{
28
- ticket: zod.ZodString;
29
- }, zod.z.core.$strict>;
30
- export type OpenRealtimeParams = zod.input<typeof OpenRealtimeParams>;
31
- export type OpenRealtimeParamsOutput = zod.output<typeof OpenRealtimeParams>;
@@ -1,29 +0,0 @@
1
- /**
2
- * Generated by orval 🍺
3
- * Do not edit manually.
4
- * Leaflow Assistant API
5
- * Conversations with agents that operate the Leaflow platform, plus their folders, tasks, files and
6
- * chat-app channels.
7
- *
8
- * A conversation is a thread. A person talks to the main thread; the agent in it can start subagents,
9
- * which are threads too and run on their own: stopping the main thread does not stop them, and each
10
- * subagent tells its parent when it ends. A thread runs in turns; each turn records the model and
11
- * reasoning effort it used and its token usage.
12
- *
13
- * Models come from the Canopy catalogue. A new thread uses the model it names, the caller's default
14
- * from /api/v1/settings, or the first catalogue model that can run an agent. Reasoning models take one
15
- * of three efforts — low, medium or high — which are sent to the model unchanged.
16
- *
17
- * Read a thread's state with get-thread and its transcript with list-thread-items. Follow both live
18
- * over the WebSocket described under /api/v1/realtime/tickets. list-thread-messages outlines the
19
- * person's messages for navigating a long conversation.
20
- *
21
- * Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
22
- * parts, then complete the upload and send its attachment id in a message.
23
- * OpenAPI spec version: 2.0.0
24
- */
25
- import * as zod from "zod";
26
- export const openRealtimeParamsTicketMax = 4096;
27
- export const OpenRealtimeParams = zod.strictObject({
28
- ticket: zod.string().max(openRealtimeParamsTicketMax),
29
- });
@@ -1,38 +0,0 @@
1
- /**
2
- * Generated by orval 🍺
3
- * Do not edit manually.
4
- * Leaflow Assistant API
5
- * Conversations with agents that operate the Leaflow platform, plus their folders, tasks, files and
6
- * chat-app channels.
7
- *
8
- * A conversation is a thread. A person talks to the main thread; the agent in it can start subagents,
9
- * which are threads too and run on their own: stopping the main thread does not stop them, and each
10
- * subagent tells its parent when it ends. A thread runs in turns; each turn records the model and
11
- * reasoning effort it used and its token usage.
12
- *
13
- * Models come from the Canopy catalogue. A new thread uses the model it names, the caller's default
14
- * from /api/v1/settings, or the first catalogue model that can run an agent. Reasoning models take one
15
- * of three efforts — low, medium or high — which are sent to the model unchanged.
16
- *
17
- * Read a thread's state with get-thread and its transcript with list-thread-items. Follow both live
18
- * over the WebSocket described under /api/v1/realtime/tickets. list-thread-messages outlines the
19
- * person's messages for navigating a long conversation.
20
- *
21
- * Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
22
- * parts, then complete the upload and send its attachment id in a message.
23
- * OpenAPI spec version: 2.0.0
24
- */
25
- import * as zod from "zod";
26
- export declare const realtimeClientMessageTopicMax = 128;
27
- export declare const realtimeClientMessageCursorMax = 128;
28
- export declare const RealtimeClientMessage: zod.ZodObject<{
29
- type: zod.ZodEnum<{
30
- subscribe: "subscribe";
31
- unsubscribe: "unsubscribe";
32
- ping: "ping";
33
- }>;
34
- topic: zod.ZodOptional<zod.ZodString>;
35
- cursor: zod.ZodOptional<zod.ZodString>;
36
- }, zod.z.core.$strict>;
37
- export type RealtimeClientMessage = zod.input<typeof RealtimeClientMessage>;
38
- export type RealtimeClientMessageOutput = zod.output<typeof RealtimeClientMessage>;
@@ -1,42 +0,0 @@
1
- /**
2
- * Generated by orval 🍺
3
- * Do not edit manually.
4
- * Leaflow Assistant API
5
- * Conversations with agents that operate the Leaflow platform, plus their folders, tasks, files and
6
- * chat-app channels.
7
- *
8
- * A conversation is a thread. A person talks to the main thread; the agent in it can start subagents,
9
- * which are threads too and run on their own: stopping the main thread does not stop them, and each
10
- * subagent tells its parent when it ends. A thread runs in turns; each turn records the model and
11
- * reasoning effort it used and its token usage.
12
- *
13
- * Models come from the Canopy catalogue. A new thread uses the model it names, the caller's default
14
- * from /api/v1/settings, or the first catalogue model that can run an agent. Reasoning models take one
15
- * of three efforts — low, medium or high — which are sent to the model unchanged.
16
- *
17
- * Read a thread's state with get-thread and its transcript with list-thread-items. Follow both live
18
- * over the WebSocket described under /api/v1/realtime/tickets. list-thread-messages outlines the
19
- * person's messages for navigating a long conversation.
20
- *
21
- * Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
22
- * parts, then complete the upload and send its attachment id in a message.
23
- * OpenAPI spec version: 2.0.0
24
- */
25
- import * as zod from "zod";
26
- export const realtimeClientMessageTopicMax = 128;
27
- export const realtimeClientMessageCursorMax = 128;
28
- export const RealtimeClientMessage = zod
29
- .strictObject({
30
- type: zod.enum(["subscribe", "unsubscribe", "ping"]),
31
- topic: zod
32
- .string()
33
- .max(realtimeClientMessageTopicMax)
34
- .optional()
35
- .describe("`workspace` or `thread:{id}`. For subscribe and unsubscribe."),
36
- cursor: zod
37
- .string()
38
- .max(realtimeClientMessageCursorMax)
39
- .optional()
40
- .describe("For a `thread:{id}` subscription, the `streamCursor` to replay from."),
41
- })
42
- .describe("A message from the client. `type` determines which fields apply.");
@@ -1,285 +0,0 @@
1
- /**
2
- * Generated by orval 🍺
3
- * Do not edit manually.
4
- * Leaflow Assistant API
5
- * Conversations with agents that operate the Leaflow platform, plus their folders, tasks, files and
6
- * chat-app channels.
7
- *
8
- * A conversation is a thread. A person talks to the main thread; the agent in it can start subagents,
9
- * which are threads too and run on their own: stopping the main thread does not stop them, and each
10
- * subagent tells its parent when it ends. A thread runs in turns; each turn records the model and
11
- * reasoning effort it used and its token usage.
12
- *
13
- * Models come from the Canopy catalogue. A new thread uses the model it names, the caller's default
14
- * from /api/v1/settings, or the first catalogue model that can run an agent. Reasoning models take one
15
- * of three efforts — low, medium or high — which are sent to the model unchanged.
16
- *
17
- * Read a thread's state with get-thread and its transcript with list-thread-items. Follow both live
18
- * over the WebSocket described under /api/v1/realtime/tickets. list-thread-messages outlines the
19
- * person's messages for navigating a long conversation.
20
- *
21
- * Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
22
- * parts, then complete the upload and send its attachment id in a message.
23
- * OpenAPI spec version: 2.0.0
24
- */
25
- import * as zod from "zod";
26
- export declare const RealtimeExchange: zod.ZodObject<{
27
- client: zod.ZodObject<{
28
- type: zod.ZodEnum<{
29
- subscribe: "subscribe";
30
- unsubscribe: "unsubscribe";
31
- ping: "ping";
32
- }>;
33
- topic: zod.ZodOptional<zod.ZodString>;
34
- cursor: zod.ZodOptional<zod.ZodString>;
35
- }, zod.z.core.$strict>;
36
- server: zod.ZodObject<{
37
- type: zod.ZodEnum<{
38
- error: "error";
39
- subscribed: "subscribed";
40
- unsubscribed: "unsubscribed";
41
- "thread.updated": "thread.updated";
42
- "thread.deleted": "thread.deleted";
43
- "turn.updated": "turn.updated";
44
- "folder.updated": "folder.updated";
45
- "folder.deleted": "folder.deleted";
46
- "task.updated": "task.updated";
47
- "task.deleted": "task.deleted";
48
- "item.frame": "item.frame";
49
- resync: "resync";
50
- pong: "pong";
51
- }>;
52
- topic: zod.ZodOptional<zod.ZodString>;
53
- thread: zod.ZodOptional<zod.ZodObject<{
54
- id: zod.ZodString;
55
- role: zod.ZodEnum<{
56
- main: "main";
57
- subagent: "subagent";
58
- }>;
59
- parentId: zod.ZodNullable<zod.ZodString>;
60
- agentName: zod.ZodNullable<zod.ZodString>;
61
- title: zod.ZodNullable<zod.ZodString>;
62
- folderId: zod.ZodNullable<zod.ZodString>;
63
- orderVersion: zod.ZodInt;
64
- modelId: zod.ZodString;
65
- reasoningEffort: zod.ZodUnion<readonly [zod.ZodEnum<{
66
- high: "high";
67
- low: "low";
68
- medium: "medium";
69
- }>, zod.ZodNull]>;
70
- approvalMode: zod.ZodEnum<{
71
- manual: "manual";
72
- guardian: "guardian";
73
- yolo: "yolo";
74
- }>;
75
- status: zod.ZodEnum<{
76
- idle: "idle";
77
- starting: "starting";
78
- running: "running";
79
- waiting: "waiting";
80
- awaiting_approval: "awaiting_approval";
81
- awaiting_input: "awaiting_input";
82
- }>;
83
- activity: zod.ZodNullable<zod.ZodString>;
84
- recentMessage: zod.ZodNullable<zod.ZodString>;
85
- todos: zod.ZodArray<zod.ZodObject<{
86
- content: zod.ZodString;
87
- activeForm: zod.ZodString;
88
- status: zod.ZodEnum<{
89
- completed: "completed";
90
- pending: "pending";
91
- in_progress: "in_progress";
92
- }>;
93
- }, zod.z.core.$strict>>;
94
- pendingAction: zod.ZodUnion<readonly [zod.ZodObject<{
95
- threadId: zod.ZodString;
96
- itemIds: zod.ZodArray<zod.ZodString>;
97
- type: zod.ZodEnum<{
98
- approval: "approval";
99
- question: "question";
100
- }>;
101
- }, zod.z.core.$strict>, zod.ZodNull]>;
102
- subagents: zod.ZodObject<{
103
- total: zod.ZodInt;
104
- running: zod.ZodInt;
105
- }, zod.z.core.$strict>;
106
- lastTurn: zod.ZodUnion<readonly [zod.ZodObject<{
107
- id: zod.ZodString;
108
- type: zod.ZodEnum<{
109
- message: "message";
110
- compaction: "compaction";
111
- }>;
112
- status: zod.ZodEnum<{
113
- running: "running";
114
- completed: "completed";
115
- failed: "failed";
116
- declined: "declined";
117
- cancelled: "cancelled";
118
- }>;
119
- failureCode: zod.ZodNullable<zod.ZodString>;
120
- completedAt: zod.ZodNullable<zod.z.ZodISODateTime>;
121
- }, zod.z.core.$strict>, zod.ZodNull]>;
122
- context: zod.ZodObject<{
123
- usedTokens: zod.ZodNullable<zod.ZodInt>;
124
- windowTokens: zod.ZodNullable<zod.ZodInt>;
125
- }, zod.z.core.$strict>;
126
- usage: zod.ZodObject<{
127
- inputTokens: zod.ZodInt;
128
- cachedInputTokens: zod.ZodInt;
129
- cacheWriteTokens: zod.ZodInt;
130
- outputTokens: zod.ZodInt;
131
- reasoningTokens: zod.ZodInt;
132
- totalTokens: zod.ZodInt;
133
- requests: zod.ZodInt;
134
- complete: zod.ZodBoolean;
135
- }, zod.z.core.$strict>;
136
- unread: zod.ZodBoolean;
137
- archived: zod.ZodBoolean;
138
- messageCount: zod.ZodInt;
139
- createdAt: zod.z.ZodISODateTime;
140
- updatedAt: zod.z.ZodISODateTime;
141
- }, zod.z.core.$strict>>;
142
- threadId: zod.ZodOptional<zod.ZodString>;
143
- turn: zod.ZodOptional<zod.ZodObject<{
144
- id: zod.ZodString;
145
- threadId: zod.ZodString;
146
- type: zod.ZodEnum<{
147
- message: "message";
148
- compaction: "compaction";
149
- }>;
150
- status: zod.ZodEnum<{
151
- running: "running";
152
- completed: "completed";
153
- failed: "failed";
154
- declined: "declined";
155
- cancelled: "cancelled";
156
- }>;
157
- firstOrdinal: zod.ZodNullable<zod.ZodInt>;
158
- lastOrdinal: zod.ZodNullable<zod.ZodInt>;
159
- preview: zod.ZodNullable<zod.ZodString>;
160
- modelId: zod.ZodString;
161
- reasoningEffort: zod.ZodUnion<readonly [zod.ZodEnum<{
162
- high: "high";
163
- low: "low";
164
- medium: "medium";
165
- }>, zod.ZodNull]>;
166
- approvalMode: zod.ZodEnum<{
167
- manual: "manual";
168
- guardian: "guardian";
169
- yolo: "yolo";
170
- }>;
171
- failureCode: zod.ZodNullable<zod.ZodString>;
172
- toolCalls: zod.ZodInt;
173
- usage: zod.ZodObject<{
174
- inputTokens: zod.ZodInt;
175
- cachedInputTokens: zod.ZodInt;
176
- cacheWriteTokens: zod.ZodInt;
177
- outputTokens: zod.ZodInt;
178
- reasoningTokens: zod.ZodInt;
179
- totalTokens: zod.ZodInt;
180
- requests: zod.ZodInt;
181
- complete: zod.ZodBoolean;
182
- }, zod.z.core.$strict>;
183
- streamingOutputTokens: zod.ZodInt;
184
- startedAt: zod.z.ZodISODateTime;
185
- firstTokenAt: zod.ZodNullable<zod.z.ZodISODateTime>;
186
- completedAt: zod.ZodNullable<zod.z.ZodISODateTime>;
187
- }, zod.z.core.$strict>>;
188
- folder: zod.ZodOptional<zod.ZodObject<{
189
- id: zod.ZodString;
190
- type: zod.ZodEnum<{
191
- custom: "custom";
192
- inbox: "inbox";
193
- }>;
194
- name: zod.ZodString;
195
- counts: zod.ZodObject<{
196
- total: zod.ZodInt;
197
- needsAction: zod.ZodInt;
198
- running: zod.ZodInt;
199
- }, zod.z.core.$strict>;
200
- orderVersion: zod.ZodInt;
201
- createdAt: zod.z.ZodISODateTime;
202
- updatedAt: zod.z.ZodISODateTime;
203
- }, zod.z.core.$strict>>;
204
- folderId: zod.ZodOptional<zod.ZodString>;
205
- task: zod.ZodOptional<zod.ZodObject<{
206
- id: zod.ZodString;
207
- threadId: zod.ZodString;
208
- name: zod.ZodString;
209
- status: zod.ZodEnum<{
210
- active: "active";
211
- completed: "completed";
212
- cancelled: "cancelled";
213
- paused: "paused";
214
- }>;
215
- trigger: zod.ZodObject<{
216
- type: zod.ZodEnum<{
217
- at: "at";
218
- now: "now";
219
- interval: "interval";
220
- cron: "cron";
221
- }>;
222
- runAt: zod.ZodOptional<zod.ZodNullable<zod.z.ZodISODateTime>>;
223
- intervalSeconds: zod.ZodOptional<zod.ZodNullable<zod.ZodInt>>;
224
- anchorAt: zod.ZodOptional<zod.ZodNullable<zod.z.ZodISODateTime>>;
225
- cron: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
226
- timezone: zod.ZodDefault<zod.ZodString>;
227
- overlapPolicy: zod.ZodDefault<zod.ZodEnum<{
228
- skip: "skip";
229
- buffer_one: "buffer_one";
230
- }>>;
231
- catchupSeconds: zod.ZodDefault<zod.ZodInt>;
232
- }, zod.z.core.$strict>;
233
- action: zod.ZodObject<{
234
- type: zod.ZodEnum<{
235
- prompt: "prompt";
236
- command: "command";
237
- }>;
238
- prompt: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
239
- instanceId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
240
- command: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
241
- timeoutSeconds: zod.ZodDefault<zod.ZodInt>;
242
- }, zod.z.core.$strict>;
243
- nextRunAt: zod.ZodNullable<zod.z.ZodISODateTime>;
244
- lastRun: zod.ZodUnion<readonly [zod.ZodObject<{
245
- id: zod.ZodString;
246
- taskId: zod.ZodString;
247
- status: zod.ZodEnum<{
248
- running: "running";
249
- completed: "completed";
250
- failed: "failed";
251
- cancelled: "cancelled";
252
- queued: "queued";
253
- timed_out: "timed_out";
254
- }>;
255
- startedAt: zod.ZodNullable<zod.z.ZodISODateTime>;
256
- finishedAt: zod.ZodNullable<zod.z.ZodISODateTime>;
257
- exitCode: zod.ZodNullable<zod.ZodInt>;
258
- output: zod.ZodNullable<zod.ZodString>;
259
- errorCode: zod.ZodNullable<zod.ZodString>;
260
- trigger: zod.ZodEnum<{
261
- manual: "manual";
262
- schedule: "schedule";
263
- assistant: "assistant";
264
- }>;
265
- }, zod.z.core.$strict>, zod.ZodNull]>;
266
- createdAt: zod.z.ZodISODateTime;
267
- updatedAt: zod.z.ZodISODateTime;
268
- }, zod.z.core.$strict>>;
269
- taskId: zod.ZodOptional<zod.ZodString>;
270
- cursor: zod.ZodOptional<zod.ZodString>;
271
- frame: zod.ZodOptional<zod.ZodObject<{
272
- path: zod.ZodString;
273
- op: zod.ZodEnum<{
274
- set: "set";
275
- add: "add";
276
- append: "append";
277
- }>;
278
- value: zod.ZodUnknown;
279
- }, zod.z.core.$strict>>;
280
- code: zod.ZodOptional<zod.ZodString>;
281
- message: zod.ZodOptional<zod.ZodString>;
282
- }, zod.z.core.$strict>;
283
- }, zod.z.core.$strict>;
284
- export type RealtimeExchange = zod.input<typeof RealtimeExchange>;
285
- export type RealtimeExchangeOutput = zod.output<typeof RealtimeExchange>;
@@ -1,33 +0,0 @@
1
- /**
2
- * Generated by orval 🍺
3
- * Do not edit manually.
4
- * Leaflow Assistant API
5
- * Conversations with agents that operate the Leaflow platform, plus their folders, tasks, files and
6
- * chat-app channels.
7
- *
8
- * A conversation is a thread. A person talks to the main thread; the agent in it can start subagents,
9
- * which are threads too and run on their own: stopping the main thread does not stop them, and each
10
- * subagent tells its parent when it ends. A thread runs in turns; each turn records the model and
11
- * reasoning effort it used and its token usage.
12
- *
13
- * Models come from the Canopy catalogue. A new thread uses the model it names, the caller's default
14
- * from /api/v1/settings, or the first catalogue model that can run an agent. Reasoning models take one
15
- * of three efforts — low, medium or high — which are sent to the model unchanged.
16
- *
17
- * Read a thread's state with get-thread and its transcript with list-thread-items. Follow both live
18
- * over the WebSocket described under /api/v1/realtime/tickets. list-thread-messages outlines the
19
- * person's messages for navigating a long conversation.
20
- *
21
- * Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
22
- * parts, then complete the upload and send its attachment id in a message.
23
- * OpenAPI spec version: 2.0.0
24
- */
25
- import * as zod from "zod";
26
- import { RealtimeClientMessage } from "./realtimeClientMessage.zod.js";
27
- import { RealtimeServerMessage } from "./realtimeServerMessage.zod.js";
28
- export const RealtimeExchange = zod
29
- .strictObject({
30
- client: RealtimeClientMessage,
31
- server: RealtimeServerMessage,
32
- })
33
- .describe("Both directions of the WebSocket protocol, for code generation.");