mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-21 03:35:36 +00:00

* add prelogin api (#4762) * add prelogin api * move type.d.ts * perf: prelogin code * doc * fix: ts --------- Co-authored-by: dreamer6680 <1468683855@qq.com>
36 lines
972 B
TypeScript
36 lines
972 B
TypeScript
import type { MemberGroupSchemaType } from 'support/permission/memberGroup/type';
|
|
import { MemberGroupListItemType } from 'support/permission/memberGroup/type';
|
|
import type { OAuthEnum } from './constant';
|
|
import type { TrackRegisterParams } from './login/api';
|
|
import { TeamMemberStatusEnum } from './team/constant';
|
|
import type { OrgType } from './team/org/type';
|
|
import type { TeamMemberItemType } from './team/type';
|
|
|
|
export type PostLoginProps = {
|
|
username: string;
|
|
password: string;
|
|
code: string;
|
|
};
|
|
|
|
export type OauthLoginProps = {
|
|
type: `${OAuthEnum}`;
|
|
callbackUrl: string;
|
|
props: Record<string, string>;
|
|
} & TrackRegisterParams;
|
|
|
|
export type WxLoginProps = {
|
|
inviterId?: string;
|
|
code: string;
|
|
};
|
|
|
|
export type FastLoginProps = {
|
|
token: string;
|
|
code: string;
|
|
};
|
|
|
|
export type SearchResult = {
|
|
members: Omit<TeamMemberItemType, 'teamId' | 'permission'>[];
|
|
orgs: Omit<OrgType, 'permission' | 'members'>[];
|
|
groups: MemberGroupSchemaType[];
|
|
};
|