@arbidocs/react 0.4.31 → 0.4.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/artifacts/index.cjs +16 -16
- package/dist/artifacts/index.js +3 -3
- package/dist/{chunk-G3SWUES3.js → chunk-5JGBZQD4.js} +405 -123
- package/dist/chunk-5JGBZQD4.js.map +1 -0
- package/dist/{chunk-EOOHRPFM.cjs → chunk-775VGSKN.cjs} +59 -10
- package/dist/chunk-775VGSKN.cjs.map +1 -0
- package/dist/{chunk-6YSHODMG.js → chunk-FOEYFNQ4.js} +59 -10
- package/dist/chunk-FOEYFNQ4.js.map +1 -0
- package/dist/{chunk-6BLXIF4R.cjs → chunk-PW7GGG7E.cjs} +9 -7
- package/dist/chunk-PW7GGG7E.cjs.map +1 -0
- package/dist/{chunk-OBTCAI4E.js → chunk-UDOPD3GK.js} +12 -4
- package/dist/chunk-UDOPD3GK.js.map +1 -0
- package/dist/{chunk-ULED4SBT.cjs → chunk-UFSATX3N.cjs} +412 -125
- package/dist/chunk-UFSATX3N.cjs.map +1 -0
- package/dist/{chunk-NDG44JWI.js → chunk-V3A7JDJV.js} +8 -6
- package/dist/chunk-V3A7JDJV.js.map +1 -0
- package/dist/{chunk-YSZJCWDD.cjs → chunk-Z4M7JB4L.cjs} +12 -4
- package/dist/chunk-Z4M7JB4L.cjs.map +1 -0
- package/dist/{index-CcbVSNSP.d.cts → index-C7OqcKY3.d.cts} +3 -1
- package/dist/{index-CcbVSNSP.d.ts → index-C7OqcKY3.d.ts} +3 -1
- package/dist/{index-C99tcxue.d.cts → index-CUxIcC5j.d.cts} +19 -7
- package/dist/{index-C99tcxue.d.ts → index-CUxIcC5j.d.ts} +19 -7
- package/dist/index.cjs +360 -531
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +60 -10
- package/dist/index.d.ts +60 -10
- package/dist/index.js +25 -212
- package/dist/index.js.map +1 -1
- package/dist/shell/index.cjs +6 -6
- package/dist/shell/index.d.cts +1 -1
- package/dist/shell/index.d.ts +1 -1
- package/dist/shell/index.js +1 -1
- package/dist/ui/index.cjs +134 -130
- package/dist/ui/index.d.cts +1 -1
- package/dist/ui/index.d.ts +1 -1
- package/dist/ui/index.js +2 -2
- package/package.json +3 -3
- package/dist/chunk-6BLXIF4R.cjs.map +0 -1
- package/dist/chunk-6YSHODMG.js.map +0 -1
- package/dist/chunk-EOOHRPFM.cjs.map +0 -1
- package/dist/chunk-G3SWUES3.js.map +0 -1
- package/dist/chunk-NDG44JWI.js.map +0 -1
- package/dist/chunk-OBTCAI4E.js.map +0 -1
- package/dist/chunk-ULED4SBT.cjs.map +0 -1
- package/dist/chunk-YSZJCWDD.cjs.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -5,16 +5,16 @@ import { ArbiOptions, QueryOptions, Arbi, SSEStreamResult, SSEStreamStartData, U
|
|
|
5
5
|
export { ActivityKind, ActivityResponse, AgentStepEvent, Arbi, ArbiError, ArbiOptions, ArtifactEvent, AuthMode, ConversationResponse, CreateFactRequest, CreateWorkRequest, CreateWorkflowRequest, FactResponse, FactSearchRequest, FactSearchResponse, LoginProfile, MessageMetadataPayload, OutputTokensDetails, PendingAuthResponse, PlanWorkRequest, ProjectInvoicesResponse, ProjectUsageResponse, QueryOptions, RequestApprovalRequest, ResponseCompletedEvent, ResponseContentPartAddedEvent, ResponseCreatedEvent, ResponseFailedEvent, ResponseOutputItemAddedEvent, ResponseOutputItemDoneEvent, ResponseOutputTextDeltaEvent, ResponseOutputTextDoneEvent, ResponseUsage, ReviewWorkRequest, SSEStreamCallbacks, SSEStreamResult, SSEStreamStartData, SkillSummary, TaskPlan, UpdateConversationRequest, UpdateWorkflowRequest, UserDailyUsageResponse, UserInputRequestEvent, UserMessageEvent, WorkStatus, WorkflowAuthMode, WorkflowResponse, WorkflowRunResponse } from '@arbidocs/sdk/browser';
|
|
6
6
|
import * as _arbidocs_client from '@arbidocs/client';
|
|
7
7
|
import { WebSocketServerMessage, WsTaskUpdateMessage, WsPresenceUpdateMessage, components } from '@arbidocs/client';
|
|
8
|
-
export { WebSocketServerMessage, WsBatchCompleteMessage, WsNotificationResponse, WsPresenceUpdateMessage, WsResponseCompleteMessage, WsTaskUpdateMessage, isMessageType } from '@arbidocs/client';
|
|
8
|
+
export { WebSocketServerMessage, WsBatchCompleteMessage, WsConversationMessagePostedMessage, WsNotificationResponse, WsPresenceUpdateMessage, WsResponseCompleteMessage, WsTaskUpdateMessage, isMessageType } from '@arbidocs/client';
|
|
9
9
|
import * as zustand from 'zustand';
|
|
10
10
|
import * as _tanstack_query_core from '@tanstack/query-core';
|
|
11
11
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
12
|
-
import { ab as EntityIconComponent } from './index-
|
|
13
|
-
export { A as AgentBadge, a as AiMarkdown, b as Avatar, c as AvatarFallback, d as AvatarImage, B as BASE_COLORS, e as Badge, f as BadgeProps, g as Button, h as ButtonProps, C as Card, i as CardContent, j as CardDescription, k as CardFooter, l as CardHeader, m as CardProps, n as CardTitle, o as Checkbox, p as Collapsible, q as CollapsibleContent, r as CollapsibleTrigger, s as Command, t as CommandDialog, u as CommandEmpty, v as CommandGroup, w as CommandInput, x as CommandItem, y as CommandList, z as CommandSeparator, D as CommandShortcut, E as Dialog, F as DialogClose, G as DialogContent, H as DialogDescription, I as DialogFooter, J as DialogHeader, K as DialogOverlay, L as DialogPortal, M as DialogPresentation, N as DialogTitle, O as DialogTrigger, P as DictateContextValue, Q as DictateProvider, R as DocumentCard, S as DocumentCardProps, T as DocumentEntity, U as DocumentEntityProps, V as DocumentLike, W as DropdownMenu, X as DropdownMenuCheckboxItem, Y as DropdownMenuContent, Z as DropdownMenuGroup, _ as DropdownMenuItem, $ as DropdownMenuLabel, a0 as DropdownMenuPortal, a1 as DropdownMenuRadioGroup, a2 as DropdownMenuRadioItem, a3 as DropdownMenuSeparator, a4 as DropdownMenuShortcut, a5 as DropdownMenuSub, a6 as DropdownMenuSubContent, a7 as DropdownMenuSubTrigger, a8 as DropdownMenuTrigger, a9 as ENTITY_MAPPINGS, aa as EntityIcon, ac as EntityPill, ad as EntityRegistryOverride, ae as EntityType, af as HoverCard, ag as HoverCardContent, ah as HoverCardTrigger, ai as IconToggle, aj as IconToggleProps, ak as Input, al as InputProps, am as Label, an as MarkMenu, ao as MarkMenuItem, ap as MarkMenuProps, aq as MarkdownRenderer, ar as MarkdownRendererProps, as as MarkdownStreamingContext, at as NEUTRAL_GRAY, au as PLACEHOLDER_COLOR, av as PassageCard, aw as PassageCardProps, ax as Popover, ay as PopoverAnchor, az as PopoverContent, aA as PopoverTrigger, aB as PresenceDisplayStatus, aC as PresenceLabel, aD as Progress, aE as ProjectEntity, aF as ProjectEntityProps, aG as ProjectRelation, aH as RadioGroup, aI as RadioGroupItem, aJ as Rag, aK as RagDot, aL as RelevanceDot, aM as ScrollArea, aN as ScrollBar, aO as Select, aP as SelectContent, aQ as SelectGroup, aR as SelectItem, aS as SelectLabel, aT as SelectScrollDownButton, aU as SelectScrollUpButton, aV as SelectSeparator, aW as SelectTrigger, aX as SelectValue, aY as Separator, aZ as Slider, a_ as StatusBadgeComponent, a$ as StatusBadgeProps, b0 as StatusPill, b1 as StatusPillProps, b2 as StatusVariant, b3 as Switch, b4 as TAG_TYPE_ICONS, b5 as TAG_TYPE_LABELS, b6 as Table, b7 as TableBody, b8 as TableCaption, b9 as TableCell, ba as TableFooter, bb as TableHead, bc as TableHeader, bd as TableRow, be as Tabs, bf as TabsContent, bg as TabsList, bh as TabsTrigger, bi as TagEntity, bj as TagEntityProps, bk as TagLike, bl as Textarea, bm as TextareaProps, bn as
|
|
12
|
+
import { ab as EntityIconComponent } from './index-CUxIcC5j.cjs';
|
|
13
|
+
export { A as AgentBadge, a as AiMarkdown, b as Avatar, c as AvatarFallback, d as AvatarImage, B as BASE_COLORS, e as Badge, f as BadgeProps, g as Button, h as ButtonProps, C as Card, i as CardContent, j as CardDescription, k as CardFooter, l as CardHeader, m as CardProps, n as CardTitle, o as Checkbox, p as Collapsible, q as CollapsibleContent, r as CollapsibleTrigger, s as Command, t as CommandDialog, u as CommandEmpty, v as CommandGroup, w as CommandInput, x as CommandItem, y as CommandList, z as CommandSeparator, D as CommandShortcut, E as Dialog, F as DialogClose, G as DialogContent, H as DialogDescription, I as DialogFooter, J as DialogHeader, K as DialogOverlay, L as DialogPortal, M as DialogPresentation, N as DialogTitle, O as DialogTrigger, P as DictateContextValue, Q as DictateProvider, R as DocumentCard, S as DocumentCardProps, T as DocumentEntity, U as DocumentEntityProps, V as DocumentLike, W as DropdownMenu, X as DropdownMenuCheckboxItem, Y as DropdownMenuContent, Z as DropdownMenuGroup, _ as DropdownMenuItem, $ as DropdownMenuLabel, a0 as DropdownMenuPortal, a1 as DropdownMenuRadioGroup, a2 as DropdownMenuRadioItem, a3 as DropdownMenuSeparator, a4 as DropdownMenuShortcut, a5 as DropdownMenuSub, a6 as DropdownMenuSubContent, a7 as DropdownMenuSubTrigger, a8 as DropdownMenuTrigger, a9 as ENTITY_MAPPINGS, aa as EntityIcon, ac as EntityPill, ad as EntityRegistryOverride, ae as EntityType, af as HoverCard, ag as HoverCardContent, ah as HoverCardTrigger, ai as IconToggle, aj as IconToggleProps, ak as Input, al as InputProps, am as Label, an as MarkMenu, ao as MarkMenuItem, ap as MarkMenuProps, aq as MarkdownRenderer, ar as MarkdownRendererProps, as as MarkdownStreamingContext, at as NEUTRAL_GRAY, au as PLACEHOLDER_COLOR, av as PassageCard, aw as PassageCardProps, ax as Popover, ay as PopoverAnchor, az as PopoverContent, aA as PopoverTrigger, aB as PresenceDisplayStatus, aC as PresenceLabel, aD as Progress, aE as ProjectEntity, aF as ProjectEntityProps, aG as ProjectRelation, aH as RadioGroup, aI as RadioGroupItem, aJ as Rag, aK as RagDot, aL as RelevanceDot, aM as ScrollArea, aN as ScrollBar, aO as Select, aP as SelectContent, aQ as SelectGroup, aR as SelectItem, aS as SelectLabel, aT as SelectScrollDownButton, aU as SelectScrollUpButton, aV as SelectSeparator, aW as SelectTrigger, aX as SelectValue, aY as Separator, aZ as Slider, a_ as StatusBadgeComponent, a$ as StatusBadgeProps, b0 as StatusPill, b1 as StatusPillProps, b2 as StatusVariant, b3 as Switch, b4 as TAG_TYPE_ICONS, b5 as TAG_TYPE_LABELS, b6 as Table, b7 as TableBody, b8 as TableCaption, b9 as TableCell, ba as TableFooter, bb as TableHead, bc as TableHeader, bd as TableRow, be as Tabs, bf as TabsContent, bg as TabsList, bh as TabsTrigger, bi as TagEntity, bj as TagEntityProps, bk as TagLike, bl as Textarea, bm as TextareaProps, bn as ThreadVisibilityIcon, bo as Toggle, bp as ToggleGroup, bq as ToggleGroupItem, br as Tooltip, bs as TooltipContent, bt as TooltipProvider, bu as TooltipTrigger, bv as UserEntity, bw as UserEntityProps, bx as UserMenu, by as UserMenuItem, bz as UserMenuProps, bA as UserMenuStatus, bB as VISIBILITY_ICONS, bC as VisibilityIcon, bD as VisibilityToggle, bE as VisibilityToggleProps, bF as badgeVariants, bG as buttonVariants, bH as cardVariants, bI as closeOpenEmphasis, bJ as cn, bK as configureEntityRegistry, bL as configureRagLabels, bM as configureStatusRegistry, bN as getDocIcon, bO as getEntityColor, bP as getEntityColorStyles, bQ as getEntityIcon, bR as getEntityLabel, bS as getStatusVariant, bT as getTagTypeIcon, bU as getTagTypeLabel, bV as getWorkspaceColor, bW as markdownBaseComponents, bX as normalizeCitationMarkup, bY as splitMarkdownBlocks, bZ as toggleVariants, b_ as trimOpenCitation } from './index-CUxIcC5j.cjs';
|
|
14
14
|
import { LucideIcon } from 'lucide-react';
|
|
15
15
|
import { Components } from 'react-markdown';
|
|
16
16
|
export { D as DraftCleanReport, a as DraftCleanStage, c as cleanDraftMarkdown, b as cleanDraftWithReport, p as promoteBoldTitle, r as repairParsedStructure, d as repairParsedTitle, s as stripAgentPreamble, u as unescapeMarkdown, e as unwrapCitationLinks } from './stored-markdown-Bp18vrbr.cjs';
|
|
17
|
-
export { A as AppNotification, D as DEFAULT_NOTIFY_TONE, N as NotificationBell, a as NotificationBellProps, b as NotificationBellTriggerState, c as NotifyOptions, d as NotifyVariant, T as Toaster, n as notify, s as seedNotifications, e as selectUnread, u as useNotify } from './index-
|
|
17
|
+
export { A as AppNotification, D as DEFAULT_NOTIFY_TONE, N as NotificationBell, a as NotificationBellProps, b as NotificationBellTriggerState, c as NotifyOptions, d as NotifyVariant, T as Toaster, n as notify, s as seedNotifications, e as selectUnread, u as useNotify } from './index-C7OqcKY3.cjs';
|
|
18
18
|
import { ColDef } from 'ag-grid-community';
|
|
19
19
|
export { ToasterProps, toast } from 'sonner';
|
|
20
20
|
import 'clsx';
|
|
@@ -663,6 +663,7 @@ declare function useConversations(workspaceId: string | undefined, options?: {
|
|
|
663
663
|
enabled?: boolean;
|
|
664
664
|
live?: boolean;
|
|
665
665
|
}): _tanstack_react_query.UseQueryResult<NoInfer<{
|
|
666
|
+
label_ext_ids?: string[] | undefined;
|
|
666
667
|
external_id: string;
|
|
667
668
|
title: string | null;
|
|
668
669
|
created_by_ext_id: string;
|
|
@@ -671,6 +672,16 @@ declare function useConversations(workspaceId: string | undefined, options?: {
|
|
|
671
672
|
updated_at: string;
|
|
672
673
|
is_shared: boolean;
|
|
673
674
|
message_count: number;
|
|
675
|
+
last_message_actor?: {
|
|
676
|
+
external_id: string;
|
|
677
|
+
given_name: string;
|
|
678
|
+
family_name?: string | null | undefined;
|
|
679
|
+
picture?: string | null | undefined;
|
|
680
|
+
parent_ext_id?: string | null | undefined;
|
|
681
|
+
} | null | undefined;
|
|
682
|
+
last_message_ext_id?: string | null | undefined;
|
|
683
|
+
last_message_role?: string | null | undefined;
|
|
684
|
+
last_message_updated_at?: string | null | undefined;
|
|
674
685
|
last_message_status?: string | null | undefined;
|
|
675
686
|
assistant_mode: _arbidocs_client.components["schemas"]["AssistantMode"];
|
|
676
687
|
status?: (_arbidocs_client.components["schemas"]["WorkStatus"] | null) | undefined;
|
|
@@ -1686,6 +1697,7 @@ type AgentConfigSections = Record<string, Record<string, unknown>>;
|
|
|
1686
1697
|
* The one write behind title edits, the share toggle and marking a task done.
|
|
1687
1698
|
*/
|
|
1688
1699
|
declare function useUpdateConversation(): _tanstack_react_query.UseMutationResult<{
|
|
1700
|
+
label_ext_ids?: string[];
|
|
1689
1701
|
external_id: string;
|
|
1690
1702
|
title: string | null;
|
|
1691
1703
|
created_by_ext_id: string;
|
|
@@ -1694,6 +1706,10 @@ declare function useUpdateConversation(): _tanstack_react_query.UseMutationResul
|
|
|
1694
1706
|
updated_at: string;
|
|
1695
1707
|
is_shared: boolean;
|
|
1696
1708
|
message_count: number;
|
|
1709
|
+
last_message_actor?: _arbidocs_client.components["schemas"]["ConversationTurnActor"] | null;
|
|
1710
|
+
last_message_ext_id?: string | null;
|
|
1711
|
+
last_message_role?: string | null;
|
|
1712
|
+
last_message_updated_at?: string | null;
|
|
1697
1713
|
last_message_status?: string | null;
|
|
1698
1714
|
assistant_mode: _arbidocs_client.components["schemas"]["AssistantMode"];
|
|
1699
1715
|
status?: _arbidocs_client.components["schemas"]["WorkStatus"] | null;
|
|
@@ -1729,6 +1745,7 @@ declare function useUpdateConversation(): _tanstack_react_query.UseMutationResul
|
|
|
1729
1745
|
* work that starts at once. Resolves with the created conversation.
|
|
1730
1746
|
*/
|
|
1731
1747
|
declare function useCreateWork(): _tanstack_react_query.UseMutationResult<{
|
|
1748
|
+
label_ext_ids?: string[];
|
|
1732
1749
|
external_id: string;
|
|
1733
1750
|
title: string | null;
|
|
1734
1751
|
created_by_ext_id: string;
|
|
@@ -1737,6 +1754,10 @@ declare function useCreateWork(): _tanstack_react_query.UseMutationResult<{
|
|
|
1737
1754
|
updated_at: string;
|
|
1738
1755
|
is_shared: boolean;
|
|
1739
1756
|
message_count: number;
|
|
1757
|
+
last_message_actor?: _arbidocs_client.components["schemas"]["ConversationTurnActor"] | null;
|
|
1758
|
+
last_message_ext_id?: string | null;
|
|
1759
|
+
last_message_role?: string | null;
|
|
1760
|
+
last_message_updated_at?: string | null;
|
|
1740
1761
|
last_message_status?: string | null;
|
|
1741
1762
|
assistant_mode: _arbidocs_client.components["schemas"]["AssistantMode"];
|
|
1742
1763
|
status?: _arbidocs_client.components["schemas"]["WorkStatus"] | null;
|
|
@@ -1785,6 +1806,7 @@ declare function useCreateWork(): _tanstack_react_query.UseMutationResult<{
|
|
|
1785
1806
|
* clicking Run is the approval. Resolves with the updated conversation.
|
|
1786
1807
|
*/
|
|
1787
1808
|
declare function useRunConversation(): _tanstack_react_query.UseMutationResult<{
|
|
1809
|
+
label_ext_ids?: string[];
|
|
1788
1810
|
external_id: string;
|
|
1789
1811
|
title: string | null;
|
|
1790
1812
|
created_by_ext_id: string;
|
|
@@ -1793,6 +1815,10 @@ declare function useRunConversation(): _tanstack_react_query.UseMutationResult<{
|
|
|
1793
1815
|
updated_at: string;
|
|
1794
1816
|
is_shared: boolean;
|
|
1795
1817
|
message_count: number;
|
|
1818
|
+
last_message_actor?: _arbidocs_client.components["schemas"]["ConversationTurnActor"] | null;
|
|
1819
|
+
last_message_ext_id?: string | null;
|
|
1820
|
+
last_message_role?: string | null;
|
|
1821
|
+
last_message_updated_at?: string | null;
|
|
1796
1822
|
last_message_status?: string | null;
|
|
1797
1823
|
assistant_mode: _arbidocs_client.components["schemas"]["AssistantMode"];
|
|
1798
1824
|
status?: _arbidocs_client.components["schemas"]["WorkStatus"] | null;
|
|
@@ -1825,6 +1851,7 @@ declare function useRunConversation(): _tanstack_react_query.UseMutationResult<{
|
|
|
1825
1851
|
* back with feedback so the agent revises it in the same thread. Resolves with the conversation.
|
|
1826
1852
|
*/
|
|
1827
1853
|
declare function useReviewConversation(): _tanstack_react_query.UseMutationResult<{
|
|
1854
|
+
label_ext_ids?: string[];
|
|
1828
1855
|
external_id: string;
|
|
1829
1856
|
title: string | null;
|
|
1830
1857
|
created_by_ext_id: string;
|
|
@@ -1833,6 +1860,10 @@ declare function useReviewConversation(): _tanstack_react_query.UseMutationResul
|
|
|
1833
1860
|
updated_at: string;
|
|
1834
1861
|
is_shared: boolean;
|
|
1835
1862
|
message_count: number;
|
|
1863
|
+
last_message_actor?: _arbidocs_client.components["schemas"]["ConversationTurnActor"] | null;
|
|
1864
|
+
last_message_ext_id?: string | null;
|
|
1865
|
+
last_message_role?: string | null;
|
|
1866
|
+
last_message_updated_at?: string | null;
|
|
1836
1867
|
last_message_status?: string | null;
|
|
1837
1868
|
assistant_mode: _arbidocs_client.components["schemas"]["AssistantMode"];
|
|
1838
1869
|
status?: _arbidocs_client.components["schemas"]["WorkStatus"] | null;
|
|
@@ -1868,6 +1899,7 @@ declare function useReviewConversation(): _tanstack_react_query.UseMutationResul
|
|
|
1868
1899
|
* sign-off person). Resolves with the updated conversation.
|
|
1869
1900
|
*/
|
|
1870
1901
|
declare function useRequestConversationApproval(): _tanstack_react_query.UseMutationResult<{
|
|
1902
|
+
label_ext_ids?: string[];
|
|
1871
1903
|
external_id: string;
|
|
1872
1904
|
title: string | null;
|
|
1873
1905
|
created_by_ext_id: string;
|
|
@@ -1876,6 +1908,10 @@ declare function useRequestConversationApproval(): _tanstack_react_query.UseMuta
|
|
|
1876
1908
|
updated_at: string;
|
|
1877
1909
|
is_shared: boolean;
|
|
1878
1910
|
message_count: number;
|
|
1911
|
+
last_message_actor?: _arbidocs_client.components["schemas"]["ConversationTurnActor"] | null;
|
|
1912
|
+
last_message_ext_id?: string | null;
|
|
1913
|
+
last_message_role?: string | null;
|
|
1914
|
+
last_message_updated_at?: string | null;
|
|
1879
1915
|
last_message_status?: string | null;
|
|
1880
1916
|
assistant_mode: _arbidocs_client.components["schemas"]["AssistantMode"];
|
|
1881
1917
|
status?: _arbidocs_client.components["schemas"]["WorkStatus"] | null;
|
|
@@ -1967,6 +2003,7 @@ declare function useWorkflows(options?: {
|
|
|
1967
2003
|
} | null;
|
|
1968
2004
|
after_conversation_ext_id?: string | null;
|
|
1969
2005
|
on_demand: boolean;
|
|
2006
|
+
action?: _arbidocs_client.components["schemas"]["DocumentAutomationAction"] | null;
|
|
1970
2007
|
prompt: string;
|
|
1971
2008
|
skill_ref?: string | null;
|
|
1972
2009
|
skill_inputs?: {
|
|
@@ -1979,6 +2016,7 @@ declare function useWorkflows(options?: {
|
|
|
1979
2016
|
fact_ext_id?: string | null;
|
|
1980
2017
|
last_fired_at?: string | null;
|
|
1981
2018
|
last_error?: string | null;
|
|
2019
|
+
last_run_status?: string | null;
|
|
1982
2020
|
owner_ext_id?: string | null;
|
|
1983
2021
|
is_owner: boolean;
|
|
1984
2022
|
created_at: string;
|
|
@@ -2002,6 +2040,7 @@ declare function useCreateWorkflow(): _tanstack_react_query.UseMutationResult<{
|
|
|
2002
2040
|
} | null;
|
|
2003
2041
|
after_conversation_ext_id?: string | null;
|
|
2004
2042
|
on_demand: boolean;
|
|
2043
|
+
action?: _arbidocs_client.components["schemas"]["DocumentAutomationAction"] | null;
|
|
2005
2044
|
prompt: string;
|
|
2006
2045
|
skill_ref?: string | null;
|
|
2007
2046
|
skill_inputs?: {
|
|
@@ -2014,6 +2053,7 @@ declare function useCreateWorkflow(): _tanstack_react_query.UseMutationResult<{
|
|
|
2014
2053
|
fact_ext_id?: string | null;
|
|
2015
2054
|
last_fired_at?: string | null;
|
|
2016
2055
|
last_error?: string | null;
|
|
2056
|
+
last_run_status?: string | null;
|
|
2017
2057
|
owner_ext_id?: string | null;
|
|
2018
2058
|
is_owner: boolean;
|
|
2019
2059
|
created_at: string;
|
|
@@ -2033,6 +2073,7 @@ declare function useCreateWorkflow(): _tanstack_react_query.UseMutationResult<{
|
|
|
2033
2073
|
} | null;
|
|
2034
2074
|
after_conversation_ext_id?: string | null;
|
|
2035
2075
|
on_demand: boolean;
|
|
2076
|
+
action?: _arbidocs_client.components["schemas"]["DocumentAutomationAction"] | null;
|
|
2036
2077
|
prompt: string;
|
|
2037
2078
|
skill_ref?: string | null;
|
|
2038
2079
|
skill_inputs?: {
|
|
@@ -2061,6 +2102,7 @@ declare function useUpdateWorkflow(): _tanstack_react_query.UseMutationResult<{
|
|
|
2061
2102
|
} | null;
|
|
2062
2103
|
after_conversation_ext_id?: string | null;
|
|
2063
2104
|
on_demand: boolean;
|
|
2105
|
+
action?: _arbidocs_client.components["schemas"]["DocumentAutomationAction"] | null;
|
|
2064
2106
|
prompt: string;
|
|
2065
2107
|
skill_ref?: string | null;
|
|
2066
2108
|
skill_inputs?: {
|
|
@@ -2073,6 +2115,7 @@ declare function useUpdateWorkflow(): _tanstack_react_query.UseMutationResult<{
|
|
|
2073
2115
|
fact_ext_id?: string | null;
|
|
2074
2116
|
last_fired_at?: string | null;
|
|
2075
2117
|
last_error?: string | null;
|
|
2118
|
+
last_run_status?: string | null;
|
|
2076
2119
|
owner_ext_id?: string | null;
|
|
2077
2120
|
is_owner: boolean;
|
|
2078
2121
|
created_at: string;
|
|
@@ -2087,6 +2130,8 @@ declare function useDeleteWorkflow(): _tanstack_react_query.UseMutationResult<vo
|
|
|
2087
2130
|
* (`conversation_ext_id`), which joins the conversation list.
|
|
2088
2131
|
*/
|
|
2089
2132
|
declare function useRunWorkflow(): _tanstack_react_query.UseMutationResult<{
|
|
2133
|
+
execution_id?: number | null;
|
|
2134
|
+
action_type?: string | null;
|
|
2090
2135
|
conversation_ext_id?: string | null;
|
|
2091
2136
|
started: boolean;
|
|
2092
2137
|
error?: string | null;
|
|
@@ -3219,7 +3264,8 @@ declare function useDeleteAccountFlow({ userEmail, remove, onClose, onDeleted, o
|
|
|
3219
3264
|
* Credits: the unit the ARBI backend reports AI usage in.
|
|
3220
3265
|
*
|
|
3221
3266
|
* The usage endpoints (`/v1/user/projects/{id}/usage`, `/me/usage/today`) convert the metered USD
|
|
3222
|
-
* spend into
|
|
3267
|
+
* spend into credits at the API boundary (fractional, rounded to 2 decimals, because a small
|
|
3268
|
+
* deployment spends well under one credit a day): 1 credit = `CREDITS_TO_AI_USD`, which is $0.01 on
|
|
3223
3269
|
* a default deployment. The fields are still named `spend` / `total_spend` in the schema, but they
|
|
3224
3270
|
* hold CREDITS, never dollars. Label them as credits; use {@link creditsToUsd} only when a
|
|
3225
3271
|
* dollar figure is genuinely wanted, with the deployment's own rate.
|
|
@@ -3232,7 +3278,11 @@ interface FormatCreditsOptions {
|
|
|
3232
3278
|
/** BCP 47 locale for the digit grouping. Default `en-US`. */
|
|
3233
3279
|
locale?: string;
|
|
3234
3280
|
}
|
|
3235
|
-
/**
|
|
3281
|
+
/**
|
|
3282
|
+
* "0.47 credits" / "1 credit" / "1.5 credits" / "1,235 credits". The backend reports fractional
|
|
3283
|
+
* credits (2 decimals). Amounts under 100 keep up to 2 decimals with trailing zeros trimmed;
|
|
3284
|
+
* amounts of 100 and over round to whole credits. Only exactly 1 is singular.
|
|
3285
|
+
*/
|
|
3236
3286
|
declare function formatCredits(credits: number, options?: FormatCreditsOptions): string;
|
|
3237
3287
|
/** The dollar value of an amount of credits. `usdPerCredit` defaults to {@link DEFAULT_USD_PER_CREDIT}. */
|
|
3238
3288
|
declare function creditsToUsd(credits: number, usdPerCredit?: number): number;
|
|
@@ -3243,10 +3293,10 @@ interface UsageTotals {
|
|
|
3243
3293
|
total_requests: number;
|
|
3244
3294
|
}
|
|
3245
3295
|
/**
|
|
3246
|
-
* Was this usage actually metered? A project
|
|
3247
|
-
*
|
|
3248
|
-
*
|
|
3249
|
-
*
|
|
3296
|
+
* Was this usage actually metered? A `dev`-plan project with an all-zero response (no spend, no
|
|
3297
|
+
* tokens, no requests) is treated as "not metered", so the UI shows a note instead of silent
|
|
3298
|
+
* zeros. Any recorded tokens or requests mean usage was metered, even when the spend rounds to 0
|
|
3299
|
+
* (the backend now records usage when billing is off, and a tiny spend can be 0.00 credits).
|
|
3250
3300
|
*/
|
|
3251
3301
|
declare function isUsageMetered(usage: UsageTotals, subscription: string | null | undefined): boolean;
|
|
3252
3302
|
|
package/dist/index.d.ts
CHANGED
|
@@ -5,16 +5,16 @@ import { ArbiOptions, QueryOptions, Arbi, SSEStreamResult, SSEStreamStartData, U
|
|
|
5
5
|
export { ActivityKind, ActivityResponse, AgentStepEvent, Arbi, ArbiError, ArbiOptions, ArtifactEvent, AuthMode, ConversationResponse, CreateFactRequest, CreateWorkRequest, CreateWorkflowRequest, FactResponse, FactSearchRequest, FactSearchResponse, LoginProfile, MessageMetadataPayload, OutputTokensDetails, PendingAuthResponse, PlanWorkRequest, ProjectInvoicesResponse, ProjectUsageResponse, QueryOptions, RequestApprovalRequest, ResponseCompletedEvent, ResponseContentPartAddedEvent, ResponseCreatedEvent, ResponseFailedEvent, ResponseOutputItemAddedEvent, ResponseOutputItemDoneEvent, ResponseOutputTextDeltaEvent, ResponseOutputTextDoneEvent, ResponseUsage, ReviewWorkRequest, SSEStreamCallbacks, SSEStreamResult, SSEStreamStartData, SkillSummary, TaskPlan, UpdateConversationRequest, UpdateWorkflowRequest, UserDailyUsageResponse, UserInputRequestEvent, UserMessageEvent, WorkStatus, WorkflowAuthMode, WorkflowResponse, WorkflowRunResponse } from '@arbidocs/sdk/browser';
|
|
6
6
|
import * as _arbidocs_client from '@arbidocs/client';
|
|
7
7
|
import { WebSocketServerMessage, WsTaskUpdateMessage, WsPresenceUpdateMessage, components } from '@arbidocs/client';
|
|
8
|
-
export { WebSocketServerMessage, WsBatchCompleteMessage, WsNotificationResponse, WsPresenceUpdateMessage, WsResponseCompleteMessage, WsTaskUpdateMessage, isMessageType } from '@arbidocs/client';
|
|
8
|
+
export { WebSocketServerMessage, WsBatchCompleteMessage, WsConversationMessagePostedMessage, WsNotificationResponse, WsPresenceUpdateMessage, WsResponseCompleteMessage, WsTaskUpdateMessage, isMessageType } from '@arbidocs/client';
|
|
9
9
|
import * as zustand from 'zustand';
|
|
10
10
|
import * as _tanstack_query_core from '@tanstack/query-core';
|
|
11
11
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
12
|
-
import { ab as EntityIconComponent } from './index-
|
|
13
|
-
export { A as AgentBadge, a as AiMarkdown, b as Avatar, c as AvatarFallback, d as AvatarImage, B as BASE_COLORS, e as Badge, f as BadgeProps, g as Button, h as ButtonProps, C as Card, i as CardContent, j as CardDescription, k as CardFooter, l as CardHeader, m as CardProps, n as CardTitle, o as Checkbox, p as Collapsible, q as CollapsibleContent, r as CollapsibleTrigger, s as Command, t as CommandDialog, u as CommandEmpty, v as CommandGroup, w as CommandInput, x as CommandItem, y as CommandList, z as CommandSeparator, D as CommandShortcut, E as Dialog, F as DialogClose, G as DialogContent, H as DialogDescription, I as DialogFooter, J as DialogHeader, K as DialogOverlay, L as DialogPortal, M as DialogPresentation, N as DialogTitle, O as DialogTrigger, P as DictateContextValue, Q as DictateProvider, R as DocumentCard, S as DocumentCardProps, T as DocumentEntity, U as DocumentEntityProps, V as DocumentLike, W as DropdownMenu, X as DropdownMenuCheckboxItem, Y as DropdownMenuContent, Z as DropdownMenuGroup, _ as DropdownMenuItem, $ as DropdownMenuLabel, a0 as DropdownMenuPortal, a1 as DropdownMenuRadioGroup, a2 as DropdownMenuRadioItem, a3 as DropdownMenuSeparator, a4 as DropdownMenuShortcut, a5 as DropdownMenuSub, a6 as DropdownMenuSubContent, a7 as DropdownMenuSubTrigger, a8 as DropdownMenuTrigger, a9 as ENTITY_MAPPINGS, aa as EntityIcon, ac as EntityPill, ad as EntityRegistryOverride, ae as EntityType, af as HoverCard, ag as HoverCardContent, ah as HoverCardTrigger, ai as IconToggle, aj as IconToggleProps, ak as Input, al as InputProps, am as Label, an as MarkMenu, ao as MarkMenuItem, ap as MarkMenuProps, aq as MarkdownRenderer, ar as MarkdownRendererProps, as as MarkdownStreamingContext, at as NEUTRAL_GRAY, au as PLACEHOLDER_COLOR, av as PassageCard, aw as PassageCardProps, ax as Popover, ay as PopoverAnchor, az as PopoverContent, aA as PopoverTrigger, aB as PresenceDisplayStatus, aC as PresenceLabel, aD as Progress, aE as ProjectEntity, aF as ProjectEntityProps, aG as ProjectRelation, aH as RadioGroup, aI as RadioGroupItem, aJ as Rag, aK as RagDot, aL as RelevanceDot, aM as ScrollArea, aN as ScrollBar, aO as Select, aP as SelectContent, aQ as SelectGroup, aR as SelectItem, aS as SelectLabel, aT as SelectScrollDownButton, aU as SelectScrollUpButton, aV as SelectSeparator, aW as SelectTrigger, aX as SelectValue, aY as Separator, aZ as Slider, a_ as StatusBadgeComponent, a$ as StatusBadgeProps, b0 as StatusPill, b1 as StatusPillProps, b2 as StatusVariant, b3 as Switch, b4 as TAG_TYPE_ICONS, b5 as TAG_TYPE_LABELS, b6 as Table, b7 as TableBody, b8 as TableCaption, b9 as TableCell, ba as TableFooter, bb as TableHead, bc as TableHeader, bd as TableRow, be as Tabs, bf as TabsContent, bg as TabsList, bh as TabsTrigger, bi as TagEntity, bj as TagEntityProps, bk as TagLike, bl as Textarea, bm as TextareaProps, bn as
|
|
12
|
+
import { ab as EntityIconComponent } from './index-CUxIcC5j.js';
|
|
13
|
+
export { A as AgentBadge, a as AiMarkdown, b as Avatar, c as AvatarFallback, d as AvatarImage, B as BASE_COLORS, e as Badge, f as BadgeProps, g as Button, h as ButtonProps, C as Card, i as CardContent, j as CardDescription, k as CardFooter, l as CardHeader, m as CardProps, n as CardTitle, o as Checkbox, p as Collapsible, q as CollapsibleContent, r as CollapsibleTrigger, s as Command, t as CommandDialog, u as CommandEmpty, v as CommandGroup, w as CommandInput, x as CommandItem, y as CommandList, z as CommandSeparator, D as CommandShortcut, E as Dialog, F as DialogClose, G as DialogContent, H as DialogDescription, I as DialogFooter, J as DialogHeader, K as DialogOverlay, L as DialogPortal, M as DialogPresentation, N as DialogTitle, O as DialogTrigger, P as DictateContextValue, Q as DictateProvider, R as DocumentCard, S as DocumentCardProps, T as DocumentEntity, U as DocumentEntityProps, V as DocumentLike, W as DropdownMenu, X as DropdownMenuCheckboxItem, Y as DropdownMenuContent, Z as DropdownMenuGroup, _ as DropdownMenuItem, $ as DropdownMenuLabel, a0 as DropdownMenuPortal, a1 as DropdownMenuRadioGroup, a2 as DropdownMenuRadioItem, a3 as DropdownMenuSeparator, a4 as DropdownMenuShortcut, a5 as DropdownMenuSub, a6 as DropdownMenuSubContent, a7 as DropdownMenuSubTrigger, a8 as DropdownMenuTrigger, a9 as ENTITY_MAPPINGS, aa as EntityIcon, ac as EntityPill, ad as EntityRegistryOverride, ae as EntityType, af as HoverCard, ag as HoverCardContent, ah as HoverCardTrigger, ai as IconToggle, aj as IconToggleProps, ak as Input, al as InputProps, am as Label, an as MarkMenu, ao as MarkMenuItem, ap as MarkMenuProps, aq as MarkdownRenderer, ar as MarkdownRendererProps, as as MarkdownStreamingContext, at as NEUTRAL_GRAY, au as PLACEHOLDER_COLOR, av as PassageCard, aw as PassageCardProps, ax as Popover, ay as PopoverAnchor, az as PopoverContent, aA as PopoverTrigger, aB as PresenceDisplayStatus, aC as PresenceLabel, aD as Progress, aE as ProjectEntity, aF as ProjectEntityProps, aG as ProjectRelation, aH as RadioGroup, aI as RadioGroupItem, aJ as Rag, aK as RagDot, aL as RelevanceDot, aM as ScrollArea, aN as ScrollBar, aO as Select, aP as SelectContent, aQ as SelectGroup, aR as SelectItem, aS as SelectLabel, aT as SelectScrollDownButton, aU as SelectScrollUpButton, aV as SelectSeparator, aW as SelectTrigger, aX as SelectValue, aY as Separator, aZ as Slider, a_ as StatusBadgeComponent, a$ as StatusBadgeProps, b0 as StatusPill, b1 as StatusPillProps, b2 as StatusVariant, b3 as Switch, b4 as TAG_TYPE_ICONS, b5 as TAG_TYPE_LABELS, b6 as Table, b7 as TableBody, b8 as TableCaption, b9 as TableCell, ba as TableFooter, bb as TableHead, bc as TableHeader, bd as TableRow, be as Tabs, bf as TabsContent, bg as TabsList, bh as TabsTrigger, bi as TagEntity, bj as TagEntityProps, bk as TagLike, bl as Textarea, bm as TextareaProps, bn as ThreadVisibilityIcon, bo as Toggle, bp as ToggleGroup, bq as ToggleGroupItem, br as Tooltip, bs as TooltipContent, bt as TooltipProvider, bu as TooltipTrigger, bv as UserEntity, bw as UserEntityProps, bx as UserMenu, by as UserMenuItem, bz as UserMenuProps, bA as UserMenuStatus, bB as VISIBILITY_ICONS, bC as VisibilityIcon, bD as VisibilityToggle, bE as VisibilityToggleProps, bF as badgeVariants, bG as buttonVariants, bH as cardVariants, bI as closeOpenEmphasis, bJ as cn, bK as configureEntityRegistry, bL as configureRagLabels, bM as configureStatusRegistry, bN as getDocIcon, bO as getEntityColor, bP as getEntityColorStyles, bQ as getEntityIcon, bR as getEntityLabel, bS as getStatusVariant, bT as getTagTypeIcon, bU as getTagTypeLabel, bV as getWorkspaceColor, bW as markdownBaseComponents, bX as normalizeCitationMarkup, bY as splitMarkdownBlocks, bZ as toggleVariants, b_ as trimOpenCitation } from './index-CUxIcC5j.js';
|
|
14
14
|
import { LucideIcon } from 'lucide-react';
|
|
15
15
|
import { Components } from 'react-markdown';
|
|
16
16
|
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';
|
|
17
|
-
export { A as AppNotification, D as DEFAULT_NOTIFY_TONE, N as NotificationBell, a as NotificationBellProps, b as NotificationBellTriggerState, c as NotifyOptions, d as NotifyVariant, T as Toaster, n as notify, s as seedNotifications, e as selectUnread, u as useNotify } from './index-
|
|
17
|
+
export { A as AppNotification, D as DEFAULT_NOTIFY_TONE, N as NotificationBell, a as NotificationBellProps, b as NotificationBellTriggerState, c as NotifyOptions, d as NotifyVariant, T as Toaster, n as notify, s as seedNotifications, e as selectUnread, u as useNotify } from './index-C7OqcKY3.js';
|
|
18
18
|
import { ColDef } from 'ag-grid-community';
|
|
19
19
|
export { ToasterProps, toast } from 'sonner';
|
|
20
20
|
import 'clsx';
|
|
@@ -663,6 +663,7 @@ declare function useConversations(workspaceId: string | undefined, options?: {
|
|
|
663
663
|
enabled?: boolean;
|
|
664
664
|
live?: boolean;
|
|
665
665
|
}): _tanstack_react_query.UseQueryResult<NoInfer<{
|
|
666
|
+
label_ext_ids?: string[] | undefined;
|
|
666
667
|
external_id: string;
|
|
667
668
|
title: string | null;
|
|
668
669
|
created_by_ext_id: string;
|
|
@@ -671,6 +672,16 @@ declare function useConversations(workspaceId: string | undefined, options?: {
|
|
|
671
672
|
updated_at: string;
|
|
672
673
|
is_shared: boolean;
|
|
673
674
|
message_count: number;
|
|
675
|
+
last_message_actor?: {
|
|
676
|
+
external_id: string;
|
|
677
|
+
given_name: string;
|
|
678
|
+
family_name?: string | null | undefined;
|
|
679
|
+
picture?: string | null | undefined;
|
|
680
|
+
parent_ext_id?: string | null | undefined;
|
|
681
|
+
} | null | undefined;
|
|
682
|
+
last_message_ext_id?: string | null | undefined;
|
|
683
|
+
last_message_role?: string | null | undefined;
|
|
684
|
+
last_message_updated_at?: string | null | undefined;
|
|
674
685
|
last_message_status?: string | null | undefined;
|
|
675
686
|
assistant_mode: _arbidocs_client.components["schemas"]["AssistantMode"];
|
|
676
687
|
status?: (_arbidocs_client.components["schemas"]["WorkStatus"] | null) | undefined;
|
|
@@ -1686,6 +1697,7 @@ type AgentConfigSections = Record<string, Record<string, unknown>>;
|
|
|
1686
1697
|
* The one write behind title edits, the share toggle and marking a task done.
|
|
1687
1698
|
*/
|
|
1688
1699
|
declare function useUpdateConversation(): _tanstack_react_query.UseMutationResult<{
|
|
1700
|
+
label_ext_ids?: string[];
|
|
1689
1701
|
external_id: string;
|
|
1690
1702
|
title: string | null;
|
|
1691
1703
|
created_by_ext_id: string;
|
|
@@ -1694,6 +1706,10 @@ declare function useUpdateConversation(): _tanstack_react_query.UseMutationResul
|
|
|
1694
1706
|
updated_at: string;
|
|
1695
1707
|
is_shared: boolean;
|
|
1696
1708
|
message_count: number;
|
|
1709
|
+
last_message_actor?: _arbidocs_client.components["schemas"]["ConversationTurnActor"] | null;
|
|
1710
|
+
last_message_ext_id?: string | null;
|
|
1711
|
+
last_message_role?: string | null;
|
|
1712
|
+
last_message_updated_at?: string | null;
|
|
1697
1713
|
last_message_status?: string | null;
|
|
1698
1714
|
assistant_mode: _arbidocs_client.components["schemas"]["AssistantMode"];
|
|
1699
1715
|
status?: _arbidocs_client.components["schemas"]["WorkStatus"] | null;
|
|
@@ -1729,6 +1745,7 @@ declare function useUpdateConversation(): _tanstack_react_query.UseMutationResul
|
|
|
1729
1745
|
* work that starts at once. Resolves with the created conversation.
|
|
1730
1746
|
*/
|
|
1731
1747
|
declare function useCreateWork(): _tanstack_react_query.UseMutationResult<{
|
|
1748
|
+
label_ext_ids?: string[];
|
|
1732
1749
|
external_id: string;
|
|
1733
1750
|
title: string | null;
|
|
1734
1751
|
created_by_ext_id: string;
|
|
@@ -1737,6 +1754,10 @@ declare function useCreateWork(): _tanstack_react_query.UseMutationResult<{
|
|
|
1737
1754
|
updated_at: string;
|
|
1738
1755
|
is_shared: boolean;
|
|
1739
1756
|
message_count: number;
|
|
1757
|
+
last_message_actor?: _arbidocs_client.components["schemas"]["ConversationTurnActor"] | null;
|
|
1758
|
+
last_message_ext_id?: string | null;
|
|
1759
|
+
last_message_role?: string | null;
|
|
1760
|
+
last_message_updated_at?: string | null;
|
|
1740
1761
|
last_message_status?: string | null;
|
|
1741
1762
|
assistant_mode: _arbidocs_client.components["schemas"]["AssistantMode"];
|
|
1742
1763
|
status?: _arbidocs_client.components["schemas"]["WorkStatus"] | null;
|
|
@@ -1785,6 +1806,7 @@ declare function useCreateWork(): _tanstack_react_query.UseMutationResult<{
|
|
|
1785
1806
|
* clicking Run is the approval. Resolves with the updated conversation.
|
|
1786
1807
|
*/
|
|
1787
1808
|
declare function useRunConversation(): _tanstack_react_query.UseMutationResult<{
|
|
1809
|
+
label_ext_ids?: string[];
|
|
1788
1810
|
external_id: string;
|
|
1789
1811
|
title: string | null;
|
|
1790
1812
|
created_by_ext_id: string;
|
|
@@ -1793,6 +1815,10 @@ declare function useRunConversation(): _tanstack_react_query.UseMutationResult<{
|
|
|
1793
1815
|
updated_at: string;
|
|
1794
1816
|
is_shared: boolean;
|
|
1795
1817
|
message_count: number;
|
|
1818
|
+
last_message_actor?: _arbidocs_client.components["schemas"]["ConversationTurnActor"] | null;
|
|
1819
|
+
last_message_ext_id?: string | null;
|
|
1820
|
+
last_message_role?: string | null;
|
|
1821
|
+
last_message_updated_at?: string | null;
|
|
1796
1822
|
last_message_status?: string | null;
|
|
1797
1823
|
assistant_mode: _arbidocs_client.components["schemas"]["AssistantMode"];
|
|
1798
1824
|
status?: _arbidocs_client.components["schemas"]["WorkStatus"] | null;
|
|
@@ -1825,6 +1851,7 @@ declare function useRunConversation(): _tanstack_react_query.UseMutationResult<{
|
|
|
1825
1851
|
* back with feedback so the agent revises it in the same thread. Resolves with the conversation.
|
|
1826
1852
|
*/
|
|
1827
1853
|
declare function useReviewConversation(): _tanstack_react_query.UseMutationResult<{
|
|
1854
|
+
label_ext_ids?: string[];
|
|
1828
1855
|
external_id: string;
|
|
1829
1856
|
title: string | null;
|
|
1830
1857
|
created_by_ext_id: string;
|
|
@@ -1833,6 +1860,10 @@ declare function useReviewConversation(): _tanstack_react_query.UseMutationResul
|
|
|
1833
1860
|
updated_at: string;
|
|
1834
1861
|
is_shared: boolean;
|
|
1835
1862
|
message_count: number;
|
|
1863
|
+
last_message_actor?: _arbidocs_client.components["schemas"]["ConversationTurnActor"] | null;
|
|
1864
|
+
last_message_ext_id?: string | null;
|
|
1865
|
+
last_message_role?: string | null;
|
|
1866
|
+
last_message_updated_at?: string | null;
|
|
1836
1867
|
last_message_status?: string | null;
|
|
1837
1868
|
assistant_mode: _arbidocs_client.components["schemas"]["AssistantMode"];
|
|
1838
1869
|
status?: _arbidocs_client.components["schemas"]["WorkStatus"] | null;
|
|
@@ -1868,6 +1899,7 @@ declare function useReviewConversation(): _tanstack_react_query.UseMutationResul
|
|
|
1868
1899
|
* sign-off person). Resolves with the updated conversation.
|
|
1869
1900
|
*/
|
|
1870
1901
|
declare function useRequestConversationApproval(): _tanstack_react_query.UseMutationResult<{
|
|
1902
|
+
label_ext_ids?: string[];
|
|
1871
1903
|
external_id: string;
|
|
1872
1904
|
title: string | null;
|
|
1873
1905
|
created_by_ext_id: string;
|
|
@@ -1876,6 +1908,10 @@ declare function useRequestConversationApproval(): _tanstack_react_query.UseMuta
|
|
|
1876
1908
|
updated_at: string;
|
|
1877
1909
|
is_shared: boolean;
|
|
1878
1910
|
message_count: number;
|
|
1911
|
+
last_message_actor?: _arbidocs_client.components["schemas"]["ConversationTurnActor"] | null;
|
|
1912
|
+
last_message_ext_id?: string | null;
|
|
1913
|
+
last_message_role?: string | null;
|
|
1914
|
+
last_message_updated_at?: string | null;
|
|
1879
1915
|
last_message_status?: string | null;
|
|
1880
1916
|
assistant_mode: _arbidocs_client.components["schemas"]["AssistantMode"];
|
|
1881
1917
|
status?: _arbidocs_client.components["schemas"]["WorkStatus"] | null;
|
|
@@ -1967,6 +2003,7 @@ declare function useWorkflows(options?: {
|
|
|
1967
2003
|
} | null;
|
|
1968
2004
|
after_conversation_ext_id?: string | null;
|
|
1969
2005
|
on_demand: boolean;
|
|
2006
|
+
action?: _arbidocs_client.components["schemas"]["DocumentAutomationAction"] | null;
|
|
1970
2007
|
prompt: string;
|
|
1971
2008
|
skill_ref?: string | null;
|
|
1972
2009
|
skill_inputs?: {
|
|
@@ -1979,6 +2016,7 @@ declare function useWorkflows(options?: {
|
|
|
1979
2016
|
fact_ext_id?: string | null;
|
|
1980
2017
|
last_fired_at?: string | null;
|
|
1981
2018
|
last_error?: string | null;
|
|
2019
|
+
last_run_status?: string | null;
|
|
1982
2020
|
owner_ext_id?: string | null;
|
|
1983
2021
|
is_owner: boolean;
|
|
1984
2022
|
created_at: string;
|
|
@@ -2002,6 +2040,7 @@ declare function useCreateWorkflow(): _tanstack_react_query.UseMutationResult<{
|
|
|
2002
2040
|
} | null;
|
|
2003
2041
|
after_conversation_ext_id?: string | null;
|
|
2004
2042
|
on_demand: boolean;
|
|
2043
|
+
action?: _arbidocs_client.components["schemas"]["DocumentAutomationAction"] | null;
|
|
2005
2044
|
prompt: string;
|
|
2006
2045
|
skill_ref?: string | null;
|
|
2007
2046
|
skill_inputs?: {
|
|
@@ -2014,6 +2053,7 @@ declare function useCreateWorkflow(): _tanstack_react_query.UseMutationResult<{
|
|
|
2014
2053
|
fact_ext_id?: string | null;
|
|
2015
2054
|
last_fired_at?: string | null;
|
|
2016
2055
|
last_error?: string | null;
|
|
2056
|
+
last_run_status?: string | null;
|
|
2017
2057
|
owner_ext_id?: string | null;
|
|
2018
2058
|
is_owner: boolean;
|
|
2019
2059
|
created_at: string;
|
|
@@ -2033,6 +2073,7 @@ declare function useCreateWorkflow(): _tanstack_react_query.UseMutationResult<{
|
|
|
2033
2073
|
} | null;
|
|
2034
2074
|
after_conversation_ext_id?: string | null;
|
|
2035
2075
|
on_demand: boolean;
|
|
2076
|
+
action?: _arbidocs_client.components["schemas"]["DocumentAutomationAction"] | null;
|
|
2036
2077
|
prompt: string;
|
|
2037
2078
|
skill_ref?: string | null;
|
|
2038
2079
|
skill_inputs?: {
|
|
@@ -2061,6 +2102,7 @@ declare function useUpdateWorkflow(): _tanstack_react_query.UseMutationResult<{
|
|
|
2061
2102
|
} | null;
|
|
2062
2103
|
after_conversation_ext_id?: string | null;
|
|
2063
2104
|
on_demand: boolean;
|
|
2105
|
+
action?: _arbidocs_client.components["schemas"]["DocumentAutomationAction"] | null;
|
|
2064
2106
|
prompt: string;
|
|
2065
2107
|
skill_ref?: string | null;
|
|
2066
2108
|
skill_inputs?: {
|
|
@@ -2073,6 +2115,7 @@ declare function useUpdateWorkflow(): _tanstack_react_query.UseMutationResult<{
|
|
|
2073
2115
|
fact_ext_id?: string | null;
|
|
2074
2116
|
last_fired_at?: string | null;
|
|
2075
2117
|
last_error?: string | null;
|
|
2118
|
+
last_run_status?: string | null;
|
|
2076
2119
|
owner_ext_id?: string | null;
|
|
2077
2120
|
is_owner: boolean;
|
|
2078
2121
|
created_at: string;
|
|
@@ -2087,6 +2130,8 @@ declare function useDeleteWorkflow(): _tanstack_react_query.UseMutationResult<vo
|
|
|
2087
2130
|
* (`conversation_ext_id`), which joins the conversation list.
|
|
2088
2131
|
*/
|
|
2089
2132
|
declare function useRunWorkflow(): _tanstack_react_query.UseMutationResult<{
|
|
2133
|
+
execution_id?: number | null;
|
|
2134
|
+
action_type?: string | null;
|
|
2090
2135
|
conversation_ext_id?: string | null;
|
|
2091
2136
|
started: boolean;
|
|
2092
2137
|
error?: string | null;
|
|
@@ -3219,7 +3264,8 @@ declare function useDeleteAccountFlow({ userEmail, remove, onClose, onDeleted, o
|
|
|
3219
3264
|
* Credits: the unit the ARBI backend reports AI usage in.
|
|
3220
3265
|
*
|
|
3221
3266
|
* The usage endpoints (`/v1/user/projects/{id}/usage`, `/me/usage/today`) convert the metered USD
|
|
3222
|
-
* spend into
|
|
3267
|
+
* spend into credits at the API boundary (fractional, rounded to 2 decimals, because a small
|
|
3268
|
+
* deployment spends well under one credit a day): 1 credit = `CREDITS_TO_AI_USD`, which is $0.01 on
|
|
3223
3269
|
* a default deployment. The fields are still named `spend` / `total_spend` in the schema, but they
|
|
3224
3270
|
* hold CREDITS, never dollars. Label them as credits; use {@link creditsToUsd} only when a
|
|
3225
3271
|
* dollar figure is genuinely wanted, with the deployment's own rate.
|
|
@@ -3232,7 +3278,11 @@ interface FormatCreditsOptions {
|
|
|
3232
3278
|
/** BCP 47 locale for the digit grouping. Default `en-US`. */
|
|
3233
3279
|
locale?: string;
|
|
3234
3280
|
}
|
|
3235
|
-
/**
|
|
3281
|
+
/**
|
|
3282
|
+
* "0.47 credits" / "1 credit" / "1.5 credits" / "1,235 credits". The backend reports fractional
|
|
3283
|
+
* credits (2 decimals). Amounts under 100 keep up to 2 decimals with trailing zeros trimmed;
|
|
3284
|
+
* amounts of 100 and over round to whole credits. Only exactly 1 is singular.
|
|
3285
|
+
*/
|
|
3236
3286
|
declare function formatCredits(credits: number, options?: FormatCreditsOptions): string;
|
|
3237
3287
|
/** The dollar value of an amount of credits. `usdPerCredit` defaults to {@link DEFAULT_USD_PER_CREDIT}. */
|
|
3238
3288
|
declare function creditsToUsd(credits: number, usdPerCredit?: number): number;
|
|
@@ -3243,10 +3293,10 @@ interface UsageTotals {
|
|
|
3243
3293
|
total_requests: number;
|
|
3244
3294
|
}
|
|
3245
3295
|
/**
|
|
3246
|
-
* Was this usage actually metered? A project
|
|
3247
|
-
*
|
|
3248
|
-
*
|
|
3249
|
-
*
|
|
3296
|
+
* Was this usage actually metered? A `dev`-plan project with an all-zero response (no spend, no
|
|
3297
|
+
* tokens, no requests) is treated as "not metered", so the UI shows a note instead of silent
|
|
3298
|
+
* zeros. Any recorded tokens or requests mean usage was metered, even when the spend rounds to 0
|
|
3299
|
+
* (the backend now records usage when billing is off, and a tiny spend can be 0.00 credits).
|
|
3250
3300
|
*/
|
|
3251
3301
|
declare function isUsageMetered(usage: UsageTotals, subscription: string | null | undefined): boolean;
|
|
3252
3302
|
|