@ideal-postcodes/sdk 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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 { d as AddressCleanseData, g as AddressCleanseResponse, e as AddressCleanseError, n as AddressesData, l as AddressResponse, o as AddressesError, 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, aN as EmailResponse, aU as ErrorResponse, F as FindAddressData, K as AutocompleteResponse, 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, c5 as PhoneNumberResponse, ct as PostcodesData, cq as PostcodeResponse, cu as PostcodesError, cy as RegenerateLicenseeKeyData, cB as RegenerateLicenseeKeyResponse, cz as RegenerateLicenseeKeyError, cD as ResolveAddressData, b5 as GbrResolveAddressResponse, cH as ResolvePlaceData, cK as ResolvePlaceResponse, 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 } from './types.gen-Dmx_l_fj.js';
6
- import { O as Options } from './sdk.gen-C6G6f1JU.js';
5
+ import { O as Options } from './sdk.gen-C47s0BYz.js';
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.js';
7
7
 
8
8
  type QueryKey<TOptions extends Options> = [
9
9
  Pick<TOptions, "baseUrl" | "body" | "headers" | "path" | "query"> & {
@@ -12,151 +12,13 @@ type QueryKey<TOptions extends Options> = [
12
12
  tags?: ReadonlyArray<string>;
13
13
  }
14
14
  ];
15
- 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"> & {
16
16
  _id: string;
17
17
  _infinite?: boolean;
18
18
  tags?: ReadonlyArray<string>;
19
19
  }];
20
- /**
21
- * Lookup Postcode
22
- *
23
- * Returns the complete list of addresses for a postcode. Postcode searches are space and case insensitive.
24
- *
25
- * Each request looks up one postcode. To extract the addresses for several postcodes, send one request per postcode.
26
- *
27
- * Use it to power postcode driven address searches, like [Postcode Lookup](/docs/postcode-lookup/).
28
- *
29
- * 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.
30
- *
31
- * UK postcodes need PAF, Multiple Residence, Not Yet Built, PAF Alias, PAF Welsh, AddressBase or AddressBase Premium on your key. Eircodes need ECAD or ECAF. Dutch postcodes need Kadaster. Singapore postcodes need HERE Asia Pacific. Without a matching licence the request is rejected.
32
- *
33
- * An unfound postcode costs no lookup. A postcode that returns addresses costs one.
34
- *
35
- * ## Postcode Not Found
36
- *
37
- * Invalid postcodes do not affect your lookup balance. The API returns a `404` response with this body:
38
- *
39
- * ```json
40
- * {
41
- * "code": 4040,
42
- * "message": "Postcode not found",
43
- * "suggestions": ["SW1A 0AA"]
44
- * }
45
- * ```
46
- *
47
- * ### Suggestions
48
- *
49
- * 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`).
50
- *
51
- * 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.
52
- *
53
- * The suggestion list is empty if the postcode has deviated too far from a valid postcode format.
54
- *
55
- * ## Multiple Residence
56
- *
57
- * 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.
58
- *
59
- * ## Testing
60
- *
61
- * - **ID1 1QD** Returns a successful postcode lookup response `2000`
62
- * - **ID1 KFA** Returns "postcode not found" error `4040`
63
- * - **ID1 CLIP** Returns "no lookups remaining" error `4020`
64
- * - **ID1 CHOP** Returns "daily (or individual) lookup limit breached" error `4021`
65
- *
66
- * Test requests undergo the usual authentication and restriction rules. They surface any issues during implementation and do not cost you a lookup.
67
- *
68
- */
69
- 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"> & {
70
- _id: string;
71
- _infinite?: boolean;
72
- tags?: ReadonlyArray<string>;
73
- }]>, "queryFn"> & {
74
- queryFn?: _tanstack_react_query.QueryFunction<PostcodeResponse, [Pick<Options<PostcodesData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
75
- _id: string;
76
- _infinite?: boolean;
77
- tags?: ReadonlyArray<string>;
78
- }], never> | undefined;
79
- } & {
80
- queryKey: [Pick<Options<PostcodesData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
81
- _id: string;
82
- _infinite?: boolean;
83
- tags?: ReadonlyArray<string>;
84
- }] & {
85
- [dataTagSymbol]: PostcodeResponse;
86
- [dataTagErrorSymbol]: PostcodesError;
87
- };
88
- };
89
20
  declare const postcodesInfiniteQueryKey: (options: Options<PostcodesData>) => QueryKey<Options<PostcodesData>>;
