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