@wacht/jsx 0.0.1-alpha.6 → 0.0.1-alpha.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (146) hide show
  1. package/dist/index.d.ts +1311 -5
  2. package/package.json +1 -1
  3. package/dist/components/agent/agent-conversation-history.d.ts +0 -5
  4. package/dist/components/agent/agent-conversation-hub.d.ts +0 -1
  5. package/dist/components/agent/agent-conversation.d.ts +0 -5
  6. package/dist/components/agent/index.d.ts +0 -3
  7. package/dist/components/agent/user-input-request.d.ts +0 -7
  8. package/dist/components/auth/accept-invite.d.ts +0 -7
  9. package/dist/components/auth/auth-image.d.ts +0 -1
  10. package/dist/components/auth/forgot-password.d.ts +0 -5
  11. package/dist/components/auth/index.d.ts +0 -13
  12. package/dist/components/auth/magic-link-verification.d.ts +0 -6
  13. package/dist/components/auth/other-auth-options.d.ts +0 -1
  14. package/dist/components/auth/other-signin-options.d.ts +0 -5
  15. package/dist/components/auth/phone-verification.d.ts +0 -7
  16. package/dist/components/auth/profile-completion.d.ts +0 -2
  17. package/dist/components/auth/signin-form.d.ts +0 -1
  18. package/dist/components/auth/signup-form.d.ts +0 -1
  19. package/dist/components/auth/social-buttons.d.ts +0 -7
  20. package/dist/components/auth/sso-callback.d.ts +0 -2
  21. package/dist/components/auth/two-factor-method-selector.d.ts +0 -15
  22. package/dist/components/auth/two-factor-verification.d.ts +0 -2
  23. package/dist/components/auth/waitlist-form.d.ts +0 -1
  24. package/dist/components/control/index.d.ts +0 -5
  25. package/dist/components/control/navigation.d.ts +0 -2
  26. package/dist/components/control/require-active-tenancy.d.ts +0 -5
  27. package/dist/components/control/signed-in-accounts.d.ts +0 -6
  28. package/dist/components/control/signed-in.d.ts +0 -5
  29. package/dist/components/control/signed-out.d.ts +0 -5
  30. package/dist/components/control/user-selection.d.ts +0 -0
  31. package/dist/components/deployment-instance.d.ts +0 -7
  32. package/dist/components/icons/apple.d.ts +0 -1
  33. package/dist/components/icons/brave.d.ts +0 -1
  34. package/dist/components/icons/chevron-right.d.ts +0 -1
  35. package/dist/components/icons/chrome.d.ts +0 -2
  36. package/dist/components/icons/discord.d.ts +0 -1
  37. package/dist/components/icons/edge.d.ts +0 -2
  38. package/dist/components/icons/facebook.d.ts +0 -1
  39. package/dist/components/icons/firefox.d.ts +0 -2
  40. package/dist/components/icons/github.d.ts +0 -1
  41. package/dist/components/icons/gitlab.d.ts +0 -1
  42. package/dist/components/icons/google.d.ts +0 -1
  43. package/dist/components/icons/key.d.ts +0 -1
  44. package/dist/components/icons/linkedin.d.ts +0 -1
  45. package/dist/components/icons/microsoft.d.ts +0 -1
  46. package/dist/components/icons/opera.d.ts +0 -1
  47. package/dist/components/icons/safari.d.ts +0 -2
  48. package/dist/components/icons/shield.d.ts +0 -1
  49. package/dist/components/icons/smartphone.d.ts +0 -1
  50. package/dist/components/icons/x.d.ts +0 -1
  51. package/dist/components/index.d.ts +0 -17
  52. package/dist/components/notifications/channel-selector.d.ts +0 -8
  53. package/dist/components/notifications/index.d.ts +0 -4
  54. package/dist/components/notifications/notification-bell.d.ts +0 -9
  55. package/dist/components/notifications/notification-item.d.ts +0 -8
  56. package/dist/components/notifications/notification-popover.d.ts +0 -16
  57. package/dist/components/organization/add-domain-popover.d.ts +0 -8
  58. package/dist/components/organization/add-role-popover.d.ts +0 -14
  59. package/dist/components/organization/context.d.ts +0 -9
  60. package/dist/components/organization/create-organization-dialog.d.ts +0 -8
  61. package/dist/components/organization/create-organization-form.d.ts +0 -6
  62. package/dist/components/organization/index.d.ts +0 -3
  63. package/dist/components/organization/invite-member-popover.d.ts +0 -9
  64. package/dist/components/organization/manage-organization-dialog.d.ts +0 -14
  65. package/dist/components/organization/manage-organization.d.ts +0 -1
  66. package/dist/components/organization/organization-selector-menu.d.ts +0 -7
  67. package/dist/components/organization/organization-switcher.d.ts +0 -5
  68. package/dist/components/user/2fa-styles.d.ts +0 -56
  69. package/dist/components/user/2fa.d.ts +0 -20
  70. package/dist/components/user/add-email-popover.d.ts +0 -10
  71. package/dist/components/user/add-phone-popover.d.ts +0 -10
  72. package/dist/components/user/backup-codes-popover.d.ts +0 -9
  73. package/dist/components/user/change-password-popover.d.ts +0 -8
  74. package/dist/components/user/context.d.ts +0 -9
  75. package/dist/components/user/index.d.ts +0 -4
  76. package/dist/components/user/manage-account-dialog.d.ts +0 -14
  77. package/dist/components/user/manage-account.d.ts +0 -2
  78. package/dist/components/user/remove-password-popover.d.ts +0 -7
  79. package/dist/components/user/setup-totp-popover.d.ts +0 -12
  80. package/dist/components/user/user-button.d.ts +0 -6
  81. package/dist/components/user/user-controls.d.ts +0 -7
  82. package/dist/components/utility/button.d.ts +0 -7
  83. package/dist/components/utility/combo-box.d.ts +0 -39
  84. package/dist/components/utility/confirmation-popover.d.ts +0 -7
  85. package/dist/components/utility/dialog.d.ts +0 -49
  86. package/dist/components/utility/dropdown.d.ts +0 -20
  87. package/dist/components/utility/empty-state.d.ts +0 -8
  88. package/dist/components/utility/form.d.ts +0 -3
  89. package/dist/components/utility/index.d.ts +0 -14
  90. package/dist/components/utility/input.d.ts +0 -1
  91. package/dist/components/utility/loader.d.ts +0 -7
  92. package/dist/components/utility/navigation.d.ts +0 -8
  93. package/dist/components/utility/otp-input.d.ts +0 -9
  94. package/dist/components/utility/phone.d.ts +0 -7
  95. package/dist/components/utility/root.d.ts +0 -1
  96. package/dist/components/utility/search.d.ts +0 -7
  97. package/dist/components/utility/spinner.d.ts +0 -6
  98. package/dist/components/utility/switch.d.ts +0 -7
  99. package/dist/components/utility/table.d.ts +0 -8
  100. package/dist/components/utility/tabs.d.ts +0 -34
  101. package/dist/components/utility/use-dialog.d.ts +0 -12
  102. package/dist/components/workspace/add-role-popover.d.ts +0 -13
  103. package/dist/components/workspace/create-workspace-dialog.d.ts +0 -9
  104. package/dist/components/workspace/create-workspace-form.d.ts +0 -9
  105. package/dist/components/workspace/index.d.ts +0 -4
  106. package/dist/components/workspace/invite-member-popover.d.ts +0 -10
  107. package/dist/components/workspace/manage-workspace-dialog.d.ts +0 -14
  108. package/dist/components/workspace/manage-workspace.d.ts +0 -1
  109. package/dist/constants/ai-agent.d.ts +0 -43
  110. package/dist/constants/execution-status.d.ts +0 -38
  111. package/dist/constants/geo.d.ts +0 -8
  112. package/dist/context/agent-conversation-provider.d.ts +0 -37
  113. package/dist/context/deployment-provider.d.ts +0 -10
  114. package/dist/context/index.d.ts +0 -2
  115. package/dist/context/signin-provider.d.ts +0 -21
  116. package/dist/hooks/index.d.ts +0 -22
  117. package/dist/hooks/use-agent-conversation.d.ts +0 -61
  118. package/dist/hooks/use-channel-counts.d.ts +0 -14
  119. package/dist/hooks/use-client.d.ts +0 -7
  120. package/dist/hooks/use-context-manager.d.ts +0 -30
  121. package/dist/hooks/use-conversation-sessions.d.ts +0 -32
  122. package/dist/hooks/use-deployment.d.ts +0 -1
  123. package/dist/hooks/use-forgot-password.d.ts +0 -10
  124. package/dist/hooks/use-invitation.d.ts +0 -23
  125. package/dist/hooks/use-magic-link.d.ts +0 -14
  126. package/dist/hooks/use-navigation.d.ts +0 -6
  127. package/dist/hooks/use-notification-stream.d.ts +0 -27
  128. package/dist/hooks/use-notifications.d.ts +0 -30
  129. package/dist/hooks/use-organization.d.ts +0 -81
  130. package/dist/hooks/use-session.d.ts +0 -27
  131. package/dist/hooks/use-signin.d.ts +0 -132
  132. package/dist/hooks/use-signup.d.ts +0 -46
  133. package/dist/hooks/use-sso-callback.d.ts +0 -15
  134. package/dist/hooks/use-user.d.ts +0 -83
  135. package/dist/hooks/use-waitlist.d.ts +0 -24
  136. package/dist/hooks/use-workspace.d.ts +0 -50
  137. package/dist/models/websocket.d.ts +0 -25
  138. package/dist/services/websocket-manager.d.ts +0 -46
  139. package/dist/types/deployment-context.d.ts +0 -7
  140. package/dist/types/index.d.ts +0 -4
  141. package/dist/types/notification.d.ts +0 -51
  142. package/dist/types/platform-adapter.d.ts +0 -10
  143. package/dist/utils/event-emitter.d.ts +0 -9
  144. package/dist/utils/navigation.d.ts +0 -2
  145. package/dist/utils/profile-completion.d.ts +0 -3
  146. package/dist/utils/response-mapper.d.ts +0 -2
