{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/clonelyapp-com/json-schema/clonelyapp-com-copy-product-list-schema.json",
  "title": "CopyProductList",
  "x-generated": "2026-12-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/clonelyapp-com-openapi.json#/components/schemas/CopyProductList",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/CopyProductResult"
      }
    },
    "nextCursor": {
      "type": [
        "string",
        "null"
      ],
      "description": "Pass as `cursor` for the next page. null on the last page."
    }
  },
  "required": [
    "data",
    "nextCursor"
  ],
  "$defs": {
    "CopyProductResult": {
      "type": "object",
      "properties": {
        "handle": {
          "type": "string",
          "description": "The URL handle this copy gives the product."
        },
        "storeHandle": {
          "type": [
            "string",
            "null"
          ],
          "description": "The handle of the matched product in your store, when it differs from `handle` (a SKU match). Recorded for updates and update-mode skips; null for skips in skip mode."
        },
        "sourceHandle": {
          "type": "string",
          "description": "The product's handle in the source store."
        },
        "result": {
          "type": "string",
          "enum": [
            "added",
            "updated",
            "savedWithIssues",
            "skippedAlreadyExists",
            "skippedUnchanged",
            "skippedNotCopied",
            "failed",
            "waitingForVariantLimit"
          ]
        },
        "message": {
          "type": [
            "string",
            "null"
          ],
          "description": "Why it failed or was saved with issues, when known."
        },
        "at": {
          "type": "string",
          "format": "date-time"
        }
      },
      "required": [
        "handle",
        "storeHandle",
        "sourceHandle",
        "result",
        "message",
        "at"
      ]
    }
  }
}