@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
|
@@ -67,6 +67,11 @@ export const BillingAccountStatus = {
|
|
|
67
67
|
suspended: "suspended",
|
|
68
68
|
closed: "closed",
|
|
69
69
|
};
|
|
70
|
+
export const BillingAccountSuspendedBy = {
|
|
71
|
+
none: "none",
|
|
72
|
+
owner: "owner",
|
|
73
|
+
operator: "operator",
|
|
74
|
+
};
|
|
70
75
|
export const BillingScheme = {
|
|
71
76
|
per_unit: "per_unit",
|
|
72
77
|
tiered: "tiered",
|
|
@@ -178,6 +178,25 @@ export declare const UpdateBillingAccountBody: zod.ZodObject<{
|
|
|
178
178
|
invoice_contact_id: zod.ZodOptional<zod.ZodNullable<zod.ZodUUID>>;
|
|
179
179
|
name: zod.ZodOptional<zod.ZodString>;
|
|
180
180
|
}, zod.z.core.$strict>;
|
|
181
|
+
/**
|
|
182
|
+
* Suspends your active billing account without closing it, also while it is in arrears. While suspended, it
|
|
183
|
+
* accepts no new purchases, renewals or project links, and the services it pays for start no new resources;
|
|
184
|
+
* running services, their charges and the handling of arrears continue, and you can still top up and pay
|
|
185
|
+
* invoices. Resume it yourself; one suspended by Leaflow can only be resumed by Leaflow. Does not create a
|
|
186
|
+
* resource.
|
|
187
|
+
* @summary Suspend billing account
|
|
188
|
+
*/
|
|
189
|
+
export declare const SuspendBillingAccountParams: zod.ZodObject<{
|
|
190
|
+
accountId: zod.ZodInt;
|
|
191
|
+
}, zod.z.core.$strict>;
|
|
192
|
+
/**
|
|
193
|
+
* Resumes a billing account you suspended. Refused with `BILLING_ACCOUNT_SUSPENDED_BY_OPERATOR` when Leaflow
|
|
194
|
+
* suspended it. Does not create a resource.
|
|
195
|
+
* @summary Resume billing account
|
|
196
|
+
*/
|
|
197
|
+
export declare const ResumeBillingAccountParams: zod.ZodObject<{
|
|
198
|
+
accountId: zod.ZodInt;
|
|
199
|
+
}, zod.z.core.$strict>;
|
|
181
200
|
/**
|
|
182
201
|
* The balance of your account, with credit groups, unpaid invoice amounts, unbilled estimates and pending returns. Returns 404 for a missing account and 403 for another user's account.
|
|
183
202
|
* @summary Get account balance
|
|
@@ -204,6 +204,25 @@ export const UpdateBillingAccountParams = zod.strictObject({
|
|
|
204
204
|
accountId: zod.int(),
|
|
205
205
|
});
|
|
206
206
|
export const UpdateBillingAccountBody = BillingAccountUpdate;
|
|
207
|
+
/**
|
|
208
|
+
* Suspends your active billing account without closing it, also while it is in arrears. While suspended, it
|
|
209
|
+
* accepts no new purchases, renewals or project links, and the services it pays for start no new resources;
|
|
210
|
+
* running services, their charges and the handling of arrears continue, and you can still top up and pay
|
|
211
|
+
* invoices. Resume it yourself; one suspended by Leaflow can only be resumed by Leaflow. Does not create a
|
|
212
|
+
* resource.
|
|
213
|
+
* @summary Suspend billing account
|
|
214
|
+
*/
|
|
215
|
+
export const SuspendBillingAccountParams = zod.strictObject({
|
|
216
|
+
accountId: zod.int(),
|
|
217
|
+
});
|
|
218
|
+
/**
|
|
219
|
+
* Resumes a billing account you suspended. Refused with `BILLING_ACCOUNT_SUSPENDED_BY_OPERATOR` when Leaflow
|
|
220
|
+
* suspended it. Does not create a resource.
|
|
221
|
+
* @summary Resume billing account
|
|
222
|
+
*/
|
|
223
|
+
export const ResumeBillingAccountParams = zod.strictObject({
|
|
224
|
+
accountId: zod.int(),
|
|
225
|
+
});
|
|
207
226
|
/**
|
|
208
227
|
* The balance of your account, with credit groups, unpaid invoice amounts, unbilled estimates and pending returns. Returns 404 for a missing account and 403 for another user's account.
|
|
209
228
|
* @summary Get account balance
|
|
@@ -16,6 +16,11 @@ export declare const BillingAccount: zod.ZodObject<{
|
|
|
16
16
|
suspended: "suspended";
|
|
17
17
|
closed: "closed";
|
|
18
18
|
}>;
|
|
19
|
+
suspended_by: zod.ZodEnum<{
|
|
20
|
+
none: "none";
|
|
21
|
+
operator: "operator";
|
|
22
|
+
owner: "owner";
|
|
23
|
+
}>;
|
|
19
24
|
grace_amount: zod.ZodOptional<zod.ZodString>;
|
|
20
25
|
grace_period_seconds: zod.ZodOptional<zod.ZodInt>;
|
|
21
26
|
closed_at: zod.ZodOptional<zod.ZodNullable<zod.z.ZodISODateTime>>;
|
|
@@ -15,6 +15,9 @@ export const BillingAccount = zod.strictObject({
|
|
|
15
15
|
name: zod.string().optional().describe("Your name for the account."),
|
|
16
16
|
currency: zod.string().describe("Fixed when the account was opened."),
|
|
17
17
|
status: zod.enum(["active", "suspended", "closed"]),
|
|
18
|
+
suspended_by: zod
|
|
19
|
+
.enum(["none", "owner", "operator"])
|
|
20
|
+
.describe("Who suspended the account: `owner` (you), `operator` (Leaflow), or `none` while it is not suspended. Only a suspension by `owner` can be resumed by you."),
|
|
18
21
|
grace_amount: zod
|
|
19
22
|
.string()
|
|
20
23
|
.optional()
|
|
@@ -17,6 +17,11 @@ export declare const BillingAccountList: zod.ZodObject<{
|
|
|
17
17
|
suspended: "suspended";
|
|
18
18
|
closed: "closed";
|
|
19
19
|
}>;
|
|
20
|
+
suspended_by: zod.ZodEnum<{
|
|
21
|
+
none: "none";
|
|
22
|
+
operator: "operator";
|
|
23
|
+
owner: "owner";
|
|
24
|
+
}>;
|
|
20
25
|
grace_amount: zod.ZodOptional<zod.ZodString>;
|
|
21
26
|
grace_period_seconds: zod.ZodOptional<zod.ZodInt>;
|
|
22
27
|
closed_at: zod.ZodOptional<zod.ZodNullable<zod.z.ZodISODateTime>>;
|
|
@@ -1403,6 +1403,15 @@ export declare const BillingAccountStatus: {
|
|
|
1403
1403
|
readonly suspended: "suspended";
|
|
1404
1404
|
readonly closed: "closed";
|
|
1405
1405
|
};
|
|
1406
|
+
/**
|
|
1407
|
+
* Who suspended the account: `owner` (you), `operator` (Leaflow), or `none` while it is not suspended. Only a suspension by `owner` can be resumed by you.
|
|
1408
|
+
*/
|
|
1409
|
+
export type BillingAccountSuspendedBy = (typeof BillingAccountSuspendedBy)[keyof typeof BillingAccountSuspendedBy];
|
|
1410
|
+
export declare const BillingAccountSuspendedBy: {
|
|
1411
|
+
readonly none: "none";
|
|
1412
|
+
readonly owner: "owner";
|
|
1413
|
+
readonly operator: "operator";
|
|
1414
|
+
};
|
|
1406
1415
|
export interface BillingAccount {
|
|
1407
1416
|
/**
|
|
1408
1417
|
* The active contact used for invoices, of this account; null clears it.
|
|
@@ -1415,6 +1424,8 @@ export interface BillingAccount {
|
|
|
1415
1424
|
/** Fixed when the account was opened. */
|
|
1416
1425
|
currency: string;
|
|
1417
1426
|
status: BillingAccountStatus;
|
|
1427
|
+
/** Who suspended the account: `owner` (you), `operator` (Leaflow), or `none` while it is not suspended. Only a suspension by `owner` can be resumed by you. */
|
|
1428
|
+
suspended_by: BillingAccountSuspendedBy;
|
|
1418
1429
|
/** How far past the suspension threshold the account may go before its resources are suspended; `0` means none. */
|
|
1419
1430
|
grace_amount?: string;
|
|
1420
1431
|
/** How long the account has to top up after crossing the suspension threshold, in seconds; `0` means none. Grace ends when this or grace_amount runs out. */
|
|
@@ -161,6 +161,11 @@ export const BillingAccountStatus = {
|
|
|
161
161
|
suspended: "suspended",
|
|
162
162
|
closed: "closed",
|
|
163
163
|
};
|
|
164
|
+
export const BillingAccountSuspendedBy = {
|
|
165
|
+
none: "none",
|
|
166
|
+
owner: "owner",
|
|
167
|
+
operator: "operator",
|
|
168
|
+
};
|
|
164
169
|
export const BillingScheme = {
|
|
165
170
|
per_unit: "per_unit",
|
|
166
171
|
tiered: "tiered",
|
|
@@ -49,6 +49,11 @@ export declare const BillingAccount: zod.ZodObject<{
|
|
|
49
49
|
suspended: "suspended";
|
|
50
50
|
closed: "closed";
|
|
51
51
|
}>;
|
|
52
|
+
suspended_by: zod.ZodEnum<{
|
|
53
|
+
none: "none";
|
|
54
|
+
operator: "operator";
|
|
55
|
+
owner: "owner";
|
|
56
|
+
}>;
|
|
52
57
|
grace_amount: zod.ZodOptional<zod.ZodString>;
|
|
53
58
|
grace_period_seconds: zod.ZodOptional<zod.ZodInt>;
|
|
54
59
|
closed_at: zod.ZodOptional<zod.ZodNullable<zod.z.ZodISODateTime>>;
|
|
@@ -48,6 +48,9 @@ export const BillingAccount = zod.strictObject({
|
|
|
48
48
|
name: zod.string().optional().describe("Your name for the account."),
|
|
49
49
|
currency: zod.string().describe("Fixed when the account was opened."),
|
|
50
50
|
status: zod.enum(["active", "suspended", "closed"]),
|
|
51
|
+
suspended_by: zod
|
|
52
|
+
.enum(["none", "owner", "operator"])
|
|
53
|
+
.describe("Who suspended the account: `owner` (you), `operator` (Leaflow), or `none` while it is not suspended. Only a suspension by `owner` can be resumed by you."),
|
|
51
54
|
grace_amount: zod
|
|
52
55
|
.string()
|
|
53
56
|
.optional()
|
|
@@ -50,6 +50,11 @@ export declare const BillingAccountList: zod.ZodObject<{
|
|
|
50
50
|
suspended: "suspended";
|
|
51
51
|
closed: "closed";
|
|
52
52
|
}>;
|
|
53
|
+
suspended_by: zod.ZodEnum<{
|
|
54
|
+
none: "none";
|
|
55
|
+
operator: "operator";
|
|
56
|
+
owner: "owner";
|
|
57
|
+
}>;
|
|
53
58
|
grace_amount: zod.ZodOptional<zod.ZodString>;
|
|
54
59
|
grace_period_seconds: zod.ZodOptional<zod.ZodInt>;
|
|
55
60
|
closed_at: zod.ZodOptional<zod.ZodNullable<zod.z.ZodISODateTime>>;
|
|
@@ -1012,6 +1012,15 @@ export declare const BillingAccountStatus: {
|
|
|
1012
1012
|
readonly suspended: "suspended";
|
|
1013
1013
|
readonly closed: "closed";
|
|
1014
1014
|
};
|
|
1015
|
+
/**
|
|
1016
|
+
* Who suspended the account: `owner` (you), `operator` (Leaflow), or `none` while it is not suspended. Only a suspension by `owner` can be resumed by you.
|
|
1017
|
+
*/
|
|
1018
|
+
export type BillingAccountSuspendedBy = (typeof BillingAccountSuspendedBy)[keyof typeof BillingAccountSuspendedBy];
|
|
1019
|
+
export declare const BillingAccountSuspendedBy: {
|
|
1020
|
+
readonly none: "none";
|
|
1021
|
+
readonly owner: "owner";
|
|
1022
|
+
readonly operator: "operator";
|
|
1023
|
+
};
|
|
1015
1024
|
export interface BillingAccount {
|
|
1016
1025
|
/**
|
|
1017
1026
|
* The active contact used for invoices, of this account; null clears it.
|
|
@@ -1024,6 +1033,8 @@ export interface BillingAccount {
|
|
|
1024
1033
|
/** Fixed when the account was opened. */
|
|
1025
1034
|
currency: string;
|
|
1026
1035
|
status: BillingAccountStatus;
|
|
1036
|
+
/** Who suspended the account: `owner` (you), `operator` (Leaflow), or `none` while it is not suspended. Only a suspension by `owner` can be resumed by you. */
|
|
1037
|
+
suspended_by: BillingAccountSuspendedBy;
|
|
1027
1038
|
/** How far past the suspension threshold the account may go before its resources are suspended; `0` means none. */
|
|
1028
1039
|
grace_amount?: string;
|
|
1029
1040
|
/** How long the account has to top up after crossing the suspension threshold, in seconds; `0` means none. Grace ends when this or grace_amount runs out. */
|
|
@@ -128,6 +128,11 @@ export const BillingAccountStatus = {
|
|
|
128
128
|
suspended: "suspended",
|
|
129
129
|
closed: "closed",
|
|
130
130
|
};
|
|
131
|
+
export const BillingAccountSuspendedBy = {
|
|
132
|
+
none: "none",
|
|
133
|
+
owner: "owner",
|
|
134
|
+
operator: "operator",
|
|
135
|
+
};
|
|
131
136
|
export const BillingScheme = {
|
|
132
137
|
per_unit: "per_unit",
|
|
133
138
|
tiered: "tiered",
|
|
@@ -16,6 +16,11 @@ export declare const BillingAccount: zod.ZodObject<{
|
|
|
16
16
|
suspended: "suspended";
|
|
17
17
|
closed: "closed";
|
|
18
18
|
}>;
|
|
19
|
+
suspended_by: zod.ZodEnum<{
|
|
20
|
+
none: "none";
|
|
21
|
+
operator: "operator";
|
|
22
|
+
owner: "owner";
|
|
23
|
+
}>;
|
|
19
24
|
grace_amount: zod.ZodOptional<zod.ZodString>;
|
|
20
25
|
grace_period_seconds: zod.ZodOptional<zod.ZodInt>;
|
|
21
26
|
closed_at: zod.ZodOptional<zod.ZodNullable<zod.z.ZodISODateTime>>;
|
|
@@ -15,6 +15,9 @@ export const BillingAccount = zod.strictObject({
|
|
|
15
15
|
name: zod.string().optional().describe("Your name for the account."),
|
|
16
16
|
currency: zod.string().describe("Fixed when the account was opened."),
|
|
17
17
|
status: zod.enum(["active", "suspended", "closed"]),
|
|
18
|
+
suspended_by: zod
|
|
19
|
+
.enum(["none", "owner", "operator"])
|
|
20
|
+
.describe("Who suspended the account: `owner` (you), `operator` (Leaflow), or `none` while it is not suspended. Only a suspension by `owner` can be resumed by you."),
|
|
18
21
|
grace_amount: zod
|
|
19
22
|
.string()
|
|
20
23
|
.optional()
|
|
@@ -17,6 +17,11 @@ export declare const BillingAccountList: zod.ZodObject<{
|
|
|
17
17
|
suspended: "suspended";
|
|
18
18
|
closed: "closed";
|
|
19
19
|
}>;
|
|
20
|
+
suspended_by: zod.ZodEnum<{
|
|
21
|
+
none: "none";
|
|
22
|
+
operator: "operator";
|
|
23
|
+
owner: "owner";
|
|
24
|
+
}>;
|
|
20
25
|
grace_amount: zod.ZodOptional<zod.ZodString>;
|
|
21
26
|
grace_period_seconds: zod.ZodOptional<zod.ZodInt>;
|
|
22
27
|
closed_at: zod.ZodOptional<zod.ZodNullable<zod.z.ZodISODateTime>>;
|
package/dist/routes.d.ts
CHANGED
|
@@ -262,6 +262,14 @@ export declare const routes: readonly [{
|
|
|
262
262
|
readonly operationId: "get-thread-item";
|
|
263
263
|
readonly securityScheme: "ScopedToken";
|
|
264
264
|
readonly upstreamUrl: "https://assistant.leaflow.cloud";
|
|
265
|
+
}, {
|
|
266
|
+
readonly service: "assistant";
|
|
267
|
+
readonly contract: "assistant";
|
|
268
|
+
readonly method: "GET";
|
|
269
|
+
readonly path: "/api/v1/threads/{thread}/messages";
|
|
270
|
+
readonly operationId: "list-thread-messages";
|
|
271
|
+
readonly securityScheme: "ScopedToken";
|
|
272
|
+
readonly upstreamUrl: "https://assistant.leaflow.cloud";
|
|
265
273
|
}, {
|
|
266
274
|
readonly service: "assistant";
|
|
267
275
|
readonly contract: "assistant";
|
|
@@ -302,22 +310,6 @@ export declare const routes: readonly [{
|
|
|
302
310
|
readonly operationId: "list-thread-turns";
|
|
303
311
|
readonly securityScheme: "ScopedToken";
|
|
304
312
|
readonly upstreamUrl: "https://assistant.leaflow.cloud";
|
|
305
|
-
}, {
|
|
306
|
-
readonly service: "assistant";
|
|
307
|
-
readonly contract: "assistant";
|
|
308
|
-
readonly method: "GET";
|
|
309
|
-
readonly path: "/api/v1/commands";
|
|
310
|
-
readonly operationId: "list-commands";
|
|
311
|
-
readonly securityScheme: "ScopedToken";
|
|
312
|
-
readonly upstreamUrl: "https://assistant.leaflow.cloud";
|
|
313
|
-
}, {
|
|
314
|
-
readonly service: "assistant";
|
|
315
|
-
readonly contract: "assistant";
|
|
316
|
-
readonly method: "POST";
|
|
317
|
-
readonly path: "/api/v1/threads/{thread}/commands";
|
|
318
|
-
readonly operationId: "run-command";
|
|
319
|
-
readonly securityScheme: "ScopedToken";
|
|
320
|
-
readonly upstreamUrl: "https://assistant.leaflow.cloud";
|
|
321
313
|
}, {
|
|
322
314
|
readonly service: "assistant";
|
|
323
315
|
readonly contract: "assistant";
|
|
@@ -886,6 +878,22 @@ export declare const routes: readonly [{
|
|
|
886
878
|
readonly operationId: "update-billing-account";
|
|
887
879
|
readonly securityScheme: "AccessToken";
|
|
888
880
|
readonly upstreamUrl: "https://billing.leaflow.cloud";
|
|
881
|
+
}, {
|
|
882
|
+
readonly service: "billing";
|
|
883
|
+
readonly contract: "billing";
|
|
884
|
+
readonly method: "POST";
|
|
885
|
+
readonly path: "/api/v1/billing-accounts/{accountId}/suspend";
|
|
886
|
+
readonly operationId: "suspend-billing-account";
|
|
887
|
+
readonly securityScheme: "AccessToken";
|
|
888
|
+
readonly upstreamUrl: "https://billing.leaflow.cloud";
|
|
889
|
+
}, {
|
|
890
|
+
readonly service: "billing";
|
|
891
|
+
readonly contract: "billing";
|
|
892
|
+
readonly method: "POST";
|
|
893
|
+
readonly path: "/api/v1/billing-accounts/{accountId}/resume";
|
|
894
|
+
readonly operationId: "resume-billing-account";
|
|
895
|
+
readonly securityScheme: "AccessToken";
|
|
896
|
+
readonly upstreamUrl: "https://billing.leaflow.cloud";
|
|
889
897
|
}, {
|
|
890
898
|
readonly service: "billing";
|
|
891
899
|
readonly contract: "billing";
|
package/dist/routes.js
CHANGED
|
@@ -297,6 +297,15 @@ export const routes = [
|
|
|
297
297
|
securityScheme: "ScopedToken",
|
|
298
298
|
upstreamUrl: "https://assistant.leaflow.cloud",
|
|
299
299
|
},
|
|
300
|
+
{
|
|
301
|
+
service: "assistant",
|
|
302
|
+
contract: "assistant",
|
|
303
|
+
method: "GET",
|
|
304
|
+
path: "/api/v1/threads/{thread}/messages",
|
|
305
|
+
operationId: "list-thread-messages",
|
|
306
|
+
securityScheme: "ScopedToken",
|
|
307
|
+
upstreamUrl: "https://assistant.leaflow.cloud",
|
|
308
|
+
},
|
|
300
309
|
{
|
|
301
310
|
service: "assistant",
|
|
302
311
|
contract: "assistant",
|
|
@@ -342,24 +351,6 @@ export const routes = [
|
|
|
342
351
|
securityScheme: "ScopedToken",
|
|
343
352
|
upstreamUrl: "https://assistant.leaflow.cloud",
|
|
344
353
|
},
|
|
345
|
-
{
|
|
346
|
-
service: "assistant",
|
|
347
|
-
contract: "assistant",
|
|
348
|
-
method: "GET",
|
|
349
|
-
path: "/api/v1/commands",
|
|
350
|
-
operationId: "list-commands",
|
|
351
|
-
securityScheme: "ScopedToken",
|
|
352
|
-
upstreamUrl: "https://assistant.leaflow.cloud",
|
|
353
|
-
},
|
|
354
|
-
{
|
|
355
|
-
service: "assistant",
|
|
356
|
-
contract: "assistant",
|
|
357
|
-
method: "POST",
|
|
358
|
-
path: "/api/v1/threads/{thread}/commands",
|
|
359
|
-
operationId: "run-command",
|
|
360
|
-
securityScheme: "ScopedToken",
|
|
361
|
-
upstreamUrl: "https://assistant.leaflow.cloud",
|
|
362
|
-
},
|
|
363
354
|
{
|
|
364
355
|
service: "assistant",
|
|
365
356
|
contract: "assistant",
|
|
@@ -999,6 +990,24 @@ export const routes = [
|
|
|
999
990
|
securityScheme: "AccessToken",
|
|
1000
991
|
upstreamUrl: "https://billing.leaflow.cloud",
|
|
1001
992
|
},
|
|
993
|
+
{
|
|
994
|
+
service: "billing",
|
|
995
|
+
contract: "billing",
|
|
996
|
+
method: "POST",
|
|
997
|
+
path: "/api/v1/billing-accounts/{accountId}/suspend",
|
|
998
|
+
operationId: "suspend-billing-account",
|
|
999
|
+
securityScheme: "AccessToken",
|
|
1000
|
+
upstreamUrl: "https://billing.leaflow.cloud",
|
|
1001
|
+
},
|
|
1002
|
+
{
|
|
1003
|
+
service: "billing",
|
|
1004
|
+
contract: "billing",
|
|
1005
|
+
method: "POST",
|
|
1006
|
+
path: "/api/v1/billing-accounts/{accountId}/resume",
|
|
1007
|
+
operationId: "resume-billing-account",
|
|
1008
|
+
securityScheme: "AccessToken",
|
|
1009
|
+
upstreamUrl: "https://billing.leaflow.cloud",
|
|
1010
|
+
},
|
|
1002
1011
|
{
|
|
1003
1012
|
service: "billing",
|
|
1004
1013
|
contract: "billing",
|
package/package.json
CHANGED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by orval 🍺
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
* Leaflow Assistant API
|
|
5
|
-
* Conversations with agents that operate the Leaflow platform, plus their folders, tasks, files and
|
|
6
|
-
* chat-app channels.
|
|
7
|
-
*
|
|
8
|
-
* A conversation is a thread. A person talks to the main thread; the agent in it can start subagents,
|
|
9
|
-
* which are threads too and run on their own: stopping the main thread does not stop them, and each
|
|
10
|
-
* subagent tells its parent when it ends. A thread runs in turns; each turn records the model and
|
|
11
|
-
* reasoning effort it used and its token usage.
|
|
12
|
-
*
|
|
13
|
-
* Models come from the Canopy catalogue. A new thread uses the model it names, the caller's default
|
|
14
|
-
* from /api/v1/settings, or the first catalogue model that can run an agent. Reasoning models take one
|
|
15
|
-
* of three efforts — low, medium or high — which are sent to the model unchanged.
|
|
16
|
-
*
|
|
17
|
-
* Read a thread's state with get-thread and its transcript with list-thread-items. Follow both live
|
|
18
|
-
* 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.
|
|
20
|
-
*
|
|
21
|
-
* Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
|
|
22
|
-
* parts, then complete the upload and send its attachment id in a message.
|
|
23
|
-
* OpenAPI spec version: 2.0.0
|
|
24
|
-
*/
|
|
25
|
-
import * as zod from "zod";
|
|
26
|
-
export const CommandResource = zod.strictObject({
|
|
27
|
-
name: zod.string().describe("The command without the slash, for example `status`."),
|
|
28
|
-
aliases: zod.array(zod.string()).describe("Other names that run the same command."),
|
|
29
|
-
description: zod.string(),
|
|
30
|
-
argumentHint: zod
|
|
31
|
-
.string()
|
|
32
|
-
.describe("How to write the arguments, for example `<model id>`. Empty when the command takes none."),
|
|
33
|
-
});
|
|
@@ -1,201 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by orval 🍺
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
* Leaflow Assistant API
|
|
5
|
-
* Conversations with agents that operate the Leaflow platform, plus their folders, tasks, files and
|
|
6
|
-
* chat-app channels.
|
|
7
|
-
*
|
|
8
|
-
* A conversation is a thread. A person talks to the main thread; the agent in it can start subagents,
|
|
9
|
-
* which are threads too and run on their own: stopping the main thread does not stop them, and each
|
|
10
|
-
* subagent tells its parent when it ends. A thread runs in turns; each turn records the model and
|
|
11
|
-
* reasoning effort it used and its token usage.
|
|
12
|
-
*
|
|
13
|
-
* Models come from the Canopy catalogue. A new thread uses the model it names, the caller's default
|
|
14
|
-
* from /api/v1/settings, or the first catalogue model that can run an agent. Reasoning models take one
|
|
15
|
-
* of three efforts — low, medium or high — which are sent to the model unchanged.
|
|
16
|
-
*
|
|
17
|
-
* Read a thread's state with get-thread and its transcript with list-thread-items. Follow both live
|
|
18
|
-
* 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.
|
|
20
|
-
*
|
|
21
|
-
* Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
|
|
22
|
-
* parts, then complete the upload and send its attachment id in a message.
|
|
23
|
-
* OpenAPI spec version: 2.0.0
|
|
24
|
-
*/
|
|
25
|
-
import * as zod from "zod";
|
|
26
|
-
export declare const CommandResultResource: zod.ZodObject<{
|
|
27
|
-
name: zod.ZodString;
|
|
28
|
-
message: zod.ZodString;
|
|
29
|
-
thread: zod.ZodUnion<readonly [zod.ZodObject<{
|
|
30
|
-
id: zod.ZodString;
|
|
31
|
-
role: zod.ZodEnum<{
|
|
32
|
-
main: "main";
|
|
33
|
-
subagent: "subagent";
|
|
34
|
-
}>;
|
|
35
|
-
parentId: zod.ZodNullable<zod.ZodString>;
|
|
36
|
-
agentName: zod.ZodNullable<zod.ZodString>;
|
|
37
|
-
title: zod.ZodNullable<zod.ZodString>;
|
|
38
|
-
folderId: zod.ZodNullable<zod.ZodString>;
|
|
39
|
-
orderVersion: zod.ZodInt;
|
|
40
|
-
modelId: zod.ZodString;
|
|
41
|
-
reasoningEffort: zod.ZodUnion<readonly [zod.ZodEnum<{
|
|
42
|
-
high: "high";
|
|
43
|
-
low: "low";
|
|
44
|
-
medium: "medium";
|
|
45
|
-
}>, zod.ZodNull]>;
|
|
46
|
-
approvalMode: zod.ZodEnum<{
|
|
47
|
-
manual: "manual";
|
|
48
|
-
guardian: "guardian";
|
|
49
|
-
yolo: "yolo";
|
|
50
|
-
}>;
|
|
51
|
-
status: zod.ZodEnum<{
|
|
52
|
-
idle: "idle";
|
|
53
|
-
starting: "starting";
|
|
54
|
-
running: "running";
|
|
55
|
-
waiting: "waiting";
|
|
56
|
-
awaiting_approval: "awaiting_approval";
|
|
57
|
-
awaiting_input: "awaiting_input";
|
|
58
|
-
}>;
|
|
59
|
-
activity: zod.ZodNullable<zod.ZodString>;
|
|
60
|
-
recentMessage: zod.ZodNullable<zod.ZodString>;
|
|
61
|
-
todos: zod.ZodArray<zod.ZodObject<{
|
|
62
|
-
content: zod.ZodString;
|
|
63
|
-
activeForm: zod.ZodString;
|
|
64
|
-
status: zod.ZodEnum<{
|
|
65
|
-
completed: "completed";
|
|
66
|
-
pending: "pending";
|
|
67
|
-
in_progress: "in_progress";
|
|
68
|
-
}>;
|
|
69
|
-
}, zod.z.core.$strict>>;
|
|
70
|
-
pendingAction: zod.ZodUnion<readonly [zod.ZodObject<{
|
|
71
|
-
threadId: zod.ZodString;
|
|
72
|
-
itemIds: zod.ZodArray<zod.ZodString>;
|
|
73
|
-
type: zod.ZodEnum<{
|
|
74
|
-
approval: "approval";
|
|
75
|
-
question: "question";
|
|
76
|
-
}>;
|
|
77
|
-
}, zod.z.core.$strict>, zod.ZodNull]>;
|
|
78
|
-
subagents: zod.ZodObject<{
|
|
79
|
-
total: zod.ZodInt;
|
|
80
|
-
running: zod.ZodInt;
|
|
81
|
-
}, zod.z.core.$strict>;
|
|
82
|
-
lastTurn: zod.ZodUnion<readonly [zod.ZodObject<{
|
|
83
|
-
id: zod.ZodString;
|
|
84
|
-
type: zod.ZodEnum<{
|
|
85
|
-
message: "message";
|
|
86
|
-
compaction: "compaction";
|
|
87
|
-
}>;
|
|
88
|
-
status: zod.ZodEnum<{
|
|
89
|
-
running: "running";
|
|
90
|
-
completed: "completed";
|
|
91
|
-
failed: "failed";
|
|
92
|
-
declined: "declined";
|
|
93
|
-
cancelled: "cancelled";
|
|
94
|
-
}>;
|
|
95
|
-
failureCode: zod.ZodNullable<zod.ZodString>;
|
|
96
|
-
completedAt: zod.ZodNullable<zod.z.ZodISODateTime>;
|
|
97
|
-
}, zod.z.core.$strict>, zod.ZodNull]>;
|
|
98
|
-
context: zod.ZodObject<{
|
|
99
|
-
usedTokens: zod.ZodNullable<zod.ZodInt>;
|
|
100
|
-
windowTokens: zod.ZodNullable<zod.ZodInt>;
|
|
101
|
-
}, zod.z.core.$strict>;
|
|
102
|
-
usage: zod.ZodObject<{
|
|
103
|
-
inputTokens: zod.ZodInt;
|
|
104
|
-
cachedInputTokens: zod.ZodInt;
|
|
105
|
-
cacheWriteTokens: zod.ZodInt;
|
|
106
|
-
outputTokens: zod.ZodInt;
|
|
107
|
-
reasoningTokens: zod.ZodInt;
|
|
108
|
-
totalTokens: zod.ZodInt;
|
|
109
|
-
requests: zod.ZodInt;
|
|
110
|
-
complete: zod.ZodBoolean;
|
|
111
|
-
}, zod.z.core.$strict>;
|
|
112
|
-
unread: zod.ZodBoolean;
|
|
113
|
-
archived: zod.ZodBoolean;
|
|
114
|
-
createdAt: zod.z.ZodISODateTime;
|
|
115
|
-
updatedAt: zod.z.ZodISODateTime;
|
|
116
|
-
}, zod.z.core.$strict>, zod.ZodNull]>;
|
|
117
|
-
turnId: zod.ZodNullable<zod.ZodString>;
|
|
118
|
-
status: zod.ZodUnion<readonly [zod.ZodObject<{
|
|
119
|
-
threadId: zod.ZodString;
|
|
120
|
-
modelId: zod.ZodString;
|
|
121
|
-
modelName: zod.ZodString;
|
|
122
|
-
reasoningEffort: zod.ZodUnion<readonly [zod.ZodEnum<{
|
|
123
|
-
high: "high";
|
|
124
|
-
low: "low";
|
|
125
|
-
medium: "medium";
|
|
126
|
-
}>, zod.ZodNull]>;
|
|
127
|
-
approvalMode: zod.ZodEnum<{
|
|
128
|
-
manual: "manual";
|
|
129
|
-
guardian: "guardian";
|
|
130
|
-
yolo: "yolo";
|
|
131
|
-
}>;
|
|
132
|
-
status: zod.ZodEnum<{
|
|
133
|
-
idle: "idle";
|
|
134
|
-
starting: "starting";
|
|
135
|
-
running: "running";
|
|
136
|
-
waiting: "waiting";
|
|
137
|
-
awaiting_approval: "awaiting_approval";
|
|
138
|
-
awaiting_input: "awaiting_input";
|
|
139
|
-
}>;
|
|
140
|
-
context: zod.ZodObject<{
|
|
141
|
-
usedTokens: zod.ZodNullable<zod.ZodInt>;
|
|
142
|
-
windowTokens: zod.ZodNullable<zod.ZodInt>;
|
|
143
|
-
}, zod.z.core.$strict>;
|
|
144
|
-
usage: zod.ZodObject<{
|
|
145
|
-
inputTokens: zod.ZodInt;
|
|
146
|
-
cachedInputTokens: zod.ZodInt;
|
|
147
|
-
cacheWriteTokens: zod.ZodInt;
|
|
148
|
-
outputTokens: zod.ZodInt;
|
|
149
|
-
reasoningTokens: zod.ZodInt;
|
|
150
|
-
totalTokens: zod.ZodInt;
|
|
151
|
-
requests: zod.ZodInt;
|
|
152
|
-
complete: zod.ZodBoolean;
|
|
153
|
-
}, zod.z.core.$strict>;
|
|
154
|
-
lastTurn: zod.ZodUnion<readonly [zod.ZodObject<{
|
|
155
|
-
id: zod.ZodString;
|
|
156
|
-
threadId: zod.ZodString;
|
|
157
|
-
type: zod.ZodEnum<{
|
|
158
|
-
message: "message";
|
|
159
|
-
compaction: "compaction";
|
|
160
|
-
}>;
|
|
161
|
-
status: zod.ZodEnum<{
|
|
162
|
-
running: "running";
|
|
163
|
-
completed: "completed";
|
|
164
|
-
failed: "failed";
|
|
165
|
-
declined: "declined";
|
|
166
|
-
cancelled: "cancelled";
|
|
167
|
-
}>;
|
|
168
|
-
firstOrdinal: zod.ZodNullable<zod.ZodInt>;
|
|
169
|
-
lastOrdinal: zod.ZodNullable<zod.ZodInt>;
|
|
170
|
-
preview: zod.ZodNullable<zod.ZodString>;
|
|
171
|
-
modelId: zod.ZodString;
|
|
172
|
-
reasoningEffort: zod.ZodUnion<readonly [zod.ZodEnum<{
|
|
173
|
-
high: "high";
|
|
174
|
-
low: "low";
|
|
175
|
-
medium: "medium";
|
|
176
|
-
}>, zod.ZodNull]>;
|
|
177
|
-
approvalMode: zod.ZodEnum<{
|
|
178
|
-
manual: "manual";
|
|
179
|
-
guardian: "guardian";
|
|
180
|
-
yolo: "yolo";
|
|
181
|
-
}>;
|
|
182
|
-
failureCode: zod.ZodNullable<zod.ZodString>;
|
|
183
|
-
toolCalls: zod.ZodInt;
|
|
184
|
-
usage: zod.ZodObject<{
|
|
185
|
-
inputTokens: zod.ZodInt;
|
|
186
|
-
cachedInputTokens: zod.ZodInt;
|
|
187
|
-
cacheWriteTokens: zod.ZodInt;
|
|
188
|
-
outputTokens: zod.ZodInt;
|
|
189
|
-
reasoningTokens: zod.ZodInt;
|
|
190
|
-
totalTokens: zod.ZodInt;
|
|
191
|
-
requests: zod.ZodInt;
|
|
192
|
-
complete: zod.ZodBoolean;
|
|
193
|
-
}, zod.z.core.$strict>;
|
|
194
|
-
startedAt: zod.z.ZodISODateTime;
|
|
195
|
-
firstTokenAt: zod.ZodNullable<zod.z.ZodISODateTime>;
|
|
196
|
-
completedAt: zod.ZodNullable<zod.z.ZodISODateTime>;
|
|
197
|
-
}, zod.z.core.$strict>, zod.ZodNull]>;
|
|
198
|
-
}, zod.z.core.$strict>, zod.ZodNull]>;
|
|
199
|
-
}, zod.z.core.$strict>;
|
|
200
|
-
export type CommandResultResource = zod.input<typeof CommandResultResource>;
|
|
201
|
-
export type CommandResultResourceOutput = zod.output<typeof CommandResultResource>;
|