@arbidocs/react 0.4.147 → 0.4.150

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 (48) hide show
  1. package/dist/artifacts/index.cjs +17 -7
  2. package/dist/artifacts/index.cjs.map +1 -1
  3. package/dist/artifacts/index.d.cts +7 -1
  4. package/dist/artifacts/index.d.ts +7 -1
  5. package/dist/artifacts/index.js +11 -2
  6. package/dist/artifacts/index.js.map +1 -1
  7. package/dist/{chunk-MFMJHBJR.js → chunk-3XYIQZTH.js} +52 -3
  8. package/dist/chunk-3XYIQZTH.js.map +1 -0
  9. package/dist/{chunk-YIFUMQGA.cjs → chunk-IQIDM3KM.cjs} +10 -16
  10. package/dist/chunk-IQIDM3KM.cjs.map +1 -0
  11. package/dist/{chunk-KLPY2HUC.cjs → chunk-JFKWH6EP.cjs} +57 -2
  12. package/dist/chunk-JFKWH6EP.cjs.map +1 -0
  13. package/dist/{chunk-7AFGROHZ.js → chunk-JQ7Y723H.js} +11 -16
  14. package/dist/{chunk-7AFGROHZ.js.map → chunk-JQ7Y723H.js.map} +1 -1
  15. package/dist/{chunk-J3BYHBKW.js → chunk-KD7CKXWQ.js} +1721 -1427
  16. package/dist/chunk-KD7CKXWQ.js.map +1 -0
  17. package/dist/{chunk-65WT5PHA.cjs → chunk-L66ZJ2UI.cjs} +1733 -1425
  18. package/dist/chunk-L66ZJ2UI.cjs.map +1 -0
  19. package/dist/document-tools/index.cjs +31 -0
  20. package/dist/document-tools/index.cjs.map +1 -1
  21. package/dist/document-tools/index.d.cts +19 -1
  22. package/dist/document-tools/index.d.ts +19 -1
  23. package/dist/document-tools/index.js +30 -1
  24. package/dist/document-tools/index.js.map +1 -1
  25. package/dist/{index-2Y2MVegs.d.ts → index-BV7pBlgY.d.cts} +119 -6
  26. package/dist/{index-2Y2MVegs.d.cts → index-BV7pBlgY.d.ts} +119 -6
  27. package/dist/{index-3E0neHf_.d.cts → index-DyFzmDZ2.d.cts} +46 -1
  28. package/dist/{index-3E0neHf_.d.ts → index-DyFzmDZ2.d.ts} +46 -1
  29. package/dist/index.cjs +1394 -1223
  30. package/dist/index.cjs.map +1 -1
  31. package/dist/index.d.cts +1355 -339
  32. package/dist/index.d.ts +1355 -339
  33. package/dist/index.js +581 -505
  34. package/dist/index.js.map +1 -1
  35. package/dist/shell/index.cjs +33 -9
  36. package/dist/shell/index.d.cts +3 -1
  37. package/dist/shell/index.d.ts +3 -1
  38. package/dist/shell/index.js +1 -1
  39. package/dist/ui/index.cjs +174 -118
  40. package/dist/ui/index.d.cts +1 -1
  41. package/dist/ui/index.d.ts +1 -1
  42. package/dist/ui/index.js +1 -1
  43. package/package.json +3 -3
  44. package/dist/chunk-65WT5PHA.cjs.map +0 -1
  45. package/dist/chunk-J3BYHBKW.js.map +0 -1
  46. package/dist/chunk-KLPY2HUC.cjs.map +0 -1
  47. package/dist/chunk-MFMJHBJR.js.map +0 -1
  48. package/dist/chunk-YIFUMQGA.cjs.map +0 -1
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
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 { Arbi, ArbiOptions, QueryOptions, SSEStreamResult, SSEStreamStartData, UserMessageEvent, MessageMetadataPayload, ResponseOutputItemDoneEvent, ArtifactEvent, TagListQuery, ListFactsOptions, UpdateFactRequest, StepActionRequest, UpdateConversationRequest, UpdateWorkflowRequest, tags, TagResponse, TagKind, TagKindSchema, TagChange, TagFieldDefinition, ProjectEventKind, ProjectUpdateRequest, contacts, LoginProfile, settings, ListEventsParams, RoomQuery, CalendarWindow, OverlayLayerName, EventCreateBody, ScopedTarget, EventPatchBody, RespondParams, RoomCreateBody, CalendarEvent, FindTimeParams, ShareRole, CalendarUpdate, OAuthAccountKind, CalendarAccount, CalDavConnectBody, FeedCreateBody, DecryptedChatMessage, UploadDocumentsOptions, UploadResult } from '@arbidocs/sdk/browser';
5
- export { ACCOUNT_VENDOR, AccountSyncResult, ActivityKind, ActivityResponse, AgentStepEvent, AppPassword, AppPasswordCreateBody, AppPasswordCreated, Arbi, ArbiError, ArbiOptions, ArtifactEvent, AttendeeRead, AuthMode, BookingConfirmation, BookingPage, BookingPageWriteBody, BookingRequestBody, BridgeTokensOptions, CalDavConnectBody, CalDavProfile, CalendarAccount, CalendarAccountKind, CalendarCreateBody, CalendarEvent, CalendarRead, CalendarSettings, CalendarSettingsBody, CalendarUpdate, CalendarWindow, ConnectorCatalogEntry, ConnectorFolder, ConnectorSyncProgress, ConnectorSyncStatus, ConnectorVendorKey, ConnectorVisibilitySettings, ConversationResponse, CreateFactRequest, CreateWorkRequest, CreateWorkflowRequest, DEFAULT_AI_USD_PER_GBP, DRIVE_SYNC_VENDORS, DateTimeSpec, DriveSyncProgress, DriveSyncSummary, EditScope, EventCreateBody, EventPatchBody, FactResponse, FactSearchRequest, FactSearchResponse, FeedCreateBody, FeedLevel, FindTimeParams, FreeBusyEntry, GOOGLE_VENDORS, HolidayCountry, IMANAGE_VENDORS, ImportResult, InvitationRead, ListEventsParams, LoginProfile, MAILBOX_SYNC_VENDORS, MICROSOFT_VENDORS, MessageMetadataPayload, OAuthAccountKind, OutputTokensDetails, OverlayItem, OverlayLayerName, PendingAuthResponse, PersonKey, PlanWorkRequest, ProjectInvoicesResponse, ProjectUsageResponse, PublicBookingError, PublicBookingPage, QueryOptions, RespondParams, RespondPartstat, ResponseCompletedEvent, ResponseContentPartAddedEvent, ResponseCreatedEvent, ResponseFailedEvent, ResponseOutputItemAddedEvent, ResponseOutputItemDoneEvent, ResponseOutputTextDeltaEvent, ResponseOutputTextDoneEvent, ResponseUsage, RoomCreateBody, RoomQuery, RoomRead, SHAREPOINT_VENDORS, SSEStreamCallbacks, SSEStreamResult, SSEStreamStartData, ScopedTarget, ShareRead, ShareRole, SkillSummary, SlackConnectionStatus, SubscribeParams, SyncTriggerResult, TaskPlan, TimeSuggestion, UpdateConversationRequest, UpdateWorkflowRequest, UserConnectorEntry, UserDailyUsageResponse, UserInputRequestEvent, UserMessageEvent, WeeklyHoursSpec, WorkStatus, WorkflowAuthMode, WorkflowResponse, WorkflowRunResponse, bookPublicSlot, cancelPublicBooking, connectErrorMessage, formatGbp, formatGbpPerMillionTokens, getPublicBookingPage, isConnectorVendorVisible, isDriveSyncVendor, isMailboxSyncVendor, isSharePointVendor, splitAppPasswords, usdToGbp } from '@arbidocs/sdk/browser';
4
+ import { Arbi, ArbiOptions, QueryOptions, SSEStreamResult, SSEStreamStartData, UserMessageEvent, MessageMetadataPayload, ResponseOutputItemDoneEvent, ArtifactEvent, TagListQuery, ListFactsOptions, UpdateFactRequest, StepActionRequest, UpdateConversationRequest, UpdateWorkflowRequest, tags, TagResponse, TagKind, TagKindSchema, TagChange, TagFieldDefinition, ProjectEventKind, ProjectUpdateRequest, ProjectResponse, ProjectCreateOptions, ProjectAddonKind, ProjectPlanChangeRequest, ProjectCheckoutRequest, ProjectQuoteRequest, ProjectAddonSettingsRequest, ProjectNextPeriodAddonsRequest, contacts, LoginProfile, settings, ListEventsParams, RoomQuery, CalendarWindow, OverlayLayerName, EventCreateBody, ScopedTarget, EventPatchBody, RespondParams, RoomCreateBody, CalendarEvent, FindTimeParams, ShareRole, CalendarUpdate, OAuthAccountKind, CalendarAccount, CalDavConnectBody, SearchChunk, DecryptedChatMessage, UploadDocumentsOptions, UploadResult } from '@arbidocs/sdk/browser';
5
+ export { ACCOUNT_VENDOR, AccountSyncResult, ActivityKind, ActivityResponse, AgentStepEvent, Arbi, ArbiError, ArbiOptions, ArtifactEvent, AttendeeRead, AuthMode, BookingConfirmation, BookingPage, BookingPageWriteBody, BookingRequestBody, BridgeTokensOptions, CalDavConnectBody, CalDavProfile, CalendarAccount, CalendarAccountKind, CalendarCreateBody, CalendarEvent, CalendarRead, CalendarSettings, CalendarSettingsBody, CalendarUpdate, CalendarWindow, ConnectorCatalogEntry, ConnectorFolder, ConnectorSyncProgress, ConnectorSyncStatus, ConnectorVendorKey, ConnectorVisibilitySettings, ConversationResponse, CreateFactRequest, CreateWorkRequest, CreateWorkflowRequest, DEFAULT_AI_USD_PER_GBP, DRIVE_SYNC_VENDORS, DateTimeSpec, DriveSyncProgress, DriveSyncSummary, EditScope, EventCreateBody, EventPatchBody, FactResponse, FactSearchRequest, FactSearchResponse, FindTimeParams, FreeBusyEntry, GOOGLE_VENDORS, HolidayCountry, IMANAGE_VENDORS, ImportResult, InvitationRead, ListEventsParams, LoginProfile, MAILBOX_SYNC_VENDORS, MAX_RETRIEVE_DOC_IDS, MICROSOFT_VENDORS, MessageMetadataPayload, OAuthAccountKind, OutputTokensDetails, OverlayItem, OverlayLayerName, PendingAuthResponse, PersonKey, PlanWorkRequest, ProductResponse, ProjectAddonKind, ProjectCheckoutRequest, ProjectInvoicesResponse, ProjectPlanChangeRequest, ProjectQuoteRequest, ProjectResponse, ProjectUsageResponse, PublicBookingError, PublicBookingPage, QueryOptions, RespondParams, RespondPartstat, ResponseCompletedEvent, ResponseContentPartAddedEvent, ResponseCreatedEvent, ResponseFailedEvent, ResponseOutputItemAddedEvent, ResponseOutputItemDoneEvent, ResponseOutputTextDeltaEvent, ResponseOutputTextDoneEvent, ResponseUsage, RoomCreateBody, RoomQuery, RoomRead, SHAREPOINT_VENDORS, SSEStreamCallbacks, SSEStreamResult, SSEStreamStartData, ScopedTarget, SearchChunk, ShareRead, ShareRole, SkillSummary, SlackConnectionStatus, SubscribeParams, SyncTriggerResult, TaskPlan, TaxQuoteResponse, TimeSuggestion, UpdateConversationRequest, UpdateWorkflowRequest, UserConnectorEntry, UserDailyUsageResponse, UserInputRequestEvent, UserMessageEvent, WeeklyHoursSpec, WorkStatus, WorkflowAuthMode, WorkflowResponse, WorkflowRunResponse, bookPublicSlot, cancelPublicBooking, connectErrorMessage, formatGbp, formatGbpPerMillionTokens, getPublicBookingPage, isConnectorVendorVisible, isDriveSyncVendor, isMailboxSyncVendor, isSharePointVendor, usdToGbp } from '@arbidocs/sdk/browser';
6
6
  import * as _arbidocs_client from '@arbidocs/client';
7
7
  import { WebSocketServerMessage, WsTaskUpdateMessage, WsPresenceUpdateMessage, components, ArbiClient, RecoveryKeyParams } from '@arbidocs/client';
8
8
  export { WebSocketServerMessage, WsBatchCompleteMessage, WsConversationMessagePostedMessage, WsNotificationResponse, WsPresenceUpdateMessage, WsResponseCompleteMessage, WsTaskUpdateMessage, isMessageType } from '@arbidocs/client';
@@ -10,14 +10,14 @@ import * as zustand from 'zustand';
10
10
  import * as _tanstack_react_query from '@tanstack/react-query';
11
11
  import { QueryClient, QueryKey, MutationKey } from '@tanstack/react-query';
12
12
  import * as _tanstack_query_core from '@tanstack/query-core';
