{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "AnnotationSource.schema.json", "title": "AnnotationSource", "description": "A source that wrote into the drive (`AnnotationSource/get`, the drive owner's alone), with what it holds there now.", "type": "object", "properties": { "id": { "$ref": "Common.schema.json#/$defs/SourceId" }, "actor": { "$ref": "Common.schema.json#/$defs/Actor" }, "app": { "anyOf": [ { "$ref": "Common.schema.json#/$defs/SourceApp" }, { "type": "null" } ] }, "firstWrite": { "description": "Its first write.", "$ref": "Common.schema.json#/$defs/UTCDate" }, "lastWrite": { "description": "Its last write, to the minute.", "$ref": "Common.schema.json#/$defs/UTCDate" }, "counts": { "type": "object", "properties": { "annotations": { "type": "integer", "minimum": 0, "description": "How many annotations the source holds now." }, "faces": { "type": "integer", "minimum": 0, "description": "How many faces the source holds now." }, "embeddings": { "type": "integer", "minimum": 0, "description": "How many embeddings the source holds now." }, "vectors": { "type": "integer", "minimum": 0, "description": "How many vectors the source holds now." }, "pendingSuggestions": { "type": "integer", "minimum": 0, "description": "How many pendingSuggestions the source holds now." }, "views": { "type": "integer", "minimum": 0, "description": "How many views the source holds now." }, "schema": { "type": "boolean", "description": "Whether the source has a schema." } }, "required": [ "annotations", "faces", "embeddings", "vectors", "pendingSuggestions", "views", "schema" ], "additionalProperties": false, "description": "What it holds in this drive, counted where it lives." } }, "required": ["id", "actor", "app", "firstWrite", "lastWrite", "counts"], "additionalProperties": false }