@elqnt/agents 1.0.13 → 1.0.15

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
@@ -497,10 +497,81 @@ interface GetSkillsByIDsResponse {
497
497
  skills: Skill[];
498
498
  metadata: any;
499
499
  }
500
+ /**
501
+ * CreateAgentJobRequest represents a request to create an agent job
502
+ */
503
+ interface CreateAgentJobRequest {
504
+ orgId: string;
505
+ job?: AgentJob;
506
+ }
507
+ /**
508
+ * UpdateAgentJobRequest represents a request to update an agent job
509
+ */
510
+ interface UpdateAgentJobRequest {
511
+ orgId: string;
512
+ job?: AgentJob;
513
+ }
514
+ /**
515
+ * AgentJobIDRequest represents a request that only needs org + job ID
516
+ * Used for: Get, Delete, Pause, Resume operations
517
+ */
518
+ interface AgentJobIDRequest {
519
+ orgId: string;
520
+ jobId: string;
521
+ }
522
+ /**
523
+ * ListAgentJobsRequest represents a request to list agent jobs
524
+ */
525
+ interface ListAgentJobsRequest {
526
+ orgId: string;
527
+ agentId?: string;
528
+ ownerId?: string;
529
+ scope?: JobScope;
530
+ status?: JobStatus;
531
+ frequency?: JobFrequency;
532
+ limit?: number;
533
+ offset?: number;
534
+ }
535
+ /**
536
+ * AgentJobResponse represents a response containing an agent job
537
+ */
538
+ interface AgentJobResponse {
539
+ job?: AgentJob;
540
+ metadata: any;
541
+ }
542
+ /**
543
+ * AgentJobsListResponse represents a response containing multiple agent jobs
544
+ */
545
+ interface AgentJobsListResponse {
546
+ jobs: AgentJob[];
547
+ total: number;
548
+ metadata: any;
549
+ }
550
+ /**
551
+ * AgentJobTriggerRequest represents a request from scheduler service to trigger jobs
552
+ */
553
+ interface AgentJobTriggerRequest {
554
+ orgId: string;
555
+ timestamp: string;
556
+ }
557
+ /**
558
+ * AgentJobTriggerResponse represents the response for job trigger processing
559
+ */
560
+ interface AgentJobTriggerResponse {
561
+ results: JobExecutionResult[];
562
+ orgId: string;
563
+ total: number;
564
+ executed: number;
565
+ skipped: number;
566
+ errors: number;
567
+ metadata: any;
568
+ }
500
569
  type AgentTypeTS = 'chat' | 'react';
501
570
  type AgentSubTypeTS = 'chat' | 'react' | 'workflow' | 'document';
502
571
  type AgentStatusTS = 'draft' | 'active' | 'inactive' | 'archived';
503
572
  type SkillCategoryTS = 'productivity' | 'creative' | 'integration' | 'analysis' | 'communication' | 'custom';
573
+ type IntegrationProviderTS = 'google' | 'microsoft';
574
+ type IntegrationTypeTS = 'email' | 'calendar' | 'drive';
504
575
  type SkillCategory = string;
505
576
  declare const SkillCategoryProductivity: SkillCategory;
506
577
  declare const SkillCategoryCreative: SkillCategory;
@@ -508,6 +579,14 @@ declare const SkillCategoryIntegration: SkillCategory;
508
579
  declare const SkillCategoryAnalysis: SkillCategory;
509
580
  declare const SkillCategoryCommunication: SkillCategory;
510
581
  declare const SkillCategoryCustom: SkillCategory;
582
+ /**
583
+ * IntegrationRequirement specifies an OAuth integration needed for a skill to function
584
+ * Skills with integration requirements are only available to users who have connected the required provider
585
+ */
586
+ interface IntegrationRequirement {
587
+ provider: string;
588
+ type: string;
589
+ }
511
590
  /**
512
591
  * Skill represents a bundled set of tools with a prompt extension
513
592
  * Skills can be activated at runtime to extend agent capabilities
@@ -528,6 +607,7 @@ interface Skill {
528
607
  config?: {
529
608
  [key: string]: any;
530
609
  };
610
+ requiredIntegrations?: IntegrationRequirement[];
531
611
  enabled: boolean;
532
612
  isSystem?: boolean;
533
613
  persisted?: boolean;
@@ -620,6 +700,7 @@ interface Agent {
620
700
  temperature: number;
621
701
  maxTokens: number;
622
702
  systemPrompt: string;
703
+ goal?: string;
623
704
  /**
624
705
  * Shared metadata
625
706
  */
