@karmaniverous/jeeves-server
    Preparing search index...

    Variable scopesObjectSchemaConst

    scopesObjectSchema: ZodObject<
        {
            allow: ZodOptional<ZodArray<ZodString>>;
            deny: ZodOptional<ZodArray<ZodString>>;
        },
        $strip,
    > = ...

    Scopes configuration â€" controls which paths a user/key can access.

    Three forms:

    • string â€" single allow pattern (e.g. '/d/*')
    • string[] — array of allow patterns (shorthand for { allow: [...] })
    • \{ allow?: string[], deny?: string[] \} — explicit allow/deny rules

    Semantics:

    • Path must match at least one allow rule AND NOT match any deny rule
    • Omitting allow = implicit ['/*'] (allow everything)
    • Omitting deny = no exclusions
    • Omitting scopes entirely = unrestricted access