@@ -1,24 +0,0 @@
1
- import { ApiResult, ErrorInterface } from '../../../../../../../../lib/types';
2
- export interface WaitlistParams {
3
- first_name: string;
4
- last_name: string;
5
- email: string;
6
- }
7
- export interface WaitlistEntry {
8
- id: string;
9
- deployment_id: number;
10
- email_address: string;
11
- first_name: string;
12
- last_name: string;
13
- created_at: string;
14
- updated_at: string;
15
- }
16
- export interface WaitlistResponse {
17
- message: string;
18
- entry: WaitlistEntry;
19
- }
20
- export declare function useWaitlist(): {
21
- loading: boolean;
22
- error: ApiResult<unknown, ErrorInterface> | null;
23
- joinWaitlist: (params: WaitlistParams) => Promise<ApiResult<WaitlistResponse, ErrorInterface>>;
24
- };
@@ -1,50 +0,0 @@
1
- import { Workspace, WorkspaceRole, WorkspaceMembership, WorkspaceWithOrganization } from '../../../../../../../../lib/types';
2
- export declare const useWorkspaceMemberships: () => {
3
- workspaceMemberships: WorkspaceMembership[] | undefined;
4
- loading: boolean;
5
- error: any;
6
- refetch: () => Promise<void>;
7
- };
8
- export declare const useWorkspaceList: () => {
9
- workspaces: WorkspaceWithOrganization[];
10
- loading: boolean;
11
- error: any;
12
- refetch: () => Promise<void>;
13
- leaveWorkspace: (id: string, userId: string) => Promise<void>;
14
- createWorkspace: (organizationId: string, name: string, image?: File, description?: string) => Promise<Response>;
15
- updateWorkspace: (workspace: Workspace, data: {
16
- name?: string;
17
- description?: string;
18
- image?: File;
19
- }) => Promise<unknown>;
20
- deleteWorkspace: (workspace: Workspace) => Promise<unknown>;
21
- getWorkspaceMembers: (workspace: Workspace) => Promise<WorkspaceMembership[]>;
22
- getWorkspaceRoles: (workspace: Workspace) => Promise<WorkspaceRole[]>;
23
- createWorkspaceRole: (workspace: Workspace, name: string, permissions: string[]) => Promise<WorkspaceRole>;
24
- deleteWorkspaceRole: (workspace: Workspace, role: WorkspaceRole) => Promise<unknown>;
25
- inviteWorkspaceMember: (workspace: Workspace, email: string, roleId?: string) => Promise<unknown>;
26
- removeWorkspaceMember: (workspace: Workspace, memberId: string) => Promise<unknown>;
27
- addWorkspaceMemberRole: (workspace: Workspace, membershipId: string, roleId: string) => Promise<unknown>;
28
- removeWorkspaceMemberRole: (workspace: Workspace, membershipId: string, roleId: string) => Promise<unknown>;
29
- };
30
- export declare const useActiveWorkspace: () => {
31
- activeWorkspace: Workspace | null;
32
- loading: boolean;
33
- error: any;
34
- refetch: () => Promise<void>;
35
- leave: () => Promise<void>;
36
- updateWorkspace: (data: {
37
- name?: string;
38
- description?: string;
39
- image?: File;
40
- }) => Promise<unknown>;
41
- deleteWorkspace: () => Promise<unknown>;
42
- getMembers: () => Promise<WorkspaceMembership[]>;
43
- getRoles: () => Promise<WorkspaceRole[]>;
44
- createRole: (name: string, permissions: string[]) => Promise<WorkspaceRole | undefined>;
45
- deleteRole: (role: WorkspaceRole) => Promise<unknown>;
46
- inviteMember: (email: string, roleId?: string) => Promise<unknown>;
47
- removeMember: (memberId: string) => Promise<unknown>;
48
- addMemberRole: (membershipId: string, roleId: string) => Promise<unknown>;
49
- removeMemberRole: (membershipId: string, roleId: string) => Promise<unknown>;
50
- };
@@ -1,25 +0,0 @@
1
- export interface WebsocketMessage<T = any> {
2
- message_id?: number;
3
- message_type: string | Record<string, any>;
4
- data: T;
5
- }
6
- export declare const WebsocketMessageType: {
7
- readonly SESSION_CONNECT: "session_connect";
8
- readonly SESSION_CONNECTED: "session_connected";
9
- readonly FETCH_CONTEXT_MESSAGES: "fetch_context_messages";
10
- readonly MESSAGE_INPUT: "message_input";
11
- readonly NEW_MESSAGE_CHUNK: "new_message_chunk";
12
- readonly EXECUTION_COMPLETE: "execution_complete";
13
- readonly TASK_UPDATE: "task_update";
14
- readonly TOOL_EXECUTION: "tool_execution";
15
- readonly WORKFLOW_EXECUTION: "workflow_execution";
16
- readonly EXECUTION_ERROR: "execution_error";
17
- readonly CLOSE_CONNECTION: "close_connection";
18
- readonly PLATFORM_EVENT: "platform_event";
19
- readonly PLATFORM_FUNCTION: "platform_function";
20
- readonly PLATFORM_FUNCTION_RESULT: "platform_function_result";
21
- readonly AGENT_MESSAGE: "agent_message";
22
- readonly CONVERSATION_MESSAGE: "conversation_message";
23
- readonly USER_INPUT_REQUEST: "user_input_request";
24
- readonly USER_INPUT_RESPONSE: "user_input_response";
25
- };
@@ -1,46 +0,0 @@
1
- import { WebsocketMessage } from '../models/websocket';
2
- type MessageHandler = (message: WebsocketMessage<any>) => void;
3
- type ConnectionStateHandler = (state: {
4
- isConnected: boolean;
5
- error?: string;
6
- }) => void;
7
- export interface StoredMessage {
8
- id: string;
9
- type: string;
10
- content: string;
11
- timestamp: Date;
12
- metadata?: any;
13
- }
14
- export interface SessionMessages {
15
- [sessionKey: string]: StoredMessage[];
16
- }
17
- declare class WebSocketManager {
18
- private static instance;
19
- private ws;
20
- private messageHandlers;
21
- private connectionStateHandlers;
22
- private reconnectTimer;
23
- private reconnectAttempts;
24
- private url;
25
- private isIntentionalDisconnect;
26
- private sessionMessages;
27
- private currentSessionKey;
28
- private constructor();
29
- static getInstance(): WebSocketManager;
30
- connect(url: string): void;
31
- private createConnection;
32
- private scheduleReconnect;
33
- disconnect(): void;
34
- send(message: any): void;
35
- onMessage(handler: MessageHandler): () => void;
36
- onConnectionStateChange(handler: ConnectionStateHandler): () => void;
37
- private notifyMessageHandlers;
38
- private notifyConnectionState;
39
- isConnected(): boolean;
40
- setCurrentSession(sessionKey: string): void;
41
- addMessage(message: StoredMessage): void;
42
- getSessionMessages(sessionKey: string): StoredMessage[];
43
- clearSessionMessages(sessionKey: string): void;
44
- }
45
- export declare const wsManager: WebSocketManager;
46
- export {};
@@ -1,7 +0,0 @@
1
- import { Deployment } from '@wacht/types';
2
- import { PlatformAdapter } from './platform-adapter';
3
- export interface DeploymentContextType {
4
- loading: boolean;
5
- deployment: Deployment | null;
6
- adapter: PlatformAdapter;
7
- }
@@ -1,4 +0,0 @@
1
- export * from '@wacht/types';
2
- export * from './platform-adapter';
3
- export * from './deployment-context';
4
- export * from './notification';
@@ -1,51 +0,0 @@
1
- export interface Notification {
2
- id: string;
3
- deployment_id: string;
4
- user_id: string;
5
- organization_id?: string;
6
- workspace_id?: string;
7
- title: string;
8
- body: string;
9
- action_url?: string;
10
- action_label?: string;
11
- severity: "info" | "success" | "warning" | "error";
12
- is_read: boolean;
13
- read_at?: string;
14
- is_archived: boolean;
15
- archived_at?: string;
16
- metadata?: Record<string, any>;
17
- created_at: string;
18
- updated_at: string;
19
- expires_at?: string;
20
- }
21
- export interface ChannelCounts {
22
- user: number;
23
- organization: number;
24
- workspace: number;
25
- current: number;
26
- total: number;
27
- }
28
- export interface NotificationListResponse {
29
- notifications: Notification[];
30
- total: number;
31
- unread_count: number;
32
- has_more: boolean;
33
- channels: string[];
34
- unread_counts: ChannelCounts;
35
- }
36
- export interface UnreadCountResponse {
37
- count: number;
38
- }
39
- export interface NotificationListParams {
40
- limit?: number;
41
- offset?: number;
42
- channels?: string[];
43
- organization_ids?: number[];
44
- workspace_ids?: number[];
45
- is_read?: boolean;
46
- is_archived?: boolean;
47
- severity?: "info" | "success" | "warning" | "error";
48
- }
49
- export interface BulkUpdateResponse {
50
- affected: number;
51
- }
@@ -1,10 +0,0 @@
1
- export interface NavigateOptions {
2
- replace?: boolean;
3
- state?: any;
4
- }
5
- export interface PlatformAdapter {
6
- useNavigate(): ((to: string, options?: NavigateOptions) => void) | null;
7
- }
8
- export interface PlatformAdapterContextType {
9
- adapter: PlatformAdapter | null;
10
- }
@@ -1,9 +0,0 @@
1
- type EventCallback = (...args: any[]) => void;
2
- export declare class EventEmitter {
3
- private events;
4
- on(event: string, callback: EventCallback): this;
5
- off(event: string, callback: EventCallback): this;
6
- emit(event: string, ...args: any[]): this;
7
- removeAllListeners(event?: string): this;
8
- }
9
- export {};
@@ -1,2 +0,0 @@
1
- export declare const isExternalUrl: (url: string) => boolean;
2
- export declare const isSafeUrl: (url: string) => boolean;
@@ -1,3 +0,0 @@
1
- import { Session } from '../../../../../../../../lib/types';
2
- export declare function hasIncompleteProfile(session: Session): boolean;
3
- export declare function redirectToProfileCompletion(returnUrl?: string): void;
@@ -1,2 +0,0 @@
1
- import { ApiResult } from '../../../../../../../../lib/types';
2
- export declare function responseMapper<T>(response: Response): Promise<ApiResult<T>>;