@leaflow/sdk 0.0.0-dev.363.gedb261b → 0.0.0-dev.367.g5d66ccc
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.
- package/dist/assistant/v1/generated/functions.d.ts +31 -53
- package/dist/assistant/v1/generated/functions.js +32 -57
- package/dist/assistant/v1/generated/models.d.ts +102 -59
- package/dist/assistant/v1/generated/models.js +10 -0
- package/dist/assistant/v1/generated/schemas.zod.d.ts +26 -20
- package/dist/assistant/v1/generated/schemas.zod.js +39 -21
- package/dist/assistant/v1/generated/validators/answerQuestionRequestBody.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/answerQuestionRequestBody.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/approvalMode.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/approvalMode.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/attachmentResource.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/attachmentResource.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/bindingCodeResponseBody.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/bindingCodeResponseBody.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/bindingResource.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/bindingResource.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/channelResource.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/channelResource.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/channelWithSecretResponseBody.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/channelWithSecretResponseBody.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/checkSenderParams.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/checkSenderParams.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/choiceResource.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/choiceResource.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/clientActionRequest.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/clientActionRequest.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/clientContextPart.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/clientContextPart.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/clientContextRequest.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/clientContextRequest.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/clientFunctionRequest.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/clientFunctionRequest.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/completeUploadRequestBody.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/completeUploadRequestBody.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/contextUsageResource.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/contextUsageResource.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/createChannelRequestBody.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/createChannelRequestBody.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/createFolderRequestBody.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/createFolderRequestBody.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/createTaskRequestBody.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/createTaskRequestBody.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/createThreadRequestBody.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/createThreadRequestBody.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/createThreadResponseBody.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/createThreadResponseBody.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/createUploadRequestBody.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/createUploadRequestBody.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/credentialFieldResource.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/credentialFieldResource.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/cursorPagination.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/cursorPagination.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/decideToolCallsRequestBody.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/decideToolCallsRequestBody.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/defaultModelResource.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/defaultModelResource.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/error.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/error.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/fileDiffResource.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/fileDiffResource.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/folderCountsResource.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/folderCountsResource.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/folderListResponseBody.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/folderListResponseBody.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/folderResource.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/folderResource.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/itemFrame.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/itemFrame.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/itemSourceResource.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/itemSourceResource.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/lastTurnResource.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/lastTurnResource.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/lengthAwarePageBindingResource.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/lengthAwarePageBindingResource.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/lengthAwarePageChannelResource.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/lengthAwarePageChannelResource.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/listBindingsParams.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/listBindingsParams.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/listChannelRejectionsParams.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/listChannelRejectionsParams.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/listChannelsParams.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/listChannelsParams.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/listTaskRunsParams.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/listTaskRunsParams.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/listThreadItemsParams.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/listThreadItemsParams.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/{commandResource.zod.d.ts → listThreadMessagesParams.zod.d.ts} +12 -9
- package/dist/assistant/v1/generated/validators/{runCommandRequestBody.zod.js → listThreadMessagesParams.zod.js} +17 -14
- package/dist/assistant/v1/generated/validators/listThreadTurnsParams.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/listThreadTurnsParams.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/loginResource.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/loginResource.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/memoryListResponseBody.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/memoryListResponseBody.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/memoryResource.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/memoryResource.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/messagePart.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/messagePart.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/moveFolderRequestBody.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/moveFolderRequestBody.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/offsetPagination.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/offsetPagination.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/openRealtimeParams.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/openRealtimeParams.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/partResource.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/partResource.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/pendingActionResource.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/pendingActionResource.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/placeThreadRequestBody.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/placeThreadRequestBody.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/platformListResponseBody.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/platformListResponseBody.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/platformResource.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/platformResource.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/presentationResource.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/presentationResource.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/putUploadPartHeaders.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/putUploadPartHeaders.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/putUploadPartParams.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/putUploadPartParams.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/questionResource.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/questionResource.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/realtimeClientMessage.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/realtimeClientMessage.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/realtimeExchange.zod.d.ts +9 -2
- package/dist/assistant/v1/generated/validators/realtimeExchange.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/realtimeServerMessage.zod.d.ts +9 -2
- package/dist/assistant/v1/generated/validators/realtimeServerMessage.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/realtimeTicketResource.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/realtimeTicketResource.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/reasoningEffort.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/reasoningEffort.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/rejectionListResponseBody.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/rejectionListResponseBody.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/rejectionResource.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/rejectionResource.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/resumeThreadRequestBody.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/resumeThreadRequestBody.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/revertRequestBody.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/revertRequestBody.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/revertedCountResponseBody.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/revertedCountResponseBody.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/rotateSecretRequestBody.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/rotateSecretRequestBody.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/searchTasksRequestBody.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/searchTasksRequestBody.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/searchThreadsRequestBody.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/searchThreadsRequestBody.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/sendMessageRequestBody.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/sendMessageRequestBody.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/sendMessageResponseBody.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/sendMessageResponseBody.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/senderCheckResource.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/senderCheckResource.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/settingsResource.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/settingsResource.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/skillEnabledRequestBody.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/skillEnabledRequestBody.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/skillListResponseBody.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/skillListResponseBody.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/skillRequestBody.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/skillRequestBody.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/skillResource.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/skillResource.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/subagentCountResource.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/subagentCountResource.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/taskAction.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/taskAction.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/taskListResponseBody.zod.d.ts +7 -2
- package/dist/assistant/v1/generated/validators/taskListResponseBody.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/taskResource.zod.d.ts +7 -2
- package/dist/assistant/v1/generated/validators/taskResource.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/taskRunListResponseBody.zod.d.ts +7 -2
- package/dist/assistant/v1/generated/validators/taskRunListResponseBody.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/taskRunResource.zod.d.ts +7 -2
- package/dist/assistant/v1/generated/validators/taskRunResource.zod.js +5 -2
- package/dist/assistant/v1/generated/validators/taskTrigger.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/taskTrigger.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/threadCountsResource.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/threadCountsResource.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/threadItemListResponseBody.zod.d.ts +6 -2
- package/dist/assistant/v1/generated/validators/threadItemListResponseBody.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/threadItemResource.zod.d.ts +4 -2
- package/dist/assistant/v1/generated/validators/threadItemResource.zod.js +7 -2
- package/dist/assistant/v1/generated/validators/threadListResponseBody.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/threadListResponseBody.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/{commandListResponseBody.zod.d.ts → threadMessageListResponseBody.zod.d.ts} +15 -10
- package/dist/assistant/v1/generated/validators/{commandListResponseBody.zod.js → threadMessageListResponseBody.zod.js} +10 -5
- package/dist/assistant/v1/generated/validators/{runCommandRequestBody.zod.d.ts → threadMessageResource.zod.d.ts} +13 -9
- package/dist/assistant/v1/generated/validators/{commandResultResource.zod.js → threadMessageResource.zod.js} +20 -13
- package/dist/assistant/v1/generated/validators/threadResource.zod.d.ts +4 -2
- package/dist/assistant/v1/generated/validators/threadResource.zod.js +7 -2
- package/dist/assistant/v1/generated/validators/threadStatus.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/threadStatus.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/threadTurnListResponseBody.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/threadTurnListResponseBody.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/threadTurnResource.zod.d.ts +4 -2
- package/dist/assistant/v1/generated/validators/threadTurnResource.zod.js +7 -2
- package/dist/assistant/v1/generated/validators/todoResource.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/todoResource.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/toolCallResource.zod.d.ts +3 -2
- package/dist/assistant/v1/generated/validators/toolCallResource.zod.js +11 -2
- package/dist/assistant/v1/generated/validators/toolResultRequestBody.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/toolResultRequestBody.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/turnStartedResponseBody.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/turnStartedResponseBody.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/turnStatus.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/turnStatus.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/turnType.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/turnType.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/updateChannelRequestBody.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/updateChannelRequestBody.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/updateFolderRequestBody.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/updateFolderRequestBody.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/updateSettingsRequestBody.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/updateSettingsRequestBody.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/updateTaskRequestBody.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/updateTaskRequestBody.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/updateThreadRequestBody.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/updateThreadRequestBody.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/updateUploadRequestBody.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/updateUploadRequestBody.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/uploadAttachmentParams.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/uploadAttachmentParams.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/uploadConfigurationResource.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/uploadConfigurationResource.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/uploadListResponseBody.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/uploadListResponseBody.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/uploadPartResource.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/uploadPartResource.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/uploadResource.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/uploadResource.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/uploadedResource.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/uploadedResource.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/usage.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/usage.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/verifyCodeRequestBody.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/verifyCodeRequestBody.zod.js +2 -2
- package/dist/assistant/v1/generated/validators/webhookSecretResponseBody.zod.d.ts +2 -2
- package/dist/assistant/v1/generated/validators/webhookSecretResponseBody.zod.js +2 -2
- package/dist/billing/type/order/v1/generated/models.d.ts +11 -0
- package/dist/billing/type/order/v1/generated/models.js +5 -0
- package/dist/billing/type/order/v1/generated/validators/billingAccount.zod.d.ts +5 -0
- package/dist/billing/type/order/v1/generated/validators/billingAccount.zod.js +3 -0
- package/dist/billing/type/order/v1/generated/validators/billingAccountList.zod.d.ts +5 -0
- package/dist/billing/v1/generated/functions.d.ts +47 -0
- package/dist/billing/v1/generated/functions.js +37 -0
- package/dist/billing/v1/generated/models.d.ts +11 -0
- package/dist/billing/v1/generated/models.js +5 -0
- package/dist/billing/v1/generated/schemas.zod.d.ts +19 -0
- package/dist/billing/v1/generated/schemas.zod.js +19 -0
- package/dist/billing/v1/generated/validators/billingAccount.zod.d.ts +5 -0
- package/dist/billing/v1/generated/validators/billingAccount.zod.js +3 -0
- package/dist/billing/v1/generated/validators/billingAccountList.zod.d.ts +5 -0
- package/dist/canopy/v1/generated/models.d.ts +11 -0
- package/dist/canopy/v1/generated/models.js +5 -0
- package/dist/canopy/v1/generated/validators/billingAccount.zod.d.ts +5 -0
- package/dist/canopy/v1/generated/validators/billingAccount.zod.js +3 -0
- package/dist/canopy/v1/generated/validators/billingAccountList.zod.d.ts +5 -0
- package/dist/membership/v1/generated/models.d.ts +11 -0
- package/dist/membership/v1/generated/models.js +5 -0
- package/dist/membership/v1/generated/validators/billingAccount.zod.d.ts +5 -0
- package/dist/membership/v1/generated/validators/billingAccount.zod.js +3 -0
- package/dist/membership/v1/generated/validators/billingAccountList.zod.d.ts +5 -0
- package/dist/routes.d.ts +24 -16
- package/dist/routes.js +27 -18
- package/package.json +1 -1
- package/dist/assistant/v1/generated/validators/commandResource.zod.js +0 -33
- package/dist/assistant/v1/generated/validators/commandResultResource.zod.d.ts +0 -201
- package/dist/assistant/v1/generated/validators/statusReportResource.zod.d.ts +0 -108
- package/dist/assistant/v1/generated/validators/statusReportResource.zod.js +0 -48
|
@@ -15,14 +15,14 @@
|
|
|
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.
|
|
19
|
-
*
|
|
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
|
-
import type { AnswerQuestionRequestBody, BindingCodeResponseBody, BindingResource, ChannelResource, ChannelWithSecretResponseBody, CheckSenderParams,
|
|
25
|
+
import type { AnswerQuestionRequestBody, BindingCodeResponseBody, BindingResource, ChannelResource, ChannelWithSecretResponseBody, CheckSenderParams, CompleteUploadRequestBody, CreateChannelRequestBody, CreateFolderRequestBody, CreateTaskRequestBody, CreateThreadRequestBody, CreateThreadResponseBody, CreateUploadRequestBody, DecideToolCallsRequestBody, ErrorResponse, FolderListResponseBody, FolderResource, LengthAwarePageBindingResource, LengthAwarePageChannelResource, ListBindingsParams, ListChannelRejectionsParams, ListChannelsParams, ListTaskRunsParams, ListThreadItemsParams, ListThreadMessagesParams, ListThreadTurnsParams, LoginResource, MemoryListResponseBody, MoveFolderRequestBody, OpenRealtimeParams, PlaceThreadRequestBody, PlatformListResponseBody, PutUploadPartHeaders, PutUploadPartParams, RealtimeExchange, RealtimeTicketResource, RejectionListResponseBody, ResumeThreadRequestBody, RevertRequestBody, RevertedCountResponseBody, RotateSecretRequestBody, SearchTasksRequestBody, SearchThreadsRequestBody, SendMessageRequestBody, SendMessageResponseBody, SenderCheckResource, SettingsResource, SkillEnabledRequestBody, SkillListResponseBody, SkillRequestBody, SkillResource, TaskListResponseBody, TaskResource, TaskRunListResponseBody, TaskRunResource, ThreadItemListResponseBody, ThreadItemResource, ThreadListResponseBody, ThreadMessageListResponseBody, ThreadResource, ThreadTurnListResponseBody, ToolResultRequestBody, TurnStartedResponseBody, UpdateChannelRequestBody, UpdateFolderRequestBody, UpdateSettingsRequestBody, UpdateTaskRequestBody, UpdateThreadRequestBody, UpdateUploadRequestBody, UploadAttachmentParams, UploadConfigurationResource, UploadListResponseBody, UploadPartResource, UploadResource, UploadedResource, VerifyCodeRequestBody, WebhookSecretResponseBody } from "./models.js";
|
|
26
26
|
export type HTTPStatusCode1xx = 100 | 101 | 102 | 103;
|
|
27
27
|
export type HTTPStatusCode2xx = 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207;
|
|
28
28
|
export type HTTPStatusCode3xx = 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308;
|
|
@@ -339,6 +339,34 @@ export declare const getGetThreadItemUrl: (thread: string, item: string) => stri
|
|
|
339
339
|
* @summary Get a transcript item
|
|
340
340
|
*/
|
|
341
341
|
export declare const getThreadItem: (thread: string, item: string, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<getThreadItemResponse>;
|
|
342
|
+
export type listThreadMessagesResponse200 = {
|
|
343
|
+
data: ThreadMessageListResponseBody;
|
|
344
|
+
status: 200;
|
|
345
|
+
};
|
|
346
|
+
export type listThreadMessagesResponseDefault = {
|
|
347
|
+
data: ErrorResponse;
|
|
348
|
+
status: Exclude<HTTPStatusCodes, 200>;
|
|
349
|
+
};
|
|
350
|
+
export type listThreadMessagesResponseSuccess = listThreadMessagesResponse200 & {
|
|
351
|
+
headers: Headers;
|
|
352
|
+
};
|
|
353
|
+
export type listThreadMessagesResponseError = listThreadMessagesResponseDefault & {
|
|
354
|
+
headers: Headers;
|
|
355
|
+
};
|
|
356
|
+
export type listThreadMessagesResponse = listThreadMessagesResponseSuccess | listThreadMessagesResponseError;
|
|
357
|
+
export declare const getListThreadMessagesUrl: (thread: string, params?: ListThreadMessagesParams) => string;
|
|
358
|
+
/**
|
|
359
|
+
* An outline of the messages the person sent in this conversation, from the console or a chat
|
|
360
|
+
* app, oldest first: what a timeline needs to place and preview every message without reading
|
|
361
|
+
* the transcript. Replies, tool calls and messages from subagents, tasks or other conversations
|
|
362
|
+
* are not included, nor are reverted messages or messages waiting in the queue.
|
|
363
|
+
*
|
|
364
|
+
* `index` is the message's position, from 1, and matches `messageIndex` on the transcript item.
|
|
365
|
+
* Read the message N with `offset` N-1. Open it in the transcript with list-thread-items
|
|
366
|
+
* `around` its `ordinal`. `total` equals the thread's `messageCount`.
|
|
367
|
+
* @summary List the person's messages
|
|
368
|
+
*/
|
|
369
|
+
export declare const listThreadMessages: (thread: string, params?: ListThreadMessagesParams, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<listThreadMessagesResponse>;
|
|
342
370
|
export type sendMessageResponse202 = {
|
|
343
371
|
data: SendMessageResponseBody;
|
|
344
372
|
status: 202;
|
|
@@ -465,56 +493,6 @@ export declare const getListThreadTurnsUrl: (thread: string, params?: ListThread
|
|
|
465
493
|
* @summary List turns
|
|
466
494
|
*/
|
|
467
495
|
export declare const listThreadTurns: (thread: string, params?: ListThreadTurnsParams, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<listThreadTurnsResponse>;
|
|
468
|
-
export type listCommandsResponse200 = {
|
|
469
|
-
data: CommandListResponseBody;
|
|
470
|
-
status: 200;
|
|
471
|
-
};
|
|
472
|
-
export type listCommandsResponseDefault = {
|
|
473
|
-
data: ErrorResponse;
|
|
474
|
-
status: Exclude<HTTPStatusCodes, 200>;
|
|
475
|
-
};
|
|
476
|
-
export type listCommandsResponseSuccess = listCommandsResponse200 & {
|
|
477
|
-
headers: Headers;
|
|
478
|
-
};
|
|
479
|
-
export type listCommandsResponseError = listCommandsResponseDefault & {
|
|
480
|
-
headers: Headers;
|
|
481
|
-
};
|
|
482
|
-
export type listCommandsResponse = listCommandsResponseSuccess | listCommandsResponseError;
|
|
483
|
-
export declare const getListCommandsUrl: () => string;
|
|
484
|
-
/**
|
|
485
|
-
* The slash commands a person can type in a conversation, such as /status or /compact. The same
|
|
486
|
-
* commands work in the console and in chat apps, so a client builds its command menu from this
|
|
487
|
-
* list.
|
|
488
|
-
* @summary List commands
|
|
489
|
-
*/
|
|
490
|
-
export declare const listCommands: (options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<listCommandsResponse>;
|
|
491
|
-
export type runCommandResponse200 = {
|
|
492
|
-
data: CommandResultResource;
|
|
493
|
-
status: 200;
|
|
494
|
-
};
|
|
495
|
-
export type runCommandResponseDefault = {
|
|
496
|
-
data: ErrorResponse;
|
|
497
|
-
status: Exclude<HTTPStatusCodes, 200>;
|
|
498
|
-
};
|
|
499
|
-
export type runCommandResponseSuccess = runCommandResponse200 & {
|
|
500
|
-
headers: Headers;
|
|
501
|
-
};
|
|
502
|
-
export type runCommandResponseError = runCommandResponseDefault & {
|
|
503
|
-
headers: Headers;
|
|
504
|
-
};
|
|
505
|
-
export type runCommandResponse = runCommandResponseSuccess | runCommandResponseError;
|
|
506
|
-
export declare const getRunCommandUrl: (thread: string) => string;
|
|
507
|
-
/**
|
|
508
|
-
* Runs a slash command against the conversation. Commands act directly and never reach the model.
|
|
509
|
-
* The result carries a plain-text `message`, which is what a chat app shows, and structured fields
|
|
510
|
-
* for clients that render more, such as `status` for /status.
|
|
511
|
-
*
|
|
512
|
-
* /new is carried out by the client, which opens an empty conversation, and fails here with 422
|
|
513
|
-
* and code COMMAND_CLIENT_ONLY. Fails with 404 and code COMMAND_NOT_FOUND for an unknown command,
|
|
514
|
-
* and with 422 and code COMMAND_ARGUMENTS_INVALID when the arguments do not fit.
|
|
515
|
-
* @summary Run a command
|
|
516
|
-
*/
|
|
517
|
-
export declare const runCommand: (thread: string, runCommandRequestBody: RunCommandRequestBody, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<runCommandResponse>;
|
|
518
496
|
export type listFoldersResponse200 = {
|
|
519
497
|
data: FolderListResponseBody;
|
|
520
498
|
status: 200;
|
|
@@ -342,6 +342,38 @@ export const getThreadItem = async (thread, item, options, fetchFn) => {
|
|
|
342
342
|
const data = body ? JSON.parse(body) : {};
|
|
343
343
|
return { data, status: res.status, headers: res.headers };
|
|
344
344
|
};
|
|
345
|
+
export const getListThreadMessagesUrl = (thread, params) => {
|
|
346
|
+
const normalizedParams = new URLSearchParams();
|
|
347
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
348
|
+
if (value !== undefined) {
|
|
349
|
+
normalizedParams.append(key, value === null ? "null" : String(value));
|
|
350
|
+
}
|
|
351
|
+
});
|
|
352
|
+
const stringifiedParams = normalizedParams.toString();
|
|
353
|
+
return stringifiedParams.length > 0
|
|
354
|
+
? `https://assistant.leaflow.cloud/api/v1/threads/${encodeURIComponent(String(thread))}/messages?${stringifiedParams}`
|
|
355
|
+
: `https://assistant.leaflow.cloud/api/v1/threads/${encodeURIComponent(String(thread))}/messages`;
|
|
356
|
+
};
|
|
357
|
+
/**
|
|
358
|
+
* An outline of the messages the person sent in this conversation, from the console or a chat
|
|
359
|
+
* app, oldest first: what a timeline needs to place and preview every message without reading
|
|
360
|
+
* the transcript. Replies, tool calls and messages from subagents, tasks or other conversations
|
|
361
|
+
* are not included, nor are reverted messages or messages waiting in the queue.
|
|
362
|
+
*
|
|
363
|
+
* `index` is the message's position, from 1, and matches `messageIndex` on the transcript item.
|
|
364
|
+
* Read the message N with `offset` N-1. Open it in the transcript with list-thread-items
|
|
365
|
+
* `around` its `ordinal`. `total` equals the thread's `messageCount`.
|
|
366
|
+
* @summary List the person's messages
|
|
367
|
+
*/
|
|
368
|
+
export const listThreadMessages = async (thread, params, options, fetchFn) => {
|
|
369
|
+
const res = await (fetchFn ?? fetch)(getListThreadMessagesUrl(thread, params), {
|
|
370
|
+
...options,
|
|
371
|
+
method: "GET",
|
|
372
|
+
});
|
|
373
|
+
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
374
|
+
const data = body ? JSON.parse(body) : {};
|
|
375
|
+
return { data, status: res.status, headers: res.headers };
|
|
376
|
+
};
|
|
345
377
|
export const getSendMessageUrl = (thread) => {
|
|
346
378
|
return `https://assistant.leaflow.cloud/api/v1/threads/${encodeURIComponent(String(thread))}/messages`;
|
|
347
379
|
};
|
|
@@ -520,63 +552,6 @@ export const listThreadTurns = async (thread, params, options, fetchFn) => {
|
|
|
520
552
|
const data = body ? JSON.parse(body) : {};
|
|
521
553
|
return { data, status: res.status, headers: res.headers };
|
|
522
554
|
};
|
|
523
|
-
export const getListCommandsUrl = () => {
|
|
524
|
-
return `https://assistant.leaflow.cloud/api/v1/commands`;
|
|
525
|
-
};
|
|
526
|
-
/**
|
|
527
|
-
* The slash commands a person can type in a conversation, such as /status or /compact. The same
|
|
528
|
-
* commands work in the console and in chat apps, so a client builds its command menu from this
|
|
529
|
-
* list.
|
|
530
|
-
* @summary List commands
|
|
531
|
-
*/
|
|
532
|
-
export const listCommands = async (options, fetchFn) => {
|
|
533
|
-
const res = await (fetchFn ?? fetch)(getListCommandsUrl(), {
|
|
534
|
-
...options,
|
|
535
|
-
method: "GET",
|
|
536
|
-
});
|
|
537
|
-
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
538
|
-
const data = body ? JSON.parse(body) : {};
|
|
539
|
-
return { data, status: res.status, headers: res.headers };
|
|
540
|
-
};
|
|
541
|
-
export const getRunCommandUrl = (thread) => {
|
|
542
|
-
return `https://assistant.leaflow.cloud/api/v1/threads/${encodeURIComponent(String(thread))}/commands`;
|
|
543
|
-
};
|
|
544
|
-
/**
|
|
545
|
-
* Runs a slash command against the conversation. Commands act directly and never reach the model.
|
|
546
|
-
* The result carries a plain-text `message`, which is what a chat app shows, and structured fields
|
|
547
|
-
* for clients that render more, such as `status` for /status.
|
|
548
|
-
*
|
|
549
|
-
* /new is carried out by the client, which opens an empty conversation, and fails here with 422
|
|
550
|
-
* and code COMMAND_CLIENT_ONLY. Fails with 404 and code COMMAND_NOT_FOUND for an unknown command,
|
|
551
|
-
* and with 422 and code COMMAND_ARGUMENTS_INVALID when the arguments do not fit.
|
|
552
|
-
* @summary Run a command
|
|
553
|
-
*/
|
|
554
|
-
export const runCommand = async (thread, runCommandRequestBody, options, fetchFn) => {
|
|
555
|
-
const getHeaders = (h) => {
|
|
556
|
-
if (!h)
|
|
557
|
-
return {};
|
|
558
|
-
if (h instanceof Headers)
|
|
559
|
-
return Object.fromEntries(h.entries());
|
|
560
|
-
if (Symbol.iterator in h) {
|
|
561
|
-
return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
|
|
562
|
-
}
|
|
563
|
-
const headers = {};
|
|
564
|
-
for (const [name, value] of Object.entries(h)) {
|
|
565
|
-
if (value !== undefined)
|
|
566
|
-
headers[name] = value;
|
|
567
|
-
}
|
|
568
|
-
return headers;
|
|
569
|
-
};
|
|
570
|
-
const res = await (fetchFn ?? fetch)(getRunCommandUrl(thread), {
|
|
571
|
-
...options,
|
|
572
|
-
method: "POST",
|
|
573
|
-
headers: { "Content-Type": "application/json", ...getHeaders(options?.headers) },
|
|
574
|
-
body: JSON.stringify(runCommandRequestBody),
|
|
575
|
-
});
|
|
576
|
-
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
577
|
-
const data = body ? JSON.parse(body) : {};
|
|
578
|
-
return { data, status: res.status, headers: res.headers };
|
|
579
|
-
};
|
|
580
555
|
export const getListFoldersUrl = () => {
|
|
581
556
|
return `https://assistant.leaflow.cloud/api/v1/folders`;
|
|
582
557
|
};
|
|
@@ -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.
|
|
19
|
-
*
|
|
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.
|
|
@@ -265,6 +265,11 @@ export interface ThreadResource {
|
|
|
265
265
|
/** The assistant replied after the conversation was last marked read. */
|
|
266
266
|
unread: boolean;
|
|
267
267
|
archived: boolean;
|
|
268
|
+
/**
|
|
269
|
+
* How many messages the person has sent in this conversation, as listed by list-thread-messages.
|
|
270
|
+
* @minimum 0
|
|
271
|
+
*/
|
|
272
|
+
messageCount: number;
|
|
268
273
|
createdAt: string;
|
|
269
274
|
/** The last activity. Renaming or moving the conversation does not change it. */
|
|
270
275
|
updatedAt: string;
|
|
@@ -614,6 +619,14 @@ export interface ThreadTurnResource {
|
|
|
614
619
|
toolCalls: number;
|
|
615
620
|
/** Tokens used by every model request of this turn, including title generation, review and compaction. */
|
|
616
621
|
usage: Usage;
|
|
622
|
+
/**
|
|
623
|
+
* An estimate of the output tokens of the model request in progress, which `usage` does not
|
|
624
|
+
* count yet. It grows about once a second while the model writes and returns to 0 when the
|
|
625
|
+
* request ends and its exact usage is added. Show `usage.outputTokens` plus this while the turn
|
|
626
|
+
* runs.
|
|
627
|
+
* @minimum 0
|
|
628
|
+
*/
|
|
629
|
+
streamingOutputTokens: number;
|
|
617
630
|
startedAt: string;
|
|
618
631
|
/**
|
|
619
632
|
* When the first output token arrived. Null until then.
|
|
@@ -788,6 +801,18 @@ export declare const ToolCallResourceApprovalStatus: {
|
|
|
788
801
|
readonly declined: "declined";
|
|
789
802
|
readonly unreviewed: "unreviewed";
|
|
790
803
|
};
|
|
804
|
+
/**
|
|
805
|
+
* Who decided the call. `user` is the person, in the console or a chat app; `auto_review` is
|
|
806
|
+
* the automatic reviewer; `policy` is the tool itself, which cannot be called this way. Null
|
|
807
|
+
* when nobody decided, including calls that needed no decision.
|
|
808
|
+
* @nullable
|
|
809
|
+
*/
|
|
810
|
+
export type ToolCallResourceApprovalSource = (typeof ToolCallResourceApprovalSource)[keyof typeof ToolCallResourceApprovalSource] | null;
|
|
811
|
+
export declare const ToolCallResourceApprovalSource: {
|
|
812
|
+
readonly user: "user";
|
|
813
|
+
readonly auto_review: "auto_review";
|
|
814
|
+
readonly policy: "policy";
|
|
815
|
+
};
|
|
791
816
|
export interface ChoiceResource {
|
|
792
817
|
label: string;
|
|
793
818
|
description: string;
|
|
@@ -832,6 +857,13 @@ export interface ToolCallResource {
|
|
|
832
857
|
approvalStatus: ToolCallResourceApprovalStatus;
|
|
833
858
|
/** @nullable */
|
|
834
859
|
approvalReason: string | null;
|
|
860
|
+
/**
|
|
861
|
+
* Who decided the call. `user` is the person, in the console or a chat app; `auto_review` is
|
|
862
|
+
* the automatic reviewer; `policy` is the tool itself, which cannot be called this way. Null
|
|
863
|
+
* when nobody decided, including calls that needed no decision.
|
|
864
|
+
* @nullable
|
|
865
|
+
*/
|
|
866
|
+
approvalSource: ToolCallResourceApprovalSource;
|
|
835
867
|
/**
|
|
836
868
|
* When a person or the reviewer decided the call or answered its questions.
|
|
837
869
|
* @nullable
|
|
@@ -901,8 +933,47 @@ export interface ThreadItemResource {
|
|
|
901
933
|
clientContext: ClientContextPart[];
|
|
902
934
|
/** The call, for a `tool_call` item. Null for other items. */
|
|
903
935
|
toolCall: ToolCallResource | null;
|
|
936
|
+
/**
|
|
937
|
+
* The position of a `user_message` among the person's messages, from 1, as in
|
|
938
|
+
* list-thread-messages. Null for other items, and for messages that are reverted or waiting
|
|
939
|
+
* in the queue.
|
|
940
|
+
* @minimum 1
|
|
941
|
+
* @nullable
|
|
942
|
+
*/
|
|
943
|
+
messageIndex: number | null;
|
|
944
|
+
createdAt: string;
|
|
945
|
+
}
|
|
946
|
+
/**
|
|
947
|
+
* One message the person sent, as an entry of the conversation's outline.
|
|
948
|
+
*/
|
|
949
|
+
export interface ThreadMessageResource {
|
|
950
|
+
/** The transcript item. */
|
|
951
|
+
id: string;
|
|
952
|
+
/**
|
|
953
|
+
* The position among the person's messages, from 1.
|
|
954
|
+
* @minimum 1
|
|
955
|
+
*/
|
|
956
|
+
index: number;
|
|
957
|
+
/** The item's position in the transcript, for list-thread-items `around`. */
|
|
958
|
+
ordinal: number;
|
|
959
|
+
turnId: string;
|
|
960
|
+
/** The beginning of the message's text, at most 120 characters. Empty for a message with only attachments. */
|
|
961
|
+
preview: string;
|
|
962
|
+
/**
|
|
963
|
+
* How many files the message carries.
|
|
964
|
+
* @minimum 0
|
|
965
|
+
*/
|
|
966
|
+
attachments: number;
|
|
904
967
|
createdAt: string;
|
|
905
968
|
}
|
|
969
|
+
export interface ThreadMessageListResponseBody {
|
|
970
|
+
messages: ThreadMessageResource[];
|
|
971
|
+
/**
|
|
972
|
+
* How many messages the person has sent in this conversation, the same as the thread's `messageCount`.
|
|
973
|
+
* @minimum 0
|
|
974
|
+
*/
|
|
975
|
+
total: number;
|
|
976
|
+
}
|
|
906
977
|
export interface ThreadItemListResponseBody {
|
|
907
978
|
/** Oldest first. */
|
|
908
979
|
items: ThreadItemResource[];
|
|
@@ -983,63 +1054,6 @@ export interface ToolResultRequestBody {
|
|
|
983
1054
|
*/
|
|
984
1055
|
nextCursor?: string;
|
|
985
1056
|
}
|
|
986
|
-
export interface CommandResource {
|
|
987
|
-
/** The command without the slash, for example `status`. */
|
|
988
|
-
name: string;
|
|
989
|
-
/** Other names that run the same command. */
|
|
990
|
-
aliases: string[];
|
|
991
|
-
description: string;
|
|
992
|
-
/** How to write the arguments, for example `<model id>`. Empty when the command takes none. */
|
|
993
|
-
argumentHint: string;
|
|
994
|
-
}
|
|
995
|
-
export interface CommandListResponseBody {
|
|
996
|
-
commands: CommandResource[];
|
|
997
|
-
}
|
|
998
|
-
export interface RunCommandRequestBody {
|
|
999
|
-
/**
|
|
1000
|
-
* The command or one of its aliases, without the slash.
|
|
1001
|
-
* @minLength 1
|
|
1002
|
-
* @maxLength 32
|
|
1003
|
-
*/
|
|
1004
|
-
name: string;
|
|
1005
|
-
/**
|
|
1006
|
-
* Everything typed after the command name.
|
|
1007
|
-
* @maxLength 2000
|
|
1008
|
-
*/
|
|
1009
|
-
arguments?: string;
|
|
1010
|
-
}
|
|
1011
|
-
/**
|
|
1012
|
-
* The conversation's configuration and resource use, as shown by /status.
|
|
1013
|
-
*/
|
|
1014
|
-
export interface StatusReportResource {
|
|
1015
|
-
threadId: string;
|
|
1016
|
-
modelId: string;
|
|
1017
|
-
/** The model's display name in the Canopy catalogue. Falls back to modelId. */
|
|
1018
|
-
modelName: string;
|
|
1019
|
-
reasoningEffort: ReasoningEffort | null;
|
|
1020
|
-
approvalMode: ApprovalMode;
|
|
1021
|
-
status: ThreadStatus;
|
|
1022
|
-
context: ContextUsageResource;
|
|
1023
|
-
/** Token usage over the whole conversation. */
|
|
1024
|
-
usage: Usage;
|
|
1025
|
-
/** The most recent turn with its own usage. Null before the first message. */
|
|
1026
|
-
lastTurn: ThreadTurnResource | null;
|
|
1027
|
-
}
|
|
1028
|
-
export interface CommandResultResource {
|
|
1029
|
-
/** The command that ran, after resolving aliases. */
|
|
1030
|
-
name: string;
|
|
1031
|
-
/** The result as plain text. */
|
|
1032
|
-
message: string;
|
|
1033
|
-
/** The conversation after the command. */
|
|
1034
|
-
thread: ThreadResource | null;
|
|
1035
|
-
/**
|
|
1036
|
-
* The turn the command started, for example the compaction turn of /compact.
|
|
1037
|
-
* @nullable
|
|
1038
|
-
*/
|
|
1039
|
-
turnId: string | null;
|
|
1040
|
-
/** Set by /status. */
|
|
1041
|
-
status: StatusReportResource | null;
|
|
1042
|
-
}
|
|
1043
1057
|
/**
|
|
1044
1058
|
* `inbox` holds the conversations nobody filed. Each caller has one per project.
|
|
1045
1059
|
*/
|
|
@@ -1209,6 +1223,16 @@ export declare const TaskRunResourceStatus: {
|
|
|
1209
1223
|
readonly cancelled: "cancelled";
|
|
1210
1224
|
readonly timed_out: "timed_out";
|
|
1211
1225
|
};
|
|
1226
|
+
/**
|
|
1227
|
+
* How the run started: `schedule` by the task's own trigger, including a task set to run now;
|
|
1228
|
+
* `manual` by a person running it outside its schedule; `assistant` by the assistant.
|
|
1229
|
+
*/
|
|
1230
|
+
export type TaskRunResourceTrigger = (typeof TaskRunResourceTrigger)[keyof typeof TaskRunResourceTrigger];
|
|
1231
|
+
export declare const TaskRunResourceTrigger: {
|
|
1232
|
+
readonly schedule: "schedule";
|
|
1233
|
+
readonly manual: "manual";
|
|
1234
|
+
readonly assistant: "assistant";
|
|
1235
|
+
};
|
|
1212
1236
|
export interface TaskRunResource {
|
|
1213
1237
|
id: string;
|
|
1214
1238
|
taskId: string;
|
|
@@ -1232,6 +1256,11 @@ export interface TaskRunResource {
|
|
|
1232
1256
|
* @nullable
|
|
1233
1257
|
*/
|
|
1234
1258
|
errorCode: string | null;
|
|
1259
|
+
/**
|
|
1260
|
+
* How the run started: `schedule` by the task's own trigger, including a task set to run now;
|
|
1261
|
+
* `manual` by a person running it outside its schedule; `assistant` by the assistant.
|
|
1262
|
+
*/
|
|
1263
|
+
trigger: TaskRunResourceTrigger;
|
|
1235
1264
|
}
|
|
1236
1265
|
export interface TaskResource {
|
|
1237
1266
|
id: string;
|
|
@@ -1995,6 +2024,20 @@ export type ListThreadItemsParams = {
|
|
|
1995
2024
|
*/
|
|
1996
2025
|
turns?: number;
|
|
1997
2026
|
};
|
|
2027
|
+
export type ListThreadMessagesParams = {
|
|
2028
|
+
/**
|
|
2029
|
+
* Items to skip. Defaults to 0; at most 10000.
|
|
2030
|
+
* @minimum 0
|
|
2031
|
+
* @maximum 10000
|
|
2032
|
+
*/
|
|
2033
|
+
offset?: number;
|
|
2034
|
+
/**
|
|
2035
|
+
* Items returned in this page. Defaults to 50; at most 200.
|
|
2036
|
+
* @minimum 1
|
|
2037
|
+
* @maximum 200
|
|
2038
|
+
*/
|
|
2039
|
+
limit?: number;
|
|
2040
|
+
};
|
|
1998
2041
|
export type ListThreadTurnsParams = {
|
|
1999
2042
|
/**
|
|
2000
2043
|
* @minItems 1
|
|
@@ -110,6 +110,11 @@ export const ToolCallResourceApprovalStatus = {
|
|
|
110
110
|
declined: "declined",
|
|
111
111
|
unreviewed: "unreviewed",
|
|
112
112
|
};
|
|
113
|
+
export const ToolCallResourceApprovalSource = {
|
|
114
|
+
user: "user",
|
|
115
|
+
auto_review: "auto_review",
|
|
116
|
+
policy: "policy",
|
|
117
|
+
};
|
|
113
118
|
export const FolderResourceType = {
|
|
114
119
|
inbox: "inbox",
|
|
115
120
|
custom: "custom",
|
|
@@ -142,6 +147,11 @@ export const TaskRunResourceStatus = {
|
|
|
142
147
|
cancelled: "cancelled",
|
|
143
148
|
timed_out: "timed_out",
|
|
144
149
|
};
|
|
150
|
+
export const TaskRunResourceTrigger = {
|
|
151
|
+
schedule: "schedule",
|
|
152
|
+
manual: "manual",
|
|
153
|
+
assistant: "assistant",
|
|
154
|
+
};
|
|
145
155
|
export const SearchTasksRequestBodyStatus = {
|
|
146
156
|
active: "active",
|
|
147
157
|
paused: "paused",
|
|
@@ -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.
|
|
19
|
-
*
|
|
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.
|
|
@@ -231,6 +231,30 @@ export declare const GetThreadItemParams: zod.ZodObject<{
|
|
|
231
231
|
thread: zod.ZodString;
|
|
232
232
|
item: zod.ZodString;
|
|
233
233
|
}, zod.z.core.$strict>;
|
|
234
|
+
/**
|
|
235
|
+
* An outline of the messages the person sent in this conversation, from the console or a chat
|
|
236
|
+
* app, oldest first: what a timeline needs to place and preview every message without reading
|
|
237
|
+
* the transcript. Replies, tool calls and messages from subagents, tasks or other conversations
|
|
238
|
+
* are not included, nor are reverted messages or messages waiting in the queue.
|
|
239
|
+
*
|
|
240
|
+
* `index` is the message's position, from 1, and matches `messageIndex` on the transcript item.
|
|
241
|
+
* Read the message N with `offset` N-1. Open it in the transcript with list-thread-items
|
|
242
|
+
* `around` its `ordinal`. `total` equals the thread's `messageCount`.
|
|
243
|
+
* @summary List the person's messages
|
|
244
|
+
*/
|
|
245
|
+
export declare const listThreadMessagesPathThreadMax = 64;
|
|
246
|
+
export declare const ListThreadMessagesParams: zod.ZodObject<{
|
|
247
|
+
thread: zod.ZodString;
|
|
248
|
+
}, zod.z.core.$strict>;
|
|
249
|
+
export declare const listThreadMessagesQueryOffsetDefault = 0;
|
|
250
|
+
export declare const listThreadMessagesQueryOffsetMin = 0;
|
|
251
|
+
export declare const listThreadMessagesQueryOffsetMax = 10000;
|
|
252
|
+
export declare const listThreadMessagesQueryLimitDefault = 50;
|
|
253
|
+
export declare const listThreadMessagesQueryLimitMax = 200;
|
|
254
|
+
export declare const ListThreadMessagesQueryParams: zod.ZodObject<{
|
|
255
|
+
offset: zod.ZodDefault<zod.ZodInt>;
|
|
256
|
+
limit: zod.ZodDefault<zod.ZodInt>;
|
|
257
|
+
}, zod.z.core.$strict>;
|
|
234
258
|
/**
|
|
235
259
|
* Starts a turn and returns at once; a turn can run for tens of minutes and its progress arrives
|
|
236
260
|
* on /api/v1/realtime. Sending while the assistant is working is allowed: the message is queued
|
|
@@ -345,24 +369,6 @@ export declare const ListThreadTurnsQueryParams: zod.ZodObject<{
|
|
|
345
369
|
cursor: zod.ZodOptional<zod.ZodString>;
|
|
346
370
|
limit: zod.ZodDefault<zod.ZodInt>;
|
|
347
371
|
}, 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.
|
|
352
|
-
*
|
|
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
372
|
/**
|
|
367
373
|
* A folder groups conversations on the board and does nothing else: the assistant is never told
|
|
368
374
|
* which folder a conversation is in. New folders go after the existing ones.
|
|
@@ -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.
|
|
19
|
-
*
|
|
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.
|
|
@@ -36,7 +36,6 @@ import { PlaceThreadRequestBody } from "./validators/placeThreadRequestBody.zod.
|
|
|
36
36
|
import { ResumeThreadRequestBody } from "./validators/resumeThreadRequestBody.zod.js";
|
|
37
37
|
import { RevertRequestBody } from "./validators/revertRequestBody.zod.js";
|
|
38
38
|
import { RotateSecretRequestBody } from "./validators/rotateSecretRequestBody.zod.js";
|
|
39
|
-
import { RunCommandRequestBody } from "./validators/runCommandRequestBody.zod.js";
|
|
40
39
|
import { SendMessageRequestBody } from "./validators/sendMessageRequestBody.zod.js";
|
|
41
40
|
import { SkillEnabledRequestBody } from "./validators/skillEnabledRequestBody.zod.js";
|
|
42
41
|
import { SkillRequestBody } from "./validators/skillRequestBody.zod.js";
|
|
@@ -246,6 +245,43 @@ export const GetThreadItemParams = zod.strictObject({
|
|
|
246
245
|
.describe("A thread id. Subagents are threads as well."),
|
|
247
246
|
item: zod.string().max(getThreadItemPathItemMax).describe("A transcript item id."),
|
|
248
247
|
});
|
|
248
|
+
/**
|
|
249
|
+
* An outline of the messages the person sent in this conversation, from the console or a chat
|
|
250
|
+
* app, oldest first: what a timeline needs to place and preview every message without reading
|
|
251
|
+
* the transcript. Replies, tool calls and messages from subagents, tasks or other conversations
|
|
252
|
+
* are not included, nor are reverted messages or messages waiting in the queue.
|
|
253
|
+
*
|
|
254
|
+
* `index` is the message's position, from 1, and matches `messageIndex` on the transcript item.
|
|
255
|
+
* Read the message N with `offset` N-1. Open it in the transcript with list-thread-items
|
|
256
|
+
* `around` its `ordinal`. `total` equals the thread's `messageCount`.
|
|
257
|
+
* @summary List the person's messages
|
|
258
|
+
*/
|
|
259
|
+
export const listThreadMessagesPathThreadMax = 64;
|
|
260
|
+
export const ListThreadMessagesParams = zod.strictObject({
|
|
261
|
+
thread: zod
|
|
262
|
+
.string()
|
|
263
|
+
.max(listThreadMessagesPathThreadMax)
|
|
264
|
+
.describe("A thread id. Subagents are threads as well."),
|
|
265
|
+
});
|
|
266
|
+
export const listThreadMessagesQueryOffsetDefault = 0;
|
|
267
|
+
export const listThreadMessagesQueryOffsetMin = 0;
|
|
268
|
+
export const listThreadMessagesQueryOffsetMax = 10000;
|
|
269
|
+
export const listThreadMessagesQueryLimitDefault = 50;
|
|
270
|
+
export const listThreadMessagesQueryLimitMax = 200;
|
|
271
|
+
export const ListThreadMessagesQueryParams = zod.strictObject({
|
|
272
|
+
offset: zod
|
|
273
|
+
.int()
|
|
274
|
+
.min(listThreadMessagesQueryOffsetMin)
|
|
275
|
+
.max(listThreadMessagesQueryOffsetMax)
|
|
276
|
+
.default(listThreadMessagesQueryOffsetDefault)
|
|
277
|
+
.describe("Items to skip. Defaults to 0; at most 10000."),
|
|
278
|
+
limit: zod
|
|
279
|
+
.int()
|
|
280
|
+
.min(1)
|
|
281
|
+
.max(listThreadMessagesQueryLimitMax)
|
|
282
|
+
.default(listThreadMessagesQueryLimitDefault)
|
|
283
|
+
.describe("Items returned in this page. Defaults to 50; at most 200."),
|
|
284
|
+
});
|
|
249
285
|
/**
|
|
250
286
|
* Starts a turn and returns at once; a turn can run for tens of minutes and its progress arrives
|
|
251
287
|
* on /api/v1/realtime. Sending while the assistant is working is allowed: the message is queued
|
|
@@ -349,24 +385,6 @@ export const ListThreadTurnsQueryParams = zod.strictObject({
|
|
|
349
385
|
.default(listThreadTurnsQueryLimitDefault)
|
|
350
386
|
.describe("Items returned in this page. Defaults to 50; at most 200."),
|
|
351
387
|
});
|
|
352
|
-
/**
|
|
353
|
-
* Runs a slash command against the conversation. Commands act directly and never reach the model.
|
|
354
|
-
* The result carries a plain-text `message`, which is what a chat app shows, and structured fields
|
|
355
|
-
* for clients that render more, such as `status` for /status.
|
|
356
|
-
*
|
|
357
|
-
* /new is carried out by the client, which opens an empty conversation, and fails here with 422
|
|
358
|
-
* and code COMMAND_CLIENT_ONLY. Fails with 404 and code COMMAND_NOT_FOUND for an unknown command,
|
|
359
|
-
* and with 422 and code COMMAND_ARGUMENTS_INVALID when the arguments do not fit.
|
|
360
|
-
* @summary Run a command
|
|
361
|
-
*/
|
|
362
|
-
export const runCommandPathThreadMax = 64;
|
|
363
|
-
export const RunCommandParams = zod.strictObject({
|
|
364
|
-
thread: zod
|
|
365
|
-
.string()
|
|
366
|
-
.max(runCommandPathThreadMax)
|
|
367
|
-
.describe("A thread id. Subagents are threads as well."),
|
|
368
|
-
});
|
|
369
|
-
export const RunCommandBody = RunCommandRequestBody;
|
|
370
388
|
/**
|
|
371
389
|
* A folder groups conversations on the board and does nothing else: the assistant is never told
|
|
372
390
|
* which folder a conversation is in. New folders go after the existing ones.
|
|
@@ -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.
|
|
19
|
-
*
|
|
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.
|
|
19
|
-
*
|
|
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.
|
|
19
|
-
*
|
|
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.
|