@emeryld/rrroutes-openapi 2.3.2 → 2.3.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.
@@ -1 +1 @@
1
- export {};
1
+ import './main.css';
@@ -1,10 +1,10 @@
1
- import { AugmentLeaves, AnyLeafLowProfile, FinalizedRegistry } from '@emeryld/rrroutes-contract';
1
+ import { AnyLeafLowProfile, AugmentLeaves, FinalizedRegistry } from '@emeryld/rrroutes-contract';
2
2
  import { cacheLeaves } from '../v2/types/types.cacheLog';
3
3
  import { endpointLeaves } from '../v2/types/types.endpoint';
4
4
  import { logLeaves } from '../v2/types/types.log';
5
5
  import { presetLeaves } from '../v2/types/types.preset';
6
6
  import { requestLogLeaves } from '../v2/types/types.requestLog';
7
- type MountedLeaves<Leaves extends readonly AnyLeafLowProfile[]> = AugmentLeaves<'___rrroutes', undefined, Leaves>;
7
+ type MountedLeaves<Leaves extends readonly AnyLeafLowProfile[]> = AugmentLeaves<'/__rrroutes', undefined, Leaves>;
8
8
  type AllLeaves = readonly [
9
9
  ...MountedLeaves<typeof endpointLeaves>,
10
10
  ...MountedLeaves<typeof requestLogLeaves>,
@@ -1,5 +1,5 @@
1
- import { EndpointFilterType } from '../stores/endpointsStore';
2
1
  import { Endpoint } from '../types/types.endpoint';
2
+ import { EndpointFilterType } from './EndpointsPage';
3
3
  type Props = {
4
4
  endpoints: Endpoint[];
5
5
  total?: number;
@@ -1 +1,4 @@
1
+ import z from 'zod';
2
+ import { endpointFilterSchema } from '../types/types.endpoint.js';
3
+ export type EndpointFilterType = z.infer<typeof endpointFilterSchema>;
1
4
  export default function EndpointsPage(): import("react/jsx-runtime").JSX.Element;
@@ -9,9 +9,9 @@ export declare const cacheLogSchema: z.ZodObject<{
9
9
  updatedAt: z.ZodNumber;
10
10
  operation: z.ZodEnum<{
11
11
  delete: "delete";
12
- set: "set";
13
12
  hit: "hit";
14
13
  miss: "miss";
14
+ set: "set";
15
15
  }>;
16
16
  value: z.ZodNullable<z.ZodAny>;
17
17
  size: z.ZodOptional<z.ZodNumber>;
@@ -35,9 +35,9 @@ export declare const cacheLogQuerySchema: z.ZodObject<{
35
35
  cursor: z.ZodOptional<z.ZodString>;
36
36
  operations: z.ZodOptional<z.ZodArray<z.ZodEnum<{
37
37
  delete: "delete";
38
- set: "set";
39
38
  hit: "hit";
40
39
  miss: "miss";
40
+ set: "set";
41
41
  }>>>;
42
42
  }, z.core.$strip>;
43
43
  export declare const cacheLeaves: readonly [{
@@ -47,14 +47,14 @@ export declare const cacheLeaves: readonly [{
47
47
  description?: string | undefined;
48
48
  tags?: string[] | undefined;
49
49
  deprecated?: boolean | undefined;
50
+ queryExtensionSchema: undefined;
51
+ bodyFiles?: import("@emeryld/rrroutes-contract").FileField[] | undefined;
52
+ feed: true;
50
53
  summary?: string | undefined;
51
54
  docsGroup?: string | undefined;
52
55
  stability?: "experimental" | "beta" | "stable" | "deprecated" | undefined;
53
- feed: true;
54
- docsMeta?: Record<string, unknown> | undefined;
55
- bodyFiles?: import("@emeryld/rrroutes-contract").FileField[] | undefined;
56
- queryExtensionSchema: undefined;
57
56
  docsHidden?: boolean | undefined;
57
+ docsMeta?: Record<string, unknown> | undefined;
58
58
  bodySchema: import("@emeryld/rrroutes-contract").RouteSchema<unknown, unknown> | undefined;
59
59
  querySchema: import("@emeryld/rrroutes-contract").RouteSchema<{
60
60
  orderBy: "timestamp" | "duration" | "level" | "path";
@@ -65,7 +65,7 @@ export declare const cacheLeaves: readonly [{
65
65
  groups?: string[] | undefined;
66
66
  tags?: string[] | undefined;
67
67
  cursor?: string | undefined;
68
- operations?: ("delete" | "set" | "hit" | "miss")[] | undefined;
68
+ operations?: ("delete" | "hit" | "miss" | "set")[] | undefined;
69
69
  }, {
70
70
  beforeDate?: string | undefined;
71
71
  afterDate?: string | undefined;
@@ -75,7 +75,7 @@ export declare const cacheLeaves: readonly [{
75
75
  groups?: string[] | undefined;
76
76
  tags?: string[] | undefined;
77
77
  cursor?: string | undefined;
78
- operations?: ("delete" | "set" | "hit" | "miss")[] | undefined;
78
+ operations?: ("delete" | "hit" | "miss" | "set")[] | undefined;
79
79
  }>;
80
80
  paramsSchema: undefined;
81
81
  outputSchema: import("@emeryld/rrroutes-contract").RouteSchema<{
@@ -84,7 +84,7 @@ export declare const cacheLeaves: readonly [{
84
84
  name: string;
85
85
  createdAt: number;
86
86
  updatedAt: number;
87
- operation: "delete" | "set" | "hit" | "miss";
87
+ operation: "delete" | "hit" | "miss" | "set";
88
88
  value: any;
89
89
  description?: string | undefined;
90
90
  groupId?: string | undefined;
@@ -100,7 +100,7 @@ export declare const cacheLeaves: readonly [{
100
100
  name: string;
101
101
  createdAt: number;
102
102
  updatedAt: number;
103
- operation: "delete" | "set" | "hit" | "miss";
103
+ operation: "delete" | "hit" | "miss" | "set";
104
104
  value: any;
105
105
  description?: string | undefined;
106
106
  groupId?: string | undefined;
@@ -117,49 +117,51 @@ export declare const cacheLeaves: readonly [{
117
117
  totalCount?: number | undefined;
118
118
  }>;
119
119
  }>;
120
- }, {
121
- readonly method: "post";
122
- readonly path: "cache";
123
- readonly cfg: Readonly<{
124
- description?: string | undefined;
120
+ }, import("@emeryld/rrroutes-contract").LeafLowProfile<"post", "cache/clear", {
121
+ readonly description?: string | undefined;
122
+ readonly tags?: string[] | undefined;
123
+ readonly deprecated?: boolean | undefined;
124
+ readonly queryExtensionSchema: undefined;
125
+ readonly outputMetaSchema: undefined;
126
+ readonly bodySchema: import("@emeryld/rrroutes-contract").RouteSchema<unknown, unknown> | undefined;
127
+ readonly querySchema: import("@emeryld/rrroutes-contract").RouteSchema<{
128
+ orderBy: "timestamp" | "duration" | "level" | "path";
129
+ orderDirection: "asc" | "desc";
130
+ beforeDate?: string | undefined;
131
+ afterDate?: string | undefined;
132
+ searchQuery?: string | undefined;
133
+ groups?: string[] | undefined;
125
134
  tags?: string[] | undefined;
126
- deprecated?: boolean | undefined;
127
- summary?: string | undefined;
128
- docsGroup?: string | undefined;
129
- stability?: "experimental" | "beta" | "stable" | "deprecated" | undefined;
130
- feed?: boolean | undefined;
131
- docsMeta?: Record<string, unknown> | undefined;
132
- bodyFiles?: import("@emeryld/rrroutes-contract").FileField[] | undefined;
133
- queryExtensionSchema: undefined;
134
- docsHidden?: boolean | undefined;
135
- bodySchema: import("@emeryld/rrroutes-contract").RouteSchema<unknown, unknown> | undefined;
136
- querySchema: import("@emeryld/rrroutes-contract").RouteSchema<{
137
- orderBy: "timestamp" | "duration" | "level" | "path";
138
- orderDirection: "asc" | "desc";
139
- beforeDate?: string | undefined;
140
- afterDate?: string | undefined;
141
- searchQuery?: string | undefined;
142
- groups?: string[] | undefined;
143
- tags?: string[] | undefined;
144
- cursor?: string | undefined;
145
- operations?: ("delete" | "set" | "hit" | "miss")[] | undefined;
146
- }, {
147
- beforeDate?: string | undefined;
148
- afterDate?: string | undefined;
149
- orderBy?: "timestamp" | "duration" | "level" | "path" | undefined;
150
- orderDirection?: "asc" | "desc" | undefined;
151
- searchQuery?: string | undefined;
152
- groups?: string[] | undefined;
153
- tags?: string[] | undefined;
154
- cursor?: string | undefined;
155
- operations?: ("delete" | "set" | "hit" | "miss")[] | undefined;
156
- }>;
157
- paramsSchema: undefined;
158
- outputSchema: import("@emeryld/rrroutes-contract").RouteSchema<{
159
- meta?: string | undefined;
160
- }, {
161
- meta?: string | undefined;
162
- }>;
163
- outputMetaSchema: undefined;
135
+ cursor?: string | undefined;
136
+ operations?: ("delete" | "hit" | "miss" | "set")[] | undefined;
137
+ }, {
138
+ beforeDate?: string | undefined;
139
+ afterDate?: string | undefined;
140
+ orderBy?: "timestamp" | "duration" | "level" | "path" | undefined;
141
+ orderDirection?: "asc" | "desc" | undefined;
142
+ searchQuery?: string | undefined;
143
+ groups?: string[] | undefined;
144
+ tags?: string[] | undefined;
145
+ cursor?: string | undefined;
146
+ operations?: ("delete" | "hit" | "miss" | "set")[] | undefined;
147
+ }>;
148
+ readonly outputSchema: import("@emeryld/rrroutes-contract").RouteSchema<{
149
+ out: {
150
+ success: boolean;
151
+ };
152
+ meta?: string | undefined;
153
+ }, {
154
+ out: {
155
+ success: boolean;
156
+ };
157
+ meta?: string | undefined;
164
158
  }>;
165
- }];
159
+ readonly bodyFiles?: import("@emeryld/rrroutes-contract").FileField[] | undefined;
160
+ readonly feed?: boolean | undefined;
161
+ readonly summary?: string | undefined;
162
+ readonly docsGroup?: string | undefined;
163
+ readonly stability?: "experimental" | "beta" | "stable" | "deprecated" | undefined;
164
+ readonly docsHidden?: boolean | undefined;
165
+ readonly docsMeta?: Record<string, unknown> | undefined;
166
+ paramsSchema: undefined;
167
+ }>];
@@ -1,5 +1,5 @@
1
1
  import z, { ZodType } from 'zod';
2
- export declare const nodeKind: readonly ["object", "string", "number", "array", "enum", "literal", "union"];
2
+ export declare const nodeKind: readonly ["object", "string", "number", "boolean", "bigint", "date", "array", "enum", "literal", "union", "record", "tuple", "unknown", "any"];
3
3
  export type SerializableSchema = {
4
4
  kind: (typeof nodeKind)[number];
5
5
  optional?: boolean;
@@ -34,10 +34,10 @@ export declare const endpointSchema: z.ZodObject<{
34
34
  query: z.ZodOptional<z.ZodType<SerializableSchema, SerializableSchema, z.core.$ZodTypeInternals<SerializableSchema, SerializableSchema>>>;
35
35
  output: z.ZodOptional<z.ZodType<SerializableSchema, SerializableSchema, z.core.$ZodTypeInternals<SerializableSchema, SerializableSchema>>>;
36
36
  params: z.ZodOptional<z.ZodType<SerializableSchema, SerializableSchema, z.core.$ZodTypeInternals<SerializableSchema, SerializableSchema>>>;
37
- bodyFiles: z.ZodObject<{
37
+ bodyFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
38
38
  name: z.ZodString;
39
39
  maxCount: z.ZodNumber;
40
- }, z.core.$strip>;
40
+ }, z.core.$strip>>>;
41
41
  }, z.core.$strip>;
42
42
  feed: z.ZodOptional<z.ZodBoolean>;
43
43
  summary: z.ZodOptional<z.ZodString>;
@@ -49,6 +49,7 @@ export declare const endpointSchema: z.ZodObject<{
49
49
  }>;
50
50
  hidden: z.ZodOptional<z.ZodBoolean>;
51
51
  meta: z.ZodRecord<z.ZodString, z.ZodString>;
52
+ implemented: z.ZodOptional<z.ZodBoolean>;
52
53
  }, z.core.$strip>;
53
54
  export type Endpoint = z.output<typeof endpointSchema>;
54
55
  export declare const endpointFilterSchema: z.ZodObject<{
@@ -90,14 +91,14 @@ export declare const endpointLeaves: readonly [{
90
91
  description?: string | undefined;
91
92
  tags?: string[] | undefined;
92
93
  deprecated?: boolean | undefined;
94
+ queryExtensionSchema: undefined;
95
+ bodyFiles?: import("@emeryld/rrroutes-contract").FileField[] | undefined;
96
+ feed: true;
93
97
  summary?: string | undefined;
94
98
  docsGroup?: string | undefined;
95
99
  stability?: "experimental" | "beta" | "stable" | "deprecated" | undefined;
96
- feed: true;
97
- docsMeta?: Record<string, unknown> | undefined;
98
- bodyFiles?: import("@emeryld/rrroutes-contract").FileField[] | undefined;
99
- queryExtensionSchema: undefined;
100
100
  docsHidden?: boolean | undefined;
101
+ docsMeta?: Record<string, unknown> | undefined;
101
102
  bodySchema: import("@emeryld/rrroutes-contract").RouteSchema<unknown, unknown> | undefined;
102
103
  querySchema: import("@emeryld/rrroutes-contract").RouteSchema<{
103
104
  orderBy: "timestamp" | "duration" | "level" | "path";
@@ -134,14 +135,14 @@ export declare const endpointLeaves: readonly [{
134
135
  method: "get" | "post" | "put" | "patch" | "delete";
135
136
  path: string;
136
137
  contract: {
137
- bodyFiles: {
138
- name: string;
139
- maxCount: number;
140
- };
141
138
  body?: SerializableSchema | undefined;
142
139
  query?: SerializableSchema | undefined;
143
140
  output?: SerializableSchema | undefined;
144
141
  params?: SerializableSchema | undefined;
142
+ bodyFiles?: {
143
+ name: string;
144
+ maxCount: number;
145
+ }[] | undefined;
145
146
  };
146
147
  stability: "deprecated" | "experimental" | "beta" | "stable";
147
148
  meta: Record<string, string>;
@@ -151,6 +152,7 @@ export declare const endpointLeaves: readonly [{
151
152
  feed?: boolean | undefined;
152
153
  summary?: string | undefined;
153
154
  hidden?: boolean | undefined;
155
+ implemented?: boolean | undefined;
154
156
  }[];
155
157
  meta: {
156
158
  totalCount?: number | undefined;
@@ -164,14 +166,14 @@ export declare const endpointLeaves: readonly [{
164
166
  method: "get" | "post" | "put" | "patch" | "delete";
165
167
  path: string;
166
168
  contract: {
167
- bodyFiles: {
168
- name: string;
169
- maxCount: number;
170
- };
171
169
  body?: SerializableSchema | undefined;
172
170
  query?: SerializableSchema | undefined;
173
171
  output?: SerializableSchema | undefined;
174
172
  params?: SerializableSchema | undefined;
173
+ bodyFiles?: {
174
+ name: string;
175
+ maxCount: number;
176
+ }[] | undefined;
175
177
  };
176
178
  stability: "deprecated" | "experimental" | "beta" | "stable";
177
179
  meta: Record<string, string>;
@@ -181,6 +183,7 @@ export declare const endpointLeaves: readonly [{
181
183
  feed?: boolean | undefined;
182
184
  summary?: string | undefined;
183
185
  hidden?: boolean | undefined;
186
+ implemented?: boolean | undefined;
184
187
  }[];
185
188
  meta: {
186
189
  totalCount?: number | undefined;
@@ -196,11 +199,8 @@ export declare const endpointLeaves: readonly [{
196
199
  readonly description?: string | undefined;
197
200
  readonly tags?: string[] | undefined;
198
201
  readonly deprecated?: boolean | undefined;
199
- readonly summary?: string | undefined;
200
- readonly docsGroup?: string | undefined;
201
- readonly stability?: "experimental" | "beta" | "stable" | "deprecated" | undefined;
202
- readonly feed?: boolean | undefined;
203
- readonly docsMeta?: Record<string, unknown> | undefined;
202
+ readonly queryExtensionSchema: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> & import("@emeryld/rrroutes-contract").RouteSchema<unknown, unknown>;
203
+ readonly outputMetaSchema: import("@emeryld/rrroutes-contract").RouteSchema<unknown, unknown>;
204
204
  readonly bodySchema: import("@emeryld/rrroutes-contract").RouteSchema<unknown, unknown> | undefined;
205
205
  readonly querySchema: undefined;
206
206
  readonly outputSchema: import("@emeryld/rrroutes-contract").RouteSchema<{
@@ -212,14 +212,14 @@ export declare const endpointLeaves: readonly [{
212
212
  method: "get" | "post" | "put" | "patch" | "delete";
213
213
  path: string;
214
214
  contract: {
215
- bodyFiles: {
216
- name: string;
217
- maxCount: number;
218
- };
219
215
  body?: SerializableSchema | undefined;
220
216
  query?: SerializableSchema | undefined;
221
217
  output?: SerializableSchema | undefined;
222
218
  params?: SerializableSchema | undefined;
219
+ bodyFiles?: {
220
+ name: string;
221
+ maxCount: number;
222
+ }[] | undefined;
223
223
  };
224
224
  stability: "deprecated" | "experimental" | "beta" | "stable";
225
225
  meta: Record<string, string>;
@@ -242,6 +242,8 @@ export declare const endpointLeaves: readonly [{
242
242
  output?: any;
243
243
  headers?: Record<string, any> | undefined;
244
244
  error?: string | undefined;
245
+ ip?: string | undefined;
246
+ userAgent?: string | undefined;
245
247
  }[];
246
248
  volumeTS: {
247
249
  timestamp: string;
@@ -256,6 +258,7 @@ export declare const endpointLeaves: readonly [{
256
258
  feed?: boolean | undefined;
257
259
  summary?: string | undefined;
258
260
  hidden?: boolean | undefined;
261
+ implemented?: boolean | undefined;
259
262
  };
260
263
  meta: unknown;
261
264
  }, {
@@ -267,14 +270,14 @@ export declare const endpointLeaves: readonly [{
267
270
  method: "get" | "post" | "put" | "patch" | "delete";
268
271
  path: string;
269
272
  contract: {
270
- bodyFiles: {
271
- name: string;
272
- maxCount: number;
273
- };
274
273
  body?: SerializableSchema | undefined;
275
274
  query?: SerializableSchema | undefined;
276
275
  output?: SerializableSchema | undefined;
277
276
  params?: SerializableSchema | undefined;
277
+ bodyFiles?: {
278
+ name: string;
279
+ maxCount: number;
280
+ }[] | undefined;
278
281
  };
279
282
  stability: "deprecated" | "experimental" | "beta" | "stable";
280
283
  meta: Record<string, string>;
@@ -297,6 +300,8 @@ export declare const endpointLeaves: readonly [{
297
300
  output?: any;
298
301
  headers?: Record<string, any> | undefined;
299
302
  error?: string | undefined;
303
+ ip?: string | undefined;
304
+ userAgent?: string | undefined;
300
305
  }[];
301
306
  volumeTS: {
302
307
  timestamp: string;
@@ -311,13 +316,17 @@ export declare const endpointLeaves: readonly [{
311
316
  feed?: boolean | undefined;
312
317
  summary?: string | undefined;
313
318
  hidden?: boolean | undefined;
319
+ implemented?: boolean | undefined;
314
320
  };
315
321
  meta: unknown;
316
322
  }>;
317
323
  readonly bodyFiles?: import("@emeryld/rrroutes-contract").FileField[] | undefined;
318
- readonly outputMetaSchema: import("@emeryld/rrroutes-contract").RouteSchema<unknown, unknown>;
319
- readonly queryExtensionSchema: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> & import("@emeryld/rrroutes-contract").RouteSchema<unknown, unknown>;
324
+ readonly feed?: boolean | undefined;
325
+ readonly summary?: string | undefined;
326
+ readonly docsGroup?: string | undefined;
327
+ readonly stability?: "experimental" | "beta" | "stable" | "deprecated" | undefined;
320
328
  readonly docsHidden?: boolean | undefined;
329
+ readonly docsMeta?: Record<string, unknown> | undefined;
321
330
  paramsSchema: import("@emeryld/rrroutes-contract").RouteSchema<{
322
331
  endpointId: string;
323
332
  }, {
@@ -48,14 +48,14 @@ export declare const logLeaves: readonly [{
48
48
  description?: string | undefined;
49
49
  tags?: string[] | undefined;
50
50
  deprecated?: boolean | undefined;
51
+ queryExtensionSchema: undefined;
52
+ bodyFiles?: import("@emeryld/rrroutes-contract").FileField[] | undefined;
53
+ feed: true;
51
54
  summary?: string | undefined;
52
55
  docsGroup?: string | undefined;
53
56
  stability?: "experimental" | "beta" | "stable" | "deprecated" | undefined;
54
- feed: true;
55
- docsMeta?: Record<string, unknown> | undefined;
56
- bodyFiles?: import("@emeryld/rrroutes-contract").FileField[] | undefined;
57
- queryExtensionSchema: undefined;
58
57
  docsHidden?: boolean | undefined;
58
+ docsMeta?: Record<string, unknown> | undefined;
59
59
  bodySchema: import("@emeryld/rrroutes-contract").RouteSchema<unknown, unknown> | undefined;
60
60
  querySchema: import("@emeryld/rrroutes-contract").RouteSchema<{
61
61
  orderBy: "timestamp" | "duration" | "level" | "path";
@@ -6,14 +6,14 @@ export declare const presetLeaves: readonly [{
6
6
  description?: string | undefined;
7
7
  tags?: string[] | undefined;
8
8
  deprecated?: boolean | undefined;
9
+ queryExtensionSchema: undefined;
10
+ bodyFiles?: import("@emeryld/rrroutes-contract").FileField[] | undefined;
11
+ feed: true;
9
12
  summary?: string | undefined;
10
13
  docsGroup?: string | undefined;
11
14
  stability?: "experimental" | "beta" | "stable" | "deprecated" | undefined;
12
- feed: true;
13
- docsMeta?: Record<string, unknown> | undefined;
14
- bodyFiles?: import("@emeryld/rrroutes-contract").FileField[] | undefined;
15
- queryExtensionSchema: undefined;
16
15
  docsHidden?: boolean | undefined;
16
+ docsMeta?: Record<string, unknown> | undefined;
17
17
  bodySchema: import("@emeryld/rrroutes-contract").RouteSchema<unknown, unknown> | undefined;
18
18
  querySchema: undefined;
19
19
  paramsSchema: undefined;
@@ -34,7 +34,7 @@ export declare const presetLeaves: readonly [{
34
34
  description?: string | undefined;
35
35
  groupId?: string | undefined;
36
36
  tags?: string[] | undefined;
37
- };
37
+ }[];
38
38
  meta: {
39
39
  totalCount?: number | undefined;
40
40
  };
@@ -55,7 +55,7 @@ export declare const presetLeaves: readonly [{
55
55
  description?: string | undefined;
56
56
  groupId?: string | undefined;
57
57
  tags?: string[] | undefined;
58
- };
58
+ }[];
59
59
  meta: {
60
60
  totalCount?: number | undefined;
61
61
  };
@@ -73,14 +73,14 @@ export declare const presetLeaves: readonly [{
73
73
  description?: string | undefined;
74
74
  tags?: string[] | undefined;
75
75
  deprecated?: boolean | undefined;
76
+ queryExtensionSchema: undefined;
77
+ bodyFiles?: import("@emeryld/rrroutes-contract").FileField[] | undefined;
78
+ feed?: boolean | undefined;
76
79
  summary?: string | undefined;
77
80
  docsGroup?: string | undefined;
78
81
  stability?: "experimental" | "beta" | "stable" | "deprecated" | undefined;
79
- feed?: boolean | undefined;
80
- docsMeta?: Record<string, unknown> | undefined;
81
- bodyFiles?: import("@emeryld/rrroutes-contract").FileField[] | undefined;
82
- queryExtensionSchema: undefined;
83
82
  docsHidden?: boolean | undefined;
83
+ docsMeta?: Record<string, unknown> | undefined;
84
84
  bodySchema: import("@emeryld/rrroutes-contract").RouteSchema<{
85
85
  id: string;
86
86
  name: string;
@@ -164,14 +164,14 @@ export declare const presetLeaves: readonly [{
164
164
  description?: string | undefined;
165
165
  tags?: string[] | undefined;
166
166
  deprecated?: boolean | undefined;
167
+ queryExtensionSchema: undefined;
168
+ bodyFiles?: import("@emeryld/rrroutes-contract").FileField[] | undefined;
169
+ feed?: boolean | undefined;
167
170
  summary?: string | undefined;
168
171
  docsGroup?: string | undefined;
169
172
  stability?: "experimental" | "beta" | "stable" | "deprecated" | undefined;
170
- feed?: boolean | undefined;
171
- docsMeta?: Record<string, unknown> | undefined;
172
- bodyFiles?: import("@emeryld/rrroutes-contract").FileField[] | undefined;
173
- queryExtensionSchema: undefined;
174
173
  docsHidden?: boolean | undefined;
174
+ docsMeta?: Record<string, unknown> | undefined;
175
175
  bodySchema: import("@emeryld/rrroutes-contract").RouteSchema<{
176
176
  id: string;
177
177
  name: string;
@@ -24,6 +24,8 @@ export declare const requestSchema: z.ZodObject<{
24
24
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
25
25
  error: z.ZodOptional<z.ZodString>;
26
26
  durationMs: z.ZodNumber;
27
+ ip: z.ZodOptional<z.ZodString>;
28
+ userAgent: z.ZodOptional<z.ZodString>;
27
29
  }, z.core.$strip>;
28
30
  export type RequestLogType = z.infer<typeof requestSchema>;
29
31
  export declare const requestQuerySchema: z.ZodObject<{
@@ -60,14 +62,14 @@ export declare const requestLogLeaves: readonly [{
60
62
  description?: string | undefined;
61
63
  tags?: string[] | undefined;
62
64
  deprecated?: boolean | undefined;
65
+ queryExtensionSchema: undefined;
66
+ bodyFiles?: import("@emeryld/rrroutes-contract").FileField[] | undefined;
67
+ feed: true;
63
68
  summary?: string | undefined;
64
69
  docsGroup?: string | undefined;
65
70
  stability?: "experimental" | "beta" | "stable" | "deprecated" | undefined;
66
- feed: true;
67
- docsMeta?: Record<string, unknown> | undefined;
68
- bodyFiles?: import("@emeryld/rrroutes-contract").FileField[] | undefined;
69
- queryExtensionSchema: undefined;
70
71
  docsHidden?: boolean | undefined;
72
+ docsMeta?: Record<string, unknown> | undefined;
71
73
  bodySchema: import("@emeryld/rrroutes-contract").RouteSchema<unknown, unknown> | undefined;
72
74
  querySchema: import("@emeryld/rrroutes-contract").RouteSchema<{
73
75
  orderBy: "timestamp" | "duration" | "level" | "path";
@@ -115,6 +117,8 @@ export declare const requestLogLeaves: readonly [{
115
117
  output?: any;
116
118
  headers?: Record<string, any> | undefined;
117
119
  error?: string | undefined;
120
+ ip?: string | undefined;
121
+ userAgent?: string | undefined;
118
122
  }[];
119
123
  meta: {
120
124
  totalCount?: number | undefined;
@@ -139,6 +143,8 @@ export declare const requestLogLeaves: readonly [{
139
143
  output?: any;
140
144
  headers?: Record<string, any> | undefined;
141
145
  error?: string | undefined;
146
+ ip?: string | undefined;
147
+ userAgent?: string | undefined;
142
148
  }[];
143
149
  meta: {
144
150
  totalCount?: number | undefined;
@@ -154,11 +160,8 @@ export declare const requestLogLeaves: readonly [{
154
160
  readonly description?: string | undefined;
155
161
  readonly tags?: string[] | undefined;
156
162
  readonly deprecated?: boolean | undefined;
157
- readonly summary?: string | undefined;
158
- readonly docsGroup?: string | undefined;
159
- readonly stability?: "experimental" | "beta" | "stable" | "deprecated" | undefined;
160
- readonly feed?: boolean | undefined;
161
- readonly docsMeta?: Record<string, unknown> | undefined;
163
+ readonly queryExtensionSchema: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> & import("@emeryld/rrroutes-contract").RouteSchema<unknown, unknown>;
164
+ readonly outputMetaSchema: import("@emeryld/rrroutes-contract").RouteSchema<unknown, unknown>;
162
165
  readonly bodySchema: import("@emeryld/rrroutes-contract").RouteSchema<unknown, unknown> | undefined;
163
166
  readonly querySchema: undefined;
164
167
  readonly outputSchema: import("@emeryld/rrroutes-contract").RouteSchema<{
@@ -188,7 +191,7 @@ export declare const requestLogLeaves: readonly [{
188
191
  name: string;
189
192
  createdAt: number;
190
193
  updatedAt: number;
191
- operation: "delete" | "set" | "hit" | "miss";
194
+ operation: "delete" | "hit" | "miss" | "set";
192
195
  value: any;
193
196
  description?: string | undefined;
194
197
  groupId?: string | undefined;
@@ -204,6 +207,8 @@ export declare const requestLogLeaves: readonly [{
204
207
  output?: any;
205
208
  headers?: Record<string, any> | undefined;
206
209
  error?: string | undefined;
210
+ ip?: string | undefined;
211
+ userAgent?: string | undefined;
207
212
  };
208
213
  meta: unknown;
209
214
  }, {
@@ -233,7 +238,7 @@ export declare const requestLogLeaves: readonly [{
233
238
  name: string;
234
239
  createdAt: number;
235
240
  updatedAt: number;
236
- operation: "delete" | "set" | "hit" | "miss";
241
+ operation: "delete" | "hit" | "miss" | "set";
237
242
  value: any;
238
243
  description?: string | undefined;
239
244
  groupId?: string | undefined;
@@ -249,13 +254,18 @@ export declare const requestLogLeaves: readonly [{
249
254
  output?: any;
250
255
  headers?: Record<string, any> | undefined;
251
256
  error?: string | undefined;
257
+ ip?: string | undefined;
258
+ userAgent?: string | undefined;
252
259
  };
253
260
  meta: unknown;
254
261
  }>;
255
262
  readonly bodyFiles?: import("@emeryld/rrroutes-contract").FileField[] | undefined;
256
- readonly outputMetaSchema: import("@emeryld/rrroutes-contract").RouteSchema<unknown, unknown>;
257
- readonly queryExtensionSchema: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> & import("@emeryld/rrroutes-contract").RouteSchema<unknown, unknown>;
263
+ readonly feed?: boolean | undefined;
264
+ readonly summary?: string | undefined;
265
+ readonly docsGroup?: string | undefined;
266
+ readonly stability?: "experimental" | "beta" | "stable" | "deprecated" | undefined;
258
267
  readonly docsHidden?: boolean | undefined;
268
+ readonly docsMeta?: Record<string, unknown> | undefined;
259
269
  paramsSchema: import("@emeryld/rrroutes-contract").RouteSchema<{
260
270
  requestId: string;
261
271
  }, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emeryld/rrroutes-openapi",
3
- "version": "2.3.2",
3
+ "version": "2.3.4",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -17,12 +17,13 @@
17
17
  "dist"
18
18
  ],
19
19
  "dependencies": {
20
- "@emeryld/rrroutes-client": "^2.3.5",
20
+ "@emeryld/rrroutes-client": "^2.3.9",
21
21
  "@emeryld/rrroutes-contract": "^2.4.14",
22
+ "@emotion/cache": "^11.14.0",
22
23
  "@emotion/react": "^11.14.0",
23
24
  "@emotion/styled": "^11.14.1",
24
- "@mui/icons-material": "^7.3.5",
25
- "@mui/material": "^7.3.5",
25
+ "@mui/icons-material": "^7.3.6",
26
+ "@mui/material": "^7.3.6",
26
27
  "@tanstack/react-query": "^5.90.11",
27
28
  "react": "^18.3.1",
28
29
  "react-dom": "^18.3.1",
@@ -1,20 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import z from 'zod';
3
- import { SerializedLeaf } from '../../../docs/serializer';
4
- import { METHODS } from '../types/types.base';
5
- import { endpointFilterSchema } from '../types/types.endpoint';
6
- export type EndpointFilterType = z.infer<typeof endpointFilterSchema>;
7
- type EndpointsContextValue = {
8
- endpoints: SerializedLeaf[];
9
- tags: string[];
10
- getEndpoint(method: (typeof METHODS)[number], path: string): SerializedLeaf | undefined;
11
- filterEndpoints(filter: EndpointFilterType): SerializedLeaf[];
12
- endpointKeys: string[];
13
- };
14
- export declare function EndpointsProvider({ children, endpoints, }: {
15
- children: ReactNode;
16
- endpoints: SerializedLeaf[];
17
- }): import("react/jsx-runtime").JSX.Element;
18
- export declare function useEndpointsContext(): EndpointsContextValue;
19
- export declare function leafDisplayKey(leaf: SerializedLeaf): string;
20
- export {};
@@ -1,5 +0,0 @@
1
- import z from 'zod';
2
- import { logQuerySchema, logSchema } from '../types/types.log';
3
- export type LogType = z.infer<typeof logSchema>;
4
- export type LogFilterOutput = z.output<typeof logQuerySchema>;
5
- export type LogFilterInput = z.input<typeof logQuerySchema>;