@arbidocs/react 0.4.153 → 0.4.155

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 (37) hide show
  1. package/dist/artifacts/index.cjs +20 -20
  2. package/dist/artifacts/index.js +3 -3
  3. package/dist/{chunk-YYTX3W6C.js → chunk-2HNEVAXO.js} +68 -3
  4. package/dist/chunk-2HNEVAXO.js.map +1 -0
  5. package/dist/{chunk-I7UUV7FP.cjs → chunk-37TQBT7Y.cjs} +14 -3
  6. package/dist/chunk-37TQBT7Y.cjs.map +1 -0
  7. package/dist/{chunk-KD7CKXWQ.js → chunk-6FGO7SCY.js} +182 -42
  8. package/dist/chunk-6FGO7SCY.js.map +1 -0
  9. package/dist/{chunk-OKDZDDJM.js → chunk-HKIR456G.js} +15 -4
  10. package/dist/chunk-HKIR456G.js.map +1 -0
  11. package/dist/{chunk-L57RRAII.cjs → chunk-QKNJ6FRD.cjs} +71 -2
  12. package/dist/chunk-QKNJ6FRD.cjs.map +1 -0
  13. package/dist/{chunk-L66ZJ2UI.cjs → chunk-VKWGRGY6.cjs} +188 -40
  14. package/dist/chunk-VKWGRGY6.cjs.map +1 -0
  15. package/dist/document-tools/index.cjs +41 -93
  16. package/dist/document-tools/index.cjs.map +1 -1
  17. package/dist/document-tools/index.js +3 -67
  18. package/dist/document-tools/index.js.map +1 -1
  19. package/dist/{index-BV7pBlgY.d.ts → index-CDTwtUr9.d.cts} +89 -1
  20. package/dist/{index-BV7pBlgY.d.cts → index-CDTwtUr9.d.ts} +89 -1
  21. package/dist/index.cjs +850 -457
  22. package/dist/index.cjs.map +1 -1
  23. package/dist/index.d.cts +193 -3
  24. package/dist/index.d.ts +193 -3
  25. package/dist/index.js +350 -9
  26. package/dist/index.js.map +1 -1
  27. package/dist/ui/index.cjs +193 -161
  28. package/dist/ui/index.d.cts +1 -1
  29. package/dist/ui/index.d.ts +1 -1
  30. package/dist/ui/index.js +2 -2
  31. package/package.json +7 -5
  32. package/dist/chunk-I7UUV7FP.cjs.map +0 -1
  33. package/dist/chunk-KD7CKXWQ.js.map +0 -1
  34. package/dist/chunk-L57RRAII.cjs.map +0 -1
  35. package/dist/chunk-L66ZJ2UI.cjs.map +0 -1
  36. package/dist/chunk-OKDZDDJM.js.map +0 -1
  37. package/dist/chunk-YYTX3W6C.js.map +0 -1
package/dist/index.js CHANGED
@@ -1,17 +1,17 @@
1
- import { arbiMutationKeys, replayableTagMutations, patchDocuments, setCachedDocument, adjustTagCounts, arbiQueryKeys, patchCachedDocument, useDocuments, useConversations, useAssistantQuery, useConversationThreads, refreshDocuments, FINISHED_DOCUMENT_STATUSES, useWorkspaces, forgetDocuments, getCachedDocuments, useActivity, useTags, useThumbnails, useParsedDocument } from './chunk-OKDZDDJM.js';
2
- export { DOCUMENTS_FIRST_PAGE_MEASURE, DOCUMENTS_FIRST_PAGE_SIZE, DOCUMENTS_PAGE_SIZE, FINISHED_DOCUMENT_STATUSES, PROJECT_CREATION_DENIED_REASON, SIMILARITY_THRESHOLD, adjustTagCounts, arbiMutationKeys, arbiQueryKeys, forgetDocuments, getCachedDocuments, invalidateTagData, invalidateTagTables, isDocumentsLoading, isUsageMetered, patchCachedDocument, patchDocuments, patchWorkspaceTags, refreshDocuments, setCachedDocument, stopDocumentsLoading, subscribeDocumentRows, upsertDocuments, useActivity, useAgents, useAssistantQuery, useAvailableModels, useCanCreateProjects, useConfigs, useConversationThreads, useConversations, useCreateTag, useCurrentUser, useDeleteAgents, useDeleteTag, useDocument, useDocumentVersionList, useDocuments, useDocumentsById, useDocumentsLoading, useExtractEntities, useFirmPool, useHealth, useInvalidateTagData, useParsedDocument, useProjectInvoices, useProjectUsage, useProjects, useProjectsUsage, useSetTagValues, useSimilarDocuments, useTagKindSchema, useTags, useThumbnails, useTopUpFirmPool, useUpdateTag, useUpdateTagKindSchema, useUserUsageToday, useWorkspaceActivity, useWorkspaces } from './chunk-OKDZDDJM.js';
3
- import { downloadBlob } from './chunk-YYTX3W6C.js';
1
+ import { downloadBlob, fetchDocumentFile } from './chunk-2HNEVAXO.js';
2
+ import { arbiMutationKeys, replayableTagMutations, patchDocuments, setCachedDocument, adjustTagCounts, arbiQueryKeys, patchCachedDocument, useDocuments, useConversations, useAssistantQuery, useConversationThreads, refreshDocuments, FINISHED_DOCUMENT_STATUSES, useWorkspaces, forgetDocuments, getCachedDocuments, useActivity, useTags, useThumbnails, useParsedDocument } from './chunk-HKIR456G.js';
3
+ export { DOCUMENTS_FIRST_PAGE_MEASURE, DOCUMENTS_FIRST_PAGE_SIZE, DOCUMENTS_PAGE_SIZE, FINISHED_DOCUMENT_STATUSES, PROJECT_CREATION_DENIED_REASON, SIMILARITY_THRESHOLD, adjustTagCounts, arbiMutationKeys, arbiQueryKeys, forgetDocuments, getCachedDocuments, invalidateTagData, invalidateTagTables, isDocumentsLoading, isUsageMetered, patchCachedDocument, patchDocuments, patchWorkspaceTags, refreshDocuments, setCachedDocument, stopDocumentsLoading, subscribeDocumentRows, upsertDocuments, useActivity, useAgents, useAssistantQuery, useAvailableModels, useCanCreateProjects, useConfigs, useConversationThreads, useConversations, useCreateTag, useCurrentUser, useDeleteAgents, useDeleteTag, useDocument, useDocumentVersionList, useDocuments, useDocumentsById, useDocumentsLoading, useExtractEntities, useFirmPool, useHealth, useInvalidateTagData, useParsedDocument, useProjectInvoices, useProjectUsage, useProjects, useProjectsUsage, useSetTagValues, useSimilarDocuments, useTagKindSchema, useTags, useThumbnails, useTopUpFirmPool, useUpdateTag, useUpdateTagKindSchema, useUserUsageToday, useWorkspaceActivity, useWorkspaces } from './chunk-HKIR456G.js';
4
4
  import { parseVersionRef } from './chunk-NNWMHMEC.js';
