access_grants
Access grant models for resource permissions.
Access grants provide fine-grained permission control over resources like models, tools, notes, channels, and knowledge collections.
Classes
AccessGrantModel
Bases: BaseModel
Full access grant model with all fields.
Used when storing and retrieving access grants from the database.
Returned by:
- Code Reference models
Attributes
resource_type
Type of resource: 'knowledge', 'model', 'prompt', 'tool', 'note', 'channel', or 'file'.
AccessGrantResponse
Bases: BaseModel
Slim grant model for API responses.
Resource context (resource_type, resource_id) is implicit from the parent response.