@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.
@@ -7,8 +7,9 @@ type FeedPaginationProps<TItem> = {
7
7
  hasNextPage?: boolean;
8
8
  isFetchingNextPage?: boolean;
9
9
  pageSize?: number;
10
+ isLoading: boolean;
10
11
  extractItems?: (page: any) => TItem[];
11
12
  children: (items: TItem[]) => ReactNode;
12
13
  };
13
- export default function FeedPagination<TItem>({ data, items: providedItems, fetchNextPage, hasNextPage, isFetchingNextPage, pageSize, extractItems, children, }: FeedPaginationProps<TItem>): import("react/jsx-runtime").JSX.Element;
14
+ export default function FeedPagination<TItem>({ data, items: providedItems, fetchNextPage, hasNextPage, isFetchingNextPage, pageSize, isLoading, extractItems, children, }: FeedPaginationProps<TItem>): import("react/jsx-runtime").JSX.Element;
14
15
  export {};
@@ -7,5 +7,16 @@ type RequestDetailContentProps = {
7
7
  logs?: LogType[];
8
8
  onReplay?: (request: RequestLogType) => void;
9
9
  };
10
+ export type RequestTimelineEvent = {
11
+ kind: 'cache';
12
+ id: string;
13
+ createdAt: number;
14
+ cache: CacheLogType;
15
+ } | {
16
+ kind: 'log';
17
+ id: string;
18
+ createdAt: number;
19
+ log: LogType;
20
+ };
10
21
  export default function RequestDetailContent({ request, caches, logs, onReplay, }: RequestDetailContentProps): import("react/jsx-runtime").JSX.Element;
11
22
  export {};
@@ -0,0 +1,8 @@
1
+ import { CacheLogType } from '../../types/types.cacheLog';
2
+ import { LogType } from '../../types/types.log';
3
+ import { RequestTimelineEvent } from './RequestDetailContent';
4
+ export declare function RequestTimeline({ events, onSelectCache, onSelectLog, }: {
5
+ events: RequestTimelineEvent[];
6
+ onSelectCache?: (cache: CacheLogType) => void;
7
+ onSelectLog?: (log: LogType) => void;
8
+ }): import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,8 @@
1
- import type { CacheSummaryType } from '../../types/types.cacheLog.js';
1
+ import type { CacheLogType, CacheSummaryType } from '../../types/types.cacheLog.js';
2
2
  type CacheSummaryTableProps = {
3
3
  items: CacheSummaryType[];
4
+ logs: CacheLogType[];
4
5
  onSelectKey?: (item: CacheSummaryType, index: number, orderedItems: CacheSummaryType[]) => void;
5
6
  };
6
- export default function CacheSummaryTable({ items, onSelectKey, }: CacheSummaryTableProps): import("react/jsx-runtime").JSX.Element;
7
+ export default function CacheSummaryTable({ items, logs, onSelectKey, }: CacheSummaryTableProps): import("react/jsx-runtime").JSX.Element;
7
8
  export {};
@@ -0,0 +1,16 @@
1
+ export interface CacheTagStat {
2
+ tag: string;
3
+ hits: number;
4
+ misses: number;
5
+ sets: number;
6
+ totalSizeMB: number;
7
+ totalRequests: number;
8
+ hitRate: number;
9
+ missRate: number;
10
+ avgMissDurationMs: number | null;
11
+ }
12
+ type CacheTagInsightsProps = {
13
+ stats: CacheTagStat[];
14
+ };
15
+ export declare const CacheTagInsights: ({ stats }: CacheTagInsightsProps) => import("react/jsx-runtime").JSX.Element | null;
16
+ export {};
@@ -0,0 +1,7 @@
1
+ import type { CacheLogType } from '../../types/types.cacheLog.js';
2
+ type CacheValueDialogProps = {
3
+ log: CacheLogType;
4
+ onClose: () => void;
5
+ };
6
+ export default function CacheValueDialog({ log, onClose, }: CacheValueDialogProps): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -6,6 +6,7 @@ type DetailModalProps = {
6
6
  children: ReactNode;
7
7
  onPrev?: () => void;
8
8
  onNext?: () => void;
9
+ scroll?: 'paper' | 'body' | 'none';
9
10
  };
