mirror of
https://github.com/labring/FastGPT.git
synced 2025-10-15 23:55:36 +00:00
v4.5.1 (#417)
This commit is contained in:
14
packages/global/support/openapi/type.d.ts
vendored
Normal file
14
packages/global/support/openapi/type.d.ts
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
export type OpenApiSchema = {
|
||||
_id: string;
|
||||
userId: string;
|
||||
createTime: Date;
|
||||
lastUsedTime?: Date;
|
||||
apiKey: string;
|
||||
appId?: string;
|
||||
name: string;
|
||||
usage: number;
|
||||
limit?: {
|
||||
expiredTime?: Date;
|
||||
credit?: number;
|
||||
};
|
||||
};
|
5
packages/global/support/outLink/constant.ts
Normal file
5
packages/global/support/outLink/constant.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
export enum OutLinkTypeEnum {
|
||||
share = 'share',
|
||||
iframe = 'iframe',
|
||||
apikey = 'apikey'
|
||||
}
|
26
packages/global/support/outLink/type.d.ts
vendored
Normal file
26
packages/global/support/outLink/type.d.ts
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
import { OutLinkTypeEnum } from './constant';
|
||||
|
||||
export type OutLinkSchema = {
|
||||
_id: string;
|
||||
shareId: string;
|
||||
userId: string;
|
||||
appId: string;
|
||||
name: string;
|
||||
total: number;
|
||||
lastTime: Date;
|
||||
type: `${OutLinkTypeEnum}`;
|
||||
responseDetail: boolean;
|
||||
limit?: {
|
||||
expiredTime?: Date;
|
||||
QPM: number;
|
||||
credit: number;
|
||||
hookUrl?: string;
|
||||
};
|
||||
};
|
||||
|
||||
export type OutLinkEditType = {
|
||||
_id?: string;
|
||||
name: string;
|
||||
responseDetail: OutLinkSchema['responseDetail'];
|
||||
limit: OutLinkSchema['limit'];
|
||||
};
|
20
packages/global/support/user/type.d.ts
vendored
Normal file
20
packages/global/support/user/type.d.ts
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
export type UserModelSchema = {
|
||||
_id: string;
|
||||
username: string;
|
||||
password: string;
|
||||
avatar: string;
|
||||
balance: number;
|
||||
promotionRate: number;
|
||||
inviterId?: string;
|
||||
openaiKey: string;
|
||||
createTime: number;
|
||||
timezone: string;
|
||||
openaiAccount?: {
|
||||
key: string;
|
||||
baseUrl: string;
|
||||
};
|
||||
limit: {
|
||||
exportKbTime?: Date;
|
||||
datasetMaxCount?: number;
|
||||
};
|
||||
};
|
Reference in New Issue
Block a user