@wacht/jsx 1.0.0-beta.6 → 1.0.0-beta.7
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/index.cjs.js +1891 -1881
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +243 -67
- package/dist/index.es.js +12081 -10756
- package/dist/index.es.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { Actor } from '@wacht/types';
|
|
2
|
+
import { ActorProject } from '@wacht/types';
|
|
3
|
+
import { Agent } from '@wacht/types';
|
|
4
|
+
import { AgentThread } from '@wacht/types';
|
|
5
5
|
import { ApiAuditAnalyticsResponse } from '@wacht/types';
|
|
6
6
|
import { ApiAuditLogsResponse } from '@wacht/types';
|
|
7
7
|
import { ApiAuditTimeseriesResponse } from '@wacht/types';
|
|
@@ -9,17 +9,19 @@ import { ApiAuthAppInfo } from '@wacht/types';
|
|
|
9
9
|
import { ApiKey } from '@wacht/types';
|
|
10
10
|
import { ApiKeyWithSecret } from '@wacht/types';
|
|
11
11
|
import { ApiResult } from '@wacht/types';
|
|
12
|
+
import { AppendProjectTaskBoardItemJournalRequest } from '@wacht/types';
|
|
12
13
|
import { ButtonHTMLAttributes } from 'react';
|
|
13
14
|
import { CancelReplayTaskOptions } from '@wacht/types';
|
|
14
15
|
import { CancelReplayTaskResponse } from '@wacht/types';
|
|
15
16
|
import { Client } from '@wacht/types';
|
|
16
17
|
import { ComponentPropsWithoutRef } from 'react';
|
|
17
|
-
import { ConsentURLResponse } from '@wacht/types';
|
|
18
18
|
import { ConversationMessage } from '@wacht/types';
|
|
19
|
+
import { CreateActorProjectRequest } from '@wacht/types';
|
|
20
|
+
import { CreateAgentThreadRequest } from '@wacht/types';
|
|
19
21
|
import { CreateApiAuthKeyInput } from '@wacht/types';
|
|
20
|
-
import { CreateContextRequest } from '@wacht/types';
|
|
21
22
|
import { CreateEndpointOptions } from '@wacht/types';
|
|
22
23
|
import { CreateEnterpriseConnectionPayload } from '@wacht/types';
|
|
24
|
+
import { CreateProjectTaskBoardItemRequest } from '@wacht/types';
|
|
23
25
|
import { CSSProperties } from 'react';
|
|
24
26
|
import { CurrentUser } from '@wacht/types';
|
|
25
27
|
import { default as default_2 } from 'react';
|
|
@@ -41,8 +43,6 @@ import { IStyledComponentBase } from 'styled-components/dist/types';
|
|
|
41
43
|
import { JSX } from 'react/jsx-runtime';
|
|
42
44
|
import { KeyedMutator } from 'swr';
|
|
43
45
|
import { LabelHTMLAttributes } from 'react';
|
|
44
|
-
import { ListContextsOptions } from '@wacht/types';
|
|
45
|
-
import { McpConnectResponse } from '@wacht/types';
|
|
46
46
|
import { NewDomain } from '@wacht/types';
|
|
47
47
|
import { NewOrgnization } from '@wacht/types';
|
|
48
48
|
import { Notification as Notification_2 } from '@wacht/types';
|
|
@@ -57,6 +57,11 @@ import { OrganizationRole } from '@wacht/types';
|
|
|
57
57
|
import { OrganizationUpdate } from '@wacht/types';
|
|
58
58
|
import { ProfileCompletionData } from '@wacht/types';
|
|
59
59
|
import { ProfileCompletionProps } from '@wacht/types';
|
|
60
|
+
import { ProjectTaskBoardItem } from '@wacht/types';
|
|
61
|
+
import { ProjectTaskBoardItemAssignment } from '@wacht/types';
|
|
62
|
+
import { ProjectTaskBoardItemEvent } from '@wacht/types';
|
|
63
|
+
import { ProjectTaskWorkspaceFileContent } from '@wacht/types';
|
|
64
|
+
import { ProjectTaskWorkspaceListing } from '@wacht/types';
|
|
60
65
|
import { ReactNode } from 'react';
|
|
61
66
|
import { RefAttributes } from 'react';
|
|
62
67
|
import { ReplayTaskListOptions } from '@wacht/types';
|
|
@@ -80,9 +85,16 @@ import { SocialConnection } from '@wacht/types';
|
|
|
80
85
|
import { Substitute } from 'styled-components/dist/types';
|
|
81
86
|
import { TestEndpointOptions } from '@wacht/types';
|
|
82
87
|
import { TestEndpointResponse } from '@wacht/types';
|
|
88
|
+
import { ThreadEvent } from '@wacht/types';
|
|
89
|
+
import { ThreadPendingApprovalRequestState } from '@wacht/types';
|
|
90
|
+
import { ThreadTaskGraphBundle } from '@wacht/types';
|
|
83
91
|
import { TimeseriesPoint } from '@wacht/types';
|
|
92
|
+
import { ToolApprovalDecision } from '@wacht/types';
|
|
93
|
+
import { UpdateActorProjectRequest } from '@wacht/types';
|
|
94
|
+
import { UpdateAgentThreadRequest } from '@wacht/types';
|
|
84
95
|
import { UpdateEndpointOptions } from '@wacht/types';
|
|
85
96
|
import { UpdateEnterpriseConnectionPayload } from '@wacht/types';
|
|
97
|
+
import { UpdateProjectTaskBoardItemRequest } from '@wacht/types';
|
|
86
98
|
import { UpdateWebhookSettingsOptions } from '@wacht/types';
|
|
87
99
|
import { UseApiAuthAuditAnalyticsOptions } from '@wacht/types';
|
|
88
100
|
import { UseApiAuthAuditLogsOptions } from '@wacht/types';
|
|
@@ -90,7 +102,6 @@ import { UseApiAuthAuditTimeseriesOptions } from '@wacht/types';
|
|
|
90
102
|
import { UseApiAuthKeysFilters } from '@wacht/types';
|
|
91
103
|
import { UserAuthenticator } from '@wacht/types';
|
|
92
104
|
import { UserEmailAddress } from '@wacht/types';
|
|
93
|
-
import { UserInputRequestContent } from '@wacht/types';
|
|
94
105
|
import { UserPasskey } from '@wacht/types';
|
|
95
106
|
import { UserPhoneNumber } from '@wacht/types';
|
|
96
107
|
import { UseWebhookAnalyticsOptions } from '@wacht/types';
|
|
@@ -135,7 +146,35 @@ declare interface AcceptInviteProps {
|
|
|
135
146
|
onError?: (error: string) => void;
|
|
136
147
|
}
|
|
137
148
|
|
|
138
|
-
|
|
149
|
+
declare interface ActorMcpServerConnectResponse {
|
|
150
|
+
auth_url: string;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export declare interface ActorMcpServerSummary {
|
|
154
|
+
id: string;
|
|
155
|
+
name: string;
|
|
156
|
+
endpoint: string;
|
|
157
|
+
auth_type: string;
|
|
158
|
+
requires_user_connection: boolean;
|
|
159
|
+
connection_status: "ready" | "connected" | "not_connected" | "expired";
|
|
160
|
+
connected_at?: string;
|
|
161
|
+
expires_at?: string;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
declare type AgentSearchOptions = {
|
|
165
|
+
enabled?: boolean;
|
|
166
|
+
query?: string;
|
|
167
|
+
limit?: number;
|
|
168
|
+
};
|
|
169
|
+
|
|
170
|
+
declare type AgentThreadHookOptions = {
|
|
171
|
+
enabled?: boolean;
|
|
172
|
+
limit?: number;
|
|
173
|
+
};
|
|
174
|
+
|
|
175
|
+
export declare function AuthFormImage({ placement, }: {
|
|
176
|
+
placement?: "center" | "left" | "right";
|
|
177
|
+
}): JSX.Element | null;
|
|
139
178
|
|
|
140
179
|
/**
|
|
141
180
|
* Check if user can manage the organization (admin or manage permissions)
|
|
@@ -331,7 +370,7 @@ declare const FRONTEND_STATUS: {
|
|
|
331
370
|
readonly FAILED: "failed";
|
|
332
371
|
};
|
|
333
372
|
|
|
334
|
-
declare type FrontendStatus = typeof FRONTEND_STATUS[keyof typeof FRONTEND_STATUS];
|
|
373
|
+
declare type FrontendStatus = (typeof FRONTEND_STATUS)[keyof typeof FRONTEND_STATUS];
|
|
335
374
|
|
|
336
375
|
declare type GenericSignInParams = {
|
|
337
376
|
email?: string;
|
|
@@ -631,6 +670,17 @@ declare interface ProfileUpdateData {
|
|
|
631
670
|
remove_profile_picture?: boolean;
|
|
632
671
|
}
|
|
633
672
|
|
|
673
|
+
declare type ProjectTaskDetailOptions = {
|
|
674
|
+
includeArchived?: boolean;
|
|
675
|
+
};
|
|
676
|
+
|
|
677
|
+
declare type ProjectTaskListOptions = {
|
|
678
|
+
statuses?: string[];
|
|
679
|
+
includeArchived?: boolean;
|
|
680
|
+
archivedOnly?: boolean;
|
|
681
|
+
limit?: number;
|
|
682
|
+
};
|
|
683
|
+
|
|
634
684
|
export declare function redirectToProfileCompletion(returnUrl?: string): void;
|
|
635
685
|
|
|
636
686
|
export declare const RequireActiveTenancy: ({ children, }: RequireActiveTenancyProps) => JSX.Element | null;
|
|
@@ -880,8 +930,8 @@ export declare const useActiveOrganization: () => {
|
|
|
880
930
|
|
|
881
931
|
export declare function useActiveTenancy(): {
|
|
882
932
|
loading: boolean;
|
|
883
|
-
orgMembership: OrganizationMembershipWithOrganization | null
|
|
884
|
-
workspaceMembership: WorkspaceMembership | null
|
|
933
|
+
orgMembership: OrganizationMembershipWithOrganization | null;
|
|
934
|
+
workspaceMembership: WorkspaceMembership | null;
|
|
885
935
|
};
|
|
886
936
|
|
|
887
937
|
export declare const useActiveWorkspace: () => {
|
|
@@ -920,22 +970,113 @@ export declare const useActiveWorkspace: () => {
|
|
|
920
970
|
resendInvitation: (invitationId: string) => Promise<unknown>;
|
|
921
971
|
};
|
|
922
972
|
|
|
923
|
-
export declare function
|
|
973
|
+
export declare function useActorMcpServers(enabled?: boolean): {
|
|
974
|
+
servers: ActorMcpServerSummary[];
|
|
975
|
+
loading: boolean;
|
|
976
|
+
error: any;
|
|
977
|
+
connect: (mcpServerId: string) => Promise<ActorMcpServerConnectResponse>;
|
|
978
|
+
disconnect: (mcpServerId: string) => Promise<void>;
|
|
979
|
+
refetch: () => Promise<void>;
|
|
980
|
+
};
|
|
981
|
+
|
|
982
|
+
export declare function useActorProjects(options?: {
|
|
983
|
+
includeArchived?: boolean;
|
|
984
|
+
enabled?: boolean;
|
|
985
|
+
}): {
|
|
986
|
+
projects: ActorProject[];
|
|
987
|
+
loading: boolean;
|
|
988
|
+
error: any;
|
|
989
|
+
createProject: (request: CreateActorProjectRequest) => Promise<ActorProject>;
|
|
990
|
+
updateProject: (projectId: string, request: UpdateActorProjectRequest) => Promise<ActorProject>;
|
|
991
|
+
archiveProject: (projectId: string) => Promise<ActorProject>;
|
|
992
|
+
unarchiveProject: (projectId: string) => Promise<ActorProject>;
|
|
993
|
+
refetch: () => Promise<void>;
|
|
994
|
+
};
|
|
995
|
+
|
|
996
|
+
export declare function useActorProjectSearch(options?: AgentSearchOptions): {
|
|
997
|
+
projects: ActorProject[];
|
|
998
|
+
loading: boolean;
|
|
999
|
+
error: any;
|
|
1000
|
+
hasMore: boolean;
|
|
1001
|
+
nextCursor: string | undefined;
|
|
1002
|
+
refetch: () => Promise<void>;
|
|
1003
|
+
};
|
|
1004
|
+
|
|
1005
|
+
export declare function useActors(options?: {
|
|
1006
|
+
includeArchived?: boolean;
|
|
1007
|
+
enabled?: boolean;
|
|
1008
|
+
}): {
|
|
1009
|
+
actors: Actor[];
|
|
1010
|
+
loading: boolean;
|
|
1011
|
+
error: any;
|
|
1012
|
+
refetch: () => Promise<void>;
|
|
1013
|
+
};
|
|
1014
|
+
|
|
1015
|
+
export declare function useActorThreadSearch(options?: AgentSearchOptions): {
|
|
1016
|
+
threads: AgentThread[];
|
|
1017
|
+
loading: boolean;
|
|
1018
|
+
error: any;
|
|
1019
|
+
hasMore: boolean;
|
|
1020
|
+
nextCursor: string | undefined;
|
|
1021
|
+
refetch: () => Promise<void>;
|
|
1022
|
+
};
|
|
1023
|
+
|
|
1024
|
+
export declare function useAgentSession(ticket?: string | null): UseAgentSessionResult;
|
|
1025
|
+
|
|
1026
|
+
declare interface UseAgentSessionResult {
|
|
1027
|
+
hasSession: boolean;
|
|
1028
|
+
sessionLoading: boolean;
|
|
1029
|
+
sessionError: Error | null;
|
|
1030
|
+
sessionId: string | null;
|
|
1031
|
+
actor: Actor | null;
|
|
1032
|
+
agents: Agent[];
|
|
1033
|
+
ticketExchanged: boolean;
|
|
1034
|
+
ticketLoading: boolean;
|
|
1035
|
+
refetch: () => Promise<void>;
|
|
1036
|
+
}
|
|
1037
|
+
|
|
1038
|
+
export declare function useAgentThread(threadId?: string, enabled?: boolean): {
|
|
1039
|
+
thread: AgentThread | null;
|
|
1040
|
+
loading: boolean;
|
|
1041
|
+
error: any;
|
|
1042
|
+
updateThread: (request: UpdateAgentThreadRequest) => Promise<AgentThread>;
|
|
1043
|
+
archiveThread: () => Promise<AgentThread>;
|
|
1044
|
+
unarchiveThread: () => Promise<AgentThread>;
|
|
1045
|
+
refetch: () => Promise<void>;
|
|
1046
|
+
};
|
|
1047
|
+
|
|
1048
|
+
export declare function useAgentThreadAssignments(threadId?: string, options?: AgentThreadHookOptions): {
|
|
1049
|
+
assignments: ProjectTaskBoardItemAssignment[];
|
|
1050
|
+
loading: boolean;
|
|
1051
|
+
error: any;
|
|
1052
|
+
hasMore: boolean;
|
|
1053
|
+
loadingMore: boolean;
|
|
1054
|
+
loadMore: () => Promise<void>;
|
|
1055
|
+
refetch: () => Promise<void>;
|
|
1056
|
+
};
|
|
1057
|
+
|
|
1058
|
+
export declare function useAgentThreadConversation({ threadId, platformAdapter, }: UseAgentThreadConversationProps): {
|
|
1059
|
+
threadState: AgentThread | null;
|
|
924
1060
|
messages: ConversationMessage[];
|
|
925
|
-
quickQuestions: string[];
|
|
926
1061
|
pendingMessage: string | null;
|
|
927
1062
|
pendingFiles: File[] | null;
|
|
928
1063
|
connectionState: {
|
|
929
1064
|
status: (typeof CONNECTION_STATES)[keyof typeof CONNECTION_STATES];
|
|
930
1065
|
};
|
|
931
1066
|
isConnected: boolean;
|
|
932
|
-
|
|
1067
|
+
hasActiveRun: boolean;
|
|
1068
|
+
isRunning: boolean;
|
|
933
1069
|
executionStatus: FrontendStatus;
|
|
934
1070
|
isWaitingForInput: boolean;
|
|
1071
|
+
pendingApprovalRequest: ThreadPendingApprovalRequestState | null;
|
|
1072
|
+
activeApprovalRequestId: string | null;
|
|
935
1073
|
hasMoreMessages: boolean;
|
|
936
1074
|
isLoadingMore: boolean;
|
|
1075
|
+
messagesLoading: boolean;
|
|
1076
|
+
messagesError: Error | null;
|
|
1077
|
+
refreshMessages: () => Promise<void>;
|
|
937
1078
|
sendMessage: (message: string, files?: File[]) => Promise<void>;
|
|
938
|
-
|
|
1079
|
+
submitApprovalResponse: (requestMessageId: string, approvals: ToolApprovalDecision[]) => Promise<boolean>;
|
|
939
1080
|
clearMessages: () => void;
|
|
940
1081
|
loadMoreMessages: () => Promise<void>;
|
|
941
1082
|
cancelExecution: () => Promise<void>;
|
|
@@ -943,73 +1084,45 @@ export declare function useAgentContext({ contextId, agentName, platformAdapter,
|
|
|
943
1084
|
downloadMessageFile: (file: FileData | null | undefined) => void;
|
|
944
1085
|
};
|
|
945
1086
|
|
|
946
|
-
declare interface
|
|
947
|
-
|
|
948
|
-
agentName: string;
|
|
1087
|
+
declare interface UseAgentThreadConversationProps {
|
|
1088
|
+
threadId: string;
|
|
949
1089
|
platformAdapter?: {
|
|
950
1090
|
onPlatformEvent?: (eventName: string, eventData: unknown) => void;
|
|
951
|
-
onPlatformFunction?: (functionName: string, parameters: unknown, executionId: string) => Promise<unknown>;
|
|
952
1091
|
};
|
|
953
|
-
onUserInputRequest?: (request: UserInputRequestContent) => Promise<string>;
|
|
954
|
-
}
|
|
955
|
-
|
|
956
|
-
export declare function useAgentContexts(options?: UseAgentContextsOptions): UseAgentContextsReturnType;
|
|
957
|
-
|
|
958
|
-
declare interface UseAgentContextsOptions extends ListContextsOptions {
|
|
959
|
-
enabled?: boolean;
|
|
960
1092
|
}
|
|
961
1093
|
|
|
962
|
-
declare
|
|
963
|
-
|
|
1094
|
+
export declare function useAgentThreadEvents(threadId?: string, options?: AgentThreadHookOptions): {
|
|
1095
|
+
events: ThreadEvent[];
|
|
964
1096
|
loading: boolean;
|
|
965
|
-
error:
|
|
1097
|
+
error: any;
|
|
966
1098
|
hasMore: boolean;
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
updateContext: (id: string, updates: {
|
|
970
|
-
title?: string;
|
|
971
|
-
}) => Promise<void>;
|
|
1099
|
+
loadingMore: boolean;
|
|
1100
|
+
loadMore: () => Promise<void>;
|
|
972
1101
|
refetch: () => Promise<void>;
|
|
973
1102
|
};
|
|
974
1103
|
|
|
975
|
-
export declare function
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
1104
|
+
export declare function useAgentThreadFilesystem(threadId?: string, enabled?: boolean): {
|
|
1105
|
+
filesystem: ProjectTaskWorkspaceListing;
|
|
1106
|
+
filesystemLoading: boolean;
|
|
1107
|
+
filesystemError: any;
|
|
1108
|
+
getFile: (path: string) => Promise<ProjectTaskWorkspaceFileContent & {
|
|
1109
|
+
blob: Blob;
|
|
1110
|
+
}>;
|
|
1111
|
+
listDirectory: (path?: string) => Promise<ProjectTaskWorkspaceListing>;
|
|
983
1112
|
refetch: () => Promise<void>;
|
|
984
1113
|
};
|
|
985
1114
|
|
|
986
|
-
export declare function
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
1115
|
+
export declare function useAgentThreadTaskGraphs(threadId?: string, enabled?: boolean): {
|
|
1116
|
+
graphs: ThreadTaskGraphBundle[];
|
|
1117
|
+
latestGraph: ThreadTaskGraphBundle;
|
|
1118
|
+
has_more: boolean;
|
|
1119
|
+
loadingMore: boolean;
|
|
990
1120
|
loading: boolean;
|
|
991
|
-
error:
|
|
992
|
-
|
|
993
|
-
disconnect: (mcpServerId: string) => Promise<void>;
|
|
1121
|
+
error: any;
|
|
1122
|
+
loadMore: () => Promise<void>;
|
|
994
1123
|
refetch: () => Promise<void>;
|
|
995
1124
|
};
|
|
996
1125
|
|
|
997
|
-
export declare function useAgentSession(ticket?: string | null): UseAgentSessionResult;
|
|
998
|
-
|
|
999
|
-
declare interface UseAgentSessionResult {
|
|
1000
|
-
hasSession: boolean;
|
|
1001
|
-
sessionLoading: boolean;
|
|
1002
|
-
sessionError: Error | null;
|
|
1003
|
-
sessionId: string | null;
|
|
1004
|
-
contextGroup: string | null;
|
|
1005
|
-
agents: AgentWithIntegrations[];
|
|
1006
|
-
activeAgent: AgentWithIntegrations | null;
|
|
1007
|
-
setActiveAgent: (agent: AgentWithIntegrations) => void;
|
|
1008
|
-
ticketExchanged: boolean;
|
|
1009
|
-
ticketLoading: boolean;
|
|
1010
|
-
refetch: () => Promise<void>;
|
|
1011
|
-
}
|
|
1012
|
-
|
|
1013
1126
|
export declare function useApiAuthAppSession(ticket?: string | null): UseApiAuthAppSessionResult;
|
|
1014
1127
|
|
|
1015
1128
|
declare interface UseApiAuthAppSessionResult {
|
|
@@ -1236,6 +1349,69 @@ export declare const useOrganizationMemberships: () => {
|
|
|
1236
1349
|
refetch: () => Promise<void>;
|
|
1237
1350
|
};
|
|
1238
1351
|
|
|
1352
|
+
export declare function useProjectTaskBoardItem(itemId?: string, enabled?: boolean, options?: ProjectTaskDetailOptions): {
|
|
1353
|
+
item: ProjectTaskBoardItem | null;
|
|
1354
|
+
events: ProjectTaskBoardItemEvent[];
|
|
1355
|
+
assignments: ProjectTaskBoardItemAssignment[];
|
|
1356
|
+
taskWorkspace: ProjectTaskWorkspaceListing;
|
|
1357
|
+
taskWorkspaceLoading: boolean;
|
|
1358
|
+
taskWorkspaceError: any;
|
|
1359
|
+
loading: boolean;
|
|
1360
|
+
error: any;
|
|
1361
|
+
updateItem: (request: UpdateProjectTaskBoardItemRequest, files?: File[]) => Promise<ProjectTaskBoardItem>;
|
|
1362
|
+
archiveItem: () => Promise<ProjectTaskBoardItem>;
|
|
1363
|
+
unarchiveItem: () => Promise<ProjectTaskBoardItem>;
|
|
1364
|
+
getTaskWorkspaceFile: (path: string) => Promise<ProjectTaskWorkspaceFileContent>;
|
|
1365
|
+
listTaskWorkspaceDirectory: (path?: string) => Promise<ProjectTaskWorkspaceListing>;
|
|
1366
|
+
appendJournal: (request: AppendProjectTaskBoardItemJournalRequest, files?: File[]) => Promise<ProjectTaskBoardItemEvent>;
|
|
1367
|
+
refetch: () => Promise<void>;
|
|
1368
|
+
refetchTaskWorkspace: () => Promise<void>;
|
|
1369
|
+
};
|
|
1370
|
+
|
|
1371
|
+
export declare function useProjectTasks(projectId?: string, enabled?: boolean, options?: ProjectTaskListOptions): {
|
|
1372
|
+
tasks: ProjectTaskBoardItem[];
|
|
1373
|
+
loading: boolean;
|
|
1374
|
+
error: any;
|
|
1375
|
+
hasMore: boolean;
|
|
1376
|
+
loadingMore: boolean;
|
|
1377
|
+
loadMore: () => Promise<void>;
|
|
1378
|
+
createTask: (request: CreateProjectTaskBoardItemRequest, files?: File[]) => Promise<ProjectTaskBoardItem>;
|
|
1379
|
+
archiveTask: (itemId: string) => Promise<ProjectTaskBoardItem>;
|
|
1380
|
+
unarchiveTask: (itemId: string) => Promise<ProjectTaskBoardItem>;
|
|
1381
|
+
refetch: () => Promise<void>;
|
|
1382
|
+
};
|
|
1383
|
+
|
|
1384
|
+
export declare function useProjectThreadFeed(projectId?: string, options?: {
|
|
1385
|
+
includeArchived?: boolean;
|
|
1386
|
+
archivedOnly?: boolean;
|
|
1387
|
+
enabled?: boolean;
|
|
1388
|
+
query?: string;
|
|
1389
|
+
limit?: number;
|
|
1390
|
+
}): {
|
|
1391
|
+
threads: AgentThread[];
|
|
1392
|
+
loading: boolean;
|
|
1393
|
+
error: any;
|
|
1394
|
+
hasMore: boolean;
|
|
1395
|
+
loadingMore: boolean;
|
|
1396
|
+
loadMore: () => Promise<void>;
|
|
1397
|
+
refetch: () => Promise<void>;
|
|
1398
|
+
};
|
|
1399
|
+
|
|
1400
|
+
export declare function useProjectThreads(projectId?: string, options?: {
|
|
1401
|
+
includeArchived?: boolean;
|
|
1402
|
+
enabled?: boolean;
|
|
1403
|
+
}): {
|
|
1404
|
+
threads: AgentThread[];
|
|
1405
|
+
loading: boolean;
|
|
1406
|
+
error: any;
|
|
1407
|
+
createThread: (request: CreateAgentThreadRequest) => Promise<AgentThread>;
|
|
1408
|
+
createThreadForProject: (targetProjectId: string, request: CreateAgentThreadRequest) => Promise<AgentThread>;
|
|
1409
|
+
updateThread: (threadId: string, request: UpdateAgentThreadRequest) => Promise<AgentThread>;
|
|
1410
|
+
archiveThread: (threadId: string) => Promise<AgentThread>;
|
|
1411
|
+
unarchiveThread: (threadId: string) => Promise<AgentThread>;
|
|
1412
|
+
refetch: () => Promise<void>;
|
|
1413
|
+
};
|
|
1414
|
+
|
|
1239
1415
|
export declare const UserButton: default_2.FC<UserButtonProps>;
|
|
1240
1416
|
|
|
1241
1417
|
declare interface UserButtonProps {
|