@leaflow/sdk 0.0.0-dev.358.gbb34078 → 0.0.0-dev.361.gefdc428

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 (943) hide show
  1. package/dist/assistant/v1/generated/functions.d.ts +1280 -560
  2. package/dist/assistant/v1/generated/functions.js +1288 -447
  3. package/dist/assistant/v1/generated/models.d.ts +1777 -979
  4. package/dist/assistant/v1/generated/models.js +196 -83
  5. package/dist/assistant/v1/generated/schemas.zod.d.ts +728 -313
  6. package/dist/assistant/v1/generated/schemas.zod.js +635 -274
  7. package/dist/assistant/v1/generated/validators/answerQuestionRequestBody.zod.d.ts +30 -0
  8. package/dist/assistant/v1/generated/validators/answerQuestionRequestBody.zod.js +28 -0
  9. package/dist/assistant/v1/generated/validators/approvalMode.zod.d.ts +32 -0
  10. package/dist/assistant/v1/generated/validators/approvalMode.zod.js +28 -0
  11. package/dist/assistant/v1/generated/validators/attachmentResource.zod.d.ts +19 -43
  12. package/dist/assistant/v1/generated/validators/attachmentResource.zod.js +23 -47
  13. package/dist/assistant/v1/generated/validators/bindingCodeResponseBody.zod.d.ts +15 -39
  14. package/dist/assistant/v1/generated/validators/bindingCodeResponseBody.zod.js +15 -39
  15. package/dist/assistant/v1/generated/validators/bindingResource.zod.d.ts +16 -40
  16. package/dist/assistant/v1/generated/validators/bindingResource.zod.js +16 -40
  17. package/dist/assistant/v1/generated/validators/channelResource.zod.d.ts +18 -42
  18. package/dist/assistant/v1/generated/validators/channelResource.zod.js +17 -41
  19. package/dist/assistant/v1/generated/validators/channelWithSecretResponseBody.zod.d.ts +18 -42
  20. package/dist/assistant/v1/generated/validators/channelWithSecretResponseBody.zod.js +17 -41
  21. package/dist/assistant/v1/generated/validators/checkSenderParams.zod.d.ts +15 -39
  22. package/dist/assistant/v1/generated/validators/checkSenderParams.zod.js +15 -39
  23. package/dist/assistant/v1/generated/validators/choiceResource.zod.d.ts +31 -0
  24. package/dist/assistant/v1/generated/validators/choiceResource.zod.js +29 -0
  25. package/dist/assistant/v1/generated/validators/clientActionRequest.zod.d.ts +21 -45
  26. package/dist/assistant/v1/generated/validators/clientActionRequest.zod.js +20 -47
  27. package/dist/assistant/v1/generated/validators/clientContextPart.zod.d.ts +16 -40
  28. package/dist/assistant/v1/generated/validators/clientContextPart.zod.js +17 -41
  29. package/dist/assistant/v1/generated/validators/clientContextRequest.zod.d.ts +23 -47
  30. package/dist/assistant/v1/generated/validators/clientContextRequest.zod.js +24 -48
  31. package/dist/assistant/v1/generated/validators/clientFunctionRequest.zod.d.ts +18 -42
  32. package/dist/assistant/v1/generated/validators/clientFunctionRequest.zod.js +24 -50
  33. package/dist/assistant/v1/generated/validators/commandListResponseBody.zod.d.ts +35 -0
  34. package/dist/assistant/v1/generated/validators/commandListResponseBody.zod.js +29 -0
  35. package/dist/assistant/v1/generated/validators/commandResource.zod.d.ts +33 -0
  36. package/dist/assistant/v1/generated/validators/commandResource.zod.js +33 -0
  37. package/dist/assistant/v1/generated/validators/commandResultResource.zod.d.ts +201 -0
  38. package/dist/assistant/v1/generated/validators/commandResultResource.zod.js +37 -0
  39. package/dist/assistant/v1/generated/validators/completeUploadRequestBody.zod.d.ts +30 -0
  40. package/dist/assistant/v1/generated/validators/completeUploadRequestBody.zod.js +28 -0
  41. package/dist/assistant/v1/generated/validators/contextUsageResource.zod.d.ts +31 -0
  42. package/dist/assistant/v1/generated/validators/contextUsageResource.zod.js +37 -0
  43. package/dist/assistant/v1/generated/validators/createChannelRequestBody.zod.d.ts +15 -39
  44. package/dist/assistant/v1/generated/validators/createChannelRequestBody.zod.js +15 -39
  45. package/dist/assistant/v1/generated/validators/createFolderRequestBody.zod.d.ts +15 -39
  46. package/dist/assistant/v1/generated/validators/createFolderRequestBody.zod.js +15 -39
  47. package/dist/assistant/v1/generated/validators/createTaskRequestBody.zod.d.ts +61 -0
  48. package/dist/assistant/v1/generated/validators/createTaskRequestBody.zod.js +35 -0
  49. package/dist/assistant/v1/generated/validators/createThreadRequestBody.zod.d.ts +51 -41
  50. package/dist/assistant/v1/generated/validators/createThreadRequestBody.zod.js +33 -47
  51. package/dist/assistant/v1/generated/validators/createThreadResponseBody.zod.d.ts +118 -0
  52. package/dist/assistant/v1/generated/validators/createThreadResponseBody.zod.js +33 -0
  53. package/dist/assistant/v1/generated/validators/createUploadRequestBody.zod.d.ts +37 -0
  54. package/dist/assistant/v1/generated/validators/createUploadRequestBody.zod.js +35 -0
  55. package/dist/assistant/v1/generated/validators/credentialFieldResource.zod.d.ts +15 -39
  56. package/dist/assistant/v1/generated/validators/credentialFieldResource.zod.js +15 -39
  57. package/dist/assistant/v1/generated/validators/cursorPagination.zod.d.ts +15 -39
  58. package/dist/assistant/v1/generated/validators/cursorPagination.zod.js +15 -39
  59. package/dist/assistant/v1/generated/validators/decideToolCallsRequestBody.zod.d.ts +33 -0
  60. package/dist/assistant/v1/generated/validators/decideToolCallsRequestBody.zod.js +38 -0
  61. package/dist/assistant/v1/generated/validators/defaultModelResource.zod.d.ts +39 -0
  62. package/dist/assistant/v1/generated/validators/defaultModelResource.zod.js +38 -0
  63. package/dist/assistant/v1/generated/validators/error.zod.d.ts +15 -39
  64. package/dist/assistant/v1/generated/validators/error.zod.js +15 -39
  65. package/dist/assistant/v1/generated/validators/fileDiffResource.zod.d.ts +18 -42
  66. package/dist/assistant/v1/generated/validators/fileDiffResource.zod.js +22 -46
  67. package/dist/assistant/v1/generated/validators/folderCountsResource.zod.d.ts +35 -0
  68. package/dist/assistant/v1/generated/validators/folderCountsResource.zod.js +35 -0
  69. package/dist/assistant/v1/generated/validators/folderListResponseBody.zod.d.ts +28 -43
  70. package/dist/assistant/v1/generated/validators/folderListResponseBody.zod.js +16 -40
  71. package/dist/assistant/v1/generated/validators/folderResource.zod.d.ts +27 -41
  72. package/dist/assistant/v1/generated/validators/folderResource.zod.js +23 -43
  73. package/dist/assistant/v1/generated/validators/itemFrame.zod.d.ts +36 -0
  74. package/dist/assistant/v1/generated/validators/itemFrame.zod.js +32 -0
  75. package/dist/assistant/v1/generated/validators/itemSourceResource.zod.d.ts +36 -0
  76. package/dist/assistant/v1/generated/validators/itemSourceResource.zod.js +31 -0
  77. package/dist/assistant/v1/generated/validators/lastTurnResource.zod.d.ts +43 -0
  78. package/dist/assistant/v1/generated/validators/lastTurnResource.zod.js +37 -0
  79. package/dist/assistant/v1/generated/validators/lengthAwarePageBindingResource.zod.d.ts +16 -40
  80. package/dist/assistant/v1/generated/validators/lengthAwarePageBindingResource.zod.js +15 -39
  81. package/dist/assistant/v1/generated/validators/lengthAwarePageChannelResource.zod.d.ts +18 -42
  82. package/dist/assistant/v1/generated/validators/lengthAwarePageChannelResource.zod.js +15 -39
  83. package/dist/assistant/v1/generated/validators/listBindingsParams.zod.d.ts +15 -39
  84. package/dist/assistant/v1/generated/validators/listBindingsParams.zod.js +15 -39
  85. package/dist/assistant/v1/generated/validators/listChannelRejectionsParams.zod.d.ts +15 -39
  86. package/dist/assistant/v1/generated/validators/listChannelRejectionsParams.zod.js +15 -39
  87. package/dist/assistant/v1/generated/validators/listChannelsParams.zod.d.ts +15 -39
  88. package/dist/assistant/v1/generated/validators/listChannelsParams.zod.js +15 -39
  89. package/dist/assistant/v1/generated/validators/listTaskRunsParams.zod.d.ts +34 -0
  90. package/dist/assistant/v1/generated/validators/listTaskRunsParams.zod.js +32 -0
  91. package/dist/assistant/v1/generated/validators/listThreadItemsParams.zod.d.ts +38 -0
  92. package/dist/assistant/v1/generated/validators/listThreadItemsParams.zod.js +40 -0
  93. package/dist/assistant/v1/generated/validators/listThreadTurnsParams.zod.d.ts +36 -0
  94. package/dist/assistant/v1/generated/validators/listThreadTurnsParams.zod.js +38 -0
  95. package/dist/assistant/v1/generated/validators/loginResource.zod.d.ts +15 -39
  96. package/dist/assistant/v1/generated/validators/loginResource.zod.js +15 -39
  97. package/dist/assistant/v1/generated/validators/memoryListResponseBody.zod.d.ts +15 -39
  98. package/dist/assistant/v1/generated/validators/memoryListResponseBody.zod.js +15 -39
  99. package/dist/assistant/v1/generated/validators/memoryResource.zod.d.ts +15 -39
  100. package/dist/assistant/v1/generated/validators/memoryResource.zod.js +15 -39
  101. package/dist/assistant/v1/generated/validators/messagePart.zod.d.ts +17 -41
  102. package/dist/assistant/v1/generated/validators/messagePart.zod.js +20 -47
  103. package/dist/assistant/v1/generated/validators/moveFolderRequestBody.zod.d.ts +32 -0
  104. package/dist/assistant/v1/generated/validators/moveFolderRequestBody.zod.js +30 -0
  105. package/dist/assistant/v1/generated/validators/offsetPagination.zod.d.ts +15 -39
  106. package/dist/assistant/v1/generated/validators/offsetPagination.zod.js +15 -39
  107. package/dist/assistant/v1/generated/validators/openRealtimeParams.zod.d.ts +31 -0
  108. package/dist/assistant/v1/generated/validators/openRealtimeParams.zod.js +29 -0
  109. package/dist/assistant/v1/generated/validators/partResource.zod.d.ts +17 -41
  110. package/dist/assistant/v1/generated/validators/partResource.zod.js +21 -45
  111. package/dist/assistant/v1/generated/validators/pendingActionResource.zod.d.ts +35 -0
  112. package/dist/assistant/v1/generated/validators/pendingActionResource.zod.js +37 -0
  113. package/dist/assistant/v1/generated/validators/placeThreadRequestBody.zod.d.ts +33 -0
  114. package/dist/assistant/v1/generated/validators/placeThreadRequestBody.zod.js +34 -0
  115. package/dist/assistant/v1/generated/validators/platformListResponseBody.zod.d.ts +15 -39
  116. package/dist/assistant/v1/generated/validators/platformListResponseBody.zod.js +15 -39
  117. package/dist/assistant/v1/generated/validators/platformResource.zod.d.ts +15 -39
  118. package/dist/assistant/v1/generated/validators/platformResource.zod.js +15 -39
  119. package/dist/assistant/v1/generated/validators/presentationResource.zod.d.ts +23 -47
  120. package/dist/assistant/v1/generated/validators/presentationResource.zod.js +20 -42
  121. package/dist/assistant/v1/generated/validators/putUploadPartHeaders.zod.d.ts +30 -0
  122. package/dist/assistant/v1/generated/validators/putUploadPartHeaders.zod.js +28 -0
  123. package/dist/assistant/v1/generated/validators/putUploadPartParams.zod.d.ts +30 -0
  124. package/dist/assistant/v1/generated/validators/putUploadPartParams.zod.js +28 -0
  125. package/dist/assistant/v1/generated/validators/questionResource.zod.d.ts +36 -0
  126. package/dist/assistant/v1/generated/validators/questionResource.zod.js +34 -0
  127. package/dist/assistant/v1/generated/validators/realtimeClientMessage.zod.d.ts +38 -0
  128. package/dist/assistant/v1/generated/validators/realtimeClientMessage.zod.js +42 -0
  129. package/dist/assistant/v1/generated/validators/realtimeExchange.zod.d.ts +278 -0
  130. package/dist/assistant/v1/generated/validators/realtimeExchange.zod.js +33 -0
  131. package/dist/assistant/v1/generated/validators/realtimeServerMessage.zod.d.ts +267 -0
  132. package/dist/assistant/v1/generated/validators/realtimeServerMessage.zod.js +64 -0
  133. package/dist/assistant/v1/generated/validators/realtimeTicketResource.zod.d.ts +32 -0
  134. package/dist/assistant/v1/generated/validators/realtimeTicketResource.zod.js +30 -0
  135. package/dist/assistant/v1/generated/validators/reasoningEffort.zod.d.ts +32 -0
  136. package/dist/assistant/v1/generated/validators/reasoningEffort.zod.js +28 -0
  137. package/dist/assistant/v1/generated/validators/rejectionListResponseBody.zod.d.ts +15 -39
  138. package/dist/assistant/v1/generated/validators/rejectionListResponseBody.zod.js +15 -39
  139. package/dist/assistant/v1/generated/validators/rejectionResource.zod.d.ts +15 -39
  140. package/dist/assistant/v1/generated/validators/rejectionResource.zod.js +15 -39
  141. package/dist/assistant/v1/generated/validators/resumeThreadRequestBody.zod.d.ts +31 -0
  142. package/dist/assistant/v1/generated/validators/resumeThreadRequestBody.zod.js +33 -0
  143. package/dist/assistant/v1/generated/validators/revertRequestBody.zod.d.ts +16 -39
  144. package/dist/assistant/v1/generated/validators/revertRequestBody.zod.js +18 -40
  145. package/dist/assistant/v1/generated/validators/revertedCountResponseBody.zod.d.ts +16 -39
  146. package/dist/assistant/v1/generated/validators/revertedCountResponseBody.zod.js +17 -40
  147. package/dist/assistant/v1/generated/validators/rotateSecretRequestBody.zod.d.ts +15 -39
  148. package/dist/assistant/v1/generated/validators/rotateSecretRequestBody.zod.js +15 -39
  149. package/dist/assistant/v1/generated/validators/runCommandRequestBody.zod.d.ts +33 -0
  150. package/dist/assistant/v1/generated/validators/runCommandRequestBody.zod.js +39 -0
  151. package/dist/assistant/v1/generated/validators/searchTasksRequestBody.zod.d.ts +52 -0
  152. package/dist/assistant/v1/generated/validators/searchTasksRequestBody.zod.js +45 -0
  153. package/dist/assistant/v1/generated/validators/searchThreadsRequestBody.zod.d.ts +62 -0
  154. package/dist/assistant/v1/generated/validators/searchThreadsRequestBody.zod.js +83 -0
  155. package/dist/assistant/v1/generated/validators/sendMessageRequestBody.zod.d.ts +28 -52
  156. package/dist/assistant/v1/generated/validators/sendMessageRequestBody.zod.js +17 -41
  157. package/dist/assistant/v1/generated/validators/sendMessageResponseBody.zod.d.ts +33 -0
  158. package/dist/assistant/v1/generated/validators/sendMessageResponseBody.zod.js +37 -0
  159. package/dist/assistant/v1/generated/validators/senderCheckResource.zod.d.ts +15 -39
  160. package/dist/assistant/v1/generated/validators/senderCheckResource.zod.js +15 -39
  161. package/dist/assistant/v1/generated/validators/settingsResource.zod.d.ts +47 -0
  162. package/dist/assistant/v1/generated/validators/settingsResource.zod.js +34 -0
  163. package/dist/assistant/v1/generated/validators/skillEnabledRequestBody.zod.d.ts +15 -39
  164. package/dist/assistant/v1/generated/validators/skillEnabledRequestBody.zod.js +15 -39
  165. package/dist/assistant/v1/generated/validators/skillListResponseBody.zod.d.ts +15 -39
  166. package/dist/assistant/v1/generated/validators/skillListResponseBody.zod.js +15 -39
  167. package/dist/assistant/v1/generated/validators/skillRequestBody.zod.d.ts +15 -39
  168. package/dist/assistant/v1/generated/validators/skillRequestBody.zod.js +15 -39
  169. package/dist/assistant/v1/generated/validators/skillResource.zod.d.ts +15 -39
  170. package/dist/assistant/v1/generated/validators/skillResource.zod.js +15 -39
  171. package/dist/assistant/v1/generated/validators/statusReportResource.zod.d.ts +108 -0
  172. package/dist/assistant/v1/generated/validators/statusReportResource.zod.js +48 -0
  173. package/dist/assistant/v1/generated/validators/subagentCountResource.zod.d.ts +33 -0
  174. package/dist/assistant/v1/generated/validators/subagentCountResource.zod.js +31 -0
  175. package/dist/assistant/v1/generated/validators/taskAction.zod.d.ts +41 -0
  176. package/dist/assistant/v1/generated/validators/taskAction.zod.js +51 -0
  177. package/dist/assistant/v1/generated/validators/taskListResponseBody.zod.d.ts +89 -0
  178. package/dist/assistant/v1/generated/validators/taskListResponseBody.zod.js +30 -0
  179. package/dist/assistant/v1/generated/validators/taskResource.zod.d.ts +86 -0
  180. package/dist/assistant/v1/generated/validators/taskResource.zod.js +45 -0
  181. package/dist/assistant/v1/generated/validators/taskRunListResponseBody.zod.d.ts +47 -0
  182. package/dist/assistant/v1/generated/validators/taskRunListResponseBody.zod.js +30 -0
  183. package/dist/assistant/v1/generated/validators/taskRunResource.zod.d.ts +44 -0
  184. package/dist/assistant/v1/generated/validators/taskRunResource.zod.js +38 -0
  185. package/dist/assistant/v1/generated/validators/taskTrigger.zod.d.ts +51 -0
  186. package/dist/assistant/v1/generated/validators/taskTrigger.zod.js +64 -0
  187. package/dist/assistant/v1/generated/validators/threadCountsResource.zod.d.ts +37 -0
  188. package/dist/assistant/v1/generated/validators/threadCountsResource.zod.js +37 -0
  189. package/dist/assistant/v1/generated/validators/threadItemListResponseBody.zod.d.ts +234 -0
  190. package/dist/assistant/v1/generated/validators/threadItemListResponseBody.zod.js +46 -0
  191. package/dist/assistant/v1/generated/validators/threadItemResource.zod.d.ts +127 -0
  192. package/dist/assistant/v1/generated/validators/threadItemResource.zod.js +84 -0
  193. package/dist/assistant/v1/generated/validators/threadListResponseBody.zod.d.ts +102 -48
  194. package/dist/assistant/v1/generated/validators/threadListResponseBody.zod.js +22 -45
  195. package/dist/assistant/v1/generated/validators/threadResource.zod.d.ts +116 -0
  196. package/dist/assistant/v1/generated/validators/threadResource.zod.js +94 -0
  197. package/dist/assistant/v1/generated/validators/threadStatus.zod.d.ts +35 -0
  198. package/dist/assistant/v1/generated/validators/threadStatus.zod.js +28 -0
  199. package/dist/assistant/v1/generated/validators/threadTurnListResponseBody.zod.d.ts +74 -0
  200. package/dist/assistant/v1/generated/validators/threadTurnListResponseBody.zod.js +30 -0
  201. package/dist/assistant/v1/generated/validators/threadTurnResource.zod.d.ts +72 -0
  202. package/dist/assistant/v1/generated/validators/threadTurnResource.zod.js +69 -0
  203. package/dist/assistant/v1/generated/validators/todoResource.zod.d.ts +17 -41
  204. package/dist/assistant/v1/generated/validators/todoResource.zod.js +18 -42
  205. package/dist/assistant/v1/generated/validators/toolCallResource.zod.d.ts +64 -0
  206. package/dist/assistant/v1/generated/validators/toolCallResource.zod.js +71 -0
  207. package/dist/assistant/v1/generated/validators/toolResultRequestBody.zod.d.ts +36 -0
  208. package/dist/assistant/v1/generated/validators/toolResultRequestBody.zod.js +48 -0
  209. package/dist/assistant/v1/generated/validators/turnStartedResponseBody.zod.d.ts +30 -0
  210. package/dist/assistant/v1/generated/validators/turnStartedResponseBody.zod.js +28 -0
  211. package/dist/assistant/v1/generated/validators/turnStatus.zod.d.ts +34 -0
  212. package/dist/assistant/v1/generated/validators/turnStatus.zod.js +28 -0
  213. package/dist/assistant/v1/generated/validators/turnType.zod.d.ts +31 -0
  214. package/dist/assistant/v1/generated/validators/turnType.zod.js +28 -0
  215. package/dist/assistant/v1/generated/validators/updateChannelRequestBody.zod.d.ts +15 -39
  216. package/dist/assistant/v1/generated/validators/updateChannelRequestBody.zod.js +15 -39
  217. package/dist/assistant/v1/generated/validators/updateFolderRequestBody.zod.d.ts +15 -39
  218. package/dist/assistant/v1/generated/validators/updateFolderRequestBody.zod.js +15 -39
  219. package/dist/assistant/v1/generated/validators/updateSettingsRequestBody.zod.d.ts +36 -0
  220. package/dist/assistant/v1/generated/validators/updateSettingsRequestBody.zod.js +31 -0
  221. package/dist/assistant/v1/generated/validators/updateTaskRequestBody.zod.d.ts +59 -0
  222. package/dist/assistant/v1/generated/validators/updateTaskRequestBody.zod.js +33 -0
  223. package/dist/assistant/v1/generated/validators/updateThreadRequestBody.zod.d.ts +23 -44
  224. package/dist/assistant/v1/generated/validators/updateThreadRequestBody.zod.js +22 -59
  225. package/dist/assistant/v1/generated/validators/updateUploadRequestBody.zod.d.ts +31 -0
  226. package/dist/assistant/v1/generated/validators/updateUploadRequestBody.zod.js +29 -0
  227. package/dist/assistant/v1/generated/validators/uploadAttachmentParams.zod.d.ts +15 -39
  228. package/dist/assistant/v1/generated/validators/uploadAttachmentParams.zod.js +15 -39
  229. package/dist/assistant/v1/generated/validators/uploadConfigurationResource.zod.d.ts +35 -0
  230. package/dist/assistant/v1/generated/validators/uploadConfigurationResource.zod.js +33 -0
  231. package/dist/assistant/v1/generated/validators/uploadListResponseBody.zod.d.ts +44 -0
  232. package/dist/assistant/v1/generated/validators/uploadListResponseBody.zod.js +29 -0
  233. package/dist/assistant/v1/generated/validators/uploadPartResource.zod.d.ts +32 -0
  234. package/dist/assistant/v1/generated/validators/uploadPartResource.zod.js +30 -0
  235. package/dist/assistant/v1/generated/validators/uploadResource.zod.d.ts +42 -0
  236. package/dist/assistant/v1/generated/validators/uploadResource.zod.js +37 -0
  237. package/dist/assistant/v1/generated/validators/uploadedResource.zod.d.ts +16 -40
  238. package/dist/assistant/v1/generated/validators/uploadedResource.zod.js +18 -42
  239. package/dist/assistant/v1/generated/validators/usage.zod.d.ts +44 -0
  240. package/dist/assistant/v1/generated/validators/usage.zod.js +61 -0
  241. package/dist/assistant/v1/generated/validators/verifyCodeRequestBody.zod.d.ts +15 -39
  242. package/dist/assistant/v1/generated/validators/verifyCodeRequestBody.zod.js +15 -39
  243. package/dist/assistant/v1/generated/validators/webhookSecretResponseBody.zod.d.ts +15 -39
  244. package/dist/assistant/v1/generated/validators/webhookSecretResponseBody.zod.js +15 -39
  245. package/dist/billing/type/order/v1/generated/models.d.ts +71 -33
  246. package/dist/billing/type/order/v1/generated/models.js +2 -1
  247. package/dist/billing/type/order/v1/generated/validators/allowance.zod.d.ts +1 -1
  248. package/dist/billing/type/order/v1/generated/validators/allowanceList.zod.d.ts +1 -1
  249. package/dist/billing/type/order/v1/generated/validators/cancelSubscriptionRequest.zod.js +2 -2
  250. package/dist/billing/type/order/v1/generated/validators/cancellation.zod.js +2 -2
  251. package/dist/billing/type/order/v1/generated/validators/cancellationCreate.zod.js +2 -2
  252. package/dist/billing/type/order/v1/generated/validators/{terminationPolicy.zod.d.ts → cancellationPolicy.zod.d.ts} +3 -3
  253. package/dist/billing/type/order/v1/generated/validators/{terminationPolicy.zod.js → cancellationPolicy.zod.js} +2 -2
  254. package/dist/billing/type/order/v1/generated/validators/cancellationRefundPreview.zod.d.ts +2 -0
  255. package/dist/billing/type/order/v1/generated/validators/cancellationRefundPreview.zod.js +4 -3
  256. package/dist/billing/type/order/v1/generated/validators/cancellationRefundPreviewItem.zod.d.ts +1 -0
  257. package/dist/billing/type/order/v1/generated/validators/cancellationRefundPreviewItem.zod.js +1 -0
  258. package/dist/billing/type/order/v1/generated/validators/creditGrant.zod.d.ts +1 -1
  259. package/dist/billing/type/order/v1/generated/validators/creditGrantList.zod.d.ts +1 -1
  260. package/dist/billing/type/order/v1/generated/validators/discount.zod.d.ts +1 -1
  261. package/dist/billing/type/order/v1/generated/validators/discountList.zod.d.ts +1 -1
  262. package/dist/billing/type/order/v1/generated/validators/featureGrant.zod.d.ts +1 -1
  263. package/dist/billing/type/order/v1/generated/validators/featureGrantList.zod.d.ts +1 -1
  264. package/dist/billing/type/order/v1/generated/validators/featureGrantStatus.zod.d.ts +1 -1
  265. package/dist/billing/type/order/v1/generated/validators/order.zod.d.ts +7 -5
  266. package/dist/billing/type/order/v1/generated/validators/orderItem.zod.d.ts +6 -4
  267. package/dist/billing/type/order/v1/generated/validators/orderItem.zod.js +10 -6
  268. package/dist/billing/type/order/v1/generated/validators/orderItemList.zod.d.ts +6 -4
  269. package/dist/billing/type/order/v1/generated/validators/orderItemStatus.zod.d.ts +1 -1
  270. package/dist/billing/type/order/v1/generated/validators/orderList.zod.d.ts +7 -5
  271. package/dist/billing/type/order/v1/generated/validators/orderRefundQuote.zod.js +1 -1
  272. package/dist/billing/type/order/v1/generated/validators/orderStatus.zod.d.ts +1 -1
  273. package/dist/billing/type/order/v1/generated/validators/paymentMethod.zod.d.ts +1 -1
  274. package/dist/billing/type/order/v1/generated/validators/paymentMethodList.zod.d.ts +1 -1
  275. package/dist/billing/type/order/v1/generated/validators/paymentResult.zod.d.ts +1 -1
  276. package/dist/billing/type/order/v1/generated/validators/price.zod.d.ts +4 -1
  277. package/dist/billing/type/order/v1/generated/validators/price.zod.js +10 -2
  278. package/dist/billing/type/order/v1/generated/validators/priceList.zod.d.ts +4 -1
  279. package/dist/billing/type/order/v1/generated/validators/quote.zod.d.ts +2 -0
  280. package/dist/billing/type/order/v1/generated/validators/quoteCancellation.zod.js +2 -2
  281. package/dist/billing/type/order/v1/generated/validators/quoteItemInput.zod.d.ts +1 -1
  282. package/dist/billing/type/order/v1/generated/validators/quoteItemInput.zod.js +2 -2
  283. package/dist/billing/type/order/v1/generated/validators/quoteRenewal.zod.d.ts +1 -1
  284. package/dist/billing/type/order/v1/generated/validators/quoteRenewal.zod.js +3 -3
  285. package/dist/billing/type/order/v1/generated/validators/quoteRequest.zod.d.ts +2 -2
  286. package/dist/billing/type/order/v1/generated/validators/refund.zod.d.ts +2 -2
  287. package/dist/billing/type/order/v1/generated/validators/refundList.zod.d.ts +2 -2
  288. package/dist/billing/type/order/v1/generated/validators/refundPolicy.zod.d.ts +1 -0
  289. package/dist/billing/type/order/v1/generated/validators/refundPolicy.zod.js +2 -2
  290. package/dist/billing/type/order/v1/generated/validators/refundReason.zod.js +1 -1
  291. package/dist/billing/type/order/v1/generated/validators/renewRequest.zod.d.ts +1 -1
  292. package/dist/billing/type/order/v1/generated/validators/renewRequest.zod.js +3 -3
  293. package/dist/billing/type/order/v1/generated/validators/renewalOrderRequest.zod.d.ts +1 -1
  294. package/dist/billing/type/order/v1/generated/validators/renewalOrderRequest.zod.js +2 -2
  295. package/dist/billing/type/order/v1/generated/validators/renewalPrice.zod.d.ts +4 -1
  296. package/dist/billing/type/order/v1/generated/validators/renewalPrice.zod.js +4 -2
  297. package/dist/billing/type/order/v1/generated/validators/renewalPriceList.zod.d.ts +4 -1
  298. package/dist/billing/type/order/v1/generated/validators/scheduledChange.zod.d.ts +1 -1
  299. package/dist/billing/type/order/v1/generated/validators/subscription.zod.d.ts +6 -2
  300. package/dist/billing/type/order/v1/generated/validators/subscription.zod.js +14 -2
  301. package/dist/billing/type/order/v1/generated/validators/subscriptionList.zod.d.ts +6 -2
  302. package/dist/billing/type/order/v1/generated/validators/topUp.zod.d.ts +1 -1
  303. package/dist/billing/type/order/v1/generated/validators/topUpList.zod.d.ts +1 -1
  304. package/dist/billing/type/order/v1/generated/validators/transaction.zod.d.ts +1 -1
  305. package/dist/billing/type/order/v1/generated/validators/transactionList.zod.d.ts +1 -1
  306. package/dist/billing/type/order/v1/generated/validators/withdrawal.zod.d.ts +1 -1
  307. package/dist/billing/type/order/v1/generated/validators/withdrawalItem.zod.d.ts +1 -1
  308. package/dist/billing/type/order/v1/generated/validators/withdrawalItemList.zod.d.ts +1 -1
  309. package/dist/billing/type/order/v1/generated/validators/withdrawalList.zod.d.ts +1 -1
  310. package/dist/billing/v1/generated/functions.d.ts +1 -1
  311. package/dist/billing/v1/generated/functions.js +1 -1
  312. package/dist/billing/v1/generated/models.d.ts +71 -33
  313. package/dist/billing/v1/generated/models.js +2 -1
  314. package/dist/billing/v1/generated/schemas.zod.d.ts +8 -8
  315. package/dist/billing/v1/generated/schemas.zod.js +1 -1
  316. package/dist/billing/v1/generated/validators/allowance.zod.d.ts +1 -1
  317. package/dist/billing/v1/generated/validators/allowanceList.zod.d.ts +1 -1
  318. package/dist/billing/v1/generated/validators/cancelSubscriptionRequest.zod.js +2 -2
  319. package/dist/billing/v1/generated/validators/cancellation.zod.js +2 -2
  320. package/dist/billing/v1/generated/validators/cancellationCreate.zod.js +2 -2
  321. package/dist/billing/v1/generated/validators/{terminationPolicy.zod.d.ts → cancellationPolicy.zod.d.ts} +3 -3
  322. package/dist/billing/v1/generated/validators/{terminationPolicy.zod.js → cancellationPolicy.zod.js} +2 -2
  323. package/dist/billing/v1/generated/validators/cancellationRefundPreview.zod.d.ts +2 -0
  324. package/dist/billing/v1/generated/validators/cancellationRefundPreview.zod.js +4 -3
  325. package/dist/billing/v1/generated/validators/cancellationRefundPreviewItem.zod.d.ts +1 -0
  326. package/dist/billing/v1/generated/validators/cancellationRefundPreviewItem.zod.js +1 -0
  327. package/dist/billing/v1/generated/validators/creditGrant.zod.d.ts +1 -1
  328. package/dist/billing/v1/generated/validators/creditGrantList.zod.d.ts +1 -1
  329. package/dist/billing/v1/generated/validators/discount.zod.d.ts +1 -1
  330. package/dist/billing/v1/generated/validators/discountList.zod.d.ts +1 -1
  331. package/dist/billing/v1/generated/validators/featureGrant.zod.d.ts +1 -1
  332. package/dist/billing/v1/generated/validators/featureGrantList.zod.d.ts +1 -1
  333. package/dist/billing/v1/generated/validators/featureGrantStatus.zod.d.ts +1 -1
  334. package/dist/billing/v1/generated/validators/listAllowancesParams.zod.d.ts +1 -1
  335. package/dist/billing/v1/generated/validators/listCancellationsParams.zod.d.ts +1 -1
  336. package/dist/billing/v1/generated/validators/listCreditGrantsParams.zod.d.ts +1 -1
  337. package/dist/billing/v1/generated/validators/listFeatureGrantsParams.zod.d.ts +1 -1
  338. package/dist/billing/v1/generated/validators/listOrdersParams.zod.d.ts +1 -1
  339. package/dist/billing/v1/generated/validators/order.zod.d.ts +7 -5
  340. package/dist/billing/v1/generated/validators/orderItem.zod.d.ts +6 -4
  341. package/dist/billing/v1/generated/validators/orderItem.zod.js +10 -6
  342. package/dist/billing/v1/generated/validators/orderItemList.zod.d.ts +6 -4
  343. package/dist/billing/v1/generated/validators/orderItemStatus.zod.d.ts +1 -1
  344. package/dist/billing/v1/generated/validators/orderList.zod.d.ts +7 -5
  345. package/dist/billing/v1/generated/validators/orderRefundQuote.zod.js +1 -1
  346. package/dist/billing/v1/generated/validators/orderStatus.zod.d.ts +1 -1
  347. package/dist/billing/v1/generated/validators/paymentMethod.zod.d.ts +1 -1
  348. package/dist/billing/v1/generated/validators/paymentMethodList.zod.d.ts +1 -1
  349. package/dist/billing/v1/generated/validators/paymentResult.zod.d.ts +1 -1
  350. package/dist/billing/v1/generated/validators/price.zod.d.ts +4 -1
  351. package/dist/billing/v1/generated/validators/price.zod.js +10 -2
  352. package/dist/billing/v1/generated/validators/priceList.zod.d.ts +4 -1
  353. package/dist/billing/v1/generated/validators/quote.zod.d.ts +2 -0
  354. package/dist/billing/v1/generated/validators/quoteCancellation.zod.js +2 -2
  355. package/dist/billing/v1/generated/validators/quoteItemInput.zod.d.ts +1 -1
  356. package/dist/billing/v1/generated/validators/quoteItemInput.zod.js +2 -2
  357. package/dist/billing/v1/generated/validators/quoteRenewal.zod.d.ts +1 -1
  358. package/dist/billing/v1/generated/validators/quoteRenewal.zod.js +3 -3
  359. package/dist/billing/v1/generated/validators/quoteRequest.zod.d.ts +2 -2
  360. package/dist/billing/v1/generated/validators/refund.zod.d.ts +2 -2
  361. package/dist/billing/v1/generated/validators/refundList.zod.d.ts +2 -2
  362. package/dist/billing/v1/generated/validators/refundPolicy.zod.d.ts +1 -0
  363. package/dist/billing/v1/generated/validators/refundPolicy.zod.js +2 -2
  364. package/dist/billing/v1/generated/validators/refundReason.zod.js +1 -1
  365. package/dist/billing/v1/generated/validators/renewRequest.zod.d.ts +1 -1
  366. package/dist/billing/v1/generated/validators/renewRequest.zod.js +3 -3
  367. package/dist/billing/v1/generated/validators/renewalOrderRequest.zod.d.ts +1 -1
  368. package/dist/billing/v1/generated/validators/renewalOrderRequest.zod.js +2 -2
  369. package/dist/billing/v1/generated/validators/renewalPrice.zod.d.ts +4 -1
  370. package/dist/billing/v1/generated/validators/renewalPrice.zod.js +4 -2
  371. package/dist/billing/v1/generated/validators/renewalPriceList.zod.d.ts +4 -1
  372. package/dist/billing/v1/generated/validators/scheduledChange.zod.d.ts +1 -1
  373. package/dist/billing/v1/generated/validators/subscription.zod.d.ts +6 -2
  374. package/dist/billing/v1/generated/validators/subscription.zod.js +14 -2
  375. package/dist/billing/v1/generated/validators/subscriptionList.zod.d.ts +6 -2
  376. package/dist/billing/v1/generated/validators/topUp.zod.d.ts +1 -1
  377. package/dist/billing/v1/generated/validators/topUpList.zod.d.ts +1 -1
  378. package/dist/billing/v1/generated/validators/transaction.zod.d.ts +1 -1
  379. package/dist/billing/v1/generated/validators/transactionList.zod.d.ts +1 -1
  380. package/dist/billing/v1/generated/validators/withdrawal.zod.d.ts +1 -1
  381. package/dist/billing/v1/generated/validators/withdrawalItem.zod.d.ts +1 -1
  382. package/dist/billing/v1/generated/validators/withdrawalItemList.zod.d.ts +1 -1
  383. package/dist/billing/v1/generated/validators/withdrawalList.zod.d.ts +1 -1
  384. package/dist/canopy/v1/generated/functions.d.ts +81 -6
  385. package/dist/canopy/v1/generated/functions.js +110 -6
  386. package/dist/canopy/v1/generated/models.d.ts +105 -49
  387. package/dist/canopy/v1/generated/models.js +7 -6
  388. package/dist/canopy/v1/generated/schemas.zod.d.ts +39 -5
  389. package/dist/canopy/v1/generated/schemas.zod.js +38 -5
  390. package/dist/canopy/v1/generated/validators/aPIKeyResource.zod.d.ts +12 -4
  391. package/dist/canopy/v1/generated/validators/aPIKeyResource.zod.js +12 -4
  392. package/dist/canopy/v1/generated/validators/aPIKeyUsageListResponseBody.zod.d.ts +12 -4
  393. package/dist/canopy/v1/generated/validators/aPIKeyUsageListResponseBody.zod.js +12 -4
  394. package/dist/canopy/v1/generated/validators/aPIKeyUsageResource.zod.d.ts +12 -4
  395. package/dist/canopy/v1/generated/validators/aPIKeyUsageResource.zod.js +12 -4
  396. package/dist/canopy/v1/generated/validators/accountBalance.zod.d.ts +12 -4
  397. package/dist/canopy/v1/generated/validators/accountBalance.zod.js +12 -4
  398. package/dist/canopy/v1/generated/validators/accountIdentity.zod.d.ts +12 -4
  399. package/dist/canopy/v1/generated/validators/accountIdentity.zod.js +12 -4
  400. package/dist/canopy/v1/generated/validators/activeResource.zod.d.ts +12 -4
  401. package/dist/canopy/v1/generated/validators/activeResource.zod.js +12 -4
  402. package/dist/canopy/v1/generated/validators/activeResourceList.zod.d.ts +12 -4
  403. package/dist/canopy/v1/generated/validators/activeResourceList.zod.js +12 -4
  404. package/dist/canopy/v1/generated/validators/allowance.zod.d.ts +13 -5
  405. package/dist/canopy/v1/generated/validators/allowance.zod.js +12 -4
  406. package/dist/canopy/v1/generated/validators/allowanceList.zod.d.ts +13 -5
  407. package/dist/canopy/v1/generated/validators/allowanceList.zod.js +12 -4
  408. package/dist/canopy/v1/generated/validators/applicability.zod.d.ts +12 -4
  409. package/dist/canopy/v1/generated/validators/applicability.zod.js +12 -4
  410. package/dist/canopy/v1/generated/validators/applicablePlan.zod.d.ts +12 -4
  411. package/dist/canopy/v1/generated/validators/applicablePlan.zod.js +12 -4
  412. package/dist/canopy/v1/generated/validators/appliedCredit.zod.d.ts +12 -4
  413. package/dist/canopy/v1/generated/validators/appliedCredit.zod.js +12 -4
  414. package/dist/canopy/v1/generated/validators/autoRenewSet.zod.d.ts +12 -4
  415. package/dist/canopy/v1/generated/validators/autoRenewSet.zod.js +12 -4
  416. package/dist/canopy/v1/generated/validators/billingAccount.zod.d.ts +12 -4
  417. package/dist/canopy/v1/generated/validators/billingAccount.zod.js +12 -4
  418. package/dist/canopy/v1/generated/validators/billingAccountCreate.zod.d.ts +12 -4
  419. package/dist/canopy/v1/generated/validators/billingAccountCreate.zod.js +12 -4
  420. package/dist/canopy/v1/generated/validators/billingAccountList.zod.d.ts +12 -4
  421. package/dist/canopy/v1/generated/validators/billingAccountList.zod.js +12 -4
  422. package/dist/canopy/v1/generated/validators/billingAccountUpdate.zod.d.ts +12 -4
  423. package/dist/canopy/v1/generated/validators/billingAccountUpdate.zod.js +12 -4
  424. package/dist/canopy/v1/generated/validators/billingScheme.zod.d.ts +12 -4
  425. package/dist/canopy/v1/generated/validators/billingScheme.zod.js +12 -4
  426. package/dist/canopy/v1/generated/validators/cancelSubscriptionRequest.zod.d.ts +12 -4
  427. package/dist/canopy/v1/generated/validators/cancelSubscriptionRequest.zod.js +14 -6
  428. package/dist/canopy/v1/generated/validators/cancellation.zod.d.ts +12 -4
  429. package/dist/canopy/v1/generated/validators/cancellation.zod.js +14 -6
  430. package/dist/canopy/v1/generated/validators/cancellationCreate.zod.d.ts +12 -4
  431. package/dist/canopy/v1/generated/validators/cancellationCreate.zod.js +14 -6
  432. package/dist/canopy/v1/generated/validators/cancellationItem.zod.d.ts +12 -4
  433. package/dist/canopy/v1/generated/validators/cancellationItem.zod.js +12 -4
  434. package/dist/canopy/v1/generated/validators/cancellationList.zod.d.ts +12 -4
  435. package/dist/canopy/v1/generated/validators/cancellationList.zod.js +12 -4
  436. package/dist/canopy/v1/generated/validators/cancellationPolicy.zod.d.ts +47 -0
  437. package/dist/canopy/v1/generated/validators/cancellationPolicy.zod.js +44 -0
  438. package/dist/canopy/v1/generated/validators/cancellationRefundPreview.zod.d.ts +14 -4
  439. package/dist/canopy/v1/generated/validators/cancellationRefundPreview.zod.js +16 -7
  440. package/dist/canopy/v1/generated/validators/cancellationRefundPreviewItem.zod.d.ts +13 -4
  441. package/dist/canopy/v1/generated/validators/cancellationRefundPreviewItem.zod.js +13 -4
  442. package/dist/canopy/v1/generated/validators/chatCompletion.zod.d.ts +12 -4
  443. package/dist/canopy/v1/generated/validators/chatCompletion.zod.js +12 -4
  444. package/dist/canopy/v1/generated/validators/chatCompletionRequest.zod.d.ts +12 -4
  445. package/dist/canopy/v1/generated/validators/chatCompletionRequest.zod.js +12 -4
  446. package/dist/canopy/v1/generated/validators/checkoutMode.zod.d.ts +12 -4
  447. package/dist/canopy/v1/generated/validators/checkoutMode.zod.js +12 -4
  448. package/dist/canopy/v1/generated/validators/checkoutOptions.zod.d.ts +12 -4
  449. package/dist/canopy/v1/generated/validators/checkoutOptions.zod.js +12 -4
  450. package/dist/canopy/v1/generated/validators/contact.zod.d.ts +12 -4
  451. package/dist/canopy/v1/generated/validators/contact.zod.js +12 -4
  452. package/dist/canopy/v1/generated/validators/contactCreate.zod.d.ts +12 -4
  453. package/dist/canopy/v1/generated/validators/contactCreate.zod.js +12 -4
  454. package/dist/canopy/v1/generated/validators/contactList.zod.d.ts +12 -4
  455. package/dist/canopy/v1/generated/validators/contactList.zod.js +12 -4
  456. package/dist/canopy/v1/generated/validators/contactUpdate.zod.d.ts +12 -4
  457. package/dist/canopy/v1/generated/validators/contactUpdate.zod.js +12 -4
  458. package/dist/canopy/v1/generated/validators/createAPIKeyRequestBody.zod.d.ts +12 -4
  459. package/dist/canopy/v1/generated/validators/createAPIKeyRequestBody.zod.js +12 -4
  460. package/dist/canopy/v1/generated/validators/createServiceRequestBody.zod.d.ts +12 -4
  461. package/dist/canopy/v1/generated/validators/createServiceRequestBody.zod.js +12 -4
  462. package/dist/canopy/v1/generated/validators/createServiceResponseBody.zod.d.ts +13 -5
  463. package/dist/canopy/v1/generated/validators/createServiceResponseBody.zod.js +12 -4
  464. package/dist/canopy/v1/generated/validators/creditGrant.zod.d.ts +13 -5
  465. package/dist/canopy/v1/generated/validators/creditGrant.zod.js +12 -4
  466. package/dist/canopy/v1/generated/validators/creditGrantList.zod.d.ts +13 -5
  467. package/dist/canopy/v1/generated/validators/creditGrantList.zod.js +12 -4
  468. package/dist/canopy/v1/generated/validators/creditGroup.zod.d.ts +12 -4
  469. package/dist/canopy/v1/generated/validators/creditGroup.zod.js +12 -4
  470. package/dist/canopy/v1/generated/validators/creditNote.zod.d.ts +12 -4
  471. package/dist/canopy/v1/generated/validators/creditNote.zod.js +12 -4
  472. package/dist/canopy/v1/generated/validators/creditNoteItem.zod.d.ts +12 -4
  473. package/dist/canopy/v1/generated/validators/creditNoteItem.zod.js +12 -4
  474. package/dist/canopy/v1/generated/validators/creditNoteItemList.zod.d.ts +12 -4
  475. package/dist/canopy/v1/generated/validators/creditNoteItemList.zod.js +12 -4
  476. package/dist/canopy/v1/generated/validators/creditNoteList.zod.d.ts +12 -4
  477. package/dist/canopy/v1/generated/validators/creditNoteList.zod.js +12 -4
  478. package/dist/canopy/v1/generated/validators/currency.zod.d.ts +12 -4
  479. package/dist/canopy/v1/generated/validators/currency.zod.js +12 -4
  480. package/dist/canopy/v1/generated/validators/currencyList.zod.d.ts +12 -4
  481. package/dist/canopy/v1/generated/validators/currencyList.zod.js +12 -4
  482. package/dist/canopy/v1/generated/validators/cursorPageRequestResource.zod.d.ts +12 -10
  483. package/dist/canopy/v1/generated/validators/cursorPageRequestResource.zod.js +12 -4
  484. package/dist/canopy/v1/generated/validators/cursorPagination.zod.d.ts +12 -4
  485. package/dist/canopy/v1/generated/validators/cursorPagination.zod.js +12 -4
  486. package/dist/canopy/v1/generated/validators/discount.zod.d.ts +13 -5
  487. package/dist/canopy/v1/generated/validators/discount.zod.js +12 -4
  488. package/dist/canopy/v1/generated/validators/discountList.zod.d.ts +13 -5
  489. package/dist/canopy/v1/generated/validators/discountList.zod.js +12 -4
  490. package/dist/canopy/v1/generated/validators/embeddingRequest.zod.d.ts +12 -4
  491. package/dist/canopy/v1/generated/validators/embeddingRequest.zod.js +12 -4
  492. package/dist/canopy/v1/generated/validators/embeddingResponse.zod.d.ts +12 -4
  493. package/dist/canopy/v1/generated/validators/embeddingResponse.zod.js +12 -4
  494. package/dist/canopy/v1/generated/validators/endpointCapabilities.zod.d.ts +12 -4
  495. package/dist/canopy/v1/generated/validators/endpointCapabilities.zod.js +12 -4
  496. package/dist/canopy/v1/generated/validators/entitlement.zod.d.ts +12 -4
  497. package/dist/canopy/v1/generated/validators/entitlement.zod.js +12 -4
  498. package/dist/canopy/v1/generated/validators/entitlementList.zod.d.ts +12 -4
  499. package/dist/canopy/v1/generated/validators/entitlementList.zod.js +12 -4
  500. package/dist/canopy/v1/generated/validators/error.zod.d.ts +12 -4
  501. package/dist/canopy/v1/generated/validators/error.zod.js +12 -4
  502. package/dist/canopy/v1/generated/validators/errorA200529.zod.d.ts +12 -4
  503. package/dist/canopy/v1/generated/validators/errorA200529.zod.js +12 -4
  504. package/dist/canopy/v1/generated/validators/featureGrant.zod.d.ts +13 -5
  505. package/dist/canopy/v1/generated/validators/featureGrant.zod.js +12 -4
  506. package/dist/canopy/v1/generated/validators/featureGrantList.zod.d.ts +13 -5
  507. package/dist/canopy/v1/generated/validators/featureGrantList.zod.js +12 -4
  508. package/dist/canopy/v1/generated/validators/featureGrantStatus.zod.d.ts +13 -5
  509. package/dist/canopy/v1/generated/validators/featureGrantStatus.zod.js +12 -4
  510. package/dist/canopy/v1/generated/validators/funds.zod.d.ts +12 -4
  511. package/dist/canopy/v1/generated/validators/funds.zod.js +12 -4
  512. package/dist/canopy/v1/generated/validators/getUsageSummaryParams.zod.d.ts +12 -4
  513. package/dist/canopy/v1/generated/validators/getUsageSummaryParams.zod.js +12 -4
  514. package/dist/canopy/v1/generated/validators/getUsageTimelineParams.zod.d.ts +12 -4
  515. package/dist/canopy/v1/generated/validators/getUsageTimelineParams.zod.js +12 -4
  516. package/dist/canopy/v1/generated/validators/inferenceError.zod.d.ts +12 -4
  517. package/dist/canopy/v1/generated/validators/inferenceError.zod.js +12 -4
  518. package/dist/canopy/v1/generated/validators/invoice.zod.d.ts +12 -4
  519. package/dist/canopy/v1/generated/validators/invoice.zod.js +12 -4
  520. package/dist/canopy/v1/generated/validators/invoiceItem.zod.d.ts +12 -4
  521. package/dist/canopy/v1/generated/validators/invoiceItem.zod.js +12 -4
  522. package/dist/canopy/v1/generated/validators/invoiceItemList.zod.d.ts +12 -4
  523. package/dist/canopy/v1/generated/validators/invoiceItemList.zod.js +12 -4
  524. package/dist/canopy/v1/generated/validators/invoiceItemProration.zod.d.ts +12 -4
  525. package/dist/canopy/v1/generated/validators/invoiceItemProration.zod.js +12 -4
  526. package/dist/canopy/v1/generated/validators/invoiceList.zod.d.ts +12 -4
  527. package/dist/canopy/v1/generated/validators/invoiceList.zod.js +12 -4
  528. package/dist/canopy/v1/generated/validators/invoiceStatus.zod.d.ts +12 -4
  529. package/dist/canopy/v1/generated/validators/invoiceStatus.zod.js +12 -4
  530. package/dist/canopy/v1/generated/validators/invoiceSummary.zod.d.ts +12 -4
  531. package/dist/canopy/v1/generated/validators/invoiceSummary.zod.js +12 -4
  532. package/dist/canopy/v1/generated/validators/issuedAPIKeyResource.zod.d.ts +12 -4
  533. package/dist/canopy/v1/generated/validators/issuedAPIKeyResource.zod.js +12 -4
  534. package/dist/canopy/v1/generated/validators/lengthAwarePageAPIKeyResource.zod.d.ts +12 -4
  535. package/dist/canopy/v1/generated/validators/lengthAwarePageAPIKeyResource.zod.js +12 -4
  536. package/dist/canopy/v1/generated/validators/listApiKeysParams.zod.d.ts +12 -4
  537. package/dist/canopy/v1/generated/validators/listApiKeysParams.zod.js +12 -4
  538. package/dist/canopy/v1/generated/validators/listRequestsParams.zod.d.ts +12 -4
  539. package/dist/canopy/v1/generated/validators/listRequestsParams.zod.js +12 -4
  540. package/dist/canopy/v1/generated/validators/listUsageByApiKeyParams.zod.d.ts +12 -4
  541. package/dist/canopy/v1/generated/validators/listUsageByApiKeyParams.zod.js +12 -4
  542. package/dist/canopy/v1/generated/validators/listUsageByModelParams.zod.d.ts +12 -4
  543. package/dist/canopy/v1/generated/validators/listUsageByModelParams.zod.js +12 -4
  544. package/dist/canopy/v1/generated/validators/modality.zod.d.ts +12 -4
  545. package/dist/canopy/v1/generated/validators/modality.zod.js +12 -4
  546. package/dist/canopy/v1/generated/validators/model.zod.d.ts +14 -4
  547. package/dist/canopy/v1/generated/validators/model.zod.js +12 -4
  548. package/dist/canopy/v1/generated/validators/modelCapabilities.zod.d.ts +12 -4
  549. package/dist/canopy/v1/generated/validators/modelCapabilities.zod.js +12 -4
  550. package/dist/canopy/v1/generated/validators/modelEndpoint.zod.d.ts +14 -4
  551. package/dist/canopy/v1/generated/validators/modelEndpoint.zod.js +14 -4
  552. package/dist/canopy/v1/generated/validators/modelList.zod.d.ts +14 -4
  553. package/dist/canopy/v1/generated/validators/modelList.zod.js +12 -4
  554. package/dist/canopy/v1/generated/validators/modelListResponseBody.zod.d.ts +14 -4
  555. package/dist/canopy/v1/generated/validators/modelListResponseBody.zod.js +12 -4
  556. package/dist/canopy/v1/generated/validators/modelPricing.zod.d.ts +12 -4
  557. package/dist/canopy/v1/generated/validators/modelPricing.zod.js +12 -4
  558. package/dist/canopy/v1/generated/validators/modelResource.zod.d.ts +14 -4
  559. package/dist/canopy/v1/generated/validators/modelResource.zod.js +12 -4
  560. package/dist/canopy/v1/generated/validators/modelUsageListResponseBody.zod.d.ts +12 -4
  561. package/dist/canopy/v1/generated/validators/modelUsageListResponseBody.zod.js +12 -4
  562. package/dist/canopy/v1/generated/validators/modelUsageResource.zod.d.ts +12 -4
  563. package/dist/canopy/v1/generated/validators/modelUsageResource.zod.js +12 -4
  564. package/dist/canopy/v1/generated/validators/money.zod.d.ts +12 -4
  565. package/dist/canopy/v1/generated/validators/money.zod.js +12 -4
  566. package/dist/canopy/v1/generated/validators/monthlyStatement.zod.d.ts +12 -4
  567. package/dist/canopy/v1/generated/validators/monthlyStatement.zod.js +12 -4
  568. package/dist/canopy/v1/generated/validators/monthlyStatementList.zod.d.ts +12 -4
  569. package/dist/canopy/v1/generated/validators/monthlyStatementList.zod.js +12 -4
  570. package/dist/canopy/v1/generated/validators/namedIdentity.zod.d.ts +12 -4
  571. package/dist/canopy/v1/generated/validators/namedIdentity.zod.js +12 -4
  572. package/dist/canopy/v1/generated/validators/nativeRequest.zod.d.ts +44 -0
  573. package/dist/canopy/v1/generated/validators/nativeRequest.zod.js +44 -0
  574. package/dist/canopy/v1/generated/validators/nativeResponse.zod.d.ts +44 -0
  575. package/dist/canopy/v1/generated/validators/{terminationPolicy.zod.js → nativeResponse.zod.js} +15 -7
  576. package/dist/canopy/v1/generated/validators/objectIdentity.zod.d.ts +12 -4
  577. package/dist/canopy/v1/generated/validators/objectIdentity.zod.js +12 -4
  578. package/dist/canopy/v1/generated/validators/offsetPagination.zod.d.ts +12 -4
  579. package/dist/canopy/v1/generated/validators/offsetPagination.zod.js +12 -4
  580. package/dist/canopy/v1/generated/validators/order.zod.d.ts +19 -9
  581. package/dist/canopy/v1/generated/validators/order.zod.js +12 -4
  582. package/dist/canopy/v1/generated/validators/orderCancel.zod.d.ts +12 -4
  583. package/dist/canopy/v1/generated/validators/orderCancel.zod.js +12 -4
  584. package/dist/canopy/v1/generated/validators/orderItem.zod.d.ts +18 -8
  585. package/dist/canopy/v1/generated/validators/orderItem.zod.js +22 -10
  586. package/dist/canopy/v1/generated/validators/orderItemList.zod.d.ts +18 -8
  587. package/dist/canopy/v1/generated/validators/orderItemList.zod.js +12 -4
  588. package/dist/canopy/v1/generated/validators/orderItemStatus.zod.d.ts +13 -5
  589. package/dist/canopy/v1/generated/validators/orderItemStatus.zod.js +12 -4
  590. package/dist/canopy/v1/generated/validators/orderList.zod.d.ts +19 -9
  591. package/dist/canopy/v1/generated/validators/orderList.zod.js +12 -4
  592. package/dist/canopy/v1/generated/validators/orderRefundQuote.zod.d.ts +12 -4
  593. package/dist/canopy/v1/generated/validators/orderRefundQuote.zod.js +13 -5
  594. package/dist/canopy/v1/generated/validators/orderRefundQuoteInput.zod.d.ts +12 -4
  595. package/dist/canopy/v1/generated/validators/orderRefundQuoteInput.zod.js +12 -4
  596. package/dist/canopy/v1/generated/validators/orderStatus.zod.d.ts +13 -5
  597. package/dist/canopy/v1/generated/validators/orderStatus.zod.js +12 -4
  598. package/dist/canopy/v1/generated/validators/paidWith.zod.d.ts +12 -4
  599. package/dist/canopy/v1/generated/validators/paidWith.zod.js +12 -4
  600. package/dist/canopy/v1/generated/validators/payInvoiceRequest.zod.d.ts +12 -4
  601. package/dist/canopy/v1/generated/validators/payInvoiceRequest.zod.js +12 -4
  602. package/dist/canopy/v1/generated/validators/payTogetherRequest.zod.d.ts +12 -4
  603. package/dist/canopy/v1/generated/validators/payTogetherRequest.zod.js +12 -4
  604. package/dist/canopy/v1/generated/validators/paymentAction.zod.d.ts +12 -4
  605. package/dist/canopy/v1/generated/validators/paymentAction.zod.js +12 -4
  606. package/dist/canopy/v1/generated/validators/paymentCancellationReason.zod.d.ts +12 -4
  607. package/dist/canopy/v1/generated/validators/paymentCancellationReason.zod.js +12 -4
  608. package/dist/canopy/v1/generated/validators/paymentMethod.zod.d.ts +13 -5
  609. package/dist/canopy/v1/generated/validators/paymentMethod.zod.js +12 -4
  610. package/dist/canopy/v1/generated/validators/paymentMethodList.zod.d.ts +13 -5
  611. package/dist/canopy/v1/generated/validators/paymentMethodList.zod.js +12 -4
  612. package/dist/canopy/v1/generated/validators/paymentMethodSetup.zod.d.ts +12 -4
  613. package/dist/canopy/v1/generated/validators/paymentMethodSetup.zod.js +12 -4
  614. package/dist/canopy/v1/generated/validators/paymentMethodSetupResult.zod.d.ts +12 -4
  615. package/dist/canopy/v1/generated/validators/paymentMethodSetupResult.zod.js +12 -4
  616. package/dist/canopy/v1/generated/validators/paymentOption.zod.d.ts +12 -4
  617. package/dist/canopy/v1/generated/validators/paymentOption.zod.js +12 -4
  618. package/dist/canopy/v1/generated/validators/paymentOptionList.zod.d.ts +12 -4
  619. package/dist/canopy/v1/generated/validators/paymentOptionList.zod.js +12 -4
  620. package/dist/canopy/v1/generated/validators/paymentOptionMethod.zod.d.ts +12 -4
  621. package/dist/canopy/v1/generated/validators/paymentOptionMethod.zod.js +12 -4
  622. package/dist/canopy/v1/generated/validators/paymentPreview.zod.d.ts +12 -4
  623. package/dist/canopy/v1/generated/validators/paymentPreview.zod.js +12 -4
  624. package/dist/canopy/v1/generated/validators/paymentPreviewInvoice.zod.d.ts +12 -4
  625. package/dist/canopy/v1/generated/validators/paymentPreviewInvoice.zod.js +12 -4
  626. package/dist/canopy/v1/generated/validators/paymentResult.zod.d.ts +13 -5
  627. package/dist/canopy/v1/generated/validators/paymentResult.zod.js +12 -4
  628. package/dist/canopy/v1/generated/validators/paymentStatus.zod.d.ts +12 -4
  629. package/dist/canopy/v1/generated/validators/paymentStatus.zod.js +12 -4
  630. package/dist/canopy/v1/generated/validators/placedOrder.zod.d.ts +12 -4
  631. package/dist/canopy/v1/generated/validators/placedOrder.zod.js +12 -4
  632. package/dist/canopy/v1/generated/validators/plan.zod.d.ts +12 -4
  633. package/dist/canopy/v1/generated/validators/plan.zod.js +12 -4
  634. package/dist/canopy/v1/generated/validators/planFeature.zod.d.ts +12 -4
  635. package/dist/canopy/v1/generated/validators/planFeature.zod.js +12 -4
  636. package/dist/canopy/v1/generated/validators/planList.zod.d.ts +12 -4
  637. package/dist/canopy/v1/generated/validators/planList.zod.js +12 -4
  638. package/dist/canopy/v1/generated/validators/price.zod.d.ts +16 -5
  639. package/dist/canopy/v1/generated/validators/price.zod.js +22 -6
  640. package/dist/canopy/v1/generated/validators/priceList.zod.d.ts +16 -5
  641. package/dist/canopy/v1/generated/validators/priceList.zod.js +12 -4
  642. package/dist/canopy/v1/generated/validators/priceOption.zod.d.ts +12 -4
  643. package/dist/canopy/v1/generated/validators/priceOption.zod.js +12 -4
  644. package/dist/canopy/v1/generated/validators/priceType.zod.d.ts +12 -4
  645. package/dist/canopy/v1/generated/validators/priceType.zod.js +12 -4
  646. package/dist/canopy/v1/generated/validators/product.zod.d.ts +12 -4
  647. package/dist/canopy/v1/generated/validators/product.zod.js +12 -4
  648. package/dist/canopy/v1/generated/validators/productID.zod.d.ts +12 -4
  649. package/dist/canopy/v1/generated/validators/productID.zod.js +12 -4
  650. package/dist/canopy/v1/generated/validators/productList.zod.d.ts +12 -4
  651. package/dist/canopy/v1/generated/validators/productList.zod.js +12 -4
  652. package/dist/canopy/v1/generated/validators/projectAssignment.zod.d.ts +12 -4
  653. package/dist/canopy/v1/generated/validators/projectAssignment.zod.js +12 -4
  654. package/dist/canopy/v1/generated/validators/projectAssignmentList.zod.d.ts +12 -4
  655. package/dist/canopy/v1/generated/validators/projectAssignmentList.zod.js +12 -4
  656. package/dist/canopy/v1/generated/validators/purchaseOperation.zod.d.ts +12 -4
  657. package/dist/canopy/v1/generated/validators/purchaseOperation.zod.js +12 -4
  658. package/dist/canopy/v1/generated/validators/quote.zod.d.ts +12 -4
  659. package/dist/canopy/v1/generated/validators/quote.zod.js +12 -4
  660. package/dist/canopy/v1/generated/validators/quote5f60d00.zod.d.ts +14 -4
  661. package/dist/canopy/v1/generated/validators/quote5f60d00.zod.js +12 -4
  662. package/dist/canopy/v1/generated/validators/quoteA200529.zod.d.ts +14 -4
  663. package/dist/canopy/v1/generated/validators/quoteA200529.zod.js +12 -4
  664. package/dist/canopy/v1/generated/validators/quoteCancellation.zod.d.ts +12 -4
  665. package/dist/canopy/v1/generated/validators/quoteCancellation.zod.js +14 -6
  666. package/dist/canopy/v1/generated/validators/quoteItem.zod.d.ts +12 -4
  667. package/dist/canopy/v1/generated/validators/quoteItem.zod.js +12 -4
  668. package/dist/canopy/v1/generated/validators/quoteItemDc1fddb.zod.d.ts +12 -4
  669. package/dist/canopy/v1/generated/validators/quoteItemDc1fddb.zod.js +12 -4
  670. package/dist/canopy/v1/generated/validators/quoteItemInput.zod.d.ts +13 -5
  671. package/dist/canopy/v1/generated/validators/quoteItemInput.zod.js +14 -6
  672. package/dist/canopy/v1/generated/validators/quoteRenewal.zod.d.ts +13 -5
  673. package/dist/canopy/v1/generated/validators/quoteRenewal.zod.js +15 -7
  674. package/dist/canopy/v1/generated/validators/quoteRenewalResult.zod.d.ts +12 -4
  675. package/dist/canopy/v1/generated/validators/quoteRenewalResult.zod.js +12 -4
  676. package/dist/canopy/v1/generated/validators/quoteRequest.zod.d.ts +14 -6
  677. package/dist/canopy/v1/generated/validators/quoteRequest.zod.js +12 -4
  678. package/dist/canopy/v1/generated/validators/quotedDiscount.zod.d.ts +12 -4
  679. package/dist/canopy/v1/generated/validators/quotedDiscount.zod.js +12 -4
  680. package/dist/canopy/v1/generated/validators/rate.zod.d.ts +12 -4
  681. package/dist/canopy/v1/generated/validators/rate.zod.js +12 -4
  682. package/dist/canopy/v1/generated/validators/rateList.zod.d.ts +12 -4
  683. package/dist/canopy/v1/generated/validators/rateList.zod.js +12 -4
  684. package/dist/canopy/v1/generated/validators/reasoningCapabilities.zod.d.ts +12 -4
  685. package/dist/canopy/v1/generated/validators/reasoningCapabilities.zod.js +13 -5
  686. package/dist/canopy/v1/generated/validators/reasoningDiagnostics.zod.d.ts +12 -10
  687. package/dist/canopy/v1/generated/validators/reasoningDiagnostics.zod.js +12 -6
  688. package/dist/canopy/v1/generated/validators/refund.zod.d.ts +14 -6
  689. package/dist/canopy/v1/generated/validators/refund.zod.js +12 -4
  690. package/dist/canopy/v1/generated/validators/refundList.zod.d.ts +14 -6
  691. package/dist/canopy/v1/generated/validators/refundList.zod.js +12 -4
  692. package/dist/canopy/v1/generated/validators/refundPolicy.zod.d.ts +13 -4
  693. package/dist/canopy/v1/generated/validators/refundPolicy.zod.js +14 -6
  694. package/dist/canopy/v1/generated/validators/refundReason.zod.d.ts +12 -4
  695. package/dist/canopy/v1/generated/validators/refundReason.zod.js +13 -5
  696. package/dist/canopy/v1/generated/validators/renewRequest.zod.d.ts +13 -5
  697. package/dist/canopy/v1/generated/validators/renewRequest.zod.js +15 -7
  698. package/dist/canopy/v1/generated/validators/renewalOrderRequest.zod.d.ts +13 -5
  699. package/dist/canopy/v1/generated/validators/renewalOrderRequest.zod.js +14 -6
  700. package/dist/canopy/v1/generated/validators/renewalPrice.zod.d.ts +16 -5
  701. package/dist/canopy/v1/generated/validators/renewalPrice.zod.js +16 -6
  702. package/dist/canopy/v1/generated/validators/renewalPriceList.zod.d.ts +16 -5
  703. package/dist/canopy/v1/generated/validators/renewalPriceList.zod.js +12 -4
  704. package/dist/canopy/v1/generated/validators/requestResource.zod.d.ts +12 -10
  705. package/dist/canopy/v1/generated/validators/requestResource.zod.js +12 -4
  706. package/dist/canopy/v1/generated/validators/responseCreate.zod.d.ts +12 -4
  707. package/dist/canopy/v1/generated/validators/responseCreate.zod.js +12 -4
  708. package/dist/canopy/v1/generated/validators/responseDeleted.zod.d.ts +12 -4
  709. package/dist/canopy/v1/generated/validators/responseDeleted.zod.js +12 -4
  710. package/dist/canopy/v1/generated/validators/responseResource.zod.d.ts +12 -4
  711. package/dist/canopy/v1/generated/validators/responseResource.zod.js +12 -4
  712. package/dist/canopy/v1/generated/validators/scheduledChange.zod.d.ts +13 -5
  713. package/dist/canopy/v1/generated/validators/scheduledChange.zod.js +12 -4
  714. package/dist/canopy/v1/generated/validators/serviceResource.zod.d.ts +13 -5
  715. package/dist/canopy/v1/generated/validators/serviceResource.zod.js +12 -4
  716. package/dist/canopy/v1/generated/validators/setProjectAssignmentRequest.zod.d.ts +12 -4
  717. package/dist/canopy/v1/generated/validators/setProjectAssignmentRequest.zod.js +12 -4
  718. package/dist/canopy/v1/generated/validators/spendRow.zod.d.ts +12 -4
  719. package/dist/canopy/v1/generated/validators/spendRow.zod.js +12 -4
  720. package/dist/canopy/v1/generated/validators/spendRowList.zod.d.ts +12 -4
  721. package/dist/canopy/v1/generated/validators/spendRowList.zod.js +12 -4
  722. package/dist/canopy/v1/generated/validators/statement.zod.d.ts +12 -4
  723. package/dist/canopy/v1/generated/validators/statement.zod.js +12 -4
  724. package/dist/canopy/v1/generated/validators/statementAmounts.zod.d.ts +12 -4
  725. package/dist/canopy/v1/generated/validators/statementAmounts.zod.js +12 -4
  726. package/dist/canopy/v1/generated/validators/statementItem.zod.d.ts +12 -4
  727. package/dist/canopy/v1/generated/validators/statementItem.zod.js +12 -4
  728. package/dist/canopy/v1/generated/validators/statementList.zod.d.ts +12 -4
  729. package/dist/canopy/v1/generated/validators/statementList.zod.js +12 -4
  730. package/dist/canopy/v1/generated/validators/statementStatus.zod.d.ts +12 -4
  731. package/dist/canopy/v1/generated/validators/statementStatus.zod.js +12 -4
  732. package/dist/canopy/v1/generated/validators/statementSummary.zod.d.ts +12 -4
  733. package/dist/canopy/v1/generated/validators/statementSummary.zod.js +12 -4
  734. package/dist/canopy/v1/generated/validators/statementType.zod.d.ts +12 -4
  735. package/dist/canopy/v1/generated/validators/statementType.zod.js +12 -4
  736. package/dist/canopy/v1/generated/validators/streamGenerateContentParams.zod.d.ts +48 -0
  737. package/dist/canopy/v1/generated/validators/{terminationPolicy.zod.d.ts → streamGenerateContentParams.zod.js} +15 -10
  738. package/dist/canopy/v1/generated/validators/subscription.zod.d.ts +18 -6
  739. package/dist/canopy/v1/generated/validators/subscription.zod.js +26 -6
  740. package/dist/canopy/v1/generated/validators/subscriptionCancellation.zod.d.ts +12 -4
  741. package/dist/canopy/v1/generated/validators/subscriptionCancellation.zod.js +12 -4
  742. package/dist/canopy/v1/generated/validators/subscriptionList.zod.d.ts +18 -6
  743. package/dist/canopy/v1/generated/validators/subscriptionList.zod.js +12 -4
  744. package/dist/canopy/v1/generated/validators/subscriptionRestriction.zod.d.ts +12 -4
  745. package/dist/canopy/v1/generated/validators/subscriptionRestriction.zod.js +12 -4
  746. package/dist/canopy/v1/generated/validators/taxItem.zod.d.ts +12 -4
  747. package/dist/canopy/v1/generated/validators/taxItem.zod.js +12 -4
  748. package/dist/canopy/v1/generated/validators/tier.zod.d.ts +12 -4
  749. package/dist/canopy/v1/generated/validators/tier.zod.js +12 -4
  750. package/dist/canopy/v1/generated/validators/tokenPrice.zod.d.ts +12 -4
  751. package/dist/canopy/v1/generated/validators/tokenPrice.zod.js +12 -4
  752. package/dist/canopy/v1/generated/validators/topUp.zod.d.ts +13 -5
  753. package/dist/canopy/v1/generated/validators/topUp.zod.js +12 -4
  754. package/dist/canopy/v1/generated/validators/topUpCreate.zod.d.ts +12 -4
  755. package/dist/canopy/v1/generated/validators/topUpCreate.zod.js +12 -4
  756. package/dist/canopy/v1/generated/validators/topUpList.zod.d.ts +13 -5
  757. package/dist/canopy/v1/generated/validators/topUpList.zod.js +12 -4
  758. package/dist/canopy/v1/generated/validators/totalsResource.zod.d.ts +12 -4
  759. package/dist/canopy/v1/generated/validators/totalsResource.zod.js +12 -4
  760. package/dist/canopy/v1/generated/validators/transaction.zod.d.ts +13 -5
  761. package/dist/canopy/v1/generated/validators/transaction.zod.js +12 -4
  762. package/dist/canopy/v1/generated/validators/transactionList.zod.d.ts +13 -5
  763. package/dist/canopy/v1/generated/validators/transactionList.zod.js +12 -4
  764. package/dist/canopy/v1/generated/validators/transactionType.zod.d.ts +12 -4
  765. package/dist/canopy/v1/generated/validators/transactionType.zod.js +12 -4
  766. package/dist/canopy/v1/generated/validators/updateAPIKeyRequestBody.zod.d.ts +12 -4
  767. package/dist/canopy/v1/generated/validators/updateAPIKeyRequestBody.zod.js +12 -4
  768. package/dist/canopy/v1/generated/validators/usageBucketResource.zod.d.ts +12 -4
  769. package/dist/canopy/v1/generated/validators/usageBucketResource.zod.js +12 -4
  770. package/dist/canopy/v1/generated/validators/usageCharge.zod.d.ts +12 -4
  771. package/dist/canopy/v1/generated/validators/usageCharge.zod.js +12 -4
  772. package/dist/canopy/v1/generated/validators/usageChargeList.zod.d.ts +12 -4
  773. package/dist/canopy/v1/generated/validators/usageChargeList.zod.js +12 -4
  774. package/dist/canopy/v1/generated/validators/usageTimelineResponseBody.zod.d.ts +12 -4
  775. package/dist/canopy/v1/generated/validators/usageTimelineResponseBody.zod.js +12 -4
  776. package/dist/canopy/v1/generated/validators/usageType.zod.d.ts +12 -4
  777. package/dist/canopy/v1/generated/validators/usageType.zod.js +12 -4
  778. package/dist/canopy/v1/generated/validators/withdrawal.zod.d.ts +13 -5
  779. package/dist/canopy/v1/generated/validators/withdrawal.zod.js +12 -4
  780. package/dist/canopy/v1/generated/validators/withdrawalAllocation.zod.d.ts +12 -4
  781. package/dist/canopy/v1/generated/validators/withdrawalAllocation.zod.js +12 -4
  782. package/dist/canopy/v1/generated/validators/withdrawalCreate.zod.d.ts +12 -4
  783. package/dist/canopy/v1/generated/validators/withdrawalCreate.zod.js +12 -4
  784. package/dist/canopy/v1/generated/validators/withdrawalItem.zod.d.ts +13 -5
  785. package/dist/canopy/v1/generated/validators/withdrawalItem.zod.js +12 -4
  786. package/dist/canopy/v1/generated/validators/withdrawalItemList.zod.d.ts +13 -5
  787. package/dist/canopy/v1/generated/validators/withdrawalItemList.zod.js +12 -4
  788. package/dist/canopy/v1/generated/validators/withdrawalList.zod.d.ts +13 -5
  789. package/dist/canopy/v1/generated/validators/withdrawalList.zod.js +12 -4
  790. package/dist/canopy/v1/generated/validators/withdrawalPreview.zod.d.ts +12 -4
  791. package/dist/canopy/v1/generated/validators/withdrawalPreview.zod.js +12 -4
  792. package/dist/canopy/v1/generated/validators/withdrawalPreviewItem.zod.d.ts +12 -4
  793. package/dist/canopy/v1/generated/validators/withdrawalPreviewItem.zod.js +12 -4
  794. package/dist/canopy/v1/generated/validators/withdrawalPreviewRequest.zod.d.ts +12 -4
  795. package/dist/canopy/v1/generated/validators/withdrawalPreviewRequest.zod.js +12 -4
  796. package/dist/canopy/v1/generated/validators/withdrawalSource.zod.d.ts +12 -4
  797. package/dist/canopy/v1/generated/validators/withdrawalSource.zod.js +12 -4
  798. package/dist/compute/v1/generated/validators/allocateFloatingIPResponseBody.zod.d.ts +1 -1
  799. package/dist/compute/v1/generated/validators/backupCapacityPack.zod.d.ts +1 -1
  800. package/dist/compute/v1/generated/validators/backupCapacityPackListResponseBody.zod.d.ts +1 -1
  801. package/dist/compute/v1/generated/validators/backupService.zod.d.ts +1 -1
  802. package/dist/compute/v1/generated/validators/createBackupCapacityPackResponseBody.zod.d.ts +1 -1
  803. package/dist/compute/v1/generated/validators/createBackupServiceResponseBody.zod.d.ts +1 -1
  804. package/dist/compute/v1/generated/validators/createDiskResponseBody.zod.d.ts +1 -1
  805. package/dist/compute/v1/generated/validators/createImageResponseBody.zod.d.ts +1 -1
  806. package/dist/compute/v1/generated/validators/diskListResponseBody.zod.d.ts +1 -1
  807. package/dist/compute/v1/generated/validators/diskResource.zod.d.ts +1 -1
  808. package/dist/compute/v1/generated/validators/floatingIPListResponseBody.zod.d.ts +1 -1
  809. package/dist/compute/v1/generated/validators/floatingIPResource.zod.d.ts +1 -1
  810. package/dist/compute/v1/generated/validators/imageListResponseBody.zod.d.ts +1 -1
  811. package/dist/compute/v1/generated/validators/imageResource.zod.d.ts +1 -1
  812. package/dist/compute/v1/generated/validators/instanceListResponseBody.zod.d.ts +3 -3
  813. package/dist/compute/v1/generated/validators/instanceResource.zod.d.ts +3 -3
  814. package/dist/compute/v1/generated/validators/launchInstanceResponseBody.zod.d.ts +3 -3
  815. package/dist/compute/v1/generated/validators/peeringListResponseBody.zod.d.ts +1 -1
  816. package/dist/compute/v1/generated/validators/peeringResource.zod.d.ts +1 -1
  817. package/dist/compute/v1/generated/validators/rebuildInstanceResponseBody.zod.d.ts +3 -3
  818. package/dist/compute/v1/generated/validators/resizeDiskResponseBody.zod.d.ts +1 -1
  819. package/dist/compute/v1/generated/validators/resizeInstanceResponseBody.zod.d.ts +3 -3
  820. package/dist/compute/v1/generated/validators/setFloatingIPBandwidthResponseBody.zod.d.ts +1 -1
  821. package/dist/compute/v1/generated/validators/setSnapshotQuotaResponseBody.zod.d.ts +1 -1
  822. package/dist/compute/v1/generated/validators/snapshotListResponseBody.zod.d.ts +1 -1
  823. package/dist/compute/v1/generated/validators/snapshotQuota.zod.d.ts +1 -1
  824. package/dist/compute/v1/generated/validators/snapshotResource.zod.d.ts +1 -1
  825. package/dist/membership/v1/generated/models.d.ts +71 -33
  826. package/dist/membership/v1/generated/models.js +2 -1
  827. package/dist/membership/v1/generated/validators/allowance.zod.d.ts +1 -1
  828. package/dist/membership/v1/generated/validators/allowanceList.zod.d.ts +1 -1
  829. package/dist/membership/v1/generated/validators/cancelSubscriptionRequest.zod.js +2 -2
  830. package/dist/membership/v1/generated/validators/cancellation.zod.js +2 -2
  831. package/dist/membership/v1/generated/validators/cancellationCreate.zod.js +2 -2
  832. package/dist/membership/v1/generated/validators/{terminationPolicy.zod.d.ts → cancellationPolicy.zod.d.ts} +3 -3
  833. package/dist/membership/v1/generated/validators/{terminationPolicy.zod.js → cancellationPolicy.zod.js} +2 -2
  834. package/dist/membership/v1/generated/validators/cancellationRefundPreview.zod.d.ts +2 -0
  835. package/dist/membership/v1/generated/validators/cancellationRefundPreview.zod.js +4 -3
  836. package/dist/membership/v1/generated/validators/cancellationRefundPreviewItem.zod.d.ts +1 -0
  837. package/dist/membership/v1/generated/validators/cancellationRefundPreviewItem.zod.js +1 -0
  838. package/dist/membership/v1/generated/validators/creditGrant.zod.d.ts +1 -1
  839. package/dist/membership/v1/generated/validators/creditGrantList.zod.d.ts +1 -1
  840. package/dist/membership/v1/generated/validators/discount.zod.d.ts +1 -1
  841. package/dist/membership/v1/generated/validators/discountList.zod.d.ts +1 -1
  842. package/dist/membership/v1/generated/validators/featureGrant.zod.d.ts +1 -1
  843. package/dist/membership/v1/generated/validators/featureGrantList.zod.d.ts +1 -1
  844. package/dist/membership/v1/generated/validators/featureGrantStatus.zod.d.ts +1 -1
  845. package/dist/membership/v1/generated/validators/order.zod.d.ts +7 -5
  846. package/dist/membership/v1/generated/validators/orderItem.zod.d.ts +6 -4
  847. package/dist/membership/v1/generated/validators/orderItem.zod.js +10 -6
  848. package/dist/membership/v1/generated/validators/orderItemList.zod.d.ts +6 -4
  849. package/dist/membership/v1/generated/validators/orderItemStatus.zod.d.ts +1 -1
  850. package/dist/membership/v1/generated/validators/orderList.zod.d.ts +7 -5
  851. package/dist/membership/v1/generated/validators/orderRefundQuote.zod.js +1 -1
  852. package/dist/membership/v1/generated/validators/orderStatus.zod.d.ts +1 -1
  853. package/dist/membership/v1/generated/validators/paymentMethod.zod.d.ts +1 -1
  854. package/dist/membership/v1/generated/validators/paymentMethodList.zod.d.ts +1 -1
  855. package/dist/membership/v1/generated/validators/paymentResult.zod.d.ts +1 -1
  856. package/dist/membership/v1/generated/validators/price.zod.d.ts +4 -1
  857. package/dist/membership/v1/generated/validators/price.zod.js +10 -2
  858. package/dist/membership/v1/generated/validators/priceList.zod.d.ts +4 -1
  859. package/dist/membership/v1/generated/validators/quote.zod.d.ts +2 -0
  860. package/dist/membership/v1/generated/validators/quoteCancellation.zod.js +2 -2
  861. package/dist/membership/v1/generated/validators/quoteItemInput.zod.d.ts +1 -1
  862. package/dist/membership/v1/generated/validators/quoteItemInput.zod.js +2 -2
  863. package/dist/membership/v1/generated/validators/quoteRenewal.zod.d.ts +1 -1
  864. package/dist/membership/v1/generated/validators/quoteRenewal.zod.js +3 -3
  865. package/dist/membership/v1/generated/validators/quoteRequest.zod.d.ts +2 -2
  866. package/dist/membership/v1/generated/validators/refund.zod.d.ts +2 -2
  867. package/dist/membership/v1/generated/validators/refundList.zod.d.ts +2 -2
  868. package/dist/membership/v1/generated/validators/refundPolicy.zod.d.ts +1 -0
  869. package/dist/membership/v1/generated/validators/refundPolicy.zod.js +2 -2
  870. package/dist/membership/v1/generated/validators/refundReason.zod.js +1 -1
  871. package/dist/membership/v1/generated/validators/renewRequest.zod.d.ts +1 -1
  872. package/dist/membership/v1/generated/validators/renewRequest.zod.js +3 -3
  873. package/dist/membership/v1/generated/validators/renewalOrderRequest.zod.d.ts +1 -1
  874. package/dist/membership/v1/generated/validators/renewalOrderRequest.zod.js +2 -2
  875. package/dist/membership/v1/generated/validators/renewalPrice.zod.d.ts +4 -1
  876. package/dist/membership/v1/generated/validators/renewalPrice.zod.js +4 -2
  877. package/dist/membership/v1/generated/validators/renewalPriceList.zod.d.ts +4 -1
  878. package/dist/membership/v1/generated/validators/scheduledChange.zod.d.ts +1 -1
  879. package/dist/membership/v1/generated/validators/subscription.zod.d.ts +6 -2
  880. package/dist/membership/v1/generated/validators/subscription.zod.js +14 -2
  881. package/dist/membership/v1/generated/validators/subscriptionList.zod.d.ts +6 -2
  882. package/dist/membership/v1/generated/validators/topUp.zod.d.ts +1 -1
  883. package/dist/membership/v1/generated/validators/topUpList.zod.d.ts +1 -1
  884. package/dist/membership/v1/generated/validators/transaction.zod.d.ts +1 -1
  885. package/dist/membership/v1/generated/validators/transactionList.zod.d.ts +1 -1
  886. package/dist/membership/v1/generated/validators/withdrawal.zod.d.ts +1 -1
  887. package/dist/membership/v1/generated/validators/withdrawalItem.zod.d.ts +1 -1
  888. package/dist/membership/v1/generated/validators/withdrawalItemList.zod.d.ts +1 -1
  889. package/dist/membership/v1/generated/validators/withdrawalList.zod.d.ts +1 -1
  890. package/dist/notification/v1/generated/schemas.zod.d.ts +3 -3
  891. package/dist/notification/v1/generated/validators/channelListResponseBody.zod.d.ts +1 -1
  892. package/dist/notification/v1/generated/validators/channelResource.zod.d.ts +1 -1
  893. package/dist/notification/v1/generated/validators/channelScope.zod.d.ts +1 -1
  894. package/dist/notification/v1/generated/validators/createChannelRequestBody.zod.d.ts +1 -1
  895. package/dist/notification/v1/generated/validators/listUserChannelsParams.zod.d.ts +1 -1
  896. package/dist/notification/v1/generated/validators/notificationChannel.zod.d.ts +1 -1
  897. package/dist/notification/v1/generated/validators/notificationTypeDescriptor.zod.d.ts +2 -2
  898. package/dist/notification/v1/generated/validators/notificationTypeListResponseBody.zod.d.ts +2 -2
  899. package/dist/notification/v1/generated/validators/typePreferenceListResponseBody.zod.d.ts +1 -1
  900. package/dist/notification/v1/generated/validators/typePreferenceResource.zod.d.ts +1 -1
  901. package/dist/notification/v1/generated/validators/updateTypePreferenceRequestBody.zod.d.ts +1 -1
  902. package/dist/routes.d.ts +350 -78
  903. package/dist/routes.js +384 -78
  904. package/dist/type/resource/v1/generated/validators/reclamationState.zod.d.ts +1 -1
  905. package/package.json +1 -1
  906. package/dist/assistant/v1/generated/validators/answerRequestBody.zod.d.ts +0 -54
  907. package/dist/assistant/v1/generated/validators/answerRequestBody.zod.js +0 -54
  908. package/dist/assistant/v1/generated/validators/choice.zod.d.ts +0 -55
  909. package/dist/assistant/v1/generated/validators/choice.zod.js +0 -53
  910. package/dist/assistant/v1/generated/validators/contextResource.zod.d.ts +0 -59
  911. package/dist/assistant/v1/generated/validators/contextResource.zod.js +0 -62
  912. package/dist/assistant/v1/generated/validators/decideRequestBody.zod.d.ts +0 -55
  913. package/dist/assistant/v1/generated/validators/decideRequestBody.zod.js +0 -53
  914. package/dist/assistant/v1/generated/validators/documentResource.zod.d.ts +0 -181
  915. package/dist/assistant/v1/generated/validators/documentResource.zod.js +0 -71
  916. package/dist/assistant/v1/generated/validators/dynamicCallResultRequestBody.zod.d.ts +0 -60
  917. package/dist/assistant/v1/generated/validators/dynamicCallResultRequestBody.zod.js +0 -72
  918. package/dist/assistant/v1/generated/validators/earlierResource.zod.d.ts +0 -55
  919. package/dist/assistant/v1/generated/validators/earlierResource.zod.js +0 -53
  920. package/dist/assistant/v1/generated/validators/earlierResponseBody.zod.d.ts +0 -130
  921. package/dist/assistant/v1/generated/validators/earlierResponseBody.zod.js +0 -55
  922. package/dist/assistant/v1/generated/validators/itemResource.zod.d.ts +0 -124
  923. package/dist/assistant/v1/generated/validators/itemResource.zod.js +0 -101
  924. package/dist/assistant/v1/generated/validators/listEarlierItemsParams.zod.d.ts +0 -55
  925. package/dist/assistant/v1/generated/validators/listEarlierItemsParams.zod.js +0 -56
  926. package/dist/assistant/v1/generated/validators/listThreadsParams.zod.d.ts +0 -63
  927. package/dist/assistant/v1/generated/validators/listThreadsParams.zod.js +0 -72
  928. package/dist/assistant/v1/generated/validators/modelListResponseBody.zod.d.ts +0 -69
  929. package/dist/assistant/v1/generated/validators/modelListResponseBody.zod.js +0 -65
  930. package/dist/assistant/v1/generated/validators/modelResource.zod.d.ts +0 -65
  931. package/dist/assistant/v1/generated/validators/modelResource.zod.js +0 -81
  932. package/dist/assistant/v1/generated/validators/question.zod.d.ts +0 -60
  933. package/dist/assistant/v1/generated/validators/question.zod.js +0 -56
  934. package/dist/assistant/v1/generated/validators/streamResource.zod.d.ts +0 -55
  935. package/dist/assistant/v1/generated/validators/streamResource.zod.js +0 -53
  936. package/dist/assistant/v1/generated/validators/threadSummaryResource.zod.d.ts +0 -68
  937. package/dist/assistant/v1/generated/validators/threadSummaryResource.zod.js +0 -73
  938. package/dist/assistant/v1/generated/validators/turnIDResponseBody.zod.d.ts +0 -56
  939. package/dist/assistant/v1/generated/validators/turnIDResponseBody.zod.js +0 -61
  940. package/dist/assistant/v1/generated/validators/turnResource.zod.d.ts +0 -58
  941. package/dist/assistant/v1/generated/validators/turnResource.zod.js +0 -52
  942. package/dist/assistant/v1/generated/validators/waitResource.zod.d.ts +0 -71
  943. package/dist/assistant/v1/generated/validators/waitResource.zod.js +0 -59
