@arbidocs/react 0.4.16 → 0.4.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/artifacts/index.cjs +15 -15
- package/dist/artifacts/index.js +3 -3
- package/dist/{chunk-CVBY6RKG.cjs → chunk-C3Q4TYFW.cjs} +67 -5
- package/dist/chunk-C3Q4TYFW.cjs.map +1 -0
- package/dist/{chunk-3Q3MMZVU.js → chunk-JJSPTHI2.js} +8 -14
- package/dist/chunk-JJSPTHI2.js.map +1 -0
- package/dist/{chunk-5F57JUW2.js → chunk-NGBWNGXM.js} +69 -8
- package/dist/chunk-NGBWNGXM.js.map +1 -0
- package/dist/{chunk-EEOGV7GV.cjs → chunk-SJBGNP7E.cjs} +7 -14
- package/dist/chunk-SJBGNP7E.cjs.map +1 -0
- package/dist/{index-4WLy-KDK.d.cts → index-DaTuuykQ.d.cts} +36 -1
- package/dist/{index-4WLy-KDK.d.ts → index-DaTuuykQ.d.ts} +36 -1
- package/dist/index.cjs +458 -376
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +423 -163
- package/dist/index.d.ts +423 -163
- package/dist/index.js +108 -34
- package/dist/index.js.map +1 -1
- package/dist/ui/index.cjs +126 -122
- package/dist/ui/index.d.cts +1 -1
- package/dist/ui/index.d.ts +1 -1
- package/dist/ui/index.js +1 -1
- package/package.json +3 -3
- package/dist/chunk-3Q3MMZVU.js.map +0 -1
- package/dist/chunk-5F57JUW2.js.map +0 -1
- package/dist/chunk-CVBY6RKG.cjs.map +0 -1
- package/dist/chunk-EEOGV7GV.cjs.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
2
|
import React__default, { ReactNode, ComponentType } from 'react';
|
|
3
|
-
import { ArbiOptions, Arbi, SSEStreamResult, SSEStreamStartData, UserMessageEvent, MessageMetadataPayload, ResponseOutputItemDoneEvent, ArtifactEvent,
|
|
4
|
-
export { AgentStepEvent, Arbi, ArbiError, ArbiOptions, ArtifactEvent, CreateFactRequest,
|
|
3
|
+
import { ArbiOptions, Arbi, SSEStreamResult, SSEStreamStartData, UserMessageEvent, MessageMetadataPayload, ResponseOutputItemDoneEvent, ArtifactEvent, RequestApprovalRequest, ReviewWorkRequest, UpdateConversationRequest, UpdateWorkflowRequest, LoginProfile } from '@arbidocs/sdk/browser';
|
|
4
|
+
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';
|
|
5
5
|
import * as _arbidocs_client from '@arbidocs/client';
|
|
6
6
|
import { WebSocketServerMessage, WsTaskUpdateMessage, WsPresenceUpdateMessage, components } from '@arbidocs/client';
|
|
7
7
|
export { WebSocketServerMessage, WsBatchCompleteMessage, WsNotificationResponse, WsPresenceUpdateMessage, WsResponseCompleteMessage, WsTaskUpdateMessage, isMessageType } from '@arbidocs/client';
|
|
8
8
|
import * as zustand from 'zustand';
|
|
9
9
|
import * as _tanstack_query_core from '@tanstack/query-core';
|
|
10
10
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
11
|
-
import { ab as EntityIconComponent } from './index-
|
|
12
|
-
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 Toggle, bo as ToggleGroup, bp as ToggleGroupItem, bq as Tooltip, br as TooltipContent, bs as TooltipProvider, bt as TooltipTrigger, bu as UserEntity, bv as UserEntityProps, bw as UserMenu, bx as UserMenuItem, by as UserMenuProps, bz as UserMenuStatus, bA as VISIBILITY_ICONS, bB as VisibilityIcon, bC as
|
|
11
|
+
import { ab as EntityIconComponent } from './index-DaTuuykQ.js';
|
|
12
|
+
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 Toggle, bo as ToggleGroup, bp as ToggleGroupItem, bq as Tooltip, br as TooltipContent, bs as TooltipProvider, bt as TooltipTrigger, bu as UserEntity, bv as UserEntityProps, bw as UserMenu, bx as UserMenuItem, by as UserMenuProps, bz as UserMenuStatus, bA as VISIBILITY_ICONS, bB as VisibilityIcon, bC as VisibilityToggle, bD as VisibilityToggleProps, bE as badgeVariants, bF as buttonVariants, bG as cardVariants, bH as closeOpenEmphasis, bI as cn, bJ as configureEntityRegistry, bK as configureRagLabels, bL as configureStatusRegistry, bM as getDocIcon, bN as getEntityColor, bO as getEntityColorStyles, bP as getEntityIcon, bQ as getEntityLabel, bR as getStatusVariant, bS as getTagTypeIcon, bT as getTagTypeLabel, bU as getWorkspaceColor, bV as markdownBaseComponents, bW as normalizeCitationMarkup, bX as splitMarkdownBlocks, bY as toggleVariants, bZ as trimOpenCitation } from './index-DaTuuykQ.js';
|
|
13
13
|
import { LucideIcon } from 'lucide-react';
|
|
14
14
|
import { Components } from 'react-markdown';
|
|
15
15
|
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';
|
|
@@ -495,6 +495,8 @@ declare const arbiQueryKeys: {
|
|
|
495
495
|
workspaces: () => readonly ["arbi", "workspaces"];
|
|
496
496
|
documents: (workspaceId: string) => readonly ["arbi", "documents", string];
|
|
497
497
|
conversations: (workspaceId: string) => readonly ["arbi", "conversations", string];
|
|
498
|
+
/** Every workspace's conversation list (and threads): the prefix a conversation write invalidates. */
|
|
499
|
+
allConversations: () => readonly ["arbi", "conversations"];
|
|
498
500
|
conversationThreads: (workspaceId: string, conversationId: string) => readonly ["arbi", "conversations", string, "threads", string];
|
|
499
501
|
tags: (workspaceId: string) => readonly ["arbi", "tags", string];
|
|
500
502
|
thumbnails: (docIds: string[]) => readonly ["arbi", "thumbnails", string];
|
|
@@ -502,7 +504,7 @@ declare const arbiQueryKeys: {
|
|
|
502
504
|
agents: () => readonly ["arbi", "agents"];
|
|
503
505
|
sessions: () => readonly ["arbi", "sessions"];
|
|
504
506
|
health: () => readonly ["arbi", "health"];
|
|
505
|
-
|
|
507
|
+
workflows: () => readonly ["arbi", "workflows"];
|
|
506
508
|
facts: (workspaceId: string) => readonly ["arbi", "facts", string];
|
|
507
509
|
configs: () => readonly ["arbi", "configs"];
|
|
508
510
|
activity: () => readonly ["arbi", "activity"];
|
|
@@ -512,7 +514,6 @@ declare const arbiQueryKeys: {
|
|
|
512
514
|
userUsageToday: () => readonly ["arbi", "userUsageToday"];
|
|
513
515
|
contacts: () => readonly ["arbi", "contacts"];
|
|
514
516
|
skills: () => readonly ["arbi", "skills"];
|
|
515
|
-
taskRuns: (taskId: string) => readonly ["arbi", "taskRuns", string];
|
|
516
517
|
/** An agent's pinned config; `undefined` = the library default config. */
|
|
517
518
|
agentConfig: (agentExtId?: string) => readonly ["arbi", "agentConfig", string];
|
|
518
519
|
agentWorkspaces: (agentExtId: string) => readonly ["arbi", "agentWorkspaces", string];
|
|
@@ -588,6 +589,8 @@ declare function useDocuments(workspaceId: string | undefined, options?: {
|
|
|
588
589
|
re_ocred?: boolean | null | undefined;
|
|
589
590
|
config_ext_id?: string | null | undefined;
|
|
590
591
|
parent_ext_id?: string | null | undefined;
|
|
592
|
+
source_message_ext_id?: string | null | undefined;
|
|
593
|
+
conversation_ext_id?: string | null | undefined;
|
|
591
594
|
created_by_ext_id: string;
|
|
592
595
|
updated_by_ext_id?: string | null | undefined;
|
|
593
596
|
created_at: string;
|
|
@@ -633,6 +636,38 @@ declare function useConversations(workspaceId: string | undefined, options?: {
|
|
|
633
636
|
is_shared: boolean;
|
|
634
637
|
message_count: number;
|
|
635
638
|
last_message_status?: string | null | undefined;
|
|
639
|
+
assistant_mode: _arbidocs_client.components["schemas"]["AssistantMode"];
|
|
640
|
+
status?: (_arbidocs_client.components["schemas"]["WorkStatus"] | null) | undefined;
|
|
641
|
+
description?: string | null | undefined;
|
|
642
|
+
due_at?: string | null | undefined;
|
|
643
|
+
signoff_ext_id?: string | null | undefined;
|
|
644
|
+
can_signoff: boolean;
|
|
645
|
+
completed_at?: string | null | undefined;
|
|
646
|
+
completed_by_ext_id?: string | null | undefined;
|
|
647
|
+
parent_conversation_ext_id?: string | null | undefined;
|
|
648
|
+
workflow_ext_id?: string | null | undefined;
|
|
649
|
+
agent_ext_id?: string | null | undefined;
|
|
650
|
+
skill_ref?: string | null | undefined;
|
|
651
|
+
auth_mode?: (_arbidocs_client.components["schemas"]["src__models__work__AuthMode"] | null) | undefined;
|
|
652
|
+
plan?: {
|
|
653
|
+
goal: string;
|
|
654
|
+
criteria: {
|
|
655
|
+
id: string;
|
|
656
|
+
text: string;
|
|
657
|
+
}[];
|
|
658
|
+
max_passes: number;
|
|
659
|
+
documents: string[];
|
|
660
|
+
} | null | undefined;
|
|
661
|
+
goal_state?: {
|
|
662
|
+
[x: string]: unknown;
|
|
663
|
+
} | null | undefined;
|
|
664
|
+
last_error?: string | null | undefined;
|
|
665
|
+
pending_auth_request_id?: string | null | undefined;
|
|
666
|
+
in_progress: boolean;
|
|
667
|
+
active_response_id?: string | null | undefined;
|
|
668
|
+
run_started_at?: string | null | undefined;
|
|
669
|
+
owner_ext_id?: string | null | undefined;
|
|
670
|
+
is_owner: boolean;
|
|
636
671
|
}[]>, Error>;
|
|
637
672
|
/**
|
|
638
673
|
* A conversation's stored threads (each with its message history, citations data included).
|
|
@@ -802,9 +837,13 @@ declare function useConversationThreads(workspaceId: string | undefined, convers
|
|
|
802
837
|
};
|
|
803
838
|
} | undefined;
|
|
804
839
|
config_ext_id?: string | null | undefined;
|
|
805
|
-
shared: boolean;
|
|
806
840
|
tokens: number;
|
|
807
841
|
status: string;
|
|
842
|
+
mentions?: {
|
|
843
|
+
type: "user" | "assistant";
|
|
844
|
+
user_ext_id?: string | null | undefined;
|
|
845
|
+
label?: string | null | undefined;
|
|
846
|
+
}[] | undefined;
|
|
808
847
|
external_id: string;
|
|
809
848
|
created_at: string;
|
|
810
849
|
created_by_ext_id: string;
|
|
@@ -812,6 +851,7 @@ declare function useConversationThreads(workspaceId: string | undefined, convers
|
|
|
812
851
|
parent_message_ext_id?: string | null | undefined;
|
|
813
852
|
}[];
|
|
814
853
|
}[];
|
|
854
|
+
assistant_mode: _arbidocs_client.components["schemas"]["AssistantMode"];
|
|
815
855
|
}>, Error>;
|
|
816
856
|
/** List tags in a workspace. */
|
|
817
857
|
declare function useTags(workspaceId: string | undefined, options?: {
|
|
@@ -881,8 +921,8 @@ declare function useAgents(options?: {
|
|
|
881
921
|
is_sso: boolean;
|
|
882
922
|
}[]>, Error>;
|
|
883
923
|
/**
|
|
884
|
-
* Delete agents. Returns a mutation. Refreshes the agent list and the
|
|
885
|
-
* agent's
|
|
924
|
+
* Delete agents. Returns a mutation. Refreshes the agent list, the workflow list and the conversation list
|
|
925
|
+
* (a deleted agent's workflows and work go with it), and drops the deleted agents' own config and workspace queries.
|
|
886
926
|
*/
|
|
887
927
|
declare function useDeleteAgents(): _tanstack_react_query.UseMutationResult<unknown, Error, {
|
|
888
928
|
agentExtIds: string[];
|
|
@@ -926,46 +966,6 @@ declare function useHealth(options?: {
|
|
|
926
966
|
} | null | undefined;
|
|
927
967
|
available_models: string[];
|
|
928
968
|
}>, Error>;
|
|
929
|
-
/** List the caller's scheduled agent tasks. */
|
|
930
|
-
declare function useTasks(options?: {
|
|
931
|
-
enabled?: boolean;
|
|
932
|
-
}): _tanstack_react_query.UseQueryResult<NoInfer<{
|
|
933
|
-
external_id: string;
|
|
934
|
-
name: string;
|
|
935
|
-
trigger_type: string;
|
|
936
|
-
rrule: string | null;
|
|
937
|
-
run_at: string | null;
|
|
938
|
-
timezone: string;
|
|
939
|
-
event_kind: string | null;
|
|
940
|
-
action_type: string;
|
|
941
|
-
prompt: string;
|
|
942
|
-
skill_ref: string | null;
|
|
943
|
-
status: string;
|
|
944
|
-
next_run_at: string | null;
|
|
945
|
-
last_run_at: string | null;
|
|
946
|
-
last_error: string | null;
|
|
947
|
-
in_progress: boolean;
|
|
948
|
-
active_run_id: string | null;
|
|
949
|
-
agent_session: string | null;
|
|
950
|
-
active_response_id?: string | null;
|
|
951
|
-
active_conversation_ext_id?: string | null;
|
|
952
|
-
run_started_at: string | null;
|
|
953
|
-
notify_on_complete: boolean;
|
|
954
|
-
auth_mode: _arbidocs_client.components["schemas"]["AuthMode"];
|
|
955
|
-
pending_auth_request_id?: string | null;
|
|
956
|
-
pending_auth_session_pubkey?: string | null;
|
|
957
|
-
pending_auth_agent_email?: string | null;
|
|
958
|
-
created_by_kind: string;
|
|
959
|
-
workspace_ext_id?: string | null;
|
|
960
|
-
agent_ext_id?: string | null;
|
|
961
|
-
task_plan?: _arbidocs_client.components["schemas"]["TaskPlan"] | null;
|
|
962
|
-
is_goal_task: boolean;
|
|
963
|
-
goal_state?: {
|
|
964
|
-
[key: string]: unknown;
|
|
965
|
-
} | null;
|
|
966
|
-
created_at: string;
|
|
967
|
-
updated_at: string;
|
|
968
|
-
}[]>, Error>;
|
|
969
969
|
/** List the open workspace's facts. */
|
|
970
970
|
declare function useFacts(workspaceId: string | undefined, options?: {
|
|
971
971
|
enabled?: boolean;
|
|
@@ -1034,7 +1034,7 @@ declare function useActivity(options?: {
|
|
|
1034
1034
|
workspace_ext_id?: string | null | undefined;
|
|
1035
1035
|
content?: string | null | undefined;
|
|
1036
1036
|
conversation_ext_id?: string | null | undefined;
|
|
1037
|
-
|
|
1037
|
+
message_ext_id?: string | null | undefined;
|
|
1038
1038
|
read: boolean;
|
|
1039
1039
|
created_at: string;
|
|
1040
1040
|
updated_at: string;
|
|
@@ -1635,154 +1635,411 @@ declare function useUserUsageToday(options?: {
|
|
|
1635
1635
|
|
|
1636
1636
|
/** An agent or deployment config: section name (`Agents`, `QueryLLM`, ...) to its parameters. */
|
|
1637
1637
|
type AgentConfigSections = Record<string, Record<string, unknown>>;
|
|
1638
|
-
/**
|
|
1639
|
-
|
|
1638
|
+
/**
|
|
1639
|
+
* Patch a conversation: rename it, share it or make it private (`shared`, owner only), or change
|
|
1640
|
+
* its work fields (description, due date, sign-off person, parent, `status` `todo | done`, plan).
|
|
1641
|
+
* The one write behind title edits, the share toggle and marking a task done.
|
|
1642
|
+
*/
|
|
1643
|
+
declare function useUpdateConversation(): _tanstack_react_query.UseMutationResult<{
|
|
1640
1644
|
external_id: string;
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
status
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1645
|
+
title: string | null;
|
|
1646
|
+
created_by_ext_id: string;
|
|
1647
|
+
updated_by_ext_id?: string | null;
|
|
1648
|
+
created_at: string;
|
|
1649
|
+
updated_at: string;
|
|
1650
|
+
is_shared: boolean;
|
|
1651
|
+
message_count: number;
|
|
1652
|
+
last_message_status?: string | null;
|
|
1653
|
+
assistant_mode: _arbidocs_client.components["schemas"]["AssistantMode"];
|
|
1654
|
+
status?: _arbidocs_client.components["schemas"]["WorkStatus"] | null;
|
|
1655
|
+
description?: string | null;
|
|
1656
|
+
due_at?: string | null;
|
|
1657
|
+
signoff_ext_id?: string | null;
|
|
1658
|
+
can_signoff: boolean;
|
|
1659
|
+
completed_at?: string | null;
|
|
1660
|
+
completed_by_ext_id?: string | null;
|
|
1661
|
+
parent_conversation_ext_id?: string | null;
|
|
1662
|
+
workflow_ext_id?: string | null;
|
|
1663
|
+
agent_ext_id?: string | null;
|
|
1664
|
+
skill_ref?: string | null;
|
|
1665
|
+
auth_mode?: _arbidocs_client.components["schemas"]["src__models__work__AuthMode"] | null;
|
|
1666
|
+
plan?: _arbidocs_client.components["schemas"]["TaskPlan"] | null;
|
|
1667
|
+
goal_state?: {
|
|
1668
|
+
[key: string]: unknown;
|
|
1669
|
+
} | null;
|
|
1670
|
+
last_error?: string | null;
|
|
1671
|
+
pending_auth_request_id?: string | null;
|
|
1654
1672
|
in_progress: boolean;
|
|
1655
|
-
active_run_id: string | null;
|
|
1656
|
-
agent_session: string | null;
|
|
1657
1673
|
active_response_id?: string | null;
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1674
|
+
run_started_at?: string | null;
|
|
1675
|
+
owner_ext_id?: string | null;
|
|
1676
|
+
is_owner: boolean;
|
|
1677
|
+
}, Error, {
|
|
1678
|
+
conversationId: string;
|
|
1679
|
+
patch: UpdateConversationRequest;
|
|
1680
|
+
}, unknown>;
|
|
1681
|
+
/**
|
|
1682
|
+
* Create a work item from a `CreateWorkRequest`: a plain to-do, or (with a prompt or skill) agent
|
|
1683
|
+
* work that starts at once. Resolves with the created conversation.
|
|
1684
|
+
*/
|
|
1685
|
+
declare function useCreateWork(): _tanstack_react_query.UseMutationResult<{
|
|
1686
|
+
external_id: string;
|
|
1687
|
+
title: string | null;
|
|
1688
|
+
created_by_ext_id: string;
|
|
1689
|
+
updated_by_ext_id?: string | null;
|
|
1690
|
+
created_at: string;
|
|
1691
|
+
updated_at: string;
|
|
1692
|
+
is_shared: boolean;
|
|
1693
|
+
message_count: number;
|
|
1694
|
+
last_message_status?: string | null;
|
|
1695
|
+
assistant_mode: _arbidocs_client.components["schemas"]["AssistantMode"];
|
|
1696
|
+
status?: _arbidocs_client.components["schemas"]["WorkStatus"] | null;
|
|
1697
|
+
description?: string | null;
|
|
1698
|
+
due_at?: string | null;
|
|
1699
|
+
signoff_ext_id?: string | null;
|
|
1700
|
+
can_signoff: boolean;
|
|
1701
|
+
completed_at?: string | null;
|
|
1702
|
+
completed_by_ext_id?: string | null;
|
|
1703
|
+
parent_conversation_ext_id?: string | null;
|
|
1704
|
+
workflow_ext_id?: string | null;
|
|
1705
|
+
agent_ext_id?: string | null;
|
|
1706
|
+
skill_ref?: string | null;
|
|
1707
|
+
auth_mode?: _arbidocs_client.components["schemas"]["src__models__work__AuthMode"] | null;
|
|
1708
|
+
plan?: _arbidocs_client.components["schemas"]["TaskPlan"] | null;
|
|
1709
|
+
goal_state?: {
|
|
1710
|
+
[key: string]: unknown;
|
|
1711
|
+
} | null;
|
|
1712
|
+
last_error?: string | null;
|
|
1662
1713
|
pending_auth_request_id?: string | null;
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1714
|
+
in_progress: boolean;
|
|
1715
|
+
active_response_id?: string | null;
|
|
1716
|
+
run_started_at?: string | null;
|
|
1717
|
+
owner_ext_id?: string | null;
|
|
1718
|
+
is_owner: boolean;
|
|
1719
|
+
}, Error, {
|
|
1720
|
+
title?: string | null;
|
|
1721
|
+
description?: string | null;
|
|
1722
|
+
due_at?: string | null;
|
|
1723
|
+
signoff_user_ext_id?: string | null;
|
|
1724
|
+
parent_conversation_ext_id?: string | null;
|
|
1725
|
+
shared?: boolean | null;
|
|
1726
|
+
prompt?: string | null;
|
|
1727
|
+
skill_ref?: string | null;
|
|
1728
|
+
skill_inputs?: {
|
|
1729
|
+
[key: string]: unknown;
|
|
1730
|
+
} | null;
|
|
1731
|
+
agent_ext_id?: string | null;
|
|
1732
|
+
auth_mode: _arbidocs_client.components["schemas"]["src__models__work__AuthMode"];
|
|
1733
|
+
plan?: _arbidocs_client.components["schemas"]["TaskPlan"] | null;
|
|
1734
|
+
}, unknown>;
|
|
1735
|
+
/**
|
|
1736
|
+
* Run a work item now, or retry it. A run parked waiting for workspace access (a temporary
|
|
1737
|
+
* authorization tier) is granted a temporary, session-scoped key and run again, so the person
|
|
1738
|
+
* clicking Run is the approval. Resolves with the updated conversation.
|
|
1739
|
+
*/
|
|
1740
|
+
declare function useRunConversation(): _tanstack_react_query.UseMutationResult<{
|
|
1741
|
+
external_id: string;
|
|
1742
|
+
title: string | null;
|
|
1743
|
+
created_by_ext_id: string;
|
|
1744
|
+
updated_by_ext_id?: string | null;
|
|
1745
|
+
created_at: string;
|
|
1746
|
+
updated_at: string;
|
|
1747
|
+
is_shared: boolean;
|
|
1748
|
+
message_count: number;
|
|
1749
|
+
last_message_status?: string | null;
|
|
1750
|
+
assistant_mode: _arbidocs_client.components["schemas"]["AssistantMode"];
|
|
1751
|
+
status?: _arbidocs_client.components["schemas"]["WorkStatus"] | null;
|
|
1752
|
+
description?: string | null;
|
|
1753
|
+
due_at?: string | null;
|
|
1754
|
+
signoff_ext_id?: string | null;
|
|
1755
|
+
can_signoff: boolean;
|
|
1756
|
+
completed_at?: string | null;
|
|
1757
|
+
completed_by_ext_id?: string | null;
|
|
1758
|
+
parent_conversation_ext_id?: string | null;
|
|
1759
|
+
workflow_ext_id?: string | null;
|
|
1667
1760
|
agent_ext_id?: string | null;
|
|
1668
|
-
|
|
1669
|
-
|
|
1761
|
+
skill_ref?: string | null;
|
|
1762
|
+
auth_mode?: _arbidocs_client.components["schemas"]["src__models__work__AuthMode"] | null;
|
|
1763
|
+
plan?: _arbidocs_client.components["schemas"]["TaskPlan"] | null;
|
|
1670
1764
|
goal_state?: {
|
|
1671
1765
|
[key: string]: unknown;
|
|
1672
1766
|
} | null;
|
|
1767
|
+
last_error?: string | null;
|
|
1768
|
+
pending_auth_request_id?: string | null;
|
|
1769
|
+
in_progress: boolean;
|
|
1770
|
+
active_response_id?: string | null;
|
|
1771
|
+
run_started_at?: string | null;
|
|
1772
|
+
owner_ext_id?: string | null;
|
|
1773
|
+
is_owner: boolean;
|
|
1774
|
+
}, Error, string, unknown>;
|
|
1775
|
+
/**
|
|
1776
|
+
* The sign-off person's verdict on work that is ready for review: approve it (done) or send it
|
|
1777
|
+
* back with feedback so the agent revises it in the same thread. Resolves with the conversation.
|
|
1778
|
+
*/
|
|
1779
|
+
declare function useReviewConversation(): _tanstack_react_query.UseMutationResult<{
|
|
1780
|
+
external_id: string;
|
|
1781
|
+
title: string | null;
|
|
1782
|
+
created_by_ext_id: string;
|
|
1783
|
+
updated_by_ext_id?: string | null;
|
|
1673
1784
|
created_at: string;
|
|
1674
1785
|
updated_at: string;
|
|
1786
|
+
is_shared: boolean;
|
|
1787
|
+
message_count: number;
|
|
1788
|
+
last_message_status?: string | null;
|
|
1789
|
+
assistant_mode: _arbidocs_client.components["schemas"]["AssistantMode"];
|
|
1790
|
+
status?: _arbidocs_client.components["schemas"]["WorkStatus"] | null;
|
|
1791
|
+
description?: string | null;
|
|
1792
|
+
due_at?: string | null;
|
|
1793
|
+
signoff_ext_id?: string | null;
|
|
1794
|
+
can_signoff: boolean;
|
|
1795
|
+
completed_at?: string | null;
|
|
1796
|
+
completed_by_ext_id?: string | null;
|
|
1797
|
+
parent_conversation_ext_id?: string | null;
|
|
1798
|
+
workflow_ext_id?: string | null;
|
|
1799
|
+
agent_ext_id?: string | null;
|
|
1800
|
+
skill_ref?: string | null;
|
|
1801
|
+
auth_mode?: _arbidocs_client.components["schemas"]["src__models__work__AuthMode"] | null;
|
|
1802
|
+
plan?: _arbidocs_client.components["schemas"]["TaskPlan"] | null;
|
|
1803
|
+
goal_state?: {
|
|
1804
|
+
[key: string]: unknown;
|
|
1805
|
+
} | null;
|
|
1806
|
+
last_error?: string | null;
|
|
1807
|
+
pending_auth_request_id?: string | null;
|
|
1808
|
+
in_progress: boolean;
|
|
1809
|
+
active_response_id?: string | null;
|
|
1810
|
+
run_started_at?: string | null;
|
|
1811
|
+
owner_ext_id?: string | null;
|
|
1812
|
+
is_owner: boolean;
|
|
1675
1813
|
}, Error, {
|
|
1814
|
+
conversationId: string;
|
|
1815
|
+
review: ReviewWorkRequest;
|
|
1816
|
+
}, unknown>;
|
|
1817
|
+
/**
|
|
1818
|
+
* Ask another person to approve a work item (a real request: they are notified and become its
|
|
1819
|
+
* sign-off person). Resolves with the updated conversation.
|
|
1820
|
+
*/
|
|
1821
|
+
declare function useRequestConversationApproval(): _tanstack_react_query.UseMutationResult<{
|
|
1822
|
+
external_id: string;
|
|
1823
|
+
title: string | null;
|
|
1824
|
+
created_by_ext_id: string;
|
|
1825
|
+
updated_by_ext_id?: string | null;
|
|
1826
|
+
created_at: string;
|
|
1827
|
+
updated_at: string;
|
|
1828
|
+
is_shared: boolean;
|
|
1829
|
+
message_count: number;
|
|
1830
|
+
last_message_status?: string | null;
|
|
1831
|
+
assistant_mode: _arbidocs_client.components["schemas"]["AssistantMode"];
|
|
1832
|
+
status?: _arbidocs_client.components["schemas"]["WorkStatus"] | null;
|
|
1833
|
+
description?: string | null;
|
|
1834
|
+
due_at?: string | null;
|
|
1835
|
+
signoff_ext_id?: string | null;
|
|
1836
|
+
can_signoff: boolean;
|
|
1837
|
+
completed_at?: string | null;
|
|
1838
|
+
completed_by_ext_id?: string | null;
|
|
1839
|
+
parent_conversation_ext_id?: string | null;
|
|
1840
|
+
workflow_ext_id?: string | null;
|
|
1841
|
+
agent_ext_id?: string | null;
|
|
1842
|
+
skill_ref?: string | null;
|
|
1843
|
+
auth_mode?: _arbidocs_client.components["schemas"]["src__models__work__AuthMode"] | null;
|
|
1844
|
+
plan?: _arbidocs_client.components["schemas"]["TaskPlan"] | null;
|
|
1845
|
+
goal_state?: {
|
|
1846
|
+
[key: string]: unknown;
|
|
1847
|
+
} | null;
|
|
1848
|
+
last_error?: string | null;
|
|
1849
|
+
pending_auth_request_id?: string | null;
|
|
1850
|
+
in_progress: boolean;
|
|
1851
|
+
active_response_id?: string | null;
|
|
1852
|
+
run_started_at?: string | null;
|
|
1853
|
+
owner_ext_id?: string | null;
|
|
1854
|
+
is_owner: boolean;
|
|
1855
|
+
}, Error, {
|
|
1856
|
+
conversationId: string;
|
|
1857
|
+
request: RequestApprovalRequest;
|
|
1858
|
+
}, unknown>;
|
|
1859
|
+
/** Draft a reviewable plan (goal and acceptance checklist) from an objective. */
|
|
1860
|
+
declare function usePlanWork(): _tanstack_react_query.UseMutationResult<{
|
|
1861
|
+
goal: string;
|
|
1862
|
+
criteria: _arbidocs_client.components["schemas"]["TaskPlanCriterion"][];
|
|
1863
|
+
max_passes: number;
|
|
1864
|
+
documents: string[];
|
|
1865
|
+
}, Error, {
|
|
1866
|
+
objective: string;
|
|
1867
|
+
max_passes: number;
|
|
1868
|
+
}, unknown>;
|
|
1869
|
+
/**
|
|
1870
|
+
* The agent run-session key a parked run waits for the owner to allow (public key and email,
|
|
1871
|
+
* non-secret). Enabled only while the run is waiting; 404 otherwise.
|
|
1872
|
+
*/
|
|
1873
|
+
declare function useConversationPendingAuth(conversationId: string | undefined, options?: {
|
|
1874
|
+
enabled?: boolean;
|
|
1875
|
+
}): _tanstack_react_query.UseQueryResult<NoInfer<{
|
|
1876
|
+
session_pubkey: string;
|
|
1877
|
+
agent_email: string;
|
|
1878
|
+
workspace_ext_id?: string | null;
|
|
1879
|
+
}>, Error>;
|
|
1880
|
+
/**
|
|
1881
|
+
* A task's history, oldest first (created, run started, handed off, sent back, done, ...). Cached
|
|
1882
|
+
* under the conversations prefix, so every task write that invalidates the list refreshes it too.
|
|
1883
|
+
* Pass `live` while a run is generating to re-read it every few seconds.
|
|
1884
|
+
*/
|
|
1885
|
+
declare function useConversationActivity(conversationId: string | undefined, options?: {
|
|
1886
|
+
enabled?: boolean;
|
|
1887
|
+
live?: boolean;
|
|
1888
|
+
}): _tanstack_react_query.UseQueryResult<NoInfer<{
|
|
1889
|
+
external_id: string;
|
|
1890
|
+
kind: _arbidocs_client.components["schemas"]["ActivityKind"];
|
|
1891
|
+
actor_ext_id?: string | null;
|
|
1892
|
+
to_ext_id?: string | null;
|
|
1893
|
+
note?: string | null;
|
|
1894
|
+
detail?: {
|
|
1895
|
+
[key: string]: unknown;
|
|
1896
|
+
} | null;
|
|
1897
|
+
created_at: string;
|
|
1898
|
+
}[]>, Error>;
|
|
1899
|
+
/** The caller's workflows (their own, and the ones shared with the open workspace). */
|
|
1900
|
+
declare function useWorkflows(options?: {
|
|
1901
|
+
enabled?: boolean;
|
|
1902
|
+
}): _tanstack_react_query.UseQueryResult<NoInfer<{
|
|
1903
|
+
external_id: string;
|
|
1676
1904
|
name: string;
|
|
1677
|
-
|
|
1905
|
+
description: string;
|
|
1906
|
+
active: boolean;
|
|
1907
|
+
shared: boolean;
|
|
1908
|
+
workspace_ext_id?: string | null;
|
|
1678
1909
|
rrule?: string | null;
|
|
1679
|
-
run_at?: string | null;
|
|
1680
1910
|
timezone: string;
|
|
1911
|
+
run_at?: string | null;
|
|
1912
|
+
next_fire_at?: string | null;
|
|
1681
1913
|
event_kind?: string | null;
|
|
1682
|
-
|
|
1914
|
+
event_filter?: {
|
|
1915
|
+
[key: string]: unknown;
|
|
1916
|
+
} | null;
|
|
1917
|
+
after_conversation_ext_id?: string | null;
|
|
1918
|
+
on_demand: boolean;
|
|
1683
1919
|
prompt: string;
|
|
1684
1920
|
skill_ref?: string | null;
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1921
|
+
skill_inputs?: {
|
|
1922
|
+
[key: string]: unknown;
|
|
1923
|
+
} | null;
|
|
1924
|
+
plan?: _arbidocs_client.components["schemas"]["TaskPlan"] | null;
|
|
1688
1925
|
agent_ext_id?: string | null;
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1926
|
+
auth_mode: _arbidocs_client.components["schemas"]["src__models__workflow__AuthMode"];
|
|
1927
|
+
signoff_ext_id?: string | null;
|
|
1928
|
+
fact_ext_id?: string | null;
|
|
1929
|
+
last_fired_at?: string | null;
|
|
1930
|
+
last_error?: string | null;
|
|
1931
|
+
owner_ext_id?: string | null;
|
|
1932
|
+
is_owner: boolean;
|
|
1933
|
+
created_at: string;
|
|
1934
|
+
updated_at: string;
|
|
1935
|
+
}[]>, Error>;
|
|
1936
|
+
/** Create a workflow from a `CreateWorkflowRequest`. Resolves with the created workflow. */
|
|
1937
|
+
declare function useCreateWorkflow(): _tanstack_react_query.UseMutationResult<{
|
|
1693
1938
|
external_id: string;
|
|
1694
1939
|
name: string;
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1940
|
+
description: string;
|
|
1941
|
+
active: boolean;
|
|
1942
|
+
shared: boolean;
|
|
1943
|
+
workspace_ext_id?: string | null;
|
|
1944
|
+
rrule?: string | null;
|
|
1698
1945
|
timezone: string;
|
|
1699
|
-
|
|
1700
|
-
|
|
1946
|
+
run_at?: string | null;
|
|
1947
|
+
next_fire_at?: string | null;
|
|
1948
|
+
event_kind?: string | null;
|
|
1949
|
+
event_filter?: {
|
|
1950
|
+
[key: string]: unknown;
|
|
1951
|
+
} | null;
|
|
1952
|
+
after_conversation_ext_id?: string | null;
|
|
1953
|
+
on_demand: boolean;
|
|
1701
1954
|
prompt: string;
|
|
1702
|
-
skill_ref
|
|
1703
|
-
|
|
1704
|
-
next_run_at: string | null;
|
|
1705
|
-
last_run_at: string | null;
|
|
1706
|
-
last_error: string | null;
|
|
1707
|
-
in_progress: boolean;
|
|
1708
|
-
active_run_id: string | null;
|
|
1709
|
-
agent_session: string | null;
|
|
1710
|
-
active_response_id?: string | null;
|
|
1711
|
-
active_conversation_ext_id?: string | null;
|
|
1712
|
-
run_started_at: string | null;
|
|
1713
|
-
notify_on_complete: boolean;
|
|
1714
|
-
auth_mode: _arbidocs_client.components["schemas"]["AuthMode"];
|
|
1715
|
-
pending_auth_request_id?: string | null;
|
|
1716
|
-
pending_auth_session_pubkey?: string | null;
|
|
1717
|
-
pending_auth_agent_email?: string | null;
|
|
1718
|
-
created_by_kind: string;
|
|
1719
|
-
workspace_ext_id?: string | null;
|
|
1720
|
-
agent_ext_id?: string | null;
|
|
1721
|
-
task_plan?: _arbidocs_client.components["schemas"]["TaskPlan"] | null;
|
|
1722
|
-
is_goal_task: boolean;
|
|
1723
|
-
goal_state?: {
|
|
1955
|
+
skill_ref?: string | null;
|
|
1956
|
+
skill_inputs?: {
|
|
1724
1957
|
[key: string]: unknown;
|
|
1725
1958
|
} | null;
|
|
1959
|
+
plan?: _arbidocs_client.components["schemas"]["TaskPlan"] | null;
|
|
1960
|
+
agent_ext_id?: string | null;
|
|
1961
|
+
auth_mode: _arbidocs_client.components["schemas"]["src__models__workflow__AuthMode"];
|
|
1962
|
+
signoff_ext_id?: string | null;
|
|
1963
|
+
fact_ext_id?: string | null;
|
|
1964
|
+
last_fired_at?: string | null;
|
|
1965
|
+
last_error?: string | null;
|
|
1966
|
+
owner_ext_id?: string | null;
|
|
1967
|
+
is_owner: boolean;
|
|
1726
1968
|
created_at: string;
|
|
1727
1969
|
updated_at: string;
|
|
1728
1970
|
}, Error, {
|
|
1729
|
-
|
|
1730
|
-
|
|
1971
|
+
workspace_ext_id: string;
|
|
1972
|
+
name: string;
|
|
1973
|
+
description: string;
|
|
1974
|
+
active: boolean;
|
|
1975
|
+
shared: boolean;
|
|
1976
|
+
rrule?: string | null;
|
|
1977
|
+
timezone: string;
|
|
1978
|
+
run_at?: string | null;
|
|
1979
|
+
event_kind?: string | null;
|
|
1980
|
+
event_filter?: {
|
|
1981
|
+
[key: string]: string | number | boolean;
|
|
1982
|
+
} | null;
|
|
1983
|
+
after_conversation_ext_id?: string | null;
|
|
1984
|
+
on_demand: boolean;
|
|
1985
|
+
prompt: string;
|
|
1986
|
+
skill_ref?: string | null;
|
|
1987
|
+
skill_inputs?: {
|
|
1988
|
+
[key: string]: unknown;
|
|
1989
|
+
} | null;
|
|
1990
|
+
plan?: _arbidocs_client.components["schemas"]["TaskPlan"] | null;
|
|
1991
|
+
agent_ext_id?: string | null;
|
|
1992
|
+
auth_mode: _arbidocs_client.components["schemas"]["src__models__workflow__AuthMode"];
|
|
1993
|
+
signoff_user_ext_id?: string | null;
|
|
1731
1994
|
}, unknown>;
|
|
1732
|
-
/**
|
|
1733
|
-
|
|
1734
|
-
* temporary authorization tier) is granted a temporary, session-scoped key and run again, so the
|
|
1735
|
-
* owner clicking Run is the approval. Resolves with the updated task.
|
|
1736
|
-
*/
|
|
1737
|
-
declare function useRunTask(): _tanstack_react_query.UseMutationResult<{
|
|
1995
|
+
/** Patch a workflow: pause or resume it (`active`), share it, or change its trigger or action. */
|
|
1996
|
+
declare function useUpdateWorkflow(): _tanstack_react_query.UseMutationResult<{
|
|
1738
1997
|
external_id: string;
|
|
1739
1998
|
name: string;
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1999
|
+
description: string;
|
|
2000
|
+
active: boolean;
|
|
2001
|
+
shared: boolean;
|
|
2002
|
+
workspace_ext_id?: string | null;
|
|
2003
|
+
rrule?: string | null;
|
|
1743
2004
|
timezone: string;
|
|
1744
|
-
|
|
1745
|
-
|
|
2005
|
+
run_at?: string | null;
|
|
2006
|
+
next_fire_at?: string | null;
|
|
2007
|
+
event_kind?: string | null;
|
|
2008
|
+
event_filter?: {
|
|
2009
|
+
[key: string]: unknown;
|
|
2010
|
+
} | null;
|
|
2011
|
+
after_conversation_ext_id?: string | null;
|
|
2012
|
+
on_demand: boolean;
|
|
1746
2013
|
prompt: string;
|
|
1747
|
-
skill_ref
|
|
1748
|
-
|
|
1749
|
-
next_run_at: string | null;
|
|
1750
|
-
last_run_at: string | null;
|
|
1751
|
-
last_error: string | null;
|
|
1752
|
-
in_progress: boolean;
|
|
1753
|
-
active_run_id: string | null;
|
|
1754
|
-
agent_session: string | null;
|
|
1755
|
-
active_response_id?: string | null;
|
|
1756
|
-
active_conversation_ext_id?: string | null;
|
|
1757
|
-
run_started_at: string | null;
|
|
1758
|
-
notify_on_complete: boolean;
|
|
1759
|
-
auth_mode: _arbidocs_client.components["schemas"]["AuthMode"];
|
|
1760
|
-
pending_auth_request_id?: string | null;
|
|
1761
|
-
pending_auth_session_pubkey?: string | null;
|
|
1762
|
-
pending_auth_agent_email?: string | null;
|
|
1763
|
-
created_by_kind: string;
|
|
1764
|
-
workspace_ext_id?: string | null;
|
|
1765
|
-
agent_ext_id?: string | null;
|
|
1766
|
-
task_plan?: _arbidocs_client.components["schemas"]["TaskPlan"] | null;
|
|
1767
|
-
is_goal_task: boolean;
|
|
1768
|
-
goal_state?: {
|
|
2014
|
+
skill_ref?: string | null;
|
|
2015
|
+
skill_inputs?: {
|
|
1769
2016
|
[key: string]: unknown;
|
|
1770
2017
|
} | null;
|
|
2018
|
+
plan?: _arbidocs_client.components["schemas"]["TaskPlan"] | null;
|
|
2019
|
+
agent_ext_id?: string | null;
|
|
2020
|
+
auth_mode: _arbidocs_client.components["schemas"]["src__models__workflow__AuthMode"];
|
|
2021
|
+
signoff_ext_id?: string | null;
|
|
2022
|
+
fact_ext_id?: string | null;
|
|
2023
|
+
last_fired_at?: string | null;
|
|
2024
|
+
last_error?: string | null;
|
|
2025
|
+
owner_ext_id?: string | null;
|
|
2026
|
+
is_owner: boolean;
|
|
1771
2027
|
created_at: string;
|
|
1772
2028
|
updated_at: string;
|
|
1773
|
-
}, Error,
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
2029
|
+
}, Error, {
|
|
2030
|
+
workflowId: string;
|
|
2031
|
+
patch: UpdateWorkflowRequest;
|
|
2032
|
+
}, unknown>;
|
|
2033
|
+
declare function useDeleteWorkflow(): _tanstack_react_query.UseMutationResult<void, Error, string, unknown>;
|
|
2034
|
+
/**
|
|
2035
|
+
* Run a workflow now. Resolves with the conversation it created
|
|
2036
|
+
* (`conversation_ext_id`), which joins the conversation list.
|
|
2037
|
+
*/
|
|
2038
|
+
declare function useRunWorkflow(): _tanstack_react_query.UseMutationResult<{
|
|
1780
2039
|
conversation_ext_id?: string | null;
|
|
1781
|
-
|
|
2040
|
+
started: boolean;
|
|
1782
2041
|
error?: string | null;
|
|
1783
|
-
|
|
1784
|
-
finished_at?: string | null;
|
|
1785
|
-
}[]>, Error>;
|
|
2042
|
+
}, Error, string, unknown>;
|
|
1786
2043
|
/** Create an agent by name. The one-time `signing_private_key` is in the result. */
|
|
1787
2044
|
declare function useCreateAgent(): _tanstack_react_query.UseMutationResult<{
|
|
1788
2045
|
external_id: string;
|
|
@@ -2935,6 +3192,8 @@ declare function useWorkspaceDocs(workspaceId?: string): {
|
|
|
2935
3192
|
re_ocred?: boolean | null | undefined;
|
|
2936
3193
|
config_ext_id?: string | null | undefined;
|
|
2937
3194
|
parent_ext_id?: string | null | undefined;
|
|
3195
|
+
source_message_ext_id?: string | null | undefined;
|
|
3196
|
+
conversation_ext_id?: string | null | undefined;
|
|
2938
3197
|
created_by_ext_id: string;
|
|
2939
3198
|
updated_by_ext_id?: string | null | undefined;
|
|
2940
3199
|
created_at: string;
|
|
@@ -2996,11 +3255,12 @@ declare function useAiTask(): {
|
|
|
2996
3255
|
type: "arbi.artifact";
|
|
2997
3256
|
doc_ext_id: string;
|
|
2998
3257
|
title: string;
|
|
2999
|
-
mode: "markdown" | "html" | "text" | "image";
|
|
3258
|
+
mode: "markdown" | "html" | "text" | "react" | "image";
|
|
3000
3259
|
content: string;
|
|
3001
3260
|
file_type: string;
|
|
3002
3261
|
is_complete: boolean;
|
|
3003
3262
|
version: number;
|
|
3263
|
+
parent_doc_ext_id?: string | null;
|
|
3004
3264
|
message_ext_id?: string | null;
|
|
3005
3265
|
}[];
|
|
3006
3266
|
run: (question: string, docIds: string[], opts?: AiRunOptions) => Promise<SSEStreamResult | null>;
|
|
@@ -3129,7 +3389,7 @@ interface MessageArtifact {
|
|
|
3129
3389
|
/** Whether generation has finished. */
|
|
3130
3390
|
isComplete: boolean;
|
|
3131
3391
|
/** Content mode; `image` swaps in image-specific labels and icon. */
|
|
3132
|
-
mode: 'markdown' | 'html' | 'text' | 'image';
|
|
3392
|
+
mode: 'markdown' | 'html' | 'text' | 'react' | 'image';
|
|
3133
3393
|
}
|
|
3134
3394
|
interface MessageArtifactCardProps {
|
|
3135
3395
|
/** The streaming/drafted document linked to this assistant message. */
|
|
@@ -4551,4 +4811,4 @@ interface ArbiUiState {
|
|
|
4551
4811
|
}
|
|
4552
4812
|
declare const useArbiUiStore: zustand.UseBoundStore<zustand.StoreApi<ArbiUiState>>;
|
|
4553
4813
|
|
|
4554
|
-
export { type ActivityContent, type ActivityDescription, ActivityFeed, type ActivityFeedProps, type AgentAccessMode, type AgentConfigSections, type AggregatedDailyUsage, type AggregatedModelGroupUsage, AiActionCard, AiAnswer, type AiRunOptions, type AiTaskStatus, AppleIcon, ArbiBotHeadIcon, ArbiBotIcon, type ArbiChat, type ArbiChatCitation, type ArbiChatDocument, type ArbiChatMessage, type ArbiChatMessageStatus, type ArbiChatPassage, type ArbiChatRole, type ArbiChatThread, ArbiIcon, ArbiProvider, type ArbiProviderProps, type ArbiUiState, ArbiWebSocketProvider, type ArbiWebSocketProviderProps, type ArbiWsState, type ArbiWsStatus, ArtifactCanvas, type AspectOption, AudIcon, type AudioRecorderState, type AvatarCrop, type AvatarFileProblem, ChatBubble, type ChatBubbleProps, type Chunk, type ChunkActivation, CitationRenderer, type CitationRendererProps, type CitationState, ClaudeIcon, CommandPalette, type CommandPaletteClassNames, type CommandPaletteProps, CommandPaletteProvider, type CommandPaletteProviderProps, type CommandPaletteValue, ConversationList, type ConversationListProps, type CropArea, type CropOutput, type CropResult, DEFAULT_ASPECT_OPTIONS, DEFAULT_PASSWORD_CHANGE_FORM_MESSAGES, DEFAULT_START_BY_EMAIL_LABELS, DEFAULT_USD_PER_CREDIT, DateSeparator, type DateSeparatorProps, type DeleteAccountBlocker, type DeleteAccountFlow, DirectMessages, type DirectMessagesProps, DmAvatar, type DmAvatarProps, type DmClassNames, DmComposer, type DmComposerProps, type DmConversation, type DmMessage, type DmNotification, type DmUser, DocIcon, DocQaPanel, DocSearch, DocumentCardMenu, type DocumentCardMenuProps, DocumentGallery, type DocumentGalleryProps, DocumentReview, type DocumentReviewProps, DocumentTable, type DocumentTableProps, DraftTitleControls, type DraftTitleControlsProps, type EmailChange, type EmailPreferences, EmlIcon, EntityIconComponent, FILE_TYPE_COLORS, FileIcon, FireworksIcon, type FormatCreditsOptions, GeminiIcon, GitHubIcon, GoogleIcon, type GrantAgentAccessVars, HtmlIcon, ImageCropModal, type ImageCropModalProps, ImageCropper, type ImageCropperProps, ImgIcon, InlineMicButton, type InlineMicButtonProps, LinkedInIcon, MAX_AVATAR_FILE_BYTES, type MessageArtifact, MessageArtifactCard, MessageBubble, type MessageBubbleProps, MessageThread, type MessageThreadProps, MicRecordingOverlay, type MicRecordingOverlayProps, MicWaveformIndicator, type MicWaveformIndicatorProps, type NameEditor, type NotificationPreferencesModel, type NotificationTypeMeta, OpenAIIcon, type PaletteNavItem, type ParsedChunk, type ParsedChunkMetadata, type ParsedDocument, type ParsedDocumentMetadata, type PasswordChangeForm, type PasswordChangeFormMessages, type PasswordChangeResult, type PasswordChangeVars, PdfIcon, PhotoCapture, type PhotoCaptureProps, type ProfileView, type ProjectsUsageAggregate, ProviderIcon, RUN_WINDOW_MS, type RenderMarkdown, type SaveAgentConfigVars, type SearchChunk, SemanticSearch, type SemanticSearchProps, type ShellRecentWorkspaceItem, type ShellWorkspaceItem, type ShellWorkspaceKind, type ShellWorkspaceMember, type ShellWorkspaceSeed, type ShellWorkspaceSource, StartByEmail, type StartByEmailLabels, type StartByEmailProps, type ThreadAccessors, type ThreadItem, type ToolResponses, TxtIcon, TypingIndicator, type UpdateProfileVars, type UsageTotals, type UseArbiChatOptions, type UseArbiShellWorkspacesOptions, type UseAudioRecorderResult, type UseAvatarCropOptions, type UseCameraStreamResult, type UseDeleteAccountFlowOptions, type UseDirectMessagesResult, type UseEmailChangeOptions, type UseNameEditorOptions, type UsePasswordChangeFormOptions, type UseShellWorkspacesOptions, type UseShellWorkspacesResult, type UseVideoRecorderResult, VidIcon, VideoCapture, type VideoCaptureProps, type VideoRecorderState, VoiceNoteRecorder, type VoiceNoteRecorderProps, XlsIcon, annotateThread, arbiQueryKeys, captureFrameAsBlob, creditsToUsd, cropImage, dayKey, describeActivity, formatCredits, formatElapsed, formatRelativeTime, getNotificationTypeMeta, getWorkspaceActionText, getWorkspaceKind, getWorkspaceSentPhrase, hasVideoTrack, isUsageMetered, isWorkspaceNotificationType, parseActivityContent, parseDeleteAccountBlockers, pickRecentWorkspaces, redlineStats, resolveActiveWorkspace, textToArtifact, titleFromQuestion, toChatCitations, toNotificationPreferences, toProfileView, toRedlineMarkdown, toShellWorkspace, useActivity, useAddContacts, useAgentConfig, useAgentModels, useAgentWorkspaces, useAgents, useAiTask, useArbi, useArbiChat, useArbiConnected, useArbiDocumentSync, useArbiShellWorkspaces, useArbiUiStore, useArbiWebSocket, useArbiWsContext, useArbiWsMessage, useArbiWsStatus, useArbiWsStore, useArbiWsTask, useArbiWsTasks, useAssistantQuery, useAudioRecorder, useAvatarCrop, useCameraStream, useCommandPalette, useConfigs, useConfirmEmailChange, useContacts, useConversationThreads, useConversations, useCreateAgent,
|
|
4814
|
+
export { type ActivityContent, type ActivityDescription, ActivityFeed, type ActivityFeedProps, type AgentAccessMode, type AgentConfigSections, type AggregatedDailyUsage, type AggregatedModelGroupUsage, AiActionCard, AiAnswer, type AiRunOptions, type AiTaskStatus, AppleIcon, ArbiBotHeadIcon, ArbiBotIcon, type ArbiChat, type ArbiChatCitation, type ArbiChatDocument, type ArbiChatMessage, type ArbiChatMessageStatus, type ArbiChatPassage, type ArbiChatRole, type ArbiChatThread, ArbiIcon, ArbiProvider, type ArbiProviderProps, type ArbiUiState, ArbiWebSocketProvider, type ArbiWebSocketProviderProps, type ArbiWsState, type ArbiWsStatus, ArtifactCanvas, type AspectOption, AudIcon, type AudioRecorderState, type AvatarCrop, type AvatarFileProblem, ChatBubble, type ChatBubbleProps, type Chunk, type ChunkActivation, CitationRenderer, type CitationRendererProps, type CitationState, ClaudeIcon, CommandPalette, type CommandPaletteClassNames, type CommandPaletteProps, CommandPaletteProvider, type CommandPaletteProviderProps, type CommandPaletteValue, ConversationList, type ConversationListProps, type CropArea, type CropOutput, type CropResult, DEFAULT_ASPECT_OPTIONS, DEFAULT_PASSWORD_CHANGE_FORM_MESSAGES, DEFAULT_START_BY_EMAIL_LABELS, DEFAULT_USD_PER_CREDIT, DateSeparator, type DateSeparatorProps, type DeleteAccountBlocker, type DeleteAccountFlow, DirectMessages, type DirectMessagesProps, DmAvatar, type DmAvatarProps, type DmClassNames, DmComposer, type DmComposerProps, type DmConversation, type DmMessage, type DmNotification, type DmUser, DocIcon, DocQaPanel, DocSearch, DocumentCardMenu, type DocumentCardMenuProps, DocumentGallery, type DocumentGalleryProps, DocumentReview, type DocumentReviewProps, DocumentTable, type DocumentTableProps, DraftTitleControls, type DraftTitleControlsProps, type EmailChange, type EmailPreferences, EmlIcon, EntityIconComponent, FILE_TYPE_COLORS, FileIcon, FireworksIcon, type FormatCreditsOptions, GeminiIcon, GitHubIcon, GoogleIcon, type GrantAgentAccessVars, HtmlIcon, ImageCropModal, type ImageCropModalProps, ImageCropper, type ImageCropperProps, ImgIcon, InlineMicButton, type InlineMicButtonProps, LinkedInIcon, MAX_AVATAR_FILE_BYTES, type MessageArtifact, MessageArtifactCard, MessageBubble, type MessageBubbleProps, MessageThread, type MessageThreadProps, MicRecordingOverlay, type MicRecordingOverlayProps, MicWaveformIndicator, type MicWaveformIndicatorProps, type NameEditor, type NotificationPreferencesModel, type NotificationTypeMeta, OpenAIIcon, type PaletteNavItem, type ParsedChunk, type ParsedChunkMetadata, type ParsedDocument, type ParsedDocumentMetadata, type PasswordChangeForm, type PasswordChangeFormMessages, type PasswordChangeResult, type PasswordChangeVars, PdfIcon, PhotoCapture, type PhotoCaptureProps, type ProfileView, type ProjectsUsageAggregate, ProviderIcon, RUN_WINDOW_MS, type RenderMarkdown, type SaveAgentConfigVars, type SearchChunk, SemanticSearch, type SemanticSearchProps, type ShellRecentWorkspaceItem, type ShellWorkspaceItem, type ShellWorkspaceKind, type ShellWorkspaceMember, type ShellWorkspaceSeed, type ShellWorkspaceSource, StartByEmail, type StartByEmailLabels, type StartByEmailProps, type ThreadAccessors, type ThreadItem, type ToolResponses, TxtIcon, TypingIndicator, type UpdateProfileVars, type UsageTotals, type UseArbiChatOptions, type UseArbiShellWorkspacesOptions, type UseAudioRecorderResult, type UseAvatarCropOptions, type UseCameraStreamResult, type UseDeleteAccountFlowOptions, type UseDirectMessagesResult, type UseEmailChangeOptions, type UseNameEditorOptions, type UsePasswordChangeFormOptions, type UseShellWorkspacesOptions, type UseShellWorkspacesResult, type UseVideoRecorderResult, VidIcon, VideoCapture, type VideoCaptureProps, type VideoRecorderState, VoiceNoteRecorder, type VoiceNoteRecorderProps, XlsIcon, annotateThread, arbiQueryKeys, captureFrameAsBlob, creditsToUsd, cropImage, dayKey, describeActivity, formatCredits, formatElapsed, formatRelativeTime, getNotificationTypeMeta, getWorkspaceActionText, getWorkspaceKind, getWorkspaceSentPhrase, hasVideoTrack, isUsageMetered, isWorkspaceNotificationType, parseActivityContent, parseDeleteAccountBlockers, pickRecentWorkspaces, redlineStats, resolveActiveWorkspace, textToArtifact, titleFromQuestion, toChatCitations, toNotificationPreferences, toProfileView, toRedlineMarkdown, toShellWorkspace, useActivity, useAddContacts, useAgentConfig, useAgentModels, useAgentWorkspaces, useAgents, useAiTask, useArbi, useArbiChat, useArbiConnected, useArbiDocumentSync, useArbiShellWorkspaces, useArbiUiStore, useArbiWebSocket, useArbiWsContext, useArbiWsMessage, useArbiWsStatus, useArbiWsStore, useArbiWsTask, useArbiWsTasks, useAssistantQuery, useAudioRecorder, useAvatarCrop, useCameraStream, useCommandPalette, useConfigs, useConfirmEmailChange, useContacts, useConversationActivity, useConversationPendingAuth, useConversationThreads, useConversations, useCreateAgent, useCreateWork, useCreateWorkflow, useCurrentSessionId, useDeleteAccount, useDeleteAccountFlow, useDeleteAgents, useDeleteWorkflow, useDirectMessages, useDocuments, useEmailChange, useFacts, useGrantAgentAccess, useHealth, useLogoutAllSessions, useNameEditor, useNotificationPreferences, useParsedDocument, usePasswordChange, usePasswordChangeForm, usePendingContacts, usePlanWork, useProfile, useProjectInvoices, useProjectUsage, useProjects, useProjectsUsage, useRemoveContacts, useRequestConversationApproval, useRequestEmailChange, useReviewConversation, useRevokeAgentAccess, useRunConversation, useRunWorkflow, useSaveAgentConfig, useSemanticSearch, useSessions, useShellWorkspaces, useSkills, useTags, useTerminateSession, useThumbnails, useUpdateConversation, useUpdateProfile, useUpdateWorkflow, useUserSettings, useUserUsageToday, useVideoRecorder, useWorkflows, useWorkspaceDocs, useWorkspaces, userDisplayName, userInitials };
|