@addresszen/openapi 3.5.1 → 3.6.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.
@@ -7,7 +7,7 @@ interface paths {
7
7
  /**
8
8
  * Returns the complete list of addresses for a postcode. Postcode searches are space and case insensitive.
9
9
  *
10
- * The Postcode Lookup API provides a JSON interface to search UK addresses from a postcode. It can be used to power Postcode Lookup driven address searches, like [Postcode Lookup](/postcode-lookup).
10
+ * The Postcode Lookup API provides a JSON interface to search UK addresses from a postcode. It can be used to power Address Lookup driven address searches, like [Address Lookup](/docs/address-lookup/).
11
11
  *
12
12
  * ## Postcode Not Found
13
13
  *
@@ -380,6 +380,24 @@ interface paths {
380
380
  /** Query for and validate phone numbers. */
381
381
  get: operations["PhoneNumberValidation"];
382
382
  };
383
+ "/sign_up": {
384
+ /**
385
+ * Mints a one-shot `cli_token` and returns a prefilled accounts web URL where the user completes captcha + Terms of Service and Devise account creation. The CLI then polls `GET /sign_up/{cli_token}` until the api receives the user record (via the existing Rails → api admin propagation) along with the first API key, at which point credentials are returned exactly once.
386
+ *
387
+ * The api does **not** persist the `cli_token` at mint time — the token only becomes known to the api once Rails propagates the new user. The CLI is therefore responsible for its own polling deadline; if the user never completes signup, the api has no record of this token and `GET /sign_up/{cli_token}` will keep returning `202 Accepted` indefinitely.
388
+ */
389
+ post: operations["SignUpMintToken"];
390
+ };
391
+ "/sign_up/{cli_token}": {
392
+ /**
393
+ * Polls the status of a previously minted `cli_token`. The CLI calls this endpoint repeatedly after directing the user to the `signup_url` returned by `POST /sign_up`.
394
+ *
395
+ * - `202 Accepted` — Rails has not propagated the user to the api yet, or has propagated the user but not minted the first API key. Keep polling. **Note:** the api does not record the `cli_token` at mint time, so a `202` is also what an unknown / never-propagated token returns. The CLI must impose its own polling deadline.
396
+ * - `200 OK` — User and first API key exist. Credentials are returned exactly once; subsequent polls return `410 Gone`.
397
+ * - `410 Gone` — Token has expired (per the `cli_token_expires_at` set by Rails on the User record) or has already been claimed.
398
+ */
399
+ get: operations["SignUpClaim"];
400
+ };
383
401
  }