13
- import { ar as IdentityStatus, ap as IdentityPurchase, as as IdentityStep, at as IdentityVerificationFlow, ae as EntityIconComponent } from './index-2Y2MVegs.js';
14
- export { A as AgentBadge, a as AiMarkdown, b as ArbiIcon, c as Avatar, d as AvatarFallback, e as AvatarImage, B as BASE_COLORS, f as Badge, g as BadgeProps, h as Button, i as ButtonProps, C as Card, j as CardContent, k as CardDescription, l as CardFooter, m as CardHeader, n as CardProps, o as CardTitle, p as Checkbox, q as Collapsible, r as CollapsibleContent, s as CollapsibleTrigger, t as Command, u as CommandDialog, v as CommandEmpty, w as CommandGroup, x as CommandInput, y as CommandItem, z as CommandList, D as CommandSeparator, E as CommandShortcut, F as DebouncedInput, G as DebouncedInputProps, H as Dialog, I as DialogClose, J as DialogContent, K as DialogDescription, L as DialogFooter, M as DialogHeader, N as DialogOverlay, O as DialogPortal, P as DialogPresentation, Q as DialogTitle, R as DialogTrigger, S as DictateContextValue, T as DictateProvider, U as DocumentCard, V as DocumentCardProps, W as DocumentEntity, X as DocumentEntityProps, Y as DocumentLike, Z as DropdownMenu, _ as DropdownMenuCheckboxItem, $ as DropdownMenuContent, a0 as DropdownMenuGroup, a1 as DropdownMenuItem, a2 as DropdownMenuLabel, a3 as DropdownMenuPortal, a4 as DropdownMenuRadioGroup, a5 as DropdownMenuRadioItem, a6 as DropdownMenuSeparator, a7 as DropdownMenuShortcut, a8 as DropdownMenuSub, a9 as DropdownMenuSubContent, aa as DropdownMenuSubTrigger, ab as DropdownMenuTrigger, ac as ENTITY_MAPPINGS, ad as EntityIcon, af as EntityPill, ag as EntityRegistryOverride, ah as EntityType, ai as HoverCard, aj as HoverCardContent, ak as HoverCardTrigger, al as IconToggle, am as IconToggleProps, an as IdentityBusy, ao as IdentityProblem, aq as IdentityState, au as Input, av as InputProps, aw as Label, ax as MarkMenu, ay as MarkMenuItem, az as MarkMenuProps, aA as MarkdownCode, aB as MarkdownLink, aC as MarkdownRenderer, aD as MarkdownRendererProps, aE as MarkdownStreamingContext, aF as NEUTRAL_GRAY, aG as PLACEHOLDER_COLOR, aH as PassageCard, aI as PassageCardProps, aJ as Popover, aK as PopoverAnchor, aL as PopoverClose, aM as PopoverContent, aN as PopoverTrigger, aO as PortalContainerProvider, aP as PresenceDisplayStatus, aQ as PresenceLabel, aR as Progress, aS as ProjectEntity, aT as ProjectEntityProps, aU as ProjectRelation, aV as RadioGroup, aW as RadioGroupItem, aX as Rag, aY as RagDot, aZ as RelevanceDot, a_ as ScrollArea, a$ as ScrollBar, b0 as Select, b1 as SelectContent, b2 as SelectGroup, b3 as SelectItem, b4 as SelectLabel, b5 as SelectScrollDownButton, b6 as SelectScrollUpButton, b7 as SelectSeparator, b8 as SelectTrigger, b9 as SelectValue, ba as Separator, bb as ShieldIcon, bc as ShieldIconProps, bd as Slider, be as StatusBadgeComponent, bf as StatusBadgeProps, bg as StatusPill, bh as StatusPillProps, bi as StatusVariant, bj as Switch, bk as TAG_TYPE_ICONS, bl as TAG_TYPE_LABELS, bm as Table, bn as TableBody, bo as TableCaption, bp as TableCell, bq as TableFooter, br as TableHead, bs as TableHeader, bt as TableRow, bu as Tabs, bv as TabsContent, bw as TabsList, bx as TabsTrigger, by as TagEntity, bz as TagEntityProps, bA as TagLike, bB as Textarea, bC as TextareaProps, bD as ThreadVisibilityIcon, bE as Toggle, bF as ToggleGroup, bG as ToggleGroupItem, bH as Tooltip, bI as TooltipContent, bJ as TooltipProvider, bK as TooltipTrigger, bL as UserEntity, bM as UserEntityProps, bN as UserMenu, bO as UserMenuItem, bP as UserMenuProps, bQ as UserMenuStatus, bR as VISIBILITY_ICONS, bS as VerifiedBadge, bT as VerifiedBadgeProps, bU as VisibilityIcon, bV as VisibilityToggle, bW as VisibilityToggleProps, bX as agentAvatarColors, bY as badgeVariants, bZ as buttonVariants, b_ as cardVariants, b$ as closeOpenEmphasis, c0 as cn, c1 as configureEntityRegistry, c2 as configureRagLabels, c3 as configureStatusRegistry, c4 as getDocIcon, c5 as getEntityColor, c6 as getEntityColorStyles, c7 as getEntityIcon, c8 as getEntityLabel, c9 as getStatusVariant, ca as getTagTypeIcon, cb as getTagTypeLabel, cc as getWorkspaceColor, cd as markdownBaseComponents, ce as markdownSanitizeSchema, cf as normalizeCitationMarkup, cg as splitMarkdownBlocks, ch as toggleVariants, ci as trimOpenCitation, cj as usePortalContainer } from './index-2Y2MVegs.js';
13
+ import { ar as IdentityStatus, ap as IdentityPurchase, as as IdentityStep, at as IdentityVerificationFlow, ae as EntityIconComponent } from './index-BV7pBlgY.js';
14
+ export { A as AgentBadge, a as AiMarkdown, b as ArbiIcon, c as Avatar, d as AvatarFallback, e as AvatarImage, B as BASE_COLORS, f as Badge, g as BadgeProps, h as Button, i as ButtonProps, C as Card, j as CardContent, k as CardDescription, l as CardFooter, m as CardHeader, n as CardProps, o as CardTitle, p as Checkbox, q as Collapsible, r as CollapsibleContent, s as CollapsibleTrigger, t as Command, u as CommandDialog, v as CommandEmpty, w as CommandGroup, x as CommandInput, y as CommandItem, z as CommandList, D as CommandSeparator, E as CommandShortcut, F as DebouncedInput, G as DebouncedInputProps, H as Dialog, I as DialogClose, J as DialogContent, K as DialogDescription, L as DialogFooter, M as DialogHeader, N as DialogOverlay, O as DialogPortal, P as DialogPresentation, Q as DialogTitle, R as DialogTrigger, S as DictateContextValue, T as DictateProvider, U as DocumentCard, V as DocumentCardProps, W as DocumentEntity, X as DocumentEntityProps, Y as DocumentLike, Z as DropdownMenu, _ as DropdownMenuCheckboxItem, $ as DropdownMenuContent, a0 as DropdownMenuGroup, a1 as DropdownMenuItem, a2 as DropdownMenuLabel, a3 as DropdownMenuPortal, a4 as DropdownMenuRadioGroup, a5 as DropdownMenuRadioItem, a6 as DropdownMenuSeparator, a7 as DropdownMenuShortcut, a8 as DropdownMenuSub, a9 as DropdownMenuSubContent, aa as DropdownMenuSubTrigger, ab as DropdownMenuTrigger, ac as ENTITY_MAPPINGS, ad as EntityIcon, af as EntityPill, ag as EntityRegistryOverride, ah as EntityType, ai as HoverCard, aj as HoverCardContent, ak as HoverCardTrigger, al as IconToggle, am as IconToggleProps, an as IdentityBusy, ao as IdentityProblem, aq as IdentityState, au as Input, av as InputProps, aw as Label, ax as MarkMenu, ay as MarkMenuItem, az as MarkMenuProps, aA as MarkdownCode, aB as MarkdownLink, aC as MarkdownRenderer, aD as MarkdownRendererProps, aE as MarkdownStreamingContext, aF as NEUTRAL_GRAY, aG as PLACEHOLDER_COLOR, aH as PassageCard, aI as PassageCardProps, aJ as Popover, aK as PopoverAnchor, aL as PopoverClose, aM as PopoverContent, aN as PopoverTrigger, aO as PortalContainerProvider, aP as PresenceDisplayStatus, aQ as PresenceLabel, aR as Progress, aS as ProjectEntity, aT as ProjectEntityProps, aU as ProjectRelation, aV as RadioGroup, aW as RadioGroupItem, aX as Rag, aY as RagDot, aZ as RelevanceDot, a_ as ScrollArea, a$ as ScrollBar, b0 as Select, b1 as SelectContent, b2 as SelectGroup, b3 as SelectItem, b4 as SelectLabel, b5 as SelectScrollDownButton, b6 as SelectScrollUpButton, b7 as SelectSeparator, b8 as SelectTrigger, b9 as SelectValue, ba as Separator, bb as ShieldIcon, bc as ShieldIconProps, bd as Slider, be as StatusBadgeComponent, bf as StatusBadgeProps, bg as StatusPill, bh as StatusPillProps, bi as StatusVariant, bj as Switch, bk as TAG_TYPE_ICONS, bl as TAG_TYPE_LABELS, bm as Table, bn as TableBody, bo as TableCaption, bp as TableCell, bq as TableFooter, br as TableHead, bs as TableHeader, bt as TableRow, bu as Tabs, bv as TabsContent, bw as TabsList, bx as TabsTrigger, by as TagEntity, bz as TagEntityProps, bA as TagLike, bB as Textarea, bC as TextareaProps, bD as ThreadVisibilityIcon, bE as Toggle, bF as ToggleGroup, bG as ToggleGroupItem, bH as Tooltip, bI as TooltipContent, bJ as TooltipProvider, bK as TooltipTrigger, bL as UserEntity, bM as UserEntityProps, bN as UserMenu, bO as UserMenuItem, bP as UserMenuProps, bQ as UserMenuStatus, bR as VISIBILITY_ICONS, bS as VerifiedBadge, bT as VerifiedBadgeProps, bU as VerifiedToggle, bV as VisibilityIcon, bW as VisibilityToggle, bX as VisibilityToggleProps, bY as agentAvatarColors, bZ as badgeVariants, b_ as buttonVariants, b$ as cardVariants, c0 as closeOpenEmphasis, c1 as cn, c2 as configureEntityRegistry, c3 as configureRagLabels, c4 as configureStatusRegistry, c5 as formatFriendlyDate, c6 as friendlyFileType, c7 as getDocIcon, c8 as getDocumentTitle, c9 as getEntityColor, ca as getEntityColorStyles, cb as getEntityIcon, cc as getEntityLabel, cd as getStatusVariant, ce as getTagTypeIcon, cf as getTagTypeLabel, cg as getWorkspaceColor, ch as isAudioFile, ci as isDownloadOnlyFile, cj as isImageDocument, ck as isImageFile, cl as isMediaFile, cm as isVideoFile, cn as markdownBaseComponents, co as markdownSanitizeSchema, cp as normalizeCitationMarkup, cq as splitMarkdownBlocks, cr as tagKindNouns, cs as tagKindTitle, ct as toggleVariants, cu as trimOpenCitation, cv as useDictateContext, cw as usePortalContainer, cx as usesOriginalBytesForViewer } from './index-BV7pBlgY.js';
15
15
  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
- import { e as NotifyVariant } from './index-3E0neHf_.js';
20
- export { A as AppNotification, D as DEFAULT_NOTIFY_TONE, M as MAX_SESSION_NOTIFICATIONS, N as NotificationBell, a as NotificationBellProps, b as NotificationBellTriggerState, c as NotifyConfig, d as NotifyOptions, T as Toaster, f as configureNotify, n as notify, p as persistNotifyHistory, s as seedNotifications, g as selectUnread, u as useNotify } from './index-3E0neHf_.js';
19
+ import { g as SearchStatus, S as SearchSession, e as NotifyVariant } from './index-DyFzmDZ2.js';
20
+ export { A as AppNotification, D as DEFAULT_NOTIFY_TONE, M as MAX_SESSION_NOTIFICATIONS, N as NotificationBell, a as NotificationBellProps, b as NotificationBellTriggerState, c as NotifyConfig, d as NotifyOptions, f as SearchSessionState, T as Toaster, h as clearSearchSession, i as configureNotify, j as createSearchSession, n as notify, p as persistNotifyHistory, k as persistSearchSession, r as requestSearch, s as seedNotifications, l as selectUnread, m as sharedSearchSession, t as takePendingSearch, u as useNotify } from './index-DyFzmDZ2.js';
21
21
  import { ColDef } from 'ag-grid-community';
22
22
  export { ToasterProps, toast } from 'sonner';
23
23
  import 'clsx';
@@ -41,6 +41,7 @@ import '@radix-ui/react-tabs';
41
41
  import '@radix-ui/react-toggle';
42
42
  import '@radix-ui/react-toggle-group';
43
43
  import 'rehype-sanitize';
44
+ import 'zustand/vanilla';
44
45
 
