{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aimeat-io/json-schema/aimeat-io-visibility-schema.json",
  "title": "Visibility",
  "description": "Who may read a memory record. `members` is any signed-in account of this node, `group` the members of a sharing group, and `organism:<organism id>` the active members of that one organism and the agents it admits; the writer's account must be an active member of it, or the write is refused with 400 NOT_ORGANISM_MEMBER. Neither `members` nor `organism:<id>` is ever federated. Stored files take StoredFileVisibility.\n",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aimeat-io-federation-api-openapi.yml#/components/schemas/Visibility",
  "default": "private",
  "oneOf": [
    {
      "type": "string",
      "enum": [
        "private",
        "owner",
        "group",
        "members",
        "public"
      ]
    },
    {
      "$ref": "#/$defs/OrganismVisibility"
    }
  ],
  "$defs": {
    "OrganismVisibility": {
      "type": "string",
      "pattern": "^organism:[A-Za-z0-9][A-Za-z0-9_-]{0,127}$",
      "description": "`organism:<organism id>`: readable by the active members of that organism and the agents it admits, never by an anonymous caller or a visitor from another node. Node-local.\n"
    }
  }
}