Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/windmill/windmill-api/index.ts>UserService

Windmill deno client (separated from the main repo because most of the code is auto-generated from the openapi and not worth committing)
Go to Latest
class UserService
import { UserService } from "https://deno.land/x/windmill@v1.67.1/windmill-api/index.ts";

Static Methods

acceptInvite(unnamed 0: { requestBody: { workspace_id: string; username: string; }; }): CancelablePromise<string>

accept invite to workspace

createToken(unnamed 0: { requestBody: NewToken; }): CancelablePromise<string>

create token

createUser(unnamed 0: { workspace: string; requestBody: NewUser; }): CancelablePromise<string>

create user (require admin privilege)

createUserGlobally(unnamed 0: { requestBody: { email: string; password: string; super_admin: boolean; name?: string; company?: string; }; }): CancelablePromise<string>

create user

declineInvite(unnamed 0: { requestBody: { workspace_id: string; }; }): CancelablePromise<string>

decline invite to workspace

deleteToken(unnamed 0: { tokenPrefix: string; }): CancelablePromise<string>

delete token

deleteUser(unnamed 0: { workspace: string; username: string; }): CancelablePromise<string>

delete user (require admin privilege)

get current user email (if logged in)

get current usage outside of premium workspaces

globalUserDelete(unnamed 0: { email: string; }): CancelablePromise<string>

global delete user (require super admin)

globalUserUpdate(unnamed 0: { email: string; requestBody: { is_super_admin?: boolean; }; }): CancelablePromise<string>

global update user (require super admin)

get current global whoami (if logged in)

isOwnerOfPath(unnamed 0: { workspace: string; path: string; }): CancelablePromise<boolean>

is owner of path

leaveWorkspace(unnamed 0: { workspace: string; }): CancelablePromise<string>

leave workspace

listUsernames(unnamed 0: { workspace: string; }): CancelablePromise<Array<string>>

list usernames

listUsers(unnamed 0: { workspace: string; }): CancelablePromise<Array<User>>

list users

listUsersAsSuperAdmin(unnamed 0: { page?: number; perPage?: number; }): CancelablePromise<Array<GlobalUserInfo>>

list all users as super admin (require to be super amdin)

list all workspace invites

login(unnamed 0: { requestBody: Login; }): CancelablePromise<string>

login with password

loginWithOauth(unnamed 0: { clientName: string; requestBody: { code?: string; state?: string; }; }): CancelablePromise<string>

login with oauth authorization flow

logout

setPassword(unnamed 0: { requestBody: { password: string; }; }): CancelablePromise<string>

set password

updateUser(unnamed 0: { workspace: string; username: string; requestBody: EditWorkspaceUser; }): CancelablePromise<string>

update user (require admin privilege)

whoami(unnamed 0: { workspace: string; }): CancelablePromise<User>

whoami

whois(unnamed 0: { workspace: string; username: string; }): CancelablePromise<User>

whois