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

x/windmill/windmill-api/types/PromiseAPI.ts>PromiseUserApi

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 PromiseUserApi
import { PromiseUserApi } from "https://deno.land/x/windmill@v1.38.3/windmill-api/types/PromiseAPI.ts";

Constructors

new
PromiseUserApi(
configuration: Configuration,
requestFactory?: UserApiRequestFactory,
responseProcessor?: UserApiResponseProcessor,
)

Methods

acceptInvite(inlineObject5: InlineObject5, _options?: Configuration): Promise<string>

accept invite to workspace

createToken(newToken: NewToken, _options?: Configuration): Promise<string>

create token

createUser(
workspace: string,
newUser: NewUser,
_options?: Configuration,
): Promise<string>

create user (require admin privilege)

createUserGlobally(inlineObject1: InlineObject1, _options?: Configuration): Promise<string>

create user

declineInvite(inlineObject6: InlineObject6, _options?: Configuration): Promise<string>

decline invite to workspace

deleteToken(tokenPrefix: string, _options?: Configuration): Promise<string>

delete token

deleteUser(
workspace: string,
username: string,
_options?: Configuration,
): Promise<string>

delete user (require admin privilege)

getCurrentEmail(_options?: Configuration): Promise<string>

get current user email (if logged in)

globalUserUpdate(
email: string,
inlineObject2: InlineObject2,
_options?: Configuration,
): Promise<string>

global update user (require super admin)

get current global whoami (if logged in)

leaveWorkspace(workspace: string, _options?: Configuration): Promise<string>

leave workspace

listTokens(_options?: Configuration): Promise<Array<TruncatedToken>>

list token

listUsernames(workspace: string, _options?: Configuration): Promise<Array<string>>

list usernames

listUsers(workspace: string, _options?: Configuration): Promise<Array<User>>

list users

listUsersAsSuperAdmin(
page?: number,
perPage?: number,
_options?: Configuration,
): Promise<Array<GlobalUserInfo>>

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

list all workspace invites

login(login: Login, _options?: Configuration): Promise<string>

login with password

loginWithOauth(
clientName: string,
inlineObject10: InlineObject10,
_options?: Configuration,
): Promise<string>

login with oauth authorization flow

logout(_options?: Configuration): Promise<string>

logout

setPassword(inlineObject: InlineObject, _options?: Configuration): Promise<string>

set password

updateUser(
workspace: string,
username: string,
editWorkspaceUser: EditWorkspaceUser,
_options?: Configuration,
): Promise<string>

update user (require admin privilege)

whoami(workspace: string, _options?: Configuration): Promise<User>

whoami

whois(
workspace: string,
username: string,
_options?: Configuration,
): Promise<User>

whois