@unispechq/unispec-core 0.2.9 → 0.2.11

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,832 @@
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
+ schema: {
415
+ type: string;
416
+ description: string;
417
+ };
418
+ queries: {
419
+ type: string;
420
+ description: string;
421
+ items: {
422
+ $ref: string;
423
+ };
424
+ };
425
+ mutations: {
426
+ type: string;
427
+ description: string;
428
+ items: {
429
+ $ref: string;
430
+ };
431
+ };
432
+ subscriptions: {
433
+ type: string;
434
+ description: string;
435
+ items: {
436
+ $ref: string;
437
+ };
438
+ };
439
+ routes?: undefined;
440
+ securitySchemes?: undefined;
441
+ name?: undefined;
442
+ description?: undefined;
443
+ version?: undefined;
444
+ protocols?: undefined;
445
+ schemas?: undefined;
446
+ channels?: undefined;
447
+ };
448
+ additionalProperties: boolean;
449
+ description?: undefined;
450
+ required?: undefined;
451
+ } | {
452
+ $schema: string;
453
+ $id: string;
454
+ title: string;
455
+ type: string;
456
+ $defs: {
457
+ Route: {
458
+ type: string;
459
+ required: string[];
460
+ properties: {
461
+ name: {
462
+ $ref: string;
463
+ };
464
+ summary: {
465
+ type: string;
466
+ description: string;
467
+ };
468
+ description: {
469
+ $ref: string;
470
+ };
471
+ path: {
472
+ type: string;
473
+ description: string;
474
+ };
475
+ method: {
476
+ type: string;
477
+ description: string;
478
+ enum: string[];
479
+ };
480
+ pathParams: {
481
+ type: string;
482
+ description: string;
483
+ items: {
484
+ $ref: string;
485
+ };
486
+ };
487
+ queryParams: {
488
+ type: string;
489
+ description: string;
490
+ items: {
491
+ $ref: string;
492
+ };
493
+ };
494
+ headers: {
495
+ type: string;
496
+ description: string;
497
+ items: {
498
+ $ref: string;
499
+ };
500
+ };
501
+ requestBody: {
502
+ $ref: string;
503
+ };
504
+ responses: {
505
+ type: string;
506
+ description: string;
507
+ additionalProperties: {
508
+ $ref: string;
509
+ };
510
+ };
511
+ security: {
512
+ type: string;
513
+ description: string;
514
+ items: {
515
+ $ref: string;
516
+ };
517
+ };
518
+ };
519
+ additionalProperties: boolean;
520
+ };
521
+ SecurityRequirement: {
522
+ type: string;
523
+ description: string;
524
+ items: {
525
+ $ref: string;
526
+ };
527
+ };
528
+ Parameter: {
529
+ type: string;
530
+ required: string[];
531
+ properties: {
532
+ name: {
533
+ type: string;
534
+ description: string;
535
+ };
536
+ description: {
537
+ $ref: string;
538
+ };
539
+ required: {
540
+ type: string;
541
+ description: string;
542
+ default: boolean;
543
+ };
544
+ schemaRef: {
545
+ type: string;
546
+ description: string;
547
+ };
548
+ };
549
+ additionalProperties: boolean;
550
+ };
551
+ MediaType: {
552
+ type: string;
553
+ properties: {
554
+ schemaRef: {
555
+ type: string;
556
+ description: string;
557
+ };
558
+ };
559
+ additionalProperties: boolean;
560
+ };
561
+ Content: {
562
+ type: string;
563
+ description: string;
564
+ additionalProperties: {
565
+ $ref: string;
566
+ };
567
+ };
568
+ RequestBody: {
569
+ type: string;
570
+ properties: {
571
+ description: {
572
+ $ref: string;
573
+ };
574
+ required: {
575
+ type: string;
576
+ description: string;
577
+ default: boolean;
578
+ };
579
+ content: {
580
+ $ref: string;
581
+ };
582
+ };
583
+ additionalProperties: boolean;
584
+ };
585
+ Response: {
586
+ type: string;
587
+ properties: {
588
+ description: {
589
+ $ref: string;
590
+ };
591
+ content: {
592
+ $ref: string;
593
+ };
594
+ };
595
+ additionalProperties: boolean;
596
+ };
597
+ Identifier?: undefined;
598
+ Description?: undefined;
599
+ Operation?: undefined;
600
+ SchemaDefinition?: undefined;
601
+ Message?: undefined;
602
+ Channel?: undefined;
603
+ };
604
+ properties: {
605
+ routes: {
606
+ type: string;
607
+ description: string;
608
+ items: {
609
+ $ref: string;
610
+ };
611
+ };
612
+ securitySchemes: {
613
+ type: string;
614
+ description: string;
615
+ additionalProperties: {
616
+ type: string;
617
+ description: string;
618
+ additionalProperties: boolean;
619
+ };
620
+ };
621
+ schema?: undefined;
622
+ queries?: undefined;
623
+ mutations?: undefined;
624
+ subscriptions?: undefined;
625
+ name?: undefined;
626
+ description?: undefined;
627
+ version?: undefined;
628
+ protocols?: undefined;
629
+ schemas?: undefined;
630
+ channels?: undefined;
631
+ };
632
+ additionalProperties: boolean;
633
+ description?: undefined;
634
+ required?: undefined;
635
+ } | {
636
+ $schema: string;
637
+ $id: string;
638
+ title: string;
639
+ description: string;
640
+ type: string;
641
+ additionalProperties: {
642
+ $ref: string;
643
+ };
644
+ $defs: {
645
+ SchemaDefinition: {
646
+ type: string;
647
+ description: string;
648
+ properties: {
649
+ jsonSchema: {
650
+ type: string;
651
+ description: string;
652
+ additionalProperties: boolean;
653
+ };
654
+ };
655
+ required: string[];
656
+ additionalProperties: boolean;
657
+ };
658
+ Identifier?: undefined;
659
+ Description?: undefined;
660
+ Operation?: undefined;
661
+ Route?: undefined;
662
+ SecurityRequirement?: undefined;
663
+ Parameter?: undefined;
664
+ MediaType?: undefined;
665
+ Content?: undefined;
666
+ RequestBody?: undefined;
667
+ Response?: undefined;
668
+ Message?: undefined;
669
+ Channel?: undefined;
670
+ };
671
+ properties?: undefined;
672
+ required?: undefined;
673
+ } | {
674
+ $schema: string;
675
+ $id: string;
676
+ title: string;
677
+ type: string;
678
+ required: string[];
679
+ properties: {
680
+ name: {
681
+ $ref: string;
682
+ };
683
+ description: {
684
+ $ref: string;
685
+ };
686
+ version: {
687
+ type: string;
688
+ description: string;
689
+ };
690
+ protocols: {
691
+ type: string;
692
+ description: string;
693
+ properties: {
694
+ rest: {
695
+ $ref: string;
696
+ };
697
+ graphql: {
698
+ $ref: string;
699
+ };
700
+ websocket: {
701
+ $ref: string;
702
+ };
703
+ };
704
+ additionalProperties: boolean;
705
+ };
706
+ schemas: {
707
+ $ref: string;
708
+ };
709
+ schema?: undefined;
710
+ queries?: undefined;
711
+ mutations?: undefined;
712
+ subscriptions?: undefined;
713
+ routes?: undefined;
714
+ securitySchemes?: undefined;
715
+ channels?: undefined;
716
+ };
717
+ additionalProperties: boolean;
718
+ $defs?: undefined;
719
+ description?: undefined;
720
+ } | {
721
+ $schema: string;
722
+ $id: string;
723
+ title: string;
724
+ type: string;
725
+ $defs: {
726
+ Message: {
727
+ type: string;
728
+ required: string[];
729
+ properties: {
730
+ name: {
731
+ $ref: string;
732
+ };
733
+ description: {
734
+ $ref: string;
735
+ };
736
+ schemaRef: {
737
+ type: string;
738
+ description: string;
739
+ };
740
+ };
741
+ additionalProperties: boolean;
742
+ };
743
+ SecurityRequirement: {
744
+ type: string;
745
+ description: string;
746
+ items: {
747
+ $ref: string;
748
+ };
749
+ };
750
+ Channel: {
751
+ type: string;
752
+ required: string[];
753
+ properties: {
754
+ name: {
755
+ $ref: string;
756
+ };
757
+ description: {
758
+ $ref: string;
759
+ };
760
+ direction: {
761
+ type: string;
762
+ description: string;
763
+ enum: string[];
764
+ default: string;
765
+ };
766
+ messages: {
767
+ type: string;
768
+ description: string;
769
+ items: {
770
+ $ref: string;
771
+ };
772
+ };
773
+ security: {
774
+ type: string;
775
+ description: string;
776
+ items: {
777
+ $ref: string;
778
+ };
779
+ };
780
+ extensions: {
781
+ type: string;
782
+ description: string;
783
+ additionalProperties: boolean;
784
+ };
785
+ };
786
+ additionalProperties: boolean;
787
+ };
788
+ Identifier?: undefined;
789
+ Description?: undefined;
790
+ Operation?: undefined;
791
+ Route?: undefined;
792
+ Parameter?: undefined;
793
+ MediaType?: undefined;
794
+ Content?: undefined;
795
+ RequestBody?: undefined;
796
+ Response?: undefined;
797
+ SchemaDefinition?: undefined;
798
+ };
799
+ properties: {
800
+ channels: {
801
+ type: string;
802
+ description: string;
803
+ items: {
804
+ $ref: string;
805
+ };
806
+ };
807
+ securitySchemes: {
808
+ type: string;
809
+ description: string;
810
+ additionalProperties: {
811
+ type: string;
812
+ description: string;
813
+ additionalProperties: boolean;
814
+ };
815
+ };
816
+ schema?: undefined;
817
+ queries?: undefined;
818
+ mutations?: undefined;
819
+ subscriptions?: undefined;
820
+ routes?: undefined;
821
+ name?: undefined;
822
+ description?: undefined;
823
+ version?: undefined;
824
+ protocols?: undefined;
825
+ schemas?: undefined;
826
+ };
827
+ additionalProperties: boolean;
828
+ description?: undefined;
829
+ required?: undefined;
830
+ })[];
831
+ };
832
+ export declare const SCHEMA_IDS: string[];