@addresszen/openapi 3.5.2 → 3.7.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/openapi.ts CHANGED
@@ -8,7 +8,7 @@ export interface paths {
8
8
  /**
9
9
  * Returns the complete list of addresses for a postcode. Postcode searches are space and case insensitive.
10
10
  *
11
- * 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).
11
+ * 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/).
12
12
  *
13
13
  * ## Postcode Not Found
14
14
  *
@@ -153,13 +153,13 @@ export interface paths {
153
153
  *
154
154
  * ### Deciding on an Acceptable Confidence Score Threshold
155
155
  *
156
- * Different address cleanse projects can have radically different inputs. However, within each project, the inputs tend to repeat the same errors. For instance, some input datasets may be exclusively inputted manually and be prone to typos. Others may have a persistently missing datapoint such as organization name or postcode. For this reason, it is important to understand that there is no absolute Confidence Score threshold. Instead, the acceptable confidence score must be determined on a project by project basis based on systematic errors present in the data and business goals.
156
+ * Different address cleanse projects can have radically different inputs. However, within each project, the inputs tend to repeat the same errors. For instance, some input datasets may be exclusively inputted manually and be prone to typos. Others may have a persistently missing datapoint such as organisation name or postcode. For this reason, it is important to understand that there is no absolute Confidence Score threshold. Instead, the acceptable confidence score must be determined on a project by project basis based on systematic errors present in the data and business goals.
157
157
  *
158
158
  * When determining an acceptable Confidence Score threshold you should load a subset of the dataset into a spreadsheet application like Excel and sort on the score. Scrolling from top-to-bottom you will be able to observe matches from best to worst. As you start to hit the lower quality searches, you will be able to roughly determine:
159
159
  * - Which confidence scores indicate ambiguous matches (i.e. up to building level only)
160
160
  * - Which confidence scores indicate a poor or no match (i.e. the nearest matching address is too far from the input address)
161
161
  *
162
- * Depending on your business goals, you can also use the Match Levels to determine an acceptable match. For instance, do you need to match up to the thoroughfare or building name only? Are accurate organization names an important feature?
162
+ * Depending on your business goals, you can also use the Match Levels to determine an acceptable match. For instance, do you need to match up to the thoroughfare or building name only? Are accurate organisation names an important feature?
163
163
  */
164
164
  post: operations["AddressCleanse"];
165
165
  };
