{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/casafari/json-schema/casafari-alerts-api-create-alert-feed-request-schema-schema.json",
  "title": "CreateAlertFeedRequestSchema",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/casafari-alerts-api-feeds-api-openapi.yml#/components/schemas/AlertsApiCreateAlertFeedRequestSchema",
  "properties": {
    "feed_name": {
      "type": "string",
      "maxLength": 255,
      "minLength": 1,
      "title": "Feed Name"
    },
    "filters": {
      "$ref": "#/$defs/AlertsApiAlertFeedFiltersSchema"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "feed_name",
    "filters"
  ],
  "$defs": {
    "AlertsApiAlertFeedFiltersSchema": {
      "properties": {
        "location_ids": {
          "anyOf": [
            {
              "items": {
                "type": "integer"
              },
              "type": "array",
              "maxItems": 100,
              "minItems": 1
            },
            {
              "type": "null"
            }
          ],
          "title": "Location Ids"
        },
        "types": {
          "anyOf": [
            {
              "items": {
                "$ref": "#/$defs/AlertsApiEstateTypeEnum"
              },
              "type": "array",
              "minItems": 1
            },
            {
              "type": "null"
            }
          ],
          "title": "Types"
        },
        "business_type": {
          "$ref": "#/$defs/AlertsApiOperationEnum"
        },
        "statuses": {
          "anyOf": [
            {
              "items": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/AlertsApiSaleStatusEnum"
                  },
                  {
                    "$ref": "#/$defs/AlertsApiRentStatusEnum"
                  }
                ]
              },
              "type": "array",
              "minItems": 1
            },
            {
              "type": "null"
            }
          ],
          "title": "Statuses"
        },
        "alert_subtypes": {
          "anyOf": [
            {
              "items": {
                "$ref": "#/$defs/AlertsApiAlertSubtypeEnum"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Alert Subtypes"
        },
        "custom_locations": {
          "anyOf": [
            {
              "items": {
                "items": {
                  "$ref": "#/$defs/AlertsApiCoordinatesDto"
                },
                "type": "array",
                "maxItems": 25,
                "minItems": 4
              },
              "type": "array",
              "maxItems": 4,
              "minItems": 1
            },
            {
              "type": "null"
            }
          ],
          "title": "Custom Locations",
          "description": "List of closed polygons of geo-points to search within. Each polygon must contain at least 4 points. First and last points must match in each polygon. Maximum 4 polygons allowed."
        },
        "private": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Private"
        },
        "price_range": {
          "anyOf": [
            {
              "$ref": "#/$defs/AlertsApisrc__structures__schemas__ranges__IntRangeSchema__1"
            },
            {
              "type": "null"
            }
          ]
        },
        "price_psqm_range": {
          "anyOf": [
            {
              "$ref": "#/$defs/AlertsApisrc__structures__schemas__ranges__IntRangeSchema__2"
            },
            {
              "type": "null"
            }
          ]
        },
        "bathrooms_range": {
          "anyOf": [
            {
              "$ref": "#/$defs/AlertsApisrc__structures__schemas__ranges__IntRangeSchema__3"
            },
            {
              "type": "null"
            }
          ]
        },
        "bedrooms_range": {
          "anyOf": [
            {
              "$ref": "#/$defs/AlertsApisrc__structures__schemas__ranges__IntRangeSchema__4"
            },
            {
              "type": "null"
            }
          ]
        },
        "total_area_range": {
          "anyOf": [
            {
              "$ref": "#/$defs/AlertsApisrc__structures__schemas__ranges__IntRangeSchema__5"
            },
            {
              "type": "null"
            }
          ]
        },
        "new_development": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "New Development"
        },
        "bank": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Bank"
        },
        "auction": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Auction"
        },
        "construction_year_range": {
          "anyOf": [
            {
              "$ref": "#/$defs/AlertsApisrc__structures__schemas__ranges__IntRangeSchema__6"
            },
            {
              "type": "null"
            }
          ]
        },
        "plot_area_range": {
          "anyOf": [
            {
              "$ref": "#/$defs/AlertsApisrc__structures__schemas__ranges__IntRangeSchema__7"
            },
            {
              "type": "null"
            }
          ]
        },
        "floors": {
          "anyOf": [
            {
              "items": {
                "$ref": "#/$defs/AlertsApiFloorCategoryEnum"
              },
              "type": "array",
              "minItems": 1
            },
            {
              "type": "null"
            }
          ],
          "title": "Floors"
        },
        "conditions": {
          "anyOf": [
            {
              "items": {
                "$ref": "#/$defs/AlertsApiConditionEnum"
              },
              "type": "array",
              "minItems": 1
            },
            {
              "type": "null"
            }
          ],
          "title": "Conditions"
        },
        "orientation": {
          "anyOf": [
            {
              "$ref": "#/$defs/AlertsApiOrientationEnum"
            },
            {
              "type": "null"
            }
          ]
        },
        "views": {
          "anyOf": [
            {
              "items": {
                "$ref": "#/$defs/AlertsApiViewEnum"
              },
              "type": "array",
              "minItems": 1
            },
            {
              "type": "null"
            }
          ],
          "title": "Views",
          "description": "A matching listing must have every requested view, not just one."
        },
        "directions": {
          "anyOf": [
            {
              "items": {
                "$ref": "#/$defs/AlertsApiDirectionEnum"
              },
              "type": "array",
              "minItems": 1
            },
            {
              "type": "null"
            }
          ],
          "title": "Directions",
          "description": "A matching listing must face every requested direction, not just one."
        },
        "characteristics": {
          "anyOf": [
            {
              "items": {
                "$ref": "#/$defs/AlertsApiCharacteristicEnum"
              },
              "type": "array",
              "minItems": 1
            },
            {
              "type": "null"
            }
          ],
          "title": "Characteristics",
          "description": "A matching listing must have every requested characteristic, not just one."
        },
        "has_phone": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Has Phone"
        },
        "has_email": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Has Email"
        },
        "has_agency_name": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Has Agency Name"
        },
        "ref_numbers": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array",
              "maxItems": 100,
              "minItems": 1
            },
            {
              "type": "null"
            }
          ],
          "title": "Ref Numbers"
        },
        "listing_ids": {
          "anyOf": [
            {
              "items": {
                "type": "integer"
              },
              "type": "array",
              "maxItems": 100,
              "minItems": 1
            },
            {
              "type": "null"
            }
          ],
          "title": "Listing Ids"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "business_type"
      ],
      "title": "AlertFeedFiltersSchema"
    },
    "AlertsApiAlertSubtypeEnum": {
      "type": "string",
      "enum": [
        "new",
        "price_up",
        "price_down",
        "reserved",
        "delisted",
        "sold"
      ],
      "title": "AlertSubtypeEnum"
    },
    "AlertsApiCharacteristicEnum": {
      "type": "string",
      "enum": [
        "balcony",
        "elevator",
        "no_elevator",
        "garage",
        "garden",
        "parking",
        "storage",
        "swimming_pool",
        "terrace",
        "rental_license",
        "furniture",
        "rented_out",
        "life_annuity"
      ],
      "title": "CharacteristicEnum"
    },
    "AlertsApiConditionEnum": {
      "type": "string",
      "enum": [
        "new",
        "used",
        "ruin",
        "very-good",
        "other"
      ],
      "title": "ConditionEnum"
    },
    "AlertsApiCoordinatesDto": {
      "properties": {
        "latitude": {
          "type": "number",
          "maximum": 90.0,
          "minimum": -90.0,
          "title": "Latitude"
        },
        "longitude": {
          "type": "number",
          "maximum": 180.0,
          "minimum": -180.0,
          "title": "Longitude"
        }
      },
      "type": "object",
      "required": [
        "latitude",
        "longitude"
      ],
      "title": "CoordinatesDto"
    },
    "AlertsApiDirectionEnum": {
      "type": "string",
      "enum": [
        "north",
        "south",
        "east",
        "west"
      ],
      "title": "DirectionEnum"
    },
    "AlertsApiEstateTypeEnum": {
      "type": "string",
      "enum": [
        "apartment",
        "studio",
        "duplex",
        "penthouse",
        "dachgeschosswohnung",
        "etagenwohnung",
        "erdgeschosswohnung",
        "country_house",
        "house",
        "palace",
        "townhouse",
        "villa",
        "country_estate",
        "chalet",
        "bungalow",
        "family_house",
        "reihenhaus",
        "reihenendhaus",
        "reihenmittelhaus",
        "einfamilienhaus",
        "zweifamilienhaus",
        "landwirtschaftliche_betriebe",
        "retail",
        "office",
        "industrial",
        "warehouse",
        "hotel",
        "building",
        "other_commercial",
        "restaurant",
        "werkstatt",
        "urban_plot",
        "rural_plot",
        "room",
        "parking",
        "garage",
        "other",
        "apartment_building",
        "office_building",
        "mix_use_building",
        "apartment_development",
        "house_development"
      ],
      "title": "EstateTypeEnum"
    },
    "AlertsApiFloorCategoryEnum": {
      "type": "string",
      "enum": [
        "no_floor",
        "ground",
        "middle",
        "top"
      ],
      "title": "FloorCategoryEnum"
    },
    "AlertsApiOperationEnum": {
      "type": "string",
      "enum": [
        "sale",
        "rent"
      ],
      "title": "OperationEnum"
    },
    "AlertsApiOrientationEnum": {
      "type": "string",
      "enum": [
        "exterior",
        "interior"
      ],
      "title": "OrientationEnum"
    },
    "AlertsApiRentStatusEnum": {
      "type": "string",
      "enum": [
        "active",
        "reserved",
        "rented",
        "hold",
        "none"
      ],
      "title": "RentStatusEnum"
    },
    "AlertsApiSaleStatusEnum": {
      "type": "string",
      "enum": [
        "active",
        "reserved",
        "sold",
        "hold",
        "none"
      ],
      "title": "SaleStatusEnum"
    },
    "AlertsApiViewEnum": {
      "type": "string",
      "enum": [
        "water",
        "landscape",
        "city",
        "golf",
        "park"
      ],
      "title": "ViewEnum"
    },
    "AlertsApisrc__structures__schemas__ranges__IntRangeSchema__1": {
      "properties": {
        "min": {
          "anyOf": [
            {
              "type": "integer",
              "maximum": 2147483647.0,
              "minimum": 1.0
            },
            {
              "type": "null"
            }
          ],
          "title": "Min"
        },
        "max": {
          "anyOf": [
            {
              "type": "integer",
              "maximum": 2147483647.0,
              "minimum": 1.0
            },
            {
              "type": "null"
            }
          ],
          "title": "Max"
        }
      },
      "type": "object",
      "title": "IntRangeSchema"
    },
    "AlertsApisrc__structures__schemas__ranges__IntRangeSchema__2": {
      "properties": {
        "min": {
          "anyOf": [
            {
              "type": "integer",
              "maximum": 2147483647.0,
              "minimum": 1.0
            },
            {
              "type": "null"
            }
          ],
          "title": "Min"
        },
        "max": {
          "anyOf": [
            {
              "type": "integer",
              "maximum": 2147483647.0,
              "minimum": 1.0
            },
            {
              "type": "null"
            }
          ],
          "title": "Max"
        }
      },
      "type": "object",
      "title": "IntRangeSchema"
    },
    "AlertsApisrc__structures__schemas__ranges__IntRangeSchema__3": {
      "properties": {
        "min": {
          "anyOf": [
            {
              "type": "integer",
              "maximum": 15000.0,
              "minimum": 1.0
            },
            {
              "type": "null"
            }
          ],
          "title": "Min"
        },
        "max": {
          "anyOf": [
            {
              "type": "integer",
              "maximum": 15000.0,
              "minimum": 1.0
            },
            {
              "type": "null"
            }
          ],
          "title": "Max"
        }
      },
      "type": "object",
      "title": "IntRangeSchema"
    },
    "AlertsApisrc__structures__schemas__ranges__IntRangeSchema__4": {
      "properties": {
        "min": {
          "anyOf": [
            {
              "type": "integer",
              "maximum": 15000.0,
              "minimum": 0.0
            },
            {
              "type": "null"
            }
          ],
          "title": "Min"
        },
        "max": {
          "anyOf": [
            {
              "type": "integer",
              "maximum": 15000.0,
              "minimum": 0.0
            },
            {
              "type": "null"
            }
          ],
          "title": "Max"
        }
      },
      "type": "object",
      "title": "IntRangeSchema"
    },
    "AlertsApisrc__structures__schemas__ranges__IntRangeSchema__5": {
      "properties": {
        "min": {
          "anyOf": [
            {
              "type": "integer",
              "maximum": 1000000.0,
              "minimum": 1.0
            },
            {
              "type": "null"
            }
          ],
          "title": "Min"
        },
        "max": {
          "anyOf": [
            {
              "type": "integer",
              "maximum": 1000000.0,
              "minimum": 1.0
            },
            {
              "type": "null"
            }
          ],
          "title": "Max"
        }
      },
      "type": "object",
      "title": "IntRangeSchema"
    },
    "AlertsApisrc__structures__schemas__ranges__IntRangeSchema__6": {
      "properties": {
        "min": {
          "anyOf": [
            {
              "type": "integer",
              "maximum": 3000.0,
              "minimum": 1.0
            },
            {
              "type": "null"
            }
          ],
          "title": "Min"
        },
        "max": {
          "anyOf": [
            {
              "type": "integer",
              "maximum": 3000.0,
              "minimum": 1.0
            },
            {
              "type": "null"
            }
          ],
          "title": "Max"
        }
      },
      "type": "object",
      "title": "IntRangeSchema"
    },
    "AlertsApisrc__structures__schemas__ranges__IntRangeSchema__7": {
      "properties": {
        "min": {
          "anyOf": [
            {
              "type": "integer",
              "maximum": 1000000.0,
              "minimum": 1.0
            },
            {
              "type": "null"
            }
          ],
          "title": "Min"
        },
        "max": {
          "anyOf": [
            {
              "type": "integer",
              "maximum": 1000000.0,
              "minimum": 1.0
            },
            {
              "type": "null"
            }
          ],
          "title": "Max"
        }
      },
      "type": "object",
      "title": "IntRangeSchema"
    }
  }
}