@1interface/chat-core 0.1.0

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.
@@ -0,0 +1,4260 @@
1
+ import { Action } from '@reduxjs/toolkit';
2
+ import { ActionCreatorWithOptionalPayload } from '@reduxjs/toolkit';
3
+ import { ActionCreatorWithoutPayload } from '@reduxjs/toolkit';
4
+ import { Api } from '@reduxjs/toolkit/query';
5
+ import { AppBrandingResponse } from '@1interface/shared-core';
6
+ import { AppResponse } from '@1interface/shared-core';
7
+ import { AuthApiResult } from '@1interface/shared-core';
8
+ import { AuthState } from '@1interface/shared-core';
9
+ import { BaseQueryFn } from '@reduxjs/toolkit/query';
10
+ import { ChatThemeStyles } from '@1interface/shared-core';
11
+ import { CombinedState } from '@reduxjs/toolkit/query';
12
+ import { Context } from 'react';
13
+ import { coreModuleName } from '@reduxjs/toolkit/query';
14
+ import { Dispatch } from 'react';
15
+ import { EnhancedStore } from '@reduxjs/toolkit';
16
+ import { FetchArgs } from '@reduxjs/toolkit/query';
17
+ import { FetchBaseQueryError } from '@reduxjs/toolkit/query';
18
+ import { ForgotPasswordRequest } from '@1interface/shared-core';
19
+ import { IdpHint } from '@1interface/shared-core';
20
+ import { LoggerContextProvider } from '@1interface/shared-core';
21
+ import { LogoutRequest } from '@1interface/shared-core';
22
+ import { Message } from '@1interface/shared-core';
23
+ import { Middleware } from '@reduxjs/toolkit';
24
+ import { MutableRefObject } from 'react';
25
+ import { MutationActionCreatorResult } from '@reduxjs/toolkit/query';
26
+ import { MutationDefinition } from '@reduxjs/toolkit/query';
27
+ import { Organization } from '@1interface/shared-core';
28
+ import { PaymentInitPayload } from '@1interface/shared-core';
29
+ import { PaymentProviderType } from '@1interface/shared-core';
30
+ import { QueryActionCreatorResult } from '@reduxjs/toolkit/query';
31
+ import { QueryDefinition } from '@reduxjs/toolkit/query';
32
+ import { QueryStatus } from '@reduxjs/toolkit/query';
33
+ import { QuerySubState } from '@reduxjs/toolkit/query';
34
+ import { reactHooksModuleName } from '@reduxjs/toolkit/query/react';
35
+ import { ReactNode } from 'react';
36
+ import { Reducer } from '@reduxjs/toolkit';
37
+ import { RefObject } from 'react';
38
+ import { RefreshApiResult } from '@1interface/shared-core';
39
+ import { RefreshRequest } from '@1interface/shared-core';
40
+ import { ResetPasswordRequest } from '@1interface/shared-core';
41
+ import { RootState as RootState_2 } from '@reduxjs/toolkit/query';
42
+ import { SerializedError } from '@reduxjs/toolkit';
43
+ import { SessionCreateRequest } from '@1interface/shared-core';
44
+ import { SessionRefreshResponse } from '@1interface/shared-core';
45
+ import { SessionResponse } from '@1interface/shared-core';
46
+ import { SetStateAction } from 'react';
47
+ import { SignInInitPayload } from '@1interface/shared-core';
48
+ import { SignupRequest } from '@1interface/shared-core';
49
+ import { skipToken } from '@reduxjs/toolkit/query';
50
+ import { SsoStartResponse } from '@1interface/shared-core';
51
+ import { Storage as Storage_2 } from '@1interface/shared-core';
52
+ import { StoreEnhancer } from '@reduxjs/toolkit';
53
+ import { SttImplementation } from '@1interface/shared-core';
54
+ import { SubscriptionOptions } from '@reduxjs/toolkit/query';
55
+ import { ThunkDispatch } from '@reduxjs/toolkit';
56
+ import { TokenRefreshResult } from '@1interface/shared-core';
57
+ import { TSHelpersId } from '@reduxjs/toolkit/query';
58
+ import { TSHelpersNoInfer } from '@reduxjs/toolkit/query';
59
+ import { Tuple } from '@reduxjs/toolkit';
60
+ import { UnknownAction } from '@reduxjs/toolkit';
61
+ import { UnsubscribeListener } from '@reduxjs/toolkit';
62
+ import { UserResponse } from '@1interface/shared-core';
63
+
64
+ export declare interface AdapterConfig {
65
+ getAuthToken: () => string | null;
66
+ getCustomHeaders: () => Record<string, string>;
67
+ getStreamUrl: (conversationId: string) => string;
68
+ getInitialStreamUrl: (conversationId: string) => string;
69
+ getDebugUrl: () => string;
70
+ ensureFreshToken?: () => Promise<void>;
71
+ forceRefreshToken?: () => Promise<boolean>;
72
+ onAuthExpired?: () => void;
73
+ }
74
+
75
+ export declare interface AdvanceChatMessageRendererProps {
76
+ msg: Message;
77
+ sendMessage?: (msg: string) => void;
78
+ isAgentWorking?: boolean;
79
+ isWidgetDisabled?: boolean;
80
+ }
81
+
82
+ export declare class AguiAdapter implements ProtocolAdapter {
83
+ readonly type: ProtocolType;
84
+ private config;
85
+ constructor(config: AdapterConfig);
86
+ streamMessage(params: StreamMessageParams): StreamHandle;
87
+ streamInitial(params: StreamInitialParams): StreamHandle;
88
+ normalizeEvent(raw: unknown): NormalizedEvent;
89
+ private mapEventType;
90
+ private mapStateSnapshot;
91
+ private mapCustomEvent;
92
+ private createStreamHandle;
93
+ }
94
+
95
+ export declare const apiBridge: BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>;
96
+
97
+ export declare const apiMiddleware: (Middleware< {}, RootState_2< {
98
+ getConversationHistory: QueryDefinition< {
99
+ skip?: number;
100
+ limit?: number;
101
+ }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
102
+ conversations: any[];
103
+ }, "chatApi", unknown>;
104
+ getConversationById: QueryDefinition< {
105
+ conversationId: string;
106
+ skip?: number;
107
+ limit?: number;
108
+ }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", any, "chatApi", unknown>;
109
+ createConversatons: MutationDefinition< {
110
+ protocol: ProtocolType;
111
+ body?: any;
112
+ }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", any, "chatApi", unknown>;
113
+ transcribeAudio: MutationDefinition< {
114
+ audioFile: File;
115
+ }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
116
+ success: boolean;
117
+ data: {
118
+ text: string;
119
+ filename?: string;
120
+ };
121
+ }, "chatApi", unknown>;
122
+ getToolServers: QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
123
+ tool_servers: ToolServer[];
124
+ }, "chatApi", unknown>;
125
+ startToolServerOAuth: MutationDefinition<string, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
126
+ authorize_url: string;
127
+ }, "chatApi", unknown>;
128
+ deleteToolServerConnection: MutationDefinition<string, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", void, "chatApi", unknown>;
129
+ exchangeOAuthCode: MutationDefinition< {
130
+ code: string;
131
+ state: string;
132
+ }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", void, "chatApi", unknown>;
133
+ deleteConversation: MutationDefinition< {
134
+ conversationId: string;
135
+ }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", any, "chatApi", unknown>;
136
+ }, string, "chatApi">, ThunkDispatch<any, any, UnknownAction>> | Middleware< {}, RootState_2< {
137
+ getBranding: QueryDefinition<string, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, never, AppBrandingResponse, "brandingApi", unknown>;
138
+ }, string, "brandingApi">, ThunkDispatch<any, any, UnknownAction>> | Middleware< {}, RootState_2< {
139
+ getConfig: QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, never, ClientConfigResponse, "configApi", unknown>;
140
+ }, string, "configApi">, ThunkDispatch<any, any, UnknownAction>> | Middleware< {}, RootState_2< {
141
+ getProfile: QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "profile", Profile, "profileApi", unknown>;
142
+ updateProfile: MutationDefinition<UpdateProfilePayload, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "profile", void, "profileApi", unknown>;
143
+ deleteAccount: MutationDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "profile", void, "profileApi", unknown>;
144
+ }, string, "profileApi">, ThunkDispatch<any, any, UnknownAction>>)[];
145
+
146
+ export declare const apiReducers: {
147
+ chatApi: Reducer<CombinedState< {
148
+ getConversationHistory: QueryDefinition< {
149
+ skip?: number;
150
+ limit?: number;
151
+ }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
152
+ conversations: any[];
153
+ }, "chatApi", unknown>;
154
+ getConversationById: QueryDefinition< {
155
+ conversationId: string;
156
+ skip?: number;
157
+ limit?: number;
158
+ }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", any, "chatApi", unknown>;
159
+ createConversatons: MutationDefinition< {
160
+ protocol: ProtocolType;
161
+ body?: any;
162
+ }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", any, "chatApi", unknown>;
163
+ transcribeAudio: MutationDefinition< {
164
+ audioFile: File;
165
+ }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
166
+ success: boolean;
167
+ data: {
168
+ text: string;
169
+ filename?: string;
170
+ };
171
+ }, "chatApi", unknown>;
172
+ getToolServers: QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
173
+ tool_servers: ToolServer[];
174
+ }, "chatApi", unknown>;
175
+ startToolServerOAuth: MutationDefinition<string, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
176
+ authorize_url: string;
177
+ }, "chatApi", unknown>;
178
+ deleteToolServerConnection: MutationDefinition<string, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", void, "chatApi", unknown>;
179
+ exchangeOAuthCode: MutationDefinition< {
180
+ code: string;
181
+ state: string;
182
+ }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", void, "chatApi", unknown>;
183
+ deleteConversation: MutationDefinition< {
184
+ conversationId: string;
185
+ }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", any, "chatApi", unknown>;
186
+ }, "chat" | "toolServers", "chatApi">, UnknownAction>;
187
+ brandingApi: Reducer<CombinedState< {
188
+ getBranding: QueryDefinition<string, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, never, AppBrandingResponse, "brandingApi", unknown>;
189
+ }, never, "brandingApi">, UnknownAction>;
190
+ configApi: Reducer<CombinedState< {
191
+ getConfig: QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, never, ClientConfigResponse, "configApi", unknown>;
192
+ }, never, "configApi">, UnknownAction>;
193
+ profileApi: Reducer<CombinedState< {
194
+ getProfile: QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "profile", Profile, "profileApi", unknown>;
195
+ updateProfile: MutationDefinition<UpdateProfilePayload, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "profile", void, "profileApi", unknown>;
196
+ deleteAccount: MutationDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "profile", void, "profileApi", unknown>;
197
+ }, "profile", "profileApi">, UnknownAction>;
198
+ };
199
+
200
+ export declare type AppDispatch = typeof store.dispatch;
201
+
202
+ export declare class AudioRecorder {
203
+ private mediaRecorder;
204
+ private audioChunks;
205
+ private stream;
206
+ private audioContext;
207
+ private analyser;
208
+ private dataArray;
209
+ private animationFrameId;
210
+ private onAudioLevel?;
211
+ startRecording(onAudioLevel?: (level: number) => void): Promise<void>;
212
+ stopRecording(): Promise<File>;
213
+ private analyzeAudio;
214
+ private getSupportedMimeType;
215
+ cleanup(): void;
216
+ }
217
+
218
+ export declare function bindChatLogger(getState: () => RootState): void;
219
+
220
+ export declare const brandingApi: Api<BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, {
221
+ getBranding: QueryDefinition<string, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, never, AppBrandingResponse, "brandingApi", unknown>;
222
+ }, "brandingApi", never, coreModuleName | reactHooksModuleName>;
223
+
224
+ export declare const BREAKPOINTS: {
225
+ readonly SM: 640;
226
+ readonly MD: 768;
227
+ readonly LG: 1024;
228
+ readonly XL: 1280;
229
+ readonly XXL: 1536;
230
+ };
231
+
232
+ export declare interface BridgeContext {
233
+ bridgeName: string;
234
+ requestId: string;
235
+ startTime: number;
236
+ api: {
237
+ getState: () => unknown;
238
+ dispatch: (action: unknown) => unknown;
239
+ signal: AbortSignal;
240
+ abort: (reason?: string) => void;
241
+ endpoint: string;
242
+ type: 'query' | 'mutation';
243
+ forced?: boolean;
244
+ };
245
+ extraOptions: BridgeExtraOptions;
246
+ }
247
+
248
+ export declare function bridgedFetch<T = any>(options: BridgedFetchOptions): Promise<BridgedFetchResult<T>>;
249
+
250
+ declare interface BridgedFetchOptions {
251
+ url: string;
252
+ method?: string;
253
+ body?: BodyInit | object | null;
254
+ headers?: Record<string, string>;
255
+ skipAuth?: boolean;
256
+ skipLogging?: boolean;
257
+ skipContentType?: boolean;
258
+ responseHandler?: "json" | "blob" | "text";
259
+ signal?: AbortSignal;
260
+ keepalive?: boolean;
261
+ }
262
+
263
+ declare interface BridgedFetchResult<T = any> {
264
+ data?: T;
265
+ error?: {
266
+ status: number | string;
267
+ data: any;
268
+ };
269
+ response?: Response;
270
+ }
271
+
272
+ export declare interface BridgeExtraOptions {
273
+ bridge?: BridgeRequestOptions;
274
+ [key: string]: unknown;
275
+ }
276
+
277
+ export declare interface BridgeRequestOptions {
278
+ skipAuth?: boolean;
279
+ skipLogging?: boolean;
280
+ skipErrorToast?: boolean;
281
+ skipTokenRefresh?: boolean;
282
+ retry?: {
283
+ maxRetries?: number;
284
+ backoffMs?: number;
285
+ };
286
+ customHeaders?: Record<string, string>;
287
+ }
288
+
289
+ export declare function buildBrandSkin(styles: ChatThemeStyles, resolvedTheme: "light" | "dark"): PaymentSkin;
290
+
291
+ export declare function buildCallbackUrl(givenId?: string | null): string;
292
+
293
+ export declare const CHAT_INPUT_MODES: {
294
+ readonly NORMAL: "normal";
295
+ readonly RECORDING: "recording";
296
+ readonly TRANSCRIBING: "transcribing";
297
+ };
298
+
299
+ export declare const chatApi: Api<BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, {
300
+ getConversationHistory: QueryDefinition< {
301
+ skip?: number;
302
+ limit?: number;
303
+ }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
304
+ conversations: any[];
305
+ }, "chatApi", unknown>;
306
+ getConversationById: QueryDefinition< {
307
+ conversationId: string;
308
+ skip?: number;
309
+ limit?: number;
310
+ }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", any, "chatApi", unknown>;
311
+ createConversatons: MutationDefinition< {
312
+ protocol: ProtocolType;
313
+ body?: any;
314
+ }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", any, "chatApi", unknown>;
315
+ transcribeAudio: MutationDefinition< {
316
+ audioFile: File;
317
+ }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
318
+ success: boolean;
319
+ data: {
320
+ text: string;
321
+ filename?: string;
322
+ };
323
+ }, "chatApi", unknown>;
324
+ getToolServers: QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
325
+ tool_servers: ToolServer[];
326
+ }, "chatApi", unknown>;
327
+ startToolServerOAuth: MutationDefinition<string, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
328
+ authorize_url: string;
329
+ }, "chatApi", unknown>;
330
+ deleteToolServerConnection: MutationDefinition<string, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", void, "chatApi", unknown>;
331
+ exchangeOAuthCode: MutationDefinition< {
332
+ code: string;
333
+ state: string;
334
+ }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", void, "chatApi", unknown>;
335
+ deleteConversation: MutationDefinition< {
336
+ conversationId: string;
337
+ }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", any, "chatApi", unknown>;
338
+ }, "chatApi", "chat" | "toolServers", coreModuleName | reactHooksModuleName>;
339
+
340
+ export declare interface ChatCallbacks {
341
+ onConversationChange?: (conversationId: string | null) => void;
342
+ onConversationTitleChange?: (conversationId: string | null, conversationTitle: string | null) => void;
343
+ onMessagesChange?: (messages: Message[]) => void;
344
+ onLogoutRequested?: () => void;
345
+ }
346
+
347
+ export declare const ChatCallbacksContext: Context<ChatCallbacks>;
348
+
349
+ export declare const chatCoreRootReducer: Reducer< {
350
+ auth: AuthState;
351
+ chat: {
352
+ isAgentWorking: boolean;
353
+ statusText: string | null;
354
+ responseStartTime: number | null;
355
+ messageQueue: {
356
+ id: string;
357
+ text: string;
358
+ queuedAt: string;
359
+ }[];
360
+ };
361
+ conversations: {
362
+ activeConversationId: string | null;
363
+ titles: {
364
+ [x: string]: string;
365
+ };
366
+ };
367
+ indicator: {
368
+ lastResponseTime: number | null;
369
+ };
370
+ chatApi: CombinedState< {
371
+ getConversationHistory: QueryDefinition< {
372
+ skip?: number;
373
+ limit?: number;
374
+ }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
375
+ conversations: any[];
376
+ }, "chatApi", unknown>;
377
+ getConversationById: QueryDefinition< {
378
+ conversationId: string;
379
+ skip?: number;
380
+ limit?: number;
381
+ }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", any, "chatApi", unknown>;
382
+ createConversatons: MutationDefinition< {
383
+ protocol: ProtocolType;
384
+ body?: any;
385
+ }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", any, "chatApi", unknown>;
386
+ transcribeAudio: MutationDefinition< {
387
+ audioFile: File;
388
+ }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
389
+ success: boolean;
390
+ data: {
391
+ text: string;
392
+ filename?: string;
393
+ };
394
+ }, "chatApi", unknown>;
395
+ getToolServers: QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
396
+ tool_servers: ToolServer[];
397
+ }, "chatApi", unknown>;
398
+ startToolServerOAuth: MutationDefinition<string, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
399
+ authorize_url: string;
400
+ }, "chatApi", unknown>;
401
+ deleteToolServerConnection: MutationDefinition<string, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", void, "chatApi", unknown>;
402
+ exchangeOAuthCode: MutationDefinition< {
403
+ code: string;
404
+ state: string;
405
+ }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", void, "chatApi", unknown>;
406
+ deleteConversation: MutationDefinition< {
407
+ conversationId: string;
408
+ }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", any, "chatApi", unknown>;
409
+ }, "chat" | "toolServers", "chatApi">;
410
+ brandingApi: CombinedState< {
411
+ getBranding: QueryDefinition<string, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, never, AppBrandingResponse, "brandingApi", unknown>;
412
+ }, never, "brandingApi">;
413
+ configApi: CombinedState< {
414
+ getConfig: QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, never, ClientConfigResponse, "configApi", unknown>;
415
+ }, never, "configApi">;
416
+ profileApi: CombinedState< {
417
+ getProfile: QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "profile", Profile, "profileApi", unknown>;
418
+ updateProfile: MutationDefinition<UpdateProfilePayload, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "profile", void, "profileApi", unknown>;
419
+ deleteAccount: MutationDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "profile", void, "profileApi", unknown>;
420
+ }, "profile", "profileApi">;
421
+ }, UnknownAction, Partial<{
422
+ auth: AuthState;
423
+ chat: {
424
+ isAgentWorking: boolean;
425
+ statusText: string | null;
426
+ responseStartTime: number | null;
427
+ messageQueue: {
428
+ id: string;
429
+ text: string;
430
+ queuedAt: string;
431
+ }[];
432
+ };
433
+ conversations: {
434
+ activeConversationId: string | null;
435
+ titles: {
436
+ [x: string]: string;
437
+ };
438
+ };
439
+ indicator: {
440
+ lastResponseTime: number | null;
441
+ };
442
+ chatApi: CombinedState< {
443
+ getConversationHistory: QueryDefinition< {
444
+ skip?: number;
445
+ limit?: number;
446
+ }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
447
+ conversations: any[];
448
+ }, "chatApi", unknown>;
449
+ getConversationById: QueryDefinition< {
450
+ conversationId: string;
451
+ skip?: number;
452
+ limit?: number;
453
+ }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", any, "chatApi", unknown>;
454
+ createConversatons: MutationDefinition< {
455
+ protocol: ProtocolType;
456
+ body?: any;
457
+ }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", any, "chatApi", unknown>;
458
+ transcribeAudio: MutationDefinition< {
459
+ audioFile: File;
460
+ }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
461
+ success: boolean;
462
+ data: {
463
+ text: string;
464
+ filename?: string;
465
+ };
466
+ }, "chatApi", unknown>;
467
+ getToolServers: QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
468
+ tool_servers: ToolServer[];
469
+ }, "chatApi", unknown>;
470
+ startToolServerOAuth: MutationDefinition<string, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
471
+ authorize_url: string;
472
+ }, "chatApi", unknown>;
473
+ deleteToolServerConnection: MutationDefinition<string, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", void, "chatApi", unknown>;
474
+ exchangeOAuthCode: MutationDefinition< {
475
+ code: string;
476
+ state: string;
477
+ }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", void, "chatApi", unknown>;
478
+ deleteConversation: MutationDefinition< {
479
+ conversationId: string;
480
+ }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", any, "chatApi", unknown>;
481
+ }, "chat" | "toolServers", "chatApi">;
482
+ brandingApi: CombinedState< {
483
+ getBranding: QueryDefinition<string, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, never, AppBrandingResponse, "brandingApi", unknown>;
484
+ }, never, "brandingApi">;
485
+ configApi: CombinedState< {
486
+ getConfig: QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, never, ClientConfigResponse, "configApi", unknown>;
487
+ }, never, "configApi">;
488
+ profileApi: CombinedState< {
489
+ getProfile: QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "profile", Profile, "profileApi", unknown>;
490
+ updateProfile: MutationDefinition<UpdateProfilePayload, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "profile", void, "profileApi", unknown>;
491
+ deleteAccount: MutationDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "profile", void, "profileApi", unknown>;
492
+ }, "profile", "profileApi">;
493
+ }>>;
494
+
495
+ export declare interface ChatIndicator {
496
+ isAgentWorking: boolean;
497
+ statusText?: string;
498
+ responseStartTime: number | null;
499
+ lastResponseTime: number | null;
500
+ }
501
+
502
+ export declare interface ChatInnerMsgProps {
503
+ msg: Message;
504
+ isEmptyMessage: (v: any) => boolean;
505
+ }
506
+
507
+ export declare type ChatInputMode = (typeof CHAT_INPUT_MODES)[keyof typeof CHAT_INPUT_MODES];
508
+
509
+ export declare const chatLoggerContextProvider: LoggerContextProvider;
510
+
511
+ export declare interface ChatProps {
512
+ baseUrl: string;
513
+ customHeaders?: Record<string, string>;
514
+ token?: string | null;
515
+ user?: {
516
+ name?: string;
517
+ email?: string;
518
+ } | null;
519
+ onConversationChange?: (conversationId: string | null) => void;
520
+ onConversationTitleChange?: (conversationId: string | null, conversationTitle: string | null) => void;
521
+ onMessagesChange?: (messages: Message[]) => void;
522
+ protocol?: ProtocolType_2;
523
+ paymentProvider?: PaymentProviderType;
524
+ onLogoutRequested?: () => void;
525
+ onSessionExpired?: () => Promise<TokenRefreshResult | null>;
526
+ envName?: string;
527
+ buildTag?: string;
528
+ }
529
+
530
+ export declare const chatReducer: Reducer< {
531
+ isAgentWorking: boolean;
532
+ statusText: string | null;
533
+ responseStartTime: number | null;
534
+ messageQueue: {
535
+ id: string;
536
+ text: string;
537
+ queuedAt: string;
538
+ }[];
539
+ }>;
540
+
541
+ export declare interface ChatSettings {
542
+ enableTts: boolean;
543
+ setEnableTts: (v: boolean) => void;
544
+ debugMode: boolean;
545
+ setDebugMode: (v: boolean) => void;
546
+ locationEnabled: boolean;
547
+ setLocationEnabled: (v: boolean) => void;
548
+ autoSendVoice: boolean;
549
+ setAutoSendVoice: (v: boolean) => void;
550
+ sttImplementation: SttImplementation;
551
+ setSttImplementation: (v: SttImplementation) => void;
552
+ sendDiagnostics: boolean;
553
+ setSendDiagnostics: (v: boolean) => void;
554
+ }
555
+
556
+ export declare const ChatSettingsContext: Context<ChatSettings>;
557
+
558
+ export declare interface ChatState {
559
+ isAgentWorking: boolean;
560
+ statusText: string | null;
561
+ responseStartTime: number | null;
562
+ messageQueue: QueuedMessage[];
563
+ }
564
+
565
+ export declare function checkOrganizationExistsApi(): Promise<OrgCheckResult>;
566
+
567
+ export declare const clearMessageQueue: ActionCreatorWithoutPayload<"chat/clearMessageQueue">;
568
+
569
+ export declare interface ClientConfig {
570
+ conversations: ConversationsConfig;
571
+ voice_agent: VoiceAgentConfig;
572
+ features?: string[];
573
+ }
574
+
575
+ export declare interface ClientConfigResponse {
576
+ success: boolean;
577
+ data: ClientConfig | null;
578
+ }
579
+
580
+ export declare const configApi: Api<BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, {
581
+ getConfig: QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, never, ClientConfigResponse, "configApi", unknown>;
582
+ }, "configApi", never, coreModuleName | reactHooksModuleName>;
583
+
584
+ export declare const ConfigurationContext: Context<ConfigurationContextValue>;
585
+
586
+ export declare interface ConfigurationContextValue {
587
+ clientConfig: ClientConfig;
588
+ isLoading: boolean;
589
+ error: Error | null;
590
+ }
591
+
592
+ export declare interface Connector {
593
+ id: string;
594
+ name: string;
595
+ description: string;
596
+ initials: string;
597
+ accentTextColor: string;
598
+ logoUrl?: string;
599
+ connected: boolean;
600
+ }
601
+
602
+ declare interface Conversation {
603
+ id: string;
604
+ title: string;
605
+ created_at: string;
606
+ updated_at: string;
607
+ }
608
+
609
+ export declare const CONVERSATION_TITLE_REFRESH_DELAYS_MS: readonly [500, 1500, 3000];
610
+
611
+ export declare interface ConversationsConfig {
612
+ disable_old_widgets: boolean;
613
+ allow_conversation_deletion?: boolean;
614
+ }
615
+
616
+ export declare const conversationsReducer: Reducer< {
617
+ activeConversationId: string | null;
618
+ titles: {
619
+ [x: string]: string;
620
+ };
621
+ }>;
622
+
623
+ export declare interface ConversationsState {
624
+ activeConversationId: string | null;
625
+ titles: Record<string, string>;
626
+ }
627
+
628
+ export declare function createAdapter(type: ProtocolType, config: AdapterConfig): ProtocolAdapter;
629
+
630
+ export declare function createDefaultAdapterConfig(opts?: {
631
+ onAuthExpired?: () => void;
632
+ }): AdapterConfig;
633
+
634
+ export declare function createSessionRefresher(store: SessionStoreLike): () => Promise<TokenRefreshResult | null>;
635
+
636
+ export declare const DEFAULT_CONVERSATION_TITLE = "New Conversation";
637
+
638
+ export declare const DEFAULT_PAYMENT_PROVIDER: PaymentProviderType;
639
+
640
+ export declare const DEFAULT_PROTOCOL: ProtocolType;
641
+
642
+ export declare const dequeueMessage: ActionCreatorWithoutPayload<"chat/dequeueMessage">;
643
+
644
+ export declare const enqueueMessage: ActionCreatorWithOptionalPayload<QueuedMessage, "chat/enqueueMessage">;
645
+
646
+ export declare const ERROR_CODES: {
647
+ readonly NETWORK_ERROR: "NETWORK_ERROR";
648
+ readonly TIMEOUT: "TIMEOUT";
649
+ readonly PARSE_ERROR: "PARSE_ERROR";
650
+ readonly TOKEN_EXPIRED: "TOKEN_EXPIRED";
651
+ readonly TOKEN_REFRESH_FAILED: "TOKEN_REFRESH_FAILED";
652
+ readonly UNAUTHORIZED: "UNAUTHORIZED";
653
+ readonly FORBIDDEN: "FORBIDDEN";
654
+ readonly NOT_FOUND: "NOT_FOUND";
655
+ readonly VALIDATION_ERROR: "VALIDATION_ERROR";
656
+ readonly SERVER_ERROR: "SERVER_ERROR";
657
+ readonly UNKNOWN: "UNKNOWN";
658
+ };
659
+
660
+ export declare class EventAggregator {
661
+ private segments;
662
+ private error;
663
+ private requestId;
664
+ private statusText;
665
+ private streamComplete;
666
+ private startTimestamp;
667
+ processEvent(event: NormalizedEvent): void;
668
+ private appendText;
669
+ toMessages(): Message[];
670
+ getStatusText(): string;
671
+ isStreamComplete(): boolean;
672
+ reset(): void;
673
+ }
674
+
675
+ export declare function fetchOrganizations(): Promise<Organization[]>;
676
+
677
+ export declare function forgotPasswordApi(payload: ForgotPasswordRequest): Promise<string | undefined>;
678
+
679
+ export declare function formatAmount(minorUnits: number | undefined, currency: string | undefined): string | null;
680
+
681
+ export declare function formatResultMessage(result: PaymentResult): string;
682
+
683
+ export declare const GENERIC_SERVER_ERROR_MESSAGE = "Something went wrong. Please try again.";
684
+
685
+ export declare function getApiErrorMessage(err: unknown, clientFallback?: string): string;
686
+
687
+ export declare function getAuthToken(): string | null;
688
+
689
+ export declare function getCachedLocation(storage: Storage_2): Promise<UserLocation | null>;
690
+
691
+ export declare const getLatestRequestId: () => string;
692
+
693
+ export declare const hasAnyExtraData: (msg: any) => boolean;
694
+
695
+ export declare function isApiServerError(err: unknown): boolean;
696
+
697
+ export declare const isEmptyMessage: (v: any) => boolean;
698
+
699
+ export declare function loginApi(email: string, password: string): Promise<AuthApiResult>;
700
+
701
+ export declare function logoutApi(payload: LogoutRequest, options?: {
702
+ keepalive?: boolean;
703
+ }): Promise<void>;
704
+
705
+ export declare const MAX_CONNECTION_RETRIES = 5;
706
+
707
+ export { Message }
708
+
709
+ export declare interface MessageArrival {
710
+ hasNew: boolean;
711
+ newMessages: Message[];
712
+ firstNewIndex: number;
713
+ lastIndex: number;
714
+ hasNewUserMessage: boolean;
715
+ hasNewWidget: boolean;
716
+ lastUserMessageIndex: number;
717
+ }
718
+
719
+ export declare const MOYASAR_CALLBACK_SENTINEL = "moyasar_cb";
720
+
721
+ export declare interface MoyasarCallbackResult {
722
+ result: PaymentResult;
723
+ conversationId: string | null;
724
+ }
725
+
726
+ export declare interface NormalizedEvent {
727
+ type: NormalizedEventType;
728
+ data: NormalizedEventData;
729
+ timestamp: number;
730
+ requestId?: string;
731
+ }
732
+
733
+ export declare type NormalizedEventData = {
734
+ text: string;
735
+ } | {
736
+ error: string;
737
+ text?: string;
738
+ } | {
739
+ widget: unknown;
740
+ } | {
741
+ statusText: string;
742
+ } | {
743
+ payment: PaymentInitPayload;
744
+ } | {
745
+ signIn: SignInInitPayload;
746
+ } | {
747
+ conversationTitle: string;
748
+ } | {
749
+ isEnd: true;
750
+ };
751
+
752
+ export declare type NormalizedEventType = 'text' | 'error' | 'widget' | 'status_update' | 'payment' | 'sign_in' | 'conversation_title' | 'stream_end';
753
+
754
+ export declare const OAUTH_ERROR_TYPE: "OAUTH_ERROR";
755
+
756
+ export declare const OAUTH_SUCCESS_TYPE: "OAUTH_SUCCESS";
757
+
758
+ export declare type OrgCheckResult = 'exists' | 'not-found' | 'error';
759
+
760
+ export declare const PAGINATION: {
761
+ readonly MESSAGE_PAGE_SIZE: 25;
762
+ };
763
+
764
+ export declare function parseMoyasarCallbackFromUrl(search: string): MoyasarCallbackResult | null;
765
+
766
+ export declare interface PaymentAdapter {
767
+ readonly type: PaymentProviderType;
768
+ readonly label: string;
769
+ readonly hideShellSubmit?: boolean;
770
+ readonly hideShellFooter?: boolean;
771
+ ProviderWrapper?: React.FC<{
772
+ children: ReactNode;
773
+ }>;
774
+ FormComponent: React.FC<PaymentFormProps>;
775
+ }
776
+
777
+ export declare interface PaymentConfirmHandle {
778
+ confirm: () => Promise<void>;
779
+ isConfirming: boolean;
780
+ }
781
+
782
+ export declare interface PaymentFormProps {
783
+ amount: number;
784
+ currency: string;
785
+ skin: PaymentSkin;
786
+ onReady?: () => void;
787
+ }
788
+
789
+ export declare type PaymentResult = {
790
+ status: "success";
791
+ provider: PaymentProviderType;
792
+ paymentId: string;
793
+ amount?: number;
794
+ currency?: string;
795
+ } | {
796
+ status: "failure";
797
+ provider: PaymentProviderType;
798
+ code?: string;
799
+ message: string;
800
+ paymentId?: string;
801
+ } | {
802
+ status: "cancel";
803
+ provider: PaymentProviderType;
804
+ };
805
+
806
+ export declare interface PaymentSkin {
807
+ pageBg: string;
808
+ cardBg: string;
809
+ text: string;
810
+ heading: string;
811
+ muted: string;
812
+ divider: string;
813
+ accent: string;
814
+ accentText: string;
815
+ focus: string;
816
+ pillBg: string;
817
+ pillBorder: string;
818
+ pillText: string;
819
+ cardShadow: string;
820
+ radius: number;
821
+ fontFamily: string;
822
+ colorScheme: "light" | "dark";
823
+ }
824
+
825
+ export declare interface Profile {
826
+ name: string;
827
+ email: string;
828
+ phone: string | null;
829
+ }
830
+
831
+ export declare const profileApi: Api<BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, {
832
+ getProfile: QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "profile", Profile, "profileApi", unknown>;
833
+ updateProfile: MutationDefinition<UpdateProfilePayload, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "profile", void, "profileApi", unknown>;
834
+ deleteAccount: MutationDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "profile", void, "profileApi", unknown>;
835
+ }, "profileApi", "profile", coreModuleName | reactHooksModuleName>;
836
+
837
+ export declare class ProprietaryAdapter implements ProtocolAdapter {
838
+ readonly type: ProtocolType;
839
+ private config;
840
+ constructor(config: AdapterConfig);
841
+ streamMessage(params: StreamMessageParams): StreamHandle;
842
+ streamInitial(params: StreamInitialParams): StreamHandle;
843
+ normalizeEvent(raw: unknown): NormalizedEvent;
844
+ private mapSSEEvent;
845
+ private createStreamHandle;
846
+ }
847
+
848
+ export declare interface ProtocolAdapter {
849
+ readonly type: ProtocolType;
850
+ streamMessage(params: StreamMessageParams): StreamHandle;
851
+ streamInitial(params: StreamInitialParams): StreamHandle;
852
+ normalizeEvent(raw: unknown): NormalizedEvent;
853
+ }
854
+
855
+ export declare const ProtocolContext: Context<ProtocolContextType>;
856
+
857
+ export declare interface ProtocolContextType {
858
+ adapter: ProtocolAdapter;
859
+ protocolType: ProtocolType;
860
+ }
861
+
862
+ export declare type ProtocolType = 'mtx' | 'agui';
863
+
864
+ declare type ProtocolType_2 = "mtx" | "agui";
865
+
866
+ export declare interface QueuedMessage {
867
+ id: string;
868
+ text: string;
869
+ queuedAt: string;
870
+ }
871
+
872
+ export declare function refreshTokenApi(payload: RefreshRequest): Promise<RefreshApiResult>;
873
+
874
+ export declare function resetChatLoggerForTests(): void;
875
+
876
+ export declare const resetChatState: ActionCreatorWithoutPayload<"chat/resetChatState">;
877
+
878
+ export declare function resetPasswordApi(payload: ResetPasswordRequest): Promise<string | undefined>;
879
+
880
+ export declare type RootState = ReturnType<typeof store.getState>;
881
+
882
+ declare type SendMessageFn = (text?: string) => Promise<void>;
883
+
884
+ declare type SendMessageFn_2 = (text?: string) => Promise<void>;
885
+
886
+ declare type SendMessageFn_3 = (text?: string) => Promise<void>;
887
+
888
+ export declare const serializableCheck: {
889
+ ignoredPaths: string[];
890
+ ignoredActions: string[];
891
+ ignoredActionPaths: string[];
892
+ };
893
+
894
+ export declare interface SessionStoreLike {
895
+ getState: () => unknown;
896
+ dispatch: (action: unknown) => unknown;
897
+ }
898
+
899
+ export declare const setActiveConversationId: ActionCreatorWithOptionalPayload<string, "conversations/setActiveConversationId">;
900
+
901
+ export declare const setIsAgentWorking: ActionCreatorWithOptionalPayload<boolean, "chat/setIsAgentWorking">;
902
+
903
+ export declare const setResponseStartTime: ActionCreatorWithOptionalPayload<number, "chat/setResponseStartTime">;
904
+
905
+ export declare const setStatusText: ActionCreatorWithOptionalPayload<string, "chat/setStatusText">;
906
+
907
+ export declare function shouldDisableMessage(message: Message, allMessages: Message[], disableOldWidgets: boolean): boolean;
908
+
909
+ export declare function signupApi(payload: SignupRequest): Promise<AuthApiResult>;
910
+
911
+ export declare enum SSEEventType {
912
+ START = "start",
913
+ TEXT = "text",
914
+ WIDGET = "widget",
915
+ STATUS_UPDATE = "status_update",
916
+ CLEAR_STATUS = "clear_status",
917
+ PAYMENT = "payment",
918
+ SIGN_IN = "sign_in",
919
+ CONVERSATION_TITLE = "conversation_title",
920
+ END = "end"
921
+ }
922
+
923
+ export declare function ssoExchangeApi(code: string, state: string): Promise<AuthApiResult>;
924
+
925
+ export declare function ssoStartApi(idpHint: IdpHint): Promise<SsoStartResponse>;
926
+
927
+ export declare interface StandardApiError {
928
+ status: number | 'FETCH_ERROR' | 'TIMEOUT_ERROR' | 'PARSING_ERROR' | 'CUSTOM_ERROR';
929
+ message: string;
930
+ data?: unknown;
931
+ code?: string;
932
+ meta?: {
933
+ url?: string;
934
+ method?: string;
935
+ timestamp: number;
936
+ duration?: number;
937
+ requestId?: string;
938
+ bridgeName?: string;
939
+ };
940
+ }
941
+
942
+ export declare interface StartConversationBody {
943
+ client_metadata?: StartConversationMetadata;
944
+ }
945
+
946
+ export declare interface StartConversationMetadata {
947
+ user_location?: UserLocation;
948
+ }
949
+
950
+ export declare const store: EnhancedStore< {
951
+ auth: AuthState;
952
+ chat: {
953
+ isAgentWorking: boolean;
954
+ statusText: string | null;
955
+ responseStartTime: number | null;
956
+ messageQueue: {
957
+ id: string;
958
+ text: string;
959
+ queuedAt: string;
960
+ }[];
961
+ };
962
+ conversations: {
963
+ activeConversationId: string | null;
964
+ titles: {
965
+ [x: string]: string;
966
+ };
967
+ };
968
+ indicator: {
969
+ lastResponseTime: number | null;
970
+ };
971
+ chatApi: CombinedState< {
972
+ getConversationHistory: QueryDefinition< {
973
+ skip?: number;
974
+ limit?: number;
975
+ }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
976
+ conversations: any[];
977
+ }, "chatApi", unknown>;
978
+ getConversationById: QueryDefinition< {
979
+ conversationId: string;
980
+ skip?: number;
981
+ limit?: number;
982
+ }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", any, "chatApi", unknown>;
983
+ createConversatons: MutationDefinition< {
984
+ protocol: ProtocolType;
985
+ body?: any;
986
+ }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", any, "chatApi", unknown>;
987
+ transcribeAudio: MutationDefinition< {
988
+ audioFile: File;
989
+ }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
990
+ success: boolean;
991
+ data: {
992
+ text: string;
993
+ filename?: string;
994
+ };
995
+ }, "chatApi", unknown>;
996
+ getToolServers: QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
997
+ tool_servers: ToolServer[];
998
+ }, "chatApi", unknown>;
999
+ startToolServerOAuth: MutationDefinition<string, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
1000
+ authorize_url: string;
1001
+ }, "chatApi", unknown>;
1002
+ deleteToolServerConnection: MutationDefinition<string, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", void, "chatApi", unknown>;
1003
+ exchangeOAuthCode: MutationDefinition< {
1004
+ code: string;
1005
+ state: string;
1006
+ }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", void, "chatApi", unknown>;
1007
+ deleteConversation: MutationDefinition< {
1008
+ conversationId: string;
1009
+ }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", any, "chatApi", unknown>;
1010
+ }, "chat" | "toolServers", "chatApi">;
1011
+ brandingApi: CombinedState< {
1012
+ getBranding: QueryDefinition<string, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, never, AppBrandingResponse, "brandingApi", unknown>;
1013
+ }, never, "brandingApi">;
1014
+ configApi: CombinedState< {
1015
+ getConfig: QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, never, ClientConfigResponse, "configApi", unknown>;
1016
+ }, never, "configApi">;
1017
+ profileApi: CombinedState< {
1018
+ getProfile: QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "profile", Profile, "profileApi", unknown>;
1019
+ updateProfile: MutationDefinition<UpdateProfilePayload, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "profile", void, "profileApi", unknown>;
1020
+ deleteAccount: MutationDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "profile", void, "profileApi", unknown>;
1021
+ }, "profile", "profileApi">;
1022
+ }, UnknownAction, Tuple<[StoreEnhancer< {
1023
+ dispatch: ((action: Action<"listenerMiddleware/add">) => UnsubscribeListener) & ThunkDispatch< {
1024
+ auth: AuthState;
1025
+ chat: {
1026
+ isAgentWorking: boolean;
1027
+ statusText: string | null;
1028
+ responseStartTime: number | null;
1029
+ messageQueue: {
1030
+ id: string;
1031
+ text: string;
1032
+ queuedAt: string;
1033
+ }[];
1034
+ };
1035
+ conversations: {
1036
+ activeConversationId: string | null;
1037
+ titles: {
1038
+ [x: string]: string;
1039
+ };
1040
+ };
1041
+ indicator: {
1042
+ lastResponseTime: number | null;
1043
+ };
1044
+ chatApi: CombinedState< {
1045
+ getConversationHistory: QueryDefinition< {
1046
+ skip?: number;
1047
+ limit?: number;
1048
+ }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
1049
+ conversations: any[];
1050
+ }, "chatApi", unknown>;
1051
+ getConversationById: QueryDefinition< {
1052
+ conversationId: string;
1053
+ skip?: number;
1054
+ limit?: number;
1055
+ }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", any, "chatApi", unknown>;
1056
+ createConversatons: MutationDefinition< {
1057
+ protocol: ProtocolType;
1058
+ body?: any;
1059
+ }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", any, "chatApi", unknown>;
1060
+ transcribeAudio: MutationDefinition< {
1061
+ audioFile: File;
1062
+ }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
1063
+ success: boolean;
1064
+ data: {
1065
+ text: string;
1066
+ filename?: string;
1067
+ };
1068
+ }, "chatApi", unknown>;
1069
+ getToolServers: QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
1070
+ tool_servers: ToolServer[];
1071
+ }, "chatApi", unknown>;
1072
+ startToolServerOAuth: MutationDefinition<string, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
1073
+ authorize_url: string;
1074
+ }, "chatApi", unknown>;
1075
+ deleteToolServerConnection: MutationDefinition<string, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", void, "chatApi", unknown>;
1076
+ exchangeOAuthCode: MutationDefinition< {
1077
+ code: string;
1078
+ state: string;
1079
+ }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", void, "chatApi", unknown>;
1080
+ deleteConversation: MutationDefinition< {
1081
+ conversationId: string;
1082
+ }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", any, "chatApi", unknown>;
1083
+ }, "chat" | "toolServers", "chatApi">;
1084
+ brandingApi: CombinedState< {
1085
+ getBranding: QueryDefinition<string, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, never, AppBrandingResponse, "brandingApi", unknown>;
1086
+ }, never, "brandingApi">;
1087
+ configApi: CombinedState< {
1088
+ getConfig: QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, never, ClientConfigResponse, "configApi", unknown>;
1089
+ }, never, "configApi">;
1090
+ profileApi: CombinedState< {
1091
+ getProfile: QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "profile", Profile, "profileApi", unknown>;
1092
+ updateProfile: MutationDefinition<UpdateProfilePayload, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "profile", void, "profileApi", unknown>;
1093
+ deleteAccount: MutationDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "profile", void, "profileApi", unknown>;
1094
+ }, "profile", "profileApi">;
1095
+ }, undefined, UnknownAction>;
1096
+ }>, StoreEnhancer]>>;
1097
+
1098
+ export declare interface StreamCallbacks {
1099
+ onEvent: (event: NormalizedEvent) => void;
1100
+ onError: (error: Error) => void;
1101
+ onComplete: () => void;
1102
+ }
1103
+
1104
+ export declare interface StreamHandle {
1105
+ subscribe(callbacks: StreamCallbacks): () => void;
1106
+ abort(): void;
1107
+ }
1108
+
1109
+ export declare interface StreamInitialParams {
1110
+ conversationId: string;
1111
+ body?: Record<string, unknown>;
1112
+ enableTts?: boolean;
1113
+ }
1114
+
1115
+ export declare interface StreamMessageParams {
1116
+ conversationId: string;
1117
+ message: string;
1118
+ enableTts?: boolean;
1119
+ debugMode?: boolean;
1120
+ }
1121
+
1122
+ export declare const THINKING_MESSAGES: {
1123
+ readonly INITIAL: readonly ["Working on it", "Just a moment", "Reviewing your request", "Looking into that", "One moment, please", "Checking"];
1124
+ readonly LATER: readonly ["Almost ready", "Gathering the details", "Finishing up", "Getting things in order", "Preparing your answer", "Wrapping this up"];
1125
+ readonly ROTATION_INTERVAL_MS: 3000;
1126
+ readonly PHASE_SWITCH_MS: 2500;
1127
+ };
1128
+
1129
+ export { TokenRefreshResult }
1130
+
1131
+ export declare interface ToolServer {
1132
+ id: string;
1133
+ name: string;
1134
+ logo_url?: string | null;
1135
+ description?: string | null;
1136
+ connected: boolean;
1137
+ }
1138
+
1139
+ export declare const TYPEWRITER_INTERVAL_MS = 28;
1140
+
1141
+ export declare interface UpdateProfilePayload {
1142
+ name?: string;
1143
+ phone?: string | null;
1144
+ }
1145
+
1146
+ export declare const upsertConversationTitle: ActionCreatorWithOptionalPayload< {
1147
+ id: string;
1148
+ title: string;
1149
+ }, "conversations/upsertConversationTitle">;
1150
+
1151
+ export declare function useActiveConversationTitle(): string | null;
1152
+
1153
+ export declare const useAuth: () => {
1154
+ user: UserResponse;
1155
+ accessToken: string;
1156
+ isAuthenticated: boolean;
1157
+ isLoading: boolean;
1158
+ tokenInfo: {
1159
+ isExpired: boolean;
1160
+ isAboutToExpire: boolean;
1161
+ expiresAt: number;
1162
+ timeUntilExpiry: number;
1163
+ timeUntilExpiryFormatted: string;
1164
+ };
1165
+ };
1166
+
1167
+ export declare const useChatCallbacks: () => ChatCallbacks;
1168
+
1169
+ export declare const useChatConnection: ({ conversationId, messages, setMessages, enableTts, userLocation, startSession, debugMode, onPaymentInit, onSignInInit, onConversationTitle, }: UseChatConnectionParams) => UseChatConnectionReturn;
1170
+
1171
+ declare interface UseChatConnectionParams {
1172
+ conversationId: string | null;
1173
+ messages: Message[];
1174
+ setMessages: React.Dispatch<React.SetStateAction<Message[]>>;
1175
+ enableTts?: boolean;
1176
+ userLocation?: UserLocation | null;
1177
+ startSession?: () => Promise<string | null>;
1178
+ debugMode?: boolean;
1179
+ onPaymentInit?: (init: PaymentInitPayload) => void;
1180
+ onSignInInit?: (init: SignInInitPayload) => void;
1181
+ onConversationTitle?: (title: string) => void;
1182
+ }
1183
+
1184
+ declare interface UseChatConnectionReturn {
1185
+ sendMessage: (inputMsg?: string) => Promise<void>;
1186
+ startInitialStream: (conversationId: string, location?: UserLocation | null) => Promise<void>;
1187
+ setThinkingState: (thinking: boolean) => void;
1188
+ abortStream: () => void;
1189
+ toolCallStatus: string;
1190
+ isProcessThinkingState: boolean;
1191
+ hasReceivedResponse: boolean;
1192
+ }
1193
+
1194
+ export declare function useChatHistory({ activeConversationId, onSelectConversation, onClearChat, }: UseChatHistoryParams): {
1195
+ conversations: Conversation[];
1196
+ isLoading: boolean;
1197
+ isLoadingMore: boolean;
1198
+ hasMore: boolean;
1199
+ isDeleting: boolean;
1200
+ searchQuery: string;
1201
+ setSearchQuery: Dispatch<SetStateAction<string>>;
1202
+ loadConversations: (mode: "replace" | "append" | "silent") => Promise<void>;
1203
+ deleteConversation: (conversationId: string) => Promise<void>;
1204
+ isLoadingMoreRef: RefObject<boolean>;
1205
+ };
1206
+
1207
+ declare interface UseChatHistoryParams {
1208
+ activeConversationId?: string | null;
1209
+ onSelectConversation: (id: string, title?: string | null) => void;
1210
+ onClearChat?: () => void;
1211
+ }
1212
+
1213
+ export declare const useChatInput: ({ onSend, disabled, transcribedText, onTranscribedTextUsed, isRecording, isTranscribing, }: UseChatInputParams) => UseChatInputResult;
1214
+
1215
+ export declare interface UseChatInputParams {
1216
+ onSend: (text: string) => void;
1217
+ disabled?: boolean;
1218
+ transcribedText?: string | null;
1219
+ onTranscribedTextUsed?: () => void;
1220
+ isRecording?: boolean;
1221
+ isTranscribing?: boolean;
1222
+ }
1223
+
1224
+ export declare interface UseChatInputResult {
1225
+ value: string;
1226
+ setValue: (value: string) => void;
1227
+ send: () => void;
1228
+ canSend: boolean;
1229
+ mode: ChatInputMode;
1230
+ }
1231
+
1232
+ export declare const useChatSettings: () => ChatSettings;
1233
+
1234
+ export declare const useConfiguration: () => ConfigurationContextValue;
1235
+
1236
+ export declare const useConfigurationValue: () => ConfigurationContextValue;
1237
+
1238
+ export declare function useConnectors(): UseConnectorsResult;
1239
+
1240
+ declare interface UseConnectorsResult {
1241
+ connectors: Connector[];
1242
+ isLoading: boolean;
1243
+ disconnect: (connectorId: string) => void;
1244
+ }
1245
+
1246
+ export declare const useContainerQuery: (breakpoint: number) => {
1247
+ containerRef: RefObject<HTMLDivElement>;
1248
+ isDesktop: boolean;
1249
+ };
1250
+
1251
+ export declare const useConversation: () => UseConversationReturn;
1252
+
1253
+ declare interface UseConversationReturn {
1254
+ conversationId: string | null;
1255
+ setConversationId: (id: string | null) => void;
1256
+ conversationTitle: string | null;
1257
+ setConversationTitle: (title: string | null) => void;
1258
+ messages: Message[];
1259
+ setMessages: React.Dispatch<React.SetStateAction<Message[]>>;
1260
+ isLoadingCreateConversation: boolean;
1261
+ hasMoreMessages: boolean;
1262
+ isLoadingMoreMessages: boolean;
1263
+ startSession: () => Promise<string | null>;
1264
+ loadConversation: (conversationId: string, titleHint?: string | null) => Promise<boolean>;
1265
+ loadConversationTitle: (conversationId?: string | null) => Promise<string | null>;
1266
+ loadMoreMessages: () => Promise<void>;
1267
+ resetConversation: () => void;
1268
+ }
1269
+
1270
+ export declare const useCreateConversatonsMutation: <R extends Record<string, any> = ({
1271
+ requestId?: undefined;
1272
+ status: QueryStatus.uninitialized;
1273
+ data?: undefined;
1274
+ error?: undefined;
1275
+ endpointName?: string;
1276
+ startedTimeStamp?: undefined;
1277
+ fulfilledTimeStamp?: undefined;
1278
+ } & {
1279
+ status: QueryStatus.uninitialized;
1280
+ isUninitialized: true;
1281
+ isLoading: false;
1282
+ isSuccess: false;
1283
+ isError: false;
1284
+ }) | ({
1285
+ status: QueryStatus.fulfilled;
1286
+ } & Omit<{
1287
+ requestId: string;
1288
+ data?: any;
1289
+ error?: FetchBaseQueryError | SerializedError;
1290
+ endpointName: string;
1291
+ startedTimeStamp: number;
1292
+ fulfilledTimeStamp?: number;
1293
+ }, "data" | "fulfilledTimeStamp"> & Required<Pick<{
1294
+ requestId: string;
1295
+ data?: any;
1296
+ error?: FetchBaseQueryError | SerializedError;
1297
+ endpointName: string;
1298
+ startedTimeStamp: number;
1299
+ fulfilledTimeStamp?: number;
1300
+ }, "data" | "fulfilledTimeStamp">> & {
1301
+ error: undefined;
1302
+ } & {
1303
+ status: QueryStatus.fulfilled;
1304
+ isUninitialized: false;
1305
+ isLoading: false;
1306
+ isSuccess: true;
1307
+ isError: false;
1308
+ }) | ({
1309
+ status: QueryStatus.pending;
1310
+ } & {
1311
+ requestId: string;
1312
+ data?: any;
1313
+ error?: FetchBaseQueryError | SerializedError;
1314
+ endpointName: string;
1315
+ startedTimeStamp: number;
1316
+ fulfilledTimeStamp?: number;
1317
+ } & {
1318
+ data?: undefined;
1319
+ } & {
1320
+ status: QueryStatus.pending;
1321
+ isUninitialized: false;
1322
+ isLoading: true;
1323
+ isSuccess: false;
1324
+ isError: false;
1325
+ }) | ({
1326
+ status: QueryStatus.rejected;
1327
+ } & Omit<{
1328
+ requestId: string;
1329
+ data?: any;
1330
+ error?: FetchBaseQueryError | SerializedError;
1331
+ endpointName: string;
1332
+ startedTimeStamp: number;
1333
+ fulfilledTimeStamp?: number;
1334
+ }, "error"> & Required<Pick<{
1335
+ requestId: string;
1336
+ data?: any;
1337
+ error?: FetchBaseQueryError | SerializedError;
1338
+ endpointName: string;
1339
+ startedTimeStamp: number;
1340
+ fulfilledTimeStamp?: number;
1341
+ }, "error">> & {
1342
+ status: QueryStatus.rejected;
1343
+ isUninitialized: false;
1344
+ isLoading: false;
1345
+ isSuccess: false;
1346
+ isError: true;
1347
+ })>(options?: {
1348
+ selectFromResult?: (state: ({
1349
+ requestId?: undefined;
1350
+ status: QueryStatus.uninitialized;
1351
+ data?: undefined;
1352
+ error?: undefined;
1353
+ endpointName?: string;
1354
+ startedTimeStamp?: undefined;
1355
+ fulfilledTimeStamp?: undefined;
1356
+ } & {
1357
+ status: QueryStatus.uninitialized;
1358
+ isUninitialized: true;
1359
+ isLoading: false;
1360
+ isSuccess: false;
1361
+ isError: false;
1362
+ }) | ({
1363
+ status: QueryStatus.fulfilled;
1364
+ } & Omit<{
1365
+ requestId: string;
1366
+ data?: any;
1367
+ error?: FetchBaseQueryError | SerializedError;
1368
+ endpointName: string;
1369
+ startedTimeStamp: number;
1370
+ fulfilledTimeStamp?: number;
1371
+ }, "data" | "fulfilledTimeStamp"> & Required<Pick<{
1372
+ requestId: string;
1373
+ data?: any;
1374
+ error?: FetchBaseQueryError | SerializedError;
1375
+ endpointName: string;
1376
+ startedTimeStamp: number;
1377
+ fulfilledTimeStamp?: number;
1378
+ }, "data" | "fulfilledTimeStamp">> & {
1379
+ error: undefined;
1380
+ } & {
1381
+ status: QueryStatus.fulfilled;
1382
+ isUninitialized: false;
1383
+ isLoading: false;
1384
+ isSuccess: true;
1385
+ isError: false;
1386
+ }) | ({
1387
+ status: QueryStatus.pending;
1388
+ } & {
1389
+ requestId: string;
1390
+ data?: any;
1391
+ error?: FetchBaseQueryError | SerializedError;
1392
+ endpointName: string;
1393
+ startedTimeStamp: number;
1394
+ fulfilledTimeStamp?: number;
1395
+ } & {
1396
+ data?: undefined;
1397
+ } & {
1398
+ status: QueryStatus.pending;
1399
+ isUninitialized: false;
1400
+ isLoading: true;
1401
+ isSuccess: false;
1402
+ isError: false;
1403
+ }) | ({
1404
+ status: QueryStatus.rejected;
1405
+ } & Omit<{
1406
+ requestId: string;
1407
+ data?: any;
1408
+ error?: FetchBaseQueryError | SerializedError;
1409
+ endpointName: string;
1410
+ startedTimeStamp: number;
1411
+ fulfilledTimeStamp?: number;
1412
+ }, "error"> & Required<Pick<{
1413
+ requestId: string;
1414
+ data?: any;
1415
+ error?: FetchBaseQueryError | SerializedError;
1416
+ endpointName: string;
1417
+ startedTimeStamp: number;
1418
+ fulfilledTimeStamp?: number;
1419
+ }, "error">> & {
1420
+ status: QueryStatus.rejected;
1421
+ isUninitialized: false;
1422
+ isLoading: false;
1423
+ isSuccess: false;
1424
+ isError: true;
1425
+ })) => R;
1426
+ fixedCacheKey?: string;
1427
+ }) => readonly [(arg: {
1428
+ protocol: ProtocolType;
1429
+ body?: any;
1430
+ }) => MutationActionCreatorResult<MutationDefinition< {
1431
+ protocol: ProtocolType;
1432
+ body?: any;
1433
+ }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", any, "chatApi", unknown>>, TSHelpersNoInfer<R> & {
1434
+ originalArgs?: {
1435
+ protocol: ProtocolType;
1436
+ body?: any;
1437
+ };
1438
+ reset: () => void;
1439
+ }];
1440
+
1441
+ export declare const useDeleteAccountMutation: <R extends Record<string, any> = ({
1442
+ requestId?: undefined;
1443
+ status: QueryStatus.uninitialized;
1444
+ data?: undefined;
1445
+ error?: undefined;
1446
+ endpointName?: string;
1447
+ startedTimeStamp?: undefined;
1448
+ fulfilledTimeStamp?: undefined;
1449
+ } & {
1450
+ status: QueryStatus.uninitialized;
1451
+ isUninitialized: true;
1452
+ isLoading: false;
1453
+ isSuccess: false;
1454
+ isError: false;
1455
+ }) | ({
1456
+ status: QueryStatus.fulfilled;
1457
+ } & Omit<{
1458
+ requestId: string;
1459
+ data?: void;
1460
+ error?: FetchBaseQueryError | SerializedError;
1461
+ endpointName: string;
1462
+ startedTimeStamp: number;
1463
+ fulfilledTimeStamp?: number;
1464
+ }, "data" | "fulfilledTimeStamp"> & Required<Pick<{
1465
+ requestId: string;
1466
+ data?: void;
1467
+ error?: FetchBaseQueryError | SerializedError;
1468
+ endpointName: string;
1469
+ startedTimeStamp: number;
1470
+ fulfilledTimeStamp?: number;
1471
+ }, "data" | "fulfilledTimeStamp">> & {
1472
+ error: undefined;
1473
+ } & {
1474
+ status: QueryStatus.fulfilled;
1475
+ isUninitialized: false;
1476
+ isLoading: false;
1477
+ isSuccess: true;
1478
+ isError: false;
1479
+ }) | ({
1480
+ status: QueryStatus.pending;
1481
+ } & {
1482
+ requestId: string;
1483
+ data?: void;
1484
+ error?: FetchBaseQueryError | SerializedError;
1485
+ endpointName: string;
1486
+ startedTimeStamp: number;
1487
+ fulfilledTimeStamp?: number;
1488
+ } & {
1489
+ data?: undefined;
1490
+ } & {
1491
+ status: QueryStatus.pending;
1492
+ isUninitialized: false;
1493
+ isLoading: true;
1494
+ isSuccess: false;
1495
+ isError: false;
1496
+ }) | ({
1497
+ status: QueryStatus.rejected;
1498
+ } & Omit<{
1499
+ requestId: string;
1500
+ data?: void;
1501
+ error?: FetchBaseQueryError | SerializedError;
1502
+ endpointName: string;
1503
+ startedTimeStamp: number;
1504
+ fulfilledTimeStamp?: number;
1505
+ }, "error"> & Required<Pick<{
1506
+ requestId: string;
1507
+ data?: void;
1508
+ error?: FetchBaseQueryError | SerializedError;
1509
+ endpointName: string;
1510
+ startedTimeStamp: number;
1511
+ fulfilledTimeStamp?: number;
1512
+ }, "error">> & {
1513
+ status: QueryStatus.rejected;
1514
+ isUninitialized: false;
1515
+ isLoading: false;
1516
+ isSuccess: false;
1517
+ isError: true;
1518
+ })>(options?: {
1519
+ selectFromResult?: (state: ({
1520
+ requestId?: undefined;
1521
+ status: QueryStatus.uninitialized;
1522
+ data?: undefined;
1523
+ error?: undefined;
1524
+ endpointName?: string;
1525
+ startedTimeStamp?: undefined;
1526
+ fulfilledTimeStamp?: undefined;
1527
+ } & {
1528
+ status: QueryStatus.uninitialized;
1529
+ isUninitialized: true;
1530
+ isLoading: false;
1531
+ isSuccess: false;
1532
+ isError: false;
1533
+ }) | ({
1534
+ status: QueryStatus.fulfilled;
1535
+ } & Omit<{
1536
+ requestId: string;
1537
+ data?: void;
1538
+ error?: FetchBaseQueryError | SerializedError;
1539
+ endpointName: string;
1540
+ startedTimeStamp: number;
1541
+ fulfilledTimeStamp?: number;
1542
+ }, "data" | "fulfilledTimeStamp"> & Required<Pick<{
1543
+ requestId: string;
1544
+ data?: void;
1545
+ error?: FetchBaseQueryError | SerializedError;
1546
+ endpointName: string;
1547
+ startedTimeStamp: number;
1548
+ fulfilledTimeStamp?: number;
1549
+ }, "data" | "fulfilledTimeStamp">> & {
1550
+ error: undefined;
1551
+ } & {
1552
+ status: QueryStatus.fulfilled;
1553
+ isUninitialized: false;
1554
+ isLoading: false;
1555
+ isSuccess: true;
1556
+ isError: false;
1557
+ }) | ({
1558
+ status: QueryStatus.pending;
1559
+ } & {
1560
+ requestId: string;
1561
+ data?: void;
1562
+ error?: FetchBaseQueryError | SerializedError;
1563
+ endpointName: string;
1564
+ startedTimeStamp: number;
1565
+ fulfilledTimeStamp?: number;
1566
+ } & {
1567
+ data?: undefined;
1568
+ } & {
1569
+ status: QueryStatus.pending;
1570
+ isUninitialized: false;
1571
+ isLoading: true;
1572
+ isSuccess: false;
1573
+ isError: false;
1574
+ }) | ({
1575
+ status: QueryStatus.rejected;
1576
+ } & Omit<{
1577
+ requestId: string;
1578
+ data?: void;
1579
+ error?: FetchBaseQueryError | SerializedError;
1580
+ endpointName: string;
1581
+ startedTimeStamp: number;
1582
+ fulfilledTimeStamp?: number;
1583
+ }, "error"> & Required<Pick<{
1584
+ requestId: string;
1585
+ data?: void;
1586
+ error?: FetchBaseQueryError | SerializedError;
1587
+ endpointName: string;
1588
+ startedTimeStamp: number;
1589
+ fulfilledTimeStamp?: number;
1590
+ }, "error">> & {
1591
+ status: QueryStatus.rejected;
1592
+ isUninitialized: false;
1593
+ isLoading: false;
1594
+ isSuccess: false;
1595
+ isError: true;
1596
+ })) => R;
1597
+ fixedCacheKey?: string;
1598
+ }) => readonly [(arg: void) => MutationActionCreatorResult<MutationDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "profile", void, "profileApi", unknown>>, TSHelpersNoInfer<R> & {
1599
+ originalArgs?: void;
1600
+ reset: () => void;
1601
+ }];
1602
+
1603
+ export declare const useDeleteConversationMutation: <R extends Record<string, any> = ({
1604
+ requestId?: undefined;
1605
+ status: QueryStatus.uninitialized;
1606
+ data?: undefined;
1607
+ error?: undefined;
1608
+ endpointName?: string;
1609
+ startedTimeStamp?: undefined;
1610
+ fulfilledTimeStamp?: undefined;
1611
+ } & {
1612
+ status: QueryStatus.uninitialized;
1613
+ isUninitialized: true;
1614
+ isLoading: false;
1615
+ isSuccess: false;
1616
+ isError: false;
1617
+ }) | ({
1618
+ status: QueryStatus.fulfilled;
1619
+ } & Omit<{
1620
+ requestId: string;
1621
+ data?: any;
1622
+ error?: FetchBaseQueryError | SerializedError;
1623
+ endpointName: string;
1624
+ startedTimeStamp: number;
1625
+ fulfilledTimeStamp?: number;
1626
+ }, "data" | "fulfilledTimeStamp"> & Required<Pick<{
1627
+ requestId: string;
1628
+ data?: any;
1629
+ error?: FetchBaseQueryError | SerializedError;
1630
+ endpointName: string;
1631
+ startedTimeStamp: number;
1632
+ fulfilledTimeStamp?: number;
1633
+ }, "data" | "fulfilledTimeStamp">> & {
1634
+ error: undefined;
1635
+ } & {
1636
+ status: QueryStatus.fulfilled;
1637
+ isUninitialized: false;
1638
+ isLoading: false;
1639
+ isSuccess: true;
1640
+ isError: false;
1641
+ }) | ({
1642
+ status: QueryStatus.pending;
1643
+ } & {
1644
+ requestId: string;
1645
+ data?: any;
1646
+ error?: FetchBaseQueryError | SerializedError;
1647
+ endpointName: string;
1648
+ startedTimeStamp: number;
1649
+ fulfilledTimeStamp?: number;
1650
+ } & {
1651
+ data?: undefined;
1652
+ } & {
1653
+ status: QueryStatus.pending;
1654
+ isUninitialized: false;
1655
+ isLoading: true;
1656
+ isSuccess: false;
1657
+ isError: false;
1658
+ }) | ({
1659
+ status: QueryStatus.rejected;
1660
+ } & Omit<{
1661
+ requestId: string;
1662
+ data?: any;
1663
+ error?: FetchBaseQueryError | SerializedError;
1664
+ endpointName: string;
1665
+ startedTimeStamp: number;
1666
+ fulfilledTimeStamp?: number;
1667
+ }, "error"> & Required<Pick<{
1668
+ requestId: string;
1669
+ data?: any;
1670
+ error?: FetchBaseQueryError | SerializedError;
1671
+ endpointName: string;
1672
+ startedTimeStamp: number;
1673
+ fulfilledTimeStamp?: number;
1674
+ }, "error">> & {
1675
+ status: QueryStatus.rejected;
1676
+ isUninitialized: false;
1677
+ isLoading: false;
1678
+ isSuccess: false;
1679
+ isError: true;
1680
+ })>(options?: {
1681
+ selectFromResult?: (state: ({
1682
+ requestId?: undefined;
1683
+ status: QueryStatus.uninitialized;
1684
+ data?: undefined;
1685
+ error?: undefined;
1686
+ endpointName?: string;
1687
+ startedTimeStamp?: undefined;
1688
+ fulfilledTimeStamp?: undefined;
1689
+ } & {
1690
+ status: QueryStatus.uninitialized;
1691
+ isUninitialized: true;
1692
+ isLoading: false;
1693
+ isSuccess: false;
1694
+ isError: false;
1695
+ }) | ({
1696
+ status: QueryStatus.fulfilled;
1697
+ } & Omit<{
1698
+ requestId: string;
1699
+ data?: any;
1700
+ error?: FetchBaseQueryError | SerializedError;
1701
+ endpointName: string;
1702
+ startedTimeStamp: number;
1703
+ fulfilledTimeStamp?: number;
1704
+ }, "data" | "fulfilledTimeStamp"> & Required<Pick<{
1705
+ requestId: string;
1706
+ data?: any;
1707
+ error?: FetchBaseQueryError | SerializedError;
1708
+ endpointName: string;
1709
+ startedTimeStamp: number;
1710
+ fulfilledTimeStamp?: number;
1711
+ }, "data" | "fulfilledTimeStamp">> & {
1712
+ error: undefined;
1713
+ } & {
1714
+ status: QueryStatus.fulfilled;
1715
+ isUninitialized: false;
1716
+ isLoading: false;
1717
+ isSuccess: true;
1718
+ isError: false;
1719
+ }) | ({
1720
+ status: QueryStatus.pending;
1721
+ } & {
1722
+ requestId: string;
1723
+ data?: any;
1724
+ error?: FetchBaseQueryError | SerializedError;
1725
+ endpointName: string;
1726
+ startedTimeStamp: number;
1727
+ fulfilledTimeStamp?: number;
1728
+ } & {
1729
+ data?: undefined;
1730
+ } & {
1731
+ status: QueryStatus.pending;
1732
+ isUninitialized: false;
1733
+ isLoading: true;
1734
+ isSuccess: false;
1735
+ isError: false;
1736
+ }) | ({
1737
+ status: QueryStatus.rejected;
1738
+ } & Omit<{
1739
+ requestId: string;
1740
+ data?: any;
1741
+ error?: FetchBaseQueryError | SerializedError;
1742
+ endpointName: string;
1743
+ startedTimeStamp: number;
1744
+ fulfilledTimeStamp?: number;
1745
+ }, "error"> & Required<Pick<{
1746
+ requestId: string;
1747
+ data?: any;
1748
+ error?: FetchBaseQueryError | SerializedError;
1749
+ endpointName: string;
1750
+ startedTimeStamp: number;
1751
+ fulfilledTimeStamp?: number;
1752
+ }, "error">> & {
1753
+ status: QueryStatus.rejected;
1754
+ isUninitialized: false;
1755
+ isLoading: false;
1756
+ isSuccess: false;
1757
+ isError: true;
1758
+ })) => R;
1759
+ fixedCacheKey?: string;
1760
+ }) => readonly [(arg: {
1761
+ conversationId: string;
1762
+ }) => MutationActionCreatorResult<MutationDefinition< {
1763
+ conversationId: string;
1764
+ }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", any, "chatApi", unknown>>, TSHelpersNoInfer<R> & {
1765
+ originalArgs?: {
1766
+ conversationId: string;
1767
+ };
1768
+ reset: () => void;
1769
+ }];
1770
+
1771
+ export declare const useDeleteToolServerConnectionMutation: <R extends Record<string, any> = ({
1772
+ requestId?: undefined;
1773
+ status: QueryStatus.uninitialized;
1774
+ data?: undefined;
1775
+ error?: undefined;
1776
+ endpointName?: string;
1777
+ startedTimeStamp?: undefined;
1778
+ fulfilledTimeStamp?: undefined;
1779
+ } & {
1780
+ status: QueryStatus.uninitialized;
1781
+ isUninitialized: true;
1782
+ isLoading: false;
1783
+ isSuccess: false;
1784
+ isError: false;
1785
+ }) | ({
1786
+ status: QueryStatus.fulfilled;
1787
+ } & Omit<{
1788
+ requestId: string;
1789
+ data?: void;
1790
+ error?: FetchBaseQueryError | SerializedError;
1791
+ endpointName: string;
1792
+ startedTimeStamp: number;
1793
+ fulfilledTimeStamp?: number;
1794
+ }, "data" | "fulfilledTimeStamp"> & Required<Pick<{
1795
+ requestId: string;
1796
+ data?: void;
1797
+ error?: FetchBaseQueryError | SerializedError;
1798
+ endpointName: string;
1799
+ startedTimeStamp: number;
1800
+ fulfilledTimeStamp?: number;
1801
+ }, "data" | "fulfilledTimeStamp">> & {
1802
+ error: undefined;
1803
+ } & {
1804
+ status: QueryStatus.fulfilled;
1805
+ isUninitialized: false;
1806
+ isLoading: false;
1807
+ isSuccess: true;
1808
+ isError: false;
1809
+ }) | ({
1810
+ status: QueryStatus.pending;
1811
+ } & {
1812
+ requestId: string;
1813
+ data?: void;
1814
+ error?: FetchBaseQueryError | SerializedError;
1815
+ endpointName: string;
1816
+ startedTimeStamp: number;
1817
+ fulfilledTimeStamp?: number;
1818
+ } & {
1819
+ data?: undefined;
1820
+ } & {
1821
+ status: QueryStatus.pending;
1822
+ isUninitialized: false;
1823
+ isLoading: true;
1824
+ isSuccess: false;
1825
+ isError: false;
1826
+ }) | ({
1827
+ status: QueryStatus.rejected;
1828
+ } & Omit<{
1829
+ requestId: string;
1830
+ data?: void;
1831
+ error?: FetchBaseQueryError | SerializedError;
1832
+ endpointName: string;
1833
+ startedTimeStamp: number;
1834
+ fulfilledTimeStamp?: number;
1835
+ }, "error"> & Required<Pick<{
1836
+ requestId: string;
1837
+ data?: void;
1838
+ error?: FetchBaseQueryError | SerializedError;
1839
+ endpointName: string;
1840
+ startedTimeStamp: number;
1841
+ fulfilledTimeStamp?: number;
1842
+ }, "error">> & {
1843
+ status: QueryStatus.rejected;
1844
+ isUninitialized: false;
1845
+ isLoading: false;
1846
+ isSuccess: false;
1847
+ isError: true;
1848
+ })>(options?: {
1849
+ selectFromResult?: (state: ({
1850
+ requestId?: undefined;
1851
+ status: QueryStatus.uninitialized;
1852
+ data?: undefined;
1853
+ error?: undefined;
1854
+ endpointName?: string;
1855
+ startedTimeStamp?: undefined;
1856
+ fulfilledTimeStamp?: undefined;
1857
+ } & {
1858
+ status: QueryStatus.uninitialized;
1859
+ isUninitialized: true;
1860
+ isLoading: false;
1861
+ isSuccess: false;
1862
+ isError: false;
1863
+ }) | ({
1864
+ status: QueryStatus.fulfilled;
1865
+ } & Omit<{
1866
+ requestId: string;
1867
+ data?: void;
1868
+ error?: FetchBaseQueryError | SerializedError;
1869
+ endpointName: string;
1870
+ startedTimeStamp: number;
1871
+ fulfilledTimeStamp?: number;
1872
+ }, "data" | "fulfilledTimeStamp"> & Required<Pick<{
1873
+ requestId: string;
1874
+ data?: void;
1875
+ error?: FetchBaseQueryError | SerializedError;
1876
+ endpointName: string;
1877
+ startedTimeStamp: number;
1878
+ fulfilledTimeStamp?: number;
1879
+ }, "data" | "fulfilledTimeStamp">> & {
1880
+ error: undefined;
1881
+ } & {
1882
+ status: QueryStatus.fulfilled;
1883
+ isUninitialized: false;
1884
+ isLoading: false;
1885
+ isSuccess: true;
1886
+ isError: false;
1887
+ }) | ({
1888
+ status: QueryStatus.pending;
1889
+ } & {
1890
+ requestId: string;
1891
+ data?: void;
1892
+ error?: FetchBaseQueryError | SerializedError;
1893
+ endpointName: string;
1894
+ startedTimeStamp: number;
1895
+ fulfilledTimeStamp?: number;
1896
+ } & {
1897
+ data?: undefined;
1898
+ } & {
1899
+ status: QueryStatus.pending;
1900
+ isUninitialized: false;
1901
+ isLoading: true;
1902
+ isSuccess: false;
1903
+ isError: false;
1904
+ }) | ({
1905
+ status: QueryStatus.rejected;
1906
+ } & Omit<{
1907
+ requestId: string;
1908
+ data?: void;
1909
+ error?: FetchBaseQueryError | SerializedError;
1910
+ endpointName: string;
1911
+ startedTimeStamp: number;
1912
+ fulfilledTimeStamp?: number;
1913
+ }, "error"> & Required<Pick<{
1914
+ requestId: string;
1915
+ data?: void;
1916
+ error?: FetchBaseQueryError | SerializedError;
1917
+ endpointName: string;
1918
+ startedTimeStamp: number;
1919
+ fulfilledTimeStamp?: number;
1920
+ }, "error">> & {
1921
+ status: QueryStatus.rejected;
1922
+ isUninitialized: false;
1923
+ isLoading: false;
1924
+ isSuccess: false;
1925
+ isError: true;
1926
+ })) => R;
1927
+ fixedCacheKey?: string;
1928
+ }) => readonly [(arg: string) => MutationActionCreatorResult<MutationDefinition<string, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", void, "chatApi", unknown>>, TSHelpersNoInfer<R> & {
1929
+ originalArgs?: string;
1930
+ reset: () => void;
1931
+ }];
1932
+
1933
+ export declare const useElapsedSeconds: (startTime: number | null) => UseElapsedSecondsResult;
1934
+
1935
+ export declare type UseElapsedSecondsResult = number;
1936
+
1937
+ export declare function useEventEmitter(eventName: string, listenerId: string, handler: (...args: any[]) => void): void;
1938
+
1939
+ export declare const useExchangeOAuthCodeMutation: <R extends Record<string, any> = ({
1940
+ requestId?: undefined;
1941
+ status: QueryStatus.uninitialized;
1942
+ data?: undefined;
1943
+ error?: undefined;
1944
+ endpointName?: string;
1945
+ startedTimeStamp?: undefined;
1946
+ fulfilledTimeStamp?: undefined;
1947
+ } & {
1948
+ status: QueryStatus.uninitialized;
1949
+ isUninitialized: true;
1950
+ isLoading: false;
1951
+ isSuccess: false;
1952
+ isError: false;
1953
+ }) | ({
1954
+ status: QueryStatus.fulfilled;
1955
+ } & Omit<{
1956
+ requestId: string;
1957
+ data?: void;
1958
+ error?: FetchBaseQueryError | SerializedError;
1959
+ endpointName: string;
1960
+ startedTimeStamp: number;
1961
+ fulfilledTimeStamp?: number;
1962
+ }, "data" | "fulfilledTimeStamp"> & Required<Pick<{
1963
+ requestId: string;
1964
+ data?: void;
1965
+ error?: FetchBaseQueryError | SerializedError;
1966
+ endpointName: string;
1967
+ startedTimeStamp: number;
1968
+ fulfilledTimeStamp?: number;
1969
+ }, "data" | "fulfilledTimeStamp">> & {
1970
+ error: undefined;
1971
+ } & {
1972
+ status: QueryStatus.fulfilled;
1973
+ isUninitialized: false;
1974
+ isLoading: false;
1975
+ isSuccess: true;
1976
+ isError: false;
1977
+ }) | ({
1978
+ status: QueryStatus.pending;
1979
+ } & {
1980
+ requestId: string;
1981
+ data?: void;
1982
+ error?: FetchBaseQueryError | SerializedError;
1983
+ endpointName: string;
1984
+ startedTimeStamp: number;
1985
+ fulfilledTimeStamp?: number;
1986
+ } & {
1987
+ data?: undefined;
1988
+ } & {
1989
+ status: QueryStatus.pending;
1990
+ isUninitialized: false;
1991
+ isLoading: true;
1992
+ isSuccess: false;
1993
+ isError: false;
1994
+ }) | ({
1995
+ status: QueryStatus.rejected;
1996
+ } & Omit<{
1997
+ requestId: string;
1998
+ data?: void;
1999
+ error?: FetchBaseQueryError | SerializedError;
2000
+ endpointName: string;
2001
+ startedTimeStamp: number;
2002
+ fulfilledTimeStamp?: number;
2003
+ }, "error"> & Required<Pick<{
2004
+ requestId: string;
2005
+ data?: void;
2006
+ error?: FetchBaseQueryError | SerializedError;
2007
+ endpointName: string;
2008
+ startedTimeStamp: number;
2009
+ fulfilledTimeStamp?: number;
2010
+ }, "error">> & {
2011
+ status: QueryStatus.rejected;
2012
+ isUninitialized: false;
2013
+ isLoading: false;
2014
+ isSuccess: false;
2015
+ isError: true;
2016
+ })>(options?: {
2017
+ selectFromResult?: (state: ({
2018
+ requestId?: undefined;
2019
+ status: QueryStatus.uninitialized;
2020
+ data?: undefined;
2021
+ error?: undefined;
2022
+ endpointName?: string;
2023
+ startedTimeStamp?: undefined;
2024
+ fulfilledTimeStamp?: undefined;
2025
+ } & {
2026
+ status: QueryStatus.uninitialized;
2027
+ isUninitialized: true;
2028
+ isLoading: false;
2029
+ isSuccess: false;
2030
+ isError: false;
2031
+ }) | ({
2032
+ status: QueryStatus.fulfilled;
2033
+ } & Omit<{
2034
+ requestId: string;
2035
+ data?: void;
2036
+ error?: FetchBaseQueryError | SerializedError;
2037
+ endpointName: string;
2038
+ startedTimeStamp: number;
2039
+ fulfilledTimeStamp?: number;
2040
+ }, "data" | "fulfilledTimeStamp"> & Required<Pick<{
2041
+ requestId: string;
2042
+ data?: void;
2043
+ error?: FetchBaseQueryError | SerializedError;
2044
+ endpointName: string;
2045
+ startedTimeStamp: number;
2046
+ fulfilledTimeStamp?: number;
2047
+ }, "data" | "fulfilledTimeStamp">> & {
2048
+ error: undefined;
2049
+ } & {
2050
+ status: QueryStatus.fulfilled;
2051
+ isUninitialized: false;
2052
+ isLoading: false;
2053
+ isSuccess: true;
2054
+ isError: false;
2055
+ }) | ({
2056
+ status: QueryStatus.pending;
2057
+ } & {
2058
+ requestId: string;
2059
+ data?: void;
2060
+ error?: FetchBaseQueryError | SerializedError;
2061
+ endpointName: string;
2062
+ startedTimeStamp: number;
2063
+ fulfilledTimeStamp?: number;
2064
+ } & {
2065
+ data?: undefined;
2066
+ } & {
2067
+ status: QueryStatus.pending;
2068
+ isUninitialized: false;
2069
+ isLoading: true;
2070
+ isSuccess: false;
2071
+ isError: false;
2072
+ }) | ({
2073
+ status: QueryStatus.rejected;
2074
+ } & Omit<{
2075
+ requestId: string;
2076
+ data?: void;
2077
+ error?: FetchBaseQueryError | SerializedError;
2078
+ endpointName: string;
2079
+ startedTimeStamp: number;
2080
+ fulfilledTimeStamp?: number;
2081
+ }, "error"> & Required<Pick<{
2082
+ requestId: string;
2083
+ data?: void;
2084
+ error?: FetchBaseQueryError | SerializedError;
2085
+ endpointName: string;
2086
+ startedTimeStamp: number;
2087
+ fulfilledTimeStamp?: number;
2088
+ }, "error">> & {
2089
+ status: QueryStatus.rejected;
2090
+ isUninitialized: false;
2091
+ isLoading: false;
2092
+ isSuccess: false;
2093
+ isError: true;
2094
+ })) => R;
2095
+ fixedCacheKey?: string;
2096
+ }) => readonly [(arg: {
2097
+ code: string;
2098
+ state: string;
2099
+ }) => MutationActionCreatorResult<MutationDefinition< {
2100
+ code: string;
2101
+ state: string;
2102
+ }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", void, "chatApi", unknown>>, TSHelpersNoInfer<R> & {
2103
+ originalArgs?: {
2104
+ code: string;
2105
+ state: string;
2106
+ };
2107
+ reset: () => void;
2108
+ }];
2109
+
2110
+ export declare const useGetBrandingQuery: <R extends Record<string, any> = TSHelpersId<(Omit<{
2111
+ status: QueryStatus.uninitialized;
2112
+ originalArgs?: undefined;
2113
+ data?: undefined;
2114
+ error?: undefined;
2115
+ requestId?: undefined;
2116
+ endpointName?: string;
2117
+ startedTimeStamp?: undefined;
2118
+ fulfilledTimeStamp?: undefined;
2119
+ } & {
2120
+ currentData?: AppBrandingResponse;
2121
+ isUninitialized: false;
2122
+ isLoading: false;
2123
+ isFetching: false;
2124
+ isSuccess: false;
2125
+ isError: false;
2126
+ }, "isUninitialized"> & {
2127
+ isUninitialized: true;
2128
+ }) | (Omit<QuerySubState<QueryDefinition<string, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, never, AppBrandingResponse, "brandingApi", unknown>> & {
2129
+ currentData?: AppBrandingResponse;
2130
+ isUninitialized: false;
2131
+ isLoading: false;
2132
+ isFetching: false;
2133
+ isSuccess: false;
2134
+ isError: false;
2135
+ }, "data" | "isLoading" | "isFetching"> & {
2136
+ isLoading: true;
2137
+ isFetching: boolean;
2138
+ data: undefined;
2139
+ }) | (Omit<QuerySubState<QueryDefinition<string, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, never, AppBrandingResponse, "brandingApi", unknown>> & {
2140
+ currentData?: AppBrandingResponse;
2141
+ isUninitialized: false;
2142
+ isLoading: false;
2143
+ isFetching: false;
2144
+ isSuccess: false;
2145
+ isError: false;
2146
+ }, "data" | "error" | "fulfilledTimeStamp" | "isFetching" | "isSuccess"> & {
2147
+ isSuccess: true;
2148
+ isFetching: true;
2149
+ error: undefined;
2150
+ } & {
2151
+ data: AppBrandingResponse;
2152
+ } & Required<Pick<QuerySubState<QueryDefinition<string, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, never, AppBrandingResponse, "brandingApi", unknown>> & {
2153
+ currentData?: AppBrandingResponse;
2154
+ isUninitialized: false;
2155
+ isLoading: false;
2156
+ isFetching: false;
2157
+ isSuccess: false;
2158
+ isError: false;
2159
+ }, "fulfilledTimeStamp">>) | (Omit<QuerySubState<QueryDefinition<string, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, never, AppBrandingResponse, "brandingApi", unknown>> & {
2160
+ currentData?: AppBrandingResponse;
2161
+ isUninitialized: false;
2162
+ isLoading: false;
2163
+ isFetching: false;
2164
+ isSuccess: false;
2165
+ isError: false;
2166
+ }, "data" | "error" | "fulfilledTimeStamp" | "currentData" | "isFetching" | "isSuccess"> & {
2167
+ isSuccess: true;
2168
+ isFetching: false;
2169
+ error: undefined;
2170
+ } & {
2171
+ data: AppBrandingResponse;
2172
+ currentData: AppBrandingResponse;
2173
+ } & Required<Pick<QuerySubState<QueryDefinition<string, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, never, AppBrandingResponse, "brandingApi", unknown>> & {
2174
+ currentData?: AppBrandingResponse;
2175
+ isUninitialized: false;
2176
+ isLoading: false;
2177
+ isFetching: false;
2178
+ isSuccess: false;
2179
+ isError: false;
2180
+ }, "fulfilledTimeStamp">>) | (Omit<QuerySubState<QueryDefinition<string, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, never, AppBrandingResponse, "brandingApi", unknown>> & {
2181
+ currentData?: AppBrandingResponse;
2182
+ isUninitialized: false;
2183
+ isLoading: false;
2184
+ isFetching: false;
2185
+ isSuccess: false;
2186
+ isError: false;
2187
+ }, "error" | "isError"> & {
2188
+ isError: true;
2189
+ } & Required<Pick<QuerySubState<QueryDefinition<string, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, never, AppBrandingResponse, "brandingApi", unknown>> & {
2190
+ currentData?: AppBrandingResponse;
2191
+ isUninitialized: false;
2192
+ isLoading: false;
2193
+ isFetching: false;
2194
+ isSuccess: false;
2195
+ isError: false;
2196
+ }, "error">>)> & {
2197
+ status: QueryStatus;
2198
+ }>(arg: string | skipToken, options?: SubscriptionOptions & {
2199
+ skip?: boolean;
2200
+ refetchOnMountOrArgChange?: boolean | number;
2201
+ } & {
2202
+ skip?: boolean;
2203
+ selectFromResult?: (state: TSHelpersId<(Omit<{
2204
+ status: QueryStatus.uninitialized;
2205
+ originalArgs?: undefined;
2206
+ data?: undefined;
2207
+ error?: undefined;
2208
+ requestId?: undefined;
2209
+ endpointName?: string;
2210
+ startedTimeStamp?: undefined;
2211
+ fulfilledTimeStamp?: undefined;
2212
+ } & {
2213
+ currentData?: AppBrandingResponse;
2214
+ isUninitialized: false;
2215
+ isLoading: false;
2216
+ isFetching: false;
2217
+ isSuccess: false;
2218
+ isError: false;
2219
+ }, "isUninitialized"> & {
2220
+ isUninitialized: true;
2221
+ }) | (Omit<QuerySubState<QueryDefinition<string, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, never, AppBrandingResponse, "brandingApi", unknown>> & {
2222
+ currentData?: AppBrandingResponse;
2223
+ isUninitialized: false;
2224
+ isLoading: false;
2225
+ isFetching: false;
2226
+ isSuccess: false;
2227
+ isError: false;
2228
+ }, "data" | "isLoading" | "isFetching"> & {
2229
+ isLoading: true;
2230
+ isFetching: boolean;
2231
+ data: undefined;
2232
+ }) | (Omit<QuerySubState<QueryDefinition<string, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, never, AppBrandingResponse, "brandingApi", unknown>> & {
2233
+ currentData?: AppBrandingResponse;
2234
+ isUninitialized: false;
2235
+ isLoading: false;
2236
+ isFetching: false;
2237
+ isSuccess: false;
2238
+ isError: false;
2239
+ }, "data" | "error" | "fulfilledTimeStamp" | "isFetching" | "isSuccess"> & {
2240
+ isSuccess: true;
2241
+ isFetching: true;
2242
+ error: undefined;
2243
+ } & {
2244
+ data: AppBrandingResponse;
2245
+ } & Required<Pick<QuerySubState<QueryDefinition<string, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, never, AppBrandingResponse, "brandingApi", unknown>> & {
2246
+ currentData?: AppBrandingResponse;
2247
+ isUninitialized: false;
2248
+ isLoading: false;
2249
+ isFetching: false;
2250
+ isSuccess: false;
2251
+ isError: false;
2252
+ }, "fulfilledTimeStamp">>) | (Omit<QuerySubState<QueryDefinition<string, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, never, AppBrandingResponse, "brandingApi", unknown>> & {
2253
+ currentData?: AppBrandingResponse;
2254
+ isUninitialized: false;
2255
+ isLoading: false;
2256
+ isFetching: false;
2257
+ isSuccess: false;
2258
+ isError: false;
2259
+ }, "data" | "error" | "fulfilledTimeStamp" | "currentData" | "isFetching" | "isSuccess"> & {
2260
+ isSuccess: true;
2261
+ isFetching: false;
2262
+ error: undefined;
2263
+ } & {
2264
+ data: AppBrandingResponse;
2265
+ currentData: AppBrandingResponse;
2266
+ } & Required<Pick<QuerySubState<QueryDefinition<string, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, never, AppBrandingResponse, "brandingApi", unknown>> & {
2267
+ currentData?: AppBrandingResponse;
2268
+ isUninitialized: false;
2269
+ isLoading: false;
2270
+ isFetching: false;
2271
+ isSuccess: false;
2272
+ isError: false;
2273
+ }, "fulfilledTimeStamp">>) | (Omit<QuerySubState<QueryDefinition<string, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, never, AppBrandingResponse, "brandingApi", unknown>> & {
2274
+ currentData?: AppBrandingResponse;
2275
+ isUninitialized: false;
2276
+ isLoading: false;
2277
+ isFetching: false;
2278
+ isSuccess: false;
2279
+ isError: false;
2280
+ }, "error" | "isError"> & {
2281
+ isError: true;
2282
+ } & Required<Pick<QuerySubState<QueryDefinition<string, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, never, AppBrandingResponse, "brandingApi", unknown>> & {
2283
+ currentData?: AppBrandingResponse;
2284
+ isUninitialized: false;
2285
+ isLoading: false;
2286
+ isFetching: false;
2287
+ isSuccess: false;
2288
+ isError: false;
2289
+ }, "error">>)> & {
2290
+ status: QueryStatus;
2291
+ }) => R;
2292
+ }) => [R][R extends any ? 0 : never] & {
2293
+ refetch: () => QueryActionCreatorResult<QueryDefinition<string, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, never, AppBrandingResponse, "brandingApi", unknown>>;
2294
+ };
2295
+
2296
+ export declare const useGetConfigQuery: () => ReturnType<typeof useGetConfigQueryRaw>;
2297
+
2298
+ declare const useGetConfigQueryRaw: <R extends Record<string, any> = TSHelpersId<(Omit<{
2299
+ status: QueryStatus.uninitialized;
2300
+ originalArgs?: undefined;
2301
+ data?: undefined;
2302
+ error?: undefined;
2303
+ requestId?: undefined;
2304
+ endpointName?: string;
2305
+ startedTimeStamp?: undefined;
2306
+ fulfilledTimeStamp?: undefined;
2307
+ } & {
2308
+ currentData?: ClientConfigResponse;
2309
+ isUninitialized: false;
2310
+ isLoading: false;
2311
+ isFetching: false;
2312
+ isSuccess: false;
2313
+ isError: false;
2314
+ }, "isUninitialized"> & {
2315
+ isUninitialized: true;
2316
+ }) | (Omit<QuerySubState<QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, never, ClientConfigResponse, "configApi", unknown>> & {
2317
+ currentData?: ClientConfigResponse;
2318
+ isUninitialized: false;
2319
+ isLoading: false;
2320
+ isFetching: false;
2321
+ isSuccess: false;
2322
+ isError: false;
2323
+ }, "data" | "isLoading" | "isFetching"> & {
2324
+ isLoading: true;
2325
+ isFetching: boolean;
2326
+ data: undefined;
2327
+ }) | (Omit<QuerySubState<QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, never, ClientConfigResponse, "configApi", unknown>> & {
2328
+ currentData?: ClientConfigResponse;
2329
+ isUninitialized: false;
2330
+ isLoading: false;
2331
+ isFetching: false;
2332
+ isSuccess: false;
2333
+ isError: false;
2334
+ }, "data" | "error" | "fulfilledTimeStamp" | "isFetching" | "isSuccess"> & {
2335
+ isSuccess: true;
2336
+ isFetching: true;
2337
+ error: undefined;
2338
+ } & {
2339
+ data: ClientConfigResponse;
2340
+ } & Required<Pick<QuerySubState<QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, never, ClientConfigResponse, "configApi", unknown>> & {
2341
+ currentData?: ClientConfigResponse;
2342
+ isUninitialized: false;
2343
+ isLoading: false;
2344
+ isFetching: false;
2345
+ isSuccess: false;
2346
+ isError: false;
2347
+ }, "fulfilledTimeStamp">>) | (Omit<QuerySubState<QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, never, ClientConfigResponse, "configApi", unknown>> & {
2348
+ currentData?: ClientConfigResponse;
2349
+ isUninitialized: false;
2350
+ isLoading: false;
2351
+ isFetching: false;
2352
+ isSuccess: false;
2353
+ isError: false;
2354
+ }, "data" | "error" | "fulfilledTimeStamp" | "currentData" | "isFetching" | "isSuccess"> & {
2355
+ isSuccess: true;
2356
+ isFetching: false;
2357
+ error: undefined;
2358
+ } & {
2359
+ data: ClientConfigResponse;
2360
+ currentData: ClientConfigResponse;
2361
+ } & Required<Pick<QuerySubState<QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, never, ClientConfigResponse, "configApi", unknown>> & {
2362
+ currentData?: ClientConfigResponse;
2363
+ isUninitialized: false;
2364
+ isLoading: false;
2365
+ isFetching: false;
2366
+ isSuccess: false;
2367
+ isError: false;
2368
+ }, "fulfilledTimeStamp">>) | (Omit<QuerySubState<QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, never, ClientConfigResponse, "configApi", unknown>> & {
2369
+ currentData?: ClientConfigResponse;
2370
+ isUninitialized: false;
2371
+ isLoading: false;
2372
+ isFetching: false;
2373
+ isSuccess: false;
2374
+ isError: false;
2375
+ }, "error" | "isError"> & {
2376
+ isError: true;
2377
+ } & Required<Pick<QuerySubState<QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, never, ClientConfigResponse, "configApi", unknown>> & {
2378
+ currentData?: ClientConfigResponse;
2379
+ isUninitialized: false;
2380
+ isLoading: false;
2381
+ isFetching: false;
2382
+ isSuccess: false;
2383
+ isError: false;
2384
+ }, "error">>)> & {
2385
+ status: QueryStatus;
2386
+ }>(arg: void | skipToken, options?: SubscriptionOptions & {
2387
+ skip?: boolean;
2388
+ refetchOnMountOrArgChange?: boolean | number;
2389
+ } & {
2390
+ skip?: boolean;
2391
+ selectFromResult?: (state: TSHelpersId<(Omit<{
2392
+ status: QueryStatus.uninitialized;
2393
+ originalArgs?: undefined;
2394
+ data?: undefined;
2395
+ error?: undefined;
2396
+ requestId?: undefined;
2397
+ endpointName?: string;
2398
+ startedTimeStamp?: undefined;
2399
+ fulfilledTimeStamp?: undefined;
2400
+ } & {
2401
+ currentData?: ClientConfigResponse;
2402
+ isUninitialized: false;
2403
+ isLoading: false;
2404
+ isFetching: false;
2405
+ isSuccess: false;
2406
+ isError: false;
2407
+ }, "isUninitialized"> & {
2408
+ isUninitialized: true;
2409
+ }) | (Omit<QuerySubState<QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, never, ClientConfigResponse, "configApi", unknown>> & {
2410
+ currentData?: ClientConfigResponse;
2411
+ isUninitialized: false;
2412
+ isLoading: false;
2413
+ isFetching: false;
2414
+ isSuccess: false;
2415
+ isError: false;
2416
+ }, "data" | "isLoading" | "isFetching"> & {
2417
+ isLoading: true;
2418
+ isFetching: boolean;
2419
+ data: undefined;
2420
+ }) | (Omit<QuerySubState<QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, never, ClientConfigResponse, "configApi", unknown>> & {
2421
+ currentData?: ClientConfigResponse;
2422
+ isUninitialized: false;
2423
+ isLoading: false;
2424
+ isFetching: false;
2425
+ isSuccess: false;
2426
+ isError: false;
2427
+ }, "data" | "error" | "fulfilledTimeStamp" | "isFetching" | "isSuccess"> & {
2428
+ isSuccess: true;
2429
+ isFetching: true;
2430
+ error: undefined;
2431
+ } & {
2432
+ data: ClientConfigResponse;
2433
+ } & Required<Pick<QuerySubState<QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, never, ClientConfigResponse, "configApi", unknown>> & {
2434
+ currentData?: ClientConfigResponse;
2435
+ isUninitialized: false;
2436
+ isLoading: false;
2437
+ isFetching: false;
2438
+ isSuccess: false;
2439
+ isError: false;
2440
+ }, "fulfilledTimeStamp">>) | (Omit<QuerySubState<QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, never, ClientConfigResponse, "configApi", unknown>> & {
2441
+ currentData?: ClientConfigResponse;
2442
+ isUninitialized: false;
2443
+ isLoading: false;
2444
+ isFetching: false;
2445
+ isSuccess: false;
2446
+ isError: false;
2447
+ }, "data" | "error" | "fulfilledTimeStamp" | "currentData" | "isFetching" | "isSuccess"> & {
2448
+ isSuccess: true;
2449
+ isFetching: false;
2450
+ error: undefined;
2451
+ } & {
2452
+ data: ClientConfigResponse;
2453
+ currentData: ClientConfigResponse;
2454
+ } & Required<Pick<QuerySubState<QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, never, ClientConfigResponse, "configApi", unknown>> & {
2455
+ currentData?: ClientConfigResponse;
2456
+ isUninitialized: false;
2457
+ isLoading: false;
2458
+ isFetching: false;
2459
+ isSuccess: false;
2460
+ isError: false;
2461
+ }, "fulfilledTimeStamp">>) | (Omit<QuerySubState<QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, never, ClientConfigResponse, "configApi", unknown>> & {
2462
+ currentData?: ClientConfigResponse;
2463
+ isUninitialized: false;
2464
+ isLoading: false;
2465
+ isFetching: false;
2466
+ isSuccess: false;
2467
+ isError: false;
2468
+ }, "error" | "isError"> & {
2469
+ isError: true;
2470
+ } & Required<Pick<QuerySubState<QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, never, ClientConfigResponse, "configApi", unknown>> & {
2471
+ currentData?: ClientConfigResponse;
2472
+ isUninitialized: false;
2473
+ isLoading: false;
2474
+ isFetching: false;
2475
+ isSuccess: false;
2476
+ isError: false;
2477
+ }, "error">>)> & {
2478
+ status: QueryStatus;
2479
+ }) => R;
2480
+ }) => [R][R extends any ? 0 : never] & {
2481
+ refetch: () => QueryActionCreatorResult<QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, never, ClientConfigResponse, "configApi", unknown>>;
2482
+ };
2483
+
2484
+ export declare const useGetConversationHistoryQuery: <R extends Record<string, any> = TSHelpersId<(Omit<{
2485
+ status: QueryStatus.uninitialized;
2486
+ originalArgs?: undefined;
2487
+ data?: undefined;
2488
+ error?: undefined;
2489
+ requestId?: undefined;
2490
+ endpointName?: string;
2491
+ startedTimeStamp?: undefined;
2492
+ fulfilledTimeStamp?: undefined;
2493
+ } & {
2494
+ currentData?: {
2495
+ conversations: any[];
2496
+ };
2497
+ isUninitialized: false;
2498
+ isLoading: false;
2499
+ isFetching: false;
2500
+ isSuccess: false;
2501
+ isError: false;
2502
+ }, "isUninitialized"> & {
2503
+ isUninitialized: true;
2504
+ }) | (Omit<QuerySubState<QueryDefinition< {
2505
+ skip?: number;
2506
+ limit?: number;
2507
+ }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
2508
+ conversations: any[];
2509
+ }, "chatApi", unknown>> & {
2510
+ currentData?: {
2511
+ conversations: any[];
2512
+ };
2513
+ isUninitialized: false;
2514
+ isLoading: false;
2515
+ isFetching: false;
2516
+ isSuccess: false;
2517
+ isError: false;
2518
+ }, "data" | "isLoading" | "isFetching"> & {
2519
+ isLoading: true;
2520
+ isFetching: boolean;
2521
+ data: undefined;
2522
+ }) | (Omit<QuerySubState<QueryDefinition< {
2523
+ skip?: number;
2524
+ limit?: number;
2525
+ }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
2526
+ conversations: any[];
2527
+ }, "chatApi", unknown>> & {
2528
+ currentData?: {
2529
+ conversations: any[];
2530
+ };
2531
+ isUninitialized: false;
2532
+ isLoading: false;
2533
+ isFetching: false;
2534
+ isSuccess: false;
2535
+ isError: false;
2536
+ }, "data" | "error" | "fulfilledTimeStamp" | "isFetching" | "isSuccess"> & {
2537
+ isSuccess: true;
2538
+ isFetching: true;
2539
+ error: undefined;
2540
+ } & {
2541
+ data: {
2542
+ conversations: any[];
2543
+ };
2544
+ } & Required<Pick<QuerySubState<QueryDefinition< {
2545
+ skip?: number;
2546
+ limit?: number;
2547
+ }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
2548
+ conversations: any[];
2549
+ }, "chatApi", unknown>> & {
2550
+ currentData?: {
2551
+ conversations: any[];
2552
+ };
2553
+ isUninitialized: false;
2554
+ isLoading: false;
2555
+ isFetching: false;
2556
+ isSuccess: false;
2557
+ isError: false;
2558
+ }, "fulfilledTimeStamp">>) | (Omit<QuerySubState<QueryDefinition< {
2559
+ skip?: number;
2560
+ limit?: number;
2561
+ }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
2562
+ conversations: any[];
2563
+ }, "chatApi", unknown>> & {
2564
+ currentData?: {
2565
+ conversations: any[];
2566
+ };
2567
+ isUninitialized: false;
2568
+ isLoading: false;
2569
+ isFetching: false;
2570
+ isSuccess: false;
2571
+ isError: false;
2572
+ }, "data" | "error" | "fulfilledTimeStamp" | "currentData" | "isFetching" | "isSuccess"> & {
2573
+ isSuccess: true;
2574
+ isFetching: false;
2575
+ error: undefined;
2576
+ } & {
2577
+ data: {
2578
+ conversations: any[];
2579
+ };
2580
+ currentData: {
2581
+ conversations: any[];
2582
+ };
2583
+ } & Required<Pick<QuerySubState<QueryDefinition< {
2584
+ skip?: number;
2585
+ limit?: number;
2586
+ }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
2587
+ conversations: any[];
2588
+ }, "chatApi", unknown>> & {
2589
+ currentData?: {
2590
+ conversations: any[];
2591
+ };
2592
+ isUninitialized: false;
2593
+ isLoading: false;
2594
+ isFetching: false;
2595
+ isSuccess: false;
2596
+ isError: false;
2597
+ }, "fulfilledTimeStamp">>) | (Omit<QuerySubState<QueryDefinition< {
2598
+ skip?: number;
2599
+ limit?: number;
2600
+ }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
2601
+ conversations: any[];
2602
+ }, "chatApi", unknown>> & {
2603
+ currentData?: {
2604
+ conversations: any[];
2605
+ };
2606
+ isUninitialized: false;
2607
+ isLoading: false;
2608
+ isFetching: false;
2609
+ isSuccess: false;
2610
+ isError: false;
2611
+ }, "error" | "isError"> & {
2612
+ isError: true;
2613
+ } & Required<Pick<QuerySubState<QueryDefinition< {
2614
+ skip?: number;
2615
+ limit?: number;
2616
+ }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
2617
+ conversations: any[];
2618
+ }, "chatApi", unknown>> & {
2619
+ currentData?: {
2620
+ conversations: any[];
2621
+ };
2622
+ isUninitialized: false;
2623
+ isLoading: false;
2624
+ isFetching: false;
2625
+ isSuccess: false;
2626
+ isError: false;
2627
+ }, "error">>)> & {
2628
+ status: QueryStatus;
2629
+ }>(arg: {
2630
+ skip?: number;
2631
+ limit?: number;
2632
+ } | skipToken, options?: SubscriptionOptions & {
2633
+ skip?: boolean;
2634
+ refetchOnMountOrArgChange?: boolean | number;
2635
+ } & {
2636
+ skip?: boolean;
2637
+ selectFromResult?: (state: TSHelpersId<(Omit<{
2638
+ status: QueryStatus.uninitialized;
2639
+ originalArgs?: undefined;
2640
+ data?: undefined;
2641
+ error?: undefined;
2642
+ requestId?: undefined;
2643
+ endpointName?: string;
2644
+ startedTimeStamp?: undefined;
2645
+ fulfilledTimeStamp?: undefined;
2646
+ } & {
2647
+ currentData?: {
2648
+ conversations: any[];
2649
+ };
2650
+ isUninitialized: false;
2651
+ isLoading: false;
2652
+ isFetching: false;
2653
+ isSuccess: false;
2654
+ isError: false;
2655
+ }, "isUninitialized"> & {
2656
+ isUninitialized: true;
2657
+ }) | (Omit<QuerySubState<QueryDefinition< {
2658
+ skip?: number;
2659
+ limit?: number;
2660
+ }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
2661
+ conversations: any[];
2662
+ }, "chatApi", unknown>> & {
2663
+ currentData?: {
2664
+ conversations: any[];
2665
+ };
2666
+ isUninitialized: false;
2667
+ isLoading: false;
2668
+ isFetching: false;
2669
+ isSuccess: false;
2670
+ isError: false;
2671
+ }, "data" | "isLoading" | "isFetching"> & {
2672
+ isLoading: true;
2673
+ isFetching: boolean;
2674
+ data: undefined;
2675
+ }) | (Omit<QuerySubState<QueryDefinition< {
2676
+ skip?: number;
2677
+ limit?: number;
2678
+ }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
2679
+ conversations: any[];
2680
+ }, "chatApi", unknown>> & {
2681
+ currentData?: {
2682
+ conversations: any[];
2683
+ };
2684
+ isUninitialized: false;
2685
+ isLoading: false;
2686
+ isFetching: false;
2687
+ isSuccess: false;
2688
+ isError: false;
2689
+ }, "data" | "error" | "fulfilledTimeStamp" | "isFetching" | "isSuccess"> & {
2690
+ isSuccess: true;
2691
+ isFetching: true;
2692
+ error: undefined;
2693
+ } & {
2694
+ data: {
2695
+ conversations: any[];
2696
+ };
2697
+ } & Required<Pick<QuerySubState<QueryDefinition< {
2698
+ skip?: number;
2699
+ limit?: number;
2700
+ }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
2701
+ conversations: any[];
2702
+ }, "chatApi", unknown>> & {
2703
+ currentData?: {
2704
+ conversations: any[];
2705
+ };
2706
+ isUninitialized: false;
2707
+ isLoading: false;
2708
+ isFetching: false;
2709
+ isSuccess: false;
2710
+ isError: false;
2711
+ }, "fulfilledTimeStamp">>) | (Omit<QuerySubState<QueryDefinition< {
2712
+ skip?: number;
2713
+ limit?: number;
2714
+ }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
2715
+ conversations: any[];
2716
+ }, "chatApi", unknown>> & {
2717
+ currentData?: {
2718
+ conversations: any[];
2719
+ };
2720
+ isUninitialized: false;
2721
+ isLoading: false;
2722
+ isFetching: false;
2723
+ isSuccess: false;
2724
+ isError: false;
2725
+ }, "data" | "error" | "fulfilledTimeStamp" | "currentData" | "isFetching" | "isSuccess"> & {
2726
+ isSuccess: true;
2727
+ isFetching: false;
2728
+ error: undefined;
2729
+ } & {
2730
+ data: {
2731
+ conversations: any[];
2732
+ };
2733
+ currentData: {
2734
+ conversations: any[];
2735
+ };
2736
+ } & Required<Pick<QuerySubState<QueryDefinition< {
2737
+ skip?: number;
2738
+ limit?: number;
2739
+ }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
2740
+ conversations: any[];
2741
+ }, "chatApi", unknown>> & {
2742
+ currentData?: {
2743
+ conversations: any[];
2744
+ };
2745
+ isUninitialized: false;
2746
+ isLoading: false;
2747
+ isFetching: false;
2748
+ isSuccess: false;
2749
+ isError: false;
2750
+ }, "fulfilledTimeStamp">>) | (Omit<QuerySubState<QueryDefinition< {
2751
+ skip?: number;
2752
+ limit?: number;
2753
+ }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
2754
+ conversations: any[];
2755
+ }, "chatApi", unknown>> & {
2756
+ currentData?: {
2757
+ conversations: any[];
2758
+ };
2759
+ isUninitialized: false;
2760
+ isLoading: false;
2761
+ isFetching: false;
2762
+ isSuccess: false;
2763
+ isError: false;
2764
+ }, "error" | "isError"> & {
2765
+ isError: true;
2766
+ } & Required<Pick<QuerySubState<QueryDefinition< {
2767
+ skip?: number;
2768
+ limit?: number;
2769
+ }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
2770
+ conversations: any[];
2771
+ }, "chatApi", unknown>> & {
2772
+ currentData?: {
2773
+ conversations: any[];
2774
+ };
2775
+ isUninitialized: false;
2776
+ isLoading: false;
2777
+ isFetching: false;
2778
+ isSuccess: false;
2779
+ isError: false;
2780
+ }, "error">>)> & {
2781
+ status: QueryStatus;
2782
+ }) => R;
2783
+ }) => [R][R extends any ? 0 : never] & {
2784
+ refetch: () => QueryActionCreatorResult<QueryDefinition< {
2785
+ skip?: number;
2786
+ limit?: number;
2787
+ }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
2788
+ conversations: any[];
2789
+ }, "chatApi", unknown>>;
2790
+ };
2791
+
2792
+ export declare const useGetProfileQuery: <R extends Record<string, any> = TSHelpersId<(Omit<{
2793
+ status: QueryStatus.uninitialized;
2794
+ originalArgs?: undefined;
2795
+ data?: undefined;
2796
+ error?: undefined;
2797
+ requestId?: undefined;
2798
+ endpointName?: string;
2799
+ startedTimeStamp?: undefined;
2800
+ fulfilledTimeStamp?: undefined;
2801
+ } & {
2802
+ currentData?: Profile;
2803
+ isUninitialized: false;
2804
+ isLoading: false;
2805
+ isFetching: false;
2806
+ isSuccess: false;
2807
+ isError: false;
2808
+ }, "isUninitialized"> & {
2809
+ isUninitialized: true;
2810
+ }) | (Omit<QuerySubState<QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "profile", Profile, "profileApi", unknown>> & {
2811
+ currentData?: Profile;
2812
+ isUninitialized: false;
2813
+ isLoading: false;
2814
+ isFetching: false;
2815
+ isSuccess: false;
2816
+ isError: false;
2817
+ }, "data" | "isLoading" | "isFetching"> & {
2818
+ isLoading: true;
2819
+ isFetching: boolean;
2820
+ data: undefined;
2821
+ }) | (Omit<QuerySubState<QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "profile", Profile, "profileApi", unknown>> & {
2822
+ currentData?: Profile;
2823
+ isUninitialized: false;
2824
+ isLoading: false;
2825
+ isFetching: false;
2826
+ isSuccess: false;
2827
+ isError: false;
2828
+ }, "data" | "error" | "fulfilledTimeStamp" | "isFetching" | "isSuccess"> & {
2829
+ isSuccess: true;
2830
+ isFetching: true;
2831
+ error: undefined;
2832
+ } & {
2833
+ data: Profile;
2834
+ } & Required<Pick<QuerySubState<QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "profile", Profile, "profileApi", unknown>> & {
2835
+ currentData?: Profile;
2836
+ isUninitialized: false;
2837
+ isLoading: false;
2838
+ isFetching: false;
2839
+ isSuccess: false;
2840
+ isError: false;
2841
+ }, "fulfilledTimeStamp">>) | (Omit<QuerySubState<QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "profile", Profile, "profileApi", unknown>> & {
2842
+ currentData?: Profile;
2843
+ isUninitialized: false;
2844
+ isLoading: false;
2845
+ isFetching: false;
2846
+ isSuccess: false;
2847
+ isError: false;
2848
+ }, "data" | "error" | "fulfilledTimeStamp" | "currentData" | "isFetching" | "isSuccess"> & {
2849
+ isSuccess: true;
2850
+ isFetching: false;
2851
+ error: undefined;
2852
+ } & {
2853
+ data: Profile;
2854
+ currentData: Profile;
2855
+ } & Required<Pick<QuerySubState<QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "profile", Profile, "profileApi", unknown>> & {
2856
+ currentData?: Profile;
2857
+ isUninitialized: false;
2858
+ isLoading: false;
2859
+ isFetching: false;
2860
+ isSuccess: false;
2861
+ isError: false;
2862
+ }, "fulfilledTimeStamp">>) | (Omit<QuerySubState<QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "profile", Profile, "profileApi", unknown>> & {
2863
+ currentData?: Profile;
2864
+ isUninitialized: false;
2865
+ isLoading: false;
2866
+ isFetching: false;
2867
+ isSuccess: false;
2868
+ isError: false;
2869
+ }, "error" | "isError"> & {
2870
+ isError: true;
2871
+ } & Required<Pick<QuerySubState<QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "profile", Profile, "profileApi", unknown>> & {
2872
+ currentData?: Profile;
2873
+ isUninitialized: false;
2874
+ isLoading: false;
2875
+ isFetching: false;
2876
+ isSuccess: false;
2877
+ isError: false;
2878
+ }, "error">>)> & {
2879
+ status: QueryStatus;
2880
+ }>(arg: void | skipToken, options?: SubscriptionOptions & {
2881
+ skip?: boolean;
2882
+ refetchOnMountOrArgChange?: boolean | number;
2883
+ } & {
2884
+ skip?: boolean;
2885
+ selectFromResult?: (state: TSHelpersId<(Omit<{
2886
+ status: QueryStatus.uninitialized;
2887
+ originalArgs?: undefined;
2888
+ data?: undefined;
2889
+ error?: undefined;
2890
+ requestId?: undefined;
2891
+ endpointName?: string;
2892
+ startedTimeStamp?: undefined;
2893
+ fulfilledTimeStamp?: undefined;
2894
+ } & {
2895
+ currentData?: Profile;
2896
+ isUninitialized: false;
2897
+ isLoading: false;
2898
+ isFetching: false;
2899
+ isSuccess: false;
2900
+ isError: false;
2901
+ }, "isUninitialized"> & {
2902
+ isUninitialized: true;
2903
+ }) | (Omit<QuerySubState<QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "profile", Profile, "profileApi", unknown>> & {
2904
+ currentData?: Profile;
2905
+ isUninitialized: false;
2906
+ isLoading: false;
2907
+ isFetching: false;
2908
+ isSuccess: false;
2909
+ isError: false;
2910
+ }, "data" | "isLoading" | "isFetching"> & {
2911
+ isLoading: true;
2912
+ isFetching: boolean;
2913
+ data: undefined;
2914
+ }) | (Omit<QuerySubState<QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "profile", Profile, "profileApi", unknown>> & {
2915
+ currentData?: Profile;
2916
+ isUninitialized: false;
2917
+ isLoading: false;
2918
+ isFetching: false;
2919
+ isSuccess: false;
2920
+ isError: false;
2921
+ }, "data" | "error" | "fulfilledTimeStamp" | "isFetching" | "isSuccess"> & {
2922
+ isSuccess: true;
2923
+ isFetching: true;
2924
+ error: undefined;
2925
+ } & {
2926
+ data: Profile;
2927
+ } & Required<Pick<QuerySubState<QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "profile", Profile, "profileApi", unknown>> & {
2928
+ currentData?: Profile;
2929
+ isUninitialized: false;
2930
+ isLoading: false;
2931
+ isFetching: false;
2932
+ isSuccess: false;
2933
+ isError: false;
2934
+ }, "fulfilledTimeStamp">>) | (Omit<QuerySubState<QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "profile", Profile, "profileApi", unknown>> & {
2935
+ currentData?: Profile;
2936
+ isUninitialized: false;
2937
+ isLoading: false;
2938
+ isFetching: false;
2939
+ isSuccess: false;
2940
+ isError: false;
2941
+ }, "data" | "error" | "fulfilledTimeStamp" | "currentData" | "isFetching" | "isSuccess"> & {
2942
+ isSuccess: true;
2943
+ isFetching: false;
2944
+ error: undefined;
2945
+ } & {
2946
+ data: Profile;
2947
+ currentData: Profile;
2948
+ } & Required<Pick<QuerySubState<QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "profile", Profile, "profileApi", unknown>> & {
2949
+ currentData?: Profile;
2950
+ isUninitialized: false;
2951
+ isLoading: false;
2952
+ isFetching: false;
2953
+ isSuccess: false;
2954
+ isError: false;
2955
+ }, "fulfilledTimeStamp">>) | (Omit<QuerySubState<QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "profile", Profile, "profileApi", unknown>> & {
2956
+ currentData?: Profile;
2957
+ isUninitialized: false;
2958
+ isLoading: false;
2959
+ isFetching: false;
2960
+ isSuccess: false;
2961
+ isError: false;
2962
+ }, "error" | "isError"> & {
2963
+ isError: true;
2964
+ } & Required<Pick<QuerySubState<QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "profile", Profile, "profileApi", unknown>> & {
2965
+ currentData?: Profile;
2966
+ isUninitialized: false;
2967
+ isLoading: false;
2968
+ isFetching: false;
2969
+ isSuccess: false;
2970
+ isError: false;
2971
+ }, "error">>)> & {
2972
+ status: QueryStatus;
2973
+ }) => R;
2974
+ }) => [R][R extends any ? 0 : never] & {
2975
+ refetch: () => QueryActionCreatorResult<QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "profile", Profile, "profileApi", unknown>>;
2976
+ };
2977
+
2978
+ export declare const useGetToolServersQuery: <R extends Record<string, any> = TSHelpersId<(Omit<{
2979
+ status: QueryStatus.uninitialized;
2980
+ originalArgs?: undefined;
2981
+ data?: undefined;
2982
+ error?: undefined;
2983
+ requestId?: undefined;
2984
+ endpointName?: string;
2985
+ startedTimeStamp?: undefined;
2986
+ fulfilledTimeStamp?: undefined;
2987
+ } & {
2988
+ currentData?: {
2989
+ tool_servers: ToolServer[];
2990
+ };
2991
+ isUninitialized: false;
2992
+ isLoading: false;
2993
+ isFetching: false;
2994
+ isSuccess: false;
2995
+ isError: false;
2996
+ }, "isUninitialized"> & {
2997
+ isUninitialized: true;
2998
+ }) | (Omit<QuerySubState<QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
2999
+ tool_servers: ToolServer[];
3000
+ }, "chatApi", unknown>> & {
3001
+ currentData?: {
3002
+ tool_servers: ToolServer[];
3003
+ };
3004
+ isUninitialized: false;
3005
+ isLoading: false;
3006
+ isFetching: false;
3007
+ isSuccess: false;
3008
+ isError: false;
3009
+ }, "data" | "isLoading" | "isFetching"> & {
3010
+ isLoading: true;
3011
+ isFetching: boolean;
3012
+ data: undefined;
3013
+ }) | (Omit<QuerySubState<QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
3014
+ tool_servers: ToolServer[];
3015
+ }, "chatApi", unknown>> & {
3016
+ currentData?: {
3017
+ tool_servers: ToolServer[];
3018
+ };
3019
+ isUninitialized: false;
3020
+ isLoading: false;
3021
+ isFetching: false;
3022
+ isSuccess: false;
3023
+ isError: false;
3024
+ }, "data" | "error" | "fulfilledTimeStamp" | "isFetching" | "isSuccess"> & {
3025
+ isSuccess: true;
3026
+ isFetching: true;
3027
+ error: undefined;
3028
+ } & {
3029
+ data: {
3030
+ tool_servers: ToolServer[];
3031
+ };
3032
+ } & Required<Pick<QuerySubState<QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
3033
+ tool_servers: ToolServer[];
3034
+ }, "chatApi", unknown>> & {
3035
+ currentData?: {
3036
+ tool_servers: ToolServer[];
3037
+ };
3038
+ isUninitialized: false;
3039
+ isLoading: false;
3040
+ isFetching: false;
3041
+ isSuccess: false;
3042
+ isError: false;
3043
+ }, "fulfilledTimeStamp">>) | (Omit<QuerySubState<QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
3044
+ tool_servers: ToolServer[];
3045
+ }, "chatApi", unknown>> & {
3046
+ currentData?: {
3047
+ tool_servers: ToolServer[];
3048
+ };
3049
+ isUninitialized: false;
3050
+ isLoading: false;
3051
+ isFetching: false;
3052
+ isSuccess: false;
3053
+ isError: false;
3054
+ }, "data" | "error" | "fulfilledTimeStamp" | "currentData" | "isFetching" | "isSuccess"> & {
3055
+ isSuccess: true;
3056
+ isFetching: false;
3057
+ error: undefined;
3058
+ } & {
3059
+ data: {
3060
+ tool_servers: ToolServer[];
3061
+ };
3062
+ currentData: {
3063
+ tool_servers: ToolServer[];
3064
+ };
3065
+ } & Required<Pick<QuerySubState<QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
3066
+ tool_servers: ToolServer[];
3067
+ }, "chatApi", unknown>> & {
3068
+ currentData?: {
3069
+ tool_servers: ToolServer[];
3070
+ };
3071
+ isUninitialized: false;
3072
+ isLoading: false;
3073
+ isFetching: false;
3074
+ isSuccess: false;
3075
+ isError: false;
3076
+ }, "fulfilledTimeStamp">>) | (Omit<QuerySubState<QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
3077
+ tool_servers: ToolServer[];
3078
+ }, "chatApi", unknown>> & {
3079
+ currentData?: {
3080
+ tool_servers: ToolServer[];
3081
+ };
3082
+ isUninitialized: false;
3083
+ isLoading: false;
3084
+ isFetching: false;
3085
+ isSuccess: false;
3086
+ isError: false;
3087
+ }, "error" | "isError"> & {
3088
+ isError: true;
3089
+ } & Required<Pick<QuerySubState<QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
3090
+ tool_servers: ToolServer[];
3091
+ }, "chatApi", unknown>> & {
3092
+ currentData?: {
3093
+ tool_servers: ToolServer[];
3094
+ };
3095
+ isUninitialized: false;
3096
+ isLoading: false;
3097
+ isFetching: false;
3098
+ isSuccess: false;
3099
+ isError: false;
3100
+ }, "error">>)> & {
3101
+ status: QueryStatus;
3102
+ }>(arg: void | skipToken, options?: SubscriptionOptions & {
3103
+ skip?: boolean;
3104
+ refetchOnMountOrArgChange?: boolean | number;
3105
+ } & {
3106
+ skip?: boolean;
3107
+ selectFromResult?: (state: TSHelpersId<(Omit<{
3108
+ status: QueryStatus.uninitialized;
3109
+ originalArgs?: undefined;
3110
+ data?: undefined;
3111
+ error?: undefined;
3112
+ requestId?: undefined;
3113
+ endpointName?: string;
3114
+ startedTimeStamp?: undefined;
3115
+ fulfilledTimeStamp?: undefined;
3116
+ } & {
3117
+ currentData?: {
3118
+ tool_servers: ToolServer[];
3119
+ };
3120
+ isUninitialized: false;
3121
+ isLoading: false;
3122
+ isFetching: false;
3123
+ isSuccess: false;
3124
+ isError: false;
3125
+ }, "isUninitialized"> & {
3126
+ isUninitialized: true;
3127
+ }) | (Omit<QuerySubState<QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
3128
+ tool_servers: ToolServer[];
3129
+ }, "chatApi", unknown>> & {
3130
+ currentData?: {
3131
+ tool_servers: ToolServer[];
3132
+ };
3133
+ isUninitialized: false;
3134
+ isLoading: false;
3135
+ isFetching: false;
3136
+ isSuccess: false;
3137
+ isError: false;
3138
+ }, "data" | "isLoading" | "isFetching"> & {
3139
+ isLoading: true;
3140
+ isFetching: boolean;
3141
+ data: undefined;
3142
+ }) | (Omit<QuerySubState<QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
3143
+ tool_servers: ToolServer[];
3144
+ }, "chatApi", unknown>> & {
3145
+ currentData?: {
3146
+ tool_servers: ToolServer[];
3147
+ };
3148
+ isUninitialized: false;
3149
+ isLoading: false;
3150
+ isFetching: false;
3151
+ isSuccess: false;
3152
+ isError: false;
3153
+ }, "data" | "error" | "fulfilledTimeStamp" | "isFetching" | "isSuccess"> & {
3154
+ isSuccess: true;
3155
+ isFetching: true;
3156
+ error: undefined;
3157
+ } & {
3158
+ data: {
3159
+ tool_servers: ToolServer[];
3160
+ };
3161
+ } & Required<Pick<QuerySubState<QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
3162
+ tool_servers: ToolServer[];
3163
+ }, "chatApi", unknown>> & {
3164
+ currentData?: {
3165
+ tool_servers: ToolServer[];
3166
+ };
3167
+ isUninitialized: false;
3168
+ isLoading: false;
3169
+ isFetching: false;
3170
+ isSuccess: false;
3171
+ isError: false;
3172
+ }, "fulfilledTimeStamp">>) | (Omit<QuerySubState<QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
3173
+ tool_servers: ToolServer[];
3174
+ }, "chatApi", unknown>> & {
3175
+ currentData?: {
3176
+ tool_servers: ToolServer[];
3177
+ };
3178
+ isUninitialized: false;
3179
+ isLoading: false;
3180
+ isFetching: false;
3181
+ isSuccess: false;
3182
+ isError: false;
3183
+ }, "data" | "error" | "fulfilledTimeStamp" | "currentData" | "isFetching" | "isSuccess"> & {
3184
+ isSuccess: true;
3185
+ isFetching: false;
3186
+ error: undefined;
3187
+ } & {
3188
+ data: {
3189
+ tool_servers: ToolServer[];
3190
+ };
3191
+ currentData: {
3192
+ tool_servers: ToolServer[];
3193
+ };
3194
+ } & Required<Pick<QuerySubState<QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
3195
+ tool_servers: ToolServer[];
3196
+ }, "chatApi", unknown>> & {
3197
+ currentData?: {
3198
+ tool_servers: ToolServer[];
3199
+ };
3200
+ isUninitialized: false;
3201
+ isLoading: false;
3202
+ isFetching: false;
3203
+ isSuccess: false;
3204
+ isError: false;
3205
+ }, "fulfilledTimeStamp">>) | (Omit<QuerySubState<QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
3206
+ tool_servers: ToolServer[];
3207
+ }, "chatApi", unknown>> & {
3208
+ currentData?: {
3209
+ tool_servers: ToolServer[];
3210
+ };
3211
+ isUninitialized: false;
3212
+ isLoading: false;
3213
+ isFetching: false;
3214
+ isSuccess: false;
3215
+ isError: false;
3216
+ }, "error" | "isError"> & {
3217
+ isError: true;
3218
+ } & Required<Pick<QuerySubState<QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
3219
+ tool_servers: ToolServer[];
3220
+ }, "chatApi", unknown>> & {
3221
+ currentData?: {
3222
+ tool_servers: ToolServer[];
3223
+ };
3224
+ isUninitialized: false;
3225
+ isLoading: false;
3226
+ isFetching: false;
3227
+ isSuccess: false;
3228
+ isError: false;
3229
+ }, "error">>)> & {
3230
+ status: QueryStatus;
3231
+ }) => R;
3232
+ }) => [R][R extends any ? 0 : never] & {
3233
+ refetch: () => QueryActionCreatorResult<QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
3234
+ tool_servers: ToolServer[];
3235
+ }, "chatApi", unknown>>;
3236
+ };
3237
+
3238
+ export declare function useInfiniteScroll({ hasMore, isLoadingRef, scrollAreaRef, onLoadMore, itemCount, }: {
3239
+ hasMore: boolean;
3240
+ isLoadingRef: MutableRefObject<boolean>;
3241
+ scrollAreaRef: MutableRefObject<HTMLDivElement | null>;
3242
+ onLoadMore: () => void;
3243
+ itemCount: number;
3244
+ }): (node: HTMLDivElement | null) => void;
3245
+
3246
+ export declare const useIsDesktop: () => boolean;
3247
+
3248
+ export declare const useLazyGetConversationByIdQuery: <R extends Record<string, any> = TSHelpersId<(Omit<{
3249
+ status: QueryStatus.uninitialized;
3250
+ originalArgs?: undefined;
3251
+ data?: undefined;
3252
+ error?: undefined;
3253
+ requestId?: undefined;
3254
+ endpointName?: string;
3255
+ startedTimeStamp?: undefined;
3256
+ fulfilledTimeStamp?: undefined;
3257
+ } & {
3258
+ currentData?: any;
3259
+ isUninitialized: false;
3260
+ isLoading: false;
3261
+ isFetching: false;
3262
+ isSuccess: false;
3263
+ isError: false;
3264
+ }, "isUninitialized"> & {
3265
+ isUninitialized: true;
3266
+ }) | (Omit<QuerySubState<QueryDefinition< {
3267
+ conversationId: string;
3268
+ skip?: number;
3269
+ limit?: number;
3270
+ }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", any, "chatApi", unknown>> & {
3271
+ currentData?: any;
3272
+ isUninitialized: false;
3273
+ isLoading: false;
3274
+ isFetching: false;
3275
+ isSuccess: false;
3276
+ isError: false;
3277
+ }, "data" | "isLoading" | "isFetching"> & {
3278
+ isLoading: true;
3279
+ isFetching: boolean;
3280
+ data: undefined;
3281
+ }) | (Omit<QuerySubState<QueryDefinition< {
3282
+ conversationId: string;
3283
+ skip?: number;
3284
+ limit?: number;
3285
+ }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", any, "chatApi", unknown>> & {
3286
+ currentData?: any;
3287
+ isUninitialized: false;
3288
+ isLoading: false;
3289
+ isFetching: false;
3290
+ isSuccess: false;
3291
+ isError: false;
3292
+ }, "data" | "error" | "fulfilledTimeStamp" | "isFetching" | "isSuccess"> & {
3293
+ isSuccess: true;
3294
+ isFetching: true;
3295
+ error: undefined;
3296
+ } & {
3297
+ data: any;
3298
+ } & Required<Pick<QuerySubState<QueryDefinition< {
3299
+ conversationId: string;
3300
+ skip?: number;
3301
+ limit?: number;
3302
+ }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", any, "chatApi", unknown>> & {
3303
+ currentData?: any;
3304
+ isUninitialized: false;
3305
+ isLoading: false;
3306
+ isFetching: false;
3307
+ isSuccess: false;
3308
+ isError: false;
3309
+ }, "fulfilledTimeStamp">>) | (Omit<QuerySubState<QueryDefinition< {
3310
+ conversationId: string;
3311
+ skip?: number;
3312
+ limit?: number;
3313
+ }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", any, "chatApi", unknown>> & {
3314
+ currentData?: any;
3315
+ isUninitialized: false;
3316
+ isLoading: false;
3317
+ isFetching: false;
3318
+ isSuccess: false;
3319
+ isError: false;
3320
+ }, "data" | "error" | "fulfilledTimeStamp" | "currentData" | "isFetching" | "isSuccess"> & {
3321
+ isSuccess: true;
3322
+ isFetching: false;
3323
+ error: undefined;
3324
+ } & {
3325
+ data: any;
3326
+ currentData: any;
3327
+ } & Required<Pick<QuerySubState<QueryDefinition< {
3328
+ conversationId: string;
3329
+ skip?: number;
3330
+ limit?: number;
3331
+ }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", any, "chatApi", unknown>> & {
3332
+ currentData?: any;
3333
+ isUninitialized: false;
3334
+ isLoading: false;
3335
+ isFetching: false;
3336
+ isSuccess: false;
3337
+ isError: false;
3338
+ }, "fulfilledTimeStamp">>) | (Omit<QuerySubState<QueryDefinition< {
3339
+ conversationId: string;
3340
+ skip?: number;
3341
+ limit?: number;
3342
+ }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", any, "chatApi", unknown>> & {
3343
+ currentData?: any;
3344
+ isUninitialized: false;
3345
+ isLoading: false;
3346
+ isFetching: false;
3347
+ isSuccess: false;
3348
+ isError: false;
3349
+ }, "error" | "isError"> & {
3350
+ isError: true;
3351
+ } & Required<Pick<QuerySubState<QueryDefinition< {
3352
+ conversationId: string;
3353
+ skip?: number;
3354
+ limit?: number;
3355
+ }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", any, "chatApi", unknown>> & {
3356
+ currentData?: any;
3357
+ isUninitialized: false;
3358
+ isLoading: false;
3359
+ isFetching: false;
3360
+ isSuccess: false;
3361
+ isError: false;
3362
+ }, "error">>)> & {
3363
+ status: QueryStatus;
3364
+ }>(options?: SubscriptionOptions & Omit<{
3365
+ skip?: boolean;
3366
+ selectFromResult?: (state: TSHelpersId<(Omit<{
3367
+ status: QueryStatus.uninitialized;
3368
+ originalArgs?: undefined;
3369
+ data?: undefined;
3370
+ error?: undefined;
3371
+ requestId?: undefined;
3372
+ endpointName?: string;
3373
+ startedTimeStamp?: undefined;
3374
+ fulfilledTimeStamp?: undefined;
3375
+ } & {
3376
+ currentData?: any;
3377
+ isUninitialized: false;
3378
+ isLoading: false;
3379
+ isFetching: false;
3380
+ isSuccess: false;
3381
+ isError: false;
3382
+ }, "isUninitialized"> & {
3383
+ isUninitialized: true;
3384
+ }) | (Omit<QuerySubState<QueryDefinition< {
3385
+ conversationId: string;
3386
+ skip?: number;
3387
+ limit?: number;
3388
+ }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", any, "chatApi", unknown>> & {
3389
+ currentData?: any;
3390
+ isUninitialized: false;
3391
+ isLoading: false;
3392
+ isFetching: false;
3393
+ isSuccess: false;
3394
+ isError: false;
3395
+ }, "data" | "isLoading" | "isFetching"> & {
3396
+ isLoading: true;
3397
+ isFetching: boolean;
3398
+ data: undefined;
3399
+ }) | (Omit<QuerySubState<QueryDefinition< {
3400
+ conversationId: string;
3401
+ skip?: number;
3402
+ limit?: number;
3403
+ }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", any, "chatApi", unknown>> & {
3404
+ currentData?: any;
3405
+ isUninitialized: false;
3406
+ isLoading: false;
3407
+ isFetching: false;
3408
+ isSuccess: false;
3409
+ isError: false;
3410
+ }, "data" | "error" | "fulfilledTimeStamp" | "isFetching" | "isSuccess"> & {
3411
+ isSuccess: true;
3412
+ isFetching: true;
3413
+ error: undefined;
3414
+ } & {
3415
+ data: any;
3416
+ } & Required<Pick<QuerySubState<QueryDefinition< {
3417
+ conversationId: string;
3418
+ skip?: number;
3419
+ limit?: number;
3420
+ }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", any, "chatApi", unknown>> & {
3421
+ currentData?: any;
3422
+ isUninitialized: false;
3423
+ isLoading: false;
3424
+ isFetching: false;
3425
+ isSuccess: false;
3426
+ isError: false;
3427
+ }, "fulfilledTimeStamp">>) | (Omit<QuerySubState<QueryDefinition< {
3428
+ conversationId: string;
3429
+ skip?: number;
3430
+ limit?: number;
3431
+ }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", any, "chatApi", unknown>> & {
3432
+ currentData?: any;
3433
+ isUninitialized: false;
3434
+ isLoading: false;
3435
+ isFetching: false;
3436
+ isSuccess: false;
3437
+ isError: false;
3438
+ }, "data" | "error" | "fulfilledTimeStamp" | "currentData" | "isFetching" | "isSuccess"> & {
3439
+ isSuccess: true;
3440
+ isFetching: false;
3441
+ error: undefined;
3442
+ } & {
3443
+ data: any;
3444
+ currentData: any;
3445
+ } & Required<Pick<QuerySubState<QueryDefinition< {
3446
+ conversationId: string;
3447
+ skip?: number;
3448
+ limit?: number;
3449
+ }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", any, "chatApi", unknown>> & {
3450
+ currentData?: any;
3451
+ isUninitialized: false;
3452
+ isLoading: false;
3453
+ isFetching: false;
3454
+ isSuccess: false;
3455
+ isError: false;
3456
+ }, "fulfilledTimeStamp">>) | (Omit<QuerySubState<QueryDefinition< {
3457
+ conversationId: string;
3458
+ skip?: number;
3459
+ limit?: number;
3460
+ }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", any, "chatApi", unknown>> & {
3461
+ currentData?: any;
3462
+ isUninitialized: false;
3463
+ isLoading: false;
3464
+ isFetching: false;
3465
+ isSuccess: false;
3466
+ isError: false;
3467
+ }, "error" | "isError"> & {
3468
+ isError: true;
3469
+ } & Required<Pick<QuerySubState<QueryDefinition< {
3470
+ conversationId: string;
3471
+ skip?: number;
3472
+ limit?: number;
3473
+ }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", any, "chatApi", unknown>> & {
3474
+ currentData?: any;
3475
+ isUninitialized: false;
3476
+ isLoading: false;
3477
+ isFetching: false;
3478
+ isSuccess: false;
3479
+ isError: false;
3480
+ }, "error">>)> & {
3481
+ status: QueryStatus;
3482
+ }) => R;
3483
+ }, "skip">) => [(arg: {
3484
+ conversationId: string;
3485
+ skip?: number;
3486
+ limit?: number;
3487
+ }, preferCacheValue?: boolean) => QueryActionCreatorResult<QueryDefinition< {
3488
+ conversationId: string;
3489
+ skip?: number;
3490
+ limit?: number;
3491
+ }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", any, "chatApi", unknown>>, [R][R extends any ? 0 : never] & {
3492
+ reset: () => void;
3493
+ }, {
3494
+ lastArg: {
3495
+ conversationId: string;
3496
+ skip?: number;
3497
+ limit?: number;
3498
+ };
3499
+ }];
3500
+
3501
+ export declare const useLocationInit: () => boolean;
3502
+
3503
+ export declare function useLogin(): {
3504
+ login: (credentials: SessionCreateRequest) => Promise<{
3505
+ success: true;
3506
+ data: AppResponse<SessionResponse>;
3507
+ error?: undefined;
3508
+ } | {
3509
+ success: false;
3510
+ error: any;
3511
+ data?: undefined;
3512
+ }>;
3513
+ isLoading: boolean;
3514
+ };
3515
+
3516
+ export declare function useLogout(): {
3517
+ logout: () => Promise<void>;
3518
+ };
3519
+
3520
+ export declare const useMediaQuery: (query: string) => boolean;
3521
+
3522
+ export declare const useMessageList: ({ messages, voiceStreamingMessages, voiceActive, }: UseMessageListParams) => UseMessageListResult;
3523
+
3524
+ export declare interface UseMessageListParams {
3525
+ messages: Message[];
3526
+ voiceStreamingMessages?: Message[];
3527
+ voiceActive: boolean;
3528
+ }
3529
+
3530
+ export declare interface UseMessageListResult {
3531
+ visibleMessages: Message[];
3532
+ lastUserMessageIndex: number;
3533
+ indicator: ChatIndicator;
3534
+ classifyArrival: () => MessageArrival;
3535
+ }
3536
+
3537
+ export declare function useOAuthPopup({ signInInit, sendMessageRef, clearSignInInit, sendResumeMessage, }: UseOAuthPopupArgs): void;
3538
+
3539
+ declare interface UseOAuthPopupArgs {
3540
+ signInInit: SignInInitPayload | null;
3541
+ sendMessageRef: RefObject<SendMessageFn_2 | null>;
3542
+ clearSignInInit: () => void;
3543
+ sendResumeMessage?: boolean;
3544
+ }
3545
+
3546
+ export declare function usePayment({ sendMessageRef }: UsePaymentArgs): UsePaymentResult;
3547
+
3548
+ export declare interface UsePaymentArgs {
3549
+ sendMessageRef: MutableRefObject<SendMessageFn_3 | null>;
3550
+ }
3551
+
3552
+ export declare const usePaymentFlow: ({ sendMessageRef, }: UsePaymentFlowArgs) => UsePaymentFlowReturn;
3553
+
3554
+ declare interface UsePaymentFlowArgs {
3555
+ sendMessageRef: MutableRefObject<SendMessageFn | null>;
3556
+ }
3557
+
3558
+ declare interface UsePaymentFlowReturn {
3559
+ paymentInit: PaymentInitPayload | null;
3560
+ setPaymentInit: (next: PaymentInitPayload | null) => void;
3561
+ clearPaymentInit: () => void;
3562
+ handlePaymentResult: (result: PaymentResult) => void;
3563
+ }
3564
+
3565
+ export declare interface UsePaymentResult {
3566
+ paymentInit: PaymentInitPayload | null;
3567
+ setPaymentInit: (next: PaymentInitPayload | null) => void;
3568
+ isOpen: boolean;
3569
+ onOpenChange: (open: boolean) => void;
3570
+ onResult: (result: PaymentResult) => void;
3571
+ clearPaymentInit: () => void;
3572
+ }
3573
+
3574
+ export declare function usePaymentResultDedup({ paymentInit, onPaymentResult, onClearPaymentInit, }: UsePaymentResultDedupArgs): UsePaymentResultDedupReturn;
3575
+
3576
+ declare interface UsePaymentResultDedupArgs {
3577
+ paymentInit: PaymentInitPayload | null;
3578
+ onPaymentResult?: (result: PaymentResult) => void;
3579
+ onClearPaymentInit?: () => void;
3580
+ }
3581
+
3582
+ declare interface UsePaymentResultDedupReturn {
3583
+ handlePaymentResult: (result: PaymentResult) => void;
3584
+ handleModalOpenChange: (next: boolean) => void;
3585
+ }
3586
+
3587
+ export declare const useProtocol: () => ProtocolContextType;
3588
+
3589
+ export declare function useRefreshToken(): {
3590
+ refresh: () => Promise<{
3591
+ success: true;
3592
+ data: SessionRefreshResponse;
3593
+ error?: undefined;
3594
+ } | {
3595
+ success: false;
3596
+ error: any;
3597
+ data?: undefined;
3598
+ }>;
3599
+ isLoading: boolean;
3600
+ };
3601
+
3602
+ export declare const useResolvedChatIndicators: (voiceActive: boolean) => ChatIndicator;
3603
+
3604
+ export declare interface UserLocation {
3605
+ latitude: number;
3606
+ longitude: number;
3607
+ address: string;
3608
+ timezone: string;
3609
+ }
3610
+
3611
+ export declare function useSignup(): {
3612
+ signup: (payload: SignupRequest) => Promise<{
3613
+ success: true;
3614
+ data: AppResponse<SessionResponse>;
3615
+ error?: undefined;
3616
+ } | {
3617
+ success: false;
3618
+ error: any;
3619
+ data?: undefined;
3620
+ }>;
3621
+ isLoading: boolean;
3622
+ };
3623
+
3624
+ export declare const useStartToolServerOAuthMutation: <R extends Record<string, any> = ({
3625
+ requestId?: undefined;
3626
+ status: QueryStatus.uninitialized;
3627
+ data?: undefined;
3628
+ error?: undefined;
3629
+ endpointName?: string;
3630
+ startedTimeStamp?: undefined;
3631
+ fulfilledTimeStamp?: undefined;
3632
+ } & {
3633
+ status: QueryStatus.uninitialized;
3634
+ isUninitialized: true;
3635
+ isLoading: false;
3636
+ isSuccess: false;
3637
+ isError: false;
3638
+ }) | ({
3639
+ status: QueryStatus.fulfilled;
3640
+ } & Omit<{
3641
+ requestId: string;
3642
+ data?: {
3643
+ authorize_url: string;
3644
+ };
3645
+ error?: FetchBaseQueryError | SerializedError;
3646
+ endpointName: string;
3647
+ startedTimeStamp: number;
3648
+ fulfilledTimeStamp?: number;
3649
+ }, "data" | "fulfilledTimeStamp"> & Required<Pick<{
3650
+ requestId: string;
3651
+ data?: {
3652
+ authorize_url: string;
3653
+ };
3654
+ error?: FetchBaseQueryError | SerializedError;
3655
+ endpointName: string;
3656
+ startedTimeStamp: number;
3657
+ fulfilledTimeStamp?: number;
3658
+ }, "data" | "fulfilledTimeStamp">> & {
3659
+ error: undefined;
3660
+ } & {
3661
+ status: QueryStatus.fulfilled;
3662
+ isUninitialized: false;
3663
+ isLoading: false;
3664
+ isSuccess: true;
3665
+ isError: false;
3666
+ }) | ({
3667
+ status: QueryStatus.pending;
3668
+ } & {
3669
+ requestId: string;
3670
+ data?: {
3671
+ authorize_url: string;
3672
+ };
3673
+ error?: FetchBaseQueryError | SerializedError;
3674
+ endpointName: string;
3675
+ startedTimeStamp: number;
3676
+ fulfilledTimeStamp?: number;
3677
+ } & {
3678
+ data?: undefined;
3679
+ } & {
3680
+ status: QueryStatus.pending;
3681
+ isUninitialized: false;
3682
+ isLoading: true;
3683
+ isSuccess: false;
3684
+ isError: false;
3685
+ }) | ({
3686
+ status: QueryStatus.rejected;
3687
+ } & Omit<{
3688
+ requestId: string;
3689
+ data?: {
3690
+ authorize_url: string;
3691
+ };
3692
+ error?: FetchBaseQueryError | SerializedError;
3693
+ endpointName: string;
3694
+ startedTimeStamp: number;
3695
+ fulfilledTimeStamp?: number;
3696
+ }, "error"> & Required<Pick<{
3697
+ requestId: string;
3698
+ data?: {
3699
+ authorize_url: string;
3700
+ };
3701
+ error?: FetchBaseQueryError | SerializedError;
3702
+ endpointName: string;
3703
+ startedTimeStamp: number;
3704
+ fulfilledTimeStamp?: number;
3705
+ }, "error">> & {
3706
+ status: QueryStatus.rejected;
3707
+ isUninitialized: false;
3708
+ isLoading: false;
3709
+ isSuccess: false;
3710
+ isError: true;
3711
+ })>(options?: {
3712
+ selectFromResult?: (state: ({
3713
+ requestId?: undefined;
3714
+ status: QueryStatus.uninitialized;
3715
+ data?: undefined;
3716
+ error?: undefined;
3717
+ endpointName?: string;
3718
+ startedTimeStamp?: undefined;
3719
+ fulfilledTimeStamp?: undefined;
3720
+ } & {
3721
+ status: QueryStatus.uninitialized;
3722
+ isUninitialized: true;
3723
+ isLoading: false;
3724
+ isSuccess: false;
3725
+ isError: false;
3726
+ }) | ({
3727
+ status: QueryStatus.fulfilled;
3728
+ } & Omit<{
3729
+ requestId: string;
3730
+ data?: {
3731
+ authorize_url: string;
3732
+ };
3733
+ error?: FetchBaseQueryError | SerializedError;
3734
+ endpointName: string;
3735
+ startedTimeStamp: number;
3736
+ fulfilledTimeStamp?: number;
3737
+ }, "data" | "fulfilledTimeStamp"> & Required<Pick<{
3738
+ requestId: string;
3739
+ data?: {
3740
+ authorize_url: string;
3741
+ };
3742
+ error?: FetchBaseQueryError | SerializedError;
3743
+ endpointName: string;
3744
+ startedTimeStamp: number;
3745
+ fulfilledTimeStamp?: number;
3746
+ }, "data" | "fulfilledTimeStamp">> & {
3747
+ error: undefined;
3748
+ } & {
3749
+ status: QueryStatus.fulfilled;
3750
+ isUninitialized: false;
3751
+ isLoading: false;
3752
+ isSuccess: true;
3753
+ isError: false;
3754
+ }) | ({
3755
+ status: QueryStatus.pending;
3756
+ } & {
3757
+ requestId: string;
3758
+ data?: {
3759
+ authorize_url: string;
3760
+ };
3761
+ error?: FetchBaseQueryError | SerializedError;
3762
+ endpointName: string;
3763
+ startedTimeStamp: number;
3764
+ fulfilledTimeStamp?: number;
3765
+ } & {
3766
+ data?: undefined;
3767
+ } & {
3768
+ status: QueryStatus.pending;
3769
+ isUninitialized: false;
3770
+ isLoading: true;
3771
+ isSuccess: false;
3772
+ isError: false;
3773
+ }) | ({
3774
+ status: QueryStatus.rejected;
3775
+ } & Omit<{
3776
+ requestId: string;
3777
+ data?: {
3778
+ authorize_url: string;
3779
+ };
3780
+ error?: FetchBaseQueryError | SerializedError;
3781
+ endpointName: string;
3782
+ startedTimeStamp: number;
3783
+ fulfilledTimeStamp?: number;
3784
+ }, "error"> & Required<Pick<{
3785
+ requestId: string;
3786
+ data?: {
3787
+ authorize_url: string;
3788
+ };
3789
+ error?: FetchBaseQueryError | SerializedError;
3790
+ endpointName: string;
3791
+ startedTimeStamp: number;
3792
+ fulfilledTimeStamp?: number;
3793
+ }, "error">> & {
3794
+ status: QueryStatus.rejected;
3795
+ isUninitialized: false;
3796
+ isLoading: false;
3797
+ isSuccess: false;
3798
+ isError: true;
3799
+ })) => R;
3800
+ fixedCacheKey?: string;
3801
+ }) => readonly [(arg: string) => MutationActionCreatorResult<MutationDefinition<string, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
3802
+ authorize_url: string;
3803
+ }, "chatApi", unknown>>, TSHelpersNoInfer<R> & {
3804
+ originalArgs?: string;
3805
+ reset: () => void;
3806
+ }];
3807
+
3808
+ export declare const useSTTRecording: ({ onTranscriptionComplete, onTranscriptionPopulate, autoSendVoice, }?: UseSTTRecordingParams) => UseSTTRecordingReturn;
3809
+
3810
+ declare interface UseSTTRecordingParams {
3811
+ onTranscriptionComplete?: (text: string) => Promise<void>;
3812
+ onTranscriptionPopulate?: (text: string) => void;
3813
+ autoSendVoice?: boolean;
3814
+ }
3815
+
3816
+ declare interface UseSTTRecordingReturn {
3817
+ isRecording: boolean;
3818
+ isTranscribing: boolean;
3819
+ audioLevel: number;
3820
+ startRecording: () => Promise<void>;
3821
+ stopRecording: () => Promise<void>;
3822
+ }
3823
+
3824
+ export declare const useThinkingMessage: (params?: UseThinkingMessageParams) => UseThinkingMessageResult;
3825
+
3826
+ export declare interface UseThinkingMessageParams {
3827
+ enabled?: boolean;
3828
+ }
3829
+
3830
+ export declare interface UseThinkingMessageResult {
3831
+ message: string;
3832
+ isVisible: boolean;
3833
+ }
3834
+
3835
+ export declare function useTokenRefresh({ refreshSession, checkIntervalMs, }: UseTokenRefreshOptions): UseTokenRefreshResult;
3836
+
3837
+ export declare interface UseTokenRefreshOptions {
3838
+ refreshSession: () => Promise<TokenRefreshResult | null>;
3839
+ checkIntervalMs?: number;
3840
+ }
3841
+
3842
+ export declare interface UseTokenRefreshResult {
3843
+ checkNow: () => void;
3844
+ }
3845
+
3846
+ export declare const useTranscribeAudioMutation: <R extends Record<string, any> = ({
3847
+ requestId?: undefined;
3848
+ status: QueryStatus.uninitialized;
3849
+ data?: undefined;
3850
+ error?: undefined;
3851
+ endpointName?: string;
3852
+ startedTimeStamp?: undefined;
3853
+ fulfilledTimeStamp?: undefined;
3854
+ } & {
3855
+ status: QueryStatus.uninitialized;
3856
+ isUninitialized: true;
3857
+ isLoading: false;
3858
+ isSuccess: false;
3859
+ isError: false;
3860
+ }) | ({
3861
+ status: QueryStatus.fulfilled;
3862
+ } & Omit<{
3863
+ requestId: string;
3864
+ data?: {
3865
+ success: boolean;
3866
+ data: {
3867
+ text: string;
3868
+ filename?: string;
3869
+ };
3870
+ };
3871
+ error?: FetchBaseQueryError | SerializedError;
3872
+ endpointName: string;
3873
+ startedTimeStamp: number;
3874
+ fulfilledTimeStamp?: number;
3875
+ }, "data" | "fulfilledTimeStamp"> & Required<Pick<{
3876
+ requestId: string;
3877
+ data?: {
3878
+ success: boolean;
3879
+ data: {
3880
+ text: string;
3881
+ filename?: string;
3882
+ };
3883
+ };
3884
+ error?: FetchBaseQueryError | SerializedError;
3885
+ endpointName: string;
3886
+ startedTimeStamp: number;
3887
+ fulfilledTimeStamp?: number;
3888
+ }, "data" | "fulfilledTimeStamp">> & {
3889
+ error: undefined;
3890
+ } & {
3891
+ status: QueryStatus.fulfilled;
3892
+ isUninitialized: false;
3893
+ isLoading: false;
3894
+ isSuccess: true;
3895
+ isError: false;
3896
+ }) | ({
3897
+ status: QueryStatus.pending;
3898
+ } & {
3899
+ requestId: string;
3900
+ data?: {
3901
+ success: boolean;
3902
+ data: {
3903
+ text: string;
3904
+ filename?: string;
3905
+ };
3906
+ };
3907
+ error?: FetchBaseQueryError | SerializedError;
3908
+ endpointName: string;
3909
+ startedTimeStamp: number;
3910
+ fulfilledTimeStamp?: number;
3911
+ } & {
3912
+ data?: undefined;
3913
+ } & {
3914
+ status: QueryStatus.pending;
3915
+ isUninitialized: false;
3916
+ isLoading: true;
3917
+ isSuccess: false;
3918
+ isError: false;
3919
+ }) | ({
3920
+ status: QueryStatus.rejected;
3921
+ } & Omit<{
3922
+ requestId: string;
3923
+ data?: {
3924
+ success: boolean;
3925
+ data: {
3926
+ text: string;
3927
+ filename?: string;
3928
+ };
3929
+ };
3930
+ error?: FetchBaseQueryError | SerializedError;
3931
+ endpointName: string;
3932
+ startedTimeStamp: number;
3933
+ fulfilledTimeStamp?: number;
3934
+ }, "error"> & Required<Pick<{
3935
+ requestId: string;
3936
+ data?: {
3937
+ success: boolean;
3938
+ data: {
3939
+ text: string;
3940
+ filename?: string;
3941
+ };
3942
+ };
3943
+ error?: FetchBaseQueryError | SerializedError;
3944
+ endpointName: string;
3945
+ startedTimeStamp: number;
3946
+ fulfilledTimeStamp?: number;
3947
+ }, "error">> & {
3948
+ status: QueryStatus.rejected;
3949
+ isUninitialized: false;
3950
+ isLoading: false;
3951
+ isSuccess: false;
3952
+ isError: true;
3953
+ })>(options?: {
3954
+ selectFromResult?: (state: ({
3955
+ requestId?: undefined;
3956
+ status: QueryStatus.uninitialized;
3957
+ data?: undefined;
3958
+ error?: undefined;
3959
+ endpointName?: string;
3960
+ startedTimeStamp?: undefined;
3961
+ fulfilledTimeStamp?: undefined;
3962
+ } & {
3963
+ status: QueryStatus.uninitialized;
3964
+ isUninitialized: true;
3965
+ isLoading: false;
3966
+ isSuccess: false;
3967
+ isError: false;
3968
+ }) | ({
3969
+ status: QueryStatus.fulfilled;
3970
+ } & Omit<{
3971
+ requestId: string;
3972
+ data?: {
3973
+ success: boolean;
3974
+ data: {
3975
+ text: string;
3976
+ filename?: string;
3977
+ };
3978
+ };
3979
+ error?: FetchBaseQueryError | SerializedError;
3980
+ endpointName: string;
3981
+ startedTimeStamp: number;
3982
+ fulfilledTimeStamp?: number;
3983
+ }, "data" | "fulfilledTimeStamp"> & Required<Pick<{
3984
+ requestId: string;
3985
+ data?: {
3986
+ success: boolean;
3987
+ data: {
3988
+ text: string;
3989
+ filename?: string;
3990
+ };
3991
+ };
3992
+ error?: FetchBaseQueryError | SerializedError;
3993
+ endpointName: string;
3994
+ startedTimeStamp: number;
3995
+ fulfilledTimeStamp?: number;
3996
+ }, "data" | "fulfilledTimeStamp">> & {
3997
+ error: undefined;
3998
+ } & {
3999
+ status: QueryStatus.fulfilled;
4000
+ isUninitialized: false;
4001
+ isLoading: false;
4002
+ isSuccess: true;
4003
+ isError: false;
4004
+ }) | ({
4005
+ status: QueryStatus.pending;
4006
+ } & {
4007
+ requestId: string;
4008
+ data?: {
4009
+ success: boolean;
4010
+ data: {
4011
+ text: string;
4012
+ filename?: string;
4013
+ };
4014
+ };
4015
+ error?: FetchBaseQueryError | SerializedError;
4016
+ endpointName: string;
4017
+ startedTimeStamp: number;
4018
+ fulfilledTimeStamp?: number;
4019
+ } & {
4020
+ data?: undefined;
4021
+ } & {
4022
+ status: QueryStatus.pending;
4023
+ isUninitialized: false;
4024
+ isLoading: true;
4025
+ isSuccess: false;
4026
+ isError: false;
4027
+ }) | ({
4028
+ status: QueryStatus.rejected;
4029
+ } & Omit<{
4030
+ requestId: string;
4031
+ data?: {
4032
+ success: boolean;
4033
+ data: {
4034
+ text: string;
4035
+ filename?: string;
4036
+ };
4037
+ };
4038
+ error?: FetchBaseQueryError | SerializedError;
4039
+ endpointName: string;
4040
+ startedTimeStamp: number;
4041
+ fulfilledTimeStamp?: number;
4042
+ }, "error"> & Required<Pick<{
4043
+ requestId: string;
4044
+ data?: {
4045
+ success: boolean;
4046
+ data: {
4047
+ text: string;
4048
+ filename?: string;
4049
+ };
4050
+ };
4051
+ error?: FetchBaseQueryError | SerializedError;
4052
+ endpointName: string;
4053
+ startedTimeStamp: number;
4054
+ fulfilledTimeStamp?: number;
4055
+ }, "error">> & {
4056
+ status: QueryStatus.rejected;
4057
+ isUninitialized: false;
4058
+ isLoading: false;
4059
+ isSuccess: false;
4060
+ isError: true;
4061
+ })) => R;
4062
+ fixedCacheKey?: string;
4063
+ }) => readonly [(arg: {
4064
+ audioFile: File;
4065
+ }) => MutationActionCreatorResult<MutationDefinition< {
4066
+ audioFile: File;
4067
+ }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
4068
+ success: boolean;
4069
+ data: {
4070
+ text: string;
4071
+ filename?: string;
4072
+ };
4073
+ }, "chatApi", unknown>>, TSHelpersNoInfer<R> & {
4074
+ originalArgs?: {
4075
+ audioFile: File;
4076
+ };
4077
+ reset: () => void;
4078
+ }];
4079
+
4080
+ export declare function useTypewriter(text: string, intervalMs?: number): UseTypewriterResult;
4081
+
4082
+ export declare type UseTypewriterResult = string;
4083
+
4084
+ export declare const useUpdateProfileMutation: <R extends Record<string, any> = ({
4085
+ requestId?: undefined;
4086
+ status: QueryStatus.uninitialized;
4087
+ data?: undefined;
4088
+ error?: undefined;
4089
+ endpointName?: string;
4090
+ startedTimeStamp?: undefined;
4091
+ fulfilledTimeStamp?: undefined;
4092
+ } & {
4093
+ status: QueryStatus.uninitialized;
4094
+ isUninitialized: true;
4095
+ isLoading: false;
4096
+ isSuccess: false;
4097
+ isError: false;
4098
+ }) | ({
4099
+ status: QueryStatus.fulfilled;
4100
+ } & Omit<{
4101
+ requestId: string;
4102
+ data?: void;
4103
+ error?: FetchBaseQueryError | SerializedError;
4104
+ endpointName: string;
4105
+ startedTimeStamp: number;
4106
+ fulfilledTimeStamp?: number;
4107
+ }, "data" | "fulfilledTimeStamp"> & Required<Pick<{
4108
+ requestId: string;
4109
+ data?: void;
4110
+ error?: FetchBaseQueryError | SerializedError;
4111
+ endpointName: string;
4112
+ startedTimeStamp: number;
4113
+ fulfilledTimeStamp?: number;
4114
+ }, "data" | "fulfilledTimeStamp">> & {
4115
+ error: undefined;
4116
+ } & {
4117
+ status: QueryStatus.fulfilled;
4118
+ isUninitialized: false;
4119
+ isLoading: false;
4120
+ isSuccess: true;
4121
+ isError: false;
4122
+ }) | ({
4123
+ status: QueryStatus.pending;
4124
+ } & {
4125
+ requestId: string;
4126
+ data?: void;
4127
+ error?: FetchBaseQueryError | SerializedError;
4128
+ endpointName: string;
4129
+ startedTimeStamp: number;
4130
+ fulfilledTimeStamp?: number;
4131
+ } & {
4132
+ data?: undefined;
4133
+ } & {
4134
+ status: QueryStatus.pending;
4135
+ isUninitialized: false;
4136
+ isLoading: true;
4137
+ isSuccess: false;
4138
+ isError: false;
4139
+ }) | ({
4140
+ status: QueryStatus.rejected;
4141
+ } & Omit<{
4142
+ requestId: string;
4143
+ data?: void;
4144
+ error?: FetchBaseQueryError | SerializedError;
4145
+ endpointName: string;
4146
+ startedTimeStamp: number;
4147
+ fulfilledTimeStamp?: number;
4148
+ }, "error"> & Required<Pick<{
4149
+ requestId: string;
4150
+ data?: void;
4151
+ error?: FetchBaseQueryError | SerializedError;
4152
+ endpointName: string;
4153
+ startedTimeStamp: number;
4154
+ fulfilledTimeStamp?: number;
4155
+ }, "error">> & {
4156
+ status: QueryStatus.rejected;
4157
+ isUninitialized: false;
4158
+ isLoading: false;
4159
+ isSuccess: false;
4160
+ isError: true;
4161
+ })>(options?: {
4162
+ selectFromResult?: (state: ({
4163
+ requestId?: undefined;
4164
+ status: QueryStatus.uninitialized;
4165
+ data?: undefined;
4166
+ error?: undefined;
4167
+ endpointName?: string;
4168
+ startedTimeStamp?: undefined;
4169
+ fulfilledTimeStamp?: undefined;
4170
+ } & {
4171
+ status: QueryStatus.uninitialized;
4172
+ isUninitialized: true;
4173
+ isLoading: false;
4174
+ isSuccess: false;
4175
+ isError: false;
4176
+ }) | ({
4177
+ status: QueryStatus.fulfilled;
4178
+ } & Omit<{
4179
+ requestId: string;
4180
+ data?: void;
4181
+ error?: FetchBaseQueryError | SerializedError;
4182
+ endpointName: string;
4183
+ startedTimeStamp: number;
4184
+ fulfilledTimeStamp?: number;
4185
+ }, "data" | "fulfilledTimeStamp"> & Required<Pick<{
4186
+ requestId: string;
4187
+ data?: void;
4188
+ error?: FetchBaseQueryError | SerializedError;
4189
+ endpointName: string;
4190
+ startedTimeStamp: number;
4191
+ fulfilledTimeStamp?: number;
4192
+ }, "data" | "fulfilledTimeStamp">> & {
4193
+ error: undefined;
4194
+ } & {
4195
+ status: QueryStatus.fulfilled;
4196
+ isUninitialized: false;
4197
+ isLoading: false;
4198
+ isSuccess: true;
4199
+ isError: false;
4200
+ }) | ({
4201
+ status: QueryStatus.pending;
4202
+ } & {
4203
+ requestId: string;
4204
+ data?: void;
4205
+ error?: FetchBaseQueryError | SerializedError;
4206
+ endpointName: string;
4207
+ startedTimeStamp: number;
4208
+ fulfilledTimeStamp?: number;
4209
+ } & {
4210
+ data?: undefined;
4211
+ } & {
4212
+ status: QueryStatus.pending;
4213
+ isUninitialized: false;
4214
+ isLoading: true;
4215
+ isSuccess: false;
4216
+ isError: false;
4217
+ }) | ({
4218
+ status: QueryStatus.rejected;
4219
+ } & Omit<{
4220
+ requestId: string;
4221
+ data?: void;
4222
+ error?: FetchBaseQueryError | SerializedError;
4223
+ endpointName: string;
4224
+ startedTimeStamp: number;
4225
+ fulfilledTimeStamp?: number;
4226
+ }, "error"> & Required<Pick<{
4227
+ requestId: string;
4228
+ data?: void;
4229
+ error?: FetchBaseQueryError | SerializedError;
4230
+ endpointName: string;
4231
+ startedTimeStamp: number;
4232
+ fulfilledTimeStamp?: number;
4233
+ }, "error">> & {
4234
+ status: QueryStatus.rejected;
4235
+ isUninitialized: false;
4236
+ isLoading: false;
4237
+ isSuccess: false;
4238
+ isError: true;
4239
+ })) => R;
4240
+ fixedCacheKey?: string;
4241
+ }) => readonly [(arg: UpdateProfilePayload) => MutationActionCreatorResult<MutationDefinition<UpdateProfilePayload, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "profile", void, "profileApi", unknown>>, TSHelpersNoInfer<R> & {
4242
+ originalArgs?: UpdateProfilePayload;
4243
+ reset: () => void;
4244
+ }];
4245
+
4246
+ export declare const useUserLocation: () => UseUserLocationResult;
4247
+
4248
+ declare interface UseUserLocationResult {
4249
+ getUserLocation: () => Promise<UserLocation | null>;
4250
+ isLoading: boolean;
4251
+ error: string | null;
4252
+ }
4253
+
4254
+ export declare interface VoiceAgentConfig {
4255
+ enabled: boolean;
4256
+ show_customization_modal: boolean;
4257
+ assistant_starts_conversation: boolean;
4258
+ }
4259
+
4260
+ export { }