5
5
  export { cleanDraftMarkdown, cleanDraftWithReport, promoteBoldTitle, repairParsedStructure, repairParsedTitle, stripAgentPreamble, unescapeMarkdown, unwrapCitationLinks } from './chunk-NNWMHMEC.js';
6
6
  import './chunk-WUTL62MC.js';
7
- import { createSearchSession, clearSearchSession, formatRelativeTime } from './chunk-3XYIQZTH.js';
7
+ import { createSearchSession, clearSearchSession, formatRelativeTime, notify } from './chunk-3XYIQZTH.js';
8
8
  export { DEFAULT_NOTIFY_TONE, MAX_SESSION_NOTIFICATIONS, NotificationBell, Toaster, clearSearchSession, configureNotify, createSearchSession, formatRelativeTime, notify, persistNotifyHistory, persistSearchSession, requestSearch, seedNotifications, selectUnread, sharedSearchSession, takePendingSearch, toast, useNotify } from './chunk-3XYIQZTH.js';
9
- import { returnFocusToMark, MarkMenu, AiMarkdown, Card, Badge, Input, FILE_TYPE_COLORS, getEntityIcon, UserEntity, getEntityColorStyles, AgentBadge, Textarea, Label, Slider, DocumentEntity, TagEntity, DocumentCard, useAudioRecorder, MicWaveformIndicator, IconToggle, classifyMediaError, formatElapsed } from './chunk-KD7CKXWQ.js';
10
- export { AUDIO_MIME_PREFERENCE, AgentBadge, AiMarkdown, ArbiBotHeadIcon, ArbiIcon, AudIcon, Avatar, AvatarFallback, AvatarImage, BASE_COLORS, Badge, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, DEFAULT_SEGMENTER_CONFIG, DebouncedInput, DictateProvider, DocIcon, DocumentCard, DocumentEntity, ENTITY_MAPPINGS, EmlIcon, EntityIcon, EntityPill, FILE_TYPE_COLORS, HoverCard, HoverCardContent, HoverCardTrigger, HtmlIcon, INITIAL_SEGMENTER_STATE, IconToggle, ImgIcon, InlineMicButton, Input, Label, MarkMenu, MicRecordingOverlay, MicWaveformIndicator, NEUTRAL_GRAY, PLACEHOLDER_COLOR, PassageCard, PdfIcon, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverTrigger, PresenceLabel, Progress, ProjectEntity, RadioGroup, RadioGroupItem, RagDot, RelevanceDot, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, ShieldIcon, Slider, StatusPill, Switch, TAG_TYPE_ICONS, TAG_TYPE_LABELS, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, TagEntity, Textarea, ThreadVisibilityIcon, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TxtIcon, UserEntity, UserMenu, VIDEO_MIME_PREFERENCE, VISIBILITY_ICONS, VerifiedBadge, VerifiedToggle, VidIcon, VisibilityIcon, VisibilityToggle, XlsIcon, agentAvatarColors, badgeVariants, cardVariants, classifyMediaError, configureEntityRegistry, configureRagLabels, configureStatusRegistry, createChunkedRecorder, flushSegmenter, formatElapsed, formatFriendlyDate, friendlyFileType, getDocIcon, getDocumentTitle, getEntityColor, getEntityColorStyles, getEntityIcon, getEntityLabel, getStatusVariant, getTagTypeIcon, getTagTypeLabel, getWorkspaceColor, isAudioFile, isDownloadOnlyFile, isImageDocument, isImageFile, isMediaFile, isVideoFile, levelFromRms, pickRecorderMimeType, stepSegmenter, tagKindNouns, tagKindTitle, toggleVariants, useAudioRecorder, useDictateContext, usesOriginalBytesForViewer } from './chunk-KD7CKXWQ.js';
11
- import { MarkdownRenderer } from './chunk-C44GO33B.js';
12
- export { MarkdownCode, MarkdownLink, MarkdownRenderer, MarkdownStreamingContext, markdownBaseComponents, markdownSanitizeSchema, splitMarkdownBlocks } from './chunk-C44GO33B.js';
9
+ import { returnFocusToMark, MarkMenu, AiMarkdown, Card, Badge, Input, FILE_TYPE_COLORS, getEntityIcon, UserEntity, getEntityColorStyles, AgentBadge, Textarea, Label, Slider, getDocumentTitle, DocumentEntity, TagEntity, DocumentCard, useAudioRecorder, MicWaveformIndicator, IconToggle, classifyMediaError, formatElapsed } from './chunk-6FGO7SCY.js';
10
+ export { AUDIO_MIME_PREFERENCE, AgentBadge, AiMarkdown, ArbiBotHeadIcon, ArbiIcon, AudIcon, Avatar, AvatarFallback, AvatarImage, BASE_COLORS, Badge, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, DEFAULT_SEGMENTER_CONFIG, DebouncedInput, DictateProvider, DocIcon, DocumentCard, DocumentEntity, ENTITY_MAPPINGS, EmlIcon, EntityIcon, EntityPill, FILE_TYPE_COLORS, HoverCard, HoverCardContent, HoverCardTrigger, HtmlIcon, INITIAL_SEGMENTER_STATE, IconToggle, ImgIcon, InlineMicButton, Input, Label, MarkMenu, MicRecordingOverlay, MicWaveformIndicator, NEUTRAL_GRAY, PLACEHOLDER_COLOR, PassageCard, PdfIcon, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverTrigger, PresenceLabel, Progress, ProjectEntity, RadioGroup, RadioGroupItem, RagDot, RelevanceDot, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, ShieldIcon, Slider, StatusPill, Switch, TAG_TYPE_ICONS, TAG_TYPE_LABELS, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, TagEntity, Textarea, ThreadVisibilityIcon, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TxtIcon, UserEntity, UserMenu, VIDEO_MIME_PREFERENCE, VISIBILITY_ICONS, VerifiedBadge, VerifiedToggle, VidIcon, VisibilityIcon, VisibilityToggle, XlsIcon, agentAvatarColors, badgeVariants, cardVariants, classifyMediaError, configureEntityRegistry, configureRagLabels, configureStatusRegistry, createChunkedRecorder, createUserAvatarIcon, extensionFromMime, flushSegmenter, formatElapsed, formatFriendlyDate, friendlyFileType, getDocIcon, getDocumentTitle, getEntityColor, getEntityColorStyles, getEntityIcon, getEntityLabel, getFileExtension, getFileTypeIcon, getStatusVariant, getTagTypeIcon, getTagTypeLabel, getUserAvatarColor, getUserDisplayName, getUserInitials, getWorkspaceColor, isAgent, isAudioFile, isDownloadOnlyFile, isImageDocument, isImageFile, isMediaFile, isVideoFile, levelFromRms, pickRecorderMimeType, stepSegmenter, tagKindNouns, tagKindTitle, toggleVariants, useAudioRecorder, useDictateContext, usesOriginalBytesForViewer } from './chunk-6FGO7SCY.js';
13
11
  import { Button, Dialog, DialogContent, DialogHeader, DialogTitle, DialogFooter } from './chunk-YNNAJJ5Z.js';
