Pull request: beta client squashed
Merge in DNS/adguard-home from beta-client-2 to master
Squashed commit of the following:
commit b2640cc49a6c5484d730b534dcf5a8013d7fa478
Merge: 659def862 aef4659e9
Author: Eugene Burkov <e.burkov@adguard.com>
Date: Tue Dec 29 19:23:09 2020 +0300
Merge branch 'master' into beta-client-2
commit 659def8626467949c35b7a6a0c99ffafb07b4385
Author: Eugene Burkov <e.burkov@adguard.com>
Date: Tue Dec 29 17:25:14 2020 +0300
all: upgrade github actions node version
commit b4b8cf8dd75672e9155da5d111ac66e8f5ba1535
Author: Vladislav Abdulmyanov <v.abdulmyanov@adguard.com>
Date: Tue Dec 29 16:57:14 2020 +0300
all: beta client squashed
This commit is contained in:
@@ -103,6 +103,8 @@
|
||||
server works, any other text means an error.
|
||||
'content':
|
||||
'application/json':
|
||||
'schema':
|
||||
'$ref': '#/components/schemas/UpstreamsConfigResponse'
|
||||
'examples':
|
||||
'response':
|
||||
'value':
|
||||
@@ -604,6 +606,11 @@
|
||||
'description': 'OK.'
|
||||
'content':
|
||||
'application/json':
|
||||
'schema':
|
||||
'type': 'object'
|
||||
'parameters':
|
||||
'enabled':
|
||||
'type': 'boolean'
|
||||
'examples':
|
||||
'response':
|
||||
'value':
|
||||
@@ -655,6 +662,13 @@
|
||||
'description': 'OK.'
|
||||
'content':
|
||||
'application/json':
|
||||
'schema':
|
||||
'type': 'object'
|
||||
'parameters':
|
||||
'enable':
|
||||
'type': 'boolean'
|
||||
'sensitivity':
|
||||
'type': 'integer'
|
||||
'examples':
|
||||
'response':
|
||||
'value':
|
||||
@@ -689,6 +703,11 @@
|
||||
'description': 'OK.'
|
||||
'content':
|
||||
'application/json':
|
||||
'schema':
|
||||
'type': 'object'
|
||||
'parameters':
|
||||
'enabled':
|
||||
'type': 'boolean'
|
||||
'examples':
|
||||
'response':
|
||||
'value':
|
||||
@@ -867,6 +886,20 @@
|
||||
'examples':
|
||||
'response':
|
||||
'value': 'en'
|
||||
'/install/get_addresses_beta':
|
||||
'get':
|
||||
'tags':
|
||||
- 'install'
|
||||
'operationId': 'installGetAddressesBeta'
|
||||
'summary': >
|
||||
'UNSTABLE!: Gets the network interfaces information.'
|
||||
'responses':
|
||||
'200':
|
||||
'description': 'OK.'
|
||||
'content':
|
||||
'application/json':
|
||||
'schema':
|
||||
'$ref': '#/components/schemas/AddressesInfoBeta'
|
||||
'/install/get_addresses':
|
||||
'get':
|
||||
'tags':
|
||||
@@ -880,6 +913,30 @@
|
||||
'application/json':
|
||||
'schema':
|
||||
'$ref': '#/components/schemas/AddressesInfo'
|
||||
'/install/check_config_beta':
|
||||
'post':
|
||||
'tags':
|
||||
- 'install'
|
||||
'operationId': 'installCheckConfigBeta'
|
||||
'summary': >
|
||||
'UNSTABLE!: Checks configuration'
|
||||
'requestBody':
|
||||
'content':
|
||||
'application/json':
|
||||
'schema':
|
||||
'$ref': '#/components/schemas/CheckConfigRequestBeta'
|
||||
'description': 'Configuration to be checked'
|
||||
'required': true
|
||||
'responses':
|
||||
'200':
|
||||
'description': 'OK.'
|
||||
'content':
|
||||
'application/json':
|
||||
'schema':
|
||||
'$ref': '#/components/schemas/CheckConfigResponse'
|
||||
'400':
|
||||
'description': >
|
||||
Failed to parse JSON or cannot listen on the specified address.
|
||||
'/install/check_config':
|
||||
'post':
|
||||
'tags':
|
||||
@@ -903,6 +960,29 @@
|
||||
'400':
|
||||
'description': >
|
||||
Failed to parse JSON or cannot listen on the specified address.
|
||||
'/install/configure_beta':
|
||||
'post':
|
||||
'tags':
|
||||
- 'install'
|
||||
'operationId': 'installConfigureBeta'
|
||||
'summary': >
|
||||
'UNSTABLE!: Applies the initial configuration.'
|
||||
'requestBody':
|
||||
'content':
|
||||
'application/json':
|
||||
'schema':
|
||||
'$ref': '#/components/schemas/InitialConfigurationBeta'
|
||||
'description': 'Initial configuration JSON'
|
||||
'required': true
|
||||
'responses':
|
||||
'200':
|
||||
'description': 'OK.'
|
||||
'400':
|
||||
'description': >
|
||||
Failed to parse initial configuration or cannot listen to the
|
||||
specified addresses.
|
||||
'500':
|
||||
'description': 'Cannot start the DNS server'
|
||||
'/install/configure':
|
||||
'post':
|
||||
'tags':
|
||||
@@ -1059,7 +1139,7 @@
|
||||
'example': '127.0.0.1'
|
||||
'dns_port':
|
||||
'type': 'integer'
|
||||
'format': 'int32'
|
||||
'format': 'uint16'
|
||||
'example': 53
|
||||
'minimum': 1
|
||||
'maximum': 65535
|
||||
@@ -1163,6 +1243,11 @@
|
||||
'example':
|
||||
- 'tls://1.1.1.1'
|
||||
- 'tls://1.0.0.1'
|
||||
'UpstreamsConfigResponse':
|
||||
'type': 'object'
|
||||
'description': 'Upstreams configuration response'
|
||||
'additionalProperties':
|
||||
'type': 'string'
|
||||
'Filter':
|
||||
'type': 'object'
|
||||
'description': 'Filter subscription info'
|
||||
@@ -1733,17 +1818,17 @@
|
||||
'description': 'if true, forces HTTP->HTTPS redirect'
|
||||
'port_https':
|
||||
'type': 'integer'
|
||||
'format': 'int32'
|
||||
'format': 'uint16'
|
||||
'example': 443
|
||||
'description': 'HTTPS port. If 0, HTTPS will be disabled.'
|
||||
'port_dns_over_tls':
|
||||
'type': 'integer'
|
||||
'format': 'int32'
|
||||
'format': 'uint16'
|
||||
'example': 853
|
||||
'description': 'DNS-over-TLS port. If 0, DOT will be disabled.'
|
||||
'port_dns_over_quic':
|
||||
'type': 'integer'
|
||||
'format': 'int32'
|
||||
'format': 'uint16'
|
||||
'example': 784
|
||||
'description': 'DNS-over-QUIC port. If 0, DOQ will be disabled.'
|
||||
'certificate_chain':
|
||||
@@ -1821,6 +1906,11 @@
|
||||
'NetInterface':
|
||||
'type': 'object'
|
||||
'description': 'Network interface info'
|
||||
'required':
|
||||
- 'flags'
|
||||
- 'hardware_address'
|
||||
- 'name'
|
||||
- 'mtu'
|
||||
'properties':
|
||||
'flags':
|
||||
'type': 'string'
|
||||
@@ -1831,38 +1921,59 @@
|
||||
'name':
|
||||
'type': 'string'
|
||||
'example': 'eth0'
|
||||
'ipv4_addresses':
|
||||
'ip_addresses':
|
||||
'type': 'array'
|
||||
'items':
|
||||
'type': 'string'
|
||||
'ipv6_addresses':
|
||||
'mtu':
|
||||
'type': 'integer'
|
||||
'AddressInfoBeta':
|
||||
'type': 'object'
|
||||
'description': 'Port information'
|
||||
'required':
|
||||
- 'ip'
|
||||
- 'port'
|
||||
'properties':
|
||||
'ip':
|
||||
'type': 'array'
|
||||
'items':
|
||||
'type': 'string'
|
||||
'gateway_ip':
|
||||
'type': 'string'
|
||||
'minItems': 1
|
||||
'example':
|
||||
- '127.0.0.1'
|
||||
'port':
|
||||
'type': 'integer'
|
||||
'format': 'uint16'
|
||||
'example': 53
|
||||
'AddressInfo':
|
||||
'type': 'object'
|
||||
'description': 'Port information'
|
||||
'required':
|
||||
- 'ip'
|
||||
- 'port'
|
||||
'properties':
|
||||
'ip':
|
||||
'type': 'string'
|
||||
'example': '127.0.0.1'
|
||||
'port':
|
||||
'type': 'integer'
|
||||
'format': 'int32'
|
||||
'format': 'uint16'
|
||||
'example': 53
|
||||
'AddressesInfo':
|
||||
'type': 'object'
|
||||
'description': 'AdGuard Home addresses configuration'
|
||||
'required':
|
||||
- 'dns_port'
|
||||
- 'web_port'
|
||||
- 'interfaces'
|
||||
'properties':
|
||||
'dns_port':
|
||||
'type': 'integer'
|
||||
'format': 'int32'
|
||||
'format': 'uint16'
|
||||
'example': 53
|
||||
'web_port':
|
||||
'type': 'integer'
|
||||
'format': 'int32'
|
||||
'format': 'uint16'
|
||||
'example': 80
|
||||
'interfaces':
|
||||
'type': 'object'
|
||||
@@ -1870,6 +1981,28 @@
|
||||
Network interfaces dictionary, keys are interface names.
|
||||
'additionalProperties':
|
||||
'$ref': '#/components/schemas/NetInterface'
|
||||
'AddressesInfoBeta':
|
||||
'type': 'object'
|
||||
'description': 'AdGuard Home addresses configuration'
|
||||
'required':
|
||||
- 'dns_port'
|
||||
- 'web_port'
|
||||
- 'interfaces'
|
||||
'properties':
|
||||
'dns_port':
|
||||
'type': 'integer'
|
||||
'format': 'uint16'
|
||||
'example': 53
|
||||
'web_port':
|
||||
'type': 'integer'
|
||||
'format': 'uint16'
|
||||
'example': 80
|
||||
'interfaces':
|
||||
'type': 'array'
|
||||
'description': >
|
||||
Network interfaces dictionary, keys are interface names.
|
||||
'items':
|
||||
'$ref': '#/components/schemas/NetInterface'
|
||||
'ProfileInfo':
|
||||
'type': 'object'
|
||||
'description': 'Information about the current user'
|
||||
@@ -1946,11 +2079,10 @@
|
||||
'$ref': '#/components/schemas/ClientsFindEntry'
|
||||
'ClientsFindEntry':
|
||||
'type': 'object'
|
||||
'properties':
|
||||
'1.2.3.4':
|
||||
'items':
|
||||
'$ref': '#/components/schemas/ClientFindSubEntry'
|
||||
|
||||
'additionalProperties':
|
||||
'$ref': '#/components/schemas/ClientFindSubEntry'
|
||||
'example':
|
||||
'1.2.3.4': 'test'
|
||||
'ClientFindSubEntry':
|
||||
'type': 'object'
|
||||
'properties':
|
||||
@@ -2043,6 +2175,17 @@
|
||||
'type': 'array'
|
||||
'items':
|
||||
'type': 'string'
|
||||
'CheckConfigRequestBeta':
|
||||
'type': 'object'
|
||||
'description': 'Configuration to be checked'
|
||||
'properties':
|
||||
'dns':
|
||||
'$ref': '#/components/schemas/CheckConfigRequestInfoBeta'
|
||||
'web':
|
||||
'$ref': '#/components/schemas/CheckConfigRequestInfoBeta'
|
||||
'set_static_ip':
|
||||
'type': 'boolean'
|
||||
'example': false
|
||||
'CheckConfigRequest':
|
||||
'type': 'object'
|
||||
'description': 'Configuration to be checked'
|
||||
@@ -2054,6 +2197,23 @@
|
||||
'set_static_ip':
|
||||
'type': 'boolean'
|
||||
'example': false
|
||||
'CheckConfigRequestInfoBeta':
|
||||
'type': 'object'
|
||||
'properties':
|
||||
'ip':
|
||||
'type': 'array'
|
||||
'items':
|
||||
'type': 'string'
|
||||
'minItems': 1
|
||||
'example':
|
||||
- '127.0.0.1'
|
||||
'port':
|
||||
'type': 'integer'
|
||||
'format': 'uint16'
|
||||
'example': 53
|
||||
'autofix':
|
||||
'type': 'boolean'
|
||||
'example': false
|
||||
'CheckConfigRequestInfo':
|
||||
'type': 'object'
|
||||
'properties':
|
||||
@@ -2062,13 +2222,17 @@
|
||||
'example': '127.0.0.1'
|
||||
'port':
|
||||
'type': 'integer'
|
||||
'format': 'int32'
|
||||
'format': 'uint16'
|
||||
'example': 53
|
||||
'autofix':
|
||||
'type': 'boolean'
|
||||
'example': false
|
||||
'CheckConfigResponse':
|
||||
'type': 'object'
|
||||
'required':
|
||||
- 'dns'
|
||||
- 'web'
|
||||
- 'static_ip'
|
||||
'properties':
|
||||
'dns':
|
||||
'$ref': '#/components/schemas/CheckConfigResponseInfo'
|
||||
@@ -2078,32 +2242,71 @@
|
||||
'$ref': '#/components/schemas/CheckConfigStaticIpInfo'
|
||||
'CheckConfigResponseInfo':
|
||||
'type': 'object'
|
||||
'required':
|
||||
- 'status'
|
||||
- 'can_autofix'
|
||||
'properties':
|
||||
'status':
|
||||
'type': 'string'
|
||||
'default': ''
|
||||
'example': ''
|
||||
'can_autofix':
|
||||
'type': 'boolean'
|
||||
'example': false
|
||||
'CheckConfigStaticIpInfoStatic':
|
||||
'type': 'string'
|
||||
'example': 'no'
|
||||
'enum':
|
||||
- 'yes'
|
||||
- 'no'
|
||||
- 'error'
|
||||
'description': 'Can be: yes, no, error'
|
||||
'CheckConfigStaticIpInfo':
|
||||
'type': 'object'
|
||||
'properties':
|
||||
'static':
|
||||
'type': 'string'
|
||||
'example': 'no'
|
||||
'description': 'Can be: yes, no, error'
|
||||
'$ref': '#/components/schemas/CheckConfigStaticIpInfoStatic'
|
||||
'ip':
|
||||
'type': 'string'
|
||||
'default': ''
|
||||
'example': '192.168.1.1'
|
||||
'description': 'Current dynamic IP address. Set if static=no'
|
||||
'error':
|
||||
'type': 'string'
|
||||
'default': ''
|
||||
'example': ''
|
||||
'description': 'Error text. Set if static=error'
|
||||
'InitialConfigurationBeta':
|
||||
'type': 'object'
|
||||
'description': >
|
||||
AdGuard Home initial configuration for the first-install wizard.
|
||||
'required':
|
||||
- 'dns'
|
||||
- 'web'
|
||||
- 'username'
|
||||
- 'password'
|
||||
'properties':
|
||||
'dns':
|
||||
'$ref': '#/components/schemas/AddressInfoBeta'
|
||||
'web':
|
||||
'$ref': '#/components/schemas/AddressInfoBeta'
|
||||
'username':
|
||||
'type': 'string'
|
||||
'description': 'Basic auth username'
|
||||
'example': 'admin'
|
||||
'password':
|
||||
'type': 'string'
|
||||
'description': 'Basic auth password'
|
||||
'example': 'password'
|
||||
'InitialConfiguration':
|
||||
'type': 'object'
|
||||
'description': >
|
||||
AdGuard Home initial configuration for the first-install wizard.
|
||||
'required':
|
||||
- 'dns'
|
||||
- 'web'
|
||||
- 'username'
|
||||
- 'password'
|
||||
'properties':
|
||||
'dns':
|
||||
'$ref': '#/components/schemas/AddressInfo'
|
||||
|
||||
Reference in New Issue
Block a user