@1interface/chat-core 0.21.0 → 0.23.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 +13 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ import { CombinedState } from '@reduxjs/toolkit/query';
|
|
|
13
13
|
import { Context } from 'react';
|
|
14
14
|
import { coreModuleName } from '@reduxjs/toolkit/query';
|
|
15
15
|
import { Dispatch } from 'react';
|
|
16
|
+
import { DocumentMetadata } from '@1interface/shared-core';
|
|
16
17
|
import { EnhancedStore } from '@reduxjs/toolkit';
|
|
17
18
|
import { FetchArgs } from '@reduxjs/toolkit/query';
|
|
18
19
|
import { FetchBaseQueryError } from '@reduxjs/toolkit/query';
|
|
@@ -69,6 +70,7 @@ import { UnsubscribeListener } from '@reduxjs/toolkit';
|
|
|
69
70
|
import { UserResponse } from '@1interface/shared-core';
|
|
70
71
|
import { VerificationRequiredResult } from '@1interface/shared-core';
|
|
71
72
|
import { VerifyEmailRequest } from '@1interface/shared-core';
|
|
73
|
+
import { VoiceTransport } from '@1interface/shared-core';
|
|
72
74
|
|
|
73
75
|
export declare interface AdapterConfig {
|
|
74
76
|
getAuthToken: () => string | null;
|
|
@@ -135,6 +137,7 @@ file: DocumentUploadFile;
|
|
|
135
137
|
filename?: string;
|
|
136
138
|
documentType?: string;
|
|
137
139
|
conversationId?: string;
|
|
140
|
+
metadata?: DocumentMetadata;
|
|
138
141
|
onUploadProgress?: (loaded: number, total: number) => void;
|
|
139
142
|
onUploadComplete?: () => void;
|
|
140
143
|
}, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
|
|
@@ -208,6 +211,7 @@ export declare const apiReducers: {
|
|
|
208
211
|
filename?: string;
|
|
209
212
|
documentType?: string;
|
|
210
213
|
conversationId?: string;
|
|
214
|
+
metadata?: DocumentMetadata;
|
|
211
215
|
onUploadProgress?: (loaded: number, total: number) => void;
|
|
212
216
|
onUploadComplete?: () => void;
|
|
213
217
|
}, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
|
|
@@ -397,6 +401,7 @@ file: DocumentUploadFile;
|
|
|
397
401
|
filename?: string;
|
|
398
402
|
documentType?: string;
|
|
399
403
|
conversationId?: string;
|
|
404
|
+
metadata?: DocumentMetadata;
|
|
400
405
|
onUploadProgress?: (loaded: number, total: number) => void;
|
|
401
406
|
onUploadComplete?: () => void;
|
|
402
407
|
}, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
|
|
@@ -499,6 +504,7 @@ file: DocumentUploadFile;
|
|
|
499
504
|
filename?: string;
|
|
500
505
|
documentType?: string;
|
|
501
506
|
conversationId?: string;
|
|
507
|
+
metadata?: DocumentMetadata;
|
|
502
508
|
onUploadProgress?: (loaded: number, total: number) => void;
|
|
503
509
|
onUploadComplete?: () => void;
|
|
504
510
|
}, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
|
|
@@ -604,6 +610,7 @@ file: DocumentUploadFile;
|
|
|
604
610
|
filename?: string;
|
|
605
611
|
documentType?: string;
|
|
606
612
|
conversationId?: string;
|
|
613
|
+
metadata?: DocumentMetadata;
|
|
607
614
|
onUploadProgress?: (loaded: number, total: number) => void;
|
|
608
615
|
onUploadComplete?: () => void;
|
|
609
616
|
}, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
|
|
@@ -1290,6 +1297,7 @@ file: DocumentUploadFile;
|
|
|
1290
1297
|
filename?: string;
|
|
1291
1298
|
documentType?: string;
|
|
1292
1299
|
conversationId?: string;
|
|
1300
|
+
metadata?: DocumentMetadata;
|
|
1293
1301
|
onUploadProgress?: (loaded: number, total: number) => void;
|
|
1294
1302
|
onUploadComplete?: () => void;
|
|
1295
1303
|
}, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
|
|
@@ -1396,6 +1404,7 @@ file: DocumentUploadFile;
|
|
|
1396
1404
|
filename?: string;
|
|
1397
1405
|
documentType?: string;
|
|
1398
1406
|
conversationId?: string;
|
|
1407
|
+
metadata?: DocumentMetadata;
|
|
1399
1408
|
onUploadProgress?: (loaded: number, total: number) => void;
|
|
1400
1409
|
onUploadComplete?: () => void;
|
|
1401
1410
|
}, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
|
|
@@ -5263,6 +5272,7 @@ export declare const useUploadDocumentMutation: <R extends Record<string, any> =
|
|
|
5263
5272
|
filename?: string;
|
|
5264
5273
|
documentType?: string;
|
|
5265
5274
|
conversationId?: string;
|
|
5275
|
+
metadata?: DocumentMetadata;
|
|
5266
5276
|
onUploadProgress?: (loaded: number, total: number) => void;
|
|
5267
5277
|
onUploadComplete?: () => void;
|
|
5268
5278
|
}) => MutationActionCreatorResult<MutationDefinition< {
|
|
@@ -5270,6 +5280,7 @@ file: DocumentUploadFile;
|
|
|
5270
5280
|
filename?: string;
|
|
5271
5281
|
documentType?: string;
|
|
5272
5282
|
conversationId?: string;
|
|
5283
|
+
metadata?: DocumentMetadata;
|
|
5273
5284
|
onUploadProgress?: (loaded: number, total: number) => void;
|
|
5274
5285
|
onUploadComplete?: () => void;
|
|
5275
5286
|
}, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
|
|
@@ -5287,6 +5298,7 @@ size_bytes: number;
|
|
|
5287
5298
|
filename?: string;
|
|
5288
5299
|
documentType?: string;
|
|
5289
5300
|
conversationId?: string;
|
|
5301
|
+
metadata?: DocumentMetadata;
|
|
5290
5302
|
onUploadProgress?: (loaded: number, total: number) => void;
|
|
5291
5303
|
onUploadComplete?: () => void;
|
|
5292
5304
|
};
|
|
@@ -5320,6 +5332,7 @@ export declare interface VoiceAgentConfig {
|
|
|
5320
5332
|
enabled: boolean;
|
|
5321
5333
|
show_customization_modal: boolean;
|
|
5322
5334
|
assistant_starts_conversation: boolean;
|
|
5335
|
+
transport?: VoiceTransport;
|
|
5323
5336
|
}
|
|
5324
5337
|
|
|
5325
5338
|
export { }
|