@mailwoman/api 9.3.0 → 10.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/address-node-schema.ts +21 -0
- package/lib/app.ts +8 -14
- package/lib/input-limits.ts +14 -0
- package/lib/routes.ts +9 -8
- package/lib/schema.ts +4 -29
- package/out/address-node-schema.d.ts +15 -0
- package/out/address-node-schema.d.ts.map +1 -0
- package/out/address-node-schema.js +18 -0
- package/out/address-node-schema.js.map +1 -0
- package/out/app.d.ts.map +1 -1
- package/out/app.js +2 -11
- package/out/app.js.map +1 -1
- package/out/input-limits.d.ts +14 -0
- package/out/input-limits.d.ts.map +1 -0
- package/out/input-limits.js +14 -0
- package/out/input-limits.js.map +1 -0
- package/out/routes.d.ts.map +1 -1
- package/out/routes.js +9 -8
- package/out/routes.js.map +1 -1
- package/out/schema.d.ts +178 -200
- package/out/schema.d.ts.map +1 -1
- package/out/schema.js +4 -27
- package/out/schema.js.map +1 -1
- package/package.json +5 -5
package/out/schema.d.ts
CHANGED
|
@@ -16,39 +16,17 @@
|
|
|
16
16
|
* and error alike, from this one file.
|
|
17
17
|
*/
|
|
18
18
|
import { z } from "@hono/zod-openapi";
|
|
19
|
-
|
|
20
|
-
export { APIErrorSchema } from "@mailwoman/api-kit";
|
|
21
|
-
/**
|
|
22
|
-
* `POST /v1/parse` request body.
|
|
23
|
-
*/
|
|
24
|
-
/**
|
|
25
|
-
* One node of the decoded address tree. The decoder's `AddressNode` is a recursive union the OpenAPI generator cannot
|
|
26
|
-
* derive a schema for on its own, so it is registered as an open object; the shape is documented by the type.
|
|
27
|
-
*/
|
|
28
|
-
export declare const AddressNodeSchema: z.ZodCustom<AddressNode, AddressNode>;
|
|
19
|
+
export { AddressNodeSchema } from "#address-node-schema";
|
|
29
20
|
/**
|
|
30
21
|
* The input register (Decision A / GTM B10): `fragmented` = the map-search register (evidence-bundle channels feed);
|
|
31
22
|
* `formatted` = the validation/record register (channels off). Unset → the engine derives it from the input's shape.
|
|
32
23
|
* `/v1/batch` defaults to `formatted` (batch rows are the record register by nature).
|
|
33
24
|
*/
|
|
34
25
|
export declare const InputModeSchema: z.ZodEnum<{
|
|
35
|
-
fragmented: "fragmented";
|
|
36
26
|
formatted: "formatted";
|
|
27
|
+
fragmented: "fragmented";
|
|
37
28
|
}>;
|
|
38
|
-
|
|
39
|
-
* Longest accepted `address`, in characters.
|
|
40
|
-
*
|
|
41
|
-
* Sized against what the model can actually read, not against a guess at abuse. The classifier's window is 128
|
|
42
|
-
* SentencePiece pieces — roughly 330 characters of address text — and everything past it is truncated before inference,
|
|
43
|
-
* so input beyond this bound cannot influence a result. The margin over that window leaves room for scripts that
|
|
44
|
-
* tokenize denser than Latin, and for the department-and-division prefixes web forms concatenate.
|
|
45
|
-
*
|
|
46
|
-
* The bound exists because preprocessing is linear but not free: a 1 MB body costs ~1.7 s across normalize, query-shape
|
|
47
|
-
* and the phrase grouper, and Node runs them on the one thread every other request is waiting on. A cap here is cheaper
|
|
48
|
-
* than fairness plumbing, and rejecting is more honest than accepting a body whose tail the parser will silently
|
|
49
|
-
* discard.
|
|
50
|
-
*/
|
|
51
|
-
export declare const MAX_ADDRESS_LENGTH = 1024;
|
|
29
|
+
export { MAX_ADDRESS_LENGTH } from "#input-limits";
|
|
52
30
|
/**
|
|
53
31
|
* `POST /v1/parse` request body.
|
|
54
32
|
*/
|
|
@@ -56,8 +34,8 @@ export declare const ParseRequestSchema: z.ZodObject<{
|
|
|
56
34
|
address: z.ZodString;
|
|
57
35
|
debug: z.ZodOptional<z.ZodBoolean>;
|
|
58
36
|
input_mode: z.ZodOptional<z.ZodEnum<{
|
|
59
|
-
fragmented: "fragmented";
|
|
60
37
|
formatted: "formatted";
|
|
38
|
+
fragmented: "fragmented";
|
|
61
39
|
}>>;
|
|
62
40
|
}, z.core.$strip>;
|
|
63
41
|
/**
|
|
@@ -80,7 +58,7 @@ export declare const ParseOutcomeSchema: z.ZodObject<{
|
|
|
80
58
|
}, z.core.$strip>>;
|
|
81
59
|
tree: z.ZodObject<{
|
|
82
60
|
raw: z.ZodString;
|
|
83
|
-
roots: z.ZodArray<z.ZodCustom<AddressNode, AddressNode>>;
|
|
61
|
+
roots: z.ZodArray<z.ZodCustom<import("@mailwoman/core").AddressNode, import("@mailwoman/core").AddressNode>>;
|
|
84
62
|
}, z.core.$loose>;
|
|
85
63
|
debug: z.ZodOptional<z.ZodString>;
|
|
86
64
|
}, z.core.$strip>;
|
|
@@ -90,8 +68,8 @@ export declare const ParseOutcomeSchema: z.ZodObject<{
|
|
|
90
68
|
export declare const GeocodeRequestSchema: z.ZodObject<{
|
|
91
69
|
address: z.ZodString;
|
|
92
70
|
input_mode: z.ZodOptional<z.ZodEnum<{
|
|
93
|
-
fragmented: "fragmented";
|
|
94
71
|
formatted: "formatted";
|
|
72
|
+
fragmented: "fragmented";
|
|
95
73
|
}>>;
|
|
96
74
|
}, z.core.$strip>;
|
|
97
75
|
/**
|
|
@@ -100,10 +78,10 @@ export declare const GeocodeRequestSchema: z.ZodObject<{
|
|
|
100
78
|
*/
|
|
101
79
|
export declare const DerivationProjectionSchema: z.ZodObject<{
|
|
102
80
|
status: z.ZodEnum<{
|
|
103
|
-
designated: "designated";
|
|
104
|
-
observed: "observed";
|
|
105
81
|
derived: "derived";
|
|
82
|
+
designated: "designated";
|
|
106
83
|
inferred: "inferred";
|
|
84
|
+
observed: "observed";
|
|
107
85
|
unresolved: "unresolved";
|
|
108
86
|
}>;
|
|
109
87
|
constraints: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
@@ -122,8 +100,8 @@ export declare const DerivationProjectionSchema: z.ZodObject<{
|
|
|
122
100
|
h3Cell: z.ZodNumber;
|
|
123
101
|
basis: z.ZodEnum<{
|
|
124
102
|
designated: "designated";
|
|
125
|
-
surveyed: "surveyed";
|
|
126
103
|
source_present: "source_present";
|
|
104
|
+
surveyed: "surveyed";
|
|
127
105
|
}>;
|
|
128
106
|
fold: z.ZodString;
|
|
129
107
|
}, z.core.$strip>;
|
|
@@ -133,8 +111,8 @@ export declare const DerivationProjectionSchema: z.ZodObject<{
|
|
|
133
111
|
vintage: z.ZodString;
|
|
134
112
|
relationship: z.ZodString;
|
|
135
113
|
assertion: z.ZodEnum<{
|
|
136
|
-
inferred: "inferred";
|
|
137
114
|
authoritative: "authoritative";
|
|
115
|
+
inferred: "inferred";
|
|
138
116
|
}>;
|
|
139
117
|
score: z.ZodOptional<z.ZodNumber>;
|
|
140
118
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -160,56 +138,56 @@ export declare const DerivationProjectionSchema: z.ZodObject<{
|
|
|
160
138
|
export declare const GeocodeOutcomeLikeSchema: z.ZodObject<{
|
|
161
139
|
input: z.ZodString;
|
|
162
140
|
components: z.ZodRecord<z.ZodEnum<{
|
|
141
|
+
attention: "attention";
|
|
142
|
+
block: "block";
|
|
143
|
+
building_name: "building_name";
|
|
144
|
+
building_number: "building_number";
|
|
145
|
+
cedex: "cedex";
|
|
163
146
|
country: "country";
|
|
164
|
-
region: "region";
|
|
165
|
-
locality: "locality";
|
|
166
147
|
dependent_locality: "dependent_locality";
|
|
167
|
-
|
|
168
|
-
subregion: "subregion";
|
|
148
|
+
district: "district";
|
|
169
149
|
house_number: "house_number";
|
|
150
|
+
intersection_a: "intersection_a";
|
|
151
|
+
intersection_b: "intersection_b";
|
|
152
|
+
locality: "locality";
|
|
153
|
+
locality_unit: "locality_unit";
|
|
154
|
+
municipality: "municipality";
|
|
155
|
+
po_box: "po_box";
|
|
156
|
+
postcode: "postcode";
|
|
157
|
+
prefecture: "prefecture";
|
|
158
|
+
region: "region";
|
|
170
159
|
street: "street";
|
|
171
160
|
street_prefix: "street_prefix";
|
|
172
161
|
street_prefix_particle: "street_prefix_particle";
|
|
173
162
|
street_suffix: "street_suffix";
|
|
174
|
-
|
|
175
|
-
|
|
163
|
+
sub_block: "sub_block";
|
|
164
|
+
subregion: "subregion";
|
|
176
165
|
unit: "unit";
|
|
177
166
|
venue: "venue";
|
|
178
|
-
attention: "attention";
|
|
179
|
-
po_box: "po_box";
|
|
180
|
-
cedex: "cedex";
|
|
181
|
-
prefecture: "prefecture";
|
|
182
|
-
municipality: "municipality";
|
|
183
|
-
district: "district";
|
|
184
|
-
block: "block";
|
|
185
|
-
sub_block: "sub_block";
|
|
186
|
-
building_number: "building_number";
|
|
187
|
-
building_name: "building_name";
|
|
188
|
-
locality_unit: "locality_unit";
|
|
189
167
|
}> & z.core.$partial, z.ZodString>;
|
|
190
168
|
lat: z.ZodNullable<z.ZodNumber>;
|
|
191
169
|
lon: z.ZodNullable<z.ZodNumber>;
|
|
192
170
|
resolution_tier: z.ZodEnum<{
|
|
193
|
-
street: "street";
|
|
194
|
-
venue: "venue";
|
|
195
171
|
address_point: "address_point";
|
|
196
|
-
interpolated: "interpolated";
|
|
197
172
|
admin: "admin";
|
|
173
|
+
interpolated: "interpolated";
|
|
198
174
|
plus_code: "plus_code";
|
|
175
|
+
street: "street";
|
|
176
|
+
venue: "venue";
|
|
199
177
|
}>;
|
|
200
178
|
epistemic_status: z.ZodEnum<{
|
|
201
|
-
designated: "designated";
|
|
202
|
-
observed: "observed";
|
|
203
179
|
derived: "derived";
|
|
180
|
+
designated: "designated";
|
|
204
181
|
inferred: "inferred";
|
|
182
|
+
observed: "observed";
|
|
205
183
|
unresolved: "unresolved";
|
|
206
184
|
}>;
|
|
207
185
|
derivation: z.ZodOptional<z.ZodObject<{
|
|
208
186
|
status: z.ZodEnum<{
|
|
209
|
-
designated: "designated";
|
|
210
|
-
observed: "observed";
|
|
211
187
|
derived: "derived";
|
|
188
|
+
designated: "designated";
|
|
212
189
|
inferred: "inferred";
|
|
190
|
+
observed: "observed";
|
|
213
191
|
unresolved: "unresolved";
|
|
214
192
|
}>;
|
|
215
193
|
constraints: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
@@ -228,8 +206,8 @@ export declare const GeocodeOutcomeLikeSchema: z.ZodObject<{
|
|
|
228
206
|
h3Cell: z.ZodNumber;
|
|
229
207
|
basis: z.ZodEnum<{
|
|
230
208
|
designated: "designated";
|
|
231
|
-
surveyed: "surveyed";
|
|
232
209
|
source_present: "source_present";
|
|
210
|
+
surveyed: "surveyed";
|
|
233
211
|
}>;
|
|
234
212
|
fold: z.ZodString;
|
|
235
213
|
}, z.core.$strip>;
|
|
@@ -239,8 +217,8 @@ export declare const GeocodeOutcomeLikeSchema: z.ZodObject<{
|
|
|
239
217
|
vintage: z.ZodString;
|
|
240
218
|
relationship: z.ZodString;
|
|
241
219
|
assertion: z.ZodEnum<{
|
|
242
|
-
inferred: "inferred";
|
|
243
220
|
authoritative: "authoritative";
|
|
221
|
+
inferred: "inferred";
|
|
244
222
|
}>;
|
|
245
223
|
score: z.ZodOptional<z.ZodNumber>;
|
|
246
224
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -295,26 +273,26 @@ export declare const GeocodeOutcomeLikeSchema: z.ZodObject<{
|
|
|
295
273
|
variant_alias_exemption: z.ZodOptional<z.ZodLiteral<true>>;
|
|
296
274
|
intent_markers: z.ZodArray<z.ZodObject<{
|
|
297
275
|
kind: z.ZodEnum<{
|
|
276
|
+
bare_toponym: "bare_toponym";
|
|
298
277
|
intersection: "intersection";
|
|
278
|
+
landmark: "landmark";
|
|
279
|
+
locality_only: "locality_only";
|
|
280
|
+
near_me: "near_me";
|
|
299
281
|
po_box: "po_box";
|
|
282
|
+
poi_category: "poi_category";
|
|
283
|
+
poi_query: "poi_query";
|
|
300
284
|
postcode_only: "postcode_only";
|
|
301
|
-
|
|
285
|
+
route_pair: "route_pair";
|
|
302
286
|
structured_address: "structured_address";
|
|
303
|
-
landmark: "landmark";
|
|
304
|
-
poi_query: "poi_query";
|
|
305
287
|
vague: "vague";
|
|
306
|
-
bare_toponym: "bare_toponym";
|
|
307
|
-
route_pair: "route_pair";
|
|
308
|
-
near_me: "near_me";
|
|
309
|
-
poi_category: "poi_category";
|
|
310
288
|
}>;
|
|
311
289
|
code: z.ZodEnum<{
|
|
312
|
-
|
|
290
|
+
authority_designation: "authority_designation";
|
|
291
|
+
coverage_qualified_absence: "coverage_qualified_absence";
|
|
313
292
|
declared_ambiguity: "declared_ambiguity";
|
|
314
293
|
declared_fork: "declared_fork";
|
|
315
294
|
focus_point_required: "focus_point_required";
|
|
316
|
-
|
|
317
|
-
authority_designation: "authority_designation";
|
|
295
|
+
poi_category: "poi_category";
|
|
318
296
|
}>;
|
|
319
297
|
mechanism: z.ZodString;
|
|
320
298
|
message: z.ZodString;
|
|
@@ -337,8 +315,8 @@ export declare const GeocodeOutcomeLikeSchema: z.ZodObject<{
|
|
|
337
315
|
authoritative: z.ZodOptional<z.ZodObject<{
|
|
338
316
|
provider: z.ZodString;
|
|
339
317
|
status: z.ZodEnum<{
|
|
340
|
-
matched: "matched";
|
|
341
318
|
ambiguous: "ambiguous";
|
|
319
|
+
matched: "matched";
|
|
342
320
|
refused: "refused";
|
|
343
321
|
transport_error: "transport_error";
|
|
344
322
|
}>;
|
|
@@ -350,8 +328,8 @@ export declare const GeocodeOutcomeLikeSchema: z.ZodObject<{
|
|
|
350
328
|
lon: z.ZodOptional<z.ZodNumber>;
|
|
351
329
|
precision: z.ZodOptional<z.ZodString>;
|
|
352
330
|
match_status: z.ZodEnum<{
|
|
353
|
-
exact: "exact";
|
|
354
331
|
approximate: "approximate";
|
|
332
|
+
exact: "exact";
|
|
355
333
|
}>;
|
|
356
334
|
provider_score: z.ZodOptional<z.ZodNumber>;
|
|
357
335
|
}, z.core.$strip>>>;
|
|
@@ -363,32 +341,32 @@ export declare const GeocodeOutcomeLikeSchema: z.ZodObject<{
|
|
|
363
341
|
}, z.core.$strip>>;
|
|
364
342
|
dropped_components: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
365
343
|
tag: z.ZodEnum<{
|
|
344
|
+
attention: "attention";
|
|
345
|
+
block: "block";
|
|
346
|
+
building_name: "building_name";
|
|
347
|
+
building_number: "building_number";
|
|
348
|
+
cedex: "cedex";
|
|
366
349
|
country: "country";
|
|
367
|
-
region: "region";
|
|
368
|
-
locality: "locality";
|
|
369
350
|
dependent_locality: "dependent_locality";
|
|
370
|
-
|
|
371
|
-
subregion: "subregion";
|
|
351
|
+
district: "district";
|
|
372
352
|
house_number: "house_number";
|
|
353
|
+
intersection_a: "intersection_a";
|
|
354
|
+
intersection_b: "intersection_b";
|
|
355
|
+
locality: "locality";
|
|
356
|
+
locality_unit: "locality_unit";
|
|
357
|
+
municipality: "municipality";
|
|
358
|
+
po_box: "po_box";
|
|
359
|
+
postcode: "postcode";
|
|
360
|
+
prefecture: "prefecture";
|
|
361
|
+
region: "region";
|
|
373
362
|
street: "street";
|
|
374
363
|
street_prefix: "street_prefix";
|
|
375
364
|
street_prefix_particle: "street_prefix_particle";
|
|
376
365
|
street_suffix: "street_suffix";
|
|
377
|
-
|
|
378
|
-
|
|
366
|
+
sub_block: "sub_block";
|
|
367
|
+
subregion: "subregion";
|
|
379
368
|
unit: "unit";
|
|
380
369
|
venue: "venue";
|
|
381
|
-
attention: "attention";
|
|
382
|
-
po_box: "po_box";
|
|
383
|
-
cedex: "cedex";
|
|
384
|
-
prefecture: "prefecture";
|
|
385
|
-
municipality: "municipality";
|
|
386
|
-
district: "district";
|
|
387
|
-
block: "block";
|
|
388
|
-
sub_block: "sub_block";
|
|
389
|
-
building_number: "building_number";
|
|
390
|
-
building_name: "building_name";
|
|
391
|
-
locality_unit: "locality_unit";
|
|
392
370
|
}>;
|
|
393
371
|
value: z.ZodString;
|
|
394
372
|
kept: z.ZodString;
|
|
@@ -408,56 +386,56 @@ export type GeocodeOutcomeLike = z.infer<typeof GeocodeOutcomeLikeSchema>;
|
|
|
408
386
|
export declare const GeocodeOutcomeSchema: z.ZodObject<{
|
|
409
387
|
input: z.ZodString;
|
|
410
388
|
components: z.ZodRecord<z.ZodEnum<{
|
|
389
|
+
attention: "attention";
|
|
390
|
+
block: "block";
|
|
391
|
+
building_name: "building_name";
|
|
392
|
+
building_number: "building_number";
|
|
393
|
+
cedex: "cedex";
|
|
411
394
|
country: "country";
|
|
412
|
-
region: "region";
|
|
413
|
-
locality: "locality";
|
|
414
395
|
dependent_locality: "dependent_locality";
|
|
415
|
-
|
|
416
|
-
subregion: "subregion";
|
|
396
|
+
district: "district";
|
|
417
397
|
house_number: "house_number";
|
|
398
|
+
intersection_a: "intersection_a";
|
|
399
|
+
intersection_b: "intersection_b";
|
|
400
|
+
locality: "locality";
|
|
401
|
+
locality_unit: "locality_unit";
|
|
402
|
+
municipality: "municipality";
|
|
403
|
+
po_box: "po_box";
|
|
404
|
+
postcode: "postcode";
|
|
405
|
+
prefecture: "prefecture";
|
|
406
|
+
region: "region";
|
|
418
407
|
street: "street";
|
|
419
408
|
street_prefix: "street_prefix";
|
|
420
409
|
street_prefix_particle: "street_prefix_particle";
|
|
421
410
|
street_suffix: "street_suffix";
|
|
422
|
-
|
|
423
|
-
|
|
411
|
+
sub_block: "sub_block";
|
|
412
|
+
subregion: "subregion";
|
|
424
413
|
unit: "unit";
|
|
425
414
|
venue: "venue";
|
|
426
|
-
attention: "attention";
|
|
427
|
-
po_box: "po_box";
|
|
428
|
-
cedex: "cedex";
|
|
429
|
-
prefecture: "prefecture";
|
|
430
|
-
municipality: "municipality";
|
|
431
|
-
district: "district";
|
|
432
|
-
block: "block";
|
|
433
|
-
sub_block: "sub_block";
|
|
434
|
-
building_number: "building_number";
|
|
435
|
-
building_name: "building_name";
|
|
436
|
-
locality_unit: "locality_unit";
|
|
437
415
|
}> & z.core.$partial, z.ZodString>;
|
|
438
416
|
lat: z.ZodNullable<z.ZodNumber>;
|
|
439
417
|
lon: z.ZodNullable<z.ZodNumber>;
|
|
440
418
|
resolution_tier: z.ZodEnum<{
|
|
441
|
-
street: "street";
|
|
442
|
-
venue: "venue";
|
|
443
419
|
address_point: "address_point";
|
|
444
|
-
interpolated: "interpolated";
|
|
445
420
|
admin: "admin";
|
|
421
|
+
interpolated: "interpolated";
|
|
446
422
|
plus_code: "plus_code";
|
|
423
|
+
street: "street";
|
|
424
|
+
venue: "venue";
|
|
447
425
|
}>;
|
|
448
426
|
epistemic_status: z.ZodEnum<{
|
|
449
|
-
designated: "designated";
|
|
450
|
-
observed: "observed";
|
|
451
427
|
derived: "derived";
|
|
428
|
+
designated: "designated";
|
|
452
429
|
inferred: "inferred";
|
|
430
|
+
observed: "observed";
|
|
453
431
|
unresolved: "unresolved";
|
|
454
432
|
}>;
|
|
455
433
|
derivation: z.ZodOptional<z.ZodObject<{
|
|
456
434
|
status: z.ZodEnum<{
|
|
457
|
-
designated: "designated";
|
|
458
|
-
observed: "observed";
|
|
459
435
|
derived: "derived";
|
|
436
|
+
designated: "designated";
|
|
460
437
|
inferred: "inferred";
|
|
438
|
+
observed: "observed";
|
|
461
439
|
unresolved: "unresolved";
|
|
462
440
|
}>;
|
|
463
441
|
constraints: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
@@ -476,8 +454,8 @@ export declare const GeocodeOutcomeSchema: z.ZodObject<{
|
|
|
476
454
|
h3Cell: z.ZodNumber;
|
|
477
455
|
basis: z.ZodEnum<{
|
|
478
456
|
designated: "designated";
|
|
479
|
-
surveyed: "surveyed";
|
|
480
457
|
source_present: "source_present";
|
|
458
|
+
surveyed: "surveyed";
|
|
481
459
|
}>;
|
|
482
460
|
fold: z.ZodString;
|
|
483
461
|
}, z.core.$strip>;
|
|
@@ -487,8 +465,8 @@ export declare const GeocodeOutcomeSchema: z.ZodObject<{
|
|
|
487
465
|
vintage: z.ZodString;
|
|
488
466
|
relationship: z.ZodString;
|
|
489
467
|
assertion: z.ZodEnum<{
|
|
490
|
-
inferred: "inferred";
|
|
491
468
|
authoritative: "authoritative";
|
|
469
|
+
inferred: "inferred";
|
|
492
470
|
}>;
|
|
493
471
|
score: z.ZodOptional<z.ZodNumber>;
|
|
494
472
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -543,26 +521,26 @@ export declare const GeocodeOutcomeSchema: z.ZodObject<{
|
|
|
543
521
|
variant_alias_exemption: z.ZodOptional<z.ZodLiteral<true>>;
|
|
544
522
|
intent_markers: z.ZodArray<z.ZodObject<{
|
|
545
523
|
kind: z.ZodEnum<{
|
|
524
|
+
bare_toponym: "bare_toponym";
|
|
546
525
|
intersection: "intersection";
|
|
526
|
+
landmark: "landmark";
|
|
527
|
+
locality_only: "locality_only";
|
|
528
|
+
near_me: "near_me";
|
|
547
529
|
po_box: "po_box";
|
|
530
|
+
poi_category: "poi_category";
|
|
531
|
+
poi_query: "poi_query";
|
|
548
532
|
postcode_only: "postcode_only";
|
|
549
|
-
|
|
533
|
+
route_pair: "route_pair";
|
|
550
534
|
structured_address: "structured_address";
|
|
551
|
-
landmark: "landmark";
|
|
552
|
-
poi_query: "poi_query";
|
|
553
535
|
vague: "vague";
|
|
554
|
-
bare_toponym: "bare_toponym";
|
|
555
|
-
route_pair: "route_pair";
|
|
556
|
-
near_me: "near_me";
|
|
557
|
-
poi_category: "poi_category";
|
|
558
536
|
}>;
|
|
559
537
|
code: z.ZodEnum<{
|
|
560
|
-
|
|
538
|
+
authority_designation: "authority_designation";
|
|
539
|
+
coverage_qualified_absence: "coverage_qualified_absence";
|
|
561
540
|
declared_ambiguity: "declared_ambiguity";
|
|
562
541
|
declared_fork: "declared_fork";
|
|
563
542
|
focus_point_required: "focus_point_required";
|
|
564
|
-
|
|
565
|
-
authority_designation: "authority_designation";
|
|
543
|
+
poi_category: "poi_category";
|
|
566
544
|
}>;
|
|
567
545
|
mechanism: z.ZodString;
|
|
568
546
|
message: z.ZodString;
|
|
@@ -585,8 +563,8 @@ export declare const GeocodeOutcomeSchema: z.ZodObject<{
|
|
|
585
563
|
authoritative: z.ZodOptional<z.ZodObject<{
|
|
586
564
|
provider: z.ZodString;
|
|
587
565
|
status: z.ZodEnum<{
|
|
588
|
-
matched: "matched";
|
|
589
566
|
ambiguous: "ambiguous";
|
|
567
|
+
matched: "matched";
|
|
590
568
|
refused: "refused";
|
|
591
569
|
transport_error: "transport_error";
|
|
592
570
|
}>;
|
|
@@ -598,8 +576,8 @@ export declare const GeocodeOutcomeSchema: z.ZodObject<{
|
|
|
598
576
|
lon: z.ZodOptional<z.ZodNumber>;
|
|
599
577
|
precision: z.ZodOptional<z.ZodString>;
|
|
600
578
|
match_status: z.ZodEnum<{
|
|
601
|
-
exact: "exact";
|
|
602
579
|
approximate: "approximate";
|
|
580
|
+
exact: "exact";
|
|
603
581
|
}>;
|
|
604
582
|
provider_score: z.ZodOptional<z.ZodNumber>;
|
|
605
583
|
}, z.core.$strip>>>;
|
|
@@ -611,32 +589,32 @@ export declare const GeocodeOutcomeSchema: z.ZodObject<{
|
|
|
611
589
|
}, z.core.$strip>>;
|
|
612
590
|
dropped_components: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
613
591
|
tag: z.ZodEnum<{
|
|
592
|
+
attention: "attention";
|
|
593
|
+
block: "block";
|
|
594
|
+
building_name: "building_name";
|
|
595
|
+
building_number: "building_number";
|
|
596
|
+
cedex: "cedex";
|
|
614
597
|
country: "country";
|
|
615
|
-
region: "region";
|
|
616
|
-
locality: "locality";
|
|
617
598
|
dependent_locality: "dependent_locality";
|
|
618
|
-
|
|
619
|
-
subregion: "subregion";
|
|
599
|
+
district: "district";
|
|
620
600
|
house_number: "house_number";
|
|
601
|
+
intersection_a: "intersection_a";
|
|
602
|
+
intersection_b: "intersection_b";
|
|
603
|
+
locality: "locality";
|
|
604
|
+
locality_unit: "locality_unit";
|
|
605
|
+
municipality: "municipality";
|
|
606
|
+
po_box: "po_box";
|
|
607
|
+
postcode: "postcode";
|
|
608
|
+
prefecture: "prefecture";
|
|
609
|
+
region: "region";
|
|
621
610
|
street: "street";
|
|
622
611
|
street_prefix: "street_prefix";
|
|
623
612
|
street_prefix_particle: "street_prefix_particle";
|
|
624
613
|
street_suffix: "street_suffix";
|
|
625
|
-
|
|
626
|
-
|
|
614
|
+
sub_block: "sub_block";
|
|
615
|
+
subregion: "subregion";
|
|
627
616
|
unit: "unit";
|
|
628
617
|
venue: "venue";
|
|
629
|
-
attention: "attention";
|
|
630
|
-
po_box: "po_box";
|
|
631
|
-
cedex: "cedex";
|
|
632
|
-
prefecture: "prefecture";
|
|
633
|
-
municipality: "municipality";
|
|
634
|
-
district: "district";
|
|
635
|
-
block: "block";
|
|
636
|
-
sub_block: "sub_block";
|
|
637
|
-
building_number: "building_number";
|
|
638
|
-
building_name: "building_name";
|
|
639
|
-
locality_unit: "locality_unit";
|
|
640
618
|
}>;
|
|
641
619
|
value: z.ZodString;
|
|
642
620
|
kept: z.ZodString;
|
|
@@ -649,8 +627,8 @@ export type GeocodeOutcome = z.infer<typeof GeocodeOutcomeSchema>;
|
|
|
649
627
|
export declare const BatchRequestSchema: z.ZodObject<{
|
|
650
628
|
addresses: z.ZodArray<z.ZodString>;
|
|
651
629
|
input_mode: z.ZodOptional<z.ZodEnum<{
|
|
652
|
-
fragmented: "fragmented";
|
|
653
630
|
formatted: "formatted";
|
|
631
|
+
fragmented: "fragmented";
|
|
654
632
|
}>>;
|
|
655
633
|
}, z.core.$strip>;
|
|
656
634
|
/**
|
|
@@ -660,56 +638,56 @@ export declare const BatchResponseSchema: z.ZodObject<{
|
|
|
660
638
|
results: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
661
639
|
input: z.ZodString;
|
|
662
640
|
components: z.ZodRecord<z.ZodEnum<{
|
|
641
|
+
attention: "attention";
|
|
642
|
+
block: "block";
|
|
643
|
+
building_name: "building_name";
|
|
644
|
+
building_number: "building_number";
|
|
645
|
+
cedex: "cedex";
|
|
663
646
|
country: "country";
|
|
664
|
-
region: "region";
|
|
665
|
-
locality: "locality";
|
|
666
647
|
dependent_locality: "dependent_locality";
|
|
667
|
-
|
|
668
|
-
subregion: "subregion";
|
|
648
|
+
district: "district";
|
|
669
649
|
house_number: "house_number";
|
|
650
|
+
intersection_a: "intersection_a";
|
|
651
|
+
intersection_b: "intersection_b";
|
|
652
|
+
locality: "locality";
|
|
653
|
+
locality_unit: "locality_unit";
|
|
654
|
+
municipality: "municipality";
|
|
655
|
+
po_box: "po_box";
|
|
656
|
+
postcode: "postcode";
|
|
657
|
+
prefecture: "prefecture";
|
|
658
|
+
region: "region";
|
|
670
659
|
street: "street";
|
|
671
660
|
street_prefix: "street_prefix";
|
|
672
661
|
street_prefix_particle: "street_prefix_particle";
|
|
673
662
|
street_suffix: "street_suffix";
|
|
674
|
-
|
|
675
|
-
|
|
663
|
+
sub_block: "sub_block";
|
|
664
|
+
subregion: "subregion";
|
|
676
665
|
unit: "unit";
|
|
677
666
|
venue: "venue";
|
|
678
|
-
attention: "attention";
|
|
679
|
-
po_box: "po_box";
|
|
680
|
-
cedex: "cedex";
|
|
681
|
-
prefecture: "prefecture";
|
|
682
|
-
municipality: "municipality";
|
|
683
|
-
district: "district";
|
|
684
|
-
block: "block";
|
|
685
|
-
sub_block: "sub_block";
|
|
686
|
-
building_number: "building_number";
|
|
687
|
-
building_name: "building_name";
|
|
688
|
-
locality_unit: "locality_unit";
|
|
689
667
|
}> & z.core.$partial, z.ZodString>;
|
|
690
668
|
lat: z.ZodNullable<z.ZodNumber>;
|
|
691
669
|
lon: z.ZodNullable<z.ZodNumber>;
|
|
692
670
|
resolution_tier: z.ZodEnum<{
|
|
693
|
-
street: "street";
|
|
694
|
-
venue: "venue";
|
|
695
671
|
address_point: "address_point";
|
|
696
|
-
interpolated: "interpolated";
|
|
697
672
|
admin: "admin";
|
|
673
|
+
interpolated: "interpolated";
|
|
698
674
|
plus_code: "plus_code";
|
|
675
|
+
street: "street";
|
|
676
|
+
venue: "venue";
|
|
699
677
|
}>;
|
|
700
678
|
epistemic_status: z.ZodEnum<{
|
|
701
|
-
designated: "designated";
|
|
702
|
-
observed: "observed";
|
|
703
679
|
derived: "derived";
|
|
680
|
+
designated: "designated";
|
|
704
681
|
inferred: "inferred";
|
|
682
|
+
observed: "observed";
|
|
705
683
|
unresolved: "unresolved";
|
|
706
684
|
}>;
|
|
707
685
|
derivation: z.ZodOptional<z.ZodObject<{
|
|
708
686
|
status: z.ZodEnum<{
|
|
709
|
-
designated: "designated";
|
|
710
|
-
observed: "observed";
|
|
711
687
|
derived: "derived";
|
|
688
|
+
designated: "designated";
|
|
712
689
|
inferred: "inferred";
|
|
690
|
+
observed: "observed";
|
|
713
691
|
unresolved: "unresolved";
|
|
714
692
|
}>;
|
|
715
693
|
constraints: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
@@ -728,8 +706,8 @@ export declare const BatchResponseSchema: z.ZodObject<{
|
|
|
728
706
|
h3Cell: z.ZodNumber;
|
|
729
707
|
basis: z.ZodEnum<{
|
|
730
708
|
designated: "designated";
|
|
731
|
-
surveyed: "surveyed";
|
|
732
709
|
source_present: "source_present";
|
|
710
|
+
surveyed: "surveyed";
|
|
733
711
|
}>;
|
|
734
712
|
fold: z.ZodString;
|
|
735
713
|
}, z.core.$strip>;
|
|
@@ -739,8 +717,8 @@ export declare const BatchResponseSchema: z.ZodObject<{
|
|
|
739
717
|
vintage: z.ZodString;
|
|
740
718
|
relationship: z.ZodString;
|
|
741
719
|
assertion: z.ZodEnum<{
|
|
742
|
-
inferred: "inferred";
|
|
743
720
|
authoritative: "authoritative";
|
|
721
|
+
inferred: "inferred";
|
|
744
722
|
}>;
|
|
745
723
|
score: z.ZodOptional<z.ZodNumber>;
|
|
746
724
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -795,26 +773,26 @@ export declare const BatchResponseSchema: z.ZodObject<{
|
|
|
795
773
|
variant_alias_exemption: z.ZodOptional<z.ZodLiteral<true>>;
|
|
796
774
|
intent_markers: z.ZodArray<z.ZodObject<{
|
|
797
775
|
kind: z.ZodEnum<{
|
|
776
|
+
bare_toponym: "bare_toponym";
|
|
798
777
|
intersection: "intersection";
|
|
778
|
+
landmark: "landmark";
|
|
779
|
+
locality_only: "locality_only";
|
|
780
|
+
near_me: "near_me";
|
|
799
781
|
po_box: "po_box";
|
|
782
|
+
poi_category: "poi_category";
|
|
783
|
+
poi_query: "poi_query";
|
|
800
784
|
postcode_only: "postcode_only";
|
|
801
|
-
|
|
785
|
+
route_pair: "route_pair";
|
|
802
786
|
structured_address: "structured_address";
|
|
803
|
-
landmark: "landmark";
|
|
804
|
-
poi_query: "poi_query";
|
|
805
787
|
vague: "vague";
|
|
806
|
-
bare_toponym: "bare_toponym";
|
|
807
|
-
route_pair: "route_pair";
|
|
808
|
-
near_me: "near_me";
|
|
809
|
-
poi_category: "poi_category";
|
|
810
788
|
}>;
|
|
811
789
|
code: z.ZodEnum<{
|
|
812
|
-
|
|
790
|
+
authority_designation: "authority_designation";
|
|
791
|
+
coverage_qualified_absence: "coverage_qualified_absence";
|
|
813
792
|
declared_ambiguity: "declared_ambiguity";
|
|
814
793
|
declared_fork: "declared_fork";
|
|
815
794
|
focus_point_required: "focus_point_required";
|
|
816
|
-
|
|
817
|
-
authority_designation: "authority_designation";
|
|
795
|
+
poi_category: "poi_category";
|
|
818
796
|
}>;
|
|
819
797
|
mechanism: z.ZodString;
|
|
820
798
|
message: z.ZodString;
|
|
@@ -837,8 +815,8 @@ export declare const BatchResponseSchema: z.ZodObject<{
|
|
|
837
815
|
authoritative: z.ZodOptional<z.ZodObject<{
|
|
838
816
|
provider: z.ZodString;
|
|
839
817
|
status: z.ZodEnum<{
|
|
840
|
-
matched: "matched";
|
|
841
818
|
ambiguous: "ambiguous";
|
|
819
|
+
matched: "matched";
|
|
842
820
|
refused: "refused";
|
|
843
821
|
transport_error: "transport_error";
|
|
844
822
|
}>;
|
|
@@ -850,8 +828,8 @@ export declare const BatchResponseSchema: z.ZodObject<{
|
|
|
850
828
|
lon: z.ZodOptional<z.ZodNumber>;
|
|
851
829
|
precision: z.ZodOptional<z.ZodString>;
|
|
852
830
|
match_status: z.ZodEnum<{
|
|
853
|
-
exact: "exact";
|
|
854
831
|
approximate: "approximate";
|
|
832
|
+
exact: "exact";
|
|
855
833
|
}>;
|
|
856
834
|
provider_score: z.ZodOptional<z.ZodNumber>;
|
|
857
835
|
}, z.core.$strip>>>;
|
|
@@ -863,32 +841,32 @@ export declare const BatchResponseSchema: z.ZodObject<{
|
|
|
863
841
|
}, z.core.$strip>>;
|
|
864
842
|
dropped_components: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
865
843
|
tag: z.ZodEnum<{
|
|
844
|
+
attention: "attention";
|
|
845
|
+
block: "block";
|
|
846
|
+
building_name: "building_name";
|
|
847
|
+
building_number: "building_number";
|
|
848
|
+
cedex: "cedex";
|
|
866
849
|
country: "country";
|
|
867
|
-
region: "region";
|
|
868
|
-
locality: "locality";
|
|
869
850
|
dependent_locality: "dependent_locality";
|
|
870
|
-
|
|
871
|
-
subregion: "subregion";
|
|
851
|
+
district: "district";
|
|
872
852
|
house_number: "house_number";
|
|
853
|
+
intersection_a: "intersection_a";
|
|
854
|
+
intersection_b: "intersection_b";
|
|
855
|
+
locality: "locality";
|
|
856
|
+
locality_unit: "locality_unit";
|
|
857
|
+
municipality: "municipality";
|
|
858
|
+
po_box: "po_box";
|
|
859
|
+
postcode: "postcode";
|
|
860
|
+
prefecture: "prefecture";
|
|
861
|
+
region: "region";
|
|
873
862
|
street: "street";
|
|
874
863
|
street_prefix: "street_prefix";
|
|
875
864
|
street_prefix_particle: "street_prefix_particle";
|
|
876
865
|
street_suffix: "street_suffix";
|
|
877
|
-
|
|
878
|
-
|
|
866
|
+
sub_block: "sub_block";
|
|
867
|
+
subregion: "subregion";
|
|
879
868
|
unit: "unit";
|
|
880
869
|
venue: "venue";
|
|
881
|
-
attention: "attention";
|
|
882
|
-
po_box: "po_box";
|
|
883
|
-
cedex: "cedex";
|
|
884
|
-
prefecture: "prefecture";
|
|
885
|
-
municipality: "municipality";
|
|
886
|
-
district: "district";
|
|
887
|
-
block: "block";
|
|
888
|
-
sub_block: "sub_block";
|
|
889
|
-
building_number: "building_number";
|
|
890
|
-
building_name: "building_name";
|
|
891
|
-
locality_unit: "locality_unit";
|
|
892
870
|
}>;
|
|
893
871
|
value: z.ZodString;
|
|
894
872
|
kept: z.ZodString;
|
|
@@ -905,7 +883,7 @@ export declare const BatchResponseSchema: z.ZodObject<{
|
|
|
905
883
|
export declare const ResolveRequestSchema: z.ZodObject<{
|
|
906
884
|
tree: z.ZodObject<{
|
|
907
885
|
raw: z.ZodString;
|
|
908
|
-
roots: z.ZodArray<z.ZodCustom<AddressNode, AddressNode>>;
|
|
886
|
+
roots: z.ZodArray<z.ZodCustom<import("@mailwoman/core").AddressNode, import("@mailwoman/core").AddressNode>>;
|
|
909
887
|
}, z.core.$loose>;
|
|
910
888
|
opts: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
911
889
|
}, z.core.$strip>;
|
|
@@ -915,7 +893,7 @@ export declare const ResolveRequestSchema: z.ZodObject<{
|
|
|
915
893
|
export declare const ResolveResponseSchema: z.ZodObject<{
|
|
916
894
|
tree: z.ZodObject<{
|
|
917
895
|
raw: z.ZodString;
|
|
918
|
-
roots: z.ZodArray<z.ZodCustom<AddressNode, AddressNode>>;
|
|
896
|
+
roots: z.ZodArray<z.ZodCustom<import("@mailwoman/core").AddressNode, import("@mailwoman/core").AddressNode>>;
|
|
919
897
|
}, z.core.$loose>;
|
|
920
898
|
}, z.core.$strip>;
|
|
921
899
|
/**
|