← Files Grid CatalogARCHIVED FILE

docs/api/catalog-source-media/openapi.json

157 KB · Nov 30, 2026 · 00:26 UTC

↓ Download file

{
  "openapi": "3.1.0",
  "info": {
    "title": "Grid catalog source media",
    "version": "1.0.0"
  },
  "paths": {
    "/api/v1/catalog-source-media/read": {
      "post": {
        "operationId": "get_catalog_source_media",
        "summary": "get catalog source media",
        "description": "Read authorized existing catalog listing primary/gallery/variant media, source identity and original attribution. Requires grid:read and current catalog-company administration. No writes.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "company_id",
                  "source_item_id"
                ],
                "properties": {
                  "company_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "source_item_id": {
                    "type": "string",
                    "format": "uuid"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Authorized catalog media result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "company_id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "source_item_id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "revision": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 4096
                    },
                    "source": {
                      "type": "object",
                      "additionalProperties": false,
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "source_hash": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "source_owner_company_id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "source_url": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "source_type": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "source_name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "provenance": {
                          "type": [
                            "object",
                            "array",
                            "string",
                            "number",
                            "boolean",
                            "null"
                          ],
                          "description": "Original stored JSON evidence or legacy extension, preserved verbatim as untrusted data."
                        },
                        "media_updates": {
                          "type": [
                            "object",
                            "array",
                            "string",
                            "number",
                            "boolean",
                            "null"
                          ],
                          "description": "Original stored JSON evidence or legacy extension, preserved verbatim as untrusted data."
                        }
                      }
                    },
                    "current": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "image_url",
                        "images",
                        "variants"
                      ],
                      "properties": {
                        "image_url": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "images": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": {
                              "type": [
                                "object",
                                "array",
                                "string",
                                "number",
                                "boolean",
                                "null"
                              ],
                              "description": "Original stored JSON evidence or legacy extension, preserved verbatim as untrusted data."
                            },
                            "required": [
                              "url"
                            ],
                            "properties": {
                              "url": {
                                "type": "string"
                              },
                              "alt_text": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "position": {
                                "type": [
                                  "number",
                                  "null"
                                ]
                              },
                              "source": {
                                "type": "string"
                              },
                              "cached_storage_path": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "cached_source_url_hash": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "cached_attachment_id": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "cached_at": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "provenance": {
                                "type": [
                                  "object",
                                  "array",
                                  "string",
                                  "number",
                                  "boolean",
                                  "null"
                                ],
                                "description": "Original stored JSON evidence or legacy extension, preserved verbatim as untrusted data."
                              }
                            }
                          }
                        },
                        "variants": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": {
                              "type": [
                                "object",
                                "array",
                                "string",
                                "number",
                                "boolean",
                                "null"
                              ],
                              "description": "Original stored JSON evidence or legacy extension, preserved verbatim as untrusted data."
                            },
                            "properties": {
                              "source_variant_id": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "sku": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "title": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "image_url": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "source": {
                                "type": "string"
                              },
                              "price": {
                                "type": [
                                  "number",
                                  "null"
                                ]
                              },
                              "available": {
                                "type": [
                                  "boolean",
                                  "null"
                                ]
                              },
                              "options": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "additionalProperties": {
                                    "type": [
                                      "object",
                                      "array",
                                      "string",
                                      "number",
                                      "boolean",
                                      "null"
                                    ],
                                    "description": "Original stored JSON evidence or legacy extension, preserved verbatim as untrusted data."
                                  },
                                  "properties": {
                                    "name": {
                                      "type": "string"
                                    },
                                    "value": {
                                      "type": "string"
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    },
                    "proposed": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "image_url",
                        "images",
                        "variants"
                      ],
                      "properties": {
                        "image_url": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "images": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": {
                              "type": [
                                "object",
                                "array",
                                "string",
                                "number",
                                "boolean",
                                "null"
                              ],
                              "description": "Original stored JSON evidence or legacy extension, preserved verbatim as untrusted data."
                            },
                            "required": [
                              "url"
                            ],
                            "properties": {
                              "url": {
                                "type": "string"
                              },
                              "alt_text": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "position": {
                                "type": [
                                  "number",
                                  "null"
                                ]
                              },
                              "source": {
                                "type": "string"
                              },
                              "cached_storage_path": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "cached_source_url_hash": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "cached_attachment_id": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "cached_at": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "provenance": {
                                "type": [
                                  "object",
                                  "array",
                                  "string",
                                  "number",
                                  "boolean",
                                  "null"
                                ],
                                "description": "Original stored JSON evidence or legacy extension, preserved verbatim as untrusted data."
                              }
                            }
                          }
                        },
                        "variants": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": {
                              "type": [
                                "object",
                                "array",
                                "string",
                                "number",
                                "boolean",
                                "null"
                              ],
                              "description": "Original stored JSON evidence or legacy extension, preserved verbatim as untrusted data."
                            },
                            "properties": {
                              "source_variant_id": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "sku": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "title": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "image_url": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "source": {
                                "type": "string"
                              },
                              "price": {
                                "type": [
                                  "number",
                                  "null"
                                ]
                              },
                              "available": {
                                "type": [
                                  "boolean",
                                  "null"
                                ]
                              },
                              "options": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "additionalProperties": {
                                    "type": [
                                      "object",
                                      "array",
                                      "string",
                                      "number",
                                      "boolean",
                                      "null"
                                    ],
                                    "description": "Original stored JSON evidence or legacy extension, preserved verbatim as untrusted data."
                                  },
                                  "properties": {
                                    "name": {
                                      "type": "string"
                                    },
                                    "value": {
                                      "type": "string"
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    },
                    "previous": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "image_url",
                        "images",
                        "variants"
                      ],
                      "properties": {
                        "image_url": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "images": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": {
                              "type": [
                                "object",
                                "array",
                                "string",
                                "number",
                                "boolean",
                                "null"
                              ],
                              "description": "Original stored JSON evidence or legacy extension, preserved verbatim as untrusted data."
                            },
                            "required": [
                              "url"
                            ],
                            "properties": {
                              "url": {
                                "type": "string"
                              },
                              "alt_text": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "position": {
                                "type": [
                                  "number",
                                  "null"
                                ]
                              },
                              "source": {
                                "type": "string"
                              },
                              "cached_storage_path": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "cached_source_url_hash": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "cached_attachment_id": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "cached_at": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "provenance": {
                                "type": [
                                  "object",
                                  "array",
                                  "string",
                                  "number",
                                  "boolean",
                                  "null"
                                ],
                                "description": "Original stored JSON evidence or legacy extension, preserved verbatim as untrusted data."
                              }
                            }
                          }
                        },
                        "variants": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": {
                              "type": [
                                "object",
                                "array",
                                "string",
                                "number",
                                "boolean",
                                "null"
                              ],
                              "description": "Original stored JSON evidence or legacy extension, preserved verbatim as untrusted data."
                            },
                            "properties": {
                              "source_variant_id": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "sku": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "title": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "image_url": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "source": {
                                "type": "string"
                              },
                              "price": {
                                "type": [
                                  "number",
                                  "null"
                                ]
                              },
                              "available": {
                                "type": [
                                  "boolean",
                                  "null"
                                ]
                              },
                              "options": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "additionalProperties": {
                                    "type": [
                                      "object",
                                      "array",
                                      "string",
                                      "number",
                                      "boolean",
                                      "null"
                                    ],
                                    "description": "Original stored JSON evidence or legacy extension, preserved verbatim as untrusted data."
                                  },
                                  "properties": {
                                    "name": {
                                      "type": "string"
                                    },
                                    "value": {
                                      "type": "string"
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    },
                    "preview_token": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 4096
                    },
                    "expires_at": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 4096
                    },
                    "request_hash": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 4096
                    },
                    "status": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 4096
                    },
                    "action_id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "request_id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "applied_at": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 4096
                    },
                    "removed_gallery_urls": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 4096
                      }
                    },
                    "duplicate_checksums": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 4096
                      }
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 4096
                      }
                    },
                    "image_copy_intent": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "client_url": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 4096
                          },
                          "source_url": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 4096
                          },
                          "sha256": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 4096
                          },
                          "alt_text": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "minLength": 1,
                            "maxLength": 4096
                          },
                          "source": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 4096
                          },
                          "attribution": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "evidence_kind",
                              "association_note"
                            ],
                            "properties": {
                              "evidence_kind": {
                                "type": "string",
                                "enum": [
                                  "manufacturer",
                                  "seller",
                                  "other"
                                ]
                              },
                              "association_note": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 2000
                              },
                              "document_url": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 4096
                              },
                              "page": {
                                "type": "integer",
                                "minimum": 1
                              },
                              "crop": {
                                "type": "array",
                                "minItems": 4,
                                "maxItems": 4,
                                "items": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 1
                                },
                                "description": "[left,top,right,bottom] normalized bounds."
                              },
                              "rights_note": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 2000
                              }
                            }
                          },
                          "stored_url": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "minLength": 1,
                            "maxLength": 4096
                          }
                        }
                      }
                    },
                    "images": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "stored_url": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 4096
                          },
                          "storage_path": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 4096
                          },
                          "sha256": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 4096
                          },
                          "copy_verification": {
                            "type": "object",
                            "additionalProperties": false,
                            "properties": {
                              "status": {
                                "type": "string",
                                "const": "verified"
                              },
                              "sha256": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 4096
                              },
                              "storage_path": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "minLength": 1,
                                "maxLength": 4096
                              },
                              "stored_url": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 4096
                              },
                              "size_bytes": {
                                "type": "integer"
                              },
                              "checked_at": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 4096
                              },
                              "detail": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 4096
                              }
                            }
                          }
                        }
                      }
                    },
                    "attribution": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "client_url": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 4096
                          },
                          "source_url": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 4096
                          },
                          "sha256": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 4096
                          },
                          "alt_text": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "minLength": 1,
                            "maxLength": 4096
                          },
                          "source": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 4096
                          },
                          "attribution": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "evidence_kind",
                              "association_note"
                            ],
                            "properties": {
                              "evidence_kind": {
                                "type": "string",
                                "enum": [
                                  "manufacturer",
                                  "seller",
                                  "other"
                                ]
                              },
                              "association_note": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 2000
                              },
                              "document_url": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 4096
                              },
                              "page": {
                                "type": "integer",
                                "minimum": 1
                              },
                              "crop": {
                                "type": "array",
                                "minItems": 4,
                                "maxItems": 4,
                                "items": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 1
                                },
                                "description": "[left,top,right,bottom] normalized bounds."
                              },
                              "rights_note": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 2000
                              }
                            }
                          },
                          "stored_url": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "minLength": 1,
                            "maxLength": 4096
                          }
                        }
                      }
                    },
                    "canonical_writes": {
                      "type": "boolean",
                      "const": false
                    },
                    "reversal": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "supported"
                      ],
                      "properties": {
                        "supported": {
                          "type": "boolean",
                          "const": false
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Missing scopes or current source/company administration"
          },
          "409": {
            "description": "Stale media, proof or request identity; review again"
          },
          "422": {
            "description": "Invalid request"
          },
          "503": {
            "description": "Deployment or upstream failure"
          }
        }
      }
    },
    "/api/v1/catalog-source-media/preview": {
      "post": {
        "operationId": "preview_catalog_source_media_update",
        "summary": "preview catalog source media update",
        "description": "Preview explicit media-only edits on one existing catalog source listing. Gallery replaces ordering/selection; omitted fields remain unchanged and null/[] clear explicitly. Show current/proposed references, removals, attribution, copy intent, duplicates and warnings for exact confirmation. New references require company-bound staged original bytes (20 bindings, 32 MiB total). Distinguish seller images from manufacturer evidence; public availability proves neither rights nor exact-model identity. No canonical or source-fact writes.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "company_id",
                  "source_item_id",
                  "changes",
                  "expected_image_count",
                  "image_bindings"
                ],
                "properties": {
                  "company_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "source_item_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "changes": {
                    "type": "object",
                    "additionalProperties": false,
                    "minProperties": 1,
                    "properties": {
                      "gallery": {
                        "type": "array",
                        "maxItems": 20,
                        "uniqueItems": true,
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 4096
                        },
                        "description": "Complete selected gallery in intended order; [] explicitly clears. Omit to preserve."
                      },
                      "primary_image_url": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "minLength": 1,
                        "maxLength": 4096,
                        "description": "Existing selected or staged client reference; null explicitly clears primary. Omit to preserve."
                      },
                      "variant_images": {
                        "type": "array",
                        "maxItems": 50,
                        "items": {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "index",
                            "image_url"
                          ],
                          "properties": {
                            "index": {
                              "type": "integer",
                              "minimum": 0
                            },
                            "image_url": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "minLength": 1,
                              "maxLength": 4096
                            }
                          }
                        },
                        "description": "Media edits to existing zero-based variant indices; no new variants or changes to facts."
                      }
                    }
                  },
                  "expected_image_count": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 20
                  },
                  "image_bindings": {
                    "type": "array",
                    "maxItems": 20,
                    "items": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "client_url",
                        "source_url",
                        "sha256",
                        "image_evidence",
                        "alt_text",
                        "source",
                        "attribution"
                      ],
                      "properties": {
                        "client_url": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 4096
                        },
                        "source_url": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 4096,
                          "description": "Original image/PDF URL; provenance only, never refetched."
                        },
                        "sha256": {
                          "type": "string",
                          "pattern": "^[a-f0-9]{64}$"
                        },
                        "image_evidence": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 4096,
                          "description": "Company-bound proof from grid.request_catalog_source_image_upload; PUT original bytes first."
                        },
                        "alt_text": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "minLength": 1,
                          "maxLength": 4096
                        },
                        "source": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200
                        },
                        "attribution": {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "evidence_kind",
                            "association_note"
                          ],
                          "properties": {
                            "evidence_kind": {
                              "type": "string",
                              "enum": [
                                "manufacturer",
                                "seller",
                                "other"
                              ]
                            },
                            "association_note": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 2000
                            },
                            "document_url": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 4096
                            },
                            "page": {
                              "type": "integer",
                              "minimum": 1
                            },
                            "crop": {
                              "type": "array",
                              "minItems": 4,
                              "maxItems": 4,
                              "items": {
                                "type": "number",
                                "minimum": 0,
                                "maximum": 1
                              },
                              "description": "[left,top,right,bottom] normalized bounds."
                            },
                            "rights_note": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 2000
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Authorized catalog media result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "company_id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "source_item_id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "revision": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 4096
                    },
                    "source": {
                      "type": "object",
                      "additionalProperties": false,
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "source_hash": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "source_owner_company_id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "source_url": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "source_type": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "source_name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "provenance": {
                          "type": [
                            "object",
                            "array",
                            "string",
                            "number",
                            "boolean",
                            "null"
                          ],
                          "description": "Original stored JSON evidence or legacy extension, preserved verbatim as untrusted data."
                        },
                        "media_updates": {
                          "type": [
                            "object",
                            "array",
                            "string",
                            "number",
                            "boolean",
                            "null"
                          ],
                          "description": "Original stored JSON evidence or legacy extension, preserved verbatim as untrusted data."
                        }
                      }
                    },
                    "current": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "image_url",
                        "images",
                        "variants"
                      ],
                      "properties": {
                        "image_url": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "images": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": {
                              "type": [
                                "object",
                                "array",
                                "string",
                                "number",
                                "boolean",
                                "null"
                              ],
                              "description": "Original stored JSON evidence or legacy extension, preserved verbatim as untrusted data."
                            },
                            "required": [
                              "url"
                            ],
                            "properties": {
                              "url": {
                                "type": "string"
                              },
                              "alt_text": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "position": {
                                "type": [
                                  "number",
                                  "null"
                                ]
                              },
                              "source": {
                                "type": "string"
                              },
                              "cached_storage_path": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "cached_source_url_hash": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "cached_attachment_id": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "cached_at": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "provenance": {
                                "type": [
                                  "object",
                                  "array",
                                  "string",
                                  "number",
                                  "boolean",
                                  "null"
                                ],
                                "description": "Original stored JSON evidence or legacy extension, preserved verbatim as untrusted data."
                              }
                            }
                          }
                        },
                        "variants": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": {
                              "type": [
                                "object",
                                "array",
                                "string",
                                "number",
                                "boolean",
                                "null"
                              ],
                              "description": "Original stored JSON evidence or legacy extension, preserved verbatim as untrusted data."
                            },
                            "properties": {
                              "source_variant_id": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "sku": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "title": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "image_url": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "source": {
                                "type": "string"
                              },
                              "price": {
                                "type": [
                                  "number",
                                  "null"
                                ]
                              },
                              "available": {
                                "type": [
                                  "boolean",
                                  "null"
                                ]
                              },
                              "options": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "additionalProperties": {
                                    "type": [
                                      "object",
                                      "array",
                                      "string",
                                      "number",
                                      "boolean",
                                      "null"
                                    ],
                                    "description": "Original stored JSON evidence or legacy extension, preserved verbatim as untrusted data."
                                  },
                                  "properties": {
                                    "name": {
                                      "type": "string"
                                    },
                                    "value": {
                                      "type": "string"
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    },
                    "proposed": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "image_url",
                        "images",
                        "variants"
                      ],
                      "properties": {
                        "image_url": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "images": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": {
                              "type": [
                                "object",
                                "array",
                                "string",
                                "number",
                                "boolean",
                                "null"
                              ],
                              "description": "Original stored JSON evidence or legacy extension, preserved verbatim as untrusted data."
                            },
                            "required": [
                              "url"
                            ],
                            "properties": {
                              "url": {
                                "type": "string"
                              },
                              "alt_text": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "position": {
                                "type": [
                                  "number",
                                  "null"
                                ]
                              },
                              "source": {
                                "type": "string"
                              },
                              "cached_storage_path": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "cached_source_url_hash": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "cached_attachment_id": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "cached_at": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "provenance": {
                                "type": [
                                  "object",
                                  "array",
                                  "string",
                                  "number",
                                  "boolean",
                                  "null"
                                ],
                                "description": "Original stored JSON evidence or legacy extension, preserved verbatim as untrusted data."
                              }
                            }
                          }
                        },
                        "variants": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": {
                              "type": [
                                "object",
                                "array",
                                "string",
                                "number",
                                "boolean",
                                "null"
                              ],
                              "description": "Original stored JSON evidence or legacy extension, preserved verbatim as untrusted data."
                            },
                            "properties": {
                              "source_variant_id": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "sku": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "title": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "image_url": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "source": {
                                "type": "string"
                              },
                              "price": {
                                "type": [
                                  "number",
                                  "null"
                                ]
                              },
                              "available": {
                                "type": [
                                  "boolean",
                                  "null"
                                ]
                              },
                              "options": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "additionalProperties": {
                                    "type": [
                                      "object",
                                      "array",
                                      "string",
                                      "number",
                                      "boolean",
                                      "null"
                                    ],
                                    "description": "Original stored JSON evidence or legacy extension, preserved verbatim as untrusted data."
                                  },
                                  "properties": {
                                    "name": {
                                      "type": "string"
                                    },
                                    "value": {
                                      "type": "string"
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    },
                    "previous": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "image_url",
                        "images",
                        "variants"
                      ],
                      "properties": {
                        "image_url": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "images": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": {
                              "type": [
                                "object",
                                "array",
                                "string",
                                "number",
                                "boolean",
                                "null"
                              ],
                              "description": "Original stored JSON evidence or legacy extension, preserved verbatim as untrusted data."
                            },
                            "required": [
                              "url"
                            ],
                            "properties": {
                              "url": {
                                "type": "string"
                              },
                              "alt_text": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "position": {
                                "type": [
                                  "number",
                                  "null"
                                ]
                              },
                              "source": {
                                "type": "string"
                              },
                              "cached_storage_path": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "cached_source_url_hash": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "cached_attachment_id": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "cached_at": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "provenance": {
                                "type": [
                                  "object",
                                  "array",
                                  "string",
                                  "number",
                                  "boolean",
                                  "null"
                                ],
                                "description": "Original stored JSON evidence or legacy extension, preserved verbatim as untrusted data."
                              }
                            }
                          }
                        },
                        "variants": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": {
                              "type": [
                                "object",
                                "array",
                                "string",
                                "number",
                                "boolean",
                                "null"
                              ],
                              "description": "Original stored JSON evidence or legacy extension, preserved verbatim as untrusted data."
                            },
                            "properties": {
                              "source_variant_id": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "sku": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "title": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "image_url": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "source": {
                                "type": "string"
                              },
                              "price": {
                                "type": [
                                  "number",
                                  "null"
                                ]
                              },
                              "available": {
                                "type": [
                                  "boolean",
                                  "null"
                                ]
                              },
                              "options": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "additionalProperties": {
                                    "type": [
                                      "object",
                                      "array",
                                      "string",
                                      "number",
                                      "boolean",
                                      "null"
                                    ],
                                    "description": "Original stored JSON evidence or legacy extension, preserved verbatim as untrusted data."
                                  },
                                  "properties": {
                                    "name": {
                                      "type": "string"
                                    },
                                    "value": {
                                      "type": "string"
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    },
                    "preview_token": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 4096
                    },
                    "expires_at": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 4096
                    },
                    "request_hash": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 4096
                    },
                    "status": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 4096
                    },
                    "action_id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "request_id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "applied_at": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 4096
                    },
                    "removed_gallery_urls": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 4096
                      }
                    },
                    "duplicate_checksums": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 4096
                      }
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 4096
                      }
                    },
                    "image_copy_intent": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "client_url": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 4096
                          },
                          "source_url": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 4096
                          },
                          "sha256": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 4096
                          },
                          "alt_text": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "minLength": 1,
                            "maxLength": 4096
                          },
                          "source": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 4096
                          },
                          "attribution": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "evidence_kind",
                              "association_note"
                            ],
                            "properties": {
                              "evidence_kind": {
                                "type": "string",
                                "enum": [
                                  "manufacturer",
                                  "seller",
                                  "other"
                                ]
                              },
                              "association_note": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 2000
                              },
                              "document_url": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 4096
                              },
                              "page": {
                                "type": "integer",
                                "minimum": 1
                              },
                              "crop": {
                                "type": "array",
                                "minItems": 4,
                                "maxItems": 4,
                                "items": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 1
                                },
                                "description": "[left,top,right,bottom] normalized bounds."
                              },
                              "rights_note": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 2000
                              }
                            }
                          },
                          "stored_url": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "minLength": 1,
                            "maxLength": 4096
                          }
                        }
                      }
                    },
                    "images": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "stored_url": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 4096
                          },
                          "storage_path": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 4096
                          },
                          "sha256": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 4096
                          },
                          "copy_verification": {
                            "type": "object",
                            "additionalProperties": false,
                            "properties": {
                              "status": {
                                "type": "string",
                                "const": "verified"
                              },
                              "sha256": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 4096
                              },
                              "storage_path": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "minLength": 1,
                                "maxLength": 4096
                              },
                              "stored_url": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 4096
                              },
                              "size_bytes": {
                                "type": "integer"
                              },
                              "checked_at": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 4096
                              },
                              "detail": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 4096
                              }
                            }
                          }
                        }
                      }
                    },
                    "attribution": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "client_url": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 4096
                          },
                          "source_url": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 4096
                          },
                          "sha256": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 4096
                          },
                          "alt_text": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "minLength": 1,
                            "maxLength": 4096
                          },
                          "source": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 4096
                          },
                          "attribution": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "evidence_kind",
                              "association_note"
                            ],
                            "properties": {
                              "evidence_kind": {
                                "type": "string",
                                "enum": [
                                  "manufacturer",
                                  "seller",
                                  "other"
                                ]
                              },
                              "association_note": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 2000
                              },
                              "document_url": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 4096
                              },
                              "page": {
                                "type": "integer",
                                "minimum": 1
                              },
                              "crop": {
                                "type": "array",
                                "minItems": 4,
                                "maxItems": 4,
                                "items": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 1
                                },
                                "description": "[left,top,right,bottom] normalized bounds."
                              },
                              "rights_note": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 2000
                              }
                            }
                          },
                          "stored_url": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "minLength": 1,
                            "maxLength": 4096
                          }
                        }
                      }
                    },
                    "canonical_writes": {
                      "type": "boolean",
                      "const": false
                    },
                    "reversal": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "supported"
                      ],
                      "properties": {
                        "supported": {
                          "type": "boolean",
                          "const": false
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Missing scopes or current source/company administration"
          },
          "409": {
            "description": "Stale media, proof or request identity; review again"
          },
          "422": {
            "description": "Invalid request"
          },
          "503": {
            "description": "Deployment or upstream failure"
          }
        }
      }
    },
    "/api/v1/catalog-source-media/apply": {
      "post": {
        "operationId": "apply_catalog_source_media_update",
        "summary": "apply catalog source media update",
        "description": "Apply only the exact explicitly confirmed existing-listing media preview. Requires grid:read/grid:write, current source/company authority, unchanged original request, preview_token, stable request_id and confirm_preview=true. Verifies staged bytes and public copies, atomically checks relevant media/variant state and saves a durable receipt/history. Retry identical arguments after uncertainty; never infer rollback. Omitted facts, ownership, matches and canonical products remain unchanged. No automatic reversal; use a separately reviewed media update.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "company_id",
                  "source_item_id",
                  "changes",
                  "expected_image_count",
                  "image_bindings",
                  "preview_token",
                  "request_id",
                  "confirm_preview"
                ],
                "properties": {
                  "company_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "source_item_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "changes": {
                    "type": "object",
                    "additionalProperties": false,
                    "minProperties": 1,
                    "properties": {
                      "gallery": {
                        "type": "array",
                        "maxItems": 20,
                        "uniqueItems": true,
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 4096
                        },
                        "description": "Complete selected gallery in intended order; [] explicitly clears. Omit to preserve."
                      },
                      "primary_image_url": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "minLength": 1,
                        "maxLength": 4096,
                        "description": "Existing selected or staged client reference; null explicitly clears primary. Omit to preserve."
                      },
                      "variant_images": {
                        "type": "array",
                        "maxItems": 50,
                        "items": {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "index",
                            "image_url"
                          ],
                          "properties": {
                            "index": {
                              "type": "integer",
                              "minimum": 0
                            },
                            "image_url": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "minLength": 1,
                              "maxLength": 4096
                            }
                          }
                        },
                        "description": "Media edits to existing zero-based variant indices; no new variants or changes to facts."
                      }
                    }
                  },
                  "expected_image_count": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 20
                  },
                  "image_bindings": {
                    "type": "array",
                    "maxItems": 20,
                    "items": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "client_url",
                        "source_url",
                        "sha256",
                        "image_evidence",
                        "alt_text",
                        "source",
                        "attribution"
                      ],
                      "properties": {
                        "client_url": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 4096
                        },
                        "source_url": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 4096,
                          "description": "Original image/PDF URL; provenance only, never refetched."
                        },
                        "sha256": {
                          "type": "string",
                          "pattern": "^[a-f0-9]{64}$"
                        },
                        "image_evidence": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 4096,
                          "description": "Company-bound proof from grid.request_catalog_source_image_upload; PUT original bytes first."
                        },
                        "alt_text": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "minLength": 1,
                          "maxLength": 4096
                        },
                        "source": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200
                        },
                        "attribution": {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "evidence_kind",
                            "association_note"
                          ],
                          "properties": {
                            "evidence_kind": {
                              "type": "string",
                              "enum": [
                                "manufacturer",
                                "seller",
                                "other"
                              ]
                            },
                            "association_note": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 2000
                            },
                            "document_url": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 4096
                            },
                            "page": {
                              "type": "integer",
                              "minimum": 1
                            },
                            "crop": {
                              "type": "array",
                              "minItems": 4,
                              "maxItems": 4,
                              "items": {
                                "type": "number",
                                "minimum": 0,
                                "maximum": 1
                              },
                              "description": "[left,top,right,bottom] normalized bounds."
                            },
                            "rights_note": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 2000
                            }
                          }
                        }
                      }
                    }
                  },
                  "preview_token": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 4096
                  },
                  "request_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "confirm_preview": {
                    "type": "boolean",
                    "const": true
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Authorized catalog media result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "company_id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "source_item_id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "revision": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 4096
                    },
                    "source": {
                      "type": "object",
                      "additionalProperties": false,
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "source_hash": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "source_owner_company_id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "source_url": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "source_type": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "source_name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "provenance": {
                          "type": [
                            "object",
                            "array",
                            "string",
                            "number",
                            "boolean",
                            "null"
                          ],
                          "description": "Original stored JSON evidence or legacy extension, preserved verbatim as untrusted data."
                        },
                        "media_updates": {
                          "type": [
                            "object",
                            "array",
                            "string",
                            "number",
                            "boolean",
                            "null"
                          ],
                          "description": "Original stored JSON evidence or legacy extension, preserved verbatim as untrusted data."
                        }
                      }
                    },
                    "current": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "image_url",
                        "images",
                        "variants"
                      ],
                      "properties": {
                        "image_url": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "images": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": {
                              "type": [
                                "object",
                                "array",
                                "string",
                                "number",
                                "boolean",
                                "null"
                              ],
                              "description": "Original stored JSON evidence or legacy extension, preserved verbatim as untrusted data."
                            },
                            "required": [
                              "url"
                            ],
                            "properties": {
                              "url": {
                                "type": "string"
                              },
                              "alt_text": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "position": {
                                "type": [
                                  "number",
                                  "null"
                                ]
                              },
                              "source": {
                                "type": "string"
                              },
                              "cached_storage_path": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "cached_source_url_hash": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "cached_attachment_id": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "cached_at": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "provenance": {
                                "type": [
                                  "object",
                                  "array",
                                  "string",
                                  "number",
                                  "boolean",
                                  "null"
                                ],
                                "description": "Original stored JSON evidence or legacy extension, preserved verbatim as untrusted data."
                              }
                            }
                          }
                        },
                        "variants": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": {
                              "type": [
                                "object",
                                "array",
                                "string",
                                "number",
                                "boolean",
                                "null"
                              ],
                              "description": "Original stored JSON evidence or legacy extension, preserved verbatim as untrusted data."
                            },
                            "properties": {
                              "source_variant_id": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "sku": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "title": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "image_url": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "source": {
                                "type": "string"
                              },
                              "price": {
                                "type": [
                                  "number",
                                  "null"
                                ]
                              },
                              "available": {
                                "type": [
                                  "boolean",
                                  "null"
                                ]
                              },
                              "options": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "additionalProperties": {
                                    "type": [
                                      "object",
                                      "array",
                                      "string",
                                      "number",
                                      "boolean",
                                      "null"
                                    ],
                                    "description": "Original stored JSON evidence or legacy extension, preserved verbatim as untrusted data."
                                  },
                                  "properties": {
                                    "name": {
                                      "type": "string"
                                    },
                                    "value": {
                                      "type": "string"
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    },
                    "proposed": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "image_url",
                        "images",
                        "variants"
                      ],
                      "properties": {
                        "image_url": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "images": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": {
                              "type": [
                                "object",
                                "array",
                                "string",
                                "number",
                                "boolean",
                                "null"
                              ],
                              "description": "Original stored JSON evidence or legacy extension, preserved verbatim as untrusted data."
                            },
                            "required": [
                              "url"
                            ],
                            "properties": {
                              "url": {
                                "type": "string"
                              },
                              "alt_text": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "position": {
                                "type": [
                                  "number",
                                  "null"
                                ]
                              },
                              "source": {
                                "type": "string"
                              },
                              "cached_storage_path": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "cached_source_url_hash": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "cached_attachment_id": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "cached_at": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "provenance": {
                                "type": [
                                  "object",
                                  "array",
                                  "string",
                                  "number",
                                  "boolean",
                                  "null"
                                ],
                                "description": "Original stored JSON evidence or legacy extension, preserved verbatim as untrusted data."
                              }
                            }
                          }
                        },
                        "variants": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": {
                              "type": [
                                "object",
                                "array",
                                "string",
                                "number",
                                "boolean",
                                "null"
                              ],
                              "description": "Original stored JSON evidence or legacy extension, preserved verbatim as untrusted data."
                            },
                            "properties": {
                              "source_variant_id": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "sku": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "title": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "image_url": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "source": {
                                "type": "string"
                              },
                              "price": {
                                "type": [
                                  "number",
                                  "null"
                                ]
                              },
                              "available": {
                                "type": [
                                  "boolean",
                                  "null"
                                ]
                              },
                              "options": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "additionalProperties": {
                                    "type": [
                                      "object",
                                      "array",
                                      "string",
                                      "number",
                                      "boolean",
                                      "null"
                                    ],
                                    "description": "Original stored JSON evidence or legacy extension, preserved verbatim as untrusted data."
                                  },
                                  "properties": {
                                    "name": {
                                      "type": "string"
                                    },
                                    "value": {
                                      "type": "string"
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    },
                    "previous": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "image_url",
                        "images",
                        "variants"
                      ],
                      "properties": {
                        "image_url": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "images": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": {
                              "type": [
                                "object",
                                "array",
                                "string",
                                "number",
                                "boolean",
                                "null"
                              ],
                              "description": "Original stored JSON evidence or legacy extension, preserved verbatim as untrusted data."
                            },
                            "required": [
                              "url"
                            ],
                            "properties": {
                              "url": {
                                "type": "string"
                              },
                              "alt_text": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "position": {
                                "type": [
                                  "number",
                                  "null"
                                ]
                              },
                              "source": {
                                "type": "string"
                              },
                              "cached_storage_path": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "cached_source_url_hash": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "cached_attachment_id": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "cached_at": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "provenance": {
                                "type": [
                                  "object",
                                  "array",
                                  "string",
                                  "number",
                                  "boolean",
                                  "null"
                                ],
                                "description": "Original stored JSON evidence or legacy extension, preserved verbatim as untrusted data."
                              }
                            }
                          }
                        },
                        "variants": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": {
                              "type": [
                                "object",
                                "array",
                                "string",
                                "number",
                                "boolean",
                                "null"
                              ],
                              "description": "Original stored JSON evidence or legacy extension, preserved verbatim as untrusted data."
                            },
                            "properties": {
                              "source_variant_id": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "sku": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "title": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "image_url": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "source": {
                                "type": "string"
                              },
                              "price": {
                                "type": [
                                  "number",
                                  "null"
                                ]
                              },
                              "available": {
                                "type": [
                                  "boolean",
                                  "null"
                                ]
                              },
                              "options": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "additionalProperties": {
                                    "type": [
                                      "object",
                                      "array",
                                      "string",
                                      "number",
                                      "boolean",
                                      "null"
                                    ],
                                    "description": "Original stored JSON evidence or legacy extension, preserved verbatim as untrusted data."
                                  },
                                  "properties": {
                                    "name": {
                                      "type": "string"
                                    },
                                    "value": {
                                      "type": "string"
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    },
                    "preview_token": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 4096
                    },
                    "expires_at": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 4096
                    },
                    "request_hash": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 4096
                    },
                    "status": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 4096
                    },
                    "action_id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "request_id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "applied_at": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 4096
                    },
                    "removed_gallery_urls": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 4096
                      }
                    },
                    "duplicate_checksums": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 4096
                      }
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 4096
                      }
                    },
                    "image_copy_intent": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "client_url": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 4096
                          },
                          "source_url": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 4096
                          },
                          "sha256": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 4096
                          },
                          "alt_text": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "minLength": 1,
                            "maxLength": 4096
                          },
                          "source": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 4096
                          },
                          "attribution": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "evidence_kind",
                              "association_note"
                            ],
                            "properties": {
                              "evidence_kind": {
                                "type": "string",
                                "enum": [
                                  "manufacturer",
                                  "seller",
                                  "other"
                                ]
                              },
                              "association_note": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 2000
                              },
                              "document_url": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 4096
                              },
                              "page": {
                                "type": "integer",
                                "minimum": 1
                              },
                              "crop": {
                                "type": "array",
                                "minItems": 4,
                                "maxItems": 4,
                                "items": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 1
                                },
                                "description": "[left,top,right,bottom] normalized bounds."
                              },
                              "rights_note": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 2000
                              }
                            }
                          },
                          "stored_url": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "minLength": 1,
                            "maxLength": 4096
                          }
                        }
                      }
                    },
                    "images": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "stored_url": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 4096
                          },
                          "storage_path": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 4096
                          },
                          "sha256": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 4096
                          },
                          "copy_verification": {
                            "type": "object",
                            "additionalProperties": false,
                            "properties": {
                              "status": {
                                "type": "string",
                                "const": "verified"
                              },
                              "sha256": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 4096
                              },
                              "storage_path": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "minLength": 1,
                                "maxLength": 4096
                              },
                              "stored_url": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 4096
                              },
                              "size_bytes": {
                                "type": "integer"
                              },
                              "checked_at": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 4096
                              },
                              "detail": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 4096
                              }
                            }
                          }
                        }
                      }
                    },
                    "attribution": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "client_url": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 4096
                          },
                          "source_url": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 4096
                          },
                          "sha256": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 4096
                          },
                          "alt_text": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "minLength": 1,
                            "maxLength": 4096
                          },
                          "source": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 4096
                          },
                          "attribution": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "evidence_kind",
                              "association_note"
                            ],
                            "properties": {
                              "evidence_kind": {
                                "type": "string",
                                "enum": [
                                  "manufacturer",
                                  "seller",
                                  "other"
                                ]
                              },
                              "association_note": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 2000
                              },
                              "document_url": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 4096
                              },
                              "page": {
                                "type": "integer",
                                "minimum": 1
                              },
                              "crop": {
                                "type": "array",
                                "minItems": 4,
                                "maxItems": 4,
                                "items": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 1
                                },
                                "description": "[left,top,right,bottom] normalized bounds."
                              },
                              "rights_note": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 2000
                              }
                            }
                          },
                          "stored_url": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "minLength": 1,
                            "maxLength": 4096
                          }
                        }
                      }
                    },
                    "canonical_writes": {
                      "type": "boolean",
                      "const": false
                    },
                    "reversal": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "supported"
                      ],
                      "properties": {
                        "supported": {
                          "type": "boolean",
                          "const": false
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Missing scopes or current source/company administration"
          },
          "409": {
            "description": "Stale media, proof or request identity; review again"
          },
          "422": {
            "description": "Invalid request"
          },
          "503": {
            "description": "Deployment or upstream failure"
          }
        }
      }
    },
    "/api/v1/catalog-product-images/preview": {
      "post": {
        "operationId": "preview_catalog_product_image_selection",
        "summary": "preview catalog product image selection",
        "description": "Platform-admin-only online preview selecting or clearing one shared catalog image asset for a Grid product. Source must already match this item; a kit component photo requires representative=true. Reuses the existing Grid-stored original by checksum, retaining attribution. Source primary replacements do not change the selected asset. Subsequent edits to that asset appear in every view using it. Show exact previous/proposed selection and warnings for confirmation. No writes.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "catalog_item_id",
                  "source_item_id",
                  "representative",
                  "evidence_note"
                ],
                "properties": {
                  "catalog_item_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "source_item_id": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "format": "uuid"
                  },
                  "representative": {
                    "type": "boolean"
                  },
                  "evidence_note": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2000
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Authorized shared catalog product-image result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "current": {
                      "type": "object",
                      "additionalProperties": false,
                      "properties": {
                        "catalog_item_id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "name": {
                          "type": "string"
                        },
                        "image_asset_id": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "format": "uuid"
                        },
                        "image_asset_representative": {
                          "type": "boolean"
                        }
                      }
                    },
                    "proposed": {
                      "type": "object",
                      "additionalProperties": false,
                      "properties": {
                        "source": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "additionalProperties": false,
                          "properties": {
                            "sha256": {
                              "type": "string"
                            },
                            "original_storage_path": {
                              "type": "string"
                            },
                            "original_url": {
                              "type": "string"
                            },
                            "source_name": {
                              "type": "string"
                            },
                            "source_url": {
                              "type": "string"
                            }
                          }
                        },
                        "asset": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "additionalProperties": false,
                          "properties": {
                            "id": {
                              "type": "string",
                              "format": "uuid"
                            },
                            "original_references": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "additionalProperties": false,
                                "properties": {
                                  "storage_path": {
                                    "type": "string"
                                  },
                                  "url": {
                                    "type": "string"
                                  }
                                }
                              }
                            },
                            "sha256": {
                              "type": "string"
                            },
                            "original_storage_path": {
                              "type": "string"
                            },
                            "original_url": {
                              "type": "string"
                            },
                            "edited_storage_path": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "mask_document": {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "operations": {
                                  "type": "array",
                                  "items": {
                                    "type": "object"
                                  }
                                },
                                "edge": {
                                  "type": "number"
                                },
                                "feather": {
                                  "type": "number"
                                }
                              }
                            },
                            "edit_revision": {
                              "type": "string",
                              "format": "uuid"
                            },
                            "previous_edit_revision": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "format": "uuid"
                            },
                            "source_name": {
                              "type": "string"
                            },
                            "source_url": {
                              "type": "string"
                            },
                            "updated_by": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "format": "uuid"
                            },
                            "created_at": {
                              "type": "string"
                            },
                            "updated_at": {
                              "type": "string"
                            },
                            "deleted_at": {
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          }
                        },
                        "available_images": {
                          "type": "array",
                          "items": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "additionalProperties": false,
                            "properties": {
                              "sha256": {
                                "type": "string"
                              },
                              "original_storage_path": {
                                "type": "string"
                              },
                              "original_url": {
                                "type": "string"
                              },
                              "source_name": {
                                "type": "string"
                              },
                              "source_url": {
                                "type": "string"
                              }
                            }
                          }
                        },
                        "representative": {
                          "type": "boolean"
                        }
                      }
                    },
                    "previous": {
                      "type": "object",
                      "additionalProperties": false,
                      "properties": {
                        "catalog_item_id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "name": {
                          "type": "string"
                        },
                        "image_asset_id": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "format": "uuid"
                        },
                        "image_asset_representative": {
                          "type": "boolean"
                        }
                      }
                    },
                    "revision": {
                      "type": "string"
                    },
                    "preview_token": {
                      "type": "string"
                    },
                    "expires_at": {
                      "type": "string"
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "status": {
                      "type": "string"
                    },
                    "action_id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "request_id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "applied_at": {
                      "type": "string"
                    },
                    "catalog_item_id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "evidence_note": {
                      "type": "string"
                    },
                    "reversal": {
                      "type": "object",
                      "additionalProperties": false,
                      "properties": {
                        "supported": {
                          "type": "boolean",
                          "const": false
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Missing scopes or current source/company administration"
          },
          "409": {
            "description": "Stale media, proof or request identity; review again"
          },
          "422": {
            "description": "Invalid request"
          },
          "503": {
            "description": "Deployment or upstream failure"
          }
        }
      }
    },
    "/api/v1/catalog-product-images/apply": {
      "post": {
        "operationId": "apply_catalog_product_image_selection",
        "summary": "apply catalog product image selection",
        "description": "Apply only the exact explicitly confirmed product-image selection with unchanged intent/token, stable request_id and confirm_preview=true. Requires grid:read/grid:write and platform admin. Atomically checks source, product and asset revision; creates or reuses a shared asset without copying original bytes, registers the reviewed source’s stored gallery images as choices for offline display/editing, and records an idempotent receipt. Does not change kit composition or the shared brush state. No automatic reversal; preview the previous selection to restore it.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "catalog_item_id",
                  "source_item_id",
                  "representative",
                  "evidence_note",
                  "preview_token",
                  "request_id",
                  "confirm_preview"
                ],
                "properties": {
                  "catalog_item_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "source_item_id": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "format": "uuid"
                  },
                  "representative": {
                    "type": "boolean"
                  },
                  "evidence_note": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2000
                  },
                  "preview_token": {
                    "type": "string"
                  },
                  "request_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "confirm_preview": {
                    "type": "boolean",
                    "const": true
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Authorized shared catalog product-image result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "current": {
                      "type": "object",
                      "additionalProperties": false,
                      "properties": {
                        "catalog_item_id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "name": {
                          "type": "string"
                        },
                        "image_asset_id": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "format": "uuid"
                        },
                        "image_asset_representative": {
                          "type": "boolean"
                        }
                      }
                    },
                    "proposed": {
                      "type": "object",
                      "additionalProperties": false,
                      "properties": {
                        "source": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "additionalProperties": false,
                          "properties": {
                            "sha256": {
                              "type": "string"
                            },
                            "original_storage_path": {
                              "type": "string"
                            },
                            "original_url": {
                              "type": "string"
                            },
                            "source_name": {
                              "type": "string"
                            },
                            "source_url": {
                              "type": "string"
                            }
                          }
                        },
                        "asset": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "additionalProperties": false,
                          "properties": {
                            "id": {
                              "type": "string",
                              "format": "uuid"
                            },
                            "original_references": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "additionalProperties": false,
                                "properties": {
                                  "storage_path": {
                                    "type": "string"
                                  },
                                  "url": {
                                    "type": "string"
                                  }
                                }
                              }
                            },
                            "sha256": {
                              "type": "string"
                            },
                            "original_storage_path": {
                              "type": "string"
                            },
                            "original_url": {
                              "type": "string"
                            },
                            "edited_storage_path": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "mask_document": {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "operations": {
                                  "type": "array",
                                  "items": {
                                    "type": "object"
                                  }
                                },
                                "edge": {
                                  "type": "number"
                                },
                                "feather": {
                                  "type": "number"
                                }
                              }
                            },
                            "edit_revision": {
                              "type": "string",
                              "format": "uuid"
                            },
                            "previous_edit_revision": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "format": "uuid"
                            },
                            "source_name": {
                              "type": "string"
                            },
                            "source_url": {
                              "type": "string"
                            },
                            "updated_by": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "format": "uuid"
                            },
                            "created_at": {
                              "type": "string"
                            },
                            "updated_at": {
                              "type": "string"
                            },
                            "deleted_at": {
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          }
                        },
                        "available_images": {
                          "type": "array",
                          "items": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "additionalProperties": false,
                            "properties": {
                              "sha256": {
                                "type": "string"
                              },
                              "original_storage_path": {
                                "type": "string"
                              },
                              "original_url": {
                                "type": "string"
                              },
                              "source_name": {
                                "type": "string"
                              },
                              "source_url": {
                                "type": "string"
                              }
                            }
                          }
                        },
                        "representative": {
                          "type": "boolean"
                        }
                      }
                    },
                    "previous": {
                      "type": "object",
                      "additionalProperties": false,
                      "properties": {
                        "catalog_item_id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "name": {
                          "type": "string"
                        },
                        "image_asset_id": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "format": "uuid"
                        },
                        "image_asset_representative": {
                          "type": "boolean"
                        }
                      }
                    },
                    "revision": {
                      "type": "string"
                    },
                    "preview_token": {
                      "type": "string"
                    },
                    "expires_at": {
                      "type": "string"
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "status": {
                      "type": "string"
                    },
                    "action_id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "request_id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "applied_at": {
                      "type": "string"
                    },
                    "catalog_item_id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "evidence_note": {
                      "type": "string"
                    },
                    "reversal": {
                      "type": "object",
                      "additionalProperties": false,
                      "properties": {
                        "supported": {
                          "type": "boolean",
                          "const": false
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Missing scopes or current source/company administration"
          },
          "409": {
            "description": "Stale media, proof or request identity; review again"
          },
          "422": {
            "description": "Invalid request"
          },
          "503": {
            "description": "Deployment or upstream failure"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  },
  "servers": [
    {
      "url": "https://with-grid.com"
    }
  ]
}

SHA-256: a013c4e255fe90504813f7aff647af17473cf39d8876f5bb38fd8e5cab8176b1