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