@leaflow/sdk 0.0.0-dev.519.g9e3ae08 → 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 (282) 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/canopy/v1/generated/functions.d.ts +73 -1
  260. package/dist/canopy/v1/generated/functions.js +92 -6
  261. package/dist/canopy/v1/generated/models.d.ts +148 -12
  262. package/dist/canopy/v1/generated/models.js +13 -0
  263. package/dist/canopy/v1/generated/schemas.zod.d.ts +49 -0
  264. package/dist/canopy/v1/generated/schemas.zod.js +28 -0
  265. package/dist/canopy/v1/generated/validators/cursorPageRequestResource.zod.d.ts +10 -0
  266. package/dist/canopy/v1/generated/validators/getVideoContentHeaders.zod.d.ts +46 -0
  267. package/dist/canopy/v1/generated/validators/getVideoContentHeaders.zod.js +44 -0
  268. package/dist/canopy/v1/generated/validators/mediaUsageDetails.zod.d.ts +61 -0
  269. package/dist/canopy/v1/generated/validators/mediaUsageDetails.zod.js +67 -0
  270. package/dist/canopy/v1/generated/validators/requestResource.zod.d.ts +10 -0
  271. package/dist/canopy/v1/generated/validators/requestResource.zod.js +2 -0
  272. package/dist/canopy/v1/generated/validators/videoCreateRequest.zod.d.ts +67 -0
  273. package/dist/canopy/v1/generated/validators/videoCreateRequest.zod.js +70 -0
  274. package/dist/canopy/v1/generated/validators/videoReferenceMedia.zod.d.ts +53 -0
  275. package/dist/canopy/v1/generated/validators/videoReferenceMedia.zod.js +53 -0
  276. package/dist/canopy/v1/generated/validators/videoTask.zod.d.ts +71 -0
  277. package/dist/canopy/v1/generated/validators/videoTask.zod.js +64 -0
  278. package/dist/canopy/v1/generated/validators/videoUsage.zod.d.ts +54 -0
  279. package/dist/canopy/v1/generated/validators/videoUsage.zod.js +62 -0
  280. package/dist/routes.d.ts +100 -12
  281. package/dist/routes.js +111 -12
  282. package/package.json +1 -1
