@leaflow/sdk 0.0.0-dev.523.gcaeef48 → 0.0.0-dev.529.g6a1b7de
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
package/dist/routes.js
CHANGED
|
@@ -643,8 +643,8 @@ export const routes = [
|
|
|
643
643
|
service: "assistant",
|
|
644
644
|
contract: "assistant",
|
|
645
645
|
method: "POST",
|
|
646
|
-
path: "/api/v1/
|
|
647
|
-
operationId: "upload-
|
|
646
|
+
path: "/api/v1/files",
|
|
647
|
+
operationId: "upload-file",
|
|
648
648
|
securityScheme: "ScopedToken",
|
|
649
649
|
upstreamUrl: "https://assistant.leaflow.cloud",
|
|
650
650
|
},
|
|
@@ -652,8 +652,8 @@ export const routes = [
|
|
|
652
652
|
service: "assistant",
|
|
653
653
|
contract: "assistant",
|
|
654
654
|
method: "QUERY",
|
|
655
|
-
path: "/api/v1/
|
|
656
|
-
operationId: "search-
|
|
655
|
+
path: "/api/v1/files",
|
|
656
|
+
operationId: "search-files",
|
|
657
657
|
securityScheme: "ScopedToken",
|
|
658
658
|
upstreamUrl: "https://assistant.leaflow.cloud",
|
|
659
659
|
},
|
|
@@ -661,8 +661,8 @@ export const routes = [
|
|
|
661
661
|
service: "assistant",
|
|
662
662
|
contract: "assistant",
|
|
663
663
|
method: "GET",
|
|
664
|
-
path: "/api/v1/
|
|
665
|
-
operationId: "get-
|
|
664
|
+
path: "/api/v1/files/{file}",
|
|
665
|
+
operationId: "get-file",
|
|
666
666
|
securityScheme: "ScopedToken",
|
|
667
667
|
upstreamUrl: "https://assistant.leaflow.cloud",
|
|
668
668
|
},
|
|
@@ -670,8 +670,8 @@ export const routes = [
|
|
|
670
670
|
service: "assistant",
|
|
671
671
|
contract: "assistant",
|
|
672
672
|
method: "PATCH",
|
|
673
|
-
path: "/api/v1/
|
|
674
|
-
operationId: "update-
|
|
673
|
+
path: "/api/v1/files/{file}",
|
|
674
|
+
operationId: "update-file",
|
|
675
675
|
securityScheme: "ScopedToken",
|
|
676
676
|
upstreamUrl: "https://assistant.leaflow.cloud",
|
|
677
677
|
},
|
|
@@ -679,8 +679,8 @@ export const routes = [
|
|
|
679
679
|
service: "assistant",
|
|
680
680
|
contract: "assistant",
|
|
681
681
|
method: "DELETE",
|
|
682
|
-
path: "/api/v1/
|
|
683
|
-
operationId: "delete-
|
|
682
|
+
path: "/api/v1/files/{file}",
|
|
683
|
+
operationId: "delete-file",
|
|
684
684
|
securityScheme: "ScopedToken",
|
|
685
685
|
upstreamUrl: "https://assistant.leaflow.cloud",
|
|
686
686
|
},
|
|
@@ -688,8 +688,8 @@ export const routes = [
|
|
|
688
688
|
service: "assistant",
|
|
689
689
|
contract: "assistant",
|
|
690
690
|
method: "GET",
|
|
691
|
-
path: "/api/v1/
|
|
692
|
-
operationId: "download-
|
|
691
|
+
path: "/api/v1/files/{file}:download",
|
|
692
|
+
operationId: "download-file",
|
|
693
693
|
securityScheme: "ScopedToken",
|
|
694
694
|
upstreamUrl: "https://assistant.leaflow.cloud",
|
|
695
695
|
},
|
|
@@ -774,6 +774,78 @@ export const routes = [
|
|
|
774
774
|
securityScheme: "ScopedToken",
|
|
775
775
|
upstreamUrl: "https://assistant.leaflow.cloud",
|
|
776
776
|
},
|
|
777
|
+
{
|
|
778
|
+
service: "assistant",
|
|
779
|
+
contract: "assistant",
|
|
780
|
+
method: "GET",
|
|
781
|
+
path: "/api/v1/artifacts",
|
|
782
|
+
operationId: "list-artifacts",
|
|
783
|
+
securityScheme: "ScopedToken",
|
|
784
|
+
upstreamUrl: "https://assistant.leaflow.cloud",
|
|
785
|
+
},
|
|
786
|
+
{
|
|
787
|
+
service: "assistant",
|
|
788
|
+
contract: "assistant",
|
|
789
|
+
method: "POST",
|
|
790
|
+
path: "/api/v1/artifacts",
|
|
791
|
+
operationId: "create-artifact",
|
|
792
|
+
securityScheme: "ScopedToken",
|
|
793
|
+
upstreamUrl: "https://assistant.leaflow.cloud",
|
|
794
|
+
},
|
|
795
|
+
{
|
|
796
|
+
service: "assistant",
|
|
797
|
+
contract: "assistant",
|
|
798
|
+
method: "GET",
|
|
799
|
+
path: "/api/v1/artifacts/{artifact}",
|
|
800
|
+
operationId: "get-artifact",
|
|
801
|
+
securityScheme: "ScopedToken",
|
|
802
|
+
upstreamUrl: "https://assistant.leaflow.cloud",
|
|
803
|
+
},
|
|
804
|
+
{
|
|
805
|
+
service: "assistant",
|
|
806
|
+
contract: "assistant",
|
|
807
|
+
method: "PATCH",
|
|
808
|
+
path: "/api/v1/artifacts/{artifact}",
|
|
809
|
+
operationId: "update-artifact",
|
|
810
|
+
securityScheme: "ScopedToken",
|
|
811
|
+
upstreamUrl: "https://assistant.leaflow.cloud",
|
|
812
|
+
},
|
|
813
|
+
{
|
|
814
|
+
service: "assistant",
|
|
815
|
+
contract: "assistant",
|
|
816
|
+
method: "DELETE",
|
|
817
|
+
path: "/api/v1/artifacts/{artifact}",
|
|
818
|
+
operationId: "delete-artifact",
|
|
819
|
+
securityScheme: "ScopedToken",
|
|
820
|
+
upstreamUrl: "https://assistant.leaflow.cloud",
|
|
821
|
+
},
|
|
822
|
+
{
|
|
823
|
+
service: "assistant",
|
|
824
|
+
contract: "assistant",
|
|
825
|
+
method: "GET",
|
|
826
|
+
path: "/api/v1/artifacts/{artifact}/versions",
|
|
827
|
+
operationId: "list-artifact-versions",
|
|
828
|
+
securityScheme: "ScopedToken",
|
|
829
|
+
upstreamUrl: "https://assistant.leaflow.cloud",
|
|
830
|
+
},
|
|
831
|
+
{
|
|
832
|
+
service: "assistant",
|
|
833
|
+
contract: "assistant",
|
|
834
|
+
method: "POST",
|
|
835
|
+
path: "/api/v1/artifacts/{artifact}/versions",
|
|
836
|
+
operationId: "create-artifact-version",
|
|
837
|
+
securityScheme: "ScopedToken",
|
|
838
|
+
upstreamUrl: "https://assistant.leaflow.cloud",
|
|
839
|
+
},
|
|
840
|
+
{
|
|
841
|
+
service: "assistant",
|
|
842
|
+
contract: "assistant",
|
|
843
|
+
method: "GET",
|
|
844
|
+
path: "/api/v1/artifacts/{artifact}/versions/{version}",
|
|
845
|
+
operationId: "get-artifact-version",
|
|
846
|
+
securityScheme: "ScopedToken",
|
|
847
|
+
upstreamUrl: "https://assistant.leaflow.cloud",
|
|
848
|
+
},
|
|
777
849
|
{
|
|
778
850
|
service: "assistant",
|
|
779
851
|
contract: "assistant",
|
|
@@ -1837,24 +1909,6 @@ export const routes = [
|
|
|
1837
1909
|
securityScheme: "ScopedToken",
|
|
1838
1910
|
upstreamUrl: "https://canopy.leaflow.cloud",
|
|
1839
1911
|
},
|
|
1840
|
-
{
|
|
1841
|
-
service: "canopy",
|
|
1842
|
-
contract: "canopy",
|
|
1843
|
-
method: "GET",
|
|
1844
|
-
path: "/v1/responses/{response}",
|
|
1845
|
-
operationId: "get-response",
|
|
1846
|
-
securityScheme: "ScopedToken",
|
|
1847
|
-
upstreamUrl: "https://canopy.leaflow.cloud",
|
|
1848
|
-
},
|
|
1849
|
-
{
|
|
1850
|
-
service: "canopy",
|
|
1851
|
-
contract: "canopy",
|
|
1852
|
-
method: "DELETE",
|
|
1853
|
-
path: "/v1/responses/{response}",
|
|
1854
|
-
operationId: "delete-response",
|
|
1855
|
-
securityScheme: "ScopedToken",
|
|
1856
|
-
upstreamUrl: "https://canopy.leaflow.cloud",
|
|
1857
|
-
},
|
|
1858
1912
|
{
|
|
1859
1913
|
service: "canopy",
|
|
1860
1914
|
contract: "canopy",
|
package/package.json
CHANGED
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by orval 🍺
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
* Leaflow Canopy API
|
|
5
|
-
* Canopy model inference, API keys, model catalogue, service enablement and recorded usage.
|
|
6
|
-
*
|
|
7
|
-
* Project inference is served on this host in each provider's own protocol:
|
|
8
|
-
*
|
|
9
|
-
* - OpenAI: `/v1/chat/completions`, `/v1/responses` and `/v1/embeddings`; use
|
|
10
|
-
* `https://canopy.leaflow.cloud/v1` as the OpenAI SDK base URL.
|
|
11
|
-
* - Anthropic: `/v1/messages`; use `https://canopy.leaflow.cloud` as the Anthropic SDK base URL.
|
|
12
|
-
* - Gemini: `/v1beta/models/{model}:generateContent` and `:streamGenerateContent`.
|
|
13
|
-
*
|
|
14
|
-
* Canopy does not convert between protocols. A request is accepted only for a model whose
|
|
15
|
-
* `supported_endpoints` lists the endpoint it was sent to, and it is forwarded unchanged except for
|
|
16
|
-
* the model name and the credentials. Reasoning settings such as `reasoning_effort` are passed
|
|
17
|
-
* through as written; a model's `capabilities` lists the values its upstream accepts.
|
|
18
|
-
*
|
|
19
|
-
* Management operations use `/api/v1`. The management model catalogue names how each model is billed in Billing;
|
|
20
|
-
* `/v1/models` returns the OpenAI model format with Canopy capabilities and parameter limits.
|
|
21
|
-
*
|
|
22
|
-
* ## Authentication
|
|
23
|
-
*
|
|
24
|
-
* Every request carries a scoped token; see the `bearerAuth` security scheme.
|
|
25
|
-
*
|
|
26
|
-
* Management and project inference accept the same verified IAM scoped token. The token is the
|
|
27
|
-
* sole billing project authority; `OpenAI-Project` and historical identity headers cannot
|
|
28
|
-
* override it. These endpoints do not accept a Canopy API key. The separate API-key gateway
|
|
29
|
-
* accepts Canopy API keys and serves the same endpoints.
|
|
30
|
-
*
|
|
31
|
-
* ## Conventions
|
|
32
|
-
*
|
|
33
|
-
* - **The plaintext of an API key is returned once.** The `secret` appears in the response that issues it and is returned by no other endpoint. A key that has been lost has to be revoked and reissued.
|
|
34
|
-
* - **Disabling and revoking are distinct.** A disabled key may be enabled again at any time, while a revocation is irreversible and is intended for a key that has been exposed. Neither removes the record, and the usage the key accrued remains readable.
|
|
35
|
-
* - **A usage query must carry a time range**, spanning no more than 31 days, or 400 days for the usage timeline. `from` and `to` carry a timezone offset, which the server does not infer.
|
|
36
|
-
* - **The request and response bodies do not appear in the ledger.** They are not recorded. Quote the `upstream_request_id` from the response when reporting a problem.
|
|
37
|
-
* - **Usage may be estimated.** The upstream provider does not report usage on every request. Where it does not, `usage_source` is `estimated` and the figures are derived from the character classes of the payload, to within roughly fifteen per cent.
|
|
38
|
-
* - **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
|
-
* OpenAPI spec version: 1.0.0
|
|
40
|
-
*/
|
|
41
|
-
import * as zod from "zod";
|
|
42
|
-
export declare const EndpointCapabilities: zod.ZodObject<{
|
|
43
|
-
function_calling: zod.ZodNullable<zod.ZodBoolean>;
|
|
44
|
-
structured_output: zod.ZodNullable<zod.ZodBoolean>;
|
|
45
|
-
reasoning: zod.ZodUnion<readonly [zod.ZodObject<{
|
|
46
|
-
supported: zod.ZodBoolean;
|
|
47
|
-
effort_levels: zod.ZodNullable<zod.ZodArray<zod.ZodString>>;
|
|
48
|
-
default_effort: zod.ZodNullable<zod.ZodString>;
|
|
49
|
-
modes: zod.ZodNullable<zod.ZodArray<zod.ZodString>>;
|
|
50
|
-
budget_tokens: zod.ZodNullable<zod.ZodObject<{
|
|
51
|
-
min: zod.ZodInt;
|
|
52
|
-
max: zod.ZodInt;
|
|
53
|
-
}, zod.z.core.$strict>>;
|
|
54
|
-
summary: zod.ZodNullable<zod.ZodArray<zod.ZodString>>;
|
|
55
|
-
}, zod.z.core.$strict>, zod.ZodNull]>;
|
|
56
|
-
image: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodObject<{
|
|
57
|
-
sizes: zod.ZodNullable<zod.ZodArray<zod.ZodString>>;
|
|
58
|
-
qualities: zod.ZodNullable<zod.ZodArray<zod.ZodString>>;
|
|
59
|
-
response_formats: zod.ZodNullable<zod.ZodArray<zod.ZodString>>;
|
|
60
|
-
max_n: zod.ZodNullable<zod.ZodInt>;
|
|
61
|
-
supports_stream: zod.ZodNullable<zod.ZodBoolean>;
|
|
62
|
-
}, zod.z.core.$strict>, zod.ZodNull]>>;
|
|
63
|
-
audio: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodObject<{
|
|
64
|
-
voices: zod.ZodNullable<zod.ZodArray<zod.ZodString>>;
|
|
65
|
-
formats: zod.ZodNullable<zod.ZodArray<zod.ZodString>>;
|
|
66
|
-
response_formats: zod.ZodNullable<zod.ZodArray<zod.ZodString>>;
|
|
67
|
-
max_input_bytes: zod.ZodNullable<zod.ZodInt>;
|
|
68
|
-
supports_stream: zod.ZodNullable<zod.ZodBoolean>;
|
|
69
|
-
}, zod.z.core.$strict>, zod.ZodNull]>>;
|
|
70
|
-
video: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodObject<{
|
|
71
|
-
duration_range: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodObject<{
|
|
72
|
-
min: zod.ZodInt;
|
|
73
|
-
max: zod.ZodInt;
|
|
74
|
-
step: zod.ZodInt;
|
|
75
|
-
}, zod.z.core.$strict>, zod.ZodNull]>>;
|
|
76
|
-
seconds: zod.ZodNullable<zod.ZodArray<zod.ZodInt>>;
|
|
77
|
-
sizes: zod.ZodNullable<zod.ZodArray<zod.ZodString>>;
|
|
78
|
-
resolutions: zod.ZodNullable<zod.ZodArray<zod.ZodString>>;
|
|
79
|
-
supports_input_reference: zod.ZodNullable<zod.ZodBoolean>;
|
|
80
|
-
supports_remix: zod.ZodNullable<zod.ZodBoolean>;
|
|
81
|
-
supports_characters: zod.ZodNullable<zod.ZodBoolean>;
|
|
82
|
-
}, zod.z.core.$strict>, zod.ZodNull]>>;
|
|
83
|
-
parameters: zod.ZodOptional<zod.ZodNullable<zod.ZodArray<zod.ZodObject<{
|
|
84
|
-
name: zod.ZodString;
|
|
85
|
-
description: zod.ZodString;
|
|
86
|
-
type: zod.ZodEnum<{
|
|
87
|
-
string: "string";
|
|
88
|
-
number: "number";
|
|
89
|
-
boolean: "boolean";
|
|
90
|
-
object: "object";
|
|
91
|
-
array: "array";
|
|
92
|
-
integer: "integer";
|
|
93
|
-
}>;
|
|
94
|
-
required: zod.ZodBoolean;
|
|
95
|
-
default: zod.ZodOptional<zod.ZodUnknown>;
|
|
96
|
-
values: zod.ZodOptional<zod.ZodNullable<zod.ZodArray<zod.ZodString>>>;
|
|
97
|
-
}, zod.z.core.$strict>>>>;
|
|
98
|
-
}, zod.z.core.$strict>;
|
|
99
|
-
export type EndpointCapabilities = zod.input<typeof EndpointCapabilities>;
|
|
100
|
-
export type EndpointCapabilitiesOutput = zod.output<typeof EndpointCapabilities>;
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by orval 🍺
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
* Leaflow Canopy API
|
|
5
|
-
* Canopy model inference, API keys, model catalogue, service enablement and recorded usage.
|
|
6
|
-
*
|
|
7
|
-
* Project inference is served on this host in each provider's own protocol:
|
|
8
|
-
*
|
|
9
|
-
* - OpenAI: `/v1/chat/completions`, `/v1/responses` and `/v1/embeddings`; use
|
|
10
|
-
* `https://canopy.leaflow.cloud/v1` as the OpenAI SDK base URL.
|
|
11
|
-
* - Anthropic: `/v1/messages`; use `https://canopy.leaflow.cloud` as the Anthropic SDK base URL.
|
|
12
|
-
* - Gemini: `/v1beta/models/{model}:generateContent` and `:streamGenerateContent`.
|
|
13
|
-
*
|
|
14
|
-
* Canopy does not convert between protocols. A request is accepted only for a model whose
|
|
15
|
-
* `supported_endpoints` lists the endpoint it was sent to, and it is forwarded unchanged except for
|
|
16
|
-
* the model name and the credentials. Reasoning settings such as `reasoning_effort` are passed
|
|
17
|
-
* through as written; a model's `capabilities` lists the values its upstream accepts.
|
|
18
|
-
*
|
|
19
|
-
* Management operations use `/api/v1`. The management model catalogue names how each model is billed in Billing;
|
|
20
|
-
* `/v1/models` returns the OpenAI model format with Canopy capabilities and parameter limits.
|
|
21
|
-
*
|
|
22
|
-
* ## Authentication
|
|
23
|
-
*
|
|
24
|
-
* Every request carries a scoped token; see the `bearerAuth` security scheme.
|
|
25
|
-
*
|
|
26
|
-
* Management and project inference accept the same verified IAM scoped token. The token is the
|
|
27
|
-
* sole billing project authority; `OpenAI-Project` and historical identity headers cannot
|
|
28
|
-
* override it. These endpoints do not accept a Canopy API key. The separate API-key gateway
|
|
29
|
-
* accepts Canopy API keys and serves the same endpoints.
|
|
30
|
-
*
|
|
31
|
-
* ## Conventions
|
|
32
|
-
*
|
|
33
|
-
* - **The plaintext of an API key is returned once.** The `secret` appears in the response that issues it and is returned by no other endpoint. A key that has been lost has to be revoked and reissued.
|
|
34
|
-
* - **Disabling and revoking are distinct.** A disabled key may be enabled again at any time, while a revocation is irreversible and is intended for a key that has been exposed. Neither removes the record, and the usage the key accrued remains readable.
|
|
35
|
-
* - **A usage query must carry a time range**, spanning no more than 31 days, or 400 days for the usage timeline. `from` and `to` carry a timezone offset, which the server does not infer.
|
|
36
|
-
* - **The request and response bodies do not appear in the ledger.** They are not recorded. Quote the `upstream_request_id` from the response when reporting a problem.
|
|
37
|
-
* - **Usage may be estimated.** The upstream provider does not report usage on every request. Where it does not, `usage_source` is `estimated` and the figures are derived from the character classes of the payload, to within roughly fifteen per cent.
|
|
38
|
-
* - **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
|
-
* OpenAPI spec version: 1.0.0
|
|
40
|
-
*/
|
|
41
|
-
import * as zod from "zod";
|
|
42
|
-
import { AudioCapabilities } from "./audioCapabilities.zod.js";
|
|
43
|
-
import { ImageCapabilities } from "./imageCapabilities.zod.js";
|
|
44
|
-
import { ModelParameter } from "./modelParameter.zod.js";
|
|
45
|
-
import { ReasoningCapabilities } from "./reasoningCapabilities.zod.js";
|
|
46
|
-
import { VideoCapabilities } from "./videoCapabilities.zod.js";
|
|
47
|
-
export const EndpointCapabilities = zod.strictObject({
|
|
48
|
-
function_calling: zod.boolean().nullable(),
|
|
49
|
-
structured_output: zod.boolean().nullable(),
|
|
50
|
-
reasoning: zod.union([ReasoningCapabilities, zod.null()]),
|
|
51
|
-
image: zod
|
|
52
|
-
.union([ImageCapabilities, zod.null()])
|
|
53
|
-
.optional()
|
|
54
|
-
.describe("Present on image generation and edit endpoints. Null or absent elsewhere."),
|
|
55
|
-
audio: zod
|
|
56
|
-
.union([AudioCapabilities, zod.null()])
|
|
57
|
-
.optional()
|
|
58
|
-
.describe("Present on speech and transcription endpoints. Null or absent elsewhere."),
|
|
59
|
-
video: zod
|
|
60
|
-
.union([VideoCapabilities, zod.null()])
|
|
61
|
-
.optional()
|
|
62
|
-
.describe("Present on the videos endpoint. Null or absent elsewhere."),
|
|
63
|
-
parameters: zod
|
|
64
|
-
.array(ModelParameter)
|
|
65
|
-
.nullish()
|
|
66
|
-
.describe("Non-standard request fields this endpoint accepts, sent at the top level of the request body. Null or absent means none are declared."),
|
|
67
|
-
});
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by orval 🍺
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
* Leaflow Canopy API
|
|
5
|
-
* Canopy model inference, API keys, model catalogue, service enablement and recorded usage.
|
|
6
|
-
*
|
|
7
|
-
* Project inference is served on this host in each provider's own protocol:
|
|
8
|
-
*
|
|
9
|
-
* - OpenAI: `/v1/chat/completions`, `/v1/responses` and `/v1/embeddings`; use
|
|
10
|
-
* `https://canopy.leaflow.cloud/v1` as the OpenAI SDK base URL.
|
|
11
|
-
* - Anthropic: `/v1/messages`; use `https://canopy.leaflow.cloud` as the Anthropic SDK base URL.
|
|
12
|
-
* - Gemini: `/v1beta/models/{model}:generateContent` and `:streamGenerateContent`.
|
|
13
|
-
*
|
|
14
|
-
* Canopy does not convert between protocols. A request is accepted only for a model whose
|
|
15
|
-
* `supported_endpoints` lists the endpoint it was sent to, and it is forwarded unchanged except for
|
|
16
|
-
* the model name and the credentials. Reasoning settings such as `reasoning_effort` are passed
|
|
17
|
-
* through as written; a model's `capabilities` lists the values its upstream accepts.
|
|
18
|
-
*
|
|
19
|
-
* Management operations use `/api/v1`. The management model catalogue names how each model is billed in Billing;
|
|
20
|
-
* `/v1/models` returns the OpenAI model format with Canopy capabilities and parameter limits.
|
|
21
|
-
*
|
|
22
|
-
* ## Authentication
|
|
23
|
-
*
|
|
24
|
-
* Every request carries a scoped token; see the `bearerAuth` security scheme.
|
|
25
|
-
*
|
|
26
|
-
* Management and project inference accept the same verified IAM scoped token. The token is the
|
|
27
|
-
* sole billing project authority; `OpenAI-Project` and historical identity headers cannot
|
|
28
|
-
* override it. These endpoints do not accept a Canopy API key. The separate API-key gateway
|
|
29
|
-
* accepts Canopy API keys and serves the same endpoints.
|
|
30
|
-
*
|
|
31
|
-
* ## Conventions
|
|
32
|
-
*
|
|
33
|
-
* - **The plaintext of an API key is returned once.** The `secret` appears in the response that issues it and is returned by no other endpoint. A key that has been lost has to be revoked and reissued.
|
|
34
|
-
* - **Disabling and revoking are distinct.** A disabled key may be enabled again at any time, while a revocation is irreversible and is intended for a key that has been exposed. Neither removes the record, and the usage the key accrued remains readable.
|
|
35
|
-
* - **A usage query must carry a time range**, spanning no more than 31 days, or 400 days for the usage timeline. `from` and `to` carry a timezone offset, which the server does not infer.
|
|
36
|
-
* - **The request and response bodies do not appear in the ledger.** They are not recorded. Quote the `upstream_request_id` from the response when reporting a problem.
|
|
37
|
-
* - **Usage may be estimated.** The upstream provider does not report usage on every request. Where it does not, `usage_source` is `estimated` and the figures are derived from the character classes of the payload, to within roughly fifteen per cent.
|
|
38
|
-
* - **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
|
-
* OpenAPI spec version: 1.0.0
|
|
40
|
-
*/
|
|
41
|
-
import * as zod from "zod";
|
|
42
|
-
export declare const ModelEndpoint: zod.ZodEnum<{
|
|
43
|
-
"/v1/chat/completions": "/v1/chat/completions";
|
|
44
|
-
"/v1/responses": "/v1/responses";
|
|
45
|
-
"/v1/embeddings": "/v1/embeddings";
|
|
46
|
-
"/v1/messages": "/v1/messages";
|
|
47
|
-
"/v1beta/models/{model}:generateContent": "/v1beta/models/{model}:generateContent";
|
|
48
|
-
"/v1/images/generations": "/v1/images/generations";
|
|
49
|
-
"/v1/images/edits": "/v1/images/edits";
|
|
50
|
-
"/v1/audio/transcriptions": "/v1/audio/transcriptions";
|
|
51
|
-
"/v1/audio/translations": "/v1/audio/translations";
|
|
52
|
-
"/v1/audio/speech": "/v1/audio/speech";
|
|
53
|
-
"/v1/realtime": "/v1/realtime";
|
|
54
|
-
"/v1/completions": "/v1/completions";
|
|
55
|
-
"/v1/rerank": "/v1/rerank";
|
|
56
|
-
"/v1/moderations": "/v1/moderations";
|
|
57
|
-
"/v1/images/variations": "/v1/images/variations";
|
|
58
|
-
"/v1/files": "/v1/files";
|
|
59
|
-
"/v1/uploads": "/v1/uploads";
|
|
60
|
-
"/v1/batches": "/v1/batches";
|
|
61
|
-
"/v1/fine_tuning/jobs": "/v1/fine_tuning/jobs";
|
|
62
|
-
"/v1/assistants": "/v1/assistants";
|
|
63
|
-
"/v1/threads": "/v1/threads";
|
|
64
|
-
"/v1/vector_stores": "/v1/vector_stores";
|
|
65
|
-
"/v1/containers": "/v1/containers";
|
|
66
|
-
"/v1/videos": "/v1/videos";
|
|
67
|
-
}>;
|
|
68
|
-
export type ModelEndpoint = zod.input<typeof ModelEndpoint>;
|
|
69
|
-
export type ModelEndpointOutput = zod.output<typeof ModelEndpoint>;
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by orval 🍺
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
* Leaflow Canopy API
|
|
5
|
-
* Canopy model inference, API keys, model catalogue, service enablement and recorded usage.
|
|
6
|
-
*
|
|
7
|
-
* Project inference is served on this host in each provider's own protocol:
|
|
8
|
-
*
|
|
9
|
-
* - OpenAI: `/v1/chat/completions`, `/v1/responses` and `/v1/embeddings`; use
|
|
10
|
-
* `https://canopy.leaflow.cloud/v1` as the OpenAI SDK base URL.
|
|
11
|
-
* - Anthropic: `/v1/messages`; use `https://canopy.leaflow.cloud` as the Anthropic SDK base URL.
|
|
12
|
-
* - Gemini: `/v1beta/models/{model}:generateContent` and `:streamGenerateContent`.
|
|
13
|
-
*
|
|
14
|
-
* Canopy does not convert between protocols. A request is accepted only for a model whose
|
|
15
|
-
* `supported_endpoints` lists the endpoint it was sent to, and it is forwarded unchanged except for
|
|
16
|
-
* the model name and the credentials. Reasoning settings such as `reasoning_effort` are passed
|
|
17
|
-
* through as written; a model's `capabilities` lists the values its upstream accepts.
|
|
18
|
-
*
|
|
19
|
-
* Management operations use `/api/v1`. The management model catalogue names how each model is billed in Billing;
|
|
20
|
-
* `/v1/models` returns the OpenAI model format with Canopy capabilities and parameter limits.
|
|
21
|
-
*
|
|
22
|
-
* ## Authentication
|
|
23
|
-
*
|
|
24
|
-
* Every request carries a scoped token; see the `bearerAuth` security scheme.
|
|
25
|
-
*
|
|
26
|
-
* Management and project inference accept the same verified IAM scoped token. The token is the
|
|
27
|
-
* sole billing project authority; `OpenAI-Project` and historical identity headers cannot
|
|
28
|
-
* override it. These endpoints do not accept a Canopy API key. The separate API-key gateway
|
|
29
|
-
* accepts Canopy API keys and serves the same endpoints.
|
|
30
|
-
*
|
|
31
|
-
* ## Conventions
|
|
32
|
-
*
|
|
33
|
-
* - **The plaintext of an API key is returned once.** The `secret` appears in the response that issues it and is returned by no other endpoint. A key that has been lost has to be revoked and reissued.
|
|
34
|
-
* - **Disabling and revoking are distinct.** A disabled key may be enabled again at any time, while a revocation is irreversible and is intended for a key that has been exposed. Neither removes the record, and the usage the key accrued remains readable.
|
|
35
|
-
* - **A usage query must carry a time range**, spanning no more than 31 days, or 400 days for the usage timeline. `from` and `to` carry a timezone offset, which the server does not infer.
|
|
36
|
-
* - **The request and response bodies do not appear in the ledger.** They are not recorded. Quote the `upstream_request_id` from the response when reporting a problem.
|
|
37
|
-
* - **Usage may be estimated.** The upstream provider does not report usage on every request. Where it does not, `usage_source` is `estimated` and the figures are derived from the character classes of the payload, to within roughly fifteen per cent.
|
|
38
|
-
* - **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
|
-
* OpenAPI spec version: 1.0.0
|
|
40
|
-
*/
|
|
41
|
-
import * as zod from "zod";
|
|
42
|
-
export const ModelEndpoint = zod.enum([
|
|
43
|
-
"/v1/chat/completions",
|
|
44
|
-
"/v1/responses",
|
|
45
|
-
"/v1/embeddings",
|
|
46
|
-
"/v1/messages",
|
|
47
|
-
"/v1beta/models/{model}:generateContent",
|
|
48
|
-
"/v1/images/generations",
|
|
49
|
-
"/v1/images/edits",
|
|
50
|
-
"/v1/audio/transcriptions",
|
|
51
|
-
"/v1/audio/translations",
|
|
52
|
-
"/v1/audio/speech",
|
|
53
|
-
"/v1/realtime",
|
|
54
|
-
"/v1/completions",
|
|
55
|
-
"/v1/rerank",
|
|
56
|
-
"/v1/moderations",
|
|
57
|
-
"/v1/images/variations",
|
|
58
|
-
"/v1/files",
|
|
59
|
-
"/v1/uploads",
|
|
60
|
-
"/v1/batches",
|
|
61
|
-
"/v1/fine_tuning/jobs",
|
|
62
|
-
"/v1/assistants",
|
|
63
|
-
"/v1/threads",
|
|
64
|
-
"/v1/vector_stores",
|
|
65
|
-
"/v1/containers",
|
|
66
|
-
"/v1/videos",
|
|
67
|
-
]);
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by orval 🍺
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
* Leaflow Canopy API
|
|
5
|
-
* Canopy model inference, API keys, model catalogue, service enablement and recorded usage.
|
|
6
|
-
*
|
|
7
|
-
* Project inference is served on this host in each provider's own protocol:
|
|
8
|
-
*
|
|
9
|
-
* - OpenAI: `/v1/chat/completions`, `/v1/responses` and `/v1/embeddings`; use
|
|
10
|
-
* `https://canopy.leaflow.cloud/v1` as the OpenAI SDK base URL.
|
|
11
|
-
* - Anthropic: `/v1/messages`; use `https://canopy.leaflow.cloud` as the Anthropic SDK base URL.
|
|
12
|
-
* - Gemini: `/v1beta/models/{model}:generateContent` and `:streamGenerateContent`.
|
|
13
|
-
*
|
|
14
|
-
* Canopy does not convert between protocols. A request is accepted only for a model whose
|
|
15
|
-
* `supported_endpoints` lists the endpoint it was sent to, and it is forwarded unchanged except for
|
|
16
|
-
* the model name and the credentials. Reasoning settings such as `reasoning_effort` are passed
|
|
17
|
-
* through as written; a model's `capabilities` lists the values its upstream accepts.
|
|
18
|
-
*
|
|
19
|
-
* Management operations use `/api/v1`. The management model catalogue names how each model is billed in Billing;
|
|
20
|
-
* `/v1/models` returns the OpenAI model format with Canopy capabilities and parameter limits.
|
|
21
|
-
*
|
|
22
|
-
* ## Authentication
|
|
23
|
-
*
|
|
24
|
-
* Every request carries a scoped token; see the `bearerAuth` security scheme.
|
|
25
|
-
*
|
|
26
|
-
* Management and project inference accept the same verified IAM scoped token. The token is the
|
|
27
|
-
* sole billing project authority; `OpenAI-Project` and historical identity headers cannot
|
|
28
|
-
* override it. These endpoints do not accept a Canopy API key. The separate API-key gateway
|
|
29
|
-
* accepts Canopy API keys and serves the same endpoints.
|
|
30
|
-
*
|
|
31
|
-
* ## Conventions
|
|
32
|
-
*
|
|
33
|
-
* - **The plaintext of an API key is returned once.** The `secret` appears in the response that issues it and is returned by no other endpoint. A key that has been lost has to be revoked and reissued.
|
|
34
|
-
* - **Disabling and revoking are distinct.** A disabled key may be enabled again at any time, while a revocation is irreversible and is intended for a key that has been exposed. Neither removes the record, and the usage the key accrued remains readable.
|
|
35
|
-
* - **A usage query must carry a time range**, spanning no more than 31 days, or 400 days for the usage timeline. `from` and `to` carry a timezone offset, which the server does not infer.
|
|
36
|
-
* - **The request and response bodies do not appear in the ledger.** They are not recorded. Quote the `upstream_request_id` from the response when reporting a problem.
|
|
37
|
-
* - **Usage may be estimated.** The upstream provider does not report usage on every request. Where it does not, `usage_source` is `estimated` and the figures are derived from the character classes of the payload, to within roughly fifteen per cent.
|
|
38
|
-
* - **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
|
-
* OpenAPI spec version: 1.0.0
|
|
40
|
-
*/
|
|
41
|
-
import * as zod from "zod";
|
|
42
|
-
export declare const ResponseDeleted: zod.ZodObject<{
|
|
43
|
-
id: zod.ZodString;
|
|
44
|
-
object: zod.ZodString;
|
|
45
|
-
deleted: zod.ZodBoolean;
|
|
46
|
-
}, zod.z.core.$strict>;
|
|
47
|
-
export type ResponseDeleted = zod.input<typeof ResponseDeleted>;
|
|
48
|
-
export type ResponseDeletedOutput = zod.output<typeof ResponseDeleted>;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by orval 🍺
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
* Leaflow Canopy API
|
|
5
|
-
* Canopy model inference, API keys, model catalogue, service enablement and recorded usage.
|
|
6
|
-
*
|
|
7
|
-
* Project inference is served on this host in each provider's own protocol:
|
|
8
|
-
*
|
|
9
|
-
* - OpenAI: `/v1/chat/completions`, `/v1/responses` and `/v1/embeddings`; use
|
|
10
|
-
* `https://canopy.leaflow.cloud/v1` as the OpenAI SDK base URL.
|
|
11
|
-
* - Anthropic: `/v1/messages`; use `https://canopy.leaflow.cloud` as the Anthropic SDK base URL.
|
|
12
|
-
* - Gemini: `/v1beta/models/{model}:generateContent` and `:streamGenerateContent`.
|
|
13
|
-
*
|
|
14
|
-
* Canopy does not convert between protocols. A request is accepted only for a model whose
|
|
15
|
-
* `supported_endpoints` lists the endpoint it was sent to, and it is forwarded unchanged except for
|
|
16
|
-
* the model name and the credentials. Reasoning settings such as `reasoning_effort` are passed
|
|
17
|
-
* through as written; a model's `capabilities` lists the values its upstream accepts.
|
|
18
|
-
*
|
|
19
|
-
* Management operations use `/api/v1`. The management model catalogue names how each model is billed in Billing;
|
|
20
|
-
* `/v1/models` returns the OpenAI model format with Canopy capabilities and parameter limits.
|
|
21
|
-
*
|
|
22
|
-
* ## Authentication
|
|
23
|
-
*
|
|
24
|
-
* Every request carries a scoped token; see the `bearerAuth` security scheme.
|
|
25
|
-
*
|
|
26
|
-
* Management and project inference accept the same verified IAM scoped token. The token is the
|
|
27
|
-
* sole billing project authority; `OpenAI-Project` and historical identity headers cannot
|
|
28
|
-
* override it. These endpoints do not accept a Canopy API key. The separate API-key gateway
|
|
29
|
-
* accepts Canopy API keys and serves the same endpoints.
|
|
30
|
-
*
|
|
31
|
-
* ## Conventions
|
|
32
|
-
*
|
|
33
|
-
* - **The plaintext of an API key is returned once.** The `secret` appears in the response that issues it and is returned by no other endpoint. A key that has been lost has to be revoked and reissued.
|
|
34
|
-
* - **Disabling and revoking are distinct.** A disabled key may be enabled again at any time, while a revocation is irreversible and is intended for a key that has been exposed. Neither removes the record, and the usage the key accrued remains readable.
|
|
35
|
-
* - **A usage query must carry a time range**, spanning no more than 31 days, or 400 days for the usage timeline. `from` and `to` carry a timezone offset, which the server does not infer.
|
|
36
|
-
* - **The request and response bodies do not appear in the ledger.** They are not recorded. Quote the `upstream_request_id` from the response when reporting a problem.
|
|
37
|
-
* - **Usage may be estimated.** The upstream provider does not report usage on every request. Where it does not, `usage_source` is `estimated` and the figures are derived from the character classes of the payload, to within roughly fifteen per cent.
|
|
38
|
-
* - **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
|
-
* OpenAPI spec version: 1.0.0
|
|
40
|
-
*/
|
|
41
|
-
import * as zod from "zod";
|
|
42
|
-
export const ResponseDeleted = zod.strictObject({
|
|
43
|
-
id: zod.string(),
|
|
44
|
-
object: zod.string(),
|
|
45
|
-
deleted: zod.boolean(),
|
|
46
|
-
});
|