@pouchy_ai/companion-sdk - v0.1.0
    Preparing search index...

    Function hasScope

    • Does a granted scope set (e.g. hello.ack.grantedScopes) satisfy a required scope? Exact-match for v1 (no hierarchical wildcards).

      Parameters

      • granted: readonly string[]
      • required:
            | "voice"
            | "chat"
            | "call"
            | "files"
            | "events.subscribe"
            | "worldstate.write"
            | "ui.render"
            | "memory.read:app"
            | "memory.write:app"
            | "memory.read:core"
            | "memory.write:core"
            | "skills.execute"
            | "wallet.read"
            | "wallet.spend"
            | "social.message"
            | "represent"
            | "expose:knowledge"
            | "expose:facts"
            | "represent:pair"
            | "represent:remember"

      Returns boolean