@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,517 @@
1
+ import { OpenAPIHono } from "@hono/zod-openapi";
2
+ import type { AppBindings } from "../app";
3
+ export declare const usersApp: OpenAPIHono<AppBindings, {
4
+ "/users/me": {
5
+ $get: {
6
+ input: {
7
+ query: {
8
+ fields?: string | undefined;
9
+ };
10
+ };
11
+ output: {
12
+ error: string;
13
+ };
14
+ outputFormat: "json";
15
+ status: 401;
16
+ } | {
17
+ input: {
18
+ query: {
19
+ fields?: string | undefined;
20
+ };
21
+ };
22
+ output: {
23
+ error: string;
24
+ };
25
+ outputFormat: "json";
26
+ status: 404;
27
+ } | {
28
+ input: {
29
+ query: {
30
+ fields?: string | undefined;
31
+ };
32
+ };
33
+ output: {
34
+ user: {
35
+ description: string | null;
36
+ title: string | null;
37
+ email: string | null;
38
+ id: string;
39
+ personnummer: string | null;
40
+ displayName: string;
41
+ fullName: string | null;
42
+ firstName: string | null;
43
+ previousEmail: string | null;
44
+ phoneNumber: string | null;
45
+ emailVerified: boolean;
46
+ phoneVerified: boolean;
47
+ age: number | null;
48
+ address: string | null;
49
+ about: string | null;
50
+ profilePictureUrl: string | null;
51
+ monthlyIncome: number | null;
52
+ employmentStatus: string | null;
53
+ businessType: string | null;
54
+ companyId: string | null;
55
+ stripeCustomerId: string | null;
56
+ isLandlord: boolean | null;
57
+ bostadsmeritScore: number;
58
+ bostadsmeritBreakdown: string | number | boolean | any[] | {
59
+ [x: string]: any;
60
+ } | null;
61
+ bostadsmeritUpdatedAt: string | null;
62
+ onboarding: string | number | boolean | any[] | {
63
+ [x: string]: any;
64
+ } | null;
65
+ isAddressVerified: boolean;
66
+ folkbokforingRaw: string | number | boolean | any[] | {
67
+ [x: string]: any;
68
+ } | null;
69
+ tenantProfileStatus: string;
70
+ accountStatus: string;
71
+ tenantProfilePublishedAt: string | null;
72
+ isFeatured: boolean;
73
+ isSuspicious: boolean;
74
+ lastLoginAt: string | null;
75
+ signupMarket: string | null;
76
+ signupLocale: string | null;
77
+ lastLoginMarket: string | null;
78
+ lastLoginLocale: string | null;
79
+ createdAt: string;
80
+ updatedAt: string;
81
+ authUserId: string | null;
82
+ preferences: string | number | boolean | any[] | {
83
+ [x: string]: any;
84
+ } | null;
85
+ profileDisplaySettings: string | number | boolean | any[] | {
86
+ [x: string]: any;
87
+ } | null;
88
+ authProvider: string | null;
89
+ idVerificationStatus: string | null;
90
+ idVerifiedAt: string | null;
91
+ identityHash: string | null;
92
+ landlordSlug: string | null;
93
+ dashboardSlug: string | null;
94
+ referenceCollectId: string | null;
95
+ freeRevealsPerMonth: number | null;
96
+ isBoosted: boolean;
97
+ boostExpiresAt: string | null;
98
+ boostStripeSubscriptionId: string | null;
99
+ tenantProfileLastActiveAt: string | null;
100
+ lastInactivityWarningSentAt: string | null;
101
+ isAdmin: boolean;
102
+ };
103
+ housingHistory: {
104
+ [x: string]: import("hono/utils/types").JSONValue;
105
+ }[];
106
+ documentCollection: {
107
+ [x: string]: import("hono/utils/types").JSONValue;
108
+ }[];
109
+ generalReferences: {
110
+ [x: string]: import("hono/utils/types").JSONValue;
111
+ }[];
112
+ givenReferences: {
113
+ [x: string]: import("hono/utils/types").JSONValue;
114
+ }[];
115
+ companyMemberships?: {
116
+ companyId: string;
117
+ role: string;
118
+ companyName: string | null;
119
+ logoUrl: string | null;
120
+ }[] | undefined;
121
+ };
122
+ outputFormat: "json";
123
+ status: 200;
124
+ };
125
+ };
126
+ } & {
127
+ "/users/me": {
128
+ $patch: {
129
+ input: {
130
+ json: {
131
+ description?: string | null | undefined;
132
+ title?: string | null | undefined;
133
+ personnummer?: string | null | undefined;
134
+ displayName?: string | undefined;
135
+ firstName?: string | null | undefined;
136
+ phoneNumber?: string | null | undefined;
137
+ age?: number | null | undefined;
138
+ address?: string | null | undefined;
139
+ about?: string | null | undefined;
140
+ profilePictureUrl?: string | null | undefined;
141
+ monthlyIncome?: number | null | undefined;
142
+ isLandlord?: boolean | null | undefined;
143
+ tenantProfileStatus?: "active" | "draft" | "archived" | undefined;
144
+ linkedLocationInterestId?: string | null | undefined;
145
+ };
146
+ };
147
+ output: {
148
+ error: string;
149
+ };
150
+ outputFormat: "json";
151
+ status: 401;
152
+ } | {
153
+ input: {
154
+ json: {
155
+ description?: string | null | undefined;
156
+ title?: string | null | undefined;
157
+ personnummer?: string | null | undefined;
158
+ displayName?: string | undefined;
159
+ firstName?: string | null | undefined;
160
+ phoneNumber?: string | null | undefined;
161
+ age?: number | null | undefined;
162
+ address?: string | null | undefined;
163
+ about?: string | null | undefined;
164
+ profilePictureUrl?: string | null | undefined;
165
+ monthlyIncome?: number | null | undefined;
166
+ isLandlord?: boolean | null | undefined;
167
+ tenantProfileStatus?: "active" | "draft" | "archived" | undefined;
168
+ linkedLocationInterestId?: string | null | undefined;
169
+ };
170
+ };
171
+ output: {
172
+ error: string;
173
+ };
174
+ outputFormat: "json";
175
+ status: 400;
176
+ } | {
177
+ input: {
178
+ json: {
179
+ description?: string | null | undefined;
180
+ title?: string | null | undefined;
181
+ personnummer?: string | null | undefined;
182
+ displayName?: string | undefined;
183
+ firstName?: string | null | undefined;
184
+ phoneNumber?: string | null | undefined;
185
+ age?: number | null | undefined;
186
+ address?: string | null | undefined;
187
+ about?: string | null | undefined;
188
+ profilePictureUrl?: string | null | undefined;
189
+ monthlyIncome?: number | null | undefined;
190
+ isLandlord?: boolean | null | undefined;
191
+ tenantProfileStatus?: "active" | "draft" | "archived" | undefined;
192
+ linkedLocationInterestId?: string | null | undefined;
193
+ };
194
+ };
195
+ output: {
196
+ error: string;
197
+ };
198
+ outputFormat: "json";
199
+ status: 409;
200
+ } | {
201
+ input: {
202
+ json: {
203
+ description?: string | null | undefined;
204
+ title?: string | null | undefined;
205
+ personnummer?: string | null | undefined;
206
+ displayName?: string | undefined;
207
+ firstName?: string | null | undefined;
208
+ phoneNumber?: string | null | undefined;
209
+ age?: number | null | undefined;
210
+ address?: string | null | undefined;
211
+ about?: string | null | undefined;
212
+ profilePictureUrl?: string | null | undefined;
213
+ monthlyIncome?: number | null | undefined;
214
+ isLandlord?: boolean | null | undefined;
215
+ tenantProfileStatus?: "active" | "draft" | "archived" | undefined;
216
+ linkedLocationInterestId?: string | null | undefined;
217
+ };
218
+ };
219
+ output: {
220
+ description: string | null;
221
+ title: string | null;
222
+ email: string | null;
223
+ id: string;
224
+ personnummer: string | null;
225
+ displayName: string;
226
+ fullName: string | null;
227
+ firstName: string | null;
228
+ previousEmail: string | null;
229
+ phoneNumber: string | null;
230
+ emailVerified: boolean;
231
+ phoneVerified: boolean;
232
+ age: number | null;
233
+ address: string | null;
234
+ about: string | null;
235
+ profilePictureUrl: string | null;
236
+ monthlyIncome: number | null;
237
+ employmentStatus: string | null;
238
+ businessType: string | null;
239
+ companyId: string | null;
240
+ stripeCustomerId: string | null;
241
+ isLandlord: boolean | null;
242
+ bostadsmeritScore: number;
243
+ bostadsmeritBreakdown: string | number | boolean | any[] | {
244
+ [x: string]: any;
245
+ } | null;
246
+ bostadsmeritUpdatedAt: string | null;
247
+ onboarding: string | number | boolean | any[] | {
248
+ [x: string]: any;
249
+ } | null;
250
+ isAddressVerified: boolean;
251
+ folkbokforingRaw: string | number | boolean | any[] | {
252
+ [x: string]: any;
253
+ } | null;
254
+ tenantProfileStatus: string;
255
+ accountStatus: string;
256
+ tenantProfilePublishedAt: string | null;
257
+ isFeatured: boolean;
258
+ isSuspicious: boolean;
259
+ lastLoginAt: string | null;
260
+ signupMarket: string | null;
261
+ signupLocale: string | null;
262
+ lastLoginMarket: string | null;
263
+ lastLoginLocale: string | null;
264
+ createdAt: string;
265
+ updatedAt: string;
266
+ authUserId: string | null;
267
+ preferences: string | number | boolean | any[] | {
268
+ [x: string]: any;
269
+ } | null;
270
+ profileDisplaySettings: string | number | boolean | any[] | {
271
+ [x: string]: any;
272
+ } | null;
273
+ authProvider: string | null;
274
+ idVerificationStatus: string | null;
275
+ idVerifiedAt: string | null;
276
+ identityHash: string | null;
277
+ landlordSlug: string | null;
278
+ dashboardSlug: string | null;
279
+ referenceCollectId: string | null;
280
+ freeRevealsPerMonth: number | null;
281
+ isBoosted: boolean;
282
+ boostExpiresAt: string | null;
283
+ boostStripeSubscriptionId: string | null;
284
+ tenantProfileLastActiveAt: string | null;
285
+ lastInactivityWarningSentAt: string | null;
286
+ };
287
+ outputFormat: "json";
288
+ status: 200;
289
+ };
290
+ };
291
+ } & {
292
+ "/users/account": {
293
+ $delete: {
294
+ input: {};
295
+ output: {
296
+ error: string;
297
+ };
298
+ outputFormat: "json";
299
+ status: 401;
300
+ } | {
301
+ input: {};
302
+ output: {
303
+ error: string;
304
+ };
305
+ outputFormat: "json";
306
+ status: 404;
307
+ } | {
308
+ input: {};
309
+ output: {
310
+ success: boolean;
311
+ };
312
+ outputFormat: "json";
313
+ status: 200;
314
+ };
315
+ };
316
+ } & {
317
+ "/users/me/settings": {
318
+ $patch: {
319
+ input: {
320
+ json: {
321
+ settings: {
322
+ notifications?: {
323
+ email?: boolean | undefined;
324
+ sms?: boolean | undefined;
325
+ marketingEmails?: boolean | undefined;
326
+ } | undefined;
327
+ communication?: {
328
+ preferredLocale?: "sv" | "en" | "da" | undefined;
329
+ } | undefined;
330
+ privacy?: {
331
+ showProfileToLandlords?: boolean | undefined;
332
+ allowAnonymousMessages?: boolean | undefined;
333
+ } | undefined;
334
+ };
335
+ };
336
+ };
337
+ output: {
338
+ error: string;
339
+ };
340
+ outputFormat: "json";
341
+ status: 401;
342
+ } | {
343
+ input: {
344
+ json: {
345
+ settings: {
346
+ notifications?: {
347
+ email?: boolean | undefined;
348
+ sms?: boolean | undefined;
349
+ marketingEmails?: boolean | undefined;
350
+ } | undefined;
351
+ communication?: {
352
+ preferredLocale?: "sv" | "en" | "da" | undefined;
353
+ } | undefined;
354
+ privacy?: {
355
+ showProfileToLandlords?: boolean | undefined;
356
+ allowAnonymousMessages?: boolean | undefined;
357
+ } | undefined;
358
+ };
359
+ };
360
+ };
361
+ output: {
362
+ success: boolean;
363
+ };
364
+ outputFormat: "json";
365
+ status: 200;
366
+ };
367
+ };
368
+ } & {
369
+ "/users/set-company-type": {
370
+ $post: {
371
+ input: {
372
+ json: {
373
+ businessType: "company" | "individual";
374
+ companyName?: string | undefined;
375
+ organizationNumber?: string | undefined;
376
+ };
377
+ };
378
+ output: {
379
+ error: string;
380
+ };
381
+ outputFormat: "json";
382
+ status: 401;
383
+ } | {
384
+ input: {
385
+ json: {
386
+ businessType: "company" | "individual";
387
+ companyName?: string | undefined;
388
+ organizationNumber?: string | undefined;
389
+ };
390
+ };
391
+ output: {
392
+ error: string;
393
+ };
394
+ outputFormat: "json";
395
+ status: 400;
396
+ } | {
397
+ input: {
398
+ json: {
399
+ businessType: "company" | "individual";
400
+ companyName?: string | undefined;
401
+ organizationNumber?: string | undefined;
402
+ };
403
+ };
404
+ output: {
405
+ ok?: boolean | undefined;
406
+ companyId?: string | undefined;
407
+ slug?: string | undefined;
408
+ };
409
+ outputFormat: "json";
410
+ status: 200;
411
+ };
412
+ };
413
+ } & {
414
+ "/users/switch-account": {
415
+ $post: {
416
+ input: {
417
+ json: {
418
+ businessType: "company" | "individual";
419
+ companyId?: string | undefined;
420
+ };
421
+ };
422
+ output: {
423
+ error: string;
424
+ };
425
+ outputFormat: "json";
426
+ status: 401;
427
+ } | {
428
+ input: {
429
+ json: {
430
+ businessType: "company" | "individual";
431
+ companyId?: string | undefined;
432
+ };
433
+ };
434
+ output: {
435
+ error: string;
436
+ };
437
+ outputFormat: "json";
438
+ status: 400;
439
+ } | {
440
+ input: {
441
+ json: {
442
+ businessType: "company" | "individual";
443
+ companyId?: string | undefined;
444
+ };
445
+ };
446
+ output: {
447
+ error: string;
448
+ };
449
+ outputFormat: "json";
450
+ status: 403;
451
+ } | {
452
+ input: {
453
+ json: {
454
+ businessType: "company" | "individual";
455
+ companyId?: string | undefined;
456
+ };
457
+ };
458
+ output: {
459
+ success: boolean;
460
+ };
461
+ outputFormat: "json";
462
+ status: 200;
463
+ };
464
+ };
465
+ } & {
466
+ "/users/me/profile-picture": {
467
+ $delete: {
468
+ input: {};
469
+ output: {
470
+ error: string;
471
+ };
472
+ outputFormat: "json";
473
+ status: 401;
474
+ } | {
475
+ input: {};
476
+ output: {
477
+ profilePictureUrl: null;
478
+ };
479
+ outputFormat: "json";
480
+ status: 200;
481
+ };
482
+ };
483
+ } & {
484
+ "/users/me/sidebar-counts": {
485
+ $get: {
486
+ input: {};
487
+ output: {
488
+ error: string;
489
+ };
490
+ outputFormat: "json";
491
+ status: 401;
492
+ } | {
493
+ input: {};
494
+ output: {
495
+ error: string;
496
+ };
497
+ outputFormat: "json";
498
+ status: 404;
499
+ } | {
500
+ input: {};
501
+ output: {
502
+ alerts: number;
503
+ documents: number;
504
+ applications: number;
505
+ references: number;
506
+ pendingLandlordApplications: number;
507
+ lockedConversations: number;
508
+ unreadMessages: number;
509
+ pendingInvites: number;
510
+ publishedListings: number;
511
+ draftListings: number;
512
+ };
513
+ outputFormat: "json";
514
+ status: 200;
515
+ };
516
+ };
517
+ }, "/">;
@@ -0,0 +1,175 @@
1
+ import { OpenAPIHono } from "@hono/zod-openapi";
2
+ import type { AppBindings } from "../app";
3
+ export declare const verificationApp: OpenAPIHono<AppBindings, {
4
+ "/verification/phone/send-otp": {
5
+ $post: {
6
+ input: {
7
+ json: {
8
+ phoneNumber: string;
9
+ };
10
+ };
11
+ output: {
12
+ error: string;
13
+ };
14
+ outputFormat: "json";
15
+ status: 401;
16
+ } | {
17
+ input: {
18
+ json: {
19
+ phoneNumber: string;
20
+ };
21
+ };
22
+ output: {
23
+ error: string;
24
+ };
25
+ outputFormat: "json";
26
+ status: 400;
27
+ } | {
28
+ input: {
29
+ json: {
30
+ phoneNumber: string;
31
+ };
32
+ };
33
+ output: {
34
+ success: boolean;
35
+ };
36
+ outputFormat: "json";
37
+ status: 200;
38
+ } | {
39
+ input: {
40
+ json: {
41
+ phoneNumber: string;
42
+ };
43
+ };
44
+ output: {
45
+ error: string;
46
+ };
47
+ outputFormat: "json";
48
+ status: 500;
49
+ };
50
+ };
51
+ } & {
52
+ "/verification/phone/verify": {
53
+ $post: {
54
+ input: {
55
+ json: {
56
+ code: string;
57
+ };
58
+ };
59
+ output: {
60
+ error: string;
61
+ };
62
+ outputFormat: "json";
63
+ status: 401;
64
+ } | {
65
+ input: {
66
+ json: {
67
+ code: string;
68
+ };
69
+ };
70
+ output: {
71
+ error: string;
72
+ };
73
+ outputFormat: "json";
74
+ status: 400;
75
+ } | {
76
+ input: {
77
+ json: {
78
+ code: string;
79
+ };
80
+ };
81
+ output: {
82
+ success: boolean;
83
+ phoneVerified: boolean;
84
+ };
85
+ outputFormat: "json";
86
+ status: 200;
87
+ };
88
+ };
89
+ } & {
90
+ "/verification/email/send-otp": {
91
+ $post: {
92
+ input: {
93
+ json: {
94
+ newEmail: string;
95
+ };
96
+ };
97
+ output: {
98
+ error: string;
99
+ };
100
+ outputFormat: "json";
101
+ status: 401;
102
+ } | {
103
+ input: {
104
+ json: {
105
+ newEmail: string;
106
+ };
107
+ };
108
+ output: {
109
+ error: string;
110
+ };
111
+ outputFormat: "json";
112
+ status: 400;
113
+ } | {
114
+ input: {
115
+ json: {
116
+ newEmail: string;
117
+ };
118
+ };
119
+ output: {
120
+ success: boolean;
121
+ };
122
+ outputFormat: "json";
123
+ status: 200;
124
+ } | {
125
+ input: {
126
+ json: {
127
+ newEmail: string;
128
+ };
129
+ };
130
+ output: {
131
+ error: string;
132
+ };
133
+ outputFormat: "json";
134
+ status: 500;
135
+ };
136
+ };
137
+ } & {
138
+ "/verification/email/verify": {
139
+ $post: {
140
+ input: {
141
+ json: {
142
+ code: string;
143
+ };
144
+ };
145
+ output: {
146
+ error: string;
147
+ };
148
+ outputFormat: "json";
149
+ status: 401;
150
+ } | {
151
+ input: {
152
+ json: {
153
+ code: string;
154
+ };
155
+ };
156
+ output: {
157
+ error: string;
158
+ };
159
+ outputFormat: "json";
160
+ status: 400;
161
+ } | {
162
+ input: {
163
+ json: {
164
+ code: string;
165
+ };
166
+ };
167
+ output: {
168
+ success: boolean;
169
+ emailVerified: boolean;
170
+ };
171
+ outputFormat: "json";
172
+ status: 200;
173
+ };
174
+ };
175
+ }, "/">;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Stripe Webhook Route
3
+ *
4
+ * NO auth middleware — uses Stripe signature verification.
5
+ * Always returns 200 to prevent Stripe retries on processing errors.
6
+ */
7
+ import { OpenAPIHono } from "@hono/zod-openapi";
8
+ import type { AppBindings } from "../app";
9
+ export declare const webhooksApp: OpenAPIHono<AppBindings, {}, "/">;