@ideal-postcodes/sdk 0.1.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/LICENSE +1 -23
  2. package/README.md +16 -18
  3. package/dist/autocomplete.cjs +1 -146
  4. package/dist/autocomplete.d.cts +27 -15
  5. package/dist/autocomplete.d.ts +27 -15
  6. package/dist/autocomplete.mjs +1 -146
  7. package/dist/chunk-27HFF2QV.mjs +6 -0
  8. package/dist/chunk-62UQ3UYV.mjs +1 -0
  9. package/dist/chunk-6R56WDLC.mjs +1 -0
  10. package/dist/chunk-CKB3E7DA.cjs +1 -0
  11. package/dist/chunk-MO2HGDFA.cjs +1 -0
  12. package/dist/chunk-WQKSRULX.cjs +6 -0
  13. package/dist/index.cjs +1 -76
  14. package/dist/index.d-BuZcXRMe.d.cts +45 -0
  15. package/dist/index.d-BuZcXRMe.d.ts +45 -0
  16. package/dist/index.d.cts +6 -12
  17. package/dist/index.d.ts +6 -12
  18. package/dist/index.mjs +1 -76
  19. package/dist/preact-query.cjs +1 -497
  20. package/dist/preact-query.d.cts +342 -325
  21. package/dist/preact-query.d.ts +342 -325
  22. package/dist/preact-query.mjs +1 -497
  23. package/dist/react-query.cjs +1 -497
  24. package/dist/react-query.d.cts +341 -324
  25. package/dist/react-query.d.ts +341 -324
  26. package/dist/react-query.mjs +1 -497
  27. package/dist/sdk.gen-C47s0BYz.d.ts +416 -0
  28. package/dist/sdk.gen-DdAMouYk.d.cts +416 -0
  29. package/dist/{types.gen-l7tYP1ZJ.d.cts → types.gen-Cr3qI_1Q.d.cts} +4658 -2712
  30. package/dist/{types.gen-l7tYP1ZJ.d.ts → types.gen-Cr3qI_1Q.d.ts} +4658 -2712
  31. package/package.json +71 -38
  32. package/dist/autocomplete.cjs.map +0 -1
  33. package/dist/autocomplete.mjs.map +0 -1
  34. package/dist/chunk-AVMJGCHZ.mjs +0 -913
  35. package/dist/chunk-AVMJGCHZ.mjs.map +0 -1
  36. package/dist/chunk-ZZUZHG5D.cjs +0 -913
  37. package/dist/chunk-ZZUZHG5D.cjs.map +0 -1
  38. package/dist/index.cjs.map +0 -1
  39. package/dist/index.mjs.map +0 -1
  40. package/dist/preact-query.cjs.map +0 -1
  41. package/dist/preact-query.mjs.map +0 -1
  42. package/dist/react-query.cjs.map +0 -1
  43. package/dist/react-query.mjs.map +0 -1
  44. package/dist/sdk.gen-C45EbTVQ.d.cts +0 -302
  45. package/dist/sdk.gen-_z1PNdoT.d.ts +0 -302
@@ -1,8 +1,9 @@
1
- import * as _tanstack_react_query from '@tanstack/react-query';
1
+ import type { dataTagSymbol, dataTagErrorSymbol } from "@tanstack/preact-query";
2
+ import * as _tanstack_react_query from '@tanstack/preact-query';
2
3
  import * as _tanstack_preact_query from '@tanstack/preact-query';
3
- import { InfiniteData, UseMutationOptions } from '@tanstack/preact-query';
4
- import { cl as PostcodesData, bN as PostcodeResponse, cn as PostcodesError, cq as KeyAvailabilityData, bH as ApiKeyResponse, f as ErrorResponse, cv as KeyDetailsData, bx as ApiKeyDetailsResponse, cA as UpdateKeyDetailsData, cE as UpdateKeyDetailsResponse, cC as UpdateKeyDetailsError, cF as KeyUsageData, bu as ApiKeyUsageResponse, bM as BadRequestResponse, cK as KeyLogsData, cP as AddressCleanseData, cT as AddressCleanseResponse, cR as AddressCleanseError, cU as FindAddressData, bl as AutocompleteResponse, cZ as ResolveAddressData, bj as GbrResolveAddressResponse, d2 as FindPlaceData, u as PlaceResponse, d7 as ResolvePlaceData, R as ResolvePlaceResponse, dc as ListLicenseesData, m as LicenseesResponse, dh as CreateLicenseeData, dl as CreateLicenseeResponse, dj as CreateLicenseeError, dm as DeleteLicenseeData, dr as DeleteLicenseeResponse, dp as DeleteLicenseeError, ds as RetrieveLicenseeData, L as LicenseeResponse, dx as UpdateLicenseeData, dB as UpdateLicenseeResponse, dz as UpdateLicenseeError, dC as ListConfigsData, j as ConfigsResponse, dE as ListConfigsError, dH as CreateConfigData, dL as CreateConfigResponse, dJ as CreateConfigError, dM as DeleteConfigData, dQ as DeleteConfigResponse, dO as DeleteConfigError, dR as RetrieveConfigData, g as ConfigResponse, dT as RetrieveConfigError, dW as UpdateConfigData, d_ as UpdateConfigResponse, dY as UpdateConfigError, d$ as EmailValidationData, E as EmailResponse, e1 as EmailValidationError, e4 as PhoneNumberValidationData, P as PhoneNumberResponse, e6 as PhoneNumberValidationError } from './types.gen-l7tYP1ZJ.cjs';
5
- import { O as Options } from './sdk.gen-C45EbTVQ.cjs';
4
+ import { UseMutationOptions, InfiniteData } from '@tanstack/preact-query';
5
+ import { O as Options } from './sdk.gen-DdAMouYk.cjs';
6
+ import { d as AddressCleanseData, g as AddressCleanseResponse, e as AddressCleanseError, n as AddressesData, am as CreateConfigData, ap as CreateConfigResponse, an as CreateConfigError, ar as CreateLicenseeData, au as CreateLicenseeResponse, as as CreateLicenseeError, ay as DeleteConfigData, aB as DeleteConfigResponse, az as DeleteConfigError, aD as DeleteLicenseeData, aG as DeleteLicenseeResponse, aE as DeleteLicenseeError, aO as EmailValidationData, F as FindAddressData, K as AutocompleteResponse, aU as ErrorResponse, aZ as FindPlaceData, cg as PlaceResponse, bf as KeyAvailabilityData, I as ApiKeyResponse, bk as KeyDetailsData, z as ApiKeyDetailsResponse, bp as KeyLogsData, bu as KeyUsageData, J as ApiKeyUsageResponse, bJ as ListConfigsData, ae as ConfigsResponse, bO as ListLicenseesData, bH as LicenseesResponse, c6 as PhoneNumberValidationData, ct as PostcodesData, cy as RegenerateLicenseeKeyData, cB as RegenerateLicenseeKeyResponse, cz as RegenerateLicenseeKeyError, cD as ResolveAddressData, cH as ResolvePlaceData, cN as RetrieveConfigData, ac as ConfigResponse, cO as RetrieveConfigError, cS as RetrieveLicenseeData, bG as LicenseeResponse, d4 as UpdateConfigData, d7 as UpdateConfigResponse, d5 as UpdateConfigError, d9 as UpdateKeyDetailsData, dc as UpdateKeyDetailsResponse, da as UpdateKeyDetailsError, de as UpdateLicenseeData, dh as UpdateLicenseeResponse, df as UpdateLicenseeError, l as AddressResponse, o as AddressesError, aN as EmailResponse, c5 as PhoneNumberResponse, cq as PostcodeResponse, cu as PostcodesError, b5 as GbrResolveAddressResponse, cK as ResolvePlaceResponse } from './types.gen-Cr3qI_1Q.cjs';
6
7
 
7
8
  type QueryKey<TOptions extends Options> = [
8
9
  Pick<TOptions, "baseUrl" | "body" | "headers" | "path" | "query"> & {
@@ -11,117 +12,13 @@ type QueryKey<TOptions extends Options> = [
11
12
  tags?: ReadonlyArray<string>;
12
13
  }
13
14
  ];
14
- declare const postcodesQueryKey: (options: Options<PostcodesData>) => [Pick<Options<PostcodesData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
15
+ declare const postcodesQueryKey: (options: Options<PostcodesData>) => [Pick<Options<PostcodesData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
15
16
  _id: string;
16
17
  _infinite?: boolean;
17
18
  tags?: ReadonlyArray<string>;
18
19
  }];
19
- /**
20
- * Lookup Postcode
21
- *
22
- * Returns the complete list of addresses for a postcode. Postcode searches are space and case insensitive.
23
- *
24
- * The Postcode Lookup API provides a JSON interface to search UK addresses from a postcode. It can be used to power Postcode Lookup driven address searches, like [Postcode Lookup](/docs/postcode-lookup/).
25
- *
26
- * ## Postcode Not Found
27
- *
28
- * Lookup balance is unaffected by invalid postcodes. The API returns a `404` response with response body:
29
- *
30
- * ```json
31
- * {
32
- * "code": 4040,
33
- * "message": "Postcode not found",
34
- * "suggestions": ["SW1A 0AA"]
35
- * }
36
- * ```
37
- *
38
- * ### Suggestions
39
- *
40
- * If a postcode cannot be found, the API will provide up to 5 closest matching postcodes. Common errors will be corrected first (e.g. mixing up `O` and `0` or `I` and `1`).
41
- *
42
- * If the suggestion list is small (fewer than 3), there is a high probability the correct postcode is there. You may notify the user or immediately trigger new searches.
43
- *
44
- * The suggestion list will be empty if the postcode has deviated too far from a valid postcode format.
45
- *
46
- * ## Multiple Residence
47
- *
48
- * A small number of postcodes will return more than 100 premises. These may require pagination. Use `page` to paginate the result set.
49
- *
50
- */
51
- declare const postcodesOptions: (options: Options<PostcodesData>) => _tanstack_react_query.OmitKeyof<_tanstack_preact_query.UseQueryOptions<PostcodeResponse, PostcodesError, PostcodeResponse, [Pick<Options<PostcodesData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
52
- _id: string;
53
- _infinite?: boolean;
54
- tags?: ReadonlyArray<string>;
55
- }]>, "queryFn"> & {
56
- queryFn?: _tanstack_react_query.QueryFunction<PostcodeResponse, [Pick<Options<PostcodesData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
57
- _id: string;
58
- _infinite?: boolean;
59
- tags?: ReadonlyArray<string>;
60
- }], never> | undefined;
61
- } & {
62
- queryKey: [Pick<Options<PostcodesData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
63
- _id: string;
64
- _infinite?: boolean;
65
- tags?: ReadonlyArray<string>;
66
- }] & {
67
- [dataTagSymbol]: PostcodeResponse;
68
- [dataTagErrorSymbol]: PostcodesError;
69
- };
70
- };
71
20
  declare const postcodesInfiniteQueryKey: (options: Options<PostcodesData>) => QueryKey<Options<PostcodesData>>;
