-
-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathopenapi.yaml
More file actions
833 lines (833 loc) · 20.2 KB
/
openapi.yaml
File metadata and controls
833 lines (833 loc) · 20.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
components:
schemas:
Address:
type: string
CustomModule:
additionalProperties: false
properties:
innerType:
"$ref": "#/components/schemas/ModuleType"
json: {}
required:
- innerType
- json
type: object
DNSModule:
additionalProperties: false
properties:
domainName:
"$ref": "#/components/schemas/Address"
id:
"$ref": "#/components/schemas/UniqueID"
matchDomains:
items:
"$ref": "#/components/schemas/Address"
type: array
protocolType:
"$ref": "#/components/schemas/DNSModule.ProtocolType"
routesThroughVPN:
type: boolean
searchDomains:
items:
"$ref": "#/components/schemas/Address"
type: array
servers:
items:
"$ref": "#/components/schemas/Address"
type: array
required:
- id
- protocolType
- servers
type: object
DNSModule.ProtocolType:
discriminator:
mapping:
cleartext: "#/components/schemas/DNSModule.ProtocolType.cleartext"
https: "#/components/schemas/DNSModule.ProtocolType.https"
tls: "#/components/schemas/DNSModule.ProtocolType.tls"
propertyName: type
properties:
type:
type: string
required:
- type
type: object
DNSModule.ProtocolType.cleartext:
additionalProperties: false
allOf:
- "$ref": "#/components/schemas/DNSModule.ProtocolType"
properties:
type:
const: cleartext
type: string
required:
- type
type: object
DNSModule.ProtocolType.https:
additionalProperties: false
allOf:
- "$ref": "#/components/schemas/DNSModule.ProtocolType"
properties:
type:
const: https
type: string
url:
format: uri
type: string
required:
- type
- url
type: object
DNSModule.ProtocolType.tls:
additionalProperties: false
allOf:
- "$ref": "#/components/schemas/DNSModule.ProtocolType"
properties:
hostname:
type: string
type:
const: tls
type: string
required:
- type
- hostname
type: object
DNSProtocol:
enum:
- cleartext
- https
- tls
type: string
x-enum-varnames:
- cleartext
- https
- tls
Endpoint:
type: string
EndpointProtocol:
type: string
ExtendedEndpoint:
type: string
HTTPProxyModule:
additionalProperties: false
properties:
bypassDomains:
items:
"$ref": "#/components/schemas/Address"
type: array
id:
"$ref": "#/components/schemas/UniqueID"
pacURL:
format: uri
type: string
proxy:
"$ref": "#/components/schemas/Endpoint"
secureProxy:
"$ref": "#/components/schemas/Endpoint"
required:
- id
- bypassDomains
type: object
IPModule:
additionalProperties: false
properties:
id:
"$ref": "#/components/schemas/UniqueID"
ipv4:
"$ref": "#/components/schemas/IPSettings"
ipv6:
"$ref": "#/components/schemas/IPSettings"
mtu:
type: integer
required:
- id
type: object
IPSettings:
additionalProperties: false
properties:
excludedRoutes:
items:
"$ref": "#/components/schemas/Route"
type: array
includedRoutes:
items:
"$ref": "#/components/schemas/Route"
type: array
legacySingleSubnet:
"$ref": "#/components/schemas/Subnet"
subnets:
items:
"$ref": "#/components/schemas/Subnet"
type: array
required:
- subnets
- includedRoutes
- excludedRoutes
type: object
IPSocketType:
enum:
- UDP
- TCP
- UDP4
- TCP4
- UDP6
- TCP6
type: string
x-enum-varnames:
- udp
- tcp
- udp4
- tcp4
- udp6
- tcp6
Int16:
type: integer
Int32:
type: integer
Int64:
type: integer
Int8:
type: integer
ModuleType:
type: string
OnDemandModule:
additionalProperties: false
properties:
id:
"$ref": "#/components/schemas/UniqueID"
policy:
"$ref": "#/components/schemas/OnDemandModule.Policy"
withOtherNetworks:
items:
"$ref": "#/components/schemas/OnDemandModule.OtherNetwork"
type: array
uniqueItems: true
withSSIDs:
additionalProperties:
type: boolean
type: object
required:
- id
- policy
- withSSIDs
- withOtherNetworks
type: object
OnDemandModule.OtherNetwork:
enum:
- mobile
- ethernet
type: string
x-enum-varnames:
- mobile
- ethernet
OnDemandModule.Policy:
enum:
- any
- including
- excluding
type: string
x-enum-varnames:
- any
- including
- excluding
OpenVPN.Cipher:
enum:
- "AES-128-CBC"
- "AES-192-CBC"
- "AES-256-CBC"
- "AES-128-GCM"
- "AES-192-GCM"
- "AES-256-GCM"
type: string
x-enum-varnames:
- aes128cbc
- aes192cbc
- aes256cbc
- aes128gcm
- aes192gcm
- aes256gcm
OpenVPN.CompressionAlgorithm:
enum:
- 0
- 1
- 2
type: integer
x-enum-varnames:
- disabled
- LZO
- other
OpenVPN.CompressionFraming:
enum:
- 0
- 1
- 2
- 3
type: integer
x-enum-varnames:
- disabled
- compLZO
- compress
- compressV2
OpenVPN.Configuration:
additionalProperties: false
properties:
authToken:
type: string
authUserPass:
type: boolean
ca:
"$ref": "#/components/schemas/OpenVPN.CryptoContainer"
checksEKU:
type: boolean
checksSANHost:
type: boolean
cipher:
"$ref": "#/components/schemas/OpenVPN.Cipher"
clientCertificate:
"$ref": "#/components/schemas/OpenVPN.CryptoContainer"
clientKey:
"$ref": "#/components/schemas/OpenVPN.CryptoContainer"
compressionAlgorithm:
"$ref": "#/components/schemas/OpenVPN.CompressionAlgorithm"
compressionFraming:
"$ref": "#/components/schemas/OpenVPN.CompressionFraming"
dataCiphers:
items:
"$ref": "#/components/schemas/OpenVPN.Cipher"
type: array
digest:
"$ref": "#/components/schemas/OpenVPN.Digest"
dnsDomain:
type: string
dnsServers:
items:
type: string
type: array
httpProxy:
"$ref": "#/components/schemas/Endpoint"
httpsProxy:
"$ref": "#/components/schemas/Endpoint"
ipv4:
"$ref": "#/components/schemas/IPSettings"
ipv6:
"$ref": "#/components/schemas/IPSettings"
keepAliveInterval:
type: number
keepAliveTimeout:
type: number
mtu:
type: integer
noPullMask:
items:
"$ref": "#/components/schemas/OpenVPN.PullMask"
type: array
peerId:
"$ref": "#/components/schemas/UInt32"
proxyAutoConfigurationURL:
format: uri
type: string
proxyBypassDomains:
items:
type: string
type: array
randomizeEndpoint:
type: boolean
randomizeHostnames:
type: boolean
remotes:
items:
"$ref": "#/components/schemas/ExtendedEndpoint"
type: array
renegotiatesAfter:
type: number
routeGateway4:
"$ref": "#/components/schemas/Address"
routeGateway6:
"$ref": "#/components/schemas/Address"
routes4:
items:
"$ref": "#/components/schemas/Route"
type: array
routes6:
items:
"$ref": "#/components/schemas/Route"
type: array
routingPolicies:
items:
"$ref": "#/components/schemas/OpenVPN.RoutingPolicy"
type: array
sanHost:
type: string
searchDomains:
items:
type: string
type: array
staticChallenge:
type: boolean
tlsSecurityLevel:
type: integer
tlsWrap:
"$ref": "#/components/schemas/OpenVPN.TLSWrap"
usesPIAPatches:
type: boolean
xorMethod:
"$ref": "#/components/schemas/OpenVPN.ObfuscationMethod"
type: object
OpenVPN.Credentials:
additionalProperties: false
properties:
otp:
type: string
otpMethod:
"$ref": "#/components/schemas/OpenVPN.Credentials.OTPMethod"
password:
type: string
username:
type: string
required:
- username
- password
- otpMethod
type: object
OpenVPN.Credentials.OTPMethod:
enum:
- none
- append
- encode
type: string
x-enum-varnames:
- none
- append
- encode
OpenVPN.CryptoContainer:
additionalProperties: false
properties:
pem:
type: string
required:
- pem
type: object
OpenVPN.Digest:
enum:
- SHA1
- SHA224
- SHA256
- SHA384
- SHA512
type: string
x-enum-varnames:
- sha1
- sha224
- sha256
- sha384
- sha512
OpenVPN.ObfuscationMethod:
discriminator:
mapping:
obfuscate: "#/components/schemas/OpenVPN.ObfuscationMethod.obfuscate"
reverse: "#/components/schemas/OpenVPN.ObfuscationMethod.reverse"
xormask: "#/components/schemas/OpenVPN.ObfuscationMethod.xormask"
xorptrpos: "#/components/schemas/OpenVPN.ObfuscationMethod.xorptrpos"
propertyName: type
properties:
type:
type: string
required:
- type
type: object
OpenVPN.ObfuscationMethod.obfuscate:
additionalProperties: false
allOf:
- "$ref": "#/components/schemas/OpenVPN.ObfuscationMethod"
properties:
mask:
"$ref": "#/components/schemas/SecureData"
type:
const: obfuscate
type: string
required:
- type
- mask
type: object
OpenVPN.ObfuscationMethod.reverse:
additionalProperties: false
allOf:
- "$ref": "#/components/schemas/OpenVPN.ObfuscationMethod"
properties:
type:
const: reverse
type: string
required:
- type
type: object
OpenVPN.ObfuscationMethod.xormask:
additionalProperties: false
allOf:
- "$ref": "#/components/schemas/OpenVPN.ObfuscationMethod"
properties:
mask:
"$ref": "#/components/schemas/SecureData"
type:
const: xormask
type: string
required:
- type
- mask
type: object
OpenVPN.ObfuscationMethod.xorptrpos:
additionalProperties: false
allOf:
- "$ref": "#/components/schemas/OpenVPN.ObfuscationMethod"
properties:
type:
const: xorptrpos
type: string
required:
- type
type: object
OpenVPN.PullMask:
enum:
- routes
- dns
- proxy
type: string
x-enum-varnames:
- routes
- dns
- proxy
OpenVPN.RoutingPolicy:
enum:
- IPv4
- IPv6
- blockLocal
type: string
x-enum-varnames:
- IPv4
- IPv6
- blockLocal
OpenVPN.StaticKey:
additionalProperties: false
properties:
data:
"$ref": "#/components/schemas/SecureData"
dir:
"$ref": "#/components/schemas/OpenVPN.StaticKey.Direction"
required:
- data
type: object
OpenVPN.StaticKey.Direction:
enum:
- 0
- 1
type: integer
x-enum-varnames:
- server
- client
OpenVPN.TLSWrap:
additionalProperties: false
properties:
key:
"$ref": "#/components/schemas/OpenVPN.StaticKey"
strategy:
"$ref": "#/components/schemas/OpenVPN.TLSWrap.Strategy"
wrappedKey:
"$ref": "#/components/schemas/SecureData"
required:
- strategy
- key
type: object
OpenVPN.TLSWrap.Strategy:
enum:
- auth
- crypt
- "crypt-v2"
type: string
x-enum-varnames:
- auth
- crypt
- cryptV2
OpenVPNModule:
additionalProperties: false
properties:
configuration:
"$ref": "#/components/schemas/OpenVPN.Configuration"
credentials:
"$ref": "#/components/schemas/OpenVPN.Credentials"
id:
"$ref": "#/components/schemas/UniqueID"
requiresInteractiveCredentials:
type: boolean
required:
- id
type: object
ProfileBehavior:
additionalProperties: false
properties:
disconnectsOnSleep:
type: boolean
includesAllNetworks:
type: boolean
required:
- disconnectsOnSleep
type: object
Route:
additionalProperties: false
properties:
destination:
"$ref": "#/components/schemas/Subnet"
gateway:
"$ref": "#/components/schemas/Address"
type: object
SecureData:
type: string
SocketType:
enum:
- UDP
- TCP
type: string
x-enum-varnames:
- udp
- tcp
Subnet:
type: string
TaggedModule:
discriminator:
mapping:
Custom: "#/components/schemas/TaggedModule.Custom"
DNS: "#/components/schemas/TaggedModule.DNS"
HTTPProxy: "#/components/schemas/TaggedModule.HTTPProxy"
IP: "#/components/schemas/TaggedModule.IP"
OnDemand: "#/components/schemas/TaggedModule.OnDemand"
OpenVPN: "#/components/schemas/TaggedModule.OpenVPN"
WireGuard: "#/components/schemas/TaggedModule.WireGuard"
propertyName: type
properties:
type:
type: string
required:
- type
type: object
TaggedModule.Custom:
additionalProperties: false
allOf:
- "$ref": "#/components/schemas/TaggedModule"
properties:
type:
const: Custom
type: string
value:
"$ref": "#/components/schemas/CustomModule"
required:
- type
- value
type: object
TaggedModule.DNS:
additionalProperties: false
allOf:
- "$ref": "#/components/schemas/TaggedModule"
properties:
type:
const: DNS
type: string
value:
"$ref": "#/components/schemas/DNSModule"
required:
- type
- value
type: object
TaggedModule.HTTPProxy:
additionalProperties: false
allOf:
- "$ref": "#/components/schemas/TaggedModule"
properties:
type:
const: HTTPProxy
type: string
value:
"$ref": "#/components/schemas/HTTPProxyModule"
required:
- type
- value
type: object
TaggedModule.IP:
additionalProperties: false
allOf:
- "$ref": "#/components/schemas/TaggedModule"
properties:
type:
const: IP
type: string
value:
"$ref": "#/components/schemas/IPModule"
required:
- type
- value
type: object
TaggedModule.OnDemand:
additionalProperties: false
allOf:
- "$ref": "#/components/schemas/TaggedModule"
properties:
type:
const: OnDemand
type: string
value:
"$ref": "#/components/schemas/OnDemandModule"
required:
- type
- value
type: object
TaggedModule.OpenVPN:
additionalProperties: false
allOf:
- "$ref": "#/components/schemas/TaggedModule"
properties:
type:
const: OpenVPN
type: string
value:
"$ref": "#/components/schemas/OpenVPNModule"
required:
- type
- value
type: object
TaggedModule.WireGuard:
additionalProperties: false
allOf:
- "$ref": "#/components/schemas/TaggedModule"
properties:
type:
const: WireGuard
type: string
value:
"$ref": "#/components/schemas/WireGuardModule"
required:
- type
- value
type: object
TaggedProfile:
additionalProperties: false
properties:
activeModulesIds:
items:
"$ref": "#/components/schemas/UniqueID"
type: array
uniqueItems: true
behavior:
"$ref": "#/components/schemas/ProfileBehavior"
id:
"$ref": "#/components/schemas/UniqueID"
modules:
items:
"$ref": "#/components/schemas/TaggedModule"
type: array
name:
type: string
userInfo: {}
version:
type: integer
required:
- id
- name
- modules
- activeModulesIds
type: object
TunnelRemoteInfoWrapper:
additionalProperties: false
properties:
address:
"$ref": "#/components/schemas/Address"
fileDescriptors:
items:
"$ref": "#/components/schemas/UInt64"
type: array
modules:
items:
"$ref": "#/components/schemas/TaggedModule"
type: array
originalModuleId:
"$ref": "#/components/schemas/UniqueID"
requiresVirtualDevice:
type: boolean
required:
- originalModuleId
- fileDescriptors
- requiresVirtualDevice
type: object
UInt16:
type: integer
UInt32:
type: integer
UInt64:
type: integer
UInt8:
type: integer
UniqueID:
type: string
WireGuard.Configuration:
additionalProperties: false
properties:
interface:
"$ref": "#/components/schemas/WireGuard.LocalInterface"
peers:
items:
"$ref": "#/components/schemas/WireGuard.RemoteInterface"
type: array
required:
- interface
- peers
type: object
WireGuard.Key:
type: string
WireGuard.LocalInterface:
additionalProperties: false
properties:
addresses:
items:
"$ref": "#/components/schemas/Subnet"
type: array
dns:
"$ref": "#/components/schemas/DNSModule"
mtu:
"$ref": "#/components/schemas/UInt16"
privateKey:
"$ref": "#/components/schemas/WireGuard.Key"
required:
- privateKey
- addresses
type: object
WireGuard.RemoteInterface:
additionalProperties: false
properties:
allowedIPs:
items:
"$ref": "#/components/schemas/Subnet"
type: array
endpoint:
"$ref": "#/components/schemas/Endpoint"
keepAlive:
"$ref": "#/components/schemas/UInt16"
preSharedKey:
"$ref": "#/components/schemas/WireGuard.Key"
publicKey:
"$ref": "#/components/schemas/WireGuard.Key"
required:
- publicKey
- allowedIPs
type: object
WireGuardModule:
additionalProperties: false
properties:
configuration:
"$ref": "#/components/schemas/WireGuard.Configuration"
id:
"$ref": "#/components/schemas/UniqueID"
required:
- id
type: object
info:
title: codegen
version: 1.0.0
openapi: 3.1.0
paths: {}