@emeryld/rrroutes-openapi 2.5.12 → 2.5.13

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 (47) hide show
  1. package/dist/index.cjs +3 -90
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.d.ts +1 -1
  4. package/dist/index.mjs +3 -90
  5. package/dist/index.mjs.map +1 -1
  6. package/dist/public/assets/docs.js +97 -97
  7. package/dist/web/v2/types/types.base.d.ts +1 -6
  8. package/dist/web/v2/types/types.cacheLog.d.ts +37 -558
  9. package/dist/web/v2/types/types.endpoint.d.ts +5 -20
  10. package/dist/web/v2/types/types.log.d.ts +5 -20
  11. package/dist/web/v2/types/types.preset.d.ts +5 -20
  12. package/dist/web/v2/types/types.requestLog.d.ts +5 -20
  13. package/dist/web/v2/types/types.scheduling.d.ts +5 -20
  14. package/dist/web/v2/types/types.socket.d.ts +5 -20
  15. package/dist/web/v2/utils/dates.d.ts +4 -0
  16. package/dist/web/v2/utils/sizeFormat.d.ts +0 -1
  17. package/package.json +1 -1
  18. package/dist/web/v2/components/logs/cache/common/CacheSummaryStat.d.ts +0 -7
  19. package/dist/web/v2/components/logs/cache/common/CacheTraceDialog.d.ts +0 -8
  20. package/dist/web/v2/components/logs/cache/common/CacheValueDialog.d.ts +0 -8
  21. package/dist/web/v2/components/logs/cache/common/DetailField.d.ts +0 -7
  22. package/dist/web/v2/components/logs/cache/common/MutedText.d.ts +0 -4
  23. package/dist/web/v2/components/logs/cache/insights/CacheInsights.d.ts +0 -10
  24. package/dist/web/v2/components/logs/cache/insights/CacheInsightsKeySection.d.ts +0 -7
  25. package/dist/web/v2/components/logs/cache/insights/CacheInsightsKpiRow.d.ts +0 -8
  26. package/dist/web/v2/components/logs/cache/insights/CacheInsightsOverview.d.ts +0 -8
  27. package/dist/web/v2/components/logs/cache/insights/CacheInsightsTagSection.d.ts +0 -7
  28. package/dist/web/v2/components/logs/cache/insights/CacheProblemPanels.d.ts +0 -7
  29. package/dist/web/v2/components/logs/cache/insights/CacheTagInsights.d.ts +0 -20
  30. package/dist/web/v2/components/logs/cache/key-detail/CacheKeyDetailActions.d.ts +0 -12
  31. package/dist/web/v2/components/logs/cache/key-detail/CacheKeyDetailLogsTab.d.ts +0 -3
  32. package/dist/web/v2/components/logs/cache/key-detail/CacheKeyDetailModal.d.ts +0 -18
  33. package/dist/web/v2/components/logs/cache/key-detail/CacheKeyDetailSummary.d.ts +0 -17
  34. package/dist/web/v2/components/logs/cache/key-detail/CacheKeyDetailTimelineTab.d.ts +0 -7
  35. package/dist/web/v2/components/logs/cache/key-detail/CacheKeyDetailTracesTab.d.ts +0 -3
  36. package/dist/web/v2/components/logs/cache/logs/CacheDataCard.d.ts +0 -30
  37. package/dist/web/v2/components/logs/cache/logs/CacheFiltersCard.d.ts +0 -15
  38. package/dist/web/v2/components/logs/cache/logs/CacheLogsSection.d.ts +0 -1
  39. package/dist/web/v2/components/logs/cache/logs/CacheLogsTable.d.ts +0 -7
  40. package/dist/web/v2/components/logs/cache/logs/CacheSummaryTable.d.ts +0 -8
  41. package/dist/web/v2/components/logs/cache/modals/CacheTagDetailModal.d.ts +0 -11
  42. package/dist/web/v2/hooks/useCacheInsights.d.ts +0 -308
  43. package/dist/web/v2/utils/cache/cacheInsightsMappers.d.ts +0 -6
  44. package/dist/web/v2/utils/cache/cacheInsightsMetrics.d.ts +0 -24
  45. package/dist/web/v2/utils/cache/cacheTraceInsights.d.ts +0 -35
  46. package/dist/web/v2/utils/cacheFormat.d.ts +0 -7
  47. package/dist/web/v2/utils/cacheUtils.d.ts +0 -2
