Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/server / / ScopeRequirement

Type Alias: ScopeRequirement

ts
type ScopeRequirement = 
  | string
  | ParsedScope
  | ((path, params) => 
  | string
  | ParsedScope);

Defined in: packages/server/src/middleware/scope.ts:22

Required-scope spec accepted by createScopeMiddleware. Either a single string ('agents:invoke'), a parsed scope, or a function that derives the required scope from the request (e.g. to insert the :id segment lazily).

Stable