@leaflow/sdk 0.209.0 → 0.211.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assistant/v1/generated/functions.d.ts +243 -67
- package/dist/assistant/v1/generated/functions.js +248 -44
- package/dist/assistant/v1/generated/models.d.ts +302 -230
- package/dist/assistant/v1/generated/models.js +9 -19
- package/dist/assistant/v1/generated/schemas.zod.d.ts +119 -29
- package/dist/assistant/v1/generated/schemas.zod.js +139 -29
- package/dist/assistant/v1/generated/validators/answerQuestionRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/answerQuestionRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/approvalMode.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/approvalMode.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/artifactListResponseBody.zod.d.ts +68 -0
- package/dist/assistant/v1/generated/validators/artifactListResponseBody.zod.js +35 -0
- package/dist/assistant/v1/generated/validators/artifactResource.zod.d.ts +65 -0
- package/dist/assistant/v1/generated/validators/{attachmentResource.zod.js → artifactResource.zod.js} +13 -14
- package/dist/assistant/v1/generated/validators/artifactVersionListResponseBody.zod.d.ts +61 -0
- package/dist/assistant/v1/generated/validators/artifactVersionListResponseBody.zod.js +35 -0
- package/dist/assistant/v1/generated/validators/{uploadedResource.zod.d.ts → artifactVersionResource.zod.d.ts} +30 -16
- package/dist/assistant/v1/generated/validators/{attachmentFileResource.zod.js → artifactVersionResource.zod.js} +23 -16
- package/dist/assistant/v1/generated/validators/bindingCodeResponseBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/bindingCodeResponseBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/bindingResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/bindingResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/channelResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/channelResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/channelWithSecretResponseBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/channelWithSecretResponseBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/checkSenderParams.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/checkSenderParams.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/choiceResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/choiceResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/clientActionRequest.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/clientActionRequest.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/clientContextPart.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/clientContextPart.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/clientContextRequest.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/clientContextRequest.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/clientFunctionRequest.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/clientFunctionRequest.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/completeUploadRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/completeUploadRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/contextUsageResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/contextUsageResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/createArtifactRequestBody.zod.d.ts +38 -0
- package/dist/assistant/v1/generated/validators/createArtifactRequestBody.zod.js +36 -0
- package/dist/assistant/v1/generated/validators/createArtifactVersionRequestBody.zod.d.ts +36 -0
- package/dist/assistant/v1/generated/validators/createArtifactVersionRequestBody.zod.js +34 -0
- package/dist/assistant/v1/generated/validators/createChannelRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/createChannelRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/createFolderRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/createFolderRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/createTaskRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/createTaskRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/createThreadRequestBody.zod.d.ts +5 -4
- package/dist/assistant/v1/generated/validators/createThreadRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/createThreadResponseBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/createThreadResponseBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/createUploadRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/createUploadRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/credentialFieldResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/credentialFieldResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/cursorPagination.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/cursorPagination.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/decideToolCallsRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/decideToolCallsRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/defaultModelResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/defaultModelResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/error.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/error.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/errorStatus.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/errorStatus.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/fieldViolation.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/fieldViolation.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/{attachmentCountsResource.zod.d.ts → fileCountsResource.zod.d.ts} +7 -6
- package/dist/assistant/v1/generated/validators/{attachmentCountsResource.zod.js → fileCountsResource.zod.js} +5 -4
- package/dist/assistant/v1/generated/validators/fileDiffResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/fileDiffResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/{attachmentListResponseBody.zod.d.ts → fileListResponseBody.zod.d.ts} +15 -14
- package/dist/assistant/v1/generated/validators/{attachmentListResponseBody.zod.js → fileListResponseBody.zod.js} +9 -8
- package/dist/assistant/v1/generated/validators/{attachmentFileResource.zod.d.ts → fileResource.zod.d.ts} +14 -13
- package/dist/assistant/v1/generated/validators/{uploadedResource.zod.js → fileResource.zod.js} +25 -15
- package/dist/assistant/v1/generated/validators/folderCountsResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/folderCountsResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/folderListResponseBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/folderListResponseBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/folderResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/folderResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/itemSourceResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/itemSourceResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/lastTurnResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/lastTurnResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/lengthAwarePageBindingResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/lengthAwarePageBindingResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/lengthAwarePageChannelResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/lengthAwarePageChannelResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/listArtifactVersionsParams.zod.d.ts +39 -0
- package/dist/assistant/v1/generated/validators/listArtifactVersionsParams.zod.js +41 -0
- package/dist/assistant/v1/generated/validators/listArtifactsParams.zod.d.ts +41 -0
- package/dist/assistant/v1/generated/validators/listArtifactsParams.zod.js +39 -0
- package/dist/assistant/v1/generated/validators/listBindingsParams.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/listBindingsParams.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/listChannelRejectionsParams.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/listChannelRejectionsParams.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/listChannelsParams.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/listChannelsParams.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/listTaskRunsParams.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/listTaskRunsParams.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/listThreadItemsParams.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/listThreadItemsParams.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/listThreadMessagesParams.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/listThreadMessagesParams.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/listThreadTurnsParams.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/listThreadTurnsParams.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/loginResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/loginResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/memoryListResponseBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/memoryListResponseBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/memoryResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/memoryResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/messagePart.zod.d.ts +5 -4
- package/dist/assistant/v1/generated/validators/messagePart.zod.js +7 -6
- package/dist/assistant/v1/generated/validators/moveFolderRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/moveFolderRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/offsetPagination.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/offsetPagination.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/partResource.zod.d.ts +20 -4
- package/dist/assistant/v1/generated/validators/partResource.zod.js +8 -7
- package/dist/assistant/v1/generated/validators/pendingActionResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/pendingActionResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/placeThreadRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/placeThreadRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/platformListResponseBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/platformListResponseBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/platformResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/platformResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/presentationResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/presentationResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/putUploadPartHeaders.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/putUploadPartHeaders.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/putUploadPartParams.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/putUploadPartParams.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/questionResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/questionResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/reasoningEffort.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/reasoningEffort.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/rejectionListResponseBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/rejectionListResponseBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/rejectionResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/rejectionResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/resumeThreadRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/resumeThreadRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/revertRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/revertRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/revertedCountResponseBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/revertedCountResponseBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/rotateSecretRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/rotateSecretRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/{searchAttachmentsRequestBody.zod.d.ts → searchFilesRequestBody.zod.d.ts} +12 -11
- package/dist/assistant/v1/generated/validators/{searchAttachmentsRequestBody.zod.js → searchFilesRequestBody.zod.js} +17 -16
- package/dist/assistant/v1/generated/validators/searchTasksRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/searchTasksRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/searchThreadsRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/searchThreadsRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/sendMessageRequestBody.zod.d.ts +5 -4
- package/dist/assistant/v1/generated/validators/sendMessageRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/sendMessageResponseBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/sendMessageResponseBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/senderCheckResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/senderCheckResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/settingsResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/settingsResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/skillEnabledRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/skillEnabledRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/skillListResponseBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/skillListResponseBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/skillRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/skillRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/skillResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/skillResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/subagentCountResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/subagentCountResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/taskAction.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/taskAction.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/taskListResponseBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/taskListResponseBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/taskResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/taskResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/taskRunEvent.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/taskRunEvent.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/taskRunListResponseBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/taskRunListResponseBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/taskRunResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/taskRunResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/taskTrigger.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/taskTrigger.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/threadCountsResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/threadCountsResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/threadItemListResponseBody.zod.d.ts +120 -29
- package/dist/assistant/v1/generated/validators/threadItemListResponseBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/threadItemResource.zod.d.ts +62 -16
- package/dist/assistant/v1/generated/validators/threadItemResource.zod.js +5 -6
- package/dist/assistant/v1/generated/validators/threadListResponseBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/threadListResponseBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/threadMessageListResponseBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/threadMessageListResponseBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/threadMessageResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/threadMessageResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/threadResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/threadResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/threadStatus.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/threadStatus.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/threadTurnListResponseBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/threadTurnListResponseBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/threadTurnResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/threadTurnResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/todoResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/todoResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/toolCallResource.zod.d.ts +46 -3
- package/dist/assistant/v1/generated/validators/toolCallResource.zod.js +12 -3
- package/dist/assistant/v1/generated/validators/toolResultRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/toolResultRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/turnStartedResponseBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/turnStartedResponseBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/turnStatus.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/turnStatus.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/turnType.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/turnType.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/{attachmentResource.zod.d.ts → updateArtifactRequestBody.zod.d.ts} +9 -16
- package/dist/assistant/v1/generated/validators/updateArtifactRequestBody.zod.js +34 -0
- package/dist/assistant/v1/generated/validators/updateChannelRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/updateChannelRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/{updateAttachmentRequestBody.zod.d.ts → updateFileRequestBody.zod.d.ts} +8 -7
- package/dist/assistant/v1/generated/validators/{updateAttachmentRequestBody.zod.js → updateFileRequestBody.zod.js} +7 -6
- package/dist/assistant/v1/generated/validators/updateFolderRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/updateFolderRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/updateSettingsRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/updateSettingsRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/updateTaskRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/updateTaskRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/updateThreadRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/updateThreadRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/updateUploadRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/updateUploadRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/uploadConfigurationResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/uploadConfigurationResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/{uploadAttachmentParams.zod.d.ts → uploadFileParams.zod.d.ts} +8 -7
- package/dist/assistant/v1/generated/validators/{uploadAttachmentParams.zod.js → uploadFileParams.zod.js} +7 -6
- package/dist/assistant/v1/generated/validators/uploadListResponseBody.zod.d.ts +5 -4
- package/dist/assistant/v1/generated/validators/uploadListResponseBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/uploadPartResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/uploadPartResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/uploadResource.zod.d.ts +5 -4
- package/dist/assistant/v1/generated/validators/uploadResource.zod.js +8 -4
- package/dist/assistant/v1/generated/validators/usage.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/usage.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/verifyCodeRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/verifyCodeRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/webhookSecretResponseBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/webhookSecretResponseBody.zod.js +4 -3
- package/dist/canopy/v1/generated/functions.d.ts +73 -1
- package/dist/canopy/v1/generated/functions.js +92 -6
- package/dist/canopy/v1/generated/models.d.ts +148 -12
- package/dist/canopy/v1/generated/models.js +13 -0
- package/dist/canopy/v1/generated/schemas.zod.d.ts +49 -0
- package/dist/canopy/v1/generated/schemas.zod.js +28 -0
- package/dist/canopy/v1/generated/validators/cursorPageRequestResource.zod.d.ts +10 -0
- package/dist/canopy/v1/generated/validators/getVideoContentHeaders.zod.d.ts +46 -0
- package/dist/canopy/v1/generated/validators/getVideoContentHeaders.zod.js +44 -0
- package/dist/canopy/v1/generated/validators/mediaUsageDetails.zod.d.ts +61 -0
- package/dist/canopy/v1/generated/validators/mediaUsageDetails.zod.js +67 -0
- package/dist/canopy/v1/generated/validators/requestResource.zod.d.ts +10 -0
- package/dist/canopy/v1/generated/validators/requestResource.zod.js +2 -0
- package/dist/canopy/v1/generated/validators/videoCreateRequest.zod.d.ts +67 -0
- package/dist/canopy/v1/generated/validators/videoCreateRequest.zod.js +70 -0
- package/dist/canopy/v1/generated/validators/videoReferenceMedia.zod.d.ts +53 -0
- package/dist/canopy/v1/generated/validators/videoReferenceMedia.zod.js +53 -0
- package/dist/canopy/v1/generated/validators/videoTask.zod.d.ts +71 -0
- package/dist/canopy/v1/generated/validators/videoTask.zod.js +64 -0
- package/dist/canopy/v1/generated/validators/videoUsage.zod.d.ts +54 -0
- package/dist/canopy/v1/generated/validators/videoUsage.zod.js +62 -0
- package/dist/routes.d.ts +100 -12
- package/dist/routes.js +111 -12
- package/package.json +1 -1
|
@@ -20,13 +20,14 @@
|
|
|
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
|
-
import type { AnswerQuestionRequestBody,
|
|
30
|
+
import type { AnswerQuestionRequestBody, ArtifactListResponseBody, ArtifactResource, ArtifactVersionListResponseBody, ArtifactVersionResource, BindingCodeResponseBody, BindingResource, ChannelResource, ChannelWithSecretResponseBody, CheckSenderParams, CompleteUploadRequestBody, CreateArtifactRequestBody, CreateArtifactVersionRequestBody, CreateChannelRequestBody, CreateFolderRequestBody, CreateTaskRequestBody, CreateThreadRequestBody, CreateThreadResponseBody, CreateUploadRequestBody, DecideToolCallsRequestBody, ErrorResponse, FileListResponseBody, FileResource, FolderListResponseBody, FolderResource, LengthAwarePageBindingResource, LengthAwarePageChannelResource, ListArtifactVersionsParams, ListArtifactsParams, ListBindingsParams, ListChannelRejectionsParams, ListChannelsParams, ListTaskRunsParams, ListThreadItemsParams, ListThreadMessagesParams, ListThreadTurnsParams, LoginResource, MemoryListResponseBody, MoveFolderRequestBody, PlaceThreadRequestBody, PlatformListResponseBody, PutUploadPartHeaders, PutUploadPartParams, RejectionListResponseBody, ResumeThreadRequestBody, RevertRequestBody, RevertedCountResponseBody, RotateSecretRequestBody, SearchFilesRequestBody, SearchTasksRequestBody, SearchThreadsRequestBody, SendMessageRequestBody, SendMessageResponseBody, SenderCheckResource, SettingsResource, SkillEnabledRequestBody, SkillListResponseBody, SkillRequestBody, SkillResource, TaskListResponseBody, TaskResource, TaskRunListResponseBody, TaskRunResource, ThreadItemListResponseBody, ThreadItemResource, ThreadListResponseBody, ThreadMessageListResponseBody, ThreadResource, ThreadTurnListResponseBody, ToolResultRequestBody, TurnStartedResponseBody, UpdateArtifactRequestBody, UpdateChannelRequestBody, UpdateFileRequestBody, UpdateFolderRequestBody, UpdateSettingsRequestBody, UpdateTaskRequestBody, UpdateThreadRequestBody, UpdateUploadRequestBody, UploadConfigurationResource, UploadFileParams, UploadListResponseBody, UploadPartResource, UploadResource, VerifyCodeRequestBody, WebhookSecretResponseBody } from "./models.js";
|
|
30
31
|
export type HTTPStatusCode1xx = 100 | 101 | 102 | 103;
|
|
31
32
|
export type HTTPStatusCode2xx = 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207;
|
|
32
33
|
export type HTTPStatusCode3xx = 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308;
|
|
@@ -948,153 +949,154 @@ export declare const getUpdateSettingsUrl: () => string;
|
|
|
948
949
|
* @summary Update settings
|
|
949
950
|
*/
|
|
950
951
|
export declare const updateSettings: (updateSettingsRequestBody: UpdateSettingsRequestBody, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<updateSettingsResponse>;
|
|
951
|
-
export type
|
|
952
|
-
data:
|
|
952
|
+
export type uploadFileResponse201 = {
|
|
953
|
+
data: FileResource;
|
|
953
954
|
status: 201;
|
|
954
955
|
};
|
|
955
|
-
export type
|
|
956
|
+
export type uploadFileResponseDefault = {
|
|
956
957
|
data: ErrorResponse;
|
|
957
958
|
status: Exclude<HTTPStatusCodes, 201>;
|
|
958
959
|
};
|
|
959
|
-
export type
|
|
960
|
+
export type uploadFileResponseSuccess = uploadFileResponse201 & {
|
|
960
961
|
headers: Headers;
|
|
961
962
|
};
|
|
962
|
-
export type
|
|
963
|
+
export type uploadFileResponseError = uploadFileResponseDefault & {
|
|
963
964
|
headers: Headers;
|
|
964
965
|
};
|
|
965
|
-
export type
|
|
966
|
-
export declare const
|
|
966
|
+
export type uploadFileResponse = uploadFileResponseSuccess | uploadFileResponseError;
|
|
967
|
+
export declare const getUploadFileUrl: (params?: UploadFileParams) => string;
|
|
967
968
|
/**
|
|
968
|
-
* The body is the file bytes themselves, not multipart, one file per request. The type is determined from the content, not from Content-Type or from the name. Put the returned id in
|
|
969
|
+
* The body is the file bytes themselves, not multipart, one file per request. The type is determined from the content, not from Content-Type or from the name. Put the returned id in a `file` part when sending a message.
|
|
969
970
|
*
|
|
970
971
|
* An upload that no message ever references is a draft, and drafts are collected — `draftExpiresAt` in the response says when this one goes. Sending a message with the id makes it permanent.
|
|
971
972
|
*
|
|
972
973
|
* The returned `type` says how the assistant will see it. An `image` is read directly, and only by models that accept image input. A small `text` file is placed inline in the message. A large `text` file, and anything `binary`, arrives as a reference the assistant reads on demand — for a binary that usually means downloading it onto one of the project's cloud instances.
|
|
973
974
|
* @summary Upload a file
|
|
974
975
|
*/
|
|
975
|
-
export declare const
|
|
976
|
-
export type
|
|
977
|
-
data:
|
|
976
|
+
export declare const uploadFile: (uploadFileBody: Blob, params?: UploadFileParams, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<uploadFileResponse>;
|
|
977
|
+
export type searchFilesResponse200 = {
|
|
978
|
+
data: FileListResponseBody;
|
|
978
979
|
status: 200;
|
|
979
980
|
};
|
|
980
|
-
export type
|
|
981
|
+
export type searchFilesResponseDefault = {
|
|
981
982
|
data: ErrorResponse;
|
|
982
983
|
status: Exclude<HTTPStatusCodes, 200>;
|
|
983
984
|
};
|
|
984
|
-
export type
|
|
985
|
+
export type searchFilesResponseSuccess = searchFilesResponse200 & {
|
|
985
986
|
headers: Headers;
|
|
986
987
|
};
|
|
987
|
-
export type
|
|
988
|
+
export type searchFilesResponseError = searchFilesResponseDefault & {
|
|
988
989
|
headers: Headers;
|
|
989
990
|
};
|
|
990
|
-
export type
|
|
991
|
-
export declare const
|
|
991
|
+
export type searchFilesResponse = searchFilesResponseSuccess | searchFilesResponseError;
|
|
992
|
+
export declare const getSearchFilesUrl: () => string;
|
|
992
993
|
/**
|
|
993
|
-
* The caller's
|
|
994
|
-
*
|
|
994
|
+
* The caller's library in this project, most recently uploaded first: the files they attached to
|
|
995
|
+
* messages, plus uploads that no message has referenced yet. Files that tools produced and
|
|
996
|
+
* artifacts the assistant handed over are not listed here; artifacts are listed by
|
|
997
|
+
* list-artifacts.
|
|
995
998
|
*
|
|
996
999
|
* A file with no message referencing it is a draft: `draftExpiresAt` says when it is cleared.
|
|
997
1000
|
* Sending a message with the id makes it permanent and that field becomes null.
|
|
998
1001
|
*
|
|
999
1002
|
* Files removed from the library are not listed, but conversations that already use them keep
|
|
1000
1003
|
* them and download-by-id still works.
|
|
1001
|
-
* @summary Search
|
|
1004
|
+
* @summary Search files
|
|
1002
1005
|
*/
|
|
1003
|
-
export declare const
|
|
1004
|
-
export type
|
|
1005
|
-
data:
|
|
1006
|
+
export declare const searchFiles: (searchFilesRequestBody: SearchFilesRequestBody, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<searchFilesResponse>;
|
|
1007
|
+
export type getFileResponse200 = {
|
|
1008
|
+
data: FileResource;
|
|
1006
1009
|
status: 200;
|
|
1007
1010
|
};
|
|
1008
|
-
export type
|
|
1011
|
+
export type getFileResponseDefault = {
|
|
1009
1012
|
data: ErrorResponse;
|
|
1010
1013
|
status: Exclude<HTTPStatusCodes, 200>;
|
|
1011
1014
|
};
|
|
1012
|
-
export type
|
|
1015
|
+
export type getFileResponseSuccess = getFileResponse200 & {
|
|
1013
1016
|
headers: Headers;
|
|
1014
1017
|
};
|
|
1015
|
-
export type
|
|
1018
|
+
export type getFileResponseError = getFileResponseDefault & {
|
|
1016
1019
|
headers: Headers;
|
|
1017
1020
|
};
|
|
1018
|
-
export type
|
|
1019
|
-
export declare const
|
|
1021
|
+
export type getFileResponse = getFileResponseSuccess | getFileResponseError;
|
|
1022
|
+
export declare const getGetFileUrl: (file: string) => string;
|
|
1020
1023
|
/**
|
|
1021
|
-
* Metadata for one
|
|
1024
|
+
* Metadata for one file. The bytes are at /api/v1/files/{file}:download.
|
|
1022
1025
|
*
|
|
1023
|
-
* Returns 404 when the
|
|
1024
|
-
*
|
|
1025
|
-
*
|
|
1026
|
+
* Returns 404 when the file does not exist, does not belong to the current user, or was removed
|
|
1027
|
+
* from the library. Removed files stay readable through their conversations but are no longer
|
|
1028
|
+
* described here.
|
|
1026
1029
|
* @summary Get a file
|
|
1027
1030
|
*/
|
|
1028
|
-
export declare const
|
|
1029
|
-
export type
|
|
1030
|
-
data:
|
|
1031
|
+
export declare const getFile: (file: string, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<getFileResponse>;
|
|
1032
|
+
export type updateFileResponse200 = {
|
|
1033
|
+
data: FileResource;
|
|
1031
1034
|
status: 200;
|
|
1032
1035
|
};
|
|
1033
|
-
export type
|
|
1036
|
+
export type updateFileResponseDefault = {
|
|
1034
1037
|
data: ErrorResponse;
|
|
1035
1038
|
status: Exclude<HTTPStatusCodes, 200>;
|
|
1036
1039
|
};
|
|
1037
|
-
export type
|
|
1040
|
+
export type updateFileResponseSuccess = updateFileResponse200 & {
|
|
1038
1041
|
headers: Headers;
|
|
1039
1042
|
};
|
|
1040
|
-
export type
|
|
1043
|
+
export type updateFileResponseError = updateFileResponseDefault & {
|
|
1041
1044
|
headers: Headers;
|
|
1042
1045
|
};
|
|
1043
|
-
export type
|
|
1044
|
-
export declare const
|
|
1046
|
+
export type updateFileResponse = updateFileResponseSuccess | updateFileResponseError;
|
|
1047
|
+
export declare const getUpdateFileUrl: (file: string) => string;
|
|
1045
1048
|
/**
|
|
1046
|
-
* Changes the name shown in the library and given to the assistant. The bytes and the
|
|
1047
|
-
*
|
|
1048
|
-
* on.
|
|
1049
|
+
* Changes the name shown in the library and given to the assistant. The bytes and the file id do
|
|
1050
|
+
* not change; conversations that already use it see the new name from their next request on.
|
|
1049
1051
|
* @summary Rename a file
|
|
1050
1052
|
*/
|
|
1051
|
-
export declare const
|
|
1052
|
-
export type
|
|
1053
|
+
export declare const updateFile: (file: string, updateFileRequestBody: UpdateFileRequestBody, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<updateFileResponse>;
|
|
1054
|
+
export type deleteFileResponse204 = {
|
|
1053
1055
|
data: void;
|
|
1054
1056
|
status: 204;
|
|
1055
1057
|
};
|
|
1056
|
-
export type
|
|
1058
|
+
export type deleteFileResponseDefault = {
|
|
1057
1059
|
data: ErrorResponse;
|
|
1058
1060
|
status: Exclude<HTTPStatusCodes, 204>;
|
|
1059
1061
|
};
|
|
1060
|
-
export type
|
|
1062
|
+
export type deleteFileResponseSuccess = deleteFileResponse204 & {
|
|
1061
1063
|
headers: Headers;
|
|
1062
1064
|
};
|
|
1063
|
-
export type
|
|
1065
|
+
export type deleteFileResponseError = deleteFileResponseDefault & {
|
|
1064
1066
|
headers: Headers;
|
|
1065
1067
|
};
|
|
1066
|
-
export type
|
|
1067
|
-
export declare const
|
|
1068
|
+
export type deleteFileResponse = deleteFileResponseSuccess | deleteFileResponseError;
|
|
1069
|
+
export declare const getDeleteFileUrl: (file: string) => string;
|
|
1068
1070
|
/**
|
|
1069
|
-
* Hides the file from the library. Conversations that already use it keep it: the
|
|
1070
|
-
*
|
|
1071
|
-
*
|
|
1071
|
+
* Hides the file from the library. Conversations that already use it keep it: the file stays
|
|
1072
|
+
* readable by id and keeps rendering in their history. Its bytes are released when the project
|
|
1073
|
+
* is deleted. A draft is cleared for good when its expiry passes. Idempotent.
|
|
1072
1074
|
* @summary Remove a file from the library
|
|
1073
1075
|
*/
|
|
1074
|
-
export declare const
|
|
1075
|
-
export type
|
|
1076
|
+
export declare const deleteFile: (file: string, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<deleteFileResponse>;
|
|
1077
|
+
export type downloadFileResponse200 = {
|
|
1076
1078
|
data: Blob;
|
|
1077
1079
|
status: 200;
|
|
1078
1080
|
};
|
|
1079
|
-
export type
|
|
1081
|
+
export type downloadFileResponseDefault = {
|
|
1080
1082
|
data: ErrorResponse;
|
|
1081
1083
|
status: Exclude<HTTPStatusCodes, 200>;
|
|
1082
1084
|
};
|
|
1083
|
-
export type
|
|
1085
|
+
export type downloadFileResponseSuccess = downloadFileResponse200 & {
|
|
1084
1086
|
headers: Headers;
|
|
1085
1087
|
};
|
|
1086
|
-
export type
|
|
1088
|
+
export type downloadFileResponseError = downloadFileResponseDefault & {
|
|
1087
1089
|
headers: Headers;
|
|
1088
1090
|
};
|
|
1089
|
-
export type
|
|
1090
|
-
export declare const
|
|
1091
|
+
export type downloadFileResponse = downloadFileResponseSuccess | downloadFileResponseError;
|
|
1092
|
+
export declare const getDownloadFileUrl: (file: string) => string;
|
|
1091
1093
|
/**
|
|
1092
|
-
* Returns the original bytes
|
|
1094
|
+
* Returns the original bytes of a file, including one removed from the library, a file a tool produced and an artifact version. The response carries long-lived cache headers because the content never changes. Returns 404 when the file does not exist or does not belong to the current user.
|
|
1093
1095
|
*
|
|
1094
|
-
* Only
|
|
1096
|
+
* Only a file whose `type` is `image` comes back with its own image type and is usable as the address of an `<img>`. Everything else is served as `application/octet-stream` with `Content-Disposition: attachment`, deliberately: a file is arbitrary bytes under a name chosen elsewhere, and serving it back inline would run it on this origin.
|
|
1095
1097
|
* @summary Download a file
|
|
1096
1098
|
*/
|
|
1097
|
-
export declare const
|
|
1099
|
+
export declare const downloadFile: (file: string, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<downloadFileResponse>;
|
|
1098
1100
|
export type getUploadConfigurationResponse200 = {
|
|
1099
1101
|
data: UploadConfigurationResource;
|
|
1100
1102
|
status: 200;
|
|
@@ -1236,7 +1238,7 @@ export declare const getCancelUploadUrl: (upload: string) => string;
|
|
|
1236
1238
|
*/
|
|
1237
1239
|
export declare const cancelUpload: (upload: string, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<cancelUploadResponse>;
|
|
1238
1240
|
export type completeUploadResponse200 = {
|
|
1239
|
-
data:
|
|
1241
|
+
data: FileResource;
|
|
1240
1242
|
status: 200;
|
|
1241
1243
|
};
|
|
1242
1244
|
export type completeUploadResponseDefault = {
|
|
@@ -1275,6 +1277,180 @@ export declare const getPutUploadPartUrl: (upload: string, part: number, params:
|
|
|
1275
1277
|
* @summary Put upload part
|
|
1276
1278
|
*/
|
|
1277
1279
|
export declare const putUploadPart: (upload: string, part: number, putUploadPartBody: Blob, params: PutUploadPartParams, headers: PutUploadPartHeaders, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<putUploadPartResponse>;
|
|
1280
|
+
export type listArtifactsResponse200 = {
|
|
1281
|
+
data: ArtifactListResponseBody;
|
|
1282
|
+
status: 200;
|
|
1283
|
+
};
|
|
1284
|
+
export type listArtifactsResponseDefault = {
|
|
1285
|
+
data: ErrorResponse;
|
|
1286
|
+
status: Exclude<HTTPStatusCodes, 200>;
|
|
1287
|
+
};
|
|
1288
|
+
export type listArtifactsResponseSuccess = listArtifactsResponse200 & {
|
|
1289
|
+
headers: Headers;
|
|
1290
|
+
};
|
|
1291
|
+
export type listArtifactsResponseError = listArtifactsResponseDefault & {
|
|
1292
|
+
headers: Headers;
|
|
1293
|
+
};
|
|
1294
|
+
export type listArtifactsResponse = listArtifactsResponseSuccess | listArtifactsResponseError;
|
|
1295
|
+
export declare const getListArtifactsUrl: (params?: ListArtifactsParams) => string;
|
|
1296
|
+
/**
|
|
1297
|
+
* The caller's artifacts in this project, most recently updated first. An artifact is a file the
|
|
1298
|
+
* assistant handed over, kept under one title across its versions: a later version replaces what
|
|
1299
|
+
* the person sees, and earlier versions stay readable.
|
|
1300
|
+
*
|
|
1301
|
+
* With `thread`, only artifacts that have a version created in that conversation are listed.
|
|
1302
|
+
* @summary List artifacts
|
|
1303
|
+
*/
|
|
1304
|
+
export declare const listArtifacts: (params?: ListArtifactsParams, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<listArtifactsResponse>;
|
|
1305
|
+
export type createArtifactResponse201 = {
|
|
1306
|
+
data: ArtifactResource;
|
|
1307
|
+
status: 201;
|
|
1308
|
+
};
|
|
1309
|
+
export type createArtifactResponseDefault = {
|
|
1310
|
+
data: ErrorResponse;
|
|
1311
|
+
status: Exclude<HTTPStatusCodes, 201>;
|
|
1312
|
+
};
|
|
1313
|
+
export type createArtifactResponseSuccess = createArtifactResponse201 & {
|
|
1314
|
+
headers: Headers;
|
|
1315
|
+
};
|
|
1316
|
+
export type createArtifactResponseError = createArtifactResponseDefault & {
|
|
1317
|
+
headers: Headers;
|
|
1318
|
+
};
|
|
1319
|
+
export type createArtifactResponse = createArtifactResponseSuccess | createArtifactResponseError;
|
|
1320
|
+
export declare const getCreateArtifactUrl: () => string;
|
|
1321
|
+
/**
|
|
1322
|
+
* Makes a file the first version of a new artifact. The file must belong to the caller in this
|
|
1323
|
+
* project. Fails with 404 and code FILE_NOT_FOUND when it does not.
|
|
1324
|
+
* @summary Create an artifact
|
|
1325
|
+
*/
|
|
1326
|
+
export declare const createArtifact: (createArtifactRequestBody: CreateArtifactRequestBody, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<createArtifactResponse>;
|
|
1327
|
+
export type getArtifactResponse200 = {
|
|
1328
|
+
data: ArtifactResource;
|
|
1329
|
+
status: 200;
|
|
1330
|
+
};
|
|
1331
|
+
export type getArtifactResponseDefault = {
|
|
1332
|
+
data: ErrorResponse;
|
|
1333
|
+
status: Exclude<HTTPStatusCodes, 200>;
|
|
1334
|
+
};
|
|
1335
|
+
export type getArtifactResponseSuccess = getArtifactResponse200 & {
|
|
1336
|
+
headers: Headers;
|
|
1337
|
+
};
|
|
1338
|
+
export type getArtifactResponseError = getArtifactResponseDefault & {
|
|
1339
|
+
headers: Headers;
|
|
1340
|
+
};
|
|
1341
|
+
export type getArtifactResponse = getArtifactResponseSuccess | getArtifactResponseError;
|
|
1342
|
+
export declare const getGetArtifactUrl: (artifact: string) => string;
|
|
1343
|
+
/**
|
|
1344
|
+
* @summary Get an artifact
|
|
1345
|
+
*/
|
|
1346
|
+
export declare const getArtifact: (artifact: string, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<getArtifactResponse>;
|
|
1347
|
+
export type updateArtifactResponse200 = {
|
|
1348
|
+
data: ArtifactResource;
|
|
1349
|
+
status: 200;
|
|
1350
|
+
};
|
|
1351
|
+
export type updateArtifactResponseDefault = {
|
|
1352
|
+
data: ErrorResponse;
|
|
1353
|
+
status: Exclude<HTTPStatusCodes, 200>;
|
|
1354
|
+
};
|
|
1355
|
+
export type updateArtifactResponseSuccess = updateArtifactResponse200 & {
|
|
1356
|
+
headers: Headers;
|
|
1357
|
+
};
|
|
1358
|
+
export type updateArtifactResponseError = updateArtifactResponseDefault & {
|
|
1359
|
+
headers: Headers;
|
|
1360
|
+
};
|
|
1361
|
+
export type updateArtifactResponse = updateArtifactResponseSuccess | updateArtifactResponseError;
|
|
1362
|
+
export declare const getUpdateArtifactUrl: (artifact: string) => string;
|
|
1363
|
+
/**
|
|
1364
|
+
* Changes the title shown for every version. The versions and their files do not change.
|
|
1365
|
+
* @summary Rename an artifact
|
|
1366
|
+
*/
|
|
1367
|
+
export declare const updateArtifact: (artifact: string, updateArtifactRequestBody: UpdateArtifactRequestBody, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<updateArtifactResponse>;
|
|
1368
|
+
export type deleteArtifactResponse204 = {
|
|
1369
|
+
data: void;
|
|
1370
|
+
status: 204;
|
|
1371
|
+
};
|
|
1372
|
+
export type deleteArtifactResponseDefault = {
|
|
1373
|
+
data: ErrorResponse;
|
|
1374
|
+
status: Exclude<HTTPStatusCodes, 204>;
|
|
1375
|
+
};
|
|
1376
|
+
export type deleteArtifactResponseSuccess = deleteArtifactResponse204 & {
|
|
1377
|
+
headers: Headers;
|
|
1378
|
+
};
|
|
1379
|
+
export type deleteArtifactResponseError = deleteArtifactResponseDefault & {
|
|
1380
|
+
headers: Headers;
|
|
1381
|
+
};
|
|
1382
|
+
export type deleteArtifactResponse = deleteArtifactResponseSuccess | deleteArtifactResponseError;
|
|
1383
|
+
export declare const getDeleteArtifactUrl: (artifact: string) => string;
|
|
1384
|
+
/**
|
|
1385
|
+
* Removes the artifact and its versions from lists, and the assistant can no longer add versions
|
|
1386
|
+
* to it. Conversations that showed a version keep showing it, and its file stays downloadable.
|
|
1387
|
+
* Idempotent.
|
|
1388
|
+
* @summary Delete an artifact
|
|
1389
|
+
*/
|
|
1390
|
+
export declare const deleteArtifact: (artifact: string, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<deleteArtifactResponse>;
|
|
1391
|
+
export type listArtifactVersionsResponse200 = {
|
|
1392
|
+
data: ArtifactVersionListResponseBody;
|
|
1393
|
+
status: 200;
|
|
1394
|
+
};
|
|
1395
|
+
export type listArtifactVersionsResponseDefault = {
|
|
1396
|
+
data: ErrorResponse;
|
|
1397
|
+
status: Exclude<HTTPStatusCodes, 200>;
|
|
1398
|
+
};
|
|
1399
|
+
export type listArtifactVersionsResponseSuccess = listArtifactVersionsResponse200 & {
|
|
1400
|
+
headers: Headers;
|
|
1401
|
+
};
|
|
1402
|
+
export type listArtifactVersionsResponseError = listArtifactVersionsResponseDefault & {
|
|
1403
|
+
headers: Headers;
|
|
1404
|
+
};
|
|
1405
|
+
export type listArtifactVersionsResponse = listArtifactVersionsResponseSuccess | listArtifactVersionsResponseError;
|
|
1406
|
+
export declare const getListArtifactVersionsUrl: (artifact: string, params?: ListArtifactVersionsParams) => string;
|
|
1407
|
+
/**
|
|
1408
|
+
* The versions of an artifact, newest first.
|
|
1409
|
+
* @summary List artifact versions
|
|
1410
|
+
*/
|
|
1411
|
+
export declare const listArtifactVersions: (artifact: string, params?: ListArtifactVersionsParams, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<listArtifactVersionsResponse>;
|
|
1412
|
+
export type createArtifactVersionResponse201 = {
|
|
1413
|
+
data: ArtifactVersionResource;
|
|
1414
|
+
status: 201;
|
|
1415
|
+
};
|
|
1416
|
+
export type createArtifactVersionResponseDefault = {
|
|
1417
|
+
data: ErrorResponse;
|
|
1418
|
+
status: Exclude<HTTPStatusCodes, 201>;
|
|
1419
|
+
};
|
|
1420
|
+
export type createArtifactVersionResponseSuccess = createArtifactVersionResponse201 & {
|
|
1421
|
+
headers: Headers;
|
|
1422
|
+
};
|
|
1423
|
+
export type createArtifactVersionResponseError = createArtifactVersionResponseDefault & {
|
|
1424
|
+
headers: Headers;
|
|
1425
|
+
};
|
|
1426
|
+
export type createArtifactVersionResponse = createArtifactVersionResponseSuccess | createArtifactVersionResponseError;
|
|
1427
|
+
export declare const getCreateArtifactVersionUrl: (artifact: string) => string;
|
|
1428
|
+
/**
|
|
1429
|
+
* Makes a file the newest version of the artifact. The file must belong to the caller in this
|
|
1430
|
+
* project. Fails with 404 and code FILE_NOT_FOUND when it does not.
|
|
1431
|
+
* @summary Add a version
|
|
1432
|
+
*/
|
|
1433
|
+
export declare const createArtifactVersion: (artifact: string, createArtifactVersionRequestBody: CreateArtifactVersionRequestBody, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<createArtifactVersionResponse>;
|
|
1434
|
+
export type getArtifactVersionResponse200 = {
|
|
1435
|
+
data: ArtifactVersionResource;
|
|
1436
|
+
status: 200;
|
|
1437
|
+
};
|
|
1438
|
+
export type getArtifactVersionResponseDefault = {
|
|
1439
|
+
data: ErrorResponse;
|
|
1440
|
+
status: Exclude<HTTPStatusCodes, 200>;
|
|
1441
|
+
};
|
|
1442
|
+
export type getArtifactVersionResponseSuccess = getArtifactVersionResponse200 & {
|
|
1443
|
+
headers: Headers;
|
|
1444
|
+
};
|
|
1445
|
+
export type getArtifactVersionResponseError = getArtifactVersionResponseDefault & {
|
|
1446
|
+
headers: Headers;
|
|
1447
|
+
};
|
|
1448
|
+
export type getArtifactVersionResponse = getArtifactVersionResponseSuccess | getArtifactVersionResponseError;
|
|
1449
|
+
export declare const getGetArtifactVersionUrl: (artifact: string, version: string) => string;
|
|
1450
|
+
/**
|
|
1451
|
+
* @summary Get an artifact version
|
|
1452
|
+
*/
|
|
1453
|
+
export declare const getArtifactVersion: (artifact: string, version: string, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<getArtifactVersionResponse>;
|
|
1278
1454
|
export type listMemoriesResponse200 = {
|
|
1279
1455
|
data: MemoryListResponseBody;
|
|
1280
1456
|
status: 200;
|