UNPKG

manifest

Version:

The backend for AI code editors

43 lines (42 loc) 1.24 kB
{ "$schema": "http://json-schema.org/draft-07/schema#", "$id": "https://schema.manifest.build/definitions/policies/policy-schema.json", "title": "Policy Schema", "description": "The policies of the entity. Doc: https://manifest.build/docs/policies", "type": "object", "properties": { "access": { "type": "string", "enum": [ "public", "restricted", "forbidden", "admin", "🌐", "🚫", "🔒", "️👨🏻‍💻" ] }, "allow": { "oneOf": [ { "type": "string" }, { "type": "array", "items": { "type": "string" } } ] }, "condition": { "type": "string", "enum": ["self"], "description": "When set to 'self', restricts access to records owned by the authenticated user (requires belongsTo relationship)" } }, "required": ["access"], "additionalProperties": false }