|
| 1 | +import { config } from "@/config.ts"; |
1 | 2 | import { OpenAPIRegistry, OpenApiGeneratorV3 } from "@asteasolutions/zod-to-openapi"; |
2 | 3 | import { z } from "zod"; |
3 | | -import { config } from "@/config.ts"; |
4 | 4 | import { |
5 | | - AccountSchema, |
6 | 5 | AccountCreateSchema, |
7 | | - WorkspaceSchema, |
8 | | - WorkspaceCreateSchema, |
9 | | - ProfileSchema, |
10 | | - ProfileUpdateSchema, |
11 | | - MembershipSchema, |
12 | | - MemberCreateSchema, |
13 | | - SuccessResponseSchema, |
14 | | - ErrorResponseSchema, |
15 | | - PaginationSchema, |
16 | | - PaginationQuerySchema, |
17 | | - UuidParamSchema, |
| 6 | + AccountResponseDataSchema, |
| 7 | + AccountSchema, |
| 8 | + AccountStatusUpdateSchema, |
| 9 | + // Standardized response patterns |
| 10 | + AccountsWithPaginationDataSchema, |
| 11 | + AdminMembershipQuerySchema, |
| 12 | + // Query schemas |
| 13 | + AdminPaginationQuerySchema, |
| 14 | + AdminRoleUpdateSchema, |
| 15 | + AuditLogQuerySchema, |
18 | 16 | AuditLogSchema, |
| 17 | + AuditLogStatsQuerySchema, |
19 | 18 | AuditLogStatsSchema, |
20 | | - // Parameter schemas |
21 | | - UuidParamOnlySchema, |
22 | | - WorkspaceHeaderSchema, |
23 | | - UuidParamsWithMemberSchema, |
| 19 | + AuditLogWithDetailsSchema, |
| 20 | + AuditLogsWithPaginationDataSchema, |
| 21 | + AuthTokenDataSchema, |
| 22 | + CreateWorkspaceDataSchema, |
| 23 | + ErrorResponseSchema, |
24 | 24 | // Request schemas |
25 | 25 | LoginRequestSchema, |
26 | | - SignupRequestSchema, |
| 26 | + MemberCreateSchema, |
27 | 27 | MemberRoleUpdateSchema, |
28 | | - AdminRoleUpdateSchema, |
29 | | - AccountStatusUpdateSchema, |
| 28 | + MembershipResponseDataSchema, |
| 29 | + MembershipSchema, |
| 30 | + MembershipWithDetailsSchema, |
| 31 | + MembershipsWithPaginationDataSchema, |
30 | 32 | // Response data schemas |
31 | 33 | MessageResponseDataSchema, |
32 | | - AccountResponseDataSchema, |
33 | | - WorkspaceResponseDataSchema, |
| 34 | + PaginationQuerySchema, |
| 35 | + PaginationSchema, |
34 | 36 | ProfileResponseDataSchema, |
35 | | - MembershipResponseDataSchema, |
36 | | - AuthTokenDataSchema, |
37 | | - // Complex composite schemas |
38 | | - WorkspaceMemberSchema, |
39 | | - UserWorkspaceInfoSchema, |
40 | | - WorkspaceWithMembersDataSchema, |
41 | | - WorkspaceMembersDataSchema, |
42 | | - CreateWorkspaceDataSchema, |
43 | | - UserProfileDataSchema, |
44 | | - // Query schemas |
45 | | - AdminPaginationQuerySchema, |
46 | | - AdminMembershipQuerySchema, |
47 | | - AuditLogQuerySchema, |
48 | | - AuditLogStatsQuerySchema, |
| 37 | + ProfileSchema, |
| 38 | + ProfileUpdateSchema, |
| 39 | + SignupRequestSchema, |
49 | 40 | // Simple reference schemas |
50 | 41 | SimpleAccountSchema, |
51 | 42 | SimpleWorkspaceSchema, |
52 | | - // Standardized response patterns |
53 | | - AccountsWithPaginationDataSchema, |
54 | | - WorkspacesWithPaginationDataSchema, |
| 43 | + SuccessResponseSchema, |
| 44 | + UserProfileDataSchema, |
| 45 | + UserWorkspaceInfoSchema, |
| 46 | + // Parameter schemas |
| 47 | + UuidParamOnlySchema, |
| 48 | + UuidParamSchema, |
| 49 | + UuidParamsWithMemberSchema, |
| 50 | + WorkspaceCreateSchema, |
| 51 | + WorkspaceHeaderSchema, |
| 52 | + // Complex composite schemas |
| 53 | + WorkspaceMemberSchema, |
| 54 | + WorkspaceMembersDataSchema, |
| 55 | + WorkspaceResponseDataSchema, |
| 56 | + WorkspaceSchema, |
| 57 | + WorkspaceWithMembersDataSchema, |
55 | 58 | WorkspacesListDataSchema, |
56 | | - AuditLogWithDetailsSchema, |
57 | | - AuditLogsWithPaginationDataSchema, |
58 | | - MembershipWithDetailsSchema, |
59 | | - MembershipsWithPaginationDataSchema |
| 59 | + WorkspacesWithPaginationDataSchema |
60 | 60 | } from "./openapi-schemas.ts"; |
61 | 61 |
|
62 | 62 | const registry = new OpenAPIRegistry(); |
|
0 commit comments