@axiom-lattice/react-sdk 2.1.73 → 2.1.75
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 +156 -5
- package/dist/index.d.ts +156 -5
- package/dist/index.js +3541 -2179
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3394 -2044
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -448,6 +448,60 @@ declare function useAgentGraph(assistantId: string): {
|
|
|
448
448
|
*/
|
|
449
449
|
declare function useApi(options?: UseApiOptions): UseApiReturn;
|
|
450
450
|
|
|
451
|
+
declare function useEvalProjects(): {
|
|
452
|
+
projects: unknown[];
|
|
453
|
+
loading: boolean;
|
|
454
|
+
error: Error | null;
|
|
455
|
+
create: (data: Record<string, unknown>) => Promise<unknown>;
|
|
456
|
+
update: (id: string, patch: Record<string, unknown>) => Promise<void>;
|
|
457
|
+
remove: (id: string) => Promise<void>;
|
|
458
|
+
refresh: () => Promise<void>;
|
|
459
|
+
};
|
|
460
|
+
|
|
461
|
+
declare function useEvalSuites(projectId: string): {
|
|
462
|
+
suites: unknown[];
|
|
463
|
+
loading: boolean;
|
|
464
|
+
error: Error | null;
|
|
465
|
+
create: (pid: string, data: Record<string, unknown>) => Promise<unknown>;
|
|
466
|
+
update: (pid: string, id: string, patch: Record<string, unknown>) => Promise<void>;
|
|
467
|
+
remove: (pid: string, id: string) => Promise<void>;
|
|
468
|
+
refresh: () => Promise<void>;
|
|
469
|
+
};
|
|
470
|
+
|
|
471
|
+
declare function useEvalCases(projectId: string, suiteId: string): {
|
|
472
|
+
cases: unknown[];
|
|
473
|
+
loading: boolean;
|
|
474
|
+
error: Error | null;
|
|
475
|
+
create: (pid: string, sid: string, data: Record<string, unknown>) => Promise<unknown>;
|
|
476
|
+
update: (pid: string, sid: string, id: string, patch: Record<string, unknown>) => Promise<void>;
|
|
477
|
+
remove: (pid: string, sid: string, id: string) => Promise<void>;
|
|
478
|
+
refresh: () => Promise<void>;
|
|
479
|
+
};
|
|
480
|
+
|
|
481
|
+
declare function useEvalRuns(projectId?: string): {
|
|
482
|
+
runs: unknown[];
|
|
483
|
+
loading: boolean;
|
|
484
|
+
error: Error | null;
|
|
485
|
+
start: (pid: string) => Promise<{
|
|
486
|
+
run_id: string;
|
|
487
|
+
}>;
|
|
488
|
+
abort: (runId: string) => Promise<void>;
|
|
489
|
+
remove: (runId: string) => Promise<void>;
|
|
490
|
+
refresh: () => Promise<void>;
|
|
491
|
+
};
|
|
492
|
+
|
|
493
|
+
declare function useEvalRunStream(runId: string | null): {
|
|
494
|
+
status: string;
|
|
495
|
+
progress: {
|
|
496
|
+
completed: number;
|
|
497
|
+
total: number;
|
|
498
|
+
passed: number;
|
|
499
|
+
failed: number;
|
|
500
|
+
};
|
|
501
|
+
connected: boolean;
|
|
502
|
+
stopStreaming: () => void;
|
|
503
|
+
};
|
|
504
|
+
|
|
451
505
|
/**
|
|
452
506
|
* Provider component for the Axiom Lattice client
|
|
453
507
|
* @param props - Provider props
|
|
@@ -1174,6 +1228,21 @@ interface ResourceFolderConfig {
|
|
|
1174
1228
|
/**
|
|
1175
1229
|
* Sidebar menu item configuration
|
|
1176
1230
|
*/
|
|
1231
|
+
/**
|
|
1232
|
+
* Sidebar menu item configuration.
|
|
1233
|
+
*
|
|
1234
|
+
* Three item types:
|
|
1235
|
+
* - `"action"` — clickable button, set `builtin` for predefined behaviors
|
|
1236
|
+
* - `"drawer"` — opens a slide-out panel, set `content` + `title`
|
|
1237
|
+
* - `"route"` — opens a GenUI-registered component in the SideApp area
|
|
1238
|
+
*
|
|
1239
|
+
* When providing `sideMenuItems` or `workspaceMenuItems` to `LatticeChatShellConfig`,
|
|
1240
|
+
* your array **completely replaces** the defaults. Import `DEFAULT_MENU_ITEMS` or
|
|
1241
|
+
* `DEFAULT_WORKSPACE_MENU_ITEMS` to selectively include built-in items:
|
|
1242
|
+
* ```
|
|
1243
|
+
* sideMenuItems: DEFAULT_MENU_ITEMS.filter(i => i.id === "thread-history")
|
|
1244
|
+
* ```
|
|
1245
|
+
*/
|
|
1177
1246
|
interface SideMenuItemConfig {
|
|
1178
1247
|
/** Unique identifier for the menu item */
|
|
1179
1248
|
id: string;
|
|
@@ -1293,12 +1362,31 @@ interface LatticeChatShellConfig {
|
|
|
1293
1362
|
*/
|
|
1294
1363
|
resourceFolders?: ResourceFolderConfig[];
|
|
1295
1364
|
/**
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1365
|
+
* Chat sidebar menu items. When provided, completely replaces the
|
|
1366
|
+
* default built-in items (New Analysis, History).
|
|
1367
|
+
*
|
|
1368
|
+
* To selectively include built-in items, import and filter `DEFAULT_MENU_ITEMS`:
|
|
1369
|
+
* ```
|
|
1370
|
+
* sideMenuItems: DEFAULT_MENU_ITEMS.filter(i => i.id === "thread-history")
|
|
1371
|
+
* ```
|
|
1372
|
+
* Omit this field to use all defaults.
|
|
1373
|
+
*/
|
|
1299
1374
|
sideMenuItems?: SideMenuItemConfig[];
|
|
1300
1375
|
/**
|
|
1301
|
-
*
|
|
1376
|
+
* Workspace menu items. When provided, completely replaces the
|
|
1377
|
+
* default workspace items (Projects, Metrics, Database, etc.).
|
|
1378
|
+
*
|
|
1379
|
+
* To selectively include built-in items, import and filter `DEFAULT_WORKSPACE_MENU_ITEMS`:
|
|
1380
|
+
* ```
|
|
1381
|
+
* workspaceMenuItems: DEFAULT_WORKSPACE_MENU_ITEMS.filter(
|
|
1382
|
+
* i => ["workspace_projects", "assistants"].includes(i.id)
|
|
1383
|
+
* )
|
|
1384
|
+
* ```
|
|
1385
|
+
* Omit this field to use all defaults.
|
|
1386
|
+
*/
|
|
1387
|
+
workspaceMenuItems?: SideMenuItemConfig[];
|
|
1388
|
+
/**
|
|
1389
|
+
* Whether to enable the database picker slot in the chat sender
|
|
1302
1390
|
* When enabled, shows a database selection button in the sender footer
|
|
1303
1391
|
* Defaults to true
|
|
1304
1392
|
*/
|
|
@@ -1496,6 +1584,25 @@ declare const AgentConversations: React__default.FC<AgentConversationsProps>;
|
|
|
1496
1584
|
|
|
1497
1585
|
declare const MetricsConfigDrawerContent: React__default.FC;
|
|
1498
1586
|
|
|
1587
|
+
/**
|
|
1588
|
+
* Built-in default menu items for the workspace shell.
|
|
1589
|
+
*
|
|
1590
|
+
* Contains 12 route/action items organized in groups:
|
|
1591
|
+
* - Projects
|
|
1592
|
+
* - DataSource: Metrics, Database
|
|
1593
|
+
* - Process: Automations, Runtime, Inbox, Eval
|
|
1594
|
+
* - Settings: Assistants, Skills, MCP, Tools
|
|
1595
|
+
* - Account: Switch tenant
|
|
1596
|
+
*
|
|
1597
|
+
* Pass a filtered subset to `workspaceMenuItems` in `LatticeChatShellConfig`:
|
|
1598
|
+
* ```
|
|
1599
|
+
* workspaceMenuItems: DEFAULT_WORKSPACE_MENU_ITEMS.filter(
|
|
1600
|
+
* i => ["workspace_projects", "assistants"].includes(i.id)
|
|
1601
|
+
* )
|
|
1602
|
+
* ```
|
|
1603
|
+
* Or omit `workspaceMenuItems` entirely to use these defaults as-is.
|
|
1604
|
+
*/
|
|
1605
|
+
declare const DEFAULT_WORKSPACE_MENU_ITEMS: SideMenuItemConfig[];
|
|
1499
1606
|
interface WorkspaceResourceManagerProps {
|
|
1500
1607
|
workspaceId: string;
|
|
1501
1608
|
workspaceName?: string;
|
|
@@ -1529,6 +1636,28 @@ type LatticeChatShellProps = Omit<LatticeChatShellContextProviderProps, "childre
|
|
|
1529
1636
|
*/
|
|
1530
1637
|
declare const LatticeChatShell: React__default.FC<LatticeChatShellProps>;
|
|
1531
1638
|
|
|
1639
|
+
interface ChatSidebarProps {
|
|
1640
|
+
onSettingsClick?: () => void;
|
|
1641
|
+
defaultCollapsed?: boolean;
|
|
1642
|
+
/** @deprecated Use `sideMenuItems` on `LatticeChatShellConfig` instead. */
|
|
1643
|
+
customMenuItems?: SideMenuItemConfig[];
|
|
1644
|
+
}
|
|
1645
|
+
/**
|
|
1646
|
+
* Built-in default menu items for the chat sidebar.
|
|
1647
|
+
*
|
|
1648
|
+
* Contains two items:
|
|
1649
|
+
* - "new-analysis" (action) — creates a new analysis thread
|
|
1650
|
+
* - "thread-history" (drawer) — inline conversation history panel
|
|
1651
|
+
*
|
|
1652
|
+
* Pass a filtered subset to `sideMenuItems` in `LatticeChatShellConfig`:
|
|
1653
|
+
* ```
|
|
1654
|
+
* sideMenuItems: DEFAULT_MENU_ITEMS.filter(i => i.id !== "new-analysis")
|
|
1655
|
+
* ```
|
|
1656
|
+
* Or omit `sideMenuItems` entirely to use these defaults as-is.
|
|
1657
|
+
*/
|
|
1658
|
+
declare const DEFAULT_MENU_ITEMS: SideMenuItemConfig[];
|
|
1659
|
+
declare const ChatSidebar: React__default.FC<ChatSidebarProps>;
|
|
1660
|
+
|
|
1532
1661
|
declare const ChannelInstallationsDrawerContent: React__default.FC;
|
|
1533
1662
|
|
|
1534
1663
|
interface ScheduleButtonProps {
|
|
@@ -1627,6 +1756,28 @@ interface CreateAssistantModalProps {
|
|
|
1627
1756
|
}
|
|
1628
1757
|
declare const CreateAssistantModal: React__default.FC<CreateAssistantModalProps>;
|
|
1629
1758
|
|
|
1759
|
+
declare const EvalPanel: React__default.FC;
|
|
1760
|
+
|
|
1761
|
+
interface Props {
|
|
1762
|
+
projectId: string;
|
|
1763
|
+
onSelectSuite: (projectId: string, suiteId: string) => void;
|
|
1764
|
+
}
|
|
1765
|
+
declare const EvalSuiteCardList: React__default.FC<Props>;
|
|
1766
|
+
|
|
1767
|
+
interface EvalSuiteDetailProps {
|
|
1768
|
+
projectId: string;
|
|
1769
|
+
suiteId: string;
|
|
1770
|
+
onBack: () => void;
|
|
1771
|
+
onRun: (runId: string) => void;
|
|
1772
|
+
}
|
|
1773
|
+
declare const EvalSuiteDetail: React__default.FC<EvalSuiteDetailProps>;
|
|
1774
|
+
|
|
1775
|
+
interface EvalRunResultsProps {
|
|
1776
|
+
runId: string;
|
|
1777
|
+
onBack: () => void;
|
|
1778
|
+
}
|
|
1779
|
+
declare const EvalRunResults: React__default.FC<EvalRunResultsProps>;
|
|
1780
|
+
|
|
1630
1781
|
interface SkillCategoryPromptsProps {
|
|
1631
1782
|
senderRef: React__default.RefObject<any>;
|
|
1632
1783
|
visible?: boolean;
|
|
@@ -2137,4 +2288,4 @@ type IframeMessage = {
|
|
|
2137
2288
|
};
|
|
2138
2289
|
declare function generateIframeSrcdoc(): string;
|
|
2139
2290
|
|
|
2140
|
-
export { type AgentChatProps, AgentConversations, type AgentConversationsProps, type AgentState, AgentThreadProvider, type AgentThreadProviderProps, AssistantContext, AssistantContextProvider, type AssistantContextProviderProps, type AssistantContextValue, AssistantFlow, type AssistantFlowProps, AssistantNode, type AssistantNodeData, type AssistantState, type AttachFile, type AuthContextValue, AuthProvider, AxiomLatticeProvider, type AxiomLatticeProviderProps, type BalanceResult, ChangePasswordModal, type ChangePasswordModalProps, ChannelInstallationsDrawerContent, type ChatResponse, type ChatState, type ChatStateWithAgent, ChatUIContext, ChatUIContextProvider, Chating, type ChatingProps, type ClientConfig, ColumnLayout, type ColumnLayoutProps, ConversationContext, ConversationContextProvider, type ConversationContextProviderProps, type ConversationContextValue, type ConversationThread, CreateAssistantModal, DEFAULT_MIDDLEWARE_TYPES, type ElementMeta, type ElementProps, type ExplorerFile, FileExplorer, type FileExplorerProps, type IframeMessage, LatticeChat, LatticeChatShell, type LatticeChatShellConfig, LatticeChatShellContext, LatticeChatShellContextProvider, type LatticeChatShellContextProviderProps, type LatticeChatShellContextValue, type LatticeChatShellProps, LoginForm, type LoginFormProps, LoginPage, MDResponse, MDViewFormItem, MetricsConfigDrawerContent, type MiddlewareConfigDefinition, type MiddlewareConfigSchema, type MiddlewareConfigSchemaProperty, type MiddlewareToolDefinition, type MiddlewareTypeDefinition, type ModelConfig, type ModelInfo, ModelSelector, type ModelSelectorProps, type PendingMessage, ProtectedRoute, type ProtectedRouteProps, type QuickPromptCategory, type QuickPromptItem, RegisterForm, type RegisterFormProps, type ResourceFolderConfig, type SanitizerConfig, ScheduleButton, type ScheduleButtonProps, SideAppViewBrowser, type SideMenuItemConfig, type SideMenuItemType, SkillCategoryPrompts, type SkillCategoryPromptsProps, SkillFlow, type SkillFlowProps, SkillNode, type SkillNodeData, type StreamEventHandlerOptions, type StreamingError, StreamingHTMLRenderer, type StreamingHTMLRendererProps, TenantSelector, type TenantSelectorProps, type ThreadState, type ToolCallData, type UIMessage, type UseAgentStateOptions, type UseAgentStateReturn, type UseApiOptions, type UseApiReturn, type UseAxiomLatticeOptions, type UseChatOptions, type UseTenantsOptions, type UseTenantsReturn, type UseUsersOptions, type UseUsersReturn, UserProfile, type UserProfileProps, type UserTenantInfo, WorkspaceResourceManager, type WorkspaceResourceManagerProps, WorkspaceResourceUIContext, animation, axiomAntdTheme, axiomAntdThemeDark, axiomTokens, colors, generateIframeSrcdoc, generateLabelFromMessage, getAxiomAntdTheme, getElement, radius, regsiterElement, shadows, spacing, typography, useAgentChat, useAgentGraph, useAgentState, useAgentThreadContext, useApi, useAssistantContext, useAuth, useAuthOptional, useAxiomLattice, useAxiomTheme, useChat, useChatUIContext, useClient, useConversationContext, useLatticeChatShellContext, useTenants, useUsers };
|
|
2291
|
+
export { type AgentChatProps, AgentConversations, type AgentConversationsProps, type AgentState, AgentThreadProvider, type AgentThreadProviderProps, AssistantContext, AssistantContextProvider, type AssistantContextProviderProps, type AssistantContextValue, AssistantFlow, type AssistantFlowProps, AssistantNode, type AssistantNodeData, type AssistantState, type AttachFile, type AuthContextValue, AuthProvider, AxiomLatticeProvider, type AxiomLatticeProviderProps, type BalanceResult, ChangePasswordModal, type ChangePasswordModalProps, ChannelInstallationsDrawerContent, type ChatResponse, ChatSidebar, type ChatSidebarProps, type ChatState, type ChatStateWithAgent, ChatUIContext, ChatUIContextProvider, Chating, type ChatingProps, type ClientConfig, ColumnLayout, type ColumnLayoutProps, ConversationContext, ConversationContextProvider, type ConversationContextProviderProps, type ConversationContextValue, type ConversationThread, CreateAssistantModal, DEFAULT_MENU_ITEMS, DEFAULT_MIDDLEWARE_TYPES, DEFAULT_WORKSPACE_MENU_ITEMS, type ElementMeta, type ElementProps, EvalPanel, EvalRunResults, EvalSuiteCardList, EvalSuiteDetail, type ExplorerFile, FileExplorer, type FileExplorerProps, type IframeMessage, LatticeChat, LatticeChatShell, type LatticeChatShellConfig, LatticeChatShellContext, LatticeChatShellContextProvider, type LatticeChatShellContextProviderProps, type LatticeChatShellContextValue, type LatticeChatShellProps, LoginForm, type LoginFormProps, LoginPage, MDResponse, MDViewFormItem, MetricsConfigDrawerContent, type MiddlewareConfigDefinition, type MiddlewareConfigSchema, type MiddlewareConfigSchemaProperty, type MiddlewareToolDefinition, type MiddlewareTypeDefinition, type ModelConfig, type ModelInfo, ModelSelector, type ModelSelectorProps, type PendingMessage, ProtectedRoute, type ProtectedRouteProps, type QuickPromptCategory, type QuickPromptItem, RegisterForm, type RegisterFormProps, type ResourceFolderConfig, type SanitizerConfig, ScheduleButton, type ScheduleButtonProps, SideAppViewBrowser, type SideMenuItemConfig, type SideMenuItemType, SkillCategoryPrompts, type SkillCategoryPromptsProps, SkillFlow, type SkillFlowProps, SkillNode, type SkillNodeData, type StreamEventHandlerOptions, type StreamingError, StreamingHTMLRenderer, type StreamingHTMLRendererProps, TenantSelector, type TenantSelectorProps, type ThreadState, type ToolCallData, type UIMessage, type UseAgentStateOptions, type UseAgentStateReturn, type UseApiOptions, type UseApiReturn, type UseAxiomLatticeOptions, type UseChatOptions, type UseTenantsOptions, type UseTenantsReturn, type UseUsersOptions, type UseUsersReturn, UserProfile, type UserProfileProps, type UserTenantInfo, WorkspaceResourceManager, type WorkspaceResourceManagerProps, WorkspaceResourceUIContext, animation, axiomAntdTheme, axiomAntdThemeDark, axiomTokens, colors, generateIframeSrcdoc, generateLabelFromMessage, getAxiomAntdTheme, getElement, radius, regsiterElement, shadows, spacing, typography, useAgentChat, useAgentGraph, useAgentState, useAgentThreadContext, useApi, useAssistantContext, useAuth, useAuthOptional, useAxiomLattice, useAxiomTheme, useChat, useChatUIContext, useClient, useConversationContext, useEvalCases, useEvalProjects, useEvalRunStream, useEvalRuns, useEvalSuites, useLatticeChatShellContext, useTenants, useUsers };
|
package/dist/index.d.ts
CHANGED
|
@@ -448,6 +448,60 @@ declare function useAgentGraph(assistantId: string): {
|
|
|
448
448
|
*/
|
|
449
449
|
declare function useApi(options?: UseApiOptions): UseApiReturn;
|
|
450
450
|
|
|
451
|
+
declare function useEvalProjects(): {
|
|
452
|
+
projects: unknown[];
|
|
453
|
+
loading: boolean;
|
|
454
|
+
error: Error | null;
|
|
455
|
+
create: (data: Record<string, unknown>) => Promise<unknown>;
|
|
456
|
+
update: (id: string, patch: Record<string, unknown>) => Promise<void>;
|
|
457
|
+
remove: (id: string) => Promise<void>;
|
|
458
|
+
refresh: () => Promise<void>;
|
|
459
|
+
};
|
|
460
|
+
|
|
461
|
+
declare function useEvalSuites(projectId: string): {
|
|
462
|
+
suites: unknown[];
|
|
463
|
+
loading: boolean;
|
|
464
|
+
error: Error | null;
|
|
465
|
+
create: (pid: string, data: Record<string, unknown>) => Promise<unknown>;
|
|
466
|
+
update: (pid: string, id: string, patch: Record<string, unknown>) => Promise<void>;
|
|
467
|
+
remove: (pid: string, id: string) => Promise<void>;
|
|
468
|
+
refresh: () => Promise<void>;
|
|
469
|
+
};
|
|
470
|
+
|
|
471
|
+
declare function useEvalCases(projectId: string, suiteId: string): {
|
|
472
|
+
cases: unknown[];
|
|
473
|
+
loading: boolean;
|
|
474
|
+
error: Error | null;
|
|
475
|
+
create: (pid: string, sid: string, data: Record<string, unknown>) => Promise<unknown>;
|
|
476
|
+
update: (pid: string, sid: string, id: string, patch: Record<string, unknown>) => Promise<void>;
|
|
477
|
+
remove: (pid: string, sid: string, id: string) => Promise<void>;
|
|
478
|
+
refresh: () => Promise<void>;
|
|
479
|
+
};
|
|
480
|
+
|
|
481
|
+
declare function useEvalRuns(projectId?: string): {
|
|
482
|
+
runs: unknown[];
|
|
483
|
+
loading: boolean;
|
|
484
|
+
error: Error | null;
|
|
485
|
+
start: (pid: string) => Promise<{
|
|
486
|
+
run_id: string;
|
|
487
|
+
}>;
|
|
488
|
+
abort: (runId: string) => Promise<void>;
|
|
489
|
+
remove: (runId: string) => Promise<void>;
|
|
490
|
+
refresh: () => Promise<void>;
|
|
491
|
+
};
|
|
492
|
+
|
|
493
|
+
declare function useEvalRunStream(runId: string | null): {
|
|
494
|
+
status: string;
|
|
495
|
+
progress: {
|
|
496
|
+
completed: number;
|
|
497
|
+
total: number;
|
|
498
|
+
passed: number;
|
|
499
|
+
failed: number;
|
|
500
|
+
};
|
|
501
|
+
connected: boolean;
|
|
502
|
+
stopStreaming: () => void;
|
|
503
|
+
};
|
|
504
|
+
|
|
451
505
|
/**
|
|
452
506
|
* Provider component for the Axiom Lattice client
|
|
453
507
|
* @param props - Provider props
|
|
@@ -1174,6 +1228,21 @@ interface ResourceFolderConfig {
|
|
|
1174
1228
|
/**
|
|
1175
1229
|
* Sidebar menu item configuration
|
|
1176
1230
|
*/
|
|
1231
|
+
/**
|
|
1232
|
+
* Sidebar menu item configuration.
|
|
1233
|
+
*
|
|
1234
|
+
* Three item types:
|
|
1235
|
+
* - `"action"` — clickable button, set `builtin` for predefined behaviors
|
|
1236
|
+
* - `"drawer"` — opens a slide-out panel, set `content` + `title`
|
|
1237
|
+
* - `"route"` — opens a GenUI-registered component in the SideApp area
|
|
1238
|
+
*
|
|
1239
|
+
* When providing `sideMenuItems` or `workspaceMenuItems` to `LatticeChatShellConfig`,
|
|
1240
|
+
* your array **completely replaces** the defaults. Import `DEFAULT_MENU_ITEMS` or
|
|
1241
|
+
* `DEFAULT_WORKSPACE_MENU_ITEMS` to selectively include built-in items:
|
|
1242
|
+
* ```
|
|
1243
|
+
* sideMenuItems: DEFAULT_MENU_ITEMS.filter(i => i.id === "thread-history")
|
|
1244
|
+
* ```
|
|
1245
|
+
*/
|
|
1177
1246
|
interface SideMenuItemConfig {
|
|
1178
1247
|
/** Unique identifier for the menu item */
|
|
1179
1248
|
id: string;
|
|
@@ -1293,12 +1362,31 @@ interface LatticeChatShellConfig {
|
|
|
1293
1362
|
*/
|
|
1294
1363
|
resourceFolders?: ResourceFolderConfig[];
|
|
1295
1364
|
/**
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1365
|
+
* Chat sidebar menu items. When provided, completely replaces the
|
|
1366
|
+
* default built-in items (New Analysis, History).
|
|
1367
|
+
*
|
|
1368
|
+
* To selectively include built-in items, import and filter `DEFAULT_MENU_ITEMS`:
|
|
1369
|
+
* ```
|
|
1370
|
+
* sideMenuItems: DEFAULT_MENU_ITEMS.filter(i => i.id === "thread-history")
|
|
1371
|
+
* ```
|
|
1372
|
+
* Omit this field to use all defaults.
|
|
1373
|
+
*/
|
|
1299
1374
|
sideMenuItems?: SideMenuItemConfig[];
|
|
1300
1375
|
/**
|
|
1301
|
-
*
|
|
1376
|
+
* Workspace menu items. When provided, completely replaces the
|
|
1377
|
+
* default workspace items (Projects, Metrics, Database, etc.).
|
|
1378
|
+
*
|
|
1379
|
+
* To selectively include built-in items, import and filter `DEFAULT_WORKSPACE_MENU_ITEMS`:
|
|
1380
|
+
* ```
|
|
1381
|
+
* workspaceMenuItems: DEFAULT_WORKSPACE_MENU_ITEMS.filter(
|
|
1382
|
+
* i => ["workspace_projects", "assistants"].includes(i.id)
|
|
1383
|
+
* )
|
|
1384
|
+
* ```
|
|
1385
|
+
* Omit this field to use all defaults.
|
|
1386
|
+
*/
|
|
1387
|
+
workspaceMenuItems?: SideMenuItemConfig[];
|
|
1388
|
+
/**
|
|
1389
|
+
* Whether to enable the database picker slot in the chat sender
|
|
1302
1390
|
* When enabled, shows a database selection button in the sender footer
|
|
1303
1391
|
* Defaults to true
|
|
1304
1392
|
*/
|
|
@@ -1496,6 +1584,25 @@ declare const AgentConversations: React__default.FC<AgentConversationsProps>;
|
|
|
1496
1584
|
|
|
1497
1585
|
declare const MetricsConfigDrawerContent: React__default.FC;
|
|
1498
1586
|
|
|
1587
|
+
/**
|
|
1588
|
+
* Built-in default menu items for the workspace shell.
|
|
1589
|
+
*
|
|
1590
|
+
* Contains 12 route/action items organized in groups:
|
|
1591
|
+
* - Projects
|
|
1592
|
+
* - DataSource: Metrics, Database
|
|
1593
|
+
* - Process: Automations, Runtime, Inbox, Eval
|
|
1594
|
+
* - Settings: Assistants, Skills, MCP, Tools
|
|
1595
|
+
* - Account: Switch tenant
|
|
1596
|
+
*
|
|
1597
|
+
* Pass a filtered subset to `workspaceMenuItems` in `LatticeChatShellConfig`:
|
|
1598
|
+
* ```
|
|
1599
|
+
* workspaceMenuItems: DEFAULT_WORKSPACE_MENU_ITEMS.filter(
|
|
1600
|
+
* i => ["workspace_projects", "assistants"].includes(i.id)
|
|
1601
|
+
* )
|
|
1602
|
+
* ```
|
|
1603
|
+
* Or omit `workspaceMenuItems` entirely to use these defaults as-is.
|
|
1604
|
+
*/
|
|
1605
|
+
declare const DEFAULT_WORKSPACE_MENU_ITEMS: SideMenuItemConfig[];
|
|
1499
1606
|
interface WorkspaceResourceManagerProps {
|
|
1500
1607
|
workspaceId: string;
|
|
1501
1608
|
workspaceName?: string;
|
|
@@ -1529,6 +1636,28 @@ type LatticeChatShellProps = Omit<LatticeChatShellContextProviderProps, "childre
|
|
|
1529
1636
|
*/
|
|
1530
1637
|
declare const LatticeChatShell: React__default.FC<LatticeChatShellProps>;
|
|
1531
1638
|
|
|
1639
|
+
interface ChatSidebarProps {
|
|
1640
|
+
onSettingsClick?: () => void;
|
|
1641
|
+
defaultCollapsed?: boolean;
|
|
1642
|
+
/** @deprecated Use `sideMenuItems` on `LatticeChatShellConfig` instead. */
|
|
1643
|
+
customMenuItems?: SideMenuItemConfig[];
|
|
1644
|
+
}
|
|
1645
|
+
/**
|
|
1646
|
+
* Built-in default menu items for the chat sidebar.
|
|
1647
|
+
*
|
|
1648
|
+
* Contains two items:
|
|
1649
|
+
* - "new-analysis" (action) — creates a new analysis thread
|
|
1650
|
+
* - "thread-history" (drawer) — inline conversation history panel
|
|
1651
|
+
*
|
|
1652
|
+
* Pass a filtered subset to `sideMenuItems` in `LatticeChatShellConfig`:
|
|
1653
|
+
* ```
|
|
1654
|
+
* sideMenuItems: DEFAULT_MENU_ITEMS.filter(i => i.id !== "new-analysis")
|
|
1655
|
+
* ```
|
|
1656
|
+
* Or omit `sideMenuItems` entirely to use these defaults as-is.
|
|
1657
|
+
*/
|
|
1658
|
+
declare const DEFAULT_MENU_ITEMS: SideMenuItemConfig[];
|
|
1659
|
+
declare const ChatSidebar: React__default.FC<ChatSidebarProps>;
|
|
1660
|
+
|
|
1532
1661
|
declare const ChannelInstallationsDrawerContent: React__default.FC;
|
|
1533
1662
|
|
|
1534
1663
|
interface ScheduleButtonProps {
|
|
@@ -1627,6 +1756,28 @@ interface CreateAssistantModalProps {
|
|
|
1627
1756
|
}
|
|
1628
1757
|
declare const CreateAssistantModal: React__default.FC<CreateAssistantModalProps>;
|
|
1629
1758
|
|
|
1759
|
+
declare const EvalPanel: React__default.FC;
|
|
1760
|
+
|
|
1761
|
+
interface Props {
|
|
1762
|
+
projectId: string;
|
|
1763
|
+
onSelectSuite: (projectId: string, suiteId: string) => void;
|
|
1764
|
+
}
|
|
1765
|
+
declare const EvalSuiteCardList: React__default.FC<Props>;
|
|
1766
|
+
|
|
1767
|
+
interface EvalSuiteDetailProps {
|
|
1768
|
+
projectId: string;
|
|
1769
|
+
suiteId: string;
|
|
1770
|
+
onBack: () => void;
|
|
1771
|
+
onRun: (runId: string) => void;
|
|
1772
|
+
}
|
|
1773
|
+
declare const EvalSuiteDetail: React__default.FC<EvalSuiteDetailProps>;
|
|
1774
|
+
|
|
1775
|
+
interface EvalRunResultsProps {
|
|
1776
|
+
runId: string;
|
|
1777
|
+
onBack: () => void;
|
|
1778
|
+
}
|
|
1779
|
+
declare const EvalRunResults: React__default.FC<EvalRunResultsProps>;
|
|
1780
|
+
|
|
1630
1781
|
interface SkillCategoryPromptsProps {
|
|
1631
1782
|
senderRef: React__default.RefObject<any>;
|
|
1632
1783
|
visible?: boolean;
|
|
@@ -2137,4 +2288,4 @@ type IframeMessage = {
|
|
|
2137
2288
|
};
|
|
2138
2289
|
declare function generateIframeSrcdoc(): string;
|
|
2139
2290
|
|
|
2140
|
-
export { type AgentChatProps, AgentConversations, type AgentConversationsProps, type AgentState, AgentThreadProvider, type AgentThreadProviderProps, AssistantContext, AssistantContextProvider, type AssistantContextProviderProps, type AssistantContextValue, AssistantFlow, type AssistantFlowProps, AssistantNode, type AssistantNodeData, type AssistantState, type AttachFile, type AuthContextValue, AuthProvider, AxiomLatticeProvider, type AxiomLatticeProviderProps, type BalanceResult, ChangePasswordModal, type ChangePasswordModalProps, ChannelInstallationsDrawerContent, type ChatResponse, type ChatState, type ChatStateWithAgent, ChatUIContext, ChatUIContextProvider, Chating, type ChatingProps, type ClientConfig, ColumnLayout, type ColumnLayoutProps, ConversationContext, ConversationContextProvider, type ConversationContextProviderProps, type ConversationContextValue, type ConversationThread, CreateAssistantModal, DEFAULT_MIDDLEWARE_TYPES, type ElementMeta, type ElementProps, type ExplorerFile, FileExplorer, type FileExplorerProps, type IframeMessage, LatticeChat, LatticeChatShell, type LatticeChatShellConfig, LatticeChatShellContext, LatticeChatShellContextProvider, type LatticeChatShellContextProviderProps, type LatticeChatShellContextValue, type LatticeChatShellProps, LoginForm, type LoginFormProps, LoginPage, MDResponse, MDViewFormItem, MetricsConfigDrawerContent, type MiddlewareConfigDefinition, type MiddlewareConfigSchema, type MiddlewareConfigSchemaProperty, type MiddlewareToolDefinition, type MiddlewareTypeDefinition, type ModelConfig, type ModelInfo, ModelSelector, type ModelSelectorProps, type PendingMessage, ProtectedRoute, type ProtectedRouteProps, type QuickPromptCategory, type QuickPromptItem, RegisterForm, type RegisterFormProps, type ResourceFolderConfig, type SanitizerConfig, ScheduleButton, type ScheduleButtonProps, SideAppViewBrowser, type SideMenuItemConfig, type SideMenuItemType, SkillCategoryPrompts, type SkillCategoryPromptsProps, SkillFlow, type SkillFlowProps, SkillNode, type SkillNodeData, type StreamEventHandlerOptions, type StreamingError, StreamingHTMLRenderer, type StreamingHTMLRendererProps, TenantSelector, type TenantSelectorProps, type ThreadState, type ToolCallData, type UIMessage, type UseAgentStateOptions, type UseAgentStateReturn, type UseApiOptions, type UseApiReturn, type UseAxiomLatticeOptions, type UseChatOptions, type UseTenantsOptions, type UseTenantsReturn, type UseUsersOptions, type UseUsersReturn, UserProfile, type UserProfileProps, type UserTenantInfo, WorkspaceResourceManager, type WorkspaceResourceManagerProps, WorkspaceResourceUIContext, animation, axiomAntdTheme, axiomAntdThemeDark, axiomTokens, colors, generateIframeSrcdoc, generateLabelFromMessage, getAxiomAntdTheme, getElement, radius, regsiterElement, shadows, spacing, typography, useAgentChat, useAgentGraph, useAgentState, useAgentThreadContext, useApi, useAssistantContext, useAuth, useAuthOptional, useAxiomLattice, useAxiomTheme, useChat, useChatUIContext, useClient, useConversationContext, useLatticeChatShellContext, useTenants, useUsers };
|
|
2291
|
+
export { type AgentChatProps, AgentConversations, type AgentConversationsProps, type AgentState, AgentThreadProvider, type AgentThreadProviderProps, AssistantContext, AssistantContextProvider, type AssistantContextProviderProps, type AssistantContextValue, AssistantFlow, type AssistantFlowProps, AssistantNode, type AssistantNodeData, type AssistantState, type AttachFile, type AuthContextValue, AuthProvider, AxiomLatticeProvider, type AxiomLatticeProviderProps, type BalanceResult, ChangePasswordModal, type ChangePasswordModalProps, ChannelInstallationsDrawerContent, type ChatResponse, ChatSidebar, type ChatSidebarProps, type ChatState, type ChatStateWithAgent, ChatUIContext, ChatUIContextProvider, Chating, type ChatingProps, type ClientConfig, ColumnLayout, type ColumnLayoutProps, ConversationContext, ConversationContextProvider, type ConversationContextProviderProps, type ConversationContextValue, type ConversationThread, CreateAssistantModal, DEFAULT_MENU_ITEMS, DEFAULT_MIDDLEWARE_TYPES, DEFAULT_WORKSPACE_MENU_ITEMS, type ElementMeta, type ElementProps, EvalPanel, EvalRunResults, EvalSuiteCardList, EvalSuiteDetail, type ExplorerFile, FileExplorer, type FileExplorerProps, type IframeMessage, LatticeChat, LatticeChatShell, type LatticeChatShellConfig, LatticeChatShellContext, LatticeChatShellContextProvider, type LatticeChatShellContextProviderProps, type LatticeChatShellContextValue, type LatticeChatShellProps, LoginForm, type LoginFormProps, LoginPage, MDResponse, MDViewFormItem, MetricsConfigDrawerContent, type MiddlewareConfigDefinition, type MiddlewareConfigSchema, type MiddlewareConfigSchemaProperty, type MiddlewareToolDefinition, type MiddlewareTypeDefinition, type ModelConfig, type ModelInfo, ModelSelector, type ModelSelectorProps, type PendingMessage, ProtectedRoute, type ProtectedRouteProps, type QuickPromptCategory, type QuickPromptItem, RegisterForm, type RegisterFormProps, type ResourceFolderConfig, type SanitizerConfig, ScheduleButton, type ScheduleButtonProps, SideAppViewBrowser, type SideMenuItemConfig, type SideMenuItemType, SkillCategoryPrompts, type SkillCategoryPromptsProps, SkillFlow, type SkillFlowProps, SkillNode, type SkillNodeData, type StreamEventHandlerOptions, type StreamingError, StreamingHTMLRenderer, type StreamingHTMLRendererProps, TenantSelector, type TenantSelectorProps, type ThreadState, type ToolCallData, type UIMessage, type UseAgentStateOptions, type UseAgentStateReturn, type UseApiOptions, type UseApiReturn, type UseAxiomLatticeOptions, type UseChatOptions, type UseTenantsOptions, type UseTenantsReturn, type UseUsersOptions, type UseUsersReturn, UserProfile, type UserProfileProps, type UserTenantInfo, WorkspaceResourceManager, type WorkspaceResourceManagerProps, WorkspaceResourceUIContext, animation, axiomAntdTheme, axiomAntdThemeDark, axiomTokens, colors, generateIframeSrcdoc, generateLabelFromMessage, getAxiomAntdTheme, getElement, radius, regsiterElement, shadows, spacing, typography, useAgentChat, useAgentGraph, useAgentState, useAgentThreadContext, useApi, useAssistantContext, useAuth, useAuthOptional, useAxiomLattice, useAxiomTheme, useChat, useChatUIContext, useClient, useConversationContext, useEvalCases, useEvalProjects, useEvalRunStream, useEvalRuns, useEvalSuites, useLatticeChatShellContext, useTenants, useUsers };
|