{"openapi":"3.1.0","info":{"title":"GIS Platform","description":"Shared geospatial backend for BuildGravity: LayerApp, PermitCheck, Territory Layers","version":"0.1.0"},"paths":{"/api/apps":{"get":{"tags":["apps"],"summary":"List Apps","description":"List all apps.","operationId":"list_apps_api_apps_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"tags":["apps"],"summary":"Create App","description":"Create a new app.","operationId":"create_app_api_apps_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/apps/{slug}":{"get":{"tags":["apps"],"summary":"Get App","description":"Get an app by slug.","operationId":"get_app_api_apps__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["apps"],"summary":"Update App","description":"Update an app.","operationId":"update_app_api_apps__slug__put","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/apps/{slug}/layers":{"get":{"tags":["apps"],"summary":"Get App Layers","description":"Get all layers for an app, ordered by display_order.","operationId":"get_app_layers_api_apps__slug__layers_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["apps"],"summary":"Add Layer To App","description":"Associate a layer with an app.","operationId":"add_layer_to_app_api_apps__slug__layers_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddLayerRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/layers":{"get":{"tags":["layers"],"summary":"List Layers","description":"List all layers, optionally filtered by visibility.","operationId":"list_layers_api_layers_get","parameters":[{"name":"is_public","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Public"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["layers"],"summary":"Create Layer","description":"Create a new layer.","operationId":"create_layer_api_layers_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LayerCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/layers/{layer_id}":{"get":{"tags":["layers"],"summary":"Get Layer","description":"Get a layer by ID.","operationId":"get_layer_api_layers__layer_id__get","parameters":[{"name":"layer_id","in":"path","required":true,"schema":{"type":"string","title":"Layer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["layers"],"summary":"Update Layer","description":"Update a layer.","operationId":"update_layer_api_layers__layer_id__put","parameters":[{"name":"layer_id","in":"path","required":true,"schema":{"type":"string","title":"Layer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LayerUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["layers"],"summary":"Delete Layer","description":"Delete a layer and all its features.","operationId":"delete_layer_api_layers__layer_id__delete","parameters":[{"name":"layer_id","in":"path","required":true,"schema":{"type":"string","title":"Layer Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/features":{"get":{"tags":["features"],"summary":"List Features","description":"List features, optionally filtered by layer and/or property value.","operationId":"list_features_api_features_get","parameters":[{"name":"layer_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Layer Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"default":1000,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"property_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by JSON property value, e.g. 'OWNER~EXAMPLE OWNER' (contains) or 'status=Active' (exact)","title":"Property Filter"},"description":"Filter by JSON property value, e.g. 'OWNER~EXAMPLE OWNER' (contains) or 'status=Active' (exact)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["features"],"summary":"Create Feature","description":"Create a single feature.","operationId":"create_feature_api_features_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeatureCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/layers/{layer_id}/features":{"get":{"tags":["features"],"summary":"Get Layer Features","description":"Get all features for a specific layer as a GeoJSON FeatureCollection.","operationId":"get_layer_features_api_layers__layer_id__features_get","parameters":[{"name":"layer_id","in":"path","required":true,"schema":{"type":"string","title":"Layer Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"default":1000,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/features/{feature_id}":{"get":{"tags":["features"],"summary":"Get Feature","description":"Get a single feature by ID.","operationId":"get_feature_api_features__feature_id__get","parameters":[{"name":"feature_id","in":"path","required":true,"schema":{"type":"string","title":"Feature Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["features"],"summary":"Update Feature","description":"Update a feature.","operationId":"update_feature_api_features__feature_id__put","parameters":[{"name":"feature_id","in":"path","required":true,"schema":{"type":"string","title":"Feature Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeatureUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["features"],"summary":"Delete Feature","description":"Delete a feature.","operationId":"delete_feature_api_features__feature_id__delete","parameters":[{"name":"feature_id","in":"path","required":true,"schema":{"type":"string","title":"Feature Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/spatial/point-in-polygon":{"post":{"tags":["spatial"],"summary":"Point In Polygon","description":"Find all polygon features that contain the given point.","operationId":"point_in_polygon_api_spatial_point_in_polygon_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PointQuery"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/spatial/bbox":{"post":{"tags":["spatial"],"summary":"Bbox Query","description":"Find all features within a bounding box.","operationId":"bbox_query_api_spatial_bbox_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BBoxQuery"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/spatial/nearest":{"post":{"tags":["spatial"],"summary":"Nearest Query","description":"Find the nearest features to a point within a radius.","operationId":"nearest_query_api_spatial_nearest_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NearestQuery"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/spatial/intersect":{"post":{"tags":["spatial"],"summary":"Intersect Query","description":"Find all features that intersect with the given geometry.","operationId":"intersect_query_api_spatial_intersect_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntersectQuery"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tiles/{layer_slug}/{z}/{x}/{y}.mvt":{"get":{"tags":["tiles"],"summary":"Get Tile","description":"Serve a Mapbox Vector Tile for the given layer and tile coordinates.\n\nReturns MVT binary with Content-Type: application/vnd.mapbox-vector-tile.","operationId":"get_tile_api_tiles__layer_slug___z___x___y__mvt_get","parameters":[{"name":"layer_slug","in":"path","required":true,"schema":{"type":"string","title":"Layer Slug"}},{"name":"z","in":"path","required":true,"schema":{"type":"integer","title":"Z"}},{"name":"x","in":"path","required":true,"schema":{"type":"integer","title":"X"}},{"name":"y","in":"path","required":true,"schema":{"type":"integer","title":"Y"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ingest/geojson":{"post":{"tags":["ingest"],"summary":"Ingest Geojson","description":"Import a GeoJSON file into a layer.\n\nSupports FeatureCollection and single Feature. Reprojects from source_srid to 4326 if needed.","operationId":"ingest_geojson_api_ingest_geojson_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_ingest_geojson_api_ingest_geojson_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ingest/csv":{"post":{"tags":["ingest"],"summary":"Ingest Csv","description":"Import a CSV file with lat/lng columns as point features.\nAll other columns become feature properties.","operationId":"ingest_csv_api_ingest_csv_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_ingest_csv_api_ingest_csv_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ingest/refresh/{source_id}":{"post":{"tags":["ingest"],"summary":"Refresh Data Source","description":"Trigger a refresh for an external data source.\n\nDispatches to the appropriate importer based on data_source.config.importer:\n  - \"arcgis_rest\" → ArcGIS REST FeatureService importer\n  - \"wfs\"         → OGC WFS importer","operationId":"refresh_data_source_api_ingest_refresh__source_id__post","parameters":[{"name":"source_id","in":"path","required":true,"schema":{"type":"string","title":"Source Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/geocode":{"get":{"tags":["geocode"],"summary":"Geocode","description":"Forward geocode: address string to coordinates.\n\nReturns a list of matching locations with coordinates and metadata.\n\n`viewbox`/`bounded` are optional and off by default (unbiased global search, as\nbefore) so existing callers are unaffected. A caller that knows the result must\nfall inside a specific area (e.g. permitcheck retrying a mismatched geocode\nagainst one of its covered municipalities) can pass both to restrict the search.","operationId":"geocode_api_geocode_get","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","description":"Address or place to geocode","title":"Q"},"description":"Address or place to geocode"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":10,"default":5,"title":"Limit"}},{"name":"countrycodes","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated country codes","default":"ca,us","title":"Countrycodes"},"description":"Comma-separated country codes"},{"name":"viewbox","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Nominatim viewbox bias 'x1,y1,x2,y2' (lon1,lat1,lon2,lat2)","title":"Viewbox"},"description":"Nominatim viewbox bias 'x1,y1,x2,y2' (lon1,lat1,lon2,lat2)"},{"name":"bounded","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"When 1 with viewbox set, restrict results to the viewbox instead of just biasing toward it","title":"Bounded"},"description":"When 1 with viewbox set, restrict results to the viewbox instead of just biasing toward it"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/geocode/autocomplete":{"get":{"tags":["geocode"],"summary":"Autocomplete","description":"Registry-scoped address autocomplete.\n\nEach jurisdiction's registry entry names its `autocomplete_provider`: the BC Geocoder\nfor Kelowna (and for an omitted `municipality`, byte-identical to the legacy shape),\nthe City of Edmonton's own locator for Edmonton. A jurisdiction with no provider\nreturns honest guidance without querying a foreign provider. Full-address lookup\ncapability alone never implies prediction support.\nMinimum query length is 3 characters; returns empty list if shorter.\nOn external service error, returns empty suggestions (non-fatal).","operationId":"autocomplete_api_geocode_autocomplete_get","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","description":"Partial address string to autocomplete","title":"Q"},"description":"Partial address string to autocomplete"},{"name":"max_results","in":"query","required":false,"schema":{"type":"integer","maximum":10,"description":"Maximum number of suggestions","default":5,"title":"Max Results"},"description":"Maximum number of suggestions"},{"name":"municipality","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Active jurisdiction slug","title":"Municipality"},"description":"Active jurisdiction slug"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/geocode/nearest-site":{"get":{"tags":["geocode"],"summary":"Nearest Site","description":"The nearest registered civic address to a point, from the BC site register.\n\nExists because the cadastre carries no address. ParcelMap BC identifies a parcel by title\n(PID) and plan number, never by street number, so the area screen has a ranked list of\nparcels and no way to hand any one of them to the single-address screen, which takes an\naddress string.\n\nDeliberately the PROVINCE'S register rather than the Nominatim reverse geocode this module\nalready exposes, for one reason that matters more than accuracy in the abstract: the\nforward geocode above tries the BC geocoder FIRST. An address that came out of the BC site\nregister goes back in at CIVIC_NUMBER precision, every time, because it is the same\ndatabase answering both questions. An OSM-derived string is a different database's idea of\nthe same place, and round-tripping it is where precision quietly degrades to \"street\". On\na live Rutland sample, 3 of 12 parcel centroids had no house number in OSM at all, and\nthree separate titles all reverse-geocoded to the same civic address.\n\nNEAREST IS NOT SAME-PARCEL, and this endpoint does not pretend otherwise. It returns the\nclosest registered site to a point; whether that site sits on the parcel the caller had in\nmind is a question only the PID can answer. `matched_exactly` is therefore always False:\nit is a field reserved for a future parcel-aware lookup, present so a caller cannot mistake\nabsence for confirmation. Callers must tell the reader to confirm the PID.","operationId":"nearest_site_api_geocode_nearest_site_get","parameters":[{"name":"lat","in":"query","required":true,"schema":{"type":"number","description":"Latitude, EPSG:4326","title":"Lat"},"description":"Latitude, EPSG:4326"},{"name":"lng","in":"query","required":true,"schema":{"type":"number","description":"Longitude, EPSG:4326","title":"Lng"},"description":"Longitude, EPSG:4326"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/geocode/reverse":{"get":{"tags":["geocode"],"summary":"Reverse Geocode","description":"Reverse geocode: coordinates to address.","operationId":"reverse_geocode_api_geocode_reverse_get","parameters":[{"name":"lat","in":"query","required":true,"schema":{"type":"number","title":"Lat"}},{"name":"lng","in":"query","required":true,"schema":{"type":"number","title":"Lng"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/proxy/nrel/ev-stations":{"get":{"tags":["proxy"],"summary":"Nrel Ev Stations","description":"Proxy to NREL Alternative Fuel Station Locator for EV charging stations.","operationId":"nrel_ev_stations_api_proxy_nrel_ev_stations_get","parameters":[{"name":"lat","in":"query","required":true,"schema":{"type":"number","title":"Lat"}},{"name":"lng","in":"query","required":true,"schema":{"type":"number","title":"Lng"}},{"name":"radius","in":"query","required":false,"schema":{"type":"number","description":"Radius in miles","default":25.0,"title":"Radius"},"description":"Radius in miles"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"default":200,"title":"Limit"}},{"name":"fuel_type","in":"query","required":false,"schema":{"type":"string","default":"ELEC","title":"Fuel Type"}},{"name":"country","in":"query","required":false,"schema":{"type":"string","default":"CA","title":"Country"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/proxy/hifld/substations":{"get":{"tags":["infrastructure"],"summary":"Hifld Substations","description":"Return electric substations within radius_miles of a point.\n\nSource: HIFLD Electric Substations (public ArcGIS REST FeatureService).\nFields: NAME, CITY, STATE, ZIP, TYPE, STATUS, NAICS_CODE","operationId":"hifld_substations_api_proxy_hifld_substations_get","parameters":[{"name":"lat","in":"query","required":true,"schema":{"type":"number","description":"Center latitude","title":"Lat"},"description":"Center latitude"},{"name":"lng","in":"query","required":true,"schema":{"type":"number","description":"Center longitude","title":"Lng"},"description":"Center longitude"},{"name":"radius_miles","in":"query","required":false,"schema":{"type":"number","description":"Search radius in miles","default":50.0,"title":"Radius Miles"},"description":"Search radius in miles"},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional 2-letter state filter (e.g. CA)","title":"State"},"description":"Optional 2-letter state filter (e.g. CA)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/proxy/hifld/transmission-lines":{"get":{"tags":["infrastructure"],"summary":"Hifld Transmission Lines","description":"Return transmission lines intersecting a bounding box or radius around a point.\n\nSource: HIFLD Electric Power Transmission Lines (public ArcGIS REST FeatureService).\nFields: OWNER, VOLTAGE, VOLT_CLASS, SUB_1, SUB_2, STATUS\n\nVOLT_CLASS values: '500 TO 735', '230 TO 345', '100 TO 161', 'Under 100', 'Not Available'","operationId":"hifld_transmission_lines_api_proxy_hifld_transmission_lines_get","parameters":[{"name":"bbox","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Bounding box as minx,miny,maxx,maxy (e.g. -115.0,34.5,-114.0,35.2)","title":"Bbox"},"description":"Bounding box as minx,miny,maxx,maxy (e.g. -115.0,34.5,-114.0,35.2)"},{"name":"lat","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Center latitude (used with radius_miles if bbox not given)","title":"Lat"},"description":"Center latitude (used with radius_miles if bbox not given)"},{"name":"lng","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Center longitude","title":"Lng"},"description":"Center longitude"},{"name":"radius_miles","in":"query","required":false,"schema":{"type":"number","description":"Search radius in miles (used when bbox not given)","default":75.0,"title":"Radius Miles"},"description":"Search radius in miles (used when bbox not given)"},{"name":"volt_class","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by voltage class (e.g. '500 TO 735')","title":"Volt Class"},"description":"Filter by voltage class (e.g. '500 TO 735')"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/proxy/eia/power-plants":{"get":{"tags":["infrastructure"],"summary":"Eia Power Plants","description":"Return power plants within radius_miles of a point.\n\nSource: EIA Electric Power Plants (public ArcGIS REST FeatureService).\nFields: Plant_Name, Utility_Name, PrimSource, Total_MW, State","operationId":"eia_power_plants_api_proxy_eia_power_plants_get","parameters":[{"name":"lat","in":"query","required":true,"schema":{"type":"number","description":"Center latitude","title":"Lat"},"description":"Center latitude"},{"name":"lng","in":"query","required":true,"schema":{"type":"number","description":"Center longitude","title":"Lng"},"description":"Center longitude"},{"name":"radius_miles","in":"query","required":false,"schema":{"type":"number","description":"Search radius in miles","default":100.0,"title":"Radius Miles"},"description":"Search radius in miles"},{"name":"min_mw","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Minimum total capacity in MW","title":"Min Mw"},"description":"Minimum total capacity in MW"},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Primary energy source filter (e.g. solar, wind, gas, coal)","title":"Source"},"description":"Primary energy source filter (e.g. solar, wind, gas, coal)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/proxy/bia/parcels":{"get":{"tags":["infrastructure"],"summary":"Bia Parcels","description":"Return BIA trust land parcels for a given Land Area Code.\n\nSource: BIA RTV Viewer MapServer/0 (public, no API key required).\nFields: PARCELNO, PARCELID, OWNERSHIP, LANDAREACODE, LAR_Name, TAAMS_Name,\n        REGION, AGENCY, TRBE_INTEREST_PERCENT\n\nOWNERSHIP values: T=Tribal trust, A=Allotted (individual Indian allotment)\nLand Area Code: supplied by the caller","operationId":"bia_parcels_api_proxy_bia_parcels_get","parameters":[{"name":"land_area_code","in":"query","required":true,"schema":{"type":"string","description":"BIA Land Area Code (e.g. '000')","title":"Land Area Code"},"description":"BIA Land Area Code (e.g. '000')"},{"name":"bbox","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Bounding box as minx,miny,maxx,maxy. Takes precedence over lat/lng/radius.","title":"Bbox"},"description":"Bounding box as minx,miny,maxx,maxy. Takes precedence over lat/lng/radius."},{"name":"lat","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Center latitude (used with radius_miles when bbox not given)","title":"Lat"},"description":"Center latitude (used with radius_miles when bbox not given)"},{"name":"lng","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Center longitude","title":"Lng"},"description":"Center longitude"},{"name":"radius_miles","in":"query","required":false,"schema":{"type":"number","description":"Search radius in miles (used when lat/lng provided and bbox absent)","default":50.0,"title":"Radius Miles"},"description":"Search radius in miles (used when lat/lng provided and bbox absent)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/proxy/bia/tracts":{"get":{"tags":["infrastructure"],"summary":"Bia Tracts","description":"Return BIA trust land tracts for a given Land Area Code.\n\nSource: BIA RTV Viewer MapServer/1 (public, no API key required).\nFields: TRACTID, TRACTREFNUM, OWNERSHIP, LANDAREACODE, LAR_Name, TAAMS_Name,\n        REGION, AGENCY, TRBE_INTEREST_PERCENT, Mineral_Resources\n\nOWNERSHIP values: T=Tribal trust, A=Allotted (individual Indian allotment)\nMineral_Resources values: Surface, Subsurface, Both\nLand Area Code: supplied by the caller","operationId":"bia_tracts_api_proxy_bia_tracts_get","parameters":[{"name":"land_area_code","in":"query","required":true,"schema":{"type":"string","description":"BIA Land Area Code (e.g. '000')","title":"Land Area Code"},"description":"BIA Land Area Code (e.g. '000')"},{"name":"ownership","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by ownership type: T=Tribal trust, A=Allotted. Omit for both.","title":"Ownership"},"description":"Filter by ownership type: T=Tribal trust, A=Allotted. Omit for both."},{"name":"bbox","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Bounding box as minx,miny,maxx,maxy. Takes precedence over lat/lng/radius.","title":"Bbox"},"description":"Bounding box as minx,miny,maxx,maxy. Takes precedence over lat/lng/radius."},{"name":"lat","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Center latitude (used with radius_miles when bbox not given)","title":"Lat"},"description":"Center latitude (used with radius_miles when bbox not given)"},{"name":"lng","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Center longitude","title":"Lng"},"description":"Center longitude"},{"name":"radius_miles","in":"query","required":false,"schema":{"type":"number","description":"Search radius in miles (used when lat/lng provided and bbox absent)","default":50.0,"title":"Radius Miles"},"description":"Search radius in miles (used when lat/lng provided and bbox absent)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/import/infrastructure":{"post":{"tags":["import"],"summary":"Import Infrastructure","description":"Import features from a named electrical infrastructure source into a GIS layer.\n\nAvailable sources: hifld-substations, hifld-transmission-lines, eia-power-plants\n\nUses the ArcGIS REST importer with bbox spatial filter. For large imports\n(e.g. all CONUS transmission lines) omit bbox and expect long runtime.","operationId":"import_infrastructure_api_import_infrastructure_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InfrastructureImportRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IngestResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/import/bia":{"post":{"tags":["import"],"summary":"Import Bia","description":"Import BIA trust land parcels or tracts for a specific Land Area Code.\n\nAvailable sources: bia-parcels, bia-tracts\nland_area_code: numeric BIA Land Area Code (e.g. '000')\nownership: optional filter, \"T\" (Tribal trust) or \"A\" (Allotted). Omit for both.\n\nThis is reusable for any US tribe: supply the correct land_area_code.","operationId":"import_bia_api_import_bia_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BiaImportRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IngestResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/import/arcgis-rest":{"post":{"tags":["import"],"summary":"Import Arcgis Rest","description":"Import features from an ArcGIS REST FeatureService layer into the GIS platform.\n\nPaginates automatically via resultOffset until all features are retrieved.","operationId":"import_arcgis_rest_api_import_arcgis_rest_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArcGISRestImportRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IngestResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/import/wfs":{"post":{"tags":["import"],"summary":"Import Wfs","description":"Import features from an OGC WFS endpoint into the GIS platform.\n\nAttempts JSON output format first; falls back to GML parsing.\nPaginates automatically via startIndex until all features are retrieved.","operationId":"import_wfs_api_import_wfs_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WFSImportRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IngestResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/spatial/entity-overlap":{"post":{"tags":["spatial"],"summary":"Entity Overlap","description":"Find features in target layers that intersect (or fall within a buffer of)\nan entity boundary feature.\n\nSpatial logic:\n- buffer_km == 0  → ST_Intersects\n- buffer_km  > 0  → ST_DWithin on geography cast (distance in metres)\n\nDistance is computed via ST_Distance on geography cast (returns metres),\nthen divided by 1000 to yield kilometres.\n\nSQL injection prevention: geometry_id is passed as a bind parameter, never\ninterpolated into the query string.","operationId":"entity_overlap_api_spatial_entity_overlap_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityOverlapRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Entity Overlap Api Spatial Entity Overlap Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/parcels/debug-databc":{"get":{"tags":["parcels"],"summary":"Debug Databc","description":"Debug endpoint: raw DataBC WFS response from Cloud Run.","operationId":"debug_databc_api_parcels_debug_databc_get","parameters":[{"name":"lat","in":"query","required":true,"schema":{"type":"number","title":"Lat"}},{"name":"lng","in":"query","required":true,"schema":{"type":"number","title":"Lng"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/parcels/lookup":{"get":{"tags":["parcels"],"summary":" Databc Or 503","description":"DataBC not answering is reported as such, never as \"no parcel here\".\n\nAn empty list is a REAL answer at this endpoint (a point in the road right-of-way\ngenuinely has no containing parcel), so 503 is the only way to say \"we do not know\"\nwithout asserting the other thing.","operationId":"_databc_or_503_api_parcels_lookup_get","parameters":[{"name":"lat","in":"query","required":true,"schema":{"type":"number","title":"Lat"}},{"name":"lng","in":"query","required":true,"schema":{"type":"number","title":"Lng"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ParcelResult"},"title":"Response  Databc Or 503 Api Parcels Lookup Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/proforma/workbook":{"post":{"tags":["proforma"],"summary":"Workbook","description":"Format a pro forma document as a workbook.\n\nThe document comes from the browser, which computed it with the same model the screen\nrenders. Nothing here recomputes a figure; the module docstring says why that matters.","operationId":"workbook_api_proforma_workbook_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentIn"}}},"required":true},"responses":{"200":{"description":"An .xlsx pro forma","content":{"application/json":{"schema":{}},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/zoning/lookup":{"get":{"tags":["zoning"],"summary":"Lookup Zoning","description":"Look up zoning for a lat/lng point.\n\nAuto-detects the municipality from coordinates. Returns zone code,\ndescription, setbacks, height limits, and lot coverage from stored\nregulation data.","operationId":"lookup_zoning_api_zoning_lookup_get","parameters":[{"name":"lat","in":"query","required":true,"schema":{"type":"number","title":"Lat"}},{"name":"lng","in":"query","required":true,"schema":{"type":"number","title":"Lng"}},{"name":"municipality","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Force municipality: kelowna, vancouver, victoria","title":"Municipality"},"description":"Force municipality: kelowna, vancouver, victoria"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/zoning/regulations":{"get":{"tags":["zoning"],"summary":"List Regulations","description":"List all stored zone regulations, optionally filtered by municipality.","operationId":"list_regulations_api_zoning_regulations_get","parameters":[{"name":"municipality","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Municipality"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/zoning/municipalities":{"get":{"tags":["zoning"],"summary":"List Municipalities","description":"List supported municipalities with their coverage.","operationId":"list_municipalities_api_zoning_municipalities_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/permitcheck/coverage":{"get":{"tags":["permitcheck"],"summary":"Coverage","description":"How many zones the bylaw corpus reads, and how many of those state a density.\n\nThe same figures the lookup response already carries, available without a lookup, so the\nlanding state can tell a reader that coverage is uneven BEFORE they try an address. It\nmatters that these are counted from the corpus rather than typed into the page: a\nhardcoded \"42 of 49\" goes stale the first time a zone family is added, and the one claim\nthis demo cannot afford to get wrong is a claim about its own coverage.\n\nR3-parking-from-the-bylaw: `parking` carries the same discipline for Table 8.3's parking\nminimum (routes/zoning.py's `parking_corpus_coverage` says what each count means). Folded\ninto this response rather than a second endpoint, so the landing state needs one fetch, not\ntwo, to state both coverages before a lookup.","operationId":"coverage_api_permitcheck_coverage_get","parameters":[{"name":"municipality","in":"query","required":false,"schema":{"type":"string","default":"kelowna","title":"Municipality"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Coverage Api Permitcheck Coverage Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/permitcheck/lookup":{"get":{"tags":["permitcheck"],"summary":"Permitcheck Lookup","description":"Full PermitCheck pipeline: address → geocode → parcel → zoning → entitlement → feasibility.\n\nProvide either `address` (geocoded automatically) or `lat`+`lng` directly.","operationId":"permitcheck_lookup_api_permitcheck_lookup_get","parameters":[{"name":"address","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address"}},{"name":"lat","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Lat"}},{"name":"lng","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Lng"}},{"name":"municipality","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Municipality"}},{"name":"precision","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Precision of a caller-supplied lat/lng: 'address', 'approximate' or 'street'. Only read when lat+lng are given. Omit it and a supplied coordinate is treated as street-precision, because an unverified coordinate must not present itself as an exact civic match.","title":"Precision"},"description":"Precision of a caller-supplied lat/lng: 'address', 'approximate' or 'street'. Only read when lat+lng are given. Omit it and a supplied coordinate is treated as street-precision, because an unverified coordinate must not present itself as an exact civic match."},{"name":"efficiency_ratio","in":"query","required":false,"schema":{"type":"number","maximum":1,"exclusiveMinimum":0,"description":"Gross-to-net floor area efficiency assumption used to derive unit yield from GFA. Default 0.83 (typical BC multi-family).","default":0.83,"title":"Efficiency Ratio"},"description":"Gross-to-net floor area efficiency assumption used to derive unit yield from GFA. Default 0.83 (typical BC multi-family)."},{"name":"avg_unit_size_sqm","in":"query","required":false,"schema":{"type":"number","exclusiveMinimum":0,"description":"Average net unit size (m²) used to derive unit yield from net floor area. Default 75.0 m² (typical BC multi-family unit).","default":75.0,"title":"Avg Unit Size Sqm"},"description":"Average net unit size (m²) used to derive unit yield from net floor area. Default 75.0 m² (typical BC multi-family unit)."},{"name":"ocp_band","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"OCP storey-band assumption for OCP-band-dependent zones (Kelowna UC1-UC5). If omitted, the engine defaults to the lowest (most conservative) tabulated band for the zone and marks the choice as an assumption in the response.","title":"Ocp Band"},"description":"OCP storey-band assumption for OCP-band-dependent zones (Kelowna UC1-UC5). If omitted, the engine defaults to the lowest (most conservative) tabulated band for the zone and marks the choice as an assumption in the response."},{"name":"far_area","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Area assumption for zones whose base FAR is tabulated per area rather than per storey band (Kelowna TS1's Figure 13.6.a areas, VC1's named village centres). Matched against the zone's tabulated area names. If omitted or unrecognized, the engine defaults to the lowest (most conservative) tabulated figure and marks the choice as an assumption in the response.","title":"Far Area"},"description":"Area assumption for zones whose base FAR is tabulated per area rather than per storey band (Kelowna TS1's Figure 13.6.a areas, VC1's named village centres). Matched against the zone's tabulated area names. If omitted or unrecognized, the engine defaults to the lowest (most conservative) tabulated figure and marks the choice as an assumption in the response."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/screen/area":{"get":{"tags":["screen"],"summary":"Screen Area","description":"Screen every parcel in an area and return what the bylaw entitles each one to.\n\nCoverage is Kelowna, because that is where the bylaw corpus exists.\n\nThis endpoint reports entitlement only. Residual land value, and every cost and revenue\nassumption behind it, belong to demo/site-screen/proforma.mjs and run in the browser.\nThis module's docstring says why there is exactly one copy of that model.","operationId":"screen_area_api_screen_area_get","parameters":[{"name":"lat","in":"query","required":true,"schema":{"type":"number","description":"Centre latitude","title":"Lat"},"description":"Centre latitude"},{"name":"lng","in":"query","required":true,"schema":{"type":"number","description":"Centre longitude","title":"Lng"},"description":"Centre longitude"},{"name":"radius","in":"query","required":false,"schema":{"type":"number","maximum":0.02,"minimum":0.0005,"description":"Half-width in degrees. 0.006 is roughly 4 city blocks.","default":0.006,"title":"Radius"},"description":"Half-width in degrees. 0.006 is roughly 4 city blocks."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":10,"default":1000,"title":"Limit"}},{"name":"min_area","in":"query","required":false,"schema":{"type":"number","description":"Ignore parcels below this, in m2.","default":400.0,"title":"Min Area"},"description":"Ignore parcels below this, in m2."},{"name":"band","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"OCP storey band for urban-centre zones. Omitted by default, which makes the engine pick the LOWEST tabulated band and mark it an assumption, the same thing /api/permitcheck/lookup does. This used to default to 6 while the single-address screen defaulted to the lowest, so the two screens returned different floor area, different unit counts and different land values for the same parcel, under a banner claiming they shared their defaults.","title":"Band"},"description":"OCP storey band for urban-centre zones. Omitted by default, which makes the engine pick the LOWEST tabulated band and mark it an assumption, the same thing /api/permitcheck/lookup does. This used to default to 6 while the single-address screen defaulted to the lowest, so the two screens returned different floor area, different unit counts and different land values for the same parcel, under a banner claiming they shared their defaults."},{"name":"efficiency","in":"query","required":false,"schema":{"type":"number","maximum":1,"exclusiveMinimum":0,"description":"Saleable over gross floor area. Shapes the floor area derived from a stated dwelling cap.","default":0.83,"title":"Efficiency"},"description":"Saleable over gross floor area. Shapes the floor area derived from a stated dwelling cap."},{"name":"unit_size","in":"query","required":false,"schema":{"type":"number","exclusiveMinimum":0,"description":"Average unit size in m2, same use as `efficiency`.","default":75.0,"title":"Unit Size"},"description":"Average unit size in m2, same use as `efficiency`."},{"name":"top","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"description":"How many screened parcels to return. The ranking that matters happens in the browser, over all of them.","default":400,"title":"Top"},"description":"How many screened parcels to return. The ranking that matters happens in the browser, over all of them."},{"name":"max_not_screenable","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":0,"description":"Cap on the itemised refusal list. The COUNTS are always complete regardless.","default":200,"title":"Max Not Screenable"},"description":"Cap on the itemised refusal list. The COUNTS are always complete regardless."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AreaScreenResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/permitcheck/assembly":{"get":{"tags":["assembly"],"summary":"Assembly","description":"Adjacent-parcel assembly.\n\nStep 1 (always): find every parcel whose REAL geometry shares a confirmed boundary with\nthe subject at (lat, lng) (AC1, AC9), each carrying an occupancy signal (AC6b).\n\nStep 2 (only when `neighbour_pid` names a confirmed candidate): union the two parcels and\nre-enter the result through `compute_entitlement` (the existing arbitrary-polygon path,\nunchanged, AC2), plus the additive lot-area check (AC3) and the super-additive footprint\ncheck (AC4).\n\nRefuses rather than guesses (AC8) whenever adjacency cannot be confirmed: the candidate\nfetch fails, nothing actually touches, or the named `neighbour_pid` was never confirmed.\n`subject_entitlement` is always populated in that case so the caller can still price the\nsubject alone.","operationId":"assembly_api_permitcheck_assembly_get","parameters":[{"name":"lat","in":"query","required":true,"schema":{"type":"number","description":"Subject parcel latitude (from a prior /lookup call).","title":"Lat"},"description":"Subject parcel latitude (from a prior /lookup call)."},{"name":"lng","in":"query","required":true,"schema":{"type":"number","description":"Subject parcel longitude.","title":"Lng"},"description":"Subject parcel longitude."},{"name":"neighbour_pid","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"PID of a confirmed adjacent candidate to assemble with. Omit to just list candidates. Nothing is unioned or re-entitled until one is named.","title":"Neighbour Pid"},"description":"PID of a confirmed adjacent candidate to assemble with. Omit to just list candidates. Nothing is unioned or re-entitled until one is named."},{"name":"municipality","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A jurisdiction with its OWN assembly composition (currently just 'edmonton'). Omit for the default DataBC/Kelowna-shaped candidate-search assembly below.","title":"Municipality"},"description":"A jurisdiction with its OWN assembly composition (currently just 'edmonton'). Omit for the default DataBC/Kelowna-shaped candidate-search assembly below."},{"name":"extra_points","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Edmonton multi-lot assembly only: semicolon-separated 'lat,lng' pairs for additional lots to union with the subject, each independently verified to share a real boundary with the running union before being folded in.","title":"Extra Points"},"description":"Edmonton multi-lot assembly only: semicolon-separated 'lat,lng' pairs for additional lots to union with the subject, each independently verified to share a real boundary with the running union before being folded in."},{"name":"efficiency_ratio","in":"query","required":false,"schema":{"type":"number","maximum":1,"exclusiveMinimum":0,"default":0.83,"title":"Efficiency Ratio"}},{"name":"avg_unit_size_sqm","in":"query","required":false,"schema":{"type":"number","exclusiveMinimum":0,"default":75.0,"title":"Avg Unit Size Sqm"}},{"name":"ocp_band","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ocp Band"}},{"name":"far_area","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Far Area"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssemblyResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/permitcheck/context-buildings":{"get":{"tags":["context-buildings"],"summary":"Context Buildings","operationId":"context_buildings_api_permitcheck_context_buildings_get","parameters":[{"name":"bbox","in":"query","required":true,"schema":{"type":"string","title":"Bbox"}},{"name":"jurisdiction","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Jurisdiction"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/permitcheck/servicing-features":{"get":{"tags":["servicing-features"],"summary":"Servicing Features","operationId":"servicing_features_api_permitcheck_servicing_features_get","parameters":[{"name":"bbox","in":"query","required":true,"schema":{"type":"string","maxLength":200,"title":"Bbox"}},{"name":"jurisdiction","in":"query","required":true,"schema":{"type":"string","maxLength":32,"title":"Jurisdiction"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/field/preview":{"post":{"tags":["field-preview"],"summary":"Field Preview","operationId":"field_preview_api_field_preview_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreviewRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreviewResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/site/bundle":{"post":{"tags":["site-bundle"],"summary":"Site Bundle","operationId":"site_bundle_api_site_bundle_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScenePairIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/permitcheck/edmonton/neighbours":{"post":{"tags":["assembly"],"summary":"Neighbours","description":"Preview resolves an address; confirmation re-reads every parcel and its fingerprint.\n\nPreview never publishes an assembly. Refusal is whole-intent, never a smaller successful\nsubset. The existing geometry/entitlement path remains the only union computation.","operationId":"neighbours_api_permitcheck_edmonton_neighbours_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NeighbourRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/vancouver/coverage":{"get":{"tags":["vancouver"],"summary":"Coverage","operationId":"coverage_api_vancouver_coverage_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/vancouver/lookup":{"post":{"tags":["vancouver"],"summary":"Lookup","operationId":"lookup_api_vancouver_lookup_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LookupRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LookupResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/demo/build":{"get":{"summary":"Demo Build","description":"Which build of the site screen is actually being served.\n\nDerived from the bytes of the two files that decide every number on the\npage, so it cannot drift the way a hand-bumped version constant does: if\nthe model changes, the stamp changes, with nothing for anyone to remember.\n\nThis exists because a reviewer got two different builds in one sitting and\nhad no way to tell. A number on screen is only worth something if you can\nsay which version produced it, which matters most in the case that prompted\nit: a screenshot in an email six weeks later.","operationId":"demo_build_api_demo_build_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/health":{"get":{"summary":"Health","description":"Health check endpoint.","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"AddLayerRequest":{"properties":{"layer_id":{"type":"string","title":"Layer Id"},"display_order":{"type":"integer","title":"Display Order","default":0},"default_visible":{"type":"boolean","title":"Default Visible","default":false}},"type":"object","required":["layer_id"],"title":"AddLayerRequest"},"AdditiveCheck":{"properties":{"subject_sqm":{"type":"number","title":"Subject Sqm"},"neighbour_sqm":{"type":"number","title":"Neighbour Sqm"},"expected_sum_sqm":{"type":"number","title":"Expected Sum Sqm"},"union_sqm":{"type":"number","title":"Union Sqm"},"within_tolerance":{"type":"boolean","title":"Within Tolerance"}},"type":"object","required":["subject_sqm","neighbour_sqm","expected_sum_sqm","union_sqm","within_tolerance"],"title":"AdditiveCheck"},"AdjacentCandidate":{"properties":{"pid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pid"},"lat":{"type":"number","title":"Lat"},"lng":{"type":"number","title":"Lng"},"area_sqm":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Area Sqm"},"parcel_class":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parcel Class"},"shared_boundary_m":{"type":"number","title":"Shared Boundary M"},"geometry":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Geometry"},"site_checked":{"type":"boolean","title":"Site Checked","default":false},"site_occupied":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Site Occupied"},"site_footprint_sqm":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Site Footprint Sqm"},"site_building_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Site Building Count"},"occupancy_note":{"type":"string","title":"Occupancy Note"},"tenure_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenure Note"}},"type":"object","required":["lat","lng","shared_boundary_m","occupancy_note"],"title":"AdjacentCandidate"},"Allocation":{"properties":{"total_counted_sqm":{"type":"number","title":"Total Counted Sqm"},"residential_gross_sqm":{"type":"number","title":"Residential Gross Sqm"},"non_dwelling_gross_sqm":{"type":"number","title":"Non Dwelling Gross Sqm"},"commercial_minimum_sqm":{"type":"number","title":"Commercial Minimum Sqm"},"commercial_depth_m":{"type":"number","title":"Commercial Depth M"},"counted_cap_sqm":{"type":"number","title":"Counted Cap Sqm"},"ground_residential_gross_sqm":{"type":"number","title":"Ground Residential Gross Sqm"},"efficiency_ratio":{"type":"null","title":"Efficiency Ratio"},"unit_yield":{"type":"null","title":"Unit Yield"}},"additionalProperties":false,"type":"object","required":["total_counted_sqm","residential_gross_sqm","non_dwelling_gross_sqm","commercial_minimum_sqm","commercial_depth_m","counted_cap_sqm","ground_residential_gross_sqm"],"title":"Allocation"},"AppConfig":{"properties":{"center":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Center"},"zoom":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Zoom"},"basemap":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Basemap"}},"type":"object","title":"AppConfig"},"AppCreate":{"properties":{"slug":{"type":"string","title":"Slug"},"name":{"type":"string","title":"Name"},"tenant_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant Id"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"config":{"anyOf":[{"$ref":"#/components/schemas/AppConfig"},{"type":"null"}]}},"type":"object","required":["slug","name"],"title":"AppCreate"},"AppUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"config":{"anyOf":[{"$ref":"#/components/schemas/AppConfig"},{"type":"null"}]}},"type":"object","title":"AppUpdate"},"ArcGISRestImportRequest":{"properties":{"service_url":{"type":"string","title":"Service Url"},"layer_id":{"type":"string","title":"Layer Id"},"where":{"type":"string","title":"Where","default":"1=1"},"bbox":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Bbox"},"max_records_per_page":{"type":"integer","maximum":5000.0,"minimum":1.0,"title":"Max Records Per Page","default":1000}},"type":"object","required":["service_url","layer_id"],"title":"ArcGISRestImportRequest"},"AreaParcel":{"properties":{"pid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pid"},"plan_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Number"},"lat":{"type":"number","title":"Lat"},"lng":{"type":"number","title":"Lng"},"parcel_class":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parcel Class"},"zone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Zone"},"zone_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Zone Description"},"bylaw_section":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bylaw Section"},"max_height":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Max Height"},"max_lot_coverage":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Lot Coverage"},"lot_area_sqm":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Lot Area Sqm"},"buildable_sqm":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Buildable Sqm"},"buildable_ratio":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Buildable Ratio"},"coverage_limited_sqm":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Coverage Limited Sqm"},"footprint_sqm":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Footprint Sqm"},"gfa_sqm":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Gfa Sqm"},"gfa_method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gfa Method"},"governing_constraint":{"type":"string","title":"Governing Constraint","default":"unknown"},"max_units_permitted":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Units Permitted"},"density_basis":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Density Basis"},"units_envelope_limited":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Units Envelope Limited"},"max_far_used":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Far Used"},"ocp_band_dependent":{"type":"boolean","title":"Ocp Band Dependent","default":false},"ocp_band_used":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ocp Band Used"},"ocp_band_is_assumption":{"type":"boolean","title":"Ocp Band Is Assumption","default":false},"ocp_layer_status":{"type":"string","title":"Ocp Layer Status","default":"not_checked"},"ocp_layer_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ocp Layer Source"},"ocp_layer_retrieved_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ocp Layer Retrieved At"},"ocp_layer_urban_centre":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ocp Layer Urban Centre"},"ocp_layer_raw_value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ocp Layer Raw Value"},"ocp_layer_spans_multiple_bands":{"type":"boolean","title":"Ocp Layer Spans Multiple Bands","default":false},"ocp_layer_candidates":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Ocp Layer Candidates","default":[]},"storeys_used":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Storeys Used"},"storeys_is_cited":{"type":"boolean","title":"Storeys Is Cited","default":false},"classification_method":{"type":"string","title":"Classification Method","default":"none"},"conservative":{"type":"boolean","title":"Conservative","default":false},"parking_min_per_unit":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Parking Min Per Unit"},"parking_min_per_unit_small":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Parking Min Per Unit Small"},"parking_small_max_units":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Parking Small Max Units"},"parking_small_max_storeys":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Parking Small Max Storeys"},"parking_section":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parking Section"},"parking_transit_dependent":{"type":"boolean","title":"Parking Transit Dependent","default":false},"parking_transit_lookup":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parking Transit Lookup"},"parking_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parking Note"},"unit_yield":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Unit Yield"},"provenance":{"additionalProperties":true,"type":"object","title":"Provenance","default":{}},"flags":{"items":{"type":"string"},"type":"array","title":"Flags","default":[]},"geometry":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Geometry"}},"type":"object","required":["lat","lng"],"title":"AreaParcel","description":"One screenable parcel: what the bylaw and the cadastre say, and nothing more.\n\nThe four fields proforma() in demo/site-screen/proforma.mjs reads off an entitlement\nobject (lot_area_sqm, footprint_sqm, gfa_sqm, max_units_permitted) are named exactly\nas that function expects them, because this IS that object. The rest is the supporting\nevidence a reader needs to believe those four."},"AreaScreenResult":{"properties":{"centre":{"items":{"type":"number"},"type":"array","title":"Centre"},"radius_deg":{"type":"number","title":"Radius Deg"},"parcels_found":{"type":"integer","title":"Parcels Found"},"candidate_parcels_in_box":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Candidate Parcels In Box"},"titles_in_box":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Titles In Box"},"reason_text":{"additionalProperties":{"type":"string"},"type":"object","title":"Reason Text","default":{}},"parcels_screened":{"type":"integer","title":"Parcels Screened"},"parcels_skipped":{"type":"integer","title":"Parcels Skipped"},"skipped_by_reason":{"additionalProperties":true,"type":"object","title":"Skipped By Reason","default":{}},"zones_without_density":{"additionalProperties":true,"type":"object","title":"Zones Without Density","default":{}},"zones_not_residential":{"additionalProperties":true,"type":"object","title":"Zones Not Residential","default":{}},"zoning_polygons":{"type":"integer","title":"Zoning Polygons"},"alr_checked":{"type":"boolean","title":"Alr Checked"},"parcels_in_alr":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Parcels In Alr"},"seconds":{"type":"number","title":"Seconds"},"seconds_upstream":{"type":"number","title":"Seconds Upstream"},"seconds_screening":{"type":"number","title":"Seconds Screening"},"assumptions":{"additionalProperties":true,"type":"object","title":"Assumptions"},"server_order":{"type":"string","title":"Server Order"},"notes":{"items":{"type":"string"},"type":"array","title":"Notes","default":[]},"candidates":{"items":{"$ref":"#/components/schemas/AreaParcel"},"type":"array","title":"Candidates"},"not_screenable":{"items":{"$ref":"#/components/schemas/AreaSkip"},"type":"array","title":"Not Screenable","default":[]}},"type":"object","required":["centre","radius_deg","parcels_found","parcels_screened","parcels_skipped","zoning_polygons","alr_checked","seconds","seconds_upstream","seconds_screening","assumptions","server_order","candidates"],"title":"AreaScreenResult"},"AreaSkip":{"properties":{"pid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pid"},"lat":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Lat"},"lng":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Lng"},"area_sqm":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Area Sqm"},"parcel_class":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parcel Class"},"zone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Zone"},"zone_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Zone Description"},"reason_code":{"type":"string","title":"Reason Code"},"reason":{"type":"string","title":"Reason"}},"type":"object","required":["reason_code","reason"],"title":"AreaSkip","description":"A parcel this screen will not price, and the reason it will not."},"AssemblyResult":{"properties":{"subject_pid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject Pid"},"subject_lat":{"type":"number","title":"Subject Lat"},"subject_lng":{"type":"number","title":"Subject Lng"},"subject_entitlement":{"anyOf":[{"$ref":"#/components/schemas/EntitlementResult"},{"type":"null"}]},"adjacency_checked":{"type":"boolean","title":"Adjacency Checked"},"adjacency_unavailable_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Adjacency Unavailable Reason"},"adjacent_candidates":{"items":{"$ref":"#/components/schemas/AdjacentCandidate"},"type":"array","title":"Adjacent Candidates","default":[]},"selected_neighbour_pid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Selected Neighbour Pid"},"confirmed_members":{"items":{"$ref":"#/components/schemas/ConfirmedAssemblyMember"},"type":"array","title":"Confirmed Members","default":[]},"selected_neighbour_pids":{"items":{"type":"string"},"type":"array","title":"Selected Neighbour Pids","default":[]},"confirmed_neighbour_pids":{"items":{"type":"string"},"type":"array","title":"Confirmed Neighbour Pids","default":[]},"tenure_notes":{"items":{"type":"string"},"type":"array","title":"Tenure Notes","default":[]},"neighbour_entitlement":{"anyOf":[{"$ref":"#/components/schemas/EntitlementResult"},{"type":"null"}]},"assembled_entitlement":{"anyOf":[{"$ref":"#/components/schemas/EntitlementResult"},{"type":"null"}]},"assembled_geometry":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Assembled Geometry"},"assembled_buildable":{"anyOf":[{"$ref":"#/components/schemas/EnvelopeResult"},{"type":"null"}]},"assembled_setback_provenance":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Assembled Setback Provenance"},"assembly_zone_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assembly Zone Note"},"assembled_servicing":{"anyOf":[{"$ref":"#/components/schemas/ServicingResult"},{"type":"null"}]},"lot_area_additive_check":{"anyOf":[{"$ref":"#/components/schemas/AdditiveCheck"},{"type":"null"}]},"footprint_superadditive_check":{"anyOf":[{"$ref":"#/components/schemas/SuperadditiveCheck"},{"type":"null"}]},"assembly_refused":{"type":"boolean","title":"Assembly Refused","default":false},"assembly_refused_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assembly Refused Reason"}},"type":"object","required":["subject_lat","subject_lng","adjacency_checked"],"title":"AssemblyResult"},"AtLineFeature":{"properties":{"feature_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Feature Id"},"source_layer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Layer"},"feature_fingerprint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Feature Fingerprint"},"layer_version_or_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Layer Version Or Time"},"version_is_retrieval_time":{"type":"boolean","title":"Version Is Retrieval Time","default":false}},"type":"object","title":"AtLineFeature","description":"The lateral or stub that established at_line, named by id (research S5 / workspace R6\nAC1: \"laterals and stubs that establish at_line gain their feature_id\")."},"BBoxQuery":{"properties":{"min_lat":{"type":"number","title":"Min Lat"},"min_lng":{"type":"number","title":"Min Lng"},"max_lat":{"type":"number","title":"Max Lat"},"max_lng":{"type":"number","title":"Max Lng"},"layer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Layer Id"},"limit":{"type":"integer","title":"Limit","default":1000}},"type":"object","required":["min_lat","min_lng","max_lat","max_lng"],"title":"BBoxQuery"},"Basis":{"properties":{"currency":{"type":"string","const":"CAD","title":"Currency"},"unit":{"type":"string","enum":["fraction","dollars"],"title":"Unit"},"period":{"type":"string","enum":["fraction","year","once"],"title":"Period"}},"additionalProperties":false,"type":"object","required":["currency","unit","period"],"title":"Basis"},"BestScheme":{"properties":{"storeys":{"type":"number","title":"Storeys"},"unitSize":{"type":"number","title":"Unitsize"},"residual":{"type":"number","title":"Residual"},"gfa":{"type":"number","title":"Gfa"},"isCurrent":{"type":"boolean","title":"Iscurrent","default":false},"densityCount":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Densitycount"},"densityRow":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Densityrow"},"screenedScope":{"anyOf":[{"type":"string","const":"one_two_storey_prism"},{"type":"null"}],"title":"Screenedscope"},"screenedUnitSizeMaxSqFt":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Screenedunitsizemaxsqft"},"landPerBuildableFt2":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Landperbuildableft2"}},"type":"object","required":["storeys","unitSize","residual","gfa"],"title":"BestScheme","description":"R5-qa iteration 2 (Finding 4 / AC7): the hero's own best-feasible-scheme figure, carried\nthrough from the browser rather than recomputed here (document.mjs's `bestScheme` doc\ncomment says why). DECLARED for the same reason `Meta` and `ProvenanceRow` are: an undeclared\nkey on a Pydantic model with no `extra=\"allow\"` is silently stripped by `model_dump()`\nbefore `build_workbook()` ever sees it, which is exactly how this figure reached every\nfield the JS side computed correctly and still exported as a workbook with no \"Best\nfeasible scheme\" row at all. It was caught only by re-inspecting the live POST body against the\ndownloaded file, not by reading either side alone."},"BiaImportRequest":{"properties":{"source":{"type":"string","title":"Source"},"layer_id":{"type":"string","title":"Layer Id"},"land_area_code":{"type":"string","title":"Land Area Code"},"ownership":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ownership"},"bbox":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Bbox"},"max_records_per_page":{"type":"integer","maximum":5000.0,"minimum":1.0,"title":"Max Records Per Page","default":1000}},"type":"object","required":["source","layer_id","land_area_code"],"title":"BiaImportRequest"},"Body_ingest_csv_api_ingest_csv_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"layer_id":{"type":"string","title":"Layer Id"},"lat_column":{"type":"string","title":"Lat Column","default":"latitude"},"lng_column":{"type":"string","title":"Lng Column","default":"longitude"}},"type":"object","required":["file","layer_id"],"title":"Body_ingest_csv_api_ingest_csv_post"},"Body_ingest_geojson_api_ingest_geojson_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"layer_id":{"type":"string","title":"Layer Id"},"source_srid":{"type":"integer","title":"Source Srid","default":4326}},"type":"object","required":["file","layer_id"],"title":"Body_ingest_geojson_api_ingest_geojson_post"},"BreakEven":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"value":{"type":"number","title":"Value"},"current":{"type":"number","title":"Current"},"movePct":{"type":"number","title":"Movepct"},"direction":{"type":"string","title":"Direction"}},"type":"object","required":["key","label","value","current","movePct","direction"],"title":"BreakEven"},"BuildingDetails":{"properties":{"year_built":{"anyOf":[{"$ref":"#/components/schemas/BuildingYear"},{"type":"null"}]}},"additionalProperties":false,"type":"object","title":"BuildingDetails"},"BuildingMix":{"properties":{"type":{"type":"string","maxLength":128,"title":"Type"},"count":{"type":"integer","maximum":1000.0,"minimum":1.0,"title":"Count"}},"additionalProperties":false,"type":"object","required":["type","count"],"title":"BuildingMix"},"BuildingSummary":{"properties":{"unit_count":{"type":"integer","maximum":1000.0,"minimum":0.0,"title":"Unit Count"},"mix":{"items":{"$ref":"#/components/schemas/BuildingMix"},"type":"array","maxItems":1000,"title":"Mix"},"unit_area":{"$ref":"#/components/schemas/BuildingUnitArea"}},"additionalProperties":false,"type":"object","required":["unit_count","mix","unit_area"],"title":"BuildingSummary"},"BuildingUnitArea":{"properties":{"known_m2":{"anyOf":[{"type":"number","maximum":1000000000000000.0,"minimum":0.0},{"type":"null"}],"title":"Known M2"},"status":{"anyOf":[{"type":"string","const":"unavailable"},{"type":"null"}],"title":"Status"},"known_units":{"type":"integer","maximum":1000.0,"minimum":0.0,"title":"Known Units"},"total_units":{"type":"integer","maximum":1000.0,"minimum":0.0,"title":"Total Units"},"coverage":{"type":"string","enum":["none","partial","complete"],"title":"Coverage"},"excludes_common_areas":{"type":"boolean","const":true,"title":"Excludes Common Areas"}},"additionalProperties":false,"type":"object","required":["known_m2","known_units","total_units","coverage","excludes_common_areas"],"title":"BuildingUnitArea"},"BuildingYear":{"properties":{"value":{"type":"integer","maximum":9999.0,"minimum":1.0,"title":"Value"},"source":{"$ref":"#/components/schemas/RowEvidenceSource"}},"additionalProperties":false,"type":"object","required":["value","source"],"title":"BuildingYear"},"Candidate":{"properties":{"jurisdiction":{"type":"string","enum":["kelowna","edmonton"],"title":"Jurisdiction"},"pid":{"type":"string","title":"Pid"},"geometry":{"additionalProperties":true,"type":"object","title":"Geometry"},"source_identity":{"$ref":"#/components/schemas/SourceIdentity"}},"additionalProperties":false,"type":"object","required":["jurisdiction","pid","geometry","source_identity"],"title":"Candidate"},"CandidateFeature":{"properties":{"feature_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Feature Id"},"distance_m":{"type":"number","title":"Distance M"},"nearest_point":{"prefixItems":[{"type":"number"},{"type":"number"}],"type":"array","maxItems":2,"minItems":2,"title":"Nearest Point"},"fingerprint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fingerprint"},"diameter":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Diameter"},"material":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Material"},"install_year":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Install Year"}},"type":"object","required":["distance_m","nearest_point"],"title":"CandidateFeature","description":"One retained main candidate, bounded to the public top ten by boundary distance\n(AC3). No geometry: a sanitized, bounded GeoJSON payload for the map is a SEPARATE\nendpoint (workspace R6), not this record."},"CashFlow":{"properties":{"months":{"items":{"$ref":"#/components/schemas/CashFlowMonth"},"type":"array","maxItems":600,"title":"Months"},"totals":{"$ref":"#/components/schemas/CashFlowTotals"},"reconciliation":{"$ref":"#/components/schemas/CashFlowReconciliation"},"landDrawGapNote":{"anyOf":[{"type":"string","maxLength":700},{"type":"null"}],"title":"Landdrawgapnote"}},"type":"object","required":["totals","reconciliation"],"title":"CashFlow","description":"R4-presentation, AC5/AC6/AC7: the monthly draw schedule behind the \"Cash Flow\" sheet.\nDECLARED for the same reason `Meta`/`ProvenanceRow`/`BestScheme` are: an undeclared key on\na Pydantic model with no `extra=\"allow\"` is silently stripped by `model_dump()` before\n`build_workbook()` ever sees it, which would ship a workbook with three sheets while the\nbrowser believed it had sent a fourth."},"CashFlowMonth":{"properties":{"month":{"type":"integer","maximum":1200.0,"minimum":1.0,"title":"Month"},"beginningBalance":{"type":"number","title":"Beginningbalance"},"loanDraws":{"type":"number","title":"Loandraws"},"capitalizedFees":{"type":"number","title":"Capitalizedfees"},"interestAccrual":{"type":"number","title":"Interestaccrual"},"principalRepayment":{"type":"number","title":"Principalrepayment"},"endingBalance":{"type":"number","title":"Endingbalance"}},"type":"object","required":["month","beginningBalance","loanDraws","capitalizedFees","interestAccrual","principalRepayment","endingBalance"],"title":"CashFlowMonth","description":"R4-presentation, AC5/AC7: one column of the \"Cash Flow\" sheet. His row labels live on the\nrenderer (workbook.py), not here; this only carries the six figures behind them, one month\nat a time."},"CashFlowReconciliation":{"properties":{"proformaFinancing":{"type":"number","title":"Proformafinancing"},"scheduleFeePlusInterest":{"type":"number","title":"Schedulefeeplusinterest"},"drift":{"type":"number","title":"Drift"}},"type":"object","required":["proformaFinancing","scheduleFeePlusInterest","drift"],"title":"CashFlowReconciliation","description":"AC6: the figures behind the visible reconciliation row: the Proforma sheet's own\nFinance section total, and this schedule's own fee+interest total, so a reader (and this\nendpoint) can see they tie out rather than trusting that they do."},"CashFlowTotals":{"properties":{"loanDraws":{"type":"number","title":"Loandraws"},"capitalizedFees":{"type":"number","title":"Capitalizedfees"},"interestAccrual":{"type":"number","title":"Interestaccrual"},"principalRepayment":{"type":"number","title":"Principalrepayment"}},"type":"object","required":["loanDraws","capitalizedFees","interestAccrual","principalRepayment"],"title":"CashFlowTotals"},"ComparableSale":{"properties":{"id":{"type":"string","maxLength":128,"minLength":1,"title":"Id"},"address":{"type":"string","maxLength":512,"minLength":1,"title":"Address"},"sale_date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","title":"Sale Date"},"sale_price":{"type":"number","maximum":1000000000000000.0,"minimum":-1000000000000000.0,"exclusiveMinimum":0.0,"title":"Sale Price"},"units":{"type":"integer","maximum":9007199254740991.0,"exclusiveMinimum":0.0,"title":"Units"},"area_m2":{"anyOf":[{"type":"number","maximum":1000000000000000.0,"minimum":-1000000000000000.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Area M2"},"annual_noi_after_reserves":{"anyOf":[{"type":"number","maximum":1000000000000000.0,"minimum":-1000000000000000.0},{"type":"null"}],"title":"Annual Noi After Reserves"},"reserve_basis":{"anyOf":[{"$ref":"#/components/schemas/SaleReserveBasis"},{"type":"null"}]},"source":{"$ref":"#/components/schemas/SaleSource"},"price_per_unit":{"type":"number","maximum":1000000000000000.0,"minimum":0.0,"title":"Price Per Unit"},"price_per_sf":{"anyOf":[{"type":"number","maximum":1000000000000000.0,"minimum":0.0},{"type":"null"}],"title":"Price Per Sf"},"area_status":{"type":"string","enum":["not_supplied","supplied"],"title":"Area Status"},"cap_rate":{"oneOf":[{"$ref":"#/components/schemas/KnownSaleCap"},{"$ref":"#/components/schemas/UnknownSaleCap"},{"$ref":"#/components/schemas/MissingSaleIncome"}],"title":"Cap Rate","discriminator":{"propertyName":"status","mapping":{"available":"#/components/schemas/KnownSaleCap","basis_not_known":"#/components/schemas/UnknownSaleCap","income_not_supplied":"#/components/schemas/MissingSaleIncome"}}}},"additionalProperties":false,"type":"object","required":["id","address","sale_date","sale_price","units","source","price_per_unit","price_per_sf","area_status","cap_rate"],"title":"ComparableSale"},"ComparableSales":{"properties":{"version":{"type":"integer","const":1,"title":"Version"},"currency":{"type":"string","const":"CAD","title":"Currency"},"use":{"type":"string","const":"cross_check","title":"Use"},"rows":{"items":{"$ref":"#/components/schemas/ComparableSale"},"type":"array","maxItems":200,"title":"Rows"}},"additionalProperties":false,"type":"object","required":["version","currency","use","rows"],"title":"ComparableSales"},"Comparison":{"properties":{"id":{"type":"string","const":"loss_to_lease","title":"Id"},"label":{"type":"string","const":"Market rent less occupied contract rent","title":"Label"},"value":{"anyOf":[{"type":"number","maximum":1000000000000000.0,"minimum":-1000000000000000.0},{"type":"null"}],"title":"Value"},"status":{"type":"string","enum":["complete","incomplete"],"title":"Status"},"period":{"type":"string","const":"year","title":"Period"},"note":{"type":"string","const":"Shown for comparison; not deducted.","title":"Note"}},"additionalProperties":false,"type":"object","required":["id","label","value","status","period","note"],"title":"Comparison"},"Confirmed":{"properties":{"units":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Units"},"other_income":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Other Income"},"vacancy":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Vacancy"},"credit_loss":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Credit Loss"},"operating_costs":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Operating Costs"},"reserves_per_unit_per_year":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Reserves Per Unit Per Year"},"asking_price":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Asking Price"},"client_cap_rate":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Client Cap Rate"}},"additionalProperties":false,"type":"object","title":"Confirmed"},"ConfirmedAssemblyMember":{"properties":{"parcel_id":{"type":"string","title":"Parcel Id"},"area_sqm":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Area Sqm"},"identity_source":{"type":"string","title":"Identity Source","default":"edmonton_assessment_tax_roll"},"role":{"type":"string","title":"Role"},"geometry":{"additionalProperties":true,"type":"object","title":"Geometry"},"fingerprint":{"type":"string","title":"Fingerprint","readOnly":true}},"type":"object","required":["parcel_id","role","geometry","fingerprint"],"title":"ConfirmedAssemblyMember"},"ConservativeFigure":{"properties":{"role":{"type":"string","title":"Role"},"setback_text":{"type":"string","title":"Setback Text"},"setback_m":{"type":"number","title":"Setback M"}},"type":"object","required":["role","setback_text","setback_m"],"title":"ConservativeFigure","description":"One candidate the AC2 conservative fallback took its max() over (AC5): a real bylaw\nfigure, named by role and quoted in the bylaw's own form of words, so a surface can print\n'largest of the zone's stated setbacks (front 3.0, side 2.1, rear 6.0)' with real numbers\nrather than just the one that won."},"ConstructionDisclosure":{"properties":{"version":{"type":"integer","const":1,"title":"Version"},"status":{"type":"string","enum":["priced","withheld"],"title":"Status"},"intent":{"additionalProperties":true,"type":"object","title":"Intent"},"lowerArea":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Lowerarea"},"upperArea":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Upperarea"},"lower":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Lower"},"upper":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Upper"},"transfer":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Transfer"},"hard":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Hard"},"parking":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Parking"},"buildMonths":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Buildmonths"},"reasons":{"items":{"type":"string"},"type":"array","maxItems":30,"title":"Reasons"},"comparisonReason":{"type":"string","maxLength":2000,"title":"Comparisonreason"}},"additionalProperties":false,"type":"object","required":["version","status","intent","comparisonReason"],"title":"ConstructionDisclosure","description":"Browser model output and full entered basis; renderer never recomputes money."},"CostLine":{"properties":{"label":{"type":"string","maxLength":128,"minLength":1,"title":"Label"},"amount":{"type":"number","maximum":1000000000000000.0,"minimum":0.0,"title":"Amount"}},"additionalProperties":false,"type":"object","required":["label","amount"],"title":"CostLine"},"CostLineMetrics":{"properties":{"label":{"type":"string","maxLength":128,"minLength":1,"title":"Label"},"annual_amount":{"type":"number","maximum":1000000000000000.0,"minimum":0.0,"title":"Annual Amount"},"per_unit":{"type":"number","maximum":1000000000000000.0,"minimum":0.0,"title":"Per Unit"},"ratio":{"anyOf":[{"type":"number","maximum":1000000000000000.0,"minimum":0.0},{"type":"null"}],"title":"Ratio"}},"additionalProperties":false,"type":"object","required":["label","annual_amount","per_unit","ratio"],"title":"CostLineMetrics"},"CostRowSource":{"properties":{"id":{"type":"string","maxLength":128,"minLength":1,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]*$","title":"Id"},"fields":{"additionalProperties":{"$ref":"#/components/schemas/RowBasis"},"type":"object","maxProperties":3,"minProperties":1,"title":"Fields"},"selected":{"additionalProperties":{"$ref":"#/components/schemas/RowSelection"},"type":"object","maxProperties":3,"title":"Selected"},"revision":{"type":"integer","maximum":9007199254740991.0,"minimum":0.0,"title":"Revision"},"label":{"type":"string","maxLength":128,"minLength":1,"title":"Label"}},"additionalProperties":false,"type":"object","required":["id","fields","selected","revision","label"],"title":"CostRowSource"},"Costs":{"properties":{"basis":{"type":"string","enum":["lines","ratio"],"title":"Basis"},"lines":{"anyOf":[{"items":{"$ref":"#/components/schemas/CostLine"},"type":"array","maxItems":1000},{"type":"null"}],"title":"Lines"},"ratio":{"anyOf":[{"type":"number","maximum":1000000000000000.0,"minimum":0.0},{"type":"null"}],"title":"Ratio"}},"additionalProperties":false,"type":"object","required":["basis"],"title":"Costs"},"Design":{"properties":{"parcel_geometry_sha256":{"type":"string","pattern":"^[0-9a-f]{64}$","title":"Parcel Geometry Sha256"},"front_edge_index":{"type":"integer","maximum":3.0,"minimum":0.0,"title":"Front Edge Index"},"grade_basis":{"type":"string","const":"assumed_flat_official_front_grade","title":"Grade Basis"},"side_basis":{"type":"string","const":"reserve_1.8m_both_sides_not_adjacency_finding","title":"Side Basis"},"tenure":{"type":"string","const":"other_than_secured_100_percent_rental","title":"Tenure"},"non_dwelling_use":{"type":"string","const":"enclosed_retail_store_conditional","title":"Non Dwelling Use"},"width_m":{"type":"number","maximum":1000.0,"exclusiveMinimum":0.0,"title":"Width M"},"depth_m":{"type":"number","maximum":1000.0,"exclusiveMinimum":0.0,"title":"Depth M"},"along_front_m":{"type":"number","maximum":1000.0,"minimum":0.0,"title":"Along Front M"},"inward_m":{"type":"number","maximum":1000.0,"minimum":0.0,"title":"Inward M"},"commercial_depth_m":{"type":"number","maximum":1000.0,"minimum":10.7,"title":"Commercial Depth M"},"floor_to_floor_m":{"items":{"type":"number"},"type":"array","maxItems":100,"minItems":2,"title":"Floor To Floor M"},"parapet_m":{"type":"number","maximum":23.0,"minimum":0.0,"title":"Parapet M"},"known_contrary_site_authority":{"type":"boolean","title":"Known Contrary Site Authority"}},"additionalProperties":false,"type":"object","required":["parcel_geometry_sha256","front_edge_index","grade_basis","side_basis","tenure","non_dwelling_use","width_m","depth_m","along_front_m","inward_m","commercial_depth_m","floor_to_floor_m","parapet_m","known_contrary_site_authority"],"title":"Design"},"Distribution":{"properties":{"draws":{"type":"integer","title":"Draws"},"p10":{"type":"number","title":"P10"},"p50":{"type":"number","title":"P50"},"p90":{"type":"number","title":"P90"},"probAboveZero":{"type":"number","title":"Probabovezero"},"centralPercentile":{"type":"number","title":"Centralpercentile"},"percentileBase":{"type":"number","title":"Percentilebase"},"modeGap":{"type":"number","title":"Modegap"},"closedFormResidual":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Closedformresidual"},"modeGapVsClosedForm":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Modegapvsclosedform"},"impliedAvgDrawPct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Impliedavgdrawpct"},"operatorAvgDrawPct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Operatoravgdrawpct"},"excluded":{"items":{"type":"string"},"type":"array","maxItems":64,"title":"Excluded"}},"type":"object","required":["draws","p10","p50","p90","probAboveZero","centralPercentile","percentileBase","modeGap"],"title":"Distribution","description":"The Monte Carlo, as the screen reports it."},"DocumentIn":{"properties":{"mode":{"type":"string","enum":["development","completed_building"],"title":"Mode","default":"development"},"income":{"anyOf":[{"$ref":"#/components/schemas/IncomeDocument"},{"type":"null"}]},"meta":{"$ref":"#/components/schemas/Meta"},"construction":{"anyOf":[{"$ref":"#/components/schemas/ConstructionDisclosure"},{"type":"null"}]},"scene":{"anyOf":[{"$ref":"#/components/schemas/SceneDocument"},{"type":"null"}]},"profile":{"anyOf":[{"$ref":"#/components/schemas/ProfileRecord"},{"type":"null"}]},"refused":{"type":"boolean","title":"Refused","default":false},"refusedWhy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Refusedwhy"},"belowZeroLandNote":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Belowzerolandnote"},"financialInputsUnresolved":{"type":"boolean","title":"Financialinputsunresolved","default":false},"operatorInputEvidence":{"additionalProperties":{"$ref":"#/components/schemas/OperatorInputEvidence"},"type":"object","title":"Operatorinputevidence"},"langfordChecks":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Langfordchecks"},"unpricedCity":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Unpricedcity"},"geometryScenarioPair":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Geometryscenariopair"},"newWestminsterChecks":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Newwestminsterchecks"},"densityUnresolved":{"type":"boolean","title":"Densityunresolved","default":false},"densityUnresolvedWhy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Densityunresolvedwhy"},"ocpLayerDisclosure":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Ocplayerdisclosure"},"heightCrossCheckVerdict":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Heightcrosscheckverdict"},"heightCrossCheckSentence":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Heightcrosschecksentence"},"heightCapExceeded":{"type":"boolean","title":"Heightcapexceeded","default":false},"heightCapSentence":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Heightcapsentence"},"heightCapState":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Heightcapstate"},"heightCapHeading":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Heightcapheading"},"setbacksNoSecondInstrumentSentence":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Setbacksnosecondinstrumentsentence"},"tenureCaveat":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenurecaveat"},"physical":{"additionalProperties":true,"type":"object","title":"Physical"},"unitsAndConversions":{"anyOf":[{"$ref":"#/components/schemas/UnitsAndConversions"},{"type":"null"}]},"site_servicing":{"additionalProperties":true,"type":"object","title":"Site Servicing"},"parkingRule":{"anyOf":[{"$ref":"#/components/schemas/ParkingRuleDisclosure"},{"type":"null"}]},"bestScheme":{"anyOf":[{"$ref":"#/components/schemas/BestScheme"},{"type":"null"}]},"sections":{"items":{"$ref":"#/components/schemas/Section"},"type":"array","maxItems":24,"title":"Sections"},"cashFlow":{"anyOf":[{"$ref":"#/components/schemas/CashFlow"},{"type":"null"}]},"uncertainty":{"anyOf":[{"$ref":"#/components/schemas/Uncertainty"},{"type":"null"}]},"costTotal":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Costtotal"},"revenue":{"additionalProperties":true,"type":"object","title":"Revenue"},"performance":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Performance"},"provenance":{"items":{"$ref":"#/components/schemas/ProvenanceRow"},"type":"array","maxItems":400,"title":"Provenance"},"notPriced":{"items":{"$ref":"#/components/schemas/NotPriced"},"type":"array","maxItems":400,"title":"Notpriced"},"notPricedLead":{"anyOf":[{"type":"string","maxLength":400},{"type":"null"}],"title":"Notpricedlead"},"assumptionsUsed":{"additionalProperties":true,"type":"object","title":"Assumptionsused"},"projectCosts":{"items":{"$ref":"#/components/schemas/ProjectCost"},"type":"array","maxItems":50,"title":"Projectcosts"},"projectCostText":{"anyOf":[{"items":{"$ref":"#/components/schemas/ProjectCostDisclosure"},"type":"array","maxItems":50},{"type":"null"}],"title":"Projectcosttext"}},"type":"object","title":"DocumentIn","description":"Deliberately permissive about the fields the renderer merely prints, and strict about\nthe ones it iterates over or writes as numbers."},"EdgeInfo":{"properties":{"index":{"type":"integer","title":"Index"},"a":{"prefixItems":[{"type":"number"},{"type":"number"}],"type":"array","maxItems":2,"minItems":2,"title":"A"},"b":{"prefixItems":[{"type":"number"},{"type":"number"}],"type":"array","maxItems":2,"minItems":2,"title":"B"},"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role"},"setback_m":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Setback M"},"setback_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Setback Text"},"bylaw_section":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bylaw Section"},"decided_by":{"type":"string","title":"Decided By"}},"type":"object","required":["index","a","b","decided_by"],"title":"EdgeInfo","description":"One polygon side, geometry plus the engine's own account of what it decided about that\nside and why (R1-per-edge-setbacks-are-data). Always one entry per `group_sides` side,\non BOTH the edge-classified and the conservative path. The conservative path just\ncarries `role: null` and `bylaw_section: null` on every entry (AC5): a figure borrowed\nfrom the largest-stated-setback method must never render as though the bylaw stated it\nfor this specific lot line."},"ElectricProviderResult":{"properties":{"checked":{"type":"boolean","title":"Checked"},"status":{"type":"string","title":"Status"},"providers":{"items":{"type":"string"},"type":"array","title":"Providers","default":[]},"provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"},"retrieved_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Retrieved At"},"served_from_layer_cache":{"type":"boolean","title":"Served From Layer Cache","default":false},"source":{"type":"string","title":"Source","default":"City of Kelowna, Electric Utility Boundary (geoportal.kelowna.ca, OpenData_Planning_and_other MapServer layer 7)"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["checked","status"],"title":"ElectricProviderResult"},"EntitlementResult":{"properties":{"screening_refusal":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Screening Refusal"},"legal_jurisdiction":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Legal Jurisdiction"},"parcel_implausible":{"type":"boolean","title":"Parcel Implausible","default":false},"parcel_implausible_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parcel Implausible Reason"},"lot_area_sqm":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Lot Area Sqm"},"buildable_sqm":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Buildable Sqm"},"buildable_ratio":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Buildable Ratio"},"buildable_geometry":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Buildable Geometry"},"conservative":{"type":"boolean","title":"Conservative","default":false},"classification_method":{"type":"string","title":"Classification Method","default":"none"},"edge_setbacks_used":{"additionalProperties":{"type":"number"},"type":"object","title":"Edge Setbacks Used","default":{}},"edges":{"items":{"$ref":"#/components/schemas/EdgeInfo"},"type":"array","title":"Edges","default":[]},"classification_failure_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Classification Failure Reason"},"conservative_figures":{"anyOf":[{"items":{"$ref":"#/components/schemas/ConservativeFigure"},"type":"array"},{"type":"null"}],"title":"Conservative Figures"},"road_source":{"anyOf":[{"$ref":"#/components/schemas/RoadSourceInfo"},{"type":"null"}]},"coverage_limited_sqm":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Coverage Limited Sqm"},"footprint_sqm":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Footprint Sqm"},"governing_constraint":{"type":"string","title":"Governing Constraint","default":"unknown"},"gfa_sqm":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Gfa Sqm"},"gfa_method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gfa Method"},"max_far_used":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Far Used"},"ocp_band_dependent":{"type":"boolean","title":"Ocp Band Dependent","default":false},"ocp_band_used":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ocp Band Used"},"ocp_band_is_assumption":{"type":"boolean","title":"Ocp Band Is Assumption","default":false},"far_bands":{"anyOf":[{"items":{"$ref":"#/components/schemas/FarBandOption"},"type":"array"},{"type":"null"}],"title":"Far Bands"},"ocp_layer_status":{"type":"string","title":"Ocp Layer Status","default":"not_checked"},"ocp_layer_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ocp Layer Source"},"ocp_layer_retrieved_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ocp Layer Retrieved At"},"ocp_layer_served_from_layer_cache":{"type":"boolean","title":"Ocp Layer Served From Layer Cache","default":false},"ocp_layer_urban_centre":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ocp Layer Urban Centre"},"ocp_layer_raw_value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ocp Layer Raw Value"},"ocp_layer_spans_multiple_bands":{"type":"boolean","title":"Ocp Layer Spans Multiple Bands","default":false},"ocp_layer_candidates":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Ocp Layer Candidates","default":[]},"ocp_layer_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ocp Layer Error"},"far_area_dependent":{"type":"boolean","title":"Far Area Dependent","default":false},"far_area_used":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Far Area Used"},"far_area_is_assumption":{"type":"boolean","title":"Far Area Is Assumption","default":false},"far_area_lookup":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Far Area Lookup"},"far_area_options":{"anyOf":[{"items":{"$ref":"#/components/schemas/FarAreaOption"},"type":"array"},{"type":"null"}],"title":"Far Area Options"},"storeys_used":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Storeys Used"},"storeys_is_cited":{"type":"boolean","title":"Storeys Is Cited","default":false},"efficiency_ratio":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Efficiency Ratio"},"avg_unit_size_sqm":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Avg Unit Size Sqm"},"unit_yield":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Unit Yield"},"max_units_permitted":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Units Permitted"},"density_basis":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Density Basis"},"density_rules":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Density Rules"},"units_envelope_limited":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Units Envelope Limited"},"provenance":{"additionalProperties":{"$ref":"#/components/schemas/ProvenanceTag"},"type":"object","title":"Provenance","default":{}},"reasons":{"items":{"type":"string"},"type":"array","title":"Reasons","default":[]},"parking_min_per_unit":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Parking Min Per Unit"},"parking_min_per_unit_small":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Parking Min Per Unit Small"},"parking_small_max_units":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Parking Small Max Units"},"parking_small_max_storeys":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Parking Small Max Storeys"},"parking_section":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parking Section"},"parking_transit_dependent":{"type":"boolean","title":"Parking Transit Dependent","default":false},"parking_transit_lookup":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parking Transit Lookup"},"parking_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parking Note"},"min_density_per_ha":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Min Density Per Ha"},"min_density_section":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Min Density Section"},"min_density_units":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Min Density Units"},"min_density_floor_binds":{"type":"boolean","title":"Min Density Floor Binds","default":false},"far_bonus_options":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Far Bonus Options","default":[]},"max_height_m":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Height M"},"max_height_section":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Max Height Section"}},"type":"object","required":["efficiency_ratio","avg_unit_size_sqm"],"title":"EntitlementResult"},"EntityOverlapRequest":{"properties":{"geometry_id":{"type":"string","title":"Geometry Id"},"target_layers":{"items":{"type":"string"},"type":"array","title":"Target Layers"},"buffer_km":{"type":"number","title":"Buffer Km","default":0},"max_results":{"type":"integer","title":"Max Results","default":100}},"type":"object","required":["geometry_id","target_layers"],"title":"EntityOverlapRequest"},"EnvelopeResult":{"properties":{"lot_area_sqm":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Lot Area Sqm"},"buildable_sqm":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Buildable Sqm"},"buildable_ratio":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Buildable Ratio"},"buildable_geometry":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Buildable Geometry"},"conservative":{"type":"boolean","title":"Conservative","default":false},"classification_method":{"type":"string","title":"Classification Method","default":"none"},"edge_setbacks_used":{"additionalProperties":{"type":"number"},"type":"object","title":"Edge Setbacks Used","default":{}},"edges":{"items":{"$ref":"#/components/schemas/EdgeInfo"},"type":"array","title":"Edges","default":[]},"classification_failure_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Classification Failure Reason"},"conservative_figures":{"anyOf":[{"items":{"$ref":"#/components/schemas/ConservativeFigure"},"type":"array"},{"type":"null"}],"title":"Conservative Figures"},"road_source":{"anyOf":[{"$ref":"#/components/schemas/RoadSourceInfo"},{"type":"null"}]}},"type":"object","title":"EnvelopeResult"},"FarAreaOption":{"properties":{"area":{"type":"string","title":"Area"},"max_far":{"type":"number","title":"Max Far"},"bylaw_section":{"type":"string","title":"Bylaw Section"}},"type":"object","required":["area","max_far","bylaw_section"],"title":"FarAreaOption","description":"One row of an AREA-dependent FAR table.\n\nDistinct from FarBand: a band is a storey count and is ordinal, so \"the lowest band\" is a\nmeaningful default. An area is a named place (a Figure 13.6.a sub-area, a named village\ncentre) and is categorical. Which one applies to a parcel is a map lookup this tool cannot\nperform, so the area is never derived, only assumed or supplied."},"FarBandOption":{"properties":{"band":{"type":"integer","title":"Band"},"max_far":{"type":"number","title":"Max Far"},"bylaw_section":{"type":"string","title":"Bylaw Section"}},"type":"object","required":["band","max_far","bylaw_section"],"title":"FarBandOption"},"FeatureCreate":{"properties":{"layer_id":{"type":"string","title":"Layer Id"},"geometry":{"$ref":"#/components/schemas/GeometryInput"},"properties":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Properties"},"external_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Id"}},"type":"object","required":["layer_id","geometry"],"title":"FeatureCreate"},"FeatureUpdate":{"properties":{"geometry":{"anyOf":[{"$ref":"#/components/schemas/GeometryInput"},{"type":"null"}]},"properties":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Properties"},"external_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Id"}},"type":"object","title":"FeatureUpdate"},"FrontageAlternate":{"properties":{"edge_index":{"type":"integer","title":"Edge Index"},"edge_role":{"type":"string","title":"Edge Role"},"distance_m":{"type":"number","title":"Distance M"},"feature_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Feature Id"},"nearest_point":{"anyOf":[{"prefixItems":[{"type":"number"},{"type":"number"}],"type":"array","maxItems":2,"minItems":2},{"type":"null"}],"title":"Nearest Point"}},"type":"object","required":["edge_index","edge_role","distance_m"],"title":"FrontageAlternate","description":"The OTHER street-facing edge's own nearest-candidate reading on a corner lot (AC3):\nfrontage_basis() names the nearer of a front/flanking pair as the frontage and records\nthe farther one here rather than discarding it."},"FrontageBasis":{"properties":{"status":{"type":"string","title":"Status"},"edge_index":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Edge Index"},"edge_role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Edge Role"},"origin_point":{"anyOf":[{"prefixItems":[{"type":"number"},{"type":"number"}],"type":"array","maxItems":2,"minItems":2},{"type":"null"}],"title":"Origin Point"},"distance_m":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Distance M"},"feature_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Feature Id"},"fingerprint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fingerprint"},"nearest_point":{"anyOf":[{"prefixItems":[{"type":"number"},{"type":"number"}],"type":"array","maxItems":2,"minItems":2},{"type":"null"}],"title":"Nearest Point"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"class":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Class"},"beyond_frontage_radius":{"type":"boolean","title":"Beyond Frontage Radius","default":false},"alternates":{"items":{"$ref":"#/components/schemas/FrontageAlternate"},"type":"array","title":"Alternates","default":[]},"completeness":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Completeness"},"source_layer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Layer"},"layer_version_or_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Layer Version Or Time"},"version_is_retrieval_time":{"type":"boolean","title":"Version Is Retrieval Time","default":false}},"type":"object","required":["status"],"title":"FrontageBasis","description":"servicing-v2 R2: a second, separately named measurement, straight-line distance\nfrom the midpoint of the classified FRONT edge (or, on a corner lot, whichever of front\nand flanking is nearer) to the nearest of the SAME retained candidates the boundary\nbasis already measured (see routes.servicing.rank_candidates_from_origin), computed\nAFTER entitlement classifies the parcel's edges, never by a second upstream read.\n\n`class_` (serialized as \"class\") uses the SAME thresholds as the boundary basis (30 m /\n150 m / 500 m) but is its OWN value, separate from the parent sub-result's `.status`: the\ntwo bases can and do disagree (a main near the rear boundary can read `fronting` by\nboundary distance and `near`/`distant` by frontage distance, R-file AC7). `status` is\n\"resolved\" or \"origin_unresolved\"; the centroid is never silently called the frontage.\n`at_line` is never assigned or removed by this basis; that stays the boundary basis's own\nevidence (laterals and stubs), unchanged."},"Geometry":{"properties":{"legal_jurisdiction":{"type":"string","const":"vancouver","title":"Legal Jurisdiction","default":"vancouver"},"classification_method":{"type":"string","const":"conditional_explicit_edge_roles","title":"Classification Method","default":"conditional_explicit_edge_roles"},"lot_area_sqm":{"type":"number","title":"Lot Area Sqm"},"buildable_sqm":{"type":"number","title":"Buildable Sqm"},"buildable_geometry":{"additionalProperties":true,"type":"object","title":"Buildable Geometry"},"footprint_sqm":{"type":"number","title":"Footprint Sqm"},"max_height_m":{"type":"number","title":"Max Height M"},"design_height_m":{"type":"number","title":"Design Height M"},"storeys_used":{"type":"null","title":"Storeys Used"},"legal_max_storeys":{"type":"null","title":"Legal Max Storeys"},"coverage_limited_sqm":{"type":"null","title":"Coverage Limited Sqm"},"gfa_sqm":{"type":"null","title":"Gfa Sqm"},"total_counted_cap_sqm":{"type":"number","title":"Total Counted Cap Sqm"},"allocations":{"$ref":"#/components/schemas/Allocation"},"frame":{"additionalProperties":true,"type":"object","title":"Frame"},"floor_stack_rotation_deg":{"type":"number","title":"Floor Stack Rotation Deg"},"floors":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Floors"},"commercial_polygon":{"additionalProperties":true,"type":"object","title":"Commercial Polygon"},"edges":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Edges"},"assumptions":{"$ref":"#/components/schemas/Design"}},"additionalProperties":false,"type":"object","required":["lot_area_sqm","buildable_sqm","buildable_geometry","footprint_sqm","max_height_m","design_height_m","total_counted_cap_sqm","allocations","frame","floor_stack_rotation_deg","floors","commercial_polygon","edges","assumptions"],"title":"Geometry"},"GeometryInput":{"properties":{"type":{"type":"string","title":"Type"},"coordinates":{"items":{},"type":"array","title":"Coordinates"}},"type":"object","required":["type","coordinates"],"title":"GeometryInput"},"Group":{"properties":{"kind":{"type":"string","enum":["manual","imported","synthetic"],"title":"Kind"},"label":{"type":"string","maxLength":256,"minLength":1,"title":"Label"}},"additionalProperties":false,"type":"object","required":["kind","label"],"title":"Group"},"Groups":{"properties":{"units":{"$ref":"#/components/schemas/Group"},"operating_costs":{"$ref":"#/components/schemas/Group"}},"additionalProperties":false,"type":"object","required":["units","operating_costs"],"title":"Groups"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HeldFixed":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"why":{"type":"string","title":"Why"}},"type":"object","required":["key","label","why"],"title":"HeldFixed","description":"An input the range deliberately does NOT move, and the reason it carries no range.\n\nDeclared here for the reason the whole file keeps repeating: an undeclared key is stripped by\n`model_dump()` before the renderer sees it. This one proved it: the payload carried 14 of\nthese and the rendered sheet showed none, and the payload-side check passed the whole time."},"HydrantResult":{"properties":{"checked":{"type":"boolean","title":"Checked"},"status":{"type":"string","title":"Status"},"nearest_distance_m":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Nearest Distance M"},"beyond_code_figure_straight_line":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Beyond Code Figure Straight Line"},"code_figure_path_m":{"type":"number","title":"Code Figure Path M","default":90.0},"wmain_size_mm":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Wmain Size Mm"},"feature_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Feature Id"},"point":{"anyOf":[{"prefixItems":[{"type":"number"},{"type":"number"}],"type":"array","maxItems":2,"minItems":2},{"type":"null"}],"title":"Point"},"feature_fingerprint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Feature Fingerprint"},"candidates_partial":{"type":"boolean","title":"Candidates Partial","default":false},"search_radius_m":{"type":"number","title":"Search Radius M","default":150.0},"retrieved_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Retrieved At"},"served_from_layer_cache":{"type":"boolean","title":"Served From Layer Cache","default":false},"source":{"type":"string","title":"Source","default":"City of Kelowna, Water Hydrant (geoportal.kelowna.ca, OpenData_Utilities_Water MapServer layer 15)"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["checked","status"],"title":"HydrantResult","description":"Nearest operational public hydrant (OPERATIONAL='Y' AND PRIVATE_HYD='N', server-side).\n\nbeyond_code_figure_straight_line compares a STRAIGHT-LINE distance against the BCBC\n3.2.5.5 90 m figure, which is a compound path limit; straight-line beyond 90 m implies\nthe path is too, so True is a fair red flag, while False does NOT prove compliance. The\nscreen owns the phrasing. Never a fire-flow claim; the hydrant PRESSURE field is static\npressure and is deliberately not read at all (research 2c)."},"IncomeDocument":{"properties":{"version":{"type":"integer","const":1,"title":"Version"},"mode":{"type":"string","const":"completed_building","title":"Mode"},"record_id":{"type":"string","maxLength":128,"minLength":1,"title":"Record Id"},"name":{"type":"string","maxLength":80,"minLength":1,"title":"Name"},"subject":{"$ref":"#/components/schemas/Subject"},"currency":{"type":"string","const":"CAD","title":"Currency"},"input_revision":{"type":"integer","maximum":9007199254740991.0,"minimum":0.0,"title":"Input Revision"},"calculation_version":{"type":"string","maxLength":128,"minLength":1,"title":"Calculation Version"},"accepted_inputs":{"$ref":"#/components/schemas/Inputs"},"provenance":{"$ref":"#/components/schemas/Provenance"},"disclaimer":{"type":"string","const":"Internal screening preview. Not an appraisal or a valuation opinion.","title":"Disclaimer"},"status":{"type":"string","enum":["ready","incomplete","invalid","pending","review_required"],"title":"Status"},"message":{"type":"string","maxLength":512,"title":"Message"},"issues":{"items":{"$ref":"#/components/schemas/Issue"},"type":"array","maxItems":10000,"title":"Issues"},"summary":{"anyOf":[{"$ref":"#/components/schemas/Summary"},{"type":"null"}]},"statement_rows":{"anyOf":[{"items":{"$ref":"#/components/schemas/StatementRow"},"type":"array","maxItems":12,"minItems":11},{"type":"null"}],"title":"Statement Rows"},"operating_cost_metrics":{"anyOf":[{"$ref":"#/components/schemas/Metrics"},{"type":"null"}]},"operating_cost_line_metrics":{"anyOf":[{"items":{"$ref":"#/components/schemas/CostLineMetrics"},"type":"array","maxItems":1000},{"type":"null"}],"title":"Operating Cost Line Metrics"},"comparison":{"anyOf":[{"$ref":"#/components/schemas/Comparison"},{"type":"null"}]},"sensitivity":{"anyOf":[{"$ref":"#/components/schemas/Sensitivity"},{"type":"null"}]},"comparable_sales":{"anyOf":[{"$ref":"#/components/schemas/ComparableSales"},{"type":"null"}]},"property_context":{"anyOf":[{"$ref":"#/components/schemas/PropertyContext"},{"type":"null"}]},"row_sources":{"anyOf":[{"$ref":"#/components/schemas/RowSources"},{"type":"null"}]},"market_cross_checks":{"anyOf":[{"$ref":"#/components/schemas/MarketCrossChecks"},{"type":"null"}]},"site_facts":{"anyOf":[{"$ref":"#/components/schemas/SiteFacts"},{"type":"null"}]},"site_diligence":{"anyOf":[{"$ref":"#/components/schemas/SiteDiligence"},{"type":"null"}]},"building_details":{"anyOf":[{"$ref":"#/components/schemas/BuildingDetails"},{"type":"null"}]},"building_summary":{"anyOf":[{"$ref":"#/components/schemas/BuildingSummary"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["version","mode","record_id","name","subject","currency","input_revision","calculation_version","accepted_inputs","provenance","disclaimer","status","message","issues"],"title":"IncomeDocument"},"InfrastructureImportRequest":{"properties":{"source":{"type":"string","title":"Source"},"layer_id":{"type":"string","title":"Layer Id"},"bbox":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Bbox"},"where":{"type":"string","title":"Where","default":"1=1"},"max_records_per_page":{"type":"integer","maximum":5000.0,"minimum":1.0,"title":"Max Records Per Page","default":1000}},"type":"object","required":["source","layer_id"],"title":"InfrastructureImportRequest"},"IngestResult":{"properties":{"layer_id":{"type":"string","title":"Layer Id"},"features_imported":{"type":"integer","title":"Features Imported"},"features_skipped":{"type":"integer","title":"Features Skipped"},"errors":{"items":{"type":"string"},"type":"array","title":"Errors"},"truncated":{"type":"boolean","title":"Truncated","default":false},"truncated_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Truncated Reason"}},"type":"object","required":["layer_id","features_imported","features_skipped","errors"],"title":"IngestResult"},"Inputs":{"properties":{"version":{"type":"integer","const":1,"title":"Version"},"mode":{"type":"string","const":"completed_building","title":"Mode"},"units":{"anyOf":[{"items":{"$ref":"#/components/schemas/Unit"},"type":"array","maxItems":1000},{"type":"null"}],"title":"Units"},"other_income":{"anyOf":[{"type":"number","maximum":1000000000000000.0,"minimum":0.0},{"type":"null"}],"title":"Other Income"},"vacancy":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Vacancy"},"credit_loss":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Credit Loss"},"operating_costs":{"anyOf":[{"$ref":"#/components/schemas/Costs"},{"type":"null"}]},"reserves_per_unit_per_year":{"anyOf":[{"type":"number","maximum":1000000000000000.0,"minimum":0.0},{"type":"null"}],"title":"Reserves Per Unit Per Year"},"asking_price":{"anyOf":[{"type":"number","maximum":1000000000000000.0,"minimum":-1000000000000000.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Asking Price"},"client_cap_rate":{"anyOf":[{"type":"number","maximum":1.0,"minimum":-1000000000000000.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Client Cap Rate"},"confirmed":{"anyOf":[{"$ref":"#/components/schemas/Confirmed"},{"type":"null"}]},"cross_check":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/JsonValue"},"type":"object"},{"type":"null"}],"title":"Cross Check"}},"additionalProperties":false,"type":"object","required":["version","mode"],"title":"Inputs"},"IntersectQuery":{"properties":{"geometry":{"additionalProperties":true,"type":"object","title":"Geometry"},"layer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Layer Id"},"limit":{"type":"integer","title":"Limit","default":1000}},"type":"object","required":["geometry"],"title":"IntersectQuery"},"Issue":{"properties":{"path":{"type":"string","maxLength":256,"minLength":1,"title":"Path"},"code":{"type":"string","enum":["missing","invalid","invalid_json"],"title":"Code"},"message":{"type":"string","maxLength":512,"minLength":1,"title":"Message"}},"additionalProperties":false,"type":"object","required":["path","code","message"],"title":"Issue"},"JsonValue":{},"KnownSaleCap":{"properties":{"status":{"type":"string","const":"available","title":"Status"},"label":{"type":"string","const":"Implied cap rate, after reserves","title":"Label"},"value":{"type":"number","maximum":1000000000000000.0,"minimum":-1000000000000000.0,"title":"Value"}},"additionalProperties":false,"type":"object","required":["status","label","value"],"title":"KnownSaleCap"},"LatecomerAgreement":{"properties":{"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"file_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Number"},"expiry_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expiry Date"}},"type":"object","title":"LatecomerAgreement"},"LatecomerResult":{"properties":{"checked":{"type":"boolean","title":"Checked"},"status":{"type":"string","title":"Status"},"inside_agreement_area":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Inside Agreement Area"},"agreements":{"items":{"$ref":"#/components/schemas/LatecomerAgreement"},"type":"array","title":"Agreements","default":[]},"retrieved_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Retrieved At"},"served_from_layer_cache":{"type":"boolean","title":"Served From Layer Cache","default":false},"source":{"type":"string","title":"Source","default":"City of Kelowna, Latecomer Agreements (geoportal.kelowna.ca, OpenData_Planning_and_other MapServer layer 19)"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["checked","status"],"title":"LatecomerResult","description":"A parcel inside a Latecomer Agreement polygon may OWE a charge on connection\n(Local Government Act s.508; research 3.3). Directly proforma-relevant."},"LayerCreate":{"properties":{"slug":{"type":"string","title":"Slug"},"name":{"type":"string","title":"Name"},"data_source_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Data Source Id"},"geometry_type":{"type":"string","title":"Geometry Type"},"render_type":{"type":"string","title":"Render Type"},"style_config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Style Config"},"popup_config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Popup Config"},"min_zoom":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Min Zoom"},"max_zoom":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Zoom"},"is_public":{"type":"boolean","title":"Is Public","default":true},"srid":{"type":"integer","title":"Srid","default":4326}},"type":"object","required":["slug","name","geometry_type","render_type"],"title":"LayerCreate"},"LayerUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"data_source_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Data Source Id"},"render_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Render Type"},"style_config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Style Config"},"popup_config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Popup Config"},"min_zoom":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Min Zoom"},"max_zoom":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Zoom"},"is_public":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Public"}},"type":"object","title":"LayerUpdate"},"Line":{"properties":{"id":{"type":"string","maxLength":80,"title":"Id"},"label":{"type":"string","maxLength":400,"title":"Label"},"section":{"type":"string","maxLength":40,"title":"Section"},"basis":{"type":"string","maxLength":60,"title":"Basis"},"value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value"},"unit":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Unit"},"amount":{"type":"number","title":"Amount"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"source":{"additionalProperties":true,"type":"object","title":"Source"},"quantity":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Quantity"},"keepAtZero":{"type":"boolean","title":"Keepatzero","default":false},"sourceKey":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Sourcekey"},"citeOpts":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Citeopts"}},"type":"object","required":["id","label","section","basis","amount"],"title":"Line"},"Location":{"properties":{"lat":{"type":"number","maximum":90.0,"minimum":-90.0,"title":"Lat"},"lng":{"type":"number","maximum":180.0,"minimum":-180.0,"title":"Lng"},"accuracy_m":{"type":"number","maximum":1000000.0,"minimum":0.0,"title":"Accuracy M"}},"additionalProperties":false,"type":"object","required":["lat","lng","accuracy_m"],"title":"Location"},"LookupRequest":{"properties":{"address":{"type":"string","maxLength":200,"minLength":1,"title":"Address"},"source_policy":{"type":"string","enum":["live","saved","historical"],"title":"Source Policy","default":"live"},"design":{"anyOf":[{"$ref":"#/components/schemas/Design"},{"type":"null"}]},"source_snapshot_id":{"anyOf":[{"type":"string","pattern":"^[0-9a-f]{64}$"},{"type":"null"}],"title":"Source Snapshot Id"}},"additionalProperties":false,"type":"object","required":["address"],"title":"LookupRequest"},"LookupResult":{"properties":{"schema_version":{"type":"integer","const":1,"title":"Schema Version","default":1},"adapter_version":{"type":"string","title":"Adapter Version","default":"vancouver-c2a-conditional-v1"},"municipality":{"type":"string","const":"vancouver","title":"Municipality","default":"vancouver"},"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"next_step":{"type":"string","title":"Next Step"},"address":{"type":"string","title":"Address"},"source_identity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Identity"},"current_authority":{"type":"boolean","title":"Current Authority","default":false},"evidence_age_days":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Evidence Age Days"},"law_reviewed_on":{"type":"string","title":"Law Reviewed On","default":"2026-10-13"},"parcel":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Parcel"},"zone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Zone"},"reads":{"items":{"$ref":"#/components/schemas/Read"},"type":"array","title":"Reads"},"rules":{"additionalProperties":true,"type":"object","title":"Rules"},"geometry":{"anyOf":[{"$ref":"#/components/schemas/Geometry"},{"type":"null"}]},"conditions":{"items":{"type":"string"},"type":"array","title":"Conditions"},"pricing_status":{"type":"string","const":"unavailable","title":"Pricing Status","default":"unavailable"},"money":{"type":"null","title":"Money"},"unresolved_financial_inputs":{"items":{"type":"string"},"type":"array","title":"Unresolved Financial Inputs"},"attribution":{"type":"string","title":"Attribution","default":"Contains information licensed under the Open Government Licence – Vancouver."}},"additionalProperties":false,"type":"object","required":["status","message","next_step","address"],"title":"LookupResult"},"MarketCrossChecks":{"properties":{"version":{"type":"integer","const":1,"title":"Version"},"use":{"type":"string","const":"cross_check","title":"Use"},"records":{"items":{"$ref":"#/components/schemas/MarketProjection"},"type":"array","maxItems":100,"title":"Records"}},"additionalProperties":false,"type":"object","required":["version","use","records"],"title":"MarketCrossChecks"},"MarketFigure":{"properties":{"name":{"type":"string","maxLength":256,"minLength":1,"title":"Name"},"value":{"type":"number","maximum":1000000000000000.0,"minimum":-1000000000000000.0,"title":"Value"},"unit":{"type":"string","maxLength":64,"minLength":1,"title":"Unit"},"as_of":{"type":"string","maxLength":128,"minLength":1,"title":"As Of"}},"additionalProperties":false,"type":"object","required":["name","value","unit","as_of"],"title":"MarketFigure"},"MarketProjection":{"properties":{"record":{"$ref":"#/components/schemas/MarketRecord"},"scope":{"$ref":"#/components/schemas/MarketScope"}},"additionalProperties":false,"type":"object","required":["record","scope"],"title":"MarketProjection"},"MarketRecord":{"properties":{"version":{"type":"integer","const":1,"title":"Version"},"source":{"$ref":"#/components/schemas/MarketSource"},"city":{"type":"string","maxLength":128,"minLength":1,"title":"City"},"building_type":{"type":"string","maxLength":128,"minLength":1,"title":"Building Type"},"figures":{"items":{"$ref":"#/components/schemas/MarketFigure"},"type":"array","maxItems":1000,"title":"Figures"},"use":{"type":"string","const":"cross_check","title":"Use"}},"additionalProperties":false,"type":"object","required":["version","source","city","building_type","figures","use"],"title":"MarketRecord"},"MarketScope":{"properties":{"status":{"type":"string","enum":["matching","inapplicable","unknown"],"title":"Status"},"reasons":{"items":{"type":"string","enum":["city_unknown","building_type_unknown","city_mismatch","building_type_mismatch"]},"type":"array","title":"Reasons"},"comparability":{"type":"string","const":"not_established","title":"Comparability"}},"additionalProperties":false,"type":"object","required":["status","reasons","comparability"],"title":"MarketScope"},"MarketSource":{"properties":{"name":{"type":"string","maxLength":512,"minLength":1,"title":"Name"},"url":{"type":"string","maxLength":2048,"minLength":1,"title":"Url"},"retrieved":{"type":"string","maxLength":10,"minLength":10,"title":"Retrieved"}},"additionalProperties":false,"type":"object","required":["name","url","retrieved"],"title":"MarketSource"},"Meta":{"properties":{"title":{"type":"string","title":"Title","default":"Development pro forma"},"address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address"},"preparedFor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preparedfor"},"market":{"type":"string","title":"Market","default":"none"},"generated":{"type":"string","title":"Generated"},"basis":{"type":"string","title":"Basis","default":"Residual land value: what the land can carry, given what the homes sell for and what building them costs."},"servedFromSnapshot":{"type":"boolean","title":"Servedfromsnapshot","default":false},"snapshotCapturedAt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Snapshotcapturedat"},"layerCacheSentence":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Layercachesentence"},"layerCacheTail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Layercachetail"}},"type":"object","title":"Meta","description":"The header fields, DECLARED rather than left free-form.\n\nThis was `Dict[str, Any]` defaulting to `{}`, a schema saying every key is optional over\na renderer that indexes six of them with `[...]`. Four of the six (`title`, `market`,\n`generated`, `basis`) turned an absent key into a 500, and the other two happened to be\nread through `.get`. The browser's own refusal path omitted two of the four, so Download\nreturned a 500 on every site the screen declines to price.\n\nDeclaring them fixes the class rather than the four instances: a key the renderer reads\ncannot now be missing, the defaults are visible in the OpenAPI schema instead of implied,\nand the next field someone adds to the renderer has somewhere to be declared."},"Metrics":{"properties":{"basis":{"type":"string","enum":["lines","ratio"],"title":"Basis"},"per_unit":{"type":"number","maximum":1000000000000000.0,"minimum":0.0,"title":"Per Unit"},"ratio":{"anyOf":[{"type":"number","maximum":1000000000000000.0,"minimum":0.0},{"type":"null"}],"title":"Ratio"}},"additionalProperties":false,"type":"object","required":["basis","per_unit","ratio"],"title":"Metrics"},"MissingSaleIncome":{"properties":{"status":{"type":"string","const":"income_not_supplied","title":"Status"},"label":{"type":"string","const":"Income after reserves not supplied","title":"Label"}},"additionalProperties":false,"type":"object","required":["status","label"],"title":"MissingSaleIncome"},"NearestLabel":{"properties":{"status":{"type":"string","enum":["available","unavailable","unsupported","not_found"],"title":"Status"},"address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address"},"relation":{"type":"string","enum":["on_parcel","off_parcel","unknown"],"title":"Relation","default":"unknown"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"caveat":{"type":"string","title":"Caveat","default":"nearest address, not necessarily this parcel"}},"additionalProperties":false,"type":"object","required":["status"],"title":"NearestLabel"},"NearestMain":{"properties":{"distance_m":{"type":"number","title":"Distance M"},"diameter":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Diameter"},"diameter_numeric_mm":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Diameter Numeric Mm"},"material":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Material"},"install_year":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Install Year"},"feature_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Feature Id"},"source_layer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Layer"},"layer_version_or_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Layer Version Or Time"},"version_is_retrieval_time":{"type":"boolean","title":"Version Is Retrieval Time","default":false},"feature_fingerprint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Feature Fingerprint"},"nearest_point":{"anyOf":[{"prefixItems":[{"type":"number"},{"type":"number"}],"type":"array","maxItems":2,"minItems":2},{"type":"null"}],"title":"Nearest Point"},"measured_from":{"anyOf":[{"prefixItems":[{"type":"number"},{"type":"number"}],"type":"array","maxItems":2,"minItems":2},{"type":"null"}],"title":"Measured From"},"basis":{"type":"string","title":"Basis","default":"boundary"},"lower_bound":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Lower Bound"},"completeness":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Completeness"}},"type":"object","required":["distance_m"],"title":"NearestMain","description":"The closest Active main, with the attributes a screen can honestly print.\n\ndiameter_numeric_mm exists so the screen can compare a fronting water main against the\n200 mm Bylaw 7900 Schedule 4 minimum. It is a pipe SIZE, never a capacity claim.\n\nservicing-v2 R1: the CANONICAL record names the frozen workspace R6 AC1 consumer reads\n(Codex review S5, 2026-09-10): feature_id (the layer's OBJECTID), source_layer (the\nMapServer service/layer path, independent of query params), layer_version_or_time (the\nlayer's own editingInfo.lastEditDate when the metadata carries one; otherwise the\nretrieval time, with version_is_retrieval_time=True so a consumer never mistakes a\nretrieval timestamp for a dataset version; two retrieval timestamps alone must never\nsatisfy a same-snapshot check), feature_fingerprint (a stable hash of the feature's own\ncoordinates AS READ in the WGS84 representation ArcGIS returned them in, see\n_feature_fingerprint), nearest_point and measured_from (lon, lat; the nearest point on\nthis feature and the point on the parcel boundary nearest to it), and basis (fixed\n\"boundary\" in this ring; R2 adds a second, separately named frontage basis)."},"NearestQuery":{"properties":{"lat":{"type":"number","title":"Lat"},"lng":{"type":"number","title":"Lng"},"layer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Layer Id"},"radius_meters":{"type":"number","title":"Radius Meters","default":1000.0},"limit":{"type":"integer","title":"Limit","default":10}},"type":"object","required":["lat","lng"],"title":"NearestQuery"},"NeighbourRequest":{"properties":{"phase":{"type":"string","enum":["preview","confirm"],"title":"Phase"},"subject":{"$ref":"#/components/schemas/ParcelPoint"},"neighbours":{"items":{"$ref":"#/components/schemas/ParcelPoint"},"type":"array","maxItems":12,"title":"Neighbours"},"address":{"type":"string","maxLength":250,"title":"Address","default":""},"efficiency_ratio":{"type":"number","maximum":1.0,"exclusiveMinimum":0.0,"title":"Efficiency Ratio","default":0.83},"avg_unit_size_sqm":{"type":"number","exclusiveMinimum":0.0,"title":"Avg Unit Size Sqm","default":75.0}},"type":"object","required":["phase","subject"],"title":"NeighbourRequest"},"NotPriced":{"properties":{"line":{"type":"string","title":"Line"},"reason":{"type":"string","title":"Reason"},"nowCarriedVia":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nowcarriedvia"},"notADollarCost":{"anyOf":[{"type":"string","maxLength":400},{"type":"null"}],"title":"Notadollarcost"},"carriedAs":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Carriedas"},"notInRegister":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Notinregister"}},"type":"object","required":["line","reason"],"title":"NotPriced","description":"A cost this model does not carry, and why.\n\nDECLARED, for the reason this file keeps repeating: an undeclared key is stripped by\n`model_dump()` before the renderer sees it. Every entry pushes the land ceiling DOWN, so a\nfile that drops them states an optimistic price and does not say so."},"OperatorInputEvidence":{"properties":{"date":{"type":"string","maxLength":10,"title":"Date"},"basis":{"type":"string","maxLength":400,"title":"Basis"},"applicability":{"type":"string","maxLength":400,"title":"Applicability"}},"type":"object","required":["date","basis","applicability"],"title":"OperatorInputEvidence"},"ParcelPoint":{"properties":{"parcel_id":{"type":"string","maxLength":80,"minLength":1,"title":"Parcel Id"},"lat":{"type":"number","maximum":90.0,"minimum":-90.0,"title":"Lat"},"lng":{"type":"number","maximum":180.0,"minimum":-180.0,"title":"Lng"},"address":{"type":"string","maxLength":250,"title":"Address","default":""},"fingerprint":{"type":"string","maxLength":64,"title":"Fingerprint","default":""}},"type":"object","required":["parcel_id","lat","lng"],"title":"ParcelPoint"},"ParcelResult":{"properties":{"source":{"type":"string","title":"Source"},"parcel_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parcel Id"},"pid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pid"},"municipality":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Municipality"},"parcel_class":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parcel Class"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"area_sqm":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Area Sqm"},"geometry":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Geometry"},"properties":{"additionalProperties":true,"type":"object","title":"Properties","default":{}},"contains_point":{"type":"boolean","title":"Contains Point","default":false},"containment_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Containment Note"},"retrieved_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Retrieved At"},"association_ambiguity":{"anyOf":[{"type":"string","enum":["multiple_containing","candidate_limit"]},{"type":"null"}],"title":"Association Ambiguity"}},"type":"object","required":["source"],"title":"ParcelResult"},"ParkingRuleDisclosure":{"properties":{"rule":{"type":"string","maxLength":40,"title":"Rule"},"ruleWords":{"type":"string","maxLength":400,"title":"Rulewords"},"ruleSource":{"anyOf":[{"type":"string","maxLength":400},{"type":"null"}],"title":"Rulesource"},"stalls":{"type":"number","title":"Stalls"},"reason":{"type":"string","maxLength":20,"title":"Reason"},"type":{"type":"string","maxLength":20,"title":"Type"},"typeWords":{"type":"string","maxLength":40,"title":"Typewords"},"sentence":{"type":"string","maxLength":400,"title":"Sentence"},"stallsCount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Stallscount"},"surfaceCapacity":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Surfacecapacity"},"stallCostSurface":{"type":"number","title":"Stallcostsurface"},"stallCostAllin":{"type":"number","title":"Stallcostallin"},"stallRate":{"type":"number","title":"Stallrate"}},"additionalProperties":false,"type":"object","required":["rule","ruleWords","stalls","reason","type","typeWords","sentence","stallCostSurface","stallCostAllin","stallRate"],"title":"ParkingRuleDisclosure","description":"The parking rule, its stall count, both stall costs and the parking type (assembly\nparking R4). DECLARED, for the reason every model here repeats: an undeclared key is\nstripped by `model_dump()` before the renderer sees it. Words the browser composed from\npriced-building-words.mjs and the engine's own returns; the renderer only formats them,\nand `stallRate` is the engine's `parkingStallRate` (one of the two costs), never a\nrecomputation."},"PointQuery":{"properties":{"lat":{"type":"number","title":"Lat"},"lng":{"type":"number","title":"Lng"},"layer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Layer Id"}},"type":"object","required":["lat","lng"],"title":"PointQuery"},"PreviewRequest":{"properties":{"point":{"$ref":"#/components/schemas/Location"},"jurisdiction":{"type":"string","enum":["kelowna","edmonton"],"title":"Jurisdiction"}},"additionalProperties":false,"type":"object","required":["point","jurisdiction"],"title":"PreviewRequest"},"PreviewResponse":{"properties":{"version":{"type":"integer","const":1,"title":"Version","default":1},"status":{"type":"string","enum":["ready","ambiguous","no_containing_parcel","unavailable","unsupported","out_of_coverage"],"title":"Status"},"point":{"$ref":"#/components/schemas/Location"},"candidates":{"items":{"$ref":"#/components/schemas/Candidate"},"type":"array","title":"Candidates"},"nearest_label":{"$ref":"#/components/schemas/NearestLabel"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"confirmation_required":{"type":"boolean","const":true,"title":"Confirmation Required","default":true}},"additionalProperties":false,"type":"object","required":["status","point","nearest_label"],"title":"PreviewResponse"},"ProfileRecord":{"properties":{"name":{"type":"string","maxLength":80,"title":"Name"},"saved_at":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Saved At"},"keys":{"items":{"type":"string"},"type":"array","maxItems":200,"title":"Keys"},"notes":{"additionalProperties":{"type":"string"},"type":"object","title":"Notes"}},"type":"object","required":["name"],"title":"ProfileRecord","description":"R3-the-profile-reaches-the-file, AC1/AC2: the applied developer profile, DECLARED for the\nreason every model in this file repeats: an undeclared key on a model with no\n`extra=\"allow\"` is stripped by `model_dump()` before `build_workbook()` ever sees it, and\nthis ring exists precisely because that class of bug has bitten three times already (see\n`Meta`, `ProvenanceRow`, `CashFlow`'s own docstrings).\n\n`name`/`saved_at`/`keys` mirror profile.mjs's `applyProfile` record (R1) field for field;\n`notes` is the profile's own per-key caveat map (R1's `parseProfile`), carried so the\nregister can print the note beside the profile sentence it belongs to (AC1/AC4)."},"ProjectCost":{"properties":{"id":{"type":"string","maxLength":72,"pattern":"^project_[a-z][a-z0-9_]{0,63}$","title":"Id"},"label":{"type":"string","maxLength":500,"minLength":1,"title":"Label"},"section":{"type":"string","enum":["development","site_servicing","construction","warranty","marketing","management","holding"],"title":"Section"},"status":{"type":"string","enum":["included","unpriced","excluded","not_applicable"],"title":"Status"},"basis":{"type":"string","enum":["fixed","per_unit","per_gfa_sqm","pct_costs","annual_per_month"],"title":"Basis"},"value":{"anyOf":[{"type":"number","maximum":1000000000000.0,"minimum":0.0},{"type":"null"}],"title":"Value"},"dependencies":{"items":{"type":"string","maxLength":500,"minLength":1},"type":"array","maxItems":50,"title":"Dependencies"},"replaces":{"items":{"type":"string","maxLength":500,"minLength":1},"type":"array","maxItems":50,"title":"Replaces"},"includes":{"items":{"type":"string","maxLength":500,"minLength":1},"type":"array","maxItems":50,"title":"Includes"},"funding":{"type":"string","enum":["cash","construction"],"title":"Funding"},"source":{"$ref":"#/components/schemas/ProjectCostSource"},"holdingMonths":{"anyOf":[{"type":"number","maximum":1200.0,"minimum":0.0},{"type":"null"}],"title":"Holdingmonths"},"taxYear":{"anyOf":[{"type":"integer","maximum":2200.0,"minimum":1900.0},{"type":"null"}],"title":"Taxyear"},"amount":{"anyOf":[{"type":"number","maximum":1000000000000.0,"minimum":0.0},{"type":"null"}],"title":"Amount"},"quantity":{"anyOf":[{"type":"number","maximum":1000000000000.0,"minimum":0.0},{"type":"null"}],"title":"Quantity"},"readiness":{"type":"string","enum":["priced","unpriced","excluded","not_applicable"],"title":"Readiness"}},"additionalProperties":false,"type":"object","required":["id","label","section","status","basis","value","dependencies","replaces","includes","funding","source","amount","quantity","readiness"],"title":"ProjectCost","description":"Accepted JS entry plus its evaluated disclosure; never price it here."},"ProjectCostDisclosure":{"properties":{"id":{"type":"string","maxLength":72,"pattern":"^project_[a-z][a-z0-9_]{0,63}$","title":"Id"},"section":{"type":"string","maxLength":500,"minLength":1,"title":"Section"},"status":{"type":"string","maxLength":500,"minLength":1,"title":"Status"},"readiness":{"type":"string","maxLength":500,"minLength":1,"title":"Readiness"},"basis":{"type":"string","maxLength":500,"minLength":1,"title":"Basis"},"value":{"type":"string","maxLength":500,"minLength":1,"title":"Value"},"quantity":{"type":"string","maxLength":500,"minLength":1,"title":"Quantity"},"replaces":{"type":"string","maxLength":26000,"minLength":1,"title":"Replaces"},"includes":{"type":"string","maxLength":26000,"minLength":1,"title":"Includes"},"dependencies":{"type":"string","maxLength":26000,"minLength":1,"title":"Dependencies"},"funding":{"type":"string","maxLength":500,"minLength":1,"title":"Funding"}},"additionalProperties":false,"type":"object","required":["id","section","status","readiness","basis","value","quantity","replaces","includes","dependencies","funding"],"title":"ProjectCostDisclosure","description":"Optional reader projection; canonical evaluated records still own every figure."},"ProjectCostSource":{"properties":{"reference":{"type":"string","maxLength":500,"minLength":1,"title":"Reference"},"asOf":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Asof"}},"additionalProperties":false,"type":"object","required":["reference","asOf"],"title":"ProjectCostSource"},"PropertyContext":{"properties":{"version":{"type":"integer","const":1,"title":"Version"},"receiptId":{"type":"string","maxLength":128,"minLength":1,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]*$","title":"Receiptid"},"requestedAddress":{"type":"string","maxLength":256,"minLength":1,"title":"Requestedaddress"},"resolvedAddress":{"type":"string","maxLength":256,"minLength":1,"title":"Resolvedaddress"},"jurisdiction":{"type":"string","maxLength":128,"minLength":1,"pattern":"^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$","title":"Jurisdiction"},"parcelIds":{"items":{"type":"string","maxLength":128,"minLength":1},"type":"array","maxItems":100,"minItems":1,"title":"Parcelids"},"observedAt":{"type":"string","maxLength":24,"minLength":20,"title":"Observedat"},"provenance":{"$ref":"#/components/schemas/PropertyReceiptSource"}},"additionalProperties":false,"type":"object","required":["version","receiptId","requestedAddress","resolvedAddress","jurisdiction","parcelIds","observedAt","provenance"],"title":"PropertyContext"},"PropertyReceiptSource":{"properties":{"kind":{"type":"string","enum":["live","saved","recorded"],"title":"Kind"},"source":{"type":"string","maxLength":256,"minLength":1,"title":"Source"},"asOf":{"type":"string","maxLength":35,"minLength":10,"title":"Asof"}},"additionalProperties":false,"type":"object","required":["kind","source","asOf"],"title":"PropertyReceiptSource"},"Provenance":{"properties":{"synthetic":{"type":"boolean","title":"Synthetic"},"subject_verification":{"type":"string","enum":["client_entered","synthetic"],"title":"Subject Verification"},"note":{"type":"string","maxLength":1024,"title":"Note"},"scalar":{"items":{"$ref":"#/components/schemas/Scalar"},"type":"array","maxItems":7,"title":"Scalar"},"groups":{"$ref":"#/components/schemas/Groups"}},"additionalProperties":false,"type":"object","required":["synthetic","subject_verification","note","scalar","groups"],"title":"Provenance"},"ProvenanceRow":{"properties":{"line":{"anyOf":[{"type":"string","maxLength":400},{"type":"null"}],"title":"Line"},"basis":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Basis"},"value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value"},"unit":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Unit"},"kind":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Kind"},"cite":{"anyOf":[{"type":"string","maxLength":700},{"type":"null"}],"title":"Cite"},"n":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"N"},"url":{"anyOf":[{"type":"string","maxLength":400},{"type":"null"}],"title":"Url"},"retrieved":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Retrieved"},"sources":{"anyOf":[{"items":{"$ref":"#/components/schemas/ProvenanceSource"},"type":"array","maxItems":20},{"type":"null"}],"title":"Sources"}},"type":"object","title":"ProvenanceRow","description":"A register row, DECLARED for the same reason `Meta` is.\n\nThe `Meta` docstring claims declaring the model \"fixes the class rather than the four\ninstances\". It fixed one dictionary of six: this one stayed `Dict[str, Any]` (a schema\npromising every key is optional) over a renderer that indexes six of them with `[...]`.\n`provenance: [{}]` answered 500. The browser happens to always emit all six, so it was\nlatent rather than live, but the endpoint is public and the schema is the contract."},"ProvenanceSource":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Name"},"url":{"anyOf":[{"type":"string","maxLength":400},{"type":"null"}],"title":"Url"},"date":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Date"}},"type":"object","title":"ProvenanceSource","description":"One entry of a MULTI-source citation (SPEC-edmonton-jurisdiction-2026-09-06 R5 AC7,\nv1.3): `url`/`retrieved` on `ProvenanceRow` below only ever carry ONE source, and Edmonton's\nrevenue_sqm basis cites six (RentCafe, two CMHC tables, Boardwalk, CBRE, City assessment).\nDeclared the same way `ProvenanceRow` itself is: an undeclared key on a typed sub-model is\nstripped by `model_dump()` silently, which is exactly the class of defect this model exists\nto prevent (see this file's own `Meta`/`ProvenanceRow` docstrings)."},"ProvenanceTag":{"properties":{"tag":{"type":"string","title":"Tag"},"bylaw_section":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bylaw Section"},"conservative_application":{"type":"boolean","title":"Conservative Application","default":false}},"type":"object","required":["tag"],"title":"ProvenanceTag"},"Read":{"properties":{"dataset":{"type":"string","title":"Dataset"},"url":{"type":"string","title":"Url"},"retrieved_at":{"type":"string","title":"Retrieved At"},"http_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Http Date"},"body_sha256":{"type":"string","title":"Body Sha256"},"state":{"type":"string","enum":["live","saved"],"title":"State"},"total_count":{"type":"integer","title":"Total Count"},"feature_last_edit":{"type":"null","title":"Feature Last Edit"}},"additionalProperties":false,"type":"object","required":["dataset","url","retrieved_at","body_sha256","state","total_count"],"title":"Read"},"ReadyCell":{"properties":{"step":{"type":"number","maximum":1000000000000000.0,"minimum":-1000000000000000.0,"title":"Step"},"status":{"type":"string","const":"ready","title":"Status"},"rate":{"type":"number","maximum":1000000000000000.0,"minimum":-1000000000000000.0,"title":"Rate"}},"additionalProperties":false,"type":"object","required":["step","status","rate"],"title":"ReadyCell"},"RoadSourceInfo":{"properties":{"name":{"type":"string","title":"Name"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"licence":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Licence"},"attribution":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Attribution"},"retrieved_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Retrieved At"},"status":{"type":"string","title":"Status","default":"ok"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"feature_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Feature Count"}},"type":"object","required":["name"],"title":"RoadSourceInfo","description":"WHICH road dataset an envelope's edge classification was drawn against, and WHEN that\ndataset was read.\n\nA per-edge setback is only defensible if the frontage behind it is: the whole difference\nbetween a 33 m2 envelope and a 133 m2 one on a 10 x 40 m lot is which edge was called the\nfront. A figure whose source cannot be named is exactly what this product refuses to\npublish, so the envelope carries its own road provenance rather than leaving a reader to\ninfer it from the jurisdiction.\n\n`status` is \"ok\" when the service answered (WITH OR WITHOUT features at this point) and\n\"unavailable\" when it did not, the same two-outcome distinction `fetch_nearby_roads`\nalready draws by returning `[]` versus `None`, made legible instead of implied. An\n\"unavailable\" record is still recorded on the envelope: \"we tried this named source and it\ndid not answer\" is a fact about the read, and it is the reason the conservative figure is\non screen.\n\nNull on an envelope means only that the caller named no road source. It is NOT a claim\nthat no roads were read: the Kelowna path has read DataBC's Digital Road Atlas since\nbefore this model existed, and that path is deliberately left byte-identical here. Where\nit names that source is uneven: this module's own docstring, and the area screen's\nfooter (\"Roads: DataBC Digital Road Atlas\"), but NOT the site screen's footer and not, per\nlookup, in the payload. Filling that gap means populating this field on the Kelowna path\ntoo, which is a change to Kelowna's response shape and belongs to whoever makes it\ndeliberately, not to this Edmonton pass."},"RowBasis":{"properties":{"currency":{"type":"string","const":"CAD","title":"Currency"},"unit":{"type":"string","enum":["dollars","dollars_per_sqft"],"title":"Unit"},"period":{"type":"string","enum":["month","year","one_time"],"title":"Period"}},"additionalProperties":false,"type":"object","required":["currency","unit","period"],"title":"RowBasis"},"RowEvidenceSource":{"properties":{"kind":{"type":"string","enum":["manual","imported","preset"],"title":"Kind"},"label":{"type":"string","maxLength":256,"minLength":1,"title":"Label"},"reference":{"anyOf":[{"type":"string","maxLength":2048,"minLength":1},{"type":"null"}],"title":"Reference"},"asOf":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"title":"Asof"}},"additionalProperties":false,"type":"object","required":["kind","label"],"title":"RowEvidenceSource"},"RowSelection":{"properties":{"value":{"type":"number","maximum":1000000000000000.0,"minimum":-1000000000000000.0,"title":"Value"},"basis":{"$ref":"#/components/schemas/RowBasis"},"source":{"$ref":"#/components/schemas/RowEvidenceSource"},"candidateId":{"anyOf":[{"type":"string","maxLength":128,"minLength":1},{"type":"null"}],"title":"Candidateid"},"confirmed":{"type":"boolean","title":"Confirmed"},"revision":{"type":"integer","maximum":9007199254740991.0,"minimum":1.0,"title":"Revision"}},"additionalProperties":false,"type":"object","required":["value","basis","source","candidateId","confirmed","revision"],"title":"RowSelection"},"RowSources":{"properties":{"version":{"type":"integer","const":1,"title":"Version"},"units":{"items":{"$ref":"#/components/schemas/UnitRowSource"},"type":"array","maxItems":1000,"title":"Units"},"cost_lines":{"items":{"$ref":"#/components/schemas/CostRowSource"},"type":"array","maxItems":1000,"title":"Cost Lines"}},"additionalProperties":false,"type":"object","required":["version","units","cost_lines"],"title":"RowSources"},"SaleReserveBasis":{"properties":{"kind":{"type":"string","maxLength":64,"minLength":1,"title":"Kind"},"reserves_per_unit_year":{"anyOf":[{"type":"number","maximum":1000000000000000.0,"minimum":0.0},{"type":"null"}],"title":"Reserves Per Unit Year"}},"additionalProperties":false,"type":"object","required":["kind"],"title":"SaleReserveBasis"},"SaleSource":{"properties":{"kind":{"type":"string","enum":["manual","synthetic","market"],"title":"Kind"},"name":{"type":"string","maxLength":256,"minLength":1,"title":"Name"},"reference":{"type":"string","maxLength":2048,"minLength":1,"title":"Reference"},"as_of":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","title":"As Of"}},"additionalProperties":false,"type":"object","required":["kind","name","reference","as_of"],"title":"SaleSource"},"SanitaryServicingResult":{"properties":{"checked":{"type":"boolean","title":"Checked"},"status":{"type":"string","title":"Status"},"main_checked":{"type":"boolean","title":"Main Checked","default":false},"laterals_checked":{"type":"boolean","title":"Laterals Checked","default":false},"at_line_via":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"At Line Via"},"at_line_feature":{"anyOf":[{"$ref":"#/components/schemas/AtLineFeature"},{"type":"null"}]},"nearest_main":{"anyOf":[{"$ref":"#/components/schemas/NearestMain"},{"type":"null"}]},"candidates":{"items":{"$ref":"#/components/schemas/CandidateFeature"},"type":"array","title":"Candidates","default":[]},"candidates_partial":{"type":"boolean","title":"Candidates Partial","default":false},"search_radius_m":{"type":"number","title":"Search Radius M","default":500.0},"retrieved_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Retrieved At"},"served_from_layer_cache":{"type":"boolean","title":"Served From Layer Cache","default":false},"source":{"type":"string","title":"Source","default":"City of Kelowna, Sanitary Main / Service / Stub (geoportal.kelowna.ca, OpenData_Utilities_Sanitary MapServer layers 11/10/1)"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"frontage":{"anyOf":[{"$ref":"#/components/schemas/FrontageBasis"},{"type":"null"}]},"selected":{"anyOf":[{"$ref":"#/components/schemas/SelectedPricingRecord"},{"type":"null"}]}},"type":"object","required":["checked","status"],"title":"SanitaryServicingResult"},"Scalar":{"properties":{"field":{"type":"string","enum":["other_income","vacancy","credit_loss","reserves_per_unit_per_year","asking_price","client_cap_rate","ratio"],"title":"Field"},"value":{"type":"number","maximum":1000000000000000.0,"minimum":-1000000000000000.0,"title":"Value"},"basis":{"$ref":"#/components/schemas/Basis"},"confirmed":{"type":"boolean","title":"Confirmed"},"source":{"$ref":"#/components/schemas/Source"},"active":{"type":"boolean","title":"Active"},"label":{"type":"string","maxLength":256,"minLength":1,"title":"Label"}},"additionalProperties":false,"type":"object","required":["field","value","basis","confirmed","source","active","label"],"title":"Scalar"},"ScenarioIn":{"properties":{"version":{"type":"integer","enum":[1,2],"title":"Version"},"revision":{"type":"integer","minimum":0.0,"title":"Revision"},"jurisdiction":{"type":"string","enum":["kelowna","edmonton","langford","new-westminster","burnaby","richmond","vancouver"],"title":"Jurisdiction"},"site":{"additionalProperties":true,"type":"object","title":"Site"},"parcel":{"additionalProperties":true,"type":"object","title":"Parcel"},"envelope":{"additionalProperties":true,"type":"object","title":"Envelope"},"edges":{"items":{},"type":"array","maxItems":512,"title":"Edges"},"scheme":{"additionalProperties":true,"type":"object","title":"Scheme"},"context":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Context"},"provenance":{"additionalProperties":true,"type":"object","title":"Provenance"},"model_version":{"type":"string","maxLength":128,"minLength":1,"title":"Model Version"},"effective_inputs":{"additionalProperties":true,"type":"object","title":"Effective Inputs"},"profile_snapshot":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Profile Snapshot"},"profile_record":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Profile Record"},"entitlement_snapshot":{"additionalProperties":true,"type":"object","title":"Entitlement Snapshot"},"reset_target":{"additionalProperties":true,"type":"object","title":"Reset Target"},"source_identity":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Source Identity"},"revenue_basis":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Revenue Basis"}},"additionalProperties":false,"type":"object","required":["version","revision","jurisdiction","site","parcel","envelope","edges","scheme","context","provenance","model_version","effective_inputs","profile_snapshot","profile_record","entitlement_snapshot","reset_target"],"title":"ScenarioIn"},"SceneDocument":{"properties":{"geometry":{"additionalProperties":true,"type":"object","title":"Geometry"},"figures":{"additionalProperties":true,"type":"object","title":"Figures"},"status":{"additionalProperties":true,"type":"object","title":"Status"},"provenance":{"additionalProperties":true,"type":"object","title":"Provenance"}},"additionalProperties":false,"type":"object","required":["geometry","figures","status","provenance"],"title":"SceneDocument","description":"Render-only Scene projection. No assumptions object or financial model accepted."},"SceneIn":{"properties":{"version":{"type":"integer","enum":[1,2],"title":"Version"},"scenario_revision":{"type":"integer","minimum":0.0,"title":"Scenario Revision"},"site":{"additionalProperties":true,"type":"object","title":"Site"},"frame":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Frame"},"ground":{"additionalProperties":true,"type":"object","title":"Ground"},"setbacks":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Setbacks"},"subject":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Subject"},"parking":{"additionalProperties":true,"type":"object","title":"Parking"},"context":{"additionalProperties":true,"type":"object","title":"Context"},"figures":{"additionalProperties":true,"type":"object","title":"Figures"},"status":{"additionalProperties":true,"type":"object","title":"Status"},"assumptions":{"items":{"type":"string"},"type":"array","maxItems":128,"title":"Assumptions"},"provenance":{"additionalProperties":true,"type":"object","title":"Provenance"}},"additionalProperties":false,"type":"object","required":["version","scenario_revision","site","frame","ground","setbacks","subject","parking","context","figures","status","assumptions","provenance"],"title":"SceneIn"},"ScenePairIn":{"properties":{"version":{"type":"integer","enum":[1,2],"title":"Version"},"scenario":{"$ref":"#/components/schemas/ScenarioIn"},"scene":{"$ref":"#/components/schemas/SceneIn"}},"additionalProperties":false,"type":"object","required":["version","scenario","scene"],"title":"ScenePairIn"},"Section":{"properties":{"key":{"type":"string","maxLength":40,"title":"Key"},"title":{"type":"string","maxLength":120,"title":"Title"},"subtotal":{"type":"number","title":"Subtotal"},"lines":{"items":{"$ref":"#/components/schemas/Line"},"type":"array","maxItems":120,"title":"Lines"},"note":{"anyOf":[{"type":"string","maxLength":400},{"type":"null"}],"title":"Note"}},"type":"object","required":["key","title","subtotal","lines"],"title":"Section"},"SelectedPricingRecord":{"properties":{"class":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Class"},"distance_m":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Distance M"},"basis":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Basis"},"feature_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Feature Id"},"completeness":{"type":"string","title":"Completeness","default":"complete"}},"type":"object","title":"SelectedPricingRecord","description":"servicing-v2 R3 AC1: the ONE record the money layer prices, chosen once here (never\nre-derived from `.status` alone downstream) by precedence: `at_line` (the strongest,\ndirectly-observed evidence) wins outright; else the resolved, non-truncated frontage\nreading with its OWN class (from the frontage distance); else the boundary basis's own\nclass and distance, named `boundary_fallback`. `class_` (serialized \"class\") is\n`at_line | fronting | near | distant | none_found`; `basis` is\n`at_line | frontage | boundary_fallback`. `completeness` is \"incomplete\" (never a class,\nnever a distance) whenever `candidates_partial` withheld the basis under AC9; an\nincomplete record is never promoted to a priced minimum."},"Sensitivity":{"properties":{"status":{"type":"string","const":"ready","title":"Status"},"calculation_version":{"type":"string","const":"income-statement-v2","title":"Calculation Version"},"issues":{"items":{"$ref":"#/components/schemas/Issue"},"type":"array","maxItems":0,"title":"Issues"},"rent":{"items":{"oneOf":[{"$ref":"#/components/schemas/ReadyCell"},{"$ref":"#/components/schemas/UnavailableCell"}],"discriminator":{"propertyName":"status","mapping":{"ready":"#/components/schemas/ReadyCell","unavailable":"#/components/schemas/UnavailableCell"}}},"type":"array","maxItems":5,"minItems":5,"title":"Rent"},"vacancy":{"items":{"oneOf":[{"$ref":"#/components/schemas/ReadyCell"},{"$ref":"#/components/schemas/UnavailableCell"}],"discriminator":{"propertyName":"status","mapping":{"ready":"#/components/schemas/ReadyCell","unavailable":"#/components/schemas/UnavailableCell"}}},"type":"array","maxItems":5,"minItems":5,"title":"Vacancy"},"operating_costs":{"items":{"oneOf":[{"$ref":"#/components/schemas/ReadyCell"},{"$ref":"#/components/schemas/UnavailableCell"}],"discriminator":{"propertyName":"status","mapping":{"ready":"#/components/schemas/ReadyCell","unavailable":"#/components/schemas/UnavailableCell"}}},"type":"array","maxItems":5,"minItems":5,"title":"Operating Costs"}},"additionalProperties":false,"type":"object","required":["status","calculation_version","issues","rent","vacancy","operating_costs"],"title":"Sensitivity"},"SensitivityDim":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"low":{"type":"number","title":"Low"},"high":{"type":"number","title":"High"},"pessimistic":{"anyOf":[{},{"type":"null"}],"title":"Pessimistic"},"optimistic":{"anyOf":[{},{"type":"null"}],"title":"Optimistic"},"unconvergedSamples":{"type":"integer","title":"Unconvergedsamples","default":0}},"type":"object","required":["key","label","low","high"],"title":"SensitivityDim","description":"One bar of the tornado."},"SensitivityDriver":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"swing":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Swing"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}},"type":"object","required":["key","label"],"title":"SensitivityDriver","description":"The widest bar. Carries its own shape (a swing and the source of that swing) rather\nthan the low/high endpoints a dimension record has."},"SepticAreaResult":{"properties":{"checked":{"type":"boolean","title":"Checked"},"status":{"type":"string","title":"Status"},"in_septic_removal_spec_area":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"In Septic Removal Spec Area"},"retrieved_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Retrieved At"},"served_from_layer_cache":{"type":"boolean","title":"Served From Layer Cache","default":false},"source":{"type":"string","title":"Source","default":"City of Kelowna, Septic Removal Spec Area (geo.kelowna.ca, Kelowna_Applications_MapServices MapServer layer 28; applications-support service, monitor-worthy)"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["checked","status"],"title":"SepticAreaResult","description":"Membership in a Septic Removal Spec Area polygon (Bylaw 12343's connection areas).\n\nin_septic_removal_spec_area is None whenever the layer could not be read: an unreachable\nlayer is NOT evidence the parcel is outside a septic area, and this sub-result never\nrenders that way."},"ServicingResult":{"properties":{"sanitary":{"$ref":"#/components/schemas/SanitaryServicingResult"},"water":{"$ref":"#/components/schemas/WaterServicingResult"},"hydrant":{"$ref":"#/components/schemas/HydrantResult"},"water_provider":{"$ref":"#/components/schemas/WaterProviderResult"},"electric_provider":{"$ref":"#/components/schemas/ElectricProviderResult"},"latecomer":{"$ref":"#/components/schemas/LatecomerResult"},"septic_area":{"$ref":"#/components/schemas/SepticAreaResult"},"septic_red_flag":{"type":"boolean","title":"Septic Red Flag","default":false},"septic_flag_corroborated":{"type":"boolean","title":"Septic Flag Corroborated","default":false},"septic_signals":{"items":{"type":"string"},"type":"array","title":"Septic Signals","default":[]},"retrieved_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Retrieved At"},"served_from_layer_cache":{"type":"boolean","title":"Served From Layer Cache","default":false}},"type":"object","required":["sanitary","water","hydrant","water_provider","electric_provider","latecomer","septic_area"],"title":"ServicingResult"},"SiteDiligence":{"properties":{"linksVerified":{"type":"string","maxLength":10,"minLength":10,"title":"Linksverified"},"meaning":{"type":"string","const":"link_list_verification","title":"Meaning"},"items":{"items":{"$ref":"#/components/schemas/SiteDiligenceItem"},"type":"array","maxItems":5,"minItems":5,"title":"Items"}},"additionalProperties":false,"type":"object","required":["linksVerified","meaning","items"],"title":"SiteDiligence"},"SiteDiligenceItem":{"properties":{"key":{"type":"string","enum":["Title search","Environmental","Geotechnical","Riparian and watercourse","Development permit areas"],"title":"Key"},"label":{"type":"string","maxLength":512,"minLength":1,"title":"Label"},"status":{"type":"string","const":"not_checked","title":"Status"},"links":{"items":{"$ref":"#/components/schemas/SiteDiligenceLink"},"type":"array","maxItems":20,"title":"Links"}},"additionalProperties":false,"type":"object","required":["key","label","status","links"],"title":"SiteDiligenceItem"},"SiteDiligenceLink":{"properties":{"label":{"type":"string","maxLength":512,"minLength":1,"title":"Label"},"url":{"type":"string","maxLength":2048,"minLength":1,"title":"Url"}},"additionalProperties":false,"type":"object","required":["label","url"],"title":"SiteDiligenceLink"},"SiteFacts":{"properties":{"version":{"type":"integer","const":1,"title":"Version"},"receiptId":{"type":"string","maxLength":128,"minLength":1,"title":"Receiptid"},"jurisdiction":{"type":"string","enum":["kelowna","richmond","burnaby","edmonton"],"title":"Jurisdiction"},"parcelIds":{"items":{"type":"string","maxLength":128,"minLength":1},"type":"array","maxItems":100,"minItems":1,"title":"Parcelids"},"parcel":{"$ref":"#/components/schemas/SiteParcel"},"zoning":{"$ref":"#/components/schemas/SiteZoning"}},"additionalProperties":false,"type":"object","required":["version","receiptId","jurisdiction","parcelIds","parcel","zoning"],"title":"SiteFacts"},"SiteParcel":{"properties":{"status":{"type":"string","const":"available","title":"Status"},"areaSqm":{"anyOf":[{"type":"number","maximum":1000000000000000.0,"minimum":-1000000000000000.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Areasqm"},"areaBasis":{"anyOf":[{"type":"string","maxLength":512,"minLength":1},{"type":"null"}],"title":"Areabasis"},"parcelClass":{"anyOf":[{"type":"string","maxLength":512,"minLength":1},{"type":"null"}],"title":"Parcelclass"},"recordStatus":{"anyOf":[{"type":"string","maxLength":512,"minLength":1},{"type":"null"}],"title":"Recordstatus"},"provenance":{"$ref":"#/components/schemas/SiteSource"}},"additionalProperties":false,"type":"object","required":["status","areaSqm","areaBasis","parcelClass","recordStatus","provenance"],"title":"SiteParcel"},"SiteSource":{"properties":{"source":{"type":"string","maxLength":512,"minLength":1,"title":"Source"},"url":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Url"},"kind":{"type":"string","enum":["live","saved","recorded","published","undated"],"title":"Kind"},"asOf":{"anyOf":[{"type":"string","maxLength":35,"minLength":10},{"type":"null"}],"title":"Asof"},"dateMeaning":{"type":"string","enum":["retrieved","captured","consolidation","not_supplied"],"title":"Datemeaning"}},"additionalProperties":false,"type":"object","required":["source","url","kind","asOf","dateMeaning"],"title":"SiteSource"},"SiteZoning":{"properties":{"status":{"type":"string","enum":["available","unavailable","not_returned"],"title":"Status"},"code":{"anyOf":[{"type":"string","maxLength":512,"minLength":1},{"type":"null"}],"title":"Code"},"description":{"anyOf":[{"type":"string","maxLength":512,"minLength":1},{"type":"null"}],"title":"Description"},"basis":{"anyOf":[{"type":"string","enum":["point_lookup","bylaw_site_list"]},{"type":"null"}],"title":"Basis"},"qualification":{"anyOf":[{"type":"string","maxLength":512,"minLength":1},{"type":"null"}],"title":"Qualification"},"provenance":{"anyOf":[{"$ref":"#/components/schemas/SiteSource"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["status","code","description","basis","qualification","provenance"],"title":"SiteZoning"},"Source":{"properties":{"kind":{"type":"string","enum":["manual","imported","preset"],"title":"Kind"},"label":{"type":"string","maxLength":256,"minLength":1,"title":"Label"},"reference":{"anyOf":[{"type":"string","maxLength":2048,"minLength":1},{"type":"null"}],"title":"Reference"},"asOf":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"title":"Asof"}},"additionalProperties":false,"type":"object","required":["kind","label"],"title":"Source"},"SourceIdentity":{"properties":{"source":{"type":"string","title":"Source"},"feature_id":{"type":"string","title":"Feature Id"},"geometry_sha256":{"type":"string","pattern":"^[a-f0-9]{64}$","title":"Geometry Sha256"}},"additionalProperties":false,"type":"object","required":["source","feature_id","geometry_sha256"],"title":"SourceIdentity"},"StatementRow":{"properties":{"id":{"type":"string","enum":["gross_potential_income","concessions","other_income","gross_income","vacancy_loss","credit_loss","effective_income","operating_costs","noi_before_reserves","reserves","noi_after_reserves","price_at_client_cap_rate"],"title":"Id"},"label":{"type":"string","maxLength":256,"minLength":1,"title":"Label"},"value":{"type":"number","maximum":1000000000000000.0,"minimum":-1000000000000000.0,"title":"Value"},"unit":{"type":"string","const":"currency","title":"Unit"},"period":{"type":"string","enum":["year","once"],"title":"Period"}},"additionalProperties":false,"type":"object","required":["id","label","value","unit","period"],"title":"StatementRow"},"Subject":{"properties":{"id":{"type":"string","maxLength":128,"minLength":1,"title":"Id"},"kind":{"type":"string","const":"whole_building","title":"Kind"},"label":{"type":"string","maxLength":256,"minLength":1,"title":"Label"},"verification":{"type":"string","enum":["client_entered","synthetic"],"title":"Verification"},"included_unit_ids":{"items":{"type":"string","maxLength":128,"minLength":1},"type":"array","maxItems":1000,"title":"Included Unit Ids"}},"additionalProperties":false,"type":"object","required":["id","kind","label","verification","included_unit_ids"],"title":"Subject"},"Summary":{"properties":{"label":{"type":"string","const":"Implied cap rate, after reserves","title":"Label"},"rate":{"anyOf":[{"type":"number","maximum":1000000000000000.0,"minimum":-1000000000000000.0},{"type":"null"}],"title":"Rate"},"asking_price":{"anyOf":[{"type":"number","maximum":1000000000000000.0,"minimum":-1000000000000000.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Asking Price"},"rate_basis":{"type":"string","const":"fraction","title":"Rate Basis"}},"additionalProperties":false,"type":"object","required":["label","rate_basis"],"title":"Summary"},"SuperadditiveCheck":{"properties":{"subject_sqm":{"type":"number","title":"Subject Sqm"},"neighbour_sqm":{"type":"number","title":"Neighbour Sqm"},"sum_sqm":{"type":"number","title":"Sum Sqm"},"union_sqm":{"type":"number","title":"Union Sqm"},"superadditive":{"type":"boolean","title":"Superadditive"}},"type":"object","required":["subject_sqm","neighbour_sqm","sum_sqm","union_sqm","superadditive"],"title":"SuperadditiveCheck"},"UnavailableCell":{"properties":{"step":{"type":"number","maximum":1000000000000000.0,"minimum":-1000000000000000.0,"title":"Step"},"status":{"type":"string","const":"unavailable","title":"Status"},"issues":{"items":{"$ref":"#/components/schemas/Issue"},"type":"array","maxItems":10000,"minItems":1,"title":"Issues"}},"additionalProperties":false,"type":"object","required":["step","status","issues"],"title":"UnavailableCell"},"Uncertainty":{"properties":{"low":{"type":"number","title":"Low"},"central":{"type":"number","title":"Central"},"high":{"type":"number","title":"High"},"driver":{"anyOf":[{"$ref":"#/components/schemas/SensitivityDriver"},{"type":"null"}]},"dimensions":{"items":{"$ref":"#/components/schemas/SensitivityDim"},"type":"array","maxItems":64,"title":"Dimensions"},"distribution":{"anyOf":[{"$ref":"#/components/schemas/Distribution"},{"type":"null"}]},"breakEvens":{"items":{"$ref":"#/components/schemas/BreakEven"},"type":"array","maxItems":16,"title":"Breakevens"},"heldFixed":{"items":{"$ref":"#/components/schemas/HeldFixed"},"type":"array","maxItems":64,"title":"Heldfixed"}},"type":"object","required":["low","central","high"],"title":"Uncertainty","description":"The spread around the answer.\n\nDECLARED, for the reason `CashFlow` above spells out: an undeclared key on a model with no\n`extra=\"allow\"` is silently stripped before `build_workbook()` sees it, so the browser would\nbelieve it had sent a sheet that never rendered.\n\nThis is the machinery the screen had and the file did not. The page reports a low/high band, a\ntornado over every swept input, break-evens, and a 10,000-run distribution with the headline's\nown percentile in it; the .xlsx reported a single number. A developer forwards the .xlsx."},"Unit":{"properties":{"unit":{"type":"string","maxLength":128,"minLength":1,"title":"Unit"},"type":{"type":"string","maxLength":128,"minLength":1,"title":"Type"},"status":{"type":"string","enum":["occupied","vacant"],"title":"Status"},"area":{"anyOf":[{"type":"number","maximum":1000000000000000.0,"minimum":0.0},{"type":"null"}],"title":"Area"},"in_place_rent":{"anyOf":[{"type":"number","maximum":1000000000000000.0,"minimum":0.0},{"type":"null"}],"title":"In Place Rent"},"market_or_asking_rent":{"anyOf":[{"type":"number","maximum":1000000000000000.0,"minimum":0.0},{"type":"null"}],"title":"Market Or Asking Rent"},"concession_amount":{"type":"number","maximum":1000000000000000.0,"minimum":0.0,"title":"Concession Amount"},"concession_basis":{"type":"string","enum":["per_month","per_year","one_time"],"title":"Concession Basis"},"concession_note":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Concession Note"},"rent_basis":{"type":"string","enum":["per_unit_per_month","per_sf_per_month","per_sf_per_year"],"title":"Rent Basis"}},"additionalProperties":false,"type":"object","required":["unit","type","status","concession_amount","concession_basis","rent_basis"],"title":"Unit"},"UnitRowSource":{"properties":{"id":{"type":"string","maxLength":128,"minLength":1,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]*$","title":"Id"},"fields":{"additionalProperties":{"$ref":"#/components/schemas/RowBasis"},"type":"object","maxProperties":3,"minProperties":1,"title":"Fields"},"selected":{"additionalProperties":{"$ref":"#/components/schemas/RowSelection"},"type":"object","maxProperties":3,"title":"Selected"},"revision":{"type":"integer","maximum":9007199254740991.0,"minimum":0.0,"title":"Revision"},"unit":{"type":"string","maxLength":128,"minLength":1,"title":"Unit"}},"additionalProperties":false,"type":"object","required":["id","fields","selected","revision","unit"],"title":"UnitRowSource"},"UnitsAndConversions":{"properties":{"system":{"type":"string","maxLength":20,"title":"System"},"sqFtPerSqMetre":{"type":"number","title":"Sqftpersqmetre"},"feetPerMetre":{"type":"number","title":"Feetpermetre"},"rows":{"items":{"$ref":"#/components/schemas/UnitsRow"},"type":"array","maxItems":40,"title":"Rows"}},"type":"object","required":["system","sqFtPerSqMetre","feetPerMetre"],"title":"UnitsAndConversions","description":"The units the file is written in and the factors between them (SPEC-sitelines-display-units-2026-10-02 R2)."},"UnitsRow":{"properties":{"key":{"type":"string","maxLength":400,"title":"Key"},"label":{"type":"string","maxLength":400,"title":"Label"},"kind":{"type":"string","maxLength":20,"title":"Kind"},"fileValue":{"type":"number","title":"Filevalue"},"fileUnit":{"type":"string","maxLength":20,"title":"Fileunit"},"metricValue":{"type":"number","title":"Metricvalue"},"metricUnit":{"type":"string","maxLength":20,"title":"Metricunit"}},"type":"object","required":["key","label","kind","fileValue","fileUnit","metricValue","metricUnit"],"title":"UnitsRow","description":"One unit-bearing quantity: the figure the file shows and the canonical metric figure the model holds.\n\nSPEC-sitelines-display-units-2026-10-02 R2. DECLARED, for the reason this file keeps repeating: an undeclared key is stripped by `model_dump()` before the renderer sees it. The values are conversions the\nbrowser made with the screen's own converters; nothing here is a money figure and the renderer only formats them."},"UnknownSaleCap":{"properties":{"status":{"type":"string","const":"basis_not_known","title":"Status"},"label":{"type":"string","const":"basis not known","title":"Label"}},"additionalProperties":false,"type":"object","required":["status","label"],"title":"UnknownSaleCap"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"WFSImportRequest":{"properties":{"wfs_url":{"type":"string","title":"Wfs Url"},"type_name":{"type":"string","title":"Type Name"},"layer_id":{"type":"string","title":"Layer Id"},"bbox":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Bbox"},"max_features":{"type":"integer","maximum":70000.0,"minimum":1.0,"title":"Max Features","default":10000},"srs":{"type":"string","title":"Srs","default":"EPSG:4326"},"wfs_version":{"type":"string","title":"Wfs Version","default":"2.0.0"}},"type":"object","required":["wfs_url","type_name","layer_id"],"title":"WFSImportRequest"},"WaterProviderResult":{"properties":{"checked":{"type":"boolean","title":"Checked"},"status":{"type":"string","title":"Status"},"providers":{"items":{"type":"string"},"type":"array","title":"Providers","default":[]},"provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"},"provider_full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Full Name"},"retrieved_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Retrieved At"},"served_from_layer_cache":{"type":"boolean","title":"Served From Layer Cache","default":false},"source":{"type":"string","title":"Source","default":"City of Kelowna, Water Utility Boundary (geoportal.kelowna.ca, OpenData_Utilities_Water MapServer layer 30)"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["checked","status"],"title":"WaterProviderResult"},"WaterServicingResult":{"properties":{"checked":{"type":"boolean","title":"Checked"},"status":{"type":"string","title":"Status"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"},"provider_full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Full Name"},"mains_not_in_public_layer":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Mains Not In Public Layer"},"main_checked":{"type":"boolean","title":"Main Checked","default":false},"laterals_checked":{"type":"boolean","title":"Laterals Checked","default":false},"at_line_via":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"At Line Via"},"at_line_feature":{"anyOf":[{"$ref":"#/components/schemas/AtLineFeature"},{"type":"null"}]},"nearest_main":{"anyOf":[{"$ref":"#/components/schemas/NearestMain"},{"type":"null"}]},"candidates":{"items":{"$ref":"#/components/schemas/CandidateFeature"},"type":"array","title":"Candidates","default":[]},"candidates_partial":{"type":"boolean","title":"Candidates Partial","default":false},"search_radius_m":{"type":"number","title":"Search Radius M","default":500.0},"retrieved_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Retrieved At"},"served_from_layer_cache":{"type":"boolean","title":"Served From Layer Cache","default":false},"source":{"type":"string","title":"Source","default":"City of Kelowna, Pressurized Water Main - Potable / Water Service (geoportal.kelowna.ca, OpenData_Utilities_Water MapServer layers 0/5)"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"frontage":{"anyOf":[{"$ref":"#/components/schemas/FrontageBasis"},{"type":"null"}]},"selected":{"anyOf":[{"$ref":"#/components/schemas/SelectedPricingRecord"},{"type":"null"}]}},"type":"object","required":["checked","status"],"title":"WaterServicingResult"}}}}