45
46
  type ArbiProviderProps = {
46
47
  children: ReactNode;
@@ -501,7 +502,6 @@ interface UseArbiShellWorkspacesOptions extends Omit<UseShellWorkspacesOptions,
501
502
  declare function useArbiShellWorkspaces(options?: UseArbiShellWorkspacesOptions): UseShellWorkspacesResult;
502
503
 
503
504
  type WorkspaceUpdate = components['schemas']['WorkspaceUpdateRequest'];
504
- type WorkspaceRole = 'owner' | 'collaborator' | 'guest';
505
505
  /** Change the open workspace's name, description or visibility. */
506
506
  declare function useUpdateWorkspace(): _tanstack_react_query.UseMutationResult<{
507
507
  external_id: string;
@@ -545,6 +545,12 @@ declare function useUpdateWorkspace(): _tanstack_react_query.UseMutationResult<{
545
545
  project_subscription?: string | null | undefined;
546
546
  project_owner_ext_id?: string | null | undefined;
547
547
  house_template_ext_id?: string | null | undefined;
548
+ archive?: {
549
+ status: "archiving" | "archived" | "restoring";
550
+ archived_at: string;
551
+ documents_done: number;
552
+ documents_total: number;
553
+ } | null | undefined;
548
554
  }, Error, {
549
555
  name?: string | null;
550
556
  description?: string | null;
@@ -553,14 +559,58 @@ declare function useUpdateWorkspace(): _tanstack_react_query.UseMutationResult<{
553
559
  project_ext_id?: string | null;
554
560
  house_template_ext_id?: string | null;
555
561
  }, unknown>;
556
- interface AddWorkspaceMembersVars {
557
- emails: string[];
558
- role?: WorkspaceRole;
559
- /** Invite the emails that are not on ARBI yet. */
560
- confirmInvite?: boolean;
561
- }
562
- /** Add members to the open workspace. Resolves to the memberships that were added. */
562
+
563
+ type WorkspaceMember = components['schemas']['WorkspaceUserResponse'];
564
+ type AddWorkspaceMembersRequest = components['schemas']['AddWorkspaceUsersRequest'];
565
+ type WorkspaceRole = 'owner' | 'collaborator' | 'guest';
566
+ /**
567
+ * A workspace's members (default: the open one). `beforeFetch` runs first (e.g. to re-open the
568
+ * workspace on the session); `enabled` overrides the "a workspace is open" gate.
569
+ */
570
+ declare function useWorkspaceUsers(workspaceId?: string | null, options?: {
571
+ enabled?: boolean;
572
+ beforeFetch?: () => Promise<unknown>;
573
+ }): _tanstack_react_query.UseQueryResult<NoInfer<{
574
+ user: components["schemas"]["UserResponse"];
575
+ role: components["schemas"]["WorkspaceRole"];
576
+ joined_at: string;
577
+ conversation_count: number;
578
+ document_count: number;
579
+ files_mb: number;
580
+ agent_ext_id?: string | null;
581
+ is_temporary: boolean;
582
+ }[]>, Error>;
583
+ /**
584
+ * Add people to a workspace, with the whole request: the open workspace, or `workspace_ext_id`
585
+ * with its key sealed to this session; a session-scoped grant (`session_pubkey_b64`); an invitation
586
+ * to people not on the platform (`confirm_invite`, which also leaves a pending grant on their
587
+ * contact); a share of one resource (`resource_type`, `resource_ext_id`). Resolves with the
588
+ * memberships added (someone already a member, or not on the platform, is missing from it).
589
+ */
563
590
  declare function useAddWorkspaceMembers(): _tanstack_react_query.UseMutationResult<{
591
+ user: components["schemas"]["UserResponse"];
592
+ role: components["schemas"]["WorkspaceRole"];
593
+ joined_at: string;
594
+ conversation_count: number;
595
+ document_count: number;
596
+ files_mb: number;
597
+ agent_ext_id?: string | null;
598
+ is_temporary: boolean;
599
+ }[], Error, {
600
+ emails: string[];
601
+ role: components["schemas"]["WorkspaceRole"];
602
+ workspace_key?: string | null;
603
+ workspace_ext_id?: string | null;
604
+ session_pubkey_b64?: string | null;
605
+ confirm_invite?: boolean | null;
606
+ resource_type?: ("document" | "conversation") | null;
607
+ resource_ext_id?: string | null;
608
+ confirm_share?: boolean | null;
609
+ }, unknown>;
610
+ /** Remove people from the open workspace (owners; anyone may remove themselves: leaving). */
611
+ declare function useRemoveWorkspaceMembers(): _tanstack_react_query.UseMutationResult<void, Error, string[], unknown>;
612
+ /** Change people's role in the open workspace (owners). */
613
+ declare function useSetWorkspaceMemberRoles(): _tanstack_react_query.UseMutationResult<{
564
614
  user: {
565
615
  external_id: string;
566
616
  parent_ext_id?: string | null | undefined;
@@ -579,9 +629,10 @@ declare function useAddWorkspaceMembers(): _tanstack_react_query.UseMutationResu
579
629
  files_mb: number;
580
630
  agent_ext_id?: string | null | undefined;
581
631
  is_temporary: boolean;
582
- }[], Error, AddWorkspaceMembersVars, unknown>;
583
- /** Remove members from the open workspace (yourself: leave it). */
584
- declare function useRemoveWorkspaceMembers(): _tanstack_react_query.UseMutationResult<void, Error, string[], unknown>;
632
+ }[], Error, {
633
+ userIds: string[];
634
+ role: WorkspaceRole;
635
+ }, unknown>;
585
636
 
586
637
  /**
587
638
  * Types for a document's parsed content (`GET /v1/document/{id}/parsed-{stage}`).
@@ -622,6 +673,8 @@ interface ParsedDocument {
622
673
 
623
674
  declare const arbiQueryKeys: {
624
675
  workspaces: () => readonly ["arbi", "workspaces"];
676
+ /** Every workspace's member list: what a workspace switch drops. */
677
+ allWorkspaceUsers: () => readonly ["arbi", "workspaceUsers"];
625
678
  workspaceUsers: (workspaceId: string) => readonly ["arbi", "workspaceUsers", string];
626
679
  /** Every workspace's documents list: the prefix a write patches when it does not know the workspace. */
627
680
  allDocuments: () => readonly ["arbi", "documents"];
@@ -679,6 +732,10 @@ declare const arbiQueryKeys: {
679
732
  projectUsage: (projectExtId: string, monthsBack: number) => readonly ["arbi", "projectUsage", string, number];
680
733
  projectConversationUsage: (projectExtId: string, monthsBack: number) => readonly ["arbi", "projectUsage", string, "byConversation", number];
681
734
  projectInvoices: (projectExtId: string) => readonly ["arbi", "projectInvoices", string];
735
+ /** The plans and add-ons on sale. */
736
+ products: () => readonly ["arbi", "products"];
737
+ /** Prices of a purchase or a change (quotes, previews); nothing is bought. */
738
+ billingQuotes: () => readonly ["arbi", "billingQuote"];
682
739
  userUsageToday: () => readonly ["arbi", "userUsageToday"];
683
740
  currentUser: () => readonly ["arbi", "currentUser"];
684
741
  firmPool: () => readonly ["arbi", "firmPool"];
@@ -713,6 +770,8 @@ declare const arbiQueryKeys: {
713
770
  * a `MutationCache` subscription: a workflow run creates a task in the host's own task list.
714
771
  */
715
772
  declare const arbiMutationKeys: {
773
+ /** A member's role changed. */
774
+ setWorkspaceMemberRoles: () => readonly ["arbi", "workspaces", "roles"];
716
775
  runWorkflow: () => readonly ["arbi", "workflows", "run"];
717
776
  updateTagKindSchema: () => readonly ["arbi", "tags", "kinds", "update"];
718
777
  createTag: () => readonly ["arbi", "tags", "create"];
@@ -730,30 +789,6 @@ declare const arbiMutationKeys: {
730
789
  /** Members added to or removed from a workspace (leaving included). */
731
790
  workspaceMembership: () => readonly ["arbi", "workspaces", "members"];
732
791
  };
733
- /** Workspace people for mentions and ownership. */
734
- declare function useWorkspaceUsers(workspaceId: string | undefined, options?: {
735
- enabled?: boolean;
736
- beforeFetch?: () => Promise<unknown>;
737
- }): _tanstack_react_query.UseQueryResult<NoInfer<{
738
- user: {
739
- external_id: string;
740
- parent_ext_id?: string | null | undefined;
741
- email: string;
742
- given_name: string;
743
- family_name?: string | null | undefined;
744
- picture?: string | null | undefined;
745
- encryption_public_key: string;
746
- is_sso: boolean;
747
- is_identity_verified: boolean;
748
- };
749
- role: _arbidocs_client.components["schemas"]["WorkspaceRole"];
750
- joined_at: string;
751
- conversation_count: number;
752
- document_count: number;
753
- files_mb: number;
754
- agent_ext_id?: string | null | undefined;
755
- is_temporary: boolean;
756
- }[]>, Error>;
757
792
  /** List the logged-in user's workspaces. */
758
793
  declare function useWorkspaces(options?: {
759
794
  enabled?: boolean;
@@ -799,6 +834,12 @@ declare function useWorkspaces(options?: {
799
834
  project_subscription?: string | null | undefined;
800
835
  project_owner_ext_id?: string | null | undefined;
801
836
  house_template_ext_id?: string | null | undefined;
837
+ archive?: {
838
+ status: "archiving" | "archived" | "restoring";
839
+ archived_at: string;
840
+ documents_done: number;
841
+ documents_total: number;
842
+ } | null | undefined;
802
843
  }[]>, Error>;
803
844
  /** Every version of the document `docId`, oldest first (`is_current` marks the current one). */
804
845
  declare function useDocumentVersionList(docId: string | null | undefined, options?: {
@@ -3188,86 +3229,1209 @@ declare function useSetTagValues(): _tanstack_react_query.UseMutationResult<{
3188
3229
  created_at: string;
3189
3230
  updated_at: string;
3190
3231
  }, Error, {
3191
- tagId: string;
3192
- values: Record<string, unknown>;
3193
- }, unknown>;
3194
- /**
3195
- * Delete a tag: it leaves the list (its sub-tags move to the top level on the server, so the list
3196
- * re-reads them), and the tables and facts re-read. A host that shows the tag on its own items
3197
- * (documents' tags) follows `arbiMutationKeys.deleteTag()` to drop it there.
3198
- */
3199
- declare function useDeleteTag(): _tanstack_react_query.UseMutationResult<{
3200
- detail: string;
3201
- }, Error, string, unknown>;
3202
- /**
3203
- * Find the people and organisations documents name and link each to its entity tag. Accepted at
3204
- * once with the documents' ids; a `batch_complete` (`entity_extract`) WebSocket message follows
3205
- * when they are done (a host following `arbiMutationKeys.extractEntities()` can show them running
3206
- * until then).
3207
- */
3208
- declare function useExtractEntities(): _tanstack_react_query.UseMutationResult<{
3209
- doc_ext_ids: string[];
3210
- kinds: string[];
3211
- }, Error, string[], unknown>;
3212
- /**
3213
- * A kind's fields in the open workspace (`'issue'`: its issue fields): the columns of a table of
3214
- * that kind's tags. The built-in ones (`is_default`) until the workspace sets its own.
3215
- */
3216
- declare function useTagKindSchema(kind: TagKind | null | undefined, options?: {
3217
- enabled?: boolean;
3218
- }): _tanstack_react_query.UseQueryResult<NoInfer<TagKindSchema>, Error>;
3219
- /**
3220
- * Set a kind's fields in full (a field with its `id` keeps its values; one without is new; one
3221
- * left out is removed). The kind's schema and the workspace's tags refresh.
3222
- */
3223
- declare function useUpdateTagKindSchema(): _tanstack_react_query.UseMutationResult<TagKindSchema, Error, {
3224
- kind: TagKind;
3225
- fields: TagFieldDefinition[];
3232
+ tagId: string;
3233
+ values: Record<string, unknown>;
3234
+ }, unknown>;
3235
+ /**
3236
+ * Delete a tag: it leaves the list (its sub-tags move to the top level on the server, so the list
3237
+ * re-reads them), and the tables and facts re-read. A host that shows the tag on its own items
3238
+ * (documents' tags) follows `arbiMutationKeys.deleteTag()` to drop it there.
3239
+ */
3240
+ declare function useDeleteTag(): _tanstack_react_query.UseMutationResult<{
3241
+ detail: string;
3242
+ }, Error, string, unknown>;
3243
+ /**
3244
+ * Find the people and organisations documents name and link each to its entity tag. Accepted at
3245
+ * once with the documents' ids; a `batch_complete` (`entity_extract`) WebSocket message follows
3246
+ * when they are done (a host following `arbiMutationKeys.extractEntities()` can show them running
3247
+ * until then).
3248
+ */
3249
+ declare function useExtractEntities(): _tanstack_react_query.UseMutationResult<{
3250
+ doc_ext_ids: string[];
3251
+ kinds: string[];
3252
+ }, Error, string[], unknown>;
3253
+ /**
3254
+ * A kind's fields in the open workspace (`'issue'`: its issue fields): the columns of a table of
3255
+ * that kind's tags. The built-in ones (`is_default`) until the workspace sets its own.
3256
+ */
3257
+ declare function useTagKindSchema(kind: TagKind | null | undefined, options?: {
3258
+ enabled?: boolean;
3259
+ }): _tanstack_react_query.UseQueryResult<NoInfer<TagKindSchema>, Error>;
3260
+ /**
3261
+ * Set a kind's fields in full (a field with its `id` keeps its values; one without is new; one
3262
+ * left out is removed). The kind's schema and the workspace's tags refresh.
3263
+ */
3264
+ declare function useUpdateTagKindSchema(): _tanstack_react_query.UseMutationResult<TagKindSchema, Error, {
3265
+ kind: TagKind;
3266
+ fields: TagFieldDefinition[];
3267
+ }, unknown>;
3268
+
3269
+ /**
3270
+ * Cited passages' text, read live from their documents. A citation stores only chunk ids (plus the
3271
+ * document and page); the passage text stays encrypted in the document, so an excerpt is read on
3272
+ * demand from the document's parsed content — the same `final` stage the viewer renders and
3273
+ * highlights from, cached with it (`useParsedDocument`), one read per distinct document.
3274
+ */
3275
+ /** A passage's excerpt (raw markdown) by its chunk id; undefined while loading or unknown. */
3276
+ type QuoteResolver = (chunkId: string) => string | undefined;
3277
+ /** A passage's 0-based position in its document (`Infinity` while loading or unknown). */
3278
+ type OrderResolver = (chunkId: string) => number;
3279
+ interface PassageResolvers {
3280
+ quoteFor: QuoteResolver;
3281
+ orderOf: OrderResolver;
3282
+ }
3283
+ /**
3284
+ * Resolve the passages of these documents (`null`: none yet — e.g. until a list is opened, so a
3285
+ * closed popover reads nothing).
3286
+ */
3287
+ declare function usePassageQuotes(docIds: readonly string[] | null | undefined): PassageResolvers;
3288
+
3289
+ /**
3290
+ * Offline writes that survive a reload — opt in. A mutation made while offline pauses and is sent on
3291
+ * reconnect; a host that also persists its query cache (`@tanstack/react-query-persist-client`)
3292
+ * keeps the paused write across a reload, but the restored mutation has lost its function. Call
3293
+ * {@link registerArbiMutationDefaults} once on the query client, before the persisted cache is
3294
+ * restored and `resumePausedMutations()` runs: it gives each replayable package write its request
3295
+ * back (on a bare client: the hook's `Arbi` may not exist yet) and what its success does to the
3296
+ * cache. {@link isReplayableArbiMutation} says which writes those are, for a host's
3297
+ * `shouldDehydrateMutation` and its pending-changes list.
3298
+ *
3299
+ * Replayable: creating a tag (`useCreateTag`), editing documents' fields (`useUpdateDocuments`),
3300
+ * and applying, removing or re-noting a tag on documents (`useAssignDocTags`, `useRemoveDocTags`,
3301
+ * `useUpdateDocTag`).
3302
+ */
3303
+
3304
+ /** Whether a mutation is a package write that can be queued offline and replayed after a reload. */
3305
+ declare function isReplayableArbiMutation(mutationKey: MutationKey | undefined): boolean;
3306
+ /**
3307
+ * Re-supply the replayable package writes on `queryClient` (see the module comment). `client` is
3308
+ * the host's API client, read when a restored write is sent.
3309
+ */
3310
+ declare function registerArbiMutationDefaults(queryClient: QueryClient, client: () => ArbiClient): void;
3311
+ /**
3312
+ * Whether a package query is worth persisting for an offline start (a host's
3313
+ * `shouldDehydrateQuery`): the documents lists, documents, their versions and near-duplicate
3314
+ * pairs, and workspace members — metadata, never a document's content.
3315
+ */
3316
+ declare function isOfflineReadableArbiQuery(queryKey: QueryKey): boolean;
3317
+ /**
3318
+ * Whether a persisted package query may be restored when the app starts online. Not a documents
3319
+ * list (it is never re-read on its own, so a stale copy would be trusted all session: it loads
3320
+ * fresh instead), nor a document saved while still processing (its saved freshness would keep it
3321
+ * "processing" with no re-read). Offline, everything persisted is restored.
3322
+ */
3323
+ declare function isRestorableArbiQueryOnline(queryKey: QueryKey, data: unknown): boolean;
3324
+
3325
+ /** The caller's projects at `stage` and/or led by `leadUser` (`usr-…`). */
3326
+ declare function useFilteredProjects(filters: {
3327
+ stage?: string;
3328
+ leadUser?: string;
3329
+ }, options?: {
3330
+ enabled?: boolean;
3331
+ }): _tanstack_react_query.UseQueryResult<NoInfer<{
3332
+ external_id: string;
3333
+ name: string;
3334
+ created_by: string;
3335
+ subscription: string;
3336
+ created_at: string;
3337
+ quotas: {
3338
+ storage_gb: {
3339
+ used: number;
3340
+ limit: number;
3341
+ };
3342
+ ai_usage: {
3343
+ used: number;
3344
+ limit: number;
3345
+ };
3346
+ collaborators: {
3347
+ used: number;
3348
+ limit: number;
3349
+ };
3350
+ budget_reset_at?: number | null | undefined;
3351
+ };
3352
+ daily_cap_per_user?: number | null | undefined;
3353
+ budget?: {
3354
+ amount: number;
3355
+ currency: string;
3356
+ } | null | undefined;
3357
+ client?: string | null | undefined;
3358
+ client_ref?: string | null | undefined;
3359
+ stage?: string | null | undefined;
3360
+ stage_changed_at?: string | null | undefined;
3361
+ lead_user?: string | null | undefined;
3362
+ fields?: {
3363
+ [x: string]: unknown;
3364
+ } | undefined;
3365
+ field_schema?: {
3366
+ key: string;
3367
+ label?: string | null | undefined;
3368
+ type: "text" | "number" | "date" | "checkbox" | "select" | "person" | "document" | "relation" | "lookup" | "rollup" | "tag";
3369
+ options?: string[] | null | undefined;
3370
+ }[] | null | undefined;
3371
+ plan_interval?: ("month" | "year") | null | undefined;
3372
+ packs: number;
3373
+ plan_change?: {
3374
+ result: "upgraded" | "scheduled" | "unchanged" | "requires_action";
3375
+ charged_pence: number;
3376
+ charged_ex_vat_pence: number;
3377
+ confirm_url?: string | null | undefined;
3378
+ } | null | undefined;
3379
+ addons?: {
3380
+ packs: number;
3381
+ packs_next?: number | null | undefined;
3382
+ plan_name: string;
3383
+ plan_ai_gbp: number;
3384
+ plan_storage_gb: number;
3385
+ block_ai_gbp: number;
3386
+ block_storage_gb: number;
3387
+ ai_blocks: number;
3388
+ storage_blocks: number;
3389
+ legacy_ai_blocks: number;
3390
+ legacy_storage_blocks: number;
3391
+ legacy_block_ai_gbp: number;
3392
+ legacy_block_storage_gb: number;
3393
+ blocks_ai_gbp: number;
3394
+ blocks_storage_gb: number;
3395
+ ai_blocks_next?: number | null | undefined;
3396
+ storage_blocks_next?: number | null | undefined;
3397
+ storage_blocks_min: number;
3398
+ auto_topup_threshold_gbp: number;
3399
+ min_auto_topup_threshold_gbp: number;
3400
+ spend_cap_pence?: number | null | undefined;
3401
+ addon_spend_pence: number;
3402
+ auto_spent_pence: number;
3403
+ addon_spend_window_end?: number | null | undefined;
3404
+ manual_spent_pence: number;
3405
+ cap_left_pence?: number | null | undefined;
3406
+ ai_used_gbp: number;
3407
+ ai_allowance_gbp: number;
3408
+ ai_allowance_next_gbp: number;
3409
+ storage_used_gb: number;
3410
+ storage_allowance_gb: number;
3411
+ storage_allowance_next_gb: number;
3412
+ ai_block_monthly_pence: number;
3413
+ ai_block_monthly_ex_vat_pence: number;
3414
+ storage_block_monthly_pence: number;
3415
+ storage_block_monthly_ex_vat_pence: number;
3416
+ ai_block_period_pence: number;
3417
+ ai_block_period_ex_vat_pence: number;
3418
+ storage_block_period_pence: number;
3419
+ storage_block_period_ex_vat_pence: number;
3420
+ ai_block_price_pence: number;
3421
+ ai_block_price_ex_vat_pence: number;
3422
+ storage_block_price_pence: number;
3423
+ storage_block_price_ex_vat_pence: number;
3424
+ cap_reached: boolean;
3425
+ period_end?: number | null | undefined;
3426
+ ai_usage_reset_at?: number | null | undefined;
3427
+ pending_interval?: ("month" | "year") | null | undefined;
3428
+ billing_error?: string | null | undefined;
3429
+ confirm_url?: string | null | undefined;
3430
+ payment?: {
3431
+ status: "pending" | "paid";
3432
+ kind?: ("ai_usage" | "storage") | null | undefined;
3433
+ amount_pence?: number | null | undefined;
3434
+ amount_ex_vat_pence?: number | null | undefined;
3435
+ tax_pence?: number | null | undefined;
3436
+ at?: number | null | undefined;
3437
+ confirm_url?: string | null | undefined;
3438
+ } | null | undefined;
3439
+ } | null | undefined;
3440
+ price_id?: string | null | undefined;
3441
+ plan?: string | null | undefined;
3442
+ amount?: number | null | undefined;
3443
+ amount_ex_vat?: number | null | undefined;
3444
+ currency?: string | null | undefined;
3445
+ current_period_end?: number | null | undefined;
3446
+ cancel_at_period_end?: boolean | null | undefined;
3447
+ portal_url?: string | null | undefined;
3448
+ }[]>, Error>;
3449
+ /**
3450
+ * Patch a project (owner only): name, daily cap, and the details a host sets (`budget` in minor
3451
+ * units, `client`, `client_ref`, `stage`, `lead_user`, `fields` merged key by key, `field_schema`).
3452
+ * The project list, its events and the workspace list (which carries project names) refresh.
3453
+ */
3454
+ declare function useUpdateProjectFields(): _tanstack_react_query.UseMutationResult<{
3455
+ external_id: string;
3456
+ name: string;
3457
+ created_by: string;
3458
+ subscription: string;
3459
+ created_at: string;
3460
+ quotas: _arbidocs_client.components["schemas"]["ProjectQuotas"];
3461
+ daily_cap_per_user?: number | null;
3462
+ budget?: _arbidocs_client.components["schemas"]["ProjectBudget"] | null;
3463
+ client?: string | null;
3464
+ client_ref?: string | null;
3465
+ stage?: string | null;
3466
+ stage_changed_at?: string | null;
3467
+ lead_user?: string | null;
3468
+ fields?: {
3469
+ [key: string]: unknown;
3470
+ };
3471
+ field_schema?: _arbidocs_client.components["schemas"]["FieldSchemaEntry"][] | null;
3472
+ plan_interval?: ("month" | "year") | null;
3473
+ packs: number;
3474
+ plan_change?: _arbidocs_client.components["schemas"]["PlanChangeOutcome"] | null;
3475
+ addons?: _arbidocs_client.components["schemas"]["ProjectAddons"] | null;
3476
+ price_id?: string | null;
3477
+ plan?: string | null;
3478
+ amount?: number | null;
3479
+ amount_ex_vat?: number | null;
3480
+ currency?: string | null;
3481
+ current_period_end?: number | null;
3482
+ cancel_at_period_end?: boolean | null;
3483
+ portal_url?: string | null;
3484
+ }, Error, {
3485
+ projectExtId: string;
3486
+ patch: ProjectUpdateRequest;
3487
+ }, unknown>;
3488
+ /** A project's stage and budget changes, newest first. */
3489
+ declare function useProjectEvents(projectExtId: string | undefined, options?: {
3490
+ kind?: ProjectEventKind;
3491
+ limit?: number;
3492
+ enabled?: boolean;
3493
+ }): _tanstack_react_query.UseQueryResult<NoInfer<{
3494
+ external_id: string;
3495
+ kind: "stage_changed" | "budget_changed";
3496
+ actor?: string | null;
3497
+ detail: {
3498
+ [key: string]: unknown;
3499
+ };
3500
+ created_at: string;
3501
+ }[]>, Error>;
3502
+ /**
3503
+ * What a conversation's AI work cost this billing period, by step, run, model, agent and feature.
3504
+ * Spend is in £ (see `formatGbp`). Pass `live` while a run is going.
3505
+ */
3506
+ declare function useConversationUsage(conversationId: string | undefined, options?: {
3507
+ enabled?: boolean;
3508
+ live?: boolean;
3509
+ }): _tanstack_react_query.UseQueryResult<NoInfer<{
3510
+ conversation_ext_id: string;
3511
+ project_ext_id: string;
3512
+ period_start: string;
3513
+ period_end: string;
3514
+ total_spend: number;
3515
+ total_tokens: number;
3516
+ total_requests: number;
3517
+ by_step: {
3518
+ [key: string]: _arbidocs_client.components["schemas"]["TagBreakdown"];
3519
+ };
3520
+ by_run: {
3521
+ [key: string]: _arbidocs_client.components["schemas"]["TagBreakdown"];
3522
+ };
3523
+ by_model: {
3524
+ [key: string]: _arbidocs_client.components["schemas"]["TagBreakdown"];
3525
+ };
3526
+ by_agent: {
3527
+ [key: string]: _arbidocs_client.components["schemas"]["TagBreakdown"];
3528
+ };
3529
+ by_feature: {
3530
+ [key: string]: _arbidocs_client.components["schemas"]["TagBreakdown"];
3531
+ };
3532
+ }>, Error>;
3533
+ /** A project's spend by conversation (and what no conversation accounts for), in £. */
3534
+ declare function useProjectConversationUsage(projectExtId: string | undefined, monthsBack?: number, options?: {
3535
+ enabled?: boolean;
3536
+ }): _tanstack_react_query.UseQueryResult<NoInfer<{
3537
+ project_ext_id: string;
3538
+ period_start: string;
3539
+ period_end: string;
3540
+ total_spend: number;
3541
+ total_tokens: number;
3542
+ total_requests: number;
3543
+ by_conversation: {
3544
+ [key: string]: _arbidocs_client.components["schemas"]["TagBreakdown"];
3545
+ };
3546
+ unattributed: _arbidocs_client.components["schemas"]["TagBreakdown"];
3547
+ }>, Error>;
3548
+
3549
+ /**
3550
+ * useChargeWatch — feedback for a money action that can take a while ("Paying…", "Upgrading…").
3551
+ *
3552
+ * - After 5 s pending, `isSlow` turns on (show STILL_WORKING) and the projects list is refetched
3553
+ * every 3 s, so a change that lands while the request is still open shows up here.
3554
+ * - `watch(landed, onLanded)` at press time: `landed(project)` says whether the change shows on
3555
+ * the project. The first time it does, `onLanded` runs once (from a poll, the request's success,
3556
+ * or a check after a failure), so success is never reported twice.
3557
+ * - `settleFailure(onNotLanded)` after an error that doesn't say what happened (timeout, 5xx):
3558
+ * refetch, and report success if the change landed after all; otherwise `onNotLanded`.
3559
+ */
3560
+
3561
+ declare const SLOW_AFTER_MS = 5000;
3562
+ declare const POLL_EVERY_MS = 3000;
3563
+ declare const STILL_WORKING = "Still working \u2014 confirm in your bank's tab if it opened. We'll update here.";
3564
+ /** True once `isPending` has lasted `ms`. */
3565
+ declare function useIsSlow(isPending: boolean, ms?: number): boolean;
3566
+ interface Watch {
3567
+ landed: (project: ProjectResponse) => boolean;
3568
+ onLanded: () => void;
3569
+ settled: boolean;
3570
+ }
3571
+ declare function useChargeWatch(project: ProjectResponse, isPending: boolean): {
3572
+ isSlow: boolean;
3573
+ watch: (landed: Watch["landed"], onLanded: Watch["onLanded"]) => void;
3574
+ succeeded: () => void;
3575
+ refused: () => void;
3576
+ settleFailure: (onNotLanded: () => void) => Promise<void>;
3577
+ };
3578
+
3579
+ /** Refresh the project list now (e.g. a paid project to list before its refresh returns). */
3580
+ declare function useInvalidateProjects(): () => Promise<void>;
3581
+ /** The plans and add-ons on sale, with their prices. */
3582
+ declare function useProducts(options?: {
3583
+ enabled?: boolean;
3584
+ }): _tanstack_react_query.UseQueryResult<NoInfer<{
3585
+ product_id: string;
3586
+ name: string;
3587
+ description?: string | null | undefined;
3588
+ prices: {
3589
+ price_id: string;
3590
+ amount?: number | null | undefined;
3591
+ amount_ex_vat?: number | null | undefined;
3592
+ currency: string;
3593
+ interval: string;
3594
+ interval_count: number;
3595
+ default_price: boolean;
3596
+ pack_prices: {
3597
+ packs: number;
3598
+ amount: number;
3599
+ amount_ex_vat: number;
3600
+ }[];
3601
+ addon_prices: {
3602
+ kind: "ai_usage" | "storage";
3603
+ ai_gbp: number;
3604
+ storage_gb: number;
3605
+ amount_ex_vat: number;
3606
+ amount: number;
3607
+ monthly_ex_vat: number;
3608
+ monthly: number;
3609
+ }[];
3610
+ }[];
3611
+ }[]>, Error>;
3612
+ interface CreateProjectVars extends ProjectCreateOptions {
3613
+ name: string;
3614
+ plan?: 'free' | 'pro';
3615
+ }
3616
+ /** Create a project (Free is usable at once; Pro is pending until its checkout completes). */
3617
+ declare function useCreateProject(): _tanstack_react_query.UseMutationResult<{
3618
+ external_id: string;
3619
+ name: string;
3620
+ created_by: string;
3621
+ subscription: string;
3622
+ created_at: string;
3623
+ quotas: {
3624
+ storage_gb: {
3625
+ used: number;
3626
+ limit: number;
3627
+ };
3628
+ ai_usage: {
3629
+ used: number;
3630
+ limit: number;
3631
+ };
3632
+ collaborators: {
3633
+ used: number;
3634
+ limit: number;
3635
+ };
3636
+ budget_reset_at?: number | null | undefined;
3637
+ };
3638
+ daily_cap_per_user?: number | null | undefined;
3639
+ budget?: {
3640
+ amount: number;
3641
+ currency: string;
3642
+ } | null | undefined;
3643
+ client?: string | null | undefined;
3644
+ client_ref?: string | null | undefined;
3645
+ stage?: string | null | undefined;
3646
+ stage_changed_at?: string | null | undefined;
3647
+ lead_user?: string | null | undefined;
3648
+ fields?: {
3649
+ [x: string]: unknown;
3650
+ } | undefined;
3651
+ field_schema?: {
3652
+ key: string;
3653
+ label?: string | null | undefined;
3654
+ type: "text" | "number" | "date" | "checkbox" | "select" | "person" | "document" | "relation" | "lookup" | "rollup" | "tag";
3655
+ options?: string[] | null | undefined;
3656
+ }[] | null | undefined;
3657
+ plan_interval?: ("month" | "year") | null | undefined;
3658
+ packs: number;
3659
+ plan_change?: {
3660
+ result: "upgraded" | "scheduled" | "unchanged" | "requires_action";
3661
+ charged_pence: number;
3662
+ charged_ex_vat_pence: number;
3663
+ confirm_url?: string | null | undefined;
3664
+ } | null | undefined;
3665
+ addons?: {
3666
+ packs: number;
3667
+ packs_next?: number | null | undefined;
3668
+ plan_name: string;
3669
+ plan_ai_gbp: number;
3670
+ plan_storage_gb: number;
3671
+ block_ai_gbp: number;
3672
+ block_storage_gb: number;
3673
+ ai_blocks: number;
3674
+ storage_blocks: number;
3675
+ legacy_ai_blocks: number;
3676
+ legacy_storage_blocks: number;
3677
+ legacy_block_ai_gbp: number;
3678
+ legacy_block_storage_gb: number;
3679
+ blocks_ai_gbp: number;
3680
+ blocks_storage_gb: number;
3681
+ ai_blocks_next?: number | null | undefined;
3682
+ storage_blocks_next?: number | null | undefined;
3683
+ storage_blocks_min: number;
3684
+ auto_topup_threshold_gbp: number;
3685
+ min_auto_topup_threshold_gbp: number;
3686
+ spend_cap_pence?: number | null | undefined;
3687
+ addon_spend_pence: number;
3688
+ auto_spent_pence: number;
3689
+ addon_spend_window_end?: number | null | undefined;
3690
+ manual_spent_pence: number;
3691
+ cap_left_pence?: number | null | undefined;
3692
+ ai_used_gbp: number;
3693
+ ai_allowance_gbp: number;
3694
+ ai_allowance_next_gbp: number;
3695
+ storage_used_gb: number;
3696
+ storage_allowance_gb: number;
3697
+ storage_allowance_next_gb: number;
3698
+ ai_block_monthly_pence: number;
3699
+ ai_block_monthly_ex_vat_pence: number;
3700
+ storage_block_monthly_pence: number;
3701
+ storage_block_monthly_ex_vat_pence: number;
3702
+ ai_block_period_pence: number;
3703
+ ai_block_period_ex_vat_pence: number;
3704
+ storage_block_period_pence: number;
3705
+ storage_block_period_ex_vat_pence: number;
3706
+ ai_block_price_pence: number;
3707
+ ai_block_price_ex_vat_pence: number;
3708
+ storage_block_price_pence: number;
3709
+ storage_block_price_ex_vat_pence: number;
3710
+ cap_reached: boolean;
3711
+ period_end?: number | null | undefined;
3712
+ ai_usage_reset_at?: number | null | undefined;
3713
+ pending_interval?: ("month" | "year") | null | undefined;
3714
+ billing_error?: string | null | undefined;
3715
+ confirm_url?: string | null | undefined;
3716
+ payment?: {
3717
+ status: "pending" | "paid";
3718
+ kind?: ("ai_usage" | "storage") | null | undefined;
3719
+ amount_pence?: number | null | undefined;
3720
+ amount_ex_vat_pence?: number | null | undefined;
3721
+ tax_pence?: number | null | undefined;
3722
+ at?: number | null | undefined;
3723
+ confirm_url?: string | null | undefined;
3724
+ } | null | undefined;
3725
+ } | null | undefined;
3726
+ price_id?: string | null | undefined;
3727
+ plan?: string | null | undefined;
3728
+ amount?: number | null | undefined;
3729
+ amount_ex_vat?: number | null | undefined;
3730
+ currency?: string | null | undefined;
3731
+ current_period_end?: number | null | undefined;
3732
+ cancel_at_period_end?: boolean | null | undefined;
3733
+ portal_url?: string | null | undefined;
3734
+ }, Error, CreateProjectVars, unknown>;
3735
+ /** Delete an empty project (no workspaces, no subscription). */
3736
+ declare function useDeleteProject(): _tanstack_react_query.UseMutationResult<void, Error, string, unknown>;
3737
+ /** Re-read a project's subscription from Stripe (after a checkout completes). */
3738
+ declare function useRefreshProject(): _tanstack_react_query.UseMutationResult<{
3739
+ external_id: string;
3740
+ name: string;
3741
+ created_by: string;
3742
+ subscription: string;
3743
+ created_at: string;
3744
+ quotas: {
3745
+ storage_gb: {
3746
+ used: number;
3747
+ limit: number;
3748
+ };
3749
+ ai_usage: {
3750
+ used: number;
3751
+ limit: number;
3752
+ };
3753
+ collaborators: {
3754
+ used: number;
3755
+ limit: number;
3756
+ };
3757
+ budget_reset_at?: number | null | undefined;
3758
+ };
3759
+ daily_cap_per_user?: number | null | undefined;
3760
+ budget?: {
3761
+ amount: number;
3762
+ currency: string;
3763
+ } | null | undefined;
3764
+ client?: string | null | undefined;
3765
+ client_ref?: string | null | undefined;
3766
+ stage?: string | null | undefined;
3767
+ stage_changed_at?: string | null | undefined;
3768
+ lead_user?: string | null | undefined;
3769
+ fields?: {
3770
+ [x: string]: unknown;
3771
+ } | undefined;
3772
+ field_schema?: {
3773
+ key: string;
3774
+ label?: string | null | undefined;
3775
+ type: "text" | "number" | "date" | "checkbox" | "select" | "person" | "document" | "relation" | "lookup" | "rollup" | "tag";
3776
+ options?: string[] | null | undefined;
3777
+ }[] | null | undefined;
3778
+ plan_interval?: ("month" | "year") | null | undefined;
3779
+ packs: number;
3780
+ plan_change?: {
3781
+ result: "upgraded" | "scheduled" | "unchanged" | "requires_action";
3782
+ charged_pence: number;
3783
+ charged_ex_vat_pence: number;
3784
+ confirm_url?: string | null | undefined;
3785
+ } | null | undefined;
3786
+ addons?: {
3787
+ packs: number;
3788
+ packs_next?: number | null | undefined;
3789
+ plan_name: string;
3790
+ plan_ai_gbp: number;
3791
+ plan_storage_gb: number;
3792
+ block_ai_gbp: number;
3793
+ block_storage_gb: number;
3794
+ ai_blocks: number;
3795
+ storage_blocks: number;
3796
+ legacy_ai_blocks: number;
3797
+ legacy_storage_blocks: number;
3798
+ legacy_block_ai_gbp: number;
3799
+ legacy_block_storage_gb: number;
3800
+ blocks_ai_gbp: number;
3801
+ blocks_storage_gb: number;
3802
+ ai_blocks_next?: number | null | undefined;
3803
+ storage_blocks_next?: number | null | undefined;
3804
+ storage_blocks_min: number;
3805
+ auto_topup_threshold_gbp: number;
3806
+ min_auto_topup_threshold_gbp: number;
3807
+ spend_cap_pence?: number | null | undefined;
3808
+ addon_spend_pence: number;
3809
+ auto_spent_pence: number;
3810
+ addon_spend_window_end?: number | null | undefined;
3811
+ manual_spent_pence: number;
3812
+ cap_left_pence?: number | null | undefined;
3813
+ ai_used_gbp: number;
3814
+ ai_allowance_gbp: number;
3815
+ ai_allowance_next_gbp: number;
3816
+ storage_used_gb: number;
3817
+ storage_allowance_gb: number;
3818
+ storage_allowance_next_gb: number;
3819
+ ai_block_monthly_pence: number;
3820
+ ai_block_monthly_ex_vat_pence: number;
3821
+ storage_block_monthly_pence: number;
3822
+ storage_block_monthly_ex_vat_pence: number;
3823
+ ai_block_period_pence: number;
3824
+ ai_block_period_ex_vat_pence: number;
3825
+ storage_block_period_pence: number;
3826
+ storage_block_period_ex_vat_pence: number;
3827
+ ai_block_price_pence: number;
3828
+ ai_block_price_ex_vat_pence: number;
3829
+ storage_block_price_pence: number;
3830
+ storage_block_price_ex_vat_pence: number;
3831
+ cap_reached: boolean;
3832
+ period_end?: number | null | undefined;
3833
+ ai_usage_reset_at?: number | null | undefined;
3834
+ pending_interval?: ("month" | "year") | null | undefined;
3835
+ billing_error?: string | null | undefined;
3836
+ confirm_url?: string | null | undefined;
3837
+ payment?: {
3838
+ status: "pending" | "paid";
3839
+ kind?: ("ai_usage" | "storage") | null | undefined;
3840
+ amount_pence?: number | null | undefined;
3841
+ amount_ex_vat_pence?: number | null | undefined;
3842
+ tax_pence?: number | null | undefined;
3843
+ at?: number | null | undefined;
3844
+ confirm_url?: string | null | undefined;
3845
+ } | null | undefined;
3846
+ } | null | undefined;
3847
+ price_id?: string | null | undefined;
3848
+ plan?: string | null | undefined;
3849
+ amount?: number | null | undefined;
3850
+ amount_ex_vat?: number | null | undefined;
3851
+ currency?: string | null | undefined;
3852
+ current_period_end?: number | null | undefined;
3853
+ cancel_at_period_end?: boolean | null | undefined;
3854
+ portal_url?: string | null | undefined;
3855
+ }, Error, string, unknown>;
3856
+ /** Start an embedded Stripe checkout for a project; resolves to its `client_secret`. */
3857
+ declare function useCreateProjectCheckout(): _tanstack_react_query.UseMutationResult<{
3858
+ client_secret: string;
3859
+ }, Error, {
3860
+ projectExtId: string;
3861
+ body: ProjectCheckoutRequest;
3862
+ }, unknown>;
3863
+ /**
3864
+ * Switch a Pro project between monthly and annual billing at the end of the period; the current
3865
+ * interval clears a pending switch, and resumes a project set to cancel. Resolves to the project.
3866
+ */
3867
+ declare function useChangeProjectPlan(): _tanstack_react_query.UseMutationResult<{
3868
+ external_id: string;
3869
+ name: string;
3870
+ created_by: string;
3871
+ subscription: string;
3872
+ created_at: string;
3873
+ quotas: {
3874
+ storage_gb: {
3875
+ used: number;
3876
+ limit: number;
3877
+ };
3878
+ ai_usage: {
3879
+ used: number;
3880
+ limit: number;
3881
+ };
3882
+ collaborators: {
3883
+ used: number;
3884
+ limit: number;
3885
+ };
3886
+ budget_reset_at?: number | null | undefined;
3887
+ };
3888
+ daily_cap_per_user?: number | null | undefined;
3889
+ budget?: {
3890
+ amount: number;
3891
+ currency: string;
3892
+ } | null | undefined;
3893
+ client?: string | null | undefined;
3894
+ client_ref?: string | null | undefined;
3895
+ stage?: string | null | undefined;
3896
+ stage_changed_at?: string | null | undefined;
3897
+ lead_user?: string | null | undefined;
3898
+ fields?: {
3899
+ [x: string]: unknown;
3900
+ } | undefined;
3901
+ field_schema?: {
3902
+ key: string;
3903
+ label?: string | null | undefined;
3904
+ type: "text" | "number" | "date" | "checkbox" | "select" | "person" | "document" | "relation" | "lookup" | "rollup" | "tag";
3905
+ options?: string[] | null | undefined;
3906
+ }[] | null | undefined;
3907
+ plan_interval?: ("month" | "year") | null | undefined;
3908
+ packs: number;
3909
+ plan_change?: {
3910
+ result: "upgraded" | "scheduled" | "unchanged" | "requires_action";
3911
+ charged_pence: number;
3912
+ charged_ex_vat_pence: number;
3913
+ confirm_url?: string | null | undefined;
3914
+ } | null | undefined;
3915
+ addons?: {
3916
+ packs: number;
3917
+ packs_next?: number | null | undefined;
3918
+ plan_name: string;
3919
+ plan_ai_gbp: number;
3920
+ plan_storage_gb: number;
3921
+ block_ai_gbp: number;
3922
+ block_storage_gb: number;
3923
+ ai_blocks: number;
3924
+ storage_blocks: number;
3925
+ legacy_ai_blocks: number;
3926
+ legacy_storage_blocks: number;
3927
+ legacy_block_ai_gbp: number;
3928
+ legacy_block_storage_gb: number;
3929
+ blocks_ai_gbp: number;
3930
+ blocks_storage_gb: number;
3931
+ ai_blocks_next?: number | null | undefined;
3932
+ storage_blocks_next?: number | null | undefined;
3933
+ storage_blocks_min: number;
3934
+ auto_topup_threshold_gbp: number;
3935
+ min_auto_topup_threshold_gbp: number;
3936
+ spend_cap_pence?: number | null | undefined;
3937
+ addon_spend_pence: number;
3938
+ auto_spent_pence: number;
3939
+ addon_spend_window_end?: number | null | undefined;
3940
+ manual_spent_pence: number;
3941
+ cap_left_pence?: number | null | undefined;
3942
+ ai_used_gbp: number;
3943
+ ai_allowance_gbp: number;
3944
+ ai_allowance_next_gbp: number;
3945
+ storage_used_gb: number;
3946
+ storage_allowance_gb: number;
3947
+ storage_allowance_next_gb: number;
3948
+ ai_block_monthly_pence: number;
3949
+ ai_block_monthly_ex_vat_pence: number;
3950
+ storage_block_monthly_pence: number;
3951
+ storage_block_monthly_ex_vat_pence: number;
3952
+ ai_block_period_pence: number;
3953
+ ai_block_period_ex_vat_pence: number;
3954
+ storage_block_period_pence: number;
3955
+ storage_block_period_ex_vat_pence: number;
3956
+ ai_block_price_pence: number;
3957
+ ai_block_price_ex_vat_pence: number;
3958
+ storage_block_price_pence: number;
3959
+ storage_block_price_ex_vat_pence: number;
3960
+ cap_reached: boolean;
3961
+ period_end?: number | null | undefined;
3962
+ ai_usage_reset_at?: number | null | undefined;
3963
+ pending_interval?: ("month" | "year") | null | undefined;
3964
+ billing_error?: string | null | undefined;
3965
+ confirm_url?: string | null | undefined;
3966
+ payment?: {
3967
+ status: "pending" | "paid";
3968
+ kind?: ("ai_usage" | "storage") | null | undefined;
3969
+ amount_pence?: number | null | undefined;
3970
+ amount_ex_vat_pence?: number | null | undefined;
3971
+ tax_pence?: number | null | undefined;
3972
+ at?: number | null | undefined;
3973
+ confirm_url?: string | null | undefined;
3974
+ } | null | undefined;
3975
+ } | null | undefined;
3976
+ price_id?: string | null | undefined;
3977
+ plan?: string | null | undefined;
3978
+ amount?: number | null | undefined;
3979
+ amount_ex_vat?: number | null | undefined;
3980
+ currency?: string | null | undefined;
3981
+ current_period_end?: number | null | undefined;
3982
+ cancel_at_period_end?: boolean | null | undefined;
3983
+ portal_url?: string | null | undefined;
3984
+ }, Error, {
3985
+ projectExtId: string;
3986
+ body: ProjectPlanChangeRequest;
3987
+ }, unknown>;
3988
+ /** Move a Pro project to Free at the end of the period (no refunds). */
3989
+ declare function useCancelProjectSubscription(): _tanstack_react_query.UseMutationResult<{
3990
+ external_id: string;
3991
+ name: string;
3992
+ created_by: string;
3993
+ subscription: string;
3994
+ created_at: string;
3995
+ quotas: {
3996
+ storage_gb: {
3997
+ used: number;
3998
+ limit: number;
3999
+ };
4000
+ ai_usage: {
4001
+ used: number;
4002
+ limit: number;
4003
+ };
4004
+ collaborators: {
4005
+ used: number;
4006
+ limit: number;
4007
+ };
4008
+ budget_reset_at?: number | null | undefined;
4009
+ };
4010
+ daily_cap_per_user?: number | null | undefined;
4011
+ budget?: {
4012
+ amount: number;
4013
+ currency: string;
4014
+ } | null | undefined;
4015
+ client?: string | null | undefined;
4016
+ client_ref?: string | null | undefined;
4017
+ stage?: string | null | undefined;
4018
+ stage_changed_at?: string | null | undefined;
4019
+ lead_user?: string | null | undefined;
4020
+ fields?: {
4021
+ [x: string]: unknown;
4022
+ } | undefined;
4023
+ field_schema?: {
4024
+ key: string;
4025
+ label?: string | null | undefined;
4026
+ type: "text" | "number" | "date" | "checkbox" | "select" | "person" | "document" | "relation" | "lookup" | "rollup" | "tag";
4027
+ options?: string[] | null | undefined;
4028
+ }[] | null | undefined;
4029
+ plan_interval?: ("month" | "year") | null | undefined;
4030
+ packs: number;
4031
+ plan_change?: {
4032
+ result: "upgraded" | "scheduled" | "unchanged" | "requires_action";
4033
+ charged_pence: number;
4034
+ charged_ex_vat_pence: number;
4035
+ confirm_url?: string | null | undefined;
4036
+ } | null | undefined;
4037
+ addons?: {
4038
+ packs: number;
4039
+ packs_next?: number | null | undefined;
4040
+ plan_name: string;
4041
+ plan_ai_gbp: number;
4042
+ plan_storage_gb: number;
4043
+ block_ai_gbp: number;
4044
+ block_storage_gb: number;
4045
+ ai_blocks: number;
4046
+ storage_blocks: number;
4047
+ legacy_ai_blocks: number;
4048
+ legacy_storage_blocks: number;
4049
+ legacy_block_ai_gbp: number;
4050
+ legacy_block_storage_gb: number;
4051
+ blocks_ai_gbp: number;
4052
+ blocks_storage_gb: number;
4053
+ ai_blocks_next?: number | null | undefined;
4054
+ storage_blocks_next?: number | null | undefined;
4055
+ storage_blocks_min: number;
4056
+ auto_topup_threshold_gbp: number;
4057
+ min_auto_topup_threshold_gbp: number;
4058
+ spend_cap_pence?: number | null | undefined;
4059
+ addon_spend_pence: number;
4060
+ auto_spent_pence: number;
4061
+ addon_spend_window_end?: number | null | undefined;
4062
+ manual_spent_pence: number;
4063
+ cap_left_pence?: number | null | undefined;
4064
+ ai_used_gbp: number;
4065
+ ai_allowance_gbp: number;
4066
+ ai_allowance_next_gbp: number;
4067
+ storage_used_gb: number;
4068
+ storage_allowance_gb: number;
4069
+ storage_allowance_next_gb: number;
4070
+ ai_block_monthly_pence: number;
4071
+ ai_block_monthly_ex_vat_pence: number;
4072
+ storage_block_monthly_pence: number;
4073
+ storage_block_monthly_ex_vat_pence: number;
4074
+ ai_block_period_pence: number;
4075
+ ai_block_period_ex_vat_pence: number;
4076
+ storage_block_period_pence: number;
4077
+ storage_block_period_ex_vat_pence: number;
4078
+ ai_block_price_pence: number;
4079
+ ai_block_price_ex_vat_pence: number;
4080
+ storage_block_price_pence: number;
4081
+ storage_block_price_ex_vat_pence: number;
4082
+ cap_reached: boolean;
4083
+ period_end?: number | null | undefined;
4084
+ ai_usage_reset_at?: number | null | undefined;
4085
+ pending_interval?: ("month" | "year") | null | undefined;
4086
+ billing_error?: string | null | undefined;
4087
+ confirm_url?: string | null | undefined;
4088
+ payment?: {
4089
+ status: "pending" | "paid";
4090
+ kind?: ("ai_usage" | "storage") | null | undefined;
4091
+ amount_pence?: number | null | undefined;
4092
+ amount_ex_vat_pence?: number | null | undefined;
4093
+ tax_pence?: number | null | undefined;
4094
+ at?: number | null | undefined;
4095
+ confirm_url?: string | null | undefined;
4096
+ } | null | undefined;
4097
+ } | null | undefined;
4098
+ price_id?: string | null | undefined;
4099
+ plan?: string | null | undefined;
4100
+ amount?: number | null | undefined;
4101
+ amount_ex_vat?: number | null | undefined;
4102
+ currency?: string | null | undefined;
4103
+ current_period_end?: number | null | undefined;
4104
+ cancel_at_period_end?: boolean | null | undefined;
4105
+ portal_url?: string | null | undefined;
4106
+ }, Error, string, unknown>;
4107
+ /** What a plan change would charge now and at the first renewal. `null` skips. */
4108
+ declare function usePreviewProjectPlanChange(projectExtId: string, change: {
4109
+ packs: number;
4110
+ interval: 'month' | 'year';
4111
+ } | null): _tanstack_react_query.UseQueryResult<NoInfer<{
4112
+ packs: number;
4113
+ plan_name: string;
4114
+ interval: "month" | "year";
4115
+ effective_now: boolean;
4116
+ unchanged: boolean;
4117
+ awaiting_confirmation: boolean;
4118
+ due_now_pence: number;
4119
+ due_now_ex_vat_pence: number;
4120
+ due_now_tax_pence: number;
4121
+ next_renewal_pence: number;
4122
+ next_renewal_ex_vat_pence: number;
4123
+ next_renewal_tax_pence: number;
4124
+ tax_label?: string | null | undefined;
4125
+ next_renewal_at?: number | null | undefined;
4126
+ }>, unknown>;
4127
+ /**
4128
+ * The taxed total of a Pro purchase for a billing address: for a new project without
4129
+ * `projectExtId`, else for that (Free) project. 422 `TAX_LOCATION_INVALID` asks for a ZIP /
4130
+ * postcode; 429 `QUOTE_RATE_LIMITED`. `null` skips.
4131
+ */
4132
+ declare function usePlanQuote(projectExtId: string | null | undefined, body: ProjectQuoteRequest | null): _tanstack_react_query.UseQueryResult<NoInfer<{
4133
+ subtotal_pence: number;
4134
+ tax_pence: number;
4135
+ total_pence: number;
4136
+ tax_label?: string | null | undefined;
4137
+ reverse_charge: boolean;
4138
+ country?: string | null | undefined;
4139
+ taxability_reason?: string | null | undefined;
4140
+ lines: {
4141
+ reference: string;
4142
+ subtotal_pence: number;
4143
+ tax_pence: number;
4144
+ }[];
4145
+ }>, unknown>;
4146
+ /** What one more add-on block costs now and at renewal, taxed for the saved address. */
4147
+ declare function useAddonQuote(projectExtId: string, kind: ProjectAddonKind, enabled?: boolean): _tanstack_react_query.UseQueryResult<NoInfer<{
4148
+ kind: "ai_usage" | "storage";
4149
+ now: {
4150
+ subtotal_pence: number;
4151
+ tax_pence: number;
4152
+ total_pence: number;
4153
+ tax_label?: string | null | undefined;
4154
+ reverse_charge: boolean;
4155
+ country?: string | null | undefined;
4156
+ taxability_reason?: string | null | undefined;
4157
+ lines: {
4158
+ reference: string;
4159
+ subtotal_pence: number;
4160
+ tax_pence: number;
4161
+ }[];
4162
+ };
4163
+ renewal: {
4164
+ subtotal_pence: number;
4165
+ tax_pence: number;
4166
+ total_pence: number;
4167
+ tax_label?: string | null | undefined;
4168
+ reverse_charge: boolean;
4169
+ country?: string | null | undefined;
4170
+ taxability_reason?: string | null | undefined;
4171
+ lines: {
4172
+ reference: string;
4173
+ subtotal_pence: number;
4174
+ tax_pence: number;
4175
+ }[];
4176
+ };
4177
+ }>, unknown>;
4178
+ /** A fresh, short-lived Stripe customer-portal link for a project; open it as soon as it arrives. */
4179
+ declare function useProjectBillingPortal(): _tanstack_react_query.UseMutationResult<{
4180
+ url: string;
4181
+ }, Error, string, unknown>;
4182
+ /**
4183
+ * Buy one add-on block (AI usage or storage) on a Pro project, charged now and renewed every period
4184
+ * until reduced. `status: 'requires_action'` comes with a `confirm_url` (3-D Secure).
4185
+ */
4186
+ declare function useAddProjectAddonBlock(): _tanstack_react_query.UseMutationResult<{
4187
+ status: "paid" | "requires_action";
4188
+ confirm_url?: string | null | undefined;
4189
+ project: {
4190
+ external_id: string;
4191
+ name: string;
4192
+ created_by: string;
4193
+ subscription: string;
4194
+ created_at: string;
4195
+ quotas: {
4196
+ storage_gb: {
4197
+ used: number;
4198
+ limit: number;
4199
+ };
4200
+ ai_usage: {
4201
+ used: number;
4202
+ limit: number;
4203
+ };
4204
+ collaborators: {
4205
+ used: number;
4206
+ limit: number;
4207
+ };
4208
+ budget_reset_at?: number | null | undefined;
4209
+ };
4210
+ daily_cap_per_user?: number | null | undefined;
4211
+ budget?: {
4212
+ amount: number;
4213
+ currency: string;
4214
+ } | null | undefined;
4215
+ client?: string | null | undefined;
4216
+ client_ref?: string | null | undefined;
4217
+ stage?: string | null | undefined;
4218
+ stage_changed_at?: string | null | undefined;
4219
+ lead_user?: string | null | undefined;
4220
+ fields?: {
4221
+ [x: string]: unknown;
4222
+ } | undefined;
4223
+ field_schema?: {
4224
+ key: string;
4225
+ label?: string | null | undefined;
4226
+ type: "text" | "number" | "date" | "checkbox" | "select" | "person" | "document" | "relation" | "lookup" | "rollup" | "tag";
4227
+ options?: string[] | null | undefined;
4228
+ }[] | null | undefined;
4229
+ plan_interval?: ("month" | "year") | null | undefined;
4230
+ packs: number;
4231
+ plan_change?: {
4232
+ result: "upgraded" | "scheduled" | "unchanged" | "requires_action";
4233
+ charged_pence: number;
4234
+ charged_ex_vat_pence: number;
4235
+ confirm_url?: string | null | undefined;
4236
+ } | null | undefined;
4237
+ addons?: {
4238
+ packs: number;
4239
+ packs_next?: number | null | undefined;
4240
+ plan_name: string;
4241
+ plan_ai_gbp: number;
4242
+ plan_storage_gb: number;
4243
+ block_ai_gbp: number;
4244
+ block_storage_gb: number;
4245
+ ai_blocks: number;
4246
+ storage_blocks: number;
4247
+ legacy_ai_blocks: number;
4248
+ legacy_storage_blocks: number;
4249
+ legacy_block_ai_gbp: number;
4250
+ legacy_block_storage_gb: number;
4251
+ blocks_ai_gbp: number;
4252
+ blocks_storage_gb: number;
4253
+ ai_blocks_next?: number | null | undefined;
4254
+ storage_blocks_next?: number | null | undefined;
4255
+ storage_blocks_min: number;
4256
+ auto_topup_threshold_gbp: number;
4257
+ min_auto_topup_threshold_gbp: number;
4258
+ spend_cap_pence?: number | null | undefined;
4259
+ addon_spend_pence: number;
4260
+ auto_spent_pence: number;
4261
+ addon_spend_window_end?: number | null | undefined;
4262
+ manual_spent_pence: number;
4263
+ cap_left_pence?: number | null | undefined;
4264
+ ai_used_gbp: number;
4265
+ ai_allowance_gbp: number;
4266
+ ai_allowance_next_gbp: number;
4267
+ storage_used_gb: number;
4268
+ storage_allowance_gb: number;
4269
+ storage_allowance_next_gb: number;
4270
+ ai_block_monthly_pence: number;
4271
+ ai_block_monthly_ex_vat_pence: number;
4272
+ storage_block_monthly_pence: number;
4273
+ storage_block_monthly_ex_vat_pence: number;
4274
+ ai_block_period_pence: number;
4275
+ ai_block_period_ex_vat_pence: number;
4276
+ storage_block_period_pence: number;
4277
+ storage_block_period_ex_vat_pence: number;
4278
+ ai_block_price_pence: number;
4279
+ ai_block_price_ex_vat_pence: number;
4280
+ storage_block_price_pence: number;
4281
+ storage_block_price_ex_vat_pence: number;
4282
+ cap_reached: boolean;
4283
+ period_end?: number | null | undefined;
4284
+ ai_usage_reset_at?: number | null | undefined;
4285
+ pending_interval?: ("month" | "year") | null | undefined;
4286
+ billing_error?: string | null | undefined;
4287
+ confirm_url?: string | null | undefined;
4288
+ payment?: {
4289
+ status: "pending" | "paid";
4290
+ kind?: ("ai_usage" | "storage") | null | undefined;
4291
+ amount_pence?: number | null | undefined;
4292
+ amount_ex_vat_pence?: number | null | undefined;
4293
+ tax_pence?: number | null | undefined;
4294
+ at?: number | null | undefined;
4295
+ confirm_url?: string | null | undefined;
4296
+ } | null | undefined;
4297
+ } | null | undefined;
4298
+ price_id?: string | null | undefined;
4299
+ plan?: string | null | undefined;
4300
+ amount?: number | null | undefined;
4301
+ amount_ex_vat?: number | null | undefined;
4302
+ currency?: string | null | undefined;
4303
+ current_period_end?: number | null | undefined;
4304
+ cancel_at_period_end?: boolean | null | undefined;
4305
+ portal_url?: string | null | undefined;
4306
+ };
4307
+ }, Error, {
4308
+ projectExtId: string;
4309
+ kind: ProjectAddonKind;
4310
+ }, unknown>;
4311
+ /** How many add-on blocks to keep from the next period (reductions only). */
4312
+ declare function useUpdateProjectNextPeriodAddons(): _tanstack_react_query.UseMutationResult<{
4313
+ external_id: string;
4314
+ name: string;
4315
+ created_by: string;
4316
+ subscription: string;
4317
+ created_at: string;
4318
+ quotas: {
4319
+ storage_gb: {
4320
+ used: number;
4321
+ limit: number;
4322
+ };
4323
+ ai_usage: {
4324
+ used: number;
4325
+ limit: number;
4326
+ };
4327
+ collaborators: {
4328
+ used: number;
4329
+ limit: number;
4330
+ };
4331
+ budget_reset_at?: number | null | undefined;
4332
+ };
4333
+ daily_cap_per_user?: number | null | undefined;
4334
+ budget?: {
4335
+ amount: number;
4336
+ currency: string;
4337
+ } | null | undefined;
4338
+ client?: string | null | undefined;
4339
+ client_ref?: string | null | undefined;
4340
+ stage?: string | null | undefined;
4341
+ stage_changed_at?: string | null | undefined;
4342
+ lead_user?: string | null | undefined;
4343
+ fields?: {
4344
+ [x: string]: unknown;
4345
+ } | undefined;
4346
+ field_schema?: {
4347
+ key: string;
4348
+ label?: string | null | undefined;
4349
+ type: "text" | "number" | "date" | "checkbox" | "select" | "person" | "document" | "relation" | "lookup" | "rollup" | "tag";
4350
+ options?: string[] | null | undefined;
4351
+ }[] | null | undefined;
4352
+ plan_interval?: ("month" | "year") | null | undefined;
4353
+ packs: number;
4354
+ plan_change?: {
4355
+ result: "upgraded" | "scheduled" | "unchanged" | "requires_action";
4356
+ charged_pence: number;
4357
+ charged_ex_vat_pence: number;
4358
+ confirm_url?: string | null | undefined;
4359
+ } | null | undefined;
4360
+ addons?: {
4361
+ packs: number;
4362
+ packs_next?: number | null | undefined;
4363
+ plan_name: string;
4364
+ plan_ai_gbp: number;
4365
+ plan_storage_gb: number;
4366
+ block_ai_gbp: number;
4367
+ block_storage_gb: number;
4368
+ ai_blocks: number;
4369
+ storage_blocks: number;
4370
+ legacy_ai_blocks: number;
4371
+ legacy_storage_blocks: number;
4372
+ legacy_block_ai_gbp: number;
4373
+ legacy_block_storage_gb: number;
4374
+ blocks_ai_gbp: number;
4375
+ blocks_storage_gb: number;
4376
+ ai_blocks_next?: number | null | undefined;
4377
+ storage_blocks_next?: number | null | undefined;
4378
+ storage_blocks_min: number;
4379
+ auto_topup_threshold_gbp: number;
4380
+ min_auto_topup_threshold_gbp: number;
4381
+ spend_cap_pence?: number | null | undefined;
4382
+ addon_spend_pence: number;
4383
+ auto_spent_pence: number;
4384
+ addon_spend_window_end?: number | null | undefined;
4385
+ manual_spent_pence: number;
4386
+ cap_left_pence?: number | null | undefined;
4387
+ ai_used_gbp: number;
4388
+ ai_allowance_gbp: number;
4389
+ ai_allowance_next_gbp: number;
4390
+ storage_used_gb: number;
4391
+ storage_allowance_gb: number;
4392
+ storage_allowance_next_gb: number;
4393
+ ai_block_monthly_pence: number;
4394
+ ai_block_monthly_ex_vat_pence: number;
4395
+ storage_block_monthly_pence: number;
4396
+ storage_block_monthly_ex_vat_pence: number;
4397
+ ai_block_period_pence: number;
4398
+ ai_block_period_ex_vat_pence: number;
4399
+ storage_block_period_pence: number;
4400
+ storage_block_period_ex_vat_pence: number;
4401
+ ai_block_price_pence: number;
4402
+ ai_block_price_ex_vat_pence: number;
4403
+ storage_block_price_pence: number;
4404
+ storage_block_price_ex_vat_pence: number;
4405
+ cap_reached: boolean;
4406
+ period_end?: number | null | undefined;
4407
+ ai_usage_reset_at?: number | null | undefined;
4408
+ pending_interval?: ("month" | "year") | null | undefined;
4409
+ billing_error?: string | null | undefined;
4410
+ confirm_url?: string | null | undefined;
4411
+ payment?: {
4412
+ status: "pending" | "paid";
4413
+ kind?: ("ai_usage" | "storage") | null | undefined;
4414
+ amount_pence?: number | null | undefined;
4415
+ amount_ex_vat_pence?: number | null | undefined;
4416
+ tax_pence?: number | null | undefined;
4417
+ at?: number | null | undefined;
4418
+ confirm_url?: string | null | undefined;
4419
+ } | null | undefined;
4420
+ } | null | undefined;
4421
+ price_id?: string | null | undefined;
4422
+ plan?: string | null | undefined;
4423
+ amount?: number | null | undefined;
4424
+ amount_ex_vat?: number | null | undefined;
4425
+ currency?: string | null | undefined;
4426
+ current_period_end?: number | null | undefined;
4427
+ cancel_at_period_end?: boolean | null | undefined;
4428
+ portal_url?: string | null | undefined;
4429
+ }, Error, {
4430
+ projectExtId: string;
4431
+ body: ProjectNextPeriodAddonsRequest;
3226
4432
  }, unknown>;
3227
-
3228
- /**
3229
- * Offline writes that survive a reload — opt in. A mutation made while offline pauses and is sent on
3230
- * reconnect; a host that also persists its query cache (`@tanstack/react-query-persist-client`)
3231
- * keeps the paused write across a reload, but the restored mutation has lost its function. Call
3232
- * {@link registerArbiMutationDefaults} once on the query client, before the persisted cache is
3233
- * restored and `resumePausedMutations()` runs: it gives each replayable package write its request
3234
- * back (on a bare client: the hook's `Arbi` may not exist yet) and what its success does to the
3235
- * cache. {@link isReplayableArbiMutation} says which writes those are, for a host's
3236
- * `shouldDehydrateMutation` and its pending-changes list.
3237
- *
3238
- * Replayable: creating a tag (`useCreateTag`), editing documents' fields (`useUpdateDocuments`),
3239
- * and applying, removing or re-noting a tag on documents (`useAssignDocTags`, `useRemoveDocTags`,
3240
- * `useUpdateDocTag`).
3241
- */
3242
-
3243
- /** Whether a mutation is a package write that can be queued offline and replayed after a reload. */
3244
- declare function isReplayableArbiMutation(mutationKey: MutationKey | undefined): boolean;
3245
- /**
3246
- * Re-supply the replayable package writes on `queryClient` (see the module comment). `client` is
3247
- * the host's API client, read when a restored write is sent.
3248
- */
3249
- declare function registerArbiMutationDefaults(queryClient: QueryClient, client: () => ArbiClient): void;
3250
- /**
3251
- * Whether a package query is worth persisting for an offline start (a host's
3252
- * `shouldDehydrateQuery`): the documents lists, documents, their versions and near-duplicate
3253
- * pairs — metadata, never a document's content.
3254
- */
3255
- declare function isOfflineReadableArbiQuery(queryKey: QueryKey): boolean;
3256
- /**
3257
- * Whether a persisted package query may be restored when the app starts online. Not a documents
3258
- * list (it is never re-read on its own, so a stale copy would be trusted all session: it loads
3259
- * fresh instead), nor a document saved while still processing (its saved freshness would keep it
3260
- * "processing" with no re-read). Offline, everything persisted is restored.
3261
- */
3262
- declare function isRestorableArbiQueryOnline(queryKey: QueryKey, data: unknown): boolean;
3263
-
3264
- /** The caller's projects at `stage` and/or led by `leadUser` (`usr-…`). */
3265
- declare function useFilteredProjects(filters: {
3266
- stage?: string;
3267
- leadUser?: string;
3268
- }, options?: {
3269
- enabled?: boolean;
3270
- }): _tanstack_react_query.UseQueryResult<NoInfer<{
4433
+ /** A Pro project's add-on settings: the auto top-up threshold and the monthly usage cap. */
4434
+ declare function useUpdateProjectAddonSettings(): _tanstack_react_query.UseMutationResult<{
3271
4435
  external_id: string;
3272
4436
  name: string;
3273
4437
  created_by: string;
@@ -3384,106 +4548,10 @@ declare function useFilteredProjects(filters: {
3384
4548
  current_period_end?: number | null | undefined;
3385
4549
  cancel_at_period_end?: boolean | null | undefined;
3386
4550
  portal_url?: string | null | undefined;
3387
- }[]>, Error>;
3388
- /**
3389
- * Patch a project (owner only): name, daily cap, and the details a host sets (`budget` in minor
3390
- * units, `client`, `client_ref`, `stage`, `lead_user`, `fields` merged key by key, `field_schema`).
3391
- * The project list and the project's events refresh.
3392
- */
3393
- declare function useUpdateProjectFields(): _tanstack_react_query.UseMutationResult<{
3394
- external_id: string;
3395
- name: string;
3396
- created_by: string;
3397
- subscription: string;
3398
- created_at: string;
3399
- quotas: _arbidocs_client.components["schemas"]["ProjectQuotas"];
3400
- daily_cap_per_user?: number | null;
3401
- budget?: _arbidocs_client.components["schemas"]["ProjectBudget"] | null;
3402
- client?: string | null;
3403
- client_ref?: string | null;
3404
- stage?: string | null;
3405
- stage_changed_at?: string | null;
3406
- lead_user?: string | null;
3407
- fields?: {
3408
- [key: string]: unknown;
3409
- };
3410
- field_schema?: _arbidocs_client.components["schemas"]["FieldSchemaEntry"][] | null;
3411
- plan_interval?: ("month" | "year") | null;
3412
- packs: number;
3413
- plan_change?: _arbidocs_client.components["schemas"]["PlanChangeOutcome"] | null;
3414
- addons?: _arbidocs_client.components["schemas"]["ProjectAddons"] | null;
3415
- price_id?: string | null;
3416
- plan?: string | null;
3417
- amount?: number | null;
3418
- amount_ex_vat?: number | null;
3419
- currency?: string | null;
3420
- current_period_end?: number | null;
3421
- cancel_at_period_end?: boolean | null;
3422
- portal_url?: string | null;
3423
4551
  }, Error, {
3424
4552
  projectExtId: string;
3425
- patch: ProjectUpdateRequest;
4553
+ body: ProjectAddonSettingsRequest;
3426
4554
  }, unknown>;
3427
- /** A project's stage and budget changes, newest first. */
3428
- declare function useProjectEvents(projectExtId: string | undefined, options?: {
3429
- kind?: ProjectEventKind;
3430
- limit?: number;
3431
- enabled?: boolean;
3432
- }): _tanstack_react_query.UseQueryResult<NoInfer<{
3433
- external_id: string;
3434
- kind: "stage_changed" | "budget_changed";
3435
- actor?: string | null;
3436
- detail: {
3437
- [key: string]: unknown;
3438
- };
3439
- created_at: string;
3440
- }[]>, Error>;
3441
- /**
3442
- * What a conversation's AI work cost this billing period, by step, run, model, agent and feature.
3443
- * Spend is in £ (see `formatGbp`). Pass `live` while a run is going.
3444
- */
3445
- declare function useConversationUsage(conversationId: string | undefined, options?: {
3446
- enabled?: boolean;
3447
- live?: boolean;
3448
- }): _tanstack_react_query.UseQueryResult<NoInfer<{
3449
- conversation_ext_id: string;
3450
- project_ext_id: string;
3451
- period_start: string;
3452
- period_end: string;
3453
- total_spend: number;
3454
- total_tokens: number;
3455
- total_requests: number;
3456
- by_step: {
3457
- [key: string]: _arbidocs_client.components["schemas"]["TagBreakdown"];
3458
- };
3459
- by_run: {
3460
- [key: string]: _arbidocs_client.components["schemas"]["TagBreakdown"];
3461
- };
3462
- by_model: {
3463
- [key: string]: _arbidocs_client.components["schemas"]["TagBreakdown"];
3464
- };
3465
- by_agent: {
3466
- [key: string]: _arbidocs_client.components["schemas"]["TagBreakdown"];
3467
- };
3468
- by_feature: {
3469
- [key: string]: _arbidocs_client.components["schemas"]["TagBreakdown"];
3470
- };
3471
- }>, Error>;
3472
- /** A project's spend by conversation (and what no conversation accounts for), in £. */
3473
- declare function useProjectConversationUsage(projectExtId: string | undefined, monthsBack?: number, options?: {
3474
- enabled?: boolean;
3475
- }): _tanstack_react_query.UseQueryResult<NoInfer<{
3476
- project_ext_id: string;
3477
- period_start: string;
3478
- period_end: string;
3479
- total_spend: number;
3480
- total_tokens: number;
3481
- total_requests: number;
3482
- by_conversation: {
3483
- [key: string]: _arbidocs_client.components["schemas"]["TagBreakdown"];
3484
- };
3485
- unattributed: _arbidocs_client.components["schemas"]["TagBreakdown"];
3486
- }>, Error>;
3487
4555
 
3488
4556
  /** Every contact: registered, invited and plain cards. */
3489
4557
  declare function useContacts(options?: {
@@ -3965,6 +5033,8 @@ declare function useSearchContacts(q: string, { debounceMs }?: {
3965
5033
  name?: string | null;
3966
5034
  user_id?: string | null;
3967
5035
  contact_id?: string | null;
5036
+ address_book_ext_id?: string | null;
5037
+ registered: boolean;
3968
5038
  source: "contacts" | "arbi";
3969
5039
  }[]>, Error>;
3970
5040
 
@@ -4971,7 +6041,6 @@ declare const calendarQueryKeys: {
4971
6041
  } | null];
4972
6042
  accounts: () => readonly ["arbi", "calendar", "accounts"];
4973
6043
  caldavProfiles: () => readonly ["arbi", "calendar", "caldav-profiles"];
4974
- appPasswords: () => readonly ["arbi", "calendar", "app-passwords"];
4975
6044
  bookingPages: () => readonly ["arbi", "calendar", "booking-pages"];
4976
6045
  /** The offline outbox (writes made offline, not yet sent). */
4977
6046
  outbox: () => readonly ["arbi", "calendar", "outbox"];
@@ -5066,7 +6135,7 @@ declare function useCalendars(enabled?: boolean): _tanstack_react_query.UseQuery
5066
6135
  description?: string | null;
5067
6136
  color: string;
5068
6137
  timezone: string;
5069
- kind: "calendar" | "resource" | "subscription" | "holidays" | "birthdays" | "addressbook";
6138
+ kind: "calendar" | "resource" | "subscription" | "holidays" | "addressbook";
5070
6139
  role: "owner" | "delegate" | "write" | "read" | "read_basic" | "freebusy";
5071
6140
  is_default: boolean;
5072
6141
  hidden: boolean;
@@ -5317,7 +6386,7 @@ declare function useCreateCalendar(): _tanstack_react_query.UseMutationResult<{
5317
6386
  description?: string | null;
5318
6387
  color: string;
5319
6388
  timezone: string;
5320
- kind: "calendar" | "resource" | "subscription" | "holidays" | "birthdays" | "addressbook";
6389
+ kind: "calendar" | "resource" | "subscription" | "holidays" | "addressbook";
5321
6390
  role: "owner" | "delegate" | "write" | "read" | "read_basic" | "freebusy";
5322
6391
  is_default: boolean;
5323
6392
  hidden: boolean;
@@ -5342,7 +6411,7 @@ declare function useUpdateCalendar(): _tanstack_react_query.UseMutationResult<{
5342
6411
  description?: string | null;
5343
6412
  color: string;
5344
6413
  timezone: string;
5345
- kind: "calendar" | "resource" | "subscription" | "holidays" | "birthdays" | "addressbook";
6414
+ kind: "calendar" | "resource" | "subscription" | "holidays" | "addressbook";
5346
6415
  role: "owner" | "delegate" | "write" | "read" | "read_basic" | "freebusy";
5347
6416
  is_default: boolean;
5348
6417
  hidden: boolean;
@@ -5576,7 +6645,7 @@ declare function useSubscribeCalendar(): _tanstack_react_query.UseMutationResult
5576
6645
  description?: string | null;
5577
6646
  color: string;
5578
6647
  timezone: string;
5579
- kind: "calendar" | "resource" | "subscription" | "holidays" | "birthdays" | "addressbook";
6648
+ kind: "calendar" | "resource" | "subscription" | "holidays" | "addressbook";
5580
6649
  role: "owner" | "delegate" | "write" | "read" | "read_basic" | "freebusy";
5581
6650
  is_default: boolean;
5582
6651
  hidden: boolean;
@@ -5602,7 +6671,7 @@ declare function useAddHolidayCalendar(): _tanstack_react_query.UseMutationResul
5602
6671
  description?: string | null;
5603
6672
  color: string;
5604
6673
  timezone: string;
5605
- kind: "calendar" | "resource" | "subscription" | "holidays" | "birthdays" | "addressbook";
6674
+ kind: "calendar" | "resource" | "subscription" | "holidays" | "addressbook";
5606
6675
  role: "owner" | "delegate" | "write" | "read" | "read_basic" | "freebusy";
5607
6676
  is_default: boolean;
5608
6677
  hidden: boolean;
@@ -5701,7 +6770,7 @@ declare function usePublishCalendar(): _tanstack_react_query.UseMutationResult<{
5701
6770
  description?: string | null;
5702
6771
  color: string;
5703
6772
  timezone: string;
5704
- kind: "calendar" | "resource" | "subscription" | "holidays" | "birthdays" | "addressbook";
6773
+ kind: "calendar" | "resource" | "subscription" | "holidays" | "addressbook";
5705
6774
  role: "owner" | "delegate" | "write" | "read" | "read_basic" | "freebusy";
5706
6775
  is_default: boolean;
5707
6776
  hidden: boolean;
@@ -5822,45 +6891,6 @@ declare function resetCalendarAccountSyncState(): void;
5822
6891
  declare function useSyncAccountsOnOpen(enabled?: boolean): {
5823
6892
  syncing: boolean;
5824
6893
  };
5825
- declare function useAppPasswords(enabled?: boolean): _tanstack_react_query.UseQueryResult<NoInfer<{
5826
- id: string;
5827
- kind: "dav" | "feed" | "freebusy";
5828
- label: string;
5829
- calendar_ids?: string[];
5830
- feed_level?: string | null;
5831
- created_at: string;
5832
- last_used_at?: string | null;
5833
- }[]>, Error>;
5834
- declare function useCreateAppPassword(): _tanstack_react_query.UseMutationResult<{
5835
- id: string;
5836
- kind: "dav" | "feed" | "freebusy";
5837
- label: string;
5838
- calendar_ids?: string[];
5839
- feed_level?: string | null;
5840
- created_at: string;
5841
- last_used_at?: string | null;
5842
- password?: string | null;
5843
- username?: string | null;
5844
- server_url?: string | null;
5845
- feed_url?: string | null;
5846
- }, Error, {
5847
- label: string;
5848
- calendar_ids?: string[] | null;
5849
- }, unknown>;
5850
- declare function useCreateFeed(): _tanstack_react_query.UseMutationResult<{
5851
- id: string;
5852
- kind: "dav" | "feed" | "freebusy";
5853
- label: string;
5854
- calendar_ids?: string[];
5855
- feed_level?: string | null;
5856
- created_at: string;
5857
- last_used_at?: string | null;
5858
- password?: string | null;
5859
- username?: string | null;
5860
- server_url?: string | null;
5861
- feed_url?: string | null;
5862
- }, Error, FeedCreateBody, unknown>;
5863
- declare function useRevokeAppPassword(): _tanstack_react_query.UseMutationResult<void, Error, string, unknown>;
5864
6894
  declare function useBookingPages(enabled?: boolean): _tanstack_react_query.UseQueryResult<NoInfer<{
5865
6895
  id: string;
5866
6896
  slug: string;
@@ -6021,37 +7051,6 @@ declare function useAiTask(): {
6021
7051
  isRunning: boolean;
6022
7052
  isDone: boolean;
6023
7053
  };
6024
- interface SearchChunk {
6025
- /**
6026
- * Stable chunk id — the join key that ties a search hit to its rendered
6027
- * location in the document viewer (`<div data-chunk-id={chunkExtId}>`). This
6028
- * is what lets a result open the split-screen viewer scrolled to, and
6029
- * highlighting, the exact matched passage. May be absent for legacy chunks.
6030
- */
6031
- chunkExtId?: string | null;
6032
- docId?: string | null;
6033
- docTitle?: string | null;
6034
- page?: number | null;
6035
- score?: number | null;
6036
- content: string;
6037
- }
6038
- /**
6039
- * Search a set of documents and return the top matching passages.
6040
- *
6041
- * Retrieval is a triggered action, so it's modelled as a React Query
6042
- * `useMutation` (like {@link useAiTask}) rather than an auto-running query. The
6043
- * SDK's `assistant.retrieve` (POST `/v1/assistant/retrieve` with a
6044
- * `retrieval_chunk` tool) is the only network call — the hook maps its response
6045
- * into ranked {@link SearchChunk}s carrying the `chunkExtId` join key.
6046
- */
6047
- declare function useSemanticSearch(docIds: string[]): {
6048
- query: string;
6049
- results: SearchChunk[];
6050
- status: AiTaskStatus;
6051
- error: string | null;
6052
- search: (q: string, mode?: "semantic" | "keyword" | "hybrid") => Promise<void>;
6053
- isRunning: boolean;
6054
- };
6055
7054
 
6056
7055
  /** Produce inline `<del>/<ins>` redline markdown from two document versions. */
6057
7056
  declare function toRedlineMarkdown(original: string, revised: string): string;
@@ -6175,49 +7174,6 @@ declare function DocSearch({ docIds, onOpenDoc, placeholder, className, }: {
6175
7174
  className?: string;
6176
7175
  }): React$1.JSX.Element;
6177
7176
 
6178
- /**
6179
- * SemanticSearch — a drop-in, Google-style semantic search over a document set
6180
- * with a split-screen document viewer.
6181
- *
6182
- * Left: a query box + ranked result rows (document title, matched snippet with
6183
- * the query context, a relevance affordance and page meta). Right: the selected
6184
- * document rendered inline, scrolled to and highlighting the matched passage.
6185
- *
6186
- * Architecture mirrors the ARBI-frontend monolith's retrieve → navigate →
6187
- * highlight flow:
6188
- * - `useSemanticSearch` calls `POST /v1/assistant/retrieve` (via the SDK's
6189
- * `assistant.retrieve`) and returns ranked chunks, each carrying a stable
6190
- * `chunkExtId`.
6191
- * - Selecting a result passes that `chunkExtId` to <DocumentReview>, whose
6192
- * body renders every parsed chunk as an addressable `data-chunk-id` node;
6193
- * it scrolls to and marks the matching node — the shared key that ties a
6194
- * search hit to its location in the rendered document.
6195
- *
6196
- * Data + hooks stay in @arbidocs/react. Theming is semantic tokens only
6197
- * (shadcn tokens + the AI-accent contract) — no firm look is hardcoded.
6198
- */
6199
- interface SemanticSearchProps {
6200
- /**
6201
- * The document corpus to search. The caller resolves this from the active
6202
- * workspace (e.g. via `useWorkspaceDocs`), keeping the block agnostic about
6203
- * how workspace selection is managed — retrieval runs against the SDK's open
6204
- * workspace.
6205
- */
6206
- docIds: string[];
6207
- /**
6208
- * Active workspace id — forwarded to the viewer so AI-finding tag ids resolve
6209
- * to human names, and used to enrich each hit's document title/findings.
6210
- */
6211
- workspaceId?: string;
6212
- /** Which search mode to run. Default `hybrid` (keyword + semantic). */
6213
- searchMode?: 'hybrid' | 'semantic' | 'keyword';
6214
- /** Placeholder for the query box. */
6215
- placeholder?: string;
6216
- className?: string;
6217
- 'data-testid'?: string;
6218
- }
6219
- declare function SemanticSearch({ docIds, workspaceId, searchMode, placeholder, className, 'data-testid': testId, }: SemanticSearchProps): React$1.JSX.Element;
6220
-
6221
7177
  /**
6222
7178
  * Ask questions grounded in a SINGLE document (docId scoped to one file), plus a
6223
7179
  * one-click "suggest tags" action. Drop it in a document viewer.
@@ -6273,6 +7229,40 @@ interface CitationRendererProps {
6273
7229
  }
6274
7230
  declare const CitationRenderer: React__default.NamedExoticComponent<CitationRendererProps>;
6275
7231
 
7232
+ type SearchMode = 'semantic' | 'keyword' | 'hybrid';
7233
+ interface SemanticSearchOptions {
7234
+ /** The assistant configuration the search runs with; default the server's. */
7235
+ model?: string;
7236
+ /**
7237
+ * Where the search lives. Default: this component's own (gone when it unmounts). Pass
7238
+ * `sharedSearchSession` for a page whose results outlive it.
7239
+ */
7240
+ session?: SearchSession;
7241
+ /** The open workspace: a session holding another workspace's search starts over. */
7242
+ workspaceId?: string | null;
7243
+ }
7244
+ interface SemanticSearch {
7245
+ /** The query last searched. */
7246
+ query: string;
7247
+ /** Its passages, best first. */
7248
+ results: SearchChunk[];
7249
+ /** A search has finished with results to show (they stay while the next one runs). */
7250
+ searched: boolean;
7251
+ status: SearchStatus;
7252
+ error: string | null;
7253
+ isRunning: boolean;
7254
+ /** Search; an empty query clears. */
7255
+ search: (query: string, mode?: SearchMode) => Promise<void>;
7256
+ /** Back to nothing searched. */
7257
+ clear: () => void;
7258
+ session: SearchSession;
7259
+ }
7260
+ /**
7261
+ * Search `docIds` (none: the whole workspace) and return the matching passages. The reply is
7262
+ * ranked by the SDK's `searchChunks`; nothing is kept server-side.
7263
+ */
7264
+ declare function useSemanticSearch(docIds?: string[], options?: SemanticSearchOptions): SemanticSearch;
7265
+
6276
7266
  /** PDF file icon (red). Promoted from the ARBI app for SDK reuse. */
6277
7267
 
6278
7268
  interface IconProps$9 {
@@ -7337,10 +8327,11 @@ type NotificationTarget =
7337
8327
  kind: 'mail';
7338
8328
  draftId?: string;
7339
8329
  }
7340
- /** The workflows page, on a workflow when given. */
8330
+ /** The workflows page, on a workflow (in its workspace) when given. */
7341
8331
  | {
7342
8332
  kind: 'workflows';
7343
8333
  workflowId?: string;
8334
+ workspaceId?: string;
7344
8335
  }
7345
8336
  /** Projects and their AI usage. */
7346
8337
  | {
@@ -9330,6 +10321,27 @@ interface ArbiViewingDocument {
9330
10321
  /** The passage being read, when one is. */
9331
10322
  passageId: string | null;
9332
10323
  }
10324
+ /** A tab of the document viewer. */
10325
+ type ArbiViewerTab = 'pdf' | 'edit' | 'html' | 'docx' | 'xlsx' | 'versions' | 'preview';
10326
+ /**
10327
+ * The document viewer's own state, shared with whatever opens documents (a citation opens the text
10328
+ * view, Compare from a documents list opens the redline): the open tab, the document compared with
10329
+ * the one viewed, and a tab asked for when a document was opened (applied once it has loaded).
10330
+ */
10331
+ interface ArbiDocumentViewerState {
10332
+ tab: ArbiViewerTab;
10333
+ /** The document (or version reference) compared with the viewed one, or null. */
10334
+ compareId: string | null;
10335
+ /** A tab to show once `documentId` has loaded (a signature request opens on the PDF). */
10336
+ tabRequest: {
10337
+ documentId: string;
10338
+ tab: ArbiViewerTab;
10339
+ } | null;
10340
+ /** The text view's size, a multiplier of the normal size: a reading preference. */
10341
+ textScale: number;
10342
+ /** A phone user picked the PDF by hand: documents stop opening on the text view. */
10343
+ phonePdfChosen: boolean;
10344
+ }
9333
10345
  /** Generation in one conversation. */
9334
10346
  interface ArbiConversationGeneration {
9335
10347
  isGenerating: boolean;
@@ -9348,6 +10360,7 @@ interface ArbiSessionState {
9348
10360
  /** The open conversation, or null for a new one / none. */
9349
10361
  conversationId: string | null;
9350
10362
  viewingDocument: ArbiViewingDocument | null;
10363
+ documentViewer: ArbiDocumentViewerState;
9351
10364
  /** The documents selected in document lists. */
9352
10365
  selectedDocumentIds: readonly string[];
9353
10366
  /** Generation state per conversation id. */
@@ -9375,11 +10388,14 @@ interface ArbiSessionStore {
9375
10388
  * set them when given.
9376
10389
  */
9377
10390
  setViewingDocument(document: ArbiViewingDocumentInput | null): void;
10391
+ /** Change the document viewer's state; fields not given stay. */
10392
+ setDocumentViewer(change: Partial<ArbiDocumentViewerState>): void;
9378
10393
  setSelectedDocumentIds(ids: string[]): void;
9379
10394
  setConversationGenerating(conversationId: string, isGenerating: boolean): void;
9380
10395
  setPaMode(enabled: boolean): void;
9381
10396
  setConversationDocuments(conversationId: string, documents: ArbiConversationDocument[]): void;
9382
10397
  }
10398
+ declare const DEFAULT_DOCUMENT_VIEWER_STATE: ArbiDocumentViewerState;
9383
10399
  declare const EMPTY_SESSION_STATE: ArbiSessionState;
9384
10400
  /** The viewed document itself (`doc-…`), also while one of its earlier versions is on screen. */
9385
10401
  declare const selectViewingDocumentId: (state: ArbiSessionState) => string | null;
@@ -9412,4 +10428,4 @@ declare function useArbiSessionStore(): ArbiSessionStore;
9412
10428
  */
9413
10429
  declare function useArbiSessionState<T>(selector: (state: ArbiSessionState) => T): T;
9414
10430
 
9415
- export { ALLOWED_PORTAL_ORIGINS, AUDIO_MIME_PREFERENCE, type AccountClient, type AccountClientContextValue, AccountClientProvider, type AccountClientProviderProps, type AccountSession, type AccountSignOutOptions, type ActivityContent, type ActivityDescription, ActivityFeed, type ActivityFeedProps, type AddWorkspaceMembersVars, 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, type AssignDocTagsInput, AudIcon, type AudioRecorderState, type AudioSegment, type AvatarCrop, type AvatarFileProblem, BOX_SEAT_REFUSED, BOX_SEAT_REFUSED_ACTION, BOX_SEAT_REFUSED_TITLE, type CalendarConnectorSupport, type CalendarOfflineSupport, type CalendarPendingWrite, type CalendarSupport, CalendarSupportProvider, type CalendarWriteOp, 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 CreateTagInput, type CropArea, type CropOutput, type CropResult, DEFAULT_ASPECT_OPTIONS, DEFAULT_PASSWORD_CHANGE_FORM_MESSAGES, DEFAULT_SEGMENTER_CONFIG, DEFAULT_START_BY_EMAIL_LABELS, DOCUMENTS_FIRST_PAGE_MEASURE, DOCUMENTS_FIRST_PAGE_SIZE, DOCUMENTS_PAGE_SIZE, DateSeparator, type DateSeparatorProps, type DeleteAccountBlocker, type DeleteAccountFlow, type DescribeServerNotificationOptions, 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, type DocumentRowChange, DocumentTable, type DocumentTableProps, type DocumentsSupport, DocumentsSupportProvider, DraftTitleControls, type DraftTitleControlsProps, EMPTY_SESSION_STATE, type EmailChange, type EmailPreferences, EmlIcon, type EnableDriveSyncVars, type EnableMailboxSyncVars, EntityIconComponent, FILE_TYPE_COLORS, FINISHED_DOCUMENT_STATUSES, type FactListFilter, FileIcon, FireworksIcon, type FollowSaveCallbacks, GeminiIcon, type GenerateDocTagsInput, 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 NotificationTarget, type NotificationTypeMeta, NotifyVariant, OpenAIIcon, type OptimisticDocumentEdit, 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, type QueuedCalendarWrite, type QueuedDocument, RUN_WINDOW_MS, type RecordedChunk, type RefreshDocumentsOptions, type RelevancePatch, type RemoveDocTagsInput, type RenderMarkdown, SIGNATURE_NOTIFICATION_TYPES, SIMILARITY_THRESHOLD, type SaveAgentConfigVars, type SearchChunk, type SegmenterConfig, type SegmenterEvent, type SegmenterState, SemanticSearch, type SemanticSearchProps, type ServerNotificationDescription, type ShellRecentWorkspaceItem, type ShellWorkspaceItem, type ShellWorkspaceKind, type ShellWorkspaceMember, type ShellWorkspaceSeed, type ShellWorkspaceSource, type SignatureNotificationType, StartByEmail, type StartByEmailLabels, type StartByEmailProps, type ThreadAccessors, type ThreadItem, type ToolResponses, TxtIcon, TypingIndicator, type UpdateDocTagInput, type UpdateDocumentsInput, type UpdateProfileVars, type UploadDocumentsInput, type UploadUrlsInput, 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, type UserSettingsPatch, VIDEO_MIME_PREFERENCE, VidIcon, VideoCapture, type VideoCaptureProps, type VideoRecorderState, VoiceNoteRecorder, type VoiceNoteRecorderProps, WORK_NOTIFICATION_LABELS, type WorkspaceDocument, type WorkspaceNotificationLevel, type WorkspaceRole, type WorkspaceUpdate, XlsIcon, accountPath, adjustTagCounts, aliasTakenMessage, annotateThread, announceMailDraftReplaced, applyOptimisticDocumentEdit, arbiAccountClient, arbiMailClient, arbiMutationKeys, arbiQueryKeys, calendarQueryKeys, callNotificationMeta, captureFrameAsBlob, classifyMediaError, connectOAuthCalendarAccount, connectorErrorStatus, connectorQueryKeys, connectorReturnTo, createArbiSessionStore, createChunkedRecorder, createMailClient, cropImage, dayKey, defaultMailAlias, deploymentUserMeta, describeActivity, describeServerNotification, documentActivityMeta, documentActivityPhrase, documentDisplayName, docxMentionMeta, downloadRecoveryFile, fileAttachment, flushSegmenter, forgetDocuments, formatElapsed, formatIdentityPrice, formatRelativeTime, getCachedDocuments, getNotificationTypeMeta, getWorkspaceActionText, getWorkspaceKind, getWorkspaceSentPhrase, hasVideoTrack, identityStepFor, inputRequestTitle, invalidateCalendarEvents, invalidateCalendars, invalidateTagData, invalidateTagTables, isAliasTakenError, isDeploymentAdmin, isDeploymentUserNotification, isDocumentsLoading, isOfflineReadableArbiQuery, isQueuedCalendarWrite, isReplayableArbiMutation, isRestorableArbiQueryOnline, isSignatureNotificationType, isUsageMetered, isWorkspaceNotificationType, levelFromRms, mailDraftIdFromContent, mailJson, mailQueryKeys, mountDiditVerification, nextAliasSuggestion, nextViewingDocument, notificationUserName, parseActivityContent, parseDeleteAccountBlockers, patchCachedDocument, patchDocuments, patchWorkspaceTags, pickRecentWorkspaces, pickRecorderMimeType, redlineStats, refreshDocuments, registerArbiMutationDefaults, resetCalendarAccountSyncState, resolveActiveWorkspace, rollbackOptimisticDocumentEdit, safePortalUrl, selectIsGenerating, selectViewingDocumentId, setCachedDocument, signatureNotificationPhrase, signatureRequestMeta, stepSegmenter, stopDocumentsLoading, subscribeDocumentRows, supportsHouseTemplates, textToArtifact, titleFromQuestion, toChatCitations, toNotificationPreferences, toProfileView, toRedlineMarkdown, toShellWorkspace, upsertDocuments, useAccountClient, useActOnStep, useActivity, useAddHolidayCalendar, useAddWorkspaceMembers, useAgentChats, useAgentConfig, useAgentModels, useAgentSession, useAgentWorkspaces, useAgents, useAiTask, useAppPasswords, useArbi, useArbiChat, useArbiConnected, useArbiDocumentSync, useArbiSessionState, useArbiSessionStore, useArbiShellWorkspaces, useArbiWebSocket, useArbiWsContext, useArbiWsMessage, useArbiWsStatus, useArbiWsStore, useArbiWsTask, useArbiWsTasks, useAssignDocTags, useAssistantQuery, useAudioRecorder, useAuthorizeLimits, useAvailableModels, useAvatarCrop, useBookingPages, useCalDavProfiles, useCalendarAccounts, useCalendarEvent, useCalendarEventByUid, useCalendarEvents, useCalendarInvitations, useCalendarOutbox, useCalendarOverlays, useCalendarSettings, useCalendarShares, useCalendarSupport, useCalendars, useCameraStream, useCanCreateProjects, useCancelDriveSync, useCancelMailboxSync, useClaimNativeAlias, useCloseAgentSession, useCommandPalette, useConfigs, useConfirmEmailChange, useConnectCalDavAccount, useConnectMailAccount, useConnectOAuthAccount, useConnectorAutoSync, useConnectorCatalog, useConnectorVendorVisibility, useContacts, useConversationActivity, useConversationPendingAuth, useConversationThreads, useConversationUsage, useConversations, useCreateAgent, useCreateAppPassword, useCreateCalendar, useCreateContact, useCreateEvent, useCreateFact, useCreateFacts, useCreateFeed, useCreateRoom, useCreateTag, useCreateWork, useCreateWorkflow, useCurrentSessionId, useCurrentUser, useDecideCounter, useDeleteAccount, useDeleteAccountFlow, useDeleteAgents, useDeleteBookingPage, useDeleteCalendar, useDeleteContact, useDeleteDocuments, useDeleteEvent, useDeleteFact, useDeleteNotifications, useDeleteSkill, useDeleteTag, useDeleteWorkflow, useDeploymentDomain, useDirectMessages, useDisconnectCalendarAccount, useDisconnectConnector, useDisconnectMailAccount, useDisconnectSlack, useDocument, useDocumentVersionList, useDocuments, useDocumentsById, useDocumentsLoading, useDocumentsSupport, useDriveFolderChildren, useDriveFolderDocCount, useDriveFolders, useDriveSyncEstimate, useDriveSyncProgress, useEmailChange, useEnableDriveSync, useEnableMailboxSync, useExtractEntities, useFacts, useFetchCalendarEvent, useFilteredProjects, useFinaliseTranslation, useFindTime, useFirmPool, useFollowThread, useFreeBusy, useGenerateAgentAvatar, useGenerateDocTags, useGrantAgentAccess, useHealth, useHolidayCountries, useHouseTemplateCandidates, useIdentityVerification, useIdentityVerificationFlow, useImportCalendar, useInvalidateTagData, useInviteContacts, useMailAccounts, useMailAttachmentText, useMailCache, useMailClient, useMailDraftCompose, useMailDraftEditor, useMailDraftReplaced, useMailFolders, useMailMessage, useMailMessages, useMailOnline, useMailPolicy, useMailProjects, useMailUnlock, useMailboxFolders, useMailboxSyncProgress, useMarkNotificationsRead, useMcpTools, useMoveEvent, useMyConnectors, useNameEditor, useNotificationPreferences, useNotifications, useParsedDocument, usePasswordChange, usePasswordChangeForm, usePendingContacts, usePlanWork, useProfile, useProjectConversationUsage, useProjectEvents, useProjectInvoices, useProjectUsage, useProjects, useProjectsUsage, usePublishCalendar, useRefreshCalendar, useRefreshConnectorsOnRunEnd, useRemoveDocTags, useRemoveWorkspaceMembers, useRequestEmailChange, useRespondToEvent, useResumeCalendarAccountConnect, useRevokeAgentAccess, useRevokeAppPassword, useRooms, useRunConversation, useRunWorkflow, useSaveAgentConfig, useSaveBookingPage, useSaveCalendarSettings, useSaveMailDraft, useSearchContacts, useSearchFacts, useSemanticSearch, useSendBackStep, useSendMail, useSessions, useSetSkillVisibility, useSetTagValues, useSetWorkspaceHouseTemplate, useShareCalendar, useShellWorkspaces, useSignOut, useSimilarDocuments, useSkillSource, useSkills, useSlackConnection, useStartAgentSession, useStartCalendarAccountOAuth, useStartWorkQuery, useSubscribeCalendar, useSyncAccountsOnOpen, useSyncCalendarAccount, useTagKindSchema, useTags, useTerminateSession, useThumbnails, useTopUpFirmPool, useTriggerDriveSync, useTriggerMailboxSync, useUnshareCalendar, useUpdateCalendar, useUpdateCalendarAccount, useUpdateContact, useUpdateConversation, useUpdateDocTag, useUpdateDocuments, useUpdateEvent, useUpdateFact, useUpdateMailMessage, useUpdateProfile, useUpdateProjectFields, useUpdateTag, useUpdateTagKindSchema, useUpdateUserSettings, useUpdateWorkflow, useUpdateWorkspace, useUploadDocuments, useUploadSkillFiles, useUploadUrls, useUserSettings, useUserUsageToday, useVideoRecorder, useWorkNotifications, useWorkflowRuns, useWorkflows, useWorkspaceActivity, useWorkspaceDocs, useWorkspaceNotificationLevel, useWorkspaceUsers, useWorkspaces, userDisplayName, userInitials, workflowStepOf, workspaceHouseTemplateId };
10431
+ export { ALLOWED_PORTAL_ORIGINS, AUDIO_MIME_PREFERENCE, type AccountClient, type AccountClientContextValue, AccountClientProvider, type AccountClientProviderProps, type AccountSession, type AccountSignOutOptions, type ActivityContent, type ActivityDescription, ActivityFeed, type ActivityFeedProps, type AddWorkspaceMembersRequest, 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, type ArbiDocumentViewerState, ArbiProvider, type ArbiProviderProps, type ArbiSessionState, ArbiSessionStateProvider, type ArbiSessionStateProviderProps, type ArbiSessionStore, type ArbiViewerTab, type ArbiViewingDocument, type ArbiViewingDocumentInput, ArbiWebSocketProvider, type ArbiWebSocketProviderProps, type ArbiWsState, type ArbiWsStatus, ArtifactCanvas, type AspectOption, type AssignDocTagsInput, AudIcon, type AudioRecorderState, type AudioSegment, type AvatarCrop, type AvatarFileProblem, BOX_SEAT_REFUSED, BOX_SEAT_REFUSED_ACTION, BOX_SEAT_REFUSED_TITLE, type CalendarConnectorSupport, type CalendarOfflineSupport, type CalendarPendingWrite, type CalendarSupport, CalendarSupportProvider, type CalendarWriteOp, 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 CreateProjectVars, type CreateTagInput, type CropArea, type CropOutput, type CropResult, DEFAULT_ASPECT_OPTIONS, DEFAULT_DOCUMENT_VIEWER_STATE, DEFAULT_PASSWORD_CHANGE_FORM_MESSAGES, DEFAULT_SEGMENTER_CONFIG, DEFAULT_START_BY_EMAIL_LABELS, DOCUMENTS_FIRST_PAGE_MEASURE, DOCUMENTS_FIRST_PAGE_SIZE, DOCUMENTS_PAGE_SIZE, DateSeparator, type DateSeparatorProps, type DeleteAccountBlocker, type DeleteAccountFlow, type DescribeServerNotificationOptions, 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, type DocumentRowChange, DocumentTable, type DocumentTableProps, type DocumentsSupport, DocumentsSupportProvider, DraftTitleControls, type DraftTitleControlsProps, EMPTY_SESSION_STATE, type EmailChange, type EmailPreferences, EmlIcon, type EnableDriveSyncVars, type EnableMailboxSyncVars, EntityIconComponent, FILE_TYPE_COLORS, FINISHED_DOCUMENT_STATUSES, type FactListFilter, FileIcon, FireworksIcon, type FollowSaveCallbacks, GeminiIcon, type GenerateDocTagsInput, 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 NotificationTarget, type NotificationTypeMeta, NotifyVariant, OpenAIIcon, type OptimisticDocumentEdit, type OrderResolver, POLL_EVERY_MS, PROJECT_CREATION_DENIED_REASON, type PaletteNavItem, type ParsedChunk, type ParsedChunkMetadata, type ParsedDocument, type ParsedDocumentMetadata, type PassageResolvers, type PasswordChangeForm, type PasswordChangeFormMessages, type PasswordChangeVars, PdfIcon, PhotoCapture, type PhotoCaptureProps, type ProfileView, type ProjectsUsageAggregate, ProviderIcon, type QueuedCalendarWrite, type QueuedDocument, type QuoteResolver, RUN_WINDOW_MS, type RecordedChunk, type RefreshDocumentsOptions, type RelevancePatch, type RemoveDocTagsInput, type RenderMarkdown, SIGNATURE_NOTIFICATION_TYPES, SIMILARITY_THRESHOLD, SLOW_AFTER_MS, STILL_WORKING, type SaveAgentConfigVars, type SearchMode, SearchSession, SearchStatus, type SegmenterConfig, type SegmenterEvent, type SegmenterState, type SemanticSearch, type SemanticSearchOptions, type ServerNotificationDescription, type ShellRecentWorkspaceItem, type ShellWorkspaceItem, type ShellWorkspaceKind, type ShellWorkspaceMember, type ShellWorkspaceSeed, type ShellWorkspaceSource, type SignatureNotificationType, StartByEmail, type StartByEmailLabels, type StartByEmailProps, type ThreadAccessors, type ThreadItem, type ToolResponses, TxtIcon, TypingIndicator, type UpdateDocTagInput, type UpdateDocumentsInput, type UpdateProfileVars, type UploadDocumentsInput, type UploadUrlsInput, 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, type UserSettingsPatch, VIDEO_MIME_PREFERENCE, VidIcon, VideoCapture, type VideoCaptureProps, type VideoRecorderState, VoiceNoteRecorder, type VoiceNoteRecorderProps, WORK_NOTIFICATION_LABELS, type WorkspaceDocument, type WorkspaceMember, type WorkspaceNotificationLevel, type WorkspaceRole, type WorkspaceUpdate, XlsIcon, accountPath, adjustTagCounts, aliasTakenMessage, annotateThread, announceMailDraftReplaced, applyOptimisticDocumentEdit, arbiAccountClient, arbiMailClient, arbiMutationKeys, arbiQueryKeys, calendarQueryKeys, callNotificationMeta, captureFrameAsBlob, classifyMediaError, connectOAuthCalendarAccount, connectorErrorStatus, connectorQueryKeys, connectorReturnTo, createArbiSessionStore, createChunkedRecorder, createMailClient, cropImage, dayKey, defaultMailAlias, deploymentUserMeta, describeActivity, describeServerNotification, documentActivityMeta, documentActivityPhrase, documentDisplayName, docxMentionMeta, downloadRecoveryFile, fileAttachment, flushSegmenter, forgetDocuments, formatElapsed, formatIdentityPrice, formatRelativeTime, getCachedDocuments, getNotificationTypeMeta, getWorkspaceActionText, getWorkspaceKind, getWorkspaceSentPhrase, hasVideoTrack, identityStepFor, inputRequestTitle, invalidateCalendarEvents, invalidateCalendars, invalidateTagData, invalidateTagTables, isAliasTakenError, isDeploymentAdmin, isDeploymentUserNotification, isDocumentsLoading, isOfflineReadableArbiQuery, isQueuedCalendarWrite, isReplayableArbiMutation, isRestorableArbiQueryOnline, isSignatureNotificationType, isUsageMetered, isWorkspaceNotificationType, levelFromRms, mailDraftIdFromContent, mailJson, mailQueryKeys, mountDiditVerification, nextAliasSuggestion, nextViewingDocument, notificationUserName, parseActivityContent, parseDeleteAccountBlockers, patchCachedDocument, patchDocuments, patchWorkspaceTags, pickRecentWorkspaces, pickRecorderMimeType, redlineStats, refreshDocuments, registerArbiMutationDefaults, resetCalendarAccountSyncState, resolveActiveWorkspace, rollbackOptimisticDocumentEdit, safePortalUrl, selectIsGenerating, selectViewingDocumentId, setCachedDocument, signatureNotificationPhrase, signatureRequestMeta, stepSegmenter, stopDocumentsLoading, subscribeDocumentRows, supportsHouseTemplates, textToArtifact, titleFromQuestion, toChatCitations, toNotificationPreferences, toProfileView, toRedlineMarkdown, toShellWorkspace, upsertDocuments, useAccountClient, useActOnStep, useActivity, useAddHolidayCalendar, useAddProjectAddonBlock, useAddWorkspaceMembers, useAddonQuote, useAgentChats, useAgentConfig, useAgentModels, useAgentSession, useAgentWorkspaces, useAgents, useAiTask, useArbi, useArbiChat, useArbiConnected, useArbiDocumentSync, useArbiSessionState, useArbiSessionStore, useArbiShellWorkspaces, useArbiWebSocket, useArbiWsContext, useArbiWsMessage, useArbiWsStatus, useArbiWsStore, useArbiWsTask, useArbiWsTasks, useAssignDocTags, useAssistantQuery, useAudioRecorder, useAuthorizeLimits, useAvailableModels, useAvatarCrop, useBookingPages, useCalDavProfiles, useCalendarAccounts, useCalendarEvent, useCalendarEventByUid, useCalendarEvents, useCalendarInvitations, useCalendarOutbox, useCalendarOverlays, useCalendarSettings, useCalendarShares, useCalendarSupport, useCalendars, useCameraStream, useCanCreateProjects, useCancelDriveSync, useCancelMailboxSync, useCancelProjectSubscription, useChangeProjectPlan, useChargeWatch, useClaimNativeAlias, useCloseAgentSession, useCommandPalette, useConfigs, useConfirmEmailChange, useConnectCalDavAccount, useConnectMailAccount, useConnectOAuthAccount, useConnectorAutoSync, useConnectorCatalog, useConnectorVendorVisibility, useContacts, useConversationActivity, useConversationPendingAuth, useConversationThreads, useConversationUsage, useConversations, useCreateAgent, useCreateCalendar, useCreateContact, useCreateEvent, useCreateFact, useCreateFacts, useCreateProject, useCreateProjectCheckout, useCreateRoom, useCreateTag, useCreateWork, useCreateWorkflow, useCurrentSessionId, useCurrentUser, useDecideCounter, useDeleteAccount, useDeleteAccountFlow, useDeleteAgents, useDeleteBookingPage, useDeleteCalendar, useDeleteContact, useDeleteDocuments, useDeleteEvent, useDeleteFact, useDeleteNotifications, useDeleteProject, useDeleteSkill, useDeleteTag, useDeleteWorkflow, useDeploymentDomain, useDirectMessages, useDisconnectCalendarAccount, useDisconnectConnector, useDisconnectMailAccount, useDisconnectSlack, useDocument, useDocumentVersionList, useDocuments, useDocumentsById, useDocumentsLoading, useDocumentsSupport, useDriveFolderChildren, useDriveFolderDocCount, useDriveFolders, useDriveSyncEstimate, useDriveSyncProgress, useEmailChange, useEnableDriveSync, useEnableMailboxSync, useExtractEntities, useFacts, useFetchCalendarEvent, useFilteredProjects, useFinaliseTranslation, useFindTime, useFirmPool, useFollowThread, useFreeBusy, useGenerateAgentAvatar, useGenerateDocTags, useGrantAgentAccess, useHealth, useHolidayCountries, useHouseTemplateCandidates, useIdentityVerification, useIdentityVerificationFlow, useImportCalendar, useInvalidateProjects, useInvalidateTagData, 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, useParsedDocument, usePassageQuotes, usePasswordChange, usePasswordChangeForm, usePendingContacts, usePlanQuote, usePlanWork, usePreviewProjectPlanChange, useProducts, useProfile, useProjectBillingPortal, useProjectConversationUsage, useProjectEvents, useProjectInvoices, useProjectUsage, useProjects, useProjectsUsage, usePublishCalendar, useRefreshCalendar, useRefreshConnectorsOnRunEnd, useRefreshProject, useRemoveDocTags, useRemoveWorkspaceMembers, useRequestEmailChange, useRespondToEvent, useResumeCalendarAccountConnect, useRevokeAgentAccess, useRooms, useRunConversation, useRunWorkflow, useSaveAgentConfig, useSaveBookingPage, useSaveCalendarSettings, useSaveMailDraft, useSearchContacts, useSearchFacts, useSemanticSearch, useSendBackStep, useSendMail, useSessions, useSetSkillVisibility, useSetTagValues, useSetWorkspaceHouseTemplate, useSetWorkspaceMemberRoles, useShareCalendar, useShellWorkspaces, useSignOut, useSimilarDocuments, useSkillSource, useSkills, useSlackConnection, useStartAgentSession, useStartCalendarAccountOAuth, useStartWorkQuery, useSubscribeCalendar, useSyncAccountsOnOpen, useSyncCalendarAccount, useTagKindSchema, useTags, useTerminateSession, useThumbnails, useTopUpFirmPool, useTriggerDriveSync, useTriggerMailboxSync, useUnshareCalendar, useUpdateCalendar, useUpdateCalendarAccount, useUpdateContact, useUpdateConversation, useUpdateDocTag, useUpdateDocuments, useUpdateEvent, useUpdateFact, useUpdateMailMessage, useUpdateProfile, useUpdateProjectAddonSettings, useUpdateProjectFields, useUpdateProjectNextPeriodAddons, useUpdateTag, useUpdateTagKindSchema, useUpdateUserSettings, useUpdateWorkflow, useUpdateWorkspace, useUploadDocuments, useUploadSkillFiles, useUploadUrls, useUserSettings, useUserUsageToday, useVideoRecorder, useWorkNotifications, useWorkflowRuns, useWorkflows, useWorkspaceActivity, useWorkspaceDocs, useWorkspaceNotificationLevel, useWorkspaceUsers, useWorkspaces, userDisplayName, userInitials, workflowStepOf, workspaceHouseTemplateId };