@wacht/jsx 1.0.0-beta.2 → 1.0.0-beta.23

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.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { AgentContext } from '@wacht/types';
2
- import { AgentIntegration } from '@wacht/types';
3
- import { AgentMcpServer } from '@wacht/types';
4
- import { AgentWithIntegrations } from '@wacht/types';
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 { ConsentURLResponse } from '@wacht/types';
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';
@@ -28,7 +31,6 @@ import { DeploymentUISettings } from '@wacht/types';
28
31
  import { DetailedHTMLProps } from 'react';
29
32
  import { EndpointWithSubscriptions } from '@wacht/types';
30
33
  import { EnterpriseConnection } from '@wacht/types';
31
- import { ErrorInterface } from '@wacht/types';
32
34
  import { FastOmit } from 'styled-components';
33
35
  import { FC } from 'react';
34
36
  import { FileData } from '@wacht/types';
@@ -40,8 +42,6 @@ import { IStyledComponentBase } from 'styled-components/dist/types';
40
42
  import { JSX } from 'react/jsx-runtime';
41
43
  import { KeyedMutator } from 'swr';
42
44
  import { LabelHTMLAttributes } from 'react';
43
- import { ListContextsOptions } from '@wacht/types';
44
- import { McpConnectResponse } from '@wacht/types';
45
45
  import { NewDomain } from '@wacht/types';
46
46
  import { NewOrgnization } from '@wacht/types';
47
47
  import { Notification as Notification_2 } from '@wacht/types';
@@ -56,6 +56,11 @@ import { OrganizationRole } from '@wacht/types';
56
56
  import { OrganizationUpdate } from '@wacht/types';
57
57
  import { ProfileCompletionData } from '@wacht/types';
58
58
  import { ProfileCompletionProps } from '@wacht/types';
59
+ import { ProjectTaskBoardItem } from '@wacht/types';
60
+ import { ProjectTaskBoardItemAssignment } from '@wacht/types';
61
+ import { ProjectTaskBoardItemEvent } from '@wacht/types';
62
+ import { ProjectTaskWorkspaceFileContent } from '@wacht/types';
63
+ import { ProjectTaskWorkspaceListing } from '@wacht/types';
59
64
  import { ReactNode } from 'react';
60
65
  import { RefAttributes } from 'react';
61
66
  import { ReplayTaskListOptions } from '@wacht/types';
@@ -79,9 +84,16 @@ import { SocialConnection } from '@wacht/types';
79
84
  import { Substitute } from 'styled-components/dist/types';
80
85
  import { TestEndpointOptions } from '@wacht/types';
81
86
  import { TestEndpointResponse } from '@wacht/types';
87
+ import { ThreadEvent } from '@wacht/types';
88
+ import { ThreadPendingApprovalRequestState } from '@wacht/types';
89
+ import { ThreadTaskGraphBundle } from '@wacht/types';
82
90
  import { TimeseriesPoint } from '@wacht/types';
91
+ import { ToolApprovalDecision } from '@wacht/types';
92
+ import { UpdateActorProjectRequest } from '@wacht/types';
93
+ import { UpdateAgentThreadRequest } from '@wacht/types';
83
94
  import { UpdateEndpointOptions } from '@wacht/types';
84
95
  import { UpdateEnterpriseConnectionPayload } from '@wacht/types';
96
+ import { UpdateProjectTaskBoardItemRequest } from '@wacht/types';
85
97
  import { UpdateWebhookSettingsOptions } from '@wacht/types';
86
98
  import { UseApiAuthAuditAnalyticsOptions } from '@wacht/types';
87
99
  import { UseApiAuthAuditLogsOptions } from '@wacht/types';
@@ -89,7 +101,6 @@ import { UseApiAuthAuditTimeseriesOptions } from '@wacht/types';
89
101
  import { UseApiAuthKeysFilters } from '@wacht/types';
90
102
  import { UserAuthenticator } from '@wacht/types';
91
103
  import { UserEmailAddress } from '@wacht/types';
92
- import { UserInputRequestContent } from '@wacht/types';
93
104
  import { UserPasskey } from '@wacht/types';
94
105
  import { UserPhoneNumber } from '@wacht/types';
95
106
  import { UseWebhookAnalyticsOptions } from '@wacht/types';
@@ -134,7 +145,35 @@ declare interface AcceptInviteProps {
134
145
  onError?: (error: string) => void;
135
146
  }
136
147
 
