@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,842 @@
1
+ import { OpenAPIHono } from "@hono/zod-openapi";
2
+ import type { AppBindings } from "../app";
3
+ export declare const companiesApp: OpenAPIHono<AppBindings, {
4
+ "/companies/my-invites": {
5
+ $get: {
6
+ input: {};
7
+ output: {
8
+ error: string;
9
+ };
10
+ outputFormat: "json";
11
+ status: 401;
12
+ } | {
13
+ input: {};
14
+ output: {
15
+ invites: {
16
+ companyId: string;
17
+ role: string;
18
+ companyName: string;
19
+ invitedAt: string;
20
+ }[];
21
+ };
22
+ outputFormat: "json";
23
+ status: 200;
24
+ };
25
+ };
26
+ } & {
27
+ "/companies/:id": {
28
+ $get: {
29
+ input: {
30
+ param: {
31
+ id: string;
32
+ };
33
+ };
34
+ output: {
35
+ error: string;
36
+ };
37
+ outputFormat: "json";
38
+ status: 404;
39
+ } | {
40
+ input: {
41
+ param: {
42
+ id: string;
43
+ };
44
+ };
45
+ output: {
46
+ company: {
47
+ description: string | null;
48
+ email: string | null;
49
+ id: string;
50
+ displayName: string | null;
51
+ phoneNumber: string | null;
52
+ slug: string | null;
53
+ isProfilePublished: boolean | null;
54
+ logoUrl: string | null;
55
+ galleryImages: string[] | null;
56
+ websiteUrl: string | null;
57
+ facebookUrl: string | null;
58
+ linkedinUrl: string | null;
59
+ openingHours: string | null;
60
+ address?: {
61
+ street: string | null;
62
+ postalCode: string | null;
63
+ city: string | null;
64
+ } | undefined;
65
+ userRole?: string | undefined;
66
+ };
67
+ listings: {
68
+ status: string;
69
+ id: string;
70
+ shortId: string | null;
71
+ isFeatured: boolean;
72
+ createdAt: string;
73
+ updatedAt: string;
74
+ slug: string | null;
75
+ countryCode: string;
76
+ lat: number | null;
77
+ lon: number | null;
78
+ geoLan: string | null;
79
+ geoKommun: string | null;
80
+ geoOmrade: string | null;
81
+ geoRoutePrefix: string | null;
82
+ propertyId: string | null;
83
+ currencyCode: string;
84
+ geo: string | number | boolean | any[] | {
85
+ [x: string]: any;
86
+ } | null;
87
+ publicUrl: string | null;
88
+ publicUrlEn: string | null;
89
+ position: number | null;
90
+ viewCount: number;
91
+ currentStep: number | null;
92
+ isLocked: boolean;
93
+ pendingReview: boolean;
94
+ rejectionComment: string | null;
95
+ submissionCount: number;
96
+ premiumListingPriceOre: number;
97
+ upgradedAt: string | null;
98
+ upgradeTier: number | null;
99
+ reviewedBy: string | null;
100
+ reviewedAt: string | null;
101
+ publishedAt: string | null;
102
+ }[];
103
+ canEdit: boolean;
104
+ };
105
+ outputFormat: "json";
106
+ status: 200;
107
+ };
108
+ };
109
+ } & {
110
+ "/companies/:id": {
111
+ $patch: {
112
+ input: {
113
+ param: {
114
+ id: string;
115
+ };
116
+ } & {
117
+ json: {
118
+ value: string | boolean | string[] | {
119
+ street?: string | undefined;
120
+ postalCode?: string | undefined;
121
+ city?: string | undefined;
122
+ } | null;
123
+ field: "description" | "email" | "phoneNumber" | "address" | "companyName" | "isProfilePublished" | "logoUrl" | "galleryImages" | "websiteUrl" | "facebookUrl" | "linkedinUrl" | "openingHours";
124
+ } | {
125
+ action: "addMember" | "removeMember";
126
+ personnummer?: string | undefined;
127
+ userId?: string | undefined;
128
+ };
129
+ };
130
+ output: {
131
+ error: string;
132
+ };
133
+ outputFormat: "json";
134
+ status: 401;
135
+ } | {
136
+ input: {
137
+ param: {
138
+ id: string;
139
+ };
140
+ } & {
141
+ json: {
142
+ value: string | boolean | string[] | {
143
+ street?: string | undefined;
144
+ postalCode?: string | undefined;
145
+ city?: string | undefined;
146
+ } | null;
147
+ field: "description" | "email" | "phoneNumber" | "address" | "companyName" | "isProfilePublished" | "logoUrl" | "galleryImages" | "websiteUrl" | "facebookUrl" | "linkedinUrl" | "openingHours";
148
+ } | {
149
+ action: "addMember" | "removeMember";
150
+ personnummer?: string | undefined;
151
+ userId?: string | undefined;
152
+ };
153
+ };
154
+ output: {
155
+ error: string;
156
+ };
157
+ outputFormat: "json";
158
+ status: 404;
159
+ } | {
160
+ input: {
161
+ param: {
162
+ id: string;
163
+ };
164
+ } & {
165
+ json: {
166
+ value: string | boolean | string[] | {
167
+ street?: string | undefined;
168
+ postalCode?: string | undefined;
169
+ city?: string | undefined;
170
+ } | null;
171
+ field: "description" | "email" | "phoneNumber" | "address" | "companyName" | "isProfilePublished" | "logoUrl" | "galleryImages" | "websiteUrl" | "facebookUrl" | "linkedinUrl" | "openingHours";
172
+ } | {
173
+ action: "addMember" | "removeMember";
174
+ personnummer?: string | undefined;
175
+ userId?: string | undefined;
176
+ };
177
+ };
178
+ output: {
179
+ error: string;
180
+ };
181
+ outputFormat: "json";
182
+ status: 400;
183
+ } | {
184
+ input: {
185
+ param: {
186
+ id: string;
187
+ };
188
+ } & {
189
+ json: {
190
+ value: string | boolean | string[] | {
191
+ street?: string | undefined;
192
+ postalCode?: string | undefined;
193
+ city?: string | undefined;
194
+ } | null;
195
+ field: "description" | "email" | "phoneNumber" | "address" | "companyName" | "isProfilePublished" | "logoUrl" | "galleryImages" | "websiteUrl" | "facebookUrl" | "linkedinUrl" | "openingHours";
196
+ } | {
197
+ action: "addMember" | "removeMember";
198
+ personnummer?: string | undefined;
199
+ userId?: string | undefined;
200
+ };
201
+ };
202
+ output: {
203
+ error: string;
204
+ };
205
+ outputFormat: "json";
206
+ status: 403;
207
+ } | {
208
+ input: {
209
+ param: {
210
+ id: string;
211
+ };
212
+ } & {
213
+ json: {
214
+ value: string | boolean | string[] | {
215
+ street?: string | undefined;
216
+ postalCode?: string | undefined;
217
+ city?: string | undefined;
218
+ } | null;
219
+ field: "description" | "email" | "phoneNumber" | "address" | "companyName" | "isProfilePublished" | "logoUrl" | "galleryImages" | "websiteUrl" | "facebookUrl" | "linkedinUrl" | "openingHours";
220
+ } | {
221
+ action: "addMember" | "removeMember";
222
+ personnummer?: string | undefined;
223
+ userId?: string | undefined;
224
+ };
225
+ };
226
+ output: {
227
+ field: string;
228
+ updated: boolean;
229
+ } | {
230
+ action: string;
231
+ };
232
+ outputFormat: "json";
233
+ status: 200;
234
+ };
235
+ };
236
+ } & {
237
+ "/companies/:id/members": {
238
+ $get: {
239
+ input: {
240
+ param: {
241
+ id: string;
242
+ };
243
+ };
244
+ output: {
245
+ error: string;
246
+ };
247
+ outputFormat: "json";
248
+ status: 401;
249
+ } | {
250
+ input: {
251
+ param: {
252
+ id: string;
253
+ };
254
+ };
255
+ output: {
256
+ error: string;
257
+ };
258
+ outputFormat: "json";
259
+ status: 403;
260
+ } | {
261
+ input: {
262
+ param: {
263
+ id: string;
264
+ };
265
+ };
266
+ output: ({
267
+ status: string;
268
+ email: string | null;
269
+ displayName: string | null;
270
+ companyId: string;
271
+ role: string;
272
+ updatedAt: string;
273
+ userId: string;
274
+ invitedBy: string | null;
275
+ joinedAt: string | null;
276
+ } | {
277
+ status: "pending";
278
+ email: string;
279
+ displayName: null;
280
+ companyId: string;
281
+ role: string;
282
+ updatedAt: string;
283
+ userId: null;
284
+ invitedBy: string | null;
285
+ joinedAt: null;
286
+ invitationId: string;
287
+ })[];
288
+ outputFormat: "json";
289
+ status: 200;
290
+ };
291
+ };
292
+ } & {
293
+ "/companies/:id/members": {
294
+ $post: {
295
+ input: {
296
+ param: {
297
+ id: string;
298
+ };
299
+ } & {
300
+ json: {
301
+ email: string;
302
+ role?: "member" | "admin" | undefined;
303
+ };
304
+ };
305
+ output: {
306
+ error: string;
307
+ };
308
+ outputFormat: "json";
309
+ status: 401;
310
+ } | {
311
+ input: {
312
+ param: {
313
+ id: string;
314
+ };
315
+ } & {
316
+ json: {
317
+ email: string;
318
+ role?: "member" | "admin" | undefined;
319
+ };
320
+ };
321
+ output: {
322
+ error: string;
323
+ };
324
+ outputFormat: "json";
325
+ status: 400;
326
+ } | {
327
+ input: {
328
+ param: {
329
+ id: string;
330
+ };
331
+ } & {
332
+ json: {
333
+ email: string;
334
+ role?: "member" | "admin" | undefined;
335
+ };
336
+ };
337
+ output: {
338
+ error: string;
339
+ };
340
+ outputFormat: "json";
341
+ status: 403;
342
+ } | {
343
+ input: {
344
+ param: {
345
+ id: string;
346
+ };
347
+ } & {
348
+ json: {
349
+ email: string;
350
+ role?: "member" | "admin" | undefined;
351
+ };
352
+ };
353
+ output: {
354
+ error: string;
355
+ };
356
+ outputFormat: "json";
357
+ status: 409;
358
+ } | {
359
+ input: {
360
+ param: {
361
+ id: string;
362
+ };
363
+ } & {
364
+ json: {
365
+ email: string;
366
+ role?: "member" | "admin" | undefined;
367
+ };
368
+ };
369
+ output: {
370
+ message: string;
371
+ status: "invited" | "pending";
372
+ };
373
+ outputFormat: "json";
374
+ status: 200;
375
+ } | {
376
+ input: {
377
+ param: {
378
+ id: string;
379
+ };
380
+ } & {
381
+ json: {
382
+ email: string;
383
+ role?: "member" | "admin" | undefined;
384
+ };
385
+ };
386
+ output: {
387
+ message: string;
388
+ status: "invited" | "pending";
389
+ };
390
+ outputFormat: "json";
391
+ status: 201;
392
+ };
393
+ };
394
+ } & {
395
+ "/companies/:id/members/:userId": {
396
+ $patch: {
397
+ input: {
398
+ param: {
399
+ id: string;
400
+ userId: string;
401
+ };
402
+ } & {
403
+ json: {
404
+ role: "member" | "admin";
405
+ };
406
+ };
407
+ output: {
408
+ error: string;
409
+ };
410
+ outputFormat: "json";
411
+ status: 401;
412
+ } | {
413
+ input: {
414
+ param: {
415
+ id: string;
416
+ userId: string;
417
+ };
418
+ } & {
419
+ json: {
420
+ role: "member" | "admin";
421
+ };
422
+ };
423
+ output: {
424
+ error: string;
425
+ };
426
+ outputFormat: "json";
427
+ status: 404;
428
+ } | {
429
+ input: {
430
+ param: {
431
+ id: string;
432
+ userId: string;
433
+ };
434
+ } & {
435
+ json: {
436
+ role: "member" | "admin";
437
+ };
438
+ };
439
+ output: {
440
+ error: string;
441
+ };
442
+ outputFormat: "json";
443
+ status: 400;
444
+ } | {
445
+ input: {
446
+ param: {
447
+ id: string;
448
+ userId: string;
449
+ };
450
+ } & {
451
+ json: {
452
+ role: "member" | "admin";
453
+ };
454
+ };
455
+ output: {
456
+ error: string;
457
+ };
458
+ outputFormat: "json";
459
+ status: 403;
460
+ } | {
461
+ input: {
462
+ param: {
463
+ id: string;
464
+ userId: string;
465
+ };
466
+ } & {
467
+ json: {
468
+ role: "member" | "admin";
469
+ };
470
+ };
471
+ output: {
472
+ success: boolean;
473
+ };
474
+ outputFormat: "json";
475
+ status: 200;
476
+ };
477
+ };
478
+ } & {
479
+ "/companies/:id/members/:userId": {
480
+ $delete: {
481
+ input: {
482
+ param: {
483
+ id: string;
484
+ userId: string;
485
+ };
486
+ };
487
+ output: {
488
+ error: string;
489
+ };
490
+ outputFormat: "json";
491
+ status: 401;
492
+ } | {
493
+ input: {
494
+ param: {
495
+ id: string;
496
+ userId: string;
497
+ };
498
+ };
499
+ output: {
500
+ error: string;
501
+ };
502
+ outputFormat: "json";
503
+ status: 404;
504
+ } | {
505
+ input: {
506
+ param: {
507
+ id: string;
508
+ userId: string;
509
+ };
510
+ };
511
+ output: {
512
+ error: string;
513
+ };
514
+ outputFormat: "json";
515
+ status: 400;
516
+ } | {
517
+ input: {
518
+ param: {
519
+ id: string;
520
+ userId: string;
521
+ };
522
+ };
523
+ output: {
524
+ error: string;
525
+ };
526
+ outputFormat: "json";
527
+ status: 403;
528
+ } | {
529
+ input: {
530
+ param: {
531
+ id: string;
532
+ userId: string;
533
+ };
534
+ };
535
+ output: {
536
+ success: boolean;
537
+ };
538
+ outputFormat: "json";
539
+ status: 200;
540
+ };
541
+ };
542
+ } & {
543
+ "/companies/:id/invitations/:invitationId": {
544
+ $delete: {
545
+ input: {
546
+ param: {
547
+ id: string;
548
+ invitationId: string;
549
+ };
550
+ };
551
+ output: {
552
+ error: string;
553
+ };
554
+ outputFormat: "json";
555
+ status: 401;
556
+ } | {
557
+ input: {
558
+ param: {
559
+ id: string;
560
+ invitationId: string;
561
+ };
562
+ };
563
+ output: {
564
+ error: string;
565
+ };
566
+ outputFormat: "json";
567
+ status: 404;
568
+ } | {
569
+ input: {
570
+ param: {
571
+ id: string;
572
+ invitationId: string;
573
+ };
574
+ };
575
+ output: {
576
+ error: string;
577
+ };
578
+ outputFormat: "json";
579
+ status: 403;
580
+ } | {
581
+ input: {
582
+ param: {
583
+ id: string;
584
+ invitationId: string;
585
+ };
586
+ };
587
+ output: {
588
+ success: boolean;
589
+ };
590
+ outputFormat: "json";
591
+ status: 200;
592
+ };
593
+ };
594
+ } & {
595
+ "/companies/:id": {
596
+ $delete: {
597
+ input: {
598
+ param: {
599
+ id: string;
600
+ };
601
+ };
602
+ output: {
603
+ error: string;
604
+ };
605
+ outputFormat: "json";
606
+ status: 401;
607
+ } | {
608
+ input: {
609
+ param: {
610
+ id: string;
611
+ };
612
+ };
613
+ output: {
614
+ error: string;
615
+ };
616
+ outputFormat: "json";
617
+ status: 404;
618
+ } | {
619
+ input: {
620
+ param: {
621
+ id: string;
622
+ };
623
+ };
624
+ output: {
625
+ error: string;
626
+ };
627
+ outputFormat: "json";
628
+ status: 400;
629
+ } | {
630
+ input: {
631
+ param: {
632
+ id: string;
633
+ };
634
+ };
635
+ output: {
636
+ error: string;
637
+ };
638
+ outputFormat: "json";
639
+ status: 403;
640
+ } | {
641
+ input: {
642
+ param: {
643
+ id: string;
644
+ };
645
+ };
646
+ output: {
647
+ success: boolean;
648
+ };
649
+ outputFormat: "json";
650
+ status: 200;
651
+ };
652
+ };
653
+ } & {
654
+ "/companies/:id/settings": {
655
+ $get: {
656
+ input: {
657
+ param: {
658
+ id: string;
659
+ };
660
+ };
661
+ output: {
662
+ error: string;
663
+ };
664
+ outputFormat: "json";
665
+ status: 401;
666
+ } | {
667
+ input: {
668
+ param: {
669
+ id: string;
670
+ };
671
+ };
672
+ output: {
673
+ error: string;
674
+ };
675
+ outputFormat: "json";
676
+ status: 404;
677
+ } | {
678
+ input: {
679
+ param: {
680
+ id: string;
681
+ };
682
+ };
683
+ output: {
684
+ error: string;
685
+ };
686
+ outputFormat: "json";
687
+ status: 403;
688
+ } | {
689
+ input: {
690
+ param: {
691
+ id: string;
692
+ };
693
+ };
694
+ output: {
695
+ settings: {
696
+ preferredLocale: "sv" | "en" | "da";
697
+ notifications: {
698
+ documents: boolean;
699
+ applications: boolean;
700
+ listings: boolean;
701
+ leads: boolean;
702
+ };
703
+ };
704
+ };
705
+ outputFormat: "json";
706
+ status: 200;
707
+ };
708
+ };
709
+ } & {
710
+ "/companies/:id/settings": {
711
+ $patch: {
712
+ input: {
713
+ param: {
714
+ id: string;
715
+ };
716
+ } & {
717
+ json: {
718
+ preferredLocale?: "sv" | "en" | "da" | undefined;
719
+ notifications?: {
720
+ documents?: boolean | undefined;
721
+ applications?: boolean | undefined;
722
+ listings?: boolean | undefined;
723
+ leads?: boolean | undefined;
724
+ } | undefined;
725
+ };
726
+ };
727
+ output: {
728
+ error: string;
729
+ };
730
+ outputFormat: "json";
731
+ status: 401;
732
+ } | {
733
+ input: {
734
+ param: {
735
+ id: string;
736
+ };
737
+ } & {
738
+ json: {
739
+ preferredLocale?: "sv" | "en" | "da" | undefined;
740
+ notifications?: {
741
+ documents?: boolean | undefined;
742
+ applications?: boolean | undefined;
743
+ listings?: boolean | undefined;
744
+ leads?: boolean | undefined;
745
+ } | undefined;
746
+ };
747
+ };
748
+ output: {
749
+ error: string;
750
+ };
751
+ outputFormat: "json";
752
+ status: 404;
753
+ } | {
754
+ input: {
755
+ param: {
756
+ id: string;
757
+ };
758
+ } & {
759
+ json: {
760
+ preferredLocale?: "sv" | "en" | "da" | undefined;
761
+ notifications?: {
762
+ documents?: boolean | undefined;
763
+ applications?: boolean | undefined;
764
+ listings?: boolean | undefined;
765
+ leads?: boolean | undefined;
766
+ } | undefined;
767
+ };
768
+ };
769
+ output: {
770
+ error: string;
771
+ };
772
+ outputFormat: "json";
773
+ status: 403;
774
+ } | {
775
+ input: {
776
+ param: {
777
+ id: string;
778
+ };
779
+ } & {
780
+ json: {
781
+ preferredLocale?: "sv" | "en" | "da" | undefined;
782
+ notifications?: {
783
+ documents?: boolean | undefined;
784
+ applications?: boolean | undefined;
785
+ listings?: boolean | undefined;
786
+ leads?: boolean | undefined;
787
+ } | undefined;
788
+ };
789
+ };
790
+ output: {
791
+ settings: {
792
+ preferredLocale: "sv" | "en" | "da";
793
+ notifications: {
794
+ documents: boolean;
795
+ applications: boolean;
796
+ listings: boolean;
797
+ leads: boolean;
798
+ };
799
+ };
800
+ };
801
+ outputFormat: "json";
802
+ status: 200;
803
+ };
804
+ };
805
+ } & {
806
+ "/companies/:id/members/accept": {
807
+ $post: {
808
+ input: {
809
+ param: {
810
+ id: string;
811
+ };
812
+ };
813
+ output: {
814
+ error: string;
815
+ };
816
+ outputFormat: "json";
817
+ status: 401;
818
+ } | {
819
+ input: {
820
+ param: {
821
+ id: string;
822
+ };
823
+ };
824
+ output: {
825
+ error: string;
826
+ };
827
+ outputFormat: "json";
828
+ status: 404;
829
+ } | {
830
+ input: {
831
+ param: {
832
+ id: string;
833
+ };
834
+ };
835
+ output: {
836
+ success: boolean;
837
+ };
838
+ outputFormat: "json";
839
+ status: 200;
840
+ };
841
+ };
842
+ }, "/">;