@leaflow/sdk 0.0.0-dev.523.gcaeef48 → 0.0.0-dev.526.g367525a

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 (261) hide show
  1. package/dist/assistant/v1/generated/functions.d.ts +243 -67
  2. package/dist/assistant/v1/generated/functions.js +248 -44
  3. package/dist/assistant/v1/generated/models.d.ts +302 -230
  4. package/dist/assistant/v1/generated/models.js +9 -19
  5. package/dist/assistant/v1/generated/schemas.zod.d.ts +119 -29
  6. package/dist/assistant/v1/generated/schemas.zod.js +139 -29
  7. package/dist/assistant/v1/generated/validators/answerQuestionRequestBody.zod.d.ts +4 -3
  8. package/dist/assistant/v1/generated/validators/answerQuestionRequestBody.zod.js +4 -3
  9. package/dist/assistant/v1/generated/validators/approvalMode.zod.d.ts +4 -3
  10. package/dist/assistant/v1/generated/validators/approvalMode.zod.js +4 -3
  11. package/dist/assistant/v1/generated/validators/artifactListResponseBody.zod.d.ts +68 -0
  12. package/dist/assistant/v1/generated/validators/artifactListResponseBody.zod.js +35 -0
  13. package/dist/assistant/v1/generated/validators/artifactResource.zod.d.ts +65 -0
  14. package/dist/assistant/v1/generated/validators/{attachmentResource.zod.js → artifactResource.zod.js} +13 -14
  15. package/dist/assistant/v1/generated/validators/artifactVersionListResponseBody.zod.d.ts +61 -0
  16. package/dist/assistant/v1/generated/validators/artifactVersionListResponseBody.zod.js +35 -0
  17. package/dist/assistant/v1/generated/validators/{uploadedResource.zod.d.ts → artifactVersionResource.zod.d.ts} +30 -16
  18. package/dist/assistant/v1/generated/validators/{attachmentFileResource.zod.js → artifactVersionResource.zod.js} +23 -16
  19. package/dist/assistant/v1/generated/validators/bindingCodeResponseBody.zod.d.ts +4 -3
  20. package/dist/assistant/v1/generated/validators/bindingCodeResponseBody.zod.js +4 -3
  21. package/dist/assistant/v1/generated/validators/bindingResource.zod.d.ts +4 -3
  22. package/dist/assistant/v1/generated/validators/bindingResource.zod.js +4 -3
  23. package/dist/assistant/v1/generated/validators/channelResource.zod.d.ts +4 -3
  24. package/dist/assistant/v1/generated/validators/channelResource.zod.js +4 -3
  25. package/dist/assistant/v1/generated/validators/channelWithSecretResponseBody.zod.d.ts +4 -3
  26. package/dist/assistant/v1/generated/validators/channelWithSecretResponseBody.zod.js +4 -3
  27. package/dist/assistant/v1/generated/validators/checkSenderParams.zod.d.ts +4 -3
  28. package/dist/assistant/v1/generated/validators/checkSenderParams.zod.js +4 -3
  29. package/dist/assistant/v1/generated/validators/choiceResource.zod.d.ts +4 -3
  30. package/dist/assistant/v1/generated/validators/choiceResource.zod.js +4 -3
  31. package/dist/assistant/v1/generated/validators/clientActionRequest.zod.d.ts +4 -3
  32. package/dist/assistant/v1/generated/validators/clientActionRequest.zod.js +4 -3
  33. package/dist/assistant/v1/generated/validators/clientContextPart.zod.d.ts +4 -3
  34. package/dist/assistant/v1/generated/validators/clientContextPart.zod.js +4 -3
  35. package/dist/assistant/v1/generated/validators/clientContextRequest.zod.d.ts +4 -3
  36. package/dist/assistant/v1/generated/validators/clientContextRequest.zod.js +4 -3
  37. package/dist/assistant/v1/generated/validators/clientFunctionRequest.zod.d.ts +4 -3
  38. package/dist/assistant/v1/generated/validators/clientFunctionRequest.zod.js +4 -3
  39. package/dist/assistant/v1/generated/validators/completeUploadRequestBody.zod.d.ts +4 -3
  40. package/dist/assistant/v1/generated/validators/completeUploadRequestBody.zod.js +4 -3
  41. package/dist/assistant/v1/generated/validators/contextUsageResource.zod.d.ts +4 -3
  42. package/dist/assistant/v1/generated/validators/contextUsageResource.zod.js +4 -3
  43. package/dist/assistant/v1/generated/validators/createArtifactRequestBody.zod.d.ts +38 -0
  44. package/dist/assistant/v1/generated/validators/createArtifactRequestBody.zod.js +36 -0
  45. package/dist/assistant/v1/generated/validators/createArtifactVersionRequestBody.zod.d.ts +36 -0
  46. package/dist/assistant/v1/generated/validators/createArtifactVersionRequestBody.zod.js +34 -0
  47. package/dist/assistant/v1/generated/validators/createChannelRequestBody.zod.d.ts +4 -3
  48. package/dist/assistant/v1/generated/validators/createChannelRequestBody.zod.js +4 -3
  49. package/dist/assistant/v1/generated/validators/createFolderRequestBody.zod.d.ts +4 -3
  50. package/dist/assistant/v1/generated/validators/createFolderRequestBody.zod.js +4 -3
  51. package/dist/assistant/v1/generated/validators/createTaskRequestBody.zod.d.ts +4 -3
  52. package/dist/assistant/v1/generated/validators/createTaskRequestBody.zod.js +4 -3
  53. package/dist/assistant/v1/generated/validators/createThreadRequestBody.zod.d.ts +5 -4
  54. package/dist/assistant/v1/generated/validators/createThreadRequestBody.zod.js +4 -3
  55. package/dist/assistant/v1/generated/validators/createThreadResponseBody.zod.d.ts +4 -3
  56. package/dist/assistant/v1/generated/validators/createThreadResponseBody.zod.js +4 -3
  57. package/dist/assistant/v1/generated/validators/createUploadRequestBody.zod.d.ts +4 -3
  58. package/dist/assistant/v1/generated/validators/createUploadRequestBody.zod.js +4 -3
  59. package/dist/assistant/v1/generated/validators/credentialFieldResource.zod.d.ts +4 -3
  60. package/dist/assistant/v1/generated/validators/credentialFieldResource.zod.js +4 -3
  61. package/dist/assistant/v1/generated/validators/cursorPagination.zod.d.ts +4 -3
  62. package/dist/assistant/v1/generated/validators/cursorPagination.zod.js +4 -3
  63. package/dist/assistant/v1/generated/validators/decideToolCallsRequestBody.zod.d.ts +4 -3
  64. package/dist/assistant/v1/generated/validators/decideToolCallsRequestBody.zod.js +4 -3
  65. package/dist/assistant/v1/generated/validators/defaultModelResource.zod.d.ts +4 -3
  66. package/dist/assistant/v1/generated/validators/defaultModelResource.zod.js +4 -3
  67. package/dist/assistant/v1/generated/validators/error.zod.d.ts +4 -3
  68. package/dist/assistant/v1/generated/validators/error.zod.js +4 -3
  69. package/dist/assistant/v1/generated/validators/errorStatus.zod.d.ts +4 -3
  70. package/dist/assistant/v1/generated/validators/errorStatus.zod.js +4 -3
  71. package/dist/assistant/v1/generated/validators/fieldViolation.zod.d.ts +4 -3
  72. package/dist/assistant/v1/generated/validators/fieldViolation.zod.js +4 -3
  73. package/dist/assistant/v1/generated/validators/{attachmentCountsResource.zod.d.ts → fileCountsResource.zod.d.ts} +7 -6
  74. package/dist/assistant/v1/generated/validators/{attachmentCountsResource.zod.js → fileCountsResource.zod.js} +5 -4
  75. package/dist/assistant/v1/generated/validators/fileDiffResource.zod.d.ts +4 -3
  76. package/dist/assistant/v1/generated/validators/fileDiffResource.zod.js +4 -3
  77. package/dist/assistant/v1/generated/validators/{attachmentListResponseBody.zod.d.ts → fileListResponseBody.zod.d.ts} +15 -14
  78. package/dist/assistant/v1/generated/validators/{attachmentListResponseBody.zod.js → fileListResponseBody.zod.js} +9 -8
  79. package/dist/assistant/v1/generated/validators/{attachmentFileResource.zod.d.ts → fileResource.zod.d.ts} +14 -13
  80. package/dist/assistant/v1/generated/validators/{uploadedResource.zod.js → fileResource.zod.js} +25 -15
  81. package/dist/assistant/v1/generated/validators/folderCountsResource.zod.d.ts +4 -3
  82. package/dist/assistant/v1/generated/validators/folderCountsResource.zod.js +4 -3
  83. package/dist/assistant/v1/generated/validators/folderListResponseBody.zod.d.ts +4 -3
  84. package/dist/assistant/v1/generated/validators/folderListResponseBody.zod.js +4 -3
  85. package/dist/assistant/v1/generated/validators/folderResource.zod.d.ts +4 -3
  86. package/dist/assistant/v1/generated/validators/folderResource.zod.js +4 -3
  87. package/dist/assistant/v1/generated/validators/itemSourceResource.zod.d.ts +4 -3
  88. package/dist/assistant/v1/generated/validators/itemSourceResource.zod.js +4 -3
  89. package/dist/assistant/v1/generated/validators/lastTurnResource.zod.d.ts +4 -3
  90. package/dist/assistant/v1/generated/validators/lastTurnResource.zod.js +4 -3
  91. package/dist/assistant/v1/generated/validators/lengthAwarePageBindingResource.zod.d.ts +4 -3
  92. package/dist/assistant/v1/generated/validators/lengthAwarePageBindingResource.zod.js +4 -3
  93. package/dist/assistant/v1/generated/validators/lengthAwarePageChannelResource.zod.d.ts +4 -3
  94. package/dist/assistant/v1/generated/validators/lengthAwarePageChannelResource.zod.js +4 -3
  95. package/dist/assistant/v1/generated/validators/listArtifactVersionsParams.zod.d.ts +39 -0
  96. package/dist/assistant/v1/generated/validators/listArtifactVersionsParams.zod.js +41 -0
  97. package/dist/assistant/v1/generated/validators/listArtifactsParams.zod.d.ts +41 -0
  98. package/dist/assistant/v1/generated/validators/listArtifactsParams.zod.js +39 -0
  99. package/dist/assistant/v1/generated/validators/listBindingsParams.zod.d.ts +4 -3
  100. package/dist/assistant/v1/generated/validators/listBindingsParams.zod.js +4 -3
  101. package/dist/assistant/v1/generated/validators/listChannelRejectionsParams.zod.d.ts +4 -3
  102. package/dist/assistant/v1/generated/validators/listChannelRejectionsParams.zod.js +4 -3
  103. package/dist/assistant/v1/generated/validators/listChannelsParams.zod.d.ts +4 -3
  104. package/dist/assistant/v1/generated/validators/listChannelsParams.zod.js +4 -3
  105. package/dist/assistant/v1/generated/validators/listTaskRunsParams.zod.d.ts +4 -3
  106. package/dist/assistant/v1/generated/validators/listTaskRunsParams.zod.js +4 -3
  107. package/dist/assistant/v1/generated/validators/listThreadItemsParams.zod.d.ts +4 -3
  108. package/dist/assistant/v1/generated/validators/listThreadItemsParams.zod.js +4 -3
  109. package/dist/assistant/v1/generated/validators/listThreadMessagesParams.zod.d.ts +4 -3
  110. package/dist/assistant/v1/generated/validators/listThreadMessagesParams.zod.js +4 -3
  111. package/dist/assistant/v1/generated/validators/listThreadTurnsParams.zod.d.ts +4 -3
  112. package/dist/assistant/v1/generated/validators/listThreadTurnsParams.zod.js +4 -3
  113. package/dist/assistant/v1/generated/validators/loginResource.zod.d.ts +4 -3
  114. package/dist/assistant/v1/generated/validators/loginResource.zod.js +4 -3
  115. package/dist/assistant/v1/generated/validators/memoryListResponseBody.zod.d.ts +4 -3
  116. package/dist/assistant/v1/generated/validators/memoryListResponseBody.zod.js +4 -3
  117. package/dist/assistant/v1/generated/validators/memoryResource.zod.d.ts +4 -3
  118. package/dist/assistant/v1/generated/validators/memoryResource.zod.js +4 -3
  119. package/dist/assistant/v1/generated/validators/messagePart.zod.d.ts +5 -4
  120. package/dist/assistant/v1/generated/validators/messagePart.zod.js +7 -6
  121. package/dist/assistant/v1/generated/validators/moveFolderRequestBody.zod.d.ts +4 -3
  122. package/dist/assistant/v1/generated/validators/moveFolderRequestBody.zod.js +4 -3
  123. package/dist/assistant/v1/generated/validators/offsetPagination.zod.d.ts +4 -3
  124. package/dist/assistant/v1/generated/validators/offsetPagination.zod.js +4 -3
  125. package/dist/assistant/v1/generated/validators/partResource.zod.d.ts +20 -4
  126. package/dist/assistant/v1/generated/validators/partResource.zod.js +8 -7
  127. package/dist/assistant/v1/generated/validators/pendingActionResource.zod.d.ts +4 -3
  128. package/dist/assistant/v1/generated/validators/pendingActionResource.zod.js +4 -3
  129. package/dist/assistant/v1/generated/validators/placeThreadRequestBody.zod.d.ts +4 -3
  130. package/dist/assistant/v1/generated/validators/placeThreadRequestBody.zod.js +4 -3
  131. package/dist/assistant/v1/generated/validators/platformListResponseBody.zod.d.ts +4 -3
  132. package/dist/assistant/v1/generated/validators/platformListResponseBody.zod.js +4 -3
  133. package/dist/assistant/v1/generated/validators/platformResource.zod.d.ts +4 -3
  134. package/dist/assistant/v1/generated/validators/platformResource.zod.js +4 -3
  135. package/dist/assistant/v1/generated/validators/presentationResource.zod.d.ts +4 -3
  136. package/dist/assistant/v1/generated/validators/presentationResource.zod.js +4 -3
  137. package/dist/assistant/v1/generated/validators/putUploadPartHeaders.zod.d.ts +4 -3
  138. package/dist/assistant/v1/generated/validators/putUploadPartHeaders.zod.js +4 -3
  139. package/dist/assistant/v1/generated/validators/putUploadPartParams.zod.d.ts +4 -3
  140. package/dist/assistant/v1/generated/validators/putUploadPartParams.zod.js +4 -3
  141. package/dist/assistant/v1/generated/validators/questionResource.zod.d.ts +4 -3
  142. package/dist/assistant/v1/generated/validators/questionResource.zod.js +4 -3
  143. package/dist/assistant/v1/generated/validators/reasoningEffort.zod.d.ts +4 -3
  144. package/dist/assistant/v1/generated/validators/reasoningEffort.zod.js +4 -3
  145. package/dist/assistant/v1/generated/validators/rejectionListResponseBody.zod.d.ts +4 -3
  146. package/dist/assistant/v1/generated/validators/rejectionListResponseBody.zod.js +4 -3
  147. package/dist/assistant/v1/generated/validators/rejectionResource.zod.d.ts +4 -3
  148. package/dist/assistant/v1/generated/validators/rejectionResource.zod.js +4 -3
  149. package/dist/assistant/v1/generated/validators/resumeThreadRequestBody.zod.d.ts +4 -3
  150. package/dist/assistant/v1/generated/validators/resumeThreadRequestBody.zod.js +4 -3
  151. package/dist/assistant/v1/generated/validators/revertRequestBody.zod.d.ts +4 -3
  152. package/dist/assistant/v1/generated/validators/revertRequestBody.zod.js +4 -3
  153. package/dist/assistant/v1/generated/validators/revertedCountResponseBody.zod.d.ts +4 -3
  154. package/dist/assistant/v1/generated/validators/revertedCountResponseBody.zod.js +4 -3
  155. package/dist/assistant/v1/generated/validators/rotateSecretRequestBody.zod.d.ts +4 -3
  156. package/dist/assistant/v1/generated/validators/rotateSecretRequestBody.zod.js +4 -3
  157. package/dist/assistant/v1/generated/validators/{searchAttachmentsRequestBody.zod.d.ts → searchFilesRequestBody.zod.d.ts} +12 -11
  158. package/dist/assistant/v1/generated/validators/{searchAttachmentsRequestBody.zod.js → searchFilesRequestBody.zod.js} +17 -16
  159. package/dist/assistant/v1/generated/validators/searchTasksRequestBody.zod.d.ts +4 -3
  160. package/dist/assistant/v1/generated/validators/searchTasksRequestBody.zod.js +4 -3
  161. package/dist/assistant/v1/generated/validators/searchThreadsRequestBody.zod.d.ts +4 -3
  162. package/dist/assistant/v1/generated/validators/searchThreadsRequestBody.zod.js +4 -3
  163. package/dist/assistant/v1/generated/validators/sendMessageRequestBody.zod.d.ts +5 -4
  164. package/dist/assistant/v1/generated/validators/sendMessageRequestBody.zod.js +4 -3
  165. package/dist/assistant/v1/generated/validators/sendMessageResponseBody.zod.d.ts +4 -3
  166. package/dist/assistant/v1/generated/validators/sendMessageResponseBody.zod.js +4 -3
  167. package/dist/assistant/v1/generated/validators/senderCheckResource.zod.d.ts +4 -3
  168. package/dist/assistant/v1/generated/validators/senderCheckResource.zod.js +4 -3
  169. package/dist/assistant/v1/generated/validators/settingsResource.zod.d.ts +4 -3
  170. package/dist/assistant/v1/generated/validators/settingsResource.zod.js +4 -3
  171. package/dist/assistant/v1/generated/validators/skillEnabledRequestBody.zod.d.ts +4 -3
  172. package/dist/assistant/v1/generated/validators/skillEnabledRequestBody.zod.js +4 -3
  173. package/dist/assistant/v1/generated/validators/skillListResponseBody.zod.d.ts +4 -3
  174. package/dist/assistant/v1/generated/validators/skillListResponseBody.zod.js +4 -3
  175. package/dist/assistant/v1/generated/validators/skillRequestBody.zod.d.ts +4 -3
  176. package/dist/assistant/v1/generated/validators/skillRequestBody.zod.js +4 -3
  177. package/dist/assistant/v1/generated/validators/skillResource.zod.d.ts +4 -3
  178. package/dist/assistant/v1/generated/validators/skillResource.zod.js +4 -3
  179. package/dist/assistant/v1/generated/validators/subagentCountResource.zod.d.ts +4 -3
  180. package/dist/assistant/v1/generated/validators/subagentCountResource.zod.js +4 -3
  181. package/dist/assistant/v1/generated/validators/taskAction.zod.d.ts +4 -3
  182. package/dist/assistant/v1/generated/validators/taskAction.zod.js +4 -3
  183. package/dist/assistant/v1/generated/validators/taskListResponseBody.zod.d.ts +4 -3
  184. package/dist/assistant/v1/generated/validators/taskListResponseBody.zod.js +4 -3
  185. package/dist/assistant/v1/generated/validators/taskResource.zod.d.ts +4 -3
  186. package/dist/assistant/v1/generated/validators/taskResource.zod.js +4 -3
  187. package/dist/assistant/v1/generated/validators/taskRunEvent.zod.d.ts +4 -3
  188. package/dist/assistant/v1/generated/validators/taskRunEvent.zod.js +4 -3
  189. package/dist/assistant/v1/generated/validators/taskRunListResponseBody.zod.d.ts +4 -3
  190. package/dist/assistant/v1/generated/validators/taskRunListResponseBody.zod.js +4 -3
  191. package/dist/assistant/v1/generated/validators/taskRunResource.zod.d.ts +4 -3
  192. package/dist/assistant/v1/generated/validators/taskRunResource.zod.js +4 -3
  193. package/dist/assistant/v1/generated/validators/taskTrigger.zod.d.ts +4 -3
  194. package/dist/assistant/v1/generated/validators/taskTrigger.zod.js +4 -3
  195. package/dist/assistant/v1/generated/validators/threadCountsResource.zod.d.ts +4 -3
  196. package/dist/assistant/v1/generated/validators/threadCountsResource.zod.js +4 -3
  197. package/dist/assistant/v1/generated/validators/threadItemListResponseBody.zod.d.ts +120 -29
  198. package/dist/assistant/v1/generated/validators/threadItemListResponseBody.zod.js +4 -3
  199. package/dist/assistant/v1/generated/validators/threadItemResource.zod.d.ts +62 -16
  200. package/dist/assistant/v1/generated/validators/threadItemResource.zod.js +5 -6
  201. package/dist/assistant/v1/generated/validators/threadListResponseBody.zod.d.ts +4 -3
  202. package/dist/assistant/v1/generated/validators/threadListResponseBody.zod.js +4 -3
  203. package/dist/assistant/v1/generated/validators/threadMessageListResponseBody.zod.d.ts +4 -3
  204. package/dist/assistant/v1/generated/validators/threadMessageListResponseBody.zod.js +4 -3
  205. package/dist/assistant/v1/generated/validators/threadMessageResource.zod.d.ts +4 -3
  206. package/dist/assistant/v1/generated/validators/threadMessageResource.zod.js +4 -3
  207. package/dist/assistant/v1/generated/validators/threadResource.zod.d.ts +4 -3
  208. package/dist/assistant/v1/generated/validators/threadResource.zod.js +4 -3
  209. package/dist/assistant/v1/generated/validators/threadStatus.zod.d.ts +4 -3
  210. package/dist/assistant/v1/generated/validators/threadStatus.zod.js +4 -3
  211. package/dist/assistant/v1/generated/validators/threadTurnListResponseBody.zod.d.ts +4 -3
  212. package/dist/assistant/v1/generated/validators/threadTurnListResponseBody.zod.js +4 -3
  213. package/dist/assistant/v1/generated/validators/threadTurnResource.zod.d.ts +4 -3
  214. package/dist/assistant/v1/generated/validators/threadTurnResource.zod.js +4 -3
  215. package/dist/assistant/v1/generated/validators/todoResource.zod.d.ts +4 -3
  216. package/dist/assistant/v1/generated/validators/todoResource.zod.js +4 -3
  217. package/dist/assistant/v1/generated/validators/toolCallResource.zod.d.ts +46 -3
  218. package/dist/assistant/v1/generated/validators/toolCallResource.zod.js +12 -3
  219. package/dist/assistant/v1/generated/validators/toolResultRequestBody.zod.d.ts +4 -3
  220. package/dist/assistant/v1/generated/validators/toolResultRequestBody.zod.js +4 -3
  221. package/dist/assistant/v1/generated/validators/turnStartedResponseBody.zod.d.ts +4 -3
  222. package/dist/assistant/v1/generated/validators/turnStartedResponseBody.zod.js +4 -3
  223. package/dist/assistant/v1/generated/validators/turnStatus.zod.d.ts +4 -3
  224. package/dist/assistant/v1/generated/validators/turnStatus.zod.js +4 -3
  225. package/dist/assistant/v1/generated/validators/turnType.zod.d.ts +4 -3
  226. package/dist/assistant/v1/generated/validators/turnType.zod.js +4 -3
  227. package/dist/assistant/v1/generated/validators/{attachmentResource.zod.d.ts → updateArtifactRequestBody.zod.d.ts} +9 -16
  228. package/dist/assistant/v1/generated/validators/updateArtifactRequestBody.zod.js +34 -0
  229. package/dist/assistant/v1/generated/validators/updateChannelRequestBody.zod.d.ts +4 -3
  230. package/dist/assistant/v1/generated/validators/updateChannelRequestBody.zod.js +4 -3
  231. package/dist/assistant/v1/generated/validators/{updateAttachmentRequestBody.zod.d.ts → updateFileRequestBody.zod.d.ts} +8 -7
  232. package/dist/assistant/v1/generated/validators/{updateAttachmentRequestBody.zod.js → updateFileRequestBody.zod.js} +7 -6
  233. package/dist/assistant/v1/generated/validators/updateFolderRequestBody.zod.d.ts +4 -3
  234. package/dist/assistant/v1/generated/validators/updateFolderRequestBody.zod.js +4 -3
  235. package/dist/assistant/v1/generated/validators/updateSettingsRequestBody.zod.d.ts +4 -3
  236. package/dist/assistant/v1/generated/validators/updateSettingsRequestBody.zod.js +4 -3
  237. package/dist/assistant/v1/generated/validators/updateTaskRequestBody.zod.d.ts +4 -3
  238. package/dist/assistant/v1/generated/validators/updateTaskRequestBody.zod.js +4 -3
  239. package/dist/assistant/v1/generated/validators/updateThreadRequestBody.zod.d.ts +4 -3
  240. package/dist/assistant/v1/generated/validators/updateThreadRequestBody.zod.js +4 -3
  241. package/dist/assistant/v1/generated/validators/updateUploadRequestBody.zod.d.ts +4 -3
  242. package/dist/assistant/v1/generated/validators/updateUploadRequestBody.zod.js +4 -3
  243. package/dist/assistant/v1/generated/validators/uploadConfigurationResource.zod.d.ts +4 -3
  244. package/dist/assistant/v1/generated/validators/uploadConfigurationResource.zod.js +4 -3
  245. package/dist/assistant/v1/generated/validators/{uploadAttachmentParams.zod.d.ts → uploadFileParams.zod.d.ts} +8 -7
  246. package/dist/assistant/v1/generated/validators/{uploadAttachmentParams.zod.js → uploadFileParams.zod.js} +7 -6
  247. package/dist/assistant/v1/generated/validators/uploadListResponseBody.zod.d.ts +5 -4
  248. package/dist/assistant/v1/generated/validators/uploadListResponseBody.zod.js +4 -3
  249. package/dist/assistant/v1/generated/validators/uploadPartResource.zod.d.ts +4 -3
  250. package/dist/assistant/v1/generated/validators/uploadPartResource.zod.js +4 -3
  251. package/dist/assistant/v1/generated/validators/uploadResource.zod.d.ts +5 -4
  252. package/dist/assistant/v1/generated/validators/uploadResource.zod.js +8 -4
  253. package/dist/assistant/v1/generated/validators/usage.zod.d.ts +4 -3
  254. package/dist/assistant/v1/generated/validators/usage.zod.js +4 -3
  255. package/dist/assistant/v1/generated/validators/verifyCodeRequestBody.zod.d.ts +4 -3
  256. package/dist/assistant/v1/generated/validators/verifyCodeRequestBody.zod.js +4 -3
  257. package/dist/assistant/v1/generated/validators/webhookSecretResponseBody.zod.d.ts +4 -3
  258. package/dist/assistant/v1/generated/validators/webhookSecretResponseBody.zod.js +4 -3
  259. package/dist/routes.d.ts +76 -12
  260. package/dist/routes.js +84 -12
  261. package/package.json +1 -1
