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