@leaflow/sdk 0.209.0 → 0.211.0
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 +243 -67
- package/dist/assistant/v1/generated/functions.js +248 -44
- package/dist/assistant/v1/generated/models.d.ts +302 -230
- package/dist/assistant/v1/generated/models.js +9 -19
- package/dist/assistant/v1/generated/schemas.zod.d.ts +119 -29
- package/dist/assistant/v1/generated/schemas.zod.js +139 -29
- package/dist/assistant/v1/generated/validators/answerQuestionRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/answerQuestionRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/approvalMode.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/approvalMode.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/artifactListResponseBody.zod.d.ts +68 -0
- package/dist/assistant/v1/generated/validators/artifactListResponseBody.zod.js +35 -0
- package/dist/assistant/v1/generated/validators/artifactResource.zod.d.ts +65 -0
- package/dist/assistant/v1/generated/validators/{attachmentResource.zod.js → artifactResource.zod.js} +13 -14
- package/dist/assistant/v1/generated/validators/artifactVersionListResponseBody.zod.d.ts +61 -0
- package/dist/assistant/v1/generated/validators/artifactVersionListResponseBody.zod.js +35 -0
- package/dist/assistant/v1/generated/validators/{uploadedResource.zod.d.ts → artifactVersionResource.zod.d.ts} +30 -16
- package/dist/assistant/v1/generated/validators/{attachmentFileResource.zod.js → artifactVersionResource.zod.js} +23 -16
- package/dist/assistant/v1/generated/validators/bindingCodeResponseBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/bindingCodeResponseBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/bindingResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/bindingResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/channelResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/channelResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/channelWithSecretResponseBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/channelWithSecretResponseBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/checkSenderParams.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/checkSenderParams.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/choiceResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/choiceResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/clientActionRequest.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/clientActionRequest.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/clientContextPart.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/clientContextPart.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/clientContextRequest.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/clientContextRequest.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/clientFunctionRequest.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/clientFunctionRequest.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/completeUploadRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/completeUploadRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/contextUsageResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/contextUsageResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/createArtifactRequestBody.zod.d.ts +38 -0
- package/dist/assistant/v1/generated/validators/createArtifactRequestBody.zod.js +36 -0
- package/dist/assistant/v1/generated/validators/createArtifactVersionRequestBody.zod.d.ts +36 -0
- package/dist/assistant/v1/generated/validators/createArtifactVersionRequestBody.zod.js +34 -0
- package/dist/assistant/v1/generated/validators/createChannelRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/createChannelRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/createFolderRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/createFolderRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/createTaskRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/createTaskRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/createThreadRequestBody.zod.d.ts +5 -4
- package/dist/assistant/v1/generated/validators/createThreadRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/createThreadResponseBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/createThreadResponseBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/createUploadRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/createUploadRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/credentialFieldResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/credentialFieldResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/cursorPagination.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/cursorPagination.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/decideToolCallsRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/decideToolCallsRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/defaultModelResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/defaultModelResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/error.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/error.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/errorStatus.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/errorStatus.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/fieldViolation.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/fieldViolation.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/{attachmentCountsResource.zod.d.ts → fileCountsResource.zod.d.ts} +7 -6
- package/dist/assistant/v1/generated/validators/{attachmentCountsResource.zod.js → fileCountsResource.zod.js} +5 -4
- package/dist/assistant/v1/generated/validators/fileDiffResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/fileDiffResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/{attachmentListResponseBody.zod.d.ts → fileListResponseBody.zod.d.ts} +15 -14
- package/dist/assistant/v1/generated/validators/{attachmentListResponseBody.zod.js → fileListResponseBody.zod.js} +9 -8
- package/dist/assistant/v1/generated/validators/{attachmentFileResource.zod.d.ts → fileResource.zod.d.ts} +14 -13
- package/dist/assistant/v1/generated/validators/{uploadedResource.zod.js → fileResource.zod.js} +25 -15
- package/dist/assistant/v1/generated/validators/folderCountsResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/folderCountsResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/folderListResponseBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/folderListResponseBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/folderResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/folderResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/itemSourceResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/itemSourceResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/lastTurnResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/lastTurnResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/lengthAwarePageBindingResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/lengthAwarePageBindingResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/lengthAwarePageChannelResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/lengthAwarePageChannelResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/listArtifactVersionsParams.zod.d.ts +39 -0
- package/dist/assistant/v1/generated/validators/listArtifactVersionsParams.zod.js +41 -0
- package/dist/assistant/v1/generated/validators/listArtifactsParams.zod.d.ts +41 -0
- package/dist/assistant/v1/generated/validators/listArtifactsParams.zod.js +39 -0
- package/dist/assistant/v1/generated/validators/listBindingsParams.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/listBindingsParams.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/listChannelRejectionsParams.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/listChannelRejectionsParams.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/listChannelsParams.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/listChannelsParams.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/listTaskRunsParams.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/listTaskRunsParams.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/listThreadItemsParams.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/listThreadItemsParams.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/listThreadMessagesParams.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/listThreadMessagesParams.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/listThreadTurnsParams.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/listThreadTurnsParams.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/loginResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/loginResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/memoryListResponseBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/memoryListResponseBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/memoryResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/memoryResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/messagePart.zod.d.ts +5 -4
- package/dist/assistant/v1/generated/validators/messagePart.zod.js +7 -6
- package/dist/assistant/v1/generated/validators/moveFolderRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/moveFolderRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/offsetPagination.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/offsetPagination.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/partResource.zod.d.ts +20 -4
- package/dist/assistant/v1/generated/validators/partResource.zod.js +8 -7
- package/dist/assistant/v1/generated/validators/pendingActionResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/pendingActionResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/placeThreadRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/placeThreadRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/platformListResponseBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/platformListResponseBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/platformResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/platformResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/presentationResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/presentationResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/putUploadPartHeaders.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/putUploadPartHeaders.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/putUploadPartParams.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/putUploadPartParams.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/questionResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/questionResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/reasoningEffort.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/reasoningEffort.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/rejectionListResponseBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/rejectionListResponseBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/rejectionResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/rejectionResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/resumeThreadRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/resumeThreadRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/revertRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/revertRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/revertedCountResponseBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/revertedCountResponseBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/rotateSecretRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/rotateSecretRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/{searchAttachmentsRequestBody.zod.d.ts → searchFilesRequestBody.zod.d.ts} +12 -11
- package/dist/assistant/v1/generated/validators/{searchAttachmentsRequestBody.zod.js → searchFilesRequestBody.zod.js} +17 -16
- package/dist/assistant/v1/generated/validators/searchTasksRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/searchTasksRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/searchThreadsRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/searchThreadsRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/sendMessageRequestBody.zod.d.ts +5 -4
- package/dist/assistant/v1/generated/validators/sendMessageRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/sendMessageResponseBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/sendMessageResponseBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/senderCheckResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/senderCheckResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/settingsResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/settingsResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/skillEnabledRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/skillEnabledRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/skillListResponseBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/skillListResponseBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/skillRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/skillRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/skillResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/skillResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/subagentCountResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/subagentCountResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/taskAction.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/taskAction.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/taskListResponseBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/taskListResponseBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/taskResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/taskResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/taskRunEvent.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/taskRunEvent.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/taskRunListResponseBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/taskRunListResponseBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/taskRunResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/taskRunResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/taskTrigger.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/taskTrigger.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/threadCountsResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/threadCountsResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/threadItemListResponseBody.zod.d.ts +120 -29
- package/dist/assistant/v1/generated/validators/threadItemListResponseBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/threadItemResource.zod.d.ts +62 -16
- package/dist/assistant/v1/generated/validators/threadItemResource.zod.js +5 -6
- package/dist/assistant/v1/generated/validators/threadListResponseBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/threadListResponseBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/threadMessageListResponseBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/threadMessageListResponseBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/threadMessageResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/threadMessageResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/threadResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/threadResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/threadStatus.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/threadStatus.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/threadTurnListResponseBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/threadTurnListResponseBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/threadTurnResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/threadTurnResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/todoResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/todoResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/toolCallResource.zod.d.ts +46 -3
- package/dist/assistant/v1/generated/validators/toolCallResource.zod.js +12 -3
- package/dist/assistant/v1/generated/validators/toolResultRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/toolResultRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/turnStartedResponseBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/turnStartedResponseBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/turnStatus.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/turnStatus.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/turnType.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/turnType.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/{attachmentResource.zod.d.ts → updateArtifactRequestBody.zod.d.ts} +9 -16
- package/dist/assistant/v1/generated/validators/updateArtifactRequestBody.zod.js +34 -0
- package/dist/assistant/v1/generated/validators/updateChannelRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/updateChannelRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/{updateAttachmentRequestBody.zod.d.ts → updateFileRequestBody.zod.d.ts} +8 -7
- package/dist/assistant/v1/generated/validators/{updateAttachmentRequestBody.zod.js → updateFileRequestBody.zod.js} +7 -6
- package/dist/assistant/v1/generated/validators/updateFolderRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/updateFolderRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/updateSettingsRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/updateSettingsRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/updateTaskRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/updateTaskRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/updateThreadRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/updateThreadRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/updateUploadRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/updateUploadRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/uploadConfigurationResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/uploadConfigurationResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/{uploadAttachmentParams.zod.d.ts → uploadFileParams.zod.d.ts} +8 -7
- package/dist/assistant/v1/generated/validators/{uploadAttachmentParams.zod.js → uploadFileParams.zod.js} +7 -6
- package/dist/assistant/v1/generated/validators/uploadListResponseBody.zod.d.ts +5 -4
- package/dist/assistant/v1/generated/validators/uploadListResponseBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/uploadPartResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/uploadPartResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/uploadResource.zod.d.ts +5 -4
- package/dist/assistant/v1/generated/validators/uploadResource.zod.js +8 -4
- package/dist/assistant/v1/generated/validators/usage.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/usage.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/verifyCodeRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/verifyCodeRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/webhookSecretResponseBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/webhookSecretResponseBody.zod.js +4 -3
- package/dist/canopy/v1/generated/functions.d.ts +73 -1
- package/dist/canopy/v1/generated/functions.js +92 -6
- package/dist/canopy/v1/generated/models.d.ts +148 -12
- package/dist/canopy/v1/generated/models.js +13 -0
- package/dist/canopy/v1/generated/schemas.zod.d.ts +49 -0
- package/dist/canopy/v1/generated/schemas.zod.js +28 -0
- package/dist/canopy/v1/generated/validators/cursorPageRequestResource.zod.d.ts +10 -0
- package/dist/canopy/v1/generated/validators/getVideoContentHeaders.zod.d.ts +46 -0
- package/dist/canopy/v1/generated/validators/getVideoContentHeaders.zod.js +44 -0
- package/dist/canopy/v1/generated/validators/mediaUsageDetails.zod.d.ts +61 -0
- package/dist/canopy/v1/generated/validators/mediaUsageDetails.zod.js +67 -0
- package/dist/canopy/v1/generated/validators/requestResource.zod.d.ts +10 -0
- package/dist/canopy/v1/generated/validators/requestResource.zod.js +2 -0
- package/dist/canopy/v1/generated/validators/videoCreateRequest.zod.d.ts +67 -0
- package/dist/canopy/v1/generated/validators/videoCreateRequest.zod.js +70 -0
- package/dist/canopy/v1/generated/validators/videoReferenceMedia.zod.d.ts +53 -0
- package/dist/canopy/v1/generated/validators/videoReferenceMedia.zod.js +53 -0
- package/dist/canopy/v1/generated/validators/videoTask.zod.d.ts +71 -0
- package/dist/canopy/v1/generated/validators/videoTask.zod.js +64 -0
- package/dist/canopy/v1/generated/validators/videoUsage.zod.d.ts +54 -0
- package/dist/canopy/v1/generated/validators/videoUsage.zod.js +62 -0
- package/dist/routes.d.ts +100 -12
- package/dist/routes.js +111 -12
- package/package.json +1 -1
|
@@ -20,10 +20,11 @@
|
|
|
20
20
|
* outlines the person's messages for navigating a long conversation.
|
|
21
21
|
*
|
|
22
22
|
* Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
|
|
23
|
-
* parts, then complete the upload and send its
|
|
23
|
+
* parts, then complete the upload and send its file id in a message.
|
|
24
24
|
*
|
|
25
|
-
* Files
|
|
26
|
-
* the conversations that already use it; downloading keeps working.
|
|
25
|
+
* Files the person attached are listed by search-files. Renaming or removing one does not change
|
|
26
|
+
* the conversations that already use it; downloading keeps working. Files the assistant hands over
|
|
27
|
+
* are artifacts: they appear on the tool call that created them and are listed by list-artifacts.
|
|
27
28
|
* OpenAPI spec version: 2.0.0
|
|
28
29
|
*/
|
|
29
30
|
import * as zod from "zod";
|
|
@@ -57,7 +58,7 @@ export declare const CreateThreadBody: zod.ZodObject<{
|
|
|
57
58
|
parts: zod.ZodArray<zod.ZodObject<{
|
|
58
59
|
type: zod.ZodString;
|
|
59
60
|
text: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
60
|
-
|
|
61
|
+
fileId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
61
62
|
data: zod.ZodOptional<zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>>;
|
|
62
63
|
}, zod.z.core.$strict>>;
|
|
63
64
|
client: zod.ZodOptional<zod.ZodObject<{
|
|
@@ -275,7 +276,7 @@ export declare const SendMessageBody: zod.ZodObject<{
|
|
|
275
276
|
parts: zod.ZodArray<zod.ZodObject<{
|
|
276
277
|
type: zod.ZodString;
|
|
277
278
|
text: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
278
|
-
|
|
279
|
+
fileId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
279
280
|
data: zod.ZodOptional<zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>>;
|
|
280
281
|
}, zod.z.core.$strict>>;
|
|
281
282
|
client: zod.ZodOptional<zod.ZodObject<{
|
|
@@ -636,57 +637,56 @@ export declare const UpdateSettingsBody: zod.ZodObject<{
|
|
|
636
637
|
}>, zod.ZodNull]>>;
|
|
637
638
|
}, zod.z.core.$strict>;
|
|
638
639
|
/**
|
|
639
|
-
* The body is the file bytes themselves, not multipart, one file per request. The type is determined from the content, not from Content-Type or from the name. Put the returned id in
|
|
640
|
+
* The body is the file bytes themselves, not multipart, one file per request. The type is determined from the content, not from Content-Type or from the name. Put the returned id in a `file` part when sending a message.
|
|
640
641
|
*
|
|
641
642
|
* An upload that no message ever references is a draft, and drafts are collected — `draftExpiresAt` in the response says when this one goes. Sending a message with the id makes it permanent.
|
|
642
643
|
*
|
|
643
644
|
* The returned `type` says how the assistant will see it. An `image` is read directly, and only by models that accept image input. A small `text` file is placed inline in the message. A large `text` file, and anything `binary`, arrives as a reference the assistant reads on demand — for a binary that usually means downloading it onto one of the project's cloud instances.
|
|
644
645
|
* @summary Upload a file
|
|
645
646
|
*/
|
|
646
|
-
export declare const
|
|
647
|
-
export declare const
|
|
647
|
+
export declare const uploadFileQueryFilenameMax = 255;
|
|
648
|
+
export declare const UploadFileQueryParams: zod.ZodObject<{
|
|
648
649
|
filename: zod.ZodOptional<zod.ZodString>;
|
|
649
650
|
}, zod.z.core.$strict>;
|
|
650
651
|
/**
|
|
651
|
-
* Metadata for one
|
|
652
|
+
* Metadata for one file. The bytes are at /api/v1/files/{file}:download.
|
|
652
653
|
*
|
|
653
|
-
* Returns 404 when the
|
|
654
|
-
*
|
|
655
|
-
*
|
|
654
|
+
* Returns 404 when the file does not exist, does not belong to the current user, or was removed
|
|
655
|
+
* from the library. Removed files stay readable through their conversations but are no longer
|
|
656
|
+
* described here.
|
|
656
657
|
* @summary Get a file
|
|
657
658
|
*/
|
|
658
|
-
export declare const
|
|
659
|
-
|
|
659
|
+
export declare const GetFileParams: zod.ZodObject<{
|
|
660
|
+
file: zod.ZodString;
|
|
660
661
|
}, zod.z.core.$strict>;
|
|
661
662
|
/**
|
|
662
|
-
* Changes the name shown in the library and given to the assistant. The bytes and the
|
|
663
|
-
*
|
|
664
|
-
* on.
|
|
663
|
+
* Changes the name shown in the library and given to the assistant. The bytes and the file id do
|
|
664
|
+
* not change; conversations that already use it see the new name from their next request on.
|
|
665
665
|
* @summary Rename a file
|
|
666
666
|
*/
|
|
667
|
-
export declare const
|
|
668
|
-
|
|
667
|
+
export declare const UpdateFileParams: zod.ZodObject<{
|
|
668
|
+
file: zod.ZodString;
|
|
669
669
|
}, zod.z.core.$strict>;
|
|
670
|
-
export declare const
|
|
670
|
+
export declare const UpdateFileBody: zod.ZodObject<{
|
|
671
671
|
filename: zod.ZodString;
|
|
672
672
|
}, zod.z.core.$strict>;
|
|
673
673
|
/**
|
|
674
|
-
* Hides the file from the library. Conversations that already use it keep it: the
|
|
675
|
-
*
|
|
676
|
-
*
|
|
674
|
+
* Hides the file from the library. Conversations that already use it keep it: the file stays
|
|
675
|
+
* readable by id and keeps rendering in their history. Its bytes are released when the project
|
|
676
|
+
* is deleted. A draft is cleared for good when its expiry passes. Idempotent.
|
|
677
677
|
* @summary Remove a file from the library
|
|
678
678
|
*/
|
|
679
|
-
export declare const
|
|
680
|
-
|
|
679
|
+
export declare const DeleteFileParams: zod.ZodObject<{
|
|
680
|
+
file: zod.ZodString;
|
|
681
681
|
}, zod.z.core.$strict>;
|
|
682
682
|
/**
|
|
683
|
-
* Returns the original bytes
|
|
683
|
+
* Returns the original bytes of a file, including one removed from the library, a file a tool produced and an artifact version. The response carries long-lived cache headers because the content never changes. Returns 404 when the file does not exist or does not belong to the current user.
|
|
684
684
|
*
|
|
685
|
-
* Only
|
|
685
|
+
* Only a file whose `type` is `image` comes back with its own image type and is usable as the address of an `<img>`. Everything else is served as `application/octet-stream` with `Content-Disposition: attachment`, deliberately: a file is arbitrary bytes under a name chosen elsewhere, and serving it back inline would run it on this origin.
|
|
686
686
|
* @summary Download a file
|
|
687
687
|
*/
|
|
688
|
-
export declare const
|
|
689
|
-
|
|
688
|
+
export declare const DownloadFileParams: zod.ZodObject<{
|
|
689
|
+
file: zod.ZodString;
|
|
690
690
|
}, zod.z.core.$strict>;
|
|
691
691
|
/**
|
|
692
692
|
* @summary Create upload
|
|
@@ -749,6 +749,96 @@ export declare const PutUploadPartQueryParams: zod.ZodObject<{
|
|
|
749
749
|
export declare const PutUploadPartHeader: zod.ZodObject<{
|
|
750
750
|
"X-Part-Size": zod.ZodInt;
|
|
751
751
|
}, zod.z.core.$strict>;
|
|
752
|
+
/**
|
|
753
|
+
* The caller's artifacts in this project, most recently updated first. An artifact is a file the
|
|
754
|
+
* assistant handed over, kept under one title across its versions: a later version replaces what
|
|
755
|
+
* the person sees, and earlier versions stay readable.
|
|
756
|
+
*
|
|
757
|
+
* With `thread`, only artifacts that have a version created in that conversation are listed.
|
|
758
|
+
* @summary List artifacts
|
|
759
|
+
*/
|
|
760
|
+
export declare const listArtifactsQueryThreadMax = 64;
|
|
761
|
+
export declare const listArtifactsQueryCursorMax = 1024;
|
|
762
|
+
export declare const listArtifactsQueryLimitDefault = 50;
|
|
763
|
+
export declare const listArtifactsQueryLimitMax = 200;
|
|
764
|
+
export declare const ListArtifactsQueryParams: zod.ZodObject<{
|
|
765
|
+
thread: zod.ZodOptional<zod.ZodString>;
|
|
766
|
+
cursor: zod.ZodOptional<zod.ZodString>;
|
|
767
|
+
limit: zod.ZodDefault<zod.ZodInt>;
|
|
768
|
+
}, zod.z.core.$strict>;
|
|
769
|
+
/**
|
|
770
|
+
* Makes a file the first version of a new artifact. The file must belong to the caller in this
|
|
771
|
+
* project. Fails with 404 and code FILE_NOT_FOUND when it does not.
|
|
772
|
+
* @summary Create an artifact
|
|
773
|
+
*/
|
|
774
|
+
export declare const CreateArtifactBody: zod.ZodObject<{
|
|
775
|
+
title: zod.ZodString;
|
|
776
|
+
fileId: zod.ZodString;
|
|
777
|
+
}, zod.z.core.$strict>;
|
|
778
|
+
/**
|
|
779
|
+
* @summary Get an artifact
|
|
780
|
+
*/
|
|
781
|
+
export declare const getArtifactPathArtifactMax = 64;
|
|
782
|
+
export declare const GetArtifactParams: zod.ZodObject<{
|
|
783
|
+
artifact: zod.ZodString;
|
|
784
|
+
}, zod.z.core.$strict>;
|
|
785
|
+
/**
|
|
786
|
+
* Changes the title shown for every version. The versions and their files do not change.
|
|
787
|
+
* @summary Rename an artifact
|
|
788
|
+
*/
|
|
789
|
+
export declare const updateArtifactPathArtifactMax = 64;
|
|
790
|
+
export declare const UpdateArtifactParams: zod.ZodObject<{
|
|
791
|
+
artifact: zod.ZodString;
|
|
792
|
+
}, zod.z.core.$strict>;
|
|
793
|
+
export declare const UpdateArtifactBody: zod.ZodObject<{
|
|
794
|
+
title: zod.ZodString;
|
|
795
|
+
}, zod.z.core.$strict>;
|
|
796
|
+
/**
|
|
797
|
+
* Removes the artifact and its versions from lists, and the assistant can no longer add versions
|
|
798
|
+
* to it. Conversations that showed a version keep showing it, and its file stays downloadable.
|
|
799
|
+
* Idempotent.
|
|
800
|
+
* @summary Delete an artifact
|
|
801
|
+
*/
|
|
802
|
+
export declare const deleteArtifactPathArtifactMax = 64;
|
|
803
|
+
export declare const DeleteArtifactParams: zod.ZodObject<{
|
|
804
|
+
artifact: zod.ZodString;
|
|
805
|
+
}, zod.z.core.$strict>;
|
|
806
|
+
/**
|
|
807
|
+
* The versions of an artifact, newest first.
|
|
808
|
+
* @summary List artifact versions
|
|
809
|
+
*/
|
|
810
|
+
export declare const listArtifactVersionsPathArtifactMax = 64;
|
|
811
|
+
export declare const ListArtifactVersionsParams: zod.ZodObject<{
|
|
812
|
+
artifact: zod.ZodString;
|
|
813
|
+
}, zod.z.core.$strict>;
|
|
814
|
+
export declare const listArtifactVersionsQueryCursorMax = 1024;
|
|
815
|
+
export declare const listArtifactVersionsQueryLimitDefault = 50;
|
|
816
|
+
export declare const listArtifactVersionsQueryLimitMax = 200;
|
|
817
|
+
export declare const ListArtifactVersionsQueryParams: zod.ZodObject<{
|
|
818
|
+
cursor: zod.ZodOptional<zod.ZodString>;
|
|
819
|
+
limit: zod.ZodDefault<zod.ZodInt>;
|
|
820
|
+
}, zod.z.core.$strict>;
|
|
821
|
+
/**
|
|
822
|
+
* Makes a file the newest version of the artifact. The file must belong to the caller in this
|
|
823
|
+
* project. Fails with 404 and code FILE_NOT_FOUND when it does not.
|
|
824
|
+
* @summary Add a version
|
|
825
|
+
*/
|
|
826
|
+
export declare const createArtifactVersionPathArtifactMax = 64;
|
|
827
|
+
export declare const CreateArtifactVersionParams: zod.ZodObject<{
|
|
828
|
+
artifact: zod.ZodString;
|
|
829
|
+
}, zod.z.core.$strict>;
|
|
830
|
+
export declare const CreateArtifactVersionBody: zod.ZodObject<{
|
|
831
|
+
fileId: zod.ZodString;
|
|
832
|
+
}, zod.z.core.$strict>;
|
|
833
|
+
/**
|
|
834
|
+
* @summary Get an artifact version
|
|
835
|
+
*/
|
|
836
|
+
export declare const getArtifactVersionPathArtifactMax = 64;
|
|
837
|
+
export declare const getArtifactVersionPathVersionMax = 64;
|
|
838
|
+
export declare const GetArtifactVersionParams: zod.ZodObject<{
|
|
839
|
+
artifact: zod.ZodString;
|
|
840
|
+
version: zod.ZodString;
|
|
841
|
+
}, zod.z.core.$strict>;
|
|
752
842
|
/**
|
|
753
843
|
* The assistant stops remembering this. It takes effect at once, so the next conversation will not carry it. The assistant may well learn the same thing again.
|
|
754
844
|
* @summary Delete one memory
|
|
@@ -20,15 +20,18 @@
|
|
|
20
20
|
* outlines the person's messages for navigating a long conversation.
|
|
21
21
|
*
|
|
22
22
|
* Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
|
|
23
|
-
* parts, then complete the upload and send its
|
|
23
|
+
* parts, then complete the upload and send its file id in a message.
|
|
24
24
|
*
|
|
25
|
-
* Files
|
|
26
|
-
* the conversations that already use it; downloading keeps working.
|
|
25
|
+
* Files the person attached are listed by search-files. Renaming or removing one does not change
|
|
26
|
+
* the conversations that already use it; downloading keeps working. Files the assistant hands over
|
|
27
|
+
* are artifacts: they appear on the tool call that created them and are listed by list-artifacts.
|
|
27
28
|
* OpenAPI spec version: 2.0.0
|
|
28
29
|
*/
|
|
29
30
|
import * as zod from "zod";
|
|
30
31
|
import { AnswerQuestionRequestBody } from "./validators/answerQuestionRequestBody.zod.js";
|
|
31
32
|
import { CompleteUploadRequestBody } from "./validators/completeUploadRequestBody.zod.js";
|
|
33
|
+
import { CreateArtifactRequestBody } from "./validators/createArtifactRequestBody.zod.js";
|
|
34
|
+
import { CreateArtifactVersionRequestBody } from "./validators/createArtifactVersionRequestBody.zod.js";
|
|
32
35
|
import { CreateChannelRequestBody } from "./validators/createChannelRequestBody.zod.js";
|
|
33
36
|
import { CreateFolderRequestBody } from "./validators/createFolderRequestBody.zod.js";
|
|
34
37
|
import { CreateTaskRequestBody } from "./validators/createTaskRequestBody.zod.js";
|
|
@@ -44,8 +47,9 @@ import { SendMessageRequestBody } from "./validators/sendMessageRequestBody.zod.
|
|
|
44
47
|
import { SkillEnabledRequestBody } from "./validators/skillEnabledRequestBody.zod.js";
|
|
45
48
|
import { SkillRequestBody } from "./validators/skillRequestBody.zod.js";
|
|
46
49
|
import { ToolResultRequestBody } from "./validators/toolResultRequestBody.zod.js";
|
|
47
|
-
import {
|
|
50
|
+
import { UpdateArtifactRequestBody } from "./validators/updateArtifactRequestBody.zod.js";
|
|
48
51
|
import { UpdateChannelRequestBody } from "./validators/updateChannelRequestBody.zod.js";
|
|
52
|
+
import { UpdateFileRequestBody } from "./validators/updateFileRequestBody.zod.js";
|
|
49
53
|
import { UpdateFolderRequestBody } from "./validators/updateFolderRequestBody.zod.js";
|
|
50
54
|
import { UpdateSettingsRequestBody } from "./validators/updateSettingsRequestBody.zod.js";
|
|
51
55
|
import { UpdateTaskRequestBody } from "./validators/updateTaskRequestBody.zod.js";
|
|
@@ -573,59 +577,58 @@ export const GetTaskRunParams = zod.strictObject({
|
|
|
573
577
|
*/
|
|
574
578
|
export const UpdateSettingsBody = UpdateSettingsRequestBody;
|
|
575
579
|
/**
|
|
576
|
-
* The body is the file bytes themselves, not multipart, one file per request. The type is determined from the content, not from Content-Type or from the name. Put the returned id in
|
|
580
|
+
* The body is the file bytes themselves, not multipart, one file per request. The type is determined from the content, not from Content-Type or from the name. Put the returned id in a `file` part when sending a message.
|
|
577
581
|
*
|
|
578
582
|
* An upload that no message ever references is a draft, and drafts are collected — `draftExpiresAt` in the response says when this one goes. Sending a message with the id makes it permanent.
|
|
579
583
|
*
|
|
580
584
|
* The returned `type` says how the assistant will see it. An `image` is read directly, and only by models that accept image input. A small `text` file is placed inline in the message. A large `text` file, and anything `binary`, arrives as a reference the assistant reads on demand — for a binary that usually means downloading it onto one of the project's cloud instances.
|
|
581
585
|
* @summary Upload a file
|
|
582
586
|
*/
|
|
583
|
-
export const
|
|
584
|
-
export const
|
|
587
|
+
export const uploadFileQueryFilenameMax = 255;
|
|
588
|
+
export const UploadFileQueryParams = zod.strictObject({
|
|
585
589
|
filename: zod
|
|
586
590
|
.string()
|
|
587
|
-
.max(
|
|
591
|
+
.max(uploadFileQueryFilenameMax)
|
|
588
592
|
.optional()
|
|
589
593
|
.describe("The name to show and to give the assistant. Images do not need one; anything else does, because the name is most of what says what the file is. Falls back to a generated name."),
|
|
590
594
|
});
|
|
591
595
|
/**
|
|
592
|
-
* Metadata for one
|
|
596
|
+
* Metadata for one file. The bytes are at /api/v1/files/{file}:download.
|
|
593
597
|
*
|
|
594
|
-
* Returns 404 when the
|
|
595
|
-
*
|
|
596
|
-
*
|
|
598
|
+
* Returns 404 when the file does not exist, does not belong to the current user, or was removed
|
|
599
|
+
* from the library. Removed files stay readable through their conversations but are no longer
|
|
600
|
+
* described here.
|
|
597
601
|
* @summary Get a file
|
|
598
602
|
*/
|
|
599
|
-
export const
|
|
600
|
-
|
|
603
|
+
export const GetFileParams = zod.strictObject({
|
|
604
|
+
file: zod.string(),
|
|
601
605
|
});
|
|
602
606
|
/**
|
|
603
|
-
* Changes the name shown in the library and given to the assistant. The bytes and the
|
|
604
|
-
*
|
|
605
|
-
* on.
|
|
607
|
+
* Changes the name shown in the library and given to the assistant. The bytes and the file id do
|
|
608
|
+
* not change; conversations that already use it see the new name from their next request on.
|
|
606
609
|
* @summary Rename a file
|
|
607
610
|
*/
|
|
608
|
-
export const
|
|
609
|
-
|
|
611
|
+
export const UpdateFileParams = zod.strictObject({
|
|
612
|
+
file: zod.string(),
|
|
610
613
|
});
|
|
611
|
-
export const
|
|
614
|
+
export const UpdateFileBody = UpdateFileRequestBody;
|
|
612
615
|
/**
|
|
613
|
-
* Hides the file from the library. Conversations that already use it keep it: the
|
|
614
|
-
*
|
|
615
|
-
*
|
|
616
|
+
* Hides the file from the library. Conversations that already use it keep it: the file stays
|
|
617
|
+
* readable by id and keeps rendering in their history. Its bytes are released when the project
|
|
618
|
+
* is deleted. A draft is cleared for good when its expiry passes. Idempotent.
|
|
616
619
|
* @summary Remove a file from the library
|
|
617
620
|
*/
|
|
618
|
-
export const
|
|
619
|
-
|
|
621
|
+
export const DeleteFileParams = zod.strictObject({
|
|
622
|
+
file: zod.string(),
|
|
620
623
|
});
|
|
621
624
|
/**
|
|
622
|
-
* Returns the original bytes
|
|
625
|
+
* Returns the original bytes of a file, including one removed from the library, a file a tool produced and an artifact version. The response carries long-lived cache headers because the content never changes. Returns 404 when the file does not exist or does not belong to the current user.
|
|
623
626
|
*
|
|
624
|
-
* Only
|
|
627
|
+
* Only a file whose `type` is `image` comes back with its own image type and is usable as the address of an `<img>`. Everything else is served as `application/octet-stream` with `Content-Disposition: attachment`, deliberately: a file is arbitrary bytes under a name chosen elsewhere, and serving it back inline would run it on this origin.
|
|
625
628
|
* @summary Download a file
|
|
626
629
|
*/
|
|
627
|
-
export const
|
|
628
|
-
|
|
630
|
+
export const DownloadFileParams = zod.strictObject({
|
|
631
|
+
file: zod.string(),
|
|
629
632
|
});
|
|
630
633
|
/**
|
|
631
634
|
* @summary Create upload
|
|
@@ -677,6 +680,113 @@ export const PutUploadPartQueryParams = zod.strictObject({
|
|
|
677
680
|
export const PutUploadPartHeader = zod.strictObject({
|
|
678
681
|
"X-Part-Size": zod.int().min(1),
|
|
679
682
|
});
|
|
683
|
+
/**
|
|
684
|
+
* The caller's artifacts in this project, most recently updated first. An artifact is a file the
|
|
685
|
+
* assistant handed over, kept under one title across its versions: a later version replaces what
|
|
686
|
+
* the person sees, and earlier versions stay readable.
|
|
687
|
+
*
|
|
688
|
+
* With `thread`, only artifacts that have a version created in that conversation are listed.
|
|
689
|
+
* @summary List artifacts
|
|
690
|
+
*/
|
|
691
|
+
export const listArtifactsQueryThreadMax = 64;
|
|
692
|
+
export const listArtifactsQueryCursorMax = 1024;
|
|
693
|
+
export const listArtifactsQueryLimitDefault = 50;
|
|
694
|
+
export const listArtifactsQueryLimitMax = 200;
|
|
695
|
+
export const ListArtifactsQueryParams = zod.strictObject({
|
|
696
|
+
thread: zod
|
|
697
|
+
.string()
|
|
698
|
+
.max(listArtifactsQueryThreadMax)
|
|
699
|
+
.optional()
|
|
700
|
+
.describe("Only artifacts with a version created in this conversation."),
|
|
701
|
+
cursor: zod
|
|
702
|
+
.string()
|
|
703
|
+
.min(1)
|
|
704
|
+
.max(listArtifactsQueryCursorMax)
|
|
705
|
+
.optional()
|
|
706
|
+
.describe("The next_cursor returned by the previous page. Omit it for the first page."),
|
|
707
|
+
limit: zod
|
|
708
|
+
.int()
|
|
709
|
+
.min(1)
|
|
710
|
+
.max(listArtifactsQueryLimitMax)
|
|
711
|
+
.default(listArtifactsQueryLimitDefault)
|
|
712
|
+
.describe("Items returned in this page. Defaults to 50; at most 200."),
|
|
713
|
+
});
|
|
714
|
+
/**
|
|
715
|
+
* Makes a file the first version of a new artifact. The file must belong to the caller in this
|
|
716
|
+
* project. Fails with 404 and code FILE_NOT_FOUND when it does not.
|
|
717
|
+
* @summary Create an artifact
|
|
718
|
+
*/
|
|
719
|
+
export const CreateArtifactBody = CreateArtifactRequestBody;
|
|
720
|
+
/**
|
|
721
|
+
* @summary Get an artifact
|
|
722
|
+
*/
|
|
723
|
+
export const getArtifactPathArtifactMax = 64;
|
|
724
|
+
export const GetArtifactParams = zod.strictObject({
|
|
725
|
+
artifact: zod.string().max(getArtifactPathArtifactMax).describe("An artifact id."),
|
|
726
|
+
});
|
|
727
|
+
/**
|
|
728
|
+
* Changes the title shown for every version. The versions and their files do not change.
|
|
729
|
+
* @summary Rename an artifact
|
|
730
|
+
*/
|
|
731
|
+
export const updateArtifactPathArtifactMax = 64;
|
|
732
|
+
export const UpdateArtifactParams = zod.strictObject({
|
|
733
|
+
artifact: zod.string().max(updateArtifactPathArtifactMax).describe("An artifact id."),
|
|
734
|
+
});
|
|
735
|
+
export const UpdateArtifactBody = UpdateArtifactRequestBody;
|
|
736
|
+
/**
|
|
737
|
+
* Removes the artifact and its versions from lists, and the assistant can no longer add versions
|
|
738
|
+
* to it. Conversations that showed a version keep showing it, and its file stays downloadable.
|
|
739
|
+
* Idempotent.
|
|
740
|
+
* @summary Delete an artifact
|
|
741
|
+
*/
|
|
742
|
+
export const deleteArtifactPathArtifactMax = 64;
|
|
743
|
+
export const DeleteArtifactParams = zod.strictObject({
|
|
744
|
+
artifact: zod.string().max(deleteArtifactPathArtifactMax).describe("An artifact id."),
|
|
745
|
+
});
|
|
746
|
+
/**
|
|
747
|
+
* The versions of an artifact, newest first.
|
|
748
|
+
* @summary List artifact versions
|
|
749
|
+
*/
|
|
750
|
+
export const listArtifactVersionsPathArtifactMax = 64;
|
|
751
|
+
export const ListArtifactVersionsParams = zod.strictObject({
|
|
752
|
+
artifact: zod.string().max(listArtifactVersionsPathArtifactMax).describe("An artifact id."),
|
|
753
|
+
});
|
|
754
|
+
export const listArtifactVersionsQueryCursorMax = 1024;
|
|
755
|
+
export const listArtifactVersionsQueryLimitDefault = 50;
|
|
756
|
+
export const listArtifactVersionsQueryLimitMax = 200;
|
|
757
|
+
export const ListArtifactVersionsQueryParams = zod.strictObject({
|
|
758
|
+
cursor: zod
|
|
759
|
+
.string()
|
|
760
|
+
.min(1)
|
|
761
|
+
.max(listArtifactVersionsQueryCursorMax)
|
|
762
|
+
.optional()
|
|
763
|
+
.describe("The next_cursor returned by the previous page. Omit it for the first page."),
|
|
764
|
+
limit: zod
|
|
765
|
+
.int()
|
|
766
|
+
.min(1)
|
|
767
|
+
.max(listArtifactVersionsQueryLimitMax)
|
|
768
|
+
.default(listArtifactVersionsQueryLimitDefault)
|
|
769
|
+
.describe("Items returned in this page. Defaults to 50; at most 200."),
|
|
770
|
+
});
|
|
771
|
+
/**
|
|
772
|
+
* Makes a file the newest version of the artifact. The file must belong to the caller in this
|
|
773
|
+
* project. Fails with 404 and code FILE_NOT_FOUND when it does not.
|
|
774
|
+
* @summary Add a version
|
|
775
|
+
*/
|
|
776
|
+
export const createArtifactVersionPathArtifactMax = 64;
|
|
777
|
+
export const CreateArtifactVersionParams = zod.strictObject({
|
|
778
|
+
artifact: zod.string().max(createArtifactVersionPathArtifactMax).describe("An artifact id."),
|
|
779
|
+
});
|
|
780
|
+
export const CreateArtifactVersionBody = CreateArtifactVersionRequestBody;
|
|
781
|
+
/**
|
|
782
|
+
* @summary Get an artifact version
|
|
783
|
+
*/
|
|
784
|
+
export const getArtifactVersionPathArtifactMax = 64;
|
|
785
|
+
export const getArtifactVersionPathVersionMax = 64;
|
|
786
|
+
export const GetArtifactVersionParams = zod.strictObject({
|
|
787
|
+
artifact: zod.string().max(getArtifactVersionPathArtifactMax).describe("An artifact id."),
|
|
788
|
+
version: zod.string().max(getArtifactVersionPathVersionMax).describe("An artifact version id."),
|
|
789
|
+
});
|
|
680
790
|
/**
|
|
681
791
|
* The assistant stops remembering this. It takes effect at once, so the next conversation will not carry it. The assistant may well learn the same thing again.
|
|
682
792
|
* @summary Delete one memory
|
|
@@ -20,10 +20,11 @@
|
|
|
20
20
|
* outlines the person's messages for navigating a long conversation.
|
|
21
21
|
*
|
|
22
22
|
* Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
|
|
23
|
-
* parts, then complete the upload and send its
|
|
23
|
+
* parts, then complete the upload and send its file id in a message.
|
|
24
24
|
*
|
|
25
|
-
* Files
|
|
26
|
-
* the conversations that already use it; downloading keeps working.
|
|
25
|
+
* Files the person attached are listed by search-files. Renaming or removing one does not change
|
|
26
|
+
* the conversations that already use it; downloading keeps working. Files the assistant hands over
|
|
27
|
+
* are artifacts: they appear on the tool call that created them and are listed by list-artifacts.
|
|
27
28
|
* OpenAPI spec version: 2.0.0
|
|
28
29
|
*/
|
|
29
30
|
import * as zod from "zod";
|
|
@@ -20,10 +20,11 @@
|
|
|
20
20
|
* outlines the person's messages for navigating a long conversation.
|
|
21
21
|
*
|
|
22
22
|
* Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
|
|
23
|
-
* parts, then complete the upload and send its
|
|
23
|
+
* parts, then complete the upload and send its file id in a message.
|
|
24
24
|
*
|
|
25
|
-
* Files
|
|
26
|
-
* the conversations that already use it; downloading keeps working.
|
|
25
|
+
* Files the person attached are listed by search-files. Renaming or removing one does not change
|
|
26
|
+
* the conversations that already use it; downloading keeps working. Files the assistant hands over
|
|
27
|
+
* are artifacts: they appear on the tool call that created them and are listed by list-artifacts.
|
|
27
28
|
* OpenAPI spec version: 2.0.0
|
|
28
29
|
*/
|
|
29
30
|
import * as zod from "zod";
|
|
@@ -20,10 +20,11 @@
|
|
|
20
20
|
* outlines the person's messages for navigating a long conversation.
|
|
21
21
|
*
|
|
22
22
|
* Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
|
|
23
|
-
* parts, then complete the upload and send its
|
|
23
|
+
* parts, then complete the upload and send its file id in a message.
|
|
24
24
|
*
|
|
25
|
-
* Files
|
|
26
|
-
* the conversations that already use it; downloading keeps working.
|
|
25
|
+
* Files the person attached are listed by search-files. Renaming or removing one does not change
|
|
26
|
+
* the conversations that already use it; downloading keeps working. Files the assistant hands over
|
|
27
|
+
* are artifacts: they appear on the tool call that created them and are listed by list-artifacts.
|
|
27
28
|
* OpenAPI spec version: 2.0.0
|
|
28
29
|
*/
|
|
29
30
|
import * as zod from "zod";
|
|
@@ -20,10 +20,11 @@
|
|
|
20
20
|
* outlines the person's messages for navigating a long conversation.
|
|
21
21
|
*
|
|
22
22
|
* Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
|
|
23
|
-
* parts, then complete the upload and send its
|
|
23
|
+
* parts, then complete the upload and send its file id in a message.
|
|
24
24
|
*
|
|
25
|
-
* Files
|
|
26
|
-
* the conversations that already use it; downloading keeps working.
|
|
25
|
+
* Files the person attached are listed by search-files. Renaming or removing one does not change
|
|
26
|
+
* the conversations that already use it; downloading keeps working. Files the assistant hands over
|
|
27
|
+
* are artifacts: they appear on the tool call that created them and are listed by list-artifacts.
|
|
27
28
|
* OpenAPI spec version: 2.0.0
|
|
28
29
|
*/
|
|
29
30
|
import * as zod from "zod";
|
|
@@ -0,0 +1,68 @@
|
|
|
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
|
+
* through EventBus by subscribing to assistant.thread.frame and assistant.resource.updated; after a
|
|
19
|
+
* reconnection or an assistant.workspace.invalidated message, read them again. list-thread-messages
|
|
20
|
+
* outlines the person's messages for navigating a long conversation.
|
|
21
|
+
*
|
|
22
|
+
* Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
|
|
23
|
+
* parts, then complete the upload and send its file id in a message.
|
|
24
|
+
*
|
|
25
|
+
* Files the person attached are listed by search-files. Renaming or removing one does not change
|
|
26
|
+
* the conversations that already use it; downloading keeps working. Files the assistant hands over
|
|
27
|
+
* are artifacts: they appear on the tool call that created them and are listed by list-artifacts.
|
|
28
|
+
* OpenAPI spec version: 2.0.0
|
|
29
|
+
*/
|
|
30
|
+
import * as zod from "zod";
|
|
31
|
+
export declare const ArtifactListResponseBody: zod.ZodObject<{
|
|
32
|
+
artifacts: zod.ZodArray<zod.ZodObject<{
|
|
33
|
+
id: zod.ZodString;
|
|
34
|
+
title: zod.ZodString;
|
|
35
|
+
latestVersion: zod.ZodObject<{
|
|
36
|
+
id: zod.ZodString;
|
|
37
|
+
artifactId: zod.ZodString;
|
|
38
|
+
title: zod.ZodString;
|
|
39
|
+
version: zod.ZodInt;
|
|
40
|
+
file: zod.ZodObject<{
|
|
41
|
+
id: zod.ZodString;
|
|
42
|
+
filename: zod.ZodString;
|
|
43
|
+
mediaType: zod.ZodString;
|
|
44
|
+
type: zod.ZodEnum<{
|
|
45
|
+
text: "text";
|
|
46
|
+
image: "image";
|
|
47
|
+
binary: "binary";
|
|
48
|
+
}>;
|
|
49
|
+
byteSize: zod.ZodInt;
|
|
50
|
+
width: zod.ZodNullable<zod.ZodInt>;
|
|
51
|
+
height: zod.ZodNullable<zod.ZodInt>;
|
|
52
|
+
draftExpiresAt: zod.ZodNullable<zod.z.ZodISODateTime>;
|
|
53
|
+
createdAt: zod.z.ZodISODateTime;
|
|
54
|
+
updatedAt: zod.z.ZodISODateTime;
|
|
55
|
+
}, zod.z.core.$strict>;
|
|
56
|
+
threadId: zod.ZodNullable<zod.ZodString>;
|
|
57
|
+
turnId: zod.ZodNullable<zod.ZodString>;
|
|
58
|
+
itemId: zod.ZodNullable<zod.ZodString>;
|
|
59
|
+
createdAt: zod.z.ZodISODateTime;
|
|
60
|
+
}, zod.z.core.$strict>;
|
|
61
|
+
versionCount: zod.ZodInt;
|
|
62
|
+
createdAt: zod.z.ZodISODateTime;
|
|
63
|
+
updatedAt: zod.z.ZodISODateTime;
|
|
64
|
+
}, zod.z.core.$strict>>;
|
|
65
|
+
nextCursor: zod.ZodNullable<zod.ZodString>;
|
|
66
|
+
}, zod.z.core.$strict>;
|
|
67
|
+
export type ArtifactListResponseBody = zod.input<typeof ArtifactListResponseBody>;
|
|
68
|
+
export type ArtifactListResponseBodyOutput = zod.output<typeof ArtifactListResponseBody>;
|
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
* through EventBus by subscribing to assistant.thread.frame and assistant.resource.updated; after a
|
|
19
|
+
* reconnection or an assistant.workspace.invalidated message, read them again. list-thread-messages
|
|
20
|
+
* outlines the person's messages for navigating a long conversation.
|
|
21
|
+
*
|
|
22
|
+
* Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
|
|
23
|
+
* parts, then complete the upload and send its file id in a message.
|
|
24
|
+
*
|
|
25
|
+
* Files the person attached are listed by search-files. Renaming or removing one does not change
|
|
26
|
+
* the conversations that already use it; downloading keeps working. Files the assistant hands over
|
|
27
|
+
* are artifacts: they appear on the tool call that created them and are listed by list-artifacts.
|
|
28
|
+
* OpenAPI spec version: 2.0.0
|
|
29
|
+
*/
|
|
30
|
+
import * as zod from "zod";
|
|
31
|
+
import { ArtifactResource } from "./artifactResource.zod.js";
|
|
32
|
+
export const ArtifactListResponseBody = zod.strictObject({
|
|
33
|
+
artifacts: zod.array(ArtifactResource),
|
|
34
|
+
nextCursor: zod.string().nullable().describe("Null on the last page."),
|
|
35
|
+
});
|