Something went wrong. Try again.
replace big-tech and host basic infrastructure yourself! ordner.fyi
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "FileAnnotationUpdate.schema.json", "title": "FileAnnotationUpdate", "description": "One update of `FileAnnotation/set` (keyed by the node id; at most 256 updates and destroys per call). Either the caller's own annotation, written member by member (absent members stay), or, naming another `source`, a removal from that source's annotation: it clears, drops or keeps a subset, and never adds.", "oneOf": [ { "$ref": "#/$defs/Own" }, { "$ref": "#/$defs/Removal" } ], "$defs": { "Label": { "type": "object", "properties": { "name": { "type": "string", "description": "The label.", "minLength": 1, "maxLength": 100, "pattern": "\\S" }, "confidence": { "description": "0–1, or null (the default).", "anyOf": [ { "type": "number", "minimum": 0, "maximum": 1 }, { "type": "null" } ] } }, "required": ["name"], "additionalProperties": false }, "Own": { "type": "object", "properties": { "source": { "description": "The caller's own source id; absent means the same.", "$ref": "Common.schema.json#/$defs/SourceId" }, "blobId": { "description": "The file's content as this credential read it: the write lands only while the file still holds it, else `contentChanged`.", "$ref": "Common.schema.json#/$defs/Id" }, "description": { "description": "At most 2000 characters, or null to clear it.", "anyOf": [ { "type": "string", "maxLength": 2000 }, { "type": "null" } ] }, "labels": { "type": "array", "maxItems": 100, "items": { "$ref": "#/$defs/Label" }, "description": "The labels, replacing the source's own: at most 100, unique without case." }, "text": { "description": "The blobId of an upload of type text/plain; charset=utf-8, at most 1048576 bytes of UTF-8 (else `tooLarge`), or null to remove the text.", "anyOf": [ { "$ref": "Common.schema.json#/$defs/Id" }, { "type": "null" } ] }, "fields": { "type": "object", "description": "Values by field name, as the source's schema types them: absent stays, null removes. A field the schema does not name, or a value not of its type, is `invalidProperties` naming `fields/<name>`.", "propertyNames": { "pattern": "^[a-z][a-zA-Z0-9]{0,63}$" }, "additionalProperties": { "anyOf": [ { "$ref": "FieldValue.schema.json" }, { "type": "null" } ] } }, "faces": { "type": "array", "maxItems": 500, "items": { "$ref": "AppFace.schema.json" }, "description": "The face regions the source found in a read picture, replacing its own regions no person touched. Only on a read picture." } }, "required": ["blobId"], "additionalProperties": false, "description": "The caller's own annotation. `{ blobId }` alone records that the source read the content and has nothing to say." }, "Removal": { "type": "object", "properties": { "source": { "description": "The other source whose annotation this removes from.", "$ref": "Common.schema.json#/$defs/SourceId" }, "description": { "description": "Clears the description.", "type": "null" }, "labels": { "type": "array", "maxItems": 100, "items": { "$ref": "#/$defs/Label" }, "description": "The labels to keep: a subset of the source's labels, compared without case." }, "text": { "description": "Removes the source's text.", "type": "null" }, "fields": { "type": "object", "description": "The fields to remove, each null.", "additionalProperties": { "type": "null" } } }, "required": ["source"], "additionalProperties": false, "description": "A removal from another source's annotation. Faces of another source are changed through `photo.faces`." }, "Updated": { "description": "What `FileAnnotation/set` answers in `updated` for an update: null, or with `faces` each entry's region id (null: refused) and why each refused one was.", "anyOf": [ { "type": "object", "properties": { "faces": { "type": "array", "items": { "anyOf": [ { "type": "string", "pattern": "^[A-Za-z0-9_-]{1,32}$" }, { "type": "null" } ] }, "description": "By entry of `faces`, the region it is now, or null when refused." }, "facesRefused": { "type": "array", "items": { "type": "object", "properties": { "at": { "type": ["string", "integer"], "description": "The entry's `id`, or its index when it named none." }, "type": { "enum": [ "notFound", "touchedByPerson", "alreadyNamed", "sameFace", "invalid" ] }, "description": { "type": "string", "description": "Why, in English." } }, "required": ["at", "type", "description"], "additionalProperties": false } } }, "required": ["faces", "facesRefused"], "additionalProperties": false }, { "type": "null" } ] } }}