changedOutput schema / anyOf
Previous value: -[
- {
- "additionalProperties": false,
- "properties": {
- "artifact": {
- "additionalProperties": false,
- "properties": {
- "alias": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "createdAt": {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
- "type": "string"
- },
- "currentVersionId": {
- "anyOf": [
- {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "currentVersionNumber": {
- "anyOf": [
- {
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- },
- "description": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "What the file is, whole; null when none."
- },
- "descriptionCut": {
- "description": "true when description is only part of it (a later line or the end of a long first line was left out); artifact_get reads it whole.",
- "type": "boolean"
- },
- "folder": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "id": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "teamSlug": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "slug"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "forkedFrom": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "artifactId": {
- "description": "The artifact the fork was copied from (its parent).",
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- "version": {
- "description": "The number of the version copied. A number can be reused after a version is deleted; versionId is the exact one.",
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- },
- "versionId": {
- "anyOf": [
- {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "The id of the version copied; null on an old fork whose source version was already gone."
- }
- },
- "required": [
- "artifactId",
- "versionId",
- "version"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "description": "The version this artifact was forked from; null when it is not a fork, or when you cannot read its parent."
- },
- "history": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "from": {
- "enum": [
- "file",
- "folder",
- "workspace",
- "default"
- ],
- "type": "string"
- },
- "value": {
- "anyOf": [
- {
- "enum": [
- "off",
- "all"
- ],
- "type": "string"
- },
- {
- "maximum": 100,
- "minimum": 1,
- "type": "integer"
- }
- ]
- }
- },
- "required": [
- "value",
- "from"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "id": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- "lastReadAt": {
- "anyOf": [
- {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "When its content (a table: its rows) was last read through Tokenrip by an agent, a person or a link's reader; it moves at most once an hour. Null until its first read. A public asset served straight from storage is not counted."
- },
- "mimeType": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "ownerId": {
- "type": "string"
- },
- "parentArtifactId": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "publicAsset": {
- "type": "boolean"
- },
- "rawUrl": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "sizeBytes": {
- "anyOf": [
- {
- "minimum": 0,
- "type": "number"
- },
- {
- "type": "null"
- }
- ]
- },
- "tableRevision": {
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- },
- "tasks": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "id": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- "made": {
- "type": "boolean"
- },
- "result": {
- "type": "boolean"
- },
- "status": {
- "enum": [
- "todo",
- "doing",
- "review",
- "done",
- "cancelled",
- "failed"
- ],
- "type": "string"
- },
- "title": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "title",
- "status",
- "made",
- "result"
- ],
- "type": "object"
- },
- "maxItems": 20,
- "type": "array"
- },
- "tasksTotal": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "title": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "type": {
- "enum": [
- "file",
- "markdown",
- "html",
- "chart",
- "code",
- "text",
- "json",
- "table",
- "csv"
- ],
- "type": "string"
- },
- "updatedAt": {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "versionCount": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "visibility": {
- "enum": [
- "private",
- "link",
- "public"
- ],
- "type": "string"
- },
- "workspaceId": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- "workspaceRevision": {
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- }
- },
- "required": [
- "id",
- "url",
- "rawUrl",
- "type",
- "currentVersionId",
- "alias",
- "title",
- "folder",
- "visibility",
- "description",
- "descriptionCut",
- "mimeType",
- "sizeBytes",
- "versionCount",
- "currentVersionNumber",
- "ownerId",
- "parentArtifactId",
- "forkedFrom",
- "publicAsset",
- "history",
- "createdAt",
- "updatedAt",
- "lastReadAt"
- ],
- "type": "object"
- }
- },
- "required": [
- "artifact"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "chunk": {
- "additionalProperties": false,
- "properties": {
- "data": {
- "maxLength": 43692,
- "type": "string"
- },
- "encoding": {
- "const": "base64",
- "type": "string"
- },
- "format": {
- "const": "json",
- "type": "string"
- },
- "nextOffset": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- },
- "offset": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "sha256": {
- "pattern": "^[a-f0-9]{64}$",
- "type": "string"
- },
- "totalBytes": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "format",
- "encoding",
- "sha256",
- "data",
- "offset",
- "nextOffset",
- "totalBytes"
- ],
- "type": "object"
- },
- "lastReadAt": {
- "anyOf": [
- {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "Present only on the first part: when its content (a table: its rows) was last read, null until its first read. Never in the chunks: a read moves it."
- },
- "tableRevision": {
- "description": "Present only on the first part of a table: its revision, what a row write's expectedTableRevision names. Never in the chunks: a row write moves it.",
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- },
- "tasks": {
- "description": "Present only on the first part, for a workspace member: the tasks that made, have as a result, or use the file. Never in the chunks: task work moves them, which the chunks' sha256 must not.",
- "items": {
- "additionalProperties": false,
- "properties": {
- "id": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- "made": {
- "type": "boolean"
- },
- "result": {
- "type": "boolean"
- },
- "status": {
- "enum": [
- "todo",
- "doing",
- "review",
- "done",
- "cancelled",
- "failed"
- ],
- "type": "string"
- },
- "title": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "title",
- "status",
- "made",
- "result"
- ],
- "type": "object"
- },
- "maxItems": 20,
- "type": "array"
- },
- "tasksTotal": {
- "description": "Present beside tasks.",
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "updatedAt": {
- "description": "Present only on the first part. Never in the chunks: a row write moves it.",
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
- "type": "string"
- },
- "workspaceRevision": {
- "description": "Present only on the first part, for a workspace member: what expectedWorkspaceRevision names. Never in the chunks: a row write moves it.",
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- }
- },
- "required": [
- "chunk"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "additionalProperties": false,
+ "properties": {
+ "artifact": {
+ "additionalProperties": false,
+ "properties": {
+ "alias": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "assessment": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "assessedAt": {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
+ "type": "string"
+ },
+ "fileBytes": {
+ "description": "Present beside readBytes: the file's size in bytes when it was read.",
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "importance": {
+ "description": "high: the workspace's work depends on it; medium: working material current work uses; low: loosely related or dated; none: nothing would be lost without it.",
+ "enum": [
+ "high",
+ "medium",
+ "low",
+ "none"
+ ],
+ "type": "string"
+ },
+ "outOfDate": {
+ "description": "true when the file's content changed since it was assessed; the level still shows until Tokenrip assesses it again.",
+ "type": "boolean"
+ },
+ "readBytes": {
+ "description": "Present only when the assessment was made from part of the file: how many bytes of its opening were read.",
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "reason": {
+ "description": "Why, in one line.",
+ "type": "string"
+ },
+ "summary": {
+ "description": "What the file is, in one line.",
+ "type": "string"
+ },
+ "usedGuide": {
+ "description": "Whether the workspace's guide was part of what the file was judged against.",
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "importance",
+ "reason",
+ "summary",
+ "assessedAt",
+ "usedGuide",
+ "outOfDate"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "For a workspace member or a platform admin: Tokenrip's assessment of the file, null when it has none (the workspace's guide never has one). Absent for a read by public link and for a standalone file."
+ },
+ "createdAt": {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
+ "type": "string"
+ },
+ "currentVersionId": {
+ "anyOf": [
+ {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "currentVersionNumber": {
+ "anyOf": [
+ {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "description": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "What the file is, whole; null when none."
+ },
+ "descriptionCut": {
+ "description": "true when description is only part of it (a later line or the end of a long first line was left out); artifact_get reads it whole.",
+ "type": "boolean"
+ },
+ "folder": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "id": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ "slug": {
+ "type": "string"
+ },
+ "teamSlug": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "slug"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "forkedFrom": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "artifactId": {
+ "description": "The artifact the fork was copied from (its parent).",
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ "version": {
+ "description": "The number of the version copied. A number can be reused after a version is deleted; versionId is the exact one.",
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ "versionId": {
+ "anyOf": [
+ {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The id of the version copied; null on an old fork whose source version was already gone."
+ }
+ },
+ "required": [
+ "artifactId",
+ "versionId",
+ "version"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The version this artifact was forked from; null when it is not a fork, or when you cannot read its parent."
+ },
+ "history": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "from": {
+ "enum": [
+ "file",
+ "folder",
+ "workspace",
+ "default"
+ ],
+ "type": "string"
+ },
+ "value": {
+ "anyOf": [
+ {
+ "enum": [
+ "off",
+ "all"
+ ],
+ "type": "string"
+ },
+ {
+ "maximum": 100,
+ "minimum": 1,
+ "type": "integer"
+ }
+ ]
+ }
+ },
+ "required": [
+ "value",
+ "from"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ "kept": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "at": {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
+ "type": "string"
+ },
+ "by": {
+ "additionalProperties": false,
+ "description": "The person who kept it: their account id and alias.",
+ "properties": {
+ "alias": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "alias"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "by",
+ "at"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "For a workspace member or a platform admin: who kept the file from a cleanup list they approved, and when; a kept file is not suggested for cleanup again. Null when nobody kept it. Absent for a read by public link and for a standalone file."
+ },
+ "lastReadAt": {
+ "anyOf": [
+ {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "When its content (a table: its rows) was last read through Tokenrip by an agent, a person or a link's reader; it moves at most once an hour. Null until its first read. A public asset served straight from storage is not counted."
+ },
+ "mimeType": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "ownerId": {
+ "type": "string"
+ },
+ "parentArtifactId": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "publicAsset": {
+ "type": "boolean"
+ },
+ "rawUrl": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "sizeBytes": {
+ "anyOf": [
+ {
+ "minimum": 0,
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "tableRevision": {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ "tasks": {
+ "description": "For a workspace member or a platform admin: the tasks that made, have as a result, or use the file, at most 20. Absent for a read by public link and for a standalone file.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "id": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ "made": {
+ "type": "boolean"
+ },
+ "result": {
+ "type": "boolean"
+ },
+ "status": {
+ "enum": [
+ "todo",
+ "doing",
+ "review",
+ "done",
+ "cancelled",
+ "failed"
+ ],
+ "type": "string"
+ },
+ "title": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "title",
+ "status",
+ "made",
+ "result"
+ ],
+ "type": "object"
+ },
+ "maxItems": 20,
+ "type": "array"
+ },
+ "tasksTotal": {
+ "description": "Present beside tasks: how many tasks match in all.",
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "title": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "type": {
+ "enum": [
+ "file",
+ "markdown",
+ "html",
+ "chart",
+ "code",
+ "text",
+ "json",
+ "table",
+ "csv"
+ ],
+ "type": "string"
+ },
+ "updatedAt": {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
+ "type": "string"
+ },
+ "url": {
+ "type": "string"
+ },
+ "versionCount": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "visibility": {
+ "enum": [
+ "private",
+ "link",
+ "public"
+ ],
+ "type": "string"
+ },
+ "workspaceId": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ "workspaceRevision": {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "id",
+ "url",
+ "rawUrl",
+ "type",
+ "currentVersionId",
+ "alias",
+ "title",
+ "folder",
+ "visibility",
+ "description",
+ "descriptionCut",
+ "mimeType",
+ "sizeBytes",
+ "versionCount",
+ "currentVersionNumber",
+ "ownerId",
+ "parentArtifactId",
+ "forkedFrom",
+ "publicAsset",
+ "history",
+ "createdAt",
+ "updatedAt",
+ "lastReadAt"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "artifact"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "assessment": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "assessedAt": {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
+ "type": "string"
+ },
+ "fileBytes": {
+ "description": "Present beside readBytes: the file's size in bytes when it was read.",
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "importance": {
+ "description": "high: the workspace's work depends on it; medium: working material current work uses; low: loosely related or dated; none: nothing would be lost without it.",
+ "enum": [
+ "high",
+ "medium",
+ "low",
+ "none"
+ ],
+ "type": "string"
+ },
+ "outOfDate": {
+ "description": "true when the file's content changed since it was assessed; the level still shows until Tokenrip assesses it again.",
+ "type": "boolean"
+ },
+ "readBytes": {
+ "description": "Present only when the assessment was made from part of the file: how many bytes of its opening were read.",
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "reason": {
+ "description": "Why, in one line.",
+ "type": "string"
+ },
+ "summary": {
+ "description": "What the file is, in one line.",
+ "type": "string"
+ },
+ "usedGuide": {
+ "description": "Whether the workspace's guide was part of what the file was judged against.",
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "importance",
+ "reason",
+ "summary",
+ "assessedAt",
+ "usedGuide",
+ "outOfDate"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Present only on the first part, for a workspace member or a platform admin: Tokenrip's assessment of the file, null when it has none. Never in the chunks: an assessment moves it."
+ },
+ "chunk": {
+ "additionalProperties": false,
+ "properties": {
+ "data": {
+ "maxLength": 43692,
+ "type": "string"
+ },
+ "encoding": {
+ "const": "base64",
+ "type": "string"
+ },
+ "format": {
+ "const": "json",
+ "type": "string"
+ },
+ "nextOffset": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "offset": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "sha256": {
+ "pattern": "^[a-f0-9]{64}$",
+ "type": "string"
+ },
+ "totalBytes": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "format",
+ "encoding",
+ "sha256",
+ "data",
+ "offset",
+ "nextOffset",
+ "totalBytes"
+ ],
+ "type": "object"
+ },
+ "kept": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "at": {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
+ "type": "string"
+ },
+ "by": {
+ "additionalProperties": false,
+ "description": "The person who kept it: their account id and alias.",
+ "properties": {
+ "alias": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "alias"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "by",
+ "at"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Present only on the first part, for a workspace member or a platform admin: who kept the file from a cleanup list, null when nobody did. Never in the chunks: a cleanup moves it."
+ },
+ "lastReadAt": {
+ "anyOf": [
+ {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Present only on the first part: when its content (a table: its rows) was last read, null until its first read. Never in the chunks: a read moves it."
+ },
+ "tableRevision": {
+ "description": "Present only on the first part of a table: its revision, what a row write's expectedTableRevision names. Never in the chunks: a row write moves it.",
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ "tasks": {
+ "description": "Present only on the first part, for a workspace member or a platform admin: the tasks that made, have as a result, or use the file. Never in the chunks: task work moves them, which the chunks' sha256 must not.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "id": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ "made": {
+ "type": "boolean"
+ },
+ "result": {
+ "type": "boolean"
+ },
+ "status": {
+ "enum": [
+ "todo",
+ "doing",
+ "review",
+ "done",
+ "cancelled",
+ "failed"
+ ],
+ "type": "string"
+ },
+ "title": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "title",
+ "status",
+ "made",
+ "result"
+ ],
+ "type": "object"
+ },
+ "maxItems": 20,
+ "type": "array"
+ },
+ "tasksTotal": {
+ "description": "Present beside tasks.",
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "updatedAt": {
+ "description": "Present only on the first part. Never in the chunks: a row write moves it.",
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
+ "type": "string"
+ },
+ "workspaceRevision": {
+ "description": "Present only on the first part, for a workspace member or a platform admin: what expectedWorkspaceRevision names. Never in the chunks: a row write moves it.",
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "chunk"
+ ],
+ "type": "object"
+ }
+]