90
- /**
91
- * Lookup Postcode
92
- *
93
- * Returns the complete list of addresses for a postcode. Postcode searches are space and case insensitive.
94
- *
95
- * Each request looks up one postcode. To extract the addresses for several postcodes, send one request per postcode.
96
- *
97
- * Use it to power postcode driven address searches, like [Postcode Lookup](/docs/postcode-lookup/).
98
- *
99
- * 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.
100
- *
101
- * UK postcodes need PAF, Multiple Residence, Not Yet Built, PAF Alias, PAF Welsh, AddressBase or AddressBase Premium on your key. Eircodes need ECAD or ECAF. Dutch postcodes need Kadaster. Singapore postcodes need HERE Asia Pacific. Without a matching licence the request is rejected.
102
- *
103
- * An unfound postcode costs no lookup. A postcode that returns addresses costs one.
104
- *
105
- * ## Postcode Not Found
106
- *
107
- * Invalid postcodes do not affect your lookup balance. The API returns a `404` response with this body:
108
- *
109
- * ```json
110
- * {
111
- * "code": 4040,
112
- * "message": "Postcode not found",
113
- * "suggestions": ["SW1A 0AA"]
114
- * }
115
- * ```
116
- *
117
- * ### Suggestions
118
- *
119
- * 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`).
120
- *
121
- * 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.
122
- *
123
- * The suggestion list is empty if the postcode has deviated too far from a valid postcode format.
124
- *
125
- * ## Multiple Residence
126
- *
127
- * 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.
128
- *
129
- * ## Testing
130
- *
131
- * - **ID1 1QD** Returns a successful postcode lookup response `2000`
132
- * - **ID1 KFA** Returns "postcode not found" error `4040`
133
- * - **ID1 CLIP** Returns "no lookups remaining" error `4020`
134
- * - **ID1 CHOP** Returns "daily (or individual) lookup limit breached" error `4021`
135
- *
136
- * Test requests undergo the usual authentication and restriction rules. They surface any issues during implementation and do not cost you a lookup.
137
- *
138
- */
139
- 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"> & {
140
- _id: string;
141
- _infinite?: boolean;
142
- tags?: ReadonlyArray<string>;
143
- }, "query" | "body" | "headers" | "path">> & {
144
- initialData: InfiniteData<PostcodeResponse, number | Pick<Pick<Options<PostcodesData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
145
- _id: string;
146
- _infinite?: boolean;
147
- tags?: ReadonlyArray<string>;
148
- }, "query" | "body" | "headers" | "path">> | (() => InfiniteData<PostcodeResponse, number | Pick<Pick<Options<PostcodesData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
149
- _id: string;
150
- _infinite?: boolean;
151
- tags?: ReadonlyArray<string>;
152
- }, "query" | "body" | "headers" | "path">>) | undefined;
153
- } & {
154
- queryKey: QueryKey<Options<PostcodesData>> & {
155
- [dataTagSymbol]: InfiniteData<PostcodeResponse, unknown>;
156
- [dataTagErrorSymbol]: PostcodesError;
157
- };
158
- };
159
- 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"> & {
160
22
  _id: string;
161
23
  _infinite?: boolean;
162
24
  tags?: ReadonlyArray<string>;
@@ -166,25 +28,25 @@ declare const keyAvailabilityQueryKey: (options: Options<KeyAvailabilityData>) =
166
28
  *
167
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`).
168
30
  *
169
- * The endpoint accepts API Keys (beginning `ak_`) and sub-licensed keys (beginning `sl_`), and needs no `user_token`.
31
+ * The endpoint accepts API Keys (beginning `ak_`) and sub-licensed keys (beginning `sl_`), and needs no Management Key.
170
32
  *
171
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.
172
34
  *
173
- * Supply a valid `user_token` and the endpoint returns the key's private details instead, as `GET /keys/{key}/details` does. A `user_token` that does not own the key is rejected.
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.
174
36
  *
175
37
  */
176
- 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"> & {
177
39
  _id: string;
178
40
  _infinite?: boolean;
179
41
  tags?: ReadonlyArray<string>;
180
42
  }]>, "queryFn"> & {
181
- 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"> & {
182
44
  _id: string;
183
45
  _infinite?: boolean;
184
46
  tags?: ReadonlyArray<string>;
185
47
  }], never> | undefined;
186
48
  } & {
187
- queryKey: [Pick<Options<KeyAvailabilityData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
49
+ queryKey: [Pick<Options<KeyAvailabilityData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
188
50
  _id: string;
189
51
  _infinite?: boolean;
190
52
  tags?: ReadonlyArray<string>;
@@ -193,7 +55,7 @@ declare const keyAvailabilityOptions: (options: Options<KeyAvailabilityData>) =>
193
55
  [dataTagErrorSymbol]: ErrorResponse;
194
56
  };
195
57
  };
196
- 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"> & {
197
59
  _id: string;
198
60
  _infinite?: boolean;
199
61
  tags?: ReadonlyArray<string>;
@@ -203,18 +65,18 @@ declare const keyDetailsQueryKey: (options: Options<KeyDetailsData>) => [Pick<Op
203
65
  *
204
66
  * Returns private data on a key: remaining lookups, licensed datasets, usage limits, notification settings and the search contexts the key can serve.
205
67
  */
206
- 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"> & {
207
69
  _id: string;
208
70
  _infinite?: boolean;
209
71
  tags?: ReadonlyArray<string>;
210
72
  }]>, "queryFn"> & {
211
- 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"> & {
212
74
  _id: string;
213
75
  _infinite?: boolean;
214
76
  tags?: ReadonlyArray<string>;
215
77
  }], never> | undefined;
216
78
  } & {
217
- queryKey: [Pick<Options<KeyDetailsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
79
+ queryKey: [Pick<Options<KeyDetailsData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
218
80
  _id: string;
219
81
  _infinite?: boolean;
220
82
  tags?: ReadonlyArray<string>;
@@ -229,7 +91,7 @@ declare const keyDetailsOptions: (options: Options<KeyDetailsData>) => _tanstack
229
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`.
230
92
  */
231
93
  declare const updateKeyDetailsMutation: (options?: Partial<Options<UpdateKeyDetailsData>>) => UseMutationOptions<UpdateKeyDetailsResponse, UpdateKeyDetailsError, Options<UpdateKeyDetailsData>>;
232
- 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"> & {
233
95
  _id: string;
234
96
  _infinite?: boolean;
235
97
  tags?: ReadonlyArray<string>;
@@ -244,18 +106,18 @@ declare const keyUsageQueryKey: (options: Options<KeyUsageData>) => [Pick<Option
244
106
  * Query at most three tags at once.
245
107
  *
246
108
  */
247
- declare const keyUsageOptions: (options: Options<KeyUsageData>) => _tanstack_react_query.OmitKeyof<_tanstack_preact_query.UseQueryOptions<ApiKeyUsageResponse, ErrorResponse, 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"> & {
248
110
  _id: string;
249
111
  _infinite?: boolean;
250
112
  tags?: ReadonlyArray<string>;
251
113
  }]>, "queryFn"> & {
252
- 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"> & {
253
115
  _id: string;
254
116
  _infinite?: boolean;
255
117
  tags?: ReadonlyArray<string>;
256
118
  }], never> | undefined;
