@elqnt/agents 3.0.5 → 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 CHANGED
@@ -25,7 +25,7 @@ const definitions: DefaultDefinitions = {
25
25
  title: "Support Agent",
26
26
  description: "Customer support AI assistant",
27
27
  provider: "azure-openai",
28
- model: "gpt-4.1-mini",
28
+ model: "gpt-5.4-mini",
29
29
  type: "chat",
30
30
  status: "active",
31
31
  systemPrompt: "You are a helpful support agent...",
@@ -106,6 +106,42 @@ import {
106
106
  createWidgetApi,
107
107
  updateWidgetApi,
108
108
 
109
+ // Integrations (OAuth connections)
110
+ listIntegrationsApi,
111
+ getIntegrationApi,
112
+ connectIntegrationApi,
113
+ disconnectIntegrationApi,
114
+ refreshIntegrationApi,
115
+ updateIntegrationTriageApi,
116
+ runEmailTriageApi,
117
+
118
+ // Sandbox (AI-generated HTML)
119
+ createSandboxApi,
120
+ getSandboxApi,
121
+ updateSandboxApi,
122
+ listSandboxesApi,
123
+ deleteSandboxApi,
124
+
125
+ // Scheduler - Tasks
126
+ listSchedulerTasksApi,
127
+ createSchedulerTaskApi,
128
+ getSchedulerTaskApi,
129
+ updateSchedulerTaskApi,
130
+ deleteSchedulerTaskApi,
131
+ snoozeSchedulerTaskApi,
132
+ completeSchedulerTaskApi,
133
+ startSchedulerTaskApi,
134
+
135
+ // Scheduler - Schedules
136
+ listSchedulesApi,
137
+ createScheduleApi,
138
+ getScheduleApi,
139
+ updateScheduleApi,
140
+ deleteScheduleApi,
141
+ pauseScheduleApi,
142
+ resumeScheduleApi,
143
+ runScheduleApi,
144
+
109
145
  // Provisioning
110
146
  provisionAgentsApi,
111
147
  } from "@elqnt/agents/api";
@@ -114,12 +150,34 @@ import {
114
150
  ### `/hooks` - React Hooks
115
151
 
116
152
  ```typescript
117
- import { useAgents, useSkills } from "@elqnt/agents/hooks";
153
+ import { useAgents, useSkills, useIntegrations } from "@elqnt/agents/hooks";
154
+
155
+ // Agent management
156
+ const { listAgents, getAgent, createAgent, updateAgent, deleteAgent, getDefaultAgent, loading, error } = useAgents(options);
118
157
 
119
- const { agents, loading, error, createAgent } = useAgents(options);
120
- const { skills, loading, error } = useSkills(options);
158
+ // Skill management
159
+ const { listSkills, getSkill, createSkill, updateSkill, deleteSkill, getCategories, loading, error } = useSkills(options);
160
+
161
+ // OAuth integrations (Google, Microsoft)
162
+ const { listIntegrations, getIntegration, connectIntegration, disconnectIntegration, refreshIntegration, updateTriage, runEmailTriage, loading, error } = useIntegrations(options);
121
163
  ```
122
164
 
165
+ Available hooks:
166
+ | Hook | Description |
167
+ |------|-------------|
168
+ | `useAgents` | Agent CRUD operations |
169
+ | `useSkills` | Skill CRUD operations |
170
+ | `useSubAgents` | Sub-agent CRUD operations |
171
+ | `useToolDefinitions` | Tool definition CRUD operations |
172
+ | `useAgentJobs` | Agent job management (pause/resume) |
173
+ | `useWidgets` | Chat widget CRUD operations |
174
+ | `useSkillUserConfig` | Per-user skill configuration |
175
+ | `useAnalytics` | Agent analytics (chats, CSAT, task outcomes) |
176
+ | `useIntegrations` | OAuth integration management (Google, Microsoft) |
177
+ | `useSandbox` | AI-generated HTML sandbox management |
178
+ | `useSchedulerTasks` | Scheduler task operations (create, snooze, complete) |
179
+ | `useSchedulerSchedules` | Recurring schedule operations (pause, resume, run) |
180
+
123
181
  ### `/models` - TypeScript Types
124
182
 
125
183
  Types generated from Go via tygo.
@@ -134,7 +192,22 @@ import type {
134
192
  AgentWidget,
135
193
  DefaultDefinitions,
136
194
  AgentProvisionDefinition,
195
+ // Integration types
196
+ UserIntegration,
197
+ IntegrationProviderTS, // 'google' | 'microsoft'
198
+ IntegrationTypeTS, // 'email' | 'calendar' | 'drive'
199
+ IntegrationStatusTS, // 'active' | 'expired' | 'revoked' | 'error'
200
+ // Sandbox types
201
+ Sandbox,
202
+ CreateSandboxRequest,
203
+ CreateSandboxResponse,
137
204
  } from "@elqnt/agents/models";
205
+
206
+ // Scheduler types (from API)
207
+ import type {
208
+ SchedulerTask,
209
+ SchedulerSchedule,
210
+ } from "@elqnt/agents/api";
138
211
  ```
139
212
 
140
213
  ### `/utils` - Utilities
@@ -2,6 +2,8 @@ import { ApiClientOptions, ApiResponse } from '@elqnt/api-client';
2
2
  import { ResponseMetadata } from '@elqnt/types';
3
3
  import { A as Agent, ai as AgentResponse, Z as AgentJob, a4 as AgentJobResponse, dk as Skill, dv as SkillResponse, dO as SubAgent, dP as SubAgentResponse, e9 as ToolDefinition, ea as ToolDefinitionResponse, aY as AgentWidget, aZ as AgentWidgetResponse, dB as SkillUserConfigResponse, bZ as GetSkillsByIDsResponse, c3 as GetToolDefinitionsByIDsResponse, aa as AgentJobsListResponse, cC as ListAgentsResponse, cE as ListAgentsSummaryResponse, dz as SkillUserConfigListResponse, dJ as SkillsListResponse, dX as SubAgentsListResponse, ei as ToolDefinitionsListResponse, cA as ListAgentWidgetsResponse, dd as ResolveSkillConfigResponse } from '../agent-models-C36pvpUb.mjs';
4
4
  export { aF as AgentSummary, dw as SkillUserConfig } from '../agent-models-C36pvpUb.mjs';
5
+ import { ap as IntegrationProviderTS, aA as IntegrationTypeTS, e as ConnectIntegrationResponse, h as CreateSandboxRequest, i as CreateSandboxResponse, m as DeleteSandboxResponse, r as DisconnectIntegrationResponse, R as GetUserIntegrationResponse, O as GetSandboxResponse, ai as IntegrationCallbackResponse, aL as ListUserIntegrationsResponse, aJ as ListSandboxesResponse, aT as RefreshIntegrationResponse, aV as RunEmailTriageResponse, b9 as UpdateTriageEnabledResponse, b5 as UpdateSandboxRequest, b6 as UpdateSandboxResponse } from '../sandbox-BHeWPjLU.mjs';
6
+ export { aW as Sandbox, ba as UserIntegration } from '../sandbox-BHeWPjLU.mjs';
5
7
 
6
8
  /**
7
9
  * Agents API functions
@@ -20,6 +22,7 @@ declare function deleteAgentApi(agentId: string, options: ApiClientOptions): Pro
20
22
  metadata: ResponseMetadata;
21
23
  }>>;
22
24
  declare function getDefaultAgentApi(options: ApiClientOptions): Promise<ApiResponse<AgentResponse>>;
25
+ declare function getAgentByNameApi(name: string, options: ApiClientOptions): Promise<ApiResponse<AgentResponse>>;
23
26
  declare function listSkillsApi(options: ApiClientOptions): Promise<ApiResponse<SkillsListResponse>>;
24
27
  declare function getSkillApi(skillId: string, options: ApiClientOptions): Promise<ApiResponse<SkillResponse>>;
25
28
  declare function getSkillsByIdsApi(ids: string[], options: ApiClientOptions): Promise<ApiResponse<GetSkillsByIDsResponse>>;
@@ -54,6 +57,11 @@ declare function listSkillUserConfigsApi(options: ApiClientOptions & {
54
57
  offset?: number;
55
58
  }): Promise<ApiResponse<SkillUserConfigListResponse>>;
56
59
  declare function resolveSkillConfigApi(skillId: string, agentId: string, options: ApiClientOptions): Promise<ApiResponse<ResolveSkillConfigResponse>>;
60
+ declare function updateSkillOrgConfigApi(skillId: string, data: {
61
+ enabled?: boolean;
62
+ displayOrder?: number;
63
+ config?: Record<string, unknown>;
64
+ }, options: ApiClientOptions): Promise<ApiResponse<SkillUserConfigResponse>>;
57
65
  declare function listSubAgentsApi(options: ApiClientOptions & {
58
66
  onlySystem?: boolean;
59
67
  enabled?: boolean;
@@ -154,4 +162,206 @@ interface ProvisionAgentsResponse {
154
162
  */
155
163
  declare function provisionAgentsApi(definitions: unknown[], options: ApiClientOptions): Promise<ApiResponse<ProvisionAgentsResponse>>;
156
164
 
157
- export { Agent, AgentJob, AgentJobResponse, AgentJobsListResponse, AgentWidget, type AnalyticsDataResponse, type DateFilter, GetToolDefinitionsByIDsResponse, type ProvisionAgentsResponse, ResolveSkillConfigResponse, Skill, type SkillCategoriesResponse, SkillUserConfigListResponse, SkillUserConfigResponse, SubAgent, ToolDefinition, ToolDefinitionResponse, ToolDefinitionsListResponse, createAgentApi, createAgentJobApi, createSkillApi, createSubAgentApi, createToolDefinitionApi, createWidgetApi, deleteAgentApi, deleteAgentJobApi, deleteSkillApi, deleteSkillUserConfigApi, deleteSubAgentApi, deleteToolDefinitionApi, deleteWidgetApi, getAgentApi, getAgentCSATAnalyticsApi, getAgentChatsAnalyticsApi, getAgentJobApi, getAgentListAnalyticsApi, getDefaultAgentApi, getDefaultWidgetApi, getSkillApi, getSkillCategoriesApi, getSkillUserConfigApi, getSkillsByIdsApi, getSubAgentApi, getTaskOutcomesApi, getToolDefinitionApi, getToolDefinitionsByIdsApi, getWidgetApi, getWidgetByWidgetIdApi, listAgentJobsApi, listAgentsApi, listAgentsSummaryApi, listSkillUserConfigsApi, listSkillsApi, listSubAgentsApi, listToolDefinitionsApi, listWidgetsApi, pauseAgentJobApi, provisionAgentsApi, resolveSkillConfigApi, resumeAgentJobApi, searchSkillsApi, setDefaultWidgetApi, updateAgentApi, updateAgentJobApi, updateSkillApi, updateSkillUserConfigApi, updateSubAgentApi, updateToolDefinitionApi, updateWidgetApi };
165
+ declare function listIntegrationsApi(options: ApiClientOptions): Promise<ApiResponse<ListUserIntegrationsResponse>>;
166
+ declare function getIntegrationApi(provider: IntegrationProviderTS, integrationType: IntegrationTypeTS, options: ApiClientOptions): Promise<ApiResponse<GetUserIntegrationResponse>>;
167
+ declare function connectIntegrationApi(params: {
168
+ provider: IntegrationProviderTS;
169
+ integrationType: IntegrationTypeTS;
170
+ redirectUri: string;
171
+ }, options: ApiClientOptions): Promise<ApiResponse<ConnectIntegrationResponse>>;
172
+ declare function integrationCallbackApi(params: {
173
+ state: string;
174
+ code: string;
175
+ error?: string;
176
+ }, options: ApiClientOptions): Promise<ApiResponse<IntegrationCallbackResponse>>;
177
+ declare function disconnectIntegrationApi(params: {
178
+ provider: IntegrationProviderTS;
179
+ integrationType: IntegrationTypeTS;
180
+ }, options: ApiClientOptions): Promise<ApiResponse<DisconnectIntegrationResponse>>;
181
+ declare function refreshIntegrationApi(params: {
182
+ provider: IntegrationProviderTS;
183
+ integrationType: IntegrationTypeTS;
184
+ }, options: ApiClientOptions): Promise<ApiResponse<RefreshIntegrationResponse>>;
185
+ declare function updateIntegrationTriageApi(params: {
186
+ provider: IntegrationProviderTS;
187
+ integrationType: IntegrationTypeTS;
188
+ triageEnabled: boolean;
189
+ }, options: ApiClientOptions): Promise<ApiResponse<UpdateTriageEnabledResponse>>;
190
+ declare function runEmailTriageApi(options: ApiClientOptions): Promise<ApiResponse<RunEmailTriageResponse>>;
191
+
192
+ /**
193
+ * Create a new sandbox from a prompt
194
+ */
195
+ declare function createSandboxApi(request: Omit<CreateSandboxRequest, "orgId">, options: ApiClientOptions): Promise<ApiResponse<CreateSandboxResponse>>;
196
+ /**
197
+ * Get a sandbox by ID
198
+ */
199
+ declare function getSandboxApi(sandboxId: string, options: ApiClientOptions): Promise<ApiResponse<GetSandboxResponse>>;
200
+ /**
201
+ * Update a sandbox via prompt
202
+ */
203
+ declare function updateSandboxApi(sandboxId: string, request: Omit<UpdateSandboxRequest, "id" | "orgId">, options: ApiClientOptions): Promise<ApiResponse<UpdateSandboxResponse>>;
204
+ /**
205
+ * List sandboxes for the current user
206
+ */
207
+ declare function listSandboxesApi(options: ApiClientOptions & {
208
+ limit?: number;
209
+ }): Promise<ApiResponse<ListSandboxesResponse>>;
210
+ /**
211
+ * Delete a sandbox
212
+ */
213
+ declare function deleteSandboxApi(sandboxId: string, options: ApiClientOptions): Promise<ApiResponse<DeleteSandboxResponse>>;
214
+ interface SchedulerTask {
215
+ id: string;
216
+ orgId: string;
217
+ name?: string;
218
+ description?: string;
219
+ subject: string;
220
+ fields?: Record<string, unknown>;
221
+ status: "scheduled" | "running" | "in-progress" | "completed" | "failed" | "cancelled";
222
+ progress: number;
223
+ runAt: number;
224
+ delay?: {
225
+ amount?: number;
226
+ unit?: string;
227
+ };
228
+ recurring?: boolean;
229
+ cronExpr?: string;
230
+ maxRetries?: number;
231
+ retryCount?: number;
232
+ lastError?: string;
233
+ metadata?: Record<string, unknown>;
234
+ createdAt: string;
235
+ updatedAt: string;
236
+ completedAt?: string;
237
+ createdBy?: string;
238
+ updatedBy?: string;
239
+ }
240
+ interface SchedulerTaskResponse {
241
+ task?: SchedulerTask;
242
+ metadata: ResponseMetadata;
243
+ }
244
+ interface SchedulerTaskListResponse {
245
+ tasks: SchedulerTask[];
246
+ metadata: ResponseMetadata;
247
+ }
248
+ interface SchedulerSchedule {
249
+ id: string;
250
+ orgId: string;
251
+ userId: string;
252
+ userEmail: string;
253
+ name: string;
254
+ description?: string;
255
+ cronExpression: string;
256
+ timezone?: string;
257
+ status: "active" | "paused" | "failed" | "deleted";
258
+ action: {
259
+ type: string;
260
+ emailQuery?: string;
261
+ taskTemplate?: {
262
+ titleTemplate: string;
263
+ descriptionTemplate?: string;
264
+ type: string;
265
+ priority: string;
266
+ projectId: string;
267
+ assignedTo?: string;
268
+ };
269
+ };
270
+ lastRunAt?: string;
271
+ nextRunAt?: string;
272
+ runCount: number;
273
+ lastError?: string;
274
+ createdAt: string;
275
+ updatedAt: string;
276
+ }
277
+ interface SchedulerScheduleResponse {
278
+ schedule?: SchedulerSchedule;
279
+ metadata: ResponseMetadata;
280
+ }
281
+ interface SchedulerScheduleListResponse {
282
+ schedules: SchedulerSchedule[];
283
+ metadata: ResponseMetadata;
284
+ }
285
+ /**
286
+ * List scheduler tasks
287
+ */
288
+ declare function listSchedulerTasksApi(options: ApiClientOptions & {
289
+ status?: string;
290
+ limit?: number;
291
+ offset?: number;
292
+ }): Promise<ApiResponse<SchedulerTaskListResponse>>;
293
+ /**
294
+ * Create a scheduler task
295
+ */
296
+ declare function createSchedulerTaskApi(task: Partial<SchedulerTask>, options: ApiClientOptions): Promise<ApiResponse<SchedulerTaskResponse>>;
297
+ /**
298
+ * Get a scheduler task by ID
299
+ */
300
+ declare function getSchedulerTaskApi(taskId: string, options: ApiClientOptions): Promise<ApiResponse<SchedulerTaskResponse>>;
301
+ /**
302
+ * Update a scheduler task
303
+ */
304
+ declare function updateSchedulerTaskApi(taskId: string, task: Partial<SchedulerTask>, options: ApiClientOptions): Promise<ApiResponse<SchedulerTaskResponse>>;
305
+ /**
306
+ * Delete a scheduler task
307
+ */
308
+ declare function deleteSchedulerTaskApi(taskId: string, options: ApiClientOptions): Promise<ApiResponse<{
309
+ success: boolean;
310
+ metadata: ResponseMetadata;
311
+ }>>;
312
+ /**
313
+ * Snooze a scheduler task
314
+ */
315
+ declare function snoozeSchedulerTaskApi(taskId: string, delay: {
316
+ amount: number;
317
+ unit: string;
318
+ }, options: ApiClientOptions): Promise<ApiResponse<SchedulerTaskResponse>>;
319
+ /**
320
+ * Mark a scheduler task as complete
321
+ */
322
+ declare function completeSchedulerTaskApi(taskId: string, options: ApiClientOptions): Promise<ApiResponse<SchedulerTaskResponse>>;
323
+ /**
324
+ * Start a scheduler task manually
325
+ */
326
+ declare function startSchedulerTaskApi(taskId: string, options: ApiClientOptions): Promise<ApiResponse<SchedulerTaskResponse>>;
327
+ /**
328
+ * List schedules
329
+ */
330
+ declare function listSchedulesApi(options: ApiClientOptions & {
331
+ status?: string;
332
+ limit?: number;
333
+ offset?: number;
334
+ }): Promise<ApiResponse<SchedulerScheduleListResponse>>;
335
+ /**
336
+ * Create a schedule
337
+ */
338
+ declare function createScheduleApi(schedule: Partial<SchedulerSchedule>, options: ApiClientOptions): Promise<ApiResponse<SchedulerScheduleResponse>>;
339
+ /**
340
+ * Get a schedule by ID
341
+ */
342
+ declare function getScheduleApi(scheduleId: string, options: ApiClientOptions): Promise<ApiResponse<SchedulerScheduleResponse>>;
343
+ /**
344
+ * Update a schedule
345
+ */
346
+ declare function updateScheduleApi(scheduleId: string, schedule: Partial<SchedulerSchedule>, options: ApiClientOptions): Promise<ApiResponse<SchedulerScheduleResponse>>;
347
+ /**
348
+ * Delete a schedule
349
+ */
350
+ declare function deleteScheduleApi(scheduleId: string, options: ApiClientOptions): Promise<ApiResponse<{
351
+ success: boolean;
352
+ metadata: ResponseMetadata;
353
+ }>>;
354
+ /**
355
+ * Pause a schedule
356
+ */
357
+ declare function pauseScheduleApi(scheduleId: string, options: ApiClientOptions): Promise<ApiResponse<SchedulerScheduleResponse>>;
358
+ /**
359
+ * Resume a paused schedule
360
+ */
361
+ declare function resumeScheduleApi(scheduleId: string, options: ApiClientOptions): Promise<ApiResponse<SchedulerScheduleResponse>>;
362
+ /**
363
+ * Run a schedule immediately
364
+ */
365
+ declare function runScheduleApi(scheduleId: string, options: ApiClientOptions): Promise<ApiResponse<SchedulerScheduleResponse>>;
366
+
367
+ export { Agent, AgentJob, AgentJobResponse, AgentJobsListResponse, AgentWidget, type AnalyticsDataResponse, ConnectIntegrationResponse, CreateSandboxRequest, CreateSandboxResponse, type DateFilter, DeleteSandboxResponse, DisconnectIntegrationResponse, GetSandboxResponse, GetToolDefinitionsByIDsResponse, GetUserIntegrationResponse, IntegrationCallbackResponse, IntegrationProviderTS, IntegrationTypeTS, ListSandboxesResponse, ListUserIntegrationsResponse, type ProvisionAgentsResponse, RefreshIntegrationResponse, ResolveSkillConfigResponse, RunEmailTriageResponse, type SchedulerSchedule, type SchedulerScheduleListResponse, type SchedulerScheduleResponse, type SchedulerTask, type SchedulerTaskListResponse, type SchedulerTaskResponse, Skill, type SkillCategoriesResponse, SkillUserConfigListResponse, SkillUserConfigResponse, SubAgent, ToolDefinition, ToolDefinitionResponse, ToolDefinitionsListResponse, UpdateSandboxRequest, UpdateSandboxResponse, UpdateTriageEnabledResponse, completeSchedulerTaskApi, connectIntegrationApi, createAgentApi, createAgentJobApi, createSandboxApi, createScheduleApi, createSchedulerTaskApi, createSkillApi, createSubAgentApi, createToolDefinitionApi, createWidgetApi, deleteAgentApi, deleteAgentJobApi, deleteSandboxApi, deleteScheduleApi, deleteSchedulerTaskApi, deleteSkillApi, deleteSkillUserConfigApi, deleteSubAgentApi, deleteToolDefinitionApi, deleteWidgetApi, disconnectIntegrationApi, getAgentApi, getAgentByNameApi, getAgentCSATAnalyticsApi, getAgentChatsAnalyticsApi, getAgentJobApi, getAgentListAnalyticsApi, getDefaultAgentApi, getDefaultWidgetApi, getIntegrationApi, getSandboxApi, getScheduleApi, getSchedulerTaskApi, getSkillApi, getSkillCategoriesApi, getSkillUserConfigApi, getSkillsByIdsApi, getSubAgentApi, getTaskOutcomesApi, getToolDefinitionApi, getToolDefinitionsByIdsApi, getWidgetApi, getWidgetByWidgetIdApi, integrationCallbackApi, listAgentJobsApi, listAgentsApi, listAgentsSummaryApi, listIntegrationsApi, listSandboxesApi, listSchedulerTasksApi, listSchedulesApi, listSkillUserConfigsApi, listSkillsApi, listSubAgentsApi, listToolDefinitionsApi, listWidgetsApi, pauseAgentJobApi, pauseScheduleApi, provisionAgentsApi, refreshIntegrationApi, resolveSkillConfigApi, resumeAgentJobApi, resumeScheduleApi, runEmailTriageApi, runScheduleApi, searchSkillsApi, setDefaultWidgetApi, snoozeSchedulerTaskApi, startSchedulerTaskApi, updateAgentApi, updateAgentJobApi, updateIntegrationTriageApi, updateSandboxApi, updateScheduleApi, updateSchedulerTaskApi, updateSkillApi, updateSkillOrgConfigApi, updateSkillUserConfigApi, updateSubAgentApi, updateToolDefinitionApi, updateWidgetApi };
@@ -2,6 +2,8 @@ import { ApiClientOptions, ApiResponse } from '@elqnt/api-client';
2
2
  import { ResponseMetadata } from '@elqnt/types';
3
3
  import { A as Agent, ai as AgentResponse, Z as AgentJob, a4 as AgentJobResponse, dk as Skill, dv as SkillResponse, dO as SubAgent, dP as SubAgentResponse, e9 as ToolDefinition, ea as ToolDefinitionResponse, aY as AgentWidget, aZ as AgentWidgetResponse, dB as SkillUserConfigResponse, bZ as GetSkillsByIDsResponse, c3 as GetToolDefinitionsByIDsResponse, aa as AgentJobsListResponse, cC as ListAgentsResponse, cE as ListAgentsSummaryResponse, dz as SkillUserConfigListResponse, dJ as SkillsListResponse, dX as SubAgentsListResponse, ei as ToolDefinitionsListResponse, cA as ListAgentWidgetsResponse, dd as ResolveSkillConfigResponse } from '../agent-models-C36pvpUb.js';
4
4
  export { aF as AgentSummary, dw as SkillUserConfig } from '../agent-models-C36pvpUb.js';
5
+ import { ap as IntegrationProviderTS, aA as IntegrationTypeTS, e as ConnectIntegrationResponse, h as CreateSandboxRequest, i as CreateSandboxResponse, m as DeleteSandboxResponse, r as DisconnectIntegrationResponse, R as GetUserIntegrationResponse, O as GetSandboxResponse, ai as IntegrationCallbackResponse, aL as ListUserIntegrationsResponse, aJ as ListSandboxesResponse, aT as RefreshIntegrationResponse, aV as RunEmailTriageResponse, b9 as UpdateTriageEnabledResponse, b5 as UpdateSandboxRequest, b6 as UpdateSandboxResponse } from '../sandbox-BHeWPjLU.js';
6
+ export { aW as Sandbox, ba as UserIntegration } from '../sandbox-BHeWPjLU.js';
5
7
 
6
8
  /**
7
9
  * Agents API functions
@@ -20,6 +22,7 @@ declare function deleteAgentApi(agentId: string, options: ApiClientOptions): Pro
20
22
  metadata: ResponseMetadata;
21
23
  }>>;
22
24
  declare function getDefaultAgentApi(options: ApiClientOptions): Promise<ApiResponse<AgentResponse>>;
25
+ declare function getAgentByNameApi(name: string, options: ApiClientOptions): Promise<ApiResponse<AgentResponse>>;
23
26
  declare function listSkillsApi(options: ApiClientOptions): Promise<ApiResponse<SkillsListResponse>>;
24
27
  declare function getSkillApi(skillId: string, options: ApiClientOptions): Promise<ApiResponse<SkillResponse>>;
25
28
  declare function getSkillsByIdsApi(ids: string[], options: ApiClientOptions): Promise<ApiResponse<GetSkillsByIDsResponse>>;
@@ -54,6 +57,11 @@ declare function listSkillUserConfigsApi(options: ApiClientOptions & {
54
57
  offset?: number;
55
58
  }): Promise<ApiResponse<SkillUserConfigListResponse>>;
56
59
  declare function resolveSkillConfigApi(skillId: string, agentId: string, options: ApiClientOptions): Promise<ApiResponse<ResolveSkillConfigResponse>>;
60
+ declare function updateSkillOrgConfigApi(skillId: string, data: {
61
+ enabled?: boolean;
62
+ displayOrder?: number;
63
+ config?: Record<string, unknown>;
64
+ }, options: ApiClientOptions): Promise<ApiResponse<SkillUserConfigResponse>>;
57
65
  declare function listSubAgentsApi(options: ApiClientOptions & {
58
66
  onlySystem?: boolean;
59
67
  enabled?: boolean;
@@ -154,4 +162,206 @@ interface ProvisionAgentsResponse {
154
162
  */
155
163
  declare function provisionAgentsApi(definitions: unknown[], options: ApiClientOptions): Promise<ApiResponse<ProvisionAgentsResponse>>;
156
164
 
157
- export { Agent, AgentJob, AgentJobResponse, AgentJobsListResponse, AgentWidget, type AnalyticsDataResponse, type DateFilter, GetToolDefinitionsByIDsResponse, type ProvisionAgentsResponse, ResolveSkillConfigResponse, Skill, type SkillCategoriesResponse, SkillUserConfigListResponse, SkillUserConfigResponse, SubAgent, ToolDefinition, ToolDefinitionResponse, ToolDefinitionsListResponse, createAgentApi, createAgentJobApi, createSkillApi, createSubAgentApi, createToolDefinitionApi, createWidgetApi, deleteAgentApi, deleteAgentJobApi, deleteSkillApi, deleteSkillUserConfigApi, deleteSubAgentApi, deleteToolDefinitionApi, deleteWidgetApi, getAgentApi, getAgentCSATAnalyticsApi, getAgentChatsAnalyticsApi, getAgentJobApi, getAgentListAnalyticsApi, getDefaultAgentApi, getDefaultWidgetApi, getSkillApi, getSkillCategoriesApi, getSkillUserConfigApi, getSkillsByIdsApi, getSubAgentApi, getTaskOutcomesApi, getToolDefinitionApi, getToolDefinitionsByIdsApi, getWidgetApi, getWidgetByWidgetIdApi, listAgentJobsApi, listAgentsApi, listAgentsSummaryApi, listSkillUserConfigsApi, listSkillsApi, listSubAgentsApi, listToolDefinitionsApi, listWidgetsApi, pauseAgentJobApi, provisionAgentsApi, resolveSkillConfigApi, resumeAgentJobApi, searchSkillsApi, setDefaultWidgetApi, updateAgentApi, updateAgentJobApi, updateSkillApi, updateSkillUserConfigApi, updateSubAgentApi, updateToolDefinitionApi, updateWidgetApi };
165
+ declare function listIntegrationsApi(options: ApiClientOptions): Promise<ApiResponse<ListUserIntegrationsResponse>>;
166
+ declare function getIntegrationApi(provider: IntegrationProviderTS, integrationType: IntegrationTypeTS, options: ApiClientOptions): Promise<ApiResponse<GetUserIntegrationResponse>>;
167
+ declare function connectIntegrationApi(params: {
168
+ provider: IntegrationProviderTS;
169
+ integrationType: IntegrationTypeTS;
170
+ redirectUri: string;
171
+ }, options: ApiClientOptions): Promise<ApiResponse<ConnectIntegrationResponse>>;
172
+ declare function integrationCallbackApi(params: {
173
+ state: string;
174
+ code: string;
175
+ error?: string;
176
+ }, options: ApiClientOptions): Promise<ApiResponse<IntegrationCallbackResponse>>;
177
+ declare function disconnectIntegrationApi(params: {
178
+ provider: IntegrationProviderTS;
179
+ integrationType: IntegrationTypeTS;
180
+ }, options: ApiClientOptions): Promise<ApiResponse<DisconnectIntegrationResponse>>;
181
+ declare function refreshIntegrationApi(params: {
182
+ provider: IntegrationProviderTS;
183
+ integrationType: IntegrationTypeTS;
184
+ }, options: ApiClientOptions): Promise<ApiResponse<RefreshIntegrationResponse>>;
185
+ declare function updateIntegrationTriageApi(params: {
186
+ provider: IntegrationProviderTS;
187
+ integrationType: IntegrationTypeTS;
188
+ triageEnabled: boolean;
189
+ }, options: ApiClientOptions): Promise<ApiResponse<UpdateTriageEnabledResponse>>;
190
+ declare function runEmailTriageApi(options: ApiClientOptions): Promise<ApiResponse<RunEmailTriageResponse>>;
191
+
192
+ /**
193
+ * Create a new sandbox from a prompt
194
+ */
195
+ declare function createSandboxApi(request: Omit<CreateSandboxRequest, "orgId">, options: ApiClientOptions): Promise<ApiResponse<CreateSandboxResponse>>;
196
+ /**
197
+ * Get a sandbox by ID
198
+ */
199
+ declare function getSandboxApi(sandboxId: string, options: ApiClientOptions): Promise<ApiResponse<GetSandboxResponse>>;
200
+ /**
201
+ * Update a sandbox via prompt
202
+ */
203
+ declare function updateSandboxApi(sandboxId: string, request: Omit<UpdateSandboxRequest, "id" | "orgId">, options: ApiClientOptions): Promise<ApiResponse<UpdateSandboxResponse>>;
204
+ /**
205
+ * List sandboxes for the current user
206
+ */
207
+ declare function listSandboxesApi(options: ApiClientOptions & {
208
+ limit?: number;
209
+ }): Promise<ApiResponse<ListSandboxesResponse>>;
210
+ /**
211
+ * Delete a sandbox
212
+ */
213
+ declare function deleteSandboxApi(sandboxId: string, options: ApiClientOptions): Promise<ApiResponse<DeleteSandboxResponse>>;
214
+ interface SchedulerTask {
215
+ id: string;
216
+ orgId: string;
217
+ name?: string;
218
+ description?: string;
219
+ subject: string;
220
+ fields?: Record<string, unknown>;
221
+ status: "scheduled" | "running" | "in-progress" | "completed" | "failed" | "cancelled";
222
+ progress: number;
223
+ runAt: number;
224
+ delay?: {
225
+ amount?: number;
226
+ unit?: string;
227
+ };
228
+ recurring?: boolean;
229
+ cronExpr?: string;
230
+ maxRetries?: number;
231
+ retryCount?: number;
232
+ lastError?: string;
233
+ metadata?: Record<string, unknown>;
234
+ createdAt: string;
235
+ updatedAt: string;
236
+ completedAt?: string;
237
+ createdBy?: string;
238
+ updatedBy?: string;
239
+ }
240
+ interface SchedulerTaskResponse {
241
+ task?: SchedulerTask;
242
+ metadata: ResponseMetadata;
243
+ }
244
+ interface SchedulerTaskListResponse {
245
+ tasks: SchedulerTask[];
246
+ metadata: ResponseMetadata;
247
+ }
248
+ interface SchedulerSchedule {
249
+ id: string;
250
+ orgId: string;
251
+ userId: string;
252
+ userEmail: string;
253
+ name: string;
254
+ description?: string;
255
+ cronExpression: string;
256
+ timezone?: string;
257
+ status: "active" | "paused" | "failed" | "deleted";
258
+ action: {
259
+ type: string;
260
+ emailQuery?: string;
261
+ taskTemplate?: {
262
+ titleTemplate: string;
263
+ descriptionTemplate?: string;
264
+ type: string;
265
+ priority: string;
266
+ projectId: string;
267
+ assignedTo?: string;
268
+ };
269
+ };
270
+ lastRunAt?: string;
271
+ nextRunAt?: string;
272
+ runCount: number;
273
+ lastError?: string;
274
+ createdAt: string;
275
+ updatedAt: string;
276
+ }
277
+ interface SchedulerScheduleResponse {
278
+ schedule?: SchedulerSchedule;
279
+ metadata: ResponseMetadata;
280
+ }
281
+ interface SchedulerScheduleListResponse {
282
+ schedules: SchedulerSchedule[];
283
+ metadata: ResponseMetadata;
284
+ }
285
+ /**
286
+ * List scheduler tasks
287
+ */
288
+ declare function listSchedulerTasksApi(options: ApiClientOptions & {
289
+ status?: string;
290
+ limit?: number;
291
+ offset?: number;
292
+ }): Promise<ApiResponse<SchedulerTaskListResponse>>;
293
+ /**
294
+ * Create a scheduler task
295
+ */
296
+ declare function createSchedulerTaskApi(task: Partial<SchedulerTask>, options: ApiClientOptions): Promise<ApiResponse<SchedulerTaskResponse>>;
297
+ /**
298
+ * Get a scheduler task by ID
299
+ */
300
+ declare function getSchedulerTaskApi(taskId: string, options: ApiClientOptions): Promise<ApiResponse<SchedulerTaskResponse>>;
301
+ /**
302
+ * Update a scheduler task
303
+ */
304
+ declare function updateSchedulerTaskApi(taskId: string, task: Partial<SchedulerTask>, options: ApiClientOptions): Promise<ApiResponse<SchedulerTaskResponse>>;
305
+ /**
306
+ * Delete a scheduler task
307
+ */
308
+ declare function deleteSchedulerTaskApi(taskId: string, options: ApiClientOptions): Promise<ApiResponse<{
309
+ success: boolean;
310
+ metadata: ResponseMetadata;
311
+ }>>;
312
+ /**
313
+ * Snooze a scheduler task
314
+ */
315
+ declare function snoozeSchedulerTaskApi(taskId: string, delay: {
316
+ amount: number;
317
+ unit: string;
318
+ }, options: ApiClientOptions): Promise<ApiResponse<SchedulerTaskResponse>>;
319
+ /**
320
+ * Mark a scheduler task as complete
321
+ */
322
+ declare function completeSchedulerTaskApi(taskId: string, options: ApiClientOptions): Promise<ApiResponse<SchedulerTaskResponse>>;
323
+ /**
324
+ * Start a scheduler task manually
325
+ */
326
+ declare function startSchedulerTaskApi(taskId: string, options: ApiClientOptions): Promise<ApiResponse<SchedulerTaskResponse>>;
327
+ /**
328
+ * List schedules
329
+ */
330
+ declare function listSchedulesApi(options: ApiClientOptions & {
331
+ status?: string;
332
+ limit?: number;
333
+ offset?: number;
334
+ }): Promise<ApiResponse<SchedulerScheduleListResponse>>;
335
+ /**
336
+ * Create a schedule
337
+ */
338
+ declare function createScheduleApi(schedule: Partial<SchedulerSchedule>, options: ApiClientOptions): Promise<ApiResponse<SchedulerScheduleResponse>>;
339
+ /**
340
+ * Get a schedule by ID
341
+ */
342
+ declare function getScheduleApi(scheduleId: string, options: ApiClientOptions): Promise<ApiResponse<SchedulerScheduleResponse>>;
343
+ /**
344
+ * Update a schedule
345
+ */
346
+ declare function updateScheduleApi(scheduleId: string, schedule: Partial<SchedulerSchedule>, options: ApiClientOptions): Promise<ApiResponse<SchedulerScheduleResponse>>;
347
+ /**
348
+ * Delete a schedule
349
+ */
350
+ declare function deleteScheduleApi(scheduleId: string, options: ApiClientOptions): Promise<ApiResponse<{
351
+ success: boolean;
352
+ metadata: ResponseMetadata;
353
+ }>>;
354
+ /**
355
+ * Pause a schedule
356
+ */
357
+ declare function pauseScheduleApi(scheduleId: string, options: ApiClientOptions): Promise<ApiResponse<SchedulerScheduleResponse>>;
358
+ /**
359
+ * Resume a paused schedule
360
+ */
361
+ declare function resumeScheduleApi(scheduleId: string, options: ApiClientOptions): Promise<ApiResponse<SchedulerScheduleResponse>>;
362
+ /**
363
+ * Run a schedule immediately
364
+ */
365
+ declare function runScheduleApi(scheduleId: string, options: ApiClientOptions): Promise<ApiResponse<SchedulerScheduleResponse>>;
366
+
367
+ export { Agent, AgentJob, AgentJobResponse, AgentJobsListResponse, AgentWidget, type AnalyticsDataResponse, ConnectIntegrationResponse, CreateSandboxRequest, CreateSandboxResponse, type DateFilter, DeleteSandboxResponse, DisconnectIntegrationResponse, GetSandboxResponse, GetToolDefinitionsByIDsResponse, GetUserIntegrationResponse, IntegrationCallbackResponse, IntegrationProviderTS, IntegrationTypeTS, ListSandboxesResponse, ListUserIntegrationsResponse, type ProvisionAgentsResponse, RefreshIntegrationResponse, ResolveSkillConfigResponse, RunEmailTriageResponse, type SchedulerSchedule, type SchedulerScheduleListResponse, type SchedulerScheduleResponse, type SchedulerTask, type SchedulerTaskListResponse, type SchedulerTaskResponse, Skill, type SkillCategoriesResponse, SkillUserConfigListResponse, SkillUserConfigResponse, SubAgent, ToolDefinition, ToolDefinitionResponse, ToolDefinitionsListResponse, UpdateSandboxRequest, UpdateSandboxResponse, UpdateTriageEnabledResponse, completeSchedulerTaskApi, connectIntegrationApi, createAgentApi, createAgentJobApi, createSandboxApi, createScheduleApi, createSchedulerTaskApi, createSkillApi, createSubAgentApi, createToolDefinitionApi, createWidgetApi, deleteAgentApi, deleteAgentJobApi, deleteSandboxApi, deleteScheduleApi, deleteSchedulerTaskApi, deleteSkillApi, deleteSkillUserConfigApi, deleteSubAgentApi, deleteToolDefinitionApi, deleteWidgetApi, disconnectIntegrationApi, getAgentApi, getAgentByNameApi, getAgentCSATAnalyticsApi, getAgentChatsAnalyticsApi, getAgentJobApi, getAgentListAnalyticsApi, getDefaultAgentApi, getDefaultWidgetApi, getIntegrationApi, getSandboxApi, getScheduleApi, getSchedulerTaskApi, getSkillApi, getSkillCategoriesApi, getSkillUserConfigApi, getSkillsByIdsApi, getSubAgentApi, getTaskOutcomesApi, getToolDefinitionApi, getToolDefinitionsByIdsApi, getWidgetApi, getWidgetByWidgetIdApi, integrationCallbackApi, listAgentJobsApi, listAgentsApi, listAgentsSummaryApi, listIntegrationsApi, listSandboxesApi, listSchedulerTasksApi, listSchedulesApi, listSkillUserConfigsApi, listSkillsApi, listSubAgentsApi, listToolDefinitionsApi, listWidgetsApi, pauseAgentJobApi, pauseScheduleApi, provisionAgentsApi, refreshIntegrationApi, resolveSkillConfigApi, resumeAgentJobApi, resumeScheduleApi, runEmailTriageApi, runScheduleApi, searchSkillsApi, setDefaultWidgetApi, snoozeSchedulerTaskApi, startSchedulerTaskApi, updateAgentApi, updateAgentJobApi, updateIntegrationTriageApi, updateSandboxApi, updateScheduleApi, updateSchedulerTaskApi, updateSkillApi, updateSkillOrgConfigApi, updateSkillUserConfigApi, updateSubAgentApi, updateToolDefinitionApi, updateWidgetApi };