@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.
- package/dist/agent-models-BdtFKjV3.d.mts +2398 -0
- package/dist/agent-models-BdtFKjV3.d.ts +2398 -0
- package/dist/api/index.d.mts +60 -2
- package/dist/api/index.d.ts +60 -2
- package/dist/api/index.js +38 -2
- package/dist/api/index.js.map +1 -1
- package/dist/api/index.mjs +37 -1
- package/dist/api/server.d.mts +146 -0
- package/dist/api/server.d.ts +146 -0
- package/dist/api/server.js +226 -0
- package/dist/api/server.js.map +1 -0
- package/dist/api/server.mjs +226 -0
- package/dist/api/server.mjs.map +1 -0
- package/dist/chunk-44A5L2IY.js +491 -0
- package/dist/chunk-44A5L2IY.js.map +1 -0
- package/dist/{chunk-YYXYKVF4.js → chunk-ADOBVUUS.js} +104 -2
- package/dist/chunk-ADOBVUUS.js.map +1 -0
- package/dist/{chunk-IDBBO3QJ.mjs → chunk-EUELXX27.mjs} +136 -2
- package/dist/chunk-EUELXX27.mjs.map +1 -0
- package/dist/{chunk-LRVOTC2M.mjs → chunk-O3FM26FT.mjs} +104 -2
- package/dist/chunk-O3FM26FT.mjs.map +1 -0
- package/dist/chunk-RTUQ7WKT.mjs +434 -0
- package/dist/chunk-RTUQ7WKT.mjs.map +1 -0
- package/dist/chunk-VVYOTEM2.js +434 -0
- package/dist/chunk-VVYOTEM2.js.map +1 -0
- package/dist/hooks/index.d.mts +134 -5
- package/dist/hooks/index.d.ts +134 -5
- package/dist/hooks/index.js +15 -3
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +16 -4
- package/dist/index.d.mts +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.js +180 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +181 -5
- package/dist/models/index.d.mts +713 -1995
- package/dist/models/index.d.ts +713 -1995
- package/dist/models/index.js +130 -2
- package/dist/models/index.js.map +1 -1
- package/dist/models/index.mjs +129 -1
- package/package.json +11 -6
- package/dist/chunk-EQBMH6T6.mjs +0 -398
- package/dist/chunk-EQBMH6T6.mjs.map +0 -1
- package/dist/chunk-IDBBO3QJ.mjs.map +0 -1
- package/dist/chunk-LRVOTC2M.mjs.map +0 -1
- package/dist/chunk-O77IWBPZ.js +0 -357
- package/dist/chunk-O77IWBPZ.js.map +0 -1
- package/dist/chunk-WL5S56WV.js +0 -398
- package/dist/chunk-WL5S56WV.js.map +0 -1
- package/dist/chunk-YYXYKVF4.js.map +0 -1
package/dist/models/index.d.ts
CHANGED
|
@@ -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
|
-
*
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
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
|
-
|
|
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
|
-
|
|
151
|
-
|
|
152
|
-
|
|
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
|
-
*
|
|
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
|
-
|
|
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
|
-
*
|
|
122
|
+
* IntegrationMode represents enterprise integration mode
|
|
160
123
|
*/
|
|
161
|
-
|
|
124
|
+
type IntegrationMode = string;
|
|
125
|
+
declare const IntegrationModeServicePrincipal: IntegrationMode;
|
|
126
|
+
declare const IntegrationModeDomainDelegation: IntegrationMode;
|
|
162
127
|
/**
|
|
163
|
-
*
|
|
164
|
-
* that requires user approval before execution.
|
|
128
|
+
* UserIntegration represents a user's connected email/calendar account
|
|
165
129
|
*/
|
|
166
|
-
interface
|
|
167
|
-
/**
|
|
168
|
-
* Identity
|
|
169
|
-
*/
|
|
130
|
+
interface UserIntegration {
|
|
170
131
|
id: string;
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
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
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
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
|
-
|
|
249
|
-
|
|
250
|
-
|
|
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
|
-
*
|
|
177
|
+
* ListUserIntegrationsRequest represents request to list user's integrations
|
|
286
178
|
*/
|
|
287
|
-
interface
|
|
288
|
-
|
|
289
|
-
|
|
179
|
+
interface ListUserIntegrationsRequest {
|
|
180
|
+
org_id: string;
|
|
181
|
+
user_id: string;
|
|
290
182
|
}
|
|
291
183
|
/**
|
|
292
|
-
*
|
|
184
|
+
* ListUserIntegrationsResponse represents response with user's integrations
|
|
293
185
|
*/
|
|
294
|
-
interface
|
|
295
|
-
|
|
296
|
-
|
|
186
|
+
interface ListUserIntegrationsResponse {
|
|
187
|
+
integrations: UserIntegration[];
|
|
188
|
+
total: number;
|
|
189
|
+
metadata: any;
|
|
297
190
|
}
|
|
298
191
|
/**
|
|
299
|
-
*
|
|
192
|
+
* GetUserIntegrationRequest represents request to get a specific integration
|
|
300
193
|
*/
|
|
301
|
-
interface
|
|
302
|
-
|
|
303
|
-
|
|
194
|
+
interface GetUserIntegrationRequest {
|
|
195
|
+
org_id: string;
|
|
196
|
+
user_id: string;
|
|
197
|
+
provider: IntegrationProvider;
|
|
198
|
+
integration_type: IntegrationType;
|
|
304
199
|
}
|
|
305
200
|
/**
|
|
306
|
-
*
|
|
201
|
+
* GetUserIntegrationResponse represents response with a specific integration
|
|
307
202
|
*/
|
|
308
|
-
interface
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
enabled?: boolean;
|
|
312
|
-
limit?: number;
|
|
313
|
-
offset?: number;
|
|
203
|
+
interface GetUserIntegrationResponse {
|
|
204
|
+
integration?: UserIntegration;
|
|
205
|
+
metadata: any;
|
|
314
206
|
}
|
|
315
207
|
/**
|
|
316
|
-
*
|
|
208
|
+
* ConnectIntegrationRequest represents request to initiate OAuth connection
|
|
317
209
|
*/
|
|
318
|
-
interface
|
|
319
|
-
|
|
320
|
-
|
|
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
|
-
*
|
|
218
|
+
* ConnectIntegrationResponse represents response with OAuth URL
|
|
324
219
|
*/
|
|
325
|
-
interface
|
|
326
|
-
|
|
327
|
-
|
|
220
|
+
interface ConnectIntegrationResponse {
|
|
221
|
+
auth_url: string;
|
|
222
|
+
state: string;
|
|
328
223
|
metadata: any;
|
|
329
224
|
}
|
|
330
225
|
/**
|
|
331
|
-
*
|
|
226
|
+
* IntegrationCallbackRequest represents OAuth callback data
|
|
332
227
|
*/
|
|
333
|
-
interface
|
|
334
|
-
|
|
335
|
-
|
|
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
|
-
*
|
|
236
|
+
* IntegrationCallbackResponse represents callback result
|
|
339
237
|
*/
|
|
340
|
-
interface
|
|
341
|
-
|
|
342
|
-
|
|
238
|
+
interface IntegrationCallbackResponse {
|
|
239
|
+
integration?: UserIntegration;
|
|
240
|
+
metadata: any;
|
|
343
241
|
}
|
|
344
242
|
/**
|
|
345
|
-
*
|
|
243
|
+
* DisconnectIntegrationRequest represents request to disconnect an integration
|
|
346
244
|
*/
|
|
347
|
-
interface
|
|
348
|
-
|
|
349
|
-
|
|
245
|
+
interface DisconnectIntegrationRequest {
|
|
246
|
+
org_id: string;
|
|
247
|
+
user_id: string;
|
|
248
|
+
provider: IntegrationProvider;
|
|
249
|
+
integration_type: IntegrationType;
|
|
350
250
|
}
|
|
351
251
|
/**
|
|
352
|
-
*
|
|
252
|
+
* DisconnectIntegrationResponse represents disconnect result
|
|
353
253
|
*/
|
|
354
|
-
interface
|
|
355
|
-
|
|
356
|
-
subAgentId: string;
|
|
254
|
+
interface DisconnectIntegrationResponse {
|
|
255
|
+
metadata: any;
|
|
357
256
|
}
|
|
358
257
|
/**
|
|
359
|
-
*
|
|
258
|
+
* RefreshIntegrationRequest represents request to refresh token
|
|
360
259
|
*/
|
|
361
|
-
interface
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
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
|
-
*
|
|
267
|
+
* RefreshIntegrationResponse represents refresh result
|
|
370
268
|
*/
|
|
371
|
-
interface
|
|
372
|
-
|
|
269
|
+
interface RefreshIntegrationResponse {
|
|
270
|
+
integration?: UserIntegration;
|
|
373
271
|
metadata: any;
|
|
374
272
|
}
|
|
375
273
|
/**
|
|
376
|
-
*
|
|
274
|
+
* UpdateTriageEnabledRequest represents request to update triage enabled flag
|
|
377
275
|
*/
|
|
378
|
-
interface
|
|
379
|
-
|
|
380
|
-
|
|
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
|
-
*
|
|
291
|
+
* ListOrgIntegrationsRequest represents request to list org integrations
|
|
385
292
|
*/
|
|
386
|
-
interface
|
|
387
|
-
|
|
388
|
-
toolDefinitionIds: string[];
|
|
293
|
+
interface ListOrgIntegrationsRequest {
|
|
294
|
+
org_id: string;
|
|
389
295
|
}
|
|
390
296
|
/**
|
|
391
|
-
*
|
|
297
|
+
* ListOrgIntegrationsResponse represents response with org integrations
|
|
392
298
|
*/
|
|
393
|
-
interface
|
|
394
|
-
|
|
299
|
+
interface ListOrgIntegrationsResponse {
|
|
300
|
+
integrations: OrgIntegration[];
|
|
301
|
+
total: number;
|
|
395
302
|
metadata: any;
|
|
396
303
|
}
|
|
397
304
|
/**
|
|
398
|
-
*
|
|
305
|
+
* ConfigureOrgIntegrationRequest represents request to configure enterprise integration
|
|
399
306
|
*/
|
|
400
|
-
interface
|
|
401
|
-
|
|
402
|
-
|
|
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
|
-
*
|
|
320
|
+
* ConfigureOrgIntegrationResponse represents response after configuring
|
|
406
321
|
*/
|
|
407
|
-
interface
|
|
408
|
-
|
|
322
|
+
interface ConfigureOrgIntegrationResponse {
|
|
323
|
+
integration?: OrgIntegration;
|
|
409
324
|
metadata: any;
|
|
410
325
|
}
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
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
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
334
|
+
/**
|
|
335
|
+
* DisableOrgIntegrationResponse represents response after disabling
|
|
336
|
+
*/
|
|
337
|
+
interface DisableOrgIntegrationResponse {
|
|
430
338
|
metadata: any;
|
|
431
339
|
}
|
|
432
340
|
/**
|
|
433
|
-
*
|
|
341
|
+
* SearchEmailsRequest represents request to search emails
|
|
434
342
|
*/
|
|
435
|
-
interface
|
|
436
|
-
|
|
437
|
-
|
|
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
|
-
*
|
|
354
|
+
* SearchEmailsResponse represents email search results
|
|
441
355
|
*/
|
|
442
|
-
interface
|
|
443
|
-
|
|
444
|
-
|
|
356
|
+
interface SearchEmailsResponse {
|
|
357
|
+
emails: EmailSummary[];
|
|
358
|
+
total: number;
|
|
359
|
+
metadata: any;
|
|
445
360
|
}
|
|
446
361
|
/**
|
|
447
|
-
*
|
|
362
|
+
* EmailSummary represents a summarized email for display in chat
|
|
448
363
|
*/
|
|
449
|
-
interface
|
|
450
|
-
|
|
451
|
-
|
|
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
|
-
*
|
|
397
|
+
* EmailDetails represents full email details for viewing
|
|
455
398
|
*/
|
|
456
|
-
interface
|
|
457
|
-
|
|
458
|
-
|
|
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
|
-
*
|
|
427
|
+
* SendEmailResult represents the result of sending an email
|
|
462
428
|
*/
|
|
463
|
-
interface
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
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
|
-
*
|
|
436
|
+
* GetEmailThreadRequest represents request to get email thread
|
|
473
437
|
*/
|
|
474
|
-
interface
|
|
475
|
-
|
|
476
|
-
|
|
438
|
+
interface GetEmailThreadRequest {
|
|
439
|
+
org_id: string;
|
|
440
|
+
user_id: string;
|
|
441
|
+
thread_id: string;
|
|
477
442
|
}
|
|
478
443
|
/**
|
|
479
|
-
*
|
|
444
|
+
* GetEmailThreadResponse represents email thread response
|
|
480
445
|
*/
|
|
481
|
-
interface
|
|
482
|
-
|
|
483
|
-
total: number;
|
|
446
|
+
interface GetEmailThreadResponse {
|
|
447
|
+
thread: EmailDetails[];
|
|
484
448
|
metadata: any;
|
|
485
449
|
}
|
|
486
450
|
/**
|
|
487
|
-
*
|
|
451
|
+
* SendEmailRequest represents request to send an email
|
|
488
452
|
*/
|
|
489
|
-
interface
|
|
490
|
-
|
|
491
|
-
|
|
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
|
-
*
|
|
466
|
+
* SendEmailResponse represents send email response
|
|
495
467
|
*/
|
|
496
|
-
interface
|
|
497
|
-
|
|
468
|
+
interface SendEmailResponse {
|
|
469
|
+
result: SendEmailResult;
|
|
498
470
|
metadata: any;
|
|
499
471
|
}
|
|
500
472
|
/**
|
|
501
|
-
*
|
|
473
|
+
* ArchiveEmailRequest represents request to archive an email
|
|
502
474
|
*/
|
|
503
|
-
interface
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
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
|
-
*
|
|
481
|
+
* ArchiveEmailResponse represents archive email response
|
|
512
482
|
*/
|
|
513
|
-
interface
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
skillId: string;
|
|
517
|
-
config: {
|
|
518
|
-
[key: string]: any;
|
|
519
|
-
};
|
|
483
|
+
interface ArchiveEmailResponse {
|
|
484
|
+
success: boolean;
|
|
485
|
+
metadata: any;
|
|
520
486
|
}
|
|
521
487
|
/**
|
|
522
|
-
*
|
|
488
|
+
* MarkAsReadRequest represents request to mark an email as read/unread
|
|
523
489
|
*/
|
|
524
|
-
interface
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
490
|
+
interface MarkAsReadRequest {
|
|
491
|
+
org_id: string;
|
|
492
|
+
user_id: string;
|
|
493
|
+
email_id: string;
|
|
494
|
+
is_read: boolean;
|
|
528
495
|
}
|
|
529
496
|
/**
|
|
530
|
-
*
|
|
497
|
+
* MarkAsReadResponse represents mark as read response
|
|
531
498
|
*/
|
|
532
|
-
interface
|
|
533
|
-
|
|
499
|
+
interface MarkAsReadResponse {
|
|
500
|
+
success: boolean;
|
|
534
501
|
metadata: any;
|
|
535
502
|
}
|
|
536
503
|
/**
|
|
537
|
-
*
|
|
504
|
+
* ForwardEmailRequest represents request to forward an email
|
|
538
505
|
*/
|
|
539
|
-
interface
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
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
|
-
*
|
|
514
|
+
* RunEmailTriageRequest represents request to manually trigger email triage
|
|
547
515
|
*/
|
|
548
|
-
interface
|
|
549
|
-
|
|
550
|
-
|
|
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
|
-
*
|
|
521
|
+
* RunEmailTriageResponse represents email triage run response
|
|
561
522
|
*/
|
|
562
|
-
interface
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
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
|
-
*
|
|
531
|
+
* ListCalendarEventsRequest represents request to list calendar events
|
|
570
532
|
*/
|
|
571
|
-
interface
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
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
|
-
*
|
|
543
|
+
* ListCalendarEventsResponse represents calendar events list
|
|
580
544
|
*/
|
|
581
|
-
interface
|
|
582
|
-
|
|
545
|
+
interface ListCalendarEventsResponse {
|
|
546
|
+
events: CalendarEvent[];
|
|
547
|
+
total: number;
|
|
583
548
|
metadata: any;
|
|
584
549
|
}
|
|
585
550
|
/**
|
|
586
|
-
*
|
|
551
|
+
* CalendarEvent represents a calendar event
|
|
587
552
|
*/
|
|
588
|
-
interface
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
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
|
-
*
|
|
581
|
+
* GetCalendarEventRequest represents request to get event details
|
|
595
582
|
*/
|
|
596
|
-
interface
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
skillId: string;
|
|
583
|
+
interface GetCalendarEventRequest {
|
|
584
|
+
org_id: string;
|
|
585
|
+
user_id: string;
|
|
586
|
+
event_id: string;
|
|
601
587
|
}
|
|
602
588
|
/**
|
|
603
|
-
*
|
|
589
|
+
* GetCalendarEventResponse represents event details response
|
|
604
590
|
*/
|
|
605
|
-
interface
|
|
606
|
-
|
|
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
|
-
*
|
|
596
|
+
* CreateCalendarEventRequest represents request to create a new calendar event
|
|
621
597
|
*/
|
|
622
|
-
interface
|
|
623
|
-
|
|
624
|
-
|
|
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
|
-
*
|
|
613
|
+
* EventReminder represents a reminder for a calendar event
|
|
628
614
|
*/
|
|
629
|
-
interface
|
|
630
|
-
|
|
631
|
-
|
|
615
|
+
interface EventReminder {
|
|
616
|
+
method: string;
|
|
617
|
+
minutes: number;
|
|
632
618
|
}
|
|
633
619
|
/**
|
|
634
|
-
*
|
|
635
|
-
* Used for: Get, Delete, Pause, Resume operations
|
|
620
|
+
* CreateCalendarEventResponse represents response after creating an event
|
|
636
621
|
*/
|
|
637
|
-
interface
|
|
638
|
-
|
|
639
|
-
|
|
622
|
+
interface CreateCalendarEventResponse {
|
|
623
|
+
event?: CalendarEvent;
|
|
624
|
+
metadata: any;
|
|
640
625
|
}
|
|
641
626
|
/**
|
|
642
|
-
*
|
|
627
|
+
* UpdateCalendarEventRequest represents request to update an existing calendar event
|
|
643
628
|
*/
|
|
644
|
-
interface
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
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
|
-
*
|
|
642
|
+
* UpdateCalendarEventResponse represents response after updating an event
|
|
656
643
|
*/
|
|
657
|
-
interface
|
|
658
|
-
|
|
644
|
+
interface UpdateCalendarEventResponse {
|
|
645
|
+
event?: CalendarEvent;
|
|
659
646
|
metadata: any;
|
|
660
647
|
}
|
|
661
648
|
/**
|
|
662
|
-
*
|
|
649
|
+
* DeleteCalendarEventRequest represents request to delete a calendar event
|
|
663
650
|
*/
|
|
664
|
-
interface
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
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
|
-
*
|
|
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
|
|
674
|
-
|
|
661
|
+
interface DeleteCalendarEventResponse {
|
|
662
|
+
metadata: any;
|
|
675
663
|
}
|
|
676
664
|
/**
|
|
677
|
-
*
|
|
665
|
+
* RSVPCalendarEventRequest represents request to respond to a calendar event invitation
|
|
678
666
|
*/
|
|
679
|
-
interface
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
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
|
-
*
|
|
675
|
+
* RSVPCalendarEventResponse represents response after RSVP
|
|
689
676
|
*/
|
|
690
|
-
interface
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
limit?: number;
|
|
694
|
-
offset?: number;
|
|
677
|
+
interface RSVPCalendarEventResponse {
|
|
678
|
+
event?: CalendarEvent;
|
|
679
|
+
metadata: any;
|
|
695
680
|
}
|
|
696
681
|
/**
|
|
697
|
-
*
|
|
682
|
+
* ListDriveFilesRequest represents request to list/search drive files
|
|
698
683
|
*/
|
|
699
|
-
interface
|
|
700
|
-
|
|
701
|
-
|
|
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
|
-
*
|
|
693
|
+
* ListDriveFilesResponse represents drive files list
|
|
707
694
|
*/
|
|
708
|
-
interface
|
|
709
|
-
|
|
695
|
+
interface ListDriveFilesResponse {
|
|
696
|
+
files: FileSummary[];
|
|
710
697
|
total: number;
|
|
711
698
|
metadata: any;
|
|
712
699
|
}
|
|
713
700
|
/**
|
|
714
|
-
*
|
|
701
|
+
* FileSummary represents a file summary for display in chat
|
|
715
702
|
*/
|
|
716
|
-
interface
|
|
717
|
-
|
|
718
|
-
|
|
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
|
-
*
|
|
728
|
+
* GetDriveFileResponse represents file details response
|
|
722
729
|
*/
|
|
723
|
-
interface
|
|
724
|
-
|
|
730
|
+
interface GetDriveFileResponse {
|
|
731
|
+
file?: FileDetails;
|
|
725
732
|
metadata: any;
|
|
726
733
|
}
|
|
727
734
|
/**
|
|
728
|
-
*
|
|
735
|
+
* FileDetails represents full file details for viewing
|
|
729
736
|
*/
|
|
730
|
-
interface
|
|
731
|
-
|
|
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
|
-
*
|
|
758
|
+
* FilePermission represents a file sharing permission
|
|
735
759
|
*/
|
|
736
|
-
interface
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
};
|
|
741
|
-
duration: string;
|
|
742
|
-
metadata: any;
|
|
760
|
+
interface FilePermission {
|
|
761
|
+
email: string;
|
|
762
|
+
name?: string;
|
|
763
|
+
role: string;
|
|
743
764
|
}
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
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
|
-
*
|
|
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
|
|
770
|
-
|
|
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
|
-
*
|
|
780
|
+
* SetupIntegrationsResponse represents setup result
|
|
804
781
|
*/
|
|
805
|
-
interface
|
|
806
|
-
|
|
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
|
-
*
|
|
786
|
+
* OAuthState represents OAuth state stored temporarily during auth flow
|
|
816
787
|
*/
|
|
817
|
-
interface
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
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
|
-
*
|
|
799
|
+
* User Integration CRUD (Individual Mode)
|
|
836
800
|
*/
|
|
837
|
-
declare const
|
|
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
|
-
*
|
|
809
|
+
* Org Integration CRUD (Enterprise Mode)
|
|
840
810
|
*/
|
|
841
|
-
declare const
|
|
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
|
-
*
|
|
815
|
+
* Email Operations (used by agent tools)
|
|
844
816
|
*/
|
|
845
|
-
declare const
|
|
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
|
-
*
|
|
825
|
+
* Email Triage Operations
|
|
848
826
|
*/
|
|
849
|
-
declare const
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
declare const
|
|
854
|
-
declare const
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
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
|
-
*
|
|
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
|
-
|
|
866
|
-
|
|
867
|
-
|
|
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
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
configSchema?: JSONSchema;
|
|
874
|
-
config?: {
|
|
875
|
-
[key: string]: any;
|
|
877
|
+
url?: string;
|
|
878
|
+
metadata?: {
|
|
879
|
+
[key: string]: string;
|
|
876
880
|
};
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
isSystem?: boolean;
|
|
880
|
-
createdAt?: string;
|
|
881
|
-
updatedAt?: string;
|
|
882
|
-
order?: number;
|
|
881
|
+
createdAt: string;
|
|
882
|
+
expiresAt: string;
|
|
883
883
|
}
|
|
884
884
|
/**
|
|
885
|
-
*
|
|
885
|
+
* CreateSandboxRequest is the request to create a new sandbox (prompt-based)
|
|
886
886
|
*/
|
|
887
|
-
interface
|
|
888
|
-
id?: string;
|
|
887
|
+
interface CreateSandboxRequest {
|
|
889
888
|
orgId: string;
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
name: string;
|
|
894
|
-
title: string;
|
|
889
|
+
userId?: string;
|
|
890
|
+
prompt: string;
|
|
891
|
+
title?: string;
|
|
895
892
|
description?: string;
|
|
896
|
-
|
|
897
|
-
|
|
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
|
-
*
|
|
897
|
+
* CreateSandboxResponse is the response after creating a sandbox
|
|
983
898
|
*/
|
|
984
|
-
interface
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
899
|
+
interface CreateSandboxResponse {
|
|
900
|
+
sandbox?: Sandbox;
|
|
901
|
+
id: string;
|
|
902
|
+
url: string;
|
|
903
|
+
metadata: ResponseMetadata;
|
|
989
904
|
}
|
|
990
905
|
/**
|
|
991
|
-
*
|
|
906
|
+
* GetSandboxRequest is the request to get a sandbox
|
|
992
907
|
*/
|
|
993
|
-
interface
|
|
994
|
-
|
|
995
|
-
widgetId: string;
|
|
996
|
-
appearance: WidgetAppearance;
|
|
997
|
-
behavior: WidgetBehavior;
|
|
998
|
-
security: WidgetSecurity;
|
|
908
|
+
interface GetSandboxRequest {
|
|
909
|
+
id: string;
|
|
999
910
|
}
|
|
1000
911
|
/**
|
|
1001
|
-
*
|
|
912
|
+
* GetSandboxResponse is the response with sandbox data
|
|
1002
913
|
*/
|
|
1003
|
-
interface
|
|
1004
|
-
|
|
1005
|
-
|
|
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
|
-
*
|
|
919
|
+
* UpdateSandboxRequest is the request to update a sandbox (prompt-based)
|
|
1014
920
|
*/
|
|
1015
|
-
interface
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
921
|
+
interface UpdateSandboxRequest {
|
|
922
|
+
id: string;
|
|
923
|
+
orgId: string;
|
|
924
|
+
userId?: string;
|
|
925
|
+
prompt: string;
|
|
926
|
+
title?: string;
|
|
1020
927
|
}
|
|
1021
928
|
/**
|
|
1022
|
-
*
|
|
929
|
+
* UpdateSandboxResponse is the response after updating a sandbox
|
|
1023
930
|
*/
|
|
1024
|
-
interface
|
|
1025
|
-
|
|
931
|
+
interface UpdateSandboxResponse {
|
|
932
|
+
sandbox?: Sandbox;
|
|
933
|
+
id: string;
|
|
934
|
+
url: string;
|
|
935
|
+
metadata: ResponseMetadata;
|
|
1026
936
|
}
|
|
1027
937
|
/**
|
|
1028
|
-
*
|
|
938
|
+
* ListSandboxesRequest is the request to list sandboxes
|
|
1029
939
|
*/
|
|
1030
|
-
interface
|
|
1031
|
-
|
|
1032
|
-
|
|
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
|
-
*
|
|
1043
|
-
* Contains essential display fields plus metadata needed for chat initialization
|
|
946
|
+
* ListSandboxesResponse is the response with list of sandboxes
|
|
1044
947
|
*/
|
|
1045
|
-
interface
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
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
|
-
*
|
|
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
|
|
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
|
-
*
|
|
960
|
+
* DeleteSandboxResponse is the response after deleting a sandbox
|
|
1353
961
|
*/
|
|
1354
|
-
interface
|
|
1355
|
-
|
|
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
|
-
*
|
|
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
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
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
|
|
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 };
|