changedOutput schema / anyOf
Previous value: -[
- {
- "additionalProperties": false,
- "properties": {
- "assumptions": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "comparablesSummary": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "highRentPerSqm": {
- "type": "number"
- },
- "lowRentPerSqm": {
- "type": "number"
- },
- "medianRentPerSqm": {
- "type": "number"
- }
- },
- "required": [
- "medianRentPerSqm",
- "lowRentPerSqm",
- "highRentPerSqm"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "confidence": {
- "additionalProperties": false,
- "properties": {
- "level": {
- "enum": [
- "insufficient",
- "low",
- "medium",
- "high"
- ],
- "type": "string"
- },
- "reasons": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "score": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- }
- },
- "required": [
- "score",
- "level",
- "reasons"
- ],
- "type": "object"
- },
- "currency": {
- "const": "OMR",
- "type": "string"
- },
- "dataQuality": {
- "additionalProperties": false,
- "properties": {
- "dataFreshnessDays": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- },
- "latestDataDate": {
- "type": [
- "string",
- "null"
- ]
- },
- "sampleSize": {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "sourceTypes": {
- "items": {
- "enum": [
- "official_statistics",
- "listing_asking_price",
- "manual_benchmark",
- "partner_feed"
- ],
- "type": "string"
- },
- "type": "array"
- },
- "staleMarketData": {
- "type": "boolean"
- }
- },
- "required": [
- "latestDataDate",
- "dataFreshnessDays",
- "sampleSize",
- "sourceTypes",
- "staleMarketData"
- ],
- "type": "object"
- },
- "historicalSalesContext": {
- "additionalProperties": false,
- "properties": {
- "available": {
- "type": "boolean"
- },
- "latestRecordDate": {
- "type": [
- "string",
- "null"
- ]
- },
- "medianHistoricalPricePerSqmOMR": {
- "type": [
- "number",
- "null"
- ]
- },
- "oldestRecordDate": {
- "type": [
- "string",
- "null"
- ]
- },
- "phaseBreakdown": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "latestRecordDate": {
- "type": "string"
- },
- "medianPriceOMR": {
- "type": "number"
- },
- "medianPricePerSqmOMR": {
- "type": "number"
- },
- "oldestRecordDate": {
- "type": "string"
- },
- "phaseName": {
- "type": "string"
- },
- "recordCount": {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- }
- },
- "required": [
- "phaseName",
- "recordCount",
- "medianPriceOMR",
- "medianPricePerSqmOMR",
- "oldestRecordDate",
- "latestRecordDate"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "priceSemantics": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "recentComparableSales": {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "recentMedianPricePerSqmOMR": {
- "type": [
- "number",
- "null"
- ]
- },
- "recordsAvailable": {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "sourceTypes": {
- "items": {
- "type": "string"
- },
- "type": "array"
- }
- },
- "required": [
- "available",
- "recordsAvailable",
- "recentComparableSales",
- "medianHistoricalPricePerSqmOMR",
- "recentMedianPricePerSqmOMR",
- "oldestRecordDate",
- "latestRecordDate",
- "sourceTypes",
- "priceSemantics",
- "phaseBreakdown"
- ],
- "type": "object"
- },
- "insufficientMarketData": {
- "type": "boolean"
- },
- "investment": {
- "additionalProperties": false,
- "properties": {
- "estimatedNetIncomeOMR": {
- "type": [
- "number",
- "null"
- ]
- },
- "estimatedOperatingCostOMR": {
- "type": "number"
- },
- "grossYieldPct": {
- "type": [
- "number",
- "null"
- ]
- },
- "netYieldPct": {
- "type": [
- "number",
- "null"
- ]
- }
- },
- "required": [
- "grossYieldPct",
- "estimatedOperatingCostOMR",
- "estimatedNetIncomeOMR",
- "netYieldPct"
- ],
- "type": "object"
- },
- "market": {
- "additionalProperties": false,
- "properties": {
- "comparableCount": {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "dataFreshnessDays": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- },
- "estimatedAnnualRentOMR": {
- "type": [
- "number",
- "null"
- ]
- },
- "estimatedMonthlyRentOMR": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "high": {
- "type": "number"
- },
- "low": {
- "type": "number"
- },
- "median": {
- "type": "number"
- }
- },
- "required": [
- "low",
- "median",
- "high"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "sampleSizeUsed": {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- }
- },
- "required": [
- "estimatedMonthlyRentOMR",
- "estimatedAnnualRentOMR",
- "comparableCount",
- "sampleSizeUsed",
- "dataFreshnessDays"
- ],
- "type": "object"
- },
- "normalizedLocation": {
- "additionalProperties": false,
- "properties": {
- "area": {
- "type": "string"
- },
- "governorate": {
- "type": "string"
- },
- "inputArea": {
- "type": "string"
- },
- "matchType": {
- "enum": [
- "exact",
- "alias",
- "unmatched"
- ],
- "type": "string"
- },
- "supported": {
- "type": "boolean"
- },
- "wilayat": {
- "type": "string"
- }
- },
- "required": [
- "governorate",
- "wilayat",
- "area",
- "inputArea",
- "matchType",
- "supported"
- ],
- "type": "object"
- },
- "officialMarketContext": {
- "additionalProperties": false,
- "properties": {
- "available": {
- "type": "boolean"
- },
- "confidence": {
- "additionalProperties": false,
- "properties": {
- "level": {
- "enum": [
- "unavailable",
- "low",
- "medium",
- "high"
- ],
- "type": "string"
- },
- "reasons": {
- "items": {
- "type": "string"
- },
- "type": "array"
- }
- },
- "required": [
- "level",
- "reasons"
- ],
- "type": "object"
- },
- "dataFreshnessDays": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- },
- "governorate": {
- "type": "string"
- },
- "marketActivity": {
- "additionalProperties": false,
- "properties": {
- "mortgageContracts": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- },
- "saleContracts": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- },
- "tradedValueOMR": {
- "type": [
- "number",
- "null"
- ]
- }
- },
- "required": [
- "tradedValueOMR",
- "saleContracts",
- "mortgageContracts"
- ],
- "type": "object"
- },
- "period": {
- "type": [
- "string",
- "null"
- ]
- },
- "provenance": {
- "additionalProperties": false,
- "properties": {
- "datasetId": {
- "type": [
- "string",
- "null"
- ]
- },
- "datasetTitle": {
- "type": [
- "string",
- "null"
- ]
- },
- "license": {
- "type": "string"
- },
- "publishedAt": {
- "type": [
- "string",
- "null"
- ]
- },
- "retrievedAt": {
- "type": [
- "string",
- "null"
- ]
- },
- "source": {
- "type": "string"
- },
- "sourceType": {
- "const": "official_statistics",
- "type": "string"
- },
- "sourceUrl": {
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "source",
- "sourceType",
- "datasetId",
- "datasetTitle",
- "retrievedAt",
- "publishedAt",
- "sourceUrl",
- "license"
- ],
- "type": "object"
- },
- "realEstatePriceIndex": {
- "additionalProperties": false,
- "properties": {
- "period": {
- "type": [
- "string",
- "null"
- ]
- },
- "value": {
- "type": [
- "number",
- "null"
- ]
- }
- },
- "required": [
- "value",
- "period"
- ],
- "type": "object"
- },
- "reason": {
- "anyOf": [
- {
- "enum": [
- "ncsi_not_configured",
- "no_data_for_governorate",
- "ncsi_timeout",
- "ncsi_malformed_response",
- "official_source_temporarily_unavailable"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "source": {
- "type": "string"
- },
- "sourceType": {
- "const": "official_statistics",
- "type": "string"
- }
- },
- "required": [
- "available",
- "reason",
- "source",
- "sourceType",
- "governorate",
- "period",
- "realEstatePriceIndex",
- "marketActivity",
- "dataFreshnessDays",
- "confidence",
- "provenance"
- ],
- "type": "object"
- },
- "pricePosition": {
- "additionalProperties": false,
- "properties": {
- "askingPricePerSqmOMR": {
- "type": "number"
- },
- "marketPosition": {
- "enum": [
- "below_market",
- "at_market",
- "above_market",
- "insufficient_data"
- ],
- "type": "string"
- },
- "observedComparableRange": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "high": {
- "type": "number"
- },
- "low": {
- "type": "number"
- },
- "median": {
- "type": "number"
- }
- },
- "required": [
- "low",
- "median",
- "high"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "askingPricePerSqmOMR",
- "observedComparableRange",
- "marketPosition"
- ],
- "type": "object"
- },
- "provenance": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "recordCount": {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "sourceDate": {
- "type": "string"
- },
- "sourceName": {
- "type": "string"
- },
- "sourceType": {
- "enum": [
- "official_statistics",
- "listing_asking_price",
- "manual_benchmark",
- "partner_feed"
- ],
- "type": "string"
- }
- },
- "required": [
- "sourceType",
- "sourceName",
- "sourceDate",
- "recordCount"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "riskFlags": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "subjectProperty": {
- "additionalProperties": false,
- "properties": {
- "askingPriceOMR": {
- "type": "number"
- },
- "bathrooms": {
- "type": [
- "number",
- "null"
- ]
- },
- "bedrooms": {
- "type": [
- "number",
- "null"
- ]
- },
- "furnished": {
- "enum": [
- "furnished",
- "semi_furnished",
- "unfurnished",
- "unspecified"
- ],
- "type": "string"
- },
- "propertyType": {
- "enum": [
- "apartment",
- "villa",
- "townhouse"
- ],
- "type": "string"
- },
- "sizeSqm": {
- "type": "number"
- }
- },
- "required": [
- "propertyType",
- "bedrooms",
- "bathrooms",
- "sizeSqm",
- "askingPriceOMR",
- "furnished"
- ],
- "type": "object"
- },
- "unavailableOutputs": {
- "items": {
- "type": "string"
- },
- "type": "array"
- }
- },
- "required": [
- "normalizedLocation",
- "subjectProperty",
- "market",
- "investment",
- "pricePosition",
- "comparablesSummary",
- "riskFlags",
- "confidence",
- "provenance",
- "assumptions",
- "insufficientMarketData",
- "unavailableOutputs",
- "currency",
- "dataQuality",
- "historicalSalesContext",
- "officialMarketContext"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "nextAction": {
- "additionalProperties": false,
- "properties": {
- "instruction": {
- "type": "string"
- },
- "target": {
- "const": "x402_endpoint",
- "type": "string"
- },
- "type": {
- "const": "pay_and_retry",
- "type": "string"
- }
- },
- "required": [
- "type",
- "target",
- "instruction"
- ],
- "type": "object"
- },
- "payment": {
- "additionalProperties": false,
- "properties": {
- "endpoint": {
- "type": "string"
- },
- "method": {
- "const": "POST",
- "type": "string"
- },
- "retrySameBody": {
- "const": true,
- "type": "boolean"
- }
- },
- "required": [
- "endpoint",
- "method",
- "retrySameBody"
- ],
- "type": "object"
- },
- "preview": {
- "additionalProperties": false,
- "properties": {
- "fullResultAvailable": {
- "const": true,
- "type": "boolean"
- },
- "inputAccepted": {
- "const": true,
- "type": "boolean"
- },
- "summary": {
- "type": "string"
- },
- "useCases": {
- "items": {
- "type": "string"
- },
- "type": "array"
- }
- },
- "required": [
- "inputAccepted",
- "fullResultAvailable",
- "summary",
- "useCases"
- ],
- "type": "object"
- },
- "price": {
- "additionalProperties": false,
- "properties": {
- "amount": {
- "minimum": 0,
- "type": "number"
- },
- "currency": {
- "type": "string"
- },
- "protocol": {
- "const": "x402",
- "type": "string"
- }
- },
- "required": [
- "amount",
- "currency",
- "protocol"
- ],
- "type": "object"
- },
- "requestId": {
- "type": "string"
- },
- "status": {
- "const": "payment_required",
- "type": "string"
- },
- "tool": {
- "type": "string"
- }
- },
- "required": [
- "status",
- "tool",
- "requestId",
- "price",
- "preview",
- "payment",
- "nextAction"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "additionalProperties": false,
+ "properties": {
+ "assumptions": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "comparablesSummary": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "highRentPerSqm": {
+ "type": "number"
+ },
+ "lowRentPerSqm": {
+ "type": "number"
+ },
+ "medianRentPerSqm": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "medianRentPerSqm",
+ "lowRentPerSqm",
+ "highRentPerSqm"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "confidence": {
+ "additionalProperties": false,
+ "properties": {
+ "level": {
+ "enum": [
+ "insufficient",
+ "low",
+ "medium",
+ "high"
+ ],
+ "type": "string"
+ },
+ "reasons": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "score": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ }
+ },
+ "required": [
+ "score",
+ "level",
+ "reasons"
+ ],
+ "type": "object"
+ },
+ "currency": {
+ "const": "OMR",
+ "type": "string"
+ },
+ "dataQuality": {
+ "additionalProperties": false,
+ "properties": {
+ "dataFreshnessDays": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "latestDataDate": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "sampleSize": {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "sourceTypes": {
+ "items": {
+ "enum": [
+ "official_statistics",
+ "listing_asking_price",
+ "manual_benchmark",
+ "partner_feed"
+ ],
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "staleMarketData": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "latestDataDate",
+ "dataFreshnessDays",
+ "sampleSize",
+ "sourceTypes",
+ "staleMarketData"
+ ],
+ "type": "object"
+ },
+ "historicalSalesContext": {
+ "additionalProperties": false,
+ "properties": {
+ "available": {
+ "type": "boolean"
+ },
+ "latestRecordDate": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "medianHistoricalPricePerSqmOMR": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "oldestRecordDate": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "phaseBreakdown": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "latestRecordDate": {
+ "type": "string"
+ },
+ "medianPriceOMR": {
+ "type": "number"
+ },
+ "medianPricePerSqmOMR": {
+ "type": "number"
+ },
+ "oldestRecordDate": {
+ "type": "string"
+ },
+ "phaseName": {
+ "type": "string"
+ },
+ "recordCount": {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "phaseName",
+ "recordCount",
+ "medianPriceOMR",
+ "medianPricePerSqmOMR",
+ "oldestRecordDate",
+ "latestRecordDate"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "priceSemantics": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "recentComparableSales": {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "recentMedianPricePerSqmOMR": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "recordsAvailable": {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "sourceTypes": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "available",
+ "recordsAvailable",
+ "recentComparableSales",
+ "medianHistoricalPricePerSqmOMR",
+ "recentMedianPricePerSqmOMR",
+ "oldestRecordDate",
+ "latestRecordDate",
+ "sourceTypes",
+ "priceSemantics",
+ "phaseBreakdown"
+ ],
+ "type": "object"
+ },
+ "insufficientMarketData": {
+ "type": "boolean"
+ },
+ "investment": {
+ "additionalProperties": false,
+ "properties": {
+ "estimatedNetIncomeOMR": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "estimatedOperatingCostOMR": {
+ "type": "number"
+ },
+ "grossYieldPct": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "netYieldPct": {
+ "type": [
+ "number",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "grossYieldPct",
+ "estimatedOperatingCostOMR",
+ "estimatedNetIncomeOMR",
+ "netYieldPct"
+ ],
+ "type": "object"
+ },
+ "market": {
+ "additionalProperties": false,
+ "properties": {
+ "comparableCount": {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "dataFreshnessDays": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "estimatedAnnualRentOMR": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "estimatedMonthlyRentOMR": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "high": {
+ "type": "number"
+ },
+ "low": {
+ "type": "number"
+ },
+ "median": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "low",
+ "median",
+ "high"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "sampleSizeUsed": {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "estimatedMonthlyRentOMR",
+ "estimatedAnnualRentOMR",
+ "comparableCount",
+ "sampleSizeUsed",
+ "dataFreshnessDays"
+ ],
+ "type": "object"
+ },
+ "normalizedLocation": {
+ "additionalProperties": false,
+ "properties": {
+ "area": {
+ "type": "string"
+ },
+ "governorate": {
+ "type": "string"
+ },
+ "inputArea": {
+ "type": "string"
+ },
+ "matchType": {
+ "enum": [
+ "exact",
+ "alias",
+ "unmatched"
+ ],
+ "type": "string"
+ },
+ "supported": {
+ "type": "boolean"
+ },
+ "wilayat": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "governorate",
+ "wilayat",
+ "area",
+ "inputArea",
+ "matchType",
+ "supported"
+ ],
+ "type": "object"
+ },
+ "officialMarketContext": {
+ "additionalProperties": false,
+ "properties": {
+ "available": {
+ "type": "boolean"
+ },
+ "confidence": {
+ "additionalProperties": false,
+ "properties": {
+ "level": {
+ "enum": [
+ "unavailable",
+ "low",
+ "medium",
+ "high"
+ ],
+ "type": "string"
+ },
+ "reasons": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "level",
+ "reasons"
+ ],
+ "type": "object"
+ },
+ "dataFreshnessDays": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "governorate": {
+ "type": "string"
+ },
+ "marketActivity": {
+ "additionalProperties": false,
+ "properties": {
+ "mortgageContracts": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "saleContracts": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "tradedValueOMR": {
+ "type": [
+ "number",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "tradedValueOMR",
+ "saleContracts",
+ "mortgageContracts"
+ ],
+ "type": "object"
+ },
+ "period": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "provenance": {
+ "additionalProperties": false,
+ "properties": {
+ "datasetId": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "datasetTitle": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "license": {
+ "type": "string"
+ },
+ "publishedAt": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "retrievedAt": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "source": {
+ "type": "string"
+ },
+ "sourceType": {
+ "const": "official_statistics",
+ "type": "string"
+ },
+ "sourceUrl": {
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "source",
+ "sourceType",
+ "datasetId",
+ "datasetTitle",
+ "retrievedAt",
+ "publishedAt",
+ "sourceUrl",
+ "license"
+ ],
+ "type": "object"
+ },
+ "realEstatePriceIndex": {
+ "additionalProperties": false,
+ "properties": {
+ "period": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "value": {
+ "type": [
+ "number",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "value",
+ "period"
+ ],
+ "type": "object"
+ },
+ "reason": {
+ "anyOf": [
+ {
+ "enum": [
+ "ncsi_not_configured",
+ "no_data_for_governorate",
+ "ncsi_timeout",
+ "ncsi_malformed_response",
+ "official_source_temporarily_unavailable"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "source": {
+ "type": "string"
+ },
+ "sourceType": {
+ "const": "official_statistics",
+ "type": "string"
+ }
+ },
+ "required": [
+ "available",
+ "reason",
+ "source",
+ "sourceType",
+ "governorate",
+ "period",
+ "realEstatePriceIndex",
+ "marketActivity",
+ "dataFreshnessDays",
+ "confidence",
+ "provenance"
+ ],
+ "type": "object"
+ },
+ "pricePosition": {
+ "additionalProperties": false,
+ "properties": {
+ "askingPricePerSqmOMR": {
+ "type": "number"
+ },
+ "marketPosition": {
+ "enum": [
+ "below_market",
+ "at_market",
+ "above_market",
+ "insufficient_data"
+ ],
+ "type": "string"
+ },
+ "observedComparableRange": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "high": {
+ "type": "number"
+ },
+ "low": {
+ "type": "number"
+ },
+ "median": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "low",
+ "median",
+ "high"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "askingPricePerSqmOMR",
+ "observedComparableRange",
+ "marketPosition"
+ ],
+ "type": "object"
+ },
+ "provenance": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "recordCount": {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "sourceDate": {
+ "type": "string"
+ },
+ "sourceName": {
+ "type": "string"
+ },
+ "sourceType": {
+ "enum": [
+ "official_statistics",
+ "listing_asking_price",
+ "manual_benchmark",
+ "partner_feed"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "sourceType",
+ "sourceName",
+ "sourceDate",
+ "recordCount"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "riskFlags": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "subjectProperty": {
+ "additionalProperties": false,
+ "properties": {
+ "askingPriceOMR": {
+ "type": "number"
+ },
+ "bathrooms": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "bedrooms": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "furnished": {
+ "enum": [
+ "furnished",
+ "semi_furnished",
+ "unfurnished",
+ "unspecified"
+ ],
+ "type": "string"
+ },
+ "propertyType": {
+ "enum": [
+ "apartment",
+ "villa",
+ "townhouse"
+ ],
+ "type": "string"
+ },
+ "sizeSqm": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "propertyType",
+ "bedrooms",
+ "bathrooms",
+ "sizeSqm",
+ "askingPriceOMR",
+ "furnished"
+ ],
+ "type": "object"
+ },
+ "unavailableOutputs": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "normalizedLocation",
+ "subjectProperty",
+ "market",
+ "investment",
+ "pricePosition",
+ "comparablesSummary",
+ "riskFlags",
+ "confidence",
+ "provenance",
+ "assumptions",
+ "insufficientMarketData",
+ "unavailableOutputs",
+ "currency",
+ "dataQuality",
+ "historicalSalesContext",
+ "officialMarketContext"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "nextAction": {
+ "additionalProperties": false,
+ "properties": {
+ "instruction": {
+ "type": "string"
+ },
+ "target": {
+ "enum": [
+ "x402_endpoint",
+ "mcp_credits_endpoint",
+ "payment_endpoint",
+ "unavailable"
+ ],
+ "type": "string"
+ },
+ "type": {
+ "enum": [
+ "pay_and_retry",
+ "authorize_and_use_mcp_credits",
+ "payment_unavailable"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "target",
+ "instruction"
+ ],
+ "type": "object"
+ },
+ "payment": {
+ "additionalProperties": false,
+ "properties": {
+ "endpoint": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "method": {
+ "const": "POST",
+ "type": "string"
+ },
+ "retrySameBody": {
+ "const": true,
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "endpoint",
+ "method",
+ "retrySameBody"
+ ],
+ "type": "object"
+ },
+ "paymentGuidance": {},
+ "preview": {
+ "additionalProperties": false,
+ "properties": {
+ "fullResultAvailable": {
+ "const": true,
+ "type": "boolean"
+ },
+ "inputAccepted": {
+ "const": true,
+ "type": "boolean"
+ },
+ "summary": {
+ "type": "string"
+ },
+ "useCases": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "inputAccepted",
+ "fullResultAvailable",
+ "summary",
+ "useCases"
+ ],
+ "type": "object"
+ },
+ "price": {
+ "additionalProperties": false,
+ "properties": {
+ "amount": {
+ "minimum": 0,
+ "type": "number"
+ },
+ "currency": {
+ "type": "string"
+ },
+ "protocol": {
+ "enum": [
+ "x402",
+ "api_credits",
+ "subscription",
+ "l402",
+ "mpp",
+ "unavailable"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "amount",
+ "currency",
+ "protocol"
+ ],
+ "type": "object"
+ },
+ "requestId": {
+ "type": "string"
+ },
+ "status": {
+ "const": "payment_required",
+ "type": "string"
+ },
+ "tool": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "status",
+ "tool",
+ "requestId",
+ "price",
+ "preview",
+ "payment",
+ "nextAction"
+ ],
+ "type": "object"
+ }
+]