{
  "@context": {
    "@vocab": "https://leafchat.app/schema#",
    "schema": "https://schema.org/",
    "xsd": "http://www.w3.org/2001/XMLSchema#",
    "dcterms": "http://purl.org/dc/terms/",
    "leafchat": "https://leafchat.app/schema#",
    "Problem": "leafchat:Problem",
    "type": {
      "@id": "leafchat:type",
      "@type": "xsd:string"
    },
    "title": {
      "@id": "leafchat:title",
      "@type": "xsd:string"
    },
    "status": {
      "@id": "leafchat:status",
      "@type": "xsd:integer"
    },
    "detail": {
      "@id": "leafchat:detail",
      "@type": "xsd:string"
    },
    "code": {
      "@id": "leafchat:code",
      "@type": "xsd:string"
    },
    "Source": "leafchat:Source",
    "id": {
      "@id": "leafchat:id",
      "@type": "xsd:string"
    },
    "name": {
      "@id": "leafchat:name",
      "@type": "xsd:string"
    },
    "mode": {
      "@id": "leafchat:mode",
      "@type": "xsd:string"
    },
    "is_default": {
      "@id": "leafchat:is_default",
      "@type": "xsd:boolean"
    },
    "default_folder_id": {
      "@id": "leafchat:default_folder_id",
      "@type": "xsd:string"
    },
    "document_count": {
      "@id": "leafchat:document_count",
      "@type": "xsd:integer"
    },
    "last_synced_at": {
      "@id": "leafchat:last_synced_at",
      "@type": "xsd:dateTime"
    },
    "last_sync_summary": {
      "@id": "leafchat:last_sync_summary"
    },
    "SyncResponse": "leafchat:SyncResponse",
    "dry_run": {
      "@id": "leafchat:dry_run",
      "@type": "xsd:boolean"
    },
    "plan": {
      "@id": "leafchat:plan"
    },
    "limits": {
      "@id": "leafchat:limits"
    },
    "uploads_required": {
      "@id": "leafchat:uploads_required",
      "@container": "@list"
    },
    "warnings": {
      "@id": "leafchat:warnings",
      "@container": "@list"
    },
    "created_folders": {
      "@id": "leafchat:created_folders",
      "@container": "@list"
    },
    "executed": {
      "@id": "leafchat:executed",
      "@container": "@list"
    },
    "remaining": {
      "@id": "leafchat:remaining",
      "@type": "xsd:integer"
    },
    "UploadNeed": "leafchat:UploadNeed",
    "sha256": {
      "@id": "leafchat:sha256",
      "@type": "xsd:string"
    },
    "size": {
      "@id": "leafchat:size",
      "@type": "xsd:integer"
    },
    "content_type": {
      "@id": "leafchat:content_type",
      "@type": "xsd:string"
    },
    "external_ids": {
      "@id": "leafchat:external_ids",
      "@container": "@list"
    },
    "SyncRequest": "leafchat:SyncRequest",
    "items": {
      "@id": "leafchat:items",
      "@container": "@list"
    },
    "files": {
      "@id": "leafchat:files",
      "@container": "@list"
    },
    "confirmed_deletes": {
      "@id": "leafchat:confirmed_deletes",
      "@container": "@list"
    },
    "allow_empty": {
      "@id": "leafchat:allow_empty",
      "@type": "xsd:boolean"
    },
    "client": {
      "@id": "leafchat:client",
      "@type": "@id"
    },
    "SyncFileInline": "leafchat:SyncFileInline",
    "path": {
      "@id": "leafchat:path",
      "@type": "xsd:string"
    },
    "external_id": {
      "@id": "leafchat:external_id",
      "@type": "xsd:string"
    },
    "content": {
      "@id": "leafchat:content",
      "@type": "xsd:string"
    },
    "SyncFileRef": "leafchat:SyncFileRef",
    "SyncClient": "leafchat:SyncClient",
    "version": {
      "@id": "leafchat:version",
      "@type": "xsd:string"
    },
    "ci": {
      "@id": "leafchat:ci",
      "@type": "xsd:string"
    },
    "repository": {
      "@id": "leafchat:repository",
      "@type": "xsd:string"
    },
    "run_url": {
      "@id": "leafchat:run_url",
      "@type": "@id"
    },
    "UploadAccepted": "leafchat:UploadAccepted",
    "already_uploaded": {
      "@id": "leafchat:already_uploaded",
      "@type": "xsd:boolean"
    },
    "Folder": "leafchat:Folder",
    "is_global": {
      "@id": "leafchat:is_global",
      "@type": "xsd:boolean"
    },
    "sites": {
      "@id": "leafchat:sites",
      "@container": "@list"
    },
    "Document": "leafchat:Document",
    "source_id": {
      "@id": "leafchat:source_id",
      "@type": "xsd:string"
    },
    "folder_id": {
      "@id": "leafchat:folder_id",
      "@type": "xsd:string"
    },
    "filename": {
      "@id": "leafchat:filename",
      "@type": "xsd:string"
    },
    "mime": {
      "@id": "leafchat:mime",
      "@type": "xsd:string"
    },
    "current_revision": {
      "@id": "leafchat:current_revision"
    },
    "head_revision": {
      "@id": "leafchat:head_revision",
      "@type": "@id"
    },
    "created_at": {
      "@id": "leafchat:created_at",
      "@type": "xsd:dateTime"
    },
    "updated_at": {
      "@id": "leafchat:updated_at",
      "@type": "xsd:dateTime"
    },
    "RevisionRef": "leafchat:RevisionRef",
    "number": {
      "@id": "leafchat:number",
      "@type": "xsd:integer"
    },
    "state": {
      "@id": "leafchat:state",
      "@type": "xsd:string"
    },
    "error_message": {
      "@id": "leafchat:error_message",
      "@type": "xsd:string"
    },
    "DocumentAccepted": "leafchat:DocumentAccepted",
    "document_id": {
      "@id": "leafchat:document_id",
      "@type": "xsd:string"
    },
    "revision_id": {
      "@id": "leafchat:revision_id",
      "@type": "xsd:string"
    },
    "created": {
      "@id": "leafchat:created",
      "@type": "xsd:boolean"
    },
    "replaced": {
      "@id": "leafchat:replaced",
      "@type": "xsd:boolean"
    },
    "CreateDocument": "leafchat:CreateDocument",
    "CreateDocumentMultipart": "leafchat:CreateDocumentMultipart",
    "file": {
      "@id": "leafchat:file",
      "@type": "xsd:string"
    },
    "UpsertResult": "leafchat:UpsertResult",
    "outcome": {
      "@id": "leafchat:outcome",
      "@type": "xsd:string"
    },
    "UpsertDocument": "leafchat:UpsertDocument",
    "PatchDocument": "leafchat:PatchDocument",
    "edits": {
      "@id": "leafchat:edits",
      "@container": "@list"
    },
    "DeleteResult": "leafchat:DeleteResult",
    "RetryResult": "leafchat:RetryResult",
    "Draft": "leafchat:Draft",
    "operation": {
      "@id": "leafchat:operation",
      "@type": "xsd:string"
    },
    "summary": {
      "@id": "leafchat:summary",
      "@type": "xsd:string"
    },
    "rationale": {
      "@id": "leafchat:rationale",
      "@type": "xsd:string"
    },
    "evidence": {
      "@id": "leafchat:evidence"
    },
    "base_revision_id": {
      "@id": "leafchat:base_revision_id",
      "@type": "xsd:string"
    },
    "stale": {
      "@id": "leafchat:stale",
      "@type": "xsd:boolean"
    },
    "target": {
      "@id": "leafchat:target"
    },
    "content_sha256": {
      "@id": "leafchat:content_sha256",
      "@type": "xsd:string"
    },
    "author": {
      "@id": "leafchat:author"
    },
    "published_document_id": {
      "@id": "leafchat:published_document_id",
      "@type": "xsd:string"
    },
    "published_revision_id": {
      "@id": "leafchat:published_revision_id",
      "@type": "xsd:string"
    },
    "decided_at": {
      "@id": "leafchat:decided_at",
      "@type": "xsd:dateTime"
    },
    "CreateDraftOfCreate": "leafchat:CreateDraftOfCreate",
    "CreateDraftOfUpdate": "leafchat:CreateDraftOfUpdate",
    "CreateDraftOfDelete": "leafchat:CreateDraftOfDelete",
    "DiscardResult": "leafchat:DiscardResult",
    "draft_id": {
      "@id": "leafchat:draft_id",
      "@type": "xsd:string"
    }
  },
  "@type": "schema:Dataset",
  "schema:name": "leafchat API JSON-LD context",
  "schema:description": "A JSON-LD @context for the objects leafchat's own API contract declares: one class per component schema, one property per declared field, typed from the contract. Derived by script (derive-json-ld.py, 2026-11-15) from openapi/leafchat-app-openapi.json.",
  "dcterms:created": "2026-11-15",
  "dcterms:source": [
    "openapi/leafchat-app-openapi.json"
  ]
}