@elqnt/agents 2.1.1 → 3.0.0
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/dist/{agent-models-mCYzjfGp.d.mts → agent-models-BdtFKjV3.d.mts} +7 -9
- package/dist/{agent-models-mCYzjfGp.d.ts → agent-models-BdtFKjV3.d.ts} +7 -9
- package/dist/api/index.d.mts +40 -3
- package/dist/api/index.d.ts +40 -3
- package/dist/api/index.js +30 -2
- package/dist/api/index.js.map +1 -1
- package/dist/api/index.mjs +29 -1
- package/dist/api/server.d.mts +146 -0
- package/dist/api/server.d.ts +146 -0
- package/dist/api/server.js +226 -0
- package/dist/api/server.js.map +1 -0
- package/dist/api/server.mjs +226 -0
- package/dist/api/server.mjs.map +1 -0
- package/dist/{chunk-SWJ66D7X.js → chunk-44A5L2IY.js} +92 -2
- package/dist/chunk-44A5L2IY.js.map +1 -0
- package/dist/{chunk-K3OAYHF3.js → chunk-ADOBVUUS.js} +73 -2
- package/dist/chunk-ADOBVUUS.js.map +1 -0
- package/dist/{chunk-3VJNDDME.mjs → chunk-EUELXX27.mjs} +92 -2
- package/dist/chunk-EUELXX27.mjs.map +1 -0
- package/dist/{chunk-SZP2G5I7.mjs → chunk-O3FM26FT.mjs} +73 -2
- package/dist/chunk-O3FM26FT.mjs.map +1 -0
- package/dist/chunk-RTUQ7WKT.mjs +434 -0
- package/dist/chunk-RTUQ7WKT.mjs.map +1 -0
- package/dist/chunk-VVYOTEM2.js +434 -0
- package/dist/chunk-VVYOTEM2.js.map +1 -0
- package/dist/hooks/index.d.mts +134 -5
- package/dist/hooks/index.d.ts +134 -5
- package/dist/hooks/index.js +15 -3
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +16 -4
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +130 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +131 -5
- package/dist/models/index.d.mts +880 -2
- package/dist/models/index.d.ts +880 -2
- package/dist/models/index.js +88 -2
- package/dist/models/index.js.map +1 -1
- package/dist/models/index.mjs +87 -1
- package/package.json +20 -17
- package/dist/chunk-3VJNDDME.mjs.map +0 -1
- package/dist/chunk-K3OAYHF3.js.map +0 -1
- package/dist/chunk-O2SYQSU2.mjs +0 -398
- package/dist/chunk-O2SYQSU2.mjs.map +0 -1
- package/dist/chunk-RPXANLP2.js +0 -398
- package/dist/chunk-RPXANLP2.js.map +0 -1
- package/dist/chunk-SWJ66D7X.js.map +0 -1
- package/dist/chunk-SZP2G5I7.mjs.map +0 -1
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { ApiResponse } from '@elqnt/api-client';
|
|
2
|
+
import { ResponseMetadata } from '@elqnt/types';
|
|
3
|
+
import { cg as ListAgentsResponse, ci as ListAgentsSummaryResponse, cb as AgentResponse, b2 as Agent, a1 as SkillsListResponse, a0 as SkillResponse, a3 as GetSkillsByIDsResponse, aM as Skill, ac as SkillUserConfigResponse, ad as SkillUserConfigListResponse, af as ResolveSkillConfigResponse, K as SubAgentsListResponse, S as SubAgentResponse, bk as SubAgent, z as ToolDefinitionsListResponse, T as ToolDefinitionResponse, O as GetToolDefinitionsByIDsResponse, ba as ToolDefinition, al as AgentJobsListResponse, ak as AgentJobResponse, bR as AgentJob, eS as ListAgentWidgetsResponse, eM as AgentWidgetResponse, eC as AgentWidget } from '../agent-models-BdtFKjV3.js';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Server-side Agents API
|
|
7
|
+
*
|
|
8
|
+
* API functions for server-side usage (Server Actions, API routes, SSR).
|
|
9
|
+
* Uses serverApiRequest which generates JWT tokens internally.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* // In a Next.js Server Action
|
|
14
|
+
* "use server";
|
|
15
|
+
* import { listAgentsServer, getAgentServer } from "@elqnt/agents/api/server";
|
|
16
|
+
*
|
|
17
|
+
* export async function getAgentsList(orgId: string) {
|
|
18
|
+
* const response = await listAgentsServer({
|
|
19
|
+
* gatewayUrl: process.env.API_GATEWAY_URL!,
|
|
20
|
+
* jwtSecret: process.env.JWT_SECRET!,
|
|
21
|
+
* orgId,
|
|
22
|
+
* });
|
|
23
|
+
* return response.data?.agents || [];
|
|
24
|
+
* }
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
|
|
28
|
+
interface ServerApiOptions {
|
|
29
|
+
/** API Gateway URL */
|
|
30
|
+
gatewayUrl: string;
|
|
31
|
+
/** JWT secret for token generation */
|
|
32
|
+
jwtSecret: string;
|
|
33
|
+
/** Organization ID */
|
|
34
|
+
orgId: string;
|
|
35
|
+
/** User ID (defaults to "system") */
|
|
36
|
+
userId?: string;
|
|
37
|
+
/** User email */
|
|
38
|
+
userEmail?: string;
|
|
39
|
+
/** Request timeout in ms */
|
|
40
|
+
timeout?: number;
|
|
41
|
+
/** Cache strategy */
|
|
42
|
+
cache?: RequestCache;
|
|
43
|
+
}
|
|
44
|
+
declare function listAgentsServer(options: ServerApiOptions): Promise<ApiResponse<ListAgentsResponse>>;
|
|
45
|
+
declare function listAgentsSummaryServer(options: ServerApiOptions): Promise<ApiResponse<ListAgentsSummaryResponse>>;
|
|
46
|
+
declare function getAgentServer(agentId: string, options: ServerApiOptions): Promise<ApiResponse<AgentResponse>>;
|
|
47
|
+
declare function createAgentServer(agent: Partial<Agent>, options: ServerApiOptions): Promise<ApiResponse<AgentResponse>>;
|
|
48
|
+
declare function updateAgentServer(agentId: string, agent: Partial<Agent>, options: ServerApiOptions): Promise<ApiResponse<AgentResponse>>;
|
|
49
|
+
declare function deleteAgentServer(agentId: string, options: ServerApiOptions): Promise<ApiResponse<{
|
|
50
|
+
success: boolean;
|
|
51
|
+
metadata: ResponseMetadata;
|
|
52
|
+
}>>;
|
|
53
|
+
declare function getDefaultAgentServer(options: ServerApiOptions): Promise<ApiResponse<AgentResponse>>;
|
|
54
|
+
declare function listSkillsServer(options: ServerApiOptions): Promise<ApiResponse<SkillsListResponse>>;
|
|
55
|
+
declare function getSkillServer(skillId: string, options: ServerApiOptions): Promise<ApiResponse<SkillResponse>>;
|
|
56
|
+
declare function getSkillsByIdsServer(ids: string[], options: ServerApiOptions): Promise<ApiResponse<GetSkillsByIDsResponse>>;
|
|
57
|
+
declare function createSkillServer(skill: Partial<Skill>, options: ServerApiOptions): Promise<ApiResponse<SkillResponse>>;
|
|
58
|
+
declare function updateSkillServer(skillId: string, skill: Partial<Skill>, options: ServerApiOptions): Promise<ApiResponse<SkillResponse>>;
|
|
59
|
+
declare function deleteSkillServer(skillId: string, options: ServerApiOptions): Promise<ApiResponse<{
|
|
60
|
+
success: boolean;
|
|
61
|
+
metadata: ResponseMetadata;
|
|
62
|
+
}>>;
|
|
63
|
+
interface SkillCategoriesResponse {
|
|
64
|
+
categories: string[];
|
|
65
|
+
metadata: ResponseMetadata;
|
|
66
|
+
}
|
|
67
|
+
declare function getSkillCategoriesServer(options: ServerApiOptions): Promise<ApiResponse<SkillCategoriesResponse>>;
|
|
68
|
+
declare function getSkillUserConfigServer(skillId: string, options: ServerApiOptions & {
|
|
69
|
+
agentId?: string;
|
|
70
|
+
}): Promise<ApiResponse<SkillUserConfigResponse>>;
|
|
71
|
+
declare function updateSkillUserConfigServer(skillId: string, data: {
|
|
72
|
+
enabled?: boolean;
|
|
73
|
+
displayOrder?: number;
|
|
74
|
+
config?: Record<string, unknown>;
|
|
75
|
+
agentId?: string;
|
|
76
|
+
}, options: ServerApiOptions): Promise<ApiResponse<SkillUserConfigResponse>>;
|
|
77
|
+
declare function deleteSkillUserConfigServer(skillId: string, options: ServerApiOptions & {
|
|
78
|
+
agentId?: string;
|
|
79
|
+
}): Promise<ApiResponse<{
|
|
80
|
+
success: boolean;
|
|
81
|
+
metadata: ResponseMetadata;
|
|
82
|
+
}>>;
|
|
83
|
+
declare function listSkillUserConfigsServer(options: ServerApiOptions & {
|
|
84
|
+
agentId?: string;
|
|
85
|
+
limit?: number;
|
|
86
|
+
offset?: number;
|
|
87
|
+
}): Promise<ApiResponse<SkillUserConfigListResponse>>;
|
|
88
|
+
declare function resolveSkillConfigServer(skillId: string, agentId: string, options: ServerApiOptions): Promise<ApiResponse<ResolveSkillConfigResponse>>;
|
|
89
|
+
declare function listSubAgentsServer(options: ServerApiOptions & {
|
|
90
|
+
onlySystem?: boolean;
|
|
91
|
+
enabled?: boolean;
|
|
92
|
+
}): Promise<ApiResponse<SubAgentsListResponse>>;
|
|
93
|
+
declare function getSubAgentServer(subAgentId: string, options: ServerApiOptions): Promise<ApiResponse<SubAgentResponse>>;
|
|
94
|
+
declare function createSubAgentServer(subAgent: Partial<SubAgent>, options: ServerApiOptions): Promise<ApiResponse<SubAgentResponse>>;
|
|
95
|
+
declare function updateSubAgentServer(subAgentId: string, subAgent: Partial<SubAgent>, options: ServerApiOptions): Promise<ApiResponse<SubAgentResponse>>;
|
|
96
|
+
declare function deleteSubAgentServer(subAgentId: string, options: ServerApiOptions): Promise<ApiResponse<{
|
|
97
|
+
success: boolean;
|
|
98
|
+
metadata: ResponseMetadata;
|
|
99
|
+
}>>;
|
|
100
|
+
declare function listToolDefinitionsServer(options: ServerApiOptions & {
|
|
101
|
+
onlySystem?: boolean;
|
|
102
|
+
enabled?: boolean;
|
|
103
|
+
limit?: number;
|
|
104
|
+
offset?: number;
|
|
105
|
+
}): Promise<ApiResponse<ToolDefinitionsListResponse>>;
|
|
106
|
+
declare function getToolDefinitionServer(toolDefId: string, options: ServerApiOptions): Promise<ApiResponse<ToolDefinitionResponse>>;
|
|
107
|
+
declare function getToolDefinitionsByIdsServer(ids: string[], options: ServerApiOptions): Promise<ApiResponse<GetToolDefinitionsByIDsResponse>>;
|
|
108
|
+
declare function createToolDefinitionServer(toolDefinition: Partial<ToolDefinition>, options: ServerApiOptions): Promise<ApiResponse<ToolDefinitionResponse>>;
|
|
109
|
+
declare function updateToolDefinitionServer(toolDefId: string, toolDefinition: Partial<ToolDefinition>, options: ServerApiOptions): Promise<ApiResponse<ToolDefinitionResponse>>;
|
|
110
|
+
declare function deleteToolDefinitionServer(toolDefId: string, options: ServerApiOptions): Promise<ApiResponse<{
|
|
111
|
+
success: boolean;
|
|
112
|
+
metadata: ResponseMetadata;
|
|
113
|
+
}>>;
|
|
114
|
+
declare function listAgentJobsServer(options: ServerApiOptions & {
|
|
115
|
+
agentId?: string;
|
|
116
|
+
ownerId?: string;
|
|
117
|
+
scope?: string;
|
|
118
|
+
status?: string;
|
|
119
|
+
frequency?: string;
|
|
120
|
+
limit?: number;
|
|
121
|
+
offset?: number;
|
|
122
|
+
}): Promise<ApiResponse<AgentJobsListResponse>>;
|
|
123
|
+
declare function getAgentJobServer(jobId: string, options: ServerApiOptions): Promise<ApiResponse<AgentJobResponse>>;
|
|
124
|
+
declare function createAgentJobServer(job: Partial<AgentJob>, options: ServerApiOptions): Promise<ApiResponse<AgentJobResponse>>;
|
|
125
|
+
declare function updateAgentJobServer(jobId: string, job: Partial<AgentJob>, options: ServerApiOptions): Promise<ApiResponse<AgentJobResponse>>;
|
|
126
|
+
declare function deleteAgentJobServer(jobId: string, options: ServerApiOptions): Promise<ApiResponse<{
|
|
127
|
+
success: boolean;
|
|
128
|
+
metadata: ResponseMetadata;
|
|
129
|
+
}>>;
|
|
130
|
+
declare function pauseAgentJobServer(jobId: string, options: ServerApiOptions): Promise<ApiResponse<AgentJobResponse>>;
|
|
131
|
+
declare function resumeAgentJobServer(jobId: string, options: ServerApiOptions): Promise<ApiResponse<AgentJobResponse>>;
|
|
132
|
+
declare function listWidgetsServer(agentId: string, options: ServerApiOptions): Promise<ApiResponse<ListAgentWidgetsResponse>>;
|
|
133
|
+
declare function getDefaultWidgetServer(agentId: string, options: ServerApiOptions): Promise<ApiResponse<AgentWidgetResponse>>;
|
|
134
|
+
declare function createWidgetServer(agentId: string, widget: Partial<AgentWidget>, options: ServerApiOptions): Promise<ApiResponse<AgentWidgetResponse>>;
|
|
135
|
+
declare function getWidgetServer(widgetId: string, options: ServerApiOptions): Promise<ApiResponse<AgentWidgetResponse>>;
|
|
136
|
+
declare function updateWidgetServer(widgetId: string, widget: Partial<AgentWidget>, options: ServerApiOptions): Promise<ApiResponse<AgentWidgetResponse>>;
|
|
137
|
+
declare function deleteWidgetServer(widgetId: string, options: ServerApiOptions): Promise<ApiResponse<{
|
|
138
|
+
success: boolean;
|
|
139
|
+
metadata: ResponseMetadata;
|
|
140
|
+
}>>;
|
|
141
|
+
declare function setDefaultWidgetServer(widgetId: string, agentId: string, options: ServerApiOptions): Promise<ApiResponse<{
|
|
142
|
+
success: boolean;
|
|
143
|
+
metadata: ResponseMetadata;
|
|
144
|
+
}>>;
|
|
145
|
+
|
|
146
|
+
export { Agent, AgentJob, AgentJobResponse, AgentJobsListResponse, AgentResponse, AgentWidget, AgentWidgetResponse, ListAgentWidgetsResponse, ListAgentsResponse, ListAgentsSummaryResponse, type ServerApiOptions, Skill, type SkillCategoriesResponse, SkillResponse, SkillsListResponse, SubAgent, SubAgentResponse, SubAgentsListResponse, ToolDefinition, ToolDefinitionResponse, ToolDefinitionsListResponse, createAgentJobServer, createAgentServer, createSkillServer, createSubAgentServer, createToolDefinitionServer, createWidgetServer, deleteAgentJobServer, deleteAgentServer, deleteSkillServer, deleteSkillUserConfigServer, deleteSubAgentServer, deleteToolDefinitionServer, deleteWidgetServer, getAgentJobServer, getAgentServer, getDefaultAgentServer, getDefaultWidgetServer, getSkillCategoriesServer, getSkillServer, getSkillUserConfigServer, getSkillsByIdsServer, getSubAgentServer, getToolDefinitionServer, getToolDefinitionsByIdsServer, getWidgetServer, listAgentJobsServer, listAgentsServer, listAgentsSummaryServer, listSkillUserConfigsServer, listSkillsServer, listSubAgentsServer, listToolDefinitionsServer, listWidgetsServer, pauseAgentJobServer, resolveSkillConfigServer, resumeAgentJobServer, setDefaultWidgetServer, updateAgentJobServer, updateAgentServer, updateSkillServer, updateSkillUserConfigServer, updateSubAgentServer, updateToolDefinitionServer, updateWidgetServer };
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
|
+
|
|
3
|
+
// api/server.ts
|
|
4
|
+
var _server = require('@elqnt/api-client/server');
|
|
5
|
+
function buildRequestOptions(options, method = "GET", body) {
|
|
6
|
+
return {
|
|
7
|
+
gatewayUrl: options.gatewayUrl,
|
|
8
|
+
jwtSecret: options.jwtSecret,
|
|
9
|
+
orgId: options.orgId,
|
|
10
|
+
userId: options.userId,
|
|
11
|
+
userEmail: options.userEmail,
|
|
12
|
+
timeout: options.timeout,
|
|
13
|
+
cache: options.cache,
|
|
14
|
+
method,
|
|
15
|
+
body
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
async function listAgentsServer(options) {
|
|
19
|
+
return _server.serverApiRequest.call(void 0, "/api/v1/agents", buildRequestOptions(options, "GET"));
|
|
20
|
+
}
|
|
21
|
+
async function listAgentsSummaryServer(options) {
|
|
22
|
+
return _server.serverApiRequest.call(void 0, "/api/v1/agents/summary", buildRequestOptions(options, "GET"));
|
|
23
|
+
}
|
|
24
|
+
async function getAgentServer(agentId, options) {
|
|
25
|
+
return _server.serverApiRequest.call(void 0, `/api/v1/agents/${agentId}`, buildRequestOptions(options, "GET"));
|
|
26
|
+
}
|
|
27
|
+
async function createAgentServer(agent, options) {
|
|
28
|
+
return _server.serverApiRequest.call(void 0, "/api/v1/agents", buildRequestOptions(options, "POST", { agent }));
|
|
29
|
+
}
|
|
30
|
+
async function updateAgentServer(agentId, agent, options) {
|
|
31
|
+
return _server.serverApiRequest.call(void 0, `/api/v1/agents/${agentId}`, buildRequestOptions(options, "PUT", { agent }));
|
|
32
|
+
}
|
|
33
|
+
async function deleteAgentServer(agentId, options) {
|
|
34
|
+
return _server.serverApiRequest.call(void 0, `/api/v1/agents/${agentId}`, buildRequestOptions(options, "DELETE"));
|
|
35
|
+
}
|
|
36
|
+
async function getDefaultAgentServer(options) {
|
|
37
|
+
return _server.serverApiRequest.call(void 0, "/api/v1/agents/default", buildRequestOptions(options, "GET"));
|
|
38
|
+
}
|
|
39
|
+
async function listSkillsServer(options) {
|
|
40
|
+
return _server.serverApiRequest.call(void 0, "/api/v1/skills", buildRequestOptions(options, "GET"));
|
|
41
|
+
}
|
|
42
|
+
async function getSkillServer(skillId, options) {
|
|
43
|
+
return _server.serverApiRequest.call(void 0, `/api/v1/skills/${skillId}`, buildRequestOptions(options, "GET"));
|
|
44
|
+
}
|
|
45
|
+
async function getSkillsByIdsServer(ids, options) {
|
|
46
|
+
return _server.serverApiRequest.call(void 0, "/api/v1/skills/by-ids", buildRequestOptions(options, "POST", { ids }));
|
|
47
|
+
}
|
|
48
|
+
async function createSkillServer(skill, options) {
|
|
49
|
+
return _server.serverApiRequest.call(void 0, "/api/v1/skills", buildRequestOptions(options, "POST", { skill }));
|
|
50
|
+
}
|
|
51
|
+
async function updateSkillServer(skillId, skill, options) {
|
|
52
|
+
return _server.serverApiRequest.call(void 0, `/api/v1/skills/${skillId}`, buildRequestOptions(options, "PUT", { skill }));
|
|
53
|
+
}
|
|
54
|
+
async function deleteSkillServer(skillId, options) {
|
|
55
|
+
return _server.serverApiRequest.call(void 0, `/api/v1/skills/${skillId}`, buildRequestOptions(options, "DELETE"));
|
|
56
|
+
}
|
|
57
|
+
async function getSkillCategoriesServer(options) {
|
|
58
|
+
return _server.serverApiRequest.call(void 0, "/api/v1/skills/categories", buildRequestOptions(options, "GET"));
|
|
59
|
+
}
|
|
60
|
+
async function getSkillUserConfigServer(skillId, options) {
|
|
61
|
+
const params = new URLSearchParams();
|
|
62
|
+
if (options.agentId) params.set("agentId", options.agentId);
|
|
63
|
+
const query = params.toString();
|
|
64
|
+
return _server.serverApiRequest.call(void 0, `/api/v1/skills/${skillId}/user-config${query ? `?${query}` : ""}`, buildRequestOptions(options, "GET"));
|
|
65
|
+
}
|
|
66
|
+
async function updateSkillUserConfigServer(skillId, data, options) {
|
|
67
|
+
return _server.serverApiRequest.call(void 0, `/api/v1/skills/${skillId}/user-config`, buildRequestOptions(options, "PUT", data));
|
|
68
|
+
}
|
|
69
|
+
async function deleteSkillUserConfigServer(skillId, options) {
|
|
70
|
+
const params = new URLSearchParams();
|
|
71
|
+
if (options.agentId) params.set("agentId", options.agentId);
|
|
72
|
+
const query = params.toString();
|
|
73
|
+
return _server.serverApiRequest.call(void 0, `/api/v1/skills/${skillId}/user-config${query ? `?${query}` : ""}`, buildRequestOptions(options, "DELETE"));
|
|
74
|
+
}
|
|
75
|
+
async function listSkillUserConfigsServer(options) {
|
|
76
|
+
const params = new URLSearchParams();
|
|
77
|
+
if (options.agentId) params.set("agentId", options.agentId);
|
|
78
|
+
if (options.limit) params.set("limit", String(options.limit));
|
|
79
|
+
if (options.offset) params.set("offset", String(options.offset));
|
|
80
|
+
const query = params.toString();
|
|
81
|
+
return _server.serverApiRequest.call(void 0, `/api/v1/skills/user-configs${query ? `?${query}` : ""}`, buildRequestOptions(options, "GET"));
|
|
82
|
+
}
|
|
83
|
+
async function resolveSkillConfigServer(skillId, agentId, options) {
|
|
84
|
+
return _server.serverApiRequest.call(void 0, `/api/v1/skills/${skillId}/resolve-config?agentId=${agentId}`, buildRequestOptions(options, "GET"));
|
|
85
|
+
}
|
|
86
|
+
async function listSubAgentsServer(options) {
|
|
87
|
+
const params = new URLSearchParams();
|
|
88
|
+
if (options.onlySystem !== void 0) params.set("onlySystem", String(options.onlySystem));
|
|
89
|
+
if (options.enabled !== void 0) params.set("enabled", String(options.enabled));
|
|
90
|
+
const queryString = params.toString();
|
|
91
|
+
return _server.serverApiRequest.call(void 0, `/api/v1/subagents${queryString ? `?${queryString}` : ""}`, buildRequestOptions(options, "GET"));
|
|
92
|
+
}
|
|
93
|
+
async function getSubAgentServer(subAgentId, options) {
|
|
94
|
+
return _server.serverApiRequest.call(void 0, `/api/v1/subagents/${subAgentId}`, buildRequestOptions(options, "GET"));
|
|
95
|
+
}
|
|
96
|
+
async function createSubAgentServer(subAgent, options) {
|
|
97
|
+
return _server.serverApiRequest.call(void 0, "/api/v1/subagents", buildRequestOptions(options, "POST", { subAgent }));
|
|
98
|
+
}
|
|
99
|
+
async function updateSubAgentServer(subAgentId, subAgent, options) {
|
|
100
|
+
return _server.serverApiRequest.call(void 0, `/api/v1/subagents/${subAgentId}`, buildRequestOptions(options, "PUT", { subAgent }));
|
|
101
|
+
}
|
|
102
|
+
async function deleteSubAgentServer(subAgentId, options) {
|
|
103
|
+
return _server.serverApiRequest.call(void 0, `/api/v1/subagents/${subAgentId}`, buildRequestOptions(options, "DELETE"));
|
|
104
|
+
}
|
|
105
|
+
async function listToolDefinitionsServer(options) {
|
|
106
|
+
const params = new URLSearchParams();
|
|
107
|
+
if (options.onlySystem !== void 0) params.set("onlySystem", String(options.onlySystem));
|
|
108
|
+
if (options.enabled !== void 0) params.set("enabled", String(options.enabled));
|
|
109
|
+
if (options.limit !== void 0) params.set("limit", String(options.limit));
|
|
110
|
+
if (options.offset !== void 0) params.set("offset", String(options.offset));
|
|
111
|
+
const queryString = params.toString();
|
|
112
|
+
return _server.serverApiRequest.call(void 0, `/api/v1/tool-definitions${queryString ? `?${queryString}` : ""}`, buildRequestOptions(options, "GET"));
|
|
113
|
+
}
|
|
114
|
+
async function getToolDefinitionServer(toolDefId, options) {
|
|
115
|
+
return _server.serverApiRequest.call(void 0, `/api/v1/tool-definitions/${toolDefId}`, buildRequestOptions(options, "GET"));
|
|
116
|
+
}
|
|
117
|
+
async function getToolDefinitionsByIdsServer(ids, options) {
|
|
118
|
+
return _server.serverApiRequest.call(void 0, "/api/v1/tool-definitions/by-ids", buildRequestOptions(options, "POST", { ids }));
|
|
119
|
+
}
|
|
120
|
+
async function createToolDefinitionServer(toolDefinition, options) {
|
|
121
|
+
return _server.serverApiRequest.call(void 0, "/api/v1/tool-definitions", buildRequestOptions(options, "POST", { toolDefinition }));
|
|
122
|
+
}
|
|
123
|
+
async function updateToolDefinitionServer(toolDefId, toolDefinition, options) {
|
|
124
|
+
return _server.serverApiRequest.call(void 0, `/api/v1/tool-definitions/${toolDefId}`, buildRequestOptions(options, "PUT", { toolDefinition }));
|
|
125
|
+
}
|
|
126
|
+
async function deleteToolDefinitionServer(toolDefId, options) {
|
|
127
|
+
return _server.serverApiRequest.call(void 0, `/api/v1/tool-definitions/${toolDefId}`, buildRequestOptions(options, "DELETE"));
|
|
128
|
+
}
|
|
129
|
+
async function listAgentJobsServer(options) {
|
|
130
|
+
const params = new URLSearchParams();
|
|
131
|
+
if (options.agentId) params.set("agentId", options.agentId);
|
|
132
|
+
if (options.ownerId) params.set("ownerId", options.ownerId);
|
|
133
|
+
if (options.scope) params.set("scope", options.scope);
|
|
134
|
+
if (options.status) params.set("status", options.status);
|
|
135
|
+
if (options.frequency) params.set("frequency", options.frequency);
|
|
136
|
+
if (options.limit !== void 0) params.set("limit", String(options.limit));
|
|
137
|
+
if (options.offset !== void 0) params.set("offset", String(options.offset));
|
|
138
|
+
const queryString = params.toString();
|
|
139
|
+
return _server.serverApiRequest.call(void 0, `/api/v1/agent-jobs${queryString ? `?${queryString}` : ""}`, buildRequestOptions(options, "GET"));
|
|
140
|
+
}
|
|
141
|
+
async function getAgentJobServer(jobId, options) {
|
|
142
|
+
return _server.serverApiRequest.call(void 0, `/api/v1/agent-jobs/${jobId}`, buildRequestOptions(options, "GET"));
|
|
143
|
+
}
|
|
144
|
+
async function createAgentJobServer(job, options) {
|
|
145
|
+
return _server.serverApiRequest.call(void 0, "/api/v1/agent-jobs", buildRequestOptions(options, "POST", { job }));
|
|
146
|
+
}
|
|
147
|
+
async function updateAgentJobServer(jobId, job, options) {
|
|
148
|
+
return _server.serverApiRequest.call(void 0, `/api/v1/agent-jobs/${jobId}`, buildRequestOptions(options, "PUT", { job }));
|
|
149
|
+
}
|
|
150
|
+
async function deleteAgentJobServer(jobId, options) {
|
|
151
|
+
return _server.serverApiRequest.call(void 0, `/api/v1/agent-jobs/${jobId}`, buildRequestOptions(options, "DELETE"));
|
|
152
|
+
}
|
|
153
|
+
async function pauseAgentJobServer(jobId, options) {
|
|
154
|
+
return _server.serverApiRequest.call(void 0, `/api/v1/agent-jobs/${jobId}/pause`, buildRequestOptions(options, "POST"));
|
|
155
|
+
}
|
|
156
|
+
async function resumeAgentJobServer(jobId, options) {
|
|
157
|
+
return _server.serverApiRequest.call(void 0, `/api/v1/agent-jobs/${jobId}/resume`, buildRequestOptions(options, "POST"));
|
|
158
|
+
}
|
|
159
|
+
async function listWidgetsServer(agentId, options) {
|
|
160
|
+
return _server.serverApiRequest.call(void 0, `/api/v1/agents/${agentId}/widgets`, buildRequestOptions(options, "GET"));
|
|
161
|
+
}
|
|
162
|
+
async function getDefaultWidgetServer(agentId, options) {
|
|
163
|
+
return _server.serverApiRequest.call(void 0, `/api/v1/agents/${agentId}/widgets/default`, buildRequestOptions(options, "GET"));
|
|
164
|
+
}
|
|
165
|
+
async function createWidgetServer(agentId, widget, options) {
|
|
166
|
+
return _server.serverApiRequest.call(void 0, `/api/v1/agents/${agentId}/widgets`, buildRequestOptions(options, "POST", { widget }));
|
|
167
|
+
}
|
|
168
|
+
async function getWidgetServer(widgetId, options) {
|
|
169
|
+
return _server.serverApiRequest.call(void 0, `/api/v1/widgets/${widgetId}`, buildRequestOptions(options, "GET"));
|
|
170
|
+
}
|
|
171
|
+
async function updateWidgetServer(widgetId, widget, options) {
|
|
172
|
+
return _server.serverApiRequest.call(void 0, `/api/v1/widgets/${widgetId}`, buildRequestOptions(options, "PUT", { widget }));
|
|
173
|
+
}
|
|
174
|
+
async function deleteWidgetServer(widgetId, options) {
|
|
175
|
+
return _server.serverApiRequest.call(void 0, `/api/v1/widgets/${widgetId}`, buildRequestOptions(options, "DELETE"));
|
|
176
|
+
}
|
|
177
|
+
async function setDefaultWidgetServer(widgetId, agentId, options) {
|
|
178
|
+
return _server.serverApiRequest.call(void 0, `/api/v1/widgets/${widgetId}/default`, buildRequestOptions(options, "POST", { agentId }));
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
exports.createAgentJobServer = createAgentJobServer; exports.createAgentServer = createAgentServer; exports.createSkillServer = createSkillServer; exports.createSubAgentServer = createSubAgentServer; exports.createToolDefinitionServer = createToolDefinitionServer; exports.createWidgetServer = createWidgetServer; exports.deleteAgentJobServer = deleteAgentJobServer; exports.deleteAgentServer = deleteAgentServer; exports.deleteSkillServer = deleteSkillServer; exports.deleteSkillUserConfigServer = deleteSkillUserConfigServer; exports.deleteSubAgentServer = deleteSubAgentServer; exports.deleteToolDefinitionServer = deleteToolDefinitionServer; exports.deleteWidgetServer = deleteWidgetServer; exports.getAgentJobServer = getAgentJobServer; exports.getAgentServer = getAgentServer; exports.getDefaultAgentServer = getDefaultAgentServer; exports.getDefaultWidgetServer = getDefaultWidgetServer; exports.getSkillCategoriesServer = getSkillCategoriesServer; exports.getSkillServer = getSkillServer; exports.getSkillUserConfigServer = getSkillUserConfigServer; exports.getSkillsByIdsServer = getSkillsByIdsServer; exports.getSubAgentServer = getSubAgentServer; exports.getToolDefinitionServer = getToolDefinitionServer; exports.getToolDefinitionsByIdsServer = getToolDefinitionsByIdsServer; exports.getWidgetServer = getWidgetServer; exports.listAgentJobsServer = listAgentJobsServer; exports.listAgentsServer = listAgentsServer; exports.listAgentsSummaryServer = listAgentsSummaryServer; exports.listSkillUserConfigsServer = listSkillUserConfigsServer; exports.listSkillsServer = listSkillsServer; exports.listSubAgentsServer = listSubAgentsServer; exports.listToolDefinitionsServer = listToolDefinitionsServer; exports.listWidgetsServer = listWidgetsServer; exports.pauseAgentJobServer = pauseAgentJobServer; exports.resolveSkillConfigServer = resolveSkillConfigServer; exports.resumeAgentJobServer = resumeAgentJobServer; exports.setDefaultWidgetServer = setDefaultWidgetServer; exports.updateAgentJobServer = updateAgentJobServer; exports.updateAgentServer = updateAgentServer; exports.updateSkillServer = updateSkillServer; exports.updateSkillUserConfigServer = updateSkillUserConfigServer; exports.updateSubAgentServer = updateSubAgentServer; exports.updateToolDefinitionServer = updateToolDefinitionServer; exports.updateWidgetServer = updateWidgetServer;
|
|
226
|
+
//# sourceMappingURL=server.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/eloquent-packages/eloquent-packages/packages/agents/dist/api/server.js","../../api/server.ts"],"names":[],"mappings":"AAAA,qFAAY;AACZ;AACA;ACqBA,kDAA4D;AAqD5D,SAAS,mBAAA,CAAoB,OAAA,EAA2B,OAAA,EAAyC,KAAA,EAAO,IAAA,EAA6B;AACnI,EAAA,OAAO;AAAA,IACL,UAAA,EAAY,OAAA,CAAQ,UAAA;AAAA,IACpB,SAAA,EAAW,OAAA,CAAQ,SAAA;AAAA,IACnB,KAAA,EAAO,OAAA,CAAQ,KAAA;AAAA,IACf,MAAA,EAAQ,OAAA,CAAQ,MAAA;AAAA,IAChB,SAAA,EAAW,OAAA,CAAQ,SAAA;AAAA,IACnB,OAAA,EAAS,OAAA,CAAQ,OAAA;AAAA,IACjB,KAAA,EAAO,OAAA,CAAQ,KAAA;AAAA,IACf,MAAA;AAAA,IACA;AAAA,EACF,CAAA;AACF;AAMA,MAAA,SAAsB,gBAAA,CAAiB,OAAA,EAAqE;AAC1G,EAAA,OAAO,sCAAA,gBAAiB,EAAkB,mBAAA,CAAoB,OAAA,EAAS,KAAK,CAAC,CAAA;AAC/E;AAEA,MAAA,SAAsB,uBAAA,CAAwB,OAAA,EAA4E;AACxH,EAAA,OAAO,sCAAA,wBAAiB,EAA0B,mBAAA,CAAoB,OAAA,EAAS,KAAK,CAAC,CAAA;AACvF;AAEA,MAAA,SAAsB,cAAA,CAAe,OAAA,EAAiB,OAAA,EAAgE;AACpH,EAAA,OAAO,sCAAA,CAAiB,eAAA,EAAkB,OAAO,CAAA,CAAA;AACnD;AAE+H;AACnF,EAAA;AAC5C;AAEgF;AAC7B,EAAA;AACnD;AAE4J;AACzG,EAAA;AACnD;AAE4G;AACxD,EAAA;AACpD;AAM4G;AAChE,EAAA;AAC5C;AAEsH;AACnE,EAAA;AACnD;AAEmI;AAChF,EAAA;AACnD;AAE+H;AACnF,EAAA;AAC5C;AAEgF;AAC7B,EAAA;AACnD;AAE4J;AACzG,EAAA;AACnD;AAOyH;AAC/F,EAAA;AAC1B;AAQE;AAEmC,EAAA;AACQ,EAAA;AACb,EAAA;AACmB,EAAA;AACnD;AAIE;AAQiD,EAAA;AACnD;AAIE;AAEmC,EAAA;AACQ,EAAA;AACb,EAAA;AACmB,EAAA;AACnD;AAIqD;AAChB,EAAA;AACQ,EAAA;AACG,EAAA;AACE,EAAA;AAClB,EAAA;AACN,EAAA;AAC1B;AAIE;AAGiD,EAAA;AACnD;AAQ+C;AACV,EAAA;AACc,EAAA;AACH,EAAA;AACV,EAAA;AACQ,EAAA;AAC9C;AAE4D;AACb,EAAA;AAC/C;AAEwE;AACzB,EAAA;AAC/C;AAE+D;AAChB,EAAA;AAC/C;AAE+D;AAChB,EAAA;AAC/C;AAQqD;AAChB,EAAA;AACc,EAAA;AACH,EAAA;AACO,EAAA;AACR,EAAA;AACT,EAAA;AACZ,EAAA;AAC1B;AAEiE;AACvC,EAAA;AAC1B;AAEmE;AACzC,EAAA;AAC1B;AAEiD;AACvB,EAAA;AAC1B;AAEiD;AACvB,EAAA;AAC1B;AAEiD;AACvB,EAAA;AAC1B;AAgB+C;AACV,EAAA;AACQ,EAAA;AACA,EAAA;AACI,EAAA;AACE,EAAA;AACF,EAAA;AACM,EAAA;AACR,EAAA;AACT,EAAA;AACS,EAAA;AAC/C;AAE0H;AAC1E,EAAA;AAChD;AAEsI;AACtF,EAAA;AAChD;AAEkF;AAClC,EAAA;AAChD;AAE6J;AAC7G,EAAA;AAChD;AAE4H;AAC5E,EAAA;AAChD;AAE6H;AAC7E,EAAA;AAChD;AAMoI;AACjF,EAAA;AACnD;AAE8D;AACX,EAAA;AACnD;AAEwF;AACrC,EAAA;AACnD;AAE8H;AACjF,EAAA;AAC7C;AAEyF;AAC5C,EAAA;AAC7C;AAE2D;AACd,EAAA;AAC7C;AAE+D;AAClB,EAAA;AAC7C;ADvLoD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"/home/runner/work/eloquent-packages/eloquent-packages/packages/agents/dist/api/server.js","sourcesContent":[null,"/**\n * Server-side Agents API\n *\n * API functions for server-side usage (Server Actions, API routes, SSR).\n * Uses serverApiRequest which generates JWT tokens internally.\n *\n * @example\n * ```ts\n * // In a Next.js Server Action\n * \"use server\";\n * import { listAgentsServer, getAgentServer } from \"@elqnt/agents/api/server\";\n *\n * export async function getAgentsList(orgId: string) {\n * const response = await listAgentsServer({\n * gatewayUrl: process.env.API_GATEWAY_URL!,\n * jwtSecret: process.env.JWT_SECRET!,\n * orgId,\n * });\n * return response.data?.agents || [];\n * }\n * ```\n */\n\nimport { serverApiRequest, type ServerRequestOptions } from \"@elqnt/api-client/server\";\nimport type { ApiResponse } from \"@elqnt/api-client\";\nimport type { ResponseMetadata } from \"@elqnt/types\";\nimport type {\n Agent,\n AgentResponse,\n ListAgentsResponse,\n ListAgentsSummaryResponse,\n Skill,\n SkillResponse,\n SkillsListResponse,\n GetSkillsByIDsResponse,\n SubAgent,\n SubAgentResponse,\n SubAgentsListResponse,\n AgentWidget,\n AgentWidgetResponse,\n ListAgentWidgetsResponse,\n SkillUserConfigResponse,\n SkillUserConfigListResponse,\n ResolveSkillConfigResponse,\n ToolDefinition,\n ToolDefinitionResponse,\n ToolDefinitionsListResponse,\n GetToolDefinitionsByIDsResponse,\n AgentJob,\n AgentJobResponse,\n AgentJobsListResponse,\n} from \"../models\";\n\n// =============================================================================\n// TYPES\n// =============================================================================\n\nexport interface ServerApiOptions {\n /** API Gateway URL */\n gatewayUrl: string;\n /** JWT secret for token generation */\n jwtSecret: string;\n /** Organization ID */\n orgId: string;\n /** User ID (defaults to \"system\") */\n userId?: string;\n /** User email */\n userEmail?: string;\n /** Request timeout in ms */\n timeout?: number;\n /** Cache strategy */\n cache?: RequestCache;\n}\n\ntype RequestOpts = ServerRequestOptions & { gatewayUrl: string; jwtSecret: string };\n\nfunction buildRequestOptions(options: ServerApiOptions, method: ServerRequestOptions[\"method\"] = \"GET\", body?: unknown): RequestOpts {\n return {\n gatewayUrl: options.gatewayUrl,\n jwtSecret: options.jwtSecret,\n orgId: options.orgId,\n userId: options.userId,\n userEmail: options.userEmail,\n timeout: options.timeout,\n cache: options.cache,\n method,\n body,\n };\n}\n\n// =============================================================================\n// AGENTS\n// =============================================================================\n\nexport async function listAgentsServer(options: ServerApiOptions): Promise<ApiResponse<ListAgentsResponse>> {\n return serverApiRequest(\"/api/v1/agents\", buildRequestOptions(options, \"GET\"));\n}\n\nexport async function listAgentsSummaryServer(options: ServerApiOptions): Promise<ApiResponse<ListAgentsSummaryResponse>> {\n return serverApiRequest(\"/api/v1/agents/summary\", buildRequestOptions(options, \"GET\"));\n}\n\nexport async function getAgentServer(agentId: string, options: ServerApiOptions): Promise<ApiResponse<AgentResponse>> {\n return serverApiRequest(`/api/v1/agents/${agentId}`, buildRequestOptions(options, \"GET\"));\n}\n\nexport async function createAgentServer(agent: Partial<Agent>, options: ServerApiOptions): Promise<ApiResponse<AgentResponse>> {\n return serverApiRequest(\"/api/v1/agents\", buildRequestOptions(options, \"POST\", { agent }));\n}\n\nexport async function updateAgentServer(agentId: string, agent: Partial<Agent>, options: ServerApiOptions): Promise<ApiResponse<AgentResponse>> {\n return serverApiRequest(`/api/v1/agents/${agentId}`, buildRequestOptions(options, \"PUT\", { agent }));\n}\n\nexport async function deleteAgentServer(agentId: string, options: ServerApiOptions): Promise<ApiResponse<{ success: boolean; metadata: ResponseMetadata }>> {\n return serverApiRequest(`/api/v1/agents/${agentId}`, buildRequestOptions(options, \"DELETE\"));\n}\n\nexport async function getDefaultAgentServer(options: ServerApiOptions): Promise<ApiResponse<AgentResponse>> {\n return serverApiRequest(\"/api/v1/agents/default\", buildRequestOptions(options, \"GET\"));\n}\n\n// =============================================================================\n// SKILLS\n// =============================================================================\n\nexport async function listSkillsServer(options: ServerApiOptions): Promise<ApiResponse<SkillsListResponse>> {\n return serverApiRequest(\"/api/v1/skills\", buildRequestOptions(options, \"GET\"));\n}\n\nexport async function getSkillServer(skillId: string, options: ServerApiOptions): Promise<ApiResponse<SkillResponse>> {\n return serverApiRequest(`/api/v1/skills/${skillId}`, buildRequestOptions(options, \"GET\"));\n}\n\nexport async function getSkillsByIdsServer(ids: string[], options: ServerApiOptions): Promise<ApiResponse<GetSkillsByIDsResponse>> {\n return serverApiRequest(\"/api/v1/skills/by-ids\", buildRequestOptions(options, \"POST\", { ids }));\n}\n\nexport async function createSkillServer(skill: Partial<Skill>, options: ServerApiOptions): Promise<ApiResponse<SkillResponse>> {\n return serverApiRequest(\"/api/v1/skills\", buildRequestOptions(options, \"POST\", { skill }));\n}\n\nexport async function updateSkillServer(skillId: string, skill: Partial<Skill>, options: ServerApiOptions): Promise<ApiResponse<SkillResponse>> {\n return serverApiRequest(`/api/v1/skills/${skillId}`, buildRequestOptions(options, \"PUT\", { skill }));\n}\n\nexport async function deleteSkillServer(skillId: string, options: ServerApiOptions): Promise<ApiResponse<{ success: boolean; metadata: ResponseMetadata }>> {\n return serverApiRequest(`/api/v1/skills/${skillId}`, buildRequestOptions(options, \"DELETE\"));\n}\n\nexport interface SkillCategoriesResponse {\n categories: string[];\n metadata: ResponseMetadata;\n}\n\nexport async function getSkillCategoriesServer(options: ServerApiOptions): Promise<ApiResponse<SkillCategoriesResponse>> {\n return serverApiRequest(\"/api/v1/skills/categories\", buildRequestOptions(options, \"GET\"));\n}\n\n// =============================================================================\n// SKILL USER CONFIG\n// =============================================================================\n\nexport async function getSkillUserConfigServer(\n skillId: string,\n options: ServerApiOptions & { agentId?: string }\n): Promise<ApiResponse<SkillUserConfigResponse>> {\n const params = new URLSearchParams();\n if (options.agentId) params.set(\"agentId\", options.agentId);\n const query = params.toString();\n return serverApiRequest(`/api/v1/skills/${skillId}/user-config${query ? `?${query}` : \"\"}`, buildRequestOptions(options, \"GET\"));\n}\n\nexport async function updateSkillUserConfigServer(\n skillId: string,\n data: {\n enabled?: boolean;\n displayOrder?: number;\n config?: Record<string, unknown>;\n agentId?: string;\n },\n options: ServerApiOptions\n): Promise<ApiResponse<SkillUserConfigResponse>> {\n return serverApiRequest(`/api/v1/skills/${skillId}/user-config`, buildRequestOptions(options, \"PUT\", data));\n}\n\nexport async function deleteSkillUserConfigServer(\n skillId: string,\n options: ServerApiOptions & { agentId?: string }\n): Promise<ApiResponse<{ success: boolean; metadata: ResponseMetadata }>> {\n const params = new URLSearchParams();\n if (options.agentId) params.set(\"agentId\", options.agentId);\n const query = params.toString();\n return serverApiRequest(`/api/v1/skills/${skillId}/user-config${query ? `?${query}` : \"\"}`, buildRequestOptions(options, \"DELETE\"));\n}\n\nexport async function listSkillUserConfigsServer(\n options: ServerApiOptions & { agentId?: string; limit?: number; offset?: number }\n): Promise<ApiResponse<SkillUserConfigListResponse>> {\n const params = new URLSearchParams();\n if (options.agentId) params.set(\"agentId\", options.agentId);\n if (options.limit) params.set(\"limit\", String(options.limit));\n if (options.offset) params.set(\"offset\", String(options.offset));\n const query = params.toString();\n return serverApiRequest(`/api/v1/skills/user-configs${query ? `?${query}` : \"\"}`, buildRequestOptions(options, \"GET\"));\n}\n\nexport async function resolveSkillConfigServer(\n skillId: string,\n agentId: string,\n options: ServerApiOptions\n): Promise<ApiResponse<ResolveSkillConfigResponse>> {\n return serverApiRequest(`/api/v1/skills/${skillId}/resolve-config?agentId=${agentId}`, buildRequestOptions(options, \"GET\"));\n}\n\n// =============================================================================\n// SUB-AGENTS\n// =============================================================================\n\nexport async function listSubAgentsServer(\n options: ServerApiOptions & { onlySystem?: boolean; enabled?: boolean }\n): Promise<ApiResponse<SubAgentsListResponse>> {\n const params = new URLSearchParams();\n if (options.onlySystem !== undefined) params.set(\"onlySystem\", String(options.onlySystem));\n if (options.enabled !== undefined) params.set(\"enabled\", String(options.enabled));\n const queryString = params.toString();\n return serverApiRequest(`/api/v1/subagents${queryString ? `?${queryString}` : \"\"}`, buildRequestOptions(options, \"GET\"));\n}\n\nexport async function getSubAgentServer(subAgentId: string, options: ServerApiOptions): Promise<ApiResponse<SubAgentResponse>> {\n return serverApiRequest(`/api/v1/subagents/${subAgentId}`, buildRequestOptions(options, \"GET\"));\n}\n\nexport async function createSubAgentServer(subAgent: Partial<SubAgent>, options: ServerApiOptions): Promise<ApiResponse<SubAgentResponse>> {\n return serverApiRequest(\"/api/v1/subagents\", buildRequestOptions(options, \"POST\", { subAgent }));\n}\n\nexport async function updateSubAgentServer(subAgentId: string, subAgent: Partial<SubAgent>, options: ServerApiOptions): Promise<ApiResponse<SubAgentResponse>> {\n return serverApiRequest(`/api/v1/subagents/${subAgentId}`, buildRequestOptions(options, \"PUT\", { subAgent }));\n}\n\nexport async function deleteSubAgentServer(subAgentId: string, options: ServerApiOptions): Promise<ApiResponse<{ success: boolean; metadata: ResponseMetadata }>> {\n return serverApiRequest(`/api/v1/subagents/${subAgentId}`, buildRequestOptions(options, \"DELETE\"));\n}\n\n// =============================================================================\n// TOOL DEFINITIONS\n// =============================================================================\n\nexport async function listToolDefinitionsServer(\n options: ServerApiOptions & { onlySystem?: boolean; enabled?: boolean; limit?: number; offset?: number }\n): Promise<ApiResponse<ToolDefinitionsListResponse>> {\n const params = new URLSearchParams();\n if (options.onlySystem !== undefined) params.set(\"onlySystem\", String(options.onlySystem));\n if (options.enabled !== undefined) params.set(\"enabled\", String(options.enabled));\n if (options.limit !== undefined) params.set(\"limit\", String(options.limit));\n if (options.offset !== undefined) params.set(\"offset\", String(options.offset));\n const queryString = params.toString();\n return serverApiRequest(`/api/v1/tool-definitions${queryString ? `?${queryString}` : \"\"}`, buildRequestOptions(options, \"GET\"));\n}\n\nexport async function getToolDefinitionServer(toolDefId: string, options: ServerApiOptions): Promise<ApiResponse<ToolDefinitionResponse>> {\n return serverApiRequest(`/api/v1/tool-definitions/${toolDefId}`, buildRequestOptions(options, \"GET\"));\n}\n\nexport async function getToolDefinitionsByIdsServer(ids: string[], options: ServerApiOptions): Promise<ApiResponse<GetToolDefinitionsByIDsResponse>> {\n return serverApiRequest(\"/api/v1/tool-definitions/by-ids\", buildRequestOptions(options, \"POST\", { ids }));\n}\n\nexport async function createToolDefinitionServer(toolDefinition: Partial<ToolDefinition>, options: ServerApiOptions): Promise<ApiResponse<ToolDefinitionResponse>> {\n return serverApiRequest(\"/api/v1/tool-definitions\", buildRequestOptions(options, \"POST\", { toolDefinition }));\n}\n\nexport async function updateToolDefinitionServer(toolDefId: string, toolDefinition: Partial<ToolDefinition>, options: ServerApiOptions): Promise<ApiResponse<ToolDefinitionResponse>> {\n return serverApiRequest(`/api/v1/tool-definitions/${toolDefId}`, buildRequestOptions(options, \"PUT\", { toolDefinition }));\n}\n\nexport async function deleteToolDefinitionServer(toolDefId: string, options: ServerApiOptions): Promise<ApiResponse<{ success: boolean; metadata: ResponseMetadata }>> {\n return serverApiRequest(`/api/v1/tool-definitions/${toolDefId}`, buildRequestOptions(options, \"DELETE\"));\n}\n\n// =============================================================================\n// AGENT JOBS\n// =============================================================================\n\nexport async function listAgentJobsServer(\n options: ServerApiOptions & {\n agentId?: string;\n ownerId?: string;\n scope?: string;\n status?: string;\n frequency?: string;\n limit?: number;\n offset?: number;\n }\n): Promise<ApiResponse<AgentJobsListResponse>> {\n const params = new URLSearchParams();\n if (options.agentId) params.set(\"agentId\", options.agentId);\n if (options.ownerId) params.set(\"ownerId\", options.ownerId);\n if (options.scope) params.set(\"scope\", options.scope);\n if (options.status) params.set(\"status\", options.status);\n if (options.frequency) params.set(\"frequency\", options.frequency);\n if (options.limit !== undefined) params.set(\"limit\", String(options.limit));\n if (options.offset !== undefined) params.set(\"offset\", String(options.offset));\n const queryString = params.toString();\n return serverApiRequest(`/api/v1/agent-jobs${queryString ? `?${queryString}` : \"\"}`, buildRequestOptions(options, \"GET\"));\n}\n\nexport async function getAgentJobServer(jobId: string, options: ServerApiOptions): Promise<ApiResponse<AgentJobResponse>> {\n return serverApiRequest(`/api/v1/agent-jobs/${jobId}`, buildRequestOptions(options, \"GET\"));\n}\n\nexport async function createAgentJobServer(job: Partial<AgentJob>, options: ServerApiOptions): Promise<ApiResponse<AgentJobResponse>> {\n return serverApiRequest(\"/api/v1/agent-jobs\", buildRequestOptions(options, \"POST\", { job }));\n}\n\nexport async function updateAgentJobServer(jobId: string, job: Partial<AgentJob>, options: ServerApiOptions): Promise<ApiResponse<AgentJobResponse>> {\n return serverApiRequest(`/api/v1/agent-jobs/${jobId}`, buildRequestOptions(options, \"PUT\", { job }));\n}\n\nexport async function deleteAgentJobServer(jobId: string, options: ServerApiOptions): Promise<ApiResponse<{ success: boolean; metadata: ResponseMetadata }>> {\n return serverApiRequest(`/api/v1/agent-jobs/${jobId}`, buildRequestOptions(options, \"DELETE\"));\n}\n\nexport async function pauseAgentJobServer(jobId: string, options: ServerApiOptions): Promise<ApiResponse<AgentJobResponse>> {\n return serverApiRequest(`/api/v1/agent-jobs/${jobId}/pause`, buildRequestOptions(options, \"POST\"));\n}\n\nexport async function resumeAgentJobServer(jobId: string, options: ServerApiOptions): Promise<ApiResponse<AgentJobResponse>> {\n return serverApiRequest(`/api/v1/agent-jobs/${jobId}/resume`, buildRequestOptions(options, \"POST\"));\n}\n\n// =============================================================================\n// WIDGETS\n// =============================================================================\n\nexport async function listWidgetsServer(agentId: string, options: ServerApiOptions): Promise<ApiResponse<ListAgentWidgetsResponse>> {\n return serverApiRequest(`/api/v1/agents/${agentId}/widgets`, buildRequestOptions(options, \"GET\"));\n}\n\nexport async function getDefaultWidgetServer(agentId: string, options: ServerApiOptions): Promise<ApiResponse<AgentWidgetResponse>> {\n return serverApiRequest(`/api/v1/agents/${agentId}/widgets/default`, buildRequestOptions(options, \"GET\"));\n}\n\nexport async function createWidgetServer(agentId: string, widget: Partial<AgentWidget>, options: ServerApiOptions): Promise<ApiResponse<AgentWidgetResponse>> {\n return serverApiRequest(`/api/v1/agents/${agentId}/widgets`, buildRequestOptions(options, \"POST\", { widget }));\n}\n\nexport async function getWidgetServer(widgetId: string, options: ServerApiOptions): Promise<ApiResponse<AgentWidgetResponse>> {\n return serverApiRequest(`/api/v1/widgets/${widgetId}`, buildRequestOptions(options, \"GET\"));\n}\n\nexport async function updateWidgetServer(widgetId: string, widget: Partial<AgentWidget>, options: ServerApiOptions): Promise<ApiResponse<AgentWidgetResponse>> {\n return serverApiRequest(`/api/v1/widgets/${widgetId}`, buildRequestOptions(options, \"PUT\", { widget }));\n}\n\nexport async function deleteWidgetServer(widgetId: string, options: ServerApiOptions): Promise<ApiResponse<{ success: boolean; metadata: ResponseMetadata }>> {\n return serverApiRequest(`/api/v1/widgets/${widgetId}`, buildRequestOptions(options, \"DELETE\"));\n}\n\nexport async function setDefaultWidgetServer(widgetId: string, agentId: string, options: ServerApiOptions): Promise<ApiResponse<{ success: boolean; metadata: ResponseMetadata }>> {\n return serverApiRequest(`/api/v1/widgets/${widgetId}/default`, buildRequestOptions(options, \"POST\", { agentId }));\n}\n\n// Re-export types\nexport type {\n Agent,\n AgentResponse,\n ListAgentsResponse,\n ListAgentsSummaryResponse,\n Skill,\n SkillResponse,\n SkillsListResponse,\n SubAgent,\n SubAgentResponse,\n SubAgentsListResponse,\n AgentWidget,\n AgentWidgetResponse,\n ListAgentWidgetsResponse,\n ToolDefinition,\n ToolDefinitionResponse,\n ToolDefinitionsListResponse,\n AgentJob,\n AgentJobResponse,\n AgentJobsListResponse,\n} from \"../models\";\n"]}
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// api/server.ts
|
|
4
|
+
import { serverApiRequest } from "@elqnt/api-client/server";
|
|
5
|
+
function buildRequestOptions(options, method = "GET", body) {
|
|
6
|
+
return {
|
|
7
|
+
gatewayUrl: options.gatewayUrl,
|
|
8
|
+
jwtSecret: options.jwtSecret,
|
|
9
|
+
orgId: options.orgId,
|
|
10
|
+
userId: options.userId,
|
|
11
|
+
userEmail: options.userEmail,
|
|
12
|
+
timeout: options.timeout,
|
|
13
|
+
cache: options.cache,
|
|
14
|
+
method,
|
|
15
|
+
body
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
async function listAgentsServer(options) {
|
|
19
|
+
return serverApiRequest("/api/v1/agents", buildRequestOptions(options, "GET"));
|
|
20
|
+
}
|
|
21
|
+
async function listAgentsSummaryServer(options) {
|
|
22
|
+
return serverApiRequest("/api/v1/agents/summary", buildRequestOptions(options, "GET"));
|
|
23
|
+
}
|
|
24
|
+
async function getAgentServer(agentId, options) {
|
|
25
|
+
return serverApiRequest(`/api/v1/agents/${agentId}`, buildRequestOptions(options, "GET"));
|
|
26
|
+
}
|
|
27
|
+
async function createAgentServer(agent, options) {
|
|
28
|
+
return serverApiRequest("/api/v1/agents", buildRequestOptions(options, "POST", { agent }));
|
|
29
|
+
}
|
|
30
|
+
async function updateAgentServer(agentId, agent, options) {
|
|
31
|
+
return serverApiRequest(`/api/v1/agents/${agentId}`, buildRequestOptions(options, "PUT", { agent }));
|
|
32
|
+
}
|
|
33
|
+
async function deleteAgentServer(agentId, options) {
|
|
34
|
+
return serverApiRequest(`/api/v1/agents/${agentId}`, buildRequestOptions(options, "DELETE"));
|
|
35
|
+
}
|
|
36
|
+
async function getDefaultAgentServer(options) {
|
|
37
|
+
return serverApiRequest("/api/v1/agents/default", buildRequestOptions(options, "GET"));
|
|
38
|
+
}
|
|
39
|
+
async function listSkillsServer(options) {
|
|
40
|
+
return serverApiRequest("/api/v1/skills", buildRequestOptions(options, "GET"));
|
|
41
|
+
}
|
|
42
|
+
async function getSkillServer(skillId, options) {
|
|
43
|
+
return serverApiRequest(`/api/v1/skills/${skillId}`, buildRequestOptions(options, "GET"));
|
|
44
|
+
}
|
|
45
|
+
async function getSkillsByIdsServer(ids, options) {
|
|
46
|
+
return serverApiRequest("/api/v1/skills/by-ids", buildRequestOptions(options, "POST", { ids }));
|
|
47
|
+
}
|
|
48
|
+
async function createSkillServer(skill, options) {
|
|
49
|
+
return serverApiRequest("/api/v1/skills", buildRequestOptions(options, "POST", { skill }));
|
|
50
|
+
}
|
|
51
|
+
async function updateSkillServer(skillId, skill, options) {
|
|
52
|
+
return serverApiRequest(`/api/v1/skills/${skillId}`, buildRequestOptions(options, "PUT", { skill }));
|
|
53
|
+
}
|
|
54
|
+
async function deleteSkillServer(skillId, options) {
|
|
55
|
+
return serverApiRequest(`/api/v1/skills/${skillId}`, buildRequestOptions(options, "DELETE"));
|
|
56
|
+
}
|
|
57
|
+
async function getSkillCategoriesServer(options) {
|
|
58
|
+
return serverApiRequest("/api/v1/skills/categories", buildRequestOptions(options, "GET"));
|
|
59
|
+
}
|
|
60
|
+
async function getSkillUserConfigServer(skillId, options) {
|
|
61
|
+
const params = new URLSearchParams();
|
|
62
|
+
if (options.agentId) params.set("agentId", options.agentId);
|
|
63
|
+
const query = params.toString();
|
|
64
|
+
return serverApiRequest(`/api/v1/skills/${skillId}/user-config${query ? `?${query}` : ""}`, buildRequestOptions(options, "GET"));
|
|
65
|
+
}
|
|
66
|
+
async function updateSkillUserConfigServer(skillId, data, options) {
|
|
67
|
+
return serverApiRequest(`/api/v1/skills/${skillId}/user-config`, buildRequestOptions(options, "PUT", data));
|
|
68
|
+
}
|
|
69
|
+
async function deleteSkillUserConfigServer(skillId, options) {
|
|
70
|
+
const params = new URLSearchParams();
|
|
71
|
+
if (options.agentId) params.set("agentId", options.agentId);
|
|
72
|
+
const query = params.toString();
|
|
73
|
+
return serverApiRequest(`/api/v1/skills/${skillId}/user-config${query ? `?${query}` : ""}`, buildRequestOptions(options, "DELETE"));
|
|
74
|
+
}
|
|
75
|
+
async function listSkillUserConfigsServer(options) {
|
|
76
|
+
const params = new URLSearchParams();
|
|
77
|
+
if (options.agentId) params.set("agentId", options.agentId);
|
|
78
|
+
if (options.limit) params.set("limit", String(options.limit));
|
|
79
|
+
if (options.offset) params.set("offset", String(options.offset));
|
|
80
|
+
const query = params.toString();
|
|
81
|
+
return serverApiRequest(`/api/v1/skills/user-configs${query ? `?${query}` : ""}`, buildRequestOptions(options, "GET"));
|
|
82
|
+
}
|
|
83
|
+
async function resolveSkillConfigServer(skillId, agentId, options) {
|
|
84
|
+
return serverApiRequest(`/api/v1/skills/${skillId}/resolve-config?agentId=${agentId}`, buildRequestOptions(options, "GET"));
|
|
85
|
+
}
|
|
86
|
+
async function listSubAgentsServer(options) {
|
|
87
|
+
const params = new URLSearchParams();
|
|
88
|
+
if (options.onlySystem !== void 0) params.set("onlySystem", String(options.onlySystem));
|
|
89
|
+
if (options.enabled !== void 0) params.set("enabled", String(options.enabled));
|
|
90
|
+
const queryString = params.toString();
|
|
91
|
+
return serverApiRequest(`/api/v1/subagents${queryString ? `?${queryString}` : ""}`, buildRequestOptions(options, "GET"));
|
|
92
|
+
}
|
|
93
|
+
async function getSubAgentServer(subAgentId, options) {
|
|
94
|
+
return serverApiRequest(`/api/v1/subagents/${subAgentId}`, buildRequestOptions(options, "GET"));
|
|
95
|
+
}
|
|
96
|
+
async function createSubAgentServer(subAgent, options) {
|
|
97
|
+
return serverApiRequest("/api/v1/subagents", buildRequestOptions(options, "POST", { subAgent }));
|
|
98
|
+
}
|
|
99
|
+
async function updateSubAgentServer(subAgentId, subAgent, options) {
|
|
100
|
+
return serverApiRequest(`/api/v1/subagents/${subAgentId}`, buildRequestOptions(options, "PUT", { subAgent }));
|
|
101
|
+
}
|
|
102
|
+
async function deleteSubAgentServer(subAgentId, options) {
|
|
103
|
+
return serverApiRequest(`/api/v1/subagents/${subAgentId}`, buildRequestOptions(options, "DELETE"));
|
|
104
|
+
}
|
|
105
|
+
async function listToolDefinitionsServer(options) {
|
|
106
|
+
const params = new URLSearchParams();
|
|
107
|
+
if (options.onlySystem !== void 0) params.set("onlySystem", String(options.onlySystem));
|
|
108
|
+
if (options.enabled !== void 0) params.set("enabled", String(options.enabled));
|
|
109
|
+
if (options.limit !== void 0) params.set("limit", String(options.limit));
|
|
110
|
+
if (options.offset !== void 0) params.set("offset", String(options.offset));
|
|
111
|
+
const queryString = params.toString();
|
|
112
|
+
return serverApiRequest(`/api/v1/tool-definitions${queryString ? `?${queryString}` : ""}`, buildRequestOptions(options, "GET"));
|
|
113
|
+
}
|
|
114
|
+
async function getToolDefinitionServer(toolDefId, options) {
|
|
115
|
+
return serverApiRequest(`/api/v1/tool-definitions/${toolDefId}`, buildRequestOptions(options, "GET"));
|
|
116
|
+
}
|
|
117
|
+
async function getToolDefinitionsByIdsServer(ids, options) {
|
|
118
|
+
return serverApiRequest("/api/v1/tool-definitions/by-ids", buildRequestOptions(options, "POST", { ids }));
|
|
119
|
+
}
|
|
120
|
+
async function createToolDefinitionServer(toolDefinition, options) {
|
|
121
|
+
return serverApiRequest("/api/v1/tool-definitions", buildRequestOptions(options, "POST", { toolDefinition }));
|
|
122
|
+
}
|
|
123
|
+
async function updateToolDefinitionServer(toolDefId, toolDefinition, options) {
|
|
124
|
+
return serverApiRequest(`/api/v1/tool-definitions/${toolDefId}`, buildRequestOptions(options, "PUT", { toolDefinition }));
|
|
125
|
+
}
|
|
126
|
+
async function deleteToolDefinitionServer(toolDefId, options) {
|
|
127
|
+
return serverApiRequest(`/api/v1/tool-definitions/${toolDefId}`, buildRequestOptions(options, "DELETE"));
|
|
128
|
+
}
|
|
129
|
+
async function listAgentJobsServer(options) {
|
|
130
|
+
const params = new URLSearchParams();
|
|
131
|
+
if (options.agentId) params.set("agentId", options.agentId);
|
|
132
|
+
if (options.ownerId) params.set("ownerId", options.ownerId);
|
|
133
|
+
if (options.scope) params.set("scope", options.scope);
|
|
134
|
+
if (options.status) params.set("status", options.status);
|
|
135
|
+
if (options.frequency) params.set("frequency", options.frequency);
|
|
136
|
+
if (options.limit !== void 0) params.set("limit", String(options.limit));
|
|
137
|
+
if (options.offset !== void 0) params.set("offset", String(options.offset));
|
|
138
|
+
const queryString = params.toString();
|
|
139
|
+
return serverApiRequest(`/api/v1/agent-jobs${queryString ? `?${queryString}` : ""}`, buildRequestOptions(options, "GET"));
|
|
140
|
+
}
|
|
141
|
+
async function getAgentJobServer(jobId, options) {
|
|
142
|
+
return serverApiRequest(`/api/v1/agent-jobs/${jobId}`, buildRequestOptions(options, "GET"));
|
|
143
|
+
}
|
|
144
|
+
async function createAgentJobServer(job, options) {
|
|
145
|
+
return serverApiRequest("/api/v1/agent-jobs", buildRequestOptions(options, "POST", { job }));
|
|
146
|
+
}
|
|
147
|
+
async function updateAgentJobServer(jobId, job, options) {
|
|
148
|
+
return serverApiRequest(`/api/v1/agent-jobs/${jobId}`, buildRequestOptions(options, "PUT", { job }));
|
|
149
|
+
}
|
|
150
|
+
async function deleteAgentJobServer(jobId, options) {
|
|
151
|
+
return serverApiRequest(`/api/v1/agent-jobs/${jobId}`, buildRequestOptions(options, "DELETE"));
|
|
152
|
+
}
|
|
153
|
+
async function pauseAgentJobServer(jobId, options) {
|
|
154
|
+
return serverApiRequest(`/api/v1/agent-jobs/${jobId}/pause`, buildRequestOptions(options, "POST"));
|
|
155
|
+
}
|
|
156
|
+
async function resumeAgentJobServer(jobId, options) {
|
|
157
|
+
return serverApiRequest(`/api/v1/agent-jobs/${jobId}/resume`, buildRequestOptions(options, "POST"));
|
|
158
|
+
}
|
|
159
|
+
async function listWidgetsServer(agentId, options) {
|
|
160
|
+
return serverApiRequest(`/api/v1/agents/${agentId}/widgets`, buildRequestOptions(options, "GET"));
|
|
161
|
+
}
|
|
162
|
+
async function getDefaultWidgetServer(agentId, options) {
|
|
163
|
+
return serverApiRequest(`/api/v1/agents/${agentId}/widgets/default`, buildRequestOptions(options, "GET"));
|
|
164
|
+
}
|
|
165
|
+
async function createWidgetServer(agentId, widget, options) {
|
|
166
|
+
return serverApiRequest(`/api/v1/agents/${agentId}/widgets`, buildRequestOptions(options, "POST", { widget }));
|
|
167
|
+
}
|
|
168
|
+
async function getWidgetServer(widgetId, options) {
|
|
169
|
+
return serverApiRequest(`/api/v1/widgets/${widgetId}`, buildRequestOptions(options, "GET"));
|
|
170
|
+
}
|
|
171
|
+
async function updateWidgetServer(widgetId, widget, options) {
|
|
172
|
+
return serverApiRequest(`/api/v1/widgets/${widgetId}`, buildRequestOptions(options, "PUT", { widget }));
|
|
173
|
+
}
|
|
174
|
+
async function deleteWidgetServer(widgetId, options) {
|
|
175
|
+
return serverApiRequest(`/api/v1/widgets/${widgetId}`, buildRequestOptions(options, "DELETE"));
|
|
176
|
+
}
|
|
177
|
+
async function setDefaultWidgetServer(widgetId, agentId, options) {
|
|
178
|
+
return serverApiRequest(`/api/v1/widgets/${widgetId}/default`, buildRequestOptions(options, "POST", { agentId }));
|
|
179
|
+
}
|
|
180
|
+
export {
|
|
181
|
+
createAgentJobServer,
|
|
182
|
+
createAgentServer,
|
|
183
|
+
createSkillServer,
|
|
184
|
+
createSubAgentServer,
|
|
185
|
+
createToolDefinitionServer,
|
|
186
|
+
createWidgetServer,
|
|
187
|
+
deleteAgentJobServer,
|
|
188
|
+
deleteAgentServer,
|
|
189
|
+
deleteSkillServer,
|
|
190
|
+
deleteSkillUserConfigServer,
|
|
191
|
+
deleteSubAgentServer,
|
|
192
|
+
deleteToolDefinitionServer,
|
|
193
|
+
deleteWidgetServer,
|
|
194
|
+
getAgentJobServer,
|
|
195
|
+
getAgentServer,
|
|
196
|
+
getDefaultAgentServer,
|
|
197
|
+
getDefaultWidgetServer,
|
|
198
|
+
getSkillCategoriesServer,
|
|
199
|
+
getSkillServer,
|
|
200
|
+
getSkillUserConfigServer,
|
|
201
|
+
getSkillsByIdsServer,
|
|
202
|
+
getSubAgentServer,
|
|
203
|
+
getToolDefinitionServer,
|
|
204
|
+
getToolDefinitionsByIdsServer,
|
|
205
|
+
getWidgetServer,
|
|
206
|
+
listAgentJobsServer,
|
|
207
|
+
listAgentsServer,
|
|
208
|
+
listAgentsSummaryServer,
|
|
209
|
+
listSkillUserConfigsServer,
|
|
210
|
+
listSkillsServer,
|
|
211
|
+
listSubAgentsServer,
|
|
212
|
+
listToolDefinitionsServer,
|
|
213
|
+
listWidgetsServer,
|
|
214
|
+
pauseAgentJobServer,
|
|
215
|
+
resolveSkillConfigServer,
|
|
216
|
+
resumeAgentJobServer,
|
|
217
|
+
setDefaultWidgetServer,
|
|
218
|
+
updateAgentJobServer,
|
|
219
|
+
updateAgentServer,
|
|
220
|
+
updateSkillServer,
|
|
221
|
+
updateSkillUserConfigServer,
|
|
222
|
+
updateSubAgentServer,
|
|
223
|
+
updateToolDefinitionServer,
|
|
224
|
+
updateWidgetServer
|
|
225
|
+
};
|
|
226
|
+
//# sourceMappingURL=server.mjs.map
|