@elqnt/agents 3.2.1 → 3.3.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/api/index.d.mts +16 -1
- package/dist/api/index.d.ts +16 -1
- package/dist/api/index.js +8 -2
- package/dist/api/index.js.map +1 -1
- package/dist/api/index.mjs +7 -1
- package/dist/api/server.d.mts +7 -1
- package/dist/api/server.d.ts +7 -1
- package/dist/api/server.js +8 -1
- package/dist/api/server.js.map +1 -1
- package/dist/api/server.mjs +7 -0
- package/dist/api/server.mjs.map +1 -1
- package/dist/{chunk-GOHHT3ET.mjs → chunk-BT33DRUI.mjs} +20 -1
- package/dist/chunk-BT33DRUI.mjs.map +1 -0
- package/dist/{chunk-ZK27UGO6.mjs → chunk-JCPMUFOP.mjs} +1 -1
- package/dist/{chunk-BH2FIDFK.js → chunk-KA7N4YTF.js} +22 -3
- package/dist/chunk-KA7N4YTF.js.map +1 -0
- package/dist/{chunk-2QL3LLC3.mjs → chunk-MNFZXJ2Y.mjs} +72 -33
- package/dist/chunk-MNFZXJ2Y.mjs.map +1 -0
- package/dist/{chunk-AF4QJD73.js → chunk-PKLT6GDN.js} +124 -85
- package/dist/chunk-PKLT6GDN.js.map +1 -0
- package/dist/{chunk-3VM5TCJR.js → chunk-VGWUFWOE.js} +1 -1
- package/dist/{chunk-3VM5TCJR.js.map → chunk-VGWUFWOE.js.map} +1 -1
- package/dist/hooks/index.d.mts +32 -1
- package/dist/hooks/index.d.ts +32 -1
- package/dist/hooks/index.js +5 -3
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +4 -2
- package/dist/index.d.mts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +12 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -3
- package/dist/models/index.d.mts +1 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +2 -2
- package/dist/models/index.mjs +1 -1
- package/dist/structured-Bs0IjwLD.d.mts +35 -0
- package/dist/structured-Bs0IjwLD.d.ts +35 -0
- package/package.json +2 -2
- package/dist/chunk-2QL3LLC3.mjs.map +0 -1
- package/dist/chunk-AF4QJD73.js.map +0 -1
- package/dist/chunk-BH2FIDFK.js.map +0 -1
- package/dist/chunk-GOHHT3ET.mjs.map +0 -1
- /package/dist/{chunk-ZK27UGO6.mjs.map → chunk-JCPMUFOP.mjs.map} +0 -0
|
@@ -77,7 +77,10 @@
|
|
|
77
77
|
|
|
78
78
|
|
|
79
79
|
|
|
80
|
-
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
var _chunkKA7N4YTFjs = require('./chunk-KA7N4YTF.js');
|
|
81
84
|
|
|
82
85
|
|
|
83
86
|
var _chunk2JDVRL35js = require('./chunk-2JDVRL35.js');
|
|
@@ -100,42 +103,59 @@ function useOptionsRef(options) {
|
|
|
100
103
|
function useAgents(options) {
|
|
101
104
|
const optionsRef = useOptionsRef(options);
|
|
102
105
|
const { execute: listAgents, loading: listLoading, error: listError } = _hooks.useApiAsync.call(void 0,
|
|
103
|
-
() =>
|
|
106
|
+
() => _chunkKA7N4YTFjs.listAgentsApi.call(void 0, optionsRef.current),
|
|
104
107
|
(data) => data.agents,
|
|
105
108
|
[]
|
|
106
109
|
);
|
|
107
110
|
const { execute: listAgentSummaries, loading: listSummaryLoading, error: listSummaryError } = _hooks.useApiAsync.call(void 0,
|
|
108
|
-
() =>
|
|
111
|
+
() => _chunkKA7N4YTFjs.listAgentsSummaryApi.call(void 0, optionsRef.current),
|
|
109
112
|
(data) => data.agents,
|
|
110
113
|
[]
|
|
111
114
|
);
|
|
112
115
|
const { execute: getAgent, loading: getLoading, error: getError } = _hooks.useApiAsync.call(void 0,
|
|
113
|
-
(agentId) =>
|
|
116
|
+
(agentId) => _chunkKA7N4YTFjs.getAgentApi.call(void 0, agentId, optionsRef.current),
|
|
114
117
|
(data) => data.agent || null,
|
|
115
118
|
null
|
|
116
119
|
);
|
|
117
120
|
const { execute: createAgent, loading: createLoading, error: createError } = _hooks.useApiAsync.call(void 0,
|
|
118
|
-
(agent) =>
|
|
121
|
+
(agent) => _chunkKA7N4YTFjs.createAgentApi.call(void 0, agent, optionsRef.current),
|
|
119
122
|
(data) => data.agent || null,
|
|
120
123
|
null
|
|
121
124
|
);
|
|
122
125
|
const { execute: updateAgent, loading: updateLoading, error: updateError } = _hooks.useApiAsync.call(void 0,
|
|
123
|
-
(agentId, agent) =>
|
|
126
|
+
(agentId, agent) => _chunkKA7N4YTFjs.updateAgentApi.call(void 0, agentId, agent, optionsRef.current),
|
|
124
127
|
(data) => data.agent || null,
|
|
125
128
|
null
|
|
126
129
|
);
|
|
127
130
|
const { execute: deleteAgent, loading: deleteLoading, error: deleteError } = _hooks.useApiAsync.call(void 0,
|
|
128
|
-
(agentId) =>
|
|
131
|
+
(agentId) => _chunkKA7N4YTFjs.deleteAgentApi.call(void 0, agentId, optionsRef.current),
|
|
129
132
|
() => true,
|
|
130
133
|
false
|
|
131
134
|
);
|
|
132
135
|
const { execute: getDefaultAgent, loading: defaultLoading, error: defaultError } = _hooks.useApiAsync.call(void 0,
|
|
133
|
-
() =>
|
|
136
|
+
() => _chunkKA7N4YTFjs.getDefaultAgentApi.call(void 0, optionsRef.current),
|
|
137
|
+
(data) => data.agent || null,
|
|
138
|
+
null
|
|
139
|
+
);
|
|
140
|
+
const exportAgent = async (agentId) => {
|
|
141
|
+
const agent = await _chunkKA7N4YTFjs.exportAgentApi.call(void 0, agentId, optionsRef.current);
|
|
142
|
+
const json = JSON.stringify(agent, null, 2);
|
|
143
|
+
const blob = new Blob([json], { type: "application/json" });
|
|
144
|
+
const url = URL.createObjectURL(blob);
|
|
145
|
+
const a = document.createElement("a");
|
|
146
|
+
a.href = url;
|
|
147
|
+
a.download = `${agent.name || "agent"}.agent.json`;
|
|
148
|
+
a.click();
|
|
149
|
+
URL.revokeObjectURL(url);
|
|
150
|
+
return agent;
|
|
151
|
+
};
|
|
152
|
+
const { execute: importAgent, loading: importLoading, error: importError } = _hooks.useApiAsync.call(void 0,
|
|
153
|
+
(agent) => _chunkKA7N4YTFjs.importAgentApi.call(void 0, agent, optionsRef.current),
|
|
134
154
|
(data) => data.agent || null,
|
|
135
155
|
null
|
|
136
156
|
);
|
|
137
|
-
const loading = listLoading || listSummaryLoading || getLoading || createLoading || updateLoading || deleteLoading || defaultLoading;
|
|
138
|
-
const error = listError || listSummaryError || getError || createError || updateError || deleteError || defaultError;
|
|
157
|
+
const loading = listLoading || listSummaryLoading || getLoading || createLoading || updateLoading || deleteLoading || defaultLoading || importLoading;
|
|
158
|
+
const error = listError || listSummaryError || getError || createError || updateError || deleteError || defaultError || importError;
|
|
139
159
|
return _react.useMemo.call(void 0,
|
|
140
160
|
() => ({
|
|
141
161
|
loading,
|
|
@@ -146,9 +166,11 @@ function useAgents(options) {
|
|
|
146
166
|
createAgent,
|
|
147
167
|
updateAgent,
|
|
148
168
|
deleteAgent,
|
|
149
|
-
getDefaultAgent
|
|
169
|
+
getDefaultAgent,
|
|
170
|
+
exportAgent,
|
|
171
|
+
importAgent
|
|
150
172
|
}),
|
|
151
|
-
[loading, error, listAgents, listAgentSummaries, getAgent, createAgent, updateAgent, deleteAgent, getDefaultAgent]
|
|
173
|
+
[loading, error, listAgents, listAgentSummaries, getAgent, createAgent, updateAgent, deleteAgent, getDefaultAgent, exportAgent, importAgent]
|
|
152
174
|
);
|
|
153
175
|
}
|
|
154
176
|
|
|
@@ -158,32 +180,32 @@ function useAgents(options) {
|
|
|
158
180
|
function useSkills(options) {
|
|
159
181
|
const optionsRef = useOptionsRef(options);
|
|
160
182
|
const { execute: listSkills, loading: listLoading, error: listError } = _hooks.useApiAsync.call(void 0,
|
|
161
|
-
() =>
|
|
183
|
+
() => _chunkKA7N4YTFjs.listSkillsApi.call(void 0, optionsRef.current),
|
|
162
184
|
(data) => data.skills,
|
|
163
185
|
[]
|
|
164
186
|
);
|
|
165
187
|
const { execute: getSkill, loading: getLoading, error: getError } = _hooks.useApiAsync.call(void 0,
|
|
166
|
-
(skillId) =>
|
|
188
|
+
(skillId) => _chunkKA7N4YTFjs.getSkillApi.call(void 0, skillId, optionsRef.current),
|
|
167
189
|
(data) => data.skill || null,
|
|
168
190
|
null
|
|
169
191
|
);
|
|
170
192
|
const { execute: createSkill, loading: createLoading, error: createError } = _hooks.useApiAsync.call(void 0,
|
|
171
|
-
(skill) =>
|
|
193
|
+
(skill) => _chunkKA7N4YTFjs.createSkillApi.call(void 0, skill, optionsRef.current),
|
|
172
194
|
(data) => data.skill || null,
|
|
173
195
|
null
|
|
174
196
|
);
|
|
175
197
|
const { execute: updateSkill, loading: updateLoading, error: updateError } = _hooks.useApiAsync.call(void 0,
|
|
176
|
-
(skillId, skill) =>
|
|
198
|
+
(skillId, skill) => _chunkKA7N4YTFjs.updateSkillApi.call(void 0, skillId, skill, optionsRef.current),
|
|
177
199
|
(data) => data.skill || null,
|
|
178
200
|
null
|
|
179
201
|
);
|
|
180
202
|
const { execute: deleteSkill, loading: deleteLoading, error: deleteError } = _hooks.useApiAsync.call(void 0,
|
|
181
|
-
(skillId) =>
|
|
203
|
+
(skillId) => _chunkKA7N4YTFjs.deleteSkillApi.call(void 0, skillId, optionsRef.current),
|
|
182
204
|
() => true,
|
|
183
205
|
false
|
|
184
206
|
);
|
|
185
207
|
const { execute: getCategories, loading: categoriesLoading, error: categoriesError } = _hooks.useApiAsync.call(void 0,
|
|
186
|
-
() =>
|
|
208
|
+
() => _chunkKA7N4YTFjs.getSkillCategoriesApi.call(void 0, optionsRef.current),
|
|
187
209
|
(data) => data.categories,
|
|
188
210
|
[]
|
|
189
211
|
);
|
|
@@ -210,27 +232,27 @@ function useSkills(options) {
|
|
|
210
232
|
function useSubAgents(options) {
|
|
211
233
|
const optionsRef = useOptionsRef(options);
|
|
212
234
|
const { execute: listSubAgents, loading: listLoading, error: listError } = _hooks.useApiAsync.call(void 0,
|
|
213
|
-
() =>
|
|
235
|
+
() => _chunkKA7N4YTFjs.listSubAgentsApi.call(void 0, optionsRef.current),
|
|
214
236
|
(data) => data.subAgents,
|
|
215
237
|
[]
|
|
216
238
|
);
|
|
217
239
|
const { execute: getSubAgent, loading: getLoading, error: getError } = _hooks.useApiAsync.call(void 0,
|
|
218
|
-
(subAgentId) =>
|
|
240
|
+
(subAgentId) => _chunkKA7N4YTFjs.getSubAgentApi.call(void 0, subAgentId, optionsRef.current),
|
|
219
241
|
(data) => data.subAgent || null,
|
|
220
242
|
null
|
|
221
243
|
);
|
|
222
244
|
const { execute: createSubAgent, loading: createLoading, error: createError } = _hooks.useApiAsync.call(void 0,
|
|
223
|
-
(subAgent) =>
|
|
245
|
+
(subAgent) => _chunkKA7N4YTFjs.createSubAgentApi.call(void 0, subAgent, optionsRef.current),
|
|
224
246
|
(data) => data.subAgent || null,
|
|
225
247
|
null
|
|
226
248
|
);
|
|
227
249
|
const { execute: updateSubAgent, loading: updateLoading, error: updateError } = _hooks.useApiAsync.call(void 0,
|
|
228
|
-
(subAgentId, subAgent) =>
|
|
250
|
+
(subAgentId, subAgent) => _chunkKA7N4YTFjs.updateSubAgentApi.call(void 0, subAgentId, subAgent, optionsRef.current),
|
|
229
251
|
(data) => data.subAgent || null,
|
|
230
252
|
null
|
|
231
253
|
);
|
|
232
254
|
const { execute: deleteSubAgent, loading: deleteLoading, error: deleteError } = _hooks.useApiAsync.call(void 0,
|
|
233
|
-
(subAgentId) =>
|
|
255
|
+
(subAgentId) => _chunkKA7N4YTFjs.deleteSubAgentApi.call(void 0, subAgentId, optionsRef.current),
|
|
234
256
|
() => true,
|
|
235
257
|
false
|
|
236
258
|
);
|
|
@@ -256,32 +278,32 @@ function useSubAgents(options) {
|
|
|
256
278
|
function useToolDefinitions(options) {
|
|
257
279
|
const optionsRef = useOptionsRef(options);
|
|
258
280
|
const { execute: listToolDefinitions, loading: listLoading, error: listError } = _hooks.useApiAsync.call(void 0,
|
|
259
|
-
() =>
|
|
281
|
+
() => _chunkKA7N4YTFjs.listToolDefinitionsApi.call(void 0, optionsRef.current),
|
|
260
282
|
(data) => data.toolDefinitions,
|
|
261
283
|
[]
|
|
262
284
|
);
|
|
263
285
|
const { execute: getToolDefinition, loading: getLoading, error: getError } = _hooks.useApiAsync.call(void 0,
|
|
264
|
-
(toolDefId) =>
|
|
286
|
+
(toolDefId) => _chunkKA7N4YTFjs.getToolDefinitionApi.call(void 0, toolDefId, optionsRef.current),
|
|
265
287
|
(data) => data.toolDefinition || null,
|
|
266
288
|
null
|
|
267
289
|
);
|
|
268
290
|
const { execute: getToolDefinitionsByIds, loading: getByIdsLoading, error: getByIdsError } = _hooks.useApiAsync.call(void 0,
|
|
269
|
-
(ids) =>
|
|
291
|
+
(ids) => _chunkKA7N4YTFjs.getToolDefinitionsByIdsApi.call(void 0, ids, optionsRef.current),
|
|
270
292
|
(data) => data.toolDefinitions,
|
|
271
293
|
[]
|
|
272
294
|
);
|
|
273
295
|
const { execute: createToolDefinition, loading: createLoading, error: createError } = _hooks.useApiAsync.call(void 0,
|
|
274
|
-
(toolDefinition) =>
|
|
296
|
+
(toolDefinition) => _chunkKA7N4YTFjs.createToolDefinitionApi.call(void 0, toolDefinition, optionsRef.current),
|
|
275
297
|
(data) => data.toolDefinition || null,
|
|
276
298
|
null
|
|
277
299
|
);
|
|
278
300
|
const { execute: updateToolDefinition, loading: updateLoading, error: updateError } = _hooks.useApiAsync.call(void 0,
|
|
279
|
-
(toolDefId, toolDefinition) =>
|
|
301
|
+
(toolDefId, toolDefinition) => _chunkKA7N4YTFjs.updateToolDefinitionApi.call(void 0, toolDefId, toolDefinition, optionsRef.current),
|
|
280
302
|
(data) => data.toolDefinition || null,
|
|
281
303
|
null
|
|
282
304
|
);
|
|
283
305
|
const { execute: deleteToolDefinition, loading: deleteLoading, error: deleteError } = _hooks.useApiAsync.call(void 0,
|
|
284
|
-
(toolDefId) =>
|
|
306
|
+
(toolDefId) => _chunkKA7N4YTFjs.deleteToolDefinitionApi.call(void 0, toolDefId, optionsRef.current),
|
|
285
307
|
() => true,
|
|
286
308
|
false
|
|
287
309
|
);
|
|
@@ -308,37 +330,37 @@ function useToolDefinitions(options) {
|
|
|
308
330
|
function useAgentJobs(options) {
|
|
309
331
|
const optionsRef = useOptionsRef(options);
|
|
310
332
|
const { execute: listAgentJobs, loading: listLoading, error: listError } = _hooks.useApiAsync.call(void 0,
|
|
311
|
-
() =>
|
|
333
|
+
() => _chunkKA7N4YTFjs.listAgentJobsApi.call(void 0, optionsRef.current),
|
|
312
334
|
(data) => data.jobs,
|
|
313
335
|
[]
|
|
314
336
|
);
|
|
315
337
|
const { execute: getAgentJob, loading: getLoading, error: getError } = _hooks.useApiAsync.call(void 0,
|
|
316
|
-
(jobId) =>
|
|
338
|
+
(jobId) => _chunkKA7N4YTFjs.getAgentJobApi.call(void 0, jobId, optionsRef.current),
|
|
317
339
|
(data) => data.job || null,
|
|
318
340
|
null
|
|
319
341
|
);
|
|
320
342
|
const { execute: createAgentJob, loading: createLoading, error: createError } = _hooks.useApiAsync.call(void 0,
|
|
321
|
-
(job) =>
|
|
343
|
+
(job) => _chunkKA7N4YTFjs.createAgentJobApi.call(void 0, job, optionsRef.current),
|
|
322
344
|
(data) => data.job || null,
|
|
323
345
|
null
|
|
324
346
|
);
|
|
325
347
|
const { execute: updateAgentJob, loading: updateLoading, error: updateError } = _hooks.useApiAsync.call(void 0,
|
|
326
|
-
(jobId, job) =>
|
|
348
|
+
(jobId, job) => _chunkKA7N4YTFjs.updateAgentJobApi.call(void 0, jobId, job, optionsRef.current),
|
|
327
349
|
(data) => data.job || null,
|
|
328
350
|
null
|
|
329
351
|
);
|
|
330
352
|
const { execute: deleteAgentJob, loading: deleteLoading, error: deleteError } = _hooks.useApiAsync.call(void 0,
|
|
331
|
-
(jobId) =>
|
|
353
|
+
(jobId) => _chunkKA7N4YTFjs.deleteAgentJobApi.call(void 0, jobId, optionsRef.current),
|
|
332
354
|
() => true,
|
|
333
355
|
false
|
|
334
356
|
);
|
|
335
357
|
const { execute: pauseAgentJob, loading: pauseLoading, error: pauseError } = _hooks.useApiAsync.call(void 0,
|
|
336
|
-
(jobId) =>
|
|
358
|
+
(jobId) => _chunkKA7N4YTFjs.pauseAgentJobApi.call(void 0, jobId, optionsRef.current),
|
|
337
359
|
(data) => data.job || null,
|
|
338
360
|
null
|
|
339
361
|
);
|
|
340
362
|
const { execute: resumeAgentJob, loading: resumeLoading, error: resumeError } = _hooks.useApiAsync.call(void 0,
|
|
341
|
-
(jobId) =>
|
|
363
|
+
(jobId) => _chunkKA7N4YTFjs.resumeAgentJobApi.call(void 0, jobId, optionsRef.current),
|
|
342
364
|
(data) => data.job || null,
|
|
343
365
|
null
|
|
344
366
|
);
|
|
@@ -366,37 +388,37 @@ function useAgentJobs(options) {
|
|
|
366
388
|
function useWidgets(options) {
|
|
367
389
|
const optionsRef = useOptionsRef(options);
|
|
368
390
|
const { execute: listWidgets, loading: listLoading, error: listError } = _hooks.useApiAsync.call(void 0,
|
|
369
|
-
() =>
|
|
391
|
+
() => _chunkKA7N4YTFjs.listWidgetsApi.call(void 0, optionsRef.current.agentId, optionsRef.current),
|
|
370
392
|
(data) => data.widgets,
|
|
371
393
|
[]
|
|
372
394
|
);
|
|
373
395
|
const { execute: getWidget, loading: getLoading, error: getError } = _hooks.useApiAsync.call(void 0,
|
|
374
|
-
(widgetId) =>
|
|
396
|
+
(widgetId) => _chunkKA7N4YTFjs.getWidgetApi.call(void 0, widgetId, optionsRef.current),
|
|
375
397
|
(data) => data.widget || null,
|
|
376
398
|
null
|
|
377
399
|
);
|
|
378
400
|
const { execute: getDefaultWidget, loading: defaultLoading, error: defaultError } = _hooks.useApiAsync.call(void 0,
|
|
379
|
-
() =>
|
|
401
|
+
() => _chunkKA7N4YTFjs.getDefaultWidgetApi.call(void 0, optionsRef.current.agentId, optionsRef.current),
|
|
380
402
|
(data) => data.widget || null,
|
|
381
403
|
null
|
|
382
404
|
);
|
|
383
405
|
const { execute: createWidget, loading: createLoading, error: createError } = _hooks.useApiAsync.call(void 0,
|
|
384
|
-
(widget) =>
|
|
406
|
+
(widget) => _chunkKA7N4YTFjs.createWidgetApi.call(void 0, optionsRef.current.agentId, widget, optionsRef.current),
|
|
385
407
|
(data) => data.widget || null,
|
|
386
408
|
null
|
|
387
409
|
);
|
|
388
410
|
const { execute: updateWidget, loading: updateLoading, error: updateError } = _hooks.useApiAsync.call(void 0,
|
|
389
|
-
(widgetId, widget) =>
|
|
411
|
+
(widgetId, widget) => _chunkKA7N4YTFjs.updateWidgetApi.call(void 0, widgetId, widget, optionsRef.current),
|
|
390
412
|
(data) => data.widget || null,
|
|
391
413
|
null
|
|
392
414
|
);
|
|
393
415
|
const { execute: deleteWidget, loading: deleteLoading, error: deleteError } = _hooks.useApiAsync.call(void 0,
|
|
394
|
-
(widgetId) =>
|
|
416
|
+
(widgetId) => _chunkKA7N4YTFjs.deleteWidgetApi.call(void 0, widgetId, optionsRef.current),
|
|
395
417
|
() => true,
|
|
396
418
|
false
|
|
397
419
|
);
|
|
398
420
|
const { execute: setDefaultWidget, loading: setDefaultLoading, error: setDefaultError } = _hooks.useApiAsync.call(void 0,
|
|
399
|
-
(widgetId) =>
|
|
421
|
+
(widgetId) => _chunkKA7N4YTFjs.setDefaultWidgetApi.call(void 0, widgetId, optionsRef.current.agentId, optionsRef.current),
|
|
400
422
|
() => true,
|
|
401
423
|
false
|
|
402
424
|
);
|
|
@@ -424,27 +446,27 @@ function useWidgets(options) {
|
|
|
424
446
|
function useSkillUserConfig(options) {
|
|
425
447
|
const optionsRef = useOptionsRef(options);
|
|
426
448
|
const { execute: getSkillUserConfig, loading: getLoading, error: getError } = _hooks.useApiAsync.call(void 0,
|
|
427
|
-
(skillId, agentId) =>
|
|
449
|
+
(skillId, agentId) => _chunkKA7N4YTFjs.getSkillUserConfigApi.call(void 0, skillId, { ...optionsRef.current, agentId }),
|
|
428
450
|
(data) => data.userConfig || null,
|
|
429
451
|
null
|
|
430
452
|
);
|
|
431
453
|
const { execute: updateSkillUserConfig, loading: updateLoading, error: updateError } = _hooks.useApiAsync.call(void 0,
|
|
432
|
-
(skillId, data) =>
|
|
454
|
+
(skillId, data) => _chunkKA7N4YTFjs.updateSkillUserConfigApi.call(void 0, skillId, data, optionsRef.current),
|
|
433
455
|
(data) => data.userConfig || null,
|
|
434
456
|
null
|
|
435
457
|
);
|
|
436
458
|
const { execute: deleteSkillUserConfig, loading: deleteLoading, error: deleteError } = _hooks.useApiAsync.call(void 0,
|
|
437
|
-
(skillId, agentId) =>
|
|
459
|
+
(skillId, agentId) => _chunkKA7N4YTFjs.deleteSkillUserConfigApi.call(void 0, skillId, { ...optionsRef.current, agentId }),
|
|
438
460
|
() => true,
|
|
439
461
|
false
|
|
440
462
|
);
|
|
441
463
|
const { execute: listSkillUserConfigs, loading: listLoading, error: listError } = _hooks.useApiAsync.call(void 0,
|
|
442
|
-
(params) =>
|
|
464
|
+
(params) => _chunkKA7N4YTFjs.listSkillUserConfigsApi.call(void 0, { ...optionsRef.current, ...params }),
|
|
443
465
|
(data) => data.userConfigs || [],
|
|
444
466
|
[]
|
|
445
467
|
);
|
|
446
468
|
const { execute: resolveSkillConfig, loading: resolveLoading, error: resolveError } = _hooks.useApiAsync.call(void 0,
|
|
447
|
-
(skillId, agentId) =>
|
|
469
|
+
(skillId, agentId) => _chunkKA7N4YTFjs.resolveSkillConfigApi.call(void 0, skillId, agentId, optionsRef.current),
|
|
448
470
|
(data) => data,
|
|
449
471
|
null
|
|
450
472
|
);
|
|
@@ -470,22 +492,22 @@ function useSkillUserConfig(options) {
|
|
|
470
492
|
function useAnalytics(options) {
|
|
471
493
|
const optionsRef = useOptionsRef(options);
|
|
472
494
|
const { execute: getAgentChatsAnalytics, loading: chatsLoading, error: chatsError } = _hooks.useApiAsync.call(void 0,
|
|
473
|
-
(params) =>
|
|
495
|
+
(params) => _chunkKA7N4YTFjs.getAgentChatsAnalyticsApi.call(void 0, params, optionsRef.current),
|
|
474
496
|
(data) => data.data,
|
|
475
497
|
[]
|
|
476
498
|
);
|
|
477
499
|
const { execute: getAgentCSATAnalytics, loading: csatLoading, error: csatError } = _hooks.useApiAsync.call(void 0,
|
|
478
|
-
(params) =>
|
|
500
|
+
(params) => _chunkKA7N4YTFjs.getAgentCSATAnalyticsApi.call(void 0, params, optionsRef.current),
|
|
479
501
|
(data) => data.data,
|
|
480
502
|
[]
|
|
481
503
|
);
|
|
482
504
|
const { execute: getAgentListAnalytics, loading: listLoading, error: listError } = _hooks.useApiAsync.call(void 0,
|
|
483
|
-
() =>
|
|
505
|
+
() => _chunkKA7N4YTFjs.getAgentListAnalyticsApi.call(void 0, optionsRef.current),
|
|
484
506
|
(data) => data.data,
|
|
485
507
|
[]
|
|
486
508
|
);
|
|
487
509
|
const { execute: getTaskOutcomes, loading: taskLoading, error: taskError } = _hooks.useApiAsync.call(void 0,
|
|
488
|
-
(params) =>
|
|
510
|
+
(params) => _chunkKA7N4YTFjs.getTaskOutcomesApi.call(void 0, params, optionsRef.current),
|
|
489
511
|
(data) => data.data,
|
|
490
512
|
[]
|
|
491
513
|
);
|
|
@@ -510,37 +532,37 @@ function useAnalytics(options) {
|
|
|
510
532
|
function useIntegrations(options) {
|
|
511
533
|
const optionsRef = useOptionsRef(options);
|
|
512
534
|
const { execute: listIntegrations, loading: listLoading, error: listError } = _hooks.useApiAsync.call(void 0,
|
|
513
|
-
() =>
|
|
535
|
+
() => _chunkKA7N4YTFjs.listIntegrationsApi.call(void 0, optionsRef.current),
|
|
514
536
|
(data) => data.integrations,
|
|
515
537
|
[]
|
|
516
538
|
);
|
|
517
539
|
const { execute: getIntegration, loading: getLoading, error: getError } = _hooks.useApiAsync.call(void 0,
|
|
518
|
-
(provider, integrationType) =>
|
|
540
|
+
(provider, integrationType) => _chunkKA7N4YTFjs.getIntegrationApi.call(void 0, provider, integrationType, optionsRef.current),
|
|
519
541
|
(data) => data.integration || null,
|
|
520
542
|
null
|
|
521
543
|
);
|
|
522
544
|
const { execute: connectIntegration, loading: connectLoading, error: connectError } = _hooks.useApiAsync.call(void 0,
|
|
523
|
-
(params) =>
|
|
545
|
+
(params) => _chunkKA7N4YTFjs.connectIntegrationApi.call(void 0, params, optionsRef.current),
|
|
524
546
|
(data) => ({ authUrl: data.auth_url, state: data.state }),
|
|
525
547
|
null
|
|
526
548
|
);
|
|
527
549
|
const { execute: disconnectIntegration, loading: disconnectLoading, error: disconnectError } = _hooks.useApiAsync.call(void 0,
|
|
528
|
-
(params) =>
|
|
550
|
+
(params) => _chunkKA7N4YTFjs.disconnectIntegrationApi.call(void 0, params, optionsRef.current),
|
|
529
551
|
() => true,
|
|
530
552
|
false
|
|
531
553
|
);
|
|
532
554
|
const { execute: refreshIntegration, loading: refreshLoading, error: refreshError } = _hooks.useApiAsync.call(void 0,
|
|
533
|
-
(params) =>
|
|
555
|
+
(params) => _chunkKA7N4YTFjs.refreshIntegrationApi.call(void 0, params, optionsRef.current),
|
|
534
556
|
(data) => data.integration || null,
|
|
535
557
|
null
|
|
536
558
|
);
|
|
537
559
|
const { execute: updateTriage, loading: updateTriageLoading, error: updateTriageError } = _hooks.useApiAsync.call(void 0,
|
|
538
|
-
(params) =>
|
|
560
|
+
(params) => _chunkKA7N4YTFjs.updateIntegrationTriageApi.call(void 0, params, optionsRef.current),
|
|
539
561
|
(data) => data.integration || null,
|
|
540
562
|
null
|
|
541
563
|
);
|
|
542
564
|
const { execute: runEmailTriage, loading: runTriageLoading, error: runTriageError } = _hooks.useApiAsync.call(void 0,
|
|
543
|
-
() =>
|
|
565
|
+
() => _chunkKA7N4YTFjs.runEmailTriageApi.call(void 0, optionsRef.current),
|
|
544
566
|
(data) => ({ success: data.success, emailsFound: data.emails_found, instancesCreated: data.instances_created }),
|
|
545
567
|
null
|
|
546
568
|
);
|
|
@@ -568,27 +590,27 @@ function useIntegrations(options) {
|
|
|
568
590
|
function useSandbox(options) {
|
|
569
591
|
const optionsRef = useOptionsRef(options);
|
|
570
592
|
const { execute: createSandbox, loading: createLoading, error: createError } = _hooks.useApiAsync.call(void 0,
|
|
571
|
-
(request) =>
|
|
593
|
+
(request) => _chunkKA7N4YTFjs.createSandboxApi.call(void 0, request, optionsRef.current),
|
|
572
594
|
(data) => ({ id: data.id, url: data.url, sandbox: data.sandbox }),
|
|
573
595
|
null
|
|
574
596
|
);
|
|
575
597
|
const { execute: getSandbox, loading: getLoading, error: getError } = _hooks.useApiAsync.call(void 0,
|
|
576
|
-
(sandboxId) =>
|
|
598
|
+
(sandboxId) => _chunkKA7N4YTFjs.getSandboxApi.call(void 0, sandboxId, optionsRef.current),
|
|
577
599
|
(data) => data.sandbox || null,
|
|
578
600
|
null
|
|
579
601
|
);
|
|
580
602
|
const { execute: updateSandbox, loading: updateLoading, error: updateError } = _hooks.useApiAsync.call(void 0,
|
|
581
|
-
(sandboxId, request) =>
|
|
603
|
+
(sandboxId, request) => _chunkKA7N4YTFjs.updateSandboxApi.call(void 0, sandboxId, request, optionsRef.current),
|
|
582
604
|
(data) => ({ id: data.id, url: data.url, sandbox: data.sandbox }),
|
|
583
605
|
null
|
|
584
606
|
);
|
|
585
607
|
const { execute: listSandboxes, loading: listLoading, error: listError } = _hooks.useApiAsync.call(void 0,
|
|
586
|
-
(limit) =>
|
|
608
|
+
(limit) => _chunkKA7N4YTFjs.listSandboxesApi.call(void 0, { ...optionsRef.current, limit }),
|
|
587
609
|
(data) => ({ sandboxes: data.sandboxes, total: data.total }),
|
|
588
610
|
{ sandboxes: [], total: 0 }
|
|
589
611
|
);
|
|
590
612
|
const { execute: deleteSandbox, loading: deleteLoading, error: deleteError } = _hooks.useApiAsync.call(void 0,
|
|
591
|
-
(sandboxId) =>
|
|
613
|
+
(sandboxId) => _chunkKA7N4YTFjs.deleteSandboxApi.call(void 0, sandboxId, optionsRef.current),
|
|
592
614
|
(data) => data.success,
|
|
593
615
|
false
|
|
594
616
|
);
|
|
@@ -608,48 +630,64 @@ function useSandbox(options) {
|
|
|
608
630
|
);
|
|
609
631
|
}
|
|
610
632
|
|
|
633
|
+
// hooks/use-structured-output.ts
|
|
634
|
+
|
|
635
|
+
|
|
636
|
+
function useStructuredOutput(options) {
|
|
637
|
+
const optionsRef = useOptionsRef(options);
|
|
638
|
+
const { execute: run, loading, error, clearError } = _hooks.useApiAsync.call(void 0,
|
|
639
|
+
(request) => _chunkKA7N4YTFjs.structuredOutputApi.call(void 0, request, optionsRef.current),
|
|
640
|
+
(resp) => resp,
|
|
641
|
+
null
|
|
642
|
+
);
|
|
643
|
+
return _react.useMemo.call(void 0,
|
|
644
|
+
() => ({ run, loading, error, clearError }),
|
|
645
|
+
[run, loading, error, clearError]
|
|
646
|
+
);
|
|
647
|
+
}
|
|
648
|
+
|
|
611
649
|
// hooks/use-scheduler-tasks.ts
|
|
612
650
|
|
|
613
651
|
|
|
614
652
|
function useSchedulerTasks(options) {
|
|
615
653
|
const optionsRef = useOptionsRef(options);
|
|
616
654
|
const { execute: listTasks, loading: listLoading, error: listError } = _hooks.useApiAsync.call(void 0,
|
|
617
|
-
(params) =>
|
|
655
|
+
(params) => _chunkKA7N4YTFjs.listSchedulerTasksApi.call(void 0, { ...optionsRef.current, ...params }),
|
|
618
656
|
(data) => data.tasks,
|
|
619
657
|
[]
|
|
620
658
|
);
|
|
621
659
|
const { execute: createTask, loading: createLoading, error: createError } = _hooks.useApiAsync.call(void 0,
|
|
622
|
-
(task) =>
|
|
660
|
+
(task) => _chunkKA7N4YTFjs.createSchedulerTaskApi.call(void 0, task, optionsRef.current),
|
|
623
661
|
(data) => data.task || null,
|
|
624
662
|
null
|
|
625
663
|
);
|
|
626
664
|
const { execute: getTask, loading: getLoading, error: getError } = _hooks.useApiAsync.call(void 0,
|
|
627
|
-
(taskId) =>
|
|
665
|
+
(taskId) => _chunkKA7N4YTFjs.getSchedulerTaskApi.call(void 0, taskId, optionsRef.current),
|
|
628
666
|
(data) => data.task || null,
|
|
629
667
|
null
|
|
630
668
|
);
|
|
631
669
|
const { execute: updateTask, loading: updateLoading, error: updateError } = _hooks.useApiAsync.call(void 0,
|
|
632
|
-
(taskId, task) =>
|
|
670
|
+
(taskId, task) => _chunkKA7N4YTFjs.updateSchedulerTaskApi.call(void 0, taskId, task, optionsRef.current),
|
|
633
671
|
(data) => data.task || null,
|
|
634
672
|
null
|
|
635
673
|
);
|
|
636
674
|
const { execute: deleteTask, loading: deleteLoading, error: deleteError } = _hooks.useApiAsync.call(void 0,
|
|
637
|
-
(taskId) =>
|
|
675
|
+
(taskId) => _chunkKA7N4YTFjs.deleteSchedulerTaskApi.call(void 0, taskId, optionsRef.current),
|
|
638
676
|
(data) => data.success,
|
|
639
677
|
false
|
|
640
678
|
);
|
|
641
679
|
const { execute: snoozeTask, loading: snoozeLoading, error: snoozeError } = _hooks.useApiAsync.call(void 0,
|
|
642
|
-
(taskId, delay) =>
|
|
680
|
+
(taskId, delay) => _chunkKA7N4YTFjs.snoozeSchedulerTaskApi.call(void 0, taskId, delay, optionsRef.current),
|
|
643
681
|
(data) => data.task || null,
|
|
644
682
|
null
|
|
645
683
|
);
|
|
646
684
|
const { execute: completeTask, loading: completeLoading, error: completeError } = _hooks.useApiAsync.call(void 0,
|
|
647
|
-
(taskId) =>
|
|
685
|
+
(taskId) => _chunkKA7N4YTFjs.completeSchedulerTaskApi.call(void 0, taskId, optionsRef.current),
|
|
648
686
|
(data) => data.task || null,
|
|
649
687
|
null
|
|
650
688
|
);
|
|
651
689
|
const { execute: startTask, loading: startLoading, error: startError } = _hooks.useApiAsync.call(void 0,
|
|
652
|
-
(taskId) =>
|
|
690
|
+
(taskId) => _chunkKA7N4YTFjs.startSchedulerTaskApi.call(void 0, taskId, optionsRef.current),
|
|
653
691
|
(data) => data.task || null,
|
|
654
692
|
null
|
|
655
693
|
);
|
|
@@ -678,42 +716,42 @@ function useSchedulerTasks(options) {
|
|
|
678
716
|
function useSchedulerSchedules(options) {
|
|
679
717
|
const optionsRef = useOptionsRef(options);
|
|
680
718
|
const { execute: listSchedules, loading: listLoading, error: listError } = _hooks.useApiAsync.call(void 0,
|
|
681
|
-
(params) =>
|
|
719
|
+
(params) => _chunkKA7N4YTFjs.listSchedulesApi.call(void 0, { ...optionsRef.current, ...params }),
|
|
682
720
|
(data) => data.schedules,
|
|
683
721
|
[]
|
|
684
722
|
);
|
|
685
723
|
const { execute: createSchedule, loading: createLoading, error: createError } = _hooks.useApiAsync.call(void 0,
|
|
686
|
-
(schedule) =>
|
|
724
|
+
(schedule) => _chunkKA7N4YTFjs.createScheduleApi.call(void 0, schedule, optionsRef.current),
|
|
687
725
|
(data) => data.schedule || null,
|
|
688
726
|
null
|
|
689
727
|
);
|
|
690
728
|
const { execute: getSchedule, loading: getLoading, error: getError } = _hooks.useApiAsync.call(void 0,
|
|
691
|
-
(scheduleId) =>
|
|
729
|
+
(scheduleId) => _chunkKA7N4YTFjs.getScheduleApi.call(void 0, scheduleId, optionsRef.current),
|
|
692
730
|
(data) => data.schedule || null,
|
|
693
731
|
null
|
|
694
732
|
);
|
|
695
733
|
const { execute: updateSchedule, loading: updateLoading, error: updateError } = _hooks.useApiAsync.call(void 0,
|
|
696
|
-
(scheduleId, schedule) =>
|
|
734
|
+
(scheduleId, schedule) => _chunkKA7N4YTFjs.updateScheduleApi.call(void 0, scheduleId, schedule, optionsRef.current),
|
|
697
735
|
(data) => data.schedule || null,
|
|
698
736
|
null
|
|
699
737
|
);
|
|
700
738
|
const { execute: deleteSchedule, loading: deleteLoading, error: deleteError } = _hooks.useApiAsync.call(void 0,
|
|
701
|
-
(scheduleId) =>
|
|
739
|
+
(scheduleId) => _chunkKA7N4YTFjs.deleteScheduleApi.call(void 0, scheduleId, optionsRef.current),
|
|
702
740
|
(data) => data.success,
|
|
703
741
|
false
|
|
704
742
|
);
|
|
705
743
|
const { execute: pauseSchedule, loading: pauseLoading, error: pauseError } = _hooks.useApiAsync.call(void 0,
|
|
706
|
-
(scheduleId) =>
|
|
744
|
+
(scheduleId) => _chunkKA7N4YTFjs.pauseScheduleApi.call(void 0, scheduleId, optionsRef.current),
|
|
707
745
|
(data) => data.schedule || null,
|
|
708
746
|
null
|
|
709
747
|
);
|
|
710
748
|
const { execute: resumeSchedule, loading: resumeLoading, error: resumeError } = _hooks.useApiAsync.call(void 0,
|
|
711
|
-
(scheduleId) =>
|
|
749
|
+
(scheduleId) => _chunkKA7N4YTFjs.resumeScheduleApi.call(void 0, scheduleId, optionsRef.current),
|
|
712
750
|
(data) => data.schedule || null,
|
|
713
751
|
null
|
|
714
752
|
);
|
|
715
753
|
const { execute: runSchedule, loading: runLoading, error: runError } = _hooks.useApiAsync.call(void 0,
|
|
716
|
-
(scheduleId) =>
|
|
754
|
+
(scheduleId) => _chunkKA7N4YTFjs.runScheduleApi.call(void 0, scheduleId, optionsRef.current),
|
|
717
755
|
(data) => data.schedule || null,
|
|
718
756
|
null
|
|
719
757
|
);
|
|
@@ -794,17 +832,17 @@ function useBackgroundAgents(options) {
|
|
|
794
832
|
transport.streamJob(jobId);
|
|
795
833
|
}, []);
|
|
796
834
|
const { execute: triggerAgent, loading: triggerLoading, error: triggerError } = _hooks.useApiAsync.call(void 0,
|
|
797
|
-
(request) =>
|
|
835
|
+
(request) => _chunkKA7N4YTFjs.triggerBackgroundAgentApi.call(void 0, request, optionsRef.current),
|
|
798
836
|
(data) => data,
|
|
799
837
|
null
|
|
800
838
|
);
|
|
801
839
|
const { execute: checkStatus, loading: statusLoading, error: statusError } = _hooks.useApiAsync.call(void 0,
|
|
802
|
-
(jobId) =>
|
|
840
|
+
(jobId) => _chunkKA7N4YTFjs.checkBackgroundAgentStatusApi.call(void 0, jobId, optionsRef.current),
|
|
803
841
|
(data) => data,
|
|
804
842
|
null
|
|
805
843
|
);
|
|
806
844
|
const { execute: listAgentSummaries, loading: summaryLoading, error: summaryError } = _hooks.useApiAsync.call(void 0,
|
|
807
|
-
() =>
|
|
845
|
+
() => _chunkKA7N4YTFjs.listAgentsSummaryApi.call(void 0, optionsRef.current),
|
|
808
846
|
(data) => data.agents || [],
|
|
809
847
|
[]
|
|
810
848
|
);
|
|
@@ -1071,5 +1109,6 @@ function useBackgroundAgents(options) {
|
|
|
1071
1109
|
|
|
1072
1110
|
|
|
1073
1111
|
|
|
1074
|
-
|
|
1075
|
-
|
|
1112
|
+
|
|
1113
|
+
exports.useOptionsRef = useOptionsRef; exports.useAgents = useAgents; exports.useSkills = useSkills; exports.useSubAgents = useSubAgents; exports.useToolDefinitions = useToolDefinitions; exports.useAgentJobs = useAgentJobs; exports.useWidgets = useWidgets; exports.useSkillUserConfig = useSkillUserConfig; exports.useAnalytics = useAnalytics; exports.useIntegrations = useIntegrations; exports.useSandbox = useSandbox; exports.useStructuredOutput = useStructuredOutput; exports.useSchedulerTasks = useSchedulerTasks; exports.useSchedulerSchedules = useSchedulerSchedules; exports.useBackgroundAgents = useBackgroundAgents;
|
|
1114
|
+
//# sourceMappingURL=chunk-PKLT6GDN.js.map
|