@axiom-lattice/react-sdk 2.1.58 → 2.1.60
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 +16 -1
- package/dist/index.d.ts +16 -1
- package/dist/index.js +4105 -3422
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3554 -2869
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -407,6 +407,7 @@ declare function useAgentChat<T extends UseChatOptions>(options?: T): ChatStateW
|
|
|
407
407
|
};
|
|
408
408
|
};
|
|
409
409
|
streaming?: boolean;
|
|
410
|
+
mode?: 'collect' | 'followup' | 'steer';
|
|
410
411
|
}) => Promise<void>;
|
|
411
412
|
stopStreaming: () => void;
|
|
412
413
|
resumeStream: (messageId?: string) => () => void;
|
|
@@ -415,6 +416,8 @@ declare function useAgentChat<T extends UseChatOptions>(options?: T): ChatStateW
|
|
|
415
416
|
clearError: () => void;
|
|
416
417
|
customRunConfig: Record<string, any>;
|
|
417
418
|
updateCustomRunConfig: (config: Record<string, any>) => void;
|
|
419
|
+
removePendingMessage: (messageId: string) => Promise<boolean>;
|
|
420
|
+
abortAgent: () => Promise<void>;
|
|
418
421
|
};
|
|
419
422
|
|
|
420
423
|
/**
|
|
@@ -500,6 +503,7 @@ interface AgentThreadContextValue<T extends UseChatOptions> {
|
|
|
500
503
|
};
|
|
501
504
|
};
|
|
502
505
|
streaming?: boolean;
|
|
506
|
+
mode?: 'collect' | 'followup' | 'steer';
|
|
503
507
|
}) => Promise<void>;
|
|
504
508
|
stopStreaming: () => void;
|
|
505
509
|
resumeStream: (messageId?: string) => () => void;
|
|
@@ -508,6 +512,8 @@ interface AgentThreadContextValue<T extends UseChatOptions> {
|
|
|
508
512
|
clearError: () => void;
|
|
509
513
|
customRunConfig: Record<string, any>;
|
|
510
514
|
updateCustomRunConfig: (config: Record<string, any>) => void;
|
|
515
|
+
removePendingMessage: (messageId: string) => Promise<boolean>;
|
|
516
|
+
abortAgent: () => Promise<void>;
|
|
511
517
|
}
|
|
512
518
|
/**
|
|
513
519
|
* Props for AgentThreadProvider
|
|
@@ -555,6 +561,7 @@ interface AuthContextValue {
|
|
|
555
561
|
fetchUserTenants: () => Promise<void>;
|
|
556
562
|
refreshUser: () => Promise<void>;
|
|
557
563
|
clearError: () => void;
|
|
564
|
+
changePassword: (currentPassword: string, newPassword: string) => Promise<void>;
|
|
558
565
|
}
|
|
559
566
|
declare const useAuth: () => AuthContextValue;
|
|
560
567
|
/**
|
|
@@ -652,6 +659,13 @@ interface TenantSelectorProps {
|
|
|
652
659
|
}
|
|
653
660
|
declare const TenantSelector: React__default.FC<TenantSelectorProps>;
|
|
654
661
|
|
|
662
|
+
interface ChangePasswordModalProps {
|
|
663
|
+
open: boolean;
|
|
664
|
+
onClose: () => void;
|
|
665
|
+
onSuccess?: () => void;
|
|
666
|
+
}
|
|
667
|
+
declare const ChangePasswordModal: React__default.FC<ChangePasswordModalProps>;
|
|
668
|
+
|
|
655
669
|
interface UseTenantsOptions {
|
|
656
670
|
baseURL: string;
|
|
657
671
|
token?: string;
|
|
@@ -1153,6 +1167,7 @@ interface MiddlewareConfigSchemaProperty {
|
|
|
1153
1167
|
description?: string;
|
|
1154
1168
|
default?: any;
|
|
1155
1169
|
enum?: string[];
|
|
1170
|
+
enumLabels?: Record<string, string>;
|
|
1156
1171
|
minimum?: number;
|
|
1157
1172
|
maximum?: number;
|
|
1158
1173
|
minLength?: number;
|
|
@@ -2166,4 +2181,4 @@ type IframeMessage = {
|
|
|
2166
2181
|
};
|
|
2167
2182
|
declare function generateIframeSrcdoc(): string;
|
|
2168
2183
|
|
|
2169
|
-
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, 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, 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 };
|
|
2184
|
+
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, 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, 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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -407,6 +407,7 @@ declare function useAgentChat<T extends UseChatOptions>(options?: T): ChatStateW
|
|
|
407
407
|
};
|
|
408
408
|
};
|
|
409
409
|
streaming?: boolean;
|
|
410
|
+
mode?: 'collect' | 'followup' | 'steer';
|
|
410
411
|
}) => Promise<void>;
|
|
411
412
|
stopStreaming: () => void;
|
|
412
413
|
resumeStream: (messageId?: string) => () => void;
|
|
@@ -415,6 +416,8 @@ declare function useAgentChat<T extends UseChatOptions>(options?: T): ChatStateW
|
|
|
415
416
|
clearError: () => void;
|
|
416
417
|
customRunConfig: Record<string, any>;
|
|
417
418
|
updateCustomRunConfig: (config: Record<string, any>) => void;
|
|
419
|
+
removePendingMessage: (messageId: string) => Promise<boolean>;
|
|
420
|
+
abortAgent: () => Promise<void>;
|
|
418
421
|
};
|
|
419
422
|
|
|
420
423
|
/**
|
|
@@ -500,6 +503,7 @@ interface AgentThreadContextValue<T extends UseChatOptions> {
|
|
|
500
503
|
};
|
|
501
504
|
};
|
|
502
505
|
streaming?: boolean;
|
|
506
|
+
mode?: 'collect' | 'followup' | 'steer';
|
|
503
507
|
}) => Promise<void>;
|
|
504
508
|
stopStreaming: () => void;
|
|
505
509
|
resumeStream: (messageId?: string) => () => void;
|
|
@@ -508,6 +512,8 @@ interface AgentThreadContextValue<T extends UseChatOptions> {
|
|
|
508
512
|
clearError: () => void;
|
|
509
513
|
customRunConfig: Record<string, any>;
|
|
510
514
|
updateCustomRunConfig: (config: Record<string, any>) => void;
|
|
515
|
+
removePendingMessage: (messageId: string) => Promise<boolean>;
|
|
516
|
+
abortAgent: () => Promise<void>;
|
|
511
517
|
}
|
|
512
518
|
/**
|
|
513
519
|
* Props for AgentThreadProvider
|
|
@@ -555,6 +561,7 @@ interface AuthContextValue {
|
|
|
555
561
|
fetchUserTenants: () => Promise<void>;
|
|
556
562
|
refreshUser: () => Promise<void>;
|
|
557
563
|
clearError: () => void;
|
|
564
|
+
changePassword: (currentPassword: string, newPassword: string) => Promise<void>;
|
|
558
565
|
}
|
|
559
566
|
declare const useAuth: () => AuthContextValue;
|
|
560
567
|
/**
|
|
@@ -652,6 +659,13 @@ interface TenantSelectorProps {
|
|
|
652
659
|
}
|
|
653
660
|
declare const TenantSelector: React__default.FC<TenantSelectorProps>;
|
|
654
661
|
|
|
662
|
+
interface ChangePasswordModalProps {
|
|
663
|
+
open: boolean;
|
|
664
|
+
onClose: () => void;
|
|
665
|
+
onSuccess?: () => void;
|
|
666
|
+
}
|
|
667
|
+
declare const ChangePasswordModal: React__default.FC<ChangePasswordModalProps>;
|
|
668
|
+
|
|
655
669
|
interface UseTenantsOptions {
|
|
656
670
|
baseURL: string;
|
|
657
671
|
token?: string;
|
|
@@ -1153,6 +1167,7 @@ interface MiddlewareConfigSchemaProperty {
|
|
|
1153
1167
|
description?: string;
|
|
1154
1168
|
default?: any;
|
|
1155
1169
|
enum?: string[];
|
|
1170
|
+
enumLabels?: Record<string, string>;
|
|
1156
1171
|
minimum?: number;
|
|
1157
1172
|
maximum?: number;
|
|
1158
1173
|
minLength?: number;
|
|
@@ -2166,4 +2181,4 @@ type IframeMessage = {
|
|
|
2166
2181
|
};
|
|
2167
2182
|
declare function generateIframeSrcdoc(): string;
|
|
2168
2183
|
|
|
2169
|
-
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, 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, 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 };
|
|
2184
|
+
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, 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, 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 };
|