@leaflow/sdk 0.0.0-dev.365.gf6f57d1 → 0.0.0-dev.369.g4b81cd7

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 (362) hide show
  1. package/dist/account/v1/generated/functions.d.ts +76 -2
  2. package/dist/account/v1/generated/functions.js +77 -1
  3. package/dist/account/v1/generated/models.d.ts +88 -43
  4. package/dist/account/v1/generated/models.js +19 -9
  5. package/dist/account/v1/generated/schemas.zod.d.ts +15 -1
  6. package/dist/account/v1/generated/schemas.zod.js +14 -1
  7. package/dist/account/v1/generated/validators/accountDeletionObjectionResource.zod.d.ts +32 -0
  8. package/dist/account/v1/generated/validators/accountDeletionObjectionResource.zod.js +32 -0
  9. package/dist/account/v1/generated/validators/accountDeletionResource.zod.d.ts +69 -0
  10. package/dist/account/v1/generated/validators/accountDeletionResource.zod.js +53 -0
  11. package/dist/account/v1/generated/validators/accountDeletionState.zod.d.ts +34 -0
  12. package/dist/account/v1/generated/validators/accountDeletionState.zod.js +29 -0
  13. package/dist/account/v1/generated/validators/requestAccountDeletionRequestBody.zod.d.ts +31 -0
  14. package/dist/account/v1/generated/validators/requestAccountDeletionRequestBody.zod.js +31 -0
  15. package/dist/assistant/v1/generated/functions.d.ts +31 -53
  16. package/dist/assistant/v1/generated/functions.js +32 -57
  17. package/dist/assistant/v1/generated/models.d.ts +102 -59
  18. package/dist/assistant/v1/generated/models.js +10 -0
  19. package/dist/assistant/v1/generated/schemas.zod.d.ts +26 -20
  20. package/dist/assistant/v1/generated/schemas.zod.js +39 -21
  21. package/dist/assistant/v1/generated/validators/answerQuestionRequestBody.zod.d.ts +2 -2
  22. package/dist/assistant/v1/generated/validators/answerQuestionRequestBody.zod.js +2 -2
  23. package/dist/assistant/v1/generated/validators/approvalMode.zod.d.ts +2 -2
  24. package/dist/assistant/v1/generated/validators/approvalMode.zod.js +2 -2
  25. package/dist/assistant/v1/generated/validators/attachmentResource.zod.d.ts +2 -2
  26. package/dist/assistant/v1/generated/validators/attachmentResource.zod.js +2 -2
  27. package/dist/assistant/v1/generated/validators/bindingCodeResponseBody.zod.d.ts +2 -2
  28. package/dist/assistant/v1/generated/validators/bindingCodeResponseBody.zod.js +2 -2
  29. package/dist/assistant/v1/generated/validators/bindingResource.zod.d.ts +2 -2
  30. package/dist/assistant/v1/generated/validators/bindingResource.zod.js +2 -2
  31. package/dist/assistant/v1/generated/validators/channelResource.zod.d.ts +2 -2
  32. package/dist/assistant/v1/generated/validators/channelResource.zod.js +2 -2
  33. package/dist/assistant/v1/generated/validators/channelWithSecretResponseBody.zod.d.ts +2 -2
  34. package/dist/assistant/v1/generated/validators/channelWithSecretResponseBody.zod.js +2 -2
  35. package/dist/assistant/v1/generated/validators/checkSenderParams.zod.d.ts +2 -2
  36. package/dist/assistant/v1/generated/validators/checkSenderParams.zod.js +2 -2
  37. package/dist/assistant/v1/generated/validators/choiceResource.zod.d.ts +2 -2
  38. package/dist/assistant/v1/generated/validators/choiceResource.zod.js +2 -2
  39. package/dist/assistant/v1/generated/validators/clientActionRequest.zod.d.ts +2 -2
  40. package/dist/assistant/v1/generated/validators/clientActionRequest.zod.js +2 -2
  41. package/dist/assistant/v1/generated/validators/clientContextPart.zod.d.ts +2 -2
  42. package/dist/assistant/v1/generated/validators/clientContextPart.zod.js +2 -2
  43. package/dist/assistant/v1/generated/validators/clientContextRequest.zod.d.ts +2 -2
  44. package/dist/assistant/v1/generated/validators/clientContextRequest.zod.js +2 -2
  45. package/dist/assistant/v1/generated/validators/clientFunctionRequest.zod.d.ts +2 -2
  46. package/dist/assistant/v1/generated/validators/clientFunctionRequest.zod.js +2 -2
  47. package/dist/assistant/v1/generated/validators/completeUploadRequestBody.zod.d.ts +2 -2
  48. package/dist/assistant/v1/generated/validators/completeUploadRequestBody.zod.js +2 -2
  49. package/dist/assistant/v1/generated/validators/contextUsageResource.zod.d.ts +2 -2
  50. package/dist/assistant/v1/generated/validators/contextUsageResource.zod.js +2 -2
  51. package/dist/assistant/v1/generated/validators/createChannelRequestBody.zod.d.ts +2 -2
  52. package/dist/assistant/v1/generated/validators/createChannelRequestBody.zod.js +2 -2
  53. package/dist/assistant/v1/generated/validators/createFolderRequestBody.zod.d.ts +2 -2
  54. package/dist/assistant/v1/generated/validators/createFolderRequestBody.zod.js +2 -2
  55. package/dist/assistant/v1/generated/validators/createTaskRequestBody.zod.d.ts +2 -2
  56. package/dist/assistant/v1/generated/validators/createTaskRequestBody.zod.js +2 -2
  57. package/dist/assistant/v1/generated/validators/createThreadRequestBody.zod.d.ts +2 -2
  58. package/dist/assistant/v1/generated/validators/createThreadRequestBody.zod.js +2 -2
  59. package/dist/assistant/v1/generated/validators/createThreadResponseBody.zod.d.ts +3 -2
  60. package/dist/assistant/v1/generated/validators/createThreadResponseBody.zod.js +2 -2
  61. package/dist/assistant/v1/generated/validators/createUploadRequestBody.zod.d.ts +2 -2
  62. package/dist/assistant/v1/generated/validators/createUploadRequestBody.zod.js +2 -2
  63. package/dist/assistant/v1/generated/validators/credentialFieldResource.zod.d.ts +2 -2
  64. package/dist/assistant/v1/generated/validators/credentialFieldResource.zod.js +2 -2
  65. package/dist/assistant/v1/generated/validators/cursorPagination.zod.d.ts +2 -2
  66. package/dist/assistant/v1/generated/validators/cursorPagination.zod.js +2 -2
  67. package/dist/assistant/v1/generated/validators/decideToolCallsRequestBody.zod.d.ts +2 -2
  68. package/dist/assistant/v1/generated/validators/decideToolCallsRequestBody.zod.js +2 -2
  69. package/dist/assistant/v1/generated/validators/defaultModelResource.zod.d.ts +2 -2
  70. package/dist/assistant/v1/generated/validators/defaultModelResource.zod.js +2 -2
  71. package/dist/assistant/v1/generated/validators/error.zod.d.ts +2 -2
  72. package/dist/assistant/v1/generated/validators/error.zod.js +2 -2
  73. package/dist/assistant/v1/generated/validators/fileDiffResource.zod.d.ts +2 -2
  74. package/dist/assistant/v1/generated/validators/fileDiffResource.zod.js +2 -2
  75. package/dist/assistant/v1/generated/validators/folderCountsResource.zod.d.ts +2 -2
  76. package/dist/assistant/v1/generated/validators/folderCountsResource.zod.js +2 -2
  77. package/dist/assistant/v1/generated/validators/folderListResponseBody.zod.d.ts +2 -2
  78. package/dist/assistant/v1/generated/validators/folderListResponseBody.zod.js +2 -2
  79. package/dist/assistant/v1/generated/validators/folderResource.zod.d.ts +2 -2
  80. package/dist/assistant/v1/generated/validators/folderResource.zod.js +2 -2
  81. package/dist/assistant/v1/generated/validators/itemFrame.zod.d.ts +2 -2
  82. package/dist/assistant/v1/generated/validators/itemFrame.zod.js +2 -2
  83. package/dist/assistant/v1/generated/validators/itemSourceResource.zod.d.ts +2 -2
  84. package/dist/assistant/v1/generated/validators/itemSourceResource.zod.js +2 -2
  85. package/dist/assistant/v1/generated/validators/lastTurnResource.zod.d.ts +2 -2
  86. package/dist/assistant/v1/generated/validators/lastTurnResource.zod.js +2 -2
  87. package/dist/assistant/v1/generated/validators/lengthAwarePageBindingResource.zod.d.ts +2 -2
  88. package/dist/assistant/v1/generated/validators/lengthAwarePageBindingResource.zod.js +2 -2
  89. package/dist/assistant/v1/generated/validators/lengthAwarePageChannelResource.zod.d.ts +2 -2
  90. package/dist/assistant/v1/generated/validators/lengthAwarePageChannelResource.zod.js +2 -2
  91. package/dist/assistant/v1/generated/validators/listBindingsParams.zod.d.ts +2 -2
  92. package/dist/assistant/v1/generated/validators/listBindingsParams.zod.js +2 -2
  93. package/dist/assistant/v1/generated/validators/listChannelRejectionsParams.zod.d.ts +2 -2
  94. package/dist/assistant/v1/generated/validators/listChannelRejectionsParams.zod.js +2 -2
  95. package/dist/assistant/v1/generated/validators/listChannelsParams.zod.d.ts +2 -2
  96. package/dist/assistant/v1/generated/validators/listChannelsParams.zod.js +2 -2
  97. package/dist/assistant/v1/generated/validators/listTaskRunsParams.zod.d.ts +2 -2
  98. package/dist/assistant/v1/generated/validators/listTaskRunsParams.zod.js +2 -2
  99. package/dist/assistant/v1/generated/validators/listThreadItemsParams.zod.d.ts +2 -2
  100. package/dist/assistant/v1/generated/validators/listThreadItemsParams.zod.js +2 -2
  101. package/dist/assistant/v1/generated/validators/{commandResource.zod.d.ts → listThreadMessagesParams.zod.d.ts} +12 -9
  102. package/dist/assistant/v1/generated/validators/{runCommandRequestBody.zod.js → listThreadMessagesParams.zod.js} +17 -14
  103. package/dist/assistant/v1/generated/validators/listThreadTurnsParams.zod.d.ts +2 -2
  104. package/dist/assistant/v1/generated/validators/listThreadTurnsParams.zod.js +2 -2
  105. package/dist/assistant/v1/generated/validators/loginResource.zod.d.ts +2 -2
  106. package/dist/assistant/v1/generated/validators/loginResource.zod.js +2 -2
  107. package/dist/assistant/v1/generated/validators/memoryListResponseBody.zod.d.ts +2 -2
  108. package/dist/assistant/v1/generated/validators/memoryListResponseBody.zod.js +2 -2
  109. package/dist/assistant/v1/generated/validators/memoryResource.zod.d.ts +2 -2
  110. package/dist/assistant/v1/generated/validators/memoryResource.zod.js +2 -2
  111. package/dist/assistant/v1/generated/validators/messagePart.zod.d.ts +2 -2
  112. package/dist/assistant/v1/generated/validators/messagePart.zod.js +2 -2
  113. package/dist/assistant/v1/generated/validators/moveFolderRequestBody.zod.d.ts +2 -2
  114. package/dist/assistant/v1/generated/validators/moveFolderRequestBody.zod.js +2 -2
  115. package/dist/assistant/v1/generated/validators/offsetPagination.zod.d.ts +2 -2
  116. package/dist/assistant/v1/generated/validators/offsetPagination.zod.js +2 -2
  117. package/dist/assistant/v1/generated/validators/openRealtimeParams.zod.d.ts +2 -2
  118. package/dist/assistant/v1/generated/validators/openRealtimeParams.zod.js +2 -2
  119. package/dist/assistant/v1/generated/validators/partResource.zod.d.ts +2 -2
  120. package/dist/assistant/v1/generated/validators/partResource.zod.js +2 -2
  121. package/dist/assistant/v1/generated/validators/pendingActionResource.zod.d.ts +2 -2
  122. package/dist/assistant/v1/generated/validators/pendingActionResource.zod.js +2 -2
  123. package/dist/assistant/v1/generated/validators/placeThreadRequestBody.zod.d.ts +2 -2
  124. package/dist/assistant/v1/generated/validators/placeThreadRequestBody.zod.js +2 -2
  125. package/dist/assistant/v1/generated/validators/platformListResponseBody.zod.d.ts +3 -3
  126. package/dist/assistant/v1/generated/validators/platformListResponseBody.zod.js +2 -2
  127. package/dist/assistant/v1/generated/validators/platformResource.zod.d.ts +3 -3
  128. package/dist/assistant/v1/generated/validators/platformResource.zod.js +2 -2
  129. package/dist/assistant/v1/generated/validators/presentationResource.zod.d.ts +2 -2
  130. package/dist/assistant/v1/generated/validators/presentationResource.zod.js +2 -2
  131. package/dist/assistant/v1/generated/validators/putUploadPartHeaders.zod.d.ts +2 -2
  132. package/dist/assistant/v1/generated/validators/putUploadPartHeaders.zod.js +2 -2
  133. package/dist/assistant/v1/generated/validators/putUploadPartParams.zod.d.ts +2 -2
  134. package/dist/assistant/v1/generated/validators/putUploadPartParams.zod.js +2 -2
  135. package/dist/assistant/v1/generated/validators/questionResource.zod.d.ts +2 -2
  136. package/dist/assistant/v1/generated/validators/questionResource.zod.js +2 -2
  137. package/dist/assistant/v1/generated/validators/realtimeClientMessage.zod.d.ts +2 -2
  138. package/dist/assistant/v1/generated/validators/realtimeClientMessage.zod.js +2 -2
  139. package/dist/assistant/v1/generated/validators/realtimeExchange.zod.d.ts +9 -2
  140. package/dist/assistant/v1/generated/validators/realtimeExchange.zod.js +2 -2
  141. package/dist/assistant/v1/generated/validators/realtimeServerMessage.zod.d.ts +9 -2
  142. package/dist/assistant/v1/generated/validators/realtimeServerMessage.zod.js +2 -2
  143. package/dist/assistant/v1/generated/validators/realtimeTicketResource.zod.d.ts +2 -2
  144. package/dist/assistant/v1/generated/validators/realtimeTicketResource.zod.js +2 -2
  145. package/dist/assistant/v1/generated/validators/reasoningEffort.zod.d.ts +2 -2
  146. package/dist/assistant/v1/generated/validators/reasoningEffort.zod.js +2 -2
  147. package/dist/assistant/v1/generated/validators/rejectionListResponseBody.zod.d.ts +2 -2
  148. package/dist/assistant/v1/generated/validators/rejectionListResponseBody.zod.js +2 -2
  149. package/dist/assistant/v1/generated/validators/rejectionResource.zod.d.ts +2 -2
  150. package/dist/assistant/v1/generated/validators/rejectionResource.zod.js +2 -2
  151. package/dist/assistant/v1/generated/validators/resumeThreadRequestBody.zod.d.ts +2 -2
  152. package/dist/assistant/v1/generated/validators/resumeThreadRequestBody.zod.js +2 -2
  153. package/dist/assistant/v1/generated/validators/revertRequestBody.zod.d.ts +2 -2
  154. package/dist/assistant/v1/generated/validators/revertRequestBody.zod.js +2 -2
  155. package/dist/assistant/v1/generated/validators/revertedCountResponseBody.zod.d.ts +2 -2
  156. package/dist/assistant/v1/generated/validators/revertedCountResponseBody.zod.js +2 -2
  157. package/dist/assistant/v1/generated/validators/rotateSecretRequestBody.zod.d.ts +2 -2
  158. package/dist/assistant/v1/generated/validators/rotateSecretRequestBody.zod.js +2 -2
  159. package/dist/assistant/v1/generated/validators/searchTasksRequestBody.zod.d.ts +2 -2
  160. package/dist/assistant/v1/generated/validators/searchTasksRequestBody.zod.js +2 -2
  161. package/dist/assistant/v1/generated/validators/searchThreadsRequestBody.zod.d.ts +2 -2
  162. package/dist/assistant/v1/generated/validators/searchThreadsRequestBody.zod.js +2 -2
  163. package/dist/assistant/v1/generated/validators/sendMessageRequestBody.zod.d.ts +2 -2
  164. package/dist/assistant/v1/generated/validators/sendMessageRequestBody.zod.js +2 -2
  165. package/dist/assistant/v1/generated/validators/sendMessageResponseBody.zod.d.ts +2 -2
  166. package/dist/assistant/v1/generated/validators/sendMessageResponseBody.zod.js +2 -2
  167. package/dist/assistant/v1/generated/validators/senderCheckResource.zod.d.ts +2 -2
  168. package/dist/assistant/v1/generated/validators/senderCheckResource.zod.js +2 -2
  169. package/dist/assistant/v1/generated/validators/settingsResource.zod.d.ts +2 -2
  170. package/dist/assistant/v1/generated/validators/settingsResource.zod.js +2 -2
  171. package/dist/assistant/v1/generated/validators/skillEnabledRequestBody.zod.d.ts +2 -2
  172. package/dist/assistant/v1/generated/validators/skillEnabledRequestBody.zod.js +2 -2
  173. package/dist/assistant/v1/generated/validators/skillListResponseBody.zod.d.ts +2 -2
  174. package/dist/assistant/v1/generated/validators/skillListResponseBody.zod.js +2 -2
  175. package/dist/assistant/v1/generated/validators/skillRequestBody.zod.d.ts +2 -2
  176. package/dist/assistant/v1/generated/validators/skillRequestBody.zod.js +2 -2
  177. package/dist/assistant/v1/generated/validators/skillResource.zod.d.ts +2 -2
  178. package/dist/assistant/v1/generated/validators/skillResource.zod.js +2 -2
  179. package/dist/assistant/v1/generated/validators/subagentCountResource.zod.d.ts +2 -2
  180. package/dist/assistant/v1/generated/validators/subagentCountResource.zod.js +2 -2
  181. package/dist/assistant/v1/generated/validators/taskAction.zod.d.ts +2 -2
  182. package/dist/assistant/v1/generated/validators/taskAction.zod.js +2 -2
  183. package/dist/assistant/v1/generated/validators/taskListResponseBody.zod.d.ts +7 -2
  184. package/dist/assistant/v1/generated/validators/taskListResponseBody.zod.js +2 -2
  185. package/dist/assistant/v1/generated/validators/taskResource.zod.d.ts +7 -2
  186. package/dist/assistant/v1/generated/validators/taskResource.zod.js +2 -2
  187. package/dist/assistant/v1/generated/validators/taskRunListResponseBody.zod.d.ts +7 -2
  188. package/dist/assistant/v1/generated/validators/taskRunListResponseBody.zod.js +2 -2
  189. package/dist/assistant/v1/generated/validators/taskRunResource.zod.d.ts +7 -2
  190. package/dist/assistant/v1/generated/validators/taskRunResource.zod.js +5 -2
  191. package/dist/assistant/v1/generated/validators/taskTrigger.zod.d.ts +2 -2
  192. package/dist/assistant/v1/generated/validators/taskTrigger.zod.js +2 -2
  193. package/dist/assistant/v1/generated/validators/threadCountsResource.zod.d.ts +2 -2
  194. package/dist/assistant/v1/generated/validators/threadCountsResource.zod.js +2 -2
  195. package/dist/assistant/v1/generated/validators/threadItemListResponseBody.zod.d.ts +6 -2
  196. package/dist/assistant/v1/generated/validators/threadItemListResponseBody.zod.js +2 -2
  197. package/dist/assistant/v1/generated/validators/threadItemResource.zod.d.ts +4 -2
  198. package/dist/assistant/v1/generated/validators/threadItemResource.zod.js +7 -2
  199. package/dist/assistant/v1/generated/validators/threadListResponseBody.zod.d.ts +3 -2
  200. package/dist/assistant/v1/generated/validators/threadListResponseBody.zod.js +2 -2
  201. package/dist/assistant/v1/generated/validators/{commandListResponseBody.zod.d.ts → threadMessageListResponseBody.zod.d.ts} +15 -10
  202. package/dist/assistant/v1/generated/validators/{commandListResponseBody.zod.js → threadMessageListResponseBody.zod.js} +10 -5
  203. package/dist/assistant/v1/generated/validators/{runCommandRequestBody.zod.d.ts → threadMessageResource.zod.d.ts} +13 -9
  204. package/dist/assistant/v1/generated/validators/{commandResultResource.zod.js → threadMessageResource.zod.js} +20 -13
  205. package/dist/assistant/v1/generated/validators/threadResource.zod.d.ts +4 -2
  206. package/dist/assistant/v1/generated/validators/threadResource.zod.js +7 -2
  207. package/dist/assistant/v1/generated/validators/threadStatus.zod.d.ts +2 -2
  208. package/dist/assistant/v1/generated/validators/threadStatus.zod.js +2 -2
  209. package/dist/assistant/v1/generated/validators/threadTurnListResponseBody.zod.d.ts +3 -2
  210. package/dist/assistant/v1/generated/validators/threadTurnListResponseBody.zod.js +2 -2
  211. package/dist/assistant/v1/generated/validators/threadTurnResource.zod.d.ts +4 -2
  212. package/dist/assistant/v1/generated/validators/threadTurnResource.zod.js +7 -2
  213. package/dist/assistant/v1/generated/validators/todoResource.zod.d.ts +2 -2
  214. package/dist/assistant/v1/generated/validators/todoResource.zod.js +2 -2
  215. package/dist/assistant/v1/generated/validators/toolCallResource.zod.d.ts +3 -2
  216. package/dist/assistant/v1/generated/validators/toolCallResource.zod.js +11 -2
  217. package/dist/assistant/v1/generated/validators/toolResultRequestBody.zod.d.ts +2 -2
  218. package/dist/assistant/v1/generated/validators/toolResultRequestBody.zod.js +2 -2
  219. package/dist/assistant/v1/generated/validators/turnStartedResponseBody.zod.d.ts +2 -2
  220. package/dist/assistant/v1/generated/validators/turnStartedResponseBody.zod.js +2 -2
  221. package/dist/assistant/v1/generated/validators/turnStatus.zod.d.ts +2 -2
  222. package/dist/assistant/v1/generated/validators/turnStatus.zod.js +2 -2
  223. package/dist/assistant/v1/generated/validators/turnType.zod.d.ts +2 -2
  224. package/dist/assistant/v1/generated/validators/turnType.zod.js +2 -2
  225. package/dist/assistant/v1/generated/validators/updateChannelRequestBody.zod.d.ts +2 -2
  226. package/dist/assistant/v1/generated/validators/updateChannelRequestBody.zod.js +2 -2
  227. package/dist/assistant/v1/generated/validators/updateFolderRequestBody.zod.d.ts +2 -2
  228. package/dist/assistant/v1/generated/validators/updateFolderRequestBody.zod.js +2 -2
  229. package/dist/assistant/v1/generated/validators/updateSettingsRequestBody.zod.d.ts +2 -2
  230. package/dist/assistant/v1/generated/validators/updateSettingsRequestBody.zod.js +2 -2
  231. package/dist/assistant/v1/generated/validators/updateTaskRequestBody.zod.d.ts +2 -2
  232. package/dist/assistant/v1/generated/validators/updateTaskRequestBody.zod.js +2 -2
  233. package/dist/assistant/v1/generated/validators/updateThreadRequestBody.zod.d.ts +2 -2
  234. package/dist/assistant/v1/generated/validators/updateThreadRequestBody.zod.js +2 -2
  235. package/dist/assistant/v1/generated/validators/updateUploadRequestBody.zod.d.ts +2 -2
  236. package/dist/assistant/v1/generated/validators/updateUploadRequestBody.zod.js +2 -2
  237. package/dist/assistant/v1/generated/validators/uploadAttachmentParams.zod.d.ts +2 -2
  238. package/dist/assistant/v1/generated/validators/uploadAttachmentParams.zod.js +2 -2
  239. package/dist/assistant/v1/generated/validators/uploadConfigurationResource.zod.d.ts +2 -2
  240. package/dist/assistant/v1/generated/validators/uploadConfigurationResource.zod.js +2 -2
  241. package/dist/assistant/v1/generated/validators/uploadListResponseBody.zod.d.ts +2 -2
  242. package/dist/assistant/v1/generated/validators/uploadListResponseBody.zod.js +2 -2
  243. package/dist/assistant/v1/generated/validators/uploadPartResource.zod.d.ts +2 -2
  244. package/dist/assistant/v1/generated/validators/uploadPartResource.zod.js +2 -2
  245. package/dist/assistant/v1/generated/validators/uploadResource.zod.d.ts +2 -2
  246. package/dist/assistant/v1/generated/validators/uploadResource.zod.js +2 -2
  247. package/dist/assistant/v1/generated/validators/uploadedResource.zod.d.ts +2 -2
  248. package/dist/assistant/v1/generated/validators/uploadedResource.zod.js +2 -2
  249. package/dist/assistant/v1/generated/validators/usage.zod.d.ts +2 -2
  250. package/dist/assistant/v1/generated/validators/usage.zod.js +2 -2
  251. package/dist/assistant/v1/generated/validators/verifyCodeRequestBody.zod.d.ts +2 -2
  252. package/dist/assistant/v1/generated/validators/verifyCodeRequestBody.zod.js +2 -2
  253. package/dist/assistant/v1/generated/validators/webhookSecretResponseBody.zod.d.ts +2 -2
  254. package/dist/assistant/v1/generated/validators/webhookSecretResponseBody.zod.js +2 -2
  255. package/dist/billing/type/order/v1/generated/models.d.ts +29 -0
  256. package/dist/billing/type/order/v1/generated/models.js +9 -0
  257. package/dist/billing/type/order/v1/generated/validators/accountDeletionObjection.zod.d.ts +19 -0
  258. package/dist/billing/type/order/v1/generated/validators/accountDeletionObjection.zod.js +19 -0
  259. package/dist/billing/type/order/v1/generated/validators/accountDeletionReadiness.zod.d.ts +45 -0
  260. package/dist/billing/type/order/v1/generated/validators/accountDeletionReadiness.zod.js +14 -0
  261. package/dist/billing/type/order/v1/generated/validators/accountDeletionReadinessItem.zod.d.ts +43 -0
  262. package/dist/billing/type/order/v1/generated/validators/accountDeletionReadinessItem.zod.js +19 -0
  263. package/dist/billing/type/order/v1/generated/validators/cancellation.zod.d.ts +2 -2
  264. package/dist/billing/type/order/v1/generated/validators/cancellationItem.zod.d.ts +1 -1
  265. package/dist/billing/type/order/v1/generated/validators/cancellationList.zod.d.ts +2 -2
  266. package/dist/billing/type/order/v1/generated/validators/contact.zod.d.ts +1 -1
  267. package/dist/billing/type/order/v1/generated/validators/contactList.zod.d.ts +1 -1
  268. package/dist/billing/type/order/v1/generated/validators/discount.zod.d.ts +1 -1
  269. package/dist/billing/type/order/v1/generated/validators/discountList.zod.d.ts +1 -1
  270. package/dist/billing/type/order/v1/generated/validators/featureGrant.zod.d.ts +1 -1
  271. package/dist/billing/type/order/v1/generated/validators/featureGrantList.zod.d.ts +1 -1
  272. package/dist/billing/type/order/v1/generated/validators/featureGrantStatus.zod.d.ts +1 -1
  273. package/dist/billing/type/order/v1/generated/validators/invoice.zod.d.ts +1 -1
  274. package/dist/billing/type/order/v1/generated/validators/invoiceList.zod.d.ts +1 -1
  275. package/dist/billing/type/order/v1/generated/validators/subscription.zod.d.ts +1 -1
  276. package/dist/billing/type/order/v1/generated/validators/subscriptionCancellation.zod.d.ts +1 -1
  277. package/dist/billing/type/order/v1/generated/validators/subscriptionList.zod.d.ts +1 -1
  278. package/dist/billing/v1/generated/functions.d.ts +27 -1
  279. package/dist/billing/v1/generated/functions.js +21 -0
  280. package/dist/billing/v1/generated/models.d.ts +29 -0
  281. package/dist/billing/v1/generated/models.js +9 -0
  282. package/dist/billing/v1/generated/schemas.zod.d.ts +2 -2
  283. package/dist/billing/v1/generated/validators/accountDeletionObjection.zod.d.ts +19 -0
  284. package/dist/billing/v1/generated/validators/accountDeletionObjection.zod.js +19 -0
  285. package/dist/billing/v1/generated/validators/accountDeletionReadiness.zod.d.ts +45 -0
  286. package/dist/billing/v1/generated/validators/accountDeletionReadiness.zod.js +14 -0
  287. package/dist/billing/v1/generated/validators/accountDeletionReadinessItem.zod.d.ts +43 -0
  288. package/dist/billing/v1/generated/validators/accountDeletionReadinessItem.zod.js +19 -0
  289. package/dist/billing/v1/generated/validators/cancellation.zod.d.ts +2 -2
  290. package/dist/billing/v1/generated/validators/cancellationItem.zod.d.ts +1 -1
  291. package/dist/billing/v1/generated/validators/cancellationList.zod.d.ts +2 -2
  292. package/dist/billing/v1/generated/validators/contact.zod.d.ts +1 -1
  293. package/dist/billing/v1/generated/validators/contactList.zod.d.ts +1 -1
  294. package/dist/billing/v1/generated/validators/discount.zod.d.ts +1 -1
  295. package/dist/billing/v1/generated/validators/discountList.zod.d.ts +1 -1
  296. package/dist/billing/v1/generated/validators/featureGrant.zod.d.ts +1 -1
  297. package/dist/billing/v1/generated/validators/featureGrantList.zod.d.ts +1 -1
  298. package/dist/billing/v1/generated/validators/featureGrantStatus.zod.d.ts +1 -1
  299. package/dist/billing/v1/generated/validators/invoice.zod.d.ts +1 -1
  300. package/dist/billing/v1/generated/validators/invoiceList.zod.d.ts +1 -1
  301. package/dist/billing/v1/generated/validators/listCancellationsParams.zod.d.ts +1 -1
  302. package/dist/billing/v1/generated/validators/listFeatureGrantsParams.zod.d.ts +1 -1
  303. package/dist/billing/v1/generated/validators/subscription.zod.d.ts +1 -1
  304. package/dist/billing/v1/generated/validators/subscriptionCancellation.zod.d.ts +1 -1
  305. package/dist/billing/v1/generated/validators/subscriptionList.zod.d.ts +1 -1
  306. package/dist/canopy/v1/generated/models.d.ts +29 -0
  307. package/dist/canopy/v1/generated/models.js +9 -0
  308. package/dist/canopy/v1/generated/validators/accountDeletionObjection.zod.d.ts +52 -0
  309. package/dist/canopy/v1/generated/validators/accountDeletionObjection.zod.js +52 -0
  310. package/dist/canopy/v1/generated/validators/accountDeletionReadiness.zod.d.ts +78 -0
  311. package/dist/canopy/v1/generated/validators/accountDeletionReadiness.zod.js +47 -0
  312. package/dist/canopy/v1/generated/validators/accountDeletionReadinessItem.zod.d.ts +76 -0
  313. package/dist/canopy/v1/generated/validators/accountDeletionReadinessItem.zod.js +52 -0
  314. package/dist/canopy/v1/generated/validators/cancellation.zod.d.ts +2 -2
  315. package/dist/canopy/v1/generated/validators/cancellationItem.zod.d.ts +1 -1
  316. package/dist/canopy/v1/generated/validators/cancellationList.zod.d.ts +2 -2
  317. package/dist/canopy/v1/generated/validators/contact.zod.d.ts +1 -1
  318. package/dist/canopy/v1/generated/validators/contactList.zod.d.ts +1 -1
  319. package/dist/canopy/v1/generated/validators/discount.zod.d.ts +1 -1
  320. package/dist/canopy/v1/generated/validators/discountList.zod.d.ts +1 -1
  321. package/dist/canopy/v1/generated/validators/featureGrant.zod.d.ts +1 -1
  322. package/dist/canopy/v1/generated/validators/featureGrantList.zod.d.ts +1 -1
  323. package/dist/canopy/v1/generated/validators/featureGrantStatus.zod.d.ts +1 -1
  324. package/dist/canopy/v1/generated/validators/invoice.zod.d.ts +1 -1
  325. package/dist/canopy/v1/generated/validators/invoiceList.zod.d.ts +1 -1
  326. package/dist/canopy/v1/generated/validators/subscription.zod.d.ts +1 -1
  327. package/dist/canopy/v1/generated/validators/subscriptionCancellation.zod.d.ts +1 -1
  328. package/dist/canopy/v1/generated/validators/subscriptionList.zod.d.ts +1 -1
  329. package/dist/membership/v1/generated/functions.d.ts +3 -3
  330. package/dist/membership/v1/generated/functions.js +3 -3
  331. package/dist/membership/v1/generated/models.d.ts +29 -0
  332. package/dist/membership/v1/generated/models.js +9 -0
  333. package/dist/membership/v1/generated/schemas.zod.d.ts +3 -3
  334. package/dist/membership/v1/generated/schemas.zod.js +3 -3
  335. package/dist/membership/v1/generated/validators/accountDeletionObjection.zod.d.ts +19 -0
  336. package/dist/membership/v1/generated/validators/accountDeletionObjection.zod.js +19 -0
  337. package/dist/membership/v1/generated/validators/accountDeletionReadiness.zod.d.ts +45 -0
  338. package/dist/membership/v1/generated/validators/accountDeletionReadiness.zod.js +14 -0
  339. package/dist/membership/v1/generated/validators/accountDeletionReadinessItem.zod.d.ts +43 -0
  340. package/dist/membership/v1/generated/validators/accountDeletionReadinessItem.zod.js +19 -0
  341. package/dist/membership/v1/generated/validators/cancellation.zod.d.ts +2 -2
  342. package/dist/membership/v1/generated/validators/cancellationItem.zod.d.ts +1 -1
  343. package/dist/membership/v1/generated/validators/cancellationList.zod.d.ts +2 -2
  344. package/dist/membership/v1/generated/validators/contact.zod.d.ts +1 -1
  345. package/dist/membership/v1/generated/validators/contactList.zod.d.ts +1 -1
  346. package/dist/membership/v1/generated/validators/discount.zod.d.ts +1 -1
  347. package/dist/membership/v1/generated/validators/discountList.zod.d.ts +1 -1
  348. package/dist/membership/v1/generated/validators/featureGrant.zod.d.ts +1 -1
  349. package/dist/membership/v1/generated/validators/featureGrantList.zod.d.ts +1 -1
  350. package/dist/membership/v1/generated/validators/featureGrantStatus.zod.d.ts +1 -1
  351. package/dist/membership/v1/generated/validators/invoice.zod.d.ts +1 -1
  352. package/dist/membership/v1/generated/validators/invoiceList.zod.d.ts +1 -1
  353. package/dist/membership/v1/generated/validators/subscription.zod.d.ts +1 -1
  354. package/dist/membership/v1/generated/validators/subscriptionCancellation.zod.d.ts +1 -1
  355. package/dist/membership/v1/generated/validators/subscriptionList.zod.d.ts +1 -1
  356. package/dist/routes.d.ts +40 -16
  357. package/dist/routes.js +45 -18
  358. package/package.json +1 -1
  359. package/dist/assistant/v1/generated/validators/commandResource.zod.js +0 -33
  360. package/dist/assistant/v1/generated/validators/commandResultResource.zod.d.ts +0 -201
  361. package/dist/assistant/v1/generated/validators/statusReportResource.zod.d.ts +0 -108
  362. package/dist/assistant/v1/generated/validators/statusReportResource.zod.js +0 -48
