@arbidocs/react 0.4.131 → 0.4.132

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.
Files changed (55) hide show
  1. package/dist/artifacts/index.cjs +55 -56
  2. package/dist/artifacts/index.cjs.map +1 -1
  3. package/dist/artifacts/index.js +4 -6
  4. package/dist/artifacts/index.js.map +1 -1
  5. package/dist/{chunk-XV7EOUQM.js → chunk-3TISH7QU.js} +9 -4
  6. package/dist/chunk-3TISH7QU.js.map +1 -0
  7. package/dist/{chunk-BOJHNPNJ.cjs → chunk-6PPWZILQ.cjs} +16 -11
  8. package/dist/chunk-6PPWZILQ.cjs.map +1 -0
  9. package/dist/{chunk-BUFDJCDS.js → chunk-CPPBN2JB.js} +9 -7
  10. package/dist/chunk-CPPBN2JB.js.map +1 -0
  11. package/dist/{chunk-G6FHNURH.js → chunk-NNWMHMEC.js} +60 -3
  12. package/dist/chunk-NNWMHMEC.js.map +1 -0
  13. package/dist/{chunk-6AWF4HFU.js → chunk-PPRKQK4P.js} +16 -11
  14. package/dist/chunk-PPRKQK4P.js.map +1 -0
  15. package/dist/{chunk-XIDDXD5Y.cjs → chunk-R2MF7YCW.cjs} +9 -7
  16. package/dist/chunk-R2MF7YCW.cjs.map +1 -0
  17. package/dist/{chunk-S7J5SCTZ.cjs → chunk-TYUQFRHF.cjs} +4 -4
  18. package/dist/{chunk-S7J5SCTZ.cjs.map → chunk-TYUQFRHF.cjs.map} +1 -1
  19. package/dist/{chunk-UN3AZUXX.cjs → chunk-UTZZMUHI.cjs} +34 -29
  20. package/dist/chunk-UTZZMUHI.cjs.map +1 -0
  21. package/dist/{chunk-6JSXDLIQ.js → chunk-ZJ6NQ4M4.js} +3 -3
  22. package/dist/{chunk-6JSXDLIQ.js.map → chunk-ZJ6NQ4M4.js.map} +1 -1
  23. package/dist/{chunk-5DCRIWCA.cjs → chunk-ZWFMFOGP.cjs} +68 -2
  24. package/dist/chunk-ZWFMFOGP.cjs.map +1 -0
  25. package/dist/document-tools/index.cjs +26 -27
  26. package/dist/document-tools/index.cjs.map +1 -1
  27. package/dist/document-tools/index.js +4 -5
  28. package/dist/document-tools/index.js.map +1 -1
  29. package/dist/{index-C7OqcKY3.d.cts → index-D8NvRj3J.d.cts} +16 -7
  30. package/dist/{index-C7OqcKY3.d.ts → index-D8NvRj3J.d.ts} +16 -7
  31. package/dist/index.cjs +352 -223
  32. package/dist/index.cjs.map +1 -1
  33. package/dist/index.d.cts +148 -23
  34. package/dist/index.d.ts +148 -23
  35. package/dist/index.js +157 -37
  36. package/dist/index.js.map +1 -1
  37. package/dist/shell/index.cjs +10 -6
  38. package/dist/shell/index.d.cts +1 -1
  39. package/dist/shell/index.d.ts +1 -1
  40. package/dist/shell/index.js +1 -1
  41. package/dist/viewers/index.cjs +2 -2
  42. package/dist/viewers/index.js +1 -1
  43. package/package.json +3 -3
  44. package/dist/chunk-5DCRIWCA.cjs.map +0 -1
  45. package/dist/chunk-6AWF4HFU.js.map +0 -1
  46. package/dist/chunk-74UTKIWQ.js +0 -62
  47. package/dist/chunk-74UTKIWQ.js.map +0 -1
  48. package/dist/chunk-BOJHNPNJ.cjs.map +0 -1
  49. package/dist/chunk-BUFDJCDS.js.map +0 -1
  50. package/dist/chunk-G6FHNURH.js.map +0 -1
  51. package/dist/chunk-NUFEZBA5.cjs +0 -72
  52. package/dist/chunk-NUFEZBA5.cjs.map +0 -1
  53. package/dist/chunk-UN3AZUXX.cjs.map +0 -1
  54. package/dist/chunk-XIDDXD5Y.cjs.map +0 -1
  55. package/dist/chunk-XV7EOUQM.js.map +0 -1
package/dist/index.d.cts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as React$1 from 'react';
2
2
  import React__default, { ReactNode, ComponentType } from 'react';
3
3
  import * as _arbidocs_sdk_browser from '@arbidocs/sdk/browser';
4
- import { ArbiOptions, QueryOptions, Arbi, SSEStreamResult, SSEStreamStartData, UserMessageEvent, MessageMetadataPayload, ResponseOutputItemDoneEvent, ArtifactEvent, TagListQuery, StepActionRequest, UpdateConversationRequest, UpdateWorkflowRequest, TagKind, TagKindSchema, TagFieldDefinition, ProjectEventKind, ProjectUpdateRequest, contacts, LoginProfile, settings, DecryptedChatMessage } from '@arbidocs/sdk/browser';
4
+ import { Arbi, ArbiOptions, QueryOptions, SSEStreamResult, SSEStreamStartData, UserMessageEvent, MessageMetadataPayload, ResponseOutputItemDoneEvent, ArtifactEvent, TagListQuery, StepActionRequest, UpdateConversationRequest, UpdateWorkflowRequest, TagKind, TagKindSchema, TagFieldDefinition, ProjectEventKind, ProjectUpdateRequest, contacts, LoginProfile, settings, DecryptedChatMessage } from '@arbidocs/sdk/browser';
5
5
  export { ActivityKind, ActivityResponse, AgentStepEvent, Arbi, ArbiError, ArbiOptions, ArtifactEvent, AuthMode, ConversationResponse, CreateFactRequest, CreateWorkRequest, CreateWorkflowRequest, DEFAULT_AI_USD_PER_GBP, FactResponse, FactSearchRequest, FactSearchResponse, LoginProfile, MessageMetadataPayload, OutputTokensDetails, PendingAuthResponse, PlanWorkRequest, ProjectInvoicesResponse, ProjectUsageResponse, QueryOptions, ResponseCompletedEvent, ResponseContentPartAddedEvent, ResponseCreatedEvent, ResponseFailedEvent, ResponseOutputItemAddedEvent, ResponseOutputItemDoneEvent, ResponseOutputTextDeltaEvent, ResponseOutputTextDoneEvent, ResponseUsage, SSEStreamCallbacks, SSEStreamResult, SSEStreamStartData, SkillSummary, TaskPlan, UpdateConversationRequest, UpdateWorkflowRequest, UserDailyUsageResponse, UserInputRequestEvent, UserMessageEvent, WorkStatus, WorkflowAuthMode, WorkflowResponse, WorkflowRunResponse, formatGbp, formatGbpPerMillionTokens, usdToGbp } from '@arbidocs/sdk/browser';
6
6
  import * as _arbidocs_client from '@arbidocs/client';
7
7
  import { WebSocketServerMessage, WsTaskUpdateMessage, WsPresenceUpdateMessage, components, RecoveryKeyParams } from '@arbidocs/client';
@@ -16,7 +16,7 @@ import { VerificationResult } from '@didit-protocol/sdk-web';
16
16
  import { LucideIcon } from 'lucide-react';
17
17
  import { Components } from 'react-markdown';
18
18
  export { D as DraftCleanReport, a as DraftCleanStage, c as cleanDraftMarkdown, b as cleanDraftWithReport, p as promoteBoldTitle, r as repairParsedStructure, d as repairParsedTitle, s as stripAgentPreamble, u as unescapeMarkdown, e as unwrapCitationLinks } from './stored-markdown-Bp18vrbr.cjs';
19
- export { A as AppNotification, D as DEFAULT_NOTIFY_TONE, N as NotificationBell, a as NotificationBellProps, b as NotificationBellTriggerState, c as NotifyOptions, d as NotifyVariant, T as Toaster, n as notify, s as seedNotifications, e as selectUnread, u as useNotify } from './index-C7OqcKY3.cjs';
19
+ export { A as AppNotification, D as DEFAULT_NOTIFY_TONE, N as NotificationBell, a as NotificationBellProps, b as NotificationBellTriggerState, c as NotifyOptions, d as NotifyVariant, T as Toaster, n as notify, s as seedNotifications, e as selectUnread, u as useNotify } from './index-D8NvRj3J.cjs';
20
20
  import { ColDef } from 'ag-grid-community';
21
21
  export { ToasterProps, toast } from 'sonner';
22
22
  import 'clsx';
@@ -41,10 +41,12 @@ import '@radix-ui/react-toggle';
41
41
  import '@radix-ui/react-toggle-group';
42
42
  import 'rehype-sanitize';
43
43
 
44
- interface ArbiProviderProps extends ArbiOptions {
44
+ type ArbiProviderProps = {
45
45
  children: ReactNode;
46
- }
47
- declare function ArbiProvider({ children, ...options }: ArbiProviderProps): React$1.JSX.Element;
46
+ } & ({
47
+ arbi: Arbi;
48
+ } | ArbiOptions);
49
+ declare function ArbiProvider({ children, ...props }: ArbiProviderProps): React$1.JSX.Element;
48
50
 