72
- /**
73
- * Lookup Postcode
74
- *
75
- * Returns the complete list of addresses for a postcode. Postcode searches are space and case insensitive.
76
- *
77
- * The Postcode Lookup API provides a JSON interface to search UK addresses from a postcode. It can be used to power Postcode Lookup driven address searches, like [Postcode Lookup](/docs/postcode-lookup/).
78
- *
79
- * ## Postcode Not Found
80
- *
81
- * Lookup balance is unaffected by invalid postcodes. The API returns a `404` response with response body:
82
- *
83
- * ```json
84
- * {
85
- * "code": 4040,
86
- * "message": "Postcode not found",
87
- * "suggestions": ["SW1A 0AA"]
88
- * }
89
- * ```
90
- *
91
- * ### Suggestions
92
- *
93
- * If a postcode cannot be found, the API will provide up to 5 closest matching postcodes. Common errors will be corrected first (e.g. mixing up `O` and `0` or `I` and `1`).
94
- *
95
- * If the suggestion list is small (fewer than 3), there is a high probability the correct postcode is there. You may notify the user or immediately trigger new searches.
96
- *
97
- * The suggestion list will be empty if the postcode has deviated too far from a valid postcode format.
98
- *
99
- * ## Multiple Residence
100
- *
101
- * A small number of postcodes will return more than 100 premises. These may require pagination. Use `page` to paginate the result set.
102
- *
103
- */
104
- declare const postcodesInfiniteOptions: (options: Options<PostcodesData>) => _tanstack_preact_query.UseInfiniteQueryOptions<PostcodeResponse, PostcodesError, InfiniteData<PostcodeResponse, unknown>, QueryKey<Options<PostcodesData>>, number | Pick<Pick<Options<PostcodesData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
105
- _id: string;
106
- _infinite?: boolean;
107
- tags?: ReadonlyArray<string>;
108
- }, "query" | "body" | "headers" | "path">> & {
109
- initialData: InfiniteData<PostcodeResponse, number | Pick<Pick<Options<PostcodesData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
110
- _id: string;
111
- _infinite?: boolean;
112
- tags?: ReadonlyArray<string>;
113
- }, "query" | "body" | "headers" | "path">> | (() => InfiniteData<PostcodeResponse, number | Pick<Pick<Options<PostcodesData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
114
- _id: string;
115
- _infinite?: boolean;
116
- tags?: ReadonlyArray<string>;
117
- }, "query" | "body" | "headers" | "path">>) | undefined;
118
- } & {
119
- queryKey: QueryKey<Options<PostcodesData>> & {
120
- [dataTagSymbol]: InfiniteData<PostcodeResponse, unknown>;
121
- [dataTagErrorSymbol]: PostcodesError;
122
- };
123
- };
124
- declare const keyAvailabilityQueryKey: (options: Options<KeyAvailabilityData>) => [Pick<Options<KeyAvailabilityData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
21
+ declare const keyAvailabilityQueryKey: (options: Options<KeyAvailabilityData>) => [Pick<Options<KeyAvailabilityData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
125
22
  _id: string;
126
23
  _infinite?: boolean;
127
24
  tags?: ReadonlyArray<string>;
@@ -129,28 +26,27 @@ declare const keyAvailabilityQueryKey: (options: Options<KeyAvailabilityData>) =
129
26
  /**
130
27
  * Availability
131
28
  *
132
- * Returns public information on your API Key.
29
+ * Returns public information on an API Key: whether it can be used right now (`available`), the search contexts the key is licensed for (`contexts`) and the context that best matches the caller's IP address (`context`).
133
30
  *
134
- * This endpoint can be used for the following:
135
- * - Determine if the key is currently usable via the `available` property
136
- * - Determine available contexts for an API Key
137
- * - Identify the currently likely context of a user given their location
31
+ * The endpoint accepts API Keys (beginning `ak_`) and sub-licensed keys (beginning `sl_`), and needs no Management Key.
138
32
  *
139
- * You may pass both API Keys (beginning `ak_`) and Sub-licensed Keys (beginning `sl_`).
33
+ * A key that exists but cannot be used, because it has no lookups left or has breached a limit, returns `200` with `"available": false`. An unknown or malformed key returns an error.
34
+ *
35
+ * Supply a valid Management Key and the endpoint returns the key's private details instead, as `GET /keys/{key}/details` does. A Management Key that does not own the key is rejected.
140
36
  *
141
37
  */
142
- declare const keyAvailabilityOptions: (options: Options<KeyAvailabilityData>) => _tanstack_react_query.OmitKeyof<_tanstack_preact_query.UseQueryOptions<ApiKeyResponse, ErrorResponse, ApiKeyResponse, [Pick<Options<KeyAvailabilityData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
38
+ declare const keyAvailabilityOptions: (options: Options<KeyAvailabilityData>) => _tanstack_react_query.OmitKeyof<_tanstack_preact_query.UseQueryOptions<ApiKeyResponse, ErrorResponse, ApiKeyResponse, [Pick<Options<KeyAvailabilityData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
143
39
  _id: string;
144
40
  _infinite?: boolean;
145
41
  tags?: ReadonlyArray<string>;
146
42
  }]>, "queryFn"> & {
147
- queryFn?: _tanstack_react_query.QueryFunction<ApiKeyResponse, [Pick<Options<KeyAvailabilityData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
43
+ queryFn?: _tanstack_react_query.QueryFunction<ApiKeyResponse, [Pick<Options<KeyAvailabilityData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
148
44
  _id: string;
149
45
  _infinite?: boolean;
150
46
  tags?: ReadonlyArray<string>;
151
47
  }], never> | undefined;
152
48
  } & {
153
- queryKey: [Pick<Options<KeyAvailabilityData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
49
+ queryKey: [Pick<Options<KeyAvailabilityData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
154
50
  _id: string;
155
51
  _infinite?: boolean;
156
52
  tags?: ReadonlyArray<string>;
@@ -159,7 +55,7 @@ declare const keyAvailabilityOptions: (options: Options<KeyAvailabilityData>) =>
159
55
  [dataTagErrorSymbol]: ErrorResponse;
160
56
  };
161
57
  };
162
- declare const keyDetailsQueryKey: (options: Options<KeyDetailsData>) => [Pick<Options<KeyDetailsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
58
+ declare const keyDetailsQueryKey: (options: Options<KeyDetailsData>) => [Pick<Options<KeyDetailsData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
163
59
  _id: string;
164
60
  _infinite?: boolean;
165
61
  tags?: ReadonlyArray<string>;
@@ -167,21 +63,20 @@ declare const keyDetailsQueryKey: (options: Options<KeyDetailsData>) => [Pick<Op
167
63
  /**
168
64
  * Details
169
65
  *
170
- * Returns private data on the key including remaining lookups, available datasets and usage limits.
171
- *
66
+ * Returns private data on a key: remaining lookups, licensed datasets, usage limits, notification settings and the search contexts the key can serve.
172
67
  */
173
- declare const keyDetailsOptions: (options: Options<KeyDetailsData>) => _tanstack_react_query.OmitKeyof<_tanstack_preact_query.UseQueryOptions<ApiKeyDetailsResponse, ErrorResponse, ApiKeyDetailsResponse, [Pick<Options<KeyDetailsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
68
+ declare const keyDetailsOptions: (options: Options<KeyDetailsData>) => _tanstack_react_query.OmitKeyof<_tanstack_preact_query.UseQueryOptions<ApiKeyDetailsResponse, ErrorResponse, ApiKeyDetailsResponse, [Pick<Options<KeyDetailsData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
174
69
  _id: string;
175
70
  _infinite?: boolean;
176
71
  tags?: ReadonlyArray<string>;
177
72
  }]>, "queryFn"> & {
178
- queryFn?: _tanstack_react_query.QueryFunction<ApiKeyDetailsResponse, [Pick<Options<KeyDetailsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
73
+ queryFn?: _tanstack_react_query.QueryFunction<ApiKeyDetailsResponse, [Pick<Options<KeyDetailsData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
179
74
  _id: string;
180
75
  _infinite?: boolean;
181
76
  tags?: ReadonlyArray<string>;
182
77
  }], never> | undefined;
183
78
  } & {
184
- queryKey: [Pick<Options<KeyDetailsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
79
+ queryKey: [Pick<Options<KeyDetailsData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
185
80
  _id: string;
186
81
  _infinite?: boolean;
187
82
  tags?: ReadonlyArray<string>;
@@ -193,10 +88,10 @@ declare const keyDetailsOptions: (options: Options<KeyDetailsData>) => _tanstack
193
88
  /**
194
89
  * Update Details
195
90
  *
196
- * Update API Key Details
91
+ * Updates a key's settings and returns its private details. Only the fields you send change. A key on an unlimited plan ignores changes to `datasets`, `daily_limit` and `monthly_limit`.
197
92
  */
198
93
  declare const updateKeyDetailsMutation: (options?: Partial<Options<UpdateKeyDetailsData>>) => UseMutationOptions<UpdateKeyDetailsResponse, UpdateKeyDetailsError, Options<UpdateKeyDetailsData>>;
199
- declare const keyUsageQueryKey: (options: Options<KeyUsageData>) => [Pick<Options<KeyUsageData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
94
+ declare const keyUsageQueryKey: (options: Options<KeyUsageData>) => [Pick<Options<KeyUsageData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
200
95
  _id: string;
201
96
  _infinite?: boolean;
202
97
  tags?: ReadonlyArray<string>;
@@ -204,73 +99,65 @@ declare const keyUsageQueryKey: (options: Options<KeyUsageData>) => [Pick<Option
204
99
  /**
205
100
  * Usage Stats
206
101
  *
207
- * Reports the number of lookups consumed on a key for a range of days.
208
- *
209
- * A maximum interval of 90 days can be provided for analysis. If no start or end date is provided, the last 21 days will be used as the default interval.
102
+ * Reports the number of lookups a key consumed over a date range, as a total and a daily breakdown.
210
103
  *
211
- * If no `start` time is provided, the start time will be set to 21 days prior to the current time.
104
+ * The range defaults to the last 21 days. `start` and `end` take UNIX timestamps in milliseconds, and `end` defaults to the current time. The maximum range is 90 days.
212
105
  *
213
- * If no `end` time is provided, the current time will be used.
214
- *
215
- * Append `tags` to scope the number of lookups to those with matching tag values. E.g. `tags=foo,bar` will only count transactions that match `foo` and `bar`.
106
+ * Query at most three tags at once.
216
107
  *
217
108
  */
218
- declare const keyUsageOptions: (options: Options<KeyUsageData>) => _tanstack_react_query.OmitKeyof<_tanstack_preact_query.UseQueryOptions<ApiKeyUsageResponse, BadRequestResponse, ApiKeyUsageResponse, [Pick<Options<KeyUsageData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
109
+ declare const keyUsageOptions: (options: Options<KeyUsageData>) => _tanstack_react_query.OmitKeyof<_tanstack_preact_query.UseQueryOptions<ApiKeyUsageResponse, ErrorResponse, ApiKeyUsageResponse, [Pick<Options<KeyUsageData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
219
110
  _id: string;
220
111
  _infinite?: boolean;
221
112
  tags?: ReadonlyArray<string>;
222
113
  }]>, "queryFn"> & {
223
- queryFn?: _tanstack_react_query.QueryFunction<ApiKeyUsageResponse, [Pick<Options<KeyUsageData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
114
+ queryFn?: _tanstack_react_query.QueryFunction<ApiKeyUsageResponse, [Pick<Options<KeyUsageData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
224
115
  _id: string;
225
116
  _infinite?: boolean;
226
117
  tags?: ReadonlyArray<string>;
227
118
  }], never> | undefined;
228
119
  } & {
229
- queryKey: [Pick<Options<KeyUsageData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
120
+ queryKey: [Pick<Options<KeyUsageData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
230
121
  _id: string;
231
122
  _infinite?: boolean;
232
123
  tags?: ReadonlyArray<string>;
233
124
  }] & {
234
125
  [dataTagSymbol]: ApiKeyUsageResponse;
235
- [dataTagErrorSymbol]: BadRequestResponse;
126
+ [dataTagErrorSymbol]: ErrorResponse;
236
127
  };
237
128
  };
238
129
  declare const keyUsageInfiniteQueryKey: (options: Options<KeyUsageData>) => QueryKey<Options<KeyUsageData>>;
239
130
  /**
240
131
  * Usage Stats
241
132
  *
242
- * Reports the number of lookups consumed on a key for a range of days.
243
- *
244
- * A maximum interval of 90 days can be provided for analysis. If no start or end date is provided, the last 21 days will be used as the default interval.
245
- *
246
- * If no `start` time is provided, the start time will be set to 21 days prior to the current time.
133
+ * Reports the number of lookups a key consumed over a date range, as a total and a daily breakdown.
247
134
  *
248
- * If no `end` time is provided, the current time will be used.
135
+ * The range defaults to the last 21 days. `start` and `end` take UNIX timestamps in milliseconds, and `end` defaults to the current time. The maximum range is 90 days.
249
136
  *
250
- * Append `tags` to scope the number of lookups to those with matching tag values. E.g. `tags=foo,bar` will only count transactions that match `foo` and `bar`.
137
+ * Query at most three tags at once.
251
138
  *
252
139
  */
253
- declare const keyUsageInfiniteOptions: (options: Options<KeyUsageData>) => _tanstack_preact_query.UseInfiniteQueryOptions<ApiKeyUsageResponse, BadRequestResponse, InfiniteData<ApiKeyUsageResponse, unknown>, QueryKey<Options<KeyUsageData>>, number | Pick<Pick<Options<KeyUsageData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
140
+ declare const keyUsageInfiniteOptions: (options: Options<KeyUsageData>) => _tanstack_preact_query.UseInfiniteQueryOptions<ApiKeyUsageResponse, ErrorResponse, InfiniteData<ApiKeyUsageResponse, unknown>, QueryKey<Options<KeyUsageData>>, number | Pick<Pick<Options<KeyUsageData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
254
141
  _id: string;
255
142
  _infinite?: boolean;
256
143
  tags?: ReadonlyArray<string>;
257
- }, "query" | "body" | "headers" | "path">> & {
258
- initialData: InfiniteData<ApiKeyUsageResponse, number | Pick<Pick<Options<KeyUsageData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
144
+ }, "query" | "body" | "path" | "headers">> & {
145
+ initialData: InfiniteData<ApiKeyUsageResponse, number | Pick<Pick<Options<KeyUsageData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
259
146
  _id: string;
260
147
  _infinite?: boolean;
261
148
  tags?: ReadonlyArray<string>;
262
- }, "query" | "body" | "headers" | "path">> | (() => InfiniteData<ApiKeyUsageResponse, number | Pick<Pick<Options<KeyUsageData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
149
+ }, "query" | "body" | "path" | "headers">> | (() => InfiniteData<ApiKeyUsageResponse, number | Pick<Pick<Options<KeyUsageData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
263
150
  _id: string;
264
151
  _infinite?: boolean;
265
152
  tags?: ReadonlyArray<string>;
266
- }, "query" | "body" | "headers" | "path">>) | undefined;
153
+ }, "query" | "body" | "path" | "headers">>) | undefined;
267
154
  } & {
268
155
  queryKey: QueryKey<Options<KeyUsageData>> & {
269
156
  [dataTagSymbol]: InfiniteData<ApiKeyUsageResponse, unknown>;
270
- [dataTagErrorSymbol]: BadRequestResponse;
157
+ [dataTagErrorSymbol]: ErrorResponse;
271
158
  };
272
159
  };
273
- declare const keyLogsQueryKey: (options: Options<KeyLogsData>) => [Pick<Options<KeyLogsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
160
+ declare const keyLogsQueryKey: (options: Options<KeyLogsData>) => [Pick<Options<KeyLogsData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
274
161
  _id: string;
275
162
  _infinite?: boolean;
276
163
  tags?: ReadonlyArray<string>;
@@ -278,118 +165,155 @@ declare const keyLogsQueryKey: (options: Options<KeyLogsData>) => [Pick<Options<
278
165
  /**
279
166
  * Logs (CSV)
280
167
  *
281
- * Reports lookup information on a key for paid lookups.
168
+ * Returns a CSV of the paid lookups made on a key, with the information recorded against each one.
169
+ *
170
+ * This method requires your Management Key, which can be found on your [accounts page](https://account.ideal-postcodes.co.uk/account).
282
171
  *
283
- * This method requires a `user_token`, which can be found on your [accounts page](https://ideal-postcodes.co.uk/account).
172
+ * You can request a maximum interval of 90 days. Without a start or end date, the interval defaults to the last 21 days.
284
173
  *
285
- * A maximum interval of 90 days can be provided for analysis. If no start or end date is provided, the last 21 days will be used as the default interval.
174
+ * The `Content-Type` returned is CSV (text/csv). For a non-200 response it reverts to JSON, with the error code and message in the body.
286
175
  *
287
- * ## Download Usage History (CSV)
176
+ * ## CSV Format
288
177
  *
289
- * `GET /keys/:key/lookups`
178
+ * The CSV has no header row. Columns, in order:
290
179
  *
291
- * Returns a CSV download of lookups performed and associated information.
180
+ * 1. Timestamp (ISO 8601)
181
+ * 2. IP address the request was received from
182
+ * 3. Search term
183
+ * 4. URL the request originated from
184
+ * 5. Lookup type
185
+ * 6. Tags
186
+ * 7. Lookups consumed
187
+ * 8. Licensee name (sublicensing keys only)
188
+ * 9. Source IP address
292
189
  *
293
- * Note that the Content-Type returned will be CSV (text/csv). For a non 200 response, the `Content-Type` will revert to JSON with the error code and message embedded.
190
+ * The source IP column carries the address forwarded in the `IDPC-Source-IP` header. It is only recorded for keys with IP address forwarding enabled, and only when the header holds a valid IP address. It is empty otherwise.
294
191
  *
295
192
  * ## Data Redaction
296
193
  *
297
- * Personally Identifiable Data (PII) caught in this your usage log (including IP, search term and URL data) will be redacted on a weekly basis.
194
+ * We redact Personally Identifiable Data (PII) in your usage log (including IP, source IP, search term and URL data) weekly.
298
195
  *
299
- * By default, PII will be redacted if it is older than 21 days. This timeframe can be configured from your dashboard.
196
+ * By default we redact PII older than 28 days. You can change this period from your dashboard.
300
197
  *
301
- * You may prevent PII collection altogether by setting the interval to `0` days.
198
+ * Set the interval to `0` days to prevent PII collection altogether.
302
199
  *
303
200
  */
304
- declare const keyLogsOptions: (options: Options<KeyLogsData>) => _tanstack_react_query.OmitKeyof<_tanstack_preact_query.UseQueryOptions<string, BadRequestResponse, string, [Pick<Options<KeyLogsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
201
+ declare const keyLogsOptions: (options: Options<KeyLogsData>) => _tanstack_react_query.OmitKeyof<_tanstack_preact_query.UseQueryOptions<string, ErrorResponse, string, [Pick<Options<KeyLogsData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
305
202
  _id: string;
306
203
  _infinite?: boolean;
307
204
  tags?: ReadonlyArray<string>;
308
205
  }]>, "queryFn"> & {
309
- queryFn?: _tanstack_react_query.QueryFunction<string, [Pick<Options<KeyLogsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
206
+ queryFn?: _tanstack_react_query.QueryFunction<string, [Pick<Options<KeyLogsData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
310
207
  _id: string;
311
208
  _infinite?: boolean;
312
209
  tags?: ReadonlyArray<string>;
313
210
  }], never> | undefined;
314
211
  } & {
315
- queryKey: [Pick<Options<KeyLogsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
212
+ queryKey: [Pick<Options<KeyLogsData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
316
213
  _id: string;
317
214
  _infinite?: boolean;
318
215
  tags?: ReadonlyArray<string>;
319
216
  }] & {
320
217
  [dataTagSymbol]: string;
321
- [dataTagErrorSymbol]: BadRequestResponse;
218
+ [dataTagErrorSymbol]: ErrorResponse;
322
219
  };
323
220
  };
324
221
  declare const keyLogsInfiniteQueryKey: (options: Options<KeyLogsData>) => QueryKey<Options<KeyLogsData>>;
325
222
  /**
326
223
  * Logs (CSV)
327
224
  *
328
- * Reports lookup information on a key for paid lookups.
225
+ * Returns a CSV of the paid lookups made on a key, with the information recorded against each one.
226
+ *
227
+ * This method requires your Management Key, which can be found on your [accounts page](https://account.ideal-postcodes.co.uk/account).
329
228
  *
330
- * This method requires a `user_token`, which can be found on your [accounts page](https://ideal-postcodes.co.uk/account).
229
+ * You can request a maximum interval of 90 days. Without a start or end date, the interval defaults to the last 21 days.
331
230
  *
332
- * A maximum interval of 90 days can be provided for analysis. If no start or end date is provided, the last 21 days will be used as the default interval.
231
+ * The `Content-Type` returned is CSV (text/csv). For a non-200 response it reverts to JSON, with the error code and message in the body.
333
232
  *
334
- * ## Download Usage History (CSV)
233
+ * ## CSV Format
335
234
  *
336
- * `GET /keys/:key/lookups`
235
+ * The CSV has no header row. Columns, in order:
337
236
  *
338
- * Returns a CSV download of lookups performed and associated information.
237
+ * 1. Timestamp (ISO 8601)
238
+ * 2. IP address the request was received from
239
+ * 3. Search term
240
+ * 4. URL the request originated from
241
+ * 5. Lookup type
242
+ * 6. Tags
243
+ * 7. Lookups consumed
244
+ * 8. Licensee name (sublicensing keys only)
245
+ * 9. Source IP address
339
246
  *
340
- * Note that the Content-Type returned will be CSV (text/csv). For a non 200 response, the `Content-Type` will revert to JSON with the error code and message embedded.
247
+ * The source IP column carries the address forwarded in the `IDPC-Source-IP` header. It is only recorded for keys with IP address forwarding enabled, and only when the header holds a valid IP address. It is empty otherwise.
341
248
  *
342
249
  * ## Data Redaction
343
250
  *
344
- * Personally Identifiable Data (PII) caught in this your usage log (including IP, search term and URL data) will be redacted on a weekly basis.
251
+ * We redact Personally Identifiable Data (PII) in your usage log (including IP, source IP, search term and URL data) weekly.
345
252
  *
346
- * By default, PII will be redacted if it is older than 21 days. This timeframe can be configured from your dashboard.
253
+ * By default we redact PII older than 28 days. You can change this period from your dashboard.
347
254
  *
348
- * You may prevent PII collection altogether by setting the interval to `0` days.
255
+ * Set the interval to `0` days to prevent PII collection altogether.
349
256
  *
350
257
  */
351
- declare const keyLogsInfiniteOptions: (options: Options<KeyLogsData>) => _tanstack_preact_query.UseInfiniteQueryOptions<string, BadRequestResponse, InfiniteData<string, unknown>, QueryKey<Options<KeyLogsData>>, number | Pick<Pick<Options<KeyLogsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
258
+ declare const keyLogsInfiniteOptions: (options: Options<KeyLogsData>) => _tanstack_preact_query.UseInfiniteQueryOptions<string, ErrorResponse, InfiniteData<string, unknown>, QueryKey<Options<KeyLogsData>>, number | Pick<Pick<Options<KeyLogsData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
352
259
  _id: string;
353
260
  _infinite?: boolean;
354
261
  tags?: ReadonlyArray<string>;
355
- }, "query" | "body" | "headers" | "path">> & {
356
- initialData: InfiniteData<string, number | Pick<Pick<Options<KeyLogsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
262
+ }, "query" | "body" | "path" | "headers">> & {
263
+ initialData: InfiniteData<string, number | Pick<Pick<Options<KeyLogsData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
357
264
  _id: string;
358
265
  _infinite?: boolean;
359
266
  tags?: ReadonlyArray<string>;
360
- }, "query" | "body" | "headers" | "path">> | (() => InfiniteData<string, number | Pick<Pick<Options<KeyLogsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
267
+ }, "query" | "body" | "path" | "headers">> | (() => InfiniteData<string, number | Pick<Pick<Options<KeyLogsData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
361
268
  _id: string;
362
269
  _infinite?: boolean;
363
270
  tags?: ReadonlyArray<string>;
364
- }, "query" | "body" | "headers" | "path">>) | undefined;
271
+ }, "query" | "body" | "path" | "headers">>) | undefined;
365
272
  } & {
366
273
  queryKey: QueryKey<Options<KeyLogsData>> & {
367
274
  [dataTagSymbol]: InfiniteData<string, unknown>;
368
- [dataTagErrorSymbol]: BadRequestResponse;
275
+ [dataTagErrorSymbol]: ErrorResponse;
369
276
  };
370
277
  };
371
278
  /**
372
279
  * Cleanse Address
373
280
  *
374
- * The address cleanse API attempts to return the closest matching address for any given address inputs. We also return a number of Match Level indicators that describe the degree to which the suggested address matches the input address. The more impaired the input address, the harder it is to cleanse.
281
+ * Returns the closest matching address for a freeform address input, with Match Level indicators describing how closely each element of the suggested address matches the input. The more impaired the input address, the harder it is to cleanse.
282
+ *
283
+ * A cleanse that returns a match costs a lookup. A no-match response is free.
284
+ *
285
+ * ## Countries
286
+ *
287
+ * Cleanse defaults to the UK. Pass `context` with an ISO 3166-1 alpha-3 country
288
+ * code to cleanse an address elsewhere, e.g. `context=USA` or `context=FRA`. The
289
+ * address datasets your key is licensed for decide which countries it can
290
+ * cleanse.
291
+ *
292
+ * The response shape is the same for every country: a standardised address in
293
+ * `match`, the raw source record in `match.native`, and the same confidence,
294
+ * fit and Match Level indicators. The Match Levels and confidence score are at
295
+ * their most discriminating for the UK, where cleanse runs against
296
+ * purpose-built indexes; elsewhere they are computed from the country's address
297
+ * dataset.
375
298
  *
376
299
  * ## Confidence Score
377
300
  *
378
- * The confidence score is a number ranging between 0 and 1. Where 1 implies a full match and 0 implies no major elements completely match. Each incorrect, missing or misspelled element will subtract from the overall confidence score.
301
+ * Each incorrect, missing or misspelled element subtracts from the overall confidence score.
379
302
  *
380
303
  * ### Deciding on an Acceptable Confidence Score Threshold
381
304
  *
382
- * Different address cleanse projects can have radically different inputs. However, within each project, the inputs tend to repeat the same errors. For instance, some input datasets may be exclusively inputted manually and be prone to typos. Others may have a persistently missing datapoint such as organisation name or postcode. For this reason, it is important to understand that there is no absolute Confidence Score threshold. Instead, the acceptable confidence score must be determined on a project by project basis based on systematic errors present in the data and business goals.
305
+ * Inputs differ widely between address cleanse projects. Within a project, though, they tend to repeat the same errors. Some datasets are keyed in by hand and prone to typos. Others have a persistently missing datapoint such as organisation name or postcode. There is no absolute Confidence Score threshold. Set the acceptable score project by project, based on the systematic errors in the data and your business goals.
306
+ *
307
+ * To set a threshold, load a subset of the dataset into a spreadsheet application like Excel and sort on the score. Scrolling from top to bottom shows matches from best to worst. As you reach the lower quality searches you can judge roughly:
383
308
  *
384
- * When determining an acceptable Confidence Score threshold you should load a subset of the dataset into a spreadsheet application like Excel and sort on the score. Scrolling from top-to-bottom you will be able to observe matches from best to worst. As you start to hit the lower quality searches, you will be able to roughly determine:
385
309
  * - Which confidence scores indicate ambiguous matches (i.e. up to building level only)
386
310
  * - Which confidence scores indicate a poor or no match (i.e. the nearest matching address is too far from the input address)
387
311
  *
388
- * Depending on your business goals, you can also use the Match Levels to determine an acceptable match. For instance, do you need to match up to the thoroughfare or building name only? Are accurate organisation names an important feature?
312
+ * Depending on your business goals, you can also use the Match Levels to determine an acceptable match. You may need to match only up to the thoroughfare or building name, or accurate organisation names may matter.
389
313
  *
390
314
  */
391
315
  declare const addressCleanseMutation: (options?: Partial<Options<AddressCleanseData>>) => UseMutationOptions<AddressCleanseResponse, AddressCleanseError, Options<AddressCleanseData>>;
392
- declare const findAddressQueryKey: (options?: Options<FindAddressData>) => [Pick<Options<FindAddressData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
316
+ declare const findAddressQueryKey: (options?: Options<FindAddressData>) => [Pick<Options<FindAddressData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
393
317
  _id: string;
394
318
  _infinite?: boolean;
395
319
  tags?: ReadonlyArray<string>;
@@ -397,9 +321,9 @@ declare const findAddressQueryKey: (options?: Options<FindAddressData>) => [Pick
397
321
  /**
398
322
  * Find Address
399
323
  *
400
- * The Address Autocomplete API delivers address suggestions in order of relevance based on a provided query. It aids real-time address autofill implementations.
324
+ * Returns address suggestions for a partial address, ordered by relevance. Use it to power real-time address autofill.
401
325
  *
402
- * Consider using our Address Autocomplete JavaScript libraries to add address lookup to a form in moments rather than interacting with this API directly.
326
+ * Consider our address autocomplete JavaScript libraries, which add address lookup to a form without calling this API directly.
403
327
  *
404
328
  * ## API Usage
405
329
  *
@@ -408,91 +332,75 @@ declare const findAddressQueryKey: (options?: Options<FindAddressData>) => [Pick
408
332
  * 1. Fetch address suggestions with `/autocomplete/addresses`
409
333
  * 2. Acquire the complete address using the ID from the suggestion
410
334
  *
411
- * Step 2 will decrement your lookup balance.
335
+ * Step 2 decrements your lookup balance.
336
+ *
337
+ * Step 1 is not a free standalone resource. We rate limit and then suspend integrations that repeatedly make autocomplete requests without a paid Step 2 request.
338
+ *
339
+ * ## Context
412
340
  *
413
- * Note that step 1 is not a free standalone resource. Integrations that consistently make autocomplete requests without a paid Step 2 request will be rate limited and then suspended.
341
+ * `context` limits the search, usually to a single country. It defaults to `GBR`, and an unrecognised context falls back to that default. If your key is not licensed for the datasets covering the context, the request is rejected.
342
+ *
343
+ * Querying a full postcode within a supported context returns the entire address list for that postcode.
414
344
  *
415
345
  * ## Query Filters
416
346
  *
417
- * 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.
347
+ * 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.
418
348
  *
419
- * 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.
349
+ * 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.
420
350
  *
421
- * Combine filters by `AND` logic, for instance, `su_organisation_indicator=Y&postcode_area=n`. The maximum allowed filter terms is **10**.
351
+ * Filters combine with `AND` logic, for instance `su_organisation_indicator=Y&postcode_area=n`. The maximum is **8** filter terms.
422
352
  *
423
353
  * ## Address Bias
424
354
  *
425
355
  * Preface bias searches with `bias_` to boost certain address results. Unlike filters, biasing allows unmatched addresses to appear with lower priority.
426
356
  *
427
- * For example, use `bias_postcode_area=SW,SE` to favor 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. Invalid bias terms have no effect.
428
358
  *
429
359
  * Multiple bias terms are allowed unless stated otherwise, with a combined maximum of **5**.
430
360
  *
431
361
  * ## Suggestion Format
432
362
  *
433
- * The suggestion format is subject to change. We recommend using the suggestion as-is to prevent potential integration issues.
363
+ * The suggestion format is subject to change. We recommend using the suggestion as-is to avoid integration issues.
434
364
  *
435
365
  * ## Rate Limiting and Cost
436
366
  *
437
- * The rate limit for the Autocomplete API is 3000 requests per 5 minutes. HTTP Headers inform about the current rate limit.
367
+ * The default rate limit is 3,000 requests per 5 minutes, counted per key and IP address. The `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset` headers report where you stand.
438
368
  *
439
- * Autocomplete API usage does not impact your balance, but resolving a suggestion to a full address requires a paid request. Autocomplete requests without subsequent paid requests may result in rate limitation or suspension.
369
+ * Autocomplete API usage does not impact your balance, but resolving a suggestion to a full address requires a paid request. Autocomplete requests without subsequent paid requests may lead to rate limiting or suspension.
440
370
  *
441
371
  */
442
- declare const findAddressOptions: (options?: Options<FindAddressData>) => _tanstack_react_query.OmitKeyof<_tanstack_preact_query.UseQueryOptions<AutocompleteResponse, BadRequestResponse, AutocompleteResponse, [Pick<Options<FindAddressData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
372
+ declare const findAddressOptions: (options?: Options<FindAddressData>) => _tanstack_react_query.OmitKeyof<_tanstack_preact_query.UseQueryOptions<AutocompleteResponse, ErrorResponse, AutocompleteResponse, [Pick<Options<FindAddressData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
443
373
  _id: string;
444
374
  _infinite?: boolean;
445
375
  tags?: ReadonlyArray<string>;
446
376
  }]>, "queryFn"> & {
447
- queryFn?: _tanstack_react_query.QueryFunction<AutocompleteResponse, [Pick<Options<FindAddressData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
377
+ queryFn?: _tanstack_react_query.QueryFunction<AutocompleteResponse, [Pick<Options<FindAddressData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
448
378
  _id: string;
449
379
  _infinite?: boolean;
450
380
  tags?: ReadonlyArray<string>;
451
381
  }], never> | undefined;
452
382
  } & {
453
- queryKey: [Pick<Options<FindAddressData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
383
+ queryKey: [Pick<Options<FindAddressData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
454
384
  _id: string;
455
385
  _infinite?: boolean;
456
386
  tags?: ReadonlyArray<string>;
457
387
  }] & {
458
388
  [dataTagSymbol]: AutocompleteResponse;
459
- [dataTagErrorSymbol]: BadRequestResponse;
389
+ [dataTagErrorSymbol]: ErrorResponse;
460
390
  };
461
391
  };
462
- declare const resolveAddressQueryKey: (options: Options<ResolveAddressData>) => [Pick<Options<ResolveAddressData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
392
+ declare const resolveAddressQueryKey: (options: Options<ResolveAddressData>) => [Pick<Options<ResolveAddressData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
463
393
  _id: string;
464
394
  _infinite?: boolean;
465
395
  tags?: ReadonlyArray<string>;
466
396
  }];
467
- /**
468
- * Resolve Address
469
- *
470
- * Resolves an address autocompletion by its address ID.
471
- *
472
- * Resolved addresses (including global addresses) are returned in a UK format (up to 3 address lines) using UK nomenclature (like postcode and county).
473
- *
474
- */
475
- declare const resolveAddressOptions: (options: Options<ResolveAddressData>) => _tanstack_react_query.OmitKeyof<_tanstack_preact_query.UseQueryOptions<GbrResolveAddressResponse, ErrorResponse, GbrResolveAddressResponse, [Pick<Options<ResolveAddressData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
397
+ declare const addressesQueryKey: (options?: Options<AddressesData>) => [Pick<Options<AddressesData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
476
398
  _id: string;
477
399
  _infinite?: boolean;
478
400
  tags?: ReadonlyArray<string>;
479
- }]>, "queryFn"> & {
480
- queryFn?: _tanstack_react_query.QueryFunction<GbrResolveAddressResponse, [Pick<Options<ResolveAddressData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
481
- _id: string;
482
- _infinite?: boolean;
483
- tags?: ReadonlyArray<string>;
484
- }], never> | undefined;
485
- } & {
486
- queryKey: [Pick<Options<ResolveAddressData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
487
- _id: string;
488
- _infinite?: boolean;
489
- tags?: ReadonlyArray<string>;
490
- }] & {
491
- [dataTagSymbol]: GbrResolveAddressResponse;
492
- [dataTagErrorSymbol]: ErrorResponse;
493
- };
494
- };
495
- declare const findPlaceQueryKey: (options?: Options<FindPlaceData>) => [Pick<Options<FindPlaceData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
401
+ }];
402
+ declare const addressesInfiniteQueryKey: (options?: Options<AddressesData>) => QueryKey<Options<AddressesData>>;
403
+ declare const findPlaceQueryKey: (options?: Options<FindPlaceData>) => [Pick<Options<FindPlaceData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
496
404
  _id: string;
497
405
  _infinite?: boolean;
498
406
  tags?: ReadonlyArray<string>;
@@ -500,80 +408,50 @@ declare const findPlaceQueryKey: (options?: Options<FindPlaceData>) => [Pick<Opt
500
408
  /**
501
409
  * Find Place
502
410
  *
503
- * Query for geographical places across countries. Each query will return a list of place suggestions, which consists of a place name, descriptive name and id.
504
- *
505
- * This API returns geographical information such as countries, capitals, administrative areas and more. It is ideal for correctly identifying a place along with any other details like geolocation.
411
+ * Returns place suggestions for a query, ranked by relevance. Places cover countries, administrative areas, capitals and other administrative seats.
506
412
  *
507
413
  * ## Implementing Place Autocomplete
508
414
  *
509
- * Extracting the full information of a place is a 2 step process:
415
+ * Retrieving a full place takes two requests:
510
416
  *
511
- * 1. Retrieve place suggestions via /places
512
- * 2. Retrieve the entire place with the ID provided in the suggestion
417
+ * 1. Fetch suggestions from `/places`
418
+ * 2. Fetch the place using the `id` on a suggestion
513
419
  *
514
- * ## Suggestion Format
515
- *
516
- * Each place suggestion contains a descriptive name which you can provide to users to uniquely identify a place.
420
+ * A query returns at most 10 suggestions. An empty query returns an empty result set. Show users the `descriptive_name`. The API drops suggestions that share one, so each name in a response identifies a single place.
517
421
  *
518
422
  * ## Rate Limiting and Cost
519
423
  *
520
- * The rate limit for the Autocomplete API is 3000 requests per 5 minutes. HTTP Headers inform about the current rate limit.
424
+ * The rate limit is 3,000 requests per 5 minutes.
521
425
  *
522
- * Autocomplete API usage does not impact your balance, but resolving a suggestion to a full address requires a paid request. Autocomplete requests without subsequent paid requests may result in rate limitation or suspension.
426
+ * `/places` does not decrement your lookup balance, but resolving a suggestion to a full place does. We rate limit and then suspend integrations that repeatedly call `/places` without resolving.
523
427
  *
524
428
  */
525
- declare const findPlaceOptions: (options?: Options<FindPlaceData>) => _tanstack_react_query.OmitKeyof<_tanstack_preact_query.UseQueryOptions<PlaceResponse, BadRequestResponse, PlaceResponse, [Pick<Options<FindPlaceData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
429
+ declare const findPlaceOptions: (options?: Options<FindPlaceData>) => _tanstack_react_query.OmitKeyof<_tanstack_preact_query.UseQueryOptions<PlaceResponse, ErrorResponse, PlaceResponse, [Pick<Options<FindPlaceData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
526
430
  _id: string;
527
431
  _infinite?: boolean;
528
432
  tags?: ReadonlyArray<string>;
529
433
  }]>, "queryFn"> & {
530
- queryFn?: _tanstack_react_query.QueryFunction<PlaceResponse, [Pick<Options<FindPlaceData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
434
+ queryFn?: _tanstack_react_query.QueryFunction<PlaceResponse, [Pick<Options<FindPlaceData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
531
435
  _id: string;
532
436
  _infinite?: boolean;
533
437
  tags?: ReadonlyArray<string>;
534
438
  }], never> | undefined;
535
439
  } & {
536
- queryKey: [Pick<Options<FindPlaceData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
440
+ queryKey: [Pick<Options<FindPlaceData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
537
441
  _id: string;
538
442
  _infinite?: boolean;
539
443
  tags?: ReadonlyArray<string>;
540
444
  }] & {
541
445
  [dataTagSymbol]: PlaceResponse;
542
- [dataTagErrorSymbol]: BadRequestResponse;
446
+ [dataTagErrorSymbol]: ErrorResponse;
543
447
  };
544
448
  };
545
- declare const resolvePlaceQueryKey: (options: Options<ResolvePlaceData>) => [Pick<Options<ResolvePlaceData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
449
+ declare const resolvePlaceQueryKey: (options: Options<ResolvePlaceData>) => [Pick<Options<ResolvePlaceData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
546
450
  _id: string;
547
451
  _infinite?: boolean;
548
452
  tags?: ReadonlyArray<string>;
549
453
  }];
550
- /**
551
- * Resolve Place
552
- *
553
- * Resolves a place autocompletion by its place ID.
554
- *
555
- */
556
- declare const resolvePlaceOptions: (options: Options<ResolvePlaceData>) => _tanstack_react_query.OmitKeyof<_tanstack_preact_query.UseQueryOptions<ResolvePlaceResponse, ErrorResponse, ResolvePlaceResponse, [Pick<Options<ResolvePlaceData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
557
- _id: string;
558
- _infinite?: boolean;
559
- tags?: ReadonlyArray<string>;
560
- }]>, "queryFn"> & {
561
- queryFn?: _tanstack_react_query.QueryFunction<ResolvePlaceResponse, [Pick<Options<ResolvePlaceData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
562
- _id: string;
563
- _infinite?: boolean;
564
- tags?: ReadonlyArray<string>;
565
- }], never> | undefined;
566
- } & {
567
- queryKey: [Pick<Options<ResolvePlaceData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
568
- _id: string;
569
- _infinite?: boolean;
570
- tags?: ReadonlyArray<string>;
571
- }] & {
572
- [dataTagSymbol]: ResolvePlaceResponse;
573
- [dataTagErrorSymbol]: ErrorResponse;
574
- };
575
- };
576
- declare const listLicenseesQueryKey: (options: Options<ListLicenseesData>) => [Pick<Options<ListLicenseesData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
454
+ declare const listLicenseesQueryKey: (options: Options<ListLicenseesData>) => [Pick<Options<ListLicenseesData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
577
455
  _id: string;
578
456
  _infinite?: boolean;
579
457
  tags?: ReadonlyArray<string>;
@@ -581,41 +459,41 @@ declare const listLicenseesQueryKey: (options: Options<ListLicenseesData>) => [P
581
459
  /**
582
460
  * List
583
461
  *
584
- * Returns a list of licensees for a key.
462
+ * Returns a key's licensees, oldest first, up to 100 per request. The list omits cancelled licensees. The key must be enabled for sublicensing.
585
463
  */
586
- declare const listLicenseesOptions: (options: Options<ListLicenseesData>) => _tanstack_react_query.OmitKeyof<_tanstack_preact_query.UseQueryOptions<LicenseesResponse, BadRequestResponse, LicenseesResponse, [Pick<Options<ListLicenseesData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
464
+ declare const listLicenseesOptions: (options: Options<ListLicenseesData>) => _tanstack_react_query.OmitKeyof<_tanstack_preact_query.UseQueryOptions<LicenseesResponse, ErrorResponse, LicenseesResponse, [Pick<Options<ListLicenseesData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
587
465
  _id: string;
588
466
  _infinite?: boolean;
589
467
  tags?: ReadonlyArray<string>;
590
468
  }]>, "queryFn"> & {
591
- queryFn?: _tanstack_react_query.QueryFunction<LicenseesResponse, [Pick<Options<ListLicenseesData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
469
+ queryFn?: _tanstack_react_query.QueryFunction<LicenseesResponse, [Pick<Options<ListLicenseesData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
592
470
  _id: string;
593
471
  _infinite?: boolean;
594
472
  tags?: ReadonlyArray<string>;
595
473
  }], never> | undefined;
596
474
  } & {
597
- queryKey: [Pick<Options<ListLicenseesData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
475
+ queryKey: [Pick<Options<ListLicenseesData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
598
476
  _id: string;
599
477
  _infinite?: boolean;
600
478
  tags?: ReadonlyArray<string>;
601
479
  }] & {
602
480
  [dataTagSymbol]: LicenseesResponse;
603
- [dataTagErrorSymbol]: BadRequestResponse;
481
+ [dataTagErrorSymbol]: ErrorResponse;
604
482
  };
605
483
  };
606
484
  /**
607
485
  * Create
608
486
  *
609
- * Create a licensee for the specified API Key.
487
+ * Creates a licensee on a key and returns it with its generated `sl_` key. The key must be enabled for sublicensing.
610
488
  */
611
489
  declare const createLicenseeMutation: (options?: Partial<Options<CreateLicenseeData>>) => UseMutationOptions<CreateLicenseeResponse, CreateLicenseeError, Options<CreateLicenseeData>>;
612
490
  /**
613
491
  * Cancel
614
492
  *
615
- * Cancels a licensee key. This renders a licensee unusable. This action can be reversed if you get in contact with us.
493
+ * Cancels a licensee. Its key stops working and it drops out of the licensee list. Contact us to reverse it.
616
494
  */
617
495
  declare const deleteLicenseeMutation: (options?: Partial<Options<DeleteLicenseeData>>) => UseMutationOptions<DeleteLicenseeResponse, DeleteLicenseeError, Options<DeleteLicenseeData>>;
618
- declare const retrieveLicenseeQueryKey: (options: Options<RetrieveLicenseeData>) => [Pick<Options<RetrieveLicenseeData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
496
+ declare const retrieveLicenseeQueryKey: (options: Options<RetrieveLicenseeData>) => [Pick<Options<RetrieveLicenseeData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
619
497
  _id: string;
620
498
  _infinite?: boolean;
621
499
  tags?: ReadonlyArray<string>;
@@ -623,35 +501,41 @@ declare const retrieveLicenseeQueryKey: (options: Options<RetrieveLicenseeData>)
623
501
  /**
624
502
  * Retrieve
625
503
  *
626
- * Returns licensee information as identified by the licensee key.
504
+ * Returns a licensee by its `sl_` key. A cancelled or unknown licensee returns `404`.
627
505
  */
628
- declare const retrieveLicenseeOptions: (options: Options<RetrieveLicenseeData>) => _tanstack_react_query.OmitKeyof<_tanstack_preact_query.UseQueryOptions<LicenseeResponse, BadRequestResponse, LicenseeResponse, [Pick<Options<RetrieveLicenseeData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
506
+ declare const retrieveLicenseeOptions: (options: Options<RetrieveLicenseeData>) => _tanstack_react_query.OmitKeyof<_tanstack_preact_query.UseQueryOptions<LicenseeResponse, ErrorResponse, LicenseeResponse, [Pick<Options<RetrieveLicenseeData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
629
507
  _id: string;
630
508
  _infinite?: boolean;
631
509
  tags?: ReadonlyArray<string>;
632
510
  }]>, "queryFn"> & {
633
- queryFn?: _tanstack_react_query.QueryFunction<LicenseeResponse, [Pick<Options<RetrieveLicenseeData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
511
+ queryFn?: _tanstack_react_query.QueryFunction<LicenseeResponse, [Pick<Options<RetrieveLicenseeData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
634
512
  _id: string;
635
513
  _infinite?: boolean;
636
514
  tags?: ReadonlyArray<string>;
637
515
  }], never> | undefined;
638
516
  } & {
639
- queryKey: [Pick<Options<RetrieveLicenseeData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
517
+ queryKey: [Pick<Options<RetrieveLicenseeData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
640
518
  _id: string;
641
519
  _infinite?: boolean;
642
520
  tags?: ReadonlyArray<string>;
643
521
  }] & {
644
522
  [dataTagSymbol]: LicenseeResponse;
645
- [dataTagErrorSymbol]: BadRequestResponse;
523
+ [dataTagErrorSymbol]: ErrorResponse;
646
524
  };
647
525
  };
648
526
  /**
649
527
  * Update
650
528
  *
651
- * Update Licensee
529
+ * Updates a licensee's address, postcode, allowed URLs and daily limit. Returns the updated licensee. The name is fixed at creation.
652
530
  */
653
531
  declare const updateLicenseeMutation: (options?: Partial<Options<UpdateLicenseeData>>) => UseMutationOptions<UpdateLicenseeResponse, UpdateLicenseeError, Options<UpdateLicenseeData>>;
654
- declare const listConfigsQueryKey: (options: Options<ListConfigsData>) => [Pick<Options<ListConfigsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
532
+ /**
533
+ * Regenerate Key
534
+ *
535
+ * Regenerates a licensee's key and returns the licensee with the new key. The previous key stops working immediately, so update any integration that uses it.
536
+ */
537
+ declare const regenerateLicenseeKeyMutation: (options?: Partial<Options<RegenerateLicenseeKeyData>>) => UseMutationOptions<RegenerateLicenseeKeyResponse, RegenerateLicenseeKeyError, Options<RegenerateLicenseeKeyData>>;
538
+ declare const listConfigsQueryKey: (options: Options<ListConfigsData>) => [Pick<Options<ListConfigsData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
655
539
  _id: string;
656
540
  _infinite?: boolean;
657
541
  tags?: ReadonlyArray<string>;
@@ -659,32 +543,32 @@ declare const listConfigsQueryKey: (options: Options<ListConfigsData>) => [Pick<
659
543
  /**
660
544
  * List
661
545
  *
662
- * Lists configurations associated with a key
546
+ * Returns every configuration stored against a key, oldest first.
663
547
  */
664
- declare const listConfigsOptions: (options: Options<ListConfigsData>) => _tanstack_react_query.OmitKeyof<_tanstack_preact_query.UseQueryOptions<ConfigsResponse, ListConfigsError, ConfigsResponse, [Pick<Options<ListConfigsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
548
+ declare const listConfigsOptions: (options: Options<ListConfigsData>) => _tanstack_react_query.OmitKeyof<_tanstack_preact_query.UseQueryOptions<ConfigsResponse, ErrorResponse, ConfigsResponse, [Pick<Options<ListConfigsData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
665
549
  _id: string;
666
550
  _infinite?: boolean;
667
551
  tags?: ReadonlyArray<string>;
668
552
  }]>, "queryFn"> & {
669
- queryFn?: _tanstack_react_query.QueryFunction<ConfigsResponse, [Pick<Options<ListConfigsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
553
+ queryFn?: _tanstack_react_query.QueryFunction<ConfigsResponse, [Pick<Options<ListConfigsData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
670
554
  _id: string;
671
555
  _infinite?: boolean;
672
556
  tags?: ReadonlyArray<string>;
673
557
  }], never> | undefined;
674
558
  } & {
675
- queryKey: [Pick<Options<ListConfigsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
559
+ queryKey: [Pick<Options<ListConfigsData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
676
560
  _id: string;
677
561
  _infinite?: boolean;
678
562
  tags?: ReadonlyArray<string>;
679
563
  }] & {
680
564
  [dataTagSymbol]: ConfigsResponse;
681
- [dataTagErrorSymbol]: ListConfigsError;
565
+ [dataTagErrorSymbol]: ErrorResponse;
682
566
  };
683
567
  };
684
568
  /**
685
569
  * Create
686
570
  *
687
- * Create a configuration
571
+ * Creates a named configuration on a key and returns it.
688
572
  */
689
573
  declare const createConfigMutation: (options?: Partial<Options<CreateConfigData>>) => UseMutationOptions<CreateConfigResponse, CreateConfigError, Options<CreateConfigData>>;
690
574
  /**
@@ -693,7 +577,7 @@ declare const createConfigMutation: (options?: Partial<Options<CreateConfigData>
693
577
  * Permanently deletes a configuration object.
694
578
  */
695
579
  declare const deleteConfigMutation: (options?: Partial<Options<DeleteConfigData>>) => UseMutationOptions<DeleteConfigResponse, DeleteConfigError, Options<DeleteConfigData>>;
696
- declare const retrieveConfigQueryKey: (options: Options<RetrieveConfigData>) => [Pick<Options<RetrieveConfigData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
580
+ declare const retrieveConfigQueryKey: (options: Options<RetrieveConfigData>) => [Pick<Options<RetrieveConfigData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
697
581
  _id: string;
698
582
  _infinite?: boolean;
699
583
  tags?: ReadonlyArray<string>;
@@ -701,20 +585,20 @@ declare const retrieveConfigQueryKey: (options: Options<RetrieveConfigData>) =>
701
585
  /**
702
586
  * Retrieve
703
587
  *
704
- * Retrieve configuration object by name
588
+ * Returns a configuration by name. This request needs no `user_token`, so a browser integration can read its own configuration at runtime.
705
589
  */
706
- declare const retrieveConfigOptions: (options: Options<RetrieveConfigData>) => _tanstack_react_query.OmitKeyof<_tanstack_preact_query.UseQueryOptions<ConfigResponse, RetrieveConfigError, ConfigResponse, [Pick<Options<RetrieveConfigData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
590
+ declare const retrieveConfigOptions: (options: Options<RetrieveConfigData>) => _tanstack_react_query.OmitKeyof<_tanstack_preact_query.UseQueryOptions<ConfigResponse, RetrieveConfigError, ConfigResponse, [Pick<Options<RetrieveConfigData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
707
591
  _id: string;
708
592
  _infinite?: boolean;
709
593
  tags?: ReadonlyArray<string>;
710
594
  }]>, "queryFn"> & {
711
- queryFn?: _tanstack_react_query.QueryFunction<ConfigResponse, [Pick<Options<RetrieveConfigData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
595
+ queryFn?: _tanstack_react_query.QueryFunction<ConfigResponse, [Pick<Options<RetrieveConfigData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
712
596
  _id: string;
713
597
  _infinite?: boolean;
714
598
  tags?: ReadonlyArray<string>;
715
599
  }], never> | undefined;
716
600
  } & {
717
- queryKey: [Pick<Options<RetrieveConfigData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
601
+ queryKey: [Pick<Options<RetrieveConfigData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
718
602
  _id: string;
719
603
  _infinite?: boolean;
720
604
  tags?: ReadonlyArray<string>;
@@ -726,70 +610,203 @@ declare const retrieveConfigOptions: (options: Options<RetrieveConfigData>) => _
726
610
  /**
727
611
  * Update
728
612
  *
729
- * Updates configuration object
613
+ * Replaces a configuration's payload and returns the updated configuration. The name is fixed at creation.
730
614
  */
731
615
  declare const updateConfigMutation: (options?: Partial<Options<UpdateConfigData>>) => UseMutationOptions<UpdateConfigResponse, UpdateConfigError, Options<UpdateConfigData>>;
732
- declare const emailValidationQueryKey: (options: Options<EmailValidationData>) => [Pick<Options<EmailValidationData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
616
+ declare const emailValidationQueryKey: (options: Options<EmailValidationData>) => [Pick<Options<EmailValidationData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
733
617
  _id: string;
734
618
  _infinite?: boolean;
735
619
  tags?: ReadonlyArray<string>;
736
620
  }];
737
- /**
738
- * Email Validation
739
- *
740
- * Query for and validate email addresses.
741
- *
742
- */
743
- declare const emailValidationOptions: (options: Options<EmailValidationData>) => _tanstack_react_query.OmitKeyof<_tanstack_preact_query.UseQueryOptions<EmailResponse, EmailValidationError, EmailResponse, [Pick<Options<EmailValidationData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
621
+ declare const phoneNumberValidationQueryKey: (options: Options<PhoneNumberValidationData>) => [Pick<Options<PhoneNumberValidationData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
622
+ _id: string;
623
+ _infinite?: boolean;
624
+ tags?: ReadonlyArray<string>;
625
+ }];
626
+
627
+ declare const postcodesOptions: (options: Options<PostcodesData>) => _tanstack_react_query.OmitKeyof<_tanstack_preact_query.UseQueryOptions<PostcodeResponse, PostcodesError, PostcodeResponse, [Pick<Options<PostcodesData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
744
628
  _id: string;
745
629
  _infinite?: boolean;
746
630
  tags?: ReadonlyArray<string>;
747
631
  }]>, "queryFn"> & {
748
- queryFn?: _tanstack_react_query.QueryFunction<EmailResponse, [Pick<Options<EmailValidationData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
632
+ queryFn?: _tanstack_react_query.QueryFunction<PostcodeResponse, [Pick<Options<PostcodesData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
749
633
  _id: string;
750
634
  _infinite?: boolean;
751
635
  tags?: ReadonlyArray<string>;
752
636
  }], never> | undefined;
753
637
  } & {
754
- queryKey: [Pick<Options<EmailValidationData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
638
+ queryKey: [Pick<Options<PostcodesData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
755
639
  _id: string;
756
640
  _infinite?: boolean;
757
641
  tags?: ReadonlyArray<string>;
758
642
  }] & {
759
- [dataTagSymbol]: EmailResponse;
760
- [dataTagErrorSymbol]: EmailValidationError;
643
+ [dataTagSymbol]: PostcodeResponse;
644
+ [dataTagErrorSymbol]: PostcodesError;
761
645
  };
646
+ } & {
647
+ gcTime: 0;
648
+ staleTime: 0;
762
649
  };
763
- declare const phoneNumberValidationQueryKey: (options: Options<PhoneNumberValidationData>) => [Pick<Options<PhoneNumberValidationData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
650
+ declare const postcodesInfiniteOptions: (options: Options<PostcodesData>) => _tanstack_preact_query.UseInfiniteQueryOptions<PostcodeResponse, PostcodesError, _tanstack_react_query.InfiniteData<PostcodeResponse, unknown>, QueryKey<Options<PostcodesData>>, number | Pick<Pick<Options<PostcodesData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
764
651
  _id: string;
765
652
  _infinite?: boolean;
766
653
  tags?: ReadonlyArray<string>;
767
- }];
768
- /**
769
- * Phone Number Validation
770
- *
771
- * Query for and validate phone numbers.
772
- *
773
- */
774
- declare const phoneNumberValidationOptions: (options: Options<PhoneNumberValidationData>) => _tanstack_react_query.OmitKeyof<_tanstack_preact_query.UseQueryOptions<PhoneNumberResponse, PhoneNumberValidationError, PhoneNumberResponse, [Pick<Options<PhoneNumberValidationData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
654
+ }, "query" | "body" | "path" | "headers">> & {
655
+ initialData: _tanstack_react_query.InfiniteData<PostcodeResponse, number | Pick<Pick<Options<PostcodesData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
656
+ _id: string;
657
+ _infinite?: boolean;
658
+ tags?: ReadonlyArray<string>;
659
+ }, "query" | "body" | "path" | "headers">> | (() => _tanstack_react_query.InfiniteData<PostcodeResponse, number | Pick<Pick<Options<PostcodesData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
660
+ _id: string;
661
+ _infinite?: boolean;
662
+ tags?: ReadonlyArray<string>;
663
+ }, "query" | "body" | "path" | "headers">>) | undefined;
664
+ } & {
665
+ queryKey: QueryKey<Options<PostcodesData>> & {
666
+ [dataTagSymbol]: _tanstack_react_query.InfiniteData<PostcodeResponse, unknown>;
667
+ [dataTagErrorSymbol]: PostcodesError;
668
+ };
669
+ } & {
670
+ gcTime: 0;
671
+ staleTime: 0;
672
+ };
673
+ declare const resolveAddressOptions: (options: Options<ResolveAddressData>) => _tanstack_react_query.OmitKeyof<_tanstack_preact_query.UseQueryOptions<GbrResolveAddressResponse, ErrorResponse, GbrResolveAddressResponse, [Pick<Options<ResolveAddressData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
775
674
  _id: string;
776
675
  _infinite?: boolean;
777
676
  tags?: ReadonlyArray<string>;
778
677
  }]>, "queryFn"> & {
779
- queryFn?: _tanstack_react_query.QueryFunction<PhoneNumberResponse, [Pick<Options<PhoneNumberValidationData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
678
+ queryFn?: _tanstack_react_query.QueryFunction<GbrResolveAddressResponse, [Pick<Options<ResolveAddressData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
780
679
  _id: string;
781
680
  _infinite?: boolean;
782
681
  tags?: ReadonlyArray<string>;
783
682
  }], never> | undefined;
784
683
  } & {
785
- queryKey: [Pick<Options<PhoneNumberValidationData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
684
+ queryKey: [Pick<Options<ResolveAddressData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
685
+ _id: string;
686
+ _infinite?: boolean;
687
+ tags?: ReadonlyArray<string>;
688
+ }] & {
689
+ [dataTagSymbol]: GbrResolveAddressResponse;
690
+ [dataTagErrorSymbol]: ErrorResponse;
691
+ };
692
+ } & {
693
+ gcTime: 0;
694
+ staleTime: 0;
695
+ };
696
+ declare const addressesOptions: (options?: Options<AddressesData> | undefined) => _tanstack_react_query.OmitKeyof<_tanstack_preact_query.UseQueryOptions<AddressResponse, AddressesError, AddressResponse, [Pick<Options<AddressesData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
697
+ _id: string;
698
+ _infinite?: boolean;
699
+ tags?: ReadonlyArray<string>;
700
+ }]>, "queryFn"> & {
701
+ queryFn?: _tanstack_react_query.QueryFunction<AddressResponse, [Pick<Options<AddressesData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
702
+ _id: string;
703
+ _infinite?: boolean;
704
+ tags?: ReadonlyArray<string>;
705
+ }], never> | undefined;
706
+ } & {
707
+ queryKey: [Pick<Options<AddressesData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
708
+ _id: string;
709
+ _infinite?: boolean;
710
+ tags?: ReadonlyArray<string>;
711
+ }] & {
712
+ [dataTagSymbol]: AddressResponse;
713
+ [dataTagErrorSymbol]: AddressesError;
714
+ };
715
+ } & {
716
+ gcTime: 0;
717
+ staleTime: 0;
718
+ };
719
+ declare const addressesInfiniteOptions: (options?: Options<AddressesData> | undefined) => _tanstack_preact_query.UseInfiniteQueryOptions<AddressResponse, AddressesError, _tanstack_react_query.InfiniteData<AddressResponse, unknown>, QueryKey<Options<AddressesData>>, number | Pick<Pick<Options<AddressesData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
720
+ _id: string;
721
+ _infinite?: boolean;
722
+ tags?: ReadonlyArray<string>;
723
+ }, "query" | "body" | "path" | "headers">> & {
724
+ initialData: _tanstack_react_query.InfiniteData<AddressResponse, number | Pick<Pick<Options<AddressesData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
725
+ _id: string;
726
+ _infinite?: boolean;
727
+ tags?: ReadonlyArray<string>;
728
+ }, "query" | "body" | "path" | "headers">> | (() => _tanstack_react_query.InfiniteData<AddressResponse, number | Pick<Pick<Options<AddressesData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
729
+ _id: string;
730
+ _infinite?: boolean;
731
+ tags?: ReadonlyArray<string>;
732
+ }, "query" | "body" | "path" | "headers">>) | undefined;
733
+ } & {
734
+ queryKey: QueryKey<Options<AddressesData>> & {
735
+ [dataTagSymbol]: _tanstack_react_query.InfiniteData<AddressResponse, unknown>;
736
+ [dataTagErrorSymbol]: AddressesError;
737
+ };
738
+ } & {
739
+ gcTime: 0;
740
+ staleTime: 0;
741
+ };
742
+ declare const resolvePlaceOptions: (options: Options<ResolvePlaceData>) => _tanstack_react_query.OmitKeyof<_tanstack_preact_query.UseQueryOptions<ResolvePlaceResponse, ErrorResponse, ResolvePlaceResponse, [Pick<Options<ResolvePlaceData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
743
+ _id: string;
744
+ _infinite?: boolean;
745
+ tags?: ReadonlyArray<string>;
746
+ }]>, "queryFn"> & {
747
+ queryFn?: _tanstack_react_query.QueryFunction<ResolvePlaceResponse, [Pick<Options<ResolvePlaceData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
748
+ _id: string;
749
+ _infinite?: boolean;
750
+ tags?: ReadonlyArray<string>;
751
+ }], never> | undefined;
752
+ } & {
753
+ queryKey: [Pick<Options<ResolvePlaceData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
754
+ _id: string;
755
+ _infinite?: boolean;
756
+ tags?: ReadonlyArray<string>;
757
+ }] & {
758
+ [dataTagSymbol]: ResolvePlaceResponse;
759
+ [dataTagErrorSymbol]: ErrorResponse;
760
+ };
761
+ } & {
762
+ gcTime: 0;
763
+ staleTime: 0;
764
+ };
765
+ declare const emailValidationOptions: (options: Options<EmailValidationData>) => _tanstack_react_query.OmitKeyof<_tanstack_preact_query.UseQueryOptions<EmailResponse, ErrorResponse, EmailResponse, [Pick<Options<EmailValidationData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
766
+ _id: string;
767
+ _infinite?: boolean;
768
+ tags?: ReadonlyArray<string>;
769
+ }]>, "queryFn"> & {
770
+ queryFn?: _tanstack_react_query.QueryFunction<EmailResponse, [Pick<Options<EmailValidationData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
771
+ _id: string;
772
+ _infinite?: boolean;
773
+ tags?: ReadonlyArray<string>;
774
+ }], never> | undefined;
775
+ } & {
776
+ queryKey: [Pick<Options<EmailValidationData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
777
+ _id: string;
778
+ _infinite?: boolean;
779
+ tags?: ReadonlyArray<string>;
780
+ }] & {
781
+ [dataTagSymbol]: EmailResponse;
782
+ [dataTagErrorSymbol]: ErrorResponse;
783
+ };
784
+ } & {
785
+ gcTime: 0;
786
+ staleTime: 0;
787
+ };
788
+ declare const phoneNumberValidationOptions: (options: Options<PhoneNumberValidationData>) => _tanstack_react_query.OmitKeyof<_tanstack_preact_query.UseQueryOptions<PhoneNumberResponse, ErrorResponse, PhoneNumberResponse, [Pick<Options<PhoneNumberValidationData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
789
+ _id: string;
790
+ _infinite?: boolean;
791
+ tags?: ReadonlyArray<string>;
792
+ }]>, "queryFn"> & {
793
+ queryFn?: _tanstack_react_query.QueryFunction<PhoneNumberResponse, [Pick<Options<PhoneNumberValidationData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
794
+ _id: string;
795
+ _infinite?: boolean;
796
+ tags?: ReadonlyArray<string>;
797
+ }], never> | undefined;
798
+ } & {
799
+ queryKey: [Pick<Options<PhoneNumberValidationData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
786
800
  _id: string;
787
801
  _infinite?: boolean;
788
802
  tags?: ReadonlyArray<string>;
789
803
  }] & {
790
804
  [dataTagSymbol]: PhoneNumberResponse;
791
- [dataTagErrorSymbol]: PhoneNumberValidationError;
805
+ [dataTagErrorSymbol]: ErrorResponse;
792
806
  };
