@addresszen/openapi 4.1.1 → 4.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -43,7 +43,7 @@ interface paths {
43
43
  get: operations["KeyDetails"];
44
44
  /**
45
45
  * Update Details
46
- * @description Updates a key's settings and returns its private details. Only the fields you send change. A key on an unlimited plan ignores changes to `datasets`, `daily_limit` and `monthly_limit`.
46
+ * @description Updates a key's settings and returns its private details. Only the fields you send change. A key on an unlimited plan ignores changes to `datasets`, `daily_limit` and `monthly_limit`. Datasets set by your plan cannot be changed here: sending one with a different value returns a 400.
47
47
  */
48
48
  put: operations["UpdateKeyDetails"];
49
49
  post?: never;
@@ -138,15 +138,19 @@ interface paths {
138
138
  *
139
139
  * Submit the whole address in `query`, or the first address line in `query` with either `zip_code`, or `city` and `state`. A freeform `query` is parsed into those components before the search runs.
140
140
  *
141
- * A match returns the standardized address lines, city, state and ZIP+4, scored by `fit` and `confidence`. It also carries the CASS record behind the match: delivery point, DPV flags, carrier route, eLOT, county, congressional district, RDI, time zone and coordinates. No match returns `200` with a `count` of `0`, a `null` `match` and empty address fields.
141
+ * A match returns the standardized address lines, city, state and ZIP+4, scored by `fit` and `confidence`. It also carries the CASS record behind the match: delivery point, DPV flags, carrier route, eLOT, county, congressional district, RDI, time zone and coordinates. CASS corrects what it can, so an address with the wrong city or state for its ZIP code still verifies, with the corrected values.
142
142
  *
143
- * Only a match draws on your balance. A key without address verification enabled returns `401`. A verification still running after 9.5 seconds aborts with `429`.
143
+ * An address that cannot be verified returns `200` with a `count` of `0`, a `null` `match` and empty address fields. `match_information` says why, e.g. `Address not found` or `House number not valid for this street`. It is for people to read and its wording may change, so test `match` for `null` rather than parsing it.
144
+ *
145
+ * In the United States every verification the CASS engine answers draws on your balance, matched or not. A query that cannot be parsed into an address does not. Elsewhere only a match draws on your balance. A key without address verification enabled returns `401`. A verification still running after 9.5 seconds aborts with `429`.
144
146
  *
145
147
  * ## Countries
146
148
  *
147
149
  * Verify defaults to the United States, where it is CASS certified. Pass `context` with an ISO 3166-1 alpha-3 country code to verify an address elsewhere, e.g. `context=GBR` or `context=FRA`. The address datasets your key is licensed for decide which countries it can verify.
148
150
  *
149
- * Outside the United States there is no CASS record to return, so `match` carries the standardized address from that country's dataset instead. The top-level fields (`address_line_one`, `city`, `state`, `zip_code`, `country_iso_2`) are populated for every country, along with `confidence` and `fit`.
151
+ * Outside the United States there is no CASS record, so `match` is the address in the same format Retrieve Address returns: USPS-style field names, empty strings where the country has no equivalent, and the raw dataset record in `native`. Check `dataset` to tell the two apart: it is present on every non-US match and absent from a CASS match.
152
+ *
153
+ * The top-level fields (`address_line_one`, `address_line_two`, `city`, `state`, `zip_code`, `country_iso_2`) are populated for every country, along with `confidence` and `fit`.
150
154
  */
151
155
  post: operations["AddressVerify"];
152
156
  delete?: never;
@@ -575,7 +579,7 @@ interface components {
575
579
  * - Daily limit has been reached on the key
576
580
  * - Daily individual limit has been reached
577
581
  * - Key is not being used via an authorised URL
578
- * - (Sublicensed key only) Key has a valid licensee attached
582
+ * - (Sublicensed key only) Key has no valid licensee attached
579
583
  * - (Sublicensed key only) Key is not being used via an authorised URL specified by licensee
580
584
  * @example true
581
585
  */
@@ -969,7 +973,7 @@ interface components {
969
973
  individual_limit?: {
970
974
  /**
971
975
  * Format: int32
972
- * @description `number` or `null` Limit set on the number of lookups that can be
976
+ * @description `number` or `null`. Limit set on the number of lookups that can be
973
977
  * performed from a single IP address. `null` means the limit is currently
974
978
  * disabled.
975
979
  * @example 30
@@ -1016,7 +1020,7 @@ interface components {
1016
1020
  ip_forwarding: boolean;
1017
1021
  /**
1018
1022
  * API Key Dataset Availability
1019
- * @description Indicates which datasets are available and added by default to the address responses
1023
+ * @description Datasets you can switch on or off for this key. Datasets set by your plan (`paf`, `mr`, `nyb`, `ecad`, `ecaf`) cannot be changed here: sending one with a different value returns a 400.
1020
1024
  */
1021
1025
  datasets?: {
1022
1026
  /**
@@ -1288,7 +1292,7 @@ interface components {
1288
1292
  area_code: string;
1289
1293
  /** @description Data required to perform a Carrier Route sort */
1290
1294
  carrier_route: string;
1291
- /** @description Character following the 5 or 9 digit ZIP Code. Part of the 11-digit barcode */
1295
+ /** @description Character following the 5-digit or 9-digit ZIP Code. Part of the 11-digit barcode */
1292
1296
  check_digit: string;
1293
1297
  /** @description City name */
1294
1298
  city: string;
@@ -1296,7 +1300,7 @@ interface components {
1296
1300
  city_abbreviation: string;
1297
1301
  /** @description Identifies the Congressional District. Empty string if not present */
1298
1302
  congressional_district: string;
1299
- /** @description ISO3166 country code. Empty string if not present */
1303
+ /** @description ISO 3166 country code. Empty string if not present */
1300
1304
  country_code: string;
1301
1305
  /** @description Name of the county */
1302
1306
  county: string;
@@ -1426,7 +1430,7 @@ interface components {
1426
1430
  longitude: string;
1427
1431
  /** @description Information if a Private Mail Box (PMB) is found in an address. Empty string if not present */
1428
1432
  parsed_pmb_designator: string;
1429
- /** @description Information if a Private Mail Box (PMB) is found in an address. Empty string if not present */
1433
+ /** @description Private Mail Box (PMB) number, if one is found in an address. Empty string if not present */
1430
1434
  parsed_pmb_number: string;
1431
1435
  /** @description Notation following the street name indicating street direction. Empty string if not present */
1432
1436
  parsed_post_directional: string;
@@ -1476,174 +1480,17 @@ interface components {
1476
1480
  /** @description 5-digit ZIP Code and the four additional digits */
1477
1481
  zip_code: string;
1478
1482
  };
1479
- /** Address Match */
1480
- UsaVerifyMatch: {
1481
- /** @description Submitted query */
1482
- query: string;
1483
- /** @description Submitted city */
1484
- query_city: string;
1485
- /** @description Submitted state */
1486
- query_state: string;
1487
- /** @description Submitted zip_code */
1488
- query_zip_code: string;
1489
- /** @description Nearest matching address */
1490
- match: components["schemas"]["UsaCassVerifiedAddress"];
1491
- /** @description The number of addresses we matched to the input. We return the closest match by default. */
1492
- count: number;
1493
- /** @description A score represented as number between 1 and 0. Fit compares the address elements present in your query against the matching address elements. It does not incorporate elements you have not presented in the score. A partial address (e.g. 123 Main St) will have a fit of 1 even though it is missing city and zip code. Its confidence score will be less than 1 however because it is missing some crucial elements. */
1494
- fit: number;
1495
- /** @description A confidence score represented as number between 1 and 0. 1 indicates a full match. 0 indicates no complete matching elements. */
1496
- confidence: number;
1497
- /**
1498
- * @description Additional information about the match.
1499
- *
1500
- * This information is for human consumption and may not be present in all responses.
1501
- * @example Single Response - The delivery address was found in the National Database and no further information was required.
1502
- */
1503
- match_information: string;
1504
- /**
1505
- * @description Primary delivery address
1506
- * @example 123 Main St
1507
- */
1508
- address_line_one: string;
1509
- /**
1510
- * @description Secondary address information
1511
- * @example
1512
- */
1513
- address_line_two: string;
1514
- /**
1515
- * @description City name
1516
- * @example Springfield
1517
- */
1518
- city: string;
1519
- /**
1520
- * @description State name
1521
- * @example CO
1522
- */
1523
- state: string;
1524
- /**
1525
- * @description Zip code
1526
- * @example 81073-1119
1527
- */
1528
- zip_code: string;
1529
- /**
1530
- * @description 2 letter ISO country code
1531
- * @example US
1532
- */
1533
- country_iso_2: string;
1534
- };
1535
- /** No Address Match */
1536
- UsaVerifyNoMatch: {
1537
- /** @description Originally submitted query */
1538
- query: string;
1539
- /** @description Originally submitted city */
1540
- query_city: string;
1541
- /** @description Originally submitted state */
1542
- query_state: string;
1543
- /** @description Originally submitted zip_code */
1544
- query_zip_code: string;
1545
- /**
1546
- * @description Nearest matching address
1547
- * @enum {object|null}
1548
- */
1549
- match: never | null;
1550
- /** @enum {number} */
1551
- count: 0;
1552
- /**
1553
- * Format: float
1554
- * @enum {number}
1555
- */
1556
- fit: 0;
1557
- /**
1558
- * Format: float
1559
- * @enum {number}
1560
- */
1561
- confidence: 0;
1562
- /**
1563
- * @description Empty if no match
1564
- * @enum {string}
1565
- */
1566
- address_line_one: "";
1567
- /**
1568
- * @description Empty if no match
1569
- * @enum {string}
1570
- */
1571
- address_line_two: "";
1572
- /**
1573
- * @description Empty if no match
1574
- * @enum {string}
1575
- */
1576
- city: "";
1577
- /**
1578
- * @description Empty if no match
1579
- * @enum {string}
1580
- */
1581
- state: "";
1582
- /**
1583
- * @description Empty if no match
1584
- * @enum {string}
1585
- */
1586
- zip_code: "";
1587
- /**
1588
- * @description Empty if no match
1589
- * @enum {string}
1590
- */
1591
- country_iso_2: "";
1592
- };
1593
- /** Address Verify Response */
1594
- VerifyResponse: {
1595
- /**
1596
- * Format: int32
1597
- * @enum {integer}
1598
- */
1599
- code: 2000;
1600
- /** @enum {string} */
1601
- message: "Success";
1602
- result: components["schemas"]["UsaVerifyMatch"] | components["schemas"]["UsaVerifyNoMatch"];
1603
- };
1604
- /**
1605
- * Dataset
1606
- * @description Indicates the provenance of an address.
1607
- * @enum {string}
1608
- */
1609
- 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" | "ban" | "swt";
1610
1483
  /**
1611
1484
  * Address Identifier
1612
- * @description Global unique internally generated identifier for an address
1485
+ * @description Globally unique internally generated identifier for an address
1613
1486
  */
1614
1487
  ID: string;
1615
1488
  /**
1616
- * Address Suggestion
1617
- * @description Represents an address suggestion for any address in the world
1618
- * @example {
1619
- * "id": "usps_V210079628|10||3797",
1620
- * "suggestion": "10 Downing St, Montpelier, VT, 05602",
1621
- * "urls": {}
1622
- * }
1489
+ * Dataset
1490
+ * @description Indicates the provenance of an address.
1491
+ * @enum {string}
1623
1492
  */
1624
- AddressSuggestion: {
1625
- id: components["schemas"]["ID"];
1626
- /** @description Address Suggestion to be displayed to the user */
1627
- suggestion: string;
1628
- /**
1629
- * URLs
1630
- * @description Always an empty object (`{}`). Retrieve the full address with `id`
1631
- */
1632
- urls: Record<string, never>;
1633
- };
1634
- /** Address Autocomplete Response */
1635
- AutocompleteResponse: {
1636
- result: {
1637
- hits: components["schemas"]["AddressSuggestion"][];
1638
- };
1639
- /**
1640
- * Format: int32
1641
- * @enum {integer}
1642
- */
1643
- code: 2000;
1644
- /** @enum {string} */
1645
- message: "Success";
1646
- };
1493
+ 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" | "ban" | "swt";
1647
1494
  /**
1648
1495
  * ISO Country Code (3)
1649
1496
  * @description 3 letter country code (ISO 3166-1)
@@ -8270,12 +8117,12 @@ interface components {
8270
8117
  primary_number: string;
8271
8118
  /**
8272
8119
  * Secondary Number
8273
- * @description Number of the sub unit, apartment, suite etc.
8120
+ * @description Number of the subunit, apartment, suite etc.
8274
8121
  */
8275
8122
  secondary_number: string;
8276
8123
  /**
8277
8124
  * Plus 4 Code
8278
- * @description 4 digit ZIP add-on code. USPS addresses only.
8125
+ * @description 4-digit ZIP add-on code. USPS addresses only.
8279
8126
  */
8280
8127
  plus_4_code: string;
8281
8128
  /**
@@ -8295,7 +8142,7 @@ interface components {
8295
8142
  last_line: string;
8296
8143
  /**
8297
8144
  * ZIP Code
8298
- * @description Postal code identifying the delivery area. For US addresses this is the 5 digit ZIP Code.
8145
+ * @description Postal code identifying the delivery area. For US addresses this is the 5-digit ZIP Code.
8299
8146
  */
8300
8147
  zip_code: string;
8301
8148
  /**
@@ -8324,7 +8171,7 @@ interface components {
8324
8171
  record_type_code: "G" | "H" | "F" | "S" | "P" | "R" | "M" | "";
8325
8172
  /**
8326
8173
  * Carrier Route ID
8327
- * @description A 4 character ID identifying the USPS postal route for the address. The first character indicates the route type:
8174
+ * @description A 4-character ID identifying the USPS postal route for the address. The first character indicates the route type:
8328
8175
  *
8329
8176
  * - "B" indicates PO Box
8330
8177
  * - "H" indicates highway
@@ -8398,7 +8245,7 @@ interface components {
8398
8245
  government_building_indicator: "" | "A" | "B" | "C" | "D" | "E" | "F" | "G";
8399
8246
  /**
8400
8247
  * State Abbreviation
8401
- * @description Abbreviated name of the state, province or region. For US addresses this is the 2 character state, territory or armed forces designation ("AA", "AE" or "AP" for APO/FPO/DPO).
8248
+ * @description Abbreviated name of the state, province or region. For US addresses this is the 2-character state, territory or armed forces designation ("AA", "AE" or "AP" for APO/FPO/DPO).
8402
8249
  */
8403
8250
  state_abbreviation: string;
8404
8251
  /**
@@ -8495,6 +8342,170 @@ interface components {
8495
8342
  county_number: string | number;
8496
8343
  native?: components["schemas"]["NativeRecord"];
8497
8344
  };
8345
+ /** Address Match */
8346
+ UsaVerifyMatch: {
8347
+ /** @description Submitted query */
8348
+ query: string;
8349
+ /** @description Submitted city */
8350
+ query_city: string;
8351
+ /** @description Submitted state */
8352
+ query_state: string;
8353
+ /** @description Submitted zip_code */
8354
+ query_zip_code: string;
8355
+ /** @description Nearest matching address. A CASS verified address in the United States. Elsewhere, the address in the same format Retrieve Address returns, with the raw dataset record in `native` */
8356
+ match: components["schemas"]["UsaCassVerifiedAddress"] | components["schemas"]["Address"];
8357
+ /** @description The number of addresses we matched to the input. We return the closest match by default. */
8358
+ count: number;
8359
+ /** @description A score represented as number between 1 and 0. Fit compares the address elements present in your query against the matching address elements. It does not incorporate elements you have not presented in the score. A partial address (e.g. 123 Main St) will have a fit of 1 even though it is missing city and zip code. Its confidence score will be less than 1 however because it is missing some crucial elements. */
8360
+ fit: number;
8361
+ /** @description A confidence score represented as number between 1 and 0. 1 indicates a full match. 0 indicates no complete matching elements. */
8362
+ confidence: number;
8363
+ /**
8364
+ * @description Additional information about the match.
8365
+ *
8366
+ * This information is for human consumption and may not be present in all responses.
8367
+ * @example Single Response - The delivery address was found in the National Database and no further information was required.
8368
+ */
8369
+ match_information: string;
8370
+ /**
8371
+ * @description Primary delivery address
8372
+ * @example 123 Main St
8373
+ */
8374
+ address_line_one: string;
8375
+ /**
8376
+ * @description Secondary address information
8377
+ * @example
8378
+ */
8379
+ address_line_two: string;
8380
+ /**
8381
+ * @description City name
8382
+ * @example Springfield
8383
+ */
8384
+ city: string;
8385
+ /**
8386
+ * @description State name
8387
+ * @example CO
8388
+ */
8389
+ state: string;
8390
+ /**
8391
+ * @description ZIP code
8392
+ * @example 81073-1119
8393
+ */
8394
+ zip_code: string;
8395
+ /**
8396
+ * @description 2-letter ISO country code
8397
+ * @example US
8398
+ */
8399
+ country_iso_2: string;
8400
+ };
8401
+ /** No Address Match */
8402
+ UsaVerifyNoMatch: {
8403
+ /** @description Originally submitted query */
8404
+ query: string;
8405
+ /** @description Originally submitted city */
8406
+ query_city: string;
8407
+ /** @description Originally submitted state */
8408
+ query_state: string;
8409
+ /** @description Originally submitted zip_code */
8410
+ query_zip_code: string;
8411
+ /**
8412
+ * @description Nearest matching address
8413
+ * @enum {object|null}
8414
+ */
8415
+ match: never | null;
8416
+ /** @enum {number} */
8417
+ count: 0;
8418
+ /**
8419
+ * Format: float
8420
+ * @enum {number}
8421
+ */
8422
+ fit: 0;
8423
+ /**
8424
+ * Format: float
8425
+ * @enum {number}
8426
+ */
8427
+ confidence: 0;
8428
+ /**
8429
+ * @description Why the address could not be verified, for people to read. For example `Address not found`, `House number not valid for this street`, `Invalid city, state or ZIP code` or `Address could not be parsed`.
8430
+ *
8431
+ * The wording may change, so do not parse it. Test `match` for `null` instead.
8432
+ * @example Address not found
8433
+ */
8434
+ match_information: string;
8435
+ /**
8436
+ * @description Empty if no match
8437
+ * @enum {string}
8438
+ */
8439
+ address_line_one: "";
8440
+ /**
8441
+ * @description Empty if no match
8442
+ * @enum {string}
8443
+ */
8444
+ address_line_two: "";
8445
+ /**
8446
+ * @description Empty if no match
8447
+ * @enum {string}
8448
+ */
8449
+ city: "";
8450
+ /**
8451
+ * @description Empty if no match
8452
+ * @enum {string}
8453
+ */
8454
+ state: "";
8455
+ /**
8456
+ * @description Empty if no match
8457
+ * @enum {string}
8458
+ */
8459
+ zip_code: "";
8460
+ /**
8461
+ * @description Empty if no match
8462
+ * @enum {string}
8463
+ */
8464
+ country_iso_2: "";
8465
+ };
8466
+ /** Address Verify Response */
8467
+ VerifyResponse: {
8468
+ /**
8469
+ * Format: int32
8470
+ * @enum {integer}
8471
+ */
8472
+ code: 2000;
8473
+ /** @enum {string} */
8474
+ message: "Success";
8475
+ result: components["schemas"]["UsaVerifyMatch"] | components["schemas"]["UsaVerifyNoMatch"];
8476
+ };
8477
+ /**
8478
+ * Address Suggestion
8479
+ * @description Represents an address suggestion for any address in the world
8480
+ * @example {
8481
+ * "id": "usps_V210079628|10||3797",
8482
+ * "suggestion": "10 Downing St, Montpelier, VT, 05602",
8483
+ * "urls": {}
8484
+ * }
8485
+ */
8486
+ AddressSuggestion: {
8487
+ id: components["schemas"]["ID"];
8488
+ /** @description Address Suggestion to be displayed to the user */
8489
+ suggestion: string;
8490
+ /**
8491
+ * URLs
8492
+ * @description Always an empty object (`{}`). Retrieve the full address with `id`
8493
+ */
8494
+ urls: Record<string, never>;
8495
+ };
8496
+ /** Address Autocomplete Response */
8497
+ AutocompleteResponse: {
8498
+ result: {
8499
+ hits: components["schemas"]["AddressSuggestion"][];
8500
+ };
8501
+ /**
8502
+ * Format: int32
8503
+ * @enum {integer}
8504
+ */
8505
+ code: 2000;
8506
+ /** @enum {string} */
8507
+ message: "Success";
8508
+ };
8498
8509
  /** Address Retrieve Response */
8499
8510
  UsaResolveAddressResponse: {
8500
8511
  /**
@@ -8721,7 +8732,7 @@ interface components {
8721
8732
  Place: {
8722
8733
  /**
8723
8734
  * Place Identifier
8724
- * @description Global unique internally generated identifier for a place
8735
+ * @description Globally unique internally generated identifier for a place
8725
8736
  */
8726
8737
  id: string;
8727
8738
  /**
@@ -8750,26 +8761,40 @@ interface components {
8750
8761
  message: "Success";
8751
8762
  result: components["schemas"]["Place"];
8752
8763
  };
8753
- /**
8754
- * Licensee
8755
- * @description Licensee object which can be defined by user
8756
- */
8757
- LicenseeEditable: {
8764
+ /** Licensee */
8765
+ Licensee: {
8766
+ /**
8767
+ * @description An immutable ID provided for every licensee. Primarily used for paginated list requests.
8768
+ * @example 56a11209ebe230380bf104c3
8769
+ */
8770
+ id: string;
8771
+ /**
8772
+ * @description Uniquely identifies a licensee for a key.
8773
+ *
8774
+ * Required to perform paid lookups for a specific licensee. Typically begins `sl_`.
8775
+ * @example sl_ijoiqsxeQgXW2gkiE0X94
8776
+ */
8777
+ key: string;
8778
+ /**
8779
+ * @description Timestamp for when the licensee was created
8780
+ * @example 2016-01-21T17:14:49.971Z
8781
+ */
8782
+ createdAt: string;
8758
8783
  /**
8759
8784
  * @description Licensee individual or organisation name
8760
8785
  * @example Qwerty Widgets Limited
8761
8786
  */
8762
- name?: string;
8787
+ name: string;
8763
8788
  /**
8764
8789
  * @description Licensee's first, second and third line address as well as post town concatenated by commas
8765
8790
  * @example 12 High Street, Manchester
8766
8791
  */
8767
- address?: string;
8792
+ address: string;
8768
8793
  /**
8769
8794
  * @description Licensee's postcode
8770
8795
  * @example BR8 7RE
8771
8796
  */
8772
- postcode?: string;
8797
+ postcode: string;
8773
8798
  /**
8774
8799
  * @description A list of allowed URLs. An empty list disables the check.
8775
8800
  *
@@ -8778,36 +8803,14 @@ interface components {
8778
8803
  * - `https://www.example.com` allows one site. Scheme and host must match
8779
8804
  * - `*.example.com` allows the domain and all its subdomains
8780
8805
  */
8781
- whitelist?: string[];
8782
- daily?: {
8806
+ whitelist: string[];
8807
+ daily: {
8783
8808
  /**
8784
8809
  * Format: int32
8785
8810
  * @description The maximum number of lookups this licensee can perform in a day. `null` indicates the limit is not active
8786
8811
  * @example 10000
8787
8812
  */
8788
- limit?: number | null;
8789
- };
8790
- };
8791
- /** Licensee */
8792
- Licensee: components["schemas"]["LicenseeEditable"] & {
8793
- /**
8794
- * @description An immutable ID provided for every licensee. Primarily used for paginated list requests.
8795
- * @example 56a11209ebe230380bf104c3
8796
- */
8797
- id: string;
8798
- /**
8799
- * @description Uniquely identifies a licensee for a key.
8800
- *
8801
- * Required to perform paid lookups for a specific licensee. Typically begins `sl_`.
8802
- * @example sl_ijoiqsxeQgXW2gkiE0X94
8803
- */
8804
- key: string;
8805
- /**
8806
- * @description Timestamp for when the licensee was created
8807
- * @example 2016-01-21T17:14:49.971Z
8808
- */
8809
- createdAt: string;
8810
- daily: {
8813
+ limit: number | null;
8811
8814
  /**
8812
8815
  * Format: int32
8813
8816
  * @description The number of lookups performed by the licensee on the day represented by `licensees.daily.updatedAt`
@@ -8825,9 +8828,9 @@ interface components {
8825
8828
  LicenseesResponse: {
8826
8829
  /** @description List of licensees */
8827
8830
  result: {
8828
- licensees?: components["schemas"]["Licensee"][];
8831
+ licensees: components["schemas"]["Licensee"][];
8829
8832
  /** @description Returns true if there are more licensees listed after the maximum number of results as implied by `limit` */
8830
- hasMore?: boolean;
8833
+ hasMore: boolean;
8831
8834
  };
8832
8835
  /** @enum {string} */
8833
8836
  message: "Success";
@@ -8837,6 +8840,44 @@ interface components {
8837
8840
  */
8838
8841
  code: 2000;
8839
8842
  };
8843
+ /**
8844
+ * Licensee
8845
+ * @description Licensee object which can be defined by user
8846
+ */
8847
+ LicenseeEditable: {
8848
+ /**
8849
+ * @description Licensee individual or organisation name
8850
+ * @example Qwerty Widgets Limited
8851
+ */
8852
+ name?: string;
8853
+ /**
8854
+ * @description Licensee's first, second and third line address as well as post town concatenated by commas
8855
+ * @example 12 High Street, Manchester
8856
+ */
8857
+ address?: string;
8858
+ /**
8859
+ * @description Licensee's postcode
8860
+ * @example BR8 7RE
8861
+ */
8862
+ postcode?: string;
8863
+ /**
8864
+ * @description A list of allowed URLs. An empty list disables the check.
8865
+ *
8866
+ * A request is allowed when its `Origin` or `Referer` header matches an entry. Use one of these formats:
8867
+ *
8868
+ * - `https://www.example.com` allows one site. Scheme and host must match
8869
+ * - `*.example.com` allows the domain and all its subdomains
8870
+ */
8871
+ whitelist?: string[];
8872
+ daily?: {
8873
+ /**
8874
+ * Format: int32
8875
+ * @description The maximum number of lookups this licensee can perform in a day. `null` indicates the limit is not active
8876
+ * @example 10000
8877
+ */
8878
+ limit?: number | null;
8879
+ };
8880
+ };
8840
8881
  /** Licensee Response */
8841
8882
  LicenseeResponse: {
8842
8883
  result: components["schemas"]["Licensee"];
@@ -8851,12 +8892,12 @@ interface components {
8851
8892
  /** Config Object */
8852
8893
  Config: {
8853
8894
  /**
8854
- * @description Timestamp for when the config was created
8895
+ * @description Timestamp for when the config was last updated
8855
8896
  * @example 2016-01-21T17:14:49.971Z
8856
8897
  */
8857
8898
  updatedAt: string;
8858
8899
  /**
8859
- * @description Timestamp for when the config was updated
8900
+ * @description Timestamp for when the config was created
8860
8901
  * @example 2016-01-21T17:14:49.971Z
8861
8902
  */
8862
8903
  createdAt: string;
@@ -9122,7 +9163,7 @@ interface components {
9122
9163
  /**
9123
9164
  * @description **API Key**
9124
9165
  *
9125
- * The API Key to retrieve. Begins `ak_`.
9166
+ * The API Key. Begins `ak_`.
9126
9167
  * @example ak_test
9127
9168
  */
9128
9169
  ApiKeyPathParam: string;
@@ -9133,7 +9174,7 @@ interface components {
9133
9174
  *
9134
9175
  * Your management key can be retrieved and managed from your [accounts page](https://addresszen.com/account).
9135
9176
  *
9136
- * Typically begins `uk_...`. Prefer the `Authorization: Bearer uk_...` header.
9177
+ * Typically begins `uk_`. Prefer sending it in the `Authorization` header as `Bearer uk_...` instead of this query parameter. The `Authorization: user_token="uk_..."` header also works.
9137
9178
  * @example uk_B59ScW1p1HHouf1VqclEPZUx
9138
9179
  */
9139
9180
  UserTokenParam: string;
@@ -9383,7 +9424,7 @@ interface operations {
9383
9424
  /**
9384
9425
  * @description **API Key**
9385
9426
  *
9386
- * The API Key to retrieve. Begins `ak_`.
9427
+ * The API Key. Begins `ak_`.
9387
9428
  * @example ak_test
9388
9429
  */
9389
9430
  key: components["parameters"]["ApiKeyPathParam"];
@@ -9431,7 +9472,7 @@ interface operations {
9431
9472
  *
9432
9473
  * Your management key can be retrieved and managed from your [accounts page](https://addresszen.com/account).
9433
9474
  *
9434
- * Typically begins `uk_...`. Prefer the `Authorization: Bearer uk_...` header.
9475
+ * Typically begins `uk_`. Prefer sending it in the `Authorization` header as `Bearer uk_...` instead of this query parameter. The `Authorization: user_token="uk_..."` header also works.
9435
9476
  * @example uk_B59ScW1p1HHouf1VqclEPZUx
9436
9477
  */
9437
9478
  user_token?: components["parameters"]["UserTokenParam"];
@@ -9441,7 +9482,7 @@ interface operations {
9441
9482
  /**
9442
9483
  * @description **API Key**
9443
9484
  *
9444
- * The API Key to retrieve. Begins `ak_`.
9485
+ * The API Key. Begins `ak_`.
9445
9486
  * @example ak_test
9446
9487
  */
9447
9488
  key: components["parameters"]["ApiKeyPathParam"];
@@ -9489,7 +9530,7 @@ interface operations {
9489
9530
  *
9490
9531
  * Your management key can be retrieved and managed from your [accounts page](https://addresszen.com/account).
9491
9532
  *
9492
- * Typically begins `uk_...`. Prefer the `Authorization: Bearer uk_...` header.
9533
+ * Typically begins `uk_`. Prefer sending it in the `Authorization` header as `Bearer uk_...` instead of this query parameter. The `Authorization: user_token="uk_..."` header also works.
9493
9534
  * @example uk_B59ScW1p1HHouf1VqclEPZUx
9494
9535
  */
9495
9536
  user_token?: components["parameters"]["UserTokenParam"];
@@ -9499,7 +9540,7 @@ interface operations {
9499
9540
  /**
9500
9541
  * @description **API Key**
9501
9542
  *
9502
- * The API Key to retrieve. Begins `ak_`.
9543
+ * The API Key. Begins `ak_`.
9503
9544
  * @example ak_test
9504
9545
  */
9505
9546
  key: components["parameters"]["ApiKeyPathParam"];
@@ -9551,7 +9592,7 @@ interface operations {
9551
9592
  *
9552
9593
  * Your management key can be retrieved and managed from your [accounts page](https://addresszen.com/account).
9553
9594
  *
9554
- * Typically begins `uk_...`. Prefer the `Authorization: Bearer uk_...` header.
9595
+ * Typically begins `uk_`. Prefer sending it in the `Authorization` header as `Bearer uk_...` instead of this query parameter. The `Authorization: user_token="uk_..."` header also works.
9555
9596
  * @example uk_B59ScW1p1HHouf1VqclEPZUx
9556
9597
  */
9557
9598
  user_token?: components["parameters"]["UserTokenParam"];
@@ -9593,7 +9634,7 @@ interface operations {
9593
9634
  /**
9594
9635
  * @description **API Key**
9595
9636
  *
9596
- * The API Key to retrieve. Begins `ak_`.
9637
+ * The API Key. Begins `ak_`.
9597
9638
  * @example ak_test
9598
9639
  */
9599
9640
  key: components["parameters"]["ApiKeyPathParam"];
@@ -9632,7 +9673,7 @@ interface operations {
9632
9673
  *
9633
9674
  * Your management key can be retrieved and managed from your [accounts page](https://addresszen.com/account).
9634
9675
  *
9635
- * Typically begins `uk_...`. Prefer the `Authorization: Bearer uk_...` header.
9676
+ * Typically begins `uk_`. Prefer sending it in the `Authorization` header as `Bearer uk_...` instead of this query parameter. The `Authorization: user_token="uk_..."` header also works.
9636
9677
  * @example uk_B59ScW1p1HHouf1VqclEPZUx
9637
9678
  */
9638
9679
  user_token?: components["parameters"]["UserTokenParam"];
@@ -9663,7 +9704,7 @@ interface operations {
9663
9704
  /**
9664
9705
  * @description **API Key**
9665
9706
  *
9666
- * The API Key to retrieve. Begins `ak_`.
9707
+ * The API Key. Begins `ak_`.
9667
9708
  * @example ak_test
9668
9709
  */
9669
9710
  key: components["parameters"]["ApiKeyPathParam"];
@@ -9758,7 +9799,7 @@ interface operations {
9758
9799
  */
9759
9800
  city?: string;
9760
9801
  /**
9761
- * @description State of an address. For the US, use the 2 letter state abbreviation.
9802
+ * @description State of an address. For the US, use the 2-letter state abbreviation.
9762
9803
  * @example CO
9763
9804
  */
9764
9805
  state?: string;
@@ -10226,7 +10267,7 @@ interface operations {
10226
10267
  *
10227
10268
  * Your management key can be retrieved and managed from your [accounts page](https://addresszen.com/account).
10228
10269
  *
10229
- * Typically begins `uk_...`. Prefer the `Authorization: Bearer uk_...` header.
10270
+ * Typically begins `uk_`. Prefer sending it in the `Authorization` header as `Bearer uk_...` instead of this query parameter. The `Authorization: user_token="uk_..."` header also works.
10230
10271
  * @example uk_B59ScW1p1HHouf1VqclEPZUx
10231
10272
  */
10232
10273
  user_token?: components["parameters"]["UserTokenParam"];
@@ -10247,7 +10288,7 @@ interface operations {
10247
10288
  /**
10248
10289
  * @description **API Key**
10249
10290
  *
10250
- * The API Key to retrieve. Begins `ak_`.
10291
+ * The API Key. Begins `ak_`.
10251
10292
  * @example ak_test
10252
10293
  */
10253
10294
  key: components["parameters"]["ApiKeyPathParam"];
@@ -10286,7 +10327,7 @@ interface operations {
10286
10327
  *
10287
10328
  * Your management key can be retrieved and managed from your [accounts page](https://addresszen.com/account).
10288
10329
  *
10289
- * Typically begins `uk_...`. Prefer the `Authorization: Bearer uk_...` header.
10330
+ * Typically begins `uk_`. Prefer sending it in the `Authorization` header as `Bearer uk_...` instead of this query parameter. The `Authorization: user_token="uk_..."` header also works.
10290
10331
  * @example uk_B59ScW1p1HHouf1VqclEPZUx
10291
10332
  */
10292
10333
  user_token?: components["parameters"]["UserTokenParam"];
@@ -10296,7 +10337,7 @@ interface operations {
10296
10337
  /**
10297
10338
  * @description **API Key**
10298
10339
  *
10299
- * The API Key to retrieve. Begins `ak_`.
10340
+ * The API Key. Begins `ak_`.
10300
10341
  * @example ak_test
10301
10342
  */
10302
10343
  key: components["parameters"]["ApiKeyPathParam"];
@@ -10339,7 +10380,7 @@ interface operations {
10339
10380
  *
10340
10381
  * Your management key can be retrieved and managed from your [accounts page](https://addresszen.com/account).
10341
10382
  *
10342
- * Typically begins `uk_...`. Prefer the `Authorization: Bearer uk_...` header.
10383
+ * Typically begins `uk_`. Prefer sending it in the `Authorization` header as `Bearer uk_...` instead of this query parameter. The `Authorization: user_token="uk_..."` header also works.
10343
10384
  * @example uk_B59ScW1p1HHouf1VqclEPZUx
10344
10385
  */
10345
10386
  user_token?: components["parameters"]["UserTokenParam"];
@@ -10349,7 +10390,7 @@ interface operations {
10349
10390
  /**
10350
10391
  * @description **API Key**
10351
10392
  *
10352
- * The API Key to retrieve. Begins `ak_`.
10393
+ * The API Key. Begins `ak_`.
10353
10394
  * @example ak_test
10354
10395
  */
10355
10396
  key: components["parameters"]["ApiKeyPathParam"];
@@ -10395,7 +10436,7 @@ interface operations {
10395
10436
  *
10396
10437
  * Your management key can be retrieved and managed from your [accounts page](https://addresszen.com/account).
10397
10438
  *
10398
- * Typically begins `uk_...`. Prefer the `Authorization: Bearer uk_...` header.
10439
+ * Typically begins `uk_`. Prefer sending it in the `Authorization` header as `Bearer uk_...` instead of this query parameter. The `Authorization: user_token="uk_..."` header also works.
10399
10440
  * @example uk_B59ScW1p1HHouf1VqclEPZUx
10400
10441
  */
10401
10442
  user_token?: components["parameters"]["UserTokenParam"];
@@ -10405,7 +10446,7 @@ interface operations {
10405
10446
  /**
10406
10447
  * @description **API Key**
10407
10448
  *
10408
- * The API Key to retrieve. Begins `ak_`.
10449
+ * The API Key. Begins `ak_`.
10409
10450
  * @example ak_test
10410
10451
  */
10411
10452
  key: components["parameters"]["ApiKeyPathParam"];
@@ -10455,7 +10496,7 @@ interface operations {
10455
10496
  *
10456
10497
  * Your management key can be retrieved and managed from your [accounts page](https://addresszen.com/account).
10457
10498
  *
10458
- * Typically begins `uk_...`. Prefer the `Authorization: Bearer uk_...` header.
10499
+ * Typically begins `uk_`. Prefer sending it in the `Authorization` header as `Bearer uk_...` instead of this query parameter. The `Authorization: user_token="uk_..."` header also works.
10459
10500
  * @example uk_B59ScW1p1HHouf1VqclEPZUx
10460
10501
  */
10461
10502
  user_token?: components["parameters"]["UserTokenParam"];
@@ -10465,7 +10506,7 @@ interface operations {
10465
10506
  /**
10466
10507
  * @description **API Key**
10467
10508
  *
10468
- * The API Key to retrieve. Begins `ak_`.
10509
+ * The API Key. Begins `ak_`.
10469
10510
  * @example ak_test
10470
10511
  */
10471
10512
  key: components["parameters"]["ApiKeyPathParam"];
@@ -10526,7 +10567,7 @@ interface operations {
10526
10567
  *
10527
10568
  * Your management key can be retrieved and managed from your [accounts page](https://addresszen.com/account).
10528
10569
  *
10529
- * Typically begins `uk_...`. Prefer the `Authorization: Bearer uk_...` header.
10570
+ * Typically begins `uk_`. Prefer sending it in the `Authorization` header as `Bearer uk_...` instead of this query parameter. The `Authorization: user_token="uk_..."` header also works.
10530
10571
  * @example uk_B59ScW1p1HHouf1VqclEPZUx
10531
10572
  */
10532
10573
  user_token?: components["parameters"]["UserTokenParam"];
@@ -10536,7 +10577,7 @@ interface operations {
10536
10577
  /**
10537
10578
  * @description **API Key**
10538
10579
  *
10539
- * The API Key to retrieve. Begins `ak_`.
10580
+ * The API Key. Begins `ak_`.
10540
10581
  * @example ak_test
10541
10582
  */
10542
10583
  key: components["parameters"]["ApiKeyPathParam"];
@@ -10582,7 +10623,7 @@ interface operations {
10582
10623
  *
10583
10624
  * Your management key can be retrieved and managed from your [accounts page](https://addresszen.com/account).
10584
10625
  *
10585
- * Typically begins `uk_...`. Prefer the `Authorization: Bearer uk_...` header.
10626
+ * Typically begins `uk_`. Prefer sending it in the `Authorization` header as `Bearer uk_...` instead of this query parameter. The `Authorization: user_token="uk_..."` header also works.
10586
10627
  * @example uk_B59ScW1p1HHouf1VqclEPZUx
10587
10628
  */
10588
10629
  user_token?: components["parameters"]["UserTokenParam"];
@@ -10592,7 +10633,7 @@ interface operations {
10592
10633
  /**
10593
10634
  * @description **API Key**
10594
10635
  *
10595
- * The API Key to retrieve. Begins `ak_`.
10636
+ * The API Key. Begins `ak_`.
10596
10637
  * @example ak_test
10597
10638
  */
10598
10639
  key: components["parameters"]["ApiKeyPathParam"];
@@ -10631,7 +10672,7 @@ interface operations {
10631
10672
  *
10632
10673
  * Your management key can be retrieved and managed from your [accounts page](https://addresszen.com/account).
10633
10674
  *
10634
- * Typically begins `uk_...`. Prefer the `Authorization: Bearer uk_...` header.
10675
+ * Typically begins `uk_`. Prefer sending it in the `Authorization` header as `Bearer uk_...` instead of this query parameter. The `Authorization: user_token="uk_..."` header also works.
10635
10676
  * @example uk_B59ScW1p1HHouf1VqclEPZUx
10636
10677
  */
10637
10678
  user_token?: components["parameters"]["UserTokenParam"];
@@ -10641,7 +10682,7 @@ interface operations {
10641
10682
  /**
10642
10683
  * @description **API Key**
10643
10684
  *
10644
- * The API Key to retrieve. Begins `ak_`.
10685
+ * The API Key. Begins `ak_`.
10645
10686
  * @example ak_test
10646
10687
  */
10647
10688
  key: components["parameters"]["ApiKeyPathParam"];
@@ -10682,7 +10723,7 @@ interface operations {
10682
10723
  /**
10683
10724
  * @description **API Key**
10684
10725
  *
10685
- * The API Key to retrieve. Begins `ak_`.
10726
+ * The API Key. Begins `ak_`.
10686
10727
  * @example ak_test
10687
10728
  */
10688
10729
  key: components["parameters"]["ApiKeyPathParam"];
@@ -10737,7 +10778,7 @@ interface operations {
10737
10778
  *
10738
10779
  * Your management key can be retrieved and managed from your [accounts page](https://addresszen.com/account).
10739
10780
  *
10740
- * Typically begins `uk_...`. Prefer the `Authorization: Bearer uk_...` header.
10781
+ * Typically begins `uk_`. Prefer sending it in the `Authorization` header as `Bearer uk_...` instead of this query parameter. The `Authorization: user_token="uk_..."` header also works.
10741
10782
  * @example uk_B59ScW1p1HHouf1VqclEPZUx
10742
10783
  */
10743
10784
  user_token?: components["parameters"]["UserTokenParam"];
@@ -10747,7 +10788,7 @@ interface operations {
10747
10788
  /**
10748
10789
  * @description **API Key**
10749
10790
  *
10750
- * The API Key to retrieve. Begins `ak_`.
10791
+ * The API Key. Begins `ak_`.
10751
10792
  * @example ak_test
10752
10793
  */
10753
10794
  key: components["parameters"]["ApiKeyPathParam"];
@@ -10806,7 +10847,7 @@ interface operations {
10806
10847
  *
10807
10848
  * Your management key can be retrieved and managed from your [accounts page](https://addresszen.com/account).
10808
10849
  *
10809
- * Typically begins `uk_...`. Prefer the `Authorization: Bearer uk_...` header.
10850
+ * Typically begins `uk_`. Prefer sending it in the `Authorization` header as `Bearer uk_...` instead of this query parameter. The `Authorization: user_token="uk_..."` header also works.
10810
10851
  * @example uk_B59ScW1p1HHouf1VqclEPZUx
10811
10852
  */
10812
10853
  user_token?: components["parameters"]["UserTokenParam"];
@@ -10816,7 +10857,7 @@ interface operations {
10816
10857
  /**
10817
10858
  * @description **API Key**
10818
10859
  *
10819
- * The API Key to retrieve. Begins `ak_`.
10860
+ * The API Key. Begins `ak_`.
10820
10861
  * @example ak_test
10821
10862
  */
10822
10863
  key: components["parameters"]["ApiKeyPathParam"];
@@ -11074,11 +11115,11 @@ interface operations {
11074
11115
  /** @example Success */
11075
11116
  message: string;
11076
11117
  result: {
11077
- /** @description User-level token used to manage account resources via the api. */
11118
+ /** @description User-level token used to manage account resources via the API. */
11078
11119
  user_token: string;
11079
11120
  /** @description Initial test API key for the account. */
11080
11121
  test_api_key: string;
11081
- /** @description Internal api user id. */
11122
+ /** @description Internal API user id. */
11082
11123
  user_id: string;
11083
11124
  };
11084
11125
  };