@scalar/oas-utils 0.4.15 → 0.4.17
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/CHANGELOG.md +35 -0
- package/dist/entities/spec/operation.d.ts +15 -15
- package/dist/entities/spec/parameters.d.ts +5 -5
- package/dist/entities/spec/request-examples.d.ts +68 -68
- package/dist/entities/spec/requests.d.ts +31 -31
- package/dist/helpers/index.d.ts +0 -1
- package/dist/helpers/index.d.ts.map +1 -1
- package/dist/helpers/index.js +0 -3
- package/dist/helpers/index.js.map +2 -2
- package/dist/helpers/normalize-mime-type-object.d.ts +2 -13
- package/dist/helpers/normalize-mime-type-object.d.ts.map +1 -1
- package/dist/helpers/normalize-mime-type-object.js +4 -8
- package/dist/helpers/normalize-mime-type-object.js.map +2 -2
- package/dist/helpers/normalize-mime-type.d.ts +3 -1
- package/dist/helpers/normalize-mime-type.d.ts.map +1 -1
- package/dist/helpers/normalize-mime-type.js.map +2 -2
- package/dist/helpers/operation-to-har/process-body.d.ts +1 -1
- package/dist/helpers/operation-to-har/process-body.d.ts.map +1 -1
- package/dist/helpers/operation-to-har/process-body.js +3 -30
- package/dist/helpers/operation-to-har/process-body.js.map +2 -2
- package/dist/helpers/security/get-schemes.d.ts +3 -0
- package/dist/helpers/security/get-schemes.d.ts.map +1 -1
- package/dist/spec-getters/get-example-from-schema.d.ts.map +1 -1
- package/dist/spec-getters/get-example-from-schema.js +5 -2
- package/dist/spec-getters/get-example-from-schema.js.map +2 -2
- package/dist/spec-getters/get-request-body-from-operation.js +1 -1
- package/dist/spec-getters/get-request-body-from-operation.js.map +2 -2
- package/package.json +11 -11
- package/dist/helpers/ssr-state.d.ts +0 -12
- package/dist/helpers/ssr-state.d.ts.map +0 -1
- package/dist/helpers/ssr-state.js +0 -7
- package/dist/helpers/ssr-state.js.map +0 -7
|
@@ -34,8 +34,8 @@ export declare const requestExampleParametersSchema: z.ZodEffects<z.ZodObject<{
|
|
|
34
34
|
default?: any;
|
|
35
35
|
required?: boolean | undefined;
|
|
36
36
|
enum?: string[] | undefined;
|
|
37
|
-
format?: string | undefined;
|
|
38
37
|
examples?: any[] | undefined;
|
|
38
|
+
format?: string | undefined;
|
|
39
39
|
file?: any;
|
|
40
40
|
nullable?: boolean | undefined;
|
|
41
41
|
}, {
|
|
@@ -48,8 +48,8 @@ export declare const requestExampleParametersSchema: z.ZodEffects<z.ZodObject<{
|
|
|
48
48
|
required?: boolean | undefined;
|
|
49
49
|
enum?: string[] | undefined;
|
|
50
50
|
key?: string | undefined;
|
|
51
|
-
format?: string | undefined;
|
|
52
51
|
examples?: any[] | undefined;
|
|
52
|
+
format?: string | undefined;
|
|
53
53
|
file?: any;
|
|
54
54
|
enabled?: boolean | undefined;
|
|
55
55
|
nullable?: boolean | undefined;
|
|
@@ -64,8 +64,8 @@ export declare const requestExampleParametersSchema: z.ZodEffects<z.ZodObject<{
|
|
|
64
64
|
default?: any;
|
|
65
65
|
required?: boolean | undefined;
|
|
66
66
|
enum?: string[] | undefined;
|
|
67
|
-
format?: string | undefined;
|
|
68
67
|
examples?: any[] | undefined;
|
|
68
|
+
format?: string | undefined;
|
|
69
69
|
file?: any;
|
|
70
70
|
nullable?: boolean | undefined;
|
|
71
71
|
}, {
|
|
@@ -78,8 +78,8 @@ export declare const requestExampleParametersSchema: z.ZodEffects<z.ZodObject<{
|
|
|
78
78
|
required?: boolean | undefined;
|
|
79
79
|
enum?: string[] | undefined;
|
|
80
80
|
key?: string | undefined;
|
|
81
|
-
format?: string | undefined;
|
|
82
81
|
examples?: any[] | undefined;
|
|
82
|
+
format?: string | undefined;
|
|
83
83
|
file?: any;
|
|
84
84
|
enabled?: boolean | undefined;
|
|
85
85
|
nullable?: boolean | undefined;
|
|
@@ -199,8 +199,8 @@ export declare const exampleRequestBodySchema: z.ZodObject<{
|
|
|
199
199
|
default?: any;
|
|
200
200
|
required?: boolean | undefined;
|
|
201
201
|
enum?: string[] | undefined;
|
|
202
|
-
format?: string | undefined;
|
|
203
202
|
examples?: any[] | undefined;
|
|
203
|
+
format?: string | undefined;
|
|
204
204
|
file?: any;
|
|
205
205
|
nullable?: boolean | undefined;
|
|
206
206
|
}, {
|
|
@@ -213,8 +213,8 @@ export declare const exampleRequestBodySchema: z.ZodObject<{
|
|
|
213
213
|
required?: boolean | undefined;
|
|
214
214
|
enum?: string[] | undefined;
|
|
215
215
|
key?: string | undefined;
|
|
216
|
-
format?: string | undefined;
|
|
217
216
|
examples?: any[] | undefined;
|
|
217
|
+
format?: string | undefined;
|
|
218
218
|
file?: any;
|
|
219
219
|
enabled?: boolean | undefined;
|
|
220
220
|
nullable?: boolean | undefined;
|
|
@@ -229,8 +229,8 @@ export declare const exampleRequestBodySchema: z.ZodObject<{
|
|
|
229
229
|
default?: any;
|
|
230
230
|
required?: boolean | undefined;
|
|
231
231
|
enum?: string[] | undefined;
|
|
232
|
-
format?: string | undefined;
|
|
233
232
|
examples?: any[] | undefined;
|
|
233
|
+
format?: string | undefined;
|
|
234
234
|
file?: any;
|
|
235
235
|
nullable?: boolean | undefined;
|
|
236
236
|
}, {
|
|
@@ -243,8 +243,8 @@ export declare const exampleRequestBodySchema: z.ZodObject<{
|
|
|
243
243
|
required?: boolean | undefined;
|
|
244
244
|
enum?: string[] | undefined;
|
|
245
245
|
key?: string | undefined;
|
|
246
|
-
format?: string | undefined;
|
|
247
246
|
examples?: any[] | undefined;
|
|
247
|
+
format?: string | undefined;
|
|
248
248
|
file?: any;
|
|
249
249
|
enabled?: boolean | undefined;
|
|
250
250
|
nullable?: boolean | undefined;
|
|
@@ -261,8 +261,8 @@ export declare const exampleRequestBodySchema: z.ZodObject<{
|
|
|
261
261
|
default?: any;
|
|
262
262
|
required?: boolean | undefined;
|
|
263
263
|
enum?: string[] | undefined;
|
|
264
|
-
format?: string | undefined;
|
|
265
264
|
examples?: any[] | undefined;
|
|
265
|
+
format?: string | undefined;
|
|
266
266
|
file?: any;
|
|
267
267
|
nullable?: boolean | undefined;
|
|
268
268
|
}[];
|
|
@@ -278,8 +278,8 @@ export declare const exampleRequestBodySchema: z.ZodObject<{
|
|
|
278
278
|
required?: boolean | undefined;
|
|
279
279
|
enum?: string[] | undefined;
|
|
280
280
|
key?: string | undefined;
|
|
281
|
-
format?: string | undefined;
|
|
282
281
|
examples?: any[] | undefined;
|
|
282
|
+
format?: string | undefined;
|
|
283
283
|
file?: any;
|
|
284
284
|
enabled?: boolean | undefined;
|
|
285
285
|
nullable?: boolean | undefined;
|
|
@@ -303,8 +303,8 @@ export declare const exampleRequestBodySchema: z.ZodObject<{
|
|
|
303
303
|
default?: any;
|
|
304
304
|
required?: boolean | undefined;
|
|
305
305
|
enum?: string[] | undefined;
|
|
306
|
-
format?: string | undefined;
|
|
307
306
|
examples?: any[] | undefined;
|
|
307
|
+
format?: string | undefined;
|
|
308
308
|
file?: any;
|
|
309
309
|
nullable?: boolean | undefined;
|
|
310
310
|
}[];
|
|
@@ -328,8 +328,8 @@ export declare const exampleRequestBodySchema: z.ZodObject<{
|
|
|
328
328
|
required?: boolean | undefined;
|
|
329
329
|
enum?: string[] | undefined;
|
|
330
330
|
key?: string | undefined;
|
|
331
|
-
format?: string | undefined;
|
|
332
331
|
examples?: any[] | undefined;
|
|
332
|
+
format?: string | undefined;
|
|
333
333
|
file?: any;
|
|
334
334
|
enabled?: boolean | undefined;
|
|
335
335
|
nullable?: boolean | undefined;
|
|
@@ -427,8 +427,8 @@ export declare const requestExampleSchema: z.ZodObject<{
|
|
|
427
427
|
default?: any;
|
|
428
428
|
required?: boolean | undefined;
|
|
429
429
|
enum?: string[] | undefined;
|
|
430
|
-
format?: string | undefined;
|
|
431
430
|
examples?: any[] | undefined;
|
|
431
|
+
format?: string | undefined;
|
|
432
432
|
file?: any;
|
|
433
433
|
nullable?: boolean | undefined;
|
|
434
434
|
}, {
|
|
@@ -441,8 +441,8 @@ export declare const requestExampleSchema: z.ZodObject<{
|
|
|
441
441
|
required?: boolean | undefined;
|
|
442
442
|
enum?: string[] | undefined;
|
|
443
443
|
key?: string | undefined;
|
|
444
|
-
format?: string | undefined;
|
|
445
444
|
examples?: any[] | undefined;
|
|
445
|
+
format?: string | undefined;
|
|
446
446
|
file?: any;
|
|
447
447
|
enabled?: boolean | undefined;
|
|
448
448
|
nullable?: boolean | undefined;
|
|
@@ -457,8 +457,8 @@ export declare const requestExampleSchema: z.ZodObject<{
|
|
|
457
457
|
default?: any;
|
|
458
458
|
required?: boolean | undefined;
|
|
459
459
|
enum?: string[] | undefined;
|
|
460
|
-
format?: string | undefined;
|
|
461
460
|
examples?: any[] | undefined;
|
|
461
|
+
format?: string | undefined;
|
|
462
462
|
file?: any;
|
|
463
463
|
nullable?: boolean | undefined;
|
|
464
464
|
}, {
|
|
@@ -471,8 +471,8 @@ export declare const requestExampleSchema: z.ZodObject<{
|
|
|
471
471
|
required?: boolean | undefined;
|
|
472
472
|
enum?: string[] | undefined;
|
|
473
473
|
key?: string | undefined;
|
|
474
|
-
format?: string | undefined;
|
|
475
474
|
examples?: any[] | undefined;
|
|
475
|
+
format?: string | undefined;
|
|
476
476
|
file?: any;
|
|
477
477
|
enabled?: boolean | undefined;
|
|
478
478
|
nullable?: boolean | undefined;
|
|
@@ -489,8 +489,8 @@ export declare const requestExampleSchema: z.ZodObject<{
|
|
|
489
489
|
default?: any;
|
|
490
490
|
required?: boolean | undefined;
|
|
491
491
|
enum?: string[] | undefined;
|
|
492
|
-
format?: string | undefined;
|
|
493
492
|
examples?: any[] | undefined;
|
|
493
|
+
format?: string | undefined;
|
|
494
494
|
file?: any;
|
|
495
495
|
nullable?: boolean | undefined;
|
|
496
496
|
}[];
|
|
@@ -506,8 +506,8 @@ export declare const requestExampleSchema: z.ZodObject<{
|
|
|
506
506
|
required?: boolean | undefined;
|
|
507
507
|
enum?: string[] | undefined;
|
|
508
508
|
key?: string | undefined;
|
|
509
|
-
format?: string | undefined;
|
|
510
509
|
examples?: any[] | undefined;
|
|
510
|
+
format?: string | undefined;
|
|
511
511
|
file?: any;
|
|
512
512
|
enabled?: boolean | undefined;
|
|
513
513
|
nullable?: boolean | undefined;
|
|
@@ -531,8 +531,8 @@ export declare const requestExampleSchema: z.ZodObject<{
|
|
|
531
531
|
default?: any;
|
|
532
532
|
required?: boolean | undefined;
|
|
533
533
|
enum?: string[] | undefined;
|
|
534
|
-
format?: string | undefined;
|
|
535
534
|
examples?: any[] | undefined;
|
|
535
|
+
format?: string | undefined;
|
|
536
536
|
file?: any;
|
|
537
537
|
nullable?: boolean | undefined;
|
|
538
538
|
}[];
|
|
@@ -556,8 +556,8 @@ export declare const requestExampleSchema: z.ZodObject<{
|
|
|
556
556
|
required?: boolean | undefined;
|
|
557
557
|
enum?: string[] | undefined;
|
|
558
558
|
key?: string | undefined;
|
|
559
|
-
format?: string | undefined;
|
|
560
559
|
examples?: any[] | undefined;
|
|
560
|
+
format?: string | undefined;
|
|
561
561
|
file?: any;
|
|
562
562
|
enabled?: boolean | undefined;
|
|
563
563
|
nullable?: boolean | undefined;
|
|
@@ -598,8 +598,8 @@ export declare const requestExampleSchema: z.ZodObject<{
|
|
|
598
598
|
default?: any;
|
|
599
599
|
required?: boolean | undefined;
|
|
600
600
|
enum?: string[] | undefined;
|
|
601
|
-
format?: string | undefined;
|
|
602
601
|
examples?: any[] | undefined;
|
|
602
|
+
format?: string | undefined;
|
|
603
603
|
file?: any;
|
|
604
604
|
nullable?: boolean | undefined;
|
|
605
605
|
}, {
|
|
@@ -612,8 +612,8 @@ export declare const requestExampleSchema: z.ZodObject<{
|
|
|
612
612
|
required?: boolean | undefined;
|
|
613
613
|
enum?: string[] | undefined;
|
|
614
614
|
key?: string | undefined;
|
|
615
|
-
format?: string | undefined;
|
|
616
615
|
examples?: any[] | undefined;
|
|
616
|
+
format?: string | undefined;
|
|
617
617
|
file?: any;
|
|
618
618
|
enabled?: boolean | undefined;
|
|
619
619
|
nullable?: boolean | undefined;
|
|
@@ -628,8 +628,8 @@ export declare const requestExampleSchema: z.ZodObject<{
|
|
|
628
628
|
default?: any;
|
|
629
629
|
required?: boolean | undefined;
|
|
630
630
|
enum?: string[] | undefined;
|
|
631
|
-
format?: string | undefined;
|
|
632
631
|
examples?: any[] | undefined;
|
|
632
|
+
format?: string | undefined;
|
|
633
633
|
file?: any;
|
|
634
634
|
nullable?: boolean | undefined;
|
|
635
635
|
}, {
|
|
@@ -642,8 +642,8 @@ export declare const requestExampleSchema: z.ZodObject<{
|
|
|
642
642
|
required?: boolean | undefined;
|
|
643
643
|
enum?: string[] | undefined;
|
|
644
644
|
key?: string | undefined;
|
|
645
|
-
format?: string | undefined;
|
|
646
645
|
examples?: any[] | undefined;
|
|
646
|
+
format?: string | undefined;
|
|
647
647
|
file?: any;
|
|
648
648
|
enabled?: boolean | undefined;
|
|
649
649
|
nullable?: boolean | undefined;
|
|
@@ -674,8 +674,8 @@ export declare const requestExampleSchema: z.ZodObject<{
|
|
|
674
674
|
default?: any;
|
|
675
675
|
required?: boolean | undefined;
|
|
676
676
|
enum?: string[] | undefined;
|
|
677
|
-
format?: string | undefined;
|
|
678
677
|
examples?: any[] | undefined;
|
|
678
|
+
format?: string | undefined;
|
|
679
679
|
file?: any;
|
|
680
680
|
nullable?: boolean | undefined;
|
|
681
681
|
}, {
|
|
@@ -688,8 +688,8 @@ export declare const requestExampleSchema: z.ZodObject<{
|
|
|
688
688
|
required?: boolean | undefined;
|
|
689
689
|
enum?: string[] | undefined;
|
|
690
690
|
key?: string | undefined;
|
|
691
|
-
format?: string | undefined;
|
|
692
691
|
examples?: any[] | undefined;
|
|
692
|
+
format?: string | undefined;
|
|
693
693
|
file?: any;
|
|
694
694
|
enabled?: boolean | undefined;
|
|
695
695
|
nullable?: boolean | undefined;
|
|
@@ -704,8 +704,8 @@ export declare const requestExampleSchema: z.ZodObject<{
|
|
|
704
704
|
default?: any;
|
|
705
705
|
required?: boolean | undefined;
|
|
706
706
|
enum?: string[] | undefined;
|
|
707
|
-
format?: string | undefined;
|
|
708
707
|
examples?: any[] | undefined;
|
|
708
|
+
format?: string | undefined;
|
|
709
709
|
file?: any;
|
|
710
710
|
nullable?: boolean | undefined;
|
|
711
711
|
}, {
|
|
@@ -718,8 +718,8 @@ export declare const requestExampleSchema: z.ZodObject<{
|
|
|
718
718
|
required?: boolean | undefined;
|
|
719
719
|
enum?: string[] | undefined;
|
|
720
720
|
key?: string | undefined;
|
|
721
|
-
format?: string | undefined;
|
|
722
721
|
examples?: any[] | undefined;
|
|
722
|
+
format?: string | undefined;
|
|
723
723
|
file?: any;
|
|
724
724
|
enabled?: boolean | undefined;
|
|
725
725
|
nullable?: boolean | undefined;
|
|
@@ -750,8 +750,8 @@ export declare const requestExampleSchema: z.ZodObject<{
|
|
|
750
750
|
default?: any;
|
|
751
751
|
required?: boolean | undefined;
|
|
752
752
|
enum?: string[] | undefined;
|
|
753
|
-
format?: string | undefined;
|
|
754
753
|
examples?: any[] | undefined;
|
|
754
|
+
format?: string | undefined;
|
|
755
755
|
file?: any;
|
|
756
756
|
nullable?: boolean | undefined;
|
|
757
757
|
}, {
|
|
@@ -764,8 +764,8 @@ export declare const requestExampleSchema: z.ZodObject<{
|
|
|
764
764
|
required?: boolean | undefined;
|
|
765
765
|
enum?: string[] | undefined;
|
|
766
766
|
key?: string | undefined;
|
|
767
|
-
format?: string | undefined;
|
|
768
767
|
examples?: any[] | undefined;
|
|
768
|
+
format?: string | undefined;
|
|
769
769
|
file?: any;
|
|
770
770
|
enabled?: boolean | undefined;
|
|
771
771
|
nullable?: boolean | undefined;
|
|
@@ -780,8 +780,8 @@ export declare const requestExampleSchema: z.ZodObject<{
|
|
|
780
780
|
default?: any;
|
|
781
781
|
required?: boolean | undefined;
|
|
782
782
|
enum?: string[] | undefined;
|
|
783
|
-
format?: string | undefined;
|
|
784
783
|
examples?: any[] | undefined;
|
|
784
|
+
format?: string | undefined;
|
|
785
785
|
file?: any;
|
|
786
786
|
nullable?: boolean | undefined;
|
|
787
787
|
}, {
|
|
@@ -794,8 +794,8 @@ export declare const requestExampleSchema: z.ZodObject<{
|
|
|
794
794
|
required?: boolean | undefined;
|
|
795
795
|
enum?: string[] | undefined;
|
|
796
796
|
key?: string | undefined;
|
|
797
|
-
format?: string | undefined;
|
|
798
797
|
examples?: any[] | undefined;
|
|
798
|
+
format?: string | undefined;
|
|
799
799
|
file?: any;
|
|
800
800
|
enabled?: boolean | undefined;
|
|
801
801
|
nullable?: boolean | undefined;
|
|
@@ -826,8 +826,8 @@ export declare const requestExampleSchema: z.ZodObject<{
|
|
|
826
826
|
default?: any;
|
|
827
827
|
required?: boolean | undefined;
|
|
828
828
|
enum?: string[] | undefined;
|
|
829
|
-
format?: string | undefined;
|
|
830
829
|
examples?: any[] | undefined;
|
|
830
|
+
format?: string | undefined;
|
|
831
831
|
file?: any;
|
|
832
832
|
nullable?: boolean | undefined;
|
|
833
833
|
}, {
|
|
@@ -840,8 +840,8 @@ export declare const requestExampleSchema: z.ZodObject<{
|
|
|
840
840
|
required?: boolean | undefined;
|
|
841
841
|
enum?: string[] | undefined;
|
|
842
842
|
key?: string | undefined;
|
|
843
|
-
format?: string | undefined;
|
|
844
843
|
examples?: any[] | undefined;
|
|
844
|
+
format?: string | undefined;
|
|
845
845
|
file?: any;
|
|
846
846
|
enabled?: boolean | undefined;
|
|
847
847
|
nullable?: boolean | undefined;
|
|
@@ -856,8 +856,8 @@ export declare const requestExampleSchema: z.ZodObject<{
|
|
|
856
856
|
default?: any;
|
|
857
857
|
required?: boolean | undefined;
|
|
858
858
|
enum?: string[] | undefined;
|
|
859
|
-
format?: string | undefined;
|
|
860
859
|
examples?: any[] | undefined;
|
|
860
|
+
format?: string | undefined;
|
|
861
861
|
file?: any;
|
|
862
862
|
nullable?: boolean | undefined;
|
|
863
863
|
}, {
|
|
@@ -870,8 +870,8 @@ export declare const requestExampleSchema: z.ZodObject<{
|
|
|
870
870
|
required?: boolean | undefined;
|
|
871
871
|
enum?: string[] | undefined;
|
|
872
872
|
key?: string | undefined;
|
|
873
|
-
format?: string | undefined;
|
|
874
873
|
examples?: any[] | undefined;
|
|
874
|
+
format?: string | undefined;
|
|
875
875
|
file?: any;
|
|
876
876
|
enabled?: boolean | undefined;
|
|
877
877
|
nullable?: boolean | undefined;
|
|
@@ -888,12 +888,12 @@ export declare const requestExampleSchema: z.ZodObject<{
|
|
|
888
888
|
default?: any;
|
|
889
889
|
required?: boolean | undefined;
|
|
890
890
|
enum?: string[] | undefined;
|
|
891
|
-
format?: string | undefined;
|
|
892
891
|
examples?: any[] | undefined;
|
|
892
|
+
format?: string | undefined;
|
|
893
893
|
file?: any;
|
|
894
894
|
nullable?: boolean | undefined;
|
|
895
895
|
}[];
|
|
896
|
-
|
|
896
|
+
headers: {
|
|
897
897
|
value: string;
|
|
898
898
|
key: string;
|
|
899
899
|
enabled: boolean;
|
|
@@ -904,12 +904,12 @@ export declare const requestExampleSchema: z.ZodObject<{
|
|
|
904
904
|
default?: any;
|
|
905
905
|
required?: boolean | undefined;
|
|
906
906
|
enum?: string[] | undefined;
|
|
907
|
-
format?: string | undefined;
|
|
908
907
|
examples?: any[] | undefined;
|
|
908
|
+
format?: string | undefined;
|
|
909
909
|
file?: any;
|
|
910
910
|
nullable?: boolean | undefined;
|
|
911
911
|
}[];
|
|
912
|
-
|
|
912
|
+
query: {
|
|
913
913
|
value: string;
|
|
914
914
|
key: string;
|
|
915
915
|
enabled: boolean;
|
|
@@ -920,8 +920,8 @@ export declare const requestExampleSchema: z.ZodObject<{
|
|
|
920
920
|
default?: any;
|
|
921
921
|
required?: boolean | undefined;
|
|
922
922
|
enum?: string[] | undefined;
|
|
923
|
-
format?: string | undefined;
|
|
924
923
|
examples?: any[] | undefined;
|
|
924
|
+
format?: string | undefined;
|
|
925
925
|
file?: any;
|
|
926
926
|
nullable?: boolean | undefined;
|
|
927
927
|
}[];
|
|
@@ -936,8 +936,8 @@ export declare const requestExampleSchema: z.ZodObject<{
|
|
|
936
936
|
default?: any;
|
|
937
937
|
required?: boolean | undefined;
|
|
938
938
|
enum?: string[] | undefined;
|
|
939
|
-
format?: string | undefined;
|
|
940
939
|
examples?: any[] | undefined;
|
|
940
|
+
format?: string | undefined;
|
|
941
941
|
file?: any;
|
|
942
942
|
nullable?: boolean | undefined;
|
|
943
943
|
}[];
|
|
@@ -952,13 +952,13 @@ export declare const requestExampleSchema: z.ZodObject<{
|
|
|
952
952
|
required?: boolean | undefined;
|
|
953
953
|
enum?: string[] | undefined;
|
|
954
954
|
key?: string | undefined;
|
|
955
|
-
format?: string | undefined;
|
|
956
955
|
examples?: any[] | undefined;
|
|
956
|
+
format?: string | undefined;
|
|
957
957
|
file?: any;
|
|
958
958
|
enabled?: boolean | undefined;
|
|
959
959
|
nullable?: boolean | undefined;
|
|
960
960
|
}[] | undefined;
|
|
961
|
-
|
|
961
|
+
headers?: {
|
|
962
962
|
value?: string | undefined;
|
|
963
963
|
minimum?: number | undefined;
|
|
964
964
|
type?: string | string[] | undefined;
|
|
@@ -968,13 +968,13 @@ export declare const requestExampleSchema: z.ZodObject<{
|
|
|
968
968
|
required?: boolean | undefined;
|
|
969
969
|
enum?: string[] | undefined;
|
|
970
970
|
key?: string | undefined;
|
|
971
|
-
format?: string | undefined;
|
|
972
971
|
examples?: any[] | undefined;
|
|
972
|
+
format?: string | undefined;
|
|
973
973
|
file?: any;
|
|
974
974
|
enabled?: boolean | undefined;
|
|
975
975
|
nullable?: boolean | undefined;
|
|
976
976
|
}[] | undefined;
|
|
977
|
-
|
|
977
|
+
query?: {
|
|
978
978
|
value?: string | undefined;
|
|
979
979
|
minimum?: number | undefined;
|
|
980
980
|
type?: string | string[] | undefined;
|
|
@@ -984,8 +984,8 @@ export declare const requestExampleSchema: z.ZodObject<{
|
|
|
984
984
|
required?: boolean | undefined;
|
|
985
985
|
enum?: string[] | undefined;
|
|
986
986
|
key?: string | undefined;
|
|
987
|
-
format?: string | undefined;
|
|
988
987
|
examples?: any[] | undefined;
|
|
988
|
+
format?: string | undefined;
|
|
989
989
|
file?: any;
|
|
990
990
|
enabled?: boolean | undefined;
|
|
991
991
|
nullable?: boolean | undefined;
|
|
@@ -1000,8 +1000,8 @@ export declare const requestExampleSchema: z.ZodObject<{
|
|
|
1000
1000
|
required?: boolean | undefined;
|
|
1001
1001
|
enum?: string[] | undefined;
|
|
1002
1002
|
key?: string | undefined;
|
|
1003
|
-
format?: string | undefined;
|
|
1004
1003
|
examples?: any[] | undefined;
|
|
1004
|
+
format?: string | undefined;
|
|
1005
1005
|
file?: any;
|
|
1006
1006
|
enabled?: boolean | undefined;
|
|
1007
1007
|
nullable?: boolean | undefined;
|
|
@@ -1025,12 +1025,12 @@ export declare const requestExampleSchema: z.ZodObject<{
|
|
|
1025
1025
|
default?: any;
|
|
1026
1026
|
required?: boolean | undefined;
|
|
1027
1027
|
enum?: string[] | undefined;
|
|
1028
|
-
format?: string | undefined;
|
|
1029
1028
|
examples?: any[] | undefined;
|
|
1029
|
+
format?: string | undefined;
|
|
1030
1030
|
file?: any;
|
|
1031
1031
|
nullable?: boolean | undefined;
|
|
1032
1032
|
}[];
|
|
1033
|
-
|
|
1033
|
+
headers: {
|
|
1034
1034
|
value: string;
|
|
1035
1035
|
key: string;
|
|
1036
1036
|
enabled: boolean;
|
|
@@ -1041,12 +1041,12 @@ export declare const requestExampleSchema: z.ZodObject<{
|
|
|
1041
1041
|
default?: any;
|
|
1042
1042
|
required?: boolean | undefined;
|
|
1043
1043
|
enum?: string[] | undefined;
|
|
1044
|
-
format?: string | undefined;
|
|
1045
1044
|
examples?: any[] | undefined;
|
|
1045
|
+
format?: string | undefined;
|
|
1046
1046
|
file?: any;
|
|
1047
1047
|
nullable?: boolean | undefined;
|
|
1048
1048
|
}[];
|
|
1049
|
-
|
|
1049
|
+
query: {
|
|
1050
1050
|
value: string;
|
|
1051
1051
|
key: string;
|
|
1052
1052
|
enabled: boolean;
|
|
@@ -1057,8 +1057,8 @@ export declare const requestExampleSchema: z.ZodObject<{
|
|
|
1057
1057
|
default?: any;
|
|
1058
1058
|
required?: boolean | undefined;
|
|
1059
1059
|
enum?: string[] | undefined;
|
|
1060
|
-
format?: string | undefined;
|
|
1061
1060
|
examples?: any[] | undefined;
|
|
1061
|
+
format?: string | undefined;
|
|
1062
1062
|
file?: any;
|
|
1063
1063
|
nullable?: boolean | undefined;
|
|
1064
1064
|
}[];
|
|
@@ -1073,8 +1073,8 @@ export declare const requestExampleSchema: z.ZodObject<{
|
|
|
1073
1073
|
default?: any;
|
|
1074
1074
|
required?: boolean | undefined;
|
|
1075
1075
|
enum?: string[] | undefined;
|
|
1076
|
-
format?: string | undefined;
|
|
1077
1076
|
examples?: any[] | undefined;
|
|
1077
|
+
format?: string | undefined;
|
|
1078
1078
|
file?: any;
|
|
1079
1079
|
nullable?: boolean | undefined;
|
|
1080
1080
|
}[];
|
|
@@ -1094,8 +1094,8 @@ export declare const requestExampleSchema: z.ZodObject<{
|
|
|
1094
1094
|
default?: any;
|
|
1095
1095
|
required?: boolean | undefined;
|
|
1096
1096
|
enum?: string[] | undefined;
|
|
1097
|
-
format?: string | undefined;
|
|
1098
1097
|
examples?: any[] | undefined;
|
|
1098
|
+
format?: string | undefined;
|
|
1099
1099
|
file?: any;
|
|
1100
1100
|
nullable?: boolean | undefined;
|
|
1101
1101
|
}[];
|
|
@@ -1124,13 +1124,13 @@ export declare const requestExampleSchema: z.ZodObject<{
|
|
|
1124
1124
|
required?: boolean | undefined;
|
|
1125
1125
|
enum?: string[] | undefined;
|
|
1126
1126
|
key?: string | undefined;
|
|
1127
|
-
format?: string | undefined;
|
|
1128
1127
|
examples?: any[] | undefined;
|
|
1128
|
+
format?: string | undefined;
|
|
1129
1129
|
file?: any;
|
|
1130
1130
|
enabled?: boolean | undefined;
|
|
1131
1131
|
nullable?: boolean | undefined;
|
|
1132
1132
|
}[] | undefined;
|
|
1133
|
-
|
|
1133
|
+
headers?: {
|
|
1134
1134
|
value?: string | undefined;
|
|
1135
1135
|
minimum?: number | undefined;
|
|
1136
1136
|
type?: string | string[] | undefined;
|
|
@@ -1140,13 +1140,13 @@ export declare const requestExampleSchema: z.ZodObject<{
|
|
|
1140
1140
|
required?: boolean | undefined;
|
|
1141
1141
|
enum?: string[] | undefined;
|
|
1142
1142
|
key?: string | undefined;
|
|
1143
|
-
format?: string | undefined;
|
|
1144
1143
|
examples?: any[] | undefined;
|
|
1144
|
+
format?: string | undefined;
|
|
1145
1145
|
file?: any;
|
|
1146
1146
|
enabled?: boolean | undefined;
|
|
1147
1147
|
nullable?: boolean | undefined;
|
|
1148
1148
|
}[] | undefined;
|
|
1149
|
-
|
|
1149
|
+
query?: {
|
|
1150
1150
|
value?: string | undefined;
|
|
1151
1151
|
minimum?: number | undefined;
|
|
1152
1152
|
type?: string | string[] | undefined;
|
|
@@ -1156,8 +1156,8 @@ export declare const requestExampleSchema: z.ZodObject<{
|
|
|
1156
1156
|
required?: boolean | undefined;
|
|
1157
1157
|
enum?: string[] | undefined;
|
|
1158
1158
|
key?: string | undefined;
|
|
1159
|
-
format?: string | undefined;
|
|
1160
1159
|
examples?: any[] | undefined;
|
|
1160
|
+
format?: string | undefined;
|
|
1161
1161
|
file?: any;
|
|
1162
1162
|
enabled?: boolean | undefined;
|
|
1163
1163
|
nullable?: boolean | undefined;
|
|
@@ -1172,8 +1172,8 @@ export declare const requestExampleSchema: z.ZodObject<{
|
|
|
1172
1172
|
required?: boolean | undefined;
|
|
1173
1173
|
enum?: string[] | undefined;
|
|
1174
1174
|
key?: string | undefined;
|
|
1175
|
-
format?: string | undefined;
|
|
1176
1175
|
examples?: any[] | undefined;
|
|
1176
|
+
format?: string | undefined;
|
|
1177
1177
|
file?: any;
|
|
1178
1178
|
enabled?: boolean | undefined;
|
|
1179
1179
|
nullable?: boolean | undefined;
|
|
@@ -1192,8 +1192,8 @@ export declare const requestExampleSchema: z.ZodObject<{
|
|
|
1192
1192
|
required?: boolean | undefined;
|
|
1193
1193
|
enum?: string[] | undefined;
|
|
1194
1194
|
key?: string | undefined;
|
|
1195
|
-
format?: string | undefined;
|
|
1196
1195
|
examples?: any[] | undefined;
|
|
1196
|
+
format?: string | undefined;
|
|
1197
1197
|
file?: any;
|
|
1198
1198
|
enabled?: boolean | undefined;
|
|
1199
1199
|
nullable?: boolean | undefined;
|
|
@@ -1256,20 +1256,20 @@ export declare const xScalarExampleSchema: z.ZodObject<{
|
|
|
1256
1256
|
cookies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1257
1257
|
}, "strip", z.ZodTypeAny, {
|
|
1258
1258
|
path?: Record<string, string> | undefined;
|
|
1259
|
-
query?: Record<string, string> | undefined;
|
|
1260
1259
|
headers?: Record<string, string> | undefined;
|
|
1260
|
+
query?: Record<string, string> | undefined;
|
|
1261
1261
|
cookies?: Record<string, string> | undefined;
|
|
1262
1262
|
}, {
|
|
1263
1263
|
path?: Record<string, string> | undefined;
|
|
1264
|
-
query?: Record<string, string> | undefined;
|
|
1265
1264
|
headers?: Record<string, string> | undefined;
|
|
1265
|
+
query?: Record<string, string> | undefined;
|
|
1266
1266
|
cookies?: Record<string, string> | undefined;
|
|
1267
1267
|
}>;
|
|
1268
1268
|
}, "strip", z.ZodTypeAny, {
|
|
1269
1269
|
parameters: {
|
|
1270
1270
|
path?: Record<string, string> | undefined;
|
|
1271
|
-
query?: Record<string, string> | undefined;
|
|
1272
1271
|
headers?: Record<string, string> | undefined;
|
|
1272
|
+
query?: Record<string, string> | undefined;
|
|
1273
1273
|
cookies?: Record<string, string> | undefined;
|
|
1274
1274
|
};
|
|
1275
1275
|
name?: string | undefined;
|
|
@@ -1284,8 +1284,8 @@ export declare const xScalarExampleSchema: z.ZodObject<{
|
|
|
1284
1284
|
}, {
|
|
1285
1285
|
parameters: {
|
|
1286
1286
|
path?: Record<string, string> | undefined;
|
|
1287
|
-
query?: Record<string, string> | undefined;
|
|
1288
1287
|
headers?: Record<string, string> | undefined;
|
|
1288
|
+
query?: Record<string, string> | undefined;
|
|
1289
1289
|
cookies?: Record<string, string> | undefined;
|
|
1290
1290
|
};
|
|
1291
1291
|
name?: string | undefined;
|
|
@@ -1307,8 +1307,8 @@ export type XScalarExample = z.infer<typeof xScalarExampleSchema>;
|
|
|
1307
1307
|
export declare function convertExampleToXScalar(example: RequestExample): {
|
|
1308
1308
|
parameters: {
|
|
1309
1309
|
path?: Record<string, string> | undefined;
|
|
1310
|
-
query?: Record<string, string> | undefined;
|
|
1311
1310
|
headers?: Record<string, string> | undefined;
|
|
1311
|
+
query?: Record<string, string> | undefined;
|
|
1312
1312
|
cookies?: Record<string, string> | undefined;
|
|
1313
1313
|
};
|
|
1314
1314
|
name?: string | undefined;
|
|
@@ -1333,8 +1333,8 @@ export declare function createParamInstance(param: RequestParameter): {
|
|
|
1333
1333
|
default?: any;
|
|
1334
1334
|
required?: boolean | undefined;
|
|
1335
1335
|
enum?: string[] | undefined;
|
|
1336
|
-
format?: string | undefined;
|
|
1337
1336
|
examples?: any[] | undefined;
|
|
1337
|
+
format?: string | undefined;
|
|
1338
1338
|
file?: any;
|
|
1339
1339
|
nullable?: boolean | undefined;
|
|
1340
1340
|
};
|