@unispechq/unispec-core 0.2.10 → 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,816 @@
1
+ // Auto-generated schemas for validator
2
+ // This file is generated during build time
3
+ export const GENERATED_SCHEMAS = {
4
+ unispec: {
5
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
6
+ "$id": "https://unispec.dev/schema/unispec.schema.json",
7
+ "title": "UniSpec document",
8
+ "description": "Top-level UniSpec document describing a multi-protocol API service.",
9
+ "type": "object",
10
+ "required": [
11
+ "unispecVersion",
12
+ "service"
13
+ ],
14
+ "properties": {
15
+ "unispecVersion": {
16
+ "type": "string",
17
+ "description": "UniSpec format version (SemVer)."
18
+ },
19
+ "service": {
20
+ "$ref": "./types/service.schema.json#"
21
+ },
22
+ "extensions": {
23
+ "type": "object",
24
+ "description": "Custom vendor-specific extensions (x-*) at the document root.",
25
+ "additionalProperties": true
26
+ }
27
+ },
28
+ "additionalProperties": false
29
+ },
30
+ unispecTests: {
31
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
32
+ "$id": "https://unispec.dev/schema/unispec-tests.schema.json",
33
+ "title": "UniSpec Tests document",
34
+ "description": "Executable test cases targeting UniSpec-described services.",
35
+ "type": "object",
36
+ "required": [
37
+ "uniSpecTestsVersion",
38
+ "target",
39
+ "tests"
40
+ ],
41
+ "properties": {
42
+ "uniSpecTestsVersion": {
43
+ "type": "string",
44
+ "description": "UniSpec Tests format version (SemVer)."
45
+ },
46
+ "target": {
47
+ "type": "object",
48
+ "description": "Service and environment that this test document targets.",
49
+ "required": [
50
+ "serviceName"
51
+ ],
52
+ "properties": {
53
+ "serviceName": {
54
+ "type": "string",
55
+ "description": "Identifier of the service, matching service.name from UniSpec."
56
+ },
57
+ "serviceVersion": {
58
+ "type": "string",
59
+ "description": "Optional service contract version, matching service.version when provided."
60
+ },
61
+ "environment": {
62
+ "type": "string",
63
+ "description": "Optional environment name, matching service.environments[].name when provided."
64
+ }
65
+ },
66
+ "additionalProperties": false
67
+ },
68
+ "tests": {
69
+ "type": "array",
70
+ "description": "List of test cases.",
71
+ "items": {
72
+ "$ref": "#/$defs/TestCase"
73
+ }
74
+ },
75
+ "extensions": {
76
+ "type": "object",
77
+ "description": "Custom vendor-specific extensions (x-*) at the document root.",
78
+ "additionalProperties": true
79
+ }
80
+ },
81
+ "$defs": {
82
+ "TestCase": {
83
+ "type": "object",
84
+ "required": [
85
+ "name",
86
+ "target",
87
+ "request",
88
+ "expect"
89
+ ],
90
+ "properties": {
91
+ "name": {
92
+ "type": "string",
93
+ "description": "Test identifier, unique within this document."
94
+ },
95
+ "description": {
96
+ "type": "string",
97
+ "description": "Human-readable description of the test case."
98
+ },
99
+ "target": {
100
+ "$ref": "#/$defs/TestTarget"
101
+ },
102
+ "request": {
103
+ "$ref": "#/$defs/TestRequest"
104
+ },
105
+ "expect": {
106
+ "$ref": "#/$defs/TestExpect"
107
+ },
108
+ "tags": {
109
+ "type": "array",
110
+ "description": "Tags for grouping and filtering tests.",
111
+ "items": {
112
+ "type": "string"
113
+ }
114
+ },
115
+ "extensions": {
116
+ "type": "object",
117
+ "description": "Custom vendor-specific extensions (x-*) for this test.",
118
+ "additionalProperties": true
119
+ }
120
+ },
121
+ "additionalProperties": false
122
+ },
123
+ "TestTarget": {
124
+ "type": "object",
125
+ "required": [
126
+ "protocol",
127
+ "operationId"
128
+ ],
129
+ "properties": {
130
+ "protocol": {
131
+ "type": "string",
132
+ "description": "Protocol of the operation under test.",
133
+ "enum": [
134
+ "rest",
135
+ "graphql",
136
+ "websocket"
137
+ ]
138
+ },
139
+ "operationId": {
140
+ "type": "string",
141
+ "description": "Operation identifier within the service (for example, REST route name)."
142
+ },
143
+ "environment": {
144
+ "type": "string",
145
+ "description": "Optional environment name overriding the document-level target.environment."
146
+ }
147
+ },
148
+ "additionalProperties": false
149
+ },
150
+ "TestRequest": {
151
+ "type": "object",
152
+ "description": "Protocol-specific request definition.",
153
+ "properties": {
154
+ "rest": {
155
+ "$ref": "#/$defs/RestRequest"
156
+ },
157
+ "graphql": {
158
+ "$ref": "#/$defs/GraphQLRequest"
159
+ },
160
+ "websocket": {
161
+ "$ref": "#/$defs/WebSocketRequest"
162
+ }
163
+ },
164
+ "additionalProperties": false
165
+ },
166
+ "TestExpect": {
167
+ "type": "object",
168
+ "description": "Protocol-specific expectations.",
169
+ "properties": {
170
+ "rest": {
171
+ "$ref": "#/$defs/RestExpect"
172
+ },
173
+ "graphql": {
174
+ "$ref": "#/$defs/GraphQLExpect"
175
+ },
176
+ "websocket": {
177
+ "$ref": "#/$defs/WebSocketExpect"
178
+ }
179
+ },
180
+ "additionalProperties": false
181
+ },
182
+ "RestRequest": {
183
+ "type": "object",
184
+ "properties": {
185
+ "params": {
186
+ "type": "object",
187
+ "properties": {
188
+ "path": {
189
+ "type": "object",
190
+ "additionalProperties": true
191
+ },
192
+ "query": {
193
+ "type": "object",
194
+ "additionalProperties": true
195
+ }
196
+ },
197
+ "additionalProperties": false
198
+ },
199
+ "headers": {
200
+ "type": "object",
201
+ "additionalProperties": true
202
+ },
203
+ "body": {
204
+ "description": "Request body (arbitrary JSON value)."
205
+ },
206
+ "authProfile": {
207
+ "type": "string",
208
+ "description": "Identifier of an authentication profile configured in tooling."
209
+ }
210
+ },
211
+ "additionalProperties": false
212
+ },
213
+ "RestExpect": {
214
+ "type": "object",
215
+ "required": [
216
+ "status"
217
+ ],
218
+ "properties": {
219
+ "status": {
220
+ "description": "Expected HTTP status code or list of acceptable codes.",
221
+ "oneOf": [
222
+ {
223
+ "type": "integer"
224
+ },
225
+ {
226
+ "type": "array",
227
+ "items": {
228
+ "type": "integer"
229
+ }
230
+ }
231
+ ]
232
+ },
233
+ "headers": {
234
+ "type": "object",
235
+ "description": "Expected headers (usually partial match).",
236
+ "additionalProperties": true
237
+ },
238
+ "body": {
239
+ "$ref": "#/$defs/BodyExpectation"
240
+ }
241
+ },
242
+ "additionalProperties": false
243
+ },
244
+ "BodyExpectation": {
245
+ "type": "object",
246
+ "properties": {
247
+ "mode": {
248
+ "type": "string",
249
+ "enum": [
250
+ "exact",
251
+ "contains",
252
+ "schemaOnly",
253
+ "snapshot"
254
+ ],
255
+ "description": "Assertion mode for the response body."
256
+ },
257
+ "json": {
258
+ "description": "JSON value used for exact or contains mode."
259
+ },
260
+ "schemaRef": {
261
+ "type": "string",
262
+ "description": "Reference to a schema from service.schemas for schemaOnly mode. Recommended format: <SchemaName> (where SchemaName is a key in service.schemas). Tools may also accept a JSON Pointer in the form #/service/schemas/<SchemaName>."
263
+ }
264
+ },
265
+ "additionalProperties": false
266
+ },
267
+ "GraphQLRequest": {
268
+ "type": "object",
269
+ "properties": {
270
+ "operationName": {
271
+ "type": "string"
272
+ },
273
+ "query": {
274
+ "type": "string"
275
+ },
276
+ "variables": {
277
+ "type": "object",
278
+ "additionalProperties": true
279
+ },
280
+ "headers": {
281
+ "type": "object",
282
+ "additionalProperties": true
283
+ },
284
+ "authProfile": {
285
+ "type": "string",
286
+ "description": "Identifier of an authentication profile configured in tooling."
287
+ }
288
+ },
289
+ "required": [
290
+ "query"
291
+ ],
292
+ "additionalProperties": false
293
+ },
294
+ "GraphQLExpect": {
295
+ "type": "object",
296
+ "properties": {
297
+ "data": {
298
+ "description": "Expectations on the data field (exact or partial match)."
299
+ },
300
+ "errors": {
301
+ "description": "Expectations on the errors field."
302
+ },
303
+ "bodyMode": {
304
+ "type": "string",
305
+ "description": "Optional control over how strictly data and errors are matched."
306
+ }
307
+ },
308
+ "additionalProperties": false
309
+ },
310
+ "WebSocketRequest": {
311
+ "type": "object",
312
+ "properties": {
313
+ "channel": {
314
+ "type": "string",
315
+ "description": "Channel identifier, matching protocols.websocket.channels[].name."
316
+ },
317
+ "direction": {
318
+ "type": "string",
319
+ "enum": [
320
+ "publish",
321
+ "subscribe",
322
+ "both"
323
+ ]
324
+ },
325
+ "messages": {
326
+ "type": "array",
327
+ "description": "Message actions (send/expect) forming a small interaction script.",
328
+ "items": {
329
+ "$ref": "#/$defs/WebSocketMessageAction"
330
+ }
331
+ },
332
+ "authProfile": {
333
+ "type": "string",
334
+ "description": "Identifier of an authentication profile configured in tooling."
335
+ }
336
+ },
337
+ "required": [
338
+ "channel"
339
+ ],
340
+ "additionalProperties": false
341
+ },
342
+ "WebSocketMessageAction": {
343
+ "type": "object",
344
+ "required": [
345
+ "type",
346
+ "messageName"
347
+ ],
348
+ "properties": {
349
+ "type": {
350
+ "type": "string",
351
+ "enum": [
352
+ "send",
353
+ "expect"
354
+ ],
355
+ "description": "Whether this action sends or expects a message."
356
+ },
357
+ "messageName": {
358
+ "type": "string",
359
+ "description": "Name of the message, matching protocols.websocket.channels[].messages[].name."
360
+ },
361
+ "payload": {
362
+ "description": "Payload to send or expected payload structure."
363
+ }
364
+ },
365
+ "additionalProperties": false
366
+ },
367
+ "WebSocketExpect": {
368
+ "type": "object",
369
+ "properties": {
370
+ "messages": {
371
+ "type": "array",
372
+ "description": "Expected messages to be observed on the channel.",
373
+ "items": {
374
+ "$ref": "#/$defs/WebSocketMessageAction"
375
+ }
376
+ },
377
+ "timeoutMs": {
378
+ "type": "integer",
379
+ "description": "Timeout for the WebSocket interaction in milliseconds."
380
+ }
381
+ },
382
+ "additionalProperties": false
383
+ }
384
+ },
385
+ "additionalProperties": false
386
+ },
387
+ subschemas: [
388
+ {
389
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
390
+ "$id": "https://unispec.dev/schema/types/common.schema.json",
391
+ "title": "Common UniSpec definitions",
392
+ "$defs": {
393
+ "Identifier": {
394
+ "type": "string",
395
+ "description": "Identifier for services, operations, channels, etc.",
396
+ "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$"
397
+ },
398
+ "Description": {
399
+ "type": "string",
400
+ "description": "Human-readable description text."
401
+ }
402
+ }
403
+ },
404
+ {
405
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
406
+ "$id": "https://unispec.dev/schema/types/graphql.schema.json",
407
+ "title": "GraphQL API surface",
408
+ "type": "object",
409
+ "$defs": {
410
+ "Operation": {
411
+ "type": "object",
412
+ "required": [
413
+ "name"
414
+ ],
415
+ "properties": {
416
+ "name": {
417
+ "$ref": "./common.schema.json#/$defs/Identifier"
418
+ },
419
+ "description": {
420
+ "$ref": "./common.schema.json#/$defs/Description"
421
+ },
422
+ "deprecated": {
423
+ "type": "boolean",
424
+ "description": "Marks the operation as deprecated.",
425
+ "default": false
426
+ },
427
+ "deprecationReason": {
428
+ "type": "string",
429
+ "description": "Human-readable reason for deprecation."
430
+ }
431
+ },
432
+ "additionalProperties": false
433
+ }
434
+ },
435
+ "properties": {
436
+ "schema": {
437
+ "type": "string",
438
+ "description": "GraphQL schema SDL as a string. Canonical source of type definitions."
439
+ },
440
+ "queries": {
441
+ "type": "array",
442
+ "description": "Query operations exposed by the GraphQL API.",
443
+ "items": {
444
+ "$ref": "#/$defs/Operation"
445
+ }
446
+ },
447
+ "mutations": {
448
+ "type": "array",
449
+ "description": "Mutation operations exposed by the GraphQL API.",
450
+ "items": {
451
+ "$ref": "#/$defs/Operation"
452
+ }
453
+ },
454
+ "subscriptions": {
455
+ "type": "array",
456
+ "description": "Subscription operations exposed by the GraphQL API.",
457
+ "items": {
458
+ "$ref": "#/$defs/Operation"
459
+ }
460
+ }
461
+ },
462
+ "additionalProperties": false
463
+ },
464
+ {
465
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
466
+ "$id": "https://unispec.dev/schema/types/rest.schema.json",
467
+ "title": "REST API surface",
468
+ "type": "object",
469
+ "$defs": {
470
+ "Route": {
471
+ "type": "object",
472
+ "required": [
473
+ "path",
474
+ "method"
475
+ ],
476
+ "properties": {
477
+ "name": {
478
+ "$ref": "./common.schema.json#/$defs/Identifier"
479
+ },
480
+ "summary": {
481
+ "type": "string",
482
+ "description": "Short, human-readable summary of the route."
483
+ },
484
+ "description": {
485
+ "$ref": "./common.schema.json#/$defs/Description"
486
+ },
487
+ "path": {
488
+ "type": "string",
489
+ "description": "URL path template, e.g. /users/{id}."
490
+ },
491
+ "method": {
492
+ "type": "string",
493
+ "description": "HTTP method in upper-case.",
494
+ "enum": [
495
+ "GET",
496
+ "POST",
497
+ "PUT",
498
+ "PATCH",
499
+ "DELETE"
500
+ ]
501
+ },
502
+ "pathParams": {
503
+ "type": "array",
504
+ "description": "Path parameters bound from the URL template.",
505
+ "items": {
506
+ "$ref": "#/$defs/Parameter"
507
+ }
508
+ },
509
+ "queryParams": {
510
+ "type": "array",
511
+ "description": "Query string parameters.",
512
+ "items": {
513
+ "$ref": "#/$defs/Parameter"
514
+ }
515
+ },
516
+ "headers": {
517
+ "type": "array",
518
+ "description": "HTTP headers relevant for this route.",
519
+ "items": {
520
+ "$ref": "#/$defs/Parameter"
521
+ }
522
+ },
523
+ "requestBody": {
524
+ "$ref": "#/$defs/RequestBody"
525
+ },
526
+ "responses": {
527
+ "type": "object",
528
+ "description": "HTTP responses keyed by status code (e.g. '200', '404').",
529
+ "additionalProperties": {
530
+ "$ref": "#/$defs/Response"
531
+ }
532
+ },
533
+ "security": {
534
+ "type": "array",
535
+ "description": "Security requirements for this route. Each item represents an alternative set of named security schemes.",
536
+ "items": {
537
+ "$ref": "#/$defs/SecurityRequirement"
538
+ }
539
+ }
540
+ },
541
+ "additionalProperties": false
542
+ },
543
+ "SecurityRequirement": {
544
+ "type": "array",
545
+ "description": "Alternative set of named security schemes applied to an operation.",
546
+ "items": {
547
+ "$ref": "./common.schema.json#/$defs/Identifier"
548
+ }
549
+ },
550
+ "Parameter": {
551
+ "type": "object",
552
+ "required": [
553
+ "name"
554
+ ],
555
+ "properties": {
556
+ "name": {
557
+ "type": "string",
558
+ "description": "Parameter name as it appears in the API."
559
+ },
560
+ "description": {
561
+ "$ref": "./common.schema.json#/$defs/Description"
562
+ },
563
+ "required": {
564
+ "type": "boolean",
565
+ "description": "Whether this parameter is required.",
566
+ "default": false
567
+ },
568
+ "schemaRef": {
569
+ "type": "string",
570
+ "description": "Reference to a reusable schema defined in service.schemas. Recommended format: <SchemaName> (where SchemaName is a key in service.schemas). Tools may also accept a JSON Pointer in the form #/service/schemas/<SchemaName>."
571
+ }
572
+ },
573
+ "additionalProperties": false
574
+ },
575
+ "MediaType": {
576
+ "type": "object",
577
+ "properties": {
578
+ "schemaRef": {
579
+ "type": "string",
580
+ "description": "Reference to a reusable schema defined in service.schemas used as the content payload. Recommended format: <SchemaName> (where SchemaName is a key in service.schemas). Tools may also accept a JSON Pointer in the form #/service/schemas/<SchemaName>."
581
+ }
582
+ },
583
+ "additionalProperties": false
584
+ },
585
+ "Content": {
586
+ "type": "object",
587
+ "description": "Content keyed by media type, e.g. 'application/json'.",
588
+ "additionalProperties": {
589
+ "$ref": "#/$defs/MediaType"
590
+ }
591
+ },
592
+ "RequestBody": {
593
+ "type": "object",
594
+ "properties": {
595
+ "description": {
596
+ "$ref": "./common.schema.json#/$defs/Description"
597
+ },
598
+ "required": {
599
+ "type": "boolean",
600
+ "description": "Whether a request body is required.",
601
+ "default": false
602
+ },
603
+ "content": {
604
+ "$ref": "#/$defs/Content"
605
+ }
606
+ },
607
+ "additionalProperties": false
608
+ },
609
+ "Response": {
610
+ "type": "object",
611
+ "properties": {
612
+ "description": {
613
+ "$ref": "./common.schema.json#/$defs/Description"
614
+ },
615
+ "content": {
616
+ "$ref": "#/$defs/Content"
617
+ }
618
+ },
619
+ "additionalProperties": false
620
+ }
621
+ },
622
+ "properties": {
623
+ "routes": {
624
+ "type": "array",
625
+ "description": "List of REST routes exposed by the service.",
626
+ "items": {
627
+ "$ref": "#/$defs/Route"
628
+ }
629
+ },
630
+ "securitySchemes": {
631
+ "type": "object",
632
+ "description": "Authentication mechanisms available for this REST surface.",
633
+ "additionalProperties": {
634
+ "type": "object",
635
+ "description": "Security scheme definition (shape is intentionally flexible and may evolve).",
636
+ "additionalProperties": true
637
+ }
638
+ }
639
+ },
640
+ "additionalProperties": false
641
+ },
642
+ {
643
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
644
+ "$id": "https://unispec.dev/schema/types/schemas.schema.json",
645
+ "title": "Reusable data schemas",
646
+ "description": "Container for reusable data model definitions (request/response bodies, messages, etc.).",
647
+ "type": "object",
648
+ "additionalProperties": {
649
+ "$ref": "#/$defs/SchemaDefinition"
650
+ },
651
+ "$defs": {
652
+ "SchemaDefinition": {
653
+ "type": "object",
654
+ "description": "Named reusable data schema definition.",
655
+ "properties": {
656
+ "jsonSchema": {
657
+ "type": "object",
658
+ "description": "Embedded JSON Schema Draft 2020-12 definition for this type.",
659
+ "additionalProperties": true
660
+ }
661
+ },
662
+ "required": [
663
+ "jsonSchema"
664
+ ],
665
+ "additionalProperties": false
666
+ }
667
+ }
668
+ },
669
+ {
670
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
671
+ "$id": "https://unispec.dev/schema/types/service.schema.json",
672
+ "title": "UniSpec Service",
673
+ "type": "object",
674
+ "required": [
675
+ "name"
676
+ ],
677
+ "properties": {
678
+ "name": {
679
+ "$ref": "./common.schema.json#/$defs/Identifier"
680
+ },
681
+ "description": {
682
+ "$ref": "./common.schema.json#/$defs/Description"
683
+ },
684
+ "version": {
685
+ "type": "string",
686
+ "description": "Service contract version (SemVer)."
687
+ },
688
+ "protocols": {
689
+ "type": "object",
690
+ "description": "Protocol-specific API surfaces exposed by this service.",
691
+ "properties": {
692
+ "rest": {
693
+ "$ref": "./rest.schema.json#"
694
+ },
695
+ "graphql": {
696
+ "$ref": "./graphql.schema.json#"
697
+ },
698
+ "websocket": {
699
+ "$ref": "./websocket.schema.json#"
700
+ }
701
+ },
702
+ "additionalProperties": false
703
+ },
704
+ "schemas": {
705
+ "$ref": "./schemas.schema.json#"
706
+ }
707
+ },
708
+ "additionalProperties": false
709
+ },
710
+ {
711
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
712
+ "$id": "https://unispec.dev/schema/types/websocket.schema.json",
713
+ "title": "WebSocket API surface",
714
+ "type": "object",
715
+ "$defs": {
716
+ "Message": {
717
+ "type": "object",
718
+ "required": [
719
+ "name"
720
+ ],
721
+ "properties": {
722
+ "name": {
723
+ "$ref": "./common.schema.json#/$defs/Identifier"
724
+ },
725
+ "description": {
726
+ "$ref": "./common.schema.json#/$defs/Description"
727
+ },
728
+ "schemaRef": {
729
+ "type": "string",
730
+ "description": "Reference to a reusable schema describing the message payload. Recommended format: <SchemaName> (where SchemaName is a key in service.schemas). Tools may also accept a JSON Pointer in the form #/service/schemas/<SchemaName>."
731
+ }
732
+ },
733
+ "additionalProperties": false
734
+ },
735
+ "SecurityRequirement": {
736
+ "type": "array",
737
+ "description": "Alternative set of named security schemes applied to a WebSocket channel.",
738
+ "items": {
739
+ "$ref": "./common.schema.json#/$defs/Identifier"
740
+ }
741
+ },
742
+ "Channel": {
743
+ "type": "object",
744
+ "required": [
745
+ "name"
746
+ ],
747
+ "properties": {
748
+ "name": {
749
+ "$ref": "./common.schema.json#/$defs/Identifier"
750
+ },
751
+ "description": {
752
+ "$ref": "./common.schema.json#/$defs/Description"
753
+ },
754
+ "direction": {
755
+ "type": "string",
756
+ "description": "Direction of message flow on this channel.",
757
+ "enum": [
758
+ "publish",
759
+ "subscribe",
760
+ "both"
761
+ ],
762
+ "default": "both"
763
+ },
764
+ "messages": {
765
+ "type": "array",
766
+ "description": "Messages that may be sent or received on this channel.",
767
+ "items": {
768
+ "$ref": "#/$defs/Message"
769
+ }
770
+ },
771
+ "security": {
772
+ "type": "array",
773
+ "description": "Security requirements for this channel. Each item represents an alternative set of named security schemes.",
774
+ "items": {
775
+ "$ref": "#/$defs/SecurityRequirement"
776
+ }
777
+ },
778
+ "extensions": {
779
+ "type": "object",
780
+ "description": "Custom vendor-specific extensions (x-*) for this channel.",
781
+ "additionalProperties": true
782
+ }
783
+ },
784
+ "additionalProperties": false
785
+ }
786
+ },
787
+ "properties": {
788
+ "channels": {
789
+ "type": "array",
790
+ "description": "WebSocket channels/topics exposed by the service.",
791
+ "items": {
792
+ "$ref": "#/$defs/Channel"
793
+ }
794
+ },
795
+ "securitySchemes": {
796
+ "type": "object",
797
+ "description": "Authentication mechanisms available for this WebSocket surface.",
798
+ "additionalProperties": {
799
+ "type": "object",
800
+ "description": "Security scheme definition (shape is intentionally flexible and may evolve).",
801
+ "additionalProperties": true
802
+ }
803
+ }
804
+ },
805
+ "additionalProperties": false
806
+ }
807
+ ]
808
+ };
809
+ export const SCHEMA_IDS = [
810
+ "https://unispec.dev/schema/types/common.schema.json",
811
+ "https://unispec.dev/schema/types/graphql.schema.json",
812
+ "https://unispec.dev/schema/types/rest.schema.json",
813
+ "https://unispec.dev/schema/types/schemas.schema.json",
814
+ "https://unispec.dev/schema/types/service.schema.json",
815
+ "https://unispec.dev/schema/types/websocket.schema.json"
816
+ ];