@1interface/chat-core 0.21.0 → 0.22.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 +11 -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';
|
|
@@ -135,6 +136,7 @@ file: DocumentUploadFile;
|
|
|
135
136
|
filename?: string;
|
|
136
137
|
documentType?: string;
|
|
137
138
|
conversationId?: string;
|
|
139
|
+
metadata?: DocumentMetadata;
|
|
138
140
|
onUploadProgress?: (loaded: number, total: number) => void;
|
|
139
141
|
onUploadComplete?: () => void;
|
|
140
142
|
}, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
|
|
@@ -208,6 +210,7 @@ export declare const apiReducers: {
|
|
|
208
210
|
filename?: string;
|
|
209
211
|
documentType?: string;
|
|
210
212
|
conversationId?: string;
|
|
213
|
+
metadata?: DocumentMetadata;
|
|
211
214
|
onUploadProgress?: (loaded: number, total: number) => void;
|
|
212
215
|
onUploadComplete?: () => void;
|
|
213
216
|
}, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
|
|
@@ -397,6 +400,7 @@ file: DocumentUploadFile;
|
|
|
397
400
|
filename?: string;
|
|
398
401
|
documentType?: string;
|
|
399
402
|
conversationId?: string;
|
|
403
|
+
metadata?: DocumentMetadata;
|
|
400
404
|
onUploadProgress?: (loaded: number, total: number) => void;
|
|
401
405
|
onUploadComplete?: () => void;
|
|
402
406
|
}, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
|
|
@@ -499,6 +503,7 @@ file: DocumentUploadFile;
|
|
|
499
503
|
filename?: string;
|
|
500
504
|
documentType?: string;
|
|
501
505
|
conversationId?: string;
|
|
506
|
+
metadata?: DocumentMetadata;
|
|
502
507
|
onUploadProgress?: (loaded: number, total: number) => void;
|
|
503
508
|
onUploadComplete?: () => void;
|
|
504
509
|
}, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
|
|
@@ -604,6 +609,7 @@ file: DocumentUploadFile;
|
|
|
604
609
|
filename?: string;
|
|
605
610
|
documentType?: string;
|
|
606
611
|
conversationId?: string;
|
|
612
|
+
metadata?: DocumentMetadata;
|
|
607
613
|
onUploadProgress?: (loaded: number, total: number) => void;
|
|
608
614
|
onUploadComplete?: () => void;
|
|
609
615
|
}, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
|
|
@@ -1290,6 +1296,7 @@ file: DocumentUploadFile;
|
|
|
1290
1296
|
filename?: string;
|
|
1291
1297
|
documentType?: string;
|
|
1292
1298
|
conversationId?: string;
|
|
1299
|
+
metadata?: DocumentMetadata;
|
|
1293
1300
|
onUploadProgress?: (loaded: number, total: number) => void;
|
|
1294
1301
|
onUploadComplete?: () => void;
|
|
1295
1302
|
}, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
|
|
@@ -1396,6 +1403,7 @@ file: DocumentUploadFile;
|
|
|
1396
1403
|
filename?: string;
|
|
1397
1404
|
documentType?: string;
|
|
1398
1405
|
conversationId?: string;
|
|
1406
|
+
metadata?: DocumentMetadata;
|
|
1399
1407
|
onUploadProgress?: (loaded: number, total: number) => void;
|
|
1400
1408
|
onUploadComplete?: () => void;
|
|
1401
1409
|
}, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
|
|
@@ -5263,6 +5271,7 @@ export declare const useUploadDocumentMutation: <R extends Record<string, any> =
|
|
|
5263
5271
|
filename?: string;
|
|
5264
5272
|
documentType?: string;
|
|
5265
5273
|
conversationId?: string;
|
|
5274
|
+
metadata?: DocumentMetadata;
|
|
5266
5275
|
onUploadProgress?: (loaded: number, total: number) => void;
|
|
5267
5276
|
onUploadComplete?: () => void;
|
|
5268
5277
|
}) => MutationActionCreatorResult<MutationDefinition< {
|
|
@@ -5270,6 +5279,7 @@ file: DocumentUploadFile;
|
|
|
5270
5279
|
filename?: string;
|
|
5271
5280
|
documentType?: string;
|
|
5272
5281
|
conversationId?: string;
|
|
5282
|
+
metadata?: DocumentMetadata;
|
|
5273
5283
|
onUploadProgress?: (loaded: number, total: number) => void;
|
|
5274
5284
|
onUploadComplete?: () => void;
|
|
5275
5285
|
}, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
|
|
@@ -5287,6 +5297,7 @@ size_bytes: number;
|
|
|
5287
5297
|
filename?: string;
|
|
5288
5298
|
documentType?: string;
|
|
5289
5299
|
conversationId?: string;
|
|
5300
|
+
metadata?: DocumentMetadata;
|
|
5290
5301
|
onUploadProgress?: (loaded: number, total: number) => void;
|
|
5291
5302
|
onUploadComplete?: () => void;
|
|
5292
5303
|
};
|