@1interface/chat-core 0.9.0 → 0.11.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.
- package/dist/index.d.ts +627 -4
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -37,6 +37,7 @@ import { Reducer } from '@reduxjs/toolkit';
|
|
|
37
37
|
import { RefObject } from 'react';
|
|
38
38
|
import { RefreshApiResult } from '@1interface/shared-core';
|
|
39
39
|
import { RefreshRequest } from '@1interface/shared-core';
|
|
40
|
+
import { ResendVerificationRequest } from '@1interface/shared-core';
|
|
40
41
|
import { ResetPasswordRequest } from '@1interface/shared-core';
|
|
41
42
|
import { RootState as RootState_2 } from '@reduxjs/toolkit/query';
|
|
42
43
|
import { SerializedError } from '@reduxjs/toolkit';
|
|
@@ -45,6 +46,7 @@ import { SessionRefreshResponse } from '@1interface/shared-core';
|
|
|
45
46
|
import { SessionResponse } from '@1interface/shared-core';
|
|
46
47
|
import { SetStateAction } from 'react';
|
|
47
48
|
import { SignInInitPayload } from '@1interface/shared-core';
|
|
49
|
+
import { SignupApiResult } from '@1interface/shared-core';
|
|
48
50
|
import { SignupRequest } from '@1interface/shared-core';
|
|
49
51
|
import { skipToken } from '@reduxjs/toolkit/query';
|
|
50
52
|
import { SsoStartResponse } from '@1interface/shared-core';
|
|
@@ -62,6 +64,8 @@ import { Tuple } from '@reduxjs/toolkit';
|
|
|
62
64
|
import { UnknownAction } from '@reduxjs/toolkit';
|
|
63
65
|
import { UnsubscribeListener } from '@reduxjs/toolkit';
|
|
64
66
|
import { UserResponse } from '@1interface/shared-core';
|
|
67
|
+
import { VerificationRequiredResult } from '@1interface/shared-core';
|
|
68
|
+
import { VerifyEmailRequest } from '@1interface/shared-core';
|
|
65
69
|
|
|
66
70
|
export declare interface AdapterConfig {
|
|
67
71
|
getAuthToken: () => string | null;
|
|
@@ -123,6 +127,24 @@ text: string;
|
|
|
123
127
|
transcription_id: string;
|
|
124
128
|
};
|
|
125
129
|
}, "chatApi", unknown>;
|
|
130
|
+
uploadDocument: MutationDefinition< {
|
|
131
|
+
file: DocumentUploadFile;
|
|
132
|
+
filename?: string;
|
|
133
|
+
documentType?: string;
|
|
134
|
+
conversationId?: string;
|
|
135
|
+
}, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
|
|
136
|
+
success: boolean;
|
|
137
|
+
data: {
|
|
138
|
+
document_id: string;
|
|
139
|
+
filename: string;
|
|
140
|
+
original_filename: string;
|
|
141
|
+
mime_type: string;
|
|
142
|
+
size_bytes: number;
|
|
143
|
+
};
|
|
144
|
+
}, "chatApi", unknown>;
|
|
145
|
+
deleteDocument: MutationDefinition<string, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
|
|
146
|
+
success: boolean;
|
|
147
|
+
}, "chatApi", unknown>;
|
|
126
148
|
getToolServers: QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
|
|
127
149
|
tool_servers: ToolServer[];
|
|
128
150
|
}, "chatApi", unknown>;
|
|
@@ -175,6 +197,24 @@ export declare const apiReducers: {
|
|
|
175
197
|
transcription_id: string;
|
|
176
198
|
};
|
|
177
199
|
}, "chatApi", unknown>;
|
|
200
|
+
uploadDocument: MutationDefinition< {
|
|
201
|
+
file: DocumentUploadFile;
|
|
202
|
+
filename?: string;
|
|
203
|
+
documentType?: string;
|
|
204
|
+
conversationId?: string;
|
|
205
|
+
}, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
|
|
206
|
+
success: boolean;
|
|
207
|
+
data: {
|
|
208
|
+
document_id: string;
|
|
209
|
+
filename: string;
|
|
210
|
+
original_filename: string;
|
|
211
|
+
mime_type: string;
|
|
212
|
+
size_bytes: number;
|
|
213
|
+
};
|
|
214
|
+
}, "chatApi", unknown>;
|
|
215
|
+
deleteDocument: MutationDefinition<string, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
|
|
216
|
+
success: boolean;
|
|
217
|
+
}, "chatApi", unknown>;
|
|
178
218
|
getToolServers: QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
|
|
179
219
|
tool_servers: ToolServer[];
|
|
180
220
|
}, "chatApi", unknown>;
|
|
@@ -344,6 +384,24 @@ text: string;
|
|
|
344
384
|
transcription_id: string;
|
|
345
385
|
};
|
|
346
386
|
}, "chatApi", unknown>;
|
|
387
|
+
uploadDocument: MutationDefinition< {
|
|
388
|
+
file: DocumentUploadFile;
|
|
389
|
+
filename?: string;
|
|
390
|
+
documentType?: string;
|
|
391
|
+
conversationId?: string;
|
|
392
|
+
}, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
|
|
393
|
+
success: boolean;
|
|
394
|
+
data: {
|
|
395
|
+
document_id: string;
|
|
396
|
+
filename: string;
|
|
397
|
+
original_filename: string;
|
|
398
|
+
mime_type: string;
|
|
399
|
+
size_bytes: number;
|
|
400
|
+
};
|
|
401
|
+
}, "chatApi", unknown>;
|
|
402
|
+
deleteDocument: MutationDefinition<string, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
|
|
403
|
+
success: boolean;
|
|
404
|
+
}, "chatApi", unknown>;
|
|
347
405
|
getToolServers: QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
|
|
348
406
|
tool_servers: ToolServer[];
|
|
349
407
|
}, "chatApi", unknown>;
|
|
@@ -418,6 +476,24 @@ text: string;
|
|
|
418
476
|
transcription_id: string;
|
|
419
477
|
};
|
|
420
478
|
}, "chatApi", unknown>;
|
|
479
|
+
uploadDocument: MutationDefinition< {
|
|
480
|
+
file: DocumentUploadFile;
|
|
481
|
+
filename?: string;
|
|
482
|
+
documentType?: string;
|
|
483
|
+
conversationId?: string;
|
|
484
|
+
}, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
|
|
485
|
+
success: boolean;
|
|
486
|
+
data: {
|
|
487
|
+
document_id: string;
|
|
488
|
+
filename: string;
|
|
489
|
+
original_filename: string;
|
|
490
|
+
mime_type: string;
|
|
491
|
+
size_bytes: number;
|
|
492
|
+
};
|
|
493
|
+
}, "chatApi", unknown>;
|
|
494
|
+
deleteDocument: MutationDefinition<string, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
|
|
495
|
+
success: boolean;
|
|
496
|
+
}, "chatApi", unknown>;
|
|
421
497
|
getToolServers: QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
|
|
422
498
|
tool_servers: ToolServer[];
|
|
423
499
|
}, "chatApi", unknown>;
|
|
@@ -494,6 +570,24 @@ text: string;
|
|
|
494
570
|
transcription_id: string;
|
|
495
571
|
};
|
|
496
572
|
}, "chatApi", unknown>;
|
|
573
|
+
uploadDocument: MutationDefinition< {
|
|
574
|
+
file: DocumentUploadFile;
|
|
575
|
+
filename?: string;
|
|
576
|
+
documentType?: string;
|
|
577
|
+
conversationId?: string;
|
|
578
|
+
}, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
|
|
579
|
+
success: boolean;
|
|
580
|
+
data: {
|
|
581
|
+
document_id: string;
|
|
582
|
+
filename: string;
|
|
583
|
+
original_filename: string;
|
|
584
|
+
mime_type: string;
|
|
585
|
+
size_bytes: number;
|
|
586
|
+
};
|
|
587
|
+
}, "chatApi", unknown>;
|
|
588
|
+
deleteDocument: MutationDefinition<string, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
|
|
589
|
+
success: boolean;
|
|
590
|
+
}, "chatApi", unknown>;
|
|
497
591
|
getToolServers: QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
|
|
498
592
|
tool_servers: ToolServer[];
|
|
499
593
|
}, "chatApi", unknown>;
|
|
@@ -616,6 +710,12 @@ export declare interface ClientConfigResponse {
|
|
|
616
710
|
data: ClientConfig | null;
|
|
617
711
|
}
|
|
618
712
|
|
|
713
|
+
export declare interface CodeEntryErrorCopy {
|
|
714
|
+
generic: string;
|
|
715
|
+
validation: string;
|
|
716
|
+
invalidCode: string;
|
|
717
|
+
}
|
|
718
|
+
|
|
619
719
|
export declare const configApi: Api<BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, {
|
|
620
720
|
getConfig: QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, never, ClientConfigResponse, "configApi", unknown>;
|
|
621
721
|
}, "configApi", never, coreModuleName | reactHooksModuleName>;
|
|
@@ -680,6 +780,12 @@ export declare const DEFAULT_PROTOCOL: ProtocolType;
|
|
|
680
780
|
|
|
681
781
|
export declare const dequeueMessage: ActionCreatorWithoutPayload<"chat/dequeueMessage">;
|
|
682
782
|
|
|
783
|
+
export declare type DocumentUploadFile = File | Blob | {
|
|
784
|
+
uri: string;
|
|
785
|
+
name: string;
|
|
786
|
+
type: string;
|
|
787
|
+
};
|
|
788
|
+
|
|
683
789
|
export declare const enqueueMessage: ActionCreatorWithOptionalPayload<QueuedMessage, "chat/enqueueMessage">;
|
|
684
790
|
|
|
685
791
|
export declare const ERROR_CODES: {
|
|
@@ -729,6 +835,10 @@ export declare function getAuthToken(): string | null;
|
|
|
729
835
|
|
|
730
836
|
export declare function getCachedLocation(storage: Storage_2): Promise<UserLocation | null>;
|
|
731
837
|
|
|
838
|
+
export declare function getCodeEntryErrorMessage(error: unknown, copy: CodeEntryErrorCopy): string;
|
|
839
|
+
|
|
840
|
+
export declare function getErrorGroup(error: unknown): string | null;
|
|
841
|
+
|
|
732
842
|
export declare const getLatestRequestId: () => string;
|
|
733
843
|
|
|
734
844
|
export declare function guestLoginApi(): Promise<AuthApiResult>;
|
|
@@ -916,6 +1026,8 @@ export declare interface QueuedMessage {
|
|
|
916
1026
|
|
|
917
1027
|
export declare function refreshTokenApi(payload: RefreshRequest): Promise<RefreshApiResult>;
|
|
918
1028
|
|
|
1029
|
+
export declare function resendVerificationApi(payload: ResendVerificationRequest): Promise<string | undefined>;
|
|
1030
|
+
|
|
919
1031
|
export declare const resetAllApiState: () => ThunkAction<void, unknown, unknown, UnknownAction>;
|
|
920
1032
|
|
|
921
1033
|
export declare function resetChatLoggerForTests(): void;
|
|
@@ -953,7 +1065,7 @@ export declare const setStatusText: ActionCreatorWithOptionalPayload<string, "ch
|
|
|
953
1065
|
|
|
954
1066
|
export declare function shouldDisableMessage(message: Message, allMessages: Message[], disableOldWidgets: boolean): boolean;
|
|
955
1067
|
|
|
956
|
-
export declare function signupApi(payload: SignupRequest): Promise<
|
|
1068
|
+
export declare function signupApi(payload: SignupRequest): Promise<SignupApiResult>;
|
|
957
1069
|
|
|
958
1070
|
export declare enum SSEEventType {
|
|
959
1071
|
START = "start",
|
|
@@ -1044,6 +1156,24 @@ text: string;
|
|
|
1044
1156
|
transcription_id: string;
|
|
1045
1157
|
};
|
|
1046
1158
|
}, "chatApi", unknown>;
|
|
1159
|
+
uploadDocument: MutationDefinition< {
|
|
1160
|
+
file: DocumentUploadFile;
|
|
1161
|
+
filename?: string;
|
|
1162
|
+
documentType?: string;
|
|
1163
|
+
conversationId?: string;
|
|
1164
|
+
}, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
|
|
1165
|
+
success: boolean;
|
|
1166
|
+
data: {
|
|
1167
|
+
document_id: string;
|
|
1168
|
+
filename: string;
|
|
1169
|
+
original_filename: string;
|
|
1170
|
+
mime_type: string;
|
|
1171
|
+
size_bytes: number;
|
|
1172
|
+
};
|
|
1173
|
+
}, "chatApi", unknown>;
|
|
1174
|
+
deleteDocument: MutationDefinition<string, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
|
|
1175
|
+
success: boolean;
|
|
1176
|
+
}, "chatApi", unknown>;
|
|
1047
1177
|
getToolServers: QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
|
|
1048
1178
|
tool_servers: ToolServer[];
|
|
1049
1179
|
}, "chatApi", unknown>;
|
|
@@ -1121,6 +1251,24 @@ text: string;
|
|
|
1121
1251
|
transcription_id: string;
|
|
1122
1252
|
};
|
|
1123
1253
|
}, "chatApi", unknown>;
|
|
1254
|
+
uploadDocument: MutationDefinition< {
|
|
1255
|
+
file: DocumentUploadFile;
|
|
1256
|
+
filename?: string;
|
|
1257
|
+
documentType?: string;
|
|
1258
|
+
conversationId?: string;
|
|
1259
|
+
}, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
|
|
1260
|
+
success: boolean;
|
|
1261
|
+
data: {
|
|
1262
|
+
document_id: string;
|
|
1263
|
+
filename: string;
|
|
1264
|
+
original_filename: string;
|
|
1265
|
+
mime_type: string;
|
|
1266
|
+
size_bytes: number;
|
|
1267
|
+
};
|
|
1268
|
+
}, "chatApi", unknown>;
|
|
1269
|
+
deleteDocument: MutationDefinition<string, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
|
|
1270
|
+
success: boolean;
|
|
1271
|
+
}, "chatApi", unknown>;
|
|
1124
1272
|
getToolServers: QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
|
|
1125
1273
|
tool_servers: ToolServer[];
|
|
1126
1274
|
}, "chatApi", unknown>;
|
|
@@ -1835,6 +1983,190 @@ conversationId: string;
|
|
|
1835
1983
|
reset: () => void;
|
|
1836
1984
|
}];
|
|
1837
1985
|
|
|
1986
|
+
export declare const useDeleteDocumentMutation: <R extends Record<string, any> = ({
|
|
1987
|
+
requestId?: undefined;
|
|
1988
|
+
status: QueryStatus.uninitialized;
|
|
1989
|
+
data?: undefined;
|
|
1990
|
+
error?: undefined;
|
|
1991
|
+
endpointName?: string;
|
|
1992
|
+
startedTimeStamp?: undefined;
|
|
1993
|
+
fulfilledTimeStamp?: undefined;
|
|
1994
|
+
} & {
|
|
1995
|
+
status: QueryStatus.uninitialized;
|
|
1996
|
+
isUninitialized: true;
|
|
1997
|
+
isLoading: false;
|
|
1998
|
+
isSuccess: false;
|
|
1999
|
+
isError: false;
|
|
2000
|
+
}) | ({
|
|
2001
|
+
status: QueryStatus.fulfilled;
|
|
2002
|
+
} & Omit<{
|
|
2003
|
+
requestId: string;
|
|
2004
|
+
data?: {
|
|
2005
|
+
success: boolean;
|
|
2006
|
+
};
|
|
2007
|
+
error?: FetchBaseQueryError | SerializedError;
|
|
2008
|
+
endpointName: string;
|
|
2009
|
+
startedTimeStamp: number;
|
|
2010
|
+
fulfilledTimeStamp?: number;
|
|
2011
|
+
}, "data" | "fulfilledTimeStamp"> & Required<Pick<{
|
|
2012
|
+
requestId: string;
|
|
2013
|
+
data?: {
|
|
2014
|
+
success: boolean;
|
|
2015
|
+
};
|
|
2016
|
+
error?: FetchBaseQueryError | SerializedError;
|
|
2017
|
+
endpointName: string;
|
|
2018
|
+
startedTimeStamp: number;
|
|
2019
|
+
fulfilledTimeStamp?: number;
|
|
2020
|
+
}, "data" | "fulfilledTimeStamp">> & {
|
|
2021
|
+
error: undefined;
|
|
2022
|
+
} & {
|
|
2023
|
+
status: QueryStatus.fulfilled;
|
|
2024
|
+
isUninitialized: false;
|
|
2025
|
+
isLoading: false;
|
|
2026
|
+
isSuccess: true;
|
|
2027
|
+
isError: false;
|
|
2028
|
+
}) | ({
|
|
2029
|
+
status: QueryStatus.pending;
|
|
2030
|
+
} & {
|
|
2031
|
+
requestId: string;
|
|
2032
|
+
data?: {
|
|
2033
|
+
success: boolean;
|
|
2034
|
+
};
|
|
2035
|
+
error?: FetchBaseQueryError | SerializedError;
|
|
2036
|
+
endpointName: string;
|
|
2037
|
+
startedTimeStamp: number;
|
|
2038
|
+
fulfilledTimeStamp?: number;
|
|
2039
|
+
} & {
|
|
2040
|
+
data?: undefined;
|
|
2041
|
+
} & {
|
|
2042
|
+
status: QueryStatus.pending;
|
|
2043
|
+
isUninitialized: false;
|
|
2044
|
+
isLoading: true;
|
|
2045
|
+
isSuccess: false;
|
|
2046
|
+
isError: false;
|
|
2047
|
+
}) | ({
|
|
2048
|
+
status: QueryStatus.rejected;
|
|
2049
|
+
} & Omit<{
|
|
2050
|
+
requestId: string;
|
|
2051
|
+
data?: {
|
|
2052
|
+
success: boolean;
|
|
2053
|
+
};
|
|
2054
|
+
error?: FetchBaseQueryError | SerializedError;
|
|
2055
|
+
endpointName: string;
|
|
2056
|
+
startedTimeStamp: number;
|
|
2057
|
+
fulfilledTimeStamp?: number;
|
|
2058
|
+
}, "error"> & Required<Pick<{
|
|
2059
|
+
requestId: string;
|
|
2060
|
+
data?: {
|
|
2061
|
+
success: boolean;
|
|
2062
|
+
};
|
|
2063
|
+
error?: FetchBaseQueryError | SerializedError;
|
|
2064
|
+
endpointName: string;
|
|
2065
|
+
startedTimeStamp: number;
|
|
2066
|
+
fulfilledTimeStamp?: number;
|
|
2067
|
+
}, "error">> & {
|
|
2068
|
+
status: QueryStatus.rejected;
|
|
2069
|
+
isUninitialized: false;
|
|
2070
|
+
isLoading: false;
|
|
2071
|
+
isSuccess: false;
|
|
2072
|
+
isError: true;
|
|
2073
|
+
})>(options?: {
|
|
2074
|
+
selectFromResult?: (state: ({
|
|
2075
|
+
requestId?: undefined;
|
|
2076
|
+
status: QueryStatus.uninitialized;
|
|
2077
|
+
data?: undefined;
|
|
2078
|
+
error?: undefined;
|
|
2079
|
+
endpointName?: string;
|
|
2080
|
+
startedTimeStamp?: undefined;
|
|
2081
|
+
fulfilledTimeStamp?: undefined;
|
|
2082
|
+
} & {
|
|
2083
|
+
status: QueryStatus.uninitialized;
|
|
2084
|
+
isUninitialized: true;
|
|
2085
|
+
isLoading: false;
|
|
2086
|
+
isSuccess: false;
|
|
2087
|
+
isError: false;
|
|
2088
|
+
}) | ({
|
|
2089
|
+
status: QueryStatus.fulfilled;
|
|
2090
|
+
} & Omit<{
|
|
2091
|
+
requestId: string;
|
|
2092
|
+
data?: {
|
|
2093
|
+
success: boolean;
|
|
2094
|
+
};
|
|
2095
|
+
error?: FetchBaseQueryError | SerializedError;
|
|
2096
|
+
endpointName: string;
|
|
2097
|
+
startedTimeStamp: number;
|
|
2098
|
+
fulfilledTimeStamp?: number;
|
|
2099
|
+
}, "data" | "fulfilledTimeStamp"> & Required<Pick<{
|
|
2100
|
+
requestId: string;
|
|
2101
|
+
data?: {
|
|
2102
|
+
success: boolean;
|
|
2103
|
+
};
|
|
2104
|
+
error?: FetchBaseQueryError | SerializedError;
|
|
2105
|
+
endpointName: string;
|
|
2106
|
+
startedTimeStamp: number;
|
|
2107
|
+
fulfilledTimeStamp?: number;
|
|
2108
|
+
}, "data" | "fulfilledTimeStamp">> & {
|
|
2109
|
+
error: undefined;
|
|
2110
|
+
} & {
|
|
2111
|
+
status: QueryStatus.fulfilled;
|
|
2112
|
+
isUninitialized: false;
|
|
2113
|
+
isLoading: false;
|
|
2114
|
+
isSuccess: true;
|
|
2115
|
+
isError: false;
|
|
2116
|
+
}) | ({
|
|
2117
|
+
status: QueryStatus.pending;
|
|
2118
|
+
} & {
|
|
2119
|
+
requestId: string;
|
|
2120
|
+
data?: {
|
|
2121
|
+
success: boolean;
|
|
2122
|
+
};
|
|
2123
|
+
error?: FetchBaseQueryError | SerializedError;
|
|
2124
|
+
endpointName: string;
|
|
2125
|
+
startedTimeStamp: number;
|
|
2126
|
+
fulfilledTimeStamp?: number;
|
|
2127
|
+
} & {
|
|
2128
|
+
data?: undefined;
|
|
2129
|
+
} & {
|
|
2130
|
+
status: QueryStatus.pending;
|
|
2131
|
+
isUninitialized: false;
|
|
2132
|
+
isLoading: true;
|
|
2133
|
+
isSuccess: false;
|
|
2134
|
+
isError: false;
|
|
2135
|
+
}) | ({
|
|
2136
|
+
status: QueryStatus.rejected;
|
|
2137
|
+
} & Omit<{
|
|
2138
|
+
requestId: string;
|
|
2139
|
+
data?: {
|
|
2140
|
+
success: boolean;
|
|
2141
|
+
};
|
|
2142
|
+
error?: FetchBaseQueryError | SerializedError;
|
|
2143
|
+
endpointName: string;
|
|
2144
|
+
startedTimeStamp: number;
|
|
2145
|
+
fulfilledTimeStamp?: number;
|
|
2146
|
+
}, "error"> & Required<Pick<{
|
|
2147
|
+
requestId: string;
|
|
2148
|
+
data?: {
|
|
2149
|
+
success: boolean;
|
|
2150
|
+
};
|
|
2151
|
+
error?: FetchBaseQueryError | SerializedError;
|
|
2152
|
+
endpointName: string;
|
|
2153
|
+
startedTimeStamp: number;
|
|
2154
|
+
fulfilledTimeStamp?: number;
|
|
2155
|
+
}, "error">> & {
|
|
2156
|
+
status: QueryStatus.rejected;
|
|
2157
|
+
isUninitialized: false;
|
|
2158
|
+
isLoading: false;
|
|
2159
|
+
isSuccess: false;
|
|
2160
|
+
isError: true;
|
|
2161
|
+
})) => R;
|
|
2162
|
+
fixedCacheKey?: string;
|
|
2163
|
+
}) => readonly [(arg: string) => MutationActionCreatorResult<MutationDefinition<string, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
|
|
2164
|
+
success: boolean;
|
|
2165
|
+
}, "chatApi", unknown>>, TSHelpersNoInfer<R> & {
|
|
2166
|
+
originalArgs?: string;
|
|
2167
|
+
reset: () => void;
|
|
2168
|
+
}];
|
|
2169
|
+
|
|
1838
2170
|
export declare const useDeleteToolServerConnectionMutation: <R extends Record<string, any> = ({
|
|
1839
2171
|
requestId?: undefined;
|
|
1840
2172
|
status: QueryStatus.uninitialized;
|
|
@@ -3318,7 +3650,7 @@ export declare interface UseGuestBootResult {
|
|
|
3318
3650
|
export declare function useGuestLogin(): {
|
|
3319
3651
|
guestLogin: () => Promise<{
|
|
3320
3652
|
success: true;
|
|
3321
|
-
data: AppResponse<SessionResponse>;
|
|
3653
|
+
data: AppResponse<SessionResponse | VerificationRequiredResult>;
|
|
3322
3654
|
error?: undefined;
|
|
3323
3655
|
} | {
|
|
3324
3656
|
success: false;
|
|
@@ -3596,7 +3928,7 @@ export declare const useLocationInit: () => boolean;
|
|
|
3596
3928
|
export declare function useLogin(): {
|
|
3597
3929
|
login: (credentials: SessionCreateRequest) => Promise<{
|
|
3598
3930
|
success: true;
|
|
3599
|
-
data: AppResponse<SessionResponse>;
|
|
3931
|
+
data: AppResponse<SessionResponse | VerificationRequiredResult>;
|
|
3600
3932
|
error?: undefined;
|
|
3601
3933
|
} | {
|
|
3602
3934
|
success: false;
|
|
@@ -3704,7 +4036,7 @@ export declare interface UserLocation {
|
|
|
3704
4036
|
export declare function useSignup(): {
|
|
3705
4037
|
signup: (payload: SignupRequest) => Promise<{
|
|
3706
4038
|
success: true;
|
|
3707
|
-
data: AppResponse<SessionResponse>;
|
|
4039
|
+
data: AppResponse<SessionResponse | VerificationRequiredResult>;
|
|
3708
4040
|
error?: undefined;
|
|
3709
4041
|
} | {
|
|
3710
4042
|
success: false;
|
|
@@ -4502,6 +4834,282 @@ export declare const useUpdateProfileMutation: <R extends Record<string, any> =
|
|
|
4502
4834
|
reset: () => void;
|
|
4503
4835
|
}];
|
|
4504
4836
|
|
|
4837
|
+
export declare const useUploadDocumentMutation: <R extends Record<string, any> = ({
|
|
4838
|
+
requestId?: undefined;
|
|
4839
|
+
status: QueryStatus.uninitialized;
|
|
4840
|
+
data?: undefined;
|
|
4841
|
+
error?: undefined;
|
|
4842
|
+
endpointName?: string;
|
|
4843
|
+
startedTimeStamp?: undefined;
|
|
4844
|
+
fulfilledTimeStamp?: undefined;
|
|
4845
|
+
} & {
|
|
4846
|
+
status: QueryStatus.uninitialized;
|
|
4847
|
+
isUninitialized: true;
|
|
4848
|
+
isLoading: false;
|
|
4849
|
+
isSuccess: false;
|
|
4850
|
+
isError: false;
|
|
4851
|
+
}) | ({
|
|
4852
|
+
status: QueryStatus.fulfilled;
|
|
4853
|
+
} & Omit<{
|
|
4854
|
+
requestId: string;
|
|
4855
|
+
data?: {
|
|
4856
|
+
success: boolean;
|
|
4857
|
+
data: {
|
|
4858
|
+
document_id: string;
|
|
4859
|
+
filename: string;
|
|
4860
|
+
original_filename: string;
|
|
4861
|
+
mime_type: string;
|
|
4862
|
+
size_bytes: number;
|
|
4863
|
+
};
|
|
4864
|
+
};
|
|
4865
|
+
error?: FetchBaseQueryError | SerializedError;
|
|
4866
|
+
endpointName: string;
|
|
4867
|
+
startedTimeStamp: number;
|
|
4868
|
+
fulfilledTimeStamp?: number;
|
|
4869
|
+
}, "data" | "fulfilledTimeStamp"> & Required<Pick<{
|
|
4870
|
+
requestId: string;
|
|
4871
|
+
data?: {
|
|
4872
|
+
success: boolean;
|
|
4873
|
+
data: {
|
|
4874
|
+
document_id: string;
|
|
4875
|
+
filename: string;
|
|
4876
|
+
original_filename: string;
|
|
4877
|
+
mime_type: string;
|
|
4878
|
+
size_bytes: number;
|
|
4879
|
+
};
|
|
4880
|
+
};
|
|
4881
|
+
error?: FetchBaseQueryError | SerializedError;
|
|
4882
|
+
endpointName: string;
|
|
4883
|
+
startedTimeStamp: number;
|
|
4884
|
+
fulfilledTimeStamp?: number;
|
|
4885
|
+
}, "data" | "fulfilledTimeStamp">> & {
|
|
4886
|
+
error: undefined;
|
|
4887
|
+
} & {
|
|
4888
|
+
status: QueryStatus.fulfilled;
|
|
4889
|
+
isUninitialized: false;
|
|
4890
|
+
isLoading: false;
|
|
4891
|
+
isSuccess: true;
|
|
4892
|
+
isError: false;
|
|
4893
|
+
}) | ({
|
|
4894
|
+
status: QueryStatus.pending;
|
|
4895
|
+
} & {
|
|
4896
|
+
requestId: string;
|
|
4897
|
+
data?: {
|
|
4898
|
+
success: boolean;
|
|
4899
|
+
data: {
|
|
4900
|
+
document_id: string;
|
|
4901
|
+
filename: string;
|
|
4902
|
+
original_filename: string;
|
|
4903
|
+
mime_type: string;
|
|
4904
|
+
size_bytes: number;
|
|
4905
|
+
};
|
|
4906
|
+
};
|
|
4907
|
+
error?: FetchBaseQueryError | SerializedError;
|
|
4908
|
+
endpointName: string;
|
|
4909
|
+
startedTimeStamp: number;
|
|
4910
|
+
fulfilledTimeStamp?: number;
|
|
4911
|
+
} & {
|
|
4912
|
+
data?: undefined;
|
|
4913
|
+
} & {
|
|
4914
|
+
status: QueryStatus.pending;
|
|
4915
|
+
isUninitialized: false;
|
|
4916
|
+
isLoading: true;
|
|
4917
|
+
isSuccess: false;
|
|
4918
|
+
isError: false;
|
|
4919
|
+
}) | ({
|
|
4920
|
+
status: QueryStatus.rejected;
|
|
4921
|
+
} & Omit<{
|
|
4922
|
+
requestId: string;
|
|
4923
|
+
data?: {
|
|
4924
|
+
success: boolean;
|
|
4925
|
+
data: {
|
|
4926
|
+
document_id: string;
|
|
4927
|
+
filename: string;
|
|
4928
|
+
original_filename: string;
|
|
4929
|
+
mime_type: string;
|
|
4930
|
+
size_bytes: number;
|
|
4931
|
+
};
|
|
4932
|
+
};
|
|
4933
|
+
error?: FetchBaseQueryError | SerializedError;
|
|
4934
|
+
endpointName: string;
|
|
4935
|
+
startedTimeStamp: number;
|
|
4936
|
+
fulfilledTimeStamp?: number;
|
|
4937
|
+
}, "error"> & Required<Pick<{
|
|
4938
|
+
requestId: string;
|
|
4939
|
+
data?: {
|
|
4940
|
+
success: boolean;
|
|
4941
|
+
data: {
|
|
4942
|
+
document_id: string;
|
|
4943
|
+
filename: string;
|
|
4944
|
+
original_filename: string;
|
|
4945
|
+
mime_type: string;
|
|
4946
|
+
size_bytes: number;
|
|
4947
|
+
};
|
|
4948
|
+
};
|
|
4949
|
+
error?: FetchBaseQueryError | SerializedError;
|
|
4950
|
+
endpointName: string;
|
|
4951
|
+
startedTimeStamp: number;
|
|
4952
|
+
fulfilledTimeStamp?: number;
|
|
4953
|
+
}, "error">> & {
|
|
4954
|
+
status: QueryStatus.rejected;
|
|
4955
|
+
isUninitialized: false;
|
|
4956
|
+
isLoading: false;
|
|
4957
|
+
isSuccess: false;
|
|
4958
|
+
isError: true;
|
|
4959
|
+
})>(options?: {
|
|
4960
|
+
selectFromResult?: (state: ({
|
|
4961
|
+
requestId?: undefined;
|
|
4962
|
+
status: QueryStatus.uninitialized;
|
|
4963
|
+
data?: undefined;
|
|
4964
|
+
error?: undefined;
|
|
4965
|
+
endpointName?: string;
|
|
4966
|
+
startedTimeStamp?: undefined;
|
|
4967
|
+
fulfilledTimeStamp?: undefined;
|
|
4968
|
+
} & {
|
|
4969
|
+
status: QueryStatus.uninitialized;
|
|
4970
|
+
isUninitialized: true;
|
|
4971
|
+
isLoading: false;
|
|
4972
|
+
isSuccess: false;
|
|
4973
|
+
isError: false;
|
|
4974
|
+
}) | ({
|
|
4975
|
+
status: QueryStatus.fulfilled;
|
|
4976
|
+
} & Omit<{
|
|
4977
|
+
requestId: string;
|
|
4978
|
+
data?: {
|
|
4979
|
+
success: boolean;
|
|
4980
|
+
data: {
|
|
4981
|
+
document_id: string;
|
|
4982
|
+
filename: string;
|
|
4983
|
+
original_filename: string;
|
|
4984
|
+
mime_type: string;
|
|
4985
|
+
size_bytes: number;
|
|
4986
|
+
};
|
|
4987
|
+
};
|
|
4988
|
+
error?: FetchBaseQueryError | SerializedError;
|
|
4989
|
+
endpointName: string;
|
|
4990
|
+
startedTimeStamp: number;
|
|
4991
|
+
fulfilledTimeStamp?: number;
|
|
4992
|
+
}, "data" | "fulfilledTimeStamp"> & Required<Pick<{
|
|
4993
|
+
requestId: string;
|
|
4994
|
+
data?: {
|
|
4995
|
+
success: boolean;
|
|
4996
|
+
data: {
|
|
4997
|
+
document_id: string;
|
|
4998
|
+
filename: string;
|
|
4999
|
+
original_filename: string;
|
|
5000
|
+
mime_type: string;
|
|
5001
|
+
size_bytes: number;
|
|
5002
|
+
};
|
|
5003
|
+
};
|
|
5004
|
+
error?: FetchBaseQueryError | SerializedError;
|
|
5005
|
+
endpointName: string;
|
|
5006
|
+
startedTimeStamp: number;
|
|
5007
|
+
fulfilledTimeStamp?: number;
|
|
5008
|
+
}, "data" | "fulfilledTimeStamp">> & {
|
|
5009
|
+
error: undefined;
|
|
5010
|
+
} & {
|
|
5011
|
+
status: QueryStatus.fulfilled;
|
|
5012
|
+
isUninitialized: false;
|
|
5013
|
+
isLoading: false;
|
|
5014
|
+
isSuccess: true;
|
|
5015
|
+
isError: false;
|
|
5016
|
+
}) | ({
|
|
5017
|
+
status: QueryStatus.pending;
|
|
5018
|
+
} & {
|
|
5019
|
+
requestId: string;
|
|
5020
|
+
data?: {
|
|
5021
|
+
success: boolean;
|
|
5022
|
+
data: {
|
|
5023
|
+
document_id: string;
|
|
5024
|
+
filename: string;
|
|
5025
|
+
original_filename: string;
|
|
5026
|
+
mime_type: string;
|
|
5027
|
+
size_bytes: number;
|
|
5028
|
+
};
|
|
5029
|
+
};
|
|
5030
|
+
error?: FetchBaseQueryError | SerializedError;
|
|
5031
|
+
endpointName: string;
|
|
5032
|
+
startedTimeStamp: number;
|
|
5033
|
+
fulfilledTimeStamp?: number;
|
|
5034
|
+
} & {
|
|
5035
|
+
data?: undefined;
|
|
5036
|
+
} & {
|
|
5037
|
+
status: QueryStatus.pending;
|
|
5038
|
+
isUninitialized: false;
|
|
5039
|
+
isLoading: true;
|
|
5040
|
+
isSuccess: false;
|
|
5041
|
+
isError: false;
|
|
5042
|
+
}) | ({
|
|
5043
|
+
status: QueryStatus.rejected;
|
|
5044
|
+
} & Omit<{
|
|
5045
|
+
requestId: string;
|
|
5046
|
+
data?: {
|
|
5047
|
+
success: boolean;
|
|
5048
|
+
data: {
|
|
5049
|
+
document_id: string;
|
|
5050
|
+
filename: string;
|
|
5051
|
+
original_filename: string;
|
|
5052
|
+
mime_type: string;
|
|
5053
|
+
size_bytes: number;
|
|
5054
|
+
};
|
|
5055
|
+
};
|
|
5056
|
+
error?: FetchBaseQueryError | SerializedError;
|
|
5057
|
+
endpointName: string;
|
|
5058
|
+
startedTimeStamp: number;
|
|
5059
|
+
fulfilledTimeStamp?: number;
|
|
5060
|
+
}, "error"> & Required<Pick<{
|
|
5061
|
+
requestId: string;
|
|
5062
|
+
data?: {
|
|
5063
|
+
success: boolean;
|
|
5064
|
+
data: {
|
|
5065
|
+
document_id: string;
|
|
5066
|
+
filename: string;
|
|
5067
|
+
original_filename: string;
|
|
5068
|
+
mime_type: string;
|
|
5069
|
+
size_bytes: number;
|
|
5070
|
+
};
|
|
5071
|
+
};
|
|
5072
|
+
error?: FetchBaseQueryError | SerializedError;
|
|
5073
|
+
endpointName: string;
|
|
5074
|
+
startedTimeStamp: number;
|
|
5075
|
+
fulfilledTimeStamp?: number;
|
|
5076
|
+
}, "error">> & {
|
|
5077
|
+
status: QueryStatus.rejected;
|
|
5078
|
+
isUninitialized: false;
|
|
5079
|
+
isLoading: false;
|
|
5080
|
+
isSuccess: false;
|
|
5081
|
+
isError: true;
|
|
5082
|
+
})) => R;
|
|
5083
|
+
fixedCacheKey?: string;
|
|
5084
|
+
}) => readonly [(arg: {
|
|
5085
|
+
file: DocumentUploadFile;
|
|
5086
|
+
filename?: string;
|
|
5087
|
+
documentType?: string;
|
|
5088
|
+
conversationId?: string;
|
|
5089
|
+
}) => MutationActionCreatorResult<MutationDefinition< {
|
|
5090
|
+
file: DocumentUploadFile;
|
|
5091
|
+
filename?: string;
|
|
5092
|
+
documentType?: string;
|
|
5093
|
+
conversationId?: string;
|
|
5094
|
+
}, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
|
|
5095
|
+
success: boolean;
|
|
5096
|
+
data: {
|
|
5097
|
+
document_id: string;
|
|
5098
|
+
filename: string;
|
|
5099
|
+
original_filename: string;
|
|
5100
|
+
mime_type: string;
|
|
5101
|
+
size_bytes: number;
|
|
5102
|
+
};
|
|
5103
|
+
}, "chatApi", unknown>>, TSHelpersNoInfer<R> & {
|
|
5104
|
+
originalArgs?: {
|
|
5105
|
+
file: DocumentUploadFile;
|
|
5106
|
+
filename?: string;
|
|
5107
|
+
documentType?: string;
|
|
5108
|
+
conversationId?: string;
|
|
5109
|
+
};
|
|
5110
|
+
reset: () => void;
|
|
5111
|
+
}];
|
|
5112
|
+
|
|
4505
5113
|
export declare const useUserLocation: () => UseUserLocationResult;
|
|
4506
5114
|
|
|
4507
5115
|
declare interface UseUserLocationResult {
|
|
@@ -4510,6 +5118,21 @@ declare interface UseUserLocationResult {
|
|
|
4510
5118
|
error: string | null;
|
|
4511
5119
|
}
|
|
4512
5120
|
|
|
5121
|
+
export declare function useVerifyEmail(): {
|
|
5122
|
+
verify: (payload: VerifyEmailRequest) => Promise<{
|
|
5123
|
+
success: true;
|
|
5124
|
+
data: AppResponse<SessionResponse | VerificationRequiredResult>;
|
|
5125
|
+
error?: undefined;
|
|
5126
|
+
} | {
|
|
5127
|
+
success: false;
|
|
5128
|
+
error: any;
|
|
5129
|
+
data?: undefined;
|
|
5130
|
+
}>;
|
|
5131
|
+
isLoading: boolean;
|
|
5132
|
+
};
|
|
5133
|
+
|
|
5134
|
+
export declare function verifyEmailApi(payload: VerifyEmailRequest): Promise<SignupApiResult>;
|
|
5135
|
+
|
|
4513
5136
|
export declare interface VoiceAgentConfig {
|
|
4514
5137
|
enabled: boolean;
|
|
4515
5138
|
show_customization_modal: boolean;
|