257
119
  } & {
258
- queryKey: [Pick<Options<KeyUsageData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
120
+ queryKey: [Pick<Options<KeyUsageData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
259
121
  _id: string;
260
122
  _infinite?: boolean;
261
123
  tags?: ReadonlyArray<string>;
@@ -275,27 +137,27 @@ declare const keyUsageInfiniteQueryKey: (options: Options<KeyUsageData>) => Quer
275
137
  * Query at most three tags at once.
276
138
  *
277
139
  */
278
- 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" | "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"> & {
279
141
  _id: string;
280
142
  _infinite?: boolean;
281
143
  tags?: ReadonlyArray<string>;
282
- }, "query" | "body" | "headers" | "path">> & {
283
- 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"> & {
284
146
  _id: string;
285
147
  _infinite?: boolean;
286
148
  tags?: ReadonlyArray<string>;
287
- }, "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"> & {
288
150
  _id: string;
289
151
  _infinite?: boolean;
290
152
  tags?: ReadonlyArray<string>;
291
- }, "query" | "body" | "headers" | "path">>) | undefined;
153
+ }, "query" | "body" | "path" | "headers">>) | undefined;
292
154
  } & {
293
155
  queryKey: QueryKey<Options<KeyUsageData>> & {
294
156
  [dataTagSymbol]: InfiniteData<ApiKeyUsageResponse, unknown>;
295
157
  [dataTagErrorSymbol]: ErrorResponse;
296
158
  };
297
159
  };
298
- 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"> & {
299
161
  _id: string;
300
162
  _infinite?: boolean;
301
163
  tags?: ReadonlyArray<string>;
@@ -305,7 +167,7 @@ declare const keyLogsQueryKey: (options: Options<KeyLogsData>) => [Pick<Options<
305
167
  *
306
168
  * Returns a CSV of the paid lookups made on a key, with the information recorded against each one.
307
169
  *
308
- * This method requires a `user_token`, which can be found on your [accounts page](https://account.ideal-postcodes.co.uk/account).
170
+ * This method requires your Management Key, which can be found on your [accounts page](https://account.ideal-postcodes.co.uk/account).
309
171
  *
310
172
  * You can request a maximum interval of 90 days. Without a start or end date, the interval defaults to the last 21 days.
311
173
  *
@@ -336,18 +198,18 @@ declare const keyLogsQueryKey: (options: Options<KeyLogsData>) => [Pick<Options<
336
198
  * Set the interval to `0` days to prevent PII collection altogether.
337
199
  *
338
200
  */
339
- declare const keyLogsOptions: (options: Options<KeyLogsData>) => _tanstack_react_query.OmitKeyof<_tanstack_preact_query.UseQueryOptions<string, ErrorResponse, 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"> & {
340
202
  _id: string;
341
203
  _infinite?: boolean;
342
204
  tags?: ReadonlyArray<string>;
343
205
  }]>, "queryFn"> & {
344
- 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"> & {
345
207
  _id: string;
346
208
  _infinite?: boolean;
347
209
  tags?: ReadonlyArray<string>;
348
210
  }], never> | undefined;
349
211
  } & {
350
- queryKey: [Pick<Options<KeyLogsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
212
+ queryKey: [Pick<Options<KeyLogsData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
351
213
  _id: string;
352
214
  _infinite?: boolean;
353
215
  tags?: ReadonlyArray<string>;
@@ -362,7 +224,7 @@ declare const keyLogsInfiniteQueryKey: (options: Options<KeyLogsData>) => QueryK
362
224
  *
363
225
  * Returns a CSV of the paid lookups made on a key, with the information recorded against each one.
364
226
  *
365
- * This method requires a `user_token`, which can be found on your [accounts page](https://account.ideal-postcodes.co.uk/account).
227
+ * This method requires your Management Key, which can be found on your [accounts page](https://account.ideal-postcodes.co.uk/account).
366
228
  *
367
229
  * You can request a maximum interval of 90 days. Without a start or end date, the interval defaults to the last 21 days.
368
230
  *
@@ -393,20 +255,20 @@ declare const keyLogsInfiniteQueryKey: (options: Options<KeyLogsData>) => QueryK
393
255
  * Set the interval to `0` days to prevent PII collection altogether.
394
256
  *
395
257
  */
396
- 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" | "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"> & {
397
259
  _id: string;
398
260
  _infinite?: boolean;
399
261
  tags?: ReadonlyArray<string>;
400
- }, "query" | "body" | "headers" | "path">> & {
401
- 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"> & {
402
264
  _id: string;
403
265
  _infinite?: boolean;
404
266
  tags?: ReadonlyArray<string>;
405
- }, "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"> & {
406
268
  _id: string;
407
269
  _infinite?: boolean;
408
270
  tags?: ReadonlyArray<string>;
409
- }, "query" | "body" | "headers" | "path">>) | undefined;
271
+ }, "query" | "body" | "path" | "headers">>) | undefined;
410
272
  } & {
411
273
  queryKey: QueryKey<Options<KeyLogsData>> & {
412
274
  [dataTagSymbol]: InfiniteData<string, unknown>;
@@ -420,6 +282,20 @@ declare const keyLogsInfiniteOptions: (options: Options<KeyLogsData>) => _tansta
420
282
  *
421
283
  * A cleanse that returns a match costs a lookup. A no-match response is free.
422
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.
298
+ *
423
299
  * ## Confidence Score
424
300
  *
425
301
  * Each incorrect, missing or misspelled element subtracts from the overall confidence score.
@@ -437,7 +313,7 @@ declare const keyLogsInfiniteOptions: (options: Options<KeyLogsData>) => _tansta
437
313
  *
438
314
  */
439
315
  declare const addressCleanseMutation: (options?: Partial<Options<AddressCleanseData>>) => UseMutationOptions<AddressCleanseResponse, AddressCleanseError, Options<AddressCleanseData>>;
440
- 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"> & {
441
317
  _id: string;
442
318
  _infinite?: boolean;
443
319
  tags?: ReadonlyArray<string>;
@@ -493,18 +369,18 @@ declare const findAddressQueryKey: (options?: Options<FindAddressData>) => [Pick
493
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.
494
370
  *
495
371
  */
496
- declare const findAddressOptions: (options?: Options<FindAddressData>) => _tanstack_react_query.OmitKeyof<_tanstack_preact_query.UseQueryOptions<AutocompleteResponse, ErrorResponse, 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"> & {
497
373
  _id: string;
498
374
  _infinite?: boolean;
499
375
  tags?: ReadonlyArray<string>;
500
376
  }]>, "queryFn"> & {
501
- 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"> & {
502
378
  _id: string;
503
379
  _infinite?: boolean;
504
380
  tags?: ReadonlyArray<string>;
505
381
  }], never> | undefined;
