mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 21:13:50 +00:00

Co-authored-by: Mufei <327958099@qq.com> Co-authored-by: heheer <71265218+newfish-cmyk@users.noreply.github.com>
24 lines
541 B
TypeScript
24 lines
541 B
TypeScript
import { MongoImageTypeEnum } from './image/constants';
|
|
import { OutLinkChatAuthProps } from '../../support/permission/chat.d';
|
|
|
|
export type preUploadImgProps = OutLinkChatAuthProps & {
|
|
type: `${MongoImageTypeEnum}`;
|
|
|
|
expiredTime?: Date;
|
|
metadata?: Record<string, any>;
|
|
};
|
|
export type UploadImgProps = preUploadImgProps & {
|
|
base64Img: string;
|
|
};
|
|
|
|
export type UrlFetchParams = {
|
|
urlList: string[];
|
|
selector?: string;
|
|
};
|
|
export type UrlFetchResponse = {
|
|
url: string;
|
|
title: string;
|
|
content: string;
|
|
selector?: string;
|
|
}[];
|