@elqnt/agents 2.1.0 → 3.0.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.
Files changed (50) hide show
  1. package/dist/agent-models-BdtFKjV3.d.mts +2398 -0
  2. package/dist/agent-models-BdtFKjV3.d.ts +2398 -0
  3. package/dist/api/index.d.mts +60 -2
  4. package/dist/api/index.d.ts +60 -2
  5. package/dist/api/index.js +38 -2
  6. package/dist/api/index.js.map +1 -1
  7. package/dist/api/index.mjs +37 -1
  8. package/dist/api/server.d.mts +146 -0
  9. package/dist/api/server.d.ts +146 -0
  10. package/dist/api/server.js +226 -0
  11. package/dist/api/server.js.map +1 -0
  12. package/dist/api/server.mjs +226 -0
  13. package/dist/api/server.mjs.map +1 -0
  14. package/dist/chunk-44A5L2IY.js +491 -0
  15. package/dist/chunk-44A5L2IY.js.map +1 -0
  16. package/dist/{chunk-YYXYKVF4.js → chunk-ADOBVUUS.js} +104 -2
  17. package/dist/chunk-ADOBVUUS.js.map +1 -0
  18. package/dist/{chunk-IDBBO3QJ.mjs → chunk-EUELXX27.mjs} +136 -2
  19. package/dist/chunk-EUELXX27.mjs.map +1 -0
  20. package/dist/{chunk-LRVOTC2M.mjs → chunk-O3FM26FT.mjs} +104 -2
  21. package/dist/chunk-O3FM26FT.mjs.map +1 -0
  22. package/dist/chunk-RTUQ7WKT.mjs +434 -0
  23. package/dist/chunk-RTUQ7WKT.mjs.map +1 -0
  24. package/dist/chunk-VVYOTEM2.js +434 -0
  25. package/dist/chunk-VVYOTEM2.js.map +1 -0
  26. package/dist/hooks/index.d.mts +134 -5
  27. package/dist/hooks/index.d.ts +134 -5
  28. package/dist/hooks/index.js +15 -3
  29. package/dist/hooks/index.js.map +1 -1
  30. package/dist/hooks/index.mjs +16 -4
  31. package/dist/index.d.mts +4 -3
  32. package/dist/index.d.ts +4 -3
  33. package/dist/index.js +180 -4
  34. package/dist/index.js.map +1 -1
  35. package/dist/index.mjs +181 -5
  36. package/dist/models/index.d.mts +713 -1995
  37. package/dist/models/index.d.ts +713 -1995
  38. package/dist/models/index.js +130 -2
  39. package/dist/models/index.js.map +1 -1
  40. package/dist/models/index.mjs +129 -1
  41. package/package.json +11 -6
  42. package/dist/chunk-EQBMH6T6.mjs +0 -398
  43. package/dist/chunk-EQBMH6T6.mjs.map +0 -1
  44. package/dist/chunk-IDBBO3QJ.mjs.map +0 -1
  45. package/dist/chunk-LRVOTC2M.mjs.map +0 -1
  46. package/dist/chunk-O77IWBPZ.js +0 -357
  47. package/dist/chunk-O77IWBPZ.js.map +0 -1
  48. package/dist/chunk-WL5S56WV.js +0 -398
  49. package/dist/chunk-WL5S56WV.js.map +0 -1
  50. package/dist/chunk-YYXYKVF4.js.map +0 -1
@@ -1,2257 +1,975 @@
1
- import { JSONSchema, ProductNameTS, ResponseMetadata } from '@elqnt/types';
1
+ export { b2 as Agent, eb as AgentCategory, eh as AgentCategoryDevelopment, ek as AgentCategoryFinance, el as AgentCategoryGeneral, ej as AgentCategoryHR, ei as AgentCategoryMarketing, eg as AgentCategoryProductivity, ee as AgentCategoryResearch, ed as AgentCategorySales, ec as AgentCategorySupport, e8 as AgentCategoryTS, ef as AgentCategoryWriting, cw as AgentChatCreateSubject, cy as AgentChatGetSubject, cx as AgentChatUpdateSubject, cz as AgentChatValidateSubject, cQ as AgentCloneSubject, A as AgentContext, m as AgentContextConfig, cm as AgentCreateSubject, cn as AgentCreatedSubject, cr as AgentDeleteSubject, cs as AgentDeletedSubject, cN as AgentEnsureDefaultSubject, cF as AgentExecuteStatusSubject, cG as AgentExecuteStopSubject, cE as AgentExecuteSubject, a as AgentExecution, cR as AgentExportSubject, b8 as AgentFilters, cW as AgentFromTemplateSubject, cP as AgentGetByOrgSubject, cO as AgentGetDefaultSubject, co as AgentGetSubject, cS as AgentImportSubject, e5 as AgentInstanceCancelPlanSubject, e7 as AgentInstanceClearHistorySubject, e1 as AgentInstanceCreatePlanSubject, dV as AgentInstanceCreateSubject, dW as AgentInstanceCreatedSubject, d$ as AgentInstanceDeleteSubject, e0 as AgentInstanceDeletedSubject, e2 as AgentInstanceExecutePlanSubject, e6 as AgentInstanceGetHistorySubject, dX as AgentInstanceGetSubject, d_ as AgentInstanceListSubject, e3 as AgentInstancePausePlanSubject, e4 as AgentInstanceResumePlanSubject, dY as AgentInstanceUpdateSubject, dZ as AgentInstanceUpdatedSubject, bR as AgentJob, dI as AgentJobCreateSubject, dL as AgentJobDeleteSubject, dJ as AgentJobGetSubject, ai as AgentJobIDRequest, dM as AgentJobListSubject, dN as AgentJobPauseSubject, ak as AgentJobResponse, dO as AgentJobResumeSubject, am as AgentJobTriggerRequest, an as AgentJobTriggerResponse, dP as AgentJobTriggerSubject, dK as AgentJobUpdateSubject, al as AgentJobsListResponse, ct as AgentListSubject, cu as AgentListSummarySubject, cA as AgentReactCreateSubject, cC as AgentReactGetSubject, cB as AgentReactUpdateSubject, cD as AgentReactValidateSubject, cb as AgentResponse, az as AgentScope, aA as AgentScopeOrg, ay as AgentScopeTS, aB as AgentScopeTeam, aC as AgentScopeUser, cv as AgentSearchSubject, aN as AgentSkill, a7 as AgentSkillConfigResponse, dA as AgentSkillGetConfigSubject, dz as AgentSkillUpdateConfigSubject, aX as AgentStatus, aZ as AgentStatusActive, a$ as AgentStatusArchived, aY as AgentStatusDraft, a_ as AgentStatusInactive, ax as AgentStatusTS, aS as AgentSubType, aT as AgentSubTypeChat, aW as AgentSubTypeDocument, aU as AgentSubTypeReact, aw as AgentSubTypeTS, aV as AgentSubTypeWorkflow, b9 as AgentSummary, et as AgentTemplate, cV as AgentTemplateGetSubject, cU as AgentTemplateListSubject, b1 as AgentTool, bl as AgentToolConfiguration, aP as AgentType, aQ as AgentTypeChat, aR as AgentTypeReact, av as AgentTypeTS, cT as AgentUpdateOrgSubject, cp as AgentUpdateSubject, cq as AgentUpdatedSubject, cL as AgentVersionActivateSubject, cM as AgentVersionActivatedSubject, cH as AgentVersionCreateSubject, cI as AgentVersionCreatedSubject, cJ as AgentVersionGetSubject, cK as AgentVersionListSubject, eC as AgentWidget, eM as AgentWidgetResponse, eD as AgentWidgetsCreateSubject, eH as AgentWidgetsDeleteSubject, eF as AgentWidgetsGetByWidgetID, eK as AgentWidgetsGetDefaultSubject, eE as AgentWidgetsGetSubject, eI as AgentWidgetsListSubject, eJ as AgentWidgetsSetDefaultSubject, eG as AgentWidgetsUpdateSubject, bX as ArtifactRef, c4 as CSATAnswer, c1 as CSATConfig, c2 as CSATQuestion, c5 as CSATResponse, c3 as CSATSurvey, cX as ChatAgentExecuteSubject, cY as ChatAgentStatusSubject, ag as CreateAgentJobRequest, ca as CreateAgentRequest, eL as CreateAgentWidgetRequest, br as CreateExecutionPlanRequest, bs as CreateExecutionPlanResponse, X as CreateSkillRequest, B as CreateSubAgentRequest, C as CreateToolDefinitionRequest, es as CustomizableField, b0 as DefaultDefinitions, ce as DeleteAgentRequest, eQ as DeleteAgentWidgetRequest, _ as DeleteSkillRequest, aa as DeleteSkillUserConfigRequest, I as DeleteSubAgentRequest, D as DeleteToolDefinitionRequest, b$ as ExecuteJobRequest, bt as ExecutePlanRequest, bu as ExecutePlanResponse, V as ExecuteToolRequest, W as ExecuteToolResponse, c0 as ExecutionCompletedEvent, bn as ExecutionMode, bp as ExecutionModeAsync, bq as ExecutionModeAsyncClient, bo as ExecutionModeSync, bw as ExecutionModeTS, p as ExecutionPlan, as as ExecutionResponse, E as ExecutionStatus, d as ExecutionStatusCompleted, e as ExecutionStatusFailed, b as ExecutionStatusPending, c as ExecutionStatusRunning, f as ExecutionStatusSkipped, g as ExecutionStatusTS, o as ExecutionTTLHours, dU as ExecutionsTTLCleanupSubject, cc as GetAgentRequest, a6 as GetAgentSkillConfigRequest, eN as GetAgentWidgetRequest, cj as GetDefaultAgentRequest, eU as GetDefaultWidgetRequest, ar as GetExecutionRequest, Z as GetSkillRequest, a8 as GetSkillUserConfigRequest, a2 as GetSkillsByIDsRequest, a3 as GetSkillsByIDsResponse, H as GetSubAgentRequest, Q as GetSubAgentsByIDsRequest, R as GetSubAgentsByIDsResponse, G as GetToolDefinitionRequest, N as GetToolDefinitionsByIDsRequest, O as GetToolDefinitionsByIDsResponse, eO as GetWidgetByWidgetIDRequest, bx as GetWidgetConfigRequest, by as GetWidgetConfigResponse, b3 as HandoffConfig, aL as IntegrationRequirement, bY as JobExecution, dQ as JobExecutionGetSubject, dR as JobExecutionListSubject, bZ as JobExecutionResult, bS as JobExecutionStatus, bV as JobExecutionStatusFailed, bT as JobExecutionStatusRunning, bU as JobExecutionStatusSuccess, bE as JobExecutionStatusTS, bW as JobExecutionStatusTimedOut, bO as JobFrequency, bP as JobFrequencyOneTime, bQ as JobFrequencySchedule, bD as JobFrequencyTS, bF as JobScope, bI as JobScopeOrg, bG as JobScopePrivate, bB as JobScopeTS, bH as JobScopeTeam, bJ as JobStatus, bK as JobStatusActive, bN as JobStatusDisabled, bL as JobStatusExecuting, bM as JobStatusPaused, bC as JobStatusTS, aj as ListAgentJobsRequest, eR as ListAgentWidgetsRequest, eS as ListAgentWidgetsResponse, cf as ListAgentsRequest, cg as ListAgentsResponse, ch as ListAgentsSummaryRequest, ci as ListAgentsSummaryResponse, ap as ListExecutionsByAgentRequest, ao as ListExecutionsByJobRequest, aq as ListExecutionsResponse, ab as ListSkillUserConfigRequest, $ as ListSkillsRequest, J as ListSubAgentsRequest, L as ListToolDefinitionsRequest, c9 as MCPServerConfig, n as MaxExecutions, M as MergeConfig, h as MergeStrategy, k as MergeStrategyAppend, j as MergeStrategyMerge, i as MergeStrategyReplace, l as MergeStrategyTS, y as PlanApprovalConfig, P as PlanStatus, r as PlanStatusApproved, v as PlanStatusCancelled, t as PlanStatusCompleted, s as PlanStatusExecuting, q as PlanStatusPendingApproval, u as PlanStatusRejected, w as PlanStatusTS, x as PlannedStep, b_ as ProcessJobTriggerResult, eV as PublicWidgetConfig, ep as PublisherType, eq as PublisherTypeEloquent, er as PublisherTypePartner, ea as PublisherTypeTS, c6 as ReactAgentConfig, cZ as ReactAgentExecuteSubject, c_ as ReactAgentStatusSubject, c$ as ReactAgentStopSubject, ae as ResolveSkillConfigRequest, af as ResolveSkillConfigResponse, c8 as RetryPolicy, dT as RuntimeJobCompletedSubject, dS as RuntimeJobExecuteSubject, bz as SaveWidgetConfigRequest, bA as SaveWidgetConfigResponse, eT as SetDefaultWidgetRequest, aM as Skill, aE as SkillCategory, aI as SkillCategoryAnalysis, aJ as SkillCategoryCommunication, aG as SkillCategoryCreative, aK as SkillCategoryCustom, aH as SkillCategoryIntegration, aF as SkillCategoryProductivity, aD as SkillCategoryTS, dF as SkillResolveConfigSubject, a0 as SkillResponse, aO as SkillUserConfig, dD as SkillUserConfigDeleteSubject, dB as SkillUserConfigGetSubject, ad as SkillUserConfigListResponse, dE as SkillUserConfigListSubject, ac as SkillUserConfigResponse, dC as SkillUserConfigUpdateSubject, dp as SkillsCreateSubject, dq as SkillsCreatedSubject, du as SkillsDeleteSubject, dv as SkillsDeletedSubject, dx as SkillsGetByIDsSubject, dr as SkillsGetSubject, a1 as SkillsListResponse, dw as SkillsListSubject, dy as SkillsUpdateOrgConfigSubject, ds as SkillsUpdateSubject, dt as SkillsUpdatedSubject, bk as SubAgent, S as SubAgentResponse, dd as SubAgentsCreateSubject, de as SubAgentsCreatedSubject, di as SubAgentsDeleteSubject, dj as SubAgentsDeletedSubject, dm as SubAgentsExecuteSubject, dl as SubAgentsGetByIDsSubject, df as SubAgentsGetSubject, K as SubAgentsListResponse, dk as SubAgentsListSubject, dg as SubAgentsUpdateSubject, dh as SubAgentsUpdatedSubject, dn as SubAgentsValidateSubject, at as TTLCleanupRequest, au as TTLCleanupResponse, eu as TemplateCategoryCount, ev as TemplateFilters, em as TemplateStatus, eo as TemplateStatusDraft, en as TemplateStatusPublished, e9 as TemplateStatusTS, c7 as ToolConfig, ba as ToolDefinition, T as ToolDefinitionResponse, d2 as ToolDefinitionsCreateSubject, d3 as ToolDefinitionsCreatedSubject, d7 as ToolDefinitionsDeleteSubject, d8 as ToolDefinitionsDeletedSubject, db as ToolDefinitionsExecuteSubject, da as ToolDefinitionsGetByIDsSubject, d4 as ToolDefinitionsGetSubject, z as ToolDefinitionsListResponse, d9 as ToolDefinitionsListSubject, d5 as ToolDefinitionsUpdateSubject, d6 as ToolDefinitionsUpdatedSubject, dc as ToolDefinitionsValidateSubject, bb as ToolExecution, bm as ToolExecutionPolicy, bc as ToolExecutionProgress, bd as ToolExecutionStatus, bg as ToolExecutionStatusCompleted, bf as ToolExecutionStatusExecuting, bh as ToolExecutionStatusFailed, bj as ToolExecutionStatusSkipped, be as ToolExecutionStatusStarted, bv as ToolExecutionStatusTS, bi as ToolExecutionStatusTimeout, ah as UpdateAgentJobRequest, cd as UpdateAgentRequest, a5 as UpdateAgentSkillConfigRequest, eP as UpdateAgentWidgetRequest, ck as UpdateOrgAgentsRequest, cl as UpdateOrgAgentsResponse, a4 as UpdateSkillOrgConfigRequest, Y as UpdateSkillRequest, a9 as UpdateSkillUserConfigRequest, F as UpdateSubAgentRequest, U as UpdateToolDefinitionRequest, ex as UserSuggestedAction, ew as UserSuggestedActionsConfig, ey as UserSuggestedActionsRequest, ez as UserSuggestedActionsResponse, eA as ValidationError, eB as ValidationErrors, b5 as WidgetAppearance, b6 as WidgetBehavior, b4 as WidgetConfig, dG as WidgetConfigGetByAgentSubject, dH as WidgetConfigSaveSubject, b7 as WidgetSecurity, d0 as WorkflowAgentGetSubject, d1 as WorkflowAgentUpdateSubject } from '../agent-models-BdtFKjV3.js';
2
+ import { ResponseMetadata } from '@elqnt/types';
2
3
 
