@emeryld/rrroutes-openapi 2.3.1 → 2.3.3

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 (67) hide show
  1. package/README.md +21 -10
  2. package/dist/docs/LeafDocsPage.d.ts +3 -23
  3. package/dist/docs/docs.d.ts +4 -7
  4. package/dist/docs/schemaIntrospection.d.ts +4 -13
  5. package/dist/docs/serializer.d.ts +5 -19
  6. package/dist/index.cjs +468 -670
  7. package/dist/index.cjs.map +1 -1
  8. package/dist/index.d.ts +30 -105
  9. package/dist/index.mjs +471 -670
  10. package/dist/index.mjs.map +1 -1
  11. package/dist/public/assets/docs.css +1 -1
  12. package/dist/public/assets/docs.js +260 -21
  13. package/dist/web/app.d.ts +1 -8
  14. package/dist/web/main.d.ts +1 -1
  15. package/dist/web/utils/grouping.d.ts +2 -8
  16. package/dist/web/utils/security.d.ts +21 -0
  17. package/dist/web/utils/types.d.ts +17 -0
  18. package/dist/web/v2/AppShell.d.ts +7 -0
  19. package/dist/web/v2/components/JsonInput.d.ts +10 -0
  20. package/dist/web/v2/components/JsonViewer.d.ts +12 -0
  21. package/dist/web/v2/components/MethodBadge.d.ts +4 -0
  22. package/dist/web/v2/components/New/HttpMethodChip.d.ts +7 -0
  23. package/dist/web/v2/components/New/ListToolBar.d.ts +11 -0
  24. package/dist/web/v2/components/New/MethodFiltersChips.d.ts +7 -0
  25. package/dist/web/v2/components/New/RequestStatusChip.d.ts +6 -0
  26. package/dist/web/v2/components/New/SplitPageLayout.d.ts +7 -0
  27. package/dist/web/v2/components/New/StabilityChip.d.ts +7 -0
  28. package/dist/web/v2/components/New/StatusRangeFilter.d.ts +8 -0
  29. package/dist/web/v2/components/RecordItem.d.ts +34 -0
  30. package/dist/web/v2/components/ResizableSidePanel.d.ts +12 -0
  31. package/dist/web/v2/components/SchemaTable.d.ts +5 -0
  32. package/dist/web/v2/components/SectionHeader.d.ts +9 -0
  33. package/dist/web/v2/endpoints/EndpointDetailsPanel.d.ts +5 -0
  34. package/dist/web/v2/endpoints/EndpointList.d.ts +12 -0
  35. package/dist/web/v2/endpoints/EndpointsPage.d.ts +4 -0
  36. package/dist/web/v2/endpoints/endpoints.utils.d.ts +3 -0
  37. package/dist/web/v2/stores/clientStore.d.ts +48 -0
  38. package/dist/web/v2/theme.d.ts +21 -0
  39. package/dist/web/v2/types/types.base.d.ts +30 -0
  40. package/dist/web/v2/types/types.cacheLog.d.ts +165 -0
  41. package/dist/web/v2/types/types.endpoint.d.ts +326 -0
  42. package/dist/web/v2/types/types.log.d.ts +119 -0
  43. package/dist/web/v2/types/types.preset.d.ts +251 -0
  44. package/dist/web/v2/types/types.requestLog.d.ts +264 -0
  45. package/package.json +16 -5
  46. package/dist/docs/presets.d.ts +0 -14
  47. package/dist/web/components/Analytics.d.ts +0 -68
  48. package/dist/web/components/CopyablePre.d.ts +0 -7
  49. package/dist/web/components/EndpointCard.d.ts +0 -10
  50. package/dist/web/components/Filters.d.ts +0 -9
  51. package/dist/web/components/FiltersBar.d.ts +0 -25
  52. package/dist/web/components/HelperEnumInput.d.ts +0 -11
  53. package/dist/web/components/HistoryView.d.ts +0 -7
  54. package/dist/web/components/LogsView.d.ts +0 -1
  55. package/dist/web/components/PlaygroundOverlay.d.ts +0 -94
  56. package/dist/web/components/PresetsView.d.ts +0 -15
  57. package/dist/web/components/RequestLogs.d.ts +0 -10
  58. package/dist/web/components/SchemaTable.d.ts +0 -4
  59. package/dist/web/components/ui/Button.d.ts +0 -8
  60. package/dist/web/components/ui/Clickable.d.ts +0 -7
  61. package/dist/web/components/ui/Tag.d.ts +0 -9
  62. package/dist/web/components/ui/Text.d.ts +0 -8
  63. package/dist/web/components/ui/index.d.ts +0 -4
  64. package/dist/web/historyStore.d.ts +0 -68
  65. package/dist/web/logsStore.d.ts +0 -51
  66. package/dist/web/types.d.ts +0 -5
  67. package/dist/webhooks.d.ts +0 -181