@@ -15,8 +15,8 @@
15
15
  * of three efforts — low, medium or high — which are sent to the model unchanged.
16
16
  *
17
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.
18
+ * over the WebSocket described under /api/v1/realtime/tickets. list-thread-messages outlines the
19
+ * person's messages for navigating a long conversation.
20
20
  *
21
21
  * Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
22
22
  * parts, then complete the upload and send its attachment id in a message.
@@ -15,8 +15,8 @@
15
15
  * of three efforts — low, medium or high — which are sent to the model unchanged.
16
16
  *
17
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.
18
+ * over the WebSocket described under /api/v1/realtime/tickets. list-thread-messages outlines the
19
+ * person's messages for navigating a long conversation.
20
20
  *
21
21
  * Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
22
22
  * parts, then complete the upload and send its attachment id in a message.
@@ -78,6 +78,11 @@ export declare const TaskResource: zod.ZodObject<{
78
78
  exitCode: zod.ZodNullable<zod.ZodInt>;
79
79
  output: zod.ZodNullable<zod.ZodString>;
80
80
  errorCode: zod.ZodNullable<zod.ZodString>;
81
+ trigger: zod.ZodEnum<{
82
+ manual: "manual";
83
+ schedule: "schedule";
84
+ assistant: "assistant";
85
+ }>;
81
86
  }, zod.z.core.$strict>, zod.ZodNull]>;