14
12
  export { Button, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, buttonVariants } from './chunk-YNNAJJ5Z.js';
13
+ import { MarkdownRenderer } from './chunk-C44GO33B.js';
14
+ export { MarkdownCode, MarkdownLink, MarkdownRenderer, MarkdownStreamingContext, markdownBaseComponents, markdownSanitizeSchema, splitMarkdownBlocks } from './chunk-C44GO33B.js';
15
15
  import { normalizeCitationMarkup } from './chunk-QRCMKEE6.js';
16
16
  export { closeOpenEmphasis, normalizeCitationMarkup, trimOpenCitation } from './chunk-QRCMKEE6.js';
17
17
  import { ScrollArea } from './chunk-W4H6XAIU.js';
@@ -1626,6 +1626,14 @@ function useSetWorkspaceMemberRoles() {
1626
1626
  ])
1627
1627
  });
1628
1628
  }
1629
+ function useDeleteWorkspaces() {
1630
+ const arbi = useArbi();
1631
+ const qc = useQueryClient();
1632
+ return useMutation({
1633
+ mutationFn: (workspaceIds) => arbi.workspaces.delete(workspaceIds),
1634
+ onSuccess: () => qc.invalidateQueries({ queryKey: arbiQueryKeys.workspaces() })
1635
+ });
1636
+ }
1629
1637
  function useFacts(workspaceId, options) {
1630
1638
  const arbi = useArbi();
1631
1639
  const { enabled = true, ...filter } = options ?? {};
@@ -1718,6 +1726,18 @@ function DocumentsSupportProvider({
1718
1726
  function useDocumentsSupport() {
1719
1727
  return useContext(DocumentsSupportContext);
1720
1728
  }
1729
+ function useProcessingTasks() {
1730
+ const { useProcessingTasks: useHostTasks } = useDocumentsSupport();
1731
+ const own = useArbiWsStore((state) => state.tasks);
1732
+ const host = useHostTasks?.();
1733
+ return host ?? own;
1734
+ }
1735
+ function useProcessingTask(docId) {
1736
+ const { useProcessingTask: useHostTask } = useDocumentsSupport();
1737
+ const own = useArbiWsStore((state) => state.tasks[docId]);
1738
+ const host = useHostTask?.(docId);
1739
+ return useHostTask ? host : own;
1740
+ }
1721
1741
 
1722
1742
  // src/documents/documents-writes.ts
1723
1743
  function applyOptimisticDocumentEdit(qc, updates) {
@@ -1875,6 +1895,41 @@ function useUpdateDocuments() {
1875
1895
  })
1876
1896
  );
1877
1897
  }
1898
+ function folderSegments(folder) {
1899
+ return (folder ?? "").split("/").map((segment) => segment.trim()).filter(Boolean);
1900
+ }
1901
+ function useRenameFolder() {
1902
+ const qc = useQueryClient();
1903
+ const { mutateAsync } = useUpdateDocuments();
1904
+ return useCallback(
1905
+ async (documents, from, to) => {
1906
+ const moved = (folder) => {
1907
+ const segments = folderSegments(folder);
1908
+ if (from.length === 0 || segments.length < from.length) return void 0;
1909
+ if (!from.every((segment, i) => segments[i] === segment)) return void 0;
1910
+ const next = [...to, ...segments.slice(from.length)];
1911
+ return next.length > 0 ? next.join("/") : null;
1912
+ };
1913
+ const updates = documents.flatMap((doc) => {
1914
+ const folder = moved(doc.folder);
1915
+ return folder === void 0 ? [] : [{ external_id: doc.external_id, folder }];
1916
+ });
1917
+ if (updates.length > 0) await mutateAsync({ documents: updates });
1918
+ patchDocuments(qc, (rows) => {
1919
+ let changed = false;
1920
+ const next = rows.map((doc) => {
1921
+ const folder = moved(doc.folder);
1922
+ if (folder === void 0 || folder === doc.folder) return doc;
1923
+ changed = true;
1924
+ return { ...doc, folder };
1925
+ });
1926
+ return changed ? next : rows;
1927
+ });
1928
+ return updates.length;
1929
+ },
1930
+ [qc, mutateAsync]
1931
+ );
1932
+ }
1878
1933
  function useDeleteDocuments() {
1879
1934
  const arbi = useArbi();
1880
1935
  const qc = useQueryClient();
@@ -7844,6 +7899,292 @@ function CommandPaletteProvider({
7844
7899
  ] });
7845
7900
  }
7846
7901
 