@@ -0,0 +1,251 @@
1
+ import z from 'zod';
2
+ export declare const presetLeaves: readonly [{
3
+ readonly method: "get";
4
+ readonly path: "presets";
5
+ readonly cfg: Readonly<{
6
+ description?: string | undefined;
7
+ tags?: string[] | undefined;
8
+ deprecated?: boolean | undefined;
9
+ queryExtensionSchema: undefined;
10
+ bodyFiles?: import("@emeryld/rrroutes-contract").FileField[] | undefined;
11
+ feed: true;
12
+ summary?: string | undefined;
13
+ docsGroup?: string | undefined;
14
+ stability?: "experimental" | "beta" | "stable" | "deprecated" | undefined;
15
+ docsHidden?: boolean | undefined;
16
+ docsMeta?: Record<string, unknown> | undefined;
17
+ bodySchema: import("@emeryld/rrroutes-contract").RouteSchema<unknown, unknown> | undefined;
18
+ querySchema: undefined;
19
+ paramsSchema: undefined;
20
+ outputSchema: import("@emeryld/rrroutes-contract").RouteSchema<{
21
+ out: {
22
+ id: string;
23
+ name: string;
24
+ createdAt: number;
25
+ updatedAt: number;
26
+ operations: {
27
+ method: "get" | "post" | "put" | "patch" | "delete";
28
+ path: string;
29
+ endpointId?: string | undefined;
30
+ body?: z.core.util.JSONType | undefined;
31
+ extraHeaders?: Record<string, any> | undefined;
32
+ query?: Record<string, any> | undefined;
33
+ }[];
34
+ description?: string | undefined;
35
+ groupId?: string | undefined;
36
+ tags?: string[] | undefined;
37
+ };
38
+ meta: {
39
+ totalCount?: number | undefined;
40
+ };
41
+ }, {
42
+ out: {
43
+ id: string;
44
+ name: string;
45
+ createdAt: number;
46
+ updatedAt: number;
47
+ operations: {
48
+ method: "get" | "post" | "put" | "patch" | "delete";
49
+ path: string;
50
+ endpointId?: string | undefined;
51
+ body?: z.core.util.JSONType | undefined;
52
+ extraHeaders?: Record<string, any> | undefined;
53
+ query?: Record<string, any> | undefined;
54
+ }[];
55
+ description?: string | undefined;
56
+ groupId?: string | undefined;
57
+ tags?: string[] | undefined;
58
+ };
59
+ meta: {
60
+ totalCount?: number | undefined;
61
+ };
62
+ }>;
63
+ outputMetaSchema: import("@emeryld/rrroutes-contract").RouteSchema<{
64
+ totalCount?: number | undefined;
65
+ }, {
66
+ totalCount?: number | undefined;
67
+ }>;
68
+ }>;
69
+ }, {
70
+ readonly method: "post";
71
+ readonly path: "presets";
72
+ readonly cfg: Readonly<{
73
+ description?: string | undefined;
74
+ tags?: string[] | undefined;
75
+ deprecated?: boolean | undefined;
76
+ queryExtensionSchema: undefined;
77
+ bodyFiles?: import("@emeryld/rrroutes-contract").FileField[] | undefined;
78
+ feed?: boolean | undefined;
79
+ summary?: string | undefined;
80
+ docsGroup?: string | undefined;
81
+ stability?: "experimental" | "beta" | "stable" | "deprecated" | undefined;
82
+ docsHidden?: boolean | undefined;
83
+ docsMeta?: Record<string, unknown> | undefined;
84
+ bodySchema: import("@emeryld/rrroutes-contract").RouteSchema<{
85
+ id: string;
86
+ name: string;
87
+ createdAt: number;
88
+ updatedAt: number;
89
+ operations: {
90
+ method: "get" | "post" | "put" | "patch" | "delete";
91
+ path: string;
92
+ endpointId?: string | undefined;
93
+ body?: z.core.util.JSONType | undefined;
94
+ extraHeaders?: Record<string, any> | undefined;
95
+ query?: Record<string, any> | undefined;
96
+ }[];
97
+ description?: string | undefined;
98
+ groupId?: string | undefined;
99
+ tags?: string[] | undefined;
100
+ }, {
101
+ id: string;
102
+ name: string;
103
+ createdAt: number;
104
+ updatedAt: number;
105
+ operations: {
106
+ method: "get" | "post" | "put" | "patch" | "delete";
107
+ path: string;
108
+ endpointId?: string | undefined;
109
+ body?: z.core.util.JSONType | undefined;
110
+ extraHeaders?: Record<string, any> | undefined;
111
+ query?: Record<string, any> | undefined;
112
+ }[];
113
+ description?: string | undefined;
114
+ groupId?: string | undefined;
115
+ tags?: string[] | undefined;
116
+ }>;
117
+ querySchema: undefined;
118
+ paramsSchema: undefined;
119
+ outputSchema: import("@emeryld/rrroutes-contract").RouteSchema<{
120
+ out: {
121
+ id: string;
122
+ name: string;
123
+ createdAt: number;
124
+ updatedAt: number;
125
+ operations: {
126
+ method: "get" | "post" | "put" | "patch" | "delete";
127
+ path: string;
128
+ endpointId?: string | undefined;
129
+ body?: z.core.util.JSONType | undefined;
130
+ extraHeaders?: Record<string, any> | undefined;
131
+ query?: Record<string, any> | undefined;
132
+ }[];
133
+ description?: string | undefined;
134
+ groupId?: string | undefined;
135
+ tags?: string[] | undefined;
136
+ };
137
+ meta?: string | undefined;
138
+ }, {
139
+ out: {
140
+ id: string;
141
+ name: string;
142
+ createdAt: number;
143
+ updatedAt: number;
144
+ operations: {
145
+ method: "get" | "post" | "put" | "patch" | "delete";
146
+ path: string;
147
+ endpointId?: string | undefined;
148
+ body?: z.core.util.JSONType | undefined;
149
+ extraHeaders?: Record<string, any> | undefined;
150
+ query?: Record<string, any> | undefined;
151
+ }[];
152
+ description?: string | undefined;
153
+ groupId?: string | undefined;
154
+ tags?: string[] | undefined;
155
+ };
156
+ meta?: string | undefined;
157
+ }>;
158
+ outputMetaSchema: undefined;
159
+ }>;
160
+ }, {
161
+ readonly method: "put";
162
+ readonly path: "presets";
163
+ readonly cfg: Readonly<{
164
+ description?: string | undefined;
165
+ tags?: string[] | undefined;
166
+ deprecated?: boolean | undefined;
167
+ queryExtensionSchema: undefined;
168
+ bodyFiles?: import("@emeryld/rrroutes-contract").FileField[] | undefined;
169
+ feed?: boolean | undefined;
170
+ summary?: string | undefined;
171
+ docsGroup?: string | undefined;
172
+ stability?: "experimental" | "beta" | "stable" | "deprecated" | undefined;
173
+ docsHidden?: boolean | undefined;
174
+ docsMeta?: Record<string, unknown> | undefined;
175
+ bodySchema: import("@emeryld/rrroutes-contract").RouteSchema<{
176
+ id: string;
177
+ name: string;
178
+ createdAt: number;
179
+ updatedAt: number;
180
+ operations: {
181
+ method: "get" | "post" | "put" | "patch" | "delete";
182
+ path: string;
183
+ endpointId?: string | undefined;
184
+ body?: z.core.util.JSONType | undefined;
185
+ extraHeaders?: Record<string, any> | undefined;
186
+ query?: Record<string, any> | undefined;
187
+ }[];
188
+ description?: string | undefined;
189
+ groupId?: string | undefined;
190
+ tags?: string[] | undefined;
191
+ }, {
192
+ id: string;
193
+ name: string;
194
+ createdAt: number;
195
+ updatedAt: number;
196
+ operations: {
197
+ method: "get" | "post" | "put" | "patch" | "delete";
198
+ path: string;
199
+ endpointId?: string | undefined;
200
+ body?: z.core.util.JSONType | undefined;
201
+ extraHeaders?: Record<string, any> | undefined;
202
+ query?: Record<string, any> | undefined;
203
+ }[];
204
+ description?: string | undefined;
205
+ groupId?: string | undefined;
206
+ tags?: string[] | undefined;
207
+ }>;
208
+ querySchema: undefined;
209
+ paramsSchema: undefined;
210
+ outputSchema: import("@emeryld/rrroutes-contract").RouteSchema<{
211
+ out: {
212
+ id: string;
213
+ name: string;
214
+ createdAt: number;
215
+ updatedAt: number;
216
+ operations: {
217
+ method: "get" | "post" | "put" | "patch" | "delete";
218
+ path: string;
219
+ endpointId?: string | undefined;
220
+ body?: z.core.util.JSONType | undefined;
221
+ extraHeaders?: Record<string, any> | undefined;
222
+ query?: Record<string, any> | undefined;
223
+ }[];
224
+ description?: string | undefined;
225
+ groupId?: string | undefined;
226
+ tags?: string[] | undefined;
227
+ };
228
+ meta?: string | undefined;
229
+ }, {
230
+ out: {
231
+ id: string;
232
+ name: string;
233
+ createdAt: number;
234
+ updatedAt: number;
235
+ operations: {
236
+ method: "get" | "post" | "put" | "patch" | "delete";
237
+ path: string;
238
+ endpointId?: string | undefined;
239
+ body?: z.core.util.JSONType | undefined;
240
+ extraHeaders?: Record<string, any> | undefined;
241
+ query?: Record<string, any> | undefined;
242
+ }[];
243
+ description?: string | undefined;
244
+ groupId?: string | undefined;
245
+ tags?: string[] | undefined;
246
+ };
247
+ meta?: string | undefined;
248
+ }>;
249
+ outputMetaSchema: undefined;
250
+ }>;
251
+ }];
@@ -0,0 +1,264 @@
1
+ import z from 'zod';
2
+ export declare const requestSchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ name: z.ZodString;
5
+ description: z.ZodOptional<z.ZodString>;
6
+ groupId: z.ZodOptional<z.ZodString>;
7
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
8
+ createdAt: z.ZodNumber;
9
+ updatedAt: z.ZodNumber;
10
+ status: z.ZodNumber;
11
+ body: z.ZodOptional<z.ZodAny>;
12
+ fullUrl: z.ZodString;
13
+ path: z.ZodString;
14
+ method: z.ZodEnum<{
15
+ get: "get";
16
+ post: "post";
17
+ put: "put";
18
+ patch: "patch";
19
+ delete: "delete";
20
+ }>;
21
+ query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
22
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
23
+ output: z.ZodOptional<z.ZodAny>;
24
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
25
+ error: z.ZodOptional<z.ZodString>;
26
+ durationMs: z.ZodNumber;
27
+ }, z.core.$strip>;
28
+ export type RequestLogType = z.infer<typeof requestSchema>;
29
+ export declare const requestQuerySchema: z.ZodObject<{
30
+ beforeDate: z.ZodOptional<z.ZodString>;
31
+ afterDate: z.ZodOptional<z.ZodString>;
32
+ orderBy: z.ZodDefault<z.ZodEnum<{
33
+ timestamp: "timestamp";
34
+ duration: "duration";
35
+ level: "level";
36
+ path: "path";
37
+ }>>;
38
+ orderDirection: z.ZodDefault<z.ZodEnum<{
39
+ asc: "asc";
40
+ desc: "desc";
41
+ }>>;
42
+ searchQuery: z.ZodOptional<z.ZodString>;
43
+ groups: z.ZodOptional<z.ZodArray<z.ZodString>>;
44
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
45
+ cursor: z.ZodOptional<z.ZodString>;
46
+ methods: z.ZodDefault<z.ZodArray<z.ZodEnum<{
47
+ get: "get";
48
+ post: "post";
49
+ put: "put";
50
+ patch: "patch";
51
+ delete: "delete";
52
+ }>>>;
53
+ statuses: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
54
+ path: z.ZodOptional<z.ZodString>;
55
+ }, z.core.$strip>;
56
+ export declare const requestLogLeaves: readonly [{
57
+ readonly method: "get";
58
+ readonly path: "requests";
59
+ readonly cfg: Readonly<{
60
+ description?: string | undefined;
61
+ tags?: string[] | undefined;
62
+ deprecated?: boolean | undefined;
63
+ queryExtensionSchema: undefined;
64
+ bodyFiles?: import("@emeryld/rrroutes-contract").FileField[] | undefined;
65
+ feed: true;
66
+ summary?: string | undefined;
67
+ docsGroup?: string | undefined;
68
+ stability?: "experimental" | "beta" | "stable" | "deprecated" | undefined;
69
+ docsHidden?: boolean | undefined;
70
+ docsMeta?: Record<string, unknown> | undefined;
71
+ bodySchema: import("@emeryld/rrroutes-contract").RouteSchema<unknown, unknown> | undefined;
72
+ querySchema: import("@emeryld/rrroutes-contract").RouteSchema<{
73
+ orderBy: "timestamp" | "duration" | "level" | "path";
74
+ orderDirection: "asc" | "desc";
75
+ methods: ("get" | "post" | "put" | "patch" | "delete")[];
76
+ statuses: number[];
77
+ beforeDate?: string | undefined;
78
+ afterDate?: string | undefined;
79
+ searchQuery?: string | undefined;
80
+ groups?: string[] | undefined;
81
+ tags?: string[] | undefined;
82
+ cursor?: string | undefined;
83
+ path?: string | undefined;
84
+ }, {
85
+ beforeDate?: string | undefined;
86
+ afterDate?: string | undefined;
87
+ orderBy?: "timestamp" | "duration" | "level" | "path" | undefined;
88
+ orderDirection?: "asc" | "desc" | undefined;
89
+ searchQuery?: string | undefined;
90
+ groups?: string[] | undefined;
91
+ tags?: string[] | undefined;
92
+ cursor?: string | undefined;
93
+ methods?: ("get" | "post" | "put" | "patch" | "delete")[] | undefined;
94
+ statuses?: number[] | undefined;
95
+ path?: string | undefined;
96
+ }>;
97
+ paramsSchema: undefined;
98
+ outputSchema: import("@emeryld/rrroutes-contract").RouteSchema<{
99
+ out: {
100
+ id: string;
101
+ name: string;
102
+ createdAt: number;
103
+ updatedAt: number;
104
+ status: number;
105
+ fullUrl: string;
106
+ path: string;
107
+ method: "get" | "post" | "put" | "patch" | "delete";
108
+ durationMs: number;
109
+ description?: string | undefined;
110
+ groupId?: string | undefined;
111
+ tags?: string[] | undefined;
112
+ body?: any;
113
+ query?: Record<string, any> | undefined;
114
+ params?: Record<string, any> | undefined;
115
+ output?: any;
116
+ headers?: Record<string, any> | undefined;
117
+ error?: string | undefined;
118
+ }[];
119
+ meta: {
120
+ totalCount?: number | undefined;
121
+ };
122
+ }, {
123
+ out: {
124
+ id: string;
125
+ name: string;
126
+ createdAt: number;
127
+ updatedAt: number;
128
+ status: number;
129
+ fullUrl: string;
130
+ path: string;
131
+ method: "get" | "post" | "put" | "patch" | "delete";
132
+ durationMs: number;
133
+ description?: string | undefined;
134
+ groupId?: string | undefined;
135
+ tags?: string[] | undefined;
136
+ body?: any;
137
+ query?: Record<string, any> | undefined;
138
+ params?: Record<string, any> | undefined;
139
+ output?: any;
140
+ headers?: Record<string, any> | undefined;
141
+ error?: string | undefined;
142
+ }[];
143
+ meta: {
144
+ totalCount?: number | undefined;
145
+ };
146
+ }>;
147
+ outputMetaSchema: import("@emeryld/rrroutes-contract").RouteSchema<{
148
+ totalCount?: number | undefined;
149
+ }, {
150
+ totalCount?: number | undefined;
151
+ }>;
152
+ }>;
153
+ }, import("@emeryld/rrroutes-contract").LeafLowProfile<"get", "requests/:requestId", {
154
+ readonly description?: string | undefined;
155
+ readonly tags?: string[] | undefined;
156
+ readonly deprecated?: boolean | undefined;
157
+ readonly queryExtensionSchema: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> & import("@emeryld/rrroutes-contract").RouteSchema<unknown, unknown>;
158
+ readonly outputMetaSchema: import("@emeryld/rrroutes-contract").RouteSchema<unknown, unknown>;
159
+ readonly bodySchema: import("@emeryld/rrroutes-contract").RouteSchema<unknown, unknown> | undefined;
160
+ readonly querySchema: undefined;
161
+ readonly outputSchema: import("@emeryld/rrroutes-contract").RouteSchema<{
162
+ out: {
163
+ id: string;
164
+ name: string;
165
+ createdAt: number;
166
+ updatedAt: number;
167
+ status: number;
168
+ fullUrl: string;
169
+ path: string;
170
+ method: "get" | "post" | "put" | "patch" | "delete";
171
+ durationMs: number;
172
+ logs: {
173
+ id: string;
174
+ name: string;
175
+ createdAt: number;
176
+ updatedAt: number;
177
+ level: "error" | "info" | "warning" | "debug" | "trace";
178
+ meta: z.core.util.JSONType;
179
+ description?: string | undefined;
180
+ groupId?: string | undefined;
181
+ tags?: string[] | undefined;
182
+ }[];
183
+ caches: {
184
+ id: string;
185
+ name: string;
186
+ createdAt: number;
187
+ updatedAt: number;
188
+ operation: "delete" | "hit" | "miss" | "set";
189
+ value: any;
190
+ description?: string | undefined;
191
+ groupId?: string | undefined;
192
+ tags?: string[] | undefined;
193
+ size?: number | undefined;
194
+ }[];
195
+ description?: string | undefined;
196
+ groupId?: string | undefined;
197
+ tags?: string[] | undefined;
198
+ body?: any;
199
+ query?: Record<string, any> | undefined;
200
+ params?: Record<string, any> | undefined;
201
+ output?: any;
202
+ headers?: Record<string, any> | undefined;
203
+ error?: string | undefined;
204
+ };
205
+ meta: unknown;
206
+ }, {
207
+ out: {
208
+ id: string;
209
+ name: string;
210
+ createdAt: number;
211
+ updatedAt: number;
212
+ status: number;
213
+ fullUrl: string;
214
+ path: string;
215
+ method: "get" | "post" | "put" | "patch" | "delete";
216
+ durationMs: number;
217
+ logs: {
218
+ id: string;
219
+ name: string;
220
+ createdAt: number;
221
+ updatedAt: number;
222
+ level: "error" | "info" | "warning" | "debug" | "trace";
223
+ meta: z.core.util.JSONType;
224
+ description?: string | undefined;
225
+ groupId?: string | undefined;
226
+ tags?: string[] | undefined;
227
+ }[];
228
+ caches: {
229
+ id: string;
230
+ name: string;
231
+ createdAt: number;
232
+ updatedAt: number;
233
+ operation: "delete" | "hit" | "miss" | "set";
234
+ value: any;
235
+ description?: string | undefined;
236
+ groupId?: string | undefined;
237
+ tags?: string[] | undefined;
238
+ size?: number | undefined;
239
+ }[];
240
+ description?: string | undefined;
241
+ groupId?: string | undefined;
242
+ tags?: string[] | undefined;
243
+ body?: any;
244
+ query?: Record<string, any> | undefined;
245
+ params?: Record<string, any> | undefined;
246
+ output?: any;
247
+ headers?: Record<string, any> | undefined;
248
+ error?: string | undefined;
249
+ };
250
+ meta: unknown;
251
+ }>;
252
+ readonly bodyFiles?: import("@emeryld/rrroutes-contract").FileField[] | undefined;
253
+ readonly feed?: boolean | undefined;
254
+ readonly summary?: string | undefined;
255
+ readonly docsGroup?: string | undefined;
256
+ readonly stability?: "experimental" | "beta" | "stable" | "deprecated" | undefined;
257
+ readonly docsHidden?: boolean | undefined;
258
+ readonly docsMeta?: Record<string, unknown> | undefined;
259
+ paramsSchema: import("@emeryld/rrroutes-contract").RouteSchema<{
260
+ requestId: string;
261
+ }, {
262
+ requestId: string;
263
+ }>;
264
+ }>];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emeryld/rrroutes-openapi",
3
- "version": "2.3.1",
3
+ "version": "2.3.3",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -17,20 +17,31 @@
17
17
  "dist"
