@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.
@@ -56,13 +56,13 @@ export type EndpointType = z.output<typeof endpointSchema>;
56
56
  export declare const endpointFilterSchema: z.ZodObject<{
57
57
  beforeDate: z.ZodOptional<z.ZodString>;
58
58
  afterDate: z.ZodOptional<z.ZodString>;
59
- orderBy: z.ZodDefault<z.ZodEnum<{
59
+ orderBy: z.ZodOptional<z.ZodEnum<{
60
60
  timestamp: "timestamp";
61
61
  duration: "duration";
62
62
  level: "level";
63
63
  path: "path";
64
64
  }>>;
65
- orderDirection: z.ZodDefault<z.ZodEnum<{
65
+ orderDirection: z.ZodOptional<z.ZodEnum<{
66
66
  asc: "asc";
67
67
  desc: "desc";
68
68
  }>>;
@@ -103,33 +103,291 @@ export type RoutesFilter = z.infer<typeof endpointFilterSchema> & z.infer<typeof
103
103
  export declare const endpointLeaves: readonly [{
104
104
  readonly method: "get";
105
105
  readonly path: "endpoints";
106
- readonly cfg: Readonly<{
107
- description?: string | undefined;
108
- tags?: string[] | undefined;
106
+ 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"> & {
107
+ queryExtensionSchema: C["queryExtensionSchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? C["queryExtensionSchema"] : undefined;
108
+ outputMetaSchema: C["outputMetaSchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? C["outputMetaSchema"] : undefined;
109
+ }> 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 ? {
110
+ feed: true;
111
+ } : {
112
+ feed?: boolean;
113
+ }) & import("@emeryld/rrroutes-contract").FeedQueryField<WithDefaults> & import("@emeryld/rrroutes-contract").OutputField<WithDefaults> & (WithDefaults["paramsSchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? {
114
+ paramsSchema: WithDefaults["paramsSchema"];
115
+ } : {
116
+ paramsSchema: undefined;
117
+ }) : (WithDefaults["feed"] extends true ? {
118
+ feed: true;
119
+ } : {
120
+ feed?: boolean;
121
+ }) & (WithDefaults["querySchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? {
122
+ querySchema: WithDefaults["querySchema"];
123
+ } : {
124
+ querySchema?: undefined;
125
+ }) & import("@emeryld/rrroutes-contract").OutputField<WithDefaults> & (WithDefaults["paramsSchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? {
126
+ paramsSchema: WithDefaults["paramsSchema"];
127
+ } : {
128
+ paramsSchema: undefined;
129
+ }))> : 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<{
130
+ feed: true;
131
+ querySchema: z.ZodObject<{
132
+ beforeDate: z.ZodOptional<z.ZodString>;
133
+ afterDate: z.ZodOptional<z.ZodString>;
134
+ orderBy: z.ZodOptional<z.ZodEnum<{
135
+ timestamp: "timestamp";
136
+ duration: "duration";
137
+ level: "level";
138
+ path: "path";
139
+ }>>;
140
+ orderDirection: z.ZodOptional<z.ZodEnum<{
141
+ asc: "asc";
142
+ desc: "desc";
143
+ }>>;
144
+ searchQuery: z.ZodOptional<z.ZodString>;
145
+ groupsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
146
+ groupsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
147
+ tagsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
148
+ tagsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
149
+ methodsInclude: z.ZodOptional<z.ZodArray<z.ZodEnum<{
150
+ get: "get";
151
+ post: "post";
152
+ put: "put";
153
+ patch: "patch";
154
+ delete: "delete";
155
+ }>>>;
156
+ methodsExclude: z.ZodOptional<z.ZodArray<z.ZodEnum<{
157
+ get: "get";
158
+ post: "post";
159
+ put: "put";
160
+ patch: "patch";
161
+ delete: "delete";
162
+ }>>>;
163
+ path: z.ZodOptional<z.ZodString>;
164
+ stabilityInclude: z.ZodOptional<z.ZodArray<z.ZodEnum<{
165
+ deprecated: "deprecated";
166
+ experimental: "experimental";
167
+ beta: "beta";
168
+ stable: "stable";
169
+ }>>>;
170
+ stabilityExclude: z.ZodOptional<z.ZodArray<z.ZodEnum<{
171
+ deprecated: "deprecated";
172
+ experimental: "experimental";
173
+ beta: "beta";
174
+ stable: "stable";
175
+ }>>>;
176
+ }, z.core.$strip>;
177
+ outputSchema: z.ZodArray<z.ZodObject<{
178
+ id: z.ZodString;
179
+ name: z.ZodString;
180
+ description: z.ZodOptional<z.ZodString>;
181
+ groupId: z.ZodOptional<z.ZodString>;
182
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
183
+ createdAt: z.ZodNumber;
184
+ updatedAt: z.ZodNumber;
185
+ method: z.ZodEnum<{
186
+ get: "get";
187
+ post: "post";
188
+ put: "put";
189
+ patch: "patch";
190
+ delete: "delete";
191
+ }>;
192
+ path: z.ZodString;
193
+ contract: z.ZodObject<{
194
+ body: z.ZodOptional<z.ZodType<SerializableSchema, SerializableSchema, z.core.$ZodTypeInternals<SerializableSchema, SerializableSchema>>>;
195
+ query: z.ZodOptional<z.ZodType<SerializableSchema, SerializableSchema, z.core.$ZodTypeInternals<SerializableSchema, SerializableSchema>>>;
196
+ output: z.ZodOptional<z.ZodType<SerializableSchema, SerializableSchema, z.core.$ZodTypeInternals<SerializableSchema, SerializableSchema>>>;
197
+ params: z.ZodOptional<z.ZodType<SerializableSchema, SerializableSchema, z.core.$ZodTypeInternals<SerializableSchema, SerializableSchema>>>;
198
+ bodyFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
199
+ name: z.ZodString;
200
+ maxCount: z.ZodNumber;
201
+ }, z.core.$strip>>>;
202
+ }, z.core.$strip>;
203
+ feed: z.ZodOptional<z.ZodBoolean>;
204
+ summary: z.ZodOptional<z.ZodString>;
205
+ stability: z.ZodEnum<{
206
+ deprecated: "deprecated";
207
+ experimental: "experimental";
208
+ beta: "beta";
209
+ stable: "stable";
210
+ }>;
211
+ hidden: z.ZodOptional<z.ZodBoolean>;
212
+ meta: z.ZodRecord<z.ZodString, z.ZodString>;
213
+ implemented: z.ZodOptional<z.ZodBoolean>;
214
+ }, z.core.$strip>>;
215
+ outputMetaSchema: z.ZodObject<{
216
+ totalCount: z.ZodOptional<z.ZodNumber>;
217
+ nextCursor: z.ZodOptional<z.ZodString>;
218
+ }, z.core.$strip>;
109
219
  queryExtensionSchema: z.ZodObject<{
110
220
  cursor: z.ZodOptional<z.ZodString>;
111
221
  pageSize: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
112
- }, z.core.$strip> & import("@emeryld/rrroutes-contract").RouteSchema<{
113
- cursor?: string | undefined;
114
- pageSize?: number | undefined;
115
- }, {
116
- cursor?: string | undefined;
117
- pageSize?: unknown;
118
- }>;
119
- bodyFiles?: import("@emeryld/rrroutes-contract").FileField[] | undefined;
222
+ }, z.core.$strip>;
223
+ }, "queryExtensionSchema" | "outputMetaSchema"> & {
224
+ queryExtensionSchema: z.ZodObject<{
225
+ cursor: z.ZodOptional<z.ZodString>;
226
+ pageSize: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
227
+ }, z.core.$strip>;
228
+ outputMetaSchema: z.ZodObject<{
229
+ totalCount: z.ZodOptional<z.ZodNumber>;
230
+ nextCursor: z.ZodOptional<z.ZodString>;
231
+ }, z.core.$strip>;
232
+ }>, "querySchema" | "outputSchema" | "feed">> & {
233
+ feed: true;
234
+ } & import("@emeryld/rrroutes-contract").FeedQueryField<import("@emeryld/rrroutes-contract").Prettify<Omit<{
120
235
  feed: true;
121
- summary?: string | undefined;
122
- docsGroup?: string | undefined;
123
- deprecated?: boolean | undefined;
124
- stability?: "experimental" | "beta" | "stable" | "deprecated" | undefined;
125
- docsHidden?: boolean | undefined;
126
- docsMeta?: Record<string, unknown> | undefined;
236
+ querySchema: z.ZodObject<{
237
+ beforeDate: z.ZodOptional<z.ZodString>;
238
+ afterDate: z.ZodOptional<z.ZodString>;
239
+ orderBy: z.ZodOptional<z.ZodEnum<{
240
+ timestamp: "timestamp";
241
+ duration: "duration";
242
+ level: "level";
243
+ path: "path";
244
+ }>>;
245
+ orderDirection: z.ZodOptional<z.ZodEnum<{
246
+ asc: "asc";
247
+ desc: "desc";
248
+ }>>;
249
+ searchQuery: z.ZodOptional<z.ZodString>;
250
+ groupsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
251
+ groupsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
252
+ tagsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
253
+ tagsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
254
+ methodsInclude: z.ZodOptional<z.ZodArray<z.ZodEnum<{
255
+ get: "get";
256
+ post: "post";
257
+ put: "put";
258
+ patch: "patch";
259
+ delete: "delete";
260
+ }>>>;
261
+ methodsExclude: z.ZodOptional<z.ZodArray<z.ZodEnum<{
262
+ get: "get";
263
+ post: "post";
264
+ put: "put";
265
+ patch: "patch";
266
+ delete: "delete";
267
+ }>>>;
268
+ path: z.ZodOptional<z.ZodString>;
269
+ stabilityInclude: z.ZodOptional<z.ZodArray<z.ZodEnum<{
270
+ deprecated: "deprecated";
271
+ experimental: "experimental";
272
+ beta: "beta";
273
+ stable: "stable";
274
+ }>>>;
275
+ stabilityExclude: z.ZodOptional<z.ZodArray<z.ZodEnum<{
276
+ deprecated: "deprecated";
277
+ experimental: "experimental";
278
+ beta: "beta";
279
+ stable: "stable";
280
+ }>>>;
281
+ }, z.core.$strip>;
282
+ outputSchema: z.ZodArray<z.ZodObject<{
283
+ id: z.ZodString;
284
+ name: z.ZodString;
285
+ description: z.ZodOptional<z.ZodString>;
286
+ groupId: z.ZodOptional<z.ZodString>;
287
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
288
+ createdAt: z.ZodNumber;
289
+ updatedAt: z.ZodNumber;
290
+ method: z.ZodEnum<{
291
+ get: "get";
292
+ post: "post";
293
+ put: "put";
294
+ patch: "patch";
295
+ delete: "delete";
296
+ }>;
297
+ path: z.ZodString;
298
+ contract: z.ZodObject<{
299
+ body: z.ZodOptional<z.ZodType<SerializableSchema, SerializableSchema, z.core.$ZodTypeInternals<SerializableSchema, SerializableSchema>>>;
300
+ query: z.ZodOptional<z.ZodType<SerializableSchema, SerializableSchema, z.core.$ZodTypeInternals<SerializableSchema, SerializableSchema>>>;
301
+ output: z.ZodOptional<z.ZodType<SerializableSchema, SerializableSchema, z.core.$ZodTypeInternals<SerializableSchema, SerializableSchema>>>;
302
+ params: z.ZodOptional<z.ZodType<SerializableSchema, SerializableSchema, z.core.$ZodTypeInternals<SerializableSchema, SerializableSchema>>>;
303
+ bodyFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
304
+ name: z.ZodString;
305
+ maxCount: z.ZodNumber;
306
+ }, z.core.$strip>>>;
307
+ }, z.core.$strip>;
308
+ feed: z.ZodOptional<z.ZodBoolean>;
309
+ summary: z.ZodOptional<z.ZodString>;
310
+ stability: z.ZodEnum<{
311
+ deprecated: "deprecated";
312
+ experimental: "experimental";
313
+ beta: "beta";
314
+ stable: "stable";
315
+ }>;
316
+ hidden: z.ZodOptional<z.ZodBoolean>;
317
+ meta: z.ZodRecord<z.ZodString, z.ZodString>;
318
+ implemented: z.ZodOptional<z.ZodBoolean>;
319
+ }, z.core.$strip>>;
320
+ outputMetaSchema: z.ZodObject<{
321
+ totalCount: z.ZodOptional<z.ZodNumber>;
322
+ nextCursor: z.ZodOptional<z.ZodString>;
323
+ }, z.core.$strip>;
324
+ queryExtensionSchema: z.ZodObject<{
325
+ cursor: z.ZodOptional<z.ZodString>;
326
+ pageSize: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
327
+ }, z.core.$strip>;
328
+ }, "queryExtensionSchema" | "outputMetaSchema"> & {
329
+ queryExtensionSchema: z.ZodObject<{
330
+ cursor: z.ZodOptional<z.ZodString>;
331
+ pageSize: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
332
+ }, z.core.$strip>;
333
+ outputMetaSchema: z.ZodObject<{
334
+ totalCount: z.ZodOptional<z.ZodNumber>;
335
+ nextCursor: z.ZodOptional<z.ZodString>;
336
+ }, z.core.$strip>;
337
+ }>> & {
338
+ outputSchema: z.ZodObject<{
339
+ out: z.ZodArray<z.ZodObject<{
340
+ id: z.ZodString;
341
+ name: z.ZodString;
342
+ description: z.ZodOptional<z.ZodString>;
343
+ groupId: z.ZodOptional<z.ZodString>;
344
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
345
+ createdAt: z.ZodNumber;
346
+ updatedAt: z.ZodNumber;
347
+ method: z.ZodEnum<{
348
+ get: "get";
349
+ post: "post";
350
+ put: "put";
351
+ patch: "patch";
352
+ delete: "delete";
353
+ }>;
354
+ path: z.ZodString;
355
+ contract: z.ZodObject<{
356
+ body: z.ZodOptional<z.ZodType<SerializableSchema, SerializableSchema, z.core.$ZodTypeInternals<SerializableSchema, SerializableSchema>>>;
357
+ query: z.ZodOptional<z.ZodType<SerializableSchema, SerializableSchema, z.core.$ZodTypeInternals<SerializableSchema, SerializableSchema>>>;
358
+ output: z.ZodOptional<z.ZodType<SerializableSchema, SerializableSchema, z.core.$ZodTypeInternals<SerializableSchema, SerializableSchema>>>;
359
+ params: z.ZodOptional<z.ZodType<SerializableSchema, SerializableSchema, z.core.$ZodTypeInternals<SerializableSchema, SerializableSchema>>>;
360
+ bodyFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
361
+ name: z.ZodString;
362
+ maxCount: z.ZodNumber;
363
+ }, z.core.$strip>>>;
364
+ }, z.core.$strip>;
365
+ feed: z.ZodOptional<z.ZodBoolean>;
366
+ summary: z.ZodOptional<z.ZodString>;
367
+ stability: z.ZodEnum<{
368
+ deprecated: "deprecated";
369
+ experimental: "experimental";
370
+ beta: "beta";
371
+ stable: "stable";
372
+ }>;
373
+ hidden: z.ZodOptional<z.ZodBoolean>;
374
+ meta: z.ZodRecord<z.ZodString, z.ZodString>;
375
+ implemented: z.ZodOptional<z.ZodBoolean>;
376
+ }, z.core.$strip>>;
377
+ meta: z.ZodObject<{
378
+ totalCount: z.ZodOptional<z.ZodNumber>;
379
+ nextCursor: z.ZodOptional<z.ZodString>;
380
+ }, z.core.$strip>;
381
+ }, z.core.$strip>;
382
+ } & {
383
+ paramsSchema: undefined;
384
+ }>, "outputMetaSchema" | "bodySchema" | "querySchema" | "paramsSchema" | "outputSchema"> & {
127
385
  bodySchema: import("@emeryld/rrroutes-contract").RouteSchema<unknown, unknown> | undefined;
128
386
  querySchema: import("@emeryld/rrroutes-contract").RouteSchema<{
129
- orderBy: "timestamp" | "duration" | "level" | "path";
130
- orderDirection: "asc" | "desc";
131
387
  beforeDate?: string | undefined;
132
388
  afterDate?: string | undefined;
389
+ orderBy?: "timestamp" | "duration" | "level" | "path" | undefined;
390
+ orderDirection?: "asc" | "desc" | undefined;
133
391
  searchQuery?: string | undefined;
134
392
  groupsInclude?: string[] | undefined;
135
393
  groupsExclude?: string[] | undefined;
@@ -235,142 +493,338 @@ export declare const endpointLeaves: readonly [{
235
493
  totalCount?: number | undefined;
236
494
  nextCursor?: string | undefined;
237
495
  }>;
238
- }>;
239
- }, import("@emeryld/rrroutes-contract").LeafLowProfile<"get", "endpoints/:endpointId", {
240
- readonly description?: string | undefined;
241
- readonly tags?: string[] | undefined;
242
- readonly queryExtensionSchema: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> & import("@emeryld/rrroutes-contract").RouteSchema<unknown, unknown>;
243
- readonly outputMetaSchema: import("@emeryld/rrroutes-contract").RouteSchema<unknown, unknown>;
244
- readonly bodySchema: import("@emeryld/rrroutes-contract").RouteSchema<unknown, unknown> | undefined;
245
- readonly querySchema: undefined;
246
- readonly outputSchema: import("@emeryld/rrroutes-contract").RouteSchema<{
247
- out: {
248
- id: string;
249
- name: string;
250
- createdAt: number;
251
- updatedAt: number;
252
- method: "get" | "post" | "put" | "patch" | "delete";
253
- path: string;
254
- contract: {
255
- body?: SerializableSchema | undefined;
256
- query?: SerializableSchema | undefined;
257
- output?: SerializableSchema | undefined;
258
- params?: SerializableSchema | undefined;
259
- bodyFiles?: {
260
- name: string;
261
- maxCount: number;
262
- }[] | undefined;
263
- };
264
- stability: "deprecated" | "experimental" | "beta" | "stable";
265
- meta: Record<string, string>;
266
- requests: {
496
+ queryExtensionSchema: import("@emeryld/rrroutes-contract").RouteSchema<{
497
+ cursor?: string | undefined;
498
+ pageSize?: number | undefined;
499
+ }, {
500
+ cursor?: string | undefined;
501
+ pageSize?: unknown;
502
+ }>;
503
+ }>>>;
504
+ }, {
505
+ readonly method: "get";
506
+ readonly path: "endpoints/:endpointId";
507
+ 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"> & {
508
+ 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>>;
509
+ 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>>;
510
+ }> 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 ? {
511
+ feed: true;
512
+ } : {
513
+ feed?: boolean;
514
+ }) & import("@emeryld/rrroutes-contract").FeedQueryField<WithDefaults> & import("@emeryld/rrroutes-contract").OutputField<WithDefaults> & (WithDefaults["paramsSchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? {
515
+ paramsSchema: WithDefaults["paramsSchema"];
516
+ } : {
517
+ paramsSchema: z.ZodObject<{
518
+ endpointId: z.ZodString;
519
+ }, z.core.$strip>;
520
+ }) : (WithDefaults["feed"] extends true ? {
521
+ feed: true;
522
+ } : {
523
+ feed?: boolean;
524
+ }) & (WithDefaults["querySchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? {
525
+ querySchema: WithDefaults["querySchema"];
526
+ } : {
527
+ querySchema?: undefined;
528
+ }) & import("@emeryld/rrroutes-contract").OutputField<WithDefaults> & (WithDefaults["paramsSchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? {
529
+ paramsSchema: WithDefaults["paramsSchema"];
530
+ } : {
531
+ paramsSchema: z.ZodObject<{
532
+ endpointId: z.ZodString;
533
+ }, z.core.$strip>;
534
+ }))> : 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<{
535
+ outputSchema: z.ZodObject<{
536
+ id: z.ZodString;
537
+ name: z.ZodString;
538
+ description: z.ZodOptional<z.ZodString>;
539
+ groupId: z.ZodOptional<z.ZodString>;
540
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
541
+ createdAt: z.ZodNumber;
542
+ updatedAt: z.ZodNumber;
543
+ method: z.ZodEnum<{
544
+ get: "get";
545
+ post: "post";
546
+ put: "put";
547
+ patch: "patch";
548
+ delete: "delete";
549
+ }>;
550
+ path: z.ZodString;
551
+ contract: z.ZodObject<{
552
+ body: z.ZodOptional<z.ZodType<SerializableSchema, SerializableSchema, z.core.$ZodTypeInternals<SerializableSchema, SerializableSchema>>>;
553
+ query: z.ZodOptional<z.ZodType<SerializableSchema, SerializableSchema, z.core.$ZodTypeInternals<SerializableSchema, SerializableSchema>>>;
554
+ output: z.ZodOptional<z.ZodType<SerializableSchema, SerializableSchema, z.core.$ZodTypeInternals<SerializableSchema, SerializableSchema>>>;
555
+ params: z.ZodOptional<z.ZodType<SerializableSchema, SerializableSchema, z.core.$ZodTypeInternals<SerializableSchema, SerializableSchema>>>;
556
+ bodyFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
557
+ name: z.ZodString;
558
+ maxCount: z.ZodNumber;
559
+ }, z.core.$strip>>>;
560
+ }, z.core.$strip>;
561
+ feed: z.ZodOptional<z.ZodBoolean>;
562
+ summary: z.ZodOptional<z.ZodString>;
563
+ stability: z.ZodEnum<{
564
+ deprecated: "deprecated";
565
+ experimental: "experimental";
566
+ beta: "beta";
567
+ stable: "stable";
568
+ }>;
569
+ hidden: z.ZodOptional<z.ZodBoolean>;
570
+ meta: z.ZodRecord<z.ZodString, z.ZodString>;
571
+ implemented: z.ZodOptional<z.ZodBoolean>;
572
+ requests: z.ZodArray<z.ZodObject<{
573
+ id: z.ZodString;
574
+ name: z.ZodString;
575
+ description: z.ZodOptional<z.ZodString>;
576
+ groupId: z.ZodOptional<z.ZodString>;
577
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
578
+ createdAt: z.ZodNumber;
579
+ updatedAt: z.ZodNumber;
580
+ status: z.ZodNumber;
581
+ body: z.ZodOptional<z.ZodAny>;
582
+ fullUrl: z.ZodString;
583
+ path: z.ZodString;
584
+ method: z.ZodEnum<{
585
+ get: "get";
586
+ post: "post";
587
+ put: "put";
588
+ patch: "patch";
589
+ delete: "delete";
590
+ }>;
591
+ query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
592
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
593
+ output: z.ZodOptional<z.ZodAny>;
594
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
595
+ error: z.ZodOptional<z.ZodString>;
596
+ durationMs: z.ZodNumber;
597
+ ip: z.ZodOptional<z.ZodString>;
598
+ userAgent: z.ZodOptional<z.ZodString>;
599
+ }, z.core.$strip>>;
600
+ volumeTS: z.ZodArray<z.ZodObject<{
601
+ timestamp: z.ZodNumber;
602
+ count: z.ZodNumber;
603
+ }, z.core.$strip>>;
604
+ averageDurationMs: z.ZodNumber;
605
+ successRate: z.ZodNumber;
606
+ latestErrorRequestIds: z.ZodArray<z.ZodString>;
607
+ }, z.core.$strip>;
608
+ }, "queryExtensionSchema" | "outputMetaSchema"> & {
609
+ queryExtensionSchema: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
610
+ outputMetaSchema: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
611
+ }>, "querySchema" | "outputSchema" | "feed">> & {
612
+ feed?: boolean;
613
+ } & {
614
+ querySchema?: undefined;
615
+ } & {
616
+ outputSchema: z.ZodObject<{
617
+ out: z.ZodObject<{
618
+ id: z.ZodString;
619
+ name: z.ZodString;
620
+ description: z.ZodOptional<z.ZodString>;
621
+ groupId: z.ZodOptional<z.ZodString>;
622
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
623
+ createdAt: z.ZodNumber;
624
+ updatedAt: z.ZodNumber;
625
+ method: z.ZodEnum<{
626
+ get: "get";
627
+ post: "post";
628
+ put: "put";
629
+ patch: "patch";
630
+ delete: "delete";
631
+ }>;
632
+ path: z.ZodString;
633
+ contract: z.ZodObject<{
634
+ body: z.ZodOptional<z.ZodType<SerializableSchema, SerializableSchema, z.core.$ZodTypeInternals<SerializableSchema, SerializableSchema>>>;
635
+ query: z.ZodOptional<z.ZodType<SerializableSchema, SerializableSchema, z.core.$ZodTypeInternals<SerializableSchema, SerializableSchema>>>;
636
+ output: z.ZodOptional<z.ZodType<SerializableSchema, SerializableSchema, z.core.$ZodTypeInternals<SerializableSchema, SerializableSchema>>>;
637
+ params: z.ZodOptional<z.ZodType<SerializableSchema, SerializableSchema, z.core.$ZodTypeInternals<SerializableSchema, SerializableSchema>>>;
638
+ bodyFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
639
+ name: z.ZodString;
640
+ maxCount: z.ZodNumber;
641
+ }, z.core.$strip>>>;
642
+ }, z.core.$strip>;
643
+ feed: z.ZodOptional<z.ZodBoolean>;
644
+ summary: z.ZodOptional<z.ZodString>;
645
+ stability: z.ZodEnum<{
646
+ deprecated: "deprecated";
647
+ experimental: "experimental";
648
+ beta: "beta";
649
+ stable: "stable";
650
+ }>;
651
+ hidden: z.ZodOptional<z.ZodBoolean>;
652
+ meta: z.ZodRecord<z.ZodString, z.ZodString>;
653
+ implemented: z.ZodOptional<z.ZodBoolean>;
654
+ requests: z.ZodArray<z.ZodObject<{
655
+ id: z.ZodString;
656
+ name: z.ZodString;
657
+ description: z.ZodOptional<z.ZodString>;
658
+ groupId: z.ZodOptional<z.ZodString>;
659
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
660
+ createdAt: z.ZodNumber;
661
+ updatedAt: z.ZodNumber;
662
+ status: z.ZodNumber;
663
+ body: z.ZodOptional<z.ZodAny>;
664
+ fullUrl: z.ZodString;
665
+ path: z.ZodString;
666
+ method: z.ZodEnum<{
667
+ get: "get";
668
+ post: "post";
669
+ put: "put";
670
+ patch: "patch";
671
+ delete: "delete";
672
+ }>;
673
+ query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
674
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
675
+ output: z.ZodOptional<z.ZodAny>;
676
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
677
+ error: z.ZodOptional<z.ZodString>;
678
+ durationMs: z.ZodNumber;
679
+ ip: z.ZodOptional<z.ZodString>;
680
+ userAgent: z.ZodOptional<z.ZodString>;
681
+ }, z.core.$strip>>;
682
+ volumeTS: z.ZodArray<z.ZodObject<{
683
+ timestamp: z.ZodNumber;
684
+ count: z.ZodNumber;
685
+ }, z.core.$strip>>;
686
+ averageDurationMs: z.ZodNumber;
687
+ successRate: z.ZodNumber;
688
+ latestErrorRequestIds: z.ZodArray<z.ZodString>;
689
+ }, z.core.$strip>;
690
+ meta: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
691
+ }, z.core.$strip>;
692
+ } & {
693
+ paramsSchema: z.ZodObject<{
694
+ endpointId: z.ZodString;
695
+ }, z.core.$strip>;
696
+ }>, "outputMetaSchema" | "bodySchema" | "querySchema" | "paramsSchema" | "outputSchema"> & {
697
+ bodySchema: import("@emeryld/rrroutes-contract").RouteSchema<unknown, unknown> | undefined;
698
+ querySchema: undefined;
699
+ paramsSchema: import("@emeryld/rrroutes-contract").RouteSchema<{
700
+ endpointId: string;
701
+ }, {
702
+ endpointId: string;
703
+ }>;
704
+ outputSchema: import("@emeryld/rrroutes-contract").RouteSchema<{
705
+ out: {
267
706
  id: string;
268
707
  name: string;
269
708
  createdAt: number;
270
709
  updatedAt: number;
271
- status: number;
272
- fullUrl: string;
273
- path: string;
274
710
  method: "get" | "post" | "put" | "patch" | "delete";
275
- durationMs: number;
711
+ path: string;
712
+ contract: {
713
+ body?: SerializableSchema | undefined;
714
+ query?: SerializableSchema | undefined;
715
+ output?: SerializableSchema | undefined;
716
+ params?: SerializableSchema | undefined;
717
+ bodyFiles?: {
718
+ name: string;
719
+ maxCount: number;
720
+ }[] | undefined;
721
+ };
722
+ stability: "deprecated" | "experimental" | "beta" | "stable";
723
+ meta: Record<string, string>;
724
+ requests: {
725
+ id: string;
726
+ name: string;
727
+ createdAt: number;
728
+ updatedAt: number;
729
+ status: number;
730
+ fullUrl: string;
731
+ path: string;
732
+ method: "get" | "post" | "put" | "patch" | "delete";
733
+ durationMs: number;
734
+ description?: string | undefined;
735
+ groupId?: string | undefined;
736
+ tags?: string[] | undefined;
737
+ body?: any;
738
+ query?: Record<string, any> | undefined;
739
+ params?: Record<string, any> | undefined;
740
+ output?: any;
741
+ headers?: Record<string, any> | undefined;
742
+ error?: string | undefined;
743
+ ip?: string | undefined;
744
+ userAgent?: string | undefined;
745
+ }[];
746
+ volumeTS: {
747
+ timestamp: number;
748
+ count: number;
749
+ }[];
750
+ averageDurationMs: number;
751
+ successRate: number;
752
+ latestErrorRequestIds: string[];
276
753
  description?: string | undefined;
277
754
  groupId?: string | undefined;
278
755
  tags?: string[] | undefined;
279
- body?: any;
280
- query?: Record<string, any> | undefined;
281
- params?: Record<string, any> | undefined;
282
- output?: any;
283
- headers?: Record<string, any> | undefined;
284
- error?: string | undefined;
285
- ip?: string | undefined;
286
- userAgent?: string | undefined;
287
- }[];
288
- volumeTS: {
289
- timestamp: number;
290
- count: number;
291
- }[];
292
- averageDurationMs: number;
293
- successRate: number;
294
- latestErrorRequestIds: string[];
295
- description?: string | undefined;
296
- groupId?: string | undefined;
297
- tags?: string[] | undefined;
298
- feed?: boolean | undefined;
299
- summary?: string | undefined;
300
- hidden?: boolean | undefined;
301
- implemented?: boolean | undefined;
302
- };
303
- meta: unknown;
304
- }, {
305
- out: {
306
- id: string;
307
- name: string;
308
- createdAt: number;
309
- updatedAt: number;
310
- method: "get" | "post" | "put" | "patch" | "delete";
311
- path: string;
312
- contract: {
313
- body?: SerializableSchema | undefined;
314
- query?: SerializableSchema | undefined;
315
- output?: SerializableSchema | undefined;
316
- params?: SerializableSchema | undefined;
317
- bodyFiles?: {
318
- name: string;
319
- maxCount: number;
320
- }[] | undefined;
756
+ feed?: boolean | undefined;
757
+ summary?: string | undefined;
758
+ hidden?: boolean | undefined;
759
+ implemented?: boolean | undefined;
321
760
  };
322
- stability: "deprecated" | "experimental" | "beta" | "stable";
323
- meta: Record<string, string>;
324
- requests: {
761
+ meta: unknown;
762
+ }, {
763
+ out: {
325
764
  id: string;
326
765
  name: string;
327
766
  createdAt: number;
328
767
  updatedAt: number;
329
- status: number;
330
- fullUrl: string;
331
- path: string;
332
768
  method: "get" | "post" | "put" | "patch" | "delete";
333
- durationMs: number;
769
+ path: string;
770
+ contract: {
771
+ body?: SerializableSchema | undefined;
772
+ query?: SerializableSchema | undefined;
773
+ output?: SerializableSchema | undefined;
774
+ params?: SerializableSchema | undefined;
775
+ bodyFiles?: {
776
+ name: string;
777
+ maxCount: number;
778
+ }[] | undefined;
779
+ };
780
+ stability: "deprecated" | "experimental" | "beta" | "stable";
781
+ meta: Record<string, string>;
782
+ requests: {
783
+ id: string;
784
+ name: string;
785
+ createdAt: number;
786
+ updatedAt: number;
787
+ status: number;
788
+ fullUrl: string;
789
+ path: string;
790
+ method: "get" | "post" | "put" | "patch" | "delete";
791
+ durationMs: number;
792
+ description?: string | undefined;
793
+ groupId?: string | undefined;
794
+ tags?: string[] | undefined;
795
+ body?: any;
796
+ query?: Record<string, any> | undefined;
797
+ params?: Record<string, any> | undefined;
798
+ output?: any;
799
+ headers?: Record<string, any> | undefined;
800
+ error?: string | undefined;
801
+ ip?: string | undefined;
802
+ userAgent?: string | undefined;
803
+ }[];
804
+ volumeTS: {
805
+ timestamp: number;
806
+ count: number;
807
+ }[];
808
+ averageDurationMs: number;
809
+ successRate: number;
810
+ latestErrorRequestIds: string[];
334
811
  description?: string | undefined;
335
812
  groupId?: string | undefined;
336
813
  tags?: string[] | undefined;
337
- body?: any;
338
- query?: Record<string, any> | undefined;
339
- params?: Record<string, any> | undefined;
340
- output?: any;
341
- headers?: Record<string, any> | undefined;
342
- error?: string | undefined;
343
- ip?: string | undefined;
344
- userAgent?: string | undefined;
345
- }[];
346
- volumeTS: {
347
- timestamp: number;
348
- count: number;
349
- }[];
350
- averageDurationMs: number;
351
- successRate: number;
352
- latestErrorRequestIds: string[];
353
- description?: string | undefined;
354
- groupId?: string | undefined;
355
- tags?: string[] | undefined;
356
- feed?: boolean | undefined;
357
- summary?: string | undefined;
358
- hidden?: boolean | undefined;
359
- implemented?: boolean | undefined;
360
- };
361
- meta: unknown;
362
- }>;
363
- readonly bodyFiles?: import("@emeryld/rrroutes-contract").FileField[] | undefined;
364
- readonly feed?: boolean | undefined;
365
- readonly summary?: string | undefined;
366
- readonly docsGroup?: string | undefined;
367
- readonly deprecated?: boolean | undefined;
368
- readonly stability?: "experimental" | "beta" | "stable" | "deprecated" | undefined;
369
- readonly docsHidden?: boolean | undefined;
370
- readonly docsMeta?: Record<string, unknown> | undefined;
371
- paramsSchema: import("@emeryld/rrroutes-contract").RouteSchema<{
372
- endpointId: string;
373
- }, {
374
- endpointId: string;
375
- }>;
376
- }>];
814
+ feed?: boolean | undefined;
815
+ summary?: string | undefined;
816
+ hidden?: boolean | undefined;
817
+ implemented?: boolean | undefined;
818
+ };
819
+ meta: unknown;
820
+ }>;
821
+ outputMetaSchema: import("@emeryld/rrroutes-contract").RouteSchema<unknown, unknown>;
822
+ queryExtensionSchema: import("@emeryld/rrroutes-contract").RouteSchema<unknown, unknown>;
823
+ }>>>, "paramsSchema"> & {
824
+ paramsSchema: import("@emeryld/rrroutes-contract").RouteSchema<{
825
+ endpointId: string;
826
+ }, {
827
+ endpointId: string;
828
+ }>;
829
+ }>>;
830
+ }];