@ptkl/sdk - v0.9.9
Preparing search index...
User
Class User
Hierarchy
default
User
Index
Constructors
constructor
Properties
client
env
host
token
Methods
auth
delete
get
Claims
get
User
invite
permissions
set
Client
Constructors
constructor
new
User
(
options
?:
{
env
?:
string
;
host
?:
string
;
token
?:
string
}
)
:
User
Parameters
Optional
options
:
{
env
?:
string
;
host
?:
string
;
token
?:
string
}
Returns
User
Properties
client
client
:
AxiosInstance
Protected
env
env
:
null
|
string
= null
Protected
host
host
:
null
|
string
= null
Protected
token
token
:
null
|
string
= null
Methods
auth
auth
(
username
:
string
,
password
:
string
,
project
:
string
,
)
:
Promise
<
AxiosResponse
<
any
,
any
>
>
Parameters
username
:
string
password
:
string
project
:
string
Returns
Promise
<
AxiosResponse
<
any
,
any
>
>
delete
delete
(
uuid
:
string
)
:
Promise
<
AxiosResponse
<
any
,
any
>
>
Parameters
uuid
:
string
Returns
Promise
<
AxiosResponse
<
any
,
any
>
>
get
Claims
getClaims
()
:
Promise
<
AxiosResponse
<
UserClaims
,
any
>
>
Returns
Promise
<
AxiosResponse
<
UserClaims
,
any
>
>
get
User
getUser
()
:
Promise
<
AxiosResponse
<
UserModel
,
any
>
>
Returns
Promise
<
AxiosResponse
<
UserModel
,
any
>
>
invite
invite
(
email
:
string
,
roles
:
string
[]
)
:
Promise
<
AxiosResponse
<
any
,
any
>
>
Parameters
email
:
string
roles
:
string
[]
Returns
Promise
<
AxiosResponse
<
any
,
any
>
>
permissions
permissions
()
:
Promise
<
AxiosResponse
<
any
,
any
>
>
Returns
Promise
<
AxiosResponse
<
any
,
any
>
>
set
Client
setClient
(
client
:
AxiosInstance
)
:
User
Parameters
client
:
AxiosInstance
Returns
User
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
client
env
host
token
Methods
auth
delete
get
Claims
get
User
invite
permissions
set
Client
@ptkl/sdk - v0.9.9
Loading...