@emeryld/rrroutes-openapi 2.4.4 → 2.4.6

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,10 @@
1
+ import { HttpMethod } from '@emeryld/rrroutes-contract';
1
2
  import type { RequestLogType } from '../../types/types.requestLog.js';
2
3
  type EndpointRequestFeedProps = {
3
- endpointKey: string;
4
+ method?: HttpMethod;
5
+ path?: string;
4
6
  onSelectRequest: (request: RequestLogType, index: number) => void;
5
7
  onRequestsChange?: (requests: RequestLogType[]) => void;
6
8
  };
7
- export default function EndpointRequestFeed({ endpointKey, onSelectRequest, onRequestsChange, }: EndpointRequestFeedProps): import("react/jsx-runtime").JSX.Element;
9
+ export default function EndpointRequestFeed({ method, path, onSelectRequest, onRequestsChange, }: EndpointRequestFeedProps): import("react/jsx-runtime").JSX.Element;
8
10
  export {};
@@ -13,7 +13,7 @@ export type SerializableSchema = {
13
13
  enumValues?: string[];
14
14
  };
15
15
  export declare const serializableSchemaSchema: ZodType<SerializableSchema, SerializableSchema>;
16
- export declare const STABILITIES: readonly ["experimental", "beta", "stable", "deprecated"];
16
+ export declare const STABILITIES: readonly ["experimental", "beta", "stable", "deprecated", "unknown"];
17
17
  export declare const endpointSchema: z.ZodObject<{
18
18
  id: z.ZodString;
19
19
  name: z.ZodString;
@@ -43,6 +43,7 @@ export declare const endpointSchema: z.ZodObject<{
43
43
  feed: z.ZodOptional<z.ZodBoolean>;
44
44
  summary: z.ZodOptional<z.ZodString>;
45
45
  stability: z.ZodEnum<{
46
+ unknown: "unknown";
46
47
  deprecated: "deprecated";
47
48
  experimental: "experimental";
48
49
  beta: "beta";
@@ -87,12 +88,14 @@ export declare const endpointFilterSchema: z.ZodObject<{
87
88
  }>>>;
88
89
  path: z.ZodOptional<z.ZodString>;
89
90
  stabilityInclude: z.ZodOptional<z.ZodArray<z.ZodEnum<{
91
+ unknown: "unknown";
90
92
  deprecated: "deprecated";
91
93
  experimental: "experimental";
92
94
  beta: "beta";
93
95
  stable: "stable";
94
96
  }>>>;
95
97
  stabilityExclude: z.ZodOptional<z.ZodArray<z.ZodEnum<{
98
+ unknown: "unknown";
96
99
  deprecated: "deprecated";
97
100
  experimental: "experimental";
98
101
  beta: "beta";
@@ -100,6 +103,108 @@ export declare const endpointFilterSchema: z.ZodObject<{
100
103
  }>>>;
101
104
  }, z.core.$strip>;
102
105
  export type RoutesFilter = z.infer<typeof endpointFilterSchema> & z.infer<typeof paginationSchema>;
106
+ export declare const endpointSchemaWithStats: z.ZodObject<{
107
+ id: z.ZodString;
108
+ name: z.ZodString;
109
+ description: z.ZodOptional<z.ZodString>;
110
+ groupId: z.ZodOptional<z.ZodString>;
111
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
112
+ createdAt: z.ZodNumber;
113
+ updatedAt: z.ZodNumber;
114
+ method: z.ZodEnum<{
115
+ get: "get";
116
+ post: "post";
117
+ put: "put";
118
+ patch: "patch";
119
+ delete: "delete";
120
+ }>;
121
+ path: z.ZodString;
122
+ contract: z.ZodObject<{
123
+ body: z.ZodOptional<z.ZodType<SerializableSchema, SerializableSchema, z.core.$ZodTypeInternals<SerializableSchema, SerializableSchema>>>;
124
+ query: z.ZodOptional<z.ZodType<SerializableSchema, SerializableSchema, z.core.$ZodTypeInternals<SerializableSchema, SerializableSchema>>>;
125
+ output: z.ZodOptional<z.ZodType<SerializableSchema, SerializableSchema, z.core.$ZodTypeInternals<SerializableSchema, SerializableSchema>>>;
126
+ params: z.ZodOptional<z.ZodType<SerializableSchema, SerializableSchema, z.core.$ZodTypeInternals<SerializableSchema, SerializableSchema>>>;
127
+ bodyFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
128
+ name: z.ZodString;
129
+ maxCount: z.ZodNumber;
130
+ }, z.core.$strip>>>;
131
+ }, z.core.$strip>;
132
+ feed: z.ZodOptional<z.ZodBoolean>;
133
+ summary: z.ZodOptional<z.ZodString>;
134
+ stability: z.ZodEnum<{
135
+ unknown: "unknown";
136
+ deprecated: "deprecated";
137
+ experimental: "experimental";
138
+ beta: "beta";
139
+ stable: "stable";
140
+ }>;
141
+ hidden: z.ZodOptional<z.ZodBoolean>;
142
+ meta: z.ZodRecord<z.ZodString, z.ZodString>;
143
+ implemented: z.ZodOptional<z.ZodBoolean>;
144
+ requests: z.ZodArray<z.ZodObject<{
145
+ id: z.ZodString;
146
+ name: z.ZodString;
147
+ description: z.ZodOptional<z.ZodString>;
148
+ groupId: z.ZodOptional<z.ZodString>;
149
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
150
+ createdAt: z.ZodNumber;
151
+ updatedAt: z.ZodNumber;
152
+ status: z.ZodNumber;
153
+ body: z.ZodOptional<z.ZodAny>;
154
+ fullUrl: z.ZodString;
155
+ path: z.ZodString;
156
+ method: z.ZodEnum<{
157
+ get: "get";
158
+ post: "post";
159
+ put: "put";
160
+ patch: "patch";
161
+ delete: "delete";
162
+ }>;
163
+ query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
164
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
165
+ output: z.ZodOptional<z.ZodAny>;
166
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
167
+ error: z.ZodOptional<z.ZodString>;
168
+ durationMs: z.ZodNumber;
169
+ ip: z.ZodOptional<z.ZodString>;
170
+ userAgent: z.ZodOptional<z.ZodString>;
171
+ }, z.core.$strip>>;
172
+ volumeTS: z.ZodArray<z.ZodObject<{
173
+ timestamp: z.ZodNumber;
174
+ count: z.ZodNumber;
175
+ }, z.core.$strip>>;
176
+ averageDurationMs: z.ZodNumber;
177
+ successRate: z.ZodNumber;
178
+ latestErrors: z.ZodOptional<z.ZodArray<z.ZodObject<{
179
+ id: z.ZodString;
180
+ name: z.ZodString;
181
+ description: z.ZodOptional<z.ZodString>;
182
+ groupId: z.ZodOptional<z.ZodString>;
183
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
184
+ createdAt: z.ZodNumber;
185
+ updatedAt: z.ZodNumber;
186
+ status: z.ZodNumber;
187
+ body: z.ZodOptional<z.ZodAny>;
188
+ fullUrl: z.ZodString;
189
+ path: z.ZodString;
190
+ method: z.ZodEnum<{
191
+ get: "get";
192
+ post: "post";
193
+ put: "put";
194
+ patch: "patch";
195
+ delete: "delete";
196
+ }>;
197
+ query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
198
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
199
+ output: z.ZodOptional<z.ZodAny>;
200
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
201
+ error: z.ZodOptional<z.ZodString>;
202
+ durationMs: z.ZodNumber;
203
+ ip: z.ZodOptional<z.ZodString>;
204
+ userAgent: z.ZodOptional<z.ZodString>;
205
+ }, z.core.$strip>>>;
206
+ }, z.core.$strip>;
207
+ export type EndpointDetailData = z.infer<typeof endpointSchemaWithStats>;
103
208
  export declare const endpointLeaves: readonly [{
104
209
  readonly method: "get";
105
210
  readonly path: "endpoints";
@@ -162,12 +267,14 @@ export declare const endpointLeaves: readonly [{
162
267
  }>>>;
163
268
  path: z.ZodOptional<z.ZodString>;
164
269
  stabilityInclude: z.ZodOptional<z.ZodArray<z.ZodEnum<{
270
+ unknown: "unknown";
165
271
  deprecated: "deprecated";
166
272
  experimental: "experimental";
167
273
  beta: "beta";
168
274
  stable: "stable";
169
275
  }>>>;
170
276
  stabilityExclude: z.ZodOptional<z.ZodArray<z.ZodEnum<{
277
+ unknown: "unknown";
171
278
  deprecated: "deprecated";
172
279
  experimental: "experimental";
173
280
  beta: "beta";
@@ -203,6 +310,7 @@ export declare const endpointLeaves: readonly [{
203
310
  feed: z.ZodOptional<z.ZodBoolean>;
204
311
  summary: z.ZodOptional<z.ZodString>;
205
312
  stability: z.ZodEnum<{
313
+ unknown: "unknown";
206
314
  deprecated: "deprecated";
207
315
  experimental: "experimental";
208
316
  beta: "beta";
@@ -267,12 +375,14 @@ export declare const endpointLeaves: readonly [{
267
375
  }>>>;
268
376
  path: z.ZodOptional<z.ZodString>;
269
377
  stabilityInclude: z.ZodOptional<z.ZodArray<z.ZodEnum<{
378
+ unknown: "unknown";
270
379
  deprecated: "deprecated";
271
380
  experimental: "experimental";
272
381
  beta: "beta";
273
382
  stable: "stable";
274
383
  }>>>;
275
384
  stabilityExclude: z.ZodOptional<z.ZodArray<z.ZodEnum<{
385
+ unknown: "unknown";
276
386
  deprecated: "deprecated";
277
387
  experimental: "experimental";
278
388
  beta: "beta";
@@ -308,6 +418,7 @@ export declare const endpointLeaves: readonly [{
308
418
  feed: z.ZodOptional<z.ZodBoolean>;
309
419
  summary: z.ZodOptional<z.ZodString>;
310
420
  stability: z.ZodEnum<{
421
+ unknown: "unknown";
311
422
  deprecated: "deprecated";
312
423
  experimental: "experimental";
313
424
  beta: "beta";
@@ -365,6 +476,7 @@ export declare const endpointLeaves: readonly [{
365
476
  feed: z.ZodOptional<z.ZodBoolean>;
366
477
  summary: z.ZodOptional<z.ZodString>;
367
478
  stability: z.ZodEnum<{
479
+ unknown: "unknown";
368
480
  deprecated: "deprecated";
369
481
  experimental: "experimental";
370
482
  beta: "beta";
@@ -396,8 +508,8 @@ export declare const endpointLeaves: readonly [{
396
508
  methodsInclude?: ("get" | "post" | "put" | "patch" | "delete")[] | undefined;
397
509
  methodsExclude?: ("get" | "post" | "put" | "patch" | "delete")[] | undefined;
398
510
  path?: string | undefined;
399
- stabilityInclude?: ("deprecated" | "experimental" | "beta" | "stable")[] | undefined;
400
- stabilityExclude?: ("deprecated" | "experimental" | "beta" | "stable")[] | undefined;
511
+ stabilityInclude?: ("unknown" | "deprecated" | "experimental" | "beta" | "stable")[] | undefined;
512
+ stabilityExclude?: ("unknown" | "deprecated" | "experimental" | "beta" | "stable")[] | undefined;
401
513
  } & {
402
514
  cursor?: string | undefined;
403
515
  pageSize?: number | undefined;
@@ -414,8 +526,8 @@ export declare const endpointLeaves: readonly [{
414
526
  methodsInclude?: ("get" | "post" | "put" | "patch" | "delete")[] | undefined;
415
527
  methodsExclude?: ("get" | "post" | "put" | "patch" | "delete")[] | undefined;
416
528
  path?: string | undefined;
417
- stabilityInclude?: ("deprecated" | "experimental" | "beta" | "stable")[] | undefined;
418
- stabilityExclude?: ("deprecated" | "experimental" | "beta" | "stable")[] | undefined;
529
+ stabilityInclude?: ("unknown" | "deprecated" | "experimental" | "beta" | "stable")[] | undefined;
530
+ stabilityExclude?: ("unknown" | "deprecated" | "experimental" | "beta" | "stable")[] | undefined;
419
531
  } & {
420
532
  cursor?: string | undefined;
421
533
  pageSize?: unknown;
@@ -439,7 +551,7 @@ export declare const endpointLeaves: readonly [{
439
551
  maxCount: number;
440
552
  }[] | undefined;
441
553
  };
442
- stability: "deprecated" | "experimental" | "beta" | "stable";
554
+ stability: "unknown" | "deprecated" | "experimental" | "beta" | "stable";
443
555
  meta: Record<string, string>;
444
556
  description?: string | undefined;
445
557
  groupId?: string | undefined;
@@ -471,7 +583,7 @@ export declare const endpointLeaves: readonly [{
471
583
  maxCount: number;
472
584
  }[] | undefined;
473
585
  };
474
- stability: "deprecated" | "experimental" | "beta" | "stable";
586
+ stability: "unknown" | "deprecated" | "experimental" | "beta" | "stable";
475
587
  meta: Record<string, string>;
476
588
  description?: string | undefined;
477
589
  groupId?: string | undefined;
@@ -561,6 +673,7 @@ export declare const endpointLeaves: readonly [{
561
673
  feed: z.ZodOptional<z.ZodBoolean>;
562
674
  summary: z.ZodOptional<z.ZodString>;
563
675
  stability: z.ZodEnum<{
676
+ unknown: "unknown";
564
677
  deprecated: "deprecated";
565
678
  experimental: "experimental";
566
679
  beta: "beta";
@@ -603,7 +716,34 @@ export declare const endpointLeaves: readonly [{
603
716
  }, z.core.$strip>>;
604
717
  averageDurationMs: z.ZodNumber;
605
718
  successRate: z.ZodNumber;
606
- latestErrorRequestIds: z.ZodArray<z.ZodString>;
719
+ latestErrors: z.ZodOptional<z.ZodArray<z.ZodObject<{
720
+ id: z.ZodString;
721
+ name: z.ZodString;
722
+ description: z.ZodOptional<z.ZodString>;
723
+ groupId: z.ZodOptional<z.ZodString>;
724
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
725
+ createdAt: z.ZodNumber;
726
+ updatedAt: z.ZodNumber;
727
+ status: z.ZodNumber;
728
+ body: z.ZodOptional<z.ZodAny>;
729
+ fullUrl: z.ZodString;
730
+ path: z.ZodString;
731
+ method: z.ZodEnum<{
732
+ get: "get";
733
+ post: "post";
734
+ put: "put";
735
+ patch: "patch";
736
+ delete: "delete";
737
+ }>;
738
+ query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
739
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
740
+ output: z.ZodOptional<z.ZodAny>;
741
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
742
+ error: z.ZodOptional<z.ZodString>;
743
+ durationMs: z.ZodNumber;
744
+ ip: z.ZodOptional<z.ZodString>;
745
+ userAgent: z.ZodOptional<z.ZodString>;
746
+ }, z.core.$strip>>>;
607
747
  }, z.core.$strip>;
608
748
  }, "queryExtensionSchema" | "outputMetaSchema"> & {
609
749
  queryExtensionSchema: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
@@ -643,6 +783,7 @@ export declare const endpointLeaves: readonly [{
643
783
  feed: z.ZodOptional<z.ZodBoolean>;
644
784
  summary: z.ZodOptional<z.ZodString>;
645
785
  stability: z.ZodEnum<{
786
+ unknown: "unknown";
646
787
  deprecated: "deprecated";
647
788
  experimental: "experimental";
648
789
  beta: "beta";
@@ -685,7 +826,34 @@ export declare const endpointLeaves: readonly [{
685
826
  }, z.core.$strip>>;
686
827
  averageDurationMs: z.ZodNumber;
687
828
  successRate: z.ZodNumber;
688
- latestErrorRequestIds: z.ZodArray<z.ZodString>;
829
+ latestErrors: z.ZodOptional<z.ZodArray<z.ZodObject<{
830
+ id: z.ZodString;
831
+ name: z.ZodString;
832
+ description: z.ZodOptional<z.ZodString>;
833
+ groupId: z.ZodOptional<z.ZodString>;
834
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
835
+ createdAt: z.ZodNumber;
836
+ updatedAt: z.ZodNumber;
837
+ status: z.ZodNumber;
838
+ body: z.ZodOptional<z.ZodAny>;
839
+ fullUrl: z.ZodString;
840
+ path: z.ZodString;
841
+ method: z.ZodEnum<{
842
+ get: "get";
843
+ post: "post";
844
+ put: "put";
845
+ patch: "patch";
846
+ delete: "delete";
847
+ }>;
848
+ query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
849
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
850
+ output: z.ZodOptional<z.ZodAny>;
851
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
852
+ error: z.ZodOptional<z.ZodString>;
853
+ durationMs: z.ZodNumber;
854
+ ip: z.ZodOptional<z.ZodString>;
855
+ userAgent: z.ZodOptional<z.ZodString>;
856
+ }, z.core.$strip>>>;
689
857
  }, z.core.$strip>;
690
858
  meta: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
691
859
  }, z.core.$strip>;
@@ -719,7 +887,7 @@ export declare const endpointLeaves: readonly [{
719
887
  maxCount: number;
720
888
  }[] | undefined;
721
889
  };
722
- stability: "deprecated" | "experimental" | "beta" | "stable";
890
+ stability: "unknown" | "deprecated" | "experimental" | "beta" | "stable";
723
891
  meta: Record<string, string>;
724
892
  requests: {
725
893
  id: string;
@@ -749,7 +917,6 @@ export declare const endpointLeaves: readonly [{
749
917
  }[];
750
918
  averageDurationMs: number;
751
919
  successRate: number;
752
- latestErrorRequestIds: string[];
753
920
  description?: string | undefined;
754
921
  groupId?: string | undefined;
755
922
  tags?: string[] | undefined;
@@ -757,6 +924,28 @@ export declare const endpointLeaves: readonly [{
757
924
  summary?: string | undefined;
758
925
  hidden?: boolean | undefined;
759
926
  implemented?: boolean | undefined;
927
+ latestErrors?: {
928
+ id: string;
929
+ name: string;
930
+ createdAt: number;
931
+ updatedAt: number;
932
+ status: number;
933
+ fullUrl: string;
934
+ path: string;
935
+ method: "get" | "post" | "put" | "patch" | "delete";
936
+ durationMs: number;
937
+ description?: string | undefined;
938
+ groupId?: string | undefined;
939
+ tags?: string[] | undefined;
940
+ body?: any;
941
+ query?: Record<string, any> | undefined;
942
+ params?: Record<string, any> | undefined;
943
+ output?: any;
944
+ headers?: Record<string, any> | undefined;
945
+ error?: string | undefined;
946
+ ip?: string | undefined;
947
+ userAgent?: string | undefined;
948
+ }[] | undefined;
760
949
  };
761
950
  meta: unknown;
762
951
  }, {
@@ -777,7 +966,7 @@ export declare const endpointLeaves: readonly [{
777
966
  maxCount: number;
778
967
  }[] | undefined;
779
968
  };
780
- stability: "deprecated" | "experimental" | "beta" | "stable";
969
+ stability: "unknown" | "deprecated" | "experimental" | "beta" | "stable";
781
970
  meta: Record<string, string>;
782
971
  requests: {
783
972
  id: string;
@@ -807,7 +996,6 @@ export declare const endpointLeaves: readonly [{
807
996
  }[];
808
997
  averageDurationMs: number;
809
998
  successRate: number;
810
- latestErrorRequestIds: string[];
811
999
  description?: string | undefined;
812
1000
  groupId?: string | undefined;
813
1001
  tags?: string[] | undefined;
@@ -815,6 +1003,28 @@ export declare const endpointLeaves: readonly [{
815
1003
  summary?: string | undefined;
816
1004
  hidden?: boolean | undefined;
817
1005
  implemented?: boolean | undefined;
1006
+ latestErrors?: {
1007
+ id: string;
1008
+ name: string;
1009
+ createdAt: number;
1010
+ updatedAt: number;
1011
+ status: number;
1012
+ fullUrl: string;
1013
+ path: string;
1014
+ method: "get" | "post" | "put" | "patch" | "delete";
1015
+ durationMs: number;
1016
+ description?: string | undefined;
1017
+ groupId?: string | undefined;
1018
+ tags?: string[] | undefined;
1019
+ body?: any;
1020
+ query?: Record<string, any> | undefined;
1021
+ params?: Record<string, any> | undefined;
1022
+ output?: any;
1023
+ headers?: Record<string, any> | undefined;
1024
+ error?: string | undefined;
1025
+ ip?: string | undefined;
1026
+ userAgent?: string | undefined;
1027
+ }[] | undefined;
818
1028
  };
819
1029
  meta: unknown;
820
1030
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emeryld/rrroutes-openapi",
3
- "version": "2.4.4",
3
+ "version": "2.4.6",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -17,7 +17,7 @@
17
17
  "dist"
18
18
  ],
19
19
  "dependencies": {
20
- "@emeryld/rrroutes-client": "^2.4.2",
20
+ "@emeryld/rrroutes-client": "^2.4.8",
21
21
  "@emeryld/rrroutes-contract": "^2.4.19",
22
22
  "@emotion/cache": "^11.14.0",
23
23
  "@emotion/react": "^11.14.0",