Merge branch 'develop' into release/v0.2.7
This commit is contained in:
@@ -2,11 +2,11 @@
|
||||
* @Author: ZhaoYing
|
||||
* @Date: 2026-02-03 13:59:45
|
||||
* @Last Modified by: ZhaoYing
|
||||
* @Last Modified time: 2026-03-03 12:08:42
|
||||
* @Last Modified time: 2026-03-13 17:07:54
|
||||
*/
|
||||
import { request } from '@/utils/request'
|
||||
import type { ApplicationModalData } from '@/views/ApplicationManagement/types'
|
||||
import type { Config } from '@/views/ApplicationConfig/types'
|
||||
import type { Config, AppSharingForm } from '@/views/ApplicationConfig/types'
|
||||
import { handleSSE, type SSEMessage } from '@/utils/stream'
|
||||
import type { QueryParams } from '@/views/Conversation/types'
|
||||
import type { WorkflowConfig } from '@/views/Workflow/types'
|
||||
@@ -113,8 +113,8 @@ export const getShareToken = (share_token: string, user_id: string) => {
|
||||
return request.post(`/public/share/${share_token}/token`, { user_id })
|
||||
}
|
||||
// Copy application
|
||||
export const copyApplication = (app_id: string, new_name: string) => {
|
||||
return request.post(`/apps/${app_id}/copy?new_name=${new_name}`)
|
||||
export const copyApplication = (app_id: string, new_name?: string) => {
|
||||
return request.post(`/apps/${app_id}/copy`, { new_name })
|
||||
}
|
||||
// Data statistics
|
||||
export const getAppStatistics = (app_id: string, data: { start_date: number; end_date: number; }) => {
|
||||
@@ -143,4 +143,26 @@ export const appExport = (app_id: string, appName: string, data?: { release_vers
|
||||
// Import application
|
||||
export const appImport = (formData: FormData) => {
|
||||
return request.uploadFile(`/apps/import`, formData)
|
||||
}
|
||||
}
|
||||
|
||||
// Share application
|
||||
export const appSharing = (app_id: string, data: AppSharingForm) => {
|
||||
return request.post(`/apps/${app_id}/share`, data)
|
||||
}
|
||||
// Get my shared application records
|
||||
export const mySharedOutList = () => {
|
||||
return request.get(`/apps/my-shared-out`)
|
||||
}
|
||||
// Get sharing records for a specific application
|
||||
export const getAppShares = (app_id: string) => {
|
||||
return request.get(`/apps/${app_id}/shares`)
|
||||
}
|
||||
// Cancel a single share (source side operation)
|
||||
export const cancelShare = (app_id: string, target_workspace_id?: string) => {
|
||||
return request.delete(`/apps/${app_id}/share/${target_workspace_id}`)
|
||||
}
|
||||
// Cancel all shares under a workspace (source side operation)
|
||||
export const cancelSpaceShare = (target_workspace_id?: string) => {
|
||||
return request.delete(`/apps/share/${target_workspace_id}`)
|
||||
}
|
||||
|
||||
|
||||
@@ -2,9 +2,10 @@
|
||||
* @Author: ZhaoYing
|
||||
* @Date: 2026-02-03 14:00:06
|
||||
* @Last Modified by: ZhaoYing
|
||||
* @Last Modified time: 2026-03-12 18:25:06
|
||||
* @Last Modified time: 2026-03-13 10:48:41
|
||||
*/
|
||||
import { request } from '@/utils/request'
|
||||
import type { AxiosRequestConfig } from 'axios'
|
||||
import type {
|
||||
MemoryFormData,
|
||||
} from '@/views/MemoryManagement/types'
|
||||
@@ -94,8 +95,12 @@ export const updatedEndUserProfile = (values: EndUser) => {
|
||||
return request.post(`/memory-storage/updated_end_user/profile`, values)
|
||||
}
|
||||
// User Memory - Relationship network
|
||||
export const getMemorySearchEdges = (end_user_id: string) => {
|
||||
return request.get(`/memory-storage/analytics/graph_data`, { end_user_id })
|
||||
export const getMemorySearchEdges = (end_user_id: string, config?: AxiosRequestConfig) => {
|
||||
return request.get(`/memory-storage/analytics/graph_data`, { end_user_id }, config)
|
||||
}
|
||||
// User Memory - Community graph
|
||||
export const getMemoryCommunityGraph = (end_user_id: string, config?: AxiosRequestConfig) => {
|
||||
return request.get(`/memory-storage/analytics/community_graph`, { end_user_id }, config)
|
||||
}
|
||||
// User Memory - User interest distribution
|
||||
export const getInterestDistributionByUser = (end_user_id: string) => {
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
/*
|
||||
* @Author: ZhaoYing
|
||||
* @Date: 2026-02-03 14:00:26
|
||||
* @Last Modified by: ZhaoYing
|
||||
* @Last Modified time: 2026-02-03 14:00:26
|
||||
* @Last Modified by: ZhaoYing
|
||||
* @Last Modified time: 2026-03-13 15:29:03
|
||||
*/
|
||||
import { request } from '@/utils/request'
|
||||
import type { SpaceModalData } from '@/views/SpaceManagement/types'
|
||||
import type { SpaceConfigData } from '@/views/SpaceConfig/types'
|
||||
|
||||
// Workspace list
|
||||
export const getWorkspaces = () => {
|
||||
return request.get('/workspaces')
|
||||
export const getWorkspaces = (data?: { include_current?: boolean }) => {
|
||||
return request.get('/workspaces', data)
|
||||
}
|
||||
// Create workspace
|
||||
export const createWorkspace = (values: SpaceModalData) => {
|
||||
|
||||
Reference in New Issue
Block a user