@ideal-postcodes/sdk 0.8.0 → 0.8.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @ideal-postcodes/sdk
2
2
 
3
+ ## 0.8.1 (2026-12-03)
4
+
5
+ ### Patch Changes
6
+
7
+ - Type declarations no longer add `IdealPostcodes`, `jQuery` and `idpcGlobal` to the global `Window` type
8
+ - List the UK suggestion type first in autocomplete hits
9
+ - Refresh doc comments from the spec
10
+
3
11
  ## 0.8.0 (2026-11-26)
4
12
 
5
13
  ### Minor Changes
package/README.md CHANGED
@@ -1,3 +1,5 @@
1
+ <img src="https://docs.ideal-postcodes.co.uk/img/sdks/typescript.webp" alt="" width="72">
2
+
1
3
  # Ideal Postcodes TypeScript SDK
2
4
 
3
5
  Typed API calls over native fetch for browsers and Node.js 22 or later.
@@ -1,5 +1,5 @@
1
- import { C as CacheOptions } from './index.d-CUirxwnK.cjs';
2
- import { F as FindAddressData, a as FindAddressResponse, R as ResolveAddressResponse, C as Client } from './types.gen-8XgmJrsh.cjs';
1
+ import { C as CacheOptions } from './index.d-9XXDLD1t.cjs';
2
+ import { F as FindAddressData, a as FindAddressResponse, R as ResolveAddressResponse, C as Client } from './types.gen-eu0NKk1D.cjs';
3
3
 
