@devdash/bofrid-api-types 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (163) hide show
  1. package/README.md +24 -0
  2. package/dist/app.d.ts +23 -0
  3. package/dist/dev.d.ts +6 -0
  4. package/dist/export-openapi.d.ts +9 -0
  5. package/dist/index.d.ts +3 -0
  6. package/dist/lib/auth.d.ts +20 -0
  7. package/dist/lib/criipto-bankid.d.ts +45 -0
  8. package/dist/lib/datalake.d.ts +7 -0
  9. package/dist/lib/docs-filter.d.ts +15 -0
  10. package/dist/lib/email-action-token.d.ts +26 -0
  11. package/dist/lib/email-utm.d.ts +42 -0
  12. package/dist/lib/email.d.ts +94 -0
  13. package/dist/lib/env.d.ts +18 -0
  14. package/dist/lib/errors.d.ts +6 -0
  15. package/dist/lib/helpers.d.ts +6 -0
  16. package/dist/lib/logger.d.ts +25 -0
  17. package/dist/lib/markets.d.ts +1 -0
  18. package/dist/lib/org-number.d.ts +5 -0
  19. package/dist/lib/ownership.d.ts +47 -0
  20. package/dist/lib/pdf-watermark.d.ts +25 -0
  21. package/dist/lib/personnummer.d.ts +14 -0
  22. package/dist/lib/posthog.d.ts +51 -0
  23. package/dist/lib/premium.d.ts +13 -0
  24. package/dist/lib/profile-resolver.d.ts +14 -0
  25. package/dist/lib/redirect-state.d.ts +40 -0
  26. package/dist/lib/revalidate.d.ts +23 -0
  27. package/dist/lib/schemas.d.ts +21 -0
  28. package/dist/lib/sentry.d.ts +31 -0
  29. package/dist/lib/slug.d.ts +5 -0
  30. package/dist/lib/sms.d.ts +22 -0
  31. package/dist/lib/system-log.d.ts +31 -0
  32. package/dist/lib/webhook-events.d.ts +26 -0
  33. package/dist/lib/webhooks.d.ts +28 -0
  34. package/dist/middleware/auth-debug.d.ts +17 -0
  35. package/dist/middleware/auth.d.ts +19 -0
  36. package/dist/middleware/bibi-logger.d.ts +6 -0
  37. package/dist/middleware/cors.d.ts +1 -0
  38. package/dist/middleware/request-id.d.ts +10 -0
  39. package/dist/middleware/sentry-context.d.ts +8 -0
  40. package/dist/routes/activity-feed.d.ts +64 -0
  41. package/dist/routes/admin-bevakningar.d.ts +200 -0
  42. package/dist/routes/admin-companies.d.ts +381 -0
  43. package/dist/routes/admin-email-jobs.d.ts +257 -0
  44. package/dist/routes/admin-email-logs.d.ts +9 -0
  45. package/dist/routes/admin-fb-leads.d.ts +32 -0
  46. package/dist/routes/admin-import.d.ts +188 -0
  47. package/dist/routes/admin-login-history.d.ts +9 -0
  48. package/dist/routes/admin-marketing.d.ts +15 -0
  49. package/dist/routes/admin-metabase.d.ts +9 -0
  50. package/dist/routes/admin-notifications.d.ts +7 -0
  51. package/dist/routes/admin-paying-customers.d.ts +74 -0
  52. package/dist/routes/admin-sessions.d.ts +10 -0
  53. package/dist/routes/admin-stats.d.ts +380 -0
  54. package/dist/routes/admin-system-logs.d.ts +10 -0
  55. package/dist/routes/admin-users.d.ts +299 -0
  56. package/dist/routes/admin-webhooks.d.ts +276 -0
  57. package/dist/routes/api-keys.d.ts +123 -0
  58. package/dist/routes/applications.d.ts +385 -0
  59. package/dist/routes/auth.d.ts +15 -0
  60. package/dist/routes/billing.d.ts +369 -0
  61. package/dist/routes/bostadsmerit.d.ts +51 -0
  62. package/dist/routes/companies.d.ts +842 -0
  63. package/dist/routes/contact-reveals.d.ts +102 -0
  64. package/dist/routes/conversations/handlers/conversation.d.ts +5 -0
  65. package/dist/routes/conversations/handlers/initiate.d.ts +4 -0
  66. package/dist/routes/conversations/handlers/messages.d.ts +5 -0
  67. package/dist/routes/conversations/handlers/state.d.ts +5 -0
  68. package/dist/routes/conversations/helpers/access.d.ts +11 -0
  69. package/dist/routes/conversations/helpers/enrich-conversation.d.ts +58 -0
  70. package/dist/routes/conversations/helpers/identity.d.ts +43 -0
  71. package/dist/routes/conversations/helpers/notify-recipient.d.ts +10 -0
  72. package/dist/routes/conversations/helpers/reconcile-reveal.d.ts +10 -0
  73. package/dist/routes/conversations/helpers/scrub-contact.d.ts +1 -0
  74. package/dist/routes/conversations/index.d.ts +422 -0
  75. package/dist/routes/conversations/routes.d.ts +924 -0
  76. package/dist/routes/conversations/schemas.d.ts +216 -0
  77. package/dist/routes/cron.d.ts +27 -0
  78. package/dist/routes/documents.d.ts +493 -0
  79. package/dist/routes/email-actions.d.ts +8 -0
  80. package/dist/routes/fastighetslista.d.ts +94 -0
  81. package/dist/routes/geo.d.ts +518 -0
  82. package/dist/routes/geocoding.d.ts +192 -0
  83. package/dist/routes/health.d.ts +43 -0
  84. package/dist/routes/housing-history.d.ts +381 -0
  85. package/dist/routes/index.d.ts +15321 -0
  86. package/dist/routes/leads.d.ts +281 -0
  87. package/dist/routes/listing-helpers.d.ts +33 -0
  88. package/dist/routes/listing-publications.d.ts +636 -0
  89. package/dist/routes/listings.d.ts +1846 -0
  90. package/dist/routes/location-interests.d.ts +754 -0
  91. package/dist/routes/lookup.d.ts +109 -0
  92. package/dist/routes/mejl.d.ts +377 -0
  93. package/dist/routes/profiles.d.ts +281 -0
  94. package/dist/routes/properties.d.ts +1266 -0
  95. package/dist/routes/public-listings.d.ts +1137 -0
  96. package/dist/routes/public-profiles.d.ts +293 -0
  97. package/dist/routes/references.d.ts +695 -0
  98. package/dist/routes/search-partners.d.ts +4 -0
  99. package/dist/routes/site-config.d.ts +103 -0
  100. package/dist/routes/storage.d.ts +367 -0
  101. package/dist/routes/tenant-boost.d.ts +229 -0
  102. package/dist/routes/tenants.d.ts +336 -0
  103. package/dist/routes/track.d.ts +19 -0
  104. package/dist/routes/translate.d.ts +51 -0
  105. package/dist/routes/users.d.ts +517 -0
  106. package/dist/routes/verification.d.ts +175 -0
  107. package/dist/routes/webhooks.d.ts +9 -0
  108. package/dist/rpc.d.ts +11 -0
  109. package/dist/serve.d.ts +5 -0
  110. package/dist/services/activity-feed/activity-feed.service.d.ts +26 -0
  111. package/dist/services/applications/approval.service.d.ts +17 -0
  112. package/dist/services/auth/bankid-login.service.d.ts +40 -0
  113. package/dist/services/billing/constants.d.ts +2 -0
  114. package/dist/services/billing/contact-billing.service.d.ts +59 -0
  115. package/dist/services/billing/customer.service.d.ts +14 -0
  116. package/dist/services/billing/invoice-item.service.d.ts +49 -0
  117. package/dist/services/billing/invoice.service.d.ts +21 -0
  118. package/dist/services/billing/listing-upgrade-checkout.service.d.ts +45 -0
  119. package/dist/services/billing/purchase-receipt-email.d.ts +23 -0
  120. package/dist/services/billing/reveal-allowance.service.d.ts +33 -0
  121. package/dist/services/billing/stripe.d.ts +6 -0
  122. package/dist/services/billing/subscription.service.d.ts +21 -0
  123. package/dist/services/billing/types.d.ts +64 -0
  124. package/dist/services/billing/verify-session.service.d.ts +17 -0
  125. package/dist/services/billing/webhook.service.d.ts +8 -0
  126. package/dist/services/bostadsmerit/calculator.d.ts +51 -0
  127. package/dist/services/bostadsmerit/couple-calculator.d.ts +46 -0
  128. package/dist/services/bostadsmerit/tracker.service.d.ts +45 -0
  129. package/dist/services/chat-access/unlock-chat.service.d.ts +62 -0
  130. package/dist/services/conversations/upsert-conversation.d.ts +11 -0
  131. package/dist/services/email-jobs/email-job-sender.d.ts +7 -0
  132. package/dist/services/email-jobs/email-job.service.d.ts +67 -0
  133. package/dist/services/geo/bevakning-matching.service.d.ts +67 -0
  134. package/dist/services/geo/geo-listings.service.d.ts +38 -0
  135. package/dist/services/geo/geo.service.d.ts +233 -0
  136. package/dist/services/geo/geocode.service.d.ts +16 -0
  137. package/dist/services/geo/market-insights-by-coords.service.d.ts +67 -0
  138. package/dist/services/geo/market-insights.service.d.ts +44 -0
  139. package/dist/services/geo/market-overview.service.d.ts +42 -0
  140. package/dist/services/homii/image.d.ts +24 -0
  141. package/dist/services/homii/index.d.ts +12 -0
  142. package/dist/services/homii/location.d.ts +32 -0
  143. package/dist/services/homii/mapper.d.ts +41 -0
  144. package/dist/services/homii/types.d.ts +91 -0
  145. package/dist/services/leads/constants.d.ts +32 -0
  146. package/dist/services/leads/generate-leads.service.d.ts +38 -0
  147. package/dist/services/leads/matching.service.d.ts +55 -0
  148. package/dist/services/leads/tier.service.d.ts +6 -0
  149. package/dist/services/leads/types.d.ts +27 -0
  150. package/dist/services/listings/seo.service.d.ts +57 -0
  151. package/dist/services/listings/status.d.ts +37 -0
  152. package/dist/services/mejl/client.d.ts +38 -0
  153. package/dist/services/mrkoll/client.d.ts +95 -0
  154. package/dist/services/mrkoll/import.d.ts +38 -0
  155. package/dist/services/mrkoll/match.d.ts +35 -0
  156. package/dist/services/notifications/bibi-projects.d.ts +43 -0
  157. package/dist/services/notifications/bibi.d.ts +229 -0
  158. package/dist/services/profiles/bankid-verify.d.ts +23 -0
  159. package/dist/services/realtime.d.ts +14 -0
  160. package/dist/services/references/history-linker.d.ts +19 -0
  161. package/dist/services/tenant-boost/constants.d.ts +120 -0
  162. package/dist/services/tenant-boost/tenant-boost.service.d.ts +59 -0
  163. package/package.json +29 -0
