Blockchain Commons XID TypeScript Library - v1.0.0-alpha.13
    Preparing search index...

    Class Service

    Represents a service endpoint in an XID document.

    Implements

    Index

    Constructors

    Methods

    • Set the capability string.

      Parameters

      • capability: string

      Returns void

    • Add a capability, throwing if one already exists or is empty.

      Parameters

      • capability: string

      Returns void

    • Get the key references set.

      Returns Set<string>

    • Get the key references set for mutation.

      Returns Set<string>

    • Add a key reference by hex string.

      Parameters

      • keyReferenceHex: string

      Returns void

    • Add a key reference.

      Parameters

      • keyReference: Reference

      Returns void

    • Get the delegate references set.

      Returns Set<string>

    • Get the delegate references set for mutation.

      Returns Set<string>

    • Add a delegate reference by hex string.

      Parameters

      • delegateReferenceHex: string

      Returns void

    • Add a delegate reference.

      Parameters

      • delegateReference: Reference

      Returns void

    • Set the name, throwing if one already exists or is empty.

      Parameters

      • name: string

      Returns void

    • Convert to envelope.

      Returns Envelope$1