Something went wrong. Try again.
replace big-tech and host basic infrastructure yourself! ordner.fyi
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "Common.schema.json", "title": "Common definitions", "description": "Definitions the other schemas of the connected-applications API refer to.", "$defs": { "Id": { "type": "string", "description": "An identifier the server made. Opaque; compare it whole. Composite ids (`<nodeId>/<faceId>`, `<nodeId>/<sourceId>`) hold a slash.", "minLength": 1 }, "UTCDate": { "type": "string", "description": "A point in time in UTC: `YYYY-MM-DDThh:mm:ss`, an optional fraction of 1–9 digits, and `Z` (RFC 8620 §1.4).", "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,9})?Z$" }, "LocalDate": { "type": "string", "description": "A date and wall-clock time without a time zone: `YYYY-MM-DDThh:mm:ss` (RFC 8620 §1.4). The server refuses a date or time that does not exist.", "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}$" }, "CalendarDate": { "type": "string", "description": "A calendar date: `YYYY-MM-DD`. This is the value of a field of type `localDate`; it holds no time, unlike an RFC 8620 LocalDate. The server refuses a date that does not exist.", "pattern": "^\\d{4}-\\d{2}-\\d{2}$" }, "SourceId": { "type": "string", "description": "The id of a source: `<actorId>.<kind>.<id>`, `kind` being `app` (an OAuth application), `pw` (an app password) or `web` (a web session, `<actorId>.web.session`). Opaque to a client.", "minLength": 1 }, "Actor": { "type": "object", "properties": { "id": { "type": "string", "description": "The person's principal id.", "minLength": 1 }, "name": { "type": "string", "description": "The person's display name." } }, "required": ["id", "name"], "additionalProperties": false, "description": "The person whose credential wrote." }, "SourceApp": { "type": "object", "properties": { "id": { "type": "string", "description": "The OAuth client id, or the app password's id.", "minLength": 1 }, "kind": { "enum": ["app", "pw"], "description": "`app`: an OAuth application; `pw`: an app password." }, "name": { "type": "string", "description": "The name the application registered (unverified), or the app password's label.", "minLength": 1, "maxLength": 200 } }, "required": ["id", "kind", "name"], "additionalProperties": false, "description": "The application a source wrote through." }, "Source": { "type": "object", "properties": { "id": { "$ref": "Common.schema.json#/$defs/SourceId" }, "actor": { "$ref": "Common.schema.json#/$defs/Actor" }, "app": { "description": "The application, or null for the person's web session.", "anyOf": [ { "$ref": "Common.schema.json#/$defs/SourceApp" }, { "type": "null" } ] } }, "required": ["id", "actor", "app"], "additionalProperties": false, "description": "Who wrote: the person and the application, as they were named when the source last wrote." }, "Label": { "type": "object", "properties": { "name": { "type": "string", "description": "The label, as the source wrote it. Labels compare without case (NFC, lower-cased).", "minLength": 1, "maxLength": 100, "pattern": "\\S" }, "confidence": { "description": "The source's confidence, 0–1, or null.", "anyOf": [ { "type": "number", "minimum": 0, "maximum": 1 }, { "type": "null" } ] } }, "required": ["name", "confidence"], "additionalProperties": false, "description": "A label a source gave a file's content." }, "LocalizedText": { "type": "object", "description": "A text in one or more languages: language tag to text, each 1–64 characters, `x-default` required. The web apps show the person's language, else `x-default`.", "required": ["x-default"], "patternProperties": { "^(?:x-default|[A-Za-z]{2,8}(?:-[A-Za-z0-9]{1,8})*)$": { "type": "string", "minLength": 1, "maxLength": 64 } }, "additionalProperties": false }, "Vector": { "type": "string", "description": "Base64 (RFC 4648 §4, padding optional) of little-endian IEEE 754 float32 values; the number of dimensions is the decoded byte count divided by 4. The server refuses a vector of non-finite or all-zero values, keeps it normalised to unit length and answers it padded.", "pattern": "^[A-Za-z0-9+/]*={0,2}$", "minLength": 1 }, "FaceArea": { "type": "object", "properties": { "x": { "type": "number", "minimum": 0, "maximum": 1, "description": "The centre's distance from the left edge." }, "y": { "type": "number", "minimum": 0, "maximum": 1, "description": "The centre's distance from the top edge." }, "w": { "type": "number", "exclusiveMinimum": 0, "maximum": 1, "description": "The width." }, "h": { "type": "number", "exclusiveMinimum": 0, "maximum": 1, "description": "The height." } }, "required": ["x", "y", "w", "h"], "additionalProperties": false, "description": "A face region's centre and size as fractions of the picture as displayed (after its orientation), as MWG regions' `stArea` with unit normalized. A box may reach past the edge." }, "SetError": { "type": "object", "description": "Why one object of a /set was not written (RFC 8620 §5.3).", "properties": { "type": { "type": "string", "description": "The error type: an RFC 8620 one, or this API's (`contentChanged`, `dismissed`, `accepted`, `removed`, …)." }, "description": { "type": "string", "description": "What was wrong, in English." }, "properties": { "type": "array", "items": { "type": "string" }, "description": "The properties that were wrong." } }, "required": ["type"] } }}