@vepler/sdk 6.61.0 → 6.66.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.
Files changed (71) hide show
  1. package/dist/commonjs/lib/config.d.ts +3 -3
  2. package/dist/commonjs/lib/config.js +3 -3
  3. package/dist/commonjs/lib/config.js.map +1 -1
  4. package/dist/commonjs/sdk/models/operations/getnearestpoi.d.ts +3 -3
  5. package/dist/commonjs/sdk/models/operations/getpoimultipletiles.d.ts +1 -1
  6. package/dist/commonjs/sdk/models/operations/getpoitile.d.ts +1 -1
  7. package/dist/commonjs/sdk/models/shared/index.d.ts +2 -0
  8. package/dist/commonjs/sdk/models/shared/index.d.ts.map +1 -1
  9. package/dist/commonjs/sdk/models/shared/index.js +2 -0
  10. package/dist/commonjs/sdk/models/shared/index.js.map +1 -1
  11. package/dist/commonjs/sdk/models/shared/propertyaddress.d.ts +13 -1
  12. package/dist/commonjs/sdk/models/shared/propertyaddress.d.ts.map +1 -1
  13. package/dist/commonjs/sdk/models/shared/propertyaddress.js +3 -0
  14. package/dist/commonjs/sdk/models/shared/propertyaddress.js.map +1 -1
  15. package/dist/commonjs/sdk/models/shared/propertydataapi.d.ts +3 -4
  16. package/dist/commonjs/sdk/models/shared/propertydataapi.d.ts.map +1 -1
  17. package/dist/commonjs/sdk/models/shared/propertydataapi.js +2 -1
  18. package/dist/commonjs/sdk/models/shared/propertydataapi.js.map +1 -1
  19. package/dist/commonjs/sdk/models/shared/propertyfieldprovenance.d.ts +110 -0
  20. package/dist/commonjs/sdk/models/shared/propertyfieldprovenance.d.ts.map +1 -0
  21. package/dist/commonjs/sdk/models/shared/propertyfieldprovenance.js +133 -0
  22. package/dist/commonjs/sdk/models/shared/propertyfieldprovenance.js.map +1 -0
  23. package/dist/commonjs/sdk/models/shared/propertysourcevalue.d.ts +29 -0
  24. package/dist/commonjs/sdk/models/shared/propertysourcevalue.d.ts.map +1 -0
  25. package/dist/commonjs/sdk/models/shared/propertysourcevalue.js +54 -0
  26. package/dist/commonjs/sdk/models/shared/propertysourcevalue.js.map +1 -0
  27. package/dist/commonjs/sdk/models/shared/site.d.ts +5 -1
  28. package/dist/commonjs/sdk/models/shared/site.d.ts.map +1 -1
  29. package/dist/commonjs/sdk/models/shared/site.js +1 -0
  30. package/dist/commonjs/sdk/models/shared/site.js.map +1 -1
  31. package/dist/esm/lib/config.d.ts +3 -3
  32. package/dist/esm/lib/config.js +3 -3
  33. package/dist/esm/lib/config.js.map +1 -1
  34. package/dist/esm/sdk/models/operations/getnearestpoi.d.ts +3 -3
  35. package/dist/esm/sdk/models/operations/getpoimultipletiles.d.ts +1 -1
  36. package/dist/esm/sdk/models/operations/getpoitile.d.ts +1 -1
  37. package/dist/esm/sdk/models/shared/index.d.ts +2 -0
  38. package/dist/esm/sdk/models/shared/index.d.ts.map +1 -1
  39. package/dist/esm/sdk/models/shared/index.js +2 -0
  40. package/dist/esm/sdk/models/shared/index.js.map +1 -1
  41. package/dist/esm/sdk/models/shared/propertyaddress.d.ts +13 -1
  42. package/dist/esm/sdk/models/shared/propertyaddress.d.ts.map +1 -1
  43. package/dist/esm/sdk/models/shared/propertyaddress.js +3 -0
  44. package/dist/esm/sdk/models/shared/propertyaddress.js.map +1 -1
  45. package/dist/esm/sdk/models/shared/propertydataapi.d.ts +3 -4
  46. package/dist/esm/sdk/models/shared/propertydataapi.d.ts.map +1 -1
  47. package/dist/esm/sdk/models/shared/propertydataapi.js +2 -1
  48. package/dist/esm/sdk/models/shared/propertydataapi.js.map +1 -1
  49. package/dist/esm/sdk/models/shared/propertyfieldprovenance.d.ts +110 -0
  50. package/dist/esm/sdk/models/shared/propertyfieldprovenance.d.ts.map +1 -0
  51. package/dist/esm/sdk/models/shared/propertyfieldprovenance.js +95 -0
  52. package/dist/esm/sdk/models/shared/propertyfieldprovenance.js.map +1 -0
  53. package/dist/esm/sdk/models/shared/propertysourcevalue.d.ts +29 -0
  54. package/dist/esm/sdk/models/shared/propertysourcevalue.d.ts.map +1 -0
  55. package/dist/esm/sdk/models/shared/propertysourcevalue.js +17 -0
  56. package/dist/esm/sdk/models/shared/propertysourcevalue.js.map +1 -0
  57. package/dist/esm/sdk/models/shared/site.d.ts +5 -1
  58. package/dist/esm/sdk/models/shared/site.d.ts.map +1 -1
  59. package/dist/esm/sdk/models/shared/site.js +1 -0
  60. package/dist/esm/sdk/models/shared/site.js.map +1 -1
  61. package/package.json +1 -1
  62. package/src/lib/config.ts +3 -3
  63. package/src/sdk/models/operations/getnearestpoi.ts +3 -3
  64. package/src/sdk/models/operations/getpoimultipletiles.ts +1 -1
  65. package/src/sdk/models/operations/getpoitile.ts +1 -1
  66. package/src/sdk/models/shared/index.ts +2 -0
  67. package/src/sdk/models/shared/propertyaddress.ts +16 -1
  68. package/src/sdk/models/shared/propertydataapi.ts +7 -3
  69. package/src/sdk/models/shared/propertyfieldprovenance.ts +196 -0
  70. package/src/sdk/models/shared/propertysourcevalue.ts +54 -0
  71. package/src/sdk/models/shared/site.ts +6 -1
