This repository has been archived on 2024-09-23. You can view files and clone it, but cannot push or open issues or pull requests.
rocketchat-scim/rest.ts
2022-02-11 14:13:06 +01:00

44 lines
966 B
TypeScript

interface IUserCreate {
email: string;
name: string;
password: string;
username: string;
active?: boolean;
roles?: Array<string>;
joinDefaultChannels?: boolean;
requirePasswordChange?: boolean;
sendWelcomeEmail?: boolean;
verified?: boolean;
customFields?: any;
}
interface IUserUpdate {
userId: string;
data: {
email?: string;
name?: string;
password?: string;
username?: string;
active?: boolean;
roles?: Array<string>;
joinDefaultChannels?: boolean;
requirePasswordChange?: boolean;
sendWelcomeEmail?: boolean;
verified?: boolean;
customFields?: any;
};
}
interface IUserDelete {
userId: string;
confirmRelinquish?: boolean;
}
interface IUser {
_id: string;
emails: Array<{ address: string; verified: boolean }>;
name: string;
username: string;
active?: boolean;
createdAt: string;
}