mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 02:18:08 +08:00
feat(skill): add oRPC contract and hook for file download URL
Add frontend oRPC integration for the existing backend download URL endpoint to enable file downloads from the asset tree.
This commit is contained in:
@ -70,6 +70,14 @@ export type AppAssetFileContentResponse = {
|
||||
content: string
|
||||
}
|
||||
|
||||
/**
|
||||
* File download URL response (GET /apps/{app_id}/assets/files/{node_id}/download-url)
|
||||
*/
|
||||
export type AppAssetFileDownloadUrlResponse = {
|
||||
/** Presigned download URL */
|
||||
download_url: string
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete node response (DELETE /apps/{app_id}/assets/nodes/{node_id})
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user