@emeryld/rrroutes-openapi 2.4.1 → 2.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
- type CacheOperation = 'hit' | 'miss' | 'set' | 'delete';
2
- type SelectionState = 'include' | 'exclude' | 'none' | 'display';
1
+ import { CacheOperation } from '../../types/types.cacheLog';
2
+ import { ChipSelectionState } from './chip.types';
3
3
  type CacheOperationChipProps = {
4
4
  operation: CacheOperation;
5
- state?: SelectionState;
5
+ state?: ChipSelectionState;
6
6
  onClick?: () => void;
7
7
  };
8
8
  export default function CacheOperationChip({ operation, state, onClick, }: CacheOperationChipProps): import("react/jsx-runtime").JSX.Element;
@@ -1,8 +1,8 @@
1
1
  import { MethodType } from '../../types/types.base';
2
- type SelectionState = 'include' | 'exclude' | 'none' | 'display';
2
+ import { ChipSelectionState } from './chip.types.js';
3
3
  type HttpMethodChipProps = {
4
4
  method: MethodType;
5
- state?: SelectionState;
5
+ state?: ChipSelectionState;
6
6
  selected?: boolean;
7
7
  onClick?: () => void;
8
8
  };
@@ -1,8 +1,8 @@
1
- type LogLevel = 'info' | 'warning' | 'error' | 'debug' | 'trace';
2
- type SelectionState = 'include' | 'exclude' | 'none' | 'display';
1
+ import { LogLevel } from '../../types/types.log';
2
+ import { ChipSelectionState } from './chip.types';
3
3
  type LogLevelChipProps = {
4
4
  level: LogLevel;
5
- state?: SelectionState;
5
+ state?: ChipSelectionState;
6
6
  selected?: boolean;
7
7
  onClick?: () => void;
8
8
  };
@@ -1,7 +1,7 @@
1
- type SelectionState = 'include' | 'exclude' | 'none' | 'display';
1
+ import { ChipSelectionState } from './chip.types.js';
2
2
  type StatusChipProps = {
3
3
  status: number;
4
- state?: SelectionState;
4
+ state?: ChipSelectionState;
5
5
  onClick?: () => void;
6
6
  };
7
7
  export default function StatusChip({ status, state, onClick, }: StatusChipProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export type ChipSelectionState = 'include' | 'exclude' | 'none' | 'display';
@@ -1,21 +1,9 @@
1
+ import z from 'zod';
2
+ import { baseQuerySchema, paginationSchema } from './types.base';
1
3
  export type FilterMode = 'include' | 'exclude';
2
- type OrderByValue = 'timestamp' | 'duration' | 'level' | 'path';
3
- type OrderDirectionValue = 'asc' | 'desc';
4
- export type BaseFilter = {
5
- beforeDate?: string;
6
- afterDate?: string;
7
- cursor?: string;
8
- orderBy: OrderByValue;
9
- orderDirection: OrderDirectionValue;
10
- searchQuery?: string;
11
- tagsInclude: string[];
12
- tagsExclude: string[];
13
- groupsInclude: string[];
14
- groupsExclude: string[];
15
- pageSize?: number;
16
- };
4
+ export type SelectionState = 'include' | 'exclude' | 'none';
5
+ export type BaseFilter = z.infer<typeof baseQuerySchema> & z.infer<typeof paginationSchema>;
17
6
  export declare const DEFAULT_BASE_FILTER: BaseFilter;
18
7
  export declare function buildBaseQuery(filter: BaseFilter): Record<string, unknown>;
19
8
  export declare function serializeFilterState<T extends Record<string, unknown>>(value: T): string | null;
20
9
  export declare function deserializeFilterState<T extends Record<string, unknown>>(raw: string, fallback: T): T;
21
- export {};
@@ -20,22 +20,21 @@ 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
  }>>;
33
33
  searchQuery: z.ZodOptional<z.ZodString>;
34
- groups: z.ZodOptional<z.ZodArray<z.ZodString>>;
35
- excludeGroups: z.ZodOptional<z.ZodArray<z.ZodString>>;
36
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
37
- excludeTags: z.ZodOptional<z.ZodArray<z.ZodString>>;
38
- cursor: z.ZodOptional<z.ZodString>;
34
+ groupsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
35
+ groupsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
36
+ tagsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
37
+ tagsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
39
38
  }, z.core.$strip>;
