@leaflow/sdk 0.210.0 → 0.212.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 +19 -50
- package/dist/canopy/v1/generated/functions.js +4 -34
- package/dist/canopy/v1/generated/models.d.ts +38 -64
- package/dist/canopy/v1/generated/models.js +0 -26
- package/dist/canopy/v1/generated/schemas.zod.d.ts +18 -21
- package/dist/canopy/v1/generated/schemas.zod.js +18 -21
- package/dist/canopy/v1/generated/validators/aPIKeyResource.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/aPIKeyResource.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/aPIKeyUsageListResponseBody.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/aPIKeyUsageListResponseBody.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/aPIKeyUsageResource.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/aPIKeyUsageResource.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/audioCapabilities.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/audioCapabilities.zod.js +18 -9
- package/dist/canopy/v1/generated/validators/chatCompletion.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/chatCompletion.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/chatCompletionRequest.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/chatCompletionRequest.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/checkoutMode.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/checkoutMode.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/checkoutOptions.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/checkoutOptions.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/createAPIKeyRequestBody.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/createAPIKeyRequestBody.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/createServiceRequestBody.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/createServiceRequestBody.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/createServiceResponseBody.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/createServiceResponseBody.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/cursorPageRequestResource.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/cursorPageRequestResource.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/cursorPagination.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/cursorPagination.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/embeddingRequest.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/embeddingRequest.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/embeddingResponse.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/embeddingResponse.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/error.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/error.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/errorStatus.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/errorStatus.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/fieldViolation.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/fieldViolation.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/getUsageSummaryParams.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/getUsageSummaryParams.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/getUsageTimelineParams.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/getUsageTimelineParams.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/getVideoContentHeaders.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/getVideoContentHeaders.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/imageCapabilities.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/imageCapabilities.zod.js +16 -7
- package/dist/canopy/v1/generated/validators/inferenceError.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/inferenceError.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/issuedAPIKeyResource.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/issuedAPIKeyResource.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/lengthAwarePageAPIKeyResource.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/lengthAwarePageAPIKeyResource.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/listApiKeysParams.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/listApiKeysParams.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/listRequestsParams.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/listRequestsParams.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/listUsageByApiKeyParams.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/listUsageByApiKeyParams.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/listUsageByModelParams.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/listUsageByModelParams.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/mediaUsage.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/mediaUsage.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/mediaUsageDetails.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/mediaUsageDetails.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/modality.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/modality.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/model.zod.d.ts +16 -33
- package/dist/canopy/v1/generated/validators/model.zod.js +14 -9
- package/dist/canopy/v1/generated/validators/modelBilling.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/modelBilling.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/modelCapabilities.zod.d.ts +16 -7
- package/dist/canopy/v1/generated/validators/modelCapabilities.zod.js +41 -8
- package/dist/canopy/v1/generated/validators/modelList.zod.d.ts +16 -33
- package/dist/canopy/v1/generated/validators/modelList.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/modelListResponseBody.zod.d.ts +16 -33
- package/dist/canopy/v1/generated/validators/modelListResponseBody.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/modelMeter.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/modelMeter.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/modelParameter.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/modelParameter.zod.js +15 -6
- package/dist/canopy/v1/generated/validators/modelResource.zod.d.ts +16 -33
- package/dist/canopy/v1/generated/validators/modelResource.zod.js +14 -9
- package/dist/canopy/v1/generated/validators/modelUsageListResponseBody.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/modelUsageListResponseBody.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/modelUsageResource.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/modelUsageResource.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/money.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/money.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/nativeRequest.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/nativeRequest.zod.js +15 -6
- package/dist/canopy/v1/generated/validators/nativeResponse.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/nativeResponse.zod.js +15 -6
- package/dist/canopy/v1/generated/validators/offsetPagination.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/offsetPagination.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/reasoningCapabilities.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/reasoningCapabilities.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/reasoningDiagnostics.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/reasoningDiagnostics.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/requestResource.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/requestResource.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/responseCreate.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/responseCreate.zod.js +23 -8
- package/dist/canopy/v1/generated/validators/responseResource.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/responseResource.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/serviceResource.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/serviceResource.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/streamGenerateContentParams.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/streamGenerateContentParams.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/totalsResource.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/totalsResource.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/updateAPIKeyRequestBody.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/updateAPIKeyRequestBody.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/usageBucketResource.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/usageBucketResource.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/usageTimelineResponseBody.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/usageTimelineResponseBody.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/videoCapabilities.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/videoCapabilities.zod.js +15 -6
- package/dist/canopy/v1/generated/validators/videoCreateRequest.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/videoCreateRequest.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/videoDurationRange.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/videoDurationRange.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/videoReferenceMedia.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/videoReferenceMedia.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/videoTask.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/videoTask.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/videoUsage.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/videoUsage.zod.js +14 -5
- package/dist/routes.d.ts +76 -28
- package/dist/routes.js +84 -30
- package/package.json +1 -1
- package/dist/canopy/v1/generated/validators/endpointCapabilities.zod.d.ts +0 -100
- package/dist/canopy/v1/generated/validators/endpointCapabilities.zod.js +0 -67
- package/dist/canopy/v1/generated/validators/modelEndpoint.zod.d.ts +0 -69
- package/dist/canopy/v1/generated/validators/modelEndpoint.zod.js +0 -67
- package/dist/canopy/v1/generated/validators/responseDeleted.zod.d.ts +0 -48
- package/dist/canopy/v1/generated/validators/responseDeleted.zod.js +0 -46
|
@@ -20,14 +20,15 @@
|
|
|
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
|
-
export const
|
|
31
|
-
export const
|
|
32
|
-
filename: zod.string().max(
|
|
31
|
+
export const uploadFileParamsFilenameMax = 255;
|
|
32
|
+
export const UploadFileParams = zod.strictObject({
|
|
33
|
+
filename: zod.string().max(uploadFileParamsFilenameMax).optional(),
|
|
33
34
|
});
|
|
@@ -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";
|
|
@@ -36,7 +37,7 @@ export declare const UploadListResponseBody: zod.ZodObject<{
|
|
|
36
37
|
policyId: zod.ZodString;
|
|
37
38
|
expiresAt: zod.z.ZodISODateTime;
|
|
38
39
|
status: zod.ZodString;
|
|
39
|
-
|
|
40
|
+
fileId: zod.ZodNullable<zod.ZodString>;
|
|
40
41
|
parts: zod.ZodArray<zod.ZodObject<{
|
|
41
42
|
number: zod.ZodInt;
|
|
42
43
|
byteSize: zod.ZodInt;
|
|
@@ -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";
|
|
@@ -35,7 +36,7 @@ export declare const UploadResource: zod.ZodObject<{
|
|
|
35
36
|
policyId: zod.ZodString;
|
|
36
37
|
expiresAt: zod.z.ZodISODateTime;
|
|
37
38
|
status: zod.ZodString;
|
|
38
|
-
|
|
39
|
+
fileId: zod.ZodNullable<zod.ZodString>;
|
|
39
40
|
parts: zod.ZodArray<zod.ZodObject<{
|
|
40
41
|
number: zod.ZodInt;
|
|
41
42
|
byteSize: zod.ZodInt;
|
|
@@ -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";
|
|
@@ -36,6 +37,9 @@ export const UploadResource = zod.strictObject({
|
|
|
36
37
|
policyId: zod.string(),
|
|
37
38
|
expiresAt: zod.iso.datetime({ offset: true }),
|
|
38
39
|
status: zod.string(),
|
|
39
|
-
|
|
40
|
+
fileId: zod
|
|
41
|
+
.string()
|
|
42
|
+
.nullable()
|
|
43
|
+
.describe("The file the upload became. Null until the upload is complete."),
|
|
40
44
|
parts: zod.array(UploadPartResource),
|
|
41
45
|
});
|
|
@@ -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";
|
|
@@ -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";
|
|
@@ -4,17 +4,26 @@
|
|
|
4
4
|
* Leaflow Canopy API
|
|
5
5
|
* Canopy model inference, API keys, model catalogue, service enablement and recorded usage.
|
|
6
6
|
*
|
|
7
|
-
* Project inference is served on this host
|
|
7
|
+
* Project inference is served on this host at each protocol's own endpoints:
|
|
8
8
|
*
|
|
9
9
|
* - OpenAI: `/v1/chat/completions`, `/v1/responses` and `/v1/embeddings`; use
|
|
10
10
|
* `https://canopy.leaflow.cloud/v1` as the OpenAI SDK base URL.
|
|
11
11
|
* - Anthropic: `/v1/messages`; use `https://canopy.leaflow.cloud` as the Anthropic SDK base URL.
|
|
12
12
|
* - Gemini: `/v1beta/models/{model}:generateContent` and `:streamGenerateContent`.
|
|
13
13
|
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* the model
|
|
17
|
-
*
|
|
14
|
+
* Every chat model accepts all four chat protocols: Chat Completions, Responses, Messages and Gemini
|
|
15
|
+
* generateContent. A request is forwarded unchanged, apart from the model name and the credentials, when a
|
|
16
|
+
* provider of the model speaks the protocol it was sent in; otherwise it is translated into a protocol a
|
|
17
|
+
* provider speaks, and the response is translated back. Content that cannot be translated, such as a tool
|
|
18
|
+
* that runs on another provider's servers or a reference to a file stored with another provider, is refused
|
|
19
|
+
* with 400 rather than dropped. Reasoning settings such as `reasoning_effort` are passed through as written;
|
|
20
|
+
* a model's `capabilities` lists the values it accepts.
|
|
21
|
+
*
|
|
22
|
+
* Responses is stateless: `store` must be false, and a response cannot be retrieved after it is returned.
|
|
23
|
+
* Send the output items of a response back unchanged, in their order, as input to the next request.
|
|
24
|
+
*
|
|
25
|
+
* What a model does follows from its `input_modalities`, `output_modalities` and the media blocks of its
|
|
26
|
+
* `capabilities`. Embeddings, images, audio and videos are accepted for a model whose providers serve them.
|
|
18
27
|
*
|
|
19
28
|
* Management operations use `/api/v1`. The management model catalogue names how each model is billed in Billing;
|
|
20
29
|
* `/v1/models` returns the OpenAI model format with Canopy capabilities and parameter limits.
|
|
@@ -38,7 +47,7 @@
|
|
|
38
47
|
* - **The service is enabled before use.** A project enables the model platform once, through `create-service`; the forwarding endpoints refuse its requests until the service is `active`. Requests are then billed under the service's subscription by the tokens they use, at the rates Billing holds for each model's `billing`.
|
|
39
48
|
* OpenAPI spec version: 1.0.0
|
|
40
49
|
*/
|
|
41
|
-
import type { APIKeyResource, APIKeyUsageListResponseBody, ChatCompletion, ChatCompletionRequest, ConflictResponse, CreateAPIKeyRequestBody, CreateServiceRequestBody, CreateServiceResponseBody, CursorPageRequestResource, EmbeddingRequest, EmbeddingResponse, Error, GetUsageSummaryParams, GetUsageTimelineParams, GetVideoContentHeaders, InferenceError, IssuedAPIKeyResource, LengthAwarePageAPIKeyResource, ListApiKeysParams, ListRequestsParams, ListUsageByApiKeyParams, ListUsageByModelParams, Model, ModelList, ModelListResponseBody, ModelResource, ModelUsageListResponseBody, NativeRequest, NativeResponse, RequestResource, ResponseCreate,
|
|
50
|
+
import type { APIKeyResource, APIKeyUsageListResponseBody, ChatCompletion, ChatCompletionRequest, ConflictResponse, CreateAPIKeyRequestBody, CreateServiceRequestBody, CreateServiceResponseBody, CursorPageRequestResource, EmbeddingRequest, EmbeddingResponse, Error, GetUsageSummaryParams, GetUsageTimelineParams, GetVideoContentHeaders, InferenceError, IssuedAPIKeyResource, LengthAwarePageAPIKeyResource, ListApiKeysParams, ListRequestsParams, ListUsageByApiKeyParams, ListUsageByModelParams, Model, ModelList, ModelListResponseBody, ModelResource, ModelUsageListResponseBody, NativeRequest, NativeResponse, RequestResource, ResponseCreate, ResponseResource, ServiceResource, StreamGenerateContentParams, TotalsResource, UpdateAPIKeyRequestBody, UsageTimelineResponseBody, VideoCreateRequest, VideoTask } from "./models.js";
|
|
42
51
|
export type HTTPStatusCode1xx = 100 | 101 | 102 | 103;
|
|
43
52
|
export type HTTPStatusCode2xx = 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207;
|
|
44
53
|
export type HTTPStatusCode3xx = 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308;
|
|
@@ -138,50 +147,10 @@ export type createResponseResponseError = createResponseResponseDefault & {
|
|
|
138
147
|
export type createResponseResponse = createResponseResponseSuccess | createResponseResponseError;
|
|
139
148
|
export declare const getCreateResponseUrl: () => string;
|
|
140
149
|
/**
|
|
141
|
-
*
|
|
150
|
+
* Returns JSON, or Responses SSE events when `stream` is true. Accepted for every chat model, whichever protocol its providers speak. Responses are not stored, so `store` must be false; send the output items of a response back unchanged, in their order, as input to the next request. Reasoning items carry `encrypted_content`, which has to be returned as received. WebSocket clients connect with GET /v1/responses and send response.create events; one response may be active on a connection at a time, and `previous_response_id` continues a response created earlier on the same connection. The connection stays on its initial model and provider credential.
|
|
142
151
|
* @summary Create a model response
|
|
143
152
|
*/
|
|
144
153
|
export declare const createResponse: (responseCreate: ResponseCreate, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<createResponseResponse>;
|
|
145
|
-
export type getResponseResponse200 = {
|
|
146
|
-
data: ResponseResource;
|
|
147
|
-
status: 200;
|
|
148
|
-
};
|
|
149
|
-
export type getResponseResponseDefault = {
|
|
150
|
-
data: InferenceError;
|
|
151
|
-
status: Exclude<HTTPStatusCodes, 200>;
|
|
152
|
-
};
|
|
153
|
-
export type getResponseResponseSuccess = getResponseResponse200 & {
|
|
154
|
-
headers: Headers;
|
|
155
|
-
};
|
|
156
|
-
export type getResponseResponseError = getResponseResponseDefault & {
|
|
157
|
-
headers: Headers;
|
|
158
|
-
};
|
|
159
|
-
export type getResponseResponse = getResponseResponseSuccess | getResponseResponseError;
|
|
160
|
-
export declare const getGetResponseUrl: (response: string) => string;
|
|
161
|
-
/**
|
|
162
|
-
* @summary Get a stored response
|
|
163
|
-
*/
|
|
164
|
-
export declare const getResponse: (response: string, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<getResponseResponse>;
|
|
165
|
-
export type deleteResponseResponse200 = {
|
|
166
|
-
data: ResponseDeleted;
|
|
167
|
-
status: 200;
|
|
168
|
-
};
|
|
169
|
-
export type deleteResponseResponseDefault = {
|
|
170
|
-
data: InferenceError;
|
|
171
|
-
status: Exclude<HTTPStatusCodes, 200>;
|
|
172
|
-
};
|
|
173
|
-
export type deleteResponseResponseSuccess = deleteResponseResponse200 & {
|
|
174
|
-
headers: Headers;
|
|
175
|
-
};
|
|
176
|
-
export type deleteResponseResponseError = deleteResponseResponseDefault & {
|
|
177
|
-
headers: Headers;
|
|
178
|
-
};
|
|
179
|
-
export type deleteResponseResponse = deleteResponseResponseSuccess | deleteResponseResponseError;
|
|
180
|
-
export declare const getDeleteResponseUrl: (response: string) => string;
|
|
181
|
-
/**
|
|
182
|
-
* @summary Delete a stored response
|
|
183
|
-
*/
|
|
184
|
-
export declare const deleteResponse: (response: string, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<deleteResponseResponse>;
|
|
185
154
|
export type createChatCompletionResponse200ApplicationJson = {
|
|
186
155
|
data: ChatCompletion;
|
|
187
156
|
status: 200;
|
|
@@ -203,7 +172,7 @@ export type createChatCompletionResponseError = createChatCompletionResponseDefa
|
|
|
203
172
|
export type createChatCompletionResponse = createChatCompletionResponseSuccess | createChatCompletionResponseError;
|
|
204
173
|
export declare const getCreateChatCompletionUrl: () => string;
|
|
205
174
|
/**
|
|
206
|
-
* Authenticated project inference in the OpenAI Chat Completions protocol
|
|
175
|
+
* Authenticated project inference in the OpenAI Chat Completions protocol. Accepted for every chat model, whichever protocol its providers speak. Billing ownership comes only from the verified project token.
|
|
207
176
|
* @summary Create a chat completion
|
|
208
177
|
*/
|
|
209
178
|
export declare const createChatCompletion: (chatCompletionRequest: ChatCompletionRequest, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<createChatCompletionResponse>;
|
|
@@ -249,7 +218,7 @@ export type createMessageResponseError = createMessageResponseDefault & {
|
|
|
249
218
|
export type createMessageResponse = createMessageResponseSuccess | createMessageResponseError;
|
|
250
219
|
export declare const getCreateMessageUrl: () => string;
|
|
251
220
|
/**
|
|
252
|
-
* Authenticated project inference in the Anthropic Messages protocol
|
|
221
|
+
* Authenticated project inference in the Anthropic Messages protocol. Accepted for every chat model, whichever protocol its providers speak. Accepts the `x-api-key` header as well as Authorization. Streams Anthropic SSE events when `stream` is true.
|
|
253
222
|
* @summary Create a message
|
|
254
223
|
*/
|
|
255
224
|
export declare const createMessage: (nativeRequest: NativeRequest, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<createMessageResponse>;
|
|
@@ -270,7 +239,7 @@ export type generateContentResponseError = generateContentResponseDefault & {
|
|
|
270
239
|
export type generateContentResponse = generateContentResponseSuccess | generateContentResponseError;
|
|
271
240
|
export declare const getGenerateContentUrl: (model: string) => string;
|
|
272
241
|
/**
|
|
273
|
-
* Authenticated project inference in the Gemini protocol
|
|
242
|
+
* Authenticated project inference in the Gemini protocol. Accepted for every chat model, whichever protocol its providers speak. Accepts the `x-goog-api-key` header as well as Authorization.
|
|
274
243
|
* @summary Generate content
|
|
275
244
|
*/
|
|
276
245
|
export declare const generateContent: (model: string, nativeRequest: NativeRequest, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<generateContentResponse>;
|
|
@@ -92,7 +92,7 @@ export const getCreateResponseUrl = () => {
|
|
|
92
92
|
return `https://canopy.leaflow.cloud/v1/responses`;
|
|
93
93
|
};
|
|
94
94
|
/**
|
|
95
|
-
*
|
|
95
|
+
* Returns JSON, or Responses SSE events when `stream` is true. Accepted for every chat model, whichever protocol its providers speak. Responses are not stored, so `store` must be false; send the output items of a response back unchanged, in their order, as input to the next request. Reasoning items carry `encrypted_content`, which has to be returned as received. WebSocket clients connect with GET /v1/responses and send response.create events; one response may be active on a connection at a time, and `previous_response_id` continues a response created earlier on the same connection. The connection stays on its initial model and provider credential.
|
|
96
96
|
* @summary Create a model response
|
|
97
97
|
*/
|
|
98
98
|
export const createResponse = async (responseCreate, options, fetchFn) => {
|
|
@@ -121,41 +121,11 @@ export const createResponse = async (responseCreate, options, fetchFn) => {
|
|
|
121
121
|
const data = body;
|
|
122
122
|
return { data, status: res.status, headers: res.headers };
|
|
123
123
|
};
|
|
124
|
-
export const getGetResponseUrl = (response) => {
|
|
125
|
-
return `https://canopy.leaflow.cloud/v1/responses/${encodeURIComponent(String(response))}`;
|
|
126
|
-
};
|
|
127
|
-
/**
|
|
128
|
-
* @summary Get a stored response
|
|
129
|
-
*/
|
|
130
|
-
export const getResponse = async (response, options, fetchFn) => {
|
|
131
|
-
const res = await (fetchFn ?? fetch)(getGetResponseUrl(response), {
|
|
132
|
-
...options,
|
|
133
|
-
method: "GET",
|
|
134
|
-
});
|
|
135
|
-
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
136
|
-
const data = body ? JSON.parse(body) : {};
|
|
137
|
-
return { data, status: res.status, headers: res.headers };
|
|
138
|
-
};
|
|
139
|
-
export const getDeleteResponseUrl = (response) => {
|
|
140
|
-
return `https://canopy.leaflow.cloud/v1/responses/${encodeURIComponent(String(response))}`;
|
|
141
|
-
};
|
|
142
|
-
/**
|
|
143
|
-
* @summary Delete a stored response
|
|
144
|
-
*/
|
|
145
|
-
export const deleteResponse = async (response, options, fetchFn) => {
|
|
146
|
-
const res = await (fetchFn ?? fetch)(getDeleteResponseUrl(response), {
|
|
147
|
-
...options,
|
|
148
|
-
method: "DELETE",
|
|
149
|
-
});
|
|
150
|
-
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
151
|
-
const data = body ? JSON.parse(body) : {};
|
|
152
|
-
return { data, status: res.status, headers: res.headers };
|
|
153
|
-
};
|
|
154
124
|
export const getCreateChatCompletionUrl = () => {
|
|
155
125
|
return `https://canopy.leaflow.cloud/v1/chat/completions`;
|
|
156
126
|
};
|
|
157
127
|
/**
|
|
158
|
-
* Authenticated project inference in the OpenAI Chat Completions protocol
|
|
128
|
+
* Authenticated project inference in the OpenAI Chat Completions protocol. Accepted for every chat model, whichever protocol its providers speak. Billing ownership comes only from the verified project token.
|
|
159
129
|
* @summary Create a chat completion
|
|
160
130
|
*/
|
|
161
131
|
export const createChatCompletion = async (chatCompletionRequest, options, fetchFn) => {
|
|
@@ -221,7 +191,7 @@ export const getCreateMessageUrl = () => {
|
|
|
221
191
|
return `https://canopy.leaflow.cloud/v1/messages`;
|
|
222
192
|
};
|
|
223
193
|
/**
|
|
224
|
-
* Authenticated project inference in the Anthropic Messages protocol
|
|
194
|
+
* Authenticated project inference in the Anthropic Messages protocol. Accepted for every chat model, whichever protocol its providers speak. Accepts the `x-api-key` header as well as Authorization. Streams Anthropic SSE events when `stream` is true.
|
|
225
195
|
* @summary Create a message
|
|
226
196
|
*/
|
|
227
197
|
export const createMessage = async (nativeRequest, options, fetchFn) => {
|
|
@@ -254,7 +224,7 @@ export const getGenerateContentUrl = (model) => {
|
|
|
254
224
|
return `https://canopy.leaflow.cloud/v1beta/models/${encodeURIComponent(String(model))}:generateContent`;
|
|
255
225
|
};
|
|
256
226
|
/**
|
|
257
|
-
* Authenticated project inference in the Gemini protocol
|
|
227
|
+
* Authenticated project inference in the Gemini protocol. Accepted for every chat model, whichever protocol its providers speak. Accepts the `x-goog-api-key` header as well as Authorization.
|
|
258
228
|
* @summary Generate content
|
|
259
229
|
*/
|
|
260
230
|
export const generateContent = async (model, nativeRequest, options, fetchFn) => {
|