@leaflow/sdk 0.0.0-dev.519.g9e3ae08 → 0.0.0-dev.526.g367525a
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assistant/v1/generated/functions.d.ts +243 -67
- package/dist/assistant/v1/generated/functions.js +248 -44
- package/dist/assistant/v1/generated/models.d.ts +302 -230
- package/dist/assistant/v1/generated/models.js +9 -19
- package/dist/assistant/v1/generated/schemas.zod.d.ts +119 -29
- package/dist/assistant/v1/generated/schemas.zod.js +139 -29
- package/dist/assistant/v1/generated/validators/answerQuestionRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/answerQuestionRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/approvalMode.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/approvalMode.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/artifactListResponseBody.zod.d.ts +68 -0
- package/dist/assistant/v1/generated/validators/artifactListResponseBody.zod.js +35 -0
- package/dist/assistant/v1/generated/validators/artifactResource.zod.d.ts +65 -0
- package/dist/assistant/v1/generated/validators/{attachmentResource.zod.js → artifactResource.zod.js} +13 -14
- package/dist/assistant/v1/generated/validators/artifactVersionListResponseBody.zod.d.ts +61 -0
- package/dist/assistant/v1/generated/validators/artifactVersionListResponseBody.zod.js +35 -0
- package/dist/assistant/v1/generated/validators/{uploadedResource.zod.d.ts → artifactVersionResource.zod.d.ts} +30 -16
- package/dist/assistant/v1/generated/validators/{attachmentFileResource.zod.js → artifactVersionResource.zod.js} +23 -16
- package/dist/assistant/v1/generated/validators/bindingCodeResponseBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/bindingCodeResponseBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/bindingResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/bindingResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/channelResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/channelResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/channelWithSecretResponseBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/channelWithSecretResponseBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/checkSenderParams.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/checkSenderParams.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/choiceResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/choiceResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/clientActionRequest.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/clientActionRequest.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/clientContextPart.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/clientContextPart.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/clientContextRequest.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/clientContextRequest.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/clientFunctionRequest.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/clientFunctionRequest.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/completeUploadRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/completeUploadRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/contextUsageResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/contextUsageResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/createArtifactRequestBody.zod.d.ts +38 -0
- package/dist/assistant/v1/generated/validators/createArtifactRequestBody.zod.js +36 -0
- package/dist/assistant/v1/generated/validators/createArtifactVersionRequestBody.zod.d.ts +36 -0
- package/dist/assistant/v1/generated/validators/createArtifactVersionRequestBody.zod.js +34 -0
- package/dist/assistant/v1/generated/validators/createChannelRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/createChannelRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/createFolderRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/createFolderRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/createTaskRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/createTaskRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/createThreadRequestBody.zod.d.ts +5 -4
- package/dist/assistant/v1/generated/validators/createThreadRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/createThreadResponseBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/createThreadResponseBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/createUploadRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/createUploadRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/credentialFieldResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/credentialFieldResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/cursorPagination.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/cursorPagination.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/decideToolCallsRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/decideToolCallsRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/defaultModelResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/defaultModelResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/error.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/error.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/errorStatus.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/errorStatus.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/fieldViolation.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/fieldViolation.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/{attachmentCountsResource.zod.d.ts → fileCountsResource.zod.d.ts} +7 -6
- package/dist/assistant/v1/generated/validators/{attachmentCountsResource.zod.js → fileCountsResource.zod.js} +5 -4
- package/dist/assistant/v1/generated/validators/fileDiffResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/fileDiffResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/{attachmentListResponseBody.zod.d.ts → fileListResponseBody.zod.d.ts} +15 -14
- package/dist/assistant/v1/generated/validators/{attachmentListResponseBody.zod.js → fileListResponseBody.zod.js} +9 -8
- package/dist/assistant/v1/generated/validators/{attachmentFileResource.zod.d.ts → fileResource.zod.d.ts} +14 -13
- package/dist/assistant/v1/generated/validators/{uploadedResource.zod.js → fileResource.zod.js} +25 -15
- package/dist/assistant/v1/generated/validators/folderCountsResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/folderCountsResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/folderListResponseBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/folderListResponseBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/folderResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/folderResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/itemSourceResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/itemSourceResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/lastTurnResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/lastTurnResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/lengthAwarePageBindingResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/lengthAwarePageBindingResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/lengthAwarePageChannelResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/lengthAwarePageChannelResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/listArtifactVersionsParams.zod.d.ts +39 -0
- package/dist/assistant/v1/generated/validators/listArtifactVersionsParams.zod.js +41 -0
- package/dist/assistant/v1/generated/validators/listArtifactsParams.zod.d.ts +41 -0
- package/dist/assistant/v1/generated/validators/listArtifactsParams.zod.js +39 -0
- package/dist/assistant/v1/generated/validators/listBindingsParams.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/listBindingsParams.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/listChannelRejectionsParams.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/listChannelRejectionsParams.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/listChannelsParams.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/listChannelsParams.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/listTaskRunsParams.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/listTaskRunsParams.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/listThreadItemsParams.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/listThreadItemsParams.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/listThreadMessagesParams.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/listThreadMessagesParams.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/listThreadTurnsParams.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/listThreadTurnsParams.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/loginResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/loginResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/memoryListResponseBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/memoryListResponseBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/memoryResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/memoryResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/messagePart.zod.d.ts +5 -4
- package/dist/assistant/v1/generated/validators/messagePart.zod.js +7 -6
- package/dist/assistant/v1/generated/validators/moveFolderRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/moveFolderRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/offsetPagination.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/offsetPagination.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/partResource.zod.d.ts +20 -4
- package/dist/assistant/v1/generated/validators/partResource.zod.js +8 -7
- package/dist/assistant/v1/generated/validators/pendingActionResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/pendingActionResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/placeThreadRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/placeThreadRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/platformListResponseBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/platformListResponseBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/platformResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/platformResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/presentationResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/presentationResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/putUploadPartHeaders.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/putUploadPartHeaders.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/putUploadPartParams.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/putUploadPartParams.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/questionResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/questionResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/reasoningEffort.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/reasoningEffort.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/rejectionListResponseBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/rejectionListResponseBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/rejectionResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/rejectionResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/resumeThreadRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/resumeThreadRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/revertRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/revertRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/revertedCountResponseBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/revertedCountResponseBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/rotateSecretRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/rotateSecretRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/{searchAttachmentsRequestBody.zod.d.ts → searchFilesRequestBody.zod.d.ts} +12 -11
- package/dist/assistant/v1/generated/validators/{searchAttachmentsRequestBody.zod.js → searchFilesRequestBody.zod.js} +17 -16
- package/dist/assistant/v1/generated/validators/searchTasksRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/searchTasksRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/searchThreadsRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/searchThreadsRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/sendMessageRequestBody.zod.d.ts +5 -4
- package/dist/assistant/v1/generated/validators/sendMessageRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/sendMessageResponseBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/sendMessageResponseBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/senderCheckResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/senderCheckResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/settingsResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/settingsResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/skillEnabledRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/skillEnabledRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/skillListResponseBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/skillListResponseBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/skillRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/skillRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/skillResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/skillResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/subagentCountResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/subagentCountResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/taskAction.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/taskAction.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/taskListResponseBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/taskListResponseBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/taskResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/taskResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/taskRunEvent.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/taskRunEvent.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/taskRunListResponseBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/taskRunListResponseBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/taskRunResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/taskRunResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/taskTrigger.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/taskTrigger.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/threadCountsResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/threadCountsResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/threadItemListResponseBody.zod.d.ts +120 -29
- package/dist/assistant/v1/generated/validators/threadItemListResponseBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/threadItemResource.zod.d.ts +62 -16
- package/dist/assistant/v1/generated/validators/threadItemResource.zod.js +5 -6
- package/dist/assistant/v1/generated/validators/threadListResponseBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/threadListResponseBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/threadMessageListResponseBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/threadMessageListResponseBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/threadMessageResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/threadMessageResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/threadResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/threadResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/threadStatus.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/threadStatus.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/threadTurnListResponseBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/threadTurnListResponseBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/threadTurnResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/threadTurnResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/todoResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/todoResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/toolCallResource.zod.d.ts +46 -3
- package/dist/assistant/v1/generated/validators/toolCallResource.zod.js +12 -3
- package/dist/assistant/v1/generated/validators/toolResultRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/toolResultRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/turnStartedResponseBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/turnStartedResponseBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/turnStatus.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/turnStatus.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/turnType.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/turnType.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/{attachmentResource.zod.d.ts → updateArtifactRequestBody.zod.d.ts} +9 -16
- package/dist/assistant/v1/generated/validators/updateArtifactRequestBody.zod.js +34 -0
- package/dist/assistant/v1/generated/validators/updateChannelRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/updateChannelRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/{updateAttachmentRequestBody.zod.d.ts → updateFileRequestBody.zod.d.ts} +8 -7
- package/dist/assistant/v1/generated/validators/{updateAttachmentRequestBody.zod.js → updateFileRequestBody.zod.js} +7 -6
- package/dist/assistant/v1/generated/validators/updateFolderRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/updateFolderRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/updateSettingsRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/updateSettingsRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/updateTaskRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/updateTaskRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/updateThreadRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/updateThreadRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/updateUploadRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/updateUploadRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/uploadConfigurationResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/uploadConfigurationResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/{uploadAttachmentParams.zod.d.ts → uploadFileParams.zod.d.ts} +8 -7
- package/dist/assistant/v1/generated/validators/{uploadAttachmentParams.zod.js → uploadFileParams.zod.js} +7 -6
- package/dist/assistant/v1/generated/validators/uploadListResponseBody.zod.d.ts +5 -4
- package/dist/assistant/v1/generated/validators/uploadListResponseBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/uploadPartResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/uploadPartResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/uploadResource.zod.d.ts +5 -4
- package/dist/assistant/v1/generated/validators/uploadResource.zod.js +8 -4
- package/dist/assistant/v1/generated/validators/usage.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/usage.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/verifyCodeRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/verifyCodeRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/webhookSecretResponseBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/webhookSecretResponseBody.zod.js +4 -3
- package/dist/canopy/v1/generated/functions.d.ts +73 -1
- package/dist/canopy/v1/generated/functions.js +92 -6
- package/dist/canopy/v1/generated/models.d.ts +148 -12
- package/dist/canopy/v1/generated/models.js +13 -0
- package/dist/canopy/v1/generated/schemas.zod.d.ts +49 -0
- package/dist/canopy/v1/generated/schemas.zod.js +28 -0
- package/dist/canopy/v1/generated/validators/cursorPageRequestResource.zod.d.ts +10 -0
- package/dist/canopy/v1/generated/validators/getVideoContentHeaders.zod.d.ts +46 -0
- package/dist/canopy/v1/generated/validators/getVideoContentHeaders.zod.js +44 -0
- package/dist/canopy/v1/generated/validators/mediaUsageDetails.zod.d.ts +61 -0
- package/dist/canopy/v1/generated/validators/mediaUsageDetails.zod.js +67 -0
- package/dist/canopy/v1/generated/validators/requestResource.zod.d.ts +10 -0
- package/dist/canopy/v1/generated/validators/requestResource.zod.js +2 -0
- package/dist/canopy/v1/generated/validators/videoCreateRequest.zod.d.ts +67 -0
- package/dist/canopy/v1/generated/validators/videoCreateRequest.zod.js +70 -0
- package/dist/canopy/v1/generated/validators/videoReferenceMedia.zod.d.ts +53 -0
- package/dist/canopy/v1/generated/validators/videoReferenceMedia.zod.js +53 -0
- package/dist/canopy/v1/generated/validators/videoTask.zod.d.ts +71 -0
- package/dist/canopy/v1/generated/validators/videoTask.zod.js +64 -0
- package/dist/canopy/v1/generated/validators/videoUsage.zod.d.ts +54 -0
- package/dist/canopy/v1/generated/validators/videoUsage.zod.js +62 -0
- package/dist/routes.d.ts +100 -12
- package/dist/routes.js +111 -12
- package/package.json +1 -1
|
@@ -20,10 +20,11 @@
|
|
|
20
20
|
* outlines the person's messages for navigating a long conversation.
|
|
21
21
|
*
|
|
22
22
|
* Upload large files with /api/v1/uploads: read /api/v1/upload-configuration first, send exact-sized
|
|
23
|
-
* parts, then complete the upload and send its
|
|
23
|
+
* parts, then complete the upload and send its file id in a message.
|
|
24
24
|
*
|
|
25
|
-
* Files
|
|
26
|
-
* the conversations that already use it; downloading keeps working.
|
|
25
|
+
* Files the person attached are listed by search-files. Renaming or removing one does not change
|
|
26
|
+
* the conversations that already use it; downloading keeps working. Files the assistant hands over
|
|
27
|
+
* are artifacts: they appear on the tool call that created them and are listed by list-artifacts.
|
|
27
28
|
* OpenAPI spec version: 2.0.0
|
|
28
29
|
*/
|
|
29
30
|
export interface FieldViolation {
|
|
@@ -330,7 +331,7 @@ export type MessagePartData = {
|
|
|
330
331
|
* One piece of a message. `type` says which field carries it:
|
|
331
332
|
*
|
|
332
333
|
* - `text` — the words, in `text`
|
|
333
|
-
* - `file` —
|
|
334
|
+
* - `file` — a file uploaded earlier, by id in `fileId`
|
|
334
335
|
* - `data-<name>` — context from the client, in `data`. The name is shown to the assistant so it
|
|
335
336
|
* can tell one block from another.
|
|
336
337
|
*/
|
|
@@ -343,10 +344,10 @@ export interface MessagePart {
|
|
|
343
344
|
/** @nullable */
|
|
344
345
|
text?: string | null;
|
|
345
346
|
/**
|
|
346
|
-
* The
|
|
347
|
+
* The file must have been uploaded and not yet sent with another message.
|
|
347
348
|
* @nullable
|
|
348
349
|
*/
|
|
349
|
-
|
|
350
|
+
fileId?: string | null;
|
|
350
351
|
/** @nullable */
|
|
351
352
|
data?: MessagePartData;
|
|
352
353
|
}
|
|
@@ -740,38 +741,39 @@ export declare const PartResourceType: {
|
|
|
740
741
|
readonly text: "text";
|
|
741
742
|
readonly file: "file";
|
|
742
743
|
};
|
|
743
|
-
export interface PartResource {
|
|
744
|
-
/**
|
|
745
|
-
* Addresses this part in the realtime stream: text arrives as `append` frames pointing at
|
|
746
|
-
* `/items/{item}/parts/{id}/text`. Not an array index.
|
|
747
|
-
*/
|
|
748
|
-
id: string;
|
|
749
|
-
type: PartResourceType;
|
|
750
|
-
/**
|
|
751
|
-
* For `text` parts. Grows as the answer is written.
|
|
752
|
-
* @nullable
|
|
753
|
-
*/
|
|
754
|
-
text: string | null;
|
|
755
|
-
/**
|
|
756
|
-
* For `file` parts. Points at one of the item's `attachments`.
|
|
757
|
-
* @nullable
|
|
758
|
-
*/
|
|
759
|
-
attachmentId: string | null;
|
|
760
|
-
}
|
|
761
744
|
/**
|
|
762
|
-
*
|
|
745
|
+
* How the assistant reads the file.
|
|
746
|
+
*
|
|
747
|
+
* - `image` — read directly, and only by models that accept image input
|
|
748
|
+
* - `text` — placed inline in the message when small enough, otherwise read on demand
|
|
749
|
+
* - `binary` — never read directly; the assistant downloads it onto a host to work with it
|
|
750
|
+
*
|
|
751
|
+
* Only an `image` can be shown in place; everything else is offered for download.
|
|
763
752
|
*/
|
|
764
|
-
export type
|
|
765
|
-
export declare const
|
|
753
|
+
export type FileResourceType = (typeof FileResourceType)[keyof typeof FileResourceType];
|
|
754
|
+
export declare const FileResourceType: {
|
|
766
755
|
readonly image: "image";
|
|
767
756
|
readonly text: "text";
|
|
768
757
|
readonly binary: "binary";
|
|
769
758
|
};
|
|
770
|
-
|
|
759
|
+
/**
|
|
760
|
+
* A stored file, wherever it appears.
|
|
761
|
+
*/
|
|
762
|
+
export interface FileResource {
|
|
771
763
|
id: string;
|
|
772
|
-
/** A client renders an image in place and everything else as a file to download. */
|
|
773
|
-
type: AttachmentResourceType;
|
|
774
764
|
filename: string;
|
|
765
|
+
/** The IANA media type detected at intake, not the Content-Type the client sent. */
|
|
766
|
+
mediaType: string;
|
|
767
|
+
/**
|
|
768
|
+
* How the assistant reads the file.
|
|
769
|
+
*
|
|
770
|
+
* - `image` — read directly, and only by models that accept image input
|
|
771
|
+
* - `text` — placed inline in the message when small enough, otherwise read on demand
|
|
772
|
+
* - `binary` — never read directly; the assistant downloads it onto a host to work with it
|
|
773
|
+
*
|
|
774
|
+
* Only an `image` can be shown in place; everything else is offered for download.
|
|
775
|
+
*/
|
|
776
|
+
type: FileResourceType;
|
|
775
777
|
byteSize: number;
|
|
776
778
|
/**
|
|
777
779
|
* Null unless type is image. Lets a client hold the space before the image loads.
|
|
@@ -783,6 +785,29 @@ export interface AttachmentResource {
|
|
|
783
785
|
* @nullable
|
|
784
786
|
*/
|
|
785
787
|
height: number | null;
|
|
788
|
+
/**
|
|
789
|
+
* When this upload is cleared if no message ever references it. Null once a message, a tool
|
|
790
|
+
* call or an artifact uses it; such a file is kept as long as what uses it is.
|
|
791
|
+
* @nullable
|
|
792
|
+
*/
|
|
793
|
+
draftExpiresAt: string | null;
|
|
794
|
+
createdAt: string;
|
|
795
|
+
updatedAt: string;
|
|
796
|
+
}
|
|
797
|
+
export interface PartResource {
|
|
798
|
+
/**
|
|
799
|
+
* Addresses this part in the realtime stream: text arrives as `append` frames pointing at
|
|
800
|
+
* `/items/{item}/parts/{id}/text`. Not an array index.
|
|
801
|
+
*/
|
|
802
|
+
id: string;
|
|
803
|
+
type: PartResourceType;
|
|
804
|
+
/**
|
|
805
|
+
* For `text` parts. Grows as the answer is written.
|
|
806
|
+
* @nullable
|
|
807
|
+
*/
|
|
808
|
+
text: string | null;
|
|
809
|
+
/** For `file` parts. A file the person attached. */
|
|
810
|
+
file: FileResource | null;
|
|
786
811
|
}
|
|
787
812
|
export type ClientContextPartData = {
|
|
788
813
|
[key: string]: unknown;
|
|
@@ -871,6 +896,34 @@ export interface QuestionResource {
|
|
|
871
896
|
/** Suggested answers. A free-form answer is accepted as well. */
|
|
872
897
|
choices: ChoiceResource[];
|
|
873
898
|
}
|
|
899
|
+
export interface ArtifactVersionResource {
|
|
900
|
+
id: string;
|
|
901
|
+
artifactId: string;
|
|
902
|
+
/** The artifact's current title. */
|
|
903
|
+
title: string;
|
|
904
|
+
/**
|
|
905
|
+
* The position among the artifact's versions, from 1.
|
|
906
|
+
* @minimum 1
|
|
907
|
+
*/
|
|
908
|
+
version: number;
|
|
909
|
+
file: FileResource;
|
|
910
|
+
/**
|
|
911
|
+
* The conversation whose tool call created this version. Null for a version added through the API.
|
|
912
|
+
* @nullable
|
|
913
|
+
*/
|
|
914
|
+
threadId: string | null;
|
|
915
|
+
/**
|
|
916
|
+
* The turn whose tool call created this version. Null for a version added through the API.
|
|
917
|
+
* @nullable
|
|
918
|
+
*/
|
|
919
|
+
turnId: string | null;
|
|
920
|
+
/**
|
|
921
|
+
* The tool call that created this version. Null for a version added through the API.
|
|
922
|
+
* @nullable
|
|
923
|
+
*/
|
|
924
|
+
itemId: string | null;
|
|
925
|
+
createdAt: string;
|
|
926
|
+
}
|
|
874
927
|
/**
|
|
875
928
|
* The answers given so far, by question id. Null for other calls.
|
|
876
929
|
* @nullable
|
|
@@ -930,6 +983,17 @@ export interface ToolCallResource {
|
|
|
930
983
|
* @nullable
|
|
931
984
|
*/
|
|
932
985
|
autoAnswerMs: number | null;
|
|
986
|
+
/**
|
|
987
|
+
* Files the call returned to the assistant as part of its result, such as a screenshot it
|
|
988
|
+
* looks at. They are working material rather than something handed to the person.
|
|
989
|
+
*/
|
|
990
|
+
contentFiles: FileResource[];
|
|
991
|
+
/**
|
|
992
|
+
* The artifact versions this call handed to the person, such as a QR code to scan or an
|
|
993
|
+
* exported report. Show them where the call appears; the latest version of each artifact is
|
|
994
|
+
* also what the turn handed over.
|
|
995
|
+
*/
|
|
996
|
+
artifacts: ArtifactVersionResource[];
|
|
933
997
|
}
|
|
934
998
|
/**
|
|
935
999
|
* One entry of the transcript. `type` determines which fields it carries.
|
|
@@ -967,11 +1031,10 @@ export interface ThreadItemResource {
|
|
|
967
1031
|
durationMs: number | null;
|
|
968
1032
|
/**
|
|
969
1033
|
* The content, in the order it was written. Text arrives as `append` frames on the realtime
|
|
970
|
-
* stream.
|
|
971
|
-
* tool calls; their outcome is in `toolCall
|
|
1034
|
+
* stream. A file the person attached belongs where it was written, so render parts in order.
|
|
1035
|
+
* Empty for tool calls; their outcome is in `toolCall`.
|
|
972
1036
|
*/
|
|
973
1037
|
parts: PartResource[];
|
|
974
|
-
attachments: AttachmentResource[];
|
|
975
1038
|
/**
|
|
976
1039
|
* The `data-*` blocks the client attached to a user message. They are not part of what the
|
|
977
1040
|
* person wrote; render the message from `parts` and leave these out of the bubble.
|
|
@@ -1100,6 +1163,178 @@ export interface ToolResultRequestBody {
|
|
|
1100
1163
|
*/
|
|
1101
1164
|
nextCursor?: string;
|
|
1102
1165
|
}
|
|
1166
|
+
/**
|
|
1167
|
+
* Counts over everything the criteria match, ignoring `ids` and the cursor.
|
|
1168
|
+
*/
|
|
1169
|
+
export interface FileCountsResource {
|
|
1170
|
+
total: number;
|
|
1171
|
+
totalBytes: number;
|
|
1172
|
+
}
|
|
1173
|
+
export interface FileListResponseBody {
|
|
1174
|
+
files: FileResource[];
|
|
1175
|
+
/**
|
|
1176
|
+
* Null on the last page.
|
|
1177
|
+
* @nullable
|
|
1178
|
+
*/
|
|
1179
|
+
nextCursor: string | null;
|
|
1180
|
+
/** Null unless `include` asked for it. */
|
|
1181
|
+
counts: FileCountsResource | null;
|
|
1182
|
+
}
|
|
1183
|
+
/**
|
|
1184
|
+
* How the assistant reads the file.
|
|
1185
|
+
*/
|
|
1186
|
+
export type SearchFilesRequestBodyType = (typeof SearchFilesRequestBodyType)[keyof typeof SearchFilesRequestBodyType];
|
|
1187
|
+
export declare const SearchFilesRequestBodyType: {
|
|
1188
|
+
readonly image: "image";
|
|
1189
|
+
readonly text: "text";
|
|
1190
|
+
readonly binary: "binary";
|
|
1191
|
+
};
|
|
1192
|
+
export type SearchFilesRequestBodyIncludeItem = (typeof SearchFilesRequestBodyIncludeItem)[keyof typeof SearchFilesRequestBodyIncludeItem];
|
|
1193
|
+
export declare const SearchFilesRequestBodyIncludeItem: {
|
|
1194
|
+
readonly counts: "counts";
|
|
1195
|
+
};
|
|
1196
|
+
export interface SearchFilesRequestBody {
|
|
1197
|
+
/**
|
|
1198
|
+
* Read these files. Cannot be combined with cursor.
|
|
1199
|
+
* @minItems 1
|
|
1200
|
+
* @maxItems 200
|
|
1201
|
+
*/
|
|
1202
|
+
ids?: string[];
|
|
1203
|
+
/**
|
|
1204
|
+
* Matches filenames, case-insensitively.
|
|
1205
|
+
* @maxLength 100
|
|
1206
|
+
*/
|
|
1207
|
+
q?: string;
|
|
1208
|
+
/** How the assistant reads the file. */
|
|
1209
|
+
type?: SearchFilesRequestBodyType;
|
|
1210
|
+
/** True for uploads no message references, false for the rest. */
|
|
1211
|
+
draft?: boolean;
|
|
1212
|
+
/** @maxLength 1024 */
|
|
1213
|
+
cursor?: string;
|
|
1214
|
+
/**
|
|
1215
|
+
* @minimum 1
|
|
1216
|
+
* @maximum 200
|
|
1217
|
+
*/
|
|
1218
|
+
limit?: number;
|
|
1219
|
+
/** Optional parts of the response. `counts` adds `counts`. */
|
|
1220
|
+
include?: SearchFilesRequestBodyIncludeItem[];
|
|
1221
|
+
}
|
|
1222
|
+
export interface UpdateFileRequestBody {
|
|
1223
|
+
/**
|
|
1224
|
+
* @minLength 1
|
|
1225
|
+
* @maxLength 255
|
|
1226
|
+
*/
|
|
1227
|
+
filename: string;
|
|
1228
|
+
}
|
|
1229
|
+
export interface UploadConfigurationResource {
|
|
1230
|
+
enabled: boolean;
|
|
1231
|
+
policyId: string;
|
|
1232
|
+
maxFileBytes: number;
|
|
1233
|
+
maxImageBytes: number;
|
|
1234
|
+
partSizeBytes: number;
|
|
1235
|
+
expirySeconds: number;
|
|
1236
|
+
}
|
|
1237
|
+
export interface UploadPartResource {
|
|
1238
|
+
number: number;
|
|
1239
|
+
byteSize: number;
|
|
1240
|
+
etag: string;
|
|
1241
|
+
}
|
|
1242
|
+
export interface UploadResource {
|
|
1243
|
+
id: string;
|
|
1244
|
+
filename: string;
|
|
1245
|
+
byteSize: number;
|
|
1246
|
+
partSizeBytes: number;
|
|
1247
|
+
policyId: string;
|
|
1248
|
+
expiresAt: string;
|
|
1249
|
+
status: string;
|
|
1250
|
+
/**
|
|
1251
|
+
* The file the upload became. Null until the upload is complete.
|
|
1252
|
+
* @nullable
|
|
1253
|
+
*/
|
|
1254
|
+
fileId: string | null;
|
|
1255
|
+
parts: UploadPartResource[];
|
|
1256
|
+
}
|
|
1257
|
+
export interface UploadListResponseBody {
|
|
1258
|
+
uploads: UploadResource[];
|
|
1259
|
+
}
|
|
1260
|
+
export interface CreateUploadRequestBody {
|
|
1261
|
+
/**
|
|
1262
|
+
* @minLength 1
|
|
1263
|
+
* @maxLength 64
|
|
1264
|
+
*/
|
|
1265
|
+
requestId: string;
|
|
1266
|
+
/**
|
|
1267
|
+
* @minLength 1
|
|
1268
|
+
* @maxLength 255
|
|
1269
|
+
*/
|
|
1270
|
+
filename: string;
|
|
1271
|
+
byteSize: number;
|
|
1272
|
+
policyId: string;
|
|
1273
|
+
maxFileBytes: number;
|
|
1274
|
+
partSizeBytes: number;
|
|
1275
|
+
}
|
|
1276
|
+
export interface UpdateUploadRequestBody {
|
|
1277
|
+
/**
|
|
1278
|
+
* @minLength 1
|
|
1279
|
+
* @maxLength 255
|
|
1280
|
+
*/
|
|
1281
|
+
filename: string;
|
|
1282
|
+
}
|
|
1283
|
+
export interface CompleteUploadRequestBody {
|
|
1284
|
+
policyId: string;
|
|
1285
|
+
}
|
|
1286
|
+
export interface ArtifactResource {
|
|
1287
|
+
id: string;
|
|
1288
|
+
title: string;
|
|
1289
|
+
latestVersion: ArtifactVersionResource;
|
|
1290
|
+
/** @minimum 1 */
|
|
1291
|
+
versionCount: number;
|
|
1292
|
+
createdAt: string;
|
|
1293
|
+
/** When the title last changed or the latest version was added. */
|
|
1294
|
+
updatedAt: string;
|
|
1295
|
+
}
|
|
1296
|
+
export interface ArtifactListResponseBody {
|
|
1297
|
+
artifacts: ArtifactResource[];
|
|
1298
|
+
/**
|
|
1299
|
+
* Null on the last page.
|
|
1300
|
+
* @nullable
|
|
1301
|
+
*/
|
|
1302
|
+
nextCursor: string | null;
|
|
1303
|
+
}
|
|
1304
|
+
export interface ArtifactVersionListResponseBody {
|
|
1305
|
+
versions: ArtifactVersionResource[];
|
|
1306
|
+
/**
|
|
1307
|
+
* Null on the last page.
|
|
1308
|
+
* @nullable
|
|
1309
|
+
*/
|
|
1310
|
+
nextCursor: string | null;
|
|
1311
|
+
}
|
|
1312
|
+
export interface CreateArtifactRequestBody {
|
|
1313
|
+
/**
|
|
1314
|
+
* @minLength 1
|
|
1315
|
+
* @maxLength 120
|
|
1316
|
+
*/
|
|
1317
|
+
title: string;
|
|
1318
|
+
/**
|
|
1319
|
+
* @minLength 1
|
|
1320
|
+
* @maxLength 64
|
|
1321
|
+
*/
|
|
1322
|
+
fileId: string;
|
|
1323
|
+
}
|
|
1324
|
+
export interface UpdateArtifactRequestBody {
|
|
1325
|
+
/**
|
|
1326
|
+
* @minLength 1
|
|
1327
|
+
* @maxLength 120
|
|
1328
|
+
*/
|
|
1329
|
+
title: string;
|
|
1330
|
+
}
|
|
1331
|
+
export interface CreateArtifactVersionRequestBody {
|
|
1332
|
+
/**
|
|
1333
|
+
* @minLength 1
|
|
1334
|
+
* @maxLength 64
|
|
1335
|
+
*/
|
|
1336
|
+
fileId: string;
|
|
1337
|
+
}
|
|
1103
1338
|
/**
|
|
1104
1339
|
* `inbox` holds the conversations nobody filed. Each caller has one per project.
|
|
1105
1340
|
*/
|
|
@@ -1522,202 +1757,6 @@ export interface UpdateSettingsRequestBody {
|
|
|
1522
1757
|
defaultModelId?: string | null;
|
|
1523
1758
|
defaultReasoningEffort?: ReasoningEffort | null;
|
|
1524
1759
|
}
|
|
1525
|
-
/**
|
|
1526
|
-
* Counts over everything the criteria match, ignoring `ids` and the cursor.
|
|
1527
|
-
*/
|
|
1528
|
-
export interface AttachmentCountsResource {
|
|
1529
|
-
total: number;
|
|
1530
|
-
totalBytes: number;
|
|
1531
|
-
}
|
|
1532
|
-
/**
|
|
1533
|
-
* How the assistant will see this file.
|
|
1534
|
-
*/
|
|
1535
|
-
export type AttachmentFileResourceType = (typeof AttachmentFileResourceType)[keyof typeof AttachmentFileResourceType];
|
|
1536
|
-
export declare const AttachmentFileResourceType: {
|
|
1537
|
-
readonly image: "image";
|
|
1538
|
-
readonly text: "text";
|
|
1539
|
-
readonly binary: "binary";
|
|
1540
|
-
};
|
|
1541
|
-
export interface AttachmentFileResource {
|
|
1542
|
-
byteSize: number;
|
|
1543
|
-
createdAt: string;
|
|
1544
|
-
/**
|
|
1545
|
-
* When this draft is cleared if no message ever references it. Null once a message uses it —
|
|
1546
|
-
* a file that belongs to a conversation is kept as long as the conversation is.
|
|
1547
|
-
* @nullable
|
|
1548
|
-
*/
|
|
1549
|
-
draftExpiresAt: string | null;
|
|
1550
|
-
filename: string;
|
|
1551
|
-
/**
|
|
1552
|
-
* Null unless type is image.
|
|
1553
|
-
* @nullable
|
|
1554
|
-
*/
|
|
1555
|
-
height: number | null;
|
|
1556
|
-
id: string;
|
|
1557
|
-
/** Detected at intake, not the Content-Type the client sent. */
|
|
1558
|
-
mime: string;
|
|
1559
|
-
/** How the assistant will see this file. */
|
|
1560
|
-
type: AttachmentFileResourceType;
|
|
1561
|
-
updatedAt: string;
|
|
1562
|
-
/**
|
|
1563
|
-
* Null unless type is image.
|
|
1564
|
-
* @nullable
|
|
1565
|
-
*/
|
|
1566
|
-
width: number | null;
|
|
1567
|
-
}
|
|
1568
|
-
export interface AttachmentListResponseBody {
|
|
1569
|
-
attachments: AttachmentFileResource[];
|
|
1570
|
-
/**
|
|
1571
|
-
* Null on the last page.
|
|
1572
|
-
* @nullable
|
|
1573
|
-
*/
|
|
1574
|
-
nextCursor: string | null;
|
|
1575
|
-
/** Null unless `include` asked for it. */
|
|
1576
|
-
counts: AttachmentCountsResource | null;
|
|
1577
|
-
}
|
|
1578
|
-
/**
|
|
1579
|
-
* How the assistant sees the file.
|
|
1580
|
-
*/
|
|
1581
|
-
export type SearchAttachmentsRequestBodyType = (typeof SearchAttachmentsRequestBodyType)[keyof typeof SearchAttachmentsRequestBodyType];
|
|
1582
|
-
export declare const SearchAttachmentsRequestBodyType: {
|
|
1583
|
-
readonly image: "image";
|
|
1584
|
-
readonly text: "text";
|
|
1585
|
-
readonly binary: "binary";
|
|
1586
|
-
};
|
|
1587
|
-
export type SearchAttachmentsRequestBodyIncludeItem = (typeof SearchAttachmentsRequestBodyIncludeItem)[keyof typeof SearchAttachmentsRequestBodyIncludeItem];
|
|
1588
|
-
export declare const SearchAttachmentsRequestBodyIncludeItem: {
|
|
1589
|
-
readonly counts: "counts";
|
|
1590
|
-
};
|
|
1591
|
-
export interface SearchAttachmentsRequestBody {
|
|
1592
|
-
/**
|
|
1593
|
-
* Read these attachments. Cannot be combined with cursor.
|
|
1594
|
-
* @minItems 1
|
|
1595
|
-
* @maxItems 200
|
|
1596
|
-
*/
|
|
1597
|
-
ids?: string[];
|
|
1598
|
-
/**
|
|
1599
|
-
* Matches filenames, case-insensitively.
|
|
1600
|
-
* @maxLength 100
|
|
1601
|
-
*/
|
|
1602
|
-
q?: string;
|
|
1603
|
-
/** How the assistant sees the file. */
|
|
1604
|
-
type?: SearchAttachmentsRequestBodyType;
|
|
1605
|
-
/** True for uploads no message references, false for the rest. */
|
|
1606
|
-
draft?: boolean;
|
|
1607
|
-
/** @maxLength 1024 */
|
|
1608
|
-
cursor?: string;
|
|
1609
|
-
/**
|
|
1610
|
-
* @minimum 1
|
|
1611
|
-
* @maximum 200
|
|
1612
|
-
*/
|
|
1613
|
-
limit?: number;
|
|
1614
|
-
/** Optional parts of the response. `counts` adds `counts`. */
|
|
1615
|
-
include?: SearchAttachmentsRequestBodyIncludeItem[];
|
|
1616
|
-
}
|
|
1617
|
-
export interface UpdateAttachmentRequestBody {
|
|
1618
|
-
/**
|
|
1619
|
-
* @minLength 1
|
|
1620
|
-
* @maxLength 255
|
|
1621
|
-
*/
|
|
1622
|
-
filename: string;
|
|
1623
|
-
}
|
|
1624
|
-
/**
|
|
1625
|
-
* How the assistant will see this file.
|
|
1626
|
-
*
|
|
1627
|
-
* - `image` — read directly, and only by models that accept image input
|
|
1628
|
-
* - `text` — placed inline in the message when small enough, otherwise read on demand
|
|
1629
|
-
* - `binary` — never read directly; the assistant downloads it onto a cloud instance to work with it
|
|
1630
|
-
*/
|
|
1631
|
-
export type UploadedResourceType = (typeof UploadedResourceType)[keyof typeof UploadedResourceType];
|
|
1632
|
-
export declare const UploadedResourceType: {
|
|
1633
|
-
readonly image: "image";
|
|
1634
|
-
readonly text: "text";
|
|
1635
|
-
readonly binary: "binary";
|
|
1636
|
-
};
|
|
1637
|
-
export interface UploadedResource {
|
|
1638
|
-
/** Size of what was stored. For an image that has been resized, this is the resized size, not what was uploaded. */
|
|
1639
|
-
byteSize: number;
|
|
1640
|
-
/**
|
|
1641
|
-
* When this upload gets cleared if no message ever references it. Sending a message with this id makes it permanent and this stops applying — a file that belongs to a conversation is kept as long as the conversation is.
|
|
1642
|
-
*
|
|
1643
|
-
* It is here so the editor can say so before it happens. An attachment chip that quietly stops working a week later reads as a bug, and the person who hits it has no way to tell that what they are seeing is a draft being collected.
|
|
1644
|
-
*/
|
|
1645
|
-
draftExpiresAt: string;
|
|
1646
|
-
filename: string;
|
|
1647
|
-
/**
|
|
1648
|
-
* Null unless type is image.
|
|
1649
|
-
* @nullable
|
|
1650
|
-
*/
|
|
1651
|
-
height: number | null;
|
|
1652
|
-
id: string;
|
|
1653
|
-
/**
|
|
1654
|
-
* How the assistant will see this file.
|
|
1655
|
-
*
|
|
1656
|
-
* - `image` — read directly, and only by models that accept image input
|
|
1657
|
-
* - `text` — placed inline in the message when small enough, otherwise read on demand
|
|
1658
|
-
* - `binary` — never read directly; the assistant downloads it onto a cloud instance to work with it
|
|
1659
|
-
*/
|
|
1660
|
-
type: UploadedResourceType;
|
|
1661
|
-
/**
|
|
1662
|
-
* Null unless type is image.
|
|
1663
|
-
* @nullable
|
|
1664
|
-
*/
|
|
1665
|
-
width: number | null;
|
|
1666
|
-
}
|
|
1667
|
-
export interface UploadConfigurationResource {
|
|
1668
|
-
enabled: boolean;
|
|
1669
|
-
policyId: string;
|
|
1670
|
-
maxFileBytes: number;
|
|
1671
|
-
maxImageBytes: number;
|
|
1672
|
-
partSizeBytes: number;
|
|
1673
|
-
expirySeconds: number;
|
|
1674
|
-
}
|
|
1675
|
-
export interface UploadPartResource {
|
|
1676
|
-
number: number;
|
|
1677
|
-
byteSize: number;
|
|
1678
|
-
etag: string;
|
|
1679
|
-
}
|
|
1680
|
-
export interface UploadResource {
|
|
1681
|
-
id: string;
|
|
1682
|
-
filename: string;
|
|
1683
|
-
byteSize: number;
|
|
1684
|
-
partSizeBytes: number;
|
|
1685
|
-
policyId: string;
|
|
1686
|
-
expiresAt: string;
|
|
1687
|
-
status: string;
|
|
1688
|
-
/** @nullable */
|
|
1689
|
-
attachmentId: string | null;
|
|
1690
|
-
parts: UploadPartResource[];
|
|
1691
|
-
}
|
|
1692
|
-
export interface UploadListResponseBody {
|
|
1693
|
-
uploads: UploadResource[];
|
|
1694
|
-
}
|
|
1695
|
-
export interface CreateUploadRequestBody {
|
|
1696
|
-
/**
|
|
1697
|
-
* @minLength 1
|
|
1698
|
-
* @maxLength 64
|
|
1699
|
-
*/
|
|
1700
|
-
requestId: string;
|
|
1701
|
-
/**
|
|
1702
|
-
* @minLength 1
|
|
1703
|
-
* @maxLength 255
|
|
1704
|
-
*/
|
|
1705
|
-
filename: string;
|
|
1706
|
-
byteSize: number;
|
|
1707
|
-
policyId: string;
|
|
1708
|
-
maxFileBytes: number;
|
|
1709
|
-
partSizeBytes: number;
|
|
1710
|
-
}
|
|
1711
|
-
export interface UpdateUploadRequestBody {
|
|
1712
|
-
/**
|
|
1713
|
-
* @minLength 1
|
|
1714
|
-
* @maxLength 255
|
|
1715
|
-
*/
|
|
1716
|
-
filename: string;
|
|
1717
|
-
}
|
|
1718
|
-
export interface CompleteUploadRequestBody {
|
|
1719
|
-
policyId: string;
|
|
1720
|
-
}
|
|
1721
1760
|
export interface MemoryResource {
|
|
1722
1761
|
/** The fact itself */
|
|
1723
1762
|
body: string;
|
|
@@ -2206,7 +2245,7 @@ export type ListTaskRunsParams = {
|
|
|
2206
2245
|
*/
|
|
2207
2246
|
limit?: number;
|
|
2208
2247
|
};
|
|
2209
|
-
export type
|
|
2248
|
+
export type UploadFileParams = {
|
|
2210
2249
|
/**
|
|
2211
2250
|
* The name to show and to give the assistant. Images do not need one; anything else does, because the name is most of what says what the file is. Falls back to a generated name.
|
|
2212
2251
|
* @maxLength 255
|
|
@@ -2222,6 +2261,39 @@ export type PutUploadPartHeaders = {
|
|
|
2222
2261
|
*/
|
|
2223
2262
|
"X-Part-Size": number;
|
|
2224
2263
|
};
|
|
2264
|
+
export type ListArtifactsParams = {
|
|
2265
|
+
/**
|
|
2266
|
+
* Only artifacts with a version created in this conversation.
|
|
2267
|
+
* @maxLength 64
|
|
2268
|
+
*/
|
|
2269
|
+
thread?: string;
|
|
2270
|
+
/**
|
|
2271
|
+
* The next_cursor returned by the previous page. Omit it for the first page.
|
|
2272
|
+
* @minLength 1
|
|
2273
|
+
* @maxLength 1024
|
|
2274
|
+
*/
|
|
2275
|
+
cursor?: string;
|
|
2276
|
+
/**
|
|
2277
|
+
* Items returned in this page. Defaults to 50; at most 200.
|
|
2278
|
+
* @minimum 1
|
|
2279
|
+
* @maximum 200
|
|
2280
|
+
*/
|
|
2281
|
+
limit?: number;
|
|
2282
|
+
};
|
|
2283
|
+
export type ListArtifactVersionsParams = {
|
|
2284
|
+
/**
|
|
2285
|
+
* The next_cursor returned by the previous page. Omit it for the first page.
|
|
2286
|
+
* @minLength 1
|
|
2287
|
+
* @maxLength 1024
|
|
2288
|
+
*/
|
|
2289
|
+
cursor?: string;
|
|
2290
|
+
/**
|
|
2291
|
+
* Items returned in this page. Defaults to 50; at most 200.
|
|
2292
|
+
* @minimum 1
|
|
2293
|
+
* @maximum 200
|
|
2294
|
+
*/
|
|
2295
|
+
limit?: number;
|
|
2296
|
+
};
|
|
2225
2297
|
export type ListBindingsParams = {
|
|
2226
2298
|
/**
|
|
2227
2299
|
* Items returned in this page. Defaults to 50; at most 200.
|
|
@@ -89,7 +89,7 @@ export const PartResourceType = {
|
|
|
89
89
|
text: "text",
|
|
90
90
|
file: "file",
|
|
91
91
|
};
|
|
92
|
-
export const
|
|
92
|
+
export const FileResourceType = {
|
|
93
93
|
image: "image",
|
|
94
94
|
text: "text",
|
|
95
95
|
binary: "binary",
|
|
@@ -115,6 +115,14 @@ export const ToolCallResourceApprovalSource = {
|
|
|
115
115
|
auto_review: "auto_review",
|
|
116
116
|
policy: "policy",
|
|
117
117
|
};
|
|
118
|
+
export const SearchFilesRequestBodyType = {
|
|
119
|
+
image: "image",
|
|
120
|
+
text: "text",
|
|
121
|
+
binary: "binary",
|
|
122
|
+
};
|
|
123
|
+
export const SearchFilesRequestBodyIncludeItem = {
|
|
124
|
+
counts: "counts",
|
|
125
|
+
};
|
|
118
126
|
export const FolderResourceType = {
|
|
119
127
|
inbox: "inbox",
|
|
120
128
|
custom: "custom",
|
|
@@ -175,24 +183,6 @@ export const DefaultModelResourceSource = {
|
|
|
175
183
|
user: "user",
|
|
176
184
|
catalog: "catalog",
|
|
177
185
|
};
|
|
178
|
-
export const AttachmentFileResourceType = {
|
|
179
|
-
image: "image",
|
|
180
|
-
text: "text",
|
|
181
|
-
binary: "binary",
|
|
182
|
-
};
|
|
183
|
-
export const SearchAttachmentsRequestBodyType = {
|
|
184
|
-
image: "image",
|
|
185
|
-
text: "text",
|
|
186
|
-
binary: "binary",
|
|
187
|
-
};
|
|
188
|
-
export const SearchAttachmentsRequestBodyIncludeItem = {
|
|
189
|
-
counts: "counts",
|
|
190
|
-
};
|
|
191
|
-
export const UploadedResourceType = {
|
|
192
|
-
image: "image",
|
|
193
|
-
text: "text",
|
|
194
|
-
binary: "binary",
|
|
195
|
-
};
|
|
196
186
|
export const SkillResourceOrigin = {
|
|
197
187
|
builtin: "builtin",
|
|
198
188
|
project: "project",
|