82
87
  createdAt: zod.z.ZodISODateTime;
83
88
  updatedAt: zod.z.ZodISODateTime;
@@ -15,8 +15,8 @@
15
15
  * of three efforts — low, medium or high — which are sent to the model unchanged.
16
16
  *
17
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.
18
+ * over the WebSocket described under /api/v1/realtime/tickets. list-thread-messages outlines the
19
+ * person's messages for navigating a long conversation.
20
20
  *
21
21
  * Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
22
22
  * parts, then complete the upload and send its attachment id in a message.
@@ -15,8 +15,8 @@
15
15
  * of three efforts — low, medium or high — which are sent to the model unchanged.
16
16
  *
17
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.
18
+ * over the WebSocket described under /api/v1/realtime/tickets. list-thread-messages outlines the
19
+ * person's messages for navigating a long conversation.
20
20
  *
21
21
  * Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
22
22
  * parts, then complete the upload and send its attachment id in a message.
@@ -40,6 +40,11 @@ export declare const TaskRunListResponseBody: zod.ZodObject<{
40
40
  exitCode: zod.ZodNullable<zod.ZodInt>;
41
41
  output: zod.ZodNullable<zod.ZodString>;
42
42
  errorCode: zod.ZodNullable<zod.ZodString>;
43
+ trigger: zod.ZodEnum<{
44
+ manual: "manual";
45
+ schedule: "schedule";
46
+ assistant: "assistant";
47
+ }>;
43
48
  }, zod.z.core.$strict>>;