@@ -634,7 +715,6 @@ interface Agent {
634
715
  /**
635
716
  * === Skills Configuration ===
636
717
  */
637
- useSkills?: boolean;
638
718
  skills?: AgentSkill[];
639
719
  /**
640
720
  * === Essential Configs ===
@@ -771,6 +851,7 @@ interface AgentSummary {
771
851
  isPublic: boolean;
772
852
  capabilities?: string[];
773
853
  samplePrompts?: string[];
854
+ skills?: AgentSkill[];
774
855
  metadata?: {
775
856
  [key: string]: any;
776
857
  };
@@ -967,6 +1048,95 @@ interface SaveWidgetConfigResponse {
967
1048
  config?: WidgetConfig;
968
1049
  metadata: any;
969
1050
  }
1051
+ type JobScopeTS = 'private' | 'team' | 'org';
1052
+ type JobStatusTS = 'active' | 'paused' | 'disabled';
1053
+ type JobFrequencyTS = 'one-time' | 'schedule';
1054
+ /**
1055
+ * JobScope defines who can see and use the job
1056
+ */
1057
+ type JobScope = string;
1058
+ declare const JobScopePrivate: JobScope;
1059
+ declare const JobScopeTeam: JobScope;
1060
+ declare const JobScopeOrg: JobScope;
1061
+ /**
1062
+ * JobStatus defines the current state of a job
1063
+ */
1064
+ type JobStatus = string;
1065
+ declare const JobStatusActive: JobStatus;
1066
+ declare const JobStatusPaused: JobStatus;
1067
+ declare const JobStatusDisabled: JobStatus;
1068
+ /**
1069
+ * JobFrequency defines whether a job runs once or on a schedule
1070
+ */
1071
+ type JobFrequency = string;
1072
+ declare const JobFrequencyOneTime: JobFrequency;
1073
+ declare const JobFrequencySchedule: JobFrequency;
1074
+ /**
1075
+ * AgentJob represents a scheduled or one-time execution configuration for an agent
1076
+ */
1077
+ interface AgentJob {
1078
+ id: string;
1079
+ agentId: string;
1080
+ ownerId: string;
1081
+ teamId?: string;
1082
+ /**
1083
+ * Job identity
1084
+ */
1085
+ name: string;
1086
+ description?: string;
1087
+ /**
1088
+ * Scope determines who can see/manage and execution context
1089
+ */
1090
+ scope: JobScopeTS;
1091
+ /**
1092
+ * Job configuration
1093
+ */
1094
+ frequency: JobFrequencyTS;
1095
+ cron?: string;
1096
+ timezone?: string;
1097
+ prompt: string;
1098
+ /**
1099
+ * Status
1100
+ */
1101
+ status: JobStatusTS;
1102
+ /**
1103
+ * Tracking fields (managed by system)
1104
+ */
1105
+ lastRunAt?: string;
1106
+ nextRunAt?: string;
1107
+ runCount: number;
1108
+ lastError?: string;
1109
+ /**
1110
+ * Circuit breaker fields
1111
+ */
1112
+ consecutiveFailures: number;
1113
+ disabledUntil?: string;
1114
+ /**
1115
+ * Audit fields
1116
+ */
1117
+ createdAt: string;
1118
+ updatedAt: string;
1119
+ }
1120
+ /**
1121
+ * JobExecutionResult represents the result of processing a single agent job
1122
+ */
1123
+ interface JobExecutionResult {
1124
+ jobId: string;
1125
+ agentId: string;
1126
+ jobName: string;
1127
+ executed: boolean;
1128
+ error?: string;
1129
+ }
1130
+ /**
1131
+ * ProcessJobTriggerResult represents the result of processing all agent jobs
1132
+ */
1133
+ interface ProcessJobTriggerResult {
1134
+ results: JobExecutionResult[];
1135
+ total: number;
1136
+ executed: number;
1137
+ skipped: number;
1138
+ errors: number;
1139
+ }
970
1140
  /**
971
1141
  * CSAT Configuration
972
1142
  */
@@ -1430,6 +1600,38 @@ declare const WidgetConfigGetByAgentSubject = "widgets.config.get.by.agent";
1430
1600
  * Widget Config Management
1431
1601
  */
1432
1602
  declare const WidgetConfigSaveSubject = "widgets.config.save";
1603
+ /**
1604
+ * Job CRUD Operations
1605
+ */
1606
+ declare const AgentJobCreateSubject = "agents.jobs.create";
1607
+ /**
1608
+ * Agent Job Management
1609
+ */
1610
+ declare const AgentJobGetSubject = "agents.jobs.get";
1611
+ /**
1612
+ * Agent Job Management
1613
+ */
1614
+ declare const AgentJobUpdateSubject = "agents.jobs.update";
1615
+ /**
1616
+ * Agent Job Management
1617
+ */
1618
+ declare const AgentJobDeleteSubject = "agents.jobs.delete";
1619
+ /**
1620
+ * Agent Job Management
1621
+ */
1622
+ declare const AgentJobListSubject = "agents.jobs.list";
1623
+ /**
1624
+ * Job Actions
1625
+ */
1626
+ declare const AgentJobPauseSubject = "agents.jobs.pause";
1627
+ /**
1628
+ * Agent Job Management
1629
+ */
1630
+ declare const AgentJobResumeSubject = "agents.jobs.resume";
1631
+ /**
1632
+ * Job Trigger (from Scheduler Service)
1633
+ */
1634
+ declare const AgentJobTriggerSubject = "agents.job.trigger";
1433
1635
  /**
1434
1636
  * Agent Instance Management
1435
1637
  */
@@ -1667,4 +1869,4 @@ interface PublicWidgetConfig {
1667
1869
  behavior: WidgetBehavior;
1668
1870
  }
1669
1871
 
1670
- 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, 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 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 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 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 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 };
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 };
package/dist/index.d.ts CHANGED
@@ -497,10 +497,81 @@ interface GetSkillsByIDsResponse {
497
497
  skills: Skill[];
498
498
  metadata: any;
499
499
  }