@@ -20,10 +20,11 @@
20
20
  * outlines the person's messages for navigating a long conversation.
21
21
  *
22
22
  * Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
23
- * parts, then complete the upload and send its attachment id in a message.
23
+ * parts, then complete the upload and send its file id in a message.
24
24
  *
25
- * Files uploaded that way are listed by search-attachments. Renaming or removing one does not change
26
- * the conversations that already use it; downloading keeps working.
25
+ * Files the person attached are listed by search-files. Renaming or removing one does not change
26
+ * the conversations that already use it; downloading keeps working. Files the assistant hands over
27
+ * are artifacts: they appear on the tool call that created them and are listed by list-artifacts.
27
28
  * OpenAPI spec version: 2.0.0
28
29
  */
29
30
  import * as zod from "zod";
@@ -20,10 +20,11 @@
20
20
  * outlines the person's messages for navigating a long conversation.
21
21
  *
22
22
  * Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
23
- * parts, then complete the upload and send its attachment id in a message.
23
+ * parts, then complete the upload and send its file id in a message.
24
24
  *
25
- * Files uploaded that way are listed by search-attachments. Renaming or removing one does not change
26
- * the conversations that already use it; downloading keeps working.
25
+ * Files the person attached are listed by search-files. Renaming or removing one does not change
26
+ * the conversations that already use it; downloading keeps working. Files the assistant hands over
27
+ * are artifacts: they appear on the tool call that created them and are listed by list-artifacts.
27
28
  * OpenAPI spec version: 2.0.0