44
49
  nextCursor: zod.ZodNullable<zod.ZodString>;
45
50
  }, zod.z.core.$strict>;
@@ -15,8 +15,8 @@
15
15
  * of three efforts — low, medium or high — which are sent to the model unchanged.
16
16
  *
17
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.
18
+ * over the WebSocket described under /api/v1/realtime/tickets. list-thread-messages outlines the
19
+ * person's messages for navigating a long conversation.
20
20
  *
21
21
  * Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
22
22
  * parts, then complete the upload and send its attachment id in a message.
@@ -15,8 +15,8 @@
15
15
  * of three efforts — low, medium or high — which are sent to the model unchanged.
16
16
  *
17
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.
18
+ * over the WebSocket described under /api/v1/realtime/tickets. list-thread-messages outlines the
19
+ * person's messages for navigating a long conversation.
20
20
  *
21
21
  * Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
22
22
  * parts, then complete the upload and send its attachment id in a message.
@@ -39,6 +39,11 @@ export declare const TaskRunResource: zod.ZodObject<{
39
39
  exitCode: zod.ZodNullable<zod.ZodInt>;
40
40
  output: zod.ZodNullable<zod.ZodString>;
41
41
  errorCode: zod.ZodNullable<zod.ZodString>;
42
+ trigger: zod.ZodEnum<{
43
+ manual: "manual";
44
+ schedule: "schedule";
45
+ assistant: "assistant";
46
+ }>;
42
47
  }, zod.z.core.$strict>;