49
51
  interface ArbiChatPassage {
50
52
  id: string;
@@ -580,6 +582,11 @@ declare const arbiQueryKeys: {
580
582
  /** An agent's pinned config; `undefined` = the library default config. */
581
583
  agentConfig: (agentExtId?: string) => readonly ["arbi", "agentConfig", string];
582
584
  agentWorkspaces: (agentExtId: string) => readonly ["arbi", "agentWorkspaces", string];
585
+ /** An agent's own login, polled while its controls are open. */
586
+ agentSession: (agentExtId: string) => readonly ["arbi", "agentSession", string];
587
+ agentChats: (agentExtId: string) => readonly ["arbi", "agentChats", string];
588
+ authorizeLimits: () => readonly ["arbi", "authorizeLimits"];
589
+ mcpTools: () => readonly ["arbi", "mcpTools"];
583
590
  models: () => readonly ["arbi", "models"];
584
591
  /** The signed-in user's own profile (name, picture, email). */
585
592
  profile: () => readonly ["arbi", "profile"];
@@ -2603,6 +2610,33 @@ declare function useCreateAgent(): _tanstack_react_query.UseMutationResult<{
2603
2610
  is_identity_verified: boolean;
2604
2611
  signing_private_key: string;
2605
2612
  }, Error, string, unknown>;
2613
+ /**
2614
+ * Generate an avatar for an owned agent from a prompt and set it as its picture. Resolves with the
2615
+ * agent (`picture` set); the agent list refreshes.
2616
+ */
2617
+ declare function useGenerateAgentAvatar(): _tanstack_react_query.UseMutationResult<{
2618
+ picture: string;
2619
+ }, Error, {
2620
+ agentExtId: string;
2621
+ prompt: string;
2622
+ }, unknown>;
2623
+ /** The default and maximum lifetime of a temporary agent authorization (seconds). */
2624
+ declare function useAuthorizeLimits(options?: {
2625
+ enabled?: boolean;
2626
+ }): _tanstack_react_query.UseQueryResult<NoInfer<{
2627
+ default_ttl_seconds: number;
2628
+ max_ttl_seconds: number;
2629
+ }>, Error>;
2630
+ /** The MCP tools registered on the deployment, for an agent's tool picker. */
2631
+ declare function useMcpTools(options?: {
2632
+ enabled?: boolean;
2633
+ }): _tanstack_react_query.UseQueryResult<NoInfer<{
2634
+ tools: {
2635
+ name: string;
2636
+ description: string;
2637
+ server_name: string;
2638
+ }[];
2639
+ }>, Error>;
2606
2640
  /**
2607
2641
  * An agent's pinned config (persona, model, tool switches), or the library default config when
2608
2642
  * `agentExtId` is omitted: edit forms seed from the first, create forms from the second.
@@ -2745,6 +2779,7 @@ declare function useAgentChats(agentId: string | undefined): _tanstack_react_que
2745
2779
  title: string;
2746
2780
  updated_at: string;
2747
2781
  }[]>, Error>;
2782
+ /** Log an owned agent in on its own (optionally into a workspace). */
2748
2783
  declare function useStartAgentSession(): _tanstack_react_query.UseMutationResult<{
2749
2784
  backend: string;
2750
2785
  active: boolean;
@@ -2754,6 +2789,7 @@ declare function useStartAgentSession(): _tanstack_react_query.UseMutationResult
2754
2789
  agentId: string;
2755
2790
  workspaceId?: string;
2756
2791
  }, unknown>;
2792
+ /** Log an owned agent out. */
2757
2793
  declare function useCloseAgentSession(): _tanstack_react_query.UseMutationResult<void, Error, string, unknown>;
2758
2794
 
2759
2795
  /** Refresh what a tag, doctag or fact change affects: the workspace's tags, tables and facts. */
@@ -3824,12 +3860,17 @@ declare function useWorkspaceNotificationLevel(workspaceId: string | null | unde
3824
3860
  isSaving: boolean;
3825
3861
  error: Error | null;
3826
3862
  };
3863
+ /** What the host does once a follow switch is saved or refused (e.g. a toast: nothing else shows). */
3864
+ interface FollowSaveCallbacks {
3865
+ onSuccess?: () => void;
3866
+ onError?: (error: Error) => void;
3867
+ }
3827
3868
  /** Whether the user follows a thread (pushed everything in it), and the switch. */
3828
3869
  declare function useFollowThread(conversationId: string | null | undefined, options?: {
3829
3870
  enabled?: boolean;
3830
3871
  }): {
3831
3872
  following: boolean;
3832
- setFollowing: (on: boolean) => void;
3873
+ setFollowing: (on: boolean, callbacks?: FollowSaveCallbacks) => void;
3833
3874
  isLoading: boolean;
3834
3875
  isSaving: boolean;
3835
3876
  error: Error | null;
@@ -6275,8 +6316,8 @@ declare function useCommandPalette(): CommandPaletteValue;
6275
6316
  * REUSE-FIRST: this composes AG Grid + `DocumentEntity`/`TagEntity` + the shadcn
6276
6317
  * `Badge`; it is not a bespoke table. Data comes from the SDK `useDocuments`
6277
6318
  * hook (or an explicit `documents` prop). Selection is controlled via
6278
- * `selectedIds`/`onSelectionChange`, falling back to the SDK-owned
6279
- * `useArbiUiStore` when those props are omitted.
6319
+ * `selectedIds`/`onSelectionChange`, falling back to
6320
+ * the session state (`useArbiSessionState`) when those props are omitted.
6280
6321
  */
6281
6322
 
6282
6323
  type DocResponse$2 = components['schemas']['DocResponse'];
@@ -6338,7 +6379,7 @@ declare function DocumentCardMenu({ docId, fileName, onOpen, onRename, canDelete
6338
6379
  * DocumentGallery — a reusable thumbnail-grid view of a workspace's documents.
6339
6380
  *
6340
6381
  * REUSE-FIRST: a sibling of `DocumentTable` sharing the exact same data sources
6341
- * (`useDocuments` + `useTags` + the SDK-owned `useArbiUiStore` selection state).
6382
+ * (`useDocuments` + `useTags` + the session state's selection).
6342
6383
  * The only extra dependency is `useThumbnails`, which batch-loads real first-page
6343
6384
  * previews. Each tile is a `DocumentCard`; this component only binds it to data.
6344
6385
  */
@@ -6930,20 +6971,104 @@ declare function VideoCapture({ onSave, onDiscard, onError, isSaving }: VideoCap
6930
6971
  declare function hasVideoTrack(blob: Blob): Promise<boolean>;
6931
6972
 
6932
6973
  /**
6933
- * SDK-owned UI store for cross-block coordination.
6974
+ * The session state every block reads and writes: the selected workspace, the current conversation,
6975
+ * the document being viewed, the document selection, generation per conversation, Personal
6976
+ * Assistant mode and the documents in each conversation.
6934
6977
  *
6935
- * This is a SMALL, decoupled zustand store (NOT the ARBI app's multi-slice
6936
- * store). Blocks such as `DocumentTable` use it as a fallback for selection /
6937
- * "viewing" state when the consumer does not drive that state via props.
6938
- */
6939
- interface ArbiUiState {
6940
- /** External ids of the currently selected documents. */
6941
- selectedDocIds: string[];
6942
- setSelectedDocIds: (ids: string[]) => void;
6943
- /** External id of the document currently being viewed/opened, if any. */
6944
- viewingDocId: string | null;
6945
- setViewingDocId: (id: string | null) => void;
6978
+ * An {@link ArbiSessionStore} is the adapter a host provides through `ArbiSessionStateProvider`:
6979
+ * a host with its own state (ARBI-frontend's zustand store) maps its fields onto
6980
+ * {@link ArbiSessionState} and its actions onto the setters, so there is one source of truth.
6981
+ * Other hosts use {@link createArbiSessionStore}, an in-memory store.
6982
+ */
6983
+ /** The document being viewed. */
6984
+ interface ArbiViewingDocument {
6985
+ /** The document (`doc-…`), or a version reference (`doc-…@v2`) while an earlier version shows. */
6986
+ id: string;
6987
+ /** The page being read, when known. */
6988
+ page: number | null;
6989
+ /** The passage being read, when one is. */
6990
+ passageId: string | null;
6946
6991
  }
6947
- declare const useArbiUiStore: zustand.UseBoundStore<zustand.StoreApi<ArbiUiState>>;
6992
+ /** Generation in one conversation. */
6993
+ interface ArbiConversationGeneration {
6994
+ isGenerating: boolean;
6995
+ error: string | null;
6996
+ /** When the running turn started (epoch ms). */
6997
+ startTime: number | null;
6998
+ }
6999
+ /** A document in a conversation's context; a pinned one stays there across turns. */
7000
+ interface ArbiConversationDocument {
7001
+ docId: string;
7002
+ isPinned: boolean;
7003
+ }
7004
+ interface ArbiSessionState {
7005
+ /** The selected workspace (`wrk-…`). */
7006
+ workspaceId: string | null;
7007
+ /** The open conversation, or null for a new one / none. */
7008
+ conversationId: string | null;
7009
+ viewingDocument: ArbiViewingDocument | null;
7010
+ /** The documents selected in document lists. */
7011
+ selectedDocumentIds: readonly string[];
7012
+ /** Generation state per conversation id. */
7013
+ generating: Readonly<Record<string, ArbiConversationGeneration>>;
7014
+ /** Personal Assistant mode for new conversations. */
7015
+ paMode: boolean;
7016
+ /** The documents in each conversation's context, per conversation id. */
7017
+ conversationDocuments: Readonly<Record<string, readonly ArbiConversationDocument[]>>;
7018
+ }
7019
+ /** What to view: page and passage are left unchanged when omitted. */
7020
+ interface ArbiViewingDocumentInput {
7021
+ id: string;
7022
+ page?: number | null;
7023
+ passageId?: string | null;
7024
+ }
7025
+ interface ArbiSessionStore {
7026
+ /** The current state. The same object until something in it changes. */
7027
+ getState(): ArbiSessionState;
7028
+ /** Be told when the state may have changed. Returns the unsubscribe. */
7029
+ subscribe(listener: () => void): () => void;
7030
+ setWorkspaceId(id: string | null): void;
7031
+ setConversationId(id: string | null): void;
7032
+ /**
7033
+ * View a document, or none. Viewing another document resets the page; `page` and `passageId`
7034
+ * set them when given.
7035
+ */
7036
+ setViewingDocument(document: ArbiViewingDocumentInput | null): void;
7037
+ setSelectedDocumentIds(ids: string[]): void;
7038
+ setConversationGenerating(conversationId: string, isGenerating: boolean): void;
7039
+ setPaMode(enabled: boolean): void;
7040
+ setConversationDocuments(conversationId: string, documents: ArbiConversationDocument[]): void;
7041
+ }
7042
+ declare const EMPTY_SESSION_STATE: ArbiSessionState;
7043
+ /** The viewed document itself (`doc-…`), also while one of its earlier versions is on screen. */
7044
+ declare const selectViewingDocumentId: (state: ArbiSessionState) => string | null;
7045
+ /** Whether `conversationId` is generating. */
7046
+ declare const selectIsGenerating: (conversationId: string | null | undefined) => (state: ArbiSessionState) => boolean;
7047
+ /** The next viewing document, given the current one (shared by every store implementation). */
7048
+ declare function nextViewingDocument(current: ArbiViewingDocument | null, input: ArbiViewingDocumentInput | null): ArbiViewingDocument | null;
7049
+ /** An in-memory session store: the default for hosts without state of their own. */
7050
+ declare function createArbiSessionStore(initial?: Partial<ArbiSessionState>): ArbiSessionStore;
7051
+
7052
+ /**
7053
+ * The session state the blocks below share (see `./store`). A host passes its own
7054
+ * {@link ArbiSessionStore} (ARBI-frontend backs it with its zustand store). Without `store` the
7055
+ * provider uses the one above it, else keeps an in-memory one, so a kit (`ConnectionProvider`) can
7056
+ * always mount one and still share the host's. Blocks rendered with no provider above share a
7057
+ * module default, so a standalone block still coordinates with its siblings.
7058
+ */
7059
+
7060
+ interface ArbiSessionStateProviderProps {
7061
+ /** The host's session state. Omitted: the enclosing provider's, else an in-memory one. */
7062
+ store?: ArbiSessionStore;
7063
+ children: ReactNode;
7064
+ }
7065
+ declare function ArbiSessionStateProvider({ store, children, }: ArbiSessionStateProviderProps): React.ReactElement;
7066
+ /** The session store: its setters, and `getState()` for the state as of now (in callbacks). */
7067
+ declare function useArbiSessionStore(): ArbiSessionStore;
7068
+ /**
7069
+ * A slice of the session state; re-renders when it changes. The selector returns a value from the
7070
+ * state or a primitive (a new object each call would never settle).
7071
+ */
7072
+ declare function useArbiSessionState<T>(selector: (state: ArbiSessionState) => T): T;
6948
7073
 
6949
- export { AUDIO_MIME_PREFERENCE, type AccountClient, type AccountClientContextValue, AccountClientProvider, type AccountClientProviderProps, type AccountSession, type AccountSignOutOptions, type ActivityContent, type ActivityDescription, ActivityFeed, type ActivityFeedProps, type AgentAccessMode, type AgentConfigSections, type AggregatedDailyUsage, type AggregatedModelGroupUsage, AiActionCard, AiAnswer, type AiRunOptions, type AiTaskStatus, AppleIcon, ArbiBotHeadIcon, ArbiBotIcon, type ArbiChat, type ArbiChatCitation, type ArbiChatDocument, type ArbiChatMessage, type ArbiChatMessageStatus, type ArbiChatPassage, type ArbiChatRole, type ArbiChatThread, ArbiProvider, type ArbiProviderProps, type ArbiUiState, ArbiWebSocketProvider, type ArbiWebSocketProviderProps, type ArbiWsState, type ArbiWsStatus, ArtifactCanvas, type AspectOption, AudIcon, type AudioRecorderState, type AudioSegment, type AvatarCrop, type AvatarFileProblem, ChatBubble, type ChatBubbleProps, type Chunk, type ChunkActivation, type ChunkedRecorder, type ChunkedRecorderOptions, CitationRenderer, type CitationRendererProps, type CitationState, ClaudeIcon, CommandPalette, type CommandPaletteClassNames, type CommandPaletteProps, CommandPaletteProvider, type CommandPaletteProviderProps, type CommandPaletteValue, ConversationList, type ConversationListProps, type CropArea, type CropOutput, type CropResult, DEFAULT_ASPECT_OPTIONS, DEFAULT_PASSWORD_CHANGE_FORM_MESSAGES, DEFAULT_SEGMENTER_CONFIG, DEFAULT_START_BY_EMAIL_LABELS, DateSeparator, type DateSeparatorProps, type DeleteAccountBlocker, type DeleteAccountFlow, DirectMessages, type DirectMessagesProps, DmAvatar, type DmAvatarProps, type DmClassNames, DmComposer, type DmComposerProps, type DmConversation, type DmMessage, type DmUser, DocIcon, DocQaPanel, DocSearch, DocumentCardMenu, type DocumentCardMenuProps, DocumentGallery, type DocumentGalleryProps, DocumentReview, type DocumentReviewProps, DocumentTable, type DocumentTableProps, DraftTitleControls, type DraftTitleControlsProps, type EmailChange, type EmailPreferences, EmlIcon, EntityIconComponent, FILE_TYPE_COLORS, FileIcon, FireworksIcon, GeminiIcon, GitHubIcon, GoogleIcon, type GrantAgentAccessVars, HtmlIcon, INITIAL_SEGMENTER_STATE, IdentityPurchase, IdentityStatus, IdentityStep, type IdentityVerificationApi, IdentityVerificationFlow, ImageCropModal, type ImageCropModalProps, ImageCropper, type ImageCropperProps, ImgIcon, InlineMicButton, type InlineMicButtonProps, LinkedInIcon, MAIL_DRAFT_REPLACED_EVENT, MAX_AVATAR_FILE_BYTES, type MailAccount, type MailAddress, type MailAttachment, type MailClient, type MailClientContextValue, MailClientProvider, type MailClientProviderProps, type MailCompose, type MailDeliveryRecipient, type MailDeliveryStatus, type MailDeviceFallback, type MailDraftEditorRequest, type MailDraftEditorSession, type MailFetch, type MailFolder, type MailMessage, type MailMessageUpdate, MailOfflineUnavailableError, type MailPage, type MailPolicy, type MailProject, type MessageArtifact, MessageArtifactCard, MessageBubble, type MessageBubbleProps, MessageThread, type MessageThreadProps, MicRecordingOverlay, type MicRecordingOverlayProps, MicWaveformIndicator, type MicWaveformIndicatorProps, type MountDiditOptions, type NameEditor, type NotificationPreferencesModel, type NotificationTypeMeta, OpenAIIcon, PROJECT_CREATION_DENIED_REASON, type PaletteNavItem, type ParsedChunk, type ParsedChunkMetadata, type ParsedDocument, type ParsedDocumentMetadata, type PasswordChangeForm, type PasswordChangeFormMessages, type PasswordChangeVars, PdfIcon, PhotoCapture, type PhotoCaptureProps, type ProfileView, type ProjectsUsageAggregate, ProviderIcon, RUN_WINDOW_MS, type RecordedChunk, type RelevancePatch, type RenderMarkdown, type SaveAgentConfigVars, type SearchChunk, type SegmenterConfig, type SegmenterEvent, type SegmenterState, SemanticSearch, type SemanticSearchProps, type ShellRecentWorkspaceItem, type ShellWorkspaceItem, type ShellWorkspaceKind, type ShellWorkspaceMember, type ShellWorkspaceSeed, type ShellWorkspaceSource, StartByEmail, type StartByEmailLabels, type StartByEmailProps, type ThreadAccessors, type ThreadItem, type ToolResponses, TxtIcon, TypingIndicator, type UpdateProfileVars, type UsageTotals, type UseArbiChatOptions, type UseArbiShellWorkspacesOptions, type UseAudioRecorderOptions, type UseAudioRecorderResult, type UseAvatarCropOptions, type UseCameraStreamResult, type UseDeleteAccountFlowOptions, type UseDirectMessagesResult, type UseEmailChangeOptions, type UseIdentityVerificationFlowOptions, type UseNameEditorOptions, type UsePasswordChangeFormOptions, type UseShellWorkspacesOptions, type UseShellWorkspacesResult, type UseVideoRecorderResult, VIDEO_MIME_PREFERENCE, VidIcon, VideoCapture, type VideoCaptureProps, type VideoRecorderState, VoiceNoteRecorder, type VoiceNoteRecorderProps, type WorkspaceNotificationLevel, XlsIcon, accountPath, aliasTakenMessage, annotateThread, announceMailDraftReplaced, arbiAccountClient, arbiMailClient, arbiQueryKeys, captureFrameAsBlob, classifyMediaError, createChunkedRecorder, createMailClient, cropImage, dayKey, defaultMailAlias, describeActivity, downloadRecoveryFile, fileAttachment, flushSegmenter, formatElapsed, formatIdentityPrice, formatRelativeTime, getNotificationTypeMeta, getWorkspaceActionText, getWorkspaceKind, getWorkspaceSentPhrase, hasVideoTrack, identityStepFor, invalidateTagData, isAliasTakenError, isUsageMetered, isWorkspaceNotificationType, levelFromRms, mailDraftIdFromContent, mailJson, mailQueryKeys, mountDiditVerification, nextAliasSuggestion, parseActivityContent, parseDeleteAccountBlockers, pickRecentWorkspaces, pickRecorderMimeType, redlineStats, resolveActiveWorkspace, stepSegmenter, textToArtifact, titleFromQuestion, toChatCitations, toNotificationPreferences, toProfileView, toRedlineMarkdown, toShellWorkspace, useAccountClient, useActOnStep, useActivity, useAgentChats, useAgentConfig, useAgentModels, useAgentSession, useAgentWorkspaces, useAgents, useAiTask, useArbi, useArbiChat, useArbiConnected, useArbiDocumentSync, useArbiShellWorkspaces, useArbiUiStore, useArbiWebSocket, useArbiWsContext, useArbiWsMessage, useArbiWsStatus, useArbiWsStore, useArbiWsTask, useArbiWsTasks, useAssistantQuery, useAudioRecorder, useAvatarCrop, useCameraStream, useCanCreateProjects, useClaimNativeAlias, useCloseAgentSession, useCommandPalette, useConfigs, useConfirmEmailChange, useConnectMailAccount, useContacts, useConversationActivity, useConversationPendingAuth, useConversationThreads, useConversationUsage, useConversations, useCreateAgent, useCreateContact, useCreateWork, useCreateWorkflow, useCurrentSessionId, useCurrentUser, useDeleteAccount, useDeleteAccountFlow, useDeleteAgents, useDeleteContact, useDeleteWorkflow, useDeploymentDomain, useDirectMessages, useDisconnectMailAccount, useDocuments, useEmailChange, useFacts, useFilteredProjects, useFirmPool, useFollowThread, useGrantAgentAccess, useHealth, useIdentityVerification, useIdentityVerificationFlow, useInvalidateTagData, useInviteContacts, useMailAccounts, useMailCache, useMailClient, useMailDraftCompose, useMailDraftEditor, useMailDraftReplaced, useMailFolders, useMailMessage, useMailMessages, useMailOnline, useMailPolicy, useMailProjects, useMailUnlock, useNameEditor, useNotificationPreferences, useParsedDocument, usePasswordChange, usePasswordChangeForm, usePendingContacts, usePlanWork, useProfile, useProjectConversationUsage, useProjectEvents, useProjectInvoices, useProjectUsage, useProjects, useProjectsUsage, useRequestEmailChange, useRevokeAgentAccess, useRunConversation, useRunWorkflow, useSaveAgentConfig, useSaveMailDraft, useSemanticSearch, useSendBackStep, useSendMail, useSessions, useSetTagValues, useShellWorkspaces, useSignOut, useSkills, useStartAgentSession, useStartWorkQuery, useTagKindSchema, useTags, useTerminateSession, useThumbnails, useTopUpFirmPool, useUpdateContact, useUpdateConversation, useUpdateMailMessage, useUpdateProfile, useUpdateProjectFields, useUpdateTagKindSchema, useUpdateWorkflow, useUploadSkillFiles, useUserSettings, useUserUsageToday, useVideoRecorder, useWorkNotifications, useWorkflows, useWorkspaceActivity, useWorkspaceDocs, useWorkspaceNotificationLevel, useWorkspaceUsers, useWorkspaces, userDisplayName, userInitials, workflowStepOf };
7074
+ export { AUDIO_MIME_PREFERENCE, type AccountClient, type AccountClientContextValue, AccountClientProvider, type AccountClientProviderProps, type AccountSession, type AccountSignOutOptions, type ActivityContent, type ActivityDescription, ActivityFeed, type ActivityFeedProps, type AgentAccessMode, type AgentConfigSections, type AggregatedDailyUsage, type AggregatedModelGroupUsage, AiActionCard, AiAnswer, type AiRunOptions, type AiTaskStatus, AppleIcon, ArbiBotHeadIcon, ArbiBotIcon, type ArbiChat, type ArbiChatCitation, type ArbiChatDocument, type ArbiChatMessage, type ArbiChatMessageStatus, type ArbiChatPassage, type ArbiChatRole, type ArbiChatThread, type ArbiConversationDocument, type ArbiConversationGeneration, ArbiProvider, type ArbiProviderProps, type ArbiSessionState, ArbiSessionStateProvider, type ArbiSessionStateProviderProps, type ArbiSessionStore, type ArbiViewingDocument, type ArbiViewingDocumentInput, ArbiWebSocketProvider, type ArbiWebSocketProviderProps, type ArbiWsState, type ArbiWsStatus, ArtifactCanvas, type AspectOption, AudIcon, type AudioRecorderState, type AudioSegment, type AvatarCrop, type AvatarFileProblem, ChatBubble, type ChatBubbleProps, type Chunk, type ChunkActivation, type ChunkedRecorder, type ChunkedRecorderOptions, CitationRenderer, type CitationRendererProps, type CitationState, ClaudeIcon, CommandPalette, type CommandPaletteClassNames, type CommandPaletteProps, CommandPaletteProvider, type CommandPaletteProviderProps, type CommandPaletteValue, ConversationList, type ConversationListProps, type CropArea, type CropOutput, type CropResult, DEFAULT_ASPECT_OPTIONS, DEFAULT_PASSWORD_CHANGE_FORM_MESSAGES, DEFAULT_SEGMENTER_CONFIG, DEFAULT_START_BY_EMAIL_LABELS, DateSeparator, type DateSeparatorProps, type DeleteAccountBlocker, type DeleteAccountFlow, DirectMessages, type DirectMessagesProps, DmAvatar, type DmAvatarProps, type DmClassNames, DmComposer, type DmComposerProps, type DmConversation, type DmMessage, type DmUser, DocIcon, DocQaPanel, DocSearch, DocumentCardMenu, type DocumentCardMenuProps, DocumentGallery, type DocumentGalleryProps, DocumentReview, type DocumentReviewProps, DocumentTable, type DocumentTableProps, DraftTitleControls, type DraftTitleControlsProps, EMPTY_SESSION_STATE, type EmailChange, type EmailPreferences, EmlIcon, EntityIconComponent, FILE_TYPE_COLORS, FileIcon, FireworksIcon, type FollowSaveCallbacks, GeminiIcon, GitHubIcon, GoogleIcon, type GrantAgentAccessVars, HtmlIcon, INITIAL_SEGMENTER_STATE, IdentityPurchase, IdentityStatus, IdentityStep, type IdentityVerificationApi, IdentityVerificationFlow, ImageCropModal, type ImageCropModalProps, ImageCropper, type ImageCropperProps, ImgIcon, InlineMicButton, type InlineMicButtonProps, LinkedInIcon, MAIL_DRAFT_REPLACED_EVENT, MAX_AVATAR_FILE_BYTES, type MailAccount, type MailAddress, type MailAttachment, type MailClient, type MailClientContextValue, MailClientProvider, type MailClientProviderProps, type MailCompose, type MailDeliveryRecipient, type MailDeliveryStatus, type MailDeviceFallback, type MailDraftEditorRequest, type MailDraftEditorSession, type MailFetch, type MailFolder, type MailMessage, type MailMessageUpdate, MailOfflineUnavailableError, type MailPage, type MailPolicy, type MailProject, type MessageArtifact, MessageArtifactCard, MessageBubble, type MessageBubbleProps, MessageThread, type MessageThreadProps, MicRecordingOverlay, type MicRecordingOverlayProps, MicWaveformIndicator, type MicWaveformIndicatorProps, type MountDiditOptions, type NameEditor, type NotificationPreferencesModel, type NotificationTypeMeta, OpenAIIcon, PROJECT_CREATION_DENIED_REASON, type PaletteNavItem, type ParsedChunk, type ParsedChunkMetadata, type ParsedDocument, type ParsedDocumentMetadata, type PasswordChangeForm, type PasswordChangeFormMessages, type PasswordChangeVars, PdfIcon, PhotoCapture, type PhotoCaptureProps, type ProfileView, type ProjectsUsageAggregate, ProviderIcon, RUN_WINDOW_MS, type RecordedChunk, type RelevancePatch, type RenderMarkdown, type SaveAgentConfigVars, type SearchChunk, type SegmenterConfig, type SegmenterEvent, type SegmenterState, SemanticSearch, type SemanticSearchProps, type ShellRecentWorkspaceItem, type ShellWorkspaceItem, type ShellWorkspaceKind, type ShellWorkspaceMember, type ShellWorkspaceSeed, type ShellWorkspaceSource, StartByEmail, type StartByEmailLabels, type StartByEmailProps, type ThreadAccessors, type ThreadItem, type ToolResponses, TxtIcon, TypingIndicator, type UpdateProfileVars, type UsageTotals, type UseArbiChatOptions, type UseArbiShellWorkspacesOptions, type UseAudioRecorderOptions, type UseAudioRecorderResult, type UseAvatarCropOptions, type UseCameraStreamResult, type UseDeleteAccountFlowOptions, type UseDirectMessagesResult, type UseEmailChangeOptions, type UseIdentityVerificationFlowOptions, type UseNameEditorOptions, type UsePasswordChangeFormOptions, type UseShellWorkspacesOptions, type UseShellWorkspacesResult, type UseVideoRecorderResult, VIDEO_MIME_PREFERENCE, VidIcon, VideoCapture, type VideoCaptureProps, type VideoRecorderState, VoiceNoteRecorder, type VoiceNoteRecorderProps, type WorkspaceNotificationLevel, XlsIcon, accountPath, aliasTakenMessage, annotateThread, announceMailDraftReplaced, arbiAccountClient, arbiMailClient, arbiQueryKeys, captureFrameAsBlob, classifyMediaError, createArbiSessionStore, createChunkedRecorder, createMailClient, cropImage, dayKey, defaultMailAlias, describeActivity, downloadRecoveryFile, fileAttachment, flushSegmenter, formatElapsed, formatIdentityPrice, formatRelativeTime, getNotificationTypeMeta, getWorkspaceActionText, getWorkspaceKind, getWorkspaceSentPhrase, hasVideoTrack, identityStepFor, invalidateTagData, isAliasTakenError, isUsageMetered, isWorkspaceNotificationType, levelFromRms, mailDraftIdFromContent, mailJson, mailQueryKeys, mountDiditVerification, nextAliasSuggestion, nextViewingDocument, parseActivityContent, parseDeleteAccountBlockers, pickRecentWorkspaces, pickRecorderMimeType, redlineStats, resolveActiveWorkspace, selectIsGenerating, selectViewingDocumentId, stepSegmenter, textToArtifact, titleFromQuestion, toChatCitations, toNotificationPreferences, toProfileView, toRedlineMarkdown, toShellWorkspace, useAccountClient, useActOnStep, useActivity, useAgentChats, useAgentConfig, useAgentModels, useAgentSession, useAgentWorkspaces, useAgents, useAiTask, useArbi, useArbiChat, useArbiConnected, useArbiDocumentSync, useArbiSessionState, useArbiSessionStore, useArbiShellWorkspaces, useArbiWebSocket, useArbiWsContext, useArbiWsMessage, useArbiWsStatus, useArbiWsStore, useArbiWsTask, useArbiWsTasks, useAssistantQuery, useAudioRecorder, useAuthorizeLimits, useAvatarCrop, useCameraStream, useCanCreateProjects, useClaimNativeAlias, useCloseAgentSession, useCommandPalette, useConfigs, useConfirmEmailChange, useConnectMailAccount, useContacts, useConversationActivity, useConversationPendingAuth, useConversationThreads, useConversationUsage, useConversations, useCreateAgent, useCreateContact, useCreateWork, useCreateWorkflow, useCurrentSessionId, useCurrentUser, useDeleteAccount, useDeleteAccountFlow, useDeleteAgents, useDeleteContact, useDeleteWorkflow, useDeploymentDomain, useDirectMessages, useDisconnectMailAccount, useDocuments, useEmailChange, useFacts, useFilteredProjects, useFirmPool, useFollowThread, useGenerateAgentAvatar, useGrantAgentAccess, useHealth, useIdentityVerification, useIdentityVerificationFlow, useInvalidateTagData, useInviteContacts, useMailAccounts, useMailCache, useMailClient, useMailDraftCompose, useMailDraftEditor, useMailDraftReplaced, useMailFolders, useMailMessage, useMailMessages, useMailOnline, useMailPolicy, useMailProjects, useMailUnlock, useMcpTools, useNameEditor, useNotificationPreferences, useParsedDocument, usePasswordChange, usePasswordChangeForm, usePendingContacts, usePlanWork, useProfile, useProjectConversationUsage, useProjectEvents, useProjectInvoices, useProjectUsage, useProjects, useProjectsUsage, useRequestEmailChange, useRevokeAgentAccess, useRunConversation, useRunWorkflow, useSaveAgentConfig, useSaveMailDraft, useSemanticSearch, useSendBackStep, useSendMail, useSessions, useSetTagValues, useShellWorkspaces, useSignOut, useSkills, useStartAgentSession, useStartWorkQuery, useTagKindSchema, useTags, useTerminateSession, useThumbnails, useTopUpFirmPool, useUpdateContact, useUpdateConversation, useUpdateMailMessage, useUpdateProfile, useUpdateProjectFields, useUpdateTagKindSchema, useUpdateWorkflow, useUploadSkillFiles, useUserSettings, useUserUsageToday, useVideoRecorder, useWorkNotifications, useWorkflows, useWorkspaceActivity, useWorkspaceDocs, useWorkspaceNotificationLevel, useWorkspaceUsers, useWorkspaces, userDisplayName, userInitials, workflowStepOf };
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as React$1 from 'react';
2
2
  import React__default, { ReactNode, ComponentType } from 'react';
3
3
  import * as _arbidocs_sdk_browser from '@arbidocs/sdk/browser';
4
- import { ArbiOptions, QueryOptions, Arbi, SSEStreamResult, SSEStreamStartData, UserMessageEvent, MessageMetadataPayload, ResponseOutputItemDoneEvent, ArtifactEvent, TagListQuery, StepActionRequest, UpdateConversationRequest, UpdateWorkflowRequest, TagKind, TagKindSchema, TagFieldDefinition, ProjectEventKind, ProjectUpdateRequest, contacts, LoginProfile, settings, DecryptedChatMessage } from '@arbidocs/sdk/browser';
4
+ import { Arbi, ArbiOptions, QueryOptions, SSEStreamResult, SSEStreamStartData, UserMessageEvent, MessageMetadataPayload, ResponseOutputItemDoneEvent, ArtifactEvent, TagListQuery, StepActionRequest, UpdateConversationRequest, UpdateWorkflowRequest, TagKind, TagKindSchema, TagFieldDefinition, ProjectEventKind, ProjectUpdateRequest, contacts, LoginProfile, settings, DecryptedChatMessage } from '@arbidocs/sdk/browser';
5
5
  export { ActivityKind, ActivityResponse, AgentStepEvent, Arbi, ArbiError, ArbiOptions, ArtifactEvent, AuthMode, ConversationResponse, CreateFactRequest, CreateWorkRequest, CreateWorkflowRequest, DEFAULT_AI_USD_PER_GBP, FactResponse, FactSearchRequest, FactSearchResponse, LoginProfile, MessageMetadataPayload, OutputTokensDetails, PendingAuthResponse, PlanWorkRequest, ProjectInvoicesResponse, ProjectUsageResponse, QueryOptions, ResponseCompletedEvent, ResponseContentPartAddedEvent, ResponseCreatedEvent, ResponseFailedEvent, ResponseOutputItemAddedEvent, ResponseOutputItemDoneEvent, ResponseOutputTextDeltaEvent, ResponseOutputTextDoneEvent, ResponseUsage, SSEStreamCallbacks, SSEStreamResult, SSEStreamStartData, SkillSummary, TaskPlan, UpdateConversationRequest, UpdateWorkflowRequest, UserDailyUsageResponse, UserInputRequestEvent, UserMessageEvent, WorkStatus, WorkflowAuthMode, WorkflowResponse, WorkflowRunResponse, formatGbp, formatGbpPerMillionTokens, usdToGbp } from '@arbidocs/sdk/browser';
6
6
  import * as _arbidocs_client from '@arbidocs/client';
7
7
  import { WebSocketServerMessage, WsTaskUpdateMessage, WsPresenceUpdateMessage, components, RecoveryKeyParams } from '@arbidocs/client';
@@ -16,7 +16,7 @@ import { VerificationResult } from '@didit-protocol/sdk-web';
16
16
  import { LucideIcon } from 'lucide-react';
17
17
  import { Components } from 'react-markdown';
18
18
  export { D as DraftCleanReport, a as DraftCleanStage, c as cleanDraftMarkdown, b as cleanDraftWithReport, p as promoteBoldTitle, r as repairParsedStructure, d as repairParsedTitle, s as stripAgentPreamble, u as unescapeMarkdown, e as unwrapCitationLinks } from './stored-markdown-Bp18vrbr.js';
19
- export { A as AppNotification, D as DEFAULT_NOTIFY_TONE, N as NotificationBell, a as NotificationBellProps, b as NotificationBellTriggerState, c as NotifyOptions, d as NotifyVariant, T as Toaster, n as notify, s as seedNotifications, e as selectUnread, u as useNotify } from './index-C7OqcKY3.js';
19
+ export { A as AppNotification, D as DEFAULT_NOTIFY_TONE, N as NotificationBell, a as NotificationBellProps, b as NotificationBellTriggerState, c as NotifyOptions, d as NotifyVariant, T as Toaster, n as notify, s as seedNotifications, e as selectUnread, u as useNotify } from './index-D8NvRj3J.js';
20
20
  import { ColDef } from 'ag-grid-community';
21
21
  export { ToasterProps, toast } from 'sonner';
22
22
  import 'clsx';
@@ -41,10 +41,12 @@ import '@radix-ui/react-toggle';
41
41
  import '@radix-ui/react-toggle-group';
42
42
  import 'rehype-sanitize';
43
43
 
44
- interface ArbiProviderProps extends ArbiOptions {
44
+ type ArbiProviderProps = {
45
45
  children: ReactNode;
46
- }
47
- declare function ArbiProvider({ children, ...options }: ArbiProviderProps): React$1.JSX.Element;
46
+ } & ({
47
+ arbi: Arbi;
48
+ } | ArbiOptions);
49
+ declare function ArbiProvider({ children, ...props }: ArbiProviderProps): React$1.JSX.Element;
48
50
 
49
51
  interface ArbiChatPassage {
50
52
  id: string;
@@ -580,6 +582,11 @@ declare const arbiQueryKeys: {
580
582
  /** An agent's pinned config; `undefined` = the library default config. */
581
583
  agentConfig: (agentExtId?: string) => readonly ["arbi", "agentConfig", string];
582
584
  agentWorkspaces: (agentExtId: string) => readonly ["arbi", "agentWorkspaces", string];
585
+ /** An agent's own login, polled while its controls are open. */
586
+ agentSession: (agentExtId: string) => readonly ["arbi", "agentSession", string];
587
+ agentChats: (agentExtId: string) => readonly ["arbi", "agentChats", string];
588
+ authorizeLimits: () => readonly ["arbi", "authorizeLimits"];
589
+ mcpTools: () => readonly ["arbi", "mcpTools"];
583
590
  models: () => readonly ["arbi", "models"];
584
591
  /** The signed-in user's own profile (name, picture, email). */
585
592
  profile: () => readonly ["arbi", "profile"];
@@ -2603,6 +2610,33 @@ declare function useCreateAgent(): _tanstack_react_query.UseMutationResult<{
2603
2610
  is_identity_verified: boolean;
2604
2611
  signing_private_key: string;
2605
2612
  }, Error, string, unknown>;
2613
+ /**
2614
+ * Generate an avatar for an owned agent from a prompt and set it as its picture. Resolves with the
2615
+ * agent (`picture` set); the agent list refreshes.
2616
+ */
2617
+ declare function useGenerateAgentAvatar(): _tanstack_react_query.UseMutationResult<{
2618
+ picture: string;
2619
+ }, Error, {
2620
+ agentExtId: string;
2621
+ prompt: string;
2622
+ }, unknown>;
2623
+ /** The default and maximum lifetime of a temporary agent authorization (seconds). */
2624
+ declare function useAuthorizeLimits(options?: {
2625
+ enabled?: boolean;
2626
+ }): _tanstack_react_query.UseQueryResult<NoInfer<{
2627
+ default_ttl_seconds: number;
2628
+ max_ttl_seconds: number;
2629
+ }>, Error>;
2630
+ /** The MCP tools registered on the deployment, for an agent's tool picker. */
2631
+ declare function useMcpTools(options?: {
2632
+ enabled?: boolean;
2633
+ }): _tanstack_react_query.UseQueryResult<NoInfer<{
2634
+ tools: {
2635
+ name: string;
2636
+ description: string;
2637
+ server_name: string;
2638
+ }[];
2639
+ }>, Error>;
2606
2640
  /**
2607
2641
  * An agent's pinned config (persona, model, tool switches), or the library default config when
2608
2642
  * `agentExtId` is omitted: edit forms seed from the first, create forms from the second.
@@ -2745,6 +2779,7 @@ declare function useAgentChats(agentId: string | undefined): _tanstack_react_que
2745
2779
  title: string;
2746
2780
  updated_at: string;
2747
2781
  }[]>, Error>;
2782
+ /** Log an owned agent in on its own (optionally into a workspace). */
2748
2783
  declare function useStartAgentSession(): _tanstack_react_query.UseMutationResult<{
2749
2784
  backend: string;
2750
2785
  active: boolean;
@@ -2754,6 +2789,7 @@ declare function useStartAgentSession(): _tanstack_react_query.UseMutationResult
2754
2789
  agentId: string;
2755
2790
  workspaceId?: string;
2756
2791
  }, unknown>;
2792
+ /** Log an owned agent out. */
2757
2793
  declare function useCloseAgentSession(): _tanstack_react_query.UseMutationResult<void, Error, string, unknown>;
2758
2794
 
2759
2795
  /** Refresh what a tag, doctag or fact change affects: the workspace's tags, tables and facts. */
@@ -3824,12 +3860,17 @@ declare function useWorkspaceNotificationLevel(workspaceId: string | null | unde
3824
3860
  isSaving: boolean;
3825
3861
  error: Error | null;
3826
3862
  };
3863
+ /** What the host does once a follow switch is saved or refused (e.g. a toast: nothing else shows). */
3864
+ interface FollowSaveCallbacks {
3865
+ onSuccess?: () => void;
3866
+ onError?: (error: Error) => void;
3867
+ }
3827
3868
  /** Whether the user follows a thread (pushed everything in it), and the switch. */
3828
3869
  declare function useFollowThread(conversationId: string | null | undefined, options?: {
3829
3870
  enabled?: boolean;
3830
3871
  }): {
3831
3872
  following: boolean;
3832
- setFollowing: (on: boolean) => void;
3873
+ setFollowing: (on: boolean, callbacks?: FollowSaveCallbacks) => void;
3833
3874
  isLoading: boolean;
3834
3875
  isSaving: boolean;
3835
3876
  error: Error | null;
@@ -6275,8 +6316,8 @@ declare function useCommandPalette(): CommandPaletteValue;
6275
6316
  * REUSE-FIRST: this composes AG Grid + `DocumentEntity`/`TagEntity` + the shadcn
6276
6317
  * `Badge`; it is not a bespoke table. Data comes from the SDK `useDocuments`
6277
6318
  * hook (or an explicit `documents` prop). Selection is controlled via
6278
- * `selectedIds`/`onSelectionChange`, falling back to the SDK-owned
6279
- * `useArbiUiStore` when those props are omitted.
6319
+ * `selectedIds`/`onSelectionChange`, falling back to
6320
+ * the session state (`useArbiSessionState`) when those props are omitted.
6280
6321
  */
6281
6322
 
6282
6323
  type DocResponse$2 = components['schemas']['DocResponse'];
@@ -6338,7 +6379,7 @@ declare function DocumentCardMenu({ docId, fileName, onOpen, onRename, canDelete
6338
6379
  * DocumentGallery — a reusable thumbnail-grid view of a workspace's documents.
6339
6380
  *
6340
6381
  * REUSE-FIRST: a sibling of `DocumentTable` sharing the exact same data sources
6341
- * (`useDocuments` + `useTags` + the SDK-owned `useArbiUiStore` selection state).
6382
+ * (`useDocuments` + `useTags` + the session state's selection).
6342
6383
  * The only extra dependency is `useThumbnails`, which batch-loads real first-page
6343
6384
  * previews. Each tile is a `DocumentCard`; this component only binds it to data.
6344
6385
  */
@@ -6930,20 +6971,104 @@ declare function VideoCapture({ onSave, onDiscard, onError, isSaving }: VideoCap
6930
6971
  declare function hasVideoTrack(blob: Blob): Promise<boolean>;
6931
6972
 
6932
6973
  /**
6933
- * SDK-owned UI store for cross-block coordination.
6974
+ * The session state every block reads and writes: the selected workspace, the current conversation,
6975
+ * the document being viewed, the document selection, generation per conversation, Personal
6976
+ * Assistant mode and the documents in each conversation.
6934
6977
  *
6935
- * This is a SMALL, decoupled zustand store (NOT the ARBI app's multi-slice
6936
- * store). Blocks such as `DocumentTable` use it as a fallback for selection /
6937
- * "viewing" state when the consumer does not drive that state via props.
6938
- */
6939
- interface ArbiUiState {
6940
- /** External ids of the currently selected documents. */
6941
- selectedDocIds: string[];
6942
- setSelectedDocIds: (ids: string[]) => void;
6943
- /** External id of the document currently being viewed/opened, if any. */
6944
- viewingDocId: string | null;
6945
- setViewingDocId: (id: string | null) => void;
6978
+ * An {@link ArbiSessionStore} is the adapter a host provides through `ArbiSessionStateProvider`:
6979
+ * a host with its own state (ARBI-frontend's zustand store) maps its fields onto
6980
+ * {@link ArbiSessionState} and its actions onto the setters, so there is one source of truth.
6981
+ * Other hosts use {@link createArbiSessionStore}, an in-memory store.
6982
+ */
6983
+ /** The document being viewed. */
6984
+ interface ArbiViewingDocument {
6985
+ /** The document (`doc-…`), or a version reference (`doc-…@v2`) while an earlier version shows. */
6986
+ id: string;
6987
+ /** The page being read, when known. */
6988
+ page: number | null;
6989
+ /** The passage being read, when one is. */
6990
+ passageId: string | null;
6946
6991
  }
6947
- declare const useArbiUiStore: zustand.UseBoundStore<zustand.StoreApi<ArbiUiState>>;
6992
+ /** Generation in one conversation. */
6993
+ interface ArbiConversationGeneration {
6994
+ isGenerating: boolean;
6995
+ error: string | null;
6996
+ /** When the running turn started (epoch ms). */
6997
+ startTime: number | null;
6998
+ }
6999
+ /** A document in a conversation's context; a pinned one stays there across turns. */
7000
+ interface ArbiConversationDocument {
7001
+ docId: string;
7002
+ isPinned: boolean;
7003
+ }
7004
+ interface ArbiSessionState {
7005
+ /** The selected workspace (`wrk-…`). */
7006
+ workspaceId: string | null;
7007
+ /** The open conversation, or null for a new one / none. */
7008
+ conversationId: string | null;
7009
+ viewingDocument: ArbiViewingDocument | null;
7010
+ /** The documents selected in document lists. */
7011
+ selectedDocumentIds: readonly string[];
7012
+ /** Generation state per conversation id. */
7013
+ generating: Readonly<Record<string, ArbiConversationGeneration>>;
7014
+ /** Personal Assistant mode for new conversations. */
7015
+ paMode: boolean;
7016
+ /** The documents in each conversation's context, per conversation id. */
7017
+ conversationDocuments: Readonly<Record<string, readonly ArbiConversationDocument[]>>;
7018
+ }
7019
+ /** What to view: page and passage are left unchanged when omitted. */
7020
+ interface ArbiViewingDocumentInput {
7021
+ id: string;
7022
+ page?: number | null;
7023
+ passageId?: string | null;
7024
+ }
7025
+ interface ArbiSessionStore {
7026
+ /** The current state. The same object until something in it changes. */
7027
+ getState(): ArbiSessionState;
7028
+ /** Be told when the state may have changed. Returns the unsubscribe. */
7029
+ subscribe(listener: () => void): () => void;
7030
+ setWorkspaceId(id: string | null): void;
7031
+ setConversationId(id: string | null): void;
7032
+ /**
7033
+ * View a document, or none. Viewing another document resets the page; `page` and `passageId`
7034
+ * set them when given.
7035
+ */
7036
+ setViewingDocument(document: ArbiViewingDocumentInput | null): void;
7037
+ setSelectedDocumentIds(ids: string[]): void;
7038
+ setConversationGenerating(conversationId: string, isGenerating: boolean): void;
7039
+ setPaMode(enabled: boolean): void;
7040
+ setConversationDocuments(conversationId: string, documents: ArbiConversationDocument[]): void;
7041
+ }
7042
+ declare const EMPTY_SESSION_STATE: ArbiSessionState;
7043
+ /** The viewed document itself (`doc-…`), also while one of its earlier versions is on screen. */
7044
+ declare const selectViewingDocumentId: (state: ArbiSessionState) => string | null;
7045
+ /** Whether `conversationId` is generating. */
7046
+ declare const selectIsGenerating: (conversationId: string | null | undefined) => (state: ArbiSessionState) => boolean;
7047
+ /** The next viewing document, given the current one (shared by every store implementation). */
7048
+ declare function nextViewingDocument(current: ArbiViewingDocument | null, input: ArbiViewingDocumentInput | null): ArbiViewingDocument | null;
7049
+ /** An in-memory session store: the default for hosts without state of their own. */
7050
+ declare function createArbiSessionStore(initial?: Partial<ArbiSessionState>): ArbiSessionStore;
7051
+
7052
+ /**
7053
+ * The session state the blocks below share (see `./store`). A host passes its own
7054
+ * {@link ArbiSessionStore} (ARBI-frontend backs it with its zustand store). Without `store` the
7055
+ * provider uses the one above it, else keeps an in-memory one, so a kit (`ConnectionProvider`) can
7056
+ * always mount one and still share the host's. Blocks rendered with no provider above share a
7057
+ * module default, so a standalone block still coordinates with its siblings.
7058
+ */
7059
+
7060
+ interface ArbiSessionStateProviderProps {
7061
+ /** The host's session state. Omitted: the enclosing provider's, else an in-memory one. */
7062
+ store?: ArbiSessionStore;
7063
+ children: ReactNode;
7064
+ }
7065
+ declare function ArbiSessionStateProvider({ store, children, }: ArbiSessionStateProviderProps): React.ReactElement;
7066
+ /** The session store: its setters, and `getState()` for the state as of now (in callbacks). */
7067
+ declare function useArbiSessionStore(): ArbiSessionStore;
7068
+ /**
7069
+ * A slice of the session state; re-renders when it changes. The selector returns a value from the
7070
+ * state or a primitive (a new object each call would never settle).
7071
+ */
7072
+ declare function useArbiSessionState<T>(selector: (state: ArbiSessionState) => T): T;
6948
7073
 
6949
- export { AUDIO_MIME_PREFERENCE, type AccountClient, type AccountClientContextValue, AccountClientProvider, type AccountClientProviderProps, type AccountSession, type AccountSignOutOptions, type ActivityContent, type ActivityDescription, ActivityFeed, type ActivityFeedProps, type AgentAccessMode, type AgentConfigSections, type AggregatedDailyUsage, type AggregatedModelGroupUsage, AiActionCard, AiAnswer, type AiRunOptions, type AiTaskStatus, AppleIcon, ArbiBotHeadIcon, ArbiBotIcon, type ArbiChat, type ArbiChatCitation, type ArbiChatDocument, type ArbiChatMessage, type ArbiChatMessageStatus, type ArbiChatPassage, type ArbiChatRole, type ArbiChatThread, ArbiProvider, type ArbiProviderProps, type ArbiUiState, ArbiWebSocketProvider, type ArbiWebSocketProviderProps, type ArbiWsState, type ArbiWsStatus, ArtifactCanvas, type AspectOption, AudIcon, type AudioRecorderState, type AudioSegment, type AvatarCrop, type AvatarFileProblem, ChatBubble, type ChatBubbleProps, type Chunk, type ChunkActivation, type ChunkedRecorder, type ChunkedRecorderOptions, CitationRenderer, type CitationRendererProps, type CitationState, ClaudeIcon, CommandPalette, type CommandPaletteClassNames, type CommandPaletteProps, CommandPaletteProvider, type CommandPaletteProviderProps, type CommandPaletteValue, ConversationList, type ConversationListProps, type CropArea, type CropOutput, type CropResult, DEFAULT_ASPECT_OPTIONS, DEFAULT_PASSWORD_CHANGE_FORM_MESSAGES, DEFAULT_SEGMENTER_CONFIG, DEFAULT_START_BY_EMAIL_LABELS, DateSeparator, type DateSeparatorProps, type DeleteAccountBlocker, type DeleteAccountFlow, DirectMessages, type DirectMessagesProps, DmAvatar, type DmAvatarProps, type DmClassNames, DmComposer, type DmComposerProps, type DmConversation, type DmMessage, type DmUser, DocIcon, DocQaPanel, DocSearch, DocumentCardMenu, type DocumentCardMenuProps, DocumentGallery, type DocumentGalleryProps, DocumentReview, type DocumentReviewProps, DocumentTable, type DocumentTableProps, DraftTitleControls, type DraftTitleControlsProps, type EmailChange, type EmailPreferences, EmlIcon, EntityIconComponent, FILE_TYPE_COLORS, FileIcon, FireworksIcon, GeminiIcon, GitHubIcon, GoogleIcon, type GrantAgentAccessVars, HtmlIcon, INITIAL_SEGMENTER_STATE, IdentityPurchase, IdentityStatus, IdentityStep, type IdentityVerificationApi, IdentityVerificationFlow, ImageCropModal, type ImageCropModalProps, ImageCropper, type ImageCropperProps, ImgIcon, InlineMicButton, type InlineMicButtonProps, LinkedInIcon, MAIL_DRAFT_REPLACED_EVENT, MAX_AVATAR_FILE_BYTES, type MailAccount, type MailAddress, type MailAttachment, type MailClient, type MailClientContextValue, MailClientProvider, type MailClientProviderProps, type MailCompose, type MailDeliveryRecipient, type MailDeliveryStatus, type MailDeviceFallback, type MailDraftEditorRequest, type MailDraftEditorSession, type MailFetch, type MailFolder, type MailMessage, type MailMessageUpdate, MailOfflineUnavailableError, type MailPage, type MailPolicy, type MailProject, type MessageArtifact, MessageArtifactCard, MessageBubble, type MessageBubbleProps, MessageThread, type MessageThreadProps, MicRecordingOverlay, type MicRecordingOverlayProps, MicWaveformIndicator, type MicWaveformIndicatorProps, type MountDiditOptions, type NameEditor, type NotificationPreferencesModel, type NotificationTypeMeta, OpenAIIcon, PROJECT_CREATION_DENIED_REASON, type PaletteNavItem, type ParsedChunk, type ParsedChunkMetadata, type ParsedDocument, type ParsedDocumentMetadata, type PasswordChangeForm, type PasswordChangeFormMessages, type PasswordChangeVars, PdfIcon, PhotoCapture, type PhotoCaptureProps, type ProfileView, type ProjectsUsageAggregate, ProviderIcon, RUN_WINDOW_MS, type RecordedChunk, type RelevancePatch, type RenderMarkdown, type SaveAgentConfigVars, type SearchChunk, type SegmenterConfig, type SegmenterEvent, type SegmenterState, SemanticSearch, type SemanticSearchProps, type ShellRecentWorkspaceItem, type ShellWorkspaceItem, type ShellWorkspaceKind, type ShellWorkspaceMember, type ShellWorkspaceSeed, type ShellWorkspaceSource, StartByEmail, type StartByEmailLabels, type StartByEmailProps, type ThreadAccessors, type ThreadItem, type ToolResponses, TxtIcon, TypingIndicator, type UpdateProfileVars, type UsageTotals, type UseArbiChatOptions, type UseArbiShellWorkspacesOptions, type UseAudioRecorderOptions, type UseAudioRecorderResult, type UseAvatarCropOptions, type UseCameraStreamResult, type UseDeleteAccountFlowOptions, type UseDirectMessagesResult, type UseEmailChangeOptions, type UseIdentityVerificationFlowOptions, type UseNameEditorOptions, type UsePasswordChangeFormOptions, type UseShellWorkspacesOptions, type UseShellWorkspacesResult, type UseVideoRecorderResult, VIDEO_MIME_PREFERENCE, VidIcon, VideoCapture, type VideoCaptureProps, type VideoRecorderState, VoiceNoteRecorder, type VoiceNoteRecorderProps, type WorkspaceNotificationLevel, XlsIcon, accountPath, aliasTakenMessage, annotateThread, announceMailDraftReplaced, arbiAccountClient, arbiMailClient, arbiQueryKeys, captureFrameAsBlob, classifyMediaError, createChunkedRecorder, createMailClient, cropImage, dayKey, defaultMailAlias, describeActivity, downloadRecoveryFile, fileAttachment, flushSegmenter, formatElapsed, formatIdentityPrice, formatRelativeTime, getNotificationTypeMeta, getWorkspaceActionText, getWorkspaceKind, getWorkspaceSentPhrase, hasVideoTrack, identityStepFor, invalidateTagData, isAliasTakenError, isUsageMetered, isWorkspaceNotificationType, levelFromRms, mailDraftIdFromContent, mailJson, mailQueryKeys, mountDiditVerification, nextAliasSuggestion, parseActivityContent, parseDeleteAccountBlockers, pickRecentWorkspaces, pickRecorderMimeType, redlineStats, resolveActiveWorkspace, stepSegmenter, textToArtifact, titleFromQuestion, toChatCitations, toNotificationPreferences, toProfileView, toRedlineMarkdown, toShellWorkspace, useAccountClient, useActOnStep, useActivity, useAgentChats, useAgentConfig, useAgentModels, useAgentSession, useAgentWorkspaces, useAgents, useAiTask, useArbi, useArbiChat, useArbiConnected, useArbiDocumentSync, useArbiShellWorkspaces, useArbiUiStore, useArbiWebSocket, useArbiWsContext, useArbiWsMessage, useArbiWsStatus, useArbiWsStore, useArbiWsTask, useArbiWsTasks, useAssistantQuery, useAudioRecorder, useAvatarCrop, useCameraStream, useCanCreateProjects, useClaimNativeAlias, useCloseAgentSession, useCommandPalette, useConfigs, useConfirmEmailChange, useConnectMailAccount, useContacts, useConversationActivity, useConversationPendingAuth, useConversationThreads, useConversationUsage, useConversations, useCreateAgent, useCreateContact, useCreateWork, useCreateWorkflow, useCurrentSessionId, useCurrentUser, useDeleteAccount, useDeleteAccountFlow, useDeleteAgents, useDeleteContact, useDeleteWorkflow, useDeploymentDomain, useDirectMessages, useDisconnectMailAccount, useDocuments, useEmailChange, useFacts, useFilteredProjects, useFirmPool, useFollowThread, useGrantAgentAccess, useHealth, useIdentityVerification, useIdentityVerificationFlow, useInvalidateTagData, useInviteContacts, useMailAccounts, useMailCache, useMailClient, useMailDraftCompose, useMailDraftEditor, useMailDraftReplaced, useMailFolders, useMailMessage, useMailMessages, useMailOnline, useMailPolicy, useMailProjects, useMailUnlock, useNameEditor, useNotificationPreferences, useParsedDocument, usePasswordChange, usePasswordChangeForm, usePendingContacts, usePlanWork, useProfile, useProjectConversationUsage, useProjectEvents, useProjectInvoices, useProjectUsage, useProjects, useProjectsUsage, useRequestEmailChange, useRevokeAgentAccess, useRunConversation, useRunWorkflow, useSaveAgentConfig, useSaveMailDraft, useSemanticSearch, useSendBackStep, useSendMail, useSessions, useSetTagValues, useShellWorkspaces, useSignOut, useSkills, useStartAgentSession, useStartWorkQuery, useTagKindSchema, useTags, useTerminateSession, useThumbnails, useTopUpFirmPool, useUpdateContact, useUpdateConversation, useUpdateMailMessage, useUpdateProfile, useUpdateProjectFields, useUpdateTagKindSchema, useUpdateWorkflow, useUploadSkillFiles, useUserSettings, useUserUsageToday, useVideoRecorder, useWorkNotifications, useWorkflows, useWorkspaceActivity, useWorkspaceDocs, useWorkspaceNotificationLevel, useWorkspaceUsers, useWorkspaces, userDisplayName, userInitials, workflowStepOf };
7074
+ export { AUDIO_MIME_PREFERENCE, type AccountClient, type AccountClientContextValue, AccountClientProvider, type AccountClientProviderProps, type AccountSession, type AccountSignOutOptions, type ActivityContent, type ActivityDescription, ActivityFeed, type ActivityFeedProps, type AgentAccessMode, type AgentConfigSections, type AggregatedDailyUsage, type AggregatedModelGroupUsage, AiActionCard, AiAnswer, type AiRunOptions, type AiTaskStatus, AppleIcon, ArbiBotHeadIcon, ArbiBotIcon, type ArbiChat, type ArbiChatCitation, type ArbiChatDocument, type ArbiChatMessage, type ArbiChatMessageStatus, type ArbiChatPassage, type ArbiChatRole, type ArbiChatThread, type ArbiConversationDocument, type ArbiConversationGeneration, ArbiProvider, type ArbiProviderProps, type ArbiSessionState, ArbiSessionStateProvider, type ArbiSessionStateProviderProps, type ArbiSessionStore, type ArbiViewingDocument, type ArbiViewingDocumentInput, ArbiWebSocketProvider, type ArbiWebSocketProviderProps, type ArbiWsState, type ArbiWsStatus, ArtifactCanvas, type AspectOption, AudIcon, type AudioRecorderState, type AudioSegment, type AvatarCrop, type AvatarFileProblem, ChatBubble, type ChatBubbleProps, type Chunk, type ChunkActivation, type ChunkedRecorder, type ChunkedRecorderOptions, CitationRenderer, type CitationRendererProps, type CitationState, ClaudeIcon, CommandPalette, type CommandPaletteClassNames, type CommandPaletteProps, CommandPaletteProvider, type CommandPaletteProviderProps, type CommandPaletteValue, ConversationList, type ConversationListProps, type CropArea, type CropOutput, type CropResult, DEFAULT_ASPECT_OPTIONS, DEFAULT_PASSWORD_CHANGE_FORM_MESSAGES, DEFAULT_SEGMENTER_CONFIG, DEFAULT_START_BY_EMAIL_LABELS, DateSeparator, type DateSeparatorProps, type DeleteAccountBlocker, type DeleteAccountFlow, DirectMessages, type DirectMessagesProps, DmAvatar, type DmAvatarProps, type DmClassNames, DmComposer, type DmComposerProps, type DmConversation, type DmMessage, type DmUser, DocIcon, DocQaPanel, DocSearch, DocumentCardMenu, type DocumentCardMenuProps, DocumentGallery, type DocumentGalleryProps, DocumentReview, type DocumentReviewProps, DocumentTable, type DocumentTableProps, DraftTitleControls, type DraftTitleControlsProps, EMPTY_SESSION_STATE, type EmailChange, type EmailPreferences, EmlIcon, EntityIconComponent, FILE_TYPE_COLORS, FileIcon, FireworksIcon, type FollowSaveCallbacks, GeminiIcon, GitHubIcon, GoogleIcon, type GrantAgentAccessVars, HtmlIcon, INITIAL_SEGMENTER_STATE, IdentityPurchase, IdentityStatus, IdentityStep, type IdentityVerificationApi, IdentityVerificationFlow, ImageCropModal, type ImageCropModalProps, ImageCropper, type ImageCropperProps, ImgIcon, InlineMicButton, type InlineMicButtonProps, LinkedInIcon, MAIL_DRAFT_REPLACED_EVENT, MAX_AVATAR_FILE_BYTES, type MailAccount, type MailAddress, type MailAttachment, type MailClient, type MailClientContextValue, MailClientProvider, type MailClientProviderProps, type MailCompose, type MailDeliveryRecipient, type MailDeliveryStatus, type MailDeviceFallback, type MailDraftEditorRequest, type MailDraftEditorSession, type MailFetch, type MailFolder, type MailMessage, type MailMessageUpdate, MailOfflineUnavailableError, type MailPage, type MailPolicy, type MailProject, type MessageArtifact, MessageArtifactCard, MessageBubble, type MessageBubbleProps, MessageThread, type MessageThreadProps, MicRecordingOverlay, type MicRecordingOverlayProps, MicWaveformIndicator, type MicWaveformIndicatorProps, type MountDiditOptions, type NameEditor, type NotificationPreferencesModel, type NotificationTypeMeta, OpenAIIcon, PROJECT_CREATION_DENIED_REASON, type PaletteNavItem, type ParsedChunk, type ParsedChunkMetadata, type ParsedDocument, type ParsedDocumentMetadata, type PasswordChangeForm, type PasswordChangeFormMessages, type PasswordChangeVars, PdfIcon, PhotoCapture, type PhotoCaptureProps, type ProfileView, type ProjectsUsageAggregate, ProviderIcon, RUN_WINDOW_MS, type RecordedChunk, type RelevancePatch, type RenderMarkdown, type SaveAgentConfigVars, type SearchChunk, type SegmenterConfig, type SegmenterEvent, type SegmenterState, SemanticSearch, type SemanticSearchProps, type ShellRecentWorkspaceItem, type ShellWorkspaceItem, type ShellWorkspaceKind, type ShellWorkspaceMember, type ShellWorkspaceSeed, type ShellWorkspaceSource, StartByEmail, type StartByEmailLabels, type StartByEmailProps, type ThreadAccessors, type ThreadItem, type ToolResponses, TxtIcon, TypingIndicator, type UpdateProfileVars, type UsageTotals, type UseArbiChatOptions, type UseArbiShellWorkspacesOptions, type UseAudioRecorderOptions, type UseAudioRecorderResult, type UseAvatarCropOptions, type UseCameraStreamResult, type UseDeleteAccountFlowOptions, type UseDirectMessagesResult, type UseEmailChangeOptions, type UseIdentityVerificationFlowOptions, type UseNameEditorOptions, type UsePasswordChangeFormOptions, type UseShellWorkspacesOptions, type UseShellWorkspacesResult, type UseVideoRecorderResult, VIDEO_MIME_PREFERENCE, VidIcon, VideoCapture, type VideoCaptureProps, type VideoRecorderState, VoiceNoteRecorder, type VoiceNoteRecorderProps, type WorkspaceNotificationLevel, XlsIcon, accountPath, aliasTakenMessage, annotateThread, announceMailDraftReplaced, arbiAccountClient, arbiMailClient, arbiQueryKeys, captureFrameAsBlob, classifyMediaError, createArbiSessionStore, createChunkedRecorder, createMailClient, cropImage, dayKey, defaultMailAlias, describeActivity, downloadRecoveryFile, fileAttachment, flushSegmenter, formatElapsed, formatIdentityPrice, formatRelativeTime, getNotificationTypeMeta, getWorkspaceActionText, getWorkspaceKind, getWorkspaceSentPhrase, hasVideoTrack, identityStepFor, invalidateTagData, isAliasTakenError, isUsageMetered, isWorkspaceNotificationType, levelFromRms, mailDraftIdFromContent, mailJson, mailQueryKeys, mountDiditVerification, nextAliasSuggestion, nextViewingDocument, parseActivityContent, parseDeleteAccountBlockers, pickRecentWorkspaces, pickRecorderMimeType, redlineStats, resolveActiveWorkspace, selectIsGenerating, selectViewingDocumentId, stepSegmenter, textToArtifact, titleFromQuestion, toChatCitations, toNotificationPreferences, toProfileView, toRedlineMarkdown, toShellWorkspace, useAccountClient, useActOnStep, useActivity, useAgentChats, useAgentConfig, useAgentModels, useAgentSession, useAgentWorkspaces, useAgents, useAiTask, useArbi, useArbiChat, useArbiConnected, useArbiDocumentSync, useArbiSessionState, useArbiSessionStore, useArbiShellWorkspaces, useArbiWebSocket, useArbiWsContext, useArbiWsMessage, useArbiWsStatus, useArbiWsStore, useArbiWsTask, useArbiWsTasks, useAssistantQuery, useAudioRecorder, useAuthorizeLimits, useAvatarCrop, useCameraStream, useCanCreateProjects, useClaimNativeAlias, useCloseAgentSession, useCommandPalette, useConfigs, useConfirmEmailChange, useConnectMailAccount, useContacts, useConversationActivity, useConversationPendingAuth, useConversationThreads, useConversationUsage, useConversations, useCreateAgent, useCreateContact, useCreateWork, useCreateWorkflow, useCurrentSessionId, useCurrentUser, useDeleteAccount, useDeleteAccountFlow, useDeleteAgents, useDeleteContact, useDeleteWorkflow, useDeploymentDomain, useDirectMessages, useDisconnectMailAccount, useDocuments, useEmailChange, useFacts, useFilteredProjects, useFirmPool, useFollowThread, useGenerateAgentAvatar, useGrantAgentAccess, useHealth, useIdentityVerification, useIdentityVerificationFlow, useInvalidateTagData, useInviteContacts, useMailAccounts, useMailCache, useMailClient, useMailDraftCompose, useMailDraftEditor, useMailDraftReplaced, useMailFolders, useMailMessage, useMailMessages, useMailOnline, useMailPolicy, useMailProjects, useMailUnlock, useMcpTools, useNameEditor, useNotificationPreferences, useParsedDocument, usePasswordChange, usePasswordChangeForm, usePendingContacts, usePlanWork, useProfile, useProjectConversationUsage, useProjectEvents, useProjectInvoices, useProjectUsage, useProjects, useProjectsUsage, useRequestEmailChange, useRevokeAgentAccess, useRunConversation, useRunWorkflow, useSaveAgentConfig, useSaveMailDraft, useSemanticSearch, useSendBackStep, useSendMail, useSessions, useSetTagValues, useShellWorkspaces, useSignOut, useSkills, useStartAgentSession, useStartWorkQuery, useTagKindSchema, useTags, useTerminateSession, useThumbnails, useTopUpFirmPool, useUpdateContact, useUpdateConversation, useUpdateMailMessage, useUpdateProfile, useUpdateProjectFields, useUpdateTagKindSchema, useUpdateWorkflow, useUploadSkillFiles, useUserSettings, useUserUsageToday, useVideoRecorder, useWorkNotifications, useWorkflows, useWorkspaceActivity, useWorkspaceDocs, useWorkspaceNotificationLevel, useWorkspaceUsers, useWorkspaces, userDisplayName, userInitials, workflowStepOf };