@@ -0,0 +1,518 @@
1
+ /**
2
+ * Geo routes — serves Swedish geographic data from the `geo.*` Postgres tables.
3
+ *
4
+ * All data is read-only (no auth required). Responses are heavily cached.
5
+ */
6
+ import { OpenAPIHono } from "@hono/zod-openapi";
7
+ import type { AppBindings } from "../app";
8
+ export declare const geoApp: OpenAPIHono<AppBindings, {
9
+ "/geo/autocomplete": {
10
+ $get: {
11
+ input: {
12
+ query: {
13
+ limit?: number | undefined;
14
+ q?: string | undefined;
15
+ };
16
+ };
17
+ output: {
18
+ predictions: {
19
+ type: string;
20
+ data: {
21
+ name: string;
22
+ slug: string;
23
+ center: {
24
+ lat: number;
25
+ lng: number;
26
+ } | null;
27
+ boundingbox: [number, number, number, number] | null;
28
+ regionSlug?: string | undefined;
29
+ municipalitySlug?: string | undefined;
30
+ };
31
+ place_id: string;
32
+ structured_formatting: {
33
+ main_text: string;
34
+ secondary_text: string;
35
+ };
36
+ _links?: {
37
+ polygon?: string | undefined;
38
+ } | undefined;
39
+ }[];
40
+ };
41
+ outputFormat: "json";
42
+ status: 200;
43
+ };
44
+ };
45
+ } & {
46
+ "/geo/lan/:slug": {
47
+ $get: {
48
+ input: {
49
+ param: {
50
+ slug: string;
51
+ };
52
+ };
53
+ output: {};
54
+ outputFormat: "json";
55
+ status: 200;
56
+ } | {
57
+ input: {
58
+ param: {
59
+ slug: string;
60
+ };
61
+ };
62
+ output: {
63
+ error: string;
64
+ };
65
+ outputFormat: "json";
66
+ status: 404;
67
+ };
68
+ };
69
+ } & {
70
+ "/geo/lan/:slug/polygon": {
71
+ $get: {
72
+ input: {
73
+ param: {
74
+ slug: string;
75
+ };
76
+ };
77
+ output: {};
78
+ outputFormat: "json";
79
+ status: 200;
80
+ } | {
81
+ input: {
82
+ param: {
83
+ slug: string;
84
+ };
85
+ };
86
+ output: {
87
+ error: string;
88
+ };
89
+ outputFormat: "json";
90
+ status: 404;
91
+ };
92
+ };
93
+ } & {
94
+ "/geo/kommun/:slug": {
95
+ $get: {
96
+ input: {
97
+ param: {
98
+ slug: string;
99
+ };
100
+ };
101
+ output: {};
102
+ outputFormat: "json";
103
+ status: 200;
104
+ } | {
105
+ input: {
106
+ param: {
107
+ slug: string;
108
+ };
109
+ };
110
+ output: {
111
+ error: string;
112
+ };
113
+ outputFormat: "json";
114
+ status: 404;
115
+ };
116
+ };
117
+ } & {
118
+ "/geo/kommun/:slug/polygon": {
119
+ $get: {
120
+ input: {
121
+ param: {
122
+ slug: string;
123
+ };
124
+ };
125
+ output: {};
126
+ outputFormat: "json";
127
+ status: 200;
128
+ } | {
129
+ input: {
130
+ param: {
131
+ slug: string;
132
+ };
133
+ };
134
+ output: {
135
+ error: string;
136
+ };
137
+ outputFormat: "json";
138
+ status: 404;
139
+ };
140
+ };
141
+ } & {
142
+ "/geo/kommun/:slug/areas": {
143
+ $get: {
144
+ input: {
145
+ param: {
146
+ slug: string;
147
+ };
148
+ } & {
149
+ query: {
150
+ limit?: number | undefined;
151
+ };
152
+ };
153
+ output: {};
154
+ outputFormat: "json";
155
+ status: 200;
156
+ } | {
157
+ input: {
158
+ param: {
159
+ slug: string;
160
+ };
161
+ } & {
162
+ query: {
163
+ limit?: number | undefined;
164
+ };
165
+ };
166
+ output: {
167
+ error: string;
168
+ };
169
+ outputFormat: "json";
170
+ status: 404;
171
+ };
172
+ };
173
+ } & {
174
+ "/geo/area/: municipalitySlug/:areaSlug": {
175
+ $get: {
176
+ input: {
177
+ param: {
178
+ municipalitySlug: string;
179
+ areaSlug: string;
180
+ };
181
+ };
182
+ output: {};
183
+ outputFormat: "json";
184
+ status: 200;
185
+ } | {
186
+ input: {
187
+ param: {
188
+ municipalitySlug: string;
189
+ areaSlug: string;
190
+ };
191
+ };
192
+ output: {
193
+ error: string;
194
+ };
195
+ outputFormat: "json";
196
+ status: 404;
197
+ };
198
+ };
199
+ } & {
200
+ "/geo/area/: municipalitySlug/:areaSlug/polygon": {
201
+ $get: {
202
+ input: {
203
+ param: {
204
+ municipalitySlug: string;
205
+ areaSlug: string;
206
+ };
207
+ };
208
+ output: {};
209
+ outputFormat: "json";
210
+ status: 200;
211
+ } | {
212
+ input: {
213
+ param: {
214
+ municipalitySlug: string;
215
+ areaSlug: string;
216
+ };
217
+ };
218
+ output: {
219
+ error: string;
220
+ };
221
+ outputFormat: "json";
222
+ status: 404;
223
+ };
224
+ };
225
+ } & {
226
+ "/geo/hierarchy": {
227
+ $get: {
228
+ input: {};
229
+ output: {};
230
+ outputFormat: "json";
231
+ status: 200;
232
+ };
233
+ };
234
+ } & {
235
+ "/geo/hierarchy-bulk": {
236
+ $get: {
237
+ input: {};
238
+ output: {};
239
+ outputFormat: "json";
240
+ status: 200;
241
+ };
242
+ };
243
+ } & {
244
+ "/geo/hierarchy/: regionSlug": {
245
+ $get: {
246
+ input: {
247
+ param: {
248
+ regionSlug: string;
249
+ };
250
+ };
251
+ output: {};
252
+ outputFormat: "json";
253
+ status: 200;
254
+ } | {
255
+ input: {
256
+ param: {
257
+ regionSlug: string;
258
+ };
259
+ };
260
+ output: {
261
+ error: string;
262
+ };
263
+ outputFormat: "json";
264
+ status: 404;
265
+ };
266
+ };
267
+ } & {
268
+ "/geo/listings/stats": {
269
+ $get: {
270
+ input: {};
271
+ output: {};
272
+ outputFormat: "json";
273
+ status: 200;
274
+ };
275
+ };
276
+ } & {
277
+ "/geo/market-insights": {
278
+ $get: {
279
+ input: {
280
+ query: {
281
+ municipalitySlug: string;
282
+ propertyType?: string | undefined;
283
+ regionSlug?: string | undefined;
284
+ sqm?: number | undefined;
285
+ areaId?: string | undefined;
286
+ };
287
+ };
288
+ output: {
289
+ insight: {
290
+ propertyType: string | null;
291
+ locationName: string;
292
+ level: "lan" | "kommun" | "area";
293
+ sampleSize: number;
294
+ avgKvmPris: number;
295
+ medianKvmPris: number;
296
+ avgRent: number;
297
+ medianRent: number;
298
+ rentP25: number;
299
+ rentP75: number;
300
+ avgSqm: number;
301
+ suggestedRent: number | null;
302
+ } | null;
303
+ };
304
+ outputFormat: "json";
305
+ status: 200;
306
+ };
307
+ };
308
+ } & {
309
+ "/geo/market-insights/coords": {
310
+ $get: {
311
+ input: {
312
+ query: {
313
+ lat: number;
314
+ lng: number;
315
+ sqm?: number | undefined;
316
+ };
317
+ };
318
+ output: {
319
+ location: {
320
+ lan: {
321
+ name: string;
322
+ slug: string;
323
+ } | null;
324
+ kommun: {
325
+ name: string;
326
+ slug: string;
327
+ } | null;
328
+ area: {
329
+ type: string;
330
+ name: string;
331
+ slug: string;
332
+ } | null;
333
+ };
334
+ lat: number;
335
+ lng: number;
336
+ insights: {
337
+ name: string;
338
+ slug: string;
339
+ level: "lan" | "kommun" | "area";
340
+ byType: {
341
+ [x: string]: {
342
+ sampleSize: number;
343
+ avgKvmPris: number;
344
+ medianKvmPris: number;
345
+ avgRent: number;
346
+ medianRent: number;
347
+ rentP25: number;
348
+ rentP75: number;
349
+ avgSqm: number;
350
+ suggestedRent: number | null;
351
+ };
352
+ };
353
+ byYear: {
354
+ byType: {
355
+ [x: string]: {
356
+ sampleSize: number;
357
+ avgKvmPris: number;
358
+ medianKvmPris: number;
359
+ avgRent: number;
360
+ medianRent: number;
361
+ rentP25: number;
362
+ rentP75: number;
363
+ avgSqm: number;
364
+ suggestedRent: number | null;
365
+ };
366
+ };
367
+ year: number;
368
+ }[];
369
+ meta?: {
370
+ [x: string]: string;
371
+ } | undefined;
372
+ }[];
373
+ };
374
+ outputFormat: "json";
375
+ status: 200;
376
+ };
377
+ };
378
+ } & {
379
+ "/geo/market-overview": {
380
+ $get: {
381
+ input: {
382
+ query: {
383
+ limit?: number | undefined;
384
+ propertyType?: "apartment" | "all" | "house" | "student" | "room" | undefined;
385
+ regionSlug?: string | undefined;
386
+ minSamples?: number | undefined;
387
+ sortBy?: "sampleSize" | "medianKvmPris" | "medianRent" | undefined;
388
+ };
389
+ };
390
+ output: {
391
+ totalListings: number;
392
+ swedenWide: {
393
+ sampleSize: number;
394
+ medianKvmPris: number;
395
+ medianRent: number;
396
+ avgSqm: number;
397
+ } | null;
398
+ rows: {
399
+ regionSlug: string;
400
+ municipalitySlug: string;
401
+ regionName: string;
402
+ municipalityName: string;
403
+ sampleSize: number;
404
+ medianKvmPris: number;
405
+ medianRent: number;
406
+ rentP25: number;
407
+ rentP75: number;
408
+ avgSqm: number;
409
+ }[];
410
+ };
411
+ outputFormat: "json";
412
+ status: 200;
413
+ };
414
+ };
415
+ } & {
416
+ "/geo/market-insights/samples": {
417
+ $get: {
418
+ input: {
419
+ query: {
420
+ limit?: number | undefined;
421
+ regionSlug?: string | undefined;
422
+ municipalitySlug?: string | undefined;
423
+ areaId?: string | undefined;
424
+ };
425
+ };
426
+ output: {
427
+ samples: {
428
+ id: string;
429
+ address: string | null;
430
+ city: string | null;
431
+ source: string | null;
432
+ externalUrl: string | null;
433
+ rentSek: number | null;
434
+ rooms: number | null;
435
+ sqm: number | null;
436
+ kvmPris: number | null;
437
+ }[];
438
+ };
439
+ outputFormat: "json";
440
+ status: 200;
441
+ };
442
+ };
443
+ } & {
444
+ "/geo/unified-listing/:id": {
445
+ $get: {
446
+ input: {
447
+ param: {
448
+ id: string;
449
+ };
450
+ };
451
+ output: {
452
+ error: string;
453
+ };
454
+ outputFormat: "json";
455
+ status: 404;
456
+ } | {
457
+ input: {
458
+ param: {
459
+ id: string;
460
+ };
461
+ };
462
+ output: {
463
+ title: string | null;
464
+ address: string | null;
465
+ city: string | null;
466
+ publicUrl: string | null;
467
+ regionSlug: string | null;
468
+ municipalitySlug: string | null;
469
+ externalUrl: string | null;
470
+ sourceUrl: string | null;
471
+ imageUrl: string | null;
472
+ rentSek: number | null;
473
+ rooms: number | null;
474
+ sqm: number | null;
475
+ };
476
+ outputFormat: "json";
477
+ status: 200;
478
+ };
479
+ };
480
+ } & {
481
+ "/geo/fb-groups": {
482
+ $get: {
483
+ input: {
484
+ query: {
485
+ lan?: string | undefined;
486
+ kommun?: string | undefined;
487
+ };
488
+ };
489
+ output: {
490
+ count: number;
491
+ groups: {
492
+ name: string;
493
+ url: string;
494
+ id: string;
495
+ regionSlug: string | null;
496
+ municipalitySlug: string | null;
497
+ areaId: string | null;
498
+ level: "lan" | "kommun" | "area";
499
+ areaName: string | null;
500
+ }[];
501
+ };
502
+ outputFormat: "json";
503
+ status: 200;
504
+ } | {
505
+ input: {
506
+ query: {
507
+ lan?: string | undefined;
508
+ kommun?: string | undefined;
509
+ };
510
+ };
511
+ output: {
512
+ error: string;
513
+ };
514
+ outputFormat: "json";
515
+ status: 503;
516
+ };
517
+ };
518
+ }, "/">;
@@ -0,0 +1,192 @@
1
+ import { OpenAPIHono } from "@hono/zod-openapi";
2
+ import type { AppBindings } from "../app";
3
+ export declare const geocodingApp: OpenAPIHono<AppBindings, {
4
+ "/geocoding/autocomplete": {
5
+ $post: {
6
+ input: {
7
+ json: {
8
+ query: string;
9
+ };
10
+ };
11
+ output: {
12
+ predictions: {
13
+ text: {
14
+ text: string;
15
+ matches?: {
16
+ endOffset: number;
17
+ startOffset?: number | undefined;
18
+ }[] | undefined;
19
+ };
20
+ place: string;
21
+ placeId: string;
22
+ types?: string[] | undefined;
23
+ structuredFormat?: {
24
+ mainText: {
25
+ text: string;
26
+ };
27
+ secondaryText?: {
28
+ text: string;
29
+ } | undefined;
30
+ } | undefined;
31
+ }[];
32
+ };
33
+ outputFormat: "json";
34
+ status: 200;
35
+ } | {
36
+ input: {
37
+ json: {
38
+ query: string;
39
+ };
40
+ };
41
+ output: {
42
+ error: string;
43
+ };
44
+ outputFormat: "json";
45
+ status: 500;
46
+ };
47
+ };
48
+ } & {
49
+ "/geocoding/place-details": {
50
+ $post: {
51
+ input: {
52
+ json: {
53
+ placeId: string;
54
+ autocompleteText?: string | undefined;
55
+ };
56
+ };
57
+ output: {
58
+ error: string;
59
+ };
60
+ outputFormat: "json";
61
+ status: 500;
62
+ } | {
63
+ input: {
64
+ json: {
65
+ placeId: string;
66
+ autocompleteText?: string | undefined;
67
+ };
68
+ };
69
+ output: {
70
+ street: string;
71
+ streetNumber: string;
72
+ postalCode: string;
73
+ city: string;
74
+ municipality: string;
75
+ country: string;
76
+ coordinates: {
77
+ lat: number;
78
+ lon: number;
79
+ };
80
+ formattedAddress: string;
81
+ neighborhood?: string | undefined;
82
+ };
83
+ outputFormat: "json";
84
+ status: 200;
85
+ } | {
86
+ input: {
87
+ json: {
88
+ placeId: string;
89
+ autocompleteText?: string | undefined;
90
+ };
91
+ };
92
+ output: {
93
+ error: string;
94
+ };
95
+ outputFormat: "json";
96
+ status: 404;
97
+ };
98
+ };
99
+ } & {
100
+ "/geocoding/search": {
101
+ $post: {
102
+ input: {
103
+ json: {
104
+ address: string;
105
+ };
106
+ };
107
+ output: {
108
+ error: string;
109
+ };
110
+ outputFormat: "json";
111
+ status: 500;
112
+ } | {
113
+ input: {
114
+ json: {
115
+ address: string;
116
+ };
117
+ };
118
+ output: {
119
+ error: string;
120
+ };
121
+ outputFormat: "json";
122
+ status: 404;
123
+ } | {
124
+ input: {
125
+ json: {
126
+ address: string;
127
+ };
128
+ };
129
+ output: {
130
+ lat: number;
131
+ lon: number;
132
+ };
133
+ outputFormat: "json";
134
+ status: 200;
135
+ };
136
+ };
137
+ } & {
138
+ "/geocoding/reverse": {
139
+ $get: {
140
+ input: {
141
+ query: {
142
+ lat: number;
143
+ lng: number;
144
+ };
145
+ };
146
+ output: {
147
+ error: string;
148
+ };
149
+ outputFormat: "json";
150
+ status: 500;
151
+ } | {
152
+ input: {
153
+ query: {
154
+ lat: number;
155
+ lng: number;
156
+ };
157
+ };
158
+ output: {
159
+ municipality: {
160
+ name: string;
161
+ slug: string;
162
+ };
163
+ region: {
164
+ name: string;
165
+ slug: string;
166
+ };
167
+ postalCode?: string | undefined;
168
+ formattedAddress?: string | undefined;
169
+ areas?: {
170
+ type: string;
171
+ name: string;
172
+ slug: string;
173
+ }[] | undefined;
174
+ primaryArea?: string | undefined;
175
+ };
176
+ outputFormat: "json";
177
+ status: 200;
178
+ } | {
179
+ input: {
180
+ query: {
181
+ lat: number;
182
+ lng: number;
183
+ };
184
+ };
185
+ output: {
186
+ error: string;
187
+ };
188
+ outputFormat: "json";
189
+ status: 400;
190
+ };
191
+ };
192
+ }, "/">;