28
29
  */
29
30
  import * as zod from "zod";
@@ -20,10 +20,11 @@
20
20
  * outlines the person's messages for navigating a long conversation.
21
21
  *
22
22
  * Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
23
- * parts, then complete the upload and send its attachment id in a message.
23
+ * parts, then complete the upload and send its file id in a message.
24
24
  *
25
- * Files uploaded that way are listed by search-attachments. Renaming or removing one does not change
26
- * the conversations that already use it; downloading keeps working.
25
+ * Files the person attached are listed by search-files. Renaming or removing one does not change
26
+ * the conversations that already use it; downloading keeps working. Files the assistant hands over
27
+ * are artifacts: they appear on the tool call that created them and are listed by list-artifacts.
27
28
  * OpenAPI spec version: 2.0.0
28
29
  */
29
30
  import * as zod from "zod";
@@ -20,16 +20,17 @@
20
20
  * outlines the person's messages for navigating a long conversation.
21
21
  *
22
22
  * Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
23
- * parts, then complete the upload and send its attachment id in a message.
23
+ * parts, then complete the upload and send its file id in a message.
24
24
  *
25
- * Files uploaded that way are listed by search-attachments. Renaming or removing one does not change
26
- * the conversations that already use it; downloading keeps working.
25
+ * Files the person attached are listed by search-files. Renaming or removing one does not change
26
+ * the conversations that already use it; downloading keeps working. Files the assistant hands over
27
+ * are artifacts: they appear on the tool call that created them and are listed by list-artifacts.
27
28
  * OpenAPI spec version: 2.0.0
