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

x/windmill/windmill-api/services/UserService.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.245.0/windmill-api/services/UserService.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

createTokenImpersonate(unnamed 0: { requestBody: NewTokenImpersonate; }): CancelablePromise<string>

create token to impersonate a user (require superadmin)

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)

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

exists email

get current user email (if logged in)

getRunnable(): CancelablePromise<{ workspace: string; endpoint_async: string; endpoint_sync: string; endpoint_openai_sync: string; summary: string; description?: string; kind: string; }>

get all runnables in every workspace

getTutorialProgress(): CancelablePromise<{ progress?: number; }>

get tutorial progress

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

leave instance

listTokens(unnamed 0: { excludeEphemeral?: boolean; }): CancelablePromise<Array<TruncatedToken>>

list token

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

refresh the current token

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

set password

updateTutorialProgress(unnamed 0: { requestBody: { progress?: number; }; }): CancelablePromise<string>

update tutorial progress

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