import { Users } from "https://deno.land/x/appwrite@0.3.0/mod.ts";
Methods
create<T extends unknown>(): Promise<T>
email: string,
password: string,
name?: string,
Create User
Create a new user.
deleteSession<T extends unknown>(userId: string, sessionId: string): Promise<T>
Delete User Session
Delete a user sessions by its unique ID.
deleteSessions<T extends unknown>(userId: string): Promise<T>
Delete User Sessions
Delete all user's sessions by using the user's unique ID.
getLogs<T extends unknown>(userId: string): Promise<T>
Get User Logs
Get a user activity logs list by its unique ID.
getPrefs<T extends unknown>(userId: string): Promise<T>
Get User Preferences
Get the user preferences by its unique ID.
getSessions<T extends unknown>(userId: string): Promise<T>
Get User Sessions
Get the user sessions list by its unique ID.
list<T extends unknown>(): Promise<T>
search?: string,
limit?: number,
offset?: number,
orderType?: string,
List Users
Get a list of all the project's users. You can use the query params to filter your results.
updatePrefs<T extends unknown>(userId: string, prefs: object): Promise<T>
Update User Preferences
Update the user preferences by its unique ID. You can pass only the specific settings you wish to update.
updateStatus<T extends unknown>(userId: string, status: number): Promise<T>
Update User Status
Update the user status by its unique ID.
updateVerification<T extends unknown>(userId: string, emailVerification: boolean): Promise<T>
Update Email Verification
Update the user email verification status by its unique ID.