@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.
- package/README.md +24 -0
- package/dist/app.d.ts +23 -0
- package/dist/dev.d.ts +6 -0
- package/dist/export-openapi.d.ts +9 -0
- package/dist/index.d.ts +3 -0
- package/dist/lib/auth.d.ts +20 -0
- package/dist/lib/criipto-bankid.d.ts +45 -0
- package/dist/lib/datalake.d.ts +7 -0
- package/dist/lib/docs-filter.d.ts +15 -0
- package/dist/lib/email-action-token.d.ts +26 -0
- package/dist/lib/email-utm.d.ts +42 -0
- package/dist/lib/email.d.ts +94 -0
- package/dist/lib/env.d.ts +18 -0
- package/dist/lib/errors.d.ts +6 -0
- package/dist/lib/helpers.d.ts +6 -0
- package/dist/lib/logger.d.ts +25 -0
- package/dist/lib/markets.d.ts +1 -0
- package/dist/lib/org-number.d.ts +5 -0
- package/dist/lib/ownership.d.ts +47 -0
- package/dist/lib/pdf-watermark.d.ts +25 -0
- package/dist/lib/personnummer.d.ts +14 -0
- package/dist/lib/posthog.d.ts +51 -0
- package/dist/lib/premium.d.ts +13 -0
- package/dist/lib/profile-resolver.d.ts +14 -0
- package/dist/lib/redirect-state.d.ts +40 -0
- package/dist/lib/revalidate.d.ts +23 -0
- package/dist/lib/schemas.d.ts +21 -0
- package/dist/lib/sentry.d.ts +31 -0
- package/dist/lib/slug.d.ts +5 -0
- package/dist/lib/sms.d.ts +22 -0
- package/dist/lib/system-log.d.ts +31 -0
- package/dist/lib/webhook-events.d.ts +26 -0
- package/dist/lib/webhooks.d.ts +28 -0
- package/dist/middleware/auth-debug.d.ts +17 -0
- package/dist/middleware/auth.d.ts +19 -0
- package/dist/middleware/bibi-logger.d.ts +6 -0
- package/dist/middleware/cors.d.ts +1 -0
- package/dist/middleware/request-id.d.ts +10 -0
- package/dist/middleware/sentry-context.d.ts +8 -0
- package/dist/routes/activity-feed.d.ts +64 -0
- package/dist/routes/admin-bevakningar.d.ts +200 -0
- package/dist/routes/admin-companies.d.ts +381 -0
- package/dist/routes/admin-email-jobs.d.ts +257 -0
- package/dist/routes/admin-email-logs.d.ts +9 -0
- package/dist/routes/admin-fb-leads.d.ts +32 -0
- package/dist/routes/admin-import.d.ts +188 -0
- package/dist/routes/admin-login-history.d.ts +9 -0
- package/dist/routes/admin-marketing.d.ts +15 -0
- package/dist/routes/admin-metabase.d.ts +9 -0
- package/dist/routes/admin-notifications.d.ts +7 -0
- package/dist/routes/admin-paying-customers.d.ts +74 -0
- package/dist/routes/admin-sessions.d.ts +10 -0
- package/dist/routes/admin-stats.d.ts +380 -0
- package/dist/routes/admin-system-logs.d.ts +10 -0
- package/dist/routes/admin-users.d.ts +299 -0
- package/dist/routes/admin-webhooks.d.ts +276 -0
- package/dist/routes/api-keys.d.ts +123 -0
- package/dist/routes/applications.d.ts +385 -0
- package/dist/routes/auth.d.ts +15 -0
- package/dist/routes/billing.d.ts +369 -0
- package/dist/routes/bostadsmerit.d.ts +51 -0
- package/dist/routes/companies.d.ts +842 -0
- package/dist/routes/contact-reveals.d.ts +102 -0
- package/dist/routes/conversations/handlers/conversation.d.ts +5 -0
- package/dist/routes/conversations/handlers/initiate.d.ts +4 -0
- package/dist/routes/conversations/handlers/messages.d.ts +5 -0
- package/dist/routes/conversations/handlers/state.d.ts +5 -0
- package/dist/routes/conversations/helpers/access.d.ts +11 -0
- package/dist/routes/conversations/helpers/enrich-conversation.d.ts +58 -0
- package/dist/routes/conversations/helpers/identity.d.ts +43 -0
- package/dist/routes/conversations/helpers/notify-recipient.d.ts +10 -0
- package/dist/routes/conversations/helpers/reconcile-reveal.d.ts +10 -0
- package/dist/routes/conversations/helpers/scrub-contact.d.ts +1 -0
- package/dist/routes/conversations/index.d.ts +422 -0
- package/dist/routes/conversations/routes.d.ts +924 -0
- package/dist/routes/conversations/schemas.d.ts +216 -0
- package/dist/routes/cron.d.ts +27 -0
- package/dist/routes/documents.d.ts +493 -0
- package/dist/routes/email-actions.d.ts +8 -0
- package/dist/routes/fastighetslista.d.ts +94 -0
- package/dist/routes/geo.d.ts +518 -0
- package/dist/routes/geocoding.d.ts +192 -0
- package/dist/routes/health.d.ts +43 -0
- package/dist/routes/housing-history.d.ts +381 -0
- package/dist/routes/index.d.ts +15321 -0
- package/dist/routes/leads.d.ts +281 -0
- package/dist/routes/listing-helpers.d.ts +33 -0
- package/dist/routes/listing-publications.d.ts +636 -0
- package/dist/routes/listings.d.ts +1846 -0
- package/dist/routes/location-interests.d.ts +754 -0
- package/dist/routes/lookup.d.ts +109 -0
- package/dist/routes/mejl.d.ts +377 -0
- package/dist/routes/profiles.d.ts +281 -0
- package/dist/routes/properties.d.ts +1266 -0
- package/dist/routes/public-listings.d.ts +1137 -0
- package/dist/routes/public-profiles.d.ts +293 -0
- package/dist/routes/references.d.ts +695 -0
- package/dist/routes/search-partners.d.ts +4 -0
- package/dist/routes/site-config.d.ts +103 -0
- package/dist/routes/storage.d.ts +367 -0
- package/dist/routes/tenant-boost.d.ts +229 -0
- package/dist/routes/tenants.d.ts +336 -0
- package/dist/routes/track.d.ts +19 -0
- package/dist/routes/translate.d.ts +51 -0
- package/dist/routes/users.d.ts +517 -0
- package/dist/routes/verification.d.ts +175 -0
- package/dist/routes/webhooks.d.ts +9 -0
- package/dist/rpc.d.ts +11 -0
- package/dist/serve.d.ts +5 -0
- package/dist/services/activity-feed/activity-feed.service.d.ts +26 -0
- package/dist/services/applications/approval.service.d.ts +17 -0
- package/dist/services/auth/bankid-login.service.d.ts +40 -0
- package/dist/services/billing/constants.d.ts +2 -0
- package/dist/services/billing/contact-billing.service.d.ts +59 -0
- package/dist/services/billing/customer.service.d.ts +14 -0
- package/dist/services/billing/invoice-item.service.d.ts +49 -0
- package/dist/services/billing/invoice.service.d.ts +21 -0
- package/dist/services/billing/listing-upgrade-checkout.service.d.ts +45 -0
- package/dist/services/billing/purchase-receipt-email.d.ts +23 -0
- package/dist/services/billing/reveal-allowance.service.d.ts +33 -0
- package/dist/services/billing/stripe.d.ts +6 -0
- package/dist/services/billing/subscription.service.d.ts +21 -0
- package/dist/services/billing/types.d.ts +64 -0
- package/dist/services/billing/verify-session.service.d.ts +17 -0
- package/dist/services/billing/webhook.service.d.ts +8 -0
- package/dist/services/bostadsmerit/calculator.d.ts +51 -0
- package/dist/services/bostadsmerit/couple-calculator.d.ts +46 -0
- package/dist/services/bostadsmerit/tracker.service.d.ts +45 -0
- package/dist/services/chat-access/unlock-chat.service.d.ts +62 -0
- package/dist/services/conversations/upsert-conversation.d.ts +11 -0
- package/dist/services/email-jobs/email-job-sender.d.ts +7 -0
- package/dist/services/email-jobs/email-job.service.d.ts +67 -0
- package/dist/services/geo/bevakning-matching.service.d.ts +67 -0
- package/dist/services/geo/geo-listings.service.d.ts +38 -0
- package/dist/services/geo/geo.service.d.ts +233 -0
- package/dist/services/geo/geocode.service.d.ts +16 -0
- package/dist/services/geo/market-insights-by-coords.service.d.ts +67 -0
- package/dist/services/geo/market-insights.service.d.ts +44 -0
- package/dist/services/geo/market-overview.service.d.ts +42 -0
- package/dist/services/homii/image.d.ts +24 -0
- package/dist/services/homii/index.d.ts +12 -0
- package/dist/services/homii/location.d.ts +32 -0
- package/dist/services/homii/mapper.d.ts +41 -0
- package/dist/services/homii/types.d.ts +91 -0
- package/dist/services/leads/constants.d.ts +32 -0
- package/dist/services/leads/generate-leads.service.d.ts +38 -0
- package/dist/services/leads/matching.service.d.ts +55 -0
- package/dist/services/leads/tier.service.d.ts +6 -0
- package/dist/services/leads/types.d.ts +27 -0
- package/dist/services/listings/seo.service.d.ts +57 -0
- package/dist/services/listings/status.d.ts +37 -0
- package/dist/services/mejl/client.d.ts +38 -0
- package/dist/services/mrkoll/client.d.ts +95 -0
- package/dist/services/mrkoll/import.d.ts +38 -0
- package/dist/services/mrkoll/match.d.ts +35 -0
- package/dist/services/notifications/bibi-projects.d.ts +43 -0
- package/dist/services/notifications/bibi.d.ts +229 -0
- package/dist/services/profiles/bankid-verify.d.ts +23 -0
- package/dist/services/realtime.d.ts +14 -0
- package/dist/services/references/history-linker.d.ts +19 -0
- package/dist/services/tenant-boost/constants.d.ts +120 -0
- package/dist/services/tenant-boost/tenant-boost.service.d.ts +59 -0
- package/package.json +29 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Admin system logs routes.
|
|
3
|
+
*
|
|
4
|
+
* Provides endpoints to query and insert system log entries.
|
|
5
|
+
* All routes are protected by authMiddleware + adminMiddleware.
|
|
6
|
+
*/
|
|
7
|
+
import { OpenAPIHono } from "@hono/zod-openapi";
|
|
8
|
+
import type { AppBindings } from "../app";
|
|
9
|
+
declare const app: OpenAPIHono<AppBindings, {}, "/">;
|
|
10
|
+
export { app as adminSystemLogsApp };
|
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Admin user management routes.
|
|
3
|
+
*
|
|
4
|
+
* Provides endpoints for listing/searching users (for impersonation, moderation, etc.).
|
|
5
|
+
* All routes are protected by authMiddleware + adminMiddleware.
|
|
6
|
+
*/
|
|
7
|
+
import { OpenAPIHono } from "@hono/zod-openapi";
|
|
8
|
+
import type { AppBindings } from "../app";
|
|
9
|
+
export declare const adminUsersApp: OpenAPIHono<AppBindings, {
|
|
10
|
+
"/admin/users": {
|
|
11
|
+
$get: {
|
|
12
|
+
input: {
|
|
13
|
+
query: {
|
|
14
|
+
sort?: "email" | "displayName" | "createdAt" | undefined;
|
|
15
|
+
limit?: number | undefined;
|
|
16
|
+
role?: "company" | "tenant" | "landlord" | "all" | "admin" | undefined;
|
|
17
|
+
order?: "asc" | "desc" | undefined;
|
|
18
|
+
verification?: "pending" | "all" | "approved" | "unverified" | undefined;
|
|
19
|
+
offset?: number | undefined;
|
|
20
|
+
q?: string | undefined;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
output: {
|
|
24
|
+
total: number;
|
|
25
|
+
users: {
|
|
26
|
+
email: string | null;
|
|
27
|
+
id: string;
|
|
28
|
+
personnummer: string | null;
|
|
29
|
+
displayName: string;
|
|
30
|
+
fullName: string | null;
|
|
31
|
+
firstName: string | null;
|
|
32
|
+
phoneNumber: string | null;
|
|
33
|
+
emailVerified: boolean;
|
|
34
|
+
phoneVerified: boolean;
|
|
35
|
+
address: string | null;
|
|
36
|
+
profilePictureUrl: string | null;
|
|
37
|
+
businessType: string | null;
|
|
38
|
+
isLandlord: boolean;
|
|
39
|
+
createdAt: string;
|
|
40
|
+
authUserId: string | null;
|
|
41
|
+
idVerificationStatus: string | null;
|
|
42
|
+
companyName: string | null;
|
|
43
|
+
isAdmin: boolean;
|
|
44
|
+
listingCount: number;
|
|
45
|
+
propertyCount: number;
|
|
46
|
+
}[];
|
|
47
|
+
};
|
|
48
|
+
outputFormat: "json";
|
|
49
|
+
status: 200;
|
|
50
|
+
} | {
|
|
51
|
+
input: {
|
|
52
|
+
query: {
|
|
53
|
+
sort?: "email" | "displayName" | "createdAt" | undefined;
|
|
54
|
+
limit?: number | undefined;
|
|
55
|
+
role?: "company" | "tenant" | "landlord" | "all" | "admin" | undefined;
|
|
56
|
+
order?: "asc" | "desc" | undefined;
|
|
57
|
+
verification?: "pending" | "all" | "approved" | "unverified" | undefined;
|
|
58
|
+
offset?: number | undefined;
|
|
59
|
+
q?: string | undefined;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
output: {
|
|
63
|
+
error: string;
|
|
64
|
+
};
|
|
65
|
+
outputFormat: "json";
|
|
66
|
+
status: 401;
|
|
67
|
+
} | {
|
|
68
|
+
input: {
|
|
69
|
+
query: {
|
|
70
|
+
sort?: "email" | "displayName" | "createdAt" | undefined;
|
|
71
|
+
limit?: number | undefined;
|
|
72
|
+
role?: "company" | "tenant" | "landlord" | "all" | "admin" | undefined;
|
|
73
|
+
order?: "asc" | "desc" | undefined;
|
|
74
|
+
verification?: "pending" | "all" | "approved" | "unverified" | undefined;
|
|
75
|
+
offset?: number | undefined;
|
|
76
|
+
q?: string | undefined;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
output: {
|
|
80
|
+
error: string;
|
|
81
|
+
};
|
|
82
|
+
outputFormat: "json";
|
|
83
|
+
status: 403;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
} & {
|
|
87
|
+
"/admin/users/:id/reveal-allowance": {
|
|
88
|
+
$get: {
|
|
89
|
+
input: {
|
|
90
|
+
param: {
|
|
91
|
+
id: string;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
output: {
|
|
95
|
+
limit: number;
|
|
96
|
+
used: number;
|
|
97
|
+
remaining: number;
|
|
98
|
+
isOverride: boolean;
|
|
99
|
+
globalDefault: number;
|
|
100
|
+
};
|
|
101
|
+
outputFormat: "json";
|
|
102
|
+
status: 200;
|
|
103
|
+
} | {
|
|
104
|
+
input: {
|
|
105
|
+
param: {
|
|
106
|
+
id: string;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
output: {
|
|
110
|
+
error: string;
|
|
111
|
+
};
|
|
112
|
+
outputFormat: "json";
|
|
113
|
+
status: 404;
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
} & {
|
|
117
|
+
"/admin/users/:id/reveal-allowance": {
|
|
118
|
+
$put: {
|
|
119
|
+
input: {
|
|
120
|
+
param: {
|
|
121
|
+
id: string;
|
|
122
|
+
};
|
|
123
|
+
} & {
|
|
124
|
+
json: {
|
|
125
|
+
limit: number | null;
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
output: {
|
|
129
|
+
error: string;
|
|
130
|
+
};
|
|
131
|
+
outputFormat: "json";
|
|
132
|
+
status: 404;
|
|
133
|
+
} | {
|
|
134
|
+
input: {
|
|
135
|
+
param: {
|
|
136
|
+
id: string;
|
|
137
|
+
};
|
|
138
|
+
} & {
|
|
139
|
+
json: {
|
|
140
|
+
limit: number | null;
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
output: {
|
|
144
|
+
limit: number;
|
|
145
|
+
used: number;
|
|
146
|
+
remaining: number;
|
|
147
|
+
isOverride: boolean;
|
|
148
|
+
globalDefault: number;
|
|
149
|
+
};
|
|
150
|
+
outputFormat: "json";
|
|
151
|
+
status: 200;
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
} & {
|
|
155
|
+
"/admin/users/send-verification-reminder": {
|
|
156
|
+
$post: {
|
|
157
|
+
input: {};
|
|
158
|
+
output: {
|
|
159
|
+
error: string;
|
|
160
|
+
};
|
|
161
|
+
outputFormat: "json";
|
|
162
|
+
status: 401;
|
|
163
|
+
} | {
|
|
164
|
+
input: {};
|
|
165
|
+
output: {
|
|
166
|
+
error: string;
|
|
167
|
+
};
|
|
168
|
+
outputFormat: "json";
|
|
169
|
+
status: 403;
|
|
170
|
+
} | {
|
|
171
|
+
input: {};
|
|
172
|
+
output: {
|
|
173
|
+
sent: number;
|
|
174
|
+
total: number;
|
|
175
|
+
failed: number;
|
|
176
|
+
skipped: number;
|
|
177
|
+
};
|
|
178
|
+
outputFormat: "json";
|
|
179
|
+
status: 200;
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
} & {
|
|
183
|
+
"/admin/users/:id": {
|
|
184
|
+
$get: {
|
|
185
|
+
input: {
|
|
186
|
+
param: {
|
|
187
|
+
id: string;
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
output: {
|
|
191
|
+
error: string;
|
|
192
|
+
};
|
|
193
|
+
outputFormat: "json";
|
|
194
|
+
status: 404;
|
|
195
|
+
} | {
|
|
196
|
+
input: {
|
|
197
|
+
param: {
|
|
198
|
+
id: string;
|
|
199
|
+
};
|
|
200
|
+
};
|
|
201
|
+
output: {
|
|
202
|
+
title: string | null;
|
|
203
|
+
email: string | null;
|
|
204
|
+
id: string;
|
|
205
|
+
personnummer: string | null;
|
|
206
|
+
displayName: string;
|
|
207
|
+
fullName: string | null;
|
|
208
|
+
firstName: string | null;
|
|
209
|
+
phoneNumber: string | null;
|
|
210
|
+
emailVerified: boolean;
|
|
211
|
+
phoneVerified: boolean;
|
|
212
|
+
address: string | null;
|
|
213
|
+
about: string | null;
|
|
214
|
+
profilePictureUrl: string | null;
|
|
215
|
+
monthlyIncome: number | null;
|
|
216
|
+
employmentStatus: string | null;
|
|
217
|
+
businessType: string | null;
|
|
218
|
+
isLandlord: boolean;
|
|
219
|
+
bostadsmeritScore: number;
|
|
220
|
+
tenantProfileStatus: string;
|
|
221
|
+
accountStatus: string;
|
|
222
|
+
isSuspicious: boolean;
|
|
223
|
+
lastLoginAt: string | null;
|
|
224
|
+
createdAt: string;
|
|
225
|
+
updatedAt: string;
|
|
226
|
+
authUserId: string | null;
|
|
227
|
+
authProvider: string | null;
|
|
228
|
+
idVerificationStatus: string | null;
|
|
229
|
+
idVerifiedAt: string | null;
|
|
230
|
+
isBoosted: boolean;
|
|
231
|
+
boostExpiresAt: string | null;
|
|
232
|
+
boostStripeSubscriptionId: string | null;
|
|
233
|
+
companyName: string | null;
|
|
234
|
+
isAdmin: boolean;
|
|
235
|
+
documents: {
|
|
236
|
+
status: string;
|
|
237
|
+
id: string;
|
|
238
|
+
fileName: string;
|
|
239
|
+
category: string;
|
|
240
|
+
uploadedAt: string;
|
|
241
|
+
}[];
|
|
242
|
+
listingCount: number;
|
|
243
|
+
applicationCount: number;
|
|
244
|
+
propertyCount: number;
|
|
245
|
+
recentApplications: {
|
|
246
|
+
status: string;
|
|
247
|
+
id: string;
|
|
248
|
+
createdAt: string;
|
|
249
|
+
adminApproved: boolean;
|
|
250
|
+
reminderSentAt: string | null;
|
|
251
|
+
propertyStreet: string | null;
|
|
252
|
+
propertyCity: string | null;
|
|
253
|
+
propertyRent: number | null;
|
|
254
|
+
}[];
|
|
255
|
+
revealAllowance: {
|
|
256
|
+
limit: number;
|
|
257
|
+
used: number;
|
|
258
|
+
remaining: number;
|
|
259
|
+
isOverride: boolean;
|
|
260
|
+
};
|
|
261
|
+
};
|
|
262
|
+
outputFormat: "json";
|
|
263
|
+
status: 200;
|
|
264
|
+
};
|
|
265
|
+
};
|
|
266
|
+
} & {
|
|
267
|
+
"/admin/users/:id": {
|
|
268
|
+
$delete: {
|
|
269
|
+
input: {
|
|
270
|
+
param: {
|
|
271
|
+
id: string;
|
|
272
|
+
};
|
|
273
|
+
};
|
|
274
|
+
output: {
|
|
275
|
+
error: string;
|
|
276
|
+
};
|
|
277
|
+
outputFormat: "json";
|
|
278
|
+
status: 404;
|
|
279
|
+
} | {
|
|
280
|
+
input: {
|
|
281
|
+
param: {
|
|
282
|
+
id: string;
|
|
283
|
+
};
|
|
284
|
+
};
|
|
285
|
+
output: {
|
|
286
|
+
summary: {
|
|
287
|
+
properties: number;
|
|
288
|
+
documents: number;
|
|
289
|
+
listings: number;
|
|
290
|
+
r2Files: number;
|
|
291
|
+
authRecordDeleted: boolean;
|
|
292
|
+
};
|
|
293
|
+
deleted: boolean;
|
|
294
|
+
};
|
|
295
|
+
outputFormat: "json";
|
|
296
|
+
status: 200;
|
|
297
|
+
};
|
|
298
|
+
};
|
|
299
|
+
}, "/">;
|
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Admin webhook subscription routes.
|
|
3
|
+
*
|
|
4
|
+
* CRUD for managing webhook subscriptions + test endpoint.
|
|
5
|
+
* Requires either admin session OR BOFRID_API_KEY.
|
|
6
|
+
*/
|
|
7
|
+
import { OpenAPIHono } from "@hono/zod-openapi";
|
|
8
|
+
import type { AppBindings } from "../app";
|
|
9
|
+
export declare const adminWebhookSubscriptionsApp: OpenAPIHono<AppBindings, {
|
|
10
|
+
"/admin/webhook-events": {
|
|
11
|
+
$get: {
|
|
12
|
+
input: {};
|
|
13
|
+
output: {
|
|
14
|
+
description: string;
|
|
15
|
+
key: string;
|
|
16
|
+
}[];
|
|
17
|
+
outputFormat: "json";
|
|
18
|
+
status: 200;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
} & {
|
|
22
|
+
"/admin/webhook-subscriptions": {
|
|
23
|
+
$get: {
|
|
24
|
+
input: {};
|
|
25
|
+
output: {
|
|
26
|
+
name: string;
|
|
27
|
+
url: string;
|
|
28
|
+
id: string;
|
|
29
|
+
createdAt: string;
|
|
30
|
+
updatedAt: string;
|
|
31
|
+
isActive: boolean;
|
|
32
|
+
createdBy: string | null;
|
|
33
|
+
events: string[];
|
|
34
|
+
signingSecret: string | null;
|
|
35
|
+
customHeaders: {
|
|
36
|
+
[x: string]: string;
|
|
37
|
+
} | null;
|
|
38
|
+
}[];
|
|
39
|
+
outputFormat: "json";
|
|
40
|
+
status: 200;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
} & {
|
|
44
|
+
"/admin/webhook-subscriptions": {
|
|
45
|
+
$post: {
|
|
46
|
+
input: {
|
|
47
|
+
json: {
|
|
48
|
+
name: string;
|
|
49
|
+
url: string;
|
|
50
|
+
events: string[];
|
|
51
|
+
isActive?: boolean | undefined;
|
|
52
|
+
signingSecret?: string | null | undefined;
|
|
53
|
+
customHeaders?: Record<string, string> | null | undefined;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
output: {
|
|
57
|
+
name: string;
|
|
58
|
+
url: string;
|
|
59
|
+
id: string;
|
|
60
|
+
createdAt: string;
|
|
61
|
+
updatedAt: string;
|
|
62
|
+
isActive: boolean;
|
|
63
|
+
createdBy: string | null;
|
|
64
|
+
events: string[];
|
|
65
|
+
signingSecret: string | null;
|
|
66
|
+
customHeaders: {
|
|
67
|
+
[x: string]: string;
|
|
68
|
+
} | null;
|
|
69
|
+
};
|
|
70
|
+
outputFormat: "json";
|
|
71
|
+
status: 201;
|
|
72
|
+
} | {
|
|
73
|
+
input: {
|
|
74
|
+
json: {
|
|
75
|
+
name: string;
|
|
76
|
+
url: string;
|
|
77
|
+
events: string[];
|
|
78
|
+
isActive?: boolean | undefined;
|
|
79
|
+
signingSecret?: string | null | undefined;
|
|
80
|
+
customHeaders?: Record<string, string> | null | undefined;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
output: {
|
|
84
|
+
error: string;
|
|
85
|
+
};
|
|
86
|
+
outputFormat: "json";
|
|
87
|
+
status: 400;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
} & {
|
|
91
|
+
"/admin/webhook-subscriptions/:id": {
|
|
92
|
+
$patch: {
|
|
93
|
+
input: {
|
|
94
|
+
param: {
|
|
95
|
+
id: string;
|
|
96
|
+
};
|
|
97
|
+
} & {
|
|
98
|
+
json: {
|
|
99
|
+
name?: string | undefined;
|
|
100
|
+
url?: string | undefined;
|
|
101
|
+
isActive?: boolean | undefined;
|
|
102
|
+
events?: string[] | undefined;
|
|
103
|
+
signingSecret?: string | null | undefined;
|
|
104
|
+
customHeaders?: Record<string, string> | null | undefined;
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
output: {
|
|
108
|
+
name: string;
|
|
109
|
+
url: string;
|
|
110
|
+
id: string;
|
|
111
|
+
createdAt: string;
|
|
112
|
+
updatedAt: string;
|
|
113
|
+
isActive: boolean;
|
|
114
|
+
createdBy: string | null;
|
|
115
|
+
events: string[];
|
|
116
|
+
signingSecret: string | null;
|
|
117
|
+
customHeaders: {
|
|
118
|
+
[x: string]: string;
|
|
119
|
+
} | null;
|
|
120
|
+
};
|
|
121
|
+
outputFormat: "json";
|
|
122
|
+
status: 200;
|
|
123
|
+
} | {
|
|
124
|
+
input: {
|
|
125
|
+
param: {
|
|
126
|
+
id: string;
|
|
127
|
+
};
|
|
128
|
+
} & {
|
|
129
|
+
json: {
|
|
130
|
+
name?: string | undefined;
|
|
131
|
+
url?: string | undefined;
|
|
132
|
+
isActive?: boolean | undefined;
|
|
133
|
+
events?: string[] | undefined;
|
|
134
|
+
signingSecret?: string | null | undefined;
|
|
135
|
+
customHeaders?: Record<string, string> | null | undefined;
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
output: {
|
|
139
|
+
error: string;
|
|
140
|
+
};
|
|
141
|
+
outputFormat: "json";
|
|
142
|
+
status: 404;
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
} & {
|
|
146
|
+
"/admin/webhook-subscriptions/:id": {
|
|
147
|
+
$delete: {
|
|
148
|
+
input: {
|
|
149
|
+
param: {
|
|
150
|
+
id: string;
|
|
151
|
+
};
|
|
152
|
+
};
|
|
153
|
+
output: {
|
|
154
|
+
error: string;
|
|
155
|
+
};
|
|
156
|
+
outputFormat: "json";
|
|
157
|
+
status: 404;
|
|
158
|
+
} | {
|
|
159
|
+
input: {
|
|
160
|
+
param: {
|
|
161
|
+
id: string;
|
|
162
|
+
};
|
|
163
|
+
};
|
|
164
|
+
output: {
|
|
165
|
+
success: boolean;
|
|
166
|
+
};
|
|
167
|
+
outputFormat: "json";
|
|
168
|
+
status: 200;
|
|
169
|
+
};
|
|
170
|
+
};
|
|
171
|
+
} & {
|
|
172
|
+
"/admin/webhook-subscriptions/:id/test": {
|
|
173
|
+
$post: {
|
|
174
|
+
input: {
|
|
175
|
+
param: {
|
|
176
|
+
id: string;
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
output: {
|
|
180
|
+
error: string;
|
|
181
|
+
};
|
|
182
|
+
outputFormat: "json";
|
|
183
|
+
status: 404;
|
|
184
|
+
} | {
|
|
185
|
+
input: {
|
|
186
|
+
param: {
|
|
187
|
+
id: string;
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
output: {
|
|
191
|
+
error: string | null;
|
|
192
|
+
status: number | null;
|
|
193
|
+
success: boolean;
|
|
194
|
+
};
|
|
195
|
+
outputFormat: "json";
|
|
196
|
+
status: 200;
|
|
197
|
+
};
|
|
198
|
+
};
|
|
199
|
+
} & {
|
|
200
|
+
"/admin/webhook-subscriptions/:id/deliveries": {
|
|
201
|
+
$get: {
|
|
202
|
+
input: {
|
|
203
|
+
param: {
|
|
204
|
+
id: string;
|
|
205
|
+
};
|
|
206
|
+
} & {
|
|
207
|
+
query: {
|
|
208
|
+
limit?: number | undefined;
|
|
209
|
+
offset?: number | undefined;
|
|
210
|
+
};
|
|
211
|
+
};
|
|
212
|
+
output: {
|
|
213
|
+
error: string;
|
|
214
|
+
};
|
|
215
|
+
outputFormat: "json";
|
|
216
|
+
status: 404;
|
|
217
|
+
} | {
|
|
218
|
+
input: {
|
|
219
|
+
param: {
|
|
220
|
+
id: string;
|
|
221
|
+
};
|
|
222
|
+
} & {
|
|
223
|
+
query: {
|
|
224
|
+
limit?: number | undefined;
|
|
225
|
+
offset?: number | undefined;
|
|
226
|
+
};
|
|
227
|
+
};
|
|
228
|
+
output: {
|
|
229
|
+
total: number;
|
|
230
|
+
logs: {
|
|
231
|
+
status: string;
|
|
232
|
+
id: string;
|
|
233
|
+
createdAt: string;
|
|
234
|
+
errorMessage: string | null;
|
|
235
|
+
subscriptionId: string;
|
|
236
|
+
event: string;
|
|
237
|
+
httpStatus: number | null;
|
|
238
|
+
durationMs: number | null;
|
|
239
|
+
}[];
|
|
240
|
+
};
|
|
241
|
+
outputFormat: "json";
|
|
242
|
+
status: 200;
|
|
243
|
+
};
|
|
244
|
+
};
|
|
245
|
+
} & {
|
|
246
|
+
"/admin/webhook-deliveries": {
|
|
247
|
+
$get: {
|
|
248
|
+
input: {
|
|
249
|
+
query: {
|
|
250
|
+
limit?: number | undefined;
|
|
251
|
+
resourceType?: string | undefined;
|
|
252
|
+
resourceId?: string | undefined;
|
|
253
|
+
offset?: number | undefined;
|
|
254
|
+
};
|
|
255
|
+
};
|
|
256
|
+
output: {
|
|
257
|
+
total: number;
|
|
258
|
+
logs: {
|
|
259
|
+
status: string;
|
|
260
|
+
id: string;
|
|
261
|
+
createdAt: string;
|
|
262
|
+
errorMessage: string | null;
|
|
263
|
+
resourceType: string | null;
|
|
264
|
+
resourceId: string | null;
|
|
265
|
+
subscriptionId: string;
|
|
266
|
+
event: string;
|
|
267
|
+
httpStatus: number | null;
|
|
268
|
+
durationMs: number | null;
|
|
269
|
+
subscriptionName: string | null;
|
|
270
|
+
}[];
|
|
271
|
+
};
|
|
272
|
+
outputFormat: "json";
|
|
273
|
+
status: 200;
|
|
274
|
+
};
|
|
275
|
+
};
|
|
276
|
+
}, "/">;
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { OpenAPIHono } from "@hono/zod-openapi";
|
|
2
|
+
import type { AppBindings } from "../app";
|
|
3
|
+
export declare const apiKeysApp: OpenAPIHono<AppBindings, {
|
|
4
|
+
"/api-keys": {
|
|
5
|
+
$get: {
|
|
6
|
+
input: {};
|
|
7
|
+
output: {
|
|
8
|
+
error: string;
|
|
9
|
+
};
|
|
10
|
+
outputFormat: "json";
|
|
11
|
+
status: 401;
|
|
12
|
+
} | {
|
|
13
|
+
input: {};
|
|
14
|
+
output: {
|
|
15
|
+
name: string;
|
|
16
|
+
id: string;
|
|
17
|
+
companyId: string | null;
|
|
18
|
+
createdAt: string;
|
|
19
|
+
expiresAt: string | null;
|
|
20
|
+
prefix: string;
|
|
21
|
+
lastUsedAt: string | null;
|
|
22
|
+
}[];
|
|
23
|
+
outputFormat: "json";
|
|
24
|
+
status: 200;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
} & {
|
|
28
|
+
"/api-keys": {
|
|
29
|
+
$post: {
|
|
30
|
+
input: {
|
|
31
|
+
json: {
|
|
32
|
+
name: string;
|
|
33
|
+
companyId?: string | undefined;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
output: {
|
|
37
|
+
error: string;
|
|
38
|
+
};
|
|
39
|
+
outputFormat: "json";
|
|
40
|
+
status: 401;
|
|
41
|
+
} | {
|
|
42
|
+
input: {
|
|
43
|
+
json: {
|
|
44
|
+
name: string;
|
|
45
|
+
companyId?: string | undefined;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
output: {
|
|
49
|
+
error: string;
|
|
50
|
+
};
|
|
51
|
+
outputFormat: "json";
|
|
52
|
+
status: 400;
|
|
53
|
+
} | {
|
|
54
|
+
input: {
|
|
55
|
+
json: {
|
|
56
|
+
name: string;
|
|
57
|
+
companyId?: string | undefined;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
output: {
|
|
61
|
+
error: string;
|
|
62
|
+
};
|
|
63
|
+
outputFormat: "json";
|
|
64
|
+
status: 403;
|
|
65
|
+
} | {
|
|
66
|
+
input: {
|
|
67
|
+
json: {
|
|
68
|
+
name: string;
|
|
69
|
+
companyId?: string | undefined;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
output: {
|
|
73
|
+
name: string;
|
|
74
|
+
id: string;
|
|
75
|
+
companyId: string | null;
|
|
76
|
+
createdAt: string;
|
|
77
|
+
expiresAt: string | null;
|
|
78
|
+
prefix: string;
|
|
79
|
+
lastUsedAt: string | null;
|
|
80
|
+
rawKey: string;
|
|
81
|
+
};
|
|
82
|
+
outputFormat: "json";
|
|
83
|
+
status: 201;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
} & {
|
|
87
|
+
"/api-keys/:id": {
|
|
88
|
+
$delete: {
|
|
89
|
+
input: {
|
|
90
|
+
param: {
|
|
91
|
+
id: string;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
output: {
|
|
95
|
+
error: string;
|
|
96
|
+
};
|
|
97
|
+
outputFormat: "json";
|
|
98
|
+
status: 401;
|
|
99
|
+
} | {
|
|
100
|
+
input: {
|
|
101
|
+
param: {
|
|
102
|
+
id: string;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
output: {
|
|
106
|
+
error: string;
|
|
107
|
+
};
|
|
108
|
+
outputFormat: "json";
|
|
109
|
+
status: 404;
|
|
110
|
+
} | {
|
|
111
|
+
input: {
|
|
112
|
+
param: {
|
|
113
|
+
id: string;
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
output: {
|
|
117
|
+
success: boolean;
|
|
118
|
+
};
|
|
119
|
+
outputFormat: "json";
|
|
120
|
+
status: 200;
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
}, "/">;
|