@wacht/jsx 1.0.0-beta.6 → 1.0.0-beta.61

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,9 @@
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 { 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';
@@ -14,35 +16,31 @@ import { CancelReplayTaskOptions } from '@wacht/types';
14
16
  import { CancelReplayTaskResponse } from '@wacht/types';
15
17
  import { Client } from '@wacht/types';
16
18
  import { ComponentPropsWithoutRef } from 'react';
17
- import { ConsentURLResponse } from '@wacht/types';
18
19
  import { ConversationMessage } from '@wacht/types';
20
+ import { CreateActorProjectRequest } from '@wacht/types';
21
+ import { CreateAgentThreadRequest } from '@wacht/types';
19
22
  import { CreateApiAuthKeyInput } from '@wacht/types';
20
- import { CreateContextRequest } from '@wacht/types';
21
23
  import { CreateEndpointOptions } from '@wacht/types';
22
24
  import { CreateEnterpriseConnectionPayload } from '@wacht/types';
25
+ import { CreateProjectTaskBoardItemRequest } from '@wacht/types';
23
26
  import { CSSProperties } from 'react';
24
27
  import { CurrentUser } from '@wacht/types';
25
28
  import { default as default_2 } from 'react';
26
29
  import { DeleteEndpointResponse } from '@wacht/types';
27
30
  import { Deployment } from '@wacht/types';
28
31
  import { DeploymentUISettings } from '@wacht/types';
29
- import { DetailedHTMLProps } from 'react';
30
32
  import { EndpointWithSubscriptions } from '@wacht/types';
31
33
  import { EnterpriseConnection } from '@wacht/types';
32
- import { ErrorInterface } from '@wacht/types';
33
- import { FastOmit } from 'styled-components';
34
+ import { ExternalAgentConnection } from '@wacht/types';
34
35
  import { FC } from 'react';
35
36
  import { FileData } from '@wacht/types';
36
37
  import { FormHTMLAttributes } from 'react';
37
38
  import { ForwardRefExoticComponent } from 'react';
38
39
  import { HTMLAttributes } from 'react';
39
40
  import { InputHTMLAttributes } from 'react';
40
- import { IStyledComponentBase } from 'styled-components/dist/types';
41
41
  import { JSX } from 'react/jsx-runtime';
42
42
  import { KeyedMutator } from 'swr';
43
43
  import { LabelHTMLAttributes } from 'react';
44
- import { ListContextsOptions } from '@wacht/types';
45
- import { McpConnectResponse } from '@wacht/types';
46
44
  import { NewDomain } from '@wacht/types';
47
45
  import { NewOrgnization } from '@wacht/types';
48
46
  import { Notification as Notification_2 } from '@wacht/types';
@@ -55,8 +53,14 @@ import { OrganizationMembership } from '@wacht/types';
55
53
  import { OrganizationMembershipWithOrganization } from '@wacht/types';
56
54
  import { OrganizationRole } from '@wacht/types';
57
55
  import { OrganizationUpdate } from '@wacht/types';
56
+ import { PendingQuestion } from '@wacht/types';
58
57
  import { ProfileCompletionData } from '@wacht/types';
59
58
  import { ProfileCompletionProps } from '@wacht/types';
59
+ import { ProjectTaskBoardItem } from '@wacht/types';
60
+ import { ProjectTaskBoardItemAssignment } from '@wacht/types';
61
+ import { ProjectTaskBoardItemComment } from '@wacht/types';
62
+ import { ProjectTaskWorkspaceFileContent } from '@wacht/types';
63
+ import { ProjectTaskWorkspaceListing } from '@wacht/types';
60
64
  import { ReactNode } from 'react';
61
65
  import { RefAttributes } from 'react';
62
66
  import { ReplayTaskListOptions } from '@wacht/types';
@@ -77,12 +81,17 @@ import { SigninAttempt } from '@wacht/types';
77
81
  import { SignupAttempt } from '@wacht/types';
78
82
  import { SignUpParams } from '@wacht/types';
79
83
  import { SocialConnection } from '@wacht/types';
80
- import { Substitute } from 'styled-components/dist/types';
81
84
  import { TestEndpointOptions } from '@wacht/types';
82
85
  import { TestEndpointResponse } from '@wacht/types';
86
+ import { ThreadPendingApprovalRequestState } from '@wacht/types';
87
+ import { ThreadTaskGraphBundle } from '@wacht/types';
83
88
  import { TimeseriesPoint } from '@wacht/types';
89
+ import { ToolApprovalDecision } from '@wacht/types';
90
+ import { UpdateActorProjectRequest } from '@wacht/types';
91
+ import { UpdateAgentThreadRequest } from '@wacht/types';
84
92
  import { UpdateEndpointOptions } from '@wacht/types';
85
93
  import { UpdateEnterpriseConnectionPayload } from '@wacht/types';
94
+ import { UpdateProjectTaskBoardItemRequest } from '@wacht/types';
86
95
  import { UpdateWebhookSettingsOptions } from '@wacht/types';
87
96
  import { UseApiAuthAuditAnalyticsOptions } from '@wacht/types';
88
97
  import { UseApiAuthAuditLogsOptions } from '@wacht/types';
@@ -90,7 +99,6 @@ import { UseApiAuthAuditTimeseriesOptions } from '@wacht/types';
90
99
  import { UseApiAuthKeysFilters } from '@wacht/types';
91
100
  import { UserAuthenticator } from '@wacht/types';
92
101
  import { UserEmailAddress } from '@wacht/types';
93
- import { UserInputRequestContent } from '@wacht/types';
94
102
  import { UserPasskey } from '@wacht/types';
95
103
  import { UserPhoneNumber } from '@wacht/types';
96
104
  import { UseWebhookAnalyticsOptions } from '@wacht/types';
@@ -135,7 +143,32 @@ declare interface AcceptInviteProps {
135
143
  onError?: (error: string) => void;
136
144
  }
137
145
 
138
- export declare function AuthFormImage(): JSX.Element | null;
146
+ declare interface ActorMcpServerConnectResponse {
147
+ auth_url: string;
148
+ }
149
+
150
+ declare type AgentSearchOptions = {
151
+ enabled?: boolean;
152
+ query?: string;
153
+ limit?: number;
154
+ };
155
+
156
+ declare type AgentThreadHookOptions = {
157
+ enabled?: boolean;
158
+ limit?: number;
159
+ /**
160
+ * Order in which thread-assignment rows are returned. `"asc"` (default) =
161
+ * oldest first; `"desc"` = newest first. Combine with `limit: 1` to fetch
162
+ * only the latest assignment.
163
+ */
164
+ order?: AssignmentListOrder;
165
+ };
166
+
167
+ declare type AssignmentListOrder = "asc" | "desc";
168
+
169
+ export declare function AuthFormImage({ placement, }: {
170
+ placement?: "center" | "left" | "right";
171
+ }): JSX.Element | null;
139
172
 
140
173
  /**
141
174
  * Check if user can manage the organization (admin or manage permissions)
@@ -147,6 +180,10 @@ export declare function canManageOrganization(membership: WithOrgRoles): boolean
147
180
  */
148
181
  export declare function canManageWorkspace(membership: WithWsRoles): boolean;
149
182
 
183
+ declare type ChallengeParams = {
184
+ challenge_token?: string;
185
+ };
186
+
150
187
  export declare function clearTokenCache(): void;
151
188
 
152
189
  declare const CONNECTION_STATES: {
@@ -156,6 +193,10 @@ declare const CONNECTION_STATES: {
156
193
  readonly ERROR: "error";
157
194
  };
158
195
 
196
+ declare interface ConnectResponse {
197
+ redirect_url: string;
198
+ }
199
+
159
200
  export declare const CreateOrganizationForm: React.FC<CreateOrganizationFormProps>;
160
201
 
161
202
  declare interface CreateOrganizationFormProps {
@@ -183,7 +224,7 @@ declare interface CreateWorkspaceDialogProps {
183
224
  organizationId?: string;
184
225
  }
185
226
 
186
- export declare const CreateWorkspaceForm: default_2.FC<CreateWorkspaceFormProps>;
227
+ export declare const CreateWorkspaceForm: React.FC<CreateWorkspaceFormProps>;
187
228
 
188
229
  declare interface CreateWorkspaceFormProps {
189
230
  organizationId?: string;
@@ -192,7 +233,13 @@ declare interface CreateWorkspaceFormProps {
192
233
  onCreateOrganization?: () => void;
193
234
  }
194
235
 
195
- export declare function DefaultStylesProvider({ children, style, ...props }: DefaultStylesProviderProps): JSX.Element;
236
+ /**
237
+ * Scopes the Wacht SDK token contract (`--wa-*`, defined in tokens.css under
238
+ * `.wacht-root`) to its subtree, and makes the `.w-*` component layer available.
239
+ * Renders a `display: contents` wrapper so it adds no box of its own. Dark mode
240
+ * is driven by a `.dark` class on any ancestor (or on this element).
241
+ */
242
+ export declare function DefaultStylesProvider({ children, className, style, ...props }: DefaultStylesProviderProps): JSX.Element | null;
196
243
 
197
244
  declare type DefaultStylesProviderProps = ComponentPropsWithoutRef<"div">;
198
245
 
@@ -219,13 +266,13 @@ export declare interface DeploymentInvitationData {
219
266
  error_code?: string;
220
267
  }
221
268
 
222
- export declare function DeploymentProvider({ children, publicKey, adapter, uiOverwrites, }: DeploymentProviderProps): JSX.Element;
269
+ export declare function DeploymentProvider({ children, publicKey, adapter, uiOverrides, }: DeploymentProviderProps): JSX.Element;
223
270
 
224
271
  declare interface DeploymentProviderProps {
225
272
  children: ReactNode;
226
273
  publicKey: string;
227
274
  adapter: PlatformAdapter;
228
- uiOverwrites?: Partial<DeploymentUISettings>;
275
+ uiOverrides?: Partial<DeploymentUISettings>;
229
276
  }
230
277
 
231
278
  export declare const Dialog: FC<DialogProps> & {
@@ -279,15 +326,18 @@ declare interface DialogTriggerProps {
279
326
 
280
327
  export declare const Dropdown: ({ children, open, openChange, style, }: DropdownProps) => JSX.Element;
281
328
 
282
- export declare const DropdownDivider: IStyledComponentBase<"web", FastOmit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
329
+ export declare const DropdownDivider: () => JSX.Element;
283
330
 
284
- export declare const DropdownItem: IStyledComponentBase<"web", Substitute<DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
285
- $destructive?: boolean;
286
- }>> & string;
331
+ export declare const DropdownItem: ForwardRefExoticComponent<DropdownItemProps & RefAttributes<HTMLButtonElement>>;
287
332
 
288
- export declare const DropdownItems: ({ children, style, }: {
333
+ declare interface DropdownItemProps extends ButtonHTMLAttributes<HTMLButtonElement> {
334
+ $destructive?: boolean;
335
+ }
336
+
337
+ export declare const DropdownItems: ({ children, style, className, }: {
289
338
  children: ReactNode;
290
339
  style?: React.CSSProperties;
340
+ className?: string;
291
341
  }) => JSX.Element | null;
292
342
 
293
343
  declare interface DropdownProps {
@@ -301,23 +351,23 @@ export declare const DropdownTrigger: ({ children }: {
301
351
  children: ReactNode;
302
352
  }) => JSX.Element;
303
353
 
304
- declare type EmailOTPSignInParams = {
354
+ declare type EmailOTPSignInParams = ChallengeParams & {
305
355
  email: string;
306
356
  };
307
357
 
308
- declare type EmailOTPVerificationParams = {
358
+ declare type EmailOTPVerificationParams = ChallengeParams & {
309
359
  strategy: "email_otp";
310
360
  redirectUri?: string;
311
361
  };
312
362
 
313
- declare type EmailSignInParams = {
363
+ declare type EmailSignInParams = ChallengeParams & {
314
364
  email: string;
315
365
  password: string;
316
366
  };
317
367
 
318
- export declare const Form: IStyledComponentBase<"web", FastOmit<DetailedHTMLProps<FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, never>> & string;
368
+ export declare const Form: ForwardRefExoticComponent<FormHTMLAttributes<HTMLFormElement> & RefAttributes<HTMLFormElement>>;
319
369
 
320
- export declare const FormGroup: IStyledComponentBase<"web", FastOmit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
370
+ export declare const FormGroup: ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement>>;
321
371
 
322
372
  /**
323
373
  * Unified execution status mapping between frontend and backend
@@ -331,7 +381,7 @@ declare const FRONTEND_STATUS: {
331
381
  readonly FAILED: "failed";
332
382
  };
333
383
 
334
- declare type FrontendStatus = typeof FRONTEND_STATUS[keyof typeof FRONTEND_STATUS];
384
+ declare type FrontendStatus = (typeof FRONTEND_STATUS)[keyof typeof FRONTEND_STATUS];
335
385
 
336
386
  declare type GenericSignInParams = {
337
387
  email?: string;
@@ -339,6 +389,7 @@ declare type GenericSignInParams = {
339
389
  password?: string;
340
390
  phone?: string;
341
391
  strategy?: string;
392
+ challenge_token?: string;
342
393
  };
343
394
 
344
395
  export declare function hasIncompleteProfile(session: Session): boolean;
@@ -353,7 +404,7 @@ export declare function hasOrgPermission(membership: WithOrgRoles, requiredPermi
353
404
  */
354
405
  export declare function hasWorkspacePermission(membership: WithWsRoles, requiredPermissions: string[]): boolean;
355
406
 
356
- export declare interface IdentifyResult {
407
+ declare interface IdentifyResult {
357
408
  strategy: "sso" | "social" | "password";
358
409
  connection_id?: string;
359
410
  idp_url?: string;
@@ -365,7 +416,9 @@ declare type InitSSOResponseType = {
365
416
  session: Session;
366
417
  };
367
418
 
368
- export declare const Input: IStyledComponentBase<"web", FastOmit<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, never>> & string;
419
+ export declare const Input: ForwardRefExoticComponent<InputHTMLAttributes<HTMLInputElement> & {
420
+ as?: "input" | "textarea";
421
+ } & RefAttributes<HTMLInputElement>>;
369
422
 
370
423
  export declare const isExternalUrl: (url: string) => boolean;
371
424
 
@@ -381,21 +434,21 @@ export declare const isSafeUrl: (url: string) => boolean;
381
434
  */
382
435
  export declare function isWorkspaceAdmin(membership: WithWsRoles): boolean;
383
436
 
384
- export declare const Label: IStyledComponentBase<"web", FastOmit<DetailedHTMLProps<LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, never>> & string;
437
+ export declare const Label: ForwardRefExoticComponent<LabelHTMLAttributes<HTMLLabelElement> & RefAttributes<HTMLLabelElement>>;
385
438
 
386
- export declare interface MagicLinkParams {
439
+ declare interface MagicLinkParams {
387
440
  token?: string;
388
441
  attempt?: string;
389
442
  redirectUri?: string;
390
443
  }
391
444
 
392
- declare type MagicLinkSignInParams = {
445
+ declare type MagicLinkSignInParams = ChallengeParams & {
393
446
  email: string;
394
447
  };
395
448
 
396
449
  export declare function MagicLinkVerification({ onSuccess, onError, }?: MagicLinkVerificationProps): JSX.Element;
397
450
 
398
- declare type MagicLinkVerificationParams = {
451
+ declare type MagicLinkVerificationParams = ChallengeParams & {
399
452
  strategy: "magic_link";
400
453
  redirectUri?: string;
401
454
  };
@@ -491,9 +544,9 @@ declare interface NotificationItemProps {
491
544
  }
492
545
 
493
546
  export declare interface NotificationMessage {
494
- id: number;
495
- user_id: number;
496
- deployment_id: number;
547
+ id: string;
548
+ user_id: string;
549
+ deployment_id: string;
497
550
  title: string;
498
551
  body: string;
499
552
  severity: string;
@@ -543,7 +596,7 @@ export declare const ORG_ADMIN_PERMISSIONS: string[];
543
596
 
544
597
  export declare const ORG_MANAGEMENT_PERMISSIONS: string[];
545
598
 
546
- export declare const OrganizationSwitcher: ({ showPersonal, }: OrganizationSwitcherProps) => JSX.Element | null;
599
+ export declare const OrganizationSwitcher: ({ showPersonal }: OrganizationSwitcherProps) => JSX.Element | null;
547
600
 
548
601
  declare interface OrganizationSwitcherProps {
549
602
  showPersonal?: boolean;
@@ -576,12 +629,12 @@ export declare const PhoneNumberInput: ({ value, onChange, error, countryCode, s
576
629
  setCountryCode: React.Dispatch<React.SetStateAction<string | undefined>>;
577
630
  }) => JSX.Element;
578
631
 
579
- declare type PhoneOTPVerificationParams = {
632
+ declare type PhoneOTPVerificationParams = ChallengeParams & {
580
633
  strategy: "phone_otp";
581
634
  lastDigits?: string;
582
635
  };
583
636
 
584
- declare type PhoneSignInParams = {
637
+ declare type PhoneSignInParams = ChallengeParams & {
585
638
  phone: string;
586
639
  };
587
640
 
@@ -631,6 +684,27 @@ declare interface ProfileUpdateData {
631
684
  remove_profile_picture?: boolean;
632
685
  }
633
686
 
687
+ declare type ProjectTaskDetailOptions = {
688
+ includeArchived?: boolean;
689
+ /**
690
+ * Order in which assignments are returned. `"asc"` (default) lists oldest
691
+ * first; `"desc"` lists newest first which is convenient when you only need
692
+ * the most recent assignment (combine with `assignmentsLimit: 1`).
693
+ */
694
+ assignmentsOrder?: AssignmentListOrder;
695
+ /**
696
+ * Page size for the assignments list. Default 40, max 200 (server-side cap).
697
+ */
698
+ assignmentsLimit?: number;
699
+ };
700
+
701
+ declare type ProjectTaskListOptions = {
702
+ statuses?: string[];
703
+ includeArchived?: boolean;
704
+ archivedOnly?: boolean;
705
+ limit?: number;
706
+ };
707
+
634
708
  export declare function redirectToProfileCompletion(returnUrl?: string): void;
635
709
 
636
710
  export declare const RequireActiveTenancy: ({ children, }: RequireActiveTenancyProps) => JSX.Element | null;
@@ -643,7 +717,7 @@ declare type SecondFactorPolicy_2 = "none" | "optional" | "enforced";
643
717
 
644
718
  export declare const SignedIn: ({ children }: SignedInProps) => JSX.Element | null;
645
719
 
646
- export declare const SignedInAccounts: React.FC<SignedInAccountsProps>;
720
+ export declare const SignedInAccounts: default_2.FC<SignedInAccountsProps>;
647
721
 
648
722
  declare interface SignedInAccountsProps {
649
723
  onAccountSelect?: (signInId: string) => void;
@@ -665,8 +739,8 @@ declare type SignIn = {
665
739
  prepareVerification: (params: VerificationParams) => Promise<ApiResult<PrepareVerificationResponse>>;
666
740
  completeVerification: (verificationCode: string) => Promise<Session>;
667
741
  completeProfile: (data: ProfileCompletionData) => Promise<Session>;
668
- identify: (identifier: string) => Promise<IdentifyResult>;
669
- initEnterpriseSso: (connectionId: string, redirectUri?: string) => Promise<{
742
+ identify: (identifier: string, challengeToken?: string) => Promise<IdentifyResult>;
743
+ initEnterpriseSso: (connectionId: string, redirectUri?: string, challengeToken?: string) => Promise<{
670
744
  sso_url: string;
671
745
  session: Session;
672
746
  }>;
@@ -676,27 +750,17 @@ declare type SignInEmailOTP = ({ email, }: EmailOTPSignInParams) => Promise<ApiR
676
750
 
677
751
  export declare function SignInForm(): JSX.Element;
678
752
 
679
- declare type SignInFunction<T extends SignInStrategy> = {
680
- ["username"]: SignInPlainUsername;
681
- ["email"]: SignInPlainEmail;
682
- ["phone"]: SignInPhone;
683
- ["email_otp"]: SignInEmailOTP;
684
- ["magic_link"]: SignInMagicLink;
685
- ["oauth"]: SignInOauth;
686
- ["passkey"]: SignInPasskey;
687
- ["generic"]: SignInGeneric;
688
- }[T];
689
-
690
- declare type SignInGeneric = ({ email, username, password, phone, strategy, }: GenericSignInParams) => Promise<ApiResult<Session>>;
753
+ declare type SignInGeneric = ({ email, username, password, phone, strategy, challenge_token, }: GenericSignInParams) => Promise<ApiResult<Session>>;
691
754
 
692
755
  declare type SignInMagicLink = ({ email, }: MagicLinkSignInParams) => Promise<ApiResult<Session>>;
693
756
 
694
757
  declare type SignInOauth = ({ provider, redirectUri, }: {
695
758
  provider: OAuthProvider;
696
759
  redirectUri?: string;
760
+ challenge_token?: string;
697
761
  }) => Promise<ApiResult<InitSSOResponseType>>;
698
762
 
699
- declare type SignInPasskey = () => Promise<ApiResult<Session>>;
763
+ declare type SignInPasskey = (params?: ChallengeParams) => Promise<ApiResult<Session>>;
700
764
 
701
765
  declare type SignInPhone = ({ phone, }: PhoneSignInParams) => Promise<ApiResult<Session>>;
702
766
 
@@ -704,17 +768,16 @@ declare type SignInPlainEmail = ({ email, password, }: EmailSignInParams) => Pro
704
768
 
705
769
  declare type SignInPlainUsername = ({ username, password, }: UsernameSignInParams) => Promise<ApiResult<Session>>;
706
770
 
707
- declare type SignInStrategy = "username" | "email" | "phone" | "email_otp" | "magic_link" | "oauth" | "passkey" | "generic";
708
-
709
771
  declare type SignupEmailOTPVerificationParams = {
710
772
  strategy: "email_otp";
711
773
  redirectUri?: string;
774
+ challenge_token?: string;
712
775
  };
713
776
 
714
777
  export declare function SignUpForm(): JSX.Element;
715
778
 
716
779
  export declare type SignUpFunction = {
717
- create: (params: SignUpParams) => Promise<ApiResult<unknown, ErrorInterface>>;
780
+ create: (params: SignUpParams) => Promise<ApiResult<unknown>>;
718
781
  prepareVerification: (params: SignupVerificationParams) => Promise<ApiResult<PrepareVerificationResponse_2>>;
719
782
  completeVerification: (verificationCode: string) => Promise<ApiResult<Session>>;
720
783
  validateDeploymentInvitation: (token: string) => Promise<DeploymentInvitationData>;
@@ -723,6 +786,7 @@ export declare type SignUpFunction = {
723
786
  declare type SignupPhoneOTPVerificationParams = {
724
787
  strategy: "phone_otp";
725
788
  lastDigits?: string;
789
+ challenge_token?: string;
726
790
  };
727
791
 
728
792
  declare type SignupVerificationParams = SignupEmailOTPVerificationParams | SignupPhoneOTPVerificationParams;
@@ -739,16 +803,9 @@ declare interface SimpleDialogProps {
739
803
  showCloseButton?: boolean;
740
804
  }
741
805
 
742
- export declare const Spinner: ({ size, className }: SpinnerProps) => JSX.Element;
806
+ export declare function SocialCallback(): JSX.Element;
743
807
 
744
- declare interface SpinnerProps {
745
- size?: number;
746
- className?: string;
747
- }
748
-
749
- export declare function SSOCallback(): JSX.Element;
750
-
751
- declare interface SSOCallbackState {
808
+ declare interface SocialCallbackState {
752
809
  loading: boolean;
753
810
  error: Error | null;
754
811
  session: Session | null;
@@ -757,6 +814,13 @@ declare interface SSOCallbackState {
757
814
  signinAttempt: SigninAttempt | null;
758
815
  }
759
816
 
817
+ export declare const Spinner: ({ size, className }: SpinnerProps) => JSX.Element;
818
+
819
+ declare interface SpinnerProps {
820
+ size?: number;
821
+ className?: string;
822
+ }
823
+
760
824
  export declare const Switch: default_2.FC<SwitchProps>;
761
825
 
762
826
  declare interface SwitchProps {
@@ -880,8 +944,8 @@ export declare const useActiveOrganization: () => {
880
944
 
881
945
  export declare function useActiveTenancy(): {
882
946
  loading: boolean;
883
- orgMembership: OrganizationMembershipWithOrganization | null | undefined;
884
- workspaceMembership: WorkspaceMembership | null | undefined;
947
+ orgMembership: OrganizationMembershipWithOrganization | null;
948
+ workspaceMembership: WorkspaceMembership | null;
885
949
  };
886
950
 
887
951
  export declare const useActiveWorkspace: () => {
@@ -920,22 +984,110 @@ export declare const useActiveWorkspace: () => {
920
984
  resendInvitation: (invitationId: string) => Promise<unknown>;
921
985
  };
922
986
 
923
- export declare function useAgentContext({ contextId, agentName, platformAdapter, }: UseAgentContextProps): {
987
+ export declare function useActorMcpServers(enabled?: boolean): {
988
+ servers: ActorMcpServerSummary[];
989
+ loading: boolean;
990
+ error: any;
991
+ connect: (mcpServerId: string) => Promise<ApiResult<ActorMcpServerConnectResponse>>;
992
+ disconnect: (mcpServerId: string) => Promise<ApiResult< {
993
+ success: boolean;
994
+ }>>;
995
+ refetch: () => Promise<void>;
996
+ };
997
+
998
+ export declare function useActorProjects(options?: {
999
+ includeArchived?: boolean;
1000
+ enabled?: boolean;
1001
+ }): {
1002
+ projects: ActorProject[];
1003
+ loading: boolean;
1004
+ error: any;
1005
+ createProject: (request: CreateActorProjectRequest) => Promise<ApiResult<ActorProject>>;
1006
+ updateProject: (projectId: string, request: UpdateActorProjectRequest) => Promise<ApiResult<ActorProject>>;
1007
+ archiveProject: (projectId: string) => Promise<ApiResult<ActorProject>>;
1008
+ unarchiveProject: (projectId: string) => Promise<ApiResult<ActorProject>>;
1009
+ refetch: () => Promise<void>;
1010
+ };
1011
+
1012
+ export declare function useActorProjectSearch(options?: AgentSearchOptions): {
1013
+ projects: ActorProject[];
1014
+ loading: boolean;
1015
+ error: any;
1016
+ hasMore: boolean;
1017
+ nextCursor: string | undefined;
1018
+ refetch: () => Promise<void>;
1019
+ };
1020
+
1021
+ export declare function useActorThreadSearch(options?: AgentSearchOptions): {
1022
+ threads: AgentThread[];
1023
+ loading: boolean;
1024
+ error: any;
1025
+ hasMore: boolean;
1026
+ nextCursor: string | undefined;
1027
+ refetch: () => Promise<void>;
1028
+ };
1029
+
1030
+ export declare function useAgentSession(ticket?: string | null): UseAgentSessionResult;
1031
+
1032
+ declare interface UseAgentSessionResult {
1033
+ hasSession: boolean;
1034
+ sessionLoading: boolean;
1035
+ sessionError: Error | null;
1036
+ sessionId: string | null;
1037
+ actor: Actor | null;
1038
+ agents: Agent[];
1039
+ ticketExchanged: boolean;
1040
+ ticketLoading: boolean;
1041
+ refetch: () => Promise<void>;
1042
+ }
1043
+
1044
+ export declare function useAgentThread(threadId?: string, enabled?: boolean): {
1045
+ thread: AgentThread | null;
1046
+ loading: boolean;
1047
+ error: any;
1048
+ updateThread: (request: UpdateAgentThreadRequest) => Promise<ApiResult<AgentThread>>;
1049
+ archiveThread: () => Promise<ApiResult<AgentThread>>;
1050
+ unarchiveThread: () => Promise<ApiResult<AgentThread>>;
1051
+ submitAnswer: (submission: AnswerSubmission) => Promise<void>;
1052
+ refetch: () => Promise<void>;
1053
+ };
1054
+
1055
+ export declare function useAgentThreadAssignments(threadId?: string, options?: AgentThreadHookOptions): {
1056
+ assignments: ProjectTaskBoardItemAssignment[];
1057
+ loading: boolean;
1058
+ error: any;
1059
+ hasMore: boolean;
1060
+ loadingMore: boolean;
1061
+ loadMore: () => Promise<void>;
1062
+ refetch: () => Promise<void>;
1063
+ };
1064
+
1065
+ export declare function useAgentThreadConversation({ threadId, initialThread, boardItemId, platformAdapter, }: UseAgentThreadConversationProps): {
1066
+ thread: AgentThread | null;
1067
+ threadState: AgentThread | null;
1068
+ threadStatus: string | undefined;
924
1069
  messages: ConversationMessage[];
925
- quickQuestions: string[];
926
1070
  pendingMessage: string | null;
927
1071
  pendingFiles: File[] | null;
928
1072
  connectionState: {
929
1073
  status: (typeof CONNECTION_STATES)[keyof typeof CONNECTION_STATES];
930
1074
  };
931
1075
  isConnected: boolean;
932
- isExecuting: boolean;
1076
+ hasActiveRun: boolean;
1077
+ isRunning: boolean;
933
1078
  executionStatus: FrontendStatus;
934
1079
  isWaitingForInput: boolean;
1080
+ pendingApprovalRequest: ThreadPendingApprovalRequestState | null;
1081
+ pendingClarificationRequest: PendingQuestion | null;
935
1082
  hasMoreMessages: boolean;
936
1083
  isLoadingMore: boolean;
1084
+ messagesLoading: boolean;
1085
+ messagesError: Error | null;
1086
+ refreshThread: () => Promise<void>;
1087
+ refreshMessages: () => Promise<void>;
937
1088
  sendMessage: (message: string, files?: File[]) => Promise<void>;
938
- submitUserInput: (input: string) => Promise<void>;
1089
+ submitApprovalResponse: (requestMessageId: string, approvals: ToolApprovalDecision[]) => Promise<boolean>;
1090
+ submitAnswer: (submission: AnswerSubmission) => Promise<boolean>;
939
1091
  clearMessages: () => void;
940
1092
  loadMoreMessages: () => Promise<void>;
941
1093
  cancelExecution: () => Promise<void>;
@@ -943,73 +1095,38 @@ export declare function useAgentContext({ contextId, agentName, platformAdapter,
943
1095
  downloadMessageFile: (file: FileData | null | undefined) => void;
944
1096
  };
945
1097
 
946
- declare interface UseAgentContextProps {
947
- contextId: string;
948
- agentName: string;
1098
+ declare interface UseAgentThreadConversationProps {
1099
+ threadId: string;
1100
+ initialThread?: AgentThread | null;
1101
+ /** Scope the conversation to a single task (board item). Omit = whole thread. */
1102
+ boardItemId?: string;
949
1103
  platformAdapter?: {
950
1104
  onPlatformEvent?: (eventName: string, eventData: unknown) => void;
951
- onPlatformFunction?: (functionName: string, parameters: unknown, executionId: string) => Promise<unknown>;
952
1105
  };
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
1106
  }
961
1107
 
962
- declare type UseAgentContextsReturnType = {
963
- contexts: AgentContext[];
964
- loading: boolean;
965
- error: Error | null;
966
- hasMore: boolean;
967
- createContext: (request: CreateContextRequest) => Promise<AgentContext>;
968
- deleteContext: (id: string) => Promise<void>;
969
- updateContext: (id: string, updates: {
970
- title?: string;
971
- }) => Promise<void>;
972
- refetch: () => Promise<void>;
973
- };
974
-
975
- export declare function useAgentIntegrations(agentName: string | null): UseAgentIntegrationsReturnType;
976
-
977
- declare type UseAgentIntegrationsReturnType = {
978
- integrations: AgentIntegration[];
979
- loading: boolean;
980
- error: Error | null;
981
- generateConsentURL: (integrationId: string, redirectUrl?: string) => Promise<ConsentURLResponse>;
982
- removeIntegration: (integrationId: string) => Promise<void>;
1108
+ export declare function useAgentThreadFilesystem(threadId?: string, enabled?: boolean): {
1109
+ filesystem: ProjectTaskWorkspaceListing;
1110
+ filesystemLoading: boolean;
1111
+ filesystemError: any;
1112
+ getFile: (path: string) => Promise<ProjectTaskWorkspaceFileContent & {
1113
+ blob: Blob;
1114
+ }>;
1115
+ listDirectory: (path?: string) => Promise<ProjectTaskWorkspaceListing>;
983
1116
  refetch: () => Promise<void>;
984
1117
  };
985
1118
 
986
- export declare function useAgentMcpServers(agentName: string | null): UseAgentMcpServersReturnType;
987
-
988
- declare type UseAgentMcpServersReturnType = {
989
- mcpServers: AgentMcpServer[];
1119
+ export declare function useAgentThreadTaskGraphs(threadId?: string, enabled?: boolean): {
1120
+ graphs: ThreadTaskGraphBundle[];
1121
+ latestGraph: ThreadTaskGraphBundle;
1122
+ has_more: boolean;
1123
+ loadingMore: boolean;
990
1124
  loading: boolean;
991
- error: Error | null;
992
- connect: (mcpServerId: string) => Promise<McpConnectResponse>;
993
- disconnect: (mcpServerId: string) => Promise<void>;
1125
+ error: any;
1126
+ loadMore: () => Promise<void>;
994
1127
  refetch: () => Promise<void>;
995
1128
  };
996
1129
 
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
1130
  export declare function useApiAuthAppSession(ticket?: string | null): UseApiAuthAppSessionResult;
1014
1131
 
1015
1132
  declare interface UseApiAuthAppSessionResult {
@@ -1058,9 +1175,9 @@ export declare function useApiAuthKeys(filters?: UseApiAuthKeysFilters): UseApiA
1058
1175
 
1059
1176
  declare interface UseApiAuthKeysReturn {
1060
1177
  keys: ApiKey[];
1061
- createKey: (input: CreateApiAuthKeyInput) => Promise<ApiKeyWithSecret>;
1062
- rotateKey: (input: RotateApiAuthKeyInput) => Promise<ApiKeyWithSecret>;
1063
- revokeKey: (input: RevokeApiAuthKeyInput) => Promise<void>;
1178
+ createKey: (input: CreateApiAuthKeyInput) => Promise<ApiResult<ApiKeyWithSecret>>;
1179
+ rotateKey: (input: RotateApiAuthKeyInput) => Promise<ApiResult<ApiKeyWithSecret>>;
1180
+ revokeKey: (input: RevokeApiAuthKeyInput) => Promise<ApiResult<void>>;
1064
1181
  loading: boolean;
1065
1182
  error: unknown;
1066
1183
  refetch: () => void;
@@ -1076,20 +1193,33 @@ declare type UseClientReturnType = {
1076
1193
  export declare function useCreateWebhookEndpoint(): UseCreateWebhookEndpointReturn;
1077
1194
 
1078
1195
  declare interface UseCreateWebhookEndpointReturn {
1079
- createEndpoint: (options: CreateEndpointOptions) => Promise<EndpointWithSubscriptions>;
1196
+ createEndpoint: (options: CreateEndpointOptions) => Promise<ApiResult<EndpointWithSubscriptions>>;
1080
1197
  loading: boolean;
1081
1198
  error: unknown;
1082
1199
  }
1083
1200
 
1084
1201
  export declare function useDeployment(): DeploymentContextType;
1085
1202
 
1203
+ export declare function useExternalAgentConnections(enabled?: boolean): {
1204
+ connections: ExternalAgentConnection[];
1205
+ loading: boolean;
1206
+ error: any;
1207
+ connect: (provider: string, slug: string, options?: {
1208
+ returnUrl?: string;
1209
+ }) => Promise<ConnectResponse>;
1210
+ disconnect: (provider: string, slug: string) => Promise<{
1211
+ success: boolean;
1212
+ }>;
1213
+ refetch: () => Promise<void>;
1214
+ };
1215
+
1086
1216
  export declare function useForgotPassword(): {
1087
1217
  loading: boolean;
1088
- forgotPassword: (email: string) => Promise<ApiResult<{}, ErrorInterface>>;
1218
+ forgotPassword: (email: string) => Promise<ApiResult<{}>>;
1089
1219
  verifyOtp: (email: string, otp: string) => Promise<ApiResult<{
1090
1220
  token: string;
1091
- }, ErrorInterface>>;
1092
- resetPassword: (token: string, password: string) => Promise<ApiResult<Session, ErrorInterface>>;
1221
+ }>>;
1222
+ resetPassword: (token: string, password: string) => Promise<ApiResult<Session>>;
1093
1223
  };
1094
1224
 
1095
1225
  export declare const useInvitation: () => {
@@ -1100,13 +1230,11 @@ export declare const useInvitation: () => {
1100
1230
  reset: () => void;
1101
1231
  };
1102
1232
 
1103
- export declare function useMagicLinkParams(): MagicLinkParams;
1104
-
1105
1233
  export declare function useMagicLinkVerification(): UseMagicLinkVerificationReturnType;
1106
1234
 
1107
- export declare interface UseMagicLinkVerificationReturnType {
1235
+ declare interface UseMagicLinkVerificationReturnType {
1108
1236
  loading: boolean;
1109
- verifyMagicLink: (params: MagicLinkParams) => Promise<ApiResult<{}, ErrorInterface>>;
1237
+ verifyMagicLink: (params: MagicLinkParams) => Promise<ApiResult<{}>>;
1110
1238
  success: boolean | null;
1111
1239
  }
1112
1240
 
@@ -1161,14 +1289,16 @@ export declare function useNotificationStream({ enabled, channels, organizationI
1161
1289
  export declare interface UseNotificationStreamOptions {
1162
1290
  enabled?: boolean;
1163
1291
  channels?: string[];
1164
- organizationIds?: number[];
1165
- workspaceIds?: number[];
1292
+ organizationIds?: string[];
1293
+ workspaceIds?: string[];
1166
1294
  onNotification?: (notification: NotificationMessage) => void;
1167
1295
  onError?: (error: string) => void;
1168
1296
  reconnectDelay?: number;
1169
1297
  maxReconnectAttempts?: number;
1170
1298
  }
1171
1299
 
1300
+ export declare function useNotificationUnreadCount(params?: NotificationListParams): UseScopeUnreadReturnType;
1301
+
1172
1302
  export declare const useOrganizationList: () => {
1173
1303
  organizations: Organization[] | undefined;
1174
1304
  loading: boolean;
@@ -1236,10 +1366,94 @@ export declare const useOrganizationMemberships: () => {
1236
1366
  refetch: () => Promise<void>;
1237
1367
  };
1238
1368
 
1369
+ export declare function useProjectTaskBoardItem(projectId?: string, itemId?: string, enabled?: boolean, options?: ProjectTaskDetailOptions): {
1370
+ item: ProjectTaskBoardItem | null;
1371
+ assignments: ProjectTaskBoardItemAssignment[];
1372
+ assignmentsHasMore: boolean;
1373
+ assignmentsLoadingMore: boolean;
1374
+ loadMoreAssignments: () => Promise<void>;
1375
+ taskWorkspace: ProjectTaskWorkspaceListing;
1376
+ taskWorkspaceLoading: boolean;
1377
+ taskWorkspaceError: any;
1378
+ loading: boolean;
1379
+ error: any;
1380
+ updateItem: (request: UpdateProjectTaskBoardItemRequest, files?: File[]) => Promise<ApiResult<ProjectTaskBoardItem>>;
1381
+ archiveItem: () => Promise<ApiResult<ProjectTaskBoardItem>>;
1382
+ unarchiveItem: () => Promise<ApiResult<ProjectTaskBoardItem>>;
1383
+ cancelItem: () => Promise<ApiResult<ProjectTaskBoardItem>>;
1384
+ submitAnswer: (submission: AnswerSubmission) => Promise<ApiResult<ProjectTaskBoardItem>>;
1385
+ submitApproval: (approvals: ToolApprovalDecision[]) => Promise<boolean>;
1386
+ getTaskWorkspaceFile: (path: string) => Promise<ApiResult<ProjectTaskWorkspaceFileContent>>;
1387
+ downloadTaskWorkspaceFile: (path: string) => Promise<void>;
1388
+ listTaskWorkspaceDirectory: (path?: string) => Promise<ApiResult<ProjectTaskWorkspaceListing>>;
1389
+ refetch: () => Promise<void>;
1390
+ refetchAssignments: () => Promise<void>;
1391
+ refetchTaskWorkspace: () => Promise<void>;
1392
+ };
1393
+
1394
+ export declare function useProjectTaskBoardItemComments(projectId?: string, itemId?: string, enabled?: boolean): {
1395
+ comments: ProjectTaskBoardItemComment[];
1396
+ loading: boolean;
1397
+ error: any;
1398
+ createComment: (body: string, files?: File[]) => Promise<ApiResult<ProjectTaskBoardItemComment>>;
1399
+ refetch: () => Promise<void>;
1400
+ };
1401
+
1402
+ export declare function useProjectTasks(projectId?: string, enabled?: boolean, options?: ProjectTaskListOptions): {
1403
+ tasks: ProjectTaskBoardItem[];
1404
+ loading: boolean;
1405
+ error: any;
1406
+ hasMore: boolean;
1407
+ loadingMore: boolean;
1408
+ loadMore: () => Promise<void>;
1409
+ createTask: (request: CreateProjectTaskBoardItemRequest, files?: File[]) => Promise<ApiResult<ProjectTaskBoardItem>>;
1410
+ archiveTask: (itemId: string) => Promise<ApiResult<ProjectTaskBoardItem>>;
1411
+ unarchiveTask: (itemId: string) => Promise<ApiResult<ProjectTaskBoardItem>>;
1412
+ refetch: () => Promise<void>;
1413
+ };
1414
+
1415
+ export declare function useProjectThreadFeed(projectId?: string, options?: {
1416
+ includeArchived?: boolean;
1417
+ archivedOnly?: boolean;
1418
+ enabled?: boolean;
1419
+ query?: string;
1420
+ limit?: number;
1421
+ }): {
1422
+ threads: AgentThread[];
1423
+ loading: boolean;
1424
+ error: any;
1425
+ hasMore: boolean;
1426
+ loadingMore: boolean;
1427
+ loadMore: () => Promise<void>;
1428
+ refetch: () => Promise<void>;
1429
+ };
1430
+
1431
+ export declare function useProjectThreads(projectId?: string, options?: {
1432
+ includeArchived?: boolean;
1433
+ enabled?: boolean;
1434
+ }): {
1435
+ threads: AgentThread[];
1436
+ loading: boolean;
1437
+ error: any;
1438
+ hasMore: boolean;
1439
+ nextCursor: string;
1440
+ createThread: (request: CreateAgentThreadRequest) => Promise<ApiResult<AgentThread>>;
1441
+ createThreadForProject: (targetProjectId: string, request: CreateAgentThreadRequest) => Promise<ApiResult<AgentThread>>;
1442
+ updateThread: (threadId: string, request: UpdateAgentThreadRequest) => Promise<ApiResult<AgentThread>>;
1443
+ archiveThread: (threadId: string) => Promise<ApiResult<AgentThread>>;
1444
+ unarchiveThread: (threadId: string) => Promise<ApiResult<AgentThread>>;
1445
+ refetch: () => Promise<void>;
1446
+ };
1447
+
1239
1448
  export declare const UserButton: default_2.FC<UserButtonProps>;
1240
1449
 
1241
1450
  declare interface UserButtonProps {
1242
1451
  showName?: boolean;
1452
+ onCreateOrg?: () => void;
1453
+ /** Show the org/workspace chip row and side panel. Defaults to true. */
1454
+ showOrgSwitcher?: boolean;
1455
+ /** Viewport width threshold (px) below which the side panel replaces the main dropdown. Defaults to 640. */
1456
+ narrowBreakpoint?: number;
1243
1457
  }
1244
1458
 
1245
1459
  export declare const UserControls: default_2.FC<UserControlsProps>;
@@ -1249,13 +1463,11 @@ declare interface UserControlsProps {
1249
1463
  showNotifications?: boolean;
1250
1464
  }
1251
1465
 
1252
- declare type UsernameSignInParams = {
1466
+ declare type UsernameSignInParams = ChallengeParams & {
1253
1467
  username: string;
1254
1468
  password: string;
1255
1469
  };
1256
1470
 
1257
- export declare function useScopeUnread(params?: NotificationListParams): UseScopeUnreadReturnType;
1258
-
1259
1471
  declare type UseScopeUnreadReturnType = {
1260
1472
  loading: true;
1261
1473
  count: number;
@@ -1310,32 +1522,6 @@ declare type UseSignInReturnType = {
1310
1522
  setSignInAttempt: (attempt: SigninAttempt | null) => void;
1311
1523
  };
1312
1524
 
1313
- export declare function useSignInWithStrategy<T extends SignInStrategy>(strategy: T): UseSignInWithStrategyReturnType<T>;
1314
-
1315
- export declare type UseSignInWithStrategyReturnType<T extends SignInStrategy> = {
1316
- loading: true;
1317
- signIn: never;
1318
- signinAttempt: null;
1319
- discardSignInAttempt: () => void;
1320
- setSignInAttempt: (attempt: SigninAttempt | null) => void;
1321
- } | {
1322
- loading: false;
1323
- signIn: {
1324
- create: SignInFunction<T>;
1325
- completeVerification: (verificationCode: string) => Promise<Session>;
1326
- prepareVerification: (params: VerificationParams) => Promise<ApiResult<PrepareVerificationResponse>>;
1327
- completeProfile: (data: ProfileCompletionData) => Promise<Session>;
1328
- identify: (identifier: string) => Promise<IdentifyResult>;
1329
- initEnterpriseSso: (connectionId: string, redirectUri?: string) => Promise<{
1330
- sso_url: string;
1331
- session: Session;
1332
- }>;
1333
- };
1334
- signinAttempt: SigninAttempt | null;
1335
- discardSignInAttempt: () => void;
1336
- setSignInAttempt: (attempt: SigninAttempt | null) => void;
1337
- };
1338
-
1339
1525
  export declare function useSignUp(): UseSignUpReturnType;
1340
1526
 
1341
1527
  export declare type UseSignUpReturnType = {
@@ -1351,10 +1537,20 @@ export declare type UseSignUpReturnType = {
1351
1537
  };
1352
1538
 
1353
1539
  /**
1354
- * Headless hook for handling SSO OAuth callback
1540
+ * Headless hook for handling social OAuth callback
1355
1541
  * Automatically processes URL parameters and handles the callback flow
1356
1542
  */
1357
- export declare function useSSOCallback(): SSOCallbackState;
1543
+ export declare function useSocialCallback(): SocialCallbackState;
1544
+
1545
+ /**
1546
+ * Inline `--wa-ov-*` override vars for the current deployment's theme_tokens.
1547
+ * Apply to any `.wacht-root` element that lives OUTSIDE the main provider's DOM
1548
+ * subtree — i.e. portalled popovers/dropdowns/dialogs rendered to `document.body`.
1549
+ * Those re-wrap in `.wacht-root` (restoring base tokens) but don't inherit the
1550
+ * overrides, which are set inline on the provider's root; this re-applies them.
1551
+ * React context flows through portals, so this reads the same deployment.
1552
+ */
1553
+ export declare function useThemeOverrideVars(): Record<string, string>;
1358
1554
 
1359
1555
  export declare function useUser(): {
1360
1556
  user: {
@@ -1432,7 +1628,7 @@ export declare function useUserSignins(): {
1432
1628
 
1433
1629
  export declare function useWaitlist(): {
1434
1630
  loading: boolean;
1435
- joinWaitlist: (params: WaitlistParams) => Promise<ApiResult<WaitlistResponse, ErrorInterface>>;
1631
+ joinWaitlist: (params: WaitlistParams) => Promise<ApiResult<WaitlistResponse>>;
1436
1632
  };
1437
1633
 
1438
1634
  export declare function useWebhookAnalytics(options?: UseWebhookAnalyticsOptions): UseWebhookAnalyticsReturn;
@@ -1455,17 +1651,17 @@ declare interface UseWebhookAppSessionResult {
1455
1651
  ticketExchanged: boolean;
1456
1652
  ticketLoading: boolean;
1457
1653
  refetch: () => Promise<void>;
1458
- createEndpoint: (options: CreateEndpointOptions) => Promise<EndpointWithSubscriptions>;
1459
- updateEndpoint: (endpointId: string, options: UpdateEndpointOptions) => Promise<EndpointWithSubscriptions>;
1460
- deleteEndpoint: (endpointId: string) => Promise<DeleteEndpointResponse>;
1461
- testEndpoint: (endpointId: string, options: TestEndpointOptions) => Promise<TestEndpointResponse>;
1462
- rotateSecret: () => Promise<WebhookAppInfo>;
1463
- updateSettings: (options: UpdateWebhookSettingsOptions) => Promise<WebhookSettingsResponse>;
1464
- replayDelivery: (options: ReplayWebhookDeliveryOptions) => Promise<ReplayWebhookDeliveryResponse>;
1465
- fetchReplayTaskStatus: (options: ReplayTaskStatusOptions) => Promise<ReplayTaskStatusResponse>;
1466
- fetchReplayTasks: (options?: ReplayTaskListOptions) => Promise<ReplayTaskListResponse>;
1467
- cancelReplayTask: (options: CancelReplayTaskOptions) => Promise<CancelReplayTaskResponse>;
1468
- fetchDeliveryDetail: (deliveryId: string) => Promise<WebhookDeliveryDetail[]>;
1654
+ createEndpoint: (options: CreateEndpointOptions) => Promise<ApiResult<EndpointWithSubscriptions>>;
1655
+ updateEndpoint: (endpointId: string, options: UpdateEndpointOptions) => Promise<ApiResult<EndpointWithSubscriptions>>;
1656
+ deleteEndpoint: (endpointId: string) => Promise<ApiResult<DeleteEndpointResponse>>;
1657
+ testEndpoint: (endpointId: string, options: TestEndpointOptions) => Promise<ApiResult<TestEndpointResponse>>;
1658
+ rotateSecret: () => Promise<ApiResult<WebhookAppInfo>>;
1659
+ updateSettings: (options: UpdateWebhookSettingsOptions) => Promise<ApiResult<WebhookSettingsResponse>>;
1660
+ replayDelivery: (options: ReplayWebhookDeliveryOptions) => Promise<ApiResult<ReplayWebhookDeliveryResponse>>;
1661
+ fetchReplayTaskStatus: (options: ReplayTaskStatusOptions) => Promise<ApiResult<ReplayTaskStatusResponse>>;
1662
+ fetchReplayTasks: (options?: ReplayTaskListOptions) => Promise<ApiResult<ReplayTaskListResponse>>;
1663
+ cancelReplayTask: (options: CancelReplayTaskOptions) => Promise<ApiResult<CancelReplayTaskResponse>>;
1664
+ fetchDeliveryDetail: (deliveryId: string) => Promise<ApiResult<WebhookDeliveryDetail[]>>;
1469
1665
  }
1470
1666
 
1471
1667
  export declare function useWebhookDeliveries(options?: UseWebhookDeliveriesOptions): {
@@ -1511,7 +1707,7 @@ export declare const useWorkspaceList: () => {
1511
1707
  loading: boolean;
1512
1708
  error: any;
1513
1709
  refetch: () => Promise<void>;
1514
- leaveWorkspace: (id: string, userId: string) => Promise<void>;
1710
+ leaveWorkspace: (id: string) => Promise<void>;
1515
1711
  createWorkspace: (organizationId: string, name: string, image?: File, description?: string) => Promise<{
1516
1712
  workspace: Workspace;
1517
1713
  membership: WorkspaceMembership;
@@ -1553,7 +1749,7 @@ declare type VerificationParams = EmailOTPVerificationParams | PhoneOTPVerificat
1553
1749
 
1554
1750
  export declare interface WaitlistEntry {
1555
1751
  id: string;
1556
- deployment_id: number;
1752
+ deployment_id: string;
1557
1753
  email_address: string;
1558
1754
  first_name: string;
1559
1755
  last_name: string;