@@ -20,13 +20,14 @@
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
- import type { AnswerQuestionRequestBody, AttachmentFileResource, AttachmentListResponseBody, BindingCodeResponseBody, BindingResource, ChannelResource, ChannelWithSecretResponseBody, CheckSenderParams, CompleteUploadRequestBody, CreateChannelRequestBody, CreateFolderRequestBody, CreateTaskRequestBody, CreateThreadRequestBody, CreateThreadResponseBody, CreateUploadRequestBody, DecideToolCallsRequestBody, ErrorResponse, FolderListResponseBody, FolderResource, LengthAwarePageBindingResource, LengthAwarePageChannelResource, ListBindingsParams, ListChannelRejectionsParams, ListChannelsParams, ListTaskRunsParams, ListThreadItemsParams, ListThreadMessagesParams, ListThreadTurnsParams, LoginResource, MemoryListResponseBody, MoveFolderRequestBody, PlaceThreadRequestBody, PlatformListResponseBody, PutUploadPartHeaders, PutUploadPartParams, RejectionListResponseBody, ResumeThreadRequestBody, RevertRequestBody, RevertedCountResponseBody, RotateSecretRequestBody, SearchAttachmentsRequestBody, SearchTasksRequestBody, SearchThreadsRequestBody, SendMessageRequestBody, SendMessageResponseBody, SenderCheckResource, SettingsResource, SkillEnabledRequestBody, SkillListResponseBody, SkillRequestBody, SkillResource, TaskListResponseBody, TaskResource, TaskRunListResponseBody, TaskRunResource, ThreadItemListResponseBody, ThreadItemResource, ThreadListResponseBody, ThreadMessageListResponseBody, ThreadResource, ThreadTurnListResponseBody, ToolResultRequestBody, TurnStartedResponseBody, UpdateAttachmentRequestBody, UpdateChannelRequestBody, UpdateFolderRequestBody, UpdateSettingsRequestBody, UpdateTaskRequestBody, UpdateThreadRequestBody, UpdateUploadRequestBody, UploadAttachmentParams, UploadConfigurationResource, UploadListResponseBody, UploadPartResource, UploadResource, UploadedResource, VerifyCodeRequestBody, WebhookSecretResponseBody } from "./models.js";
30
+ import type { AnswerQuestionRequestBody, ArtifactListResponseBody, ArtifactResource, ArtifactVersionListResponseBody, ArtifactVersionResource, BindingCodeResponseBody, BindingResource, ChannelResource, ChannelWithSecretResponseBody, CheckSenderParams, CompleteUploadRequestBody, CreateArtifactRequestBody, CreateArtifactVersionRequestBody, CreateChannelRequestBody, CreateFolderRequestBody, CreateTaskRequestBody, CreateThreadRequestBody, CreateThreadResponseBody, CreateUploadRequestBody, DecideToolCallsRequestBody, ErrorResponse, FileListResponseBody, FileResource, FolderListResponseBody, FolderResource, LengthAwarePageBindingResource, LengthAwarePageChannelResource, ListArtifactVersionsParams, ListArtifactsParams, ListBindingsParams, ListChannelRejectionsParams, ListChannelsParams, ListTaskRunsParams, ListThreadItemsParams, ListThreadMessagesParams, ListThreadTurnsParams, LoginResource, MemoryListResponseBody, MoveFolderRequestBody, PlaceThreadRequestBody, PlatformListResponseBody, PutUploadPartHeaders, PutUploadPartParams, RejectionListResponseBody, ResumeThreadRequestBody, RevertRequestBody, RevertedCountResponseBody, RotateSecretRequestBody, SearchFilesRequestBody, SearchTasksRequestBody, SearchThreadsRequestBody, SendMessageRequestBody, SendMessageResponseBody, SenderCheckResource, SettingsResource, SkillEnabledRequestBody, SkillListResponseBody, SkillRequestBody, SkillResource, TaskListResponseBody, TaskResource, TaskRunListResponseBody, TaskRunResource, ThreadItemListResponseBody, ThreadItemResource, ThreadListResponseBody, ThreadMessageListResponseBody, ThreadResource, ThreadTurnListResponseBody, ToolResultRequestBody, TurnStartedResponseBody, UpdateArtifactRequestBody, UpdateChannelRequestBody, UpdateFileRequestBody, UpdateFolderRequestBody, UpdateSettingsRequestBody, UpdateTaskRequestBody, UpdateThreadRequestBody, UpdateUploadRequestBody, UploadConfigurationResource, UploadFileParams, UploadListResponseBody, UploadPartResource, UploadResource, VerifyCodeRequestBody, WebhookSecretResponseBody } from "./models.js";
30
31
  export type HTTPStatusCode1xx = 100 | 101 | 102 | 103;
31
32
  export type HTTPStatusCode2xx = 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207;
32
33
  export type HTTPStatusCode3xx = 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308;
@@ -948,153 +949,154 @@ export declare const getUpdateSettingsUrl: () => string;
948
949
  * @summary Update settings
949
950
  */
