@wacht/jsx 1.0.0-beta.0 → 1.0.0-beta.10
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 +37 -18
- package/dist/index.cjs.js +4033 -3796
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +254 -78
- package/dist/index.es.js +17692 -15066
- 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,16 +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
|
-
import {
|
|
17
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
17
18
|
import { ConversationMessage } from '@wacht/types';
|
|
19
|
+
import { CreateActorProjectRequest } from '@wacht/types';
|
|
20
|
+
import { CreateAgentThreadRequest } from '@wacht/types';
|
|
18
21
|
import { CreateApiAuthKeyInput } from '@wacht/types';
|
|
19
|
-
import { CreateContextRequest } from '@wacht/types';
|
|
20
22
|
import { CreateEndpointOptions } from '@wacht/types';
|
|
21
23
|
import { CreateEnterpriseConnectionPayload } from '@wacht/types';
|
|
24
|
+
import { CreateProjectTaskBoardItemRequest } from '@wacht/types';
|
|
22
25
|
import { CSSProperties } from 'react';
|
|
23
26
|
import { CurrentUser } from '@wacht/types';
|
|
24
27
|
import { default as default_2 } from 'react';
|
|
@@ -31,17 +34,15 @@ import { EnterpriseConnection } from '@wacht/types';
|
|
|
31
34
|
import { ErrorInterface } from '@wacht/types';
|
|
32
35
|
import { FastOmit } from 'styled-components';
|
|
33
36
|
import { FC } from 'react';
|
|
37
|
+
import { FileData } from '@wacht/types';
|
|
34
38
|
import { FormHTMLAttributes } from 'react';
|
|
35
39
|
import { ForwardRefExoticComponent } from 'react';
|
|
36
40
|
import { HTMLAttributes } from 'react';
|
|
37
|
-
import { ImageData as ImageData_2 } from '@wacht/types';
|
|
38
41
|
import { InputHTMLAttributes } from 'react';
|
|
39
42
|
import { IStyledComponentBase } from 'styled-components/dist/types';
|
|
40
43
|
import { JSX } from 'react/jsx-runtime';
|
|
41
44
|
import { KeyedMutator } from 'swr';
|
|
42
45
|
import { LabelHTMLAttributes } from 'react';
|
|
43
|
-
import { ListContextsOptions } from '@wacht/types';
|
|
44
|
-
import { McpConnectResponse } from '@wacht/types';
|
|
45
46
|
import { NewDomain } from '@wacht/types';
|
|
46
47
|
import { NewOrgnization } from '@wacht/types';
|
|
47
48
|
import { Notification as Notification_2 } from '@wacht/types';
|
|
@@ -56,6 +57,11 @@ import { OrganizationRole } from '@wacht/types';
|
|
|
56
57
|
import { OrganizationUpdate } from '@wacht/types';
|
|
57
58
|
import { ProfileCompletionData } from '@wacht/types';
|
|
58
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';
|
|
59
65
|
import { ReactNode } from 'react';
|
|
60
66
|
import { RefAttributes } from 'react';
|
|
61
67
|
import { ReplayTaskListOptions } from '@wacht/types';
|
|
@@ -79,9 +85,16 @@ import { SocialConnection } from '@wacht/types';
|
|
|
79
85
|
import { Substitute } from 'styled-components/dist/types';
|
|
80
86
|
import { TestEndpointOptions } from '@wacht/types';
|
|
81
87
|
import { TestEndpointResponse } from '@wacht/types';
|
|
88
|
+
import { ThreadEvent } from '@wacht/types';
|
|
89
|
+
import { ThreadPendingApprovalRequestState } from '@wacht/types';
|
|
90
|
+
import { ThreadTaskGraphBundle } from '@wacht/types';
|
|
82
91
|
import { TimeseriesPoint } from '@wacht/types';
|
|
92
|
+
import { ToolApprovalDecision } from '@wacht/types';
|
|
93
|
+
import { UpdateActorProjectRequest } from '@wacht/types';
|
|
94
|
+
import { UpdateAgentThreadRequest } from '@wacht/types';
|
|
83
95
|
import { UpdateEndpointOptions } from '@wacht/types';
|
|
84
96
|
import { UpdateEnterpriseConnectionPayload } from '@wacht/types';
|
|
97
|
+
import { UpdateProjectTaskBoardItemRequest } from '@wacht/types';
|
|
85
98
|
import { UpdateWebhookSettingsOptions } from '@wacht/types';
|
|
86
99
|
import { UseApiAuthAuditAnalyticsOptions } from '@wacht/types';
|
|
87
100
|
import { UseApiAuthAuditLogsOptions } from '@wacht/types';
|
|
@@ -89,7 +102,6 @@ import { UseApiAuthAuditTimeseriesOptions } from '@wacht/types';
|
|
|
89
102
|
import { UseApiAuthKeysFilters } from '@wacht/types';
|
|
90
103
|
import { UserAuthenticator } from '@wacht/types';
|
|
91
104
|
import { UserEmailAddress } from '@wacht/types';
|
|
92
|
-
import { UserInputRequestContent } from '@wacht/types';
|
|
93
105
|
import { UserPasskey } from '@wacht/types';
|
|
94
106
|
import { UserPhoneNumber } from '@wacht/types';
|
|
95
107
|
import { UseWebhookAnalyticsOptions } from '@wacht/types';
|
|
@@ -134,7 +146,35 @@ declare interface AcceptInviteProps {
|
|
|
134
146
|
onError?: (error: string) => void;
|
|
135
147
|
}
|
|
136
148
|
|
|
137
|
-
|
|
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;
|
|
138
178
|
|
|
139
179
|
/**
|
|
140
180
|
* Check if user can manage the organization (admin or manage permissions)
|
|
@@ -191,6 +231,10 @@ declare interface CreateWorkspaceFormProps {
|
|
|
191
231
|
onCreateOrganization?: () => void;
|
|
192
232
|
}
|
|
193
233
|
|
|
234
|
+
export declare function DefaultStylesProvider({ children, style, ...props }: DefaultStylesProviderProps): JSX.Element;
|
|
235
|
+
|
|
236
|
+
declare type DefaultStylesProviderProps = ComponentPropsWithoutRef<"div">;
|
|
237
|
+
|
|
194
238
|
export declare interface DeploymentContextType {
|
|
195
239
|
loading: boolean;
|
|
196
240
|
deployment: Deployment | null;
|
|
@@ -326,7 +370,7 @@ declare const FRONTEND_STATUS: {
|
|
|
326
370
|
readonly FAILED: "failed";
|
|
327
371
|
};
|
|
328
372
|
|
|
329
|
-
declare type FrontendStatus = typeof FRONTEND_STATUS[keyof typeof FRONTEND_STATUS];
|
|
373
|
+
declare type FrontendStatus = (typeof FRONTEND_STATUS)[keyof typeof FRONTEND_STATUS];
|
|
330
374
|
|
|
331
375
|
declare type GenericSignInParams = {
|
|
332
376
|
email?: string;
|
|
@@ -474,7 +518,7 @@ export declare function NotificationBell({ className, showBadge, scope, onAction
|
|
|
474
518
|
declare interface NotificationBellProps {
|
|
475
519
|
className?: string;
|
|
476
520
|
showBadge?: boolean;
|
|
477
|
-
scope?: "
|
|
521
|
+
scope?: NotificationListParams["scope"];
|
|
478
522
|
onAction?: (payload: any) => void;
|
|
479
523
|
}
|
|
480
524
|
|
|
@@ -502,7 +546,7 @@ export declare interface NotificationMessage {
|
|
|
502
546
|
export declare const NotificationPanel: ForwardRefExoticComponent<NotificationPanelProps & RefAttributes<HTMLDivElement>>;
|
|
503
547
|
|
|
504
548
|
declare interface NotificationPanelProps {
|
|
505
|
-
scope?: "
|
|
549
|
+
scope?: NotificationListParams["scope"];
|
|
506
550
|
onAction?: (payload: any) => void;
|
|
507
551
|
fullWidth?: boolean;
|
|
508
552
|
maxHeight?: string;
|
|
@@ -626,6 +670,17 @@ declare interface ProfileUpdateData {
|
|
|
626
670
|
remove_profile_picture?: boolean;
|
|
627
671
|
}
|
|
628
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
|
+
|
|
629
684
|
export declare function redirectToProfileCompletion(returnUrl?: string): void;
|
|
630
685
|
|
|
631
686
|
export declare const RequireActiveTenancy: ({ children, }: RequireActiveTenancyProps) => JSX.Element | null;
|
|
@@ -875,8 +930,8 @@ export declare const useActiveOrganization: () => {
|
|
|
875
930
|
|
|
876
931
|
export declare function useActiveTenancy(): {
|
|
877
932
|
loading: boolean;
|
|
878
|
-
orgMembership: OrganizationMembershipWithOrganization | null
|
|
879
|
-
workspaceMembership: WorkspaceMembership | null
|
|
933
|
+
orgMembership: OrganizationMembershipWithOrganization | null;
|
|
934
|
+
workspaceMembership: WorkspaceMembership | null;
|
|
880
935
|
};
|
|
881
936
|
|
|
882
937
|
export declare const useActiveWorkspace: () => {
|
|
@@ -915,101 +970,149 @@ export declare const useActiveWorkspace: () => {
|
|
|
915
970
|
resendInvitation: (invitationId: string) => Promise<unknown>;
|
|
916
971
|
};
|
|
917
972
|
|
|
918
|
-
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 useActorThreadSearch(options?: AgentSearchOptions): {
|
|
1006
|
+
threads: AgentThread[];
|
|
1007
|
+
loading: boolean;
|
|
1008
|
+
error: any;
|
|
1009
|
+
hasMore: boolean;
|
|
1010
|
+
nextCursor: string | undefined;
|
|
1011
|
+
refetch: () => Promise<void>;
|
|
1012
|
+
};
|
|
1013
|
+
|
|
1014
|
+
export declare function useAgentSession(ticket?: string | null): UseAgentSessionResult;
|
|
1015
|
+
|
|
1016
|
+
declare interface UseAgentSessionResult {
|
|
1017
|
+
hasSession: boolean;
|
|
1018
|
+
sessionLoading: boolean;
|
|
1019
|
+
sessionError: Error | null;
|
|
1020
|
+
sessionId: string | null;
|
|
1021
|
+
actor: Actor | null;
|
|
1022
|
+
agents: Agent[];
|
|
1023
|
+
ticketExchanged: boolean;
|
|
1024
|
+
ticketLoading: boolean;
|
|
1025
|
+
refetch: () => Promise<void>;
|
|
1026
|
+
}
|
|
1027
|
+
|
|
1028
|
+
export declare function useAgentThread(threadId?: string, enabled?: boolean): {
|
|
1029
|
+
thread: AgentThread | null;
|
|
1030
|
+
loading: boolean;
|
|
1031
|
+
error: any;
|
|
1032
|
+
updateThread: (request: UpdateAgentThreadRequest) => Promise<AgentThread>;
|
|
1033
|
+
archiveThread: () => Promise<AgentThread>;
|
|
1034
|
+
unarchiveThread: () => Promise<AgentThread>;
|
|
1035
|
+
refetch: () => Promise<void>;
|
|
1036
|
+
};
|
|
1037
|
+
|
|
1038
|
+
export declare function useAgentThreadAssignments(threadId?: string, options?: AgentThreadHookOptions): {
|
|
1039
|
+
assignments: ProjectTaskBoardItemAssignment[];
|
|
1040
|
+
loading: boolean;
|
|
1041
|
+
error: any;
|
|
1042
|
+
hasMore: boolean;
|
|
1043
|
+
loadingMore: boolean;
|
|
1044
|
+
loadMore: () => Promise<void>;
|
|
1045
|
+
refetch: () => Promise<void>;
|
|
1046
|
+
};
|
|
1047
|
+
|
|
1048
|
+
export declare function useAgentThreadConversation({ threadId, platformAdapter, }: UseAgentThreadConversationProps): {
|
|
1049
|
+
threadState: AgentThread | null;
|
|
919
1050
|
messages: ConversationMessage[];
|
|
920
|
-
quickQuestions: string[];
|
|
921
1051
|
pendingMessage: string | null;
|
|
922
|
-
pendingImages: ImageData_2[] | null;
|
|
923
1052
|
pendingFiles: File[] | null;
|
|
924
1053
|
connectionState: {
|
|
925
1054
|
status: (typeof CONNECTION_STATES)[keyof typeof CONNECTION_STATES];
|
|
926
1055
|
};
|
|
927
1056
|
isConnected: boolean;
|
|
928
|
-
|
|
1057
|
+
hasActiveRun: boolean;
|
|
1058
|
+
isRunning: boolean;
|
|
929
1059
|
executionStatus: FrontendStatus;
|
|
930
1060
|
isWaitingForInput: boolean;
|
|
1061
|
+
pendingApprovalRequest: ThreadPendingApprovalRequestState | null;
|
|
1062
|
+
activeApprovalRequestId: string | null;
|
|
931
1063
|
hasMoreMessages: boolean;
|
|
932
1064
|
isLoadingMore: boolean;
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
submitUserInput: (input: string) => Promise<void>;
|
|
1065
|
+
messagesLoading: boolean;
|
|
1066
|
+
messagesError: Error | null;
|
|
1067
|
+
refreshMessages: () => Promise<void>;
|
|
1068
|
+
sendMessage: (message: string, files?: File[]) => Promise<void>;
|
|
1069
|
+
submitApprovalResponse: (requestMessageId: string, approvals: ToolApprovalDecision[]) => Promise<boolean>;
|
|
939
1070
|
clearMessages: () => void;
|
|
940
1071
|
loadMoreMessages: () => Promise<void>;
|
|
941
1072
|
cancelExecution: () => Promise<void>;
|
|
942
|
-
|
|
943
|
-
|
|
1073
|
+
resolveMessageFileUrl: (file: FileData | null | undefined) => string | null;
|
|
1074
|
+
downloadMessageFile: (file: FileData | null | undefined) => void;
|
|
944
1075
|
};
|
|
945
1076
|
|
|
946
|
-
declare interface
|
|
947
|
-
|
|
948
|
-
agentName: string;
|
|
1077
|
+
declare interface UseAgentThreadConversationProps {
|
|
1078
|
+
threadId: string;
|
|
949
1079
|
platformAdapter?: {
|
|
950
1080
|
onPlatformEvent?: (eventName: string, eventData: unknown) => void;
|
|
951
|
-
onPlatformFunction?: (functionName: string, parameters: unknown, executionId: string) => Promise<unknown>;
|
|
952
1081
|
};
|
|
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
1082
|
}
|
|
961
1083
|
|
|
962
|
-
declare
|
|
963
|
-
|
|
1084
|
+
export declare function useAgentThreadEvents(threadId?: string, options?: AgentThreadHookOptions): {
|
|
1085
|
+
events: ThreadEvent[];
|
|
964
1086
|
loading: boolean;
|
|
965
|
-
error:
|
|
1087
|
+
error: any;
|
|
966
1088
|
hasMore: boolean;
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
updateContext: (id: string, updates: {
|
|
970
|
-
title?: string;
|
|
971
|
-
}) => Promise<void>;
|
|
1089
|
+
loadingMore: boolean;
|
|
1090
|
+
loadMore: () => Promise<void>;
|
|
972
1091
|
refetch: () => Promise<void>;
|
|
973
1092
|
};
|
|
974
1093
|
|
|
975
|
-
export declare function
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
1094
|
+
export declare function useAgentThreadFilesystem(threadId?: string, enabled?: boolean): {
|
|
1095
|
+
filesystem: ProjectTaskWorkspaceListing;
|
|
1096
|
+
filesystemLoading: boolean;
|
|
1097
|
+
filesystemError: any;
|
|
1098
|
+
getFile: (path: string) => Promise<ProjectTaskWorkspaceFileContent & {
|
|
1099
|
+
blob: Blob;
|
|
1100
|
+
}>;
|
|
1101
|
+
listDirectory: (path?: string) => Promise<ProjectTaskWorkspaceListing>;
|
|
983
1102
|
refetch: () => Promise<void>;
|
|
984
1103
|
};
|
|
985
1104
|
|
|
986
|
-
export declare function
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
1105
|
+
export declare function useAgentThreadTaskGraphs(threadId?: string, enabled?: boolean): {
|
|
1106
|
+
graphs: ThreadTaskGraphBundle[];
|
|
1107
|
+
latestGraph: ThreadTaskGraphBundle;
|
|
1108
|
+
has_more: boolean;
|
|
1109
|
+
loadingMore: boolean;
|
|
990
1110
|
loading: boolean;
|
|
991
|
-
error:
|
|
992
|
-
|
|
993
|
-
disconnect: (mcpServerId: string) => Promise<void>;
|
|
1111
|
+
error: any;
|
|
1112
|
+
loadMore: () => Promise<void>;
|
|
994
1113
|
refetch: () => Promise<void>;
|
|
995
1114
|
};
|
|
996
1115
|
|
|
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
1116
|
export declare function useApiAuthAppSession(ticket?: string | null): UseApiAuthAppSessionResult;
|
|
1014
1117
|
|
|
1015
1118
|
declare interface UseApiAuthAppSessionResult {
|
|
@@ -1236,6 +1339,79 @@ export declare const useOrganizationMemberships: () => {
|
|
|
1236
1339
|
refetch: () => Promise<void>;
|
|
1237
1340
|
};
|
|
1238
1341
|
|
|
1342
|
+
export declare function useProjectTaskBoardItem(projectId?: string, itemId?: string, enabled?: boolean, options?: ProjectTaskDetailOptions): {
|
|
1343
|
+
item: ProjectTaskBoardItem | null;
|
|
1344
|
+
events: ProjectTaskBoardItemEvent[];
|
|
1345
|
+
assignments: ProjectTaskBoardItemAssignment[];
|
|
1346
|
+
eventsHasMore: boolean;
|
|
1347
|
+
eventsLoadingMore: boolean;
|
|
1348
|
+
loadMoreEvents: () => Promise<void>;
|
|
1349
|
+
assignmentsHasMore: boolean;
|
|
1350
|
+
assignmentsLoadingMore: boolean;
|
|
1351
|
+
loadMoreAssignments: () => Promise<void>;
|
|
1352
|
+
taskWorkspace: ProjectTaskWorkspaceListing;
|
|
1353
|
+
taskWorkspaceLoading: boolean;
|
|
1354
|
+
taskWorkspaceError: any;
|
|
1355
|
+
loading: boolean;
|
|
1356
|
+
error: any;
|
|
1357
|
+
updateItem: (request: UpdateProjectTaskBoardItemRequest, files?: File[]) => Promise<ProjectTaskBoardItem>;
|
|
1358
|
+
archiveItem: () => Promise<ProjectTaskBoardItem>;
|
|
1359
|
+
unarchiveItem: () => Promise<ProjectTaskBoardItem>;
|
|
1360
|
+
getTaskWorkspaceFile: (path: string) => Promise<ProjectTaskWorkspaceFileContent>;
|
|
1361
|
+
listTaskWorkspaceDirectory: (path?: string) => Promise<ProjectTaskWorkspaceListing>;
|
|
1362
|
+
appendJournal: (request: AppendProjectTaskBoardItemJournalRequest, files?: File[]) => Promise<ProjectTaskBoardItemEvent>;
|
|
1363
|
+
refetch: () => Promise<void>;
|
|
1364
|
+
refetchEvents: () => Promise<void>;
|
|
1365
|
+
refetchAssignments: () => Promise<void>;
|
|
1366
|
+
refetchTaskWorkspace: () => Promise<void>;
|
|
1367
|
+
};
|
|
1368
|
+
|
|
1369
|
+
export declare function useProjectTasks(projectId?: string, enabled?: boolean, options?: ProjectTaskListOptions): {
|
|
1370
|
+
tasks: ProjectTaskBoardItem[];
|
|
1371
|
+
loading: boolean;
|
|
1372
|
+
error: any;
|
|
1373
|
+
hasMore: boolean;
|
|
1374
|
+
loadingMore: boolean;
|
|
1375
|
+
loadMore: () => Promise<void>;
|
|
1376
|
+
createTask: (request: CreateProjectTaskBoardItemRequest, files?: File[]) => Promise<ProjectTaskBoardItem>;
|
|
1377
|
+
archiveTask: (itemId: string) => Promise<ProjectTaskBoardItem>;
|
|
1378
|
+
unarchiveTask: (itemId: string) => Promise<ProjectTaskBoardItem>;
|
|
1379
|
+
refetch: () => Promise<void>;
|
|
1380
|
+
};
|
|
1381
|
+
|
|
1382
|
+
export declare function useProjectThreadFeed(projectId?: string, options?: {
|
|
1383
|
+
includeArchived?: boolean;
|
|
1384
|
+
archivedOnly?: boolean;
|
|
1385
|
+
enabled?: boolean;
|
|
1386
|
+
query?: string;
|
|
1387
|
+
limit?: number;
|
|
1388
|
+
}): {
|
|
1389
|
+
threads: AgentThread[];
|
|
1390
|
+
loading: boolean;
|
|
1391
|
+
error: any;
|
|
1392
|
+
hasMore: boolean;
|
|
1393
|
+
loadingMore: boolean;
|
|
1394
|
+
loadMore: () => Promise<void>;
|
|
1395
|
+
refetch: () => Promise<void>;
|
|
1396
|
+
};
|
|
1397
|
+
|
|
1398
|
+
export declare function useProjectThreads(projectId?: string, options?: {
|
|
1399
|
+
includeArchived?: boolean;
|
|
1400
|
+
enabled?: boolean;
|
|
1401
|
+
}): {
|
|
1402
|
+
threads: AgentThread[];
|
|
1403
|
+
loading: boolean;
|
|
1404
|
+
error: any;
|
|
1405
|
+
hasMore: boolean;
|
|
1406
|
+
nextCursor: string;
|
|
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 {
|