{
  "$defs": {
    "AccountStatusSummary": {
      "description": "ACCOUNT_STATUS_CHANGED: NORMAL | AT_RISK | DEACTIVATED.",
      "properties": {
        "asin": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "currentStatus": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "previousStatus": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "severity": {
          "description": "critical (red) | warning (orange) | info (blue) | recovery (green).",
          "enum": [
            "critical",
            "warning",
            "info",
            "recovery"
          ],
          "type": "string"
        },
        "sku": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "text": {
          "description": "One readable line — what the chat card shows.",
          "type": "string"
        }
      },
      "required": [
        "text",
        "severity"
      ],
      "title": "AccountStatusSummary",
      "type": "object"
    },
    "AmazonPart": {
      "description": "Amazon's notification: its top-level fields, each value verbatim.",
      "properties": {
        "eventTime": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Amazon's EventTime, verbatim."
        },
        "notificationMetadata": {
          "additionalProperties": true,
          "type": "object"
        },
        "notificationType": {
          "type": "string"
        },
        "notificationVersion": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "payload": {
          "additionalProperties": true,
          "type": "object"
        },
        "payloadVersion": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "notificationType"
      ],
      "title": "AmazonPart",
      "type": "object"
    },
    "B2BOffersSummary": {
      "description": "B2B_ANY_OFFER_CHANGED: the B2B Buy Box, your B2B offer, up to five competitors.",
      "properties": {
        "asin": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "buyBox": {
          "anyOf": [
            {
              "$ref": "#/$defs/BuyBox"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "competitors": {
          "items": {
            "$ref": "#/$defs/Offer"
          },
          "maxItems": 5,
          "type": "array"
        },
        "numberOfOffers": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Every B2B offer on the ASIN."
        },
        "severity": {
          "description": "critical (red) | warning (orange) | info (blue) | recovery (green).",
          "enum": [
            "critical",
            "warning",
            "info",
            "recovery"
          ],
          "type": "string"
        },
        "sku": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "text": {
          "description": "One readable line — what the chat card shows.",
          "type": "string"
        },
        "yourOffer": {
          "anyOf": [
            {
              "$ref": "#/$defs/Offer"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "text",
        "severity"
      ],
      "title": "B2BOffersSummary",
      "type": "object"
    },
    "BrandContentSummary": {
      "description": "BRANDED_ITEM_CONTENT_CHANGE: which attributes of the brand's catalog item changed.",
      "properties": {
        "asin": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "attributesChanged": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "brandName": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "severity": {
          "description": "critical (red) | warning (orange) | info (blue) | recovery (green).",
          "enum": [
            "critical",
            "warning",
            "info",
            "recovery"
          ],
          "type": "string"
        },
        "sku": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "text": {
          "description": "One readable line — what the chat card shows.",
          "type": "string"
        }
      },
      "required": [
        "text",
        "severity"
      ],
      "title": "BrandContentSummary",
      "type": "object"
    },
    "BuyBox": {
      "properties": {
        "isYours": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "price": {
          "anyOf": [
            {
              "$ref": "#/$defs/Money"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "The Buy Box landed price."
        },
        "sellerId": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "The winner, when an offer Amazon listed holds it."
        }
      },
      "title": "BuyBox",
      "type": "object"
    },
    "DataKioskQuerySummary": {
      "description": "DATA_KIOSK_QUERY_PROCESSING_FINISHED: a Data Kiosk query finished.",
      "properties": {
        "asin": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "dataDocumentId": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "None when the query matched no data."
        },
        "errorDocumentId": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "nextToken": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Set when the result has more pages."
        },
        "processingStatus": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "DONE, CANCELLED, FATAL."
        },
        "queryId": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "severity": {
          "description": "critical (red) | warning (orange) | info (blue) | recovery (green).",
          "enum": [
            "critical",
            "warning",
            "info",
            "recovery"
          ],
          "type": "string"
        },
        "sku": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "text": {
          "description": "One readable line — what the chat card shows.",
          "type": "string"
        }
      },
      "required": [
        "text",
        "severity"
      ],
      "title": "DataKioskQuerySummary",
      "type": "object"
    },
    "ExternalShipmentSummary": {
      "description": "EXTERNAL_FULFILLMENT_SHIPMENT_STATUS_CHANGE: a shipment of the seller's own location.",
      "properties": {
        "asin": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "channelName": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "locationId": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "severity": {
          "description": "critical (red) | warning (orange) | info (blue) | recovery (green).",
          "enum": [
            "critical",
            "warning",
            "info",
            "recovery"
          ],
          "type": "string"
        },
        "shipmentId": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "shipmentStatus": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "sku": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "text": {
          "description": "One readable line — what the chat card shows.",
          "type": "string"
        }
      },
      "required": [
        "text",
        "severity"
      ],
      "title": "ExternalShipmentSummary",
      "type": "object"
    },
    "FBAInventorySummary": {
      "description": "FBA_INVENTORY_AVAILABILITY_CHANGES: the SKU's FBA quantities, summed and per marketplace.",
      "properties": {
        "asin": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "fnsku": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "fulfillable": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "inbound": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Working + shipped + receiving."
        },
        "marketplaces": {
          "items": {
            "$ref": "#/$defs/FBAMarketplaceInventory"
          },
          "type": "array"
        },
        "reserved": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "severity": {
          "description": "critical (red) | warning (orange) | info (blue) | recovery (green).",
          "enum": [
            "critical",
            "warning",
            "info",
            "recovery"
          ],
          "type": "string"
        },
        "sku": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "text": {
          "description": "One readable line — what the chat card shows.",
          "type": "string"
        },
        "unfulfillable": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "text",
        "severity"
      ],
      "title": "FBAInventorySummary",
      "type": "object"
    },
    "FBAMarketplaceInventory": {
      "properties": {
        "countryCode": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "fulfillable": {
          "default": 0,
          "type": "integer"
        },
        "inbound": {
          "default": 0,
          "type": "integer"
        },
        "marketplaceId": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "reserved": {
          "default": 0,
          "type": "integer"
        },
        "unfulfillable": {
          "default": 0,
          "type": "integer"
        }
      },
      "title": "FBAMarketplaceInventory",
      "type": "object"
    },
    "FBAOutboundShipmentSummary": {
      "description": "FBA_OUTBOUND_SHIPMENT_STATUS: a shipment Amazon created or cancelled for an order.",
      "properties": {
        "amazonOrderId": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "amazonShipmentId": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "asin": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "severity": {
          "description": "critical (red) | warning (orange) | info (blue) | recovery (green).",
          "enum": [
            "critical",
            "warning",
            "info",
            "recovery"
          ],
          "type": "string"
        },
        "shipmentStatus": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "sku": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "text": {
          "description": "One readable line — what the chat card shows.",
          "type": "string"
        }
      },
      "required": [
        "text",
        "severity"
      ],
      "title": "FBAOutboundShipmentSummary",
      "type": "object"
    },
    "FeePromotionSummary": {
      "description": "FEE_PROMOTION: the promotion, its window and its first discount.",
      "properties": {
        "asin": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Amazon's FeePromotionTypeDescription."
        },
        "discountAmount": {
          "anyOf": [
            {
              "$ref": "#/$defs/Money"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "discountType": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "discountValue": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "effectiveFrom": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "effectiveThrough": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "feeType": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "promotionType": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Amazon's FeePromotionType."
        },
        "severity": {
          "description": "critical (red) | warning (orange) | info (blue) | recovery (green).",
          "enum": [
            "critical",
            "warning",
            "info",
            "recovery"
          ],
          "type": "string"
        },
        "sku": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "text": {
          "description": "One readable line — what the chat card shows.",
          "type": "string"
        }
      },
      "required": [
        "text",
        "severity"
      ],
      "title": "FeePromotionSummary",
      "type": "object"
    },
    "FeedFinishedSummary": {
      "description": "FEED_PROCESSING_FINISHED: a feed finished.",
      "properties": {
        "asin": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "feedId": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "feedType": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "processingStatus": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "DONE, CANCELLED, FATAL."
        },
        "resultFeedDocumentId": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "severity": {
          "description": "critical (red) | warning (orange) | info (blue) | recovery (green).",
          "enum": [
            "critical",
            "warning",
            "info",
            "recovery"
          ],
          "type": "string"
        },
        "sku": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "text": {
          "description": "One readable line — what the chat card shows.",
          "type": "string"
        }
      },
      "required": [
        "text",
        "severity"
      ],
      "title": "FeedFinishedSummary",
      "type": "object"
    },
    "FulfillmentOrderSummary": {
      "description": "FULFILLMENT_ORDER_STATUS: a Multi-Channel Fulfillment order, its packages and tracking.",
      "properties": {
        "asin": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "eventType": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "orderId": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "packages": {
          "items": {
            "$ref": "#/$defs/Package"
          },
          "maxItems": 20,
          "type": "array"
        },
        "sellerSkus": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "severity": {
          "description": "critical (red) | warning (orange) | info (blue) | recovery (green).",
          "enum": [
            "critical",
            "warning",
            "info",
            "recovery"
          ],
          "type": "string"
        },
        "sku": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "status": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "PROCESSING, COMPLETE, COMPLETE_PARTIAL, CANCELLED, UNFULFILLABLE, INVALID."
        },
        "text": {
          "description": "One readable line — what the chat card shows.",
          "type": "string"
        }
      },
      "required": [
        "text",
        "severity"
      ],
      "title": "FulfillmentOrderSummary",
      "type": "object"
    },
    "HourlyInventorySummary": {
      "description": "ITEM_INVENTORY_EVENT_CHANGE: the hour's highly available inventory over every ASIN listed.",
      "properties": {
        "asin": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "asinCount": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "endTime": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "highlyAvailableInventory": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "severity": {
          "description": "critical (red) | warning (orange) | info (blue) | recovery (green).",
          "enum": [
            "critical",
            "warning",
            "info",
            "recovery"
          ],
          "type": "string"
        },
        "sku": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "startTime": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "text": {
          "description": "One readable line — what the chat card shows.",
          "type": "string"
        }
      },
      "required": [
        "text",
        "severity"
      ],
      "title": "HourlyInventorySummary",
      "type": "object"
    },
    "HourlySalesSummary": {
      "description": "ITEM_SALES_EVENT_CHANGE: the hour's ordered units and revenue over every ASIN listed.",
      "properties": {
        "asin": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "asinCount": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "endTime": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "orderedRevenue": {
          "description": "One per currency.",
          "items": {
            "$ref": "#/$defs/Money"
          },
          "type": "array"
        },
        "orderedUnits": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "severity": {
          "description": "critical (red) | warning (orange) | info (blue) | recovery (green).",
          "enum": [
            "critical",
            "warning",
            "info",
            "recovery"
          ],
          "type": "string"
        },
        "sku": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "startTime": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "text": {
          "description": "One readable line — what the chat card shows.",
          "type": "string"
        }
      },
      "required": [
        "text",
        "severity"
      ],
      "title": "HourlySalesSummary",
      "type": "object"
    },
    "HourlyTrafficSummary": {
      "description": "DETAIL_PAGE_TRAFFIC_EVENT: the hour's detail page views over every ASIN listed.",
      "properties": {
        "asin": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "asinCount": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "endTime": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "glanceViews": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "severity": {
          "description": "critical (red) | warning (orange) | info (blue) | recovery (green).",
          "enum": [
            "critical",
            "warning",
            "info",
            "recovery"
          ],
          "type": "string"
        },
        "sku": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "startTime": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "text": {
          "description": "One readable line — what the chat card shows.",
          "type": "string"
        }
      },
      "required": [
        "text",
        "severity"
      ],
      "title": "HourlyTrafficSummary",
      "type": "object"
    },
    "ListingIssuesSummary": {
      "description": "LISTINGS_ITEM_ISSUES_CHANGE: the issue severities and enforcement actions now in force.",
      "properties": {
        "asin": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "cleared": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "True when no issue remains."
        },
        "enforcementActions": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "severities": {
          "description": "Amazon's Severities[] (ERROR, WARNING; NONE dropped).",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "severity": {
          "description": "critical (red) | warning (orange) | info (blue) | recovery (green).",
          "enum": [
            "critical",
            "warning",
            "info",
            "recovery"
          ],
          "type": "string"
        },
        "sku": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "text": {
          "description": "One readable line — what the chat card shows.",
          "type": "string"
        }
      },
      "required": [
        "text",
        "severity"
      ],
      "title": "ListingIssuesSummary",
      "type": "object"
    },
    "ListingStatusSummary": {
      "description": "LISTINGS_ITEM_STATUS_CHANGE: the listing's CURRENT status set.",
      "properties": {
        "asin": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "buyable": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "deleted": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "discoverable": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "severity": {
          "description": "critical (red) | warning (orange) | info (blue) | recovery (green).",
          "enum": [
            "critical",
            "warning",
            "info",
            "recovery"
          ],
          "type": "string"
        },
        "sku": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "status": {
          "description": "Amazon's Status[] — BUYABLE, DISCOVERABLE, DELETED.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "text": {
          "description": "One readable line — what the chat card shows.",
          "type": "string"
        }
      },
      "required": [
        "text",
        "severity"
      ],
      "title": "ListingStatusSummary",
      "type": "object"
    },
    "Message": {
      "allOf": [
        {
          "if": {
            "properties": {
              "messageType": {
                "const": "LISTINGS_ITEM_STATUS_CHANGE"
              }
            },
            "required": [
              "messageType"
            ]
          },
          "then": {
            "properties": {
              "summary": {
                "$ref": "#/$defs/ListingStatusSummary"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "messageType": {
                "const": "LISTINGS_ITEM_ISSUES_CHANGE"
              }
            },
            "required": [
              "messageType"
            ]
          },
          "then": {
            "properties": {
              "summary": {
                "$ref": "#/$defs/ListingIssuesSummary"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "messageType": {
                "const": "BRANDED_ITEM_CONTENT_CHANGE"
              }
            },
            "required": [
              "messageType"
            ]
          },
          "then": {
            "properties": {
              "summary": {
                "$ref": "#/$defs/BrandContentSummary"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "messageType": {
                "const": "PRICING_HEALTH"
              }
            },
            "required": [
              "messageType"
            ]
          },
          "then": {
            "properties": {
              "summary": {
                "$ref": "#/$defs/PricingHealthSummary"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "messageType": {
                "const": "ACCOUNT_STATUS_CHANGED"
              }
            },
            "required": [
              "messageType"
            ]
          },
          "then": {
            "properties": {
              "summary": {
                "$ref": "#/$defs/AccountStatusSummary"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "messageType": {
                "const": "ANY_OFFER_CHANGED"
              }
            },
            "required": [
              "messageType"
            ]
          },
          "then": {
            "properties": {
              "summary": {
                "$ref": "#/$defs/OffersSummary"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "messageType": {
                "const": "ITEM_PRODUCT_TYPE_CHANGE"
              }
            },
            "required": [
              "messageType"
            ]
          },
          "then": {
            "properties": {
              "summary": {
                "$ref": "#/$defs/ProductTypeChangeSummary"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "messageType": {
                "const": "LISTINGS_ITEM_MFN_QUANTITY_CHANGE"
              }
            },
            "required": [
              "messageType"
            ]
          },
          "then": {
            "properties": {
              "summary": {
                "$ref": "#/$defs/MfnQuantitySummary"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "messageType": {
                "const": "PRODUCT_TYPE_DEFINITIONS_CHANGE"
              }
            },
            "required": [
              "messageType"
            ]
          },
          "then": {
            "properties": {
              "summary": {
                "$ref": "#/$defs/ProductTypeDefinitionsSummary"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "messageType": {
                "const": "B2B_ANY_OFFER_CHANGED"
              }
            },
            "required": [
              "messageType"
            ]
          },
          "then": {
            "properties": {
              "summary": {
                "$ref": "#/$defs/B2BOffersSummary"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "messageType": {
                "const": "FEE_PROMOTION"
              }
            },
            "required": [
              "messageType"
            ]
          },
          "then": {
            "properties": {
              "summary": {
                "$ref": "#/$defs/FeePromotionSummary"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "messageType": {
                "const": "ORDER_CHANGE"
              }
            },
            "required": [
              "messageType"
            ]
          },
          "then": {
            "properties": {
              "summary": {
                "$ref": "#/$defs/OrderChangeSummary"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "messageType": {
                "const": "FULFILLMENT_ORDER_STATUS"
              }
            },
            "required": [
              "messageType"
            ]
          },
          "then": {
            "properties": {
              "summary": {
                "$ref": "#/$defs/FulfillmentOrderSummary"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "messageType": {
                "const": "FBA_OUTBOUND_SHIPMENT_STATUS"
              }
            },
            "required": [
              "messageType"
            ]
          },
          "then": {
            "properties": {
              "summary": {
                "$ref": "#/$defs/FBAOutboundShipmentSummary"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "messageType": {
                "const": "EXTERNAL_FULFILLMENT_SHIPMENT_STATUS_CHANGE"
              }
            },
            "required": [
              "messageType"
            ]
          },
          "then": {
            "properties": {
              "summary": {
                "$ref": "#/$defs/ExternalShipmentSummary"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "messageType": {
                "const": "FBA_INVENTORY_AVAILABILITY_CHANGES"
              }
            },
            "required": [
              "messageType"
            ]
          },
          "then": {
            "properties": {
              "summary": {
                "$ref": "#/$defs/FBAInventorySummary"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "messageType": {
                "const": "ITEM_INVENTORY_EVENT_CHANGE"
              }
            },
            "required": [
              "messageType"
            ]
          },
          "then": {
            "properties": {
              "summary": {
                "$ref": "#/$defs/HourlyInventorySummary"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "messageType": {
                "const": "ITEM_SALES_EVENT_CHANGE"
              }
            },
            "required": [
              "messageType"
            ]
          },
          "then": {
            "properties": {
              "summary": {
                "$ref": "#/$defs/HourlySalesSummary"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "messageType": {
                "const": "DETAIL_PAGE_TRAFFIC_EVENT"
              }
            },
            "required": [
              "messageType"
            ]
          },
          "then": {
            "properties": {
              "summary": {
                "$ref": "#/$defs/HourlyTrafficSummary"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "messageType": {
                "const": "TRANSACTION_UPDATE"
              }
            },
            "required": [
              "messageType"
            ]
          },
          "then": {
            "properties": {
              "summary": {
                "$ref": "#/$defs/TransactionSummary"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "messageType": {
                "const": "TAX_INVOICE_ISSUANCE_STATUS"
              }
            },
            "required": [
              "messageType"
            ]
          },
          "then": {
            "properties": {
              "summary": {
                "$ref": "#/$defs/TaxInvoiceSummary"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "messageType": {
                "const": "TAX_INVOICE_ISSUANCE_ELIGIBILITY_STATUS_CHANGE"
              }
            },
            "required": [
              "messageType"
            ]
          },
          "then": {
            "properties": {
              "summary": {
                "$ref": "#/$defs/TaxInvoiceEligibilitySummary"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "messageType": {
                "const": "TAX_INVOICE_EXPORT_STATUS_CHANGE"
              }
            },
            "required": [
              "messageType"
            ]
          },
          "then": {
            "properties": {
              "summary": {
                "$ref": "#/$defs/TaxInvoiceExportSummary"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "messageType": {
                "const": "REPORT_PROCESSING_FINISHED"
              }
            },
            "required": [
              "messageType"
            ]
          },
          "then": {
            "properties": {
              "summary": {
                "$ref": "#/$defs/ReportFinishedSummary"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "messageType": {
                "const": "FEED_PROCESSING_FINISHED"
              }
            },
            "required": [
              "messageType"
            ]
          },
          "then": {
            "properties": {
              "summary": {
                "$ref": "#/$defs/FeedFinishedSummary"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "messageType": {
                "const": "DATA_KIOSK_QUERY_PROCESSING_FINISHED"
              }
            },
            "required": [
              "messageType"
            ]
          },
          "then": {
            "properties": {
              "summary": {
                "$ref": "#/$defs/DataKioskQuerySummary"
              }
            }
          }
        }
      ],
      "properties": {
        "amazon": {
          "$ref": "#/$defs/AmazonPart"
        },
        "eventTime": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "fingerprint": {
          "anyOf": [
            {
              "pattern": "^sha256:[0-9a-f]{64}$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Equal for the same fact re-published by Amazon."
        },
        "messageId": {
          "description": "Amazon's NotificationId — the receiver's dedupe key.",
          "type": "string"
        },
        "messageType": {
          "description": "Amazon's NotificationType.",
          "type": "string"
        },
        "publishTime": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "receivedAt": {
          "format": "date-time",
          "type": "string"
        },
        "store": {
          "anyOf": [
            {
              "$ref": "#/$defs/StoreRef"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "summary": {
          "anyOf": [
            {
              "$ref": "#/$defs/ListingStatusSummary"
            },
            {
              "$ref": "#/$defs/ListingIssuesSummary"
            },
            {
              "$ref": "#/$defs/BrandContentSummary"
            },
            {
              "$ref": "#/$defs/PricingHealthSummary"
            },
            {
              "$ref": "#/$defs/AccountStatusSummary"
            },
            {
              "$ref": "#/$defs/OffersSummary"
            },
            {
              "$ref": "#/$defs/ProductTypeChangeSummary"
            },
            {
              "$ref": "#/$defs/MfnQuantitySummary"
            },
            {
              "$ref": "#/$defs/ProductTypeDefinitionsSummary"
            },
            {
              "$ref": "#/$defs/B2BOffersSummary"
            },
            {
              "$ref": "#/$defs/FeePromotionSummary"
            },
            {
              "$ref": "#/$defs/OrderChangeSummary"
            },
            {
              "$ref": "#/$defs/FulfillmentOrderSummary"
            },
            {
              "$ref": "#/$defs/FBAOutboundShipmentSummary"
            },
            {
              "$ref": "#/$defs/ExternalShipmentSummary"
            },
            {
              "$ref": "#/$defs/FBAInventorySummary"
            },
            {
              "$ref": "#/$defs/HourlySalesSummary"
            },
            {
              "$ref": "#/$defs/HourlyInventorySummary"
            },
            {
              "$ref": "#/$defs/HourlyTrafficSummary"
            },
            {
              "$ref": "#/$defs/TransactionSummary"
            },
            {
              "$ref": "#/$defs/TaxInvoiceSummary"
            },
            {
              "$ref": "#/$defs/TaxInvoiceEligibilitySummary"
            },
            {
              "$ref": "#/$defs/TaxInvoiceExportSummary"
            },
            {
              "$ref": "#/$defs/ReportFinishedSummary"
            },
            {
              "$ref": "#/$defs/FeedFinishedSummary"
            },
            {
              "$ref": "#/$defs/DataKioskQuerySummary"
            },
            {
              "$ref": "#/$defs/Summary"
            }
          ],
          "description": "Typed by messageType (Message.allOf): each known type's own summary model; any other type carries the common part (text, severity, sku, asin)."
        }
      },
      "required": [
        "messageId",
        "messageType",
        "receivedAt",
        "summary",
        "amazon"
      ],
      "title": "Message",
      "type": "object"
    },
    "MfnQuantitySummary": {
      "description": "LISTINGS_ITEM_MFN_QUANTITY_CHANGE: the self-fulfilled quantity of the SKU now.",
      "properties": {
        "asin": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "fulfillmentChannelCode": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Amazon's FulfillmentChannelCode — DEFAULT is the seller's own fulfillment."
        },
        "quantity": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "severity": {
          "description": "critical (red) | warning (orange) | info (blue) | recovery (green).",
          "enum": [
            "critical",
            "warning",
            "info",
            "recovery"
          ],
          "type": "string"
        },
        "sku": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "text": {
          "description": "One readable line — what the chat card shows.",
          "type": "string"
        }
      },
      "required": [
        "text",
        "severity"
      ],
      "title": "MfnQuantitySummary",
      "type": "object"
    },
    "Money": {
      "properties": {
        "amount": {
          "type": "number"
        },
        "currencyCode": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "amount"
      ],
      "title": "Money",
      "type": "object"
    },
    "Offer": {
      "properties": {
        "feedbackCount": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "feedbackRating": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Positive feedback, percent."
        },
        "fulfillment": {
          "anyOf": [
            {
              "enum": [
                "FBA",
                "FBM"
              ],
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "isBuyBoxWinner": {
          "default": false,
          "type": "boolean"
        },
        "price": {
          "anyOf": [
            {
              "$ref": "#/$defs/Money"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "The listing price."
        },
        "sellerId": {
          "type": "string"
        },
        "shipping": {
          "anyOf": [
            {
              "$ref": "#/$defs/Money"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "sellerId"
      ],
      "title": "Offer",
      "type": "object"
    },
    "OffersSummary": {
      "description": "ANY_OFFER_CHANGED: the Buy Box, your offer, up to five competitors.",
      "properties": {
        "asin": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "buyBox": {
          "anyOf": [
            {
              "$ref": "#/$defs/BuyBox"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "buyBoxWinnerChanged": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "changeType": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Amazon's OfferChangeType."
        },
        "competitors": {
          "items": {
            "$ref": "#/$defs/Offer"
          },
          "maxItems": 5,
          "type": "array"
        },
        "numberOfOffers": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Every offer on the ASIN, all conditions and channels."
        },
        "sellersChanged": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "The set of sellers differs from the previous message."
        },
        "severity": {
          "description": "critical (red) | warning (orange) | info (blue) | recovery (green).",
          "enum": [
            "critical",
            "warning",
            "info",
            "recovery"
          ],
          "type": "string"
        },
        "sku": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "text": {
          "description": "One readable line — what the chat card shows.",
          "type": "string"
        },
        "yourOffer": {
          "anyOf": [
            {
              "$ref": "#/$defs/Offer"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "text",
        "severity"
      ],
      "title": "OffersSummary",
      "type": "object"
    },
    "OrderChangeSummary": {
      "description": "ORDER_CHANGE: the order's status now and what changed.",
      "properties": {
        "amazonOrderId": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "asin": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "buyerRequestedCancel": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "An item of the order says the buyer asked to cancel."
        },
        "changeReason": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "changeType": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "BuyerRequestedChange, OrderStatusChange, DeliveryTipChange."
        },
        "fulfillmentType": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "AFN (FBA) or MFN (FBM)."
        },
        "orderStatus": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "sellerSkus": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "severity": {
          "description": "critical (red) | warning (orange) | info (blue) | recovery (green).",
          "enum": [
            "critical",
            "warning",
            "info",
            "recovery"
          ],
          "type": "string"
        },
        "sku": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "text": {
          "description": "One readable line — what the chat card shows.",
          "type": "string"
        }
      },
      "required": [
        "text",
        "severity"
      ],
      "title": "OrderChangeSummary",
      "type": "object"
    },
    "Package": {
      "properties": {
        "carrierCode": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "packageId": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "status": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "trackingNumber": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "title": "Package",
      "type": "object"
    },
    "PricingHealthSummary": {
      "description": "PRICING_HEALTH: why the offer cannot be the featured offer, and the reference prices.",
      "properties": {
        "asin": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "competitivePriceThreshold": {
          "anyOf": [
            {
              "$ref": "#/$defs/Money"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "fulfillmentType": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "AFN (FBA) or MFN (FBM)."
        },
        "issueType": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "referencePrices": {
          "additionalProperties": {
            "$ref": "#/$defs/Money"
          },
          "description": "Every reference price Amazon sent, under Amazon's name (averageSellingPrice, retailOfferPrice, msrpPrice, …).",
          "type": "object"
        },
        "severity": {
          "description": "critical (red) | warning (orange) | info (blue) | recovery (green).",
          "enum": [
            "critical",
            "warning",
            "info",
            "recovery"
          ],
          "type": "string"
        },
        "sku": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "text": {
          "description": "One readable line — what the chat card shows.",
          "type": "string"
        },
        "yourPrice": {
          "anyOf": [
            {
              "$ref": "#/$defs/Money"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Your landed price (listing + shipping)."
        }
      },
      "required": [
        "text",
        "severity"
      ],
      "title": "PricingHealthSummary",
      "type": "object"
    },
    "ProductTypeChangeSummary": {
      "description": "ITEM_PRODUCT_TYPE_CHANGE: the ASIN's product type, before and now.",
      "properties": {
        "asin": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "currentProductType": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "previousProductType": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "severity": {
          "description": "critical (red) | warning (orange) | info (blue) | recovery (green).",
          "enum": [
            "critical",
            "warning",
            "info",
            "recovery"
          ],
          "type": "string"
        },
        "sku": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "text": {
          "description": "One readable line — what the chat card shows.",
          "type": "string"
        }
      },
      "required": [
        "text",
        "severity"
      ],
      "title": "ProductTypeChangeSummary",
      "type": "object"
    },
    "ProductTypeDefinitionsSummary": {
      "description": "PRODUCT_TYPE_DEFINITIONS_CHANGE: a new version of the marketplace's definitions.",
      "properties": {
        "asin": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "newProductTypes": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "productTypeVersion": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "severity": {
          "description": "critical (red) | warning (orange) | info (blue) | recovery (green).",
          "enum": [
            "critical",
            "warning",
            "info",
            "recovery"
          ],
          "type": "string"
        },
        "sku": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "text": {
          "description": "One readable line — what the chat card shows.",
          "type": "string"
        }
      },
      "required": [
        "text",
        "severity"
      ],
      "title": "ProductTypeDefinitionsSummary",
      "type": "object"
    },
    "ReportFinishedSummary": {
      "description": "REPORT_PROCESSING_FINISHED: a report request finished.",
      "properties": {
        "asin": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "processingStatus": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "DONE, CANCELLED, FATAL."
        },
        "reportDocumentId": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "reportId": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "reportType": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "severity": {
          "description": "critical (red) | warning (orange) | info (blue) | recovery (green).",
          "enum": [
            "critical",
            "warning",
            "info",
            "recovery"
          ],
          "type": "string"
        },
        "sku": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "text": {
          "description": "One readable line — what the chat card shows.",
          "type": "string"
        }
      },
      "required": [
        "text",
        "severity"
      ],
      "title": "ReportFinishedSummary",
      "type": "object"
    },
    "StoreRef": {
      "description": "The store the message is about, and the marketplace Amazon named.",
      "properties": {
        "connected": {
          "description": "True when the store has connected this marketplace in SellerSheet; false for a region-wide message about a marketplace it has not.",
          "type": "boolean"
        },
        "countryCode": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "The marketplace's country code."
        },
        "marketplaceId": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Amazon's marketplace id."
        },
        "ref": {
          "description": "The store ref `<store>-<CC>` (e.g. 'myStore-AE') — the store name and the message's marketplace country code.",
          "type": "string"
        },
        "sellerId": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Amazon's seller (merchant) id."
        },
        "storeId": {
          "description": "SellerSheet's store id (a UUID).",
          "type": "string"
        }
      },
      "required": [
        "storeId",
        "ref",
        "connected"
      ],
      "title": "StoreRef",
      "type": "object"
    },
    "Summary": {
      "description": "What every summary carries; the whole summary of a type without a model of its own.",
      "properties": {
        "asin": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "severity": {
          "description": "critical (red) | warning (orange) | info (blue) | recovery (green).",
          "enum": [
            "critical",
            "warning",
            "info",
            "recovery"
          ],
          "type": "string"
        },
        "sku": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "text": {
          "description": "One readable line — what the chat card shows.",
          "type": "string"
        }
      },
      "required": [
        "text",
        "severity"
      ],
      "title": "Summary",
      "type": "object"
    },
    "TaxInvoiceEligibilitySummary": {
      "description": "TAX_INVOICE_ISSUANCE_ELIGIBILITY_STATUS_CHANGE: may the seller issue invoices for an\noperation.",
      "properties": {
        "asin": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "message": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Amazon's reason, en-US."
        },
        "operation": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "inbound, outbound-fba-offers, c-returns, removals."
        },
        "severity": {
          "description": "critical (red) | warning (orange) | info (blue) | recovery (green).",
          "enum": [
            "critical",
            "warning",
            "info",
            "recovery"
          ],
          "type": "string"
        },
        "sku": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "status": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "BLOCKED or ALLOWED."
        },
        "text": {
          "description": "One readable line — what the chat card shows.",
          "type": "string"
        }
      },
      "required": [
        "text",
        "severity"
      ],
      "title": "TaxInvoiceEligibilitySummary",
      "type": "object"
    },
    "TaxInvoiceExportSummary": {
      "description": "TAX_INVOICE_EXPORT_STATUS_CHANGE: an invoice export's status.",
      "properties": {
        "asin": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "exportId": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "severity": {
          "description": "critical (red) | warning (orange) | info (blue) | recovery (green).",
          "enum": [
            "critical",
            "warning",
            "info",
            "recovery"
          ],
          "type": "string"
        },
        "sku": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "status": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "REQUESTED, PROCESSING, DONE, ERROR."
        },
        "text": {
          "description": "One readable line — what the chat card shows.",
          "type": "string"
        }
      },
      "required": [
        "text",
        "severity"
      ],
      "title": "TaxInvoiceExportSummary",
      "type": "object"
    },
    "TaxInvoiceSummary": {
      "description": "TAX_INVOICE_ISSUANCE_STATUS: an invoice issued, or the tax authority's refusal.",
      "properties": {
        "asin": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "errorCode": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "govResponse": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "The tax authority's answer."
        },
        "invoiceDate": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "invoiceId": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "orderId": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "severity": {
          "description": "critical (red) | warning (orange) | info (blue) | recovery (green).",
          "enum": [
            "critical",
            "warning",
            "info",
            "recovery"
          ],
          "type": "string"
        },
        "sku": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "status": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "SUCCESS or ERROR."
        },
        "text": {
          "description": "One readable line — what the chat card shows.",
          "type": "string"
        }
      },
      "required": [
        "text",
        "severity"
      ],
      "title": "TaxInvoiceSummary",
      "type": "object"
    },
    "TransactionSummary": {
      "description": "TRANSACTION_UPDATE: a transaction posted to the seller's account.",
      "properties": {
        "accountType": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "asin": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "postedDate": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "relatedIdentifiers": {
          "additionalProperties": {
            "type": "string"
          },
          "description": "Amazon's RelatedIdentifiers, name → value (OrderId, …).",
          "type": "object"
        },
        "severity": {
          "description": "critical (red) | warning (orange) | info (blue) | recovery (green).",
          "enum": [
            "critical",
            "warning",
            "info",
            "recovery"
          ],
          "type": "string"
        },
        "sku": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "text": {
          "description": "One readable line — what the chat card shows.",
          "type": "string"
        },
        "totalAmount": {
          "anyOf": [
            {
              "$ref": "#/$defs/Money"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "transactionType": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "text",
        "severity"
      ],
      "title": "TransactionSummary",
      "type": "object"
    }
  },
  "$id": "https://api.sellersheetai.com/schemas/webhooks-v1.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "description": "The JSON body of one SellerSheet Webhooks HTTPS delivery: up to 100 messages (at most 1 MB) in one POST, Content-Type application/json. Headers: X-SellerSheet-Webhook-Id, X-SellerSheet-Delivery-Id, X-SellerSheet-Timestamp, X-SellerSheet-Signature = \"sha256=\" + the hex HMAC-SHA256, under your webhook secret, of the X-SellerSheet-Timestamp value, a \".\", and the raw body; and X-SellerSheet-Test on a test delivery. A retry re-sends the same deliveryId with attempt + 1; a message is identified by messageId (Amazon's NotificationId), and fingerprint is equal for the same fact re-published by Amazon. `amazon` is Amazon's notification, each value verbatim — the source of truth; `summary` is typed by messageType (the allOf of Message). Objects are not closed: ignore a key you do not know. One sample per message type: https://api.sellersheetai.com/schemas/webhooks-v1-samples.json",
  "properties": {
    "attempt": {
      "minimum": 1,
      "type": "integer"
    },
    "deliveryId": {
      "type": "string"
    },
    "messages": {
      "items": {
        "$ref": "#/$defs/Message"
      },
      "type": "array"
    },
    "organizationId": {
      "type": "string"
    },
    "schemaVersion": {
      "const": 1,
      "default": 1,
      "type": "integer"
    },
    "sentAt": {
      "format": "date-time",
      "type": "string"
    },
    "webhookId": {
      "type": "string"
    }
  },
  "required": [
    "deliveryId",
    "webhookId",
    "organizationId",
    "sentAt",
    "attempt",
    "messages"
  ],
  "title": "SellerSheet Webhooks — HTTPS delivery (schemaVersion 1)",
  "type": "object"
}
