@unispechq/unispec-core 0.2.10 → 0.2.12

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.
@@ -0,0 +1,842 @@
1
+ export declare const GENERATED_SCHEMAS: {
2
+ unispec: {
3
+ $schema: string;
4
+ $id: string;
5
+ title: string;
6
+ description: string;
7
+ type: string;
8
+ required: string[];
9
+ properties: {
10
+ unispecVersion: {
11
+ type: string;
12
+ description: string;
13
+ };
14
+ service: {
15
+ $ref: string;
16
+ };
17
+ extensions: {
18
+ type: string;
19
+ description: string;
20
+ additionalProperties: boolean;
21
+ };
22
+ };
23
+ additionalProperties: boolean;
24
+ };
25
+ unispecTests: {
26
+ $schema: string;
27
+ $id: string;
28
+ title: string;
29
+ description: string;
30
+ type: string;
31
+ required: string[];
32
+ properties: {
33
+ uniSpecTestsVersion: {
34
+ type: string;
35
+ description: string;
36
+ };
37
+ target: {
38
+ type: string;
39
+ description: string;
40
+ required: string[];
41
+ properties: {
42
+ serviceName: {
43
+ type: string;
44
+ description: string;
45
+ };
46
+ serviceVersion: {
47
+ type: string;
48
+ description: string;
49
+ };
50
+ environment: {
51
+ type: string;
52
+ description: string;
53
+ };
54
+ };
55
+ additionalProperties: boolean;
56
+ };
57
+ tests: {
58
+ type: string;
59
+ description: string;
60
+ items: {
61
+ $ref: string;
62
+ };
63
+ };
64
+ extensions: {
65
+ type: string;
66
+ description: string;
67
+ additionalProperties: boolean;
68
+ };
69
+ };
70
+ $defs: {
71
+ TestCase: {
72
+ type: string;
73
+ required: string[];
74
+ properties: {
75
+ name: {
76
+ type: string;
77
+ description: string;
78
+ };
79
+ description: {
80
+ type: string;
81
+ description: string;
82
+ };
83
+ target: {
84
+ $ref: string;
85
+ };
86
+ request: {
87
+ $ref: string;
88
+ };
89
+ expect: {
90
+ $ref: string;
91
+ };
92
+ tags: {
93
+ type: string;
94
+ description: string;
95
+ items: {
96
+ type: string;
97
+ };
98
+ };
99
+ extensions: {
100
+ type: string;
101
+ description: string;
102
+ additionalProperties: boolean;
103
+ };
104
+ };
105
+ additionalProperties: boolean;
106
+ };
107
+ TestTarget: {
108
+ type: string;
109
+ required: string[];
110
+ properties: {
111
+ protocol: {
112
+ type: string;
113
+ description: string;
114
+ enum: string[];
115
+ };
116
+ operationId: {
117
+ type: string;
118
+ description: string;
119
+ };
120
+ environment: {
121
+ type: string;
122
+ description: string;
123
+ };
124
+ };
125
+ additionalProperties: boolean;
126
+ };
127
+ TestRequest: {
128
+ type: string;
129
+ description: string;
130
+ properties: {
131
+ rest: {
132
+ $ref: string;
133
+ };
134
+ graphql: {
135
+ $ref: string;
136
+ };
137
+ websocket: {
138
+ $ref: string;
139
+ };
140
+ };
141
+ additionalProperties: boolean;
142
+ };
143
+ TestExpect: {
144
+ type: string;
145
+ description: string;
146
+ properties: {
147
+ rest: {
148
+ $ref: string;
149
+ };
150
+ graphql: {
151
+ $ref: string;
152
+ };
153
+ websocket: {
154
+ $ref: string;
155
+ };
156
+ };
157
+ additionalProperties: boolean;
158
+ };
159
+ RestRequest: {
160
+ type: string;
161
+ properties: {
162
+ params: {
163
+ type: string;
164
+ properties: {
165
+ path: {
166
+ type: string;
167
+ additionalProperties: boolean;
168
+ };
169
+ query: {
170
+ type: string;
171
+ additionalProperties: boolean;
172
+ };
173
+ };
174
+ additionalProperties: boolean;
175
+ };
176
+ headers: {
177
+ type: string;
178
+ additionalProperties: boolean;
179
+ };
180
+ body: {
181
+ description: string;
182
+ };
183
+ authProfile: {
184
+ type: string;
185
+ description: string;
186
+ };
187
+ };
188
+ additionalProperties: boolean;
189
+ };
190
+ RestExpect: {
191
+ type: string;
192
+ required: string[];
193
+ properties: {
194
+ status: {
195
+ description: string;
196
+ oneOf: ({
197
+ type: string;
198
+ items?: undefined;
199
+ } | {
200
+ type: string;
201
+ items: {
202
+ type: string;
203
+ };
204
+ })[];
205
+ };
206
+ headers: {
207
+ type: string;
208
+ description: string;
209
+ additionalProperties: boolean;
210
+ };
211
+ body: {
212
+ $ref: string;
213
+ };
214
+ };
215
+ additionalProperties: boolean;
216
+ };
217
+ BodyExpectation: {
218
+ type: string;
219
+ properties: {
220
+ mode: {
221
+ type: string;
222
+ enum: string[];
223
+ description: string;
224
+ };
225
+ json: {
226
+ description: string;
227
+ };
228
+ schemaRef: {
229
+ type: string;
230
+ description: string;
231
+ };
232
+ };
233
+ additionalProperties: boolean;
234
+ };
235
+ GraphQLRequest: {
236
+ type: string;
237
+ properties: {
238
+ operationName: {
239
+ type: string;
240
+ };
241
+ query: {
242
+ type: string;
243
+ };
244
+ variables: {
245
+ type: string;
246
+ additionalProperties: boolean;
247
+ };
248
+ headers: {
249
+ type: string;
250
+ additionalProperties: boolean;
251
+ };
252
+ authProfile: {
253
+ type: string;
254
+ description: string;
255
+ };
256
+ };
257
+ required: string[];
258
+ additionalProperties: boolean;
259
+ };
260
+ GraphQLExpect: {
261
+ type: string;
262
+ properties: {
263
+ data: {
264
+ description: string;
265
+ };
266
+ errors: {
267
+ description: string;
268
+ };
269
+ bodyMode: {
270
+ type: string;
271
+ description: string;
272
+ };
273
+ };
274
+ additionalProperties: boolean;
275
+ };
276
+ WebSocketRequest: {
277
+ type: string;
278
+ properties: {
279
+ channel: {
280
+ type: string;
281
+ description: string;
282
+ };
283
+ direction: {
284
+ type: string;
285
+ enum: string[];
286
+ };
287
+ messages: {
288
+ type: string;
289
+ description: string;
290
+ items: {
291
+ $ref: string;
292
+ };
293
+ };
294
+ authProfile: {
295
+ type: string;
296
+ description: string;
297
+ };
298
+ };
299
+ required: string[];
300
+ additionalProperties: boolean;
301
+ };
302
+ WebSocketMessageAction: {
303
+ type: string;
304
+ required: string[];
305
+ properties: {
306
+ type: {
307
+ type: string;
308
+ enum: string[];
309
+ description: string;
310
+ };
311
+ messageName: {
312
+ type: string;
313
+ description: string;
314
+ };
315
+ payload: {
316
+ description: string;
317
+ };
318
+ };
319
+ additionalProperties: boolean;
320
+ };
321
+ WebSocketExpect: {
322
+ type: string;
323
+ properties: {
324
+ messages: {
325
+ type: string;
326
+ description: string;
327
+ items: {
328
+ $ref: string;
329
+ };
330
+ };
331
+ timeoutMs: {
332
+ type: string;
333
+ description: string;
334
+ };
335
+ };
336
+ additionalProperties: boolean;
337
+ };
338
+ };
339
+ additionalProperties: boolean;
340
+ };
341
+ subschemas: ({
342
+ $schema: string;
343
+ $id: string;
344
+ title: string;
345
+ $defs: {
346
+ Identifier: {
347
+ type: string;
348
+ description: string;
349
+ pattern: string;
350
+ };
351
+ Description: {
352
+ type: string;
353
+ description: string;
354
+ };
355
+ Operation?: undefined;
356
+ Route?: undefined;
357
+ SecurityRequirement?: undefined;
358
+ Parameter?: undefined;
359
+ MediaType?: undefined;
360
+ Content?: undefined;
361
+ RequestBody?: undefined;
362
+ Response?: undefined;
363
+ SchemaDefinition?: undefined;
364
+ Message?: undefined;
365
+ Channel?: undefined;
366
+ };
367
+ type?: undefined;
368
+ properties?: undefined;
369
+ additionalProperties?: undefined;
370
+ description?: undefined;
371
+ required?: undefined;
372
+ } | {
373
+ $schema: string;
374
+ $id: string;
375
+ title: string;
376
+ type: string;
377
+ $defs: {
378
+ Operation: {
379
+ type: string;
380
+ required: string[];
381
+ properties: {
382
+ name: {
383
+ $ref: string;
384
+ };
385
+ description: {
386
+ $ref: string;
387
+ };
388
+ deprecated: {
389
+ type: string;
390
+ description: string;
391
+ default: boolean;
392
+ };
393
+ deprecationReason: {
394
+ type: string;
395
+ description: string;
396
+ };
397
+ };
398
+ additionalProperties: boolean;
399
+ };
400
+ Identifier?: undefined;
401
+ Description?: undefined;
402
+ Route?: undefined;
403
+ SecurityRequirement?: undefined;
404
+ Parameter?: undefined;
405
+ MediaType?: undefined;
406
+ Content?: undefined;
407
+ RequestBody?: undefined;
408
+ Response?: undefined;
409
+ SchemaDefinition?: undefined;
410
+ Message?: undefined;
411
+ Channel?: undefined;
412
+ };
413
+ properties: {
414
+ url: {
415
+ type: string;
416
+ description: string;
417
+ };
418
+ schema: {
419
+ type: string;
420
+ description: string;
421
+ };
422
+ queries: {
423
+ type: string;
424
+ description: string;
425
+ items: {
426
+ $ref: string;
427
+ };
428
+ };
429
+ mutations: {
430
+ type: string;
431
+ description: string;
432
+ items: {
433
+ $ref: string;
434
+ };
435
+ };
436
+ subscriptions: {
437
+ type: string;
438
+ description: string;
439
+ items: {
440
+ $ref: string;
441
+ };
442
+ };
443
+ routes?: undefined;
444
+ securitySchemes?: undefined;
445
+ name?: undefined;
446
+ description?: undefined;
447
+ version?: undefined;
448
+ protocols?: undefined;
449
+ schemas?: undefined;
450
+ channels?: undefined;
451
+ };
452
+ additionalProperties: boolean;
453
+ description?: undefined;
454
+ required?: undefined;
455
+ } | {
456
+ $schema: string;
457
+ $id: string;
458
+ title: string;
459
+ type: string;
460
+ $defs: {
461
+ Route: {
462
+ type: string;
463
+ required: string[];
464
+ properties: {
465
+ name: {
466
+ $ref: string;
467
+ };
468
+ summary: {
469
+ type: string;
470
+ description: string;
471
+ };
472
+ description: {
473
+ $ref: string;
474
+ };
475
+ path: {
476
+ type: string;
477
+ description: string;
478
+ };
479
+ method: {
480
+ type: string;
481
+ description: string;
482
+ enum: string[];
483
+ };
484
+ pathParams: {
485
+ type: string;
486
+ description: string;
487
+ items: {
488
+ $ref: string;
489
+ };
490
+ };
491
+ queryParams: {
492
+ type: string;
493
+ description: string;
494
+ items: {
495
+ $ref: string;
496
+ };
497
+ };
498
+ headers: {
499
+ type: string;
500
+ description: string;
501
+ items: {
502
+ $ref: string;
503
+ };
504
+ };
505
+ requestBody: {
506
+ $ref: string;
507
+ };
508
+ responses: {
509
+ type: string;
510
+ description: string;
511
+ additionalProperties: {
512
+ $ref: string;
513
+ };
514
+ };
515
+ security: {
516
+ type: string;
517
+ description: string;
518
+ items: {
519
+ $ref: string;
520
+ };
521
+ };
522
+ };
523
+ additionalProperties: boolean;
524
+ };
525
+ SecurityRequirement: {
526
+ type: string;
527
+ description: string;
528
+ items: {
529
+ $ref: string;
530
+ };
531
+ };
532
+ Parameter: {
533
+ type: string;
534
+ required: string[];
535
+ properties: {
536
+ name: {
537
+ type: string;
538
+ description: string;
539
+ };
540
+ description: {
541
+ $ref: string;
542
+ };
543
+ required: {
544
+ type: string;
545
+ description: string;
546
+ default: boolean;
547
+ };
548
+ schemaRef: {
549
+ type: string;
550
+ description: string;
551
+ };
552
+ };
553
+ additionalProperties: boolean;
554
+ };
555
+ MediaType: {
556
+ type: string;
557
+ properties: {
558
+ schemaRef: {
559
+ type: string;
560
+ description: string;
561
+ };
562
+ };
563
+ additionalProperties: boolean;
564
+ };
565
+ Content: {
566
+ type: string;
567
+ description: string;
568
+ additionalProperties: {
569
+ $ref: string;
570
+ };
571
+ };
572
+ RequestBody: {
573
+ type: string;
574
+ properties: {
575
+ description: {
576
+ $ref: string;
577
+ };
578
+ required: {
579
+ type: string;
580
+ description: string;
581
+ default: boolean;
582
+ };
583
+ content: {
584
+ $ref: string;
585
+ };
586
+ };
587
+ additionalProperties: boolean;
588
+ };
589
+ Response: {
590
+ type: string;
591
+ properties: {
592
+ description: {
593
+ $ref: string;
594
+ };
595
+ content: {
596
+ $ref: string;
597
+ };
598
+ };
599
+ additionalProperties: boolean;
600
+ };
601
+ Identifier?: undefined;
602
+ Description?: undefined;
603
+ Operation?: undefined;
604
+ SchemaDefinition?: undefined;
605
+ Message?: undefined;
606
+ Channel?: undefined;
607
+ };
608
+ properties: {
609
+ routes: {
610
+ type: string;
611
+ description: string;
612
+ items: {
613
+ $ref: string;
614
+ };
615
+ };
616
+ securitySchemes: {
617
+ type: string;
618
+ description: string;
619
+ additionalProperties: {
620
+ type: string;
621
+ description: string;
622
+ additionalProperties: boolean;
623
+ };
624
+ };
625
+ url?: undefined;
626
+ schema?: undefined;
627
+ queries?: undefined;
628
+ mutations?: undefined;
629
+ subscriptions?: undefined;
630
+ name?: undefined;
631
+ description?: undefined;
632
+ version?: undefined;
633
+ protocols?: undefined;
634
+ schemas?: undefined;
635
+ channels?: undefined;
636
+ };
637
+ additionalProperties: boolean;
638
+ description?: undefined;
639
+ required?: undefined;
640
+ } | {
641
+ $schema: string;
642
+ $id: string;
643
+ title: string;
644
+ description: string;
645
+ type: string;
646
+ additionalProperties: {
647
+ $ref: string;
648
+ };
649
+ $defs: {
650
+ SchemaDefinition: {
651
+ type: string;
652
+ description: string;
653
+ properties: {
654
+ jsonSchema: {
655
+ type: string;
656
+ description: string;
657
+ additionalProperties: boolean;
658
+ };
659
+ };
660
+ required: string[];
661
+ additionalProperties: boolean;
662
+ };
663
+ Identifier?: undefined;
664
+ Description?: undefined;
665
+ Operation?: undefined;
666
+ Route?: undefined;
667
+ SecurityRequirement?: undefined;
668
+ Parameter?: undefined;
669
+ MediaType?: undefined;
670
+ Content?: undefined;
671
+ RequestBody?: undefined;
672
+ Response?: undefined;
673
+ Message?: undefined;
674
+ Channel?: undefined;
675
+ };
676
+ properties?: undefined;
677
+ required?: undefined;
678
+ } | {
679
+ $schema: string;
680
+ $id: string;
681
+ title: string;
682
+ type: string;
683
+ required: string[];
684
+ properties: {
685
+ name: {
686
+ $ref: string;
687
+ };
688
+ description: {
689
+ $ref: string;
690
+ };
691
+ version: {
692
+ type: string;
693
+ description: string;
694
+ };
695
+ protocols: {
696
+ type: string;
697
+ description: string;
698
+ properties: {
699
+ rest: {
700
+ $ref: string;
701
+ };
702
+ graphql: {
703
+ $ref: string;
704
+ };
705
+ websocket: {
706
+ $ref: string;
707
+ };
708
+ };
709
+ additionalProperties: boolean;
710
+ };
711
+ schemas: {
712
+ $ref: string;
713
+ };
714
+ url?: undefined;
715
+ schema?: undefined;
716
+ queries?: undefined;
717
+ mutations?: undefined;
718
+ subscriptions?: undefined;
719
+ routes?: undefined;
720
+ securitySchemes?: undefined;
721
+ channels?: undefined;
722
+ };
723
+ additionalProperties: boolean;
724
+ $defs?: undefined;
725
+ description?: undefined;
726
+ } | {
727
+ $schema: string;
728
+ $id: string;
729
+ title: string;
730
+ type: string;
731
+ $defs: {
732
+ Message: {
733
+ type: string;
734
+ required: string[];
735
+ properties: {
736
+ name: {
737
+ $ref: string;
738
+ };
739
+ description: {
740
+ $ref: string;
741
+ };
742
+ schemaRef: {
743
+ type: string;
744
+ description: string;
745
+ };
746
+ };
747
+ additionalProperties: boolean;
748
+ };
749
+ SecurityRequirement: {
750
+ type: string;
751
+ description: string;
752
+ items: {
753
+ $ref: string;
754
+ };
755
+ };
756
+ Channel: {
757
+ type: string;
758
+ required: string[];
759
+ properties: {
760
+ name: {
761
+ $ref: string;
762
+ };
763
+ description: {
764
+ $ref: string;
765
+ };
766
+ direction: {
767
+ type: string;
768
+ description: string;
769
+ enum: string[];
770
+ default: string;
771
+ };
772
+ messages: {
773
+ type: string;
774
+ description: string;
775
+ items: {
776
+ $ref: string;
777
+ };
778
+ };
779
+ security: {
780
+ type: string;
781
+ description: string;
782
+ items: {
783
+ $ref: string;
784
+ };
785
+ };
786
+ extensions: {
787
+ type: string;
788
+ description: string;
789
+ additionalProperties: boolean;
790
+ };
791
+ };
792
+ additionalProperties: boolean;
793
+ };
794
+ Identifier?: undefined;
795
+ Description?: undefined;
796
+ Operation?: undefined;
797
+ Route?: undefined;
798
+ Parameter?: undefined;
799
+ MediaType?: undefined;
800
+ Content?: undefined;
801
+ RequestBody?: undefined;
802
+ Response?: undefined;
803
+ SchemaDefinition?: undefined;
804
+ };
805
+ properties: {
806
+ url: {
807
+ type: string;
808
+ description: string;
809
+ };
810
+ channels: {
811
+ type: string;
812
+ description: string;
813
+ items: {
814
+ $ref: string;
815
+ };
816
+ };
817
+ securitySchemes: {
818
+ type: string;
819
+ description: string;
820
+ additionalProperties: {
821
+ type: string;
822
+ description: string;
823
+ additionalProperties: boolean;
824
+ };
825
+ };
826
+ schema?: undefined;
827
+ queries?: undefined;
828
+ mutations?: undefined;
829
+ subscriptions?: undefined;
830
+ routes?: undefined;
831
+ name?: undefined;
832
+ description?: undefined;
833
+ version?: undefined;
834
+ protocols?: undefined;
835
+ schemas?: undefined;
836
+ };
837
+ additionalProperties: boolean;
838
+ description?: undefined;
839
+ required?: undefined;
840
+ })[];
841
+ };
842
+ export declare const SCHEMA_IDS: string[];