Permissions
Handles all Security Token Permissions related functionality Permissions a Secondary Key has over the Identity. A null value means the key has all permissions of that type (i.e. if tokens
is null, the key has permissions over all of the Identity's Security Tokens)
Hierarchy
Namespace‹SecurityToken›
↳ Permissions
Index
Properties
Methods
Properties
Protected
context
Protected
context• context: Context
Inherited from void
Defined in src/api/entities/Namespace.ts:11
Protected
parent
Protected
parent• parent: SecurityToken
Inherited from void
Defined in src/api/entities/Namespace.ts:9
portfolios
• portfolios: SectionPermissions‹DefaultPortfolio | NumberedPortfolio› | null
Defined in src/types/index.ts:727
tokens
• tokens: SectionPermissions‹SecurityToken› | null
Defined in src/types/index.ts:713
Security Tokens over which this key has permissions
transactionGroups
• transactionGroups: TxGroup[]
Defined in src/types/index.ts:725
list of Transaction Groups this key can execute. Having permissions over a TxGroup means having permissions over every TxTag in said group. Partial group permissions are not covered by this value. For a full picture of transaction permissions, see the transactions
property
NOTE: If transactions is null, ignore this value
transactions
• transactions: TransactionPermissions | null
Defined in src/types/index.ts:717
Transactions this key can execute
Methods
createGroup
▸ createGroup(args
: CreateGroupParams, opts?
: ProcedureOpts): Promise‹TransactionQueue‹CustomPermissionGroup››
Defined in src/api/entities/SecurityToken/Permissions.ts:60
Create a Permission group for this Security Token. Identities can then be assigned to said group as Agents. Agents assigned to a group have said group's permissions over this Security Token
note
this method is of type ProcedureMethod, which means you can call createGroup.checkAuthorization
on it to see whether the Current Account has the required permissions to run it
Parameters:
Returns: Promise‹TransactionQueue‹CustomPermissionGroup››
getAgents
▸ getAgents(): Promise‹AgentWithGroup[]›
Defined in src/api/entities/SecurityToken/Permissions.ts:123
Retrieve a list of external agents of the Security Token
Returns: Promise‹AgentWithGroup[]›
getGroups
▸ getGroups(): Promise‹object›
Defined in src/api/entities/SecurityToken/Permissions.ts:87
Retrieve all group permissions of the Security Token
Returns: Promise‹object›
inviteAgent
▸ inviteAgent(args
: InviteExternalAgentParams, opts?
: ProcedureOpts): Promise‹TransactionQueue‹void››
Defined in src/api/entities/SecurityToken/Permissions.ts:70
Invite an Identity to be an Agent with permissions over this Security Token
note
this method is of type ProcedureMethod, which means you can call inviteAgent.checkAuthorization
on it to see whether the Current Account has the required permissions to run it
Parameters:
Returns: Promise‹TransactionQueue‹void››
removeAgent
▸ removeAgent(args
: RemoveExternalAgentParams, opts?
: ProcedureOpts): Promise‹TransactionQueue‹void››
Defined in src/api/entities/SecurityToken/Permissions.ts:80
Revoke an Agent's permissions for this Security Token
note
this method is of type ProcedureMethod, which means you can call removeAgent.checkAuthorization
on it to see whether the Current Account has the required permissions to run it
Parameters:
Returns: Promise‹TransactionQueue‹void››
Last updated