43
48
  export type TaskRunResource = zod.input<typeof TaskRunResource>;
44
49
  export type TaskRunResourceOutput = zod.output<typeof TaskRunResource>;
@@ -15,8 +15,8 @@
15
15
  * of three efforts — low, medium or high — which are sent to the model unchanged.
16
16
  *
17
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.
18
+ * over the WebSocket described under /api/v1/realtime/tickets. list-thread-messages outlines the
19
+ * person's messages for navigating a long conversation.
20
20
  *
21
21
  * Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
22
22
  * parts, then complete the upload and send its attachment id in a message.
@@ -35,4 +35,7 @@ export const TaskRunResource = zod.strictObject({
35
35
  .nullable()
36
36
  .describe("The last 16 KiB of a command's output. Empty for prompts; null in lists, read the run for it."),
37
37
  errorCode: zod.string().nullable().describe("Why the run failed. Null unless status is failed."),
38
+ trigger: zod
39
+ .enum(["schedule", "manual", "assistant"])
40
+ .describe("How the run started: `schedule` by the task's own trigger, including a task set to run now;\n`manual` by a person running it outside its schedule; `assistant` by the assistant."),
38
41
  });
@@ -15,8 +15,8 @@
15
15
  * of three efforts — low, medium or high — which are sent to the model unchanged.