40
39
  export declare const paginationSchema: z.ZodObject<{
41
40
  cursor: z.ZodOptional<z.ZodString>;
@@ -1,4 +1,7 @@
1
1
  import z from 'zod';
2
+ import { paginationSchema } from './types.base';
3
+ export declare const CACHE_OPERATIONS: readonly ["hit", "miss", "set", "delete"];
4
+ export type CacheOperation = (typeof CACHE_OPERATIONS)[number];
2
5
  export declare const cacheLogSchema: z.ZodObject<{
3
6
  id: z.ZodString;
4
7
  name: z.ZodString;
@@ -20,36 +23,37 @@ export type CacheLogType = z.infer<typeof cacheLogSchema>;
20
23
  export declare const cacheLogQuerySchema: z.ZodObject<{
21
24
  beforeDate: z.ZodOptional<z.ZodString>;
22
25
  afterDate: z.ZodOptional<z.ZodString>;
23
- orderBy: z.ZodDefault<z.ZodEnum<{
26
+ orderBy: z.ZodOptional<z.ZodEnum<{
24
27
  timestamp: "timestamp";
25
28
  duration: "duration";
26
29
  level: "level";
27
30
  path: "path";
28
31
  }>>;
29
- orderDirection: z.ZodDefault<z.ZodEnum<{
32
+ orderDirection: z.ZodOptional<z.ZodEnum<{
30
33
  asc: "asc";
31
34
  desc: "desc";
32
35
  }>>;
33
36
  searchQuery: z.ZodOptional<z.ZodString>;
34
- groups: z.ZodOptional<z.ZodArray<z.ZodString>>;
35
- excludeGroups: z.ZodOptional<z.ZodArray<z.ZodString>>;
36
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
37
- excludeTags: z.ZodOptional<z.ZodArray<z.ZodString>>;
38
- cursor: z.ZodOptional<z.ZodString>;
39
- operations: z.ZodOptional<z.ZodArray<z.ZodEnum<{
37
+ groupsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
38
+ groupsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
39
+ tagsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
40
+ tagsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
41
+ operationsInclude: z.ZodOptional<z.ZodArray<z.ZodEnum<{
40
42
  delete: "delete";
41
43
  hit: "hit";
42
44
  miss: "miss";
43
45
  set: "set";
44
46
  }>>>;
45
- excludeOperations: z.ZodOptional<z.ZodArray<z.ZodEnum<{
47
+ operationsExclude: z.ZodOptional<z.ZodArray<z.ZodEnum<{
46
48
  delete: "delete";
47
49
  hit: "hit";
48
50
  miss: "miss";
49
51
  set: "set";
50
52
  }>>>;
51
53
  keys: z.ZodOptional<z.ZodArray<z.ZodString>>;
54
+ keySearch: z.ZodOptional<z.ZodString>;
52
55
  }, z.core.$strip>;
56
+ export type CacheLogsFilter = z.infer<typeof cacheLogQuerySchema> & z.infer<typeof paginationSchema>;
53
57
  export declare const cacheSummarySchema: z.ZodObject<{
54
58
  key: z.ZodString;
55
59
  lastSetAt: z.ZodNullable<z.ZodNumber>;
@@ -86,19 +90,19 @@ export declare const cacheLeaves: readonly [{
86
90
  docsMeta?: Record<string, unknown> | undefined;
87
91
  bodySchema: import("@emeryld/rrroutes-contract").RouteSchema<unknown, unknown> | undefined;
88
92
  querySchema: import("@emeryld/rrroutes-contract").RouteSchema<{
89
- orderBy: "timestamp" | "duration" | "level" | "path";
90
- orderDirection: "asc" | "desc";
91
93
  beforeDate?: string | undefined;
92
94
  afterDate?: string | undefined;
95
+ orderBy?: "timestamp" | "duration" | "level" | "path" | undefined;
96
+ orderDirection?: "asc" | "desc" | undefined;
93
97
  searchQuery?: string | undefined;
94
- groups?: string[] | undefined;
95
- excludeGroups?: string[] | undefined;
96
- tags?: string[] | undefined;
97
- excludeTags?: string[] | undefined;
98
- cursor?: string | undefined;
99
- operations?: ("delete" | "hit" | "miss" | "set")[] | undefined;
100
- excludeOperations?: ("delete" | "hit" | "miss" | "set")[] | undefined;
98
+ groupsInclude?: string[] | undefined;
99
+ groupsExclude?: string[] | undefined;
100
+ tagsInclude?: string[] | undefined;
101
+ tagsExclude?: string[] | undefined;
102
+ operationsInclude?: ("delete" | "hit" | "miss" | "set")[] | undefined;
103
+ operationsExclude?: ("delete" | "hit" | "miss" | "set")[] | undefined;
101
104
  keys?: string[] | undefined;
105
+ keySearch?: string | undefined;
102
106
  } & {
103
107
  cursor?: string | undefined;
104
108
  pageSize?: number | undefined;
@@ -108,14 +112,14 @@ export declare const cacheLeaves: readonly [{
108
112
  orderBy?: "timestamp" | "duration" | "level" | "path" | undefined;
109
113
  orderDirection?: "asc" | "desc" | undefined;
110
114
  searchQuery?: string | undefined;
111
- groups?: string[] | undefined;
112
- excludeGroups?: string[] | undefined;
113
- tags?: string[] | undefined;
114
- excludeTags?: string[] | undefined;
115
- cursor?: string | undefined;
116
- operations?: ("delete" | "hit" | "miss" | "set")[] | undefined;
117
- excludeOperations?: ("delete" | "hit" | "miss" | "set")[] | undefined;
115
+ groupsInclude?: string[] | undefined;
116
+ groupsExclude?: string[] | undefined;
117
+ tagsInclude?: string[] | undefined;
118
+ tagsExclude?: string[] | undefined;
119
+ operationsInclude?: ("delete" | "hit" | "miss" | "set")[] | undefined;
120
+ operationsExclude?: ("delete" | "hit" | "miss" | "set")[] | undefined;
118
121
  keys?: string[] | undefined;
122
+ keySearch?: string | undefined;
119
123
  } & {
120
124
  cursor?: string | undefined;
121
125
  pageSize?: unknown;
@@ -171,33 +175,33 @@ export declare const cacheLeaves: readonly [{
171
175
  readonly outputMetaSchema: undefined;
172
176
  readonly bodySchema: import("@emeryld/rrroutes-contract").RouteSchema<unknown, unknown> | undefined;
173
177
  readonly querySchema: import("@emeryld/rrroutes-contract").RouteSchema<{
174
- orderBy: "timestamp" | "duration" | "level" | "path";
175
- orderDirection: "asc" | "desc";
176
178
  beforeDate?: string | undefined;
177
179
  afterDate?: string | undefined;
180
+ orderBy?: "timestamp" | "duration" | "level" | "path" | undefined;
181
+ orderDirection?: "asc" | "desc" | undefined;
178
182
  searchQuery?: string | undefined;
179
- groups?: string[] | undefined;
180
- excludeGroups?: string[] | undefined;
181
- tags?: string[] | undefined;
182
- excludeTags?: string[] | undefined;
183
- cursor?: string | undefined;
184
- operations?: ("delete" | "hit" | "miss" | "set")[] | undefined;
185
- excludeOperations?: ("delete" | "hit" | "miss" | "set")[] | 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;
186
189
  keys?: string[] | undefined;
190
+ keySearch?: string | undefined;
187
191
  }, {
188
192
  beforeDate?: string | undefined;
189
193
  afterDate?: string | undefined;
190
194
  orderBy?: "timestamp" | "duration" | "level" | "path" | undefined;
191
195
  orderDirection?: "asc" | "desc" | undefined;
192
196
  searchQuery?: string | undefined;
193
- groups?: string[] | undefined;
194
- excludeGroups?: string[] | undefined;
195
- tags?: string[] | undefined;
196
- excludeTags?: string[] | undefined;
197
- cursor?: string | undefined;
198
- operations?: ("delete" | "hit" | "miss" | "set")[] | undefined;
199
- excludeOperations?: ("delete" | "hit" | "miss" | "set")[] | 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;
200
203
  keys?: string[] | undefined;
204
+ keySearch?: string | undefined;
201
205
  }>;
202
206
  readonly outputSchema: import("@emeryld/rrroutes-contract").RouteSchema<{
203
207
  out: {
@@ -1,4 +1,5 @@
1
1
  import z, { ZodType } from 'zod';
2
+ import { paginationSchema } from './types.base';
2
3
  export declare const nodeKind: readonly ["object", "string", "number", "boolean", "bigint", "date", "array", "enum", "literal", "union", "record", "tuple", "unknown", "any"];
3
4
  export type SerializableSchema = {
4
5
  kind: (typeof nodeKind)[number];
@@ -55,30 +56,29 @@ export type EndpointType = z.output<typeof endpointSchema>;
55
56
  export declare const endpointFilterSchema: z.ZodObject<{
56
57
  beforeDate: z.ZodOptional<z.ZodString>;
57
58
  afterDate: z.ZodOptional<z.ZodString>;
58
- orderBy: z.ZodDefault<z.ZodEnum<{
59
+ orderBy: z.ZodOptional<z.ZodEnum<{
59
60
  timestamp: "timestamp";
60
61
  duration: "duration";
61
62
  level: "level";
62
63
  path: "path";
63
64
  }>>;
64
- orderDirection: z.ZodDefault<z.ZodEnum<{
65
+ orderDirection: z.ZodOptional<z.ZodEnum<{
65
66
  asc: "asc";
66
67
  desc: "desc";
67
68
  }>>;
68
69
  searchQuery: z.ZodOptional<z.ZodString>;
69
- groups: z.ZodOptional<z.ZodArray<z.ZodString>>;
70
- excludeGroups: z.ZodOptional<z.ZodArray<z.ZodString>>;
71
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
72
- excludeTags: z.ZodOptional<z.ZodArray<z.ZodString>>;
73
- cursor: z.ZodOptional<z.ZodString>;
74
- methods: z.ZodOptional<z.ZodArray<z.ZodEnum<{
70
+ groupsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
71
+ groupsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
72
+ tagsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
73
+ tagsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
74
+ methodsInclude: z.ZodOptional<z.ZodArray<z.ZodEnum<{
75
75
  get: "get";
76
76
  post: "post";
77
77
  put: "put";
78
78
  patch: "patch";
79
79
  delete: "delete";
80
80
  }>>>;
81
- excludeMethods: z.ZodOptional<z.ZodArray<z.ZodEnum<{
81
+ methodsExclude: z.ZodOptional<z.ZodArray<z.ZodEnum<{
82
82
  get: "get";
83
83
  post: "post";
84
84
  put: "put";
@@ -86,19 +86,20 @@ export declare const endpointFilterSchema: z.ZodObject<{
86
86
  delete: "delete";
87
87
  }>>>;
88
88
  path: z.ZodOptional<z.ZodString>;
89
- stability: z.ZodOptional<z.ZodArray<z.ZodEnum<{
89
+ stabilityInclude: z.ZodOptional<z.ZodArray<z.ZodEnum<{
90
90
  deprecated: "deprecated";
91
91
  experimental: "experimental";
92
92
  beta: "beta";
93
93
  stable: "stable";
94
94
  }>>>;
95
- excludeStability: z.ZodOptional<z.ZodArray<z.ZodEnum<{
95
+ stabilityExclude: z.ZodOptional<z.ZodArray<z.ZodEnum<{
96
96
  deprecated: "deprecated";
97
97
  experimental: "experimental";
98
98
  beta: "beta";
99
99
  stable: "stable";
100
100
  }>>>;
101
101
  }, z.core.$strip>;
102
+ export type RoutesFilter = z.infer<typeof endpointFilterSchema> & z.infer<typeof paginationSchema>;
102
103
  export declare const endpointLeaves: readonly [{
103
104
  readonly method: "get";
104
105
  readonly path: "endpoints";
@@ -125,21 +126,20 @@ export declare const endpointLeaves: readonly [{
125
126
  docsMeta?: Record<string, unknown> | undefined;
126
127
  bodySchema: import("@emeryld/rrroutes-contract").RouteSchema<unknown, unknown> | undefined;
127
128
  querySchema: import("@emeryld/rrroutes-contract").RouteSchema<{
128
- orderBy: "timestamp" | "duration" | "level" | "path";
129
- orderDirection: "asc" | "desc";
130
129
  beforeDate?: string | undefined;
131
130
  afterDate?: string | undefined;
131
+ orderBy?: "timestamp" | "duration" | "level" | "path" | undefined;
132
+ orderDirection?: "asc" | "desc" | undefined;
132
133
  searchQuery?: string | undefined;
133
- groups?: string[] | undefined;
134
- excludeGroups?: string[] | undefined;
135
- tags?: string[] | undefined;
136
- excludeTags?: string[] | undefined;
137
- cursor?: string | undefined;
138
- methods?: ("get" | "post" | "put" | "patch" | "delete")[] | undefined;
139
- excludeMethods?: ("get" | "post" | "put" | "patch" | "delete")[] | undefined;
134
+ groupsInclude?: string[] | undefined;
135
+ groupsExclude?: string[] | undefined;
136
+ tagsInclude?: string[] | undefined;
137
+ tagsExclude?: string[] | undefined;
138
+ methodsInclude?: ("get" | "post" | "put" | "patch" | "delete")[] | undefined;
139
+ methodsExclude?: ("get" | "post" | "put" | "patch" | "delete")[] | undefined;
140
140
  path?: string | undefined;
141
- stability?: ("deprecated" | "experimental" | "beta" | "stable")[] | undefined;
142
- excludeStability?: ("deprecated" | "experimental" | "beta" | "stable")[] | undefined;
141
+ stabilityInclude?: ("deprecated" | "experimental" | "beta" | "stable")[] | undefined;
142
+ stabilityExclude?: ("deprecated" | "experimental" | "beta" | "stable")[] | undefined;
143
143
  } & {
144
144
  cursor?: string | undefined;
145
145
  pageSize?: number | undefined;
@@ -149,16 +149,15 @@ export declare const endpointLeaves: readonly [{
149
149
  orderBy?: "timestamp" | "duration" | "level" | "path" | undefined;
150
150
  orderDirection?: "asc" | "desc" | undefined;
151
151
  searchQuery?: string | undefined;
152
- groups?: string[] | undefined;
153
- excludeGroups?: string[] | undefined;
154
- tags?: string[] | undefined;
155
- excludeTags?: string[] | undefined;
156
- cursor?: string | undefined;
157
- methods?: ("get" | "post" | "put" | "patch" | "delete")[] | undefined;
158
- excludeMethods?: ("get" | "post" | "put" | "patch" | "delete")[] | undefined;
152
+ groupsInclude?: string[] | undefined;
153
+ groupsExclude?: string[] | undefined;
154
+ tagsInclude?: string[] | undefined;
155
+ tagsExclude?: string[] | undefined;
156
+ methodsInclude?: ("get" | "post" | "put" | "patch" | "delete")[] | undefined;
157
+ methodsExclude?: ("get" | "post" | "put" | "patch" | "delete")[] | undefined;
159
158
  path?: string | undefined;
160
- stability?: ("deprecated" | "experimental" | "beta" | "stable")[] | undefined;
161
- excludeStability?: ("deprecated" | "experimental" | "beta" | "stable")[] | undefined;
159
+ stabilityInclude?: ("deprecated" | "experimental" | "beta" | "stable")[] | undefined;
160
+ stabilityExclude?: ("deprecated" | "experimental" | "beta" | "stable")[] | undefined;
162
161
  } & {
163
162
  cursor?: string | undefined;
164
163
  pageSize?: unknown;
@@ -1,4 +1,7 @@
1
1
  import z from 'zod';
2
+ import { paginationSchema } from './types.base';
3
+ export declare const LOG_LEVELS: readonly ["info", "warning", "error", "debug", "trace"];
4
+ export type LogLevel = (typeof LOG_LEVELS)[number];
2
5
  export declare const logSchema: z.ZodObject<{
3
6
  id: z.ZodString;
4
7
  name: z.ZodString;
@@ -20,30 +23,29 @@ export type LogType = z.infer<typeof logSchema>;
20
23
  export declare const logQuerySchema: z.ZodObject<{
21
24
  beforeDate: z.ZodOptional<z.ZodString>;
22
25
  afterDate: z.ZodOptional<z.ZodString>;
23
- orderBy: z.ZodDefault<z.ZodEnum<{
26
+ orderBy: z.ZodOptional<z.ZodEnum<{
24
27
  timestamp: "timestamp";
25
28
  duration: "duration";
26
29
  level: "level";
27
30
  path: "path";
28
31
  }>>;
29
- orderDirection: z.ZodDefault<z.ZodEnum<{
32
+ orderDirection: z.ZodOptional<z.ZodEnum<{
30
33
  asc: "asc";
31
34
  desc: "desc";
32
35
  }>>;
33
36
  searchQuery: z.ZodOptional<z.ZodString>;
34
- groups: z.ZodOptional<z.ZodArray<z.ZodString>>;
35
- excludeGroups: z.ZodOptional<z.ZodArray<z.ZodString>>;
36
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
37
- excludeTags: z.ZodOptional<z.ZodArray<z.ZodString>>;
38
- cursor: z.ZodOptional<z.ZodString>;
39
- level: z.ZodOptional<z.ZodArray<z.ZodEnum<{
37
+ groupsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
38
+ groupsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
39
+ tagsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
40
+ tagsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
41
+ levelsInclude: z.ZodOptional<z.ZodArray<z.ZodEnum<{
40
42
  error: "error";
41
43
  info: "info";
42
44
  warning: "warning";
43
45
  debug: "debug";
44
46
  trace: "trace";
45
47
  }>>>;
46
- excludeLevel: z.ZodOptional<z.ZodArray<z.ZodEnum<{
48
+ levelsExclude: z.ZodOptional<z.ZodArray<z.ZodEnum<{
47
49
  error: "error";
48
50
  info: "info";
49
51
  warning: "warning";
@@ -51,6 +53,7 @@ export declare const logQuerySchema: z.ZodObject<{
51
53
  trace: "trace";
52
54
  }>>>;
53
55
  }, z.core.$strip>;
56
+ export type ApplicationLogsFilter = z.infer<typeof logQuerySchema> & z.infer<typeof paginationSchema>;
54
57
  export declare const logLeaves: readonly [{
55
58
  readonly method: "get";
56
59
  readonly path: "logs";
@@ -77,18 +80,17 @@ export declare const logLeaves: readonly [{
77
80
  docsMeta?: Record<string, unknown> | undefined;
78
81
  bodySchema: import("@emeryld/rrroutes-contract").RouteSchema<unknown, unknown> | undefined;
79
82
  querySchema: import("@emeryld/rrroutes-contract").RouteSchema<{
80
- orderBy: "timestamp" | "duration" | "level" | "path";
81
- orderDirection: "asc" | "desc";
82
83
  beforeDate?: string | undefined;
83
84
  afterDate?: string | undefined;
85
+ orderBy?: "timestamp" | "duration" | "level" | "path" | undefined;
86
+ orderDirection?: "asc" | "desc" | undefined;
84
87
  searchQuery?: string | undefined;
85
- groups?: string[] | undefined;
86
- excludeGroups?: string[] | undefined;
87
- tags?: string[] | undefined;
88
- excludeTags?: string[] | undefined;
89
- cursor?: string | undefined;
90
- level?: ("error" | "info" | "warning" | "debug" | "trace")[] | undefined;
91
- excludeLevel?: ("error" | "info" | "warning" | "debug" | "trace")[] | undefined;
88
+ groupsInclude?: string[] | undefined;
89
+ groupsExclude?: string[] | undefined;
90
+ tagsInclude?: string[] | undefined;
91
+ tagsExclude?: string[] | undefined;
92
+ levelsInclude?: ("error" | "info" | "warning" | "debug" | "trace")[] | undefined;
93
+ levelsExclude?: ("error" | "info" | "warning" | "debug" | "trace")[] | undefined;
92
94
  } & {
93
95
  cursor?: string | undefined;
94
96
  pageSize?: number | undefined;
@@ -98,13 +100,12 @@ export declare const logLeaves: readonly [{
98
100
  orderBy?: "timestamp" | "duration" | "level" | "path" | undefined;
99
101
  orderDirection?: "asc" | "desc" | undefined;
100
102
  searchQuery?: string | undefined;
101
- groups?: string[] | undefined;
102
- excludeGroups?: string[] | undefined;
103
- tags?: string[] | undefined;
104
- excludeTags?: string[] | undefined;
105
- cursor?: string | undefined;
106
- level?: ("error" | "info" | "warning" | "debug" | "trace")[] | undefined;
107
- excludeLevel?: ("error" | "info" | "warning" | "debug" | "trace")[] | undefined;
103
+ groupsInclude?: string[] | undefined;
104
+ groupsExclude?: string[] | undefined;
105
+ tagsInclude?: string[] | undefined;
106
+ tagsExclude?: string[] | undefined;
107
+ levelsInclude?: ("error" | "info" | "warning" | "debug" | "trace")[] | undefined;
108
+ levelsExclude?: ("error" | "info" | "warning" | "debug" | "trace")[] | undefined;
108
109
  } & {
109
110
  cursor?: string | undefined;
110
111
  pageSize?: unknown;
@@ -1,4 +1,5 @@
1
1
  import z from 'zod';
2
+ import { paginationSchema } from './types.base';
2
3
  declare const presetSchema: z.ZodObject<{
3
4
  id: z.ZodString;
4
5
  name: z.ZodString;
@@ -26,6 +27,28 @@ declare const presetSchema: z.ZodObject<{
26
27
  }, z.core.$strip>>;
27
28
  }, z.core.$strip>;
28
29
  export type PresetType = z.infer<typeof presetSchema>;
30
+ declare const presetQuerySchema: z.ZodObject<{
31
+ beforeDate: z.ZodOptional<z.ZodString>;
32
+ afterDate: z.ZodOptional<z.ZodString>;
33
+ orderBy: z.ZodOptional<z.ZodEnum<{
34
+ timestamp: "timestamp";
35
+ duration: "duration";
36
+ level: "level";
37
+ path: "path";
38
+ }>>;
39
+ orderDirection: z.ZodOptional<z.ZodEnum<{
40
+ asc: "asc";
41
+ desc: "desc";
42
+ }>>;
43
+ searchQuery: z.ZodOptional<z.ZodString>;
44
+ groupsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
45
+ groupsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
46
+ tagsInclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
47
+ tagsExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
48
+ nameInclude: z.ZodOptional<z.ZodString>;
49
+ nameExclude: z.ZodOptional<z.ZodString>;
50
+ }, z.core.$strip>;
51
+ export type PresetsFilter = z.infer<typeof presetQuerySchema> & z.infer<typeof paginationSchema>;
29
52
  export declare const presetLeaves: readonly [{
30
53
  readonly method: "get";
31
54
  readonly path: "presets";
@@ -52,18 +75,17 @@ export declare const presetLeaves: readonly [{
52
75
  docsMeta?: Record<string, unknown> | undefined;
53
76
  bodySchema: import("@emeryld/rrroutes-contract").RouteSchema<unknown, unknown> | undefined;
54
77
  querySchema: import("@emeryld/rrroutes-contract").RouteSchema<{
55
- orderBy: "timestamp" | "duration" | "level" | "path";
56
- orderDirection: "asc" | "desc";
57
78
  beforeDate?: string | undefined;
58
79
  afterDate?: string | undefined;
80
+ orderBy?: "timestamp" | "duration" | "level" | "path" | undefined;
81
+ orderDirection?: "asc" | "desc" | undefined;
59
82
  searchQuery?: string | undefined;
60
- groups?: string[] | undefined;
61
- excludeGroups?: string[] | undefined;
62
- tags?: string[] | undefined;
63
- excludeTags?: string[] | undefined;
64
- cursor?: string | undefined;
65
- name?: string | undefined;
66
- excludeName?: string | undefined;
83
+ groupsInclude?: string[] | undefined;
84
+ groupsExclude?: string[] | undefined;
85
+ tagsInclude?: string[] | undefined;
86
+ tagsExclude?: string[] | undefined;
87
+ nameInclude?: string | undefined;
88
+ nameExclude?: string | undefined;
67
89
  } & {
68
90
  cursor?: string | undefined;
69
91
  pageSize?: number | undefined;
@@ -73,13 +95,12 @@ export declare const presetLeaves: readonly [{
73
95
  orderBy?: "timestamp" | "duration" | "level" | "path" | undefined;
74
96
  orderDirection?: "asc" | "desc" | undefined;
75
97
  searchQuery?: string | undefined;
76
- groups?: string[] | undefined;
77
- excludeGroups?: string[] | undefined;
78
- tags?: string[] | undefined;
79
- excludeTags?: string[] | undefined;
80
- cursor?: string | undefined;
81
- name?: string | undefined;
82
- excludeName?: string | undefined;
98
+ groupsInclude?: string[] | undefined;
99
+ groupsExclude?: string[] | undefined;
100
+ tagsInclude?: string[] | undefined;
101
+ tagsExclude?: string[] | undefined;
102
+ nameInclude?: string | undefined;
103
+ nameExclude?: string | undefined;
83
104
  } & {
84
105
  cursor?: string | undefined;
85
106
  pageSize?: unknown;