removedOutput schema / $defs
Removed value: -{
- "CostRange": {
- "properties": {
- "expected": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
- "type": "string"
- }
- ]
- },
- "high": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
- "type": "string"
- }
- ]
- },
- "low": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
- "type": "string"
- }
- ]
- }
- },
- "required": [
- "low",
- "expected",
- "high"
- ],
- "type": "object"
- },
- "Deprecation": {
- "properties": {
- "field": {
- "type": "string"
- },
- "until": {
- "format": "date",
- "type": "string"
- },
- "use": {
- "type": "string"
- }
- },
- "required": [
- "field",
- "until",
- "use"
- ],
- "type": "object"
- },
- "Extent": {
- "enum": [
- "spot",
- "partial",
- "full"
- ],
- "type": "string"
- },
- "FindingResolution": {
- "properties": {
- "code": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "confidence": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null
- },
- "confirmed": {
- "default": false,
- "type": "boolean"
- },
- "extent": {
- "anyOf": [
- {
- "$ref": "#/$defs/Extent"
- },
- {
- "type": "null"
- }
- ]
- },
- "finding_id": {
- "type": "string"
- },
- "issue_name": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null
- },
- "line_ids": {
- "default": [],
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "location": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null
- },
- "match_note": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null
- },
- "model": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null
- },
- "needs_review": {
- "default": false,
- "type": "boolean"
- },
- "not_billed_reason": {
- "anyOf": [
- {
- "enum": [
- "none",
- "ok",
- "done",
- "no_condition"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null
- },
- "resolution": {
- "enum": [
- "exact",
- "alias",
- "ai",
- "unmapped",
- "not_billed"
- ],
- "type": "string"
- },
- "suggested_codes": {
- "default": [],
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "suggestions": {
- "items": {
- "$ref": "#/$defs/Suggestion"
- },
- "type": "array"
- },
- "text": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null
- },
- "uncertain": {
- "default": false,
- "type": "boolean"
- }
- },
- "required": [
- "finding_id",
- "resolution",
- "code",
- "extent"
- ],
- "type": "object"
- },
- "Links": {
- "properties": {
- "downloads": {
- "additionalProperties": {
- "type": "string"
- },
- "type": "object"
- },
- "how_to_get_files": {
- "type": "string"
- },
- "web_tool": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null
- },
- "web_tool_prefilled": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null
- }
- },
- "required": [
- "how_to_get_files"
- ],
- "type": "object"
- },
- "Note": {
- "properties": {
- "code": {
- "type": "string"
- },
- "finding_ids": {
- "default": [],
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "line_ids": {
- "default": [],
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "message": {
- "type": "string"
- }
- },
- "required": [
- "code",
- "message"
- ],
- "type": "object"
- },
- "Phase": {
- "enum": [
- "assess",
- "trash_out",
- "repairs",
- "paint",
- "flooring",
- "appliances",
- "cleaning",
- "punch",
- "rekey"
- ],
- "type": "string"
- },
- "PriceBasis": {
- "enum": [
- "rate_card",
- "unit_price",
- "labor_derived",
- "placeholder"
- ],
- "type": "string"
- },
- "PriceTier": {
- "enum": [
- "bulk_contract",
- "pm_vendor",
- "retail_one_off"
- ],
- "type": "string"
- },
- "Priority": {
- "enum": [
- "must",
- "should",
- "could"
- ],
- "type": "string"
- },
- "Profile": {
- "enum": [
- "minimum",
- "standard",
- "premium"
- ],
- "type": "string"
- },
- "Provenance": {
- "properties": {
- "rules_as_of": {
- "anyOf": [
- {
- "format": "date",
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null
- },
- "ruleset_hash": {
- "type": "string"
- },
- "ruleset_id": {
- "type": "string"
- },
- "ruleset_version": {
- "type": "string"
- },
- "sources": {
- "items": {
- "$ref": "#/$defs/SourceRef"
- },
- "type": "array"
- }
- },
- "required": [
- "ruleset_id",
- "ruleset_version",
- "ruleset_hash",
- "sources"
- ],
- "type": "object"
- },
- "RateCardUse": {
- "properties": {
- "entry": {
- "type": "integer"
- },
- "lines": {
- "default": [],
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "note": {
- "type": "string"
- },
- "target": {
- "type": "string"
- }
- },
- "required": [
- "entry",
- "target",
- "note"
- ],
- "type": "object"
- },
- "Reading": {
- "properties": {
- "counts": {
- "$ref": "#/$defs/ReadingCounts"
- },
- "findings": {
- "items": {
- "additionalProperties": true,
- "type": "object"
- },
- "type": "array"
- },
- "id": {
- "type": "string"
- },
- "kind": {
- "enum": [
- "notes",
- "document"
- ],
- "type": "string"
- },
- "model": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null
- },
- "notes": {
- "items": {
- "$ref": "#/$defs/ReadingNote"
- },
- "type": "array"
- },
- "prompt_version": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null
- }
- },
- "required": [
- "id",
- "kind",
- "counts",
- "findings"
- ],
- "type": "object"
- },
- "ReadingCounts": {
- "properties": {
- "ai": {
- "type": "integer"
- },
- "parser": {
- "type": "integer"
- },
- "total": {
- "type": "integer"
- },
- "unmatched": {
- "type": "integer"
- }
- },
- "required": [
- "total",
- "ai",
- "parser",
- "unmatched"
- ],
- "type": "object"
- },
- "ReadingNote": {
- "properties": {
- "code": {
- "type": "string"
- },
- "finding_ids": {
- "default": [],
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "kind": {
- "enum": [
- "warning",
- "assumption"
- ],
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- },
- "required": [
- "kind",
- "code",
- "message"
- ],
- "type": "object"
- },
- "ReferOutNote": {
- "properties": {
- "blocks_phases": {
- "items": {
- "$ref": "#/$defs/Phase"
- },
- "type": "array"
- },
- "finding_ids": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "id": {
- "type": "string"
- },
- "kind": {
- "enum": [
- "assessment",
- "compliance"
- ],
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "professional": {
- "type": "string"
- },
- "reason": {
- "type": "string"
- },
- "sources": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "unconfirmed": {
- "default": false,
- "type": "boolean"
- }
- },
- "required": [
- "id",
- "name",
- "professional",
- "reason",
- "kind",
- "finding_ids",
- "blocks_phases",
- "sources"
- ],
- "type": "object"
- },
- "Region": {
- "properties": {
- "basis": {
- "enum": [
- "metro",
- "nonmetro",
- "national"
- ],
- "type": "string"
- },
- "cbsa": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null
- },
- "cbsa_name": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null
- },
- "vintage": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null
- },
- "zip3": {
- "type": "string"
- }
- },
- "required": [
- "zip3",
- "basis"
- ],
- "type": "object"
- },
- "Responsibility": {
- "enum": [
- "normal_wear",
- "likely_damage",
- "elective",
- "undetermined",
- "mixed"
- ],
- "type": "string"
- },
- "ResultSignature": {
- "properties": {
- "jws": {
- "type": "string"
- },
- "payload": {
- "$ref": "#/$defs/ResultSignaturePayload"
- },
- "verify_code": {
- "type": "string"
- },
- "verify_url": {
- "type": "string"
- }
- },
- "required": [
- "jws",
- "payload",
- "verify_code",
- "verify_url"
- ],
- "type": "object"
- },
- "ResultSignaturePayload": {
- "properties": {
- "capability": {
- "type": "string"
- },
- "engine_version": {
- "type": "string"
- },
- "issued_at": {
- "type": "string"
- },
- "kid": {
- "type": "string"
- },
- "operation": {
- "type": "string"
- },
- "result_hash": {
- "type": "string"
- },
- "ruleset_hash": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "ruleset_version": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "v": {
- "type": "integer"
- }
- },
- "required": [
- "v",
- "kid",
- "capability",
- "operation",
- "ruleset_version",
- "ruleset_hash",
- "engine_version",
- "result_hash",
- "issued_at"
- ],
- "type": "object"
- },
- "Review": {
- "properties": {
- "ai_read": {
- "default": 0,
- "type": "integer"
- },
- "note": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null
- },
- "reading_id": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null
- },
- "status": {
- "default": "verified",
- "enum": [
- "draft",
- "verified"
- ],
- "type": "string"
- }
- },
- "type": "object"
- },
- "RunInfo": {
- "properties": {
- "capability": {
- "type": "string"
- },
- "contract_version": {
- "type": "string"
- },
- "duration_ms": {
- "type": "integer"
- },
- "engine_version": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "operation": {
- "type": "string"
- },
- "received_at": {
- "format": "date-time",
- "type": "string"
- },
- "ruleset_hash": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "ruleset_version": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "id",
- "capability",
- "operation",
- "contract_version",
- "engine_version",
- "ruleset_version",
- "ruleset_hash",
- "received_at",
- "duration_ms"
- ],
- "type": "object"
- },
- "ScopeLine": {
- "properties": {
- "allowance": {
- "anyOf": [
- {
- "$ref": "#/$defs/CostRange"
- },
- {
- "type": "null"
- }
- ],
- "default": null
- },
- "confidence": {
- "enum": [
- "sourced",
- "industry_typical",
- "assumed"
- ],
- "type": "string"
- },
- "cost": {
- "$ref": "#/$defs/CostRange"
- },
- "decision": {
- "anyOf": [
- {
- "enum": [
- "approve",
- "decline",
- "defer"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null
- },
- "finding_ids": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "line_id": {
- "type": "string"
- },
- "location": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "needs_review": {
- "default": false,
- "type": "boolean"
- },
- "phase": {
- "$ref": "#/$defs/Phase"
- },
- "price_basis": {
- "$ref": "#/$defs/PriceBasis"
- },
- "priority": {
- "$ref": "#/$defs/Priority"
- },
- "quantity": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
- "type": "string"
- }
- ]
- },
- "quantity_source": {
- "enum": [
- "given",
- "converted",
- "derived",
- "fixed"
- ],
- "type": "string"
- },
- "refer_out": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null
- },
- "responsibility_by_finding": {
- "additionalProperties": {
- "$ref": "#/$defs/Responsibility"
- },
- "type": "object"
- },
- "responsibility_hint": {
- "$ref": "#/$defs/Responsibility"
- },
- "rule_ids": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "task_id": {
- "type": "string"
- },
- "to_confirm": {
- "default": false,
- "type": "boolean"
- },
- "trade": {
- "$ref": "#/$defs/Trade"
- },
- "unit_price": {
- "$ref": "#/$defs/CostRange"
- },
- "uom": {
- "$ref": "#/$defs/Uom"
- },
- "vendor_note": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null
- }
- },
- "required": [
- "line_id",
- "task_id",
- "name",
- "trade",
- "phase",
- "priority",
- "location",
- "finding_ids",
- "quantity",
- "uom",
- "quantity_source",
- "price_basis",
- "unit_price",
- "cost",
- "confidence",
- "responsibility_hint",
- "rule_ids"
- ],
- "type": "object"
- },
- "ScopeResult": {
- "properties": {
- "assumptions": {
- "items": {
- "$ref": "#/$defs/Note"
- },
- "type": "array"
- },
- "detail": {
- "enum": [
- "summary",
- "full"
- ],
- "type": "string"
- },
- "disclaimer": {
- "type": "string"
- },
- "findings": {
- "items": {
- "$ref": "#/$defs/FindingResolution"
- },
- "type": "array"
- },
- "lines": {
- "items": {
- "$ref": "#/$defs/ScopeLine"
- },
- "type": "array"
- },
- "lines_omitted": {
- "type": "integer"
- },
- "omitted_note": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null
- },
- "price_tier": {
- "$ref": "#/$defs/PriceTier",
- "default": "pm_vendor"
- },
- "profile": {
- "$ref": "#/$defs/Profile"
- },
- "provenance": {
- "$ref": "#/$defs/Provenance"
- },
- "rate_card_applied": {
- "items": {
- "$ref": "#/$defs/RateCardUse"
- },
- "type": "array"
- },
- "rate_card_ignored": {
- "items": {
- "$ref": "#/$defs/RateCardUse"
- },
- "type": "array"
- },
- "refer_outs": {
- "items": {
- "$ref": "#/$defs/ReferOutNote"
- },
- "type": "array"
- },
- "region": {
- "$ref": "#/$defs/Region"
- },
- "summary": {
- "type": "string"
- },
- "totals": {
- "$ref": "#/$defs/Totals"
- },
- "trade_scopes": {
- "items": {
- "$ref": "#/$defs/TradeScope"
- },
- "type": "array"
- },
- "unknowns": {
- "items": {
- "$ref": "#/$defs/Note"
- },
- "type": "array"
- },
- "warnings": {
- "items": {
- "$ref": "#/$defs/Note"
- },
- "type": "array"
- }
- },
- "required": [
- "summary",
- "disclaimer",
- "warnings",
- "totals",
- "refer_outs",
- "trade_scopes",
- "lines",
- "lines_omitted",
- "findings",
- "assumptions",
- "unknowns",
- "detail",
- "region",
- "profile",
- "provenance"
- ],
- "type": "object"
- },
- "SourceRef": {
- "properties": {
- "accessed": {
- "anyOf": [
- {
- "format": "date",
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null
- },
- "id": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "url": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null
- }
- },
- "required": [
- "id",
- "title"
- ],
- "type": "object"
- },
- "Suggestion": {
- "properties": {
- "code": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- },
- "required": [
- "code",
- "name"
- ],
- "type": "object"
- },
- "Totals": {
- "properties": {
- "allowances": {
- "$ref": "#/$defs/CostRange"
- },
- "approved": {
- "anyOf": [
- {
- "$ref": "#/$defs/CostRange"
- },
- {
- "type": "null"
- }
- ],
- "default": null
- },
- "could": {
- "$ref": "#/$defs/CostRange"
- },
- "must": {
- "$ref": "#/$defs/CostRange"
- },
- "note": {
- "default": "must, should and could are work lines only. visit_charges (minimum call-out and trip fees, once per trade) are added on top: subtotal = must + should + could + visit_charges; total = subtotal + tax. allowances and to_confirm (uncertain items) are outside the total.",
- "type": "string"
- },
- "should": {
- "$ref": "#/$defs/CostRange"
- },
- "subtotal": {
- "$ref": "#/$defs/CostRange"
- },
- "tax": {
- "$ref": "#/$defs/CostRange"
- },
- "to_confirm": {
- "$ref": "#/$defs/CostRange"
- },
- "total": {
- "$ref": "#/$defs/CostRange"
- },
- "visit_charges": {
- "$ref": "#/$defs/CostRange"
- }
- },
- "required": [
- "must",
- "should",
- "could",
- "visit_charges",
- "subtotal",
- "tax",
- "total"
- ],
- "type": "object"
- },
- "Trade": {
- "enum": [
- "hauling",
- "handyman",
- "drywall",
- "painter",
- "flooring",
- "carpet_cleaning",
- "cleaning",
- "appliance",
- "plumber",
- "electrician",
- "hvac",
- "locksmith",
- "pest_control",
- "landscaping",
- "window_glass",
- "environmental",
- "structural"
- ],
- "type": "string"
- },
- "TradeScope": {
- "properties": {
- "line_ids": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "lines_cost": {
- "$ref": "#/$defs/CostRange"
- },
- "phase": {
- "$ref": "#/$defs/Phase"
- },
- "total": {
- "$ref": "#/$defs/CostRange"
- },
- "trade": {
- "$ref": "#/$defs/Trade"
- },
- "vendor": {
- "anyOf": [
- {
- "$ref": "#/$defs/Vendor"
- },
- {
- "type": "null"
- }
- ]
- },
- "visit_charges": {
- "$ref": "#/$defs/CostRange"
- }
- },
- "required": [
- "trade",
- "vendor",
- "phase",
- "line_ids",
- "lines_cost",
- "visit_charges",
- "total"
- ],
- "type": "object"
- },
- "Uom": {
- "enum": [
- "each",
- "sq_ft",
- "sq_ft_floor",
- "sq_yd",
- "linear_ft",
- "room",
- "unit",
- "bedroom",
- "bathroom",
- "hour",
- "cu_yd",
- "visit"
- ],
- "type": "string"
- },
- "Vendor": {
- "additionalProperties": false,
- "properties": {
- "contact": {
- "anyOf": [
- {
- "maxLength": 200,
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null
- },
- "name": {
- "maxLength": 120,
- "type": "string"
- }
- },
- "required": [
- "name"
- ],
- "type": "object"
- }
-}