@@ -21,12 +21,7 @@ export type CacheTraceType = z.infer<typeof cacheTraceSchema>;
21
21
  export declare const cacheTraceQuerySchema: z.ZodObject<{
22
22
  beforeDate: z.ZodOptional<z.ZodString>;
23
23
  afterDate: z.ZodOptional<z.ZodString>;
24
- orderBy: z.ZodOptional<z.ZodEnum<{
25
- timestamp: "timestamp";
26
- duration: "duration";
27
- level: "level";
28
- path: "path";
29
- }>>;
24
+ orderBy: z.ZodOptional<z.ZodString>;
30
25
  orderDirection: z.ZodOptional<z.ZodEnum<{
31
26
  asc: "asc";
32
27
  desc: "desc";
@@ -55,12 +50,7 @@ export type CacheLogType = z.infer<typeof cacheLogSchema>;
55
50
  export declare const cacheLogQuerySchema: z.ZodObject<{
56
51
  beforeDate: z.ZodOptional<z.ZodString>;
57
52
  afterDate: z.ZodOptional<z.ZodString>;
58
- orderBy: z.ZodOptional<z.ZodEnum<{
59
- timestamp: "timestamp";
60
- duration: "duration";
61
- level: "level";
62
- path: "path";
63
- }>>;
53
+ orderBy: z.ZodOptional<z.ZodString>;
64
54
  orderDirection: z.ZodOptional<z.ZodEnum<{
65
55
  asc: "asc";
66
56
  desc: "desc";
@@ -70,140 +60,10 @@ export declare const cacheLogQuerySchema: z.ZodObject<{
70
60
  groupsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
71
61
  tagsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
72
62
  tagsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
73
- operationsInclude: z.ZodOptional<z.ZodArray<z.ZodEnum<{
74
- delete: "delete";
75
- hit: "hit";
76
- miss: "miss";
77
- set: "set";
78
- }>>>;
79
- operationsExclude: z.ZodOptional<z.ZodArray<z.ZodEnum<{
80
- delete: "delete";
81
- hit: "hit";
82
- miss: "miss";
83
- set: "set";
84
- }>>>;
85
- keys: z.ZodOptional<z.ZodArray<z.ZodString>>;
86
- keySearch: z.ZodOptional<z.ZodString>;
63
+ keysInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
64
+ keysExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
87
65
  }, z.core.$strip>;
88
66
  export type CacheLogsFilter = z.infer<typeof cacheLogQuerySchema> & z.infer<typeof paginationSchema>;
89
- export declare const cacheSummarySchema: z.ZodObject<{
90
- key: z.ZodString;
91
- lastSetAt: z.ZodNullable<z.ZodNumber>;
92
- lastHitAt: z.ZodNullable<z.ZodNumber>;
93
- lastMissAt: z.ZodNullable<z.ZodNumber>;
94
- totalHits: z.ZodNumber;
95
- totalMisses: z.ZodNumber;
96
- totalSets: z.ZodNumber;
97
- sizeBytes: z.ZodOptional<z.ZodNumber>;
98
- }, z.core.$strip>;
99
- export type CacheSummaryType = z.infer<typeof cacheSummarySchema>;
100
- export declare const cacheKeyInsightSchema: z.ZodObject<{
101
- key: z.ZodString;
102
- currentSizeBytes: z.ZodNullable<z.ZodNumber>;
103
- lastSetAt: z.ZodNullable<z.ZodNumber>;
104
- lastDeleteAt: z.ZodNullable<z.ZodNumber>;
105
- lastHitAt: z.ZodNullable<z.ZodNumber>;
106
- lastMissAt: z.ZodNullable<z.ZodNumber>;
107
- lastActivityAt: z.ZodNullable<z.ZodNumber>;
108
- totalHits: z.ZodNumber;
109
- totalMisses: z.ZodNumber;
110
- totalSets: z.ZodNumber;
111
- totalDeletes: z.ZodNumber;
112
- hitsSinceLastSet: z.ZodNumber;
113
- missesSinceLastSet: z.ZodNumber;
114
- deletesSinceLastSet: z.ZodNumber;
115
- avgTimeBetweenSetsMs: z.ZodNullable<z.ZodNumber>;
116
- avgHitsBetweenSets: z.ZodNullable<z.ZodNumber>;
117
- avgMissesBetweenSets: z.ZodNullable<z.ZodNumber>;
118
- hitRate: z.ZodNumber;
119
- missRate: z.ZodNumber;
120
- }, z.core.$strip>;
121
- export declare const cacheTagInsightSchema: z.ZodObject<{
122
- tag: z.ZodString;
123
- approxCurrentSizeBytes: z.ZodNullable<z.ZodNumber>;
124
- totalHits: z.ZodNumber;
125
- totalMisses: z.ZodNumber;
126
- totalSets: z.ZodNumber;
127
- totalDeletes: z.ZodNumber;
128
- avgTimeBetweenSetsMs: z.ZodNullable<z.ZodNumber>;
129
- avgHitsBetweenSets: z.ZodNullable<z.ZodNumber>;
130
- avgMissesBetweenSets: z.ZodNullable<z.ZodNumber>;
131
- hitRate: z.ZodNumber;
132
- missRate: z.ZodNumber;
133
- }, z.core.$strip>;
134
- export declare const cacheInsightsSchema: z.ZodObject<{
135
- computedAt: z.ZodNumber;
136
- windowStart: z.ZodNullable<z.ZodNumber>;
137
- windowEnd: z.ZodNullable<z.ZodNumber>;
138
- groupBy: z.ZodEnum<{
139
- key: "key";
140
- tag: "tag";
141
- both: "both";
142
- }>;
143
- keys: z.ZodOptional<z.ZodArray<z.ZodObject<{
144
- key: z.ZodString;
145
- currentSizeBytes: z.ZodNullable<z.ZodNumber>;
146
- lastSetAt: z.ZodNullable<z.ZodNumber>;
147
- lastDeleteAt: z.ZodNullable<z.ZodNumber>;
148
- lastHitAt: z.ZodNullable<z.ZodNumber>;
149
- lastMissAt: z.ZodNullable<z.ZodNumber>;
150
- lastActivityAt: z.ZodNullable<z.ZodNumber>;
151
- totalHits: z.ZodNumber;
152
- totalMisses: z.ZodNumber;
153
- totalSets: z.ZodNumber;
154
- totalDeletes: z.ZodNumber;
155
- hitsSinceLastSet: z.ZodNumber;
156
- missesSinceLastSet: z.ZodNumber;
157
- deletesSinceLastSet: z.ZodNumber;
158
- avgTimeBetweenSetsMs: z.ZodNullable<z.ZodNumber>;
159
- avgHitsBetweenSets: z.ZodNullable<z.ZodNumber>;
160
- avgMissesBetweenSets: z.ZodNullable<z.ZodNumber>;
161
- hitRate: z.ZodNumber;
162
- missRate: z.ZodNumber;
163
- }, z.core.$strip>>>;
164
- tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
165
- tag: z.ZodString;
166
- approxCurrentSizeBytes: z.ZodNullable<z.ZodNumber>;
167
- totalHits: z.ZodNumber;
168
- totalMisses: z.ZodNumber;
169
- totalSets: z.ZodNumber;
170
- totalDeletes: z.ZodNumber;
171
- avgTimeBetweenSetsMs: z.ZodNullable<z.ZodNumber>;
172
- avgHitsBetweenSets: z.ZodNullable<z.ZodNumber>;
173
- avgMissesBetweenSets: z.ZodNullable<z.ZodNumber>;
174
- hitRate: z.ZodNumber;
175
- missRate: z.ZodNumber;
176
- }, z.core.$strip>>>;
177
- }, z.core.$strip>;
178
- export type CacheKeyInsight = z.infer<typeof cacheKeyInsightSchema>;
179
- export type CacheTagInsight = z.infer<typeof cacheTagInsightSchema>;
180
- export type CacheInsights = z.infer<typeof cacheInsightsSchema>;
181
- export declare const cacheInsightsQuerySchema: z.ZodObject<{
182
- beforeDate: z.ZodOptional<z.ZodString>;
183
- afterDate: z.ZodOptional<z.ZodString>;
184
- orderBy: z.ZodOptional<z.ZodEnum<{
185
- timestamp: "timestamp";
186
- duration: "duration";
187
- level: "level";
188
- path: "path";
189
- }>>;
190
- orderDirection: z.ZodOptional<z.ZodEnum<{
191
- asc: "asc";
192
- desc: "desc";
193
- }>>;
194
- searchQuery: z.ZodOptional<z.ZodString>;
195
- groupsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
196
- groupsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
197
- tagsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
198
- tagsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
199
- keys: z.ZodOptional<z.ZodArray<z.ZodString>>;
200
- groupBy: z.ZodDefault<z.ZodEnum<{
201
- key: "key";
202
- tag: "tag";
203
- both: "both";
204
- }>>;
205
- }, z.core.$strip>;
206
- export type CacheInsightsFilter = z.infer<typeof cacheInsightsQuerySchema>;
207
67
  export declare const cacheLeaves: readonly [{
208
68
  readonly method: "get";
209
69
  readonly path: "cache";
@@ -248,12 +108,7 @@ export declare const cacheLeaves: readonly [{
248
108
  querySchema: z.ZodObject<{
249
109
  beforeDate: z.ZodOptional<z.ZodString>;
250
110
  afterDate: z.ZodOptional<z.ZodString>;
251
- orderBy: z.ZodOptional<z.ZodEnum<{
252
- timestamp: "timestamp";
253
- duration: "duration";
254
- level: "level";
255
- path: "path";
256
- }>>;
111
+ orderBy: z.ZodOptional<z.ZodString>;
257
112
  orderDirection: z.ZodOptional<z.ZodEnum<{
258
113
  asc: "asc";
259
114
  desc: "desc";
@@ -263,20 +118,8 @@ export declare const cacheLeaves: readonly [{
263
118
  groupsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
264
119
  tagsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
265
120
  tagsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
266
- operationsInclude: z.ZodOptional<z.ZodArray<z.ZodEnum<{
267
- delete: "delete";
268
- hit: "hit";
269
- miss: "miss";
270
- set: "set";
271
- }>>>;
272
- operationsExclude: z.ZodOptional<z.ZodArray<z.ZodEnum<{
273
- delete: "delete";
274
- hit: "hit";
275
- miss: "miss";
276
- set: "set";
277
- }>>>;
278
- keys: z.ZodOptional<z.ZodArray<z.ZodString>>;
279
- keySearch: z.ZodOptional<z.ZodString>;
121
+ keysInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
122
+ keysExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
280
123
  }, z.core.$strip>;
281
124
  outputMetaSchema: z.ZodObject<{
282
125
  totalCount: z.ZodOptional<z.ZodNumber>;
@@ -315,12 +158,7 @@ export declare const cacheLeaves: readonly [{
315
158
  querySchema: z.ZodObject<{
316
159
  beforeDate: z.ZodOptional<z.ZodString>;
317
160
  afterDate: z.ZodOptional<z.ZodString>;
318
- orderBy: z.ZodOptional<z.ZodEnum<{
319
- timestamp: "timestamp";
320
- duration: "duration";
321
- level: "level";
322
- path: "path";
323
- }>>;
161
+ orderBy: z.ZodOptional<z.ZodString>;
324
162
  orderDirection: z.ZodOptional<z.ZodEnum<{
325
163
  asc: "asc";
326
164
  desc: "desc";
@@ -330,20 +168,8 @@ export declare const cacheLeaves: readonly [{
330
168
  groupsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
331
169
  tagsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
332
170
  tagsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
333
- operationsInclude: z.ZodOptional<z.ZodArray<z.ZodEnum<{
334
- delete: "delete";
335
- hit: "hit";
336
- miss: "miss";
337
- set: "set";
338
- }>>>;
339
- operationsExclude: z.ZodOptional<z.ZodArray<z.ZodEnum<{
340
- delete: "delete";
341
- hit: "hit";
342
- miss: "miss";
343
- set: "set";
344
- }>>>;
345
- keys: z.ZodOptional<z.ZodArray<z.ZodString>>;
346
- keySearch: z.ZodOptional<z.ZodString>;
171
+ keysInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
172
+ keysExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
347
173
  }, z.core.$strip>;
348
174
  outputMetaSchema: z.ZodObject<{
349
175
  totalCount: z.ZodOptional<z.ZodNumber>;
@@ -389,34 +215,30 @@ export declare const cacheLeaves: readonly [{
389
215
  querySchema: import("@emeryld/rrroutes-contract").RouteSchema<{
390
216
  beforeDate?: string | undefined;
391
217
  afterDate?: string | undefined;
392
- orderBy?: "timestamp" | "duration" | "level" | "path" | undefined;
218
+ orderBy?: string | undefined;
393
219
  orderDirection?: "asc" | "desc" | undefined;
394
220
  searchQuery?: string | undefined;
395
221
  groupsInclude?: string[] | undefined;
396
222
  groupsExclude?: string[] | undefined;
397
223
  tagsInclude?: string[] | undefined;
398
224
  tagsExclude?: string[] | undefined;
399
- operationsInclude?: ("delete" | "hit" | "miss" | "set")[] | undefined;
400
- operationsExclude?: ("delete" | "hit" | "miss" | "set")[] | undefined;
401
- keys?: string[] | undefined;
402
- keySearch?: string | undefined;
225
+ keysInclude?: string[] | undefined;
226
+ keysExclude?: string[] | undefined;
403
227
  } & {
404
228
  cursor?: string | undefined;
405
229
  pageSize?: number | undefined;
406
230
  }, {
407
231
  beforeDate?: string | undefined;
408
232
  afterDate?: string | undefined;
409
- orderBy?: "timestamp" | "duration" | "level" | "path" | undefined;
233
+ orderBy?: string | undefined;
410
234
  orderDirection?: "asc" | "desc" | undefined;
411
235
  searchQuery?: string | undefined;
412
236
  groupsInclude?: string[] | undefined;
413
237
  groupsExclude?: string[] | undefined;
414
238
  tagsInclude?: string[] | undefined;
415
239
  tagsExclude?: string[] | undefined;
416
- operationsInclude?: ("delete" | "hit" | "miss" | "set")[] | undefined;
417
- operationsExclude?: ("delete" | "hit" | "miss" | "set")[] | undefined;
418
- keys?: string[] | undefined;
419
- keySearch?: string | undefined;
240
+ keysInclude?: string[] | undefined;
241
+ keysExclude?: string[] | undefined;
420
242
  } & {
421
243
  cursor?: string | undefined;
422
244
  pageSize?: unknown;
@@ -501,12 +323,7 @@ export declare const cacheLeaves: readonly [{
501
323
  querySchema: z.ZodObject<{
502
324
  beforeDate: z.ZodOptional<z.ZodString>;
503
325
  afterDate: z.ZodOptional<z.ZodString>;
504
- orderBy: z.ZodOptional<z.ZodEnum<{
505
- timestamp: "timestamp";
506
- duration: "duration";
507
- level: "level";
508
- path: "path";
509
- }>>;
326
+ orderBy: z.ZodOptional<z.ZodString>;
510
327
  orderDirection: z.ZodOptional<z.ZodEnum<{
511
328
  asc: "asc";
512
329
  desc: "desc";
@@ -556,12 +373,7 @@ export declare const cacheLeaves: readonly [{
556
373
  querySchema: z.ZodObject<{
557
374
  beforeDate: z.ZodOptional<z.ZodString>;
558
375
  afterDate: z.ZodOptional<z.ZodString>;
559
- orderBy: z.ZodOptional<z.ZodEnum<{
560
- timestamp: "timestamp";
561
- duration: "duration";
562
- level: "level";
563
- path: "path";
564
- }>>;
376
+ orderBy: z.ZodOptional<z.ZodString>;
565
377
  orderDirection: z.ZodOptional<z.ZodEnum<{
566
378
  asc: "asc";
567
379
  desc: "desc";
@@ -616,7 +428,7 @@ export declare const cacheLeaves: readonly [{
616
428
  querySchema: import("@emeryld/rrroutes-contract").RouteSchema<{
617
429
  beforeDate?: string | undefined;
618
430
  afterDate?: string | undefined;
619
- orderBy?: "timestamp" | "duration" | "level" | "path" | undefined;
431
+ orderBy?: string | undefined;
620
432
  orderDirection?: "asc" | "desc" | undefined;
621
433
  searchQuery?: string | undefined;
622
434
  groupsInclude?: string[] | undefined;
@@ -629,7 +441,7 @@ export declare const cacheLeaves: readonly [{
629
441
  }, {
630
442
  beforeDate?: string | undefined;
631
443
  afterDate?: string | undefined;
632
- orderBy?: "timestamp" | "duration" | "level" | "path" | undefined;
444
+ orderBy?: string | undefined;
633
445
  orderDirection?: "asc" | "desc" | undefined;
634
446
  searchQuery?: string | undefined;
635
447
  groupsInclude?: string[] | undefined;
@@ -697,315 +509,20 @@ export declare const cacheLeaves: readonly [{
697
509
  cacheKey: string;
698
510
  }>;
699
511
  }>>;
700
- }, {
701
- readonly method: "get";
702
- readonly path: "cache/insights";
703
- 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"> & {
704
- queryExtensionSchema: C_1["queryExtensionSchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? C_1["queryExtensionSchema"] : undefined;
705
- outputMetaSchema: C_1["outputMetaSchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? C_1["outputMetaSchema"] : undefined;
706
- }> 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 ? {
707
- feed: true;
708
- } : {
709
- feed?: boolean;
710
- }) & import("@emeryld/rrroutes-contract").FeedQueryField<WithDefaults> & import("@emeryld/rrroutes-contract").OutputField<WithDefaults> & (WithDefaults["paramsSchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? {
711
- paramsSchema: WithDefaults["paramsSchema"];
712
- } : {
713
- paramsSchema: undefined;
714
- }) : (WithDefaults["feed"] extends true ? {
715
- feed: true;
716
- } : {
717
- feed?: boolean;
718
- }) & (WithDefaults["querySchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? {
719
- querySchema: WithDefaults["querySchema"];
720
- } : {
721
- querySchema?: undefined;
722
- }) & import("@emeryld/rrroutes-contract").OutputField<WithDefaults> & (WithDefaults["paramsSchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? {
723
- paramsSchema: WithDefaults["paramsSchema"];
724
- } : {
725
- paramsSchema: undefined;
726
- }))> : 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<{
727
- outputSchema: z.ZodObject<{
728
- computedAt: z.ZodNumber;
729
- windowStart: z.ZodNullable<z.ZodNumber>;
730
- windowEnd: z.ZodNullable<z.ZodNumber>;
731
- groupBy: z.ZodEnum<{
732
- key: "key";
733
- tag: "tag";
734
- both: "both";
735
- }>;
736
- keys: z.ZodOptional<z.ZodArray<z.ZodObject<{
737
- key: z.ZodString;
738
- currentSizeBytes: z.ZodNullable<z.ZodNumber>;
739
- lastSetAt: z.ZodNullable<z.ZodNumber>;
740
- lastDeleteAt: z.ZodNullable<z.ZodNumber>;
741
- lastHitAt: z.ZodNullable<z.ZodNumber>;
742
- lastMissAt: z.ZodNullable<z.ZodNumber>;
743
- lastActivityAt: z.ZodNullable<z.ZodNumber>;
744
- totalHits: z.ZodNumber;
745
- totalMisses: z.ZodNumber;
746
- totalSets: z.ZodNumber;
747
- totalDeletes: z.ZodNumber;
748
- hitsSinceLastSet: z.ZodNumber;
749
- missesSinceLastSet: z.ZodNumber;
750
- deletesSinceLastSet: z.ZodNumber;
751
- avgTimeBetweenSetsMs: z.ZodNullable<z.ZodNumber>;
752
- avgHitsBetweenSets: z.ZodNullable<z.ZodNumber>;
753
- avgMissesBetweenSets: z.ZodNullable<z.ZodNumber>;
754
- hitRate: z.ZodNumber;
755
- missRate: z.ZodNumber;
756
- }, z.core.$strip>>>;
757
- tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
758
- tag: z.ZodString;
759
- approxCurrentSizeBytes: z.ZodNullable<z.ZodNumber>;
760
- totalHits: z.ZodNumber;
761
- totalMisses: z.ZodNumber;
762
- totalSets: z.ZodNumber;
763
- totalDeletes: z.ZodNumber;
764
- avgTimeBetweenSetsMs: z.ZodNullable<z.ZodNumber>;
765
- avgHitsBetweenSets: z.ZodNullable<z.ZodNumber>;
766
- avgMissesBetweenSets: z.ZodNullable<z.ZodNumber>;
767
- hitRate: z.ZodNumber;
768
- missRate: z.ZodNumber;
769
- }, z.core.$strip>>>;
770
- }, z.core.$strip>;
771
- querySchema: z.ZodObject<{
772
- beforeDate: z.ZodOptional<z.ZodString>;
773
- afterDate: z.ZodOptional<z.ZodString>;
774
- orderBy: z.ZodOptional<z.ZodEnum<{
775
- timestamp: "timestamp";
776
- duration: "duration";
777
- level: "level";
778
- path: "path";
779
- }>>;
780
- orderDirection: z.ZodOptional<z.ZodEnum<{
781
- asc: "asc";
782
- desc: "desc";
783
- }>>;
784
- searchQuery: z.ZodOptional<z.ZodString>;
785
- groupsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
786
- groupsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
787
- tagsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
788
- tagsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
789
- keys: z.ZodOptional<z.ZodArray<z.ZodString>>;
790
- groupBy: z.ZodDefault<z.ZodEnum<{
791
- key: "key";
792
- tag: "tag";
793
- both: "both";
794
- }>>;
795
- }, z.core.$strip>;
796
- }, "queryExtensionSchema" | "outputMetaSchema"> & {
797
- queryExtensionSchema: undefined;
798
- outputMetaSchema: undefined;
799
- }>, "querySchema" | "outputSchema" | "feed">> & {
800
- feed?: boolean;
801
- } & {
802
- querySchema: z.ZodObject<{
803
- beforeDate: z.ZodOptional<z.ZodString>;
804
- afterDate: z.ZodOptional<z.ZodString>;
805
- orderBy: z.ZodOptional<z.ZodEnum<{
806
- timestamp: "timestamp";
807
- duration: "duration";
808
- level: "level";
809
- path: "path";
810
- }>>;
811
- orderDirection: z.ZodOptional<z.ZodEnum<{
812
- asc: "asc";
813
- desc: "desc";
814
- }>>;
815
- searchQuery: z.ZodOptional<z.ZodString>;
816
- groupsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
817
- groupsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
818
- tagsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
819
- tagsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
820
- keys: z.ZodOptional<z.ZodArray<z.ZodString>>;
821
- groupBy: z.ZodDefault<z.ZodEnum<{
822
- key: "key";
823
- tag: "tag";
824
- both: "both";
825
- }>>;
826
- }, z.core.$strip>;
827
- } & {
828
- outputSchema: z.ZodObject<{
829
- out: z.ZodObject<{
830
- computedAt: z.ZodNumber;
831
- windowStart: z.ZodNullable<z.ZodNumber>;
832
- windowEnd: z.ZodNullable<z.ZodNumber>;
833
- groupBy: z.ZodEnum<{
834
- key: "key";
835
- tag: "tag";
836
- both: "both";
837
- }>;
838
- keys: z.ZodOptional<z.ZodArray<z.ZodObject<{
839
- key: z.ZodString;
840
- currentSizeBytes: z.ZodNullable<z.ZodNumber>;
841
- lastSetAt: z.ZodNullable<z.ZodNumber>;
842
- lastDeleteAt: z.ZodNullable<z.ZodNumber>;
843
- lastHitAt: z.ZodNullable<z.ZodNumber>;
844
- lastMissAt: z.ZodNullable<z.ZodNumber>;
845
- lastActivityAt: z.ZodNullable<z.ZodNumber>;
846
- totalHits: z.ZodNumber;
847
- totalMisses: z.ZodNumber;
848
- totalSets: z.ZodNumber;
849
- totalDeletes: z.ZodNumber;
850
- hitsSinceLastSet: z.ZodNumber;
851
- missesSinceLastSet: z.ZodNumber;
852
- deletesSinceLastSet: z.ZodNumber;
853
- avgTimeBetweenSetsMs: z.ZodNullable<z.ZodNumber>;
854
- avgHitsBetweenSets: z.ZodNullable<z.ZodNumber>;
855
- avgMissesBetweenSets: z.ZodNullable<z.ZodNumber>;
856
- hitRate: z.ZodNumber;
857
- missRate: z.ZodNumber;
858
- }, z.core.$strip>>>;
859
- tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
860
- tag: z.ZodString;
861
- approxCurrentSizeBytes: z.ZodNullable<z.ZodNumber>;
862
- totalHits: z.ZodNumber;
863
- totalMisses: z.ZodNumber;
864
- totalSets: z.ZodNumber;
865
- totalDeletes: z.ZodNumber;
866
- avgTimeBetweenSetsMs: z.ZodNullable<z.ZodNumber>;
867
- avgHitsBetweenSets: z.ZodNullable<z.ZodNumber>;
868
- avgMissesBetweenSets: z.ZodNullable<z.ZodNumber>;
869
- hitRate: z.ZodNumber;
870
- missRate: z.ZodNumber;
871
- }, z.core.$strip>>>;
872
- }, z.core.$strip>;
873
- meta: z.ZodOptional<z.ZodString>;
874
- }, z.core.$strip>;
875
- } & {
876
- paramsSchema: undefined;
877
- }>, "outputMetaSchema" | "bodySchema" | "querySchema" | "paramsSchema" | "outputSchema"> & {
878
- bodySchema: import("@emeryld/rrroutes-contract").RouteSchema<unknown, unknown> | undefined;
879
- querySchema: import("@emeryld/rrroutes-contract").RouteSchema<{
880
- groupBy: "key" | "tag" | "both";
881
- beforeDate?: string | undefined;
882
- afterDate?: string | undefined;
883
- orderBy?: "timestamp" | "duration" | "level" | "path" | undefined;
884
- orderDirection?: "asc" | "desc" | undefined;
885
- searchQuery?: string | undefined;
886
- groupsInclude?: string[] | undefined;
887
- groupsExclude?: string[] | undefined;
888
- tagsInclude?: string[] | undefined;
889
- tagsExclude?: string[] | undefined;
890
- keys?: string[] | undefined;
891
- }, {
892
- beforeDate?: string | undefined;
893
- afterDate?: string | undefined;
894
- orderBy?: "timestamp" | "duration" | "level" | "path" | undefined;
895
- orderDirection?: "asc" | "desc" | undefined;
896
- searchQuery?: string | undefined;
897
- groupsInclude?: string[] | undefined;
898
- groupsExclude?: string[] | undefined;
899
- tagsInclude?: string[] | undefined;
900
- tagsExclude?: string[] | undefined;
901
- keys?: string[] | undefined;
902
- groupBy?: "key" | "tag" | "both" | undefined;
903
- }>;
904
- paramsSchema: undefined;
905
- outputSchema: import("@emeryld/rrroutes-contract").RouteSchema<{
906
- out: {
907
- computedAt: number;
908
- windowStart: number | null;
909
- windowEnd: number | null;
910
- groupBy: "key" | "tag" | "both";
911
- keys?: {
912
- key: string;
913
- currentSizeBytes: number | null;
914
- lastSetAt: number | null;
915
- lastDeleteAt: number | null;
916
- lastHitAt: number | null;
917
- lastMissAt: number | null;
918
- lastActivityAt: number | null;
919
- totalHits: number;
920
- totalMisses: number;
921
- totalSets: number;
922
- totalDeletes: number;
923
- hitsSinceLastSet: number;
924
- missesSinceLastSet: number;
925
- deletesSinceLastSet: number;
926
- avgTimeBetweenSetsMs: number | null;
927
- avgHitsBetweenSets: number | null;
928
- avgMissesBetweenSets: number | null;
929
- hitRate: number;
930
- missRate: number;
931
- }[] | undefined;
932
- tags?: {
933
- tag: string;
934
- approxCurrentSizeBytes: number | null;
935
- totalHits: number;
936
- totalMisses: number;
937
- totalSets: number;
938
- totalDeletes: number;
939
- avgTimeBetweenSetsMs: number | null;
940
- avgHitsBetweenSets: number | null;
941
- avgMissesBetweenSets: number | null;
942
- hitRate: number;
943
- missRate: number;
944
- }[] | undefined;
945
- };
946
- meta?: string | undefined;
947
- }, {
948
- out: {
949
- computedAt: number;
950
- windowStart: number | null;
951
- windowEnd: number | null;
952
- groupBy: "key" | "tag" | "both";
953
- keys?: {
954
- key: string;
955
- currentSizeBytes: number | null;
956
- lastSetAt: number | null;
957
- lastDeleteAt: number | null;
958
- lastHitAt: number | null;
959
- lastMissAt: number | null;
960
- lastActivityAt: number | null;
961
- totalHits: number;
962
- totalMisses: number;
963
- totalSets: number;
964
- totalDeletes: number;
965
- hitsSinceLastSet: number;
966
- missesSinceLastSet: number;
967
- deletesSinceLastSet: number;
968
- avgTimeBetweenSetsMs: number | null;
969
- avgHitsBetweenSets: number | null;
970
- avgMissesBetweenSets: number | null;
971
- hitRate: number;
972
- missRate: number;
973
- }[] | undefined;
974
- tags?: {
975
- tag: string;
976
- approxCurrentSizeBytes: number | null;
977
- totalHits: number;
978
- totalMisses: number;
979
- totalSets: number;
980
- totalDeletes: number;
981
- avgTimeBetweenSetsMs: number | null;
982
- avgHitsBetweenSets: number | null;
983
- avgMissesBetweenSets: number | null;
984
- hitRate: number;
985
- missRate: number;
986
- }[] | undefined;
987
- };
988
- meta?: string | undefined;
989
- }>;
990
- outputMetaSchema: undefined;
991
- queryExtensionSchema: undefined;
992
- }>>>, "paramsSchema"> & {
993
- paramsSchema: undefined;
994
- }>>;
995
512
  }, {
996
513
  readonly method: "post";
997
514
  readonly path: "cache/clear";
998
- 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<import("@emeryld/rrroutes-contract").Prettify<Omit<C_2, "feed"> & {
515
+ 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<import("@emeryld/rrroutes-contract").Prettify<Omit<C_1, "feed"> & {
999
516
  feed: false;
1000
517
  }>, "queryExtensionSchema" | "outputMetaSchema"> & {
1001
- queryExtensionSchema: import("@emeryld/rrroutes-contract").Prettify<Omit<C_2, "feed"> & {
518
+ queryExtensionSchema: import("@emeryld/rrroutes-contract").Prettify<Omit<C_1, "feed"> & {
1002
519
  feed: false;
1003
- }>["queryExtensionSchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? import("@emeryld/rrroutes-contract").Prettify<Omit<C_2, "feed"> & {
520
+ }>["queryExtensionSchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? import("@emeryld/rrroutes-contract").Prettify<Omit<C_1, "feed"> & {
1004
521
  feed: false;
1005
522
  }>["queryExtensionSchema"] : undefined;
1006
- outputMetaSchema: import("@emeryld/rrroutes-contract").Prettify<Omit<C_2, "feed"> & {
523
+ outputMetaSchema: import("@emeryld/rrroutes-contract").Prettify<Omit<C_1, "feed"> & {
1007
524
  feed: false;
1008
- }>["outputMetaSchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? import("@emeryld/rrroutes-contract").Prettify<Omit<C_2, "feed"> & {
525
+ }>["outputMetaSchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? import("@emeryld/rrroutes-contract").Prettify<Omit<C_1, "feed"> & {
1009
526
  feed: false;
1010
527
  }>["outputMetaSchema"] : undefined;
1011
528
  }> 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 ? {
@@ -1035,12 +552,7 @@ export declare const cacheLeaves: readonly [{
1035
552
  querySchema: z.ZodObject<{
1036
553
  beforeDate: z.ZodOptional<z.ZodString>;
1037
554
  afterDate: z.ZodOptional<z.ZodString>;
1038
- orderBy: z.ZodOptional<z.ZodEnum<{
1039
- timestamp: "timestamp";
1040
- duration: "duration";
1041
- level: "level";
1042
- path: "path";
1043
- }>>;
555
+ orderBy: z.ZodOptional<z.ZodString>;
1044
556
  orderDirection: z.ZodOptional<z.ZodEnum<{
1045
557
  asc: "asc";
1046
558
  desc: "desc";
@@ -1050,20 +562,8 @@ export declare const cacheLeaves: readonly [{
1050
562
  groupsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
1051
563
  tagsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
1052
564
  tagsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
1053
- operationsInclude: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1054
- delete: "delete";
1055
- hit: "hit";
1056
- miss: "miss";
1057
- set: "set";
1058
- }>>>;
1059
- operationsExclude: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1060
- delete: "delete";
1061
- hit: "hit";
1062
- miss: "miss";
1063
- set: "set";
1064
- }>>>;
1065
- keys: z.ZodOptional<z.ZodArray<z.ZodString>>;
1066
- keySearch: z.ZodOptional<z.ZodString>;
565
+ keysInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
566
+ keysExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
1067
567
  }, z.core.$strip>;
1068
568
  }, "feed"> & {
1069
569
  feed: false;
@@ -1076,12 +576,7 @@ export declare const cacheLeaves: readonly [{
1076
576
  querySchema: z.ZodObject<{
1077
577
  beforeDate: z.ZodOptional<z.ZodString>;
1078
578
  afterDate: z.ZodOptional<z.ZodString>;
1079
- orderBy: z.ZodOptional<z.ZodEnum<{
1080
- timestamp: "timestamp";
1081
- duration: "duration";
1082
- level: "level";
1083
- path: "path";
1084
- }>>;
579
+ orderBy: z.ZodOptional<z.ZodString>;
1085
580
  orderDirection: z.ZodOptional<z.ZodEnum<{
1086
581
  asc: "asc";
1087
582
  desc: "desc";
@@ -1091,20 +586,8 @@ export declare const cacheLeaves: readonly [{
1091
586
  groupsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
1092
587
  tagsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
1093
588
  tagsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
1094
- operationsInclude: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1095
- delete: "delete";
1096
- hit: "hit";
1097
- miss: "miss";
1098
- set: "set";
1099
- }>>>;
1100
- operationsExclude: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1101
- delete: "delete";
1102
- hit: "hit";
1103
- miss: "miss";
1104
- set: "set";
1105
- }>>>;
1106
- keys: z.ZodOptional<z.ZodArray<z.ZodString>>;
1107
- keySearch: z.ZodOptional<z.ZodString>;
589
+ keysInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
590
+ keysExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
1108
591
  }, z.core.$strip>;
1109
592
  } & {
1110
593
  outputSchema: z.ZodObject<{
@@ -1120,31 +603,27 @@ export declare const cacheLeaves: readonly [{
1120
603
  querySchema: import("@emeryld/rrroutes-contract").RouteSchema<{
1121
604
  beforeDate?: string | undefined;
1122
605
  afterDate?: string | undefined;
1123
- orderBy?: "timestamp" | "duration" | "level" | "path" | undefined;
606
+ orderBy?: string | undefined;
1124
607
  orderDirection?: "asc" | "desc" | undefined;
1125
608
  searchQuery?: string | undefined;
1126
609
  groupsInclude?: string[] | undefined;
1127
610
  groupsExclude?: string[] | undefined;
1128
611
  tagsInclude?: string[] | undefined;
1129
612
  tagsExclude?: string[] | undefined;
1130
- operationsInclude?: ("delete" | "hit" | "miss" | "set")[] | undefined;
1131
- operationsExclude?: ("delete" | "hit" | "miss" | "set")[] | undefined;
1132
- keys?: string[] | undefined;
1133
- keySearch?: string | undefined;
613
+ keysInclude?: string[] | undefined;
614
+ keysExclude?: string[] | undefined;
1134
615
  }, {
1135
616
  beforeDate?: string | undefined;
1136
617
  afterDate?: string | undefined;
1137
- orderBy?: "timestamp" | "duration" | "level" | "path" | undefined;
618
+ orderBy?: string | undefined;
1138
619
  orderDirection?: "asc" | "desc" | undefined;
1139
620
  searchQuery?: string | undefined;
1140
621
  groupsInclude?: string[] | undefined;
1141
622
  groupsExclude?: string[] | undefined;
1142
623
  tagsInclude?: string[] | undefined;
1143
624
  tagsExclude?: string[] | undefined;
1144
- operationsInclude?: ("delete" | "hit" | "miss" | "set")[] | undefined;
1145
- operationsExclude?: ("delete" | "hit" | "miss" | "set")[] | undefined;
1146
- keys?: string[] | undefined;
1147
- keySearch?: string | undefined;
625
+ keysInclude?: string[] | undefined;
626
+ keysExclude?: string[] | undefined;
1148
627
  }>;
1149
628
  paramsSchema: undefined;
1150
629
  outputSchema: import("@emeryld/rrroutes-contract").RouteSchema<{