16
16
  *
17
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.
18
+ * over the WebSocket described under /api/v1/realtime/tickets. list-thread-messages outlines the
19
+ * person's messages for navigating a long conversation.
20
20
  *
21
21
  * Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
22
22
  * parts, then complete the upload and send its attachment id in a message.
@@ -15,8 +15,8 @@
15
15
  * of three efforts — low, medium or high — which are sent to the model unchanged.
16
16
  *
17
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.
18
+ * over the WebSocket described under /api/v1/realtime/tickets. list-thread-messages outlines the
19
+ * person's messages for navigating a long conversation.
20
20
  *
21
21
  * Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
22
22
  * parts, then complete the upload and send its attachment id in a message.
@@ -15,8 +15,8 @@
15
15
  * of three efforts — low, medium or high — which are sent to the model unchanged.
16
16
  *
17
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.
18
+ * over the WebSocket described under /api/v1/realtime/tickets. list-thread-messages outlines the
19
+ * person's messages for navigating a long conversation.
20
20
  *
21
21
  * Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
22
22
  * parts, then complete the upload and send its attachment id in a message.
@@ -15,8 +15,8 @@
15
15
  * of three efforts — low, medium or high — which are sent to the model unchanged.
16
16
  *
17
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.
18
+ * over the WebSocket described under /api/v1/realtime/tickets. list-thread-messages outlines the
19
+ * person's messages for navigating a long conversation.
20
20
  *
21
21
  * Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
22
22
  * parts, then complete the upload and send its attachment id in a message.
@@ -15,8 +15,8 @@
15
15
  * of three efforts — low, medium or high — which are sent to the model unchanged.
16
16
  *
17
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.
18
+ * over the WebSocket described under /api/v1/realtime/tickets. list-thread-messages outlines the
19
+ * person's messages for navigating a long conversation.
20
20
  *
21
21
  * Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
22
22
  * parts, then complete the upload and send its attachment id in a message.
@@ -109,6 +109,7 @@ export declare const ThreadItemListResponseBody: zod.ZodObject<{
109
109
  }, zod.z.core.$strict>, zod.ZodNull]>;
110
110
  approvalStatus: zod.ZodNullable<zod.ZodUnion<readonly [zod.ZodLiteral<"pending">, zod.ZodLiteral<"reviewing">, zod.ZodLiteral<"approved">, zod.ZodLiteral<"auto_approved">, zod.ZodLiteral<"declined">, zod.ZodLiteral<"unreviewed">, zod.ZodLiteral<null>]>>;
111
111
  approvalReason: zod.ZodNullable<zod.ZodString>;
112
+ approvalSource: zod.ZodNullable<zod.ZodUnion<readonly [zod.ZodLiteral<"user">, zod.ZodLiteral<"auto_review">, zod.ZodLiteral<"policy">, zod.ZodLiteral<null>]>>;
112
113
  decidedAt: zod.ZodNullable<zod.z.ZodISODateTime>;
113
114
  questions: zod.ZodNullable<zod.ZodArray<zod.ZodObject<{
114
115
  id: zod.ZodString;
@@ -122,6 +123,7 @@ export declare const ThreadItemListResponseBody: zod.ZodObject<{
122
123
  answers: zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
123
124
  autoAnswerMs: zod.ZodNullable<zod.ZodInt>;
124
125
  }, zod.z.core.$strict>, zod.ZodNull]>;
126
+ messageIndex: zod.ZodNullable<zod.ZodInt>;
125
127
  createdAt: zod.z.ZodISODateTime;
126
128
  }, zod.z.core.$strict>>;
127
129
  startOrdinal: zod.ZodNullable<zod.ZodInt>;
@@ -213,6 +215,7 @@ export declare const ThreadItemListResponseBody: zod.ZodObject<{
213
215
  }, zod.z.core.$strict>, zod.ZodNull]>;
214
216
  approvalStatus: zod.ZodNullable<zod.ZodUnion<readonly [zod.ZodLiteral<"pending">, zod.ZodLiteral<"reviewing">, zod.ZodLiteral<"approved">, zod.ZodLiteral<"auto_approved">, zod.ZodLiteral<"declined">, zod.ZodLiteral<"unreviewed">, zod.ZodLiteral<null>]>>;
215
217
  approvalReason: zod.ZodNullable<zod.ZodString>;
218
+ approvalSource: zod.ZodNullable<zod.ZodUnion<readonly [zod.ZodLiteral<"user">, zod.ZodLiteral<"auto_review">, zod.ZodLiteral<"policy">, zod.ZodLiteral<null>]>>;
216
219
  decidedAt: zod.ZodNullable<zod.z.ZodISODateTime>;
217
220
  questions: zod.ZodNullable<zod.ZodArray<zod.ZodObject<{
218
221
  id: zod.ZodString;
@@ -226,6 +229,7 @@ export declare const ThreadItemListResponseBody: zod.ZodObject<{
226
229
  answers: zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
227
230
  autoAnswerMs: zod.ZodNullable<zod.ZodInt>;
228
231
  }, zod.z.core.$strict>, zod.ZodNull]>;
232
+ messageIndex: zod.ZodNullable<zod.ZodInt>;
229
233
  createdAt: zod.z.ZodISODateTime;
230
234
  }, zod.z.core.$strict>>;
231
235
  streamCursor: zod.ZodNullable<zod.ZodString>;
@@ -15,8 +15,8 @@
15
15
  * of three efforts — low, medium or high — which are sent to the model unchanged.
16
16
  *
17
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.
18
+ * over the WebSocket described under /api/v1/realtime/tickets. list-thread-messages outlines the
19
+ * person's messages for navigating a long conversation.
20
20
  *
21
21
  * Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
22
22
  * parts, then complete the upload and send its attachment id in a message.
@@ -15,8 +15,8 @@
15
15
  * of three efforts — low, medium or high — which are sent to the model unchanged.
16
16
  *
17
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.
18
+ * over the WebSocket described under /api/v1/realtime/tickets. list-thread-messages outlines the
19
+ * person's messages for navigating a long conversation.
20
20
  *
21
21
  * Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
22
22
  * parts, then complete the upload and send its attachment id in a message.
@@ -108,6 +108,7 @@ export declare const ThreadItemResource: zod.ZodObject<{
108
108
  }, zod.z.core.$strict>, zod.ZodNull]>;
109
109
  approvalStatus: zod.ZodNullable<zod.ZodUnion<readonly [zod.ZodLiteral<"pending">, zod.ZodLiteral<"reviewing">, zod.ZodLiteral<"approved">, zod.ZodLiteral<"auto_approved">, zod.ZodLiteral<"declined">, zod.ZodLiteral<"unreviewed">, zod.ZodLiteral<null>]>>;
110
110
  approvalReason: zod.ZodNullable<zod.ZodString>;
