@budibase/frontend-core 3.37.5 → 3.38.1
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.
|
|
3
|
+
"version": "3.38.1",
|
|
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": "
|
|
26
|
+
"gitHead": "5c558700d0c4dbc554a935b71b9ac99ec263a654"
|
|
27
27
|
}
|
package/src/api/agents.ts
CHANGED
|
@@ -8,7 +8,6 @@ import {
|
|
|
8
8
|
DuplicateAgentResponse,
|
|
9
9
|
FetchAgentKnowledgeResponse,
|
|
10
10
|
FetchAgentKnowledgeSourceEntriesResponse,
|
|
11
|
-
FetchAgentKnowledgeSourceConnectionsResponse,
|
|
12
11
|
FetchAgentKnowledgeSourceOptionsResponse,
|
|
13
12
|
FetchAgentsResponse,
|
|
14
13
|
ProvisionAgentSlackChannelRequest,
|
|
@@ -71,9 +70,9 @@ export interface AgentEndpoints {
|
|
|
71
70
|
fileId: string
|
|
72
71
|
) => Promise<{ deleted: true }>
|
|
73
72
|
fetchAgentKnowledgeSourceOptions: (
|
|
74
|
-
|
|
73
|
+
datasourceId: string,
|
|
74
|
+
authConfigId: string
|
|
75
75
|
) => Promise<FetchAgentKnowledgeSourceOptionsResponse>
|
|
76
|
-
fetchAgentKnowledgeSourceConnections: () => Promise<FetchAgentKnowledgeSourceConnectionsResponse>
|
|
77
76
|
fetchAgentKnowledgeSourceAllEntries: (
|
|
78
77
|
agentId: string,
|
|
79
78
|
siteId: string
|
|
@@ -220,15 +219,12 @@ export const buildAgentEndpoints = (API: BaseAPIClient): AgentEndpoints => ({
|
|
|
220
219
|
})
|
|
221
220
|
},
|
|
222
221
|
|
|
223
|
-
fetchAgentKnowledgeSourceOptions: async (
|
|
222
|
+
fetchAgentKnowledgeSourceOptions: async (
|
|
223
|
+
datasourceId: string,
|
|
224
|
+
authConfigId: string
|
|
225
|
+
) => {
|
|
224
226
|
return await API.get<FetchAgentKnowledgeSourceOptionsResponse>({
|
|
225
|
-
url: `/api/knowledge-sources/${encodeURIComponent(
|
|
226
|
-
})
|
|
227
|
-
},
|
|
228
|
-
|
|
229
|
-
fetchAgentKnowledgeSourceConnections: async () => {
|
|
230
|
-
return await API.get<FetchAgentKnowledgeSourceConnectionsResponse>({
|
|
231
|
-
url: "/api/agent/knowledge-sources/connections",
|
|
227
|
+
url: `/api/knowledge-sources/${encodeURIComponent(datasourceId)}/${encodeURIComponent(authConfigId)}/options`,
|
|
232
228
|
})
|
|
233
229
|
},
|
|
234
230
|
|
package/src/api/user.ts
CHANGED
|
@@ -42,7 +42,6 @@ export interface UserEndpoints {
|
|
|
42
42
|
saveUser: (user: UnsavedUser) => Promise<SaveUserResponse>
|
|
43
43
|
deleteUser: (userId: string) => Promise<DeleteUserResponse>
|
|
44
44
|
deleteUsers: (users: UserIdentifier[]) => Promise<BulkUserDeleted | undefined>
|
|
45
|
-
onboardUsers: (data: InviteUsersRequest) => Promise<InviteUsersResponse>
|
|
46
45
|
getUserInvite: (
|
|
47
46
|
code: string,
|
|
48
47
|
tenantId?: string
|
|
@@ -184,16 +183,6 @@ export const buildUserEndpoints = (API: BaseAPIClient): UserEndpoints => ({
|
|
|
184
183
|
return res.deleted
|
|
185
184
|
},
|
|
186
185
|
|
|
187
|
-
/**
|
|
188
|
-
* Onboards multiple users
|
|
189
|
-
*/
|
|
190
|
-
onboardUsers: async data => {
|
|
191
|
-
return await API.post({
|
|
192
|
-
url: "/api/global/users/onboard",
|
|
193
|
-
body: data,
|
|
194
|
-
})
|
|
195
|
-
},
|
|
196
|
-
|
|
197
186
|
addWorkspaceIdToInvite: async (code, role) => {
|
|
198
187
|
return await API.post<void, UpdateInviteResponse>({
|
|
199
188
|
url: `/api/global/users/invite/${code}/${role}`,
|
|
@@ -26,7 +26,6 @@
|
|
|
26
26
|
export let agentAvailability: AgentAvailability = "ready"
|
|
27
27
|
|
|
28
28
|
export let chat: ChatConversationLike
|
|
29
|
-
export let loading: boolean = false
|
|
30
29
|
export let suppressAgentPicker: boolean = false
|
|
31
30
|
export let workspaceId: string
|
|
32
31
|
export let initialPrompt: string = ""
|