3
4
  /**
4
- * AgentContext accumulates meaningful state from agentic tool executions.
5
- * It provides a structured, schema-driven view of what happened during a chat
6
- * and what meaningful data was extracted.
7
- * Stored in: agent_contexts_org_{orgId} with key: {agentId}:{chatKey}
8
- */
9
- interface AgentContext {
10
- /**
11
- * Identity - used for storage key and cross-references
12
- */
13
- orgId: string;
14
- agentId: string;
15
- chatKey: string;
16
- /**
17
- * Schema defines the shape of accumulated variables
18
- * Tools contribute to this schema as they execute
19
- */
20
- schema: any;
21
- /**
22
- * Variables is the merged view of all important outputs
23
- * This is what gets displayed in the "Agent Context" panel
24
- */
25
- variables: {
26
- [key: string]: any;
27
- };
28
- /**
29
- * Executions tracks each tool call with full input/output
30
- * Similar to NodeStates in workflow engine
31
- */
32
- executions: AgentExecution[];
33
- /**
34
- * PendingPlan holds an execution plan awaiting user approval
35
- * Part of the Plan → Approve → Execute flow
36
- */
37
- pendingPlan?: ExecutionPlan;
38
- /**
39
- * CompletedPlans holds historical plans (for reference/audit)
40
- */
41
- completedPlans?: ExecutionPlan[];
42
- /**
43
- * Tracking
44
- */
45
- createdAt: number;
46
- lastUpdated: number;
47
- /**
48
- * Size management
49
- */
50
- archivedExecutionCount?: number;
51
- }
52
- /**
53
- * AgentExecution represents one tool call during the agentic loop.
54
- * Similar to NodeState in the workflow engine.
55
- */
56
- interface AgentExecution {
57
- /**
58
- * Identity
59
- */
60
- id: string;
61
- toolName: string;
62
- toolId?: string;
63
- /**
64
- * Display
65
- */
66
- title: string;
67
- type: string;
68
- icon?: string;
69
- /**
70
- * Status
71
- */
72
- status: ExecutionStatusTS;
73
- error?: string;
74
- /**
75
- * Schema-driven Input/Output (like NodeInput/NodeOutput)
76
- */
77
- inputSchema?: any;
78
- input: {
5
+ * AiTaskOutcome mirrors the ai_task_outcomes table schema (subset for API use)
6
+ */
7
+ interface AiTaskOutcome {
8
+ user_id: string;
9
+ user_name: string;
10
+ user_email: string;
11
+ department_name: string;
12
+ task_id: string;
13
+ parent_task_id: string;
14
+ task_type: string;
15
+ task_subtype: string;
16
+ task_title: string;
17
+ started_at: string;
18
+ completed_at: string;
19
+ duration_s: number;
20
+ ai_used: number;
21
+ autonomy_level: string;
22
+ contained: number;
23
+ escalated: number;
24
+ reopened: number;
25
+ rework_count: number;
26
+ provider: string;
27
+ model_name: string;
28
+ agent_id: string;
29
+ agent_name: string;
30
+ toolset: string[];
31
+ input_tokens: number;
32
+ output_tokens: number;
33
+ tool_calls_count: number;
34
+ cost_usd: number;
35
+ outcome_status: string;
36
+ acceptance: string;
37
+ quality_score?: number;
38
+ csat_score?: number;
39
+ error_code: string;
40
+ reviewer_name?: string;
41
+ trace_meta?: {
79
42
  [key: string]: any;
80
43
  };
81
- outputSchema?: any;
82
- output?: {
44
+ tool_calls_json?: {
83
45
  [key: string]: any;
84
46
  };
85
- /**
86
- * Merge Configuration - how this execution's output merges into Variables
87
- */
88
- mergeConfig?: MergeConfig;
89
- /**
90
- * Timing
91
- */
92
- startedAt: number;
93
- completedAt?: number;
94
- duration?: number;
95
- }
96
- /**
97
- * ExecutionStatus represents the status of a tool execution
98
- */
99
- type ExecutionStatus = string;
100
- declare const ExecutionStatusPending: ExecutionStatus;
101
- declare const ExecutionStatusRunning: ExecutionStatus;
102
- declare const ExecutionStatusCompleted: ExecutionStatus;
103
- declare const ExecutionStatusFailed: ExecutionStatus;
104
- declare const ExecutionStatusSkipped: ExecutionStatus;
105
- type ExecutionStatusTS = 'pending' | 'running' | 'completed' | 'failed' | 'skipped';
106
- /**
107
- * MergeConfig defines how tool output gets merged into AgentContext.Variables
108
- */
109
- interface MergeConfig {
110
- /**
111
- * Keys to extract from output and merge into variables
112
- */
113
- mergeKeys?: string[];
114
- /**
115
- * Target path in variables
116
- * Examples: "shipperName" (direct), "documents[]" (append to array)
117
- */
118
- targetPath?: string;
119
- /**
120
- * Strategy: "replace" | "merge" | "append"
121
- * - replace: overwrite the target path
122
- * - merge: deep merge objects
123
- * - append: append to array (use with "path[]" syntax)
124
- */
125
- strategy?: MergeStrategy;
126
- }
127
- /**
128
- * MergeStrategy defines how values are merged into variables
129
- */
130
- type MergeStrategy = string;
131
- declare const MergeStrategyReplace: MergeStrategy;
132
- declare const MergeStrategyMerge: MergeStrategy;
133
- declare const MergeStrategyAppend: MergeStrategy;
134
- type MergeStrategyTS = 'replace' | 'merge' | 'append';
135
- /**
136
- * AgentContextConfig is defined on the Agent to configure how context is managed
137
- */
138
- interface AgentContextConfig {
139
- /**
140
- * Base schema - defines the expected shape of accumulated context
141
- */
142
- schema: any;
143
- /**
144
- * Default/initial values when context is created
145
- */
146
- defaultVariables?: {
47
+ custom_dims?: {
147
48
  [key: string]: any;
148
49
  };
149
- /**
150
- * Whether to extend schema at runtime when new keys appear
151
- */
152
- allowSchemaExtension: boolean;
50
+ updated_at: string;
51
+ }
52
+ /**
53
+ * TaskOutcomesInsertRequest is used to insert new outcomes rows
54
+ */
55
+ interface TaskOutcomesInsertRequest {
56
+ org_id: string;
57
+ outcomes: AiTaskOutcome[];
58
+ }
59
+ /**
60
+ * TaskOutcomeInsertionResponse carries only response metadata
61
+ */
62
+ interface TaskOutcomeInsertionResponse {
63
+ metadata: ResponseMetadata;
64
+ }
65
+ /**
66
+ * TaskOutcomeStatusUpdateRequest is used to update the status of an existing task outcome
67
+ */
68
+ interface TaskOutcomeStatusUpdateRequest {
69
+ org_id: string;
70
+ task_id: string;
71
+ outcome_status: string;
72
+ completed_at?: string;
73
+ }
74
+ /**
75
+ * TaskOutcomeStatusUpdateResponse carries only response metadata
76
+ */
77
+ interface TaskOutcomeStatusUpdateResponse {
78
+ metadata: ResponseMetadata;
153
79
  }
154
80
  /**
155
- * Constants for size management
81
+ * Subjects for Hub AI Task Outcomes
82
+ */
83
+ declare const HubAnalyticsGetTaskOutcomes = "hub.analytics.get_task_outcomes";
84
+ /**
85
+ * Subjects for Hub AI Task Outcomes
86
+ */
87
+ declare const HubAnalyticsGetTaskMetrics = "hub.analytics.get_task_metrics";
88
+ /**
89
+ * Subjects for Hub AI Task Outcomes
90
+ */
91
+ declare const HubEventsInsertTaskOutcomes = "hub.events.insert_task_outcomes";
92
+ /**
93
+ * Subjects for Hub AI Task Outcomes
94
+ */
95
+ declare const HubEventsUpdateTaskOutcomeStatus = "hub.events.update_task_outcome_status";
96
+
97
+ /**
98
+ * IntegrationProvider represents the email/calendar provider type
99
+ */
100
+ type IntegrationProvider = string;
101
+ declare const IntegrationProviderGoogle: IntegrationProvider;
102
+ declare const IntegrationProviderMicrosoft: IntegrationProvider;
103
+ type IntegrationProviderTS = 'google' | 'microsoft';
104
+ /**
105
+ * IntegrationType represents what the integration is for
106
+ */
107
+ type IntegrationType = string;
108
+ declare const IntegrationTypeEmail: IntegrationType;
109
+ declare const IntegrationTypeCalendar: IntegrationType;
110
+ declare const IntegrationTypeDrive: IntegrationType;
111
+ type IntegrationTypeTS = 'email' | 'calendar' | 'drive';
112
+ /**
113
+ * IntegrationStatus represents the current status of an integration
156
114
  */
157
- declare const MaxExecutions = 100;
115
+ type IntegrationStatus = string;
116
+ declare const IntegrationStatusActive: IntegrationStatus;
117
+ declare const IntegrationStatusExpired: IntegrationStatus;
118
+ declare const IntegrationStatusRevoked: IntegrationStatus;
119
+ declare const IntegrationStatusError: IntegrationStatus;
120
+ type IntegrationStatusTS = 'active' | 'expired' | 'revoked' | 'error';
158
121
  /**
159
- * Constants for size management
122
+ * IntegrationMode represents enterprise integration mode
160
123
  */
161
- declare const ExecutionTTLHours = 72;
124
+ type IntegrationMode = string;
125
+ declare const IntegrationModeServicePrincipal: IntegrationMode;
126
+ declare const IntegrationModeDomainDelegation: IntegrationMode;
162
127
  /**
163
- * ExecutionPlan represents a planned sequence of tool executions
164
- * that requires user approval before execution.
128
+ * UserIntegration represents a user's connected email/calendar account
165
129
  */
166
- interface ExecutionPlan {
167
- /**
168
- * Identity
169
- */
130
+ interface UserIntegration {
170
131
  id: string;
171
- chatKey: string;
172
- agentId: string;
173
- orgId: string;
174
- /**
175
- * Plan metadata
176
- */
177
- title: string;
178
- description: string;
179
- createdAt: number;
180
- /**
181
- * Planned steps
182
- */
183
- steps: PlannedStep[];
184
- /**
185
- * Status tracking
186
- */
187
- status: PlanStatusTS;
188
- approvedAt?: number;
189
- approvedBy?: string;
190
- rejectedAt?: number;
191
- rejectionReason?: string;
192
- /**
193
- * Execution tracking (populated after approval)
194
- */
195
- executionStartedAt?: number;
196
- executionCompletedAt?: number;
197
- currentStepIndex: number;
198
- }
199
- /**
200
- * PlanStatus represents the status of an execution plan
201
- */
202
- type PlanStatus = string;
203
- declare const PlanStatusPendingApproval: PlanStatus;
204
- declare const PlanStatusApproved: PlanStatus;
205
- declare const PlanStatusExecuting: PlanStatus;
206
- declare const PlanStatusCompleted: PlanStatus;
207
- declare const PlanStatusRejected: PlanStatus;
208
- declare const PlanStatusCancelled: PlanStatus;
209
- type PlanStatusTS = 'pending_approval' | 'approved' | 'executing' | 'completed' | 'rejected' | 'cancelled';
210
- /**
211
- * PlannedStep represents a single step in an execution plan
212
- */
213
- interface PlannedStep {
214
- /**
215
- * Identity
216
- */
132
+ org_id: string;
133
+ user_id: string;
134
+ provider: IntegrationProvider;
135
+ integration_type: IntegrationType;
136
+ account_email: string;
137
+ account_name?: string;
138
+ status: IntegrationStatus;
139
+ scopes: string[];
140
+ triage_enabled: boolean;
141
+ last_used_at?: string;
142
+ last_error?: string;
143
+ created_at: string;
144
+ updated_at: string;
145
+ expires_at?: string;
146
+ }
147
+ /**
148
+ * TokenData represents encrypted OAuth token data
149
+ */
150
+ interface TokenData {
151
+ access_token: string;
152
+ refresh_token: string;
153
+ token_type: string;
154
+ expires_at: string;
155
+ scopes: string[];
156
+ }
157
+ /**
158
+ * OrgIntegration represents an organization-wide integration configuration
159
+ */
160
+ interface OrgIntegration {
217
161
  id: string;
218
- order: number;
219
- /**
220
- * Tool information
221
- */
222
- toolName: string;
223
- toolId?: string;
224
- title: string;
225
- description: string;
226
- icon?: string;
227
- /**
228
- * Planned input (may reference outputs from previous steps)
229
- */
230
- plannedInput: {
231
- [key: string]: any;
232
- };
233
- /**
234
- * Dependencies (step IDs that must complete before this one)
235
- */
236
- dependsOn?: string[];
237
- /**
238
- * Optional: user can toggle individual steps
239
- */
162
+ org_id: string;
163
+ provider: IntegrationProvider;
164
+ integration_type: IntegrationType;
165
+ mode: IntegrationMode;
166
+ domain?: string;
240
167
  enabled: boolean;
241
- /**
242
- * After execution (populated during/after execution)
243
- */
244
- status: ExecutionStatusTS;
245
- output?: {
168
+ config?: {
246
169
  [key: string]: any;
247
170
  };
248
- error?: string;
249
- startedAt?: number;
250
- completedAt?: number;
251
- }
252
- /**
253
- * PlanApprovalConfig configures when an agent requires plan approval
254
- */
255
- interface PlanApprovalConfig {
256
- /**
257
- * Always require approval for any multi-tool operation
258
- */
259
- alwaysRequire: boolean;
260
- /**
261
- * Require approval only for these tool names
262
- */
263
- requireForTools?: string[];
264
- /**
265
- * Require approval when estimated execution time exceeds threshold (seconds)
266
- */
267
- timeThresholdSeconds?: number;
268
- /**
269
- * Require approval when number of steps exceeds threshold
270
- */
271
- stepCountThreshold?: number;
272
- /**
273
- * Auto-approve if user has previously approved similar plans
274
- */
275
- allowAutoApprove: boolean;
276
- }
277
- /**
278
- * CreateToolDefinitionRequest represents a request to create a tool definition
279
- */
280
- interface CreateToolDefinitionRequest {
281
- orgId: string;
282
- toolDefinition?: ToolDefinition;
171
+ scopes: string[];
172
+ created_by: string;
173
+ created_at: string;
174
+ updated_at: string;
283
175
  }
284
176
  /**
285
- * UpdateToolDefinitionRequest represents a request to update a tool definition
177
+ * ListUserIntegrationsRequest represents request to list user's integrations
286
178
  */
287
- interface UpdateToolDefinitionRequest {
288
- orgId: string;
289
- toolDefinition?: ToolDefinition;
179
+ interface ListUserIntegrationsRequest {
180
+ org_id: string;
181
+ user_id: string;
290
182
  }
291
183
  /**
292
- * GetToolDefinitionRequest represents a request to get a tool definition
184
+ * ListUserIntegrationsResponse represents response with user's integrations
293
185
  */
294
- interface GetToolDefinitionRequest {
295
- orgId: string;
296
- toolDefinitionId: string;
186
+ interface ListUserIntegrationsResponse {
187
+ integrations: UserIntegration[];
188
+ total: number;
189
+ metadata: any;
297
190
  }
298
191
  /**
299
- * DeleteToolDefinitionRequest represents a request to delete a tool definition
192
+ * GetUserIntegrationRequest represents request to get a specific integration
300
193
  */
301
- interface DeleteToolDefinitionRequest {
302
- orgId: string;
303
- toolDefinitionId: string;
194
+ interface GetUserIntegrationRequest {
195
+ org_id: string;
196
+ user_id: string;
197
+ provider: IntegrationProvider;
198
+ integration_type: IntegrationType;
304
199
  }
305
200
  /**
306
- * ListToolDefinitionsRequest represents a request to list tool definitions
201
+ * GetUserIntegrationResponse represents response with a specific integration
307
202
  */
308
- interface ListToolDefinitionsRequest {
309
- orgId: string;
310
- onlySystem?: boolean;
311
- enabled?: boolean;
312
- limit?: number;
313
- offset?: number;
203
+ interface GetUserIntegrationResponse {
204
+ integration?: UserIntegration;
205
+ metadata: any;
314
206
  }
315
207
  /**
316
- * ToolDefinitionResponse represents a response containing a tool definition
208
+ * ConnectIntegrationRequest represents request to initiate OAuth connection
317
209
  */
318
- interface ToolDefinitionResponse {
319
- toolDefinition?: ToolDefinition;
320
- metadata: any;
210
+ interface ConnectIntegrationRequest {
211
+ org_id: string;
212
+ user_id: string;
213
+ provider: IntegrationProvider;
214
+ integration_type: IntegrationType;
215
+ redirect_uri: string;
321
216
  }
322
217
  /**
323
- * ToolDefinitionsListResponse represents a response containing multiple tool definitions
218
+ * ConnectIntegrationResponse represents response with OAuth URL
324
219
  */
325
- interface ToolDefinitionsListResponse {
326
- toolDefinitions: ToolDefinition[];
327
- total: number;
220
+ interface ConnectIntegrationResponse {
221
+ auth_url: string;
222
+ state: string;
328
223
  metadata: any;
329
224
  }
330
225
  /**
331
- * CreateSubAgentRequest represents a request to create a sub-agent
226
+ * IntegrationCallbackRequest represents OAuth callback data
332
227
  */
333
- interface CreateSubAgentRequest {
334
- orgId: string;
335
- subAgent?: SubAgent;
228
+ interface IntegrationCallbackRequest {
229
+ org_id: string;
230
+ user_id: string;
231
+ state: string;
232
+ code: string;
233
+ error?: string;
336
234
  }
337
235
  /**
338
- * UpdateSubAgentRequest represents a request to update a sub-agent
236
+ * IntegrationCallbackResponse represents callback result
339
237
  */
340
- interface UpdateSubAgentRequest {
341
- orgId: string;
342
- subAgent?: SubAgent;
238
+ interface IntegrationCallbackResponse {
239
+ integration?: UserIntegration;
240
+ metadata: any;
343
241
  }
344
242
  /**
345
- * GetSubAgentRequest represents a request to get a sub-agent
243
+ * DisconnectIntegrationRequest represents request to disconnect an integration
346
244
  */
347
- interface GetSubAgentRequest {
348
- orgId: string;
349
- subAgentId: string;
245
+ interface DisconnectIntegrationRequest {
246
+ org_id: string;
247
+ user_id: string;
248
+ provider: IntegrationProvider;
249
+ integration_type: IntegrationType;
350
250
  }
351
251
  /**
352
- * DeleteSubAgentRequest represents a request to delete a sub-agent
252
+ * DisconnectIntegrationResponse represents disconnect result
353
253
  */
354
- interface DeleteSubAgentRequest {
355
- orgId: string;
356
- subAgentId: string;
254
+ interface DisconnectIntegrationResponse {
255
+ metadata: any;
357
256
  }
358
257
  /**
359
- * ListSubAgentsRequest represents a request to list sub-agents
258
+ * RefreshIntegrationRequest represents request to refresh token
360
259
  */
361
- interface ListSubAgentsRequest {
362
- orgId: string;
363
- onlySystem?: boolean;
364
- enabled?: boolean;
365
- limit?: number;
366
- offset?: number;
260
+ interface RefreshIntegrationRequest {
261
+ org_id: string;
262
+ user_id: string;
263
+ provider: IntegrationProvider;
264
+ integration_type: IntegrationType;
367
265
  }
368
266
  /**
369
- * SubAgentResponse represents a response containing a sub-agent
267
+ * RefreshIntegrationResponse represents refresh result
370
268
  */
371
- interface SubAgentResponse {
372
- subAgent?: SubAgent;
269
+ interface RefreshIntegrationResponse {
270
+ integration?: UserIntegration;
373
271
  metadata: any;
374
272
  }
375
273
  /**
376
- * SubAgentsListResponse represents a response containing multiple sub-agents
274
+ * UpdateTriageEnabledRequest represents request to update triage enabled flag
377
275
  */
378
- interface SubAgentsListResponse {
379
- subAgents: SubAgent[];
380
- total: number;
276
+ interface UpdateTriageEnabledRequest {
277
+ org_id: string;
278
+ user_id: string;
279
+ provider: IntegrationProvider;
280
+ integration_type: IntegrationType;
281
+ triage_enabled: boolean;
282
+ }
283
+ /**
284
+ * UpdateTriageEnabledResponse represents update triage result
285
+ */
286
+ interface UpdateTriageEnabledResponse {
287
+ integration?: UserIntegration;
381
288
  metadata: any;
382
289
  }
383
290
  /**
384
- * GetToolDefinitionsByIDsRequest represents a request to get multiple tool definitions by IDs
291
+ * ListOrgIntegrationsRequest represents request to list org integrations
385
292
  */
386
- interface GetToolDefinitionsByIDsRequest {
387
- orgId: string;
388
- toolDefinitionIds: string[];
293
+ interface ListOrgIntegrationsRequest {
294
+ org_id: string;
389
295
  }
390
296
  /**
391
- * GetToolDefinitionsByIDsResponse represents a response containing multiple tool definitions
297
+ * ListOrgIntegrationsResponse represents response with org integrations
392
298
  */
393
- interface GetToolDefinitionsByIDsResponse {
394
- toolDefinitions: ToolDefinition[];
299
+ interface ListOrgIntegrationsResponse {
300
+ integrations: OrgIntegration[];
301
+ total: number;
395
302
  metadata: any;
396
303
  }
397
304
  /**
398
- * GetSubAgentsByIDsRequest represents a request to get multiple sub-agents by IDs
305
+ * ConfigureOrgIntegrationRequest represents request to configure enterprise integration
399
306
  */
400
- interface GetSubAgentsByIDsRequest {
401
- orgId: string;
402
- subAgentIds: string[];
307
+ interface ConfigureOrgIntegrationRequest {
308
+ org_id: string;
309
+ provider: IntegrationProvider;
310
+ integration_type: IntegrationType;
311
+ mode: IntegrationMode;
312
+ domain?: string;
313
+ enabled: boolean;
314
+ config?: {
315
+ [key: string]: any;
316
+ };
317
+ created_by: string;
403
318
  }
404
319
  /**
405
- * GetSubAgentsByIDsResponse represents a response containing multiple sub-agents
320
+ * ConfigureOrgIntegrationResponse represents response after configuring
406
321
  */
407
- interface GetSubAgentsByIDsResponse {
408
- subAgents: SubAgent[];
322
+ interface ConfigureOrgIntegrationResponse {
323
+ integration?: OrgIntegration;
409
324
  metadata: any;
410
325
  }
411
- interface ExecuteToolRequest {
412
- orgId: string;
413
- agentId?: string;
414
- tool?: AgentTool;
415
- input: {
416
- [key: string]: any;
417
- };
418
- metadata?: {
419
- [key: string]: any;
420
- };
421
- context?: {
422
- [key: string]: any;
423
- };
424
- chatKey?: string;
326
+ /**
327
+ * DisableOrgIntegrationRequest represents request to disable org integration
328
+ */
329
+ interface DisableOrgIntegrationRequest {
330
+ org_id: string;
331
+ provider: IntegrationProvider;
332
+ integration_type: IntegrationType;
425
333
  }
426
- interface ExecuteToolResponse {
427
- result: {
428
- [key: string]: any;
429
- };
334
+ /**
335
+ * DisableOrgIntegrationResponse represents response after disabling
336
+ */
337
+ interface DisableOrgIntegrationResponse {
430
338
  metadata: any;
431
339
  }
432
340
  /**
433
- * CreateSkillRequest represents a request to create a skill
341
+ * SearchEmailsRequest represents request to search emails
434
342
  */
435
- interface CreateSkillRequest {
436
- orgId: string;
437
- skill?: Skill;
343
+ interface SearchEmailsRequest {
344
+ org_id: string;
345
+ user_id: string;
346
+ query: string;
347
+ from?: string;
348
+ to?: string;
349
+ subject?: string;
350
+ date_range?: string;
351
+ limit?: number;
438
352
  }
439
353
  /**
440
- * UpdateSkillRequest represents a request to update a skill
354
+ * SearchEmailsResponse represents email search results
441
355
  */
442
- interface UpdateSkillRequest {
443
- orgId: string;
444
- skill?: Skill;
356
+ interface SearchEmailsResponse {
357
+ emails: EmailSummary[];
358
+ total: number;
359
+ metadata: any;
445
360
  }
446
361
  /**
447
- * GetSkillRequest represents a request to get a skill
362
+ * EmailSummary represents a summarized email for display in chat
448
363
  */
449
- interface GetSkillRequest {
450
- orgId: string;
451
- skillId: string;
364
+ interface EmailSummary {
365
+ id: string;
366
+ thread_id?: string;
367
+ from: string;
368
+ from_name?: string;
369
+ to: string[];
370
+ cc?: string[];
371
+ subject: string;
372
+ snippet: string;
373
+ date: string;
374
+ has_attachments: boolean;
375
+ is_read: boolean;
376
+ labels?: string[];
377
+ web_link?: string;
378
+ provider?: IntegrationProviderTS;
379
+ }
380
+ /**
381
+ * GetEmailRequest represents request to get email details
382
+ */
383
+ interface GetEmailRequest {
384
+ org_id: string;
385
+ user_id: string;
386
+ email_id: string;
387
+ include_attachments?: boolean;
388
+ }
389
+ /**
390
+ * GetEmailResponse represents email details response
391
+ */
392
+ interface GetEmailResponse {
393
+ email?: EmailDetails;
394
+ metadata: any;
452
395
  }
453
396
  /**
454
- * DeleteSkillRequest represents a request to delete a skill
397
+ * EmailDetails represents full email details for viewing
455
398
  */
456
- interface DeleteSkillRequest {
457
- orgId: string;
458
- skillId: string;
399
+ interface EmailDetails {
400
+ id: string;
401
+ thread_id?: string;
402
+ from: string;
403
+ from_name?: string;
404
+ to: string[];
405
+ cc?: string[];
406
+ bcc?: string[];
407
+ subject: string;
408
+ body: string;
409
+ body_html?: string;
410
+ date: string;
411
+ attachments?: EmailAttachment[];
412
+ labels?: string[];
413
+ is_read: boolean;
414
+ web_link?: string;
415
+ provider?: IntegrationProviderTS;
416
+ }
417
+ /**
418
+ * EmailAttachment represents an email attachment
419
+ */
420
+ interface EmailAttachment {
421
+ id: string;
422
+ filename: string;
423
+ mime_type: string;
424
+ size: number;
459
425
  }
460
426
  /**
461
- * ListSkillsRequest represents a request to list skills
427
+ * SendEmailResult represents the result of sending an email
462
428
  */
463
- interface ListSkillsRequest {
464
- orgId: string;
465
- category?: SkillCategory;
466
- onlySystem?: boolean;
467
- enabled?: boolean;
468
- limit?: number;
469
- offset?: number;
429
+ interface SendEmailResult {
430
+ message_id: string;
431
+ thread_id?: string;
432
+ success: boolean;
433
+ error?: string;
470
434
  }
471
435
  /**
472
- * SkillResponse represents a response containing a skill
436
+ * GetEmailThreadRequest represents request to get email thread
473
437
  */
474
- interface SkillResponse {
475
- skill?: Skill;
476
- metadata: any;
438
+ interface GetEmailThreadRequest {
439
+ org_id: string;
440
+ user_id: string;
441
+ thread_id: string;
477
442
  }
478
443
  /**
479
- * SkillsListResponse represents a response containing multiple skills
444
+ * GetEmailThreadResponse represents email thread response
480
445
  */
481
- interface SkillsListResponse {
482
- skills: Skill[];
483
- total: number;
446
+ interface GetEmailThreadResponse {
447
+ thread: EmailDetails[];
484
448
  metadata: any;
485
449
  }
486
450
  /**
487
- * GetSkillsByIDsRequest represents a request to get multiple skills by IDs
451
+ * SendEmailRequest represents request to send an email
488
452
  */
489
- interface GetSkillsByIDsRequest {
490
- orgId: string;
491
- skillIds: string[];
453
+ interface SendEmailRequest {
454
+ org_id: string;
455
+ user_id: string;
456
+ to: string[];
457
+ cc?: string[];
458
+ bcc?: string[];
459
+ subject: string;
460
+ body: string;
461
+ body_html?: string;
462
+ reply_to?: string;
463
+ thread_id?: string;
492
464
  }
493
465
  /**
494
- * GetSkillsByIDsResponse represents a response containing multiple skills
466
+ * SendEmailResponse represents send email response
495
467
  */
496
- interface GetSkillsByIDsResponse {
497
- skills: Skill[];
468
+ interface SendEmailResponse {
469
+ result: SendEmailResult;
498
470
  metadata: any;
499
471
  }
500
472
  /**
501
- * UpdateSkillOrgConfigRequest updates org-level config for a skill
473
+ * ArchiveEmailRequest represents request to archive an email
502
474
  */
503
- interface UpdateSkillOrgConfigRequest {
504
- orgId: string;
505
- skillId: string;
506
- orgConfig: {
507
- [key: string]: any;
508
- };
475
+ interface ArchiveEmailRequest {
476
+ org_id: string;
477
+ user_id: string;
478
+ email_id: string;
509
479
  }
510
480
  /**
511
- * UpdateAgentSkillConfigRequest updates agent-level config for a skill
481
+ * ArchiveEmailResponse represents archive email response
512
482
  */
513
- interface UpdateAgentSkillConfigRequest {
514
- orgId: string;
515
- agentId: string;
516
- skillId: string;
517
- config: {
518
- [key: string]: any;
519
- };
483
+ interface ArchiveEmailResponse {
484
+ success: boolean;
485
+ metadata: any;
520
486
  }
521
487
  /**
522
- * GetAgentSkillConfigRequest gets agent-level config for a skill
488
+ * MarkAsReadRequest represents request to mark an email as read/unread
523
489
  */
524
- interface GetAgentSkillConfigRequest {
525
- orgId: string;
526
- agentId: string;
527
- skillId: string;
490
+ interface MarkAsReadRequest {
491
+ org_id: string;
492
+ user_id: string;
493
+ email_id: string;
494
+ is_read: boolean;
528
495
  }
529
496
  /**
530
- * AgentSkillConfigResponse contains agent skill config
497
+ * MarkAsReadResponse represents mark as read response
531
498
  */
532
- interface AgentSkillConfigResponse {
533
- agentSkill?: AgentSkill;
499
+ interface MarkAsReadResponse {
500
+ success: boolean;
534
501
  metadata: any;
535
502
  }
536
503
  /**
537
- * GetSkillUserConfigRequest gets user-level config for a skill
504
+ * ForwardEmailRequest represents request to forward an email
538
505
  */
539
- interface GetSkillUserConfigRequest {
540
- orgId: string;
541
- userId: string;
542
- skillId: string;
543
- agentId?: string;
506
+ interface ForwardEmailRequest {
507
+ org_id: string;
508
+ user_id: string;
509
+ email_id: string;
510
+ forward_to: string;
511
+ note?: string;
544
512
  }
545
513
  /**
546
- * UpdateSkillUserConfigRequest updates user-level config for a skill
514
+ * RunEmailTriageRequest represents request to manually trigger email triage
547
515
  */
548
- interface UpdateSkillUserConfigRequest {
549
- orgId: string;
550
- userId: string;
551
- skillId: string;
552
- agentId?: string;
553
- enabled?: boolean;
554
- displayOrder?: number;
555
- config?: {
556
- [key: string]: any;
557
- };
516
+ interface RunEmailTriageRequest {
517
+ org_id: string;
518
+ user_id: string;
558
519
  }
559
520
  /**
560
- * DeleteSkillUserConfigRequest deletes user-level config for a skill
521
+ * RunEmailTriageResponse represents email triage run response
561
522
  */
562
- interface DeleteSkillUserConfigRequest {
563
- orgId: string;
564
- userId: string;
565
- skillId: string;
566
- agentId?: string;
523
+ interface RunEmailTriageResponse {
524
+ success: boolean;
525
+ emails_found: number;
526
+ instances_created: number;
527
+ message?: string;
528
+ metadata: any;
567
529
  }
568
530
  /**
569
- * ListSkillUserConfigRequest lists user configs for skills
531
+ * ListCalendarEventsRequest represents request to list calendar events
570
532
  */
571
- interface ListSkillUserConfigRequest {
572
- orgId: string;
573
- userId: string;
574
- agentId?: string;
533
+ interface ListCalendarEventsRequest {
534
+ org_id: string;
535
+ user_id: string;
536
+ query?: string;
537
+ date_range?: string;
538
+ start_date?: string;
539
+ end_date?: string;
575
540
  limit?: number;
576
- offset?: number;
577
541
  }
578
542
  /**
579
- * SkillUserConfigResponse contains a user's skill config
543
+ * ListCalendarEventsResponse represents calendar events list
580
544
  */
581
- interface SkillUserConfigResponse {
582
- userConfig?: SkillUserConfig;
545
+ interface ListCalendarEventsResponse {
546
+ events: CalendarEvent[];
547
+ total: number;
583
548
  metadata: any;
584
549
  }
585
550
  /**
586
- * SkillUserConfigListResponse contains multiple user skill configs
551
+ * CalendarEvent represents a calendar event
587
552
  */
588
- interface SkillUserConfigListResponse {
589
- userConfigs: SkillUserConfig[];
590
- total: number;
591
- metadata: any;
553
+ interface CalendarEvent {
554
+ id: string;
555
+ title: string;
556
+ description?: string;
557
+ location?: string;
558
+ start: string;
559
+ end: string;
560
+ is_all_day: boolean;
561
+ organizer?: string;
562
+ organizer_name?: string;
563
+ attendees?: EventAttendee[];
564
+ status?: string;
565
+ response_status?: string;
566
+ recurrence_rule?: string;
567
+ conference_url?: string;
568
+ calendar_id?: string;
569
+ provider?: IntegrationProviderTS;
570
+ }
571
+ /**
572
+ * EventAttendee represents a calendar event attendee
573
+ */
574
+ interface EventAttendee {
575
+ email: string;
576
+ name?: string;
577
+ response_status?: string;
578
+ is_organizer?: boolean;
592
579
  }
593
580
  /**
594
- * ResolveSkillConfigRequest resolves merged config for a skill (org + agent + user)
581
+ * GetCalendarEventRequest represents request to get event details
595
582
  */
596
- interface ResolveSkillConfigRequest {
597
- orgId: string;
598
- userId: string;
599
- agentId: string;
600
- skillId: string;
583
+ interface GetCalendarEventRequest {
584
+ org_id: string;
585
+ user_id: string;
586
+ event_id: string;
601
587
  }
602
588
  /**
603
- * ResolveSkillConfigResponse contains the merged skill config
589
+ * GetCalendarEventResponse represents event details response
604
590
  */
605
- interface ResolveSkillConfigResponse {
606
- skillId: string;
607
- skillName: string;
608
- resolvedConfig: {
609
- [key: string]: any;
610
- };
611
- /**
612
- * Source indicates which level each config key came from
613
- */
614
- configSources?: {
615
- [key: string]: string;
616
- };
591
+ interface GetCalendarEventResponse {
592
+ event?: CalendarEvent;
617
593
  metadata: any;
618
594
  }
619
595
  /**
620
- * CreateAgentJobRequest represents a request to create an agent job
596
+ * CreateCalendarEventRequest represents request to create a new calendar event
621
597
  */
622
- interface CreateAgentJobRequest {
623
- orgId: string;
624
- job?: AgentJob;
598
+ interface CreateCalendarEventRequest {
599
+ org_id: string;
600
+ user_id: string;
601
+ title: string;
602
+ description?: string;
603
+ location?: string;
604
+ start: string;
605
+ end: string;
606
+ is_all_day?: boolean;
607
+ attendees?: string[];
608
+ add_video_conference?: boolean;
609
+ reminders?: EventReminder[];
610
+ timezone?: string;
625
611
  }
626
612
  /**
627
- * UpdateAgentJobRequest represents a request to update an agent job
613
+ * EventReminder represents a reminder for a calendar event
628
614
  */
629
- interface UpdateAgentJobRequest {
630
- orgId: string;
631
- job?: AgentJob;
615
+ interface EventReminder {
616
+ method: string;
617
+ minutes: number;
632
618
  }
633
619
  /**
634
- * AgentJobIDRequest represents a request that only needs org + job ID
635
- * Used for: Get, Delete, Pause, Resume operations
620
+ * CreateCalendarEventResponse represents response after creating an event
636
621
  */
637
- interface AgentJobIDRequest {
638
- orgId: string;
639
- jobId: string;
622
+ interface CreateCalendarEventResponse {
623
+ event?: CalendarEvent;
624
+ metadata: any;
640
625
  }
641
626
  /**
642
- * ListAgentJobsRequest represents a request to list agent jobs
627
+ * UpdateCalendarEventRequest represents request to update an existing calendar event
643
628
  */
644
- interface ListAgentJobsRequest {
645
- orgId: string;
646
- agentId?: string;
647
- ownerId?: string;
648
- scope?: JobScope;
649
- status?: JobStatus;
650
- frequency?: JobFrequency;
651
- limit?: number;
652
- offset?: number;
629
+ interface UpdateCalendarEventRequest {
630
+ org_id: string;
631
+ user_id: string;
632
+ event_id: string;
633
+ title?: string;
634
+ description?: string;
635
+ location?: string;
636
+ start?: string;
637
+ end?: string;
638
+ is_all_day?: boolean;
639
+ attendees?: string[];
653
640
  }
654
641
  /**
655
- * AgentJobResponse represents a response containing an agent job
642
+ * UpdateCalendarEventResponse represents response after updating an event
656
643
  */
657
- interface AgentJobResponse {
658
- job?: AgentJob;
644
+ interface UpdateCalendarEventResponse {
645
+ event?: CalendarEvent;
659
646
  metadata: any;
660
647
  }
661
648
  /**
662
- * AgentJobsListResponse represents a response containing multiple agent jobs
649
+ * DeleteCalendarEventRequest represents request to delete a calendar event
663
650
  */
664
- interface AgentJobsListResponse {
665
- jobs: AgentJob[];
666
- total: number;
667
- metadata: any;
651
+ interface DeleteCalendarEventRequest {
652
+ org_id: string;
653
+ user_id: string;
654
+ event_id: string;
655
+ send_updates?: boolean;
656
+ cancel_reason?: string;
668
657
  }
669
658
  /**
670
- * AgentJobTriggerRequest represents a request from scheduler service to trigger jobs
671
- * The trigger processes ALL orgs automatically by fetching them via admin.orgs.list
659
+ * DeleteCalendarEventResponse represents response after deleting an event
672
660
  */
673
- interface AgentJobTriggerRequest {
674
- timestamp: string;
661
+ interface DeleteCalendarEventResponse {
662
+ metadata: any;
675
663
  }
676
664
  /**
677
- * AgentJobTriggerResponse represents the response for job trigger processing
665
+ * RSVPCalendarEventRequest represents request to respond to a calendar event invitation
678
666
  */
679
- interface AgentJobTriggerResponse {
680
- results: JobExecutionResult[];
681
- total: number;
682
- executed: number;
683
- skipped: number;
684
- errors: number;
685
- metadata: any;
667
+ interface RSVPCalendarEventRequest {
668
+ org_id: string;
669
+ user_id: string;
670
+ event_id: string;
671
+ response: string;
672
+ comment?: string;
686
673
  }
687
674
  /**
688
- * ListExecutionsByJobRequest represents a request to list executions for a job
675
+ * RSVPCalendarEventResponse represents response after RSVP
689
676
  */
690
- interface ListExecutionsByJobRequest {
691
- orgId: string;
692
- jobId: string;
693
- limit?: number;
694
- offset?: number;
677
+ interface RSVPCalendarEventResponse {
678
+ event?: CalendarEvent;
679
+ metadata: any;
695
680
  }
696
681
  /**
697
- * ListExecutionsByAgentRequest represents a request to list executions for an agent
682
+ * ListDriveFilesRequest represents request to list/search drive files
698
683
  */
699
- interface ListExecutionsByAgentRequest {
700
- orgId: string;
701
- agentId: string;
684
+ interface ListDriveFilesRequest {
685
+ org_id: string;
686
+ user_id: string;
687
+ query?: string;
688
+ folder_id?: string;
689
+ mime_type?: string;
702
690
  limit?: number;
703
- offset?: number;
704
691
  }
705
692
  /**
706
- * ListExecutionsResponse represents the response with executions list
693
+ * ListDriveFilesResponse represents drive files list
707
694
  */
708
- interface ListExecutionsResponse {
709
- executions: JobExecution[];
695
+ interface ListDriveFilesResponse {
696
+ files: FileSummary[];
710
697
  total: number;
711
698
  metadata: any;
712
699
  }
713
700
  /**
714
- * GetExecutionRequest represents a request to get an execution
701
+ * FileSummary represents a file summary for display in chat
715
702
  */
716
- interface GetExecutionRequest {
717
- orgId: string;
718
- executionId: string;
703
+ interface FileSummary {
704
+ id: string;
705
+ name: string;
706
+ mime_type: string;
707
+ size: number;
708
+ modified_time: string;
709
+ created_time?: string;
710
+ owner?: string;
711
+ owner_email?: string;
712
+ web_link?: string;
713
+ icon_link?: string;
714
+ thumbnail_link?: string;
715
+ is_folder: boolean;
716
+ parent_id?: string;
717
+ provider?: IntegrationProviderTS;
718
+ }
719
+ /**
720
+ * GetDriveFileRequest represents request to get file details
721
+ */
722
+ interface GetDriveFileRequest {
723
+ org_id: string;
724
+ user_id: string;
725
+ file_id: string;
719
726
  }
720
727
  /**
721
- * ExecutionResponse represents the response with a single execution
728
+ * GetDriveFileResponse represents file details response
722
729
  */
723
- interface ExecutionResponse {
724
- execution?: JobExecution;
730
+ interface GetDriveFileResponse {
731
+ file?: FileDetails;
725
732
  metadata: any;
726
733
  }
727
734
  /**
728
- * TTLCleanupRequest represents a request to run TTL cleanup
735
+ * FileDetails represents full file details for viewing
729
736
  */
730
- interface TTLCleanupRequest {
731
- retentionDays?: number;
737
+ interface FileDetails {
738
+ id: string;
739
+ name: string;
740
+ mime_type: string;
741
+ size: number;
742
+ modified_time: string;
743
+ created_time?: string;
744
+ owner?: string;
745
+ owner_email?: string;
746
+ description?: string;
747
+ web_link?: string;
748
+ download_link?: string;
749
+ icon_link?: string;
750
+ thumbnail_link?: string;
751
+ is_folder: boolean;
752
+ parent_id?: string;
753
+ parent_name?: string;
754
+ shared_with?: FilePermission[];
755
+ provider?: IntegrationProviderTS;
732
756
  }
733
757
  /**
734
- * TTLCleanupResponse represents the response from TTL cleanup
758
+ * FilePermission represents a file sharing permission
735
759
  */
736
- interface TTLCleanupResponse {
737
- totalDeleted: number;
738
- orgResults?: {
739
- [key: string]: number;
740
- };
741
- duration: string;
742
- metadata: any;
760
+ interface FilePermission {
761
+ email: string;
762
+ name?: string;
763
+ role: string;
743
764
  }
744
- type AgentTypeTS = 'chat' | 'react';
745
- type AgentSubTypeTS = 'chat' | 'react' | 'workflow' | 'document';
746
- type AgentStatusTS = 'draft' | 'active' | 'inactive' | 'archived';
747
- type SkillCategoryTS = 'productivity' | 'creative' | 'integration' | 'analysis' | 'communication' | 'custom';
748
- type IntegrationProviderTS = 'google' | 'microsoft';
749
- type IntegrationTypeTS = 'email' | 'calendar' | 'drive';
750
- type SkillCategory = string;
751
- declare const SkillCategoryProductivity: SkillCategory;
752
- declare const SkillCategoryCreative: SkillCategory;
753
- declare const SkillCategoryIntegration: SkillCategory;
754
- declare const SkillCategoryAnalysis: SkillCategory;
755
- declare const SkillCategoryCommunication: SkillCategory;
756
- declare const SkillCategoryCustom: SkillCategory;
757
- /**
758
- * IntegrationRequirement specifies an OAuth integration needed for a skill to function
759
- * Skills with integration requirements are only available to users who have connected the required provider
760
- */
761
- interface IntegrationRequirement {
762
- provider: string;
763
- type: string;
765
+ /**
766
+ * FileWithContent represents a file with its text content (for content search)
767
+ */
768
+ interface FileWithContent {
769
+ FileSummary: FileSummary;
770
+ content?: string;
771
+ content_available: boolean;
764
772
  }
765
773
  /**
766
- * Skill represents a bundled set of tools with a prompt extension
767
- * Skills can be activated at runtime to extend agent capabilities
774
+ * SetupIntegrationsRequest represents request to setup integration tables for an org
768
775
  */
769
- interface Skill {
770
- id: string;
771
- orgId?: string;
772
- name: string;
773
- title: string;
774
- description?: string;
775
- category: SkillCategoryTS;
776
- slashCommand?: string;
777
- tags?: string[];
778
- tools?: AgentTool[];
779
- systemPromptExtension?: string;
780
- iconName?: string;
781
- configSchema?: JSONSchema;
782
- config?: {
783
- [key: string]: any;
784
- };
785
- requiredIntegrations?: IntegrationRequirement[];
786
- /**
787
- * Config schemas for each level (JSON Schema definitions)
788
- */
789
- orgConfigSchema?: JSONSchema;
790
- agentConfigSchema?: JSONSchema;
791
- userConfigSchema?: JSONSchema;
792
- orgConfig?: {
793
- [key: string]: any;
794
- };
795
- enabled: boolean;
796
- isSystem?: boolean;
797
- persisted?: boolean;
798
- displayOrder?: number;
799
- createdAt?: string;
800
- updatedAt?: string;
776
+ interface SetupIntegrationsRequest {
777
+ org_id: string;
801
778
  }
802
779
  /**
803
- * AgentSkill represents an agent's configuration for a specific skill
780
+ * SetupIntegrationsResponse represents setup result
804
781
  */
805
- interface AgentSkill {
806
- skillId: string;
807
- skillName?: string;
808
- enabled: boolean;
809
- order: number;
810
- config?: {
811
- [key: string]: any;
812
- };
782
+ interface SetupIntegrationsResponse {
783
+ metadata: any;
813
784
  }
814
785
  /**
815
- * SkillUserConfig stores user-level preferences and OAuth tokens for a skill
786
+ * OAuthState represents OAuth state stored temporarily during auth flow
816
787
  */
817
- interface SkillUserConfig {
818
- id: string;
819
- userId: string;
820
- skillId: string;
821
- agentId?: string;
822
- enabled: boolean;
823
- displayOrder?: number;
824
- config?: {
825
- [key: string]: any;
826
- };
827
- createdAt: string;
828
- updatedAt: string;
788
+ interface OAuthState {
789
+ state: string;
790
+ org_id: string;
791
+ user_id: string;
792
+ provider: IntegrationProvider;
793
+ integration_type: IntegrationType;
794
+ redirect_uri: string;
795
+ created_at: string;
796
+ expires_at: string;
829
797
  }
830
- type AgentType = string;
831
- declare const AgentTypeChat: AgentType;
832
- declare const AgentTypeReact: AgentType;
833
- type AgentSubType = string;
834
798
  /**
835
- * Agent SubTypes
799
+ * User Integration CRUD (Individual Mode)
836
800
  */
837
- declare const AgentSubTypeChat: AgentSubType;
801
+ declare const HubIntegrationUserList = "hub.integrations.user.list";
802
+ declare const HubIntegrationUserGet = "hub.integrations.user.get";
803
+ declare const HubIntegrationUserConnect = "hub.integrations.user.connect";
804
+ declare const HubIntegrationUserCallback = "hub.integrations.user.callback";
805
+ declare const HubIntegrationUserDisconnect = "hub.integrations.user.disconnect";
806
+ declare const HubIntegrationUserRefresh = "hub.integrations.user.refresh";
807
+ declare const HubIntegrationUserUpdateTriage = "hub.integrations.user.triage.update";
838
808
  /**
839
- * Agent SubTypes
809
+ * Org Integration CRUD (Enterprise Mode)
840
810
  */
841
- declare const AgentSubTypeReact: AgentSubType;
811
+ declare const HubIntegrationOrgList = "hub.integrations.org.list";
812
+ declare const HubIntegrationOrgConfigure = "hub.integrations.org.configure";
813
+ declare const HubIntegrationOrgDisable = "hub.integrations.org.disable";
842
814
  /**
843
- * Agent SubTypes
815
+ * Email Operations (used by agent tools)
844
816
  */
845
- declare const AgentSubTypeWorkflow: AgentSubType;
817
+ declare const HubIntegrationEmailSearch = "hub.integrations.email.search";
818
+ declare const HubIntegrationEmailGet = "hub.integrations.email.get";
819
+ declare const HubIntegrationEmailThread = "hub.integrations.email.thread";
820
+ declare const HubIntegrationEmailSend = "hub.integrations.email.send";
821
+ declare const HubIntegrationEmailArchive = "hub.integrations.email.archive";
822
+ declare const HubIntegrationEmailMarkRead = "hub.integrations.email.markread";
823
+ declare const HubIntegrationEmailForward = "hub.integrations.email.forward";
846
824
  /**
847
- * Agent SubTypes
825
+ * Email Triage Operations
848
826
  */
849
- declare const AgentSubTypeDocument: AgentSubType;
850
- type AgentStatus = string;
851
- declare const AgentStatusDraft: AgentStatus;
852
- declare const AgentStatusActive: AgentStatus;
853
- declare const AgentStatusInactive: AgentStatus;
854
- declare const AgentStatusArchived: AgentStatus;
855
- interface DefaultDefinitions {
856
- agents: Agent[];
857
- toolDefinitions: ToolDefinition[];
858
- subAgents: SubAgent[];
859
- skills?: Skill[];
860
- }
827
+ declare const HubEmailTriageRunNow = "hub.email.triage.run";
828
+ /**
829
+ * Calendar Operations (used by agent tools)
830
+ */
831
+ declare const HubIntegrationCalendarList = "hub.integrations.calendar.list";
832
+ declare const HubIntegrationCalendarGet = "hub.integrations.calendar.get";
833
+ declare const HubIntegrationCalendarCreate = "hub.integrations.calendar.create";
834
+ declare const HubIntegrationCalendarUpdate = "hub.integrations.calendar.update";
835
+ declare const HubIntegrationCalendarDelete = "hub.integrations.calendar.delete";
836
+ declare const HubIntegrationCalendarRSVP = "hub.integrations.calendar.rsvp";
837
+ /**
838
+ * Drive Operations (used by agent tools)
839
+ */
840
+ declare const HubIntegrationDriveSearch = "hub.integrations.drive.search";
841
+ declare const HubIntegrationDriveGet = "hub.integrations.drive.get";
842
+ /**
843
+ * Setup/Provisioning
844
+ */
845
+ declare const HubIntegrationSetupOrg = "hub.integrations.setup.org";
846
+
847
+ /**
848
+ * NATS Subjects (prefixed with agents.tool.execute. to match agents service routing)
849
+ */
850
+ declare const CreateSandboxSubject = "agents.tool.execute.sandbox.create";
851
+ /**
852
+ * NATS Subjects (prefixed with agents.tool.execute. to match agents service routing)
853
+ */
854
+ declare const GetSandboxSubject = "agents.tool.execute.sandbox.get";
861
855
  /**
862
- * AgentTool represents an agent's configuration for a specific tool
863
- * Includes denormalized tool information to avoid joins at runtime
856
+ * NATS Subjects (prefixed with agents.tool.execute. to match agents service routing)
864
857
  */
865
- interface AgentTool {
866
- toolId: string;
867
- toolName: string;
858
+ declare const UpdateSandboxSubject = "agents.tool.execute.sandbox.update";
859
+ /**
860
+ * NATS Subjects (prefixed with agents.tool.execute. to match agents service routing)
861
+ */
862
+ declare const ListSandboxSubject = "agents.tool.execute.sandbox.list";
863
+ /**
864
+ * NATS Subjects (prefixed with agents.tool.execute. to match agents service routing)
865
+ */
866
+ declare const DeleteSandboxSubject = "agents.tool.execute.sandbox.delete";
867
+ /**
868
+ * Sandbox represents a stored HTML sandbox
869
+ */
870
+ interface Sandbox {
871
+ id: string;
872
+ orgId?: string;
873
+ userId?: string;
874
+ html: string;
868
875
  title?: string;
869
876
  description?: string;
870
- type?: string;
871
- inputSchema?: JSONSchema;
872
- outputSchema?: JSONSchema;
873
- configSchema?: JSONSchema;
874
- config?: {
875
- [key: string]: any;
877
+ url?: string;
878
+ metadata?: {
879
+ [key: string]: string;
876
880
  };
877
- mergeConfig?: MergeConfig;
878
- enabled: boolean;
879
- isSystem?: boolean;
880
- createdAt?: string;
881
- updatedAt?: string;
882
- order?: number;
881
+ createdAt: string;
882
+ expiresAt: string;
883
883
  }
884
884
  /**
885
- * Core agent entity - shared by both types
885
+ * CreateSandboxRequest is the request to create a new sandbox (prompt-based)
886
886
  */
887
- interface Agent {
888
- id?: string;
887
+ interface CreateSandboxRequest {
889
888
  orgId: string;
890
- product: ProductNameTS;
891
- type: AgentTypeTS;
892
- subType: AgentSubTypeTS;
893
- name: string;
894
- title: string;
889
+ userId?: string;
890
+ prompt: string;
891
+ title?: string;
895
892
  description?: string;
896
- status: AgentStatusTS;
897
- version: string;
898
- /**
899
- * === LLM CONFIG ===
900
- */
901
- provider: string;
902
- model: string;
903
- temperature: number;
904
- maxTokens: number;
905
- systemPrompt: string;
906
- goal?: string;
907
- /**
908
- * Shared metadata
909
- */
910
- tags?: string[];
911
- isDefault: boolean;
912
- isPublic: boolean;
913
- /**
914
- * === Tool and SubAgent References ===
915
- */
916
- tools?: AgentTool[];
917
- subAgentIds?: string[];
918
- /**
919
- * === Skills Configuration ===
920
- */
921
- skills?: AgentSkill[];
922
- /**
923
- * === Essential Configs ===
924
- */
925
- csatConfig: CSATConfig;
926
- handoffConfig: HandoffConfig;
927
- /**
928
- * === Widget Embed Config ===
929
- */
930
- widgetConfig?: WidgetConfig;
931
- /**
932
- * === TYPE-SPECIFIC CORE CONFIG ===
933
- */
934
- reactConfig?: ReactAgentConfig;
935
- /**
936
- * === CROSS-CUTTING FEATURES (can be used by any agent type) ===
937
- */
938
- userSuggestedActionsConfig?: UserSuggestedActionsConfig;
939
- /**
940
- * === AGENT CONTEXT CONFIG ===
941
- * Defines how AgentContext is initialized and managed for this agent
942
- */
943
- contextConfig?: AgentContextConfig;
944
- /**
945
- * === SCHEMA-DRIVEN AGENT CONFIG ===
946
- * Use ConfigSchema to auto-generate UI and validate values in Config
947
- */
948
- configSchema: JSONSchema;
949
- config?: {
950
- [key: string]: any;
951
- };
952
- /**
953
- * === UI DISPLAY CONFIG ===
954
- */
955
- iconName?: string;
956
- capabilities?: string[];
957
- samplePrompts?: string[];
958
- /**
959
- * === SHARED BEHAVIOR CONFIG ===
960
- */
961
- responseStyle?: string;
962
- personalityTraits?: string[];
963
- fallbackMessage?: string;
964
- /**
965
- * === SHARED PERFORMANCE CONFIG ===
966
- */
967
- responseDelay?: number;
968
- maxConcurrency?: number;
969
- sessionTimeout?: number;
970
- /**
971
- * Audit fields
972
- */
973
- createdAt: string;
974
- updatedAt: string;
975
- createdBy: string;
976
- updatedBy: string;
977
- metadata?: {
978
- [key: string]: any;
979
- };
893
+ libraries?: string[];
894
+ style?: string;
980
895
  }
981
896
  /**
982
- * Handoff Configuration
897
+ * CreateSandboxResponse is the response after creating a sandbox
983
898
  */
984
- interface HandoffConfig {
985
- enabled: boolean;
986
- triggerKeywords: string[];
987
- queueId?: string;
988
- handoffMessage: string;
899
+ interface CreateSandboxResponse {
900
+ sandbox?: Sandbox;
901
+ id: string;
902
+ url: string;
903
+ metadata: ResponseMetadata;
989
904
  }
990
905
  /**
991
- * WidgetConfig defines the configuration for an embeddable chat widget
906
+ * GetSandboxRequest is the request to get a sandbox
992
907
  */
993
- interface WidgetConfig {
994
- enabled: boolean;
995
- widgetId: string;
996
- appearance: WidgetAppearance;
997
- behavior: WidgetBehavior;
998
- security: WidgetSecurity;
908
+ interface GetSandboxRequest {
909
+ id: string;
999
910
  }
1000
911
  /**
1001
- * WidgetAppearance defines the visual customization of the widget
912
+ * GetSandboxResponse is the response with sandbox data
1002
913
  */
1003
- interface WidgetAppearance {
1004
- position: string;
1005
- primaryColor: string;
1006
- backgroundColor: string;
1007
- textColor: string;
1008
- borderRadius: number;
1009
- bubbleSize: number;
1010
- bubbleIconUrl?: string;
914
+ interface GetSandboxResponse {
915
+ sandbox?: Sandbox;
916
+ metadata: ResponseMetadata;
1011
917
  }
1012
918
  /**
1013
- * WidgetBehavior defines the behavioral settings of the widget
919
+ * UpdateSandboxRequest is the request to update a sandbox (prompt-based)
1014
920
  */
1015
- interface WidgetBehavior {
1016
- welcomeMessage: string;
1017
- suggestedPrompts?: string[];
1018
- autoOpenDelay: number;
1019
- showPoweredBy: boolean;
921
+ interface UpdateSandboxRequest {
922
+ id: string;
923
+ orgId: string;
924
+ userId?: string;
925
+ prompt: string;
926
+ title?: string;
1020
927
  }
1021
928
  /**
1022
- * WidgetSecurity defines the security settings for the widget
929
+ * UpdateSandboxResponse is the response after updating a sandbox
1023
930
  */
1024
- interface WidgetSecurity {
1025
- allowedDomains: string[];
931
+ interface UpdateSandboxResponse {
932
+ sandbox?: Sandbox;
933
+ id: string;
934
+ url: string;
935
+ metadata: ResponseMetadata;
1026
936
  }
1027
937
  /**
1028
- * AgentFilters for filtering agents in list operations
938
+ * ListSandboxesRequest is the request to list sandboxes
1029
939
  */
1030
- interface AgentFilters {
1031
- product?: ProductNameTS;
1032
- type?: AgentType;
1033
- subType?: AgentSubType;
1034
- status?: AgentStatus;
1035
- isDefault?: boolean;
1036
- isPublic?: boolean;
1037
- tags?: string[];
940
+ interface ListSandboxesRequest {
941
+ orgId: string;
942
+ userId?: string;
1038
943
  limit?: number;
1039
- offset?: number;
1040
944
  }
1041
945
  /**
1042
- * AgentSummary is a lightweight representation of an agent for list views
1043
- * Contains essential display fields plus metadata needed for chat initialization
946
+ * ListSandboxesResponse is the response with list of sandboxes
1044
947
  */
1045
- interface AgentSummary {
1046
- id: string;
1047
- name: string;
1048
- title: string;
1049
- description?: string;
1050
- iconName?: string;
1051
- type: AgentTypeTS;
1052
- status: AgentStatusTS;
1053
- isDefault: boolean;
1054
- isPublic: boolean;
1055
- capabilities?: string[];
1056
- samplePrompts?: string[];
1057
- skills?: AgentSkill[];
1058
- metadata?: {
1059
- [key: string]: any;
1060
- };
948
+ interface ListSandboxesResponse {
949
+ sandboxes: Sandbox[];
950
+ total: number;
951
+ metadata: ResponseMetadata;
1061
952
  }
1062
953
  /**
1063
- * ToolDefinition represents an abstract/generic tool definition that can be customized per agent
1064
- * This is the "template" that agents use to create their AgentTool configurations
954
+ * DeleteSandboxRequest is the request to delete a sandbox
1065
955
  */
1066
- interface ToolDefinition {
956
+ interface DeleteSandboxRequest {
1067
957
  id: string;
1068
- name: string;
1069
- title: string;
1070
- description: string;
1071
- type?: string;
1072
- inputSchema: JSONSchema;
1073
- outputSchema?: JSONSchema;
1074
- configSchema: JSONSchema;
1075
- config?: {
1076
- [key: string]: any;
1077
- };
1078
- mergeConfig?: MergeConfig;
1079
- enabled: boolean;
1080
- isSystem: boolean;
1081
- metadata?: {
1082
- [key: string]: any;
1083
- };
1084
- createdAt: string;
1085
- updatedAt: string;
1086
- }
1087
- /**
1088
- * ToolExecution represents the execution context for a tool
1089
- */
1090
- interface ToolExecution {
1091
- id: string;
1092
- title: string;
1093
- toolId: string;
1094
- toolName: string;
1095
- status: ToolExecutionStatusTS;
1096
- input: {
1097
- [key: string]: any;
1098
- };
1099
- result?: {
1100
- [key: string]: any;
1101
- };
1102
- error?: string;
1103
- context?: {
1104
- [key: string]: any;
1105
- };
1106
- startedAt: number;
1107
- completedAt?: number;
1108
- retryCount: number;
1109
- progress?: ToolExecutionProgress[];
1110
- }
1111
- interface ToolExecutionProgress {
1112
- status: ToolExecutionStatusTS;
1113
- timestamp: number;
1114
- message?: string;
1115
- error?: string;
1116
- metadata?: {
1117
- [key: string]: any;
1118
- };
1119
- }
1120
- /**
1121
- * ToolExecutionStatus represents the status of a tool execution
1122
- */
1123
- type ToolExecutionStatus = string;
1124
- declare const ToolExecutionStatusStarted: ToolExecutionStatus;
1125
- declare const ToolExecutionStatusExecuting: ToolExecutionStatus;
1126
- declare const ToolExecutionStatusCompleted: ToolExecutionStatus;
1127
- declare const ToolExecutionStatusFailed: ToolExecutionStatus;
1128
- declare const ToolExecutionStatusTimeout: ToolExecutionStatus;
1129
- declare const ToolExecutionStatusSkipped: ToolExecutionStatus;
1130
- /**
1131
- * SubAgent represents a sub-agent composed of tools
1132
- */
1133
- interface SubAgent {
1134
- id: string;
1135
- orgId: string;
1136
- name: string;
1137
- title: string;
1138
- description: string;
1139
- prompt: string;
1140
- toolIds: string[];
1141
- inputSchema: JSONSchema;
1142
- outputSchema: JSONSchema;
1143
- configSchema: JSONSchema;
1144
- config?: {
1145
- [key: string]: any;
1146
- };
1147
- version: string;
1148
- enabled: boolean;
1149
- isSystem: boolean;
1150
- createdAt: string;
1151
- updatedAt: string;
1152
- createdBy: string;
1153
- updatedBy: string;
1154
- }
1155
- /**
1156
- * AgentToolConfiguration represents how an agent uses tools
1157
- */
1158
- interface AgentToolConfiguration {
1159
- enabledTools: string[];
1160
- enabledSubAgents: string[];
1161
- toolConfigs: {
1162
- [key: string]: ToolConfig;
1163
- };
1164
- executionPolicy: ToolExecutionPolicy;
1165
- maxParallelCalls: number;
1166
- requireApproval: boolean;
1167
- }
1168
- /**
1169
- * ToolExecutionPolicy defines how tools are executed
1170
- */
1171
- interface ToolExecutionPolicy {
1172
- mode: ExecutionModeTS;
1173
- maxIterations: number;
1174
- stopOnError: boolean;
1175
- retryOnFailure: boolean;
1176
- timeoutSeconds: number;
1177
- }
1178
- /**
1179
- * ExecutionMode defines how tools are executed
1180
- */
1181
- type ExecutionMode = string;
1182
- declare const ExecutionModeSync: ExecutionMode;
1183
- declare const ExecutionModeAsync: ExecutionMode;
1184
- declare const ExecutionModeAsyncClient: ExecutionMode;
1185
- /**
1186
- * CreateExecutionPlanRequest represents a request to create an execution plan
1187
- */
1188
- interface CreateExecutionPlanRequest {
1189
- agentInstanceId: string;
1190
- orgId: string;
1191
- input: string;
1192
- context?: {
1193
- [key: string]: any;
1194
- };
1195
- availableTools: ToolDefinition[];
1196
- }
1197
- /**
1198
- * CreateExecutionPlanResponse represents the response with an execution plan
1199
- */
1200
- interface CreateExecutionPlanResponse {
1201
- agentInstanceId: string;
1202
- executionPlan: ToolExecution[];
1203
- estimatedTime?: any;
1204
- }
1205
- /**
1206
- * ExecutePlanRequest represents a request to execute the plan
1207
- */
1208
- interface ExecutePlanRequest {
1209
- agentInstanceId: string;
1210
- orgId: string;
1211
- approveAll?: boolean;
1212
- }
1213
- /**
1214
- * ExecutePlanResponse represents the response after executing the plan
1215
- */
1216
- interface ExecutePlanResponse {
1217
- stateId: string;
1218
- status: ToolExecutionStatusTS;
1219
- executedTools: ToolExecution[];
1220
- finalResult?: any;
1221
- errors?: string[];
1222
- }
1223
- type ToolExecutionStatusTS = 'pending' | 'executing' | 'completed' | 'failed' | 'timeout' | 'skipped';
1224
- type ExecutionModeTS = 'sync' | 'async' | 'asyncClient';
1225
- /**
1226
- * GetWidgetConfigRequest represents a request to get widget config for an agent
1227
- */
1228
- interface GetWidgetConfigRequest {
1229
- orgId: string;
1230
- agentId: string;
1231
- }
1232
- /**
1233
- * GetWidgetConfigResponse represents the response with widget config
1234
- */
1235
- interface GetWidgetConfigResponse {
1236
- config?: WidgetConfig;
1237
- metadata: any;
1238
- }
1239
- /**
1240
- * SaveWidgetConfigRequest represents a request to save widget config for an agent
1241
- */
1242
- interface SaveWidgetConfigRequest {
1243
- orgId: string;
1244
- agentId: string;
1245
- config?: WidgetConfig;
1246
- }
1247
- /**
1248
- * SaveWidgetConfigResponse represents the response after saving widget config
1249
- */
1250
- interface SaveWidgetConfigResponse {
1251
- config?: WidgetConfig;
1252
- metadata: any;
1253
- }
1254
- type JobScopeTS = 'private' | 'team' | 'org';
1255
- type JobStatusTS = 'active' | 'executing' | 'paused' | 'disabled';
1256
- type JobFrequencyTS = 'one-time' | 'schedule';
1257
- type JobExecutionStatusTS = 'running' | 'success' | 'failed' | 'timed_out';
1258
- /**
1259
- * JobScope defines who can see and use the job
1260
- */
1261
- type JobScope = string;
1262
- declare const JobScopePrivate: JobScope;
1263
- declare const JobScopeTeam: JobScope;
1264
- declare const JobScopeOrg: JobScope;
1265
- /**
1266
- * JobStatus defines the current state of a job
1267
- */
1268
- type JobStatus = string;
1269
- declare const JobStatusActive: JobStatus;
1270
- declare const JobStatusExecuting: JobStatus;
1271
- declare const JobStatusPaused: JobStatus;
1272
- declare const JobStatusDisabled: JobStatus;
1273
- /**
1274
- * JobFrequency defines whether a job runs once or on a schedule
1275
- */
1276
- type JobFrequency = string;
1277
- declare const JobFrequencyOneTime: JobFrequency;
1278
- declare const JobFrequencySchedule: JobFrequency;
1279
- /**
1280
- * AgentJob represents a scheduled or one-time execution configuration for an agent
1281
- */
1282
- interface AgentJob {
1283
- id: string;
1284
- agentId: string;
1285
- ownerId: string;
1286
- ownerEmail?: string;
1287
- teamId?: string;
1288
- /**
1289
- * Job identity
1290
- */
1291
- name: string;
1292
- description?: string;
1293
- /**
1294
- * Scope determines who can see/manage and execution context
1295
- */
1296
- scope: JobScopeTS;
1297
- /**
1298
- * Job configuration
1299
- */
1300
- frequency: JobFrequencyTS;
1301
- cron?: string;
1302
- timezone?: string;
1303
- prompt: string;
1304
- /**
1305
- * Status
1306
- */
1307
- status: JobStatusTS;
1308
- /**
1309
- * Tracking fields (managed by system)
1310
- */
1311
- lastRunAt?: string;
1312
- nextRunAt?: string;
1313
- runCount: number;
1314
- lastError?: string;
1315
- /**
1316
- * Circuit breaker fields
1317
- */
1318
- consecutiveFailures: number;
1319
- disabledUntil?: string;
1320
- /**
1321
- * Execution tracking (updated by Runtime Service)
1322
- */
1323
- lastExecutionId?: string;
1324
- lastExecutionStatus?: string;
1325
- lastExecutedAt?: string;
1326
- /**
1327
- * Audit fields
1328
- */
1329
- createdAt: string;
1330
- updatedAt: string;
1331
- }
1332
- /**
1333
- * JobExecutionStatus defines the status of a job execution
1334
- */
1335
- type JobExecutionStatus = string;
1336
- declare const JobExecutionStatusRunning: JobExecutionStatus;
1337
- declare const JobExecutionStatusSuccess: JobExecutionStatus;
1338
- declare const JobExecutionStatusFailed: JobExecutionStatus;
1339
- declare const JobExecutionStatusTimedOut: JobExecutionStatus;
1340
- /**
1341
- * ArtifactRef represents a reference to an artifact produced during execution
1342
- * Actual files are stored by tools; this just tracks references
1343
- */
1344
- interface ArtifactRef {
1345
- type: string;
1346
- name: string;
1347
- path?: string;
1348
- size?: number;
1349
- content?: string;
1350
958
  }
1351
959
  /**
1352
- * JobExecution represents a single execution of an agent job
960
+ * DeleteSandboxResponse is the response after deleting a sandbox
1353
961
  */
1354
- interface JobExecution {
1355
- id: string;
1356
- jobId: string;
1357
- agentId: string;
1358
- /**
1359
- * Execution status
1360
- */
1361
- status: JobExecutionStatusTS;
1362
- startedAt: string;
1363
- completedAt?: string;
1364
- /**
1365
- * Execution metrics
1366
- */
1367
- roundsExecuted: number;
1368
- totalTokens: number;
1369
- /**
1370
- * Results
1371
- */
1372
- result?: any;
1373
- error?: string;
1374
- artifacts?: ArtifactRef[];
1375
- metadata?: any;
1376
- /**
1377
- * Audit
1378
- */
1379
- createdAt: string;
1380
- }
1381
- /**
1382
- * JobExecutionResult represents the result of processing a single agent job
1383
- */
1384
- interface JobExecutionResult {
1385
- jobId: string;
1386
- agentId: string;
1387
- jobName: string;
1388
- executed: boolean;
1389
- error?: string;
1390
- }
1391
- /**
1392
- * ProcessJobTriggerResult represents the result of processing all agent jobs
1393
- */
1394
- interface ProcessJobTriggerResult {
1395
- results: JobExecutionResult[];
1396
- total: number;
1397
- executed: number;
1398
- skipped: number;
1399
- errors: number;
1400
- }
1401
- /**
1402
- * ExecuteJobRequest is sent to Runtime Service to execute a job
1403
- */
1404
- interface ExecuteJobRequest {
1405
- /**
1406
- * Execution identification (created by Agents Service before dispatch)
1407
- */
1408
- executionId: string;
1409
- /**
1410
- * Job identification
1411
- */
1412
- jobId: string;
1413
- agentId: string;
1414
- orgId: string;
1415
- /**
1416
- * Execution context
1417
- */
1418
- prompt: string;
1419
- scope: JobScopeTS;
1420
- ownerId: string;
1421
- ownerEmail?: string;
1422
- /**
1423
- * Agent configuration (denormalized for Runtime)
1424
- */
1425
- agent: Agent;
1426
- /**
1427
- * Execution settings
1428
- */
1429
- timeoutMinutes?: number;
1430
- metadata?: {
1431
- [key: string]: any;
1432
- };
1433
- }
1434
- /**
1435
- * ExecutionCompletedEvent is received from Runtime Service when execution completes
1436
- */
1437
- interface ExecutionCompletedEvent {
1438
- /**
1439
- * Identification
1440
- */
1441
- executionId: string;
1442
- jobId: string;
1443
- orgId: string;
1444
- /**
1445
- * Status: "success", "failed", "timed_out"
1446
- */
1447
- status: string;
1448
- /**
1449
- * Results (present on success)
1450
- */
1451
- result?: any;
1452
- artifacts?: ArtifactRef[];
1453
- /**
1454
- * Error info (present on failure)
1455
- */
1456
- error?: string;
1457
- /**
1458
- * Metrics
1459
- */
1460
- roundsExecuted: number;
1461
- totalTokens: number;
1462
- /**
1463
- * Timing
1464
- */
1465
- completedAt: string;
1466
- /**
1467
- * Additional context
1468
- */
1469
- metadata?: {
1470
- [key: string]: any;
1471
- };
1472
- }
1473
- /**
1474
- * CSAT Configuration
1475
- */
1476
- interface CSATConfig {
1477
- enabled: boolean;
1478
- survey?: CSATSurvey;
1479
- }
1480
- interface CSATQuestion {
1481
- question: {
1482
- [key: string]: string;
1483
- };
1484
- showRating: boolean;
1485
- showComment: boolean;
1486
- }
1487
- interface CSATSurvey {
1488
- questions: CSATQuestion[];
1489
- timeThreshold: number;
1490
- closeOnResponse: boolean;
1491
- }
1492
- interface CSATAnswer {
1493
- question: string;
1494
- lang?: string;
1495
- rating?: number;
1496
- comment?: string;
1497
- }
1498
- interface CSATResponse {
1499
- answers: CSATAnswer[];
1500
- submittedAt: number;
1501
- overallRating: number;
1502
- }
1503
- /**
1504
- * ReAct Agent Configuration
1505
- */
1506
- interface ReactAgentConfig {
1507
- /**
1508
- * Core ReAct Configuration
1509
- */
1510
- maxIterations: number;
1511
- reasoningPrompt: string;
1512
- stopConditions: string[];
1513
- availableTools: string[];
1514
- requireConfirmation: boolean;
1515
- /**
1516
- * LLM Configuration
1517
- */
1518
- model: string;
1519
- temperature: number;
1520
- maxTokens: number;
1521
- provider: string;
1522
- /**
1523
- * Context Management
1524
- */
1525
- maxContextLength: number;
1526
- memoryRetention: number;
1527
- compressionStrategy: string;
1528
- /**
1529
- * Tool Configuration
1530
- */
1531
- toolConfigs?: {
1532
- [key: string]: ToolConfig;
1533
- };
1534
- mcpServers?: MCPServerConfig[];
1535
- /**
1536
- * Execution Configuration
1537
- */
1538
- timeoutMinutes: number;
1539
- retryAttempts: number;
1540
- parallelExecution: boolean;
1541
- /**
1542
- * Safety Configuration
1543
- */
1544
- dangerousOperations?: string[];
1545
- allowedFileTypes?: string[];
1546
- restrictedPaths?: string[];
1547
- }
1548
- interface ToolConfig {
1549
- enabled: boolean;
1550
- timeoutSeconds: number;
1551
- retryPolicy: RetryPolicy;
1552
- configuration?: {
1553
- [key: string]: any;
1554
- };
1555
- }
1556
- interface RetryPolicy {
1557
- maxAttempts: number;
1558
- backoffStrategy: string;
1559
- backoffDelay: any;
1560
- }
1561
- interface MCPServerConfig {
1562
- name: string;
1563
- endpoint: string;
1564
- trusted: boolean;
1565
- timeout: number;
1566
- credentials?: {
1567
- [key: string]: string;
1568
- };
1569
- }
1570
- interface CreateAgentRequest {
1571
- agent?: Agent;
1572
- orgId: string;
1573
- }
1574
- interface AgentResponse {
1575
- agent?: Agent;
1576
- metadata: any;
1577
- }
1578
- interface GetAgentRequest {
1579
- id?: string;
1580
- name?: string;
1581
- orgId: string;
1582
- }
1583
- interface UpdateAgentRequest {
1584
- agent: Agent;
1585
- orgId: string;
1586
- }
1587
- interface DeleteAgentRequest {
1588
- id: string;
1589
- orgId: string;
1590
- }
1591
- interface ListAgentsRequest {
1592
- orgId: string;
1593
- filters?: AgentFilters;
1594
- }
1595
- interface ListAgentsResponse {
1596
- agents: Agent[];
1597
- metadata: any;
1598
- }
1599
- /**
1600
- * ListAgentsSummaryRequest requests a lightweight list of agents
1601
- */
1602
- interface ListAgentsSummaryRequest {
1603
- orgId: string;
1604
- filters?: AgentFilters;
1605
- }
1606
- /**
1607
- * ListAgentsSummaryResponse returns lightweight agent summaries for list views
1608
- */
1609
- interface ListAgentsSummaryResponse {
1610
- agents: AgentSummary[];
1611
- metadata: any;
1612
- }
1613
- interface GetDefaultAgentRequest {
1614
- orgId: string;
1615
- agentType: AgentType;
1616
- }
1617
- interface UpdateOrgAgentsRequest {
1618
- orgId: string;
1619
- defaultDefinitions?: DefaultDefinitions;
1620
- }
1621
- interface UpdateOrgAgentsResponse {
1622
- toolsCreated: number;
1623
- subAgentsCreated: number;
1624
- agentsCreated: number;
1625
- skillsCreated: number;
962
+ interface DeleteSandboxResponse {
963
+ success: boolean;
1626
964
  metadata: ResponseMetadata;
1627
965
  }
1628
966
  /**
1629
- * Core Agent Operations
1630
- */
1631
- declare const AgentCreateSubject = "agent.create";
1632
- /**
1633
- * Core Agent Operations
1634
- */
1635
- declare const AgentCreatedSubject = "agent.created";
1636
- /**
1637
- * Core Agent Operations
1638
- */
1639
- declare const AgentGetSubject = "agent.get";
1640
- /**
1641
- * Core Agent Operations
1642
- */
1643
- declare const AgentUpdateSubject = "agent.update";
1644
- /**
1645
- * Core Agent Operations
1646
- */
1647
- declare const AgentUpdatedSubject = "agent.updated";
1648
- /**
1649
- * Core Agent Operations
1650
- */
1651
- declare const AgentDeleteSubject = "agent.delete";
1652
- /**
1653
- * Core Agent Operations
1654
- */
1655
- declare const AgentDeletedSubject = "agent.deleted";
1656
- /**
1657
- * Core Agent Operations
1658
- */
1659
- declare const AgentListSubject = "agent.list";
1660
- /**
1661
- * Core Agent Operations
1662
- */
1663
- declare const AgentListSummarySubject = "agent.list.summary";
1664
- /**
1665
- * Core Agent Operations
1666
- */
1667
- declare const AgentSearchSubject = "agent.search";
1668
- /**
1669
- * Agent Type Specific Operations
1670
- */
1671
- declare const AgentChatCreateSubject = "agent.chat.create";
1672
- /**
1673
- * Agent Type Specific Operations
1674
- */
1675
- declare const AgentChatUpdateSubject = "agent.chat.update";
1676
- /**
1677
- * Agent Type Specific Operations
1678
- */
1679
- declare const AgentChatGetSubject = "agent.chat.get";
1680
- /**
1681
- * Agent Type Specific Operations
1682
- */
1683
- declare const AgentChatValidateSubject = "agent.chat.validate";
1684
- /**
1685
- * Agent Type Specific Operations
1686
- */
1687
- declare const AgentReactCreateSubject = "agent.react.create";
1688
- /**
1689
- * Agent Type Specific Operations
1690
- */
1691
- declare const AgentReactUpdateSubject = "agent.react.update";
1692
- /**
1693
- * Agent Type Specific Operations
1694
- */
1695
- declare const AgentReactGetSubject = "agent.react.get";
1696
- /**
1697
- * Agent Type Specific Operations
1698
- */
1699
- declare const AgentReactValidateSubject = "agent.react.validate";
1700
- /**
1701
- * Execution Coordination
1702
- */
1703
- declare const AgentExecuteSubject = "agent.execute";
1704
- /**
1705
- * Execution Coordination
1706
- */
1707
- declare const AgentExecuteStatusSubject = "agent.execute.status";
1708
- /**
1709
- * Execution Coordination
1710
- */
1711
- declare const AgentExecuteStopSubject = "agent.execute.stop";
1712
- /**
1713
- * Version Management
1714
- */
1715
- declare const AgentVersionCreateSubject = "agent.version.create";
1716
- /**
1717
- * Version Management
1718
- */
1719
- declare const AgentVersionCreatedSubject = "agent.version.created";
1720
- /**
1721
- * Version Management
1722
- */
1723
- declare const AgentVersionGetSubject = "agent.version.get";
1724
- /**
1725
- * Version Management
1726
- */
1727
- declare const AgentVersionListSubject = "agent.version.list";
1728
- /**
1729
- * Version Management
1730
- */
1731
- declare const AgentVersionActivateSubject = "agent.version.activate";
1732
- /**
1733
- * Version Management
1734
- */
1735
- declare const AgentVersionActivatedSubject = "agent.version.activated";
1736
- /**
1737
- * Default Agent Management
1738
- */
1739
- declare const AgentEnsureDefaultSubject = "agent.ensure-default";
1740
- /**
1741
- * Default Agent Management
1742
- */
1743
- declare const AgentGetDefaultSubject = "agent.get-default";
1744
- /**
1745
- * Organization Management
1746
- */
1747
- declare const AgentGetByOrgSubject = "agent.get-by-org";
1748
- /**
1749
- * Organization Management
1750
- */
1751
- declare const AgentCloneSubject = "agent.clone";
1752
- /**
1753
- * Organization Management
1754
- */
1755
- declare const AgentExportSubject = "agent.export";
1756
- /**
1757
- * Organization Management
1758
- */
1759
- declare const AgentImportSubject = "agent.import";
1760
- /**
1761
- * Organization Management
1762
- */
1763
- declare const AgentUpdateOrgSubject = "agent.update-org-agents";
1764
- /**
1765
- * Configuration Templates
1766
- */
1767
- declare const AgentTemplateListSubject = "agent.template.list";
1768
- /**
1769
- * Configuration Templates
1770
- */
1771
- declare const AgentTemplateGetSubject = "agent.template.get";
1772
- /**
1773
- * Configuration Templates
1774
- */
1775
- declare const AgentFromTemplateSubject = "agent.from-template";
1776
- /**
1777
- * Chat Service Integration
1778
- */
1779
- declare const ChatAgentExecuteSubject = "chat.agent.execute";
1780
- /**
1781
- * Execution Service Integration
1782
- */
1783
- declare const ChatAgentStatusSubject = "chat.agent.status";
1784
- /**
1785
- * ReAct Service Integration
1786
- */
1787
- declare const ReactAgentExecuteSubject = "react.agent.execute";
1788
- /**
1789
- * Execution Service Integration
1790
- */
1791
- declare const ReactAgentStatusSubject = "react.agent.status";
1792
- /**
1793
- * Execution Service Integration
1794
- */
1795
- declare const ReactAgentStopSubject = "react.agent.stop";
1796
- /**
1797
- * Workflow Service Integration
1798
- */
1799
- declare const WorkflowAgentGetSubject = "workflow.agent.get";
1800
- /**
1801
- * Execution Service Integration
1802
- */
1803
- declare const WorkflowAgentUpdateSubject = "workflow.agent.update";
1804
- /**
1805
- * ToolDefinitions Management
1806
- */
1807
- declare const ToolDefinitionsCreateSubject = "agents.tool-definitions.create";
1808
- /**
1809
- * ToolDefinitions Management
1810
- */
1811
- declare const ToolDefinitionsCreatedSubject = "agents.tool-definitions.created";
1812
- /**
1813
- * ToolDefinitions Management
1814
- */
1815
- declare const ToolDefinitionsGetSubject = "agents.tool-definitions.get";
1816
- /**
1817
- * ToolDefinitions Management
1818
- */
1819
- declare const ToolDefinitionsUpdateSubject = "agents.tool-definitions.update";
1820
- /**
1821
- * ToolDefinitions Management
1822
- */
1823
- declare const ToolDefinitionsUpdatedSubject = "agents.tool-definitions.updated";
1824
- /**
1825
- * ToolDefinitions Management
1826
- */
1827
- declare const ToolDefinitionsDeleteSubject = "agents.tool-definitions.delete";
1828
- /**
1829
- * ToolDefinitions Management
1830
- */
1831
- declare const ToolDefinitionsDeletedSubject = "agents.tool-definitions.deleted";
1832
- /**
1833
- * ToolDefinitions Management
1834
- */
1835
- declare const ToolDefinitionsListSubject = "agents.tool-definitions.list";
1836
- /**
1837
- * ToolDefinitions Management
1838
- */
1839
- declare const ToolDefinitionsGetByIDsSubject = "agents.tool-definitions.get-by-ids";
1840
- /**
1841
- * ToolDefinitions Management
1842
- */
1843
- declare const ToolDefinitionsExecuteSubject = "agents.tool-definitions.execute";
1844
- /**
1845
- * ToolDefinitions Management
1846
- */
1847
- declare const ToolDefinitionsValidateSubject = "agents.tool-definitions.validate";
1848
- /**
1849
- * SubAgents Management
1850
- */
1851
- declare const SubAgentsCreateSubject = "agents.subagents.create";
1852
- /**
1853
- * SubAgents Management
1854
- */
1855
- declare const SubAgentsCreatedSubject = "agents.subagents.created";
1856
- /**
1857
- * SubAgents Management
1858
- */
1859
- declare const SubAgentsGetSubject = "agents.subagents.get";
1860
- /**
1861
- * SubAgents Management
1862
- */
1863
- declare const SubAgentsUpdateSubject = "agents.subagents.update";
1864
- /**
1865
- * SubAgents Management
1866
- */
1867
- declare const SubAgentsUpdatedSubject = "agents.subagents.updated";
1868
- /**
1869
- * SubAgents Management
1870
- */
1871
- declare const SubAgentsDeleteSubject = "agents.subagents.delete";
1872
- /**
1873
- * SubAgents Management
1874
- */
1875
- declare const SubAgentsDeletedSubject = "agents.subagents.deleted";
1876
- /**
1877
- * SubAgents Management
1878
- */
1879
- declare const SubAgentsListSubject = "agents.subagents.list";
1880
- /**
1881
- * SubAgents Management
1882
- */
1883
- declare const SubAgentsGetByIDsSubject = "agents.subagents.get-by-ids";
1884
- /**
1885
- * SubAgents Management
1886
- */
1887
- declare const SubAgentsExecuteSubject = "agents.subagents.execute";
1888
- /**
1889
- * SubAgents Management
1890
- */
1891
- declare const SubAgentsValidateSubject = "agents.subagents.validate";
1892
- /**
1893
- * Skills Management
1894
- */
1895
- declare const SkillsCreateSubject = "agents.skills.create";
1896
- /**
1897
- * Skills Management
1898
- */
1899
- declare const SkillsCreatedSubject = "agents.skills.created";
1900
- /**
1901
- * Skills Management
1902
- */
1903
- declare const SkillsGetSubject = "agents.skills.get";
1904
- /**
1905
- * Skills Management
1906
- */
1907
- declare const SkillsUpdateSubject = "agents.skills.update";
1908
- /**
1909
- * Skills Management
1910
- */
1911
- declare const SkillsUpdatedSubject = "agents.skills.updated";
1912
- /**
1913
- * Skills Management
1914
- */
1915
- declare const SkillsDeleteSubject = "agents.skills.delete";
1916
- /**
1917
- * Skills Management
1918
- */
1919
- declare const SkillsDeletedSubject = "agents.skills.deleted";
1920
- /**
1921
- * Skills Management
1922
- */
1923
- declare const SkillsListSubject = "agents.skills.list";
1924
- /**
1925
- * Skills Management
1926
- */
1927
- declare const SkillsGetByIDsSubject = "agents.skills.get-by-ids";
1928
- /**
1929
- * Skill Org Config
1930
- */
1931
- declare const SkillsUpdateOrgConfigSubject = "agents.skills.update-org-config";
1932
- /**
1933
- * Agent Skill Config
1934
- */
1935
- declare const AgentSkillUpdateConfigSubject = "agents.skills.agent.update-config";
1936
- /**
1937
- * Skills Management
1938
- */
1939
- declare const AgentSkillGetConfigSubject = "agents.skills.agent.get-config";
1940
- /**
1941
- * Skill User Config Management
1942
- */
1943
- declare const SkillUserConfigGetSubject = "agents.skills.user-config.get";
1944
- /**
1945
- * Skill User Config Management
1946
- */
1947
- declare const SkillUserConfigUpdateSubject = "agents.skills.user-config.update";
1948
- /**
1949
- * Skill User Config Management
1950
- */
1951
- declare const SkillUserConfigDeleteSubject = "agents.skills.user-config.delete";
1952
- /**
1953
- * Skill User Config Management
1954
- */
1955
- declare const SkillUserConfigListSubject = "agents.skills.user-config.list";
1956
- /**
1957
- * Config Resolution (merges org + agent + user config)
1958
- */
1959
- declare const SkillResolveConfigSubject = "agents.skills.resolve-config";
1960
- /**
1961
- * Widget Config Management
1962
- */
1963
- declare const WidgetConfigGetByAgentSubject = "widgets.config.get.by.agent";
1964
- /**
1965
- * Widget Config Management
1966
- */
1967
- declare const WidgetConfigSaveSubject = "widgets.config.save";
1968
- /**
1969
- * Job CRUD Operations
1970
- */
1971
- declare const AgentJobCreateSubject = "agents.jobs.create";
1972
- /**
1973
- * Agent Job Management
1974
- */
1975
- declare const AgentJobGetSubject = "agents.jobs.get";
1976
- /**
1977
- * Agent Job Management
1978
- */
1979
- declare const AgentJobUpdateSubject = "agents.jobs.update";
1980
- /**
1981
- * Agent Job Management
1982
- */
1983
- declare const AgentJobDeleteSubject = "agents.jobs.delete";
1984
- /**
1985
- * Agent Job Management
1986
- */
1987
- declare const AgentJobListSubject = "agents.jobs.list";
1988
- /**
1989
- * Job Actions
1990
- */
1991
- declare const AgentJobPauseSubject = "agents.jobs.pause";
1992
- /**
1993
- * Agent Job Management
1994
- */
1995
- declare const AgentJobResumeSubject = "agents.jobs.resume";
1996
- /**
1997
- * Job Trigger (from Scheduler Service)
1998
- */
1999
- declare const AgentJobTriggerSubject = "agents.job.trigger";
2000
- /**
2001
- * Execution Query Operations
2002
- */
2003
- declare const JobExecutionGetSubject = "agents.executions.get";
2004
- /**
2005
- * Job Execution Management
2006
- */
2007
- declare const JobExecutionListSubject = "agents.executions.list";
2008
- /**
2009
- * Runtime Service Communication
2010
- */
2011
- declare const RuntimeJobExecuteSubject = "runtime.job.execute";
2012
- /**
2013
- * Job Execution Management
2014
- */
2015
- declare const RuntimeJobCompletedSubject = "runtime.job.completed";
2016
- /**
2017
- * TTL Cleanup (triggered by Scheduler)
2018
- */
2019
- declare const ExecutionsTTLCleanupSubject = "maintenance.executions.cleanup";
2020
- /**
2021
- * Agent Instance Management
2022
- */
2023
- declare const AgentInstanceCreateSubject = "agents.instance.create";
2024
- /**
2025
- * Agent Instance Management
2026
- */
2027
- declare const AgentInstanceCreatedSubject = "agents.instance.created";
2028
- /**
2029
- * Agent Instance Management
2030
- */
2031
- declare const AgentInstanceGetSubject = "agents.instance.get";
2032
- /**
2033
- * Agent Instance Management
2034
- */
2035
- declare const AgentInstanceUpdateSubject = "agents.instance.update";
2036
- /**
2037
- * Agent Instance Management
2038
- */
2039
- declare const AgentInstanceUpdatedSubject = "agents.instance.updated";
2040
- /**
2041
- * Agent Instance Management
2042
- */
2043
- declare const AgentInstanceListSubject = "agents.instance.list";
2044
- /**
2045
- * Agent Instance Management
2046
- */
2047
- declare const AgentInstanceDeleteSubject = "agents.instance.delete";
2048
- /**
2049
- * Agent Instance Management
2050
- */
2051
- declare const AgentInstanceDeletedSubject = "agents.instance.deleted";
2052
- /**
2053
- * Execution Plan Operations
2054
- */
2055
- declare const AgentInstanceCreatePlanSubject = "agents.instance.create-plan";
2056
- /**
2057
- * Agent Instance Management
2058
- */
2059
- declare const AgentInstanceExecutePlanSubject = "agents.instance.execute-plan";
2060
- /**
2061
- * Agent Instance Management
2062
- */
2063
- declare const AgentInstancePausePlanSubject = "agents.instance.pause-plan";
2064
- /**
2065
- * Agent Instance Management
2066
- */
2067
- declare const AgentInstanceResumePlanSubject = "agents.instance.resume-plan";
2068
- /**
2069
- * Agent Instance Management
2070
- */
2071
- declare const AgentInstanceCancelPlanSubject = "agents.instance.cancel-plan";
2072
- /**
2073
- * Execution History
2074
- */
2075
- declare const AgentInstanceGetHistorySubject = "agents.instance.get-history";
2076
- /**
2077
- * Agent Instance Management
2078
- */
2079
- declare const AgentInstanceClearHistorySubject = "agents.instance.clear-history";
2080
- /**
2081
- * Config and request models for product service integration
2082
- */
2083
- interface UserSuggestedActionsConfig {
2084
- enabled: boolean;
2085
- actionTypes: string[];
2086
- maxActions: number;
2087
- cooldownSeconds: number;
2088
- }
2089
- interface UserSuggestedAction {
2090
- title: string;
2091
- actionType: string;
2092
- input?: string;
2093
- priority?: number;
2094
- metadata?: {
2095
- [key: string]: any;
2096
- };
2097
- }
2098
- interface UserSuggestedActionsRequest {
2099
- orgId: string;
2100
- chatKey: string;
2101
- config: UserSuggestedActionsConfig;
2102
- metadata?: {
2103
- [key: string]: any;
2104
- };
2105
- }
2106
- interface UserSuggestedActionsResponse {
2107
- actions: UserSuggestedAction[];
2108
- metadata: any;
2109
- }
2110
- /**
2111
- * ValidationError represents a validation error with field and message
2112
- */
2113
- interface ValidationError {
2114
- field: string;
2115
- message: string;
2116
- }
2117
- /**
2118
- * ValidationErrors represents a collection of validation errors
2119
- */
2120
- type ValidationErrors = ValidationError[];
2121
- /**
2122
- * AgentWidget represents a widget configuration for an agent
967
+ * ValidationResult holds the result of HTML validation
2123
968
  */
2124
- interface AgentWidget {
2125
- id: string;
2126
- agentId: string;
2127
- orgId: string;
2128
- widgetId: string;
2129
- name: string;
2130
- title: string;
2131
- description?: string;
2132
- enabled: boolean;
2133
- isDefault: boolean;
2134
- appearance: WidgetAppearance;
2135
- behavior: WidgetBehavior;
2136
- security: WidgetSecurity;
2137
- createdAt: string;
2138
- updatedAt: string;
2139
- createdBy?: string;
2140
- }
2141
- /**
2142
- * AgentWidget NATS Subjects
2143
- */
2144
- declare const AgentWidgetsCreateSubject = "agents.widgets.create";
2145
- /**
2146
- * AgentWidget NATS Subjects
2147
- */
2148
- declare const AgentWidgetsGetSubject = "agents.widgets.get";
2149
- /**
2150
- * AgentWidget NATS Subjects
2151
- */
2152
- declare const AgentWidgetsGetByWidgetID = "agents.widgets.get-by-widget-id";
2153
- /**
2154
- * AgentWidget NATS Subjects
2155
- */
2156
- declare const AgentWidgetsUpdateSubject = "agents.widgets.update";
2157
- /**
2158
- * AgentWidget NATS Subjects
2159
- */
2160
- declare const AgentWidgetsDeleteSubject = "agents.widgets.delete";
2161
- /**
2162
- * AgentWidget NATS Subjects
2163
- */
2164
- declare const AgentWidgetsListSubject = "agents.widgets.list";
2165
- /**
2166
- * AgentWidget NATS Subjects
2167
- */
2168
- declare const AgentWidgetsSetDefaultSubject = "agents.widgets.set-default";
2169
- /**
2170
- * AgentWidget NATS Subjects
2171
- */
2172
- declare const AgentWidgetsGetDefaultSubject = "agents.widgets.get-default";
2173
- /**
2174
- * CreateAgentWidgetRequest is the request to create a new widget
2175
- */
2176
- interface CreateAgentWidgetRequest {
2177
- orgId: string;
2178
- agentId: string;
2179
- widget: AgentWidget;
2180
- }
2181
- /**
2182
- * AgentWidgetResponse is the response for single widget operations
2183
- */
2184
- interface AgentWidgetResponse {
2185
- widget?: AgentWidget;
2186
- metadata: any;
2187
- }
2188
- /**
2189
- * GetAgentWidgetRequest is the request to get a widget by ID
2190
- */
2191
- interface GetAgentWidgetRequest {
2192
- orgId: string;
2193
- widgetId: string;
2194
- }
2195
- /**
2196
- * GetWidgetByWidgetIDRequest is the request to get a widget by its embed widget_id
2197
- */
2198
- interface GetWidgetByWidgetIDRequest {
2199
- widgetId: string;
2200
- }
2201
- /**
2202
- * UpdateAgentWidgetRequest is the request to update a widget
2203
- */
2204
- interface UpdateAgentWidgetRequest {
2205
- orgId: string;
2206
- widget: AgentWidget;
2207
- }
2208
- /**
2209
- * DeleteAgentWidgetRequest is the request to delete a widget
2210
- */
2211
- interface DeleteAgentWidgetRequest {
2212
- orgId: string;
2213
- widgetId: string;
2214
- }
2215
- /**
2216
- * ListAgentWidgetsRequest is the request to list widgets for an agent
2217
- */
2218
- interface ListAgentWidgetsRequest {
2219
- orgId: string;
2220
- agentId: string;
2221
- }
2222
- /**
2223
- * ListAgentWidgetsResponse is the response for listing widgets
2224
- */
2225
- interface ListAgentWidgetsResponse {
2226
- widgets: AgentWidget[];
2227
- metadata: any;
2228
- }
2229
- /**
2230
- * SetDefaultWidgetRequest is the request to set a widget as default
2231
- */
2232
- interface SetDefaultWidgetRequest {
2233
- orgId: string;
2234
- agentId: string;
2235
- widgetId: string;
2236
- }
2237
- /**
2238
- * GetDefaultWidgetRequest is the request to get the default widget for an agent
2239
- */
2240
- interface GetDefaultWidgetRequest {
2241
- orgId: string;
2242
- agentId: string;
2243
- }
2244
- /**
2245
- * PublicWidgetConfig is the config exposed to the widget client (no sensitive data)
2246
- */
2247
- interface PublicWidgetConfig {
2248
- widgetId: string;
2249
- agentId: string;
2250
- orgId: string;
2251
- name: string;
2252
- title: string;
2253
- appearance: WidgetAppearance;
2254
- behavior: WidgetBehavior;
969
+ interface ValidationResult {
970
+ valid: boolean;
971
+ errors?: string[];
972
+ warnings?: string[];
2255
973
  }
2256
974
 
2257
- export { type Agent, AgentChatCreateSubject, AgentChatGetSubject, AgentChatUpdateSubject, AgentChatValidateSubject, AgentCloneSubject, type AgentContext, type AgentContextConfig, AgentCreateSubject, AgentCreatedSubject, AgentDeleteSubject, AgentDeletedSubject, AgentEnsureDefaultSubject, AgentExecuteStatusSubject, AgentExecuteStopSubject, AgentExecuteSubject, type AgentExecution, AgentExportSubject, type AgentFilters, AgentFromTemplateSubject, AgentGetByOrgSubject, AgentGetDefaultSubject, AgentGetSubject, AgentImportSubject, AgentInstanceCancelPlanSubject, AgentInstanceClearHistorySubject, AgentInstanceCreatePlanSubject, AgentInstanceCreateSubject, AgentInstanceCreatedSubject, AgentInstanceDeleteSubject, AgentInstanceDeletedSubject, AgentInstanceExecutePlanSubject, AgentInstanceGetHistorySubject, AgentInstanceGetSubject, AgentInstanceListSubject, AgentInstancePausePlanSubject, AgentInstanceResumePlanSubject, AgentInstanceUpdateSubject, AgentInstanceUpdatedSubject, type AgentJob, AgentJobCreateSubject, AgentJobDeleteSubject, AgentJobGetSubject, type AgentJobIDRequest, AgentJobListSubject, AgentJobPauseSubject, type AgentJobResponse, AgentJobResumeSubject, type AgentJobTriggerRequest, type AgentJobTriggerResponse, AgentJobTriggerSubject, AgentJobUpdateSubject, type AgentJobsListResponse, AgentListSubject, AgentListSummarySubject, AgentReactCreateSubject, AgentReactGetSubject, AgentReactUpdateSubject, AgentReactValidateSubject, type AgentResponse, AgentSearchSubject, type AgentSkill, type AgentSkillConfigResponse, AgentSkillGetConfigSubject, AgentSkillUpdateConfigSubject, type AgentStatus, AgentStatusActive, AgentStatusArchived, AgentStatusDraft, AgentStatusInactive, type AgentStatusTS, type AgentSubType, AgentSubTypeChat, AgentSubTypeDocument, AgentSubTypeReact, type AgentSubTypeTS, AgentSubTypeWorkflow, type AgentSummary, AgentTemplateGetSubject, AgentTemplateListSubject, type AgentTool, type AgentToolConfiguration, type AgentType, AgentTypeChat, AgentTypeReact, type AgentTypeTS, AgentUpdateOrgSubject, AgentUpdateSubject, AgentUpdatedSubject, AgentVersionActivateSubject, AgentVersionActivatedSubject, AgentVersionCreateSubject, AgentVersionCreatedSubject, AgentVersionGetSubject, AgentVersionListSubject, type AgentWidget, type AgentWidgetResponse, AgentWidgetsCreateSubject, AgentWidgetsDeleteSubject, AgentWidgetsGetByWidgetID, AgentWidgetsGetDefaultSubject, AgentWidgetsGetSubject, AgentWidgetsListSubject, AgentWidgetsSetDefaultSubject, AgentWidgetsUpdateSubject, type ArtifactRef, type CSATAnswer, type CSATConfig, type CSATQuestion, type CSATResponse, type CSATSurvey, ChatAgentExecuteSubject, ChatAgentStatusSubject, type CreateAgentJobRequest, type CreateAgentRequest, type CreateAgentWidgetRequest, type CreateExecutionPlanRequest, type CreateExecutionPlanResponse, type CreateSkillRequest, type CreateSubAgentRequest, type CreateToolDefinitionRequest, type DefaultDefinitions, type DeleteAgentRequest, type DeleteAgentWidgetRequest, type DeleteSkillRequest, type DeleteSkillUserConfigRequest, type DeleteSubAgentRequest, type DeleteToolDefinitionRequest, type ExecuteJobRequest, type ExecutePlanRequest, type ExecutePlanResponse, type ExecuteToolRequest, type ExecuteToolResponse, type ExecutionCompletedEvent, type ExecutionMode, ExecutionModeAsync, ExecutionModeAsyncClient, ExecutionModeSync, type ExecutionModeTS, type ExecutionPlan, type ExecutionResponse, type ExecutionStatus, ExecutionStatusCompleted, ExecutionStatusFailed, ExecutionStatusPending, ExecutionStatusRunning, ExecutionStatusSkipped, type ExecutionStatusTS, ExecutionTTLHours, ExecutionsTTLCleanupSubject, type GetAgentRequest, type GetAgentSkillConfigRequest, type GetAgentWidgetRequest, type GetDefaultAgentRequest, type GetDefaultWidgetRequest, type GetExecutionRequest, type GetSkillRequest, type GetSkillUserConfigRequest, type GetSkillsByIDsRequest, type GetSkillsByIDsResponse, type GetSubAgentRequest, type GetSubAgentsByIDsRequest, type GetSubAgentsByIDsResponse, type GetToolDefinitionRequest, type GetToolDefinitionsByIDsRequest, type GetToolDefinitionsByIDsResponse, type GetWidgetByWidgetIDRequest, type GetWidgetConfigRequest, type GetWidgetConfigResponse, type HandoffConfig, type IntegrationProviderTS, type IntegrationRequirement, type IntegrationTypeTS, type JobExecution, JobExecutionGetSubject, JobExecutionListSubject, type JobExecutionResult, type JobExecutionStatus, JobExecutionStatusFailed, JobExecutionStatusRunning, JobExecutionStatusSuccess, type JobExecutionStatusTS, JobExecutionStatusTimedOut, type JobFrequency, JobFrequencyOneTime, JobFrequencySchedule, type JobFrequencyTS, type JobScope, JobScopeOrg, JobScopePrivate, type JobScopeTS, JobScopeTeam, type JobStatus, JobStatusActive, JobStatusDisabled, JobStatusExecuting, JobStatusPaused, type JobStatusTS, type ListAgentJobsRequest, type ListAgentWidgetsRequest, type ListAgentWidgetsResponse, type ListAgentsRequest, type ListAgentsResponse, type ListAgentsSummaryRequest, type ListAgentsSummaryResponse, type ListExecutionsByAgentRequest, type ListExecutionsByJobRequest, type ListExecutionsResponse, type ListSkillUserConfigRequest, type ListSkillsRequest, type ListSubAgentsRequest, type ListToolDefinitionsRequest, type MCPServerConfig, MaxExecutions, type MergeConfig, type MergeStrategy, MergeStrategyAppend, MergeStrategyMerge, MergeStrategyReplace, type MergeStrategyTS, type PlanApprovalConfig, type PlanStatus, PlanStatusApproved, PlanStatusCancelled, PlanStatusCompleted, PlanStatusExecuting, PlanStatusPendingApproval, PlanStatusRejected, type PlanStatusTS, type PlannedStep, type ProcessJobTriggerResult, type PublicWidgetConfig, type ReactAgentConfig, ReactAgentExecuteSubject, ReactAgentStatusSubject, ReactAgentStopSubject, type ResolveSkillConfigRequest, type ResolveSkillConfigResponse, type RetryPolicy, RuntimeJobCompletedSubject, RuntimeJobExecuteSubject, type SaveWidgetConfigRequest, type SaveWidgetConfigResponse, type SetDefaultWidgetRequest, type Skill, type SkillCategory, SkillCategoryAnalysis, SkillCategoryCommunication, SkillCategoryCreative, SkillCategoryCustom, SkillCategoryIntegration, SkillCategoryProductivity, type SkillCategoryTS, SkillResolveConfigSubject, type SkillResponse, type SkillUserConfig, SkillUserConfigDeleteSubject, SkillUserConfigGetSubject, type SkillUserConfigListResponse, SkillUserConfigListSubject, type SkillUserConfigResponse, SkillUserConfigUpdateSubject, SkillsCreateSubject, SkillsCreatedSubject, SkillsDeleteSubject, SkillsDeletedSubject, SkillsGetByIDsSubject, SkillsGetSubject, type SkillsListResponse, SkillsListSubject, SkillsUpdateOrgConfigSubject, SkillsUpdateSubject, SkillsUpdatedSubject, type SubAgent, type SubAgentResponse, SubAgentsCreateSubject, SubAgentsCreatedSubject, SubAgentsDeleteSubject, SubAgentsDeletedSubject, SubAgentsExecuteSubject, SubAgentsGetByIDsSubject, SubAgentsGetSubject, type SubAgentsListResponse, SubAgentsListSubject, SubAgentsUpdateSubject, SubAgentsUpdatedSubject, SubAgentsValidateSubject, type TTLCleanupRequest, type TTLCleanupResponse, type ToolConfig, type ToolDefinition, type ToolDefinitionResponse, ToolDefinitionsCreateSubject, ToolDefinitionsCreatedSubject, ToolDefinitionsDeleteSubject, ToolDefinitionsDeletedSubject, ToolDefinitionsExecuteSubject, ToolDefinitionsGetByIDsSubject, ToolDefinitionsGetSubject, type ToolDefinitionsListResponse, ToolDefinitionsListSubject, ToolDefinitionsUpdateSubject, ToolDefinitionsUpdatedSubject, ToolDefinitionsValidateSubject, type ToolExecution, type ToolExecutionPolicy, type ToolExecutionProgress, type ToolExecutionStatus, ToolExecutionStatusCompleted, ToolExecutionStatusExecuting, ToolExecutionStatusFailed, ToolExecutionStatusSkipped, ToolExecutionStatusStarted, type ToolExecutionStatusTS, ToolExecutionStatusTimeout, type UpdateAgentJobRequest, type UpdateAgentRequest, type UpdateAgentSkillConfigRequest, type UpdateAgentWidgetRequest, type UpdateOrgAgentsRequest, type UpdateOrgAgentsResponse, type UpdateSkillOrgConfigRequest, type UpdateSkillRequest, type UpdateSkillUserConfigRequest, type UpdateSubAgentRequest, type UpdateToolDefinitionRequest, type UserSuggestedAction, type UserSuggestedActionsConfig, type UserSuggestedActionsRequest, type UserSuggestedActionsResponse, type ValidationError, type ValidationErrors, type WidgetAppearance, type WidgetBehavior, type WidgetConfig, WidgetConfigGetByAgentSubject, WidgetConfigSaveSubject, type WidgetSecurity, WorkflowAgentGetSubject, WorkflowAgentUpdateSubject };
975
+ export { type AiTaskOutcome, type ArchiveEmailRequest, type ArchiveEmailResponse, type CalendarEvent, type ConfigureOrgIntegrationRequest, type ConfigureOrgIntegrationResponse, type ConnectIntegrationRequest, type ConnectIntegrationResponse, type CreateCalendarEventRequest, type CreateCalendarEventResponse, type CreateSandboxRequest, type CreateSandboxResponse, CreateSandboxSubject, type DeleteCalendarEventRequest, type DeleteCalendarEventResponse, type DeleteSandboxRequest, type DeleteSandboxResponse, DeleteSandboxSubject, type DisableOrgIntegrationRequest, type DisableOrgIntegrationResponse, type DisconnectIntegrationRequest, type DisconnectIntegrationResponse, type EmailAttachment, type EmailDetails, type EmailSummary, type EventAttendee, type EventReminder, type FileDetails, type FilePermission, type FileSummary, type FileWithContent, type ForwardEmailRequest, type GetCalendarEventRequest, type GetCalendarEventResponse, type GetDriveFileRequest, type GetDriveFileResponse, type GetEmailRequest, type GetEmailResponse, type GetEmailThreadRequest, type GetEmailThreadResponse, type GetSandboxRequest, type GetSandboxResponse, GetSandboxSubject, type GetUserIntegrationRequest, type GetUserIntegrationResponse, HubAnalyticsGetTaskMetrics, HubAnalyticsGetTaskOutcomes, HubEmailTriageRunNow, HubEventsInsertTaskOutcomes, HubEventsUpdateTaskOutcomeStatus, HubIntegrationCalendarCreate, HubIntegrationCalendarDelete, HubIntegrationCalendarGet, HubIntegrationCalendarList, HubIntegrationCalendarRSVP, HubIntegrationCalendarUpdate, HubIntegrationDriveGet, HubIntegrationDriveSearch, HubIntegrationEmailArchive, HubIntegrationEmailForward, HubIntegrationEmailGet, HubIntegrationEmailMarkRead, HubIntegrationEmailSearch, HubIntegrationEmailSend, HubIntegrationEmailThread, HubIntegrationOrgConfigure, HubIntegrationOrgDisable, HubIntegrationOrgList, HubIntegrationSetupOrg, HubIntegrationUserCallback, HubIntegrationUserConnect, HubIntegrationUserDisconnect, HubIntegrationUserGet, HubIntegrationUserList, HubIntegrationUserRefresh, HubIntegrationUserUpdateTriage, type IntegrationCallbackRequest, type IntegrationCallbackResponse, type IntegrationMode, IntegrationModeDomainDelegation, IntegrationModeServicePrincipal, type IntegrationProvider, IntegrationProviderGoogle, IntegrationProviderMicrosoft, type IntegrationProviderTS, type IntegrationStatus, IntegrationStatusActive, IntegrationStatusError, IntegrationStatusExpired, IntegrationStatusRevoked, type IntegrationStatusTS, type IntegrationType, IntegrationTypeCalendar, IntegrationTypeDrive, IntegrationTypeEmail, type IntegrationTypeTS, type ListCalendarEventsRequest, type ListCalendarEventsResponse, type ListDriveFilesRequest, type ListDriveFilesResponse, type ListOrgIntegrationsRequest, type ListOrgIntegrationsResponse, ListSandboxSubject, type ListSandboxesRequest, type ListSandboxesResponse, type ListUserIntegrationsRequest, type ListUserIntegrationsResponse, type MarkAsReadRequest, type MarkAsReadResponse, type OAuthState, type OrgIntegration, type RSVPCalendarEventRequest, type RSVPCalendarEventResponse, type RefreshIntegrationRequest, type RefreshIntegrationResponse, type RunEmailTriageRequest, type RunEmailTriageResponse, type Sandbox, type SearchEmailsRequest, type SearchEmailsResponse, type SendEmailRequest, type SendEmailResponse, type SendEmailResult, type SetupIntegrationsRequest, type SetupIntegrationsResponse, type TaskOutcomeInsertionResponse, type TaskOutcomeStatusUpdateRequest, type TaskOutcomeStatusUpdateResponse, type TaskOutcomesInsertRequest, type TokenData, type UpdateCalendarEventRequest, type UpdateCalendarEventResponse, type UpdateSandboxRequest, type UpdateSandboxResponse, UpdateSandboxSubject, type UpdateTriageEnabledRequest, type UpdateTriageEnabledResponse, type UserIntegration, type ValidationResult };