{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/synchronity-app/json-schema/synchronity-app-ampscapability-manifest-schema.json",
  "title": "AMPSCapabilityManifest",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/synchronity-app-openapi.yml#/components/schemas/AMPSCapabilityManifest",
  "type": "object",
  "required": [
    "site_id",
    "platform",
    "platform_version",
    "agentmesh_version",
    "capabilities",
    "api_base_url",
    "supported_currencies",
    "shipping_zones"
  ],
  "properties": {
    "site_id": {
      "type": "string"
    },
    "platform": {
      "type": "string",
      "enum": [
        "woocommerce",
        "shopify",
        "magento",
        "bigcommerce",
        "custom"
      ]
    },
    "platform_version": {
      "type": "string"
    },
    "agentmesh_version": {
      "type": "string"
    },
    "capabilities": {
      "$ref": "#/$defs/AMPSCapabilities"
    },
    "api_base_url": {
      "type": "string",
      "format": "uri",
      "pattern": "^https://"
    },
    "supported_currencies": {
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^[A-Z]{3}$"
      },
      "minItems": 1
    },
    "shipping_zones": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AMPSShippingZone"
      }
    }
  },
  "$defs": {
    "AMPSCapabilities": {
      "type": "object",
      "required": [
        "product_search",
        "product_compare",
        "cart_management",
        "coupon_support",
        "checkout_execution",
        "order_tracking",
        "real_time_inventory",
        "guest_checkout",
        "authenticated_checkout"
      ],
      "properties": {
        "product_search": {
          "type": "boolean"
        },
        "product_compare": {
          "type": "boolean"
        },
        "cart_management": {
          "type": "boolean"
        },
        "coupon_support": {
          "type": "boolean"
        },
        "checkout_execution": {
          "type": "boolean"
        },
        "order_tracking": {
          "type": "boolean"
        },
        "real_time_inventory": {
          "type": "boolean"
        },
        "guest_checkout": {
          "type": "boolean"
        },
        "authenticated_checkout": {
          "type": "boolean"
        }
      }
    },
    "AMPSShippingZone": {
      "type": "object",
      "required": [
        "country_code"
      ],
      "properties": {
        "country_code": {
          "type": "string",
          "pattern": "^[A-Z]{2}$"
        },
        "regions": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    }
  }
}