@1interface/chat-core 0.11.0 → 0.13.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 +30 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -132,6 +132,8 @@ file: DocumentUploadFile;
|
|
|
132
132
|
filename?: string;
|
|
133
133
|
documentType?: string;
|
|
134
134
|
conversationId?: string;
|
|
135
|
+
onUploadProgress?: (loaded: number, total: number) => void;
|
|
136
|
+
onUploadComplete?: () => void;
|
|
135
137
|
}, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
|
|
136
138
|
success: boolean;
|
|
137
139
|
data: {
|
|
@@ -202,6 +204,8 @@ export declare const apiReducers: {
|
|
|
202
204
|
filename?: string;
|
|
203
205
|
documentType?: string;
|
|
204
206
|
conversationId?: string;
|
|
207
|
+
onUploadProgress?: (loaded: number, total: number) => void;
|
|
208
|
+
onUploadComplete?: () => void;
|
|
205
209
|
}, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
|
|
206
210
|
success: boolean;
|
|
207
211
|
data: {
|
|
@@ -389,6 +393,8 @@ file: DocumentUploadFile;
|
|
|
389
393
|
filename?: string;
|
|
390
394
|
documentType?: string;
|
|
391
395
|
conversationId?: string;
|
|
396
|
+
onUploadProgress?: (loaded: number, total: number) => void;
|
|
397
|
+
onUploadComplete?: () => void;
|
|
392
398
|
}, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
|
|
393
399
|
success: boolean;
|
|
394
400
|
data: {
|
|
@@ -481,6 +487,8 @@ file: DocumentUploadFile;
|
|
|
481
487
|
filename?: string;
|
|
482
488
|
documentType?: string;
|
|
483
489
|
conversationId?: string;
|
|
490
|
+
onUploadProgress?: (loaded: number, total: number) => void;
|
|
491
|
+
onUploadComplete?: () => void;
|
|
484
492
|
}, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
|
|
485
493
|
success: boolean;
|
|
486
494
|
data: {
|
|
@@ -575,6 +583,8 @@ file: DocumentUploadFile;
|
|
|
575
583
|
filename?: string;
|
|
576
584
|
documentType?: string;
|
|
577
585
|
conversationId?: string;
|
|
586
|
+
onUploadProgress?: (loaded: number, total: number) => void;
|
|
587
|
+
onUploadComplete?: () => void;
|
|
578
588
|
}, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
|
|
579
589
|
success: boolean;
|
|
580
590
|
data: {
|
|
@@ -1161,6 +1171,8 @@ file: DocumentUploadFile;
|
|
|
1161
1171
|
filename?: string;
|
|
1162
1172
|
documentType?: string;
|
|
1163
1173
|
conversationId?: string;
|
|
1174
|
+
onUploadProgress?: (loaded: number, total: number) => void;
|
|
1175
|
+
onUploadComplete?: () => void;
|
|
1164
1176
|
}, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
|
|
1165
1177
|
success: boolean;
|
|
1166
1178
|
data: {
|
|
@@ -1256,6 +1268,8 @@ file: DocumentUploadFile;
|
|
|
1256
1268
|
filename?: string;
|
|
1257
1269
|
documentType?: string;
|
|
1258
1270
|
conversationId?: string;
|
|
1271
|
+
onUploadProgress?: (loaded: number, total: number) => void;
|
|
1272
|
+
onUploadComplete?: () => void;
|
|
1259
1273
|
}, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
|
|
1260
1274
|
success: boolean;
|
|
1261
1275
|
data: {
|
|
@@ -1325,10 +1339,17 @@ export declare interface StreamMessageParams {
|
|
|
1325
1339
|
body?: Record<string, unknown>;
|
|
1326
1340
|
}
|
|
1327
1341
|
|
|
1342
|
+
export declare const STT_GESTURES: {
|
|
1343
|
+
readonly HOLD: "hold";
|
|
1344
|
+
readonly TAP: "tap";
|
|
1345
|
+
};
|
|
1346
|
+
|
|
1328
1347
|
export declare interface SttConfig {
|
|
1329
1348
|
enabled: boolean;
|
|
1330
1349
|
}
|
|
1331
1350
|
|
|
1351
|
+
export declare type STTGesture = (typeof STT_GESTURES)[keyof typeof STT_GESTURES];
|
|
1352
|
+
|
|
1332
1353
|
export declare const THINKING_MESSAGES: {
|
|
1333
1354
|
readonly INITIAL: readonly ["Working on it", "Just a moment", "Reviewing your request", "Looking into that", "One moment, please", "Checking"];
|
|
1334
1355
|
readonly LATER: readonly ["Almost ready", "Gathering the details", "Finishing up", "Getting things in order", "Preparing your answer", "Wrapping this up"];
|
|
@@ -4230,13 +4251,14 @@ authorize_url: string;
|
|
|
4230
4251
|
reset: () => void;
|
|
4231
4252
|
}];
|
|
4232
4253
|
|
|
4233
|
-
export declare const useSTTRecording: ({ onTranscriptionComplete, onTranscriptionPopulate, ensureConversation, autoSendVoice, }?: UseSTTRecordingParams) => UseSTTRecordingReturn;
|
|
4254
|
+
export declare const useSTTRecording: ({ onTranscriptionComplete, onTranscriptionPopulate, ensureConversation, autoSendVoice, gesture, }?: UseSTTRecordingParams) => UseSTTRecordingReturn;
|
|
4234
4255
|
|
|
4235
4256
|
declare interface UseSTTRecordingParams {
|
|
4236
4257
|
onTranscriptionComplete?: (text: string) => Promise<void>;
|
|
4237
4258
|
onTranscriptionPopulate?: (text: string) => void;
|
|
4238
4259
|
ensureConversation?: () => Promise<string | null>;
|
|
4239
4260
|
autoSendVoice?: boolean;
|
|
4261
|
+
gesture?: STTGesture;
|
|
4240
4262
|
}
|
|
4241
4263
|
|
|
4242
4264
|
declare interface UseSTTRecordingReturn {
|
|
@@ -4245,6 +4267,7 @@ declare interface UseSTTRecordingReturn {
|
|
|
4245
4267
|
audioLevel: number;
|
|
4246
4268
|
startRecording: () => Promise<void>;
|
|
4247
4269
|
stopRecording: () => Promise<void>;
|
|
4270
|
+
cancelRecording: (() => void) | null;
|
|
4248
4271
|
}
|
|
4249
4272
|
|
|
4250
4273
|
export declare const useThinkingMessage: (params?: UseThinkingMessageParams) => UseThinkingMessageResult;
|
|
@@ -5086,11 +5109,15 @@ export declare const useUploadDocumentMutation: <R extends Record<string, any> =
|
|
|
5086
5109
|
filename?: string;
|
|
5087
5110
|
documentType?: string;
|
|
5088
5111
|
conversationId?: string;
|
|
5112
|
+
onUploadProgress?: (loaded: number, total: number) => void;
|
|
5113
|
+
onUploadComplete?: () => void;
|
|
5089
5114
|
}) => MutationActionCreatorResult<MutationDefinition< {
|
|
5090
5115
|
file: DocumentUploadFile;
|
|
5091
5116
|
filename?: string;
|
|
5092
5117
|
documentType?: string;
|
|
5093
5118
|
conversationId?: string;
|
|
5119
|
+
onUploadProgress?: (loaded: number, total: number) => void;
|
|
5120
|
+
onUploadComplete?: () => void;
|
|
5094
5121
|
}, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
|
|
5095
5122
|
success: boolean;
|
|
5096
5123
|
data: {
|
|
@@ -5106,6 +5133,8 @@ size_bytes: number;
|
|
|
5106
5133
|
filename?: string;
|
|
5107
5134
|
documentType?: string;
|
|
5108
5135
|
conversationId?: string;
|
|
5136
|
+
onUploadProgress?: (loaded: number, total: number) => void;
|
|
5137
|
+
onUploadComplete?: () => void;
|
|
5109
5138
|
};
|
|
5110
5139
|
reset: () => void;
|
|
5111
5140
|
}];
|