10
- export default function DetailModal({ open, onClose, title, children, onPrev, onNext, }: DetailModalProps): import("react/jsx-runtime").JSX.Element;
11
+ export default function DetailModal({ open, onClose, title, children, onPrev, onNext, scroll, }: DetailModalProps): import("react/jsx-runtime").JSX.Element;
11
12
  export {};
@@ -20,13 +20,13 @@ export declare const baseEntitySchema: z.ZodObject<{
20
20
  export declare const baseQuerySchema: z.ZodObject<{
21
21
  beforeDate: z.ZodOptional<z.ZodString>;
22
22
  afterDate: z.ZodOptional<z.ZodString>;
23
- orderBy: z.ZodDefault<z.ZodEnum<{
23
+ orderBy: z.ZodOptional<z.ZodEnum<{
24
24
  timestamp: "timestamp";
25
25
  duration: "duration";
26
26
  level: "level";
27
27
  path: "path";
28
28
  }>>;
29
- orderDirection: z.ZodDefault<z.ZodEnum<{
29
+ orderDirection: z.ZodOptional<z.ZodEnum<{
30
30
  asc: "asc";
31
31
  desc: "desc";
32
32
  }>>;
@@ -18,18 +18,19 @@ export declare const cacheLogSchema: z.ZodObject<{
18
18
  }>;
19
19
  value: z.ZodNullable<z.ZodAny>;
20
20
  size: z.ZodOptional<z.ZodNumber>;
21
+ durationMs: z.ZodOptional<z.ZodNumber>;
21
22
  }, z.core.$strip>;
22
23
  export type CacheLogType = z.infer<typeof cacheLogSchema>;
23
24
  export declare const cacheLogQuerySchema: z.ZodObject<{
24
25
  beforeDate: z.ZodOptional<z.ZodString>;
25
26
  afterDate: z.ZodOptional<z.ZodString>;
26
- orderBy: z.ZodDefault<z.ZodEnum<{
27
+ orderBy: z.ZodOptional<z.ZodEnum<{
27
28
  timestamp: "timestamp";
28
29
  duration: "duration";
29
30
  level: "level";
30
31
  path: "path";
31
32
  }>>;
32
- orderDirection: z.ZodDefault<z.ZodEnum<{
33
+ orderDirection: z.ZodOptional<z.ZodEnum<{
33
34
  asc: "asc";
34
35
  desc: "desc";
35
36
  }>>;
@@ -62,38 +63,211 @@ export declare const cacheSummarySchema: z.ZodObject<{
62
63
  totalHits: z.ZodNumber;
63
64
  totalMisses: z.ZodNumber;
64
65
  totalSets: z.ZodNumber;
66
+ sizeBytes: z.ZodOptional<z.ZodNumber>;
65
67
  }, z.core.$strip>;
66
68
  export type CacheSummaryType = z.infer<typeof cacheSummarySchema>;
67
69
  export declare const cacheLeaves: readonly [{
68
70
  readonly method: "get";
69
71
  readonly path: "cache";
70
- readonly cfg: Readonly<{
71
- description?: string | undefined;
72
- tags?: string[] | undefined;
72
+ 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"> & {
73
+ queryExtensionSchema: C["queryExtensionSchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? C["queryExtensionSchema"] : undefined;
74
+ outputMetaSchema: C["outputMetaSchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? C["outputMetaSchema"] : undefined;
75
+ }> 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 ? {
76
+ feed: true;
77
+ } : {
78
+ feed?: boolean;
79
+ }) & import("@emeryld/rrroutes-contract").FeedQueryField<WithDefaults> & import("@emeryld/rrroutes-contract").OutputField<WithDefaults> & (WithDefaults["paramsSchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? {
80
+ paramsSchema: WithDefaults["paramsSchema"];
81
+ } : {
82
+ paramsSchema: undefined;
83
+ }) : (WithDefaults["feed"] extends true ? {
84
+ feed: true;
85
+ } : {
86
+ feed?: boolean;
87
+ }) & (WithDefaults["querySchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? {
88
+ querySchema: WithDefaults["querySchema"];
89
+ } : {
90
+ querySchema?: undefined;
91
+ }) & import("@emeryld/rrroutes-contract").OutputField<WithDefaults> & (WithDefaults["paramsSchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? {
92
+ paramsSchema: WithDefaults["paramsSchema"];
93
+ } : {
94
+ paramsSchema: undefined;
95
+ }))> : 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<{
96
+ feed: true;
97
+ outputSchema: z.ZodArray<z.ZodObject<{
98
+ id: z.ZodString;
99
+ name: z.ZodString;
100
+ description: z.ZodOptional<z.ZodString>;
101
+ groupId: z.ZodOptional<z.ZodString>;
102
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
103
+ createdAt: z.ZodNumber;
104
+ updatedAt: z.ZodNumber;
105
+ operation: z.ZodEnum<{
106
+ delete: "delete";
107
+ hit: "hit";
108
+ miss: "miss";
109
+ set: "set";
110
+ }>;
111
+ value: z.ZodNullable<z.ZodAny>;
112
+ size: z.ZodOptional<z.ZodNumber>;
113
+ durationMs: z.ZodOptional<z.ZodNumber>;
114
+ }, z.core.$strip>>;
115
+ querySchema: z.ZodObject<{
116
+ beforeDate: z.ZodOptional<z.ZodString>;
117
+ afterDate: z.ZodOptional<z.ZodString>;
118
+ orderBy: z.ZodOptional<z.ZodEnum<{
119
+ timestamp: "timestamp";
120
+ duration: "duration";
121
+ level: "level";
122
+ path: "path";
123
+ }>>;
124
+ orderDirection: z.ZodOptional<z.ZodEnum<{
125
+ asc: "asc";
126
+ desc: "desc";
127
+ }>>;
128
+ searchQuery: z.ZodOptional<z.ZodString>;
129
+ groupsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
130
+ groupsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
131
+ tagsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
132
+ tagsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
133
+ operationsInclude: z.ZodOptional<z.ZodArray<z.ZodEnum<{
134
+ delete: "delete";
135
+ hit: "hit";
136
+ miss: "miss";
137
+ set: "set";
138
+ }>>>;
139
+ operationsExclude: z.ZodOptional<z.ZodArray<z.ZodEnum<{
140
+ delete: "delete";
141
+ hit: "hit";
142
+ miss: "miss";
143
+ set: "set";
144
+ }>>>;
145
+ keys: z.ZodOptional<z.ZodArray<z.ZodString>>;
146
+ keySearch: z.ZodOptional<z.ZodString>;
147
+ }, z.core.$strip>;
148
+ outputMetaSchema: z.ZodObject<{
149
+ totalCount: z.ZodOptional<z.ZodNumber>;
150
+ nextCursor: z.ZodOptional<z.ZodString>;
151
+ }, z.core.$strip>;
73
152
  queryExtensionSchema: z.ZodObject<{
74
153
  cursor: z.ZodOptional<z.ZodString>;
75
154
  pageSize: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
76
- }, z.core.$strip> & import("@emeryld/rrroutes-contract").RouteSchema<{
77
- cursor?: string | undefined;
78
- pageSize?: number | undefined;
79
- }, {
80
- cursor?: string | undefined;
81
- pageSize?: unknown;
82
- }>;
83
- bodyFiles?: import("@emeryld/rrroutes-contract").FileField[] | undefined;
155
+ }, z.core.$strip>;
156
+ }, "queryExtensionSchema" | "outputMetaSchema"> & {
157
+ queryExtensionSchema: z.ZodObject<{
158
+ cursor: z.ZodOptional<z.ZodString>;
159
+ pageSize: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
160
+ }, z.core.$strip>;
161
+ outputMetaSchema: z.ZodObject<{
162
+ totalCount: z.ZodOptional<z.ZodNumber>;
163
+ nextCursor: z.ZodOptional<z.ZodString>;
164
+ }, z.core.$strip>;
165
+ }>, "querySchema" | "outputSchema" | "feed">> & {
166
+ feed: true;
167
+ } & import("@emeryld/rrroutes-contract").FeedQueryField<import("@emeryld/rrroutes-contract").Prettify<Omit<{
84
168
  feed: true;
85
- summary?: string | undefined;
86
- docsGroup?: string | undefined;
87
- deprecated?: boolean | undefined;
88
- stability?: "experimental" | "beta" | "stable" | "deprecated" | undefined;
89
- docsHidden?: boolean | undefined;
90
- docsMeta?: Record<string, unknown> | undefined;
169
+ outputSchema: z.ZodArray<z.ZodObject<{
170
+ id: z.ZodString;
171
+ name: z.ZodString;
172
+ description: z.ZodOptional<z.ZodString>;
173
+ groupId: z.ZodOptional<z.ZodString>;
174
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
175
+ createdAt: z.ZodNumber;
176
+ updatedAt: z.ZodNumber;
177
+ operation: z.ZodEnum<{
178
+ delete: "delete";
179
+ hit: "hit";
180
+ miss: "miss";
181
+ set: "set";
182
+ }>;
183
+ value: z.ZodNullable<z.ZodAny>;
184
+ size: z.ZodOptional<z.ZodNumber>;
185
+ durationMs: z.ZodOptional<z.ZodNumber>;
186
+ }, z.core.$strip>>;
187
+ querySchema: z.ZodObject<{
188
+ beforeDate: z.ZodOptional<z.ZodString>;
189
+ afterDate: z.ZodOptional<z.ZodString>;
190
+ orderBy: z.ZodOptional<z.ZodEnum<{
191
+ timestamp: "timestamp";
192
+ duration: "duration";
193
+ level: "level";
194
+ path: "path";
195
+ }>>;
196
+ orderDirection: z.ZodOptional<z.ZodEnum<{
197
+ asc: "asc";
198
+ desc: "desc";
199
+ }>>;
200
+ searchQuery: z.ZodOptional<z.ZodString>;
201
+ groupsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
202
+ groupsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
203
+ tagsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
204
+ tagsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
205
+ operationsInclude: z.ZodOptional<z.ZodArray<z.ZodEnum<{
206
+ delete: "delete";
207
+ hit: "hit";
208
+ miss: "miss";
209
+ set: "set";
210
+ }>>>;
211
+ operationsExclude: z.ZodOptional<z.ZodArray<z.ZodEnum<{
212
+ delete: "delete";
213
+ hit: "hit";
214
+ miss: "miss";
215
+ set: "set";
216
+ }>>>;
217
+ keys: z.ZodOptional<z.ZodArray<z.ZodString>>;
218
+ keySearch: z.ZodOptional<z.ZodString>;
219
+ }, z.core.$strip>;
220
+ outputMetaSchema: z.ZodObject<{
221
+ totalCount: z.ZodOptional<z.ZodNumber>;
222
+ nextCursor: z.ZodOptional<z.ZodString>;
223
+ }, z.core.$strip>;
224
+ queryExtensionSchema: z.ZodObject<{
225
+ cursor: z.ZodOptional<z.ZodString>;
226
+ pageSize: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
227
+ }, z.core.$strip>;
228
+ }, "queryExtensionSchema" | "outputMetaSchema"> & {
229
+ queryExtensionSchema: z.ZodObject<{
230
+ cursor: z.ZodOptional<z.ZodString>;
231
+ pageSize: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
232
+ }, z.core.$strip>;
233
+ outputMetaSchema: z.ZodObject<{
234
+ totalCount: z.ZodOptional<z.ZodNumber>;
235
+ nextCursor: z.ZodOptional<z.ZodString>;
236
+ }, z.core.$strip>;
237
+ }>> & {
238
+ outputSchema: z.ZodObject<{
239
+ out: z.ZodArray<z.ZodObject<{
240
+ id: z.ZodString;
241
+ name: z.ZodString;
242
+ description: z.ZodOptional<z.ZodString>;
243
+ groupId: z.ZodOptional<z.ZodString>;
244
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
245
+ createdAt: z.ZodNumber;
246
+ updatedAt: z.ZodNumber;
247
+ operation: z.ZodEnum<{
248
+ delete: "delete";
249
+ hit: "hit";
250
+ miss: "miss";
251
+ set: "set";
252
+ }>;
253
+ value: z.ZodNullable<z.ZodAny>;
254
+ size: z.ZodOptional<z.ZodNumber>;
255
+ durationMs: z.ZodOptional<z.ZodNumber>;
256
+ }, z.core.$strip>>;
257
+ meta: z.ZodObject<{
258
+ totalCount: z.ZodOptional<z.ZodNumber>;
259
+ nextCursor: z.ZodOptional<z.ZodString>;
260
+ }, z.core.$strip>;
261
+ }, z.core.$strip>;
262
+ } & {
263
+ paramsSchema: undefined;
264
+ }>, "outputMetaSchema" | "bodySchema" | "querySchema" | "paramsSchema" | "outputSchema"> & {
91
265
  bodySchema: import("@emeryld/rrroutes-contract").RouteSchema<unknown, unknown> | undefined;
92
266
  querySchema: import("@emeryld/rrroutes-contract").RouteSchema<{
93
- orderBy: "timestamp" | "duration" | "level" | "path";
94
- orderDirection: "asc" | "desc";
95
267
  beforeDate?: string | undefined;
96
268
  afterDate?: string | undefined;
269
+ orderBy?: "timestamp" | "duration" | "level" | "path" | undefined;
270
+ orderDirection?: "asc" | "desc" | undefined;
97
271
  searchQuery?: string | undefined;
98
272
  groupsInclude?: string[] | undefined;
99
273
  groupsExclude?: string[] | undefined;
@@ -137,6 +311,7 @@ export declare const cacheLeaves: readonly [{
137
311
  groupId?: string | undefined;
138
312
  tags?: string[] | undefined;
139
313
  size?: number | undefined;
314
+ durationMs?: number | undefined;
140
315
  }[];
141
316
  meta: {
142
317
  totalCount?: number | undefined;
@@ -154,6 +329,7 @@ export declare const cacheLeaves: readonly [{
154
329
  groupId?: string | undefined;
155
330
  tags?: string[] | undefined;
156
331
  size?: number | undefined;
332
+ durationMs?: number | undefined;
157
333
  }[];
158
334
  meta: {
159
335
  totalCount?: number | undefined;
@@ -167,60 +343,183 @@ export declare const cacheLeaves: readonly [{
167
343
  totalCount?: number | undefined;
168
344
  nextCursor?: string | undefined;
169
345
  }>;
170
- }>;
171
- }, import("@emeryld/rrroutes-contract").LeafLowProfile<"post", "cache/clear", {
172
- readonly description?: string | undefined;
173
- readonly tags?: string[] | undefined;
174
- readonly queryExtensionSchema: undefined;
175
- readonly outputMetaSchema: undefined;
176
- readonly bodySchema: import("@emeryld/rrroutes-contract").RouteSchema<unknown, unknown> | undefined;
177
- readonly querySchema: import("@emeryld/rrroutes-contract").RouteSchema<{
178
- orderBy: "timestamp" | "duration" | "level" | "path";
179
- orderDirection: "asc" | "desc";
180
- beforeDate?: string | undefined;
181
- afterDate?: string | undefined;
182
- searchQuery?: string | undefined;
183
- groupsInclude?: string[] | undefined;
184
- groupsExclude?: string[] | undefined;
185
- tagsInclude?: string[] | undefined;
186
- tagsExclude?: string[] | undefined;
187
- operationsInclude?: ("delete" | "hit" | "miss" | "set")[] | undefined;
188
- operationsExclude?: ("delete" | "hit" | "miss" | "set")[] | undefined;
189
- keys?: string[] | undefined;
190
- keySearch?: string | undefined;
191
- }, {
192
- beforeDate?: string | undefined;
193
- afterDate?: string | undefined;
194
- orderBy?: "timestamp" | "duration" | "level" | "path" | undefined;
195
- orderDirection?: "asc" | "desc" | undefined;
196
- searchQuery?: string | undefined;
197
- groupsInclude?: string[] | undefined;
198
- groupsExclude?: string[] | undefined;
199
- tagsInclude?: string[] | undefined;
200
- tagsExclude?: string[] | undefined;
201
- operationsInclude?: ("delete" | "hit" | "miss" | "set")[] | undefined;
202
- operationsExclude?: ("delete" | "hit" | "miss" | "set")[] | undefined;
203
- keys?: string[] | undefined;
204
- keySearch?: string | undefined;
205
- }>;
206
- readonly outputSchema: import("@emeryld/rrroutes-contract").RouteSchema<{
207
- out: {
208
- success: boolean;
209
- };
210
- meta?: string | undefined;
211
- }, {
212
- out: {
213
- success: boolean;
214
- };
215
- meta?: string | undefined;
216
- }>;
217
- readonly bodyFiles?: import("@emeryld/rrroutes-contract").FileField[] | undefined;
218
- readonly feed?: boolean | undefined;
219
- readonly summary?: string | undefined;
220
- readonly docsGroup?: string | undefined;
221
- readonly deprecated?: boolean | undefined;
222
- readonly stability?: "experimental" | "beta" | "stable" | "deprecated" | undefined;
223
- readonly docsHidden?: boolean | undefined;
224
- readonly docsMeta?: Record<string, unknown> | undefined;
225
- paramsSchema: undefined;
226
- }>];
346
+ queryExtensionSchema: import("@emeryld/rrroutes-contract").RouteSchema<{
347
+ cursor?: string | undefined;
348
+ pageSize?: number | undefined;
349
+ }, {
350
+ cursor?: string | undefined;
351
+ pageSize?: unknown;
352
+ }>;
353
+ }>>>;
354
+ }, {
355
+ readonly method: "post";
356
+ readonly path: "cache/clear";
357
+ 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"> & {
358
+ feed: false;
359
+ }>, "queryExtensionSchema" | "outputMetaSchema"> & {
360
+ queryExtensionSchema: import("@emeryld/rrroutes-contract").Prettify<Omit<C_1, "feed"> & {
361
+ feed: false;
362
+ }>["queryExtensionSchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? import("@emeryld/rrroutes-contract").Prettify<Omit<C_1, "feed"> & {
363
+ feed: false;
364
+ }>["queryExtensionSchema"] : undefined;
365
+ outputMetaSchema: import("@emeryld/rrroutes-contract").Prettify<Omit<C_1, "feed"> & {
366
+ feed: false;
367
+ }>["outputMetaSchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? import("@emeryld/rrroutes-contract").Prettify<Omit<C_1, "feed"> & {
368
+ feed: false;
369
+ }>["outputMetaSchema"] : undefined;
370
+ }> 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 ? {
371
+ feed: true;
372
+ } : {
373
+ feed?: boolean;
374
+ }) & import("@emeryld/rrroutes-contract").FeedQueryField<WithDefaults> & import("@emeryld/rrroutes-contract").OutputField<WithDefaults> & (WithDefaults["paramsSchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? {
375
+ paramsSchema: WithDefaults["paramsSchema"];
376
+ } : {
377
+ paramsSchema: undefined;
378
+ }) : (WithDefaults["feed"] extends true ? {
379
+ feed: true;
380
+ } : {
381
+ feed?: boolean;
382
+ }) & (WithDefaults["querySchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? {
383
+ querySchema: WithDefaults["querySchema"];
384
+ } : {
385
+ querySchema?: undefined;
386
+ }) & import("@emeryld/rrroutes-contract").OutputField<WithDefaults> & (WithDefaults["paramsSchema"] extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? {
387
+ paramsSchema: WithDefaults["paramsSchema"];
388
+ } : {
389
+ paramsSchema: undefined;
390
+ }))> : 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<import("@emeryld/rrroutes-contract").Prettify<Omit<{
391
+ outputSchema: z.ZodObject<{
392
+ success: z.ZodBoolean;
393
+ }, z.core.$strip>;
394
+ querySchema: z.ZodObject<{
395
+ beforeDate: z.ZodOptional<z.ZodString>;
396
+ afterDate: z.ZodOptional<z.ZodString>;
397
+ orderBy: z.ZodOptional<z.ZodEnum<{
398
+ timestamp: "timestamp";
399
+ duration: "duration";
400
+ level: "level";
401
+ path: "path";
402
+ }>>;
403
+ orderDirection: z.ZodOptional<z.ZodEnum<{
404
+ asc: "asc";
405
+ desc: "desc";
406
+ }>>;
407
+ searchQuery: z.ZodOptional<z.ZodString>;
408
+ groupsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
409
+ groupsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
410
+ tagsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
411
+ tagsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
412
+ operationsInclude: z.ZodOptional<z.ZodArray<z.ZodEnum<{
413
+ delete: "delete";
414
+ hit: "hit";
415
+ miss: "miss";
416
+ set: "set";
417
+ }>>>;
418
+ operationsExclude: z.ZodOptional<z.ZodArray<z.ZodEnum<{
419
+ delete: "delete";
420
+ hit: "hit";
421
+ miss: "miss";
422
+ set: "set";
423
+ }>>>;
424
+ keys: z.ZodOptional<z.ZodArray<z.ZodString>>;
425
+ keySearch: z.ZodOptional<z.ZodString>;
426
+ }, z.core.$strip>;
427
+ }, "feed"> & {
428
+ feed: false;
429
+ }>, "queryExtensionSchema" | "outputMetaSchema"> & {
430
+ queryExtensionSchema: undefined;
431
+ outputMetaSchema: undefined;
432
+ }>, "querySchema" | "outputSchema" | "feed">> & {
433
+ feed?: boolean;
434
+ } & {
435
+ querySchema: z.ZodObject<{
436
+ beforeDate: z.ZodOptional<z.ZodString>;
437
+ afterDate: z.ZodOptional<z.ZodString>;
438
+ orderBy: z.ZodOptional<z.ZodEnum<{
439
+ timestamp: "timestamp";
440
+ duration: "duration";
441
+ level: "level";
442
+ path: "path";
443
+ }>>;
444
+ orderDirection: z.ZodOptional<z.ZodEnum<{
445
+ asc: "asc";
446
+ desc: "desc";
447
+ }>>;
448
+ searchQuery: z.ZodOptional<z.ZodString>;
449
+ groupsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
450
+ groupsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
451
+ tagsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
452
+ tagsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
453
+ operationsInclude: z.ZodOptional<z.ZodArray<z.ZodEnum<{
454
+ delete: "delete";
455
+ hit: "hit";
456
+ miss: "miss";
457
+ set: "set";
458
+ }>>>;
459
+ operationsExclude: z.ZodOptional<z.ZodArray<z.ZodEnum<{
460
+ delete: "delete";
461
+ hit: "hit";
462
+ miss: "miss";
463
+ set: "set";
464
+ }>>>;
465
+ keys: z.ZodOptional<z.ZodArray<z.ZodString>>;
466
+ keySearch: z.ZodOptional<z.ZodString>;
467
+ }, z.core.$strip>;
468
+ } & {
469
+ outputSchema: z.ZodObject<{
470
+ out: z.ZodObject<{
471
+ success: z.ZodBoolean;
472
+ }, z.core.$strip>;
473
+ meta: z.ZodOptional<z.ZodString>;
474
+ }, z.core.$strip>;
475
+ } & {
476
+ paramsSchema: undefined;
477
+ }>, "outputMetaSchema" | "bodySchema" | "querySchema" | "paramsSchema" | "outputSchema"> & {
478
+ bodySchema: import("@emeryld/rrroutes-contract").RouteSchema<unknown, unknown> | undefined;
479
+ querySchema: import("@emeryld/rrroutes-contract").RouteSchema<{
480
+ beforeDate?: string | undefined;
481
+ afterDate?: string | undefined;
482
+ orderBy?: "timestamp" | "duration" | "level" | "path" | undefined;
483
+ orderDirection?: "asc" | "desc" | undefined;
484
+ searchQuery?: string | undefined;
485
+ groupsInclude?: string[] | undefined;
486
+ groupsExclude?: string[] | undefined;
487
+ tagsInclude?: string[] | undefined;
488
+ tagsExclude?: string[] | undefined;
489
+ operationsInclude?: ("delete" | "hit" | "miss" | "set")[] | undefined;
490
+ operationsExclude?: ("delete" | "hit" | "miss" | "set")[] | undefined;
491
+ keys?: string[] | undefined;
492
+ keySearch?: string | undefined;
493
+ }, {
494
+ beforeDate?: string | undefined;
495
+ afterDate?: string | undefined;
496
+ orderBy?: "timestamp" | "duration" | "level" | "path" | undefined;
497
+ orderDirection?: "asc" | "desc" | undefined;
498
+ searchQuery?: string | undefined;
499
+ groupsInclude?: string[] | undefined;
500
+ groupsExclude?: string[] | undefined;
501
+ tagsInclude?: string[] | undefined;
502
+ tagsExclude?: string[] | undefined;
503
+ operationsInclude?: ("delete" | "hit" | "miss" | "set")[] | undefined;
504
+ operationsExclude?: ("delete" | "hit" | "miss" | "set")[] | undefined;
505
+ keys?: string[] | undefined;
506
+ keySearch?: string | undefined;
507
+ }>;
508
+ paramsSchema: undefined;
509
+ outputSchema: import("@emeryld/rrroutes-contract").RouteSchema<{
510
+ out: {
511
+ success: boolean;
512
+ };
513
+ meta?: string | undefined;
514
+ }, {
515
+ out: {
516
+ success: boolean;
517
+ };
518
+ meta?: string | undefined;
519
+ }>;
520
+ outputMetaSchema: undefined;
521
+ queryExtensionSchema: undefined;
522
+ }>>>, "paramsSchema"> & {
523
+ paramsSchema: undefined;
524
+ }>>;
525
+ }];
@@ -1,16 +1,19 @@
1
- import { AnyLeafLowProfile, AugmentLeaves, FinalizedRegistry } from '@emeryld/rrroutes-contract';
1
+ import { FinalizedRegistry, MergeAugmentedCollections } from '@emeryld/rrroutes-contract';
2
2
  import { cacheLeaves } from './types.cacheLog.js';
3
3
  import { endpointLeaves } from './types.endpoint.js';
4
4
  import { logLeaves } from './types.log.js';
5
5
  import { presetLeaves } from './types.preset.js';
6
6
  import { requestLogLeaves } from './types.requestLog.js';
7
- type MountedLeaves<Leaves extends readonly AnyLeafLowProfile[]> = AugmentLeaves<'/__rrroutes', undefined, Leaves>;
8
7
  type AllLeaves = readonly [
9
- ...MountedLeaves<typeof endpointLeaves>,
10
- ...MountedLeaves<typeof requestLogLeaves>,
11
- ...MountedLeaves<typeof logLeaves>,
12
- ...MountedLeaves<typeof cacheLeaves>,
13
- ...MountedLeaves<typeof presetLeaves>
8
+ ...MergeAugmentedCollections<'', undefined, readonly [
9
+ MergeAugmentedCollections<'/__rrroutes', undefined, readonly [
10
+ typeof endpointLeaves,
11
+ typeof requestLogLeaves,
12
+ typeof logLeaves,
13
+ typeof cacheLeaves,
14
+ typeof presetLeaves
15
+ ]>
16
+ ]>
14
17
  ];
15
18
  declare const allLeaves: AllLeaves;
16
19
  export declare const leaves: FinalizedRegistry<typeof allLeaves>;