{"openapi":"3.1.0","info":{"title":"AwuCat API","version":"1.0.0","summary":"UYAP .udf belgelerini okuyan/yazan dönüştürme API'si","description":"UDF ⇄ Markdown / DOCX / TXT / HTML / DocModel JSON (ve beta PDF) dönüşümü, belge inceleme, UYAP uyumluluk doğrulaması ve dilekçe şablonları.\n\n**Gizlilik:** Dosyalar yalnızca istek süresince bellekte işlenir; diske yazılmaz, günlüğe kaydedilmez, saklanmaz. Her yanıtta `X-AwuCat-Privacy: processed-in-memory; not-stored` başlığı bulunur. Web uygulaması (editör/görüntüleyici/dönüştürücü) bu API'yi kullanmaz; tamamen cihazda çalışır.\n\n**Sınırlar:** gövde ≤ 15 MB, IP başına dakikada 60 istek. **Kimlik doğrulama:** sunucuda UDF_API_KEYS tanımlıysa `Authorization: Bearer <anahtar>` veya `X-Api-Key` zorunludur; değilse açıktır.","license":{"name":"Apache-2.0"}},"servers":[{"url":"https://awucat.app"}],"security":[{},{"bearerAuth":[]},{"apiKey":[]}],"tags":[{"name":"convert","description":"Biçim dönüştürme"},{"name":"inspect","description":"İnceleme ve doğrulama"},{"name":"templates","description":"Dilekçe şablonları"},{"name":"meta","description":"Keşif"}],"paths":{"/api/v1":{"get":{"tags":["meta"],"summary":"API dizini","operationId":"index","responses":{"200":{"description":"Uç noktalar ve MCP adresi","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/v1/openapi.json":{"get":{"tags":["meta"],"summary":"Bu belge","operationId":"openapi","responses":{"200":{"description":"OpenAPI 3.1","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/v1/convert":{"post":{"tags":["convert"],"summary":"Belge dönüştür","operationId":"convert","description":"Girdi biçimi sihirli baytlardan tanınır (uzantı yalnızca eşitlik bozar). PDF, görsel ve eski .doc girdileri sunucuda desteklenmez (415). JSON gövdesiyle Markdown metni (`markdown`), DocModel (`doc`), `html` veya `text` de gönderilebilir.","requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","required":["file"],"properties":{"file":{"type":"string","format":"binary","description":"UDF, DOCX, TXT, HTML, Markdown veya DocModel JSON dosyası (≤ 15 MB)."},"to":{"type":"string","enum":["udf","docx","txt","html","md","json","pdf"],"default":"udf","description":"Çıktı biçimi. (Bu sunucuda pdf kapalı.) pdf çıktısı beta."},"style":{"type":"string","enum":["dilekce","plain"],"default":"dilekce","description":"Markdown girdisinde paragraf düzeni: dilekce = iki yana yaslı, ilk satır girintili, 1,5 satır; plain = sola dayalı."},"title":{"type":"string","description":"Belge başlığı / dosya adı."},"pdfMode":{"type":"string","enum":["text","scan"],"description":"Ayrılmış alan: PDF girdisi sunucuda desteklenmediği için etkisizdir."}}},"encoding":{"file":{"contentType":"application/udf, application/vnd.openxmlformats-officedocument.wordprocessingml.document, text/plain, text/html, text/markdown, application/json"}}},"application/json":{"schema":{"type":"object","properties":{"markdown":{"type":"string","description":"Markdown kaynak metni (AwuCat lehçesi; bkz. udf://spec MCP kaynağı)."},"doc":{"$ref":"#/components/schemas/DocModel"},"html":{"type":"string"},"text":{"type":"string"},"file_base64":{"type":"string","description":"Base64 dosya içeriği (multipart'a alternatif)."},"file_name":{"type":"string"},"to":{"type":"string","enum":["udf","docx","txt","html","md","json","pdf"],"default":"udf","description":"Çıktı biçimi. (Bu sunucuda pdf kapalı.) pdf çıktısı beta."},"style":{"type":"string","enum":["dilekce","plain"],"default":"dilekce","description":"Markdown girdisinde paragraf düzeni: dilekce = iki yana yaslı, ilk satır girintili, 1,5 satır; plain = sola dayalı."},"title":{"type":"string"}}},"examples":{"markdown":{"value":{"markdown":"# ANKARA 1. ASLİYE HUKUK MAHKEMESİ'NE\n\nDAVACI: Ad Soyad\nKONU: Alacak talebi\n\n## AÇIKLAMALAR\n\n1- Birinci madde.\n\n>> Av. Ad Soyad","to":"udf","title":"Dava Dilekçesi"}}}}}},"responses":{"200":{"description":"Dönüştürülen dosya. `Content-Disposition` dosya adını, `X-AwuCat-Warnings` (URL-kodlu JSON dizi) uyarıları taşır.","headers":{"Content-Disposition":{"schema":{"type":"string"}},"X-AwuCat-Warnings":{"schema":{"type":"string"},"description":"encodeURIComponent(JSON.stringify(string[]))"},"X-AwuCat-Privacy":{"schema":{"type":"string","const":"processed-in-memory; not-stored"}}},"content":{"application/udf":{"schema":{"type":"string","format":"binary"}},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{"schema":{"type":"string","format":"binary"}},"application/pdf":{"schema":{"type":"string","format":"binary"}},"text/html":{"schema":{"type":"string"}},"text/plain":{"schema":{"type":"string"}},"text/markdown":{"schema":{"type":"string"}},"application/json":{"schema":{"$ref":"#/components/schemas/DocModel"}}}},"400":{"description":"Geçersiz istek","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"API anahtarı gerekli/geçersiz (yalnızca UDF_API_KEYS tanımlıysa)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Gövde 15 MB sınırını aşıyor","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Desteklenmeyen girdi biçimi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Dosya okunamadı / dönüştürülemedi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Hız sınırı (dakikada 60 istek / IP)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"501":{"description":"PDF çıktısı bu sunucuda kapalı","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/inspect":{"post":{"tags":["inspect"],"summary":"Belgeyi incele","operationId":"inspect","requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","required":["file"],"properties":{"file":{"type":"string","format":"binary","description":"UDF, DOCX, TXT, HTML, Markdown veya DocModel JSON dosyası (≤ 15 MB)."}}}},"application/json":{"schema":{"type":"object","properties":{"file_base64":{"type":"string"},"file_name":{"type":"string"},"markdown":{"type":"string"},"doc":{"$ref":"#/components/schemas/DocModel"}}}}}},"responses":{"200":{"description":"İnceleme raporu","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InspectReport"}}}},"400":{"description":"Geçersiz istek","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"API anahtarı gerekli/geçersiz (yalnızca UDF_API_KEYS tanımlıysa)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Gövde 15 MB sınırını aşıyor","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Desteklenmeyen girdi biçimi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Dosya okunamadı / dönüştürülemedi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Hız sınırı (dakikada 60 istek / IP)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/validate":{"post":{"tags":["inspect"],"summary":"UYAP uyumluluğunu doğrula","operationId":"validate","requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","required":["file"],"properties":{"file":{"type":"string","format":"binary","description":"UDF, DOCX, TXT, HTML, Markdown veya DocModel JSON dosyası (≤ 15 MB)."}}}},"application/json":{"schema":{"type":"object","properties":{"file_base64":{"type":"string"},"file_name":{"type":"string"},"doc":{"$ref":"#/components/schemas/DocModel"},"markdown":{"type":"string"}}}}}},"responses":{"200":{"description":"Kontrol listesi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationReport"}}}},"400":{"description":"Geçersiz istek","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"API anahtarı gerekli/geçersiz (yalnızca UDF_API_KEYS tanımlıysa)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Gövde 15 MB sınırını aşıyor","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Desteklenmeyen girdi biçimi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Dosya okunamadı / dönüştürülemedi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Hız sınırı (dakikada 60 istek / IP)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/atif-dogrula":{"post":{"tags":["inspect"],"summary":"Kanun maddesi ve yargı kararı atıflarını doğrula","description":"Metindeki atıfları bulur ve doğrular. Kanun maddeleri yerel güncel metinle karşılaştırılır (var / yok / mülga, fıkra ve bent, alıntı karşılaştırması); kararlar yalnızca künyeyle önce künye dizininde (Türk İçtihat Korpusu), korpustan yeni kararlarda resmî veritabanlarında aranır (found / not_found / mismatch; result.via = index | live). Her karar sorgusu emsal arama sınırına (dakikada 30) sayılır; sınırı aşanlar 'deferred' döner. kararlar=false yalnızca kanun maddelerini doğrular.","operationId":"checkCitations","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","maxLength":300000},"title":{"type":"string"},"kararlar":{"type":"boolean","default":true},"file_base64":{"type":"string"},"file_name":{"type":"string"}}},"examples":{"metin":{"value":{"text":"TBK m. 344/1 ve HMK 107/1 uyarınca; Yargıtay 3. HD, 12.05.2021 T., E. 2021/123, K. 2021/456"}}}},"multipart/form-data":{"schema":{"type":"object","required":["file"],"properties":{"file":{"type":"string","format":"binary","description":"UDF, DOCX, TXT, HTML, Markdown veya DocModel JSON dosyası (≤ 15 MB)."}}}}}},"responses":{"200":{"description":"Özet, atıf listesi (status: verified | repealed | not_found | partial | unverifiable | found | mismatch | deferred | error | pending) ve Markdown rapor","content":{"application/json":{"schema":{"type":"object","properties":{"summary":{"type":"object"},"items":{"type":"array","items":{"type":"object"}},"markdown":{"type":"string"}}}}}},"400":{"description":"Geçersiz istek","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"API anahtarı gerekli/geçersiz (yalnızca UDF_API_KEYS tanımlıysa)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Gövde 15 MB sınırını aşıyor","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Desteklenmeyen girdi biçimi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Dosya okunamadı / dönüştürülemedi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Hız sınırı (dakikada 60 istek / IP)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/kunye":{"get":{"tags":["inspect"],"summary":"Esas/karar numarasıyla karar künyesi ara (kunye_ara)","description":"Türk İçtihat Korpusu'nun (~11 milyon Yargıtay, Danıştay, UYAP Emsal ve AYM kararı) künye dizininde esas ve/veya karar numarasıyla arar. Resmî kaynak değildir; veriler korpusun kesim tarihine kadardır (coverage.cutoff). Bulunamaması kararın olmadığı anlamına gelmez.","operationId":"kunyeAra","parameters":[{"name":"esas","in":"query","schema":{"type":"string"},"example":"2019/4215","description":"Esas no (HGK biçimi 2017/11-10 da olur). esas veya karar gerekli."},{"name":"karar","in":"query","schema":{"type":"string"},"example":"2020/1234"},{"name":"kaynak","in":"query","schema":{"type":"string","enum":["yargitay","danistay","uyap","aym"]}},{"name":"daire","in":"query","schema":{"type":"string"},"example":"3. HD"},{"name":"tur","in":"query","schema":{"type":"string","enum":["bireysel","norm"]},"description":"AYM için"},{"name":"from","in":"query","schema":{"type":"string"},"description":"Karar tarihi alt sınırı (YYYY-AA-GG veya GG.AA.YYYY)"},{"name":"to","in":"query","schema":{"type":"string"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200,"default":50}}],"responses":{"200":{"description":"Eşleşen kararlar (yeniden eskiye), kapsam ve kaynak bilgisi","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object"}},"total":{"type":"integer"},"truncated":{"type":"boolean"},"coverage":{"type":"object"},"notice":{"type":"string"},"attribution":{"type":"object"}}}}}},"400":{"description":"Geçersiz istek","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"API anahtarı gerekli/geçersiz (yalnızca UDF_API_KEYS tanımlıysa)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Gövde 15 MB sınırını aşıyor","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Desteklenmeyen girdi biçimi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Dosya okunamadı / dönüştürülemedi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Hız sınırı (dakikada 60 istek / IP)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Künye dizinine ulaşılamıyor","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/templates":{"get":{"tags":["templates"],"summary":"Şablon listesi","operationId":"listTemplates","responses":{"200":{"description":"Kategoriler ve şablonlar","content":{"application/json":{"schema":{"type":"object","properties":{"categories":{"type":"array","items":{"type":"object"}},"templates":{"type":"array","items":{"$ref":"#/components/schemas/TemplateSummary"}}}}}}},"400":{"description":"Geçersiz istek","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"API anahtarı gerekli/geçersiz (yalnızca UDF_API_KEYS tanımlıysa)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Gövde 15 MB sınırını aşıyor","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Desteklenmeyen girdi biçimi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Dosya okunamadı / dönüştürülemedi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Hız sınırı (dakikada 60 istek / IP)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/templates/{id}":{"get":{"tags":["templates"],"summary":"Şablon ayrıntısı (Markdown gövde + alanlar)","operationId":"getTemplate","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"example":"genel-dilekce"}],"responses":{"200":{"description":"Şablon","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateDetail"}}}},"400":{"description":"Geçersiz istek","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"API anahtarı gerekli/geçersiz (yalnızca UDF_API_KEYS tanımlıysa)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Şablon yok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Gövde 15 MB sınırını aşıyor","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Desteklenmeyen girdi biçimi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Dosya okunamadı / dönüştürülemedi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Hız sınırı (dakikada 60 istek / IP)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/templates/{id}/fill":{"post":{"tags":["templates"],"summary":"Şablonu doldur ve dosya üret","operationId":"fillTemplate","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["values"],"properties":{"values":{"type":"object","additionalProperties":{"type":"string"},"description":"[[Alan Adı]] → değer (köşeli parantezsiz anahtar; büyük/küçük harf duyarsız)."},"to":{"type":"string","enum":["udf","docx","txt","html","md","json","pdf"],"default":"udf","description":"Çıktı biçimi. (Bu sunucuda pdf kapalı.) pdf çıktısı beta."},"title":{"type":"string"}}},"examples":{"genel":{"value":{"values":{"Kurum Adı ('NA / 'NE ekiyle)":"ANKARA BÜYÜKŞEHİR BELEDİYE BAŞKANLIĞI'NA","Konu":"Kaldırım onarımı","Ad Soyad":"Ayşe Yılmaz"},"to":"udf"}}}}}},"responses":{"200":{"description":"Dönüştürülen dosya. `Content-Disposition` dosya adını, `X-AwuCat-Warnings` (URL-kodlu JSON dizi) uyarıları taşır.","headers":{"Content-Disposition":{"schema":{"type":"string"}},"X-AwuCat-Warnings":{"schema":{"type":"string"},"description":"encodeURIComponent(JSON.stringify(string[]))"},"X-AwuCat-Privacy":{"schema":{"type":"string","const":"processed-in-memory; not-stored"}}},"content":{"application/udf":{"schema":{"type":"string","format":"binary"}},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{"schema":{"type":"string","format":"binary"}},"application/pdf":{"schema":{"type":"string","format":"binary"}},"text/html":{"schema":{"type":"string"}},"text/plain":{"schema":{"type":"string"}},"text/markdown":{"schema":{"type":"string"}},"application/json":{"schema":{"$ref":"#/components/schemas/DocModel"}}}},"400":{"description":"Geçersiz istek","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"API anahtarı gerekli/geçersiz (yalnızca UDF_API_KEYS tanımlıysa)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Gövde 15 MB sınırını aşıyor","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Desteklenmeyen girdi biçimi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Dosya okunamadı / dönüştürülemedi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Hız sınırı (dakikada 60 istek / IP)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"501":{"description":"PDF çıktısı bu sunucuda kapalı","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"},"apiKey":{"type":"apiKey","in":"header","name":"X-Api-Key"}},"schemas":{"Error":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["bad_request","unauthorized","not_found","payload_too_large","unsupported_format","conversion_failed","rate_limited","pdf_disabled","pdf_failed"]},"message":{"type":"string","description":"Türkçe, kullanıcıya gösterilebilir açıklama."}}}}},"DocModel":{"type":"object","description":"AwuCat biçimden bağımsız belge modeli (pt cinsinden). Bkz. src/lib/doc/model.ts.","required":["version","page","defaults","body","meta"],"properties":{"version":{"type":"integer","const":1},"page":{"type":"object","properties":{"size":{"type":"string"},"width":{"type":"number"},"height":{"type":"number"},"orientation":{"type":"string","enum":["portrait","landscape"]},"margins":{"type":"object","properties":{"top":{"type":"number"},"right":{"type":"number"},"bottom":{"type":"number"},"left":{"type":"number"}}},"headerOffset":{"type":"number"},"footerOffset":{"type":"number"}}},"defaults":{"type":"object","properties":{"font":{"type":"string"},"size":{"type":"number"}}},"compat":{"type":"string","enum":["uyap","word"]},"body":{"type":"array","items":{"$ref":"#/components/schemas/Block"}},"header":{"type":"array","items":{"$ref":"#/components/schemas/Block"}},"footer":{"type":"array","items":{"$ref":"#/components/schemas/Block"}},"meta":{"type":"object","properties":{"title":{"type":"string"},"author":{"type":"string"},"subject":{"type":"string"},"keywords":{"type":"string"}}},"udf":{"type":"object","properties":{"formatId":{"type":"string"},"webId":{"type":"string"},"verificationCode":{"type":"string"}}}}},"Block":{"oneOf":[{"type":"object","required":["type","attrs","content"],"properties":{"type":{"const":"paragraph"},"attrs":{"type":"object","properties":{"align":{"type":"string","enum":["left","center","right","justify"]},"indentLeft":{"type":"number"},"indentRight":{"type":"number"},"indentFirst":{"type":"number"},"spaceBefore":{"type":"number"},"spaceAfter":{"type":"number"},"lineSpacing":{"type":"number"},"list":{"type":"object"},"tabs":{"type":"array","items":{"type":"object","properties":{"pos":{"type":"number"}}}}}},"content":{"type":"array","items":{"$ref":"#/components/schemas/Inline"}}}},{"type":"object","required":["type"],"properties":{"type":{"const":"pageBreak"}}},{"type":"object","required":["type","columns","rows"],"properties":{"type":{"const":"table"},"columns":{"type":"array","items":{"type":"number"}},"rows":{"type":"array","items":{"type":"object","properties":{"header":{"type":"boolean"},"cells":{"type":"array","items":{"type":"object","properties":{"content":{"type":"array","items":{"$ref":"#/components/schemas/Block"}},"colspan":{"type":"integer"},"rowspan":{"type":"integer"}}}}}}}}}]},"Inline":{"oneOf":[{"type":"object","required":["type","text"],"properties":{"type":{"const":"text"},"text":{"type":"string"},"marks":{"type":"object","properties":{"bold":{"type":"boolean"},"italic":{"type":"boolean"},"underline":{"type":"boolean"},"strike":{"type":"boolean"},"font":{"type":"string"},"size":{"type":"number"},"color":{"type":"string"}}}}},{"type":"object","required":["type"],"properties":{"type":{"const":"break"}}},{"type":"object","required":["type","src","width","height"],"properties":{"type":{"const":"image"},"src":{"type":"string","description":"data: URL"},"width":{"type":"number"},"height":{"type":"number"}}},{"type":"object","required":["type","kind"],"properties":{"type":{"const":"field"},"kind":{"type":"string","enum":["page","pages","date"]}}}]},"InspectReport":{"type":"object","properties":{"format":{"type":"string"},"formatLabel":{"type":"string"},"title":{"type":"string"},"pages":{"type":"null","description":"Sayfa sayısı sunucuda hesaplanmaz."},"words":{"type":"integer"},"chars":{"type":"integer"},"paragraphs":{"type":"integer"},"tables":{"type":"integer"},"images":{"type":"integer"},"pageBreaks":{"type":"integer"},"page":{"type":"object"},"defaults":{"type":"object"},"signature":{"type":["object","null"],"properties":{"signers":{"type":"array","items":{"type":"object"}},"contentIntact":{"type":["boolean","null"]},"warnings":{"type":"array","items":{"type":"string"}}}},"udf":{"type":["object","null"],"properties":{"formatId":{"type":"string"},"webId":{"type":"string"},"verificationCode":{"type":"string"}}},"warnings":{"type":"array","items":{"type":"string"}},"textPreview":{"type":"string","description":"İlk 800 karakter."},"markdown":{"type":"string","description":"Belgenin Markdown karşılığı."}}},"ValidationReport":{"type":"object","properties":{"ok":{"type":"boolean"},"format":{"type":"string"},"checks":{"type":"array","items":{"type":"object","required":["id","ok","message"],"properties":{"id":{"type":"string"},"ok":{"type":"boolean"},"message":{"type":"string"}}}},"warnings":{"type":"array","items":{"type":"string"}}}},"TemplateSummary":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"category":{"type":"string"},"categoryLabel":{"type":"string"},"description":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"note":{"type":"string"},"placeholders":{"type":"array","items":{"type":"string"}}}},"TemplateDetail":{"allOf":[{"$ref":"#/components/schemas/TemplateSummary"},{"type":"object","properties":{"markdown":{"type":"string"},"margins":{"type":"object"}}}]}}}}