500
+ /**
501
+ * CreateAgentJobRequest represents a request to create an agent job
502
+ */
503
+ interface CreateAgentJobRequest {
504
+ orgId: string;
505
+ job?: AgentJob;
506
+ }
507
+ /**
508
+ * UpdateAgentJobRequest represents a request to update an agent job
509
+ */
510
+ interface UpdateAgentJobRequest {
511
+ orgId: string;
512
+ job?: AgentJob;
513
+ }
514
+ /**
515
+ * AgentJobIDRequest represents a request that only needs org + job ID
516
+ * Used for: Get, Delete, Pause, Resume operations
517
+ */
518
+ interface AgentJobIDRequest {
519
+ orgId: string;
520
+ jobId: string;
521
+ }
522
+ /**
523
+ * ListAgentJobsRequest represents a request to list agent jobs
524
+ */
525
+ interface ListAgentJobsRequest {
526
+ orgId: string;
527
+ agentId?: string;
528
+ ownerId?: string;
529
+ scope?: JobScope;
530
+ status?: JobStatus;
531
+ frequency?: JobFrequency;
532
+ limit?: number;
533
+ offset?: number;
534
+ }
535
+ /**
536
+ * AgentJobResponse represents a response containing an agent job
537
+ */
538
+ interface AgentJobResponse {
539
+ job?: AgentJob;
540
+ metadata: any;
541
+ }
542
+ /**
543
+ * AgentJobsListResponse represents a response containing multiple agent jobs
544
+ */
545
+ interface AgentJobsListResponse {
546
+ jobs: AgentJob[];
547
+ total: number;
548
+ metadata: any;
549
+ }
550
+ /**
551
+ * AgentJobTriggerRequest represents a request from scheduler service to trigger jobs
552
+ */
553
+ interface AgentJobTriggerRequest {
554
+ orgId: string;
555
+ timestamp: string;
556
+ }
557
+ /**
558
+ * AgentJobTriggerResponse represents the response for job trigger processing
559
+ */
560
+ interface AgentJobTriggerResponse {
561
+ results: JobExecutionResult[];
562
+ orgId: string;
563
+ total: number;
564
+ executed: number;
565
+ skipped: number;
566
+ errors: number;
567
+ metadata: any;
568
+ }
500
569
  type AgentTypeTS = 'chat' | 'react';
501
570
  type AgentSubTypeTS = 'chat' | 'react' | 'workflow' | 'document';
502
571
  type AgentStatusTS = 'draft' | 'active' | 'inactive' | 'archived';
503
572
  type SkillCategoryTS = 'productivity' | 'creative' | 'integration' | 'analysis' | 'communication' | 'custom';
