mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 02:18:08 +08:00
feat: plugin permission
This commit is contained in:
@ -6,6 +6,7 @@ import type {
|
||||
EndpointsRequest,
|
||||
EndpointsResponse,
|
||||
InstallPackageResponse,
|
||||
Permissions,
|
||||
PluginDeclaration,
|
||||
PluginManifestInMarket,
|
||||
TaskStatusResponse,
|
||||
@ -101,3 +102,11 @@ export const fetchMarketplaceCollectionPlugins: Fetcher<MarketplaceCollectionPlu
|
||||
export const checkTaskStatus = async (taskId: string) => {
|
||||
return get<TaskStatusResponse>(`/workspaces/current/plugin/tasks/${taskId}`)
|
||||
}
|
||||
|
||||
export const fetchPermission = async () => {
|
||||
return get<Permissions>('/workspaces/current/plugin/permission/fetch')
|
||||
}
|
||||
|
||||
export const updatePermission = async (permissions: Permissions) => {
|
||||
return post('/workspaces/current/plugin/permission/change', { body: permissions })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user