mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 05:12:39 +00:00

* update queue * feat: sync api collection will refresh title * sync collection * remove lock * perf: invite link ux
39 lines
664 B
TypeScript
39 lines
664 B
TypeScript
import { RequireOnlyOne } from '../../common/type/utils';
|
|
|
|
export type APIFileItem = {
|
|
id: string;
|
|
parentId: string | null;
|
|
name: string;
|
|
type: 'file' | 'folder';
|
|
updateTime: Date;
|
|
createTime: Date;
|
|
hasChild?: boolean;
|
|
};
|
|
|
|
export type APIFileServer = {
|
|
baseUrl: string;
|
|
authorization: string;
|
|
};
|
|
|
|
export type APIFileListResponse = APIFileItem[];
|
|
|
|
export type ApiFileReadContentResponse = {
|
|
title?: string;
|
|
rawText: string;
|
|
};
|
|
|
|
export type APIFileReadResponse = {
|
|
url: string;
|
|
};
|
|
|
|
export type FeishuServer = {
|
|
appId: string;
|
|
appSecret: string;
|
|
folderToken: string;
|
|
};
|
|
|
|
export type YuqueServer = {
|
|
userId: string;
|
|
token: string;
|
|
};
|