@emeryld/rrroutes-openapi 2.4.2 → 2.4.4

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.
@@ -32,13 +32,13 @@ export type RequestLogType = z.infer<typeof requestSchema>;
32
32
  export declare const requestQuerySchema: z.ZodObject<{
33
33
  beforeDate: z.ZodOptional<z.ZodString>;
34
34
  afterDate: z.ZodOptional<z.ZodString>;
35
- orderBy: z.ZodDefault<z.ZodEnum<{
35
+ orderBy: z.ZodOptional<z.ZodEnum<{
36
36
  timestamp: "timestamp";
37
37
  duration: "duration";
38
38
  level: "level";
39
39
  path: "path";
40
40
  }>>;
41
- orderDirection: z.ZodDefault<z.ZodEnum<{
41
+ orderDirection: z.ZodOptional<z.ZodEnum<{
42
42
  asc: "asc";
43
43
  desc: "desc";
44
44
  }>>;
@@ -47,7 +47,7 @@ export declare const requestQuerySchema: z.ZodObject<{
47
47
  groupsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
48
48
  tagsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
49
49
  tagsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
50
- methodsInclude: z.ZodDefault<z.ZodArray<z.ZodEnum<{
50
+ methodsInclude: z.ZodOptional<z.ZodArray<z.ZodEnum<{
51
51
  get: "get";
52
52
  post: "post";
53
53
  put: "put";
@@ -61,7 +61,7 @@ export declare const requestQuerySchema: z.ZodObject<{
61
61
  patch: "patch";
62
62
  delete: "delete";
63
63
  }>>>;
64
- statusesInclude: z.ZodDefault<z.ZodArray<z.ZodCoercedNumber<unknown>>>;
64
+ statusesInclude: z.ZodOptional<z.ZodArray<z.ZodCoercedNumber<unknown>>>;
65
65
  statusesExclude: z.ZodOptional<z.ZodArray<z.ZodCoercedNumber<unknown>>>;
66
66
  path: z.ZodOptional<z.ZodString>;
67
67
  endpointKeysInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -71,41 +71,253 @@ export type HistoryFilter = z.infer<typeof requestQuerySchema> & z.infer<typeof
71
71
  export declare const requestLogLeaves: readonly [{
72
72
  readonly method: "get";
73
73
  readonly path: "requests";
74
- readonly cfg: Readonly<{
75
- description?: string | undefined;
76
- tags?: string[] | undefined;
74
+ readonly cfg: Readonly<import("@emeryld/rrroutes-contract").Prettify<Omit<{}, "queryExtensionSchema" | "outputMetaSchema" | "bodySchema" | "querySchema" | "paramsSchema" | "outputSchema" | Exclude<keyof (import("@emeryld/rrroutes-contract").Prettify<Omit<C, "queryExtensionSchema" | "outputMetaSchema"> & {
75
+ queryExtensionSchema: C["queryExtensionSchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? C["queryExtensionSchema"] : undefined;
76
+ outputMetaSchema: C["outputMetaSchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? C["outputMetaSchema"] : undefined;
77
+ }> extends infer WithDefaults extends import("@emeryld/rrroutes-contract").MethodCfg ? import("@emeryld/rrroutes-contract").Prettify<import("@emeryld/rrroutes-contract").Prettify<Omit<Omit<import("@emeryld/rrroutes-contract").MethodCfg, "querySchema" | "outputSchema" | "feed">, Exclude<keyof WithDefaults, "querySchema" | "outputSchema" | "feed">> & Omit<WithDefaults, "querySchema" | "outputSchema" | "feed">> & (WithDefaults["feed"] extends true ? (WithDefaults["feed"] extends true ? {
78
+ feed: true;
79
+ } : {
80
+ feed?: boolean;
81
+ }) & import("@emeryld/rrroutes-contract").FeedQueryField<WithDefaults> & import("@emeryld/rrroutes-contract").OutputField<WithDefaults> & (WithDefaults["paramsSchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? {
82
+ paramsSchema: WithDefaults["paramsSchema"];
83
+ } : {
84
+ paramsSchema: undefined;
85
+ }) : (WithDefaults["feed"] extends true ? {
86
+ feed: true;
87
+ } : {
88
+ feed?: boolean;
89
+ }) & (WithDefaults["querySchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? {
90
+ querySchema: WithDefaults["querySchema"];
91
+ } : {
92
+ querySchema?: undefined;
93
+ }) & import("@emeryld/rrroutes-contract").OutputField<WithDefaults> & (WithDefaults["paramsSchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? {
94
+ paramsSchema: WithDefaults["paramsSchema"];
95
+ } : {
96
+ paramsSchema: undefined;
97
+ }))> : never), "outputMetaSchema" | "bodySchema" | "querySchema" | "paramsSchema" | "outputSchema">> & import("@emeryld/rrroutes-contract").Prettify<Omit<import("@emeryld/rrroutes-contract").Prettify<import("@emeryld/rrroutes-contract").Prettify<Omit<Omit<import("@emeryld/rrroutes-contract").MethodCfg, "querySchema" | "outputSchema" | "feed">, "queryExtensionSchema" | "outputMetaSchema"> & Omit<import("@emeryld/rrroutes-contract").Prettify<Omit<{
98
+ feed: true;
99
+ outputSchema: z.ZodArray<z.ZodObject<{
100
+ id: z.ZodString;
101
+ name: z.ZodString;
102
+ description: z.ZodOptional<z.ZodString>;
103
+ groupId: z.ZodOptional<z.ZodString>;
104
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
105
+ createdAt: z.ZodNumber;
106
+ updatedAt: z.ZodNumber;
107
+ status: z.ZodNumber;
108
+ body: z.ZodOptional<z.ZodAny>;
109
+ fullUrl: z.ZodString;
110
+ path: z.ZodString;
111
+ method: z.ZodEnum<{
112
+ get: "get";
113
+ post: "post";
114
+ put: "put";
115
+ patch: "patch";
116
+ delete: "delete";
117
+ }>;
118
+ query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
119
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
120
+ output: z.ZodOptional<z.ZodAny>;
121
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
122
+ error: z.ZodOptional<z.ZodString>;
123
+ durationMs: z.ZodNumber;
124
+ ip: z.ZodOptional<z.ZodString>;
125
+ userAgent: z.ZodOptional<z.ZodString>;
126
+ }, z.core.$strip>>;
127
+ querySchema: z.ZodObject<{
128
+ beforeDate: z.ZodOptional<z.ZodString>;
129
+ afterDate: z.ZodOptional<z.ZodString>;
130
+ orderBy: z.ZodOptional<z.ZodEnum<{
131
+ timestamp: "timestamp";
132
+ duration: "duration";
133
+ level: "level";
134
+ path: "path";
135
+ }>>;
136
+ orderDirection: z.ZodOptional<z.ZodEnum<{
137
+ asc: "asc";
138
+ desc: "desc";
139
+ }>>;
140
+ searchQuery: z.ZodOptional<z.ZodString>;
141
+ groupsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
142
+ groupsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
143
+ tagsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
144
+ tagsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
145
+ methodsInclude: z.ZodOptional<z.ZodArray<z.ZodEnum<{
146
+ get: "get";
147
+ post: "post";
148
+ put: "put";
149
+ patch: "patch";
150
+ delete: "delete";
151
+ }>>>;
152
+ methodsExclude: z.ZodOptional<z.ZodArray<z.ZodEnum<{
153
+ get: "get";
154
+ post: "post";
155
+ put: "put";
156
+ patch: "patch";
157
+ delete: "delete";
158
+ }>>>;
159
+ statusesInclude: z.ZodOptional<z.ZodArray<z.ZodCoercedNumber<unknown>>>;
160
+ statusesExclude: z.ZodOptional<z.ZodArray<z.ZodCoercedNumber<unknown>>>;
161
+ path: z.ZodOptional<z.ZodString>;
162
+ endpointKeysInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
163
+ endpointKeysExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
164
+ }, z.core.$strip>;
165
+ outputMetaSchema: z.ZodObject<{
166
+ totalCount: z.ZodOptional<z.ZodNumber>;
167
+ nextCursor: z.ZodOptional<z.ZodString>;
168
+ }, z.core.$strip>;
77
169
  queryExtensionSchema: z.ZodObject<{
78
170
  cursor: z.ZodOptional<z.ZodString>;
79
171
  pageSize: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
80
- }, z.core.$strip> & import("@emeryld/rrroutes-contract").RouteSchema<{
81
- cursor?: string | undefined;
82
- pageSize?: number | undefined;
83
- }, {
84
- cursor?: string | undefined;
85
- pageSize?: unknown;
86
- }>;
87
- bodyFiles?: import("@emeryld/rrroutes-contract").FileField[] | undefined;
172
+ }, z.core.$strip>;
173
+ }, "queryExtensionSchema" | "outputMetaSchema"> & {
174
+ queryExtensionSchema: z.ZodObject<{
175
+ cursor: z.ZodOptional<z.ZodString>;
176
+ pageSize: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
177
+ }, z.core.$strip>;
178
+ outputMetaSchema: z.ZodObject<{
179
+ totalCount: z.ZodOptional<z.ZodNumber>;
180
+ nextCursor: z.ZodOptional<z.ZodString>;
181
+ }, z.core.$strip>;
182
+ }>, "querySchema" | "outputSchema" | "feed">> & {
183
+ feed: true;
184
+ } & import("@emeryld/rrroutes-contract").FeedQueryField<import("@emeryld/rrroutes-contract").Prettify<Omit<{
88
185
  feed: true;
89
- summary?: string | undefined;
90
- docsGroup?: string | undefined;
91
- deprecated?: boolean | undefined;
92
- stability?: "experimental" | "beta" | "stable" | "deprecated" | undefined;
93
- docsHidden?: boolean | undefined;
94
- docsMeta?: Record<string, unknown> | undefined;
186
+ outputSchema: z.ZodArray<z.ZodObject<{
187
+ id: z.ZodString;
188
+ name: z.ZodString;
189
+ description: z.ZodOptional<z.ZodString>;
190
+ groupId: z.ZodOptional<z.ZodString>;
191
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
192
+ createdAt: z.ZodNumber;
193
+ updatedAt: z.ZodNumber;
194
+ status: z.ZodNumber;
195
+ body: z.ZodOptional<z.ZodAny>;
196
+ fullUrl: z.ZodString;
197
+ path: z.ZodString;
198
+ method: z.ZodEnum<{
199
+ get: "get";
200
+ post: "post";
201
+ put: "put";
202
+ patch: "patch";
203
+ delete: "delete";
204
+ }>;
205
+ query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
206
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
207
+ output: z.ZodOptional<z.ZodAny>;
208
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
209
+ error: z.ZodOptional<z.ZodString>;
210
+ durationMs: z.ZodNumber;
211
+ ip: z.ZodOptional<z.ZodString>;
212
+ userAgent: z.ZodOptional<z.ZodString>;
213
+ }, z.core.$strip>>;
214
+ querySchema: z.ZodObject<{
215
+ beforeDate: z.ZodOptional<z.ZodString>;
216
+ afterDate: z.ZodOptional<z.ZodString>;
217
+ orderBy: z.ZodOptional<z.ZodEnum<{
218
+ timestamp: "timestamp";
219
+ duration: "duration";
220
+ level: "level";
221
+ path: "path";
222
+ }>>;
223
+ orderDirection: z.ZodOptional<z.ZodEnum<{
224
+ asc: "asc";
225
+ desc: "desc";
226
+ }>>;
227
+ searchQuery: z.ZodOptional<z.ZodString>;
228
+ groupsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
229
+ groupsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
230
+ tagsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
231
+ tagsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
232
+ methodsInclude: z.ZodOptional<z.ZodArray<z.ZodEnum<{
233
+ get: "get";
234
+ post: "post";
235
+ put: "put";
236
+ patch: "patch";
237
+ delete: "delete";
238
+ }>>>;
239
+ methodsExclude: z.ZodOptional<z.ZodArray<z.ZodEnum<{
240
+ get: "get";
241
+ post: "post";
242
+ put: "put";
243
+ patch: "patch";
244
+ delete: "delete";
245
+ }>>>;
246
+ statusesInclude: z.ZodOptional<z.ZodArray<z.ZodCoercedNumber<unknown>>>;
247
+ statusesExclude: z.ZodOptional<z.ZodArray<z.ZodCoercedNumber<unknown>>>;
248
+ path: z.ZodOptional<z.ZodString>;
249
+ endpointKeysInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
250
+ endpointKeysExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
251
+ }, z.core.$strip>;
252
+ outputMetaSchema: z.ZodObject<{
253
+ totalCount: z.ZodOptional<z.ZodNumber>;
254
+ nextCursor: z.ZodOptional<z.ZodString>;
255
+ }, z.core.$strip>;
256
+ queryExtensionSchema: z.ZodObject<{
257
+ cursor: z.ZodOptional<z.ZodString>;
258
+ pageSize: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
259
+ }, z.core.$strip>;
260
+ }, "queryExtensionSchema" | "outputMetaSchema"> & {
261
+ queryExtensionSchema: z.ZodObject<{
262
+ cursor: z.ZodOptional<z.ZodString>;
263
+ pageSize: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
264
+ }, z.core.$strip>;
265
+ outputMetaSchema: z.ZodObject<{
266
+ totalCount: z.ZodOptional<z.ZodNumber>;
267
+ nextCursor: z.ZodOptional<z.ZodString>;
268
+ }, z.core.$strip>;
269
+ }>> & {
270
+ outputSchema: z.ZodObject<{
271
+ out: z.ZodArray<z.ZodObject<{
272
+ id: z.ZodString;
273
+ name: z.ZodString;
274
+ description: z.ZodOptional<z.ZodString>;
275
+ groupId: z.ZodOptional<z.ZodString>;
276
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
277
+ createdAt: z.ZodNumber;
278
+ updatedAt: z.ZodNumber;
279
+ status: z.ZodNumber;
280
+ body: z.ZodOptional<z.ZodAny>;
281
+ fullUrl: z.ZodString;
282
+ path: z.ZodString;
283
+ method: z.ZodEnum<{
284
+ get: "get";
285
+ post: "post";
286
+ put: "put";
287
+ patch: "patch";
288
+ delete: "delete";
289
+ }>;
290
+ query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
291
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
292
+ output: z.ZodOptional<z.ZodAny>;
293
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
294
+ error: z.ZodOptional<z.ZodString>;
295
+ durationMs: z.ZodNumber;
296
+ ip: z.ZodOptional<z.ZodString>;
297
+ userAgent: z.ZodOptional<z.ZodString>;
298
+ }, z.core.$strip>>;
299
+ meta: z.ZodObject<{
300
+ totalCount: z.ZodOptional<z.ZodNumber>;
301
+ nextCursor: z.ZodOptional<z.ZodString>;
302
+ }, z.core.$strip>;
303
+ }, z.core.$strip>;
304
+ } & {
305
+ paramsSchema: undefined;
306
+ }>, "outputMetaSchema" | "bodySchema" | "querySchema" | "paramsSchema" | "outputSchema"> & {
95
307
  bodySchema: import("@emeryld/rrroutes-contract").RouteSchema<unknown, unknown> | undefined;
96
308
  querySchema: import("@emeryld/rrroutes-contract").RouteSchema<{
97
- orderBy: "timestamp" | "duration" | "level" | "path";
98
- orderDirection: "asc" | "desc";
99
- methodsInclude: ("get" | "post" | "put" | "patch" | "delete")[];
100
- statusesInclude: number[];
101
309
  beforeDate?: string | undefined;
102
310
  afterDate?: string | undefined;
311
+ orderBy?: "timestamp" | "duration" | "level" | "path" | undefined;
312
+ orderDirection?: "asc" | "desc" | undefined;
103
313
  searchQuery?: string | undefined;
104
314
  groupsInclude?: string[] | undefined;
105
315
  groupsExclude?: string[] | undefined;
106
316
  tagsInclude?: string[] | undefined;
107
317
  tagsExclude?: string[] | undefined;
318
+ methodsInclude?: ("get" | "post" | "put" | "patch" | "delete")[] | undefined;
108
319
  methodsExclude?: ("get" | "post" | "put" | "patch" | "delete")[] | undefined;
320
+ statusesInclude?: number[] | undefined;
109
321
  statusesExclude?: number[] | undefined;
110
322
  path?: string | undefined;
111
323
  endpointKeysInclude?: string[] | undefined;
@@ -197,120 +409,298 @@ export declare const requestLogLeaves: readonly [{
197
409
  totalCount?: number | undefined;
198
410
  nextCursor?: string | undefined;
199
411
  }>;
200
- }>;
201
- }, import("@emeryld/rrroutes-contract").LeafLowProfile<"get", "requests/:requestId", {
202
- readonly description?: string | undefined;
203
- readonly tags?: string[] | undefined;
204
- readonly queryExtensionSchema: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> & import("@emeryld/rrroutes-contract").RouteSchema<unknown, unknown>;
205
- readonly outputMetaSchema: import("@emeryld/rrroutes-contract").RouteSchema<unknown, unknown>;
206
- readonly bodySchema: import("@emeryld/rrroutes-contract").RouteSchema<unknown, unknown> | undefined;
207
- readonly querySchema: undefined;
208
- readonly outputSchema: import("@emeryld/rrroutes-contract").RouteSchema<{
209
- out: {
210
- id: string;
211
- name: string;
212
- createdAt: number;
213
- updatedAt: number;
214
- status: number;
215
- fullUrl: string;
216
- path: string;
217
- method: "get" | "post" | "put" | "patch" | "delete";
218
- durationMs: number;
219
- logs: {
220
- id: string;
221
- name: string;
222
- createdAt: number;
223
- updatedAt: number;
224
- level: "error" | "info" | "warning" | "debug" | "trace";
225
- description?: string | undefined;
226
- groupId?: string | undefined;
227
- tags?: string[] | undefined;
228
- meta?: any;
229
- }[];
230
- caches: {
231
- id: string;
232
- name: string;
233
- createdAt: number;
234
- updatedAt: number;
235
- operation: "delete" | "hit" | "miss" | "set";
236
- value: any;
237
- description?: string | undefined;
238
- groupId?: string | undefined;
239
- tags?: string[] | undefined;
240
- size?: number | undefined;
241
- }[];
242
- description?: string | undefined;
243
- groupId?: string | undefined;
244
- tags?: string[] | undefined;
245
- body?: any;
246
- query?: Record<string, any> | undefined;
247
- params?: Record<string, any> | undefined;
248
- output?: any;
249
- headers?: Record<string, any> | undefined;
250
- error?: string | undefined;
251
- ip?: string | undefined;
252
- userAgent?: string | undefined;
253
- };
254
- meta: unknown;
255
- }, {
256
- out: {
257
- id: string;
258
- name: string;
259
- createdAt: number;
260
- updatedAt: number;
261
- status: number;
262
- fullUrl: string;
263
- path: string;
264
- method: "get" | "post" | "put" | "patch" | "delete";
265
- durationMs: number;
266
- logs: {
412
+ queryExtensionSchema: import("@emeryld/rrroutes-contract").RouteSchema<{
413
+ cursor?: string | undefined;
414
+ pageSize?: number | undefined;
415
+ }, {
416
+ cursor?: string | undefined;
417
+ pageSize?: unknown;
418
+ }>;
419
+ }>>>;
420
+ }, {
421
+ readonly method: "get";
422
+ readonly path: "requests/:requestId";
423
+ readonly cfg: Readonly<import("@emeryld/rrroutes-contract").Prettify<Omit<Readonly<import("@emeryld/rrroutes-contract").Prettify<Omit<{}, "queryExtensionSchema" | "outputMetaSchema" | "bodySchema" | "querySchema" | "paramsSchema" | "outputSchema" | Exclude<keyof (import("@emeryld/rrroutes-contract").Prettify<Omit<C_1, "queryExtensionSchema" | "outputMetaSchema"> & {
424
+ queryExtensionSchema: C_1["queryExtensionSchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? C_1["queryExtensionSchema"] : z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
425
+ outputMetaSchema: C_1["outputMetaSchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? C_1["outputMetaSchema"] : z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
426
+ }> extends infer WithDefaults extends import("@emeryld/rrroutes-contract").MethodCfg ? import("@emeryld/rrroutes-contract").Prettify<import("@emeryld/rrroutes-contract").Prettify<Omit<Omit<import("@emeryld/rrroutes-contract").MethodCfg, "querySchema" | "outputSchema" | "feed">, Exclude<keyof WithDefaults, "querySchema" | "outputSchema" | "feed">> & Omit<WithDefaults, "querySchema" | "outputSchema" | "feed">> & (WithDefaults["feed"] extends true ? (WithDefaults["feed"] extends true ? {
427
+ feed: true;
428
+ } : {
429
+ feed?: boolean;
430
+ }) & import("@emeryld/rrroutes-contract").FeedQueryField<WithDefaults> & import("@emeryld/rrroutes-contract").OutputField<WithDefaults> & (WithDefaults["paramsSchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? {
431
+ paramsSchema: WithDefaults["paramsSchema"];
432
+ } : {
433
+ paramsSchema: z.ZodObject<{
434
+ requestId: z.ZodString;
435
+ }, z.core.$strip>;
436
+ }) : (WithDefaults["feed"] extends true ? {
437
+ feed: true;
438
+ } : {
439
+ feed?: boolean;
440
+ }) & (WithDefaults["querySchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? {
441
+ querySchema: WithDefaults["querySchema"];
442
+ } : {
443
+ querySchema?: undefined;
444
+ }) & import("@emeryld/rrroutes-contract").OutputField<WithDefaults> & (WithDefaults["paramsSchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? {
445
+ paramsSchema: WithDefaults["paramsSchema"];
446
+ } : {
447
+ paramsSchema: z.ZodObject<{
448
+ requestId: z.ZodString;
449
+ }, z.core.$strip>;
450
+ }))> : never), "outputMetaSchema" | "bodySchema" | "querySchema" | "paramsSchema" | "outputSchema">> & import("@emeryld/rrroutes-contract").Prettify<Omit<import("@emeryld/rrroutes-contract").Prettify<import("@emeryld/rrroutes-contract").Prettify<Omit<Omit<import("@emeryld/rrroutes-contract").MethodCfg, "querySchema" | "outputSchema" | "feed">, "queryExtensionSchema" | "outputMetaSchema"> & Omit<import("@emeryld/rrroutes-contract").Prettify<Omit<{
451
+ outputSchema: z.ZodObject<{
452
+ id: z.ZodString;
453
+ name: z.ZodString;
454
+ description: z.ZodOptional<z.ZodString>;
455
+ groupId: z.ZodOptional<z.ZodString>;
456
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
457
+ createdAt: z.ZodNumber;
458
+ updatedAt: z.ZodNumber;
459
+ status: z.ZodNumber;
460
+ body: z.ZodOptional<z.ZodAny>;
461
+ fullUrl: z.ZodString;
462
+ path: z.ZodString;
463
+ method: z.ZodEnum<{
464
+ get: "get";
465
+ post: "post";
466
+ put: "put";
467
+ patch: "patch";
468
+ delete: "delete";
469
+ }>;
470
+ query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
471
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
472
+ output: z.ZodOptional<z.ZodAny>;
473
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
474
+ error: z.ZodOptional<z.ZodString>;
475
+ durationMs: z.ZodNumber;
476
+ ip: z.ZodOptional<z.ZodString>;
477
+ userAgent: z.ZodOptional<z.ZodString>;
478
+ logs: z.ZodArray<z.ZodObject<{
479
+ id: z.ZodString;
480
+ name: z.ZodString;
481
+ description: z.ZodOptional<z.ZodString>;
482
+ groupId: z.ZodOptional<z.ZodString>;
483
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
484
+ createdAt: z.ZodNumber;
485
+ updatedAt: z.ZodNumber;
486
+ level: z.ZodEnum<{
487
+ error: "error";
488
+ info: "info";
489
+ warning: "warning";
490
+ debug: "debug";
491
+ trace: "trace";
492
+ }>;
493
+ meta: z.ZodOptional<z.ZodAny>;
494
+ }, z.core.$strip>>;
495
+ caches: z.ZodArray<z.ZodObject<{
496
+ id: z.ZodString;
497
+ name: z.ZodString;
498
+ description: z.ZodOptional<z.ZodString>;
499
+ groupId: z.ZodOptional<z.ZodString>;
500
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
501
+ createdAt: z.ZodNumber;
502
+ updatedAt: z.ZodNumber;
503
+ operation: z.ZodEnum<{
504
+ delete: "delete";
505
+ hit: "hit";
506
+ miss: "miss";
507
+ set: "set";
508
+ }>;
509
+ value: z.ZodNullable<z.ZodAny>;
510
+ size: z.ZodOptional<z.ZodNumber>;
511
+ durationMs: z.ZodOptional<z.ZodNumber>;
512
+ }, z.core.$strip>>;
513
+ }, z.core.$strip>;
514
+ }, "queryExtensionSchema" | "outputMetaSchema"> & {
515
+ queryExtensionSchema: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
516
+ outputMetaSchema: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
517
+ }>, "querySchema" | "outputSchema" | "feed">> & {
518
+ feed?: boolean;
519
+ } & {
520
+ querySchema?: undefined;
521
+ } & {
522
+ outputSchema: z.ZodObject<{
523
+ out: z.ZodObject<{
524
+ id: z.ZodString;
525
+ name: z.ZodString;
526
+ description: z.ZodOptional<z.ZodString>;
527
+ groupId: z.ZodOptional<z.ZodString>;
528
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
529
+ createdAt: z.ZodNumber;
530
+ updatedAt: z.ZodNumber;
531
+ status: z.ZodNumber;
532
+ body: z.ZodOptional<z.ZodAny>;
533
+ fullUrl: z.ZodString;
534
+ path: z.ZodString;
535
+ method: z.ZodEnum<{
536
+ get: "get";
537
+ post: "post";
538
+ put: "put";
539
+ patch: "patch";
540
+ delete: "delete";
541
+ }>;
542
+ query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
543
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
544
+ output: z.ZodOptional<z.ZodAny>;
545
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
546
+ error: z.ZodOptional<z.ZodString>;
547
+ durationMs: z.ZodNumber;
548
+ ip: z.ZodOptional<z.ZodString>;
549
+ userAgent: z.ZodOptional<z.ZodString>;
550
+ logs: z.ZodArray<z.ZodObject<{
551
+ id: z.ZodString;
552
+ name: z.ZodString;
553
+ description: z.ZodOptional<z.ZodString>;
554
+ groupId: z.ZodOptional<z.ZodString>;
555
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
556
+ createdAt: z.ZodNumber;
557
+ updatedAt: z.ZodNumber;
558
+ level: z.ZodEnum<{
559
+ error: "error";
560
+ info: "info";
561
+ warning: "warning";
562
+ debug: "debug";
563
+ trace: "trace";
564
+ }>;
565
+ meta: z.ZodOptional<z.ZodAny>;
566
+ }, z.core.$strip>>;
567
+ caches: z.ZodArray<z.ZodObject<{
568
+ id: z.ZodString;
569
+ name: z.ZodString;
570
+ description: z.ZodOptional<z.ZodString>;
571
+ groupId: z.ZodOptional<z.ZodString>;
572
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
573
+ createdAt: z.ZodNumber;
574
+ updatedAt: z.ZodNumber;
575
+ operation: z.ZodEnum<{
576
+ delete: "delete";
577
+ hit: "hit";
578
+ miss: "miss";
579
+ set: "set";
580
+ }>;
581
+ value: z.ZodNullable<z.ZodAny>;
582
+ size: z.ZodOptional<z.ZodNumber>;
583
+ durationMs: z.ZodOptional<z.ZodNumber>;
584
+ }, z.core.$strip>>;
585
+ }, z.core.$strip>;
586
+ meta: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
587
+ }, z.core.$strip>;
588
+ } & {
589
+ paramsSchema: z.ZodObject<{
590
+ requestId: z.ZodString;
591
+ }, z.core.$strip>;
592
+ }>, "outputMetaSchema" | "bodySchema" | "querySchema" | "paramsSchema" | "outputSchema"> & {
593
+ bodySchema: import("@emeryld/rrroutes-contract").RouteSchema<unknown, unknown> | undefined;
594
+ querySchema: undefined;
595
+ paramsSchema: import("@emeryld/rrroutes-contract").RouteSchema<{
596
+ requestId: string;
597
+ }, {
598
+ requestId: string;
599
+ }>;
600
+ outputSchema: import("@emeryld/rrroutes-contract").RouteSchema<{
601
+ out: {
267
602
  id: string;
268
603
  name: string;
269
604
  createdAt: number;
270
605
  updatedAt: number;
271
- level: "error" | "info" | "warning" | "debug" | "trace";
606
+ status: number;
607
+ fullUrl: string;
608
+ path: string;
609
+ method: "get" | "post" | "put" | "patch" | "delete";
610
+ durationMs: number;
611
+ logs: {
612
+ id: string;
613
+ name: string;
614
+ createdAt: number;
615
+ updatedAt: number;
616
+ level: "error" | "info" | "warning" | "debug" | "trace";
617
+ description?: string | undefined;
618
+ groupId?: string | undefined;
619
+ tags?: string[] | undefined;
620
+ meta?: any;
621
+ }[];
622
+ caches: {
623
+ id: string;
624
+ name: string;
625
+ createdAt: number;
626
+ updatedAt: number;
627
+ operation: "delete" | "hit" | "miss" | "set";
628
+ value: any;
629
+ description?: string | undefined;
630
+ groupId?: string | undefined;
631
+ tags?: string[] | undefined;
632
+ size?: number | undefined;
633
+ durationMs?: number | undefined;
634
+ }[];
272
635
  description?: string | undefined;
273
636
  groupId?: string | undefined;
274
637
  tags?: string[] | undefined;
275
- meta?: any;
276
- }[];
277
- caches: {
638
+ body?: any;
639
+ query?: Record<string, any> | undefined;
640
+ params?: Record<string, any> | undefined;
641
+ output?: any;
642
+ headers?: Record<string, any> | undefined;
643
+ error?: string | undefined;
644
+ ip?: string | undefined;
645
+ userAgent?: string | undefined;
646
+ };
647
+ meta: unknown;
648
+ }, {
649
+ out: {
278
650
  id: string;
279
651
  name: string;
280
652
  createdAt: number;
281
653
  updatedAt: number;
282
- operation: "delete" | "hit" | "miss" | "set";
283
- value: any;
654
+ status: number;
655
+ fullUrl: string;
656
+ path: string;
657
+ method: "get" | "post" | "put" | "patch" | "delete";
658
+ durationMs: number;
659
+ logs: {
660
+ id: string;
661
+ name: string;
662
+ createdAt: number;
663
+ updatedAt: number;
664
+ level: "error" | "info" | "warning" | "debug" | "trace";
665
+ description?: string | undefined;
666
+ groupId?: string | undefined;
667
+ tags?: string[] | undefined;
668
+ meta?: any;
669
+ }[];
670
+ caches: {
671
+ id: string;
672
+ name: string;
673
+ createdAt: number;
674
+ updatedAt: number;
675
+ operation: "delete" | "hit" | "miss" | "set";
676
+ value: any;
677
+ description?: string | undefined;
678
+ groupId?: string | undefined;
679
+ tags?: string[] | undefined;
680
+ size?: number | undefined;
681
+ durationMs?: number | undefined;
682
+ }[];
284
683
  description?: string | undefined;
285
684
  groupId?: string | undefined;
286
685
  tags?: string[] | undefined;
287
- size?: number | undefined;
288
- }[];
289
- description?: string | undefined;
290
- groupId?: string | undefined;
291
- tags?: string[] | undefined;
292
- body?: any;
293
- query?: Record<string, any> | undefined;
294
- params?: Record<string, any> | undefined;
295
- output?: any;
296
- headers?: Record<string, any> | undefined;
297
- error?: string | undefined;
298
- ip?: string | undefined;
299
- userAgent?: string | undefined;
300
- };
301
- meta: unknown;
302
- }>;
303
- readonly bodyFiles?: import("@emeryld/rrroutes-contract").FileField[] | undefined;
304
- readonly feed?: boolean | undefined;
305
- readonly summary?: string | undefined;
306
- readonly docsGroup?: string | undefined;
307
- readonly deprecated?: boolean | undefined;
308
- readonly stability?: "experimental" | "beta" | "stable" | "deprecated" | undefined;
309
- readonly docsHidden?: boolean | undefined;
310
- readonly docsMeta?: Record<string, unknown> | undefined;
311
- paramsSchema: import("@emeryld/rrroutes-contract").RouteSchema<{
312
- requestId: string;
313
- }, {
314
- requestId: string;
315
- }>;
316
- }>];
686
+ body?: any;
687
+ query?: Record<string, any> | undefined;
688
+ params?: Record<string, any> | undefined;
689
+ output?: any;
690
+ headers?: Record<string, any> | undefined;
691
+ error?: string | undefined;
692
+ ip?: string | undefined;
693
+ userAgent?: string | undefined;
694
+ };
695
+ meta: unknown;
696
+ }>;
697
+ outputMetaSchema: import("@emeryld/rrroutes-contract").RouteSchema<unknown, unknown>;
698
+ queryExtensionSchema: import("@emeryld/rrroutes-contract").RouteSchema<unknown, unknown>;
699
+ }>>>, "paramsSchema"> & {
700
+ paramsSchema: import("@emeryld/rrroutes-contract").RouteSchema<{
701
+ requestId: string;
702
+ }, {
703
+ requestId: string;
704
+ }>;
705
+ }>>;
706
+ }];