@elqnt/agents 1.0.12 → 1.0.13

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
@@ -530,6 +530,7 @@ interface Skill {
530
530
  };
531
531
  enabled: boolean;
532
532
  isSystem?: boolean;
533
+ persisted?: boolean;
533
534
  displayOrder?: number;
534
535
  createdAt?: string;
535
536
  updatedAt?: string;
@@ -640,6 +641,10 @@ interface Agent {
640
641
  */
641
642
  csatConfig: CSATConfig;
642
643
  handoffConfig: HandoffConfig;
644
+ /**
645
+ * === Widget Embed Config ===
646
+ */
647
+ widgetConfig?: WidgetConfig;
643
648
  /**
644
649
  * === TYPE-SPECIFIC CORE CONFIG ===
645
650
  */
@@ -699,6 +704,43 @@ interface HandoffConfig {
699
704
  queueId?: string;
700
705
  handoffMessage: string;
701
706
  }
707
+ /**
708
+ * WidgetConfig defines the configuration for an embeddable chat widget
709
+ */
710
+ interface WidgetConfig {
711
+ enabled: boolean;
712
+ widgetId: string;
713
+ appearance: WidgetAppearance;
714
+ behavior: WidgetBehavior;
715
+ security: WidgetSecurity;
716
+ }
717
+ /**
718
+ * WidgetAppearance defines the visual customization of the widget
719
+ */
720
+ interface WidgetAppearance {
721
+ position: string;
722
+ primaryColor: string;
723
+ backgroundColor: string;
724
+ textColor: string;
725
+ borderRadius: number;
726
+ bubbleSize: number;
727
+ bubbleIconUrl?: string;
728
+ }
729
+ /**
730
+ * WidgetBehavior defines the behavioral settings of the widget
731
+ */
732
+ interface WidgetBehavior {
733
+ welcomeMessage: string;
734
+ suggestedPrompts?: string[];
735
+ autoOpenDelay: number;
736
+ showPoweredBy: boolean;
737
+ }
738
+ /**
739
+ * WidgetSecurity defines the security settings for the widget
740
+ */
741
+ interface WidgetSecurity {
742
+ allowedDomains: string[];
743
+ }
702
744
  /**
703
745
  * AgentFilters for filtering agents in list operations
704
746
  */
@@ -896,6 +938,35 @@ interface ExecutePlanResponse {
896
938
  }
897
939
  type ToolExecutionStatusTS = 'pending' | 'executing' | 'completed' | 'failed' | 'timeout' | 'skipped';
898
940
  type ExecutionModeTS = 'sync' | 'async' | 'asyncClient';
941
+ /**
942
+ * GetWidgetConfigRequest represents a request to get widget config for an agent
943
+ */
944
+ interface GetWidgetConfigRequest {
945
+ orgId: string;
946
+ agentId: string;
947
+ }
948
+ /**
949
+ * GetWidgetConfigResponse represents the response with widget config
950
+ */
951
+ interface GetWidgetConfigResponse {
952
+ config?: WidgetConfig;
953
+ metadata: any;
954
+ }
955
+ /**
956
+ * SaveWidgetConfigRequest represents a request to save widget config for an agent
957
+ */
958
+ interface SaveWidgetConfigRequest {
959
+ orgId: string;
960
+ agentId: string;
961
+ config?: WidgetConfig;
962
+ }
963
+ /**
964
+ * SaveWidgetConfigResponse represents the response after saving widget config
965
+ */
966
+ interface SaveWidgetConfigResponse {
967
+ config?: WidgetConfig;
968
+ metadata: any;
969
+ }
899
970
  /**
900
971
  * CSAT Configuration
901
972
  */
@@ -1351,6 +1422,14 @@ declare const SkillsListSubject = "agents.skills.list";
1351
1422
  * Skills Management
1352
1423
  */
1353
1424
  declare const SkillsGetByIDsSubject = "agents.skills.get-by-ids";
1425
+ /**
1426
+ * Widget Config Management
1427
+ */
1428
+ declare const WidgetConfigGetByAgentSubject = "widgets.config.get.by.agent";
1429
+ /**
1430
+ * Widget Config Management
1431
+ */
1432
+ declare const WidgetConfigSaveSubject = "widgets.config.save";
1354
1433
  /**
1355
1434
  * Agent Instance Management
1356
1435
  */
@@ -1452,5 +1531,140 @@ interface ValidationError {
1452
1531
  * ValidationErrors represents a collection of validation errors
1453
1532
  */
1454
1533
  type ValidationErrors = ValidationError[];
1534
+ /**
1535
+ * AgentWidget represents a widget configuration for an agent
1536
+ */
1537
+ interface AgentWidget {
1538
+ id: string;
1539
+ agentId: string;
1540
+ orgId: string;
1541
+ widgetId: string;
1542
+ name: string;
1543
+ title: string;
1544
+ description?: string;
1545
+ enabled: boolean;
1546
+ isDefault: boolean;
1547
+ appearance: WidgetAppearance;
1548
+ behavior: WidgetBehavior;
1549
+ security: WidgetSecurity;
1550
+ createdAt: string;
1551
+ updatedAt: string;
1552
+ createdBy?: string;
1553
+ }
1554
+ /**
1555
+ * AgentWidget NATS Subjects
1556
+ */
1557
+ declare const AgentWidgetsCreateSubject = "agents.widgets.create";
1558
+ /**
1559
+ * AgentWidget NATS Subjects
1560
+ */
1561
+ declare const AgentWidgetsGetSubject = "agents.widgets.get";
1562
+ /**
1563
+ * AgentWidget NATS Subjects
1564
+ */
1565
+ declare const AgentWidgetsGetByWidgetID = "agents.widgets.get-by-widget-id";
1566
+ /**
1567
+ * AgentWidget NATS Subjects
1568
+ */
1569
+ declare const AgentWidgetsUpdateSubject = "agents.widgets.update";
1570
+ /**
1571
+ * AgentWidget NATS Subjects
1572
+ */
1573
+ declare const AgentWidgetsDeleteSubject = "agents.widgets.delete";
1574
+ /**
1575
+ * AgentWidget NATS Subjects
1576
+ */
1577
+ declare const AgentWidgetsListSubject = "agents.widgets.list";
1578
+ /**
1579
+ * AgentWidget NATS Subjects
1580
+ */
1581
+ declare const AgentWidgetsSetDefaultSubject = "agents.widgets.set-default";
1582
+ /**
1583
+ * AgentWidget NATS Subjects
1584
+ */
1585
+ declare const AgentWidgetsGetDefaultSubject = "agents.widgets.get-default";
1586
+ /**
1587
+ * CreateAgentWidgetRequest is the request to create a new widget
1588
+ */
1589
+ interface CreateAgentWidgetRequest {
1590
+ orgId: string;
1591
+ agentId: string;
1592
+ widget: AgentWidget;
1593
+ }
1594
+ /**
1595
+ * AgentWidgetResponse is the response for single widget operations
1596
+ */
1597
+ interface AgentWidgetResponse {
1598
+ widget?: AgentWidget;
1599
+ metadata: any;
1600
+ }
1601
+ /**
1602
+ * GetAgentWidgetRequest is the request to get a widget by ID
1603
+ */
1604
+ interface GetAgentWidgetRequest {
1605
+ orgId: string;
1606
+ widgetId: string;
1607
+ }
1608
+ /**
1609
+ * GetWidgetByWidgetIDRequest is the request to get a widget by its embed widget_id
1610
+ */
1611
+ interface GetWidgetByWidgetIDRequest {
1612
+ widgetId: string;
1613
+ }
1614
+ /**
1615
+ * UpdateAgentWidgetRequest is the request to update a widget
1616
+ */
1617
+ interface UpdateAgentWidgetRequest {
1618
+ orgId: string;
1619
+ widget: AgentWidget;
1620
+ }
1621
+ /**
1622
+ * DeleteAgentWidgetRequest is the request to delete a widget
1623
+ */
1624
+ interface DeleteAgentWidgetRequest {
1625
+ orgId: string;
1626
+ widgetId: string;
1627
+ }
1628
+ /**
1629
+ * ListAgentWidgetsRequest is the request to list widgets for an agent
1630
+ */
1631
+ interface ListAgentWidgetsRequest {
1632
+ orgId: string;
1633
+ agentId: string;
1634
+ }
1635
+ /**
1636
+ * ListAgentWidgetsResponse is the response for listing widgets
1637
+ */
1638
+ interface ListAgentWidgetsResponse {
1639
+ widgets: AgentWidget[];
1640
+ metadata: any;
1641
+ }
1642
+ /**
1643
+ * SetDefaultWidgetRequest is the request to set a widget as default
1644
+ */
1645
+ interface SetDefaultWidgetRequest {
1646
+ orgId: string;
1647
+ agentId: string;
1648
+ widgetId: string;
1649
+ }
1650
+ /**
1651
+ * GetDefaultWidgetRequest is the request to get the default widget for an agent
1652
+ */
1653
+ interface GetDefaultWidgetRequest {
1654
+ orgId: string;
1655
+ agentId: string;
1656
+ }
1657
+ /**
1658
+ * PublicWidgetConfig is the config exposed to the widget client (no sensitive data)
1659
+ */
1660
+ interface PublicWidgetConfig {
1661
+ widgetId: string;
1662
+ agentId: string;
1663
+ orgId: string;
1664
+ name: string;
1665
+ title: string;
1666
+ appearance: WidgetAppearance;
1667
+ behavior: WidgetBehavior;
1668
+ }
1455
1669
 
1456
- 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 CSATAnswer, type CSATConfig, type CSATQuestion, type CSATResponse, type CSATSurvey, ChatAgentExecuteSubject, ChatAgentStatusSubject, type CreateAgentRequest, type CreateExecutionPlanRequest, type CreateExecutionPlanResponse, type CreateSkillRequest, type CreateSubAgentRequest, type CreateToolDefinitionRequest, type DefaultDefinitions, type DeleteAgentRequest, 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 GetDefaultAgentRequest, type GetSkillRequest, type GetSkillsByIDsRequest, type GetSkillsByIDsResponse, type GetSubAgentRequest, type GetSubAgentsByIDsRequest, type GetSubAgentsByIDsResponse, type GetToolDefinitionRequest, type GetToolDefinitionsByIDsRequest, type GetToolDefinitionsByIDsResponse, type HandoffConfig, 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 ReactAgentConfig, ReactAgentExecuteSubject, ReactAgentStatusSubject, ReactAgentStopSubject, type RetryPolicy, 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 UpdateOrgAgentsRequest, type UpdateOrgAgentsResponse, type UpdateSkillRequest, type UpdateSubAgentRequest, type UpdateToolDefinitionRequest, type UserSuggestedAction, type UserSuggestedActionsConfig, type UserSuggestedActionsRequest, type UserSuggestedActionsResponse, type ValidationError, type ValidationErrors, WorkflowAgentGetSubject, WorkflowAgentUpdateSubject };
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 };
package/dist/index.d.ts CHANGED
@@ -530,6 +530,7 @@ interface Skill {
530
530
  };
531
531
  enabled: boolean;
532
532
  isSystem?: boolean;
533
+ persisted?: boolean;
533
534
  displayOrder?: number;
534
535
  createdAt?: string;
535
536
  updatedAt?: string;