4
4
  interface CreateAutocompleteOptions {
5
5
  client: Client;
@@ -1,5 +1,5 @@
1
- import { C as CacheOptions } from './index.d-CUirxwnK.js';
2
- import { F as FindAddressData, a as FindAddressResponse, R as ResolveAddressResponse, C as Client } from './types.gen-8XgmJrsh.js';
1
+ import { C as CacheOptions } from './index.d-9XXDLD1t.js';
2
+ import { F as FindAddressData, a as FindAddressResponse, R as ResolveAddressResponse, C as Client } from './types.gen-eu0NKk1D.js';
3
3
 
4
4
  interface CreateAutocompleteOptions {
5
5
  client: Client;
@@ -1,22 +1,3 @@
1
- declare global {
2
- interface Window {
3
- IdealPostcodes: any;
4
- jQuery: any;
5
- }
6
- }
7
-
8
- declare global {
9
- interface Window {
10
- idpcGlobal?: IdpcGlobal;
11
- }
12
- }
13
- /**
14
- * Global store. Aimed at ensuring multiple copies of our JS libs can have some shared state if required
15
- */
16
- interface IdpcGlobal {
17
- idGen?: Record<string, number>;
18
- }
19
-
20
1
  interface CacheOptions {
21
2
  /** Max entries before LRU eviction. Default 50. */
22
3
  max?: number;
@@ -1,22 +1,3 @@
1
- declare global {
2
- interface Window {
3
- IdealPostcodes: any;
4
- jQuery: any;
5
- }
6
- }
7
-
8
- declare global {
9
- interface Window {
10
- idpcGlobal?: IdpcGlobal;
11
- }
12
- }
13
- /**
14
- * Global store. Aimed at ensuring multiple copies of our JS libs can have some shared state if required
15
- */
16
- interface IdpcGlobal {
17
- idGen?: Record<string, number>;
18
- }
19
-
20
1
  interface CacheOptions {
21
2
  /** Max entries before LRU eviction. Default 50. */
22
3
  max?: number;
package/dist/index.d.cts CHANGED
@@ -1,8 +1,8 @@
1
- import { a as Credentials } from './index.d-CUirxwnK.cjs';
2
- export { A as ApiError } from './index.d-CUirxwnK.cjs';
3
- import { C as Client, P as PostcodesData, A as AddressListItem } from './types.gen-8XgmJrsh.cjs';
4
- export { b as AbAddress, c as AbpAddress, d as Address, e as AddressCleanseData, f as AddressCleanseError, g as AddressCleanseErrors, h as AddressCleanseResponse, i as AddressCleanseResponses, j as AddressLatitudeParam, k as AddressLongitudeParam, l as AddressResponse, m as AddressSuggestion, n as AddressesData, o as AddressesError, p as AddressesErrors, q as AddressesResponse, r as AddressesResponses, s as ApiKey, t as ApiKeyAutomatedTopup, u as ApiKeyCurrentPurchase, v as ApiKeyDailyLimit, w as ApiKeyDatasets, x as ApiKeyDetails, y as ApiKeyDetailsEditable, z as ApiKeyDetailsResponse, B as ApiKeyIndividualLimit, D as ApiKeyMonthlyLimit, E as ApiKeyNotifications, G as ApiKeyParam, H as ApiKeyPathParam, I as ApiKeyResponse, J as ApiKeyUsageResponse, K as AutocompleteResponse, L as AvailableContexts, M as BanAddress, N as BevAddress, O as BiasCityParam, Q as BiasCountryIsoParam, S as BiasCountryParam, T as BiasIpParam, U as BiasLonLatParam, V as BiasPostalCode2Param, W as BiasPostalCode3Param, X as BiasPostalCodeParam, Y as BiasPostcodeAreaParam, Z as BiasPostcodeOutwardParam, _ as BiasPostcodeParam, $ as BiasPostcodeSectorParam, a0 as BiasPosttownParam, a1 as BiasStateCodeParam, a2 as BiasStateParam, a3 as BiasThoroughfareParam, a4 as BoxParam, a5 as CannarAddress, a6 as Carrier, a7 as CityParam, a8 as CleanseResponse, a9 as ClientOptions, aa as Config, ab as ConfigNewParam, ac as ConfigParam, ad as ConfigResponse, ae as ConfigUpdateParam, af as ConfigsResponse, ag as Context, ah as ContextParam, ai as Country, aj as CountryIso, ak as CountryIso2, al as CountryIsoParam, am as CountryParam, an as CreateConfigData, ao as CreateConfigError, ap as CreateConfigErrors, aq as CreateConfigResponse, ar as CreateConfigResponses, as as CreateLicenseeData, at as CreateLicenseeError, au as CreateLicenseeErrors, av as CreateLicenseeResponse, aw as CreateLicenseeResponses, ax as Dataset, ay as DatasetParam, az as DeleteConfigData, aA as DeleteConfigError, aB as DeleteConfigErrors, aC as DeleteConfigResponse, aD as DeleteConfigResponses, aE as DeleteLicenseeData, aF as DeleteLicenseeError, aG as DeleteLicenseeErrors, aH as DeleteLicenseeResponse, aI as DeleteLicenseeResponses, aJ as Eastings, aK as EcadAddress, aL as EcafAddress, aM as EircBase, aN as Email, aO as EmailResponse, aP as EmailValidationData, aQ as EmailValidationError, aR as EmailValidationErrors, aS as EmailValidationResponse, aT as EmailValidationResponses, aU as EndParam, aV as ErrorResponse, aW as FilterParam, F as FindAddressData, aX as FindAddressError, aY as FindAddressErrors, a as FindAddressResponse, aZ as FindAddressResponses, a_ as FindPlaceData, a$ as FindPlaceError, b0 as FindPlaceErrors, b1 as FindPlaceResponse, b2 as FindPlaceResponses, b3 as FodbosaAddress, b4 as GbrCleanseMatch, b5 as GbrCleanseNoMatch, b6 as GbrResolveAddressResponse, b7 as GeonamesPlace, b8 as GnafAddress, b9 as HereAddress, ba as Id, bb as InvalidPhoneNumber, bc as IsBusinessParam, bd as IsPoboxParam, be as KadasterAddress, bf as KartverketAddress, bg as KeyAvailabilityData, bh as KeyAvailabilityError, bi as KeyAvailabilityErrors, bj as KeyAvailabilityResponse, bk as KeyAvailabilityResponses, bl as KeyDetailsData, bm as KeyDetailsError, bn as KeyDetailsErrors, bo as KeyDetailsResponse, bp as KeyDetailsResponses, bq as KeyLogsData, br as KeyLogsError, bs as KeyLogsErrors, bt as KeyLogsResponse, bu as KeyLogsResponses, bv as KeyUsageData, bw as KeyUsageError, bx as KeyUsageErrors, by as KeyUsageResponse, bz as KeyUsageResponses, bA as KeyUsageResult, bB as Language, bC as Latitude, bD as Licensee, bE as LicenseeEditable, bF as LicenseeParam, bG as LicenseePathParam, bH as LicenseeResponse, bI as LicenseesResponse, bJ as LimitParam, bK as ListConfigsData, bL as ListConfigsError, bM as ListConfigsErrors, bN as ListConfigsResponse, bO as ListConfigsResponses, bP as ListLicenseesData, bQ as ListLicenseesError, bR as ListLicenseesErrors, bS as ListLicenseesResponse, bT as ListLicenseesResponses, bU as Longitude, bV as MoisAddress, bW as MrAddress, bX as NativeRecord, bY as NoContext, bZ as Northings, b_ as NotFoundResponse, b$ as NybAddress, c0 as PafAddress, c1 as PafRecordBase, c2 as PafaAddress, c3 as PafwAddress, c4 as PageParam, c5 as PhoneNumber, c6 as PhoneNumberResponse, c7 as PhoneNumberValidationData, c8 as PhoneNumberValidationError, c9 as PhoneNumberValidationErrors, ca as PhoneNumberValidationResponse, cb as PhoneNumberValidationResponses, cc as Place, cd as PlaceCountryIso, ce as PlaceDescriptiveName, cf as PlaceId, cg as PlaceName, ch as PlaceResponse, ci as PlaceSuggestion, cj as PostTownParam, ck as PostalCode2Param, cl as PostalCode3Param, cm as PostalCodeParam, cn as PostcodeAreaParam, co as PostcodeNotFoundResponse, cp as PostcodeOutwardParam, cq as PostcodeParam, cr as PostcodeResponse, cs as PostcodeSectorParam, ct as PostcodeTypeParam, cu as PostcodesError, cv as PostcodesErrors, cw as PostcodesResponse, cx as PostcodesResponses, cy as RegenerateLicenseeKeyData, cz as RegenerateLicenseeKeyError, cA as RegenerateLicenseeKeyErrors, cB as RegenerateLicenseeKeyResponse, cC as RegenerateLicenseeKeyResponses, cD as RemoveOrganisationParam, cE as ResolveAddressData, cF as ResolveAddressError, cG as ResolveAddressErrors, R as ResolveAddressResponse, cH as ResolveAddressResponses, cI as ResolvePlaceData, cJ as ResolvePlaceError, cK as ResolvePlaceErrors, cL as ResolvePlaceResponse, cM as ResolvePlaceResponse2, cN as ResolvePlaceResponses, cO as RetrieveConfigData, cP as RetrieveConfigError, cQ as RetrieveConfigErrors, cR as RetrieveConfigResponse, cS as RetrieveConfigResponses, cT as RetrieveLicenseeData, cU as RetrieveLicenseeError, cV as RetrieveLicenseeErrors, cW as RetrieveLicenseeResponse, cX as RetrieveLicenseeResponses, cY as SdfiAddress, cZ as SmallUserParam, c_ as StartParam, c$ as StateCodeParam, d0 as StateParam, d1 as SwtAddress, d2 as TagsParam, d3 as UkAddressSuggestion, d4 as UnknownEmail, d5 as UpdateConfigData, d6 as UpdateConfigError, d7 as UpdateConfigErrors, d8 as UpdateConfigResponse, d9 as UpdateConfigResponses, da as UpdateKeyDetailsData, db as UpdateKeyDetailsError, dc as UpdateKeyDetailsErrors, dd as UpdateKeyDetailsResponse, de as UpdateKeyDetailsResponses, df as UpdateLicenseeData, dg as UpdateLicenseeError, dh as UpdateLicenseeErrors, di as UpdateLicenseeResponse, dj as UpdateLicenseeResponses, dk as UprnParam, dl as UpujpAddress, dm as UspsAddress } from './types.gen-8XgmJrsh.cjs';
5
- export { O as Options, a as addressCleanse, b as addresses, c as createConfig, d as createLicensee, e as deleteConfig, f as deleteLicensee, g as emailValidation, h as findAddress, i as findPlace, k as keyAvailability, j as keyDetails, l as keyLogs, m as keyUsage, n as listConfigs, o as listLicensees, p as phoneNumberValidation, q as postcodes, r as regenerateLicenseeKey, s as resolveAddress, t as resolvePlace, u as retrieveConfig, v as retrieveLicensee, w as updateConfig, x as updateKeyDetails, y as updateLicensee } from './sdk.gen-DFwujfn3.cjs';
1
+ import { a as Credentials } from './index.d-9XXDLD1t.cjs';
2
+ export { A as ApiError } from './index.d-9XXDLD1t.cjs';
3
+ import { C as Client, P as PostcodesData, A as AddressListItem } from './types.gen-eu0NKk1D.cjs';
4
+ export { b as AbAddress, c as AbpAddress, d as Address, e as AddressCleanseData, f as AddressCleanseError, g as AddressCleanseErrors, h as AddressCleanseResponse, i as AddressCleanseResponses, j as AddressLatitudeParam, k as AddressLongitudeParam, l as AddressResponse, m as AddressSuggestion, n as AddressesData, o as AddressesError, p as AddressesErrors, q as AddressesResponse, r as AddressesResponses, s as ApiKey, t as ApiKeyAutomatedTopup, u as ApiKeyCurrentPurchase, v as ApiKeyDailyLimit, w as ApiKeyDatasets, x as ApiKeyDetails, y as ApiKeyDetailsEditable, z as ApiKeyDetailsResponse, B as ApiKeyIndividualLimit, D as ApiKeyMonthlyLimit, E as ApiKeyNotifications, G as ApiKeyParam, H as ApiKeyPathParam, I as ApiKeyResponse, J as ApiKeyUsageResponse, K as AutocompleteResponse, L as AvailableContexts, M as BanAddress, N as BevAddress, O as BiasCityParam, Q as BiasCountryIsoParam, S as BiasCountryParam, T as BiasIpParam, U as BiasLonLatParam, V as BiasPostalCode2Param, W as BiasPostalCode3Param, X as BiasPostalCodeParam, Y as BiasPostcodeAreaParam, Z as BiasPostcodeOutwardParam, _ as BiasPostcodeParam, $ as BiasPostcodeSectorParam, a0 as BiasPosttownParam, a1 as BiasStateCodeParam, a2 as BiasStateParam, a3 as BiasThoroughfareParam, a4 as BoxParam, a5 as CannarAddress, a6 as Carrier, a7 as CityParam, a8 as CleanseResponse, a9 as ClientOptions, aa as Config, ab as ConfigNewParam, ac as ConfigParam, ad as ConfigResponse, ae as ConfigUpdateParam, af as ConfigsResponse, ag as Context, ah as ContextParam, ai as Country, aj as CountryIso, ak as CountryIso2, al as CountryIsoParam, am as CountryParam, an as CreateConfigData, ao as CreateConfigError, ap as CreateConfigErrors, aq as CreateConfigResponse, ar as CreateConfigResponses, as as CreateLicenseeData, at as CreateLicenseeError, au as CreateLicenseeErrors, av as CreateLicenseeResponse, aw as CreateLicenseeResponses, ax as Dataset, ay as DatasetParam, az as DeleteConfigData, aA as DeleteConfigError, aB as DeleteConfigErrors, aC as DeleteConfigResponse, aD as DeleteConfigResponses, aE as DeleteLicenseeData, aF as DeleteLicenseeError, aG as DeleteLicenseeErrors, aH as DeleteLicenseeResponse, aI as DeleteLicenseeResponses, aJ as Eastings, aK as EcadAddress, aL as EcafAddress, aM as EircBase, aN as Email, aO as EmailResponse, aP as EmailValidationData, aQ as EmailValidationError, aR as EmailValidationErrors, aS as EmailValidationResponse, aT as EmailValidationResponses, aU as EndParam, aV as ErrorResponse, aW as FilterParam, F as FindAddressData, aX as FindAddressError, aY as FindAddressErrors, a as FindAddressResponse, aZ as FindAddressResponses, a_ as FindPlaceData, a$ as FindPlaceError, b0 as FindPlaceErrors, b1 as FindPlaceResponse, b2 as FindPlaceResponses, b3 as FodbosaAddress, b4 as GbrCleanseMatch, b5 as GbrCleanseNoMatch, b6 as GbrResolveAddressResponse, b7 as GeonamesPlace, b8 as GnafAddress, b9 as HereAddress, ba as Id, bb as InvalidPhoneNumber, bc as IsBusinessParam, bd as IsPoboxParam, be as KadasterAddress, bf as KartverketAddress, bg as KeyAvailabilityData, bh as KeyAvailabilityError, bi as KeyAvailabilityErrors, bj as KeyAvailabilityResponse, bk as KeyAvailabilityResponses, bl as KeyDetailsData, bm as KeyDetailsError, bn as KeyDetailsErrors, bo as KeyDetailsResponse, bp as KeyDetailsResponses, bq as KeyLogsData, br as KeyLogsError, bs as KeyLogsErrors, bt as KeyLogsResponse, bu as KeyLogsResponses, bv as KeyUsageData, bw as KeyUsageError, bx as KeyUsageErrors, by as KeyUsageResponse, bz as KeyUsageResponses, bA as KeyUsageResult, bB as Language, bC as Latitude, bD as Licensee, bE as LicenseeEditable, bF as LicenseeParam, bG as LicenseePathParam, bH as LicenseeResponse, bI as LicenseesResponse, bJ as LimitParam, bK as ListConfigsData, bL as ListConfigsError, bM as ListConfigsErrors, bN as ListConfigsResponse, bO as ListConfigsResponses, bP as ListLicenseesData, bQ as ListLicenseesError, bR as ListLicenseesErrors, bS as ListLicenseesResponse, bT as ListLicenseesResponses, bU as Longitude, bV as MoisAddress, bW as MrAddress, bX as NativeRecord, bY as NoContext, bZ as Northings, b_ as NotFoundResponse, b$ as NybAddress, c0 as PafAddress, c1 as PafRecordBase, c2 as PafaAddress, c3 as PafwAddress, c4 as PageParam, c5 as PhoneNumber, c6 as PhoneNumberResponse, c7 as PhoneNumberValidationData, c8 as PhoneNumberValidationError, c9 as PhoneNumberValidationErrors, ca as PhoneNumberValidationResponse, cb as PhoneNumberValidationResponses, cc as Place, cd as PlaceCountryIso, ce as PlaceDescriptiveName, cf as PlaceId, cg as PlaceName, ch as PlaceResponse, ci as PlaceSuggestion, cj as PostTownParam, ck as PostalCode2Param, cl as PostalCode3Param, cm as PostalCodeParam, cn as PostcodeAreaParam, co as PostcodeNotFoundResponse, cp as PostcodeOutwardParam, cq as PostcodeParam, cr as PostcodeResponse, cs as PostcodeSectorParam, ct as PostcodeTypeParam, cu as PostcodesError, cv as PostcodesErrors, cw as PostcodesResponse, cx as PostcodesResponses, cy as RegenerateLicenseeKeyData, cz as RegenerateLicenseeKeyError, cA as RegenerateLicenseeKeyErrors, cB as RegenerateLicenseeKeyResponse, cC as RegenerateLicenseeKeyResponses, cD as RemoveOrganisationParam, cE as ResolveAddressData, cF as ResolveAddressError, cG as ResolveAddressErrors, R as ResolveAddressResponse, cH as ResolveAddressResponses, cI as ResolvePlaceData, cJ as ResolvePlaceError, cK as ResolvePlaceErrors, cL as ResolvePlaceResponse, cM as ResolvePlaceResponse2, cN as ResolvePlaceResponses, cO as RetrieveConfigData, cP as RetrieveConfigError, cQ as RetrieveConfigErrors, cR as RetrieveConfigResponse, cS as RetrieveConfigResponses, cT as RetrieveLicenseeData, cU as RetrieveLicenseeError, cV as RetrieveLicenseeErrors, cW as RetrieveLicenseeResponse, cX as RetrieveLicenseeResponses, cY as SdfiAddress, cZ as SmallUserParam, c_ as StartParam, c$ as StateCodeParam, d0 as StateParam, d1 as SwtAddress, d2 as TagsParam, d3 as UkAddressSuggestion, d4 as UnknownEmail, d5 as UpdateConfigData, d6 as UpdateConfigError, d7 as UpdateConfigErrors, d8 as UpdateConfigResponse, d9 as UpdateConfigResponses, da as UpdateKeyDetailsData, db as UpdateKeyDetailsError, dc as UpdateKeyDetailsErrors, dd as UpdateKeyDetailsResponse, de as UpdateKeyDetailsResponses, df as UpdateLicenseeData, dg as UpdateLicenseeError, dh as UpdateLicenseeErrors, di as UpdateLicenseeResponse, dj as UpdateLicenseeResponses, dk as UprnParam, dl as UpujpAddress, dm as UspsAddress } from './types.gen-eu0NKk1D.cjs';
5
+ export { O as Options, a as addressCleanse, b as addresses, c as createConfig, d as createLicensee, e as deleteConfig, f as deleteLicensee, g as emailValidation, h as findAddress, i as findPlace, k as keyAvailability, j as keyDetails, l as keyLogs, m as keyUsage, n as listConfigs, o as listLicensees, p as phoneNumberValidation, q as postcodes, r as regenerateLicenseeKey, s as resolveAddress, t as resolvePlace, u as retrieveConfig, v as retrieveLicensee, w as updateConfig, x as updateKeyDetails, y as updateLicensee } from './sdk.gen-CBaQpHoG.cjs';
6
6
 
7
7
  interface IdpcClientOptions extends Credentials {
8
8
  baseUrl?: string;
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { a as Credentials } from './index.d-CUirxwnK.js';
2
- export { A as ApiError } from './index.d-CUirxwnK.js';
3
- import { C as Client, P as PostcodesData, A as AddressListItem } from './types.gen-8XgmJrsh.js';
4
- export { b as AbAddress, c as AbpAddress, d as Address, e as AddressCleanseData, f as AddressCleanseError, g as AddressCleanseErrors, h as AddressCleanseResponse, i as AddressCleanseResponses, j as AddressLatitudeParam, k as AddressLongitudeParam, l as AddressResponse, m as AddressSuggestion, n as AddressesData, o as AddressesError, p as AddressesErrors, q as AddressesResponse, r as AddressesResponses, s as ApiKey, t as ApiKeyAutomatedTopup, u as ApiKeyCurrentPurchase, v as ApiKeyDailyLimit, w as ApiKeyDatasets, x as ApiKeyDetails, y as ApiKeyDetailsEditable, z as ApiKeyDetailsResponse, B as ApiKeyIndividualLimit, D as ApiKeyMonthlyLimit, E as ApiKeyNotifications, G as ApiKeyParam, H as ApiKeyPathParam, I as ApiKeyResponse, J as ApiKeyUsageResponse, K as AutocompleteResponse, L as AvailableContexts, M as BanAddress, N as BevAddress, O as BiasCityParam, Q as BiasCountryIsoParam, S as BiasCountryParam, T as BiasIpParam, U as BiasLonLatParam, V as BiasPostalCode2Param, W as BiasPostalCode3Param, X as BiasPostalCodeParam, Y as BiasPostcodeAreaParam, Z as BiasPostcodeOutwardParam, _ as BiasPostcodeParam, $ as BiasPostcodeSectorParam, a0 as BiasPosttownParam, a1 as BiasStateCodeParam, a2 as BiasStateParam, a3 as BiasThoroughfareParam, a4 as BoxParam, a5 as CannarAddress, a6 as Carrier, a7 as CityParam, a8 as CleanseResponse, a9 as ClientOptions, aa as Config, ab as ConfigNewParam, ac as ConfigParam, ad as ConfigResponse, ae as ConfigUpdateParam, af as ConfigsResponse, ag as Context, ah as ContextParam, ai as Country, aj as CountryIso, ak as CountryIso2, al as CountryIsoParam, am as CountryParam, an as CreateConfigData, ao as CreateConfigError, ap as CreateConfigErrors, aq as CreateConfigResponse, ar as CreateConfigResponses, as as CreateLicenseeData, at as CreateLicenseeError, au as CreateLicenseeErrors, av as CreateLicenseeResponse, aw as CreateLicenseeResponses, ax as Dataset, ay as DatasetParam, az as DeleteConfigData, aA as DeleteConfigError, aB as DeleteConfigErrors, aC as DeleteConfigResponse, aD as DeleteConfigResponses, aE as DeleteLicenseeData, aF as DeleteLicenseeError, aG as DeleteLicenseeErrors, aH as DeleteLicenseeResponse, aI as DeleteLicenseeResponses, aJ as Eastings, aK as EcadAddress, aL as EcafAddress, aM as EircBase, aN as Email, aO as EmailResponse, aP as EmailValidationData, aQ as EmailValidationError, aR as EmailValidationErrors, aS as EmailValidationResponse, aT as EmailValidationResponses, aU as EndParam, aV as ErrorResponse, aW as FilterParam, F as FindAddressData, aX as FindAddressError, aY as FindAddressErrors, a as FindAddressResponse, aZ as FindAddressResponses, a_ as FindPlaceData, a$ as FindPlaceError, b0 as FindPlaceErrors, b1 as FindPlaceResponse, b2 as FindPlaceResponses, b3 as FodbosaAddress, b4 as GbrCleanseMatch, b5 as GbrCleanseNoMatch, b6 as GbrResolveAddressResponse, b7 as GeonamesPlace, b8 as GnafAddress, b9 as HereAddress, ba as Id, bb as InvalidPhoneNumber, bc as IsBusinessParam, bd as IsPoboxParam, be as KadasterAddress, bf as KartverketAddress, bg as KeyAvailabilityData, bh as KeyAvailabilityError, bi as KeyAvailabilityErrors, bj as KeyAvailabilityResponse, bk as KeyAvailabilityResponses, bl as KeyDetailsData, bm as KeyDetailsError, bn as KeyDetailsErrors, bo as KeyDetailsResponse, bp as KeyDetailsResponses, bq as KeyLogsData, br as KeyLogsError, bs as KeyLogsErrors, bt as KeyLogsResponse, bu as KeyLogsResponses, bv as KeyUsageData, bw as KeyUsageError, bx as KeyUsageErrors, by as KeyUsageResponse, bz as KeyUsageResponses, bA as KeyUsageResult, bB as Language, bC as Latitude, bD as Licensee, bE as LicenseeEditable, bF as LicenseeParam, bG as LicenseePathParam, bH as LicenseeResponse, bI as LicenseesResponse, bJ as LimitParam, bK as ListConfigsData, bL as ListConfigsError, bM as ListConfigsErrors, bN as ListConfigsResponse, bO as ListConfigsResponses, bP as ListLicenseesData, bQ as ListLicenseesError, bR as ListLicenseesErrors, bS as ListLicenseesResponse, bT as ListLicenseesResponses, bU as Longitude, bV as MoisAddress, bW as MrAddress, bX as NativeRecord, bY as NoContext, bZ as Northings, b_ as NotFoundResponse, b$ as NybAddress, c0 as PafAddress, c1 as PafRecordBase, c2 as PafaAddress, c3 as PafwAddress, c4 as PageParam, c5 as PhoneNumber, c6 as PhoneNumberResponse, c7 as PhoneNumberValidationData, c8 as PhoneNumberValidationError, c9 as PhoneNumberValidationErrors, ca as PhoneNumberValidationResponse, cb as PhoneNumberValidationResponses, cc as Place, cd as PlaceCountryIso, ce as PlaceDescriptiveName, cf as PlaceId, cg as PlaceName, ch as PlaceResponse, ci as PlaceSuggestion, cj as PostTownParam, ck as PostalCode2Param, cl as PostalCode3Param, cm as PostalCodeParam, cn as PostcodeAreaParam, co as PostcodeNotFoundResponse, cp as PostcodeOutwardParam, cq as PostcodeParam, cr as PostcodeResponse, cs as PostcodeSectorParam, ct as PostcodeTypeParam, cu as PostcodesError, cv as PostcodesErrors, cw as PostcodesResponse, cx as PostcodesResponses, cy as RegenerateLicenseeKeyData, cz as RegenerateLicenseeKeyError, cA as RegenerateLicenseeKeyErrors, cB as RegenerateLicenseeKeyResponse, cC as RegenerateLicenseeKeyResponses, cD as RemoveOrganisationParam, cE as ResolveAddressData, cF as ResolveAddressError, cG as ResolveAddressErrors, R as ResolveAddressResponse, cH as ResolveAddressResponses, cI as ResolvePlaceData, cJ as ResolvePlaceError, cK as ResolvePlaceErrors, cL as ResolvePlaceResponse, cM as ResolvePlaceResponse2, cN as ResolvePlaceResponses, cO as RetrieveConfigData, cP as RetrieveConfigError, cQ as RetrieveConfigErrors, cR as RetrieveConfigResponse, cS as RetrieveConfigResponses, cT as RetrieveLicenseeData, cU as RetrieveLicenseeError, cV as RetrieveLicenseeErrors, cW as RetrieveLicenseeResponse, cX as RetrieveLicenseeResponses, cY as SdfiAddress, cZ as SmallUserParam, c_ as StartParam, c$ as StateCodeParam, d0 as StateParam, d1 as SwtAddress, d2 as TagsParam, d3 as UkAddressSuggestion, d4 as UnknownEmail, d5 as UpdateConfigData, d6 as UpdateConfigError, d7 as UpdateConfigErrors, d8 as UpdateConfigResponse, d9 as UpdateConfigResponses, da as UpdateKeyDetailsData, db as UpdateKeyDetailsError, dc as UpdateKeyDetailsErrors, dd as UpdateKeyDetailsResponse, de as UpdateKeyDetailsResponses, df as UpdateLicenseeData, dg as UpdateLicenseeError, dh as UpdateLicenseeErrors, di as UpdateLicenseeResponse, dj as UpdateLicenseeResponses, dk as UprnParam, dl as UpujpAddress, dm as UspsAddress } from './types.gen-8XgmJrsh.js';
5
- export { O as Options, a as addressCleanse, b as addresses, c as createConfig, d as createLicensee, e as deleteConfig, f as deleteLicensee, g as emailValidation, h as findAddress, i as findPlace, k as keyAvailability, j as keyDetails, l as keyLogs, m as keyUsage, n as listConfigs, o as listLicensees, p as phoneNumberValidation, q as postcodes, r as regenerateLicenseeKey, s as resolveAddress, t as resolvePlace, u as retrieveConfig, v as retrieveLicensee, w as updateConfig, x as updateKeyDetails, y as updateLicensee } from './sdk.gen-D97oQip1.js';
1
+ import { a as Credentials } from './index.d-9XXDLD1t.js';
2
+ export { A as ApiError } from './index.d-9XXDLD1t.js';
3
+ import { C as Client, P as PostcodesData, A as AddressListItem } from './types.gen-eu0NKk1D.js';
4
+ export { b as AbAddress, c as AbpAddress, d as Address, e as AddressCleanseData, f as AddressCleanseError, g as AddressCleanseErrors, h as AddressCleanseResponse, i as AddressCleanseResponses, j as AddressLatitudeParam, k as AddressLongitudeParam, l as AddressResponse, m as AddressSuggestion, n as AddressesData, o as AddressesError, p as AddressesErrors, q as AddressesResponse, r as AddressesResponses, s as ApiKey, t as ApiKeyAutomatedTopup, u as ApiKeyCurrentPurchase, v as ApiKeyDailyLimit, w as ApiKeyDatasets, x as ApiKeyDetails, y as ApiKeyDetailsEditable, z as ApiKeyDetailsResponse, B as ApiKeyIndividualLimit, D as ApiKeyMonthlyLimit, E as ApiKeyNotifications, G as ApiKeyParam, H as ApiKeyPathParam, I as ApiKeyResponse, J as ApiKeyUsageResponse, K as AutocompleteResponse, L as AvailableContexts, M as BanAddress, N as BevAddress, O as BiasCityParam, Q as BiasCountryIsoParam, S as BiasCountryParam, T as BiasIpParam, U as BiasLonLatParam, V as BiasPostalCode2Param, W as BiasPostalCode3Param, X as BiasPostalCodeParam, Y as BiasPostcodeAreaParam, Z as BiasPostcodeOutwardParam, _ as BiasPostcodeParam, $ as BiasPostcodeSectorParam, a0 as BiasPosttownParam, a1 as BiasStateCodeParam, a2 as BiasStateParam, a3 as BiasThoroughfareParam, a4 as BoxParam, a5 as CannarAddress, a6 as Carrier, a7 as CityParam, a8 as CleanseResponse, a9 as ClientOptions, aa as Config, ab as ConfigNewParam, ac as ConfigParam, ad as ConfigResponse, ae as ConfigUpdateParam, af as ConfigsResponse, ag as Context, ah as ContextParam, ai as Country, aj as CountryIso, ak as CountryIso2, al as CountryIsoParam, am as CountryParam, an as CreateConfigData, ao as CreateConfigError, ap as CreateConfigErrors, aq as CreateConfigResponse, ar as CreateConfigResponses, as as CreateLicenseeData, at as CreateLicenseeError, au as CreateLicenseeErrors, av as CreateLicenseeResponse, aw as CreateLicenseeResponses, ax as Dataset, ay as DatasetParam, az as DeleteConfigData, aA as DeleteConfigError, aB as DeleteConfigErrors, aC as DeleteConfigResponse, aD as DeleteConfigResponses, aE as DeleteLicenseeData, aF as DeleteLicenseeError, aG as DeleteLicenseeErrors, aH as DeleteLicenseeResponse, aI as DeleteLicenseeResponses, aJ as Eastings, aK as EcadAddress, aL as EcafAddress, aM as EircBase, aN as Email, aO as EmailResponse, aP as EmailValidationData, aQ as EmailValidationError, aR as EmailValidationErrors, aS as EmailValidationResponse, aT as EmailValidationResponses, aU as EndParam, aV as ErrorResponse, aW as FilterParam, F as FindAddressData, aX as FindAddressError, aY as FindAddressErrors, a as FindAddressResponse, aZ as FindAddressResponses, a_ as FindPlaceData, a$ as FindPlaceError, b0 as FindPlaceErrors, b1 as FindPlaceResponse, b2 as FindPlaceResponses, b3 as FodbosaAddress, b4 as GbrCleanseMatch, b5 as GbrCleanseNoMatch, b6 as GbrResolveAddressResponse, b7 as GeonamesPlace, b8 as GnafAddress, b9 as HereAddress, ba as Id, bb as InvalidPhoneNumber, bc as IsBusinessParam, bd as IsPoboxParam, be as KadasterAddress, bf as KartverketAddress, bg as KeyAvailabilityData, bh as KeyAvailabilityError, bi as KeyAvailabilityErrors, bj as KeyAvailabilityResponse, bk as KeyAvailabilityResponses, bl as KeyDetailsData, bm as KeyDetailsError, bn as KeyDetailsErrors, bo as KeyDetailsResponse, bp as KeyDetailsResponses, bq as KeyLogsData, br as KeyLogsError, bs as KeyLogsErrors, bt as KeyLogsResponse, bu as KeyLogsResponses, bv as KeyUsageData, bw as KeyUsageError, bx as KeyUsageErrors, by as KeyUsageResponse, bz as KeyUsageResponses, bA as KeyUsageResult, bB as Language, bC as Latitude, bD as Licensee, bE as LicenseeEditable, bF as LicenseeParam, bG as LicenseePathParam, bH as LicenseeResponse, bI as LicenseesResponse, bJ as LimitParam, bK as ListConfigsData, bL as ListConfigsError, bM as ListConfigsErrors, bN as ListConfigsResponse, bO as ListConfigsResponses, bP as ListLicenseesData, bQ as ListLicenseesError, bR as ListLicenseesErrors, bS as ListLicenseesResponse, bT as ListLicenseesResponses, bU as Longitude, bV as MoisAddress, bW as MrAddress, bX as NativeRecord, bY as NoContext, bZ as Northings, b_ as NotFoundResponse, b$ as NybAddress, c0 as PafAddress, c1 as PafRecordBase, c2 as PafaAddress, c3 as PafwAddress, c4 as PageParam, c5 as PhoneNumber, c6 as PhoneNumberResponse, c7 as PhoneNumberValidationData, c8 as PhoneNumberValidationError, c9 as PhoneNumberValidationErrors, ca as PhoneNumberValidationResponse, cb as PhoneNumberValidationResponses, cc as Place, cd as PlaceCountryIso, ce as PlaceDescriptiveName, cf as PlaceId, cg as PlaceName, ch as PlaceResponse, ci as PlaceSuggestion, cj as PostTownParam, ck as PostalCode2Param, cl as PostalCode3Param, cm as PostalCodeParam, cn as PostcodeAreaParam, co as PostcodeNotFoundResponse, cp as PostcodeOutwardParam, cq as PostcodeParam, cr as PostcodeResponse, cs as PostcodeSectorParam, ct as PostcodeTypeParam, cu as PostcodesError, cv as PostcodesErrors, cw as PostcodesResponse, cx as PostcodesResponses, cy as RegenerateLicenseeKeyData, cz as RegenerateLicenseeKeyError, cA as RegenerateLicenseeKeyErrors, cB as RegenerateLicenseeKeyResponse, cC as RegenerateLicenseeKeyResponses, cD as RemoveOrganisationParam, cE as ResolveAddressData, cF as ResolveAddressError, cG as ResolveAddressErrors, R as ResolveAddressResponse, cH as ResolveAddressResponses, cI as ResolvePlaceData, cJ as ResolvePlaceError, cK as ResolvePlaceErrors, cL as ResolvePlaceResponse, cM as ResolvePlaceResponse2, cN as ResolvePlaceResponses, cO as RetrieveConfigData, cP as RetrieveConfigError, cQ as RetrieveConfigErrors, cR as RetrieveConfigResponse, cS as RetrieveConfigResponses, cT as RetrieveLicenseeData, cU as RetrieveLicenseeError, cV as RetrieveLicenseeErrors, cW as RetrieveLicenseeResponse, cX as RetrieveLicenseeResponses, cY as SdfiAddress, cZ as SmallUserParam, c_ as StartParam, c$ as StateCodeParam, d0 as StateParam, d1 as SwtAddress, d2 as TagsParam, d3 as UkAddressSuggestion, d4 as UnknownEmail, d5 as UpdateConfigData, d6 as UpdateConfigError, d7 as UpdateConfigErrors, d8 as UpdateConfigResponse, d9 as UpdateConfigResponses, da as UpdateKeyDetailsData, db as UpdateKeyDetailsError, dc as UpdateKeyDetailsErrors, dd as UpdateKeyDetailsResponse, de as UpdateKeyDetailsResponses, df as UpdateLicenseeData, dg as UpdateLicenseeError, dh as UpdateLicenseeErrors, di as UpdateLicenseeResponse, dj as UpdateLicenseeResponses, dk as UprnParam, dl as UpujpAddress, dm as UspsAddress } from './types.gen-eu0NKk1D.js';
5
+ export { O as Options, a as addressCleanse, b as addresses, c as createConfig, d as createLicensee, e as deleteConfig, f as deleteLicensee, g as emailValidation, h as findAddress, i as findPlace, k as keyAvailability, j as keyDetails, l as keyLogs, m as keyUsage, n as listConfigs, o as listLicensees, p as phoneNumberValidation, q as postcodes, r as regenerateLicenseeKey, s as resolveAddress, t as resolvePlace, u as retrieveConfig, v as retrieveLicensee, w as updateConfig, x as updateKeyDetails, y as updateLicensee } from './sdk.gen-zc4tEWtp.js';
6
6
 
7
7
  interface IdpcClientOptions extends Credentials {
8
8
  baseUrl?: string;
@@ -2,8 +2,8 @@ import type { dataTagSymbol, dataTagErrorSymbol } from "@tanstack/preact-query";
2
2
  import * as _tanstack_react_query from '@tanstack/preact-query';
3
3
  import * as _tanstack_preact_query from '@tanstack/preact-query';
4
4
  import { UseMutationOptions, InfiniteData } from '@tanstack/preact-query';
5
- import { O as Options } from './sdk.gen-DFwujfn3.cjs';
6
- import { e as AddressCleanseData, h as AddressCleanseResponse, f as AddressCleanseError, n as AddressesData, an as CreateConfigData, aq as CreateConfigResponse, ao as CreateConfigError, as as CreateLicenseeData, av as CreateLicenseeResponse, at as CreateLicenseeError, az as DeleteConfigData, aC as DeleteConfigResponse, aA as DeleteConfigError, aE as DeleteLicenseeData, aH as DeleteLicenseeResponse, aF as DeleteLicenseeError, aP as EmailValidationData, F as FindAddressData, K as AutocompleteResponse, aV as ErrorResponse, a_ as FindPlaceData, ch as PlaceResponse, bg as KeyAvailabilityData, I as ApiKeyResponse, bl as KeyDetailsData, z as ApiKeyDetailsResponse, bq as KeyLogsData, bv as KeyUsageData, J as ApiKeyUsageResponse, bK as ListConfigsData, af as ConfigsResponse, bP as ListLicenseesData, bI as LicenseesResponse, c7 as PhoneNumberValidationData, P as PostcodesData, cy as RegenerateLicenseeKeyData, cB as RegenerateLicenseeKeyResponse, cz as RegenerateLicenseeKeyError, cE as ResolveAddressData, cI as ResolvePlaceData, cO as RetrieveConfigData, ad as ConfigResponse, cP as RetrieveConfigError, cT as RetrieveLicenseeData, bH as LicenseeResponse, d5 as UpdateConfigData, d8 as UpdateConfigResponse, d6 as UpdateConfigError, da as UpdateKeyDetailsData, dd as UpdateKeyDetailsResponse, db as UpdateKeyDetailsError, df as UpdateLicenseeData, di as UpdateLicenseeResponse, dg as UpdateLicenseeError, l as AddressResponse, o as AddressesError, aO as EmailResponse, c6 as PhoneNumberResponse, cr as PostcodeResponse, cu as PostcodesError, b6 as GbrResolveAddressResponse, cL as ResolvePlaceResponse } from './types.gen-8XgmJrsh.cjs';
5
+ import { O as Options } from './sdk.gen-CBaQpHoG.cjs';
6
+ import { e as AddressCleanseData, h as AddressCleanseResponse, f as AddressCleanseError, n as AddressesData, an as CreateConfigData, aq as CreateConfigResponse, ao as CreateConfigError, as as CreateLicenseeData, av as CreateLicenseeResponse, at as CreateLicenseeError, az as DeleteConfigData, aC as DeleteConfigResponse, aA as DeleteConfigError, aE as DeleteLicenseeData, aH as DeleteLicenseeResponse, aF as DeleteLicenseeError, aP as EmailValidationData, F as FindAddressData, K as AutocompleteResponse, aV as ErrorResponse, a_ as FindPlaceData, ch as PlaceResponse, bg as KeyAvailabilityData, I as ApiKeyResponse, bl as KeyDetailsData, z as ApiKeyDetailsResponse, bq as KeyLogsData, bv as KeyUsageData, J as ApiKeyUsageResponse, bK as ListConfigsData, af as ConfigsResponse, bP as ListLicenseesData, bI as LicenseesResponse, c7 as PhoneNumberValidationData, P as PostcodesData, cy as RegenerateLicenseeKeyData, cB as RegenerateLicenseeKeyResponse, cz as RegenerateLicenseeKeyError, cE as ResolveAddressData, cI as ResolvePlaceData, cO as RetrieveConfigData, ad as ConfigResponse, cP as RetrieveConfigError, cT as RetrieveLicenseeData, bH as LicenseeResponse, d5 as UpdateConfigData, d8 as UpdateConfigResponse, d6 as UpdateConfigError, da as UpdateKeyDetailsData, dd as UpdateKeyDetailsResponse, db as UpdateKeyDetailsError, df as UpdateLicenseeData, di as UpdateLicenseeResponse, dg as UpdateLicenseeError, l as AddressResponse, o as AddressesError, aO as EmailResponse, c6 as PhoneNumberResponse, cr as PostcodeResponse, cu as PostcodesError, b6 as GbrResolveAddressResponse, cL as ResolvePlaceResponse } from './types.gen-eu0NKk1D.cjs';
7
7
 
8
8
  type QueryKey<TOptions extends Options> = [
9
9
  Pick<TOptions, "baseUrl" | "body" | "headers" | "path" | "query"> & {
@@ -290,7 +290,7 @@ declare const keyLogsInfiniteOptions: (options: Options<KeyLogsData>) => _tansta
290
290
  *
291
291
  * ## Confidence Score
292
292
  *
293
- * Each incorrect, missing or misspelled element subtracts from the overall confidence score.
293
+ * Each incorrect, missing or misspelt element subtracts from the overall confidence score.
294
294
  *
295
295
  * ### Deciding on an Acceptable Confidence Score Threshold
296
296
  *
@@ -336,20 +336,37 @@ declare const findAddressQueryKey: (options?: Options<FindAddressData>) => [Pick
336
336
  *
337
337
  * ## Query Filters
338
338
  *
339
- * Refine results by appending filters to your querystring, e.g. `postcode=sw1a2aa` for postcode `SW1A 2AA`. Invalid filters return an empty set without affecting your lookup count.
339
+ * Refine results by appending filters to your querystring, e.g. `postcode=sw1a2aa` for postcode `SW1A 2AA`.
340
+ *
341
+ * UK filter values ignore case. Postcode and post town filters also ignore spaces, so `postcode=sw1a2aa` and `postcode=SW1A 2AA` are the same filter. Stripping spaces can change the meaning of a partial value: `postcode_outward=TA1 2` is read as `TA12`, a different district. Send whole outward codes, sectors and postcodes.
340
342
  *
341
343
  * To apply multiple filter terms, use a comma-separated list, e.g. `postcode_outward=e1,e2,e3` combines result sets for E1, E2 and E3. Unless otherwise specified, all filters support multiple terms.
342
344
  *
343
345
  * Filters combine with `AND` logic, for instance `su_organisation_indicator=Y&postcode_area=n`. The maximum is **8** filter terms.
344
346
  *
347
+ * The API does not check filter names or values:
348
+ *
349
+ * - An unrecognised filter name is ignored, and results are returned as if it were absent
350
+ * - A value that matches no address, such as a postcode that does not exist, returns an empty `hits` list with code `2000`
351
+ *
352
+ * Neither returns an error or affects your lookup balance. Check parameter names against this reference, and treat an empty `hits` list after filtering as a possible bad value, not proof that no address exists.
353
+ *
345
354
  * ## Address Bias
346
355
  *
347
356
  * Preface bias searches with `bias_` to boost certain address results. Unlike filters, biasing allows unmatched addresses to appear with lower priority.
348
357
  *
349
- * For example, use `bias_postcode_area=SW,SE` to favour addresses in the `SW` and `SE` postcode areas. Invalid bias terms have no effect.
358
+ * For example, use `bias_postcode_area=SW,SE` to favour addresses in the `SW` and `SE` postcode areas. An unrecognised bias name or a value that matches nothing has no effect and returns no error, so a misspelt bias looks like a bias that did nothing.
359
+ *
360
+ * For UK addresses, bias by town with `bias_post_town`. `bias_city` applies to other countries only.
350
361
  *
351
362
  * Multiple bias terms are allowed unless stated otherwise, with a combined maximum of **5**.
352
363
  *
364
+ * ## Results
365
+ *
366
+ * `limit` defaults to 10 and is capped at 100. A query that is a full UK postcode returns every address at that postcode, up to 100, whatever `limit` says.
367
+ *
368
+ * Hits are ordered by relevance but carry no score, and the API returns its closest matches even for an unlikely query. A hit is a candidate, not a confirmed match. To check whether an address exists, send it to `POST /cleanse/addresses`, which returns a match with a confidence score or no match.
369
+ *
353
370
  * ## Suggestion Format
354
371
  *
355
372
  * The suggestion format is subject to change. We recommend using the suggestion as-is to avoid integration issues.
@@ -2,8 +2,8 @@ import type { dataTagSymbol, dataTagErrorSymbol } from "@tanstack/preact-query";
2
2
  import * as _tanstack_react_query from '@tanstack/preact-query';
3
3
  import * as _tanstack_preact_query from '@tanstack/preact-query';
4
4
  import { UseMutationOptions, InfiniteData } from '@tanstack/preact-query';
5
- import { O as Options } from './sdk.gen-D97oQip1.js';
6
- import { e as AddressCleanseData, h as AddressCleanseResponse, f as AddressCleanseError, n as AddressesData, an as CreateConfigData, aq as CreateConfigResponse, ao as CreateConfigError, as as CreateLicenseeData, av as CreateLicenseeResponse, at as CreateLicenseeError, az as DeleteConfigData, aC as DeleteConfigResponse, aA as DeleteConfigError, aE as DeleteLicenseeData, aH as DeleteLicenseeResponse, aF as DeleteLicenseeError, aP as EmailValidationData, F as FindAddressData, K as AutocompleteResponse, aV as ErrorResponse, a_ as FindPlaceData, ch as PlaceResponse, bg as KeyAvailabilityData, I as ApiKeyResponse, bl as KeyDetailsData, z as ApiKeyDetailsResponse, bq as KeyLogsData, bv as KeyUsageData, J as ApiKeyUsageResponse, bK as ListConfigsData, af as ConfigsResponse, bP as ListLicenseesData, bI as LicenseesResponse, c7 as PhoneNumberValidationData, P as PostcodesData, cy as RegenerateLicenseeKeyData, cB as RegenerateLicenseeKeyResponse, cz as RegenerateLicenseeKeyError, cE as ResolveAddressData, cI as ResolvePlaceData, cO as RetrieveConfigData, ad as ConfigResponse, cP as RetrieveConfigError, cT as RetrieveLicenseeData, bH as LicenseeResponse, d5 as UpdateConfigData, d8 as UpdateConfigResponse, d6 as UpdateConfigError, da as UpdateKeyDetailsData, dd as UpdateKeyDetailsResponse, db as UpdateKeyDetailsError, df as UpdateLicenseeData, di as UpdateLicenseeResponse, dg as UpdateLicenseeError, l as AddressResponse, o as AddressesError, aO as EmailResponse, c6 as PhoneNumberResponse, cr as PostcodeResponse, cu as PostcodesError, b6 as GbrResolveAddressResponse, cL as ResolvePlaceResponse } from './types.gen-8XgmJrsh.js';
5
+ import { O as Options } from './sdk.gen-zc4tEWtp.js';
6
+ import { e as AddressCleanseData, h as AddressCleanseResponse, f as AddressCleanseError, n as AddressesData, an as CreateConfigData, aq as CreateConfigResponse, ao as CreateConfigError, as as CreateLicenseeData, av as CreateLicenseeResponse, at as CreateLicenseeError, az as DeleteConfigData, aC as DeleteConfigResponse, aA as DeleteConfigError, aE as DeleteLicenseeData, aH as DeleteLicenseeResponse, aF as DeleteLicenseeError, aP as EmailValidationData, F as FindAddressData, K as AutocompleteResponse, aV as ErrorResponse, a_ as FindPlaceData, ch as PlaceResponse, bg as KeyAvailabilityData, I as ApiKeyResponse, bl as KeyDetailsData, z as ApiKeyDetailsResponse, bq as KeyLogsData, bv as KeyUsageData, J as ApiKeyUsageResponse, bK as ListConfigsData, af as ConfigsResponse, bP as ListLicenseesData, bI as LicenseesResponse, c7 as PhoneNumberValidationData, P as PostcodesData, cy as RegenerateLicenseeKeyData, cB as RegenerateLicenseeKeyResponse, cz as RegenerateLicenseeKeyError, cE as ResolveAddressData, cI as ResolvePlaceData, cO as RetrieveConfigData, ad as ConfigResponse, cP as RetrieveConfigError, cT as RetrieveLicenseeData, bH as LicenseeResponse, d5 as UpdateConfigData, d8 as UpdateConfigResponse, d6 as UpdateConfigError, da as UpdateKeyDetailsData, dd as UpdateKeyDetailsResponse, db as UpdateKeyDetailsError, df as UpdateLicenseeData, di as UpdateLicenseeResponse, dg as UpdateLicenseeError, l as AddressResponse, o as AddressesError, aO as EmailResponse, c6 as PhoneNumberResponse, cr as PostcodeResponse, cu as PostcodesError, b6 as GbrResolveAddressResponse, cL as ResolvePlaceResponse } from './types.gen-eu0NKk1D.js';
7
7
 
8
8
  type QueryKey<TOptions extends Options> = [
9
9
  Pick<TOptions, "baseUrl" | "body" | "headers" | "path" | "query"> & {
@@ -290,7 +290,7 @@ declare const keyLogsInfiniteOptions: (options: Options<KeyLogsData>) => _tansta
290
290
  *
291
291
  * ## Confidence Score
292
292
  *
293
- * Each incorrect, missing or misspelled element subtracts from the overall confidence score.
293
+ * Each incorrect, missing or misspelt element subtracts from the overall confidence score.
294
294
  *
295
295
  * ### Deciding on an Acceptable Confidence Score Threshold
296
296
  *
@@ -336,20 +336,37 @@ declare const findAddressQueryKey: (options?: Options<FindAddressData>) => [Pick
336
336
  *
337
337
  * ## Query Filters
338
338
  *
339
- * Refine results by appending filters to your querystring, e.g. `postcode=sw1a2aa` for postcode `SW1A 2AA`. Invalid filters return an empty set without affecting your lookup count.
339
+ * Refine results by appending filters to your querystring, e.g. `postcode=sw1a2aa` for postcode `SW1A 2AA`.
340
+ *
341
+ * UK filter values ignore case. Postcode and post town filters also ignore spaces, so `postcode=sw1a2aa` and `postcode=SW1A 2AA` are the same filter. Stripping spaces can change the meaning of a partial value: `postcode_outward=TA1 2` is read as `TA12`, a different district. Send whole outward codes, sectors and postcodes.
340
342
  *
341
343
  * To apply multiple filter terms, use a comma-separated list, e.g. `postcode_outward=e1,e2,e3` combines result sets for E1, E2 and E3. Unless otherwise specified, all filters support multiple terms.
342
344
  *
343
345
  * Filters combine with `AND` logic, for instance `su_organisation_indicator=Y&postcode_area=n`. The maximum is **8** filter terms.
344
346
  *
347
+ * The API does not check filter names or values:
348
+ *
349
+ * - An unrecognised filter name is ignored, and results are returned as if it were absent
350
+ * - A value that matches no address, such as a postcode that does not exist, returns an empty `hits` list with code `2000`
351
+ *
352
+ * Neither returns an error or affects your lookup balance. Check parameter names against this reference, and treat an empty `hits` list after filtering as a possible bad value, not proof that no address exists.
353
+ *
345
354
  * ## Address Bias
346
355
  *
347
356
  * Preface bias searches with `bias_` to boost certain address results. Unlike filters, biasing allows unmatched addresses to appear with lower priority.
348
357
  *
349
- * For example, use `bias_postcode_area=SW,SE` to favour addresses in the `SW` and `SE` postcode areas. Invalid bias terms have no effect.
358
+ * For example, use `bias_postcode_area=SW,SE` to favour addresses in the `SW` and `SE` postcode areas. An unrecognised bias name or a value that matches nothing has no effect and returns no error, so a misspelt bias looks like a bias that did nothing.
359
+ *
360
+ * For UK addresses, bias by town with `bias_post_town`. `bias_city` applies to other countries only.
350
361
  *
351
362
  * Multiple bias terms are allowed unless stated otherwise, with a combined maximum of **5**.
352
363
  *
364
+ * ## Results
365
+ *
366
+ * `limit` defaults to 10 and is capped at 100. A query that is a full UK postcode returns every address at that postcode, up to 100, whatever `limit` says.
367
+ *
368
+ * Hits are ordered by relevance but carry no score, and the API returns its closest matches even for an unlikely query. A hit is a candidate, not a confirmed match. To check whether an address exists, send it to `POST /cleanse/addresses`, which returns a match with a confidence score or no match.
369
+ *
353
370
  * ## Suggestion Format
354
371
  *
355
372
  * The suggestion format is subject to change. We recommend using the suggestion as-is to avoid integration issues.
@@ -1,8 +1,8 @@
1
1
  import type { dataTagSymbol, dataTagErrorSymbol } from "@tanstack/react-query";
2
2
  import * as _tanstack_react_query from '@tanstack/react-query';
3
3
  import { UseMutationOptions, InfiniteData } from '@tanstack/react-query';
4
- import { O as Options } from './sdk.gen-DFwujfn3.cjs';
5
- import { e as AddressCleanseData, h as AddressCleanseResponse, f as AddressCleanseError, n as AddressesData, an as CreateConfigData, aq as CreateConfigResponse, ao as CreateConfigError, as as CreateLicenseeData, av as CreateLicenseeResponse, at as CreateLicenseeError, az as DeleteConfigData, aC as DeleteConfigResponse, aA as DeleteConfigError, aE as DeleteLicenseeData, aH as DeleteLicenseeResponse, aF as DeleteLicenseeError, aP as EmailValidationData, F as FindAddressData, K as AutocompleteResponse, aV as ErrorResponse, a_ as FindPlaceData, ch as PlaceResponse, bg as KeyAvailabilityData, I as ApiKeyResponse, bl as KeyDetailsData, z as ApiKeyDetailsResponse, bq as KeyLogsData, bv as KeyUsageData, J as ApiKeyUsageResponse, bK as ListConfigsData, af as ConfigsResponse, bP as ListLicenseesData, bI as LicenseesResponse, c7 as PhoneNumberValidationData, P as PostcodesData, cy as RegenerateLicenseeKeyData, cB as RegenerateLicenseeKeyResponse, cz as RegenerateLicenseeKeyError, cE as ResolveAddressData, cI as ResolvePlaceData, cO as RetrieveConfigData, ad as ConfigResponse, cP as RetrieveConfigError, cT as RetrieveLicenseeData, bH as LicenseeResponse, d5 as UpdateConfigData, d8 as UpdateConfigResponse, d6 as UpdateConfigError, da as UpdateKeyDetailsData, dd as UpdateKeyDetailsResponse, db as UpdateKeyDetailsError, df as UpdateLicenseeData, di as UpdateLicenseeResponse, dg as UpdateLicenseeError, l as AddressResponse, o as AddressesError, aO as EmailResponse, c6 as PhoneNumberResponse, cr as PostcodeResponse, cu as PostcodesError, b6 as GbrResolveAddressResponse, cL as ResolvePlaceResponse } from './types.gen-8XgmJrsh.cjs';
4
+ import { O as Options } from './sdk.gen-CBaQpHoG.cjs';
5
+ import { e as AddressCleanseData, h as AddressCleanseResponse, f as AddressCleanseError, n as AddressesData, an as CreateConfigData, aq as CreateConfigResponse, ao as CreateConfigError, as as CreateLicenseeData, av as CreateLicenseeResponse, at as CreateLicenseeError, az as DeleteConfigData, aC as DeleteConfigResponse, aA as DeleteConfigError, aE as DeleteLicenseeData, aH as DeleteLicenseeResponse, aF as DeleteLicenseeError, aP as EmailValidationData, F as FindAddressData, K as AutocompleteResponse, aV as ErrorResponse, a_ as FindPlaceData, ch as PlaceResponse, bg as KeyAvailabilityData, I as ApiKeyResponse, bl as KeyDetailsData, z as ApiKeyDetailsResponse, bq as KeyLogsData, bv as KeyUsageData, J as ApiKeyUsageResponse, bK as ListConfigsData, af as ConfigsResponse, bP as ListLicenseesData, bI as LicenseesResponse, c7 as PhoneNumberValidationData, P as PostcodesData, cy as RegenerateLicenseeKeyData, cB as RegenerateLicenseeKeyResponse, cz as RegenerateLicenseeKeyError, cE as ResolveAddressData, cI as ResolvePlaceData, cO as RetrieveConfigData, ad as ConfigResponse, cP as RetrieveConfigError, cT as RetrieveLicenseeData, bH as LicenseeResponse, d5 as UpdateConfigData, d8 as UpdateConfigResponse, d6 as UpdateConfigError, da as UpdateKeyDetailsData, dd as UpdateKeyDetailsResponse, db as UpdateKeyDetailsError, df as UpdateLicenseeData, di as UpdateLicenseeResponse, dg as UpdateLicenseeError, l as AddressResponse, o as AddressesError, aO as EmailResponse, c6 as PhoneNumberResponse, cr as PostcodeResponse, cu as PostcodesError, b6 as GbrResolveAddressResponse, cL as ResolvePlaceResponse } from './types.gen-eu0NKk1D.cjs';
6
6
 
7
7
  type QueryKey<TOptions extends Options> = [
8
8
  Pick<TOptions, "baseUrl" | "body" | "headers" | "path" | "query"> & {
@@ -289,7 +289,7 @@ declare const keyLogsInfiniteOptions: (options: Options<KeyLogsData>) => _tansta
289
289
  *
290
290
  * ## Confidence Score
291
291
  *
292
- * Each incorrect, missing or misspelled element subtracts from the overall confidence score.
292
+ * Each incorrect, missing or misspelt element subtracts from the overall confidence score.
293
293
  *
294
294
  * ### Deciding on an Acceptable Confidence Score Threshold
295
295
  *
@@ -335,20 +335,37 @@ declare const findAddressQueryKey: (options?: Options<FindAddressData>) => [Pick
335
335
  *
336
336
  * ## Query Filters
337
337
  *
338
- * Refine results by appending filters to your querystring, e.g. `postcode=sw1a2aa` for postcode `SW1A 2AA`. Invalid filters return an empty set without affecting your lookup count.
338
+ * Refine results by appending filters to your querystring, e.g. `postcode=sw1a2aa` for postcode `SW1A 2AA`.
339
+ *
340
+ * UK filter values ignore case. Postcode and post town filters also ignore spaces, so `postcode=sw1a2aa` and `postcode=SW1A 2AA` are the same filter. Stripping spaces can change the meaning of a partial value: `postcode_outward=TA1 2` is read as `TA12`, a different district. Send whole outward codes, sectors and postcodes.
339
341
  *
340
342
  * To apply multiple filter terms, use a comma-separated list, e.g. `postcode_outward=e1,e2,e3` combines result sets for E1, E2 and E3. Unless otherwise specified, all filters support multiple terms.
341
343
  *
342
344
  * Filters combine with `AND` logic, for instance `su_organisation_indicator=Y&postcode_area=n`. The maximum is **8** filter terms.
343
345
  *
346
+ * The API does not check filter names or values:
347
+ *
348
+ * - An unrecognised filter name is ignored, and results are returned as if it were absent
349
+ * - A value that matches no address, such as a postcode that does not exist, returns an empty `hits` list with code `2000`
350
+ *
351
+ * Neither returns an error or affects your lookup balance. Check parameter names against this reference, and treat an empty `hits` list after filtering as a possible bad value, not proof that no address exists.
352
+ *
344
353
  * ## Address Bias
345
354
  *
346
355
  * Preface bias searches with `bias_` to boost certain address results. Unlike filters, biasing allows unmatched addresses to appear with lower priority.
347
356
  *
348
- * For example, use `bias_postcode_area=SW,SE` to favour addresses in the `SW` and `SE` postcode areas. Invalid bias terms have no effect.
357
+ * For example, use `bias_postcode_area=SW,SE` to favour addresses in the `SW` and `SE` postcode areas. An unrecognised bias name or a value that matches nothing has no effect and returns no error, so a misspelt bias looks like a bias that did nothing.
358
+ *
359
+ * For UK addresses, bias by town with `bias_post_town`. `bias_city` applies to other countries only.
349
360
  *
350
361
  * Multiple bias terms are allowed unless stated otherwise, with a combined maximum of **5**.
351
362
  *
363
+ * ## Results
364
+ *
365
+ * `limit` defaults to 10 and is capped at 100. A query that is a full UK postcode returns every address at that postcode, up to 100, whatever `limit` says.
366
+ *
367
+ * Hits are ordered by relevance but carry no score, and the API returns its closest matches even for an unlikely query. A hit is a candidate, not a confirmed match. To check whether an address exists, send it to `POST /cleanse/addresses`, which returns a match with a confidence score or no match.
368
+ *
352
369
  * ## Suggestion Format
353
370
  *
354
371
  * The suggestion format is subject to change. We recommend using the suggestion as-is to avoid integration issues.
@@ -1,8 +1,8 @@
1
1
  import type { dataTagSymbol, dataTagErrorSymbol } from "@tanstack/react-query";
2
2
  import * as _tanstack_react_query from '@tanstack/react-query';
3
3
  import { UseMutationOptions, InfiniteData } from '@tanstack/react-query';
4
- import { O as Options } from './sdk.gen-D97oQip1.js';
5
- import { e as AddressCleanseData, h as AddressCleanseResponse, f as AddressCleanseError, n as AddressesData, an as CreateConfigData, aq as CreateConfigResponse, ao as CreateConfigError, as as CreateLicenseeData, av as CreateLicenseeResponse, at as CreateLicenseeError, az as DeleteConfigData, aC as DeleteConfigResponse, aA as DeleteConfigError, aE as DeleteLicenseeData, aH as DeleteLicenseeResponse, aF as DeleteLicenseeError, aP as EmailValidationData, F as FindAddressData, K as AutocompleteResponse, aV as ErrorResponse, a_ as FindPlaceData, ch as PlaceResponse, bg as KeyAvailabilityData, I as ApiKeyResponse, bl as KeyDetailsData, z as ApiKeyDetailsResponse, bq as KeyLogsData, bv as KeyUsageData, J as ApiKeyUsageResponse, bK as ListConfigsData, af as ConfigsResponse, bP as ListLicenseesData, bI as LicenseesResponse, c7 as PhoneNumberValidationData, P as PostcodesData, cy as RegenerateLicenseeKeyData, cB as RegenerateLicenseeKeyResponse, cz as RegenerateLicenseeKeyError, cE as ResolveAddressData, cI as ResolvePlaceData, cO as RetrieveConfigData, ad as ConfigResponse, cP as RetrieveConfigError, cT as RetrieveLicenseeData, bH as LicenseeResponse, d5 as UpdateConfigData, d8 as UpdateConfigResponse, d6 as UpdateConfigError, da as UpdateKeyDetailsData, dd as UpdateKeyDetailsResponse, db as UpdateKeyDetailsError, df as UpdateLicenseeData, di as UpdateLicenseeResponse, dg as UpdateLicenseeError, l as AddressResponse, o as AddressesError, aO as EmailResponse, c6 as PhoneNumberResponse, cr as PostcodeResponse, cu as PostcodesError, b6 as GbrResolveAddressResponse, cL as ResolvePlaceResponse } from './types.gen-8XgmJrsh.js';
4
+ import { O as Options } from './sdk.gen-zc4tEWtp.js';
5
+ import { e as AddressCleanseData, h as AddressCleanseResponse, f as AddressCleanseError, n as AddressesData, an as CreateConfigData, aq as CreateConfigResponse, ao as CreateConfigError, as as CreateLicenseeData, av as CreateLicenseeResponse, at as CreateLicenseeError, az as DeleteConfigData, aC as DeleteConfigResponse, aA as DeleteConfigError, aE as DeleteLicenseeData, aH as DeleteLicenseeResponse, aF as DeleteLicenseeError, aP as EmailValidationData, F as FindAddressData, K as AutocompleteResponse, aV as ErrorResponse, a_ as FindPlaceData, ch as PlaceResponse, bg as KeyAvailabilityData, I as ApiKeyResponse, bl as KeyDetailsData, z as ApiKeyDetailsResponse, bq as KeyLogsData, bv as KeyUsageData, J as ApiKeyUsageResponse, bK as ListConfigsData, af as ConfigsResponse, bP as ListLicenseesData, bI as LicenseesResponse, c7 as PhoneNumberValidationData, P as PostcodesData, cy as RegenerateLicenseeKeyData, cB as RegenerateLicenseeKeyResponse, cz as RegenerateLicenseeKeyError, cE as ResolveAddressData, cI as ResolvePlaceData, cO as RetrieveConfigData, ad as ConfigResponse, cP as RetrieveConfigError, cT as RetrieveLicenseeData, bH as LicenseeResponse, d5 as UpdateConfigData, d8 as UpdateConfigResponse, d6 as UpdateConfigError, da as UpdateKeyDetailsData, dd as UpdateKeyDetailsResponse, db as UpdateKeyDetailsError, df as UpdateLicenseeData, di as UpdateLicenseeResponse, dg as UpdateLicenseeError, l as AddressResponse, o as AddressesError, aO as EmailResponse, c6 as PhoneNumberResponse, cr as PostcodeResponse, cu as PostcodesError, b6 as GbrResolveAddressResponse, cL as ResolvePlaceResponse } from './types.gen-eu0NKk1D.js';
6
6
 
7
7
  type QueryKey<TOptions extends Options> = [
8
8
  Pick<TOptions, "baseUrl" | "body" | "headers" | "path" | "query"> & {
@@ -289,7 +289,7 @@ declare const keyLogsInfiniteOptions: (options: Options<KeyLogsData>) => _tansta
289
289
  *
290
290
  * ## Confidence Score
291
291
  *
292
- * Each incorrect, missing or misspelled element subtracts from the overall confidence score.
292
+ * Each incorrect, missing or misspelt element subtracts from the overall confidence score.
293
293
  *
294
294
  * ### Deciding on an Acceptable Confidence Score Threshold
295
295
  *
@@ -335,20 +335,37 @@ declare const findAddressQueryKey: (options?: Options<FindAddressData>) => [Pick
335
335
  *
336
336
  * ## Query Filters
337
337
  *
338
- * Refine results by appending filters to your querystring, e.g. `postcode=sw1a2aa` for postcode `SW1A 2AA`. Invalid filters return an empty set without affecting your lookup count.
338
+ * Refine results by appending filters to your querystring, e.g. `postcode=sw1a2aa` for postcode `SW1A 2AA`.
339
+ *
340
+ * UK filter values ignore case. Postcode and post town filters also ignore spaces, so `postcode=sw1a2aa` and `postcode=SW1A 2AA` are the same filter. Stripping spaces can change the meaning of a partial value: `postcode_outward=TA1 2` is read as `TA12`, a different district. Send whole outward codes, sectors and postcodes.
339
341
  *
340
342
  * To apply multiple filter terms, use a comma-separated list, e.g. `postcode_outward=e1,e2,e3` combines result sets for E1, E2 and E3. Unless otherwise specified, all filters support multiple terms.
341
343
  *
342
344
  * Filters combine with `AND` logic, for instance `su_organisation_indicator=Y&postcode_area=n`. The maximum is **8** filter terms.
343
345
  *
346
+ * The API does not check filter names or values:
347
+ *
348
+ * - An unrecognised filter name is ignored, and results are returned as if it were absent
349
+ * - A value that matches no address, such as a postcode that does not exist, returns an empty `hits` list with code `2000`
350
+ *
351
+ * Neither returns an error or affects your lookup balance. Check parameter names against this reference, and treat an empty `hits` list after filtering as a possible bad value, not proof that no address exists.
352
+ *
344
353
  * ## Address Bias
345
354
  *
346
355
  * Preface bias searches with `bias_` to boost certain address results. Unlike filters, biasing allows unmatched addresses to appear with lower priority.
347
356
  *
348
- * For example, use `bias_postcode_area=SW,SE` to favour addresses in the `SW` and `SE` postcode areas. Invalid bias terms have no effect.
357
+ * For example, use `bias_postcode_area=SW,SE` to favour addresses in the `SW` and `SE` postcode areas. An unrecognised bias name or a value that matches nothing has no effect and returns no error, so a misspelt bias looks like a bias that did nothing.
358
+ *
359
+ * For UK addresses, bias by town with `bias_post_town`. `bias_city` applies to other countries only.
349
360
  *
350
361
  * Multiple bias terms are allowed unless stated otherwise, with a combined maximum of **5**.
351
362
  *
363
+ * ## Results
364
+ *
365
+ * `limit` defaults to 10 and is capped at 100. A query that is a full UK postcode returns every address at that postcode, up to 100, whatever `limit` says.
366
+ *
367
+ * Hits are ordered by relevance but carry no score, and the API returns its closest matches even for an unlikely query. A hit is a candidate, not a confirmed match. To check whether an address exists, send it to `POST /cleanse/addresses`, which returns a match with a confidence score or no match.
368
+ *
352
369
  * ## Suggestion Format
353
370
  *
354
371
  * The suggestion format is subject to change. We recommend using the suggestion as-is to avoid integration issues.
@@ -1,4 +1,4 @@
1
- import { dn as TDataShape, dp as Options$1, C as Client, e as AddressCleanseData, dq as RequestResult, i as AddressCleanseResponses, g as AddressCleanseErrors, n as AddressesData, r as AddressesResponses, p as AddressesErrors, an as CreateConfigData, ar as CreateConfigResponses, ap as CreateConfigErrors, as as CreateLicenseeData, aw as CreateLicenseeResponses, au as CreateLicenseeErrors, az as DeleteConfigData, aD as DeleteConfigResponses, aB as DeleteConfigErrors, aE as DeleteLicenseeData, aI as DeleteLicenseeResponses, aG as DeleteLicenseeErrors, aP as EmailValidationData, aT as EmailValidationResponses, aR as EmailValidationErrors, F as FindAddressData, aZ as FindAddressResponses, aY as FindAddressErrors, a_ as FindPlaceData, b2 as FindPlaceResponses, b0 as FindPlaceErrors, bg as KeyAvailabilityData, bk as KeyAvailabilityResponses, bi as KeyAvailabilityErrors, bl as KeyDetailsData, bp as KeyDetailsResponses, bn as KeyDetailsErrors, bq as KeyLogsData, bu as KeyLogsResponses, bs as KeyLogsErrors, bv as KeyUsageData, bz as KeyUsageResponses, bx as KeyUsageErrors, bK as ListConfigsData, bO as ListConfigsResponses, bM as ListConfigsErrors, bP as ListLicenseesData, bT as ListLicenseesResponses, bR as ListLicenseesErrors, c7 as PhoneNumberValidationData, cb as PhoneNumberValidationResponses, c9 as PhoneNumberValidationErrors, P as PostcodesData, cx as PostcodesResponses, cv as PostcodesErrors, cy as RegenerateLicenseeKeyData, cC as RegenerateLicenseeKeyResponses, cA as RegenerateLicenseeKeyErrors, cE as ResolveAddressData, cH as ResolveAddressResponses, cG as ResolveAddressErrors, cI as ResolvePlaceData, cN as ResolvePlaceResponses, cK as ResolvePlaceErrors, cO as RetrieveConfigData, cS as RetrieveConfigResponses, cQ as RetrieveConfigErrors, cT as RetrieveLicenseeData, cX as RetrieveLicenseeResponses, cV as RetrieveLicenseeErrors, d5 as UpdateConfigData, d9 as UpdateConfigResponses, d7 as UpdateConfigErrors, da as UpdateKeyDetailsData, de as UpdateKeyDetailsResponses, dc as UpdateKeyDetailsErrors, df as UpdateLicenseeData, dj as UpdateLicenseeResponses, dh as UpdateLicenseeErrors } from './types.gen-8XgmJrsh.cjs';
1
+ import { dn as TDataShape, dp as Options$1, C as Client, e as AddressCleanseData, dq as RequestResult, i as AddressCleanseResponses, g as AddressCleanseErrors, n as AddressesData, r as AddressesResponses, p as AddressesErrors, an as CreateConfigData, ar as CreateConfigResponses, ap as CreateConfigErrors, as as CreateLicenseeData, aw as CreateLicenseeResponses, au as CreateLicenseeErrors, az as DeleteConfigData, aD as DeleteConfigResponses, aB as DeleteConfigErrors, aE as DeleteLicenseeData, aI as DeleteLicenseeResponses, aG as DeleteLicenseeErrors, aP as EmailValidationData, aT as EmailValidationResponses, aR as EmailValidationErrors, F as FindAddressData, aZ as FindAddressResponses, aY as FindAddressErrors, a_ as FindPlaceData, b2 as FindPlaceResponses, b0 as FindPlaceErrors, bg as KeyAvailabilityData, bk as KeyAvailabilityResponses, bi as KeyAvailabilityErrors, bl as KeyDetailsData, bp as KeyDetailsResponses, bn as KeyDetailsErrors, bq as KeyLogsData, bu as KeyLogsResponses, bs as KeyLogsErrors, bv as KeyUsageData, bz as KeyUsageResponses, bx as KeyUsageErrors, bK as ListConfigsData, bO as ListConfigsResponses, bM as ListConfigsErrors, bP as ListLicenseesData, bT as ListLicenseesResponses, bR as ListLicenseesErrors, c7 as PhoneNumberValidationData, cb as PhoneNumberValidationResponses, c9 as PhoneNumberValidationErrors, P as PostcodesData, cx as PostcodesResponses, cv as PostcodesErrors, cy as RegenerateLicenseeKeyData, cC as RegenerateLicenseeKeyResponses, cA as RegenerateLicenseeKeyErrors, cE as ResolveAddressData, cH as ResolveAddressResponses, cG as ResolveAddressErrors, cI as ResolvePlaceData, cN as ResolvePlaceResponses, cK as ResolvePlaceErrors, cO as RetrieveConfigData, cS as RetrieveConfigResponses, cQ as RetrieveConfigErrors, cT as RetrieveLicenseeData, cX as RetrieveLicenseeResponses, cV as RetrieveLicenseeErrors, d5 as UpdateConfigData, d9 as UpdateConfigResponses, d7 as UpdateConfigErrors, da as UpdateKeyDetailsData, de as UpdateKeyDetailsResponses, dc as UpdateKeyDetailsErrors, df as UpdateLicenseeData, dj as UpdateLicenseeResponses, dh as UpdateLicenseeErrors } from './types.gen-eu0NKk1D.cjs';
2
2
 
3
3
  type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options$1<TData, ThrowOnError, TResponse> & {
4
4
  /**
@@ -20,7 +20,7 @@ type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean
20
20
  *
21
21
  * Each request looks up one postcode. To extract the addresses for several postcodes, send one request per postcode.
22
22
  *
23
- * Use it to power postcode driven address searches, like [Postcode Lookup](https://docs.ideal-postcodes.co.uk/docs/postcode-lookup).
23
+ * Use it to power postcode-driven address searches, like [Postcode Lookup](https://docs.ideal-postcodes.co.uk/docs/postcode-lookup).
24
24
  *
25
25
  * Postcode lookup covers the United Kingdom, the Republic of Ireland, the Netherlands and Singapore. The API detects the format of the postcode you submit. UK and Irish postcodes are searched by default. For a Dutch or Singapore postcode, set `context` to `NLD` or `SGP`, or to `GLOBAL` to accept any supported format.
26
26
  *
@@ -42,16 +42,24 @@ type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean
42
42
  *
43
43
  * ### Suggestions
44
44
  *
45
- * If a postcode cannot be found, the API returns up to 5 of the closest matching postcodes. It corrects common errors first (e.g. mixing up `O` and `0` or `I` and `1`).
45
+ * If a postcode cannot be found, the API returns up to 10 of the closest matching postcodes. It corrects common errors first (e.g. mixing up `O` and `0` or `I` and `1`).
46
46
  *
47
47
  * If the suggestion list is small (fewer than 3), the correct postcode is likely to be among them. Notify the user or trigger new searches immediately.
48
48
  *
49
49
  * The suggestion list is empty if the postcode has deviated too far from a valid postcode format.
50
50
  *
51
- * ## Multiple Residence
51
+ * ## Paging
52
52
  *
53
53
  * A small number of postcodes return more than 100 premises. The API returns 100 addresses per page, so use `page` to paginate the result set.
54
54
  *
55
+ * ## Multiple Residence
56
+ *
57
+ * With Multiple Residence on your key, each household in a shared building is its own row after the building's PAF row. The rows share the building's `udprn` and usually its `uprn`, and differ by `umprn`. Key each row on `umprn` where it is set, not `udprn`.
58
+ *
59
+ * ## Welsh Addresses
60
+ *
61
+ * With PAF Welsh on your key, a premise in Wales that has a Welsh address appears twice: once in English and once in Welsh (e.g. post town `Newport` and `Casnewydd`). The two rows share `udprn` and `uprn`. `language` tells them apart (`en` or `cy`). Keep one row per `udprn` and `language` pair, or filter on the language you need.
62
+ *
55
63
  */
56
64
  declare const postcodes: <ThrowOnError extends boolean = true>(options: Options<PostcodesData, ThrowOnError>) => RequestResult<PostcodesResponses, PostcodesErrors, ThrowOnError, "fields">;
57
65
  /**
@@ -142,7 +150,7 @@ declare const keyLogs: <ThrowOnError extends boolean = true>(options: Options<Ke
142
150
  *
143
151
  * ## Confidence Score
144
152
  *
145
- * Each incorrect, missing or misspelled element subtracts from the overall confidence score.
153
+ * Each incorrect, missing or misspelt element subtracts from the overall confidence score.
146
154
  *
147
155
  * ### Deciding on an Acceptable Confidence Score Threshold
148
156
  *
@@ -183,20 +191,37 @@ declare const addressCleanse: <ThrowOnError extends boolean = true>(options: Opt
183
191
  *
184
192
  * ## Query Filters
185
193
  *
186
- * Refine results by appending filters to your querystring, e.g. `postcode=sw1a2aa` for postcode `SW1A 2AA`. Invalid filters return an empty set without affecting your lookup count.
194
+ * Refine results by appending filters to your querystring, e.g. `postcode=sw1a2aa` for postcode `SW1A 2AA`.
195
+ *
196
+ * UK filter values ignore case. Postcode and post town filters also ignore spaces, so `postcode=sw1a2aa` and `postcode=SW1A 2AA` are the same filter. Stripping spaces can change the meaning of a partial value: `postcode_outward=TA1 2` is read as `TA12`, a different district. Send whole outward codes, sectors and postcodes.
187
197
  *
188
198
  * To apply multiple filter terms, use a comma-separated list, e.g. `postcode_outward=e1,e2,e3` combines result sets for E1, E2 and E3. Unless otherwise specified, all filters support multiple terms.
189
199
  *
190
200
  * Filters combine with `AND` logic, for instance `su_organisation_indicator=Y&postcode_area=n`. The maximum is **8** filter terms.
191
201
  *
202
+ * The API does not check filter names or values:
203
+ *
204
+ * - An unrecognised filter name is ignored, and results are returned as if it were absent
205
+ * - A value that matches no address, such as a postcode that does not exist, returns an empty `hits` list with code `2000`
206
+ *
207
+ * Neither returns an error or affects your lookup balance. Check parameter names against this reference, and treat an empty `hits` list after filtering as a possible bad value, not proof that no address exists.
208
+ *
192
209
  * ## Address Bias
193
210
  *
194
211
  * Preface bias searches with `bias_` to boost certain address results. Unlike filters, biasing allows unmatched addresses to appear with lower priority.
195
212
  *
196
- * For example, use `bias_postcode_area=SW,SE` to favour addresses in the `SW` and `SE` postcode areas. Invalid bias terms have no effect.
213
+ * For example, use `bias_postcode_area=SW,SE` to favour addresses in the `SW` and `SE` postcode areas. An unrecognised bias name or a value that matches nothing has no effect and returns no error, so a misspelt bias looks like a bias that did nothing.
214
+ *
215
+ * For UK addresses, bias by town with `bias_post_town`. `bias_city` applies to other countries only.
197
216
  *
198
217
  * Multiple bias terms are allowed unless stated otherwise, with a combined maximum of **5**.
199
218
  *
219
+ * ## Results
220
+ *
221
+ * `limit` defaults to 10 and is capped at 100. A query that is a full UK postcode returns every address at that postcode, up to 100, whatever `limit` says.
222
+ *
223
+ * Hits are ordered by relevance but carry no score, and the API returns its closest matches even for an unlikely query. A hit is a candidate, not a confirmed match. To check whether an address exists, send it to `POST /cleanse/addresses`, which returns a match with a confidence score or no match.
224
+ *
200
225
  * ## Suggestion Format
201
226
  *
202
227
  * The suggestion format is subject to change. We recommend using the suggestion as-is to avoid integration issues.
@@ -247,7 +272,7 @@ declare const resolveAddress: <ThrowOnError extends boolean = true>(options: Opt
247
272
  *
248
273
  * If a filter term is invalid, e.g. `postcode=SW1A2AAA`, the API returns an empty result set and charges no lookup.
249
274
  *
250
- * You can also scope using multiple terms for the same filter with a comma separated list of terms. E.g. Restrict results to E1, E2 and E3 outward codes: `postcode_outward=e1,e2,e3`. Multiple terms are `OR`'ed, i.e. the matching result sets are combined.
275
+ * You can also scope using multiple terms for the same filter with a comma-separated list of terms. E.g. Restrict results to E1, E2 and E3 outward codes: `postcode_outward=e1,e2,e3`. Multiple terms are `OR`'ed, i.e. the matching result sets are combined.
251
276
  *
252
277
  * All filters can accept multiple terms unless stated otherwise below.
253
278
  *
@@ -265,7 +290,7 @@ declare const resolveAddress: <ThrowOnError extends boolean = true>(options: Opt
265
290
  *
266
291
  * If a bias term is invalid, e.g. `bias_postcode=SW1A2AAA`, no bias is applied.
267
292
  *
268
- * You may scope using multiple terms for the same bias with a comma separated list of terms. E.g. Prefer results in the `E1`, `E2` and `E3` outward codes: `bias_postcode_outward=e1,e2,e3`.
293
+ * You may scope using multiple terms for the same bias with a comma-separated list of terms. E.g. Prefer results in the `E1`, `E2` and `E3` outward codes: `bias_postcode_outward=e1,e2,e3`.
269
294
  *
270
295
  * All biases can accept multiple terms unless stated otherwise below.
271
296
  *
@@ -1,4 +1,4 @@
1
- import { dn as TDataShape, dp as Options$1, C as Client, e as AddressCleanseData, dq as RequestResult, i as AddressCleanseResponses, g as AddressCleanseErrors, n as AddressesData, r as AddressesResponses, p as AddressesErrors, an as CreateConfigData, ar as CreateConfigResponses, ap as CreateConfigErrors, as as CreateLicenseeData, aw as CreateLicenseeResponses, au as CreateLicenseeErrors, az as DeleteConfigData, aD as DeleteConfigResponses, aB as DeleteConfigErrors, aE as DeleteLicenseeData, aI as DeleteLicenseeResponses, aG as DeleteLicenseeErrors, aP as EmailValidationData, aT as EmailValidationResponses, aR as EmailValidationErrors, F as FindAddressData, aZ as FindAddressResponses, aY as FindAddressErrors, a_ as FindPlaceData, b2 as FindPlaceResponses, b0 as FindPlaceErrors, bg as KeyAvailabilityData, bk as KeyAvailabilityResponses, bi as KeyAvailabilityErrors, bl as KeyDetailsData, bp as KeyDetailsResponses, bn as KeyDetailsErrors, bq as KeyLogsData, bu as KeyLogsResponses, bs as KeyLogsErrors, bv as KeyUsageData, bz as KeyUsageResponses, bx as KeyUsageErrors, bK as ListConfigsData, bO as ListConfigsResponses, bM as ListConfigsErrors, bP as ListLicenseesData, bT as ListLicenseesResponses, bR as ListLicenseesErrors, c7 as PhoneNumberValidationData, cb as PhoneNumberValidationResponses, c9 as PhoneNumberValidationErrors, P as PostcodesData, cx as PostcodesResponses, cv as PostcodesErrors, cy as RegenerateLicenseeKeyData, cC as RegenerateLicenseeKeyResponses, cA as RegenerateLicenseeKeyErrors, cE as ResolveAddressData, cH as ResolveAddressResponses, cG as ResolveAddressErrors, cI as ResolvePlaceData, cN as ResolvePlaceResponses, cK as ResolvePlaceErrors, cO as RetrieveConfigData, cS as RetrieveConfigResponses, cQ as RetrieveConfigErrors, cT as RetrieveLicenseeData, cX as RetrieveLicenseeResponses, cV as RetrieveLicenseeErrors, d5 as UpdateConfigData, d9 as UpdateConfigResponses, d7 as UpdateConfigErrors, da as UpdateKeyDetailsData, de as UpdateKeyDetailsResponses, dc as UpdateKeyDetailsErrors, df as UpdateLicenseeData, dj as UpdateLicenseeResponses, dh as UpdateLicenseeErrors } from './types.gen-8XgmJrsh.js';
1
+ import { dn as TDataShape, dp as Options$1, C as Client, e as AddressCleanseData, dq as RequestResult, i as AddressCleanseResponses, g as AddressCleanseErrors, n as AddressesData, r as AddressesResponses, p as AddressesErrors, an as CreateConfigData, ar as CreateConfigResponses, ap as CreateConfigErrors, as as CreateLicenseeData, aw as CreateLicenseeResponses, au as CreateLicenseeErrors, az as DeleteConfigData, aD as DeleteConfigResponses, aB as DeleteConfigErrors, aE as DeleteLicenseeData, aI as DeleteLicenseeResponses, aG as DeleteLicenseeErrors, aP as EmailValidationData, aT as EmailValidationResponses, aR as EmailValidationErrors, F as FindAddressData, aZ as FindAddressResponses, aY as FindAddressErrors, a_ as FindPlaceData, b2 as FindPlaceResponses, b0 as FindPlaceErrors, bg as KeyAvailabilityData, bk as KeyAvailabilityResponses, bi as KeyAvailabilityErrors, bl as KeyDetailsData, bp as KeyDetailsResponses, bn as KeyDetailsErrors, bq as KeyLogsData, bu as KeyLogsResponses, bs as KeyLogsErrors, bv as KeyUsageData, bz as KeyUsageResponses, bx as KeyUsageErrors, bK as ListConfigsData, bO as ListConfigsResponses, bM as ListConfigsErrors, bP as ListLicenseesData, bT as ListLicenseesResponses, bR as ListLicenseesErrors, c7 as PhoneNumberValidationData, cb as PhoneNumberValidationResponses, c9 as PhoneNumberValidationErrors, P as PostcodesData, cx as PostcodesResponses, cv as PostcodesErrors, cy as RegenerateLicenseeKeyData, cC as RegenerateLicenseeKeyResponses, cA as RegenerateLicenseeKeyErrors, cE as ResolveAddressData, cH as ResolveAddressResponses, cG as ResolveAddressErrors, cI as ResolvePlaceData, cN as ResolvePlaceResponses, cK as ResolvePlaceErrors, cO as RetrieveConfigData, cS as RetrieveConfigResponses, cQ as RetrieveConfigErrors, cT as RetrieveLicenseeData, cX as RetrieveLicenseeResponses, cV as RetrieveLicenseeErrors, d5 as UpdateConfigData, d9 as UpdateConfigResponses, d7 as UpdateConfigErrors, da as UpdateKeyDetailsData, de as UpdateKeyDetailsResponses, dc as UpdateKeyDetailsErrors, df as UpdateLicenseeData, dj as UpdateLicenseeResponses, dh as UpdateLicenseeErrors } from './types.gen-eu0NKk1D.js';
2
2
 
3
3
  type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options$1<TData, ThrowOnError, TResponse> & {
4
4
  /**
@@ -20,7 +20,7 @@ type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean
20
20
  *
21
21
  * Each request looks up one postcode. To extract the addresses for several postcodes, send one request per postcode.
22
22
  *
23
- * Use it to power postcode driven address searches, like [Postcode Lookup](https://docs.ideal-postcodes.co.uk/docs/postcode-lookup).
23
+ * Use it to power postcode-driven address searches, like [Postcode Lookup](https://docs.ideal-postcodes.co.uk/docs/postcode-lookup).
24
24
  *
25
25
  * Postcode lookup covers the United Kingdom, the Republic of Ireland, the Netherlands and Singapore. The API detects the format of the postcode you submit. UK and Irish postcodes are searched by default. For a Dutch or Singapore postcode, set `context` to `NLD` or `SGP`, or to `GLOBAL` to accept any supported format.
26
26
  *
@@ -42,16 +42,24 @@ type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean
42
42
  *
43
43
  * ### Suggestions
44
44
  *
45
- * If a postcode cannot be found, the API returns up to 5 of the closest matching postcodes. It corrects common errors first (e.g. mixing up `O` and `0` or `I` and `1`).
45
+ * If a postcode cannot be found, the API returns up to 10 of the closest matching postcodes. It corrects common errors first (e.g. mixing up `O` and `0` or `I` and `1`).
46
46
  *
47
47
  * If the suggestion list is small (fewer than 3), the correct postcode is likely to be among them. Notify the user or trigger new searches immediately.
48
48
  *
49
49
  * The suggestion list is empty if the postcode has deviated too far from a valid postcode format.
50
50
  *
51
- * ## Multiple Residence
51
+ * ## Paging
52
52
  *
53
53
  * A small number of postcodes return more than 100 premises. The API returns 100 addresses per page, so use `page` to paginate the result set.
54
54
  *
55
+ * ## Multiple Residence
56
+ *
57
+ * With Multiple Residence on your key, each household in a shared building is its own row after the building's PAF row. The rows share the building's `udprn` and usually its `uprn`, and differ by `umprn`. Key each row on `umprn` where it is set, not `udprn`.
58
+ *
59
+ * ## Welsh Addresses
60
+ *
61
+ * With PAF Welsh on your key, a premise in Wales that has a Welsh address appears twice: once in English and once in Welsh (e.g. post town `Newport` and `Casnewydd`). The two rows share `udprn` and `uprn`. `language` tells them apart (`en` or `cy`). Keep one row per `udprn` and `language` pair, or filter on the language you need.
62
+ *
55
63
  */
56
64
  declare const postcodes: <ThrowOnError extends boolean = true>(options: Options<PostcodesData, ThrowOnError>) => RequestResult<PostcodesResponses, PostcodesErrors, ThrowOnError, "fields">;
57
65
  /**
@@ -142,7 +150,7 @@ declare const keyLogs: <ThrowOnError extends boolean = true>(options: Options<Ke
142
150
  *
143
151
  * ## Confidence Score
144
152
  *
145
- * Each incorrect, missing or misspelled element subtracts from the overall confidence score.
153
+ * Each incorrect, missing or misspelt element subtracts from the overall confidence score.
146
154
  *
147
155
  * ### Deciding on an Acceptable Confidence Score Threshold
148
156
  *
@@ -183,20 +191,37 @@ declare const addressCleanse: <ThrowOnError extends boolean = true>(options: Opt
183
191
  *
184
192
  * ## Query Filters
185
193
  *
186
- * Refine results by appending filters to your querystring, e.g. `postcode=sw1a2aa` for postcode `SW1A 2AA`. Invalid filters return an empty set without affecting your lookup count.
194
+ * Refine results by appending filters to your querystring, e.g. `postcode=sw1a2aa` for postcode `SW1A 2AA`.
195
+ *
196
+ * UK filter values ignore case. Postcode and post town filters also ignore spaces, so `postcode=sw1a2aa` and `postcode=SW1A 2AA` are the same filter. Stripping spaces can change the meaning of a partial value: `postcode_outward=TA1 2` is read as `TA12`, a different district. Send whole outward codes, sectors and postcodes.
187
197
  *
188
198
  * To apply multiple filter terms, use a comma-separated list, e.g. `postcode_outward=e1,e2,e3` combines result sets for E1, E2 and E3. Unless otherwise specified, all filters support multiple terms.
189
199
  *
190
200
  * Filters combine with `AND` logic, for instance `su_organisation_indicator=Y&postcode_area=n`. The maximum is **8** filter terms.
191
201
  *
202
+ * The API does not check filter names or values:
203
+ *
204
+ * - An unrecognised filter name is ignored, and results are returned as if it were absent
205
+ * - A value that matches no address, such as a postcode that does not exist, returns an empty `hits` list with code `2000`
206
+ *
207
+ * Neither returns an error or affects your lookup balance. Check parameter names against this reference, and treat an empty `hits` list after filtering as a possible bad value, not proof that no address exists.
208
+ *
192
209
  * ## Address Bias
193
210
  *
194
211
  * Preface bias searches with `bias_` to boost certain address results. Unlike filters, biasing allows unmatched addresses to appear with lower priority.
195
212
  *
196
- * For example, use `bias_postcode_area=SW,SE` to favour addresses in the `SW` and `SE` postcode areas. Invalid bias terms have no effect.
213
+ * For example, use `bias_postcode_area=SW,SE` to favour addresses in the `SW` and `SE` postcode areas. An unrecognised bias name or a value that matches nothing has no effect and returns no error, so a misspelt bias looks like a bias that did nothing.
214
+ *
215
+ * For UK addresses, bias by town with `bias_post_town`. `bias_city` applies to other countries only.
197
216
  *
198
217
  * Multiple bias terms are allowed unless stated otherwise, with a combined maximum of **5**.
199
218
  *
219
+ * ## Results
220
+ *
221
+ * `limit` defaults to 10 and is capped at 100. A query that is a full UK postcode returns every address at that postcode, up to 100, whatever `limit` says.
222
+ *
223
+ * Hits are ordered by relevance but carry no score, and the API returns its closest matches even for an unlikely query. A hit is a candidate, not a confirmed match. To check whether an address exists, send it to `POST /cleanse/addresses`, which returns a match with a confidence score or no match.
224
+ *
200
225
  * ## Suggestion Format
201
226
  *
202
227
  * The suggestion format is subject to change. We recommend using the suggestion as-is to avoid integration issues.
@@ -247,7 +272,7 @@ declare const resolveAddress: <ThrowOnError extends boolean = true>(options: Opt
247
272
  *
248
273
  * If a filter term is invalid, e.g. `postcode=SW1A2AAA`, the API returns an empty result set and charges no lookup.
249
274
  *
250
- * You can also scope using multiple terms for the same filter with a comma separated list of terms. E.g. Restrict results to E1, E2 and E3 outward codes: `postcode_outward=e1,e2,e3`. Multiple terms are `OR`'ed, i.e. the matching result sets are combined.
275
+ * You can also scope using multiple terms for the same filter with a comma-separated list of terms. E.g. Restrict results to E1, E2 and E3 outward codes: `postcode_outward=e1,e2,e3`. Multiple terms are `OR`'ed, i.e. the matching result sets are combined.
251
276
  *
252
277
  * All filters can accept multiple terms unless stated otherwise below.
253
278
  *
@@ -265,7 +290,7 @@ declare const resolveAddress: <ThrowOnError extends boolean = true>(options: Opt
265
290
  *
266
291
  * If a bias term is invalid, e.g. `bias_postcode=SW1A2AAA`, no bias is applied.
267
292
  *
268
- * You may scope using multiple terms for the same bias with a comma separated list of terms. E.g. Prefer results in the `E1`, `E2` and `E3` outward codes: `bias_postcode_outward=e1,e2,e3`.
293
+ * You may scope using multiple terms for the same bias with a comma-separated list of terms. E.g. Prefer results in the `E1`, `E2` and `E3` outward codes: `bias_postcode_outward=e1,e2,e3`.
269
294
  *
270
295
  * All biases can accept multiple terms unless stated otherwise below.
271
296
  *
@@ -7605,9 +7605,9 @@ type AddressListItem = {
7605
7605
  *
7606
7606
  * May not be available for a small number of Great Britain addresses due to longer update cycles for Ordnance Survey's AddressBase datasets. Returns empty string "" in these instances, as it does for addresses outside the UK.
7607
7607
  *
7608
- * Although UPRN takes an integer format, we encode and transmit this data as strings. As a 12 digit number, the UPRN can exceed the maximum safe integer `Number.MAX_SAFE_INTEGER` in most browsers causing this datapoint to be corrupted.
7608
+ * Although UPRN takes an integer format, we encode and transmit this data as strings. As a 12-digit number, the UPRN can exceed the maximum safe integer `Number.MAX_SAFE_INTEGER` in most browsers causing this datapoint to be corrupted.
7609
7609
  *
7610
- * Take special care when storing UPRN. As a 12 digit identifier, you will need 64 bits to encode every possible UPRN value. This means applications like Excel will corrupt cells containing UPRN values.
7610
+ * Take special care when storing UPRN. As a 12-digit identifier, you will need 64 bits to encode every possible UPRN value. This means applications like Excel will corrupt cells containing UPRN values.
7611
7611
  */
7612
7612
  uprn: string;
7613
7613
  /**
@@ -8030,9 +8030,9 @@ type Address = {
8030
8030
  *
8031
8031
  * May not be available for a small number of Great Britain addresses due to longer update cycles for Ordnance Survey's AddressBase datasets. Returns empty string "" in these instances, as it does for addresses outside the UK.
8032
8032
  *
8033
- * Although UPRN takes an integer format, we encode and transmit this data as strings. As a 12 digit number, the UPRN can exceed the maximum safe integer `Number.MAX_SAFE_INTEGER` in most browsers causing this datapoint to be corrupted.
8033
+ * Although UPRN takes an integer format, we encode and transmit this data as strings. As a 12-digit number, the UPRN can exceed the maximum safe integer `Number.MAX_SAFE_INTEGER` in most browsers causing this datapoint to be corrupted.
8034
8034
  *
8035
- * Take special care when storing UPRN. As a 12 digit identifier, you will need 64 bits to encode every possible UPRN value. This means applications like Excel will corrupt cells containing UPRN values.
8035
+ * Take special care when storing UPRN. As a 12-digit identifier, you will need 64 bits to encode every possible UPRN value. This means applications like Excel will corrupt cells containing UPRN values.
8036
8036
  */
8037
8037
  uprn: string;
8038
8038
  /**
@@ -8213,11 +8213,34 @@ type Address = {
8213
8213
  */
8214
8214
  type AutocompleteResponse = {
8215
8215
  result: {
8216
- hits: Array<AddressSuggestion | UkAddressSuggestion>;
8216
+ /**
8217
+ * UK hits (the default `GBR` context) take the UK Address Suggestion shape, with `udprn`, optional `umprn` and populated `urls`. Hits in other contexts take the Address Suggestion shape, whose `urls` is empty.
8218
+ */
8219
+ hits: Array<UkAddressSuggestion | AddressSuggestion>;
8217
8220
  };
8218
8221
  code: 2000;
8219
8222
  message: "Success";
8220
8223
  };
8224
+ /**
8225
+ * Address Suggestion
8226
+ *
8227
+ * Represents an address suggestion for any address in the world
8228
+ */
8229
+ type AddressSuggestion = {
8230
+ id: Id;
8231
+ /**
8232
+ * Address Suggestion to be displayed to the user
8233
+ */
8234
+ suggestion: string;
8235
+ /**
8236
+ * URLs
8237
+ *
8238
+ * Always an empty object (`{}`). Retrieve the full address with `id`
8239
+ */
8240
+ urls: {
8241
+ [key: string]: never;
8242
+ };
8243
+ };
8221
8244
  /**
8222
8245
  * UK Address Suggestion
8223
8246
  *
@@ -8225,7 +8248,7 @@ type AutocompleteResponse = {
8225
8248
  *
8226
8249
  * UK Address Suggestions will return a UDPRN attribute if it references a deliverable endpoint found on Royal Mail's Postcode Address File dataset.
8227
8250
  *
8228
- * UK Address Suggestion will return a UMPRN if it references a multiple occupancy premise found on Royal Mail's Multiple Residence dataset.
8251
+ * UK Address Suggestions will return a UMPRN if it references a multiple occupancy premise found on Royal Mail's Multiple Residence dataset.
8229
8252
  *
8230
8253
  */
8231
8254
  type UkAddressSuggestion = {
@@ -8262,26 +8285,6 @@ type UkAddressSuggestion = {
8262
8285
  umprn?: string;
8263
8286
  };
8264
8287
  };
8265
- /**
8266
- * Address Suggestion
8267
- *
8268
- * Represents an address suggestion for any address in the world
8269
- */
8270
- type AddressSuggestion = {
8271
- id: Id;
8272
- /**
8273
- * Address Suggestion to be displayed to the user
8274
- */
8275
- suggestion: string;
8276
- /**
8277
- * URLs
8278
- *
8279
- * Always an empty object (`{}`). Retrieve the full address with `id`
8280
- */
8281
- urls: {
8282
- [key: string]: never;
8283
- };
8284
- };
8285
8288
  /**
8286
8289
  * Address Cleanse Response
8287
8290
  */
@@ -8330,7 +8333,7 @@ type GbrCleanseMatch = {
8330
8333
  */
8331
8334
  count: number;
8332
8335
  /**
8333
- * A score represented as a 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. 12 Pye Green Road) will have a fit of 1 even though it is missing post town and postcode. Its confidence score will be less than 1 however because it is missing some crucial elements.
8336
+ * A score represented as a 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. 12 Pye Green Road) will have a fit of 1 even though it is missing post town and postcode. Its confidence score will be less than 1, however, because it is missing some crucial elements.
8334
8337
  *
8335
8338
  */
8336
8339
  fit: number;
@@ -9006,7 +9009,7 @@ type PostcodeNotFoundResponse = {
9006
9009
  code: 4040;
9007
9010
  message: "Postcode not found";
9008
9011
  /**
9009
- * A list of alternate nearest matching postcodes you can try
9012
+ * A list of alternative nearest matching postcodes you can try
9010
9013
  */
9011
9014
  suggestions: Array<string>;
9012
9015
  };
@@ -9105,7 +9108,7 @@ type BiasStateParam = string;
9105
9108
  /**
9106
9109
  * **Bias by city**
9107
9110
  *
9108
- * Boost addresses in the named city, town or locality. Case, spaces and accents are ignored. For UK addresses use `bias_posttown`.
9111
+ * Boost addresses in the named city, town or locality. Case, spaces and accents are ignored.
9109
9112
  *
9110
9113
  */
9111
9114
  type BiasCityParam = string;
@@ -9323,7 +9326,7 @@ type BiasLonLatParam = string;
9323
9326
  *
9324
9327
  * Specifies the maximum number of records to retrieve.
9325
9328
  *
9326
- * By default the limit is 10. Requesting a larger result set adds latency.
9329
+ * By default the limit is 10. Requesting a larger result set adds latency. A value above 100 is reduced to 100 without an error.
9327
9330
  *
9328
9331
  */
9329
9332
  type LimitParam = number;
@@ -9396,7 +9399,7 @@ type TagsParam = string;
9396
9399
  /**
9397
9400
  * **Page**
9398
9401
  *
9399
- * 0 indexed indicator of the page of results to receive. Virtually all postcode results are returned on page 0.
9402
+ * 0-indexed indicator of the page of results to receive. Virtually all postcode results are returned on page 0.
9400
9403
  *
9401
9404
  * A small number of Multiple Residence postcodes may need pagination (i.e. have more than 100 premises).
9402
9405
  *
@@ -9450,7 +9453,7 @@ type PostcodesData = {
9450
9453
  /**
9451
9454
  * **Page**
9452
9455
  *
9453
- * 0 indexed indicator of the page of results to receive. Virtually all postcode results are returned on page 0.
9456
+ * 0-indexed indicator of the page of results to receive. Virtually all postcode results are returned on page 0.
9454
9457
  *
9455
9458
  * A small number of Multiple Residence postcodes may need pagination (i.e. have more than 100 premises).
9456
9459
  *
@@ -9845,7 +9848,7 @@ type FindAddressData = {
9845
9848
  *
9846
9849
  * Specifies the maximum number of records to retrieve.
9847
9850
  *
9848
- * By default the limit is 10. Requesting a larger result set adds latency.
9851
+ * By default the limit is 10. Requesting a larger result set adds latency. A value above 100 is reduced to 100 without an error.
9849
9852
  *
9850
9853
  */
9851
9854
  limit?: number;
@@ -10061,7 +10064,7 @@ type FindAddressData = {
10061
10064
  /**
10062
10065
  * **Bias by city**
10063
10066
  *
10064
- * Boost addresses in the named city, town or locality. Case, spaces and accents are ignored. For UK addresses use `bias_posttown`.
10067
+ * Boost addresses in the named city, town or locality. Case, spaces and accents are ignored.
10065
10068
  *
10066
10069
  */
10067
10070
  bias_city?: string;
@@ -10196,14 +10199,14 @@ type AddressesData = {
10196
10199
  *
10197
10200
  * Specifies the maximum number of records to retrieve.
10198
10201
  *
10199
- * By default the limit is 10. Requesting a larger result set adds latency.
10202
+ * By default the limit is 10. Requesting a larger result set adds latency. A value above 100 is reduced to 100 without an error.
10200
10203
  *
10201
10204
  */
10202
10205
  limit?: number;
10203
10206
  /**
10204
10207
  * **Page**
10205
10208
  *
10206
- * 0 indexed indicator of the page of results to receive. Virtually all postcode results are returned on page 0.
10209
+ * 0-indexed indicator of the page of results to receive. Virtually all postcode results are returned on page 0.
10207
10210
  *
10208
10211
  * A small number of Multiple Residence postcodes may need pagination (i.e. have more than 100 premises).
10209
10212
  *
@@ -10563,7 +10566,7 @@ type ListLicenseesData = {
10563
10566
  *
10564
10567
  * Specifies the maximum number of records to retrieve.
10565
10568
  *
10566
- * By default the limit is 10. Requesting a larger result set adds latency.
10569
+ * By default the limit is 10. Requesting a larger result set adds latency. A value above 100 is reduced to 100 without an error.
10567
10570
  *
10568
10571
  */
10569
10572
  limit?: number;
@@ -7605,9 +7605,9 @@ type AddressListItem = {
7605
7605
  *
7606
7606
  * May not be available for a small number of Great Britain addresses due to longer update cycles for Ordnance Survey's AddressBase datasets. Returns empty string "" in these instances, as it does for addresses outside the UK.
7607
7607
  *
7608
- * Although UPRN takes an integer format, we encode and transmit this data as strings. As a 12 digit number, the UPRN can exceed the maximum safe integer `Number.MAX_SAFE_INTEGER` in most browsers causing this datapoint to be corrupted.
7608
+ * Although UPRN takes an integer format, we encode and transmit this data as strings. As a 12-digit number, the UPRN can exceed the maximum safe integer `Number.MAX_SAFE_INTEGER` in most browsers causing this datapoint to be corrupted.
7609
7609
  *
7610
- * Take special care when storing UPRN. As a 12 digit identifier, you will need 64 bits to encode every possible UPRN value. This means applications like Excel will corrupt cells containing UPRN values.
7610
+ * Take special care when storing UPRN. As a 12-digit identifier, you will need 64 bits to encode every possible UPRN value. This means applications like Excel will corrupt cells containing UPRN values.
7611
7611
  */
7612
7612
  uprn: string;
7613
7613
  /**
@@ -8030,9 +8030,9 @@ type Address = {
8030
8030
  *
8031
8031
  * May not be available for a small number of Great Britain addresses due to longer update cycles for Ordnance Survey's AddressBase datasets. Returns empty string "" in these instances, as it does for addresses outside the UK.
8032
8032
  *
8033
- * Although UPRN takes an integer format, we encode and transmit this data as strings. As a 12 digit number, the UPRN can exceed the maximum safe integer `Number.MAX_SAFE_INTEGER` in most browsers causing this datapoint to be corrupted.
8033
+ * Although UPRN takes an integer format, we encode and transmit this data as strings. As a 12-digit number, the UPRN can exceed the maximum safe integer `Number.MAX_SAFE_INTEGER` in most browsers causing this datapoint to be corrupted.
8034
8034
  *
8035
- * Take special care when storing UPRN. As a 12 digit identifier, you will need 64 bits to encode every possible UPRN value. This means applications like Excel will corrupt cells containing UPRN values.
8035
+ * Take special care when storing UPRN. As a 12-digit identifier, you will need 64 bits to encode every possible UPRN value. This means applications like Excel will corrupt cells containing UPRN values.
8036
8036
  */
8037
8037
  uprn: string;
8038
8038
  /**
@@ -8213,11 +8213,34 @@ type Address = {
8213
8213
  */
8214
8214
  type AutocompleteResponse = {
8215
8215
  result: {
8216
- hits: Array<AddressSuggestion | UkAddressSuggestion>;
8216
+ /**
8217
+ * UK hits (the default `GBR` context) take the UK Address Suggestion shape, with `udprn`, optional `umprn` and populated `urls`. Hits in other contexts take the Address Suggestion shape, whose `urls` is empty.
8218
+ */
8219
+ hits: Array<UkAddressSuggestion | AddressSuggestion>;
8217
8220
  };
8218
8221
  code: 2000;
8219
8222
  message: "Success";
8220
8223
  };
8224
+ /**
8225
+ * Address Suggestion
8226
+ *
8227
+ * Represents an address suggestion for any address in the world
8228
+ */
8229
+ type AddressSuggestion = {
8230
+ id: Id;
8231
+ /**
8232
+ * Address Suggestion to be displayed to the user
8233
+ */
8234
+ suggestion: string;
8235
+ /**
8236
+ * URLs
8237
+ *
8238
+ * Always an empty object (`{}`). Retrieve the full address with `id`
8239
+ */
8240
+ urls: {
8241
+ [key: string]: never;
8242
+ };
8243
+ };
8221
8244
  /**
8222
8245
  * UK Address Suggestion
8223
8246
  *
@@ -8225,7 +8248,7 @@ type AutocompleteResponse = {
8225
8248
  *
8226
8249
  * UK Address Suggestions will return a UDPRN attribute if it references a deliverable endpoint found on Royal Mail's Postcode Address File dataset.
8227
8250
  *
8228
- * UK Address Suggestion will return a UMPRN if it references a multiple occupancy premise found on Royal Mail's Multiple Residence dataset.
8251
+ * UK Address Suggestions will return a UMPRN if it references a multiple occupancy premise found on Royal Mail's Multiple Residence dataset.
8229
8252
  *
8230
8253
  */
8231
8254
  type UkAddressSuggestion = {
@@ -8262,26 +8285,6 @@ type UkAddressSuggestion = {
8262
8285
  umprn?: string;
8263
8286
  };
8264
8287
  };
8265
- /**
8266
- * Address Suggestion
8267
- *
8268
- * Represents an address suggestion for any address in the world
8269
- */
8270
- type AddressSuggestion = {
8271
- id: Id;
8272
- /**
8273
- * Address Suggestion to be displayed to the user
8274
- */
8275
- suggestion: string;
8276
- /**
8277
- * URLs
8278
- *
8279
- * Always an empty object (`{}`). Retrieve the full address with `id`
8280
- */
8281
- urls: {
8282
- [key: string]: never;
8283
- };
8284
- };
8285
8288
  /**
8286
8289
  * Address Cleanse Response
8287
8290
  */
@@ -8330,7 +8333,7 @@ type GbrCleanseMatch = {
8330
8333
  */
8331
8334
  count: number;
8332
8335
  /**
8333
- * A score represented as a 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. 12 Pye Green Road) will have a fit of 1 even though it is missing post town and postcode. Its confidence score will be less than 1 however because it is missing some crucial elements.
8336
+ * A score represented as a 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. 12 Pye Green Road) will have a fit of 1 even though it is missing post town and postcode. Its confidence score will be less than 1, however, because it is missing some crucial elements.
8334
8337
  *
8335
8338
  */
8336
8339
  fit: number;
@@ -9006,7 +9009,7 @@ type PostcodeNotFoundResponse = {
9006
9009
  code: 4040;
9007
9010
  message: "Postcode not found";
9008
9011
  /**
9009
- * A list of alternate nearest matching postcodes you can try
9012
+ * A list of alternative nearest matching postcodes you can try
9010
9013
  */
9011
9014
  suggestions: Array<string>;
9012
9015
  };
@@ -9105,7 +9108,7 @@ type BiasStateParam = string;
9105
9108
  /**
9106
9109
  * **Bias by city**
9107
9110
  *
9108
- * Boost addresses in the named city, town or locality. Case, spaces and accents are ignored. For UK addresses use `bias_posttown`.
9111
+ * Boost addresses in the named city, town or locality. Case, spaces and accents are ignored.
9109
9112
  *
9110
9113
  */
9111
9114
  type BiasCityParam = string;
@@ -9323,7 +9326,7 @@ type BiasLonLatParam = string;
9323
9326
  *
9324
9327
  * Specifies the maximum number of records to retrieve.
9325
9328
  *
9326
- * By default the limit is 10. Requesting a larger result set adds latency.
9329
+ * By default the limit is 10. Requesting a larger result set adds latency. A value above 100 is reduced to 100 without an error.
9327
9330
  *
9328
9331
  */
9329
9332
  type LimitParam = number;
@@ -9396,7 +9399,7 @@ type TagsParam = string;
9396
9399
  /**
9397
9400
  * **Page**
9398
9401
  *
9399
- * 0 indexed indicator of the page of results to receive. Virtually all postcode results are returned on page 0.
9402
+ * 0-indexed indicator of the page of results to receive. Virtually all postcode results are returned on page 0.
9400
9403
  *
9401
9404
  * A small number of Multiple Residence postcodes may need pagination (i.e. have more than 100 premises).
9402
9405
  *
@@ -9450,7 +9453,7 @@ type PostcodesData = {
9450
9453
  /**
9451
9454
  * **Page**
9452
9455
  *
9453
- * 0 indexed indicator of the page of results to receive. Virtually all postcode results are returned on page 0.
9456
+ * 0-indexed indicator of the page of results to receive. Virtually all postcode results are returned on page 0.
9454
9457
  *
9455
9458
  * A small number of Multiple Residence postcodes may need pagination (i.e. have more than 100 premises).
9456
9459
  *
@@ -9845,7 +9848,7 @@ type FindAddressData = {
9845
9848
  *
9846
9849
  * Specifies the maximum number of records to retrieve.
9847
9850
  *
9848
- * By default the limit is 10. Requesting a larger result set adds latency.
9851
+ * By default the limit is 10. Requesting a larger result set adds latency. A value above 100 is reduced to 100 without an error.
9849
9852
  *
9850
9853
  */
9851
9854
  limit?: number;
@@ -10061,7 +10064,7 @@ type FindAddressData = {
10061
10064
  /**
10062
10065
  * **Bias by city**
10063
10066
  *
10064
- * Boost addresses in the named city, town or locality. Case, spaces and accents are ignored. For UK addresses use `bias_posttown`.
10067
+ * Boost addresses in the named city, town or locality. Case, spaces and accents are ignored.
10065
10068
  *
10066
10069
  */
10067
10070
  bias_city?: string;
@@ -10196,14 +10199,14 @@ type AddressesData = {
10196
10199
  *
10197
10200
  * Specifies the maximum number of records to retrieve.
10198
10201
  *
10199
- * By default the limit is 10. Requesting a larger result set adds latency.
10202
+ * By default the limit is 10. Requesting a larger result set adds latency. A value above 100 is reduced to 100 without an error.
10200
10203
  *
10201
10204
  */
10202
10205
  limit?: number;
10203
10206
  /**
10204
10207
  * **Page**
10205
10208
  *
10206
- * 0 indexed indicator of the page of results to receive. Virtually all postcode results are returned on page 0.
10209
+ * 0-indexed indicator of the page of results to receive. Virtually all postcode results are returned on page 0.
10207
10210
  *
10208
10211
  * A small number of Multiple Residence postcodes may need pagination (i.e. have more than 100 premises).
10209
10212
  *
@@ -10563,7 +10566,7 @@ type ListLicenseesData = {
10563
10566
  *
10564
10567
  * Specifies the maximum number of records to retrieve.
10565
10568
  *
10566
- * By default the limit is 10. Requesting a larger result set adds latency.
10569
+ * By default the limit is 10. Requesting a larger result set adds latency. A value above 100 is reduced to 100 without an error.
10567
10570
  *
10568
10571
  */
10569
10572
  limit?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ideal-postcodes/sdk",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "description": "Fetch-based, treeshakable TypeScript SDK for api.ideal-postcodes.co.uk",
5
5
  "author": {
6
6
  "name": "Ideal Postcodes",
@@ -97,12 +97,12 @@
97
97
  "devDependencies": {
98
98
  "@arethetypeswrong/cli": "0.18.5",
99
99
  "@hey-api/openapi-ts": "0.97.3",
100
- "@iddqdhq/jsutil": "8.1.5",
100
+ "@iddqdhq/jsutil": "8.1.6",
101
101
  "@iddqdhq/sdk-scripts": "0.0.1",
102
102
  "@iddqdhq/test-config": "0.0.0",
103
103
  "@iddqdhq/tsconfig-base": "0.0.0",
104
104
  "@iddqdhq/tsup-config": "0.0.0",
105
- "@ideal-postcodes/openapi": "5.2.1",
105
+ "@ideal-postcodes/openapi": "5.2.2",
106
106
  "@size-limit/esbuild": "14.0.0",
107
107
  "@size-limit/file": "14.0.0",
108
108
  "@tanstack/preact-query": "5.100.11",