@budibase/frontend-core 3.28.2 → 3.28.3

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/api/agents.ts +16 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@budibase/frontend-core",
3
- "version": "3.28.2",
3
+ "version": "3.28.3",
4
4
  "description": "Budibase frontend core libraries used in builder and client",
5
5
  "author": "Budibase",
6
6
  "license": "MPL-2.0",
@@ -24,5 +24,5 @@
24
24
  "devDependencies": {
25
25
  "vitest": "^3.2.4"
26
26
  },
27
- "gitHead": "b2bb9e6fcbd6ae283ab41464e5552af68f3a12a1"
27
+ "gitHead": "40bc76dc62aa2c1876e442d464c17aa388630975"
28
28
  }
package/src/api/agents.ts CHANGED
@@ -5,6 +5,8 @@ import {
5
5
  DuplicateAgentResponse,
6
6
  FetchAgentFilesResponse,
7
7
  FetchAgentsResponse,
8
+ SyncAgentDiscordCommandsRequest,
9
+ SyncAgentDiscordCommandsResponse,
8
10
  ToolMetadata,
9
11
  UpdateAgentRequest,
10
12
  UpdateAgentResponse,
@@ -28,6 +30,10 @@ export interface AgentEndpoints {
28
30
  agentId: string,
29
31
  fileId: string
30
32
  ) => Promise<{ deleted: true }>
33
+ syncAgentDiscordCommands: (
34
+ agentId: string,
35
+ body?: SyncAgentDiscordCommandsRequest
36
+ ) => Promise<SyncAgentDiscordCommandsResponse>
31
37
  }
32
38
 
33
39
  export const buildAgentEndpoints = (API: BaseAPIClient): AgentEndpoints => ({
@@ -92,4 +98,14 @@ export const buildAgentEndpoints = (API: BaseAPIClient): AgentEndpoints => ({
92
98
  url: `/api/agent/${agentId}/files/${fileId}`,
93
99
  })
94
100
  },
101
+
102
+ syncAgentDiscordCommands: async (agentId: string, body) => {
103
+ return await API.post<
104
+ SyncAgentDiscordCommandsRequest | undefined,
105
+ SyncAgentDiscordCommandsResponse
106
+ >({
107
+ url: `/api/agent/${agentId}/discord/sync`,
108
+ body,
109
+ })
110
+ },
95
111
  })