@@ -2,71 +2,757 @@
2
2
  * Generated by orval 🍺
3
3
  * Do not edit manually.
4
4
  * Leaflow Assistant API
5
- * The AI assistant inside the console: conversations, messages, tool calls and their approval, attachments, and connecting the assistant to instant messaging platforms such as WeChat, Feishu and Telegram.
5
+ * Conversations with agents that operate the Leaflow platform, plus their folders, tasks, files and
6
+ * chat-app channels.
6
7
  *
7
- * ## A conversation
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.
8
12
  *
9
- * The path one conversation takes, end to end. It names the operations that path needs, not all of them — the full list is below, and it also covers folders, attachments, memories, skills and the instant messaging side.
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.
10
16
  *
11
- * 1. `POST /api/v1/threads` creates one;
12
- * 2. `POST /api/v1/threads/{thread}/messages` sends a message and returns a `turnId` at once; the assistant runs in the background;
13
- * 3. `GET /api/v1/threads/{thread}` returns the conversation document to render, whose `stream` is where live output arrives;
14
- * 4. When the assistant needs the user, the document's `wait` says which kind: approving a batch of tool calls (`POST /api/v1/threads/{thread}/approvals/{batch}`), or answering a few questions (`POST /api/v1/threads/{thread}/questions/{item}`). It continues on its own once that is handled.
17
+ * Read a thread's state with get-thread and its transcript with list-thread-items. Follow both live
18
+ * over the WebSocket described under /api/v1/realtime/tickets. Slash commands such as /status and
19
+ * /compact are listed by list-commands and work the same in the console and in chat apps.
15
20
  *
