@emeryld/rrroutes-openapi 2.3.2 → 2.3.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.
- package/dist/docs/LeafDocsPage.d.ts +3 -5
- package/dist/docs/docs.d.ts +1 -2
- package/dist/docs/schemaIntrospection.d.ts +3 -12
- package/dist/docs/serializer.d.ts +4 -19
- package/dist/index.cjs +66 -55
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -23
- package/dist/index.mjs +66 -55
- package/dist/index.mjs.map +1 -1
- package/dist/public/assets/docs.css +1 -0
- package/dist/public/assets/docs.js +73 -73
- package/dist/web/main.d.ts +1 -1
- package/dist/web/utils/types.d.ts +2 -2
- package/dist/web/v2/endpoints/EndpointList.d.ts +1 -1
- package/dist/web/v2/endpoints/EndpointsPage.d.ts +3 -0
- package/dist/web/v2/types/types.cacheLog.d.ts +16 -16
- package/dist/web/v2/types/types.endpoint.d.ts +30 -30
- package/dist/web/v2/types/types.log.d.ts +4 -4
- package/dist/web/v2/types/types.preset.d.ts +12 -12
- package/dist/web/v2/types/types.requestLog.d.ts +13 -13
- package/package.json +4 -3
- package/dist/web/v2/stores/endpointsStore.d.ts +0 -20
- package/dist/web/v2/stores/logsStore.d.ts +0 -5
package/dist/web/main.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import './main.css';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
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<'
|
|
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>,
|
|
@@ -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" | "
|
|
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" | "
|
|
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" | "
|
|
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" | "
|
|
103
|
+
operation: "delete" | "hit" | "miss" | "set";
|
|
104
104
|
value: any;
|
|
105
105
|
description?: string | undefined;
|
|
106
106
|
groupId?: string | undefined;
|
|
@@ -124,14 +124,14 @@ export declare const cacheLeaves: readonly [{
|
|
|
124
124
|
description?: string | undefined;
|
|
125
125
|
tags?: string[] | undefined;
|
|
126
126
|
deprecated?: boolean | undefined;
|
|
127
|
+
queryExtensionSchema: undefined;
|
|
128
|
+
bodyFiles?: import("@emeryld/rrroutes-contract").FileField[] | undefined;
|
|
129
|
+
feed?: boolean | undefined;
|
|
127
130
|
summary?: string | undefined;
|
|
128
131
|
docsGroup?: string | undefined;
|
|
129
132
|
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
133
|
docsHidden?: boolean | undefined;
|
|
134
|
+
docsMeta?: Record<string, unknown> | undefined;
|
|
135
135
|
bodySchema: import("@emeryld/rrroutes-contract").RouteSchema<unknown, unknown> | undefined;
|
|
136
136
|
querySchema: import("@emeryld/rrroutes-contract").RouteSchema<{
|
|
137
137
|
orderBy: "timestamp" | "duration" | "level" | "path";
|
|
@@ -142,7 +142,7 @@ export declare const cacheLeaves: readonly [{
|
|
|
142
142
|
groups?: string[] | undefined;
|
|
143
143
|
tags?: string[] | undefined;
|
|
144
144
|
cursor?: string | undefined;
|
|
145
|
-
operations?: ("delete" | "
|
|
145
|
+
operations?: ("delete" | "hit" | "miss" | "set")[] | undefined;
|
|
146
146
|
}, {
|
|
147
147
|
beforeDate?: string | undefined;
|
|
148
148
|
afterDate?: string | undefined;
|
|
@@ -152,7 +152,7 @@ export declare const cacheLeaves: readonly [{
|
|
|
152
152
|
groups?: string[] | undefined;
|
|
153
153
|
tags?: string[] | undefined;
|
|
154
154
|
cursor?: string | undefined;
|
|
155
|
-
operations?: ("delete" | "
|
|
155
|
+
operations?: ("delete" | "hit" | "miss" | "set")[] | undefined;
|
|
156
156
|
}>;
|
|
157
157
|
paramsSchema: undefined;
|
|
158
158
|
outputSchema: import("@emeryld/rrroutes-contract").RouteSchema<{
|
|
@@ -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>;
|
|
@@ -90,14 +90,14 @@ export declare const endpointLeaves: readonly [{
|
|
|
90
90
|
description?: string | undefined;
|
|
91
91
|
tags?: string[] | undefined;
|
|
92
92
|
deprecated?: boolean | undefined;
|
|
93
|
+
queryExtensionSchema: undefined;
|
|
94
|
+
bodyFiles?: import("@emeryld/rrroutes-contract").FileField[] | undefined;
|
|
95
|
+
feed: true;
|
|
93
96
|
summary?: string | undefined;
|
|
94
97
|
docsGroup?: string | undefined;
|
|
95
98
|
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
99
|
docsHidden?: boolean | undefined;
|
|
100
|
+
docsMeta?: Record<string, unknown> | undefined;
|
|
101
101
|
bodySchema: import("@emeryld/rrroutes-contract").RouteSchema<unknown, unknown> | undefined;
|
|
102
102
|
querySchema: import("@emeryld/rrroutes-contract").RouteSchema<{
|
|
103
103
|
orderBy: "timestamp" | "duration" | "level" | "path";
|
|
@@ -134,14 +134,14 @@ export declare const endpointLeaves: readonly [{
|
|
|
134
134
|
method: "get" | "post" | "put" | "patch" | "delete";
|
|
135
135
|
path: string;
|
|
136
136
|
contract: {
|
|
137
|
-
bodyFiles: {
|
|
138
|
-
name: string;
|
|
139
|
-
maxCount: number;
|
|
140
|
-
};
|
|
141
137
|
body?: SerializableSchema | undefined;
|
|
142
138
|
query?: SerializableSchema | undefined;
|
|
143
139
|
output?: SerializableSchema | undefined;
|
|
144
140
|
params?: SerializableSchema | undefined;
|
|
141
|
+
bodyFiles?: {
|
|
142
|
+
name: string;
|
|
143
|
+
maxCount: number;
|
|
144
|
+
}[] | undefined;
|
|
145
145
|
};
|
|
146
146
|
stability: "deprecated" | "experimental" | "beta" | "stable";
|
|
147
147
|
meta: Record<string, string>;
|
|
@@ -164,14 +164,14 @@ export declare const endpointLeaves: readonly [{
|
|
|
164
164
|
method: "get" | "post" | "put" | "patch" | "delete";
|
|
165
165
|
path: string;
|
|
166
166
|
contract: {
|
|
167
|
-
bodyFiles: {
|
|
168
|
-
name: string;
|
|
169
|
-
maxCount: number;
|
|
170
|
-
};
|
|
171
167
|
body?: SerializableSchema | undefined;
|
|
172
168
|
query?: SerializableSchema | undefined;
|
|
173
169
|
output?: SerializableSchema | undefined;
|
|
174
170
|
params?: SerializableSchema | undefined;
|
|
171
|
+
bodyFiles?: {
|
|
172
|
+
name: string;
|
|
173
|
+
maxCount: number;
|
|
174
|
+
}[] | undefined;
|
|
175
175
|
};
|
|
176
176
|
stability: "deprecated" | "experimental" | "beta" | "stable";
|
|
177
177
|
meta: Record<string, string>;
|
|
@@ -196,11 +196,8 @@ export declare const endpointLeaves: readonly [{
|
|
|
196
196
|
readonly description?: string | undefined;
|
|
197
197
|
readonly tags?: string[] | undefined;
|
|
198
198
|
readonly deprecated?: boolean | undefined;
|
|
199
|
-
readonly
|
|
200
|
-
readonly
|
|
201
|
-
readonly stability?: "experimental" | "beta" | "stable" | "deprecated" | undefined;
|
|
202
|
-
readonly feed?: boolean | undefined;
|
|
203
|
-
readonly docsMeta?: Record<string, unknown> | undefined;
|
|
199
|
+
readonly queryExtensionSchema: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> & import("@emeryld/rrroutes-contract").RouteSchema<unknown, unknown>;
|
|
200
|
+
readonly outputMetaSchema: import("@emeryld/rrroutes-contract").RouteSchema<unknown, unknown>;
|
|
204
201
|
readonly bodySchema: import("@emeryld/rrroutes-contract").RouteSchema<unknown, unknown> | undefined;
|
|
205
202
|
readonly querySchema: undefined;
|
|
206
203
|
readonly outputSchema: import("@emeryld/rrroutes-contract").RouteSchema<{
|
|
@@ -212,14 +209,14 @@ export declare const endpointLeaves: readonly [{
|
|
|
212
209
|
method: "get" | "post" | "put" | "patch" | "delete";
|
|
213
210
|
path: string;
|
|
214
211
|
contract: {
|
|
215
|
-
bodyFiles: {
|
|
216
|
-
name: string;
|
|
217
|
-
maxCount: number;
|
|
218
|
-
};
|
|
219
212
|
body?: SerializableSchema | undefined;
|
|
220
213
|
query?: SerializableSchema | undefined;
|
|
221
214
|
output?: SerializableSchema | undefined;
|
|
222
215
|
params?: SerializableSchema | undefined;
|
|
216
|
+
bodyFiles?: {
|
|
217
|
+
name: string;
|
|
218
|
+
maxCount: number;
|
|
219
|
+
}[] | undefined;
|
|
223
220
|
};
|
|
224
221
|
stability: "deprecated" | "experimental" | "beta" | "stable";
|
|
225
222
|
meta: Record<string, string>;
|
|
@@ -267,14 +264,14 @@ export declare const endpointLeaves: readonly [{
|
|
|
267
264
|
method: "get" | "post" | "put" | "patch" | "delete";
|
|
268
265
|
path: string;
|
|
269
266
|
contract: {
|
|
270
|
-
bodyFiles: {
|
|
271
|
-
name: string;
|
|
272
|
-
maxCount: number;
|
|
273
|
-
};
|
|
274
267
|
body?: SerializableSchema | undefined;
|
|
275
268
|
query?: SerializableSchema | undefined;
|
|
276
269
|
output?: SerializableSchema | undefined;
|
|
277
270
|
params?: SerializableSchema | undefined;
|
|
271
|
+
bodyFiles?: {
|
|
272
|
+
name: string;
|
|
273
|
+
maxCount: number;
|
|
274
|
+
}[] | undefined;
|
|
278
275
|
};
|
|
279
276
|
stability: "deprecated" | "experimental" | "beta" | "stable";
|
|
280
277
|
meta: Record<string, string>;
|
|
@@ -315,9 +312,12 @@ export declare const endpointLeaves: readonly [{
|
|
|
315
312
|
meta: unknown;
|
|
316
313
|
}>;
|
|
317
314
|
readonly bodyFiles?: import("@emeryld/rrroutes-contract").FileField[] | undefined;
|
|
318
|
-
readonly
|
|
319
|
-
readonly
|
|
315
|
+
readonly feed?: boolean | undefined;
|
|
316
|
+
readonly summary?: string | undefined;
|
|
317
|
+
readonly docsGroup?: string | undefined;
|
|
318
|
+
readonly stability?: "experimental" | "beta" | "stable" | "deprecated" | undefined;
|
|
320
319
|
readonly docsHidden?: boolean | undefined;
|
|
320
|
+
readonly docsMeta?: Record<string, unknown> | undefined;
|
|
321
321
|
paramsSchema: import("@emeryld/rrroutes-contract").RouteSchema<{
|
|
322
322
|
endpointId: string;
|
|
323
323
|
}, {
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -60,14 +60,14 @@ export declare const requestLogLeaves: readonly [{
|
|
|
60
60
|
description?: string | undefined;
|
|
61
61
|
tags?: string[] | undefined;
|
|
62
62
|
deprecated?: boolean | undefined;
|
|
63
|
+
queryExtensionSchema: undefined;
|
|
64
|
+
bodyFiles?: import("@emeryld/rrroutes-contract").FileField[] | undefined;
|
|
65
|
+
feed: true;
|
|
63
66
|
summary?: string | undefined;
|
|
64
67
|
docsGroup?: string | undefined;
|
|
65
68
|
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
69
|
docsHidden?: boolean | undefined;
|
|
70
|
+
docsMeta?: Record<string, unknown> | undefined;
|
|
71
71
|
bodySchema: import("@emeryld/rrroutes-contract").RouteSchema<unknown, unknown> | undefined;
|
|
72
72
|
querySchema: import("@emeryld/rrroutes-contract").RouteSchema<{
|
|
73
73
|
orderBy: "timestamp" | "duration" | "level" | "path";
|
|
@@ -154,11 +154,8 @@ export declare const requestLogLeaves: readonly [{
|
|
|
154
154
|
readonly description?: string | undefined;
|
|
155
155
|
readonly tags?: string[] | undefined;
|
|
156
156
|
readonly deprecated?: boolean | undefined;
|
|
157
|
-
readonly
|
|
158
|
-
readonly
|
|
159
|
-
readonly stability?: "experimental" | "beta" | "stable" | "deprecated" | undefined;
|
|
160
|
-
readonly feed?: boolean | undefined;
|
|
161
|
-
readonly docsMeta?: Record<string, unknown> | undefined;
|
|
157
|
+
readonly queryExtensionSchema: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> & import("@emeryld/rrroutes-contract").RouteSchema<unknown, unknown>;
|
|
158
|
+
readonly outputMetaSchema: import("@emeryld/rrroutes-contract").RouteSchema<unknown, unknown>;
|
|
162
159
|
readonly bodySchema: import("@emeryld/rrroutes-contract").RouteSchema<unknown, unknown> | undefined;
|
|
163
160
|
readonly querySchema: undefined;
|
|
164
161
|
readonly outputSchema: import("@emeryld/rrroutes-contract").RouteSchema<{
|
|
@@ -188,7 +185,7 @@ export declare const requestLogLeaves: readonly [{
|
|
|
188
185
|
name: string;
|
|
189
186
|
createdAt: number;
|
|
190
187
|
updatedAt: number;
|
|
191
|
-
operation: "delete" | "
|
|
188
|
+
operation: "delete" | "hit" | "miss" | "set";
|
|
192
189
|
value: any;
|
|
193
190
|
description?: string | undefined;
|
|
194
191
|
groupId?: string | undefined;
|
|
@@ -233,7 +230,7 @@ export declare const requestLogLeaves: readonly [{
|
|
|
233
230
|
name: string;
|
|
234
231
|
createdAt: number;
|
|
235
232
|
updatedAt: number;
|
|
236
|
-
operation: "delete" | "
|
|
233
|
+
operation: "delete" | "hit" | "miss" | "set";
|
|
237
234
|
value: any;
|
|
238
235
|
description?: string | undefined;
|
|
239
236
|
groupId?: string | undefined;
|
|
@@ -253,9 +250,12 @@ export declare const requestLogLeaves: readonly [{
|
|
|
253
250
|
meta: unknown;
|
|
254
251
|
}>;
|
|
255
252
|
readonly bodyFiles?: import("@emeryld/rrroutes-contract").FileField[] | undefined;
|
|
256
|
-
readonly
|
|
257
|
-
readonly
|
|
253
|
+
readonly feed?: boolean | undefined;
|
|
254
|
+
readonly summary?: string | undefined;
|
|
255
|
+
readonly docsGroup?: string | undefined;
|
|
256
|
+
readonly stability?: "experimental" | "beta" | "stable" | "deprecated" | undefined;
|
|
258
257
|
readonly docsHidden?: boolean | undefined;
|
|
258
|
+
readonly docsMeta?: Record<string, unknown> | undefined;
|
|
259
259
|
paramsSchema: import("@emeryld/rrroutes-contract").RouteSchema<{
|
|
260
260
|
requestId: string;
|
|
261
261
|
}, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@emeryld/rrroutes-openapi",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -19,10 +19,11 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@emeryld/rrroutes-client": "^2.3.5",
|
|
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.
|
|
25
|
-
"@mui/material": "^7.3.
|
|
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 {};
|