7902
+ // src/documents/document-fields.ts
7903
+ var ADDABLE_STATUSES = /* @__PURE__ */ new Set(["completed", "empty", "low-content"]);
7904
+ var isDocumentAddableToConversation = (document2) => {
7905
+ if (!document2) return false;
7906
+ if (!document2.status) return true;
7907
+ return ADDABLE_STATUSES.has(document2.status.toLowerCase());
7908
+ };
7909
+ var getDocumentDate = (document2) => {
7910
+ if (!document2) return void 0;
7911
+ return document2.doc_metadata?.doc_date;
7912
+ };
7913
+ var formatDocDate = (value) => {
7914
+ if (!value) return "";
7915
+ if (value.includes("T")) {
7916
+ const d = new Date(value);
7917
+ if (!Number.isNaN(d.getTime())) {
7918
+ const pad = (n) => String(n).padStart(2, "0");
7919
+ return `${d.getFullYear()}-${pad(d.getMonth() + 1)}-${pad(d.getDate())} ${pad(d.getHours())}:${pad(d.getMinutes())}`;
7920
+ }
7921
+ }
7922
+ return value;
7923
+ };
7924
+ var getDocumentNature = (document2) => {
7925
+ if (!document2) return void 0;
7926
+ return document2.doc_metadata?.doc_nature;
7927
+ };
7928
+ var getDocumentAuthor = (document2) => {
7929
+ if (!document2) return void 0;
7930
+ return document2.doc_metadata?.doc_author;
7931
+ };
7932
+ var getDocumentSubject = (document2) => {
7933
+ if (!document2) return void 0;
7934
+ return document2.doc_metadata?.doc_subject;
7935
+ };
7936
+ var DEFAULT_METADATA_TAGS = [
7937
+ { name: "doc_date", label: "Date" },
7938
+ { name: "doc_nature", label: "Type" },
7939
+ { name: "doc_author", label: "Author" },
7940
+ { name: "doc_subject", label: "Abstract" }
7941
+ ];
7942
+ var canonicalFolderPath = (folder) => {
7943
+ if (!folder) return null;
7944
+ const segments = folder.split("/").map((segment) => segment.trim()).filter(Boolean);
7945
+ return segments.length > 0 ? segments.join("/") : null;
7946
+ };
7947
+ var buildFolderTree = (docs) => {
7948
+ const counts = /* @__PURE__ */ new Map();
7949
+ let unfiledCount = 0;
7950
+ for (const doc of docs) {
7951
+ const folder = canonicalFolderPath(doc.folder);
7952
+ if (!folder) {
7953
+ unfiledCount++;
7954
+ continue;
7955
+ }
7956
+ const parts = folder.split("/");
7957
+ for (let i = 1; i <= parts.length; i++) {
7958
+ const path = parts.slice(0, i).join("/");
7959
+ counts.set(path, (counts.get(path) ?? 0) + 1);
7960
+ }
7961
+ }
7962
+ const nodes = [...counts.keys()].sort((a, b) => a.localeCompare(b)).map((path) => ({
7963
+ path,
7964
+ label: path.split("/").pop() ?? path,
7965
+ depth: path.split("/").length - 1,
7966
+ count: counts.get(path) ?? 0
7967
+ }));
7968
+ return { nodes, unfiledCount };
7969
+ };
7970
+ var formatFolderLabel = (path) => {
7971
+ if (!path) return "";
7972
+ const parts = path.split("/");
7973
+ const name = parts[parts.length - 1] || path;
7974
+ const depth = parts.length - 1;
7975
+ if (depth === 0) return name;
7976
+ return "../".repeat(depth) + name;
7977
+ };
7978
+ var COLUMN_LABEL_FALLBACKS = {
7979
+ title: "Document Name",
7980
+ doc_nature: "Type",
7981
+ doc_author: "Author",
7982
+ doc_subject: "Abstract",
7983
+ doc_date: "Date",
7984
+ n_pages: "Pages",
7985
+ created_at: "Uploaded",
7986
+ updated_at: "Last modified",
7987
+ file_name: "File name",
7988
+ file_size: "Size",
7989
+ file_type: "File type",
7990
+ shared: "Shared",
7991
+ inConversation: "In chat",
7992
+ created_by: "By",
7993
+ sender: "From",
7994
+ all_tags: "Labels",
7995
+ doc_id: "DocID",
7996
+ related: "Related"
7997
+ };
7998
+
7999
+ // src/documents/document-download.ts
8000
+ function fallbackFileName(doc) {
8001
+ if (doc.file_name) return doc.file_name;
8002
+ const title = getDocumentTitle(doc, `document-${doc.external_id}`);
8003
+ const extension = doc.file_type || "pdf";
8004
+ const ext = extension.startsWith(".") ? extension : `.${extension}`;
8005
+ return title.toLowerCase().endsWith(ext.toLowerCase()) ? title : `${title}${ext}`;
8006
+ }
8007
+ var COLUMN_MAPPING = {
8008
+ file_name: {
8009
+ header: "File Name",
8010
+ getValue: (d) => d.file_name || getDocumentTitle(d, `document-${d.external_id}.pdf`)
8011
+ },
8012
+ title: { header: "Title", getValue: (d) => getDocumentTitle(d) },
8013
+ n_pages: { header: "Pages", getValue: (d) => d.n_pages || "" },
8014
+ doc_date: { header: "Document Date", getValue: (d) => getDocumentDate(d) || "" },
8015
+ doc_id: { header: "Document ID", getValue: (d) => d.external_id },
8016
+ status: { header: "Status", getValue: (d) => d.status || "" },
8017
+ uploaded: { header: "Upload Date", getValue: (d) => d.created_at || "" },
8018
+ updated_at: { header: "Last Modified", getValue: (d) => d.updated_at || "" },
8019
+ file_type: { header: "File Type", getValue: (d) => d.file_type || "" },
8020
+ file_size: { header: "File Size", getValue: (d) => d.file_size || "" },
8021
+ shared: { header: "Shared", getValue: (d) => d.shared ? "Yes" : "No" }
8022
+ };
8023
+ function buildDocumentMetadataRows(documents, selectedColumns) {
8024
+ const columns = selectedColumns || Object.keys(COLUMN_MAPPING);
8025
+ return documents.map((doc) => {
8026
+ const row = {};
8027
+ for (const colId of columns) {
8028
+ const standard = COLUMN_MAPPING[colId];
8029
+ if (standard) {
8030
+ row[standard.header] = standard.getValue(doc);
8031
+ } else if (colId.startsWith("tag-")) {
8032
+ const bare = colId.replace(/^tag-/, "");
8033
+ const doctag = doc.doctags?.find((dt) => dt.tag_ext_id === colId || dt.tag_ext_id === bare);
8034
+ if (doctag) row[colId] = doctag.note || "Yes";
8035
+ }
8036
+ }
8037
+ return row;
8038
+ });
8039
+ }
8040
+ function archiveName(workspaceName, suffix) {
8041
+ const date = (/* @__PURE__ */ new Date()).toISOString().split("T")[0];
8042
+ const sanitizedName = (workspaceName || "workspace").replace(/[^a-z0-9-_]/gi, "_");
8043
+ return `${date}_${sanitizedName}_${suffix}.zip`;
8044
+ }
8045
+ function useDownloadDocuments({ workspaceName } = {}) {
8046
+ const arbi = useArbi();
8047
+ const [isDownloading, setIsDownloading] = useState(false);
8048
+ const fetchNamedFile = useCallback(
8049
+ async (doc) => {
8050
+ const blob = await fetchDocumentFile(arbi.getClient().fetch, doc.external_id);
8051
+ return { blob, name: blob instanceof File && blob.name ? blob.name : fallbackFileName(doc) };
8052
+ },
8053
+ [arbi]
8054
+ );
8055
+ const downloadDocuments = useCallback(
8056
+ // selectedColumns: undefined = all default columns; [] = files only (no index.csv)
8057
+ async (documents, selectedColumns) => {
8058
+ const includeMetadataCsv = selectedColumns === void 0 || selectedColumns.length > 0;
8059
+ if (documents.length === 0) {
8060
+ notify.error("No documents to download");
8061
+ return;
8062
+ }
8063
+ setIsDownloading(true);
8064
+ try {
8065
+ const JSZip = (await import('jszip')).default;
8066
+ const zip = new JSZip();
8067
+ const downloaded = [];
8068
+ const failedDocs = [];
8069
+ for (const doc of documents) {
8070
+ try {
8071
+ const file = await fetchNamedFile(doc);
8072
+ zip.file(file.name, file.blob);
8073
+ downloaded.push(doc);
8074
+ } catch (error) {
8075
+ console.error(`Failed to download document ${doc.external_id}:`, error);
8076
+ failedDocs.push(getDocumentTitle(doc, doc.external_id));
8077
+ }
8078
+ }
8079
+ const successCount = downloaded.length;
8080
+ if (successCount === 0) {
8081
+ notify.error("Failed to download documents");
8082
+ return;
8083
+ }
8084
+ if (includeMetadataCsv) {
8085
+ const Papa = (await import('papaparse')).default;
8086
+ zip.file(
8087
+ "index.csv",
8088
+ Papa.unparse(buildDocumentMetadataRows(downloaded, selectedColumns))
8089
+ );
8090
+ }
8091
+ const zipFileName = archiveName(workspaceName, `${successCount}_documents`);
8092
+ downloadBlob(await zip.generateAsync({ type: "blob" }), zipFileName);
8093
+ const documentsLabel = `${successCount} document${successCount !== 1 ? "s" : ""}`;
8094
+ const contents = includeMetadataCsv ? `${documentsLabel} and index.csv in ${zipFileName}` : `${documentsLabel} in ${zipFileName}`;
8095
+ if (failedDocs.length === 0) notify.success(`Successfully downloaded ${contents}`);
8096
+ else notify.warning(`Downloaded ${contents}, ${failedDocs.length} failed`);
8097
+ } catch (error) {
8098
+ console.error("Failed to create zip file:", error);
8099
+ notify.error("Failed to download documents. Please try again.");
8100
+ } finally {
8101
+ setIsDownloading(false);
8102
+ }
8103
+ },
8104
+ [workspaceName, fetchNamedFile]
8105
+ );
8106
+ const downloadDocument = useCallback(
8107
+ async (doc) => {
8108
+ setIsDownloading(true);
8109
+ try {
8110
+ const file = await fetchNamedFile(doc);
8111
+ downloadBlob(file.blob, file.name);
8112
+ notify.success(`Successfully downloaded ${file.name}`);
8113
+ } catch (error) {
8114
+ console.error("Failed to download document", error);
8115
+ notify.error("Failed to download document. Please try again.");
8116
+ } finally {
8117
+ setIsDownloading(false);
8118
+ }
8119
+ },
8120
+ [fetchNamedFile]
8121
+ );
8122
+ return { downloadDocuments, downloadDocument, isDownloading };
8123
+ }
8124
+ var BATCH_SIZE = 200;
8125
+ var IN_PROGRESS = /* @__PURE__ */ new Set(["queued", "parsing", "encrypting", "indexing", "analysing"]);
8126
+ function useDocumentThumbnails(visibleIds) {
8127
+ const arbi = useArbi();
8128
+ const workspaceId = arbi.hasWorkspace ? arbi.getWorkspaceId() : null;
8129
+ const tasks = useProcessingTasks();
8130
+ const tasksRef = useRef(tasks);
8131
+ tasksRef.current = tasks;
8132
+ const [thumbnails, setThumbnails] = useState(/* @__PURE__ */ new Map());
8133
+ const resolvedRef = useRef(/* @__PURE__ */ new Set());
8134
+ const inflightRef = useRef(/* @__PURE__ */ new Set());
8135
+ const idsKey = visibleIds.join(",");
8136
+ useEffect(() => {
8137
+ resolvedRef.current = /* @__PURE__ */ new Set();
8138
+ inflightRef.current = /* @__PURE__ */ new Set();
8139
+ setThumbnails(/* @__PURE__ */ new Map());
8140
+ }, [workspaceId]);
8141
+ const fetchMissing = useCallback(
8142
+ async (ids) => {
8143
+ if (!workspaceId) return;
8144
+ const need = ids.filter((id) => !resolvedRef.current.has(id) && !inflightRef.current.has(id));
8145
+ if (need.length === 0) return;
8146
+ need.forEach((id) => inflightRef.current.add(id));
8147
+ try {
8148
+ const batches = [];
8149
+ for (let i = 0; i < need.length; i += BATCH_SIZE)
8150
+ batches.push(need.slice(i, i + BATCH_SIZE));
8151
+ const results = await Promise.all(
8152
+ batches.map((batch) => arbi.documents.getThumbnails(batch).catch(() => ({})))
8153
+ );
8154
+ const map = Object.assign({}, ...results);
8155
+ setThumbnails((prev) => {
8156
+ const next = new Map(prev);
8157
+ for (const id of need) {
8158
+ const uri = map[id];
8159
+ if (uri) {
8160
+ next.set(id, uri);
8161
+ resolvedRef.current.add(id);
8162
+ continue;
8163
+ }
8164
+ if (!IN_PROGRESS.has(tasksRef.current[id]?.status ?? "")) resolvedRef.current.add(id);
8165
+ }
8166
+ return next;
8167
+ });
8168
+ } finally {
8169
+ need.forEach((id) => inflightRef.current.delete(id));
8170
+ }
8171
+ },
8172
+ [arbi, workspaceId]
8173
+ );
8174
+ useEffect(() => {
8175
+ if (visibleIds.length > 0) void fetchMissing(visibleIds);
8176
+ }, [idsKey, fetchMissing]);
8177
+ useEffect(() => {
8178
+ for (const id of visibleIds)
8179
+ if (IN_PROGRESS.has(tasks[id]?.status ?? "")) resolvedRef.current.delete(id);
8180
+ const ready = visibleIds.filter(
8181
+ (id) => !resolvedRef.current.has(id) && FINISHED_DOCUMENT_STATUSES.has(tasks[id]?.status ?? "")
8182
+ );
8183
+ if (ready.length > 0) void fetchMissing(ready);
8184
+ }, [tasks, idsKey, fetchMissing]);
8185
+ return thumbnails;
8186
+ }
8187
+
7847
8188
  // src/session/store.ts
