@elqnt/agents 1.0.15 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -566,6 +566,63 @@ interface AgentJobTriggerResponse {
566
566
  errors: number;
567
567
  metadata: any;
568
568
  }
569
+ /**
570
+ * ListExecutionsByJobRequest represents a request to list executions for a job
571
+ */
572
+ interface ListExecutionsByJobRequest {
573
+ orgId: string;
574
+ jobId: string;
575
+ limit?: number;
576
+ offset?: number;
577
+ }
578
+ /**
579
+ * ListExecutionsByAgentRequest represents a request to list executions for an agent
580
+ */
581
+ interface ListExecutionsByAgentRequest {
582
+ orgId: string;
583
+ agentId: string;
584
+ limit?: number;
585
+ offset?: number;
586
+ }
587
+ /**
588
+ * ListExecutionsResponse represents the response with executions list
589
+ */
590
+ interface ListExecutionsResponse {
591
+ executions: JobExecution[];
592
+ total: number;
593
+ metadata: any;
594
+ }
595
+ /**
596
+ * GetExecutionRequest represents a request to get an execution
597
+ */
598
+ interface GetExecutionRequest {
599
+ orgId: string;
600
+ executionId: string;
601
+ }
602
+ /**
603
+ * ExecutionResponse represents the response with a single execution
604
+ */
605
+ interface ExecutionResponse {
606
+ execution?: JobExecution;
607
+ metadata: any;
608
+ }
609
+ /**
610
+ * TTLCleanupRequest represents a request to run TTL cleanup
611
+ */
612
+ interface TTLCleanupRequest {
613
+ retentionDays?: number;
614
+ }
615
+ /**
616
+ * TTLCleanupResponse represents the response from TTL cleanup
617
+ */
618
+ interface TTLCleanupResponse {
619
+ totalDeleted: number;
620
+ orgResults?: {
621
+ [key: string]: number;
622
+ };
623
+ duration: string;
624
+ metadata: any;
625
+ }
569
626
  type AgentTypeTS = 'chat' | 'react';
570
627
  type AgentSubTypeTS = 'chat' | 'react' | 'workflow' | 'document';
571
628
  type AgentStatusTS = 'draft' | 'active' | 'inactive' | 'archived';