506
382
  } & {
507
- queryKey: [Pick<Options<FindAddressData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
383
+ queryKey: [Pick<Options<FindAddressData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
508
384
  _id: string;
509
385
  _infinite?: boolean;
510
386
  tags?: ReadonlyArray<string>;
@@ -513,228 +389,18 @@ declare const findAddressOptions: (options?: Options<FindAddressData>) => _tanst
513
389
  [dataTagErrorSymbol]: ErrorResponse;
514
390
  };
515
391
  };
516
- 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"> & {
517
393
  _id: string;
518
394
  _infinite?: boolean;
519
395
  tags?: ReadonlyArray<string>;
520
396
  }];
521
- /**
522
- * Resolve Address
523
- *
524
- * Returns the complete address for an autocomplete suggestion, identified by its address ID.
525
- *
526
- * This is the step of the autocomplete flow that costs a lookup. Fetching suggestions is free.
527
- *
528
- * The API returns resolved addresses, including addresses outside the UK, in a UK format (up to 3 address lines) using UK nomenclature such as postcode and county.
529
- *
530
- * An ID that matches no address returns `404`.
531
- *
532
- */
533
- 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"> & {
534
- _id: string;
535
- _infinite?: boolean;
536
- tags?: ReadonlyArray<string>;
537
- }]>, "queryFn"> & {
538
- queryFn?: _tanstack_react_query.QueryFunction<GbrResolveAddressResponse, [Pick<Options<ResolveAddressData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
539
- _id: string;
540
- _infinite?: boolean;
541
- tags?: ReadonlyArray<string>;
542
- }], never> | undefined;
543
- } & {
544
- queryKey: [Pick<Options<ResolveAddressData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
545
- _id: string;
546
- _infinite?: boolean;
547
- tags?: ReadonlyArray<string>;
548
- }] & {
549
- [dataTagSymbol]: GbrResolveAddressResponse;
550
- [dataTagErrorSymbol]: ErrorResponse;
551
- };
552
- };
553
- declare const addressesQueryKey: (options?: Options<AddressesData>) => [Pick<Options<AddressesData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
397
+ declare const addressesQueryKey: (options?: Options<AddressesData>) => [Pick<Options<AddressesData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
554
398
  _id: string;
555
399
  _infinite?: boolean;
556
400
  tags?: ReadonlyArray<string>;
557
401
  }];
558
- /**
559
- * Extract Addresses
560
- *
561
- * Returns a list of UK addresses matching the query, ordered by relevance score. `limit` defaults to 10 and caps at 100. `page` defaults to 0.
562
- *
563
- * You may only extract a single address from each request. To extract multiple addresses, you must perform an individual request for each address.
564
- *
565
- * If the query is a valid postcode, the API returns the whole address list for that postcode and raises the limit to 100. Use `page` to reach the rest of a postcode holding more than 100 premises. You cannot page beyond 10,000 results.
566
- *
567
- * Your key needs at least one of PAF, Multiple Residence, Not Yet Built, PAF Alias, PAF Welsh, AddressBase or AddressBase Premium. Without one the request is rejected.
568
- *
569
- * A request that returns at least one address costs a lookup. Empty result sets are free.
570
- *
571
- * ## Reverse Geocoding
572
- *
573
- * Return the addresses around a point with the `lon=` and `lat=` querystring arguments. The search radius is 100m and the API sorts addresses by distance from the point.
574
- *
575
- * ## Filters
576
- *
577
- * Narrow your results by adding filters to your query string that correspond with an address attribute.
578
- *
579
- * For instance, you can restrict to postcode `SW1A 2AA` by appending `postcode=sw1a2aa`.
580
- *
581
- * If a filter term is invalid, e.g. `postcode=SW1A2AAA`, the API returns an empty result set and charges no lookup.
582
- *
583
- * 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.
584
- *
585
- * All filters can accept multiple terms unless stated otherwise below.
586
- *
587
- * Multiple filters can also be combined. E.g. Restrict results to small user organisations in the N postcode area: `su_organisation_indicator=Y&postcode_area=n`. Multiple filters are `AND`'ed, i.e. each additional filter narrows the result set.
588
- *
589
- * A combined maximum of 8 terms is allowed across all filters.
590
- *
591
- * ## Biases
592
- *
593
- * You can boost address results that correspond with a given address attribute. All bias searches are prefixed with `bias_`.
594
- *
595
- * Biased searches, unlike filtered searches, still allow unmatched addresses to appear. They rank lower.
596
- *
597
- * For instance, you can boost addresses with postcode areas `SW` and `SE` by appending `bias_postcode_area=SW,SE`.
598
- *
599
- * If a bias term is invalid, e.g. `bias_postcode=SW1A2AAA`, no bias is applied.
600
- *
601
- * 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`.
602
- *
603
- * All biases can accept multiple terms unless stated otherwise below.
604
- *
605
- * A combined maximum of 5 terms is allowed across all biases.
606
- *
607
- * ## Search by Postcode and Building Name or Number
608
- *
609
- * Search by postcode and building attribute with the postcode filter and query argument. E.g. For "SW1A 2AA Prime Minister" `/v1/addresses?postcode=sw1a2aa&q=prime minister`.
610
- *
611
- * Using a filter means a postcode mismatch returns no results and costs no lookup.
612
- *
613
- * ### Search by UPRN
614
- *
615
- * Search by UPRN using the `uprn` filter and excluding the query argument. E.g. `/v1/addresses?uprn=100`.
616
- *
617
- * ## Testing
618
- *
619
- * - **ID1 1QD** Returns a successful query response `2000`
620
- * - **ID1 KFA** Returns an empty query response `2000`
621
- * - **ID1 CLIP** Returns "no lookups remaining" error `4020`
622
- * - **ID1 CHOP** Returns "daily (or individual) lookup limit breached" error `4021`
623
- *
624
- * Test requests undergo the usual authentication and restriction rules. They surface any issues during implementation and do not cost you a lookup.
625
- *
626
- */
627
- declare const addressesOptions: (options?: Options<AddressesData>) => _tanstack_react_query.OmitKeyof<_tanstack_preact_query.UseQueryOptions<AddressResponse, AddressesError, AddressResponse, [Pick<Options<AddressesData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
628
- _id: string;
629
- _infinite?: boolean;
630
- tags?: ReadonlyArray<string>;
631
- }]>, "queryFn"> & {
632
- queryFn?: _tanstack_react_query.QueryFunction<AddressResponse, [Pick<Options<AddressesData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
633
- _id: string;
634
- _infinite?: boolean;
635
- tags?: ReadonlyArray<string>;
636
- }], never> | undefined;
637
- } & {
638
- queryKey: [Pick<Options<AddressesData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
639
- _id: string;
640
- _infinite?: boolean;
641
- tags?: ReadonlyArray<string>;
642
- }] & {
643
- [dataTagSymbol]: AddressResponse;
644
- [dataTagErrorSymbol]: AddressesError;
645
- };
646
- };
647
402
  declare const addressesInfiniteQueryKey: (options?: Options<AddressesData>) => QueryKey<Options<AddressesData>>;
