Skip to main content

CapabilityIssued

@iota/audit-trails API documentation


Class: CapabilityIssued

Event payload emitted when a capability is issued.

Properties​

capabilityId​

capabilityId: string

Newly created capability object ID.


role​

role: string

Role granted by the capability.


targetKey​

targetKey: string

Trail object ID protected by the capability.

Accessors​

issuedTo​

Get Signature​

get issuedTo(): string | undefined

Address bound to the capability, if one was assigned at issue time.

Returns​

string | undefined

Set Signature​

set issuedTo(value): void

Address bound to the capability, if one was assigned at issue time.

Parameters​
value​

string | null | undefined

Returns​

void


validFrom​

Get Signature​

get validFrom(): bigint | undefined

Earliest millisecond timestamp (since the Unix epoch, inclusive) at which the capability becomes valid. null when no lower bound was set.

Returns​

bigint | undefined

Set Signature​

set validFrom(value): void

Earliest millisecond timestamp (since the Unix epoch, inclusive) at which the capability becomes valid. null when no lower bound was set.

Parameters​
value​

bigint | null | undefined

Returns​

void


validUntil​

Get Signature​

get validUntil(): bigint | undefined

Latest millisecond timestamp (since the Unix epoch, inclusive) at which the capability is still valid. null when no expiry was set.

Returns​

bigint | undefined

Set Signature​

set validUntil(value): void

Latest millisecond timestamp (since the Unix epoch, inclusive) at which the capability is still valid. null when no expiry was set.

Parameters​
value​

bigint | null | undefined

Returns​

void

Methods​

toJSON()​

toJSON(): Object

  • Return copy of self without private attributes.

Returns​

Object


toString()​

toString(): string

Return stringified version of self.

Returns​

string