@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,109 @@
1
+ import { OpenAPIHono } from "@hono/zod-openapi";
2
+ import type { AppBindings } from "../app";
3
+ export declare const lookupApp: OpenAPIHono<AppBindings, {
4
+ "/lookup/person": {
5
+ $get: {
6
+ input: {
7
+ query: {
8
+ personnummer: string;
9
+ firstName: string;
10
+ lastName: string;
11
+ limit?: number | undefined;
12
+ };
13
+ };
14
+ output: {
15
+ error: string;
16
+ };
17
+ outputFormat: "json";
18
+ status: 401;
19
+ } | {
20
+ input: {
21
+ query: {
22
+ personnummer: string;
23
+ firstName: string;
24
+ lastName: string;
25
+ limit?: number | undefined;
26
+ };
27
+ };
28
+ output: {
29
+ error: string;
30
+ };
31
+ outputFormat: "json";
32
+ status: 400;
33
+ } | {
34
+ input: {
35
+ query: {
36
+ personnummer: string;
37
+ firstName: string;
38
+ lastName: string;
39
+ limit?: number | undefined;
40
+ };
41
+ };
42
+ output: {
43
+ data: {
44
+ id: string;
45
+ fullName: string | null;
46
+ firstName: string | null;
47
+ age: number | null;
48
+ addressStreet: string | null;
49
+ addressCity: string | null;
50
+ lastName: string | null;
51
+ birthday: string | null;
52
+ addressNumber: string | null;
53
+ addressZipcode: number | null;
54
+ addressCommunity: string | null;
55
+ addressCounty: string | null;
56
+ addresses?: import("hono/utils/types").JSONValue | undefined;
57
+ }[];
58
+ total: number;
59
+ };
60
+ outputFormat: "json";
61
+ status: 200;
62
+ };
63
+ };
64
+ } & {
65
+ "/lookup/company": {
66
+ $get: {
67
+ input: {
68
+ query: {
69
+ q: string;
70
+ limit?: number | undefined;
71
+ };
72
+ };
73
+ output: {
74
+ error: string;
75
+ };
76
+ outputFormat: "json";
77
+ status: 401;
78
+ } | {
79
+ input: {
80
+ query: {
81
+ q: string;
82
+ limit?: number | undefined;
83
+ };
84
+ };
85
+ output: {
86
+ data: {
87
+ email: string | null;
88
+ id: string;
89
+ displayName: string | null;
90
+ addressStreet: string | null;
91
+ addressCity: string | null;
92
+ addressNumber: string | null;
93
+ addressZipcode: number | null;
94
+ addressCommunity: string | null;
95
+ addressCounty: string | null;
96
+ orgno: string | null;
97
+ legalName: string | null;
98
+ legalFormCode: number | null;
99
+ legalFormName: string | null;
100
+ phoneNumbers: string[] | null;
101
+ categories: string | null;
102
+ }[];
103
+ total: number;
104
+ };
105
+ outputFormat: "json";
106
+ status: 200;
107
+ };
108
+ };
109
+ }, "/">;
@@ -0,0 +1,377 @@
1
+ /**
2
+ * mejl.to (MailMCP) routes — thin admin-gated proxy.
3
+ * Auth: authMiddleware + adminMiddleware (master X-API-Key bypasses admin).
4
+ * Upstream key: process.env.MEJL_API_KEY.
5
+ */
6
+ import { OpenAPIHono } from "@hono/zod-openapi";
7
+ import type { AppBindings } from "../app";
8
+ export declare const mejlApp: OpenAPIHono<AppBindings, {
9
+ "/mejl/inboxes": {
10
+ $get: {
11
+ input: {
12
+ query: {
13
+ limit?: number | undefined;
14
+ page_token?: string | undefined;
15
+ };
16
+ };
17
+ output: {
18
+ data: {
19
+ [x: string]: import("hono/utils/types").JSONValue;
20
+ };
21
+ };
22
+ outputFormat: "json";
23
+ status: 200;
24
+ } | {
25
+ input: {
26
+ query: {
27
+ limit?: number | undefined;
28
+ page_token?: string | undefined;
29
+ };
30
+ };
31
+ output: {
32
+ error: string;
33
+ };
34
+ outputFormat: "json";
35
+ status: 503;
36
+ } | {
37
+ input: {
38
+ query: {
39
+ limit?: number | undefined;
40
+ page_token?: string | undefined;
41
+ };
42
+ };
43
+ output: {
44
+ error: string;
45
+ };
46
+ outputFormat: "json";
47
+ status: 502;
48
+ };
49
+ };
50
+ } & {
51
+ "/mejl/inboxes/:inbox_id/messages": {
52
+ $get: {
53
+ input: {
54
+ param: {
55
+ inbox_id: string;
56
+ };
57
+ } & {
58
+ query: {
59
+ limit?: number | undefined;
60
+ page_token?: string | undefined;
61
+ labels?: string | undefined;
62
+ before?: string | undefined;
63
+ after?: string | undefined;
64
+ ascending?: boolean | undefined;
65
+ include_spam?: boolean | undefined;
66
+ };
67
+ };
68
+ output: {
69
+ data: {
70
+ [x: string]: import("hono/utils/types").JSONValue;
71
+ };
72
+ };
73
+ outputFormat: "json";
74
+ status: 200;
75
+ } | {
76
+ input: {
77
+ param: {
78
+ inbox_id: string;
79
+ };
80
+ } & {
81
+ query: {
82
+ limit?: number | undefined;
83
+ page_token?: string | undefined;
84
+ labels?: string | undefined;
85
+ before?: string | undefined;
86
+ after?: string | undefined;
87
+ ascending?: boolean | undefined;
88
+ include_spam?: boolean | undefined;
89
+ };
90
+ };
91
+ output: {
92
+ error: string;
93
+ };
94
+ outputFormat: "json";
95
+ status: 503;
96
+ } | {
97
+ input: {
98
+ param: {
99
+ inbox_id: string;
100
+ };
101
+ } & {
102
+ query: {
103
+ limit?: number | undefined;
104
+ page_token?: string | undefined;
105
+ labels?: string | undefined;
106
+ before?: string | undefined;
107
+ after?: string | undefined;
108
+ ascending?: boolean | undefined;
109
+ include_spam?: boolean | undefined;
110
+ };
111
+ };
112
+ output: {
113
+ error: string;
114
+ };
115
+ outputFormat: "json";
116
+ status: 502;
117
+ };
118
+ };
119
+ } & {
120
+ "/mejl/inboxes/:inbox_id/messages/:message_id": {
121
+ $get: {
122
+ input: {
123
+ param: {
124
+ inbox_id: string;
125
+ message_id: string;
126
+ };
127
+ };
128
+ output: {
129
+ data: {
130
+ [x: string]: import("hono/utils/types").JSONValue;
131
+ };
132
+ };
133
+ outputFormat: "json";
134
+ status: 200;
135
+ } | {
136
+ input: {
137
+ param: {
138
+ inbox_id: string;
139
+ message_id: string;
140
+ };
141
+ };
142
+ output: {
143
+ error: string;
144
+ };
145
+ outputFormat: "json";
146
+ status: 503;
147
+ } | {
148
+ input: {
149
+ param: {
150
+ inbox_id: string;
151
+ message_id: string;
152
+ };
153
+ };
154
+ output: {
155
+ error: string;
156
+ };
157
+ outputFormat: "json";
158
+ status: 502;
159
+ };
160
+ };
161
+ } & {
162
+ "/mejl/send": {
163
+ $post: {
164
+ input: {
165
+ json: {
166
+ to: string | string[];
167
+ headers?: Record<string, string> | undefined;
168
+ text?: string | undefined;
169
+ labels?: string[] | undefined;
170
+ subject?: string | undefined;
171
+ html?: string | undefined;
172
+ inbox_id?: string | undefined;
173
+ cc?: string | string[] | undefined;
174
+ bcc?: string | string[] | undefined;
175
+ reply_to?: string | string[] | undefined;
176
+ attachments?: {
177
+ content?: string | undefined;
178
+ url?: string | undefined;
179
+ filename?: string | undefined;
180
+ content_type?: string | undefined;
181
+ content_disposition?: string | undefined;
182
+ content_id?: string | undefined;
183
+ }[] | undefined;
184
+ };
185
+ };
186
+ output: {
187
+ data: {
188
+ [x: string]: import("hono/utils/types").JSONValue;
189
+ };
190
+ };
191
+ outputFormat: "json";
192
+ status: 200;
193
+ } | {
194
+ input: {
195
+ json: {
196
+ to: string | string[];
197
+ headers?: Record<string, string> | undefined;
198
+ text?: string | undefined;
199
+ labels?: string[] | undefined;
200
+ subject?: string | undefined;
201
+ html?: string | undefined;
202
+ inbox_id?: string | undefined;
203
+ cc?: string | string[] | undefined;
204
+ bcc?: string | string[] | undefined;
205
+ reply_to?: string | string[] | undefined;
206
+ attachments?: {
207
+ content?: string | undefined;
208
+ url?: string | undefined;
209
+ filename?: string | undefined;
210
+ content_type?: string | undefined;
211
+ content_disposition?: string | undefined;
212
+ content_id?: string | undefined;
213
+ }[] | undefined;
214
+ };
215
+ };
216
+ output: {
217
+ error: string;
218
+ };
219
+ outputFormat: "json";
220
+ status: 503;
221
+ } | {
222
+ input: {
223
+ json: {
224
+ to: string | string[];
225
+ headers?: Record<string, string> | undefined;
226
+ text?: string | undefined;
227
+ labels?: string[] | undefined;
228
+ subject?: string | undefined;
229
+ html?: string | undefined;
230
+ inbox_id?: string | undefined;
231
+ cc?: string | string[] | undefined;
232
+ bcc?: string | string[] | undefined;
233
+ reply_to?: string | string[] | undefined;
234
+ attachments?: {
235
+ content?: string | undefined;
236
+ url?: string | undefined;
237
+ filename?: string | undefined;
238
+ content_type?: string | undefined;
239
+ content_disposition?: string | undefined;
240
+ content_id?: string | undefined;
241
+ }[] | undefined;
242
+ };
243
+ };
244
+ output: {
245
+ error: string;
246
+ };
247
+ outputFormat: "json";
248
+ status: 502;
249
+ };
250
+ };
251
+ } & {
252
+ "/mejl/sms/send": {
253
+ $post: {
254
+ input: {
255
+ json: {
256
+ text: string;
257
+ to: string | string[];
258
+ ttl?: number | undefined;
259
+ with_delivery_report?: boolean | undefined;
260
+ };
261
+ };
262
+ output: {
263
+ data: {
264
+ [x: string]: import("hono/utils/types").JSONValue;
265
+ };
266
+ };
267
+ outputFormat: "json";
268
+ status: 200;
269
+ } | {
270
+ input: {
271
+ json: {
272
+ text: string;
273
+ to: string | string[];
274
+ ttl?: number | undefined;
275
+ with_delivery_report?: boolean | undefined;
276
+ };
277
+ };
278
+ output: {
279
+ error: string;
280
+ };
281
+ outputFormat: "json";
282
+ status: 503;
283
+ } | {
284
+ input: {
285
+ json: {
286
+ text: string;
287
+ to: string | string[];
288
+ ttl?: number | undefined;
289
+ with_delivery_report?: boolean | undefined;
290
+ };
291
+ };
292
+ output: {
293
+ error: string;
294
+ };
295
+ outputFormat: "json";
296
+ status: 502;
297
+ };
298
+ };
299
+ } & {
300
+ "/mejl/sms": {
301
+ $get: {
302
+ input: {
303
+ query: {
304
+ limit?: number | undefined;
305
+ };
306
+ };
307
+ output: {
308
+ data: {
309
+ [x: string]: import("hono/utils/types").JSONValue;
310
+ };
311
+ };
312
+ outputFormat: "json";
313
+ status: 200;
314
+ } | {
315
+ input: {
316
+ query: {
317
+ limit?: number | undefined;
318
+ };
319
+ };
320
+ output: {
321
+ error: string;
322
+ };
323
+ outputFormat: "json";
324
+ status: 503;
325
+ } | {
326
+ input: {
327
+ query: {
328
+ limit?: number | undefined;
329
+ };
330
+ };
331
+ output: {
332
+ error: string;
333
+ };
334
+ outputFormat: "json";
335
+ status: 502;
336
+ };
337
+ };
338
+ } & {
339
+ "/mejl/sms/:id": {
340
+ $get: {
341
+ input: {
342
+ param: {
343
+ id: string;
344
+ };
345
+ };
346
+ output: {
347
+ data: {
348
+ [x: string]: import("hono/utils/types").JSONValue;
349
+ };
350
+ };
351
+ outputFormat: "json";
352
+ status: 200;
353
+ } | {
354
+ input: {
355
+ param: {
356
+ id: string;
357
+ };
358
+ };
359
+ output: {
360
+ error: string;
361
+ };
362
+ outputFormat: "json";
363
+ status: 503;
364
+ } | {
365
+ input: {
366
+ param: {
367
+ id: string;
368
+ };
369
+ };
370
+ output: {
371
+ error: string;
372
+ };
373
+ outputFormat: "json";
374
+ status: 502;
375
+ };
376
+ };
377
+ }, "/">;