Vana SDK - v4.1.0
    Preparing search index...

    Function hasAction

    • Does this grant authorize action over scope?

      The scope part is matched with the SDK's scope wildcard matcher (scopeMatchesPattern: *, {prefix}.*, or exact), the action exactly. Entries that do not fit the grammar are skipped - they authorize nothing, which is exactly how the Personal Server treats them - so a grant that carries an operation this SDK does not know still answers correctly for the operations it does.

      Parameters

      • scopes: readonly string[]

        A grant's scopes array, verbatim.

      • scope: string

        The concrete scope being requested. Never prefixed: a value containing : is not a scope id and yields false.

      • action: "read" | "write"

        The operation being requested.

      Returns boolean

      true if some entry grants action over a pattern covering scope.