18
18
  ],
19
19
  "dependencies": {
20
- "@emeryld/rrroutes-contract": "^2.2.15",
20
+ "@emeryld/rrroutes-client": "^2.3.5",
21
+ "@emeryld/rrroutes-contract": "^2.4.14",
22
+ "@emotion/cache": "^11.14.0",
23
+ "@emotion/react": "^11.14.0",
24
+ "@emotion/styled": "^11.14.1",
25
+ "@mui/icons-material": "^7.3.6",
26
+ "@mui/material": "^7.3.6",
27
+ "@tanstack/react-query": "^5.90.11",
21
28
  "react": "^18.3.1",
22
29
  "react-dom": "^18.3.1",
23
- "zod": "^4.1.12"
30
+ "react-router-dom": "^7.10.0",
31
+ "recharts": "^3.5.1",
32
+ "socket.io-client": "^4.8.1",
33
+ "zod": "^4.1.13"
24
34
  },
25
35
  "peerDependencies": {
26
36
  "express": "^5.1.0"
27
37
  },
28
38
  "devDependencies": {
29
39
  "@jest/globals": "^30.2.0",
30
- "@types/express": "^5.0.5",
40
+ "@types/express": "^5.0.6",
31
41
  "@types/react": "^18.3.27",
32
42
  "@types/react-dom": "^18.3.7",
33
- "vite": "^6.4.1"
43
+ "vite": "^6.4.1",
44
+ "vite-plugin-terminal": "^1.3.0"
34
45
  },