807
+ } & {
808
+ gcTime: 0;
809
+ staleTime: 0;
793
810
  };
794
811
 
795
- export { type QueryKey, addressCleanseMutation, createConfigMutation, createLicenseeMutation, deleteConfigMutation, deleteLicenseeMutation, emailValidationOptions, emailValidationQueryKey, findAddressOptions, findAddressQueryKey, findPlaceOptions, findPlaceQueryKey, keyAvailabilityOptions, keyAvailabilityQueryKey, keyDetailsOptions, keyDetailsQueryKey, keyLogsInfiniteOptions, keyLogsInfiniteQueryKey, keyLogsOptions, keyLogsQueryKey, keyUsageInfiniteOptions, keyUsageInfiniteQueryKey, keyUsageOptions, keyUsageQueryKey, listConfigsOptions, listConfigsQueryKey, listLicenseesOptions, listLicenseesQueryKey, phoneNumberValidationOptions, phoneNumberValidationQueryKey, postcodesInfiniteOptions, postcodesInfiniteQueryKey, postcodesOptions, postcodesQueryKey, resolveAddressOptions, resolveAddressQueryKey, resolvePlaceOptions, resolvePlaceQueryKey, retrieveConfigOptions, retrieveConfigQueryKey, retrieveLicenseeOptions, retrieveLicenseeQueryKey, updateConfigMutation, updateKeyDetailsMutation, updateLicenseeMutation };
812
+ export { type QueryKey, addressCleanseMutation, addressesInfiniteOptions, addressesInfiniteQueryKey, addressesOptions, addressesQueryKey, createConfigMutation, createLicenseeMutation, deleteConfigMutation, deleteLicenseeMutation, emailValidationOptions, emailValidationQueryKey, findAddressOptions, findAddressQueryKey, findPlaceOptions, findPlaceQueryKey, keyAvailabilityOptions, keyAvailabilityQueryKey, keyDetailsOptions, keyDetailsQueryKey, keyLogsInfiniteOptions, keyLogsInfiniteQueryKey, keyLogsOptions, keyLogsQueryKey, keyUsageInfiniteOptions, keyUsageInfiniteQueryKey, keyUsageOptions, keyUsageQueryKey, listConfigsOptions, listConfigsQueryKey, listLicenseesOptions, listLicenseesQueryKey, phoneNumberValidationOptions, phoneNumberValidationQueryKey, postcodesInfiniteOptions, postcodesInfiniteQueryKey, postcodesOptions, postcodesQueryKey, regenerateLicenseeKeyMutation, resolveAddressOptions, resolveAddressQueryKey, resolvePlaceOptions, resolvePlaceQueryKey, retrieveConfigOptions, retrieveConfigQueryKey, retrieveLicenseeOptions, retrieveLicenseeQueryKey, updateConfigMutation, updateKeyDetailsMutation, updateLicenseeMutation };