@@ -640,6 +641,10 @@ interface Agent {
640
641
  */
641
642
  csatConfig: CSATConfig;
642
643
  handoffConfig: HandoffConfig;
644
+ /**
645
+ * === Widget Embed Config ===
646
+ */
647
+ widgetConfig?: WidgetConfig;
643
648
  /**
644
649
  * === TYPE-SPECIFIC CORE CONFIG ===
645
650
  */
@@ -699,6 +704,43 @@ interface HandoffConfig {
699
704
  queueId?: string;
700
705
  handoffMessage: string;
701
706
  }
707
+ /**
708
+ * WidgetConfig defines the configuration for an embeddable chat widget
709
+ */
710
+ interface WidgetConfig {
711
+ enabled: boolean;
712
+ widgetId: string;
713
+ appearance: WidgetAppearance;
714
+ behavior: WidgetBehavior;
715
+ security: WidgetSecurity;
716
+ }
717
+ /**
718
+ * WidgetAppearance defines the visual customization of the widget
719
+ */
720
+ interface WidgetAppearance {
721
+ position: string;
722
+ primaryColor: string;
723
+ backgroundColor: string;
724
+ textColor: string;
725
+ borderRadius: number;
726
+ bubbleSize: number;
727
+ bubbleIconUrl?: string;
728
+ }
729
+ /**
730
+ * WidgetBehavior defines the behavioral settings of the widget
731
+ */
732
+ interface WidgetBehavior {
733
+ welcomeMessage: string;
734
+ suggestedPrompts?: string[];
735
+ autoOpenDelay: number;
736
+ showPoweredBy: boolean;
737
+ }
738
+ /**
739
+ * WidgetSecurity defines the security settings for the widget
740
+ */
741
+ interface WidgetSecurity {
742
+ allowedDomains: string[];
743
+ }
702
744
  /**
703
745
  * AgentFilters for filtering agents in list operations
704
746
  */
@@ -896,6 +938,35 @@ interface ExecutePlanResponse {
896
938
  }
897
939
  type ToolExecutionStatusTS = 'pending' | 'executing' | 'completed' | 'failed' | 'timeout' | 'skipped';
898
940
  type ExecutionModeTS = 'sync' | 'async' | 'asyncClient';
941
+ /**
942
+ * GetWidgetConfigRequest represents a request to get widget config for an agent
943
+ */
944
+ interface GetWidgetConfigRequest {
945
+ orgId: string;
946
+ agentId: string;
947
+ }
948
+ /**
949
+ * GetWidgetConfigResponse represents the response with widget config
950
+ */
951
+ interface GetWidgetConfigResponse {
952
+ config?: WidgetConfig;
953
+ metadata: any;
954
+ }
955
+ /**
956
+ * SaveWidgetConfigRequest represents a request to save widget config for an agent
957
+ */
958
+ interface SaveWidgetConfigRequest {
959
+ orgId: string;
960
+ agentId: string;
961
+ config?: WidgetConfig;
962
+ }
963
+ /**
964
+ * SaveWidgetConfigResponse represents the response after saving widget config
965
+ */
966
+ interface SaveWidgetConfigResponse {
967
+ config?: WidgetConfig;
968
+ metadata: any;
969
+ }
899
970
  /**
900
971
  * CSAT Configuration
901
972
  */
@@ -1351,6 +1422,14 @@ declare const SkillsListSubject = "agents.skills.list";
1351
1422
  * Skills Management
1352
1423
  */
1353
1424
  declare const SkillsGetByIDsSubject = "agents.skills.get-by-ids";
1425
+ /**
1426
+ * Widget Config Management
1427
+ */
1428
+ declare const WidgetConfigGetByAgentSubject = "widgets.config.get.by.agent";
1429
+ /**
1430
+ * Widget Config Management
1431
+ */
1432
+ declare const WidgetConfigSaveSubject = "widgets.config.save";
1354
1433
  /**
1355
1434
  * Agent Instance Management
1356
1435
  */
@@ -1452,5 +1531,140 @@ interface ValidationError {
1452
1531
  * ValidationErrors represents a collection of validation errors
1453
1532
  */
1454
1533
  type ValidationErrors = ValidationError[];
1534
+ /**
1535
+ * AgentWidget represents a widget configuration for an agent
1536
+ */
1537
+ interface AgentWidget {
1538
+ id: string;
1539
+ agentId: string;
1540
+ orgId: string;
1541
+ widgetId: string;
1542
+ name: string;
1543
+ title: string;
1544
+ description?: string;
1545
+ enabled: boolean;
1546
+ isDefault: boolean;
1547
+ appearance: WidgetAppearance;
1548
+ behavior: WidgetBehavior;
1549
+ security: WidgetSecurity;
1550
+ createdAt: string;
1551
+ updatedAt: string;
1552
+ createdBy?: string;
1553
+ }
1554
+ /**
1555
+ * AgentWidget NATS Subjects
1556
+ */
1557
+ declare const AgentWidgetsCreateSubject = "agents.widgets.create";
1558
+ /**
1559
+ * AgentWidget NATS Subjects
1560
+ */
1561
+ declare const AgentWidgetsGetSubject = "agents.widgets.get";
1562
+ /**
1563
+ * AgentWidget NATS Subjects
1564
+ */
1565
+ declare const AgentWidgetsGetByWidgetID = "agents.widgets.get-by-widget-id";
1566
+ /**
1567
+ * AgentWidget NATS Subjects
1568
+ */
1569
+ declare const AgentWidgetsUpdateSubject = "agents.widgets.update";
1570
+ /**
1571
+ * AgentWidget NATS Subjects
1572
+ */
1573
+ declare const AgentWidgetsDeleteSubject = "agents.widgets.delete";
1574
+ /**
1575
+ * AgentWidget NATS Subjects
1576
+ */
1577
+ declare const AgentWidgetsListSubject = "agents.widgets.list";
1578
+ /**
1579
+ * AgentWidget NATS Subjects
1580
+ */
1581
+ declare const AgentWidgetsSetDefaultSubject = "agents.widgets.set-default";
1582
+ /**
1583
+ * AgentWidget NATS Subjects
1584
+ */
1585
+ declare const AgentWidgetsGetDefaultSubject = "agents.widgets.get-default";
1586
+ /**
1587
+ * CreateAgentWidgetRequest is the request to create a new widget
1588
+ */
1589
+ interface CreateAgentWidgetRequest {
1590
+ orgId: string;
1591
+ agentId: string;
1592
+ widget: AgentWidget;
1593
+ }
1594
+ /**
1595
+ * AgentWidgetResponse is the response for single widget operations
1596
+ */
1597
+ interface AgentWidgetResponse {
1598
+ widget?: AgentWidget;
1599
+ metadata: any;
1600
+ }
1601
+ /**
1602
+ * GetAgentWidgetRequest is the request to get a widget by ID
1603
+ */
1604
+ interface GetAgentWidgetRequest {
1605
+ orgId: string;
1606
+ widgetId: string;
1607
+ }
1608
+ /**
1609
+ * GetWidgetByWidgetIDRequest is the request to get a widget by its embed widget_id
1610
+ */
1611
+ interface GetWidgetByWidgetIDRequest {
1612
+ widgetId: string;
1613
+ }
1614
+ /**
1615
+ * UpdateAgentWidgetRequest is the request to update a widget
1616
+ */
1617
+ interface UpdateAgentWidgetRequest {
1618
+ orgId: string;
1619
+ widget: AgentWidget;
1620
+ }
1621
+ /**
1622
+ * DeleteAgentWidgetRequest is the request to delete a widget
1623
+ */
1624
+ interface DeleteAgentWidgetRequest {
1625
+ orgId: string;
1626
+ widgetId: string;
1627
+ }
1628
+ /**
1629
+ * ListAgentWidgetsRequest is the request to list widgets for an agent
1630
+ */
1631
+ interface ListAgentWidgetsRequest {
1632
+ orgId: string;
1633
+ agentId: string;
1634
+ }
1635
+ /**
1636
+ * ListAgentWidgetsResponse is the response for listing widgets
1637
+ */
1638
+ interface ListAgentWidgetsResponse {
1639
+ widgets: AgentWidget[];
1640
+ metadata: any;
1641
+ }
1642
+ /**
1643
+ * SetDefaultWidgetRequest is the request to set a widget as default
1644
+ */
1645
+ interface SetDefaultWidgetRequest {
1646
+ orgId: string;
1647
+ agentId: string;
1648
+ widgetId: string;
1649
+ }
1650
+ /**
1651
+ * GetDefaultWidgetRequest is the request to get the default widget for an agent
1652
+ */
1653
+ interface GetDefaultWidgetRequest {
1654
+ orgId: string;
1655
+ agentId: string;
1656
+ }
1657
+ /**
1658
+ * PublicWidgetConfig is the config exposed to the widget client (no sensitive data)
1659
+ */
1660
+ interface PublicWidgetConfig {
1661
+ widgetId: string;
1662
+ agentId: string;
1663
+ orgId: string;
1664
+ name: string;
1665
+ title: string;
1666
+ appearance: WidgetAppearance;
1667
+ behavior: WidgetBehavior;
1668
+ }
1455
1669
 
1456
- 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 CSATAnswer, type CSATConfig, type CSATQuestion, type CSATResponse, type CSATSurvey, ChatAgentExecuteSubject, ChatAgentStatusSubject, type CreateAgentRequest, type CreateExecutionPlanRequest, type CreateExecutionPlanResponse, type CreateSkillRequest, type CreateSubAgentRequest, type CreateToolDefinitionRequest, type DefaultDefinitions, type DeleteAgentRequest, 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 GetDefaultAgentRequest, type GetSkillRequest, type GetSkillsByIDsRequest, type GetSkillsByIDsResponse, type GetSubAgentRequest, type GetSubAgentsByIDsRequest, type GetSubAgentsByIDsResponse, type GetToolDefinitionRequest, type GetToolDefinitionsByIDsRequest, type GetToolDefinitionsByIDsResponse, type HandoffConfig, 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 ReactAgentConfig, ReactAgentExecuteSubject, ReactAgentStatusSubject, ReactAgentStopSubject, type RetryPolicy, 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 UpdateOrgAgentsRequest, type UpdateOrgAgentsResponse, type UpdateSkillRequest, type UpdateSubAgentRequest, type UpdateToolDefinitionRequest, type UserSuggestedAction, type UserSuggestedActionsConfig, type UserSuggestedActionsRequest, type UserSuggestedActionsResponse, type ValidationError, type ValidationErrors, WorkflowAgentGetSubject, WorkflowAgentUpdateSubject };
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 };
package/dist/index.js CHANGED
@@ -82,6 +82,14 @@ __export(index_exports, {
82
82
  AgentVersionCreatedSubject: () => AgentVersionCreatedSubject,
83
83
  AgentVersionGetSubject: () => AgentVersionGetSubject,
84
84
  AgentVersionListSubject: () => AgentVersionListSubject,
85
+ AgentWidgetsCreateSubject: () => AgentWidgetsCreateSubject,
86
+ AgentWidgetsDeleteSubject: () => AgentWidgetsDeleteSubject,
87
+ AgentWidgetsGetByWidgetID: () => AgentWidgetsGetByWidgetID,
88
+ AgentWidgetsGetDefaultSubject: () => AgentWidgetsGetDefaultSubject,
89
+ AgentWidgetsGetSubject: () => AgentWidgetsGetSubject,
90
+ AgentWidgetsListSubject: () => AgentWidgetsListSubject,
91
+ AgentWidgetsSetDefaultSubject: () => AgentWidgetsSetDefaultSubject,
92
+ AgentWidgetsUpdateSubject: () => AgentWidgetsUpdateSubject,
85
93
  ChatAgentExecuteSubject: () => ChatAgentExecuteSubject,
86
94
  ChatAgentStatusSubject: () => ChatAgentStatusSubject,
87
95
  ExecutionModeAsync: () => ExecutionModeAsync,
@@ -149,6 +157,8 @@ __export(index_exports, {
149
157
  ToolExecutionStatusSkipped: () => ToolExecutionStatusSkipped,
150
158
  ToolExecutionStatusStarted: () => ToolExecutionStatusStarted,
151
159
  ToolExecutionStatusTimeout: () => ToolExecutionStatusTimeout,
160
+ WidgetConfigGetByAgentSubject: () => WidgetConfigGetByAgentSubject,
161
+ WidgetConfigSaveSubject: () => WidgetConfigSaveSubject,
152
162
  WorkflowAgentGetSubject: () => WorkflowAgentGetSubject,
153
163
  WorkflowAgentUpdateSubject: () => WorkflowAgentUpdateSubject
154
164
  });
@@ -271,6 +281,8 @@ var SkillsDeleteSubject = "agents.skills.delete";
271
281
  var SkillsDeletedSubject = "agents.skills.deleted";
272
282
  var SkillsListSubject = "agents.skills.list";
273
283
  var SkillsGetByIDsSubject = "agents.skills.get-by-ids";
284
+ var WidgetConfigGetByAgentSubject = "widgets.config.get.by.agent";
285
+ var WidgetConfigSaveSubject = "widgets.config.save";
274
286
  var AgentInstanceCreateSubject = "agents.instance.create";
275
287
  var AgentInstanceCreatedSubject = "agents.instance.created";
276
288
  var AgentInstanceGetSubject = "agents.instance.get";
@@ -286,6 +298,14 @@ var AgentInstanceResumePlanSubject = "agents.instance.resume-plan";
286
298
  var AgentInstanceCancelPlanSubject = "agents.instance.cancel-plan";
287
299
  var AgentInstanceGetHistorySubject = "agents.instance.get-history";
288
300
  var AgentInstanceClearHistorySubject = "agents.instance.clear-history";
301
+ var AgentWidgetsCreateSubject = "agents.widgets.create";
302
+ var AgentWidgetsGetSubject = "agents.widgets.get";
303
+ var AgentWidgetsGetByWidgetID = "agents.widgets.get-by-widget-id";
304
+ var AgentWidgetsUpdateSubject = "agents.widgets.update";
305
+ var AgentWidgetsDeleteSubject = "agents.widgets.delete";
306
+ var AgentWidgetsListSubject = "agents.widgets.list";
307
+ var AgentWidgetsSetDefaultSubject = "agents.widgets.set-default";
308
+ var AgentWidgetsGetDefaultSubject = "agents.widgets.get-default";
289
309
  // Annotate the CommonJS export names for ESM import in node:
290
310
  0 && (module.exports = {
291
311
  AgentChatCreateSubject,
@@ -350,6 +370,14 @@ var AgentInstanceClearHistorySubject = "agents.instance.clear-history";
350
370
  AgentVersionCreatedSubject,
351
371
  AgentVersionGetSubject,
352
372
  AgentVersionListSubject,
373
+ AgentWidgetsCreateSubject,
374
+ AgentWidgetsDeleteSubject,
375
+ AgentWidgetsGetByWidgetID,
376
+ AgentWidgetsGetDefaultSubject,
377
+ AgentWidgetsGetSubject,
378
+ AgentWidgetsListSubject,
379
+ AgentWidgetsSetDefaultSubject,
380
+ AgentWidgetsUpdateSubject,
353
381
  ChatAgentExecuteSubject,
354
382
  ChatAgentStatusSubject,
355
383
  ExecutionModeAsync,
@@ -417,6 +445,8 @@ var AgentInstanceClearHistorySubject = "agents.instance.clear-history";
417
445
  ToolExecutionStatusSkipped,
418
446
  ToolExecutionStatusStarted,
419
447
  ToolExecutionStatusTimeout,
448
+ WidgetConfigGetByAgentSubject,
449
+ WidgetConfigSaveSubject,
420
450
  WorkflowAgentGetSubject,
421
451
  WorkflowAgentUpdateSubject
422
452
  });
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../index.tsx","../models/agent-models.ts"],"sourcesContent":["\nexport * from \"./models\";\n","// Code generated by tygo. DO NOT EDIT.\nimport { KGNode } from \"@elqnt/kg\";\nimport { Variable } from \"@elqnt/types\";\nimport { ResponseMetadata, ProductNameTS, JSONSchema } from \"@elqnt/types\";\n\n//////////\n// source: agent-context.go\n\n/**\n * AgentContext accumulates meaningful state from agentic tool executions.\n * It provides a structured, schema-driven view of what happened during a chat\n * and what meaningful data was extracted.\n * Stored in: agent_contexts_org_{orgId} with key: {agentId}:{chatKey}\n */\nexport interface AgentContext {\n /**\n * Identity - used for storage key and cross-references\n */\n orgId: string;\n agentId: string;\n chatKey: string;\n /**\n * Schema defines the shape of accumulated variables\n * Tools contribute to this schema as they execute\n */\n schema: any /* types.JSONSchema */;\n /**\n * Variables is the merged view of all important outputs\n * This is what gets displayed in the \"Agent Context\" panel\n */\n variables: { [key: string]: any};\n /**\n * Executions tracks each tool call with full input/output\n * Similar to NodeStates in workflow engine\n */\n executions: AgentExecution[];\n /**\n * PendingPlan holds an execution plan awaiting user approval\n * Part of the Plan → Approve → Execute flow\n */\n pendingPlan?: ExecutionPlan;\n /**\n * CompletedPlans holds historical plans (for reference/audit)\n */\n completedPlans?: ExecutionPlan[];\n /**\n * Tracking\n */\n createdAt: number /* int64 */;\n lastUpdated: number /* int64 */;\n /**\n * Size management\n */\n archivedExecutionCount?: number /* int */;\n}\n/**\n * AgentExecution represents one tool call during the agentic loop.\n * Similar to NodeState in the workflow engine.\n */\nexport interface AgentExecution {\n /**\n * Identity\n */\n id: string;\n toolName: string;\n toolId?: string;\n /**\n * Display\n */\n title: string; // Human-readable: \"Document Analysis: manifest.pdf\"\n type: string; // Category: document, search, api, extraction\n icon?: string;\n /**\n * Status\n */\n status: ExecutionStatusTS;\n error?: string;\n /**\n * Schema-driven Input/Output (like NodeInput/NodeOutput)\n */\n inputSchema?: any /* types.JSONSchema */;\n input: { [key: string]: any};\n outputSchema?: any /* types.JSONSchema */;\n output?: { [key: string]: any};\n /**\n * Merge Configuration - how this execution's output merges into Variables\n */\n mergeConfig?: MergeConfig;\n /**\n * Timing\n */\n startedAt: number /* int64 */;\n completedAt?: number /* int64 */;\n duration?: number /* int64 */; // milliseconds\n}\n/**\n * ExecutionStatus represents the status of a tool execution\n */\nexport type ExecutionStatus = string;\nexport const ExecutionStatusPending: ExecutionStatus = \"pending\";\nexport const ExecutionStatusRunning: ExecutionStatus = \"running\";\nexport const ExecutionStatusCompleted: ExecutionStatus = \"completed\";\nexport const ExecutionStatusFailed: ExecutionStatus = \"failed\";\nexport const ExecutionStatusSkipped: ExecutionStatus = \"skipped\";\nexport type ExecutionStatusTS = 'pending' | 'running' | 'completed' | 'failed' | 'skipped';\n/**\n * MergeConfig defines how tool output gets merged into AgentContext.Variables\n */\nexport interface MergeConfig {\n /**\n * Keys to extract from output and merge into variables\n */\n mergeKeys?: string[];\n /**\n * Target path in variables\n * Examples: \"shipperName\" (direct), \"documents[]\" (append to array)\n */\n targetPath?: string;\n /**\n * Strategy: \"replace\" | \"merge\" | \"append\"\n * - replace: overwrite the target path\n * - merge: deep merge objects\n * - append: append to array (use with \"path[]\" syntax)\n */\n strategy?: MergeStrategy;\n}\n/**\n * MergeStrategy defines how values are merged into variables\n */\nexport type MergeStrategy = string;\nexport const MergeStrategyReplace: MergeStrategy = \"replace\";\nexport const MergeStrategyMerge: MergeStrategy = \"merge\";\nexport const MergeStrategyAppend: MergeStrategy = \"append\";\nexport type MergeStrategyTS = 'replace' | 'merge' | 'append';\n/**\n * AgentContextConfig is defined on the Agent to configure how context is managed\n */\nexport interface AgentContextConfig {\n /**\n * Base schema - defines the expected shape of accumulated context\n */\n schema: any /* types.JSONSchema */;\n /**\n * Default/initial values when context is created\n */\n defaultVariables?: { [key: string]: any};\n /**\n * Whether to extend schema at runtime when new keys appear\n */\n allowSchemaExtension: boolean;\n}\n/**\n * Constants for size management\n */\nexport const MaxExecutions = 100; // Keep last 100 executions\n/**\n * Constants for size management\n */\nexport const ExecutionTTLHours = 72; // Archive executions older than 72h\n/**\n * ExecutionPlan represents a planned sequence of tool executions\n * that requires user approval before execution.\n */\nexport interface ExecutionPlan {\n /**\n * Identity\n */\n id: string;\n chatKey: string;\n agentId: string;\n orgId: string;\n /**\n * Plan metadata\n */\n title: string; // Human-readable plan title\n description: string; // What this plan will accomplish\n createdAt: number /* int64 */;\n /**\n * Planned steps\n */\n steps: PlannedStep[];\n /**\n * Status tracking\n */\n status: PlanStatusTS;\n approvedAt?: number /* int64 */;\n approvedBy?: string;\n rejectedAt?: number /* int64 */;\n rejectionReason?: string;\n /**\n * Execution tracking (populated after approval)\n */\n executionStartedAt?: number /* int64 */;\n executionCompletedAt?: number /* int64 */;\n currentStepIndex: number /* int */;\n}\n/**\n * PlanStatus represents the status of an execution plan\n */\nexport type PlanStatus = string;\nexport const PlanStatusPendingApproval: PlanStatus = \"pending_approval\";\nexport const PlanStatusApproved: PlanStatus = \"approved\";\nexport const PlanStatusExecuting: PlanStatus = \"executing\";\nexport const PlanStatusCompleted: PlanStatus = \"completed\";\nexport const PlanStatusRejected: PlanStatus = \"rejected\";\nexport const PlanStatusCancelled: PlanStatus = \"cancelled\";\nexport type PlanStatusTS = 'pending_approval' | 'approved' | 'executing' | 'completed' | 'rejected' | 'cancelled';\n/**\n * PlannedStep represents a single step in an execution plan\n */\nexport interface PlannedStep {\n /**\n * Identity\n */\n id: string;\n order: number /* int */; // Execution order (0-based)\n /**\n * Tool information\n */\n toolName: string;\n toolId?: string;\n title: string; // Human-readable step title\n description: string; // What this step does\n icon?: string;\n /**\n * Planned input (may reference outputs from previous steps)\n */\n plannedInput: { [key: string]: any};\n /**\n * Dependencies (step IDs that must complete before this one)\n */\n dependsOn?: string[];\n /**\n * Optional: user can toggle individual steps\n */\n enabled: boolean;\n /**\n * After execution (populated during/after execution)\n */\n status: ExecutionStatusTS;\n output?: { [key: string]: any};\n error?: string;\n startedAt?: number /* int64 */;\n completedAt?: number /* int64 */;\n}\n/**\n * PlanApprovalConfig configures when an agent requires plan approval\n */\nexport interface PlanApprovalConfig {\n /**\n * Always require approval for any multi-tool operation\n */\n alwaysRequire: boolean;\n /**\n * Require approval only for these tool names\n */\n requireForTools?: string[];\n /**\n * Require approval when estimated execution time exceeds threshold (seconds)\n */\n timeThresholdSeconds?: number /* int */;\n /**\n * Require approval when number of steps exceeds threshold\n */\n stepCountThreshold?: number /* int */;\n /**\n * Auto-approve if user has previously approved similar plans\n */\n allowAutoApprove: boolean;\n}\n\n//////////\n// source: agent-io-models.go\n\n/**\n * CreateToolDefinitionRequest represents a request to create a tool definition\n */\nexport interface CreateToolDefinitionRequest {\n orgId: string /* uuid */;\n toolDefinition?: ToolDefinition;\n}\n/**\n * UpdateToolDefinitionRequest represents a request to update a tool definition\n */\nexport interface UpdateToolDefinitionRequest {\n orgId: string /* uuid */;\n toolDefinition?: ToolDefinition;\n}\n/**\n * GetToolDefinitionRequest represents a request to get a tool definition\n */\nexport interface GetToolDefinitionRequest {\n orgId: string /* uuid */;\n toolDefinitionId: string /* uuid */;\n}\n/**\n * DeleteToolDefinitionRequest represents a request to delete a tool definition\n */\nexport interface DeleteToolDefinitionRequest {\n orgId: string /* uuid */;\n toolDefinitionId: string /* uuid */;\n}\n/**\n * ListToolDefinitionsRequest represents a request to list tool definitions\n */\nexport interface ListToolDefinitionsRequest {\n orgId: string /* uuid */;\n onlySystem?: boolean;\n enabled?: boolean;\n limit?: number /* int */;\n offset?: number /* int */;\n}\n/**\n * ToolDefinitionResponse represents a response containing a tool definition\n */\nexport interface ToolDefinitionResponse {\n toolDefinition?: ToolDefinition;\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * ToolDefinitionsListResponse represents a response containing multiple tool definitions\n */\nexport interface ToolDefinitionsListResponse {\n toolDefinitions: ToolDefinition[];\n total: number /* int */;\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * CreateSubAgentRequest represents a request to create a sub-agent\n */\nexport interface CreateSubAgentRequest {\n orgId: string /* uuid */;\n subAgent?: SubAgent;\n}\n/**\n * UpdateSubAgentRequest represents a request to update a sub-agent\n */\nexport interface UpdateSubAgentRequest {\n orgId: string /* uuid */;\n subAgent?: SubAgent;\n}\n/**\n * GetSubAgentRequest represents a request to get a sub-agent\n */\nexport interface GetSubAgentRequest {\n orgId: string /* uuid */;\n subAgentId: string /* uuid */;\n}\n/**\n * DeleteSubAgentRequest represents a request to delete a sub-agent\n */\nexport interface DeleteSubAgentRequest {\n orgId: string /* uuid */;\n subAgentId: string /* uuid */;\n}\n/**\n * ListSubAgentsRequest represents a request to list sub-agents\n */\nexport interface ListSubAgentsRequest {\n orgId: string /* uuid */;\n onlySystem?: boolean;\n enabled?: boolean;\n limit?: number /* int */;\n offset?: number /* int */;\n}\n/**\n * SubAgentResponse represents a response containing a sub-agent\n */\nexport interface SubAgentResponse {\n subAgent?: SubAgent;\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * SubAgentsListResponse represents a response containing multiple sub-agents\n */\nexport interface SubAgentsListResponse {\n subAgents: SubAgent[];\n total: number /* int */;\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * GetToolDefinitionsByIDsRequest represents a request to get multiple tool definitions by IDs\n */\nexport interface GetToolDefinitionsByIDsRequest {\n orgId: string /* uuid */;\n toolDefinitionIds: string /* uuid */[];\n}\n/**\n * GetToolDefinitionsByIDsResponse represents a response containing multiple tool definitions\n */\nexport interface GetToolDefinitionsByIDsResponse {\n toolDefinitions: ToolDefinition[];\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * GetSubAgentsByIDsRequest represents a request to get multiple sub-agents by IDs\n */\nexport interface GetSubAgentsByIDsRequest {\n orgId: string /* uuid */;\n subAgentIds: string /* uuid */[];\n}\n/**\n * GetSubAgentsByIDsResponse represents a response containing multiple sub-agents\n */\nexport interface GetSubAgentsByIDsResponse {\n subAgents: SubAgent[];\n metadata: any /* types.ResponseMetadata */;\n}\nexport interface ExecuteToolRequest {\n orgId: string;\n agentId?: string;\n tool?: AgentTool;\n input: { [key: string]: any};\n metadata?: { [key: string]: any};\n context?: { [key: string]: any};\n chatKey?: string;\n}\nexport interface ExecuteToolResponse {\n result: { [key: string]: any};\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * CreateSkillRequest represents a request to create a skill\n */\nexport interface CreateSkillRequest {\n orgId: string /* uuid */;\n skill?: Skill;\n}\n/**\n * UpdateSkillRequest represents a request to update a skill\n */\nexport interface UpdateSkillRequest {\n orgId: string /* uuid */;\n skill?: Skill;\n}\n/**\n * GetSkillRequest represents a request to get a skill\n */\nexport interface GetSkillRequest {\n orgId: string /* uuid */;\n skillId: string /* uuid */;\n}\n/**\n * DeleteSkillRequest represents a request to delete a skill\n */\nexport interface DeleteSkillRequest {\n orgId: string /* uuid */;\n skillId: string /* uuid */;\n}\n/**\n * ListSkillsRequest represents a request to list skills\n */\nexport interface ListSkillsRequest {\n orgId: string /* uuid */;\n category?: SkillCategory;\n onlySystem?: boolean;\n enabled?: boolean;\n limit?: number /* int */;\n offset?: number /* int */;\n}\n/**\n * SkillResponse represents a response containing a skill\n */\nexport interface SkillResponse {\n skill?: Skill;\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * SkillsListResponse represents a response containing multiple skills\n */\nexport interface SkillsListResponse {\n skills: Skill[];\n total: number /* int */;\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * GetSkillsByIDsRequest represents a request to get multiple skills by IDs\n */\nexport interface GetSkillsByIDsRequest {\n orgId: string /* uuid */;\n skillIds: string /* uuid */[];\n}\n/**\n * GetSkillsByIDsResponse represents a response containing multiple skills\n */\nexport interface GetSkillsByIDsResponse {\n skills: Skill[];\n metadata: any /* types.ResponseMetadata */;\n}\n\n//////////\n// source: agent-models.go\n\nexport type AgentTypeTS = 'chat' | 'react';\nexport type AgentSubTypeTS = 'chat' | 'react' | 'workflow' | 'document';\nexport type AgentStatusTS = 'draft' | 'active' | 'inactive' | 'archived';\nexport type SkillCategoryTS = 'productivity' | 'creative' | 'integration' | 'analysis' | 'communication' | 'custom';\nexport type SkillCategory = string;\nexport const SkillCategoryProductivity: SkillCategory = \"productivity\";\nexport const SkillCategoryCreative: SkillCategory = \"creative\";\nexport const SkillCategoryIntegration: SkillCategory = \"integration\";\nexport const SkillCategoryAnalysis: SkillCategory = \"analysis\";\nexport const SkillCategoryCommunication: SkillCategory = \"communication\";\nexport const SkillCategoryCustom: SkillCategory = \"custom\";\n/**\n * Skill represents a bundled set of tools with a prompt extension\n * Skills can be activated at runtime to extend agent capabilities\n */\nexport interface Skill {\n id: string /* uuid */;\n orgId?: string /* uuid */;\n name: string; // Machine-readable name (e.g., \"code_review\")\n title: string; // Human-readable title (e.g., \"Code Review\")\n description?: string;\n category: SkillCategoryTS;\n slashCommand?: string; // Optional slash command trigger (e.g., \"/review\")\n tags?: string[];\n tools?: AgentTool[]; // Tools bundled with this skill\n systemPromptExtension?: string; // Prompt to append when skill is active\n iconName?: string; // Lucide icon name for UI display\n configSchema?: JSONSchema;\n config?: { [key: string]: any};\n enabled: boolean;\n isSystem?: boolean;\n displayOrder?: number /* int */;\n createdAt?: string /* RFC3339 */;\n updatedAt?: string /* RFC3339 */;\n}\n/**\n * AgentSkill represents an agent's configuration for a specific skill\n */\nexport interface AgentSkill {\n skillId: string /* uuid */;\n skillName?: string; // Denormalized for runtime performance\n enabled: boolean;\n order?: number /* int */;\n}\nexport type AgentType = string;\nexport const AgentTypeChat: AgentType = \"chat\";\nexport const AgentTypeReact: AgentType = \"react\";\nexport type AgentSubType = string;\n/**\n * Agent SubTypes\n */\nexport const AgentSubTypeChat: AgentSubType = \"chat\";\n/**\n * Agent SubTypes\n */\nexport const AgentSubTypeReact: AgentSubType = \"react\";\n/**\n * Agent SubTypes\n */\nexport const AgentSubTypeWorkflow: AgentSubType = \"workflow\";\n/**\n * Agent SubTypes\n */\nexport const AgentSubTypeDocument: AgentSubType = \"document\";\nexport type AgentStatus = string;\nexport const AgentStatusDraft: AgentStatus = \"draft\";\nexport const AgentStatusActive: AgentStatus = \"active\";\nexport const AgentStatusInactive: AgentStatus = \"inactive\";\nexport const AgentStatusArchived: AgentStatus = \"archived\";\nexport interface DefaultDefinitions {\n agents: Agent[];\n toolDefinitions: ToolDefinition[];\n subAgents: SubAgent[];\n skills?: Skill[];\n}\n/**\n * AgentTool represents an agent's configuration for a specific tool\n * Includes denormalized tool information to avoid joins at runtime\n */\nexport interface AgentTool {\n toolId: string /* uuid */;\n toolName: string; // Denormalized for runtime performance\n title?: string;\n description?: string;\n type?: string; // Category: document, search, api, extraction\n inputSchema?: JSONSchema;\n outputSchema?: JSONSchema; // Schema for tool output (for AgentContext)\n configSchema?: JSONSchema;\n config?: { [key: string]: any};\n mergeConfig?: MergeConfig; // How to merge output into AgentContext.Variables\n enabled: boolean;\n isSystem?: boolean;\n createdAt?: string /* RFC3339 */;\n updatedAt?: string /* RFC3339 */;\n order?: number /* int */;\n}\n/**\n * Core agent entity - shared by both types\n */\nexport interface Agent {\n id?: string /* uuid */;\n orgId: string /* uuid */;\n product: ProductNameTS;\n type: AgentTypeTS; // \"chat\" or \"react\"\n subType: AgentSubTypeTS; // Specific agent category\n name: string; // Machine-readable name (e.g., \"rfp_builder\")\n title: string; // Human-readable title (e.g., \"RFP Builder\")\n description?: string;\n status: AgentStatusTS;\n version: string;\n /**\n * === LLM CONFIG ===\n */\n provider: string;\n model: string;\n temperature: number /* float64 */;\n maxTokens: number /* int */;\n systemPrompt: string;\n /**\n * Shared metadata\n */\n tags?: string[];\n isDefault: boolean;\n isPublic: boolean;\n /**\n * === Tool and SubAgent References ===\n */\n tools?: AgentTool[]; // Tools with agent-specific configurations\n subAgentIds?: string /* uuid */[]; // IDs of sub-agents this agent can use\n /**\n * === Skills Configuration ===\n */\n useSkills?: boolean; // Enable skills system for this agent\n skills?: AgentSkill[]; // Skills assigned to this agent\n /**\n * === Essential Configs ===\n */\n csatConfig: CSATConfig;\n handoffConfig: HandoffConfig;\n /**\n * === TYPE-SPECIFIC CORE CONFIG ===\n */\n reactConfig?: ReactAgentConfig; // ReAct-only essentials\n /**\n * === CROSS-CUTTING FEATURES (can be used by any agent type) ===\n */\n userSuggestedActionsConfig?: UserSuggestedActionsConfig;\n /**\n * === AGENT CONTEXT CONFIG ===\n * Defines how AgentContext is initialized and managed for this agent\n */\n contextConfig?: AgentContextConfig;\n /**\n * === SCHEMA-DRIVEN AGENT CONFIG ===\n * Use ConfigSchema to auto-generate UI and validate values in Config\n */\n configSchema: JSONSchema;\n config?: { [key: string]: any};\n /**\n * === UI DISPLAY CONFIG ===\n */\n iconName?: string; // Lucide icon name for UI display (e.g., \"Bot\", \"ChartScatter\", \"PenTool\")\n capabilities?: string[]; // Agent capabilities for UI display (e.g., [\"Data Analysis\", \"Reporting\"])\n samplePrompts?: string[]; // Example prompts to show users (e.g., [\"What can you help me with?\"])\n /**\n * === SHARED BEHAVIOR CONFIG ===\n */\n responseStyle?: string;\n personalityTraits?: string[];\n fallbackMessage?: string;\n /**\n * === SHARED PERFORMANCE CONFIG ===\n */\n responseDelay?: number /* int */; // ms\n maxConcurrency?: number /* int */; // concurrent chats\n sessionTimeout?: number /* int */; // minutes\n /**\n * Audit fields\n */\n createdAt: string /* RFC3339 */;\n updatedAt: string /* RFC3339 */;\n createdBy: string;\n updatedBy: string;\n metadata?: { [key: string]: any};\n}\n/**\n * Handoff Configuration\n */\nexport interface HandoffConfig {\n enabled: boolean;\n triggerKeywords: string[];\n queueId?: string;\n handoffMessage: string;\n}\n/**\n * AgentFilters for filtering agents in list operations\n */\nexport interface AgentFilters {\n product?: ProductNameTS;\n type?: AgentType;\n subType?: AgentSubType;\n status?: AgentStatus;\n isDefault?: boolean;\n isPublic?: boolean;\n tags?: string[];\n limit?: number /* int */;\n offset?: number /* int */;\n}\n/**\n * AgentSummary is a lightweight representation of an agent for list views\n * Contains essential display fields plus metadata needed for chat initialization\n */\nexport interface AgentSummary {\n id: string /* uuid */;\n name: string;\n title: string;\n description?: string;\n iconName?: string;\n type: AgentTypeTS;\n status: AgentStatusTS;\n isDefault: boolean;\n isPublic: boolean;\n capabilities?: string[];\n samplePrompts?: string[];\n metadata?: { [key: string]: any};\n}\n/**\n * ToolDefinition represents an abstract/generic tool definition that can be customized per agent\n * This is the \"template\" that agents use to create their AgentTool configurations\n */\nexport interface ToolDefinition {\n id: string /* uuid */;\n name: string; // Machine-readable name for LLM calls (e.g., \"document_extractor\")\n title: string; // Human-readable title (e.g., \"Document Extractor\")\n description: string;\n type?: string; // Category: document, search, api, extraction\n inputSchema: JSONSchema; // Using JSONSchema for OpenAI compatibility\n outputSchema?: JSONSchema; // Schema for tool output (for AgentContext)\n configSchema: JSONSchema; // Using JSONSchema to generate UI and validate config\n config?: { [key: string]: any};\n mergeConfig?: MergeConfig; // How to merge output into AgentContext.Variables\n enabled: boolean;\n isSystem: boolean;\n metadata?: { [key: string]: any}; // Flexible metadata for UI (category, icon, etc.)\n createdAt: string /* RFC3339 */;\n updatedAt: string /* RFC3339 */;\n}\n/**\n * ToolExecution represents the execution context for a tool\n */\nexport interface ToolExecution {\n id: string;\n title: string;\n toolId: string;\n toolName: string;\n status: ToolExecutionStatusTS;\n input: { [key: string]: any};\n result?: { [key: string]: any};\n error?: string;\n context?: { [key: string]: any};\n startedAt: number /* int64 */;\n completedAt?: number /* int64 */;\n retryCount: number /* int */;\n progress?: ToolExecutionProgress[];\n}\nexport interface ToolExecutionProgress {\n status: ToolExecutionStatusTS;\n timestamp: number /* int64 */;\n message?: string;\n error?: string;\n metadata?: { [key: string]: any};\n}\n/**\n * ToolExecutionStatus represents the status of a tool execution\n */\nexport type ToolExecutionStatus = string;\nexport const ToolExecutionStatusStarted: ToolExecutionStatus = \"started\";\nexport const ToolExecutionStatusExecuting: ToolExecutionStatus = \"executing\";\nexport const ToolExecutionStatusCompleted: ToolExecutionStatus = \"completed\";\nexport const ToolExecutionStatusFailed: ToolExecutionStatus = \"failed\";\nexport const ToolExecutionStatusTimeout: ToolExecutionStatus = \"timeout\";\nexport const ToolExecutionStatusSkipped: ToolExecutionStatus = \"skipped\";\n/**\n * SubAgent represents a sub-agent composed of tools\n */\nexport interface SubAgent {\n id: string /* uuid */;\n orgId: string /* uuid */;\n name: string; // Machine-readable name (e.g., \"contract_reviewer\")\n title: string; // Human-readable title (e.g., \"Contract Reviewer\")\n description: string;\n prompt: string;\n toolIds: string /* uuid */[]; // Tool IDs this sub-agent can use\n inputSchema: JSONSchema; // Using JSONSchema for validation\n outputSchema: JSONSchema; // Using JSONSchema for validation\n configSchema: JSONSchema; // Using JSONSchema to generate UI and validate config\n config?: { [key: string]: any};\n version: string;\n enabled: boolean;\n isSystem: boolean;\n createdAt: string /* RFC3339 */;\n updatedAt: string /* RFC3339 */;\n createdBy: string;\n updatedBy: string;\n}\n/**\n * AgentToolConfiguration represents how an agent uses tools\n */\nexport interface AgentToolConfiguration {\n enabledTools: string[]; // Tool IDs\n enabledSubAgents: string[]; // SubAgent IDs\n toolConfigs: { [key: string]: ToolConfig}; // Per-tool configuration\n executionPolicy: ToolExecutionPolicy;\n maxParallelCalls: number /* int */;\n requireApproval: boolean;\n}\n/**\n * ToolExecutionPolicy defines how tools are executed\n */\nexport interface ToolExecutionPolicy {\n mode: ExecutionModeTS;\n maxIterations: number /* int */;\n stopOnError: boolean;\n retryOnFailure: boolean;\n timeoutSeconds: number /* int */;\n}\n/**\n * ExecutionMode defines how tools are executed\n */\nexport type ExecutionMode = string;\nexport const ExecutionModeSync: ExecutionMode = \"sync\";\nexport const ExecutionModeAsync: ExecutionMode = \"async\";\nexport const ExecutionModeAsyncClient: ExecutionMode = \"asyncClient\";\n/**\n * CreateExecutionPlanRequest represents a request to create an execution plan\n */\nexport interface CreateExecutionPlanRequest {\n agentInstanceId: string /* uuid */;\n orgId: string /* uuid */;\n input: string;\n context?: { [key: string]: any};\n availableTools: ToolDefinition[];\n}\n/**\n * CreateExecutionPlanResponse represents the response with an execution plan\n */\nexport interface CreateExecutionPlanResponse {\n agentInstanceId: string /* uuid */;\n executionPlan: ToolExecution[];\n estimatedTime?: any /* time.Duration */;\n}\n/**\n * ExecutePlanRequest represents a request to execute the plan\n */\nexport interface ExecutePlanRequest {\n agentInstanceId: string /* uuid */;\n orgId: string /* uuid */;\n approveAll?: boolean;\n}\n/**\n * ExecutePlanResponse represents the response after executing the plan\n */\nexport interface ExecutePlanResponse {\n stateId: string;\n status: ToolExecutionStatusTS;\n executedTools: ToolExecution[];\n finalResult?: any /* json.RawMessage */;\n errors?: string[];\n}\nexport type ToolExecutionStatusTS = 'pending' | 'executing' | 'completed' | 'failed' | 'timeout' | 'skipped';\nexport type ExecutionModeTS = 'sync' | 'async' | 'asyncClient';\n\n//////////\n// source: csat.go\n\n/**\n * CSAT Configuration\n */\nexport interface CSATConfig {\n enabled: boolean;\n survey?: CSATSurvey;\n}\nexport interface CSATQuestion {\n question: { [key: string]: string}; // {\"en\": \"How was...\", \"ar\": \"كيف كانت...\"}\n showRating: boolean;\n showComment: boolean;\n}\nexport interface CSATSurvey {\n questions: CSATQuestion[];\n timeThreshold: number /* int */; // Minutes after last message\n closeOnResponse: boolean;\n}\nexport interface CSATAnswer {\n question: string;\n lang?: string; // Language used for this answer\n rating?: number /* int */; // 1-5 rating\n comment?: string; // Text feedback\n}\nexport interface CSATResponse {\n answers: CSATAnswer[];\n submittedAt: number /* int64 */;\n overallRating: number /* int */; // 1-5 overall satisfaction\n}\n\n//////////\n// source: react.go\n\n/**\n * ReAct Agent Configuration\n */\nexport interface ReactAgentConfig {\n /**\n * Core ReAct Configuration\n */\n maxIterations: number /* int */;\n reasoningPrompt: string;\n stopConditions: string[];\n availableTools: string[];\n requireConfirmation: boolean;\n /**\n * LLM Configuration\n */\n model: string;\n temperature: number /* float64 */;\n maxTokens: number /* int */;\n provider: string;\n /**\n * Context Management\n */\n maxContextLength: number /* int */;\n memoryRetention: number /* int */;\n compressionStrategy: string;\n /**\n * Tool Configuration\n */\n toolConfigs?: { [key: string]: ToolConfig};\n mcpServers?: MCPServerConfig[];\n /**\n * Execution Configuration\n */\n timeoutMinutes: number /* int */;\n retryAttempts: number /* int */;\n parallelExecution: boolean;\n /**\n * Safety Configuration\n */\n dangerousOperations?: string[];\n allowedFileTypes?: string[];\n restrictedPaths?: string[];\n}\nexport interface ToolConfig {\n enabled: boolean;\n timeoutSeconds: number /* int */;\n retryPolicy: RetryPolicy;\n configuration?: { [key: string]: any};\n}\nexport interface RetryPolicy {\n maxAttempts: number /* int */;\n backoffStrategy: string;\n backoffDelay: any /* time.Duration */;\n}\nexport interface MCPServerConfig {\n name: string;\n endpoint: string;\n trusted: boolean;\n timeout: number /* int */;\n credentials?: { [key: string]: string};\n}\n\n//////////\n// source: requests.go\n\nexport interface CreateAgentRequest {\n agent?: Agent;\n orgId: string /* uuid */;\n}\nexport interface AgentResponse {\n agent?: Agent;\n metadata: any /* types.ResponseMetadata */;\n}\nexport interface GetAgentRequest {\n id?: string /* uuid */;\n name?: string;\n orgId: string /* uuid */;\n}\nexport interface UpdateAgentRequest {\n agent: Agent;\n orgId: string /* uuid */;\n}\nexport interface DeleteAgentRequest {\n id: string /* uuid */;\n orgId: string /* uuid */;\n}\nexport interface ListAgentsRequest {\n orgId: string /* uuid */;\n filters?: AgentFilters;\n}\nexport interface ListAgentsResponse {\n agents: Agent[];\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * ListAgentsSummaryRequest requests a lightweight list of agents\n */\nexport interface ListAgentsSummaryRequest {\n orgId: string /* uuid */;\n filters?: AgentFilters;\n}\n/**\n * ListAgentsSummaryResponse returns lightweight agent summaries for list views\n */\nexport interface ListAgentsSummaryResponse {\n agents: AgentSummary[];\n metadata: any /* types.ResponseMetadata */;\n}\nexport interface GetDefaultAgentRequest {\n orgId: string /* uuid */;\n agentType: AgentType;\n}\nexport interface UpdateOrgAgentsRequest {\n orgId: string /* uuid */;\n defaultDefinitions?: DefaultDefinitions;\n}\nexport interface UpdateOrgAgentsResponse {\n toolsCreated: number /* int */;\n subAgentsCreated: number /* int */;\n agentsCreated: number /* int */;\n skillsCreated: number /* int */;\n metadata: ResponseMetadata;\n}\n\n//////////\n// source: subjects.go\n\n/**\n * Core Agent Operations\n */\nexport const AgentCreateSubject = \"agent.create\";\n/**\n * Core Agent Operations\n */\nexport const AgentCreatedSubject = \"agent.created\";\n/**\n * Core Agent Operations\n */\nexport const AgentGetSubject = \"agent.get\";\n/**\n * Core Agent Operations\n */\nexport const AgentUpdateSubject = \"agent.update\";\n/**\n * Core Agent Operations\n */\nexport const AgentUpdatedSubject = \"agent.updated\";\n/**\n * Core Agent Operations\n */\nexport const AgentDeleteSubject = \"agent.delete\";\n/**\n * Core Agent Operations\n */\nexport const AgentDeletedSubject = \"agent.deleted\";\n/**\n * Core Agent Operations\n */\nexport const AgentListSubject = \"agent.list\";\n/**\n * Core Agent Operations\n */\nexport const AgentListSummarySubject = \"agent.list.summary\"; // Lightweight agent list for UI\n/**\n * Core Agent Operations\n */\nexport const AgentSearchSubject = \"agent.search\";\n/**\n * Agent Type Specific Operations\n */\nexport const AgentChatCreateSubject = \"agent.chat.create\";\n/**\n * Agent Type Specific Operations\n */\nexport const AgentChatUpdateSubject = \"agent.chat.update\";\n/**\n * Agent Type Specific Operations\n */\nexport const AgentChatGetSubject = \"agent.chat.get\";\n/**\n * Agent Type Specific Operations\n */\nexport const AgentChatValidateSubject = \"agent.chat.validate\";\n/**\n * Agent Type Specific Operations\n */\nexport const AgentReactCreateSubject = \"agent.react.create\";\n/**\n * Agent Type Specific Operations\n */\nexport const AgentReactUpdateSubject = \"agent.react.update\";\n/**\n * Agent Type Specific Operations\n */\nexport const AgentReactGetSubject = \"agent.react.get\";\n/**\n * Agent Type Specific Operations\n */\nexport const AgentReactValidateSubject = \"agent.react.validate\";\n/**\n * Execution Coordination\n */\nexport const AgentExecuteSubject = \"agent.execute\"; // Routes to appropriate service\n/**\n * Execution Coordination\n */\nexport const AgentExecuteStatusSubject = \"agent.execute.status\"; // Get execution status\n/**\n * Execution Coordination\n */\nexport const AgentExecuteStopSubject = \"agent.execute.stop\"; // Stop execution\n/**\n * Version Management\n */\nexport const AgentVersionCreateSubject = \"agent.version.create\";\n/**\n * Version Management\n */\nexport const AgentVersionCreatedSubject = \"agent.version.created\";\n/**\n * Version Management\n */\nexport const AgentVersionGetSubject = \"agent.version.get\";\n/**\n * Version Management\n */\nexport const AgentVersionListSubject = \"agent.version.list\";\n/**\n * Version Management\n */\nexport const AgentVersionActivateSubject = \"agent.version.activate\";\n/**\n * Version Management\n */\nexport const AgentVersionActivatedSubject = \"agent.version.activated\";\n/**\n * Default Agent Management\n */\nexport const AgentEnsureDefaultSubject = \"agent.ensure-default\";\n/**\n * Default Agent Management\n */\nexport const AgentGetDefaultSubject = \"agent.get-default\";\n/**\n * Organization Management\n */\nexport const AgentGetByOrgSubject = \"agent.get-by-org\";\n/**\n * Organization Management\n */\nexport const AgentCloneSubject = \"agent.clone\";\n/**\n * Organization Management\n */\nexport const AgentExportSubject = \"agent.export\";\n/**\n * Organization Management\n */\nexport const AgentImportSubject = \"agent.import\";\n/**\n * Organization Management\n */\nexport const AgentUpdateOrgSubject = \"agent.update-org-agents\"; // Bulk update agents and tools for an organization\n/**\n * Configuration Templates\n */\nexport const AgentTemplateListSubject = \"agent.template.list\";\n/**\n * Configuration Templates\n */\nexport const AgentTemplateGetSubject = \"agent.template.get\";\n/**\n * Configuration Templates\n */\nexport const AgentFromTemplateSubject = \"agent.from-template\";\n/**\n * Chat Service Integration\n */\nexport const ChatAgentExecuteSubject = \"chat.agent.execute\";\n/**\n * Execution Service Integration\n */\nexport const ChatAgentStatusSubject = \"chat.agent.status\";\n/**\n * ReAct Service Integration\n */\nexport const ReactAgentExecuteSubject = \"react.agent.execute\";\n/**\n * Execution Service Integration\n */\nexport const ReactAgentStatusSubject = \"react.agent.status\";\n/**\n * Execution Service Integration\n */\nexport const ReactAgentStopSubject = \"react.agent.stop\";\n/**\n * Workflow Service Integration\n */\nexport const WorkflowAgentGetSubject = \"workflow.agent.get\";\n/**\n * Execution Service Integration\n */\nexport const WorkflowAgentUpdateSubject = \"workflow.agent.update\";\n/**\n * ToolDefinitions Management\n */\nexport const ToolDefinitionsCreateSubject = \"agents.tool-definitions.create\";\n/**\n * ToolDefinitions Management\n */\nexport const ToolDefinitionsCreatedSubject = \"agents.tool-definitions.created\";\n/**\n * ToolDefinitions Management\n */\nexport const ToolDefinitionsGetSubject = \"agents.tool-definitions.get\";\n/**\n * ToolDefinitions Management\n */\nexport const ToolDefinitionsUpdateSubject = \"agents.tool-definitions.update\";\n/**\n * ToolDefinitions Management\n */\nexport const ToolDefinitionsUpdatedSubject = \"agents.tool-definitions.updated\";\n/**\n * ToolDefinitions Management\n */\nexport const ToolDefinitionsDeleteSubject = \"agents.tool-definitions.delete\";\n/**\n * ToolDefinitions Management\n */\nexport const ToolDefinitionsDeletedSubject = \"agents.tool-definitions.deleted\";\n/**\n * ToolDefinitions Management\n */\nexport const ToolDefinitionsListSubject = \"agents.tool-definitions.list\";\n/**\n * ToolDefinitions Management\n */\nexport const ToolDefinitionsGetByIDsSubject = \"agents.tool-definitions.get-by-ids\";\n/**\n * ToolDefinitions Management\n */\nexport const ToolDefinitionsExecuteSubject = \"agents.tool-definitions.execute\";\n/**\n * ToolDefinitions Management\n */\nexport const ToolDefinitionsValidateSubject = \"agents.tool-definitions.validate\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsCreateSubject = \"agents.subagents.create\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsCreatedSubject = \"agents.subagents.created\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsGetSubject = \"agents.subagents.get\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsUpdateSubject = \"agents.subagents.update\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsUpdatedSubject = \"agents.subagents.updated\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsDeleteSubject = \"agents.subagents.delete\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsDeletedSubject = \"agents.subagents.deleted\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsListSubject = \"agents.subagents.list\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsGetByIDsSubject = \"agents.subagents.get-by-ids\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsExecuteSubject = \"agents.subagents.execute\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsValidateSubject = \"agents.subagents.validate\";\n/**\n * Skills Management\n */\nexport const SkillsCreateSubject = \"agents.skills.create\";\n/**\n * Skills Management\n */\nexport const SkillsCreatedSubject = \"agents.skills.created\";\n/**\n * Skills Management\n */\nexport const SkillsGetSubject = \"agents.skills.get\";\n/**\n * Skills Management\n */\nexport const SkillsUpdateSubject = \"agents.skills.update\";\n/**\n * Skills Management\n */\nexport const SkillsUpdatedSubject = \"agents.skills.updated\";\n/**\n * Skills Management\n */\nexport const SkillsDeleteSubject = \"agents.skills.delete\";\n/**\n * Skills Management\n */\nexport const SkillsDeletedSubject = \"agents.skills.deleted\";\n/**\n * Skills Management\n */\nexport const SkillsListSubject = \"agents.skills.list\";\n/**\n * Skills Management\n */\nexport const SkillsGetByIDsSubject = \"agents.skills.get-by-ids\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceCreateSubject = \"agents.instance.create\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceCreatedSubject = \"agents.instance.created\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceGetSubject = \"agents.instance.get\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceUpdateSubject = \"agents.instance.update\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceUpdatedSubject = \"agents.instance.updated\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceListSubject = \"agents.instance.list\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceDeleteSubject = \"agents.instance.delete\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceDeletedSubject = \"agents.instance.deleted\";\n/**\n * Execution Plan Operations\n */\nexport const AgentInstanceCreatePlanSubject = \"agents.instance.create-plan\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceExecutePlanSubject = \"agents.instance.execute-plan\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstancePausePlanSubject = \"agents.instance.pause-plan\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceResumePlanSubject = \"agents.instance.resume-plan\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceCancelPlanSubject = \"agents.instance.cancel-plan\";\n/**\n * Execution History\n */\nexport const AgentInstanceGetHistorySubject = \"agents.instance.get-history\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceClearHistorySubject = \"agents.instance.clear-history\";\n\n//////////\n// source: user-suggested-actions.go\n\n/**\n * Config and request models for product service integration\n */\nexport interface UserSuggestedActionsConfig {\n enabled: boolean;\n actionTypes: string[];\n maxActions: number /* int */;\n cooldownSeconds: number /* int */;\n}\nexport interface UserSuggestedAction {\n title: string;\n actionType: string;\n input?: string;\n priority?: number /* int */;\n metadata?: { [key: string]: any};\n}\nexport interface UserSuggestedActionsRequest {\n orgId: string /* uuid */;\n chatKey: string;\n config: UserSuggestedActionsConfig;\n metadata?: { [key: string]: any};\n}\nexport interface UserSuggestedActionsResponse {\n actions: UserSuggestedAction[];\n metadata: any /* types.ResponseMetadata */;\n}\n\n//////////\n// source: validation.go\n\n/**\n * ValidationError represents a validation error with field and message\n */\nexport interface ValidationError {\n field: string;\n message: string;\n}\n/**\n * ValidationErrors represents a collection of validation errors\n */\nexport type ValidationErrors = ValidationError[];\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACmGO,IAAM,yBAA0C;AAChD,IAAM,yBAA0C;AAChD,IAAM,2BAA4C;AAClD,IAAM,wBAAyC;AAC/C,IAAM,yBAA0C;AA2BhD,IAAM,uBAAsC;AAC5C,IAAM,qBAAoC;AAC1C,IAAM,sBAAqC;AAsB3C,IAAM,gBAAgB;AAItB,IAAM,oBAAoB;AA0C1B,IAAM,4BAAwC;AAC9C,IAAM,qBAAiC;AACvC,IAAM,sBAAkC;AACxC,IAAM,sBAAkC;AACxC,IAAM,qBAAiC;AACvC,IAAM,sBAAkC;AAqSxC,IAAM,4BAA2C;AACjD,IAAM,wBAAuC;AAC7C,IAAM,2BAA0C;AAChD,IAAM,wBAAuC;AAC7C,IAAM,6BAA4C;AAClD,IAAM,sBAAqC;AAmC3C,IAAM,gBAA2B;AACjC,IAAM,iBAA4B;AAKlC,IAAM,mBAAiC;AAIvC,IAAM,oBAAkC;AAIxC,IAAM,uBAAqC;AAI3C,IAAM,uBAAqC;AAE3C,IAAM,mBAAgC;AACtC,IAAM,oBAAiC;AACvC,IAAM,sBAAmC;AACzC,IAAM,sBAAmC;AAgNzC,IAAM,6BAAkD;AACxD,IAAM,+BAAoD;AAC1D,IAAM,+BAAoD;AAC1D,IAAM,4BAAiD;AACvD,IAAM,6BAAkD;AACxD,IAAM,6BAAkD;AAiDxD,IAAM,oBAAmC;AACzC,IAAM,qBAAoC;AAC1C,IAAM,2BAA0C;AA6MhD,IAAM,qBAAqB;AAI3B,IAAM,sBAAsB;AAI5B,IAAM,kBAAkB;AAIxB,IAAM,qBAAqB;AAI3B,IAAM,sBAAsB;AAI5B,IAAM,qBAAqB;AAI3B,IAAM,sBAAsB;AAI5B,IAAM,mBAAmB;AAIzB,IAAM,0BAA0B;AAIhC,IAAM,qBAAqB;AAI3B,IAAM,yBAAyB;AAI/B,IAAM,yBAAyB;AAI/B,IAAM,sBAAsB;AAI5B,IAAM,2BAA2B;AAIjC,IAAM,0BAA0B;AAIhC,IAAM,0BAA0B;AAIhC,IAAM,uBAAuB;AAI7B,IAAM,4BAA4B;AAIlC,IAAM,sBAAsB;AAI5B,IAAM,4BAA4B;AAIlC,IAAM,0BAA0B;AAIhC,IAAM,4BAA4B;AAIlC,IAAM,6BAA6B;AAInC,IAAM,yBAAyB;AAI/B,IAAM,0BAA0B;AAIhC,IAAM,8BAA8B;AAIpC,IAAM,+BAA+B;AAIrC,IAAM,4BAA4B;AAIlC,IAAM,yBAAyB;AAI/B,IAAM,uBAAuB;AAI7B,IAAM,oBAAoB;AAI1B,IAAM,qBAAqB;AAI3B,IAAM,qBAAqB;AAI3B,IAAM,wBAAwB;AAI9B,IAAM,2BAA2B;AAIjC,IAAM,0BAA0B;AAIhC,IAAM,2BAA2B;AAIjC,IAAM,0BAA0B;AAIhC,IAAM,yBAAyB;AAI/B,IAAM,2BAA2B;AAIjC,IAAM,0BAA0B;AAIhC,IAAM,wBAAwB;AAI9B,IAAM,0BAA0B;AAIhC,IAAM,6BAA6B;AAInC,IAAM,+BAA+B;AAIrC,IAAM,gCAAgC;AAItC,IAAM,4BAA4B;AAIlC,IAAM,+BAA+B;AAIrC,IAAM,gCAAgC;AAItC,IAAM,+BAA+B;AAIrC,IAAM,gCAAgC;AAItC,IAAM,6BAA6B;AAInC,IAAM,iCAAiC;AAIvC,IAAM,gCAAgC;AAItC,IAAM,iCAAiC;AAIvC,IAAM,yBAAyB;AAI/B,IAAM,0BAA0B;AAIhC,IAAM,sBAAsB;AAI5B,IAAM,yBAAyB;AAI/B,IAAM,0BAA0B;AAIhC,IAAM,yBAAyB;AAI/B,IAAM,0BAA0B;AAIhC,IAAM,uBAAuB;AAI7B,IAAM,2BAA2B;AAIjC,IAAM,0BAA0B;AAIhC,IAAM,2BAA2B;AAIjC,IAAM,sBAAsB;AAI5B,IAAM,uBAAuB;AAI7B,IAAM,mBAAmB;AAIzB,IAAM,sBAAsB;AAI5B,IAAM,uBAAuB;AAI7B,IAAM,sBAAsB;AAI5B,IAAM,uBAAuB;AAI7B,IAAM,oBAAoB;AAI1B,IAAM,wBAAwB;AAI9B,IAAM,6BAA6B;AAInC,IAAM,8BAA8B;AAIpC,IAAM,0BAA0B;AAIhC,IAAM,6BAA6B;AAInC,IAAM,8BAA8B;AAIpC,IAAM,2BAA2B;AAIjC,IAAM,6BAA6B;AAInC,IAAM,8BAA8B;AAIpC,IAAM,iCAAiC;AAIvC,IAAM,kCAAkC;AAIxC,IAAM,gCAAgC;AAItC,IAAM,iCAAiC;AAIvC,IAAM,iCAAiC;AAIvC,IAAM,iCAAiC;AAIvC,IAAM,mCAAmC;","names":[]}
1
+ {"version":3,"sources":["../index.tsx","../models/agent-models.ts"],"sourcesContent":["\nexport * from \"./models\";\n","// Code generated by tygo. DO NOT EDIT.\nimport { KGNode } from \"@elqnt/kg\";\nimport { Variable } from \"@elqnt/types\";\nimport { ResponseMetadata, ProductNameTS, JSONSchema } from \"@elqnt/types\";\n\n//////////\n// source: agent-context.go\n\n/**\n * AgentContext accumulates meaningful state from agentic tool executions.\n * It provides a structured, schema-driven view of what happened during a chat\n * and what meaningful data was extracted.\n * Stored in: agent_contexts_org_{orgId} with key: {agentId}:{chatKey}\n */\nexport interface AgentContext {\n /**\n * Identity - used for storage key and cross-references\n */\n orgId: string;\n agentId: string;\n chatKey: string;\n /**\n * Schema defines the shape of accumulated variables\n * Tools contribute to this schema as they execute\n */\n schema: any /* types.JSONSchema */;\n /**\n * Variables is the merged view of all important outputs\n * This is what gets displayed in the \"Agent Context\" panel\n */\n variables: { [key: string]: any};\n /**\n * Executions tracks each tool call with full input/output\n * Similar to NodeStates in workflow engine\n */\n executions: AgentExecution[];\n /**\n * PendingPlan holds an execution plan awaiting user approval\n * Part of the Plan → Approve → Execute flow\n */\n pendingPlan?: ExecutionPlan;\n /**\n * CompletedPlans holds historical plans (for reference/audit)\n */\n completedPlans?: ExecutionPlan[];\n /**\n * Tracking\n */\n createdAt: number /* int64 */;\n lastUpdated: number /* int64 */;\n /**\n * Size management\n */\n archivedExecutionCount?: number /* int */;\n}\n/**\n * AgentExecution represents one tool call during the agentic loop.\n * Similar to NodeState in the workflow engine.\n */\nexport interface AgentExecution {\n /**\n * Identity\n */\n id: string;\n toolName: string;\n toolId?: string;\n /**\n * Display\n */\n title: string; // Human-readable: \"Document Analysis: manifest.pdf\"\n type: string; // Category: document, search, api, extraction\n icon?: string;\n /**\n * Status\n */\n status: ExecutionStatusTS;\n error?: string;\n /**\n * Schema-driven Input/Output (like NodeInput/NodeOutput)\n */\n inputSchema?: any /* types.JSONSchema */;\n input: { [key: string]: any};\n outputSchema?: any /* types.JSONSchema */;\n output?: { [key: string]: any};\n /**\n * Merge Configuration - how this execution's output merges into Variables\n */\n mergeConfig?: MergeConfig;\n /**\n * Timing\n */\n startedAt: number /* int64 */;\n completedAt?: number /* int64 */;\n duration?: number /* int64 */; // milliseconds\n}\n/**\n * ExecutionStatus represents the status of a tool execution\n */\nexport type ExecutionStatus = string;\nexport const ExecutionStatusPending: ExecutionStatus = \"pending\";\nexport const ExecutionStatusRunning: ExecutionStatus = \"running\";\nexport const ExecutionStatusCompleted: ExecutionStatus = \"completed\";\nexport const ExecutionStatusFailed: ExecutionStatus = \"failed\";\nexport const ExecutionStatusSkipped: ExecutionStatus = \"skipped\";\nexport type ExecutionStatusTS = 'pending' | 'running' | 'completed' | 'failed' | 'skipped';\n/**\n * MergeConfig defines how tool output gets merged into AgentContext.Variables\n */\nexport interface MergeConfig {\n /**\n * Keys to extract from output and merge into variables\n */\n mergeKeys?: string[];\n /**\n * Target path in variables\n * Examples: \"shipperName\" (direct), \"documents[]\" (append to array)\n */\n targetPath?: string;\n /**\n * Strategy: \"replace\" | \"merge\" | \"append\"\n * - replace: overwrite the target path\n * - merge: deep merge objects\n * - append: append to array (use with \"path[]\" syntax)\n */\n strategy?: MergeStrategy;\n}\n/**\n * MergeStrategy defines how values are merged into variables\n */\nexport type MergeStrategy = string;\nexport const MergeStrategyReplace: MergeStrategy = \"replace\";\nexport const MergeStrategyMerge: MergeStrategy = \"merge\";\nexport const MergeStrategyAppend: MergeStrategy = \"append\";\nexport type MergeStrategyTS = 'replace' | 'merge' | 'append';\n/**\n * AgentContextConfig is defined on the Agent to configure how context is managed\n */\nexport interface AgentContextConfig {\n /**\n * Base schema - defines the expected shape of accumulated context\n */\n schema: any /* types.JSONSchema */;\n /**\n * Default/initial values when context is created\n */\n defaultVariables?: { [key: string]: any};\n /**\n * Whether to extend schema at runtime when new keys appear\n */\n allowSchemaExtension: boolean;\n}\n/**\n * Constants for size management\n */\nexport const MaxExecutions = 100; // Keep last 100 executions\n/**\n * Constants for size management\n */\nexport const ExecutionTTLHours = 72; // Archive executions older than 72h\n/**\n * ExecutionPlan represents a planned sequence of tool executions\n * that requires user approval before execution.\n */\nexport interface ExecutionPlan {\n /**\n * Identity\n */\n id: string;\n chatKey: string;\n agentId: string;\n orgId: string;\n /**\n * Plan metadata\n */\n title: string; // Human-readable plan title\n description: string; // What this plan will accomplish\n createdAt: number /* int64 */;\n /**\n * Planned steps\n */\n steps: PlannedStep[];\n /**\n * Status tracking\n */\n status: PlanStatusTS;\n approvedAt?: number /* int64 */;\n approvedBy?: string;\n rejectedAt?: number /* int64 */;\n rejectionReason?: string;\n /**\n * Execution tracking (populated after approval)\n */\n executionStartedAt?: number /* int64 */;\n executionCompletedAt?: number /* int64 */;\n currentStepIndex: number /* int */;\n}\n/**\n * PlanStatus represents the status of an execution plan\n */\nexport type PlanStatus = string;\nexport const PlanStatusPendingApproval: PlanStatus = \"pending_approval\";\nexport const PlanStatusApproved: PlanStatus = \"approved\";\nexport const PlanStatusExecuting: PlanStatus = \"executing\";\nexport const PlanStatusCompleted: PlanStatus = \"completed\";\nexport const PlanStatusRejected: PlanStatus = \"rejected\";\nexport const PlanStatusCancelled: PlanStatus = \"cancelled\";\nexport type PlanStatusTS = 'pending_approval' | 'approved' | 'executing' | 'completed' | 'rejected' | 'cancelled';\n/**\n * PlannedStep represents a single step in an execution plan\n */\nexport interface PlannedStep {\n /**\n * Identity\n */\n id: string;\n order: number /* int */; // Execution order (0-based)\n /**\n * Tool information\n */\n toolName: string;\n toolId?: string;\n title: string; // Human-readable step title\n description: string; // What this step does\n icon?: string;\n /**\n * Planned input (may reference outputs from previous steps)\n */\n plannedInput: { [key: string]: any};\n /**\n * Dependencies (step IDs that must complete before this one)\n */\n dependsOn?: string[];\n /**\n * Optional: user can toggle individual steps\n */\n enabled: boolean;\n /**\n * After execution (populated during/after execution)\n */\n status: ExecutionStatusTS;\n output?: { [key: string]: any};\n error?: string;\n startedAt?: number /* int64 */;\n completedAt?: number /* int64 */;\n}\n/**\n * PlanApprovalConfig configures when an agent requires plan approval\n */\nexport interface PlanApprovalConfig {\n /**\n * Always require approval for any multi-tool operation\n */\n alwaysRequire: boolean;\n /**\n * Require approval only for these tool names\n */\n requireForTools?: string[];\n /**\n * Require approval when estimated execution time exceeds threshold (seconds)\n */\n timeThresholdSeconds?: number /* int */;\n /**\n * Require approval when number of steps exceeds threshold\n */\n stepCountThreshold?: number /* int */;\n /**\n * Auto-approve if user has previously approved similar plans\n */\n allowAutoApprove: boolean;\n}\n\n//////////\n// source: agent-io-models.go\n\n/**\n * CreateToolDefinitionRequest represents a request to create a tool definition\n */\nexport interface CreateToolDefinitionRequest {\n orgId: string /* uuid */;\n toolDefinition?: ToolDefinition;\n}\n/**\n * UpdateToolDefinitionRequest represents a request to update a tool definition\n */\nexport interface UpdateToolDefinitionRequest {\n orgId: string /* uuid */;\n toolDefinition?: ToolDefinition;\n}\n/**\n * GetToolDefinitionRequest represents a request to get a tool definition\n */\nexport interface GetToolDefinitionRequest {\n orgId: string /* uuid */;\n toolDefinitionId: string /* uuid */;\n}\n/**\n * DeleteToolDefinitionRequest represents a request to delete a tool definition\n */\nexport interface DeleteToolDefinitionRequest {\n orgId: string /* uuid */;\n toolDefinitionId: string /* uuid */;\n}\n/**\n * ListToolDefinitionsRequest represents a request to list tool definitions\n */\nexport interface ListToolDefinitionsRequest {\n orgId: string /* uuid */;\n onlySystem?: boolean;\n enabled?: boolean;\n limit?: number /* int */;\n offset?: number /* int */;\n}\n/**\n * ToolDefinitionResponse represents a response containing a tool definition\n */\nexport interface ToolDefinitionResponse {\n toolDefinition?: ToolDefinition;\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * ToolDefinitionsListResponse represents a response containing multiple tool definitions\n */\nexport interface ToolDefinitionsListResponse {\n toolDefinitions: ToolDefinition[];\n total: number /* int */;\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * CreateSubAgentRequest represents a request to create a sub-agent\n */\nexport interface CreateSubAgentRequest {\n orgId: string /* uuid */;\n subAgent?: SubAgent;\n}\n/**\n * UpdateSubAgentRequest represents a request to update a sub-agent\n */\nexport interface UpdateSubAgentRequest {\n orgId: string /* uuid */;\n subAgent?: SubAgent;\n}\n/**\n * GetSubAgentRequest represents a request to get a sub-agent\n */\nexport interface GetSubAgentRequest {\n orgId: string /* uuid */;\n subAgentId: string /* uuid */;\n}\n/**\n * DeleteSubAgentRequest represents a request to delete a sub-agent\n */\nexport interface DeleteSubAgentRequest {\n orgId: string /* uuid */;\n subAgentId: string /* uuid */;\n}\n/**\n * ListSubAgentsRequest represents a request to list sub-agents\n */\nexport interface ListSubAgentsRequest {\n orgId: string /* uuid */;\n onlySystem?: boolean;\n enabled?: boolean;\n limit?: number /* int */;\n offset?: number /* int */;\n}\n/**\n * SubAgentResponse represents a response containing a sub-agent\n */\nexport interface SubAgentResponse {\n subAgent?: SubAgent;\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * SubAgentsListResponse represents a response containing multiple sub-agents\n */\nexport interface SubAgentsListResponse {\n subAgents: SubAgent[];\n total: number /* int */;\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * GetToolDefinitionsByIDsRequest represents a request to get multiple tool definitions by IDs\n */\nexport interface GetToolDefinitionsByIDsRequest {\n orgId: string /* uuid */;\n toolDefinitionIds: string /* uuid */[];\n}\n/**\n * GetToolDefinitionsByIDsResponse represents a response containing multiple tool definitions\n */\nexport interface GetToolDefinitionsByIDsResponse {\n toolDefinitions: ToolDefinition[];\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * GetSubAgentsByIDsRequest represents a request to get multiple sub-agents by IDs\n */\nexport interface GetSubAgentsByIDsRequest {\n orgId: string /* uuid */;\n subAgentIds: string /* uuid */[];\n}\n/**\n * GetSubAgentsByIDsResponse represents a response containing multiple sub-agents\n */\nexport interface GetSubAgentsByIDsResponse {\n subAgents: SubAgent[];\n metadata: any /* types.ResponseMetadata */;\n}\nexport interface ExecuteToolRequest {\n orgId: string;\n agentId?: string;\n tool?: AgentTool;\n input: { [key: string]: any};\n metadata?: { [key: string]: any};\n context?: { [key: string]: any};\n chatKey?: string;\n}\nexport interface ExecuteToolResponse {\n result: { [key: string]: any};\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * CreateSkillRequest represents a request to create a skill\n */\nexport interface CreateSkillRequest {\n orgId: string /* uuid */;\n skill?: Skill;\n}\n/**\n * UpdateSkillRequest represents a request to update a skill\n */\nexport interface UpdateSkillRequest {\n orgId: string /* uuid */;\n skill?: Skill;\n}\n/**\n * GetSkillRequest represents a request to get a skill\n */\nexport interface GetSkillRequest {\n orgId: string /* uuid */;\n skillId: string /* uuid */;\n}\n/**\n * DeleteSkillRequest represents a request to delete a skill\n */\nexport interface DeleteSkillRequest {\n orgId: string /* uuid */;\n skillId: string /* uuid */;\n}\n/**\n * ListSkillsRequest represents a request to list skills\n */\nexport interface ListSkillsRequest {\n orgId: string /* uuid */;\n category?: SkillCategory;\n onlySystem?: boolean;\n enabled?: boolean;\n limit?: number /* int */;\n offset?: number /* int */;\n}\n/**\n * SkillResponse represents a response containing a skill\n */\nexport interface SkillResponse {\n skill?: Skill;\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * SkillsListResponse represents a response containing multiple skills\n */\nexport interface SkillsListResponse {\n skills: Skill[];\n total: number /* int */;\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * GetSkillsByIDsRequest represents a request to get multiple skills by IDs\n */\nexport interface GetSkillsByIDsRequest {\n orgId: string /* uuid */;\n skillIds: string /* uuid */[];\n}\n/**\n * GetSkillsByIDsResponse represents a response containing multiple skills\n */\nexport interface GetSkillsByIDsResponse {\n skills: Skill[];\n metadata: any /* types.ResponseMetadata */;\n}\n\n//////////\n// source: agent-models.go\n\nexport type AgentTypeTS = 'chat' | 'react';\nexport type AgentSubTypeTS = 'chat' | 'react' | 'workflow' | 'document';\nexport type AgentStatusTS = 'draft' | 'active' | 'inactive' | 'archived';\nexport type SkillCategoryTS = 'productivity' | 'creative' | 'integration' | 'analysis' | 'communication' | 'custom';\nexport type SkillCategory = string;\nexport const SkillCategoryProductivity: SkillCategory = \"productivity\";\nexport const SkillCategoryCreative: SkillCategory = \"creative\";\nexport const SkillCategoryIntegration: SkillCategory = \"integration\";\nexport const SkillCategoryAnalysis: SkillCategory = \"analysis\";\nexport const SkillCategoryCommunication: SkillCategory = \"communication\";\nexport const SkillCategoryCustom: SkillCategory = \"custom\";\n/**\n * Skill represents a bundled set of tools with a prompt extension\n * Skills can be activated at runtime to extend agent capabilities\n */\nexport interface Skill {\n id: string /* uuid */;\n orgId?: string /* uuid */;\n name: string; // Machine-readable name (e.g., \"code_review\")\n title: string; // Human-readable title (e.g., \"Code Review\")\n description?: string;\n category: SkillCategoryTS;\n slashCommand?: string; // Optional slash command trigger (e.g., \"/review\")\n tags?: string[];\n tools?: AgentTool[]; // Tools bundled with this skill\n systemPromptExtension?: string; // Prompt to append when skill is active\n iconName?: string; // Lucide icon name for UI display\n configSchema?: JSONSchema;\n config?: { [key: string]: any};\n enabled: boolean;\n isSystem?: boolean;\n persisted?: boolean; // Auto-activate by default in new chats\n displayOrder?: number /* int */;\n createdAt?: string /* RFC3339 */;\n updatedAt?: string /* RFC3339 */;\n}\n/**\n * AgentSkill represents an agent's configuration for a specific skill\n */\nexport interface AgentSkill {\n skillId: string /* uuid */;\n skillName?: string; // Denormalized for runtime performance\n enabled: boolean;\n order?: number /* int */;\n}\nexport type AgentType = string;\nexport const AgentTypeChat: AgentType = \"chat\";\nexport const AgentTypeReact: AgentType = \"react\";\nexport type AgentSubType = string;\n/**\n * Agent SubTypes\n */\nexport const AgentSubTypeChat: AgentSubType = \"chat\";\n/**\n * Agent SubTypes\n */\nexport const AgentSubTypeReact: AgentSubType = \"react\";\n/**\n * Agent SubTypes\n */\nexport const AgentSubTypeWorkflow: AgentSubType = \"workflow\";\n/**\n * Agent SubTypes\n */\nexport const AgentSubTypeDocument: AgentSubType = \"document\";\nexport type AgentStatus = string;\nexport const AgentStatusDraft: AgentStatus = \"draft\";\nexport const AgentStatusActive: AgentStatus = \"active\";\nexport const AgentStatusInactive: AgentStatus = \"inactive\";\nexport const AgentStatusArchived: AgentStatus = \"archived\";\nexport interface DefaultDefinitions {\n agents: Agent[];\n toolDefinitions: ToolDefinition[];\n subAgents: SubAgent[];\n skills?: Skill[];\n}\n/**\n * AgentTool represents an agent's configuration for a specific tool\n * Includes denormalized tool information to avoid joins at runtime\n */\nexport interface AgentTool {\n toolId: string /* uuid */;\n toolName: string; // Denormalized for runtime performance\n title?: string;\n description?: string;\n type?: string; // Category: document, search, api, extraction\n inputSchema?: JSONSchema;\n outputSchema?: JSONSchema; // Schema for tool output (for AgentContext)\n configSchema?: JSONSchema;\n config?: { [key: string]: any};\n mergeConfig?: MergeConfig; // How to merge output into AgentContext.Variables\n enabled: boolean;\n isSystem?: boolean;\n createdAt?: string /* RFC3339 */;\n updatedAt?: string /* RFC3339 */;\n order?: number /* int */;\n}\n/**\n * Core agent entity - shared by both types\n */\nexport interface Agent {\n id?: string /* uuid */;\n orgId: string /* uuid */;\n product: ProductNameTS;\n type: AgentTypeTS; // \"chat\" or \"react\"\n subType: AgentSubTypeTS; // Specific agent category\n name: string; // Machine-readable name (e.g., \"rfp_builder\")\n title: string; // Human-readable title (e.g., \"RFP Builder\")\n description?: string;\n status: AgentStatusTS;\n version: string;\n /**\n * === LLM CONFIG ===\n */\n provider: string;\n model: string;\n temperature: number /* float64 */;\n maxTokens: number /* int */;\n systemPrompt: string;\n /**\n * Shared metadata\n */\n tags?: string[];\n isDefault: boolean;\n isPublic: boolean;\n /**\n * === Tool and SubAgent References ===\n */\n tools?: AgentTool[]; // Tools with agent-specific configurations\n subAgentIds?: string /* uuid */[]; // IDs of sub-agents this agent can use\n /**\n * === Skills Configuration ===\n */\n useSkills?: boolean; // Enable skills system for this agent\n skills?: AgentSkill[]; // Skills assigned to this agent\n /**\n * === Essential Configs ===\n */\n csatConfig: CSATConfig;\n handoffConfig: HandoffConfig;\n /**\n * === Widget Embed Config ===\n */\n widgetConfig?: WidgetConfig;\n /**\n * === TYPE-SPECIFIC CORE CONFIG ===\n */\n reactConfig?: ReactAgentConfig; // ReAct-only essentials\n /**\n * === CROSS-CUTTING FEATURES (can be used by any agent type) ===\n */\n userSuggestedActionsConfig?: UserSuggestedActionsConfig;\n /**\n * === AGENT CONTEXT CONFIG ===\n * Defines how AgentContext is initialized and managed for this agent\n */\n contextConfig?: AgentContextConfig;\n /**\n * === SCHEMA-DRIVEN AGENT CONFIG ===\n * Use ConfigSchema to auto-generate UI and validate values in Config\n */\n configSchema: JSONSchema;\n config?: { [key: string]: any};\n /**\n * === UI DISPLAY CONFIG ===\n */\n iconName?: string; // Lucide icon name for UI display (e.g., \"Bot\", \"ChartScatter\", \"PenTool\")\n capabilities?: string[]; // Agent capabilities for UI display (e.g., [\"Data Analysis\", \"Reporting\"])\n samplePrompts?: string[]; // Example prompts to show users (e.g., [\"What can you help me with?\"])\n /**\n * === SHARED BEHAVIOR CONFIG ===\n */\n responseStyle?: string;\n personalityTraits?: string[];\n fallbackMessage?: string;\n /**\n * === SHARED PERFORMANCE CONFIG ===\n */\n responseDelay?: number /* int */; // ms\n maxConcurrency?: number /* int */; // concurrent chats\n sessionTimeout?: number /* int */; // minutes\n /**\n * Audit fields\n */\n createdAt: string /* RFC3339 */;\n updatedAt: string /* RFC3339 */;\n createdBy: string;\n updatedBy: string;\n metadata?: { [key: string]: any};\n}\n/**\n * Handoff Configuration\n */\nexport interface HandoffConfig {\n enabled: boolean;\n triggerKeywords: string[];\n queueId?: string;\n handoffMessage: string;\n}\n/**\n * WidgetConfig defines the configuration for an embeddable chat widget\n */\nexport interface WidgetConfig {\n enabled: boolean;\n widgetId: string; // Unique widget identifier (KSUID)\n appearance: WidgetAppearance;\n behavior: WidgetBehavior;\n security: WidgetSecurity;\n}\n/**\n * WidgetAppearance defines the visual customization of the widget\n */\nexport interface WidgetAppearance {\n position: string; // \"bottom-right\" or \"bottom-left\"\n primaryColor: string; // Hex color for primary elements\n backgroundColor: string; // Hex color for background\n textColor: string; // Hex color for text\n borderRadius: number /* int */; // Border radius in pixels\n bubbleSize: number /* int */; // Bubble size in pixels\n bubbleIconUrl?: string; // Custom icon URL\n}\n/**\n * WidgetBehavior defines the behavioral settings of the widget\n */\nexport interface WidgetBehavior {\n welcomeMessage: string; // Initial greeting message\n suggestedPrompts?: string[]; // Quick action prompts\n autoOpenDelay: number /* int */; // Delay in ms before auto-opening (0 = disabled)\n showPoweredBy: boolean; // Show \"Powered by Eloquent\" attribution\n}\n/**\n * WidgetSecurity defines the security settings for the widget\n */\nexport interface WidgetSecurity {\n allowedDomains: string[]; // Domains allowed to embed this widget\n}\n/**\n * AgentFilters for filtering agents in list operations\n */\nexport interface AgentFilters {\n product?: ProductNameTS;\n type?: AgentType;\n subType?: AgentSubType;\n status?: AgentStatus;\n isDefault?: boolean;\n isPublic?: boolean;\n tags?: string[];\n limit?: number /* int */;\n offset?: number /* int */;\n}\n/**\n * AgentSummary is a lightweight representation of an agent for list views\n * Contains essential display fields plus metadata needed for chat initialization\n */\nexport interface AgentSummary {\n id: string /* uuid */;\n name: string;\n title: string;\n description?: string;\n iconName?: string;\n type: AgentTypeTS;\n status: AgentStatusTS;\n isDefault: boolean;\n isPublic: boolean;\n capabilities?: string[];\n samplePrompts?: string[];\n metadata?: { [key: string]: any};\n}\n/**\n * ToolDefinition represents an abstract/generic tool definition that can be customized per agent\n * This is the \"template\" that agents use to create their AgentTool configurations\n */\nexport interface ToolDefinition {\n id: string /* uuid */;\n name: string; // Machine-readable name for LLM calls (e.g., \"document_extractor\")\n title: string; // Human-readable title (e.g., \"Document Extractor\")\n description: string;\n type?: string; // Category: document, search, api, extraction\n inputSchema: JSONSchema; // Using JSONSchema for OpenAI compatibility\n outputSchema?: JSONSchema; // Schema for tool output (for AgentContext)\n configSchema: JSONSchema; // Using JSONSchema to generate UI and validate config\n config?: { [key: string]: any};\n mergeConfig?: MergeConfig; // How to merge output into AgentContext.Variables\n enabled: boolean;\n isSystem: boolean;\n metadata?: { [key: string]: any}; // Flexible metadata for UI (category, icon, etc.)\n createdAt: string /* RFC3339 */;\n updatedAt: string /* RFC3339 */;\n}\n/**\n * ToolExecution represents the execution context for a tool\n */\nexport interface ToolExecution {\n id: string;\n title: string;\n toolId: string;\n toolName: string;\n status: ToolExecutionStatusTS;\n input: { [key: string]: any};\n result?: { [key: string]: any};\n error?: string;\n context?: { [key: string]: any};\n startedAt: number /* int64 */;\n completedAt?: number /* int64 */;\n retryCount: number /* int */;\n progress?: ToolExecutionProgress[];\n}\nexport interface ToolExecutionProgress {\n status: ToolExecutionStatusTS;\n timestamp: number /* int64 */;\n message?: string;\n error?: string;\n metadata?: { [key: string]: any};\n}\n/**\n * ToolExecutionStatus represents the status of a tool execution\n */\nexport type ToolExecutionStatus = string;\nexport const ToolExecutionStatusStarted: ToolExecutionStatus = \"started\";\nexport const ToolExecutionStatusExecuting: ToolExecutionStatus = \"executing\";\nexport const ToolExecutionStatusCompleted: ToolExecutionStatus = \"completed\";\nexport const ToolExecutionStatusFailed: ToolExecutionStatus = \"failed\";\nexport const ToolExecutionStatusTimeout: ToolExecutionStatus = \"timeout\";\nexport const ToolExecutionStatusSkipped: ToolExecutionStatus = \"skipped\";\n/**\n * SubAgent represents a sub-agent composed of tools\n */\nexport interface SubAgent {\n id: string /* uuid */;\n orgId: string /* uuid */;\n name: string; // Machine-readable name (e.g., \"contract_reviewer\")\n title: string; // Human-readable title (e.g., \"Contract Reviewer\")\n description: string;\n prompt: string;\n toolIds: string /* uuid */[]; // Tool IDs this sub-agent can use\n inputSchema: JSONSchema; // Using JSONSchema for validation\n outputSchema: JSONSchema; // Using JSONSchema for validation\n configSchema: JSONSchema; // Using JSONSchema to generate UI and validate config\n config?: { [key: string]: any};\n version: string;\n enabled: boolean;\n isSystem: boolean;\n createdAt: string /* RFC3339 */;\n updatedAt: string /* RFC3339 */;\n createdBy: string;\n updatedBy: string;\n}\n/**\n * AgentToolConfiguration represents how an agent uses tools\n */\nexport interface AgentToolConfiguration {\n enabledTools: string[]; // Tool IDs\n enabledSubAgents: string[]; // SubAgent IDs\n toolConfigs: { [key: string]: ToolConfig}; // Per-tool configuration\n executionPolicy: ToolExecutionPolicy;\n maxParallelCalls: number /* int */;\n requireApproval: boolean;\n}\n/**\n * ToolExecutionPolicy defines how tools are executed\n */\nexport interface ToolExecutionPolicy {\n mode: ExecutionModeTS;\n maxIterations: number /* int */;\n stopOnError: boolean;\n retryOnFailure: boolean;\n timeoutSeconds: number /* int */;\n}\n/**\n * ExecutionMode defines how tools are executed\n */\nexport type ExecutionMode = string;\nexport const ExecutionModeSync: ExecutionMode = \"sync\";\nexport const ExecutionModeAsync: ExecutionMode = \"async\";\nexport const ExecutionModeAsyncClient: ExecutionMode = \"asyncClient\";\n/**\n * CreateExecutionPlanRequest represents a request to create an execution plan\n */\nexport interface CreateExecutionPlanRequest {\n agentInstanceId: string /* uuid */;\n orgId: string /* uuid */;\n input: string;\n context?: { [key: string]: any};\n availableTools: ToolDefinition[];\n}\n/**\n * CreateExecutionPlanResponse represents the response with an execution plan\n */\nexport interface CreateExecutionPlanResponse {\n agentInstanceId: string /* uuid */;\n executionPlan: ToolExecution[];\n estimatedTime?: any /* time.Duration */;\n}\n/**\n * ExecutePlanRequest represents a request to execute the plan\n */\nexport interface ExecutePlanRequest {\n agentInstanceId: string /* uuid */;\n orgId: string /* uuid */;\n approveAll?: boolean;\n}\n/**\n * ExecutePlanResponse represents the response after executing the plan\n */\nexport interface ExecutePlanResponse {\n stateId: string;\n status: ToolExecutionStatusTS;\n executedTools: ToolExecution[];\n finalResult?: any /* json.RawMessage */;\n errors?: string[];\n}\nexport type ToolExecutionStatusTS = 'pending' | 'executing' | 'completed' | 'failed' | 'timeout' | 'skipped';\nexport type ExecutionModeTS = 'sync' | 'async' | 'asyncClient';\n/**\n * GetWidgetConfigRequest represents a request to get widget config for an agent\n */\nexport interface GetWidgetConfigRequest {\n orgId: string /* uuid */;\n agentId: string /* uuid */;\n}\n/**\n * GetWidgetConfigResponse represents the response with widget config\n */\nexport interface GetWidgetConfigResponse {\n config?: WidgetConfig;\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * SaveWidgetConfigRequest represents a request to save widget config for an agent\n */\nexport interface SaveWidgetConfigRequest {\n orgId: string /* uuid */;\n agentId: string /* uuid */;\n config?: WidgetConfig;\n}\n/**\n * SaveWidgetConfigResponse represents the response after saving widget config\n */\nexport interface SaveWidgetConfigResponse {\n config?: WidgetConfig;\n metadata: any /* types.ResponseMetadata */;\n}\n\n//////////\n// source: csat.go\n\n/**\n * CSAT Configuration\n */\nexport interface CSATConfig {\n enabled: boolean;\n survey?: CSATSurvey;\n}\nexport interface CSATQuestion {\n question: { [key: string]: string}; // {\"en\": \"How was...\", \"ar\": \"كيف كانت...\"}\n showRating: boolean;\n showComment: boolean;\n}\nexport interface CSATSurvey {\n questions: CSATQuestion[];\n timeThreshold: number /* int */; // Minutes after last message\n closeOnResponse: boolean;\n}\nexport interface CSATAnswer {\n question: string;\n lang?: string; // Language used for this answer\n rating?: number /* int */; // 1-5 rating\n comment?: string; // Text feedback\n}\nexport interface CSATResponse {\n answers: CSATAnswer[];\n submittedAt: number /* int64 */;\n overallRating: number /* int */; // 1-5 overall satisfaction\n}\n\n//////////\n// source: react.go\n\n/**\n * ReAct Agent Configuration\n */\nexport interface ReactAgentConfig {\n /**\n * Core ReAct Configuration\n */\n maxIterations: number /* int */;\n reasoningPrompt: string;\n stopConditions: string[];\n availableTools: string[];\n requireConfirmation: boolean;\n /**\n * LLM Configuration\n */\n model: string;\n temperature: number /* float64 */;\n maxTokens: number /* int */;\n provider: string;\n /**\n * Context Management\n */\n maxContextLength: number /* int */;\n memoryRetention: number /* int */;\n compressionStrategy: string;\n /**\n * Tool Configuration\n */\n toolConfigs?: { [key: string]: ToolConfig};\n mcpServers?: MCPServerConfig[];\n /**\n * Execution Configuration\n */\n timeoutMinutes: number /* int */;\n retryAttempts: number /* int */;\n parallelExecution: boolean;\n /**\n * Safety Configuration\n */\n dangerousOperations?: string[];\n allowedFileTypes?: string[];\n restrictedPaths?: string[];\n}\nexport interface ToolConfig {\n enabled: boolean;\n timeoutSeconds: number /* int */;\n retryPolicy: RetryPolicy;\n configuration?: { [key: string]: any};\n}\nexport interface RetryPolicy {\n maxAttempts: number /* int */;\n backoffStrategy: string;\n backoffDelay: any /* time.Duration */;\n}\nexport interface MCPServerConfig {\n name: string;\n endpoint: string;\n trusted: boolean;\n timeout: number /* int */;\n credentials?: { [key: string]: string};\n}\n\n//////////\n// source: requests.go\n\nexport interface CreateAgentRequest {\n agent?: Agent;\n orgId: string /* uuid */;\n}\nexport interface AgentResponse {\n agent?: Agent;\n metadata: any /* types.ResponseMetadata */;\n}\nexport interface GetAgentRequest {\n id?: string /* uuid */;\n name?: string;\n orgId: string /* uuid */;\n}\nexport interface UpdateAgentRequest {\n agent: Agent;\n orgId: string /* uuid */;\n}\nexport interface DeleteAgentRequest {\n id: string /* uuid */;\n orgId: string /* uuid */;\n}\nexport interface ListAgentsRequest {\n orgId: string /* uuid */;\n filters?: AgentFilters;\n}\nexport interface ListAgentsResponse {\n agents: Agent[];\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * ListAgentsSummaryRequest requests a lightweight list of agents\n */\nexport interface ListAgentsSummaryRequest {\n orgId: string /* uuid */;\n filters?: AgentFilters;\n}\n/**\n * ListAgentsSummaryResponse returns lightweight agent summaries for list views\n */\nexport interface ListAgentsSummaryResponse {\n agents: AgentSummary[];\n metadata: any /* types.ResponseMetadata */;\n}\nexport interface GetDefaultAgentRequest {\n orgId: string /* uuid */;\n agentType: AgentType;\n}\nexport interface UpdateOrgAgentsRequest {\n orgId: string /* uuid */;\n defaultDefinitions?: DefaultDefinitions;\n}\nexport interface UpdateOrgAgentsResponse {\n toolsCreated: number /* int */;\n subAgentsCreated: number /* int */;\n agentsCreated: number /* int */;\n skillsCreated: number /* int */;\n metadata: ResponseMetadata;\n}\n\n//////////\n// source: subjects.go\n\n/**\n * Core Agent Operations\n */\nexport const AgentCreateSubject = \"agent.create\";\n/**\n * Core Agent Operations\n */\nexport const AgentCreatedSubject = \"agent.created\";\n/**\n * Core Agent Operations\n */\nexport const AgentGetSubject = \"agent.get\";\n/**\n * Core Agent Operations\n */\nexport const AgentUpdateSubject = \"agent.update\";\n/**\n * Core Agent Operations\n */\nexport const AgentUpdatedSubject = \"agent.updated\";\n/**\n * Core Agent Operations\n */\nexport const AgentDeleteSubject = \"agent.delete\";\n/**\n * Core Agent Operations\n */\nexport const AgentDeletedSubject = \"agent.deleted\";\n/**\n * Core Agent Operations\n */\nexport const AgentListSubject = \"agent.list\";\n/**\n * Core Agent Operations\n */\nexport const AgentListSummarySubject = \"agent.list.summary\"; // Lightweight agent list for UI\n/**\n * Core Agent Operations\n */\nexport const AgentSearchSubject = \"agent.search\";\n/**\n * Agent Type Specific Operations\n */\nexport const AgentChatCreateSubject = \"agent.chat.create\";\n/**\n * Agent Type Specific Operations\n */\nexport const AgentChatUpdateSubject = \"agent.chat.update\";\n/**\n * Agent Type Specific Operations\n */\nexport const AgentChatGetSubject = \"agent.chat.get\";\n/**\n * Agent Type Specific Operations\n */\nexport const AgentChatValidateSubject = \"agent.chat.validate\";\n/**\n * Agent Type Specific Operations\n */\nexport const AgentReactCreateSubject = \"agent.react.create\";\n/**\n * Agent Type Specific Operations\n */\nexport const AgentReactUpdateSubject = \"agent.react.update\";\n/**\n * Agent Type Specific Operations\n */\nexport const AgentReactGetSubject = \"agent.react.get\";\n/**\n * Agent Type Specific Operations\n */\nexport const AgentReactValidateSubject = \"agent.react.validate\";\n/**\n * Execution Coordination\n */\nexport const AgentExecuteSubject = \"agent.execute\"; // Routes to appropriate service\n/**\n * Execution Coordination\n */\nexport const AgentExecuteStatusSubject = \"agent.execute.status\"; // Get execution status\n/**\n * Execution Coordination\n */\nexport const AgentExecuteStopSubject = \"agent.execute.stop\"; // Stop execution\n/**\n * Version Management\n */\nexport const AgentVersionCreateSubject = \"agent.version.create\";\n/**\n * Version Management\n */\nexport const AgentVersionCreatedSubject = \"agent.version.created\";\n/**\n * Version Management\n */\nexport const AgentVersionGetSubject = \"agent.version.get\";\n/**\n * Version Management\n */\nexport const AgentVersionListSubject = \"agent.version.list\";\n/**\n * Version Management\n */\nexport const AgentVersionActivateSubject = \"agent.version.activate\";\n/**\n * Version Management\n */\nexport const AgentVersionActivatedSubject = \"agent.version.activated\";\n/**\n * Default Agent Management\n */\nexport const AgentEnsureDefaultSubject = \"agent.ensure-default\";\n/**\n * Default Agent Management\n */\nexport const AgentGetDefaultSubject = \"agent.get-default\";\n/**\n * Organization Management\n */\nexport const AgentGetByOrgSubject = \"agent.get-by-org\";\n/**\n * Organization Management\n */\nexport const AgentCloneSubject = \"agent.clone\";\n/**\n * Organization Management\n */\nexport const AgentExportSubject = \"agent.export\";\n/**\n * Organization Management\n */\nexport const AgentImportSubject = \"agent.import\";\n/**\n * Organization Management\n */\nexport const AgentUpdateOrgSubject = \"agent.update-org-agents\"; // Bulk update agents and tools for an organization\n/**\n * Configuration Templates\n */\nexport const AgentTemplateListSubject = \"agent.template.list\";\n/**\n * Configuration Templates\n */\nexport const AgentTemplateGetSubject = \"agent.template.get\";\n/**\n * Configuration Templates\n */\nexport const AgentFromTemplateSubject = \"agent.from-template\";\n/**\n * Chat Service Integration\n */\nexport const ChatAgentExecuteSubject = \"chat.agent.execute\";\n/**\n * Execution Service Integration\n */\nexport const ChatAgentStatusSubject = \"chat.agent.status\";\n/**\n * ReAct Service Integration\n */\nexport const ReactAgentExecuteSubject = \"react.agent.execute\";\n/**\n * Execution Service Integration\n */\nexport const ReactAgentStatusSubject = \"react.agent.status\";\n/**\n * Execution Service Integration\n */\nexport const ReactAgentStopSubject = \"react.agent.stop\";\n/**\n * Workflow Service Integration\n */\nexport const WorkflowAgentGetSubject = \"workflow.agent.get\";\n/**\n * Execution Service Integration\n */\nexport const WorkflowAgentUpdateSubject = \"workflow.agent.update\";\n/**\n * ToolDefinitions Management\n */\nexport const ToolDefinitionsCreateSubject = \"agents.tool-definitions.create\";\n/**\n * ToolDefinitions Management\n */\nexport const ToolDefinitionsCreatedSubject = \"agents.tool-definitions.created\";\n/**\n * ToolDefinitions Management\n */\nexport const ToolDefinitionsGetSubject = \"agents.tool-definitions.get\";\n/**\n * ToolDefinitions Management\n */\nexport const ToolDefinitionsUpdateSubject = \"agents.tool-definitions.update\";\n/**\n * ToolDefinitions Management\n */\nexport const ToolDefinitionsUpdatedSubject = \"agents.tool-definitions.updated\";\n/**\n * ToolDefinitions Management\n */\nexport const ToolDefinitionsDeleteSubject = \"agents.tool-definitions.delete\";\n/**\n * ToolDefinitions Management\n */\nexport const ToolDefinitionsDeletedSubject = \"agents.tool-definitions.deleted\";\n/**\n * ToolDefinitions Management\n */\nexport const ToolDefinitionsListSubject = \"agents.tool-definitions.list\";\n/**\n * ToolDefinitions Management\n */\nexport const ToolDefinitionsGetByIDsSubject = \"agents.tool-definitions.get-by-ids\";\n/**\n * ToolDefinitions Management\n */\nexport const ToolDefinitionsExecuteSubject = \"agents.tool-definitions.execute\";\n/**\n * ToolDefinitions Management\n */\nexport const ToolDefinitionsValidateSubject = \"agents.tool-definitions.validate\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsCreateSubject = \"agents.subagents.create\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsCreatedSubject = \"agents.subagents.created\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsGetSubject = \"agents.subagents.get\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsUpdateSubject = \"agents.subagents.update\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsUpdatedSubject = \"agents.subagents.updated\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsDeleteSubject = \"agents.subagents.delete\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsDeletedSubject = \"agents.subagents.deleted\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsListSubject = \"agents.subagents.list\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsGetByIDsSubject = \"agents.subagents.get-by-ids\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsExecuteSubject = \"agents.subagents.execute\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsValidateSubject = \"agents.subagents.validate\";\n/**\n * Skills Management\n */\nexport const SkillsCreateSubject = \"agents.skills.create\";\n/**\n * Skills Management\n */\nexport const SkillsCreatedSubject = \"agents.skills.created\";\n/**\n * Skills Management\n */\nexport const SkillsGetSubject = \"agents.skills.get\";\n/**\n * Skills Management\n */\nexport const SkillsUpdateSubject = \"agents.skills.update\";\n/**\n * Skills Management\n */\nexport const SkillsUpdatedSubject = \"agents.skills.updated\";\n/**\n * Skills Management\n */\nexport const SkillsDeleteSubject = \"agents.skills.delete\";\n/**\n * Skills Management\n */\nexport const SkillsDeletedSubject = \"agents.skills.deleted\";\n/**\n * Skills Management\n */\nexport const SkillsListSubject = \"agents.skills.list\";\n/**\n * Skills Management\n */\nexport const SkillsGetByIDsSubject = \"agents.skills.get-by-ids\";\n/**\n * Widget Config Management\n */\nexport const WidgetConfigGetByAgentSubject = \"widgets.config.get.by.agent\";\n/**\n * Widget Config Management\n */\nexport const WidgetConfigSaveSubject = \"widgets.config.save\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceCreateSubject = \"agents.instance.create\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceCreatedSubject = \"agents.instance.created\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceGetSubject = \"agents.instance.get\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceUpdateSubject = \"agents.instance.update\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceUpdatedSubject = \"agents.instance.updated\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceListSubject = \"agents.instance.list\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceDeleteSubject = \"agents.instance.delete\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceDeletedSubject = \"agents.instance.deleted\";\n/**\n * Execution Plan Operations\n */\nexport const AgentInstanceCreatePlanSubject = \"agents.instance.create-plan\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceExecutePlanSubject = \"agents.instance.execute-plan\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstancePausePlanSubject = \"agents.instance.pause-plan\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceResumePlanSubject = \"agents.instance.resume-plan\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceCancelPlanSubject = \"agents.instance.cancel-plan\";\n/**\n * Execution History\n */\nexport const AgentInstanceGetHistorySubject = \"agents.instance.get-history\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceClearHistorySubject = \"agents.instance.clear-history\";\n\n//////////\n// source: user-suggested-actions.go\n\n/**\n * Config and request models for product service integration\n */\nexport interface UserSuggestedActionsConfig {\n enabled: boolean;\n actionTypes: string[];\n maxActions: number /* int */;\n cooldownSeconds: number /* int */;\n}\nexport interface UserSuggestedAction {\n title: string;\n actionType: string;\n input?: string;\n priority?: number /* int */;\n metadata?: { [key: string]: any};\n}\nexport interface UserSuggestedActionsRequest {\n orgId: string /* uuid */;\n chatKey: string;\n config: UserSuggestedActionsConfig;\n metadata?: { [key: string]: any};\n}\nexport interface UserSuggestedActionsResponse {\n actions: UserSuggestedAction[];\n metadata: any /* types.ResponseMetadata */;\n}\n\n//////////\n// source: validation.go\n\n/**\n * ValidationError represents a validation error with field and message\n */\nexport interface ValidationError {\n field: string;\n message: string;\n}\n/**\n * ValidationErrors represents a collection of validation errors\n */\nexport type ValidationErrors = ValidationError[];\n\n//////////\n// source: widget-models.go\n\n/**\n * AgentWidget represents a widget configuration for an agent\n */\nexport interface AgentWidget {\n id: string /* uuid */;\n agentId: string /* uuid */;\n orgId: string /* uuid */; // Derived from schema context\n widgetId: string /* uuid */; // Unique ID for embed URL\n name: string; // Internal name/identifier\n title: string; // Display title in widget header\n description?: string;\n enabled: boolean;\n isDefault: boolean;\n appearance: WidgetAppearance;\n behavior: WidgetBehavior;\n security: WidgetSecurity;\n createdAt: string /* RFC3339 */;\n updatedAt: string /* RFC3339 */;\n createdBy?: string;\n}\n/**\n * AgentWidget NATS Subjects\n */\nexport const AgentWidgetsCreateSubject = \"agents.widgets.create\";\n/**\n * AgentWidget NATS Subjects\n */\nexport const AgentWidgetsGetSubject = \"agents.widgets.get\";\n/**\n * AgentWidget NATS Subjects\n */\nexport const AgentWidgetsGetByWidgetID = \"agents.widgets.get-by-widget-id\"; // For embed lookup\n/**\n * AgentWidget NATS Subjects\n */\nexport const AgentWidgetsUpdateSubject = \"agents.widgets.update\";\n/**\n * AgentWidget NATS Subjects\n */\nexport const AgentWidgetsDeleteSubject = \"agents.widgets.delete\";\n/**\n * AgentWidget NATS Subjects\n */\nexport const AgentWidgetsListSubject = \"agents.widgets.list\"; // List by agent\n/**\n * AgentWidget NATS Subjects\n */\nexport const AgentWidgetsSetDefaultSubject = \"agents.widgets.set-default\";\n/**\n * AgentWidget NATS Subjects\n */\nexport const AgentWidgetsGetDefaultSubject = \"agents.widgets.get-default\";\n/**\n * CreateAgentWidgetRequest is the request to create a new widget\n */\nexport interface CreateAgentWidgetRequest {\n orgId: string /* uuid */;\n agentId: string /* uuid */;\n widget: AgentWidget;\n}\n/**\n * AgentWidgetResponse is the response for single widget operations\n */\nexport interface AgentWidgetResponse {\n widget?: AgentWidget;\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * GetAgentWidgetRequest is the request to get a widget by ID\n */\nexport interface GetAgentWidgetRequest {\n orgId: string /* uuid */;\n widgetId: string /* uuid */; // This is the primary key ID\n}\n/**\n * GetWidgetByWidgetIDRequest is the request to get a widget by its embed widget_id\n */\nexport interface GetWidgetByWidgetIDRequest {\n widgetId: string /* uuid */; // The widget_id field (for embed lookup)\n}\n/**\n * UpdateAgentWidgetRequest is the request to update a widget\n */\nexport interface UpdateAgentWidgetRequest {\n orgId: string /* uuid */;\n widget: AgentWidget;\n}\n/**\n * DeleteAgentWidgetRequest is the request to delete a widget\n */\nexport interface DeleteAgentWidgetRequest {\n orgId: string /* uuid */;\n widgetId: string /* uuid */; // Primary key ID\n}\n/**\n * ListAgentWidgetsRequest is the request to list widgets for an agent\n */\nexport interface ListAgentWidgetsRequest {\n orgId: string /* uuid */;\n agentId: string /* uuid */;\n}\n/**\n * ListAgentWidgetsResponse is the response for listing widgets\n */\nexport interface ListAgentWidgetsResponse {\n widgets: AgentWidget[];\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * SetDefaultWidgetRequest is the request to set a widget as default\n */\nexport interface SetDefaultWidgetRequest {\n orgId: string /* uuid */;\n agentId: string /* uuid */;\n widgetId: string /* uuid */; // Primary key ID of widget to set as default\n}\n/**\n * GetDefaultWidgetRequest is the request to get the default widget for an agent\n */\nexport interface GetDefaultWidgetRequest {\n orgId: string /* uuid */;\n agentId: string /* uuid */;\n}\n/**\n * PublicWidgetConfig is the config exposed to the widget client (no sensitive data)\n */\nexport interface PublicWidgetConfig {\n widgetId: string /* uuid */;\n agentId: string /* uuid */;\n orgId: string /* uuid */;\n name: string;\n title: string;\n appearance: WidgetAppearance;\n behavior: WidgetBehavior;\n}\n"],"mappings":"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","names":[]}
package/dist/index.mjs CHANGED
@@ -115,6 +115,8 @@ var SkillsDeleteSubject = "agents.skills.delete";
115
115
  var SkillsDeletedSubject = "agents.skills.deleted";
116
116
  var SkillsListSubject = "agents.skills.list";
117
117
  var SkillsGetByIDsSubject = "agents.skills.get-by-ids";
118
+ var WidgetConfigGetByAgentSubject = "widgets.config.get.by.agent";
119
+ var WidgetConfigSaveSubject = "widgets.config.save";
118
120
  var AgentInstanceCreateSubject = "agents.instance.create";
119
121
  var AgentInstanceCreatedSubject = "agents.instance.created";
120
122
  var AgentInstanceGetSubject = "agents.instance.get";
@@ -130,6 +132,14 @@ var AgentInstanceResumePlanSubject = "agents.instance.resume-plan";
130
132
  var AgentInstanceCancelPlanSubject = "agents.instance.cancel-plan";
131
133
  var AgentInstanceGetHistorySubject = "agents.instance.get-history";
132
134
  var AgentInstanceClearHistorySubject = "agents.instance.clear-history";
135
+ var AgentWidgetsCreateSubject = "agents.widgets.create";
136
+ var AgentWidgetsGetSubject = "agents.widgets.get";
137
+ var AgentWidgetsGetByWidgetID = "agents.widgets.get-by-widget-id";
138
+ var AgentWidgetsUpdateSubject = "agents.widgets.update";
139
+ var AgentWidgetsDeleteSubject = "agents.widgets.delete";
140
+ var AgentWidgetsListSubject = "agents.widgets.list";
141
+ var AgentWidgetsSetDefaultSubject = "agents.widgets.set-default";
142
+ var AgentWidgetsGetDefaultSubject = "agents.widgets.get-default";
133
143
  export {
134
144
  AgentChatCreateSubject,
135
145
  AgentChatGetSubject,
@@ -193,6 +203,14 @@ export {
193
203
  AgentVersionCreatedSubject,
194
204
  AgentVersionGetSubject,
195
205
  AgentVersionListSubject,
206
+ AgentWidgetsCreateSubject,
207
+ AgentWidgetsDeleteSubject,
208
+ AgentWidgetsGetByWidgetID,
209
+ AgentWidgetsGetDefaultSubject,
210
+ AgentWidgetsGetSubject,
211
+ AgentWidgetsListSubject,
212
+ AgentWidgetsSetDefaultSubject,
213
+ AgentWidgetsUpdateSubject,
196
214
  ChatAgentExecuteSubject,
197
215
  ChatAgentStatusSubject,
198
216
  ExecutionModeAsync,
@@ -260,6 +278,8 @@ export {
260
278
  ToolExecutionStatusSkipped,
261
279
  ToolExecutionStatusStarted,
262
280
  ToolExecutionStatusTimeout,
281
+ WidgetConfigGetByAgentSubject,
282
+ WidgetConfigSaveSubject,
263
283
  WorkflowAgentGetSubject,
264
284
  WorkflowAgentUpdateSubject
265
285
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../models/agent-models.ts"],"sourcesContent":["// Code generated by tygo. DO NOT EDIT.\nimport { KGNode } from \"@elqnt/kg\";\nimport { Variable } from \"@elqnt/types\";\nimport { ResponseMetadata, ProductNameTS, JSONSchema } from \"@elqnt/types\";\n\n//////////\n// source: agent-context.go\n\n/**\n * AgentContext accumulates meaningful state from agentic tool executions.\n * It provides a structured, schema-driven view of what happened during a chat\n * and what meaningful data was extracted.\n * Stored in: agent_contexts_org_{orgId} with key: {agentId}:{chatKey}\n */\nexport interface AgentContext {\n /**\n * Identity - used for storage key and cross-references\n */\n orgId: string;\n agentId: string;\n chatKey: string;\n /**\n * Schema defines the shape of accumulated variables\n * Tools contribute to this schema as they execute\n */\n schema: any /* types.JSONSchema */;\n /**\n * Variables is the merged view of all important outputs\n * This is what gets displayed in the \"Agent Context\" panel\n */\n variables: { [key: string]: any};\n /**\n * Executions tracks each tool call with full input/output\n * Similar to NodeStates in workflow engine\n */\n executions: AgentExecution[];\n /**\n * PendingPlan holds an execution plan awaiting user approval\n * Part of the Plan → Approve → Execute flow\n */\n pendingPlan?: ExecutionPlan;\n /**\n * CompletedPlans holds historical plans (for reference/audit)\n */\n completedPlans?: ExecutionPlan[];\n /**\n * Tracking\n */\n createdAt: number /* int64 */;\n lastUpdated: number /* int64 */;\n /**\n * Size management\n */\n archivedExecutionCount?: number /* int */;\n}\n/**\n * AgentExecution represents one tool call during the agentic loop.\n * Similar to NodeState in the workflow engine.\n */\nexport interface AgentExecution {\n /**\n * Identity\n */\n id: string;\n toolName: string;\n toolId?: string;\n /**\n * Display\n */\n title: string; // Human-readable: \"Document Analysis: manifest.pdf\"\n type: string; // Category: document, search, api, extraction\n icon?: string;\n /**\n * Status\n */\n status: ExecutionStatusTS;\n error?: string;\n /**\n * Schema-driven Input/Output (like NodeInput/NodeOutput)\n */\n inputSchema?: any /* types.JSONSchema */;\n input: { [key: string]: any};\n outputSchema?: any /* types.JSONSchema */;\n output?: { [key: string]: any};\n /**\n * Merge Configuration - how this execution's output merges into Variables\n */\n mergeConfig?: MergeConfig;\n /**\n * Timing\n */\n startedAt: number /* int64 */;\n completedAt?: number /* int64 */;\n duration?: number /* int64 */; // milliseconds\n}\n/**\n * ExecutionStatus represents the status of a tool execution\n */\nexport type ExecutionStatus = string;\nexport const ExecutionStatusPending: ExecutionStatus = \"pending\";\nexport const ExecutionStatusRunning: ExecutionStatus = \"running\";\nexport const ExecutionStatusCompleted: ExecutionStatus = \"completed\";\nexport const ExecutionStatusFailed: ExecutionStatus = \"failed\";\nexport const ExecutionStatusSkipped: ExecutionStatus = \"skipped\";\nexport type ExecutionStatusTS = 'pending' | 'running' | 'completed' | 'failed' | 'skipped';\n/**\n * MergeConfig defines how tool output gets merged into AgentContext.Variables\n */\nexport interface MergeConfig {\n /**\n * Keys to extract from output and merge into variables\n */\n mergeKeys?: string[];\n /**\n * Target path in variables\n * Examples: \"shipperName\" (direct), \"documents[]\" (append to array)\n */\n targetPath?: string;\n /**\n * Strategy: \"replace\" | \"merge\" | \"append\"\n * - replace: overwrite the target path\n * - merge: deep merge objects\n * - append: append to array (use with \"path[]\" syntax)\n */\n strategy?: MergeStrategy;\n}\n/**\n * MergeStrategy defines how values are merged into variables\n */\nexport type MergeStrategy = string;\nexport const MergeStrategyReplace: MergeStrategy = \"replace\";\nexport const MergeStrategyMerge: MergeStrategy = \"merge\";\nexport const MergeStrategyAppend: MergeStrategy = \"append\";\nexport type MergeStrategyTS = 'replace' | 'merge' | 'append';\n/**\n * AgentContextConfig is defined on the Agent to configure how context is managed\n */\nexport interface AgentContextConfig {\n /**\n * Base schema - defines the expected shape of accumulated context\n */\n schema: any /* types.JSONSchema */;\n /**\n * Default/initial values when context is created\n */\n defaultVariables?: { [key: string]: any};\n /**\n * Whether to extend schema at runtime when new keys appear\n */\n allowSchemaExtension: boolean;\n}\n/**\n * Constants for size management\n */\nexport const MaxExecutions = 100; // Keep last 100 executions\n/**\n * Constants for size management\n */\nexport const ExecutionTTLHours = 72; // Archive executions older than 72h\n/**\n * ExecutionPlan represents a planned sequence of tool executions\n * that requires user approval before execution.\n */\nexport interface ExecutionPlan {\n /**\n * Identity\n */\n id: string;\n chatKey: string;\n agentId: string;\n orgId: string;\n /**\n * Plan metadata\n */\n title: string; // Human-readable plan title\n description: string; // What this plan will accomplish\n createdAt: number /* int64 */;\n /**\n * Planned steps\n */\n steps: PlannedStep[];\n /**\n * Status tracking\n */\n status: PlanStatusTS;\n approvedAt?: number /* int64 */;\n approvedBy?: string;\n rejectedAt?: number /* int64 */;\n rejectionReason?: string;\n /**\n * Execution tracking (populated after approval)\n */\n executionStartedAt?: number /* int64 */;\n executionCompletedAt?: number /* int64 */;\n currentStepIndex: number /* int */;\n}\n/**\n * PlanStatus represents the status of an execution plan\n */\nexport type PlanStatus = string;\nexport const PlanStatusPendingApproval: PlanStatus = \"pending_approval\";\nexport const PlanStatusApproved: PlanStatus = \"approved\";\nexport const PlanStatusExecuting: PlanStatus = \"executing\";\nexport const PlanStatusCompleted: PlanStatus = \"completed\";\nexport const PlanStatusRejected: PlanStatus = \"rejected\";\nexport const PlanStatusCancelled: PlanStatus = \"cancelled\";\nexport type PlanStatusTS = 'pending_approval' | 'approved' | 'executing' | 'completed' | 'rejected' | 'cancelled';\n/**\n * PlannedStep represents a single step in an execution plan\n */\nexport interface PlannedStep {\n /**\n * Identity\n */\n id: string;\n order: number /* int */; // Execution order (0-based)\n /**\n * Tool information\n */\n toolName: string;\n toolId?: string;\n title: string; // Human-readable step title\n description: string; // What this step does\n icon?: string;\n /**\n * Planned input (may reference outputs from previous steps)\n */\n plannedInput: { [key: string]: any};\n /**\n * Dependencies (step IDs that must complete before this one)\n */\n dependsOn?: string[];\n /**\n * Optional: user can toggle individual steps\n */\n enabled: boolean;\n /**\n * After execution (populated during/after execution)\n */\n status: ExecutionStatusTS;\n output?: { [key: string]: any};\n error?: string;\n startedAt?: number /* int64 */;\n completedAt?: number /* int64 */;\n}\n/**\n * PlanApprovalConfig configures when an agent requires plan approval\n */\nexport interface PlanApprovalConfig {\n /**\n * Always require approval for any multi-tool operation\n */\n alwaysRequire: boolean;\n /**\n * Require approval only for these tool names\n */\n requireForTools?: string[];\n /**\n * Require approval when estimated execution time exceeds threshold (seconds)\n */\n timeThresholdSeconds?: number /* int */;\n /**\n * Require approval when number of steps exceeds threshold\n */\n stepCountThreshold?: number /* int */;\n /**\n * Auto-approve if user has previously approved similar plans\n */\n allowAutoApprove: boolean;\n}\n\n//////////\n// source: agent-io-models.go\n\n/**\n * CreateToolDefinitionRequest represents a request to create a tool definition\n */\nexport interface CreateToolDefinitionRequest {\n orgId: string /* uuid */;\n toolDefinition?: ToolDefinition;\n}\n/**\n * UpdateToolDefinitionRequest represents a request to update a tool definition\n */\nexport interface UpdateToolDefinitionRequest {\n orgId: string /* uuid */;\n toolDefinition?: ToolDefinition;\n}\n/**\n * GetToolDefinitionRequest represents a request to get a tool definition\n */\nexport interface GetToolDefinitionRequest {\n orgId: string /* uuid */;\n toolDefinitionId: string /* uuid */;\n}\n/**\n * DeleteToolDefinitionRequest represents a request to delete a tool definition\n */\nexport interface DeleteToolDefinitionRequest {\n orgId: string /* uuid */;\n toolDefinitionId: string /* uuid */;\n}\n/**\n * ListToolDefinitionsRequest represents a request to list tool definitions\n */\nexport interface ListToolDefinitionsRequest {\n orgId: string /* uuid */;\n onlySystem?: boolean;\n enabled?: boolean;\n limit?: number /* int */;\n offset?: number /* int */;\n}\n/**\n * ToolDefinitionResponse represents a response containing a tool definition\n */\nexport interface ToolDefinitionResponse {\n toolDefinition?: ToolDefinition;\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * ToolDefinitionsListResponse represents a response containing multiple tool definitions\n */\nexport interface ToolDefinitionsListResponse {\n toolDefinitions: ToolDefinition[];\n total: number /* int */;\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * CreateSubAgentRequest represents a request to create a sub-agent\n */\nexport interface CreateSubAgentRequest {\n orgId: string /* uuid */;\n subAgent?: SubAgent;\n}\n/**\n * UpdateSubAgentRequest represents a request to update a sub-agent\n */\nexport interface UpdateSubAgentRequest {\n orgId: string /* uuid */;\n subAgent?: SubAgent;\n}\n/**\n * GetSubAgentRequest represents a request to get a sub-agent\n */\nexport interface GetSubAgentRequest {\n orgId: string /* uuid */;\n subAgentId: string /* uuid */;\n}\n/**\n * DeleteSubAgentRequest represents a request to delete a sub-agent\n */\nexport interface DeleteSubAgentRequest {\n orgId: string /* uuid */;\n subAgentId: string /* uuid */;\n}\n/**\n * ListSubAgentsRequest represents a request to list sub-agents\n */\nexport interface ListSubAgentsRequest {\n orgId: string /* uuid */;\n onlySystem?: boolean;\n enabled?: boolean;\n limit?: number /* int */;\n offset?: number /* int */;\n}\n/**\n * SubAgentResponse represents a response containing a sub-agent\n */\nexport interface SubAgentResponse {\n subAgent?: SubAgent;\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * SubAgentsListResponse represents a response containing multiple sub-agents\n */\nexport interface SubAgentsListResponse {\n subAgents: SubAgent[];\n total: number /* int */;\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * GetToolDefinitionsByIDsRequest represents a request to get multiple tool definitions by IDs\n */\nexport interface GetToolDefinitionsByIDsRequest {\n orgId: string /* uuid */;\n toolDefinitionIds: string /* uuid */[];\n}\n/**\n * GetToolDefinitionsByIDsResponse represents a response containing multiple tool definitions\n */\nexport interface GetToolDefinitionsByIDsResponse {\n toolDefinitions: ToolDefinition[];\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * GetSubAgentsByIDsRequest represents a request to get multiple sub-agents by IDs\n */\nexport interface GetSubAgentsByIDsRequest {\n orgId: string /* uuid */;\n subAgentIds: string /* uuid */[];\n}\n/**\n * GetSubAgentsByIDsResponse represents a response containing multiple sub-agents\n */\nexport interface GetSubAgentsByIDsResponse {\n subAgents: SubAgent[];\n metadata: any /* types.ResponseMetadata */;\n}\nexport interface ExecuteToolRequest {\n orgId: string;\n agentId?: string;\n tool?: AgentTool;\n input: { [key: string]: any};\n metadata?: { [key: string]: any};\n context?: { [key: string]: any};\n chatKey?: string;\n}\nexport interface ExecuteToolResponse {\n result: { [key: string]: any};\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * CreateSkillRequest represents a request to create a skill\n */\nexport interface CreateSkillRequest {\n orgId: string /* uuid */;\n skill?: Skill;\n}\n/**\n * UpdateSkillRequest represents a request to update a skill\n */\nexport interface UpdateSkillRequest {\n orgId: string /* uuid */;\n skill?: Skill;\n}\n/**\n * GetSkillRequest represents a request to get a skill\n */\nexport interface GetSkillRequest {\n orgId: string /* uuid */;\n skillId: string /* uuid */;\n}\n/**\n * DeleteSkillRequest represents a request to delete a skill\n */\nexport interface DeleteSkillRequest {\n orgId: string /* uuid */;\n skillId: string /* uuid */;\n}\n/**\n * ListSkillsRequest represents a request to list skills\n */\nexport interface ListSkillsRequest {\n orgId: string /* uuid */;\n category?: SkillCategory;\n onlySystem?: boolean;\n enabled?: boolean;\n limit?: number /* int */;\n offset?: number /* int */;\n}\n/**\n * SkillResponse represents a response containing a skill\n */\nexport interface SkillResponse {\n skill?: Skill;\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * SkillsListResponse represents a response containing multiple skills\n */\nexport interface SkillsListResponse {\n skills: Skill[];\n total: number /* int */;\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * GetSkillsByIDsRequest represents a request to get multiple skills by IDs\n */\nexport interface GetSkillsByIDsRequest {\n orgId: string /* uuid */;\n skillIds: string /* uuid */[];\n}\n/**\n * GetSkillsByIDsResponse represents a response containing multiple skills\n */\nexport interface GetSkillsByIDsResponse {\n skills: Skill[];\n metadata: any /* types.ResponseMetadata */;\n}\n\n//////////\n// source: agent-models.go\n\nexport type AgentTypeTS = 'chat' | 'react';\nexport type AgentSubTypeTS = 'chat' | 'react' | 'workflow' | 'document';\nexport type AgentStatusTS = 'draft' | 'active' | 'inactive' | 'archived';\nexport type SkillCategoryTS = 'productivity' | 'creative' | 'integration' | 'analysis' | 'communication' | 'custom';\nexport type SkillCategory = string;\nexport const SkillCategoryProductivity: SkillCategory = \"productivity\";\nexport const SkillCategoryCreative: SkillCategory = \"creative\";\nexport const SkillCategoryIntegration: SkillCategory = \"integration\";\nexport const SkillCategoryAnalysis: SkillCategory = \"analysis\";\nexport const SkillCategoryCommunication: SkillCategory = \"communication\";\nexport const SkillCategoryCustom: SkillCategory = \"custom\";\n/**\n * Skill represents a bundled set of tools with a prompt extension\n * Skills can be activated at runtime to extend agent capabilities\n */\nexport interface Skill {\n id: string /* uuid */;\n orgId?: string /* uuid */;\n name: string; // Machine-readable name (e.g., \"code_review\")\n title: string; // Human-readable title (e.g., \"Code Review\")\n description?: string;\n category: SkillCategoryTS;\n slashCommand?: string; // Optional slash command trigger (e.g., \"/review\")\n tags?: string[];\n tools?: AgentTool[]; // Tools bundled with this skill\n systemPromptExtension?: string; // Prompt to append when skill is active\n iconName?: string; // Lucide icon name for UI display\n configSchema?: JSONSchema;\n config?: { [key: string]: any};\n enabled: boolean;\n isSystem?: boolean;\n displayOrder?: number /* int */;\n createdAt?: string /* RFC3339 */;\n updatedAt?: string /* RFC3339 */;\n}\n/**\n * AgentSkill represents an agent's configuration for a specific skill\n */\nexport interface AgentSkill {\n skillId: string /* uuid */;\n skillName?: string; // Denormalized for runtime performance\n enabled: boolean;\n order?: number /* int */;\n}\nexport type AgentType = string;\nexport const AgentTypeChat: AgentType = \"chat\";\nexport const AgentTypeReact: AgentType = \"react\";\nexport type AgentSubType = string;\n/**\n * Agent SubTypes\n */\nexport const AgentSubTypeChat: AgentSubType = \"chat\";\n/**\n * Agent SubTypes\n */\nexport const AgentSubTypeReact: AgentSubType = \"react\";\n/**\n * Agent SubTypes\n */\nexport const AgentSubTypeWorkflow: AgentSubType = \"workflow\";\n/**\n * Agent SubTypes\n */\nexport const AgentSubTypeDocument: AgentSubType = \"document\";\nexport type AgentStatus = string;\nexport const AgentStatusDraft: AgentStatus = \"draft\";\nexport const AgentStatusActive: AgentStatus = \"active\";\nexport const AgentStatusInactive: AgentStatus = \"inactive\";\nexport const AgentStatusArchived: AgentStatus = \"archived\";\nexport interface DefaultDefinitions {\n agents: Agent[];\n toolDefinitions: ToolDefinition[];\n subAgents: SubAgent[];\n skills?: Skill[];\n}\n/**\n * AgentTool represents an agent's configuration for a specific tool\n * Includes denormalized tool information to avoid joins at runtime\n */\nexport interface AgentTool {\n toolId: string /* uuid */;\n toolName: string; // Denormalized for runtime performance\n title?: string;\n description?: string;\n type?: string; // Category: document, search, api, extraction\n inputSchema?: JSONSchema;\n outputSchema?: JSONSchema; // Schema for tool output (for AgentContext)\n configSchema?: JSONSchema;\n config?: { [key: string]: any};\n mergeConfig?: MergeConfig; // How to merge output into AgentContext.Variables\n enabled: boolean;\n isSystem?: boolean;\n createdAt?: string /* RFC3339 */;\n updatedAt?: string /* RFC3339 */;\n order?: number /* int */;\n}\n/**\n * Core agent entity - shared by both types\n */\nexport interface Agent {\n id?: string /* uuid */;\n orgId: string /* uuid */;\n product: ProductNameTS;\n type: AgentTypeTS; // \"chat\" or \"react\"\n subType: AgentSubTypeTS; // Specific agent category\n name: string; // Machine-readable name (e.g., \"rfp_builder\")\n title: string; // Human-readable title (e.g., \"RFP Builder\")\n description?: string;\n status: AgentStatusTS;\n version: string;\n /**\n * === LLM CONFIG ===\n */\n provider: string;\n model: string;\n temperature: number /* float64 */;\n maxTokens: number /* int */;\n systemPrompt: string;\n /**\n * Shared metadata\n */\n tags?: string[];\n isDefault: boolean;\n isPublic: boolean;\n /**\n * === Tool and SubAgent References ===\n */\n tools?: AgentTool[]; // Tools with agent-specific configurations\n subAgentIds?: string /* uuid */[]; // IDs of sub-agents this agent can use\n /**\n * === Skills Configuration ===\n */\n useSkills?: boolean; // Enable skills system for this agent\n skills?: AgentSkill[]; // Skills assigned to this agent\n /**\n * === Essential Configs ===\n */\n csatConfig: CSATConfig;\n handoffConfig: HandoffConfig;\n /**\n * === TYPE-SPECIFIC CORE CONFIG ===\n */\n reactConfig?: ReactAgentConfig; // ReAct-only essentials\n /**\n * === CROSS-CUTTING FEATURES (can be used by any agent type) ===\n */\n userSuggestedActionsConfig?: UserSuggestedActionsConfig;\n /**\n * === AGENT CONTEXT CONFIG ===\n * Defines how AgentContext is initialized and managed for this agent\n */\n contextConfig?: AgentContextConfig;\n /**\n * === SCHEMA-DRIVEN AGENT CONFIG ===\n * Use ConfigSchema to auto-generate UI and validate values in Config\n */\n configSchema: JSONSchema;\n config?: { [key: string]: any};\n /**\n * === UI DISPLAY CONFIG ===\n */\n iconName?: string; // Lucide icon name for UI display (e.g., \"Bot\", \"ChartScatter\", \"PenTool\")\n capabilities?: string[]; // Agent capabilities for UI display (e.g., [\"Data Analysis\", \"Reporting\"])\n samplePrompts?: string[]; // Example prompts to show users (e.g., [\"What can you help me with?\"])\n /**\n * === SHARED BEHAVIOR CONFIG ===\n */\n responseStyle?: string;\n personalityTraits?: string[];\n fallbackMessage?: string;\n /**\n * === SHARED PERFORMANCE CONFIG ===\n */\n responseDelay?: number /* int */; // ms\n maxConcurrency?: number /* int */; // concurrent chats\n sessionTimeout?: number /* int */; // minutes\n /**\n * Audit fields\n */\n createdAt: string /* RFC3339 */;\n updatedAt: string /* RFC3339 */;\n createdBy: string;\n updatedBy: string;\n metadata?: { [key: string]: any};\n}\n/**\n * Handoff Configuration\n */\nexport interface HandoffConfig {\n enabled: boolean;\n triggerKeywords: string[];\n queueId?: string;\n handoffMessage: string;\n}\n/**\n * AgentFilters for filtering agents in list operations\n */\nexport interface AgentFilters {\n product?: ProductNameTS;\n type?: AgentType;\n subType?: AgentSubType;\n status?: AgentStatus;\n isDefault?: boolean;\n isPublic?: boolean;\n tags?: string[];\n limit?: number /* int */;\n offset?: number /* int */;\n}\n/**\n * AgentSummary is a lightweight representation of an agent for list views\n * Contains essential display fields plus metadata needed for chat initialization\n */\nexport interface AgentSummary {\n id: string /* uuid */;\n name: string;\n title: string;\n description?: string;\n iconName?: string;\n type: AgentTypeTS;\n status: AgentStatusTS;\n isDefault: boolean;\n isPublic: boolean;\n capabilities?: string[];\n samplePrompts?: string[];\n metadata?: { [key: string]: any};\n}\n/**\n * ToolDefinition represents an abstract/generic tool definition that can be customized per agent\n * This is the \"template\" that agents use to create their AgentTool configurations\n */\nexport interface ToolDefinition {\n id: string /* uuid */;\n name: string; // Machine-readable name for LLM calls (e.g., \"document_extractor\")\n title: string; // Human-readable title (e.g., \"Document Extractor\")\n description: string;\n type?: string; // Category: document, search, api, extraction\n inputSchema: JSONSchema; // Using JSONSchema for OpenAI compatibility\n outputSchema?: JSONSchema; // Schema for tool output (for AgentContext)\n configSchema: JSONSchema; // Using JSONSchema to generate UI and validate config\n config?: { [key: string]: any};\n mergeConfig?: MergeConfig; // How to merge output into AgentContext.Variables\n enabled: boolean;\n isSystem: boolean;\n metadata?: { [key: string]: any}; // Flexible metadata for UI (category, icon, etc.)\n createdAt: string /* RFC3339 */;\n updatedAt: string /* RFC3339 */;\n}\n/**\n * ToolExecution represents the execution context for a tool\n */\nexport interface ToolExecution {\n id: string;\n title: string;\n toolId: string;\n toolName: string;\n status: ToolExecutionStatusTS;\n input: { [key: string]: any};\n result?: { [key: string]: any};\n error?: string;\n context?: { [key: string]: any};\n startedAt: number /* int64 */;\n completedAt?: number /* int64 */;\n retryCount: number /* int */;\n progress?: ToolExecutionProgress[];\n}\nexport interface ToolExecutionProgress {\n status: ToolExecutionStatusTS;\n timestamp: number /* int64 */;\n message?: string;\n error?: string;\n metadata?: { [key: string]: any};\n}\n/**\n * ToolExecutionStatus represents the status of a tool execution\n */\nexport type ToolExecutionStatus = string;\nexport const ToolExecutionStatusStarted: ToolExecutionStatus = \"started\";\nexport const ToolExecutionStatusExecuting: ToolExecutionStatus = \"executing\";\nexport const ToolExecutionStatusCompleted: ToolExecutionStatus = \"completed\";\nexport const ToolExecutionStatusFailed: ToolExecutionStatus = \"failed\";\nexport const ToolExecutionStatusTimeout: ToolExecutionStatus = \"timeout\";\nexport const ToolExecutionStatusSkipped: ToolExecutionStatus = \"skipped\";\n/**\n * SubAgent represents a sub-agent composed of tools\n */\nexport interface SubAgent {\n id: string /* uuid */;\n orgId: string /* uuid */;\n name: string; // Machine-readable name (e.g., \"contract_reviewer\")\n title: string; // Human-readable title (e.g., \"Contract Reviewer\")\n description: string;\n prompt: string;\n toolIds: string /* uuid */[]; // Tool IDs this sub-agent can use\n inputSchema: JSONSchema; // Using JSONSchema for validation\n outputSchema: JSONSchema; // Using JSONSchema for validation\n configSchema: JSONSchema; // Using JSONSchema to generate UI and validate config\n config?: { [key: string]: any};\n version: string;\n enabled: boolean;\n isSystem: boolean;\n createdAt: string /* RFC3339 */;\n updatedAt: string /* RFC3339 */;\n createdBy: string;\n updatedBy: string;\n}\n/**\n * AgentToolConfiguration represents how an agent uses tools\n */\nexport interface AgentToolConfiguration {\n enabledTools: string[]; // Tool IDs\n enabledSubAgents: string[]; // SubAgent IDs\n toolConfigs: { [key: string]: ToolConfig}; // Per-tool configuration\n executionPolicy: ToolExecutionPolicy;\n maxParallelCalls: number /* int */;\n requireApproval: boolean;\n}\n/**\n * ToolExecutionPolicy defines how tools are executed\n */\nexport interface ToolExecutionPolicy {\n mode: ExecutionModeTS;\n maxIterations: number /* int */;\n stopOnError: boolean;\n retryOnFailure: boolean;\n timeoutSeconds: number /* int */;\n}\n/**\n * ExecutionMode defines how tools are executed\n */\nexport type ExecutionMode = string;\nexport const ExecutionModeSync: ExecutionMode = \"sync\";\nexport const ExecutionModeAsync: ExecutionMode = \"async\";\nexport const ExecutionModeAsyncClient: ExecutionMode = \"asyncClient\";\n/**\n * CreateExecutionPlanRequest represents a request to create an execution plan\n */\nexport interface CreateExecutionPlanRequest {\n agentInstanceId: string /* uuid */;\n orgId: string /* uuid */;\n input: string;\n context?: { [key: string]: any};\n availableTools: ToolDefinition[];\n}\n/**\n * CreateExecutionPlanResponse represents the response with an execution plan\n */\nexport interface CreateExecutionPlanResponse {\n agentInstanceId: string /* uuid */;\n executionPlan: ToolExecution[];\n estimatedTime?: any /* time.Duration */;\n}\n/**\n * ExecutePlanRequest represents a request to execute the plan\n */\nexport interface ExecutePlanRequest {\n agentInstanceId: string /* uuid */;\n orgId: string /* uuid */;\n approveAll?: boolean;\n}\n/**\n * ExecutePlanResponse represents the response after executing the plan\n */\nexport interface ExecutePlanResponse {\n stateId: string;\n status: ToolExecutionStatusTS;\n executedTools: ToolExecution[];\n finalResult?: any /* json.RawMessage */;\n errors?: string[];\n}\nexport type ToolExecutionStatusTS = 'pending' | 'executing' | 'completed' | 'failed' | 'timeout' | 'skipped';\nexport type ExecutionModeTS = 'sync' | 'async' | 'asyncClient';\n\n//////////\n// source: csat.go\n\n/**\n * CSAT Configuration\n */\nexport interface CSATConfig {\n enabled: boolean;\n survey?: CSATSurvey;\n}\nexport interface CSATQuestion {\n question: { [key: string]: string}; // {\"en\": \"How was...\", \"ar\": \"كيف كانت...\"}\n showRating: boolean;\n showComment: boolean;\n}\nexport interface CSATSurvey {\n questions: CSATQuestion[];\n timeThreshold: number /* int */; // Minutes after last message\n closeOnResponse: boolean;\n}\nexport interface CSATAnswer {\n question: string;\n lang?: string; // Language used for this answer\n rating?: number /* int */; // 1-5 rating\n comment?: string; // Text feedback\n}\nexport interface CSATResponse {\n answers: CSATAnswer[];\n submittedAt: number /* int64 */;\n overallRating: number /* int */; // 1-5 overall satisfaction\n}\n\n//////////\n// source: react.go\n\n/**\n * ReAct Agent Configuration\n */\nexport interface ReactAgentConfig {\n /**\n * Core ReAct Configuration\n */\n maxIterations: number /* int */;\n reasoningPrompt: string;\n stopConditions: string[];\n availableTools: string[];\n requireConfirmation: boolean;\n /**\n * LLM Configuration\n */\n model: string;\n temperature: number /* float64 */;\n maxTokens: number /* int */;\n provider: string;\n /**\n * Context Management\n */\n maxContextLength: number /* int */;\n memoryRetention: number /* int */;\n compressionStrategy: string;\n /**\n * Tool Configuration\n */\n toolConfigs?: { [key: string]: ToolConfig};\n mcpServers?: MCPServerConfig[];\n /**\n * Execution Configuration\n */\n timeoutMinutes: number /* int */;\n retryAttempts: number /* int */;\n parallelExecution: boolean;\n /**\n * Safety Configuration\n */\n dangerousOperations?: string[];\n allowedFileTypes?: string[];\n restrictedPaths?: string[];\n}\nexport interface ToolConfig {\n enabled: boolean;\n timeoutSeconds: number /* int */;\n retryPolicy: RetryPolicy;\n configuration?: { [key: string]: any};\n}\nexport interface RetryPolicy {\n maxAttempts: number /* int */;\n backoffStrategy: string;\n backoffDelay: any /* time.Duration */;\n}\nexport interface MCPServerConfig {\n name: string;\n endpoint: string;\n trusted: boolean;\n timeout: number /* int */;\n credentials?: { [key: string]: string};\n}\n\n//////////\n// source: requests.go\n\nexport interface CreateAgentRequest {\n agent?: Agent;\n orgId: string /* uuid */;\n}\nexport interface AgentResponse {\n agent?: Agent;\n metadata: any /* types.ResponseMetadata */;\n}\nexport interface GetAgentRequest {\n id?: string /* uuid */;\n name?: string;\n orgId: string /* uuid */;\n}\nexport interface UpdateAgentRequest {\n agent: Agent;\n orgId: string /* uuid */;\n}\nexport interface DeleteAgentRequest {\n id: string /* uuid */;\n orgId: string /* uuid */;\n}\nexport interface ListAgentsRequest {\n orgId: string /* uuid */;\n filters?: AgentFilters;\n}\nexport interface ListAgentsResponse {\n agents: Agent[];\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * ListAgentsSummaryRequest requests a lightweight list of agents\n */\nexport interface ListAgentsSummaryRequest {\n orgId: string /* uuid */;\n filters?: AgentFilters;\n}\n/**\n * ListAgentsSummaryResponse returns lightweight agent summaries for list views\n */\nexport interface ListAgentsSummaryResponse {\n agents: AgentSummary[];\n metadata: any /* types.ResponseMetadata */;\n}\nexport interface GetDefaultAgentRequest {\n orgId: string /* uuid */;\n agentType: AgentType;\n}\nexport interface UpdateOrgAgentsRequest {\n orgId: string /* uuid */;\n defaultDefinitions?: DefaultDefinitions;\n}\nexport interface UpdateOrgAgentsResponse {\n toolsCreated: number /* int */;\n subAgentsCreated: number /* int */;\n agentsCreated: number /* int */;\n skillsCreated: number /* int */;\n metadata: ResponseMetadata;\n}\n\n//////////\n// source: subjects.go\n\n/**\n * Core Agent Operations\n */\nexport const AgentCreateSubject = \"agent.create\";\n/**\n * Core Agent Operations\n */\nexport const AgentCreatedSubject = \"agent.created\";\n/**\n * Core Agent Operations\n */\nexport const AgentGetSubject = \"agent.get\";\n/**\n * Core Agent Operations\n */\nexport const AgentUpdateSubject = \"agent.update\";\n/**\n * Core Agent Operations\n */\nexport const AgentUpdatedSubject = \"agent.updated\";\n/**\n * Core Agent Operations\n */\nexport const AgentDeleteSubject = \"agent.delete\";\n/**\n * Core Agent Operations\n */\nexport const AgentDeletedSubject = \"agent.deleted\";\n/**\n * Core Agent Operations\n */\nexport const AgentListSubject = \"agent.list\";\n/**\n * Core Agent Operations\n */\nexport const AgentListSummarySubject = \"agent.list.summary\"; // Lightweight agent list for UI\n/**\n * Core Agent Operations\n */\nexport const AgentSearchSubject = \"agent.search\";\n/**\n * Agent Type Specific Operations\n */\nexport const AgentChatCreateSubject = \"agent.chat.create\";\n/**\n * Agent Type Specific Operations\n */\nexport const AgentChatUpdateSubject = \"agent.chat.update\";\n/**\n * Agent Type Specific Operations\n */\nexport const AgentChatGetSubject = \"agent.chat.get\";\n/**\n * Agent Type Specific Operations\n */\nexport const AgentChatValidateSubject = \"agent.chat.validate\";\n/**\n * Agent Type Specific Operations\n */\nexport const AgentReactCreateSubject = \"agent.react.create\";\n/**\n * Agent Type Specific Operations\n */\nexport const AgentReactUpdateSubject = \"agent.react.update\";\n/**\n * Agent Type Specific Operations\n */\nexport const AgentReactGetSubject = \"agent.react.get\";\n/**\n * Agent Type Specific Operations\n */\nexport const AgentReactValidateSubject = \"agent.react.validate\";\n/**\n * Execution Coordination\n */\nexport const AgentExecuteSubject = \"agent.execute\"; // Routes to appropriate service\n/**\n * Execution Coordination\n */\nexport const AgentExecuteStatusSubject = \"agent.execute.status\"; // Get execution status\n/**\n * Execution Coordination\n */\nexport const AgentExecuteStopSubject = \"agent.execute.stop\"; // Stop execution\n/**\n * Version Management\n */\nexport const AgentVersionCreateSubject = \"agent.version.create\";\n/**\n * Version Management\n */\nexport const AgentVersionCreatedSubject = \"agent.version.created\";\n/**\n * Version Management\n */\nexport const AgentVersionGetSubject = \"agent.version.get\";\n/**\n * Version Management\n */\nexport const AgentVersionListSubject = \"agent.version.list\";\n/**\n * Version Management\n */\nexport const AgentVersionActivateSubject = \"agent.version.activate\";\n/**\n * Version Management\n */\nexport const AgentVersionActivatedSubject = \"agent.version.activated\";\n/**\n * Default Agent Management\n */\nexport const AgentEnsureDefaultSubject = \"agent.ensure-default\";\n/**\n * Default Agent Management\n */\nexport const AgentGetDefaultSubject = \"agent.get-default\";\n/**\n * Organization Management\n */\nexport const AgentGetByOrgSubject = \"agent.get-by-org\";\n/**\n * Organization Management\n */\nexport const AgentCloneSubject = \"agent.clone\";\n/**\n * Organization Management\n */\nexport const AgentExportSubject = \"agent.export\";\n/**\n * Organization Management\n */\nexport const AgentImportSubject = \"agent.import\";\n/**\n * Organization Management\n */\nexport const AgentUpdateOrgSubject = \"agent.update-org-agents\"; // Bulk update agents and tools for an organization\n/**\n * Configuration Templates\n */\nexport const AgentTemplateListSubject = \"agent.template.list\";\n/**\n * Configuration Templates\n */\nexport const AgentTemplateGetSubject = \"agent.template.get\";\n/**\n * Configuration Templates\n */\nexport const AgentFromTemplateSubject = \"agent.from-template\";\n/**\n * Chat Service Integration\n */\nexport const ChatAgentExecuteSubject = \"chat.agent.execute\";\n/**\n * Execution Service Integration\n */\nexport const ChatAgentStatusSubject = \"chat.agent.status\";\n/**\n * ReAct Service Integration\n */\nexport const ReactAgentExecuteSubject = \"react.agent.execute\";\n/**\n * Execution Service Integration\n */\nexport const ReactAgentStatusSubject = \"react.agent.status\";\n/**\n * Execution Service Integration\n */\nexport const ReactAgentStopSubject = \"react.agent.stop\";\n/**\n * Workflow Service Integration\n */\nexport const WorkflowAgentGetSubject = \"workflow.agent.get\";\n/**\n * Execution Service Integration\n */\nexport const WorkflowAgentUpdateSubject = \"workflow.agent.update\";\n/**\n * ToolDefinitions Management\n */\nexport const ToolDefinitionsCreateSubject = \"agents.tool-definitions.create\";\n/**\n * ToolDefinitions Management\n */\nexport const ToolDefinitionsCreatedSubject = \"agents.tool-definitions.created\";\n/**\n * ToolDefinitions Management\n */\nexport const ToolDefinitionsGetSubject = \"agents.tool-definitions.get\";\n/**\n * ToolDefinitions Management\n */\nexport const ToolDefinitionsUpdateSubject = \"agents.tool-definitions.update\";\n/**\n * ToolDefinitions Management\n */\nexport const ToolDefinitionsUpdatedSubject = \"agents.tool-definitions.updated\";\n/**\n * ToolDefinitions Management\n */\nexport const ToolDefinitionsDeleteSubject = \"agents.tool-definitions.delete\";\n/**\n * ToolDefinitions Management\n */\nexport const ToolDefinitionsDeletedSubject = \"agents.tool-definitions.deleted\";\n/**\n * ToolDefinitions Management\n */\nexport const ToolDefinitionsListSubject = \"agents.tool-definitions.list\";\n/**\n * ToolDefinitions Management\n */\nexport const ToolDefinitionsGetByIDsSubject = \"agents.tool-definitions.get-by-ids\";\n/**\n * ToolDefinitions Management\n */\nexport const ToolDefinitionsExecuteSubject = \"agents.tool-definitions.execute\";\n/**\n * ToolDefinitions Management\n */\nexport const ToolDefinitionsValidateSubject = \"agents.tool-definitions.validate\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsCreateSubject = \"agents.subagents.create\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsCreatedSubject = \"agents.subagents.created\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsGetSubject = \"agents.subagents.get\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsUpdateSubject = \"agents.subagents.update\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsUpdatedSubject = \"agents.subagents.updated\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsDeleteSubject = \"agents.subagents.delete\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsDeletedSubject = \"agents.subagents.deleted\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsListSubject = \"agents.subagents.list\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsGetByIDsSubject = \"agents.subagents.get-by-ids\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsExecuteSubject = \"agents.subagents.execute\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsValidateSubject = \"agents.subagents.validate\";\n/**\n * Skills Management\n */\nexport const SkillsCreateSubject = \"agents.skills.create\";\n/**\n * Skills Management\n */\nexport const SkillsCreatedSubject = \"agents.skills.created\";\n/**\n * Skills Management\n */\nexport const SkillsGetSubject = \"agents.skills.get\";\n/**\n * Skills Management\n */\nexport const SkillsUpdateSubject = \"agents.skills.update\";\n/**\n * Skills Management\n */\nexport const SkillsUpdatedSubject = \"agents.skills.updated\";\n/**\n * Skills Management\n */\nexport const SkillsDeleteSubject = \"agents.skills.delete\";\n/**\n * Skills Management\n */\nexport const SkillsDeletedSubject = \"agents.skills.deleted\";\n/**\n * Skills Management\n */\nexport const SkillsListSubject = \"agents.skills.list\";\n/**\n * Skills Management\n */\nexport const SkillsGetByIDsSubject = \"agents.skills.get-by-ids\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceCreateSubject = \"agents.instance.create\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceCreatedSubject = \"agents.instance.created\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceGetSubject = \"agents.instance.get\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceUpdateSubject = \"agents.instance.update\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceUpdatedSubject = \"agents.instance.updated\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceListSubject = \"agents.instance.list\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceDeleteSubject = \"agents.instance.delete\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceDeletedSubject = \"agents.instance.deleted\";\n/**\n * Execution Plan Operations\n */\nexport const AgentInstanceCreatePlanSubject = \"agents.instance.create-plan\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceExecutePlanSubject = \"agents.instance.execute-plan\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstancePausePlanSubject = \"agents.instance.pause-plan\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceResumePlanSubject = \"agents.instance.resume-plan\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceCancelPlanSubject = \"agents.instance.cancel-plan\";\n/**\n * Execution History\n */\nexport const AgentInstanceGetHistorySubject = \"agents.instance.get-history\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceClearHistorySubject = \"agents.instance.clear-history\";\n\n//////////\n// source: user-suggested-actions.go\n\n/**\n * Config and request models for product service integration\n */\nexport interface UserSuggestedActionsConfig {\n enabled: boolean;\n actionTypes: string[];\n maxActions: number /* int */;\n cooldownSeconds: number /* int */;\n}\nexport interface UserSuggestedAction {\n title: string;\n actionType: string;\n input?: string;\n priority?: number /* int */;\n metadata?: { [key: string]: any};\n}\nexport interface UserSuggestedActionsRequest {\n orgId: string /* uuid */;\n chatKey: string;\n config: UserSuggestedActionsConfig;\n metadata?: { [key: string]: any};\n}\nexport interface UserSuggestedActionsResponse {\n actions: UserSuggestedAction[];\n metadata: any /* types.ResponseMetadata */;\n}\n\n//////////\n// source: validation.go\n\n/**\n * ValidationError represents a validation error with field and message\n */\nexport interface ValidationError {\n field: string;\n message: string;\n}\n/**\n * ValidationErrors represents a collection of validation errors\n */\nexport type ValidationErrors = ValidationError[];\n"],"mappings":"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","names":[]}
1
+ {"version":3,"sources":["../models/agent-models.ts"],"sourcesContent":["// Code generated by tygo. DO NOT EDIT.\nimport { KGNode } from \"@elqnt/kg\";\nimport { Variable } from \"@elqnt/types\";\nimport { ResponseMetadata, ProductNameTS, JSONSchema } from \"@elqnt/types\";\n\n//////////\n// source: agent-context.go\n\n/**\n * AgentContext accumulates meaningful state from agentic tool executions.\n * It provides a structured, schema-driven view of what happened during a chat\n * and what meaningful data was extracted.\n * Stored in: agent_contexts_org_{orgId} with key: {agentId}:{chatKey}\n */\nexport interface AgentContext {\n /**\n * Identity - used for storage key and cross-references\n */\n orgId: string;\n agentId: string;\n chatKey: string;\n /**\n * Schema defines the shape of accumulated variables\n * Tools contribute to this schema as they execute\n */\n schema: any /* types.JSONSchema */;\n /**\n * Variables is the merged view of all important outputs\n * This is what gets displayed in the \"Agent Context\" panel\n */\n variables: { [key: string]: any};\n /**\n * Executions tracks each tool call with full input/output\n * Similar to NodeStates in workflow engine\n */\n executions: AgentExecution[];\n /**\n * PendingPlan holds an execution plan awaiting user approval\n * Part of the Plan → Approve → Execute flow\n */\n pendingPlan?: ExecutionPlan;\n /**\n * CompletedPlans holds historical plans (for reference/audit)\n */\n completedPlans?: ExecutionPlan[];\n /**\n * Tracking\n */\n createdAt: number /* int64 */;\n lastUpdated: number /* int64 */;\n /**\n * Size management\n */\n archivedExecutionCount?: number /* int */;\n}\n/**\n * AgentExecution represents one tool call during the agentic loop.\n * Similar to NodeState in the workflow engine.\n */\nexport interface AgentExecution {\n /**\n * Identity\n */\n id: string;\n toolName: string;\n toolId?: string;\n /**\n * Display\n */\n title: string; // Human-readable: \"Document Analysis: manifest.pdf\"\n type: string; // Category: document, search, api, extraction\n icon?: string;\n /**\n * Status\n */\n status: ExecutionStatusTS;\n error?: string;\n /**\n * Schema-driven Input/Output (like NodeInput/NodeOutput)\n */\n inputSchema?: any /* types.JSONSchema */;\n input: { [key: string]: any};\n outputSchema?: any /* types.JSONSchema */;\n output?: { [key: string]: any};\n /**\n * Merge Configuration - how this execution's output merges into Variables\n */\n mergeConfig?: MergeConfig;\n /**\n * Timing\n */\n startedAt: number /* int64 */;\n completedAt?: number /* int64 */;\n duration?: number /* int64 */; // milliseconds\n}\n/**\n * ExecutionStatus represents the status of a tool execution\n */\nexport type ExecutionStatus = string;\nexport const ExecutionStatusPending: ExecutionStatus = \"pending\";\nexport const ExecutionStatusRunning: ExecutionStatus = \"running\";\nexport const ExecutionStatusCompleted: ExecutionStatus = \"completed\";\nexport const ExecutionStatusFailed: ExecutionStatus = \"failed\";\nexport const ExecutionStatusSkipped: ExecutionStatus = \"skipped\";\nexport type ExecutionStatusTS = 'pending' | 'running' | 'completed' | 'failed' | 'skipped';\n/**\n * MergeConfig defines how tool output gets merged into AgentContext.Variables\n */\nexport interface MergeConfig {\n /**\n * Keys to extract from output and merge into variables\n */\n mergeKeys?: string[];\n /**\n * Target path in variables\n * Examples: \"shipperName\" (direct), \"documents[]\" (append to array)\n */\n targetPath?: string;\n /**\n * Strategy: \"replace\" | \"merge\" | \"append\"\n * - replace: overwrite the target path\n * - merge: deep merge objects\n * - append: append to array (use with \"path[]\" syntax)\n */\n strategy?: MergeStrategy;\n}\n/**\n * MergeStrategy defines how values are merged into variables\n */\nexport type MergeStrategy = string;\nexport const MergeStrategyReplace: MergeStrategy = \"replace\";\nexport const MergeStrategyMerge: MergeStrategy = \"merge\";\nexport const MergeStrategyAppend: MergeStrategy = \"append\";\nexport type MergeStrategyTS = 'replace' | 'merge' | 'append';\n/**\n * AgentContextConfig is defined on the Agent to configure how context is managed\n */\nexport interface AgentContextConfig {\n /**\n * Base schema - defines the expected shape of accumulated context\n */\n schema: any /* types.JSONSchema */;\n /**\n * Default/initial values when context is created\n */\n defaultVariables?: { [key: string]: any};\n /**\n * Whether to extend schema at runtime when new keys appear\n */\n allowSchemaExtension: boolean;\n}\n/**\n * Constants for size management\n */\nexport const MaxExecutions = 100; // Keep last 100 executions\n/**\n * Constants for size management\n */\nexport const ExecutionTTLHours = 72; // Archive executions older than 72h\n/**\n * ExecutionPlan represents a planned sequence of tool executions\n * that requires user approval before execution.\n */\nexport interface ExecutionPlan {\n /**\n * Identity\n */\n id: string;\n chatKey: string;\n agentId: string;\n orgId: string;\n /**\n * Plan metadata\n */\n title: string; // Human-readable plan title\n description: string; // What this plan will accomplish\n createdAt: number /* int64 */;\n /**\n * Planned steps\n */\n steps: PlannedStep[];\n /**\n * Status tracking\n */\n status: PlanStatusTS;\n approvedAt?: number /* int64 */;\n approvedBy?: string;\n rejectedAt?: number /* int64 */;\n rejectionReason?: string;\n /**\n * Execution tracking (populated after approval)\n */\n executionStartedAt?: number /* int64 */;\n executionCompletedAt?: number /* int64 */;\n currentStepIndex: number /* int */;\n}\n/**\n * PlanStatus represents the status of an execution plan\n */\nexport type PlanStatus = string;\nexport const PlanStatusPendingApproval: PlanStatus = \"pending_approval\";\nexport const PlanStatusApproved: PlanStatus = \"approved\";\nexport const PlanStatusExecuting: PlanStatus = \"executing\";\nexport const PlanStatusCompleted: PlanStatus = \"completed\";\nexport const PlanStatusRejected: PlanStatus = \"rejected\";\nexport const PlanStatusCancelled: PlanStatus = \"cancelled\";\nexport type PlanStatusTS = 'pending_approval' | 'approved' | 'executing' | 'completed' | 'rejected' | 'cancelled';\n/**\n * PlannedStep represents a single step in an execution plan\n */\nexport interface PlannedStep {\n /**\n * Identity\n */\n id: string;\n order: number /* int */; // Execution order (0-based)\n /**\n * Tool information\n */\n toolName: string;\n toolId?: string;\n title: string; // Human-readable step title\n description: string; // What this step does\n icon?: string;\n /**\n * Planned input (may reference outputs from previous steps)\n */\n plannedInput: { [key: string]: any};\n /**\n * Dependencies (step IDs that must complete before this one)\n */\n dependsOn?: string[];\n /**\n * Optional: user can toggle individual steps\n */\n enabled: boolean;\n /**\n * After execution (populated during/after execution)\n */\n status: ExecutionStatusTS;\n output?: { [key: string]: any};\n error?: string;\n startedAt?: number /* int64 */;\n completedAt?: number /* int64 */;\n}\n/**\n * PlanApprovalConfig configures when an agent requires plan approval\n */\nexport interface PlanApprovalConfig {\n /**\n * Always require approval for any multi-tool operation\n */\n alwaysRequire: boolean;\n /**\n * Require approval only for these tool names\n */\n requireForTools?: string[];\n /**\n * Require approval when estimated execution time exceeds threshold (seconds)\n */\n timeThresholdSeconds?: number /* int */;\n /**\n * Require approval when number of steps exceeds threshold\n */\n stepCountThreshold?: number /* int */;\n /**\n * Auto-approve if user has previously approved similar plans\n */\n allowAutoApprove: boolean;\n}\n\n//////////\n// source: agent-io-models.go\n\n/**\n * CreateToolDefinitionRequest represents a request to create a tool definition\n */\nexport interface CreateToolDefinitionRequest {\n orgId: string /* uuid */;\n toolDefinition?: ToolDefinition;\n}\n/**\n * UpdateToolDefinitionRequest represents a request to update a tool definition\n */\nexport interface UpdateToolDefinitionRequest {\n orgId: string /* uuid */;\n toolDefinition?: ToolDefinition;\n}\n/**\n * GetToolDefinitionRequest represents a request to get a tool definition\n */\nexport interface GetToolDefinitionRequest {\n orgId: string /* uuid */;\n toolDefinitionId: string /* uuid */;\n}\n/**\n * DeleteToolDefinitionRequest represents a request to delete a tool definition\n */\nexport interface DeleteToolDefinitionRequest {\n orgId: string /* uuid */;\n toolDefinitionId: string /* uuid */;\n}\n/**\n * ListToolDefinitionsRequest represents a request to list tool definitions\n */\nexport interface ListToolDefinitionsRequest {\n orgId: string /* uuid */;\n onlySystem?: boolean;\n enabled?: boolean;\n limit?: number /* int */;\n offset?: number /* int */;\n}\n/**\n * ToolDefinitionResponse represents a response containing a tool definition\n */\nexport interface ToolDefinitionResponse {\n toolDefinition?: ToolDefinition;\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * ToolDefinitionsListResponse represents a response containing multiple tool definitions\n */\nexport interface ToolDefinitionsListResponse {\n toolDefinitions: ToolDefinition[];\n total: number /* int */;\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * CreateSubAgentRequest represents a request to create a sub-agent\n */\nexport interface CreateSubAgentRequest {\n orgId: string /* uuid */;\n subAgent?: SubAgent;\n}\n/**\n * UpdateSubAgentRequest represents a request to update a sub-agent\n */\nexport interface UpdateSubAgentRequest {\n orgId: string /* uuid */;\n subAgent?: SubAgent;\n}\n/**\n * GetSubAgentRequest represents a request to get a sub-agent\n */\nexport interface GetSubAgentRequest {\n orgId: string /* uuid */;\n subAgentId: string /* uuid */;\n}\n/**\n * DeleteSubAgentRequest represents a request to delete a sub-agent\n */\nexport interface DeleteSubAgentRequest {\n orgId: string /* uuid */;\n subAgentId: string /* uuid */;\n}\n/**\n * ListSubAgentsRequest represents a request to list sub-agents\n */\nexport interface ListSubAgentsRequest {\n orgId: string /* uuid */;\n onlySystem?: boolean;\n enabled?: boolean;\n limit?: number /* int */;\n offset?: number /* int */;\n}\n/**\n * SubAgentResponse represents a response containing a sub-agent\n */\nexport interface SubAgentResponse {\n subAgent?: SubAgent;\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * SubAgentsListResponse represents a response containing multiple sub-agents\n */\nexport interface SubAgentsListResponse {\n subAgents: SubAgent[];\n total: number /* int */;\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * GetToolDefinitionsByIDsRequest represents a request to get multiple tool definitions by IDs\n */\nexport interface GetToolDefinitionsByIDsRequest {\n orgId: string /* uuid */;\n toolDefinitionIds: string /* uuid */[];\n}\n/**\n * GetToolDefinitionsByIDsResponse represents a response containing multiple tool definitions\n */\nexport interface GetToolDefinitionsByIDsResponse {\n toolDefinitions: ToolDefinition[];\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * GetSubAgentsByIDsRequest represents a request to get multiple sub-agents by IDs\n */\nexport interface GetSubAgentsByIDsRequest {\n orgId: string /* uuid */;\n subAgentIds: string /* uuid */[];\n}\n/**\n * GetSubAgentsByIDsResponse represents a response containing multiple sub-agents\n */\nexport interface GetSubAgentsByIDsResponse {\n subAgents: SubAgent[];\n metadata: any /* types.ResponseMetadata */;\n}\nexport interface ExecuteToolRequest {\n orgId: string;\n agentId?: string;\n tool?: AgentTool;\n input: { [key: string]: any};\n metadata?: { [key: string]: any};\n context?: { [key: string]: any};\n chatKey?: string;\n}\nexport interface ExecuteToolResponse {\n result: { [key: string]: any};\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * CreateSkillRequest represents a request to create a skill\n */\nexport interface CreateSkillRequest {\n orgId: string /* uuid */;\n skill?: Skill;\n}\n/**\n * UpdateSkillRequest represents a request to update a skill\n */\nexport interface UpdateSkillRequest {\n orgId: string /* uuid */;\n skill?: Skill;\n}\n/**\n * GetSkillRequest represents a request to get a skill\n */\nexport interface GetSkillRequest {\n orgId: string /* uuid */;\n skillId: string /* uuid */;\n}\n/**\n * DeleteSkillRequest represents a request to delete a skill\n */\nexport interface DeleteSkillRequest {\n orgId: string /* uuid */;\n skillId: string /* uuid */;\n}\n/**\n * ListSkillsRequest represents a request to list skills\n */\nexport interface ListSkillsRequest {\n orgId: string /* uuid */;\n category?: SkillCategory;\n onlySystem?: boolean;\n enabled?: boolean;\n limit?: number /* int */;\n offset?: number /* int */;\n}\n/**\n * SkillResponse represents a response containing a skill\n */\nexport interface SkillResponse {\n skill?: Skill;\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * SkillsListResponse represents a response containing multiple skills\n */\nexport interface SkillsListResponse {\n skills: Skill[];\n total: number /* int */;\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * GetSkillsByIDsRequest represents a request to get multiple skills by IDs\n */\nexport interface GetSkillsByIDsRequest {\n orgId: string /* uuid */;\n skillIds: string /* uuid */[];\n}\n/**\n * GetSkillsByIDsResponse represents a response containing multiple skills\n */\nexport interface GetSkillsByIDsResponse {\n skills: Skill[];\n metadata: any /* types.ResponseMetadata */;\n}\n\n//////////\n// source: agent-models.go\n\nexport type AgentTypeTS = 'chat' | 'react';\nexport type AgentSubTypeTS = 'chat' | 'react' | 'workflow' | 'document';\nexport type AgentStatusTS = 'draft' | 'active' | 'inactive' | 'archived';\nexport type SkillCategoryTS = 'productivity' | 'creative' | 'integration' | 'analysis' | 'communication' | 'custom';\nexport type SkillCategory = string;\nexport const SkillCategoryProductivity: SkillCategory = \"productivity\";\nexport const SkillCategoryCreative: SkillCategory = \"creative\";\nexport const SkillCategoryIntegration: SkillCategory = \"integration\";\nexport const SkillCategoryAnalysis: SkillCategory = \"analysis\";\nexport const SkillCategoryCommunication: SkillCategory = \"communication\";\nexport const SkillCategoryCustom: SkillCategory = \"custom\";\n/**\n * Skill represents a bundled set of tools with a prompt extension\n * Skills can be activated at runtime to extend agent capabilities\n */\nexport interface Skill {\n id: string /* uuid */;\n orgId?: string /* uuid */;\n name: string; // Machine-readable name (e.g., \"code_review\")\n title: string; // Human-readable title (e.g., \"Code Review\")\n description?: string;\n category: SkillCategoryTS;\n slashCommand?: string; // Optional slash command trigger (e.g., \"/review\")\n tags?: string[];\n tools?: AgentTool[]; // Tools bundled with this skill\n systemPromptExtension?: string; // Prompt to append when skill is active\n iconName?: string; // Lucide icon name for UI display\n configSchema?: JSONSchema;\n config?: { [key: string]: any};\n enabled: boolean;\n isSystem?: boolean;\n persisted?: boolean; // Auto-activate by default in new chats\n displayOrder?: number /* int */;\n createdAt?: string /* RFC3339 */;\n updatedAt?: string /* RFC3339 */;\n}\n/**\n * AgentSkill represents an agent's configuration for a specific skill\n */\nexport interface AgentSkill {\n skillId: string /* uuid */;\n skillName?: string; // Denormalized for runtime performance\n enabled: boolean;\n order?: number /* int */;\n}\nexport type AgentType = string;\nexport const AgentTypeChat: AgentType = \"chat\";\nexport const AgentTypeReact: AgentType = \"react\";\nexport type AgentSubType = string;\n/**\n * Agent SubTypes\n */\nexport const AgentSubTypeChat: AgentSubType = \"chat\";\n/**\n * Agent SubTypes\n */\nexport const AgentSubTypeReact: AgentSubType = \"react\";\n/**\n * Agent SubTypes\n */\nexport const AgentSubTypeWorkflow: AgentSubType = \"workflow\";\n/**\n * Agent SubTypes\n */\nexport const AgentSubTypeDocument: AgentSubType = \"document\";\nexport type AgentStatus = string;\nexport const AgentStatusDraft: AgentStatus = \"draft\";\nexport const AgentStatusActive: AgentStatus = \"active\";\nexport const AgentStatusInactive: AgentStatus = \"inactive\";\nexport const AgentStatusArchived: AgentStatus = \"archived\";\nexport interface DefaultDefinitions {\n agents: Agent[];\n toolDefinitions: ToolDefinition[];\n subAgents: SubAgent[];\n skills?: Skill[];\n}\n/**\n * AgentTool represents an agent's configuration for a specific tool\n * Includes denormalized tool information to avoid joins at runtime\n */\nexport interface AgentTool {\n toolId: string /* uuid */;\n toolName: string; // Denormalized for runtime performance\n title?: string;\n description?: string;\n type?: string; // Category: document, search, api, extraction\n inputSchema?: JSONSchema;\n outputSchema?: JSONSchema; // Schema for tool output (for AgentContext)\n configSchema?: JSONSchema;\n config?: { [key: string]: any};\n mergeConfig?: MergeConfig; // How to merge output into AgentContext.Variables\n enabled: boolean;\n isSystem?: boolean;\n createdAt?: string /* RFC3339 */;\n updatedAt?: string /* RFC3339 */;\n order?: number /* int */;\n}\n/**\n * Core agent entity - shared by both types\n */\nexport interface Agent {\n id?: string /* uuid */;\n orgId: string /* uuid */;\n product: ProductNameTS;\n type: AgentTypeTS; // \"chat\" or \"react\"\n subType: AgentSubTypeTS; // Specific agent category\n name: string; // Machine-readable name (e.g., \"rfp_builder\")\n title: string; // Human-readable title (e.g., \"RFP Builder\")\n description?: string;\n status: AgentStatusTS;\n version: string;\n /**\n * === LLM CONFIG ===\n */\n provider: string;\n model: string;\n temperature: number /* float64 */;\n maxTokens: number /* int */;\n systemPrompt: string;\n /**\n * Shared metadata\n */\n tags?: string[];\n isDefault: boolean;\n isPublic: boolean;\n /**\n * === Tool and SubAgent References ===\n */\n tools?: AgentTool[]; // Tools with agent-specific configurations\n subAgentIds?: string /* uuid */[]; // IDs of sub-agents this agent can use\n /**\n * === Skills Configuration ===\n */\n useSkills?: boolean; // Enable skills system for this agent\n skills?: AgentSkill[]; // Skills assigned to this agent\n /**\n * === Essential Configs ===\n */\n csatConfig: CSATConfig;\n handoffConfig: HandoffConfig;\n /**\n * === Widget Embed Config ===\n */\n widgetConfig?: WidgetConfig;\n /**\n * === TYPE-SPECIFIC CORE CONFIG ===\n */\n reactConfig?: ReactAgentConfig; // ReAct-only essentials\n /**\n * === CROSS-CUTTING FEATURES (can be used by any agent type) ===\n */\n userSuggestedActionsConfig?: UserSuggestedActionsConfig;\n /**\n * === AGENT CONTEXT CONFIG ===\n * Defines how AgentContext is initialized and managed for this agent\n */\n contextConfig?: AgentContextConfig;\n /**\n * === SCHEMA-DRIVEN AGENT CONFIG ===\n * Use ConfigSchema to auto-generate UI and validate values in Config\n */\n configSchema: JSONSchema;\n config?: { [key: string]: any};\n /**\n * === UI DISPLAY CONFIG ===\n */\n iconName?: string; // Lucide icon name for UI display (e.g., \"Bot\", \"ChartScatter\", \"PenTool\")\n capabilities?: string[]; // Agent capabilities for UI display (e.g., [\"Data Analysis\", \"Reporting\"])\n samplePrompts?: string[]; // Example prompts to show users (e.g., [\"What can you help me with?\"])\n /**\n * === SHARED BEHAVIOR CONFIG ===\n */\n responseStyle?: string;\n personalityTraits?: string[];\n fallbackMessage?: string;\n /**\n * === SHARED PERFORMANCE CONFIG ===\n */\n responseDelay?: number /* int */; // ms\n maxConcurrency?: number /* int */; // concurrent chats\n sessionTimeout?: number /* int */; // minutes\n /**\n * Audit fields\n */\n createdAt: string /* RFC3339 */;\n updatedAt: string /* RFC3339 */;\n createdBy: string;\n updatedBy: string;\n metadata?: { [key: string]: any};\n}\n/**\n * Handoff Configuration\n */\nexport interface HandoffConfig {\n enabled: boolean;\n triggerKeywords: string[];\n queueId?: string;\n handoffMessage: string;\n}\n/**\n * WidgetConfig defines the configuration for an embeddable chat widget\n */\nexport interface WidgetConfig {\n enabled: boolean;\n widgetId: string; // Unique widget identifier (KSUID)\n appearance: WidgetAppearance;\n behavior: WidgetBehavior;\n security: WidgetSecurity;\n}\n/**\n * WidgetAppearance defines the visual customization of the widget\n */\nexport interface WidgetAppearance {\n position: string; // \"bottom-right\" or \"bottom-left\"\n primaryColor: string; // Hex color for primary elements\n backgroundColor: string; // Hex color for background\n textColor: string; // Hex color for text\n borderRadius: number /* int */; // Border radius in pixels\n bubbleSize: number /* int */; // Bubble size in pixels\n bubbleIconUrl?: string; // Custom icon URL\n}\n/**\n * WidgetBehavior defines the behavioral settings of the widget\n */\nexport interface WidgetBehavior {\n welcomeMessage: string; // Initial greeting message\n suggestedPrompts?: string[]; // Quick action prompts\n autoOpenDelay: number /* int */; // Delay in ms before auto-opening (0 = disabled)\n showPoweredBy: boolean; // Show \"Powered by Eloquent\" attribution\n}\n/**\n * WidgetSecurity defines the security settings for the widget\n */\nexport interface WidgetSecurity {\n allowedDomains: string[]; // Domains allowed to embed this widget\n}\n/**\n * AgentFilters for filtering agents in list operations\n */\nexport interface AgentFilters {\n product?: ProductNameTS;\n type?: AgentType;\n subType?: AgentSubType;\n status?: AgentStatus;\n isDefault?: boolean;\n isPublic?: boolean;\n tags?: string[];\n limit?: number /* int */;\n offset?: number /* int */;\n}\n/**\n * AgentSummary is a lightweight representation of an agent for list views\n * Contains essential display fields plus metadata needed for chat initialization\n */\nexport interface AgentSummary {\n id: string /* uuid */;\n name: string;\n title: string;\n description?: string;\n iconName?: string;\n type: AgentTypeTS;\n status: AgentStatusTS;\n isDefault: boolean;\n isPublic: boolean;\n capabilities?: string[];\n samplePrompts?: string[];\n metadata?: { [key: string]: any};\n}\n/**\n * ToolDefinition represents an abstract/generic tool definition that can be customized per agent\n * This is the \"template\" that agents use to create their AgentTool configurations\n */\nexport interface ToolDefinition {\n id: string /* uuid */;\n name: string; // Machine-readable name for LLM calls (e.g., \"document_extractor\")\n title: string; // Human-readable title (e.g., \"Document Extractor\")\n description: string;\n type?: string; // Category: document, search, api, extraction\n inputSchema: JSONSchema; // Using JSONSchema for OpenAI compatibility\n outputSchema?: JSONSchema; // Schema for tool output (for AgentContext)\n configSchema: JSONSchema; // Using JSONSchema to generate UI and validate config\n config?: { [key: string]: any};\n mergeConfig?: MergeConfig; // How to merge output into AgentContext.Variables\n enabled: boolean;\n isSystem: boolean;\n metadata?: { [key: string]: any}; // Flexible metadata for UI (category, icon, etc.)\n createdAt: string /* RFC3339 */;\n updatedAt: string /* RFC3339 */;\n}\n/**\n * ToolExecution represents the execution context for a tool\n */\nexport interface ToolExecution {\n id: string;\n title: string;\n toolId: string;\n toolName: string;\n status: ToolExecutionStatusTS;\n input: { [key: string]: any};\n result?: { [key: string]: any};\n error?: string;\n context?: { [key: string]: any};\n startedAt: number /* int64 */;\n completedAt?: number /* int64 */;\n retryCount: number /* int */;\n progress?: ToolExecutionProgress[];\n}\nexport interface ToolExecutionProgress {\n status: ToolExecutionStatusTS;\n timestamp: number /* int64 */;\n message?: string;\n error?: string;\n metadata?: { [key: string]: any};\n}\n/**\n * ToolExecutionStatus represents the status of a tool execution\n */\nexport type ToolExecutionStatus = string;\nexport const ToolExecutionStatusStarted: ToolExecutionStatus = \"started\";\nexport const ToolExecutionStatusExecuting: ToolExecutionStatus = \"executing\";\nexport const ToolExecutionStatusCompleted: ToolExecutionStatus = \"completed\";\nexport const ToolExecutionStatusFailed: ToolExecutionStatus = \"failed\";\nexport const ToolExecutionStatusTimeout: ToolExecutionStatus = \"timeout\";\nexport const ToolExecutionStatusSkipped: ToolExecutionStatus = \"skipped\";\n/**\n * SubAgent represents a sub-agent composed of tools\n */\nexport interface SubAgent {\n id: string /* uuid */;\n orgId: string /* uuid */;\n name: string; // Machine-readable name (e.g., \"contract_reviewer\")\n title: string; // Human-readable title (e.g., \"Contract Reviewer\")\n description: string;\n prompt: string;\n toolIds: string /* uuid */[]; // Tool IDs this sub-agent can use\n inputSchema: JSONSchema; // Using JSONSchema for validation\n outputSchema: JSONSchema; // Using JSONSchema for validation\n configSchema: JSONSchema; // Using JSONSchema to generate UI and validate config\n config?: { [key: string]: any};\n version: string;\n enabled: boolean;\n isSystem: boolean;\n createdAt: string /* RFC3339 */;\n updatedAt: string /* RFC3339 */;\n createdBy: string;\n updatedBy: string;\n}\n/**\n * AgentToolConfiguration represents how an agent uses tools\n */\nexport interface AgentToolConfiguration {\n enabledTools: string[]; // Tool IDs\n enabledSubAgents: string[]; // SubAgent IDs\n toolConfigs: { [key: string]: ToolConfig}; // Per-tool configuration\n executionPolicy: ToolExecutionPolicy;\n maxParallelCalls: number /* int */;\n requireApproval: boolean;\n}\n/**\n * ToolExecutionPolicy defines how tools are executed\n */\nexport interface ToolExecutionPolicy {\n mode: ExecutionModeTS;\n maxIterations: number /* int */;\n stopOnError: boolean;\n retryOnFailure: boolean;\n timeoutSeconds: number /* int */;\n}\n/**\n * ExecutionMode defines how tools are executed\n */\nexport type ExecutionMode = string;\nexport const ExecutionModeSync: ExecutionMode = \"sync\";\nexport const ExecutionModeAsync: ExecutionMode = \"async\";\nexport const ExecutionModeAsyncClient: ExecutionMode = \"asyncClient\";\n/**\n * CreateExecutionPlanRequest represents a request to create an execution plan\n */\nexport interface CreateExecutionPlanRequest {\n agentInstanceId: string /* uuid */;\n orgId: string /* uuid */;\n input: string;\n context?: { [key: string]: any};\n availableTools: ToolDefinition[];\n}\n/**\n * CreateExecutionPlanResponse represents the response with an execution plan\n */\nexport interface CreateExecutionPlanResponse {\n agentInstanceId: string /* uuid */;\n executionPlan: ToolExecution[];\n estimatedTime?: any /* time.Duration */;\n}\n/**\n * ExecutePlanRequest represents a request to execute the plan\n */\nexport interface ExecutePlanRequest {\n agentInstanceId: string /* uuid */;\n orgId: string /* uuid */;\n approveAll?: boolean;\n}\n/**\n * ExecutePlanResponse represents the response after executing the plan\n */\nexport interface ExecutePlanResponse {\n stateId: string;\n status: ToolExecutionStatusTS;\n executedTools: ToolExecution[];\n finalResult?: any /* json.RawMessage */;\n errors?: string[];\n}\nexport type ToolExecutionStatusTS = 'pending' | 'executing' | 'completed' | 'failed' | 'timeout' | 'skipped';\nexport type ExecutionModeTS = 'sync' | 'async' | 'asyncClient';\n/**\n * GetWidgetConfigRequest represents a request to get widget config for an agent\n */\nexport interface GetWidgetConfigRequest {\n orgId: string /* uuid */;\n agentId: string /* uuid */;\n}\n/**\n * GetWidgetConfigResponse represents the response with widget config\n */\nexport interface GetWidgetConfigResponse {\n config?: WidgetConfig;\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * SaveWidgetConfigRequest represents a request to save widget config for an agent\n */\nexport interface SaveWidgetConfigRequest {\n orgId: string /* uuid */;\n agentId: string /* uuid */;\n config?: WidgetConfig;\n}\n/**\n * SaveWidgetConfigResponse represents the response after saving widget config\n */\nexport interface SaveWidgetConfigResponse {\n config?: WidgetConfig;\n metadata: any /* types.ResponseMetadata */;\n}\n\n//////////\n// source: csat.go\n\n/**\n * CSAT Configuration\n */\nexport interface CSATConfig {\n enabled: boolean;\n survey?: CSATSurvey;\n}\nexport interface CSATQuestion {\n question: { [key: string]: string}; // {\"en\": \"How was...\", \"ar\": \"كيف كانت...\"}\n showRating: boolean;\n showComment: boolean;\n}\nexport interface CSATSurvey {\n questions: CSATQuestion[];\n timeThreshold: number /* int */; // Minutes after last message\n closeOnResponse: boolean;\n}\nexport interface CSATAnswer {\n question: string;\n lang?: string; // Language used for this answer\n rating?: number /* int */; // 1-5 rating\n comment?: string; // Text feedback\n}\nexport interface CSATResponse {\n answers: CSATAnswer[];\n submittedAt: number /* int64 */;\n overallRating: number /* int */; // 1-5 overall satisfaction\n}\n\n//////////\n// source: react.go\n\n/**\n * ReAct Agent Configuration\n */\nexport interface ReactAgentConfig {\n /**\n * Core ReAct Configuration\n */\n maxIterations: number /* int */;\n reasoningPrompt: string;\n stopConditions: string[];\n availableTools: string[];\n requireConfirmation: boolean;\n /**\n * LLM Configuration\n */\n model: string;\n temperature: number /* float64 */;\n maxTokens: number /* int */;\n provider: string;\n /**\n * Context Management\n */\n maxContextLength: number /* int */;\n memoryRetention: number /* int */;\n compressionStrategy: string;\n /**\n * Tool Configuration\n */\n toolConfigs?: { [key: string]: ToolConfig};\n mcpServers?: MCPServerConfig[];\n /**\n * Execution Configuration\n */\n timeoutMinutes: number /* int */;\n retryAttempts: number /* int */;\n parallelExecution: boolean;\n /**\n * Safety Configuration\n */\n dangerousOperations?: string[];\n allowedFileTypes?: string[];\n restrictedPaths?: string[];\n}\nexport interface ToolConfig {\n enabled: boolean;\n timeoutSeconds: number /* int */;\n retryPolicy: RetryPolicy;\n configuration?: { [key: string]: any};\n}\nexport interface RetryPolicy {\n maxAttempts: number /* int */;\n backoffStrategy: string;\n backoffDelay: any /* time.Duration */;\n}\nexport interface MCPServerConfig {\n name: string;\n endpoint: string;\n trusted: boolean;\n timeout: number /* int */;\n credentials?: { [key: string]: string};\n}\n\n//////////\n// source: requests.go\n\nexport interface CreateAgentRequest {\n agent?: Agent;\n orgId: string /* uuid */;\n}\nexport interface AgentResponse {\n agent?: Agent;\n metadata: any /* types.ResponseMetadata */;\n}\nexport interface GetAgentRequest {\n id?: string /* uuid */;\n name?: string;\n orgId: string /* uuid */;\n}\nexport interface UpdateAgentRequest {\n agent: Agent;\n orgId: string /* uuid */;\n}\nexport interface DeleteAgentRequest {\n id: string /* uuid */;\n orgId: string /* uuid */;\n}\nexport interface ListAgentsRequest {\n orgId: string /* uuid */;\n filters?: AgentFilters;\n}\nexport interface ListAgentsResponse {\n agents: Agent[];\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * ListAgentsSummaryRequest requests a lightweight list of agents\n */\nexport interface ListAgentsSummaryRequest {\n orgId: string /* uuid */;\n filters?: AgentFilters;\n}\n/**\n * ListAgentsSummaryResponse returns lightweight agent summaries for list views\n */\nexport interface ListAgentsSummaryResponse {\n agents: AgentSummary[];\n metadata: any /* types.ResponseMetadata */;\n}\nexport interface GetDefaultAgentRequest {\n orgId: string /* uuid */;\n agentType: AgentType;\n}\nexport interface UpdateOrgAgentsRequest {\n orgId: string /* uuid */;\n defaultDefinitions?: DefaultDefinitions;\n}\nexport interface UpdateOrgAgentsResponse {\n toolsCreated: number /* int */;\n subAgentsCreated: number /* int */;\n agentsCreated: number /* int */;\n skillsCreated: number /* int */;\n metadata: ResponseMetadata;\n}\n\n//////////\n// source: subjects.go\n\n/**\n * Core Agent Operations\n */\nexport const AgentCreateSubject = \"agent.create\";\n/**\n * Core Agent Operations\n */\nexport const AgentCreatedSubject = \"agent.created\";\n/**\n * Core Agent Operations\n */\nexport const AgentGetSubject = \"agent.get\";\n/**\n * Core Agent Operations\n */\nexport const AgentUpdateSubject = \"agent.update\";\n/**\n * Core Agent Operations\n */\nexport const AgentUpdatedSubject = \"agent.updated\";\n/**\n * Core Agent Operations\n */\nexport const AgentDeleteSubject = \"agent.delete\";\n/**\n * Core Agent Operations\n */\nexport const AgentDeletedSubject = \"agent.deleted\";\n/**\n * Core Agent Operations\n */\nexport const AgentListSubject = \"agent.list\";\n/**\n * Core Agent Operations\n */\nexport const AgentListSummarySubject = \"agent.list.summary\"; // Lightweight agent list for UI\n/**\n * Core Agent Operations\n */\nexport const AgentSearchSubject = \"agent.search\";\n/**\n * Agent Type Specific Operations\n */\nexport const AgentChatCreateSubject = \"agent.chat.create\";\n/**\n * Agent Type Specific Operations\n */\nexport const AgentChatUpdateSubject = \"agent.chat.update\";\n/**\n * Agent Type Specific Operations\n */\nexport const AgentChatGetSubject = \"agent.chat.get\";\n/**\n * Agent Type Specific Operations\n */\nexport const AgentChatValidateSubject = \"agent.chat.validate\";\n/**\n * Agent Type Specific Operations\n */\nexport const AgentReactCreateSubject = \"agent.react.create\";\n/**\n * Agent Type Specific Operations\n */\nexport const AgentReactUpdateSubject = \"agent.react.update\";\n/**\n * Agent Type Specific Operations\n */\nexport const AgentReactGetSubject = \"agent.react.get\";\n/**\n * Agent Type Specific Operations\n */\nexport const AgentReactValidateSubject = \"agent.react.validate\";\n/**\n * Execution Coordination\n */\nexport const AgentExecuteSubject = \"agent.execute\"; // Routes to appropriate service\n/**\n * Execution Coordination\n */\nexport const AgentExecuteStatusSubject = \"agent.execute.status\"; // Get execution status\n/**\n * Execution Coordination\n */\nexport const AgentExecuteStopSubject = \"agent.execute.stop\"; // Stop execution\n/**\n * Version Management\n */\nexport const AgentVersionCreateSubject = \"agent.version.create\";\n/**\n * Version Management\n */\nexport const AgentVersionCreatedSubject = \"agent.version.created\";\n/**\n * Version Management\n */\nexport const AgentVersionGetSubject = \"agent.version.get\";\n/**\n * Version Management\n */\nexport const AgentVersionListSubject = \"agent.version.list\";\n/**\n * Version Management\n */\nexport const AgentVersionActivateSubject = \"agent.version.activate\";\n/**\n * Version Management\n */\nexport const AgentVersionActivatedSubject = \"agent.version.activated\";\n/**\n * Default Agent Management\n */\nexport const AgentEnsureDefaultSubject = \"agent.ensure-default\";\n/**\n * Default Agent Management\n */\nexport const AgentGetDefaultSubject = \"agent.get-default\";\n/**\n * Organization Management\n */\nexport const AgentGetByOrgSubject = \"agent.get-by-org\";\n/**\n * Organization Management\n */\nexport const AgentCloneSubject = \"agent.clone\";\n/**\n * Organization Management\n */\nexport const AgentExportSubject = \"agent.export\";\n/**\n * Organization Management\n */\nexport const AgentImportSubject = \"agent.import\";\n/**\n * Organization Management\n */\nexport const AgentUpdateOrgSubject = \"agent.update-org-agents\"; // Bulk update agents and tools for an organization\n/**\n * Configuration Templates\n */\nexport const AgentTemplateListSubject = \"agent.template.list\";\n/**\n * Configuration Templates\n */\nexport const AgentTemplateGetSubject = \"agent.template.get\";\n/**\n * Configuration Templates\n */\nexport const AgentFromTemplateSubject = \"agent.from-template\";\n/**\n * Chat Service Integration\n */\nexport const ChatAgentExecuteSubject = \"chat.agent.execute\";\n/**\n * Execution Service Integration\n */\nexport const ChatAgentStatusSubject = \"chat.agent.status\";\n/**\n * ReAct Service Integration\n */\nexport const ReactAgentExecuteSubject = \"react.agent.execute\";\n/**\n * Execution Service Integration\n */\nexport const ReactAgentStatusSubject = \"react.agent.status\";\n/**\n * Execution Service Integration\n */\nexport const ReactAgentStopSubject = \"react.agent.stop\";\n/**\n * Workflow Service Integration\n */\nexport const WorkflowAgentGetSubject = \"workflow.agent.get\";\n/**\n * Execution Service Integration\n */\nexport const WorkflowAgentUpdateSubject = \"workflow.agent.update\";\n/**\n * ToolDefinitions Management\n */\nexport const ToolDefinitionsCreateSubject = \"agents.tool-definitions.create\";\n/**\n * ToolDefinitions Management\n */\nexport const ToolDefinitionsCreatedSubject = \"agents.tool-definitions.created\";\n/**\n * ToolDefinitions Management\n */\nexport const ToolDefinitionsGetSubject = \"agents.tool-definitions.get\";\n/**\n * ToolDefinitions Management\n */\nexport const ToolDefinitionsUpdateSubject = \"agents.tool-definitions.update\";\n/**\n * ToolDefinitions Management\n */\nexport const ToolDefinitionsUpdatedSubject = \"agents.tool-definitions.updated\";\n/**\n * ToolDefinitions Management\n */\nexport const ToolDefinitionsDeleteSubject = \"agents.tool-definitions.delete\";\n/**\n * ToolDefinitions Management\n */\nexport const ToolDefinitionsDeletedSubject = \"agents.tool-definitions.deleted\";\n/**\n * ToolDefinitions Management\n */\nexport const ToolDefinitionsListSubject = \"agents.tool-definitions.list\";\n/**\n * ToolDefinitions Management\n */\nexport const ToolDefinitionsGetByIDsSubject = \"agents.tool-definitions.get-by-ids\";\n/**\n * ToolDefinitions Management\n */\nexport const ToolDefinitionsExecuteSubject = \"agents.tool-definitions.execute\";\n/**\n * ToolDefinitions Management\n */\nexport const ToolDefinitionsValidateSubject = \"agents.tool-definitions.validate\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsCreateSubject = \"agents.subagents.create\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsCreatedSubject = \"agents.subagents.created\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsGetSubject = \"agents.subagents.get\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsUpdateSubject = \"agents.subagents.update\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsUpdatedSubject = \"agents.subagents.updated\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsDeleteSubject = \"agents.subagents.delete\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsDeletedSubject = \"agents.subagents.deleted\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsListSubject = \"agents.subagents.list\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsGetByIDsSubject = \"agents.subagents.get-by-ids\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsExecuteSubject = \"agents.subagents.execute\";\n/**\n * SubAgents Management\n */\nexport const SubAgentsValidateSubject = \"agents.subagents.validate\";\n/**\n * Skills Management\n */\nexport const SkillsCreateSubject = \"agents.skills.create\";\n/**\n * Skills Management\n */\nexport const SkillsCreatedSubject = \"agents.skills.created\";\n/**\n * Skills Management\n */\nexport const SkillsGetSubject = \"agents.skills.get\";\n/**\n * Skills Management\n */\nexport const SkillsUpdateSubject = \"agents.skills.update\";\n/**\n * Skills Management\n */\nexport const SkillsUpdatedSubject = \"agents.skills.updated\";\n/**\n * Skills Management\n */\nexport const SkillsDeleteSubject = \"agents.skills.delete\";\n/**\n * Skills Management\n */\nexport const SkillsDeletedSubject = \"agents.skills.deleted\";\n/**\n * Skills Management\n */\nexport const SkillsListSubject = \"agents.skills.list\";\n/**\n * Skills Management\n */\nexport const SkillsGetByIDsSubject = \"agents.skills.get-by-ids\";\n/**\n * Widget Config Management\n */\nexport const WidgetConfigGetByAgentSubject = \"widgets.config.get.by.agent\";\n/**\n * Widget Config Management\n */\nexport const WidgetConfigSaveSubject = \"widgets.config.save\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceCreateSubject = \"agents.instance.create\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceCreatedSubject = \"agents.instance.created\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceGetSubject = \"agents.instance.get\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceUpdateSubject = \"agents.instance.update\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceUpdatedSubject = \"agents.instance.updated\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceListSubject = \"agents.instance.list\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceDeleteSubject = \"agents.instance.delete\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceDeletedSubject = \"agents.instance.deleted\";\n/**\n * Execution Plan Operations\n */\nexport const AgentInstanceCreatePlanSubject = \"agents.instance.create-plan\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceExecutePlanSubject = \"agents.instance.execute-plan\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstancePausePlanSubject = \"agents.instance.pause-plan\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceResumePlanSubject = \"agents.instance.resume-plan\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceCancelPlanSubject = \"agents.instance.cancel-plan\";\n/**\n * Execution History\n */\nexport const AgentInstanceGetHistorySubject = \"agents.instance.get-history\";\n/**\n * Agent Instance Management\n */\nexport const AgentInstanceClearHistorySubject = \"agents.instance.clear-history\";\n\n//////////\n// source: user-suggested-actions.go\n\n/**\n * Config and request models for product service integration\n */\nexport interface UserSuggestedActionsConfig {\n enabled: boolean;\n actionTypes: string[];\n maxActions: number /* int */;\n cooldownSeconds: number /* int */;\n}\nexport interface UserSuggestedAction {\n title: string;\n actionType: string;\n input?: string;\n priority?: number /* int */;\n metadata?: { [key: string]: any};\n}\nexport interface UserSuggestedActionsRequest {\n orgId: string /* uuid */;\n chatKey: string;\n config: UserSuggestedActionsConfig;\n metadata?: { [key: string]: any};\n}\nexport interface UserSuggestedActionsResponse {\n actions: UserSuggestedAction[];\n metadata: any /* types.ResponseMetadata */;\n}\n\n//////////\n// source: validation.go\n\n/**\n * ValidationError represents a validation error with field and message\n */\nexport interface ValidationError {\n field: string;\n message: string;\n}\n/**\n * ValidationErrors represents a collection of validation errors\n */\nexport type ValidationErrors = ValidationError[];\n\n//////////\n// source: widget-models.go\n\n/**\n * AgentWidget represents a widget configuration for an agent\n */\nexport interface AgentWidget {\n id: string /* uuid */;\n agentId: string /* uuid */;\n orgId: string /* uuid */; // Derived from schema context\n widgetId: string /* uuid */; // Unique ID for embed URL\n name: string; // Internal name/identifier\n title: string; // Display title in widget header\n description?: string;\n enabled: boolean;\n isDefault: boolean;\n appearance: WidgetAppearance;\n behavior: WidgetBehavior;\n security: WidgetSecurity;\n createdAt: string /* RFC3339 */;\n updatedAt: string /* RFC3339 */;\n createdBy?: string;\n}\n/**\n * AgentWidget NATS Subjects\n */\nexport const AgentWidgetsCreateSubject = \"agents.widgets.create\";\n/**\n * AgentWidget NATS Subjects\n */\nexport const AgentWidgetsGetSubject = \"agents.widgets.get\";\n/**\n * AgentWidget NATS Subjects\n */\nexport const AgentWidgetsGetByWidgetID = \"agents.widgets.get-by-widget-id\"; // For embed lookup\n/**\n * AgentWidget NATS Subjects\n */\nexport const AgentWidgetsUpdateSubject = \"agents.widgets.update\";\n/**\n * AgentWidget NATS Subjects\n */\nexport const AgentWidgetsDeleteSubject = \"agents.widgets.delete\";\n/**\n * AgentWidget NATS Subjects\n */\nexport const AgentWidgetsListSubject = \"agents.widgets.list\"; // List by agent\n/**\n * AgentWidget NATS Subjects\n */\nexport const AgentWidgetsSetDefaultSubject = \"agents.widgets.set-default\";\n/**\n * AgentWidget NATS Subjects\n */\nexport const AgentWidgetsGetDefaultSubject = \"agents.widgets.get-default\";\n/**\n * CreateAgentWidgetRequest is the request to create a new widget\n */\nexport interface CreateAgentWidgetRequest {\n orgId: string /* uuid */;\n agentId: string /* uuid */;\n widget: AgentWidget;\n}\n/**\n * AgentWidgetResponse is the response for single widget operations\n */\nexport interface AgentWidgetResponse {\n widget?: AgentWidget;\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * GetAgentWidgetRequest is the request to get a widget by ID\n */\nexport interface GetAgentWidgetRequest {\n orgId: string /* uuid */;\n widgetId: string /* uuid */; // This is the primary key ID\n}\n/**\n * GetWidgetByWidgetIDRequest is the request to get a widget by its embed widget_id\n */\nexport interface GetWidgetByWidgetIDRequest {\n widgetId: string /* uuid */; // The widget_id field (for embed lookup)\n}\n/**\n * UpdateAgentWidgetRequest is the request to update a widget\n */\nexport interface UpdateAgentWidgetRequest {\n orgId: string /* uuid */;\n widget: AgentWidget;\n}\n/**\n * DeleteAgentWidgetRequest is the request to delete a widget\n */\nexport interface DeleteAgentWidgetRequest {\n orgId: string /* uuid */;\n widgetId: string /* uuid */; // Primary key ID\n}\n/**\n * ListAgentWidgetsRequest is the request to list widgets for an agent\n */\nexport interface ListAgentWidgetsRequest {\n orgId: string /* uuid */;\n agentId: string /* uuid */;\n}\n/**\n * ListAgentWidgetsResponse is the response for listing widgets\n */\nexport interface ListAgentWidgetsResponse {\n widgets: AgentWidget[];\n metadata: any /* types.ResponseMetadata */;\n}\n/**\n * SetDefaultWidgetRequest is the request to set a widget as default\n */\nexport interface SetDefaultWidgetRequest {\n orgId: string /* uuid */;\n agentId: string /* uuid */;\n widgetId: string /* uuid */; // Primary key ID of widget to set as default\n}\n/**\n * GetDefaultWidgetRequest is the request to get the default widget for an agent\n */\nexport interface GetDefaultWidgetRequest {\n orgId: string /* uuid */;\n agentId: string /* uuid */;\n}\n/**\n * PublicWidgetConfig is the config exposed to the widget client (no sensitive data)\n */\nexport interface PublicWidgetConfig {\n widgetId: string /* uuid */;\n agentId: string /* uuid */;\n orgId: string /* uuid */;\n name: string;\n title: string;\n appearance: WidgetAppearance;\n behavior: WidgetBehavior;\n}\n"],"mappings":"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","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elqnt/agents",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
4
4
  "description": "Agent management and orchestration for Eloquent platform",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",