648
- /**
649
- * Extract Addresses
650
- *
651
- * Returns a list of UK addresses matching the query, ordered by relevance score. `limit` defaults to 10 and caps at 100. `page` defaults to 0.
652
- *
653
- * You may only extract a single address from each request. To extract multiple addresses, you must perform an individual request for each address.
654
- *
655
- * If the query is a valid postcode, the API returns the whole address list for that postcode and raises the limit to 100. Use `page` to reach the rest of a postcode holding more than 100 premises. You cannot page beyond 10,000 results.
656
- *
657
- * Your key needs at least one of PAF, Multiple Residence, Not Yet Built, PAF Alias, PAF Welsh, AddressBase or AddressBase Premium. Without one the request is rejected.
658
- *
659
- * A request that returns at least one address costs a lookup. Empty result sets are free.
660
- *
661
- * ## Reverse Geocoding
662
- *
663
- * Return the addresses around a point with the `lon=` and `lat=` querystring arguments. The search radius is 100m and the API sorts addresses by distance from the point.
664
- *
665
- * ## Filters
666
- *
667
- * Narrow your results by adding filters to your query string that correspond with an address attribute.
668
- *
669
- * For instance, you can restrict to postcode `SW1A 2AA` by appending `postcode=sw1a2aa`.
670
- *
671
- * If a filter term is invalid, e.g. `postcode=SW1A2AAA`, the API returns an empty result set and charges no lookup.
672
- *
673
- * 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.
674
- *
675
- * All filters can accept multiple terms unless stated otherwise below.
676
- *
677
- * Multiple filters can also be combined. E.g. Restrict results to small user organisations in the N postcode area: `su_organisation_indicator=Y&postcode_area=n`. Multiple filters are `AND`'ed, i.e. each additional filter narrows the result set.
678
- *
679
- * A combined maximum of 8 terms is allowed across all filters.
680
- *
681
- * ## Biases
682
- *
683
- * You can boost address results that correspond with a given address attribute. All bias searches are prefixed with `bias_`.
684
- *
685
- * Biased searches, unlike filtered searches, still allow unmatched addresses to appear. They rank lower.
686
- *
687
- * For instance, you can boost addresses with postcode areas `SW` and `SE` by appending `bias_postcode_area=SW,SE`.
688
- *
689
- * If a bias term is invalid, e.g. `bias_postcode=SW1A2AAA`, no bias is applied.
690
- *
691
- * 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`.
692
- *
693
- * All biases can accept multiple terms unless stated otherwise below.
694
- *
695
- * A combined maximum of 5 terms is allowed across all biases.
696
- *
697
- * ## Search by Postcode and Building Name or Number
698
- *
699
- * Search by postcode and building attribute with the postcode filter and query argument. E.g. For "SW1A 2AA Prime Minister" `/v1/addresses?postcode=sw1a2aa&q=prime minister`.
700
- *
701
- * Using a filter means a postcode mismatch returns no results and costs no lookup.
702
- *
703
- * ### Search by UPRN
704
- *
705
- * Search by UPRN using the `uprn` filter and excluding the query argument. E.g. `/v1/addresses?uprn=100`.
706
- *
707
- * ## Testing
708
- *
709
- * - **ID1 1QD** Returns a successful query response `2000`
710
- * - **ID1 KFA** Returns an empty query response `2000`
711
- * - **ID1 CLIP** Returns "no lookups remaining" error `4020`
712
- * - **ID1 CHOP** Returns "daily (or individual) lookup limit breached" error `4021`
713
- *
714
- * Test requests undergo the usual authentication and restriction rules. They surface any issues during implementation and do not cost you a lookup.
715
- *
716
- */
717
- declare const addressesInfiniteOptions: (options?: Options<AddressesData>) => _tanstack_preact_query.UseInfiniteQueryOptions<AddressResponse, AddressesError, InfiniteData<AddressResponse, unknown>, QueryKey<Options<AddressesData>>, number | Pick<Pick<Options<AddressesData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
718
- _id: string;
719
- _infinite?: boolean;
720
- tags?: ReadonlyArray<string>;
721
- }, "query" | "body" | "headers" | "path">> & {
722
- initialData: InfiniteData<AddressResponse, number | Pick<Pick<Options<AddressesData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
723
- _id: string;
724
- _infinite?: boolean;
725
- tags?: ReadonlyArray<string>;
726
- }, "query" | "body" | "headers" | "path">> | (() => InfiniteData<AddressResponse, number | Pick<Pick<Options<AddressesData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
727
- _id: string;
728
- _infinite?: boolean;
729
- tags?: ReadonlyArray<string>;
730
- }, "query" | "body" | "headers" | "path">>) | undefined;
731
- } & {
732
- queryKey: QueryKey<Options<AddressesData>> & {
733
- [dataTagSymbol]: InfiniteData<AddressResponse, unknown>;
734
- [dataTagErrorSymbol]: AddressesError;
735
- };
736
- };
737
- declare const findPlaceQueryKey: (options?: Options<FindPlaceData>) => [Pick<Options<FindPlaceData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
403
+ declare const findPlaceQueryKey: (options?: Options<FindPlaceData>) => [Pick<Options<FindPlaceData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
738
404
  _id: string;
739
405
  _infinite?: boolean;
740
406
  tags?: ReadonlyArray<string>;
@@ -760,18 +426,18 @@ declare const findPlaceQueryKey: (options?: Options<FindPlaceData>) => [Pick<Opt
760
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.
761
427
  *
762
428
  */
763
- declare const findPlaceOptions: (options?: Options<FindPlaceData>) => _tanstack_react_query.OmitKeyof<_tanstack_preact_query.UseQueryOptions<PlaceResponse, ErrorResponse, 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"> & {
764
430
  _id: string;
765
431
  _infinite?: boolean;
766
432
  tags?: ReadonlyArray<string>;
767
433
  }]>, "queryFn"> & {
768
- 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"> & {
769
435
  _id: string;
770
436
  _infinite?: boolean;
771
437
  tags?: ReadonlyArray<string>;
772
438
  }], never> | undefined;
