@budibase/frontend-core 3.37.3 → 3.37.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@budibase/frontend-core",
3
- "version": "3.37.3",
3
+ "version": "3.37.4",
4
4
  "description": "Budibase frontend core libraries used in builder and client",
5
5
  "author": "Budibase",
6
6
  "license": "MPL-2.0",
@@ -23,5 +23,5 @@
23
23
  "devDependencies": {
24
24
  "vitest": "^3.2.4"
25
25
  },
26
- "gitHead": "ca7841a3a42b1a1328df0cbb96a51650c0c1e8a7"
26
+ "gitHead": "cde1ea48fb34a1f21307a047066170830f41f2f2"
27
27
  }
package/src/api/agents.ts CHANGED
@@ -71,7 +71,7 @@ export interface AgentEndpoints {
71
71
  fileId: string
72
72
  ) => Promise<{ deleted: true }>
73
73
  fetchAgentKnowledgeSourceOptions: (
74
- agentId: string
74
+ connectionId: string
75
75
  ) => Promise<FetchAgentKnowledgeSourceOptionsResponse>
76
76
  fetchAgentKnowledgeSourceConnections: () => Promise<FetchAgentKnowledgeSourceConnectionsResponse>
77
77
  fetchAgentKnowledgeSourceAllEntries: (
@@ -220,9 +220,9 @@ export const buildAgentEndpoints = (API: BaseAPIClient): AgentEndpoints => ({
220
220
  })
221
221
  },
222
222
 
223
- fetchAgentKnowledgeSourceOptions: async (agentId: string) => {
223
+ fetchAgentKnowledgeSourceOptions: async (connectionId: string) => {
224
224
  return await API.get<FetchAgentKnowledgeSourceOptionsResponse>({
225
- url: `/api/agent/${agentId}/knowledge-sources/options`,
225
+ url: `/api/knowledge-sources/${encodeURIComponent(connectionId)}/options`,
226
226
  })
227
227
  },
228
228