@@ -30,7 +30,7 @@ export type GetNearestPOIRequest = {
30
30
  */
31
31
  routing?: string | undefined;
32
32
  /**
33
- * Comma-separated categories to include, for example 'education,health,transport'. Every category is returned when omitted.
33
+ * Comma-separated category codes to include, for example 'RETAIL,RAIL'. The accepted codes are RETAIL, RAIL, METRO, FERRY, AIRPORT, BUS, AIRPORT_SMALL, AIRPORT_INTERNATIONAL. Case and the spaces around each code are ignored, and any other code rejects the request with a 400. Every category is returned when omitted or empty.
34
34
  */
35
35
  types?: string | undefined;
36
36
  };
@@ -101,7 +101,7 @@ export type GetNearestPOILocation = {
101
101
  };
102
102
 
103
103
  /**
104
- * A point of interest, such as a school, a hospital or a transport hub.
104
+ * A point of interest, such as a shop, a station or an airport.
105
105
  */
106
106
  export type GetNearestPOIResult = {
107
107
  /**
@@ -109,7 +109,7 @@ export type GetNearestPOIResult = {
109
109
  */
110
110
  address?: string | null | undefined;
111
111
  /**
112
- * Code identifying the category the place belongs to, such as `education`. Pass it in `types` to filter a search.
112
+ * Code identifying the category the place belongs to, one of RETAIL, RAIL, METRO, FERRY, AIRPORT, BUS, AIRPORT_SMALL, AIRPORT_INTERNATIONAL. Pass it in `types` to filter a search.
113
113
  */
114
114
  categoryId: string;
115
115
  /**
@@ -104,7 +104,7 @@ export type GetPOIMultipleTilesProperties = {
104
104
  */
105
105
  category?: string | undefined;
106
106
  /**
107
- * Code identifying the category the place belongs to, such as `education`.
107
+ * Code identifying the category the place belongs to, one of RETAIL, RAIL, METRO, FERRY, AIRPORT, BUS, AIRPORT_SMALL, AIRPORT_INTERNATIONAL.
108
108
  */
109
109
  categoryId: string;
110
110
  /**
@@ -67,7 +67,7 @@ export type Properties = {
67
67
  */
68
68
  category?: string | undefined;
69
69
  /**
70
- * Code identifying the category the place belongs to, such as `education`.
70
+ * Code identifying the category the place belongs to, one of RETAIL, RAIL, METRO, FERRY, AIRPORT, BUS, AIRPORT_SMALL, AIRPORT_INTERNATIONAL.
71
71
  */
72
72
  categoryId: string;
73
73
  /**
@@ -322,6 +322,7 @@ export * from "./propertyattributeentry.js";
322
322
  export * from "./propertyattributegroup.js";
323
323
  export * from "./propertybyslugsrequest.js";
324
324
  export * from "./propertydataapi.js";
325
+ export * from "./propertyfieldprovenance.js";
325
326
  export * from "./propertyfilterfield.js";
326
327
  export * from "./propertylistresponse.js";
327
328
  export * from "./propertylocationidareafilter.js";
@@ -335,6 +336,7 @@ export * from "./propertyquerycondition.js";
335
336
  export * from "./propertyquerygroup.js";
336
337
  export * from "./propertyqueryoperator.js";
337
338
  export * from "./propertyqueryrequest.js";
339
+ export * from "./propertysourcevalue.js";
338
340
  export * from "./propertytags.js";
339
341
  export * from "./propertytierinfo.js";
340
342
  export * from "./propertyvalueimpact.js";
@@ -25,6 +25,14 @@ export type PropertyAddressCountryCode = OpenEnum<
25
25
  >;
26
26
 
27
27
  export type PropertyAddress = {
28
+ /**
29
+ * The building's name: Royal Mail's where the address has one, otherwise Ordnance Survey's. `_provenance` names which it is and the date of that record. Absent when neither names the building, and on properties whose stored address predates the field.
30
+ */
31
+ buildingName?: string | undefined;
32
+ /**
33
+ * The building's number on its street, as text: Royal Mail's where the address has one, otherwise Ordnance Survey's. `_provenance` names which it is and the date of that record. Absent when the building has no number, and on properties whose stored address predates the field.
34
+ */
35
+ buildingNumber?: string | undefined;
28
36
  /**
29
37
  * The UK nation the address sits in, as a slug: `england`, `scotland`, `wales` or `northern-ireland`. Null when the nation could not be resolved.
30
38
  */
@@ -66,7 +74,7 @@ export type PropertyAddress = {
66
74
  */
67
75
  outcode?: string | undefined;
68
76
  /**
69
- * Post town the address is delivered through.
77
+ * The settlement the street sits in (city, town, village, hamlet or parish), as Ordnance Survey names it. Despite the field name this is the geographic town, not the Royal Mail post town the address is delivered through, and the two can differ.
70
78
  */
71
79
  postTown?: string | undefined;
72
80
  /**
@@ -77,6 +85,10 @@ export type PropertyAddress = {
77
85
  * The postcode with the space removed. This is the form a postcode area filter matches against.
78
86
  */
79
87
  postcodeNoSpace?: string | undefined;
88
+ /**
89
+ * The street the address is on: the Royal Mail thoroughfare where the address has one, otherwise the Ordnance Survey street name. `_provenance` names which it is and the date of that record. Absent when neither names a street, and on properties whose stored address predates the field.
90
+ */
91
+ street?: string | undefined;
80
92
  };
81
93
 
82
94
  /** @internal */
@@ -92,6 +104,8 @@ export const PropertyAddress$inboundSchema: z.ZodType<
92
104
  z.ZodTypeDef,
93
105
  unknown
94
106
  > = z.object({
107
+ buildingName: z.string().optional(),
108
+ buildingNumber: z.string().optional(),
95
109
  country: z.nullable(z.string()).optional(),
96
110
  countryCode: PropertyAddressCountryCode$inboundSchema.optional(),
97
111
  county: z.string().optional(),
@@ -105,6 +119,7 @@ export const PropertyAddress$inboundSchema: z.ZodType<
105
119
  post_town: z.string().optional(),
106
120
  postcode: z.string().optional(),
107
121
  postcodeNoSpace: z.string().optional(),
122
+ street: z.string().optional(),
108
123
  }).transform((v) => {
109
124
  return remap$(v, {
110
125
  "line_1": "line1",
@@ -31,6 +31,10 @@ import {
31
31
  PropertyAssessments,
32
32
  PropertyAssessments$inboundSchema,
33
33
  } from "./propertyassessments.js";
34
+ import {
35
+ PropertyFieldProvenance,
36
+ PropertyFieldProvenance$inboundSchema,
37
+ } from "./propertyfieldprovenance.js";
34
38
  import { PropertyTags, PropertyTags$inboundSchema } from "./propertytags.js";
35
39
  import {
36
40
  RefurbishmentData,
@@ -437,9 +441,9 @@ export type PropertyDataApiSpatial = {
437
441
 
438
442
  export type PropertyDataApi = {
439
443
  /**
440
- * Where each claim-resolved value came from, keyed by the field it applies to. Request it through `attributes`; it is returned only to callers holding the source-data permission.
444
+ * Where each served value came from and the date of its evidence, keyed by the served field's dotted path, such as `address.street`, `classificationCode` or `roomDetails.beds`. Request it through `attributes`; it is returned only to callers holding the source-data permission.
441
445
  */
442
- provenance?: { [k: string]: { [k: string]: any } } | undefined;
446
+ provenance?: { [k: string]: PropertyFieldProvenance } | undefined;
443
447
  address?: PropertyAddress | undefined;
444
448
  /**
445
449
  * Heritage and conservation designations assessed at this property's location. A product that is absent was not assessed.
@@ -924,7 +928,7 @@ export const PropertyDataApi$inboundSchema: z.ZodType<
924
928
  z.ZodTypeDef,
925
929
  unknown
926
930
  > = z.object({
927
- _provenance: z.record(z.record(z.any())).optional(),
931
+ _provenance: z.record(PropertyFieldProvenance$inboundSchema).optional(),
928
932
  address: PropertyAddress$inboundSchema.optional(),
929
933
  assessments: PropertyAssessments$inboundSchema.optional(),
930
934
  build: BuildData$inboundSchema.optional(),
@@ -0,0 +1,196 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../../lib/primitives.js";
7
+ import { safeParse } from "../../../lib/schemas.js";
8
+ import * as openEnums from "../../types/enums.js";
9
+ import { OpenEnum } from "../../types/enums.js";
10
+ import { Result as SafeParseResult } from "../../types/fp.js";
11
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
12
+ import {
13
+ PropertySourceValue,
14
+ PropertySourceValue$inboundSchema,
15
+ } from "./propertysourcevalue.js";
16
+
17
+ export const ContributingSources = {
18
+ Paf: "paf",
19
+ Os: "os",
20
+ OsNgd: "os_ngd",
21
+ NgdAddresses: "ngd_addresses",
22
+ Epc: "epc",
23
+ Hmlr: "hmlr",
24
+ Voa: "voa",
25
+ Hmrc: "hmrc",
26
+ HistoricEngland: "historic_england",
27
+ Listing: "listing",
28
+ OpenData: "open_data",
29
+ Council: "council",
30
+ Claim: "claim",
31
+ } as const;
32
+ export type ContributingSources = OpenEnum<typeof ContributingSources>;
33
+
34
+ /**
35
+ * How the winning value was chosen. `single_source` and `first_non_null` take the first source in priority order that had a value, `newest_evidence` takes the one with the most recent evidence date, `highest_confidence` the one with the highest confidence score, and `narrowest_range` the one giving the tightest year range.
36
+ */
37
+ export const ResolutionRule = {
38
+ SingleSource: "single_source",
39
+ FirstNonNull: "first_non_null",
40
+ NewestEvidence: "newest_evidence",
41
+ HighestConfidence: "highest_confidence",
42
+ NarrowestRange: "narrowest_range",
43
+ } as const;
44
+ /**
45
+ * How the winning value was chosen. `single_source` and `first_non_null` take the first source in priority order that had a value, `newest_evidence` takes the one with the most recent evidence date, `highest_confidence` the one with the highest confidence score, and `narrowest_range` the one giving the tightest year range.
46
+ */
47
+ export type ResolutionRule = OpenEnum<typeof ResolutionRule>;
48
+
49
+ /**
50
+ * Data source whose value won under `resolutionRule`.
51
+ */
52
+ export const PropertyFieldProvenanceSource = {
53
+ Paf: "paf",
54
+ Os: "os",
55
+ OsNgd: "os_ngd",
56
+ NgdAddresses: "ngd_addresses",
57
+ Epc: "epc",
58
+ Hmlr: "hmlr",
59
+ Voa: "voa",
60
+ Hmrc: "hmrc",
61
+ HistoricEngland: "historic_england",
62
+ Listing: "listing",
63
+ OpenData: "open_data",
64
+ Council: "council",
65
+ Claim: "claim",
66
+ } as const;
67
+ /**
68
+ * Data source whose value won under `resolutionRule`.
69
+ */
70
+ export type PropertyFieldProvenanceSource = OpenEnum<
71
+ typeof PropertyFieldProvenanceSource
72
+ >;
73
+
74
+ /**
75
+ * What each contributing source reported, keyed by source. Only contributing sources appear.
76
+ */
77
+ export type SourceValues = {
78
+ claim?: PropertySourceValue | undefined;
79
+ council?: PropertySourceValue | undefined;
80
+ epc?: PropertySourceValue | undefined;
81
+ historicEngland?: PropertySourceValue | undefined;
82
+ hmlr?: PropertySourceValue | undefined;
83
+ hmrc?: PropertySourceValue | undefined;
84
+ listing?: PropertySourceValue | undefined;
85
+ ngdAddresses?: PropertySourceValue | undefined;
86
+ openData?: PropertySourceValue | undefined;
87
+ os?: PropertySourceValue | undefined;
88
+ osNgd?: PropertySourceValue | undefined;
89
+ paf?: PropertySourceValue | undefined;
90
+ voa?: PropertySourceValue | undefined;
91
+ };
92
+
93
+ export type PropertyFieldProvenance = {
94
+ /**
95
+ * Every data source that had a value for this field, whether or not it won.
96
+ */
97
+ contributingSources?: Array<ContributingSources> | undefined;
98
+ /**
99
+ * How the winning value was chosen. `single_source` and `first_non_null` take the first source in priority order that had a value, `newest_evidence` takes the one with the most recent evidence date, `highest_confidence` the one with the highest confidence score, and `narrowest_range` the one giving the tightest year range.
100
+ */
101
+ resolutionRule?: ResolutionRule | undefined;
102
+ /**
103
+ * Data source whose value won under `resolutionRule`.
104
+ */
105
+ source?: PropertyFieldProvenanceSource | undefined;
106
+ /**
107
+ * What each contributing source reported, keyed by source. Only contributing sources appear.
108
+ */
109
+ sourceValues?: SourceValues | undefined;
110
+ /**
111
+ * The value that won, which is the one served at the field's path.
112
+ */
113
+ value?: any | undefined;
114
+ };
115
+
116
+ /** @internal */
117
+ export const ContributingSources$inboundSchema: z.ZodType<
118
+ ContributingSources,
119
+ z.ZodTypeDef,
120
+ unknown
121
+ > = openEnums.inboundSchema(ContributingSources);
122
+
123
+ /** @internal */
124
+ export const ResolutionRule$inboundSchema: z.ZodType<
125
+ ResolutionRule,
126
+ z.ZodTypeDef,
127
+ unknown
128
+ > = openEnums.inboundSchema(ResolutionRule);
129
+
130
+ /** @internal */
131
+ export const PropertyFieldProvenanceSource$inboundSchema: z.ZodType<
132
+ PropertyFieldProvenanceSource,
133
+ z.ZodTypeDef,
134
+ unknown
135
+ > = openEnums.inboundSchema(PropertyFieldProvenanceSource);
136
+
137
+ /** @internal */
138
+ export const SourceValues$inboundSchema: z.ZodType<
139
+ SourceValues,
140
+ z.ZodTypeDef,
141
+ unknown
142
+ > = z.object({
143
+ claim: PropertySourceValue$inboundSchema.optional(),
144
+ council: PropertySourceValue$inboundSchema.optional(),
145
+ epc: PropertySourceValue$inboundSchema.optional(),
146
+ historic_england: PropertySourceValue$inboundSchema.optional(),
147
+ hmlr: PropertySourceValue$inboundSchema.optional(),
148
+ hmrc: PropertySourceValue$inboundSchema.optional(),
149
+ listing: PropertySourceValue$inboundSchema.optional(),
150
+ ngd_addresses: PropertySourceValue$inboundSchema.optional(),
151
+ open_data: PropertySourceValue$inboundSchema.optional(),
152
+ os: PropertySourceValue$inboundSchema.optional(),
153
+ os_ngd: PropertySourceValue$inboundSchema.optional(),
154
+ paf: PropertySourceValue$inboundSchema.optional(),
155
+ voa: PropertySourceValue$inboundSchema.optional(),
156
+ }).transform((v) => {
157
+ return remap$(v, {
158
+ "historic_england": "historicEngland",
159
+ "ngd_addresses": "ngdAddresses",
160
+ "open_data": "openData",
161
+ "os_ngd": "osNgd",
162
+ });
163
+ });
164
+
165
+ export function sourceValuesFromJSON(
166
+ jsonString: string,
167
+ ): SafeParseResult<SourceValues, SDKValidationError> {
168
+ return safeParse(
169
+ jsonString,
170
+ (x) => SourceValues$inboundSchema.parse(JSON.parse(x)),
171
+ `Failed to parse 'SourceValues' from JSON`,
172
+ );
173
+ }
174
+
175
+ /** @internal */
176
+ export const PropertyFieldProvenance$inboundSchema: z.ZodType<
177
+ PropertyFieldProvenance,
178
+ z.ZodTypeDef,
179
+ unknown
180
+ > = z.object({
181
+ contributingSources: z.array(ContributingSources$inboundSchema).optional(),
182
+ resolutionRule: ResolutionRule$inboundSchema.optional(),
183
+ source: PropertyFieldProvenanceSource$inboundSchema.optional(),
184
+ sourceValues: z.lazy(() => SourceValues$inboundSchema).optional(),
185
+ value: z.any().optional(),
186
+ });
187
+
188
+ export function propertyFieldProvenanceFromJSON(
189
+ jsonString: string,
190
+ ): SafeParseResult<PropertyFieldProvenance, SDKValidationError> {
191
+ return safeParse(
192
+ jsonString,
193
+ (x) => PropertyFieldProvenance$inboundSchema.parse(JSON.parse(x)),
194
+ `Failed to parse 'PropertyFieldProvenance' from JSON`,
195
+ );
196
+ }
@@ -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
+ export type PropertySourceValue = {
11
+ /**
12
+ * How this source captured the value, in its own wording, for example `epc:survey` or `advert`.
13
+ */
14
+ captureMethod?: string | null | undefined;
15
+ /**
16
+ * How far this source's value is trusted, from 0 to 100, where higher is more trusted. The `highest_confidence` rule picks the winner on this number, and `narrowest_range` uses it to break ties.
17
+ */
18
+ confidence?: number | undefined;
19
+ /**
20
+ * Date of the evidence behind this value, as an ISO 8601 date, such as the date the address record it was read from was last updated or the date the advert stating it was published. Absent when the source gives no date.
21
+ */
22
+ evidenceDate?: string | null | undefined;
23
+ /**
24
+ * When the source last reported this value, as an ISO 8601 date.
25
+ */
26
+ updatedAt?: string | null | undefined;
27
+ /**
28
+ * The value this source reported for the field. Its type follows the field.
29
+ */
30
+ value?: any | undefined;
31
+ };
32
+
33
+ /** @internal */
34
+ export const PropertySourceValue$inboundSchema: z.ZodType<
35
+ PropertySourceValue,
36
+ z.ZodTypeDef,
37
+ unknown
38
+ > = z.object({
39
+ captureMethod: z.nullable(z.string()).optional(),
40
+ confidence: z.number().optional(),
41
+ evidenceDate: z.nullable(z.string()).optional(),
42
+ updatedAt: z.nullable(z.string()).optional(),
43
+ value: z.any().optional(),
44
+ });
45
+
46
+ export function propertySourceValueFromJSON(
47
+ jsonString: string,
48
+ ): SafeParseResult<PropertySourceValue, SDKValidationError> {
49
+ return safeParse(
50
+ jsonString,
51
+ (x) => PropertySourceValue$inboundSchema.parse(JSON.parse(x)),
52
+ `Failed to parse 'PropertySourceValue' from JSON`,
53
+ );
54
+ }
@@ -388,6 +388,10 @@ export type Site = {
388
388
  * Identifier for a single registered title, made up of the country, the registry and the title number joined by colons.
389
389
  */
390
390
  siteId?: string | undefined;
391
+ /**
392
+ * When HM Land Registry last changed this title's boundary record, as an ISO 8601 timestamp: the latest update date across the title's polygons. Null when the register gives no date.
393
+ */
394
+ sourceUpdatedAt?: string | null | undefined;
391
395
  /**
392
396
  * Data sources that contributed to this site record.
393
397
  */
@@ -409,7 +413,7 @@ export type Site = {
409
413
  */
410
414
  titleRef?: string | undefined;
411
415
  /**
412
- * When this site record was last updated, as an ISO 8601 timestamp.
416
+ * When Vepler last loaded or rebuilt this site record, as an ISO 8601 timestamp. It is not a date from HM Land Registry; `sourceUpdatedAt` and `registeredAt` are.
413
417
  */
414
418
  updatedAt?: string | null | undefined;
415
419
  };
@@ -611,6 +615,7 @@ export const Site$inboundSchema: z.ZodType<Site, z.ZodTypeDef, unknown> = z
611
615
  registry: z.string().optional(),
612
616
  relationships: z.array(z.string()).optional(),
613
617
  siteId: z.string().optional(),
618
+ sourceUpdatedAt: z.nullable(z.string()).optional(),
614
619
  sources: z.array(z.string()).optional(),
615
620
  status: SiteStatus$inboundSchema.optional(),
616
621
  tags: SiteTags$inboundSchema.optional(),