@wacht/jsx 1.0.0-beta.4 → 1.0.0-beta.40
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 +49 -27
- package/dist/index.cjs.js +4743 -3547
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +309 -153
- package/dist/index.es.js +19683 -16463
- package/dist/index.es.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { Actor } from '@wacht/types';
|
|
2
|
+
import { ActorMcpServerSummary } from '@wacht/types';
|
|
3
|
+
import { ActorProject } from '@wacht/types';
|
|
4
|
+
import { Agent } from '@wacht/types';
|
|
5
|
+
import { AgentThread } from '@wacht/types';
|
|
6
|
+
import { AnswerSubmission } from '@wacht/types';
|
|
5
7
|
import { ApiAuditAnalyticsResponse } from '@wacht/types';
|
|
6
8
|
import { ApiAuditLogsResponse } from '@wacht/types';
|
|
7
9
|
import { ApiAuditTimeseriesResponse } from '@wacht/types';
|
|
@@ -13,12 +15,14 @@ import { ButtonHTMLAttributes } from 'react';
|
|
|
13
15
|
import { CancelReplayTaskOptions } from '@wacht/types';
|
|
14
16
|
import { CancelReplayTaskResponse } from '@wacht/types';
|
|
15
17
|
import { Client } from '@wacht/types';
|
|
16
|
-
import {
|
|
18
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
17
19
|
import { ConversationMessage } from '@wacht/types';
|
|
20
|
+
import { CreateActorProjectRequest } from '@wacht/types';
|
|
21
|
+
import { CreateAgentThreadRequest } from '@wacht/types';
|
|
18
22
|
import { CreateApiAuthKeyInput } from '@wacht/types';
|
|
19
|
-
import { CreateContextRequest } from '@wacht/types';
|
|
20
23
|
import { CreateEndpointOptions } from '@wacht/types';
|
|
21
24
|
import { CreateEnterpriseConnectionPayload } from '@wacht/types';
|
|
25
|
+
import { CreateProjectTaskBoardItemRequest } from '@wacht/types';
|
|
22
26
|
import { CSSProperties } from 'react';
|
|
23
27
|
import { CurrentUser } from '@wacht/types';
|
|
24
28
|
import { default as default_2 } from 'react';
|
|
@@ -28,7 +32,7 @@ import { DeploymentUISettings } from '@wacht/types';
|
|
|
28
32
|
import { DetailedHTMLProps } from 'react';
|
|
29
33
|
import { EndpointWithSubscriptions } from '@wacht/types';
|
|
30
34
|
import { EnterpriseConnection } from '@wacht/types';
|
|
31
|
-
import {
|
|
35
|
+
import { ExternalAgentConnection } from '@wacht/types';
|
|
32
36
|
import { FastOmit } from 'styled-components';
|
|
33
37
|
import { FC } from 'react';
|
|
34
38
|
import { FileData } from '@wacht/types';
|
|
@@ -40,8 +44,6 @@ import { IStyledComponentBase } from 'styled-components/dist/types';
|
|
|
40
44
|
import { JSX } from 'react/jsx-runtime';
|
|
41
45
|
import { KeyedMutator } from 'swr';
|
|
42
46
|
import { LabelHTMLAttributes } from 'react';
|
|
43
|
-
import { ListContextsOptions } from '@wacht/types';
|
|
44
|
-
import { McpConnectResponse } from '@wacht/types';
|
|
45
47
|
import { NewDomain } from '@wacht/types';
|
|
46
48
|
import { NewOrgnization } from '@wacht/types';
|
|
47
49
|
import { Notification as Notification_2 } from '@wacht/types';
|
|
@@ -54,8 +56,14 @@ import { OrganizationMembership } from '@wacht/types';
|
|
|
54
56
|
import { OrganizationMembershipWithOrganization } from '@wacht/types';
|
|
55
57
|
import { OrganizationRole } from '@wacht/types';
|
|
56
58
|
import { OrganizationUpdate } from '@wacht/types';
|
|
59
|
+
import { PendingQuestion } from '@wacht/types';
|
|
57
60
|
import { ProfileCompletionData } from '@wacht/types';
|
|
58
61
|
import { ProfileCompletionProps } from '@wacht/types';
|
|
62
|
+
import { ProjectTaskBoardItem } from '@wacht/types';
|
|
63
|
+
import { ProjectTaskBoardItemAssignment } from '@wacht/types';
|
|
64
|
+
import { ProjectTaskBoardItemComment } from '@wacht/types';
|
|
65
|
+
import { ProjectTaskWorkspaceFileContent } from '@wacht/types';
|
|
66
|
+
import { ProjectTaskWorkspaceListing } from '@wacht/types';
|
|
59
67
|
import { ReactNode } from 'react';
|
|
60
68
|
import { RefAttributes } from 'react';
|
|
61
69
|
import { ReplayTaskListOptions } from '@wacht/types';
|
|
@@ -76,12 +84,17 @@ import { SigninAttempt } from '@wacht/types';
|
|
|
76
84
|
import { SignupAttempt } from '@wacht/types';
|
|
77
85
|
import { SignUpParams } from '@wacht/types';
|
|
78
86
|
import { SocialConnection } from '@wacht/types';
|
|
79
|
-
import { Substitute } from 'styled-components/dist/types';
|
|
80
87
|
import { TestEndpointOptions } from '@wacht/types';
|
|
81
88
|
import { TestEndpointResponse } 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,24 @@ 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
|
+
declare type AgentSearchOptions = {
|
|
154
|
+
enabled?: boolean;
|
|
155
|
+
query?: string;
|
|
156
|
+
limit?: number;
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
declare type AgentThreadHookOptions = {
|
|
160
|
+
enabled?: boolean;
|
|
161
|
+
limit?: number;
|
|
162
|
+
};
|
|
163
|
+
|
|
164
|
+
export declare function AuthFormImage({ placement, }: {
|
|
165
|
+
placement?: "center" | "left" | "right";
|
|
166
|
+
}): JSX.Element | null;
|
|
138
167
|
|
|
139
168
|
/**
|
|
140
169
|
* Check if user can manage the organization (admin or manage permissions)
|
|
@@ -155,6 +184,10 @@ declare const CONNECTION_STATES: {
|
|
|
155
184
|
readonly ERROR: "error";
|
|
156
185
|
};
|
|
157
186
|
|
|
187
|
+
declare interface ConnectResponse {
|
|
188
|
+
redirect_url: string;
|
|
189
|
+
}
|
|
190
|
+
|
|
158
191
|
export declare const CreateOrganizationForm: React.FC<CreateOrganizationFormProps>;
|
|
159
192
|
|
|
160
193
|
declare interface CreateOrganizationFormProps {
|
|
@@ -191,6 +224,10 @@ declare interface CreateWorkspaceFormProps {
|
|
|
191
224
|
onCreateOrganization?: () => void;
|
|
192
225
|
}
|
|
193
226
|
|
|
227
|
+
export declare function DefaultStylesProvider({ children, style, ...props }: DefaultStylesProviderProps): JSX.Element;
|
|
228
|
+
|
|
229
|
+
declare type DefaultStylesProviderProps = ComponentPropsWithoutRef<"div">;
|
|
230
|
+
|
|
194
231
|
export declare interface DeploymentContextType {
|
|
195
232
|
loading: boolean;
|
|
196
233
|
deployment: Deployment | null;
|
|
@@ -214,13 +251,13 @@ export declare interface DeploymentInvitationData {
|
|
|
214
251
|
error_code?: string;
|
|
215
252
|
}
|
|
216
253
|
|
|
217
|
-
export declare function DeploymentProvider({ children, publicKey, adapter,
|
|
254
|
+
export declare function DeploymentProvider({ children, publicKey, adapter, uiOverrides, }: DeploymentProviderProps): JSX.Element;
|
|
218
255
|
|
|
219
256
|
declare interface DeploymentProviderProps {
|
|
220
257
|
children: ReactNode;
|
|
221
258
|
publicKey: string;
|
|
222
259
|
adapter: PlatformAdapter;
|
|
223
|
-
|
|
260
|
+
uiOverrides?: Partial<DeploymentUISettings>;
|
|
224
261
|
}
|
|
225
262
|
|
|
226
263
|
export declare const Dialog: FC<DialogProps> & {
|
|
@@ -274,11 +311,13 @@ declare interface DialogTriggerProps {
|
|
|
274
311
|
|
|
275
312
|
export declare const Dropdown: ({ children, open, openChange, style, }: DropdownProps) => JSX.Element;
|
|
276
313
|
|
|
277
|
-
export declare const DropdownDivider: IStyledComponentBase<"web", FastOmit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never
|
|
314
|
+
export declare const DropdownDivider: IStyledComponentBase<"web", FastOmit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
|
|
278
315
|
|
|
279
|
-
export declare const DropdownItem: IStyledComponentBase<"web",
|
|
316
|
+
export declare const DropdownItem: IStyledComponentBase<"web", FastOmit<FastOmit<DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "$destructive"> & {
|
|
317
|
+
$destructive?: boolean;
|
|
318
|
+
}, never> & Partial<Pick<FastOmit<DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "$destructive"> & {
|
|
280
319
|
$destructive?: boolean;
|
|
281
|
-
}
|
|
320
|
+
}, never>>> & string;
|
|
282
321
|
|
|
283
322
|
export declare const DropdownItems: ({ children, style, }: {
|
|
284
323
|
children: ReactNode;
|
|
@@ -310,9 +349,9 @@ declare type EmailSignInParams = {
|
|
|
310
349
|
password: string;
|
|
311
350
|
};
|
|
312
351
|
|
|
313
|
-
export declare const Form: IStyledComponentBase<"web", FastOmit<DetailedHTMLProps<FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, never
|
|
352
|
+
export declare const Form: IStyledComponentBase<"web", FastOmit<DetailedHTMLProps<FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, never> & Partial<Pick<DetailedHTMLProps<FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, never>>> & string;
|
|
314
353
|
|
|
315
|
-
export declare const FormGroup: IStyledComponentBase<"web", FastOmit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never
|
|
354
|
+
export declare const FormGroup: IStyledComponentBase<"web", FastOmit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
|
|
316
355
|
|
|
317
356
|
/**
|
|
318
357
|
* Unified execution status mapping between frontend and backend
|
|
@@ -326,7 +365,7 @@ declare const FRONTEND_STATUS: {
|
|
|
326
365
|
readonly FAILED: "failed";
|
|
327
366
|
};
|
|
328
367
|
|
|
329
|
-
declare type FrontendStatus = typeof FRONTEND_STATUS[keyof typeof FRONTEND_STATUS];
|
|
368
|
+
declare type FrontendStatus = (typeof FRONTEND_STATUS)[keyof typeof FRONTEND_STATUS];
|
|
330
369
|
|
|
331
370
|
declare type GenericSignInParams = {
|
|
332
371
|
email?: string;
|
|
@@ -348,7 +387,7 @@ export declare function hasOrgPermission(membership: WithOrgRoles, requiredPermi
|
|
|
348
387
|
*/
|
|
349
388
|
export declare function hasWorkspacePermission(membership: WithWsRoles, requiredPermissions: string[]): boolean;
|
|
350
389
|
|
|
351
|
-
|
|
390
|
+
declare interface IdentifyResult {
|
|
352
391
|
strategy: "sso" | "social" | "password";
|
|
353
392
|
connection_id?: string;
|
|
354
393
|
idp_url?: string;
|
|
@@ -360,7 +399,7 @@ declare type InitSSOResponseType = {
|
|
|
360
399
|
session: Session;
|
|
361
400
|
};
|
|
362
401
|
|
|
363
|
-
export declare const Input: IStyledComponentBase<"web", FastOmit<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, never
|
|
402
|
+
export declare const Input: IStyledComponentBase<"web", FastOmit<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, never> & Partial<Pick<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, never>>> & string;
|
|
364
403
|
|
|
365
404
|
export declare const isExternalUrl: (url: string) => boolean;
|
|
366
405
|
|
|
@@ -376,9 +415,9 @@ export declare const isSafeUrl: (url: string) => boolean;
|
|
|
376
415
|
*/
|
|
377
416
|
export declare function isWorkspaceAdmin(membership: WithWsRoles): boolean;
|
|
378
417
|
|
|
379
|
-
export declare const Label: IStyledComponentBase<"web", FastOmit<DetailedHTMLProps<LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, never
|
|
418
|
+
export declare const Label: IStyledComponentBase<"web", FastOmit<DetailedHTMLProps<LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, never> & Partial<Pick<DetailedHTMLProps<LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, never>>> & string;
|
|
380
419
|
|
|
381
|
-
|
|
420
|
+
declare interface MagicLinkParams {
|
|
382
421
|
token?: string;
|
|
383
422
|
attempt?: string;
|
|
384
423
|
redirectUri?: string;
|
|
@@ -538,7 +577,7 @@ export declare const ORG_ADMIN_PERMISSIONS: string[];
|
|
|
538
577
|
|
|
539
578
|
export declare const ORG_MANAGEMENT_PERMISSIONS: string[];
|
|
540
579
|
|
|
541
|
-
export declare const OrganizationSwitcher: ({ showPersonal
|
|
580
|
+
export declare const OrganizationSwitcher: ({ showPersonal }: OrganizationSwitcherProps) => JSX.Element | null;
|
|
542
581
|
|
|
543
582
|
declare interface OrganizationSwitcherProps {
|
|
544
583
|
showPersonal?: boolean;
|
|
@@ -626,6 +665,17 @@ declare interface ProfileUpdateData {
|
|
|
626
665
|
remove_profile_picture?: boolean;
|
|
627
666
|
}
|
|
628
667
|
|
|
668
|
+
declare type ProjectTaskDetailOptions = {
|
|
669
|
+
includeArchived?: boolean;
|
|
670
|
+
};
|
|
671
|
+
|
|
672
|
+
declare type ProjectTaskListOptions = {
|
|
673
|
+
statuses?: string[];
|
|
674
|
+
includeArchived?: boolean;
|
|
675
|
+
archivedOnly?: boolean;
|
|
676
|
+
limit?: number;
|
|
677
|
+
};
|
|
678
|
+
|
|
629
679
|
export declare function redirectToProfileCompletion(returnUrl?: string): void;
|
|
630
680
|
|
|
631
681
|
export declare const RequireActiveTenancy: ({ children, }: RequireActiveTenancyProps) => JSX.Element | null;
|
|
@@ -638,7 +688,7 @@ declare type SecondFactorPolicy_2 = "none" | "optional" | "enforced";
|
|
|
638
688
|
|
|
639
689
|
export declare const SignedIn: ({ children }: SignedInProps) => JSX.Element | null;
|
|
640
690
|
|
|
641
|
-
export declare const SignedInAccounts:
|
|
691
|
+
export declare const SignedInAccounts: default_2.FC<SignedInAccountsProps>;
|
|
642
692
|
|
|
643
693
|
declare interface SignedInAccountsProps {
|
|
644
694
|
onAccountSelect?: (signInId: string) => void;
|
|
@@ -671,17 +721,6 @@ declare type SignInEmailOTP = ({ email, }: EmailOTPSignInParams) => Promise<ApiR
|
|
|
671
721
|
|
|
672
722
|
export declare function SignInForm(): JSX.Element;
|
|
673
723
|
|
|
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
724
|
declare type SignInGeneric = ({ email, username, password, phone, strategy, }: GenericSignInParams) => Promise<ApiResult<Session>>;
|
|
686
725
|
|
|
687
726
|
declare type SignInMagicLink = ({ email, }: MagicLinkSignInParams) => Promise<ApiResult<Session>>;
|
|
@@ -699,8 +738,6 @@ declare type SignInPlainEmail = ({ email, password, }: EmailSignInParams) => Pro
|
|
|
699
738
|
|
|
700
739
|
declare type SignInPlainUsername = ({ username, password, }: UsernameSignInParams) => Promise<ApiResult<Session>>;
|
|
701
740
|
|
|
702
|
-
declare type SignInStrategy = "username" | "email" | "phone" | "email_otp" | "magic_link" | "oauth" | "passkey" | "generic";
|
|
703
|
-
|
|
704
741
|
declare type SignupEmailOTPVerificationParams = {
|
|
705
742
|
strategy: "email_otp";
|
|
706
743
|
redirectUri?: string;
|
|
@@ -709,7 +746,7 @@ declare type SignupEmailOTPVerificationParams = {
|
|
|
709
746
|
export declare function SignUpForm(): JSX.Element;
|
|
710
747
|
|
|
711
748
|
export declare type SignUpFunction = {
|
|
712
|
-
create: (params: SignUpParams) => Promise<ApiResult<unknown
|
|
749
|
+
create: (params: SignUpParams) => Promise<ApiResult<unknown>>;
|
|
713
750
|
prepareVerification: (params: SignupVerificationParams) => Promise<ApiResult<PrepareVerificationResponse_2>>;
|
|
714
751
|
completeVerification: (verificationCode: string) => Promise<ApiResult<Session>>;
|
|
715
752
|
validateDeploymentInvitation: (token: string) => Promise<DeploymentInvitationData>;
|
|
@@ -875,8 +912,8 @@ export declare const useActiveOrganization: () => {
|
|
|
875
912
|
|
|
876
913
|
export declare function useActiveTenancy(): {
|
|
877
914
|
loading: boolean;
|
|
878
|
-
orgMembership: OrganizationMembershipWithOrganization | null
|
|
879
|
-
workspaceMembership: WorkspaceMembership | null
|
|
915
|
+
orgMembership: OrganizationMembershipWithOrganization | null;
|
|
916
|
+
workspaceMembership: WorkspaceMembership | null;
|
|
880
917
|
};
|
|
881
918
|
|
|
882
919
|
export declare const useActiveWorkspace: () => {
|
|
@@ -915,22 +952,110 @@ export declare const useActiveWorkspace: () => {
|
|
|
915
952
|
resendInvitation: (invitationId: string) => Promise<unknown>;
|
|
916
953
|
};
|
|
917
954
|
|
|
918
|
-
export declare function
|
|
955
|
+
export declare function useActorMcpServers(enabled?: boolean): {
|
|
956
|
+
servers: ActorMcpServerSummary[];
|
|
957
|
+
loading: boolean;
|
|
958
|
+
error: any;
|
|
959
|
+
connect: (mcpServerId: string) => Promise<ApiResult<ActorMcpServerConnectResponse>>;
|
|
960
|
+
disconnect: (mcpServerId: string) => Promise<ApiResult< {
|
|
961
|
+
success: boolean;
|
|
962
|
+
}>>;
|
|
963
|
+
refetch: () => Promise<void>;
|
|
964
|
+
};
|
|
965
|
+
|
|
966
|
+
export declare function useActorProjects(options?: {
|
|
967
|
+
includeArchived?: boolean;
|
|
968
|
+
enabled?: boolean;
|
|
969
|
+
}): {
|
|
970
|
+
projects: ActorProject[];
|
|
971
|
+
loading: boolean;
|
|
972
|
+
error: any;
|
|
973
|
+
createProject: (request: CreateActorProjectRequest) => Promise<ApiResult<ActorProject>>;
|
|
974
|
+
updateProject: (projectId: string, request: UpdateActorProjectRequest) => Promise<ApiResult<ActorProject>>;
|
|
975
|
+
archiveProject: (projectId: string) => Promise<ApiResult<ActorProject>>;
|
|
976
|
+
unarchiveProject: (projectId: string) => Promise<ApiResult<ActorProject>>;
|
|
977
|
+
refetch: () => Promise<void>;
|
|
978
|
+
};
|
|
979
|
+
|
|
980
|
+
export declare function useActorProjectSearch(options?: AgentSearchOptions): {
|
|
981
|
+
projects: ActorProject[];
|
|
982
|
+
loading: boolean;
|
|
983
|
+
error: any;
|
|
984
|
+
hasMore: boolean;
|
|
985
|
+
nextCursor: string | undefined;
|
|
986
|
+
refetch: () => Promise<void>;
|
|
987
|
+
};
|
|
988
|
+
|
|
989
|
+
export declare function useActorThreadSearch(options?: AgentSearchOptions): {
|
|
990
|
+
threads: AgentThread[];
|
|
991
|
+
loading: boolean;
|
|
992
|
+
error: any;
|
|
993
|
+
hasMore: boolean;
|
|
994
|
+
nextCursor: string | undefined;
|
|
995
|
+
refetch: () => Promise<void>;
|
|
996
|
+
};
|
|
997
|
+
|
|
998
|
+
export declare function useAgentSession(ticket?: string | null): UseAgentSessionResult;
|
|
999
|
+
|
|
1000
|
+
declare interface UseAgentSessionResult {
|
|
1001
|
+
hasSession: boolean;
|
|
1002
|
+
sessionLoading: boolean;
|
|
1003
|
+
sessionError: Error | null;
|
|
1004
|
+
sessionId: string | null;
|
|
1005
|
+
actor: Actor | null;
|
|
1006
|
+
agents: Agent[];
|
|
1007
|
+
ticketExchanged: boolean;
|
|
1008
|
+
ticketLoading: boolean;
|
|
1009
|
+
refetch: () => Promise<void>;
|
|
1010
|
+
}
|
|
1011
|
+
|
|
1012
|
+
export declare function useAgentThread(threadId?: string, enabled?: boolean): {
|
|
1013
|
+
thread: AgentThread | null;
|
|
1014
|
+
loading: boolean;
|
|
1015
|
+
error: any;
|
|
1016
|
+
updateThread: (request: UpdateAgentThreadRequest) => Promise<ApiResult<AgentThread>>;
|
|
1017
|
+
archiveThread: () => Promise<ApiResult<AgentThread>>;
|
|
1018
|
+
unarchiveThread: () => Promise<ApiResult<AgentThread>>;
|
|
1019
|
+
submitAnswer: (submission: AnswerSubmission) => Promise<void>;
|
|
1020
|
+
refetch: () => Promise<void>;
|
|
1021
|
+
};
|
|
1022
|
+
|
|
1023
|
+
export declare function useAgentThreadAssignments(threadId?: string, options?: AgentThreadHookOptions): {
|
|
1024
|
+
assignments: ProjectTaskBoardItemAssignment[];
|
|
1025
|
+
loading: boolean;
|
|
1026
|
+
error: any;
|
|
1027
|
+
hasMore: boolean;
|
|
1028
|
+
loadingMore: boolean;
|
|
1029
|
+
loadMore: () => Promise<void>;
|
|
1030
|
+
refetch: () => Promise<void>;
|
|
1031
|
+
};
|
|
1032
|
+
|
|
1033
|
+
export declare function useAgentThreadConversation({ threadId, initialThread, platformAdapter, }: UseAgentThreadConversationProps): {
|
|
1034
|
+
thread: AgentThread | null;
|
|
1035
|
+
threadState: AgentThread | null;
|
|
1036
|
+
threadStatus: string | undefined;
|
|
919
1037
|
messages: ConversationMessage[];
|
|
920
|
-
quickQuestions: string[];
|
|
921
1038
|
pendingMessage: string | null;
|
|
922
1039
|
pendingFiles: File[] | null;
|
|
923
1040
|
connectionState: {
|
|
924
1041
|
status: (typeof CONNECTION_STATES)[keyof typeof CONNECTION_STATES];
|
|
925
1042
|
};
|
|
926
1043
|
isConnected: boolean;
|
|
927
|
-
|
|
1044
|
+
hasActiveRun: boolean;
|
|
1045
|
+
isRunning: boolean;
|
|
928
1046
|
executionStatus: FrontendStatus;
|
|
929
1047
|
isWaitingForInput: boolean;
|
|
1048
|
+
pendingApprovalRequest: ThreadPendingApprovalRequestState | null;
|
|
1049
|
+
pendingClarificationRequest: PendingQuestion | null;
|
|
930
1050
|
hasMoreMessages: boolean;
|
|
931
1051
|
isLoadingMore: boolean;
|
|
1052
|
+
messagesLoading: boolean;
|
|
1053
|
+
messagesError: Error | null;
|
|
1054
|
+
refreshThread: () => Promise<void>;
|
|
1055
|
+
refreshMessages: () => Promise<void>;
|
|
932
1056
|
sendMessage: (message: string, files?: File[]) => Promise<void>;
|
|
933
|
-
|
|
1057
|
+
submitApprovalResponse: (requestMessageId: string, approvals: ToolApprovalDecision[]) => Promise<boolean>;
|
|
1058
|
+
submitAnswer: (submission: AnswerSubmission) => Promise<boolean>;
|
|
934
1059
|
clearMessages: () => void;
|
|
935
1060
|
loadMoreMessages: () => Promise<void>;
|
|
936
1061
|
cancelExecution: () => Promise<void>;
|
|
@@ -938,73 +1063,36 @@ export declare function useAgentContext({ contextId, agentName, platformAdapter,
|
|
|
938
1063
|
downloadMessageFile: (file: FileData | null | undefined) => void;
|
|
939
1064
|
};
|
|
940
1065
|
|
|
941
|
-
declare interface
|
|
942
|
-
|
|
943
|
-
|
|
1066
|
+
declare interface UseAgentThreadConversationProps {
|
|
1067
|
+
threadId: string;
|
|
1068
|
+
initialThread?: AgentThread | null;
|
|
944
1069
|
platformAdapter?: {
|
|
945
1070
|
onPlatformEvent?: (eventName: string, eventData: unknown) => void;
|
|
946
|
-
onPlatformFunction?: (functionName: string, parameters: unknown, executionId: string) => Promise<unknown>;
|
|
947
1071
|
};
|
|
948
|
-
onUserInputRequest?: (request: UserInputRequestContent) => Promise<string>;
|
|
949
1072
|
}
|
|
950
1073
|
|
|
951
|
-
export declare function
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
loading: boolean;
|
|
960
|
-
error: Error | null;
|
|
961
|
-
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>;
|
|
967
|
-
refetch: () => Promise<void>;
|
|
968
|
-
};
|
|
969
|
-
|
|
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>;
|
|
1074
|
+
export declare function useAgentThreadFilesystem(threadId?: string, enabled?: boolean): {
|
|
1075
|
+
filesystem: ProjectTaskWorkspaceListing;
|
|
1076
|
+
filesystemLoading: boolean;
|
|
1077
|
+
filesystemError: any;
|
|
1078
|
+
getFile: (path: string) => Promise<ProjectTaskWorkspaceFileContent & {
|
|
1079
|
+
blob: Blob;
|
|
1080
|
+
}>;
|
|
1081
|
+
listDirectory: (path?: string) => Promise<ProjectTaskWorkspaceListing>;
|
|
978
1082
|
refetch: () => Promise<void>;
|
|
979
1083
|
};
|
|
980
1084
|
|
|
981
|
-
export declare function
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
1085
|
+
export declare function useAgentThreadTaskGraphs(threadId?: string, enabled?: boolean): {
|
|
1086
|
+
graphs: ThreadTaskGraphBundle[];
|
|
1087
|
+
latestGraph: ThreadTaskGraphBundle;
|
|
1088
|
+
has_more: boolean;
|
|
1089
|
+
loadingMore: boolean;
|
|
985
1090
|
loading: boolean;
|
|
986
|
-
error:
|
|
987
|
-
|
|
988
|
-
disconnect: (mcpServerId: string) => Promise<void>;
|
|
1091
|
+
error: any;
|
|
1092
|
+
loadMore: () => Promise<void>;
|
|
989
1093
|
refetch: () => Promise<void>;
|
|
990
1094
|
};
|
|
991
1095
|
|
|
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
1096
|
export declare function useApiAuthAppSession(ticket?: string | null): UseApiAuthAppSessionResult;
|
|
1009
1097
|
|
|
1010
1098
|
declare interface UseApiAuthAppSessionResult {
|
|
@@ -1053,9 +1141,9 @@ export declare function useApiAuthKeys(filters?: UseApiAuthKeysFilters): UseApiA
|
|
|
1053
1141
|
|
|
1054
1142
|
declare interface UseApiAuthKeysReturn {
|
|
1055
1143
|
keys: ApiKey[];
|
|
1056
|
-
createKey: (input: CreateApiAuthKeyInput) => Promise<ApiKeyWithSecret
|
|
1057
|
-
rotateKey: (input: RotateApiAuthKeyInput) => Promise<ApiKeyWithSecret
|
|
1058
|
-
revokeKey: (input: RevokeApiAuthKeyInput) => Promise<void
|
|
1144
|
+
createKey: (input: CreateApiAuthKeyInput) => Promise<ApiResult<ApiKeyWithSecret>>;
|
|
1145
|
+
rotateKey: (input: RotateApiAuthKeyInput) => Promise<ApiResult<ApiKeyWithSecret>>;
|
|
1146
|
+
revokeKey: (input: RevokeApiAuthKeyInput) => Promise<ApiResult<void>>;
|
|
1059
1147
|
loading: boolean;
|
|
1060
1148
|
error: unknown;
|
|
1061
1149
|
refetch: () => void;
|
|
@@ -1071,20 +1159,33 @@ declare type UseClientReturnType = {
|
|
|
1071
1159
|
export declare function useCreateWebhookEndpoint(): UseCreateWebhookEndpointReturn;
|
|
1072
1160
|
|
|
1073
1161
|
declare interface UseCreateWebhookEndpointReturn {
|
|
1074
|
-
createEndpoint: (options: CreateEndpointOptions) => Promise<EndpointWithSubscriptions
|
|
1162
|
+
createEndpoint: (options: CreateEndpointOptions) => Promise<ApiResult<EndpointWithSubscriptions>>;
|
|
1075
1163
|
loading: boolean;
|
|
1076
1164
|
error: unknown;
|
|
1077
1165
|
}
|
|
1078
1166
|
|
|
1079
1167
|
export declare function useDeployment(): DeploymentContextType;
|
|
1080
1168
|
|
|
1169
|
+
export declare function useExternalAgentConnections(enabled?: boolean): {
|
|
1170
|
+
connections: ExternalAgentConnection[];
|
|
1171
|
+
loading: boolean;
|
|
1172
|
+
error: any;
|
|
1173
|
+
connect: (provider: string, slug: string, options?: {
|
|
1174
|
+
returnUrl?: string;
|
|
1175
|
+
}) => Promise<ConnectResponse>;
|
|
1176
|
+
disconnect: (provider: string, slug: string) => Promise<{
|
|
1177
|
+
success: boolean;
|
|
1178
|
+
}>;
|
|
1179
|
+
refetch: () => Promise<void>;
|
|
1180
|
+
};
|
|
1181
|
+
|
|
1081
1182
|
export declare function useForgotPassword(): {
|
|
1082
1183
|
loading: boolean;
|
|
1083
|
-
forgotPassword: (email: string) => Promise<ApiResult<{}
|
|
1184
|
+
forgotPassword: (email: string) => Promise<ApiResult<{}>>;
|
|
1084
1185
|
verifyOtp: (email: string, otp: string) => Promise<ApiResult<{
|
|
1085
1186
|
token: string;
|
|
1086
|
-
}
|
|
1087
|
-
resetPassword: (token: string, password: string) => Promise<ApiResult<Session
|
|
1187
|
+
}>>;
|
|
1188
|
+
resetPassword: (token: string, password: string) => Promise<ApiResult<Session>>;
|
|
1088
1189
|
};
|
|
1089
1190
|
|
|
1090
1191
|
export declare const useInvitation: () => {
|
|
@@ -1095,13 +1196,11 @@ export declare const useInvitation: () => {
|
|
|
1095
1196
|
reset: () => void;
|
|
1096
1197
|
};
|
|
1097
1198
|
|
|
1098
|
-
export declare function useMagicLinkParams(): MagicLinkParams;
|
|
1099
|
-
|
|
1100
1199
|
export declare function useMagicLinkVerification(): UseMagicLinkVerificationReturnType;
|
|
1101
1200
|
|
|
1102
|
-
|
|
1201
|
+
declare interface UseMagicLinkVerificationReturnType {
|
|
1103
1202
|
loading: boolean;
|
|
1104
|
-
verifyMagicLink: (params: MagicLinkParams) => Promise<ApiResult<{}
|
|
1203
|
+
verifyMagicLink: (params: MagicLinkParams) => Promise<ApiResult<{}>>;
|
|
1105
1204
|
success: boolean | null;
|
|
1106
1205
|
}
|
|
1107
1206
|
|
|
@@ -1164,6 +1263,8 @@ export declare interface UseNotificationStreamOptions {
|
|
|
1164
1263
|
maxReconnectAttempts?: number;
|
|
1165
1264
|
}
|
|
1166
1265
|
|
|
1266
|
+
export declare function useNotificationUnreadCount(params?: NotificationListParams): UseScopeUnreadReturnType;
|
|
1267
|
+
|
|
1167
1268
|
export declare const useOrganizationList: () => {
|
|
1168
1269
|
organizations: Organization[] | undefined;
|
|
1169
1270
|
loading: boolean;
|
|
@@ -1231,10 +1332,93 @@ export declare const useOrganizationMemberships: () => {
|
|
|
1231
1332
|
refetch: () => Promise<void>;
|
|
1232
1333
|
};
|
|
1233
1334
|
|
|
1335
|
+
export declare function useProjectTaskBoardItem(projectId?: string, itemId?: string, enabled?: boolean, options?: ProjectTaskDetailOptions): {
|
|
1336
|
+
item: ProjectTaskBoardItem | null;
|
|
1337
|
+
assignments: ProjectTaskBoardItemAssignment[];
|
|
1338
|
+
assignmentsHasMore: boolean;
|
|
1339
|
+
assignmentsLoadingMore: boolean;
|
|
1340
|
+
loadMoreAssignments: () => Promise<void>;
|
|
1341
|
+
taskWorkspace: ProjectTaskWorkspaceListing;
|
|
1342
|
+
taskWorkspaceLoading: boolean;
|
|
1343
|
+
taskWorkspaceError: any;
|
|
1344
|
+
loading: boolean;
|
|
1345
|
+
error: any;
|
|
1346
|
+
updateItem: (request: UpdateProjectTaskBoardItemRequest, files?: File[]) => Promise<ApiResult<ProjectTaskBoardItem>>;
|
|
1347
|
+
archiveItem: () => Promise<ApiResult<ProjectTaskBoardItem>>;
|
|
1348
|
+
unarchiveItem: () => Promise<ApiResult<ProjectTaskBoardItem>>;
|
|
1349
|
+
cancelItem: () => Promise<ApiResult<ProjectTaskBoardItem>>;
|
|
1350
|
+
submitAnswer: (submission: AnswerSubmission) => Promise<ApiResult<ProjectTaskBoardItem>>;
|
|
1351
|
+
submitApproval: (approvals: ToolApprovalDecision[]) => Promise<boolean>;
|
|
1352
|
+
getTaskWorkspaceFile: (path: string) => Promise<ApiResult<ProjectTaskWorkspaceFileContent>>;
|
|
1353
|
+
listTaskWorkspaceDirectory: (path?: string) => Promise<ApiResult<ProjectTaskWorkspaceListing>>;
|
|
1354
|
+
refetch: () => Promise<void>;
|
|
1355
|
+
refetchAssignments: () => Promise<void>;
|
|
1356
|
+
refetchTaskWorkspace: () => Promise<void>;
|
|
1357
|
+
};
|
|
1358
|
+
|
|
1359
|
+
export declare function useProjectTaskBoardItemComments(projectId?: string, itemId?: string, enabled?: boolean): {
|
|
1360
|
+
comments: ProjectTaskBoardItemComment[];
|
|
1361
|
+
loading: boolean;
|
|
1362
|
+
error: any;
|
|
1363
|
+
createComment: (body: string, files?: File[]) => Promise<ApiResult<ProjectTaskBoardItemComment>>;
|
|
1364
|
+
refetch: () => Promise<void>;
|
|
1365
|
+
};
|
|
1366
|
+
|
|
1367
|
+
export declare function useProjectTasks(projectId?: string, enabled?: boolean, options?: ProjectTaskListOptions): {
|
|
1368
|
+
tasks: ProjectTaskBoardItem[];
|
|
1369
|
+
loading: boolean;
|
|
1370
|
+
error: any;
|
|
1371
|
+
hasMore: boolean;
|
|
1372
|
+
loadingMore: boolean;
|
|
1373
|
+
loadMore: () => Promise<void>;
|
|
1374
|
+
createTask: (request: CreateProjectTaskBoardItemRequest, files?: File[]) => Promise<ApiResult<ProjectTaskBoardItem>>;
|
|
1375
|
+
archiveTask: (itemId: string) => Promise<ApiResult<ProjectTaskBoardItem>>;
|
|
1376
|
+
unarchiveTask: (itemId: string) => Promise<ApiResult<ProjectTaskBoardItem>>;
|
|
1377
|
+
refetch: () => Promise<void>;
|
|
1378
|
+
};
|
|
1379
|
+
|
|
1380
|
+
export declare function useProjectThreadFeed(projectId?: string, options?: {
|
|
1381
|
+
includeArchived?: boolean;
|
|
1382
|
+
archivedOnly?: boolean;
|
|
1383
|
+
enabled?: boolean;
|
|
1384
|
+
query?: string;
|
|
1385
|
+
limit?: number;
|
|
1386
|
+
}): {
|
|
1387
|
+
threads: AgentThread[];
|
|
1388
|
+
loading: boolean;
|
|
1389
|
+
error: any;
|
|
1390
|
+
hasMore: boolean;
|
|
1391
|
+
loadingMore: boolean;
|
|
1392
|
+
loadMore: () => Promise<void>;
|
|
1393
|
+
refetch: () => Promise<void>;
|
|
1394
|
+
};
|
|
1395
|
+
|
|
1396
|
+
export declare function useProjectThreads(projectId?: string, options?: {
|
|
1397
|
+
includeArchived?: boolean;
|
|
1398
|
+
enabled?: boolean;
|
|
1399
|
+
}): {
|
|
1400
|
+
threads: AgentThread[];
|
|
1401
|
+
loading: boolean;
|
|
1402
|
+
error: any;
|
|
1403
|
+
hasMore: boolean;
|
|
1404
|
+
nextCursor: string;
|
|
1405
|
+
createThread: (request: CreateAgentThreadRequest) => Promise<ApiResult<AgentThread>>;
|
|
1406
|
+
createThreadForProject: (targetProjectId: string, request: CreateAgentThreadRequest) => Promise<ApiResult<AgentThread>>;
|
|
1407
|
+
updateThread: (threadId: string, request: UpdateAgentThreadRequest) => Promise<ApiResult<AgentThread>>;
|
|
1408
|
+
archiveThread: (threadId: string) => Promise<ApiResult<AgentThread>>;
|
|
1409
|
+
unarchiveThread: (threadId: string) => Promise<ApiResult<AgentThread>>;
|
|
1410
|
+
refetch: () => Promise<void>;
|
|
1411
|
+
};
|
|
1412
|
+
|
|
1234
1413
|
export declare const UserButton: default_2.FC<UserButtonProps>;
|
|
1235
1414
|
|
|
1236
1415
|
declare interface UserButtonProps {
|
|
1237
1416
|
showName?: boolean;
|
|
1417
|
+
onCreateOrg?: () => void;
|
|
1418
|
+
/** Show the org/workspace chip row and side panel. Defaults to true. */
|
|
1419
|
+
showOrgSwitcher?: boolean;
|
|
1420
|
+
/** Viewport width threshold (px) below which the side panel replaces the main dropdown. Defaults to 640. */
|
|
1421
|
+
narrowBreakpoint?: number;
|
|
1238
1422
|
}
|
|
1239
1423
|
|
|
1240
1424
|
export declare const UserControls: default_2.FC<UserControlsProps>;
|
|
@@ -1249,8 +1433,6 @@ declare type UsernameSignInParams = {
|
|
|
1249
1433
|
password: string;
|
|
1250
1434
|
};
|
|
1251
1435
|
|
|
1252
|
-
export declare function useScopeUnread(params?: NotificationListParams): UseScopeUnreadReturnType;
|
|
1253
|
-
|
|
1254
1436
|
declare type UseScopeUnreadReturnType = {
|
|
1255
1437
|
loading: true;
|
|
1256
1438
|
count: number;
|
|
@@ -1305,32 +1487,6 @@ declare type UseSignInReturnType = {
|
|
|
1305
1487
|
setSignInAttempt: (attempt: SigninAttempt | null) => void;
|
|
1306
1488
|
};
|
|
1307
1489
|
|
|
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
1490
|
export declare function useSignUp(): UseSignUpReturnType;
|
|
1335
1491
|
|
|
1336
1492
|
export declare type UseSignUpReturnType = {
|
|
@@ -1427,7 +1583,7 @@ export declare function useUserSignins(): {
|
|
|
1427
1583
|
|
|
1428
1584
|
export declare function useWaitlist(): {
|
|
1429
1585
|
loading: boolean;
|
|
1430
|
-
joinWaitlist: (params: WaitlistParams) => Promise<ApiResult<WaitlistResponse
|
|
1586
|
+
joinWaitlist: (params: WaitlistParams) => Promise<ApiResult<WaitlistResponse>>;
|
|
1431
1587
|
};
|
|
1432
1588
|
|
|
1433
1589
|
export declare function useWebhookAnalytics(options?: UseWebhookAnalyticsOptions): UseWebhookAnalyticsReturn;
|
|
@@ -1450,17 +1606,17 @@ declare interface UseWebhookAppSessionResult {
|
|
|
1450
1606
|
ticketExchanged: boolean;
|
|
1451
1607
|
ticketLoading: boolean;
|
|
1452
1608
|
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[]
|
|
1609
|
+
createEndpoint: (options: CreateEndpointOptions) => Promise<ApiResult<EndpointWithSubscriptions>>;
|
|
1610
|
+
updateEndpoint: (endpointId: string, options: UpdateEndpointOptions) => Promise<ApiResult<EndpointWithSubscriptions>>;
|
|
1611
|
+
deleteEndpoint: (endpointId: string) => Promise<ApiResult<DeleteEndpointResponse>>;
|
|
1612
|
+
testEndpoint: (endpointId: string, options: TestEndpointOptions) => Promise<ApiResult<TestEndpointResponse>>;
|
|
1613
|
+
rotateSecret: () => Promise<ApiResult<WebhookAppInfo>>;
|
|
1614
|
+
updateSettings: (options: UpdateWebhookSettingsOptions) => Promise<ApiResult<WebhookSettingsResponse>>;
|
|
1615
|
+
replayDelivery: (options: ReplayWebhookDeliveryOptions) => Promise<ApiResult<ReplayWebhookDeliveryResponse>>;
|
|
1616
|
+
fetchReplayTaskStatus: (options: ReplayTaskStatusOptions) => Promise<ApiResult<ReplayTaskStatusResponse>>;
|
|
1617
|
+
fetchReplayTasks: (options?: ReplayTaskListOptions) => Promise<ApiResult<ReplayTaskListResponse>>;
|
|
1618
|
+
cancelReplayTask: (options: CancelReplayTaskOptions) => Promise<ApiResult<CancelReplayTaskResponse>>;
|
|
1619
|
+
fetchDeliveryDetail: (deliveryId: string) => Promise<ApiResult<WebhookDeliveryDetail[]>>;
|
|
1464
1620
|
}
|
|
1465
1621
|
|
|
1466
1622
|
export declare function useWebhookDeliveries(options?: UseWebhookDeliveriesOptions): {
|
|
@@ -1506,7 +1662,7 @@ export declare const useWorkspaceList: () => {
|
|
|
1506
1662
|
loading: boolean;
|
|
1507
1663
|
error: any;
|
|
1508
1664
|
refetch: () => Promise<void>;
|
|
1509
|
-
leaveWorkspace: (id: string
|
|
1665
|
+
leaveWorkspace: (id: string) => Promise<void>;
|
|
1510
1666
|
createWorkspace: (organizationId: string, name: string, image?: File, description?: string) => Promise<{
|
|
1511
1667
|
workspace: Workspace;
|
|
1512
1668
|
membership: WorkspaceMembership;
|