@pouchy_ai/companion-sdk - v0.63.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). Use this for an EXACT-grant check ("was this scope explicitly granted?"). To gate a feature on whether an API CALL will succeed, prefer grantsScope, which also honours scope subsumption.

      Parameters

      • granted: readonly string[]
      • required:
            | "voice"
            | "chat"
            | "call"
            | "files"
            | "events.subscribe"
            | "worldstate.write"
            | "ui.render"
            | "data.activity"
            | "chat.instructions"
            | "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