7848
8189
  var DEFAULT_DOCUMENT_VIEWER_STATE = {
7849
8190
  tab: "pdf",
@@ -9086,6 +9427,6 @@ function hasVideoTrack(blob) {
9086
9427
  });
9087
9428
  }
9088
9429
 
9089
- export { ALLOWED_PORTAL_ORIGINS, AccountClientProvider, ActivityFeed, AiActionCard, AiAnswer, AppleIcon, ArbiBotIcon, ArbiSessionStateProvider, ArbiWebSocketProvider, ArtifactCanvas, BOX_SEAT_REFUSED, BOX_SEAT_REFUSED_ACTION, BOX_SEAT_REFUSED_TITLE, CalendarSupportProvider, ChatBubble, CitationRenderer, ClaudeIcon, CommandPalette, CommandPaletteProvider, ConversationList, DEFAULT_ASPECT_OPTIONS, DEFAULT_DOCUMENT_VIEWER_STATE, DEFAULT_PASSWORD_CHANGE_FORM_MESSAGES, DEFAULT_START_BY_EMAIL_LABELS, DateSeparator, DirectMessages, DmAvatar, DmComposer, DocQaPanel, DocSearch, DocumentCardMenu, DocumentGallery, DocumentReview, DocumentTable, DocumentsSupportProvider, DraftTitleControls, EMPTY_SESSION_STATE, FileIcon, FireworksIcon, GeminiIcon, GitHubIcon, GoogleIcon, ImageCropModal, ImageCropper, LinkedInIcon, MAIL_DRAFT_REPLACED_EVENT, MAX_AVATAR_FILE_BYTES, MailClientProvider, MailOfflineUnavailableError, MessageArtifactCard, MessageBubble, MessageThread, OpenAIIcon, POLL_EVERY_MS, PhotoCapture, ProviderIcon, RUN_WINDOW_MS, SIGNATURE_NOTIFICATION_TYPES, SLOW_AFTER_MS, STILL_WORKING, StartByEmail, TypingIndicator, VideoCapture, VoiceNoteRecorder, WORK_NOTIFICATION_LABELS, accountPath, aliasTakenMessage, annotateThread, announceMailDraftReplaced, applyOptimisticDocumentEdit, arbiAccountClient, arbiMailClient, calendarQueryKeys, callNotificationMeta, captureFrameAsBlob, connectOAuthCalendarAccount, connectorErrorStatus, connectorQueryKeys, connectorReturnTo, createArbiSessionStore, createMailClient, cropImage, dayKey, defaultMailAlias, deploymentUserMeta, describeActivity, describeServerNotification, documentActivityMeta, documentActivityPhrase, documentDisplayName, docxMentionMeta, downloadRecoveryFile, fileAttachment, formatIdentityPrice, getNotificationTypeMeta, getWorkspaceActionText, getWorkspaceKind, getWorkspaceSentPhrase, hasVideoTrack, identityStepFor, inputRequestTitle, invalidateCalendarEvents, invalidateCalendars, isAliasTakenError, isDeploymentAdmin, isDeploymentUserNotification, isOfflineReadableArbiQuery, isQueuedCalendarWrite, isReplayableArbiMutation, isRestorableArbiQueryOnline, isSignatureNotificationType, isWorkspaceNotificationType, mailDraftIdFromContent, mailJson, mailQueryKeys, mountDiditVerification, nextAliasSuggestion, nextViewingDocument, notificationUserName, parseActivityContent, parseDeleteAccountBlockers, pickRecentWorkspaces, redlineStats, registerArbiMutationDefaults, resetCalendarAccountSyncState, resolveActiveWorkspace, rollbackOptimisticDocumentEdit, safePortalUrl, selectIsGenerating, selectViewingDocumentId, signatureNotificationPhrase, signatureRequestMeta, supportsHouseTemplates, textToArtifact, titleFromQuestion, toChatCitations, toNotificationPreferences, toProfileView, toRedlineMarkdown, toShellWorkspace, useAccountClient, useActOnStep, useAddHolidayCalendar, useAddProjectAddonBlock, useAddWorkspaceMembers, useAddonQuote, useAgentChats, useAgentConfig, useAgentModels, useAgentSession, useAgentWorkspaces, useAiTask, useArbiChat, useArbiConnected, useArbiDocumentSync, useArbiSessionState, useArbiSessionStore, useArbiShellWorkspaces, useArbiWebSocket, useArbiWsContext, useArbiWsMessage, useArbiWsStatus, useArbiWsStore, useArbiWsTask, useArbiWsTasks, useAssignDocTags, useAuthorizeLimits, useAvatarCrop, useBookingPages, useCalDavProfiles, useCalendarAccounts, useCalendarEvent, useCalendarEventByUid, useCalendarEvents, useCalendarInvitations, useCalendarOutbox, useCalendarOverlays, useCalendarSettings, useCalendarShares, useCalendarSupport, useCalendars, useCameraStream, useCancelDriveSync, useCancelMailboxSync, useCancelProjectSubscription, useChangeProjectPlan, useChargeWatch, useClaimNativeAlias, useCloseAgentSession, useCommandPalette, useConfirmEmailChange, useConnectCalDavAccount, useConnectMailAccount, useConnectOAuthAccount, useConnectorAutoSync, useConnectorCatalog, useConnectorVendorVisibility, useContacts, useConversationActivity, useConversationPendingAuth, useConversationUsage, useCreateAgent, useCreateCalendar, useCreateContact, useCreateEvent, useCreateFact, useCreateFacts, useCreateProject, useCreateProjectCheckout, useCreateRoom, useCreateWork, useCreateWorkflow, useCurrentSessionId, useDecideCounter, useDeleteAccount, useDeleteAccountFlow, useDeleteBookingPage, useDeleteCalendar, useDeleteContact, useDeleteDocuments, useDeleteEvent, useDeleteFact, useDeleteNotifications, useDeleteProject, useDeleteSkill, useDeleteWorkflow, useDirectMessages, useDisconnectCalendarAccount, useDisconnectConnector, useDisconnectMailAccount, useDisconnectSlack, useDocumentsSupport, useDriveFolderChildren, useDriveFolderDocCount, useDriveFolders, useDriveSyncEstimate, useDriveSyncProgress, useEmailChange, useEnableDriveSync, useEnableMailboxSync, useFacts, useFetchCalendarEvent, useFilteredProjects, useFinaliseTranslation, useFindTime, useFollowThread, useFreeBusy, useGenerateAgentAvatar, useGenerateDocTags, useGrantAgentAccess, useHolidayCountries, useHouseTemplateCandidates, useIdentityVerification, useIdentityVerificationFlow, useImportCalendar, useInvalidateProjects, useInviteContacts, useIsSlow, useMailAccounts, useMailAttachmentText, useMailCache, useMailClient, useMailDraftCompose, useMailDraftEditor, useMailDraftReplaced, useMailFolders, useMailMessage, useMailMessages, useMailOnline, useMailPolicy, useMailProjects, useMailUnlock, useMailboxFolders, useMailboxSyncProgress, useMarkNotificationsRead, useMcpTools, useMoveEvent, useMyConnectors, useNameEditor, useNotificationPreferences, useNotifications, usePassageQuotes, usePasswordChange, usePasswordChangeForm, usePendingContacts, usePlanQuote, usePlanWork, usePreviewProjectPlanChange, useProducts, useProfile, useProjectBillingPortal, useProjectConversationUsage, useProjectEvents, usePublishCalendar, useRefreshCalendar, useRefreshConnectorsOnRunEnd, useRefreshProject, useRemoveDocTags, useRemoveWorkspaceMembers, useRequestEmailChange, useRespondToEvent, useResumeCalendarAccountConnect, useRevokeAgentAccess, useRooms, useRunConversation, useRunWorkflow, useSaveAgentConfig, useSaveBookingPage, useSaveCalendarSettings, useSaveMailDraft, useSearchContacts, useSearchFacts, useSemanticSearch, useSendBackStep, useSendMail, useSessions, useSetSkillVisibility, useSetWorkspaceHouseTemplate, useSetWorkspaceMemberRoles, useShareCalendar, useShellWorkspaces, useSignOut, useSkillSource, useSkills, useSlackConnection, useStartAgentSession, useStartCalendarAccountOAuth, useStartWorkQuery, useSubscribeCalendar, useSyncAccountsOnOpen, useSyncCalendarAccount, useTerminateSession, useTriggerDriveSync, useTriggerMailboxSync, useUnshareCalendar, useUpdateCalendar, useUpdateCalendarAccount, useUpdateContact, useUpdateConversation, useUpdateDocTag, useUpdateDocuments, useUpdateEvent, useUpdateFact, useUpdateMailMessage, useUpdateProfile, useUpdateProjectAddonSettings, useUpdateProjectFields, useUpdateProjectNextPeriodAddons, useUpdateUserSettings, useUpdateWorkflow, useUpdateWorkspace, useUploadDocuments, useUploadSkillFiles, useUploadUrls, useUserSettings, useVideoRecorder, useWorkNotifications, useWorkflowRuns, useWorkflows, useWorkspaceDocs, useWorkspaceNotificationLevel, useWorkspaceUsers, userDisplayName, userInitials, workflowStepOf, workspaceHouseTemplateId };
9430
+ export { ALLOWED_PORTAL_ORIGINS, AccountClientProvider, ActivityFeed, AiActionCard, AiAnswer, AppleIcon, ArbiBotIcon, ArbiSessionStateProvider, ArbiWebSocketProvider, ArtifactCanvas, BOX_SEAT_REFUSED, BOX_SEAT_REFUSED_ACTION, BOX_SEAT_REFUSED_TITLE, COLUMN_LABEL_FALLBACKS, CalendarSupportProvider, ChatBubble, CitationRenderer, ClaudeIcon, CommandPalette, CommandPaletteProvider, ConversationList, DEFAULT_ASPECT_OPTIONS, DEFAULT_DOCUMENT_VIEWER_STATE, DEFAULT_METADATA_TAGS, DEFAULT_PASSWORD_CHANGE_FORM_MESSAGES, DEFAULT_START_BY_EMAIL_LABELS, DateSeparator, DirectMessages, DmAvatar, DmComposer, DocQaPanel, DocSearch, DocumentCardMenu, DocumentGallery, DocumentReview, DocumentTable, DocumentsSupportProvider, DraftTitleControls, EMPTY_SESSION_STATE, FileIcon, FireworksIcon, GeminiIcon, GitHubIcon, GoogleIcon, ImageCropModal, ImageCropper, LinkedInIcon, MAIL_DRAFT_REPLACED_EVENT, MAX_AVATAR_FILE_BYTES, MailClientProvider, MailOfflineUnavailableError, MessageArtifactCard, MessageBubble, MessageThread, OpenAIIcon, POLL_EVERY_MS, PhotoCapture, ProviderIcon, RUN_WINDOW_MS, SIGNATURE_NOTIFICATION_TYPES, SLOW_AFTER_MS, STILL_WORKING, StartByEmail, TypingIndicator, VideoCapture, VoiceNoteRecorder, WORK_NOTIFICATION_LABELS, accountPath, aliasTakenMessage, annotateThread, announceMailDraftReplaced, applyOptimisticDocumentEdit, arbiAccountClient, arbiMailClient, archiveName, buildDocumentMetadataRows, buildFolderTree, calendarQueryKeys, callNotificationMeta, canonicalFolderPath, captureFrameAsBlob, connectOAuthCalendarAccount, connectorErrorStatus, connectorQueryKeys, connectorReturnTo, createArbiSessionStore, createMailClient, cropImage, dayKey, defaultMailAlias, deploymentUserMeta, describeActivity, describeServerNotification, documentActivityMeta, documentActivityPhrase, documentDisplayName, docxMentionMeta, downloadRecoveryFile, fallbackFileName, fileAttachment, formatDocDate, formatFolderLabel, formatIdentityPrice, getDocumentAuthor, getDocumentDate, getDocumentNature, getDocumentSubject, getNotificationTypeMeta, getWorkspaceActionText, getWorkspaceKind, getWorkspaceSentPhrase, hasVideoTrack, identityStepFor, inputRequestTitle, invalidateCalendarEvents, invalidateCalendars, isAliasTakenError, isDeploymentAdmin, isDeploymentUserNotification, isDocumentAddableToConversation, isOfflineReadableArbiQuery, isQueuedCalendarWrite, isReplayableArbiMutation, isRestorableArbiQueryOnline, isSignatureNotificationType, isWorkspaceNotificationType, mailDraftIdFromContent, mailJson, mailQueryKeys, mountDiditVerification, nextAliasSuggestion, nextViewingDocument, notificationUserName, parseActivityContent, parseDeleteAccountBlockers, pickRecentWorkspaces, redlineStats, registerArbiMutationDefaults, resetCalendarAccountSyncState, resolveActiveWorkspace, rollbackOptimisticDocumentEdit, safePortalUrl, selectIsGenerating, selectViewingDocumentId, signatureNotificationPhrase, signatureRequestMeta, supportsHouseTemplates, textToArtifact, titleFromQuestion, toChatCitations, toNotificationPreferences, toProfileView, toRedlineMarkdown, toShellWorkspace, useAccountClient, useActOnStep, useAddHolidayCalendar, useAddProjectAddonBlock, useAddWorkspaceMembers, useAddonQuote, useAgentChats, useAgentConfig, useAgentModels, useAgentSession, useAgentWorkspaces, useAiTask, useArbiChat, useArbiConnected, useArbiDocumentSync, useArbiSessionState, useArbiSessionStore, useArbiShellWorkspaces, useArbiWebSocket, useArbiWsContext, useArbiWsMessage, useArbiWsStatus, useArbiWsStore, useArbiWsTask, useArbiWsTasks, useAssignDocTags, useAuthorizeLimits, useAvatarCrop, useBookingPages, useCalDavProfiles, useCalendarAccounts, useCalendarEvent, useCalendarEventByUid, useCalendarEvents, useCalendarInvitations, useCalendarOutbox, useCalendarOverlays, useCalendarSettings, useCalendarShares, useCalendarSupport, useCalendars, useCameraStream, useCancelDriveSync, useCancelMailboxSync, useCancelProjectSubscription, useChangeProjectPlan, useChargeWatch, useClaimNativeAlias, useCloseAgentSession, useCommandPalette, useConfirmEmailChange, useConnectCalDavAccount, useConnectMailAccount, useConnectOAuthAccount, useConnectorAutoSync, useConnectorCatalog, useConnectorVendorVisibility, useContacts, useConversationActivity, useConversationPendingAuth, useConversationUsage, useCreateAgent, useCreateCalendar, useCreateContact, useCreateEvent, useCreateFact, useCreateFacts, useCreateProject, useCreateProjectCheckout, useCreateRoom, useCreateWork, useCreateWorkflow, useCurrentSessionId, useDecideCounter, useDeleteAccount, useDeleteAccountFlow, useDeleteBookingPage, useDeleteCalendar, useDeleteContact, useDeleteDocuments, useDeleteEvent, useDeleteFact, useDeleteNotifications, useDeleteProject, useDeleteSkill, useDeleteWorkflow, useDeleteWorkspaces, useDirectMessages, useDisconnectCalendarAccount, useDisconnectConnector, useDisconnectMailAccount, useDisconnectSlack, useDocumentThumbnails, useDocumentsSupport, useDownloadDocuments, useDriveFolderChildren, useDriveFolderDocCount, useDriveFolders, useDriveSyncEstimate, useDriveSyncProgress, useEmailChange, useEnableDriveSync, useEnableMailboxSync, useFacts, useFetchCalendarEvent, useFilteredProjects, useFinaliseTranslation, useFindTime, useFollowThread, useFreeBusy, useGenerateAgentAvatar, useGenerateDocTags, useGrantAgentAccess, useHolidayCountries, useHouseTemplateCandidates, useIdentityVerification, useIdentityVerificationFlow, useImportCalendar, useInvalidateProjects, useInviteContacts, useIsSlow, useMailAccounts, useMailAttachmentText, useMailCache, useMailClient, useMailDraftCompose, useMailDraftEditor, useMailDraftReplaced, useMailFolders, useMailMessage, useMailMessages, useMailOnline, useMailPolicy, useMailProjects, useMailUnlock, useMailboxFolders, useMailboxSyncProgress, useMarkNotificationsRead, useMcpTools, useMoveEvent, useMyConnectors, useNameEditor, useNotificationPreferences, useNotifications, usePassageQuotes, usePasswordChange, usePasswordChangeForm, usePendingContacts, usePlanQuote, usePlanWork, usePreviewProjectPlanChange, useProcessingTask, useProcessingTasks, useProducts, useProfile, useProjectBillingPortal, useProjectConversationUsage, useProjectEvents, usePublishCalendar, useRefreshCalendar, useRefreshConnectorsOnRunEnd, useRefreshProject, useRemoveDocTags, useRemoveWorkspaceMembers, useRenameFolder, useRequestEmailChange, useRespondToEvent, useResumeCalendarAccountConnect, useRevokeAgentAccess, useRooms, useRunConversation, useRunWorkflow, useSaveAgentConfig, useSaveBookingPage, useSaveCalendarSettings, useSaveMailDraft, useSearchContacts, useSearchFacts, useSemanticSearch, useSendBackStep, useSendMail, useSessions, useSetSkillVisibility, useSetWorkspaceHouseTemplate, useSetWorkspaceMemberRoles, useShareCalendar, useShellWorkspaces, useSignOut, useSkillSource, useSkills, useSlackConnection, useStartAgentSession, useStartCalendarAccountOAuth, useStartWorkQuery, useSubscribeCalendar, useSyncAccountsOnOpen, useSyncCalendarAccount, useTerminateSession, useTriggerDriveSync, useTriggerMailboxSync, useUnshareCalendar, useUpdateCalendar, useUpdateCalendarAccount, useUpdateContact, useUpdateConversation, useUpdateDocTag, useUpdateDocuments, useUpdateEvent, useUpdateFact, useUpdateMailMessage, useUpdateProfile, useUpdateProjectAddonSettings, useUpdateProjectFields, useUpdateProjectNextPeriodAddons, useUpdateUserSettings, useUpdateWorkflow, useUpdateWorkspace, useUploadDocuments, useUploadSkillFiles, useUploadUrls, useUserSettings, useVideoRecorder, useWorkNotifications, useWorkflowRuns, useWorkflows, useWorkspaceDocs, useWorkspaceNotificationLevel, useWorkspaceUsers, userDisplayName, userInitials, workflowStepOf, workspaceHouseTemplateId };
9090
9431
  //# sourceMappingURL=index.js.map
9091
9432
  //# sourceMappingURL=index.js.map