@wacht/jsx 0.0.1-alpha.2 → 0.0.1-alpha.20
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.cjs.js +930 -862
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1334 -5
- package/dist/index.es.js +8537 -8216
- package/dist/index.es.js.map +1 -1
- package/package.json +2 -2
- package/dist/components/agent/agent-conversation-history.d.ts +0 -5
- package/dist/components/agent/agent-conversation-hub.d.ts +0 -1
- package/dist/components/agent/agent-conversation.d.ts +0 -5
- package/dist/components/agent/index.d.ts +0 -3
- package/dist/components/agent/user-input-request.d.ts +0 -7
- package/dist/components/auth/accept-invite.d.ts +0 -7
- package/dist/components/auth/auth-image.d.ts +0 -1
- package/dist/components/auth/forgot-password.d.ts +0 -5
- package/dist/components/auth/index.d.ts +0 -13
- package/dist/components/auth/magic-link-verification.d.ts +0 -6
- package/dist/components/auth/other-auth-options.d.ts +0 -1
- package/dist/components/auth/other-signin-options.d.ts +0 -5
- package/dist/components/auth/phone-verification.d.ts +0 -7
- package/dist/components/auth/profile-completion.d.ts +0 -2
- package/dist/components/auth/signin-form.d.ts +0 -1
- package/dist/components/auth/signup-form.d.ts +0 -1
- package/dist/components/auth/social-buttons.d.ts +0 -7
- package/dist/components/auth/sso-callback.d.ts +0 -2
- package/dist/components/auth/two-factor-method-selector.d.ts +0 -15
- package/dist/components/auth/two-factor-verification.d.ts +0 -2
- package/dist/components/auth/waitlist-form.d.ts +0 -1
- package/dist/components/control/index.d.ts +0 -5
- package/dist/components/control/navigation.d.ts +0 -2
- package/dist/components/control/require-active-tenancy.d.ts +0 -5
- package/dist/components/control/signed-in-accounts.d.ts +0 -6
- package/dist/components/control/signed-in.d.ts +0 -5
- package/dist/components/control/signed-out.d.ts +0 -5
- package/dist/components/control/user-selection.d.ts +0 -0
- package/dist/components/deployment-instance.d.ts +0 -7
- package/dist/components/icons/apple.d.ts +0 -1
- package/dist/components/icons/brave.d.ts +0 -1
- package/dist/components/icons/chevron-right.d.ts +0 -1
- package/dist/components/icons/chrome.d.ts +0 -2
- package/dist/components/icons/discord.d.ts +0 -1
- package/dist/components/icons/edge.d.ts +0 -2
- package/dist/components/icons/facebook.d.ts +0 -1
- package/dist/components/icons/firefox.d.ts +0 -2
- package/dist/components/icons/github.d.ts +0 -1
- package/dist/components/icons/gitlab.d.ts +0 -1
- package/dist/components/icons/google.d.ts +0 -1
- package/dist/components/icons/key.d.ts +0 -1
- package/dist/components/icons/linkedin.d.ts +0 -1
- package/dist/components/icons/microsoft.d.ts +0 -1
- package/dist/components/icons/opera.d.ts +0 -1
- package/dist/components/icons/safari.d.ts +0 -2
- package/dist/components/icons/shield.d.ts +0 -1
- package/dist/components/icons/smartphone.d.ts +0 -1
- package/dist/components/icons/x.d.ts +0 -1
- package/dist/components/index.d.ts +0 -17
- package/dist/components/notifications/channel-selector.d.ts +0 -8
- package/dist/components/notifications/index.d.ts +0 -4
- package/dist/components/notifications/notification-bell.d.ts +0 -9
- package/dist/components/notifications/notification-item.d.ts +0 -8
- package/dist/components/notifications/notification-popover.d.ts +0 -16
- package/dist/components/organization/add-domain-popover.d.ts +0 -8
- package/dist/components/organization/add-role-popover.d.ts +0 -14
- package/dist/components/organization/context.d.ts +0 -9
- package/dist/components/organization/create-organization-dialog.d.ts +0 -8
- package/dist/components/organization/create-organization-form.d.ts +0 -6
- package/dist/components/organization/index.d.ts +0 -3
- package/dist/components/organization/invite-member-popover.d.ts +0 -9
- package/dist/components/organization/manage-organization-dialog.d.ts +0 -14
- package/dist/components/organization/manage-organization.d.ts +0 -1
- package/dist/components/organization/organization-selector-menu.d.ts +0 -7
- package/dist/components/organization/organization-switcher.d.ts +0 -5
- package/dist/components/user/2fa-styles.d.ts +0 -56
- package/dist/components/user/2fa.d.ts +0 -20
- package/dist/components/user/add-email-popover.d.ts +0 -10
- package/dist/components/user/add-phone-popover.d.ts +0 -10
- package/dist/components/user/backup-codes-popover.d.ts +0 -9
- package/dist/components/user/change-password-popover.d.ts +0 -8
- package/dist/components/user/context.d.ts +0 -9
- package/dist/components/user/index.d.ts +0 -4
- package/dist/components/user/manage-account-dialog.d.ts +0 -14
- package/dist/components/user/manage-account.d.ts +0 -2
- package/dist/components/user/remove-password-popover.d.ts +0 -7
- package/dist/components/user/setup-totp-popover.d.ts +0 -12
- package/dist/components/user/user-button.d.ts +0 -6
- package/dist/components/user/user-controls.d.ts +0 -7
- package/dist/components/utility/button.d.ts +0 -7
- package/dist/components/utility/combo-box.d.ts +0 -39
- package/dist/components/utility/confirmation-popover.d.ts +0 -7
- package/dist/components/utility/dialog.d.ts +0 -49
- package/dist/components/utility/dropdown.d.ts +0 -20
- package/dist/components/utility/empty-state.d.ts +0 -8
- package/dist/components/utility/form.d.ts +0 -3
- package/dist/components/utility/index.d.ts +0 -14
- package/dist/components/utility/input.d.ts +0 -1
- package/dist/components/utility/loader.d.ts +0 -7
- package/dist/components/utility/navigation.d.ts +0 -8
- package/dist/components/utility/otp-input.d.ts +0 -9
- package/dist/components/utility/phone.d.ts +0 -7
- package/dist/components/utility/root.d.ts +0 -1
- package/dist/components/utility/search.d.ts +0 -7
- package/dist/components/utility/spinner.d.ts +0 -6
- package/dist/components/utility/switch.d.ts +0 -7
- package/dist/components/utility/table.d.ts +0 -8
- package/dist/components/utility/tabs.d.ts +0 -34
- package/dist/components/utility/use-dialog.d.ts +0 -12
- package/dist/components/workspace/add-role-popover.d.ts +0 -13
- package/dist/components/workspace/create-workspace-dialog.d.ts +0 -9
- package/dist/components/workspace/create-workspace-form.d.ts +0 -9
- package/dist/components/workspace/index.d.ts +0 -4
- package/dist/components/workspace/invite-member-popover.d.ts +0 -10
- package/dist/components/workspace/manage-workspace-dialog.d.ts +0 -14
- package/dist/components/workspace/manage-workspace.d.ts +0 -1
- package/dist/constants/ai-agent.d.ts +0 -43
- package/dist/constants/execution-status.d.ts +0 -38
- package/dist/constants/geo.d.ts +0 -8
- package/dist/context/agent-conversation-provider.d.ts +0 -37
- package/dist/context/deployment-provider.d.ts +0 -10
- package/dist/context/index.d.ts +0 -2
- package/dist/context/signin-provider.d.ts +0 -21
- package/dist/hooks/index.d.ts +0 -22
- package/dist/hooks/use-agent-conversation.d.ts +0 -61
- package/dist/hooks/use-channel-counts.d.ts +0 -14
- package/dist/hooks/use-client.d.ts +0 -7
- package/dist/hooks/use-context-manager.d.ts +0 -30
- package/dist/hooks/use-conversation-sessions.d.ts +0 -32
- package/dist/hooks/use-deployment.d.ts +0 -1
- package/dist/hooks/use-forgot-password.d.ts +0 -11
- package/dist/hooks/use-invitation.d.ts +0 -23
- package/dist/hooks/use-magic-link.d.ts +0 -14
- package/dist/hooks/use-navigation.d.ts +0 -6
- package/dist/hooks/use-notification-stream.d.ts +0 -27
- package/dist/hooks/use-notifications.d.ts +0 -30
- package/dist/hooks/use-organization.d.ts +0 -81
- package/dist/hooks/use-session.d.ts +0 -26
- package/dist/hooks/use-signin.d.ts +0 -140
- package/dist/hooks/use-signup.d.ts +0 -46
- package/dist/hooks/use-sso-callback.d.ts +0 -15
- package/dist/hooks/use-user.d.ts +0 -78
- package/dist/hooks/use-waitlist.d.ts +0 -24
- package/dist/hooks/use-workspace.d.ts +0 -50
- package/dist/models/websocket.d.ts +0 -25
- package/dist/services/websocket-manager.d.ts +0 -46
- package/dist/types/deployment-context.d.ts +0 -7
- package/dist/types/index.d.ts +0 -4
- package/dist/types/notification.d.ts +0 -51
- package/dist/types/platform-adapter.d.ts +0 -10
- package/dist/utils/event-emitter.d.ts +0 -9
- package/dist/utils/navigation.d.ts +0 -2
- package/dist/utils/profile-completion.d.ts +0 -3
- package/dist/utils/response-mapper.d.ts +0 -2
package/dist/hooks/use-user.d.ts
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { CurrentUser, UserAuthenticator, UserEmailAddress, UserPhoneNumber, SignIn } from '../../../../../../../../lib/types';
|
|
2
|
-
type SecondFactorPolicy = "none" | "optional" | "enforced";
|
|
3
|
-
interface ProfileUpdateData {
|
|
4
|
-
first_name?: string;
|
|
5
|
-
last_name?: string;
|
|
6
|
-
username?: string;
|
|
7
|
-
primary_email_address_id?: string;
|
|
8
|
-
primary_phone_number_id?: string;
|
|
9
|
-
second_factor_policy?: SecondFactorPolicy;
|
|
10
|
-
remove_profile_picture?: boolean;
|
|
11
|
-
}
|
|
12
|
-
export declare function useUser(): {
|
|
13
|
-
user: {
|
|
14
|
-
refetch: import('swr').KeyedMutator<CurrentUser>;
|
|
15
|
-
id?: string | undefined;
|
|
16
|
-
first_name?: string | undefined;
|
|
17
|
-
last_name?: string | undefined;
|
|
18
|
-
username?: string | undefined;
|
|
19
|
-
availability?: "available" | "busy" | "away" | undefined;
|
|
20
|
-
has_profile_picture?: string | undefined;
|
|
21
|
-
profile_picture_url?: string | undefined;
|
|
22
|
-
primary_email_address_id?: string | undefined;
|
|
23
|
-
primary_phone_number_id?: string | undefined;
|
|
24
|
-
primary_email_address?: UserEmailAddress | undefined;
|
|
25
|
-
primary_phone_number?: UserPhoneNumber;
|
|
26
|
-
second_factor_policy?: import('@wacht/types').SecondFactorPolicy | undefined;
|
|
27
|
-
user_email_addresses?: UserEmailAddress[] | undefined;
|
|
28
|
-
user_phone_numbers?: UserPhoneNumber[] | undefined;
|
|
29
|
-
email_addresses?: UserEmailAddress[];
|
|
30
|
-
phone_numbers?: UserPhoneNumber[];
|
|
31
|
-
social_connections?: import('@wacht/types').SocialConnection[] | undefined;
|
|
32
|
-
user_authenticator?: UserAuthenticator;
|
|
33
|
-
authenticators?: UserAuthenticator[];
|
|
34
|
-
backup_codes_generated?: boolean;
|
|
35
|
-
backup_codes?: string[];
|
|
36
|
-
has_password?: boolean | undefined;
|
|
37
|
-
public_metadata?: Record<string, unknown> | undefined;
|
|
38
|
-
};
|
|
39
|
-
loading: boolean;
|
|
40
|
-
error: any;
|
|
41
|
-
updateProfile: (data: ProfileUpdateData) => Promise<import('@wacht/types').ApiResult<unknown>>;
|
|
42
|
-
getEmailAddresses: () => Promise<import('@wacht/types').ApiResult<unknown>>;
|
|
43
|
-
getEmailAddress: (id: string) => Promise<import('@wacht/types').ApiResult<unknown>>;
|
|
44
|
-
createEmailAddress: (email: string) => Promise<import('@wacht/types').ApiResult<UserEmailAddress>>;
|
|
45
|
-
deleteEmailAddress: (id: string) => Promise<import('@wacht/types').ApiResult<unknown>>;
|
|
46
|
-
prepareEmailVerification: (id: string) => Promise<import('@wacht/types').ApiResult<unknown>>;
|
|
47
|
-
attemptEmailVerification: (id: string, otp: string) => Promise<import('@wacht/types').ApiResult<unknown>>;
|
|
48
|
-
makeEmailPrimary: (id: string) => Promise<import('@wacht/types').ApiResult<unknown>>;
|
|
49
|
-
createPhoneNumber: (phone_number: string, country_code: string) => Promise<import('@wacht/types').ApiResult<UserPhoneNumber>>;
|
|
50
|
-
deletePhoneNumber: (id: string) => Promise<import('@wacht/types').ApiResult<unknown>>;
|
|
51
|
-
preparePhoneVerification: (id: string) => Promise<import('@wacht/types').ApiResult<unknown>>;
|
|
52
|
-
attemptPhoneVerification: (id: string, otp: string) => Promise<import('@wacht/types').ApiResult<unknown>>;
|
|
53
|
-
makePhonePrimary: (id: string) => Promise<import('@wacht/types').ApiResult<unknown>>;
|
|
54
|
-
setupAuthenticator: () => Promise<UserAuthenticator>;
|
|
55
|
-
verifyAuthenticator: (id: string, codes: string[]) => Promise<import('@wacht/types').ApiResult<unknown>>;
|
|
56
|
-
deleteAuthenticator: (id: string) => Promise<import('@wacht/types').ApiResult<unknown>>;
|
|
57
|
-
generateBackupCodes: () => Promise<string[]>;
|
|
58
|
-
regenerateBackupCodes: () => Promise<string[]>;
|
|
59
|
-
updateProfilePicture: (file: File) => Promise<import('@wacht/types').ApiResult<unknown>>;
|
|
60
|
-
disconnectSocialConnection: (id: string) => Promise<import('@wacht/types').ApiResult<unknown>>;
|
|
61
|
-
connectSocialAccount: ({ provider, redirectUri }: {
|
|
62
|
-
provider: string;
|
|
63
|
-
redirectUri?: string;
|
|
64
|
-
}) => Promise<import('@wacht/types').ApiResult<{
|
|
65
|
-
oauth_url: string;
|
|
66
|
-
}>>;
|
|
67
|
-
updatePassword: (currentPassword: string, newPassword: string) => Promise<import('@wacht/types').ApiResult<unknown>>;
|
|
68
|
-
removePassword: (currentPassword: string) => Promise<import('@wacht/types').ApiResult<unknown>>;
|
|
69
|
-
deleteAccount: (password: string) => Promise<import('@wacht/types').ApiResult<unknown>>;
|
|
70
|
-
};
|
|
71
|
-
export declare function useUserSignins(): {
|
|
72
|
-
signins: SignIn[] | undefined;
|
|
73
|
-
error: any;
|
|
74
|
-
removeSignin: (id: string) => Promise<import('@wacht/types').ApiResult<unknown>>;
|
|
75
|
-
refetch: import('swr').KeyedMutator<SignIn[]>;
|
|
76
|
-
loading: boolean;
|
|
77
|
-
};
|
|
78
|
-
export {};
|
|
@@ -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: import('swr').KeyedMutator<WorkspaceMembership[]>;
|
|
7
|
-
};
|
|
8
|
-
export declare const useWorkspaceList: () => {
|
|
9
|
-
workspaces: WorkspaceWithOrganization[];
|
|
10
|
-
loading: boolean;
|
|
11
|
-
error: any;
|
|
12
|
-
refetch: import('swr').KeyedMutator<WorkspaceMembership[]>;
|
|
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: import('swr').KeyedMutator<WorkspaceMembership[]>;
|
|
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 {};
|
package/dist/types/index.d.ts
DELETED
|
@@ -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 {};
|