@@ -275,7 +275,7 @@ export interface paths {
275
275
  *
276
276
  * All filters can accept multiple terms unless stated otherwise below.
277
277
  *
278
- * Multiple filters can also be combined. E.g. Restrict results to small user organizations in the N postcode area: `su_organisation_indicator=Y&postcode_area=n`. Multiple filters are `AND`'ed, i.e. each additional filter narrows the result set.
278
+ * Multiple filters can also be combined. E.g. Restrict results to small user organisations in the N postcode area: `su_organisation_indicator=Y&postcode_area=n`. Multiple filters are `AND`'ed, i.e. each additional filter narrows the result set.
279
279
  *
280
280
  * A combined maximum of 5 terms are allowed across all filters.
281
281
  *
@@ -359,6 +359,10 @@ export interface paths {
359
359
  /** Cancels a licensee key. This renders a licensee unusable. This action can be reversed if you get in contact with us. */
360
360
  delete: operations["DeleteLicensee"];
361
361
  };
362
+ "/keys/{key}/licensees/{licensee}/regenerate-key": {
363
+ /** Regenerates the API key for a licensee. A new key is generated server-side and returned in the response. The previous key is invalidated immediately, so any integration using it must be updated to the new key. */
364
+ post: operations["RegenerateLicenseeKey"];
365
+ };
362
366
  "/keys/{key}/configs": {
363
367
  /** Lists configurations associated with a key */
364
368
  get: operations["ListConfigs"];
@@ -381,6 +385,24 @@ export interface paths {
381
385
  /** Query for and validate phone numbers. */
382
386
  get: operations["PhoneNumberValidation"];
383
387
  };
388
+ "/sign_up": {
389
+ /**
390
+ * 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.
391
+ *
392
+ * 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.
393
+ */
394
+ post: operations["SignUpMintToken"];
395
+ };
396
+ "/sign_up/{cli_token}": {
397
+ /**
398
+ * 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`.
399
+ *
400
+ * - `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.
401
+ * - `200 OK` — User and first API key exist. Credentials are returned exactly once; subsequent polls return `410 Gone`.
402
+ * - `410 Gone` — Token has expired (per the `cli_token_expires_at` set by Rails on the User record) or has already been claimed.
403
+ */
404
+ get: operations["SignUpClaim"];
405
+ };
384
406
  }
385
407
 
386
408
  export interface components {
@@ -389,6 +411,7 @@ export interface components {
389
411
  ecad: components["schemas"]["EcadAddress"];
390
412
  geonames: components["schemas"]["GeonamesPlace"];
391
413
  here: components["schemas"]["HereAddress"];
414
+ gilp: components["schemas"]["GilpGroundStability"];
392
415
  /**
393
416
  * ID
394
417
  * @description Global unique internally generated identifier for an address
@@ -424,7 +447,7 @@ export interface components {
424
447
  paf_language: string;
425
448
  /**
426
449
  * Line 1
427
- * @description First Address Line. Often contains premise and thoroughfare information. In the case of a commercial premise, the first line is always the full name of the registered organization. Never empty.
450
+ * @description First Address Line. Often contains premise and thoroughfare information. In the case of a commercial premise, the first line is always the full name of the registered organisation. Never empty.
428
451
  * @example Prime Minister & First Lord of Treasury
429
452
  */
430
453
  paf_line1: string;
@@ -564,13 +587,13 @@ export interface components {
564
587
  paf_pobox: string;
565
588
  /**
566
589
  * Department Name
567
- * @description Used to supplement Organization Name to identify a department within the organization.
590
+ * @description Used to supplement Organisation Name to identify a department within the organisation.
568
591
  * @example
569
592
  */
570
593
  paf_department_name: string;
571
594
  /**
572
- * Organization Name
573
- * @description Used to supplement Organization Name to identify a department within the organization
595
+ * Organisation Name
596
+ * @description Name of the business or organisation receiving mail at this delivery point
574
597
  * @example Prime Minister & First Lord Of The Treasury
575
598
  */
576
599
  paf_organisation_name: string;
@@ -583,8 +606,8 @@ export interface components {
583
606
  */
584
607
  paf_postcode_type: "S" | "L" | "";
585
608
  /**
586
- * Small User Organization Indicator
587
- * @description Small User Organization Indicator can have the values 'Y' or space. A value of 'Y' indicates that a Small User Organization is present at this address.
609
+ * Small User Organisation Indicator
610
+ * @description Small User Organisation Indicator can have the values 'Y' or space. A value of 'Y' indicates that a Small User Organisation is present at this address.
588
611
  * @example Y
589
612
  */
590
613
  paf_su_organisation_indicator: string;
@@ -1063,8 +1086,8 @@ export interface components {
1063
1086
  */
1064
1087
  po_box: string;
1065
1088
  /**
1066
- * Organization
1067
- * @description The organization name is the business name given, when appropriate, to an address record.
1089
+ * Organisation
1090
+ * @description The organisation name is the business name given, when appropriate, to an address record.
1068
1091
  */
1069
1092
  organisation: string;
1070
1093
  country: components["schemas"]["paf_country"];
@@ -1102,6 +1125,839 @@ export interface components {
1102
1125
  country?: "England" | "Scotland" | "Wales";
1103
1126
  native: components["schemas"]["AddressBaseCore"];
1104
1127
  };
1128
+ /**
1129
+ * AddressBase Premium
1130
+ * @description A flat, consolidated row from the `abp.addresses` materialised view of
1131
+ * Ordnance Survey's AddressBase Premium dataset.
1132
+ *
1133
+ * Each row joins the BLPU spine (one per UPRN) to the Royal Mail Delivery
1134
+ * Point Address (DPA), plus the current Classification and Organisation
1135
+ * records (where `end_date IS NULL`), the English-preferred LPI, its Street
1136
+ * and Street Descriptor, and pivoted Application Cross References.
1137
+ *
1138
+ * Cardinality is one row per Royal Mail delivery point (UDPRN) for postal
1139
+ * UPRNs; non-postal UPRNs (in BLPU but with no Royal Mail delivery point -
1140
+ * utility infrastructure, commercial-only sites, etc.) get a single row with
1141
+ * `udprn` and the DPA columns NULL. Fallbacks for non-postal UPRNs: `postcode`
1142
+ * falls back to BLPU's `postcode_locator`; `organisation_name` falls back to
1143
+ * the Organisation record's `organisation`. The unique key is the composite
1144
+ * `(uprn, udprn)`.
1145
+ *
1146
+ * Audit-date columns are prefixed with their source table name
1147
+ * (`blpu_*`, `dpa_*`, `lpi_*`, `street_*`, `sd_*`, etc.) to avoid clashes.
1148
+ *
1149
+ * @example {
1150
+ * "uprn": "49020496",
1151
+ * "parent_uprn": "49020495",
1152
+ * "logical_status": 1,
1153
+ * "blpu_state": "2",
1154
+ * "blpu_state_date": "2011-10-06T00:00:00.000Z",
1155
+ * "country": "W",
1156
+ * "latitude": 52.4121999,
1157
+ * "longitude": -4.0883772,
1158
+ * "x_coordinate": 258053.87,
1159
+ * "y_coordinate": 281405.95,
1160
+ * "rpc": 2,
1161
+ * "local_custodian_code": 6820,
1162
+ * "addressbase_postal": "D",
1163
+ * "postcode_locator": "SY23 1JT",
1164
+ * "multi_occ_count": 4,
1165
+ * "blpu_start_date": "2007-10-24T00:00:00.000Z",
1166
+ * "blpu_end_date": null,
1167
+ * "blpu_last_update_date": "2025-10-13T00:00:00.000Z",
1168
+ * "blpu_entry_date": "2006-11-24T00:00:00.000Z",
1169
+ * "udprn": "24255522",
1170
+ * "organisation_name": null,
1171
+ * "legal_name": null,
1172
+ * "department_name": null,
1173
+ * "sub_building_name": null,
1174
+ * "building_name": null,
1175
+ * "building_number": 1,
1176
+ * "dependent_thoroughfare": "CASTLE TERRACE",
1177
+ * "thoroughfare": "SOUTH ROAD",
1178
+ * "double_dependent_locality": null,
1179
+ * "dependent_locality": null,
1180
+ * "post_town": "ABERYSTWYTH",
1181
+ * "postcode": "SY23 1JT",
1182
+ * "postcode_type": "S",
1183
+ * "delivery_point_suffix": "1A",
1184
+ * "po_box_number": null,
1185
+ * "welsh_dependent_thoroughfare": "HEOL Y CASTELL",
1186
+ * "welsh_thoroughfare": "TAN Y CAE",
1187
+ * "welsh_double_dependent_locality": null,
1188
+ * "welsh_dependent_locality": null,
1189
+ * "welsh_post_town": "ABERYSTWYTH",
1190
+ * "dpa_process_date": "2016-01-18T00:00:00.000Z",
1191
+ * "dpa_start_date": "2012-04-23T00:00:00.000Z",
1192
+ * "dpa_end_date": null,
1193
+ * "dpa_last_update_date": "2016-02-10T00:00:00.000Z",
1194
+ * "dpa_entry_date": "2012-03-19T00:00:00.000Z",
1195
+ * "classification_code": "RD04",
1196
+ * "class_scheme": "AddressBase Premium Classification Scheme",
1197
+ * "scheme_version": 1,
1198
+ * "classification_start_date": "2007-10-24T00:00:00.000Z",
1199
+ * "classification_end_date": null,
1200
+ * "classification_last_update_date": "2018-09-23T00:00:00.000Z",
1201
+ * "classification_entry_date": "2006-11-24T00:00:00.000Z",
1202
+ * "organisation_start_date": null,
1203
+ * "organisation_end_date": null,
1204
+ * "organisation_last_update_date": null,
1205
+ * "organisation_entry_date": null,
1206
+ * "lpi_key": "6820L000054880",
1207
+ * "lpi_language": "CYM",
1208
+ * "lpi_logical_status": 1,
1209
+ * "lpi_start_date": "2007-10-24T00:00:00.000Z",
1210
+ * "lpi_end_date": null,
1211
+ * "lpi_last_update_date": "2025-09-26T00:00:00.000Z",
1212
+ * "lpi_entry_date": "2007-09-04T00:00:00.000Z",
1213
+ * "sao_start_number": null,
1214
+ * "sao_start_suffix": null,
1215
+ * "sao_end_number": null,
1216
+ * "sao_end_suffix": null,
1217
+ * "sao_text": null,
1218
+ * "pao_start_number": 1,
1219
+ * "pao_start_suffix": null,
1220
+ * "pao_end_number": null,
1221
+ * "pao_end_suffix": null,
1222
+ * "pao_text": "HEOL Y CASTELL",
1223
+ * "usrn": "47114724",
1224
+ * "usrn_match_indicator": "1",
1225
+ * "area_name": null,
1226
+ * "level": null,
1227
+ * "official_flag": "Y",
1228
+ * "street_record_type": 1,
1229
+ * "swa_org_ref_naming": 6820,
1230
+ * "street_state": "2",
1231
+ * "street_state_date": "1990-01-01T00:00:00.000Z",
1232
+ * "street_surface": "1",
1233
+ * "street_classification": null,
1234
+ * "street_start_date": "2007-10-24T00:00:00.000Z",
1235
+ * "street_last_update_date": "2022-01-14T00:00:00.000Z",
1236
+ * "street_record_entry_date": "1998-07-14T00:00:00.000Z",
1237
+ * "street_start_x": 257968,
1238
+ * "street_start_y": 281400,
1239
+ * "street_start_lat": 52.4121241,
1240
+ * "street_start_long": -4.0896363,
1241
+ * "street_end_x": 258266,
1242
+ * "street_end_y": 281393,
1243
+ * "street_end_lat": 52.4121386,
1244
+ * "street_end_long": -4.0852551,
1245
+ * "street_tolerance": 10,
1246
+ * "street_description": "SOUTH ROAD",
1247
+ * "street_locality": null,
1248
+ * "street_town": "ABERYSTWYTH",
1249
+ * "adminstrative_area": "CEREDIGION",
1250
+ * "sd_language": "ENG",
1251
+ * "sd_start_date": "2007-10-24T00:00:00.000Z",
1252
+ * "sd_end_date": null,
1253
+ * "sd_last_update_date": "2016-02-06T00:00:00.000Z",
1254
+ * "sd_entry_date": "1998-07-14T00:00:00.000Z",
1255
+ * "toid": "osgb1000020592167",
1256
+ * "toid_address": "osgb1000002175099422",
1257
+ * "toid_highways": "osgb5000005181786114",
1258
+ * "council_tax_ref": null,
1259
+ * "ndr_ref": null,
1260
+ * "ons_ward_code": "W05001302",
1261
+ * "ons_parish_code": "W04000359"
1262
+ * }
1263
+ */
1264
+ AddressBasePremium: {
1265
+ /**
1266
+ * Unique Property Reference Number
1267
+ * @description Unique Property Reference Number - a persistent identifier for a Basic
1268
+ * Land and Property Unit (BLPU). Up to 12 digits. Primary key for the
1269
+ * BLPU spine. Carried as a string to preserve precision (12-digit values
1270
+ * can exceed Number.MAX_SAFE_INTEGER).
1271
+ */
1272
+ uprn: string;
1273
+ /**
1274
+ * Parent UPRN
1275
+ * @description UPRN of the parent record where a parent-child relationship exists
1276
+ * (flats sharing a building entrance, sub-units of a parent property).
1277
+ */
1278
+ parent_uprn?: string | null;
1279
+ /**
1280
+ * Logical Status Code
1281
+ * @description Logical lifecycle status of the BLPU. `1` Approved, `6` Provisional,
1282
+ * `8` Historical. BLPU records do not take value `3` (alternative).
1283
+ */
1284
+ logical_status: number;
1285
+ /**
1286
+ * BLPU State Code
1287
+ * @description Physical state of the BLPU. `1` Under construction, `2` In use,
1288
+ * `3` Unoccupied / vacant / derelict, `4` No longer existing,
1289
+ * `6` Planning permission granted.
1290
+ */
1291
+ blpu_state?: string | null;
1292
+ /**
1293
+ * BLPU State Date
1294
+ * Format: date-time
1295
+ * @description Date the BLPU achieved its current state.
1296
+ */
1297
+ blpu_state_date?: string | null;
1298
+ /**
1299
+ * Country Code
1300
+ * @description Country containing the BLPU, determined by intersection with OS
1301
+ * Boundary-Line. `E` England, `W` Wales, `S` Scotland, `N` Northern
1302
+ * Ireland, `L` Channel Islands, `M` Isle of Man, `J` not assigned to a
1303
+ * country.
1304
+ */
1305
+ country: string;
1306
+ /**
1307
+ * Latitude (ETRS89)
1308
+ * Format: double
1309
+ * @description Latitude coordinate in the ETRS89 coordinate reference system.
1310
+ */
1311
+ latitude: number;
1312
+ /**
1313
+ * Longitude (ETRS89)
1314
+ * Format: double
1315
+ * @description Longitude coordinate in the ETRS89 coordinate reference system.
1316
+ */
1317
+ longitude: number;
1318
+ /**
1319
+ * Eastings (OSGB36 British National Grid)
1320
+ * Format: double
1321
+ * @description X location in metres on the OSGB36 British National Grid
1322
+ * (precision 8, scale 2).
1323
+ */
1324
+ x_coordinate: number;
1325
+ /**
1326
+ * Northings (OSGB36 British National Grid)
1327
+ * Format: double
1328
+ * @description Y location in metres on the OSGB36 British National Grid
1329
+ * (precision 9, scale 2).
1330
+ */
1331
+ y_coordinate: number;
1332
+ /**
1333
+ * Representative Point Code
1334
+ * @description Representative Point Code - reliability of the BLPU's coordinate, as
1335
+ * assessed by the local authority custodian. `1` Central internal,
1336
+ * `2` General internal, `3` Transitional, `4` Street location,
1337
+ * `5` Postcode unit, `9` Low accuracy.
1338
+ */
1339
+ rpc?: number | null;
1340
+ /**
1341
+ * Local Custodian Code
1342
+ * @description 4-digit identifier of the Local Authority responsible for maintaining
1343
+ * the record.
1344
+ */
1345
+ local_custodian_code: number;
1346
+ /**
1347
+ * AddressBase Postal Code
1348
+ * @description Whether the address can receive mail per AddressBase rules. `D` linked
1349
+ * to PAF, `N` not a postal address, `C` postal with a PAF-linked parent,
1350
+ * `L` postal based on Local Authority information.
1351
+ */
1352
+ addressbase_postal: string;
1353
+ /**
1354
+ * Postcode Locator
1355
+ * @description Royal Mail PAF postcode, locally assigned by the custodian, or
1356
+ * spatially derived where no PAF match exists. Up to 8 characters.
1357
+ */
1358
+ postcode_locator: string;
1359
+ /**
1360
+ * Multi-occupancy Count
1361
+ * @description Count of child UPRNs for this record where parent-child relationships
1362
+ * exist.
1363
+ */
1364
+ multi_occ_count: number;
1365
+ /**
1366
+ * BLPU Start Date
1367
+ * Format: date-time
1368
+ * @description Date the address record was inserted into the database.
1369
+ */
1370
+ blpu_start_date?: string | null;
1371
+ /**
1372
+ * BLPU End Date
1373
+ * Format: date-time
1374
+ * @description Date the address record was closed in the database.
1375
+ */
1376
+ blpu_end_date?: string | null;
1377
+ /**
1378
+ * BLPU Last Update Date
1379
+ * Format: date-time
1380
+ * @description Date of the most recent attribute change on the BLPU record.
1381
+ */
1382
+ blpu_last_update_date?: string | null;
1383
+ /**
1384
+ * BLPU Entry Date
1385
+ * Format: date-time
1386
+ * @description Date the record was inserted into the Local Authority database.
1387
+ */
1388
+ blpu_entry_date?: string | null;
1389
+ /**
1390
+ * Unique Delivery Point Reference Number
1391
+ * @description Royal Mail's Unique Delivery Point Reference Number - primary key for
1392
+ * the Delivery Point Address (DPA) record. Up to 8 digits. NULL for
1393
+ * non-postal UPRNs.
1394
+ */
1395
+ udprn?: string | null;
1396
+ /**
1397
+ * Organisation Name
1398
+ * @description Royal Mail-recognised organisation name from DPA, falling back to the
1399
+ * AddressBase Organisation record's `organisation` when DPA is absent.
1400
+ */
1401
+ organisation_name?: string | null;
1402
+ /**
1403
+ * Legal Name
1404
+ * @description Registered legal name from the AddressBase Organisation record.
1405
+ */
1406
+ legal_name?: string | null;
1407
+ /**
1408
+ * Department Name
1409
+ * @description Subdivision of an organisation that receives mail at a distinct
1410
+ * delivery point. Requires `organisation_name` to be present.
1411
+ */
1412
+ department_name?: string | null;
1413
+ /**
1414
+ * Sub-building Name
1415
+ * @description Property subdivision identifier (e.g. flat number). Requires
1416
+ * `building_name` or `building_number`.
1417
+ */
1418
+ sub_building_name?: string | null;
1419
+ /**
1420
+ * Building Name
1421
+ * @description Descriptive name applied to a single building or small group of
1422
+ * buildings.
1423
+ */
1424
+ building_name?: string | null;
1425
+ /**
1426
+ * Building Number
1427
+ * @description Numeric identifier for a single building or small group of buildings.
1428
+ * Complex number formats (e.g. "12A") go in `building_name` or
1429
+ * `sub_building_name`.
1430
+ */
1431
+ building_number?: number | null;
1432
+ /**
1433
+ * Dependent Thoroughfare
1434
+ * @description Named thoroughfare within another named thoroughfare. Requires
1435
+ * `thoroughfare` to be present.
1436
+ */
1437
+ dependent_thoroughfare?: string | null;
1438
+ /**
1439
+ * Thoroughfare
1440
+ * @description Road, track or named access route with Royal Mail delivery points.
1441
+ */
1442
+ thoroughfare?: string | null;
1443
+ /**
1444
+ * Double Dependent Locality
1445
+ * @description Estate or area name used to distinguish similar thoroughfares within a
1446
+ * dependent locality. Requires `dependent_locality`.
1447
+ */
1448
+ double_dependent_locality?: string | null;
1449
+ /**
1450
+ * Dependent Locality
1451
+ * @description Subdivision of a post town to differentiate same-name thoroughfares.
1452
+ */
1453
+ dependent_locality?: string | null;
1454
+ /**
1455
+ * Post Town
1456
+ * @description Town or city of the Royal Mail sorting office serving this record.
1457
+ * Uppercased. NULL for non-postal UPRNs (no Royal Mail delivery point).
1458
+ */
1459
+ post_town?: string | null;
1460
+ /**
1461
+ * Postcode
1462
+ * @description Royal Mail postcode from DPA, falling back to BLPU's `postcode_locator`
1463
+ * when no Royal Mail delivery point exists. Uppercased, with single space
1464
+ * between outward and inward portions.
1465
+ */
1466
+ postcode: string;
1467
+ /**
1468
+ * Postcode Type Code
1469
+ * @description Royal Mail postal-user category. `S` Small user (e.g. a residential
1470
+ * property), `L` Large user (e.g. a large commercial company).
1471
+ */
1472
+ postcode_type?: string | null;
1473
+ /**
1474
+ * Delivery Point Suffix
1475
+ * @description Two-character code uniquely identifying an individual delivery point
1476
+ * within a postcode (Royal Mail DPS).
1477
+ */
1478
+ delivery_point_suffix?: string | null;
1479
+ /**
1480
+ * PO Box Number
1481
+ * @description Post Office Box number.
1482
+ */
1483
+ po_box_number?: string | null;
1484
+ /**
1485
+ * Welsh Dependent Thoroughfare
1486
+ * @description Welsh translation of `dependent_thoroughfare`. Requires `welsh_thoroughfare`.
1487
+ */
1488
+ welsh_dependent_thoroughfare?: string | null;
1489
+ /**
1490
+ * Welsh Thoroughfare
1491
+ * @description Welsh translation of `thoroughfare`.
1492
+ */
1493
+ welsh_thoroughfare?: string | null;
1494
+ /**
1495
+ * Welsh Double Dependent Locality
1496
+ * @description Welsh translation of `double_dependent_locality`. Requires `welsh_dependent_locality`.
1497
+ */
1498
+ welsh_double_dependent_locality?: string | null;
1499
+ /**
1500
+ * Welsh Dependent Locality
1501
+ * @description Welsh translation of `dependent_locality`.
1502
+ */
1503
+ welsh_dependent_locality?: string | null;
1504
+ /**
1505
+ * Welsh Post Town
1506
+ * @description Welsh translation of `post_town`.
1507
+ */
1508
+ welsh_post_town?: string | null;
1509
+ /**
1510
+ * DPA Process Date
1511
+ * Format: date-time
1512
+ * @description Date the PAF record was processed into the database.
1513
+ */
1514
+ dpa_process_date?: string | null;
1515
+ /**
1516
+ * DPA Start Date
1517
+ * Format: date-time
1518
+ * @description Date the address record was matched to the Delivery Point Address.
1519
+ */
1520
+ dpa_start_date?: string | null;
1521
+ /**
1522
+ * DPA End Date
1523
+ * Format: date-time
1524
+ * @description Date the PAF record no longer existed in the database.
1525
+ */
1526
+ dpa_end_date?: string | null;
1527
+ /**
1528
+ * DPA Last Update Date
1529
+ * Format: date-time
1530
+ * @description Date any attribute on the DPA record was last changed.
1531
+ */
1532
+ dpa_last_update_date?: string | null;
1533
+ /**
1534
+ * DPA Entry Date
1535
+ * Format: date-time
1536
+ * @description Date the PAF record was first loaded by GeoPlace.
1537
+ */
1538
+ dpa_entry_date?: string | null;
1539
+ /**
1540
+ * Classification Code
1541
+ * @description Current AddressBase classification code (e.g. `RD` residential,
1542
+ * `CR` commercial retail). Top-level categories: `R` Residential,
1543
+ * `C` Commercial, `L` Land, `M` Military, `O` Other, `P` Parent shell,
1544
+ * `U` Unclassified, `X` Dual use, `Z` Object of interest. NULL when no
1545
+ * current classification row exists for the UPRN.
1546
+ */
1547
+ classification_code?: string | null;
1548
+ /**
1549
+ * Classification Scheme
1550
+ * @description Name of the classification scheme applied to this record.
1551
+ */
1552
+ class_scheme?: string | null;
1553
+ /**
1554
+ * Classification Scheme Version
1555
+ * @description Version number of the classification scheme in use (e.g. `1.0`).
1556
+ */
1557
+ scheme_version?: number | null;
1558
+ /**
1559
+ * Classification Start Date
1560
+ * Format: date-time
1561
+ * @description Date the classification record was first loaded into the database.
1562
+ */
1563
+ classification_start_date?: string | null;
1564
+ /**
1565
+ * Classification End Date
1566
+ * Format: date-time
1567
+ * @description Date the classification record ceased to exist.
1568
+ */
1569
+ classification_end_date?: string | null;
1570
+ /**
1571
+ * Classification Last Update Date
1572
+ * Format: date-time
1573
+ * @description Date of the most recent attribute change on the classification record.
1574
+ */
1575
+ classification_last_update_date?: string | null;
1576
+ /**
1577
+ * Classification Entry Date
1578
+ * Format: date-time
1579
+ * @description Date the associated address record was inserted into the Local
1580
+ * Authority database.
1581
+ */
1582
+ classification_entry_date?: string | null;
1583
+ /**
1584
+ * Organisation Start Date
1585
+ * Format: date-time
1586
+ * @description Date the organisation record was initially loaded into the database.
1587
+ */
1588
+ organisation_start_date?: string | null;
1589
+ /**
1590
+ * Organisation End Date
1591
+ * Format: date-time
1592
+ * @description Date the organisation record ceased to exist.
1593
+ */
1594
+ organisation_end_date?: string | null;
1595
+ /**
1596
+ * Organisation Last Update Date
1597
+ * Format: date-time
1598
+ * @description Date of the most recent attribute change on the organisation record.
1599
+ */
1600
+ organisation_last_update_date?: string | null;
1601
+ /**
1602
+ * Organisation Entry Date
1603
+ * Format: date-time
1604
+ * @description Date the UPRN was entered into the Local Authority database.
1605
+ */
1606
+ organisation_entry_date?: string | null;
1607
+ /**
1608
+ * LPI Key
1609
+ * @description Unique identifier and primary key for the LPI record.
1610
+ */
1611
+ lpi_key?: string | null;
1612
+ /**
1613
+ * LPI Language Code
1614
+ * @description Language used for this LPI record. `ENG` English, `CYM` Welsh,
1615
+ * `GAE` Gaelic (Scottish), `BIL` Bilingual.
1616
+ */
1617
+ lpi_language?: string | null;
1618
+ /**
1619
+ * LPI Logical Status Code
1620
+ * @description Logical status of the LPI record. `1` Approved, `3` Alternative,
1621
+ * `6` Provisional, `8` Historical.
1622
+ */
1623
+ lpi_logical_status?: number | null;
1624
+ /**
1625
+ * LPI Start Date
1626
+ * Format: date-time
1627
+ * @description Date the LPI was first loaded into the database.
1628
+ */
1629
+ lpi_start_date?: string | null;
1630
+ /**
1631
+ * LPI End Date
1632
+ * Format: date-time
1633
+ * @description Date the LPI record ceased to exist.
1634
+ */
1635
+ lpi_end_date?: string | null;
1636
+ /**
1637
+ * LPI Last Update Date
1638
+ * Format: date-time
1639
+ * @description Date of the most recent attribute change on the LPI record.
1640
+ */
1641
+ lpi_last_update_date?: string | null;
1642
+ /**
1643
+ * LPI Entry Date
1644
+ * Format: date-time
1645
+ * @description Date the LPI record was inserted into the Local Authority database.
1646
+ */
1647
+ lpi_entry_date?: string | null;
1648
+ /**
1649
+ * SAO Start Number
1650
+ * @description Number of the Secondary Addressable Object, or range start. Requires
1651
+ * `pao_start_number` or `pao_text` to be present.
1652
+ */
1653
+ sao_start_number?: number | null;
1654
+ /**
1655
+ * SAO Start Suffix
1656
+ * @description Suffix appended to `sao_start_number`. Requires `sao_start_number`.
1657
+ */
1658
+ sao_start_suffix?: string | null;
1659
+ /**
1660
+ * SAO End Number
1661
+ * @description End number of the SAO range. Requires `sao_start_number`.
1662
+ */
1663
+ sao_end_number?: number | null;
1664
+ /**
1665
+ * SAO End Suffix
1666
+ * @description Suffix appended to `sao_end_number`. Requires `sao_end_number`.
1667
+ */
1668
+ sao_end_suffix?: string | null;
1669
+ /**
1670
+ * SAO Text
1671
+ * @description Building name or description for the Secondary Addressable Object
1672
+ * (e.g. "FLAT 1", "UNIT B"). Requires `pao_start_number` or `pao_text`.
1673
+ */
1674
+ sao_text?: string | null;
1675
+ /**
1676
+ * PAO Start Number
1677
+ * @description Number of the Primary Addressable Object, or range start. Mandatory if
1678
+ * `pao_text` is absent.
1679
+ */
1680
+ pao_start_number?: number | null;
1681
+ /**
1682
+ * PAO Start Suffix
1683
+ * @description Suffix appended to `pao_start_number`. Requires `pao_start_number`.
1684
+ */
1685
+ pao_start_suffix?: string | null;
1686
+ /**
1687
+ * PAO End Number
1688
+ * @description End number of the PAO range. Requires `pao_start_number`.
1689
+ */
1690
+ pao_end_number?: number | null;
1691
+ /**
1692
+ * PAO End Suffix
1693
+ * @description Suffix appended to `pao_end_number`. Requires `pao_end_number`.
1694
+ */
1695
+ pao_end_suffix?: string | null;
1696
+ /**
1697
+ * PAO Text
1698
+ * @description Building name or description for the Primary Addressable Object.
1699
+ * Mandatory if `pao_start_number` is absent.
1700
+ */
1701
+ pao_text?: string | null;
1702
+ /**
1703
+ * Unique Street Reference Number
1704
+ * @description Unique Street Reference Number linking this LPI to its Street record.
1705
+ * Up to 8 digits.
1706
+ */
1707
+ usrn?: string | null;
1708
+ /**
1709
+ * USRN Match Indicator Code
1710
+ * @description Confidence of the LPI to Street linkage. `1` Matched manually to the
1711
+ * nearest accessible Street, `2` Matched spatially to the nearest USRN.
1712
+ */
1713
+ usrn_match_indicator?: string | null;
1714
+ /**
1715
+ * Area Name
1716
+ * @description Third-level geographic area name such as island or property group.
1717
+ */
1718
+ area_name?: string | null;
1719
+ /**
1720
+ * Level
1721
+ * @description Vertical position of the property (e.g. "GROUND FLOOR").
1722
+ */
1723
+ level?: string | null;
1724
+ /**
1725
+ * Official Flag Code
1726
+ * @description Whether the LPI corresponds to an entry in the official Street Name and
1727
+ * Numbering register. `Y` Official address, `N` Unofficial address.
1728
+ */
1729
+ official_flag?: string | null;
1730
+ /**
1731
+ * Street Record Type Code
1732
+ * @description Description of the street record type. `1` Official designated Street
1733
+ * Name, `2` Street Description, `3` Numbered Street, `4` Unofficial
1734
+ * Street Description, `9` Description used for LLPG Access.
1735
+ */
1736
+ street_record_type?: number | null;
1737
+ /**
1738
+ * SWA Org Ref (Naming)
1739
+ * @description Code identifying the Street Naming and Numbering Authority or Local
1740
+ * Highway Authority (DfT-allocated).
1741
+ */
1742
+ swa_org_ref_naming?: number | null;
1743
+ /**
1744
+ * Street State Code
1745
+ * @description Current state of the street. `1` Under construction, `2` Open,
1746
+ * `4` Permanently closed.
1747
+ */
1748
+ street_state?: string | null;
1749
+ /**
1750
+ * Street State Date
1751
+ * Format: date-time
1752
+ * @description Date when the street achieved its current state.
1753
+ */
1754
+ street_state_date?: string | null;
1755
+ /**
1756
+ * Street Surface Code
1757
+ * @description Surface finish of the street. `1` Metalled, `2` Unmetalled, `3` Mixed.
1758
+ */
1759
+ street_surface?: string | null;
1760
+ /**
1761
+ * Street Classification Code
1762
+ * @description Primary classification of the street record. `4` Pedestrian way or
1763
+ * footpath, `6` Cycletrack or cycleway, `8` All vehicles, `9` Restricted
1764
+ * byway, `10` Bridleway.
1765
+ */
1766
+ street_classification?: string | null;
1767
+ /**
1768
+ * Street Start Date
1769
+ * Format: date-time
1770
+ * @description Date this street record or version was inserted into the database.
1771
+ */
1772
+ street_start_date?: string | null;
1773
+ /**
1774
+ * Street Last Update Date
1775
+ * Format: date-time
1776
+ * @description Date when any attribute of the street record was last changed.
1777
+ */
1778
+ street_last_update_date?: string | null;
1779
+ /**
1780
+ * Street Record Entry Date
1781
+ * Format: date-time
1782
+ * @description Date the street record was entered into the Local Authority database.
1783
+ */
1784
+ street_record_entry_date?: string | null;
1785
+ /**
1786
+ * Street Start Eastings
1787
+ * Format: double
1788
+ * @description X coordinate (BNG) for the street start point.
1789
+ */
1790
+ street_start_x?: number | null;
1791
+ /**
1792
+ * Street Start Northings
1793
+ * Format: double
1794
+ * @description Y coordinate (BNG) for the street start point.
1795
+ */
1796
+ street_start_y?: number | null;
1797
+ /**
1798
+ * Street Start Latitude
1799
+ * Format: double
1800
+ * @description Latitude (ETRS89) for the street start point.
1801
+ */
1802
+ street_start_lat?: number | null;
1803
+ /**
1804
+ * Street Start Longitude
1805
+ * Format: double
1806
+ * @description Longitude (ETRS89) for the street start point.
1807
+ */
1808
+ street_start_long?: number | null;
1809
+ /**
1810
+ * Street End Eastings
1811
+ * Format: double
1812
+ * @description X coordinate (BNG) for the street end point.
1813
+ */
1814
+ street_end_x?: number | null;
1815
+ /**
1816
+ * Street End Northings
1817
+ * Format: double
1818
+ * @description Y coordinate (BNG) for the street end point.
1819
+ */
1820
+ street_end_y?: number | null;
1821
+ /**
1822
+ * Street End Latitude
1823
+ * Format: double
1824
+ * @description Latitude (ETRS89) for the street end point.
1825
+ */
1826
+ street_end_lat?: number | null;
1827
+ /**
1828
+ * Street End Longitude
1829
+ * Format: double
1830
+ * @description Longitude (ETRS89) for the street end point.
1831
+ */
1832
+ street_end_long?: number | null;
1833
+ /**
1834
+ * Street Tolerance
1835
+ * @description Accuracy of street-coordinate data capture, in metres.
1836
+ */
1837
+ street_tolerance?: number | null;
1838
+ /**
1839
+ * Street Description
1840
+ * @description Street name, description or street number.
1841
+ */
1842
+ street_description?: string | null;
1843
+ /**
1844
+ * Street Locality
1845
+ * @description Geographical area within a town.
1846
+ */
1847
+ street_locality?: string | null;
1848
+ /**
1849
+ * Street Town
1850
+ * @description Name of the town. Required for Street Record Types `1` and `2`;
1851
+ * optional for types `3`, `4` and `9`.
1852
+ */
1853
+ street_town?: string | null;
1854
+ /**
1855
+ * Administrative Area
1856
+ * @description Local Highway Authority name (administrative area / county / unitary
1857
+ * authority). Field name spelling preserved verbatim from OS
1858
+ * (`ADMINSTRATIVE_AREA`).
1859
+ */
1860
+ adminstrative_area?: string | null;
1861
+ /**
1862
+ * Street Descriptor Language Code
1863
+ * @description Language of the street descriptor. `ENG` English, `CYM` Welsh,
1864
+ * `GAE` Gaelic (Scottish), `BIL` Bilingual.
1865
+ */
1866
+ sd_language?: string | null;
1867
+ /**
1868
+ * Street Descriptor Start Date
1869
+ * Format: date-time
1870
+ * @description Date the street descriptor record was first created in the database.
1871
+ */
1872
+ sd_start_date?: string | null;
1873
+ /**
1874
+ * Street Descriptor End Date
1875
+ * Format: date-time
1876
+ * @description Date the street descriptor record ceased to exist.
1877
+ */
1878
+ sd_end_date?: string | null;
1879
+ /**
1880
+ * Street Descriptor Last Update Date
1881
+ * Format: date-time
1882
+ * @description Date of the most recent attribute change on the street descriptor record.
1883
+ */
1884
+ sd_last_update_date?: string | null;
1885
+ /**
1886
+ * Street Descriptor Entry Date
1887
+ * Format: date-time
1888
+ * @description Date the street descriptor record was entered into the Local Authority
1889
+ * database.
1890
+ */
1891
+ sd_entry_date?: string | null;
1892
+ /**
1893
+ * TOID (Topography)
1894
+ * @description OS MasterMap Topography Layer TOID (cross-reference source `7666MT`)
1895
+ * linked to the UPRN.
1896
+ */
1897
+ toid?: string | null;
1898
+ /**
1899
+ * TOID (Address Layer)
1900
+ * @description OS MasterMap Address Layer 2 TOID (cross-reference source `7666MA`)
1901
+ * linked to the UPRN.
1902
+ */
1903
+ toid_address?: string | null;
1904
+ /**
1905
+ * TOID (Highways)
1906
+ * @description OS MasterMap Highways TOID (cross-reference source `7666MI`) linked to
1907
+ * the UPRN.
1908
+ */
1909
+ toid_highways?: string | null;
1910
+ /**
1911
+ * Council Tax Reference
1912
+ * @description Centrally created Valuation Office Agency council tax reference
1913
+ * (cross-reference source `7666VC`) linked to the UPRN.
1914
+ */
1915
+ council_tax_ref?: string | null;
1916
+ /**
1917
+ * Non-Domestic Rates Reference
1918
+ * @description Centrally created Valuation Office Agency non-domestic rates reference
1919
+ * (cross-reference source `7666VN`) linked to the UPRN.
1920
+ */
1921
+ ndr_ref?: string | null;
1922
+ /**
1923
+ * ONS Ward Code
1924
+ * @description Office for National Statistics ward code (cross-reference source
1925
+ * `7666OW`) linked to the UPRN.
1926
+ */
1927
+ ons_ward_code?: string | null;
1928
+ /**
1929
+ * ONS Parish Code
1930
+ * @description Office for National Statistics parish code (cross-reference source
1931
+ * `7666OP`) linked to the UPRN.
1932
+ */
1933
+ ons_parish_code?: string | null;
1934
+ };
1935
+ /**
1936
+ * AddressBase Premium
1937
+ * @description Address from Ordnance Survey AddressBase Premium dataset.
1938
+ *
1939
+ * Please contact us to have this enabled on your account.
1940
+ *
1941
+ * All AddressBase Premium addresses have a UPRN and a rooftop geolocation available however they may not have a UDPRN.
1942
+ */
1943
+ AbpAddress: components["schemas"]["PafBase"] & {
1944
+ /** @enum {undefined} */
1945
+ country_iso?: "GBR";
1946
+ /** @enum {string} */
1947
+ dataset?: "abp";
1948
+ /** @enum {undefined} */
1949
+ country_iso_2?: "GB";
1950
+ /** @enum {undefined} */
1951
+ language?: "en";
1952
+ /**
1953
+ * Postcode Type
1954
+ * @enum {string}
1955
+ */
1956
+ postcode_type?: "";
1957
+ /** @enum {undefined} */
1958
+ country?: "England" | "Scotland" | "Wales" | "Northern Ireland";
1959
+ native: components["schemas"]["AddressBasePremium"];
1960
+ };
1105
1961
  /**
1106
1962
  * Dataset
1107
1963
  * @description Indicates the provenance of an address.
@@ -1113,6 +1969,7 @@ export interface components {
1113
1969
  * - `pafa` (GBR) Alias File
1114
1970
  * - `pafw` (GBR) Welsh File
1115
1971
  * - `ab` (GBR) AddressBase Core
1972
+ * - `abp` (GBR) AddressBase Premium
1116
1973
  * - `ecaf` (IRL) Eircode ECAF
1117
1974
  * - `ecad` (IRL) Eircode ECAD
1118
1975
  * - `herewe` (Western Europe) Western Europe Dataset
@@ -1135,6 +1992,7 @@ export interface components {
1135
1992
  * - `mois` (KOR) South Korea Dataset
1136
1993
  * - `upujp` (JPN) Japan UPU Address File
1137
1994
  * - `bev` (AUT) Austria Dataset
1995
+ * - `ban` (FRA) France BAN Dataset
1138
1996
  * @enum {string}
1139
1997
  */
1140
1998
  Dataset:
@@ -1147,6 +2005,7 @@ export interface components {
1147
2005
  | "ecaf"
1148
2006
  | "ecad"
1149
2007
  | "ab"
2008
+ | "abp"
1150
2009
  | "herewe"
1151
2010
  | "heret"
1152
2011
  | "heresa"
@@ -1167,7 +2026,8 @@ export interface components {
1167
2026
  | "fodbosa"
1168
2027
  | "mois"
1169
2028
  | "upujp"
1170
- | "bev";
2029
+ | "bev"
2030
+ | "ban";
1171
2031
  /**
1172
2032
  * ISO Country Code (3)
1173
2033
  * @description 3 letter country code (ISO 3166-1)
@@ -1234,7 +2094,6 @@ export interface components {
1234
2094
  | "HUN"
1235
2095
  | "KAZ"
1236
2096
  | "KGZ"
1237
- | "KOS"
1238
2097
  | "LTU"
1239
2098
  | "LVA"
1240
2099
  | "MDA"
@@ -1249,6 +2108,7 @@ export interface components {
1249
2108
  | "TUR"
1250
2109
  | "UKR"
1251
2110
  | "UZB"
2111
+ | "XKX"
1252
2112
  | "HKG"
1253
2113
  | "BGD"
1254
2114
  | "IND"
@@ -1976,12 +2836,12 @@ export interface components {
1976
2836
  /** @description Address Line 9 */
1977
2837
  line_9: string;
1978
2838
  /**
1979
- * @description The department or division within an organization. If the department element exists, then the organization must also exist.
2839
+ * @description The department or division within an organisation. If the department element exists, then the organisation must also exist.
1980
2840
  * @example Accounts Department
1981
2841
  */
1982
2842
  department: string;
1983
2843
  /**
1984
- * @description Organization name
2844
+ * @description Organisation name
1985
2845
  * @example Oak Tree Limited
1986
2846
  */
1987
2847
  organisation: string;
@@ -2087,7 +2947,7 @@ export interface components {
2087
2947
  */
2088
2948
  ecad_id?: string;
2089
2949
  /**
2090
- * @description Organization ID
2950
+ * @description Organisation ID
2091
2951
  * @example 10098783
2092
2952
  */
2093
2953
  organisation_id?: string;
@@ -2141,7 +3001,7 @@ export interface components {
2141
3001
  * @description Post County ID
2142
3002
  * @example 10098783
2143
3003
  */
2144
- post_county_id?: string;
3004
+ post_county_id?: string | null;
2145
3005
  /**
2146
3006
  * @description NUA means "non-unique address".
2147
3007
  *
@@ -2164,7 +3024,7 @@ export interface components {
2164
3024
  * @description Addresses points can assume one of the following values:
2165
3025
  *
2166
3026
  * - Residential Address Point. This type of address point has one residential addresses associated with it.
2167
- * - Non-Residential Address Point. This type of address point has one or more non-residential address (business, club or other organization) associated with it.
3027
+ * - Non-Residential Address Point. This type of address point has one or more non-residential address (business, club or other organisation) associated with it.
2168
3028
  * - Mixed Address Point. This is a special case where the residential and non residential addresses in the building are essentially the same address. The typical example is a farm house on an active farm. It is important to note that this is a special case. In general a building with both residential and non-residential addresses (e.g. an apartment over a shop) will receive two address points, one commercial and one residential, and hence two Eircodes.
2169
3029
  *
2170
3030
  * Buildings can contain multiple address points of type Residential and/or Non-Residential.
@@ -2175,8 +3035,8 @@ export interface components {
2175
3035
  *
2176
3036
  * - Single Occupancy Residential Building. This type of building contains one residential address.
2177
3037
  * - Multi Occupancy Residential Building. This type of building contains multiple residential addresses.
2178
- * - Single Occupancy Non-Residential Building. This type of building contains one non-residential address (business, club or other organization).
2179
- * - Multi Occupancy Non-Residential Building. This type of building contains multiple non-residential addresses (business, club or other organization).
3038
+ * - Single Occupancy Non-Residential Building. This type of building contains one non-residential address (business, club or other organisation).
3039
+ * - Multi Occupancy Non-Residential Building. This type of building contains multiple non-residential addresses (business, club or other organisation).
2180
3040
  * - Multi Occupancy Mixed Use Building. This type of building contains multiple residential and non- residential addresses.
2181
3041
  *
2182
3042
  * Buildings can also have a more specific address types such as a Hospital, School, Shopping Centre, etc.
@@ -2186,7 +3046,7 @@ export interface components {
2186
3046
  * @description The building group type can be:
2187
3047
  *
2188
3048
  * - Residential Building Group. This type of building group contains buildings with residential addresses only.
2189
- * - Non-Residential Building Group This type of building group contains buildings with non-residential addresses (business, club or other organization) only.
3049
+ * - Non-Residential Building Group This type of building group contains buildings with non-residential addresses (business, club or other organisation) only.
2190
3050
  * - Mixed Building Group. This type of building group contains buildings with residential and non-residential addresses. Can also have a more specific address type such as a Hospital, School, Shopping Centre, etc.
2191
3051
  *
2192
3052
  * Building groups can also have a more specific address type such as a Hospital, School, Shopping Centre, etc.
@@ -2256,7 +3116,7 @@ export interface components {
2256
3116
  */
2257
3117
  vacant?: "Y" | "N" | "";
2258
3118
  /**
2259
- * @description A Yes/No field, indicating whether the organization is vacant.
3119
+ * @description A Yes/No field, indicating whether the organisation is vacant.
2260
3120
  * @enum {undefined}
2261
3121
  */
2262
3122
  org_vacant?: "Y" | "N" | "";
@@ -3531,7 +4391,7 @@ export interface components {
3531
4391
  */
3532
4392
  soknenavn: string;
3533
4393
  /**
3534
- * @description Unique identifier of organization in the Brønnøysund Register.
4394
+ * @description Unique identifier of organisation in the Brønnøysund Register.
3535
4395
  *
3536
4396
  * Can be empty string `""` if not present.
3537
4397
  */
@@ -4977,127 +5837,127 @@ export interface components {
4977
5837
  longitude: components["schemas"]["Longitude"];
4978
5838
  latitude: components["schemas"]["Latitude"];
4979
5839
  /**
4980
- * @description The unique identifier of an organization.
5840
+ * @description The unique identifier of an organisation.
4981
5841
  *
4982
5842
  * Can be empty string `""` if not present.
4983
5843
  */
4984
5844
  org_id: string;
4985
5845
  /**
4986
- * @description Indicates the type of organization.
5846
+ * @description Indicates the type of organisation.
4987
5847
  *
4988
5848
  * Can be empty string `""` if not present.
4989
5849
  */
4990
5850
  org_type_ind: string | number;
4991
5851
  /**
4992
- * @description Indicates the sub-type of the organization.
5852
+ * @description Indicates the sub-type of the organisation.
4993
5853
  *
4994
5854
  * Can be empty string `""` if not present.
4995
5855
  */
4996
5856
  org_sub_type_ind: string | number;
4997
5857
  /**
4998
- * @description Locality identifier for the organization.
5858
+ * @description Locality identifier for the organisation.
4999
5859
  *
5000
5860
  * Can be empty string `""` if not present.
5001
5861
  */
5002
5862
  org_loc_id: string;
5003
5863
  /**
5004
- * @description District identifier for the organization.
5864
+ * @description District identifier for the organisation.
5005
5865
  *
5006
5866
  * Can be empty string `""` if not present.
5007
5867
  */
5008
5868
  org_dis_id: string;
5009
5869
  /**
5010
- * @description Neighborhood identifier for the organization.
5870
+ * @description Neighbourhood identifier for the organisation.
5011
5871
  *
5012
5872
  * Can be empty string `""` if not present.
5013
5873
  */
5014
5874
  org_nei_id: string;
5015
5875
  /**
5016
- * @description Associated organization identifier for the organization.
5876
+ * @description Associated organisation identifier for the organisation.
5017
5877
  *
5018
5878
  * Can be empty string `""` if not present.
5019
5879
  */
5020
5880
  org_org_id: string;
5021
5881
  /**
5022
- * @description Name of the organization.
5882
+ * @description Name of the organisation.
5023
5883
  *
5024
5884
  * Can be empty string `""` if not present.
5025
5885
  */
5026
5886
  org_name: string;
5027
5887
  /**
5028
- * @description Translated name of the organization in Latin script.
5888
+ * @description Translated name of the organisation in Latin script.
5029
5889
  *
5030
5890
  * Can be empty string `""` if not present.
5031
5891
  */
5032
5892
  org_name_trans: string;
5033
5893
  /**
5034
- * @description Suffix of the locality for the organization.
5894
+ * @description Suffix of the locality for the organisation.
5035
5895
  *
5036
5896
  * Can be empty string `""` if not present.
5037
5897
  */
5038
5898
  org_loc_sfx: string;
5039
5899
  /**
5040
- * @description Translated suffix of the locality for the organization in Latin script.
5900
+ * @description Translated suffix of the locality for the organisation in Latin script.
5041
5901
  *
5042
5902
  * Can be empty string `""` if not present.
5043
5903
  */
5044
5904
  org_loc_sfx_trans: string;
5045
5905
  /**
5046
- * @description Address of the organization.
5906
+ * @description Address of the organisation.
5047
5907
  *
5048
5908
  * Can be empty string `""` if not present.
5049
5909
  */
5050
5910
  org_adr: string;
5051
5911
  /**
5052
- * @description Translated address of the organization in Latin script.
5912
+ * @description Translated address of the organisation in Latin script.
5053
5913
  *
5054
5914
  * Can be empty string `""` if not present.
5055
5915
  */
5056
5916
  org_adr_trans: string;
5057
5917
  /**
5058
- * @description Indicates whether the organization has a post office box.
5918
+ * @description Indicates whether the organisation has a post office box.
5059
5919
  *
5060
5920
  * Can be empty string `""` if not present.
5061
5921
  */
5062
5922
  org_po_ind: string | number;
5063
5923
  /**
5064
- * @description Post office box number or start of the post office box range associated with the organization.
5924
+ * @description Post office box number or start of the post office box range associated with the organisation.
5065
5925
  *
5066
5926
  * Can be empty string `""` if not present.
5067
5927
  */
5068
5928
  org_po_start: string;
5069
5929
  /**
5070
- * @description End of the post office box range associated with the organization.
5930
+ * @description End of the post office box range associated with the organisation.
5071
5931
  *
5072
5932
  * Can be empty string `""` if not present.
5073
5933
  */
5074
5934
  org_po_end: string;
5075
5935
  /**
5076
- * @description Additional information about the organization.
5936
+ * @description Additional information about the organisation.
5077
5937
  *
5078
5938
  * Can be empty string `""` if not present.
5079
5939
  */
5080
5940
  org_dsc: string;
5081
5941
  /**
5082
- * @description Translated additional information about the organization in Latin script.
5942
+ * @description Translated additional information about the organisation in Latin script.
5083
5943
  *
5084
5944
  * Can be empty string `""` if not present.
5085
5945
  */
5086
5946
  org_dsc_trans: string;
5087
5947
  /**
5088
- * @description Postal code for the organization.
5948
+ * @description Postal code for the organisation.
5089
5949
  *
5090
5950
  * Can be empty string `""` if not present.
5091
5951
  */
5092
5952
  org_pcode: string;
5093
5953
  /**
5094
- * @description Final postal code for the organization.
5954
+ * @description Final postal code for the organisation.
5095
5955
  *
5096
5956
  * Can be empty string `""` if not present.
5097
5957
  */
5098
5958
  org_pcode_fin: string;
5099
5959
  /**
5100
- * @description Script used for the organization name.
5960
+ * @description Script used for the organisation name.
5101
5961
  *
5102
5962
  * `Hani` = Kanji, `Hira` = Hiragana, `Latn` = Latin.
5103
5963
  *
@@ -5105,7 +5965,7 @@ export interface components {
5105
5965
  */
5106
5966
  org_script: string;
5107
5967
  /**
5108
- * @description Language used for the organization name.
5968
+ * @description Language used for the organisation name.
5109
5969
  *
5110
5970
  * Can be empty string `""` if not present.
5111
5971
  */
@@ -5141,7 +6001,7 @@ export interface components {
5141
6001
  */
5142
6002
  str_nei_id: string;
5143
6003
  /**
5144
- * @description Associated organization identifier for the street.
6004
+ * @description Associated organisation identifier for the street.
5145
6005
  *
5146
6006
  * Can be empty string `""` if not present.
5147
6007
  */
@@ -5877,6 +6737,105 @@ export interface components {
5877
6737
  /** @description Name of the census district */
5878
6738
  zaehlsprengelname: string;
5879
6739
  };
6740
+ BanAddress: {
6741
+ id: components["schemas"]["ID"];
6742
+ /** @enum {string} */
6743
+ dataset: "ban";
6744
+ /**
6745
+ * @description 3 letter country code (ISO 3166-1)
6746
+ *
6747
+ * @enum {undefined}
6748
+ */
6749
+ country_iso: "FRA";
6750
+ /**
6751
+ * @description 2 letter country code (ISO 3166-1)
6752
+ *
6753
+ * @enum {string}
6754
+ */
6755
+ country_iso_2: "FR";
6756
+ /**
6757
+ * @description Full country names (ISO 3166)
6758
+ *
6759
+ * @enum {string}
6760
+ */
6761
+ country: "France";
6762
+ /**
6763
+ * @description Language represented by 2 letter ISO Code (639-1)
6764
+ *
6765
+ * @enum {undefined}
6766
+ */
6767
+ language: "fr";
6768
+ /**
6769
+ * @description The house number of the address.
6770
+ *
6771
+ * Can be empty string `""` if not present.
6772
+ *
6773
+ * @example 8
6774
+ */
6775
+ address: string;
6776
+ /**
6777
+ * @description First address line (house number, suffix, and street name).
6778
+ *
6779
+ * Can be `null` if not present.
6780
+ *
6781
+ * @example 8 bis avenue des Champs-Élysées
6782
+ */
6783
+ line_1: string | null;
6784
+ /**
6785
+ * @description Second address line (postcode and municipality name).
6786
+ *
6787
+ * Can be `null` if not present.
6788
+ *
6789
+ * @example 75008 Paris
6790
+ */
6791
+ line_2: string | null;
6792
+ longitude: components["schemas"]["Longitude"];
6793
+ latitude: components["schemas"]["Latitude"];
6794
+ /** @description FANTOIR street identifier */
6795
+ id_fantoir: string | null;
6796
+ /** @description House number */
6797
+ numero: number | null;
6798
+ /** @description House number suffix / répétition (`bis`, `ter`, `quater`, etc.) */
6799
+ rep: string | null;
6800
+ /** @description Street name */
6801
+ nom_voie: string;
6802
+ /** @description 5-digit postal code */
6803
+ code_postal: string | null;
6804
+ /** @description INSEE commune code (2-digit département + 3-digit commune) */
6805
+ code_insee: string;
6806
+ /** @description Municipality name */
6807
+ nom_commune: string;
6808
+ /** @description INSEE code of the pre-fusion commune (for merged municipalities) */
6809
+ code_insee_ancienne_commune: string | null;
6810
+ /** @description Name of the pre-fusion commune (for merged municipalities) */
6811
+ nom_ancienne_commune: string | null;
6812
+ /** @description Lambert 93 easting coordinate */
6813
+ x: string | null;
6814
+ /** @description Lambert 93 northing coordinate */
6815
+ y: string | null;
6816
+ /** @description Longitude (WGS84) as returned from source data */
6817
+ lon: string | null;
6818
+ /** @description Latitude (WGS84) as returned from source data */
6819
+ lat: string | null;
6820
+ /** @description Positional accuracy type (`entrée`, `bâtiment`, `parcelle`, `délivrance postale`, etc.) */
6821
+ type_position: string | null;
6822
+ /** @description Address alias */
6823
+ alias: string | null;
6824
+ /** @description Lieu-dit (named place) label */
6825
+ nom_ld: string | null;
6826
+ /** @description Postal routing label */
6827
+ libelle_acheminement: string | null;
6828
+ /** @description AFNOR-normalised street name */
6829
+ nom_afnor: string | null;
6830
+ /** @description Source of position data (`commune`, `IGN`, etc.) */
6831
+ source_position: string | null;
6832
+ /** @description Source of street name data */
6833
+ source_nom_voie: string | null;
6834
+ /** @description Whether the municipality has certified this address */
6835
+ certification_commune: boolean | null;
6836
+ /** @description Cadastral parcel reference(s) */
6837
+ cad_parcelles: string | null;
6838
+ };
5880
6839
  /**
5881
6840
  * Global Address
5882
6841
  * @description Global (non-UK) address in the UK address format
@@ -5944,7 +6903,8 @@ export interface components {
5944
6903
  | components["schemas"]["FodbosaAddress"]
5945
6904
  | components["schemas"]["MoisAddress"]
5946
6905
  | components["schemas"]["UpujpAddress"]
5947
- | components["schemas"]["BevAddress"];
6906
+ | components["schemas"]["BevAddress"]
6907
+ | components["schemas"]["BanAddress"];
5948
6908
  /**
5949
6909
  * @description Not available for non-UK addresses
5950
6910
  * @enum {string}
@@ -6006,7 +6966,7 @@ export interface components {
6006
6966
  */
6007
6967
  department_name: "";
6008
6968
  /**
6009
- * @description Name of the company or organization associated with the address
6969
+ * @description Name of the company or organisation associated with the address
6010
6970
  * @example Farrell's Gift Shop
6011
6971
  */
6012
6972
  organisation_name: string;
@@ -6141,6 +7101,7 @@ export interface components {
6141
7101
  | components["schemas"]["PafAliasAddress"]
6142
7102
  | components["schemas"]["WelshPafAddress"]
6143
7103
  | components["schemas"]["AbAddress"]
7104
+ | components["schemas"]["AbpAddress"]
6144
7105
  | components["schemas"]["GbrGlobalAddress"]
6145
7106
  )[];
6146
7107
  /** @enum {integer} */
@@ -6493,6 +7454,11 @@ export interface components {
6493
7454
  * @example false
6494
7455
  */
6495
7456
  ab: boolean;
7457
+ /**
7458
+ * @description UK AddressBase Premium dataset
7459
+ * @example false
7460
+ */
7461
+ abp?: boolean;
6496
7462
  /**
6497
7463
  * @description Northern Ireland Pointer Dataset
6498
7464
  * @example false
@@ -6625,6 +7591,11 @@ export interface components {
6625
7591
  * @example true
6626
7592
  */
6627
7593
  bev: boolean;
7594
+ /**
7595
+ * @description France: BAN (Base Adresse Nationale)
7596
+ * @example true
7597
+ */
7598
+ ban: boolean;
6628
7599
  /**
6629
7600
  * @description UK GBR Cleanse
6630
7601
  * @example true
@@ -6917,11 +7888,21 @@ export interface components {
6917
7888
  * @example true
6918
7889
  */
6919
7890
  bev?: boolean;
7891
+ /**
7892
+ * @description France: BAN (Base Adresse Nationale)
7893
+ * @example true
7894
+ */
7895
+ ban?: boolean;
6920
7896
  /**
6921
7897
  * @description UK AddressBase dataset
6922
7898
  * @example false
6923
7899
  */
6924
7900
  ab?: boolean;
7901
+ /**
7902
+ * @description UK AddressBase Premium dataset
7903
+ * @example false
7904
+ */
7905
+ abp?: boolean;
6925
7906
  /**
6926
7907
  * @description Northern Ireland Pointer Dataset
6927
7908
  * @example false
@@ -7343,7 +8324,7 @@ export interface components {
7343
8324
  /** @description A confidence score represented as number between 1 and 0. 1 indicates a full match. 0 indicates no complete matching elements. */
7344
8325
  confidence: number;
7345
8326
  /**
7346
- * @description Match indicator for the organization
8327
+ * @description Match indicator for the organisation
7347
8328
  * @enum {string}
7348
8329
  */
7349
8330
  organisation_match: "FULL" | "PARTIAL" | "INCORRECT" | "MISSING" | "NA";
@@ -7700,6 +8681,7 @@ export interface components {
7700
8681
  | components["schemas"]["PafAliasAddress"]
7701
8682
  | components["schemas"]["NybAddress"]
7702
8683
  | components["schemas"]["AbAddress"]
8684
+ | components["schemas"]["AbpAddress"]
7703
8685
  | components["schemas"]["GbrGlobalAddress"];
7704
8686
  };
7705
8687
  /**
@@ -7877,6 +8859,7 @@ export interface components {
7877
8859
  | components["schemas"]["PafAliasAddress"]
7878
8860
  | components["schemas"]["WelshPafAddress"]
7879
8861
  | components["schemas"]["AbAddress"]
8862
+ | components["schemas"]["AbpAddress"]
7880
8863
  | components["schemas"]["HereAddress"]
7881
8864
  | components["schemas"]["GnafAddress"]
7882
8865
  | components["schemas"]["KadasterAddress"]
@@ -7886,7 +8869,8 @@ export interface components {
7886
8869
  | components["schemas"]["FodbosaAddress"]
7887
8870
  | components["schemas"]["MoisAddress"]
7888
8871
  | components["schemas"]["UpujpAddress"]
7889
- | components["schemas"]["BevAddress"];
8872
+ | components["schemas"]["BevAddress"]
8873
+ | components["schemas"]["BanAddress"];
7890
8874
  };
7891
8875
  /** Address Retrieve Response (USA) */
7892
8876
  UsaResolveAddressResponse: {
@@ -7919,6 +8903,7 @@ export interface components {
7919
8903
  | components["schemas"]["WelshPafAddress"]
7920
8904
  | components["schemas"]["PafAliasAddress"]
7921
8905
  | components["schemas"]["AbAddress"]
8906
+ | components["schemas"]["AbpAddress"]
7922
8907
  )[];
7923
8908
  /** Format: int32 */
7924
8909
  total: number;
@@ -8358,7 +9343,7 @@ export interface components {
8358
9343
  */
8359
9344
  LicenseeEditable: {
8360
9345
  /**
8361
- * @description Licensee individual or organization name
9346
+ * @description Licensee individual or organisation name
8362
9347
  * @example Qwerty Widgets Limited
8363
9348
  */
8364
9349
  name?: string;
@@ -8552,7 +9537,7 @@ export interface components {
8552
9537
  disposable: boolean;
8553
9538
  /** @description Returns `true` if the email originates from a free service like Outlook or Gmail. */
8554
9539
  free: boolean;
8555
- /** @description Returns `true` if email address represents an organizational role like `admin`, `support`, `postmaster` etc */
9540
+ /** @description Returns `true` if email address represents an organisational role like `admin`, `support`, `postmaster` etc */
8556
9541
  role: boolean;
8557
9542
  /** @description Returns `true` if this domain accepts all emails regardless of username */
8558
9543
  catchall: boolean;
@@ -8778,6 +9763,101 @@ export interface components {
8778
9763
  | components["schemas"]["PhoneNumber"]
8779
9764
  | components["schemas"]["InvalidPhoneNumber"];
8780
9765
  };
9766
+ /**
9767
+ * GILP Ground Stability
9768
+ * @description Postcode-level potential insurance risk from natural ground movement, from
9769
+ * the BGS GeoSure Insurance and Lenders Product (GILP) Derived Postcode
9770
+ * Database. Combines the six GeoSure hazards on (low-rise) buildings:
9771
+ * shrink-swell, landslides, soluble rocks, running sand, compressible ground
9772
+ * and collapsible deposits.
9773
+ *
9774
+ * Field names, types and score ranges mirror the GILP v8 Derived Postcode
9775
+ * Database verbatim (lower-cased), per the BGS user guide (Open Report
9776
+ * OR/26/013). Scores are unitless measures of expected impact, normalised by
9777
+ * expert elicitation so they are comparable and summable across hazards;
9778
+ * `total` is the sum of the six individual hazard scores.
9779
+ *
9780
+ * Hazards cover NATURAL ground movement only - no mining or contaminated
9781
+ * land (compressible ground is the one layer that considers man-made ground,
9782
+ * e.g. landfill). Values are generalised to postcode level; minimum
9783
+ * meaningful resolution is the postcode.
9784
+ */
9785
+ GilpGroundStability: {
9786
+ /**
9787
+ * @description The individual postcode.
9788
+ * @example BA1 0AA
9789
+ */
9790
+ postcode: string;
9791
+ /**
9792
+ * @description The individual hazard score value for collapsible deposits - rocks and
9793
+ * soils that may collapse when a load is placed on them, especially when
9794
+ * saturated.
9795
+ *
9796
+ * @example 0
9797
+ */
9798
+ collapse: number;
9799
+ /**
9800
+ * @description The individual hazard score value for running sand - loosely packed
9801
+ * sandy layers that can become fluidised by water flowing through them,
9802
+ * potentially removing support from overlying buildings.
9803
+ *
9804
+ * @example 6
9805
+ */
9806
+ rsand: number;
9807
+ /**
9808
+ * @description The individual hazard score value for compressible ground - very soft
9809
+ * materials like peat or some clays that may compress if loaded by
9810
+ * overlying structures or if the groundwater level changes.
9811
+ *
9812
+ * @example 74
9813
+ */
9814
+ comp: number;
9815
+ /**
9816
+ * @description The individual hazard score value for shrink-swell - swelling clays
9817
+ * that change volume with moisture variation, particularly in the upper
9818
+ * two metres of the ground.
9819
+ *
9820
+ * @example 252
9821
+ */
9822
+ sswell: number;
9823
+ /**
9824
+ * @description The individual hazard score value for soluble rocks (dissolution) -
9825
+ * soluble material dissolving to form underground cavities that reduce
9826
+ * support to the ground above.
9827
+ *
9828
+ * @example 0
9829
+ */
9830
+ solub: number;
9831
+ /**
9832
+ * @description The individual hazard score value for landslide - slope instability
9833
+ * causing down-slope movement of materials such as a landslide or
9834
+ * rockfall.
9835
+ *
9836
+ * @example 35
9837
+ */
9838
+ landslide: number;
9839
+ /**
9840
+ * @description The total combined score of all 6 hazards.
9841
+ * @example 367
9842
+ */
9843
+ total: number;
9844
+ /**
9845
+ * @description Classification of the insurance hazard potential, dividing `total`
9846
+ * into 5 equal categories: Low (0-399), Low-Medium (400-799), Medium
9847
+ * (800-1199), Medium-High (1200-1599), High (1600-2000).
9848
+ *
9849
+ * @example Low
9850
+ * @enum {string}
9851
+ */
9852
+ class: "Low" | "Low-Medium" | "Medium" | "Medium-High" | "High";
9853
+ /**
9854
+ * @description Dataset name and version number, encoding the GeoSure version and the
9855
+ * OS Code-Point Open version used in production.
9856
+ *
9857
+ * @example GILP_v8_2025.3
9858
+ */
9859
+ version: string;
9860
+ };
8781
9861
  };
8782
9862
  parameters: {
8783
9863
  /**
@@ -8984,13 +10064,13 @@ export interface components {
8984
10064
  /**
8985
10065
  * @description **Filter by Postcode Type**
8986
10066
  *
8987
- * Filter by Postcode Type. Useful for separating organizational and residential addresses
10067
+ * Filter by Postcode Type. Useful for separating organisational and residential addresses
8988
10068
  */
8989
10069
  PostcodeTypeParam: string;
8990
10070
  /**
8991
- * @description **Filter by Organization Indicator**
10071
+ * @description **Filter by Organisation Indicator**
8992
10072
  *
8993
- * Useful for separating organizational and residential addresses
10073
+ * Useful for separating organisational and residential addresses
8994
10074
  *
8995
10075
  * @example Y
8996
10076
  */
@@ -9105,7 +10185,7 @@ export interface operations {
9105
10185
  /**
9106
10186
  * Returns the complete list of addresses for a postcode. Postcode searches are space and case insensitive.
9107
10187
  *
9108
- * 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).
10188
+ * 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/).
9109
10189
  *
9110
10190
  * ## Postcode Not Found
9111
10191
  *
@@ -9617,13 +10697,13 @@ export interface operations {
9617
10697
  *
9618
10698
  * ### Deciding on an Acceptable Confidence Score Threshold
9619
10699
  *
9620
- * Different address cleanse projects can have radically different inputs. However, within each project, the inputs tend to repeat the same errors. For instance, some input datasets may be exclusively inputted manually and be prone to typos. Others may have a persistently missing datapoint such as organization name or postcode. For this reason, it is important to understand that there is no absolute Confidence Score threshold. Instead, the acceptable confidence score must be determined on a project by project basis based on systematic errors present in the data and business goals.
10700
+ * Different address cleanse projects can have radically different inputs. However, within each project, the inputs tend to repeat the same errors. For instance, some input datasets may be exclusively inputted manually and be prone to typos. Others may have a persistently missing datapoint such as organisation name or postcode. For this reason, it is important to understand that there is no absolute Confidence Score threshold. Instead, the acceptable confidence score must be determined on a project by project basis based on systematic errors present in the data and business goals.
9621
10701
  *
9622
10702
  * When determining an acceptable Confidence Score threshold you should load a subset of the dataset into a spreadsheet application like Excel and sort on the score. Scrolling from top-to-bottom you will be able to observe matches from best to worst. As you start to hit the lower quality searches, you will be able to roughly determine:
9623
10703
  * - Which confidence scores indicate ambiguous matches (i.e. up to building level only)
9624
10704
  * - Which confidence scores indicate a poor or no match (i.e. the nearest matching address is too far from the input address)
9625
10705
  *
9626
- * Depending on your business goals, you can also use the Match Levels to determine an acceptable match. For instance, do you need to match up to the thoroughfare or building name only? Are accurate organization names an important feature?
10706
+ * Depending on your business goals, you can also use the Match Levels to determine an acceptable match. For instance, do you need to match up to the thoroughfare or building name only? Are accurate organisation names an important feature?
9627
10707
  */
9628
10708
  AddressCleanse: {
9629
10709
  parameters: {
@@ -9980,13 +11060,13 @@ export interface operations {
9980
11060
  /**
9981
11061
  * **Filter by Postcode Type**
9982
11062
  *
9983
- * Filter by Postcode Type. Useful for separating organizational and residential addresses
11063
+ * Filter by Postcode Type. Useful for separating organisational and residential addresses
9984
11064
  */
9985
11065
  postcode_type?: components["parameters"]["PostcodeTypeParam"];
9986
11066
  /**
9987
- * **Filter by Organization Indicator**
11067
+ * **Filter by Organisation Indicator**
9988
11068
  *
9989
- * Useful for separating organizational and residential addresses
11069
+ * Useful for separating organisational and residential addresses
9990
11070
  */
9991
11071
  su_organisation_indicator?: components["parameters"]["SmallUserParam"];
9992
11072
  /**
@@ -10183,7 +11263,7 @@ export interface operations {
10183
11263
  *
10184
11264
  * All filters can accept multiple terms unless stated otherwise below.
10185
11265
  *
10186
- * Multiple filters can also be combined. E.g. Restrict results to small user organizations in the N postcode area: `su_organisation_indicator=Y&postcode_area=n`. Multiple filters are `AND`'ed, i.e. each additional filter narrows the result set.
11266
+ * Multiple filters can also be combined. E.g. Restrict results to small user organisations in the N postcode area: `su_organisation_indicator=Y&postcode_area=n`. Multiple filters are `AND`'ed, i.e. each additional filter narrows the result set.
10187
11267
  *
10188
11268
  * A combined maximum of 5 terms are allowed across all filters.
10189
11269
  *
@@ -10326,13 +11406,13 @@ export interface operations {
10326
11406
  /**
10327
11407
  * **Filter by Postcode Type**
10328
11408
  *
10329
- * Filter by Postcode Type. Useful for separating organizational and residential addresses
11409
+ * Filter by Postcode Type. Useful for separating organisational and residential addresses
10330
11410
  */
10331
11411
  postcode_type?: components["parameters"]["PostcodeTypeParam"];
10332
11412
  /**
10333
- * **Filter by Organization Indicator**
11413
+ * **Filter by Organisation Indicator**
10334
11414
  *
10335
- * Useful for separating organizational and residential addresses
11415
+ * Useful for separating organisational and residential addresses
10336
11416
  */
10337
11417
  su_organisation_indicator?: components["parameters"]["SmallUserParam"];
10338
11418
  /**
@@ -10808,6 +11888,51 @@ export interface operations {
10808
11888
  };
10809
11889
  };
10810
11890
  };
11891
+ /** Regenerates the API key for a licensee. A new key is generated server-side and returned in the response. The previous key is invalidated immediately, so any integration using it must be updated to the new key. */
11892
+ RegenerateLicenseeKey: {
11893
+ parameters: {
11894
+ path: {
11895
+ /**
11896
+ * **API Key**
11897
+ *
11898
+ * The API Key to retrieve. Begins `ak_`.
11899
+ */
11900
+ key: components["parameters"]["ApiKeyPathParam"];
11901
+ /**
11902
+ * **Licensee Key**
11903
+ *
11904
+ * Uniquely identifies a licensee.
11905
+ */
11906
+ licensee: components["parameters"]["LicenseePathParam"];
11907
+ };
11908
+ query: {
11909
+ /**
11910
+ * **Private User Token**
11911
+ *
11912
+ * A secret key used for sensitive operations on your account and API Keys.
11913
+ *
11914
+ * Your user token can be retrieved and managed from your [accounts page](https://addresszen.com/account).
11915
+ *
11916
+ * Typically beings `uk_...`
11917
+ */
11918
+ user_token?: components["parameters"]["UserTokenParam"];
11919
+ };
11920
+ };
11921
+ responses: {
11922
+ /** Success */
11923
+ 200: {
11924
+ content: {
11925
+ "application/json": components["schemas"]["LicenseeResponse"];
11926
+ };
11927
+ };
11928
+ /** Bad Request */
11929
+ 400: {
11930
+ content: {
11931
+ "application/json": components["schemas"]["BadRequestResponse"];
11932
+ };
11933
+ };
11934
+ };
11935
+ };
10811
11936
  /** Lists configurations associated with a key */
10812
11937
  ListConfigs: {
10813
11938
  parameters: {
@@ -11180,6 +12305,124 @@ export interface operations {
11180
12305
  };
11181
12306
  };
11182
12307
  };
12308
+ /**
12309
+ * 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.
12310
+ *
12311
+ * 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.
12312
+ */
12313
+ SignUpMintToken: {
12314
+ responses: {
12315
+ /** Token minted */
12316
+ 200: {
12317
+ content: {
12318
+ "application/json": {
12319
+ /** @example 2000 */
12320
+ code: number;
12321
+ /** @example Success */
12322
+ message: string;
12323
+ result: {
12324
+ /** @description Random URL-safe token (base64url). Used by the CLI to poll for credentials. */
12325
+ cli_token: string;
12326
+ /**
12327
+ * Format: uri
12328
+ * @description Prefilled accounts web URL. The user opens this in a browser to complete signup.
12329
+ */
12330
+ signup_url: string;
12331
+ };
12332
+ };
12333
+ };
12334
+ };
12335
+ /** Bad Request */
12336
+ 400: {
12337
+ content: {
12338
+ "application/json": components["schemas"]["BadRequestResponse"];
12339
+ };
12340
+ };
12341
+ };
12342
+ requestBody: {
12343
+ content: {
12344
+ "application/json": {
12345
+ /**
12346
+ * Format: email
12347
+ * @description Account holder's email address.
12348
+ */
12349
+ email: string;
12350
+ /** @description Account holder's full name. */
12351
+ name: string;
12352
+ /** @description Organisation name. */
12353
+ org_name: string;
12354
+ org_address_line_one: string;
12355
+ org_address_line_two?: string;
12356
+ org_address_line_three?: string;
12357
+ org_post_town: string;
12358
+ org_postcode: string;
12359
+ /** @description ISO 3166-1 alpha-2 country code. */
12360
+ org_country_code: string;
12361
+ };
12362
+ };
12363
+ };
12364
+ };
12365
+ /**
12366
+ * 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`.
12367
+ *
12368
+ * - `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.
12369
+ * - `200 OK` — User and first API key exist. Credentials are returned exactly once; subsequent polls return `410 Gone`.
12370
+ * - `410 Gone` — Token has expired (per the `cli_token_expires_at` set by Rails on the User record) or has already been claimed.
12371
+ */
12372
+ SignUpClaim: {
12373
+ parameters: {
12374
+ path: {
12375
+ /** The token returned by `POST /sign_up`. */
12376
+ cli_token: string;
12377
+ };
12378
+ };
12379
+ responses: {
12380
+ /** Credentials ready */
12381
+ 200: {
12382
+ content: {
12383
+ "application/json": {
12384
+ /** @example 2000 */
12385
+ code: number;
12386
+ /** @example Success */
12387
+ message: string;
12388
+ result: {
12389
+ /** @description User-level token used to manage account resources via the api. */
12390
+ user_token: string;
12391
+ /** @description Initial test API key for the account. */
12392
+ test_api_key: string;
12393
+ /** @description Internal api user id. */
12394
+ user_id: string;
12395
+ };
12396
+ };
12397
+ };
12398
+ };
12399
+ /** Pending — keep polling */
12400
+ 202: {
12401
+ content: {
12402
+ "application/json": {
12403
+ /** @example 2020 */
12404
+ code: number;
12405
+ /** @example Pending */
12406
+ message: string;
12407
+ result: {
12408
+ /** @enum {string} */
12409
+ status: "pending";
12410
+ };
12411
+ };
12412
+ };
12413
+ };
12414
+ /** Signup token expired or already claimed */
12415
+ 410: {
12416
+ content: {
12417
+ "application/json": {
12418
+ /** @example 4100 */
12419
+ code: number;
12420
+ message: string;
12421
+ };
12422
+ };
12423
+ };
12424
+ };
12425
+ };
11183
12426
  }
11184
12427
 
11185
12428
  export interface external {}