Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/server / / requiredScopeFor

Function: requiredScopeFor()

ts
function requiredScopeFor(subject): ParsedScope;

Defined in: packages/server/src/ws/subjects.ts:109

Required scope literal for every subject kind, expressed as a ParsedScope. The matcher scopeMatches(granted, required) uses the standard wildcard rules from @graphorin/security/auth (e.g. agents:* matches agents:invoke:foo).

Parameters

ParameterType
subjectParsedSubject

Returns

ParsedScope

Stable