773
439
  } & {
774
- queryKey: [Pick<Options<FindPlaceData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
440
+ queryKey: [Pick<Options<FindPlaceData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
775
441
  _id: string;
776
442
  _infinite?: boolean;
777
443
  tags?: ReadonlyArray<string>;
@@ -780,42 +446,12 @@ declare const findPlaceOptions: (options?: Options<FindPlaceData>) => _tanstack_
780
446
  [dataTagErrorSymbol]: ErrorResponse;
781
447
  };
782
448
  };
783
- 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"> & {
784
450
  _id: string;
785
451
  _infinite?: boolean;
786
452
  tags?: ReadonlyArray<string>;
787
453
  }];
788
- /**
789
- * Resolve Place
790
- *
791
- * Returns the full place for a place ID taken from a `/places` suggestion.
792
- *
793
- * On top of the fields carried by the suggestion, the response adds coordinates, language and the underlying dataset record.
794
- *
795
- * Each request decrements your lookup balance. An unknown ID returns `404`.
796
- *
797
- */
798
- 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"> & {
799
- _id: string;
800
- _infinite?: boolean;
801
- tags?: ReadonlyArray<string>;
802
- }]>, "queryFn"> & {
803
- queryFn?: _tanstack_react_query.QueryFunction<ResolvePlaceResponse, [Pick<Options<ResolvePlaceData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
804
- _id: string;
805
- _infinite?: boolean;
806
- tags?: ReadonlyArray<string>;
807
- }], never> | undefined;
808
- } & {
809
- queryKey: [Pick<Options<ResolvePlaceData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
810
- _id: string;
811
- _infinite?: boolean;
812
- tags?: ReadonlyArray<string>;
813
- }] & {
814
- [dataTagSymbol]: ResolvePlaceResponse;
815
- [dataTagErrorSymbol]: ErrorResponse;
816
- };
817
- };
818
- 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"> & {
819
455
  _id: string;
820
456
  _infinite?: boolean;
821
457
  tags?: ReadonlyArray<string>;
@@ -823,20 +459,20 @@ declare const listLicenseesQueryKey: (options: Options<ListLicenseesData>) => [P
823
459
  /**
824
460
  * List
825
461
  *
826
- * Returns a key's licensees, oldest first, up to 100 per request. The list omits cancelled licensees. The key must be enabled for sub-licensing.
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.
827
463
  */
828
- declare const listLicenseesOptions: (options: Options<ListLicenseesData>) => _tanstack_react_query.OmitKeyof<_tanstack_preact_query.UseQueryOptions<LicenseesResponse, ErrorResponse, 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"> & {
829
465
  _id: string;
830
466
  _infinite?: boolean;
831
467
  tags?: ReadonlyArray<string>;
832
468
  }]>, "queryFn"> & {
833
- 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"> & {
834
470
  _id: string;
835
471
  _infinite?: boolean;
836
472
  tags?: ReadonlyArray<string>;
837
473
  }], never> | undefined;
