@ptkl/sdk - v0.9.9
Preparing search index...
Roles
Class Roles
Hierarchy
default
Roles
Index
Constructors
constructor
Properties
client
env
host
token
Methods
available
Permissions
create
delete
edit
list
permissions
set
Client
Constructors
constructor
new
Roles
(
options
?:
{
env
?:
string
;
host
?:
string
;
token
?:
string
}
)
:
Roles
Parameters
Optional
options
:
{
env
?:
string
;
host
?:
string
;
token
?:
string
}
Returns
Roles
Properties
client
client
:
AxiosInstance
Protected
env
env
:
null
|
string
= null
Protected
host
host
:
null
|
string
= null
Protected
token
token
:
null
|
string
= null
Methods
available
Permissions
availablePermissions
()
:
Promise
<
any
>
Returns
Promise
<
any
>
create
create
(
role
:
any
)
:
Promise
<
any
>
Parameters
role
:
any
Returns
Promise
<
any
>
delete
delete
(
uuid
:
string
)
:
Promise
<
any
>
Parameters
uuid
:
string
Returns
Promise
<
any
>
edit
edit
(
permissions
:
string
[]
,
workspaces
:
string
[]
,
level
:
number
,
uuid
:
string
,
)
:
Promise
<
any
>
Parameters
permissions
:
string
[]
workspaces
:
string
[]
level
:
number
uuid
:
string
Returns
Promise
<
any
>
list
list
()
:
Promise
<
any
>
Returns
Promise
<
any
>
permissions
permissions
()
:
Promise
<
any
>
Returns
Promise
<
any
>
set
Client
setClient
(
client
:
AxiosInstance
)
:
Roles
Parameters
client
:
AxiosInstance
Returns
Roles
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
client
env
host
token
Methods
available
Permissions
create
delete
edit
list
permissions
set
Client
@ptkl/sdk - v0.9.9
Loading...