@vepler/sdk 6.0.0 → 6.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commonjs/funcs/safetyGetGeographyMetrics.d.ts +1 -1
- package/dist/commonjs/funcs/safetyGetGeographyMetrics.js +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/config.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/getlistingbyid.d.ts +2 -2
- package/dist/commonjs/sdk/models/operations/getlistingbyid.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/getlistingbyid.js +1 -1
- package/dist/commonjs/sdk/models/operations/getlistingbyid.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/getlistingbysource.d.ts +2 -2
- package/dist/commonjs/sdk/models/operations/getlistingbysource.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/getlistingbysource.js +1 -1
- package/dist/commonjs/sdk/models/operations/getlistingbysource.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/getlistingsbylocation.d.ts +2 -2
- package/dist/commonjs/sdk/models/operations/getlistingsbylocation.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/getlistingsbylocation.js +1 -1
- package/dist/commonjs/sdk/models/operations/getlistingsbylocation.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/querylistings.d.ts +2 -2
- package/dist/commonjs/sdk/models/operations/querylistings.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/querylistings.js +1 -1
- package/dist/commonjs/sdk/models/operations/querylistings.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/querylistingsbysource.d.ts +2 -2
- package/dist/commonjs/sdk/models/operations/querylistingsbysource.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/querylistingsbysource.js +1 -1
- package/dist/commonjs/sdk/models/operations/querylistingsbysource.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/resolveaddress.d.ts +24 -0
- package/dist/commonjs/sdk/models/operations/resolveaddress.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/resolveaddress.js +12 -1
- package/dist/commonjs/sdk/models/operations/resolveaddress.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/addressresolverequest.d.ts +5 -0
- package/dist/commonjs/sdk/models/shared/addressresolverequest.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/addressresolverequest.js +1 -0
- package/dist/commonjs/sdk/models/shared/addressresolverequest.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/advancedlisting.d.ts +2 -2
- package/dist/commonjs/sdk/models/shared/advancedlisting.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/advancedlisting.js +1 -1
- package/dist/commonjs/sdk/models/shared/advancedlisting.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/geographymetricsrow.d.ts +5 -1
- package/dist/commonjs/sdk/models/shared/geographymetricsrow.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/geographymetricsrow.js +1 -0
- package/dist/commonjs/sdk/models/shared/geographymetricsrow.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/imagecondition.d.ts +18 -0
- package/dist/commonjs/sdk/models/shared/imagecondition.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/imagecondition.js +52 -0
- package/dist/commonjs/sdk/models/shared/imagecondition.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/imagedocumentclass.d.ts +22 -0
- package/dist/commonjs/sdk/models/shared/imagedocumentclass.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/imagedocumentclass.js +56 -0
- package/dist/commonjs/sdk/models/shared/imagedocumentclass.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/imagequality.d.ts +12 -0
- package/dist/commonjs/sdk/models/shared/imagequality.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/imagequality.js +49 -0
- package/dist/commonjs/sdk/models/shared/imagequality.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/imagescene.d.ts +62 -0
- package/dist/commonjs/sdk/models/shared/imagescene.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/imagescene.js +96 -0
- package/dist/commonjs/sdk/models/shared/imagescene.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/imagescenelabel.d.ts +18 -0
- package/dist/commonjs/sdk/models/shared/imagescenelabel.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/imagescenelabel.js +52 -0
- package/dist/commonjs/sdk/models/shared/imagescenelabel.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/index.d.ts +8 -0
- package/dist/commonjs/sdk/models/shared/index.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/index.js +8 -0
- package/dist/commonjs/sdk/models/shared/index.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/listing.d.ts +120 -2
- package/dist/commonjs/sdk/models/shared/listing.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/listing.js +149 -2
- package/dist/commonjs/sdk/models/shared/listing.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/listingimage.d.ts +52 -0
- package/dist/commonjs/sdk/models/shared/listingimage.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/listingimage.js +31 -1
- package/dist/commonjs/sdk/models/shared/listingimage.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/mortgagecharge.d.ts +4 -0
- package/dist/commonjs/sdk/models/shared/mortgagecharge.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/mortgagecharge.js +1 -0
- package/dist/commonjs/sdk/models/shared/mortgagecharge.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/observedfeature.d.ts +21 -0
- package/dist/commonjs/sdk/models/shared/observedfeature.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/observedfeature.js +52 -0
- package/dist/commonjs/sdk/models/shared/observedfeature.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/othercharge.d.ts +8 -1
- package/dist/commonjs/sdk/models/shared/othercharge.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/othercharge.js +1 -0
- package/dist/commonjs/sdk/models/shared/othercharge.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/titlecovenant.d.ts +7 -0
- package/dist/commonjs/sdk/models/shared/titlecovenant.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/titlecovenant.js +1 -0
- package/dist/commonjs/sdk/models/shared/titlecovenant.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/titleextractionpayload.d.ts +14 -1
- package/dist/commonjs/sdk/models/shared/titleextractionpayload.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/titleextractionpayload.js +4 -0
- package/dist/commonjs/sdk/models/shared/titleextractionpayload.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/titlenotice.d.ts +7 -0
- package/dist/commonjs/sdk/models/shared/titlenotice.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/titlenotice.js +1 -0
- package/dist/commonjs/sdk/models/shared/titlenotice.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/titlepricepaid.d.ts +29 -0
- package/dist/commonjs/sdk/models/shared/titlepricepaid.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/titlepricepaid.js +54 -0
- package/dist/commonjs/sdk/models/shared/titlepricepaid.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/titlepropertyright.d.ts +50 -0
- package/dist/commonjs/sdk/models/shared/titlepropertyright.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/titlepropertyright.js +68 -0
- package/dist/commonjs/sdk/models/shared/titlepropertyright.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/titlerestriction.d.ts +7 -0
- package/dist/commonjs/sdk/models/shared/titlerestriction.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/titlerestriction.js +1 -0
- package/dist/commonjs/sdk/models/shared/titlerestriction.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/titlesummarycounts.d.ts +1 -0
- package/dist/commonjs/sdk/models/shared/titlesummarycounts.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/titlesummarycounts.js +1 -0
- package/dist/commonjs/sdk/models/shared/titlesummarycounts.js.map +1 -1
- package/dist/commonjs/sdk/safety.d.ts +1 -1
- package/dist/commonjs/sdk/safety.js +1 -1
- package/dist/esm/funcs/safetyGetGeographyMetrics.d.ts +1 -1
- package/dist/esm/funcs/safetyGetGeographyMetrics.js +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/config.js.map +1 -1
- package/dist/esm/sdk/models/operations/getlistingbyid.d.ts +2 -2
- package/dist/esm/sdk/models/operations/getlistingbyid.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/getlistingbyid.js +1 -1
- package/dist/esm/sdk/models/operations/getlistingbyid.js.map +1 -1
- package/dist/esm/sdk/models/operations/getlistingbysource.d.ts +2 -2
- package/dist/esm/sdk/models/operations/getlistingbysource.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/getlistingbysource.js +1 -1
- package/dist/esm/sdk/models/operations/getlistingbysource.js.map +1 -1
- package/dist/esm/sdk/models/operations/getlistingsbylocation.d.ts +2 -2
- package/dist/esm/sdk/models/operations/getlistingsbylocation.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/getlistingsbylocation.js +1 -1
- package/dist/esm/sdk/models/operations/getlistingsbylocation.js.map +1 -1
- package/dist/esm/sdk/models/operations/querylistings.d.ts +2 -2
- package/dist/esm/sdk/models/operations/querylistings.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/querylistings.js +1 -1
- package/dist/esm/sdk/models/operations/querylistings.js.map +1 -1
- package/dist/esm/sdk/models/operations/querylistingsbysource.d.ts +2 -2
- package/dist/esm/sdk/models/operations/querylistingsbysource.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/querylistingsbysource.js +1 -1
- package/dist/esm/sdk/models/operations/querylistingsbysource.js.map +1 -1
- package/dist/esm/sdk/models/operations/resolveaddress.d.ts +24 -0
- package/dist/esm/sdk/models/operations/resolveaddress.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/resolveaddress.js +10 -0
- package/dist/esm/sdk/models/operations/resolveaddress.js.map +1 -1
- package/dist/esm/sdk/models/shared/addressresolverequest.d.ts +5 -0
- package/dist/esm/sdk/models/shared/addressresolverequest.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/addressresolverequest.js +1 -0
- package/dist/esm/sdk/models/shared/addressresolverequest.js.map +1 -1
- package/dist/esm/sdk/models/shared/advancedlisting.d.ts +2 -2
- package/dist/esm/sdk/models/shared/advancedlisting.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/advancedlisting.js +1 -1
- package/dist/esm/sdk/models/shared/advancedlisting.js.map +1 -1
- package/dist/esm/sdk/models/shared/geographymetricsrow.d.ts +5 -1
- package/dist/esm/sdk/models/shared/geographymetricsrow.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/geographymetricsrow.js +1 -0
- package/dist/esm/sdk/models/shared/geographymetricsrow.js.map +1 -1
- package/dist/esm/sdk/models/shared/imagecondition.d.ts +18 -0
- package/dist/esm/sdk/models/shared/imagecondition.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/imagecondition.js +16 -0
- package/dist/esm/sdk/models/shared/imagecondition.js.map +1 -0
- package/dist/esm/sdk/models/shared/imagedocumentclass.d.ts +22 -0
- package/dist/esm/sdk/models/shared/imagedocumentclass.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/imagedocumentclass.js +20 -0
- package/dist/esm/sdk/models/shared/imagedocumentclass.js.map +1 -0
- package/dist/esm/sdk/models/shared/imagequality.d.ts +12 -0
- package/dist/esm/sdk/models/shared/imagequality.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/imagequality.js +13 -0
- package/dist/esm/sdk/models/shared/imagequality.js.map +1 -0
- package/dist/esm/sdk/models/shared/imagescene.d.ts +62 -0
- package/dist/esm/sdk/models/shared/imagescene.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/imagescene.js +60 -0
- package/dist/esm/sdk/models/shared/imagescene.js.map +1 -0
- package/dist/esm/sdk/models/shared/imagescenelabel.d.ts +18 -0
- package/dist/esm/sdk/models/shared/imagescenelabel.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/imagescenelabel.js +15 -0
- package/dist/esm/sdk/models/shared/imagescenelabel.js.map +1 -0
- package/dist/esm/sdk/models/shared/index.d.ts +8 -0
- package/dist/esm/sdk/models/shared/index.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/index.js +8 -0
- package/dist/esm/sdk/models/shared/index.js.map +1 -1
- package/dist/esm/sdk/models/shared/listing.d.ts +120 -2
- package/dist/esm/sdk/models/shared/listing.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/listing.js +144 -1
- package/dist/esm/sdk/models/shared/listing.js.map +1 -1
- package/dist/esm/sdk/models/shared/listingimage.d.ts +52 -0
- package/dist/esm/sdk/models/shared/listingimage.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/listingimage.js +29 -0
- package/dist/esm/sdk/models/shared/listingimage.js.map +1 -1
- package/dist/esm/sdk/models/shared/mortgagecharge.d.ts +4 -0
- package/dist/esm/sdk/models/shared/mortgagecharge.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/mortgagecharge.js +1 -0
- package/dist/esm/sdk/models/shared/mortgagecharge.js.map +1 -1
- package/dist/esm/sdk/models/shared/observedfeature.d.ts +21 -0
- package/dist/esm/sdk/models/shared/observedfeature.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/observedfeature.js +15 -0
- package/dist/esm/sdk/models/shared/observedfeature.js.map +1 -0
- package/dist/esm/sdk/models/shared/othercharge.d.ts +8 -1
- package/dist/esm/sdk/models/shared/othercharge.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/othercharge.js +1 -0
- package/dist/esm/sdk/models/shared/othercharge.js.map +1 -1
- package/dist/esm/sdk/models/shared/titlecovenant.d.ts +7 -0
- package/dist/esm/sdk/models/shared/titlecovenant.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/titlecovenant.js +1 -0
- package/dist/esm/sdk/models/shared/titlecovenant.js.map +1 -1
- package/dist/esm/sdk/models/shared/titleextractionpayload.d.ts +14 -1
- package/dist/esm/sdk/models/shared/titleextractionpayload.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/titleextractionpayload.js +4 -0
- package/dist/esm/sdk/models/shared/titleextractionpayload.js.map +1 -1
- package/dist/esm/sdk/models/shared/titlenotice.d.ts +7 -0
- package/dist/esm/sdk/models/shared/titlenotice.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/titlenotice.js +1 -0
- package/dist/esm/sdk/models/shared/titlenotice.js.map +1 -1
- package/dist/esm/sdk/models/shared/titlepricepaid.d.ts +29 -0
- package/dist/esm/sdk/models/shared/titlepricepaid.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/titlepricepaid.js +17 -0
- package/dist/esm/sdk/models/shared/titlepricepaid.js.map +1 -0
- package/dist/esm/sdk/models/shared/titlepropertyright.d.ts +50 -0
- package/dist/esm/sdk/models/shared/titlepropertyright.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/titlepropertyright.js +31 -0
- package/dist/esm/sdk/models/shared/titlepropertyright.js.map +1 -0
- package/dist/esm/sdk/models/shared/titlerestriction.d.ts +7 -0
- package/dist/esm/sdk/models/shared/titlerestriction.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/titlerestriction.js +1 -0
- package/dist/esm/sdk/models/shared/titlerestriction.js.map +1 -1
- package/dist/esm/sdk/models/shared/titlesummarycounts.d.ts +1 -0
- package/dist/esm/sdk/models/shared/titlesummarycounts.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/titlesummarycounts.js +1 -0
- package/dist/esm/sdk/models/shared/titlesummarycounts.js.map +1 -1
- package/dist/esm/sdk/safety.d.ts +1 -1
- package/dist/esm/sdk/safety.js +1 -1
- package/package.json +1 -1
- package/src/funcs/safetyGetGeographyMetrics.ts +1 -1
- package/src/lib/config.ts +3 -3
- package/src/sdk/models/operations/getlistingbyid.ts +5 -5
- package/src/sdk/models/operations/getlistingbysource.ts +5 -5
- package/src/sdk/models/operations/getlistingsbylocation.ts +5 -5
- package/src/sdk/models/operations/querylistings.ts +5 -5
- package/src/sdk/models/operations/querylistingsbysource.ts +5 -5
- package/src/sdk/models/operations/resolveaddress.ts +44 -0
- package/src/sdk/models/shared/addressresolverequest.ts +6 -0
- package/src/sdk/models/shared/advancedlisting.ts +4 -4
- package/src/sdk/models/shared/geographymetricsrow.ts +6 -1
- package/src/sdk/models/shared/imagecondition.ts +28 -0
- package/src/sdk/models/shared/imagedocumentclass.ts +32 -0
- package/src/sdk/models/shared/imagequality.ts +22 -0
- package/src/sdk/models/shared/imagescene.ts +72 -0
- package/src/sdk/models/shared/imagescenelabel.ts +40 -0
- package/src/sdk/models/shared/index.ts +8 -0
- package/src/sdk/models/shared/listing.ts +305 -4
- package/src/sdk/models/shared/listingimage.ts +85 -0
- package/src/sdk/models/shared/mortgagecharge.ts +5 -0
- package/src/sdk/models/shared/observedfeature.ts +44 -0
- package/src/sdk/models/shared/othercharge.ts +9 -1
- package/src/sdk/models/shared/titlecovenant.ts +8 -0
- package/src/sdk/models/shared/titleextractionpayload.ts +22 -1
- package/src/sdk/models/shared/titlenotice.ts +8 -0
- package/src/sdk/models/shared/titlepricepaid.ts +54 -0
- package/src/sdk/models/shared/titlepropertyright.ts +81 -0
- package/src/sdk/models/shared/titlerestriction.ts +8 -0
- package/src/sdk/models/shared/titlesummarycounts.ts +2 -0
- package/src/sdk/safety.ts +1 -1
|
@@ -4,10 +4,66 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { safeParse } from "../../../lib/schemas.js";
|
|
7
|
+
import * as openEnums from "../../types/enums.js";
|
|
8
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
7
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
import {
|
|
12
|
+
ImageDocumentClass,
|
|
13
|
+
ImageDocumentClass$inboundSchema,
|
|
14
|
+
} from "./imagedocumentclass.js";
|
|
15
|
+
import { ImageQuality, ImageQuality$inboundSchema } from "./imagequality.js";
|
|
16
|
+
import {
|
|
17
|
+
ImageSceneLabel,
|
|
18
|
+
ImageSceneLabel$inboundSchema,
|
|
19
|
+
} from "./imagescenelabel.js";
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* The state of repair the photograph suggests. Null when no assessment is published for this image.
|
|
23
|
+
*/
|
|
24
|
+
export const ListingImageCondition = {
|
|
25
|
+
MoveInReady: "move_in_ready",
|
|
26
|
+
CosmeticallyDated: "cosmetically_dated",
|
|
27
|
+
RenovationNeeded: "renovation_needed",
|
|
28
|
+
Derelict: "derelict",
|
|
29
|
+
} as const;
|
|
30
|
+
/**
|
|
31
|
+
* The state of repair the photograph suggests. Null when no assessment is published for this image.
|
|
32
|
+
*/
|
|
33
|
+
export type ListingImageCondition = OpenEnum<typeof ListingImageCondition>;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* What this image is and what it shows. Null until the image has been analysed.
|
|
37
|
+
*/
|
|
38
|
+
export type Labels = {
|
|
39
|
+
condition?: ListingImageCondition | null | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* What the image is, rather than what it shows. A `photo` is a photograph of the property or its surroundings; the other values are documents published alongside the photographs.
|
|
42
|
+
*/
|
|
43
|
+
documentClass?: ImageDocumentClass | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* How strongly the image supports its document class, from 0 to 1.
|
|
46
|
+
*/
|
|
47
|
+
documentClassConfidence?: number | undefined;
|
|
48
|
+
/**
|
|
49
|
+
* How the photograph presents the property rather than what it shows. `virtually_staged` marks furniture added digitally, and `empty_room` marks an unfurnished space.
|
|
50
|
+
*/
|
|
51
|
+
presentation?: Array<ImageQuality> | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* The spaces the photograph shows, most specific first, each with its own confidence. Keys are hierarchical, so `interior.bathroom.ensuite` also implies `interior.bathroom` and `interior`. Empty for anything that is not a photograph.
|
|
54
|
+
*/
|
|
55
|
+
scene?: Array<ImageSceneLabel> | undefined;
|
|
56
|
+
/**
|
|
57
|
+
* Release of the label vocabulary these values were produced against.
|
|
58
|
+
*/
|
|
59
|
+
taxonomyVersion?: string | undefined;
|
|
60
|
+
};
|
|
9
61
|
|
|
10
62
|
export type ListingImage = {
|
|
63
|
+
/**
|
|
64
|
+
* What this image is and what it shows. Null until the image has been analysed.
|
|
65
|
+
*/
|
|
66
|
+
labels?: Labels | null | undefined;
|
|
11
67
|
/**
|
|
12
68
|
* URL of a ready-made 640×480 WebP thumbnail of the same image.
|
|
13
69
|
*/
|
|
@@ -18,12 +74,41 @@ export type ListingImage = {
|
|
|
18
74
|
url?: string | null | undefined;
|
|
19
75
|
};
|
|
20
76
|
|
|
77
|
+
/** @internal */
|
|
78
|
+
export const ListingImageCondition$inboundSchema: z.ZodType<
|
|
79
|
+
ListingImageCondition,
|
|
80
|
+
z.ZodTypeDef,
|
|
81
|
+
unknown
|
|
82
|
+
> = openEnums.inboundSchema(ListingImageCondition);
|
|
83
|
+
|
|
84
|
+
/** @internal */
|
|
85
|
+
export const Labels$inboundSchema: z.ZodType<Labels, z.ZodTypeDef, unknown> = z
|
|
86
|
+
.object({
|
|
87
|
+
condition: z.nullable(ListingImageCondition$inboundSchema).optional(),
|
|
88
|
+
documentClass: ImageDocumentClass$inboundSchema.optional(),
|
|
89
|
+
documentClassConfidence: z.number().optional(),
|
|
90
|
+
presentation: z.array(ImageQuality$inboundSchema).optional(),
|
|
91
|
+
scene: z.array(ImageSceneLabel$inboundSchema).optional(),
|
|
92
|
+
taxonomyVersion: z.string().optional(),
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
export function labelsFromJSON(
|
|
96
|
+
jsonString: string,
|
|
97
|
+
): SafeParseResult<Labels, SDKValidationError> {
|
|
98
|
+
return safeParse(
|
|
99
|
+
jsonString,
|
|
100
|
+
(x) => Labels$inboundSchema.parse(JSON.parse(x)),
|
|
101
|
+
`Failed to parse 'Labels' from JSON`,
|
|
102
|
+
);
|
|
103
|
+
}
|
|
104
|
+
|
|
21
105
|
/** @internal */
|
|
22
106
|
export const ListingImage$inboundSchema: z.ZodType<
|
|
23
107
|
ListingImage,
|
|
24
108
|
z.ZodTypeDef,
|
|
25
109
|
unknown
|
|
26
110
|
> = z.object({
|
|
111
|
+
labels: z.nullable(z.lazy(() => Labels$inboundSchema)).optional(),
|
|
27
112
|
thumbnailUrl: z.nullable(z.string()).optional(),
|
|
28
113
|
url: z.nullable(z.string()).optional(),
|
|
29
114
|
});
|
|
@@ -20,6 +20,10 @@ export const MortgageChargeStatus = {
|
|
|
20
20
|
export type MortgageChargeStatus = OpenEnum<typeof MortgageChargeStatus>;
|
|
21
21
|
|
|
22
22
|
export type MortgageCharge = {
|
|
23
|
+
/**
|
|
24
|
+
* Other title numbers the same charge is registered against, read from an `affecting also title …` clause. Empty when the charge affects only `titleAffected`.
|
|
25
|
+
*/
|
|
26
|
+
alsoAffectsTitles: Array<string>;
|
|
23
27
|
chargeDate: string;
|
|
24
28
|
chargeHolder: TitleProprietor;
|
|
25
29
|
/**
|
|
@@ -55,6 +59,7 @@ export const MortgageCharge$inboundSchema: z.ZodType<
|
|
|
55
59
|
z.ZodTypeDef,
|
|
56
60
|
unknown
|
|
57
61
|
> = z.object({
|
|
62
|
+
alsoAffectsTitles: z.array(z.string()),
|
|
58
63
|
chargeDate: z.string(),
|
|
59
64
|
chargeHolder: TitleProprietor$inboundSchema,
|
|
60
65
|
dischargedDate: z.nullable(z.string()),
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type ObservedFeature = {
|
|
11
|
+
/**
|
|
12
|
+
* Confidence of the strongest supporting image, from 0 to 1.
|
|
13
|
+
*/
|
|
14
|
+
confidence?: number | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* How many photographs support the feature. This counts images, not rooms: three photographs of a bathroom do not mean three bathrooms.
|
|
17
|
+
*/
|
|
18
|
+
imageCount?: number | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* Whether the photographs support this feature at the published confidence.
|
|
21
|
+
*/
|
|
22
|
+
present?: boolean | undefined;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export const ObservedFeature$inboundSchema: z.ZodType<
|
|
27
|
+
ObservedFeature,
|
|
28
|
+
z.ZodTypeDef,
|
|
29
|
+
unknown
|
|
30
|
+
> = z.object({
|
|
31
|
+
confidence: z.number().optional(),
|
|
32
|
+
imageCount: z.number().int().optional(),
|
|
33
|
+
present: z.boolean().optional(),
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
export function observedFeatureFromJSON(
|
|
37
|
+
jsonString: string,
|
|
38
|
+
): SafeParseResult<ObservedFeature, SDKValidationError> {
|
|
39
|
+
return safeParse(
|
|
40
|
+
jsonString,
|
|
41
|
+
(x) => ObservedFeature$inboundSchema.parse(JSON.parse(x)),
|
|
42
|
+
`Failed to parse 'ObservedFeature' from JSON`,
|
|
43
|
+
);
|
|
44
|
+
}
|
|
@@ -12,13 +12,20 @@ export type OtherCharge = {
|
|
|
12
12
|
* The kind of charge, as the register labels it.
|
|
13
13
|
*/
|
|
14
14
|
chargeType: string;
|
|
15
|
+
/**
|
|
16
|
+
* The date the entry was made in the register (the entry's `(dd.mm.yyyy)` prefix). Null when the entry carries no registration date.
|
|
17
|
+
*/
|
|
15
18
|
date: string | null;
|
|
16
19
|
/**
|
|
17
20
|
* Plain-English explanation of what this charge means for the owner, written by a language model from the register entry.
|
|
18
21
|
*/
|
|
19
22
|
effectOfCharge: string;
|
|
20
23
|
/**
|
|
21
|
-
* The
|
|
24
|
+
* The date of the deed the entry refers to (the conveyance, transfer, lease or charge that created it), when the entry states one. Null otherwise. Distinct from `date`, which is when the entry was registered.
|
|
25
|
+
*/
|
|
26
|
+
instrumentDate: string | null;
|
|
27
|
+
/**
|
|
28
|
+
* The parties the entry names, verbatim, in the order the deed lists them. Empty when the entry names nobody. Never a placeholder: an entry that names parties and reports none here is an extraction defect, not a register fact.
|
|
22
29
|
*/
|
|
23
30
|
originalParties: Array<string>;
|
|
24
31
|
sourceEntryRef: string;
|
|
@@ -33,6 +40,7 @@ export const OtherCharge$inboundSchema: z.ZodType<
|
|
|
33
40
|
chargeType: z.string(),
|
|
34
41
|
date: z.nullable(z.string()),
|
|
35
42
|
effectOfCharge: z.string(),
|
|
43
|
+
instrumentDate: z.nullable(z.string()),
|
|
36
44
|
originalParties: z.array(z.string()),
|
|
37
45
|
sourceEntryRef: z.string(),
|
|
38
46
|
});
|
|
@@ -8,7 +8,14 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
9
|
|
|
10
10
|
export type TitleCovenant = {
|
|
11
|
+
/**
|
|
12
|
+
* The date the entry was made in the register (the entry's `(dd.mm.yyyy)` prefix). Null when the entry carries no registration date.
|
|
13
|
+
*/
|
|
11
14
|
date: string | null;
|
|
15
|
+
/**
|
|
16
|
+
* The date of the deed the entry refers to (the conveyance, transfer, lease or charge that created it), when the entry states one. Null otherwise. Distinct from `date`, which is when the entry was registered.
|
|
17
|
+
*/
|
|
18
|
+
instrumentDate: string | null;
|
|
12
19
|
/**
|
|
13
20
|
* The legal text, quoted verbatim from the register entry.
|
|
14
21
|
*/
|
|
@@ -31,6 +38,7 @@ export const TitleCovenant$inboundSchema: z.ZodType<
|
|
|
31
38
|
unknown
|
|
32
39
|
> = z.object({
|
|
33
40
|
date: z.nullable(z.string()),
|
|
41
|
+
instrumentDate: z.nullable(z.string()),
|
|
34
42
|
rawText: z.string(),
|
|
35
43
|
sourceEntryRef: z.string(),
|
|
36
44
|
title: z.string(),
|
|
@@ -18,6 +18,14 @@ import {
|
|
|
18
18
|
TitleDocumentSummary$inboundSchema,
|
|
19
19
|
} from "./titledocumentsummary.js";
|
|
20
20
|
import { TitleNotice, TitleNotice$inboundSchema } from "./titlenotice.js";
|
|
21
|
+
import {
|
|
22
|
+
TitlePricePaid,
|
|
23
|
+
TitlePricePaid$inboundSchema,
|
|
24
|
+
} from "./titlepricepaid.js";
|
|
25
|
+
import {
|
|
26
|
+
TitlePropertyRight,
|
|
27
|
+
TitlePropertyRight$inboundSchema,
|
|
28
|
+
} from "./titlepropertyright.js";
|
|
21
29
|
import {
|
|
22
30
|
TitleProprietor,
|
|
23
31
|
TitleProprietor$inboundSchema,
|
|
@@ -71,6 +79,9 @@ export type TitleExtractionPayload = {
|
|
|
71
79
|
* The current owner, formatted as a single line ready to display.
|
|
72
80
|
*/
|
|
73
81
|
currentOwnerDisplay: string;
|
|
82
|
+
/**
|
|
83
|
+
* The title's documents as they stood when the extraction ran. Document uploads run concurrently with extraction, so this is a snapshot: the API overlays the live document rows on every read, and a consumer must never treat a `pending` here as current.
|
|
84
|
+
*/
|
|
74
85
|
documents: Array<TitleDocumentSummary>;
|
|
75
86
|
extractedAt: Date;
|
|
76
87
|
/**
|
|
@@ -79,13 +90,21 @@ export type TitleExtractionPayload = {
|
|
|
79
90
|
leaseTermDescription: string;
|
|
80
91
|
notices: Array<TitleNotice>;
|
|
81
92
|
ownership: Ownership;
|
|
93
|
+
/**
|
|
94
|
+
* The price-paid entry from the Proprietorship Register. Null when the register records none.
|
|
95
|
+
*/
|
|
96
|
+
pricePaid: TitlePricePaid | null;
|
|
82
97
|
promptVersion: string;
|
|
98
|
+
/**
|
|
99
|
+
* Every Property Register entry other than the estate description and the lease particulars: easements, party-wall provisions, exceptions. Empty when the A register has no such entries.
|
|
100
|
+
*/
|
|
101
|
+
propertyRights: Array<TitlePropertyRight>;
|
|
83
102
|
/**
|
|
84
103
|
* The qualification entry, quoted verbatim from the register. Null on titles that carry no qualification.
|
|
85
104
|
*/
|
|
86
105
|
qualification: string | null;
|
|
87
106
|
/**
|
|
88
|
-
* The
|
|
107
|
+
* The instant the official copy states it shows the register at ("shows the entries on the register of title on 17 SEP 2026 at 12:56:56"), as an ISO 8601 UTC timestamp. Not our fetch clock.
|
|
89
108
|
*/
|
|
90
109
|
registerAsOf: Date;
|
|
91
110
|
registeredCharges: RegisteredCharges;
|
|
@@ -145,7 +164,9 @@ export const TitleExtractionPayload$inboundSchema: z.ZodType<
|
|
|
145
164
|
leaseTermDescription: z.string(),
|
|
146
165
|
notices: z.array(TitleNotice$inboundSchema),
|
|
147
166
|
ownership: z.lazy(() => Ownership$inboundSchema),
|
|
167
|
+
pricePaid: z.nullable(TitlePricePaid$inboundSchema),
|
|
148
168
|
promptVersion: z.string(),
|
|
169
|
+
propertyRights: z.array(TitlePropertyRight$inboundSchema),
|
|
149
170
|
qualification: z.nullable(z.string()).default(null),
|
|
150
171
|
registerAsOf: z.string().datetime({ offset: true }).transform(v =>
|
|
151
172
|
new Date(v)
|
|
@@ -19,7 +19,14 @@ export const NoticeType = {
|
|
|
19
19
|
export type NoticeType = OpenEnum<typeof NoticeType>;
|
|
20
20
|
|
|
21
21
|
export type TitleNotice = {
|
|
22
|
+
/**
|
|
23
|
+
* The date the entry was made in the register (the entry's `(dd.mm.yyyy)` prefix). Null when the entry carries no registration date.
|
|
24
|
+
*/
|
|
22
25
|
date: string | null;
|
|
26
|
+
/**
|
|
27
|
+
* The date of the deed the entry refers to (the conveyance, transfer, lease or charge that created it), when the entry states one. Null otherwise. Distinct from `date`, which is when the entry was registered.
|
|
28
|
+
*/
|
|
29
|
+
instrumentDate: string | null;
|
|
23
30
|
noticeType: NoticeType;
|
|
24
31
|
partyName: string | null;
|
|
25
32
|
/**
|
|
@@ -51,6 +58,7 @@ export const TitleNotice$inboundSchema: z.ZodType<
|
|
|
51
58
|
unknown
|
|
52
59
|
> = z.object({
|
|
53
60
|
date: z.nullable(z.string()),
|
|
61
|
+
instrumentDate: z.nullable(z.string()),
|
|
54
62
|
noticeType: NoticeType$inboundSchema,
|
|
55
63
|
partyName: z.nullable(z.string()),
|
|
56
64
|
rawText: z.string(),
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* The price-paid entry from the Proprietorship Register. Null when the register records none.
|
|
12
|
+
*/
|
|
13
|
+
export type TitlePricePaid = {
|
|
14
|
+
/**
|
|
15
|
+
* The price as stated in the register, in whole pounds.
|
|
16
|
+
*/
|
|
17
|
+
amountPounds: number;
|
|
18
|
+
/**
|
|
19
|
+
* The date the price is stated to have been paid on. Null when the entry states no date (a leasehold grant price, for instance).
|
|
20
|
+
*/
|
|
21
|
+
date: string | null;
|
|
22
|
+
/**
|
|
23
|
+
* The entry, quoted verbatim from the register.
|
|
24
|
+
*/
|
|
25
|
+
rawText: string;
|
|
26
|
+
/**
|
|
27
|
+
* The date the entry was made in the register (the entry's `(dd.mm.yyyy)` prefix). Null when the entry carries no registration date.
|
|
28
|
+
*/
|
|
29
|
+
registrationDate: string | null;
|
|
30
|
+
sourceEntryRef: string;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
/** @internal */
|
|
34
|
+
export const TitlePricePaid$inboundSchema: z.ZodType<
|
|
35
|
+
TitlePricePaid,
|
|
36
|
+
z.ZodTypeDef,
|
|
37
|
+
unknown
|
|
38
|
+
> = z.object({
|
|
39
|
+
amountPounds: z.number().int(),
|
|
40
|
+
date: z.nullable(z.string()),
|
|
41
|
+
rawText: z.string(),
|
|
42
|
+
registrationDate: z.nullable(z.string()),
|
|
43
|
+
sourceEntryRef: z.string(),
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
export function titlePricePaidFromJSON(
|
|
47
|
+
jsonString: string,
|
|
48
|
+
): SafeParseResult<TitlePricePaid, SDKValidationError> {
|
|
49
|
+
return safeParse(
|
|
50
|
+
jsonString,
|
|
51
|
+
(x) => TitlePricePaid$inboundSchema.parse(JSON.parse(x)),
|
|
52
|
+
`Failed to parse 'TitlePricePaid' from JSON`,
|
|
53
|
+
);
|
|
54
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../../lib/schemas.js";
|
|
7
|
+
import * as openEnums from "../../types/enums.js";
|
|
8
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
9
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* `benefit`: a right this land enjoys over other land. `burden`: a right other land enjoys over this land. `both`: the entry grants and reserves. `provision`: a declaration or exception that is neither (a party-wall agreement, an exception from registration, a note that the lessor's title is registered).
|
|
14
|
+
*/
|
|
15
|
+
export const Nature = {
|
|
16
|
+
Benefit: "benefit",
|
|
17
|
+
Burden: "burden",
|
|
18
|
+
Both: "both",
|
|
19
|
+
Provision: "provision",
|
|
20
|
+
} as const;
|
|
21
|
+
/**
|
|
22
|
+
* `benefit`: a right this land enjoys over other land. `burden`: a right other land enjoys over this land. `both`: the entry grants and reserves. `provision`: a declaration or exception that is neither (a party-wall agreement, an exception from registration, a note that the lessor's title is registered).
|
|
23
|
+
*/
|
|
24
|
+
export type Nature = OpenEnum<typeof Nature>;
|
|
25
|
+
|
|
26
|
+
export type TitlePropertyRight = {
|
|
27
|
+
/**
|
|
28
|
+
* The date the entry was made in the register (the entry's `(dd.mm.yyyy)` prefix). Null when the entry carries no registration date.
|
|
29
|
+
*/
|
|
30
|
+
date: string | null;
|
|
31
|
+
/**
|
|
32
|
+
* The date of the deed the entry refers to (the conveyance, transfer, lease or charge that created it), when the entry states one. Null otherwise. Distinct from `date`, which is when the entry was registered.
|
|
33
|
+
*/
|
|
34
|
+
instrumentDate: string | null;
|
|
35
|
+
/**
|
|
36
|
+
* `benefit`: a right this land enjoys over other land. `burden`: a right other land enjoys over this land. `both`: the entry grants and reserves. `provision`: a declaration or exception that is neither (a party-wall agreement, an exception from registration, a note that the lessor's title is registered).
|
|
37
|
+
*/
|
|
38
|
+
nature: Nature;
|
|
39
|
+
/**
|
|
40
|
+
* The entry, quoted verbatim from the Property Register.
|
|
41
|
+
*/
|
|
42
|
+
rawText: string;
|
|
43
|
+
sourceEntryRef: string;
|
|
44
|
+
/**
|
|
45
|
+
* Short plain-English label for the entry.
|
|
46
|
+
*/
|
|
47
|
+
title: string;
|
|
48
|
+
/**
|
|
49
|
+
* Plain-English explanation of what the entry means for the current owner, written by a language model from the register entry.
|
|
50
|
+
*/
|
|
51
|
+
whyThisMatters: string;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
/** @internal */
|
|
55
|
+
export const Nature$inboundSchema: z.ZodType<Nature, z.ZodTypeDef, unknown> =
|
|
56
|
+
openEnums.inboundSchema(Nature);
|
|
57
|
+
|
|
58
|
+
/** @internal */
|
|
59
|
+
export const TitlePropertyRight$inboundSchema: z.ZodType<
|
|
60
|
+
TitlePropertyRight,
|
|
61
|
+
z.ZodTypeDef,
|
|
62
|
+
unknown
|
|
63
|
+
> = z.object({
|
|
64
|
+
date: z.nullable(z.string()),
|
|
65
|
+
instrumentDate: z.nullable(z.string()),
|
|
66
|
+
nature: Nature$inboundSchema,
|
|
67
|
+
rawText: z.string(),
|
|
68
|
+
sourceEntryRef: z.string(),
|
|
69
|
+
title: z.string(),
|
|
70
|
+
whyThisMatters: z.string(),
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
export function titlePropertyRightFromJSON(
|
|
74
|
+
jsonString: string,
|
|
75
|
+
): SafeParseResult<TitlePropertyRight, SDKValidationError> {
|
|
76
|
+
return safeParse(
|
|
77
|
+
jsonString,
|
|
78
|
+
(x) => TitlePropertyRight$inboundSchema.parse(JSON.parse(x)),
|
|
79
|
+
`Failed to parse 'TitlePropertyRight' from JSON`,
|
|
80
|
+
);
|
|
81
|
+
}
|
|
@@ -8,7 +8,14 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
9
|
|
|
10
10
|
export type TitleRestriction = {
|
|
11
|
+
/**
|
|
12
|
+
* The date the entry was made in the register (the entry's `(dd.mm.yyyy)` prefix). Null when the entry carries no registration date.
|
|
13
|
+
*/
|
|
11
14
|
date: string | null;
|
|
15
|
+
/**
|
|
16
|
+
* The date of the deed the entry refers to (the conveyance, transfer, lease or charge that created it), when the entry states one. Null otherwise. Distinct from `date`, which is when the entry was registered.
|
|
17
|
+
*/
|
|
18
|
+
instrumentDate: string | null;
|
|
12
19
|
/**
|
|
13
20
|
* The legal text, quoted verbatim from the register entry.
|
|
14
21
|
*/
|
|
@@ -31,6 +38,7 @@ export const TitleRestriction$inboundSchema: z.ZodType<
|
|
|
31
38
|
unknown
|
|
32
39
|
> = z.object({
|
|
33
40
|
date: z.nullable(z.string()),
|
|
41
|
+
instrumentDate: z.nullable(z.string()),
|
|
34
42
|
rawText: z.string(),
|
|
35
43
|
sourceEntryRef: z.string(),
|
|
36
44
|
title: z.string(),
|
|
@@ -13,6 +13,7 @@ export type TitleSummaryCounts = {
|
|
|
13
13
|
dischargedMortgages: number;
|
|
14
14
|
notices: number;
|
|
15
15
|
otherCharges: number;
|
|
16
|
+
propertyRights: number;
|
|
16
17
|
restrictions: number;
|
|
17
18
|
};
|
|
18
19
|
|
|
@@ -27,6 +28,7 @@ export const TitleSummaryCounts$inboundSchema: z.ZodType<
|
|
|
27
28
|
dischargedMortgages: z.number().int(),
|
|
28
29
|
notices: z.number().int(),
|
|
29
30
|
otherCharges: z.number().int(),
|
|
31
|
+
propertyRights: z.number().int(),
|
|
30
32
|
restrictions: z.number().int(),
|
|
31
33
|
});
|
|
32
34
|
|
package/src/sdk/safety.ts
CHANGED
|
@@ -86,7 +86,7 @@ export class Safety extends ClientSDK {
|
|
|
86
86
|
* Get crime metrics for one or more geographic areas (England and Wales)
|
|
87
87
|
*
|
|
88
88
|
* @remarks
|
|
89
|
-
* Return scored crime metrics for one or more areas across one or more months, each with a per-category breakdown and an optional monthly history. Areas are identified by GSS code at
|
|
89
|
+
* Return scored crime metrics for one or more areas across one or more months, each with a per-category breakdown and an optional monthly history. Areas are identified by GSS code at eight levels: Lower Layer Super Output Area (LSOA, `E01`/`W01`), Middle Layer Super Output Area (MSOA, `E02`/`W02`), ward (`E05`/`W05`), built-up area (`E63`/`W45`/`K08`), local authority district or unitary authority (`E06`-`E09`, `W06`), county (`E10`), English region (`E12`) and country (`E92`, `W92`). Coverage is England and Wales; codes at other levels, such as parishes, and codes in Scotland or Northern Ireland come back as `data: []`. Ward and built-up-area figures are aggregated from the Lower Layer Super Output Areas assigned to each area rather than counted on its own boundary, so they are approximations, and `geographyFit` on every row reports how much of the area's footprint those smaller areas cover. A built-up area smaller than the Lower Layer Super Output Area containing it has no figures and comes back as `data: []`. Percentiles rank an area against others of the same type, so a ward is ranked among wards and not among districts. Every month summarises the trailing 24-month window ending at that month, so counts are window totals and rates are per 1,000 residents per year. Months are published two months in arrears, roughly monthly; the catalogue endpoint lists the months held. Scores are null, never 0, where a police force did not report; read `dataAvailability` beside every number. By default the response carries one row per area and month; with `mergeAreas=true` it carries one row per month, with counts and population summed across every requested area and scores, percentiles and trends set to null because they cannot be combined across areas. Choose the months either explicitly with `periods=YYYY-MM,YYYY-MM` or as a range with `startDate` and `endDate`, never both, and set how far each row's history reaches back with `months`, which defaults to 12. An empty result comes back as `data: []` with `total_count: 0`, never as a 204.
|
|
90
90
|
*/
|
|
91
91
|
async getGeographyMetrics(
|
|
92
92
|
request: operations.GetGeographyMetricsRequest,
|