838
474
  } & {
839
- queryKey: [Pick<Options<ListLicenseesData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
475
+ queryKey: [Pick<Options<ListLicenseesData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
840
476
  _id: string;
841
477
  _infinite?: boolean;
842
478
  tags?: ReadonlyArray<string>;
@@ -848,7 +484,7 @@ declare const listLicenseesOptions: (options: Options<ListLicenseesData>) => _ta
848
484
  /**
849
485
  * Create
850
486
  *
851
- * Creates a licensee on a key and returns it with its generated `sl_` key. The key must be enabled for sub-licensing.
487
+ * Creates a licensee on a key and returns it with its generated `sl_` key. The key must be enabled for sublicensing.
852
488
  */
853
489
  declare const createLicenseeMutation: (options?: Partial<Options<CreateLicenseeData>>) => UseMutationOptions<CreateLicenseeResponse, CreateLicenseeError, Options<CreateLicenseeData>>;
854
490
  /**
@@ -857,7 +493,7 @@ declare const createLicenseeMutation: (options?: Partial<Options<CreateLicenseeD
857
493
  * Cancels a licensee. Its key stops working and it drops out of the licensee list. Contact us to reverse it.
858
494
  */
859
495
  declare const deleteLicenseeMutation: (options?: Partial<Options<DeleteLicenseeData>>) => UseMutationOptions<DeleteLicenseeResponse, DeleteLicenseeError, Options<DeleteLicenseeData>>;
860
- 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"> & {
861
497
  _id: string;
862
498
  _infinite?: boolean;
863
499
  tags?: ReadonlyArray<string>;
@@ -867,18 +503,18 @@ declare const retrieveLicenseeQueryKey: (options: Options<RetrieveLicenseeData>)
867
503
  *
868
504
  * Returns a licensee by its `sl_` key. A cancelled or unknown licensee returns `404`.
869
505
  */
870
- declare const retrieveLicenseeOptions: (options: Options<RetrieveLicenseeData>) => _tanstack_react_query.OmitKeyof<_tanstack_preact_query.UseQueryOptions<LicenseeResponse, ErrorResponse, 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"> & {
871
507
  _id: string;
872
508
  _infinite?: boolean;
873
509
  tags?: ReadonlyArray<string>;
874
510
  }]>, "queryFn"> & {
875
- 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"> & {
876
512
  _id: string;
877
513
  _infinite?: boolean;
878
514
  tags?: ReadonlyArray<string>;
879
515
  }], never> | undefined;
880
516
  } & {
881
- queryKey: [Pick<Options<RetrieveLicenseeData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
517
+ queryKey: [Pick<Options<RetrieveLicenseeData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
882
518
  _id: string;
883
519
  _infinite?: boolean;
884
520
  tags?: ReadonlyArray<string>;
@@ -899,7 +535,7 @@ declare const updateLicenseeMutation: (options?: Partial<Options<UpdateLicenseeD
899
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.
900
536
  */
901
537
  declare const regenerateLicenseeKeyMutation: (options?: Partial<Options<RegenerateLicenseeKeyData>>) => UseMutationOptions<RegenerateLicenseeKeyResponse, RegenerateLicenseeKeyError, Options<RegenerateLicenseeKeyData>>;
902
- declare const listConfigsQueryKey: (options: Options<ListConfigsData>) => [Pick<Options<ListConfigsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
538
+ declare const listConfigsQueryKey: (options: Options<ListConfigsData>) => [Pick<Options<ListConfigsData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
903
539
  _id: string;
904
540
  _infinite?: boolean;
905
541
  tags?: ReadonlyArray<string>;
@@ -909,18 +545,18 @@ declare const listConfigsQueryKey: (options: Options<ListConfigsData>) => [Pick<
909
545
  *
910
546
  * Returns every configuration stored against a key, oldest first.
911
547
  */
912
- declare const listConfigsOptions: (options: Options<ListConfigsData>) => _tanstack_react_query.OmitKeyof<_tanstack_preact_query.UseQueryOptions<ConfigsResponse, ErrorResponse, 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"> & {
913
549
  _id: string;
914
550
  _infinite?: boolean;
915
551
  tags?: ReadonlyArray<string>;
916
552
  }]>, "queryFn"> & {
917
- 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"> & {
918
554
  _id: string;
919
555
  _infinite?: boolean;
920
556
  tags?: ReadonlyArray<string>;
921
557
  }], never> | undefined;
922
558
  } & {
923
- queryKey: [Pick<Options<ListConfigsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
559
+ queryKey: [Pick<Options<ListConfigsData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
924
560
  _id: string;
925
561
  _infinite?: boolean;
926
562
  tags?: ReadonlyArray<string>;
@@ -941,7 +577,7 @@ declare const createConfigMutation: (options?: Partial<Options<CreateConfigData>
941
577
  * Permanently deletes a configuration object.
942
578
  */
943
579
  declare const deleteConfigMutation: (options?: Partial<Options<DeleteConfigData>>) => UseMutationOptions<DeleteConfigResponse, DeleteConfigError, Options<DeleteConfigData>>;
944
- 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"> & {
945
581
  _id: string;
946
582
  _infinite?: boolean;
947
583
  tags?: ReadonlyArray<string>;
@@ -951,18 +587,18 @@ declare const retrieveConfigQueryKey: (options: Options<RetrieveConfigData>) =>
951
587
  *
952
588
  * Returns a configuration by name. This request needs no `user_token`, so a browser integration can read its own configuration at runtime.
953
589
  */
954
- 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"> & {
955
591
  _id: string;
956
592
  _infinite?: boolean;
957
593
  tags?: ReadonlyArray<string>;
958
594
  }]>, "queryFn"> & {
959
- 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"> & {
960
596
  _id: string;
961
597
  _infinite?: boolean;
962
598
  tags?: ReadonlyArray<string>;
963
599
  }], never> | undefined;
964
600
  } & {
965
- queryKey: [Pick<Options<RetrieveConfigData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
601
+ queryKey: [Pick<Options<RetrieveConfigData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
966
602
  _id: string;
967
603
  _infinite?: boolean;
968
604
  tags?: ReadonlyArray<string>;
@@ -977,68 +613,190 @@ declare const retrieveConfigOptions: (options: Options<RetrieveConfigData>) => _
977
613
  * Replaces a configuration's payload and returns the updated configuration. The name is fixed at creation.
978
614
  */
979
615
  declare const updateConfigMutation: (options?: Partial<Options<UpdateConfigData>>) => UseMutationOptions<UpdateConfigResponse, UpdateConfigError, Options<UpdateConfigData>>;
980
- 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"> & {
981
617
  _id: string;
982
618
  _infinite?: boolean;
983
619
  tags?: ReadonlyArray<string>;
984
620
  }];
985
- /**
986
- * Email Validation
987
- *
988
- * Validates an email address and reports whether it is deliverable.
989
- *
990
- * Requires an API Key licensed for email validation. A query over 320 characters is rejected.
991
- *
992
- * A validated address decrements your lookup balance. An address the API cannot check returns `unknown` and costs no lookup. An address whose domain does not resolve, or publishes no MX records, returns `not_deliverable` and also costs no lookup. Only those two domain failures populate `suggestions`. Every other response returns an empty list.
993
- *
994
- */
995
- declare const emailValidationOptions: (options: Options<EmailValidationData>) => _tanstack_react_query.OmitKeyof<_tanstack_preact_query.UseQueryOptions<EmailResponse, ErrorResponse, 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"> & {
996
628
  _id: string;
997
629
  _infinite?: boolean;
998
630
  tags?: ReadonlyArray<string>;
999
631
  }]>, "queryFn"> & {
1000
- 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"> & {
1001
633
  _id: string;
1002
634
  _infinite?: boolean;
1003
635
  tags?: ReadonlyArray<string>;
1004
636
  }], never> | undefined;
1005
637
  } & {
1006
- queryKey: [Pick<Options<EmailValidationData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
638
+ queryKey: [Pick<Options<PostcodesData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
1007
639
  _id: string;
1008
640
  _infinite?: boolean;
1009
641
  tags?: ReadonlyArray<string>;
1010
642
  }] & {
1011
- [dataTagSymbol]: EmailResponse;
643
+ [dataTagSymbol]: PostcodeResponse;
644
+ [dataTagErrorSymbol]: PostcodesError;
645
+ };
646
+ } & {
647
+ gcTime: 0;
648
+ staleTime: 0;
649
+ };
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"> & {
651
+ _id: string;
652
+ _infinite?: boolean;
653
+ tags?: ReadonlyArray<string>;
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"> & {
674
+ _id: string;
675
+ _infinite?: boolean;
676
+ tags?: ReadonlyArray<string>;
677
+ }]>, "queryFn"> & {
678
+ queryFn?: _tanstack_react_query.QueryFunction<GbrResolveAddressResponse, [Pick<Options<ResolveAddressData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
679
+ _id: string;
680
+ _infinite?: boolean;
681
+ tags?: ReadonlyArray<string>;
682
+ }], never> | undefined;
683
+ } & {
684
+ queryKey: [Pick<Options<ResolveAddressData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
685
+ _id: string;
686
+ _infinite?: boolean;
687
+ tags?: ReadonlyArray<string>;
688
+ }] & {
689
+ [dataTagSymbol]: GbrResolveAddressResponse;
1012
690
  [dataTagErrorSymbol]: ErrorResponse;
1013
691
  };
