refactor: agents sharing and shared with me logic

This commit is contained in:
Siddhant Rai
2025-05-28 13:58:55 +05:30
parent b7a6bad7cd
commit ad1a944276
6 changed files with 158 additions and 137 deletions

View File

@@ -41,8 +41,8 @@ const userService = {
apiClient.get(endpoints.USER.SHARED_AGENTS, token),
shareAgent: (data: any, token: string | null): Promise<any> =>
apiClient.put(endpoints.USER.SHARE_AGENT, data, token),
hideSharedAgent: (id: string, token: string | null): Promise<any> =>
apiClient.delete(endpoints.USER.HIDE_SHARED_AGENT(id), token),
removeSharedAgent: (id: string, token: string | null): Promise<any> =>
apiClient.delete(endpoints.USER.REMOVE_SHARED_AGENT(id), token),
getAgentWebhook: (id: string, token: string | null): Promise<any> =>
apiClient.get(endpoints.USER.AGENT_WEBHOOK(id), token),
getPrompts: (token: string | null): Promise<any> =>