@elqnt/agents 3.3.0 → 3.6.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-DLQlC7N6.d.mts → agent-models-vL3a7oFB.d.mts} +44 -4
- package/dist/{agent-models-DLQlC7N6.d.ts → agent-models-vL3a7oFB.d.ts} +44 -4
- package/dist/api/index.d.mts +7 -7
- package/dist/api/index.d.ts +7 -7
- package/dist/api/index.js +2 -2
- package/dist/api/index.js.map +1 -1
- package/dist/api/index.mjs +1 -1
- package/dist/api/server.d.mts +3 -3
- package/dist/api/server.d.ts +3 -3
- package/dist/api/server.js +6 -6
- package/dist/api/server.js.map +1 -1
- package/dist/api/server.mjs +5 -5
- package/dist/api/server.mjs.map +1 -1
- package/dist/chunk-2JDVRL35.js.map +1 -1
- package/dist/{chunk-VGWUFWOE.js → chunk-B2FNXJRV.js} +4 -2
- package/dist/chunk-B2FNXJRV.js.map +1 -0
- package/dist/{chunk-KA7N4YTF.js → chunk-ENKX5CU7.js} +6 -6
- package/dist/chunk-ENKX5CU7.js.map +1 -0
- package/dist/{chunk-PKLT6GDN.js → chunk-G2T3H3V4.js} +83 -83
- package/dist/chunk-G2T3H3V4.js.map +1 -0
- package/dist/{chunk-JCPMUFOP.mjs → chunk-IXUXNTSL.mjs} +3 -1
- package/dist/chunk-IXUXNTSL.mjs.map +1 -0
- package/dist/{chunk-BT33DRUI.mjs → chunk-OQ6FJAI2.mjs} +5 -5
- package/dist/chunk-OQ6FJAI2.mjs.map +1 -0
- package/dist/{chunk-MNFZXJ2Y.mjs → chunk-WYNGW5GI.mjs} +2 -2
- package/dist/chunk-ZS7DRNCT.js.map +1 -1
- package/dist/hooks/index.d.mts +5 -5
- package/dist/hooks/index.d.ts +5 -5
- package/dist/hooks/index.js +3 -3
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +2 -2
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +6 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -3
- package/dist/models/index.d.mts +2 -2
- package/dist/models/index.d.ts +2 -2
- package/dist/models/index.js +4 -2
- package/dist/models/index.js.map +1 -1
- package/dist/models/index.mjs +3 -1
- package/dist/{sandbox-DOxoM2Ge.d.mts → sandbox-Djb8gA7e.d.mts} +32 -2
- package/dist/{sandbox-DOxoM2Ge.d.ts → sandbox-Djb8gA7e.d.ts} +32 -2
- package/dist/transport/index.d.mts +3 -3
- package/dist/transport/index.d.ts +3 -3
- package/dist/transport/index.js.map +1 -1
- package/dist/{types-C2qd5f-E.d.mts → types-Bv7_AOrZ.d.mts} +1 -1
- package/dist/{types-k9PszCzt.d.ts → types-CuOOCeF8.d.ts} +1 -1
- package/dist/utils/index.d.mts +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.js.map +1 -1
- package/package.json +5 -5
- package/dist/chunk-BT33DRUI.mjs.map +0 -1
- package/dist/chunk-JCPMUFOP.mjs.map +0 -1
- package/dist/chunk-KA7N4YTF.js.map +0 -1
- package/dist/chunk-PKLT6GDN.js.map +0 -1
- package/dist/chunk-VGWUFWOE.js.map +0 -1
- /package/dist/{chunk-MNFZXJ2Y.mjs.map → chunk-WYNGW5GI.mjs.map} +0 -0
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
|
|
81
81
|
|
|
82
82
|
|
|
83
|
-
var
|
|
83
|
+
var _chunkENKX5CU7js = require('./chunk-ENKX5CU7.js');
|
|
84
84
|
|
|
85
85
|
|
|
86
86
|
var _chunk2JDVRL35js = require('./chunk-2JDVRL35.js');
|
|
@@ -103,42 +103,42 @@ function useOptionsRef(options) {
|
|
|
103
103
|
function useAgents(options) {
|
|
104
104
|
const optionsRef = useOptionsRef(options);
|
|
105
105
|
const { execute: listAgents, loading: listLoading, error: listError } = _hooks.useApiAsync.call(void 0,
|
|
106
|
-
() =>
|
|
106
|
+
() => _chunkENKX5CU7js.listAgentsApi.call(void 0, optionsRef.current),
|
|
107
107
|
(data) => data.agents,
|
|
108
108
|
[]
|
|
109
109
|
);
|
|
110
110
|
const { execute: listAgentSummaries, loading: listSummaryLoading, error: listSummaryError } = _hooks.useApiAsync.call(void 0,
|
|
111
|
-
() =>
|
|
111
|
+
() => _chunkENKX5CU7js.listAgentsSummaryApi.call(void 0, optionsRef.current),
|
|
112
112
|
(data) => data.agents,
|
|
113
113
|
[]
|
|
114
114
|
);
|
|
115
115
|
const { execute: getAgent, loading: getLoading, error: getError } = _hooks.useApiAsync.call(void 0,
|
|
116
|
-
(agentId) =>
|
|
116
|
+
(agentId) => _chunkENKX5CU7js.getAgentApi.call(void 0, agentId, optionsRef.current),
|
|
117
117
|
(data) => data.agent || null,
|
|
118
118
|
null
|
|
119
119
|
);
|
|
120
120
|
const { execute: createAgent, loading: createLoading, error: createError } = _hooks.useApiAsync.call(void 0,
|
|
121
|
-
(agent) =>
|
|
121
|
+
(agent) => _chunkENKX5CU7js.createAgentApi.call(void 0, agent, optionsRef.current),
|
|
122
122
|
(data) => data.agent || null,
|
|
123
123
|
null
|
|
124
124
|
);
|
|
125
125
|
const { execute: updateAgent, loading: updateLoading, error: updateError } = _hooks.useApiAsync.call(void 0,
|
|
126
|
-
(agentId, agent) =>
|
|
126
|
+
(agentId, agent) => _chunkENKX5CU7js.updateAgentApi.call(void 0, agentId, agent, optionsRef.current),
|
|
127
127
|
(data) => data.agent || null,
|
|
128
128
|
null
|
|
129
129
|
);
|
|
130
130
|
const { execute: deleteAgent, loading: deleteLoading, error: deleteError } = _hooks.useApiAsync.call(void 0,
|
|
131
|
-
(agentId) =>
|
|
131
|
+
(agentId) => _chunkENKX5CU7js.deleteAgentApi.call(void 0, agentId, optionsRef.current),
|
|
132
132
|
() => true,
|
|
133
133
|
false
|
|
134
134
|
);
|
|
135
135
|
const { execute: getDefaultAgent, loading: defaultLoading, error: defaultError } = _hooks.useApiAsync.call(void 0,
|
|
136
|
-
() =>
|
|
136
|
+
() => _chunkENKX5CU7js.getDefaultAgentApi.call(void 0, optionsRef.current),
|
|
137
137
|
(data) => data.agent || null,
|
|
138
138
|
null
|
|
139
139
|
);
|
|
140
140
|
const exportAgent = async (agentId) => {
|
|
141
|
-
const agent = await
|
|
141
|
+
const agent = await _chunkENKX5CU7js.exportAgentApi.call(void 0, agentId, optionsRef.current);
|
|
142
142
|
const json = JSON.stringify(agent, null, 2);
|
|
143
143
|
const blob = new Blob([json], { type: "application/json" });
|
|
144
144
|
const url = URL.createObjectURL(blob);
|
|
@@ -150,7 +150,7 @@ function useAgents(options) {
|
|
|
150
150
|
return agent;
|
|
151
151
|
};
|
|
152
152
|
const { execute: importAgent, loading: importLoading, error: importError } = _hooks.useApiAsync.call(void 0,
|
|
153
|
-
(agent) =>
|
|
153
|
+
(agent) => _chunkENKX5CU7js.importAgentApi.call(void 0, agent, optionsRef.current),
|
|
154
154
|
(data) => data.agent || null,
|
|
155
155
|
null
|
|
156
156
|
);
|
|
@@ -180,32 +180,32 @@ function useAgents(options) {
|
|
|
180
180
|
function useSkills(options) {
|
|
181
181
|
const optionsRef = useOptionsRef(options);
|
|
182
182
|
const { execute: listSkills, loading: listLoading, error: listError } = _hooks.useApiAsync.call(void 0,
|
|
183
|
-
() =>
|
|
183
|
+
() => _chunkENKX5CU7js.listSkillsApi.call(void 0, optionsRef.current),
|
|
184
184
|
(data) => data.skills,
|
|
185
185
|
[]
|
|
186
186
|
);
|
|
187
187
|
const { execute: getSkill, loading: getLoading, error: getError } = _hooks.useApiAsync.call(void 0,
|
|
188
|
-
(skillId) =>
|
|
188
|
+
(skillId) => _chunkENKX5CU7js.getSkillApi.call(void 0, skillId, optionsRef.current),
|
|
189
189
|
(data) => data.skill || null,
|
|
190
190
|
null
|
|
191
191
|
);
|
|
192
192
|
const { execute: createSkill, loading: createLoading, error: createError } = _hooks.useApiAsync.call(void 0,
|
|
193
|
-
(skill) =>
|
|
193
|
+
(skill) => _chunkENKX5CU7js.createSkillApi.call(void 0, skill, optionsRef.current),
|
|
194
194
|
(data) => data.skill || null,
|
|
195
195
|
null
|
|
196
196
|
);
|
|
197
197
|
const { execute: updateSkill, loading: updateLoading, error: updateError } = _hooks.useApiAsync.call(void 0,
|
|
198
|
-
(skillId, skill) =>
|
|
198
|
+
(skillId, skill) => _chunkENKX5CU7js.updateSkillApi.call(void 0, skillId, skill, optionsRef.current),
|
|
199
199
|
(data) => data.skill || null,
|
|
200
200
|
null
|
|
201
201
|
);
|
|
202
202
|
const { execute: deleteSkill, loading: deleteLoading, error: deleteError } = _hooks.useApiAsync.call(void 0,
|
|
203
|
-
(skillId) =>
|
|
203
|
+
(skillId) => _chunkENKX5CU7js.deleteSkillApi.call(void 0, skillId, optionsRef.current),
|
|
204
204
|
() => true,
|
|
205
205
|
false
|
|
206
206
|
);
|
|
207
207
|
const { execute: getCategories, loading: categoriesLoading, error: categoriesError } = _hooks.useApiAsync.call(void 0,
|
|
208
|
-
() =>
|
|
208
|
+
() => _chunkENKX5CU7js.getSkillCategoriesApi.call(void 0, optionsRef.current),
|
|
209
209
|
(data) => data.categories,
|
|
210
210
|
[]
|
|
211
211
|
);
|
|
@@ -232,27 +232,27 @@ function useSkills(options) {
|
|
|
232
232
|
function useSubAgents(options) {
|
|
233
233
|
const optionsRef = useOptionsRef(options);
|
|
234
234
|
const { execute: listSubAgents, loading: listLoading, error: listError } = _hooks.useApiAsync.call(void 0,
|
|
235
|
-
() =>
|
|
235
|
+
() => _chunkENKX5CU7js.listSubAgentsApi.call(void 0, optionsRef.current),
|
|
236
236
|
(data) => data.subAgents,
|
|
237
237
|
[]
|
|
238
238
|
);
|
|
239
239
|
const { execute: getSubAgent, loading: getLoading, error: getError } = _hooks.useApiAsync.call(void 0,
|
|
240
|
-
(subAgentId) =>
|
|
240
|
+
(subAgentId) => _chunkENKX5CU7js.getSubAgentApi.call(void 0, subAgentId, optionsRef.current),
|
|
241
241
|
(data) => data.subAgent || null,
|
|
242
242
|
null
|
|
243
243
|
);
|
|
244
244
|
const { execute: createSubAgent, loading: createLoading, error: createError } = _hooks.useApiAsync.call(void 0,
|
|
245
|
-
(subAgent) =>
|
|
245
|
+
(subAgent) => _chunkENKX5CU7js.createSubAgentApi.call(void 0, subAgent, optionsRef.current),
|
|
246
246
|
(data) => data.subAgent || null,
|
|
247
247
|
null
|
|
248
248
|
);
|
|
249
249
|
const { execute: updateSubAgent, loading: updateLoading, error: updateError } = _hooks.useApiAsync.call(void 0,
|
|
250
|
-
(subAgentId, subAgent) =>
|
|
250
|
+
(subAgentId, subAgent) => _chunkENKX5CU7js.updateSubAgentApi.call(void 0, subAgentId, subAgent, optionsRef.current),
|
|
251
251
|
(data) => data.subAgent || null,
|
|
252
252
|
null
|
|
253
253
|
);
|
|
254
254
|
const { execute: deleteSubAgent, loading: deleteLoading, error: deleteError } = _hooks.useApiAsync.call(void 0,
|
|
255
|
-
(subAgentId) =>
|
|
255
|
+
(subAgentId) => _chunkENKX5CU7js.deleteSubAgentApi.call(void 0, subAgentId, optionsRef.current),
|
|
256
256
|
() => true,
|
|
257
257
|
false
|
|
258
258
|
);
|
|
@@ -278,32 +278,32 @@ function useSubAgents(options) {
|
|
|
278
278
|
function useToolDefinitions(options) {
|
|
279
279
|
const optionsRef = useOptionsRef(options);
|
|
280
280
|
const { execute: listToolDefinitions, loading: listLoading, error: listError } = _hooks.useApiAsync.call(void 0,
|
|
281
|
-
() =>
|
|
281
|
+
() => _chunkENKX5CU7js.listToolDefinitionsApi.call(void 0, optionsRef.current),
|
|
282
282
|
(data) => data.toolDefinitions,
|
|
283
283
|
[]
|
|
284
284
|
);
|
|
285
285
|
const { execute: getToolDefinition, loading: getLoading, error: getError } = _hooks.useApiAsync.call(void 0,
|
|
286
|
-
(toolDefId) =>
|
|
286
|
+
(toolDefId) => _chunkENKX5CU7js.getToolDefinitionApi.call(void 0, toolDefId, optionsRef.current),
|
|
287
287
|
(data) => data.toolDefinition || null,
|
|
288
288
|
null
|
|
289
289
|
);
|
|
290
290
|
const { execute: getToolDefinitionsByIds, loading: getByIdsLoading, error: getByIdsError } = _hooks.useApiAsync.call(void 0,
|
|
291
|
-
(ids) =>
|
|
291
|
+
(ids) => _chunkENKX5CU7js.getToolDefinitionsByIdsApi.call(void 0, ids, optionsRef.current),
|
|
292
292
|
(data) => data.toolDefinitions,
|
|
293
293
|
[]
|
|
294
294
|
);
|
|
295
295
|
const { execute: createToolDefinition, loading: createLoading, error: createError } = _hooks.useApiAsync.call(void 0,
|
|
296
|
-
(toolDefinition) =>
|
|
296
|
+
(toolDefinition) => _chunkENKX5CU7js.createToolDefinitionApi.call(void 0, toolDefinition, optionsRef.current),
|
|
297
297
|
(data) => data.toolDefinition || null,
|
|
298
298
|
null
|
|
299
299
|
);
|
|
300
300
|
const { execute: updateToolDefinition, loading: updateLoading, error: updateError } = _hooks.useApiAsync.call(void 0,
|
|
301
|
-
(toolDefId, toolDefinition) =>
|
|
301
|
+
(toolDefId, toolDefinition) => _chunkENKX5CU7js.updateToolDefinitionApi.call(void 0, toolDefId, toolDefinition, optionsRef.current),
|
|
302
302
|
(data) => data.toolDefinition || null,
|
|
303
303
|
null
|
|
304
304
|
);
|
|
305
305
|
const { execute: deleteToolDefinition, loading: deleteLoading, error: deleteError } = _hooks.useApiAsync.call(void 0,
|
|
306
|
-
(toolDefId) =>
|
|
306
|
+
(toolDefId) => _chunkENKX5CU7js.deleteToolDefinitionApi.call(void 0, toolDefId, optionsRef.current),
|
|
307
307
|
() => true,
|
|
308
308
|
false
|
|
309
309
|
);
|
|
@@ -330,37 +330,37 @@ function useToolDefinitions(options) {
|
|
|
330
330
|
function useAgentJobs(options) {
|
|
331
331
|
const optionsRef = useOptionsRef(options);
|
|
332
332
|
const { execute: listAgentJobs, loading: listLoading, error: listError } = _hooks.useApiAsync.call(void 0,
|
|
333
|
-
() =>
|
|
333
|
+
() => _chunkENKX5CU7js.listAgentJobsApi.call(void 0, optionsRef.current),
|
|
334
334
|
(data) => data.jobs,
|
|
335
335
|
[]
|
|
336
336
|
);
|
|
337
337
|
const { execute: getAgentJob, loading: getLoading, error: getError } = _hooks.useApiAsync.call(void 0,
|
|
338
|
-
(jobId) =>
|
|
338
|
+
(jobId) => _chunkENKX5CU7js.getAgentJobApi.call(void 0, jobId, optionsRef.current),
|
|
339
339
|
(data) => data.job || null,
|
|
340
340
|
null
|
|
341
341
|
);
|
|
342
342
|
const { execute: createAgentJob, loading: createLoading, error: createError } = _hooks.useApiAsync.call(void 0,
|
|
343
|
-
(job) =>
|
|
343
|
+
(job) => _chunkENKX5CU7js.createAgentJobApi.call(void 0, job, optionsRef.current),
|
|
344
344
|
(data) => data.job || null,
|
|
345
345
|
null
|
|
346
346
|
);
|
|
347
347
|
const { execute: updateAgentJob, loading: updateLoading, error: updateError } = _hooks.useApiAsync.call(void 0,
|
|
348
|
-
(jobId, job) =>
|
|
348
|
+
(jobId, job) => _chunkENKX5CU7js.updateAgentJobApi.call(void 0, jobId, job, optionsRef.current),
|
|
349
349
|
(data) => data.job || null,
|
|
350
350
|
null
|
|
351
351
|
);
|
|
352
352
|
const { execute: deleteAgentJob, loading: deleteLoading, error: deleteError } = _hooks.useApiAsync.call(void 0,
|
|
353
|
-
(jobId) =>
|
|
353
|
+
(jobId) => _chunkENKX5CU7js.deleteAgentJobApi.call(void 0, jobId, optionsRef.current),
|
|
354
354
|
() => true,
|
|
355
355
|
false
|
|
356
356
|
);
|
|
357
357
|
const { execute: pauseAgentJob, loading: pauseLoading, error: pauseError } = _hooks.useApiAsync.call(void 0,
|
|
358
|
-
(jobId) =>
|
|
358
|
+
(jobId) => _chunkENKX5CU7js.pauseAgentJobApi.call(void 0, jobId, optionsRef.current),
|
|
359
359
|
(data) => data.job || null,
|
|
360
360
|
null
|
|
361
361
|
);
|
|
362
362
|
const { execute: resumeAgentJob, loading: resumeLoading, error: resumeError } = _hooks.useApiAsync.call(void 0,
|
|
363
|
-
(jobId) =>
|
|
363
|
+
(jobId) => _chunkENKX5CU7js.resumeAgentJobApi.call(void 0, jobId, optionsRef.current),
|
|
364
364
|
(data) => data.job || null,
|
|
365
365
|
null
|
|
366
366
|
);
|
|
@@ -388,37 +388,37 @@ function useAgentJobs(options) {
|
|
|
388
388
|
function useWidgets(options) {
|
|
389
389
|
const optionsRef = useOptionsRef(options);
|
|
390
390
|
const { execute: listWidgets, loading: listLoading, error: listError } = _hooks.useApiAsync.call(void 0,
|
|
391
|
-
() =>
|
|
391
|
+
() => _chunkENKX5CU7js.listWidgetsApi.call(void 0, optionsRef.current.agentId, optionsRef.current),
|
|
392
392
|
(data) => data.widgets,
|
|
393
393
|
[]
|
|
394
394
|
);
|
|
395
395
|
const { execute: getWidget, loading: getLoading, error: getError } = _hooks.useApiAsync.call(void 0,
|
|
396
|
-
(widgetId) =>
|
|
396
|
+
(widgetId) => _chunkENKX5CU7js.getWidgetApi.call(void 0, widgetId, optionsRef.current),
|
|
397
397
|
(data) => data.widget || null,
|
|
398
398
|
null
|
|
399
399
|
);
|
|
400
400
|
const { execute: getDefaultWidget, loading: defaultLoading, error: defaultError } = _hooks.useApiAsync.call(void 0,
|
|
401
|
-
() =>
|
|
401
|
+
() => _chunkENKX5CU7js.getDefaultWidgetApi.call(void 0, optionsRef.current.agentId, optionsRef.current),
|
|
402
402
|
(data) => data.widget || null,
|
|
403
403
|
null
|
|
404
404
|
);
|
|
405
405
|
const { execute: createWidget, loading: createLoading, error: createError } = _hooks.useApiAsync.call(void 0,
|
|
406
|
-
(widget) =>
|
|
406
|
+
(widget) => _chunkENKX5CU7js.createWidgetApi.call(void 0, optionsRef.current.agentId, widget, optionsRef.current),
|
|
407
407
|
(data) => data.widget || null,
|
|
408
408
|
null
|
|
409
409
|
);
|
|
410
410
|
const { execute: updateWidget, loading: updateLoading, error: updateError } = _hooks.useApiAsync.call(void 0,
|
|
411
|
-
(widgetId, widget) =>
|
|
411
|
+
(widgetId, widget) => _chunkENKX5CU7js.updateWidgetApi.call(void 0, widgetId, widget, optionsRef.current),
|
|
412
412
|
(data) => data.widget || null,
|
|
413
413
|
null
|
|
414
414
|
);
|
|
415
415
|
const { execute: deleteWidget, loading: deleteLoading, error: deleteError } = _hooks.useApiAsync.call(void 0,
|
|
416
|
-
(widgetId) =>
|
|
416
|
+
(widgetId) => _chunkENKX5CU7js.deleteWidgetApi.call(void 0, widgetId, optionsRef.current),
|
|
417
417
|
() => true,
|
|
418
418
|
false
|
|
419
419
|
);
|
|
420
420
|
const { execute: setDefaultWidget, loading: setDefaultLoading, error: setDefaultError } = _hooks.useApiAsync.call(void 0,
|
|
421
|
-
(widgetId) =>
|
|
421
|
+
(widgetId) => _chunkENKX5CU7js.setDefaultWidgetApi.call(void 0, widgetId, optionsRef.current.agentId, optionsRef.current),
|
|
422
422
|
() => true,
|
|
423
423
|
false
|
|
424
424
|
);
|
|
@@ -446,27 +446,27 @@ function useWidgets(options) {
|
|
|
446
446
|
function useSkillUserConfig(options) {
|
|
447
447
|
const optionsRef = useOptionsRef(options);
|
|
448
448
|
const { execute: getSkillUserConfig, loading: getLoading, error: getError } = _hooks.useApiAsync.call(void 0,
|
|
449
|
-
(skillId, agentId) =>
|
|
449
|
+
(skillId, agentId) => _chunkENKX5CU7js.getSkillUserConfigApi.call(void 0, skillId, { ...optionsRef.current, agentId }),
|
|
450
450
|
(data) => data.userConfig || null,
|
|
451
451
|
null
|
|
452
452
|
);
|
|
453
453
|
const { execute: updateSkillUserConfig, loading: updateLoading, error: updateError } = _hooks.useApiAsync.call(void 0,
|
|
454
|
-
(skillId, data) =>
|
|
454
|
+
(skillId, data) => _chunkENKX5CU7js.updateSkillUserConfigApi.call(void 0, skillId, data, optionsRef.current),
|
|
455
455
|
(data) => data.userConfig || null,
|
|
456
456
|
null
|
|
457
457
|
);
|
|
458
458
|
const { execute: deleteSkillUserConfig, loading: deleteLoading, error: deleteError } = _hooks.useApiAsync.call(void 0,
|
|
459
|
-
(skillId, agentId) =>
|
|
459
|
+
(skillId, agentId) => _chunkENKX5CU7js.deleteSkillUserConfigApi.call(void 0, skillId, { ...optionsRef.current, agentId }),
|
|
460
460
|
() => true,
|
|
461
461
|
false
|
|
462
462
|
);
|
|
463
463
|
const { execute: listSkillUserConfigs, loading: listLoading, error: listError } = _hooks.useApiAsync.call(void 0,
|
|
464
|
-
(params) =>
|
|
464
|
+
(params) => _chunkENKX5CU7js.listSkillUserConfigsApi.call(void 0, { ...optionsRef.current, ...params }),
|
|
465
465
|
(data) => data.userConfigs || [],
|
|
466
466
|
[]
|
|
467
467
|
);
|
|
468
468
|
const { execute: resolveSkillConfig, loading: resolveLoading, error: resolveError } = _hooks.useApiAsync.call(void 0,
|
|
469
|
-
(skillId, agentId) =>
|
|
469
|
+
(skillId, agentId) => _chunkENKX5CU7js.resolveSkillConfigApi.call(void 0, skillId, agentId, optionsRef.current),
|
|
470
470
|
(data) => data,
|
|
471
471
|
null
|
|
472
472
|
);
|
|
@@ -492,22 +492,22 @@ function useSkillUserConfig(options) {
|
|
|
492
492
|
function useAnalytics(options) {
|
|
493
493
|
const optionsRef = useOptionsRef(options);
|
|
494
494
|
const { execute: getAgentChatsAnalytics, loading: chatsLoading, error: chatsError } = _hooks.useApiAsync.call(void 0,
|
|
495
|
-
(params) =>
|
|
495
|
+
(params) => _chunkENKX5CU7js.getAgentChatsAnalyticsApi.call(void 0, params, optionsRef.current),
|
|
496
496
|
(data) => data.data,
|
|
497
497
|
[]
|
|
498
498
|
);
|
|
499
499
|
const { execute: getAgentCSATAnalytics, loading: csatLoading, error: csatError } = _hooks.useApiAsync.call(void 0,
|
|
500
|
-
(params) =>
|
|
500
|
+
(params) => _chunkENKX5CU7js.getAgentCSATAnalyticsApi.call(void 0, params, optionsRef.current),
|
|
501
501
|
(data) => data.data,
|
|
502
502
|
[]
|
|
503
503
|
);
|
|
504
504
|
const { execute: getAgentListAnalytics, loading: listLoading, error: listError } = _hooks.useApiAsync.call(void 0,
|
|
505
|
-
() =>
|
|
505
|
+
() => _chunkENKX5CU7js.getAgentListAnalyticsApi.call(void 0, optionsRef.current),
|
|
506
506
|
(data) => data.data,
|
|
507
507
|
[]
|
|
508
508
|
);
|
|
509
509
|
const { execute: getTaskOutcomes, loading: taskLoading, error: taskError } = _hooks.useApiAsync.call(void 0,
|
|
510
|
-
(params) =>
|
|
510
|
+
(params) => _chunkENKX5CU7js.getTaskOutcomesApi.call(void 0, params, optionsRef.current),
|
|
511
511
|
(data) => data.data,
|
|
512
512
|
[]
|
|
513
513
|
);
|
|
@@ -532,37 +532,37 @@ function useAnalytics(options) {
|
|
|
532
532
|
function useIntegrations(options) {
|
|
533
533
|
const optionsRef = useOptionsRef(options);
|
|
534
534
|
const { execute: listIntegrations, loading: listLoading, error: listError } = _hooks.useApiAsync.call(void 0,
|
|
535
|
-
() =>
|
|
535
|
+
() => _chunkENKX5CU7js.listIntegrationsApi.call(void 0, optionsRef.current),
|
|
536
536
|
(data) => data.integrations,
|
|
537
537
|
[]
|
|
538
538
|
);
|
|
539
539
|
const { execute: getIntegration, loading: getLoading, error: getError } = _hooks.useApiAsync.call(void 0,
|
|
540
|
-
(provider, integrationType) =>
|
|
540
|
+
(provider, integrationType) => _chunkENKX5CU7js.getIntegrationApi.call(void 0, provider, integrationType, optionsRef.current),
|
|
541
541
|
(data) => data.integration || null,
|
|
542
542
|
null
|
|
543
543
|
);
|
|
544
544
|
const { execute: connectIntegration, loading: connectLoading, error: connectError } = _hooks.useApiAsync.call(void 0,
|
|
545
|
-
(params) =>
|
|
545
|
+
(params) => _chunkENKX5CU7js.connectIntegrationApi.call(void 0, params, optionsRef.current),
|
|
546
546
|
(data) => ({ authUrl: data.auth_url, state: data.state }),
|
|
547
547
|
null
|
|
548
548
|
);
|
|
549
549
|
const { execute: disconnectIntegration, loading: disconnectLoading, error: disconnectError } = _hooks.useApiAsync.call(void 0,
|
|
550
|
-
(params) =>
|
|
550
|
+
(params) => _chunkENKX5CU7js.disconnectIntegrationApi.call(void 0, params, optionsRef.current),
|
|
551
551
|
() => true,
|
|
552
552
|
false
|
|
553
553
|
);
|
|
554
554
|
const { execute: refreshIntegration, loading: refreshLoading, error: refreshError } = _hooks.useApiAsync.call(void 0,
|
|
555
|
-
(params) =>
|
|
555
|
+
(params) => _chunkENKX5CU7js.refreshIntegrationApi.call(void 0, params, optionsRef.current),
|
|
556
556
|
(data) => data.integration || null,
|
|
557
557
|
null
|
|
558
558
|
);
|
|
559
559
|
const { execute: updateTriage, loading: updateTriageLoading, error: updateTriageError } = _hooks.useApiAsync.call(void 0,
|
|
560
|
-
(params) =>
|
|
560
|
+
(params) => _chunkENKX5CU7js.updateIntegrationTriageApi.call(void 0, params, optionsRef.current),
|
|
561
561
|
(data) => data.integration || null,
|
|
562
562
|
null
|
|
563
563
|
);
|
|
564
564
|
const { execute: runEmailTriage, loading: runTriageLoading, error: runTriageError } = _hooks.useApiAsync.call(void 0,
|
|
565
|
-
() =>
|
|
565
|
+
() => _chunkENKX5CU7js.runEmailTriageApi.call(void 0, optionsRef.current),
|
|
566
566
|
(data) => ({ success: data.success, emailsFound: data.emails_found, instancesCreated: data.instances_created }),
|
|
567
567
|
null
|
|
568
568
|
);
|
|
@@ -590,27 +590,27 @@ function useIntegrations(options) {
|
|
|
590
590
|
function useSandbox(options) {
|
|
591
591
|
const optionsRef = useOptionsRef(options);
|
|
592
592
|
const { execute: createSandbox, loading: createLoading, error: createError } = _hooks.useApiAsync.call(void 0,
|
|
593
|
-
(request) =>
|
|
593
|
+
(request) => _chunkENKX5CU7js.createSandboxApi.call(void 0, request, optionsRef.current),
|
|
594
594
|
(data) => ({ id: data.id, url: data.url, sandbox: data.sandbox }),
|
|
595
595
|
null
|
|
596
596
|
);
|
|
597
597
|
const { execute: getSandbox, loading: getLoading, error: getError } = _hooks.useApiAsync.call(void 0,
|
|
598
|
-
(sandboxId) =>
|
|
598
|
+
(sandboxId) => _chunkENKX5CU7js.getSandboxApi.call(void 0, sandboxId, optionsRef.current),
|
|
599
599
|
(data) => data.sandbox || null,
|
|
600
600
|
null
|
|
601
601
|
);
|
|
602
602
|
const { execute: updateSandbox, loading: updateLoading, error: updateError } = _hooks.useApiAsync.call(void 0,
|
|
603
|
-
(sandboxId, request) =>
|
|
603
|
+
(sandboxId, request) => _chunkENKX5CU7js.updateSandboxApi.call(void 0, sandboxId, request, optionsRef.current),
|
|
604
604
|
(data) => ({ id: data.id, url: data.url, sandbox: data.sandbox }),
|
|
605
605
|
null
|
|
606
606
|
);
|
|
607
607
|
const { execute: listSandboxes, loading: listLoading, error: listError } = _hooks.useApiAsync.call(void 0,
|
|
608
|
-
(limit) =>
|
|
608
|
+
(limit) => _chunkENKX5CU7js.listSandboxesApi.call(void 0, { ...optionsRef.current, limit }),
|
|
609
609
|
(data) => ({ sandboxes: data.sandboxes, total: data.total }),
|
|
610
610
|
{ sandboxes: [], total: 0 }
|
|
611
611
|
);
|
|
612
612
|
const { execute: deleteSandbox, loading: deleteLoading, error: deleteError } = _hooks.useApiAsync.call(void 0,
|
|
613
|
-
(sandboxId) =>
|
|
613
|
+
(sandboxId) => _chunkENKX5CU7js.deleteSandboxApi.call(void 0, sandboxId, optionsRef.current),
|
|
614
614
|
(data) => data.success,
|
|
615
615
|
false
|
|
616
616
|
);
|
|
@@ -636,7 +636,7 @@ function useSandbox(options) {
|
|
|
636
636
|
function useStructuredOutput(options) {
|
|
637
637
|
const optionsRef = useOptionsRef(options);
|
|
638
638
|
const { execute: run, loading, error, clearError } = _hooks.useApiAsync.call(void 0,
|
|
639
|
-
(request) =>
|
|
639
|
+
(request) => _chunkENKX5CU7js.structuredOutputApi.call(void 0, request, optionsRef.current),
|
|
640
640
|
(resp) => resp,
|
|
641
641
|
null
|
|
642
642
|
);
|
|
@@ -652,42 +652,42 @@ function useStructuredOutput(options) {
|
|
|
652
652
|
function useSchedulerTasks(options) {
|
|
653
653
|
const optionsRef = useOptionsRef(options);
|
|
654
654
|
const { execute: listTasks, loading: listLoading, error: listError } = _hooks.useApiAsync.call(void 0,
|
|
655
|
-
(params) =>
|
|
655
|
+
(params) => _chunkENKX5CU7js.listSchedulerTasksApi.call(void 0, { ...optionsRef.current, ...params }),
|
|
656
656
|
(data) => data.tasks,
|
|
657
657
|
[]
|
|
658
658
|
);
|
|
659
659
|
const { execute: createTask, loading: createLoading, error: createError } = _hooks.useApiAsync.call(void 0,
|
|
660
|
-
(task) =>
|
|
660
|
+
(task) => _chunkENKX5CU7js.createSchedulerTaskApi.call(void 0, task, optionsRef.current),
|
|
661
661
|
(data) => data.task || null,
|
|
662
662
|
null
|
|
663
663
|
);
|
|
664
664
|
const { execute: getTask, loading: getLoading, error: getError } = _hooks.useApiAsync.call(void 0,
|
|
665
|
-
(taskId) =>
|
|
665
|
+
(taskId) => _chunkENKX5CU7js.getSchedulerTaskApi.call(void 0, taskId, optionsRef.current),
|
|
666
666
|
(data) => data.task || null,
|
|
667
667
|
null
|
|
668
668
|
);
|
|
669
669
|
const { execute: updateTask, loading: updateLoading, error: updateError } = _hooks.useApiAsync.call(void 0,
|
|
670
|
-
(taskId, task) =>
|
|
670
|
+
(taskId, task) => _chunkENKX5CU7js.updateSchedulerTaskApi.call(void 0, taskId, task, optionsRef.current),
|
|
671
671
|
(data) => data.task || null,
|
|
672
672
|
null
|
|
673
673
|
);
|
|
674
674
|
const { execute: deleteTask, loading: deleteLoading, error: deleteError } = _hooks.useApiAsync.call(void 0,
|
|
675
|
-
(taskId) =>
|
|
675
|
+
(taskId) => _chunkENKX5CU7js.deleteSchedulerTaskApi.call(void 0, taskId, optionsRef.current),
|
|
676
676
|
(data) => data.success,
|
|
677
677
|
false
|
|
678
678
|
);
|
|
679
679
|
const { execute: snoozeTask, loading: snoozeLoading, error: snoozeError } = _hooks.useApiAsync.call(void 0,
|
|
680
|
-
(taskId, delay) =>
|
|
680
|
+
(taskId, delay) => _chunkENKX5CU7js.snoozeSchedulerTaskApi.call(void 0, taskId, delay, optionsRef.current),
|
|
681
681
|
(data) => data.task || null,
|
|
682
682
|
null
|
|
683
683
|
);
|
|
684
684
|
const { execute: completeTask, loading: completeLoading, error: completeError } = _hooks.useApiAsync.call(void 0,
|
|
685
|
-
(taskId) =>
|
|
685
|
+
(taskId) => _chunkENKX5CU7js.completeSchedulerTaskApi.call(void 0, taskId, optionsRef.current),
|
|
686
686
|
(data) => data.task || null,
|
|
687
687
|
null
|
|
688
688
|
);
|
|
689
689
|
const { execute: startTask, loading: startLoading, error: startError } = _hooks.useApiAsync.call(void 0,
|
|
690
|
-
(taskId) =>
|
|
690
|
+
(taskId) => _chunkENKX5CU7js.startSchedulerTaskApi.call(void 0, taskId, optionsRef.current),
|
|
691
691
|
(data) => data.task || null,
|
|
692
692
|
null
|
|
693
693
|
);
|
|
@@ -716,42 +716,42 @@ function useSchedulerTasks(options) {
|
|
|
716
716
|
function useSchedulerSchedules(options) {
|
|
717
717
|
const optionsRef = useOptionsRef(options);
|
|
718
718
|
const { execute: listSchedules, loading: listLoading, error: listError } = _hooks.useApiAsync.call(void 0,
|
|
719
|
-
(params) =>
|
|
719
|
+
(params) => _chunkENKX5CU7js.listSchedulesApi.call(void 0, { ...optionsRef.current, ...params }),
|
|
720
720
|
(data) => data.schedules,
|
|
721
721
|
[]
|
|
722
722
|
);
|
|
723
723
|
const { execute: createSchedule, loading: createLoading, error: createError } = _hooks.useApiAsync.call(void 0,
|
|
724
|
-
(schedule) =>
|
|
724
|
+
(schedule) => _chunkENKX5CU7js.createScheduleApi.call(void 0, schedule, optionsRef.current),
|
|
725
725
|
(data) => data.schedule || null,
|
|
726
726
|
null
|
|
727
727
|
);
|
|
728
728
|
const { execute: getSchedule, loading: getLoading, error: getError } = _hooks.useApiAsync.call(void 0,
|
|
729
|
-
(scheduleId) =>
|
|
729
|
+
(scheduleId) => _chunkENKX5CU7js.getScheduleApi.call(void 0, scheduleId, optionsRef.current),
|
|
730
730
|
(data) => data.schedule || null,
|
|
731
731
|
null
|
|
732
732
|
);
|
|
733
733
|
const { execute: updateSchedule, loading: updateLoading, error: updateError } = _hooks.useApiAsync.call(void 0,
|
|
734
|
-
(scheduleId, schedule) =>
|
|
734
|
+
(scheduleId, schedule) => _chunkENKX5CU7js.updateScheduleApi.call(void 0, scheduleId, schedule, optionsRef.current),
|
|
735
735
|
(data) => data.schedule || null,
|
|
736
736
|
null
|
|
737
737
|
);
|
|
738
738
|
const { execute: deleteSchedule, loading: deleteLoading, error: deleteError } = _hooks.useApiAsync.call(void 0,
|
|
739
|
-
(scheduleId) =>
|
|
739
|
+
(scheduleId) => _chunkENKX5CU7js.deleteScheduleApi.call(void 0, scheduleId, optionsRef.current),
|
|
740
740
|
(data) => data.success,
|
|
741
741
|
false
|
|
742
742
|
);
|
|
743
743
|
const { execute: pauseSchedule, loading: pauseLoading, error: pauseError } = _hooks.useApiAsync.call(void 0,
|
|
744
|
-
(scheduleId) =>
|
|
744
|
+
(scheduleId) => _chunkENKX5CU7js.pauseScheduleApi.call(void 0, scheduleId, optionsRef.current),
|
|
745
745
|
(data) => data.schedule || null,
|
|
746
746
|
null
|
|
747
747
|
);
|
|
748
748
|
const { execute: resumeSchedule, loading: resumeLoading, error: resumeError } = _hooks.useApiAsync.call(void 0,
|
|
749
|
-
(scheduleId) =>
|
|
749
|
+
(scheduleId) => _chunkENKX5CU7js.resumeScheduleApi.call(void 0, scheduleId, optionsRef.current),
|
|
750
750
|
(data) => data.schedule || null,
|
|
751
751
|
null
|
|
752
752
|
);
|
|
753
753
|
const { execute: runSchedule, loading: runLoading, error: runError } = _hooks.useApiAsync.call(void 0,
|
|
754
|
-
(scheduleId) =>
|
|
754
|
+
(scheduleId) => _chunkENKX5CU7js.runScheduleApi.call(void 0, scheduleId, optionsRef.current),
|
|
755
755
|
(data) => data.schedule || null,
|
|
756
756
|
null
|
|
757
757
|
);
|
|
@@ -832,17 +832,17 @@ function useBackgroundAgents(options) {
|
|
|
832
832
|
transport.streamJob(jobId);
|
|
833
833
|
}, []);
|
|
834
834
|
const { execute: triggerAgent, loading: triggerLoading, error: triggerError } = _hooks.useApiAsync.call(void 0,
|
|
835
|
-
(request) =>
|
|
835
|
+
(request) => _chunkENKX5CU7js.triggerBackgroundAgentApi.call(void 0, request, optionsRef.current),
|
|
836
836
|
(data) => data,
|
|
837
837
|
null
|
|
838
838
|
);
|
|
839
839
|
const { execute: checkStatus, loading: statusLoading, error: statusError } = _hooks.useApiAsync.call(void 0,
|
|
840
|
-
(jobId) =>
|
|
840
|
+
(jobId) => _chunkENKX5CU7js.checkBackgroundAgentStatusApi.call(void 0, jobId, optionsRef.current),
|
|
841
841
|
(data) => data,
|
|
842
842
|
null
|
|
843
843
|
);
|
|
844
844
|
const { execute: listAgentSummaries, loading: summaryLoading, error: summaryError } = _hooks.useApiAsync.call(void 0,
|
|
845
|
-
() =>
|
|
845
|
+
() => _chunkENKX5CU7js.listAgentsSummaryApi.call(void 0, optionsRef.current),
|
|
846
846
|
(data) => data.agents || [],
|
|
847
847
|
[]
|
|
848
848
|
);
|
|
@@ -1111,4 +1111,4 @@ function useBackgroundAgents(options) {
|
|
|
1111
1111
|
|
|
1112
1112
|
|
|
1113
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-
|
|
1114
|
+
//# sourceMappingURL=chunk-G2T3H3V4.js.map
|