35
46
  "scripts": {
36
47
  "clean": "rimraf dist && rimraf node_modules",
@@ -1,14 +0,0 @@
1
- export type SerializablePresetOperation = {
2
- method: string;
3
- path: string;
4
- body?: unknown;
5
- query?: unknown;
6
- params?: unknown;
7
- };
8
- export type SerializablePreset = {
9
- name: string;
10
- description?: string;
11
- tags: string[];
12
- docsGroup?: string;
13
- ops: SerializablePresetOperation[];
14
- };
@@ -1,68 +0,0 @@
1
- import { type ReactNode } from 'react';
2
- export type StatCard = {
3
- label: string;
4
- value: ReactNode;
5
- hint?: string;
6
- tone?: 'good' | 'warn' | 'bad';
7
- };
8
- export type ChartBarDatum = {
9
- label: string;
10
- value: number;
11
- hint?: string;
12
- tone?: 'good' | 'warn' | 'bad';
13
- };
14
- export type TimelinePoint = {
15
- value: number;
16
- label: string;
17
- isError?: boolean;
18
- status?: number;
19
- timestamp: number;
20
- };
21
- export type BoxPlotDatum = {
22
- label: string;
23
- min: number;
24
- q1: number;
25
- median: number;
26
- q3: number;
27
- max: number;
28
- sampleSize: number;
29
- };
30
- export declare function StatCards({ cards, onClick, toggleLabel, }: {
31
- cards: StatCard[];
32
- onClick?: () => void;
33
- toggleLabel?: string;
34
- }): import("react/jsx-runtime").JSX.Element;
35
- export declare function AnalyticsPanel({ stats, graphs, collapsible, defaultOpen, }: {
36
- stats: StatCard[];
37
- graphs: ReactNode;
38
- collapsible?: boolean;
39
- defaultOpen?: boolean;
40
- }): import("react/jsx-runtime").JSX.Element;
41
- export declare function GraphCard({ title, subtitle, children, empty, className, }: {
42
- title: string;
43
- subtitle?: string;
44
- children: ReactNode;
45
- empty?: boolean;
46
- className?: string;
47
- }): import("react/jsx-runtime").JSX.Element;
48
- export declare function BarChart({ data }: {
49
- data: ChartBarDatum[];
50
- }): import("react/jsx-runtime").JSX.Element;
51
- export declare function LineChart({ points, width, height, formatY, formatX, }: {
52
- points: TimelinePoint[];
53
- width?: number;
54
- height?: number;
55
- formatY?: (value: number) => string;
56
- formatX?: (timestamp: number) => string;
57
- }): import("react/jsx-runtime").JSX.Element;
58
- export declare function BoxPlotChart({ data }: {
59
- data: BoxPlotDatum[];
60
- }): import("react/jsx-runtime").JSX.Element;
61
- export declare function GraphPlaceholder(): import("react/jsx-runtime").JSX.Element;
62
- export declare function buildScaleTicks(max: number): number[];
63
- export declare function buildTimelineTicks(points: TimelinePoint[]): {
64
- index: number;
65
- timestamp: number;
66
- }[];
67
- export declare function formatMs(value: number): string;
68
- export declare function formatTime(ts: number): string;
@@ -1,7 +0,0 @@
1
- import { type ReactNode } from 'react';
2
- export declare function CopyablePre({ text, placeholder, actions, displayText, }: {
3
- text?: string;
4
- placeholder?: string;
5
- actions?: ReactNode;
6
- displayText?: string;
7
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,10 +0,0 @@
1
- import type { SerializableLeaf } from '../../docs/serializer.js';
2
- type Props = {
3
- leaf: SerializableLeaf;
4
- expanded: boolean;
5
- onToggle: () => void;
6
- onTry: () => void;
7
- onHistory: () => void;
8
- };
9
- export declare function EndpointCard({ leaf, expanded, onToggle, onTry, onHistory }: Props): import("react/jsx-runtime").JSX.Element;
10
- export {};
@@ -1,9 +0,0 @@
1
- import type { FilterState } from '../types.js';
2
- type FiltersProps = {
3
- allMethods: string[];
4
- allTags: string[];
5
- filters: FilterState;
6
- onFiltersChange: (next: FilterState) => void;
7
- };
8
- export declare function Filters({ allMethods, allTags, filters, onFiltersChange }: FiltersProps): import("react/jsx-runtime").JSX.Element;
9
- export {};