@ideal-postcodes/sdk 0.2.0 → 0.2.1

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.
@@ -603,7 +603,12 @@ type LicenseeEditable = {
603
603
  */
604
604
  postcode?: string;
605
605
  /**
606
- * A list of allowed URLs. An empty list means that whitelisting is disabled
606
+ * A list of allowed URLs. An empty list disables the check.
607
+ *
608
+ * A request is allowed when its `Origin` or `Referer` header matches an entry. Use one of these formats:
609
+ *
610
+ * - `https://www.example.com` allows one site. Scheme and host must match
611
+ * - `*.example.com` allows the domain and all its subdomains
607
612
  */
608
613
  whitelist?: Array<string>;
609
614
  daily?: {
@@ -625,7 +630,7 @@ type Licensee = LicenseeEditable & {
625
630
  /**
626
631
  * Uniquely identifies a licensee for a key.
627
632
  *
628
- * Required to perform paid lookups for a specific licensee. Typically begins `sk_`.
633
+ * Required to perform paid lookups for a specific licensee. Typically begins `sl_`.
629
634
  *
630
635
  */
631
636
  key: string;
@@ -635,7 +640,7 @@ type Licensee = LicenseeEditable & {
635
640
  createdAt: string;
636
641
  daily: {
637
642
  /**
638
- * The number lookups performed by the licensee on the day represented b `licesees.daily.updatedAt`
643
+ * The number of lookups performed by the licensee on the day represented by `licensees.daily.updatedAt`
639
644
  */
640
645
  count: number;
641
646
  /**
@@ -5742,9 +5747,9 @@ type EircBase = {
5742
5747
  /**
5743
5748
  * A number associated with the whole building. The building number may have a numeric and an alphanumeric component, which are concatenated e.g. 2A, or alternatively will have a simple building number or a complex building number. The building number always relates to the whole building and not a sub-unit within it.
5744
5749
  * A complex building number may be one of the following:
5745
- * - Dual. Two number separated by '/' e.g. 63/64 = 63, 64
5750
+ * - Dual. Two numbers separated by '/' e.g. 63/64 = 63, 64
5746
5751
  * - Sequence. An odd or even sequence of numbers with lower and upper bound separated by an underscore '_' e.g. `1_5` = 1,3,5 and `2_6` = 2,4,6
5747
- * - Range. A range of consecutive numbers with lower and upper bound separated by a dash '-' e.g. `63-66` = 63, 64, 56, 66
5752
+ * - Range. A range of consecutive numbers with lower and upper bound separated by a dash '-' e.g. `63-66` = 63, 64, 65, 66
5748
5753
  * The building number never appears on a line by itself and can prepend Building Group, Primary Thoroughfare or Primary Locality.
5749
5754
  */
5750
5755
  building_number: string;
@@ -7445,13 +7450,13 @@ type AbAddress = {
7445
7450
  /**
7446
7451
  * Northings
7447
7452
  *
7448
- * Northings reference using the [Ordnance Survey National Grid reference system](https://en.wikipedia.org/wiki/Ordnance_Survey_National_Grid)
7453
+ * Northings reference using the [Ordnance Survey National Grid reference system](https://en.wikipedia.org/wiki/Ordnance_Survey_National_Grid).
7449
7454
  *
7450
- * Northern Ireland Northings uses the [Irish Grid Reference System](https://en.wikipedia.org/wiki/Irish_grid_reference_system)
7455
+ * Northern Ireland Northings uses the [Irish Grid Reference System](https://en.wikipedia.org/wiki/Irish_grid_reference_system).
7451
7456
  *
7452
7457
  * Metres from origin. E.g. `180458`
7453
7458
  *
7454
- * Returns an empty string if no location data is available. Otherwise a number is returned
7459
+ * Returns an empty string if no location data is available. Otherwise a number is returned.
7455
7460
  */
7456
7461
  type Northings = string | number;
7457
7462
  /**
@@ -7598,7 +7603,7 @@ type AddressListItem = {
7598
7603
  /**
7599
7604
  * Postcode Outward
7600
7605
  *
7601
- * The first part of a postcode is known as the outward code. e.g. The outward code of ID1 1QD is ID1. Enables mail to be sorted to the correct local area for delivery. This part of the code contains the area and the district to which the mail is to be delivered, e.g. 'PO1', 'SW1A' or 'B23'.
7606
+ * The first part of a postcode is known as the outward code. e.g. The outward code of BR8 7RE is BR8. Enables mail to be sorted to the correct local area for delivery. This part of the code contains the area and the district to which the mail is to be delivered, e.g. 'PO1', 'SW1A' or 'B23'.
7602
7607
  *
7603
7608
  * Empty (`""`) where the address has no UK postcode.
7604
7609
  */
@@ -7606,7 +7611,7 @@ type AddressListItem = {
7606
7611
  /**
7607
7612
  * Postcode Inward
7608
7613
  *
7609
- * The second part of a postcode is known as the inward code. e.g. The inward code of ID1 1QD is 1QD.
7614
+ * The second part of a postcode is known as the inward code. e.g. The inward code of BR8 7RE is 7RE.
7610
7615
  *
7611
7616
  * The number identifies the sector in the postal district. The number is followed by 2 letters. The letters then define one or more properties in that sector.
7612
7617
  *
@@ -7923,7 +7928,7 @@ type NativeRecord = PafAddress | MrAddress | NybAddress | PafaAddress | PafwAddr
7923
7928
  *
7924
7929
  * Its fields follow the layout UK address databases typically use, and much of it reflects Royal Mail's Postcode Address File, the UK's primary address database.
7925
7930
  *
7926
- * The API converts non-UK addresses into the same UK layout so international addresses will also seamlessly insert into a standard address database. Despite this mapping fidelity to the source is never compromised with the `native` address field.
7931
+ * The API converts non-UK addresses into the same UK layout so international addresses will also seamlessly insert into a standard address database. Fidelity to the local details is retained with the `native` address field.
7927
7932
  *
7928
7933
  * Pay attention to the address lines (`line_1`, `line_2` and `line_3`), post town, postcode, county and country. Together they are all you need to identify an address uniquely, in the UK or as an international address.
7929
7934
  *
@@ -8023,7 +8028,7 @@ type Address = {
8023
8028
  /**
8024
8029
  * Postcode Outward
8025
8030
  *
8026
- * The first part of a postcode is known as the outward code. e.g. The outward code of ID1 1QD is ID1. Enables mail to be sorted to the correct local area for delivery. This part of the code contains the area and the district to which the mail is to be delivered, e.g. 'PO1', 'SW1A' or 'B23'.
8031
+ * The first part of a postcode is known as the outward code. e.g. The outward code of BR8 7RE is BR8. Enables mail to be sorted to the correct local area for delivery. This part of the code contains the area and the district to which the mail is to be delivered, e.g. 'PO1', 'SW1A' or 'B23'.
8027
8032
  *
8028
8033
  * Empty (`""`) where the address has no UK postcode.
8029
8034
  */
@@ -8031,7 +8036,7 @@ type Address = {
8031
8036
  /**
8032
8037
  * Postcode Inward
8033
8038
  *
8034
- * The second part of a postcode is known as the inward code. e.g. The inward code of ID1 1QD is 1QD.
8039
+ * The second part of a postcode is known as the inward code. e.g. The inward code of BR8 7RE is 7RE.
8035
8040
  *
8036
8041
  * The number identifies the sector in the postal district. The number is followed by 2 letters. The letters then define one or more properties in that sector.
8037
8042
  *
@@ -8404,7 +8409,14 @@ type ApiKeyDetailsEditable = {
8404
8409
  limit?: number | null;
8405
8410
  };
8406
8411
  /**
8407
- * A list of allowed URLs. An empty list means that allowed URLs are disabled. Up to 10 allowed.
8412
+ * A list of allowed URLs. An empty list disables the check. Up to 10 allowed.
8413
+ *
8414
+ * A request is allowed when its `Origin` or `Referer` header matches an entry. Use one of these formats:
8415
+ *
8416
+ * - `https://www.example.com` allows one site. Scheme and host must match
8417
+ * - `*.example.com` allows the domain and all its subdomains
8418
+ *
8419
+ * See [Allowed URLs](https://docs.ideal-postcodes.co.uk/docs/guides/allowed-urls).
8408
8420
  */
8409
8421
  allowed_urls?: Array<string>;
8410
8422
  /**
@@ -8885,7 +8897,14 @@ type ApiKeyDetails = {
8885
8897
  monthly_limit: ApiKeyMonthlyLimit;
8886
8898
  individual_limit: ApiKeyIndividualLimit;
8887
8899
  /**
8888
- * A list of allowed URLs. An empty list means that allowed URLs are disabled.
8900
+ * A list of allowed URLs. An empty list disables the check.
8901
+ *
8902
+ * A request is allowed when its `Origin` or `Referer` header matches an entry. Use one of these formats:
8903
+ *
8904
+ * - `https://www.example.com` allows one site. Scheme and host must match
8905
+ * - `*.example.com` allows the domain and all its subdomains
8906
+ *
8907
+ * See [Allowed URLs](https://docs.ideal-postcodes.co.uk/docs/guides/allowed-urls).
8889
8908
  */
8890
8909
  allowed_urls: Array<string>;
8891
8910
  /**
@@ -8941,7 +8960,7 @@ type ApiKey = {
8941
8960
  /**
8942
8961
  * Determines whether the key can be used by the requesting agent.
8943
8962
  *
8944
- * Returns false if one of the following conditions are met:
8963
+ * Returns false if one of the following conditions is met:
8945
8964
  * - Key has no lookups remaining
8946
8965
  * - Daily limit has been reached on the key
8947
8966
  * - Daily individual limit has been reached
@@ -9302,13 +9321,13 @@ type EndParam = number;
9302
9321
  */
9303
9322
  type StartParam = number;
9304
9323
  /**
9305
- * **Private User Token**
9324
+ * **Management Key**
9306
9325
  *
9307
- * A secret key used for sensitive operations on your account and API Keys.
9326
+ * A secret key used to manage your account and API Keys. It was previously called the user token.
9308
9327
  *
9309
- * Your user token can be retrieved and managed from your [accounts page](https://account.ideal-postcodes.co.uk/account).
9328
+ * Your management key can be retrieved and managed from your [accounts page](https://account.ideal-postcodes.co.uk/account).
9310
9329
  *
9311
- * Typically begins `uk_...`
9330
+ * Typically begins `uk_...`. Prefer the `Authorization: Bearer uk_...` header.
9312
9331
  *
9313
9332
  */
9314
9333
  type UserTokenParam = string;
@@ -9502,13 +9521,13 @@ type KeyDetailsData = {
9502
9521
  };
9503
9522
  query?: {
9504
9523
  /**
9505
- * **Private User Token**
9524
+ * **Management Key**
9506
9525
  *
9507
- * A secret key used for sensitive operations on your account and API Keys.
9526
+ * A secret key used to manage your account and API Keys. It was previously called the user token.
9508
9527
  *
9509
- * Your user token can be retrieved and managed from your [accounts page](https://account.ideal-postcodes.co.uk/account).
9528
+ * Your management key can be retrieved and managed from your [accounts page](https://account.ideal-postcodes.co.uk/account).
9510
9529
  *
9511
- * Typically begins `uk_...`
9530
+ * Typically begins `uk_...`. Prefer the `Authorization: Bearer uk_...` header.
9512
9531
  *
9513
9532
  */
9514
9533
  user_token?: string;
@@ -9546,13 +9565,13 @@ type UpdateKeyDetailsData = {
9546
9565
  };
9547
9566
  query?: {
9548
9567
  /**
9549
- * **Private User Token**
9568
+ * **Management Key**
9550
9569
  *
9551
- * A secret key used for sensitive operations on your account and API Keys.
9570
+ * A secret key used to manage your account and API Keys. It was previously called the user token.
9552
9571
  *
9553
- * Your user token can be retrieved and managed from your [accounts page](https://account.ideal-postcodes.co.uk/account).
9572
+ * Your management key can be retrieved and managed from your [accounts page](https://account.ideal-postcodes.co.uk/account).
9554
9573
  *
9555
- * Typically begins `uk_...`
9574
+ * Typically begins `uk_...`. Prefer the `Authorization: Bearer uk_...` header.
9556
9575
  *
9557
9576
  */
9558
9577
  user_token?: string;
@@ -9590,13 +9609,13 @@ type KeyUsageData = {
9590
9609
  };
9591
9610
  query?: {
9592
9611
  /**
9593
- * **Private User Token**
9612
+ * **Management Key**
9594
9613
  *
9595
- * A secret key used for sensitive operations on your account and API Keys.
9614
+ * A secret key used to manage your account and API Keys. It was previously called the user token.
9596
9615
  *
9597
- * Your user token can be retrieved and managed from your [accounts page](https://account.ideal-postcodes.co.uk/account).
9616
+ * Your management key can be retrieved and managed from your [accounts page](https://account.ideal-postcodes.co.uk/account).
9598
9617
  *
9599
- * Typically begins `uk_...`
9618
+ * Typically begins `uk_...`. Prefer the `Authorization: Bearer uk_...` header.
9600
9619
  *
9601
9620
  */
9602
9621
  user_token?: string;
@@ -9662,13 +9681,13 @@ type KeyLogsData = {
9662
9681
  };
9663
9682
  query?: {
9664
9683
  /**
9665
- * **Private User Token**
9684
+ * **Management Key**
9666
9685
  *
9667
- * A secret key used for sensitive operations on your account and API Keys.
9686
+ * A secret key used to manage your account and API Keys. It was previously called the user token.
9668
9687
  *
9669
- * Your user token can be retrieved and managed from your [accounts page](https://account.ideal-postcodes.co.uk/account).
9688
+ * Your management key can be retrieved and managed from your [accounts page](https://account.ideal-postcodes.co.uk/account).
9670
9689
  *
9671
- * Typically begins `uk_...`
9690
+ * Typically begins `uk_...`. Prefer the `Authorization: Bearer uk_...` header.
9672
9691
  *
9673
9692
  */
9674
9693
  user_token?: string;
@@ -10514,13 +10533,13 @@ type ListLicenseesData = {
10514
10533
  */
10515
10534
  starting_after?: number;
10516
10535
  /**
10517
- * **Private User Token**
10536
+ * **Management Key**
10518
10537
  *
10519
- * A secret key used for sensitive operations on your account and API Keys.
10538
+ * A secret key used to manage your account and API Keys. It was previously called the user token.
10520
10539
  *
10521
- * Your user token can be retrieved and managed from your [accounts page](https://account.ideal-postcodes.co.uk/account).
10540
+ * Your management key can be retrieved and managed from your [accounts page](https://account.ideal-postcodes.co.uk/account).
10522
10541
  *
10523
- * Typically begins `uk_...`
10542
+ * Typically begins `uk_...`. Prefer the `Authorization: Bearer uk_...` header.
10524
10543
  *
10525
10544
  */
10526
10545
  user_token?: string;
@@ -10567,13 +10586,13 @@ type CreateLicenseeData = {
10567
10586
  };
10568
10587
  query?: {
10569
10588
  /**
10570
- * **Private User Token**
10589
+ * **Management Key**
10571
10590
  *
10572
- * A secret key used for sensitive operations on your account and API Keys.
10591
+ * A secret key used to manage your account and API Keys. It was previously called the user token.
10573
10592
  *
10574
- * Your user token can be retrieved and managed from your [accounts page](https://account.ideal-postcodes.co.uk/account).
10593
+ * Your management key can be retrieved and managed from your [accounts page](https://account.ideal-postcodes.co.uk/account).
10575
10594
  *
10576
- * Typically begins `uk_...`
10595
+ * Typically begins `uk_...`. Prefer the `Authorization: Bearer uk_...` header.
10577
10596
  *
10578
10597
  */
10579
10598
  user_token?: string;
@@ -10614,13 +10633,13 @@ type DeleteLicenseeData = {
10614
10633
  };
10615
10634
  query?: {
10616
10635
  /**
10617
- * **Private User Token**
10636
+ * **Management Key**
10618
10637
  *
10619
- * A secret key used for sensitive operations on your account and API Keys.
10638
+ * A secret key used to manage your account and API Keys. It was previously called the user token.
10620
10639
  *
10621
- * Your user token can be retrieved and managed from your [accounts page](https://account.ideal-postcodes.co.uk/account).
10640
+ * Your management key can be retrieved and managed from your [accounts page](https://account.ideal-postcodes.co.uk/account).
10622
10641
  *
10623
- * Typically begins `uk_...`
10642
+ * Typically begins `uk_...`. Prefer the `Authorization: Bearer uk_...` header.
10624
10643
  *
10625
10644
  */
10626
10645
  user_token?: string;
@@ -10669,13 +10688,13 @@ type RetrieveLicenseeData = {
10669
10688
  };
10670
10689
  query?: {
10671
10690
  /**
10672
- * **Private User Token**
10691
+ * **Management Key**
10673
10692
  *
10674
- * A secret key used for sensitive operations on your account and API Keys.
10693
+ * A secret key used to manage your account and API Keys. It was previously called the user token.
10675
10694
  *
10676
- * Your user token can be retrieved and managed from your [accounts page](https://account.ideal-postcodes.co.uk/account).
10695
+ * Your management key can be retrieved and managed from your [accounts page](https://account.ideal-postcodes.co.uk/account).
10677
10696
  *
10678
- * Typically begins `uk_...`
10697
+ * Typically begins `uk_...`. Prefer the `Authorization: Bearer uk_...` header.
10679
10698
  *
10680
10699
  */
10681
10700
  user_token?: string;
@@ -10716,13 +10735,13 @@ type UpdateLicenseeData = {
10716
10735
  };
10717
10736
  query?: {
10718
10737
  /**
10719
- * **Private User Token**
10738
+ * **Management Key**
10720
10739
  *
10721
- * A secret key used for sensitive operations on your account and API Keys.
10740
+ * A secret key used to manage your account and API Keys. It was previously called the user token.
10722
10741
  *
10723
- * Your user token can be retrieved and managed from your [accounts page](https://account.ideal-postcodes.co.uk/account).
10742
+ * Your management key can be retrieved and managed from your [accounts page](https://account.ideal-postcodes.co.uk/account).
10724
10743
  *
10725
- * Typically begins `uk_...`
10744
+ * Typically begins `uk_...`. Prefer the `Authorization: Bearer uk_...` header.
10726
10745
  *
10727
10746
  */
10728
10747
  user_token?: string;
@@ -10763,13 +10782,13 @@ type RegenerateLicenseeKeyData = {
10763
10782
  };
10764
10783
  query?: {
10765
10784
  /**
10766
- * **Private User Token**
10785
+ * **Management Key**
10767
10786
  *
10768
- * A secret key used for sensitive operations on your account and API Keys.
10787
+ * A secret key used to manage your account and API Keys. It was previously called the user token.
10769
10788
  *
10770
- * Your user token can be retrieved and managed from your [accounts page](https://account.ideal-postcodes.co.uk/account).
10789
+ * Your management key can be retrieved and managed from your [accounts page](https://account.ideal-postcodes.co.uk/account).
10771
10790
  *
10772
- * Typically begins `uk_...`
10791
+ * Typically begins `uk_...`. Prefer the `Authorization: Bearer uk_...` header.
10773
10792
  *
10774
10793
  */
10775
10794
  user_token?: string;
@@ -10803,13 +10822,13 @@ type ListConfigsData = {
10803
10822
  };
10804
10823
  query?: {
10805
10824
  /**
10806
- * **Private User Token**
10825
+ * **Management Key**
10807
10826
  *
10808
- * A secret key used for sensitive operations on your account and API Keys.
10827
+ * A secret key used to manage your account and API Keys. It was previously called the user token.
10809
10828
  *
10810
- * Your user token can be retrieved and managed from your [accounts page](https://account.ideal-postcodes.co.uk/account).
10829
+ * Your management key can be retrieved and managed from your [accounts page](https://account.ideal-postcodes.co.uk/account).
10811
10830
  *
10812
- * Typically begins `uk_...`
10831
+ * Typically begins `uk_...`. Prefer the `Authorization: Bearer uk_...` header.
10813
10832
  *
10814
10833
  */
10815
10834
  user_token?: string;
@@ -10843,13 +10862,13 @@ type CreateConfigData = {
10843
10862
  };
10844
10863
  query?: {
10845
10864
  /**
10846
- * **Private User Token**
10865
+ * **Management Key**
10847
10866
  *
10848
- * A secret key used for sensitive operations on your account and API Keys.
10867
+ * A secret key used to manage your account and API Keys. It was previously called the user token.
10849
10868
  *
10850
- * Your user token can be retrieved and managed from your [accounts page](https://account.ideal-postcodes.co.uk/account).
10869
+ * Your management key can be retrieved and managed from your [accounts page](https://account.ideal-postcodes.co.uk/account).
10851
10870
  *
10852
- * Typically begins `uk_...`
10871
+ * Typically begins `uk_...`. Prefer the `Authorization: Bearer uk_...` header.
10853
10872
  *
10854
10873
  */
10855
10874
  user_token?: string;
@@ -10890,13 +10909,13 @@ type DeleteConfigData = {
10890
10909
  };
10891
10910
  query?: {
10892
10911
  /**
10893
- * **Private User Token**
10912
+ * **Management Key**
10894
10913
  *
10895
- * A secret key used for sensitive operations on your account and API Keys.
10914
+ * A secret key used to manage your account and API Keys. It was previously called the user token.
10896
10915
  *
10897
- * Your user token can be retrieved and managed from your [accounts page](https://account.ideal-postcodes.co.uk/account).
10916
+ * Your management key can be retrieved and managed from your [accounts page](https://account.ideal-postcodes.co.uk/account).
10898
10917
  *
10899
- * Typically begins `uk_...`
10918
+ * Typically begins `uk_...`. Prefer the `Authorization: Bearer uk_...` header.
10900
10919
  *
10901
10920
  */
10902
10921
  user_token?: string;
@@ -10988,13 +11007,13 @@ type UpdateConfigData = {
10988
11007
  };
10989
11008
  query?: {
10990
11009
  /**
10991
- * **Private User Token**
11010
+ * **Management Key**
10992
11011
  *
10993
- * A secret key used for sensitive operations on your account and API Keys.
11012
+ * A secret key used to manage your account and API Keys. It was previously called the user token.
10994
11013
  *
10995
- * Your user token can be retrieved and managed from your [accounts page](https://account.ideal-postcodes.co.uk/account).
11014
+ * Your management key can be retrieved and managed from your [accounts page](https://account.ideal-postcodes.co.uk/account).
10996
11015
  *
10997
- * Typically begins `uk_...`
11016
+ * Typically begins `uk_...`. Prefer the `Authorization: Bearer uk_...` header.
10998
11017
  *
10999
11018
  */
11000
11019
  user_token?: string;