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,
Properties
private
api: ObservableUserApiMethods
acceptInvite(inlineObject5: InlineObject5, _options?: Configuration): Promise<string>
accept invite to workspace
createToken(newToken: NewToken, _options?: Configuration): Promise<string>
create token
createUser(): 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(): Promise<string>
delete user (require admin privilege)
getCurrentEmail(_options?: Configuration): Promise<string>
get current user email (if logged in)
globalUserUpdate(): Promise<string>
global update user (require super admin)
globalWhoami(_options?: Configuration): Promise<GlobalUserInfo>
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(): Promise<Array<GlobalUserInfo>>
list all users as super admin (require to be super amdin)
listWorkspaceInvites(_options?: Configuration): Promise<Array<WorkspaceInvite>>
list all workspace invites
login(login: Login, _options?: Configuration): Promise<string>
login with password
loginWithOauth(): Promise<string>
login with oauth authorization flow
logout(_options?: Configuration): Promise<string>
logout
setPassword(inlineObject: InlineObject, _options?: Configuration): Promise<string>
set password
updateUser(): Promise<string>
update user (require admin privilege)
whoami(workspace: string, _options?: Configuration): Promise<User>
whoami