@redocly/openapi-core 2.37.0 → 2.39.0
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/lib/types/asyncapi-bindings.d.ts +8 -0
- package/lib/types/asyncapi-bindings.d.ts.map +1 -0
- package/lib/types/asyncapi-bindings.js +949 -0
- package/lib/types/asyncapi-bindings.js.map +1 -0
- package/lib/types/asyncapi2.d.ts +0 -1
- package/lib/types/asyncapi2.d.ts.map +1 -1
- package/lib/types/asyncapi2.js +2 -605
- package/lib/types/asyncapi2.js.map +1 -1
- package/lib/types/asyncapi3.d.ts.map +1 -1
- package/lib/types/asyncapi3.js +36 -4
- package/lib/types/asyncapi3.js.map +1 -1
- package/package.json +2 -2
package/lib/types/asyncapi2.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AsyncApiBindings } from './asyncapi-bindings.js';
|
|
1
2
|
import { listOf, mapOf } from './index.js';
|
|
2
3
|
import { Dependencies, Discriminator, DiscriminatorMapping, Schema, SchemaProperties, } from './json-schema-draft7.shared.js';
|
|
3
4
|
const Root = {
|
|
@@ -39,35 +40,6 @@ const ChannelMap = {
|
|
|
39
40
|
properties: {},
|
|
40
41
|
additionalProperties: 'Channel',
|
|
41
42
|
};
|
|
42
|
-
const ChannelBindings = {
|
|
43
|
-
properties: {},
|
|
44
|
-
allowed() {
|
|
45
|
-
// allow all supported values, not all have deep linting
|
|
46
|
-
return [
|
|
47
|
-
'http',
|
|
48
|
-
'ws',
|
|
49
|
-
'kafka',
|
|
50
|
-
'anypointmq',
|
|
51
|
-
'amqp',
|
|
52
|
-
'amqp1',
|
|
53
|
-
'mqtt',
|
|
54
|
-
'mqtt5',
|
|
55
|
-
'nats',
|
|
56
|
-
'jms',
|
|
57
|
-
'sns',
|
|
58
|
-
'solace',
|
|
59
|
-
'sqs',
|
|
60
|
-
'stomp',
|
|
61
|
-
'redis',
|
|
62
|
-
'mercure',
|
|
63
|
-
'ibmmq',
|
|
64
|
-
'googlepubsub',
|
|
65
|
-
'pulsar',
|
|
66
|
-
];
|
|
67
|
-
},
|
|
68
|
-
additionalProperties: { type: 'object' },
|
|
69
|
-
description: 'Map describing protocol-specific definitions for a channel.',
|
|
70
|
-
};
|
|
71
43
|
export const Tag = {
|
|
72
44
|
properties: {
|
|
73
45
|
name: { type: 'string', description: 'REQUIRED. The name of the tag.' },
|
|
@@ -99,35 +71,6 @@ const SecurityRequirement = {
|
|
|
99
71
|
additionalProperties: { type: 'array', items: { type: 'string' } },
|
|
100
72
|
description: 'Lists the required security schemes to execute this operation. The name used for each property MUST correspond to a security scheme declared in the Security Schemes under the Components Object.',
|
|
101
73
|
};
|
|
102
|
-
const ServerBindings = {
|
|
103
|
-
properties: {},
|
|
104
|
-
allowed() {
|
|
105
|
-
// allow all supported values, not all have deep linting
|
|
106
|
-
return [
|
|
107
|
-
'http',
|
|
108
|
-
'ws',
|
|
109
|
-
'kafka',
|
|
110
|
-
'anypointmq',
|
|
111
|
-
'amqp',
|
|
112
|
-
'amqp1',
|
|
113
|
-
'mqtt',
|
|
114
|
-
'mqtt5',
|
|
115
|
-
'nats',
|
|
116
|
-
'jms',
|
|
117
|
-
'sns',
|
|
118
|
-
'solace',
|
|
119
|
-
'sqs',
|
|
120
|
-
'stomp',
|
|
121
|
-
'redis',
|
|
122
|
-
'mercure',
|
|
123
|
-
'ibmmq',
|
|
124
|
-
'googlepubsub',
|
|
125
|
-
'pulsar',
|
|
126
|
-
];
|
|
127
|
-
},
|
|
128
|
-
additionalProperties: { type: 'object' },
|
|
129
|
-
description: 'Map describing protocol-specific definitions for a server.',
|
|
130
|
-
};
|
|
131
74
|
const Server = {
|
|
132
75
|
properties: {
|
|
133
76
|
url: {
|
|
@@ -309,64 +252,6 @@ const Message = {
|
|
|
309
252
|
additionalProperties: {},
|
|
310
253
|
description: 'Describes a message received on a given channel and operation.',
|
|
311
254
|
};
|
|
312
|
-
const MessageBindings = {
|
|
313
|
-
properties: {},
|
|
314
|
-
allowed() {
|
|
315
|
-
// allow all supported values, not all have deep linting
|
|
316
|
-
return [
|
|
317
|
-
'http',
|
|
318
|
-
'ws',
|
|
319
|
-
'kafka',
|
|
320
|
-
'anypointmq',
|
|
321
|
-
'amqp',
|
|
322
|
-
'amqp1',
|
|
323
|
-
'mqtt',
|
|
324
|
-
'mqtt5',
|
|
325
|
-
'nats',
|
|
326
|
-
'jms',
|
|
327
|
-
'sns',
|
|
328
|
-
'solace',
|
|
329
|
-
'sqs',
|
|
330
|
-
'stomp',
|
|
331
|
-
'redis',
|
|
332
|
-
'mercure',
|
|
333
|
-
'ibmmq',
|
|
334
|
-
'googlepubsub',
|
|
335
|
-
'pulsar',
|
|
336
|
-
];
|
|
337
|
-
},
|
|
338
|
-
additionalProperties: { type: 'object' },
|
|
339
|
-
description: 'Map describing protocol-specific definitions for a message.',
|
|
340
|
-
};
|
|
341
|
-
const OperationBindings = {
|
|
342
|
-
properties: {},
|
|
343
|
-
allowed() {
|
|
344
|
-
// allow all supported values, not all have deep linting
|
|
345
|
-
return [
|
|
346
|
-
'http',
|
|
347
|
-
'ws',
|
|
348
|
-
'kafka',
|
|
349
|
-
'anypointmq',
|
|
350
|
-
'amqp',
|
|
351
|
-
'amqp1',
|
|
352
|
-
'mqtt',
|
|
353
|
-
'mqtt5',
|
|
354
|
-
'nats',
|
|
355
|
-
'jms',
|
|
356
|
-
'sns',
|
|
357
|
-
'solace',
|
|
358
|
-
'sqs',
|
|
359
|
-
'stomp',
|
|
360
|
-
'redis',
|
|
361
|
-
'mercure',
|
|
362
|
-
'ibmmq',
|
|
363
|
-
'googlepubsub',
|
|
364
|
-
'pulsar',
|
|
365
|
-
];
|
|
366
|
-
},
|
|
367
|
-
additionalProperties: { type: 'object' },
|
|
368
|
-
description: 'Map describing protocol-specific definitions for an operation.',
|
|
369
|
-
};
|
|
370
255
|
const OperationTrait = {
|
|
371
256
|
properties: {
|
|
372
257
|
tags: 'TagList',
|
|
@@ -618,494 +503,8 @@ const SecurityScheme = {
|
|
|
618
503
|
extensionsPrefix: 'x-',
|
|
619
504
|
description: 'Defines a security scheme that can be used by the operations.',
|
|
620
505
|
};
|
|
621
|
-
// --- Per-protocol node types
|
|
622
|
-
// http
|
|
623
|
-
const HttpChannelBinding = {
|
|
624
|
-
properties: {}, // empty object
|
|
625
|
-
description: 'Protocol-specific information for an HTTP channel.',
|
|
626
|
-
};
|
|
627
|
-
ChannelBindings.properties.http = HttpChannelBinding;
|
|
628
|
-
const HttpServerBinding = {
|
|
629
|
-
properties: {}, // empty object
|
|
630
|
-
description: 'Protocol-specific information for an HTTP server.',
|
|
631
|
-
};
|
|
632
|
-
ServerBindings.properties.http = HttpServerBinding;
|
|
633
|
-
const HttpMessageBinding = {
|
|
634
|
-
properties: {
|
|
635
|
-
headers: 'Schema',
|
|
636
|
-
bindingVersion: { type: 'string' },
|
|
637
|
-
},
|
|
638
|
-
description: 'Protocol-specific information for an HTTP message, i.e., a request or a response.',
|
|
639
|
-
};
|
|
640
|
-
MessageBindings.properties.http = HttpMessageBinding;
|
|
641
|
-
const HttpOperationBinding = {
|
|
642
|
-
properties: {
|
|
643
|
-
type: { type: 'string' },
|
|
644
|
-
method: {
|
|
645
|
-
type: 'string',
|
|
646
|
-
enum: ['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'HEAD', 'OPTIONS', 'CONNECT', 'TRACE'],
|
|
647
|
-
},
|
|
648
|
-
headers: 'Schema',
|
|
649
|
-
bindingVersion: { type: 'string' },
|
|
650
|
-
},
|
|
651
|
-
description: 'Protocol-specific information for an HTTP operation.',
|
|
652
|
-
};
|
|
653
|
-
OperationBindings.properties.http = HttpOperationBinding;
|
|
654
|
-
// ws
|
|
655
|
-
const WsChannelBinding = {
|
|
656
|
-
properties: {
|
|
657
|
-
method: { type: 'string' },
|
|
658
|
-
query: 'Schema',
|
|
659
|
-
headers: 'Schema',
|
|
660
|
-
bindingVersion: { type: 'string' },
|
|
661
|
-
},
|
|
662
|
-
description: 'Protocol-specific information for a WebSockets channel.',
|
|
663
|
-
};
|
|
664
|
-
ChannelBindings.properties.ws = WsChannelBinding;
|
|
665
|
-
const WsServerBinding = {
|
|
666
|
-
properties: {}, // empty object
|
|
667
|
-
description: 'Protocol-specific information for a WebSockets server.',
|
|
668
|
-
};
|
|
669
|
-
ServerBindings.properties.ws = WsServerBinding;
|
|
670
|
-
const WsMessageBinding = {
|
|
671
|
-
properties: {}, // empty object
|
|
672
|
-
description: 'Protocol-specific information for a WebSockets message.',
|
|
673
|
-
};
|
|
674
|
-
MessageBindings.properties.ws = WsMessageBinding;
|
|
675
|
-
const WsOperationBinding = {
|
|
676
|
-
properties: {}, // empty object
|
|
677
|
-
description: 'Protocol-specific information for a WebSockets operation.',
|
|
678
|
-
};
|
|
679
|
-
OperationBindings.properties.ws = WsOperationBinding;
|
|
680
|
-
// kafka
|
|
681
|
-
const KafkaTopicConfiguration = {
|
|
682
|
-
properties: {
|
|
683
|
-
'cleanup.policy': { type: 'array', items: { enum: ['delete', 'compact'] } },
|
|
684
|
-
'retention.ms': { type: 'integer' },
|
|
685
|
-
'retention.bytes': { type: 'integer' },
|
|
686
|
-
'delete.retention.ms': { type: 'integer' },
|
|
687
|
-
'max.message.bytes': { type: 'integer' },
|
|
688
|
-
},
|
|
689
|
-
};
|
|
690
|
-
const KafkaChannelBinding = {
|
|
691
|
-
properties: {
|
|
692
|
-
topic: { type: 'string' },
|
|
693
|
-
partitions: { type: 'integer' },
|
|
694
|
-
replicas: { type: 'integer' },
|
|
695
|
-
topicConfiguration: 'KafkaTopicConfiguration',
|
|
696
|
-
bindingVersion: { type: 'string' },
|
|
697
|
-
},
|
|
698
|
-
description: 'Protocol-specific information for a Kafka channel.',
|
|
699
|
-
};
|
|
700
|
-
ChannelBindings.properties.kafka = KafkaChannelBinding;
|
|
701
|
-
const KafkaServerBinding = {
|
|
702
|
-
properties: {}, // empty object
|
|
703
|
-
description: 'Protocol-specific information for a Kafka server.',
|
|
704
|
-
};
|
|
705
|
-
ServerBindings.properties.kafka = KafkaServerBinding;
|
|
706
|
-
const KafkaMessageBinding = {
|
|
707
|
-
properties: {
|
|
708
|
-
key: 'Schema', // TODO: add avro support
|
|
709
|
-
schemaIdLocation: { type: 'string' },
|
|
710
|
-
schemaIdPayloadEncoding: { type: 'string' },
|
|
711
|
-
schemaLookupStrategy: { type: 'string' },
|
|
712
|
-
bindingVersion: { type: 'string' },
|
|
713
|
-
},
|
|
714
|
-
description: 'Protocol-specific information for a Kafka message.',
|
|
715
|
-
};
|
|
716
|
-
MessageBindings.properties.kafka = KafkaMessageBinding;
|
|
717
|
-
const KafkaOperationBinding = {
|
|
718
|
-
properties: {
|
|
719
|
-
groupId: 'Schema',
|
|
720
|
-
clientId: 'Schema',
|
|
721
|
-
bindingVersion: { type: 'string' },
|
|
722
|
-
},
|
|
723
|
-
description: 'Protocol-specific information for a Kafka operation.',
|
|
724
|
-
};
|
|
725
|
-
OperationBindings.properties.kafka = KafkaOperationBinding;
|
|
726
|
-
// anypointmq
|
|
727
|
-
const AnypointmqChannelBinding = {
|
|
728
|
-
properties: {
|
|
729
|
-
destination: { type: 'string' },
|
|
730
|
-
destinationType: { type: 'string' },
|
|
731
|
-
bindingVersion: { type: 'string' },
|
|
732
|
-
},
|
|
733
|
-
description: 'Protocol-specific information for an Anypoint MQ channel.',
|
|
734
|
-
};
|
|
735
|
-
ChannelBindings.properties.anypointmq = AnypointmqChannelBinding;
|
|
736
|
-
const AnypointmqServerBinding = {
|
|
737
|
-
properties: {}, // empty object
|
|
738
|
-
description: 'Protocol-specific information for an Anypoint MQ server.',
|
|
739
|
-
};
|
|
740
|
-
ServerBindings.properties.anypointmq = AnypointmqServerBinding;
|
|
741
|
-
const AnypointmqMessageBinding = {
|
|
742
|
-
properties: {
|
|
743
|
-
headers: 'Schema',
|
|
744
|
-
bindingVersion: { type: 'string' },
|
|
745
|
-
},
|
|
746
|
-
description: 'Protocol-specific information for an Anypoint MQ message.',
|
|
747
|
-
};
|
|
748
|
-
MessageBindings.properties.anypointmq = AnypointmqMessageBinding;
|
|
749
|
-
const AnypointmqOperationBinding = {
|
|
750
|
-
properties: {}, // empty object
|
|
751
|
-
description: 'Protocol-specific information for an Anypoint MQ operation.',
|
|
752
|
-
};
|
|
753
|
-
OperationBindings.properties.anypointmq = AnypointmqOperationBinding;
|
|
754
|
-
// amqp
|
|
755
|
-
const AmqpChannelBinding = {
|
|
756
|
-
properties: {}, // empty object
|
|
757
|
-
description: 'Protocol-specific information for an AMQP 0-9-1 channel.',
|
|
758
|
-
};
|
|
759
|
-
ChannelBindings.properties.amqp = AmqpChannelBinding;
|
|
760
|
-
const AmqpServerBinding = {
|
|
761
|
-
properties: {}, // empty object
|
|
762
|
-
description: 'Protocol-specific information for an AMQP 0-9-1 server.',
|
|
763
|
-
};
|
|
764
|
-
ServerBindings.properties.amqp = AmqpServerBinding;
|
|
765
|
-
const AmqpMessageBinding = {
|
|
766
|
-
properties: {
|
|
767
|
-
contentEncoding: { type: 'string' },
|
|
768
|
-
messageType: { type: 'string' },
|
|
769
|
-
bindingVersion: { type: 'string' },
|
|
770
|
-
},
|
|
771
|
-
description: 'Protocol-specific information for an AMQP 0-9-1 message.',
|
|
772
|
-
};
|
|
773
|
-
MessageBindings.properties.amqp = AmqpMessageBinding;
|
|
774
|
-
const AmqpOperationBinding = {
|
|
775
|
-
// TODO: some fields are subscribe only
|
|
776
|
-
properties: {
|
|
777
|
-
expiration: { type: 'integer' },
|
|
778
|
-
userId: { type: 'string' },
|
|
779
|
-
cc: { type: 'array', items: { type: 'string' } },
|
|
780
|
-
priority: { type: 'integer' },
|
|
781
|
-
deliveryMode: { type: 'integer' }, // TODO: enum: [1, 2]
|
|
782
|
-
mandatory: { type: 'boolean' },
|
|
783
|
-
bcc: { type: 'array', items: { type: 'string' } },
|
|
784
|
-
replyTo: { type: 'string' },
|
|
785
|
-
timestamp: { type: 'boolean' },
|
|
786
|
-
ack: { type: 'boolean' },
|
|
787
|
-
bindingVersion: { type: 'string' },
|
|
788
|
-
},
|
|
789
|
-
description: 'Protocol-specific information for an AMQP 0-9-1 operation.',
|
|
790
|
-
};
|
|
791
|
-
OperationBindings.properties.amqp = AmqpOperationBinding;
|
|
792
|
-
// amqp1
|
|
793
|
-
const Amqp1ChannelBinding = {
|
|
794
|
-
properties: {}, // empty object
|
|
795
|
-
description: 'Protocol-specific information for an AMQP 1.0 channel.',
|
|
796
|
-
};
|
|
797
|
-
ChannelBindings.properties.amqp1 = Amqp1ChannelBinding;
|
|
798
|
-
const Amqp1ServerBinding = {
|
|
799
|
-
properties: {}, // empty object
|
|
800
|
-
description: 'Protocol-specific information for an AMQP 1.0 server.',
|
|
801
|
-
};
|
|
802
|
-
ServerBindings.properties.amqp1 = Amqp1ServerBinding;
|
|
803
|
-
const Amqp1MessageBinding = {
|
|
804
|
-
properties: {}, // empty object
|
|
805
|
-
description: 'Binding Protocol-specific information for an AMQP 1.0 message.',
|
|
806
|
-
};
|
|
807
|
-
MessageBindings.properties.amqp1 = Amqp1MessageBinding;
|
|
808
|
-
const Amqp1OperationBinding = {
|
|
809
|
-
properties: {}, // empty object,
|
|
810
|
-
description: 'Protocol-specific information for an AMQP 1.0 operation.',
|
|
811
|
-
};
|
|
812
|
-
OperationBindings.properties.amqp1 = Amqp1OperationBinding;
|
|
813
|
-
// mqtt
|
|
814
|
-
const MqttChannelBinding = {
|
|
815
|
-
properties: {
|
|
816
|
-
qos: { type: 'integer' },
|
|
817
|
-
retain: { type: 'boolean' },
|
|
818
|
-
bindingVersion: { type: 'string' },
|
|
819
|
-
},
|
|
820
|
-
description: 'Protocol-specific information for an MQTT channel.',
|
|
821
|
-
};
|
|
822
|
-
ChannelBindings.properties.mqtt = MqttChannelBinding;
|
|
823
|
-
const MqttServerBindingLastWill = {
|
|
824
|
-
properties: {
|
|
825
|
-
topic: { type: 'string' },
|
|
826
|
-
qos: { type: 'integer' },
|
|
827
|
-
message: { type: 'string' },
|
|
828
|
-
retain: { type: 'boolean' },
|
|
829
|
-
},
|
|
830
|
-
};
|
|
831
|
-
const MqttServerBinding = {
|
|
832
|
-
properties: {
|
|
833
|
-
clientId: { type: 'string' },
|
|
834
|
-
cleanSession: { type: 'boolean' },
|
|
835
|
-
lastWill: 'MqttServerBindingLastWill',
|
|
836
|
-
keepAlive: { type: 'integer' },
|
|
837
|
-
bindingVersion: { type: 'string' },
|
|
838
|
-
},
|
|
839
|
-
description: 'Protocol-specific information for an MQTT server.',
|
|
840
|
-
};
|
|
841
|
-
ServerBindings.properties.mqtt = MqttServerBinding;
|
|
842
|
-
const MqttMessageBinding = {
|
|
843
|
-
properties: {
|
|
844
|
-
bindingVersion: { type: 'string' },
|
|
845
|
-
},
|
|
846
|
-
description: 'Protocol-specific information for an MQTT message.',
|
|
847
|
-
};
|
|
848
|
-
MessageBindings.properties.mqtt = MqttMessageBinding;
|
|
849
|
-
const MqttOperationBinding = {
|
|
850
|
-
properties: {
|
|
851
|
-
qos: { type: 'integer' },
|
|
852
|
-
retain: { type: 'boolean' },
|
|
853
|
-
bindingVersion: { type: 'string' },
|
|
854
|
-
},
|
|
855
|
-
description: 'Protocol-specific information for an MQTT operation.',
|
|
856
|
-
};
|
|
857
|
-
OperationBindings.properties.mqtt = MqttOperationBinding;
|
|
858
|
-
// mqtt5
|
|
859
|
-
const Mqtt5ChannelBinding = {
|
|
860
|
-
properties: {}, // empty object
|
|
861
|
-
description: 'Protocol-specific information for an MQTT 5 channel.',
|
|
862
|
-
};
|
|
863
|
-
ChannelBindings.properties.mqtt5 = Mqtt5ChannelBinding;
|
|
864
|
-
const Mqtt5ServerBinding = {
|
|
865
|
-
properties: {}, // empty object
|
|
866
|
-
description: 'Protocol-specific information for an MQTT 5 server.',
|
|
867
|
-
};
|
|
868
|
-
ServerBindings.properties.mqtt5 = Mqtt5ServerBinding;
|
|
869
|
-
const Mqtt5MessageBinding = {
|
|
870
|
-
properties: {}, // empty object
|
|
871
|
-
description: 'Protocol-specific information for an MQTT 5 message.',
|
|
872
|
-
};
|
|
873
|
-
MessageBindings.properties.mqtt5 = Mqtt5MessageBinding;
|
|
874
|
-
const Mqtt5OperationBinding = {
|
|
875
|
-
properties: {}, // empty object
|
|
876
|
-
description: 'Protocol-specific information for an MQTT 5 operation.',
|
|
877
|
-
};
|
|
878
|
-
OperationBindings.properties.mqtt5 = Mqtt5OperationBinding;
|
|
879
|
-
// nats
|
|
880
|
-
const NatsChannelBinding = {
|
|
881
|
-
properties: {}, // empty object
|
|
882
|
-
description: 'Protocol-specific information for a NATS channel.',
|
|
883
|
-
};
|
|
884
|
-
ChannelBindings.properties.nats = NatsChannelBinding;
|
|
885
|
-
const NatsServerBinding = {
|
|
886
|
-
properties: {}, // empty object
|
|
887
|
-
description: 'Protocol-specific information for a NATS server.',
|
|
888
|
-
};
|
|
889
|
-
ServerBindings.properties.nats = NatsServerBinding;
|
|
890
|
-
const NatsMessageBinding = {
|
|
891
|
-
properties: {}, // empty object
|
|
892
|
-
description: 'Protocol-specific information for a NATS message.',
|
|
893
|
-
};
|
|
894
|
-
MessageBindings.properties.nats = NatsMessageBinding;
|
|
895
|
-
const NatsOperationBinding = {
|
|
896
|
-
properties: {
|
|
897
|
-
queue: { type: 'string' },
|
|
898
|
-
bindingVersion: { type: 'string' },
|
|
899
|
-
},
|
|
900
|
-
description: 'Protocol-specific information for a NATS operation.',
|
|
901
|
-
};
|
|
902
|
-
OperationBindings.properties.nats = NatsOperationBinding;
|
|
903
|
-
// jms
|
|
904
|
-
const JmsChannelBinding = {
|
|
905
|
-
properties: {
|
|
906
|
-
destination: { type: 'string' },
|
|
907
|
-
destinationType: { type: 'string' },
|
|
908
|
-
bindingVersion: { type: 'string' },
|
|
909
|
-
},
|
|
910
|
-
description: 'Protocol-specific information for a JMS channel.',
|
|
911
|
-
};
|
|
912
|
-
ChannelBindings.properties.jms = JmsChannelBinding;
|
|
913
|
-
const JmsServerBinding = {
|
|
914
|
-
properties: {}, // empty object
|
|
915
|
-
description: 'Protocol-specific information for a JMS server.',
|
|
916
|
-
};
|
|
917
|
-
ServerBindings.properties.jms = JmsServerBinding;
|
|
918
|
-
const JmsMessageBinding = {
|
|
919
|
-
properties: {
|
|
920
|
-
headers: 'Schema',
|
|
921
|
-
bindingVersion: { type: 'string' },
|
|
922
|
-
},
|
|
923
|
-
description: 'Protocol-specific information for a JMS message.',
|
|
924
|
-
};
|
|
925
|
-
MessageBindings.properties.jms = JmsMessageBinding;
|
|
926
|
-
const JmsOperationBinding = {
|
|
927
|
-
properties: {
|
|
928
|
-
headers: 'Schema',
|
|
929
|
-
bindingVersion: { type: 'string' },
|
|
930
|
-
},
|
|
931
|
-
description: 'Protocol-specific information for a JMS operation.',
|
|
932
|
-
};
|
|
933
|
-
OperationBindings.properties.jms = JmsOperationBinding;
|
|
934
|
-
// sns
|
|
935
|
-
// solace
|
|
936
|
-
const SolaceChannelBinding = {
|
|
937
|
-
properties: {}, // empty object
|
|
938
|
-
description: 'Protocol-specific information for a Solace channel.',
|
|
939
|
-
};
|
|
940
|
-
ChannelBindings.properties.solace = SolaceChannelBinding;
|
|
941
|
-
const SolaceServerBinding = {
|
|
942
|
-
properties: {
|
|
943
|
-
bindingVersion: { type: 'string' },
|
|
944
|
-
msgVpn: { type: 'string' },
|
|
945
|
-
},
|
|
946
|
-
description: 'Protocol-specific information for a Solace message.',
|
|
947
|
-
};
|
|
948
|
-
ServerBindings.properties.solace = SolaceServerBinding;
|
|
949
|
-
const SolaceMessageBinding = {
|
|
950
|
-
properties: {}, // empty object
|
|
951
|
-
description: 'Protocol-specific information for a Solace message.',
|
|
952
|
-
};
|
|
953
|
-
MessageBindings.properties.solace = SolaceMessageBinding;
|
|
954
|
-
const SolaceDestination = {
|
|
955
|
-
properties: {
|
|
956
|
-
destinationType: { type: 'string', enum: ['queue', 'topic'] },
|
|
957
|
-
deliveryMode: { type: 'string', enum: ['direct', 'persistent'] },
|
|
958
|
-
'queue.name': { type: 'string' },
|
|
959
|
-
'queue.topicSubscriptions': { type: 'array', items: { type: 'string' } },
|
|
960
|
-
'queue.accessType': { type: 'string', enum: ['exclusive', 'nonexclusive'] },
|
|
961
|
-
'queue.maxMsgSpoolSize': { type: 'string' },
|
|
962
|
-
'queue.maxTtl': { type: 'string' },
|
|
963
|
-
'topic.topicSubscriptions': { type: 'array', items: { type: 'string' } },
|
|
964
|
-
},
|
|
965
|
-
};
|
|
966
|
-
const SolaceOperationBinding = {
|
|
967
|
-
properties: {
|
|
968
|
-
bindingVersion: { type: 'string' },
|
|
969
|
-
destinations: listOf('SolaceDestination'),
|
|
970
|
-
},
|
|
971
|
-
description: 'Protocol-specific information for a Solace operation.',
|
|
972
|
-
};
|
|
973
|
-
OperationBindings.properties.solace = SolaceOperationBinding;
|
|
974
|
-
// sqs
|
|
975
|
-
// stomp
|
|
976
|
-
const StompChannelBinding = {
|
|
977
|
-
properties: {}, // empty object
|
|
978
|
-
description: 'Protocol-specific information for a STOMP channel.',
|
|
979
|
-
};
|
|
980
|
-
ChannelBindings.properties.stomp = StompChannelBinding;
|
|
981
|
-
const StompServerBinding = {
|
|
982
|
-
properties: {}, // empty object
|
|
983
|
-
description: 'Protocol-specific information for a STOMP server.',
|
|
984
|
-
};
|
|
985
|
-
ServerBindings.properties.stomp = StompServerBinding;
|
|
986
|
-
const StompMessageBinding = {
|
|
987
|
-
properties: {}, // empty object
|
|
988
|
-
description: 'Protocol-specific information for a STOMP message.',
|
|
989
|
-
};
|
|
990
|
-
MessageBindings.properties.stomp = StompMessageBinding;
|
|
991
|
-
const StompOperationBinding = {
|
|
992
|
-
properties: {}, // empty object
|
|
993
|
-
description: 'Protocol-specific information for a STOMP operation.',
|
|
994
|
-
};
|
|
995
|
-
OperationBindings.properties.stomp = StompOperationBinding;
|
|
996
|
-
// redis
|
|
997
|
-
const RedisChannelBinding = {
|
|
998
|
-
properties: {}, // empty object
|
|
999
|
-
description: 'Protocol-specific information for a Redis channel.',
|
|
1000
|
-
};
|
|
1001
|
-
ChannelBindings.properties.redis = RedisChannelBinding;
|
|
1002
|
-
const RedisServerBinding = {
|
|
1003
|
-
properties: {}, // empty object
|
|
1004
|
-
description: 'Protocol-specific information for a Redis server.',
|
|
1005
|
-
};
|
|
1006
|
-
ServerBindings.properties.redis = RedisServerBinding;
|
|
1007
|
-
const RedisMessageBinding = {
|
|
1008
|
-
properties: {}, // empty object
|
|
1009
|
-
description: 'Protocol-specific information for a Redis message.',
|
|
1010
|
-
};
|
|
1011
|
-
MessageBindings.properties.redis = RedisMessageBinding;
|
|
1012
|
-
const RedisOperationBinding = {
|
|
1013
|
-
properties: {}, // empty object
|
|
1014
|
-
description: 'Protocol-specific information for a Redis operation.',
|
|
1015
|
-
};
|
|
1016
|
-
OperationBindings.properties.redis = RedisOperationBinding;
|
|
1017
|
-
// mercure
|
|
1018
|
-
const MercureChannelBinding = {
|
|
1019
|
-
properties: {}, // empty object
|
|
1020
|
-
description: 'Protocol-specific information for a Mercure channel.',
|
|
1021
|
-
};
|
|
1022
|
-
ChannelBindings.properties.mercure = MercureChannelBinding;
|
|
1023
|
-
const MercureServerBinding = {
|
|
1024
|
-
properties: {}, // empty object
|
|
1025
|
-
description: 'Protocol-specific information for a Mercure server.',
|
|
1026
|
-
};
|
|
1027
|
-
ServerBindings.properties.mercure = MercureServerBinding;
|
|
1028
|
-
const MercureMessageBinding = {
|
|
1029
|
-
properties: {}, // empty object
|
|
1030
|
-
description: 'Protocol-specific information for a Mercure message.',
|
|
1031
|
-
};
|
|
1032
|
-
MessageBindings.properties.mercure = MercureMessageBinding;
|
|
1033
|
-
const MercureOperationBinding = {
|
|
1034
|
-
properties: {}, // empty object
|
|
1035
|
-
description: 'Protocol-specific information for a Mercure operation.',
|
|
1036
|
-
};
|
|
1037
|
-
OperationBindings.properties.mercure = MercureOperationBinding;
|
|
1038
|
-
// ibmmq
|
|
1039
|
-
// googlepubsub
|
|
1040
|
-
// pulsar
|
|
1041
|
-
// --- End per-protocol node types
|
|
1042
|
-
export const AsyncApi2Bindings = {
|
|
1043
|
-
HttpServerBinding,
|
|
1044
|
-
HttpChannelBinding,
|
|
1045
|
-
HttpMessageBinding,
|
|
1046
|
-
HttpOperationBinding,
|
|
1047
|
-
WsServerBinding,
|
|
1048
|
-
WsChannelBinding,
|
|
1049
|
-
WsMessageBinding,
|
|
1050
|
-
WsOperationBinding,
|
|
1051
|
-
KafkaServerBinding,
|
|
1052
|
-
KafkaTopicConfiguration,
|
|
1053
|
-
KafkaChannelBinding,
|
|
1054
|
-
KafkaMessageBinding,
|
|
1055
|
-
KafkaOperationBinding,
|
|
1056
|
-
AnypointmqServerBinding,
|
|
1057
|
-
AnypointmqChannelBinding,
|
|
1058
|
-
AnypointmqMessageBinding,
|
|
1059
|
-
AnypointmqOperationBinding,
|
|
1060
|
-
AmqpServerBinding,
|
|
1061
|
-
AmqpChannelBinding,
|
|
1062
|
-
AmqpMessageBinding,
|
|
1063
|
-
AmqpOperationBinding,
|
|
1064
|
-
Amqp1ServerBinding,
|
|
1065
|
-
Amqp1ChannelBinding,
|
|
1066
|
-
Amqp1MessageBinding,
|
|
1067
|
-
Amqp1OperationBinding,
|
|
1068
|
-
MqttServerBindingLastWill,
|
|
1069
|
-
MqttServerBinding,
|
|
1070
|
-
MqttChannelBinding,
|
|
1071
|
-
MqttMessageBinding,
|
|
1072
|
-
MqttOperationBinding,
|
|
1073
|
-
Mqtt5ServerBinding,
|
|
1074
|
-
Mqtt5ChannelBinding,
|
|
1075
|
-
Mqtt5MessageBinding,
|
|
1076
|
-
Mqtt5OperationBinding,
|
|
1077
|
-
NatsServerBinding,
|
|
1078
|
-
NatsChannelBinding,
|
|
1079
|
-
NatsMessageBinding,
|
|
1080
|
-
NatsOperationBinding,
|
|
1081
|
-
JmsServerBinding,
|
|
1082
|
-
JmsChannelBinding,
|
|
1083
|
-
JmsMessageBinding,
|
|
1084
|
-
JmsOperationBinding,
|
|
1085
|
-
SolaceServerBinding,
|
|
1086
|
-
SolaceChannelBinding,
|
|
1087
|
-
SolaceMessageBinding,
|
|
1088
|
-
SolaceDestination,
|
|
1089
|
-
SolaceOperationBinding,
|
|
1090
|
-
StompServerBinding,
|
|
1091
|
-
StompChannelBinding,
|
|
1092
|
-
StompMessageBinding,
|
|
1093
|
-
StompOperationBinding,
|
|
1094
|
-
RedisServerBinding,
|
|
1095
|
-
RedisChannelBinding,
|
|
1096
|
-
RedisMessageBinding,
|
|
1097
|
-
RedisOperationBinding,
|
|
1098
|
-
MercureServerBinding,
|
|
1099
|
-
MercureChannelBinding,
|
|
1100
|
-
MercureMessageBinding,
|
|
1101
|
-
MercureOperationBinding,
|
|
1102
|
-
ServerBindings,
|
|
1103
|
-
ChannelBindings,
|
|
1104
|
-
MessageBindings,
|
|
1105
|
-
OperationBindings,
|
|
1106
|
-
};
|
|
1107
506
|
export const AsyncApi2Types = {
|
|
1108
|
-
...
|
|
507
|
+
...AsyncApiBindings,
|
|
1109
508
|
Root,
|
|
1110
509
|
Tag,
|
|
1111
510
|
TagList: listOf('Tag'),
|
|
@@ -1144,8 +543,6 @@ export const AsyncApi2Types = {
|
|
|
1144
543
|
SecuritySchemeFlows,
|
|
1145
544
|
SecurityScheme,
|
|
1146
545
|
Message,
|
|
1147
|
-
MessageBindings,
|
|
1148
|
-
OperationBindings,
|
|
1149
546
|
OperationTrait,
|
|
1150
547
|
OperationTraitList: listOf('OperationTrait'),
|
|
1151
548
|
MessageTrait,
|