@@ -603,8 +660,16 @@ interface Skill {
603
660
  tools?: AgentTool[];
604
661
  systemPromptExtension?: string;
605
662
  iconName?: string;
606
- configSchema?: JSONSchema;
607
- config?: {
663
+ /**
664
+ * Config schemas for each level (JSON Schema definitions)
665
+ */
666
+ orgConfigSchema?: JSONSchema;
667
+ agentConfigSchema?: JSONSchema;
668
+ userConfigSchema?: JSONSchema;
669
+ /**
670
+ * Org-level config values
671
+ */
672
+ orgConfig?: {
608
673
  [key: string]: any;
609
674
  };
610
675
  requiredIntegrations?: IntegrationRequirement[];
@@ -623,6 +688,26 @@ interface AgentSkill {
623
688
  skillName?: string;
624
689
  enabled: boolean;
625
690
  order?: number;
691
+ config?: {
692
+ [key: string]: any;
693
+ };
694
+ }
695
+ /**
696
+ * SkillUserConfig represents user-level configuration for a skill
697
+ * Stores OAuth tokens, user preferences, and per-agent overrides
698
+ */
699
+ interface SkillUserConfig {
700
+ id: string;
701
+ userId: string;
702
+ skillId: string;
703
+ agentId?: string;
704
+ enabled: boolean;
705
+ displayOrder?: number;
706
+ config?: {
707
+ [key: string]: any;
708
+ };
709
+ createdAt: string;
710
+ updatedAt: string;
626
711
  }
627
712
  type AgentType = string;
628
713
  declare const AgentTypeChat: AgentType;
@@ -1049,8 +1134,9 @@ interface SaveWidgetConfigResponse {
1049
1134
  metadata: any;
1050
1135
  }
1051
1136
  type JobScopeTS = 'private' | 'team' | 'org';
1052
- type JobStatusTS = 'active' | 'paused' | 'disabled';
1137
+ type JobStatusTS = 'active' | 'executing' | 'paused' | 'disabled';
1053
1138
  type JobFrequencyTS = 'one-time' | 'schedule';
1139
+ type JobExecutionStatusTS = 'running' | 'success' | 'failed' | 'timed_out';
1054
1140
  /**
1055
1141
  * JobScope defines who can see and use the job
1056
1142
  */
@@ -1063,6 +1149,7 @@ declare const JobScopeOrg: JobScope;
1063
1149
  */
1064
1150
  type JobStatus = string;
1065
1151
  declare const JobStatusActive: JobStatus;
1152
+ declare const JobStatusExecuting: JobStatus;
1066
1153
  declare const JobStatusPaused: JobStatus;
1067
1154
  declare const JobStatusDisabled: JobStatus;
1068
1155
  /**
@@ -1111,12 +1198,66 @@ interface AgentJob {
1111
1198
  */
1112
1199
  consecutiveFailures: number;
1113
1200
  disabledUntil?: string;
1201
+ /**
1202
+ * Execution tracking (updated by Runtime Service)
1203
+ */
1204
+ lastExecutionId?: string;
1205
+ lastExecutionStatus?: string;
1206
+ lastExecutedAt?: string;
1114
1207
  /**
1115
1208
  * Audit fields
1116
1209
  */
1117
1210
  createdAt: string;
1118
1211
  updatedAt: string;
1119
1212
  }
1213
+ /**
1214
+ * JobExecutionStatus defines the status of a job execution
1215
+ */
1216
+ type JobExecutionStatus = string;
1217
+ declare const JobExecutionStatusRunning: JobExecutionStatus;
1218
+ declare const JobExecutionStatusSuccess: JobExecutionStatus;
1219
+ declare const JobExecutionStatusFailed: JobExecutionStatus;
1220
+ declare const JobExecutionStatusTimedOut: JobExecutionStatus;
1221
+ /**
1222
+ * ArtifactRef represents a reference to an artifact produced during execution
1223
+ * Actual files are stored by tools; this just tracks references
1224
+ */
1225
+ interface ArtifactRef {
1226
+ type: string;
1227
+ name: string;
1228
+ path: string;
1229
+ size?: number;
1230
+ }
1231
+ /**
1232
+ * JobExecution represents a single execution of an agent job
1233
+ */
1234
+ interface JobExecution {
1235
+ id: string;
1236
+ jobId: string;
1237
+ agentId: string;
1238
+ /**
1239
+ * Execution status
1240
+ */
1241
+ status: JobExecutionStatusTS;
1242
+ startedAt: string;
1243
+ completedAt?: string;
1244
+ /**
1245
+ * Execution metrics
1246
+ */
1247
+ roundsExecuted: number;
1248
+ totalTokens: number;
1249
+ /**
1250
+ * Results
1251
+ */
1252
+ result?: any;
1253
+ error?: string;
1254
+ artifacts?: ArtifactRef[];
1255
+ metadata?: any;
1256
+ /**
1257
+ * Audit
1258
+ */
1259
+ createdAt: string;
1260
+ }
1120
1261
  /**
1121
1262
  * JobExecutionResult represents the result of processing a single agent job
1122
1263
  */
@@ -1137,6 +1278,89 @@ interface ProcessJobTriggerResult {
1137
1278
  skipped: number;
1138
1279
  errors: number;
1139
1280
  }
1281
+ /**
1282
+ * ExecuteJobRequest is sent to Runtime Service to execute a job
1283
+ */
1284
+ interface ExecuteJobRequest {
1285
+ /**
1286
+ * Execution identification (created by Agents Service before dispatch)
1287
+ */
1288
+ executionId: string;
1289
+ /**
1290
+ * Job identification
1291
+ */
1292
+ jobId: string;
1293
+ agentId: string;
1294
+ orgId: string;
1295
+ /**
1296
+ * Execution context
1297
+ */
1298
+ prompt: string;
1299
+ scope: JobScopeTS;
1300
+ ownerId: string;
1301
+ /**
1302
+ * Agent configuration (denormalized for Runtime)
1303
+ */
1304
+ agentConfig: ExecuteJobAgentConfig;
1305
+ /**
1306
+ * Execution settings
1307
+ */
1308
+ timeoutMinutes?: number;
1309
+ metadata?: {
1310
+ [key: string]: any;
1311
+ };
1312
+ }
1313
+ /**
1314
+ * ExecuteJobAgentConfig contains agent configuration needed for execution
1315
+ */
1316
+ interface ExecuteJobAgentConfig {
1317
+ provider: string;
1318
+ model: string;
1319
+ temperature: number;
1320
+ maxTokens: number;
1321
+ systemPrompt: string;
1322
+ tools?: AgentTool[];
1323
+ skills?: AgentSkill[];
1324
+ }
1325
+ /**
1326
+ * ExecutionCompletedEvent is received from Runtime Service when execution completes
1327
+ */
1328
+ interface ExecutionCompletedEvent {
1329
+ /**
1330
+ * Identification
1331
+ */
1332
+ executionId: string;
1333
+ jobId: string;
1334
+ orgId: string;
1335
+ /**
1336
+ * Status: "success", "failed", "timed_out"
1337
+ */
1338
+ status: string;
1339
+ /**
1340
+ * Results (present on success)
1341
+ */
1342
+ result?: any;
1343
+ artifacts?: ArtifactRef[];
1344
+ /**
1345
+ * Error info (present on failure)
1346
+ */
1347
+ error?: string;
1348
+ /**
1349
+ * Metrics
1350
+ */
1351
+ roundsExecuted: number;
1352
+ totalTokens: number;
1353
+ /**
1354
+ * Timing
1355
+ */
1356
+ completedAt: string;
1357
+ /**
1358
+ * Additional context
1359
+ */
1360
+ metadata?: {
1361
+ [key: string]: any;
1362
+ };
1363
+ }
1140
1364
  /**
1141
1365
  * CSAT Configuration
1142
1366
  */
@@ -1632,6 +1856,26 @@ declare const AgentJobResumeSubject = "agents.jobs.resume";
1632
1856
  * Job Trigger (from Scheduler Service)
1633
1857
  */
1634
1858
  declare const AgentJobTriggerSubject = "agents.job.trigger";
1859
+ /**
1860
+ * Execution Query Operations
1861
+ */
1862
+ declare const JobExecutionGetSubject = "agents.executions.get";
1863
+ /**
1864
+ * Job Execution Management
1865
+ */
1866
+ declare const JobExecutionListSubject = "agents.executions.list";
1867
+ /**
1868
+ * Runtime Service Communication
1869
+ */
1870
+ declare const RuntimeJobExecuteSubject = "runtime.job.execute";
1871
+ /**
1872
+ * Job Execution Management
1873
+ */
1874
+ declare const RuntimeJobCompletedSubject = "runtime.job.completed";
1875
+ /**
1876
+ * TTL Cleanup (triggered by Scheduler)
1877
+ */
1878
+ declare const ExecutionsTTLCleanupSubject = "maintenance.executions.cleanup";
1635
1879
  /**
1636
1880
  * Agent Instance Management
1637
1881
  */
@@ -1869,4 +2113,4 @@ interface PublicWidgetConfig {
1869
2113
  behavior: WidgetBehavior;
1870
2114
  }
1871
2115
 
1872
- export { type Agent, AgentChatCreateSubject, AgentChatGetSubject, AgentChatUpdateSubject, AgentChatValidateSubject, AgentCloneSubject, type AgentContext, type AgentContextConfig, AgentCreateSubject, AgentCreatedSubject, AgentDeleteSubject, AgentDeletedSubject, AgentEnsureDefaultSubject, AgentExecuteStatusSubject, AgentExecuteStopSubject, AgentExecuteSubject, type AgentExecution, AgentExportSubject, type AgentFilters, AgentFromTemplateSubject, AgentGetByOrgSubject, AgentGetDefaultSubject, AgentGetSubject, AgentImportSubject, AgentInstanceCancelPlanSubject, AgentInstanceClearHistorySubject, AgentInstanceCreatePlanSubject, AgentInstanceCreateSubject, AgentInstanceCreatedSubject, AgentInstanceDeleteSubject, AgentInstanceDeletedSubject, AgentInstanceExecutePlanSubject, AgentInstanceGetHistorySubject, AgentInstanceGetSubject, AgentInstanceListSubject, AgentInstancePausePlanSubject, AgentInstanceResumePlanSubject, AgentInstanceUpdateSubject, AgentInstanceUpdatedSubject, type AgentJob, AgentJobCreateSubject, AgentJobDeleteSubject, AgentJobGetSubject, type AgentJobIDRequest, AgentJobListSubject, AgentJobPauseSubject, type AgentJobResponse, AgentJobResumeSubject, type AgentJobTriggerRequest, type AgentJobTriggerResponse, AgentJobTriggerSubject, AgentJobUpdateSubject, type AgentJobsListResponse, AgentListSubject, AgentListSummarySubject, AgentReactCreateSubject, AgentReactGetSubject, AgentReactUpdateSubject, AgentReactValidateSubject, type AgentResponse, AgentSearchSubject, type AgentSkill, type AgentStatus, AgentStatusActive, AgentStatusArchived, AgentStatusDraft, AgentStatusInactive, type AgentStatusTS, type AgentSubType, AgentSubTypeChat, AgentSubTypeDocument, AgentSubTypeReact, type AgentSubTypeTS, AgentSubTypeWorkflow, type AgentSummary, AgentTemplateGetSubject, AgentTemplateListSubject, type AgentTool, type AgentToolConfiguration, type AgentType, AgentTypeChat, AgentTypeReact, type AgentTypeTS, AgentUpdateOrgSubject, AgentUpdateSubject, AgentUpdatedSubject, AgentVersionActivateSubject, AgentVersionActivatedSubject, AgentVersionCreateSubject, AgentVersionCreatedSubject, AgentVersionGetSubject, AgentVersionListSubject, type AgentWidget, type AgentWidgetResponse, AgentWidgetsCreateSubject, AgentWidgetsDeleteSubject, AgentWidgetsGetByWidgetID, AgentWidgetsGetDefaultSubject, AgentWidgetsGetSubject, AgentWidgetsListSubject, AgentWidgetsSetDefaultSubject, AgentWidgetsUpdateSubject, type CSATAnswer, type CSATConfig, type CSATQuestion, type CSATResponse, type CSATSurvey, ChatAgentExecuteSubject, ChatAgentStatusSubject, type CreateAgentJobRequest, type CreateAgentRequest, type CreateAgentWidgetRequest, type CreateExecutionPlanRequest, type CreateExecutionPlanResponse, type CreateSkillRequest, type CreateSubAgentRequest, type CreateToolDefinitionRequest, type DefaultDefinitions, type DeleteAgentRequest, type DeleteAgentWidgetRequest, type DeleteSkillRequest, type DeleteSubAgentRequest, type DeleteToolDefinitionRequest, type ExecutePlanRequest, type ExecutePlanResponse, type ExecuteToolRequest, type ExecuteToolResponse, type ExecutionMode, ExecutionModeAsync, ExecutionModeAsyncClient, ExecutionModeSync, type ExecutionModeTS, type ExecutionPlan, type ExecutionStatus, ExecutionStatusCompleted, ExecutionStatusFailed, ExecutionStatusPending, ExecutionStatusRunning, ExecutionStatusSkipped, type ExecutionStatusTS, ExecutionTTLHours, type GetAgentRequest, type GetAgentWidgetRequest, type GetDefaultAgentRequest, type GetDefaultWidgetRequest, type GetSkillRequest, type GetSkillsByIDsRequest, type GetSkillsByIDsResponse, type GetSubAgentRequest, type GetSubAgentsByIDsRequest, type GetSubAgentsByIDsResponse, type GetToolDefinitionRequest, type GetToolDefinitionsByIDsRequest, type GetToolDefinitionsByIDsResponse, type GetWidgetByWidgetIDRequest, type GetWidgetConfigRequest, type GetWidgetConfigResponse, type HandoffConfig, type IntegrationProviderTS, type IntegrationRequirement, type IntegrationTypeTS, type JobExecutionResult, type JobFrequency, JobFrequencyOneTime, JobFrequencySchedule, type JobFrequencyTS, type JobScope, JobScopeOrg, JobScopePrivate, type JobScopeTS, JobScopeTeam, type JobStatus, JobStatusActive, JobStatusDisabled, JobStatusPaused, type JobStatusTS, type ListAgentJobsRequest, type ListAgentWidgetsRequest, type ListAgentWidgetsResponse, type ListAgentsRequest, type ListAgentsResponse, type ListAgentsSummaryRequest, type ListAgentsSummaryResponse, type ListSkillsRequest, type ListSubAgentsRequest, type ListToolDefinitionsRequest, type MCPServerConfig, MaxExecutions, type MergeConfig, type MergeStrategy, MergeStrategyAppend, MergeStrategyMerge, MergeStrategyReplace, type MergeStrategyTS, type PlanApprovalConfig, type PlanStatus, PlanStatusApproved, PlanStatusCancelled, PlanStatusCompleted, PlanStatusExecuting, PlanStatusPendingApproval, PlanStatusRejected, type PlanStatusTS, type PlannedStep, type ProcessJobTriggerResult, type PublicWidgetConfig, type ReactAgentConfig, ReactAgentExecuteSubject, ReactAgentStatusSubject, ReactAgentStopSubject, type RetryPolicy, type SaveWidgetConfigRequest, type SaveWidgetConfigResponse, type SetDefaultWidgetRequest, type Skill, type SkillCategory, SkillCategoryAnalysis, SkillCategoryCommunication, SkillCategoryCreative, SkillCategoryCustom, SkillCategoryIntegration, SkillCategoryProductivity, type SkillCategoryTS, type SkillResponse, SkillsCreateSubject, SkillsCreatedSubject, SkillsDeleteSubject, SkillsDeletedSubject, SkillsGetByIDsSubject, SkillsGetSubject, type SkillsListResponse, SkillsListSubject, SkillsUpdateSubject, SkillsUpdatedSubject, type SubAgent, type SubAgentResponse, SubAgentsCreateSubject, SubAgentsCreatedSubject, SubAgentsDeleteSubject, SubAgentsDeletedSubject, SubAgentsExecuteSubject, SubAgentsGetByIDsSubject, SubAgentsGetSubject, type SubAgentsListResponse, SubAgentsListSubject, SubAgentsUpdateSubject, SubAgentsUpdatedSubject, SubAgentsValidateSubject, type ToolConfig, type ToolDefinition, type ToolDefinitionResponse, ToolDefinitionsCreateSubject, ToolDefinitionsCreatedSubject, ToolDefinitionsDeleteSubject, ToolDefinitionsDeletedSubject, ToolDefinitionsExecuteSubject, ToolDefinitionsGetByIDsSubject, ToolDefinitionsGetSubject, type ToolDefinitionsListResponse, ToolDefinitionsListSubject, ToolDefinitionsUpdateSubject, ToolDefinitionsUpdatedSubject, ToolDefinitionsValidateSubject, type ToolExecution, type ToolExecutionPolicy, type ToolExecutionProgress, type ToolExecutionStatus, ToolExecutionStatusCompleted, ToolExecutionStatusExecuting, ToolExecutionStatusFailed, ToolExecutionStatusSkipped, ToolExecutionStatusStarted, type ToolExecutionStatusTS, ToolExecutionStatusTimeout, type UpdateAgentJobRequest, type UpdateAgentRequest, type UpdateAgentWidgetRequest, type UpdateOrgAgentsRequest, type UpdateOrgAgentsResponse, type UpdateSkillRequest, type UpdateSubAgentRequest, type UpdateToolDefinitionRequest, type UserSuggestedAction, type UserSuggestedActionsConfig, type UserSuggestedActionsRequest, type UserSuggestedActionsResponse, type ValidationError, type ValidationErrors, type WidgetAppearance, type WidgetBehavior, type WidgetConfig, WidgetConfigGetByAgentSubject, WidgetConfigSaveSubject, type WidgetSecurity, WorkflowAgentGetSubject, WorkflowAgentUpdateSubject };
2116
+ export { type Agent, AgentChatCreateSubject, AgentChatGetSubject, AgentChatUpdateSubject, AgentChatValidateSubject, AgentCloneSubject, type AgentContext, type AgentContextConfig, AgentCreateSubject, AgentCreatedSubject, AgentDeleteSubject, AgentDeletedSubject, AgentEnsureDefaultSubject, AgentExecuteStatusSubject, AgentExecuteStopSubject, AgentExecuteSubject, type AgentExecution, AgentExportSubject, type AgentFilters, AgentFromTemplateSubject, AgentGetByOrgSubject, AgentGetDefaultSubject, AgentGetSubject, AgentImportSubject, AgentInstanceCancelPlanSubject, AgentInstanceClearHistorySubject, AgentInstanceCreatePlanSubject, AgentInstanceCreateSubject, AgentInstanceCreatedSubject, AgentInstanceDeleteSubject, AgentInstanceDeletedSubject, AgentInstanceExecutePlanSubject, AgentInstanceGetHistorySubject, AgentInstanceGetSubject, AgentInstanceListSubject, AgentInstancePausePlanSubject, AgentInstanceResumePlanSubject, AgentInstanceUpdateSubject, AgentInstanceUpdatedSubject, type AgentJob, AgentJobCreateSubject, AgentJobDeleteSubject, AgentJobGetSubject, type AgentJobIDRequest, AgentJobListSubject, AgentJobPauseSubject, type AgentJobResponse, AgentJobResumeSubject, type AgentJobTriggerRequest, type AgentJobTriggerResponse, AgentJobTriggerSubject, AgentJobUpdateSubject, type AgentJobsListResponse, AgentListSubject, AgentListSummarySubject, AgentReactCreateSubject, AgentReactGetSubject, AgentReactUpdateSubject, AgentReactValidateSubject, type AgentResponse, AgentSearchSubject, type AgentSkill, type AgentStatus, AgentStatusActive, AgentStatusArchived, AgentStatusDraft, AgentStatusInactive, type AgentStatusTS, type AgentSubType, AgentSubTypeChat, AgentSubTypeDocument, AgentSubTypeReact, type AgentSubTypeTS, AgentSubTypeWorkflow, type AgentSummary, AgentTemplateGetSubject, AgentTemplateListSubject, type AgentTool, type AgentToolConfiguration, type AgentType, AgentTypeChat, AgentTypeReact, type AgentTypeTS, AgentUpdateOrgSubject, AgentUpdateSubject, AgentUpdatedSubject, AgentVersionActivateSubject, AgentVersionActivatedSubject, AgentVersionCreateSubject, AgentVersionCreatedSubject, AgentVersionGetSubject, AgentVersionListSubject, type AgentWidget, type AgentWidgetResponse, AgentWidgetsCreateSubject, AgentWidgetsDeleteSubject, AgentWidgetsGetByWidgetID, AgentWidgetsGetDefaultSubject, AgentWidgetsGetSubject, AgentWidgetsListSubject, AgentWidgetsSetDefaultSubject, AgentWidgetsUpdateSubject, type ArtifactRef, type CSATAnswer, type CSATConfig, type CSATQuestion, type CSATResponse, type CSATSurvey, ChatAgentExecuteSubject, ChatAgentStatusSubject, type CreateAgentJobRequest, type CreateAgentRequest, type CreateAgentWidgetRequest, type CreateExecutionPlanRequest, type CreateExecutionPlanResponse, type CreateSkillRequest, type CreateSubAgentRequest, type CreateToolDefinitionRequest, type DefaultDefinitions, type DeleteAgentRequest, type DeleteAgentWidgetRequest, type DeleteSkillRequest, type DeleteSubAgentRequest, type DeleteToolDefinitionRequest, type ExecuteJobAgentConfig, type ExecuteJobRequest, type ExecutePlanRequest, type ExecutePlanResponse, type ExecuteToolRequest, type ExecuteToolResponse, type ExecutionCompletedEvent, type ExecutionMode, ExecutionModeAsync, ExecutionModeAsyncClient, ExecutionModeSync, type ExecutionModeTS, type ExecutionPlan, type ExecutionResponse, type ExecutionStatus, ExecutionStatusCompleted, ExecutionStatusFailed, ExecutionStatusPending, ExecutionStatusRunning, ExecutionStatusSkipped, type ExecutionStatusTS, ExecutionTTLHours, ExecutionsTTLCleanupSubject, type GetAgentRequest, type GetAgentWidgetRequest, type GetDefaultAgentRequest, type GetDefaultWidgetRequest, type GetExecutionRequest, type GetSkillRequest, type GetSkillsByIDsRequest, type GetSkillsByIDsResponse, type GetSubAgentRequest, type GetSubAgentsByIDsRequest, type GetSubAgentsByIDsResponse, type GetToolDefinitionRequest, type GetToolDefinitionsByIDsRequest, type GetToolDefinitionsByIDsResponse, type GetWidgetByWidgetIDRequest, type GetWidgetConfigRequest, type GetWidgetConfigResponse, type HandoffConfig, type IntegrationProviderTS, type IntegrationRequirement, type IntegrationTypeTS, type JobExecution, JobExecutionGetSubject, JobExecutionListSubject, type JobExecutionResult, type JobExecutionStatus, JobExecutionStatusFailed, JobExecutionStatusRunning, JobExecutionStatusSuccess, type JobExecutionStatusTS, JobExecutionStatusTimedOut, type JobFrequency, JobFrequencyOneTime, JobFrequencySchedule, type JobFrequencyTS, type JobScope, JobScopeOrg, JobScopePrivate, type JobScopeTS, JobScopeTeam, type JobStatus, JobStatusActive, JobStatusDisabled, JobStatusExecuting, JobStatusPaused, type JobStatusTS, type ListAgentJobsRequest, type ListAgentWidgetsRequest, type ListAgentWidgetsResponse, type ListAgentsRequest, type ListAgentsResponse, type ListAgentsSummaryRequest, type ListAgentsSummaryResponse, type ListExecutionsByAgentRequest, type ListExecutionsByJobRequest, type ListExecutionsResponse, type ListSkillsRequest, type ListSubAgentsRequest, type ListToolDefinitionsRequest, type MCPServerConfig, MaxExecutions, type MergeConfig, type MergeStrategy, MergeStrategyAppend, MergeStrategyMerge, MergeStrategyReplace, type MergeStrategyTS, type PlanApprovalConfig, type PlanStatus, PlanStatusApproved, PlanStatusCancelled, PlanStatusCompleted, PlanStatusExecuting, PlanStatusPendingApproval, PlanStatusRejected, type PlanStatusTS, type PlannedStep, type ProcessJobTriggerResult, type PublicWidgetConfig, type ReactAgentConfig, ReactAgentExecuteSubject, ReactAgentStatusSubject, ReactAgentStopSubject, type RetryPolicy, RuntimeJobCompletedSubject, RuntimeJobExecuteSubject, type SaveWidgetConfigRequest, type SaveWidgetConfigResponse, type SetDefaultWidgetRequest, type Skill, type SkillCategory, SkillCategoryAnalysis, SkillCategoryCommunication, SkillCategoryCreative, SkillCategoryCustom, SkillCategoryIntegration, SkillCategoryProductivity, type SkillCategoryTS, type SkillResponse, type SkillUserConfig, SkillsCreateSubject, SkillsCreatedSubject, SkillsDeleteSubject, SkillsDeletedSubject, SkillsGetByIDsSubject, SkillsGetSubject, type SkillsListResponse, SkillsListSubject, SkillsUpdateSubject, SkillsUpdatedSubject, type SubAgent, type SubAgentResponse, SubAgentsCreateSubject, SubAgentsCreatedSubject, SubAgentsDeleteSubject, SubAgentsDeletedSubject, SubAgentsExecuteSubject, SubAgentsGetByIDsSubject, SubAgentsGetSubject, type SubAgentsListResponse, SubAgentsListSubject, SubAgentsUpdateSubject, SubAgentsUpdatedSubject, SubAgentsValidateSubject, type TTLCleanupRequest, type TTLCleanupResponse, type ToolConfig, type ToolDefinition, type ToolDefinitionResponse, ToolDefinitionsCreateSubject, ToolDefinitionsCreatedSubject, ToolDefinitionsDeleteSubject, ToolDefinitionsDeletedSubject, ToolDefinitionsExecuteSubject, ToolDefinitionsGetByIDsSubject, ToolDefinitionsGetSubject, type ToolDefinitionsListResponse, ToolDefinitionsListSubject, ToolDefinitionsUpdateSubject, ToolDefinitionsUpdatedSubject, ToolDefinitionsValidateSubject, type ToolExecution, type ToolExecutionPolicy, type ToolExecutionProgress, type ToolExecutionStatus, ToolExecutionStatusCompleted, ToolExecutionStatusExecuting, ToolExecutionStatusFailed, ToolExecutionStatusSkipped, ToolExecutionStatusStarted, type ToolExecutionStatusTS, ToolExecutionStatusTimeout, type UpdateAgentJobRequest, type UpdateAgentRequest, type UpdateAgentWidgetRequest, type UpdateOrgAgentsRequest, type UpdateOrgAgentsResponse, type UpdateSkillRequest, type UpdateSubAgentRequest, type UpdateToolDefinitionRequest, type UserSuggestedAction, type UserSuggestedActionsConfig, type UserSuggestedActionsRequest, type UserSuggestedActionsResponse, type ValidationError, type ValidationErrors, type WidgetAppearance, type WidgetBehavior, type WidgetConfig, WidgetConfigGetByAgentSubject, WidgetConfigSaveSubject, type WidgetSecurity, WorkflowAgentGetSubject, WorkflowAgentUpdateSubject };
package/dist/index.d.ts CHANGED
@@ -566,6 +566,63 @@ interface AgentJobTriggerResponse {
566
566
  errors: number;
567
567
  metadata: any;
568
568
  }
569
+ /**
570
+ * ListExecutionsByJobRequest represents a request to list executions for a job
571
+ */
572
+ interface ListExecutionsByJobRequest {
573
+ orgId: string;
574
+ jobId: string;
575
+ limit?: number;
576
+ offset?: number;
577
+ }
578
+ /**
579
+ * ListExecutionsByAgentRequest represents a request to list executions for an agent
580
+ */
581
+ interface ListExecutionsByAgentRequest {
582
+ orgId: string;
583
+ agentId: string;
584
+ limit?: number;
585
+ offset?: number;
586
+ }
587
+ /**
588
+ * ListExecutionsResponse represents the response with executions list
589
+ */
590
+ interface ListExecutionsResponse {
591
+ executions: JobExecution[];
592
+ total: number;
593
+ metadata: any;
594
+ }
595
+ /**
596
+ * GetExecutionRequest represents a request to get an execution
597
+ */
598
+ interface GetExecutionRequest {
599
+ orgId: string;
600
+ executionId: string;
601
+ }
602
+ /**
603
+ * ExecutionResponse represents the response with a single execution
604
+ */
605
+ interface ExecutionResponse {
606
+ execution?: JobExecution;
607
+ metadata: any;
608
+ }
609
+ /**
610
+ * TTLCleanupRequest represents a request to run TTL cleanup
611
+ */
612
+ interface TTLCleanupRequest {
613
+ retentionDays?: number;
614
+ }
615
+ /**
616
+ * TTLCleanupResponse represents the response from TTL cleanup
617
+ */
618
+ interface TTLCleanupResponse {
619
+ totalDeleted: number;
620
+ orgResults?: {
621
+ [key: string]: number;
622
+ };
623
+ duration: string;
624
+ metadata: any;
625
+ }
569
626
  type AgentTypeTS = 'chat' | 'react';
570
627
  type AgentSubTypeTS = 'chat' | 'react' | 'workflow' | 'document';
571
628
  type AgentStatusTS = 'draft' | 'active' | 'inactive' | 'archived';
@@ -603,8 +660,16 @@ interface Skill {
603
660
  tools?: AgentTool[];
604
661
  systemPromptExtension?: string;
605
662
  iconName?: string;
606
- configSchema?: JSONSchema;
607
- config?: {
663
+ /**
664
+ * Config schemas for each level (JSON Schema definitions)
665
+ */
666
+ orgConfigSchema?: JSONSchema;
667
+ agentConfigSchema?: JSONSchema;
668
+ userConfigSchema?: JSONSchema;
669
+ /**
670
+ * Org-level config values
671
+ */
672
+ orgConfig?: {
608
673
  [key: string]: any;
609
674
  };
610
675
  requiredIntegrations?: IntegrationRequirement[];
@@ -623,6 +688,26 @@ interface AgentSkill {
623
688
  skillName?: string;
624
689
  enabled: boolean;
625
690
  order?: number;
691
+ config?: {
692
+ [key: string]: any;
693
+ };
694
+ }
695
+ /**
696
+ * SkillUserConfig represents user-level configuration for a skill
697
+ * Stores OAuth tokens, user preferences, and per-agent overrides
698
+ */
699
+ interface SkillUserConfig {
700
+ id: string;
701
+ userId: string;
702
+ skillId: string;
703
+ agentId?: string;
704
+ enabled: boolean;
705
+ displayOrder?: number;
706
+ config?: {
707
+ [key: string]: any;
708
+ };
709
+ createdAt: string;
710
+ updatedAt: string;
626
711
  }
627
712
  type AgentType = string;
628
713
  declare const AgentTypeChat: AgentType;
@@ -1049,8 +1134,9 @@ interface SaveWidgetConfigResponse {
1049
1134
  metadata: any;
1050
1135
  }
1051
1136
  type JobScopeTS = 'private' | 'team' | 'org';
1052
- type JobStatusTS = 'active' | 'paused' | 'disabled';
1137
+ type JobStatusTS = 'active' | 'executing' | 'paused' | 'disabled';
1053
1138
  type JobFrequencyTS = 'one-time' | 'schedule';
1139
+ type JobExecutionStatusTS = 'running' | 'success' | 'failed' | 'timed_out';
1054
1140
  /**
1055
1141
  * JobScope defines who can see and use the job
1056
1142
  */
@@ -1063,6 +1149,7 @@ declare const JobScopeOrg: JobScope;
1063
1149
  */
1064
1150
  type JobStatus = string;
1065
1151
  declare const JobStatusActive: JobStatus;
1152
+ declare const JobStatusExecuting: JobStatus;
1066
1153
  declare const JobStatusPaused: JobStatus;
1067
1154
  declare const JobStatusDisabled: JobStatus;
1068
1155
  /**
@@ -1111,12 +1198,66 @@ interface AgentJob {
1111
1198
  */
1112
1199
  consecutiveFailures: number;
1113
1200
  disabledUntil?: string;
1201
+ /**
1202
+ * Execution tracking (updated by Runtime Service)
1203
+ */
1204
+ lastExecutionId?: string;
1205
+ lastExecutionStatus?: string;
1206
+ lastExecutedAt?: string;
1114
1207
  /**
1115
1208
  * Audit fields
1116
1209
  */
1117
1210
  createdAt: string;
1118
1211
  updatedAt: string;
1119
1212
  }
1213
+ /**
1214
+ * JobExecutionStatus defines the status of a job execution
1215
+ */
1216
+ type JobExecutionStatus = string;
1217
+ declare const JobExecutionStatusRunning: JobExecutionStatus;
1218
+ declare const JobExecutionStatusSuccess: JobExecutionStatus;
1219
+ declare const JobExecutionStatusFailed: JobExecutionStatus;
1220
+ declare const JobExecutionStatusTimedOut: JobExecutionStatus;
1221
+ /**
1222
+ * ArtifactRef represents a reference to an artifact produced during execution
1223
+ * Actual files are stored by tools; this just tracks references
1224
+ */
1225
+ interface ArtifactRef {
1226
+ type: string;
1227
+ name: string;
1228
+ path: string;
1229
+ size?: number;
1230
+ }
1231
+ /**
1232
+ * JobExecution represents a single execution of an agent job
1233
+ */
1234
+ interface JobExecution {
1235
+ id: string;
1236
+ jobId: string;
1237
+ agentId: string;
1238
+ /**
1239
+ * Execution status
1240
+ */
1241
+ status: JobExecutionStatusTS;
1242
+ startedAt: string;
1243
+ completedAt?: string;
1244
+ /**
1245
+ * Execution metrics
1246
+ */
1247
+ roundsExecuted: number;
1248
+ totalTokens: number;
1249
+ /**
1250
+ * Results
1251
+ */
1252
+ result?: any;
1253
+ error?: string;
1254
+ artifacts?: ArtifactRef[];
1255
+ metadata?: any;
1256
+ /**
1257
+ * Audit
1258
+ */
1259
+ createdAt: string;
1260
+ }
1120
1261
  /**
1121
1262
  * JobExecutionResult represents the result of processing a single agent job
1122
1263
  */
@@ -1137,6 +1278,89 @@ interface ProcessJobTriggerResult {
1137
1278
  skipped: number;
1138
1279
  errors: number;
1139
1280
  }
1281
+ /**
1282
+ * ExecuteJobRequest is sent to Runtime Service to execute a job
1283
+ */
1284
+ interface ExecuteJobRequest {
1285
+ /**
1286
+ * Execution identification (created by Agents Service before dispatch)
1287
+ */
1288
+ executionId: string;
1289
+ /**
1290
+ * Job identification
1291
+ */
1292
+ jobId: string;
1293
+ agentId: string;
1294
+ orgId: string;
1295
+ /**
1296
+ * Execution context
1297
+ */
1298
+ prompt: string;
1299
+ scope: JobScopeTS;
1300
+ ownerId: string;
1301
+ /**
1302
+ * Agent configuration (denormalized for Runtime)
1303
+ */
1304
+ agentConfig: ExecuteJobAgentConfig;
1305
+ /**
1306
+ * Execution settings
1307
+ */
1308
+ timeoutMinutes?: number;
1309
+ metadata?: {
1310
+ [key: string]: any;
1311
+ };
1312
+ }
1313
+ /**
1314
+ * ExecuteJobAgentConfig contains agent configuration needed for execution
1315
+ */
1316
+ interface ExecuteJobAgentConfig {
1317
+ provider: string;
1318
+ model: string;
1319
+ temperature: number;
1320
+ maxTokens: number;
1321
+ systemPrompt: string;
1322
+ tools?: AgentTool[];
1323
+ skills?: AgentSkill[];
1324
+ }
1325
+ /**
1326
+ * ExecutionCompletedEvent is received from Runtime Service when execution completes
1327
+ */
1328
+ interface ExecutionCompletedEvent {
1329
+ /**
1330
+ * Identification
1331
+ */
1332
+ executionId: string;
1333
+ jobId: string;
1334
+ orgId: string;
1335
+ /**
1336
+ * Status: "success", "failed", "timed_out"
1337
+ */
1338
+ status: string;
1339
+ /**
1340
+ * Results (present on success)
1341
+ */
1342
+ result?: any;
1343
+ artifacts?: ArtifactRef[];
1344
+ /**
1345
+ * Error info (present on failure)
1346
+ */
1347
+ error?: string;
1348
+ /**
1349
+ * Metrics
1350
+ */
1351
+ roundsExecuted: number;
1352
+ totalTokens: number;
1353
+ /**
1354
+ * Timing
1355
+ */
1356
+ completedAt: string;
1357
+ /**
1358
+ * Additional context
1359
+ */
1360
+ metadata?: {
1361
+ [key: string]: any;
1362
+ };
1363
+ }
1140
1364
  /**
1141
1365
  * CSAT Configuration
1142
1366
  */
@@ -1632,6 +1856,26 @@ declare const AgentJobResumeSubject = "agents.jobs.resume";
1632
1856
  * Job Trigger (from Scheduler Service)
1633
1857
  */
1634
1858
  declare const AgentJobTriggerSubject = "agents.job.trigger";
1859
+ /**
1860
+ * Execution Query Operations
1861
+ */
1862
+ declare const JobExecutionGetSubject = "agents.executions.get";
1863
+ /**
1864
+ * Job Execution Management
1865
+ */
1866
+ declare const JobExecutionListSubject = "agents.executions.list";
1867
+ /**
1868
+ * Runtime Service Communication
1869
+ */
1870
+ declare const RuntimeJobExecuteSubject = "runtime.job.execute";
1871
+ /**
1872
+ * Job Execution Management
1873
+ */
1874
+ declare const RuntimeJobCompletedSubject = "runtime.job.completed";
1875
+ /**
1876
+ * TTL Cleanup (triggered by Scheduler)
1877
+ */
1878
+ declare const ExecutionsTTLCleanupSubject = "maintenance.executions.cleanup";
1635
1879
  /**
1636
1880
  * Agent Instance Management
1637
1881
  */
@@ -1869,4 +2113,4 @@ interface PublicWidgetConfig {
1869
2113
  behavior: WidgetBehavior;
1870
2114
  }
1871
2115
 
1872
- export { type Agent, AgentChatCreateSubject, AgentChatGetSubject, AgentChatUpdateSubject, AgentChatValidateSubject, AgentCloneSubject, type AgentContext, type AgentContextConfig, AgentCreateSubject, AgentCreatedSubject, AgentDeleteSubject, AgentDeletedSubject, AgentEnsureDefaultSubject, AgentExecuteStatusSubject, AgentExecuteStopSubject, AgentExecuteSubject, type AgentExecution, AgentExportSubject, type AgentFilters, AgentFromTemplateSubject, AgentGetByOrgSubject, AgentGetDefaultSubject, AgentGetSubject, AgentImportSubject, AgentInstanceCancelPlanSubject, AgentInstanceClearHistorySubject, AgentInstanceCreatePlanSubject, AgentInstanceCreateSubject, AgentInstanceCreatedSubject, AgentInstanceDeleteSubject, AgentInstanceDeletedSubject, AgentInstanceExecutePlanSubject, AgentInstanceGetHistorySubject, AgentInstanceGetSubject, AgentInstanceListSubject, AgentInstancePausePlanSubject, AgentInstanceResumePlanSubject, AgentInstanceUpdateSubject, AgentInstanceUpdatedSubject, type AgentJob, AgentJobCreateSubject, AgentJobDeleteSubject, AgentJobGetSubject, type AgentJobIDRequest, AgentJobListSubject, AgentJobPauseSubject, type AgentJobResponse, AgentJobResumeSubject, type AgentJobTriggerRequest, type AgentJobTriggerResponse, AgentJobTriggerSubject, AgentJobUpdateSubject, type AgentJobsListResponse, AgentListSubject, AgentListSummarySubject, AgentReactCreateSubject, AgentReactGetSubject, AgentReactUpdateSubject, AgentReactValidateSubject, type AgentResponse, AgentSearchSubject, type AgentSkill, type AgentStatus, AgentStatusActive, AgentStatusArchived, AgentStatusDraft, AgentStatusInactive, type AgentStatusTS, type AgentSubType, AgentSubTypeChat, AgentSubTypeDocument, AgentSubTypeReact, type AgentSubTypeTS, AgentSubTypeWorkflow, type AgentSummary, AgentTemplateGetSubject, AgentTemplateListSubject, type AgentTool, type AgentToolConfiguration, type AgentType, AgentTypeChat, AgentTypeReact, type AgentTypeTS, AgentUpdateOrgSubject, AgentUpdateSubject, AgentUpdatedSubject, AgentVersionActivateSubject, AgentVersionActivatedSubject, AgentVersionCreateSubject, AgentVersionCreatedSubject, AgentVersionGetSubject, AgentVersionListSubject, type AgentWidget, type AgentWidgetResponse, AgentWidgetsCreateSubject, AgentWidgetsDeleteSubject, AgentWidgetsGetByWidgetID, AgentWidgetsGetDefaultSubject, AgentWidgetsGetSubject, AgentWidgetsListSubject, AgentWidgetsSetDefaultSubject, AgentWidgetsUpdateSubject, type CSATAnswer, type CSATConfig, type CSATQuestion, type CSATResponse, type CSATSurvey, ChatAgentExecuteSubject, ChatAgentStatusSubject, type CreateAgentJobRequest, type CreateAgentRequest, type CreateAgentWidgetRequest, type CreateExecutionPlanRequest, type CreateExecutionPlanResponse, type CreateSkillRequest, type CreateSubAgentRequest, type CreateToolDefinitionRequest, type DefaultDefinitions, type DeleteAgentRequest, type DeleteAgentWidgetRequest, type DeleteSkillRequest, type DeleteSubAgentRequest, type DeleteToolDefinitionRequest, type ExecutePlanRequest, type ExecutePlanResponse, type ExecuteToolRequest, type ExecuteToolResponse, type ExecutionMode, ExecutionModeAsync, ExecutionModeAsyncClient, ExecutionModeSync, type ExecutionModeTS, type ExecutionPlan, type ExecutionStatus, ExecutionStatusCompleted, ExecutionStatusFailed, ExecutionStatusPending, ExecutionStatusRunning, ExecutionStatusSkipped, type ExecutionStatusTS, ExecutionTTLHours, type GetAgentRequest, type GetAgentWidgetRequest, type GetDefaultAgentRequest, type GetDefaultWidgetRequest, type GetSkillRequest, type GetSkillsByIDsRequest, type GetSkillsByIDsResponse, type GetSubAgentRequest, type GetSubAgentsByIDsRequest, type GetSubAgentsByIDsResponse, type GetToolDefinitionRequest, type GetToolDefinitionsByIDsRequest, type GetToolDefinitionsByIDsResponse, type GetWidgetByWidgetIDRequest, type GetWidgetConfigRequest, type GetWidgetConfigResponse, type HandoffConfig, type IntegrationProviderTS, type IntegrationRequirement, type IntegrationTypeTS, type JobExecutionResult, type JobFrequency, JobFrequencyOneTime, JobFrequencySchedule, type JobFrequencyTS, type JobScope, JobScopeOrg, JobScopePrivate, type JobScopeTS, JobScopeTeam, type JobStatus, JobStatusActive, JobStatusDisabled, JobStatusPaused, type JobStatusTS, type ListAgentJobsRequest, type ListAgentWidgetsRequest, type ListAgentWidgetsResponse, type ListAgentsRequest, type ListAgentsResponse, type ListAgentsSummaryRequest, type ListAgentsSummaryResponse, type ListSkillsRequest, type ListSubAgentsRequest, type ListToolDefinitionsRequest, type MCPServerConfig, MaxExecutions, type MergeConfig, type MergeStrategy, MergeStrategyAppend, MergeStrategyMerge, MergeStrategyReplace, type MergeStrategyTS, type PlanApprovalConfig, type PlanStatus, PlanStatusApproved, PlanStatusCancelled, PlanStatusCompleted, PlanStatusExecuting, PlanStatusPendingApproval, PlanStatusRejected, type PlanStatusTS, type PlannedStep, type ProcessJobTriggerResult, type PublicWidgetConfig, type ReactAgentConfig, ReactAgentExecuteSubject, ReactAgentStatusSubject, ReactAgentStopSubject, type RetryPolicy, type SaveWidgetConfigRequest, type SaveWidgetConfigResponse, type SetDefaultWidgetRequest, type Skill, type SkillCategory, SkillCategoryAnalysis, SkillCategoryCommunication, SkillCategoryCreative, SkillCategoryCustom, SkillCategoryIntegration, SkillCategoryProductivity, type SkillCategoryTS, type SkillResponse, SkillsCreateSubject, SkillsCreatedSubject, SkillsDeleteSubject, SkillsDeletedSubject, SkillsGetByIDsSubject, SkillsGetSubject, type SkillsListResponse, SkillsListSubject, SkillsUpdateSubject, SkillsUpdatedSubject, type SubAgent, type SubAgentResponse, SubAgentsCreateSubject, SubAgentsCreatedSubject, SubAgentsDeleteSubject, SubAgentsDeletedSubject, SubAgentsExecuteSubject, SubAgentsGetByIDsSubject, SubAgentsGetSubject, type SubAgentsListResponse, SubAgentsListSubject, SubAgentsUpdateSubject, SubAgentsUpdatedSubject, SubAgentsValidateSubject, type ToolConfig, type ToolDefinition, type ToolDefinitionResponse, ToolDefinitionsCreateSubject, ToolDefinitionsCreatedSubject, ToolDefinitionsDeleteSubject, ToolDefinitionsDeletedSubject, ToolDefinitionsExecuteSubject, ToolDefinitionsGetByIDsSubject, ToolDefinitionsGetSubject, type ToolDefinitionsListResponse, ToolDefinitionsListSubject, ToolDefinitionsUpdateSubject, ToolDefinitionsUpdatedSubject, ToolDefinitionsValidateSubject, type ToolExecution, type ToolExecutionPolicy, type ToolExecutionProgress, type ToolExecutionStatus, ToolExecutionStatusCompleted, ToolExecutionStatusExecuting, ToolExecutionStatusFailed, ToolExecutionStatusSkipped, ToolExecutionStatusStarted, type ToolExecutionStatusTS, ToolExecutionStatusTimeout, type UpdateAgentJobRequest, type UpdateAgentRequest, type UpdateAgentWidgetRequest, type UpdateOrgAgentsRequest, type UpdateOrgAgentsResponse, type UpdateSkillRequest, type UpdateSubAgentRequest, type UpdateToolDefinitionRequest, type UserSuggestedAction, type UserSuggestedActionsConfig, type UserSuggestedActionsRequest, type UserSuggestedActionsResponse, type ValidationError, type ValidationErrors, type WidgetAppearance, type WidgetBehavior, type WidgetConfig, WidgetConfigGetByAgentSubject, WidgetConfigSaveSubject, type WidgetSecurity, WorkflowAgentGetSubject, WorkflowAgentUpdateSubject };
2116
+ export { type Agent, AgentChatCreateSubject, AgentChatGetSubject, AgentChatUpdateSubject, AgentChatValidateSubject, AgentCloneSubject, type AgentContext, type AgentContextConfig, AgentCreateSubject, AgentCreatedSubject, AgentDeleteSubject, AgentDeletedSubject, AgentEnsureDefaultSubject, AgentExecuteStatusSubject, AgentExecuteStopSubject, AgentExecuteSubject, type AgentExecution, AgentExportSubject, type AgentFilters, AgentFromTemplateSubject, AgentGetByOrgSubject, AgentGetDefaultSubject, AgentGetSubject, AgentImportSubject, AgentInstanceCancelPlanSubject, AgentInstanceClearHistorySubject, AgentInstanceCreatePlanSubject, AgentInstanceCreateSubject, AgentInstanceCreatedSubject, AgentInstanceDeleteSubject, AgentInstanceDeletedSubject, AgentInstanceExecutePlanSubject, AgentInstanceGetHistorySubject, AgentInstanceGetSubject, AgentInstanceListSubject, AgentInstancePausePlanSubject, AgentInstanceResumePlanSubject, AgentInstanceUpdateSubject, AgentInstanceUpdatedSubject, type AgentJob, AgentJobCreateSubject, AgentJobDeleteSubject, AgentJobGetSubject, type AgentJobIDRequest, AgentJobListSubject, AgentJobPauseSubject, type AgentJobResponse, AgentJobResumeSubject, type AgentJobTriggerRequest, type AgentJobTriggerResponse, AgentJobTriggerSubject, AgentJobUpdateSubject, type AgentJobsListResponse, AgentListSubject, AgentListSummarySubject, AgentReactCreateSubject, AgentReactGetSubject, AgentReactUpdateSubject, AgentReactValidateSubject, type AgentResponse, AgentSearchSubject, type AgentSkill, type AgentStatus, AgentStatusActive, AgentStatusArchived, AgentStatusDraft, AgentStatusInactive, type AgentStatusTS, type AgentSubType, AgentSubTypeChat, AgentSubTypeDocument, AgentSubTypeReact, type AgentSubTypeTS, AgentSubTypeWorkflow, type AgentSummary, AgentTemplateGetSubject, AgentTemplateListSubject, type AgentTool, type AgentToolConfiguration, type AgentType, AgentTypeChat, AgentTypeReact, type AgentTypeTS, AgentUpdateOrgSubject, AgentUpdateSubject, AgentUpdatedSubject, AgentVersionActivateSubject, AgentVersionActivatedSubject, AgentVersionCreateSubject, AgentVersionCreatedSubject, AgentVersionGetSubject, AgentVersionListSubject, type AgentWidget, type AgentWidgetResponse, AgentWidgetsCreateSubject, AgentWidgetsDeleteSubject, AgentWidgetsGetByWidgetID, AgentWidgetsGetDefaultSubject, AgentWidgetsGetSubject, AgentWidgetsListSubject, AgentWidgetsSetDefaultSubject, AgentWidgetsUpdateSubject, type ArtifactRef, type CSATAnswer, type CSATConfig, type CSATQuestion, type CSATResponse, type CSATSurvey, ChatAgentExecuteSubject, ChatAgentStatusSubject, type CreateAgentJobRequest, type CreateAgentRequest, type CreateAgentWidgetRequest, type CreateExecutionPlanRequest, type CreateExecutionPlanResponse, type CreateSkillRequest, type CreateSubAgentRequest, type CreateToolDefinitionRequest, type DefaultDefinitions, type DeleteAgentRequest, type DeleteAgentWidgetRequest, type DeleteSkillRequest, type DeleteSubAgentRequest, type DeleteToolDefinitionRequest, type ExecuteJobAgentConfig, type ExecuteJobRequest, type ExecutePlanRequest, type ExecutePlanResponse, type ExecuteToolRequest, type ExecuteToolResponse, type ExecutionCompletedEvent, type ExecutionMode, ExecutionModeAsync, ExecutionModeAsyncClient, ExecutionModeSync, type ExecutionModeTS, type ExecutionPlan, type ExecutionResponse, type ExecutionStatus, ExecutionStatusCompleted, ExecutionStatusFailed, ExecutionStatusPending, ExecutionStatusRunning, ExecutionStatusSkipped, type ExecutionStatusTS, ExecutionTTLHours, ExecutionsTTLCleanupSubject, type GetAgentRequest, type GetAgentWidgetRequest, type GetDefaultAgentRequest, type GetDefaultWidgetRequest, type GetExecutionRequest, type GetSkillRequest, type GetSkillsByIDsRequest, type GetSkillsByIDsResponse, type GetSubAgentRequest, type GetSubAgentsByIDsRequest, type GetSubAgentsByIDsResponse, type GetToolDefinitionRequest, type GetToolDefinitionsByIDsRequest, type GetToolDefinitionsByIDsResponse, type GetWidgetByWidgetIDRequest, type GetWidgetConfigRequest, type GetWidgetConfigResponse, type HandoffConfig, type IntegrationProviderTS, type IntegrationRequirement, type IntegrationTypeTS, type JobExecution, JobExecutionGetSubject, JobExecutionListSubject, type JobExecutionResult, type JobExecutionStatus, JobExecutionStatusFailed, JobExecutionStatusRunning, JobExecutionStatusSuccess, type JobExecutionStatusTS, JobExecutionStatusTimedOut, type JobFrequency, JobFrequencyOneTime, JobFrequencySchedule, type JobFrequencyTS, type JobScope, JobScopeOrg, JobScopePrivate, type JobScopeTS, JobScopeTeam, type JobStatus, JobStatusActive, JobStatusDisabled, JobStatusExecuting, JobStatusPaused, type JobStatusTS, type ListAgentJobsRequest, type ListAgentWidgetsRequest, type ListAgentWidgetsResponse, type ListAgentsRequest, type ListAgentsResponse, type ListAgentsSummaryRequest, type ListAgentsSummaryResponse, type ListExecutionsByAgentRequest, type ListExecutionsByJobRequest, type ListExecutionsResponse, type ListSkillsRequest, type ListSubAgentsRequest, type ListToolDefinitionsRequest, type MCPServerConfig, MaxExecutions, type MergeConfig, type MergeStrategy, MergeStrategyAppend, MergeStrategyMerge, MergeStrategyReplace, type MergeStrategyTS, type PlanApprovalConfig, type PlanStatus, PlanStatusApproved, PlanStatusCancelled, PlanStatusCompleted, PlanStatusExecuting, PlanStatusPendingApproval, PlanStatusRejected, type PlanStatusTS, type PlannedStep, type ProcessJobTriggerResult, type PublicWidgetConfig, type ReactAgentConfig, ReactAgentExecuteSubject, ReactAgentStatusSubject, ReactAgentStopSubject, type RetryPolicy, RuntimeJobCompletedSubject, RuntimeJobExecuteSubject, type SaveWidgetConfigRequest, type SaveWidgetConfigResponse, type SetDefaultWidgetRequest, type Skill, type SkillCategory, SkillCategoryAnalysis, SkillCategoryCommunication, SkillCategoryCreative, SkillCategoryCustom, SkillCategoryIntegration, SkillCategoryProductivity, type SkillCategoryTS, type SkillResponse, type SkillUserConfig, SkillsCreateSubject, SkillsCreatedSubject, SkillsDeleteSubject, SkillsDeletedSubject, SkillsGetByIDsSubject, SkillsGetSubject, type SkillsListResponse, SkillsListSubject, SkillsUpdateSubject, SkillsUpdatedSubject, type SubAgent, type SubAgentResponse, SubAgentsCreateSubject, SubAgentsCreatedSubject, SubAgentsDeleteSubject, SubAgentsDeletedSubject, SubAgentsExecuteSubject, SubAgentsGetByIDsSubject, SubAgentsGetSubject, type SubAgentsListResponse, SubAgentsListSubject, SubAgentsUpdateSubject, SubAgentsUpdatedSubject, SubAgentsValidateSubject, type TTLCleanupRequest, type TTLCleanupResponse, type ToolConfig, type ToolDefinition, type ToolDefinitionResponse, ToolDefinitionsCreateSubject, ToolDefinitionsCreatedSubject, ToolDefinitionsDeleteSubject, ToolDefinitionsDeletedSubject, ToolDefinitionsExecuteSubject, ToolDefinitionsGetByIDsSubject, ToolDefinitionsGetSubject, type ToolDefinitionsListResponse, ToolDefinitionsListSubject, ToolDefinitionsUpdateSubject, ToolDefinitionsUpdatedSubject, ToolDefinitionsValidateSubject, type ToolExecution, type ToolExecutionPolicy, type ToolExecutionProgress, type ToolExecutionStatus, ToolExecutionStatusCompleted, ToolExecutionStatusExecuting, ToolExecutionStatusFailed, ToolExecutionStatusSkipped, ToolExecutionStatusStarted, type ToolExecutionStatusTS, ToolExecutionStatusTimeout, type UpdateAgentJobRequest, type UpdateAgentRequest, type UpdateAgentWidgetRequest, type UpdateOrgAgentsRequest, type UpdateOrgAgentsResponse, type UpdateSkillRequest, type UpdateSubAgentRequest, type UpdateToolDefinitionRequest, type UserSuggestedAction, type UserSuggestedActionsConfig, type UserSuggestedActionsRequest, type UserSuggestedActionsResponse, type ValidationError, type ValidationErrors, type WidgetAppearance, type WidgetBehavior, type WidgetConfig, WidgetConfigGetByAgentSubject, WidgetConfigSaveSubject, type WidgetSecurity, WorkflowAgentGetSubject, WorkflowAgentUpdateSubject };