137
- export declare function AuthFormImage(): JSX.Element | null;
148
+ declare interface ActorMcpServerConnectResponse {
149
+ auth_url: string;
150
+ }
151
+
152
+ export declare interface ActorMcpServerSummary {
153
+ id: string;
154
+ name: string;
155
+ endpoint: string;
156
+ auth_type: string;
157
+ requires_user_connection: boolean;
158
+ connection_status: "ready" | "connected" | "not_connected" | "expired";
159
+ connected_at?: string;
160
+ expires_at?: string;
161
+ }
162
+
163
+ declare type AgentSearchOptions = {
164
+ enabled?: boolean;
165
+ query?: string;
166
+ limit?: number;
167
+ };
168
+
169
+ declare type AgentThreadHookOptions = {
170
+ enabled?: boolean;
171
+ limit?: number;
172
+ };
173
+
174
+ export declare function AuthFormImage({ placement, }: {
175
+ placement?: "center" | "left" | "right";
176
+ }): JSX.Element | null;
138
177
 
139
178
  /**
140
179
  * Check if user can manage the organization (admin or manage permissions)
@@ -191,6 +230,10 @@ declare interface CreateWorkspaceFormProps {
191
230
  onCreateOrganization?: () => void;
192
231
  }
193
232
 
233
+ export declare function DefaultStylesProvider({ children, style, ...props }: DefaultStylesProviderProps): JSX.Element;
234
+
235
+ declare type DefaultStylesProviderProps = ComponentPropsWithoutRef<"div">;
236
+
194
237
  export declare interface DeploymentContextType {
195
238
  loading: boolean;
196
239
  deployment: Deployment | null;
@@ -326,7 +369,7 @@ declare const FRONTEND_STATUS: {
326
369
  readonly FAILED: "failed";
327
370
  };
328
371
 
329
- declare type FrontendStatus = typeof FRONTEND_STATUS[keyof typeof FRONTEND_STATUS];
372
+ declare type FrontendStatus = (typeof FRONTEND_STATUS)[keyof typeof FRONTEND_STATUS];
330
373
 
331
374
  declare type GenericSignInParams = {
332
375
  email?: string;
@@ -348,7 +391,7 @@ export declare function hasOrgPermission(membership: WithOrgRoles, requiredPermi
348
391
  */
349
392
  export declare function hasWorkspacePermission(membership: WithWsRoles, requiredPermissions: string[]): boolean;
350
393
 