111
+ approvalSource: zod.ZodNullable<zod.ZodUnion<readonly [zod.ZodLiteral<"user">, zod.ZodLiteral<"auto_review">, zod.ZodLiteral<"policy">, zod.ZodLiteral<null>]>>;
111
112
  decidedAt: zod.ZodNullable<zod.z.ZodISODateTime>;
112
113
  questions: zod.ZodNullable<zod.ZodArray<zod.ZodObject<{
113
114
  id: zod.ZodString;
@@ -121,6 +122,7 @@ export declare const ThreadItemResource: zod.ZodObject<{
121
122
  answers: zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
122
123
  autoAnswerMs: zod.ZodNullable<zod.ZodInt>;
123
124
  }, zod.z.core.$strict>, zod.ZodNull]>;
125
+ messageIndex: zod.ZodNullable<zod.ZodInt>;
124
126
  createdAt: zod.z.ZodISODateTime;
125
127
  }, zod.z.core.$strict>;
126
128
  export type ThreadItemResource = zod.input<typeof ThreadItemResource>;
@@ -15,8 +15,8 @@
15
15
  * of three efforts — low, medium or high — which are sent to the model unchanged.
16
16
  *
17
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.
18
+ * over the WebSocket described under /api/v1/realtime/tickets. list-thread-messages outlines the
19
+ * person's messages for navigating a long conversation.
20
20
  *
21
21
  * Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
22
22
  * parts, then complete the upload and send its attachment id in a message.
@@ -79,6 +79,11 @@ export const ThreadItemResource = zod
79
79
  toolCall: zod
80
80
  .union([ToolCallResource, zod.null()])
81
81
  .describe("The call, for a `tool_call` item. Null for other items."),
82
+ messageIndex: zod
83
+ .int()
84
+ .min(1)
85
+ .nullable()
86
+ .describe("The position of a `user_message` among the person's messages, from 1, as in\nlist-thread-messages. Null for other items, and for messages that are reverted or waiting\nin the queue."),
82
87
  createdAt: zod.iso.datetime({ offset: true }),
83
88
  })
84
89
  .describe("One entry of the transcript. `type` determines which fields it carries.");
@@ -15,8 +15,8 @@
15
15
  * of three efforts — low, medium or high — which are sent to the model unchanged.
16
16
  *
17
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.
18
+ * over the WebSocket described under /api/v1/realtime/tickets. list-thread-messages outlines the
19
+ * person's messages for navigating a long conversation.
20
20
  *
21
21
  * Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
22
22
  * parts, then complete the upload and send its attachment id in a message.
@@ -109,6 +109,7 @@ export declare const ThreadListResponseBody: zod.ZodObject<{
109
109
  }, zod.z.core.$strict>;
110
110
  unread: zod.ZodBoolean;
111
111
  archived: zod.ZodBoolean;
112
+ messageCount: zod.ZodInt;
112
113
  createdAt: zod.z.ZodISODateTime;
113
114
  updatedAt: zod.z.ZodISODateTime;
114
115
  }, zod.z.core.$strict>>;
@@ -15,8 +15,8 @@
15
15
  * of three efforts — low, medium or high — which are sent to the model unchanged.
16
16
  *
17
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.
18
+ * over the WebSocket described under /api/v1/realtime/tickets. list-thread-messages outlines the
19
+ * person's messages for navigating a long conversation.
20
20
  *
21
21
  * Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
22
22
  * parts, then complete the upload and send its attachment id in a message.
@@ -15,21 +15,26 @@
15
15
  * of three efforts — low, medium or high — which are sent to the model unchanged.
16
16
  *
17
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.
18
+ * over the WebSocket described under /api/v1/realtime/tickets. list-thread-messages outlines the
19
+ * person's messages for navigating a long conversation.
20
20
  *
21
21
  * Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
22
22
  * parts, then complete the upload and send its attachment id in a message.
23
23
  * OpenAPI spec version: 2.0.0
24
24
  */
25
25
  import * as zod from "zod";
