@axiom-lattice/react-sdk 2.1.34 → 2.1.35
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 +153 -5
- package/dist/index.d.ts +153 -5
- package/dist/index.js +5275 -3074
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5572 -3373
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as _axiom_lattice_protocols from '@axiom-lattice/protocols';
|
|
2
|
+
import { Message, InterruptMessage, Thread, User, Tenant, Skill } from '@axiom-lattice/protocols';
|
|
2
3
|
export * from '@axiom-lattice/protocols';
|
|
3
4
|
import * as React$1 from 'react';
|
|
4
5
|
import React__default, { ReactNode } from 'react';
|
|
@@ -418,6 +419,139 @@ declare function AgentThreadProvider<T extends UseChatOptions>({ threadId, assis
|
|
|
418
419
|
*/
|
|
419
420
|
declare function useAgentThreadContext<T extends UseChatOptions>(): AgentThreadContextValue<T>;
|
|
420
421
|
|
|
422
|
+
interface UserTenantInfo {
|
|
423
|
+
tenantId: string;
|
|
424
|
+
role: string;
|
|
425
|
+
tenant?: Tenant;
|
|
426
|
+
}
|
|
427
|
+
interface AuthContextValue {
|
|
428
|
+
user: User | null;
|
|
429
|
+
tenants: UserTenantInfo[];
|
|
430
|
+
currentTenant: Tenant | null;
|
|
431
|
+
isAuthenticated: boolean;
|
|
432
|
+
isLoading: boolean;
|
|
433
|
+
error: string | null;
|
|
434
|
+
login: (email: string, password: string) => Promise<{
|
|
435
|
+
requiresTenantSelection: boolean;
|
|
436
|
+
hasTenants: boolean;
|
|
437
|
+
}>;
|
|
438
|
+
register: (email: string, password: string, name: string) => Promise<{
|
|
439
|
+
message: string;
|
|
440
|
+
token?: string;
|
|
441
|
+
}>;
|
|
442
|
+
logout: () => void;
|
|
443
|
+
selectTenant: (tenantId: string) => Promise<void>;
|
|
444
|
+
fetchUserTenants: () => Promise<void>;
|
|
445
|
+
refreshUser: () => Promise<void>;
|
|
446
|
+
clearError: () => void;
|
|
447
|
+
}
|
|
448
|
+
declare const useAuth: () => AuthContextValue;
|
|
449
|
+
interface AuthProviderProps {
|
|
450
|
+
children: ReactNode;
|
|
451
|
+
baseURL: string;
|
|
452
|
+
onLoginSuccess?: (user: User, tenants: UserTenantInfo[]) => void;
|
|
453
|
+
onTenantSelected?: (tenant: Tenant) => void;
|
|
454
|
+
onLogout?: () => void;
|
|
455
|
+
}
|
|
456
|
+
declare const AuthProvider: React__default.FC<AuthProviderProps>;
|
|
457
|
+
|
|
458
|
+
interface LoginFormProps {
|
|
459
|
+
onSuccess?: () => void;
|
|
460
|
+
onCancel?: () => void;
|
|
461
|
+
logo?: React__default.ReactNode;
|
|
462
|
+
title?: string;
|
|
463
|
+
footer?: React__default.ReactNode;
|
|
464
|
+
className?: string;
|
|
465
|
+
}
|
|
466
|
+
declare const LoginForm: React__default.FC<LoginFormProps>;
|
|
467
|
+
interface LoginPageProps extends LoginFormProps {
|
|
468
|
+
background?: string;
|
|
469
|
+
containerStyle?: React__default.CSSProperties;
|
|
470
|
+
}
|
|
471
|
+
declare const LoginPage: React__default.FC<LoginPageProps>;
|
|
472
|
+
interface RegisterFormProps {
|
|
473
|
+
onSuccess?: () => void;
|
|
474
|
+
onCancel?: () => void;
|
|
475
|
+
logo?: React__default.ReactNode;
|
|
476
|
+
title?: string;
|
|
477
|
+
footer?: React__default.ReactNode;
|
|
478
|
+
className?: string;
|
|
479
|
+
}
|
|
480
|
+
declare const RegisterForm: React__default.FC<RegisterFormProps>;
|
|
481
|
+
|
|
482
|
+
interface UserProfileProps {
|
|
483
|
+
/** Called when user clicks logout */
|
|
484
|
+
onLogout?: () => void;
|
|
485
|
+
/** Show tenant switcher */
|
|
486
|
+
showTenantSwitcher?: boolean;
|
|
487
|
+
/** Custom class name */
|
|
488
|
+
className?: string;
|
|
489
|
+
}
|
|
490
|
+
declare const UserProfile: React__default.FC<UserProfileProps>;
|
|
491
|
+
interface ProtectedRouteProps {
|
|
492
|
+
children: React__default.ReactNode;
|
|
493
|
+
/** Component to show when not authenticated */
|
|
494
|
+
fallback?: React__default.ReactNode;
|
|
495
|
+
/** Redirect URL (if using react-router) */
|
|
496
|
+
redirectTo?: string;
|
|
497
|
+
}
|
|
498
|
+
declare const ProtectedRoute: React__default.FC<ProtectedRouteProps>;
|
|
499
|
+
|
|
500
|
+
interface TenantSelectorProps {
|
|
501
|
+
tenants: Tenant[];
|
|
502
|
+
currentTenantId?: string | null;
|
|
503
|
+
onSelect: (tenant: Tenant) => void;
|
|
504
|
+
isLoading?: boolean;
|
|
505
|
+
className?: string;
|
|
506
|
+
title?: string;
|
|
507
|
+
description?: string;
|
|
508
|
+
background?: string;
|
|
509
|
+
hideBackground?: boolean;
|
|
510
|
+
}
|
|
511
|
+
declare const TenantSelector: React__default.FC<TenantSelectorProps>;
|
|
512
|
+
interface TenantSwitcherProps {
|
|
513
|
+
tenants: Tenant[];
|
|
514
|
+
currentTenant: Tenant | null;
|
|
515
|
+
onSwitch: (tenant: Tenant) => void;
|
|
516
|
+
isLoading?: boolean;
|
|
517
|
+
className?: string;
|
|
518
|
+
}
|
|
519
|
+
declare const TenantSwitcher: React__default.FC<TenantSwitcherProps>;
|
|
520
|
+
interface TenantGuardProps {
|
|
521
|
+
children: React__default.ReactNode;
|
|
522
|
+
tenantSelector: React__default.ReactNode;
|
|
523
|
+
isAuthenticated: boolean;
|
|
524
|
+
currentTenant: Tenant | null;
|
|
525
|
+
loginRedirect?: React__default.ReactNode;
|
|
526
|
+
}
|
|
527
|
+
declare const TenantGuard: React__default.FC<TenantGuardProps>;
|
|
528
|
+
|
|
529
|
+
interface UseTenantsOptions {
|
|
530
|
+
baseURL: string;
|
|
531
|
+
token?: string;
|
|
532
|
+
}
|
|
533
|
+
interface UseTenantsReturn {
|
|
534
|
+
tenants: Tenant[];
|
|
535
|
+
isLoading: boolean;
|
|
536
|
+
error: string | null;
|
|
537
|
+
refresh: () => Promise<void>;
|
|
538
|
+
getTenantById: (id: string) => Tenant | undefined;
|
|
539
|
+
}
|
|
540
|
+
declare function useTenants(options: UseTenantsOptions): UseTenantsReturn;
|
|
541
|
+
interface UseUsersOptions {
|
|
542
|
+
baseURL: string;
|
|
543
|
+
tenantId: string;
|
|
544
|
+
token?: string;
|
|
545
|
+
}
|
|
546
|
+
interface UseUsersReturn {
|
|
547
|
+
users: _axiom_lattice_protocols.User[];
|
|
548
|
+
isLoading: boolean;
|
|
549
|
+
error: string | null;
|
|
550
|
+
refresh: () => Promise<void>;
|
|
551
|
+
searchByEmail: (email: string) => Promise<_axiom_lattice_protocols.User | null>;
|
|
552
|
+
}
|
|
553
|
+
declare function useUsers(options: UseUsersOptions): UseUsersReturn;
|
|
554
|
+
|
|
421
555
|
interface ChatingProps {
|
|
422
556
|
name?: string;
|
|
423
557
|
description?: string;
|
|
@@ -746,7 +880,7 @@ interface MiddlewareConfigSchemaProperty {
|
|
|
746
880
|
maxLength?: number;
|
|
747
881
|
pattern?: string;
|
|
748
882
|
format?: string;
|
|
749
|
-
widget?: "input" | "textarea" | "select" | "segmented" | "switch" | "numberInput" | "skillSelect" | "databaseSelect";
|
|
883
|
+
widget?: "input" | "textarea" | "select" | "segmented" | "switch" | "numberInput" | "skillSelect" | "databaseSelect" | "metricsSelect";
|
|
750
884
|
items?: {
|
|
751
885
|
type: string;
|
|
752
886
|
};
|
|
@@ -808,8 +942,17 @@ interface SideMenuItemConfig {
|
|
|
808
942
|
icon?: ReactNode;
|
|
809
943
|
/** Order for sorting menu items (lower values first) */
|
|
810
944
|
order?: number;
|
|
811
|
-
/** Whether this is a builtin menu item (assistant, skill, tools, workspace, settings, agents, database) */
|
|
812
|
-
builtin?: "assistant" | "skill" | "tools" | "workspace" | "settings" | "agents" | "database";
|
|
945
|
+
/** Whether this is a builtin menu item (assistant, skill, tools, workspace, settings, agents, database, metrics) */
|
|
946
|
+
builtin?: "assistant" | "skill" | "tools" | "workspace" | "settings" | "agents" | "database" | "metrics";
|
|
947
|
+
/**
|
|
948
|
+
* Menu group for organizing items
|
|
949
|
+
*/
|
|
950
|
+
group?: string;
|
|
951
|
+
/**
|
|
952
|
+
* Whether the menu item is enabled (can be toggled)
|
|
953
|
+
* Defaults to true
|
|
954
|
+
*/
|
|
955
|
+
enabled?: boolean;
|
|
813
956
|
/** Content to display inside the drawer (for drawer type) */
|
|
814
957
|
content?: ReactNode;
|
|
815
958
|
/** Drawer title (for drawer type) */
|
|
@@ -1028,6 +1171,11 @@ interface AgentConversationsProps {
|
|
|
1028
1171
|
}
|
|
1029
1172
|
declare const AgentConversations: React__default.FC<AgentConversationsProps>;
|
|
1030
1173
|
|
|
1174
|
+
interface MetricsConfigDrawerContentProps {
|
|
1175
|
+
tenantId?: string;
|
|
1176
|
+
}
|
|
1177
|
+
declare const MetricsConfigDrawerContent: React__default.FC<MetricsConfigDrawerContentProps>;
|
|
1178
|
+
|
|
1031
1179
|
type LatticeChatShellProps = Omit<LatticeChatShellContextProviderProps, "children"> & {
|
|
1032
1180
|
/**
|
|
1033
1181
|
* Whether users can create new assistants (default: true)
|
|
@@ -1151,4 +1299,4 @@ interface SkillCategoryPromptsProps {
|
|
|
1151
1299
|
}
|
|
1152
1300
|
declare const SkillCategoryPrompts: React__default.FC<SkillCategoryPromptsProps>;
|
|
1153
1301
|
|
|
1154
|
-
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, AxiomLatticeProvider, type AxiomLatticeProviderProps, 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, type ElementMeta, type ElementProps, type ExplorerFile, FileExplorer, type FileExplorerProps, LatticeChat, LatticeChatShell, type LatticeChatShellConfig, LatticeChatShellContext, LatticeChatShellContextProvider, type LatticeChatShellContextProviderProps, type LatticeChatShellContextValue, type LatticeChatShellProps, MDResponse, MDViewFormItem, type MiddlewareConfigDefinition, type MiddlewareConfigSchema, type MiddlewareConfigSchemaProperty, type MiddlewareToolDefinition, type MiddlewareTypeDefinition, type ResourceFolderConfig, ScheduleButton, type ScheduleButtonProps, SideAppViewBrowser, type SideMenuItemConfig, type SideMenuItemType, SkillCategoryPrompts, type SkillCategoryPromptsProps, SkillFlow, type SkillFlowProps, SkillNode, type SkillNodeData, type StreamEventHandlerOptions, type ThreadState, type ToolCallData, type UIMessage, type UseAgentStateOptions, type UseAgentStateReturn, type UseAxiomLatticeOptions, type UseChatOptions, getElement, regsiterElement, useAgentChat, useAgentGraph, useAgentState, useAgentThreadContext, useAssistantContext, useAxiomLattice, useChat, useChatUIContext, useConversationContext, useLatticeChatShellContext };
|
|
1302
|
+
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 ChatResponse, type ChatState, type ChatStateWithAgent, ChatUIContext, ChatUIContextProvider, Chating, type ChatingProps, type ClientConfig, ColumnLayout, type ColumnLayoutProps, ConversationContext, ConversationContextProvider, type ConversationContextProviderProps, type ConversationContextValue, type ConversationThread, CreateAssistantModal, type ElementMeta, type ElementProps, type ExplorerFile, FileExplorer, type FileExplorerProps, LatticeChat, LatticeChatShell, type LatticeChatShellConfig, LatticeChatShellContext, LatticeChatShellContextProvider, type LatticeChatShellContextProviderProps, type LatticeChatShellContextValue, type LatticeChatShellProps, LoginForm, type LoginFormProps, LoginPage, type LoginPageProps, MDResponse, MDViewFormItem, MetricsConfigDrawerContent, type MiddlewareConfigDefinition, type MiddlewareConfigSchema, type MiddlewareConfigSchemaProperty, type MiddlewareToolDefinition, type MiddlewareTypeDefinition, ProtectedRoute, type ProtectedRouteProps, RegisterForm, type RegisterFormProps, type ResourceFolderConfig, ScheduleButton, type ScheduleButtonProps, SideAppViewBrowser, type SideMenuItemConfig, type SideMenuItemType, SkillCategoryPrompts, type SkillCategoryPromptsProps, SkillFlow, type SkillFlowProps, SkillNode, type SkillNodeData, type StreamEventHandlerOptions, TenantGuard, type TenantGuardProps, TenantSelector, type TenantSelectorProps, TenantSwitcher, type TenantSwitcherProps, type ThreadState, type ToolCallData, type UIMessage, type UseAgentStateOptions, type UseAgentStateReturn, type UseAxiomLatticeOptions, type UseChatOptions, type UseTenantsOptions, type UseTenantsReturn, type UseUsersOptions, type UseUsersReturn, UserProfile, type UserProfileProps, type UserTenantInfo, getElement, regsiterElement, useAgentChat, useAgentGraph, useAgentState, useAgentThreadContext, useAssistantContext, useAuth, useAxiomLattice, useChat, useChatUIContext, useConversationContext, useLatticeChatShellContext, useTenants, useUsers };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as _axiom_lattice_protocols from '@axiom-lattice/protocols';
|
|
2
|
+
import { Message, InterruptMessage, Thread, User, Tenant, Skill } from '@axiom-lattice/protocols';
|
|
2
3
|
export * from '@axiom-lattice/protocols';
|
|
3
4
|
import * as React$1 from 'react';
|
|
4
5
|
import React__default, { ReactNode } from 'react';
|
|
@@ -418,6 +419,139 @@ declare function AgentThreadProvider<T extends UseChatOptions>({ threadId, assis
|
|
|
418
419
|
*/
|
|
419
420
|
declare function useAgentThreadContext<T extends UseChatOptions>(): AgentThreadContextValue<T>;
|
|
420
421
|
|
|
422
|
+
interface UserTenantInfo {
|
|
423
|
+
tenantId: string;
|
|
424
|
+
role: string;
|
|
425
|
+
tenant?: Tenant;
|
|
426
|
+
}
|
|
427
|
+
interface AuthContextValue {
|
|
428
|
+
user: User | null;
|
|
429
|
+
tenants: UserTenantInfo[];
|
|
430
|
+
currentTenant: Tenant | null;
|
|
431
|
+
isAuthenticated: boolean;
|
|
432
|
+
isLoading: boolean;
|
|
433
|
+
error: string | null;
|
|
434
|
+
login: (email: string, password: string) => Promise<{
|
|
435
|
+
requiresTenantSelection: boolean;
|
|
436
|
+
hasTenants: boolean;
|
|
437
|
+
}>;
|
|
438
|
+
register: (email: string, password: string, name: string) => Promise<{
|
|
439
|
+
message: string;
|
|
440
|
+
token?: string;
|
|
441
|
+
}>;
|
|
442
|
+
logout: () => void;
|
|
443
|
+
selectTenant: (tenantId: string) => Promise<void>;
|
|
444
|
+
fetchUserTenants: () => Promise<void>;
|
|
445
|
+
refreshUser: () => Promise<void>;
|
|
446
|
+
clearError: () => void;
|
|
447
|
+
}
|
|
448
|
+
declare const useAuth: () => AuthContextValue;
|
|
449
|
+
interface AuthProviderProps {
|
|
450
|
+
children: ReactNode;
|
|
451
|
+
baseURL: string;
|
|
452
|
+
onLoginSuccess?: (user: User, tenants: UserTenantInfo[]) => void;
|
|
453
|
+
onTenantSelected?: (tenant: Tenant) => void;
|
|
454
|
+
onLogout?: () => void;
|
|
455
|
+
}
|
|
456
|
+
declare const AuthProvider: React__default.FC<AuthProviderProps>;
|
|
457
|
+
|
|
458
|
+
interface LoginFormProps {
|
|
459
|
+
onSuccess?: () => void;
|
|
460
|
+
onCancel?: () => void;
|
|
461
|
+
logo?: React__default.ReactNode;
|
|
462
|
+
title?: string;
|
|
463
|
+
footer?: React__default.ReactNode;
|
|
464
|
+
className?: string;
|
|
465
|
+
}
|
|
466
|
+
declare const LoginForm: React__default.FC<LoginFormProps>;
|
|
467
|
+
interface LoginPageProps extends LoginFormProps {
|
|
468
|
+
background?: string;
|
|
469
|
+
containerStyle?: React__default.CSSProperties;
|
|
470
|
+
}
|
|
471
|
+
declare const LoginPage: React__default.FC<LoginPageProps>;
|
|
472
|
+
interface RegisterFormProps {
|
|
473
|
+
onSuccess?: () => void;
|
|
474
|
+
onCancel?: () => void;
|
|
475
|
+
logo?: React__default.ReactNode;
|
|
476
|
+
title?: string;
|
|
477
|
+
footer?: React__default.ReactNode;
|
|
478
|
+
className?: string;
|
|
479
|
+
}
|
|
480
|
+
declare const RegisterForm: React__default.FC<RegisterFormProps>;
|
|
481
|
+
|
|
482
|
+
interface UserProfileProps {
|
|
483
|
+
/** Called when user clicks logout */
|
|
484
|
+
onLogout?: () => void;
|
|
485
|
+
/** Show tenant switcher */
|
|
486
|
+
showTenantSwitcher?: boolean;
|
|
487
|
+
/** Custom class name */
|
|
488
|
+
className?: string;
|
|
489
|
+
}
|
|
490
|
+
declare const UserProfile: React__default.FC<UserProfileProps>;
|
|
491
|
+
interface ProtectedRouteProps {
|
|
492
|
+
children: React__default.ReactNode;
|
|
493
|
+
/** Component to show when not authenticated */
|
|
494
|
+
fallback?: React__default.ReactNode;
|
|
495
|
+
/** Redirect URL (if using react-router) */
|
|
496
|
+
redirectTo?: string;
|
|
497
|
+
}
|
|
498
|
+
declare const ProtectedRoute: React__default.FC<ProtectedRouteProps>;
|
|
499
|
+
|
|
500
|
+
interface TenantSelectorProps {
|
|
501
|
+
tenants: Tenant[];
|
|
502
|
+
currentTenantId?: string | null;
|
|
503
|
+
onSelect: (tenant: Tenant) => void;
|
|
504
|
+
isLoading?: boolean;
|
|
505
|
+
className?: string;
|
|
506
|
+
title?: string;
|
|
507
|
+
description?: string;
|
|
508
|
+
background?: string;
|
|
509
|
+
hideBackground?: boolean;
|
|
510
|
+
}
|
|
511
|
+
declare const TenantSelector: React__default.FC<TenantSelectorProps>;
|
|
512
|
+
interface TenantSwitcherProps {
|
|
513
|
+
tenants: Tenant[];
|
|
514
|
+
currentTenant: Tenant | null;
|
|
515
|
+
onSwitch: (tenant: Tenant) => void;
|
|
516
|
+
isLoading?: boolean;
|
|
517
|
+
className?: string;
|
|
518
|
+
}
|
|
519
|
+
declare const TenantSwitcher: React__default.FC<TenantSwitcherProps>;
|
|
520
|
+
interface TenantGuardProps {
|
|
521
|
+
children: React__default.ReactNode;
|
|
522
|
+
tenantSelector: React__default.ReactNode;
|
|
523
|
+
isAuthenticated: boolean;
|
|
524
|
+
currentTenant: Tenant | null;
|
|
525
|
+
loginRedirect?: React__default.ReactNode;
|
|
526
|
+
}
|
|
527
|
+
declare const TenantGuard: React__default.FC<TenantGuardProps>;
|
|
528
|
+
|
|
529
|
+
interface UseTenantsOptions {
|
|
530
|
+
baseURL: string;
|
|
531
|
+
token?: string;
|
|
532
|
+
}
|
|
533
|
+
interface UseTenantsReturn {
|
|
534
|
+
tenants: Tenant[];
|
|
535
|
+
isLoading: boolean;
|
|
536
|
+
error: string | null;
|
|
537
|
+
refresh: () => Promise<void>;
|
|
538
|
+
getTenantById: (id: string) => Tenant | undefined;
|
|
539
|
+
}
|
|
540
|
+
declare function useTenants(options: UseTenantsOptions): UseTenantsReturn;
|
|
541
|
+
interface UseUsersOptions {
|
|
542
|
+
baseURL: string;
|
|
543
|
+
tenantId: string;
|
|
544
|
+
token?: string;
|
|
545
|
+
}
|
|
546
|
+
interface UseUsersReturn {
|
|
547
|
+
users: _axiom_lattice_protocols.User[];
|
|
548
|
+
isLoading: boolean;
|
|
549
|
+
error: string | null;
|
|
550
|
+
refresh: () => Promise<void>;
|
|
551
|
+
searchByEmail: (email: string) => Promise<_axiom_lattice_protocols.User | null>;
|
|
552
|
+
}
|
|
553
|
+
declare function useUsers(options: UseUsersOptions): UseUsersReturn;
|
|
554
|
+
|
|
421
555
|
interface ChatingProps {
|
|
422
556
|
name?: string;
|
|
423
557
|
description?: string;
|
|
@@ -746,7 +880,7 @@ interface MiddlewareConfigSchemaProperty {
|
|
|
746
880
|
maxLength?: number;
|
|
747
881
|
pattern?: string;
|
|
748
882
|
format?: string;
|
|
749
|
-
widget?: "input" | "textarea" | "select" | "segmented" | "switch" | "numberInput" | "skillSelect" | "databaseSelect";
|
|
883
|
+
widget?: "input" | "textarea" | "select" | "segmented" | "switch" | "numberInput" | "skillSelect" | "databaseSelect" | "metricsSelect";
|
|
750
884
|
items?: {
|
|
751
885
|
type: string;
|
|
752
886
|
};
|
|
@@ -808,8 +942,17 @@ interface SideMenuItemConfig {
|
|
|
808
942
|
icon?: ReactNode;
|
|
809
943
|
/** Order for sorting menu items (lower values first) */
|
|
810
944
|
order?: number;
|
|
811
|
-
/** Whether this is a builtin menu item (assistant, skill, tools, workspace, settings, agents, database) */
|
|
812
|
-
builtin?: "assistant" | "skill" | "tools" | "workspace" | "settings" | "agents" | "database";
|
|
945
|
+
/** Whether this is a builtin menu item (assistant, skill, tools, workspace, settings, agents, database, metrics) */
|
|
946
|
+
builtin?: "assistant" | "skill" | "tools" | "workspace" | "settings" | "agents" | "database" | "metrics";
|
|
947
|
+
/**
|
|
948
|
+
* Menu group for organizing items
|
|
949
|
+
*/
|
|
950
|
+
group?: string;
|
|
951
|
+
/**
|
|
952
|
+
* Whether the menu item is enabled (can be toggled)
|
|
953
|
+
* Defaults to true
|
|
954
|
+
*/
|
|
955
|
+
enabled?: boolean;
|
|
813
956
|
/** Content to display inside the drawer (for drawer type) */
|
|
814
957
|
content?: ReactNode;
|
|
815
958
|
/** Drawer title (for drawer type) */
|
|
@@ -1028,6 +1171,11 @@ interface AgentConversationsProps {
|
|
|
1028
1171
|
}
|
|
1029
1172
|
declare const AgentConversations: React__default.FC<AgentConversationsProps>;
|
|
1030
1173
|
|
|
1174
|
+
interface MetricsConfigDrawerContentProps {
|
|
1175
|
+
tenantId?: string;
|
|
1176
|
+
}
|
|
1177
|
+
declare const MetricsConfigDrawerContent: React__default.FC<MetricsConfigDrawerContentProps>;
|
|
1178
|
+
|
|
1031
1179
|
type LatticeChatShellProps = Omit<LatticeChatShellContextProviderProps, "children"> & {
|
|
1032
1180
|
/**
|
|
1033
1181
|
* Whether users can create new assistants (default: true)
|
|
@@ -1151,4 +1299,4 @@ interface SkillCategoryPromptsProps {
|
|
|
1151
1299
|
}
|
|
1152
1300
|
declare const SkillCategoryPrompts: React__default.FC<SkillCategoryPromptsProps>;
|
|
1153
1301
|
|
|
1154
|
-
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, AxiomLatticeProvider, type AxiomLatticeProviderProps, 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, type ElementMeta, type ElementProps, type ExplorerFile, FileExplorer, type FileExplorerProps, LatticeChat, LatticeChatShell, type LatticeChatShellConfig, LatticeChatShellContext, LatticeChatShellContextProvider, type LatticeChatShellContextProviderProps, type LatticeChatShellContextValue, type LatticeChatShellProps, MDResponse, MDViewFormItem, type MiddlewareConfigDefinition, type MiddlewareConfigSchema, type MiddlewareConfigSchemaProperty, type MiddlewareToolDefinition, type MiddlewareTypeDefinition, type ResourceFolderConfig, ScheduleButton, type ScheduleButtonProps, SideAppViewBrowser, type SideMenuItemConfig, type SideMenuItemType, SkillCategoryPrompts, type SkillCategoryPromptsProps, SkillFlow, type SkillFlowProps, SkillNode, type SkillNodeData, type StreamEventHandlerOptions, type ThreadState, type ToolCallData, type UIMessage, type UseAgentStateOptions, type UseAgentStateReturn, type UseAxiomLatticeOptions, type UseChatOptions, getElement, regsiterElement, useAgentChat, useAgentGraph, useAgentState, useAgentThreadContext, useAssistantContext, useAxiomLattice, useChat, useChatUIContext, useConversationContext, useLatticeChatShellContext };
|
|
1302
|
+
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 ChatResponse, type ChatState, type ChatStateWithAgent, ChatUIContext, ChatUIContextProvider, Chating, type ChatingProps, type ClientConfig, ColumnLayout, type ColumnLayoutProps, ConversationContext, ConversationContextProvider, type ConversationContextProviderProps, type ConversationContextValue, type ConversationThread, CreateAssistantModal, type ElementMeta, type ElementProps, type ExplorerFile, FileExplorer, type FileExplorerProps, LatticeChat, LatticeChatShell, type LatticeChatShellConfig, LatticeChatShellContext, LatticeChatShellContextProvider, type LatticeChatShellContextProviderProps, type LatticeChatShellContextValue, type LatticeChatShellProps, LoginForm, type LoginFormProps, LoginPage, type LoginPageProps, MDResponse, MDViewFormItem, MetricsConfigDrawerContent, type MiddlewareConfigDefinition, type MiddlewareConfigSchema, type MiddlewareConfigSchemaProperty, type MiddlewareToolDefinition, type MiddlewareTypeDefinition, ProtectedRoute, type ProtectedRouteProps, RegisterForm, type RegisterFormProps, type ResourceFolderConfig, ScheduleButton, type ScheduleButtonProps, SideAppViewBrowser, type SideMenuItemConfig, type SideMenuItemType, SkillCategoryPrompts, type SkillCategoryPromptsProps, SkillFlow, type SkillFlowProps, SkillNode, type SkillNodeData, type StreamEventHandlerOptions, TenantGuard, type TenantGuardProps, TenantSelector, type TenantSelectorProps, TenantSwitcher, type TenantSwitcherProps, type ThreadState, type ToolCallData, type UIMessage, type UseAgentStateOptions, type UseAgentStateReturn, type UseAxiomLatticeOptions, type UseChatOptions, type UseTenantsOptions, type UseTenantsReturn, type UseUsersOptions, type UseUsersReturn, UserProfile, type UserProfileProps, type UserTenantInfo, getElement, regsiterElement, useAgentChat, useAgentGraph, useAgentState, useAgentThreadContext, useAssistantContext, useAuth, useAxiomLattice, useChat, useChatUIContext, useConversationContext, useLatticeChatShellContext, useTenants, useUsers };
|