16
- * Sending a file takes two steps: `POST /api/v1/attachments` for an id, then put that id in `attachmentIds` when sending the message. Images, text and arbitrary binaries all go through the same two steps; what differs is how the assistant reads them afterwards, which the upload response's `kind` says.
21
+ * Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
22
+ * parts, then complete the upload and send its attachment id in a message.
23
+ * OpenAPI spec version: 2.0.0
24
+ */
25
+ import * as zod from "zod";
26
+ /**
27
+ * Creates a conversation and, when `message` is given, sends it as the first message in the same
28
+ * request, so starting a task is one round trip.
29
+ *
30
+ * The model is chosen in this order: `modelId` from the request, the caller's default from
31
+ * /api/v1/settings, then the first model in the Canopy catalogue that can run an agent. Fails with
32
+ * 422 and code MODEL_UNAVAILABLE when the chosen model cannot run an agent, and with 422 and code
33
+ * REASONING_UNSUPPORTED when `reasoningEffort` is given for a model without reasoning.
34
+ *
35
+ * Without `message`, creating a conversation does not contact a model provider.
36
+ * @summary Create a conversation
37
+ */
38
+ export declare const CreateThreadBody: zod.ZodObject<{
39
+ title: zod.ZodOptional<zod.ZodString>;
40
+ folderId: zod.ZodOptional<zod.ZodString>;
41
+ modelId: zod.ZodOptional<zod.ZodString>;
42
+ reasoningEffort: zod.ZodOptional<zod.ZodEnum<{
43
+ high: "high";
44
+ low: "low";
45
+ medium: "medium";
46
+ }>>;
47
+ approvalMode: zod.ZodOptional<zod.ZodEnum<{
48
+ manual: "manual";
49
+ guardian: "guardian";
50
+ yolo: "yolo";
51
+ }>>;
52
+ message: zod.ZodOptional<zod.ZodObject<{
53
+ parts: zod.ZodArray<zod.ZodObject<{
54
+ type: zod.ZodString;
55
+ text: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
56
+ attachmentId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
57
+ data: zod.ZodOptional<zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>>;
58
+ }, zod.z.core.$strict>>;
59
+ client: zod.ZodOptional<zod.ZodObject<{
60
+ clientId: zod.ZodString;
61
+ label: zod.ZodOptional<zod.ZodString>;
62
+ actions: zod.ZodOptional<zod.ZodNullable<zod.ZodArray<zod.ZodObject<{
63
+ type: zod.ZodDefault<zod.ZodEnum<{
64
+ function: "function";
65
+ }>>;
66
+ function: zod.ZodObject<{
67
+ name: zod.ZodString;
68
+ description: zod.ZodString;
69
+ parameters: zod.ZodOptional<zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>>;
70
+ inputSchema: zod.ZodOptional<zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>>;
71
+ }, zod.z.core.$strict>;
72
+ readOnly: zod.ZodBoolean;
73
+ timeoutMs: zod.ZodOptional<zod.ZodInt>;
74
+ }, zod.z.core.$strict>>>>;
75
+ }, zod.z.core.$strict>>;
76
+ }, zod.z.core.$strict>>;
77
+ }, zod.z.core.$strict>;
78
+ /**
79
+ * The conversation's state: model, reasoning effort, approval mode, what it is doing now, its
80
+ * plan, what it is waiting for, context usage and token usage. The transcript is read separately
81
+ * from /items.
82
+ * @summary Get a conversation
83
+ */
84
+ export declare const getThreadPathThreadMax = 64;
85
+ export declare const GetThreadParams: zod.ZodObject<{
86
+ thread: zod.ZodString;
87
+ }, zod.z.core.$strict>;
88
+ /**
89
+ * Changes the title, model, reasoning effort, approval mode, or whether the conversation is
90
+ * archived. Omitted fields stay as they are.
91
+ *
92
+ * Model, reasoning and approval changes apply to the next model request; a request already in
93
+ * flight keeps its settings. A model that cannot run an agent fails with 422 and code
94
+ * MODEL_UNAVAILABLE. Switching to a model without reasoning clears `reasoningEffort`.
95
+ *
96
+ * Archiving makes the conversation read-only and fails with 409 and code THREAD_RUNNING while a
97
+ * turn is running.
98
+ * @summary Update a conversation
99
+ */
100
+ export declare const updateThreadPathThreadMax = 64;
101
+ export declare const UpdateThreadParams: zod.ZodObject<{
102
+ thread: zod.ZodString;
103
+ }, zod.z.core.$strict>;
104
+ export declare const UpdateThreadBody: zod.ZodObject<{
105
+ title: zod.ZodOptional<zod.ZodString>;
106
+ modelId: zod.ZodOptional<zod.ZodString>;
107
+ reasoningEffort: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodEnum<{
108
+ high: "high";
109
+ low: "low";
110
+ medium: "medium";
111
+ }>, zod.ZodNull]>>;
112
+ approvalMode: zod.ZodOptional<zod.ZodEnum<{
113
+ manual: "manual";
114
+ guardian: "guardian";
115
+ yolo: "yolo";
116
+ }>>;
117
+ archived: zod.ZodOptional<zod.ZodBoolean>;
118
+ }, zod.z.core.$strict>;
119
+ /**
120
+ * Removes the conversation and its subagents from every list and makes them unreachable by id,
121
+ * including for the assistant. Deleting cannot be undone; archive instead to keep it readable.
122
+ *
123
+ * Fails with 409 and code THREAD_RUNNING while a turn is running. Deleting an already deleted
124
+ * conversation succeeds.
125
+ * @summary Delete a conversation
126
+ */
127
+ export declare const deleteThreadPathThreadMax = 64;
128
+ export declare const DeleteThreadParams: zod.ZodObject<{
129
+ thread: zod.ZodString;
130
+ }, zod.z.core.$strict>;
131
+ /**
132
+ * Stops this conversation's running turn and discards its queued messages. Subagents keep
133
+ * running; stop them through their own conversations.
134
+ *
135
+ * Succeeds when nothing is running, because pressing stop races with the turn finishing on its
136
+ * own. Available while the project is suspended or being cleaned up.
137
+ * @summary Stop the running turn
138
+ */
139
+ export declare const interruptThreadPathThreadMax = 64;
140
+ export declare const InterruptThreadParams: zod.ZodObject<{
141
+ thread: zod.ZodString;
142
+ }, zod.z.core.$strict>;
143
+ /**
144
+ * Starts a new turn that continues from where the conversation stopped, for example after it
145
+ * was interrupted or failed. An optional message is added first.
146
+ *
147
+ * Fails with 409 and code THREAD_RUNNING while a turn is running.
148
+ * @summary Resume a stopped conversation
149
+ */
150
+ export declare const resumeThreadPathThreadMax = 64;
151
+ export declare const ResumeThreadParams: zod.ZodObject<{
152
+ thread: zod.ZodString;
153
+ }, zod.z.core.$strict>;
154
+ export declare const ResumeThreadBody: zod.ZodObject<{
155
+ message: zod.ZodOptional<zod.ZodString>;
156
+ }, zod.z.core.$strict>;
157
+ /**
158
+ * Starts a compaction turn that summarizes the history before the latest user message, the same
159
+ * way the service does automatically when the context window fills up. The result appears in the
160
+ * transcript as a `compaction` item and the turn reports its own token usage.
161
+ *
162
+ * Fails with 409 and code THREAD_RUNNING while a turn is running, and with 409 and code
163
+ * NOTHING_TO_COMPACT when there is no history to summarize.
164
+ * @summary Compact the conversation now
165
+ */
166
+ export declare const compactThreadPathThreadMax = 64;
167
+ export declare const CompactThreadParams: zod.ZodObject<{
168
+ thread: zod.ZodString;
169
+ }, zod.z.core.$strict>;
170
+ /**
171
+ * Reverts the item at `ordinal` and everything after it. Reverted items stay in the transcript
172
+ * marked `reverted` and are left out of later model requests; ordinals are not renumbered.
173
+ * Executed tools and external changes are not undone. Returns how many items were reverted.
174
+ * @summary Revert from a given point
175
+ */
176
+ export declare const revertThreadPathThreadMax = 64;
177
+ export declare const RevertThreadParams: zod.ZodObject<{
178
+ thread: zod.ZodString;
179
+ }, zod.z.core.$strict>;
180
+ export declare const RevertThreadBody: zod.ZodObject<{
181
+ ordinal: zod.ZodInt;
182
+ }, zod.z.core.$strict>;
183
+ /**
184
+ * Clears `unread` until the assistant replies again.
185
+ * @summary Mark a conversation as read
186
+ */
187
+ export declare const markThreadReadPathThreadMax = 64;
188
+ export declare const MarkThreadReadParams: zod.ZodObject<{
189
+ thread: zod.ZodString;
190
+ }, zod.z.core.$strict>;
191
+ /**
192
+ * A window of the conversation's transcript, oldest first: messages, reasoning, tool calls and
193
+ * compaction markers. A window holds whole turns, so a turn's messages and tool calls arrive
194
+ * together; a single turn larger than the size limit is split across windows.
195
+ *
196
+ * Without a position the window ends at the latest item. `before` reads the window above an
197
+ * ordinal and `after` the window below it; pass `startOrdinal` and `endOrdinal` from the response.
198
+ * `around` opens a window that contains an ordinal, for jumping to a turn from list-thread-turns or
199
+ * to a search result.
200
+ *
201
+ * Long reasoning and tool arguments are cut to a preview and marked `truncated`; read the item for
202
+ * all of it. Messages are never cut.
203
+ *
204
+ * When the window reaches the end, `queued` holds the messages waiting for the assistant and
205
+ * `streamCursor` is set: subscribe to `thread:{id}` on /api/v1/realtime from it to follow what is
206
+ * written next.
207
+ * @summary List transcript items
208
+ */
209
+ export declare const listThreadItemsPathThreadMax = 64;
210
+ export declare const ListThreadItemsParams: zod.ZodObject<{
211
+ thread: zod.ZodString;
212
+ }, zod.z.core.$strict>;
213
+ export declare const listThreadItemsQueryBeforeMin = 0;
214
+ export declare const listThreadItemsQueryAfterMin = 0;
215
+ export declare const listThreadItemsQueryAroundMin = 0;
216
+ export declare const listThreadItemsQueryTurnsDefault = 10;
217
+ export declare const listThreadItemsQueryTurnsMax = 50;
218
+ export declare const ListThreadItemsQueryParams: zod.ZodObject<{
219
+ before: zod.ZodOptional<zod.ZodInt>;
220
+ after: zod.ZodOptional<zod.ZodInt>;
221
+ around: zod.ZodOptional<zod.ZodInt>;
222
+ turns: zod.ZodDefault<zod.ZodInt>;
223
+ }, zod.z.core.$strict>;
224
+ /**
225
+ * One item in full, including what list-thread-items cut from it.
226
+ * @summary Get a transcript item
227
+ */
228
+ export declare const getThreadItemPathThreadMax = 64;
229
+ export declare const getThreadItemPathItemMax = 64;
230
+ export declare const GetThreadItemParams: zod.ZodObject<{
231
+ thread: zod.ZodString;
232
+ item: zod.ZodString;
233
+ }, zod.z.core.$strict>;
234
+ /**
235
+ * Starts a turn and returns at once; a turn can run for tens of minutes and its progress arrives
236
+ * on /api/v1/realtime. Sending while the assistant is working is allowed: the message is queued
237
+ * and read at the next step of the running turn, and `queued` is true.
238
+ *
239
+ * Fails with 409 and code THREAD_ARCHIVED for an archived conversation.
240
+ * @summary Send a message
241
+ */
242
+ export declare const sendMessagePathThreadMax = 64;
243
+ export declare const SendMessageParams: zod.ZodObject<{
244
+ thread: zod.ZodString;
245
+ }, zod.z.core.$strict>;
246
+ export declare const SendMessageBody: zod.ZodObject<{
247
+ parts: zod.ZodArray<zod.ZodObject<{
248
+ type: zod.ZodString;
249
+ text: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
250
+ attachmentId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
251
+ data: zod.ZodOptional<zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>>;
252
+ }, zod.z.core.$strict>>;
253
+ client: zod.ZodOptional<zod.ZodObject<{
254
+ clientId: zod.ZodString;
255
+ label: zod.ZodOptional<zod.ZodString>;
256
+ actions: zod.ZodOptional<zod.ZodNullable<zod.ZodArray<zod.ZodObject<{
257
+ type: zod.ZodDefault<zod.ZodEnum<{
258
+ function: "function";
259
+ }>>;
260
+ function: zod.ZodObject<{
261
+ name: zod.ZodString;
262
+ description: zod.ZodString;
263
+ parameters: zod.ZodOptional<zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>>;
264
+ inputSchema: zod.ZodOptional<zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>>;
265
+ }, zod.z.core.$strict>;
266
+ readOnly: zod.ZodBoolean;
267
+ timeoutMs: zod.ZodOptional<zod.ZodInt>;
268
+ }, zod.z.core.$strict>>>>;
269
+ }, zod.z.core.$strict>>;
270
+ }, zod.z.core.$strict>;
271
+ /**
272
+ * Decides the tool calls the conversation is waiting on, listed in `pendingAction.itemIds`. One
273
+ * decision applies to the whole batch, so `itemIds` must name exactly the calls awaiting approval.
274
+ *
275
+ * Repeating a decision that is already in effect succeeds. Fails with 409 and code
276
+ * APPROVAL_MISMATCH when `itemIds` is not the current batch, for example because another tab
277
+ * decided first and the assistant has moved on.
278
+ * @summary Approve or decline tool calls
279
+ */
280
+ export declare const decideToolCallsPathThreadMax = 64;
281
+ export declare const DecideToolCallsParams: zod.ZodObject<{
282
+ thread: zod.ZodString;
283
+ }, zod.z.core.$strict>;
284
+ export declare const DecideToolCallsBody: zod.ZodObject<{
285
+ itemIds: zod.ZodArray<zod.ZodString>;
286
+ approved: zod.ZodBoolean;
287
+ reason: zod.ZodOptional<zod.ZodString>;
288
+ }, zod.z.core.$strict>;
289
+ /**
290
+ * Answers an `ask` tool call. Its questions are in the item's `questions`. An item that is already
291
+ * answered also succeeds: another tab may have answered first, or the auto-answer window may have
292
+ * passed, and either way the turn has continued.
293
+ * @summary Answer the assistant's questions
294
+ */
295
+ export declare const answerQuestionPathThreadMax = 64;
296
+ export declare const answerQuestionPathItemMax = 64;
297
+ export declare const AnswerQuestionParams: zod.ZodObject<{
298
+ thread: zod.ZodString;
299
+ item: zod.ZodString;
300
+ }, zod.z.core.$strict>;
301
+ export declare const AnswerQuestionBody: zod.ZodObject<{
302
+ answers: zod.ZodRecord<zod.ZodString, zod.ZodString>;
303
+ }, zod.z.core.$strict>;
304
+ /**
305
+ * The assistant asks the client to run one of the actions it declared by writing a tool call with
306
+ * the namespace `client`; the client runs it when the item turns in_progress and reports here.
307
+ *
308
+ * The first result counts. A later one fails with 409 and code RESULT_ALREADY_SUBMITTED.
309
+ * @summary Report what a client tool produced
310
+ */
311
+ export declare const submitToolResultPathThreadMax = 64;
312
+ export declare const submitToolResultPathItemMax = 64;
313
+ export declare const SubmitToolResultParams: zod.ZodObject<{
314
+ thread: zod.ZodString;
315
+ item: zod.ZodString;
316
+ }, zod.z.core.$strict>;
317
+ export declare const SubmitToolResultBody: zod.ZodObject<{
318
+ clientId: zod.ZodString;
319
+ ok: zod.ZodBoolean;
320
+ output: zod.ZodOptional<zod.ZodString>;
321
+ error: zod.ZodOptional<zod.ZodString>;
322
+ nextCursor: zod.ZodOptional<zod.ZodString>;
323
+ }, zod.z.core.$strict>;
324
+ /**
325
+ * The conversation's turns, newest first, each with the model and reasoning effort it ran with,
326
+ * how long it took and the tokens it used. Cache hit rate is `cachedInputTokens / inputTokens`.
17
327
  *
18
- * ## Models
328
+ * Each turn names the ordinals it wrote and the message that started it, so a client can draw a
329
+ * timeline from this list and open a turn with list-thread-items `around`.
19
330
  *
20
- * Canopy owns the model catalogue and capabilities. Model ids in this API, conversation preferences and historical entries are Canopy model ids, with no separate assistant model registration. GET /api/v1/models returns the allowed, usable choices and allowModelSelection. Hide the selector when selection is disabled; the service enforces the same rule.
331
+ * `ids` reads the turns behind a page of transcript items in one request and cannot be combined
332
+ * with a cursor.
333
+ * @summary List turns
334
+ */
335
+ export declare const listThreadTurnsPathThreadMax = 64;
336
+ export declare const ListThreadTurnsParams: zod.ZodObject<{
337
+ thread: zod.ZodString;
338
+ }, zod.z.core.$strict>;
339
+ export declare const listThreadTurnsQueryIdsMax = 200;
340
+ export declare const listThreadTurnsQueryCursorMax = 1024;
341
+ export declare const listThreadTurnsQueryLimitDefault = 50;
342
+ export declare const listThreadTurnsQueryLimitMax = 200;
343
+ export declare const ListThreadTurnsQueryParams: zod.ZodObject<{
344
+ ids: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
345
+ cursor: zod.ZodOptional<zod.ZodString>;
346
+ limit: zod.ZodDefault<zod.ZodInt>;
347
+ }, zod.z.core.$strict>;
348
+ /**
349
+ * Runs a slash command against the conversation. Commands act directly and never reach the model.
350
+ * The result carries a plain-text `message`, which is what a chat app shows, and structured fields
351
+ * for clients that render more, such as `status` for /status.
21
352
  *
22
- * preferredModelId is the user's choice. Null follows the platform default, including later changes. Disabled selection preserves but ignores preferences for new turns. A model removed from the allowlist, retired in Canopy or otherwise unusable falls back to the default without clearing the preference.
353
+ * /new is carried out by the client, which opens an empty conversation, and fails here with 422
354
+ * and code COMMAND_CLIENT_ONLY. Fails with 404 and code COMMAND_NOT_FOUND for an unknown command,
355
+ * and with 422 and code COMMAND_ARGUMENTS_INVALID when the arguments do not fit.
356
+ * @summary Run a command
357
+ */
358
+ export declare const runCommandPathThreadMax = 64;
359
+ export declare const RunCommandParams: zod.ZodObject<{
360
+ thread: zod.ZodString;
361
+ }, zod.z.core.$strict>;
362
+ export declare const RunCommandBody: zod.ZodObject<{
363
+ name: zod.ZodString;
364
+ arguments: zod.ZodOptional<zod.ZodString>;
365
+ }, zod.z.core.$strict>;
366
+ /**
367
+ * A folder groups conversations on the board and does nothing else: the assistant is never told
368
+ * which folder a conversation is in. New folders go after the existing ones.
23
369
  *
24
- * Users can switch an existing conversation through PATCH /api/v1/threads/{thread} with preferredModelId. This preserves the transcript, starts no turn and makes no inference request. Null returns to following the default. Changes apply from the next turn; a running or waiting turn and messages queued into it retain their captured choices and fallback policy.
370
+ * Names are unique among the caller's folders in this project; a duplicate fails with 409 and
371
+ * code FOLDER_EXISTS.
372
+ * @summary Create a folder
373
+ */
374
+ export declare const CreateFolderBody: zod.ZodObject<{
375
+ name: zod.ZodString;
376
+ }, zod.z.core.$strict>;
377
+ /**
378
+ * Its conversations are read with search-threads and `folderId`.
379
+ * @summary Get a folder
380
+ */
381
+ export declare const getFolderPathFolderMax = 64;
382
+ export declare const GetFolderParams: zod.ZodObject<{
383
+ folder: zod.ZodString;
384
+ }, zod.z.core.$strict>;
385
+ /**
386
+ * The inbox cannot be renamed and fails with 409 and code INBOX_READ_ONLY.
387
+ * @summary Rename a folder
388
+ */
389
+ export declare const updateFolderPathFolderMax = 64;
390
+ export declare const UpdateFolderParams: zod.ZodObject<{
391
+ folder: zod.ZodString;
392
+ }, zod.z.core.$strict>;
393
+ export declare const UpdateFolderBody: zod.ZodObject<{
394
+ name: zod.ZodString;
395
+ }, zod.z.core.$strict>;
396
+ /**
397
+ * The conversations inside are not deleted; they move to the end of the inbox. The inbox cannot
398
+ * be deleted and fails with 409 and code INBOX_READ_ONLY. Deleting a folder that is already gone
399
+ * succeeds.
400
+ * @summary Delete a folder
401
+ */
402
+ export declare const deleteFolderPathFolderMax = 64;
403
+ export declare const DeleteFolderParams: zod.ZodObject<{
404
+ folder: zod.ZodString;
405
+ }, zod.z.core.$strict>;
406
+ /**
407
+ * Places the folder before `beforeFolderId`, or last when it is null. The inbox stays first.
408
+ * Fails with 409 and code ORDER_CHANGED when `expectedVersion` is stale; read the folders again
409
+ * and retry.
410
+ * @summary Reorder a folder
411
+ */
412
+ export declare const moveFolderPathFolderMax = 64;
413
+ export declare const MoveFolderParams: zod.ZodObject<{
414
+ folder: zod.ZodString;
415
+ }, zod.z.core.$strict>;
416
+ export declare const MoveFolderBody: zod.ZodObject<{
417
+ beforeFolderId: zod.ZodNullable<zod.ZodString>;
418
+ expectedVersion: zod.ZodInt;
419
+ }, zod.z.core.$strict>;
420
+ /**
421
+ * Puts the conversation into this folder at the given position, moving it out of the folder it
422
+ * was in. Give `beforeThreadId` or `afterThreadId` to place it next to a conversation of this
423
+ * folder; with neither it goes last. Moving does not change the conversation's activity time.
25
424
  *
26
- * If the chosen model cannot serve a request, the service may safely fall back to the default without confirmation or an additional switching message. If the default also fails, the turn fails normally; no third model is selected for ordinary answers. Fallback preserves executed tool results and never splices answers from different models. Invalid input, cancellation and a declined tool call do not trigger model fallback. Each entry's model records its actual Canopy author, not the saved preference.
425
+ * Subagents are not filed and fail with 409 and code SUBAGENT_NOT_FILED. Fails with 409 and code
426
+ * ORDER_CHANGED when `expectedVersion` is stale.
427
+ * @summary Place a conversation in a folder
428
+ */
429
+ export declare const placeThreadPathFolderMax = 64;
430
+ export declare const placeThreadPathThreadMax = 64;
431
+ export declare const PlaceThreadParams: zod.ZodObject<{
432
+ folder: zod.ZodString;
433
+ thread: zod.ZodString;
434
+ }, zod.z.core.$strict>;
435
+ export declare const PlaceThreadBody: zod.ZodObject<{
436
+ beforeThreadId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
437
+ afterThreadId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
438
+ expectedVersion: zod.ZodInt;
439
+ }, zod.z.core.$strict>;
440
+ /**
441
+ * A task does something on a trigger and reports to a conversation. Its action either sends a
442
+ * prompt to the conversation, which starts a turn there, or runs a command on an instance and
443
+ * sends the result to the conversation when it ends.
27
444
  *
28
- * Users cannot choose a compaction model. Normal compaction reuses the effective model and reasoning settings for context-cache reuse. Only if that model cannot handle the compaction request or produce a summary fitting the target window may the service automatically use another allowed Canopy model with suitable capabilities. This does not change the preference or ordinary answer model, and is permitted even when user model selection is disabled.
445
+ * `trigger.type` `now` runs once immediately; `at` runs once at `runAt`; `interval` repeats every
446
+ * `intervalSeconds` from `anchorAt`; `cron` repeats on a cron expression in `timezone`. Each
447
+ * execution is a run, listed under /runs.
29
448
  *
30
- * After compaction, the full next request, including instructions, tools and retained messages, must fit the target's usable prompt budget with room left for an answer, respecting its output limit. If still too large, further compaction attempts are bounded; exhaustion fails with CANNOT_FOLD instead of sending an oversized request or silently discarding history or images. The same checks apply when switching models or falling back. Each compaction entry records its actual author.
449
+ * Fails with 404 when the conversation does not exist and with 409 and code THREAD_ARCHIVED when
450
+ * it is archived.
451
+ * @summary Create a task
452
+ */
453
+ export declare const CreateTaskBody: zod.ZodObject<{
454
+ threadId: zod.ZodString;
455
+ name: zod.ZodString;
456
+ trigger: zod.ZodObject<{
457
+ type: zod.ZodEnum<{
458
+ at: "at";
459
+ now: "now";
460
+ interval: "interval";
461
+ cron: "cron";
462
+ }>;
463
+ runAt: zod.ZodOptional<zod.ZodNullable<zod.z.ZodISODateTime>>;
464
+ intervalSeconds: zod.ZodOptional<zod.ZodNullable<zod.ZodInt>>;
465
+ anchorAt: zod.ZodOptional<zod.ZodNullable<zod.z.ZodISODateTime>>;
466
+ cron: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
467
+ timezone: zod.ZodDefault<zod.ZodString>;
468
+ overlapPolicy: zod.ZodDefault<zod.ZodEnum<{
469
+ skip: "skip";
470
+ buffer_one: "buffer_one";
471
+ }>>;
472
+ catchupSeconds: zod.ZodDefault<zod.ZodInt>;
473
+ }, zod.z.core.$strict>;
474
+ action: zod.ZodObject<{
475
+ type: zod.ZodEnum<{
476
+ prompt: "prompt";
477
+ command: "command";
478
+ }>;
479
+ prompt: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
480
+ instanceId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
481
+ command: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
482
+ timeoutSeconds: zod.ZodDefault<zod.ZodInt>;
483
+ }, zod.z.core.$strict>;
484
+ }, zod.z.core.$strict>;
485
+ /**
486
+ * @summary Get a task
487
+ */
488
+ export declare const getTaskPathTaskMax = 64;
489
+ export declare const GetTaskParams: zod.ZodObject<{
490
+ task: zod.ZodString;
491
+ }, zod.z.core.$strict>;
492
+ /**
493
+ * Changes the name, trigger or action. Omitted fields stay as they are; `trigger` and `action`
494
+ * are replaced as a whole. A run already in progress keeps the settings it started with.
495
+ * @summary Update a task
496
+ */
497
+ export declare const updateTaskPathTaskMax = 64;
498
+ export declare const UpdateTaskParams: zod.ZodObject<{
499
+ task: zod.ZodString;
500
+ }, zod.z.core.$strict>;
501
+ export declare const UpdateTaskBody: zod.ZodObject<{
502
+ name: zod.ZodOptional<zod.ZodString>;
503
+ trigger: zod.ZodOptional<zod.ZodObject<{
504
+ type: zod.ZodEnum<{
505
+ at: "at";
506
+ now: "now";
507
+ interval: "interval";
508
+ cron: "cron";
509
+ }>;
510
+ runAt: zod.ZodOptional<zod.ZodNullable<zod.z.ZodISODateTime>>;
511
+ intervalSeconds: zod.ZodOptional<zod.ZodNullable<zod.ZodInt>>;
512
+ anchorAt: zod.ZodOptional<zod.ZodNullable<zod.z.ZodISODateTime>>;
513
+ cron: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
514
+ timezone: zod.ZodDefault<zod.ZodString>;
515
+ overlapPolicy: zod.ZodDefault<zod.ZodEnum<{
516
+ skip: "skip";
517
+ buffer_one: "buffer_one";
518
+ }>>;
519
+ catchupSeconds: zod.ZodDefault<zod.ZodInt>;
520
+ }, zod.z.core.$strict>>;
521
+ action: zod.ZodOptional<zod.ZodObject<{
522
+ type: zod.ZodEnum<{
523
+ prompt: "prompt";
524
+ command: "command";
525
+ }>;
526
+ prompt: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
527
+ instanceId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
528
+ command: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
529
+ timeoutSeconds: zod.ZodDefault<zod.ZodInt>;
530
+ }, zod.z.core.$strict>>;
531
+ }, zod.z.core.$strict>;
532
+ /**
533
+ * Cancels a run in progress and removes the task. Its runs stay readable in the conversation's transcript.
534
+ * @summary Delete a task
535
+ */
536
+ export declare const deleteTaskPathTaskMax = 64;
537
+ export declare const DeleteTaskParams: zod.ZodObject<{
538
+ task: zod.ZodString;
539
+ }, zod.z.core.$strict>;
540
+ /**
541
+ * Starts a run immediately, outside its trigger. Fails with 409 and code TASK_RUNNING when a run
542
+ * is already in progress and the overlap policy is `skip`.
543
+ * @summary Run a task now
544
+ */
545
+ export declare const runTaskPathTaskMax = 64;
546
+ export declare const RunTaskParams: zod.ZodObject<{
547
+ task: zod.ZodString;
548
+ }, zod.z.core.$strict>;
549
+ /**
550
+ * Stops future runs from its trigger. A run in progress continues. Pausing a paused task succeeds.
551
+ * @summary Pause a task
552
+ */
553
+ export declare const pauseTaskPathTaskMax = 64;
554
+ export declare const PauseTaskParams: zod.ZodObject<{
555
+ task: zod.ZodString;
556
+ }, zod.z.core.$strict>;
557
+ /**
558
+ * Lets its trigger start runs again. Missed runs within `catchupSeconds` are started. Resuming an active task succeeds.
559
+ * @summary Resume a task
560
+ */
561
+ export declare const resumeTaskPathTaskMax = 64;
562
+ export declare const ResumeTaskParams: zod.ZodObject<{
563
+ task: zod.ZodString;
564
+ }, zod.z.core.$strict>;
565
+ /**
566
+ * Stops the run in progress. The conversation is told the run was cancelled. Succeeds when nothing is running.
567
+ * @summary Cancel the running run
568
+ */
569
+ export declare const cancelTaskRunPathTaskMax = 64;
570
+ export declare const CancelTaskRunParams: zod.ZodObject<{
571
+ task: zod.ZodString;
572
+ }, zod.z.core.$strict>;
573
+ /**
574
+ * Newest first, without output; read a run with get-task-run for it.
575
+ * @summary List a task's runs
576
+ */
577
+ export declare const listTaskRunsPathTaskMax = 64;
578
+ export declare const ListTaskRunsParams: zod.ZodObject<{
579
+ task: zod.ZodString;
580
+ }, zod.z.core.$strict>;
581
+ export declare const listTaskRunsQueryCursorMax = 1024;
582
+ export declare const listTaskRunsQueryLimitDefault = 50;
583
+ export declare const listTaskRunsQueryLimitMax = 200;
584
+ export declare const ListTaskRunsQueryParams: zod.ZodObject<{
585
+ cursor: zod.ZodOptional<zod.ZodString>;
586
+ limit: zod.ZodDefault<zod.ZodInt>;
587
+ }, zod.z.core.$strict>;
588
+ /**
589
+ * One run with the end of its output.
590
+ * @summary Get a task run
591
+ */
592
+ export declare const getTaskRunPathTaskMax = 64;
593
+ export declare const getTaskRunPathRunMax = 128;
594
+ export declare const GetTaskRunParams: zod.ZodObject<{
595
+ task: zod.ZodString;
596
+ run: zod.ZodString;
597
+ }, zod.z.core.$strict>;
598
+ /**
599
+ * Omitted fields stay as they are; null clears a choice so the catalogue default applies again.
600
+ * Existing conversations keep their models.
31
601
  *
32
- * An empty allowlist or unavailable default does not prevent reading conversations or saving permitted preference changes. A failed Canopy catalogue read is not evidence that a model was removed: use a valid cached snapshot or return MODEL_CATALOG_UNAVAILABLE, without deleting references or inventing capabilities. Catalogue presence is configuration information, not a live provider health check.
602
+ * Fails with 422 and code MODEL_UNAVAILABLE when the model cannot run an agent, and with 422 and
603
+ * code REASONING_UNSUPPORTED when a reasoning effort is set for a model without reasoning.
604
+ * @summary Update settings
605
+ */
606
+ export declare const UpdateSettingsBody: zod.ZodObject<{
607
+ defaultModelId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
608
+ defaultReasoningEffort: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodEnum<{
609
+ high: "high";
610
+ low: "low";
611
+ medium: "medium";
612
+ }>, zod.ZodNull]>>;
613
+ }, zod.z.core.$strict>;
614
+ /**
615
+ * Upgrades to a WebSocket. The ticket from create-realtime-ticket authenticates the connection;
616
+ * a missing, expired or foreign ticket closes it with code 4401. The 200 response documents the
617
+ * message a client receives on the socket; the endpoint never answers with a plain HTTP body.
618
+ * @summary Open the realtime WebSocket
619
+ */
620
+ export declare const openRealtimeQueryTicketMax = 4096;
621
+ export declare const OpenRealtimeQueryParams: zod.ZodObject<{
622
+ ticket: zod.ZodString;
623
+ }, zod.z.core.$strict>;
624
+ /**
625
+ * 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.
33
626
  *
34
- * ## Live output
627
+ * 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.
35
628
  *
36
- * ```
37
- * GET /api/v1/turns/{turn}/stream?ticket=<ticket>&cursor=<cursor>
38
- * ```
629
+ * 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.
630
+ * @summary Upload a file
631
+ */
632
+ export declare const uploadAttachmentQueryFilenameMax = 255;
633
+ export declare const UploadAttachmentQueryParams: zod.ZodObject<{
634
+ filename: zod.ZodOptional<zod.ZodString>;
635
+ }, zod.z.core.$strict>;
636
+ /**
637
+ * Returns the original bytes for an attachment id. 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.
39
638
  *
40
- * This is a Server-Sent Events stream, which is why it is not in the operation list below and why generated clients have no method for it. Open it with `EventSource`, or any SSE client. It is how live output arrives; polling the document on a timer is not the intended way to follow a conversation.
639
+ * 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.
640
+ * @summary Download a file
641
+ */
642
+ export declare const DownloadAttachmentParams: zod.ZodObject<{
643
+ attachment: zod.ZodString;
644
+ }, zod.z.core.$strict>;
645
+ /**
646
+ * @summary Create upload
647
+ */
648
+ export declare const CreateUploadBody: zod.ZodObject<{
649
+ requestId: zod.ZodString;
650
+ filename: zod.ZodString;
651
+ byteSize: zod.ZodInt;
652
+ policyId: zod.ZodString;
653
+ maxFileBytes: zod.ZodInt;
654
+ partSizeBytes: zod.ZodInt;
655
+ }, zod.z.core.$strict>;
656
+ /**
657
+ * @summary Get upload
658
+ */
659
+ export declare const GetUploadParams: zod.ZodObject<{
660
+ upload: zod.ZodString;
661
+ }, zod.z.core.$strict>;
662
+ /**
663
+ * @summary Update upload
664
+ */
665
+ export declare const UpdateUploadParams: zod.ZodObject<{
666
+ upload: zod.ZodString;
667
+ }, zod.z.core.$strict>;
668
+ export declare const UpdateUploadBody: zod.ZodObject<{
669
+ filename: zod.ZodString;
670
+ }, zod.z.core.$strict>;
671
+ /**
672
+ * @summary Delete upload
673
+ */
674
+ export declare const DeleteUploadParams: zod.ZodObject<{
675
+ upload: zod.ZodString;
676
+ }, zod.z.core.$strict>;
677
+ /**
678
+ * @summary Cancel upload
679
+ */
680
+ export declare const CancelUploadParams: zod.ZodObject<{
681
+ upload: zod.ZodString;
682
+ }, zod.z.core.$strict>;
683
+ /**
684
+ * @summary Complete upload
685
+ */
686
+ export declare const CompleteUploadParams: zod.ZodObject<{
687
+ upload: zod.ZodString;
688
+ }, zod.z.core.$strict>;
689
+ export declare const CompleteUploadBody: zod.ZodObject<{
690
+ policyId: zod.ZodString;
691
+ }, zod.z.core.$strict>;
692
+ /**
693
+ * @summary Put upload part
694
+ */
695
+ export declare const putUploadPartPathPartMax = 10000;
696
+ export declare const PutUploadPartParams: zod.ZodObject<{
697
+ upload: zod.ZodString;
698
+ part: zod.ZodInt;
699
+ }, zod.z.core.$strict>;
700
+ export declare const PutUploadPartQueryParams: zod.ZodObject<{
701
+ policyId: zod.ZodString;
702
+ }, zod.z.core.$strict>;
703
+ export declare const PutUploadPartHeader: zod.ZodObject<{
704
+ "X-Part-Size": zod.ZodInt;
705
+ }, zod.z.core.$strict>;
706
+ /**
707
+ * The assistant stops remembering this. It takes effect at once, so the next conversation will not carry it. The assistant may well learn the same thing again.
708
+ * @summary Delete one memory
709
+ */
710
+ export declare const DeleteMemoryParams: zod.ZodObject<{
711
+ memory: zod.ZodString;
712
+ }, zod.z.core.$strict>;
713
+ /**
714
+ * Creates it, or replaces the project's skill of that name. The whole package goes in each
715
+ * time: files left out of a write are removed, so the stored skill is what was sent and not
716
+ * what accumulated.
41
717
  *
42
- * - `path` and `ticket` both come from the conversation document's `stream`. `path` is relative, resolved against the address the document was fetched from;
43
- * - `cursor` is where to start, from the document's `cursor`. Omit it to start at the beginning of what is still available;
44
- * - every event is one incremental edit to that same document, so the same rendering logic applies;
45
- * - the connection has a lifetime and closes cleanly when it ends. With `EventSource` the browser reconnects with `Last-Event-ID` and resumes by itself, so nothing needs handling;
46
- * - three terminal events: `done` this turn finished (carrying its final status), `paused` the assistant is waiting on the user (fetch the document again and read `wait`), `stalled` execution was interrupted and will not resume — do not reconnect.
47
- * OpenAPI spec version: 1.0.0
718
+ * A project skill takes precedence over a built-in one of the same name for this project only.
719
+ * The built-in is untouched and reappears if the project's is deleted.
720
+ * @summary Write a skill for this project
48
721
  */