692
+ } & {
693
+ gcTime: 0;
694
+ staleTime: 0;
1014
695
  };
1015
- declare const phoneNumberValidationQueryKey: (options: Options<PhoneNumberValidationData>) => [Pick<Options<PhoneNumberValidationData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
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"> & {
1016
697
  _id: string;
1017
698
  _infinite?: boolean;
1018
699
  tags?: ReadonlyArray<string>;
1019
- }];
1020
- /**
1021
- * Phone Number Validation
1022
- *
1023
- * Validates a phone number and returns its country, its national and international formats, and the network it was originally assigned to.
1024
- *
1025
- * Requires an API Key licensed for phone validation.
1026
- *
1027
- * Every query decrements your lookup balance, including a number that fails to parse and a number reported as invalid.
1028
- *
1029
- */
1030
- declare const phoneNumberValidationOptions: (options: Options<PhoneNumberValidationData>) => _tanstack_react_query.OmitKeyof<_tanstack_preact_query.UseQueryOptions<PhoneNumberResponse, ErrorResponse, PhoneNumberResponse, [Pick<Options<PhoneNumberValidationData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
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"> & {
1031
766
  _id: string;
1032
767
  _infinite?: boolean;
1033
768
  tags?: ReadonlyArray<string>;
1034
769
  }]>, "queryFn"> & {
1035
- queryFn?: _tanstack_react_query.QueryFunction<PhoneNumberResponse, [Pick<Options<PhoneNumberValidationData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
770
+ queryFn?: _tanstack_react_query.QueryFunction<EmailResponse, [Pick<Options<EmailValidationData>, "query" | "body" | "path" | "headers" | "baseUrl"> & {
1036
771
  _id: string;
1037
772
  _infinite?: boolean;
1038
773
  tags?: ReadonlyArray<string>;
1039
774
  }], never> | undefined;
1040
775
  } & {
1041
- queryKey: [Pick<Options<PhoneNumberValidationData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
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"> & {
1042
800
  _id: string;
1043
801
  _infinite?: boolean;
1044
802
  tags?: ReadonlyArray<string>;
@@ -1046,6 +804,9 @@ declare const phoneNumberValidationOptions: (options: Options<PhoneNumberValidat
1046
804
  [dataTagSymbol]: PhoneNumberResponse;
1047
805
  [dataTagErrorSymbol]: ErrorResponse;
1048
806
  };
807
+ } & {
808
+ gcTime: 0;
809
+ staleTime: 0;
1049
810
  };
1050
811
 
1051
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 };