26
- export declare const CommandListResponseBody: zod.ZodObject<{
27
- commands: zod.ZodArray<zod.ZodObject<{
28
- name: zod.ZodString;
29
- aliases: zod.ZodArray<zod.ZodString>;
30
- description: zod.ZodString;
31
- argumentHint: zod.ZodString;
26
+ export declare const threadMessageListResponseBodyTotalMin = 0;
27
+ export declare const ThreadMessageListResponseBody: zod.ZodObject<{
28
+ messages: zod.ZodArray<zod.ZodObject<{
29
+ id: zod.ZodString;
30
+ index: zod.ZodInt;
31
+ ordinal: zod.ZodInt;
32
+ turnId: zod.ZodString;
33
+ preview: zod.ZodString;
34
+ attachments: zod.ZodInt;
35
+ createdAt: zod.z.ZodISODateTime;
32
36
  }, zod.z.core.$strict>>;
37
+ total: zod.ZodInt;
33
38
  }, zod.z.core.$strict>;
34
- export type CommandListResponseBody = zod.input<typeof CommandListResponseBody>;
35
- export type CommandListResponseBodyOutput = zod.output<typeof CommandListResponseBody>;
39
+ export type ThreadMessageListResponseBody = zod.input<typeof ThreadMessageListResponseBody>;
40
+ export type ThreadMessageListResponseBodyOutput = zod.output<typeof ThreadMessageListResponseBody>;
@@ -15,15 +15,20 @@
15
15
  * of three efforts — low, medium or high — which are sent to the model unchanged.
16
16
  *
17
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.
18
+ * over the WebSocket described under /api/v1/realtime/tickets. list-thread-messages outlines the
19
+ * person's messages for navigating a long conversation.
20
20
  *
21
21
  * Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
22
22
  * parts, then complete the upload and send its attachment id in a message.
23
23
  * OpenAPI spec version: 2.0.0
24
24
  */
25
25
  import * as zod from "zod";
26
- import { CommandResource } from "./commandResource.zod.js";
27
- export const CommandListResponseBody = zod.strictObject({
28
- commands: zod.array(CommandResource),
26
+ import { ThreadMessageResource } from "./threadMessageResource.zod.js";
27
+ export const threadMessageListResponseBodyTotalMin = 0;
28
+ export const ThreadMessageListResponseBody = zod.strictObject({
29
+ messages: zod.array(ThreadMessageResource),
30
+ total: zod
31
+ .int()
32
+ .min(threadMessageListResponseBodyTotalMin)
33
+ .describe("How many messages the person has sent in this conversation, the same as the thread's `messageCount`."),
29
34
  });
@@ -15,19 +15,23 @@
15
15
  * of three efforts — low, medium or high — which are sent to the model unchanged.
16
16
  *
17
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.
18
+ * over the WebSocket described under /api/v1/realtime/tickets. list-thread-messages outlines the
19
+ * person's messages for navigating a long conversation.
20
20
  *
21
21
  * Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
22
22
  * parts, then complete the upload and send its attachment id in a message.
23
23
  * OpenAPI spec version: 2.0.0
24
24
  */
25
25
  import * as zod from "zod";
26
- export declare const runCommandRequestBodyNameMax = 32;
27
- export declare const runCommandRequestBodyArgumentsMax = 2000;
28
- export declare const RunCommandRequestBody: zod.ZodObject<{
29
- name: zod.ZodString;
30
- arguments: zod.ZodOptional<zod.ZodString>;
26
+ export declare const threadMessageResourceAttachmentsMin = 0;
27
+ export declare const ThreadMessageResource: zod.ZodObject<{
28
+ id: zod.ZodString;
29
+ index: zod.ZodInt;
30
+ ordinal: zod.ZodInt;
31
+ turnId: zod.ZodString;
32
+ preview: zod.ZodString;
33
+ attachments: zod.ZodInt;
34
+ createdAt: zod.z.ZodISODateTime;
31
35
  }, zod.z.core.$strict>;
32
- export type RunCommandRequestBody = zod.input<typeof RunCommandRequestBody>;
33
- export type RunCommandRequestBodyOutput = zod.output<typeof RunCommandRequestBody>;
36
+ export type ThreadMessageResource = zod.input<typeof ThreadMessageResource>;
37
+ export type ThreadMessageResourceOutput = zod.output<typeof ThreadMessageResource>;
@@ -15,23 +15,30 @@
15
15
  * of three efforts — low, medium or high — which are sent to the model unchanged.
16
16
  *
17
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.
18
+ * over the WebSocket described under /api/v1/realtime/tickets. list-thread-messages outlines the
19
+ * person's messages for navigating a long conversation.
20
20
  *
21
21
  * Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
22
22
  * parts, then complete the upload and send its attachment id in a message.
23
23
  * OpenAPI spec version: 2.0.0
24
24
  */
25
25
  import * as zod from "zod";
26
- import { StatusReportResource } from "./statusReportResource.zod.js";
27
- import { ThreadResource } from "./threadResource.zod.js";
28
- export const CommandResultResource = zod.strictObject({
29
- name: zod.string().describe("The command that ran, after resolving aliases."),
30
- message: zod.string().describe("The result as plain text."),
31
- thread: zod.union([ThreadResource, zod.null()]).describe("The conversation after the command."),
32
- turnId: zod
26
+ export const threadMessageResourceAttachmentsMin = 0;
27
+ export const ThreadMessageResource = zod
28
+ .strictObject({
29
+ id: zod.string().describe("The transcript item."),
30
+ index: zod.int().min(1).describe("The position among the person's messages, from 1."),
31
+ ordinal: zod
32
+ .int()
33
+ .describe("The item's position in the transcript, for list-thread-items `around`."),
34
+ turnId: zod.string(),
35
+ preview: zod
33
36
  .string()
34
- .nullable()
35
- .describe("The turn the command started, for example the compaction turn of /compact."),
36
- status: zod.union([StatusReportResource, zod.null()]).describe("Set by /status."),
37
- });
37
+ .describe("The beginning of the message's text, at most 120 characters. Empty for a message with only attachments."),
38
+ attachments: zod
39
+ .int()
40
+ .min(threadMessageResourceAttachmentsMin)
41
+ .describe("How many files the message carries."),
42
+ createdAt: zod.iso.datetime({ offset: true }),
43
+ })
44
+ .describe("One message the person sent, as an entry of the conversation's outline.");
@@ -15,8 +15,8 @@
15
15
  * of three efforts — low, medium or high — which are sent to the model unchanged.
16
16
  *
17
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.
18
+ * over the WebSocket described under /api/v1/realtime/tickets. list-thread-messages outlines the
19
+ * person's messages for navigating a long conversation.
20
20
  *
21
21
  * Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
22
22
  * parts, then complete the upload and send its attachment id in a message.
@@ -24,6 +24,7 @@
24
24
  */
25
25
  import * as zod from "zod";
26
26
  export declare const threadResourceOrderVersionMin = 0;
27
+ export declare const threadResourceMessageCountMin = 0;
27
28
  export declare const ThreadResource: zod.ZodObject<{
28
29
  id: zod.ZodString;
29
30
  role: zod.ZodEnum<{
@@ -109,6 +110,7 @@ export declare const ThreadResource: zod.ZodObject<{
109
110
  }, zod.z.core.$strict>;
110
111
  unread: zod.ZodBoolean;
111
112
  archived: zod.ZodBoolean;
113
+ messageCount: zod.ZodInt;
112
114
  createdAt: zod.z.ZodISODateTime;
113
115
  updatedAt: zod.z.ZodISODateTime;
114
116
  }, zod.z.core.$strict>;
@@ -15,8 +15,8 @@
15
15
  * of three efforts — low, medium or high — which are sent to the model unchanged.
16
16
  *
17
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.
18
+ * over the WebSocket described under /api/v1/realtime/tickets. list-thread-messages outlines the
19
+ * person's messages for navigating a long conversation.
20
20
  *
21
21
  * Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
22
22
  * parts, then complete the upload and send its attachment id in a message.
@@ -33,6 +33,7 @@ import { ThreadStatus } from "./threadStatus.zod.js";
33
33
  import { TodoResource } from "./todoResource.zod.js";
34
34
  import { Usage } from "./usage.zod.js";
35
35
  export const threadResourceOrderVersionMin = 0;
36
+ export const threadResourceMessageCountMin = 0;
36
37
  export const ThreadResource = zod
37
38
  .strictObject({
38
39
  id: zod.string(),
@@ -86,6 +87,10 @@ export const ThreadResource = zod
86
87
  .boolean()
87
88
  .describe("The assistant replied after the conversation was last marked read."),
88
89
  archived: zod.boolean(),
90
+ messageCount: zod
91
+ .int()
92
+ .min(threadResourceMessageCountMin)
93
+ .describe("How many messages the person has sent in this conversation, as listed by list-thread-messages."),
89
94
  createdAt: zod.iso.datetime({ offset: true }),
90
95
  updatedAt: zod.iso
91
96
  .datetime({ offset: true })
@@ -15,8 +15,8 @@
15
15
  * of three efforts — low, medium or high — which are sent to the model unchanged.
16
16
  *
17
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.
18
+ * over the WebSocket described under /api/v1/realtime/tickets. list-thread-messages outlines the
19
+ * person's messages for navigating a long conversation.
20
20
  *
21
21
  * Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
22
22
  * parts, then complete the upload and send its attachment id in a message.
@@ -15,8 +15,8 @@
15
15
  * of three efforts — low, medium or high — which are sent to the model unchanged.
16
16
  *
17
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.
18
+ * over the WebSocket described under /api/v1/realtime/tickets. list-thread-messages outlines the
19
+ * person's messages for navigating a long conversation.
20
20
  *
21
21
  * Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
22
22
  * parts, then complete the upload and send its attachment id in a message.
@@ -15,8 +15,8 @@
15
15
  * of three efforts — low, medium or high — which are sent to the model unchanged.
16
16
  *
17
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.
18
+ * over the WebSocket described under /api/v1/realtime/tickets. list-thread-messages outlines the
19
+ * person's messages for navigating a long conversation.
20
20
  *
21
21
  * Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
22
22
  * parts, then complete the upload and send its attachment id in a message.
@@ -64,6 +64,7 @@ export declare const ThreadTurnListResponseBody: zod.ZodObject<{
64
64
  requests: zod.ZodInt;
65
65
  complete: zod.ZodBoolean;
66
66
  }, zod.z.core.$strict>;
67
+ streamingOutputTokens: zod.ZodInt;
67
68
  startedAt: zod.z.ZodISODateTime;
68
69
  firstTokenAt: zod.ZodNullable<zod.z.ZodISODateTime>;
69
70
  completedAt: zod.ZodNullable<zod.z.ZodISODateTime>;
@@ -15,8 +15,8 @@
15
15
  * of three efforts — low, medium or high — which are sent to the model unchanged.
16
16
  *
17
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.
18
+ * over the WebSocket described under /api/v1/realtime/tickets. list-thread-messages outlines the
19
+ * person's messages for navigating a long conversation.
20
20
  *
21
21
  * Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
22
22
  * parts, then complete the upload and send its attachment id in a message.
@@ -15,8 +15,8 @@
15
15
  * of three efforts — low, medium or high — which are sent to the model unchanged.
16
16
  *
17
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.
18
+ * over the WebSocket described under /api/v1/realtime/tickets. list-thread-messages outlines the
19
+ * person's messages for navigating a long conversation.
20
20
  *
21
21
  * Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
22
22
  * parts, then complete the upload and send its attachment id in a message.
@@ -24,6 +24,7 @@
24
24
  */
25
25
  import * as zod from "zod";
26
26
  export declare const threadTurnResourceToolCallsMin = 0;
27
+ export declare const threadTurnResourceStreamingOutputTokensMin = 0;
27
28
  export declare const ThreadTurnResource: zod.ZodObject<{
28
29
  id: zod.ZodString;
29
30
  threadId: zod.ZodString;
@@ -64,6 +65,7 @@ export declare const ThreadTurnResource: zod.ZodObject<{
64
65
  requests: zod.ZodInt;
65
66
  complete: zod.ZodBoolean;
66
67
  }, zod.z.core.$strict>;
68
+ streamingOutputTokens: zod.ZodInt;
67
69
  startedAt: zod.z.ZodISODateTime;
68
70
  firstTokenAt: zod.ZodNullable<zod.z.ZodISODateTime>;
69
71
  completedAt: zod.ZodNullable<zod.z.ZodISODateTime>;