28
29
  */
29
30
  import * as zod from "zod";
30
- export declare const AttachmentCountsResource: zod.ZodObject<{
31
+ export declare const FileCountsResource: zod.ZodObject<{
31
32
  total: zod.ZodInt;
32
33
  totalBytes: zod.ZodInt;
33
34
  }, zod.z.core.$strict>;
34
- export type AttachmentCountsResource = zod.input<typeof AttachmentCountsResource>;
35
- export type AttachmentCountsResourceOutput = zod.output<typeof AttachmentCountsResource>;
35
+ export type FileCountsResource = zod.input<typeof FileCountsResource>;
36
+ export type FileCountsResourceOutput = zod.output<typeof FileCountsResource>;
@@ -20,14 +20,15 @@
20
20
  * outlines the person's messages for navigating a long conversation.
21
21
  *
22
22
  * Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
23
- * parts, then complete the upload and send its attachment id in a message.
23
+ * parts, then complete the upload and send its file id in a message.
24
24
  *
25
- * Files uploaded that way are listed by search-attachments. Renaming or removing one does not change
26
- * the conversations that already use it; downloading keeps working.
25
+ * Files the person attached are listed by search-files. Renaming or removing one does not change
26
+ * the conversations that already use it; downloading keeps working. Files the assistant hands over
27
+ * are artifacts: they appear on the tool call that created them and are listed by list-artifacts.
27
28
  * OpenAPI spec version: 2.0.0
28
29
  */
29
30
  import * as zod from "zod";
30
- export const AttachmentCountsResource = zod
31
+ export const FileCountsResource = zod
31
32
  .strictObject({
32
33
  total: zod.int(),
33
34
  totalBytes: zod.int(),
@@ -20,10 +20,11 @@
20
20
  * outlines the person's messages for navigating a long conversation.
21
21
  *
22
22
  * Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
23
- * parts, then complete the upload and send its attachment id in a message.
23
+ * parts, then complete the upload and send its file id in a message.
24
24
  *
25
- * Files uploaded that way are listed by search-attachments. Renaming or removing one does not change
26
- * the conversations that already use it; downloading keeps working.
25
+ * Files the person attached are listed by search-files. Renaming or removing one does not change
26
+ * the conversations that already use it; downloading keeps working. Files the assistant hands over
27
+ * are artifacts: they appear on the tool call that created them and are listed by list-artifacts.
27
28
  * OpenAPI spec version: 2.0.0
28
29
  */
29
30
  import * as zod from "zod";
@@ -20,10 +20,11 @@
20
20
  * outlines the person's messages for navigating a long conversation.
21
21
  *
22
22
  * Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
23
- * parts, then complete the upload and send its attachment id in a message.
23
+ * parts, then complete the upload and send its file id in a message.
24
24
  *
25
- * Files uploaded that way are listed by search-attachments. Renaming or removing one does not change
26
- * the conversations that already use it; downloading keeps working.
25
+ * Files the person attached are listed by search-files. Renaming or removing one does not change
26
+ * the conversations that already use it; downloading keeps working. Files the assistant hands over
27
+ * are artifacts: they appear on the tool call that created them and are listed by list-artifacts.
27
28
  * OpenAPI spec version: 2.0.0
28
29
  */
29
30
  import * as zod from "zod";
@@ -20,29 +20,30 @@
20
20
  * outlines the person's messages for navigating a long conversation.
21
21
  *
22
22
  * Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
23
- * parts, then complete the upload and send its attachment id in a message.
23
+ * parts, then complete the upload and send its file id in a message.
24
24
  *
25
- * Files uploaded that way are listed by search-attachments. Renaming or removing one does not change
26
- * the conversations that already use it; downloading keeps working.
25
+ * Files the person attached are listed by search-files. Renaming or removing one does not change
26
+ * the conversations that already use it; downloading keeps working. Files the assistant hands over
27
+ * are artifacts: they appear on the tool call that created them and are listed by list-artifacts.
27
28
  * OpenAPI spec version: 2.0.0
28
29
  */
29
30
  import * as zod from "zod";
30
- export declare const AttachmentListResponseBody: zod.ZodObject<{
31
- attachments: zod.ZodArray<zod.ZodObject<{
32
- byteSize: zod.ZodInt;
33
- createdAt: zod.z.ZodISODateTime;
34
- draftExpiresAt: zod.ZodNullable<zod.z.ZodISODateTime>;
35
- filename: zod.ZodString;
36
- height: zod.ZodNullable<zod.ZodInt>;
31
+ export declare const FileListResponseBody: zod.ZodObject<{
32
+ files: zod.ZodArray<zod.ZodObject<{
37
33
  id: zod.ZodString;
38
- mime: zod.ZodString;
34
+ filename: zod.ZodString;
35
+ mediaType: zod.ZodString;
39
36
  type: zod.ZodEnum<{
40
37
  text: "text";
41
38
  image: "image";
42
39
  binary: "binary";
43
40
  }>;
44
- updatedAt: zod.z.ZodISODateTime;
41
+ byteSize: zod.ZodInt;
45
42
  width: zod.ZodNullable<zod.ZodInt>;
43
+ height: zod.ZodNullable<zod.ZodInt>;
44
+ draftExpiresAt: zod.ZodNullable<zod.z.ZodISODateTime>;
45
+ createdAt: zod.z.ZodISODateTime;
46
+ updatedAt: zod.z.ZodISODateTime;
46
47
  }, zod.z.core.$strict>>;
47
48
  nextCursor: zod.ZodNullable<zod.ZodString>;
48
49
  counts: zod.ZodUnion<readonly [zod.ZodObject<{
@@ -50,5 +51,5 @@ export declare const AttachmentListResponseBody: zod.ZodObject<{
50
51
  totalBytes: zod.ZodInt;
51
52
  }, zod.z.core.$strict>, zod.ZodNull]>;
52
53
  }, zod.z.core.$strict>;
53
- export type AttachmentListResponseBody = zod.input<typeof AttachmentListResponseBody>;
54
- export type AttachmentListResponseBodyOutput = zod.output<typeof AttachmentListResponseBody>;
54
+ export type FileListResponseBody = zod.input<typeof FileListResponseBody>;
55
+ export type FileListResponseBodyOutput = zod.output<typeof FileListResponseBody>;
@@ -20,19 +20,20 @@
20
20
  * outlines the person's messages for navigating a long conversation.
21
21
  *
22
22
  * Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
23
- * parts, then complete the upload and send its attachment id in a message.
23
+ * parts, then complete the upload and send its file id in a message.
24
24
  *
25
- * Files uploaded that way are listed by search-attachments. Renaming or removing one does not change
26
- * the conversations that already use it; downloading keeps working.
25
+ * Files the person attached are listed by search-files. Renaming or removing one does not change
26
+ * the conversations that already use it; downloading keeps working. Files the assistant hands over
27
+ * are artifacts: they appear on the tool call that created them and are listed by list-artifacts.
27
28
  * OpenAPI spec version: 2.0.0
28
29
  */
29
30
  import * as zod from "zod";
30
- import { AttachmentCountsResource } from "./attachmentCountsResource.zod.js";
31
- import { AttachmentFileResource } from "./attachmentFileResource.zod.js";
32
- export const AttachmentListResponseBody = zod.strictObject({
33
- attachments: zod.array(AttachmentFileResource),
31
+ import { FileCountsResource } from "./fileCountsResource.zod.js";
32
+ import { FileResource } from "./fileResource.zod.js";
33
+ export const FileListResponseBody = zod.strictObject({
34
+ files: zod.array(FileResource),
34
35
  nextCursor: zod.string().nullable().describe("Null on the last page."),
35
36
  counts: zod
36
- .union([AttachmentCountsResource, zod.null()])
37
+ .union([FileCountsResource, zod.null()])
37
38
  .describe("Null unless `include` asked for it."),
38
39
  });
@@ -20,28 +20,29 @@
20
20
  * outlines the person's messages for navigating a long conversation.
21
21
  *
22
22
  * Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
23
- * parts, then complete the upload and send its attachment id in a message.
23
+ * parts, then complete the upload and send its file id in a message.
24
24
  *
25
- * Files uploaded that way are listed by search-attachments. Renaming or removing one does not change
26
- * the conversations that already use it; downloading keeps working.
25
+ * Files the person attached are listed by search-files. Renaming or removing one does not change
26
+ * the conversations that already use it; downloading keeps working. Files the assistant hands over
27
+ * are artifacts: they appear on the tool call that created them and are listed by list-artifacts.
27
28
  * OpenAPI spec version: 2.0.0
28
29
  */
29
30
  import * as zod from "zod";
30
- export declare const AttachmentFileResource: zod.ZodObject<{
31
- byteSize: zod.ZodInt;
32
- createdAt: zod.z.ZodISODateTime;
33
- draftExpiresAt: zod.ZodNullable<zod.z.ZodISODateTime>;
34
- filename: zod.ZodString;
35
- height: zod.ZodNullable<zod.ZodInt>;
31
+ export declare const FileResource: zod.ZodObject<{
36
32
  id: zod.ZodString;
37
- mime: zod.ZodString;
33
+ filename: zod.ZodString;
34
+ mediaType: zod.ZodString;
38
35
  type: zod.ZodEnum<{
39
36
  text: "text";
40
37
  image: "image";
41
38
  binary: "binary";
42
39
  }>;
43
- updatedAt: zod.z.ZodISODateTime;
40
+ byteSize: zod.ZodInt;
44
41
  width: zod.ZodNullable<zod.ZodInt>;
42
+ height: zod.ZodNullable<zod.ZodInt>;
43
+ draftExpiresAt: zod.ZodNullable<zod.z.ZodISODateTime>;
44
+ createdAt: zod.z.ZodISODateTime;
45
+ updatedAt: zod.z.ZodISODateTime;
45
46
  }, zod.z.core.$strict>;
46
- export type AttachmentFileResource = zod.input<typeof AttachmentFileResource>;
47
- export type AttachmentFileResourceOutput = zod.output<typeof AttachmentFileResource>;
47
+ export type FileResource = zod.input<typeof FileResource>;
48
+ export type FileResourceOutput = zod.output<typeof FileResource>;
@@ -20,25 +20,35 @@
20
20
  * outlines the person's messages for navigating a long conversation.
21
21
  *
22
22
  * Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
23
- * parts, then complete the upload and send its attachment id in a message.
23
+ * parts, then complete the upload and send its file id in a message.
24
24
  *
25
- * Files uploaded that way are listed by search-attachments. Renaming or removing one does not change
26
- * the conversations that already use it; downloading keeps working.
25
+ * Files the person attached are listed by search-files. Renaming or removing one does not change
26
+ * the conversations that already use it; downloading keeps working. Files the assistant hands over
27
+ * are artifacts: they appear on the tool call that created them and are listed by list-artifacts.
27
28
  * OpenAPI spec version: 2.0.0
28
29
  */
29
30
  import * as zod from "zod";
30
- export const UploadedResource = zod.strictObject({
31
- byteSize: zod
32
- .int()
33
- .describe("Size of what was stored. For an image that has been resized, this is the resized size, not what was uploaded."),
34
- draftExpiresAt: zod.iso
35
- .datetime({ offset: true })
36
- .describe("When this upload gets cleared if no message ever references it. Sending a message with this id makes it permanent and this stops applying — a file that belongs to a conversation is kept as long as the conversation is.\n\nIt is here so the editor can say so before it happens. An attachment chip that quietly stops working a week later reads as a bug, and the person who hits it has no way to tell that what they are seeing is a draft being collected."),
37
- filename: zod.string(),
38
- height: zod.int().nullable().describe("Null unless type is image."),
31
+ export const FileResource = zod
32
+ .strictObject({
39
33
  id: zod.string(),
34
+ filename: zod.string(),
35
+ mediaType: zod
36
+ .string()
37
+ .describe("The IANA media type detected at intake, not the Content-Type the client sent."),
40
38
  type: zod
41
39
  .enum(["image", "text", "binary"])
42
- .describe("How the assistant will see this file.\n\n- `image` — read directly, and only by models that accept image input\n- `text` — placed inline in the message when small enough, otherwise read on demand\n- `binary` — never read directly; the assistant downloads it onto a cloud instance to work with it"),
43
- width: zod.int().nullable().describe("Null unless type is image."),
44
- });
40
+ .describe("How the assistant reads the file.\n\n- `image` — read directly, and only by models that accept image input\n- `text` — placed inline in the message when small enough, otherwise read on demand\n- `binary` — never read directly; the assistant downloads it onto a host to work with it\n\nOnly an `image` can be shown in place; everything else is offered for download."),
41
+ byteSize: zod.int(),
42
+ width: zod
43
+ .int()
44
+ .nullable()
45
+ .describe("Null unless type is image. Lets a client hold the space before the image loads."),
46
+ height: zod.int().nullable().describe("Null unless type is image."),
47
+ draftExpiresAt: zod.iso
48
+ .datetime({ offset: true })
49
+ .nullable()
50
+ .describe("When this upload is cleared if no message ever references it. Null once a message, a tool\ncall or an artifact uses it; such a file is kept as long as what uses it is."),
51
+ createdAt: zod.iso.datetime({ offset: true }),
52
+ updatedAt: zod.iso.datetime({ offset: true }),
53
+ })
54
+ .describe("A stored file, wherever it appears.");
@@ -20,10 +20,11 @@
20
20
  * outlines the person's messages for navigating a long conversation.
21
21
  *
22
22
  * Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
23
- * parts, then complete the upload and send its attachment id in a message.
23
+ * parts, then complete the upload and send its file id in a message.
24
24
  *
25
- * Files uploaded that way are listed by search-attachments. Renaming or removing one does not change
26
- * the conversations that already use it; downloading keeps working.
25
+ * Files the person attached are listed by search-files. Renaming or removing one does not change
26
+ * the conversations that already use it; downloading keeps working. Files the assistant hands over
27
+ * are artifacts: they appear on the tool call that created them and are listed by list-artifacts.
27
28
  * OpenAPI spec version: 2.0.0
28
29
  */
29
30
  import * as zod from "zod";
@@ -20,10 +20,11 @@
20
20
  * outlines the person's messages for navigating a long conversation.
21
21
  *
22
22
  * Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
23
- * parts, then complete the upload and send its attachment id in a message.
23
+ * parts, then complete the upload and send its file id in a message.
24
24
  *
25
- * Files uploaded that way are listed by search-attachments. Renaming or removing one does not change
26
- * the conversations that already use it; downloading keeps working.
25
+ * Files the person attached are listed by search-files. Renaming or removing one does not change
26
+ * the conversations that already use it; downloading keeps working. Files the assistant hands over
27
+ * are artifacts: they appear on the tool call that created them and are listed by list-artifacts.
27
28
  * OpenAPI spec version: 2.0.0
28
29
  */
29
30
  import * as zod from "zod";
@@ -20,10 +20,11 @@
20
20
  * outlines the person's messages for navigating a long conversation.
21
21
  *
22
22
  * Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
23
- * parts, then complete the upload and send its attachment id in a message.
23
+ * parts, then complete the upload and send its file id in a message.
24
24
  *
25
- * Files uploaded that way are listed by search-attachments. Renaming or removing one does not change
26
- * the conversations that already use it; downloading keeps working.
25
+ * Files the person attached are listed by search-files. Renaming or removing one does not change
26
+ * the conversations that already use it; downloading keeps working. Files the assistant hands over
27
+ * are artifacts: they appear on the tool call that created them and are listed by list-artifacts.
27
28
  * OpenAPI spec version: 2.0.0
28
29
  */
29
30
  import * as zod from "zod";
@@ -20,10 +20,11 @@
20
20
  * outlines the person's messages for navigating a long conversation.
21
21
  *
22
22
  * Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
23
- * parts, then complete the upload and send its attachment id in a message.
23
+ * parts, then complete the upload and send its file id in a message.
24
24
  *
25
- * Files uploaded that way are listed by search-attachments. Renaming or removing one does not change
26
- * the conversations that already use it; downloading keeps working.
25
+ * Files the person attached are listed by search-files. Renaming or removing one does not change
26
+ * the conversations that already use it; downloading keeps working. Files the assistant hands over
27
+ * are artifacts: they appear on the tool call that created them and are listed by list-artifacts.
27
28
  * OpenAPI spec version: 2.0.0
28
29
  */
29
30
  import * as zod from "zod";
@@ -20,10 +20,11 @@
20
20
  * outlines the person's messages for navigating a long conversation.
21
21
  *
22
22
  * Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
23
- * parts, then complete the upload and send its attachment id in a message.
23
+ * parts, then complete the upload and send its file id in a message.
24
24
  *
25
- * Files uploaded that way are listed by search-attachments. Renaming or removing one does not change
26
- * the conversations that already use it; downloading keeps working.
25
+ * Files the person attached are listed by search-files. Renaming or removing one does not change
26
+ * the conversations that already use it; downloading keeps working. Files the assistant hands over
27
+ * are artifacts: they appear on the tool call that created them and are listed by list-artifacts.
27
28
  * OpenAPI spec version: 2.0.0
28
29
  */
29
30
  import * as zod from "zod";
@@ -20,10 +20,11 @@
20
20
  * outlines the person's messages for navigating a long conversation.
21
21
  *
22
22
  * Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
23
- * parts, then complete the upload and send its attachment id in a message.
23
+ * parts, then complete the upload and send its file id in a message.
24
24
  *
25
- * Files uploaded that way are listed by search-attachments. Renaming or removing one does not change
26
- * the conversations that already use it; downloading keeps working.
25
+ * Files the person attached are listed by search-files. Renaming or removing one does not change
26
+ * the conversations that already use it; downloading keeps working. Files the assistant hands over
27
+ * are artifacts: they appear on the tool call that created them and are listed by list-artifacts.
27
28
  * OpenAPI spec version: 2.0.0
28
29
  */
29
30
  import * as zod from "zod";
@@ -20,10 +20,11 @@
20
20
  * outlines the person's messages for navigating a long conversation.
21
21
  *
22
22
  * Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
23
- * parts, then complete the upload and send its attachment id in a message.
23
+ * parts, then complete the upload and send its file id in a message.
24
24
  *
25
- * Files uploaded that way are listed by search-attachments. Renaming or removing one does not change
26
- * the conversations that already use it; downloading keeps working.
25
+ * Files the person attached are listed by search-files. Renaming or removing one does not change
26
+ * the conversations that already use it; downloading keeps working. Files the assistant hands over
27
+ * are artifacts: they appear on the tool call that created them and are listed by list-artifacts.
27
28
  * OpenAPI spec version: 2.0.0
28
29
  */
29
30
  import * as zod from "zod";
@@ -20,10 +20,11 @@
20
20
  * outlines the person's messages for navigating a long conversation.
21
21
  *
22
22
  * Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
23
- * parts, then complete the upload and send its attachment id in a message.
23
+ * parts, then complete the upload and send its file id in a message.
24
24
  *
25
- * Files uploaded that way are listed by search-attachments. Renaming or removing one does not change
26
- * the conversations that already use it; downloading keeps working.
25
+ * Files the person attached are listed by search-files. Renaming or removing one does not change
26
+ * the conversations that already use it; downloading keeps working. Files the assistant hands over
27
+ * are artifacts: they appear on the tool call that created them and are listed by list-artifacts.
27
28
  * OpenAPI spec version: 2.0.0
28
29
  */
29
30
  import * as zod from "zod";
@@ -20,10 +20,11 @@
20
20
  * outlines the person's messages for navigating a long conversation.
21
21
  *
22
22
  * Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
23
- * parts, then complete the upload and send its attachment id in a message.
23
+ * parts, then complete the upload and send its file id in a message.
24
24
  *
25
- * Files uploaded that way are listed by search-attachments. Renaming or removing one does not change
26
- * the conversations that already use it; downloading keeps working.
25
+ * Files the person attached are listed by search-files. Renaming or removing one does not change
26
+ * the conversations that already use it; downloading keeps working. Files the assistant hands over
27
+ * are artifacts: they appear on the tool call that created them and are listed by list-artifacts.
27
28
  * OpenAPI spec version: 2.0.0
28
29
  */
29
30
  import * as zod from "zod";
@@ -20,10 +20,11 @@
20
20
  * outlines the person's messages for navigating a long conversation.
21
21
  *
22
22
  * Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
23
- * parts, then complete the upload and send its attachment id in a message.
23
+ * parts, then complete the upload and send its file id in a message.
24
24
  *
25
- * Files uploaded that way are listed by search-attachments. Renaming or removing one does not change
26
- * the conversations that already use it; downloading keeps working.
25
+ * Files the person attached are listed by search-files. Renaming or removing one does not change
26
+ * the conversations that already use it; downloading keeps working. Files the assistant hands over
27
+ * are artifacts: they appear on the tool call that created them and are listed by list-artifacts.
27
28
  * OpenAPI spec version: 2.0.0
28
29
  */
29
30
  import * as zod from "zod";
@@ -20,10 +20,11 @@
20
20
  * outlines the person's messages for navigating a long conversation.
21
21
  *
22
22
  * Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
23
- * parts, then complete the upload and send its attachment id in a message.
23
+ * parts, then complete the upload and send its file id in a message.
24
24
  *
25
- * Files uploaded that way are listed by search-attachments. Renaming or removing one does not change
26
- * the conversations that already use it; downloading keeps working.
25
+ * Files the person attached are listed by search-files. Renaming or removing one does not change
26
+ * the conversations that already use it; downloading keeps working. Files the assistant hands over
27
+ * are artifacts: they appear on the tool call that created them and are listed by list-artifacts.
27
28
  * OpenAPI spec version: 2.0.0
28
29
  */
29
30
  import * as zod from "zod";
@@ -20,10 +20,11 @@
20
20
  * outlines the person's messages for navigating a long conversation.
21
21
  *
22
22
  * Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
23
- * parts, then complete the upload and send its attachment id in a message.
23
+ * parts, then complete the upload and send its file id in a message.
24
24
  *
25
- * Files uploaded that way are listed by search-attachments. Renaming or removing one does not change
26
- * the conversations that already use it; downloading keeps working.
25
+ * Files the person attached are listed by search-files. Renaming or removing one does not change
26
+ * the conversations that already use it; downloading keeps working. Files the assistant hands over
27
+ * are artifacts: they appear on the tool call that created them and are listed by list-artifacts.
27
28
  * OpenAPI spec version: 2.0.0
28
29
  */
29
30
  import * as zod from "zod";
@@ -20,10 +20,11 @@
20
20
  * outlines the person's messages for navigating a long conversation.
21
21
  *
22
22
  * Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
23
- * parts, then complete the upload and send its attachment id in a message.
23
+ * parts, then complete the upload and send its file id in a message.
24
24
  *
25
- * Files uploaded that way are listed by search-attachments. Renaming or removing one does not change
26
- * the conversations that already use it; downloading keeps working.
25
+ * Files the person attached are listed by search-files. Renaming or removing one does not change
26
+ * the conversations that already use it; downloading keeps working. Files the assistant hands over
27
+ * are artifacts: they appear on the tool call that created them and are listed by list-artifacts.
27
28
  * OpenAPI spec version: 2.0.0
28
29
  */
29
30
  import * as zod from "zod";
@@ -20,10 +20,11 @@
20
20
  * outlines the person's messages for navigating a long conversation.
21
21
  *
22
22
  * Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
23
- * parts, then complete the upload and send its attachment id in a message.
23
+ * parts, then complete the upload and send its file id in a message.
24
24
  *
25
- * Files uploaded that way are listed by search-attachments. Renaming or removing one does not change
26
- * the conversations that already use it; downloading keeps working.
25
+ * Files the person attached are listed by search-files. Renaming or removing one does not change
26
+ * the conversations that already use it; downloading keeps working. Files the assistant hands over
27
+ * are artifacts: they appear on the tool call that created them and are listed by list-artifacts.
27
28
  * OpenAPI spec version: 2.0.0
28
29
  */
29
30
  import * as zod from "zod";
@@ -0,0 +1,39 @@
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
+ * through EventBus by subscribing to assistant.thread.frame and assistant.resource.updated; after a
19
+ * reconnection or an assistant.workspace.invalidated message, read them again. list-thread-messages
20
+ * outlines the person's messages for navigating a long conversation.
21
+ *
22
+ * Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
23
+ * parts, then complete the upload and send its file id in a message.
24
+ *
25
+ * Files the person attached are listed by search-files. Renaming or removing one does not change
26
+ * the conversations that already use it; downloading keeps working. Files the assistant hands over
27
+ * are artifacts: they appear on the tool call that created them and are listed by list-artifacts.
28
+ * OpenAPI spec version: 2.0.0
29
+ */
30
+ import * as zod from "zod";
31
+ export declare const listArtifactVersionsParamsCursorMax = 1024;
32
+ export declare const listArtifactVersionsParamsLimitDefault = 50;
33
+ export declare const listArtifactVersionsParamsLimitMax = 200;
34
+ export declare const ListArtifactVersionsParams: zod.ZodObject<{
35
+ cursor: zod.ZodOptional<zod.ZodString>;
36
+ limit: zod.ZodDefault<zod.ZodInt>;
37
+ }, zod.z.core.$strict>;
38
+ export type ListArtifactVersionsParams = zod.input<typeof ListArtifactVersionsParams>;
39
+ export type ListArtifactVersionsParamsOutput = zod.output<typeof ListArtifactVersionsParams>;
@@ -0,0 +1,41 @@
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
+ * through EventBus by subscribing to assistant.thread.frame and assistant.resource.updated; after a
19
+ * reconnection or an assistant.workspace.invalidated message, read them again. list-thread-messages
20
+ * outlines the person's messages for navigating a long conversation.
21
+ *
22
+ * Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
23
+ * parts, then complete the upload and send its file id in a message.
24
+ *
25
+ * Files the person attached are listed by search-files. Renaming or removing one does not change
26
+ * the conversations that already use it; downloading keeps working. Files the assistant hands over
27
+ * are artifacts: they appear on the tool call that created them and are listed by list-artifacts.
28
+ * OpenAPI spec version: 2.0.0
29
+ */
30
+ import * as zod from "zod";
31
+ export const listArtifactVersionsParamsCursorMax = 1024;
32
+ export const listArtifactVersionsParamsLimitDefault = 50;
33
+ export const listArtifactVersionsParamsLimitMax = 200;
34
+ export const ListArtifactVersionsParams = zod.strictObject({
35
+ cursor: zod.string().min(1).max(listArtifactVersionsParamsCursorMax).optional(),
36
+ limit: zod
37
+ .int()
38
+ .min(1)
39
+ .max(listArtifactVersionsParamsLimitMax)
40
+ .default(listArtifactVersionsParamsLimitDefault),
41
+ });