950
951
  export declare const updateSettings: (updateSettingsRequestBody: UpdateSettingsRequestBody, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<updateSettingsResponse>;
951
- export type uploadAttachmentResponse201 = {
952
- data: UploadedResource;
952
+ export type uploadFileResponse201 = {
953
+ data: FileResource;
953
954
  status: 201;
954
955
  };
955
- export type uploadAttachmentResponseDefault = {
956
+ export type uploadFileResponseDefault = {
956
957
  data: ErrorResponse;
957
958
  status: Exclude<HTTPStatusCodes, 201>;
958
959
  };
959
- export type uploadAttachmentResponseSuccess = uploadAttachmentResponse201 & {
960
+ export type uploadFileResponseSuccess = uploadFileResponse201 & {
960
961
  headers: Headers;
961
962
  };
962
- export type uploadAttachmentResponseError = uploadAttachmentResponseDefault & {
963
+ export type uploadFileResponseError = uploadFileResponseDefault & {
963
964
  headers: Headers;
964
965
  };
965
- export type uploadAttachmentResponse = uploadAttachmentResponseSuccess | uploadAttachmentResponseError;
966
- export declare const getUploadAttachmentUrl: (params?: UploadAttachmentParams) => string;
966
+ export type uploadFileResponse = uploadFileResponseSuccess | uploadFileResponseError;
967
+ export declare const getUploadFileUrl: (params?: UploadFileParams) => string;
967
968
  /**
968
- * The body is the file bytes themselves, not multipart, one file per request. The type is determined from the content, not from Content-Type or from the name. Put the returned id in attachmentIds when sending a message.
969
+ * The body is the file bytes themselves, not multipart, one file per request. The type is determined from the content, not from Content-Type or from the name. Put the returned id in a `file` part when sending a message.
969
970
  *
970
971
  * An upload that no message ever references is a draft, and drafts are collected — `draftExpiresAt` in the response says when this one goes. Sending a message with the id makes it permanent.
971
972
  *
972
973
  * The returned `type` says how the assistant will see it. An `image` is read directly, and only by models that accept image input. A small `text` file is placed inline in the message. A large `text` file, and anything `binary`, arrives as a reference the assistant reads on demand — for a binary that usually means downloading it onto one of the project's cloud instances.
973
974
  * @summary Upload a file
974
975
  */
975
- export declare const uploadAttachment: (uploadAttachmentBody: Blob, params?: UploadAttachmentParams, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<uploadAttachmentResponse>;
976
- export type searchAttachmentsResponse200 = {
977
- data: AttachmentListResponseBody;
976
+ export declare const uploadFile: (uploadFileBody: Blob, params?: UploadFileParams, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<uploadFileResponse>;
977
+ export type searchFilesResponse200 = {
978
+ data: FileListResponseBody;
978
979
  status: 200;
979
980
  };
980
- export type searchAttachmentsResponseDefault = {
981
+ export type searchFilesResponseDefault = {
981
982
  data: ErrorResponse;
982
983
  status: Exclude<HTTPStatusCodes, 200>;
983
984
  };
984
- export type searchAttachmentsResponseSuccess = searchAttachmentsResponse200 & {
985
+ export type searchFilesResponseSuccess = searchFilesResponse200 & {
985
986
  headers: Headers;
986
987
  };
987
- export type searchAttachmentsResponseError = searchAttachmentsResponseDefault & {
988
+ export type searchFilesResponseError = searchFilesResponseDefault & {
988
989
  headers: Headers;
989
990
  };
990
- export type searchAttachmentsResponse = searchAttachmentsResponseSuccess | searchAttachmentsResponseError;
991
- export declare const getSearchAttachmentsUrl: () => string;
991
+ export type searchFilesResponse = searchFilesResponseSuccess | searchFilesResponseError;
992
+ export declare const getSearchFilesUrl: () => string;
992
993
  /**
993
- * The caller's files in this project, most recently uploaded first. These are the files
994
- * uploaded while composing messages, plus uploads that no message has referenced yet.
994
+ * The caller's library in this project, most recently uploaded first: the files they attached to
995
+ * messages, plus uploads that no message has referenced yet. Files that tools produced and
996
+ * artifacts the assistant handed over are not listed here; artifacts are listed by
997
+ * list-artifacts.
995
998
  *
996
999
  * A file with no message referencing it is a draft: `draftExpiresAt` says when it is cleared.
997
1000
  * Sending a message with the id makes it permanent and that field becomes null.
998
1001
  *
999
1002
  * Files removed from the library are not listed, but conversations that already use them keep
1000
1003
  * them and download-by-id still works.
1001
- * @summary Search attachments
1004
+ * @summary Search files
1002
1005
  */
1003
- export declare const searchAttachments: (searchAttachmentsRequestBody: SearchAttachmentsRequestBody, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<searchAttachmentsResponse>;
1004
- export type getAttachmentResponse200 = {
1005
- data: AttachmentFileResource;
1006
+ export declare const searchFiles: (searchFilesRequestBody: SearchFilesRequestBody, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<searchFilesResponse>;
1007
+ export type getFileResponse200 = {
1008
+ data: FileResource;
1006
1009
  status: 200;
1007
1010
  };
1008
- export type getAttachmentResponseDefault = {
1011
+ export type getFileResponseDefault = {
1009
1012
  data: ErrorResponse;
1010
1013
  status: Exclude<HTTPStatusCodes, 200>;
1011
1014
  };
1012
- export type getAttachmentResponseSuccess = getAttachmentResponse200 & {
1015
+ export type getFileResponseSuccess = getFileResponse200 & {
1013
1016
  headers: Headers;
1014
1017
  };
1015
- export type getAttachmentResponseError = getAttachmentResponseDefault & {
1018
+ export type getFileResponseError = getFileResponseDefault & {
1016
1019
  headers: Headers;
1017
1020
  };
1018
- export type getAttachmentResponse = getAttachmentResponseSuccess | getAttachmentResponseError;
1019
- export declare const getGetAttachmentUrl: (attachment: string) => string;
1021
+ export type getFileResponse = getFileResponseSuccess | getFileResponseError;
1022
+ export declare const getGetFileUrl: (file: string) => string;
1020
1023
  /**
1021
- * Metadata for one attachment. The bytes are at /api/v1/attachments/{attachment}:download.
1024
+ * Metadata for one file. The bytes are at /api/v1/files/{file}:download.
1022
1025
  *
1023
- * Returns 404 when the attachment does not exist, does not belong to the current user, or was
1024
- * removed from the library. Removed files stay readable through their conversations but are no
1025
- * longer described here.
1026
+ * Returns 404 when the file does not exist, does not belong to the current user, or was removed
1027
+ * from the library. Removed files stay readable through their conversations but are no longer
1028
+ * described here.
1026
1029
  * @summary Get a file
1027
1030
  */
1028
- export declare const getAttachment: (attachment: string, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<getAttachmentResponse>;
1029
- export type updateAttachmentResponse200 = {
1030
- data: AttachmentFileResource;
1031
+ export declare const getFile: (file: string, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<getFileResponse>;
1032
+ export type updateFileResponse200 = {
1033
+ data: FileResource;
1031
1034
  status: 200;
1032
1035
  };
1033
- export type updateAttachmentResponseDefault = {
1036
+ export type updateFileResponseDefault = {
1034
1037
  data: ErrorResponse;
1035
1038
  status: Exclude<HTTPStatusCodes, 200>;
1036
1039
  };
1037
- export type updateAttachmentResponseSuccess = updateAttachmentResponse200 & {
1040
+ export type updateFileResponseSuccess = updateFileResponse200 & {
1038
1041
  headers: Headers;
1039
1042
  };
1040
- export type updateAttachmentResponseError = updateAttachmentResponseDefault & {
1043
+ export type updateFileResponseError = updateFileResponseDefault & {
1041
1044
  headers: Headers;
1042
1045
  };
1043
- export type updateAttachmentResponse = updateAttachmentResponseSuccess | updateAttachmentResponseError;
1044
- export declare const getUpdateAttachmentUrl: (attachment: string) => string;
1046
+ export type updateFileResponse = updateFileResponseSuccess | updateFileResponseError;
1047
+ export declare const getUpdateFileUrl: (file: string) => string;
1045
1048
  /**
1046
- * Changes the name shown in the library and given to the assistant. The bytes and the attachment
1047
- * id do not change; conversations that already use it see the new name from their next request
1048
- * on.
1049
+ * Changes the name shown in the library and given to the assistant. The bytes and the file id do
1050
+ * not change; conversations that already use it see the new name from their next request on.
1049
1051
  * @summary Rename a file
1050
1052
  */
1051
- export declare const updateAttachment: (attachment: string, updateAttachmentRequestBody: UpdateAttachmentRequestBody, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<updateAttachmentResponse>;
1052
- export type deleteAttachmentResponse204 = {
1053
+ export declare const updateFile: (file: string, updateFileRequestBody: UpdateFileRequestBody, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<updateFileResponse>;
1054
+ export type deleteFileResponse204 = {
1053
1055
  data: void;
1054
1056
  status: 204;
1055
1057
  };
1056
- export type deleteAttachmentResponseDefault = {
1058
+ export type deleteFileResponseDefault = {
1057
1059
  data: ErrorResponse;
1058
1060
  status: Exclude<HTTPStatusCodes, 204>;
1059
1061
  };
1060
- export type deleteAttachmentResponseSuccess = deleteAttachmentResponse204 & {
1062
+ export type deleteFileResponseSuccess = deleteFileResponse204 & {
1061
1063
  headers: Headers;
1062
1064
  };
1063
- export type deleteAttachmentResponseError = deleteAttachmentResponseDefault & {
1065
+ export type deleteFileResponseError = deleteFileResponseDefault & {
1064
1066
  headers: Headers;
1065
1067
  };
1066
- export type deleteAttachmentResponse = deleteAttachmentResponseSuccess | deleteAttachmentResponseError;
1067
- export declare const getDeleteAttachmentUrl: (attachment: string) => string;
1068
+ export type deleteFileResponse = deleteFileResponseSuccess | deleteFileResponseError;
1069
+ export declare const getDeleteFileUrl: (file: string) => string;
1068
1070
  /**
1069
- * Hides the file from the library. Conversations that already use it keep it: the attachment
1070
- * stays readable by id and keeps rendering in their history. Its bytes are released when the
1071
- * project is deleted. A draft is cleared for good when its expiry passes. Idempotent.
1071
+ * Hides the file from the library. Conversations that already use it keep it: the file stays
1072
+ * readable by id and keeps rendering in their history. Its bytes are released when the project
1073
+ * is deleted. A draft is cleared for good when its expiry passes. Idempotent.
1072
1074
  * @summary Remove a file from the library
1073
1075
  */
1074
- export declare const deleteAttachment: (attachment: string, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<deleteAttachmentResponse>;
1075
- export type downloadAttachmentResponse200 = {
1076
+ export declare const deleteFile: (file: string, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<deleteFileResponse>;
1077
+ export type downloadFileResponse200 = {
1076
1078
  data: Blob;
1077
1079
  status: 200;
1078
1080
  };
1079
- export type downloadAttachmentResponseDefault = {
1081
+ export type downloadFileResponseDefault = {
1080
1082
  data: ErrorResponse;
1081
1083
  status: Exclude<HTTPStatusCodes, 200>;
1082
1084
  };
1083
- export type downloadAttachmentResponseSuccess = downloadAttachmentResponse200 & {
1085
+ export type downloadFileResponseSuccess = downloadFileResponse200 & {
1084
1086
  headers: Headers;
1085
1087
  };
1086
- export type downloadAttachmentResponseError = downloadAttachmentResponseDefault & {
1088
+ export type downloadFileResponseError = downloadFileResponseDefault & {
1087
1089
  headers: Headers;
1088
1090
  };
1089
- export type downloadAttachmentResponse = downloadAttachmentResponseSuccess | downloadAttachmentResponseError;
1090
- export declare const getDownloadAttachmentUrl: (attachment: string) => string;
1091
+ export type downloadFileResponse = downloadFileResponseSuccess | downloadFileResponseError;
1092
+ export declare const getDownloadFileUrl: (file: string) => string;
1091
1093
  /**
1092
- * Returns the original bytes for an attachment id, including one removed from the library. The response carries long-lived cache headers because the content never changes. Returns 404 when the attachment does not exist or does not belong to the current user.
1094
+ * Returns the original bytes of a file, including one removed from the library, a file a tool produced and an artifact version. The response carries long-lived cache headers because the content never changes. Returns 404 when the file does not exist or does not belong to the current user.
1093
1095
  *
1094
- * Only an attachment whose `type` is `image` comes back with its own image type and is usable as the address of an `<img>`. Everything else is served as `application/octet-stream` with `Content-Disposition: attachment`, deliberately: an uploaded file is arbitrary bytes under a name its uploader chose, and serving it back inline would run it on this origin.
1096
+ * Only a file whose `type` is `image` comes back with its own image type and is usable as the address of an `<img>`. Everything else is served as `application/octet-stream` with `Content-Disposition: attachment`, deliberately: a file is arbitrary bytes under a name chosen elsewhere, and serving it back inline would run it on this origin.
1095
1097
  * @summary Download a file
1096
1098
  */
1097
- export declare const downloadAttachment: (attachment: string, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<downloadAttachmentResponse>;
1099
+ export declare const downloadFile: (file: string, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<downloadFileResponse>;
1098
1100
  export type getUploadConfigurationResponse200 = {
1099
1101
  data: UploadConfigurationResource;
1100
1102
  status: 200;
@@ -1236,7 +1238,7 @@ export declare const getCancelUploadUrl: (upload: string) => string;
1236
1238
  */
1237
1239
  export declare const cancelUpload: (upload: string, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<cancelUploadResponse>;
1238
1240
  export type completeUploadResponse200 = {
1239
- data: UploadedResource;
1241
+ data: FileResource;
1240
1242
  status: 200;
1241
1243
  };
1242
1244
  export type completeUploadResponseDefault = {
@@ -1275,6 +1277,180 @@ export declare const getPutUploadPartUrl: (upload: string, part: number, params:
1275
1277
  * @summary Put upload part
1276
1278
  */
1277
1279
  export declare const putUploadPart: (upload: string, part: number, putUploadPartBody: Blob, params: PutUploadPartParams, headers: PutUploadPartHeaders, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<putUploadPartResponse>;
1280
+ export type listArtifactsResponse200 = {
1281
+ data: ArtifactListResponseBody;
1282
+ status: 200;
1283
+ };
1284
+ export type listArtifactsResponseDefault = {
1285
+ data: ErrorResponse;
1286
+ status: Exclude<HTTPStatusCodes, 200>;
1287
+ };
1288
+ export type listArtifactsResponseSuccess = listArtifactsResponse200 & {
1289
+ headers: Headers;
1290
+ };
1291
+ export type listArtifactsResponseError = listArtifactsResponseDefault & {
1292
+ headers: Headers;
1293
+ };
1294
+ export type listArtifactsResponse = listArtifactsResponseSuccess | listArtifactsResponseError;
1295
+ export declare const getListArtifactsUrl: (params?: ListArtifactsParams) => string;
1296
+ /**
1297
+ * The caller's artifacts in this project, most recently updated first. An artifact is a file the
1298
+ * assistant handed over, kept under one title across its versions: a later version replaces what
1299
+ * the person sees, and earlier versions stay readable.
1300
+ *
1301
+ * With `thread`, only artifacts that have a version created in that conversation are listed.
1302
+ * @summary List artifacts
1303
+ */
1304
+ export declare const listArtifacts: (params?: ListArtifactsParams, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<listArtifactsResponse>;
1305
+ export type createArtifactResponse201 = {
1306
+ data: ArtifactResource;
1307
+ status: 201;
1308
+ };
1309
+ export type createArtifactResponseDefault = {
1310
+ data: ErrorResponse;
1311
+ status: Exclude<HTTPStatusCodes, 201>;
1312
+ };
1313
+ export type createArtifactResponseSuccess = createArtifactResponse201 & {
1314
+ headers: Headers;
1315
+ };
1316
+ export type createArtifactResponseError = createArtifactResponseDefault & {
1317
+ headers: Headers;
1318
+ };
1319
+ export type createArtifactResponse = createArtifactResponseSuccess | createArtifactResponseError;
1320
+ export declare const getCreateArtifactUrl: () => string;
1321
+ /**
1322
+ * Makes a file the first version of a new artifact. The file must belong to the caller in this
1323
+ * project. Fails with 404 and code FILE_NOT_FOUND when it does not.
1324
+ * @summary Create an artifact
1325
+ */
1326
+ export declare const createArtifact: (createArtifactRequestBody: CreateArtifactRequestBody, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<createArtifactResponse>;
1327
+ export type getArtifactResponse200 = {
1328
+ data: ArtifactResource;
1329
+ status: 200;
1330
+ };
1331
+ export type getArtifactResponseDefault = {
1332
+ data: ErrorResponse;
1333
+ status: Exclude<HTTPStatusCodes, 200>;
1334
+ };
1335
+ export type getArtifactResponseSuccess = getArtifactResponse200 & {
1336
+ headers: Headers;
1337
+ };
1338
+ export type getArtifactResponseError = getArtifactResponseDefault & {
1339
+ headers: Headers;
1340
+ };
1341
+ export type getArtifactResponse = getArtifactResponseSuccess | getArtifactResponseError;
1342
+ export declare const getGetArtifactUrl: (artifact: string) => string;
1343
+ /**
1344
+ * @summary Get an artifact
1345
+ */
1346
+ export declare const getArtifact: (artifact: string, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<getArtifactResponse>;
1347
+ export type updateArtifactResponse200 = {
1348
+ data: ArtifactResource;
1349
+ status: 200;
1350
+ };
1351
+ export type updateArtifactResponseDefault = {
1352
+ data: ErrorResponse;
1353
+ status: Exclude<HTTPStatusCodes, 200>;
1354
+ };
1355
+ export type updateArtifactResponseSuccess = updateArtifactResponse200 & {
1356
+ headers: Headers;
1357
+ };
1358
+ export type updateArtifactResponseError = updateArtifactResponseDefault & {
1359
+ headers: Headers;
1360
+ };
1361
+ export type updateArtifactResponse = updateArtifactResponseSuccess | updateArtifactResponseError;
1362
+ export declare const getUpdateArtifactUrl: (artifact: string) => string;
1363
+ /**
1364
+ * Changes the title shown for every version. The versions and their files do not change.
1365
+ * @summary Rename an artifact
1366
+ */
1367
+ export declare const updateArtifact: (artifact: string, updateArtifactRequestBody: UpdateArtifactRequestBody, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<updateArtifactResponse>;
1368
+ export type deleteArtifactResponse204 = {
1369
+ data: void;
1370
+ status: 204;
1371
+ };
1372
+ export type deleteArtifactResponseDefault = {
1373
+ data: ErrorResponse;
1374
+ status: Exclude<HTTPStatusCodes, 204>;
1375
+ };
1376
+ export type deleteArtifactResponseSuccess = deleteArtifactResponse204 & {
1377
+ headers: Headers;
1378
+ };
1379
+ export type deleteArtifactResponseError = deleteArtifactResponseDefault & {
1380
+ headers: Headers;
1381
+ };
1382
+ export type deleteArtifactResponse = deleteArtifactResponseSuccess | deleteArtifactResponseError;
1383
+ export declare const getDeleteArtifactUrl: (artifact: string) => string;
1384
+ /**
1385
+ * Removes the artifact and its versions from lists, and the assistant can no longer add versions
1386
+ * to it. Conversations that showed a version keep showing it, and its file stays downloadable.
1387
+ * Idempotent.
1388
+ * @summary Delete an artifact
1389
+ */
1390
+ export declare const deleteArtifact: (artifact: string, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<deleteArtifactResponse>;
1391
+ export type listArtifactVersionsResponse200 = {
1392
+ data: ArtifactVersionListResponseBody;
1393
+ status: 200;
1394
+ };
1395
+ export type listArtifactVersionsResponseDefault = {
1396
+ data: ErrorResponse;
1397
+ status: Exclude<HTTPStatusCodes, 200>;
1398
+ };
1399
+ export type listArtifactVersionsResponseSuccess = listArtifactVersionsResponse200 & {
1400
+ headers: Headers;
1401
+ };
1402
+ export type listArtifactVersionsResponseError = listArtifactVersionsResponseDefault & {
1403
+ headers: Headers;
1404
+ };
1405
+ export type listArtifactVersionsResponse = listArtifactVersionsResponseSuccess | listArtifactVersionsResponseError;
1406
+ export declare const getListArtifactVersionsUrl: (artifact: string, params?: ListArtifactVersionsParams) => string;
1407
+ /**
1408
+ * The versions of an artifact, newest first.
1409
+ * @summary List artifact versions
1410
+ */
1411
+ export declare const listArtifactVersions: (artifact: string, params?: ListArtifactVersionsParams, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<listArtifactVersionsResponse>;
1412
+ export type createArtifactVersionResponse201 = {
1413
+ data: ArtifactVersionResource;
1414
+ status: 201;
1415
+ };
1416
+ export type createArtifactVersionResponseDefault = {
1417
+ data: ErrorResponse;
1418
+ status: Exclude<HTTPStatusCodes, 201>;
1419
+ };
1420
+ export type createArtifactVersionResponseSuccess = createArtifactVersionResponse201 & {
1421
+ headers: Headers;
1422
+ };
1423
+ export type createArtifactVersionResponseError = createArtifactVersionResponseDefault & {
1424
+ headers: Headers;
1425
+ };
1426
+ export type createArtifactVersionResponse = createArtifactVersionResponseSuccess | createArtifactVersionResponseError;
1427
+ export declare const getCreateArtifactVersionUrl: (artifact: string) => string;
1428
+ /**
1429
+ * Makes a file the newest version of the artifact. The file must belong to the caller in this
1430
+ * project. Fails with 404 and code FILE_NOT_FOUND when it does not.
1431
+ * @summary Add a version
1432
+ */
1433
+ export declare const createArtifactVersion: (artifact: string, createArtifactVersionRequestBody: CreateArtifactVersionRequestBody, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<createArtifactVersionResponse>;
1434
+ export type getArtifactVersionResponse200 = {
1435
+ data: ArtifactVersionResource;
1436
+ status: 200;
1437
+ };
1438
+ export type getArtifactVersionResponseDefault = {
1439
+ data: ErrorResponse;
1440
+ status: Exclude<HTTPStatusCodes, 200>;
1441
+ };
1442
+ export type getArtifactVersionResponseSuccess = getArtifactVersionResponse200 & {
1443
+ headers: Headers;
1444
+ };
1445
+ export type getArtifactVersionResponseError = getArtifactVersionResponseDefault & {
1446
+ headers: Headers;
1447
+ };
1448
+ export type getArtifactVersionResponse = getArtifactVersionResponseSuccess | getArtifactVersionResponseError;
1449
+ export declare const getGetArtifactVersionUrl: (artifact: string, version: string) => string;
1450
+ /**
1451
+ * @summary Get an artifact version
1452
+ */
1453
+ export declare const getArtifactVersion: (artifact: string, version: string, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<getArtifactVersionResponse>;
1278
1454
  export type listMemoriesResponse200 = {
1279
1455
  data: MemoryListResponseBody;
1280
1456
  status: 200;