573
+ type IntegrationProviderTS = 'google' | 'microsoft';
574
+ type IntegrationTypeTS = 'email' | 'calendar' | 'drive';
504
575
  type SkillCategory = string;
505
576
  declare const SkillCategoryProductivity: SkillCategory;
506
577
  declare const SkillCategoryCreative: SkillCategory;
@@ -508,6 +579,14 @@ declare const SkillCategoryIntegration: SkillCategory;
508
579
  declare const SkillCategoryAnalysis: SkillCategory;
509
580
  declare const SkillCategoryCommunication: SkillCategory;
510
581
  declare const SkillCategoryCustom: SkillCategory;
582
+ /**
583
+ * IntegrationRequirement specifies an OAuth integration needed for a skill to function
584
+ * Skills with integration requirements are only available to users who have connected the required provider
585
+ */
586
+ interface IntegrationRequirement {
587
+ provider: string;
588
+ type: string;
589
+ }
511
590
  /**
512
591
  * Skill represents a bundled set of tools with a prompt extension
513
592
  * Skills can be activated at runtime to extend agent capabilities
@@ -528,6 +607,7 @@ interface Skill {
528
607
  config?: {
529
608
  [key: string]: any;
530
609
  };
610
+ requiredIntegrations?: IntegrationRequirement[];
531
611
  enabled: boolean;
532
612
  isSystem?: boolean;
533
613
  persisted?: boolean;
@@ -620,6 +700,7 @@ interface Agent {
620
700
  temperature: number;
621
701
  maxTokens: number;
622
702
  systemPrompt: string;
703
+ goal?: string;
623
704
  /**
624
705
  * Shared metadata
625
706
  */
