@elqnt/agents 3.0.5 → 3.1.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.
@@ -23,6 +23,12 @@ async function deleteAgentApi(agentId, options) {
23
23
  async function getDefaultAgentApi(options) {
24
24
  return _browser.browserApiRequest.call(void 0, "/api/v1/agents/default", { method: "GET", ...options });
25
25
  }
26
+ async function getAgentByNameApi(name, options) {
27
+ return _browser.browserApiRequest.call(void 0, `/api/v1/agents/by-name?name=${encodeURIComponent(name)}`, {
28
+ method: "GET",
29
+ ...options
30
+ });
31
+ }
26
32
  async function listSkillsApi(options) {
27
33
  return _browser.browserApiRequest.call(void 0, "/api/v1/skills", { method: "GET", ...options });
28
34
  }
@@ -90,6 +96,13 @@ async function resolveSkillConfigApi(skillId, agentId, options) {
90
96
  ...options
91
97
  });
92
98
  }
99
+ async function updateSkillOrgConfigApi(skillId, data, options) {
100
+ return _browser.browserApiRequest.call(void 0, `/api/v1/skills/${skillId}/org-config`, {
101
+ method: "PUT",
102
+ body: data,
103
+ ...options
104
+ });
105
+ }
93
106
  async function listSubAgentsApi(options) {
94
107
  const params = new URLSearchParams();
95
108
  if (options.onlySystem !== void 0) params.set("onlySystem", String(options.onlySystem));
@@ -224,6 +237,81 @@ async function provisionAgentsApi(definitions, options) {
224
237
  ...options
225
238
  });
226
239
  }
240
+ async function listIntegrationsApi(options) {
241
+ return _browser.browserApiRequest.call(void 0, "/api/v1/integrations", { method: "GET", ...options });
242
+ }
243
+ async function getIntegrationApi(provider, integrationType, options) {
244
+ return _browser.browserApiRequest.call(void 0, `/api/v1/integrations/${provider}/${integrationType}`, {
245
+ method: "GET",
246
+ ...options
247
+ });
248
+ }
249
+ async function connectIntegrationApi(params, options) {
250
+ return _browser.browserApiRequest.call(void 0, "/api/v1/integrations/connect", {
251
+ method: "POST",
252
+ body: {
253
+ provider: params.provider,
254
+ integration_type: params.integrationType,
255
+ redirect_uri: params.redirectUri
256
+ },
257
+ ...options
258
+ });
259
+ }
260
+ async function integrationCallbackApi(params, options) {
261
+ return _browser.browserApiRequest.call(void 0, "/api/v1/integrations/callback", {
262
+ method: "POST",
263
+ body: params,
264
+ ...options
265
+ });
266
+ }
267
+ async function disconnectIntegrationApi(params, options) {
268
+ return _browser.browserApiRequest.call(void 0, "/api/v1/integrations/disconnect", {
269
+ method: "POST",
270
+ body: {
271
+ provider: params.provider,
272
+ integration_type: params.integrationType
273
+ },
274
+ ...options
275
+ });
276
+ }
277
+ async function refreshIntegrationApi(params, options) {
278
+ return _browser.browserApiRequest.call(void 0, "/api/v1/integrations/refresh", {
279
+ method: "POST",
280
+ body: {
281
+ provider: params.provider,
282
+ integration_type: params.integrationType
283
+ },
284
+ ...options
285
+ });
286
+ }
287
+ async function updateIntegrationTriageApi(params, options) {
288
+ return _browser.browserApiRequest.call(void 0, "/api/v1/integrations/triage", {
289
+ method: "PUT",
290
+ body: {
291
+ provider: params.provider,
292
+ integration_type: params.integrationType,
293
+ triage_enabled: params.triageEnabled
294
+ },
295
+ ...options
296
+ });
297
+ }
298
+ async function runEmailTriageApi(options) {
299
+ return _browser.browserApiRequest.call(void 0, "/api/v1/integrations/triage/run", {
300
+ method: "POST",
301
+ body: {},
302
+ ...options
303
+ });
304
+ }
305
+
306
+
307
+
308
+
309
+
310
+
311
+
312
+
313
+
314
+
227
315
 
228
316
 
229
317
 
