{
  "name": "exripe-theme-contract",
  "version": "1.1.0",
  "architecture": "php-ssr",
  "reference_theme": "themes/primex",
  "fallback_folder": "primex",
  "docs": {
    "human": "docs/theme.html",
    "agent": "docs/theme.md",
    "cursor_rule": ".cursor/rules/theme-development.mdc"
  },
  "engine": {
    "class": "Exripe\\Core\\ThemeManager",
    "path": "core/ThemeManager.php",
    "installer": "app/Services/ThemeInstaller.php",
    "model": "app/Models/Theme.php"
  },
  "injected_globals": [
    "themeFolder",
    "baseUrl",
    "themeAssetUrl",
    "temaCssUrl",
    "seoBrand",
    "homeMetaTitle",
    "homeMetaDescription",
    "defaultOgImage",
    "csrfField"
  ],
  "core_required_views": [
    "home",
    "category",
    "product-detail",
    "cart",
    "search",
    "checkout",
    "page",
    "auth/login",
    "auth/register"
  ],
  "cart": {
    "storage": "localStorage",
    "key": "exripe_cart",
    "coupon_key": "exripe_coupon_code",
    "update_event": "cart-update",
    "line_fields": [
      "productId",
      "variantId",
      "name",
      "slug",
      "color",
      "size",
      "price",
      "compare_at_price",
      "quantity",
      "image"
    ]
  },
  "section_types": [
    "slider",
    "text_slider",
    "banner",
    "banner_grid",
    "product_list",
    "marquee",
    "text_block",
    "image_text",
    "brand_images"
  ],
  "storefront_api": {
    "catalog": [
      { "method": "GET", "path": "/api/category/{slug}/products" },
      { "method": "GET", "path": "/api/product/realtime" },
      { "method": "GET", "path": "/api/product/{id}/first-variant" },
      { "method": "GET", "path": "/api/product/{id}/card-quick" },
      { "method": "GET", "path": "/api/variant/{id}" },
      { "method": "GET", "path": "/api/search" },
      { "method": "GET", "path": "/api/search/suggest" }
    ],
    "commerce": [
      { "method": "POST", "path": "/api/coupon/validate" },
      { "method": "POST", "path": "/api/gift-card/validate" },
      { "method": "POST", "path": "/api/campaigns/calculate" },
      { "method": "POST", "path": "/api/spin-wheel/apply-coupon" },
      { "method": "GET", "path": "/api/paytr-installments" }
    ],
    "customer": [
      { "method": "POST", "path": "/api/wishlist/toggle" },
      { "method": "POST", "path": "/api/review/submit" },
      { "method": "POST", "path": "/api/back-in-stock/subscribe" },
      { "method": "POST", "path": "/api/customer-login" },
      { "method": "POST", "path": "/api/customer-register" }
    ],
    "checkout": [
      { "method": "POST", "path": "/api/checkout-hold" },
      { "method": "POST", "path": "/api/checkout-hold/release" },
      { "method": "POST", "path": "/api/abandoned-cart" },
      { "method": "POST", "path": "/api/checkout-snapshot" },
      { "method": "POST", "path": "/odeme" }
    ],
    "marketing": [
      { "method": "GET", "path": "/api/spin-wheel/config" },
      { "method": "POST", "path": "/api/spin-wheel/spin" },
      { "method": "GET", "path": "/api/marketing-automation/rules" },
      { "method": "POST", "path": "/api/marketing-automation/event" },
      { "method": "POST", "path": "/api/meta/capi" },
      { "method": "GET", "path": "/api/visitor-heartbeat" }
    ],
    "out_of_scope": ["/api/store-*", "/api/admin/*", "/api/plugin-*"]
  },
  "admin_theme_upload": {
    "method": "POST",
    "path": "/admin/themes/upload",
    "field": "theme_zip",
    "csrf": "_csrf_token"
  },
  "i18n": {
    "helper": "lang()",
    "theme_locale_files": false
  }
}