@@ -634,7 +715,6 @@ interface Agent {
634
715
  /**
635
716
  * === Skills Configuration ===
636
717
  */
637
- useSkills?: boolean;
638
718
  skills?: AgentSkill[];
639
719
  /**
640
720
  * === Essential Configs ===
@@ -771,6 +851,7 @@ interface AgentSummary {
771
851
  isPublic: boolean;
772
852
  capabilities?: string[];
773
853
  samplePrompts?: string[];
854
+ skills?: AgentSkill[];
774
855
  metadata?: {
775
856
  [key: string]: any;
776
857
  };
@@ -967,6 +1048,95 @@ interface SaveWidgetConfigResponse {
967
1048
  config?: WidgetConfig;
968
1049
  metadata: any;
969
1050
  }
1051
+ type JobScopeTS = 'private' | 'team' | 'org';
1052
+ type JobStatusTS = 'active' | 'paused' | 'disabled';
1053
+ type JobFrequencyTS = 'one-time' | 'schedule';
1054
+ /**
1055
+ * JobScope defines who can see and use the job
1056
+ */
1057
+ type JobScope = string;
1058
+ declare const JobScopePrivate: JobScope;
1059
+ declare const JobScopeTeam: JobScope;
1060
+ declare const JobScopeOrg: JobScope;
1061
+ /**
1062
+ * JobStatus defines the current state of a job
1063
+ */
1064
+ type JobStatus = string;
1065
+ declare const JobStatusActive: JobStatus;
1066
+ declare const JobStatusPaused: JobStatus;
1067
+ declare const JobStatusDisabled: JobStatus;
1068
+ /**
1069
+ * JobFrequency defines whether a job runs once or on a schedule
1070
+ */
1071
+ type JobFrequency = string;
1072
+ declare const JobFrequencyOneTime: JobFrequency;
1073
+ declare const JobFrequencySchedule: JobFrequency;
1074
+ /**
1075
+ * AgentJob represents a scheduled or one-time execution configuration for an agent
1076
+ */
1077
+ interface AgentJob {
1078
+ id: string;
1079
+ agentId: string;
1080
+ ownerId: string;
1081
+ teamId?: string;
1082
+ /**
1083
+ * Job identity
1084
+ */
1085
+ name: string;
1086
+ description?: string;
1087
+ /**
1088
+ * Scope determines who can see/manage and execution context
1089
+ */
1090
+ scope: JobScopeTS;
1091
+ /**
1092
+ * Job configuration
1093
+ */
1094
+ frequency: JobFrequencyTS;
1095
+ cron?: string;
1096
+ timezone?: string;
1097
+ prompt: string;
1098
+ /**
1099
+ * Status
1100
+ */
1101
+ status: JobStatusTS;
1102
+ /**
1103
+ * Tracking fields (managed by system)
1104
+ */
1105
+ lastRunAt?: string;
1106
+ nextRunAt?: string;
1107
+ runCount: number;
1108
+ lastError?: string;
1109
+ /**
1110
+ * Circuit breaker fields
1111
+ */
1112
+ consecutiveFailures: number;
1113
+ disabledUntil?: string;
1114
+ /**
1115
+ * Audit fields
1116
+ */
1117
+ createdAt: string;
1118
+ updatedAt: string;
1119
+ }
1120
+ /**
1121
+ * JobExecutionResult represents the result of processing a single agent job
1122
+ */
1123
+ interface JobExecutionResult {
1124
+ jobId: string;
1125
+ agentId: string;
1126
+ jobName: string;
1127
+ executed: boolean;
1128
+ error?: string;
1129
+ }
1130
+ /**
1131
+ * ProcessJobTriggerResult represents the result of processing all agent jobs
1132
+ */
1133
+ interface ProcessJobTriggerResult {
1134
+ results: JobExecutionResult[];
1135
+ total: number;
1136
+ executed: number;
1137
+ skipped: number;
1138
+ errors: number;
1139
+ }
970
1140
  /**
971
1141
  * CSAT Configuration
972
1142
  */
@@ -1430,6 +1600,38 @@ declare const WidgetConfigGetByAgentSubject = "widgets.config.get.by.agent";
1430
1600
  * Widget Config Management
1431
1601
  */
1432
1602
  declare const WidgetConfigSaveSubject = "widgets.config.save";
1603
+ /**
1604
+ * Job CRUD Operations
1605
+ */
1606
+ declare const AgentJobCreateSubject = "agents.jobs.create";
1607
+ /**
1608
+ * Agent Job Management
1609
+ */
1610
+ declare const AgentJobGetSubject = "agents.jobs.get";
1611
+ /**
1612
+ * Agent Job Management
1613
+ */
1614
+ declare const AgentJobUpdateSubject = "agents.jobs.update";
1615
+ /**
1616
+ * Agent Job Management
1617
+ */
1618
+ declare const AgentJobDeleteSubject = "agents.jobs.delete";
1619
+ /**
1620
+ * Agent Job Management
1621
+ */
1622
+ declare const AgentJobListSubject = "agents.jobs.list";
1623
+ /**
1624
+ * Job Actions
1625
+ */
1626
+ declare const AgentJobPauseSubject = "agents.jobs.pause";
1627
+ /**
1628
+ * Agent Job Management
1629
+ */
1630
+ declare const AgentJobResumeSubject = "agents.jobs.resume";
1631
+ /**
1632
+ * Job Trigger (from Scheduler Service)
1633
+ */
1634
+ declare const AgentJobTriggerSubject = "agents.job.trigger";
1433
1635
  /**
1434
1636
  * Agent Instance Management
1435
1637
  */
@@ -1667,4 +1869,4 @@ interface PublicWidgetConfig {
1667
1869
  behavior: WidgetBehavior;
1668
1870
  }
1669
1871
 
1670
- 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, 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 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 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 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 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 };
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 };
package/dist/index.js CHANGED
@@ -54,6 +54,14 @@ __export(index_exports, {
54
54
  AgentInstanceResumePlanSubject: () => AgentInstanceResumePlanSubject,
55
55
  AgentInstanceUpdateSubject: () => AgentInstanceUpdateSubject,
56
56
  AgentInstanceUpdatedSubject: () => AgentInstanceUpdatedSubject,
57
+ AgentJobCreateSubject: () => AgentJobCreateSubject,
58
+ AgentJobDeleteSubject: () => AgentJobDeleteSubject,
59
+ AgentJobGetSubject: () => AgentJobGetSubject,
60
+ AgentJobListSubject: () => AgentJobListSubject,
61
+ AgentJobPauseSubject: () => AgentJobPauseSubject,
62
+ AgentJobResumeSubject: () => AgentJobResumeSubject,
63
+ AgentJobTriggerSubject: () => AgentJobTriggerSubject,
64
+ AgentJobUpdateSubject: () => AgentJobUpdateSubject,
57
65
  AgentListSubject: () => AgentListSubject,
58
66
  AgentListSummarySubject: () => AgentListSummarySubject,
59
67
  AgentReactCreateSubject: () => AgentReactCreateSubject,
@@ -101,6 +109,14 @@ __export(index_exports, {
101
109
  ExecutionStatusRunning: () => ExecutionStatusRunning,
102
110
  ExecutionStatusSkipped: () => ExecutionStatusSkipped,
103
111
  ExecutionTTLHours: () => ExecutionTTLHours,
112
+ JobFrequencyOneTime: () => JobFrequencyOneTime,
113
+ JobFrequencySchedule: () => JobFrequencySchedule,
114
+ JobScopeOrg: () => JobScopeOrg,
115
+ JobScopePrivate: () => JobScopePrivate,
116
+ JobScopeTeam: () => JobScopeTeam,
117
+ JobStatusActive: () => JobStatusActive,
118
+ JobStatusDisabled: () => JobStatusDisabled,
119
+ JobStatusPaused: () => JobStatusPaused,
104
120
  MaxExecutions: () => MaxExecutions,
105
121
  MergeStrategyAppend: () => MergeStrategyAppend,
106
122
  MergeStrategyMerge: () => MergeStrategyMerge,
@@ -206,6 +222,14 @@ var ToolExecutionStatusSkipped = "skipped";
206
222
  var ExecutionModeSync = "sync";
207
223
  var ExecutionModeAsync = "async";
208
224
  var ExecutionModeAsyncClient = "asyncClient";
225
+ var JobScopePrivate = "private";
226
+ var JobScopeTeam = "team";
227
+ var JobScopeOrg = "org";
228
+ var JobStatusActive = "active";
229
+ var JobStatusPaused = "paused";
230
+ var JobStatusDisabled = "disabled";
231
+ var JobFrequencyOneTime = "one-time";
232
+ var JobFrequencySchedule = "schedule";
209
233
  var AgentCreateSubject = "agent.create";
210
234
  var AgentCreatedSubject = "agent.created";
211
235
  var AgentGetSubject = "agent.get";
@@ -283,6 +307,14 @@ var SkillsListSubject = "agents.skills.list";
283
307
  var SkillsGetByIDsSubject = "agents.skills.get-by-ids";
284
308
  var WidgetConfigGetByAgentSubject = "widgets.config.get.by.agent";
285
309
  var WidgetConfigSaveSubject = "widgets.config.save";
310
+ var AgentJobCreateSubject = "agents.jobs.create";
311
+ var AgentJobGetSubject = "agents.jobs.get";
312
+ var AgentJobUpdateSubject = "agents.jobs.update";
313
+ var AgentJobDeleteSubject = "agents.jobs.delete";
314
+ var AgentJobListSubject = "agents.jobs.list";
315
+ var AgentJobPauseSubject = "agents.jobs.pause";
316
+ var AgentJobResumeSubject = "agents.jobs.resume";
317
+ var AgentJobTriggerSubject = "agents.job.trigger";
286
318
  var AgentInstanceCreateSubject = "agents.instance.create";
287
319
  var AgentInstanceCreatedSubject = "agents.instance.created";
288
320
  var AgentInstanceGetSubject = "agents.instance.get";
@@ -342,6 +374,14 @@ var AgentWidgetsGetDefaultSubject = "agents.widgets.get-default";
342
374
  AgentInstanceResumePlanSubject,
343
375
  AgentInstanceUpdateSubject,
344
376
  AgentInstanceUpdatedSubject,
377
+ AgentJobCreateSubject,
378
+ AgentJobDeleteSubject,
379
+ AgentJobGetSubject,
380
+ AgentJobListSubject,
381
+ AgentJobPauseSubject,
382
+ AgentJobResumeSubject,
383
+ AgentJobTriggerSubject,
384
+ AgentJobUpdateSubject,
345
385
  AgentListSubject,
346
386
  AgentListSummarySubject,
347
387
  AgentReactCreateSubject,
@@ -389,6 +429,14 @@ var AgentWidgetsGetDefaultSubject = "agents.widgets.get-default";
389
429
  ExecutionStatusRunning,
390
430
  ExecutionStatusSkipped,
391
431
  ExecutionTTLHours,
432
+ JobFrequencyOneTime,
433
+ JobFrequencySchedule,
434
+ JobScopeOrg,
435
+ JobScopePrivate,
436
+ JobScopeTeam,
437
+ JobStatusActive,
438
+ JobStatusDisabled,
439
+ JobStatusPaused,
392
440
  MaxExecutions,
393
441
  MergeStrategyAppend,
394
442
  MergeStrategyMerge,