384
402
  interface components {
385
403
  schemas: {
@@ -387,6 +405,7 @@ interface components {
387
405
  ecad: components["schemas"]["EcadAddress"];
388
406
  geonames: components["schemas"]["GeonamesPlace"];
389
407
  here: components["schemas"]["HereAddress"];
408
+ gilp: components["schemas"]["GilpGroundStability"];
390
409
  /**
391
410
  * ID
392
411
  * @description Global unique internally generated identifier for an address
@@ -562,13 +581,13 @@ interface components {
562
581
  paf_pobox: string;
563
582
  /**
564
583
  * Department Name
565
- * @description Used to supplment Organisation Name to identify a deparment within the organisation.
584
+ * @description Used to supplement Organisation Name to identify a department within the organisation.
566
585
  * @example
567
586
  */
568
587
  paf_department_name: string;
569
588
  /**
570
589
  * Organisation Name
571
- * @description Used to supplment Organisation Name to identify a deparment within the organisation
590
+ * @description Name of the business or organisation receiving mail at this delivery point
572
591
  * @example Prime Minister & First Lord Of The Treasury
573
592
  */
574
593
  paf_organisation_name: string;
@@ -1009,6 +1028,839 @@ interface components {
1009
1028
  country?: "England" | "Scotland" | "Wales";
1010
1029
  native: components["schemas"]["AddressBaseCore"];
1011
1030
  };
1031
+ /**
1032
+ * AddressBase Premium
1033
+ * @description A flat, consolidated row from the `abp.addresses` materialised view of
1034
+ * Ordnance Survey's AddressBase Premium dataset.
1035
+ *
1036
+ * Each row joins the BLPU spine (one per UPRN) to the Royal Mail Delivery
1037
+ * Point Address (DPA), plus the current Classification and Organisation
1038
+ * records (where `end_date IS NULL`), the English-preferred LPI, its Street
1039
+ * and Street Descriptor, and pivoted Application Cross References.
1040
+ *
1041
+ * Cardinality is one row per Royal Mail delivery point (UDPRN) for postal
1042
+ * UPRNs; non-postal UPRNs (in BLPU but with no Royal Mail delivery point -
1043
+ * utility infrastructure, commercial-only sites, etc.) get a single row with
1044
+ * `udprn` and the DPA columns NULL. Fallbacks for non-postal UPRNs: `postcode`
1045
+ * falls back to BLPU's `postcode_locator`; `organisation_name` falls back to
1046
+ * the Organisation record's `organisation`. The unique key is the composite
1047
+ * `(uprn, udprn)`.
1048
+ *
1049
+ * Audit-date columns are prefixed with their source table name
1050
+ * (`blpu_*`, `dpa_*`, `lpi_*`, `street_*`, `sd_*`, etc.) to avoid clashes.
1051
+ *
1052
+ * @example {
1053
+ * "uprn": "49020496",
1054
+ * "parent_uprn": "49020495",
1055
+ * "logical_status": 1,
1056
+ * "blpu_state": "2",
1057
+ * "blpu_state_date": "2011-10-06T00:00:00.000Z",
1058
+ * "country": "W",
1059
+ * "latitude": 52.4121999,
1060
+ * "longitude": -4.0883772,
1061
+ * "x_coordinate": 258053.87,
1062
+ * "y_coordinate": 281405.95,
1063
+ * "rpc": 2,
1064
+ * "local_custodian_code": 6820,
1065
+ * "addressbase_postal": "D",
1066
+ * "postcode_locator": "SY23 1JT",
1067
+ * "multi_occ_count": 4,
1068
+ * "blpu_start_date": "2007-10-24T00:00:00.000Z",
1069
+ * "blpu_end_date": null,
1070
+ * "blpu_last_update_date": "2025-10-13T00:00:00.000Z",
1071
+ * "blpu_entry_date": "2006-11-24T00:00:00.000Z",
1072
+ * "udprn": "24255522",
1073
+ * "organisation_name": null,
1074
+ * "legal_name": null,
1075
+ * "department_name": null,
1076
+ * "sub_building_name": null,
1077
+ * "building_name": null,
1078
+ * "building_number": 1,
1079
+ * "dependent_thoroughfare": "CASTLE TERRACE",
1080
+ * "thoroughfare": "SOUTH ROAD",
1081
+ * "double_dependent_locality": null,
1082
+ * "dependent_locality": null,
1083
+ * "post_town": "ABERYSTWYTH",
1084
+ * "postcode": "SY23 1JT",
1085
+ * "postcode_type": "S",
1086
+ * "delivery_point_suffix": "1A",
1087
+ * "po_box_number": null,
1088
+ * "welsh_dependent_thoroughfare": "HEOL Y CASTELL",
1089
+ * "welsh_thoroughfare": "TAN Y CAE",
1090
+ * "welsh_double_dependent_locality": null,
1091
+ * "welsh_dependent_locality": null,
1092
+ * "welsh_post_town": "ABERYSTWYTH",
1093
+ * "dpa_process_date": "2016-01-18T00:00:00.000Z",
1094
+ * "dpa_start_date": "2012-04-23T00:00:00.000Z",
1095
+ * "dpa_end_date": null,
1096
+ * "dpa_last_update_date": "2016-02-10T00:00:00.000Z",
1097
+ * "dpa_entry_date": "2012-03-19T00:00:00.000Z",
1098
+ * "classification_code": "RD04",
1099
+ * "class_scheme": "AddressBase Premium Classification Scheme",
1100
+ * "scheme_version": 1,
1101
+ * "classification_start_date": "2007-10-24T00:00:00.000Z",
1102
+ * "classification_end_date": null,
1103
+ * "classification_last_update_date": "2018-09-23T00:00:00.000Z",
1104
+ * "classification_entry_date": "2006-11-24T00:00:00.000Z",
1105
+ * "organisation_start_date": null,
1106
+ * "organisation_end_date": null,
1107
+ * "organisation_last_update_date": null,
1108
+ * "organisation_entry_date": null,
1109
+ * "lpi_key": "6820L000054880",
1110
+ * "lpi_language": "CYM",
1111
+ * "lpi_logical_status": 1,
1112
+ * "lpi_start_date": "2007-10-24T00:00:00.000Z",
1113
+ * "lpi_end_date": null,
1114
+ * "lpi_last_update_date": "2025-09-26T00:00:00.000Z",
1115
+ * "lpi_entry_date": "2007-09-04T00:00:00.000Z",
1116
+ * "sao_start_number": null,
1117
+ * "sao_start_suffix": null,
1118
+ * "sao_end_number": null,
1119
+ * "sao_end_suffix": null,
1120
+ * "sao_text": null,
1121
+ * "pao_start_number": 1,
1122
+ * "pao_start_suffix": null,
1123
+ * "pao_end_number": null,
1124
+ * "pao_end_suffix": null,
1125
+ * "pao_text": "HEOL Y CASTELL",
1126
+ * "usrn": "47114724",
1127
+ * "usrn_match_indicator": "1",
1128
+ * "area_name": null,
1129
+ * "level": null,
1130
+ * "official_flag": "Y",
1131
+ * "street_record_type": 1,
1132
+ * "swa_org_ref_naming": 6820,
1133
+ * "street_state": "2",
1134
+ * "street_state_date": "1990-01-01T00:00:00.000Z",
1135
+ * "street_surface": "1",
1136
+ * "street_classification": null,
1137
+ * "street_start_date": "2007-10-24T00:00:00.000Z",
1138
+ * "street_last_update_date": "2022-01-14T00:00:00.000Z",
1139
+ * "street_record_entry_date": "1998-07-14T00:00:00.000Z",
1140
+ * "street_start_x": 257968,
1141
+ * "street_start_y": 281400,
1142
+ * "street_start_lat": 52.4121241,
1143
+ * "street_start_long": -4.0896363,
1144
+ * "street_end_x": 258266,
1145
+ * "street_end_y": 281393,
1146
+ * "street_end_lat": 52.4121386,
1147
+ * "street_end_long": -4.0852551,
1148
+ * "street_tolerance": 10,
1149
+ * "street_description": "SOUTH ROAD",
1150
+ * "street_locality": null,
1151
+ * "street_town": "ABERYSTWYTH",
1152
+ * "adminstrative_area": "CEREDIGION",
1153
+ * "sd_language": "ENG",
1154
+ * "sd_start_date": "2007-10-24T00:00:00.000Z",
1155
+ * "sd_end_date": null,
1156
+ * "sd_last_update_date": "2016-02-06T00:00:00.000Z",
1157
+ * "sd_entry_date": "1998-07-14T00:00:00.000Z",
1158
+ * "toid": "osgb1000020592167",
1159
+ * "toid_address": "osgb1000002175099422",
1160
+ * "toid_highways": "osgb5000005181786114",
1161
+ * "council_tax_ref": null,
1162
+ * "ndr_ref": null,
1163
+ * "ons_ward_code": "W05001302",
1164
+ * "ons_parish_code": "W04000359"
1165
+ * }
1166
+ */
1167
+ AddressBasePremium: {
1168
+ /**
1169
+ * Unique Property Reference Number
1170
+ * @description Unique Property Reference Number - a persistent identifier for a Basic
1171
+ * Land and Property Unit (BLPU). Up to 12 digits. Primary key for the
1172
+ * BLPU spine. Carried as a string to preserve precision (12-digit values
1173
+ * can exceed Number.MAX_SAFE_INTEGER).
1174
+ */
1175
+ uprn: string;
1176
+ /**
1177
+ * Parent UPRN
1178
+ * @description UPRN of the parent record where a parent-child relationship exists
1179
+ * (flats sharing a building entrance, sub-units of a parent property).
1180
+ */
1181
+ parent_uprn?: string | null;
1182
+ /**
1183
+ * Logical Status Code
1184
+ * @description Logical lifecycle status of the BLPU. `1` Approved, `6` Provisional,
1185
+ * `8` Historical. BLPU records do not take value `3` (alternative).
1186
+ */
1187
+ logical_status: number;
1188
+ /**
1189
+ * BLPU State Code
1190
+ * @description Physical state of the BLPU. `1` Under construction, `2` In use,
1191
+ * `3` Unoccupied / vacant / derelict, `4` No longer existing,
1192
+ * `6` Planning permission granted.
1193
+ */
1194
+ blpu_state?: string | null;
1195
+ /**
1196
+ * BLPU State Date
1197
+ * Format: date-time
1198
+ * @description Date the BLPU achieved its current state.
1199
+ */
1200
+ blpu_state_date?: string | null;
1201
+ /**
1202
+ * Country Code
1203
+ * @description Country containing the BLPU, determined by intersection with OS
1204
+ * Boundary-Line. `E` England, `W` Wales, `S` Scotland, `N` Northern
1205
+ * Ireland, `L` Channel Islands, `M` Isle of Man, `J` not assigned to a
1206
+ * country.
1207
+ */
1208
+ country: string;
1209
+ /**
1210
+ * Latitude (ETRS89)
1211
+ * Format: double
1212
+ * @description Latitude coordinate in the ETRS89 coordinate reference system.
1213
+ */
1214
+ latitude: number;
1215
+ /**
1216
+ * Longitude (ETRS89)
1217
+ * Format: double
1218
+ * @description Longitude coordinate in the ETRS89 coordinate reference system.
1219
+ */
1220
+ longitude: number;
1221
+ /**
1222
+ * Eastings (OSGB36 British National Grid)
1223
+ * Format: double
1224
+ * @description X location in metres on the OSGB36 British National Grid
1225
+ * (precision 8, scale 2).
1226
+ */
1227
+ x_coordinate: number;
1228
+ /**
1229
+ * Northings (OSGB36 British National Grid)
1230
+ * Format: double
1231
+ * @description Y location in metres on the OSGB36 British National Grid
1232
+ * (precision 9, scale 2).
1233
+ */
1234
+ y_coordinate: number;
1235
+ /**
1236
+ * Representative Point Code
1237
+ * @description Representative Point Code - reliability of the BLPU's coordinate, as
1238
+ * assessed by the local authority custodian. `1` Central internal,
1239
+ * `2` General internal, `3` Transitional, `4` Street location,
1240
+ * `5` Postcode unit, `9` Low accuracy.
1241
+ */
1242
+ rpc?: number | null;
1243
+ /**
1244
+ * Local Custodian Code
1245
+ * @description 4-digit identifier of the Local Authority responsible for maintaining
1246
+ * the record.
1247
+ */
1248
+ local_custodian_code: number;
1249
+ /**
1250
+ * AddressBase Postal Code
1251
+ * @description Whether the address can receive mail per AddressBase rules. `D` linked
1252
+ * to PAF, `N` not a postal address, `C` postal with a PAF-linked parent,
1253
+ * `L` postal based on Local Authority information.
1254
+ */
1255
+ addressbase_postal: string;
1256
+ /**
1257
+ * Postcode Locator
1258
+ * @description Royal Mail PAF postcode, locally assigned by the custodian, or
1259
+ * spatially derived where no PAF match exists. Up to 8 characters.
1260
+ */
1261
+ postcode_locator: string;
1262
+ /**
1263
+ * Multi-occupancy Count
1264
+ * @description Count of child UPRNs for this record where parent-child relationships
1265
+ * exist.
1266
+ */
1267
+ multi_occ_count: number;
1268
+ /**
1269
+ * BLPU Start Date
1270
+ * Format: date-time
1271
+ * @description Date the address record was inserted into the database.
1272
+ */
1273
+ blpu_start_date?: string | null;
1274
+ /**
1275
+ * BLPU End Date
1276
+ * Format: date-time
1277
+ * @description Date the address record was closed in the database.
1278
+ */
1279
+ blpu_end_date?: string | null;
1280
+ /**
1281
+ * BLPU Last Update Date
1282
+ * Format: date-time
1283
+ * @description Date of the most recent attribute change on the BLPU record.
1284
+ */
1285
+ blpu_last_update_date?: string | null;
1286
+ /**
1287
+ * BLPU Entry Date
1288
+ * Format: date-time
1289
+ * @description Date the record was inserted into the Local Authority database.
1290
+ */
1291
+ blpu_entry_date?: string | null;
1292
+ /**
1293
+ * Unique Delivery Point Reference Number
1294
+ * @description Royal Mail's Unique Delivery Point Reference Number - primary key for
1295
+ * the Delivery Point Address (DPA) record. Up to 8 digits. NULL for
1296
+ * non-postal UPRNs.
1297
+ */
1298
+ udprn?: string | null;
1299
+ /**
1300
+ * Organisation Name
1301
+ * @description Royal Mail-recognised organisation name from DPA, falling back to the
1302
+ * AddressBase Organisation record's `organisation` when DPA is absent.
1303
+ */
1304
+ organisation_name?: string | null;
1305
+ /**
1306
+ * Legal Name
1307
+ * @description Registered legal name from the AddressBase Organisation record.
1308
+ */
1309
+ legal_name?: string | null;
1310
+ /**
1311
+ * Department Name
1312
+ * @description Subdivision of an organisation that receives mail at a distinct
1313
+ * delivery point. Requires `organisation_name` to be present.
1314
+ */
1315
+ department_name?: string | null;
1316
+ /**
1317
+ * Sub-building Name
1318
+ * @description Property subdivision identifier (e.g. flat number). Requires
1319
+ * `building_name` or `building_number`.
1320
+ */
1321
+ sub_building_name?: string | null;
1322
+ /**
1323
+ * Building Name
1324
+ * @description Descriptive name applied to a single building or small group of
1325
+ * buildings.
1326
+ */
1327
+ building_name?: string | null;
1328
+ /**
1329
+ * Building Number
1330
+ * @description Numeric identifier for a single building or small group of buildings.
1331
+ * Complex number formats (e.g. "12A") go in `building_name` or
1332
+ * `sub_building_name`.
1333
+ */
1334
+ building_number?: number | null;
1335
+ /**
1336
+ * Dependent Thoroughfare
1337
+ * @description Named thoroughfare within another named thoroughfare. Requires
1338
+ * `thoroughfare` to be present.
1339
+ */
1340
+ dependent_thoroughfare?: string | null;
1341
+ /**
1342
+ * Thoroughfare
1343
+ * @description Road, track or named access route with Royal Mail delivery points.
1344
+ */
1345
+ thoroughfare?: string | null;
1346
+ /**
1347
+ * Double Dependent Locality
1348
+ * @description Estate or area name used to distinguish similar thoroughfares within a
1349
+ * dependent locality. Requires `dependent_locality`.
1350
+ */
1351
+ double_dependent_locality?: string | null;
1352
+ /**
1353
+ * Dependent Locality
1354
+ * @description Subdivision of a post town to differentiate same-name thoroughfares.
1355
+ */
1356
+ dependent_locality?: string | null;
1357
+ /**
1358
+ * Post Town
1359
+ * @description Town or city of the Royal Mail sorting office serving this record.
1360
+ * Uppercased. NULL for non-postal UPRNs (no Royal Mail delivery point).
1361
+ */
1362
+ post_town?: string | null;
1363
+ /**
1364
+ * Postcode
1365
+ * @description Royal Mail postcode from DPA, falling back to BLPU's `postcode_locator`
1366
+ * when no Royal Mail delivery point exists. Uppercased, with single space
1367
+ * between outward and inward portions.
1368
+ */
1369
+ postcode: string;
1370
+ /**
1371
+ * Postcode Type Code
1372
+ * @description Royal Mail postal-user category. `S` Small user (e.g. a residential
1373
+ * property), `L` Large user (e.g. a large commercial company).
1374
+ */
1375
+ postcode_type?: string | null;
1376
+ /**
1377
+ * Delivery Point Suffix
1378
+ * @description Two-character code uniquely identifying an individual delivery point
1379
+ * within a postcode (Royal Mail DPS).
1380
+ */
1381
+ delivery_point_suffix?: string | null;
1382
+ /**
1383
+ * PO Box Number
1384
+ * @description Post Office Box number.
1385
+ */
1386
+ po_box_number?: string | null;
1387
+ /**
1388
+ * Welsh Dependent Thoroughfare
1389
+ * @description Welsh translation of `dependent_thoroughfare`. Requires `welsh_thoroughfare`.
1390
+ */
1391
+ welsh_dependent_thoroughfare?: string | null;
1392
+ /**
1393
+ * Welsh Thoroughfare
1394
+ * @description Welsh translation of `thoroughfare`.
1395
+ */
1396
+ welsh_thoroughfare?: string | null;
1397
+ /**
1398
+ * Welsh Double Dependent Locality
1399
+ * @description Welsh translation of `double_dependent_locality`. Requires `welsh_dependent_locality`.
1400
+ */
1401
+ welsh_double_dependent_locality?: string | null;
1402
+ /**
1403
+ * Welsh Dependent Locality
1404
+ * @description Welsh translation of `dependent_locality`.
1405
+ */
1406
+ welsh_dependent_locality?: string | null;
1407
+ /**
1408
+ * Welsh Post Town
1409
+ * @description Welsh translation of `post_town`.
1410
+ */
1411
+ welsh_post_town?: string | null;
1412
+ /**
1413
+ * DPA Process Date
1414
+ * Format: date-time
1415
+ * @description Date the PAF record was processed into the database.
1416
+ */
1417
+ dpa_process_date?: string | null;
1418
+ /**
1419
+ * DPA Start Date
1420
+ * Format: date-time
1421
+ * @description Date the address record was matched to the Delivery Point Address.
1422
+ */
1423
+ dpa_start_date?: string | null;
1424
+ /**
1425
+ * DPA End Date
1426
+ * Format: date-time
1427
+ * @description Date the PAF record no longer existed in the database.
1428
+ */
1429
+ dpa_end_date?: string | null;
1430
+ /**
1431
+ * DPA Last Update Date
1432
+ * Format: date-time
1433
+ * @description Date any attribute on the DPA record was last changed.
1434
+ */
1435
+ dpa_last_update_date?: string | null;
1436
+ /**
1437
+ * DPA Entry Date
1438
+ * Format: date-time
1439
+ * @description Date the PAF record was first loaded by GeoPlace.
1440
+ */
1441
+ dpa_entry_date?: string | null;
1442
+ /**
1443
+ * Classification Code
1444
+ * @description Current AddressBase classification code (e.g. `RD` residential,
1445
+ * `CR` commercial retail). Top-level categories: `R` Residential,
1446
+ * `C` Commercial, `L` Land, `M` Military, `O` Other, `P` Parent shell,
1447
+ * `U` Unclassified, `X` Dual use, `Z` Object of interest. NULL when no
1448
+ * current classification row exists for the UPRN.
1449
+ */
1450
+ classification_code?: string | null;
1451
+ /**
1452
+ * Classification Scheme
1453
+ * @description Name of the classification scheme applied to this record.
1454
+ */
1455
+ class_scheme?: string | null;
1456
+ /**
1457
+ * Classification Scheme Version
1458
+ * @description Version number of the classification scheme in use (e.g. `1.0`).
1459
+ */
1460
+ scheme_version?: number | null;
1461
+ /**
1462
+ * Classification Start Date
1463
+ * Format: date-time
1464
+ * @description Date the classification record was first loaded into the database.
1465
+ */
1466
+ classification_start_date?: string | null;
1467
+ /**
1468
+ * Classification End Date
1469
+ * Format: date-time
1470
+ * @description Date the classification record ceased to exist.
1471
+ */
1472
+ classification_end_date?: string | null;
1473
+ /**
1474
+ * Classification Last Update Date
1475
+ * Format: date-time
1476
+ * @description Date of the most recent attribute change on the classification record.
1477
+ */
1478
+ classification_last_update_date?: string | null;
1479
+ /**
1480
+ * Classification Entry Date
1481
+ * Format: date-time
1482
+ * @description Date the associated address record was inserted into the Local
1483
+ * Authority database.
1484
+ */
1485
+ classification_entry_date?: string | null;
1486
+ /**
1487
+ * Organisation Start Date
1488
+ * Format: date-time
1489
+ * @description Date the organisation record was initially loaded into the database.
1490
+ */
1491
+ organisation_start_date?: string | null;
1492
+ /**
1493
+ * Organisation End Date
1494
+ * Format: date-time
1495
+ * @description Date the organisation record ceased to exist.
1496
+ */
1497
+ organisation_end_date?: string | null;
1498
+ /**
1499
+ * Organisation Last Update Date
1500
+ * Format: date-time
1501
+ * @description Date of the most recent attribute change on the organisation record.
1502
+ */
1503
+ organisation_last_update_date?: string | null;
1504
+ /**
1505
+ * Organisation Entry Date
1506
+ * Format: date-time
1507
+ * @description Date the UPRN was entered into the Local Authority database.
1508
+ */
1509
+ organisation_entry_date?: string | null;
1510
+ /**
1511
+ * LPI Key
1512
+ * @description Unique identifier and primary key for the LPI record.
1513
+ */
1514
+ lpi_key?: string | null;
1515
+ /**
1516
+ * LPI Language Code
1517
+ * @description Language used for this LPI record. `ENG` English, `CYM` Welsh,
1518
+ * `GAE` Gaelic (Scottish), `BIL` Bilingual.
1519
+ */
1520
+ lpi_language?: string | null;
1521
+ /**
1522
+ * LPI Logical Status Code
1523
+ * @description Logical status of the LPI record. `1` Approved, `3` Alternative,
1524
+ * `6` Provisional, `8` Historical.
1525
+ */
1526
+ lpi_logical_status?: number | null;
1527
+ /**
1528
+ * LPI Start Date
1529
+ * Format: date-time
1530
+ * @description Date the LPI was first loaded into the database.
1531
+ */
1532
+ lpi_start_date?: string | null;
1533
+ /**
1534
+ * LPI End Date
1535
+ * Format: date-time
1536
+ * @description Date the LPI record ceased to exist.
1537
+ */
1538
+ lpi_end_date?: string | null;
1539
+ /**
1540
+ * LPI Last Update Date
1541
+ * Format: date-time
1542
+ * @description Date of the most recent attribute change on the LPI record.
1543
+ */
1544
+ lpi_last_update_date?: string | null;
1545
+ /**
1546
+ * LPI Entry Date
1547
+ * Format: date-time
1548
+ * @description Date the LPI record was inserted into the Local Authority database.
1549
+ */
1550
+ lpi_entry_date?: string | null;
1551
+ /**
1552
+ * SAO Start Number
1553
+ * @description Number of the Secondary Addressable Object, or range start. Requires
1554
+ * `pao_start_number` or `pao_text` to be present.
1555
+ */
1556
+ sao_start_number?: number | null;
1557
+ /**
1558
+ * SAO Start Suffix
1559
+ * @description Suffix appended to `sao_start_number`. Requires `sao_start_number`.
1560
+ */
1561
+ sao_start_suffix?: string | null;
1562
+ /**
1563
+ * SAO End Number
1564
+ * @description End number of the SAO range. Requires `sao_start_number`.
1565
+ */
1566
+ sao_end_number?: number | null;
1567
+ /**
1568
+ * SAO End Suffix
1569
+ * @description Suffix appended to `sao_end_number`. Requires `sao_end_number`.
1570
+ */
1571
+ sao_end_suffix?: string | null;
1572
+ /**
1573
+ * SAO Text
1574
+ * @description Building name or description for the Secondary Addressable Object
1575
+ * (e.g. "FLAT 1", "UNIT B"). Requires `pao_start_number` or `pao_text`.
1576
+ */
1577
+ sao_text?: string | null;
1578
+ /**
1579
+ * PAO Start Number
1580
+ * @description Number of the Primary Addressable Object, or range start. Mandatory if
1581
+ * `pao_text` is absent.
1582
+ */
1583
+ pao_start_number?: number | null;
1584
+ /**
1585
+ * PAO Start Suffix
1586
+ * @description Suffix appended to `pao_start_number`. Requires `pao_start_number`.
1587
+ */
1588
+ pao_start_suffix?: string | null;
1589
+ /**
1590
+ * PAO End Number
1591
+ * @description End number of the PAO range. Requires `pao_start_number`.
1592
+ */
1593
+ pao_end_number?: number | null;
1594
+ /**
1595
+ * PAO End Suffix
1596
+ * @description Suffix appended to `pao_end_number`. Requires `pao_end_number`.
1597
+ */
1598
+ pao_end_suffix?: string | null;
1599
+ /**
1600
+ * PAO Text
1601
+ * @description Building name or description for the Primary Addressable Object.
1602
+ * Mandatory if `pao_start_number` is absent.
1603
+ */
1604
+ pao_text?: string | null;
1605
+ /**
1606
+ * Unique Street Reference Number
1607
+ * @description Unique Street Reference Number linking this LPI to its Street record.
1608
+ * Up to 8 digits.
1609
+ */
1610
+ usrn?: string | null;
1611
+ /**
1612
+ * USRN Match Indicator Code
1613
+ * @description Confidence of the LPI to Street linkage. `1` Matched manually to the
1614
+ * nearest accessible Street, `2` Matched spatially to the nearest USRN.
1615
+ */
1616
+ usrn_match_indicator?: string | null;
1617
+ /**
1618
+ * Area Name
1619
+ * @description Third-level geographic area name such as island or property group.
1620
+ */
1621
+ area_name?: string | null;
1622
+ /**
1623
+ * Level
1624
+ * @description Vertical position of the property (e.g. "GROUND FLOOR").
1625
+ */
1626
+ level?: string | null;
1627
+ /**
1628
+ * Official Flag Code
1629
+ * @description Whether the LPI corresponds to an entry in the official Street Name and
1630
+ * Numbering register. `Y` Official address, `N` Unofficial address.
1631
+ */
1632
+ official_flag?: string | null;
1633
+ /**
1634
+ * Street Record Type Code
1635
+ * @description Description of the street record type. `1` Official designated Street
1636
+ * Name, `2` Street Description, `3` Numbered Street, `4` Unofficial
1637
+ * Street Description, `9` Description used for LLPG Access.
1638
+ */
1639
+ street_record_type?: number | null;
1640
+ /**
1641
+ * SWA Org Ref (Naming)
1642
+ * @description Code identifying the Street Naming and Numbering Authority or Local
1643
+ * Highway Authority (DfT-allocated).
1644
+ */
1645
+ swa_org_ref_naming?: number | null;
1646
+ /**
1647
+ * Street State Code
1648
+ * @description Current state of the street. `1` Under construction, `2` Open,
1649
+ * `4` Permanently closed.
1650
+ */
1651
+ street_state?: string | null;
1652
+ /**
1653
+ * Street State Date
1654
+ * Format: date-time
1655
+ * @description Date when the street achieved its current state.
1656
+ */
1657
+ street_state_date?: string | null;
1658
+ /**
1659
+ * Street Surface Code
1660
+ * @description Surface finish of the street. `1` Metalled, `2` Unmetalled, `3` Mixed.
1661
+ */
1662
+ street_surface?: string | null;
1663
+ /**
1664
+ * Street Classification Code
1665
+ * @description Primary classification of the street record. `4` Pedestrian way or
1666
+ * footpath, `6` Cycletrack or cycleway, `8` All vehicles, `9` Restricted
1667
+ * byway, `10` Bridleway.
1668
+ */
1669
+ street_classification?: string | null;
1670
+ /**
1671
+ * Street Start Date
1672
+ * Format: date-time
1673
+ * @description Date this street record or version was inserted into the database.
1674
+ */
1675
+ street_start_date?: string | null;
1676
+ /**
1677
+ * Street Last Update Date
1678
+ * Format: date-time
1679
+ * @description Date when any attribute of the street record was last changed.
1680
+ */
1681
+ street_last_update_date?: string | null;
1682
+ /**
1683
+ * Street Record Entry Date
1684
+ * Format: date-time
1685
+ * @description Date the street record was entered into the Local Authority database.
1686
+ */
1687
+ street_record_entry_date?: string | null;
1688
+ /**
1689
+ * Street Start Eastings
1690
+ * Format: double
1691
+ * @description X coordinate (BNG) for the street start point.
1692
+ */
1693
+ street_start_x?: number | null;
1694
+ /**
1695
+ * Street Start Northings
1696
+ * Format: double
1697
+ * @description Y coordinate (BNG) for the street start point.
1698
+ */
1699
+ street_start_y?: number | null;
1700
+ /**
1701
+ * Street Start Latitude
1702
+ * Format: double
1703
+ * @description Latitude (ETRS89) for the street start point.
1704
+ */
1705
+ street_start_lat?: number | null;
1706
+ /**
1707
+ * Street Start Longitude
1708
+ * Format: double
1709
+ * @description Longitude (ETRS89) for the street start point.
1710
+ */
1711
+ street_start_long?: number | null;
1712
+ /**
1713
+ * Street End Eastings
1714
+ * Format: double
1715
+ * @description X coordinate (BNG) for the street end point.
1716
+ */
1717
+ street_end_x?: number | null;
1718
+ /**
1719
+ * Street End Northings
1720
+ * Format: double
1721
+ * @description Y coordinate (BNG) for the street end point.
1722
+ */
1723
+ street_end_y?: number | null;
1724
+ /**
1725
+ * Street End Latitude
1726
+ * Format: double
1727
+ * @description Latitude (ETRS89) for the street end point.
1728
+ */
1729
+ street_end_lat?: number | null;
1730
+ /**
1731
+ * Street End Longitude
1732
+ * Format: double
1733
+ * @description Longitude (ETRS89) for the street end point.
1734
+ */
1735
+ street_end_long?: number | null;
1736
+ /**
1737
+ * Street Tolerance
1738
+ * @description Accuracy of street-coordinate data capture, in metres.
1739
+ */
1740
+ street_tolerance?: number | null;
1741
+ /**
1742
+ * Street Description
1743
+ * @description Street name, description or street number.
1744
+ */
1745
+ street_description?: string | null;
1746
+ /**
1747
+ * Street Locality
1748
+ * @description Geographical area within a town.
1749
+ */
1750
+ street_locality?: string | null;
1751
+ /**
1752
+ * Street Town
1753
+ * @description Name of the town. Required for Street Record Types `1` and `2`;
1754
+ * optional for types `3`, `4` and `9`.
1755
+ */
1756
+ street_town?: string | null;
1757
+ /**
1758
+ * Administrative Area
1759
+ * @description Local Highway Authority name (administrative area / county / unitary
1760
+ * authority). Field name spelling preserved verbatim from OS
1761
+ * (`ADMINSTRATIVE_AREA`).
1762
+ */
1763
+ adminstrative_area?: string | null;
1764
+ /**
1765
+ * Street Descriptor Language Code
1766
+ * @description Language of the street descriptor. `ENG` English, `CYM` Welsh,
1767
+ * `GAE` Gaelic (Scottish), `BIL` Bilingual.
1768
+ */
1769
+ sd_language?: string | null;
1770
+ /**
1771
+ * Street Descriptor Start Date
1772
+ * Format: date-time
1773
+ * @description Date the street descriptor record was first created in the database.
1774
+ */
1775
+ sd_start_date?: string | null;
1776
+ /**
1777
+ * Street Descriptor End Date
1778
+ * Format: date-time
1779
+ * @description Date the street descriptor record ceased to exist.
1780
+ */
1781
+ sd_end_date?: string | null;
1782
+ /**
1783
+ * Street Descriptor Last Update Date
1784
+ * Format: date-time
1785
+ * @description Date of the most recent attribute change on the street descriptor record.
1786
+ */
1787
+ sd_last_update_date?: string | null;
1788
+ /**
1789
+ * Street Descriptor Entry Date
1790
+ * Format: date-time
1791
+ * @description Date the street descriptor record was entered into the Local Authority
1792
+ * database.
1793
+ */
1794
+ sd_entry_date?: string | null;
1795
+ /**
1796
+ * TOID (Topography)
1797
+ * @description OS MasterMap Topography Layer TOID (cross-reference source `7666MT`)
1798
+ * linked to the UPRN.
1799
+ */
1800
+ toid?: string | null;
1801
+ /**
1802
+ * TOID (Address Layer)
1803
+ * @description OS MasterMap Address Layer 2 TOID (cross-reference source `7666MA`)
1804
+ * linked to the UPRN.
1805
+ */
1806
+ toid_address?: string | null;
1807
+ /**
1808
+ * TOID (Highways)
1809
+ * @description OS MasterMap Highways TOID (cross-reference source `7666MI`) linked to
1810
+ * the UPRN.
1811
+ */
1812
+ toid_highways?: string | null;
1813
+ /**
1814
+ * Council Tax Reference
1815
+ * @description Centrally created Valuation Office Agency council tax reference
1816
+ * (cross-reference source `7666VC`) linked to the UPRN.
1817
+ */
1818
+ council_tax_ref?: string | null;
1819
+ /**
1820
+ * Non-Domestic Rates Reference
1821
+ * @description Centrally created Valuation Office Agency non-domestic rates reference
1822
+ * (cross-reference source `7666VN`) linked to the UPRN.
1823
+ */
1824
+ ndr_ref?: string | null;
1825
+ /**
1826
+ * ONS Ward Code
1827
+ * @description Office for National Statistics ward code (cross-reference source
1828
+ * `7666OW`) linked to the UPRN.
1829
+ */
1830
+ ons_ward_code?: string | null;
1831
+ /**
1832
+ * ONS Parish Code
1833
+ * @description Office for National Statistics parish code (cross-reference source
1834
+ * `7666OP`) linked to the UPRN.
1835
+ */
1836
+ ons_parish_code?: string | null;
1837
+ };
1838
+ /**
1839
+ * AddressBase Premium
1840
+ * @description Address from Ordnance Survey AddressBase Premium dataset.
1841
+ *
1842
+ * Please contact us to have this enabled on your account.
1843
+ *
1844
+ * All AddressBase Premium addresses have a UPRN and a rooftop geolocation available however they may not have a UDPRN.
1845
+ */
1846
+ AbpAddress: components["schemas"]["PafBase"] & {
1847
+ /** @enum {undefined} */
1848
+ country_iso?: "GBR";
1849
+ /** @enum {string} */
1850
+ dataset?: "abp";
1851
+ /** @enum {undefined} */
1852
+ country_iso_2?: "GB";
1853
+ /** @enum {undefined} */
1854
+ language?: "en";
1855
+ /**
1856
+ * Postcode Type
1857
+ * @enum {string}
1858
+ */
1859
+ postcode_type?: "";
1860
+ /** @enum {undefined} */
1861
+ country?: "England" | "Scotland" | "Wales" | "Northern Ireland";
1862
+ native: components["schemas"]["AddressBasePremium"];
1863
+ };
1012
1864
  /**
1013
1865
  * Dataset
1014
1866
  * @description Indicates the provenance of an address.
@@ -1020,6 +1872,7 @@ interface components {
1020
1872
  * - `pafa` (GBR) Alias File
1021
1873
  * - `pafw` (GBR) Welsh File
1022
1874
  * - `ab` (GBR) AddressBase Core
1875
+ * - `abp` (GBR) AddressBase Premium
1023
1876
  * - `ecaf` (IRL) Eircode ECAF
1024
1877
  * - `ecad` (IRL) Eircode ECAD
1025
1878
  * - `herewe` (Western Europe) Western Europe Dataset
@@ -1044,14 +1897,14 @@ interface components {
1044
1897
  * - `bev` (AUT) Austria Dataset
1045
1898
  * @enum {string}
1046
1899
  */
1047
- Dataset: "paf" | "pafw" | "pafa" | "mr" | "nyb" | "usps" | "ecaf" | "ecad" | "ab" | "herewe" | "heret" | "heresa" | "hereo" | "herena" | "heremeas" | "heremea" | "herem" | "herei" | "herehk" | "hereee" | "hereap" | "gnaf" | "kadaster" | "kartverket" | "sdfi" | "cannar" | "fodbosa" | "mois" | "upujp" | "bev";
1900
+ Dataset: "paf" | "pafw" | "pafa" | "mr" | "nyb" | "usps" | "ecaf" | "ecad" | "ab" | "abp" | "herewe" | "heret" | "heresa" | "hereo" | "herena" | "heremeas" | "heremea" | "herem" | "herei" | "herehk" | "hereee" | "hereap" | "gnaf" | "kadaster" | "kartverket" | "sdfi" | "cannar" | "fodbosa" | "mois" | "upujp" | "bev";
1048
1901
  /**
1049
1902
  * ISO Country Code (3)
1050
1903
  * @description 3 letter country code (ISO 3166-1)
1051
1904
  *
1052
1905
  * @enum {string}
1053
1906
  */
1054
- CountryISO: "GBR" | "IMN" | "JEY" | "GGY" | "USA" | "PRI" | "GUM" | "IRL" | "VAT" | "FRA" | "GRL" | "NLD" | "LUX" | "AUT" | "GIB" | "LIE" | "FIN" | "UNI" | "ISL" | "CHE" | "PRT" | "BEL" | "MCO" | "ITA" | "FRO" | "NOR" | "DNK" | "SMR" | "MLT" | "AND" | "SWE" | "DEU" | "ESP" | "SJM" | "BRN" | "IDN" | "KHM" | "MMR" | "MYS" | "PHL" | "SGP" | "THA" | "TLS" | "VNM" | "ALB" | "ARM" | "AZE" | "BGR" | "BIH" | "BLR" | "CYP" | "CZE" | "EST" | "GEO" | "GRC" | "HRV" | "HUN" | "KAZ" | "KGZ" | "KOS" | "LTU" | "LVA" | "MDA" | "MKD" | "MNE" | "POL" | "ROU" | "RUS" | "SRB" | "SVK" | "SVN" | "TUR" | "UKR" | "UZB" | "HKG" | "BGD" | "IND" | "LKA" | "MAC" | "AGO" | "ARE" | "BFA" | "BHR" | "BWA" | "CMR" | "EGY" | "GHA" | "ISR" | "JOR" | "KEN" | "KWT" | "LBN" | "LSO" | "MAR" | "MOZ" | "MUS" | "MYT" | "NAM" | "NGA" | "OMN" | "QAT" | "REU" | "SAU" | "SEN" | "SWZ" | "TUN" | "ZAF" | "ZMB" | "ZWE" | "BHS" | "BLZ" | "BMU" | "CAN" | "CRI" | "CYM" | "DOM" | "GTM" | "HND" | "HTI" | "JAM" | "MEX" | "NIC" | "PAN" | "SLV" | "VGB" | "AUS" | "CCK" | "CXR" | "FJI" | "NCL" | "NFK" | "NZL" | "PYF" | "TON" | "VUT" | "ABW" | "ARG" | "BLM" | "BOL" | "BRA" | "BRB" | "CHL" | "COL" | "CUW" | "DMA" | "ECU" | "GLP" | "GUF" | "GUY" | "MAF" | "MTQ" | "PER" | "PRY" | "SUR" | "TTO" | "URY" | "VEN" | "TWN" | "CHN" | "JPN" | "KOR" | "LAO" | "MNG" | "PNG" | "PRK" | "SLB" | "TJK" | "TKM" | "BTN" | "IOT" | "LKA" | "MDV" | "NPL" | "PAK" | "AFG" | "BDI" | "BEN" | "CAF" | "CIV" | "COD" | "COG" | "COM" | "CPV" | "DJI" | "DZA" | "ERI" | "ESH" | "ETH" | "GAB" | "GIN" | "GMB" | "GNB" | "GNQ" | "IRN" | "IRQ" | "LBR" | "LBY" | "MDG" | "MLI" | "MRT" | "MWI" | "NER" | "RWA" | "SHN" | "SLE" | "SOM" | "SSD" | "STP" | "SYC" | "TCD" | "TGO" | "TZA" | "UGA" | "SDN" | "SYR" | "YEM" | "CUB" | "SPM" | "TCA" | "COK" | "KIR" | "NIU" | "NRU" | "PCN" | "TKL" | "TUV" | "WLF" | "WSM" | "AIA" | "ATG" | "BES" | "FLK" | "GRD" | "KNA" | "LCA" | "MSR" | "SGS" | "SXM" | "VCT" | "ASM" | "FSM" | "MHL" | "MNP" | "PLW" | "VIR";
1907
+ CountryISO: "GBR" | "IMN" | "JEY" | "GGY" | "USA" | "PRI" | "GUM" | "IRL" | "VAT" | "FRA" | "GRL" | "NLD" | "LUX" | "AUT" | "GIB" | "LIE" | "FIN" | "UNI" | "ISL" | "CHE" | "PRT" | "BEL" | "MCO" | "ITA" | "FRO" | "NOR" | "DNK" | "SMR" | "MLT" | "AND" | "SWE" | "DEU" | "ESP" | "SJM" | "BRN" | "IDN" | "KHM" | "MMR" | "MYS" | "PHL" | "SGP" | "THA" | "TLS" | "VNM" | "ALB" | "ARM" | "AZE" | "BGR" | "BIH" | "BLR" | "CYP" | "CZE" | "EST" | "GEO" | "GRC" | "HRV" | "HUN" | "KAZ" | "KGZ" | "LTU" | "LVA" | "MDA" | "MKD" | "MNE" | "POL" | "ROU" | "RUS" | "SRB" | "SVK" | "SVN" | "TUR" | "UKR" | "UZB" | "XKX" | "HKG" | "BGD" | "IND" | "LKA" | "MAC" | "AGO" | "ARE" | "BFA" | "BHR" | "BWA" | "CMR" | "EGY" | "GHA" | "ISR" | "JOR" | "KEN" | "KWT" | "LBN" | "LSO" | "MAR" | "MOZ" | "MUS" | "MYT" | "NAM" | "NGA" | "OMN" | "QAT" | "REU" | "SAU" | "SEN" | "SWZ" | "TUN" | "ZAF" | "ZMB" | "ZWE" | "BHS" | "BLZ" | "BMU" | "CAN" | "CRI" | "CYM" | "DOM" | "GTM" | "HND" | "HTI" | "JAM" | "MEX" | "NIC" | "PAN" | "SLV" | "VGB" | "AUS" | "CCK" | "CXR" | "FJI" | "NCL" | "NFK" | "NZL" | "PYF" | "TON" | "VUT" | "ABW" | "ARG" | "BLM" | "BOL" | "BRA" | "BRB" | "CHL" | "COL" | "CUW" | "DMA" | "ECU" | "GLP" | "GUF" | "GUY" | "MAF" | "MTQ" | "PER" | "PRY" | "SUR" | "TTO" | "URY" | "VEN" | "TWN" | "CHN" | "JPN" | "KOR" | "LAO" | "MNG" | "PNG" | "PRK" | "SLB" | "TJK" | "TKM" | "BTN" | "IOT" | "LKA" | "MDV" | "NPL" | "PAK" | "AFG" | "BDI" | "BEN" | "CAF" | "CIV" | "COD" | "COG" | "COM" | "CPV" | "DJI" | "DZA" | "ERI" | "ESH" | "ETH" | "GAB" | "GIN" | "GMB" | "GNB" | "GNQ" | "IRN" | "IRQ" | "LBR" | "LBY" | "MDG" | "MLI" | "MRT" | "MWI" | "NER" | "RWA" | "SHN" | "SLE" | "SOM" | "SSD" | "STP" | "SYC" | "TCD" | "TGO" | "TZA" | "UGA" | "SDN" | "SYR" | "YEM" | "CUB" | "SPM" | "TCA" | "COK" | "KIR" | "NIU" | "NRU" | "PCN" | "TKL" | "TUV" | "WLF" | "WSM" | "AIA" | "ATG" | "BES" | "FLK" | "GRD" | "KNA" | "LCA" | "MSR" | "SGS" | "SXM" | "VCT" | "ASM" | "FSM" | "MHL" | "MNP" | "PLW" | "VIR";
1055
1908
  /**
1056
1909
  * ISO Country Code (2)
1057
1910
  * @description 2 letter country code (ISO 3166-1)
@@ -1278,7 +2131,7 @@ interface components {
1278
2131
  * @description Post County ID
1279
2132
  * @example 10098783
1280
2133
  */
1281
- post_county_id?: string;
2134
+ post_county_id?: string | null;
1282
2135
  /**
1283
2136
  * @description NUA means "non-unique address".
1284
2137
  *
@@ -5215,7 +6068,7 @@ interface components {
5215
6068
  *
5216
6069
  * If Eircode is enabled, addreses for the Republic of Ireland will be returned in the English format.
5217
6070
  */
5218
- result: (components["schemas"]["PafAddress"] | components["schemas"]["MrAddress"] | components["schemas"]["NybAddress"] | components["schemas"]["PafAliasAddress"] | components["schemas"]["WelshPafAddress"] | components["schemas"]["AbAddress"] | components["schemas"]["GbrGlobalAddress"])[];
6071
+ result: (components["schemas"]["PafAddress"] | components["schemas"]["MrAddress"] | components["schemas"]["NybAddress"] | components["schemas"]["PafAliasAddress"] | components["schemas"]["WelshPafAddress"] | components["schemas"]["AbAddress"] | components["schemas"]["AbpAddress"] | components["schemas"]["GbrGlobalAddress"])[];
5219
6072
  /** @enum {integer} */
5220
6073
  code: 2000;
5221
6074
  /** @enum {string} */
@@ -5562,6 +6415,11 @@ interface components {
5562
6415
  * @example false
5563
6416
  */
5564
6417
  ab: boolean;
6418
+ /**
6419
+ * @description UK AddressBase Premium dataset
6420
+ * @example false
6421
+ */
6422
+ abp?: boolean;
5565
6423
  /**
5566
6424
  * @description Northern Ireland Pointer Dataset
5567
6425
  * @example false
@@ -5768,7 +6626,7 @@ interface components {
5768
6626
  /** @description Current balance purchases attached to key. */
5769
6627
  current_purchases: components["schemas"]["ApiKeyCurrentPurchase"][];
5770
6628
  /**
5771
- * @description Accept IP addresses forwarded in the `IDPC-Source-IP` header
6629
+ * @description Accept IP addresses forwarded in the `AZ-Source-IP` header
5772
6630
  * @default false
5773
6631
  */
5774
6632
  ip_forwarding: boolean;
@@ -5847,7 +6705,7 @@ interface components {
5847
6705
  limit_reached?: boolean;
5848
6706
  };
5849
6707
  /**
5850
- * @description Accept IP addresses forwarded in the `IDPC-Source-IP` header
6708
+ * @description Accept IP addresses forwarded in the `AZ-Source-IP` header
5851
6709
  * @default false
5852
6710
  */
5853
6711
  ip_forwarding?: boolean;
@@ -5991,6 +6849,11 @@ interface components {
5991
6849
  * @example false
5992
6850
  */
5993
6851
  ab?: boolean;
6852
+ /**
6853
+ * @description UK AddressBase Premium dataset
6854
+ * @example false
6855
+ */
6856
+ abp?: boolean;
5994
6857
  /**
5995
6858
  * @description Northern Ireland Pointer Dataset
5996
6859
  * @example false
@@ -6745,7 +7608,7 @@ interface components {
6745
7608
  code: 2000;
6746
7609
  /** @enum {string} */
6747
7610
  message: "Success";
6748
- result: components["schemas"]["PafAddress"] | components["schemas"]["MrAddress"] | components["schemas"]["WelshPafAddress"] | components["schemas"]["PafAliasAddress"] | components["schemas"]["NybAddress"] | components["schemas"]["AbAddress"] | components["schemas"]["GbrGlobalAddress"];
7611
+ result: components["schemas"]["PafAddress"] | components["schemas"]["MrAddress"] | components["schemas"]["WelshPafAddress"] | components["schemas"]["PafAliasAddress"] | components["schemas"]["NybAddress"] | components["schemas"]["AbAddress"] | components["schemas"]["AbpAddress"] | components["schemas"]["GbrGlobalAddress"];
6749
7612
  };
6750
7613
  /**
6751
7614
  * Global Address
@@ -6913,7 +7776,7 @@ interface components {
6913
7776
  */
6914
7777
  county_number: "";
6915
7778
  /** @description The native representation of a non-US address */
6916
- native: components["schemas"]["EcadAddress"] | components["schemas"]["EcafAddress"] | components["schemas"]["PafAddress"] | components["schemas"]["MrAddress"] | components["schemas"]["NybAddress"] | components["schemas"]["PafAliasAddress"] | components["schemas"]["WelshPafAddress"] | components["schemas"]["AbAddress"] | components["schemas"]["HereAddress"] | components["schemas"]["GnafAddress"] | components["schemas"]["KadasterAddress"] | components["schemas"]["KartverketAddress"] | components["schemas"]["SdfiAddress"] | components["schemas"]["CannarAddress"] | components["schemas"]["FodbosaAddress"] | components["schemas"]["MoisAddress"] | components["schemas"]["UpujpAddress"] | components["schemas"]["BevAddress"];
7779
+ native: components["schemas"]["EcadAddress"] | components["schemas"]["EcafAddress"] | components["schemas"]["PafAddress"] | components["schemas"]["MrAddress"] | components["schemas"]["NybAddress"] | components["schemas"]["PafAliasAddress"] | components["schemas"]["WelshPafAddress"] | components["schemas"]["AbAddress"] | components["schemas"]["AbpAddress"] | components["schemas"]["HereAddress"] | components["schemas"]["GnafAddress"] | components["schemas"]["KadasterAddress"] | components["schemas"]["KartverketAddress"] | components["schemas"]["SdfiAddress"] | components["schemas"]["CannarAddress"] | components["schemas"]["FodbosaAddress"] | components["schemas"]["MoisAddress"] | components["schemas"]["UpujpAddress"] | components["schemas"]["BevAddress"];
6917
7780
  };
6918
7781
  /** Address Retrieve Response (USA) */
6919
7782
  UsaResolveAddressResponse: {
@@ -6937,7 +7800,7 @@ interface components {
6937
7800
  message: "Success";
6938
7801
  result: {
6939
7802
  /** @description List of matching addresses */
6940
- hits: (components["schemas"]["PafAddress"] | components["schemas"]["MrAddress"] | components["schemas"]["NybAddress"] | components["schemas"]["WelshPafAddress"] | components["schemas"]["PafAliasAddress"] | components["schemas"]["AbAddress"])[];
7803
+ hits: (components["schemas"]["PafAddress"] | components["schemas"]["MrAddress"] | components["schemas"]["NybAddress"] | components["schemas"]["WelshPafAddress"] | components["schemas"]["PafAliasAddress"] | components["schemas"]["AbAddress"] | components["schemas"]["AbpAddress"])[];
6941
7804
  /** Format: int32 */
6942
7805
  total: number;
6943
7806
  /**
@@ -7777,6 +8640,101 @@ interface components {
7777
8640
  message: "Success";
7778
8641
  result: components["schemas"]["PhoneNumber"] | components["schemas"]["InvalidPhoneNumber"];
7779
8642
  };
8643
+ /**
8644
+ * GILP Ground Stability
8645
+ * @description Postcode-level potential insurance risk from natural ground movement, from
8646
+ * the BGS GeoSure Insurance and Lenders Product (GILP) Derived Postcode
8647
+ * Database. Combines the six GeoSure hazards on (low-rise) buildings:
8648
+ * shrink-swell, landslides, soluble rocks, running sand, compressible ground
8649
+ * and collapsible deposits.
8650
+ *
8651
+ * Field names, types and score ranges mirror the GILP v8 Derived Postcode
8652
+ * Database verbatim (lower-cased), per the BGS user guide (Open Report
8653
+ * OR/26/013). Scores are unitless measures of expected impact, normalised by
8654
+ * expert elicitation so they are comparable and summable across hazards;
8655
+ * `total` is the sum of the six individual hazard scores.
8656
+ *
8657
+ * Hazards cover NATURAL ground movement only - no mining or contaminated
8658
+ * land (compressible ground is the one layer that considers man-made ground,
8659
+ * e.g. landfill). Values are generalised to postcode level; minimum
8660
+ * meaningful resolution is the postcode.
8661
+ */
8662
+ GilpGroundStability: {
8663
+ /**
8664
+ * @description The individual postcode.
8665
+ * @example BA1 0AA
8666
+ */
8667
+ postcode: string;
8668
+ /**
8669
+ * @description The individual hazard score value for collapsible deposits - rocks and
8670
+ * soils that may collapse when a load is placed on them, especially when
8671
+ * saturated.
8672
+ *
8673
+ * @example 0
8674
+ */
8675
+ collapse: number;
8676
+ /**
8677
+ * @description The individual hazard score value for running sand - loosely packed
8678
+ * sandy layers that can become fluidised by water flowing through them,
8679
+ * potentially removing support from overlying buildings.
8680
+ *
8681
+ * @example 6
8682
+ */
8683
+ rsand: number;
8684
+ /**
8685
+ * @description The individual hazard score value for compressible ground - very soft
8686
+ * materials like peat or some clays that may compress if loaded by
8687
+ * overlying structures or if the groundwater level changes.
8688
+ *
8689
+ * @example 74
8690
+ */
8691
+ comp: number;
8692
+ /**
8693
+ * @description The individual hazard score value for shrink-swell - swelling clays
8694
+ * that change volume with moisture variation, particularly in the upper
8695
+ * two metres of the ground.
8696
+ *
8697
+ * @example 252
8698
+ */
8699
+ sswell: number;
8700
+ /**
8701
+ * @description The individual hazard score value for soluble rocks (dissolution) -
8702
+ * soluble material dissolving to form underground cavities that reduce
8703
+ * support to the ground above.
8704
+ *
8705
+ * @example 0
8706
+ */
8707
+ solub: number;
8708
+ /**
8709
+ * @description The individual hazard score value for landslide - slope instability
8710
+ * causing down-slope movement of materials such as a landslide or
8711
+ * rockfall.
8712
+ *
8713
+ * @example 35
8714
+ */
8715
+ landslide: number;
8716
+ /**
8717
+ * @description The total combined score of all 6 hazards.
8718
+ * @example 367
8719
+ */
8720
+ total: number;
8721
+ /**
8722
+ * @description Classification of the insurance hazard potential, dividing `total`
8723
+ * into 5 equal categories: Low (0-399), Low-Medium (400-799), Medium
8724
+ * (800-1199), Medium-High (1200-1599), High (1600-2000).
8725
+ *
8726
+ * @example Low
8727
+ * @enum {string}
8728
+ */
8729
+ class: "Low" | "Low-Medium" | "Medium" | "Medium-High" | "High";
8730
+ /**
8731
+ * @description Dataset name and version number, encoding the GeoSure version and the
8732
+ * OS Code-Point Open version used in production.
8733
+ *
8734
+ * @example GILP_v8_2025.3
8735
+ */
8736
+ version: string;
8737
+ };
7780
8738
  };
7781
8739
  parameters: {
7782
8740
  /**
@@ -8103,7 +9061,7 @@ interface operations {
8103
9061
  /**
8104
9062
  * Returns the complete list of addresses for a postcode. Postcode searches are space and case insensitive.
8105
9063
  *
8106
- * The Postcode Lookup API provides a JSON interface to search UK addresses from a postcode. It can be used to power Postcode Lookup driven address searches, like [Postcode Lookup](/postcode-lookup).
9064
+ * The Postcode Lookup API provides a JSON interface to search UK addresses from a postcode. It can be used to power Address Lookup driven address searches, like [Address Lookup](/docs/address-lookup/).
8107
9065
  *
8108
9066
  * ## Postcode Not Found
8109
9067
  *
@@ -10178,6 +11136,124 @@ interface operations {
10178
11136
  };
10179
11137
  };
10180
11138
  };
11139
+ /**
11140
+ * Mints a one-shot `cli_token` and returns a prefilled accounts web URL where the user completes captcha + Terms of Service and Devise account creation. The CLI then polls `GET /sign_up/{cli_token}` until the api receives the user record (via the existing Rails → api admin propagation) along with the first API key, at which point credentials are returned exactly once.
11141
+ *
11142
+ * The api does **not** persist the `cli_token` at mint time — the token only becomes known to the api once Rails propagates the new user. The CLI is therefore responsible for its own polling deadline; if the user never completes signup, the api has no record of this token and `GET /sign_up/{cli_token}` will keep returning `202 Accepted` indefinitely.
11143
+ */
11144
+ SignUpMintToken: {
11145
+ responses: {
11146
+ /** Token minted */
11147
+ 200: {
11148
+ content: {
11149
+ "application/json": {
11150
+ /** @example 2000 */
11151
+ code: number;
11152
+ /** @example Success */
11153
+ message: string;
11154
+ result: {
11155
+ /** @description Random URL-safe token (base64url). Used by the CLI to poll for credentials. */
11156
+ cli_token: string;
11157
+ /**
11158
+ * Format: uri
11159
+ * @description Prefilled accounts web URL. The user opens this in a browser to complete signup.
11160
+ */
11161
+ signup_url: string;
11162
+ };
11163
+ };
11164
+ };
11165
+ };
11166
+ /** Bad Request */
11167
+ 400: {
11168
+ content: {
11169
+ "application/json": components["schemas"]["BadRequestResponse"];
11170
+ };
11171
+ };
11172
+ };
11173
+ requestBody: {
11174
+ content: {
11175
+ "application/json": {
11176
+ /**
11177
+ * Format: email
11178
+ * @description Account holder's email address.
11179
+ */
11180
+ email: string;
11181
+ /** @description Account holder's full name. */
11182
+ name: string;
11183
+ /** @description Organisation name. */
11184
+ org_name: string;
11185
+ org_address_line_one: string;
11186
+ org_address_line_two?: string;
11187
+ org_address_line_three?: string;
11188
+ org_post_town: string;
11189
+ org_postcode: string;
11190
+ /** @description ISO 3166-1 alpha-2 country code. */
11191
+ org_country_code: string;
11192
+ };
11193
+ };
11194
+ };
11195
+ };
11196
+ /**
11197
+ * Polls the status of a previously minted `cli_token`. The CLI calls this endpoint repeatedly after directing the user to the `signup_url` returned by `POST /sign_up`.
11198
+ *
11199
+ * - `202 Accepted` — Rails has not propagated the user to the api yet, or has propagated the user but not minted the first API key. Keep polling. **Note:** the api does not record the `cli_token` at mint time, so a `202` is also what an unknown / never-propagated token returns. The CLI must impose its own polling deadline.
11200
+ * - `200 OK` — User and first API key exist. Credentials are returned exactly once; subsequent polls return `410 Gone`.
11201
+ * - `410 Gone` — Token has expired (per the `cli_token_expires_at` set by Rails on the User record) or has already been claimed.
11202
+ */
11203
+ SignUpClaim: {
11204
+ parameters: {
11205
+ path: {
11206
+ /** The token returned by `POST /sign_up`. */
11207
+ cli_token: string;
11208
+ };
11209
+ };
11210
+ responses: {
11211
+ /** Credentials ready */
11212
+ 200: {
11213
+ content: {
11214
+ "application/json": {
11215
+ /** @example 2000 */
11216
+ code: number;
11217
+ /** @example Success */
11218
+ message: string;
11219
+ result: {
11220
+ /** @description User-level token used to manage account resources via the api. */
11221
+ user_token: string;
11222
+ /** @description Initial test API key for the account. */
11223
+ test_api_key: string;
11224
+ /** @description Internal api user id. */
11225
+ user_id: string;
11226
+ };
11227
+ };
11228
+ };
11229
+ };
11230
+ /** Pending — keep polling */
11231
+ 202: {
11232
+ content: {
11233
+ "application/json": {
11234
+ /** @example 2020 */
11235
+ code: number;
11236
+ /** @example Pending */
11237
+ message: string;
11238
+ result: {
11239
+ /** @enum {string} */
11240
+ status: "pending";
11241
+ };
11242
+ };
11243
+ };
11244
+ };
11245
+ /** Signup token expired or already claimed */
11246
+ 410: {
11247
+ content: {
11248
+ "application/json": {
11249
+ /** @example 4100 */
11250
+ code: number;
11251
+ message: string;
11252
+ };
11253
+ };
11254
+ };
11255
+ };
11256
+ };
10181
11257
  }
10182
11258
  interface external {
10183
11259
  }