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

x/windmill/windmill-api/types/ObjectParamAPI.ts>ObjectUserApi

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

Constructors

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

Methods

acceptInvite(param: UserApiAcceptInviteRequest, options?: Configuration): Promise<string>

accept invite to workspace

createToken(param: UserApiCreateTokenRequest, options?: Configuration): Promise<string>

create token

createUser(param: UserApiCreateUserRequest, options?: Configuration): Promise<string>

create user (require admin privilege)

create user

declineInvite(param: UserApiDeclineInviteRequest, options?: Configuration): Promise<string>

decline invite to workspace

deleteToken(param: UserApiDeleteTokenRequest, options?: Configuration): Promise<string>

delete token

deleteUser(param: UserApiDeleteUserRequest, options?: Configuration): Promise<string>

delete user (require admin privilege)

getCurrentEmail(param?: UserApiGetCurrentEmailRequest, options?: Configuration): Promise<string>

get current user email (if logged in)

global update user (require super admin)

get current global whoami (if logged in)

leaveWorkspace(param: UserApiLeaveWorkspaceRequest, options?: Configuration): Promise<string>

leave workspace

list token

listUsernames(param: UserApiListUsernamesRequest, options?: Configuration): Promise<Array<string>>

list usernames

listUsers(param: UserApiListUsersRequest, options?: Configuration): Promise<Array<User>>

list users

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

list all workspace invites

login(param: UserApiLoginRequest, options?: Configuration): Promise<string>

login with password

loginWithOauth(param: UserApiLoginWithOauthRequest, options?: Configuration): Promise<string>

login with oauth authorization flow

logout(param?: UserApiLogoutRequest, options?: Configuration): Promise<string>

logout

setPassword(param: UserApiSetPasswordRequest, options?: Configuration): Promise<string>

set password

updateUser(param: UserApiUpdateUserRequest, options?: Configuration): Promise<string>

update user (require admin privilege)

whoami(param: UserApiWhoamiRequest, options?: Configuration): Promise<User>

whoami

whois(param: UserApiWhoisRequest, options?: Configuration): Promise<User>

whois