import { Users } from "https://deno.land/x/appwrite@0.1.1/mod.ts";
Methods
create(): Promise<string>
email: string,
password: string,
name?: string,
Create User
Create a new user.
deleteSession(userId: string, sessionId: string): Promise<string>
Delete User Session
Delete a user sessions by its unique ID.
deleteSessions(userId: string): Promise<string>
Delete User Sessions
Delete all user's sessions by using the user's unique ID.
getLogs(userId: string): Promise<string>
Get User Logs
Get a user activity logs list by its unique ID.
getPrefs(userId: string): Promise<string>
Get User Preferences
Get the user preferences by its unique ID.
getSessions(userId: string): Promise<string>
Get User Sessions
Get the user sessions list by its unique ID.
list(): Promise<string>
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(userId: string, prefs: DocumentData): Promise<string>
Update User Preferences
Update the user preferences by its unique ID. You can pass only the specific settings you wish to update.
updateStatus(userId: string, status: string): Promise<string>
Update User Status
Update the user status by its unique ID.