49
- import * as zod from "zod";
722
+ export declare const PutSkillBody: zod.ZodObject<{
723
+ description: zod.ZodString;
724
+ enabled: zod.ZodDefault<zod.ZodBoolean>;
725
+ files: zod.ZodRecord<zod.ZodString, zod.ZodString>;
726
+ name: zod.ZodString;
727
+ shortDescription: zod.ZodOptional<zod.ZodString>;
728
+ }, zod.z.core.$strict>;
50
729
  /**
51
- * The body is the file bytes themselves, not multipart, one file per request. The kind is determined from the content, not from Content-Type or from the name. Put the returned id in attachmentIds when sending a message.
52
- *
53
- * 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.
54
- *
55
- * The returned `kind` 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.
56
- * @summary Upload a file
730
+ * Works for built-in skills too; they simply cannot be written.
731
+ * @summary Read one skill, with its files
57
732
  */
58
- export declare const uploadAttachmentQueryFilenameMax = 255;
59
- export declare const UploadAttachmentQueryParams: zod.ZodObject<{
60
- filename: zod.ZodOptional<zod.ZodString>;
733
+ export declare const GetSkillParams: zod.ZodObject<{
734
+ skill: zod.ZodString;
61
735
  }, zod.z.core.$strict>;
62
736
  /**
63
- * Returns the original bytes for an attachment id. 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.
737
+ * Separate from writing it, because this is the frequent one: a skill that is off costs
738
+ * nothing and stays where it is.
64
739
  *
65
- * Only an attachment whose `kind` 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.
66
- * @summary Download a file
740
+ * Only skills belonging to the project can be switched. To keep a built-in one out of the
741
+ * way, write a project skill of the same name and turn that off.
742
+ * @summary Turn a skill on or off
67
743
  */
68
- export declare const DownloadAttachmentParams: zod.ZodObject<{
69
- attachment: zod.ZodString;
744
+ export declare const SetSkillEnabledParams: zod.ZodObject<{
745
+ skill: zod.ZodString;
746
+ }, zod.z.core.$strict>;
747
+ export declare const SetSkillEnabledBody: zod.ZodObject<{
748
+ enabled: zod.ZodBoolean;
749
+ }, zod.z.core.$strict>;
750
+ /**
751
+ * A built-in skill of the same name, if there was one, becomes visible again.
752
+ * @summary Delete this project's skill
753
+ */
754
+ export declare const DeleteSkillParams: zod.ZodObject<{
755
+ skill: zod.ZodString;
70
756
  }, zod.z.core.$strict>;
71
757
  /**
72
758
  * Filter by channelId to show, per channel, who is bound to it.
@@ -220,274 +906,3 @@ export declare const SubmitWeixinVerifyCodeParams: zod.ZodObject<{
220
906
  export declare const SubmitWeixinVerifyCodeBody: zod.ZodObject<{
221
907
  code: zod.ZodString;
222
908
  }, zod.z.core.$strict>;
223
- /**
224
- * The assistant asks the client to run an action by adding a tool call to the conversation
225
- * with the namespace `dynamic`; the client acts when that entry turns in_progress and reports
226
- * back here.
227
- *
228
- * The first result is the one that counts. A later one is refused rather than replacing it.
229
- * @summary Report what an action produced
230
- */
231
- export declare const SubmitDynamicCallResultParams: zod.ZodObject<{
232
- call: zod.ZodString;
233
- }, zod.z.core.$strict>;
234
- export declare const SubmitDynamicCallResultBody: zod.ZodObject<{
235
- clientId: zod.ZodString;
236
- error: zod.ZodOptional<zod.ZodString>;
237
- nextCursor: zod.ZodOptional<zod.ZodString>;
238
- ok: zod.ZodBoolean;
239
- output: zod.ZodOptional<zod.ZodString>;
240
- }, zod.z.core.$strict>;
241
- /**
242
- * A folder groups conversations in the sidebar and does nothing else. The assistant is never told which folder a conversation is in, and a conversation behaves exactly the same inside one as outside: no shared instructions, no shared files, no shared memory.
243
- *
244
- * Names are unique within an account's folders in this project, because the only way to aim at a folder is to read its name.
245
- * @summary Create a folder
246
- */
247
- export declare const CreateFolderBody: zod.ZodObject<{
248
- name: zod.ZodString;
249
- }, zod.z.core.$strict>;
250
- /**
251
- * The list returns every folder at once, so this is for the case the list does not cover: a page opened straight at a folder, holding nothing but the id from the address bar. Its conversations are a separate request — `GET /api/v1/threads?folder=<id>`.
252
- * @summary Fetch one folder
253
- */
254
- export declare const GetFolderParams: zod.ZodObject<{
255
- folder: zod.ZodString;
256
- }, zod.z.core.$strict>;
257
- /**
258
- * The conversations in it are untouched, and none of them move in the list — a folder's name is not part of what any conversation is about.
259
- * @summary Rename a folder
260
- */
261
- export declare const UpdateFolderParams: zod.ZodObject<{
262
- folder: zod.ZodString;
263
- }, zod.z.core.$strict>;
264
- export declare const UpdateFolderBody: zod.ZodObject<{
265
- name: zod.ZodString;
266
- }, zod.z.core.$strict>;
267
- /**
268
- * The conversations inside are **not** deleted. They leave the folder and go back to the ungrouped list, where they can be filed again. Emptying a shelf is not the same as throwing out what was on it, and deleting a conversation is a different request.
269
- *
270
- * Idempotent: deleting a folder that is already gone succeeds and changes nothing.
271
- * @summary Delete a folder
272
- */
273
- export declare const DeleteFolderParams: zod.ZodObject<{
274
- folder: zod.ZodString;
275
- }, zod.z.core.$strict>;
276
- /**
277
- * The assistant stops remembering this. It takes effect at once, so the next conversation will not carry it. The assistant may well learn the same thing again.
278
- * @summary Delete one memory
279
- */
280
- export declare const DeleteMemoryParams: zod.ZodObject<{
281
- memory: zod.ZodString;
282
- }, zod.z.core.$strict>;
283
- /**
284
- * Creates it, or replaces the project's skill of that name. The whole package goes in each
285
- * time: files left out of a write are removed, so the stored skill is what was sent and not
286
- * what accumulated.
287
- *
288
- * A project skill takes precedence over a built-in one of the same name for this project only.
289
- * The built-in is untouched and reappears if the project's is deleted.
290
- * @summary Write a skill for this project
291
- */
292
- export declare const PutSkillBody: zod.ZodObject<{
293
- description: zod.ZodString;
294
- enabled: zod.ZodDefault<zod.ZodBoolean>;
295
- files: zod.ZodRecord<zod.ZodString, zod.ZodString>;
296
- name: zod.ZodString;
297
- shortDescription: zod.ZodOptional<zod.ZodString>;
298
- }, zod.z.core.$strict>;
299
- /**
300
- * Works for built-in skills too; they simply cannot be written.
301
- * @summary Read one skill, with its files
302
- */
303
- export declare const GetSkillParams: zod.ZodObject<{
304
- skill: zod.ZodString;
305
- }, zod.z.core.$strict>;
306
- /**
307
- * Separate from writing it, because this is the frequent one: a skill that is off costs
308
- * nothing and stays where it is.
309
- *
310
- * Only skills belonging to the project can be switched. To keep a built-in one out of the
311
- * way, write a project skill of the same name and turn that off.
312
- * @summary Turn a skill on or off
313
- */
314
- export declare const SetSkillEnabledParams: zod.ZodObject<{
315
- skill: zod.ZodString;
316
- }, zod.z.core.$strict>;
317
- export declare const SetSkillEnabledBody: zod.ZodObject<{
318
- enabled: zod.ZodBoolean;
319
- }, zod.z.core.$strict>;
320
- /**
321
- * A built-in skill of the same name, if there was one, becomes visible again.
322
- * @summary Delete this project's skill
323
- */
324
- export declare const DeleteSkillParams: zod.ZodObject<{
325
- skill: zod.ZodString;
326
- }, zod.z.core.$strict>;
327
- /**
328
- * Ordered by most recent activity, limited to the current account's conversations in the current project. `archived` selects between two sets rather than widening one: archived conversations are absent from the default list, and turning the flag on shows those instead.
329
- *
330
- * Pass the returned nextCursor as cursor; omit cursor on the first page. Continue with the same q, archived and folder filters. The cursor marks a position in the activity order, so changing filters between pages does not continue the same list.
331
- * @summary List conversations
332
- */
333
- export declare const listThreadsQueryQMax = 100;
334
- export declare const listThreadsQueryFolderMax = 64;
335
- export declare const listThreadsQueryCursorMax = 1024;
336
- export declare const listThreadsQueryLimitDefault = 50;
337
- export declare const listThreadsQueryLimitMax = 200;
338
- export declare const ListThreadsQueryParams: zod.ZodObject<{
339
- q: zod.ZodOptional<zod.ZodString>;
340
- archived: zod.ZodOptional<zod.ZodBoolean>;
341
- folder: zod.ZodOptional<zod.ZodString>;
342
- cursor: zod.ZodOptional<zod.ZodString>;
343
- limit: zod.ZodDefault<zod.ZodInt>;
344
- }, zod.z.core.$strict>;
345
- /**
346
- * Omit preferredModelId or set it to null to follow the platform default. A non-null preference is accepted only while model selection is enabled; otherwise the request fails with 403 and code MODEL_SELECTION_DISABLED.
347
- *
348
- * A well-formed preference for a Canopy model that is no longer allowed or has been retired or removed is retained and uses the default when a turn starts. This also handles a catalogue change between displaying the selector and submitting the choice. Creating a conversation does not contact a model provider and remains possible when generation is unavailable.
349
- * @summary Create a conversation
350
- */
351
- export declare const CreateThreadBody: zod.ZodObject<{
352
- approvalMode: zod.ZodOptional<zod.ZodEnum<{
353
- manual: "manual";
354
- guardian: "guardian";
355
- yolo: "yolo";
356
- }>>;
357
- preferredModelId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
358
- }, zod.z.core.$strict>;
359
- /**
360
- * The complete current state of a conversation, for the first render. Its `stream` gives the address and admission ticket for live output, and what that stream pushes are incremental edits to this same document, so the same rendering logic applies.
361
- * @summary Fetch the conversation document
362
- */
363
- export declare const GetThreadParams: zod.ZodObject<{
364
- thread: zod.ZodString;
365
- }, zod.z.core.$strict>;
366
- /**
367
- * Changes the title, folder, approval mode, model preference, and whether the conversation is archived. Approval and model preference changes take effect from the next turn; a turn already running keeps the settings it started with.
368
- *
369
- * Omit preferredModelId to leave the preference unchanged, or set it to null to follow the platform default. A non-null preference is accepted only while model selection is enabled; otherwise the whole request fails with 403 and code MODEL_SELECTION_DISABLED and none of its fields are changed. Clearing a preference remains allowed while selection is disabled. A well-formed preference for a disallowed, retired or removed Canopy model is retained and falls back to the default when used.
370
- *
371
- * Model switching is allowed on an existing conversation, including while a turn is generating or waiting for approval or an answer. The response immediately returns the saved preferredModelId, while model continues to identify the running turn's effective model until it finishes. Messages queued into that running turn also keep its captured model choices. The next turn uses the latest saved preference.
372
- *
373
- * Changing the preference does not create a new conversation, start a turn, call a model provider, clear the transcript, or rewrite historical model attribution. Before the next turn sends its first request to the selected model, the service checks that model's input capabilities and usable context budget. A switch to a smaller window may require compaction under the compaction policy above; saving the preference alone does not establish that the conversation fits.
374
- *
375
- * Archiving makes a conversation read-only: it stays in the list under "archived", stays readable, and the assistant can still find it when it searches past conversations — it just takes no new input. Unarchive it to continue. Archiving fails while a turn is running; stop it first.
376
- * @summary Update conversation settings
377
- */
378
- export declare const UpdateThreadParams: zod.ZodObject<{
379
- thread: zod.ZodString;
380
- }, zod.z.core.$strict>;
381
- export declare const UpdateThreadBody: zod.ZodObject<{
382
- approvalMode: zod.ZodOptional<zod.ZodEnum<{
383
- manual: "manual";
384
- guardian: "guardian";
385
- yolo: "yolo";
386
- }>>;
387
- archived: zod.ZodOptional<zod.ZodBoolean>;
388
- preferredModelId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
389
- folderId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
390
- title: zod.ZodOptional<zod.ZodString>;
391
- }, zod.z.core.$strict>;
392
- /**
393
- * Removes the conversation from every list and makes it unreachable by id. The assistant can no longer find it either — neither by searching past conversations nor by reading one back.
394
- *
395
- * Deleting is not the same as archiving, and the two are not degrees of the same thing. An archived conversation is still there and still readable, it just takes no new input; a deleted one is gone from view. Archiving can be undone; this cannot.
396
- *
397
- * What survives is the record itself, because a conversation with this assistant is an account of what was done to real infrastructure — which machine was changed, which disk was removed. That record is kept even though nobody can reach it here.
398
- *
399
- * Fails while a turn is running: stop it first. Deleting an already deleted conversation succeeds and changes nothing.
400
- * @summary Delete a conversation
401
- */
402
- export declare const DeleteThreadParams: zod.ZodObject<{
403
- thread: zod.ZodString;
404
- }, zod.z.core.$strict>;
405
- /**
406
- * The batch id comes from the conversation document's `wait`. This is idempotent: submitting the same batch again neither changes a decision already in effect nor reports an error. Returns 404 when the batch does not belong to that conversation.
407
- * @summary Approve or decline a batch of tool calls
408
- */
409
- export declare const DecideApprovalParams: zod.ZodObject<{
410
- thread: zod.ZodString;
411
- batch: zod.ZodString;
412
- }, zod.z.core.$strict>;
413
- export declare const DecideApprovalBody: zod.ZodObject<{
414
- approved: zod.ZodBoolean;
415
- reason: zod.ZodOptional<zod.ZodString>;
416
- }, zod.z.core.$strict>;
417
- /**
418
- * The first render only carries the latest stretch of a conversation; anything above it is fetched here, one stretch at a time. Pass the document's earlier.before as `before`; the `earlier` in the response is the cursor for the stretch above that, and null means the top has been reached. The entries have the same shape and the same order (oldest first) as `items` in the document, so they can be prepended as they are.
419
- * @summary Fetch earlier parts of a conversation
420
- */
421
- export declare const ListEarlierItemsParams: zod.ZodObject<{
422
- thread: zod.ZodString;
423
- }, zod.z.core.$strict>;
424
- export declare const listEarlierItemsQueryBeforeMin = 0;
425
- export declare const ListEarlierItemsQueryParams: zod.ZodObject<{
426
- before: zod.ZodInt;
427
- }, zod.z.core.$strict>;
428
- /**
429
- * Calling this on a conversation with no running turn also returns 204 rather than an error — the user pressing stop races with the turn finishing on its own, and both outcomes are the same. This operation remains available while the project is suspended or being cleaned up.
430
- * @summary Interrupt a running turn
431
- */
432
- export declare const InterruptThreadParams: zod.ZodObject<{
433
- thread: zod.ZodString;
434
- }, zod.z.core.$strict>;
435
- /**
436
- * Returns a turnId immediately without waiting for execution — a turn can run for tens of minutes. Progress arrives on the live stream the conversation document's `stream` points at, not in this response. Sending while the assistant is still working is allowed: the message is put in line and `queued` comes back true, to be read at the next step of the turn already running — so the editor should stay open rather than blocking on a busy conversation.
437
- * @summary Send a message and start a turn
438
- */
439
- export declare const SendMessageParams: zod.ZodObject<{
440
- thread: zod.ZodString;
441
- }, zod.z.core.$strict>;
442
- export declare const SendMessageBody: zod.ZodObject<{
443
- client: zod.ZodOptional<zod.ZodObject<{
444
- actions: zod.ZodOptional<zod.ZodNullable<zod.ZodArray<zod.ZodObject<{
445
- function: zod.ZodObject<{
446
- description: zod.ZodString;
447
- inputSchema: zod.ZodOptional<zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>>;
448
- name: zod.ZodString;
449
- parameters: zod.ZodOptional<zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>>;
450
- }, zod.z.core.$strict>;
451
- readOnly: zod.ZodBoolean;
452
- timeoutMs: zod.ZodOptional<zod.ZodInt>;
453
- type: zod.ZodDefault<zod.ZodEnum<{
454
- function: "function";
455
- }>>;
456
- }, zod.z.core.$strict>>>>;
457
- clientId: zod.ZodString;
458
- label: zod.ZodOptional<zod.ZodString>;
459
- }, zod.z.core.$strict>>;
460
- parts: zod.ZodArray<zod.ZodObject<{
461
- attachmentId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
462
- data: zod.ZodOptional<zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>>;
463
- text: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
464
- type: zod.ZodString;
465
- }, zod.z.core.$strict>>;
466
- }, zod.z.core.$strict>;
467
- /**
468
- * The question id comes from the conversation document's `wait`. An already-answered question also returns 204 — another tab may have submitted first, or the auto-answer window may have expired, and in both cases the turn has already continued with an answer.
469
- * @summary Answer the assistant's questions
470
- */
471
- export declare const AnswerQuestionParams: zod.ZodObject<{
472
- thread: zod.ZodString;
473
- item: zod.ZodString;
474
- }, zod.z.core.$strict>;
475
- export declare const AnswerQuestionBody: zod.ZodObject<{
476
- answers: zod.ZodRecord<zod.ZodString, zod.ZodString>;
477
- }, zod.z.core.$strict>;
478
- /**
479
- * @summary Mark a conversation as read
480
- */
481
- export declare const MarkThreadReadParams: zod.ZodObject<{
482
- thread: zod.ZodString;
483
- }, zod.z.core.$strict>;
484
- /**
485
- * Reverts the entry at `ordinal` and everything after it. Reverted entries stay in the transcript marked `reverted`, and ordinals are not renumbered. Returns how many were actually reverted.
486
- * @summary Revert from a given point
487
- */
488
- export declare const RevertThreadParams: zod.ZodObject<{
489
- thread: zod.ZodString;
490
- }, zod.z.core.$strict>;
491
- export declare const RevertThreadBody: zod.ZodObject<{
492
- ordinal: zod.ZodInt;
493
- }, zod.z.core.$strict>;