{
  "openapi": "3.1.1",
  "info": {
    "title": "LeaseRadar API | مرصد فرص وطلبات استئجار العقارات",
    "description": "### 🌟 منصة LeaseRadar لرصد وهيكلة فرص استئجار العقارات\n**المحرك الخلفي والواجهة البرمجية المؤسسية (Enterprise Clean Architecture + SQL Server REST API) لعرض وتحليل طلبات ومنافسات استئجار العقارات والمقرات بدقة حرفية (`100% Verbatim`).**\n\n---\n\n### 🚀 القيمة الهندسية والحلول المقدمة (Architecture & Value Proposition):\n* 🏢 **تغطية شاملة وتفاصيل فنية كاملة (`Full Verbatim Specifications`):**\n  استرجاع بيانات الطلبات مع الاشتراطات الفنية التفصيلية، المساحات، التصنيفات الجغرافية، ومواعيد الإغلاق المحدثة لحظياً.\n* 🔄 **مزامنة يومية ذكية مقاومة لانزلاق الترقيم (`High-Watermark + Drift-Safe Cursor`):**\n  تحديث تلقائي يومي الساعة `03:00 ص` بتوقيت الرياض مع إيقاف ذكي مبكر بالعلامة المائية واستكمال آمن عبر منتصف الليل.\n* 🌐 **دعم كامل لتعدد اللغات (`Bilingual AR / EN Responses`):**\n  تتكيف كافة رسائل النجاح والفشل والتحقق تلقائياً مع لغة المستخدم الممررة عبر ترويسة `Accept-Language: ar` أو `Accept-Language: en` (أو المعامل `?lang=en`).\n* 📦 **غلاف استجابة موحد (`Unified ApiResponse<T> & PaginatedList<T>`):**\n  عقد استجابة موحد بالكامل مع باقي أنظمة وتطبيقات المنظومة (`success`, `statusCode`, `message`, `data`, `meta`, `errors`) لربط فوري مع تطبيقات Flutter والويب.\n\n---\n\n### 🛠️ دليل المطورين السريع والربط (Developer Quickstart & Guide):\n1. **استخدام مباشر بدون توكن (`Zero-Token / Open Endpoints`):**\n   * جميع مسارات الـ API مفتوحة للاستخدام المباشر ولا تتطلب إرسال أي `Bearer Token` أو `API Key`.\n2. **اختيار لغة الاستجابة والأرقام القياسية (`Localization & 0123456789`):**\n   * أرسل الترويسة القياسية `Accept-Language: ar` للعربية (الافتراضي) أو `Accept-Language: en` للإنجليزية، أو بدّل اللغة من أعلى شاشة **Swagger**.\n   * جميع الأرقام والتواريخ والإحصاءات تُرجع دائماً بالأرقام الإنجليزية القياسية **`0123456789`**.\n3. **أبرز المسارات الأساسية:**\n   * **البحث والترقيم:** `GET /api/v1/lease-tenders`\n   * **تفاصيل طلب برقم محدد:** `GET /api/v1/lease-tenders/{tenderNumber}`\n   * **قوائم الفلاتر والإحصاءات:** `GET /api/v1/lease-tenders/lookups`\n   * **التغذية الكاملة للتكامل الخارجي:** `GET /api/v1/lease-tenders/feed`\n   * **حالة المزامنة والتشغيل الفوري وفحص الجاهزية:** `GET /api/v1/lease-tenders/sync/status` | `POST /api/v1/lease-tenders/sync/trigger` | `GET /api/v1/lease-tenders/health`",
    "version": "v1.0.0"
  },
  "servers": [
    {
      "url": "https://leaseradar.o-anywhere.com/"
    }
  ],
  "paths": {
    "/api/v1/lease-tenders": {
      "get": {
        "tags": [
          "LeaseTenders"
        ],
        "summary": "استعراض وبحث قائمة طلبات استئجار العقارات (Paginated — بدون توكن)",
        "description": "يعيد قائمة مقسمة إلى صفحات (`PaginatedList`) بجميع طلبات الاستئجار المطابقة لمعايير الفلترة المتقدمة، متضمنة التفاصيل الفنية الكاملة والمواعيد المحدثة بأرقام إنجليزية (`0123456789`).\n\n**ملاحظة هامة جداً لمطوري الواجهات (Frontend &amp; Mobile):**\n- هذا المسار وجميع مسارات النظام **لا تتطلب أي توكن مصادقة (`No Token Required`)**.\n- مرّر ترويسة `Accept-Language: ar` أو `Accept-Language: en` لاستلام رسائل الاستجابة والتحقق بلغة المستخدم.\n- يدعم هذا المسار ترويسة `ETag` / `If-None-Match` لإرجاع `304 Not Modified` وتوفير استهلاك البيانات.",
        "parameters": [
          {
            "name": "Search",
            "in": "query",
            "description": "نص البحث الشامل (يبحث في رقم الطلب، العنوان، الجهة الطالبة، الغرض، الاشتراطات، المنطقة، المدينة، والحي)\n(اختياري)",
            "schema": {
              "maxLength": 200,
              "type": "string"
            },
            "example": "مقر إداري"
          },
          {
            "name": "Entity",
            "in": "query",
            "description": "اسم الجهة الحكومية أو الطالبة للفلترة الدقيقة\n(اختياري)",
            "schema": {
              "maxLength": 450,
              "type": "string"
            },
            "example": "المديرية العامة للدفاع المدني"
          },
          {
            "name": "Region",
            "in": "query",
            "description": "اسم المنطقة الإدارية (مثل: منطقة الرياض، منطقة مكة المكرمة)\n(اختياري)",
            "schema": {
              "maxLength": 150,
              "type": "string"
            },
            "example": "منطقة الرياض"
          },
          {
            "name": "City",
            "in": "query",
            "description": "اسم المدينة أو المحافظة\n(اختياري)",
            "schema": {
              "maxLength": 150,
              "type": "string"
            },
            "example": "الرياض"
          },
          {
            "name": "Category",
            "in": "query",
            "description": "تصنيف نوع العقار المطلوب (مثل: مبنى، أرض، مواقف)\n(اختياري)",
            "schema": {
              "maxLength": 150,
              "type": "string"
            },
            "example": "مبنى"
          },
          {
            "name": "Stage",
            "in": "query",
            "description": "المرحلة الحالية للطلب الاستئجاري\n(اختياري)",
            "schema": {
              "maxLength": 200,
              "type": "string"
            },
            "example": "مرحلة تقديم العروض"
          },
          {
            "name": "MinAreaSqm",
            "in": "query",
            "description": "الحد الأدنى للمساحة المطلوبة بالمتر المربع (م²)\n(اختياري)",
            "schema": {
              "maximum": 10000000,
              "minimum": 0,
              "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
              "type": [
                "number",
                "string"
              ],
              "format": "double"
            },
            "example": 500
          },
          {
            "name": "MaxAreaSqm",
            "in": "query",
            "description": "الحد الأعلى للمساحة المطلوبة بالمتر المربع (م²)\n(اختياري)",
            "schema": {
              "maximum": 10000000,
              "minimum": 0,
              "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
              "type": [
                "number",
                "string"
              ],
              "format": "double"
            },
            "example": 5000
          },
          {
            "name": "ClosingWithinDays",
            "in": "query",
            "description": "فلترة الفرص التي ينتهي التقديم عليها خلال عدد محدد من الأيام القادمة (من 1 إلى 365 يوماً)\n(اختياري)",
            "schema": {
              "maximum": 365,
              "minimum": 1,
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            },
            "example": 7
          },
          {
            "name": "DetailsOnly",
            "in": "query",
            "description": "عرض الطلبات المكتملة التفاصيل والاشتراطات الفنية فقط عند التعيين إلى `true`\n(اختياري)",
            "schema": {
              "type": "boolean"
            },
            "example": true
          },
          {
            "name": "OpenOnly",
            "in": "query",
            "description": "عرض الفرص المتاحة لاستقبال العروض حالياً فقط واستبعاد المنتهية (`true` / `false`)\n(اختياري - الافتراضي: `false`)",
            "schema": {
              "type": "boolean"
            },
            "example": false
          },
          {
            "name": "ActiveOnly",
            "in": "query",
            "description": "عرض الطلبات النشطة فقط (`true` افتراضياً)",
            "schema": {
              "type": "boolean"
            },
            "example": true
          },
          {
            "name": "SortBy",
            "in": "query",
            "description": "طريقة ترتيب النتائج: `pageAsc` (الافتراضي)، `newest` (الأحدث نشراً)، `closingSoon` (الأقرب إغلاقاً)، `areaDesc` (الأكبر مساحة)",
            "schema": {
              "maxLength": 32,
              "type": "string"
            },
            "example": "pageAsc"
          },
          {
            "name": "PageNumber",
            "in": "query",
            "description": "رقم الصفحة المطلوبة (يبدأ من 1 - الافتراضي: 1)\n(مطلوب - غير قابل للقيمة الفارغة Null)",
            "schema": {
              "maximum": 100000,
              "minimum": 1,
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            },
            "example": 1
          },
          {
            "name": "Page",
            "in": "query",
            "description": "مرادف اختياري لرقم الصفحة للتوافق الخلفي (`page`)؛ إذا مُرّر يُستخدم بدلاً من القيمة الافتراضية لـ `PageNumber`.",
            "schema": {
              "maximum": 100000,
              "minimum": 1,
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            },
            "example": 1
          },
          {
            "name": "PageSize",
            "in": "query",
            "description": "عدد العناصر في الصفحة الواحدة (الافتراضي: 18، الحد الأقصى: 200)\n(مطلوب - غير قابل للقيمة الفارغة Null)",
            "schema": {
              "maximum": 200,
              "minimum": 1,
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            },
            "example": 18
          },
          {
            "name": "EffectivePageNumber",
            "in": "query",
            "description": "رقم الصفحة الفعلي بعد دمج `PageNumber` و`Page`.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "لغة رسائل الاستجابة المطلوبة: `ar` (العربية - الافتراضي) أو `en` (الإنجليزية).",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "تم استرجاع الطلبات بنجاح:\n```json\n{\n  \"success\": true,\n  \"statusCode\": 200,\n  \"message\": \"تم استرجاع قائمة طلبات استئجار العقارات بنجاح.\",\n  \"data\": {\n    \"items\": [],\n    \"pageNumber\": 1,\n    \"pageSize\": 18,\n    \"totalPages\": 53,\n    \"totalCount\": 942,\n    \"hasPreviousPage\": false,\n    \"hasNextPage\": true\n  },\n  \"meta\": {\n    \"language\": \"ar\",\n    \"databaseProvider\": \"SqlServer\",\n    \"timestampUtc\": \"2026-11-28T09:00:00Z\"\n  }\n}\n```",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseOfPaginatedListOfTenderJsonItemDto"
                }
              }
            }
          },
          "304": {
            "description": "البيانات لم تتغير منذ آخر طلب مطابق لترويسة `If-None-Match`",
            "content": {
              "application/json": { }
            }
          },
          "400": {
            "description": "خطأ في معاملات الاستعلام:\n```json\n{\n  \"success\": false,\n  \"statusCode\": 400,\n  \"message\": \"حجم الصفحة يجب أن يكون بين 1 و 200 عنصر.\",\n  \"data\": null\n}\n```",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseOfObject"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseOfObject"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/lease-tenders/{tenderNumber}": {
      "get": {
        "tags": [
          "LeaseTenders"
        ],
        "summary": "استعراض تفاصيل طلب استئجار عقار محدد برقمه (بدون توكن)",
        "description": "يجلب كافة بيانات الطلب والمواصفات الفنية والاشتراطات والعنوان الجغرافي والجدول الزمني بواسطة `tenderNumber`.",
        "parameters": [
          {
            "name": "tenderNumber",
            "in": "path",
            "description": "الرقم المرجعي لطلب الاستئجار (مثال: `11388`)",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "لغة رسائل الاستجابة المطلوبة: `ar` (العربية - الافتراضي) أو `en` (الإنجليزية).",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "تم العثور على الطلب وإرجاع تفاصيله بنجاح:\n```json\n{\n  \"success\": true,\n  \"statusCode\": 200,\n  \"message\": \"تم استرجاع تفاصيل طلب استئجار العقار بنجاح.\",\n  \"data\": {\n    \"tenderNumber\": \"11388\",\n    \"statusTab\": \"Active\"\n  }\n}\n```",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseOfTenderJsonItemDto"
                }
              }
            }
          },
          "304": {
            "description": "Not Modified",
            "content": {
              "application/json": { }
            }
          },
          "404": {
            "description": "الطلب غير موجود:\n```json\n{\n  \"success\": false,\n  \"statusCode\": 404,\n  \"message\": \"لم يتم العثور على طلب استئجار العقار رقم '999999'.\",\n  \"data\": null\n}\n```",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseOfObject"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/lease-tenders/feed": {
      "get": {
        "tags": [
          "LeaseTenders"
        ],
        "summary": "التغذية الكاملة لجميع طلبات الاستئجار النشطة (Full JSON Feed — بدون توكن)",
        "description": "مسار مفتوح للتكامل المباشر مع الأنظمة والتطبيقات الأخرى وتصدير كامل قاعدة البيانات في استجابة واحدة مضغوطة (`Brotli / Gzip`).",
        "parameters": [
          {
            "name": "activeOnly",
            "in": "query",
            "description": "إرجاع الطلبات النشطة فقط (`true` افتراضياً)",
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "download",
            "in": "query",
            "description": "تنزيل الاستجابة كملف JSON قابل للحفظ (`false` افتراضياً)",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "لغة رسائل الاستجابة المطلوبة: `ar` (العربية - الافتراضي) أو `en` (الإنجليزية).",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "تم استرجاع التغذية الكاملة بنجاح",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseOfListOfTenderJsonItemDto"
                }
              }
            }
          },
          "304": {
            "description": "التغذية لم تتغير منذ آخر طلب",
            "content": {
              "application/json": { }
            }
          },
          "429": {
            "description": "تجاوز الحد المسموح لطلبات التغذية الكاملة",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseOfObject"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/lease-tenders/lookups": {
      "get": {
        "tags": [
          "LeaseTenders"
        ],
        "summary": "جلب قوائم الفلاتر المرجعية ومؤشرات الإحصاء (Lookups &amp; Facet Stats — بدون توكن)",
        "description": "يعيد القوائم المرجعية للجهات الطالبة، المناطق، المدن، أنواع العقارات، والمراحل الحالية مع الإحصاءات الفورية لتغذية القوائم المنسدلة ولوحات المؤشرات.",
        "parameters": [
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "لغة رسائل الاستجابة المطلوبة: `ar` (العربية - الافتراضي) أو `en` (الإنجليزية).",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "تم استرجاع القوائم المرجعية بنجاح",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseOfTenderLookupsResponse"
                }
              }
            }
          },
          "304": {
            "description": "Not Modified",
            "content": {
              "application/json": { }
            }
          }
        }
      }
    },
    "/api/v1/lease-tenders/sync/status": {
      "get": {
        "tags": [
          "LeaseTenders"
        ],
        "summary": "الاستعلام عن حالة المزامنة الخلفية وسجل العمليات (بدون توكن)",
        "description": "يعرض التقدم اللحظي (`liveProgress`) وإعدادات الجدولة اليومية (`03:00` بتوقيت الرياض) وآخر `10` عمليات مزامنة.",
        "parameters": [
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "لغة رسائل الاستجابة المطلوبة: `ar` (العربية - الافتراضي) أو `en` (الإنجليزية).",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "تم استرجاع حالة المزامنة بنجاح",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseOfObject"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/lease-tenders/health": {
      "get": {
        "tags": [
          "LeaseTenders"
        ],
        "summary": "فحص الجاهزية والصحة التشغيلية للخدمة وقاعدة البيانات (Health Check — بدون توكن)",
        "parameters": [
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "لغة رسائل الاستجابة المطلوبة: `ar` (العربية - الافتراضي) أو `en` (الإنجليزية).",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "الخدمة تعمل بكفاءة",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseOfHealthCheckResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/lease-tenders/sync/trigger": {
      "post": {
        "tags": [
          "LeaseTenders"
        ],
        "summary": "بدء مزامنة أو استكمال يدوي في الخلفية (بدون توكن)",
        "description": "يبدأ عملية فحص التحديثات الجديدة أو استكمال نقطة التوقف في الخلفية دون حجب الطلب (`202 Accepted`) وبدون الحاجة إلى أي توكن.\nيمنع تلقائياً تشغيل عمليتَي مزامنة متداخلتين في الوقت نفسه (`409 Conflict`).",
        "parameters": [
          {
            "name": "forceRescrapeList",
            "in": "query",
            "description": "فرض إعادة فحص جميع الصفحات من البداية بدلاً من التوقف بالعلامة المائية (`false` افتراضياً)",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "لغة رسائل الاستجابة المطلوبة: `ar` (العربية - الافتراضي) أو `en` (الإنجليزية).",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "تم قبول طلب المزامنة:\n```json\n{\n  \"success\": true,\n  \"statusCode\": 202,\n  \"message\": \"تم قبول طلب المزامنة وبدأت المعالجة في الخلفية من آخر نقطة توقف.\",\n  \"data\": {\n    \"triggerSource\": \"ApiV1ManualTrigger\",\n    \"forceRescrapeList\": false,\n    \"acceptedAtUtc\": \"2026-11-28T09:00:00Z\"\n  }\n}\n```",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseOfTriggerSyncResponse"
                }
              }
            }
          },
          "409": {
            "description": "توجد عملية مزامنة نشطة قيد التشغيل حالياً",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseOfObject"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/lease-tenders/admin/import-snapshot": {
      "post": {
        "tags": [
          "LeaseTenders"
        ],
        "summary": "استيراد مباشر للقطة بيانات الطلبات إلى قاعدة البيانات (بدون توكن)",
        "description": "يُستخدم لرفع أو دمج مصفوفة طلبات استئجار دفعة واحدة في قاعدة البيانات ضمن معاملة ذرية (`Atomic Transaction`) وبدون الحاجة إلى توكن.",
        "parameters": [
          {
            "name": "Accept-Language",
            "in": "header",
            "description": "لغة رسائل الاستجابة المطلوبة: `ar` (العربية - الافتراضي) أو `en` (الإنجليزية).",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "CancellationToken",
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/LeaseTender"
                    }
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/LeaseTender"
                    }
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/LeaseTender"
                    }
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "تم استيراد وتحديث السجلات بنجاح",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseOfImportSnapshotResponse"
                }
              }
            }
          },
          "422": {
            "description": "قائمة البيانات المرسلة فارغة",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseOfObject"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ApiResponseOfHealthCheckResponse": {
        "type": "object",
        "properties": {
          "success": {
            "examples": [
              true
            ],
            "type": "boolean",
            "description": "حالة نجاح العملية (`true` عند النجاح، و`false` عند الفشل)\n(مطلوب - غير قابل للقيمة الفارغة Null)"
          },
          "statusCode": {
            "examples": [
              200
            ],
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "رمز حالة HTTP الفعلي للاستجابة (مثل 200، 202، 400، 401، 404، 409، 422، 429، 500، 503)\n(مطلوب - غير قابل للقيمة الفارغة Null)",
            "format": "int32"
          },
          "message": {
            "examples": [
              "تم استرجاع طلبات استئجار العقارات بنجاح."
            ],
            "description": "رسالة وصفية مترجمة حسب لغة المستخدم الممررة في الطلب (`ar` أو `en`)\n(مطلوب - نص أو مصفوفة نصوص، غير قابل للقيمة الفارغة Null)"
          },
          "data": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "description": "البيانات الفعلية المسترجعة من الـ API (تكون `null` في حالة الفشل)",
                "$ref": "#/components/schemas/HealthCheckResponse"
              }
            ]
          },
          "meta": {
            "description": "بيانات وصفية إضافية للاستجابة (مثل معلومات التقسيم Pagination، لغة الرد، أو مزود قاعدة البيانات)"
          },
          "errors": {
            "type": [
              "null",
              "object"
            ],
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "تفاصيل أخطاء التحقق من الحقول (تظهر فقط عند فشل التحقق 400 / 422)"
          }
        },
        "description": "الغلاف الموحد لجميع استجابات الـ API في حالتي النجاح والفشل (متوافق مع المعيار الموحد للمشاريع)."
      },
      "ApiResponseOfImportSnapshotResponse": {
        "type": "object",
        "properties": {
          "success": {
            "examples": [
              true
            ],
            "type": "boolean",
            "description": "حالة نجاح العملية (`true` عند النجاح، و`false` عند الفشل)\n(مطلوب - غير قابل للقيمة الفارغة Null)"
          },
          "statusCode": {
            "examples": [
              200
            ],
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "رمز حالة HTTP الفعلي للاستجابة (مثل 200، 202، 400، 401، 404، 409، 422، 429، 500، 503)\n(مطلوب - غير قابل للقيمة الفارغة Null)",
            "format": "int32"
          },
          "message": {
            "examples": [
              "تم استرجاع طلبات استئجار العقارات بنجاح."
            ],
            "description": "رسالة وصفية مترجمة حسب لغة المستخدم الممررة في الطلب (`ar` أو `en`)\n(مطلوب - نص أو مصفوفة نصوص، غير قابل للقيمة الفارغة Null)"
          },
          "data": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "description": "البيانات الفعلية المسترجعة من الـ API (تكون `null` في حالة الفشل)",
                "$ref": "#/components/schemas/ImportSnapshotResponse"
              }
            ]
          },
          "meta": {
            "description": "بيانات وصفية إضافية للاستجابة (مثل معلومات التقسيم Pagination، لغة الرد، أو مزود قاعدة البيانات)"
          },
          "errors": {
            "type": [
              "null",
              "object"
            ],
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "تفاصيل أخطاء التحقق من الحقول (تظهر فقط عند فشل التحقق 400 / 422)"
          }
        },
        "description": "الغلاف الموحد لجميع استجابات الـ API في حالتي النجاح والفشل (متوافق مع المعيار الموحد للمشاريع)."
      },
      "ApiResponseOfListOfTenderJsonItemDto": {
        "type": "object",
        "properties": {
          "success": {
            "examples": [
              true
            ],
            "type": "boolean",
            "description": "حالة نجاح العملية (`true` عند النجاح، و`false` عند الفشل)\n(مطلوب - غير قابل للقيمة الفارغة Null)"
          },
          "statusCode": {
            "examples": [
              200
            ],
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "رمز حالة HTTP الفعلي للاستجابة (مثل 200، 202، 400، 401، 404، 409، 422، 429، 500، 503)\n(مطلوب - غير قابل للقيمة الفارغة Null)",
            "format": "int32"
          },
          "message": {
            "examples": [
              "تم استرجاع طلبات استئجار العقارات بنجاح."
            ],
            "description": "رسالة وصفية مترجمة حسب لغة المستخدم الممررة في الطلب (`ar` أو `en`)\n(مطلوب - نص أو مصفوفة نصوص، غير قابل للقيمة الفارغة Null)"
          },
          "data": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/TenderJsonItemDto"
            },
            "description": "البيانات الفعلية المسترجعة من الـ API (تكون `null` في حالة الفشل)"
          },
          "meta": {
            "description": "بيانات وصفية إضافية للاستجابة (مثل معلومات التقسيم Pagination، لغة الرد، أو مزود قاعدة البيانات)"
          },
          "errors": {
            "type": [
              "null",
              "object"
            ],
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "تفاصيل أخطاء التحقق من الحقول (تظهر فقط عند فشل التحقق 400 / 422)"
          }
        },
        "description": "الغلاف الموحد لجميع استجابات الـ API في حالتي النجاح والفشل (متوافق مع المعيار الموحد للمشاريع)."
      },
      "ApiResponseOfObject": {
        "type": "object",
        "properties": {
          "success": {
            "examples": [
              true
            ],
            "type": "boolean",
            "description": "حالة نجاح العملية (`true` عند النجاح، و`false` عند الفشل)\n(مطلوب - غير قابل للقيمة الفارغة Null)"
          },
          "statusCode": {
            "examples": [
              200
            ],
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "رمز حالة HTTP الفعلي للاستجابة (مثل 200، 202، 400، 401، 404، 409، 422، 429، 500، 503)\n(مطلوب - غير قابل للقيمة الفارغة Null)",
            "format": "int32"
          },
          "message": {
            "examples": [
              "تم استرجاع طلبات استئجار العقارات بنجاح."
            ],
            "description": "رسالة وصفية مترجمة حسب لغة المستخدم الممررة في الطلب (`ar` أو `en`)\n(مطلوب - نص أو مصفوفة نصوص، غير قابل للقيمة الفارغة Null)"
          },
          "data": {
            "description": "البيانات الفعلية المسترجعة من الـ API (تكون `null` في حالة الفشل)"
          },
          "meta": {
            "description": "بيانات وصفية إضافية للاستجابة (مثل معلومات التقسيم Pagination، لغة الرد، أو مزود قاعدة البيانات)"
          },
          "errors": {
            "type": [
              "null",
              "object"
            ],
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "تفاصيل أخطاء التحقق من الحقول (تظهر فقط عند فشل التحقق 400 / 422)"
          }
        },
        "description": "الغلاف الموحد لجميع استجابات الـ API في حالتي النجاح والفشل (متوافق مع المعيار الموحد للمشاريع)."
      },
      "ApiResponseOfPaginatedListOfTenderJsonItemDto": {
        "type": "object",
        "properties": {
          "success": {
            "examples": [
              true
            ],
            "type": "boolean",
            "description": "حالة نجاح العملية (`true` عند النجاح، و`false` عند الفشل)\n(مطلوب - غير قابل للقيمة الفارغة Null)"
          },
          "statusCode": {
            "examples": [
              200
            ],
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "رمز حالة HTTP الفعلي للاستجابة (مثل 200، 202، 400، 401، 404، 409، 422، 429، 500، 503)\n(مطلوب - غير قابل للقيمة الفارغة Null)",
            "format": "int32"
          },
          "message": {
            "examples": [
              "تم استرجاع طلبات استئجار العقارات بنجاح."
            ],
            "description": "رسالة وصفية مترجمة حسب لغة المستخدم الممررة في الطلب (`ar` أو `en`)\n(مطلوب - نص أو مصفوفة نصوص، غير قابل للقيمة الفارغة Null)"
          },
          "data": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "description": "البيانات الفعلية المسترجعة من الـ API (تكون `null` في حالة الفشل)",
                "$ref": "#/components/schemas/PaginatedListOfTenderJsonItemDto"
              }
            ]
          },
          "meta": {
            "description": "بيانات وصفية إضافية للاستجابة (مثل معلومات التقسيم Pagination، لغة الرد، أو مزود قاعدة البيانات)"
          },
          "errors": {
            "type": [
              "null",
              "object"
            ],
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "تفاصيل أخطاء التحقق من الحقول (تظهر فقط عند فشل التحقق 400 / 422)"
          }
        },
        "description": "الغلاف الموحد لجميع استجابات الـ API في حالتي النجاح والفشل (متوافق مع المعيار الموحد للمشاريع)."
      },
      "ApiResponseOfTenderJsonItemDto": {
        "type": "object",
        "properties": {
          "success": {
            "examples": [
              true
            ],
            "type": "boolean",
            "description": "حالة نجاح العملية (`true` عند النجاح، و`false` عند الفشل)\n(مطلوب - غير قابل للقيمة الفارغة Null)"
          },
          "statusCode": {
            "examples": [
              200
            ],
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "رمز حالة HTTP الفعلي للاستجابة (مثل 200، 202، 400، 401، 404، 409، 422، 429، 500، 503)\n(مطلوب - غير قابل للقيمة الفارغة Null)",
            "format": "int32"
          },
          "message": {
            "examples": [
              "تم استرجاع طلبات استئجار العقارات بنجاح."
            ],
            "description": "رسالة وصفية مترجمة حسب لغة المستخدم الممررة في الطلب (`ar` أو `en`)\n(مطلوب - نص أو مصفوفة نصوص، غير قابل للقيمة الفارغة Null)"
          },
          "data": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "description": "البيانات الفعلية المسترجعة من الـ API (تكون `null` في حالة الفشل)",
                "$ref": "#/components/schemas/TenderJsonItemDto"
              }
            ]
          },
          "meta": {
            "description": "بيانات وصفية إضافية للاستجابة (مثل معلومات التقسيم Pagination، لغة الرد، أو مزود قاعدة البيانات)"
          },
          "errors": {
            "type": [
              "null",
              "object"
            ],
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "تفاصيل أخطاء التحقق من الحقول (تظهر فقط عند فشل التحقق 400 / 422)"
          }
        },
        "description": "الغلاف الموحد لجميع استجابات الـ API في حالتي النجاح والفشل (متوافق مع المعيار الموحد للمشاريع)."
      },
      "ApiResponseOfTenderLookupsResponse": {
        "type": "object",
        "properties": {
          "success": {
            "examples": [
              true
            ],
            "type": "boolean",
            "description": "حالة نجاح العملية (`true` عند النجاح، و`false` عند الفشل)\n(مطلوب - غير قابل للقيمة الفارغة Null)"
          },
          "statusCode": {
            "examples": [
              200
            ],
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "رمز حالة HTTP الفعلي للاستجابة (مثل 200، 202، 400، 401، 404، 409، 422، 429، 500، 503)\n(مطلوب - غير قابل للقيمة الفارغة Null)",
            "format": "int32"
          },
          "message": {
            "examples": [
              "تم استرجاع طلبات استئجار العقارات بنجاح."
            ],
            "description": "رسالة وصفية مترجمة حسب لغة المستخدم الممررة في الطلب (`ar` أو `en`)\n(مطلوب - نص أو مصفوفة نصوص، غير قابل للقيمة الفارغة Null)"
          },
          "data": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "description": "البيانات الفعلية المسترجعة من الـ API (تكون `null` في حالة الفشل)",
                "$ref": "#/components/schemas/TenderLookupsResponse"
              }
            ]
          },
          "meta": {
            "description": "بيانات وصفية إضافية للاستجابة (مثل معلومات التقسيم Pagination، لغة الرد، أو مزود قاعدة البيانات)"
          },
          "errors": {
            "type": [
              "null",
              "object"
            ],
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "تفاصيل أخطاء التحقق من الحقول (تظهر فقط عند فشل التحقق 400 / 422)"
          }
        },
        "description": "الغلاف الموحد لجميع استجابات الـ API في حالتي النجاح والفشل (متوافق مع المعيار الموحد للمشاريع)."
      },
      "ApiResponseOfTriggerSyncResponse": {
        "type": "object",
        "properties": {
          "success": {
            "examples": [
              true
            ],
            "type": "boolean",
            "description": "حالة نجاح العملية (`true` عند النجاح، و`false` عند الفشل)\n(مطلوب - غير قابل للقيمة الفارغة Null)"
          },
          "statusCode": {
            "examples": [
              200
            ],
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "رمز حالة HTTP الفعلي للاستجابة (مثل 200، 202، 400، 401، 404، 409، 422، 429، 500، 503)\n(مطلوب - غير قابل للقيمة الفارغة Null)",
            "format": "int32"
          },
          "message": {
            "examples": [
              "تم استرجاع طلبات استئجار العقارات بنجاح."
            ],
            "description": "رسالة وصفية مترجمة حسب لغة المستخدم الممررة في الطلب (`ar` أو `en`)\n(مطلوب - نص أو مصفوفة نصوص، غير قابل للقيمة الفارغة Null)"
          },
          "data": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "description": "البيانات الفعلية المسترجعة من الـ API (تكون `null` في حالة الفشل)",
                "$ref": "#/components/schemas/TriggerSyncResponse"
              }
            ]
          },
          "meta": {
            "description": "بيانات وصفية إضافية للاستجابة (مثل معلومات التقسيم Pagination، لغة الرد، أو مزود قاعدة البيانات)"
          },
          "errors": {
            "type": [
              "null",
              "object"
            ],
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "تفاصيل أخطاء التحقق من الحقول (تظهر فقط عند فشل التحقق 400 / 422)"
          }
        },
        "description": "الغلاف الموحد لجميع استجابات الـ API في حالتي النجاح والفشل (متوافق مع المعيار الموحد للمشاريع)."
      },
      "HealthCheckResponse": {
        "type": "object",
        "properties": {
          "status": {
            "examples": [
              "Healthy"
            ],
            "type": "string",
            "description": "الحالة التشغيلية للخدمة (`Healthy`)"
          },
          "service": {
            "examples": [
              "LeaseRadar API v1"
            ],
            "type": "string",
            "description": "اسم الخدمة وإصدارها"
          },
          "databaseProvider": {
            "examples": [
              "SqlServer"
            ],
            "type": "string",
            "description": "محرك قاعدة البيانات النشط حالياً (`SqlServer` أو `Sqlite`)"
          },
          "totalActiveTenders": {
            "examples": [
              942
            ],
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "إجمالي الطلبات النشطة المحفوظة",
            "format": "int32"
          },
          "detailsFetchedCount": {
            "examples": [
              942
            ],
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "عدد الطلبات مكتملة التفاصيل",
            "format": "int32"
          },
          "openForSubmissionCount": {
            "examples": [
              190
            ],
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "عدد الطلبات المتاحة للتقديم حالياً",
            "format": "int32"
          },
          "syncRunning": {
            "examples": [
              false
            ],
            "type": "boolean",
            "description": "هل توجد عملية مزامنة خلفية قيد التنفيذ الآن؟"
          },
          "timestampUtc": {
            "type": "string",
            "description": "التوقيت الحالي بالـ UTC",
            "format": "date-time"
          }
        },
        "description": "يمثل استجابة فحص الجاهزية والصحة التشغيلية للنظام وقاعدة البيانات."
      },
      "ImportSnapshotResponse": {
        "type": "object",
        "properties": {
          "importedOrUpdatedCount": {
            "examples": [
              942
            ],
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "عدد السجلات التي تم استيرادها أو تحديثها بنجاح\n(مطلوب - غير قابل للقيمة الفارغة Null)",
            "format": "int32"
          }
        },
        "description": "يمثل نتيجة استيراد لقطة بيانات الطلبات إلى قاعدة البيانات."
      },
      "LeaseTender": {
        "required": [
          "tenderNumber",
          "titleVerbatim",
          "agencyAndCodeVerbatim",
          "governmentEntityVerbatim",
          "publishDateVerbatim",
          "inquiryDeadlineVerbatim",
          "submissionStartVerbatim",
          "submissionEndVerbatim",
          "propertyCategoryVerbatim",
          "rawCardTextVerbatim",
          "contentSha256"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "tenderNumber": {
            "type": "string"
          },
          "portalTab": {
            "type": "string"
          },
          "titleVerbatim": {
            "type": "string"
          },
          "agencyAndCodeVerbatim": {
            "type": "string"
          },
          "governmentEntityVerbatim": {
            "type": "string"
          },
          "publishDateVerbatim": {
            "type": "string"
          },
          "inquiryDeadlineVerbatim": {
            "type": "string"
          },
          "submissionStartVerbatim": {
            "type": "string"
          },
          "submissionEndVerbatim": {
            "type": "string"
          },
          "propertyCategoryVerbatim": {
            "type": "string"
          },
          "remainingDaysSnapshot": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "remainingHoursSnapshot": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "remainingMinutesSnapshot": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "rawCardTextVerbatim": {
            "type": "string"
          },
          "sourceUrl": {
            "type": "string"
          },
          "sourcePageNumber": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "contentSha256": {
            "type": "string"
          },
          "isDetailsFetched": {
            "type": "boolean"
          },
          "detailsFetchedAtUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "detailPageUrl": {
            "type": [
              "null",
              "string"
            ]
          },
          "currentStageVerbatim": {
            "type": [
              "null",
              "string"
            ]
          },
          "tenderStatusVerbatim": {
            "type": [
              "null",
              "string"
            ]
          },
          "detailInquiryDeadlineVerbatim": {
            "type": [
              "null",
              "string"
            ]
          },
          "headquartersClassificationVerbatim": {
            "type": [
              "null",
              "string"
            ]
          },
          "subHeadquartersClassificationVerbatim": {
            "type": [
              "null",
              "string"
            ]
          },
          "areaTypeVerbatim": {
            "type": [
              "null",
              "string"
            ]
          },
          "areaValueVerbatim": {
            "type": [
              "null",
              "string"
            ]
          },
          "leasePurposeVerbatim": {
            "type": [
              "null",
              "string"
            ]
          },
          "purposeDescriptionVerbatim": {
            "type": [
              "null",
              "string"
            ]
          },
          "propertyDescriptionVerbatim": {
            "type": [
              "null",
              "string"
            ]
          },
          "requiredSpecificationsVerbatim": {
            "type": [
              "null",
              "string"
            ]
          },
          "detailAddressRegionVerbatim": {
            "type": [
              "null",
              "string"
            ]
          },
          "detailAddressCityVerbatim": {
            "type": [
              "null",
              "string"
            ]
          },
          "detailAddressDistrictVerbatim": {
            "type": [
              "null",
              "string"
            ]
          },
          "extraDetailFieldsJson": {
            "type": [
              "null",
              "string"
            ]
          },
          "publishedAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "inquiryDeadlineAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "submissionStartsAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "submissionEndsAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "region": {
            "type": [
              "null",
              "string"
            ]
          },
          "cityOrGovernorate": {
            "type": [
              "null",
              "string"
            ]
          },
          "districtOrCenter": {
            "type": [
              "null",
              "string"
            ]
          },
          "beneficiaryFacility": {
            "type": [
              "null",
              "string"
            ]
          },
          "maxBuildingAreaSqm": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "facilitiesAreaSqm": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "landAreaSqm": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "geminiModelUsed": {
            "type": [
              "null",
              "string"
            ]
          },
          "isGeminiEnriched": {
            "type": "boolean"
          },
          "hallucinationsBlockedCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "firstSeenAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "lastSyncedAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "isActiveOnPortal": {
            "type": "boolean"
          }
        }
      },
      "PaginatedListOfTenderJsonItemDto": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TenderJsonItemDto"
            },
            "description": "قائمة العناصر في الصفحة الحالية\n(مطلوب - لا يكون Null، قد يكون مصفوفة فارغة)"
          },
          "pageNumber": {
            "examples": [
              1
            ],
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "رقم الصفحة الحالية (يبدأ من 1)\n(مطلوب - غير قابل للقيمة الفارغة Null)",
            "format": "int32"
          },
          "pageSize": {
            "examples": [
              18
            ],
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "عدد العناصر المطلوبة في الصفحة الواحدة\n(مطلوب - غير قابل للقيمة الفارغة Null)",
            "format": "int32"
          },
          "totalPages": {
            "examples": [
              53
            ],
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "إجمالي عدد الصفحات المتاحة\n(مطلوب - غير قابل للقيمة الفارغة Null)",
            "format": "int32"
          },
          "totalCount": {
            "examples": [
              942
            ],
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "إجمالي عدد العناصر المطابقة للبحث في قاعدة البيانات\n(مطلوب - غير قابل للقيمة الفارغة Null)",
            "format": "int32"
          },
          "hasPreviousPage": {
            "examples": [
              false
            ],
            "type": "boolean",
            "description": "هل توجد صفحة سابقة؟"
          },
          "hasNextPage": {
            "examples": [
              true
            ],
            "type": "boolean",
            "description": "هل توجد صفحة تالية؟"
          }
        },
        "description": "نموذج القوائم المقسمة إلى صفحات (Paginated List) المتوافق مع المعيار الموحد للمشاريع."
      },
      "ParsedScheduleDto": {
        "required": [
          "publishedAt",
          "inquiryDeadlineAt",
          "submissionStartsAt",
          "submissionEndsAt"
        ],
        "type": "object",
        "properties": {
          "publishedAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "inquiryDeadlineAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "submissionStartsAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "submissionEndsAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "isSubmissionOpen": {
            "type": [
              "null",
              "boolean"
            ]
          }
        }
      },
      "TenderDetailAddressDto": {
        "required": [
          "region",
          "cityOrGovernorate",
          "district"
        ],
        "type": "object",
        "properties": {
          "region": {
            "type": [
              "null",
              "string"
            ]
          },
          "cityOrGovernorate": {
            "type": [
              "null",
              "string"
            ]
          },
          "district": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "TenderDetailsDto": {
        "required": [
          "isFetched",
          "fetchedAtUtc",
          "currentStage",
          "tenderStatus",
          "inquiryDeadline",
          "headquartersClassification",
          "subHeadquartersClassification",
          "areaType",
          "areaValue",
          "leasePurpose",
          "purposeDescription",
          "propertyDescription",
          "requiredSpecifications",
          "requiredSpecificationsItems",
          "address",
          "additionalFields"
        ],
        "type": "object",
        "properties": {
          "isFetched": {
            "type": "boolean"
          },
          "fetchedAtUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "currentStage": {
            "type": [
              "null",
              "string"
            ]
          },
          "tenderStatus": {
            "type": [
              "null",
              "string"
            ]
          },
          "inquiryDeadline": {
            "type": [
              "null",
              "string"
            ]
          },
          "headquartersClassification": {
            "type": [
              "null",
              "string"
            ]
          },
          "subHeadquartersClassification": {
            "type": [
              "null",
              "string"
            ]
          },
          "areaType": {
            "type": [
              "null",
              "string"
            ]
          },
          "areaValue": {
            "type": [
              "null",
              "string"
            ]
          },
          "leasePurpose": {
            "type": [
              "null",
              "string"
            ]
          },
          "purposeDescription": {
            "type": [
              "null",
              "string"
            ]
          },
          "propertyDescription": {
            "type": [
              "null",
              "string"
            ]
          },
          "requiredSpecifications": {
            "type": [
              "null",
              "string"
            ]
          },
          "requiredSpecificationsItems": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "address": {
            "$ref": "#/components/schemas/TenderDetailAddressDto"
          },
          "additionalFields": {
            "type": [
              "null",
              "object"
            ],
            "additionalProperties": {
              "type": "string"
            }
          }
        }
      },
      "TenderJsonItemDto": {
        "required": [
          "tenderNumber",
          "statusTab",
          "summary",
          "details",
          "schedule",
          "metadata",
          "contentSha256",
          "pageNumber",
          "lastSyncedAtUtc"
        ],
        "type": "object",
        "properties": {
          "tenderNumber": {
            "type": "string"
          },
          "statusTab": {
            "type": "string"
          },
          "summary": {
            "$ref": "#/components/schemas/VerbatimTenderDataDto"
          },
          "details": {
            "$ref": "#/components/schemas/TenderDetailsDto"
          },
          "schedule": {
            "$ref": "#/components/schemas/ParsedScheduleDto"
          },
          "metadata": {
            "$ref": "#/components/schemas/VerifiedExtractedMetadataDto"
          },
          "contentSha256": {
            "type": "string"
          },
          "pageNumber": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "lastSyncedAtUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "description": "Clean, white-labeled JSON contract for external websites and mobile apps.\nContains zero external source URLs or external platform references, with all digits normalized to 0123456789."
      },
      "TenderLookupsResponse": {
        "type": "object",
        "properties": {
          "totalActiveTenders": {
            "examples": [
              942
            ],
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "إجمالي عدد طلبات الاستئجار النشطة\n(مطلوب - غير قابل للقيمة الفارغة Null)",
            "format": "int32"
          },
          "detailsFetchedCount": {
            "examples": [
              942
            ],
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "عدد الطلبات المكتملة التفاصيل والاشتراطات الفنية\n(مطلوب - غير قابل للقيمة الفارغة Null)",
            "format": "int32"
          },
          "detailsPendingCount": {
            "examples": [
              0
            ],
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "عدد الطلبات المتبقية بانتظار استكمال التفاصيل\n(مطلوب - غير قابل للقيمة الفارغة Null)",
            "format": "int32"
          },
          "enrichedCount": {
            "examples": [
              942
            ],
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "عدد الطلبات المصنفة جغرافياً ومساحياً\n(مطلوب - غير قابل للقيمة الفارغة Null)",
            "format": "int32"
          },
          "openForSubmissionCount": {
            "examples": [
              190
            ],
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "عدد الفرص المفتوحة لاستقبال العروض حالياً\n(مطلوب - غير قابل للقيمة الفارغة Null)",
            "format": "int32"
          },
          "closingSoonCount": {
            "examples": [
              141
            ],
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "عدد الفرص التي تغلق خلال 7 أيام\n(مطلوب - غير قابل للقيمة الفارغة Null)",
            "format": "int32"
          },
          "lastSuccessfulSyncUtc": {
            "type": [
              "null",
              "string"
            ],
            "description": "توقيت آخر مزامنة ناجحة بصيغة UTC",
            "format": "date-time"
          },
          "governmentEntities": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "قائمة الجهات الطالبة المسجلة\n(مطلوب - غير قابل للقيمة الفارغة Null)"
          },
          "regions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "قائمة المناطق الإدارية\n(مطلوب - غير قابل للقيمة الفارغة Null)"
          },
          "cities": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "قائمة المدن والمحافظات\n(مطلوب - غير قابل للقيمة الفارغة Null)"
          },
          "propertyCategories": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "قائمة أنواع العقارات (مبنى، أرض، مواقف...)\n(مطلوب - غير قابل للقيمة الفارغة Null)"
          },
          "currentStages": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "قائمة المراحل الحالية للطلبات\n(مطلوب - غير قابل للقيمة الفارغة Null)"
          }
        },
        "description": "يمثل الاستجابة التي تحتوي على قوائم الفلاتر المرجعية ومؤشرات الإحصاء الشاملة."
      },
      "TriggerSyncResponse": {
        "type": "object",
        "properties": {
          "triggerSource": {
            "examples": [
              "ApiV1ManualTrigger"
            ],
            "type": "string",
            "description": "مصدر التشغيل"
          },
          "forceRescrapeList": {
            "examples": [
              false
            ],
            "type": "boolean",
            "description": "هل تم فرض إعادة فحص القائمة الكاملة؟"
          },
          "acceptedAtUtc": {
            "type": "string",
            "description": "توقيت قبول طلب المزامنة (UTC)",
            "format": "date-time"
          }
        },
        "description": "يمثل استجابة بدء المزامنة الخلفية الفورية."
      },
      "VerbatimTenderDataDto": {
        "required": [
          "title",
          "agencyAndCode",
          "governmentEntity",
          "publishDate",
          "inquiryDeadline",
          "submissionStart",
          "submissionEnd",
          "propertyCategory",
          "remainingDaysSnapshot",
          "remainingHoursSnapshot",
          "remainingMinutesSnapshot"
        ],
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "agencyAndCode": {
            "type": "string"
          },
          "governmentEntity": {
            "type": "string"
          },
          "publishDate": {
            "type": "string"
          },
          "inquiryDeadline": {
            "type": "string"
          },
          "submissionStart": {
            "type": "string"
          },
          "submissionEnd": {
            "type": "string"
          },
          "propertyCategory": {
            "type": "string"
          },
          "remainingDaysSnapshot": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "remainingHoursSnapshot": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "remainingMinutesSnapshot": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "VerifiedExtractedMetadataDto": {
        "required": [
          "region",
          "cityOrGovernorate",
          "districtOrCenter",
          "beneficiaryFacility",
          "maxBuildingAreaSqm",
          "facilitiesAreaSqm",
          "landAreaSqm",
          "isGeminiEnriched",
          "extractionEngine"
        ],
        "type": "object",
        "properties": {
          "region": {
            "type": [
              "null",
              "string"
            ]
          },
          "cityOrGovernorate": {
            "type": [
              "null",
              "string"
            ]
          },
          "districtOrCenter": {
            "type": [
              "null",
              "string"
            ]
          },
          "beneficiaryFacility": {
            "type": [
              "null",
              "string"
            ]
          },
          "maxBuildingAreaSqm": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "facilitiesAreaSqm": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "landAreaSqm": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "isGeminiEnriched": {
            "type": "boolean"
          },
          "extractionEngine": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      }
    }
  },
  "tags": [
    {
      "name": "LeaseTenders"
    }
  ]
}