{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aidelly-ai/json-schema/aidelly-ai-ecommerce-store-schema.json",
  "title": "EcommerceStore",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aidelly-ai-ecommerce-api-openapi.yml#/components/schemas/EcommerceStore",
  "type": "object",
  "required": [
    "id",
    "provider",
    "shop_domain",
    "status"
  ],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "provider": {
      "$ref": "#/$defs/EcommerceProvider"
    },
    "shop_domain": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "active",
        "syncing",
        "errored",
        "disconnected"
      ]
    },
    "product_count": {
      "type": "integer",
      "minimum": 0
    },
    "last_synced_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    }
  },
  "$defs": {
    "EcommerceProvider": {
      "type": "string",
      "enum": [
        "shopify",
        "woocommerce",
        "etsy",
        "wix"
      ]
    }
  }
}