Skip to main content

CapabilityDestroyed

@iota/audit-trails API documentation


Class: CapabilityDestroyed

Event payload emitted when a capability is destroyed.

Properties

capabilityId

capabilityId: string

Destroyed 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 had been assigned.

Returns

string | undefined

Set Signature

set issuedTo(value): void

Address bound to the capability, if one had been assigned.

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 became valid. null when no lower bound had been set.

Returns

bigint | undefined

Set Signature

set validFrom(value): void

Earliest millisecond timestamp (since the Unix epoch, inclusive) at which the capability became valid. null when no lower bound had been 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 had been valid. null when no expiry had been set.

Returns

bigint | undefined

Set Signature

set validUntil(value): void

Latest millisecond timestamp (since the Unix epoch, inclusive) at which the capability had been valid. null when no expiry had been 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