@@ -277,5 +365,5 @@ async function provisionAgentsApi(definitions, options) {
277
365
 
278
366
 
279
367
 
280
- exports.listAgentsApi = listAgentsApi; exports.listAgentsSummaryApi = listAgentsSummaryApi; exports.getAgentApi = getAgentApi; exports.createAgentApi = createAgentApi; exports.updateAgentApi = updateAgentApi; exports.deleteAgentApi = deleteAgentApi; exports.getDefaultAgentApi = getDefaultAgentApi; exports.listSkillsApi = listSkillsApi; exports.getSkillApi = getSkillApi; exports.getSkillsByIdsApi = getSkillsByIdsApi; exports.createSkillApi = createSkillApi; exports.updateSkillApi = updateSkillApi; exports.deleteSkillApi = deleteSkillApi; exports.searchSkillsApi = searchSkillsApi; exports.getSkillUserConfigApi = getSkillUserConfigApi; exports.updateSkillUserConfigApi = updateSkillUserConfigApi; exports.deleteSkillUserConfigApi = deleteSkillUserConfigApi; exports.listSkillUserConfigsApi = listSkillUserConfigsApi; exports.resolveSkillConfigApi = resolveSkillConfigApi; exports.listSubAgentsApi = listSubAgentsApi; exports.getSubAgentApi = getSubAgentApi; exports.createSubAgentApi = createSubAgentApi; exports.updateSubAgentApi = updateSubAgentApi; exports.deleteSubAgentApi = deleteSubAgentApi; exports.listWidgetsApi = listWidgetsApi; exports.getDefaultWidgetApi = getDefaultWidgetApi; exports.createWidgetApi = createWidgetApi; exports.getWidgetApi = getWidgetApi; exports.getWidgetByWidgetIdApi = getWidgetByWidgetIdApi; exports.updateWidgetApi = updateWidgetApi; exports.deleteWidgetApi = deleteWidgetApi; exports.setDefaultWidgetApi = setDefaultWidgetApi; exports.getAgentChatsAnalyticsApi = getAgentChatsAnalyticsApi; exports.getAgentCSATAnalyticsApi = getAgentCSATAnalyticsApi; exports.getAgentListAnalyticsApi = getAgentListAnalyticsApi; exports.getTaskOutcomesApi = getTaskOutcomesApi; exports.listToolDefinitionsApi = listToolDefinitionsApi; exports.getToolDefinitionApi = getToolDefinitionApi; exports.getToolDefinitionsByIdsApi = getToolDefinitionsByIdsApi; exports.createToolDefinitionApi = createToolDefinitionApi; exports.updateToolDefinitionApi = updateToolDefinitionApi; exports.deleteToolDefinitionApi = deleteToolDefinitionApi; exports.listAgentJobsApi = listAgentJobsApi; exports.getAgentJobApi = getAgentJobApi; exports.createAgentJobApi = createAgentJobApi; exports.updateAgentJobApi = updateAgentJobApi; exports.deleteAgentJobApi = deleteAgentJobApi; exports.pauseAgentJobApi = pauseAgentJobApi; exports.resumeAgentJobApi = resumeAgentJobApi; exports.getSkillCategoriesApi = getSkillCategoriesApi; exports.provisionAgentsApi = provisionAgentsApi;
281
- //# sourceMappingURL=chunk-SKZS3AIT.js.map
368
+ exports.listAgentsApi = listAgentsApi; exports.listAgentsSummaryApi = listAgentsSummaryApi; exports.getAgentApi = getAgentApi; exports.createAgentApi = createAgentApi; exports.updateAgentApi = updateAgentApi; exports.deleteAgentApi = deleteAgentApi; exports.getDefaultAgentApi = getDefaultAgentApi; exports.getAgentByNameApi = getAgentByNameApi; exports.listSkillsApi = listSkillsApi; exports.getSkillApi = getSkillApi; exports.getSkillsByIdsApi = getSkillsByIdsApi; exports.createSkillApi = createSkillApi; exports.updateSkillApi = updateSkillApi; exports.deleteSkillApi = deleteSkillApi; exports.searchSkillsApi = searchSkillsApi; exports.getSkillUserConfigApi = getSkillUserConfigApi; exports.updateSkillUserConfigApi = updateSkillUserConfigApi; exports.deleteSkillUserConfigApi = deleteSkillUserConfigApi; exports.listSkillUserConfigsApi = listSkillUserConfigsApi; exports.resolveSkillConfigApi = resolveSkillConfigApi; exports.updateSkillOrgConfigApi = updateSkillOrgConfigApi; exports.listSubAgentsApi = listSubAgentsApi; exports.getSubAgentApi = getSubAgentApi; exports.createSubAgentApi = createSubAgentApi; exports.updateSubAgentApi = updateSubAgentApi; exports.deleteSubAgentApi = deleteSubAgentApi; exports.listWidgetsApi = listWidgetsApi; exports.getDefaultWidgetApi = getDefaultWidgetApi; exports.createWidgetApi = createWidgetApi; exports.getWidgetApi = getWidgetApi; exports.getWidgetByWidgetIdApi = getWidgetByWidgetIdApi; exports.updateWidgetApi = updateWidgetApi; exports.deleteWidgetApi = deleteWidgetApi; exports.setDefaultWidgetApi = setDefaultWidgetApi; exports.getAgentChatsAnalyticsApi = getAgentChatsAnalyticsApi; exports.getAgentCSATAnalyticsApi = getAgentCSATAnalyticsApi; exports.getAgentListAnalyticsApi = getAgentListAnalyticsApi; exports.getTaskOutcomesApi = getTaskOutcomesApi; exports.listToolDefinitionsApi = listToolDefinitionsApi; exports.getToolDefinitionApi = getToolDefinitionApi; exports.getToolDefinitionsByIdsApi = getToolDefinitionsByIdsApi; exports.createToolDefinitionApi = createToolDefinitionApi; exports.updateToolDefinitionApi = updateToolDefinitionApi; exports.deleteToolDefinitionApi = deleteToolDefinitionApi; exports.listAgentJobsApi = listAgentJobsApi; exports.getAgentJobApi = getAgentJobApi; exports.createAgentJobApi = createAgentJobApi; exports.updateAgentJobApi = updateAgentJobApi; exports.deleteAgentJobApi = deleteAgentJobApi; exports.pauseAgentJobApi = pauseAgentJobApi; exports.resumeAgentJobApi = resumeAgentJobApi; exports.getSkillCategoriesApi = getSkillCategoriesApi; exports.provisionAgentsApi = provisionAgentsApi; exports.listIntegrationsApi = listIntegrationsApi; exports.getIntegrationApi = getIntegrationApi; exports.connectIntegrationApi = connectIntegrationApi; exports.integrationCallbackApi = integrationCallbackApi; exports.disconnectIntegrationApi = disconnectIntegrationApi; exports.refreshIntegrationApi = refreshIntegrationApi; exports.updateIntegrationTriageApi = updateIntegrationTriageApi; exports.runEmailTriageApi = runEmailTriageApi;
369
+ //# sourceMappingURL=chunk-RAA5NKA7.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["/home/runner/work/eloquent/eloquent/packages/@elqnt/agents/dist/chunk-RAA5NKA7.js","../api/index.ts"],"names":[],"mappings":"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AAA;AACa,MAAA;AACQ,MAAA;AACJ,MAAA;AACvB,IAAA;AACG,IAAA;AACJ,EAAA;AACH;AAQE;AAEyB,EAAA;AACf,IAAA;AACF,IAAA;AACH,IAAA;AACJ,EAAA;AACH;AAOE;AAEyB,EAAA;AACf,IAAA;AACF,IAAA;AACa,MAAA;AACQ,MAAA;AAC3B,IAAA;AACG,IAAA;AACJ,EAAA;AACH;AAOE;AAEyB,EAAA;AACf,IAAA;AACF,IAAA;AACa,MAAA;AACQ,MAAA;AAC3B,IAAA;AACG,IAAA;AACJ,EAAA;AACH;AAQE;AAEyB,EAAA;AACf,IAAA;AACF,IAAA;AACa,MAAA;AACQ,MAAA;AACF,MAAA;AACzB,IAAA;AACG,IAAA;AACJ,EAAA;AACH;AAIgD;AACrB,EAAA;AACf,IAAA;AACD,IAAA;AACJ,IAAA;AACJ,EAAA;AACH;ADhSqD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"/home/runner/work/eloquent/eloquent/packages/@elqnt/agents/dist/chunk-RAA5NKA7.js","sourcesContent":[null,"/**\n * Agents API functions\n *\n * Browser-side API client for agent operations.\n * Uses @elqnt/api-client for HTTP requests with automatic token management.\n */\n\nimport { browserApiRequest } from \"@elqnt/api-client/browser\";\nimport type { ApiResponse, ApiClientOptions } from \"@elqnt/api-client\";\nimport type { ResponseMetadata } from \"@elqnt/types\";\nimport type {\n Agent,\n AgentSummary,\n AgentResponse,\n ListAgentsResponse,\n ListAgentsSummaryResponse,\n Skill,\n SkillResponse,\n SkillsListResponse,\n GetSkillsByIDsResponse,\n SubAgent,\n SubAgentResponse,\n SubAgentsListResponse,\n AgentWidget,\n AgentWidgetResponse,\n ListAgentWidgetsResponse,\n SkillUserConfig,\n SkillUserConfigResponse,\n SkillUserConfigListResponse,\n ResolveSkillConfigResponse,\n ToolDefinition,\n ToolDefinitionResponse,\n ToolDefinitionsListResponse,\n GetToolDefinitionsByIDsResponse,\n AgentJob,\n AgentJobResponse,\n AgentJobsListResponse,\n} from \"../models\";\n\n// =============================================================================\n// AGENTS\n// =============================================================================\n\nexport async function listAgentsApi(options: ApiClientOptions): Promise<ApiResponse<ListAgentsResponse>> {\n return browserApiRequest(\"/api/v1/agents\", { method: \"GET\", ...options });\n}\n\nexport async function listAgentsSummaryApi(options: ApiClientOptions): Promise<ApiResponse<ListAgentsSummaryResponse>> {\n return browserApiRequest(\"/api/v1/agents/summary\", { method: \"GET\", ...options });\n}\n\nexport async function getAgentApi(agentId: string, options: ApiClientOptions): Promise<ApiResponse<AgentResponse>> {\n return browserApiRequest(`/api/v1/agents/${agentId}`, { method: \"GET\", ...options });\n}\n\nexport async function createAgentApi(agent: Partial<Agent>, options: ApiClientOptions): Promise<ApiResponse<AgentResponse>> {\n return browserApiRequest(\"/api/v1/agents\", { method: \"POST\", body: agent, ...options });\n}\n\nexport async function updateAgentApi(agentId: string, agent: Partial<Agent>, options: ApiClientOptions): Promise<ApiResponse<AgentResponse>> {\n return browserApiRequest(`/api/v1/agents/${agentId}`, { method: \"PUT\", body: agent, ...options });\n}\n\nexport async function deleteAgentApi(agentId: string, options: ApiClientOptions): Promise<ApiResponse<{ success: boolean; metadata: ResponseMetadata }>> {\n return browserApiRequest(`/api/v1/agents/${agentId}`, { method: \"DELETE\", ...options });\n}\n\nexport async function getDefaultAgentApi(options: ApiClientOptions): Promise<ApiResponse<AgentResponse>> {\n return browserApiRequest(\"/api/v1/agents/default\", { method: \"GET\", ...options });\n}\n\nexport async function getAgentByNameApi(\n name: string,\n options: ApiClientOptions\n): Promise<ApiResponse<AgentResponse>> {\n return browserApiRequest(`/api/v1/agents/by-name?name=${encodeURIComponent(name)}`, {\n method: \"GET\",\n ...options,\n });\n}\n\n// =============================================================================\n// SKILLS\n// =============================================================================\n\nexport async function listSkillsApi(options: ApiClientOptions): Promise<ApiResponse<SkillsListResponse>> {\n return browserApiRequest(\"/api/v1/skills\", { method: \"GET\", ...options });\n}\n\nexport async function getSkillApi(skillId: string, options: ApiClientOptions): Promise<ApiResponse<SkillResponse>> {\n return browserApiRequest(`/api/v1/skills/${skillId}`, { method: \"GET\", ...options });\n}\n\nexport async function getSkillsByIdsApi(ids: string[], options: ApiClientOptions): Promise<ApiResponse<GetSkillsByIDsResponse>> {\n return browserApiRequest(\"/api/v1/skills/by-ids\", { method: \"POST\", body: { ids }, ...options });\n}\n\nexport async function createSkillApi(skill: Partial<Skill>, options: ApiClientOptions): Promise<ApiResponse<SkillResponse>> {\n return browserApiRequest(\"/api/v1/skills\", { method: \"POST\", body: skill, ...options });\n}\n\nexport async function updateSkillApi(skillId: string, skill: Partial<Skill>, options: ApiClientOptions): Promise<ApiResponse<SkillResponse>> {\n return browserApiRequest(`/api/v1/skills/${skillId}`, { method: \"PUT\", body: skill, ...options });\n}\n\nexport async function deleteSkillApi(skillId: string, options: ApiClientOptions): Promise<ApiResponse<{ success: boolean; metadata: ResponseMetadata }>> {\n return browserApiRequest(`/api/v1/skills/${skillId}`, { method: \"DELETE\", ...options });\n}\n\nexport async function searchSkillsApi(\n query: string,\n options: ApiClientOptions & { category?: string; limit?: number }\n): Promise<ApiResponse<SkillsListResponse>> {\n const params = new URLSearchParams();\n params.set(\"q\", query);\n if (options.category) params.set(\"category\", options.category);\n if (options.limit) params.set(\"limit\", String(options.limit));\n return browserApiRequest(`/api/v1/skills/search?${params.toString()}`, { method: \"GET\", ...options });\n}\n\n// =============================================================================\n// SKILL USER CONFIG\n// =============================================================================\n\nexport async function getSkillUserConfigApi(\n skillId: string,\n options: ApiClientOptions & { agentId?: string }\n): Promise<ApiResponse<SkillUserConfigResponse>> {\n const params = new URLSearchParams();\n if (options.agentId) params.set(\"agentId\", options.agentId);\n const query = params.toString();\n return browserApiRequest(`/api/v1/skills/${skillId}/user-config${query ? `?${query}` : \"\"}`, {\n method: \"GET\",\n ...options,\n });\n}\n\nexport async function updateSkillUserConfigApi(\n skillId: string,\n data: {\n enabled?: boolean;\n displayOrder?: number;\n config?: Record<string, unknown>;\n agentId?: string;\n },\n options: ApiClientOptions\n): Promise<ApiResponse<SkillUserConfigResponse>> {\n return browserApiRequest(`/api/v1/skills/${skillId}/user-config`, {\n method: \"PUT\",\n body: data,\n ...options,\n });\n}\n\nexport async function deleteSkillUserConfigApi(\n skillId: string,\n options: ApiClientOptions & { agentId?: string }\n): Promise<ApiResponse<{ success: boolean; metadata: ResponseMetadata }>> {\n const params = new URLSearchParams();\n if (options.agentId) params.set(\"agentId\", options.agentId);\n const query = params.toString();\n return browserApiRequest(`/api/v1/skills/${skillId}/user-config${query ? `?${query}` : \"\"}`, {\n method: \"DELETE\",\n ...options,\n });\n}\n\nexport async function listSkillUserConfigsApi(\n options: ApiClientOptions & { agentId?: string; limit?: number; offset?: number }\n): Promise<ApiResponse<SkillUserConfigListResponse>> {\n const params = new URLSearchParams();\n if (options.agentId) params.set(\"agentId\", options.agentId);\n if (options.limit) params.set(\"limit\", String(options.limit));\n if (options.offset) params.set(\"offset\", String(options.offset));\n const query = params.toString();\n return browserApiRequest(`/api/v1/skills/user-configs${query ? `?${query}` : \"\"}`, {\n method: \"GET\",\n ...options,\n });\n}\n\nexport async function resolveSkillConfigApi(\n skillId: string,\n agentId: string,\n options: ApiClientOptions\n): Promise<ApiResponse<ResolveSkillConfigResponse>> {\n return browserApiRequest(`/api/v1/skills/${skillId}/resolve-config?agentId=${agentId}`, {\n method: \"GET\",\n ...options,\n });\n}\n\nexport async function updateSkillOrgConfigApi(\n skillId: string,\n data: {\n enabled?: boolean;\n displayOrder?: number;\n config?: Record<string, unknown>;\n },\n options: ApiClientOptions\n): Promise<ApiResponse<SkillUserConfigResponse>> {\n return browserApiRequest(`/api/v1/skills/${skillId}/org-config`, {\n method: \"PUT\",\n body: data,\n ...options,\n });\n}\n\n// =============================================================================\n// SUB-AGENTS\n// =============================================================================\n\nexport async function listSubAgentsApi(\n options: ApiClientOptions & { onlySystem?: boolean; enabled?: boolean }\n): Promise<ApiResponse<SubAgentsListResponse>> {\n const params = new URLSearchParams();\n if (options.onlySystem !== undefined) params.set(\"onlySystem\", String(options.onlySystem));\n if (options.enabled !== undefined) params.set(\"enabled\", String(options.enabled));\n const queryString = params.toString();\n return browserApiRequest(`/api/v1/subagents${queryString ? `?${queryString}` : \"\"}`, { method: \"GET\", ...options });\n}\n\nexport async function getSubAgentApi(subAgentId: string, options: ApiClientOptions): Promise<ApiResponse<SubAgentResponse>> {\n return browserApiRequest(`/api/v1/subagents/${subAgentId}`, { method: \"GET\", ...options });\n}\n\nexport async function createSubAgentApi(subAgent: Partial<SubAgent>, options: ApiClientOptions): Promise<ApiResponse<SubAgentResponse>> {\n return browserApiRequest(\"/api/v1/subagents\", { method: \"POST\", body: { subAgent }, ...options });\n}\n\nexport async function updateSubAgentApi(subAgentId: string, subAgent: Partial<SubAgent>, options: ApiClientOptions): Promise<ApiResponse<SubAgentResponse>> {\n return browserApiRequest(`/api/v1/subagents/${subAgentId}`, { method: \"PUT\", body: { subAgent }, ...options });\n}\n\nexport async function deleteSubAgentApi(subAgentId: string, options: ApiClientOptions): Promise<ApiResponse<{ success: boolean; metadata: ResponseMetadata }>> {\n return browserApiRequest(`/api/v1/subagents/${subAgentId}`, { method: \"DELETE\", ...options });\n}\n\n// =============================================================================\n// WIDGETS\n// =============================================================================\n\nexport async function listWidgetsApi(agentId: string, options: ApiClientOptions): Promise<ApiResponse<ListAgentWidgetsResponse>> {\n return browserApiRequest(`/api/v1/agents/${agentId}/widgets`, { method: \"GET\", ...options });\n}\n\nexport async function getDefaultWidgetApi(agentId: string, options: ApiClientOptions): Promise<ApiResponse<AgentWidgetResponse>> {\n return browserApiRequest(`/api/v1/agents/${agentId}/widgets/default`, { method: \"GET\", ...options });\n}\n\nexport async function createWidgetApi(agentId: string, widget: Partial<AgentWidget>, options: ApiClientOptions): Promise<ApiResponse<AgentWidgetResponse>> {\n return browserApiRequest(`/api/v1/agents/${agentId}/widgets`, { method: \"POST\", body: { widget }, ...options });\n}\n\nexport async function getWidgetApi(widgetId: string, options: ApiClientOptions): Promise<ApiResponse<AgentWidgetResponse>> {\n return browserApiRequest(`/api/v1/widgets/${widgetId}`, { method: \"GET\", ...options });\n}\n\nexport async function getWidgetByWidgetIdApi(widgetId: string, baseUrl: string): Promise<ApiResponse<AgentWidgetResponse>> {\n return browserApiRequest(`/api/v1/widgets/by-widget-id/${widgetId}`, { method: \"GET\", baseUrl, orgId: \"\" });\n}\n\nexport async function updateWidgetApi(widgetId: string, widget: Partial<AgentWidget>, options: ApiClientOptions): Promise<ApiResponse<AgentWidgetResponse>> {\n return browserApiRequest(`/api/v1/widgets/${widgetId}`, { method: \"PUT\", body: { widget }, ...options });\n}\n\nexport async function deleteWidgetApi(widgetId: string, options: ApiClientOptions): Promise<ApiResponse<{ success: boolean; metadata: ResponseMetadata }>> {\n return browserApiRequest(`/api/v1/widgets/${widgetId}`, { method: \"DELETE\", ...options });\n}\n\nexport async function setDefaultWidgetApi(widgetId: string, agentId: string, options: ApiClientOptions): Promise<ApiResponse<{ success: boolean; metadata: ResponseMetadata }>> {\n return browserApiRequest(`/api/v1/widgets/${widgetId}/default`, { method: \"POST\", body: { agentId }, ...options });\n}\n\n// =============================================================================\n// ANALYTICS\n// =============================================================================\n\nexport interface DateFilter {\n from?: string;\n to?: string;\n}\n\nexport interface AnalyticsDataResponse {\n data: unknown[];\n metadata: ResponseMetadata;\n}\n\nexport async function getAgentChatsAnalyticsApi(\n params: { date_filter: DateFilter; agent_id?: string },\n options: ApiClientOptions\n): Promise<ApiResponse<AnalyticsDataResponse>> {\n return browserApiRequest(\"/api/v1/analytics/agents/chats\", {\n method: \"POST\",\n body: params,\n ...options,\n });\n}\n\nexport async function getAgentCSATAnalyticsApi(\n params: { date_filter: DateFilter; agent_id?: string },\n options: ApiClientOptions\n): Promise<ApiResponse<AnalyticsDataResponse>> {\n return browserApiRequest(\"/api/v1/analytics/agents/csat\", {\n method: \"POST\",\n body: params,\n ...options,\n });\n}\n\nexport async function getAgentListAnalyticsApi(\n options: ApiClientOptions\n): Promise<ApiResponse<AnalyticsDataResponse>> {\n return browserApiRequest(\"/api/v1/analytics/agents\", {\n method: \"GET\",\n ...options,\n });\n}\n\nexport async function getTaskOutcomesApi(\n params: { date_filter: DateFilter },\n options: ApiClientOptions\n): Promise<ApiResponse<AnalyticsDataResponse>> {\n return browserApiRequest(\"/api/v1/analytics/tasks\", {\n method: \"POST\",\n body: params,\n ...options,\n });\n}\n\n// =============================================================================\n// TOOL DEFINITIONS\n// =============================================================================\n\nexport async function listToolDefinitionsApi(\n options: ApiClientOptions & { onlySystem?: boolean; enabled?: boolean; limit?: number; offset?: number }\n): Promise<ApiResponse<ToolDefinitionsListResponse>> {\n const params = new URLSearchParams();\n if (options.onlySystem !== undefined) params.set(\"onlySystem\", String(options.onlySystem));\n if (options.enabled !== undefined) params.set(\"enabled\", String(options.enabled));\n if (options.limit !== undefined) params.set(\"limit\", String(options.limit));\n if (options.offset !== undefined) params.set(\"offset\", String(options.offset));\n const queryString = params.toString();\n return browserApiRequest(`/api/v1/tool-definitions${queryString ? `?${queryString}` : \"\"}`, { method: \"GET\", ...options });\n}\n\nexport async function getToolDefinitionApi(toolDefId: string, options: ApiClientOptions): Promise<ApiResponse<ToolDefinitionResponse>> {\n return browserApiRequest(`/api/v1/tool-definitions/${toolDefId}`, { method: \"GET\", ...options });\n}\n\nexport async function getToolDefinitionsByIdsApi(ids: string[], options: ApiClientOptions): Promise<ApiResponse<GetToolDefinitionsByIDsResponse>> {\n return browserApiRequest(\"/api/v1/tool-definitions/by-ids\", { method: \"POST\", body: { ids }, ...options });\n}\n\nexport async function createToolDefinitionApi(toolDefinition: Partial<ToolDefinition>, options: ApiClientOptions): Promise<ApiResponse<ToolDefinitionResponse>> {\n return browserApiRequest(\"/api/v1/tool-definitions\", { method: \"POST\", body: { toolDefinition }, ...options });\n}\n\nexport async function updateToolDefinitionApi(toolDefId: string, toolDefinition: Partial<ToolDefinition>, options: ApiClientOptions): Promise<ApiResponse<ToolDefinitionResponse>> {\n return browserApiRequest(`/api/v1/tool-definitions/${toolDefId}`, { method: \"PUT\", body: { toolDefinition }, ...options });\n}\n\nexport async function deleteToolDefinitionApi(toolDefId: string, options: ApiClientOptions): Promise<ApiResponse<{ success: boolean; metadata: ResponseMetadata }>> {\n return browserApiRequest(`/api/v1/tool-definitions/${toolDefId}`, { method: \"DELETE\", ...options });\n}\n\n// =============================================================================\n// AGENT JOBS\n// =============================================================================\n\nexport async function listAgentJobsApi(\n options: ApiClientOptions & {\n agentId?: string;\n ownerId?: string;\n scope?: string;\n status?: string;\n frequency?: string;\n limit?: number;\n offset?: number;\n }\n): Promise<ApiResponse<AgentJobsListResponse>> {\n const params = new URLSearchParams();\n if (options.agentId) params.set(\"agentId\", options.agentId);\n if (options.ownerId) params.set(\"ownerId\", options.ownerId);\n if (options.scope) params.set(\"scope\", options.scope);\n if (options.status) params.set(\"status\", options.status);\n if (options.frequency) params.set(\"frequency\", options.frequency);\n if (options.limit !== undefined) params.set(\"limit\", String(options.limit));\n if (options.offset !== undefined) params.set(\"offset\", String(options.offset));\n const queryString = params.toString();\n return browserApiRequest(`/api/v1/agent-jobs${queryString ? `?${queryString}` : \"\"}`, { method: \"GET\", ...options });\n}\n\nexport async function getAgentJobApi(jobId: string, options: ApiClientOptions): Promise<ApiResponse<AgentJobResponse>> {\n return browserApiRequest(`/api/v1/agent-jobs/${jobId}`, { method: \"GET\", ...options });\n}\n\nexport async function createAgentJobApi(job: Partial<AgentJob>, options: ApiClientOptions): Promise<ApiResponse<AgentJobResponse>> {\n return browserApiRequest(\"/api/v1/agent-jobs\", { method: \"POST\", body: { job }, ...options });\n}\n\nexport async function updateAgentJobApi(jobId: string, job: Partial<AgentJob>, options: ApiClientOptions): Promise<ApiResponse<AgentJobResponse>> {\n return browserApiRequest(`/api/v1/agent-jobs/${jobId}`, { method: \"PUT\", body: { job }, ...options });\n}\n\nexport async function deleteAgentJobApi(jobId: string, options: ApiClientOptions): Promise<ApiResponse<{ success: boolean; metadata: ResponseMetadata }>> {\n return browserApiRequest(`/api/v1/agent-jobs/${jobId}`, { method: \"DELETE\", ...options });\n}\n\nexport async function pauseAgentJobApi(jobId: string, options: ApiClientOptions): Promise<ApiResponse<AgentJobResponse>> {\n return browserApiRequest(`/api/v1/agent-jobs/${jobId}/pause`, { method: \"POST\", ...options });\n}\n\nexport async function resumeAgentJobApi(jobId: string, options: ApiClientOptions): Promise<ApiResponse<AgentJobResponse>> {\n return browserApiRequest(`/api/v1/agent-jobs/${jobId}/resume`, { method: \"POST\", ...options });\n}\n\n// =============================================================================\n// SKILL CATEGORIES\n// =============================================================================\n\nexport interface SkillCategoriesResponse {\n categories: string[];\n metadata: ResponseMetadata;\n}\n\nexport async function getSkillCategoriesApi(options: ApiClientOptions): Promise<ApiResponse<SkillCategoriesResponse>> {\n return browserApiRequest(\"/api/v1/skills/categories\", { method: \"GET\", ...options });\n}\n\n// =============================================================================\n// PROVISIONING\n// =============================================================================\n\nexport interface ProvisionAgentsResponse {\n agents?: Agent[];\n agentsCreated: number;\n subAgentsCreated: number;\n toolsCreated: number;\n skillsCreated: number;\n success: boolean;\n metadata: ResponseMetadata;\n}\n\n/**\n * Provision default agents for an organization.\n * Creates or updates agents, tools, sub-agents, and skills in bulk.\n *\n * @param definitions - Array of DefaultDefinitions to provision\n * @param options - API client options (baseUrl, orgId)\n */\nexport async function provisionAgentsApi(\n definitions: unknown[],\n options: ApiClientOptions\n): Promise<ApiResponse<ProvisionAgentsResponse>> {\n return browserApiRequest(\"/api/v1/admin/provision/agents\", {\n method: \"POST\",\n body: { definitions },\n ...options,\n });\n}\n\n// =============================================================================\n// INTEGRATIONS\n// =============================================================================\n\nimport type {\n UserIntegration,\n ListUserIntegrationsResponse,\n GetUserIntegrationResponse,\n ConnectIntegrationResponse,\n IntegrationCallbackResponse,\n DisconnectIntegrationResponse,\n RefreshIntegrationResponse,\n UpdateTriageEnabledResponse,\n RunEmailTriageResponse,\n IntegrationProviderTS,\n IntegrationTypeTS,\n} from \"../models\";\n\nexport async function listIntegrationsApi(\n options: ApiClientOptions\n): Promise<ApiResponse<ListUserIntegrationsResponse>> {\n return browserApiRequest(\"/api/v1/integrations\", { method: \"GET\", ...options });\n}\n\nexport async function getIntegrationApi(\n provider: IntegrationProviderTS,\n integrationType: IntegrationTypeTS,\n options: ApiClientOptions\n): Promise<ApiResponse<GetUserIntegrationResponse>> {\n return browserApiRequest(`/api/v1/integrations/${provider}/${integrationType}`, {\n method: \"GET\",\n ...options,\n });\n}\n\nexport async function connectIntegrationApi(\n params: {\n provider: IntegrationProviderTS;\n integrationType: IntegrationTypeTS;\n redirectUri: string;\n },\n options: ApiClientOptions\n): Promise<ApiResponse<ConnectIntegrationResponse>> {\n return browserApiRequest(\"/api/v1/integrations/connect\", {\n method: \"POST\",\n body: {\n provider: params.provider,\n integration_type: params.integrationType,\n redirect_uri: params.redirectUri,\n },\n ...options,\n });\n}\n\nexport async function integrationCallbackApi(\n params: {\n state: string;\n code: string;\n error?: string;\n },\n options: ApiClientOptions\n): Promise<ApiResponse<IntegrationCallbackResponse>> {\n return browserApiRequest(\"/api/v1/integrations/callback\", {\n method: \"POST\",\n body: params,\n ...options,\n });\n}\n\nexport async function disconnectIntegrationApi(\n params: {\n provider: IntegrationProviderTS;\n integrationType: IntegrationTypeTS;\n },\n options: ApiClientOptions\n): Promise<ApiResponse<DisconnectIntegrationResponse>> {\n return browserApiRequest(\"/api/v1/integrations/disconnect\", {\n method: \"POST\",\n body: {\n provider: params.provider,\n integration_type: params.integrationType,\n },\n ...options,\n });\n}\n\nexport async function refreshIntegrationApi(\n params: {\n provider: IntegrationProviderTS;\n integrationType: IntegrationTypeTS;\n },\n options: ApiClientOptions\n): Promise<ApiResponse<RefreshIntegrationResponse>> {\n return browserApiRequest(\"/api/v1/integrations/refresh\", {\n method: \"POST\",\n body: {\n provider: params.provider,\n integration_type: params.integrationType,\n },\n ...options,\n });\n}\n\nexport async function updateIntegrationTriageApi(\n params: {\n provider: IntegrationProviderTS;\n integrationType: IntegrationTypeTS;\n triageEnabled: boolean;\n },\n options: ApiClientOptions\n): Promise<ApiResponse<UpdateTriageEnabledResponse>> {\n return browserApiRequest(\"/api/v1/integrations/triage\", {\n method: \"PUT\",\n body: {\n provider: params.provider,\n integration_type: params.integrationType,\n triage_enabled: params.triageEnabled,\n },\n ...options,\n });\n}\n\nexport async function runEmailTriageApi(\n options: ApiClientOptions\n): Promise<ApiResponse<RunEmailTriageResponse>> {\n return browserApiRequest(\"/api/v1/integrations/triage/run\", {\n method: \"POST\",\n body: {},\n ...options,\n });\n}\n\n// Re-export types from models\nexport type {\n Agent,\n AgentSummary,\n Skill,\n SubAgent,\n AgentWidget,\n SkillUserConfig,\n SkillUserConfigResponse,\n SkillUserConfigListResponse,\n ResolveSkillConfigResponse,\n ToolDefinition,\n ToolDefinitionResponse,\n ToolDefinitionsListResponse,\n GetToolDefinitionsByIDsResponse,\n AgentJob,\n AgentJobResponse,\n AgentJobsListResponse,\n // Integration types\n UserIntegration,\n ListUserIntegrationsResponse,\n GetUserIntegrationResponse,\n ConnectIntegrationResponse,\n IntegrationCallbackResponse,\n DisconnectIntegrationResponse,\n RefreshIntegrationResponse,\n UpdateTriageEnabledResponse,\n RunEmailTriageResponse,\n IntegrationProviderTS,\n IntegrationTypeTS,\n} from \"../models\";\n"]}
@@ -38,7 +38,23 @@
38
38
 
39
39
 
40
40
 
41
- var _chunkSKZS3AITjs = require('./chunk-SKZS3AIT.js');
41
+
42
+
43
+
44
+
45
+
46
+
47
+
48
+
49
+
50
+
51
+
52
+
53
+
54
+
55
+
56
+
57
+ var _chunkRAA5NKA7js = require('./chunk-RAA5NKA7.js');
42
58
 
43
59
  // hooks/index.ts
44
60
  var _react = require('react');
@@ -122,37 +138,37 @@ function useOptionsRef(options) {
122
138
  function useAgents(options) {
123
139
  const optionsRef = useOptionsRef(options);
124
140
  const { execute: listAgents, loading: listLoading, error: listError } = useApiAsync(
125
- () => _chunkSKZS3AITjs.listAgentsApi.call(void 0, optionsRef.current),
141
+ () => _chunkRAA5NKA7js.listAgentsApi.call(void 0, optionsRef.current),
126
142
  (data) => data.agents,
127
143
  []
128
144
  );
129
145
  const { execute: listAgentSummaries, loading: listSummaryLoading, error: listSummaryError } = useApiAsync(
130
- () => _chunkSKZS3AITjs.listAgentsSummaryApi.call(void 0, optionsRef.current),
146
+ () => _chunkRAA5NKA7js.listAgentsSummaryApi.call(void 0, optionsRef.current),
131
147
  (data) => data.agents,
132
148
  []
133
149
  );
134
150
  const { execute: getAgent, loading: getLoading, error: getError } = useApiAsync(
135
- (agentId) => _chunkSKZS3AITjs.getAgentApi.call(void 0, agentId, optionsRef.current),
151
+ (agentId) => _chunkRAA5NKA7js.getAgentApi.call(void 0, agentId, optionsRef.current),
136
152
  (data) => data.agent || null,
137
153
  null
138
154
  );
139
155
  const { execute: createAgent, loading: createLoading, error: createError } = useApiAsync(
140
- (agent) => _chunkSKZS3AITjs.createAgentApi.call(void 0, agent, optionsRef.current),
156
+ (agent) => _chunkRAA5NKA7js.createAgentApi.call(void 0, agent, optionsRef.current),
141
157
  (data) => data.agent || null,
142
158
  null
143
159
  );
144
160
  const { execute: updateAgent, loading: updateLoading, error: updateError } = useApiAsync(
145
- (agentId, agent) => _chunkSKZS3AITjs.updateAgentApi.call(void 0, agentId, agent, optionsRef.current),
161
+ (agentId, agent) => _chunkRAA5NKA7js.updateAgentApi.call(void 0, agentId, agent, optionsRef.current),
146
162
  (data) => data.agent || null,
147
163
  null
148
164
  );
149
165
  const { execute: deleteAgent, loading: deleteLoading, error: deleteError } = useApiAsync(
150
- (agentId) => _chunkSKZS3AITjs.deleteAgentApi.call(void 0, agentId, optionsRef.current),
166
+ (agentId) => _chunkRAA5NKA7js.deleteAgentApi.call(void 0, agentId, optionsRef.current),
151
167
  () => true,
152
168
  false
153
169
  );
154
170
  const { execute: getDefaultAgent, loading: defaultLoading, error: defaultError } = useApiAsync(
155
- () => _chunkSKZS3AITjs.getDefaultAgentApi.call(void 0, optionsRef.current),
171
+ () => _chunkRAA5NKA7js.getDefaultAgentApi.call(void 0, optionsRef.current),
156
172
  (data) => data.agent || null,
157
173
  null
158
174
  );
@@ -176,32 +192,32 @@ function useAgents(options) {
176
192
  function useSkills(options) {
177
193
  const optionsRef = useOptionsRef(options);
178
194
  const { execute: listSkills, loading: listLoading, error: listError } = useApiAsync(
179
- () => _chunkSKZS3AITjs.listSkillsApi.call(void 0, optionsRef.current),
195
+ () => _chunkRAA5NKA7js.listSkillsApi.call(void 0, optionsRef.current),
180
196
  (data) => data.skills,
181
197
  []
182
198
  );
183
199
  const { execute: getSkill, loading: getLoading, error: getError } = useApiAsync(
184
- (skillId) => _chunkSKZS3AITjs.getSkillApi.call(void 0, skillId, optionsRef.current),
200
+ (skillId) => _chunkRAA5NKA7js.getSkillApi.call(void 0, skillId, optionsRef.current),
185
201
  (data) => data.skill || null,
186
202
  null
187
203
  );
188
204
  const { execute: createSkill, loading: createLoading, error: createError } = useApiAsync(
189
- (skill) => _chunkSKZS3AITjs.createSkillApi.call(void 0, skill, optionsRef.current),
205
+ (skill) => _chunkRAA5NKA7js.createSkillApi.call(void 0, skill, optionsRef.current),
190
206
  (data) => data.skill || null,
191
207
  null
192
208
  );
193
209
  const { execute: updateSkill, loading: updateLoading, error: updateError } = useApiAsync(
194
- (skillId, skill) => _chunkSKZS3AITjs.updateSkillApi.call(void 0, skillId, skill, optionsRef.current),
210
+ (skillId, skill) => _chunkRAA5NKA7js.updateSkillApi.call(void 0, skillId, skill, optionsRef.current),
195
211
  (data) => data.skill || null,
196
212
  null
197
213
  );
198
214
  const { execute: deleteSkill, loading: deleteLoading, error: deleteError } = useApiAsync(
199
- (skillId) => _chunkSKZS3AITjs.deleteSkillApi.call(void 0, skillId, optionsRef.current),
215
+ (skillId) => _chunkRAA5NKA7js.deleteSkillApi.call(void 0, skillId, optionsRef.current),
200
216
  () => true,
201
217
  false
202
218
  );
203
219
  const { execute: getCategories, loading: categoriesLoading, error: categoriesError } = useApiAsync(
204
- () => _chunkSKZS3AITjs.getSkillCategoriesApi.call(void 0, optionsRef.current),
220
+ () => _chunkRAA5NKA7js.getSkillCategoriesApi.call(void 0, optionsRef.current),
205
221
  (data) => data.categories,
206
222
  []
207
223
  );
@@ -224,27 +240,27 @@ function useSkills(options) {
224
240
  function useSubAgents(options) {
225
241
  const optionsRef = useOptionsRef(options);
226
242
  const { execute: listSubAgents, loading: listLoading, error: listError } = useApiAsync(
227
- () => _chunkSKZS3AITjs.listSubAgentsApi.call(void 0, optionsRef.current),
243
+ () => _chunkRAA5NKA7js.listSubAgentsApi.call(void 0, optionsRef.current),
228
244
  (data) => data.subAgents,
229
245
  []
230
246
  );
231
247
  const { execute: getSubAgent, loading: getLoading, error: getError } = useApiAsync(
232
- (subAgentId) => _chunkSKZS3AITjs.getSubAgentApi.call(void 0, subAgentId, optionsRef.current),
248
+ (subAgentId) => _chunkRAA5NKA7js.getSubAgentApi.call(void 0, subAgentId, optionsRef.current),
233
249
  (data) => data.subAgent || null,
234
250
  null
235
251
  );
236
252
  const { execute: createSubAgent, loading: createLoading, error: createError } = useApiAsync(
237
- (subAgent) => _chunkSKZS3AITjs.createSubAgentApi.call(void 0, subAgent, optionsRef.current),
253
+ (subAgent) => _chunkRAA5NKA7js.createSubAgentApi.call(void 0, subAgent, optionsRef.current),
238
254
  (data) => data.subAgent || null,
239
255
  null
240
256
  );
241
257
  const { execute: updateSubAgent, loading: updateLoading, error: updateError } = useApiAsync(
242
- (subAgentId, subAgent) => _chunkSKZS3AITjs.updateSubAgentApi.call(void 0, subAgentId, subAgent, optionsRef.current),
258
+ (subAgentId, subAgent) => _chunkRAA5NKA7js.updateSubAgentApi.call(void 0, subAgentId, subAgent, optionsRef.current),
243
259
  (data) => data.subAgent || null,
244
260
  null
245
261
  );
246
262
  const { execute: deleteSubAgent, loading: deleteLoading, error: deleteError } = useApiAsync(
247
- (subAgentId) => _chunkSKZS3AITjs.deleteSubAgentApi.call(void 0, subAgentId, optionsRef.current),
263
+ (subAgentId) => _chunkRAA5NKA7js.deleteSubAgentApi.call(void 0, subAgentId, optionsRef.current),
248
264
  () => true,
249
265
  false
250
266
  );
@@ -266,32 +282,32 @@ function useSubAgents(options) {
266
282
  function useToolDefinitions(options) {
267
283
  const optionsRef = useOptionsRef(options);
268
284
  const { execute: listToolDefinitions, loading: listLoading, error: listError } = useApiAsync(
269
- () => _chunkSKZS3AITjs.listToolDefinitionsApi.call(void 0, optionsRef.current),
285
+ () => _chunkRAA5NKA7js.listToolDefinitionsApi.call(void 0, optionsRef.current),
270
286
  (data) => data.toolDefinitions,
271
287
  []
272
288
  );
273
289
  const { execute: getToolDefinition, loading: getLoading, error: getError } = useApiAsync(
274
- (toolDefId) => _chunkSKZS3AITjs.getToolDefinitionApi.call(void 0, toolDefId, optionsRef.current),
290
+ (toolDefId) => _chunkRAA5NKA7js.getToolDefinitionApi.call(void 0, toolDefId, optionsRef.current),
275
291
  (data) => data.toolDefinition || null,
276
292
  null
277
293
  );
278
294
  const { execute: getToolDefinitionsByIds, loading: getByIdsLoading, error: getByIdsError } = useApiAsync(
279
- (ids) => _chunkSKZS3AITjs.getToolDefinitionsByIdsApi.call(void 0, ids, optionsRef.current),
295
+ (ids) => _chunkRAA5NKA7js.getToolDefinitionsByIdsApi.call(void 0, ids, optionsRef.current),
280
296
  (data) => data.toolDefinitions,
281
297
  []
282
298
  );
283
299
  const { execute: createToolDefinition, loading: createLoading, error: createError } = useApiAsync(
284
- (toolDefinition) => _chunkSKZS3AITjs.createToolDefinitionApi.call(void 0, toolDefinition, optionsRef.current),
300
+ (toolDefinition) => _chunkRAA5NKA7js.createToolDefinitionApi.call(void 0, toolDefinition, optionsRef.current),
285
301
  (data) => data.toolDefinition || null,
286
302
  null
287
303
  );
288
304
  const { execute: updateToolDefinition, loading: updateLoading, error: updateError } = useApiAsync(
289
- (toolDefId, toolDefinition) => _chunkSKZS3AITjs.updateToolDefinitionApi.call(void 0, toolDefId, toolDefinition, optionsRef.current),
305
+ (toolDefId, toolDefinition) => _chunkRAA5NKA7js.updateToolDefinitionApi.call(void 0, toolDefId, toolDefinition, optionsRef.current),
290
306
  (data) => data.toolDefinition || null,
291
307
  null
292
308
  );
293
309
  const { execute: deleteToolDefinition, loading: deleteLoading, error: deleteError } = useApiAsync(
294
- (toolDefId) => _chunkSKZS3AITjs.deleteToolDefinitionApi.call(void 0, toolDefId, optionsRef.current),
310
+ (toolDefId) => _chunkRAA5NKA7js.deleteToolDefinitionApi.call(void 0, toolDefId, optionsRef.current),
295
311
  () => true,
296
312
  false
297
313
  );
@@ -314,37 +330,37 @@ function useToolDefinitions(options) {
314
330
  function useAgentJobs(options) {
315
331
  const optionsRef = useOptionsRef(options);
316
332
  const { execute: listAgentJobs, loading: listLoading, error: listError } = useApiAsync(
317
- () => _chunkSKZS3AITjs.listAgentJobsApi.call(void 0, optionsRef.current),
333
+ () => _chunkRAA5NKA7js.listAgentJobsApi.call(void 0, optionsRef.current),
318
334
  (data) => data.jobs,
319
335
  []
320
336
  );
321
337
  const { execute: getAgentJob, loading: getLoading, error: getError } = useApiAsync(
322
- (jobId) => _chunkSKZS3AITjs.getAgentJobApi.call(void 0, jobId, optionsRef.current),
338
+ (jobId) => _chunkRAA5NKA7js.getAgentJobApi.call(void 0, jobId, optionsRef.current),
323
339
  (data) => data.job || null,
324
340
  null
325
341
  );
326
342
  const { execute: createAgentJob, loading: createLoading, error: createError } = useApiAsync(
327
- (job) => _chunkSKZS3AITjs.createAgentJobApi.call(void 0, job, optionsRef.current),
343
+ (job) => _chunkRAA5NKA7js.createAgentJobApi.call(void 0, job, optionsRef.current),
328
344
  (data) => data.job || null,
329
345
  null
330
346
  );
331
347
  const { execute: updateAgentJob, loading: updateLoading, error: updateError } = useApiAsync(
332
- (jobId, job) => _chunkSKZS3AITjs.updateAgentJobApi.call(void 0, jobId, job, optionsRef.current),
348
+ (jobId, job) => _chunkRAA5NKA7js.updateAgentJobApi.call(void 0, jobId, job, optionsRef.current),
333
349
  (data) => data.job || null,
334
350
  null
335
351
  );
336
352
  const { execute: deleteAgentJob, loading: deleteLoading, error: deleteError } = useApiAsync(
337
- (jobId) => _chunkSKZS3AITjs.deleteAgentJobApi.call(void 0, jobId, optionsRef.current),
353
+ (jobId) => _chunkRAA5NKA7js.deleteAgentJobApi.call(void 0, jobId, optionsRef.current),
338
354
  () => true,
339
355
  false
340
356
  );
341
357
  const { execute: pauseAgentJob, loading: pauseLoading, error: pauseError } = useApiAsync(
342
- (jobId) => _chunkSKZS3AITjs.pauseAgentJobApi.call(void 0, jobId, optionsRef.current),
358
+ (jobId) => _chunkRAA5NKA7js.pauseAgentJobApi.call(void 0, jobId, optionsRef.current),
343
359
  (data) => data.job || null,
344
360
  null
345
361
  );
346
362
  const { execute: resumeAgentJob, loading: resumeLoading, error: resumeError } = useApiAsync(
347
- (jobId) => _chunkSKZS3AITjs.resumeAgentJobApi.call(void 0, jobId, optionsRef.current),
363
+ (jobId) => _chunkRAA5NKA7js.resumeAgentJobApi.call(void 0, jobId, optionsRef.current),
348
364
  (data) => data.job || null,
349
365
  null
350
366
  );
@@ -368,37 +384,37 @@ function useAgentJobs(options) {
368
384
  function useWidgets(options) {
369
385
  const optionsRef = useOptionsRef(options);
370
386
  const { execute: listWidgets, loading: listLoading, error: listError } = useApiAsync(
371
- () => _chunkSKZS3AITjs.listWidgetsApi.call(void 0, optionsRef.current.agentId, optionsRef.current),
387
+ () => _chunkRAA5NKA7js.listWidgetsApi.call(void 0, optionsRef.current.agentId, optionsRef.current),
372
388
  (data) => data.widgets,
373
389
  []
374
390
  );
375
391
  const { execute: getWidget, loading: getLoading, error: getError } = useApiAsync(
376
- (widgetId) => _chunkSKZS3AITjs.getWidgetApi.call(void 0, widgetId, optionsRef.current),
392
+ (widgetId) => _chunkRAA5NKA7js.getWidgetApi.call(void 0, widgetId, optionsRef.current),
377
393
  (data) => data.widget || null,
378
394
  null
379
395
  );
380
396
  const { execute: getDefaultWidget, loading: defaultLoading, error: defaultError } = useApiAsync(
381
- () => _chunkSKZS3AITjs.getDefaultWidgetApi.call(void 0, optionsRef.current.agentId, optionsRef.current),
397
+ () => _chunkRAA5NKA7js.getDefaultWidgetApi.call(void 0, optionsRef.current.agentId, optionsRef.current),
382
398
  (data) => data.widget || null,
383
399
  null
384
400
  );
385
401
  const { execute: createWidget, loading: createLoading, error: createError } = useApiAsync(
386
- (widget) => _chunkSKZS3AITjs.createWidgetApi.call(void 0, optionsRef.current.agentId, widget, optionsRef.current),
402
+ (widget) => _chunkRAA5NKA7js.createWidgetApi.call(void 0, optionsRef.current.agentId, widget, optionsRef.current),
387
403
  (data) => data.widget || null,
388
404
  null
389
405
  );
390
406
  const { execute: updateWidget, loading: updateLoading, error: updateError } = useApiAsync(
391
- (widgetId, widget) => _chunkSKZS3AITjs.updateWidgetApi.call(void 0, widgetId, widget, optionsRef.current),
407
+ (widgetId, widget) => _chunkRAA5NKA7js.updateWidgetApi.call(void 0, widgetId, widget, optionsRef.current),
392
408
  (data) => data.widget || null,
393
409
  null
394
410
  );
395
411
  const { execute: deleteWidget, loading: deleteLoading, error: deleteError } = useApiAsync(
396
- (widgetId) => _chunkSKZS3AITjs.deleteWidgetApi.call(void 0, widgetId, optionsRef.current),
412
+ (widgetId) => _chunkRAA5NKA7js.deleteWidgetApi.call(void 0, widgetId, optionsRef.current),
397
413
  () => true,
398
414
  false
399
415
  );
400
416
  const { execute: setDefaultWidget, loading: setDefaultLoading, error: setDefaultError } = useApiAsync(
401
- (widgetId) => _chunkSKZS3AITjs.setDefaultWidgetApi.call(void 0, widgetId, optionsRef.current.agentId, optionsRef.current),
417
+ (widgetId) => _chunkRAA5NKA7js.setDefaultWidgetApi.call(void 0, widgetId, optionsRef.current.agentId, optionsRef.current),
402
418
  () => true,
403
419
  false
404
420
  );
@@ -419,6 +435,141 @@ function useWidgets(options) {
419
435
  [loading, error, listWidgets, getWidget, getDefaultWidget, createWidget, updateWidget, deleteWidget, setDefaultWidget]
420
436
  );
421
437
  }
438
+ function useSkillUserConfig(options) {
439
+ const optionsRef = useOptionsRef(options);
440
+ const { execute: getSkillUserConfig, loading: getLoading, error: getError } = useApiAsync(
441
+ (skillId, agentId) => _chunkRAA5NKA7js.getSkillUserConfigApi.call(void 0, skillId, { ...optionsRef.current, agentId }),
442
+ (data) => data.userConfig || null,
443
+ null
444
+ );
445
+ const { execute: updateSkillUserConfig, loading: updateLoading, error: updateError } = useApiAsync(
446
+ (skillId, data) => _chunkRAA5NKA7js.updateSkillUserConfigApi.call(void 0, skillId, data, optionsRef.current),
447
+ (data) => data.userConfig || null,
448
+ null
449
+ );
450
+ const { execute: deleteSkillUserConfig, loading: deleteLoading, error: deleteError } = useApiAsync(
451
+ (skillId, agentId) => _chunkRAA5NKA7js.deleteSkillUserConfigApi.call(void 0, skillId, { ...optionsRef.current, agentId }),
452
+ () => true,
453
+ false
454
+ );
455
+ const { execute: listSkillUserConfigs, loading: listLoading, error: listError } = useApiAsync(
456
+ (params) => _chunkRAA5NKA7js.listSkillUserConfigsApi.call(void 0, { ...optionsRef.current, ...params }),
457
+ (data) => data.userConfigs || [],
458
+ []
459
+ );
460
+ const { execute: resolveSkillConfig, loading: resolveLoading, error: resolveError } = useApiAsync(
461
+ (skillId, agentId) => _chunkRAA5NKA7js.resolveSkillConfigApi.call(void 0, skillId, agentId, optionsRef.current),
462
+ (data) => data,
463
+ null
464
+ );
465
+ const loading = getLoading || updateLoading || deleteLoading || listLoading || resolveLoading;
466
+ const error = getError || updateError || deleteError || listError || resolveError;
467
+ return _react.useMemo.call(void 0,
468
+ () => ({
469
+ loading,
470
+ error,
471
+ getSkillUserConfig,
472
+ updateSkillUserConfig,
473
+ deleteSkillUserConfig,
474
+ listSkillUserConfigs,
475
+ resolveSkillConfig
476
+ }),
477
+ [loading, error, getSkillUserConfig, updateSkillUserConfig, deleteSkillUserConfig, listSkillUserConfigs, resolveSkillConfig]
478
+ );
479
+ }
480
+ function useAnalytics(options) {
481
+ const optionsRef = useOptionsRef(options);
482
+ const { execute: getAgentChatsAnalytics, loading: chatsLoading, error: chatsError } = useApiAsync(
483
+ (params) => _chunkRAA5NKA7js.getAgentChatsAnalyticsApi.call(void 0, params, optionsRef.current),
484
+ (data) => data.data,
485
+ []
486
+ );
487
+ const { execute: getAgentCSATAnalytics, loading: csatLoading, error: csatError } = useApiAsync(
488
+ (params) => _chunkRAA5NKA7js.getAgentCSATAnalyticsApi.call(void 0, params, optionsRef.current),
489
+ (data) => data.data,
490
+ []
491
+ );
492
+ const { execute: getAgentListAnalytics, loading: listLoading, error: listError } = useApiAsync(
493
+ () => _chunkRAA5NKA7js.getAgentListAnalyticsApi.call(void 0, optionsRef.current),
494
+ (data) => data.data,
495
+ []
496
+ );
497
+ const { execute: getTaskOutcomes, loading: taskLoading, error: taskError } = useApiAsync(
498
+ (params) => _chunkRAA5NKA7js.getTaskOutcomesApi.call(void 0, params, optionsRef.current),
499
+ (data) => data.data,
500
+ []
501
+ );
502
+ const loading = chatsLoading || csatLoading || listLoading || taskLoading;
503
+ const error = chatsError || csatError || listError || taskError;
504
+ return _react.useMemo.call(void 0,
505
+ () => ({
506
+ loading,
507
+ error,
508
+ getAgentChatsAnalytics,
509
+ getAgentCSATAnalytics,
510
+ getAgentListAnalytics,
511
+ getTaskOutcomes
512
+ }),
513
+ [loading, error, getAgentChatsAnalytics, getAgentCSATAnalytics, getAgentListAnalytics, getTaskOutcomes]
514
+ );
515
+ }
516
+ function useIntegrations(options) {
517
+ const optionsRef = useOptionsRef(options);
518
+ const { execute: listIntegrations, loading: listLoading, error: listError } = useApiAsync(
519
+ () => _chunkRAA5NKA7js.listIntegrationsApi.call(void 0, optionsRef.current),
520
+ (data) => data.integrations,
521
+ []
522
+ );
523
+ const { execute: getIntegration, loading: getLoading, error: getError } = useApiAsync(
524
+ (provider, integrationType) => _chunkRAA5NKA7js.getIntegrationApi.call(void 0, provider, integrationType, optionsRef.current),
525
+ (data) => data.integration || null,
526
+ null
527
+ );
528
+ const { execute: connectIntegration, loading: connectLoading, error: connectError } = useApiAsync(
529
+ (params) => _chunkRAA5NKA7js.connectIntegrationApi.call(void 0, params, optionsRef.current),
530
+ (data) => ({ authUrl: data.auth_url, state: data.state }),
531
+ null
532
+ );
533
+ const { execute: disconnectIntegration, loading: disconnectLoading, error: disconnectError } = useApiAsync(
534
+ (params) => _chunkRAA5NKA7js.disconnectIntegrationApi.call(void 0, params, optionsRef.current),
535
+ () => true,
536
+ false
537
+ );
538
+ const { execute: refreshIntegration, loading: refreshLoading, error: refreshError } = useApiAsync(
539
+ (params) => _chunkRAA5NKA7js.refreshIntegrationApi.call(void 0, params, optionsRef.current),
540
+ (data) => data.integration || null,
541
+ null
542
+ );
543
+ const { execute: updateTriage, loading: updateTriageLoading, error: updateTriageError } = useApiAsync(
544
+ (params) => _chunkRAA5NKA7js.updateIntegrationTriageApi.call(void 0, params, optionsRef.current),
545
+ (data) => data.integration || null,
546
+ null
547
+ );
548
+ const { execute: runEmailTriage, loading: runTriageLoading, error: runTriageError } = useApiAsync(
549
+ () => _chunkRAA5NKA7js.runEmailTriageApi.call(void 0, optionsRef.current),
550
+ (data) => ({ success: data.success, emailsFound: data.emails_found, instancesCreated: data.instances_created }),
551
+ null
552
+ );
553
+ const loading = listLoading || getLoading || connectLoading || disconnectLoading || refreshLoading || updateTriageLoading || runTriageLoading;
554
+ const error = listError || getError || connectError || disconnectError || refreshError || updateTriageError || runTriageError;
555
+ return _react.useMemo.call(void 0,
556
+ () => ({
557
+ loading,
558
+ error,
559
+ listIntegrations,
560
+ getIntegration,
561
+ connectIntegration,
562
+ disconnectIntegration,
563
+ refreshIntegration,
564
+ updateTriage,
565
+ runEmailTriage
566
+ }),
567
+ [loading, error, listIntegrations, getIntegration, connectIntegration, disconnectIntegration, refreshIntegration, updateTriage, runEmailTriage]
568
+ );
569
+ }
570
+
571
+
572
+
422
573
 
423
574
 
424
575
 
@@ -430,5 +581,5 @@ function useWidgets(options) {
430
581
 
431
582
 
432
583
 
433
- 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;
434
- //# sourceMappingURL=chunk-REBFGDVA.js.map
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-RWFVHX2J.js.map