351
- export declare interface IdentifyResult {
394
+ declare interface IdentifyResult {
352
395
  strategy: "sso" | "social" | "password";
353
396
  connection_id?: string;
354
397
  idp_url?: string;
@@ -378,7 +421,7 @@ export declare function isWorkspaceAdmin(membership: WithWsRoles): boolean;
378
421
 
379
422
  export declare const Label: IStyledComponentBase<"web", FastOmit<DetailedHTMLProps<LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, never>> & string;
380
423
 
381
- export declare interface MagicLinkParams {
424
+ declare interface MagicLinkParams {
382
425
  token?: string;
383
426
  attempt?: string;
384
427
  redirectUri?: string;
@@ -474,7 +517,7 @@ export declare function NotificationBell({ className, showBadge, scope, onAction
474
517
  declare interface NotificationBellProps {
475
518
  className?: string;
476
519
  showBadge?: boolean;
477
- scope?: "all" | "current" | "user";
520
+ scope?: NotificationListParams["scope"];
478
521
  onAction?: (payload: any) => void;
479
522
  }
480
523
 
@@ -502,7 +545,7 @@ export declare interface NotificationMessage {
502
545
  export declare const NotificationPanel: ForwardRefExoticComponent<NotificationPanelProps & RefAttributes<HTMLDivElement>>;
503
546
 
504
547
  declare interface NotificationPanelProps {
505
- scope?: "all" | "current" | "user";
548
+ scope?: NotificationListParams["scope"];
506
549
  onAction?: (payload: any) => void;
507
550
  fullWidth?: boolean;
508
551
  maxHeight?: string;
@@ -626,6 +669,17 @@ declare interface ProfileUpdateData {
626
669
  remove_profile_picture?: boolean;
627
670
  }
628
671
 
672
+ declare type ProjectTaskDetailOptions = {
673
+ includeArchived?: boolean;
674
+ };
675
+
676
+ declare type ProjectTaskListOptions = {
677
+ statuses?: string[];
678
+ includeArchived?: boolean;
679
+ archivedOnly?: boolean;
680
+ limit?: number;
681
+ };
682
+
629
683
  export declare function redirectToProfileCompletion(returnUrl?: string): void;
630
684
 
631
685
  export declare const RequireActiveTenancy: ({ children, }: RequireActiveTenancyProps) => JSX.Element | null;
@@ -671,17 +725,6 @@ declare type SignInEmailOTP = ({ email, }: EmailOTPSignInParams) => Promise<ApiR
671
725
 
672
726
  export declare function SignInForm(): JSX.Element;
673
727
 
674
- declare type SignInFunction<T extends SignInStrategy> = {
675
- ["username"]: SignInPlainUsername;
676
- ["email"]: SignInPlainEmail;
677
- ["phone"]: SignInPhone;
678
- ["email_otp"]: SignInEmailOTP;
679
- ["magic_link"]: SignInMagicLink;
680
- ["oauth"]: SignInOauth;
681
- ["passkey"]: SignInPasskey;
682
- ["generic"]: SignInGeneric;
683
- }[T];
684
-
685
728
  declare type SignInGeneric = ({ email, username, password, phone, strategy, }: GenericSignInParams) => Promise<ApiResult<Session>>;
686
729
 
687
730
  declare type SignInMagicLink = ({ email, }: MagicLinkSignInParams) => Promise<ApiResult<Session>>;
@@ -699,8 +742,6 @@ declare type SignInPlainEmail = ({ email, password, }: EmailSignInParams) => Pro
699
742
 
700
743
  declare type SignInPlainUsername = ({ username, password, }: UsernameSignInParams) => Promise<ApiResult<Session>>;
701
744
 
702
- declare type SignInStrategy = "username" | "email" | "phone" | "email_otp" | "magic_link" | "oauth" | "passkey" | "generic";
703
-
704
745
  declare type SignupEmailOTPVerificationParams = {
705
746
  strategy: "email_otp";
706
747
  redirectUri?: string;
@@ -709,7 +750,7 @@ declare type SignupEmailOTPVerificationParams = {
709
750
  export declare function SignUpForm(): JSX.Element;
710
751
 
711
752
  export declare type SignUpFunction = {
712
- create: (params: SignUpParams) => Promise<ApiResult<unknown, ErrorInterface>>;
753
+ create: (params: SignUpParams) => Promise<ApiResult<unknown>>;
713
754
  prepareVerification: (params: SignupVerificationParams) => Promise<ApiResult<PrepareVerificationResponse_2>>;
714
755
  completeVerification: (verificationCode: string) => Promise<ApiResult<Session>>;
715
756
  validateDeploymentInvitation: (token: string) => Promise<DeploymentInvitationData>;
@@ -875,8 +916,8 @@ export declare const useActiveOrganization: () => {
875
916
 
876
917
  export declare function useActiveTenancy(): {
877
918
  loading: boolean;
878
- orgMembership: OrganizationMembershipWithOrganization | null | undefined;
879
- workspaceMembership: WorkspaceMembership | null | undefined;
919
+ orgMembership: OrganizationMembershipWithOrganization | null;
920
+ workspaceMembership: WorkspaceMembership | null;
880
921
  };
881
922
 
882
923
  export declare const useActiveWorkspace: () => {
@@ -915,22 +956,105 @@ export declare const useActiveWorkspace: () => {
915
956
  resendInvitation: (invitationId: string) => Promise<unknown>;
916
957
  };
917
958
 
918
- export declare function useAgentContext({ contextId, agentName, platformAdapter, }: UseAgentContextProps): {
959
+ export declare function useActorMcpServers(enabled?: boolean): {
960
+ servers: ActorMcpServerSummary[];
961
+ loading: boolean;
962
+ error: any;
963
+ connect: (mcpServerId: string) => Promise<ApiResult<ActorMcpServerConnectResponse>>;
964
+ disconnect: (mcpServerId: string) => Promise<ApiResult< {
965
+ success: boolean;
966
+ }>>;
967
+ refetch: () => Promise<void>;
968
+ };
969
+
970
+ export declare function useActorProjects(options?: {
971
+ includeArchived?: boolean;
972
+ enabled?: boolean;
973
+ }): {
974
+ projects: ActorProject[];
975
+ loading: boolean;
976
+ error: any;
977
+ createProject: (request: CreateActorProjectRequest) => Promise<ApiResult<ActorProject>>;
978
+ updateProject: (projectId: string, request: UpdateActorProjectRequest) => Promise<ApiResult<ActorProject>>;
979
+ archiveProject: (projectId: string) => Promise<ApiResult<ActorProject>>;
980
+ unarchiveProject: (projectId: string) => Promise<ApiResult<ActorProject>>;
981
+ refetch: () => Promise<void>;
982
+ };
983
+
984
+ export declare function useActorProjectSearch(options?: AgentSearchOptions): {
985
+ projects: ActorProject[];
986
+ loading: boolean;
987
+ error: any;
988
+ hasMore: boolean;
989
+ nextCursor: string | undefined;
990
+ refetch: () => Promise<void>;
991
+ };
992
+
993
+ export declare function useActorThreadSearch(options?: AgentSearchOptions): {
994
+ threads: AgentThread[];
995
+ loading: boolean;
996
+ error: any;
997
+ hasMore: boolean;
998
+ nextCursor: string | undefined;
999
+ refetch: () => Promise<void>;
1000
+ };
1001
+
1002
+ export declare function useAgentSession(ticket?: string | null): UseAgentSessionResult;
1003
+
1004
+ declare interface UseAgentSessionResult {
1005
+ hasSession: boolean;
1006
+ sessionLoading: boolean;
1007
+ sessionError: Error | null;
1008
+ sessionId: string | null;
1009
+ actor: Actor | null;
1010
+ agents: Agent[];
1011
+ ticketExchanged: boolean;
1012
+ ticketLoading: boolean;
1013
+ refetch: () => Promise<void>;
1014
+ }
1015
+
1016
+ export declare function useAgentThread(threadId?: string, enabled?: boolean): {
1017
+ thread: AgentThread | null;
1018
+ loading: boolean;
1019
+ error: any;
1020
+ updateThread: (request: UpdateAgentThreadRequest) => Promise<ApiResult<AgentThread>>;
1021
+ archiveThread: () => Promise<ApiResult<AgentThread>>;
1022
+ unarchiveThread: () => Promise<ApiResult<AgentThread>>;
1023
+ refetch: () => Promise<void>;
1024
+ };
1025
+
1026
+ export declare function useAgentThreadAssignments(threadId?: string, options?: AgentThreadHookOptions): {
1027
+ assignments: ProjectTaskBoardItemAssignment[];
1028
+ loading: boolean;
1029
+ error: any;
1030
+ hasMore: boolean;
1031
+ loadingMore: boolean;
1032
+ loadMore: () => Promise<void>;
1033
+ refetch: () => Promise<void>;
1034
+ };
1035
+
1036
+ export declare function useAgentThreadConversation({ threadId, platformAdapter, }: UseAgentThreadConversationProps): {
1037
+ threadState: AgentThread | null;
919
1038
  messages: ConversationMessage[];
920
- quickQuestions: string[];
921
1039
  pendingMessage: string | null;
922
1040
  pendingFiles: File[] | null;
923
1041
  connectionState: {
924
1042
  status: (typeof CONNECTION_STATES)[keyof typeof CONNECTION_STATES];
925
1043
  };
926
1044
  isConnected: boolean;
927
- isExecuting: boolean;
1045
+ hasActiveRun: boolean;
1046
+ isRunning: boolean;
928
1047
  executionStatus: FrontendStatus;
929
1048
  isWaitingForInput: boolean;
1049
+ pendingApprovalRequest: ThreadPendingApprovalRequestState | null;
1050
+ activeApprovalRequestId: string | null;
930
1051
  hasMoreMessages: boolean;
931
1052
  isLoadingMore: boolean;
1053
+ messagesLoading: boolean;
1054
+ messagesError: Error | null;
1055
+ refreshMessages: () => Promise<void>;
932
1056
  sendMessage: (message: string, files?: File[]) => Promise<void>;
933
- submitUserInput: (input: string) => Promise<void>;
1057
+ submitApprovalResponse: (requestMessageId: string, approvals: ToolApprovalDecision[]) => Promise<boolean>;
934
1058
  clearMessages: () => void;
935
1059
  loadMoreMessages: () => Promise<void>;
936
1060
  cancelExecution: () => Promise<void>;
@@ -938,73 +1062,45 @@ export declare function useAgentContext({ contextId, agentName, platformAdapter,
938
1062
  downloadMessageFile: (file: FileData | null | undefined) => void;
939
1063
  };
940
1064
 
941
- declare interface UseAgentContextProps {
942
- contextId: string;
943
- agentName: string;
1065
+ declare interface UseAgentThreadConversationProps {
1066
+ threadId: string;
944
1067
  platformAdapter?: {
945
1068
  onPlatformEvent?: (eventName: string, eventData: unknown) => void;
946
- onPlatformFunction?: (functionName: string, parameters: unknown, executionId: string) => Promise<unknown>;
947
1069
  };
948
- onUserInputRequest?: (request: UserInputRequestContent) => Promise<string>;
949
1070
  }
950
1071
 
951
- export declare function useAgentContexts(options?: UseAgentContextsOptions): UseAgentContextsReturnType;
952
-
953
- declare interface UseAgentContextsOptions extends ListContextsOptions {
954
- enabled?: boolean;
955
- }
956
-
957
- declare type UseAgentContextsReturnType = {
958
- contexts: AgentContext[];
1072
+ export declare function useAgentThreadEvents(threadId?: string, options?: AgentThreadHookOptions): {
1073
+ events: ThreadEvent[];
959
1074
  loading: boolean;
960
- error: Error | null;
1075
+ error: any;
961
1076
  hasMore: boolean;
962
- createContext: (request: CreateContextRequest) => Promise<AgentContext>;
963
- deleteContext: (id: string) => Promise<void>;
964
- updateContext: (id: string, updates: {
965
- title?: string;
966
- }) => Promise<void>;
1077
+ loadingMore: boolean;
1078
+ loadMore: () => Promise<void>;
967
1079
  refetch: () => Promise<void>;
968
1080
  };
969
1081
 
970
- export declare function useAgentIntegrations(agentName: string | null): UseAgentIntegrationsReturnType;
971
-
972
- declare type UseAgentIntegrationsReturnType = {
973
- integrations: AgentIntegration[];
974
- loading: boolean;
975
- error: Error | null;
976
- generateConsentURL: (integrationId: string, redirectUrl?: string) => Promise<ConsentURLResponse>;
977
- removeIntegration: (integrationId: string) => Promise<void>;
1082
+ export declare function useAgentThreadFilesystem(threadId?: string, enabled?: boolean): {
1083
+ filesystem: ProjectTaskWorkspaceListing;
1084
+ filesystemLoading: boolean;
1085
+ filesystemError: any;
1086
+ getFile: (path: string) => Promise<ProjectTaskWorkspaceFileContent & {
1087
+ blob: Blob;
1088
+ }>;
1089
+ listDirectory: (path?: string) => Promise<ProjectTaskWorkspaceListing>;
978
1090
  refetch: () => Promise<void>;
979
1091
  };
980
1092
 
981
- export declare function useAgentMcpServers(agentName: string | null): UseAgentMcpServersReturnType;
982
-
983
- declare type UseAgentMcpServersReturnType = {
984
- mcpServers: AgentMcpServer[];
1093
+ export declare function useAgentThreadTaskGraphs(threadId?: string, enabled?: boolean): {
1094
+ graphs: ThreadTaskGraphBundle[];
1095
+ latestGraph: ThreadTaskGraphBundle;
1096
+ has_more: boolean;
1097
+ loadingMore: boolean;
985
1098
  loading: boolean;
986
- error: Error | null;
987
- connect: (mcpServerId: string) => Promise<McpConnectResponse>;
988
- disconnect: (mcpServerId: string) => Promise<void>;
1099
+ error: any;
1100
+ loadMore: () => Promise<void>;
989
1101
  refetch: () => Promise<void>;
990
1102
  };
991
1103
 
992
- export declare function useAgentSession(ticket?: string | null): UseAgentSessionResult;
993
-
994
- declare interface UseAgentSessionResult {
995
- hasSession: boolean;
996
- sessionLoading: boolean;
997
- sessionError: Error | null;
998
- sessionId: string | null;
999
- contextGroup: string | null;
1000
- agents: AgentWithIntegrations[];
1001
- activeAgent: AgentWithIntegrations | null;
1002
- setActiveAgent: (agent: AgentWithIntegrations) => void;
1003
- ticketExchanged: boolean;
1004
- ticketLoading: boolean;
1005
- refetch: () => Promise<void>;
1006
- }
1007
-
1008
1104
  export declare function useApiAuthAppSession(ticket?: string | null): UseApiAuthAppSessionResult;
1009
1105
 
1010
1106
  declare interface UseApiAuthAppSessionResult {
@@ -1053,9 +1149,9 @@ export declare function useApiAuthKeys(filters?: UseApiAuthKeysFilters): UseApiA
1053
1149
 
1054
1150
  declare interface UseApiAuthKeysReturn {
1055
1151
  keys: ApiKey[];
1056
- createKey: (input: CreateApiAuthKeyInput) => Promise<ApiKeyWithSecret>;
1057
- rotateKey: (input: RotateApiAuthKeyInput) => Promise<ApiKeyWithSecret>;
1058
- revokeKey: (input: RevokeApiAuthKeyInput) => Promise<void>;
1152
+ createKey: (input: CreateApiAuthKeyInput) => Promise<ApiResult<ApiKeyWithSecret>>;
1153
+ rotateKey: (input: RotateApiAuthKeyInput) => Promise<ApiResult<ApiKeyWithSecret>>;
1154
+ revokeKey: (input: RevokeApiAuthKeyInput) => Promise<ApiResult<void>>;
1059
1155
  loading: boolean;
1060
1156
  error: unknown;
1061
1157
  refetch: () => void;
@@ -1071,7 +1167,7 @@ declare type UseClientReturnType = {
1071
1167
  export declare function useCreateWebhookEndpoint(): UseCreateWebhookEndpointReturn;
1072
1168
 
1073
1169
  declare interface UseCreateWebhookEndpointReturn {
1074
- createEndpoint: (options: CreateEndpointOptions) => Promise<EndpointWithSubscriptions>;
1170
+ createEndpoint: (options: CreateEndpointOptions) => Promise<ApiResult<EndpointWithSubscriptions>>;
1075
1171
  loading: boolean;
1076
1172
  error: unknown;
1077
1173
  }
@@ -1080,11 +1176,11 @@ export declare function useDeployment(): DeploymentContextType;
1080
1176
 
1081
1177
  export declare function useForgotPassword(): {
1082
1178
  loading: boolean;
1083
- forgotPassword: (email: string) => Promise<ApiResult<{}, ErrorInterface>>;
1179
+ forgotPassword: (email: string) => Promise<ApiResult<{}>>;
1084
1180
  verifyOtp: (email: string, otp: string) => Promise<ApiResult<{
1085
1181
  token: string;
1086
- }, ErrorInterface>>;
1087
- resetPassword: (token: string, password: string) => Promise<ApiResult<Session, ErrorInterface>>;
1182
+ }>>;
1183
+ resetPassword: (token: string, password: string) => Promise<ApiResult<Session>>;
1088
1184
  };
1089
1185
 
1090
1186
  export declare const useInvitation: () => {
@@ -1095,13 +1191,11 @@ export declare const useInvitation: () => {
1095
1191
  reset: () => void;
1096
1192
  };
1097
1193
 
1098
- export declare function useMagicLinkParams(): MagicLinkParams;
1099
-
1100
1194
  export declare function useMagicLinkVerification(): UseMagicLinkVerificationReturnType;
1101
1195
 
1102
- export declare interface UseMagicLinkVerificationReturnType {
1196
+ declare interface UseMagicLinkVerificationReturnType {
1103
1197
  loading: boolean;
1104
- verifyMagicLink: (params: MagicLinkParams) => Promise<ApiResult<{}, ErrorInterface>>;
1198
+ verifyMagicLink: (params: MagicLinkParams) => Promise<ApiResult<{}>>;
1105
1199
  success: boolean | null;
1106
1200
  }
1107
1201
 
@@ -1164,6 +1258,8 @@ export declare interface UseNotificationStreamOptions {
1164
1258
  maxReconnectAttempts?: number;
1165
1259
  }
1166
1260
 
1261
+ export declare function useNotificationUnreadCount(params?: NotificationListParams): UseScopeUnreadReturnType;
1262
+
1167
1263
  export declare const useOrganizationList: () => {
1168
1264
  organizations: Organization[] | undefined;
1169
1265
  loading: boolean;
@@ -1231,6 +1327,79 @@ export declare const useOrganizationMemberships: () => {
1231
1327
  refetch: () => Promise<void>;
1232
1328
  };
1233
1329
 
1330
+ export declare function useProjectTaskBoardItem(projectId?: string, itemId?: string, enabled?: boolean, options?: ProjectTaskDetailOptions): {
1331
+ item: ProjectTaskBoardItem | null;
1332
+ events: ProjectTaskBoardItemEvent[];
1333
+ assignments: ProjectTaskBoardItemAssignment[];
1334
+ eventsHasMore: boolean;
1335
+ eventsLoadingMore: boolean;
1336
+ loadMoreEvents: () => Promise<void>;
1337
+ assignmentsHasMore: boolean;
1338
+ assignmentsLoadingMore: boolean;
1339
+ loadMoreAssignments: () => Promise<void>;
1340
+ taskWorkspace: ProjectTaskWorkspaceListing;
1341
+ taskWorkspaceLoading: boolean;
1342
+ taskWorkspaceError: any;
1343
+ loading: boolean;
1344
+ error: any;
1345
+ updateItem: (request: UpdateProjectTaskBoardItemRequest, files?: File[]) => Promise<ApiResult<ProjectTaskBoardItem>>;
1346
+ archiveItem: () => Promise<ApiResult<ProjectTaskBoardItem>>;
1347
+ unarchiveItem: () => Promise<ApiResult<ProjectTaskBoardItem>>;
1348
+ getTaskWorkspaceFile: (path: string) => Promise<ApiResult<ProjectTaskWorkspaceFileContent>>;
1349
+ listTaskWorkspaceDirectory: (path?: string) => Promise<ApiResult<ProjectTaskWorkspaceListing>>;
1350
+ appendJournal: (request: AppendProjectTaskBoardItemJournalRequest, files?: File[]) => Promise<ApiResult<ProjectTaskBoardItemEvent>>;
1351
+ refetch: () => Promise<void>;
1352
+ refetchEvents: () => Promise<void>;
1353
+ refetchAssignments: () => Promise<void>;
1354
+ refetchTaskWorkspace: () => Promise<void>;
1355
+ };
1356
+
1357
+ export declare function useProjectTasks(projectId?: string, enabled?: boolean, options?: ProjectTaskListOptions): {
1358
+ tasks: ProjectTaskBoardItem[];
1359
+ loading: boolean;
1360
+ error: any;
1361
+ hasMore: boolean;
1362
+ loadingMore: boolean;
1363
+ loadMore: () => Promise<void>;
1364
+ createTask: (request: CreateProjectTaskBoardItemRequest, files?: File[]) => Promise<ApiResult<ProjectTaskBoardItem>>;
1365
+ archiveTask: (itemId: string) => Promise<ApiResult<ProjectTaskBoardItem>>;
1366
+ unarchiveTask: (itemId: string) => Promise<ApiResult<ProjectTaskBoardItem>>;
1367
+ refetch: () => Promise<void>;
1368
+ };
1369
+
1370
+ export declare function useProjectThreadFeed(projectId?: string, options?: {
1371
+ includeArchived?: boolean;
1372
+ archivedOnly?: boolean;
1373
+ enabled?: boolean;
1374
+ query?: string;
1375
+ limit?: number;
1376
+ }): {
1377
+ threads: AgentThread[];
1378
+ loading: boolean;
1379
+ error: any;
1380
+ hasMore: boolean;
1381
+ loadingMore: boolean;
1382
+ loadMore: () => Promise<void>;
1383
+ refetch: () => Promise<void>;
1384
+ };
1385
+
1386
+ export declare function useProjectThreads(projectId?: string, options?: {
1387
+ includeArchived?: boolean;
1388
+ enabled?: boolean;
1389
+ }): {
1390
+ threads: AgentThread[];
1391
+ loading: boolean;
1392
+ error: any;
1393
+ hasMore: boolean;
1394
+ nextCursor: string;
1395
+ createThread: (request: CreateAgentThreadRequest) => Promise<ApiResult<AgentThread>>;
1396
+ createThreadForProject: (targetProjectId: string, request: CreateAgentThreadRequest) => Promise<ApiResult<AgentThread>>;
1397
+ updateThread: (threadId: string, request: UpdateAgentThreadRequest) => Promise<ApiResult<AgentThread>>;
1398
+ archiveThread: (threadId: string) => Promise<ApiResult<AgentThread>>;
1399
+ unarchiveThread: (threadId: string) => Promise<ApiResult<AgentThread>>;
1400
+ refetch: () => Promise<void>;
1401
+ };
1402
+
1234
1403
  export declare const UserButton: default_2.FC<UserButtonProps>;
1235
1404
 
1236
1405
  declare interface UserButtonProps {
@@ -1249,8 +1418,6 @@ declare type UsernameSignInParams = {
1249
1418
  password: string;
1250
1419
  };
1251
1420
 
1252
- export declare function useScopeUnread(params?: NotificationListParams): UseScopeUnreadReturnType;
1253
-
1254
1421
  declare type UseScopeUnreadReturnType = {
1255
1422
  loading: true;
1256
1423
  count: number;
@@ -1305,32 +1472,6 @@ declare type UseSignInReturnType = {
1305
1472
  setSignInAttempt: (attempt: SigninAttempt | null) => void;
1306
1473
  };
1307
1474
 
1308
- export declare function useSignInWithStrategy<T extends SignInStrategy>(strategy: T): UseSignInWithStrategyReturnType<T>;
1309
-
1310
- export declare type UseSignInWithStrategyReturnType<T extends SignInStrategy> = {
1311
- loading: true;
1312
- signIn: never;
1313
- signinAttempt: null;
1314
- discardSignInAttempt: () => void;
1315
- setSignInAttempt: (attempt: SigninAttempt | null) => void;
1316
- } | {
1317
- loading: false;
1318
- signIn: {
1319
- create: SignInFunction<T>;
1320
- completeVerification: (verificationCode: string) => Promise<Session>;
1321
- prepareVerification: (params: VerificationParams) => Promise<ApiResult<PrepareVerificationResponse>>;
1322
- completeProfile: (data: ProfileCompletionData) => Promise<Session>;
1323
- identify: (identifier: string) => Promise<IdentifyResult>;
1324
- initEnterpriseSso: (connectionId: string, redirectUri?: string) => Promise<{
1325
- sso_url: string;
1326
- session: Session;
1327
- }>;
1328
- };
1329
- signinAttempt: SigninAttempt | null;
1330
- discardSignInAttempt: () => void;
1331
- setSignInAttempt: (attempt: SigninAttempt | null) => void;
1332
- };
1333
-
1334
1475
  export declare function useSignUp(): UseSignUpReturnType;
1335
1476
 
1336
1477
  export declare type UseSignUpReturnType = {
@@ -1427,7 +1568,7 @@ export declare function useUserSignins(): {
1427
1568
 
1428
1569
  export declare function useWaitlist(): {
1429
1570
  loading: boolean;
1430
- joinWaitlist: (params: WaitlistParams) => Promise<ApiResult<WaitlistResponse, ErrorInterface>>;
1571
+ joinWaitlist: (params: WaitlistParams) => Promise<ApiResult<WaitlistResponse>>;
1431
1572
  };
1432
1573
 
1433
1574
  export declare function useWebhookAnalytics(options?: UseWebhookAnalyticsOptions): UseWebhookAnalyticsReturn;
@@ -1450,17 +1591,17 @@ declare interface UseWebhookAppSessionResult {
1450
1591
  ticketExchanged: boolean;
1451
1592
  ticketLoading: boolean;
1452
1593
  refetch: () => Promise<void>;
1453
- createEndpoint: (options: CreateEndpointOptions) => Promise<EndpointWithSubscriptions>;
1454
- updateEndpoint: (endpointId: string, options: UpdateEndpointOptions) => Promise<EndpointWithSubscriptions>;
1455
- deleteEndpoint: (endpointId: string) => Promise<DeleteEndpointResponse>;
1456
- testEndpoint: (endpointId: string, options: TestEndpointOptions) => Promise<TestEndpointResponse>;
1457
- rotateSecret: () => Promise<WebhookAppInfo>;
1458
- updateSettings: (options: UpdateWebhookSettingsOptions) => Promise<WebhookSettingsResponse>;
1459
- replayDelivery: (options: ReplayWebhookDeliveryOptions) => Promise<ReplayWebhookDeliveryResponse>;
1460
- fetchReplayTaskStatus: (options: ReplayTaskStatusOptions) => Promise<ReplayTaskStatusResponse>;
1461
- fetchReplayTasks: (options?: ReplayTaskListOptions) => Promise<ReplayTaskListResponse>;
1462
- cancelReplayTask: (options: CancelReplayTaskOptions) => Promise<CancelReplayTaskResponse>;
1463
- fetchDeliveryDetail: (deliveryId: string) => Promise<WebhookDeliveryDetail[]>;
1594
+ createEndpoint: (options: CreateEndpointOptions) => Promise<ApiResult<EndpointWithSubscriptions>>;
1595
+ updateEndpoint: (endpointId: string, options: UpdateEndpointOptions) => Promise<ApiResult<EndpointWithSubscriptions>>;
1596
+ deleteEndpoint: (endpointId: string) => Promise<ApiResult<DeleteEndpointResponse>>;
1597
+ testEndpoint: (endpointId: string, options: TestEndpointOptions) => Promise<ApiResult<TestEndpointResponse>>;
1598
+ rotateSecret: () => Promise<ApiResult<WebhookAppInfo>>;
1599
+ updateSettings: (options: UpdateWebhookSettingsOptions) => Promise<ApiResult<WebhookSettingsResponse>>;
1600
+ replayDelivery: (options: ReplayWebhookDeliveryOptions) => Promise<ApiResult<ReplayWebhookDeliveryResponse>>;
1601
+ fetchReplayTaskStatus: (options: ReplayTaskStatusOptions) => Promise<ApiResult<ReplayTaskStatusResponse>>;
1602
+ fetchReplayTasks: (options?: ReplayTaskListOptions) => Promise<ApiResult<ReplayTaskListResponse>>;
1603
+ cancelReplayTask: (options: CancelReplayTaskOptions) => Promise<ApiResult<CancelReplayTaskResponse>>;
1604
+ fetchDeliveryDetail: (deliveryId: string) => Promise<ApiResult<WebhookDeliveryDetail[]>>;
1464
1605
  }
1465
1606
 
1466
1607
  export declare function useWebhookDeliveries(options?: UseWebhookDeliveriesOptions): {