diff --git a/Cargo.lock b/Cargo.lock index 4cbd4c4..a3d8953 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3502,6 +3502,19 @@ dependencies = [ "tower-service", ] +[[package]] +name = "hyper-timeout" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b90d566bffbce6a75bd8b09a05aa8c2cb1fabb6cb348f8840c9e4c90a0d83b0" +dependencies = [ + "hyper", + "hyper-util", + "pin-project-lite", + "tokio", + "tower-service", +] + [[package]] name = "hyper-util" version = "0.1.21" @@ -4864,6 +4877,12 @@ dependencies = [ "windows-sys 0.61.2", ] +[[package]] +name = "multimap" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d87ecb2933e8aeadb3e3a02b828fed80a7528047e68b4f424523a0981a3a084" + [[package]] name = "multiversion_no_op" version = "1.0.0" @@ -5842,6 +5861,7 @@ checksum = "112d82ceb8c5bf524d9af484d4e4970c9fd5a0cc15ba14ad93dccd28873b0629" dependencies = [ "digest 0.11.3", "hmac 0.13.0", + "sha2 0.11.0", ] [[package]] @@ -6320,6 +6340,27 @@ dependencies = [ "prost-derive", ] +[[package]] +name = "prost-build" +version = "0.14.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "03da047801ff44bb6a4d407d4860c05fd70bb81714e6b2f3812603d5b145b042" +dependencies = [ + "heck", + "itertools 0.14.0", + "log", + "multimap", + "petgraph", + "prettyplease", + "prost", + "prost-types", + "pulldown-cmark", + "pulldown-cmark-to-cmark", + "regex", + "syn 2.0.119", + "tempfile", +] + [[package]] name = "prost-derive" version = "0.14.4" @@ -6333,6 +6374,79 @@ dependencies = [ "syn 2.0.119", ] +[[package]] +name = "prost-types" +version = "0.14.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f94967dc7688f3054c7fac87473ffae4cc4c3904800e2d9f5b857246d8963b0a" +dependencies = [ + "prost", +] + +[[package]] +name = "protoc-bin-vendored" +version = "3.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d1c381df33c98266b5f08186583660090a4ffa0889e76c7e9a5e175f645a67fa" +dependencies = [ + "protoc-bin-vendored-linux-aarch_64", + "protoc-bin-vendored-linux-ppcle_64", + "protoc-bin-vendored-linux-s390_64", + "protoc-bin-vendored-linux-x86_32", + "protoc-bin-vendored-linux-x86_64", + "protoc-bin-vendored-macos-aarch_64", + "protoc-bin-vendored-macos-x86_64", + "protoc-bin-vendored-win32", +] + +[[package]] +name = "protoc-bin-vendored-linux-aarch_64" +version = "3.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c350df4d49b5b9e3ca79f7e646fde2377b199e13cfa87320308397e1f37e1a4c" + +[[package]] +name = "protoc-bin-vendored-linux-ppcle_64" +version = "3.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a55a63e6c7244f19b5c6393f025017eb5d793fd5467823a099740a7a4222440c" + +[[package]] +name = "protoc-bin-vendored-linux-s390_64" +version = "3.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1dba5565db4288e935d5330a07c264a4ee8e4a5b4a4e6f4e83fad824cc32f3b0" + +[[package]] +name = "protoc-bin-vendored-linux-x86_32" +version = "3.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8854774b24ee28b7868cd71dccaae8e02a2365e67a4a87a6cd11ee6cdbdf9cf5" + +[[package]] +name = "protoc-bin-vendored-linux-x86_64" +version = "3.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b38b07546580df720fa464ce124c4b03630a6fb83e05c336fea2a241df7e5d78" + +[[package]] +name = "protoc-bin-vendored-macos-aarch_64" +version = "3.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "89278a9926ce312e51f1d999fee8825d324d603213344a9a706daa009f1d8092" + +[[package]] +name = "protoc-bin-vendored-macos-x86_64" +version = "3.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "81745feda7ccfb9471d7a4de888f0652e806d5795b61480605d4943176299756" + +[[package]] +name = "protoc-bin-vendored-win32" +version = "3.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "95067976aca6421a523e491fce939a3e65249bac4b977adee0ee9771568e8aa3" + [[package]] name = "pulldown-cmark" version = "0.13.4" @@ -6344,6 +6458,15 @@ dependencies = [ "unicase", ] +[[package]] +name = "pulldown-cmark-to-cmark" +version = "22.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "84bbb29c624230c4bd1047bbdb2aa47e41c860e9665ce62ba9504eebe91bf867" +dependencies = [ + "pulldown-cmark", +] + [[package]] name = "pxfm" version = "0.1.30" @@ -7139,7 +7262,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0d41d731c7d2f962d1ccc364cec258de3c0e93b38c2fb3ba97ac74513048d634" dependencies = [ "aws-lc-rs", + "log", "once_cell", + "ring", "rustls-pki-types", "rustls-webpki", "subtle", @@ -7256,6 +7381,20 @@ dependencies = [ "windows-sys 0.61.2", ] +[[package]] +name = "schema-api" +version = "0.1.0" +dependencies = [ + "prost", + "prost-build", + "prost-types", + "protoc-bin-vendored", + "thiserror 2.0.21", + "tonic", + "tonic-prost", + "tonic-prost-build", +] + [[package]] name = "scoped-tls" version = "1.0.1" @@ -8715,6 +8854,76 @@ version = "1.1.2+spec-1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7d56353a2a665ad0f41a421187180aab746c8c325620617ad883a99a1cbe66d2" +[[package]] +name = "tonic" +version = "0.14.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ac2a5518c70fa84342385732db33fb3f44bc4cc748936eb5833d2df34d6445ef" +dependencies = [ + "async-trait", + "axum", + "base64 0.22.1", + "bytes", + "h2", + "http", + "http-body", + "http-body-util", + "hyper", + "hyper-timeout", + "hyper-util", + "percent-encoding", + "pin-project", + "rustls-native-certs", + "socket2", + "sync_wrapper", + "tokio", + "tokio-rustls", + "tokio-stream", + "tower", + "tower-layer", + "tower-service", + "tracing", +] + +[[package]] +name = "tonic-build" +version = "0.14.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c68f61875ac5293cf72e6c8cf0158086428c82c37229e98c840878f1706b0322" +dependencies = [ + "prettyplease", + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "tonic-prost" +version = "0.14.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "50849f68853be452acf590cde0b146665b8d507b3b8af17261df47e02c209ea0" +dependencies = [ + "bytes", + "prost", + "tonic", +] + +[[package]] +name = "tonic-prost-build" +version = "0.14.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "654e5643eff75d7f8c99197ce1440ed19a3474eada74c12bbac488b2cafdae27" +dependencies = [ + "prettyplease", + "proc-macro2", + "prost-build", + "prost-types", + "quote", + "syn 2.0.119", + "tempfile", + "tonic-build", +] + [[package]] name = "tower" version = "0.5.3" @@ -8723,9 +8932,12 @@ checksum = "ebe5ef63511595f1344e2d5cfa636d973292adc0eec1f0ad45fae9f0851ab1d4" dependencies = [ "futures-core", "futures-util", + "indexmap", "pin-project-lite", + "slab", "sync_wrapper", "tokio", + "tokio-util", "tower-layer", "tower-service", "tracing", @@ -9099,6 +9311,7 @@ dependencies = [ "rand 0.10.3", "rug", "serde", + "serde_json", "sha-1", "sha2 0.10.9", "thiserror 2.0.21", @@ -9108,6 +9321,7 @@ dependencies = [ "tracing-subscriber", "tsproto-packets", "tsproto-types", + "zeroize", ] [[package]] @@ -9500,6 +9714,7 @@ dependencies = [ "voelin-gateway-proto", "voelin-media", "voelin-model", + "voelin-myts", "voelin-observer", "voelin-platform", "voelin-query", @@ -9603,6 +9818,24 @@ dependencies = [ "serde_json", ] +[[package]] +name = "voelin-myts" +version = "0.1.0" +dependencies = [ + "aes 0.9.3", + "aes-gcm", + "base64 0.22.1", + "ctr 0.10.1", + "pbkdf2", + "reqwest", + "schema-api", + "subtle", + "thiserror 2.0.21", + "tokio", + "tsproto", + "zeroize", +] + [[package]] name = "voelin-observer" version = "0.1.0" @@ -9698,6 +9931,7 @@ dependencies = [ "voelin-core", "voelin-gateway-proto", "voelin-model", + "voelin-myts", "voelin-platform", "voelin-query", "voelin-store", diff --git a/Cargo.toml b/Cargo.toml index db62918..fe024ed 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ resolver = "3" # third_party: vendored crates patched in below (not workspace members, so # their own tests and dev-dependencies stay out of our builds). -exclude = ["fuzz", "third_party"] +exclude = ["fuzz", "third_party", "third_party/schema-api"] members = [ "crates/proto/tsproto-types", "crates/proto/tsproto-structs", @@ -17,6 +17,7 @@ members = [ "crates/voelin-gateway-proto", "crates/voelin-media", "crates/voelin-model", + "crates/voelin-myts", "crates/voelin-observer", "crates/voelin-platform", "crates/voelin-query", @@ -37,6 +38,7 @@ default-members = [ "crates/voelin-gateway", "crates/voelin-gateway-proto", "crates/voelin-model", + "crates/voelin-myts", "crates/voelin-observer", "crates/voelin-platform", "crates/voelin-query", diff --git a/THIRD_PARTY_NOTICES.md b/THIRD_PARTY_NOTICES.md index 4954751..f34ab46 100644 --- a/THIRD_PARTY_NOTICES.md +++ b/THIRD_PARTY_NOTICES.md @@ -53,6 +53,13 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ```` +## schema-api + +The account client uses message bindings and session helpers from the local +schema-api 0.1.0 snapshot vendored under third_party/schema-api. The supplied +snapshot has no declared license or license file; no MIT or Apache license is +implied for it or its supplied schemas. See its VOELIN-PATCH.md for provenance. + ## Native libraries - Opus (libopus), compiled into the app: BSD-3-Clause, Copyright 2001-2023 @@ -175,12 +182,12 @@ the crate's authors are listed as its copyright holders. | License | Crates | |---|---| -| MIT License | 654 | -| Apache License 2.0 | 31 | +| MIT License | 657 | +| Apache License 2.0 | 34 | | Unicode License v3 | 26 | +| ISC License | 24 | | BSD 3-Clause "New" or "Revised" License | 22 | | LicenseRef-Slint-Royalty-free-2.0 | 12 | -| ISC License | 8 | | BSD 2-Clause "Simplified" License | 3 | | zlib License | 3 | | Boost Software License 1.0 | 2 | @@ -398,6 +405,284 @@ Used by: flagset 0.4.7, hound 3.5.1 ```` +Used by: ring 0.17.14 + +````text + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + +Licenses for support code +------------------------- + +Parts of the TLS test suite are under the Go license. This code is not included +in BoringSSL (i.e. libcrypto and libssl) when compiled, however, so +distributing code linked against BoringSSL does not trigger this license: + +Copyright (c) 2009 The Go Authors. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + + * Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above +copyright notice, this list of conditions and the following disclaimer +in the documentation and/or other materials provided with the +distribution. + * Neither the name of Google Inc. nor the names of its +contributors may be used to endorse or promote products derived from +this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +BoringSSL uses the Chromium test infrastructure to run a continuous build, +trybots etc. The scripts which manage this, and the script for generating build +metadata, are under the Chromium license. Distributing code linked against +BoringSSL does not trigger this license. + +Copyright 2015 The Chromium Authors. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + + * Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above +copyright notice, this list of conditions and the following disclaimer +in the documentation and/or other materials provided with the +distribution. + * Neither the name of Google Inc. nor the names of its +contributors may be used to endorse or promote products derived from +this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +```` + Used by: moka 0.12.16 ````text @@ -1019,7 +1304,7 @@ Used by: cpal 0.18.2, imgref 1.12.3, self_cell 1.3.0, unicode-linebreak 0.1.5 ```` -Used by: gethostname 1.1.0, prost-derive 0.14.4, prost 0.14.4 +Used by: gethostname 1.1.0, prost-derive 0.14.4, prost-types 0.14.4, prost 0.14.4, ring 0.17.14 ````text Apache License @@ -1796,7 +2081,7 @@ Standard text, used by: - openh264 0.9.8: Ralf Biedert (https://github.com/ralfbiedert/openh264-rs) ````text -Copyright (c) +Copyright (c) Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: @@ -2009,7 +2294,7 @@ TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ```` @@ -2078,7 +2363,7 @@ TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ```` @@ -2090,7 +2375,7 @@ Standard text, used by: - sonora-aec3 0.2.0 (https://github.com/dignifiedquire/sonora) ````text -Copyright (c) . +Copyright (c) . Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: @@ -2233,6 +2518,84 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI ### ISC License +Used by: ring 0.17.14 + +````text +/* Copyright (c) 2014, Intel Corporation. + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY + * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION + * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN + * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ + +#ifndef OPENSSL_HEADER_EC_ECP_NISTZ384_H +#define OPENSSL_HEADER_EC_ECP_NISTZ384_H + +#include "../../limbs/limbs.h" + +#define P384_LIMBS (384u / LIMB_BITS) + +typedef struct { + Limb X[P384_LIMBS]; + Limb Y[P384_LIMBS]; + Limb Z[P384_LIMBS]; +} P384_POINT; + +typedef struct { + Limb X[P384_LIMBS]; + Limb Y[P384_LIMBS]; +} P384_POINT_AFFINE; + + +#endif // OPENSSL_HEADER_EC_ECP_NISTZ384_H + +```` + +Used by: ring 0.17.14 + +````text +// Copyright 2015-2016 Brian Smith. +// +// Permission to use, copy, modify, and/or distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY +// SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION +// OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN +// CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +//! EdDSA Signatures. + +use super::ops::ELEM_LEN; +use crate::digest; + +pub mod signing; +pub mod verification; + +/// The length of an Ed25519 public key. +pub const ED25519_PUBLIC_KEY_LEN: usize = ELEM_LEN; + +pub fn eddsa_digest(signature_r: &[u8], public_key: &[u8], msg: &[u8]) -> digest::Digest { + let mut ctx = digest::Context::new(&digest::SHA512); + ctx.update(signature_r); + ctx.update(public_key); + ctx.update(msg); + ctx.finish() +} + +```` + Used by: untrusted 0.7.1, untrusted 0.9.0 ````text @@ -2252,6 +2615,397 @@ Used by: untrusted 0.7.1, untrusted 0.9.0 ```` +Used by: ring 0.17.14 + +````text +// Copyright 2015-2022 Brian Smith. +// +// Permission to use, copy, modify, and/or distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY +// SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION +// OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN +// CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +use crate::limb::Limb; + +#[derive(Clone, Copy)] +#[repr(transparent)] +pub struct N0([Limb; 2]); + +impl N0 { + #[cfg(feature = "alloc")] + pub(super) const LIMBS_USED: usize = 64 / crate::limb::LIMB_BITS; + + #[inline] + pub const fn precalculated(n0: u64) -> Self { + #[cfg(target_pointer_width = "64")] + { + Self([n0, 0]) + } + + #[cfg(target_pointer_width = "32")] + { + Self([n0 as Limb, (n0 >> crate::limb::LIMB_BITS) as Limb]) + } + } +} + +```` + +Used by: ring 0.17.14 + +````text +// Copyright 2015-2025 Brian Smith. +// +// Permission to use, copy, modify, and/or distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY +// SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION +// OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN +// CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +use crate::{bb, error}; + +#[deprecated( + note = "To be removed. Internal function not intended for external use with no promises regarding side channels." +)] +pub fn verify_slices_are_equal(a: &[u8], b: &[u8]) -> Result<(), error::Unspecified> { + bb::verify_slices_are_equal(a, b) +} + +```` + +Used by: ring 0.17.14 + +````text +// Copyright 2016 Brian Smith. +// +// Permission to use, copy, modify, and/or distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY +// SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION +// OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN +// CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +//! Elliptic curve operations and schemes using Curve25519. + +pub mod ed25519; + +pub mod x25519; + +mod ops; +mod scalar; + +```` + +Used by: ring 0.17.14 + +````text +// Copyright 2016-2024 Brian Smith. +// +// Permission to use, copy, modify, and/or distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY +// SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION +// OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN +// CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +use crate::error::{KeyRejected, Unspecified}; + +impl From for Unspecified { + fn from(source: untrusted::EndOfInput) -> Self { + super::erase(source) + } +} + +impl From for Unspecified { + fn from(source: core::array::TryFromSliceError) -> Self { + super::erase(source) + } +} + +impl From for Unspecified { + fn from(source: KeyRejected) -> Self { + super::erase(source) + } +} + +```` + +Used by: ring 0.17.14 + +````text +// Copyright 2018 Brian Smith. +// +// Permission to use, copy, modify, and/or distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY +// SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION +// OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN +// CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +//! Serialization and deserialization. + +#[doc(hidden)] +pub mod der; + +#[cfg(feature = "alloc")] +mod writer; + +#[cfg(feature = "alloc")] +pub(crate) mod der_writer; + +pub(crate) mod positive; + +pub use self::positive::Positive; + +#[cfg(feature = "alloc")] +pub(crate) use self::writer::TooLongError; + +```` + +Used by: ring 0.17.14 + +````text +// Copyright 2019-2024 Brian Smith. +// +// Permission to use, copy, modify, and/or distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY +// SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION +// OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN +// CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +use super::BlockLen; + +pub(super) use self::{ + sha2_32::{block_data_order_32, State32, SHA256_BLOCK_LEN}, + sha2_64::{block_data_order_64, State64, SHA512_BLOCK_LEN}, +}; + +pub(super) const CHAINING_WORDS: usize = 8; + +#[cfg(any( + all(target_arch = "aarch64", target_endian = "little"), + all(target_arch = "arm", target_endian = "little"), + target_arch = "x86_64" +))] +#[macro_use] +mod ffi; + +pub(super) mod fallback; +mod sha2_32; +mod sha2_64; + +```` + +Used by: ring 0.17.14 + +````text +// Copyright 2024 Brian Smith. +// +// Permission to use, copy, modify, and/or distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY +// SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION +// OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN +// CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +// TODO(MSRV 1.76): Replace with `core::ptr::from_mut`. +#[allow(dead_code)] +#[inline(always)] +pub fn from_mut(r: &mut T) -> *mut T { + r +} + +// TODO(MSRV 1.76): Replace with `core::ptr::from_ref`. +#[allow(dead_code)] +#[inline(always)] +pub const fn from_ref(r: &T) -> *const T { + r +} + +```` + +Used by: ring 0.17.14 + +````text +// Copyright 2024 Brian Smith. +// +// Permission to use, copy, modify, and/or distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY +// SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION +// OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN +// CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +//! Integration tests for non-public APIs. + +mod bits_tests; + +```` + +Used by: ring 0.17.14 + +````text +// Copyright 2024 Brian Smith. +// +// Permission to use, copy, modify, and/or distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY +// SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION +// OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN +// CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +pub use self::{ + array::Array, + base::{IndexError, Overlapping}, + partial_block::PartialBlock, +}; + +mod array; +mod base; +mod partial_block; + +```` + +Used by: ring 0.17.14 + +````text +// Copyright 2025 Brian Smith. +// +// Permission to use, copy, modify, and/or distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY +// SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION +// OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN +// CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +#![cfg(all(target_arch = "aarch64", target_endian = "little"))] + +pub(in super::super) mod mont; + +```` + +Used by: ring 0.17.14 + +````text +// Copyright 2025 Brian Smith. +// +// Permission to use, copy, modify, and/or distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY +// SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION +// OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN +// CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +#![cfg(target_arch = "x86_64")] + +pub(in super::super::super) mod mont; + +```` + +Used by: ring 0.17.14 + +````text +// Copyright 2025 Brian Smith. +// +// Permission to use, copy, modify, and/or distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY +// SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION +// OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN +// CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +mod storage; + +pub(super) use self::storage::{AlignedStorage, LIMBS_PER_CHUNK}; + +```` + +Used by: ring 0.17.14 + +````text +// Copyright 2025 Brian Smith. +// +// Permission to use, copy, modify, and/or distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY +// SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION +// OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN +// CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +pub(super) mod aarch64; +pub(super) mod x86_64; + +```` + Used by: aws-lc-sys 0.45.0 ````text @@ -2593,6 +3347,25 @@ THIS SOFTWARE. ```` +Used by: ring 0.17.14 + +````text +Copyright 2015-2025 Brian Smith. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY +SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION +OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN +CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +```` + Used by: libloading 0.8.9 ````text @@ -7899,6 +8672,31 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ```` +Used by: tonic 0.14.6 + +````text +Copyright (c) 2025 Lucio Franco + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + +```` + Used by: secret-service 5.2.0 ````text @@ -9760,6 +10558,7 @@ Standard text, used by: - str0m-proto 0.7.0: Martin Algesten (https://github.com/algesten/str0m) - taffy 0.10.1: Alice Cecile , Johnathan Kelley , Nico Burns (https://github.com/DioxusLabs/taffy) - tauri-winrt-notification 0.7.3: allenbenz, Tauri Programme within The Commons Conservancy (https://github.com/tauri-apps/winrt-notification) +- tonic-prost 0.14.6: Lucio Franco (https://github.com/hyperium/tonic) - tract-extra 0.23.8: Mathieu Poumeyrol (https://github.com/sonos/tract) - tract-transformers 0.23.8: Mathieu Poumeyrol , Louis Chouraki (https://github.com/sonos/tract) - windows-collections 0.2.0 (https://github.com/microsoft/windows-rs) @@ -10725,6 +11524,34 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +```` + +Used by: hyper-timeout 0.5.2 + +````text +The MIT License (MIT) + +Copyright (c) 2016 The weldr Project Developers + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + ```` Used by: same-file 1.0.6, winapi-util 0.1.11 @@ -11327,7 +12154,7 @@ Mozilla Public License Version 2.0 means any form of the work other than Source Code Form. 1.7. "Larger Work" - means a work that combines Covered Software with other material, in + means a work that combines Covered Software with other material, in a separate file or files, that is not Covered Software. 1.8. "License" diff --git a/about.hbs b/about.hbs index 926f2e7..4c9efc4 100644 --- a/about.hbs +++ b/about.hbs @@ -53,6 +53,13 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ```` +## schema-api + +The account client uses message bindings and session helpers from the local +schema-api 0.1.0 snapshot vendored under third_party/schema-api. The supplied +snapshot has no declared license or license file; no MIT or Apache license is +implied for it or its supplied schemas. See its VOELIN-PATCH.md for provenance. + ## Native libraries - Opus (libopus), compiled into the app: BSD-3-Clause, Copyright 2001-2023 diff --git a/crates/proto/UPSTREAM.md b/crates/proto/UPSTREAM.md index eb0261a..481464f 100644 --- a/crates/proto/UPSTREAM.md +++ b/crates/proto/UPSTREAM.md @@ -117,3 +117,15 @@ against or offered back to upstream. cannot drop the whole channel list; its numbers are those of `HostBannerMode` (the server's `channeledit` documentation: 0 as it is, 1 stretched, 2 scaled keeping the aspect ratio). +14. **myTeamSpeak connection identity** (`tsproto/src/myts.rs`, + `tsclientlib/src/myts.rs`, `tsclientlib/src/lib.rs`). Validated, redacted account + credentials retain the original raw signing scalar and validate again when + deserialized from a credential store. Connection-bound account proofs use the + negotiated shared IV and the official raw-scalar signing construction, not + Ed25519 seed expansion. `clientinit` and `updatemytsid` carry the six official + case-sensitive proof fields; clearing an account sends only an empty + `myTeamspeakId`. Connection options retain the latest account for reconnects; + callers cancel and rebuild an in-flight attempt when its snapshot changes. + Tests cover an independent signature vector, persistence validation/redaction, + wire field names, clearing and reconnect snapshot replacement. The account + UUID and the ordinary server identity remain separate. diff --git a/crates/proto/tsclientlib/src/lib.rs b/crates/proto/tsclientlib/src/lib.rs index e01a16e..41d7fe4 100644 --- a/crates/proto/tsclientlib/src/lib.rs +++ b/crates/proto/tsclientlib/src/lib.rs @@ -44,6 +44,7 @@ use tsproto_packets::packets::{InCommandBuf, OutCommand, OutPacket, PacketType}; #[cfg(feature = "audio")] pub mod audio; +mod myts; pub mod prelude; pub mod resolver; pub mod sync; @@ -382,9 +383,11 @@ impl Connection { address: address.into(), local_address: None, identity: None, + myts_identity: None, server: None, name: "TeamSpeakUser".into(), version: Version::Windows_3_X_X__1, + metadata: Cow::Borrowed(""), hardware_id: "923f136fb1e22ae6ce95e60255529c00,d13231b1bc33edfecfb9169cc7a63bcc".into(), channel: None, channel_password: None, @@ -536,7 +539,7 @@ impl Connection { .as_ref() .map(|p| tsproto_types::crypto::encode_password(p.as_bytes())) .unwrap_or_default(); - let packet = c2s::OutClientInitMessage::new(&mut iter::once(c2s::OutClientInitPart { + let mut packet = c2s::OutClientInitMessage::new(&mut iter::once(c2s::OutClientInitPart { name: Cow::Borrowed(options.name.as_ref()), version: Cow::Borrowed(client_version), platform: Cow::Borrowed(client_platform), @@ -549,7 +552,7 @@ impl Connection { default_channel: Cow::Borrowed(options.channel.as_deref().unwrap_or_default()), default_channel_password: Cow::Borrowed(default_channel_password.as_ref()), password: Cow::Borrowed(password.as_ref()), - metadata: "".into(), + metadata: Cow::Borrowed(options.metadata.as_ref()), version_sign: Cow::Borrowed(client_version_sign.as_ref()), client_key_offset: counter, phonetic_name: "".into(), @@ -564,6 +567,13 @@ impl Connection { security_hash: None, })); + // Voelin patch: account proof is bound to this transport's negotiated IV. + // The generated legacy client_myteamspeak_id field stays absent. + if let Some(identity) = &options.myts_identity { + let params = client.params.as_ref().ok_or(Error::InitserverParamsMissing)?; + identity.proof(¶ms.shared_iv).write_to(&mut packet); + } + client.send_packet(packet.into_packet()).map_err(Error::SendClientinit)?; match tokio::time::timeout( @@ -1711,9 +1721,11 @@ pub struct ConnectOptions { address: ServerAddress, local_address: Option, identity: Option, + myts_identity: Option, server: Option, name: Cow<'static, str>, version: Version, + metadata: Cow<'static, str>, hardware_id: Cow<'static, str>, channel: Option>, channel_password: Option>, @@ -1853,6 +1865,13 @@ impl ConnectOptions { self } + /// Application metadata, independently of the signed compatibility version. + /// Voelin patch: carries the actual application name/build to the server. + pub fn metadata>>(mut self, metadata: S) -> Self { + self.metadata = metadata.into(); + self + } + /// The hardware ID (HWID) of the client. /// /// # Default diff --git a/crates/proto/tsclientlib/src/myts.rs b/crates/proto/tsclientlib/src/myts.rs new file mode 100644 index 0000000..91bd276 --- /dev/null +++ b/crates/proto/tsclientlib/src/myts.rs @@ -0,0 +1,91 @@ +//! Voelin patch: connection-bound myTeamSpeak proof and live account changes. + +use tsproto::myts::Identity; +use tsproto_packets::packets::{Direction, Flags, OutCommand, PacketType}; + +use crate::{ConnectOptions, Connection, ConnectionState, Error, MessageHandle, Result}; + +impl ConnectOptions { + /// Snapshot the account credential for the initial connection and reconnects. + /// This is separate from the server identity and account profile UUID. + pub fn myts_identity(mut self, identity: Option) -> Self { + self.myts_identity = identity; + self + } +} + +impl Connection { + /// Publish a connection-bound account proof, or clear the account identity. + /// + /// Always updates the reconnect options, even if currently disconnected or + /// sending fails. A running connection attempt owns its previous snapshot: + /// callers must cancel and rebuild that attempt after `NotConnected`. + /// Await the returned handle's `StreamItem::MessageResult` for server acceptance. + pub fn update_myts_identity(&mut self, identity: Option) -> Result { + self.options.myts_identity = identity; + let iv = match &self.state { + ConnectionState::Connected { con, .. } => { + con.client.params.as_ref().ok_or(Error::InitserverParamsMissing)?.shared_iv + } + _ => return Err(Error::NotConnected), + }; + let packet = update_packet(self.options.myts_identity.as_ref(), &iv); + self.send_command_with_result(packet) + } +} + +fn update_packet(identity: Option<&Identity>, iv: &[u8; 64]) -> OutCommand { + let mut packet = + OutCommand::new(Direction::C2S, Flags::empty(), PacketType::Command, "updatemytsid"); + if let Some(identity) = identity { + identity.proof(iv).write_to(&mut packet); + } else { + // Empty arguments are serialized without '=' by the existing writer. + packet.write_arg("myTeamspeakId", &""); + } + packet +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn clear_contains_no_previous_account_proof() { + let packet = update_packet(None, &[0; 64]).into_packet(); + assert_eq!(packet.content(), b"updatemytsid myTeamspeakId"); + } + + #[test] + fn update_uses_current_connection_challenge() { + // Scalar one and the standard compressed Edwards base point. + let mut private = [0; 32]; + private[0] = 1; + let mut public = [0x66; 32]; + public[0] = 0x58; + let identity = Identity::new(vec![1; 33], 42, public, private, vec![2; 65]).unwrap(); + let first = update_packet(Some(&identity), &[0; 64]).into_packet(); + let second = update_packet(Some(&identity), &[1; 64]).into_packet(); + assert_ne!(first.content(), second.content()); + let wire = std::str::from_utf8(first.content()).unwrap(); + assert!(wire.starts_with("updatemytsid myTeamspeakId=")); + assert!(wire.contains(" acTime=42 ")); + assert!(!wire.contains("client_myteamspeak_id")); + assert_eq!(wire.split(' ').count(), 7); + } + + #[test] + fn failed_update_still_replaces_reconnect_snapshot() { + // Building opens no socket until the connection future is polled. + let mut private = [0; 32]; + private[0] = 1; + let mut public = [0x66; 32]; + public[0] = 0x58; + let identity = Identity::new(vec![1; 33], 42, public, private, vec![2; 65]).unwrap(); + let mut connection = + Connection::build("localhost").myts_identity(Some(identity)).connect().unwrap(); + assert!(connection.options.myts_identity.is_some()); + assert!(matches!(connection.update_myts_identity(None), Err(Error::NotConnected))); + assert!(connection.options.myts_identity.is_none()); + } +} diff --git a/crates/proto/tsproto/Cargo.toml b/crates/proto/tsproto/Cargo.toml index 588880b..e17cb4d 100644 --- a/crates/proto/tsproto/Cargo.toml +++ b/crates/proto/tsproto/Cargo.toml @@ -43,8 +43,10 @@ tsproto-packets = { path = "../tsproto-packets", version = "0.1" } tsproto-types = { path = "../tsproto-types", version = "0.1" } quicklz = "0.3" crypto-bigint = "0.6" +zeroize = "1" [dev-dependencies] +serde_json = "1" anyhow = "1" criterion = "0.8" once_cell = "1" diff --git a/crates/proto/tsproto/src/lib.rs b/crates/proto/tsproto/src/lib.rs index 972d9b9..ecd530b 100644 --- a/crates/proto/tsproto/src/lib.rs +++ b/crates/proto/tsproto/src/lib.rs @@ -26,6 +26,7 @@ pub mod client; pub mod connection; pub mod license; pub mod log; +pub mod myts; pub mod packet_codec; pub mod resend; pub mod utils; diff --git a/crates/proto/tsproto/src/myts.rs b/crates/proto/tsproto/src/myts.rs new file mode 100644 index 0000000..06cf39a --- /dev/null +++ b/crates/proto/tsproto/src/myts.rs @@ -0,0 +1,247 @@ +//! Validated myTeamSpeak signing credentials and connection-bound public proofs. +//! +//! Serializing an [`Identity`] exports its private key. Persist it only in a +//! credential store, never application settings, diagnostics or packet logs. + +use std::fmt; + +use base64::prelude::*; +use curve25519_dalek::{constants::ED25519_BASEPOINT_TABLE, scalar::Scalar}; +use serde::{Deserialize, Deserializer, Serialize}; +use sha2::{Digest, Sha256, Sha512}; +use thiserror::Error; +use tsproto_packets::packets::OutCommand; +use zeroize::Zeroize; + +/// An account identity; distinct from the account UUID and server identity. +#[derive(Clone, Serialize)] +pub struct Identity { + myts_id: Vec, + creation_time: u64, + public_key: [u8; 32], + private_key: [u8; 32], + public_signature: Vec, +} + +#[derive(Debug, Error)] +pub enum IdentityError { + #[error("myTeamSpeak identity must contain 33 bytes")] + InvalidId, + #[error("myTeamSpeak public signature must contain 65 to 4096 bytes")] + InvalidSignature, + #[error("myTeamSpeak private key is zero or does not match its public key")] + InvalidKeyPair, +} + +impl fmt::Debug for Identity { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { f.write_str("Identity([REDACTED])") } +} + +impl Drop for Identity { + fn drop(&mut self) { self.private_key.zeroize(); } +} + +impl<'de> Deserialize<'de> for Identity { + fn deserialize>(deserializer: D) -> Result { + #[derive(Deserialize)] + #[serde(deny_unknown_fields)] + struct Stored { + myts_id: Vec, + creation_time: u64, + public_key: [u8; 32], + private_key: [u8; 32], + public_signature: Vec, + } + let mut stored = Stored::deserialize(deserializer)?; + let result = Self::new( + stored.myts_id, + stored.creation_time, + stored.public_key, + stored.private_key, + stored.public_signature, + ); + stored.private_key.zeroize(); + result.map_err(serde::de::Error::custom) + } +} + +impl Identity { + /// `creation_time` is the voice protocol's decimal `acTime` integer, + /// byte-swapped from the account service's numeric creation timestamp. + pub fn new( + myts_id: Vec, creation_time: u64, public_key: [u8; 32], mut private_key: [u8; 32], + public_signature: Vec, + ) -> Result { + let result = (|| { + if myts_id.len() != 33 { + return Err(IdentityError::InvalidId); + } + if !(65..=4096).contains(&public_signature.len()) { + return Err(IdentityError::InvalidSignature); + } + let mut scalar = Scalar::from_bytes_mod_order(private_key); + let valid = scalar != Scalar::ZERO + && (ED25519_BASEPOINT_TABLE * &scalar).compress().to_bytes() == public_key; + scalar.zeroize(); + if !valid { + return Err(IdentityError::InvalidKeyPair); + } + Ok(Self { myts_id, creation_time, public_key, private_key, public_signature }) + })(); + private_key.zeroize(); + result + } + + pub fn id(&self) -> String { BASE64_STANDARD.encode(&self.myts_id) } + + /// Sign this connection's challenge with the original raw private scalar. + /// This is not Ed25519's seed expansion: the account already stores a scalar. + pub fn proof(&self, shared_iv: &[u8; 64]) -> Proof { + let mut challenge = Sha256::new(); + challenge.update([0x30, 0x08, 0, 0, 0, 0]); + challenge.update(shared_iv); + let mut message = challenge.finalize().to_vec(); + message.extend_from_slice(b"MyTeamSpeakID"); + let mut nonce_hash = Sha512::new(); + nonce_hash.update(self.private_key); + nonce_hash.update(&message); + let mut nonce = Scalar::from_bytes_mod_order_wide(&nonce_hash.finalize().into()); + let public_nonce = (ED25519_BASEPOINT_TABLE * &nonce).compress().to_bytes(); + let mut hash = Sha512::new(); + hash.update(public_nonce); + hash.update(self.public_key); + hash.update(&message); + let challenge = Scalar::from_bytes_mod_order_wide(&hash.finalize().into()); + let mut scalar = Scalar::from_bytes_mod_order(self.private_key); + let mut response = challenge * scalar + nonce; + let mut signature = [0; 64]; + signature[..32].copy_from_slice(&public_nonce); + signature[32..].copy_from_slice(response.as_bytes()); + scalar.zeroize(); + nonce.zeroize(); + response.zeroize(); + Proof { + myteamspeak_id: self.id(), + creation_time: self.creation_time, + public_key: BASE64_STANDARD.encode(self.public_key), + auth_signature: BASE64_STANDARD.encode(signature), + public_signature: BASE64_STANDARD.encode(&self.public_signature[..64]), + public_signature_certificate: BASE64_STANDARD.encode(&self.public_signature[64..]), + } + } +} + +/// Public, connection-bound authentication values. Never contains private keys. +#[derive(Clone)] +pub struct Proof { + pub myteamspeak_id: String, + pub creation_time: u64, + pub public_key: String, + pub auth_signature: String, + pub public_signature: String, + pub public_signature_certificate: String, +} + +impl fmt::Debug for Proof { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { f.write_str("Proof([REDACTED])") } +} + +impl Proof { + /// Append the official case-sensitive wire fields to an outgoing command. + pub fn write_to(&self, packet: &mut OutCommand) { + packet.write_arg("myTeamspeakId", &self.myteamspeak_id); + packet.write_arg("acTime", &self.creation_time); + packet.write_arg("userPubKey", &self.public_key); + packet.write_arg("authSign", &self.auth_signature); + packet.write_arg("pubSign", &self.public_signature); + packet.write_arg("pubSignCert", &self.public_signature_certificate); + } +} + +#[cfg(test)] +mod tests { + use super::*; + use tsproto_packets::packets::{Direction, Flags, PacketType}; + + fn hex(value: &str) -> [u8; N] { + let mut bytes = [0; N]; + for (i, byte) in bytes.iter_mut().enumerate() { + *byte = u8::from_str_radix(&value[i * 2..i * 2 + 2], 16).unwrap(); + } + bytes + } + + fn identity() -> Identity { + Identity::new( + vec![7; 33], + 123456, + hex("ce92350b547b6cf028df0618bf9aba55f949930059308d83ebd727e13472ed99"), + std::array::from_fn(|i| i as u8 + 1), + vec![9; 65], + ) + .unwrap() + } + + #[test] + fn raw_scalar_signature_matches_independent_vector() { + // Python integer Edwards arithmetic + hashlib, independent of dalek. + let proof = identity().proof(&std::array::from_fn(|i| i as u8)); + let expected = hex::<64>( + "d56e1808e1ded53e20fc2849f016603c88eefe0494d75e9b869653e2bacaa495c562b571289d88a561c0f4b568cf90cc515b557b6d4321962e94ccf85f105a08", + ); + assert_eq!(BASE64_STANDARD.decode(proof.auth_signature).unwrap(), expected); + assert_ne!( + identity().proof(&[0; 64]).auth_signature, + identity().proof(&[1; 64]).auth_signature + ); + } + + #[test] + fn credentials_roundtrip_validate_and_redact() { + let identity = identity(); + let stored = serde_json::to_value(&identity).unwrap(); + let restored: Identity = serde_json::from_value(stored.clone()).unwrap(); + assert_eq!(serde_json::to_value(&restored).unwrap(), stored); + assert_eq!( + identity.proof(&[0; 64]).auth_signature, + restored.proof(&[0; 64]).auth_signature + ); + assert_eq!(format!("{:?}", restored), "Identity([REDACTED])"); + assert_eq!(format!("{:?}", restored.proof(&[0; 64])), "Proof([REDACTED])"); + for field in ["myts_id", "public_signature", "public_key", "private_key"] { + let mut invalid = stored.clone(); + invalid[field] = serde_json::json!([]); + assert!(serde_json::from_value::(invalid).is_err(), "{}", field); + } + for private in [vec![0; 32], vec![1; 32]] { + let mut invalid = stored.clone(); + invalid["private_key"] = serde_json::json!(private); + assert!(serde_json::from_value::(invalid).is_err()); + } + for length in [64, 4097] { + let mut invalid = stored.clone(); + invalid["public_signature"] = serde_json::json!(vec![9; length]); + assert!(serde_json::from_value::(invalid).is_err()); + } + } + + #[test] + fn proof_writes_exact_public_wire_fields() { + let mut command = + OutCommand::new(Direction::C2S, Flags::empty(), PacketType::Command, "clientinit"); + identity().proof(&[0; 64]).write_to(&mut command); + let packet = command.into_packet(); + let wire = std::str::from_utf8(packet.content()).unwrap(); + let fields: Vec<_> = + wire.split(' ').skip(1).map(|field| field.split('=').next().unwrap()).collect(); + assert_eq!(fields, [ + "myTeamspeakId", + "acTime", + "userPubKey", + "authSign", + "pubSign", + "pubSignCert" + ]); + assert!(!wire.contains("private")); + } +} diff --git a/crates/voelin-core/Cargo.toml b/crates/voelin-core/Cargo.toml index c4dba41..68103bf 100644 --- a/crates/voelin-core/Cargo.toml +++ b/crates/voelin-core/Cargo.toml @@ -57,6 +57,7 @@ tsproto-packets = { path = "../proto/tsproto-packets" } tsproto-types = { path = "../proto/tsproto-types" } [dev-dependencies] +voelin-myts = { path = "../voelin-myts" } # `process`: the browser interop test drives Chromium through Node.js. tokio = { version = "1", features = ["macros", "net", "process", "rt-multi-thread", "test-util"] } diff --git a/crates/voelin-core/src/lib.rs b/crates/voelin-core/src/lib.rs index 2b46a90..1cfac20 100644 --- a/crates/voelin-core/src/lib.rs +++ b/crates/voelin-core/src/lib.rs @@ -63,6 +63,7 @@ pub mod settings; pub mod stream; #[cfg(feature = "media")] pub mod studio; +pub mod versions; mod voice; mod web; @@ -70,7 +71,7 @@ use std::collections::HashMap; use std::path::PathBuf; use std::sync::Arc; -use tokio::sync::{broadcast, mpsc}; +use tokio::sync::{broadcast, mpsc, watch}; pub use voelin_audio::settings::TransmitMode; pub use voelin_audio::{AudioSettings, ProcessingSettings, VadSettings}; use voelin_model::{ @@ -101,6 +102,8 @@ pub type SessionId = u64; /// What the UI asks for. #[derive(Clone, Debug)] pub enum Command { + /// Main account proof for every current and future voice connection. + SetMytsIdentity(Option>), ConnectVoice { session: SessionId, options: Box, @@ -812,6 +815,7 @@ async fn run( // Before any command: a contact set meanwhile would be lost. contacts.load().await; let mut sessions: HashMap = HashMap::new(); + let (myts_identity, _) = watch::channel(None); let mut current = shared.current(); // Pruning: at start, then hourly (and when the setting changes). let mut prune = tokio::time::interval(std::time::Duration::from_secs(3600)); @@ -856,6 +860,10 @@ async fn run( }, }; let id = match command { + Command::SetMytsIdentity(identity) => { + myts_identity.send_replace(identity); + continue; + } Command::SetAudioSettings(new) => { settings = (*new).clone(); for s in sessions.values() { @@ -931,6 +939,7 @@ async fn run( frames.clone(), settings.clone(), engine.clone(), + myts_identity.subscribe(), ); if let Some(profiles) = &srtp_profiles { s.send(Command::SetSrtpProfiles(profiles.clone())); @@ -1008,7 +1017,8 @@ fn command_session(command: &Command) -> SessionId { | Command::DeleteOfflineMessage { session, .. } | Command::SetOfflineMessageRead { session, .. } | Command::CloseSession { session } => *session, - Command::SetAudioSettings(_) + Command::SetMytsIdentity(_) + | Command::SetAudioSettings(_) | Command::SetSrtpProfiles(_) | Command::TestMicrophone { .. } | Command::SetSetting { .. } diff --git a/crates/voelin-core/src/session.rs b/crates/voelin-core/src/session.rs index cdc9352..4213721 100644 --- a/crates/voelin-core/src/session.rs +++ b/crates/voelin-core/src/session.rs @@ -86,9 +86,12 @@ impl SessionHandle { frames: broadcast::Sender, audio_settings: AudioSettings, shared: Shared, + myts_identity: watch::Receiver>>, ) -> Self { let (tx, rx) = mpsc::unbounded_channel(); - tokio::spawn(Session::new(id, events, frames, audio_settings, shared).run(rx)); + tokio::spawn( + Session::new(id, events, frames, audio_settings, shared, myts_identity).run(rx), + ); Self { tx } } @@ -171,6 +174,7 @@ struct OwnStream { } struct Session { + myts_identity: watch::Receiver>>, id: SessionId, events: broadcast::Sender, state: SessionState, @@ -244,11 +248,13 @@ impl Session { frames: broadcast::Sender, audio_settings: AudioSettings, shared: Shared, + myts_identity: watch::Receiver>>, ) -> Self { let (sources_tx, sources_rx) = mpsc::unbounded_channel(); let Shared { settings, history, cache, contacts } = shared; let contacts_rx = Some(contacts.watch()); Self { + myts_identity, cache, contacts, contacts_rx, @@ -381,6 +387,7 @@ impl Session { self.forward(audio_rx, move |e| SourceEvent::Audio(generation, e)); } let link = VoiceLink { + myts_identity: self.myts_identity.clone(), session: self.id, events: self.events.clone(), settings: self.settings.clone(), @@ -691,7 +698,8 @@ impl Session { self.voice_request(Some(request), VoiceCmd::OfflineFlag { request, id, read }); } // Engine-wide. - Command::CloseSession { .. } + Command::SetMytsIdentity(_) + | Command::CloseSession { .. } | Command::TestMicrophone { .. } | Command::SetSetting { .. } | Command::ResetSetting { .. } diff --git a/crates/voelin-core/src/versions.rs b/crates/voelin-core/src/versions.rs new file mode 100644 index 0000000..89b7f41 --- /dev/null +++ b/crates/voelin-core/src/versions.rs @@ -0,0 +1,175 @@ +//! Known signed client versions. +//! +//! `clientinit` must carry a `client_version_sign` produced by TeamSpeak's +//! private key, so a client can only claim versions from this list of captured +//! signatures (the `Versions.csv` declaration file). + +use anyhow::{Context, Result, bail}; +use base64::prelude::*; +use tsclientlib::Version; + +const VERSIONS_CSV: &str = include_str!("../../proto/tsproto-structs/declarations/Versions.csv"); + +#[derive(Clone, Debug, PartialEq, Eq)] +pub struct KnownVersion { + pub version: String, + pub platform: String, + pub signature: String, +} + +impl KnownVersion { + pub fn to_version(&self) -> Result { + let signature = BASE64_STANDARD + .decode(&self.signature) + .with_context(|| format!("invalid signature for {}@{}", self.platform, self.version))?; + Ok(Version::Custom { + platform: self.platform.clone(), + version: self.version.clone(), + signature, + }) + } +} + +pub fn known_versions() -> Vec { + VERSIONS_CSV + .lines() + .skip(1) + .filter(|l| !l.trim().is_empty()) + .filter_map(|l| { + // The version string contains no commas, the signature is base64. + let mut parts = l.splitn(3, ','); + Some(KnownVersion { + version: parts.next()?.to_string(), + platform: parts.next()?.to_string(), + signature: parts.next()?.trim().to_string(), + }) + }) + .collect() +} + +/// Resolve a `--client-version` argument. +/// +/// Accepts `default` (the core native-platform default), an index into [`known_versions`], +/// or `@` with the exact strings from `voelinctl versions`. +pub fn resolve(spec: &str) -> Result> { + if spec == "default" { + return Ok(None); + } + let versions = known_versions(); + if let Ok(i) = spec.parse::() { + let Some(v) = versions.get(i) else { + bail!("version index {i} out of range (0..{})", versions.len()); + }; + return v.to_version().map(Some); + } + let Some((platform, version)) = spec.split_once('@') else { + bail!("expected `default`, an index or `@`, got {spec:?}"); + }; + match versions.iter().find(|v| v.platform == platform && v.version == version) { + Some(v) => v.to_version().map(Some), + None => bail!("unknown client version {spec:?}, see `voelinctl versions`"), + } +} + +/// The signed compatibility tuple for the native operating system. +/// +/// The generic version retains the library's minimum-version compatibility. +/// Its version, platform and signature must stay together: the signature does +/// not authorize renaming the client or changing its platform. +/// +/// Unsupported operating systems return an error rather than claiming another +/// platform. Product identity belongs in [`client_metadata`], not this tuple. +pub fn native_version() -> Result { + compatibility_version(std::env::consts::OS) +} + +fn compatibility_version(os: &str) -> Result { + let platform = match os { + "linux" => "Linux", + "windows" => "Windows", + "macos" => "OS X", + "android" => "Android", + "ios" => "iOS", + _ => bail!("no signed compatibility version for operating system {os:?}"), + }; + known_versions() + .into_iter() + .find(|version| version.platform == platform && version.version.contains("3.6")) + .with_context(|| format!("missing signed compatibility version for {platform}"))? + .to_version() +} + +/// Truthful product identity, separate from the signed compatibility tuple. +pub fn client_metadata() -> String { + serde_json::json!({ + "name": "Voelin", + "version": env!("CARGO_PKG_VERSION"), + "platform": std::env::consts::OS, + }) + .to_string() +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn native_platform_preserves_complete_signed_tuple() { + for (os, platform) in [ + ("linux", "Linux"), + ("windows", "Windows"), + ("macos", "OS X"), + ("android", "Android"), + ("ios", "iOS"), + ] { + let version = compatibility_version(os).unwrap(); + assert_eq!(version.get_platform(), platform); + assert_eq!(version.get_version_string(), "3.?.? [Build: 5680278000]"); + assert_eq!(version.get_signature().len(), 64); + let known = known_versions() + .into_iter() + .find(|known| { + known.platform == platform && known.version == version.get_version_string() + }) + .unwrap(); + assert_eq!(version, known.to_version().unwrap()); + } + assert!(compatibility_version("freebsd").is_err()); + assert!(compatibility_version("unknown").is_err()); + match compatibility_version(std::env::consts::OS) { + Ok(expected) => assert_eq!(native_version().unwrap(), expected), + Err(_) => assert!(native_version().is_err()), + } + } + + #[test] + fn metadata_identifies_voelin_without_changing_signed_version() { + let metadata: serde_json::Value = serde_json::from_str(&client_metadata()).unwrap(); + assert_eq!(metadata["name"], "Voelin"); + assert_eq!(metadata["version"], env!("CARGO_PKG_VERSION")); + assert_eq!(metadata["platform"], std::env::consts::OS); + } + + #[test] + fn parses_all_rows() { + let versions = known_versions(); + assert!(versions.len() > 50); + for v in &versions { + let signature = BASE64_STANDARD.decode(&v.signature).unwrap(); + assert_eq!(signature.len(), 64, "{v:?}"); + } + } + + #[test] + fn resolves_specs() { + assert!(resolve("default").unwrap().is_none()); + let by_index = resolve("0").unwrap().unwrap(); + let first = &known_versions()[0]; + let by_name = resolve(&format!("{}@{}", first.platform, first.version)).unwrap().unwrap(); + assert_eq!(by_index, by_name); + assert_eq!(by_name.get_platform(), first.platform); + assert!(resolve("Nope@1.0").is_err()); + assert!(resolve("100000").is_err()); + assert!(resolve("garbage").is_err()); + } +} diff --git a/crates/voelin-core/src/voice.rs b/crates/voelin-core/src/voice.rs index 86d95ce..da55f6f 100644 --- a/crates/voelin-core/src/voice.rs +++ b/crates/voelin-core/src/voice.rs @@ -8,11 +8,12 @@ use std::collections::HashMap; use std::path::PathBuf; +use std::sync::Arc; use std::time::Duration; use base64::Engine as _; use futures::prelude::*; -use tokio::sync::{broadcast, mpsc}; +use tokio::sync::{broadcast, mpsc, watch}; use tokio::task::AbortHandle; use tokio::time::{Instant, timeout}; use tracing::{debug, info, warn}; @@ -39,7 +40,7 @@ pub struct VoiceOptions { pub address: String, pub nickname: String, pub identity: Option, - /// Signed client version; `None` for the library default. + /// Signed compatibility version; `None` selects the native platform's tuple. pub client_version: Option, pub server_password: Option, /// Channel path to join, e.g. `Lobby/Sub`. @@ -68,6 +69,7 @@ impl VoiceOptions { /// Where a voice connection reports answers the session does not need to see. #[derive(Clone)] pub(crate) struct VoiceLink { + pub myts_identity: watch::Receiver>>, pub session: SessionId, pub events: broadcast::Sender, pub settings: SharedSettings, @@ -224,6 +226,8 @@ fn now_ms() -> i64 { } enum Input { + MytsIdentityChanged, + AccountSourceClosed, Item(Option>), Cmd(Option), Tick, @@ -231,6 +235,7 @@ enum Input { /// A command waiting for the server's answer. enum Pending { + MytsIdentity(Instant), Stream(Request), FileList { request: RequestId, @@ -343,35 +348,55 @@ async fn run_inner( commands: &mut mpsc::UnboundedReceiver, events: &mpsc::UnboundedSender, ) -> anyhow::Result<()> { - let mut builder = Connection::build(options.address.clone()).name(options.nickname.clone()); + let version = match &options.client_version { + Some(version) => version.clone(), + None => crate::versions::native_version()?, + }; + let mut builder = Connection::build(options.address.clone()) + .name(options.nickname.clone()) + .version(version) + .metadata(crate::versions::client_metadata()); if let Some(identity) = &options.identity { builder = builder.identity(identity.clone()); } - if let Some(version) = &options.client_version { - builder = builder.version(version.clone()); - } if let Some(pw) = &options.server_password { builder = builder.password(pw.clone()); } if let Some(channel) = &options.channel { builder = builder.channel(channel.clone()); } - let mut con = builder.connect()?; - - // Wait for the initial state. - let connected = timeout(Duration::from_secs(30), async { - con.events() - .try_filter(|e| future::ready(matches!(e, StreamItem::BookEvents(_)))) - .next() - .await + let mut identity = link.myts_identity.clone(); + // A changed account invalidates an in-flight handshake. Drop that connection + // and take a fresh snapshot before publishing any connected state. + let mut con = timeout(Duration::from_secs(30), async { + loop { + let snapshot = identity.borrow_and_update().as_deref().cloned(); + let mut con = builder.clone().myts_identity(snapshot).connect()?; + let connected = tokio::select! { + biased; + changed = identity.changed() => { + changed.map_err(|_| anyhow::anyhow!("account source closed"))?; + continue; + } + connected = async { + con.events() + .try_filter(|e| future::ready(matches!(e, StreamItem::BookEvents(_)))) + .next().await + } => connected, + }; + match connected { + Some(Ok(_)) => {} + Some(Err(e)) => return Err(anyhow::Error::from(e)), + None => anyhow::bail!("connection closed"), + } + if identity.has_changed().unwrap_or(true) { + continue; + } + return Ok(con); + } }) .await - .map_err(|_| anyhow::anyhow!("timed out while connecting"))?; - match connected { - Some(Ok(_)) => {} - Some(Err(e)) => return Err(e.into()), - None => anyhow::bail!("connection closed"), - } + .map_err(|_| anyhow::anyhow!("timed out while connecting"))??; let server_uid = { let state = con.get_state()?; let flavor = ServerFlavor::from_version_string(&state.server.version); @@ -409,15 +434,25 @@ async fn run_inner( let mut tick = tokio::time::interval(Duration::from_millis(250)); let result = loop { - let input = { - let mut stream = voice.con.events(); - tokio::select! { - item = stream.next() => Input::Item(item), - cmd = commands.recv() => Input::Cmd(cmd), - _ = tick.tick() => Input::Tick, - } - }; + // Check on every turn so busy command/audio queues cannot delay expiry. + if voice.pending.values().any(|pending| { + matches!(pending, Pending::MytsIdentity(started) + if started.elapsed() >= Duration::from_secs(10)) + }) { + break Err(anyhow::anyhow!("myTeamSpeak account update timed out")); + } + let input = next_input(&mut voice.con.events(), commands, &mut tick, &mut identity).await; match input { + Input::AccountSourceClosed => break Err(anyhow::anyhow!("account source closed")), + Input::MytsIdentityChanged => { + let snapshot = identity.borrow_and_update().as_deref().cloned(); + match voice.con.update_myts_identity(snapshot) { + Ok(handle) => { + voice.pending.insert(handle, Pending::MytsIdentity(Instant::now())); + } + Err(e) => break Err(anyhow::anyhow!("myTeamSpeak account update: {e}")), + } + } Input::Item(None) => break Err(anyhow::anyhow!("connection closed")), Input::Item(Some(Err(e))) => break Err(e.into()), Input::Item(Some(Ok(item))) => { @@ -438,10 +473,52 @@ async fn run_inner( for (_, job) in voice.jobs.drain() { job.report()(TransferState::Failed("disconnected".into())); } + let disconnect = shutdown_connection(voice.con).await; result?; - voice.con.disconnect(DisconnectOptions::new())?; - let _ = - timeout(Duration::from_secs(3), voice.con.events().for_each(|_| future::ready(()))).await; + disconnect?; + Ok(()) +} + +async fn next_input( + stream: &mut (impl Stream> + Unpin), + commands: &mut mpsc::UnboundedReceiver, + tick: &mut tokio::time::Interval, + identity: &mut watch::Receiver>>, +) -> Input { + tokio::select! { + biased; + changed = identity.changed() => if changed.is_ok() { + Input::MytsIdentityChanged + } else { + Input::AccountSourceClosed + }, + input = async { + // Keep account changes first without starving network or timers when + // the audio command queue remains ready. + tokio::select! { + cmd = commands.recv() => Input::Cmd(cmd), + _ = tick.tick() => Input::Tick, + item = stream.next() => Input::Item(item), + } + } => input, + } +} + +async fn shutdown_connection(mut con: Connection) -> Result<(), tsclientlib::Error> { + // disconnect() also returns Ok while Connecting. Never poll that stale + // handshake: dropping it is the cancellation boundary for logout. + if con.get_state().is_err() { + return Ok(()); + } + con.disconnect(DisconnectOptions::new())?; + let _ = timeout(Duration::from_secs(3), async { + while con.get_state().is_ok() { + if con.events().next().await.is_none() { + break; + } + } + }) + .await; Ok(()) } @@ -496,7 +573,13 @@ impl Voice { StreamItem::MessageEvent(msg) => self.message_event(&msg), StreamItem::MessageResult(handle, result) => { if let Some(pending) = self.pending.remove(&handle) { - self.answered(pending, result.map_err(|e| e.error)); + if matches!(pending, Pending::MytsIdentity(_)) { + result.map_err(|e| { + anyhow::anyhow!("myTeamSpeak account update: {}", e.error) + })?; + } else { + self.answered(pending, result.map_err(|e| e.error)); + } } } StreamItem::FileDownload(handle, download) => { @@ -714,7 +797,7 @@ impl Voice { }; self.link.emit(Event::OfflineMessage { session, request, result }); } - Pending::Quiet => {} + Pending::Quiet | Pending::MytsIdentity(_) => {} Pending::Report(what) => { if let Err(e) = result { let _ = self.events.send(VoiceEvent::Error(format!("{what}: {e}"))); @@ -1021,3 +1104,97 @@ mod image_download_tests { assert_eq!(image_download_time(cache::MAX_PICTURE_BYTES), Duration::from_secs(30 + 2048)); } } + +#[cfg(test)] +mod account_tests { + use super::*; + + #[tokio::test(start_paused = true)] + async fn account_priority_preserves_ready_network_and_timer_progress() { + let (account, mut identity) = watch::channel(None); + let (commands, mut receiver) = mpsc::unbounded_channel(); + for _ in 0..512 { + commands.send(VoiceCmd::SetInputMuted(false)).unwrap(); + } + let mut stream = futures::stream::poll_fn(|_| { + std::task::Poll::Ready(Some(Err(tsclientlib::Error::NotConnected))) + }); + let mut tick = tokio::time::interval(Duration::from_millis(1)); + account.send_replace(None); + assert!(matches!( + next_input(&mut stream, &mut receiver, &mut tick, &mut identity).await, + Input::MytsIdentityChanged + )); + identity.borrow_and_update(); + let (mut network, mut timers, mut audio) = (0, 0, 0); + for _ in 0..512 { + tokio::time::advance(Duration::from_millis(1)).await; + match next_input(&mut stream, &mut receiver, &mut tick, &mut identity).await { + Input::Item(_) => network += 1, + Input::Tick => timers += 1, + Input::Cmd(_) => audio += 1, + _ => panic!("unexpected account change"), + } + } + assert!(network > 0 && timers > 0 && audio > 0); + } + + #[tokio::test] + async fn shutdown_never_polls_a_connecting_connection() { + let server = tokio::net::UdpSocket::bind("127.0.0.1:0").await.unwrap(); + let mut con = + Connection::build(server.local_addr().unwrap().to_string()).connect().unwrap(); + assert!(matches!(con.update_myts_identity(None), Err(tsclientlib::Error::NotConnected))); + // tsclientlib returns Ok here despite retaining its Connecting future. + assert!(con.disconnect(DisconnectOptions::new()).is_ok()); + timeout(Duration::from_millis(100), shutdown_connection(con)).await.unwrap().unwrap(); + let mut packet = [0; 2048]; + assert!(matches!(server.try_recv_from(&mut packet), Err(error) + if error.kind() == std::io::ErrorKind::WouldBlock)); + } + + #[tokio::test] + async fn account_change_cancels_pending_handshake() { + // A silent UDP peer keeps the handshake in flight without an external server. + let server = tokio::net::UdpSocket::bind("127.0.0.1:0").await.unwrap(); + let (account, identity) = watch::channel(None); + let (events, _) = broadcast::channel(8); + let link = VoiceLink { + session: 1, + events, + settings: SharedSettings::new(crate::settings::Settings::default()), + myts_identity: identity, + }; + let (_commands, commands) = mpsc::unbounded_channel(); + let (events, mut received) = mpsc::unbounded_channel(); + let task = tokio::spawn(run( + VoiceOptions::new(server.local_addr().unwrap().to_string(), "account-test"), + link, + commands, + events, + )); + let mut packet = [0; 2048]; + let (_, first) = + timeout(Duration::from_secs(5), server.recv_from(&mut packet)).await.unwrap().unwrap(); + // A logout/clear notification must cancel the old socket and restart. + account.send_replace(None); + let second = timeout(Duration::from_secs(5), async { + loop { + let (_, peer) = server.recv_from(&mut packet).await.unwrap(); + if peer != first { + break peer; + } + } + }) + .await + .unwrap(); + assert_ne!(first, second); + // Losing the account authority fails closed immediately, not after connect timeout. + drop(account); + timeout(Duration::from_secs(2), task).await.unwrap().unwrap(); + assert!( + matches!(received.recv().await, Some(VoiceEvent::Disconnected(Some(reason))) if reason == "account source closed") + ); + assert!(received.try_recv().is_err()); + } +} diff --git a/crates/voelin-core/tests/myts_live.rs b/crates/voelin-core/tests/myts_live.rs new file mode 100644 index 0000000..64b9e02 --- /dev/null +++ b/crates/voelin-core/tests/myts_live.rs @@ -0,0 +1,149 @@ +//! Opt-in account + isolated server interoperability check. No keys are saved. +//! Requires VOELIN_MYTS_LIVE=1, EMAIL/PASSWORD/DEVICE_ID and optional OTP under +//! the VOELIN_MYTS_ prefix; TEST_TS3/TEST_TS6 and QUERY_TS3/QUERY_TS6 give +//! loopback voice/query addresses. QUERY_PASSWORD authenticates local query. +#![cfg(not(target_os = "android"))] + +use std::{sync::Arc, time::Duration}; + +use anyhow::{Context, Result, bail, ensure}; +use tokio::{sync::broadcast, time::timeout}; +use voelin_core::{Command, Engine, Event, VoiceOptions, VoiceState}; +use voelin_myts::{Client, ServerIdentity}; +use voelin_query::{Command as QueryCommand, QueryClient, Row}; + +fn env(name: &str) -> Result { + std::env::var(format!("VOELIN_MYTS_{name}")).with_context(|| format!("missing {name}")) +} + +async fn connected(events: &mut broadcast::Receiver, session_id: u64) -> Result { + timeout(Duration::from_secs(35), async { + loop { + match events.recv().await? { + Event::State { session, state } + if session == session_id && state.voice == VoiceState::Connected => + { + if let Some(id) = state.own_client { + return Ok(id); + } + } + Event::Error { message, .. } => bail!("engine: {message}"), + _ => {} + } + } + }) + .await? +} + +async fn info(query: &QueryClient, client: u16) -> Result { + query + .send(&QueryCommand::new("clientinfo").arg("clid", client)) + .await? + .into_iter() + .next() + .context("clientinfo missing") +} + +async fn wait_id(query: &QueryClient, client: u16, expected: &str) -> Result<()> { + timeout(Duration::from_secs(12), async { + loop { + let row = info(query, client).await?; + if row.get("client_myteamspeak_id") == Some(expected) { + return Ok(()); + } + tokio::time::sleep(Duration::from_millis(200)).await; + } + }) + .await + .context("server did not report the expected myTS association")? +} + +async fn server(identity: Arc, kind: &str) -> Result<()> { + let address = env(&format!("TEST_{kind}"))?; + let query_address = env(&format!("QUERY_{kind}"))?; + // This test is deliberately limited to caller-owned loopback test servers. + ensure!(address.starts_with("127.0.0.1:"), "voice endpoint must be loopback"); + ensure!(query_address.starts_with("127.0.0.1:"), "query endpoint must be loopback"); + let (query, _) = QueryClient::connect(&voelin_query::Connect { + transport: if kind == "TS3" { + voelin_query::Transport::Raw + } else { + voelin_query::Transport::Ssh + }, + addr: query_address, + user: "serveradmin".into(), + secret: Some(env("QUERY_PASSWORD")?), + server_id: Some(1), + server_port: None, + line: voelin_query::LineOptions { rate_limit: None, ..Default::default() }, + }) + .await?; + let engine = Engine::start(); + let mut events = engine.subscribe(); + let result = async { + engine.send(Command::SetMytsIdentity(Some(identity.clone()))); + for session in 1..=2 { + engine.send(Command::ConnectVoice { + session, + options: Box::new(VoiceOptions::new(&address, format!("myts-proof-{session}"))), + }); + let client = connected(&mut events, session).await?; + let row = info(&query, client).await?; + let version = voelin_core::versions::native_version()?; + ensure!(row.get("client_platform") == Some(version.get_platform()), "wrong platform"); + ensure!( + row.get("client_version") == Some(version.get_version_string()), + "wrong version" + ); + let metadata: serde_json::Value = + serde_json::from_str(row.get("client_meta_data").context("missing metadata")?)?; + ensure!(metadata["name"] == "Voelin", "wrong client metadata"); + ensure!(metadata["platform"] == std::env::consts::OS, "wrong metadata platform"); + eprintln!("{kind}: native platform/Voelin metadata passed"); + wait_id(&query, client, &identity.id()).await?; + eprintln!("{kind}: signed clientinit myTS ID passed"); + // Two fresh connections prove the signature is bound to each handshake. + engine.send(Command::SetMytsIdentity(None)); + wait_id(&query, client, "").await?; + engine.send(Command::SetMytsIdentity(Some(identity.clone()))); + wait_id(&query, client, &identity.id()).await?; + eprintln!("{kind}: live clear and reattach passed"); + engine.send(Command::CloseSession { session }); + } + Ok(()) + } + .await; + engine.send(Command::SetMytsIdentity(None)); + for session in 1..=2 { + engine.send(Command::CloseSession { session }); + } + query.quit().await; + result +} + +#[tokio::test(flavor = "multi_thread")] +#[ignore = "requires owner-authorized account and isolated loopback servers"] +async fn authenticated_account_and_server_lifecycle() -> Result<()> { + ensure!(env("LIVE")? == "1", "explicit live opt-in required"); + let client = Client::new()?; + let login = client + .login(&env("EMAIL")?, &env("PASSWORD")?, env("OTP").ok().as_deref(), &env("DEVICE_ID")?) + .await?; + // Capture every result before deleting the newly created remote session. + let result = async { + client.validate_session(&login.token).await?; + let identity = Arc::new(login.identity.context("server identity unlock failed")?); + let mut failures = Vec::new(); + for kind in ["TS3", "TS6"] { + if let Err(error) = server(identity.clone(), kind).await { + failures.push(format!("{kind}: {error:#}")); + } + } + ensure!(failures.is_empty(), "{}", failures.join("; ")); + Ok(()) + } + .await; + let logout = client.logout(&login.token).await; + logout.context("remote test session revocation failed")?; + result +} diff --git a/crates/voelin-myts/Cargo.toml b/crates/voelin-myts/Cargo.toml new file mode 100644 index 0000000..fbb1cf2 --- /dev/null +++ b/crates/voelin-myts/Cargo.toml @@ -0,0 +1,30 @@ +[package] +name = "voelin-myts" +version = "0.1.0" +description = "Bounded myTeamSpeak account HTTP client" +edition.workspace = true +rust-version.workspace = true +license.workspace = true +repository.workspace = true +publish.workspace = true + +[dependencies] +# Reuse the workspace's existing crypto crates for the account wire credential. +base64 = "0.22" +aes = "0.9" +aes-gcm = { version = "0.11", features = ["zeroize"] } +ctr = "0.10" +subtle = "2.6" +zeroize = "1.9" +tsproto = { path = "../proto/tsproto" } +pbkdf2 = { version = "0.13", features = ["sha2"] } +schema-api = { path = "../../third_party/schema-api", default-features = false } +reqwest = { version = "0.13.5", default-features = false, features = ["rustls", "http2"] } +thiserror = "2.0.21" +tokio = { version = "1.53.1", features = ["rt", "time"] } + +[dev-dependencies] +tokio = { version = "1.53.1", features = ["rt-multi-thread", "macros", "net", "io-util"] } + +[lints] +workspace = true diff --git a/crates/voelin-myts/src/identity.rs b/crates/voelin-myts/src/identity.rs new file mode 100644 index 0000000..edba950 --- /dev/null +++ b/crates/voelin-myts/src/identity.rs @@ -0,0 +1,202 @@ +//! Authenticated account-key unwrap; plaintext keys never leave this module +//! except inside the validated, redacted protocol identity. +use aes_gcm::{Aes256Gcm, KeyInit, aead::AeadInOut}; +use ctr::cipher::{KeyIvInit, StreamCipher}; +use pbkdf2::sha2::{Digest, Sha512}; +use schema_api::api; +use subtle::ConstantTimeEq; +use tsproto::myts::Identity; +use zeroize::Zeroizing; + +/// Static, non-secret explanation for a usable login without a server identity. +#[derive(Clone, Copy, Debug, PartialEq, Eq, thiserror::Error)] +pub enum IdentityError { + #[error("sign in with your password to unlock the server identity")] + PasswordRequired, + #[error("the account did not provide a server identity")] + Missing, + #[error("the account uses an unsupported encryption-key version")] + UnsupportedKeyVersion, + #[error("the account encryption key has an invalid format")] + InvalidRootKey, + #[error("the account encryption key could not be authenticated")] + RootAuthentication, + #[error("the account server identity has an invalid format")] + InvalidIdentity, + #[error("the account private key could not be verified")] + PrivateKeyIntegrity, +} + +pub(crate) fn encryption_key(email: &str, password: &str) -> Zeroizing<[u8; 32]> { + let salt = Zeroizing::new(format!("{}ts3Encryption{password}", email.to_ascii_lowercase())); + Zeroizing::new(pbkdf2::pbkdf2_hmac_array::( + password.as_bytes(), + salt.as_bytes(), + 10_000, + )) +} + +fn unwrap_root(wrapped: &[u8], key: &[u8; 32]) -> Result, IdentityError> { + match wrapped.first() { + None => return Err(IdentityError::InvalidRootKey), + Some(2) => {} + Some(_) => return Err(IdentityError::UnsupportedKeyVersion), + } + if wrapped.len() != 61 { + return Err(IdentityError::InvalidRootKey); + } + let mut plaintext = Zeroizing::new([0; 32]); + plaintext.copy_from_slice(&wrapped[29..]); + let cipher = Aes256Gcm::new(key.into()); + cipher + .decrypt_inout_detached( + wrapped[17..29].try_into().map_err(|_| IdentityError::InvalidRootKey)?, + b"", + plaintext.as_mut_slice().into(), + wrapped[1..17].try_into().map_err(|_| IdentityError::InvalidRootKey)?, + ) + .map_err(|_| IdentityError::RootAuthentication)?; + Ok(plaintext) +} + +fn unwrap_private(wrapped: &[u8], root: &[u8; 32]) -> Result, IdentityError> { + if wrapped.len() != 112 { + return Err(IdentityError::InvalidIdentity); + } + let mut plaintext = Zeroizing::new([0; 32]); + plaintext.copy_from_slice(&wrapped[16..48]); + let mut cipher = ctr::Ctr128LE::::new( + root.into(), + wrapped[..16].try_into().map_err(|_| IdentityError::InvalidIdentity)?, + ); + cipher.apply_keystream(plaintext.as_mut_slice()); + let digest = Zeroizing::new(<[u8; 64]>::from(Sha512::digest(plaintext.as_slice()))); + if !bool::from(digest.as_slice().ct_eq(&wrapped[48..])) { + return Err(IdentityError::PrivateKeyIntegrity); + } + Ok(plaintext) +} + +pub(crate) fn decrypt( + response: &api::LoginSession, + key: &[u8; 32], +) -> Result { + let data = response.myts_id_data.as_ref().ok_or(IdentityError::Missing)?; + let encrypted = data.user_private_key.as_ref().ok_or(IdentityError::Missing)?; + let public_key = + data.user_public_key.as_slice().try_into().map_err(|_| IdentityError::InvalidIdentity)?; + let root = unwrap_root(&response.key, key)?; + let private = unwrap_private(&encrypted.encrypted_user_private_key, &root)?; + Identity::new( + data.my_teamspeak_id.clone(), + // The HTTP schema uses the numeric timestamp; the voice protocol's + // decimal acTime represents its byte-swapped integer. The server + // verifies pubKey || acTime.to_le_bytes() || myTS ID. The official + // login-to-storage boundary performs this same conversion. + data.account_creation_time.swap_bytes(), + public_key, + *private, + data.public_signature.clone(), + ) + .map_err(|_| IdentityError::InvalidIdentity) +} + +#[cfg(test)] +mod tests { + use super::*; + // Independent Python hashlib + cryptography AESGCM/AES-ECB fixtures. + // CTR is assembled by incrementing the counter as a little-endian integer. + const ROOT: &str = "0201123b3434c3b04a2b6713e5a14c5f10000102030405060708090a0be7012a4987a157ece9103814f297d77cae6a2084730d7e049895cb0ba2334178"; + const PRIVATE: &str = "000102030405060708090a0b0c0d0e0f7a4f26742cde57b1d8077f162eee88bd3afe99c66443d961cd28a368ac98cc2f887af58a36202e05c4c1cfec5bf6c61fad66bca851536004074b31f1b56e4ac93d9c9fc20dc59e01fecab23063ef341b2d2d75c4e8e4fa1e9ba958658260e336"; + fn hex(s: &str) -> Vec { + s.as_bytes() + .chunks_exact(2) + .map(|pair| u8::from_str_radix(std::str::from_utf8(pair).unwrap(), 16).unwrap()) + .collect() + } + #[test] + fn independent_password_root_and_private_vectors() { + let key = encryption_key("User@Example.TEST", "password"); + assert_eq!( + key.as_slice(), + hex("81ccdf8e98030891e11700e5d76dfa6c52ff01121f668ab6a5525742ed18c5ca") + ); + let root = unwrap_root(&hex(ROOT), &key).unwrap(); + assert_eq!(root.as_slice(), (0..32).collect::>()); + let private = unwrap_private(&hex(PRIVATE), &root).unwrap(); + assert_eq!(private.as_slice(), (32..64).collect::>()); + } + #[test] + fn decrypts_response_and_rejects_a_mismatched_public_key() { + let key = encryption_key("user@example.test", "password"); + let mut response = api::LoginSession { + key: hex(ROOT), + myts_id_data: Some(api::MyTeamSpeakIdData { + // Independently computed scalar multiplication using affine Edwards arithmetic. + user_public_key: hex( + "e67b030457ea1be59391ea3f28748d12abe417fef0f7bb6ad68e54e836eda6c4", + ), + user_private_key: Some(api::my_team_speak_id_data::UserPrivateKey { + encrypted_user_private_key: hex(PRIVATE), + // Never trust this alternate server plaintext field. + decrypted_user_private_key: vec![0; 32], + }), + account_creation_time: 123, + my_teamspeak_id: vec![1; 33], + public_signature: vec![2; 65], + }), + ..Default::default() + }; + let identity = decrypt(&response, &key).unwrap(); + assert_eq!(identity.id(), "AQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEB"); + assert_eq!(identity.proof(&[0; 64]).creation_time, 123u64.swap_bytes()); + response.myts_id_data.as_mut().unwrap().user_public_key[0] ^= 1; + assert_eq!(decrypt(&response, &key).unwrap_err(), IdentityError::InvalidIdentity); + } + + #[test] + fn every_authenticated_root_byte_is_checked() { + let key = encryption_key("user@example.test", "password"); + for index in 1..61 { + let mut wrapped = hex(ROOT); + wrapped[index] ^= 1; + assert_eq!(unwrap_root(&wrapped, &key).unwrap_err(), IdentityError::RootAuthentication); + } + assert_eq!( + unwrap_root(&hex(ROOT), &[0; 32]).unwrap_err(), + IdentityError::RootAuthentication + ); + } + #[test] + fn every_private_item_byte_is_checked() { + let root = std::array::from_fn(|i| i as u8); + for index in 0..112 { + let mut wrapped = hex(PRIVATE); + wrapped[index] ^= 1; + assert_eq!( + unwrap_private(&wrapped, &root).unwrap_err(), + IdentityError::PrivateKeyIntegrity + ); + } + } + #[test] + fn missing_unsupported_and_malformed_are_explicit() { + assert_eq!( + decrypt(&api::LoginSession::default(), &[0; 32]).unwrap_err(), + IdentityError::Missing + ); + assert_eq!(unwrap_root(&[], &[0; 32]).unwrap_err(), IdentityError::InvalidRootKey); + assert_eq!(unwrap_root(&[1], &[0; 32]).unwrap_err(), IdentityError::UnsupportedKeyVersion); + for size in [1, 60, 62] { + let mut wrapped = vec![0; size]; + wrapped[0] = 2; + assert_eq!(unwrap_root(&wrapped, &[0; 32]).unwrap_err(), IdentityError::InvalidRootKey); + } + for size in [0, 111, 113] { + assert_eq!( + unwrap_private(&vec![0; size], &[0; 32]).unwrap_err(), + IdentityError::InvalidIdentity + ); + } + } +} diff --git a/crates/voelin-myts/src/lib.rs b/crates/voelin-myts/src/lib.rs new file mode 100644 index 0000000..d25c0cc --- /dev/null +++ b/crates/voelin-myts/src/lib.rs @@ -0,0 +1,233 @@ +//! Account sessions over the custom myTeamSpeak HTTP transport. +//! +//! Requests use the official client's method envelope and password derivation. +//! No requests or credentials are logged. +mod identity; +mod transport; +pub use identity::IdentityError; +pub use tsproto::myts::Identity as ServerIdentity; +use zeroize::{Zeroize, Zeroizing}; + +use base64::{Engine as _, engine::general_purpose::STANDARD}; +pub use schema_api::SessionToken; +use schema_api::{api, session, wire}; +use std::fmt; + +/// Owned account login result. Credential fields are redacted in Debug output. +#[derive(Clone)] +pub struct Login { + pub token: SessionToken, + pub uuid: String, + pub username: String, + pub renewal: Option, + /// Validated server identity, or why this session cannot associate with servers. + pub identity: Result, +} + +/// Server-provided alternative login material, stored only in a secret store. +#[derive(Clone)] +pub struct Renewal { + pub token: String, + pub otp_token: String, + pub device_id: String, +} + +impl fmt::Debug for Login { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + f.write_str("Login([REDACTED])") + } +} +impl fmt::Debug for Renewal { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + f.write_str("Renewal([REDACTED])") + } +} + +#[derive(Debug, thiserror::Error)] +pub enum Error { + #[error("account transport failed")] + Transport(#[from] reqwest::Error), + #[error("invalid account response")] + Decode(#[from] schema_api::prost::DecodeError), + #[error(transparent)] + Session(#[from] session::SessionError), + #[error(transparent)] + Status(#[from] session::CommonStatusError), + #[error("account request exceeds size limit")] + RequestTooLarge, + #[error("account response exceeds size limit")] + ResponseTooLarge, + #[error("account request timed out")] + Timeout, + #[error("account endpoint returned HTTP {0}")] + Http(u16), + #[error("account endpoint returned an unsupported content type")] + ContentType, + #[error("account credential preparation failed")] + CredentialPreparation, + #[error("renewal requires both a renewal token and an auth token")] + MissingRenewalCredentials, +} +impl Error { + pub fn status_code(&self) -> Option { + match self { + Self::Status(status) | Self::Session(session::SessionError::Api(status)) => { + Some(status.code) + } + _ => None, + } + } + pub fn is_otp_required(&self) -> bool { + self.status_code() == Some(api::ErrorCommon::ErrorAuthRequiresOtp as i32) + } + /// Only the explicit expired-session status permits an automatic renewal. + pub fn is_invalid_session(&self) -> bool { + self.status_code() == Some(api::ErrorCommon::ErrorSessionExpired as i32) + } +} + +#[derive(Clone)] +pub struct Client { + transport: transport::Transport, +} +impl Client { + pub fn new() -> Result { + Ok(Self { transport: transport::Transport::new()? }) + } + + /// Sign in with the user's password; the protocol credential is derived + /// internally, off the async runtime's worker threads. + pub async fn login( + &self, + email: &str, + password: &str, + otp: Option<&str>, + device: &str, + ) -> Result { + self.login_with_otp_renewal(email, password, otp, device, "").await + } + + /// Password login on a remembered device. The OTP renewal token must belong + /// to this account and device; an explicit one-time code takes precedence. + pub async fn login_with_otp_renewal( + &self, + email: &str, + password: &str, + otp: Option<&str>, + device: &str, + otp_renewal: &str, + ) -> Result { + // Check before copying caller-controlled strings into protobuf allocations. + transport::check_input_size(&[ + email, + password, + otp.unwrap_or_default(), + device, + otp_renewal, + ])?; + let mut request = api::LoginData { + email: email.into(), + password: password.into(), + otp: otp.unwrap_or_default().into(), + device_id: device.into(), + otp_renewal_token: if device.is_empty() || otp.is_some_and(|code| !code.is_empty()) { + String::new() + } else { + otp_renewal.into() + }, + device_name: "Voelin".into(), + ..Default::default() + }; + let (request, encryption_key) = tokio::task::spawn_blocking(move || { + let password = Zeroizing::new(std::mem::take(&mut request.password)); + let encryption_key = identity::encryption_key(&request.email, &password); + request.password = login_password(&request.email, &password); + (request, encryption_key) + }) + .await + .map_err(|_| Error::CredentialPreparation)?; + self.login_call("login", &wire::encode(&request), Some(encryption_key)).await + } + + /// `auth` is the schema's auth_token, not an OTP or device identifier. + /// The official client requires both credentials. Password login does not + /// supply an auth token; callers must not invent one or pass an empty value. + pub async fn login_with_renewal(&self, renewal: &str, auth: &str) -> Result { + if renewal.is_empty() || auth.is_empty() { + return Err(Error::MissingRenewalCredentials); + } + transport::check_input_size(&[renewal, auth])?; + let request = + api::RenewalTokenLogin { renewal_token: renewal.into(), auth_token: auth.into() }; + self.login_call("loginWithRenewalToken", &wire::encode(&request), None).await + } + + async fn login_call( + &self, + method: &str, + body: &[u8], + encryption_key: Option>, + ) -> Result { + let bytes = self.transport.call("authentication", method, body).await?; + let response: api::LoginSession = wire::decode(bytes)?; + let token = SessionToken::try_from(&response)?; + let (response, identity) = tokio::task::spawn_blocking(move || { + let identity = match encryption_key { + Some(key) => identity::decrypt(&response, &key), + None => Err(IdentityError::PasswordRequired), + }; + (response, identity) + }) + .await + .map_err(|_| Error::CredentialPreparation)?; + Ok(Login { + token, + identity, + uuid: response.uuid, + username: response.username, + renewal: response.alternative_login_info.map(|info| Renewal { + token: info.renewal_token, + otp_token: info.otp_renewal_token, + device_id: info.device_id, + }), + }) + } + + pub async fn validate_session(&self, token: &SessionToken) -> Result<(), Error> { + let response = self.session_call("session", token).await?; + Ok(session::validate_session_status(&response)?) + } + pub async fn logout(&self, token: &SessionToken) -> Result<(), Error> { + let response = self.session_call("deleteSession", token).await?; + Ok(session::validate_deleted_session_status(&response)?) + } + async fn session_call( + &self, + method: &str, + token: &SessionToken, + ) -> Result { + transport::check_input_size(&[token.as_str()])?; + let bytes = self + .transport + .call("session", method, &wire::encode(&api::Session::from(token))) + .await?; + Ok(wire::decode(bytes)?) + } +} + +fn login_password(email: &str, password: &str) -> String { + // Official client's classic-locale bytewise lowercase is ASCII-only. + // These are wire-protocol constants, not configurable password policy. + let salt = Zeroizing::new(format!("{}ts3Login{password}", email.to_ascii_lowercase())); + let mut derived = pbkdf2::pbkdf2_hmac_array::( + password.as_bytes(), + salt.as_bytes(), + 10_000, + ); + let encoded = STANDARD.encode(derived); + derived.zeroize(); + encoded +} + +#[cfg(test)] +mod tests; diff --git a/crates/voelin-myts/src/tests.rs b/crates/voelin-myts/src/tests.rs new file mode 100644 index 0000000..406d699 --- /dev/null +++ b/crates/voelin-myts/src/tests.rs @@ -0,0 +1,359 @@ +use super::*; +use std::time::Duration; +use tokio::{ + io::{AsyncReadExt, AsyncWriteExt}, + net::TcpListener, +}; + +async fn mock( + status: u16, + extra_headers: &str, + body: Vec, +) -> (Client, tokio::task::JoinHandle<(String, Vec)>) { + mock_typed(status, "application/ts3cloud", extra_headers, body).await +} + +async fn mock_typed( + status: u16, + content_type: &str, + extra_headers: &str, + body: Vec, +) -> (Client, tokio::task::JoinHandle<(String, Vec)>) { + let listener = TcpListener::bind("127.0.0.1:0").await.unwrap(); + let client = Client { + transport: transport::Transport::mock( + format!("http://{}", listener.local_addr().unwrap()), + Duration::from_secs(2), + ), + }; + let extra_headers = extra_headers.to_owned(); + let content_type = content_type.to_owned(); + let task = tokio::spawn(async move { + let (mut stream, _) = listener.accept().await.unwrap(); + let mut request = Vec::new(); + let end = loop { + let mut byte = [0]; + stream.read_exact(&mut byte).await.unwrap(); + request.push(byte[0]); + if request.ends_with(b"\r\n\r\n") { + break request.len(); + } + assert!(request.len() < 8192); + }; + let headers = String::from_utf8(request[..end].to_vec()).unwrap(); + let length: usize = headers + .lines() + .find_map(|line| { + line.to_ascii_lowercase().strip_prefix("content-length: ").map(str::to_owned) + }) + .unwrap() + .parse() + .unwrap(); + let mut request_body = vec![0; length]; + stream.read_exact(&mut request_body).await.unwrap(); + let response = format!( + "HTTP/1.1 {status} Test\r\nContent-Type: {content_type}\r\nContent-Length: {}\r\nConnection: close\r\n{extra_headers}\r\n", + body.len() + ); + let _ = stream.write_all(response.as_bytes()).await; + let _ = stream.write_all(&body).await; + (headers, request_body) + }); + (client, task) +} +fn success() -> api::LoginSession { + api::LoginSession { + error: 200, + session: "session-secret".into(), + uuid: "account-uuid".into(), + username: "user".into(), + alternative_login_info: Some(api::login_session::AlternativeLoginInformation { + renewal_token: "renewal-secret".into(), + otp_renewal_token: "otp-secret".into(), + device_id: "device".into(), + }), + ..Default::default() + } +} + +#[test] +fn login_password_matches_independent_vectors_without_normalizing_passwords() { + for email in ["User@Example.TEST", "user@example.test"] { + assert_eq!( + login_password(email, "password"), + "5SG5V/18cFF2iHUFXNrFLrmLeAtbjg0sLgKpSMTZe9W8G/rPorrJyY6uJDm98ICk" + ); + } + assert_eq!( + login_password("Case@Example.TEST", " Pässword "), + "NssDyxUbagUiUJS/7Mh7YCeMmF+w3BiAO8uLCgKW0nkH0hQLWYEjuLlV5P28GHNS" + ); + assert_eq!( + login_password("éMAIL@Example.TEST", "páss"), + "x6kph1Mku46TD2/zDER1UbqU0w6WV27J6W8t1CNmnDv1JELm6MPKlTyh9Mj+REjB" + ); +} + +#[tokio::test] +async fn protobuf_response_accepts_the_services_json_content_type() { + let (client, server) = mock_typed(200, "application/json", "", wire::encode(&success())).await; + let login = client.login("mail", "password", None, "device").await.unwrap(); + assert_eq!(login.token.as_str(), "session-secret"); + server.await.unwrap(); +} + +#[tokio::test] +async fn login_uses_official_method_prefix_instead_of_a_header() { + let (client, server) = mock(200, "", wire::encode(&success())).await; + client.login("mail", "password", None, "device").await.unwrap(); + let (headers, body) = server.await.unwrap(); + assert!(body.starts_with(b"\x05login")); + assert!(!headers.to_ascii_lowercase().contains("x-rpc-method")); + let request: api::LoginData = wire::decode(&body[6..]).unwrap(); + assert_eq!(request.email, "mail"); + // Independent Python hashlib.pbkdf2_hmac fixture with synthetic credentials. + assert_eq!( + request.password, + "TRd/AoYKGWZQ+grEk+YpdbXvhzGyZCyaA358SI+/q99VuAVHz1kByIEF5sNDSqEu" + ); +} + +#[tokio::test] +async fn login_roundtrip_keeps_credentials_in_body_and_redacts_results() { + let (client, server) = mock(200, "", wire::encode(&success())).await; + let login = client.login("mail", "password-secret", Some("123456"), "device").await.unwrap(); + assert_eq!(login.token.as_str(), "session-secret"); + assert_eq!(login.username, "user"); + assert_eq!(login.uuid, "account-uuid"); + assert_eq!(login.identity.as_ref().unwrap_err(), &IdentityError::Missing); + assert!(!format!("{login:?}").contains("secret")); + let renewal = login.renewal.unwrap(); + assert_eq!(renewal.token, "renewal-secret"); + assert_eq!(renewal.otp_token, "otp-secret"); + assert_eq!(renewal.device_id, "device"); + assert!(!format!("{renewal:?}").contains("secret")); + let (headers, body) = server.await.unwrap(); + assert!(headers.starts_with("POST /authentication HTTP/1.1")); + assert!(headers.to_lowercase().contains("content-type: application/ts3cloud")); + assert!(body.starts_with(b"\x05login")); + assert!(!headers.contains("password-secret")); + let data: api::LoginData = wire::decode(&body[6..]).unwrap(); + assert_eq!(data.email, "mail"); + assert_eq!(data.password, "MQU48au/lEdA0Hd/DNJ09/M4ZJgqYL5Q+PRF7OILYbUkZWHIpGw4c/kW4t4/Qofk"); + assert_eq!(data.otp, "123456"); + assert_eq!(data.device_id, "device"); + assert!(!data.skip_session); +} + +#[tokio::test] +async fn login_requires_explicit_success_nonempty_token_and_preserves_status() { + for code in [0, 202, 208, 98765] { + let mut response = success(); + response.error = code; + let (client, server) = mock(200, "", wire::encode(&response)).await; + let error = client.login("e", "p", None, "d").await.unwrap_err(); + assert_eq!(error.status_code(), Some(code)); + assert_eq!(error.is_otp_required(), code == 208); + server.await.unwrap(); + } + let mut response = success(); + response.session.clear(); + let (client, server) = mock(200, "", wire::encode(&response)).await; + assert!(matches!( + client.login("e", "p", None, "d").await, + Err(Error::Session(session::SessionError::EmptyToken)) + )); + server.await.unwrap(); +} + +#[tokio::test] +async fn remembered_otp_requires_a_device_and_yields_to_an_explicit_code() { + for (device, otp, expected_token) in + [("device", None, "otp-renewal"), ("", None, ""), ("device", Some("123456"), "")] + { + let (client, server) = mock(200, "", wire::encode(&success())).await; + client + .login_with_otp_renewal("mail", "password", otp, device, "otp-renewal") + .await + .unwrap(); + let (_, body) = server.await.unwrap(); + let request: api::LoginData = wire::decode(&body[6..]).unwrap(); + assert_eq!(request.otp_renewal_token, expected_token); + assert_eq!(request.device_id, device); + assert_eq!(request.otp, otp.unwrap_or_default()); + assert!(!request.password.is_empty()); + assert_ne!(request.password, "password"); + } +} + +#[tokio::test] +async fn renewal_encodes_exact_tokens_and_rejects_missing_credentials_before_network() { + { + let auth = "auth-secret"; + let (client, server) = mock(200, "", wire::encode(&success())).await; + let login = client.login_with_renewal("renewal-secret", auth).await.unwrap(); + assert_eq!(login.identity.unwrap_err(), IdentityError::PasswordRequired); + let (headers, body) = server.await.unwrap(); + assert!(headers.starts_with("POST /authentication HTTP/1.1")); + assert!(body.starts_with(b"\x15loginWithRenewalToken")); + let request: api::RenewalTokenLogin = wire::decode(&body[22..]).unwrap(); + assert_eq!(request.renewal_token, "renewal-secret"); + assert_eq!(request.auth_token, auth); + } + let client = Client { + transport: transport::Transport::mock("http://127.0.0.1:1".into(), Duration::from_secs(1)), + }; + for (renewal, auth) in [("", "auth"), ("renewal", ""), ("", "")] { + assert!(matches!( + client.login_with_renewal(renewal, auth).await, + Err(Error::MissingRenewalCredentials) + )); + } +} + +#[tokio::test] +async fn session_validation_and_deletion_have_distinct_success_statuses() { + let token = SessionToken::new("secret").unwrap(); + for (logout, code, valid) in [ + (false, 102, true), + (false, 103, false), + (false, 104, false), + (false, 204, false), + (true, 204, true), + (true, 102, false), + ] { + let (client, server) = + mock(200, "", wire::encode(&api::LoginStatus { error: code, ..Default::default() })) + .await; + let result = if logout { + client.logout(&token).await + } else { + client.validate_session(&token).await + }; + assert_eq!(result.is_ok(), valid); + if let Err(error) = result { + assert_eq!(error.is_invalid_session(), code == 103); + } + let (headers, body) = server.await.unwrap(); + assert!(headers.starts_with("POST /session HTTP/1.1")); + let prefix: &[u8] = if logout { b"\x0ddeleteSession" } else { b"\x07session" }; + assert!(body.starts_with(prefix)); + assert_eq!(wire::decode::(&body[prefix.len()..]).unwrap().session, "secret"); + } +} + +#[tokio::test] +async fn transport_rejects_http_redirects_oversize_and_malformed_data() { + for (status, body) in + [(302, vec![]), (500, vec![]), (200, vec![0; transport::MAX_BODY + 1]), (200, vec![0xff])] + { + let (client, server) = mock(status, "Location: http://127.0.0.1:1/leak\r\n", body).await; + let error = client.login("e", "p", None, "d").await.unwrap_err(); + match status { + 302 | 500 => assert!(matches!(error, Error::Http(code) if code == status)), + _ => assert!(matches!(error, Error::ResponseTooLarge | Error::Decode(_))), + } + server.await.unwrap(); + } + let client = Client { + transport: transport::Transport::mock("http://127.0.0.1:1".into(), Duration::from_secs(1)), + }; + assert!(matches!( + client.login("e", &"x".repeat(transport::MAX_BODY), None, "d").await, + Err(Error::RequestTooLarge) + )); + assert!(matches!(client.login("e", "p", None, "d").await, Err(Error::Transport(_)))); +} + +#[tokio::test] +async fn transport_bounds_chunked_responses_and_slow_servers() { + let listener = TcpListener::bind("127.0.0.1:0").await.unwrap(); + let client = Client { + transport: transport::Transport::mock( + format!("http://{}", listener.local_addr().unwrap()), + Duration::from_secs(2), + ), + }; + let server = tokio::spawn(async move { + let (mut stream, _) = listener.accept().await.unwrap(); + let mut request = [0; 1024]; + let _ = stream.read(&mut request).await; + stream.write_all(b"HTTP/1.1 200 OK\r\nContent-Type: application/ts3cloud\r\nTransfer-Encoding: chunked\r\n\r\n10001\r\n").await.unwrap(); + let _ = stream.write_all(&vec![0; transport::MAX_BODY + 1]).await; + let _ = stream.write_all(b"\r\n0\r\n\r\n").await; + }); + assert!(matches!(client.login("e", "p", None, "d").await, Err(Error::ResponseTooLarge))); + server.await.unwrap(); + let listener = TcpListener::bind("127.0.0.1:0").await.unwrap(); + let client = Client { + transport: transport::Transport::mock( + format!("http://{}", listener.local_addr().unwrap()), + Duration::from_millis(25), + ), + }; + assert!(matches!(client.login("e", "p", None, "d").await, Err(Error::Timeout))); +} + +#[tokio::test] +async fn transport_rejects_wrong_content_type_and_encoded_overhead() { + let listener = TcpListener::bind("127.0.0.1:0").await.unwrap(); + let client = Client { + transport: transport::Transport::mock( + format!("http://{}", listener.local_addr().unwrap()), + Duration::from_secs(2), + ), + }; + let server = tokio::spawn(async move { + let (mut stream, _) = listener.accept().await.unwrap(); + let mut request = [0; 1024]; + let _ = stream.read(&mut request).await; + stream + .write_all(b"HTTP/1.1 200 OK\r\nContent-Type: text/html\r\nContent-Length: 0\r\n\r\n") + .await + .unwrap(); + }); + assert!(matches!(client.login("e", "p", None, "d").await, Err(Error::ContentType))); + server.await.unwrap(); + // The method prefix counts towards the request bound too. + assert!(matches!( + client.transport.call("authentication", "login", &vec![0; transport::MAX_BODY - 5]).await, + Err(Error::RequestTooLarge) + )); +} + +#[tokio::test] +#[ignore = "owner-authorized live account check; explicit credentials and opt-in required"] +async fn owner_live_login_validate_logout() { + assert_eq!( + std::env::var("VOELIN_MYTS_LIVE").as_deref(), + Ok("1"), + "explicit live opt-in required" + ); + let email = std::env::var("VOELIN_MYTS_EMAIL").expect("email required"); + let password = std::env::var("VOELIN_MYTS_PASSWORD").expect("password required"); + let device = std::env::var("VOELIN_MYTS_DEVICE_ID").expect("device ID required"); + let otp = std::env::var("VOELIN_MYTS_OTP").ok(); + let client = Client::new().unwrap(); + let login = + client.login(&email, &password, otp.as_deref(), &device).await.expect("live login failed"); + let validation = client.validate_session(&login.token).await; + let logout = client.logout(&login.token).await; + validation.expect("live validation failed"); + logout.expect("live logout failed"); +} + +#[tokio::test] +async fn unsupported_identity_encryption_preserves_successful_account_login() { + let mut response = success(); + response.key = vec![1]; + response.myts_id_data = Some(api::MyTeamSpeakIdData { + user_public_key: vec![0; 32], + user_private_key: Some(Default::default()), + ..Default::default() + }); + let (client, server) = mock(200, "", wire::encode(&response)).await; + let login = client.login("mail", "password", None, "device").await.unwrap(); + assert_eq!(login.token.as_str(), "session-secret"); + assert_eq!(login.identity.unwrap_err(), IdentityError::UnsupportedKeyVersion); + server.await.unwrap(); +} diff --git a/crates/voelin-myts/src/transport.rs b/crates/voelin-myts/src/transport.rs new file mode 100644 index 0000000..9927965 --- /dev/null +++ b/crates/voelin-myts/src/transport.rs @@ -0,0 +1,107 @@ +use crate::Error; +use std::time::Duration; + +pub(crate) const MAX_BODY: usize = 64 * 1024; +const TIMEOUT: Duration = Duration::from_secs(20); +const CONTENT_TYPE: &str = "application/ts3cloud"; + +pub(crate) fn check_input_size(fields: &[&str]) -> Result<(), Error> { + if fields + .iter() + .try_fold(0usize, |sum, field| sum.checked_add(field.len())) + .is_none_or(|size| size > MAX_BODY) + { + return Err(Error::RequestTooLarge); + } + Ok(()) +} + +#[derive(Clone)] +pub(crate) struct Transport { + client: reqwest::Client, + base: String, + timeout: Duration, +} +impl Transport { + pub(crate) fn new() -> Result { + Ok(Self { + client: reqwest::Client::builder() + .redirect(reqwest::redirect::Policy::none()) + .connect_timeout(Duration::from_secs(10)) + .timeout(TIMEOUT) + .user_agent("Voelin/0.1") + .build()?, + base: "https://clientapi.myteamspeak.com".into(), + timeout: TIMEOUT, + }) + } + + #[cfg(test)] + pub(crate) fn mock(base: String, timeout: Duration) -> Self { + Self { + client: reqwest::Client::builder() + .no_proxy() + .redirect(reqwest::redirect::Policy::none()) + .build() + .unwrap(), + base, + timeout, + } + } + + pub(crate) async fn call( + &self, + service: &str, + method: &str, + body: &[u8], + ) -> Result, Error> { + // teamprotobufrpc prefixes the protobuf with a single-byte method-name + // length and the method bytes. Both official desktop clients use this + // envelope; HTTP responses contain only the protobuf message. + if method.len() > 127 || body.len() > MAX_BODY - method.len() - 1 { + return Err(Error::RequestTooLarge); + } + let mut request_body = Vec::with_capacity(1 + method.len() + body.len()); + request_body.push(method.len() as u8); + request_body.extend_from_slice(method.as_bytes()); + request_body.extend_from_slice(body); + tokio::time::timeout(self.timeout, async { + let mut response = self + .client + .post(format!("{}/{service}", self.base)) + .header(reqwest::header::CONTENT_TYPE, CONTENT_TYPE) + .body(request_body) + .send() + .await?; + if !response.status().is_success() { + return Err(Error::Http(response.status().as_u16())); + } + if response.content_length().is_some_and(|length| length > MAX_BODY as u64) { + return Err(Error::ResponseTooLarge); + } + // The live service labels binary protobuf replies application/json. + // Accept that observed label; callers still decode and validate protobuf. + if response + .headers() + .get(reqwest::header::CONTENT_TYPE) + .and_then(|value| value.to_str().ok()) + .and_then(|value| value.split(';').next()) + .is_none_or(|value| { + !value.trim().eq_ignore_ascii_case(CONTENT_TYPE) + && !value.trim().eq_ignore_ascii_case("application/json") + }) { + return Err(Error::ContentType); + } + let mut bytes = Vec::new(); + while let Some(chunk) = response.chunk().await? { + if chunk.len() > MAX_BODY - bytes.len() { + return Err(Error::ResponseTooLarge); + } + bytes.extend_from_slice(&chunk); + } + Ok(bytes) + }) + .await + .map_err(|_| Error::Timeout)? + } +} diff --git a/crates/voelin-ui/Cargo.toml b/crates/voelin-ui/Cargo.toml index 171667d..39b990f 100644 --- a/crates/voelin-ui/Cargo.toml +++ b/crates/voelin-ui/Cargo.toml @@ -49,6 +49,7 @@ tsclientlib = { path = "../proto/tsclientlib" } # Desktop: the keyring for passwords, stream media with libvpx, OpenH264, X11 # and PipeWire, global hotkeys through the portal and X11. [target.'cfg(not(target_os = "android"))'.dependencies] +voelin-myts = { path = "../voelin-myts" } slint = { version = "1.18", features = ["renderer-software"] } voelin-core = { path = "../voelin-core", default-features = false, features = ["media-desktop"] } voelin-platform = { path = "../voelin-platform" } diff --git a/crates/voelin-ui/lang/voelin-ui.pot b/crates/voelin-ui/lang/voelin-ui.pot new file mode 100644 index 0000000..253e5e5 --- /dev/null +++ b/crates/voelin-ui/lang/voelin-ui.pot @@ -0,0 +1,6513 @@ +# +msgid "" +msgstr "" +"Project-Id-Version: voelin-ui VERSION\n" +"POT-Creation-Date: 2026-10-04 15:14+0000\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#: crates/voelin-ui/ui/app.slint:134 crates/voelin-ui/ui/app.slint:220 +msgctxt "MainWindow" +msgid "Settings" +msgstr "" + +#: crates/voelin-ui/ui/app.slint:134 +msgctxt "MainWindow" +msgid "Stream Studio" +msgstr "" + +#: crates/voelin-ui/ui/app.slint:221 +msgctxt "MainWindow" +msgid "Friends" +msgstr "" + +#: crates/voelin-ui/ui/app.slint:222 +msgctxt "MainWindow" +msgid "Messages" +msgstr "" + +#: crates/voelin-ui/ui/app.slint:223 +msgctxt "MainWindow" +msgid "Library" +msgstr "" + +#: crates/voelin-ui/ui/app.slint:224 +msgctxt "MainWindow" +msgid "Events" +msgstr "" + +#: crates/voelin-ui/ui/app.slint:227 +msgctxt "MainWindow" +msgid "You" +msgstr "" + +#: crates/voelin-ui/ui/app.slint:228 +msgctxt "MainWindow" +msgid "Activity" +msgstr "" + +#: crates/voelin-ui/ui/app.slint:232 +msgctxt "MainWindow" +msgid "Find your people. Talk beyond." +msgstr "" + +#: crates/voelin-ui/ui/bridge.slint:816 +msgctxt "Bridge" +msgid "No server selected" +msgstr "" + +#: crates/voelin-ui/ui/components/badge.slint:30 +msgctxt "LiveBadge" +msgid "LIVE" +msgstr "" + +#: crates/voelin-ui/ui/components/emoji.slint:72 +msgctxt "EmojiPicker" +msgid "Smileys" +msgstr "" + +#: crates/voelin-ui/ui/components/emoji.slint:72 +msgctxt "EmojiPicker" +msgid "People" +msgstr "" + +#: crates/voelin-ui/ui/components/emoji.slint:72 +msgctxt "EmojiPicker" +msgid "Nature" +msgstr "" + +#: crates/voelin-ui/ui/components/emoji.slint:72 +msgctxt "EmojiPicker" +msgid "Food" +msgstr "" + +#: crates/voelin-ui/ui/components/emoji.slint:72 +msgctxt "EmojiPicker" +msgid "Activities" +msgstr "" + +#: crates/voelin-ui/ui/components/emoji.slint:73 +msgctxt "EmojiPicker" +msgid "Travel" +msgstr "" + +#: crates/voelin-ui/ui/components/emoji.slint:73 +msgctxt "EmojiPicker" +msgid "Objects" +msgstr "" + +#: crates/voelin-ui/ui/components/emoji.slint:73 +msgctxt "EmojiPicker" +msgid "Symbols" +msgstr "" + +#: crates/voelin-ui/ui/components/emoji.slint:73 +msgctxt "EmojiPicker" +msgid "Flags" +msgstr "" + +#: crates/voelin-ui/ui/components/emoji.slint:87 +msgctxt "EmojiPicker" +msgid "Emoji" +msgstr "" + +#: crates/voelin-ui/ui/components/emoji.slint:101 +msgctxt "EmojiPicker" +msgid "Search emoji" +msgstr "" + +#: crates/voelin-ui/ui/components/emoji.slint:132 +msgctxt "EmojiPicker" +msgid "No emoji found" +msgstr "" + +#: crates/voelin-ui/ui/components/emoji.slint:132 +msgctxt "EmojiPicker" +msgid "Search results" +msgstr "" + +#: crates/voelin-ui/ui/components/icon.slint:24 +msgctxt "Spinner" +msgid "Loading" +msgstr "" + +#: crates/voelin-ui/ui/components/meter.slint:23 +msgctxt "Meter" +msgid "Microphone level" +msgstr "" + +#: crates/voelin-ui/ui/components/meter.slint:24 +msgctxt "Meter" +msgid "{} dB" +msgstr "" + +#: crates/voelin-ui/ui/components/overlay.slint:220 +msgctxt "Modal" +msgid "Close" +msgstr "" + +#: crates/voelin-ui/ui/components/overlay.slint:287 +msgctxt "ResizeHandle" +msgid "Panel width" +msgstr "" + +#: crates/voelin-ui/ui/components/tabs.slint:72 +msgctxt "TabItem" +msgid "{} unread" +msgstr "" + +#: crates/voelin-ui/ui/components/tabs.slint:123 +msgctxt "TabItem" +msgid "Close {}" +msgstr "" + +#: crates/voelin-ui/ui/components/text-field.slint:84 +msgctxt "TextField" +msgid "Cut" +msgstr "" + +#: crates/voelin-ui/ui/components/text-field.slint:89 +msgctxt "TextField" +msgid "Copy" +msgstr "" + +#: crates/voelin-ui/ui/components/text-field.slint:94 +msgctxt "TextField" +msgid "Paste" +msgstr "" + +#: crates/voelin-ui/ui/components/text-field.slint:99 +msgctxt "TextField" +msgid "Select All" +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:26 +#: crates/voelin-ui/ui/screens/account.slint:26 +msgctxt "LoginForm" +msgid "Email" +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:35 +#: crates/voelin-ui/ui/screens/account.slint:35 +msgctxt "LoginForm" +msgid "Password" +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:44 +#: crates/voelin-ui/ui/screens/account.slint:44 +msgctxt "LoginForm" +msgid "One-time code" +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:54 +msgctxt "LoginForm" +msgid "Sign in" +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:59 +msgctxt "LoginForm" +msgid "Create account in browser" +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:64 +msgctxt "LoginForm" +msgid "Forgot password?" +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:68 +msgctxt "LoginForm" +msgid "" +"Registration and password recovery open the official myTeamSpeak website. " +"Return here to sign in when finished." +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:72 +msgctxt "AccountCard" +msgid "myTeamSpeak" +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:74 +msgctxt "AccountCard" +msgid "" +"Saved session could not be validated. Your saved credentials were retained; " +"sign in again or clear them." +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:75 +msgctxt "AccountCard" +msgid "Enter your password again and the one-time code." +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:76 +msgctxt "AccountCard" +msgid "" +"Sign-in failed. Check your credentials and connection; the experimental " +"service may be unavailable." +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:77 +msgctxt "AccountCard" +msgid "Signed out." +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:78 +msgctxt "AccountCard" +msgid "" +"Signed out and saved credentials cleared. Remote session revocation failed." +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:79 +msgctxt "AccountCard" +msgid "" +"Could not open your browser. Visit myteamspeak.com to manage your account." +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:80 +msgctxt "AccountCard" +msgid "" +"Account website opened in your browser. When finished, return here and sign " +"in again to apply changes." +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:81 +msgctxt "AccountCard" +msgid "" +"Your email address has not been verified. Activate your account using the " +"link in your email, or request a new activation email." +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:82 +msgctxt "AccountCard" +msgid "The one-time code was not accepted. Enter your password and a new code." +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:83 +msgctxt "AccountCard" +msgid "Your saved session has expired. Sign in again." +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:84 +msgctxt "AccountCard" +msgid "Email or password was not accepted. Check your details and try again." +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:85 +msgctxt "AccountCard" +msgid "Too many requests. Wait a while before trying again." +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:86 +msgctxt "AccountCard" +msgid "Account sign-in is available on desktop." +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:90 +msgctxt "AccountCard" +msgid "Primary account" +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:100 +#: crates/voelin-ui/ui/screens/account.slint:100 +msgctxt "AccountCard" +msgid "Account ID" +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:108 +#: crates/voelin-ui/ui/screens/account.slint:108 +msgctxt "AccountCard" +msgid "myTS ID" +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:116 +msgctxt "AccountCard" +msgid "Your account identity is available for authentication on voice servers." +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:119 +msgctxt "AccountCard" +msgid "" +"Sign out and sign in with your password to enable your myTS ID on voice " +"servers." +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:122 +msgctxt "AccountCard" +msgid "" +"Signed in, but the account identity could not be unlocked. Voice servers " +"will not receive your myTS ID. Try signing in again; older account " +"encryption may be unsupported." +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:124 +msgctxt "AccountCard" +msgid "" +"This is your main app profile. Server identities and server nicknames are " +"managed separately." +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:125 +msgctxt "AccountCard" +msgid "" +"Account management opens the official website. Check which account is signed " +"in there. Sign in again here after making changes." +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:127 +msgctxt "AccountCard" +msgid "Manage account in browser" +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:132 +msgctxt "AccountCard" +msgid "Change username" +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:133 +msgctxt "AccountCard" +msgid "Change email" +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:134 +msgctxt "AccountCard" +msgid "Change password" +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:135 +msgctxt "AccountCard" +msgid "Two-factor authentication" +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:136 +msgctxt "AccountCard" +msgid "Manage account deletion" +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:137 +msgctxt "AccountCard" +msgid "Export account data" +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:145 +msgctxt "AccountCard" +msgid "Contacting account service…" +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:148 +msgctxt "AccountCard" +msgid "" +"Saved account credentials could not be read. Unlock the keyring or clear the " +"saved session." +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:151 +msgctxt "AccountCard" +msgid "" +"Account credentials could not be saved. This session will not be restored " +"after restarting." +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:154 +msgctxt "AccountCard" +msgid "" +"Account credentials could not be saved, and older credentials could not be " +"removed. Unlock your keyring and clear the saved session." +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:157 +msgctxt "AccountCard" +msgid "" +"Signed out locally, but saved credentials could not be removed. Unlock your " +"keyring and clear the saved session again." +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:160 +msgctxt "AccountCard" +msgid "Resend activation email in browser" +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:165 +msgctxt "AccountCard" +msgid "Check session" +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:165 +msgctxt "AccountCard" +msgid "Retry saved session" +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:169 +msgctxt "AccountCard" +msgid "Cancel and clear session" +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:169 +msgctxt "AccountCard" +msgid "Sign out" +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:169 +msgctxt "AccountCard" +msgid "Clear saved session" +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:187 +msgctxt "LoginPage" +msgid "Welcome to {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:193 +msgctxt "LoginPage" +msgid "Sign in to make your myTeamSpeak account your main profile." +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:196 +msgctxt "LoginPage" +msgid "Continue without an account" +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:199 +msgctxt "LoginPage" +msgid "" +"You can connect to servers without an account and sign in later in Settings " +"→ My Account." +msgstr "" + +#: crates/voelin-ui/ui/screens/channels.slint:57 +msgctxt "ServerHeader" +msgid "Server menu" +msgstr "" + +#: crates/voelin-ui/ui/screens/channels.slint:74 +msgctxt "ServerHeader" +msgid "Connecting…" +msgstr "" + +#: crates/voelin-ui/ui/screens/channels.slint:75 +msgctxt "ServerHeader" +msgid "Not connected" +msgstr "" + +#: crates/voelin-ui/ui/screens/channels.slint:75 +msgctxt "ServerHeader" +msgid "Add a server to start" +msgstr "" + +#: crates/voelin-ui/ui/screens/channels.slint:84 +msgctxt "ServerHeader" +msgid "Edit server" +msgstr "" + +#: crates/voelin-ui/ui/screens/channels.slint:85 +msgctxt "ServerHeader" +msgid "Stop observing" +msgstr "" + +#: crates/voelin-ui/ui/screens/channels.slint:85 +msgctxt "ServerHeader" +msgid "Observe invisibly" +msgstr "" + +#: crates/voelin-ui/ui/screens/channels.slint:86 +msgctxt "ServerHeader" +msgid "Add server" +msgstr "" + +#: crates/voelin-ui/ui/screens/channels.slint:107 +msgctxt "ConnectActions" +msgid "Connecting…" +msgstr "" + +#: crates/voelin-ui/ui/screens/channels.slint:107 +msgctxt "ConnectActions" +msgid "Connect" +msgstr "" + +#: crates/voelin-ui/ui/screens/channels.slint:113 +msgctxt "ConnectActions" +msgid "Stop observing" +msgstr "" + +#: crates/voelin-ui/ui/screens/channels.slint:113 +msgctxt "ConnectActions" +msgid "Observe" +msgstr "" + +#: crates/voelin-ui/ui/screens/channels.slint:131 +msgctxt "TreeRow" +msgid "Channel {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/channels.slint:132 +msgctxt "TreeRow" +msgid "talking" +msgstr "" + +#: crates/voelin-ui/ui/screens/channels.slint:132 +msgctxt "TreeRow" +msgid "streaming" +msgstr "" + +#: crates/voelin-ui/ui/screens/channels.slint:132 +msgctxt "TreeRow" +msgid "microphone off" +msgstr "" + +#: crates/voelin-ui/ui/screens/channels.slint:132 +#: crates/voelin-ui/ui/screens/channels.slint:132 +msgctxt "TreeRow" +msgid "muted for you" +msgstr "" + +#: crates/voelin-ui/ui/screens/channels.slint:162 +msgctxt "TreeRow" +msgid "Expand" +msgstr "" + +#: crates/voelin-ui/ui/screens/channels.slint:162 +msgctxt "TreeRow" +msgid "Collapse" +msgstr "" + +#: crates/voelin-ui/ui/screens/channels.slint:234 +msgctxt "TreeRow" +msgid "Your stream" +msgstr "" + +#: crates/voelin-ui/ui/screens/channels.slint:234 +msgctxt "TreeRow" +msgid "Watch {}'s stream" +msgstr "" + +#: crates/voelin-ui/ui/screens/channels.slint:259 +msgctxt "TreeRow" +msgid "{}%" +msgstr "" + +#: crates/voelin-ui/ui/screens/channels.slint:270 +msgctxt "TreeRow" +msgid "mic off" +msgstr "" + +#: crates/voelin-ui/ui/screens/channels.slint:278 +msgctxt "TreeRow" +msgid "sound off" +msgstr "" + +#: crates/voelin-ui/ui/screens/channels.slint:281 +msgctxt "TreeRow" +msgid "away" +msgstr "" + +#: crates/voelin-ui/ui/screens/channels.slint:294 +msgctxt "ChannelTree" +msgid "Channels" +msgstr "" + +#: crates/voelin-ui/ui/screens/channels.slint:299 +msgctxt "ChannelTree" +msgid "No server yet." +msgstr "" + +#: crates/voelin-ui/ui/screens/channels.slint:299 +msgctxt "ChannelTree" +msgid "Connect or observe to see the channels." +msgstr "" + +#: crates/voelin-ui/ui/screens/channels.slint:307 +msgctxt "ChannelTree" +msgid "Channels and clients" +msgstr "" + +#: crates/voelin-ui/ui/screens/chat.slint:76 +msgctxt "Reactions" +msgid "{} reacted {} times" +msgstr "" + +#: crates/voelin-ui/ui/screens/chat.slint:115 +msgctxt "Reactions" +msgid "Add a reaction" +msgstr "" + +#: crates/voelin-ui/ui/screens/chat.slint:196 +msgctxt "FileCard" +msgid "Downloaded" +msgstr "" + +#: crates/voelin-ui/ui/screens/chat.slint:196 +msgctxt "FileCard" +msgid "Download {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/chat.slint:257 +msgctxt "MessageActions" +msgid "React" +msgstr "" + +#: crates/voelin-ui/ui/screens/chat.slint:272 +msgctxt "MessageActions" +msgid "More emoji" +msgstr "" + +#: crates/voelin-ui/ui/screens/chat.slint:282 +msgctxt "MessageActions" +msgid "Unpin" +msgstr "" + +#: crates/voelin-ui/ui/screens/chat.slint:282 +msgctxt "MessageActions" +msgid "Pin" +msgstr "" + +#: crates/voelin-ui/ui/screens/chat.slint:290 +msgctxt "MessageActions" +msgid "Start a topic" +msgstr "" + +#: crates/voelin-ui/ui/screens/chat.slint:350 +msgctxt "MessageRow" +msgid "via relay" +msgstr "" + +#: crates/voelin-ui/ui/screens/chat.slint:356 +msgctxt "MessageRow" +msgid "pinned" +msgstr "" + +#: crates/voelin-ui/ui/screens/chat.slint:369 +msgctxt "MessageRow" +msgid "Message from a blocked contact." +msgstr "" + +#: crates/voelin-ui/ui/screens/chat.slint:463 +msgctxt "MessageList" +msgid "Only messages seen by this device." +msgstr "" + +#: crates/voelin-ui/ui/screens/chat.slint:477 +msgctxt "MessageList" +msgid "Loading…" +msgstr "" + +#: crates/voelin-ui/ui/screens/chat.slint:477 +msgctxt "MessageList" +msgid "Older messages" +msgstr "" + +#: crates/voelin-ui/ui/screens/chat.slint:488 +msgctxt "MessageList" +msgid "Messages" +msgstr "" + +#: crates/voelin-ui/ui/screens/chat.slint:510 +msgctxt "Composer" +msgid "Attach a file" +msgstr "" + +#: crates/voelin-ui/ui/screens/chat.slint:533 +msgctxt "Composer" +msgid "Message" +msgstr "" + +#: crates/voelin-ui/ui/screens/chat.slint:547 +msgctxt "Composer" +msgid "Emoji" +msgstr "" + +#: crates/voelin-ui/ui/screens/chat.slint:557 +msgctxt "Composer" +msgid "Send" +msgstr "" + +#: crates/voelin-ui/ui/screens/chat.slint:601 +msgctxt "ChatView" +msgid "Pinned Messages" +msgstr "" + +#: crates/voelin-ui/ui/screens/chat.slint:608 +msgctxt "ChatView" +msgid "Topics" +msgstr "" + +#: crates/voelin-ui/ui/screens/chat.slint:616 +msgctxt "ChatView" +msgid "Voice channel" +msgstr "" + +#: crates/voelin-ui/ui/screens/chat.slint:622 +msgctxt "ChatView" +msgid "Members" +msgstr "" + +#: crates/voelin-ui/ui/screens/chat.slint:637 +msgctxt "ChatView" +msgid "Open folder" +msgstr "" + +#: crates/voelin-ui/ui/screens/chat.slint:644 +msgctxt "ChatView" +msgid "Delete" +msgstr "" + +#: crates/voelin-ui/ui/screens/chat.slint:650 +msgctxt "ChatView" +msgid "Dismiss" +msgstr "" + +#: crates/voelin-ui/ui/screens/chat.slint:662 +msgctxt "ChatView" +msgid "Chats" +msgstr "" + +#: crates/voelin-ui/ui/screens/chat.slint:691 +msgctxt "ChatView" +msgid "Back to the chat" +msgstr "" + +#: crates/voelin-ui/ui/screens/chat.slint:724 +msgctxt "ChatView" +msgid "Reply in {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/chat.slint:725 +msgctxt "ChatView" +msgid "Message {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/chat.slint:725 +msgctxt "ChatView" +msgid "Message" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:28 +msgctxt "BookmarkDialog" +msgid "Join a server" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:28 +msgctxt "BookmarkDialog" +msgid "Add server" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:28 +msgctxt "BookmarkDialog" +msgid "Edit server" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:29 +msgctxt "BookmarkDialog" +msgid "Only the address is needed; Voelin finds the rest." +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:42 +#: crates/voelin-ui/ui/screens/dialogs.slint:42 +msgctxt "BookmarkDialog" +msgid "Address" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:43 +msgctxt "BookmarkDialog" +msgid "" +"Host name, IP address or server nickname; a port only if the server needs " +"one." +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:47 +msgctxt "BookmarkDialog" +msgid "Server password (optional)" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:48 +msgctxt "BookmarkDialog" +msgid "Server password" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:56 +msgctxt "BookmarkDialog" +msgid "Advanced" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:60 +msgctxt "BookmarkDialog" +msgid "Name, nickname, gateway, ServerQuery" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:71 +#: crates/voelin-ui/ui/screens/dialogs.slint:71 +msgctxt "BookmarkDialog" +msgid "Name" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:72 +msgctxt "BookmarkDialog" +msgid "Empty: the address, then the server's own name once connected." +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:73 +msgctxt "BookmarkDialog" +msgid "The server's name" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:76 +#: crates/voelin-ui/ui/screens/dialogs.slint:76 +msgctxt "BookmarkDialog" +msgid "Nickname" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:77 +msgctxt "BookmarkDialog" +msgid "Empty: the nickname of your identity." +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:81 +msgctxt "BookmarkDialog" +msgid "Invisible presence and chat without joining" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:87 +#: crates/voelin-ui/ui/screens/dialogs.slint:87 +msgctxt "BookmarkDialog" +msgid "Gateway URL" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:88 +msgctxt "BookmarkDialog" +msgid "Empty: looked up in DNS, as published by the server's admin." +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:89 +msgctxt "BookmarkDialog" +msgid "Found automatically" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:94 +#: crates/voelin-ui/ui/screens/dialogs.slint:94 +msgctxt "BookmarkDialog" +msgid "Query transport" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:103 +#: crates/voelin-ui/ui/screens/dialogs.slint:103 +msgctxt "BookmarkDialog" +msgid "Query address" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:110 +#: crates/voelin-ui/ui/screens/dialogs.slint:110 +msgctxt "BookmarkDialog" +msgid "Query login" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:114 +#: crates/voelin-ui/ui/screens/dialogs.slint:114 +msgctxt "BookmarkDialog" +msgid "Query password" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:125 +msgctxt "BookmarkDialog" +msgid "Delete" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:133 +msgctxt "BookmarkDialog" +msgid "Cancel" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:138 +msgctxt "BookmarkDialog" +msgid "Join" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:138 +msgctxt "BookmarkDialog" +msgid "Add" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:138 +msgctxt "BookmarkDialog" +msgid "Save" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:223 +#: crates/voelin-ui/ui/screens/dialogs.slint:223 +msgctxt "ShareAudio" +msgid "Audio sources" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:233 +msgctxt "ShareAudio" +msgid "Add" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:238 +msgctxt "ShareAudio" +msgid "No audio: add your microphone, the desktop or an application." +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:261 +msgctxt "ShareCard" +msgid "You are sharing your screen" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:261 +#: crates/voelin-ui/ui/screens/dialogs.slint:261 +msgctxt "ShareCard" +msgid "Starting…" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:261 +msgctxt "ShareCard" +msgid "Share screen" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:262 +msgctxt "ShareCard" +msgid "Stream to the people in your channel." +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:272 +#: crates/voelin-ui/ui/screens/dialogs.slint:272 +msgctxt "ShareCard" +msgid "Viewers" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:277 +msgctxt "ShareCard" +msgid "" +"Nobody is watching yet. Viewers in your channel can join from their streams " +"list." +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:311 +msgctxt "ShareCard" +msgid "asks to watch" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:311 +msgctxt "ShareCard" +msgid "asks to watch: {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:311 +msgctxt "ShareCard" +msgid "connecting" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:311 +msgctxt "ShareCard" +msgid "watching" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:320 +msgctxt "ShareCard" +msgid "Accept" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:326 +msgctxt "ShareCard" +msgid "Deny" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:332 +msgctxt "ShareCard" +msgid "Remove" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:333 +msgctxt "ShareCard" +msgid "Remove {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:344 +msgctxt "ShareCard" +msgid "This stream has no sound." +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:350 +msgctxt "ShareCard" +msgid "Close" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:356 +msgctxt "ShareCard" +msgid "Stop sharing" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:365 +#: crates/voelin-ui/ui/screens/dialogs.slint:365 +msgctxt "ShareCard" +msgid "What to share" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:384 +#: crates/voelin-ui/ui/screens/dialogs.slint:384 +msgctxt "ShareCard" +msgid "Stream name" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:390 +#: crates/voelin-ui/ui/screens/dialogs.slint:390 +msgctxt "ShareCard" +msgid "Frame rate" +msgstr "" + +#. FPS_CHOICES (settings.rs). +#: crates/voelin-ui/ui/screens/dialogs.slint:395 +msgctxt "ShareCard" +msgid "15 fps" +msgstr "" + +#. FPS_CHOICES (settings.rs). +#: crates/voelin-ui/ui/screens/dialogs.slint:395 +msgctxt "ShareCard" +msgid "30 fps" +msgstr "" + +#. FPS_CHOICES (settings.rs). +#: crates/voelin-ui/ui/screens/dialogs.slint:395 +msgctxt "ShareCard" +msgid "60 fps" +msgstr "" + +#. FPS_CHOICES (settings.rs). +#: crates/voelin-ui/ui/screens/dialogs.slint:395 +msgctxt "ShareCard" +msgid "120 fps" +msgstr "" + +#. FPS_CHOICES (settings.rs). +#: crates/voelin-ui/ui/screens/dialogs.slint:395 +msgctxt "ShareCard" +msgid "144 fps" +msgstr "" + +#. FPS_CHOICES (settings.rs). +#: crates/voelin-ui/ui/screens/dialogs.slint:395 +msgctxt "ShareCard" +msgid "240 fps" +msgstr "" + +#. FPS_CHOICES (settings.rs). +#: crates/voelin-ui/ui/screens/dialogs.slint:395 +msgctxt "ShareCard" +msgid "320 fps" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:403 +msgctxt "ShareCard" +msgid "fps" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:404 +msgctxt "ShareCard" +msgid "Frames per second" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:412 +#: crates/voelin-ui/ui/screens/dialogs.slint:412 +msgctxt "ShareCard" +msgid "Quality" +msgstr "" + +#. BITRATE_CHOICES (settings.rs); Auto leaves the field empty. +#: crates/voelin-ui/ui/screens/dialogs.slint:417 +msgctxt "ShareCard" +msgid "Auto (up to 60 Mbit/s)" +msgstr "" + +#. BITRATE_CHOICES (settings.rs); Auto leaves the field empty. +#: crates/voelin-ui/ui/screens/dialogs.slint:417 +msgctxt "ShareCard" +msgid "Low (2.5 Mbit/s)" +msgstr "" + +#. BITRATE_CHOICES (settings.rs); Auto leaves the field empty. +#: crates/voelin-ui/ui/screens/dialogs.slint:417 +msgctxt "ShareCard" +msgid "Standard (4.6 Mbit/s)" +msgstr "" + +#. BITRATE_CHOICES (settings.rs); Auto leaves the field empty. +#: crates/voelin-ui/ui/screens/dialogs.slint:417 +msgctxt "ShareCard" +msgid "High (8 Mbit/s)" +msgstr "" + +#. BITRATE_CHOICES (settings.rs); Auto leaves the field empty. +#: crates/voelin-ui/ui/screens/dialogs.slint:417 +msgctxt "ShareCard" +msgid "10 Mbit/s" +msgstr "" + +#. BITRATE_CHOICES (settings.rs); Auto leaves the field empty. +#: crates/voelin-ui/ui/screens/dialogs.slint:417 +msgctxt "ShareCard" +msgid "20 Mbit/s" +msgstr "" + +#. BITRATE_CHOICES (settings.rs); Auto leaves the field empty. +#: crates/voelin-ui/ui/screens/dialogs.slint:417 +msgctxt "ShareCard" +msgid "40 Mbit/s" +msgstr "" + +#. BITRATE_CHOICES (settings.rs); Auto leaves the field empty. +#: crates/voelin-ui/ui/screens/dialogs.slint:417 +msgctxt "ShareCard" +msgid "Best (60 Mbit/s)" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:425 +msgctxt "ShareCard" +msgid "auto" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:425 +msgctxt "ShareCard" +msgid "kbit/s" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:426 +msgctxt "ShareCard" +msgid "Bitrate in kbit/s" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:436 +msgctxt "ShareCard" +msgid "Share system audio" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:444 +msgctxt "ShareCard" +msgid "Let everyone in the channel watch without asking" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:455 +msgctxt "ShareCard" +msgid "Cancel" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:461 +msgctxt "ShareCard" +msgid "Start sharing" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:497 +msgctxt "ClientAudioDialog" +msgid "Only changes what you hear." +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:505 +msgctxt "ClientAudioDialog" +msgid "Volume" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:516 +msgctxt "ClientAudioDialog" +msgid "Volume of {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:523 +msgctxt "ClientAudioDialog" +msgid "{}%" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:531 +msgctxt "ClientAudioDialog" +msgid "Mute for me" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:542 +msgctxt "ClientAudioDialog" +msgid "Watch {}'s stream" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:551 +msgctxt "ClientAudioDialog" +msgid "Reset" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:561 +msgctxt "ClientAudioDialog" +msgid "Close" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:571 +msgctxt "Credits" +msgid "Fonts, icons and emoji" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:598 +msgctxt "AboutDialog" +msgid "" +"Unofficial TeamSpeak 3/6 compatible client. Not affiliated with TeamSpeak " +"Systems GmbH." +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:628 +#: crates/voelin-ui/ui/screens/dialogs.slint:628 +msgctxt "AboutDialog" +msgid "Third-party notices" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:653 +msgctxt "AboutDialog" +msgid "Close" +msgstr "" + +#: crates/voelin-ui/ui/screens/drawers.slint:42 +msgctxt "Drawer" +msgid "Close" +msgstr "" + +#: crates/voelin-ui/ui/screens/drawers.slint:107 +msgctxt "PinCard" +msgid "Unpin" +msgstr "" + +#: crates/voelin-ui/ui/screens/drawers.slint:157 +msgctxt "PinsDrawer" +msgid "Pinned Messages" +msgstr "" + +#: crates/voelin-ui/ui/screens/drawers.slint:169 +msgctxt "PinsDrawer" +msgid "Nothing pinned yet." +msgstr "" + +#: crates/voelin-ui/ui/screens/drawers.slint:175 +msgctxt "PinsDrawer" +msgid "Hover a message and press the pin." +msgstr "" + +#: crates/voelin-ui/ui/screens/drawers.slint:184 +msgctxt "PinsDrawer" +msgid "Pinned messages" +msgstr "" + +#: crates/voelin-ui/ui/screens/drawers.slint:274 +#: crates/voelin-ui/ui/screens/drawers.slint:274 +msgctxt "TopicsDrawer" +msgid "Topics" +msgstr "" + +#: crates/voelin-ui/ui/screens/drawers.slint:282 +msgctxt "TopicsDrawer" +msgid "Search topics…" +msgstr "" + +#: crates/voelin-ui/ui/screens/drawers.slint:283 +msgctxt "TopicsDrawer" +msgid "Search topics" +msgstr "" + +#: crates/voelin-ui/ui/screens/drawers.slint:296 +msgctxt "TopicsDrawer" +msgid "No topics yet." +msgstr "" + +#: crates/voelin-ui/ui/screens/drawers.slint:302 +msgctxt "TopicsDrawer" +msgid "Start one from a message, or below." +msgstr "" + +#: crates/voelin-ui/ui/screens/drawers.slint:328 +msgctxt "TopicsDrawer" +msgid "Create Topic" +msgstr "" + +#: crates/voelin-ui/ui/screens/drawers.slint:336 +msgctxt "TopicDialog" +msgid "Start a topic" +msgstr "" + +#: crates/voelin-ui/ui/screens/drawers.slint:337 +msgctxt "TopicDialog" +msgid "From the chosen message." +msgstr "" + +#: crates/voelin-ui/ui/screens/drawers.slint:337 +msgctxt "TopicDialog" +msgid "A new thread in this chat." +msgstr "" + +#: crates/voelin-ui/ui/screens/drawers.slint:347 +msgctxt "TopicDialog" +msgid "What is it about?" +msgstr "" + +#: crates/voelin-ui/ui/screens/drawers.slint:348 +msgctxt "TopicDialog" +msgid "Title" +msgstr "" + +#: crates/voelin-ui/ui/screens/drawers.slint:361 +msgctxt "TopicDialog" +msgid "Cancel" +msgstr "" + +#: crates/voelin-ui/ui/screens/drawers.slint:367 +msgctxt "TopicDialog" +msgid "Create" +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:17 +msgctxt "ServerLinks" +msgid "Events" +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:25 +msgctxt "ServerLinks" +msgid "Members" +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:141 +msgctxt "EventCard" +msgid "Stream" +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:206 +msgctxt "EventCard" +msgid "Going" +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:213 +msgctxt "EventCard" +msgid "Maybe" +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:220 +msgctxt "EventCard" +msgid "Not going" +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:230 +msgctxt "EventCard" +msgid "Watch" +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:237 +msgctxt "EventCard" +msgid "Hide" +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:237 +msgctxt "EventCard" +msgid "Who answered" +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:242 +msgctxt "EventCard" +msgid "Edit {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:249 +msgctxt "EventCard" +msgid "Delete {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:260 +msgctxt "EventCard" +msgid "No answers yet." +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:260 +msgctxt "EventCard" +msgid "Answers" +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:274 +msgctxt "EventCard" +msgid "Created by {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:301 +msgctxt "EventsPage" +msgid "Events" +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:307 +msgctxt "EventsPage" +msgid "Scheduled on {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:316 +msgctxt "EventsPage" +msgid "Create Event" +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:322 +msgctxt "EventsPage" +msgid "This server's gateway does not keep events (or there is no gateway)." +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:327 +msgctxt "EventsPage" +msgid "Loading events…" +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:327 +msgctxt "EventsPage" +msgid "" +"Nothing scheduled. Create an event to invite people, or schedule a stream." +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:349 +msgctxt "EventDialog" +msgid "Create Event" +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:349 +msgctxt "EventDialog" +msgid "Edit Event" +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:350 +msgctxt "EventDialog" +msgid "Everyone on {} can see it and answer." +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:362 +#: crates/voelin-ui/ui/screens/events.slint:362 +msgctxt "EventDialog" +msgid "Title" +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:363 +msgctxt "EventDialog" +msgid "Raid night" +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:366 +#: crates/voelin-ui/ui/screens/events.slint:366 +msgctxt "EventDialog" +msgid "Description" +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:367 +msgctxt "EventDialog" +msgid "What happens, what to bring" +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:372 +#: crates/voelin-ui/ui/screens/events.slint:372 +msgctxt "EventDialog" +msgid "Starts" +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:373 +msgctxt "EventDialog" +msgid "YYYY-MM-DD HH:MM, local time" +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:377 +msgctxt "EventDialog" +msgid "Ends (optional)" +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:378 +msgctxt "EventDialog" +msgid "Empty: no end" +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:379 +msgctxt "EventDialog" +msgid "Ends" +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:383 +msgctxt "EventDialog" +msgid "Where" +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:388 +msgctxt "EventDialog" +msgid "Channel" +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:393 +msgctxt "EventDialog" +msgid "A scheduled stream" +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:394 +msgctxt "EventDialog" +msgid "Linked to the stream directory once the host goes live." +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:400 +#: crates/voelin-ui/ui/screens/events.slint:400 +msgctxt "EventDialog" +msgid "Stream title" +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:404 +#: crates/voelin-ui/ui/screens/events.slint:404 +msgctxt "EventDialog" +msgid "Game or subject" +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:420 +msgctxt "EventDialog" +msgid "Delete" +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:428 +msgctxt "EventDialog" +msgid "Cancel" +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:434 +msgctxt "EventDialog" +msgid "Create" +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:434 +msgctxt "EventDialog" +msgid "Save" +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:62 +msgctxt "ContactRow" +msgid "Blocked" +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:88 +msgctxt "ContactRow" +msgid "Message {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:98 +msgctxt "ContactRow" +msgid "Poke {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:108 +msgctxt "ContactRow" +msgid "Join {}'s channel" +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:118 +msgctxt "ContactRow" +msgid "Watch {}'s stream" +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:146 +msgctxt "FriendsPage" +msgid "Friends" +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:155 +msgctxt "FriendsPage" +msgid "Online — {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:155 +msgctxt "FriendsPage" +msgid "All — {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:155 +msgctxt "FriendsPage" +msgid "Blocked — {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:157 +#: crates/voelin-ui/ui/screens/friends.slint:157 +msgctxt "FriendsPage" +msgid "Which contacts" +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:171 +#: crates/voelin-ui/ui/screens/friends.slint:171 +#: crates/voelin-ui/ui/screens/friends.slint:171 +#: crates/voelin-ui/ui/screens/friends.slint:171 +msgctxt "FriendsPage" +msgid "Search contacts" +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:177 +msgctxt "FriendsPage" +msgid "Online" +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:177 +msgctxt "FriendsPage" +msgid "All" +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:177 +msgctxt "FriendsPage" +msgid "Blocked" +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:197 +msgctxt "FriendsPage" +msgid "None of your friends is online right now." +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:198 +msgctxt "FriendsPage" +msgid "You have blocked no one." +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:199 +msgctxt "FriendsPage" +msgid "No contacts yet." +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:205 +msgctxt "FriendsPage" +msgid "" +"Open a person's card in a server's members panel to add them as a friend or " +"to block them. Friends show up here on every server they are on." +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:215 +msgctxt "FriendsPage" +msgid "Go to a server" +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:223 +msgctxt "FriendsPage" +msgid "Contacts" +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:246 +msgctxt "ContactPanel" +msgid "Close" +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:285 +msgctxt "ContactPanel" +msgid "Friend" +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:290 +msgctxt "ContactPanel" +msgid "Blocked" +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:302 +msgctxt "ContactPanel" +msgid "Message" +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:310 +msgctxt "ContactPanel" +msgid "Poke" +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:321 +msgctxt "ContactPanel" +msgid "Join" +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:329 +msgctxt "ContactPanel" +msgid "Watch" +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:336 +msgctxt "ContactPanel" +msgid "Where" +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:336 +msgctxt "ContactPanel" +msgid "Last seen" +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:357 +msgctxt "ContactPanel" +msgid "Not seen on your servers yet." +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:364 +msgctxt "ContactPanel" +msgid "Note" +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:365 +msgctxt "ContactPanel" +msgid "Only on this device. Press Enter to keep it." +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:368 +msgctxt "ContactPanel" +msgid "Add a note" +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:370 +msgctxt "ContactPanel" +msgid "Note about {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:378 +msgctxt "ContactPanel" +msgid "Volume for me" +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:384 +msgctxt "ContactPanel" +msgid "{}%" +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:393 +msgctxt "ContactPanel" +msgid "Unmute for me" +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:393 +msgctxt "ContactPanel" +msgid "Mute for me" +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:407 +msgctxt "ContactPanel" +msgid "Volume of {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:417 +msgctxt "ContactPanel" +msgid "Remove friend" +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:417 +msgctxt "ContactPanel" +msgid "Add friend" +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:424 +msgctxt "ContactPanel" +msgid "Unblock" +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:424 +msgctxt "ContactPanel" +msgid "Block" +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:431 +msgctxt "ContactPanel" +msgid "Forget this contact" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:105 +msgctxt "SidebarArt" +msgid "Hang out" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:105 +msgctxt "SidebarArt" +msgid "Play together" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:105 +msgctxt "SidebarArt" +msgid "Find your people" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:128 +msgctxt "HomeNav" +msgid "Home" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:134 +msgctxt "HomeNav" +msgid "Friends" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:140 +msgctxt "HomeNav" +msgid "Direct Messages" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:147 +msgctxt "HomeNav" +msgid "Library" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:157 +msgctxt "HomeNav" +msgid "Quick Actions" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:165 +msgctxt "HomeNav" +msgid "Add a Server" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:170 +msgctxt "HomeNav" +msgid "Join a Server" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:175 +msgctxt "HomeNav" +msgid "Find Friends" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:257 +msgctxt "HomeBanner" +msgid "Talk." +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:257 +msgctxt "HomeBanner" +msgid "Watch." +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:257 +msgctxt "HomeBanner" +msgid "Share." +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:257 +msgctxt "HomeBanner" +msgid "Together." +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:308 +msgctxt "HomeBanner" +msgid "Voice, chat and streams\non TeamSpeak servers." +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:309 +msgctxt "HomeBanner" +msgid "Not reached yet" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:316 +msgctxt "HomeBanner" +msgid "Talk. Watch. Share. Or look in without joining." +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:327 +msgctxt "HomeBanner" +msgid "Add a Server" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:333 +msgctxt "HomeBanner" +msgid "Connecting…" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:333 +msgctxt "HomeBanner" +msgid "Connect" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:339 +msgctxt "HomeBanner" +msgid "Open" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:350 +msgctxt "HomeBanner" +msgid "Previous" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:357 +msgctxt "HomeBanner" +msgid "Next" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:650 +msgctxt "ServerCard" +msgid "Invisible" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:660 +msgctxt "ServerCard" +msgid "Open" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:660 +msgctxt "ServerCard" +msgid "Connecting…" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:660 +msgctxt "ServerCard" +msgid "Join" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:911 +msgctxt "HomePage" +msgid "Friends Online" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:913 +msgctxt "HomePage" +msgid "View All ({})" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:921 +msgctxt "HomePage" +msgid "" +"No friends online. Add friends from a person's card on a server: they show " +"up here, wherever they are." +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:950 +#: crates/voelin-ui/ui/screens/home.slint:950 +#: crates/voelin-ui/ui/screens/home.slint:950 +msgctxt "HomePage" +msgid "Find Friends" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:981 +msgctxt "HomePage" +msgid "Messages" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:983 +#: crates/voelin-ui/ui/screens/home.slint:983 +msgctxt "HomePage" +msgid "See All" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:995 +#: crates/voelin-ui/ui/screens/home.slint:995 +msgctxt "HomePage" +msgid "Your Servers" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:997 +#: crates/voelin-ui/ui/screens/home.slint:997 +msgctxt "HomePage" +msgid "Add a Server" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:1001 +#: crates/voelin-ui/ui/screens/home.slint:1001 +msgctxt "HomePage" +msgid "No servers yet. Add one with its address." +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:1020 +msgctxt "HomePage" +msgid "Live Now" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:1020 +msgctxt "HomePage" +msgid "Featured Live Rooms" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:1022 +#: crates/voelin-ui/ui/screens/home.slint:1022 +msgctxt "HomePage" +msgid "See More Live" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:1026 +msgctxt "HomePage" +msgid "" +"No one is live on your servers right now. Streams of TeamSpeak 6 servers and " +"those a gateway lists show up here." +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:1076 +msgctxt "HomePage" +msgid "Recent Chats" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:1078 +msgctxt "HomePage" +msgid "View All" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:1082 +msgctxt "HomePage" +msgid "Chats you had show up here, from every server." +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:1093 +msgctxt "HomePage" +msgid "Recent Activity" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:1246 +msgctxt "HomeAside" +msgid "Friend Activity" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:1247 +msgctxt "HomeAside" +msgid "See All" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:1251 +msgctxt "HomeAside" +msgid "What your friends do shows up here." +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:1265 +msgctxt "HomeAside" +msgid "Quick Actions" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:1269 +msgctxt "HomeAside" +msgid "Find Friends" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:1270 +msgctxt "HomeAside" +msgid "Search your contacts" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:1279 +msgctxt "HomeAside" +msgid "Join a Server" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:1280 +msgctxt "HomeAside" +msgid "Enter an address" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:1285 +msgctxt "HomeAside" +msgid "Add a Server" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:1286 +msgctxt "HomeAside" +msgid "Save it for later" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:1291 +msgctxt "HomeAside" +msgid "What's Happening" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:1294 +msgctxt "HomeAside" +msgid "Events, scheduled streams and news of your servers show up here." +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:1325 +msgctxt "LibraryPage" +msgid "Library" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:1331 +msgctxt "LibraryPage" +msgid "Recordings and clips from the Stream Studio, in {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:1339 +msgctxt "LibraryPage" +msgid "Open Folder" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:1345 +msgctxt "LibraryPage" +msgid "" +"Nothing recorded yet. Recordings and clips saved in the Stream Studio appear " +"here." +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:1397 +msgctxt "LibraryPage" +msgid "Play" +msgstr "" + +#: crates/voelin-ui/ui/screens/members.slint:21 +msgctxt "MemberBadges" +msgid "server admin" +msgstr "" + +#: crates/voelin-ui/ui/screens/members.slint:28 +msgctxt "MemberBadges" +msgid "priority speaker" +msgstr "" + +#: crates/voelin-ui/ui/screens/members.slint:35 +msgctxt "MemberBadges" +msgid "channel commander" +msgstr "" + +#: crates/voelin-ui/ui/screens/members.slint:42 +msgctxt "MemberBadges" +msgid "recording" +msgstr "" + +#: crates/voelin-ui/ui/screens/members.slint:60 +msgctxt "GroupHeader" +msgid "{} — {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/members.slint:177 +msgctxt "MemberRow" +msgid "talk power {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/members.slint:227 +msgctxt "MemberCardPopup" +msgid "Close" +msgstr "" + +#: crates/voelin-ui/ui/screens/members.slint:242 +msgctxt "MemberCardPopup" +msgid "Groups" +msgstr "" + +#: crates/voelin-ui/ui/screens/members.slint:258 +msgctxt "MemberCardPopup" +msgid "talk power {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/members.slint:273 +msgctxt "MemberCardPopup" +msgid "Volume" +msgstr "" + +#: crates/voelin-ui/ui/screens/members.slint:280 +msgctxt "MemberCardPopup" +msgid "{}%" +msgstr "" + +#: crates/voelin-ui/ui/screens/members.slint:290 +msgctxt "MemberCardPopup" +msgid "Unmute for me" +msgstr "" + +#: crates/voelin-ui/ui/screens/members.slint:290 +msgctxt "MemberCardPopup" +msgid "Mute for me" +msgstr "" + +#: crates/voelin-ui/ui/screens/members.slint:305 +msgctxt "MemberCardPopup" +msgid "Volume of {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/members.slint:315 +msgctxt "MemberCardPopup" +msgid "Watch stream" +msgstr "" + +#: crates/voelin-ui/ui/screens/members.slint:324 +msgctxt "MemberCardPopup" +msgid "Message" +msgstr "" + +#: crates/voelin-ui/ui/screens/members.slint:332 +msgctxt "MemberCardPopup" +msgid "Poke" +msgstr "" + +#: crates/voelin-ui/ui/screens/members.slint:342 +msgctxt "MemberCardPopup" +msgid "Friend" +msgstr "" + +#: crates/voelin-ui/ui/screens/members.slint:342 +msgctxt "MemberCardPopup" +msgid "Add friend" +msgstr "" + +#: crates/voelin-ui/ui/screens/members.slint:352 +msgctxt "MemberCardPopup" +msgid "Blocked" +msgstr "" + +#: crates/voelin-ui/ui/screens/members.slint:352 +msgctxt "MemberCardPopup" +msgid "Block" +msgstr "" + +#: crates/voelin-ui/ui/screens/members.slint:372 +msgctxt "MembersPanel" +msgid "Members — {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/members.slint:382 +#: crates/voelin-ui/ui/screens/members.slint:382 +msgctxt "MembersPanel" +msgid "Search members" +msgstr "" + +#: crates/voelin-ui/ui/screens/members.slint:400 +msgctxt "MembersPanel" +msgid "Search members…" +msgstr "" + +#: crates/voelin-ui/ui/screens/members.slint:410 +msgctxt "MembersPanel" +msgid "Connect or observe to see who is here." +msgstr "" + +#: crates/voelin-ui/ui/screens/members.slint:419 +msgctxt "MembersPanel" +msgid "Members" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:139 +msgctxt "ConversationList" +msgid "Messages" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:148 +msgctxt "ConversationList" +msgid "New message" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:159 +msgctxt "ConversationList" +msgid "Search messages…" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:160 +msgctxt "ConversationList" +msgid "Search messages" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:167 +msgctxt "ConversationList" +msgid "All" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:175 +msgctxt "ConversationList" +msgid "Unread" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:184 +msgctxt "ConversationList" +msgid "Inbox" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:194 +msgctxt "ConversationList" +msgid "" +"No offline messages. Servers keep them for you while you are away; connect " +"with voice to fetch them." +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:195 +msgctxt "ConversationList" +msgid "Nothing unread." +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:196 +msgctxt "ConversationList" +msgid "" +"No conversations yet. Message someone from their card on a server, or with " +"the + above." +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:204 +msgctxt "ConversationList" +msgid "Conversations" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:230 +msgctxt "Conversation" +msgid "Pick a conversation, or start one with +." +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:283 +msgctxt "Conversation" +msgid "Poke {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:291 +msgctxt "Conversation" +msgid "Join {}'s channel" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:299 +msgctxt "Conversation" +msgid "Remove friend" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:299 +msgctxt "Conversation" +msgid "Add friend" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:308 +msgctxt "Conversation" +msgid "More" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:322 +msgctxt "Conversation" +msgid "Unmute for me" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:322 +msgctxt "Conversation" +msgid "Mute for me" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:323 +msgctxt "Conversation" +msgid "Write an offline message" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:324 +msgctxt "Conversation" +msgid "Unblock" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:324 +msgctxt "Conversation" +msgid "Block" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:366 +msgctxt "Conversation" +msgid "Fetching the message…" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:377 +msgctxt "Conversation" +msgid "Reply" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:383 +msgctxt "Conversation" +msgid "Mark unread" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:389 +msgctxt "Conversation" +msgid "Delete" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:416 +msgctxt "Conversation" +msgid "Connect" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:423 +msgctxt "Conversation" +msgid "Offline message" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:432 +msgctxt "Conversation" +msgid "Message @{}…" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:432 +msgctxt "Conversation" +msgid "{} cannot get messages now" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:479 +msgctxt "DmProfile" +msgid "Online" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:479 +msgctxt "DmProfile" +msgid "Offline" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:501 +msgctxt "DmProfile" +msgid "About" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:506 +msgctxt "DmProfile" +msgid "No note. Add one on the Friends page." +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:528 +msgctxt "DmProfile" +msgid "Servers — {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:556 +msgctxt "DmProfile" +msgid "Shared Media — {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:576 +msgctxt "DmProfile" +msgid "Picture {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:612 +msgctxt "DmProfile" +msgid "Shared Files — {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:649 +msgctxt "DmProfile" +msgid "Files linked in this conversation show up here." +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:659 +msgctxt "DmProfile" +msgid "Volume for me" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:665 +msgctxt "DmProfile" +msgid "{}%" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:674 +msgctxt "DmProfile" +msgid "Unmute for me" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:674 +msgctxt "DmProfile" +msgid "Mute for me" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:688 +msgctxt "DmProfile" +msgid "Volume of {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:702 +msgctxt "OfflineDialog" +msgid "Offline message to {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:703 +msgctxt "OfflineDialog" +msgid "The server keeps it until {} reads it." +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:709 +#: crates/voelin-ui/ui/screens/messages.slint:709 +#: crates/voelin-ui/ui/screens/messages.slint:709 +msgctxt "OfflineDialog" +msgid "Subject" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:717 +#: crates/voelin-ui/ui/screens/messages.slint:717 +msgctxt "OfflineDialog" +msgid "Message" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:720 +msgctxt "OfflineDialog" +msgid "Your message" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:731 +msgctxt "OfflineDialog" +msgid "Cancel" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:737 +msgctxt "OfflineDialog" +msgid "Send" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:32 +msgctxt "ChannelBar" +msgid "Back" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:65 +msgctxt "ChannelBar" +msgid "Leave" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:122 +msgctxt "PhonePlayer" +msgid "Stream picture" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:167 +msgctxt "PhonePlayer" +msgid "Quality" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:173 +msgctxt "PhonePlayer" +msgid "{}p" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:178 +msgctxt "PhonePlayer" +msgid "Full screen" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:229 +msgctxt "PhonePlayer" +msgid "Mute" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:229 +msgctxt "PhonePlayer" +msgid "Unmute" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:242 +msgctxt "PhonePlayer" +msgid "Stream volume" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:247 +msgctxt "PhonePlayer" +msgid "Close" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:247 +msgctxt "PhonePlayer" +msgid "Stop watching" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:284 +msgctxt "StreamPrompt" +msgid "{} is streaming" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:284 +msgctxt "StreamPrompt" +msgid "Untitled stream" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:292 +msgctxt "StreamPrompt" +msgid "Looking it up…" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:292 +msgctxt "StreamPrompt" +msgid "In {}; looking it up…" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:293 +msgctxt "StreamPrompt" +msgid "Your stream" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:294 +msgctxt "StreamPrompt" +msgid "{} · in {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:295 +msgctxt "StreamPrompt" +msgid "{} · {} watching" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:306 +msgctxt "StreamPrompt" +msgid "Show" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:306 +msgctxt "StreamPrompt" +msgid "Watch" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:415 +msgctxt "ChatHeader" +msgid "{} Chat" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:422 +msgctxt "ChatHeader" +msgid "Linked to this voice channel" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:430 +msgctxt "ChatHeader" +msgid "Pinned Messages" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:440 +msgctxt "ChatHeader" +msgid "Topics" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:449 +msgctxt "ChatHeader" +msgid "Members" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:518 +msgctxt "VoiceBar" +msgid "Voice" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:526 +msgctxt "VoiceBar" +msgid "Unmute" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:526 +msgctxt "VoiceBar" +msgid "Mute" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:533 +msgctxt "VoiceBar" +msgid "Undeafen" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:533 +msgctxt "VoiceBar" +msgid "Deafen" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:544 +#: crates/voelin-ui/ui/screens/mobile-voice.slint:544 +msgctxt "VoiceBar" +msgid "Go Live" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:562 +msgctxt "VoiceBar" +msgid "Live" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:571 +msgctxt "VoiceBar" +msgid "Sharing" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:571 +msgctxt "VoiceBar" +msgid "Share" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:577 +msgctxt "VoiceBar" +msgid "Leave" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:596 +msgctxt "TalkButton" +msgid "Hold to talk" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:668 +msgctxt "MobileVoice" +msgid "Invite: copy a link to this channel" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:683 +msgctxt "MobileVoice" +msgid "Invite" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:703 +msgctxt "MobileVoice" +msgid "Message #{}…" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile.slint:62 +msgctxt "MobileServers" +msgid "Add server" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile.slint:89 +msgctxt "ActivityPage" +msgid "Dismiss" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile.slint:151 +msgctxt "YouPage" +msgid "Offline" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile.slint:161 +msgctxt "YouPage" +msgid "Unmute" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile.slint:161 +msgctxt "YouPage" +msgid "Mute" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile.slint:169 +msgctxt "YouPage" +msgid "Undeafen" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile.slint:169 +msgctxt "YouPage" +msgid "Deafen" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile.slint:179 +msgctxt "YouPage" +msgid "Live" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile.slint:179 +msgctxt "YouPage" +msgid "Go Live" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile.slint:187 +msgctxt "YouPage" +msgid "Leave" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile.slint:196 +msgctxt "YouPage" +msgid "Settings" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile.slint:201 +msgctxt "YouPage" +msgid "My Account" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile.slint:202 +msgctxt "YouPage" +msgid "Profiles" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile.slint:203 +msgctxt "YouPage" +msgid "Appearance" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile.slint:204 +msgctxt "YouPage" +msgid "Voice & Video" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile.slint:205 +msgctxt "YouPage" +msgid "Streaming" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile.slint:206 +msgctxt "YouPage" +msgid "Notifications" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile.slint:207 +msgctxt "YouPage" +msgid "Privacy & Safety" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile.slint:208 +msgctxt "YouPage" +msgid "Devices" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile.slint:209 +msgctxt "YouPage" +msgid "Keybinds" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile.slint:210 +msgctxt "YouPage" +msgid "Integrations" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile.slint:211 +msgctxt "YouPage" +msgid "Advanced" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile.slint:220 +msgctxt "YouPage" +msgid "About {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile.slint:243 +msgctxt "PhoneSheet" +msgid "Back" +msgstr "" + +#: crates/voelin-ui/ui/screens/overlays.slint:112 +#: crates/voelin-ui/ui/screens/overlays.slint:112 +msgctxt "NotificationsPanel" +msgid "Notifications" +msgstr "" + +#: crates/voelin-ui/ui/screens/overlays.slint:139 +msgctxt "NotificationsPanel" +msgid "Mark all read" +msgstr "" + +#: crates/voelin-ui/ui/screens/overlays.slint:146 +msgctxt "NotificationsPanel" +msgid "Clear all" +msgstr "" + +#: crates/voelin-ui/ui/screens/overlays.slint:155 +msgctxt "NotificationsPanel" +msgid "Notification settings" +msgstr "" + +#: crates/voelin-ui/ui/screens/overlays.slint:185 +msgctxt "NotificationsPanel" +msgid "{} want to watch your stream" +msgstr "" + +#: crates/voelin-ui/ui/screens/overlays.slint:225 +msgctxt "NotificationsPanel" +msgid "" +"Nothing new. Mentions, pokes, messages, event reminders and friends coming " +"online show up here." +msgstr "" + +#: crates/voelin-ui/ui/screens/overlays.slint:343 +#: crates/voelin-ui/ui/screens/overlays.slint:343 +msgctxt "SearchPalette" +msgid "Search" +msgstr "" + +#: crates/voelin-ui/ui/screens/overlays.slint:353 +msgctxt "SearchPalette" +msgid "Search servers, channels, people, settings…" +msgstr "" + +#: crates/voelin-ui/ui/screens/overlays.slint:391 +msgctxt "SearchPalette" +msgid "Type to find a server, a channel, a person or a settings page." +msgstr "" + +#: crates/voelin-ui/ui/screens/overlays.slint:391 +msgctxt "SearchPalette" +msgid "Nothing matches “{}”." +msgstr "" + +#: crates/voelin-ui/ui/screens/overlays.slint:417 +msgctxt "SearchPalette" +msgid "to choose" +msgstr "" + +#: crates/voelin-ui/ui/screens/overlays.slint:427 +msgctxt "SearchPalette" +msgid "to open" +msgstr "" + +#: crates/voelin-ui/ui/screens/overlays.slint:437 +msgctxt "SearchPalette" +msgid "to close" +msgstr "" + +#: crates/voelin-ui/ui/screens/overlays.slint:451 +msgctxt "Lightbox" +msgid "Picture" +msgstr "" + +#: crates/voelin-ui/ui/screens/overlays.slint:477 +msgctxt "Lightbox" +msgid "Close" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:174 +msgctxt "AccountSection" +msgid "Identity in use" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:176 +msgctxt "AccountSection" +msgid "On {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:176 +msgctxt "AccountSection" +msgid "The default identity" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:200 +msgctxt "AccountSection" +msgid "Identity “{}” · security level {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:207 +msgctxt "AccountSection" +msgid "Manage identities" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:213 +msgctxt "AccountSection" +msgid "Unique id on TeamSpeak 3 servers" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:217 +msgctxt "AccountSection" +msgid "Unique id on TeamSpeak 6 servers" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:221 +msgctxt "AccountSection" +msgid "" +"Servers know you by this id: your groups and permissions belong to it. Your " +"nickname is set per server, in the server's bookmark." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:232 +msgctxt "IdentityActions" +msgid "Use as default" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:239 +msgctxt "IdentityActions" +msgid "Export" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:245 +msgctxt "IdentityActions" +msgid "Delete {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:276 +msgctxt "IdentityRow" +msgid "Name of the identity" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:280 +msgctxt "IdentityRow" +msgid "Default" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:298 +msgctxt "IdentityRow" +msgid "TeamSpeak 3: {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:304 +msgctxt "IdentityRow" +msgid "TeamSpeak 6: {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:313 +msgctxt "IdentityRow" +msgid "" +"{} · security level {}; raising it to {} on every core (best so far: {})…" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:314 +msgctxt "IdentityRow" +msgid "{} · security level {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:329 +msgctxt "IdentityRow" +msgid "Level to reach" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:334 +msgctxt "IdentityRow" +msgid "Stop" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:334 +msgctxt "IdentityRow" +msgid "Raise" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:346 +msgctxt "IdentityRow" +msgid "Used by {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:358 +msgctxt "ProfilesSection" +msgid "Identities" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:360 +msgctxt "ProfilesSection" +msgid "" +"Each identity is a unique id on every server. Keys never leave this device " +"unless you export them." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:371 +msgctxt "ProfilesSection" +msgid "" +"Servers know you by the default identity's unique id, from the next " +"connection on, unless a server names another below. The security level is " +"hash cash: servers may require a minimum (often 8). Each level takes about " +"twice as long as the one before. Exported identities are written as " +"TeamSpeak 3 .ini files into your downloads folder; they hold the private key." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:375 +msgctxt "ProfilesSection" +msgid "Import from TeamSpeak" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:377 +msgctxt "ProfilesSection" +msgid "" +"From the official clients' settings and .ini exports on this device; their " +"files are only read." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:379 +msgctxt "ProfilesSection" +msgid "Import identities from TeamSpeak on start" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:380 +msgctxt "ProfilesSection" +msgid "" +"While you use the identity Voelin made for you, the one TeamSpeak uses " +"becomes your default, once." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:389 +msgctxt "ProfilesSection" +msgid "Find identities" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:395 +msgctxt "ProfilesSection" +msgid "Import the chosen ones" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:412 +msgctxt "ProfilesSection" +msgid "{} (already here)" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:412 +msgctxt "ProfilesSection" +msgid "{} · level {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:426 +msgctxt "ProfilesSection" +msgid "Identity per server" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:429 +msgctxt "ProfilesSection" +msgid "Add a server first." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:445 +msgctxt "ProfilesSection" +msgid "Identity for {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:459 +msgctxt "LayerRow" +msgid "Size or scale" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:460 +msgctxt "LayerRow" +msgid "Max fps" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:461 +msgctxt "LayerRow" +msgid "kbit/s" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:462 +msgctxt "LayerRow" +msgid "Min kbit/s" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:463 +msgctxt "LayerRow" +msgid "Max kbit/s" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:485 +#: crates/voelin-ui/ui/screens/settings-pages.slint:485 +msgctxt "LayerRow" +msgid "Remove the layer" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:506 +msgctxt "GainSlider" +msgid "Gain of {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:513 +msgctxt "GainSlider" +msgid "{}%" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:565 +msgctxt "SourceRow" +msgid "Unmute" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:565 +msgctxt "SourceRow" +msgid "Mute" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:577 +msgctxt "SourceRow" +msgid "Remove {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:596 +msgctxt "StreamingSection" +msgid "Stream defaults" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:599 +msgctxt "StreamingSection" +msgid "Frame rate" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:600 +msgctxt "StreamingSection" +msgid "The most frames a second; the source may give fewer." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:609 +msgctxt "StreamingSection" +msgid "Video bitrate" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:610 +msgctxt "StreamingSection" +msgid "" +"Of the single layer, when no layers are set below. 0: automatic, from the " +"size and frame rate, up to 60 Mbit/s." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:619 +msgctxt "StreamingSection" +msgid "Video codec" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:621 +#: crates/voelin-ui/ui/screens/settings-pages.slint:621 +msgctxt "StreamingSection" +msgid "Auto" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:629 +msgctxt "StreamingSection" +msgid "Screen capture" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:631 +msgctxt "StreamingSection" +msgid "Portal" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:640 +msgctxt "StreamingSection" +msgid "Simulcast layers" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:642 +msgctxt "StreamingSection" +msgid "" +"Copies of the stream at other sizes and bitrates; each viewer gets the one " +"their connection carries. None: one layer." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:651 +msgctxt "StreamingSection" +msgid "Add a layer" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:656 +msgctxt "StreamingSection" +msgid "" +"Size is WIDTHxHEIGHT (1280x720) or a scale of the source (0.5). Changes " +"apply to a live stream at once." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:660 +msgctxt "StreamingSection" +msgid "Audio sources" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:662 +msgctxt "StreamingSection" +msgid "Mixed into the stream's sound; none: the stream is silent." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:672 +msgctxt "StreamingSection" +msgid "Desktop without {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:678 +msgctxt "StreamingSection" +msgid "Microphone" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:684 +msgctxt "StreamingSection" +msgid "The shared window's app" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:694 +msgctxt "StreamingSection" +msgid "No application plays audio now" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:695 +msgctxt "StreamingSection" +msgid "Application" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:700 +msgctxt "StreamingSection" +msgid "Add the application" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:708 +msgctxt "StreamingSection" +msgid "Recording and replay" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:711 +msgctxt "StreamingSection" +msgid "Replay buffer" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:712 +msgctxt "StreamingSection" +msgid "Seconds kept for saving a clip after the fact (0: off)." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:721 +msgctxt "StreamingSection" +msgid "Replay memory" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:722 +msgctxt "StreamingSection" +msgid "Kept in memory; older parts go to a temporary file." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:731 +msgctxt "StreamingSection" +msgid "Recordings and clips go to" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:732 +msgctxt "StreamingSection" +msgid "Empty: Videos/{}. Press Enter to apply." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:736 +msgctxt "StreamingSection" +msgid "Recording folder" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:774 +msgctxt "ConfigRow" +msgid "Reset {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:783 +msgctxt "ConfigRow" +msgid "(read at start only)" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:814 +msgctxt "PermRow" +msgid "Everyone may {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:819 +msgctxt "PermRow" +msgid "server groups" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:820 +msgctxt "PermRow" +msgid "Server groups for {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:824 +msgctxt "PermRow" +msgid "channel groups" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:825 +msgctxt "PermRow" +msgid "Channel groups for {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:829 +msgctxt "PermRow" +msgid "Set" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:835 +msgctxt "PermRow" +msgid "Reset {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:881 +msgctxt "IntegrationsSection" +msgid "Gateways" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:883 +msgctxt "IntegrationsSection" +msgid "" +"A gateway gives a server invisible presence, chat without joining, history, " +"pins, reactions, topics, events and the stream directory." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:885 +msgctxt "IntegrationsSection" +msgid "" +"None of your servers has a gateway. Add its URL to a server's bookmark (Edit " +"server)." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:916 +msgctxt "IntegrationsSection" +msgid "Administer" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:933 +msgctxt "IntegrationsSection" +msgid "Gateway administration" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:935 +msgctxt "IntegrationsSection" +msgid "" +"The gateway's settings and who may do what. Values are JSON; Enter applies." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:941 +msgctxt "IntegrationsSection" +msgid "Reload its file" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:946 +msgctxt "IntegrationsSection" +msgid "Close" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:955 +msgctxt "IntegrationsSection" +msgid "Permissions" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:963 +msgctxt "IntegrationsSection" +msgid "Groups are TeamSpeak group ids, separated by commas." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:967 +msgctxt "IntegrationsSection" +msgid "Video encoders and decoders" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:984 +msgctxt "IntegrationsSection" +msgid "Check again" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:996 +msgctxt "IntegrationsSection" +msgid "Encoders" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1004 +msgctxt "IntegrationsSection" +msgid "Decoders" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1009 +msgctxt "IntegrationsSection" +msgid "" +"Each codec's decoders in the order they are tried: when one fails the next " +"takes over." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1056 +msgctxt "SettingRow" +msgid "Reset {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1076 +msgctxt "AdvancedSection" +msgid "Video encoding and decoding" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1079 +msgctxt "AdvancedSection" +msgid "Encoder" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1080 +msgctxt "AdvancedSection" +msgid "" +"auto, software, or the name of an encoder from Integrations. Press Enter to " +"apply." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1083 +msgctxt "AdvancedSection" +msgid "Encoder backend" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1091 +msgctxt "AdvancedSection" +msgid "Hardware acceleration" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1092 +msgctxt "AdvancedSection" +msgid "GPU encoders where available" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1100 +msgctxt "AdvancedSection" +msgid "Decoder" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1101 +msgctxt "AdvancedSection" +msgid "" +"auto, software, or the name of a decoder from Integrations; for streams " +"watched from now on. Press Enter to apply." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1104 +msgctxt "AdvancedSection" +msgid "Decoder backend" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1112 +msgctxt "AdvancedSection" +msgid "Hardware decoding" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1113 +msgctxt "AdvancedSection" +msgid "GPU decoders where available, before the software ones" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1122 +msgctxt "AdvancedSection" +msgid "Stream encryption" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1124 +msgctxt "AdvancedSection" +msgid "SRTP profiles offered for stream media, most preferred first." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1135 +msgctxt "AdvancedSection" +msgid "Earlier" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1143 +msgctxt "AdvancedSection" +msgid "Later" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1151 +msgctxt "AdvancedSection" +msgid "Do not offer {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1169 +msgctxt "AdvancedSection" +msgid "Offer" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1175 +msgctxt "AdvancedSection" +msgid "Chat history" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1178 +msgctxt "AdvancedSection" +msgid "Keep chat history on this device" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1179 +msgctxt "AdvancedSection" +msgid "Off: messages are kept in memory for this run only" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1187 +msgctxt "AdvancedSection" +msgid "Messages per page" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1188 +msgctxt "AdvancedSection" +msgid "Shown when a chat opens and per step back (0: all)." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1196 +msgctxt "AdvancedSection" +msgid "Delete messages after" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1197 +msgctxt "AdvancedSection" +msgid "Pinned ones stay (0: keep all)." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1199 +msgctxt "AdvancedSection" +msgid "days" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1206 +msgctxt "AdvancedSection" +msgid "Same message within" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1207 +msgctxt "AdvancedSection" +msgid "Two copies from different sources this close are one." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1216 +msgctxt "AdvancedSection" +msgid "Pictures in chat up to" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1217 +msgctxt "AdvancedSection" +msgid "Linked pictures this small are downloaded and shown (0: never)." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1227 +msgctxt "AdvancedSection" +msgid "Cache" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1230 +msgctxt "AdvancedSection" +msgid "Avatars and icons on disk" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1231 +msgctxt "AdvancedSection" +msgid "The least recently used go first (0: no limit)." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1240 +msgctxt "AdvancedSection" +msgid "Download avatars and icons" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1241 +msgctxt "AdvancedSection" +msgid "Of the servers you are on" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1249 +msgctxt "AdvancedSection" +msgid "Transfer progress every" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1250 +msgctxt "AdvancedSection" +msgid "How often file transfers report (0: continuously)." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1260 +msgctxt "AdvancedSection" +msgid "Logs and crash reports" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1268 +msgctxt "AdvancedSection" +msgid "Crash reports: {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1268 +msgctxt "AdvancedSection" +msgid "No crash report folder." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1278 +msgctxt "AdvancedSection" +msgid "Open" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1285 +msgctxt "AdvancedSection" +msgid "All settings" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1287 +msgctxt "AdvancedSection" +msgid "" +"Every setting by its key, as JSON. For what the pages do not show; Enter " +"applies, the arrow resets." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1291 +#: crates/voelin-ui/ui/screens/settings-pages.slint:1291 +msgctxt "AdvancedSection" +msgid "Filter settings" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:20 +msgctxt "SettingsNav" +msgid "Settings" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:26 +msgctxt "SettingsNav" +msgid "Customize your {} experience" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:38 +msgctxt "SettingsNav" +msgid "My Account" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:39 +msgctxt "SettingsNav" +msgid "Identity in use, unique ids" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:45 +msgctxt "SettingsNav" +msgid "Profiles" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:46 +msgctxt "SettingsNav" +msgid "Who servers see you as, import, export" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:52 +msgctxt "SettingsNav" +msgid "Appearance" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:53 +msgctxt "SettingsNav" +msgid "Themes, layout, text size" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:59 +msgctxt "SettingsNav" +msgid "Voice & Video" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:60 +msgctxt "SettingsNav" +msgid "Audio, camera, streaming" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:66 +msgctxt "SettingsNav" +msgid "Streaming" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:67 +msgctxt "SettingsNav" +msgid "Go live, stream settings" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:73 +msgctxt "SettingsNav" +msgid "Devices" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:74 +msgctxt "SettingsNav" +msgid "Manage your devices" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:80 +msgctxt "SettingsNav" +msgid "Notifications" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:81 +msgctxt "SettingsNav" +msgid "Messages, mentions, alerts" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:87 +msgctxt "SettingsNav" +msgid "Privacy & Safety" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:88 +msgctxt "SettingsNav" +msgid "Blocked people, who can reach you" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:94 +msgctxt "SettingsNav" +msgid "Keybinds" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:95 +msgctxt "SettingsNav" +msgid "Shortcuts, push-to-talk" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:101 +msgctxt "SettingsNav" +msgid "Integrations" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:102 +msgctxt "SettingsNav" +msgid "Gateways, encoders, decoders" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:109 +msgctxt "SettingsNav" +msgid "Advanced" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:110 +msgctxt "SettingsNav" +msgid "Experimental features" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:116 +msgctxt "SettingsNav" +msgid "About" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:117 +msgctxt "SettingsNav" +msgid "Version and notices" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:126 +#: crates/voelin-ui/ui/screens/settings.slint:126 +msgctxt "MicrophoneCard" +msgid "Microphone" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:142 +msgctxt "MicrophoneCard" +msgid "Stop Test" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:142 +msgctxt "MicrophoneCard" +msgid "Test Mic" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:145 +msgctxt "MicrophoneCard" +msgid "Stop the microphone test" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:145 +msgctxt "MicrophoneCard" +msgid "Test the microphone" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:150 +msgctxt "MicrophoneCard" +msgid "Input Volume" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:151 +msgctxt "MicrophoneCard" +msgid "{} dB" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:157 +msgctxt "MicrophoneCard" +msgid "Input volume" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:167 +msgctxt "MicrophoneCard" +msgid "Input Level" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:187 +msgctxt "MicrophoneCard" +msgid "Noise Suppression" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:188 +msgctxt "MicrophoneCard" +msgid "Reduces background noise" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:196 +msgctxt "MicrophoneCard" +msgid "Low" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:196 +msgctxt "MicrophoneCard" +msgid "Moderate" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:196 +msgctxt "MicrophoneCard" +msgid "High" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:196 +msgctxt "MicrophoneCard" +msgid "Very high" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:198 +msgctxt "MicrophoneCard" +msgid "Noise suppression level" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:206 +msgctxt "MicrophoneCard" +msgid "Echo Cancellation" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:207 +msgctxt "MicrophoneCard" +msgid "Prevents audio feedback" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:216 +msgctxt "MicrophoneCard" +msgid "Automatic Gain Control" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:217 +msgctxt "MicrophoneCard" +msgid "Keeps your volume consistent" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:228 +msgctxt "OutputCard" +msgid "Output" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:236 +msgctxt "OutputCard" +msgid "Speakers" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:244 +msgctxt "OutputCard" +msgid "Test Sound" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:249 +msgctxt "OutputCard" +msgid "Output Volume" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:250 +msgctxt "OutputCard" +msgid "{}%" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:256 +msgctxt "OutputCard" +msgid "Output volume" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:267 +msgctxt "PermissionsCard" +msgid "Streaming Permissions" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:269 +msgctxt "PermissionsCard" +msgid "Choose who can watch your streams without asking." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:271 +msgctxt "PermissionsCard" +msgid "Everyone" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:271 +msgctxt "PermissionsCard" +msgid "Anyone who asks can watch your streams" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:272 +msgctxt "PermissionsCard" +msgid "Friends Only" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:272 +msgctxt "PermissionsCard" +msgid "Only your friends can watch; others are asked" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:273 +msgctxt "PermissionsCard" +msgid "Voice Channel Only" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:273 +msgctxt "PermissionsCard" +msgid "Only people in your voice channel can watch" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:274 +msgctxt "PermissionsCard" +msgid "No One" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:274 +msgctxt "PermissionsCard" +msgid "Nobody can watch your streams" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:289 +#: crates/voelin-ui/ui/screens/settings.slint:289 +msgctxt "CameraCard" +msgid "Camera" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:305 +msgctxt "CameraCard" +msgid "Camera devices" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:335 +msgctxt "CameraCard" +msgid "The preview is off." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:355 +msgctxt "CameraCard" +msgid "Camera Preview" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:365 +msgctxt "CameraCard" +msgid "Stop the preview" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:365 +msgctxt "CameraCard" +msgid "Start the preview" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:376 +msgctxt "CameraCard" +msgid "Background Effects" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:381 +msgctxt "CameraCard" +msgid "None" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:381 +msgctxt "CameraCard" +msgid "Blur" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:384 +msgctxt "CameraCard" +msgid "Background effect" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:395 +msgctxt "VideoCard" +msgid "Video Settings" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:400 +msgctxt "VideoCard" +msgid "Resolution" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:402 +msgctxt "VideoCard" +msgid "Auto" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:404 +msgctxt "VideoCard" +msgid "Camera resolution" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:412 +msgctxt "VideoCard" +msgid "Frame Rate" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:416 +msgctxt "VideoCard" +msgid "Frame rate" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:424 +msgctxt "VideoCard" +msgid "Video Codec" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:426 +msgctxt "VideoCard" +msgid "Auto (best)" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:428 +msgctxt "VideoCard" +msgid "Video codec" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:437 +msgctxt "VideoCard" +msgid "Enable Hardware Acceleration" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:445 +msgctxt "VideoCard" +msgid "Mirror My Video" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:506 +msgctxt "QualityCard" +msgid "Stream Quality" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:512 +msgctxt "QualityCard" +msgid "Auto" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:513 +msgctxt "QualityCard" +msgid "The source's size" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:522 +msgctxt "QualityCard" +msgid "Lower bandwidth" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:531 +msgctxt "QualityCard" +msgid "Full HD" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:540 +msgctxt "QualityCard" +msgid "Higher quality" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:567 +msgctxt "QualityCard" +msgid "" +"Your own simulcast layers are set (Streaming page); a preset replaces them." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:575 +msgctxt "QualityCard" +msgid "Stream Bitrate" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:587 +msgctxt "QualityCard" +msgid "Stream bitrate" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:597 +msgctxt "QualityCard" +msgid "auto" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:599 +msgctxt "QualityCard" +msgid "Stream bitrate in kbit/s" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:623 +msgctxt "QualityCard" +msgid "" +"Automatic: from the size and frame rate, up to 60 Mbit/s (~27 GB per hour)" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:624 +msgctxt "QualityCard" +msgid "Estimated Upload Usage: ~{} GB per hour" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:669 +msgctxt "KeybindsSection" +msgid "Voice transmission" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:672 +#: crates/voelin-ui/ui/screens/settings.slint:672 +msgctxt "KeybindsSection" +msgid "Push-to-talk" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:672 +msgctxt "KeybindsSection" +msgid "Voice activation" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:672 +msgctxt "KeybindsSection" +msgid "Continuously" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:674 +msgctxt "KeybindsSection" +msgid "Transmit" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:681 +#: crates/voelin-ui/ui/screens/settings.slint:681 +msgctxt "KeybindsSection" +msgid "Voice activation level" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:682 +msgctxt "KeybindsSection" +msgid "{} dB" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:699 +msgctxt "KeybindsSection" +msgid "Input level" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:720 +msgctxt "KeybindsSection" +msgid "Global push-to-talk key" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:721 +msgctxt "KeybindsSection" +msgid "Works while other windows have focus" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:732 +msgctxt "KeybindsSection" +msgid "Push-to-talk key" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:736 +msgctxt "KeybindsSection" +msgid "Apply" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:748 +msgctxt "KeybindsSection" +msgid "" +"Keys are written like Ctrl+Shift+T, Alt+F1, CapsLock or MouseBack. On " +"Wayland the desktop asks to confirm the key and may let you pick another " +"one. The \"Hold to talk\" button in the window always works." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:752 +msgctxt "KeybindsSection" +msgid "Shortcuts in the window" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:755 +msgctxt "KeybindsSection" +msgid "Search servers, channels, people and settings" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:756 +msgctxt "KeybindsSection" +msgid "Choose and open a search result" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:757 +msgctxt "KeybindsSection" +msgid "Close the search, a dialog or a picture" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:758 +msgctxt "KeybindsSection" +msgid "Send a message" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:781 +msgctxt "PrivacySection" +msgid "Who can reach you" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:784 +msgctxt "PrivacySection" +msgid "Private messages" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:785 +msgctxt "PrivacySection" +msgid "Messages of everyone else are dropped." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:786 +#: crates/voelin-ui/ui/screens/settings.slint:786 +msgctxt "PrivacySection" +msgid "Everyone" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:786 +#: crates/voelin-ui/ui/screens/settings.slint:786 +msgctxt "PrivacySection" +msgid "Friends" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:786 +#: crates/voelin-ui/ui/screens/settings.slint:786 +msgctxt "PrivacySection" +msgid "Nobody" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:794 +msgctxt "PrivacySection" +msgid "Pokes" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:795 +msgctxt "PrivacySection" +msgid "Pokes of everyone else are dropped." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:805 +msgctxt "PrivacySection" +msgid "Blocked people" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:807 +msgctxt "PrivacySection" +msgid "" +"Their messages in channels show as \"blocked\"; their voice is muted for you." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:809 +msgctxt "PrivacySection" +msgid "Their private messages and pokes" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:810 +msgctxt "PrivacySection" +msgid "Hide them" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:810 +msgctxt "PrivacySection" +msgid "Show flagged" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:818 +msgctxt "PrivacySection" +msgid "" +"You have blocked no one. Block people from their card on a server or on the " +"Friends page." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:846 +msgctxt "PrivacySection" +msgid "Unblock" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:854 +msgctxt "PrivacySection" +msgid "Crash reports" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:857 +msgctxt "PrivacySection" +msgid "Save crash reports on this device" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:858 +msgctxt "PrivacySection" +msgid "Never uploaded" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:863 +msgctxt "PrivacySection" +msgid "" +"A report is a text file with the error and where it happened. It may contain " +"a server address from the error message. You can attach it to a bug report " +"yourself; the app never sends it anywhere." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:872 +msgctxt "NotificationsSection" +msgid "Notify me about" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:874 +msgctxt "NotificationsSection" +msgid "In the app: the bell. On the desktop: also a system notification." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:876 +msgctxt "NotificationsSection" +msgid "Mentions" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:877 +msgctxt "NotificationsSection" +msgid "Your name in a channel or server chat" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:878 +#: crates/voelin-ui/ui/screens/settings.slint:878 +#: crates/voelin-ui/ui/screens/settings.slint:878 +#: crates/voelin-ui/ui/screens/settings.slint:878 +#: crates/voelin-ui/ui/screens/settings.slint:878 +msgctxt "NotificationsSection" +msgid "Off" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:878 +#: crates/voelin-ui/ui/screens/settings.slint:878 +#: crates/voelin-ui/ui/screens/settings.slint:878 +#: crates/voelin-ui/ui/screens/settings.slint:878 +#: crates/voelin-ui/ui/screens/settings.slint:878 +msgctxt "NotificationsSection" +msgid "In the app" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:878 +#: crates/voelin-ui/ui/screens/settings.slint:878 +#: crates/voelin-ui/ui/screens/settings.slint:878 +#: crates/voelin-ui/ui/screens/settings.slint:878 +#: crates/voelin-ui/ui/screens/settings.slint:878 +msgctxt "NotificationsSection" +msgid "Desktop" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:886 +msgctxt "NotificationsSection" +msgid "Private messages" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:895 +msgctxt "NotificationsSection" +msgid "Pokes" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:904 +msgctxt "NotificationsSection" +msgid "Event reminders" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:905 +msgctxt "NotificationsSection" +msgid "Before events you can join start" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:914 +msgctxt "NotificationsSection" +msgid "Friends coming online" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:926 +msgctxt "NotificationsSection" +msgid "Send a test notification" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:937 +msgctxt "DevicesSection" +msgid "Audio" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:940 +#: crates/voelin-ui/ui/screens/settings.slint:940 +msgctxt "DevicesSection" +msgid "Microphone" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:953 +#: crates/voelin-ui/ui/screens/settings.slint:953 +msgctxt "DevicesSection" +msgid "Speakers" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:966 +#: crates/voelin-ui/ui/screens/settings.slint:966 +msgctxt "DevicesSection" +msgid "Playback buffer" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:967 +msgctxt "DevicesSection" +msgid "{} ms" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:982 +msgctxt "DevicesSection" +msgid "" +"A device that is unplugged stays chosen and is used again when it comes back." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:986 +msgctxt "DevicesSection" +msgid "Cameras" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1004 +msgctxt "DevicesSection" +msgid "" +"Cameras are used as sources in the Stream Studio; the camera chosen under " +"Voice & Video is the default." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1008 +msgctxt "DevicesSection" +msgid "Screen capture" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1011 +msgctxt "DevicesSection" +msgid "Capture with" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1013 +msgctxt "DevicesSection" +msgid "Automatic" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1013 +msgctxt "DevicesSection" +msgid "Desktop portal (Wayland)" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1013 +msgctxt "DevicesSection" +msgid "wlroots" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1015 +msgctxt "DevicesSection" +msgid "Capture backend" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1044 +#: crates/voelin-ui/ui/screens/settings.slint:1044 +msgctxt "AppearanceSection" +msgid "Theme" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1047 +msgctxt "AppearanceSection" +msgid "Dark" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1047 +msgctxt "AppearanceSection" +msgid "Light" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1047 +msgctxt "AppearanceSection" +msgid "System" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1056 +#: crates/voelin-ui/ui/screens/settings.slint:1056 +msgctxt "AppearanceSection" +msgid "Text size" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1057 +msgctxt "AppearanceSection" +msgid "{}%" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1073 +msgctxt "AppearanceSection" +msgid "Layout" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1076 +msgctxt "AppearanceSection" +msgid "Phone layout below this window width (pixels)" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1077 +msgctxt "AppearanceSection" +msgid "Narrower windows show one page at a time with a bottom navigation." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1082 +msgctxt "AppearanceSection" +msgid "Phone layout below this width" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1092 +msgctxt "AppearanceSection" +msgid "Image cache (MB)" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1093 +msgctxt "AppearanceSection" +msgid "Decoded avatars, icons, emoji and pictures kept in memory. In use: {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1098 +msgctxt "AppearanceSection" +msgid "Image cache in megabytes" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1125 +#: crates/voelin-ui/ui/screens/settings.slint:1125 +msgctxt "SettingsPage" +msgid "Voice & Video" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1126 +#: crates/voelin-ui/ui/screens/settings.slint:1126 +msgctxt "SettingsPage" +msgid "Keybinds" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1127 +#: crates/voelin-ui/ui/screens/settings.slint:1127 +msgctxt "SettingsPage" +msgid "Streaming" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1128 +#: crates/voelin-ui/ui/screens/settings.slint:1128 +msgctxt "SettingsPage" +msgid "Privacy & Safety" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1129 +#: crates/voelin-ui/ui/screens/settings.slint:1129 +msgctxt "SettingsPage" +msgid "My Account" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1130 +#: crates/voelin-ui/ui/screens/settings.slint:1130 +msgctxt "SettingsPage" +msgid "Profiles" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1131 +#: crates/voelin-ui/ui/screens/settings.slint:1131 +msgctxt "SettingsPage" +msgid "Devices" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1132 +#: crates/voelin-ui/ui/screens/settings.slint:1132 +msgctxt "SettingsPage" +msgid "Notifications" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1133 +#: crates/voelin-ui/ui/screens/settings.slint:1133 +msgctxt "SettingsPage" +msgid "Integrations" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1134 +#: crates/voelin-ui/ui/screens/settings.slint:1134 +msgctxt "SettingsPage" +msgid "Advanced" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1134 +#: crates/voelin-ui/ui/screens/settings.slint:1134 +msgctxt "SettingsPage" +msgid "Appearance" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1135 +msgctxt "SettingsPage" +msgid "Set up your audio, video, and streaming preferences for {}." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1136 +msgctxt "SettingsPage" +msgid "How your voice goes out, and the keys for it." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1137 +msgctxt "SettingsPage" +msgid "Defaults of your streams, their layers and their sound." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1138 +msgctxt "SettingsPage" +msgid "Who can reach you, blocked people, what the app keeps." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1139 +msgctxt "SettingsPage" +msgid "Your main account and server identity." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1140 +msgctxt "SettingsPage" +msgid "Your identities: each is a unique id on every server." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1141 +msgctxt "SettingsPage" +msgid "Microphones, speakers, cameras and screens." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1142 +msgctxt "SettingsPage" +msgid "What the bell and the desktop tell you." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1143 +msgctxt "SettingsPage" +msgid "Gateways of your servers, the video encoders and decoders here." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1144 +msgctxt "SettingsPage" +msgid "Encoding, encryption, history, cache, every setting." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1145 +msgctxt "SettingsPage" +msgid "Theme, text size and layout. Changes apply at once." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1159 +msgctxt "SettingsPage" +msgid "Settings section" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:47 +#: crates/voelin-ui/ui/screens/streams.slint:47 +msgctxt "StreamCard" +msgid "{} is streaming" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:47 +#: crates/voelin-ui/ui/screens/streams.slint:47 +msgctxt "StreamCard" +msgid "Untitled stream" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:53 +msgctxt "StreamCard" +msgid "Started before you joined; looking it up…" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:53 +msgctxt "StreamCard" +msgid "In {}; looking it up…" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:54 +msgctxt "StreamCard" +msgid "your stream" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:55 +msgctxt "StreamCard" +msgid "by {} · in {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:56 +msgctxt "StreamCard" +msgid "by {} · with sound" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:56 +msgctxt "StreamCard" +msgid "by {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:70 +msgctxt "StreamCard" +msgid "Watch" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:71 +msgctxt "StreamCard" +msgid "Watch {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:78 +msgctxt "StreamCard" +msgid "Show" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:86 +msgctxt "StreamCard" +msgid "Leave" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:103 +msgctxt "StreamsPanel" +msgid "In voice — {} ({})" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:103 +msgctxt "StreamsPanel" +msgid "Members" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:114 +msgctxt "StreamsPanel" +msgid "Open the voice channel" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:121 +msgctxt "StreamsPanel" +msgid "Join a channel with voice to see who is there." +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:146 +msgctxt "StreamsPanel" +msgid "Streams" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:153 +msgctxt "StreamsPanel" +msgid "YOU ARE LIVE" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:157 +msgctxt "StreamsPanel" +msgid "No streams on this server." +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:166 +msgctxt "StreamsPanel" +msgid "Viewers ({})" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:166 +msgctxt "StreamsPanel" +msgid "Manage" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:173 +msgctxt "StreamsPanel" +msgid "{} wants to watch" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:182 +msgctxt "StreamsPanel" +msgid "Accept" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:187 +msgctxt "StreamsPanel" +msgid "Deny" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:215 +msgctxt "StreamPlayer" +msgid "Stream picture" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:283 +msgctxt "StreamPlayer" +msgid "{} watching" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:303 +msgctxt "StreamPlayer" +msgid "Quality" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:310 +msgctxt "StreamPlayer" +msgid "{}p" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:329 +msgctxt "StreamPlayer" +msgid "Mute" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:329 +msgctxt "StreamPlayer" +msgid "Unmute" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:343 +msgctxt "StreamPlayer" +msgid "Stream volume" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:358 +msgctxt "StreamPlayer" +msgid "LIVE" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:383 +msgctxt "StreamPlayer" +msgid "Back to the chat (keeps watching)" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:390 +msgctxt "StreamPlayer" +msgid "Back to the window" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:390 +msgctxt "StreamPlayer" +msgid "Pop out" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:398 +msgctxt "StreamPlayer" +msgid "Exit full screen" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:398 +msgctxt "StreamPlayer" +msgid "Full screen" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:405 +msgctxt "StreamPlayer" +msgid "Close" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:405 +msgctxt "StreamPlayer" +msgid "Leave" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:419 +msgctxt "StreamInfo" +msgid "Title" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:420 +msgctxt "StreamInfo" +msgid "Streamer" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:421 +msgctxt "StreamInfo" +msgid "Picture" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:422 +msgctxt "StreamInfo" +msgid "Watching for" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:423 +msgctxt "StreamInfo" +msgid "Viewers" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:423 +msgctxt "StreamInfo" +msgid "{}" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:451 +msgctxt "StreamViewer" +msgid "Stream viewer" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:462 +msgctxt "StreamViewer" +msgid "{} in voice" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:469 +msgctxt "StreamViewer" +msgid "Close" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:469 +msgctxt "StreamViewer" +msgid "Leave" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:503 +msgctxt "StreamViewer" +msgid "Streamed in your voice channel, {}. The streamer decides who may watch." +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:503 +msgctxt "StreamViewer" +msgid "Streamed in the {} voice channel. The streamer decides who may watch." +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:518 +msgctxt "StreamViewer" +msgid "{} Chat" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:518 +msgctxt "StreamViewer" +msgid "Chat" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:523 +msgctxt "StreamViewer" +msgid "Stream Info" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:538 +msgctxt "StreamViewer" +msgid "Message {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:538 +msgctxt "StreamViewer" +msgid "Message" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:146 +msgctxt "SceneRow" +msgid "Scene menu" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:158 +msgctxt "SceneRow" +msgid "Go live with this scene" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:159 +msgctxt "SceneRow" +msgid "Rename" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:160 +msgctxt "SceneRow" +msgid "Remove" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:181 +#: crates/voelin-ui/ui/screens/studio-parts.slint:181 +msgctxt "ScenesCard" +msgid "Scenes" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:185 +msgctxt "ScenesCard" +msgid "Add scene" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:212 +#: crates/voelin-ui/ui/screens/studio-parts.slint:212 +msgctxt "ScenesCard" +msgid "Add Scene" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:295 +msgctxt "SourceRow" +msgid "Hide {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:295 +msgctxt "SourceRow" +msgid "Show {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:304 +msgctxt "SourceRow" +msgid "Source menu" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:314 +msgctxt "SourceRow" +msgid "Transform…" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:315 +msgctxt "SourceRow" +msgid "Crop…" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:316 +msgctxt "SourceRow" +msgid "Opacity…" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:317 +msgctxt "SourceRow" +msgid "Unlock" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:317 +msgctxt "SourceRow" +msgid "Lock" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:318 +msgctxt "SourceRow" +msgid "Blur background" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:318 +msgctxt "SourceRow" +msgid "Background effect off" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:319 +msgctxt "SourceRow" +msgid "Background effect…" +msgstr "" + +#. A phone's front and back camera, or the next webcam. +#: crates/voelin-ui/ui/screens/studio-parts.slint:321 +msgctxt "SourceRow" +msgid "Switch camera" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:322 +msgctxt "SourceRow" +msgid "Bring forward" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:323 +msgctxt "SourceRow" +msgid "Send backward" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:324 +msgctxt "SourceRow" +msgid "Rename…" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:325 +msgctxt "SourceRow" +msgid "Remove" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:354 +msgctxt "AddSourceButton" +msgid "Add source" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:361 +msgctxt "AddSourceButton" +msgid "Screen" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:362 +msgctxt "AddSourceButton" +msgid "Window" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:363 +msgctxt "AddSourceButton" +msgid "Camera" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:364 +msgctxt "AddSourceButton" +msgid "Image" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:365 +msgctxt "AddSourceButton" +msgid "Text" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:366 +msgctxt "AddSourceButton" +msgid "Colour" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:393 +#: crates/voelin-ui/ui/screens/studio-parts.slint:393 +msgctxt "SourcesCard" +msgid "Sources" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:400 +msgctxt "SourcesCard" +msgid "Add a scene first." +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:400 +msgctxt "SourcesCard" +msgid "" +"Nothing in this scene yet: add a screen, a window, a camera, an image, text " +"or a colour." +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:465 +msgctxt "StudioPreview" +msgid "Stream preview" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:494 +msgctxt "StudioPreview" +msgid "Waiting for the first picture…" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:494 +msgctxt "StudioPreview" +msgid "Starting the studio…" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:531 +msgctxt "StudioPreview" +msgid "STARTING" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:542 +msgctxt "StudioPreview" +msgid "REC {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:546 +msgctxt "StudioPreview" +msgid "PREVIEW" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:561 +msgctxt "StudioPreview" +msgid "{} watching" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:567 +msgctxt "StudioPreview" +msgid "{} joined the stream" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:598 +msgctxt "StudioPreview" +msgid "{} FPS" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:669 +msgctxt "StudioHeader" +msgid "Stream Studio" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:676 +msgctxt "StudioHeader" +msgid "Streaming to {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:676 +msgctxt "StudioHeader" +msgid "Goes live to {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:726 +msgctxt "StudioHeader" +msgid "Back into the main window" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:726 +msgctxt "StudioHeader" +msgid "Open in its own window" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:797 +msgctxt "MixerRow" +msgid "muted" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:797 +msgctxt "MixerRow" +msgid "{} dB" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:815 +msgctxt "MixerRow" +msgid "{} level" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:825 +msgctxt "MixerRow" +msgid "{} gain" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:833 +msgctxt "MixerRow" +msgid "Unmute {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:833 +msgctxt "MixerRow" +msgid "Mute {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:843 +msgctxt "MixerRow" +msgid "{} menu" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:853 +msgctxt "MixerRow" +msgid "Unmute" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:853 +msgctxt "MixerRow" +msgid "Mute" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:854 +msgctxt "MixerRow" +msgid "Reset to 0 dB" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:855 +msgctxt "MixerRow" +msgid "Remove" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:877 +msgctxt "MixerCard" +msgid "Audio Mixer" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:881 +msgctxt "MixerCard" +msgid "Add an audio source" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:888 +msgctxt "MixerCard" +msgid "Stream audio settings" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:896 +msgctxt "MixerCard" +msgid "No audio: add your microphone, the desktop or an application." +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:903 +msgctxt "MixerCard" +msgid "Audio sources" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1008 +msgctxt "StudioChat" +msgid "Stream Chat" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1012 +msgctxt "StudioChat" +msgid "Open the channel chat" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1027 +msgctxt "StudioChat" +msgid "Stream chat" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1034 +msgctxt "StudioChat" +msgid "Join a voice channel on a TeamSpeak 6 server: its chat shows here." +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1058 +msgctxt "StudioChat" +msgid "Message goes to {}…" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1058 +msgctxt "StudioChat" +msgid "No chat yet" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1059 +msgctxt "StudioChat" +msgid "Message to the stream chat" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1069 +msgctxt "StudioChat" +msgid "Send" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1099 +msgctxt "DestinationSelect" +msgid "Destination" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1121 +msgctxt "DestinationSelect" +msgid "No TeamSpeak 6 voice connection" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1266 +msgctxt "LayerRow" +msgid "Layer size, or a scale like 0.5×" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1273 +msgctxt "LayerRow" +msgid "Layer frame rate" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1274 +msgctxt "LayerRow" +msgid "fps" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1282 +msgctxt "LayerRow" +msgid "Layer bitrate in kbit/s" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1305 +msgctxt "StreamSettings" +msgid "Stream Settings" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1311 +msgctxt "StreamSettings" +msgid "Destination" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1318 +msgctxt "StreamSettings" +msgid "Quality" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1322 +msgctxt "StreamSettings" +msgid "Output quality" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1342 +msgctxt "StreamSettings" +msgid "Stream Title" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1345 +msgctxt "StreamSettings" +msgid "What are you streaming?" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1346 +msgctxt "StreamSettings" +msgid "Stream title" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1352 +msgctxt "StreamSettings" +msgid "Game" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1355 +#: crates/voelin-ui/ui/screens/studio-parts.slint:1355 +msgctxt "StreamSettings" +msgid "Game or category" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1362 +msgctxt "StreamSettings" +msgid "Go Live Message (optional)" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1365 +msgctxt "StreamSettings" +msgid "Sent to the channel chat when you go live" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1372 +msgctxt "StreamSettings" +msgid "Show Viewer Count" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1377 +msgctxt "StreamSettings" +msgid "Show Chat Overlay" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1382 +msgctxt "StreamSettings" +msgid "Show Now Playing" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1387 +msgctxt "StreamSettings" +msgid "Enable Stream Audio" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1398 +#: crates/voelin-ui/ui/screens/studio-parts.slint:1398 +msgctxt "StreamSettings" +msgid "Advanced Settings" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1431 +msgctxt "StreamSettings" +msgid "Output (width × height, FPS)" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1437 +msgctxt "StreamSettings" +msgid "Output width" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1448 +msgctxt "StreamSettings" +msgid "Output height" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1454 +msgctxt "StreamSettings" +msgid "Output frame rate" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1489 +msgctxt "StreamSettings" +msgid "Bitrate (kbit/s)" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1489 +msgctxt "StreamSettings" +msgid "Simulcast layers (size or scale, FPS, kbit/s)" +msgstr "" + +#. Empty: automatic, from the output's size and frame rate. +#: crates/voelin-ui/ui/screens/studio-parts.slint:1494 +msgctxt "StreamSettings" +msgid "Auto (up to 60 Mbit/s)" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1495 +msgctxt "StreamSettings" +msgid "Bitrate in kbit/s" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1505 +msgctxt "StreamSettings" +msgid "Add simulcast layers" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1505 +msgctxt "StreamSettings" +msgid "Add a layer" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1521 +#: crates/voelin-ui/ui/screens/studio-parts.slint:1521 +msgctxt "RecordButton" +msgid "Record Clip" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1522 +msgctxt "RecordButton" +msgid "Saves the last {} seconds" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1522 +msgctxt "RecordButton" +msgid "The replay buffer is off" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1550 +msgctxt "RecordButton" +msgid "Recording {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1568 +msgctxt "RecordButton" +msgid "Recording options" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1584 +msgctxt "RecordButton" +msgid "Save the last {} seconds" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1584 +msgctxt "RecordButton" +msgid "Save clip (replay buffer off)" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1585 +msgctxt "RecordButton" +msgid "Stop recording" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1585 +msgctxt "RecordButton" +msgid "Start recording" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1586 +msgctxt "RecordButton" +msgid "Replay length…" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1587 +msgctxt "RecordButton" +msgid "Open the recordings folder" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1612 +msgctxt "StudioActions" +msgid "Share Window" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1619 +msgctxt "StudioActions" +msgid "Share Screen" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1645 +msgctxt "StudioActions" +msgid "Live" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1645 +msgctxt "StudioActions" +msgid "Starting…" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1645 +msgctxt "StudioActions" +msgid "Go Live" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1657 +msgctxt "StudioActions" +msgid "End Stream" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1670 +msgctxt "ViewerRequests" +msgid "{} wants to watch" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1679 +msgctxt "ViewerRequests" +msgid "Accept" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1684 +msgctxt "ViewerRequests" +msgid "Deny" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1715 +msgctxt "SourceDialog" +msgid "Add text" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1715 +msgctxt "SourceDialog" +msgid "Add a colour" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1715 +msgctxt "SourceDialog" +msgid "Add an image" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1716 +msgctxt "SourceDialog" +msgid "Added to the live scene." +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1716 +msgctxt "SourceDialog" +msgid "Position, size and crop are in output pixels." +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1728 +#: crates/voelin-ui/ui/screens/studio-parts.slint:1728 +msgctxt "SourceDialog" +msgid "Name" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1735 +msgctxt "SourceDialog" +msgid "Text (a new line with \\n)" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1738 +msgctxt "SourceDialog" +msgid "Text" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1744 +msgctxt "SourceDialog" +msgid "Size (px)" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1748 +msgctxt "SourceDialog" +msgid "Colour (#rrggbb or #rrggbbaa)" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1753 +msgctxt "SourceDialog" +msgid "Image file (PNG or JPEG)" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1757 +msgctxt "SourceDialog" +msgid "Image file" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1762 +msgctxt "SourceDialog" +msgid "Mirror" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1763 +msgctxt "SourceDialog" +msgid "As in a mirror (front cameras)" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1767 +msgctxt "SourceDialog" +msgid "Transform" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1782 +msgctxt "SourceDialog" +msgid "Width" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1784 +#: crates/voelin-ui/ui/screens/studio-parts.slint:1784 +msgctxt "SourceDialog" +msgid "own" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1787 +msgctxt "SourceDialog" +msgid "Height" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1792 +msgctxt "SourceDialog" +msgid "Scale" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1797 +msgctxt "SourceDialog" +msgid "Fit inside" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1797 +msgctxt "SourceDialog" +msgid "Fill (crop)" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1797 +msgctxt "SourceDialog" +msgid "Stretch" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1799 +msgctxt "SourceDialog" +msgid "How it fills its box" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1803 +msgctxt "SourceDialog" +msgid "Crop (source pixels)" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1810 +msgctxt "SourceDialog" +msgid "Left" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1814 +msgctxt "SourceDialog" +msgid "Top" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1818 +msgctxt "SourceDialog" +msgid "Right" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1822 +msgctxt "SourceDialog" +msgid "Bottom" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1829 +#: crates/voelin-ui/ui/screens/studio-parts.slint:1829 +msgctxt "SourceDialog" +msgid "Opacity" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1842 +msgctxt "SourceDialog" +msgid "{}%" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1851 +msgctxt "SourceDialog" +msgid "Visible" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1855 +msgctxt "SourceDialog" +msgid "Locked" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1862 +#: crates/voelin-ui/ui/screens/studio-parts.slint:1862 +msgctxt "SourceDialog" +msgid "Background effect" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1867 +msgctxt "SourceDialog" +msgid "Off" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1867 +msgctxt "SourceDialog" +msgid "Blur" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1867 +msgctxt "SourceDialog" +msgid "Image" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1867 +msgctxt "SourceDialog" +msgid "Colour" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1873 +msgctxt "SourceDialog" +msgid "Blur strength (% of the picture's height)" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1877 +msgctxt "SourceDialog" +msgid "Background image file" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1881 +msgctxt "SourceDialog" +msgid "Background colour (#rrggbb)" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1885 +msgctxt "SourceDialog" +msgid "" +"The subject is found by a simple oval for now: what is outside it is " +"replaced." +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1897 +msgctxt "SourceDialog" +msgid "Cancel" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1902 +msgctxt "SourceDialog" +msgid "Add" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1902 +msgctxt "SourceDialog" +msgid "Apply" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1920 +msgctxt "PickDialog" +msgid "Share a screen" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1920 +msgctxt "PickDialog" +msgid "Share a window" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1920 +msgctxt "PickDialog" +msgid "Add a camera" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1920 +msgctxt "PickDialog" +msgid "Audio sources" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1921 +msgctxt "PickDialog" +msgid "Mixed into the stream's audio. Pick as many as you like." +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1921 +msgctxt "PickDialog" +msgid "Added to the live scene." +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1928 +msgctxt "PickDialog" +msgid "Nothing found." +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:2015 +msgctxt "PickDialog" +msgid "Done" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:2024 +msgctxt "SceneDialog" +msgid "Rename scene" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:2031 +msgctxt "SceneDialog" +msgid "Scene name" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:2041 +msgctxt "SceneDialog" +msgid "Cancel" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:2046 +msgctxt "SceneDialog" +msgid "Rename" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:2059 +msgctxt "StudioSettingsDialog" +msgid "Studio Settings" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:2060 +msgctxt "StudioSettingsDialog" +msgid "" +"Clips, recordings and the preview. Stream quality is in the stream settings." +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:2072 +msgctxt "StudioSettingsDialog" +msgid "Replay buffer (seconds, 0: off)" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:2073 +msgctxt "StudioSettingsDialog" +msgid "Record Clip saves this much of what was streamed or composed." +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:2078 +msgctxt "StudioSettingsDialog" +msgid "Replay buffer in seconds" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:2082 +msgctxt "StudioSettingsDialog" +msgid "Replay memory (MB)" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:2083 +msgctxt "StudioSettingsDialog" +msgid "Beyond this the oldest part goes to a temporary file." +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:2088 +msgctxt "StudioSettingsDialog" +msgid "Replay memory in megabytes" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:2092 +msgctxt "StudioSettingsDialog" +msgid "Recordings and clips folder" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:2093 +msgctxt "StudioSettingsDialog" +msgid "Empty: a Voelin folder in your videos folder." +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:2097 +msgctxt "StudioSettingsDialog" +msgid "Recordings folder" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:2103 +msgctxt "StudioSettingsDialog" +msgid "Preview width (pixels)" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:2107 +msgctxt "StudioSettingsDialog" +msgid "Preview width" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:2111 +msgctxt "StudioSettingsDialog" +msgid "Preview FPS" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:2115 +msgctxt "StudioSettingsDialog" +msgid "Preview frame rate" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:2125 +msgctxt "StudioSettingsDialog" +msgid "Cancel" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:2130 +msgctxt "StudioSettingsDialog" +msgid "Save" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio.slint:42 +msgctxt "StudioUser" +msgid "Live" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio.slint:42 +msgctxt "StudioUser" +msgid "Online" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio.slint:42 +msgctxt "StudioUser" +msgid "Offline" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio.slint:128 +#: crates/voelin-ui/ui/screens/studio.slint:128 +msgctxt "StudioPage" +msgid "Studio Settings" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio.slint:298 +msgctxt "PhoneAudioRow" +msgid "muted" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio.slint:298 +msgctxt "PhoneAudioRow" +msgid "{} dB" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio.slint:322 +msgctxt "PhoneAudioRow" +msgid "Gain" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio.slint:330 +msgctxt "PhoneAudioRow" +msgid "Mute" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio.slint:356 +msgctxt "MobileStudio" +msgid "Back" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio.slint:369 +msgctxt "MobileStudio" +msgid "Stream Studio" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio.slint:376 +msgctxt "MobileStudio" +msgid "Live · {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio.slint:376 +msgctxt "MobileStudio" +msgid "Go live to {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio.slint:403 +msgctxt "MobileStudio" +msgid "LIVE PREVIEW" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio.slint:468 +msgctxt "MobileStudio" +msgid "Source" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio.slint:469 +msgctxt "MobileStudio" +msgid "What do you want to share?" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio.slint:475 +msgctxt "MobileStudio" +msgid "Screen / Game" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio.slint:476 +msgctxt "MobileStudio" +msgid "Apps or games" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio.slint:482 +msgctxt "MobileStudio" +msgid "Camera" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio.slint:483 +msgctxt "MobileStudio" +msgid "Front or back" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio.slint:489 +msgctxt "MobileStudio" +msgid "App Window" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio.slint:490 +msgctxt "MobileStudio" +msgid "A single app" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio.slint:497 +msgctxt "MobileStudio" +msgid "Audio" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio.slint:499 +msgctxt "MobileStudio" +msgid "Add a source" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio.slint:507 +msgctxt "MobileStudio" +msgid "Stream Details" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio.slint:512 +msgctxt "MobileStudio" +msgid "What are you streaming?" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio.slint:513 +msgctxt "MobileStudio" +msgid "Stream title" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio.slint:521 +msgctxt "MobileStudio" +msgid "Game" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio.slint:527 +msgctxt "MobileStudio" +msgid "Category" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio.slint:528 +msgctxt "MobileStudio" +msgid "Game or category" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio.slint:535 +msgctxt "MobileStudio" +msgid "Quality" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio.slint:542 +msgctxt "MobileStudio" +msgid "Output quality" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio.slint:567 +msgctxt "MobileStudio" +msgid "Go Live To" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio.slint:587 +#: crates/voelin-ui/ui/screens/studio.slint:587 +msgctxt "MobileStudio" +msgid "End Stream" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio.slint:587 +#: crates/voelin-ui/ui/screens/studio.slint:587 +msgctxt "MobileStudio" +msgid "Go Live" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio.slint:610 +msgctxt "MobileStudio" +msgid "Starting…" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio.slint:616 +msgctxt "MobileStudio" +msgid "Start streaming to {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio.slint:631 +msgctxt "MobileStudio" +msgid "Save a clip" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio.slint:647 +msgctxt "MobileStudio" +msgid "Clip" +msgstr "" + +#: crates/voelin-ui/ui/screens/voice.slint:89 +msgctxt "Participant" +msgid "Speaking" +msgstr "" + +#: crates/voelin-ui/ui/screens/voice.slint:89 +msgctxt "Participant" +msgid "Streaming" +msgstr "" + +#: crates/voelin-ui/ui/screens/voice.slint:89 +msgctxt "Participant" +msgid "Away" +msgstr "" + +#: crates/voelin-ui/ui/screens/voice.slint:144 +msgctxt "StreamCard" +msgid "{} watching" +msgstr "" + +#: crates/voelin-ui/ui/screens/voice.slint:183 +msgctxt "StreamCard" +msgid "Sound" +msgstr "" + +#: crates/voelin-ui/ui/screens/voice.slint:189 +msgctxt "StreamCard" +msgid "Your stream" +msgstr "" + +#: crates/voelin-ui/ui/screens/voice.slint:199 +msgctxt "StreamCard" +msgid "Show Stream" +msgstr "" + +#: crates/voelin-ui/ui/screens/voice.slint:199 +msgctxt "StreamCard" +msgid "Watch Stream" +msgstr "" + +#: crates/voelin-ui/ui/screens/voice.slint:245 +msgctxt "VoiceView" +msgid "Chat only" +msgstr "" + +#: crates/voelin-ui/ui/screens/voice.slint:251 +msgctxt "VoiceView" +msgid "Voice Settings" +msgstr "" + +#: crates/voelin-ui/ui/screens/voice.slint:258 +msgctxt "VoiceView" +msgid "Leave" +msgstr "" + +#: crates/voelin-ui/ui/screens/voice.slint:283 +msgctxt "VoiceView" +msgid "{} in voice / {} total" +msgstr "" + +#: crates/voelin-ui/ui/screens/voice.slint:284 +msgctxt "VoiceView" +msgid "{} in voice" +msgstr "" + +#: crates/voelin-ui/ui/screens/voice.slint:301 +msgctxt "VoiceView" +msgid "In voice" +msgstr "" + +#: crates/voelin-ui/ui/screens/voice.slint:322 +msgctxt "VoiceView" +msgid "Message {}" +msgstr "" + +#. The studio's stream takes the place of a simple share. +#: crates/voelin-ui/ui/share-menu.slint:31 +msgctxt "ShareMenu" +msgid "Share screen" +msgstr "" + +#: crates/voelin-ui/ui/share-menu.slint:32 +msgctxt "ShareMenu" +msgid "Stream Studio" +msgstr "" + +#: crates/voelin-ui/ui/shells/common.slint:29 +#: crates/voelin-ui/ui/shells/common.slint:29 +msgctxt "HoldToTalk" +msgid "Hold to talk" +msgstr "" + +#: crates/voelin-ui/ui/shells/common.slint:44 +msgctxt "HoldToTalk" +msgid "Talking…" +msgstr "" + +#: crates/voelin-ui/ui/shells/common.slint:71 +msgctxt "VoiceCard" +msgid "Voice" +msgstr "" + +#: crates/voelin-ui/ui/shells/common.slint:92 +msgctxt "VoiceCard" +msgid "Voice Connected" +msgstr "" + +#: crates/voelin-ui/ui/shells/common.slint:92 +msgctxt "VoiceCard" +msgid "Connecting…" +msgstr "" + +#: crates/voelin-ui/ui/shells/common.slint:106 +msgctxt "VoiceCard" +msgid "Open the voice channel" +msgstr "" + +#: crates/voelin-ui/ui/shells/common.slint:114 +msgctxt "VoiceCard" +msgid "Disconnect" +msgstr "" + +#: crates/voelin-ui/ui/shells/common.slint:132 +msgctxt "VoiceButtons" +msgid "Microphone off" +msgstr "" + +#: crates/voelin-ui/ui/shells/common.slint:132 +msgctxt "VoiceButtons" +msgid "Microphone on" +msgstr "" + +#: crates/voelin-ui/ui/shells/common.slint:141 +msgctxt "VoiceButtons" +msgid "Sound off" +msgstr "" + +#: crates/voelin-ui/ui/shells/common.slint:141 +msgctxt "VoiceButtons" +msgid "Sound on" +msgstr "" + +#: crates/voelin-ui/ui/shells/common.slint:152 +msgctxt "VoiceButtons" +msgid "Sharing" +msgstr "" + +#: crates/voelin-ui/ui/shells/common.slint:152 +msgctxt "VoiceButtons" +msgid "Live in the Stream Studio" +msgstr "" + +#: crates/voelin-ui/ui/shells/common.slint:152 +msgctxt "VoiceButtons" +msgid "Share or go live" +msgstr "" + +#: crates/voelin-ui/ui/shells/common.slint:161 +msgctxt "VoiceButtons" +msgid "Settings" +msgstr "" + +#: crates/voelin-ui/ui/shells/common.slint:173 +msgctxt "UserCard" +msgid "You" +msgstr "" + +#: crates/voelin-ui/ui/shells/common.slint:206 +msgctxt "UserCard" +msgid "Online" +msgstr "" + +#: crates/voelin-ui/ui/shells/common.slint:206 +msgctxt "UserCard" +msgid "Observing" +msgstr "" + +#: crates/voelin-ui/ui/shells/common.slint:206 +msgctxt "UserCard" +msgid "Offline" +msgstr "" + +#: crates/voelin-ui/ui/shells/desktop.slint:80 +msgctxt "ServerRail" +msgid "Servers" +msgstr "" + +#: crates/voelin-ui/ui/shells/desktop.slint:101 +msgctxt "ServerRail" +msgid "Home" +msgstr "" + +#: crates/voelin-ui/ui/shells/desktop.slint:141 +msgctxt "ServerRail" +msgid "Add server" +msgstr "" + +#: crates/voelin-ui/ui/shells/desktop.slint:155 +msgctxt "ServerRail" +msgid "Settings" +msgstr "" + +#: crates/voelin-ui/ui/shells/desktop.slint:208 +msgctxt "TopBar" +msgid "Search servers, channels, people or settings…" +msgstr "" + +#: crates/voelin-ui/ui/shells/desktop.slint:209 +msgctxt "TopBar" +msgid "Search" +msgstr "" + +#: crates/voelin-ui/ui/shells/desktop.slint:219 +msgctxt "TopBar" +msgid "{} new notifications" +msgstr "" + +#: crates/voelin-ui/ui/shells/desktop.slint:219 +msgctxt "TopBar" +msgid "Notifications" +msgstr "" + +#: crates/voelin-ui/ui/shells/desktop.slint:227 +msgctxt "TopBar" +msgid "Members" +msgstr "" + +#: crates/voelin-ui/ui/shells/desktop.slint:243 +msgctxt "TopBar" +msgid "About {}" +msgstr "" + +#: crates/voelin-ui/ui/shells/mobile.slint:82 +msgctxt "PeoplePill" +msgid "{} in voice" +msgstr "" + +#: crates/voelin-ui/ui/shells/mobile.slint:132 +msgctxt "MobileShell" +msgid "Back" +msgstr "" + +#: crates/voelin-ui/ui/shells/mobile.slint:163 +msgctxt "MobileShell" +msgid "Search" +msgstr "" + +#: crates/voelin-ui/ui/shells/mobile.slint:172 +msgctxt "MobileShell" +msgid "Voice channel" +msgstr "" + +#: crates/voelin-ui/ui/shells/mobile.slint:185 +msgctxt "MobileShell" +msgid "Notifications" +msgstr "" + +#: crates/voelin-ui/ui/shells/mobile.slint:203 +#: crates/voelin-ui/ui/shells/mobile.slint:203 +msgctxt "MobileShell" +msgid "Chats" +msgstr "" + +#: crates/voelin-ui/ui/shells/mobile.slint:220 +msgctxt "MobileShell" +msgid "More" +msgstr "" + +#: crates/voelin-ui/ui/shells/mobile.slint:229 +msgctxt "MobileShell" +msgid "Stream Studio" +msgstr "" + +#: crates/voelin-ui/ui/shells/mobile.slint:230 +msgctxt "MobileShell" +msgid "Voice Settings" +msgstr "" + +#: crates/voelin-ui/ui/shells/mobile.slint:231 +#: crates/voelin-ui/ui/shells/mobile.slint:231 +msgctxt "MobileShell" +msgid "Activity" +msgstr "" + +#: crates/voelin-ui/ui/shells/mobile.slint:232 +msgctxt "MobileShell" +msgid "Leave Voice" +msgstr "" + +#: crates/voelin-ui/ui/shells/mobile.slint:260 +msgctxt "MobileShell" +msgid "Navigation" +msgstr "" + +#: crates/voelin-ui/ui/shells/mobile.slint:266 +msgctxt "MobileShell" +msgid "Home" +msgstr "" + +#: crates/voelin-ui/ui/shells/mobile.slint:272 +msgctxt "MobileShell" +msgid "Servers" +msgstr "" + +#: crates/voelin-ui/ui/shells/mobile.slint:293 +msgctxt "MobileShell" +msgid "You" +msgstr "" + +#: crates/voelin-ui/ui/studio-bridge.slint:299 +msgctxt "StudioNav" +msgid "Text" +msgstr "" + +#: crates/voelin-ui/ui/studio-bridge.slint:299 +msgctxt "StudioNav" +msgid "Colour" +msgstr "" + +#: crates/voelin-ui/ui/studio-bridge.slint:299 +msgctxt "StudioNav" +msgid "Image" +msgstr "" + +#: crates/voelin-ui/ui/studio-bridge.slint:300 +msgctxt "StudioNav" +msgid "Your text" +msgstr "" + +#: crates/voelin-ui/ui/studio-window.slint:14 +#: crates/voelin-ui/ui/studio-window.slint:14 +msgctxt "StudioWindow" +msgid "Stream Studio" +msgstr "" + +#: crates/voelin-ui/ui/studio-window.slint:63 +msgctxt "StudioWindow" +msgid "Back into the main window" +msgstr "" + +#: crates/voelin-ui/ui/studio-window.slint:93 +msgctxt "StudioWindow" +msgid "Stream Preview" +msgstr "" + +#: crates/voelin-ui/ui/studio-window.slint:133 +msgctxt "StudioWindow" +msgid "Studio Settings" +msgstr "" diff --git a/crates/voelin-ui/src/app.rs b/crates/voelin-ui/src/app.rs index 49e8e96..b92b30f 100644 --- a/crates/voelin-ui/src/app.rs +++ b/crates/voelin-ui/src/app.rs @@ -97,6 +97,9 @@ fn default_secrets() -> Box { #[cfg(not(target_os = "android"))] impl Secrets for FallbackSecrets { fn get(&self, key: &str) -> voelin_store::Result> { + if key.starts_with("myts/") { + return self.keyring.get(key); + } match self.memory.get(key)? { Some(v) => Ok(Some(v)), None => Ok(self.keyring.get(key).unwrap_or(None)), @@ -104,6 +107,9 @@ impl Secrets for FallbackSecrets { } fn set(&self, key: &str, value: &str) -> voelin_store::Result<()> { + if key.starts_with("myts/") { + return self.keyring.set(key, value); + } if let Err(error) = self.keyring.set(key, value) { warn!(%error, "keyring unavailable, keeping the secret for this session only"); return self.memory.set(key, value); @@ -112,6 +118,9 @@ impl Secrets for FallbackSecrets { } fn delete(&self, key: &str) -> voelin_store::Result<()> { + if key.starts_with("myts/") { + return self.keyring.delete(key); + } let _ = self.keyring.delete(key); self.memory.delete(key) } @@ -407,6 +416,10 @@ impl Models { } pub(crate) struct App { + #[cfg(not(target_os = "android"))] + pub runtime: tokio::runtime::Handle, + #[cfg(not(target_os = "android"))] + pub myts: crate::myts::Account, pub ui: slint::Weak, pub store: Store, pub secrets: Box, @@ -646,6 +659,10 @@ pub fn run(options: RunOptions) -> Result<()> { let mut video = Video::new(&dir, settings.openh264); video.set_decoder_preference(decoder_preference(&prefs)); let app = App { + #[cfg(not(target_os = "android"))] + runtime: runtime.clone(), + #[cfg(not(target_os = "android"))] + myts: Default::default(), ui: ui.as_weak(), store, secrets: options.secrets.unwrap_or_else(default_secrets), @@ -701,6 +718,8 @@ pub fn run(options: RunOptions) -> Result<()> { app.refresh_home(); app.refresh_notices(); app.refresh_pages(); + #[cfg(not(target_os = "android"))] + app.start_myts(); if app.demo { app.start_demo(); } @@ -760,16 +779,22 @@ pub fn run(options: RunOptions) -> Result<()> { /// Open a file or folder with the desktop's default application. pub(crate) fn open_path(path: &Path) -> std::io::Result<()> { + let mut child = desktop_opener(path.as_os_str()).spawn()?; + // Reap it without blocking the UI. + std::thread::spawn(move || child.wait()); + Ok(()) +} + +/// Build an argument-based desktop opener; never pass a target through a shell. +pub(crate) fn desktop_opener(target: &std::ffi::OsStr) -> std::process::Command { #[cfg(windows)] let mut command = std::process::Command::new("explorer"); #[cfg(target_os = "macos")] let mut command = std::process::Command::new("open"); #[cfg(not(any(windows, target_os = "macos")))] let mut command = std::process::Command::new("xdg-open"); - let mut child = command.arg(path).spawn()?; - // Reap it without blocking the UI. - std::thread::spawn(move || child.wait()); - Ok(()) + command.arg(target); + command } pub(crate) fn model(items: Vec) -> ModelRc { diff --git a/crates/voelin-ui/src/bind/settings.rs b/crates/voelin-ui/src/bind/settings.rs index d6717a7..078775d 100644 --- a/crates/voelin-ui/src/bind/settings.rs +++ b/crates/voelin-ui/src/bind/settings.rs @@ -6,6 +6,26 @@ use crate::app::{Bridge, MainWindow, with_app}; pub(super) fn wire(ui: &MainWindow) { let bridge = ui.global::(); + #[cfg(not(target_os = "android"))] + { + bridge.on_myts_login(|email, password, otp| { + with_app(|app| { + app.myts_login(email.to_string(), password.to_string(), otp.to_string()) + }); + }); + bridge.on_myts_logout(|| { + with_app(|app| app.myts_logout()); + }); + bridge.on_myts_dismiss(|| { + with_app(|app| app.myts_dismiss()); + }); + bridge.on_myts_retry(|| { + with_app(|app| app.myts_retry()); + }); + bridge.on_myts_portal(|action| { + with_app(|app| app.myts_portal(action)); + }); + } bridge.on_open_settings(|| { with_app(|app| app.open_settings()); }); diff --git a/crates/voelin-ui/src/dev.rs b/crates/voelin-ui/src/dev.rs index 2f905a2..75be40d 100644 --- a/crates/voelin-ui/src/dev.rs +++ b/crates/voelin-ui/src/dev.rs @@ -168,6 +168,31 @@ pub(crate) fn start(ui: &MainWindow, switches: &Switches) -> Running { for open in &switches.open { let (what, arg) = open.split_once(':').unwrap_or((open.as_str(), "")); match what { + "login" if switches.demo_ui => { + let bridge = ui.global::(); + let mut account = bridge.get_myts(); + account.available = true; + account.prompt = arg != "account"; + if arg == "account" { + account.signed_in = true; + account.username = "Alex Example".into(); + account.email = "alex@example.test".into(); + account.uuid = "00000000-0000-0000-0000-000000000001".into(); + account.myts_id = "AQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEB".into(); + account.identity_status = 1; + nav.invoke_open_settings(SettingsSection::Account); + } + account.otp_required = arg == "otp"; + account.can_forget = arg == "saved" || arg == "account"; + account.status = if arg == "otp" { + 3 + } else if arg == "saved" { + 2 + } else { + 0 + }; + bridge.set_myts(account); + } "home" => nav.invoke_show(Page::Home), "server" => nav.invoke_show(Page::Server), "settings" => nav.invoke_open_settings(section(arg)), diff --git a/crates/voelin-ui/src/lib.rs b/crates/voelin-ui/src/lib.rs index 8ea898c..0e8f5b8 100644 --- a/crates/voelin-ui/src/lib.rs +++ b/crates/voelin-ui/src/lib.rs @@ -15,6 +15,8 @@ mod images; mod inbox; mod members; mod messages; +#[cfg(not(target_os = "android"))] +mod myts; mod previews; mod servers; mod settings; diff --git a/crates/voelin-ui/src/myts.rs b/crates/voelin-ui/src/myts.rs new file mode 100644 index 0000000..879a5e3 --- /dev/null +++ b/crates/voelin-ui/src/myts.rs @@ -0,0 +1,710 @@ +//! Desktop account state. Only the UI thread mutates state or persists credentials. +use serde::{Deserialize, Serialize}; +use slint::ComponentHandle; +use std::sync::Arc; +use voelin_myts::{Client, Login, ServerIdentity, SessionToken}; +use voelin_store::Secrets; + +use crate::app::{App, Bridge, MytsForm, later}; + +// One keyring item makes session replacement atomic: a failed write cannot +// combine a new session with another account's renewal material. +const KEY: &str = "myts/session"; + +#[derive(Default, Serialize, Deserialize)] +struct Saved { + session: String, + email: String, + username: String, + #[serde(default)] + uuid: String, + renewal_token: String, + device_id: String, + #[serde(default)] + otp_token: String, + // Private account identity belongs in the same secret-store transaction. + #[serde(default)] + identity: Option, +} + +#[derive(Default)] +pub(crate) struct Account { + saved: Option, + signed_in: bool, + busy: bool, + otp_required: bool, + status: i32, + persistence_status: i32, + generation: u64, + started: bool, + prompt: bool, + // Also set after a failed read/delete so the user can retry clearing. + can_forget: bool, + identity_failed: bool, +} + +impl Account { + fn load(&mut self, secrets: &dyn Secrets) { + match read_saved(secrets) { + Ok(saved) => { + self.saved = saved; + self.can_forget = false; + self.status = 0; + self.persistence_status = 0; + self.identity_failed = false; + } + Err(()) => { + self.can_forget = true; + self.persistence_status = 1; + } + } + } + + fn restored(&mut self) { + self.signed_in = true; + self.prompt = false; + self.otp_required = false; + } + + fn device_for(&self, email: &str) -> (String, String) { + self.saved + .as_ref() + .filter(|s| s.email.eq_ignore_ascii_case(email.trim())) + .map(|s| (s.device_id.clone(), s.otp_token.clone())) + .unwrap_or_default() + } + + fn accept(&mut self, secrets: &dyn Secrets, login: Login, email: String) { + self.identity_failed = login.identity.is_err(); + let (renewal_token, device_id, otp_token) = login + .renewal + .map(|renewal| (renewal.token, renewal.device_id, renewal.otp_token)) + .unwrap_or_default(); + let saved = Saved { + session: login.token.into_inner(), + email, + username: login.username, + uuid: login.uuid, + renewal_token, + device_id, + otp_token, + identity: login.identity.ok(), + }; + self.persistence_status = if save(secrets, &saved) { + 0 + } else { + // Remove an older credential after a replacement failed. Do not + // silently sign back into the previous account on next startup. + let cleared = secrets.delete(KEY).is_ok(); + if cleared { 5 } else { 6 } + }; + self.status = 0; + self.saved = Some(saved); + self.restored(); + } + + fn revocation_failed(&mut self, generation: u64) { + if self.generation == generation && !self.signed_in && !self.busy && !self.can_forget { + self.status = 9; + } + } + fn form(&self) -> MytsForm { + let identity = self.identity(); + MytsForm { + available: true, + prompt: self.prompt, + signed_in: self.signed_in, + email: self.saved.as_ref().map(|s| s.email.as_str()).unwrap_or_default().into(), + username: self.saved.as_ref().map(|s| s.username.as_str()).unwrap_or_default().into(), + uuid: self.saved.as_ref().map(|s| s.uuid.as_str()).unwrap_or_default().into(), + myts_id: identity.map(ServerIdentity::id).unwrap_or_default().into(), + identity_status: if !self.signed_in { + 0 + } else if identity.is_some() { + 1 + } else if self.identity_failed { + 3 + } else { + 2 + }, + status: self.status, + persistence_status: self.persistence_status, + busy: self.busy, + otp_required: self.otp_required, + can_forget: self.can_forget || self.saved.is_some(), + } + } + fn identity(&self) -> Option<&ServerIdentity> { + self.saved.as_ref().filter(|_| self.signed_in).and_then(|s| s.identity.as_ref()) + } + fn begin(&mut self) -> Option { + if self.busy { + return None; + } + self.generation += 1; + self.busy = true; + self.status = 0; + Some(self.generation) + } + + fn finish(&mut self, generation: u64) -> bool { + if self.generation != generation { + return false; + } + self.busy = false; + true + } + + fn forget(&mut self, secrets: &dyn Secrets) -> bool { + self.generation += 1; + self.busy = false; + self.signed_in = false; + self.prompt = true; + self.saved = None; + self.identity_failed = false; + self.otp_required = false; + let cleared = secrets.delete(KEY).is_ok(); + self.persistence_status = if cleared { 0 } else { 8 }; + self.can_forget = !cleared; + cleared + } +} + +fn login_error_status(error: &voelin_myts::Error) -> i32 { + match error.status_code() { + Some(208) => 3, + Some(209) => 14, + Some(203) => 13, + Some(202) => 16, + Some(103 | 206 | 207) => 15, + _ if matches!(error, voelin_myts::Error::Http(429)) => 17, + _ => 4, + } +} + +// Fixed official routes only. Neither the session nor an email goes in a URL. +fn portal_url(action: i32) -> Option<&'static str> { + match action { + 0 => Some("https://www.myteamspeak.com/register"), + 1 => Some("https://www.myteamspeak.com/forgot-password"), + 2 => Some("https://www.myteamspeak.com/my-account"), + 3 => Some("https://www.myteamspeak.com/resend-activation"), + 4 => Some("https://www.myteamspeak.com/my-account/change-username"), + 5 => Some("https://www.myteamspeak.com/my-account/change-email"), + 6 => Some("https://www.myteamspeak.com/my-account/change-password"), + 7 => Some("https://www.myteamspeak.com/my-account/change-2fa"), + 8 => Some("https://www.myteamspeak.com/my-account/manage-account"), + 9 => Some("https://www.myteamspeak.com/my-account/manage-data"), + _ => None, + } +} + +fn read_saved(secrets: &dyn Secrets) -> Result, ()> { + secrets + .get(KEY) + .map_err(|_| ())? + .map(|value| { + let saved: Saved = serde_json::from_str(&value).map_err(|_| ())?; + SessionToken::new(saved.session.clone()).map_err(|_| ())?; + Ok(saved) + }) + .transpose() +} + +fn save(secrets: &dyn Secrets, saved: &Saved) -> bool { + serde_json::to_string(saved).ok().is_some_and(|value| secrets.set(KEY, &value).is_ok()) +} + +impl App { + fn publish_myts_identity(&self) { + self.engine.send(voelin_core::Command::SetMytsIdentity( + self.myts.identity().cloned().map(Arc::new), + )); + } + + pub(crate) fn refresh_myts(&self) { + let Some(ui) = self.ui.upgrade() else { + return; + }; + ui.global::().set_myts(self.myts.form()); + } + + pub(crate) fn start_myts(&mut self) { + if self.myts.started { + return; + } + self.myts.started = true; + if self.demo_ui { + self.refresh_myts(); + return; + } + self.myts.prompt = true; + self.myts_retry(); + } + + pub(crate) fn myts_dismiss(&mut self) { + self.myts.prompt = false; + self.refresh_myts(); + } + + pub(crate) fn myts_portal(&mut self, action: i32) { + let Some(url) = portal_url(action).filter(|_| !self.myts.busy) else { + return; + }; + let generation = self.myts.generation; + self.runtime.spawn(async move { + let opened = tokio::task::spawn_blocking(move || { + crate::app::desktop_opener(std::ffi::OsStr::new(url)) + .status() + .is_ok_and(|status| status.success()) + }) + .await + .unwrap_or(false); + later(move |app| { + if app.myts.generation == generation && !app.myts.busy { + app.myts.status = if opened { 11 } else { 10 }; + app.refresh_myts(); + } + }); + }); + } + + pub(crate) fn myts_retry(&mut self) { + if self.demo_ui || self.myts.busy { + return; + } + if self.myts.saved.is_none() { + self.myts.load(self.secrets.as_ref()); + } + let Some(saved) = self.myts.saved.as_ref() else { + self.refresh_myts(); + return; + }; + let token = SessionToken::new(saved.session.clone()).expect("validated stored token"); + let generation = self.myts.begin().expect("startup is idle"); + self.refresh_myts(); + self.runtime.spawn(async move { + // Password login does not provide the separate auth token required + // by loginWithRenewalToken. Expiry requires a fresh password login. + let result = async { Client::new()?.validate_session(&token).await }.await; + later(move |app| { + if !app.myts.finish(generation) { + return; + } + let was_signed_in = app.myts.signed_in; + match result { + Ok(()) => app.myts.restored(), + Err(error) => { + app.myts.otp_required = + error.is_otp_required() || error.status_code() == Some(209); + app.myts.status = 2; + if error.is_invalid_session() { + app.myts.signed_in = false; + app.myts.status = 15; + } + } + } + if was_signed_in != app.myts.signed_in { + app.publish_myts_identity(); + } + app.refresh_myts(); + }); + }); + } + + pub(crate) fn myts_login(&mut self, email: String, password: String, otp: String) { + if email.trim().is_empty() || password.is_empty() || self.myts.signed_in { + return; + } + let (device, otp_renewal) = self.myts.device_for(&email); + let Some(generation) = self.myts.begin() else { + return; + }; + self.refresh_myts(); + self.runtime.spawn(async move { + let result = async { + Client::new()? + .login_with_otp_renewal( + email.trim(), + &password, + (!otp.is_empty()).then_some(otp.as_str()), + &device, + &otp_renewal, + ) + .await + } + .await; + later(move |app| { + if !app.myts.finish(generation) { + app.discard_myts_login(result.ok()); + return; + } + match result { + Ok(login) => { + app.myts.accept(app.secrets.as_ref(), login, email.trim().to_owned()); + app.publish_myts_identity(); + } + Err(error) => { + app.myts.otp_required = + error.is_otp_required() || error.status_code() == Some(209); + app.myts.status = login_error_status(&error); + } + } + app.refresh_myts(); + }); + }); + } + + // A canceled login can still have created a remote session. Revoke it, + // never publish or save it after a sign-out/replacement. + fn discard_myts_login(&self, login: Option) { + if let Some(login) = login { + let generation = + (!self.myts.busy && !self.myts.signed_in).then_some(self.myts.generation); + self.runtime.spawn(async move { + let result = async { Client::new()?.logout(&login.token).await }.await; + if result.is_err() { + // Static diagnostic: no credential, account, response body or URL. + tracing::warn!("canceled account sign-in session could not be revoked"); + later(move |app| { + if let Some(generation) = generation { + app.myts.revocation_failed(generation); + } + app.refresh_myts(); + }); + } + }); + } + } + + pub(crate) fn myts_logout(&mut self) { + let token = + self.myts.saved.as_ref().and_then(|s| SessionToken::new(s.session.clone()).ok()); + let cleared = self.myts.forget(self.secrets.as_ref()); + self.publish_myts_identity(); + self.myts.status = if cleared { 7 } else { 0 }; + if let Some(token) = token { + let generation = self.myts.generation; + self.myts.busy = true; + self.runtime.spawn(async move { + let result = async { Client::new()?.logout(&token).await }.await; + later(move |app| { + if !app.myts.finish(generation) { + return; + } + if result.is_err() && cleared { + app.myts.status = 9; + } + app.refresh_myts(); + }); + }); + } + self.refresh_myts(); + } +} + +#[cfg(test)] +mod tests { + use super::*; + use voelin_store::MemorySecrets; + + fn login(name: &str) -> Login { + Login { + token: SessionToken::new(format!("{name}-session")).unwrap(), + uuid: format!("{name}-uuid"), + username: name.into(), + identity: Ok(server_identity()), + renewal: Some(voelin_myts::Renewal { + token: format!("{name}-renewal"), + otp_token: format!("{name}-otp"), + device_id: format!("{name}-device"), + }), + } + } + + fn server_identity() -> ServerIdentity { + let mut private = [0; 32]; + private[0] = 1; + let mut public = [0x66; 32]; + public[0] = 0x58; // Compressed Ed25519 basepoint for scalar one. + ServerIdentity::new(vec![1; 33], 1, public, private, vec![2; 65]).unwrap() + } + + #[test] + fn primary_account_persists_restores_after_validation_and_signout_returns_to_login() { + let secrets = MemorySecrets::default(); + let mut account = Account { prompt: true, ..Default::default() }; + account.load(&secrets); + assert!(account.form().prompt); + assert!(!account.form().signed_in); + account.accept(&secrets, login("Alice"), "alice@example.test".into()); + assert!(!account.form().prompt); + assert!(account.form().signed_in); + assert_eq!(account.form().identity_status, 1); + assert!(account.identity().is_some()); + assert_eq!(account.form().uuid, "Alice-uuid"); + let mut restarted = Account { prompt: true, ..Default::default() }; + restarted.load(&secrets); + assert!(restarted.identity().is_none(), "unvalidated cache cannot authenticate servers"); + assert!(!restarted.form().signed_in, "cached profile is not validated yet"); + let generation = restarted.begin().unwrap(); + assert!(restarted.finish(generation)); + restarted.restored(); + assert!(restarted.identity().is_some()); + assert!(!restarted.form().prompt); + assert_eq!(restarted.form().username, "Alice"); + assert!(restarted.forget(&secrets)); + assert!(restarted.form().prompt); + assert_eq!(restarted.form().username, ""); + assert_eq!(restarted.form().uuid, ""); + assert!(!restarted.form().signed_in); + assert!(restarted.identity().is_none()); + assert_eq!(restarted.form().myts_id, ""); + } + + #[test] + fn switching_primary_account_never_reuses_another_accounts_device_material() { + let secrets = MemorySecrets::default(); + let mut account = Account::default(); + account.accept(&secrets, login("Alice"), "alice@example.test".into()); + assert_eq!( + account.device_for(" ALICE@example.test "), + ("Alice-device".into(), "Alice-otp".into()) + ); + assert_eq!(account.device_for("bob@example.test"), Default::default()); + account.forget(&secrets); + assert_eq!(account.device_for("alice@example.test"), Default::default()); + let mut bob = login("Bob"); + bob.renewal = None; + account.accept(&secrets, bob, "bob@example.test".into()); + let saved = read_saved(&secrets).unwrap().unwrap(); + assert_eq!(saved.uuid, "Bob-uuid"); + assert_eq!(saved.email, "bob@example.test"); + assert!(saved.renewal_token.is_empty()); + assert!(saved.otp_token.is_empty()); + assert!(saved.device_id.is_empty()); + } + + #[test] + fn missing_server_key_keeps_login_but_never_reuses_previous_identity() { + let secrets = MemorySecrets::default(); + let mut account = Account::default(); + account.accept(&secrets, login("Alice"), "alice@example.test".into()); + assert!(account.identity().is_some()); + account.forget(&secrets); + let mut bob = login("Bob"); + bob.identity = Err(voelin_myts::IdentityError::Missing); + account.accept(&secrets, bob, "bob@example.test".into()); + assert!(account.signed_in); + assert!(account.identity().is_none()); + assert_eq!(account.form().identity_status, 3); + assert!(account.form().myts_id.is_empty()); + assert!(read_saved(&secrets).unwrap().unwrap().identity.is_none()); + } + + #[test] + fn corrupted_persisted_private_identity_cannot_be_restored() { + let secrets = MemorySecrets::default(); + let mut account = Account::default(); + account.accept(&secrets, login("Alice"), "alice@example.test".into()); + let mut value: serde_json::Value = + serde_json::from_str(&secrets.get(KEY).unwrap().unwrap()).unwrap(); + value["identity"]["private_key"] = serde_json::json!(vec![0u8; 32]); + secrets.set(KEY, &value.to_string()).unwrap(); + assert!(read_saved(&secrets).is_err()); + let mut restored = Account::default(); + restored.load(&secrets); + assert!(restored.identity().is_none()); + assert_eq!(restored.form().persistence_status, 1); + } + + #[test] + fn keyring_retry_and_legacy_bundle_do_not_claim_a_validated_account() { + let secrets = MemorySecrets::default(); + secrets.set(KEY, r#"{"session":"legacy","email":"a@example.test","username":"A","renewal_token":"r","device_id":"d"}"#).unwrap(); + let mut account = Account { prompt: true, ..Default::default() }; + account.load(&Unavailable); + assert_eq!(account.form().persistence_status, 1); + account.load(&secrets); + assert_eq!(account.status, 0); + assert_eq!(account.form().persistence_status, 0); + assert!(!account.can_forget); + assert!(!account.signed_in); + assert!(account.prompt); + assert_eq!(account.form().uuid, ""); + account.restored(); + assert_eq!(account.form().identity_status, 2); + assert!(account.identity().is_none()); + assert_eq!(account.saved.unwrap().otp_token, ""); + } + + #[test] + fn login_survives_keyring_failure_with_visible_session_only_status() { + let mut account = Account { prompt: true, ..Default::default() }; + account.accept(&Unavailable, login("Alice"), "alice@example.test".into()); + assert!(account.signed_in); + assert!(!account.prompt); + assert_eq!(account.form().persistence_status, 6); + assert!(account.form().can_forget); + assert_eq!(account.form().username, "Alice"); + let generation = account.begin().unwrap(); + assert!(account.finish(generation)); + account.restored(); + assert_eq!( + account.form().persistence_status, + 6, + "validation must not hide failed persistence" + ); + account.status = 11; + assert_eq!( + account.form().persistence_status, + 6, + "opening management must retain the warning" + ); + account.forget(&Unavailable); + account.status = 11; + assert_eq!( + account.form().persistence_status, + 8, + "failed deletion must remain visible after browser launch" + ); + account.forget(&MemorySecrets::default()); + assert_eq!(account.form().persistence_status, 0); + } + + #[test] + fn portal_actions_are_fixed_official_https_destinations() { + for action in 0..10 { + let url = portal_url(action).unwrap(); + assert!(url.starts_with("https://www.myteamspeak.com/")); + assert!(!url.contains(['?', '#', '@'])); + } + assert!(portal_url(-1).is_none()); + assert!(portal_url(10).is_none()); + assert_eq!(portal_url(1), Some("https://www.myteamspeak.com/forgot-password")); + assert_eq!(login_error_status(&voelin_myts::Error::Http(429)), 17); + assert_eq!(login_error_status(&voelin_myts::Error::Timeout), 4); + } + + #[test] + fn failed_late_session_revocation_reports_signed_out_without_overwriting_new_login() { + let mut account = Account::default(); + let old = account.begin().unwrap(); + account.forget(&MemorySecrets::default()); + assert!(!account.finish(old)); + let signed_out = account.generation; + account.revocation_failed(signed_out); + assert_eq!(account.status, 9); + let new = account.begin().unwrap(); + account.revocation_failed(signed_out); + account.revocation_failed(new); + assert_eq!(account.status, 0); + assert!(account.busy); + account.finish(new); + account.signed_in = true; + account.revocation_failed(new); + assert_eq!(account.status, 0); + } + + #[test] + fn form_exposes_signed_out_busy_otp_and_signed_in_states_without_tokens() { + let mut account = Account::default(); + assert!(account.form().available); + assert!(!account.form().signed_in); + assert!(!account.form().can_forget); + let generation = account.begin().unwrap(); + assert!(account.form().busy); + account.finish(generation); + account.otp_required = true; + account.status = 3; + assert!(account.form().otp_required); + assert_eq!(account.form().status, 3); + account.saved = Some(Saved { + session: "secret session".into(), + email: "a@example.test".into(), + username: "Name".into(), + ..Default::default() + }); + account.signed_in = true; + account.otp_required = false; + let form = account.form(); + assert!(form.signed_in); + assert!(form.can_forget); + assert_eq!(form.username, "Name"); + assert_eq!(form.email, "a@example.test"); + assert!(!form.otp_required); + } + + #[test] + fn persistence_roundtrip_and_logout_delete_all_material() { + let secrets = MemorySecrets::default(); + let saved = Saved { + session: "session".into(), + email: "email".into(), + renewal_token: "renewal".into(), + device_id: "device".into(), + username: "name".into(), + otp_token: "otp renewal".into(), + uuid: "account-uuid".into(), + identity: Some(server_identity()), + }; + assert!(save(&secrets, &saved)); + let loaded = read_saved(&secrets).unwrap().unwrap(); + assert_eq!(loaded.session, "session"); + assert_eq!(loaded.renewal_token, "renewal"); + assert_eq!(loaded.email, "email"); + assert_eq!(loaded.identity.unwrap().id(), server_identity().id()); + let loaded = read_saved(&secrets).unwrap().unwrap(); + let mut account = Account { saved: Some(loaded), signed_in: true, ..Default::default() }; + assert!(account.forget(&secrets)); + assert!(read_saved(&secrets).unwrap().is_none()); + assert!(!account.signed_in); + } + + #[test] + fn single_operation_and_logout_prevent_stale_resurrection() { + let mut account = Account::default(); + let generation = account.begin().unwrap(); + assert!(account.begin().is_none()); + account.forget(&MemorySecrets::default()); + assert!(!account.finish(generation)); + let replacement = account.begin().unwrap(); + assert!(!account.finish(generation)); + assert!(account.busy); + assert!(account.finish(replacement)); + } + + struct Unavailable; + impl Secrets for Unavailable { + fn get(&self, _: &str) -> voelin_store::Result> { + Err(voelin_store::Error::Secrets("locked".into())) + } + fn set(&self, _: &str, _: &str) -> voelin_store::Result<()> { + Err(voelin_store::Error::Secrets("locked".into())) + } + fn delete(&self, _: &str) -> voelin_store::Result<()> { + Err(voelin_store::Error::Secrets("locked".into())) + } + } + + #[test] + fn keyring_failure_is_visible_and_logout_still_clears_memory() { + assert!(read_saved(&Unavailable).is_err()); + assert!(!save(&Unavailable, &Saved::default())); + let mut account = + Account { saved: Some(Saved::default()), signed_in: true, ..Default::default() }; + assert!(!account.forget(&Unavailable)); + assert!(account.saved.is_none()); + assert!(!account.signed_in); + assert!(account.can_forget); + } + + #[test] + fn malformed_or_empty_session_is_not_used() { + let secrets = MemorySecrets::default(); + secrets.set(KEY, "broken").unwrap(); + assert!(read_saved(&secrets).is_err()); + assert!(save(&secrets, &Saved::default())); + assert!(read_saved(&secrets).is_err()); + } +} diff --git a/crates/voelin-ui/src/servers.rs b/crates/voelin-ui/src/servers.rs index e9456b5..d774fbf 100644 --- a/crates/voelin-ui/src/servers.rs +++ b/crates/voelin-ui/src/servers.rs @@ -120,6 +120,15 @@ impl App { return; } let mut options = VoiceOptions::new(&b.address, &b.nickname); + if let Some(spec) = &b.client_version { + match voelin_core::versions::resolve(spec) { + Ok(version) => options.client_version = version, + Err(error) => { + self.set_status(format!("Invalid client compatibility version: {error}")); + return; + } + } + } options.identity = Some(self.identity_for(Some(b.id))); options.server_password = self.secrets.get(&b.server_password_key()).ok().flatten(); options.channel = channel; diff --git a/crates/voelin-ui/ui/app.slint b/crates/voelin-ui/ui/app.slint index d3515f1..15d20b9 100644 --- a/crates/voelin-ui/ui/app.slint +++ b/crates/voelin-ui/ui/app.slint @@ -9,6 +9,7 @@ import "assets/fonts/Inter-Bold.ttf"; import "assets/fonts/Inter-Italic.ttf"; import { Palette } from "std-widgets.slint"; +import { LoginPage } from "screens/account.slint"; import { Theme } from "theme.slint"; import { Icons } from "icons.slint"; import { Bridge } from "bridge.slint"; @@ -112,7 +113,7 @@ export component MainWindow inherits Window { keys := FocusScope { // Ctrl+K: search. capture-key-pressed(event) => { - if event.modifiers.control && (event.text == "k" || event.text == "K") && root.chrome { + if event.modifiers.control && (event.text == "k" || event.text == "K") && root.chrome && !Bridge.myts.prompt { Nav.open-search(""); return accept; } @@ -125,9 +126,11 @@ export component MainWindow inherits Window { padding-right: root.safe-area-insets.right; padding-bottom: max(root.safe-area-insets.bottom, root.keyboard-inset); - if !root.chrome: StreamViewer { } + if Bridge.myts.prompt: LoginPage { } - if !Nav.narrow && root.chrome: DesktopShell { + if !Bridge.myts.prompt && !root.chrome: StreamViewer { } + + if !Bridge.myts.prompt && !Nav.narrow && root.chrome: DesktopShell { context: Nav.page == Page.settings ? @tr("Settings") : Nav.page == Page.studio ? @tr("Stream Studio") : ""; if Nav.page == Page.home: Sidebar { HomeNav { } @@ -213,7 +216,7 @@ export component MainWindow inherits Window { } } - if Nav.narrow && root.chrome: MobileShell { + if !Bridge.myts.prompt && Nav.narrow && root.chrome: MobileShell { property channel-chat: Nav.page == Page.server && !Nav.phone-voice && Nav.mobile-tab == MobileTab.chat && !Bridge.viewer-open && Bridge.current-tab >= 0 && Bridge.current-tab < Bridge.tabs.length @@ -288,11 +291,12 @@ export component MainWindow inherits Window { x: (parent.width - self.width) / 2; y: parent.height - self.height - (Nav.narrow ? 140px : 96px); text: Bridge.status-text; + visible: self.shown && !Bridge.myts.prompt; widest: min(560px, parent.width - 32px); } // The member card of the members panel, over everything. - if Bridge.member-card.open: Rectangle { + if !Bridge.myts.prompt && (Bridge.member-card.open): Rectangle { TouchArea { clicked => { Bridge.open-member(-1); } } @@ -302,7 +306,7 @@ export component MainWindow inherits Window { } } - if Nav.emoji-open: Rectangle { + if !Bridge.myts.prompt && (Nav.emoji-open): Rectangle { // Clicks outside the picker close it. TouchArea { clicked => { Nav.emoji-open = false; } @@ -328,7 +332,7 @@ export component MainWindow inherits Window { } // The bell's panel, under the bell (the phone: the whole width). - if Nav.notifications-open: Rectangle { + if !Bridge.myts.prompt && (Nav.notifications-open): Rectangle { TouchArea { clicked => { Nav.notifications-open = false; } } @@ -340,39 +344,39 @@ export component MainWindow inherits Window { } } - if Nav.search-open: SearchPalette { } + if !Bridge.myts.prompt && (Nav.search-open): SearchPalette { } - if Nav.lightbox-open: Lightbox { } + if !Bridge.myts.prompt && (Nav.lightbox-open): Lightbox { } - if Nav.event-form-open: EventDialog { + if !Bridge.myts.prompt && (Nav.event-form-open): EventDialog { form <=> Nav.event-form; done => { Nav.event-form-open = false; } } - if Nav.offline-form-open: OfflineDialog { + if !Bridge.myts.prompt && (Nav.offline-form-open): OfflineDialog { done => { Nav.offline-form-open = false; } } - if Nav.topic-form-open: TopicDialog { + if !Bridge.myts.prompt && (Nav.topic-form-open): TopicDialog { done => { Nav.topic-form-open = false; } } - if Nav.bookmark-open: BookmarkDialog { + if !Bridge.myts.prompt && (Nav.bookmark-open): BookmarkDialog { form <=> Nav.bookmark-form; join: Nav.join-open; done => { Nav.bookmark-open = false; } } - if Nav.share-open: ShareDialog { + if !Bridge.myts.prompt && (Nav.share-open): ShareDialog { form <=> Nav.share-form; done => { Nav.share-open = false; } } - if Nav.client-open: ClientAudioDialog { + if !Bridge.myts.prompt && (Nav.client-open): ClientAudioDialog { done => { Nav.client-open = false; } } - if Nav.about-open: AboutDialog { + if !Bridge.myts.prompt && (Nav.about-open): AboutDialog { done => { Nav.about-open = false; } } } diff --git a/crates/voelin-ui/ui/bridge.slint b/crates/voelin-ui/ui/bridge.slint index 8c349f9..25832a8 100644 --- a/crates/voelin-ui/ui/bridge.slint +++ b/crates/voelin-ui/ui/bridge.slint @@ -767,6 +767,22 @@ export struct AdvancedForm { } // Who we are (My Account page). +export struct MytsForm { + prompt: bool, + uuid: string, + myts-id: string, + identity-status: int, + available: bool, + signed_in: bool, + email: string, + username: string, + status: int, + persistence-status: int, + busy: bool, + otp_required: bool, + can_forget: bool, +} + export struct AccountForm { nickname: string, identity: string, @@ -1092,6 +1108,13 @@ export global Bridge { // Settings pages: a section was shown (its data is loaded then). callback settings-section(int); in property account; + in property myts; + in property primary-name: myts.signed-in ? (myts.username != "" ? myts.username : myts.email) : nickname != "" ? nickname : app-name; + callback myts-dismiss(); + callback myts-retry(); + callback myts-portal(int); + callback myts-login(string, string, string); + callback myts-logout(); in property <[IdentityItem]> identities; in property <[string]> identity-names; in property <[BookmarkIdentity]> bookmark-identities; diff --git a/crates/voelin-ui/ui/screens/account.slint b/crates/voelin-ui/ui/screens/account.slint new file mode 100644 index 0000000..0e3b3a1 --- /dev/null +++ b/crates/voelin-ui/ui/screens/account.slint @@ -0,0 +1,204 @@ +// Shared account form for first launch and Settings → My Account. +import { Theme } from "../theme.slint"; +import { Icons } from "../icons.slint"; +import { Bridge } from "../bridge.slint"; +import { Button, TextField, Field, Card, ScrollView } from "../components/index.slint"; + +component Note inherits Text { + // Keep wrapped account copy in the card’s layout bounds. + min-height: self.preferred-height; + color: Theme.text-secondary; + font-size: Theme.font-sm; + wrap: word-wrap; +} + +component LoginForm inherits VerticalLayout { + spacing: Theme.space-3; + property otp-text; + function submit() { + if !Bridge.myts.busy && email.text != "" && password.text != "" && (!Bridge.myts.otp-required || otp-text != "") { + Bridge.myts-login(email.text, password.text, otp-text); + password.clear(); + otp-text = ""; + } + } + Field { + label: @tr("Email"); + email := TextField { + text: Bridge.myts.email; + placeholder: @tr("Email"); + enabled: !Bridge.myts.busy; + accepted(_) => { root.submit(); } + } + } + Field { + label: @tr("Password"); + password := TextField { + placeholder: @tr("Password"); + input-type: InputType.password; + enabled: !Bridge.myts.busy; + accepted(_) => { root.submit(); } + } + } + if Bridge.myts.otp-required: Field { + label: @tr("One-time code"); + TextField { + text <=> root.otp-text; + placeholder: @tr("One-time code"); + input-type: InputType.password; + enabled: !Bridge.myts.busy; + accepted(_) => { root.submit(); } + } + } + Button { + text: @tr("Sign in"); + enabled: !Bridge.myts.busy && email.text != "" && password.text != "" && (!Bridge.myts.otp-required || root.otp-text != ""); + clicked => { root.submit(); } + } + Button { + text: @tr("Create account in browser"); + enabled: !Bridge.myts.busy; + clicked => { Bridge.myts-portal(0); } + } + Button { + text: @tr("Forgot password?"); + enabled: !Bridge.myts.busy; + clicked => { Bridge.myts-portal(1); } + } + Note { text: @tr("Registration and password recovery open the official myTeamSpeak website. Return here to sign in when finished."); } +} + +export component AccountCard inherits Card { + title: @tr("myTeamSpeak"); + icon: Icons.user; + property account-status: Bridge.myts.status == 2 ? @tr("Saved session could not be validated. Your saved credentials were retained; sign in again or clear them.") : + Bridge.myts.status == 3 ? @tr("Enter your password again and the one-time code.") : + Bridge.myts.status == 4 ? @tr("Sign-in failed. Check your credentials and connection; the experimental service may be unavailable.") : + Bridge.myts.status == 7 ? @tr("Signed out.") : + Bridge.myts.status == 9 ? @tr("Signed out and saved credentials cleared. Remote session revocation failed.") : + Bridge.myts.status == 10 ? @tr("Could not open your browser. Visit myteamspeak.com to manage your account.") : + Bridge.myts.status == 11 ? @tr("Account website opened in your browser. When finished, return here and sign in again to apply changes.") : + Bridge.myts.status == 13 ? @tr("Your email address has not been verified. Activate your account using the link in your email, or request a new activation email.") : + Bridge.myts.status == 14 ? @tr("The one-time code was not accepted. Enter your password and a new code.") : + Bridge.myts.status == 15 ? @tr("Your saved session has expired. Sign in again.") : + Bridge.myts.status == 16 ? @tr("Email or password was not accepted. Check your details and try again.") : + Bridge.myts.status == 17 ? @tr("Too many requests. Wait a while before trying again.") : ""; + if !Bridge.myts.available: Note { text: @tr("Account sign-in is available on desktop."); } + if Bridge.myts.available && !Bridge.myts.signed-in: LoginForm { } + if Bridge.myts.signed-in: VerticalLayout { + spacing: Theme.space-3; + Note { text: @tr("Primary account"); } + Text { + text: Bridge.primary-name; + color: Theme.text; + font-size: Theme.font-lg; + font-weight: Theme.weight-semibold; + wrap: word-wrap; + } + Note { text: Bridge.myts.email; } + if Bridge.myts.uuid != "": Field { + label: @tr("Account ID"); + TextField { + text: Bridge.myts.uuid; + read-only: true; + label: @tr("Account ID"); + } + } + if Bridge.myts.myts-id != "": Field { + label: @tr("myTS ID"); + TextField { + text: Bridge.myts.myts-id; + read-only: true; + label: @tr("myTS ID"); + } + } + if Bridge.myts.identity-status == 1: Note { + text: @tr("Your account identity is available for authentication on voice servers."); + } + if Bridge.myts.identity-status == 2: Note { + text: @tr("Sign out and sign in with your password to enable your myTS ID on voice servers."); + } + if Bridge.myts.identity-status == 3: Note { + text: @tr("Signed in, but the account identity could not be unlocked. Voice servers will not receive your myTS ID. Try signing in again; older account encryption may be unsupported."); + } + Note { text: @tr("This is your main app profile. Server identities and server nicknames are managed separately."); } + Note { text: @tr("Account management opens the official website. Check which account is signed in there. Sign in again here after making changes."); } + Button { + text: @tr("Manage account in browser"); + enabled: !Bridge.myts.busy; + clicked => { Bridge.myts-portal(2); } + } + for action in [ + { text: @tr("Change username"), portal: 4 }, + { text: @tr("Change email"), portal: 5 }, + { text: @tr("Change password"), portal: 6 }, + { text: @tr("Two-factor authentication"), portal: 7 }, + { text: @tr("Manage account deletion"), portal: 8 }, + { text: @tr("Export account data"), portal: 9 }, + ]: Button { + text: action.text; + small: true; + enabled: !Bridge.myts.busy; + clicked => { Bridge.myts-portal(action.portal); } + } + } + if Bridge.myts.busy: Note { text: @tr("Contacting account service…"); } + if root.account-status != "": Note { text: root.account-status; } + if Bridge.myts.persistence-status == 1: Note { + text: @tr("Saved account credentials could not be read. Unlock the keyring or clear the saved session."); + } + if Bridge.myts.persistence-status == 5: Note { + text: @tr("Account credentials could not be saved. This session will not be restored after restarting."); + } + if Bridge.myts.persistence-status == 6: Note { + text: @tr("Account credentials could not be saved, and older credentials could not be removed. Unlock your keyring and clear the saved session."); + } + if Bridge.myts.persistence-status == 8: Note { + text: @tr("Signed out locally, but saved credentials could not be removed. Unlock your keyring and clear the saved session again."); + } + if Bridge.myts.status == 13: Button { + text: @tr("Resend activation email in browser"); + enabled: !Bridge.myts.busy; + clicked => { Bridge.myts-portal(3); } + } + if Bridge.myts.can-forget && !Bridge.myts.busy: Button { + text: Bridge.myts.signed-in ? @tr("Check session") : @tr("Retry saved session"); + clicked => { Bridge.myts-retry(); } + } + if Bridge.myts.can-forget || Bridge.myts.busy: Button { + text: Bridge.myts.busy ? @tr("Cancel and clear session") : Bridge.myts.signed-in ? @tr("Sign out") : @tr("Clear saved session"); + clicked => { Bridge.myts-logout(); } + } +} + +export component LoginPage inherits ScrollView { + VerticalLayout { + width: root.visible-width; + padding: Theme.space-4; + spacing: Theme.space-5; + alignment: start; + HorizontalLayout { + Rectangle { horizontal-stretch: 1; } + VerticalLayout { + max-width: 480px; + horizontal-stretch: 1; + spacing: Theme.space-4; + Text { + text: @tr("Welcome to {}", Bridge.app-name); + color: Theme.text; + font-size: Theme.font-xl; + font-weight: Theme.weight-semibold; + wrap: word-wrap; + } + Note { text: @tr("Sign in to make your myTeamSpeak account your main profile."); } + AccountCard { } + Button { + text: @tr("Continue without an account"); + clicked => { Bridge.myts-dismiss(); } + } + Note { text: @tr("You can connect to servers without an account and sign in later in Settings → My Account."); } + } + Rectangle { horizontal-stretch: 1; } + } + } +} diff --git a/crates/voelin-ui/ui/screens/mobile.slint b/crates/voelin-ui/ui/screens/mobile.slint index fc12200..087e8b4 100644 --- a/crates/voelin-ui/ui/screens/mobile.slint +++ b/crates/voelin-ui/ui/screens/mobile.slint @@ -144,7 +144,8 @@ export component YouPage inherits ScrollView { alignment: center; horizontal-stretch: 1; Text { - text: Bridge.nickname != "" ? Bridge.nickname : Bridge.app-name; + text: Bridge.primary-name; + overflow: elide; color: Theme.text; font-size: Theme.font-lg; font-weight: Theme.weight-semibold; diff --git a/crates/voelin-ui/ui/screens/settings-pages.slint b/crates/voelin-ui/ui/screens/settings-pages.slint index 40ed831..1ea5053 100644 --- a/crates/voelin-ui/ui/screens/settings-pages.slint +++ b/crates/voelin-ui/ui/screens/settings-pages.slint @@ -3,6 +3,7 @@ // (encoding, SRTP, history, cache, logs, every setting); and the rows the // sections share. +import { AccountCard } from "account.slint"; import { Theme } from "../theme.slint"; import { Icons } from "../icons.slint"; import { Bridge, IdentityItem, LayerItem, AudioSourceItem, ConfigItem, PermItem, SettingItem, EncoderItem } from "../bridge.slint"; @@ -168,6 +169,7 @@ component CopyField inherits Field { export component AccountSection inherits VerticalLayout { alignment: start; spacing: Theme.space-5; + AccountCard { } Card { title: @tr("Identity in use"); icon: Icons.id-card; @@ -219,21 +221,6 @@ export component AccountSection inherits VerticalLayout { text: @tr("Servers know you by this id: your groups and permissions belong to it. Your nickname is set per server, in the server's bookmark."); } } - Card { - title: @tr("myTeamSpeak"); - icon: Icons.info; - Hint { - text: @tr("{} does not sign in to myTeamSpeak, TeamSpeak's account service: it has no public API, and its terms do not allow using the private one. To use identities synchronised there, sign in once with the official client, then import them under Profiles: they are read from its settings, never written.", Bridge.app-name); - } - HorizontalLayout { - alignment: start; - Button { - icon: Icons.download; - text: @tr("Import identities"); - clicked => { Nav.open-settings(SettingsSection.profiles); } - } - } - } } // Use as default, export, delete. diff --git a/crates/voelin-ui/ui/screens/settings.slint b/crates/voelin-ui/ui/screens/settings.slint index 9fb9128..68357b0 100644 --- a/crates/voelin-ui/ui/screens/settings.slint +++ b/crates/voelin-ui/ui/screens/settings.slint @@ -1136,7 +1136,7 @@ export component SettingsPage inherits Rectangle { : s == SettingsSection.keybinds ? @tr("How your voice goes out, and the keys for it.") : s == SettingsSection.streaming ? @tr("Defaults of your streams, their layers and their sound.") : s == SettingsSection.privacy ? @tr("Who can reach you, blocked people, what the app keeps.") - : s == SettingsSection.account ? @tr("Who servers see when you connect.") + : s == SettingsSection.account ? @tr("Your main account and server identity.") : s == SettingsSection.profiles ? @tr("Your identities: each is a unique id on every server.") : s == SettingsSection.devices ? @tr("Microphones, speakers, cameras and screens.") : s == SettingsSection.notifications ? @tr("What the bell and the desktop tell you.") diff --git a/crates/voelin-ui/ui/shells/common.slint b/crates/voelin-ui/ui/shells/common.slint index 03543b6..6210a56 100644 --- a/crates/voelin-ui/ui/shells/common.slint +++ b/crates/voelin-ui/ui/shells/common.slint @@ -164,7 +164,7 @@ export component VoiceButtons inherits HorizontalLayout { } } -// Who we are on the current server, and the voice buttons. +// The primary app profile, with current server voice status and controls. export component UserCard inherits Rectangle { min-height: 60px; border-radius: Theme.radius-lg; @@ -179,10 +179,10 @@ export component UserCard inherits Rectangle { alignment: center; Avatar { size: 38px; - initials: Bridge.nickname != "" ? "" : "?"; + initials: Bridge.myts.signed-in || Bridge.nickname != "" ? "" : "?"; image: Bridge.own-avatar; tint: Theme.accent; - label: Bridge.nickname; + label: Bridge.primary-name; // Green ring while our voice goes out. speaking: Bridge.transmitting; status: Bridge.voice-connected ? Status.online : Bridge.observing ? Status.info : Status.offline; @@ -190,7 +190,7 @@ export component UserCard inherits Rectangle { source: Icons.user; size: 20px; tint: #ffffff; - visible: Bridge.nickname != "" && Bridge.own-avatar.width == 0; + visible: (Bridge.myts.signed-in || Bridge.nickname != "") && Bridge.own-avatar.width == 0; } } } @@ -198,7 +198,7 @@ export component UserCard inherits Rectangle { alignment: center; horizontal-stretch: 1; Text { - text: Bridge.nickname != "" ? Bridge.nickname : Bridge.app-name; + text: Bridge.primary-name; color: Theme.text; font-weight: Theme.weight-semibold; overflow: elide; diff --git a/docs/i18n.md b/docs/i18n.md index 5eb0161..63965ce 100644 --- a/docs/i18n.md +++ b/docs/i18n.md @@ -1,9 +1,11 @@ # Translations -The UI is translated with Slint's gettext-based translations: strings in +The UI uses Slint's gettext-based translation markers: strings in `.slint` files are marked with `@tr(...)`, extracted into a `.pot` template, -translated in `.po` files, and **compiled into the binary** (Slint's bundled -translations). Nothing is loaded at runtime, so there is no dependency on +translated in `.po` files, and can be **compiled into the binary** (Slint's bundled +translations). The repository currently has a `.pot` template but no `.po` +translations; bundled translations are not enabled yet. Nothing needs to be +loaded at runtime, so there is no dependency on GNU gettext (LGPL) and it works the same on Linux, Windows and Android. ## Marking strings @@ -68,7 +70,9 @@ MSYS2 or Git for Windows' bundled tools). ```sh # 1. Extract the template after changing strings -slint-tr-extractor --package-name voelin-ui crates/voelin-ui/ui/*.slint -o crates/voelin-ui/lang/voelin-ui.pot +mkdir -p crates/voelin-ui/lang +rg --files crates/voelin-ui/ui -g '*.slint' | sort | \ + xargs slint-tr-extractor --package-name voelin-ui -o crates/voelin-ui/lang/voelin-ui.pot # 2. Update every translation (new strings empty, changed ones fuzzy) for po in crates/voelin-ui/lang/*/LC_MESSAGES/voelin-ui.po; do @@ -91,7 +95,8 @@ translatable yet. ## Bundling and language selection -`crates/voelin-ui/build.rs` compiles the translations into the binary: +Once the first `.po` translation exists, configure `crates/voelin-ui/build.rs` +to compile translations into the binary: ```rust slint_build::compile_with_config( diff --git a/docs/identity.md b/docs/identity.md index a4f0ec9..59324b0 100644 --- a/docs/identity.md +++ b/docs/identity.md @@ -10,6 +10,12 @@ private key.** Voelin can import identities from the official clients so that switching does not mean starting over, and export them back so they are never trapped here. +The myTeamSpeak account has a separate signing identity. After password sign-in, +Voelin can authenticate its `myTS ID` on voice servers without replacing the +P-256 identity that owns server permissions. The primary account applies to all +voice connections and is cleared on sign-out. See +[the account protocol notes](research/myteamspeak.md#authenticated-account-identity-on-voice-servers). + ## The unique ids Both generations derive the unique id from `omega`, the base64 of the DER @@ -232,10 +238,14 @@ the repository. Every fixture in the tests is generated by and import that. - **The other `ProtobufItems` item types.** Bookmarks, connection profiles and server lists are not imported. Only identities are. -- **myTeamSpeak sign-in.** There is no public API and the terms forbid the - non-public ones, so identities synchronised only to a myTeamSpeak account and - not present locally cannot be fetched. Sign in with the official client once - so it writes them to `settings.db`, then import from there. +- **myTeamSpeak identity synchronisation.** Desktop My Account supports an + experimental account session, but does not fetch cloud identities or decrypt + account backups. Sign in with the official client once so it writes the + identities to `settings.db`, then import from there. See + [research/myteamspeak.md](research/myteamspeak.md) for the account client's + verification scope, session renewal, and cloud-sync limitations. The signed-in + account is the main app profile; server identities and bookmark nicknames are + independent. - **Writing back to the official clients.** Voelin only reads them. Use the `.ini` export and the client's own import. - **Bringing the nickname's history along.** Only the key pair and the diff --git a/docs/research/myteamspeak.md b/docs/research/myteamspeak.md index 8987e74..7cbb3dc 100644 --- a/docs/research/myteamspeak.md +++ b/docs/research/myteamspeak.md @@ -1,21 +1,234 @@ # myTeamSpeak -## Conclusion: out of scope +## Desktop account sessions myTeamSpeak is TeamSpeak's account service: it holds the user's identities, bookmarks and settings server-side so the official clients can synchronise -them. Voelin does **not** sign in to it. +them. Voelin opens a login page at desktop startup and makes the signed-in +myTeamSpeak account the main app profile. The same form lives in Settings → +My Account. Native login, OTP, saved-session validation and sign-out use +`voelin-myts`; registration, password recovery and account management open the +official website in the default browser. -There is no public API for it. The endpoints the official client uses are not -documented for third parties, and TeamSpeak's terms of service do not permit -using non-public ones. So there is nothing to implement here that could be -maintained, and nothing that would be allowed. This file exists so the question -is not re-researched. +This reverses the previous decision to leave account sign-in out of scope, at +the repository owner's request. The API remains non-public. This integration +does not establish permission to use or redistribute TeamSpeak's private API +or schemas. -What the user gets instead: sign in with the official client once, so that it -writes the synchronised identities into its local `settings.db`, then -`voelinctl identity import` reads them from there. See -[../identity.md](../identity.md). +Registration, activation-email resend, password recovery, username/email/password +changes, two-factor authentication, deletion and data export are available through +named browser actions. The website may be signed in to a different account; +Voelin does not transfer credentials to it. After completing a change, sign out +and back in to Voelin to refresh the profile. + +Native cloud synchronization and recovery-key restoration are not implemented. +The app does not synchronize identities, bookmarks or settings, or create +account encryption and backup keys. Password login can decrypt an existing +version-2 account key to authenticate the account on voice servers (below). +To import cloud identities, sign in with the official client +so they are written to its local `settings.db`, then use the existing identity +import. See [../identity.md](../identity.md). + +### Transport and verification boundary + +The implementation consumes the message types, session status checks and wire +codec from the local `schema-api` snapshot in `third_party/schema-api`. Its +generated tonic gRPC clients are not used: the official clients use custom +protobuf-over-HTTP with `Content-Type: application/ts3cloud` at +`https://clientapi.myteamspeak.com`. + +Requests contain a one-byte method-name length, the method name, and then the +protobuf payload. For login this is `05 6c 6f 67 69 6e` followed by `LoginData`. +Responses contain the protobuf alone. The live service labels these binary +responses `application/json`; decoding still uses protobuf and requires the +operation's explicit success status. Login uses `/authentication`; session +validation and deletion use `/session`. + +`Client::login` accepts the user's password and derives the wire credential: +standard Base64 of PBKDF2-HMAC-SHA512 with 10,000 iterations, 48 output bytes, +and salt `ASCII_lowercase(email) + "ts3Login" + password`. The derivation runs +on Tokio's blocking pool. It reuses `base64` and `pbkdf2` already present in +the workspace dependency graph; no new cryptographic implementation is added. + +These details replace the initial guessed header and raw-password handling. +On 2026-10-04, an owner-authorized live login, session validation, and logout +passed. Ordinary tests remain offline and use synthetic credentials. Live OTP +and expired-session renewal have not been verified. + +Static evidence from the installed clients (ELF virtual addresses): + +- TS3 request framing: `0x14a19dd`–`0x14a1a49`; password salt and iterations: + `0x1152b60`–`0x1152c24`; 48-byte derivation: `0x1154920`; SHA-512 selection: + `0x11e35af` and descriptor table `0x1b4a930`. Executable SHA-256: + `87c9b6927949d28c64e9da21fdf62bdf7a9e5b204597e9f75497ff6ee45be8ac`. +- TS6 request framing: `0x1dfd4e1`–`0x1dfd54c`; response decoding: + `0x1dfddcb`–`0x1dfde0b`. Executable SHA-256: + `9a32215a578a14525ec43f5e6f60aae087c0229c1b60487da235e3b3782cd40a`. + +The renewal request has separate `renewal_token` and `auth_token` fields. +The official TS3 client requires both cached values before renewing +(`0x1143d81`–`0x1143dba`). Password login supplies no auth token, so an expired +password-login session requires fresh sign-in. The client API rejects missing +renewal credentials before making a request. It does not silently create the +separate shareable authentication token used by the official client's +sharing/import flow. + +A saved OTP renewal token is used only with the same account's device ID in a +password login; an explicit one-time code takes precedence. Both are replaced +with the next successful response and cleared on sign-out. The installed TS6 +serializer at `0x1cbed20`–`0x1cbefc1` independently confirms the email/password/OTP/ +device/OTP-renewal fields. Live OTP and token rotation remain unverified. + +Passwords and one-time codes are not persisted. Session and renewal material +are stored together as a single `myts/session` item through the app's secret +store, never in plaintext settings. Replacing one item prevents a partial write +from mixing credentials from different accounts. The bundle also stores the +account UUID, username and email, with backward-compatible defaults for older +bundles. Startup validates a saved session before showing its profile as signed +in. A valid session closes the login page; errors leave retry and manual sign-in +available. Transport failures retain saved credentials. A locked keyring can be +retried without restarting. Continue without an account dismisses the prompt +for the current run and leaves server features available. + +Sign-out returns to login, clears local account material and attempts remote +session deletion; storage or remote errors are reported. A late completion +cannot sign a canceled operation back in. Server identities and bookmark +nicknames remain independent of the primary app profile. + +### Authenticated account identity on voice servers + +The account UUID is a profile identifier, not the authenticated `myTS ID`. +Password login unwraps the account's encrypted root key, then the account's +private signing scalar. The key pair is checked before it becomes usable. +The validated identity is stored with the session in the secret store; it is +not published to voice sessions until saved-session validation succeeds. +Older saved sessions need a fresh password sign-in to obtain this identity. +Missing, unsupported or invalid identity data leaves account login usable and +shows an explicit warning that voice servers will not receive a myTS ID. + +The established version-2 format uses: + +- PBKDF2-HMAC-SHA512, 10,000 iterations, 32 bytes, with salt + `ASCII_lowercase(email) + "ts3Encryption" + password`. +- Root wrapping: `02 || tag16 || nonce12 || ciphertext32`, AES-256-GCM + with empty associated data. +- Private-key wrapping: `iv16 || ciphertext32 || SHA512(plaintext32)`, + AES-256-CTR with a little-endian 128-bit counter. The digest and matching + public key must verify. Version-1 root wrapping is explicitly unsupported. + +The existing transport's connection challenge is +`SHA256(30 08 00 00 00 00 || shared_iv64) || "MyTeamSpeakID"`. +Signing uses the raw account scalar, not Ed25519 seed expansion. The public +proof sends `myTeamspeakId`, `acTime`, `userPubKey`, `authSign`, `pubSign` and +`pubSignCert` on `clientinit`; the last two split `public_signature` at byte 64. +The HTTP response's numeric creation timestamp is byte-swapped once for the +voice protocol's decimal `acTime`. The provider public signature covers +`public_key32 || wire_acTime.to_le_bytes() || myTS_ID33`. +Neither the account UUID nor `mytsid_user_cert.cert` substitutes for these fields. +Private key material never belongs in a packet. + +The main account is shared by all voice connections. Each new connection signs +its own challenge. Account changes cancel an unfinished handshake; connected +clients send `updatemytsid`, and logout sends an empty myTS ID. Rejected or +unanswered account updates disconnect rather than retaining a previous account +association. Cloud avatar retrieval is outside this branch. + +Static TS3 evidence in the binary identified above: proof helper `0x1018580`, +`clientinit` invocation `0x1020c3b`, live update `0x1049659`, scalar signing +`0x1196800`, password KDF `0x1152cf0`, version-2 unwrap `0x11542d0`, GCM +layout `0x1155610`, and private-key integrity check `0x1153280`. +The login-to-storage timestamp swap is at `0x110b57c`; the server's public +signature payload is built at `0x1222da`–`0x12260d` in the pinned TS3 server. +Independent synthetic crypto vectors and malformed/tampered key tests cover +the local implementation. The ignored `voelin-core/tests/myts_live.rs` test +requires explicit account opt-in and caller-owned loopback servers; it checks +server-side identity association, clearing, reattachment, and fresh handshakes. + +On 2026-10-04, owner-authorized live password login, authenticated key unwrap, +session validation and remote session deletion passed. Isolated official TS3 +3.13.8 and TS6 6.0.0-beta13.1 servers each accepted two fresh signed handshakes, +reported the expected `client_myteamspeak_id`, and passed live clear/reattach +checks. Both reported the native Linux compatibility tuple and Voelin metadata. +The test servers needed a container-local DNS override to a working address +for `ts3services.teamspeak.com` before their official revocation-list downloads +succeeded; TLS and signature/revocation checks remained enabled. No server +override is part of the application. + +Official-client visual inspection remains unverified: isolated TS3 3.6.2 +crashed before showing its UI; isolated TS6 started but required account +confirmation before reaching the server view. No existing client profile was +changed. GUI checks of Voelin's account fields passed at desktop and narrow +sizes using synthetic account data. + +### Client reporting + +The voice engine chooses an unchanged signed compatibility tuple for the +actual operating system. A bookmark's explicit compatibility-version override +is honored and validated. `client_meta_data` identifies `Voelin`, its package +version and native OS. The CLI uses the same catalogue and native default. +TeamSpeak signs compatibility versions: replacing the signed version with an +arbitrary `Voelin` string is not supported. Metadata does not establish that +stock clients display Voelin in their standard version label. + +An account change during an automatic transport reconnect cancels that voice +session to prevent stale credentials from being sent. Reconnect manually in +that case; ordinary connected account changes use the live update command. + +The vendored crate has no declared license. Its provenance is recorded in +`third_party/schema-api/VOELIN-PATCH.md`; no license grant is inferred from its +presence. Runtime dependency notices are generated normally. + +### Official account-management routes + +Read-only inspection on 2026-10-04 verified these routes in the deployed +[main bundle](https://www.myteamspeak.com/main.a0429db5055b28c1.js) and +[account-management bundle](https://www.myteamspeak.com/933.0799f055321e36e9.js): + +| Action | Official route | +| --- | --- | +| Registration | `https://www.myteamspeak.com/register` | +| Password recovery | `https://www.myteamspeak.com/forgot-password` | +| Activation email | `https://www.myteamspeak.com/resend-activation` | +| Account overview | `https://www.myteamspeak.com/my-account` | +| Username / email / password | `/my-account/change-username`, `/my-account/change-email`, `/my-account/change-password` | +| Two-factor authentication | `/my-account/change-2fa` | +| Deletion / data export | `/my-account/manage-account`, `/my-account/manage-data` | + +The site's authentication guard preserves the requested destination. Its +[registration](https://www.myteamspeak.com/5.dcb40731983490af.js) and +[password recovery](https://www.myteamspeak.com/252.5c94d1e115160e7d.js) flows +use reCAPTCHA. Password changes rewrap encryption-key material, and deletion +requires a separate confirmation. Browser handoff retains those provider-owned +steps. Only fixed HTTPS URLs are passed as desktop-opener arguments; no shell, +email, password or token is included. Opening a page does not submit a change. +These are website-source findings, not a published native API guarantee. + +### Local verification + +```sh +cargo test -p voelin-myts +cargo test -p voelin-ui --lib myts::tests +cargo build -p voelin-myts -p voelin-ui +cargo clippy $(scripts/own-crates.sh) --all-targets --no-deps -- -D warnings +cargo fmt $(scripts/own-crates.sh) --check +scripts/notices.sh --check +``` + +The HTTP tests use loopback mock servers and synthetic credentials. UI tests +cover the secret-store bundle, failed reads/writes/deletes, form states, +concurrent operations, primary-account replacement, legacy-bundle migration, +remembered-device ownership and late completions after sign-out. Screenshot +fixtures use `VOELIN_DEMO_UI=1` and `VOELIN_OPEN=login`, `login:otp`, +`login:saved` or `login:account`; they never read the keyring. The formatting +command excludes vendored sources; `cargo fmt --all` also traverses local path +dependencies and reports upstream formatting differences. Clippy's `--no-deps` +also keeps diagnostics out of the existing vendored protocol crates. + +The ignored `owner_live_login_validate_logout` test requires the owner to set +`VOELIN_MYTS_LIVE=1`, `VOELIN_MYTS_EMAIL`, `VOELIN_MYTS_PASSWORD`, +`VOELIN_MYTS_DEVICE_ID`, and optionally `VOELIN_MYTS_OTP`, then explicitly run +`cargo test -p voelin-myts owner_live_login_validate_logout -- --ignored`. +This test is not part of the offline verification commands above. ## The local record, structurally diff --git a/docs/ui.md b/docs/ui.md index 37a0ceb..5c5c585 100644 --- a/docs/ui.md +++ b/docs/ui.md @@ -177,7 +177,7 @@ Settings sections (`settings:
`): | Section | Holds | |---|---| -| `account` | The identity in use (nickname, TeamSpeak 3 and 6 unique ids, security level) and why there is no myTeamSpeak sign-in | +| `account` | The identity in use (nickname, TeamSpeak 3 and 6 unique ids, security level); on desktop, the primary myTeamSpeak profile, login/OTP, session status, sign-out and official browser account-management actions | | `profiles` (also `identities`) | Identities with where they came from: rename, use as default (the store's default, `Store::set_default_identity`), export as a TeamSpeak 3 .ini, delete, raise the security level on every core; the import of the official clients' identities on start (`identity.import_from_teamspeak`) and by hand from their settings and .ini files (key material is never shown); the identity per server | | `appearance` | Theme, text size, the phone layout's width, the image cache | | `voice` | Microphone (device, test, level, noise suppression, echo cancellation, automatic gain), output (device, test sound, volume), streaming permissions, camera (device, preview with the background effect), video settings (resolution, frame rate 15 to 320 fps, codec, hardware acceleration, mirror), stream quality presets (Auto, 720p to 8K) with free bitrate entry (slider up to 60 Mbit/s, empty: automatic) and the upload it takes | @@ -189,8 +189,20 @@ Settings sections (`settings:
`): | `integrations` | The gateways of our servers with their features, and their administration for admins (configuration keys, permission rules); FFmpeg, the video encoders and decoders, what works and why not | | `advanced` | Encoder and decoder, hardware acceleration and decoding, SRTP profiles, chat history, cache, transfers, logs and crash reports, and every setting by its key as JSON | -Every control reads and writes `voelin_core::settings` and applies at -once; numbers are typed freely next to the presets. +Settings controls read and write `voelin_core::settings` and apply at once; +numbers are typed freely next to the presets. + +Desktop startup shows the shared myTeamSpeak login page until a saved session +is validated, a login succeeds, or the user chooses Continue without an account. +The signed-in username/email becomes the primary app profile in the desktop +user card and mobile You page; it does not replace server identities or bookmark +nicknames. Settings → My Account reuses the form, supports retry/OTP/sign-out, +and opens official browser flows for registration, activation, recovery and +account management. Account and renewal material live only in the keyring; +passwords and one-time codes are cleared after submission. Expired sessions +require fresh sign-in because password login supplies no renewal auth token. +See [research/myteamspeak.md](research/myteamspeak.md) for protocol evidence +and remaining cloud-sync limitations. ## The Stream Studio diff --git a/scripts/notices.sh b/scripts/notices.sh index 6152643..7aa2f2a 100755 --- a/scripts/notices.sh +++ b/scripts/notices.sh @@ -47,6 +47,10 @@ if grep -E "WARN|ERROR" "$tmp/log" >&2; then exit 1 fi cat about-assets.md >>"$tmp/$OUT" +# Some upstream license texts contain trailing spaces. Keep the generated +# Markdown clean without changing the words of those notices. +sed 's/[[:blank:]]*$//' "$tmp/$OUT" >"$tmp/normalized" +mv "$tmp/normalized" "$tmp/$OUT" if $check; then if ! diff -u "$OUT" "$tmp/$OUT" >"$tmp/diff"; then diff --git a/third_party/schema-api/Cargo.lock b/third_party/schema-api/Cargo.lock new file mode 100644 index 0000000..a38ce01 --- /dev/null +++ b/third_party/schema-api/Cargo.lock @@ -0,0 +1,1404 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 4 + +[[package]] +name = "adler2" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa" + +[[package]] +name = "aho-corasick" +version = "1.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c982642fa9e8606056828ee9a8505737230110bb1099153c79efe865c59d12ba" +dependencies = [ + "memchr", +] + +[[package]] +name = "anyhow" +version = "1.0.104" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "330a5ed07fa54e4702c9d6c4174f74427fc0ef6e214bbd677ae50a5099946470" + +[[package]] +name = "async-trait" +version = "0.1.92" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "82f6aeea286b8eb4dd3431a1be1b59d290ace00f5bfd8e2a159bc2a05e2c1667" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.6", +] + +[[package]] +name = "atomic-waker" +version = "1.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0" + +[[package]] +name = "autocfg" +version = "1.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53" + +[[package]] +name = "axum" +version = "0.8.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "31b698c5f9a010f6573133b09e0de5408834d0c82f8d7475a89fc1867a71cd90" +dependencies = [ + "axum-core", + "bytes", + "futures-util", + "http", + "http-body", + "http-body-util", + "itoa", + "matchit", + "memchr", + "mime", + "percent-encoding", + "pin-project-lite", + "serde_core", + "sync_wrapper", + "tower", + "tower-layer", + "tower-service", +] + +[[package]] +name = "axum-core" +version = "0.5.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08c78f31d7b1291f7ee735c1c6780ccde7785daae9a9206026862dab7d8792d1" +dependencies = [ + "bytes", + "futures-core", + "http", + "http-body", + "http-body-util", + "mime", + "pin-project-lite", + "sync_wrapper", + "tower-layer", + "tower-service", +] + +[[package]] +name = "base64" +version = "0.22.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6" + +[[package]] +name = "bitflags" +version = "2.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3ded4057c258ba199e2d26386d3af3780957ecaee6c4ef4041c6b4b8b97c0b06" + +[[package]] +name = "bytes" +version = "1.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04" + +[[package]] +name = "cc" +version = "1.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f74872d07caf508b30a21f6836e7d7016a2eaf7d9ff4f48deaa58cd8a0407630" +dependencies = [ + "find-msvc-tools", + "shlex", +] + +[[package]] +name = "cfg-if" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600" + +[[package]] +name = "core-foundation" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b2a6cd9ae233e7f62ba4e9353e81a88df7fc8a5987b8d445b4d90c879bd156f6" +dependencies = [ + "core-foundation-sys", + "libc", +] + +[[package]] +name = "core-foundation-sys" +version = "0.8.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" + +[[package]] +name = "crc32fast" +version = "1.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "01a7799fd6b852db0e61728dde9a204c423b44d689dbd432522543614b490e78" +dependencies = [ + "cfg-if", +] + +[[package]] +name = "either" +version = "1.18.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "252afb9ae5eaa683babdc6a068b3f5726eb19e05070c731f9b2a23a7c3e8ed34" + +[[package]] +name = "equivalent" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f" + +[[package]] +name = "errno" +version = "0.3.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb" +dependencies = [ + "libc", + "windows-sys 0.61.2", +] + +[[package]] +name = "fastrand" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "da7c62ceae207dd37ea5b845da6a0696c799f85e97da1ab5b7910be3c1c80223" + +[[package]] +name = "find-msvc-tools" +version = "0.1.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aedcfb3409746eddb02b9e19ebda1c3394f759a152e48ee875a0844d1b955484" + +[[package]] +name = "fixedbitset" +version = "0.5.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d674e81391d1e1ab681a28d99df07927c6d4aa5b027d7da16ba32d1d21ecd99" + +[[package]] +name = "flate2" +version = "1.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e634e2e0ebac1ee034020da1ca582e17ffe4e0f5e985823721e168928136dcb" +dependencies = [ + "crc32fast", + "miniz_oxide", + "zlib-rs", +] + +[[package]] +name = "fnv" +version = "1.0.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" + +[[package]] +name = "foldhash" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2" + +[[package]] +name = "futures-channel" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1f9e3d69d39e4862ffed03ed071a76f9a13ba1d9109d355b0f0aa6b15e393c4" +dependencies = [ + "futures-core", +] + +[[package]] +name = "futures-core" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92d699e522242e69e3003b94ecc1f960f3a5e015aa7c5d7486e65ad01dd94f5e" + +[[package]] +name = "futures-sink" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1944426bf7d03f1d14f708785e4b33efd750b36d48a157b836b3efc15ede8e1d" + +[[package]] +name = "futures-task" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cd417de3d1d015fc3bfd2b1ea46dfc7bab72ef86f1cc7cc9c78e728b34a6d1fd" + +[[package]] +name = "futures-util" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0d50a92467f8ba5dd6e3ee5d4bd04d73ab2e4e1c44474a0674821dfce14b79bc" +dependencies = [ + "futures-core", + "futures-task", + "pin-project-lite", + "slab", +] + +[[package]] +name = "getrandom" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff2abc00be7fca6ebc474524697ae276ad847ad0a6b3faa4bcb027e9a4614ad0" +dependencies = [ + "cfg-if", + "libc", + "wasi", +] + +[[package]] +name = "getrandom" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "300e883d756b2e4ec94e02791f39b04b522276138852cfc41d9fb7e904106099" +dependencies = [ + "cfg-if", + "libc", + "r-efi", +] + +[[package]] +name = "h2" +version = "0.4.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ef8e5e5a340588f4452631496976cf8636d4a7ecf600239fdc27615d2530bc16" +dependencies = [ + "atomic-waker", + "bytes", + "fnv", + "futures-core", + "futures-sink", + "http", + "indexmap", + "slab", + "tokio", + "tokio-util", + "tracing", +] + +[[package]] +name = "hashbrown" +version = "0.15.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9229cfe53dfd69f0609a49f65461bd93001ea1ef889cd5529dd176593f5338a1" +dependencies = [ + "foldhash", +] + +[[package]] +name = "hashbrown" +version = "0.17.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a" + +[[package]] +name = "heck" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" + +[[package]] +name = "http" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "918d3568bebf352712bc2ef3d46a8bcf1a75b373be6539de198e9105cbbf9ce0" +dependencies = [ + "bytes", + "itoa", +] + +[[package]] +name = "http-body" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca2a8f2913ee65f60facd6a5905613afaa448497a0230cc41ce022d93290bc2c" +dependencies = [ + "bytes", + "http", +] + +[[package]] +name = "http-body-util" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "23169fe34a5fbcdd3f3862e78fb9b6fccd5f02a6dc6f732547005d45631ce71c" +dependencies = [ + "bytes", + "futures-core", + "http", + "http-body", + "pin-project-lite", +] + +[[package]] +name = "httparse" +version = "1.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87" + +[[package]] +name = "httpdate" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9" + +[[package]] +name = "hyper" +version = "1.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "27b501faa50e7a26c3d3560ca625132f4078a17771f4810baf70475ae48cbe43" +dependencies = [ + "atomic-waker", + "bytes", + "futures-channel", + "futures-core", + "h2", + "http", + "http-body", + "httparse", + "httpdate", + "itoa", + "pin-project-lite", + "smallvec", + "tokio", + "want", +] + +[[package]] +name = "hyper-timeout" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b90d566bffbce6a75bd8b09a05aa8c2cb1fabb6cb348f8840c9e4c90a0d83b0" +dependencies = [ + "hyper", + "hyper-util", + "pin-project-lite", + "tokio", + "tower-service", +] + +[[package]] +name = "hyper-util" +version = "0.1.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ddc03d96684f9226b8a787cdb71488417b53ab5ea8fdb1dac946cb9431cc8bff" +dependencies = [ + "bytes", + "futures-channel", + "futures-util", + "http", + "http-body", + "httparse", + "hyper", + "libc", + "pin-project-lite", + "socket2", + "tokio", + "tower-service", + "tracing", +] + +[[package]] +name = "indexmap" +version = "2.14.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cc4e190f5d26ca7051642629da2c52fc03bde85a03197c99408dcd291734c855" +dependencies = [ + "equivalent", + "hashbrown 0.17.1", +] + +[[package]] +name = "itertools" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b192c782037fadd9cfa75548310488aabdbf3d2da73885b31bd0abd03351285" +dependencies = [ + "either", +] + +[[package]] +name = "itoa" +version = "1.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682" + +[[package]] +name = "libc" +version = "0.2.190" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ce5d3ddc6d3fa000eb1536d85e147bfe31aacaba692ed6a876f95cb7c855be78" + +[[package]] +name = "linux-raw-sys" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53" + +[[package]] +name = "log" +version = "0.4.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f9f8bd3e56ce4dfc153cf470fffbfa98c7620958b312ca5c3a4b8d5181fd13c6" + +[[package]] +name = "matchit" +version = "0.8.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "47e1ffaa40ddd1f3ed91f717a33c8c0ee23fff369e3aa8772b9605cc1d22f4c3" + +[[package]] +name = "memchr" +version = "2.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98" + +[[package]] +name = "mime" +version = "0.3.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" + +[[package]] +name = "miniz_oxide" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b63fbc4a50860e98e7b2aa7804ded1db5cbc3aff9193adaff57a6931bf7c4b4c" +dependencies = [ + "adler2", + "simd-adler32", +] + +[[package]] +name = "mio" +version = "1.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1788edb87fdc09c7e26304471e2f5be8cdefb1b6930d6e3985fc02ff53bf86ee" +dependencies = [ + "libc", + "wasi", + "windows-sys 0.61.2", +] + +[[package]] +name = "multimap" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d87ecb2933e8aeadb3e3a02b828fed80a7528047e68b4f424523a0981a3a084" + +[[package]] +name = "num-traits" +version = "0.2.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" +dependencies = [ + "autocfg", +] + +[[package]] +name = "once_cell" +version = "1.21.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50" + +[[package]] +name = "openssl-probe" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7c87def4c32ab89d880effc9e097653c8da5d6ef28e6b539d313baaacfbafcbe" + +[[package]] +name = "ordered-float" +version = "2.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "68f19d67e5a2795c94e73e0bb1cc1a7edeb2e28efd39e2e1c9b7a40c1108b11c" +dependencies = [ + "num-traits", +] + +[[package]] +name = "percent-encoding" +version = "2.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220" + +[[package]] +name = "petgraph" +version = "0.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8701b58ea97060d5e5b155d383a69952a60943f0e6dfe30b04c287beb0b27455" +dependencies = [ + "fixedbitset", + "hashbrown 0.15.5", + "indexmap", +] + +[[package]] +name = "pin-project" +version = "1.1.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2466b2336ed02bcdca6b294417127b90ec92038d1d5c4fbeac971a922e0e0924" +dependencies = [ + "pin-project-internal", +] + +[[package]] +name = "pin-project-internal" +version = "1.1.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c96395f0a926bc13b1c17622aaddda1ecb55d49c8f1bf9777e4d877800a43f8b" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "pin-project-lite" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd" + +[[package]] +name = "prettyplease" +version = "0.2.37" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "479ca8adacdd7ce8f1fb39ce9ecccbfe93a3f1344b3d0d97f20bc0196208f62b" +dependencies = [ + "proc-macro2", + "syn 2.0.119", +] + +[[package]] +name = "proc-macro2" +version = "1.0.107" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "prost" +version = "0.14.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "528ac67416ff8646872a3c02cad9cc4ee5dc9f9540c9b10771855c95cb2e5ae1" +dependencies = [ + "bytes", + "prost-derive", +] + +[[package]] +name = "prost-build" +version = "0.14.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "03da047801ff44bb6a4d407d4860c05fd70bb81714e6b2f3812603d5b145b042" +dependencies = [ + "heck", + "itertools", + "log", + "multimap", + "petgraph", + "prettyplease", + "prost", + "prost-types", + "pulldown-cmark", + "pulldown-cmark-to-cmark", + "regex", + "syn 2.0.119", + "tempfile", +] + +[[package]] +name = "prost-derive" +version = "0.14.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b570b25f7617e43d59005d0990ccb79e950a423952cea19671b7a876da390adf" +dependencies = [ + "anyhow", + "itertools", + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "prost-reflect" +version = "0.16.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "01b80ea363c31af2de2b92e3c07ed1156628f7838c4afb4df75ee78a37fedbd1" +dependencies = [ + "base64", + "prost", + "prost-types", + "serde", + "serde-value", +] + +[[package]] +name = "prost-types" +version = "0.14.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f94967dc7688f3054c7fac87473ffae4cc4c3904800e2d9f5b857246d8963b0a" +dependencies = [ + "prost", +] + +[[package]] +name = "protoc-bin-vendored" +version = "3.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d1c381df33c98266b5f08186583660090a4ffa0889e76c7e9a5e175f645a67fa" +dependencies = [ + "protoc-bin-vendored-linux-aarch_64", + "protoc-bin-vendored-linux-ppcle_64", + "protoc-bin-vendored-linux-s390_64", + "protoc-bin-vendored-linux-x86_32", + "protoc-bin-vendored-linux-x86_64", + "protoc-bin-vendored-macos-aarch_64", + "protoc-bin-vendored-macos-x86_64", + "protoc-bin-vendored-win32", +] + +[[package]] +name = "protoc-bin-vendored-linux-aarch_64" +version = "3.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c350df4d49b5b9e3ca79f7e646fde2377b199e13cfa87320308397e1f37e1a4c" + +[[package]] +name = "protoc-bin-vendored-linux-ppcle_64" +version = "3.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a55a63e6c7244f19b5c6393f025017eb5d793fd5467823a099740a7a4222440c" + +[[package]] +name = "protoc-bin-vendored-linux-s390_64" +version = "3.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1dba5565db4288e935d5330a07c264a4ee8e4a5b4a4e6f4e83fad824cc32f3b0" + +[[package]] +name = "protoc-bin-vendored-linux-x86_32" +version = "3.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8854774b24ee28b7868cd71dccaae8e02a2365e67a4a87a6cd11ee6cdbdf9cf5" + +[[package]] +name = "protoc-bin-vendored-linux-x86_64" +version = "3.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b38b07546580df720fa464ce124c4b03630a6fb83e05c336fea2a241df7e5d78" + +[[package]] +name = "protoc-bin-vendored-macos-aarch_64" +version = "3.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "89278a9926ce312e51f1d999fee8825d324d603213344a9a706daa009f1d8092" + +[[package]] +name = "protoc-bin-vendored-macos-x86_64" +version = "3.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "81745feda7ccfb9471d7a4de888f0652e806d5795b61480605d4943176299756" + +[[package]] +name = "protoc-bin-vendored-win32" +version = "3.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "95067976aca6421a523e491fce939a3e65249bac4b977adee0ee9771568e8aa3" + +[[package]] +name = "pulldown-cmark" +version = "0.13.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e9f068eba8e7071c5f9511831b44f32c740d5adf574e990f946ddb53db2f314e" +dependencies = [ + "bitflags", + "memchr", + "unicase", +] + +[[package]] +name = "pulldown-cmark-to-cmark" +version = "22.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "84bbb29c624230c4bd1047bbdb2aa47e41c860e9665ce62ba9504eebe91bf867" +dependencies = [ + "pulldown-cmark", +] + +[[package]] +name = "quote" +version = "1.0.47" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001" +dependencies = [ + "proc-macro2", +] + +[[package]] +name = "r-efi" +version = "6.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf" + +[[package]] +name = "regex" +version = "1.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f020237b6c8eed93db2e2cb53c00c60a8e1bc73da7d073199a1180401450218d" +dependencies = [ + "aho-corasick", + "memchr", + "regex-automata", + "regex-syntax", +] + +[[package]] +name = "regex-automata" +version = "0.4.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ad8553b9b26413251cbf30e620595c7a41b3887f03da04579c0e6b0d6a06b4b2" +dependencies = [ + "aho-corasick", + "memchr", + "regex-syntax", +] + +[[package]] +name = "regex-syntax" +version = "0.8.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4" + +[[package]] +name = "ring" +version = "0.17.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a4689e6c2294d81e88dc6261c768b63bc4fcdb852be6d1352498b114f61383b7" +dependencies = [ + "cc", + "cfg-if", + "getrandom 0.2.17", + "libc", + "untrusted", + "windows-sys 0.52.0", +] + +[[package]] +name = "rustix" +version = "1.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "891efababe418670775f199f0d233d84843c227a0949a883ce15b37c78d6629d" +dependencies = [ + "bitflags", + "errno", + "libc", + "linux-raw-sys", + "windows-sys 0.61.2", +] + +[[package]] +name = "rustls" +version = "0.23.45" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0d41d731c7d2f962d1ccc364cec258de3c0e93b38c2fb3ba97ac74513048d634" +dependencies = [ + "log", + "once_cell", + "ring", + "rustls-pki-types", + "rustls-webpki", + "subtle", + "zeroize", +] + +[[package]] +name = "rustls-native-certs" +version = "0.8.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dab5152771c58876a2146916e53e35057e1a4dfa2b9df0f0305b07f611fdea4d" +dependencies = [ + "openssl-probe", + "rustls-pki-types", + "schannel", + "security-framework", +] + +[[package]] +name = "rustls-pki-types" +version = "1.15.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2f4925028c7eb5d1fcdaf196971378ed9d2c1c4efc7dc5d011256f76c99c0a96" +dependencies = [ + "zeroize", +] + +[[package]] +name = "rustls-webpki" +version = "0.103.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f3c3cf1d8b1e7d4927e2d154c3fcb02979afb9939629c62cd9048d4f07b60ac2" +dependencies = [ + "ring", + "rustls-pki-types", + "untrusted", +] + +[[package]] +name = "schannel" +version = "0.1.29" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "91c1b7e4904c873ef0710c1f407dde2e6287de2bebc1bbbf7d430bb7cbffd939" +dependencies = [ + "windows-sys 0.61.2", +] + +[[package]] +name = "schema-api" +version = "0.1.0" +dependencies = [ + "prost", + "prost-build", + "prost-reflect", + "prost-types", + "protoc-bin-vendored", + "serde_json", + "thiserror", + "tokio", + "tokio-stream", + "tonic", + "tonic-prost", + "tonic-prost-build", +] + +[[package]] +name = "security-framework" +version = "3.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b7f4bc775c73d9a02cde8bf7b2ec4c9d12743edf609006c7facc23998404cd1d" +dependencies = [ + "bitflags", + "core-foundation", + "core-foundation-sys", + "libc", + "security-framework-sys", +] + +[[package]] +name = "security-framework-sys" +version = "2.17.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ce2691df843ecc5d231c0b14ece2acc3efb62c0a398c7e1d875f3983ce020e3" +dependencies = [ + "core-foundation-sys", + "libc", +] + +[[package]] +name = "serde" +version = "1.0.229" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba" +dependencies = [ + "serde_core", +] + +[[package]] +name = "serde-value" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f3a1a3341211875ef120e117ea7fd5228530ae7e7036a779fdc9117be6b3282c" +dependencies = [ + "ordered-float", + "serde", +] + +[[package]] +name = "serde_core" +version = "1.0.229" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48" +dependencies = [ + "serde_derive", +] + +[[package]] +name = "serde_derive" +version = "1.0.229" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.6", +] + +[[package]] +name = "serde_json" +version = "1.0.151" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c841b55ecdae098c80dcae9cf767f6f8a0c2cdb3416bbef72181df4d0fe73f14" +dependencies = [ + "itoa", + "memchr", + "serde", + "serde_core", + "zmij", +] + +[[package]] +name = "shlex" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8fadd59c855ef2080decdef8ff161eb6661b86933c9d82e5ba29dc602a55aba" + +[[package]] +name = "simd-adler32" +version = "0.3.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a219298ac11a56ea9a6d2120044824d6f01aeb034955e7af7bc16858527deea" + +[[package]] +name = "slab" +version = "0.4.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5" + +[[package]] +name = "smallvec" +version = "1.16.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f9395f0f0eee849a9b707b2f06bb92a6a422090e2123bb2ef8e87a0e61892a8e" + +[[package]] +name = "socket2" +version = "0.6.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3d1e2c7f27f8d4cb10542a02c49005dbd6e93095799d6f3be745fae9f8fedd4" +dependencies = [ + "libc", + "windows-sys 0.61.2", +] + +[[package]] +name = "subtle" +version = "2.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" + +[[package]] +name = "syn" +version = "2.0.119" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "syn" +version = "3.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8593e8e72159ed2257d083c7a454a85cbf854f37a0966d8d483aff8c8a3ebcee" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "sync_wrapper" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0bf256ce5efdfa370213c1dabab5935a12e49f2c58d15e9eac2870d3b4f27263" + +[[package]] +name = "tempfile" +version = "3.27.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd" +dependencies = [ + "fastrand", + "getrandom 0.4.3", + "once_cell", + "rustix", + "windows-sys 0.61.2", +] + +[[package]] +name = "thiserror" +version = "2.0.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09e52cb86a36cede5cb101bf8908837b3e4c6e5e59fe7fd85c23fb56200d189e" +dependencies = [ + "thiserror-impl", +] + +[[package]] +name = "thiserror-impl" +version = "2.0.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fe5197923287db20a58125f0bc85c062f7f2c892de97b18c356f9efb14b28524" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.6", +] + +[[package]] +name = "tokio" +version = "1.53.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e95f91fcc7a621e8b030f6aa23c71fe9838ae2fb4d8118b75602a328f5144044" +dependencies = [ + "bytes", + "libc", + "mio", + "pin-project-lite", + "socket2", + "tokio-macros", + "windows-sys 0.61.2", +] + +[[package]] +name = "tokio-macros" +version = "2.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "78773a2a397f451582ce068015985c33193cf6dea8b74d2a639fe457b2f07b0e" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.6", +] + +[[package]] +name = "tokio-rustls" +version = "0.26.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c9cc2678c2cdd569ef8215e2afd7954ada2ae20b4fdd2c5fe6139a3b02d105db" +dependencies = [ + "rustls", + "tokio", +] + +[[package]] +name = "tokio-stream" +version = "0.1.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a3d06f0b082ba57c26b79407372e57cf2a1e28124f78e9479fe80322cf53420b" +dependencies = [ + "futures-core", + "pin-project-lite", + "tokio", +] + +[[package]] +name = "tokio-util" +version = "0.7.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "494815d09bf52b5548659851081238f0ca39ff638363907596da739561c62c52" +dependencies = [ + "bytes", + "futures-core", + "futures-sink", + "libc", + "pin-project-lite", + "tokio", +] + +[[package]] +name = "tonic" +version = "0.14.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ac2a5518c70fa84342385732db33fb3f44bc4cc748936eb5833d2df34d6445ef" +dependencies = [ + "async-trait", + "axum", + "base64", + "bytes", + "flate2", + "h2", + "http", + "http-body", + "http-body-util", + "hyper", + "hyper-timeout", + "hyper-util", + "percent-encoding", + "pin-project", + "rustls-native-certs", + "socket2", + "sync_wrapper", + "tokio", + "tokio-rustls", + "tokio-stream", + "tower", + "tower-layer", + "tower-service", + "tracing", +] + +[[package]] +name = "tonic-build" +version = "0.14.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c68f61875ac5293cf72e6c8cf0158086428c82c37229e98c840878f1706b0322" +dependencies = [ + "prettyplease", + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "tonic-prost" +version = "0.14.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "50849f68853be452acf590cde0b146665b8d507b3b8af17261df47e02c209ea0" +dependencies = [ + "bytes", + "prost", + "tonic", +] + +[[package]] +name = "tonic-prost-build" +version = "0.14.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "654e5643eff75d7f8c99197ce1440ed19a3474eada74c12bbac488b2cafdae27" +dependencies = [ + "prettyplease", + "proc-macro2", + "prost-build", + "prost-types", + "quote", + "syn 2.0.119", + "tempfile", + "tonic-build", +] + +[[package]] +name = "tower" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebe5ef63511595f1344e2d5cfa636d973292adc0eec1f0ad45fae9f0851ab1d4" +dependencies = [ + "futures-core", + "futures-util", + "indexmap", + "pin-project-lite", + "slab", + "sync_wrapper", + "tokio", + "tokio-util", + "tower-layer", + "tower-service", + "tracing", +] + +[[package]] +name = "tower-layer" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "121c2a6cda46980bb0fcd1647ffaf6cd3fc79a013de288782836f6df9c48780e" + +[[package]] +name = "tower-service" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3" + +[[package]] +name = "tracing" +version = "0.1.44" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100" +dependencies = [ + "pin-project-lite", + "tracing-attributes", + "tracing-core", +] + +[[package]] +name = "tracing-attributes" +version = "0.1.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7490cfa5ec963746568740651ac6781f701c9c5ea257c58e057f3ba8cf69e8da" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "tracing-core" +version = "0.1.36" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a" +dependencies = [ + "once_cell", +] + +[[package]] +name = "try-lock" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" + +[[package]] +name = "unicase" +version = "2.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dbc4bc3a9f746d862c45cb89d705aa10f187bb96c76001afab07a0d35ce60142" + +[[package]] +name = "unicode-ident" +version = "1.0.26" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d245f478577f809a851594d02313b640fb437e0bb33866753cff937863096954" + +[[package]] +name = "untrusted" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" + +[[package]] +name = "want" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e" +dependencies = [ + "try-lock", +] + +[[package]] +name = "wasi" +version = "0.11.1+wasi-snapshot-preview1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b" + +[[package]] +name = "windows-link" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5" + +[[package]] +name = "windows-sys" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" +dependencies = [ + "windows-targets", +] + +[[package]] +name = "windows-sys" +version = "0.61.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc" +dependencies = [ + "windows-link", +] + +[[package]] +name = "windows-targets" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" +dependencies = [ + "windows_aarch64_gnullvm", + "windows_aarch64_msvc", + "windows_i686_gnu", + "windows_i686_gnullvm", + "windows_i686_msvc", + "windows_x86_64_gnu", + "windows_x86_64_gnullvm", + "windows_x86_64_msvc", +] + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" + +[[package]] +name = "windows_i686_gnu" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" + +[[package]] +name = "windows_i686_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" + +[[package]] +name = "windows_i686_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" + +[[package]] +name = "zeroize" +version = "1.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e13c156562582aa81c60cb29407084cdb54c4164760106ab78e6c5b0858cf64e" + +[[package]] +name = "zlib-rs" +version = "0.6.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b268e58e7c693d7c271f93ffc4ba3b380412554231c85bf61ca7af91042a4112" + +[[package]] +name = "zmij" +version = "1.0.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b" diff --git a/third_party/schema-api/Cargo.toml b/third_party/schema-api/Cargo.toml new file mode 100644 index 0000000..c1c90cb --- /dev/null +++ b/third_party/schema-api/Cargo.toml @@ -0,0 +1,40 @@ +[package] +name = "schema-api" +version = "0.1.0" +edition = "2021" +description = "Complete Rust gRPC bindings and client utilities for the supplied API schemas" +readme = "README.md" +publish = false +include = ["src/**", "proto/**", "build.rs", "Cargo.toml", "Cargo.lock", "README.md", "docs/**", "examples/**", "tests/**", "scripts/**"] + +[features] +default = ["reflection"] +reflection = ["dep:prost-reflect", "dep:serde_json"] +server = [] +infrastructure = [] +gzip = ["tonic/gzip"] + +[dependencies] +prost = "0.14" +prost-types = "0.14" +tonic = { version = "0.14", features = ["transport", "tls-ring", "tls-native-roots"] } +tonic-prost = "0.14" +thiserror = "2" +prost-reflect = { version = "0.16", features = ["serde"], optional = true } +serde_json = { version = "1", optional = true } + +[build-dependencies] +prost-build = "0.14" +tonic-prost-build = "0.14" +protoc-bin-vendored = "3" + +[dev-dependencies] +tokio = { version = "1", features = ["macros", "rt-multi-thread", "net", "sync", "time"] } +tokio-stream = { version = "0.1", features = ["net"] } + +[[example]] +name = "inspect_schema" +required-features = ["reflection"] + +# Voelin: keep this vendored package independent of enclosing workspaces. +[workspace] diff --git a/third_party/schema-api/README.md b/third_party/schema-api/README.md new file mode 100644 index 0000000..02885ee --- /dev/null +++ b/third_party/schema-api/README.md @@ -0,0 +1,172 @@ +# schema-api + +A Rust crate for the API in the supplied protobuf archive. It exposes **all 106 application RPCs across nine services**, plus all 228 application message declarations and 33 enums. Original namespaces, field numbers, enum numbers, oneofs, proto2 presence, and RPC route spelling are preserved. The namespace is treated solely as your API's wire contract. + +Features include configurable async gRPC clients, native/custom TLS and mTLS, rotating request metadata, request deadlines, message limits, optional gzip, session-body helpers, binary codecs, checked `Any` conversion, runtime descriptors, protobuf JSON, and optional generated servers. All original 123 `.proto` files are included. + +## Use locally + +Extract this directory next to your application and add: + +```toml +[dependencies] +schema-api = { path = "../schema-api" } +tokio = { version = "1", features = ["macros", "rt-multi-thread"] } +``` + +Use a current stable Rust toolchain. Cargo downloads dependencies on the first build. A bundled `protoc` is selected automatically; installing a protobuf compiler separately is unnecessary. `PROTOC` can override the executable and `PROTOC_INCLUDE` can override its standard include directory (containing `google/protobuf`). Set both on hosts without a vendored compiler. `Cargo.lock` records the versions used for verification. This local crate is not published; `publish = false` avoids accidental registry publication. No new license is imposed on your supplied schemas. + +## Login and a session-authenticated call + +```no_run +use schema_api::{api, ApiClient, SessionRequest, SessionToken}; +use std::time::Duration; + +# async fn example() -> Result<(), Box> { +let client = ApiClient::builder("https://api.example.invalid")? + .connect_timeout(Duration::from_secs(10)) + .request_timeout(Duration::from_secs(30)) + .connect() + .await?; + +let response = client.login().login(api::LoginData { + email: "user@example.invalid".into(), + password: "your-server-defined-credential".into(), + device_name: "Rust client".into(), + ..Default::default() +}).await?.into_inner(); + +// Require the explicit LOGIN_OK code (200), then a nonempty session. +// Keep the full response: it also carries keys, permissions and renewal data. +let session = SessionToken::try_from(&response)?; +let request = api::user::Session::default().with_session(&session); +let badges = client.user().get_badges(request).await?.into_inner(); +// Inspect the response's own application status fields before using its data. +# let _ = badges; +# Ok(()) +# } +``` + +The archive does not define a hostname, credential encoding, or deployment authentication policy. Supply your own endpoint and server-defined credential representation. Session helpers set explicit protobuf body fields; they do not add a guessed authorization header. `skipSession` logins can succeed without yielding a usable `SessionToken`. Unknown numeric application error values remain accessible. + +## Service coverage + +Every getter returns a generated tonic client over a cheap clone of the shared channel. Client methods accept either a message or `tonic::Request` and retain response metadata and `tonic::Status` errors. No RPC is hidden behind a smaller handwritten facade. + +| Getter | Service | RPCs | Coverage | +| --- | --- | ---: | --- | +| `login()` | `LoginService` | 12 | Sessions, login, auth/renewal tokens, account status | +| `user()` | `UserAccountService` | 30 | Accounts, badges, voice servers, avatars, files, 2FA | +| `management()` | `UserManagementService` | 39 | Users, activation, resets, badges, communities | +| `chat()` | `ChatRequests` | 16 | Contacts, identifiers, home migration, group sessions | +| `synchronization()` | `SynchronizationService` | 2 | Check and update item classes | +| `integration()` | `IntegrationUserService` | 4 | Bindings, status, subscriptions | +| `messenger()` | `MessengerConnectorClientService` | 1 | Messenger account creation | +| `addon()` | `UserAddonService` | 1 | Download/update lookup | +| `push()` | `PushService` | 1 | Server-streaming `longPull` | + +Rust method names are snake case, such as `login_with_auth_token`, `get_account_data`, and `long_pull`. Their on-wire method names retain the original spelling. The complete method/type/auth-field catalog is in `docs/SCHEMA.md`; `docs/schema-inventory.json` includes resolved paths, symbols, and original source hashes. + +Use separate `ApiClient`s when services live at different endpoints. For custom connectors or middleware, use `ApiClient::from_channel`, `client::ClientBuilder::from_endpoint`, or the public generated client types under `proto`. + +## Namespaces and features + +| Namespace | Contents | +| --- | --- | +| `api` | Shared application types and service submodules | +| `push` | Push transport `Message` and `PushServiceClient` | +| `api::push` | Notification envelopes and payload types | +| `account` | Local account serialization messages | +| `sync` | Local synchronization serialization messages | +| `proto::com::teamspeak` | Complete original application package hierarchy, including caches and revocation | +| `proto::envoy`, `proto::xds`, etc. | Optional infrastructure packages | + +| Cargo feature | Default | Effect | +| --- | --- | --- | +| `reflection` | Yes | Runtime inspection, dynamic messages, protobuf JSON | +| `server` | No | Generated tonic server traits/adapters for every enabled service | +| `infrastructure` | No | Also generate supporting Envoy/xDS/UDPA/CEL/gRPC/validation bindings and Envoy load-reporting client | +| `gzip` | No | Opt-in request/response gzip support | + +`--no-default-features` retains all application types, gRPC clients, session helpers, codecs, TLS, and the raw `FILE_DESCRIPTOR_SET`, while dropping runtime JSON/reflection dependencies. Google well-known messages map to `prost_types`; `google.protobuf.Empty` maps to `()`. + +The archive's Google `descriptor.proto` and `cpp_features.proto` contain malformed options. The build keeps these originals untouched and resolves standard Google protobuf imports from the compiler's bundled includes first. Compiler-only `pb.CppFeatures` is not exposed. The optional infrastructure definitions are data bindings; generating validation annotations does not execute business validation or implement an xDS controller. + +## Metadata, TLS, deadlines, and limits + +```no_run +use schema_api::{ApiClient, tonic::{Request, metadata::MetadataMap}}; +use std::time::Duration; +# async fn example() -> Result<(), Box> { +let mut headers = MetadataMap::new(); +headers.insert("x-tenant", "example".parse()?); +let client = ApiClient::builder("https://api.example.invalid")? + .metadata(headers) + .max_decoding_message_size(16 * 1024 * 1024) + .max_encoding_message_size(16 * 1024 * 1024) + .request_timeout(Duration::from_secs(20)) + .connect().await?; + +// Only enable bearer authentication if it is part of YOUR deployment contract. +client.metadata().set_bearer_token("opaque-token")?; +client.metadata().clear_bearer_token()?; + +let mut request = Request::new(schema_api::api::Session { session: "session".into() }); +request.metadata_mut().insert("x-tenant", "override".parse()?); +request.set_timeout(Duration::from_secs(5)); +let _ = client.login().session(request).await?; +# Ok(()) +# } +``` + +Per-request metadata overrides defaults by key; duplicate default values and binary metadata are preserved. Shared metadata changes affect future calls through existing handles. Debug output for the shared metadata store and `SessionToken` is redacted; generated protobuf messages can contain secrets and should not be logged wholesale. + +HTTPS enables native-root certificate validation. `client::ClientBuilder::tls_config` accepts a tonic `ClientTlsConfig` for a private CA, explicit TLS name, or client identity; see `examples/custom_tls.rs`. HTTP is supported for local or appropriately protected deployments. Endpoint paths/queries are rejected because service routes come from the protobuf descriptors. + +The default connection timeout is 10 seconds. No RPC deadline is imposed by default. `request_timeout` sets `grpc-timeout` for unary calls; `stream_timeout` opts into a push deadline. The channel limits response setup; enforcement after a stream is established depends on the server. For a receive inactivity timeout, wrap `stream.message()` in `tokio::time::timeout`. Per-request timeouts override defaults. Message-size limits are per protobuf message. With `gzip`, use `send_gzip(true)` and `accept_gzip(true)` only when supported by the server. + +## Push streams and binary payloads + +```no_run +# async fn example(client: schema_api::ApiClient) -> Result<(), Box> { +let mut stream = client.push().long_pull(()).await?.into_inner(); +while let Some(message) = stream.message().await? { + // The contract only guarantees opaque bytes here. + println!("{} bytes", message.payload.len()); +} +# Ok(()) +# } +``` + +Dropping the stream cancels it. Stream errors remain `tonic::Status`. There is no automatic replay/reconnection policy because no resume cursor or delivery guarantee is specified. `wire::decode_push_payload::` and `decode_push_notification` are explicit, fallible decoders for deployments that define the corresponding encoding. Typed `wire::pack_any`/`unpack_any` use full protobuf names and reject mismatched type URLs. Plain `wire::encode`/`decode` work with any prost message. + +## Reflection and protobuf JSON + +```rust +# #[cfg(feature = "reflection")] +# { +use schema_api::{api, reflection}; +let message = api::LoginStatus { error: 200, uuid: "id".into() }; +let json = reflection::to_json(&message).unwrap(); +let roundtrip: api::LoginStatus = reflection::from_json(&json).unwrap(); +assert_eq!(roundtrip, message); +# } +``` + +JSON follows protobuf rules: base64 bytes, named enums, string-encoded 64-bit integers, lower-camel field names, and descriptor-resolved `Any`. Unknown JSON fields and trailing content are rejected by default; configurable options are available. Dynamic messages support schema inspection and retain unknown wire fields. Decoding into generated types discards unknown wire fields. `FILE_DESCRIPTOR_SET` is available in every build for tooling or an optional server reflection implementation. + +## Build and run examples + +```sh +cargo test --locked --all-features --all-targets +cargo test --locked --no-default-features +cargo test --locked --doc +cargo run --locked --example inspect_schema +cargo doc --locked --all-features --no-deps --open +``` + +`examples/login.rs` reads `API_ENDPOINT`, `API_EMAIL`, `API_PASSWORD`, and optional `API_OTP`/`API_DEVICE_ID`. `examples/push.rs` reads `API_ENDPOINT` and optional `API_PUSH_HEADER`/`API_PUSH_VALUE`. No real hostname or credential is embedded. `examples/custom_tls.rs` documents CA and mTLS environment variables. + +Tests cover actual in-process unary/streaming gRPC exchanges, metadata and status handling, deadline separation, schema coverage, binary compatibility, proto2 presence, unknown enums, checked session status, nested session updates, `Any`, and protobuf JSON. Verification details are in `docs/VERIFICATION.md`. + +The schemas do not define encryption/signature algorithms, password derivation, blob envelope encoding, signed-URL HTTP upload details, token refresh rules, or safe retry/idempotency behavior. The crate exposes all related fields and RPCs without inventing those protocols or automatically retrying mutations. Live server compatibility requires your endpoint and its deployment contract. diff --git a/third_party/schema-api/VOELIN-PATCH.md b/third_party/schema-api/VOELIN-PATCH.md new file mode 100644 index 0000000..aa588c9 --- /dev/null +++ b/third_party/schema-api/VOELIN-PATCH.md @@ -0,0 +1,15 @@ +# schema-api snapshot + +Copied on 2026-10-04 from the owner's local +`/home/faumaray/Project/Personal/schema-api` (version 0.1.0). +The source directory has no Git metadata and declares no license; its licensing +must be resolved before redistribution. This note does not grant a license. + +Voelin consumes the message types, session helpers and wire codec via a path +dependency with default features disabled. Generated gRPC clients are not used +for myTeamSpeak's custom HTTP transport. + +The only upstream patch is an empty `[workspace]` table in `Cargo.toml`, matching +Voelin's other vendored packages. This packaging change prevents Cargo from +assigning the vendor to an enclosing checkout's workspace when Voelin itself is +in a nested worktree. All Rust and protobuf sources remain unmodified. diff --git a/third_party/schema-api/build.rs b/third_party/schema-api/build.rs new file mode 100644 index 0000000..523ef9d --- /dev/null +++ b/third_party/schema-api/build.rs @@ -0,0 +1,55 @@ +use std::{ + env, + error::Error, + fs, + path::{Path, PathBuf}, +}; + +fn collect_protos(dir: &Path, recursive: bool, files: &mut Vec) -> std::io::Result<()> { + for entry in fs::read_dir(dir)? { + let path = entry?.path(); + if path.is_dir() && recursive { + collect_protos(&path, true, files)?; + } else if path.extension().is_some_and(|ext| ext == "proto") { + // Google well-known definitions come from the same distribution as protoc. + // The archive's descriptor.proto/cpp_features.proto have invalid option syntax. + if !path.starts_with("proto/google/protobuf") { + files.push(path); + } + } + } + Ok(()) +} + +fn main() -> Result<(), Box> { + println!("cargo:rerun-if-changed=proto"); + println!("cargo:rerun-if-env-changed=PROTOC"); + println!("cargo:rerun-if-env-changed=PROTOC_INCLUDE"); + let out = PathBuf::from(env::var("OUT_DIR")?); + let mut files = Vec::new(); + collect_protos( + Path::new("proto"), + env::var_os("CARGO_FEATURE_INFRASTRUCTURE").is_some(), + &mut files, + )?; + files.sort(); + + let mut config = prost_build::Config::new(); + config.protoc_executable(match env::var_os("PROTOC") { + Some(path) => PathBuf::from(path), + None => protoc_bin_vendored::protoc_bin_path()?, + }); + config.enable_type_names(); + let standard_include = match env::var_os("PROTOC_INCLUDE") { + Some(path) => PathBuf::from(path), + None => protoc_bin_vendored::include_path()?, + }; + let includes = [standard_include, PathBuf::from("proto")]; + tonic_prost_build::configure() + .build_client(true) + .build_server(env::var_os("CARGO_FEATURE_SERVER").is_some()) + .include_file("packages.rs") + .file_descriptor_set_path(out.join("api_descriptor.bin")) + .compile_with_config(config, &files, &includes)?; + Ok(()) +} diff --git a/third_party/schema-api/docs/SCHEMA.md b/third_party/schema-api/docs/SCHEMA.md new file mode 100644 index 0000000..29c75be --- /dev/null +++ b/third_party/schema-api/docs/SCHEMA.md @@ -0,0 +1,382 @@ +# Source schema audit and RPC catalog + +This document audits the supplied archive only. The namespace spelling is retained as a wire contract; it does not establish a relationship with any external service. No endpoint, credential, live server, or implementation documentation was supplied. + +## Coverage and provenance + +The archive contains **123 protobuf files**: **23 application files** and **100 supporting infrastructure files**. The application schemas define **228 explicitly declared messages**, **33 enums**, and **9 services with 106 methods**. Of those methods, **105 are unary** and **one is server streaming**. There are no application client-streaming or bidirectional methods. Message counts include nested declarations and exclude synthetic protobuf map-entry messages. The machine-readable [inventory](schema-inventory.json) records every source file, SHA-256 digest, package, message, enum value, and RPC path. + +Every textual import points to a file in the archive. This is an import-completeness check, not proof that the entire archive compiles. Application source files contain no comments explaining protocol behavior. The only nonapplication imports needed by the application files are `google/protobuf/any.proto` and `google/protobuf/empty.proto`. + +### Application source files + +| File | Package | Messages | Enums | RPCs | +| --- | --- | ---: | ---: | ---: | +| `Account_Serializing.proto` | `com.teamspeak.account.proto` | 8 | 0 | 0 | +| `Sync_Serializing.proto` | `com.teamspeak.sync.proto` | 16 | 6 | 0 | +| `blacklist_info.proto` | `com.teamspeak.blacklist` | 2 | 1 | 0 | +| `client_lib_cache.proto` | `com.teamspeak.proto.client_cache` | 1 | 0 | 0 | +| `global_badge_list.proto` | `com.teamspeak.myteamspeak.proto.cloud` | 2 | 0 | 0 | +| `myteamspeak_addon.proto` | `com.teamspeak.myteamspeak.proto.addon` | 4 | 4 | 1 | +| `myteamspeak_avatar_common.proto` | `com.teamspeak.myteamspeak.proto` | 4 | 2 | 0 | +| `myteamspeak_common.proto` | `com.teamspeak.myteamspeak.proto` | 19 | 3 | 0 | +| `myteamspeak_integration_common.proto` | `com.teamspeak.myteamspeak.proto.integration` | 7 | 4 | 0 | +| `myteamspeak_integration_static_info.proto` | `com.teamspeak.myteamspeak.proto.integration` | 3 | 1 | 0 | +| `myteamspeak_integration_user.proto` | `com.teamspeak.myteamspeak.proto.integration` | 11 | 0 | 4 | +| `myteamspeak_login.proto` | `com.teamspeak.myteamspeak.proto.login` | 12 | 0 | 12 | +| `myteamspeak_messenger_connector_client.proto` | `com.teamspeak.myteamspeak.proto.messengerconnector` | 5 | 1 | 1 | +| `myteamspeak_namedserver_common.proto` | `com.teamspeak.myteamspeak.proto.namedserver` | 4 | 0 | 0 | +| `myteamspeak_push.proto` | `com.teamspeak.myteamspeak.proto.push` | 6 | 1 | 0 | +| `myteamspeak_synchronization.proto` | `com.teamspeak.myteamspeak.proto.synchronization` | 0 | 0 | 2 | +| `myteamspeak_tschat.proto` | `com.teamspeak.myteamspeak.proto.tschat` | 19 | 1 | 16 | +| `myteamspeak_user.proto` | `com.teamspeak.myteamspeak.proto.user` | 55 | 3 | 30 | +| `myteamspeak_user_management.proto` | `com.teamspeak.myteamspeak.proto.management.user` | 43 | 3 | 39 | +| `revocation_list.proto` | `com.teamspeak.revocation_list` | 1 | 0 | 0 | +| `revoke_cache.proto` | `com.teamspeak.proto.revocation` | 1 | 0 | 0 | +| `synchronization_common.proto` | `com.teamspeak.myteamspeak.proto.synchronization` | 4 | 3 | 0 | +| `teamspeak_push_grpc.proto` | `com.teamspeak.push.proto` | 1 | 0 | 1 | + +`Account_Serializing.proto` and `Sync_Serializing.proto` use proto2. All other application files use proto3. The account/sync serialization, badge-list, named-server, revocation, blacklist and client-cache files define data formats without adding service methods. These formats are useful to the crate even though they do not establish a transport endpoint. + +## Authentication and sessions + +Most authenticated requests carry a session string **inside the protobuf body**. The shared `com.teamspeak.myteamspeak.proto.Session` and the distinct `com.teamspeak.myteamspeak.proto.user.Session` have equivalent fields but remain distinct types. Some requests nest the session: `NewUserPublicKeyData.session.session`, chat `user.session`, `UpdateBadgeRequest.addBadgeRequest.session`, and community listing `request.session`. + +`LoginData` supports email/password plus `otp`, `device_id`, `otp_renewal_token`, `device_name`, `skipSession`, login origin and sync version. Login results include the session, key, UUID, limits, identity material, permissions, push token and optional alternative-login data. The latter contains renewal token, OTP renewal token and device ID. Auth-token and renewal-token login methods are also explicitly defined. Do not infer password hashing, key derivation, renewal timing, automatic token refresh, or a relation between `purge` and local clock units. + +No schema declares an authorization metadata header, bearer-token format, endpoint, TLS requirement, hostname, or service routing layout. A client may expose custom metadata and separate service channels, but must not assume a particular header or silently copy the session/push token into one. Several management and account-status requests contain no session or credential field; this does not prove that the corresponding methods are unauthenticated. Such access may depend on deployment-specific transport metadata or service authorization. + +Session convenience helpers should populate only explicit session fields and retain raw generated request access. Login helpers should preserve the full reply rather than discarding permissions, identity data or alternative-login fields. Keep passwords, renewal tokens, sessions, private keys, and OTP secrets out of diagnostic logs; generated message debugging can contain these values. + +## Application status semantics + +A successful gRPC transport status does not imply application success. Preserve the original response and unknown numeric enum values so callers can handle server extensions. + +| Domain / enum | Evidence in schema | Client treatment | +| --- | --- | --- | +| Common `ErrorCommon` | Session OK `102`, login OK `200`, session deleted OK `204`; OTP required `208`; expired session `103` | Check the success appropriate to the RPC; expose OTP-required as a distinct outcome. `UNKNOWN_ERRORCOMMON = 0` is not success. | +| User `ErrorReturnCode` | Unknown `0`, named failures `100..132`; no named success value | Where a `success` boolean exists, use it. For enum-only responses, report the raw code; zero is unspecified rather than proof of success. | +| Management `UserManagementErrorReturnCode` | Unknown `0`, named failures `100..139`; no named success value | Same ambiguity as user responses. Preserve textual error and boolean fields when present. | +| Integration `IntegrationError` | OK `1`; session expired `8`; pending `10`; missing information `7`; invalid timestamp `11` | Success is `1`; retain `seconds_to_wait` on subscription replies without inventing a retry policy. | +| Avatar `AvatarError` | OK `1`, critical `2`, invalid session `3` | Success is `1`. | +| Chat `ChatRequestReturnCode` | Success `1`; connection `2`, internal `3`, request `4`, expired session `5`, account creation disabled `6` | Success is `1`; preserve nested `ErrorHandling.message`. | +| Messenger `MessengerConnectorReturnCodesClient` | Account created `1`; creation failed `100`, already exists `101` | Success is `1`; do not automatically treat already-exists as success. | +| Synchronization `SyncStatus` | In sync `300`, not in sync `301`, not in database `302`, collision `303`, over limit `304` | These are synchronization outcomes, not a generic boolean. Return them without automatic merging or retrying writes. | +| Add-on `ReturnCode` | Not found `1`, platform not found `2`, up to date `3`, update `4`, group `5` | Return a typed outcome; both up-to-date and update are useful results, with different payload interpretation. | +| Login management replies | `AuthTokenExpireReply` / `AccountStatusReply` have `success` and `error_msg`; token-list and suspension-reason replies have no application status | Use the declared boolean where available; absence of an error field must not be filled by guessed status codes. | + +Response status fields vary in spelling and nesting (`error`, `error_code`, `errorcode`, `returncode`, `return_code`, `error_handling`). A universal reflective rule such as “an enum field named error must equal zero” is incorrect. A missing optional nested return-code message is also distinct from an explicit success. + +## Streaming and opaque payloads + +`com.teamspeak.push.proto.PushService/longPull` accepts `google.protobuf.Empty` and streams `Message { bytes payload = 1; }`. The request has no session or token field. Cancellation follows stream drop/cancellation at the transport layer. The schema provides no replay cursor, acknowledgment, reconnect backoff, heartbeat, or resume semantics; reconnecting cannot promise lossless delivery. + +A different package defines `push.PushNotification` and `push.IntermediateData`, each with an `Any` payload, plus `SimpleNotification`, `ContactAvatarChanged`, `TsChatAvatarChanged` and `AuthTokenUsed`. The schema does **not** say whether the bytes emitted by `longPull` contain either of those envelopes, compressed data, or another encoding. Make decoding explicit and fallible. Support standard protobuf `Any` type URLs and preserve unknown payloads; do not choose an envelope by trial decoding alone, because protobuf accepts many unrelated byte sequences. + +The `SimpleNotification` enum distinguishes sync-data changes (`1`), session expiry (`2`), and contact-homebase changes (`3`). `relogin_neccessary` is an independent boolean. Nothing in the schema specifies whether to obey it automatically or how to rebuild application state. + +## Synchronization, identities and transfers + +Synchronization requests carry the session, class/version list, global version and sync version. Each item detail has UUID, item version, opaque blob and the field `item_delte_on_server`. The data-serialization schema defines bookmarks, identities, hotkey profiles, whispers, add-ons, configuration, folders, group chats and contacts. Its `Item_Data.item_content` oneof permits typed local decoding, but the schema does not state that network `item_blob` is plain `Item_Data` rather than encrypted or wrapped. Expose codecs without automatic encryption/decryption assumptions. Preserve class/version IDs and collisions; never overwrite conflicting data without caller policy. + +Signed identity, avatar, badge, integration, and Matrix identifier structures expose key, certificate, signature and timestamp bytes. They do not identify a signing algorithm, canonical signed bytes, certificate chain policy, signature verification procedure, or timestamp unit. Returning these structures is supported; inventing cryptographic verification is not. + +Avatar/file RPCs return signed URLs and metadata. The schemas do not state the HTTP upload method, required headers, multipart layout, checksum policy, or URL expiration. Requesting an upload/download URL is part of the gRPC client surface. Transferring bytes through the URL requires deployment-specific HTTP details and should not be guessed. + +## Schema quality and compilation cautions + +- **Malformed bundled Google option syntax:** the supplied `google/protobuf/descriptor.proto`, beginning around line 358, serializes repeated/message-valued options with invalid source syntax, for example `targets = TARGET_TYPE_FIELD, TARGET_TYPE_FILE` and `edition_defaults = [value: ...]`. `google/protobuf/cpp_features.proto` has the same issue. Prefer compatible compiler-vendored standard protobuf includes when compiling optional infrastructure, and retain the supplied files as original source material. The application schemas do not need either malformed file. This finding is a source inspection result; compiler validation results belong to the crate's verification log. +- **Mixed presence semantics:** proto2 optional scalars must remain optional. For example, an absent bookmark `send_mytsid_on_server` has declared default `true`; reading its raw `Option` as `false` would change behavior. Proto3 scalars generally do not record whether an explicit default was sent. Message fields and oneofs retain presence. +- **Preserve original spelling:** wire/source symbols include `ERRIR_RENEWAL_TOKEN_INVALID`, `item_delte_on_server`, `relogin_neccessary`, lowercase `requestExpireTime`/`replyExpireTime`, mixed field casing and `Status_public_license_id`. Idiomatic Rust accessors may differ, but field numbers, enum numbers, full protobuf names and RPC paths must remain exact. +- **Reserved and deprecated fields:** respect declared reserved numbers; deprecated OTP QR-code bytes/MIME fields remain part of the wire format. Do not delete them from generated bindings. +- **Unknown enums and fields:** expose enum integers when no named variant is known. Prost generated messages generally discard unknown protobuf fields when decoded and re-encoded; use original bytes or a suitable dynamic representation when lossless forwarding matters. +- **No validation contract:** the archive includes `validate.proto` definitions, but the application schemas do not attach validation rules. Required business fields, string formats, UUID validation, quotas, size limits, and timestamp units are unspecified. Avoid rejecting otherwise encodable requests based on guessed rules. +- **Mutating operations and retries:** RPC names include account deletion, reset, badge management, key updates and voice-server changes, but there are no application idempotency annotations or request IDs. Retrying arbitrary failed RPCs can repeat side effects. Expose timeouts and caller-controlled retries. +- **Infrastructure is not application functionality:** the other 100 files describe Google protobuf/RPC/CEL, Envoy, xDS, UDPA, validation and gRPC support types. Their only additional service is Envoy load reporting. An optional infrastructure feature can expose these bindings without treating them as ordinary application API endpoints. + +## Application RPC catalog + +All method names and request/response names below are the original protobuf spelling. Request/response cells use names as declared in the source; shared parent-package types resolve by protobuf lexical scoping. The JSON inventory additionally records fully resolved type names. Each section states the full service name; the gRPC path is `//`. “Body fields” lists evident session/credential fields, not a claim about required authorization. “None declared” never means public access. + +### `com.teamspeak.myteamspeak.proto.addon.UserAddonService` + +Source: `myteamspeak_addon.proto`. 1 methods. + +| Method | Request | Response | Body fields | +| --- | --- | --- | --- | +| `requestDownload` | `GetDownload` | `Download` | None declared | + +### `com.teamspeak.myteamspeak.proto.integration.IntegrationUserService` + +Source: `myteamspeak_integration_user.proto`. 4 methods. + +| Method | Request | Response | Body fields | +| --- | --- | --- | --- | +| `getIntegrationUserStatus` | `RequestIntegrationUserStatus` | `IntegrationStatusUserResponse` | `session` | +| `requestBindIntegration` | `RequestBindData` | `RequestBindResponse` | `session` | +| `requestUnbindIntegration` | `RequestUnbindData` | `RequestBindResponse` | `session` | +| `getUserIntegrationSubscriptionInfo` | `UserIntegrationSubscriptionInfoRequest` | `UserIntegrationSubscriptionInfoResponse` | `session_id` | + +### `com.teamspeak.myteamspeak.proto.login.LoginService` + +Source: `myteamspeak_login.proto`. 12 methods. + +| Method | Request | Response | Body fields | +| --- | --- | --- | --- | +| `session` | `Session` | `LoginStatus` | `session` | +| `deleteSession` | `Session` | `LoginStatus` | `session` | +| `login` | `LoginData` | `LoginSession` | `email`, `password`; optional OTP/device fields | +| `requestAuthToken` | `AuthTokenRequest` | `AuthTokenReply` | `email`, `password` | +| `loginWithAuthToken` | `AuthTokenLogin` | `LoginSession` | `auth_token` | +| `loginWithRenewalToken` | `RenewalTokenLogin` | `LoginSession` | `renewal_token`, `auth_token` | +| `getAuthTokenList` | `AuthTokenListRequest` | `AuthTokenListReply` | `email`, `password` | +| `expireAuthTokenAccess` | `AuthTokenExpireRequest` | `AuthTokenExpireReply` | `email`, `password` | +| `deleteAccount` | `AccountStatusInfo` | `AccountStatusReply` | None; `email` is a target identifier | +| `suspendAccount` | `AccountStatusInfo` | `AccountStatusReply` | None; `email` is a target identifier | +| `reactivateAccount` | `AccountStatusInfo` | `AccountStatusReply` | None; `email` is a target identifier | +| `listSuspensionReasonForUser` | `AccountEmail` | `SuspensionReasonForUserReply` | None; `email` is a target identifier | + +### `com.teamspeak.myteamspeak.proto.messengerconnector.MessengerConnectorClientService` + +Source: `myteamspeak_messenger_connector_client.proto`. 1 methods. + +| Method | Request | Response | Body fields | +| --- | --- | --- | --- | +| `requestCreateMessengerAccount` | `RequestCreateMessengerAccountRequest` | `RequestCreateMessengerAccountReply` | `session` | + +### `com.teamspeak.myteamspeak.proto.synchronization.SynchronizationService` + +Source: `myteamspeak_synchronization.proto`. 2 methods. + +| Method | Request | Response | Body fields | +| --- | --- | --- | --- | +| `requestServerItems` | `Sync_Request_ItemClasses` | `Sync_Reply_ItemClasses` | `session` | +| `synchronizeItems` | `Sync_Request_ItemClasses` | `Sync_Reply_ItemClasses` | `session` | + +### `com.teamspeak.myteamspeak.proto.tschat.ChatRequests` + +Source: `myteamspeak_tschat.proto`. 16 methods. + +| Method | Request | Response | Body fields | +| --- | --- | --- | --- | +| `createAccount` | `AuthenticatedUser` | `CreateAccountResponse` | `session`; `matrix_id` | +| `moveHome` | `MoveRequest` | `ErrorHandling` | `user.session`; Matrix ID in `user` | +| `getContactList` | `AuthenticatedUser` | `ContactList` | `session`; `matrix_id` | +| `updateContact` | `ContactRequest` | `ErrorHandling` | `user.session`; Matrix ID in `user` | +| `updateContactList` | `ContactRequestList` | `ErrorHandling` | `user.session`; Matrix ID in `user` | +| `removeContact` | `ContactRequest` | `ErrorHandling` | `user.session`; Matrix ID in `user` | +| `setPrimaryIdentifier` | `IdentifierRequest` | `TschatIdentifierList` | `user.session`; Matrix ID in `user` | +| `addIdentifier` | `IdentifierRequest` | `TschatIdentifierList` | `user.session`; Matrix ID in `user` | +| `removeIdentifier` | `IdentifierRequest` | `TschatIdentifierList` | `user.session`; Matrix ID in `user` | +| `getActiveIdentifierList` | `AuthenticatedUser` | `TschatIdentifierList` | `session`; `matrix_id` | +| `getAllowedIdentifierList` | `AuthenticatedUser` | `TschatIdentifierList` | `session`; `matrix_id` | +| `getGroupSessionData` | `GroupSessionRequest` | `GroupSessionResponse` | `user.session`; Matrix ID in `user` | +| `uploadGroupSessionData` | `GroupSessionRequest` | `ErrorHandling` | `user.session`; Matrix ID in `user` | +| `clearAllGroupSessions` | `AuthenticatedUser` | `ErrorHandling` | `session`; `matrix_id` | +| `clearGroupSessions` | `GroupSessionRequest` | `ErrorHandling` | `user.session`; Matrix ID in `user` | +| `requestSignedAllowedIdentifierList` | `AuthenticatedUser` | `SignedAllowedIdentifier` | `session`; `matrix_id` | + +### `com.teamspeak.myteamspeak.proto.user.UserAccountService` + +Source: `myteamspeak_user.proto`. 30 methods. + +| Method | Request | Response | Body fields | +| --- | --- | --- | --- | +| `addUser` | `UserData` | `ReturnCode` | `session`; `login` / `login_old` credentials | +| `updateUser` | `UserData` | `ReturnCode` | `session`; `login` / `login_old` credentials | +| `getBackupKey` | `UserLogin` | `BackupKeyData` | `email`, `password` | +| `getBadges` | `Session` | `UserBadgesList` | `session` | +| `redeemBadgeCode` | `BadgeCode` | `RedeemBadgeCodeResponse` | `session` | +| `setNewUserPublicKey` | `NewUserPublicKeyData` | `NewUserPublicKeyDataResponse` | `session.session` | +| `requestContactsAvatar` | `RequestContactsAvatarInfoRequest` | `RequestContactsAvatarInfoResponse` | `session` | +| `getSignedBadges` | `Session` | `UserBadgesSignedResponse` | `session` | +| `requestVoiceServer` | `VoiceServerRequest` | `VoiceServerResponse` | `session` | +| `requestVoiceServerLocation` | `SpawnVoiceServerLocationRequest` | `SpawnVoiceServerLocationResponse` | `session` | +| `deleteSpawnedVoiceServer` | `VoiceServerRequest` | `ReturnCode` | `session` | +| `listSpawnedVoiceServer` | `Session` | `SpawnedVoiceServerListResponse` | `session` | +| `startVoiceServer` | `VoiceServerRequest` | `VoiceServerResponse` | `session` | +| `stopVoiceServer` | `VoiceServerRequest` | `VoiceServerResponse` | `session` | +| `readVoiceServerStatus` | `VoiceServerRequest` | `VoiceServerResponse` | `session` | +| `requestAvatarSignedUrl` | `AvatarSignedUrlRequest` | `AvatarSignedUrlResponse` | `session` | +| `requestUploadAvatar` | `RequestUploadAvatarRequest` | `RequestUploadAvatarResponse` | `session` | +| `requestDeleteAvatar` | `RequestDeleteAvatarInfoRequest` | `ReturnCode` | `session` | +| `changeEmail` | `EmailChange` | `ReturnCode` | `session`; `validationKey`, `currentPw`, `newPw` | +| `resetAccount` | `ResetAccountRequest` | `ReturnCode` | `session`, `myts_id.session.session` | +| `updateUserDescription` | `UpdateUserDescriptionRequest` | `ReturnCode` | `session` | +| `requestUploadFile` | `UploadFileRequest` | `FileInfo` | `session` | +| `requestDownloadFile` | `DownloadFileRequest` | `FileInfo` | `session` | +| `generateOtpSetupSecret` | `TwoFactorAuthTypeRequest` | `OtpSecretResponse` | `session`; `user_login` credentials | +| `updateTwoFactorAuthType` | `UpdateTwoFactorAuthTypeRequest` | `ReturnCode` | `session` | +| `confirmTwoFactorAuthTypeOtp` | `TwoFactorAuthTypeOtpConfirmationRequest` | `ReturnCode` | `session`; `user_login` credentials; `otp` | +| `removeTwoFactorAuthType` | `TwoFactorAuthTypeRequest` | `ReturnCode` | `session`; `user_login` credentials | +| `getTwoFactorAuthType` | `Session` | `TwoFactorAuthTypeResponse` | `session` | +| `registerFirebasePush` | `RegisterFirebasePush` | `ReturnCode` | `session` | +| `getAccountData` | `AccountDataRequest` | `UserAccountData` | `session` | + +### `com.teamspeak.myteamspeak.proto.management.user.UserManagementService` + +Source: `myteamspeak_user_management.proto`. 39 methods. + +| Method | Request | Response | Body fields | +| --- | --- | --- | --- | +| `listUser` | `SearchLimit` | `UserLightDataList` | None declared | +| `getUserInfo` | `Request` | `UserLightData` | `session` | +| `getKey` | `Request` | `KeyData` | `session` | +| `deleteUser` | `Request` | `UserManagementReturnCode` | `session` | +| `activateUser` | `Activation` | `UserManagementReturnCode` | `email`, activation `key` | +| `requestNewActivation` | `Activation` | `UserManagementReturnCode` | `email`, activation `key` | +| `setAddonDevStatus` | `AddonDevRequest` | `AddonDevReturnCode` | None declared | +| `requestPasswordReset` | `PasswordResetRequest` | `UserManagementReturnCode` | `email`, reset `key`, new `password` | +| `resetPassword` | `PasswordResetRequest` | `UserManagementReturnCode` | `email`, reset `key`, new `password` | +| `generateBadgeCodes` | `BadgeCodesRequest` | `BadgeCodes` | `session` | +| `changeEmail` | `EmailChange` | `UserManagementReturnCode` | `session`; `validationKey`, `currentPw`, `newPw` | +| `changeEmail2` | `EmailChange` | `UserManagementReturnCode` | `session`; `validationKey`, `currentPw`, `newPw` | +| `changeEmail3` | `EmailChange` | `UserManagementReturnCode` | `session`; `validationKey`, `currentPw`, `newPw` | +| `assignBadge` | `AssignBadgeRequest` | `UserManagementReturnCode` | `session` | +| `getUserData` | `Request` | `UserFullData` | `session` | +| `forceRename` | `UserRenameRequest` | `UserManagementReturnCode` | `session` | +| `addBadge` | `AddBadgeRequest` | `AddBadgeReturnCode` | `session` | +| `listBadges` | `Session` | `ListBadgesReturnCode` | `session` | +| `getBadgeStatistics` | `BadgeStatisticsRequest` | `BadgeStatisticsReturnCode` | `session` | +| `deleteBadge` | `Request` | `DeleteBadgeReturnCode` | `session` | +| `updateBadge` | `UpdateBadgeRequest` | `AddBadgeReturnCode` | `addBadgeRequest.session` | +| `updateBadgeCode` | `BadgeCodesRequest` | `BadgeCodeReturnCode` | `session` | +| `deleteBadgeCode` | `BadgeCodesRequest` | `UserManagementReturnCode` | `session` | +| `listBadgeCodes` | `BadgeCodesRequest` | `ListBadgeCodesResponse` | `session` | +| `addOAuthClient` | `OAuthClientRequest` | `OAuthClientReturnCode` | `session` | +| `updateOAuthClient` | `OAuthClientRequest` | `OAuthClientReturnCode` | `session` | +| `deleteOAuthClient` | `OAuthClientRequest` | `UserManagementReturnCode` | `session` | +| `listOAuthClients` | `Request` | `ListOAuthClientsReturnCode` | `session` | +| `searchUser` | `SearchTerm` | `UserLightDataList` | `session` | +| `addPermission` | `PermissionRequest` | `UserManagementReturnCode` | `session` | +| `removePermission` | `PermissionRequest` | `UserManagementReturnCode` | `session` | +| `removeBadgeFromUser` | `AssignBadgeRequest` | `UserManagementReturnCode` | `session` | +| `createCommunity` | `TSCommunityRequest` | `TSCommunityList` | `session` | +| `listCommunities` | `TSCommunityListRequest` | `TSCommunityList` | `request.session` | +| `updateCommunity` | `TSCommunityRequest` | `TSCommunityList` | `session` | +| `setRenameAllowance` | `RenameAllowanceRequest` | `UserManagementReturnCode` | `session` | +| `deleteTSChatAccount` | `Request` | `UserManagementReturnCode` | `session` | +| `getUserStatistics` | `UserStatisticsRequest` | `UserStatisticsResponse` | `session` | +| `getAllUserStatistics` | `UserStatisticsRequest` | `AllUserStatisticsResponse` | `session` | + +### `com.teamspeak.push.proto.PushService` + +Source: `teamspeak_push_grpc.proto`. 1 methods. + +| Method | Request | Response | Body fields | +| --- | --- | --- | --- | +| `longPull` | `google.protobuf.Empty` | `stream Message` | None declared | + +## Application enum catalog + +All enum values, including nested enum values and sparse numeric assignments, are recorded in the JSON inventory. Counts below count explicitly declared variants, not integer ranges. Enum values whose names sound successful must be interpreted in their owning response domain. + +| Fully qualified enum | Variants | +| --- | ---: | +| `com.teamspeak.sync.proto.Bookmark_Data.SubscriptionMode` | 3 | +| `com.teamspeak.sync.proto.Whisper_list_data.WhisperListType` | 3 | +| `com.teamspeak.sync.proto.Whisper_list_data.WhisperEntry.WhisperEntryType` | 3 | +| `com.teamspeak.sync.proto.HotkeyProfile_data.Hotkey.OS` | 3 | +| `com.teamspeak.sync.proto.Contact.NotificationPreference` | 4 | +| `com.teamspeak.sync.proto.Item_Data.Manipulation_Flag` | 4 | +| `com.teamspeak.blacklist.BlacklistInfoResponse.Result` | 4 | +| `com.teamspeak.myteamspeak.proto.addon.ApiType` | 7 | +| `com.teamspeak.myteamspeak.proto.addon.ReturnCode` | 6 | +| `com.teamspeak.myteamspeak.proto.addon.Platform` | 7 | +| `com.teamspeak.myteamspeak.proto.addon.Status` | 7 | +| `com.teamspeak.myteamspeak.proto.AvatarError` | 4 | +| `com.teamspeak.myteamspeak.proto.AvatarState` | 5 | +| `com.teamspeak.myteamspeak.proto.AddonDevStatus` | 7 | +| `com.teamspeak.myteamspeak.proto.LoginOrigin` | 2 | +| `com.teamspeak.myteamspeak.proto.ErrorCommon` | 18 | +| `com.teamspeak.myteamspeak.proto.integration.SpecifierType` | 5 | +| `com.teamspeak.myteamspeak.proto.integration.IntegrationType` | 3 | +| `com.teamspeak.myteamspeak.proto.integration.IntegrationBindingStatus` | 4 | +| `com.teamspeak.myteamspeak.proto.integration.IntegrationError` | 12 | +| `com.teamspeak.myteamspeak.proto.integration.ResponseType` | 5 | +| `com.teamspeak.myteamspeak.proto.messengerconnector.MessengerConnectorReturnCodesClient` | 4 | +| `com.teamspeak.myteamspeak.proto.push.SimpleNotificationType` | 4 | +| `com.teamspeak.myteamspeak.proto.tschat.ChatRequestReturnCode` | 7 | +| `com.teamspeak.myteamspeak.proto.user.UserAccountDataSelector` | 15 | +| `com.teamspeak.myteamspeak.proto.user.AuthType` | 2 | +| `com.teamspeak.myteamspeak.proto.user.ErrorReturnCode` | 34 | +| `com.teamspeak.myteamspeak.proto.management.user.TSCommunityState` | 4 | +| `com.teamspeak.myteamspeak.proto.management.user.UserSearchCriterionSelector` | 8 | +| `com.teamspeak.myteamspeak.proto.management.user.UserManagementErrorReturnCode` | 41 | +| `com.teamspeak.myteamspeak.proto.synchronization.SyncStatus` | 10 | +| `com.teamspeak.myteamspeak.proto.synchronization.Item_Class` | 9 | +| `com.teamspeak.myteamspeak.proto.synchronization.Sync_Version` | 2 | + +## All archive packages + +These are source-level counts across the entire archive. “App” marks packages declared by root application files. Infrastructure bindings may use compiler-vendored Google definitions in place of malformed bundled sources, so generated descriptor counts can differ from these archive counts. + +| Package | Scope | Files | Messages | Enums | Services | RPCs | +| --- | --- | ---: | ---: | ---: | ---: | ---: | +| `com.teamspeak.account.proto` | App | 1 | 8 | 0 | 0 | 0 | +| `com.teamspeak.blacklist` | App | 1 | 2 | 1 | 0 | 0 | +| `com.teamspeak.myteamspeak.proto` | App | 2 | 23 | 5 | 0 | 0 | +| `com.teamspeak.myteamspeak.proto.addon` | App | 1 | 4 | 4 | 1 | 1 | +| `com.teamspeak.myteamspeak.proto.cloud` | App | 1 | 2 | 0 | 0 | 0 | +| `com.teamspeak.myteamspeak.proto.integration` | App | 3 | 21 | 5 | 1 | 4 | +| `com.teamspeak.myteamspeak.proto.login` | App | 1 | 12 | 0 | 1 | 12 | +| `com.teamspeak.myteamspeak.proto.management.user` | App | 1 | 43 | 3 | 1 | 39 | +| `com.teamspeak.myteamspeak.proto.messengerconnector` | App | 1 | 5 | 1 | 1 | 1 | +| `com.teamspeak.myteamspeak.proto.namedserver` | App | 1 | 4 | 0 | 0 | 0 | +| `com.teamspeak.myteamspeak.proto.push` | App | 1 | 6 | 1 | 0 | 0 | +| `com.teamspeak.myteamspeak.proto.synchronization` | App | 2 | 4 | 3 | 1 | 2 | +| `com.teamspeak.myteamspeak.proto.tschat` | App | 1 | 19 | 1 | 1 | 16 | +| `com.teamspeak.myteamspeak.proto.user` | App | 1 | 55 | 3 | 1 | 30 | +| `com.teamspeak.proto.client_cache` | App | 1 | 1 | 0 | 0 | 0 | +| `com.teamspeak.proto.revocation` | App | 1 | 1 | 0 | 0 | 0 | +| `com.teamspeak.push.proto` | App | 1 | 1 | 0 | 1 | 1 | +| `com.teamspeak.revocation_list` | App | 1 | 1 | 0 | 0 | 0 | +| `com.teamspeak.sync.proto` | App | 1 | 16 | 6 | 0 | 0 | +| `envoy.annotations` | Infrastructure | 1 | 0 | 0 | 0 | 0 | +| `envoy.config.accesslog.v3` | Infrastructure | 1 | 16 | 2 | 0 | 0 | +| `envoy.config.cluster.v3` | Infrastructure | 4 | 29 | 9 | 0 | 0 | +| `envoy.config.core.v3` | Infrastructure | 16 | 97 | 13 | 0 | 0 | +| `envoy.config.endpoint.v3` | Infrastructure | 3 | 16 | 0 | 0 | 0 | +| `envoy.config.listener.v3` | Infrastructure | 5 | 20 | 2 | 0 | 0 | +| `envoy.config.rbac.v3` | Infrastructure | 1 | 11 | 3 | 0 | 0 | +| `envoy.config.route.v3` | Infrastructure | 3 | 62 | 6 | 0 | 0 | +| `envoy.config.trace.v3` | Infrastructure | 1 | 2 | 0 | 0 | 0 | +| `envoy.data.accesslog.v3` | Infrastructure | 1 | 11 | 4 | 0 | 0 | +| `envoy.extensions.clusters.aggregate.v3` | Infrastructure | 1 | 1 | 0 | 0 | 0 | +| `envoy.extensions.filters.common.fault.v3` | Infrastructure | 1 | 5 | 1 | 0 | 0 | +| `envoy.extensions.filters.http.fault.v3` | Infrastructure | 1 | 3 | 0 | 0 | 0 | +| `envoy.extensions.filters.http.gcp_authn.v3` | Infrastructure | 1 | 4 | 0 | 0 | 0 | +| `envoy.extensions.filters.http.rbac.v3` | Infrastructure | 1 | 2 | 0 | 0 | 0 | +| `envoy.extensions.filters.http.router.v3` | Infrastructure | 1 | 2 | 0 | 0 | 0 | +| `envoy.extensions.filters.http.stateful_session.v3` | Infrastructure | 1 | 2 | 0 | 0 | 0 | +| `envoy.extensions.filters.network.http_connection_manager.v3` | Infrastructure | 1 | 21 | 5 | 0 | 0 | +| `envoy.extensions.http.stateful_session.cookie.v3` | Infrastructure | 1 | 1 | 0 | 0 | 0 | +| `envoy.extensions.transport_sockets.http_11_proxy.v3` | Infrastructure | 1 | 1 | 0 | 0 | 0 | +| `envoy.extensions.transport_sockets.tls.v3` | Infrastructure | 3 | 18 | 4 | 0 | 0 | +| `envoy.extensions.upstreams.http.v3` | Infrastructure | 1 | 4 | 0 | 0 | 0 | +| `envoy.service.discovery.v3` | Infrastructure | 1 | 13 | 0 | 0 | 0 | +| `envoy.service.load_stats.v3` | Infrastructure | 1 | 2 | 0 | 1 | 1 | +| `envoy.type.http.v3` | Infrastructure | 2 | 5 | 0 | 0 | 0 | +| `envoy.type.matcher.v3` | Infrastructure | 8 | 15 | 0 | 0 | 0 | +| `envoy.type.metadata.v3` | Infrastructure | 1 | 7 | 0 | 0 | 0 | +| `envoy.type.tracing.v3` | Infrastructure | 1 | 5 | 0 | 0 | 0 | +| `envoy.type.v3` | Infrastructure | 4 | 6 | 2 | 0 | 0 | +| `google.api.expr.v1alpha1` | Infrastructure | 2 | 25 | 3 | 0 | 0 | +| `google.protobuf` | Infrastructure | 9 | 56 | 24 | 0 | 0 | +| `google.rpc` | Infrastructure | 1 | 1 | 0 | 0 | 0 | +| `grpc.channelz.v2` | Infrastructure | 2 | 16 | 1 | 0 | 0 | +| `grpc.lookup.v1` | Infrastructure | 1 | 7 | 0 | 0 | 0 | +| `pb` | Infrastructure | 1 | 1 | 1 | 0 | 0 | +| `udpa.annotations` | Infrastructure | 5 | 6 | 1 | 0 | 0 | +| `validate` | Infrastructure | 1 | 23 | 1 | 0 | 0 | +| `xds.annotations.v3` | Infrastructure | 1 | 4 | 1 | 0 | 0 | +| `xds.core.v3` | Infrastructure | 6 | 8 | 1 | 0 | 0 | +| `xds.type.matcher.v3` | Infrastructure | 3 | 13 | 0 | 0 | 0 | + +### Ancillary service + +`envoy.service.load_stats.v3.LoadReportingService/StreamLoadStats` is bidirectional streaming from `LoadStatsRequest` to `LoadStatsResponse`. It is an infrastructure protocol separate from the 106 application methods. + +## What requires server-side knowledge + +A running integration still requires endpoint(s), authorization metadata if any, deployment TLS material, credential conventions, and any encrypted payload/signature conventions. User-management pagination includes both cursor-like `SearchLimit.last_uuid` and offset/limit requests; neither establishes ordering guarantees or termination rules for automatic pagination. No API version compatibility range, rate-limit policy, server time unit, or guaranteed default behavior is documented. These omissions should stay explicit in a full-featured client rather than being replaced by guessed protocol behavior. diff --git a/third_party/schema-api/docs/VERIFICATION.md b/third_party/schema-api/docs/VERIFICATION.md new file mode 100644 index 0000000..ff494f1 --- /dev/null +++ b/third_party/schema-api/docs/VERIFICATION.md @@ -0,0 +1,42 @@ +# Verification + +Verified on 2026-10-04 on Linux x86_64 with Rust/Cargo 1.99.0, using the included `Cargo.lock` (tonic 0.14.6, prost 0.14.4, prost-reflect 0.16.5). Dependencies are fetched by Cargo; protobuf compilation uses `protoc-bin-vendored` 3.2.0. + +## Checks + +| Check | Result | +| --- | --- | +| All features, all targets | 25 library tests + 4 schema tests + 5 local transport tests passed; all four examples compile | +| No default features | 15 library tests + 3 schema tests passed; 4 documentation examples compile/run | +| Default-feature documentation tests | 4 passed | +| Clippy, all features and targets, warnings denied | Passed | +| Rustfmt check | Passed | +| Rustdoc, all features, no dependencies | Generated successfully | +| Original protobuf source integrity | All 123 files match the recorded SHA-256 hashes | + +## Reproduce + +```sh +cargo fmt --all --check +cargo test --locked --all-features --all-targets +cargo test --locked --no-default-features +cargo test --locked --doc +cargo clippy --locked --all-features --all-targets -- -D warnings +cargo doc --locked --all-features --no-deps +``` + +The GitHub Actions workflow runs these checks using stable Rust. Test counts across feature configurations overlap; they are not separate suites to sum together. + +## What was exercised + +Local tonic servers test the exact original HTTP/2 method paths for unary add-on download lookup and push streaming, typed request/response payloads, response metadata, default ASCII/binary metadata, per-call metadata overrides, preserved gRPC error codes/details/metadata, streamed frames, normal EOF, terminal stream errors, and cancellation of a pending unary RPC by its configured deadline. These tests use ephemeral localhost ports and deterministic server shutdown. + +Unit/schema tests cover metadata rotation and sensitivity, endpoint validation, timeout precedence, expected login/session/deletion success codes, unknown codes, nested body session assignment, checked protobuf `Any` URLs, malformed payload rejection, opt-in push envelopes, proto2 presence, a fixed protobuf wire vector, complete application service/RPC counts, cached descriptors, protobuf JSON naming/enums/base64/int64/Any, and unknown JSON/wire behavior. + +## Scope and remaining integration work + +No deployment endpoint, credentials, or server implementation was supplied, so no live service call was made. TLS/mTLS examples compile; they were not exercised against a certificate-bearing test or production server. Gzip support compiles in the all-feature build; compressed traffic was not separately exercised. Linux is the only tested build host. + +Business rules absent from the schemas remain caller/server responsibilities: credential encoding, cryptography, signed-URL HTTP transfer details, opaque blob interpretation, renewal policy, authorization requirements, and synchronization conflict resolution. Every declared request/response field and application RPC remains accessible. + +The supplied Google `descriptor.proto` and `cpp_features.proto` contain malformed option syntax. Original files remain unchanged; builds use compiler-matched standard Google imports, and the compiler-only `pb.CppFeatures` type is excluded. The application and optional infrastructure bindings both compile with this documented strategy. diff --git a/third_party/schema-api/docs/schema-inventory.json b/third_party/schema-api/docs/schema-inventory.json new file mode 100644 index 0000000..12e0ef0 --- /dev/null +++ b/third_party/schema-api/docs/schema-inventory.json @@ -0,0 +1,28985 @@ +{ + "summary": { + "files": 123, + "application_files": 23, + "infrastructure_files": 100, + "application_messages": 228, + "application_enums": 33, + "application_services": 9, + "application_rpcs": 106, + "missing_imports": [] + }, + "packages": { + "com.teamspeak.account.proto": { + "files": 1, + "messages": 8, + "enums": 0, + "services": 0, + "rpcs": 0, + "application": true + }, + "com.teamspeak.blacklist": { + "files": 1, + "messages": 2, + "enums": 1, + "services": 0, + "rpcs": 0, + "application": true + }, + "com.teamspeak.myteamspeak.proto": { + "files": 2, + "messages": 23, + "enums": 5, + "services": 0, + "rpcs": 0, + "application": true + }, + "com.teamspeak.myteamspeak.proto.addon": { + "files": 1, + "messages": 4, + "enums": 4, + "services": 1, + "rpcs": 1, + "application": true + }, + "com.teamspeak.myteamspeak.proto.cloud": { + "files": 1, + "messages": 2, + "enums": 0, + "services": 0, + "rpcs": 0, + "application": true + }, + "com.teamspeak.myteamspeak.proto.integration": { + "files": 3, + "messages": 21, + "enums": 5, + "services": 1, + "rpcs": 4, + "application": true + }, + "com.teamspeak.myteamspeak.proto.login": { + "files": 1, + "messages": 12, + "enums": 0, + "services": 1, + "rpcs": 12, + "application": true + }, + "com.teamspeak.myteamspeak.proto.management.user": { + "files": 1, + "messages": 43, + "enums": 3, + "services": 1, + "rpcs": 39, + "application": true + }, + "com.teamspeak.myteamspeak.proto.messengerconnector": { + "files": 1, + "messages": 5, + "enums": 1, + "services": 1, + "rpcs": 1, + "application": true + }, + "com.teamspeak.myteamspeak.proto.namedserver": { + "files": 1, + "messages": 4, + "enums": 0, + "services": 0, + "rpcs": 0, + "application": true + }, + "com.teamspeak.myteamspeak.proto.push": { + "files": 1, + "messages": 6, + "enums": 1, + "services": 0, + "rpcs": 0, + "application": true + }, + "com.teamspeak.myteamspeak.proto.synchronization": { + "files": 2, + "messages": 4, + "enums": 3, + "services": 1, + "rpcs": 2, + "application": true + }, + "com.teamspeak.myteamspeak.proto.tschat": { + "files": 1, + "messages": 19, + "enums": 1, + "services": 1, + "rpcs": 16, + "application": true + }, + "com.teamspeak.myteamspeak.proto.user": { + "files": 1, + "messages": 55, + "enums": 3, + "services": 1, + "rpcs": 30, + "application": true + }, + "com.teamspeak.proto.client_cache": { + "files": 1, + "messages": 1, + "enums": 0, + "services": 0, + "rpcs": 0, + "application": true + }, + "com.teamspeak.proto.revocation": { + "files": 1, + "messages": 1, + "enums": 0, + "services": 0, + "rpcs": 0, + "application": true + }, + "com.teamspeak.push.proto": { + "files": 1, + "messages": 1, + "enums": 0, + "services": 1, + "rpcs": 1, + "application": true + }, + "com.teamspeak.revocation_list": { + "files": 1, + "messages": 1, + "enums": 0, + "services": 0, + "rpcs": 0, + "application": true + }, + "com.teamspeak.sync.proto": { + "files": 1, + "messages": 16, + "enums": 6, + "services": 0, + "rpcs": 0, + "application": true + }, + "envoy.annotations": { + "files": 1, + "messages": 0, + "enums": 0, + "services": 0, + "rpcs": 0, + "application": false + }, + "envoy.config.accesslog.v3": { + "files": 1, + "messages": 16, + "enums": 2, + "services": 0, + "rpcs": 0, + "application": false + }, + "envoy.config.cluster.v3": { + "files": 4, + "messages": 29, + "enums": 9, + "services": 0, + "rpcs": 0, + "application": false + }, + "envoy.config.core.v3": { + "files": 16, + "messages": 97, + "enums": 13, + "services": 0, + "rpcs": 0, + "application": false + }, + "envoy.config.endpoint.v3": { + "files": 3, + "messages": 16, + "enums": 0, + "services": 0, + "rpcs": 0, + "application": false + }, + "envoy.config.listener.v3": { + "files": 5, + "messages": 20, + "enums": 2, + "services": 0, + "rpcs": 0, + "application": false + }, + "envoy.config.rbac.v3": { + "files": 1, + "messages": 11, + "enums": 3, + "services": 0, + "rpcs": 0, + "application": false + }, + "envoy.config.route.v3": { + "files": 3, + "messages": 62, + "enums": 6, + "services": 0, + "rpcs": 0, + "application": false + }, + "envoy.config.trace.v3": { + "files": 1, + "messages": 2, + "enums": 0, + "services": 0, + "rpcs": 0, + "application": false + }, + "envoy.data.accesslog.v3": { + "files": 1, + "messages": 11, + "enums": 4, + "services": 0, + "rpcs": 0, + "application": false + }, + "envoy.extensions.clusters.aggregate.v3": { + "files": 1, + "messages": 1, + "enums": 0, + "services": 0, + "rpcs": 0, + "application": false + }, + "envoy.extensions.filters.common.fault.v3": { + "files": 1, + "messages": 5, + "enums": 1, + "services": 0, + "rpcs": 0, + "application": false + }, + "envoy.extensions.filters.http.fault.v3": { + "files": 1, + "messages": 3, + "enums": 0, + "services": 0, + "rpcs": 0, + "application": false + }, + "envoy.extensions.filters.http.gcp_authn.v3": { + "files": 1, + "messages": 4, + "enums": 0, + "services": 0, + "rpcs": 0, + "application": false + }, + "envoy.extensions.filters.http.rbac.v3": { + "files": 1, + "messages": 2, + "enums": 0, + "services": 0, + "rpcs": 0, + "application": false + }, + "envoy.extensions.filters.http.router.v3": { + "files": 1, + "messages": 2, + "enums": 0, + "services": 0, + "rpcs": 0, + "application": false + }, + "envoy.extensions.filters.http.stateful_session.v3": { + "files": 1, + "messages": 2, + "enums": 0, + "services": 0, + "rpcs": 0, + "application": false + }, + "envoy.extensions.filters.network.http_connection_manager.v3": { + "files": 1, + "messages": 21, + "enums": 5, + "services": 0, + "rpcs": 0, + "application": false + }, + "envoy.extensions.http.stateful_session.cookie.v3": { + "files": 1, + "messages": 1, + "enums": 0, + "services": 0, + "rpcs": 0, + "application": false + }, + "envoy.extensions.transport_sockets.http_11_proxy.v3": { + "files": 1, + "messages": 1, + "enums": 0, + "services": 0, + "rpcs": 0, + "application": false + }, + "envoy.extensions.transport_sockets.tls.v3": { + "files": 3, + "messages": 18, + "enums": 4, + "services": 0, + "rpcs": 0, + "application": false + }, + "envoy.extensions.upstreams.http.v3": { + "files": 1, + "messages": 4, + "enums": 0, + "services": 0, + "rpcs": 0, + "application": false + }, + "envoy.service.discovery.v3": { + "files": 1, + "messages": 13, + "enums": 0, + "services": 0, + "rpcs": 0, + "application": false + }, + "envoy.service.load_stats.v3": { + "files": 1, + "messages": 2, + "enums": 0, + "services": 1, + "rpcs": 1, + "application": false + }, + "envoy.type.http.v3": { + "files": 2, + "messages": 5, + "enums": 0, + "services": 0, + "rpcs": 0, + "application": false + }, + "envoy.type.matcher.v3": { + "files": 8, + "messages": 15, + "enums": 0, + "services": 0, + "rpcs": 0, + "application": false + }, + "envoy.type.metadata.v3": { + "files": 1, + "messages": 7, + "enums": 0, + "services": 0, + "rpcs": 0, + "application": false + }, + "envoy.type.tracing.v3": { + "files": 1, + "messages": 5, + "enums": 0, + "services": 0, + "rpcs": 0, + "application": false + }, + "envoy.type.v3": { + "files": 4, + "messages": 6, + "enums": 2, + "services": 0, + "rpcs": 0, + "application": false + }, + "google.api.expr.v1alpha1": { + "files": 2, + "messages": 25, + "enums": 3, + "services": 0, + "rpcs": 0, + "application": false + }, + "google.protobuf": { + "files": 9, + "messages": 56, + "enums": 24, + "services": 0, + "rpcs": 0, + "application": false + }, + "google.rpc": { + "files": 1, + "messages": 1, + "enums": 0, + "services": 0, + "rpcs": 0, + "application": false + }, + "grpc.channelz.v2": { + "files": 2, + "messages": 16, + "enums": 1, + "services": 0, + "rpcs": 0, + "application": false + }, + "grpc.lookup.v1": { + "files": 1, + "messages": 7, + "enums": 0, + "services": 0, + "rpcs": 0, + "application": false + }, + "pb": { + "files": 1, + "messages": 1, + "enums": 1, + "services": 0, + "rpcs": 0, + "application": false + }, + "udpa.annotations": { + "files": 5, + "messages": 6, + "enums": 1, + "services": 0, + "rpcs": 0, + "application": false + }, + "validate": { + "files": 1, + "messages": 23, + "enums": 1, + "services": 0, + "rpcs": 0, + "application": false + }, + "xds.annotations.v3": { + "files": 1, + "messages": 4, + "enums": 1, + "services": 0, + "rpcs": 0, + "application": false + }, + "xds.core.v3": { + "files": 6, + "messages": 8, + "enums": 1, + "services": 0, + "rpcs": 0, + "application": false + }, + "xds.type.matcher.v3": { + "files": 3, + "messages": 13, + "enums": 0, + "services": 0, + "rpcs": 0, + "application": false + } + }, + "files": [ + { + "path": "Account_Serializing.proto", + "package": "com.teamspeak.account.proto", + "application": true, + "syntax": "proto2", + "sha256": "fca690c1725ee8ae3229eda43b084a4ce723194e6a42d55ae7fe11effd0fe80a", + "imports": [ + "myteamspeak_common.proto", + "myteamspeak_integration_common.proto", + "myteamspeak_avatar_common.proto", + "myteamspeak_tschat.proto" + ], + "messages": [ + { + "name": "com.teamspeak.account.proto.Account_Session", + "fields": [ + { + "name": "id", + "type": "string", + "number": 1, + "label": "optional" + } + ] + }, + { + "name": "com.teamspeak.account.proto.Account_Data", + "fields": [ + { + "name": "email", + "type": "string", + "number": 1, + "label": "optional" + }, + { + "name": "password", + "type": "string", + "number": 2, + "label": "optional" + }, + { + "name": "uuid", + "type": "string", + "number": 3, + "label": "optional" + }, + { + "name": "user_name", + "type": "string", + "number": 4, + "label": "optional" + }, + { + "name": "encryption_password", + "type": "bytes", + "number": 5, + "label": "optional" + }, + { + "name": "global_items_uuid", + "type": "string", + "number": 10, + "label": "optional" + }, + { + "name": "class_bookmark_version_uuid", + "type": "string", + "number": 11, + "label": "optional" + }, + { + "name": "class_identity_version_uuid", + "type": "string", + "number": 12, + "label": "optional" + }, + { + "name": "class_add_on_version_uuid", + "type": "string", + "number": 13, + "label": "optional" + }, + { + "name": "class_config_version_uuid", + "type": "string", + "number": 14, + "label": "optional" + }, + { + "name": "class_hotkey_profile_version_uuid", + "type": "string", + "number": 15, + "label": "optional" + }, + { + "name": "class_whisper_list_version_uuid", + "type": "string", + "number": 16, + "label": "optional" + }, + { + "name": "class_item_folder_version_uuid", + "type": "string", + "number": 17, + "label": "optional" + }, + { + "name": "class_item_room_category_version_uuid", + "type": "string", + "number": 18, + "label": "optional" + }, + { + "name": "class_group_chats_version_uuid", + "type": "string", + "number": 19, + "label": "optional" + }, + { + "name": "class_contact_version_uuid", + "type": "string", + "number": 20, + "label": "optional" + }, + { + "name": "session", + "type": "Account_Session", + "number": 50, + "label": "optional" + }, + { + "name": "limits", + "type": "myteamspeak.proto.Limits", + "number": 51, + "label": "repeated" + }, + { + "name": "key", + "type": "bytes", + "number": 52, + "label": "optional" + }, + { + "name": "backup_ed_key", + "type": "bytes", + "number": 53, + "label": "optional" + }, + { + "name": "myteamspeakid_data", + "type": "myteamspeak.proto.MyTeamSpeakIdData", + "number": 54, + "label": "optional" + }, + { + "name": "integration_cache", + "type": "IntegrationCache", + "number": 55, + "label": "repeated" + }, + { + "name": "myteamspeakid_user_certificate", + "type": "myteamspeak.proto.MyTSUserCertificate", + "number": 56, + "label": "optional" + }, + { + "name": "avatar_data", + "type": "myteamspeak.proto.AvatarData", + "number": 57, + "label": "optional" + }, + { + "name": "push_token", + "type": "string", + "number": 58, + "label": "optional" + }, + { + "name": "permissions", + "type": "Permissions", + "number": 59, + "label": "optional" + }, + { + "name": "identifier_token", + "type": "myteamspeak.proto.tschat.MatrixIdentifierToken", + "number": 61, + "label": "optional" + }, + { + "name": "auth_token_cache", + "type": "AuthTokenCache", + "number": 62, + "label": "optional" + }, + { + "name": "firebase_device_token", + "type": "string", + "number": 63, + "label": "optional" + }, + { + "name": "otp_renewal_token", + "type": "string", + "number": 64, + "label": "optional" + }, + { + "name": "device_id", + "type": "string", + "number": 65, + "label": "optional" + } + ] + }, + { + "name": "com.teamspeak.account.proto.Account_Data.IntegrationCache", + "fields": [ + { + "name": "user_integration_id", + "type": "string", + "number": 1, + "label": "repeated" + }, + { + "name": "integration_cache", + "type": "myteamspeak.proto.integration.IntegrationResponseList", + "number": 2, + "label": "optional" + } + ] + }, + { + "name": "com.teamspeak.account.proto.Account_Data.AuthTokenCache", + "fields": [ + { + "name": "auth_token", + "type": "string", + "number": 1, + "label": "optional" + }, + { + "name": "renewal_token", + "type": "string", + "number": 2, + "label": "optional" + } + ] + }, + { + "name": "com.teamspeak.account.proto.TS_Sync_Account", + "fields": [ + { + "name": "passphrase", + "type": "string", + "number": 1, + "label": "optional" + } + ] + }, + { + "name": "com.teamspeak.account.proto.Permissions", + "fields": [ + { + "name": "permission", + "type": "string", + "number": 1, + "label": "repeated" + } + ] + }, + { + "name": "com.teamspeak.account.proto.MyTSID_Verification_Token", + "fields": [ + { + "name": "verification_sign", + "type": "bytes", + "number": 1, + "label": "optional" + }, + { + "name": "sign_timestamp", + "type": "uint64", + "number": 2, + "label": "optional" + }, + { + "name": "user_pub_key", + "type": "bytes", + "number": 3, + "label": "optional" + }, + { + "name": "pub_sign", + "type": "bytes", + "number": 4, + "label": "optional" + }, + { + "name": "pub_sign_cert", + "type": "bytes", + "number": 5, + "label": "optional" + }, + { + "name": "ac_time", + "type": "uint64", + "number": 6, + "label": "optional" + }, + { + "name": "mytsid", + "type": "bytes", + "number": 7, + "label": "optional" + } + ] + }, + { + "name": "com.teamspeak.account.proto.Auth_Token_Package", + "fields": [ + { + "name": "version", + "type": "uint32", + "number": 1, + "label": "optional" + }, + { + "name": "auth_token", + "type": "string", + "number": 2, + "label": "optional" + }, + { + "name": "encrypted_encryption_password", + "type": "string", + "number": 3, + "label": "optional" + }, + { + "name": "encryption_tag", + "type": "string", + "number": 4, + "label": "optional" + }, + { + "name": "iv", + "type": "string", + "number": 5, + "label": "optional" + } + ] + } + ], + "enums": [], + "services": [] + }, + { + "path": "Sync_Serializing.proto", + "package": "com.teamspeak.sync.proto", + "application": true, + "syntax": "proto2", + "sha256": "bec4f1f32ba6c41ee0b71149ead5f6f22d77065df76dcb7d99934b774000ff03", + "imports": [ + "synchronization_common.proto" + ], + "messages": [ + { + "name": "com.teamspeak.sync.proto.Bookmark_Data", + "fields": [ + { + "name": "name", + "type": "string", + "number": 1, + "label": "optional" + }, + { + "name": "address", + "type": "string", + "number": 2, + "label": "optional" + }, + { + "name": "port", + "type": "uint32", + "number": 3, + "label": "optional" + }, + { + "name": "nickname", + "type": "string", + "number": 4, + "label": "optional" + }, + { + "name": "phonetic_nickname", + "type": "string", + "number": 5, + "label": "optional" + }, + { + "name": "identity", + "type": "string", + "number": 6, + "label": "optional" + }, + { + "name": "server_password", + "type": "string", + "number": 7, + "label": "optional" + }, + { + "name": "default_channel", + "type": "string", + "number": 8, + "label": "optional" + }, + { + "name": "default_channel_password", + "type": "string", + "number": 9, + "label": "optional" + }, + { + "name": "default_channel_id", + "type": "uint64", + "number": 10, + "label": "optional" + }, + { + "name": "capture_profile", + "type": "string", + "number": 11, + "label": "optional" + }, + { + "name": "playback_profile", + "type": "string", + "number": 12, + "label": "optional" + }, + { + "name": "hotkey_profile", + "type": "string", + "number": 13, + "label": "optional" + }, + { + "name": "autoconnect", + "type": "bool", + "number": 14, + "label": "optional" + }, + { + "name": "server_uid", + "type": "string", + "number": 15, + "label": "optional" + }, + { + "name": "server_icon", + "type": "string", + "number": 16, + "label": "optional" + }, + { + "name": "sound_pack", + "type": "string", + "number": 17, + "label": "optional" + }, + { + "name": "show_server_query_clients", + "type": "bool", + "number": 18, + "label": "optional" + }, + { + "name": "subscription_mode", + "type": "SubscriptionMode", + "number": 19, + "label": "optional" + }, + { + "name": "subscribed_channel_ids", + "type": "uint64", + "number": 20, + "label": "repeated" + }, + { + "name": "channel_passwords", + "type": "ChannelPassword", + "number": 21, + "label": "repeated" + }, + { + "name": "send_mytsid_on_server", + "type": "bool", + "number": 22, + "label": "optional" + }, + { + "name": "announce_to_chat", + "type": "bool", + "number": 23, + "label": "optional" + }, + { + "name": "resolved_server_nickname", + "type": "string", + "number": 24, + "label": "optional" + }, + { + "name": "connect_muted", + "type": "bool", + "number": 25, + "label": "optional" + } + ] + }, + { + "name": "com.teamspeak.sync.proto.Bookmark_Data.ChannelPassword", + "fields": [ + { + "name": "channel_id", + "type": "uint64", + "number": 1, + "label": "optional" + }, + { + "name": "password", + "type": "string", + "number": 2, + "label": "optional" + } + ] + }, + { + "name": "com.teamspeak.sync.proto.Identity_Data", + "fields": [ + { + "name": "unique_identity", + "type": "string", + "number": 1, + "label": "optional" + }, + { + "name": "id_name", + "type": "string", + "number": 2, + "label": "optional" + }, + { + "name": "nickname", + "type": "string", + "number": 3, + "label": "optional" + }, + { + "name": "phonetic_nickname", + "type": "string", + "number": 4, + "label": "optional" + }, + { + "name": "is_default", + "type": "bool", + "number": 5, + "label": "optional" + } + ] + }, + { + "name": "com.teamspeak.sync.proto.Whisper_list_data", + "fields": [ + { + "name": "uuid", + "type": "string", + "number": 1, + "label": "optional" + }, + { + "name": "name", + "type": "string", + "number": 2, + "label": "optional" + }, + { + "name": "type", + "type": "WhisperListType", + "number": 3, + "label": "optional" + }, + { + "name": "groupType", + "type": "int32", + "number": 4, + "label": "optional" + }, + { + "name": "groupTargetMode", + "type": "int32", + "number": 5, + "label": "optional" + }, + { + "name": "targetGroupID", + "type": "uint64", + "number": 6, + "label": "optional" + }, + { + "name": "targetGroupName", + "type": "string", + "number": 7, + "label": "optional" + }, + { + "name": "targetServerUid", + "type": "string", + "number": 8, + "label": "optional" + }, + { + "name": "targetServerName", + "type": "string", + "number": 9, + "label": "optional" + }, + { + "name": "whisperListEntries", + "type": "WhisperEntry", + "number": 10, + "label": "repeated" + } + ] + }, + { + "name": "com.teamspeak.sync.proto.Whisper_list_data.WhisperEntry", + "fields": [ + { + "name": "type", + "type": "WhisperEntryType", + "number": 1, + "label": "optional" + }, + { + "name": "name", + "type": "string", + "number": 2, + "label": "optional" + }, + { + "name": "uid", + "type": "string", + "number": 3, + "label": "optional" + } + ] + }, + { + "name": "com.teamspeak.sync.proto.HotkeyProfile_data", + "fields": [ + { + "name": "uuid", + "type": "string", + "number": 1, + "label": "optional" + }, + { + "name": "name", + "type": "string", + "number": 2, + "label": "optional" + }, + { + "name": "hotkeys", + "type": "Hotkey", + "number": 3, + "label": "repeated" + }, + { + "name": "is_default", + "type": "bool", + "number": 4, + "label": "optional" + } + ] + }, + { + "name": "com.teamspeak.sync.proto.HotkeyProfile_data.Hotkey", + "fields": [ + { + "name": "os", + "type": "OS", + "number": 3, + "label": "optional" + }, + { + "name": "event_type", + "type": "int32", + "number": 4, + "label": "optional" + }, + { + "name": "event_uuid", + "type": "string", + "number": 5, + "label": "optional" + }, + { + "name": "event_mode", + "type": "string", + "number": 6, + "label": "optional" + }, + { + "name": "keys", + "type": "KeyDef", + "number": 7, + "label": "repeated" + }, + { + "name": "action_type", + "type": "uint32", + "number": 8, + "label": "optional" + }, + { + "name": "action_uuid", + "type": "string", + "number": 9, + "label": "optional" + }, + { + "name": "action_discard", + "type": "bool", + "number": 10, + "label": "optional" + }, + { + "name": "action_mode", + "type": "string", + "number": 11, + "label": "optional" + }, + { + "name": "action_flag", + "type": "string", + "number": 12, + "label": "optional" + }, + { + "name": "action_description", + "type": "string", + "number": 13, + "label": "optional" + }, + { + "name": "action_plugin", + "type": "string", + "number": 14, + "label": "optional" + }, + { + "name": "action_away_message", + "type": "string", + "number": 15, + "label": "optional" + }, + { + "name": "action_soundpack", + "type": "string", + "number": 16, + "label": "optional" + }, + { + "name": "action_plugincommand", + "type": "string", + "number": 17, + "label": "optional" + }, + { + "name": "action_plugindescription", + "type": "string", + "number": 18, + "label": "optional" + }, + { + "name": "action_deviceuid", + "type": "string", + "number": 19, + "label": "optional" + }, + { + "name": "action_devicename", + "type": "string", + "number": 20, + "label": "optional" + }, + { + "name": "action_target", + "type": "string", + "number": 21, + "label": "optional" + }, + { + "name": "action_auto", + "type": "bool", + "number": 22, + "label": "optional" + }, + { + "name": "action_profiles", + "type": "string", + "number": 23, + "label": "optional" + }, + { + "name": "action_active_tab", + "type": "bool", + "number": 24, + "label": "optional" + } + ] + }, + { + "name": "com.teamspeak.sync.proto.HotkeyProfile_data.Hotkey.KeyDef", + "fields": [ + { + "name": "identifier", + "type": "string", + "number": 1, + "label": "optional" + }, + { + "name": "key", + "type": "string", + "number": 2, + "label": "optional" + } + ] + }, + { + "name": "com.teamspeak.sync.proto.Add_on_data", + "fields": [ + { + "name": "uuid", + "type": "string", + "number": 1, + "label": "optional" + }, + { + "name": "enabled", + "type": "bool", + "number": 2, + "label": "optional" + } + ] + }, + { + "name": "com.teamspeak.sync.proto.Chat_Credentials", + "fields": [ + { + "name": "domain", + "type": "string", + "number": 1, + "label": "optional" + }, + { + "name": "username", + "type": "string", + "number": 2, + "label": "optional" + }, + { + "name": "password", + "type": "string", + "number": 3, + "label": "optional" + } + ] + }, + { + "name": "com.teamspeak.sync.proto.Config_data", + "fields": [ + { + "name": "default_subscribe_mode", + "type": "int32", + "number": 1, + "label": "optional" + }, + { + "name": "user_badges", + "type": "string", + "number": 2, + "label": "repeated" + }, + { + "name": "show_user_badges", + "type": "bool", + "number": 3, + "label": "optional" + }, + { + "name": "global_presence_token", + "type": "bytes", + "number": 4, + "label": "optional" + }, + { + "name": "tschat_credentials", + "type": "Chat_Credentials", + "number": 5, + "label": "optional" + }, + { + "name": "tschat_de_data", + "type": "TSCHAT_DE_Data", + "number": 7, + "label": "repeated" + } + ] + }, + { + "name": "com.teamspeak.sync.proto.Item_Folder", + "fields": [ + { + "name": "folder_name", + "type": "string", + "number": 1, + "label": "optional" + }, + { + "name": "folder_type", + "type": "myteamspeak.proto.synchronization.Item_Class", + "number": 2, + "label": "optional" + } + ] + }, + { + "name": "com.teamspeak.sync.proto.Group_Chats", + "fields": [ + { + "name": "category_name", + "type": "string", + "number": 1, + "label": "optional" + } + ] + }, + { + "name": "com.teamspeak.sync.proto.Contact", + "fields": [ + { + "name": "chat_room_id", + "type": "string", + "number": 1, + "label": "optional" + }, + { + "name": "custom_name", + "type": "string", + "number": 2, + "label": "optional" + }, + { + "name": "custom_category", + "type": "string", + "number": 3, + "label": "optional" + }, + { + "name": "notification_preference", + "type": "NotificationPreference", + "number": 4, + "label": "optional" + }, + { + "name": "is_favourite", + "type": "bool", + "number": 5, + "label": "optional" + }, + { + "name": "is_direct_chat", + "type": "bool", + "number": 6, + "label": "optional" + }, + { + "name": "mytsid", + "type": "string", + "number": 7, + "label": "optional" + }, + { + "name": "chat_member_id", + "type": "string", + "number": 8, + "label": "optional" + } + ] + }, + { + "name": "com.teamspeak.sync.proto.Item_Data", + "fields": [ + { + "name": "item_uuid", + "type": "string", + "number": 2, + "label": "optional" + }, + { + "name": "sync_version_uuid", + "type": "string", + "number": 3, + "label": "optional" + }, + { + "name": "manipulated", + "type": "Manipulation_Flag", + "number": 4, + "label": "optional" + }, + { + "name": "last_known_version", + "type": "string", + "number": 5, + "label": "optional" + }, + { + "name": "item_type", + "type": "uint32", + "number": 6, + "label": "optional" + }, + { + "name": "parent", + "type": "string", + "number": 7, + "label": "optional" + }, + { + "name": "sort_order", + "type": "string", + "number": 8, + "label": "optional" + }, + { + "name": "timestamp", + "type": "uint64", + "number": 9, + "label": "optional" + }, + { + "name": "bookmark", + "type": "Bookmark_Data", + "number": 16, + "label": "" + }, + { + "name": "identity", + "type": "Identity_Data", + "number": 17, + "label": "" + }, + { + "name": "whisperlist", + "type": "Whisper_list_data", + "number": 18, + "label": "" + }, + { + "name": "hotkeyprofile", + "type": "HotkeyProfile_data", + "number": 19, + "label": "" + }, + { + "name": "add_on", + "type": "Add_on_data", + "number": 20, + "label": "" + }, + { + "name": "config", + "type": "Config_data", + "number": 21, + "label": "" + }, + { + "name": "item_folder", + "type": "Item_Folder", + "number": 22, + "label": "" + }, + { + "name": "group_chats", + "type": "Group_Chats", + "number": 24, + "label": "" + }, + { + "name": "contact", + "type": "Contact", + "number": 25, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.sync.proto.TSCHAT_DE_Data", + "fields": [ + { + "name": "url", + "type": "string", + "number": 1, + "label": "optional" + }, + { + "name": "identity", + "type": "string", + "number": 2, + "label": "optional" + }, + { + "name": "username", + "type": "string", + "number": 3, + "label": "optional" + }, + { + "name": "server_id", + "type": "string", + "number": 4, + "label": "optional" + }, + { + "name": "address", + "type": "string", + "number": 5, + "label": "optional" + }, + { + "name": "port", + "type": "string", + "number": 6, + "label": "optional" + }, + { + "name": "name", + "type": "string", + "number": 7, + "label": "optional" + } + ] + } + ], + "enums": [ + { + "name": "com.teamspeak.sync.proto.Bookmark_Data.SubscriptionMode", + "values": [ + { + "name": "Undefined", + "number": 0 + }, + { + "name": "All", + "number": 1 + }, + { + "name": "Current", + "number": 2 + } + ] + }, + { + "name": "com.teamspeak.sync.proto.Whisper_list_data.WhisperListType", + "values": [ + { + "name": "WLT_INVALID", + "number": 0 + }, + { + "name": "WLT_LIST", + "number": 1 + }, + { + "name": "WLT_PREDEFINED", + "number": 2 + } + ] + }, + { + "name": "com.teamspeak.sync.proto.Whisper_list_data.WhisperEntry.WhisperEntryType", + "values": [ + { + "name": "WET_INVALID", + "number": 0 + }, + { + "name": "WET_CLIENT", + "number": 1 + }, + { + "name": "WET_CHANNEL", + "number": 2 + } + ] + }, + { + "name": "com.teamspeak.sync.proto.HotkeyProfile_data.Hotkey.OS", + "values": [ + { + "name": "Windows", + "number": 0 + }, + { + "name": "OSX", + "number": 1 + }, + { + "name": "Linux", + "number": 2 + } + ] + }, + { + "name": "com.teamspeak.sync.proto.Contact.NotificationPreference", + "values": [ + { + "name": "NOTIFY_ALWAYS", + "number": 0 + }, + { + "name": "NOTIFY_EVERYONE_AND_SELF", + "number": 1 + }, + { + "name": "NOTIFY_SELF", + "number": 2 + }, + { + "name": "NOTIFY_NONE", + "number": 3 + } + ] + }, + { + "name": "com.teamspeak.sync.proto.Item_Data.Manipulation_Flag", + "values": [ + { + "name": "ITEM_ADDED", + "number": 0 + }, + { + "name": "ITEM_CHANGED", + "number": 1 + }, + { + "name": "ITEM_DELETED", + "number": 2 + }, + { + "name": "ITEM_NOT_MANIPULATED", + "number": 3 + } + ] + } + ], + "services": [] + }, + { + "path": "blacklist_info.proto", + "package": "com.teamspeak.blacklist", + "application": true, + "syntax": "proto3", + "sha256": "dfefff025df720ac395f810c1278a51b783fc0aa5827b0b7baa15150d910e3d0", + "imports": [], + "messages": [ + { + "name": "com.teamspeak.blacklist.BlacklistInfoRequest", + "fields": [ + { + "name": "ip_address", + "type": "bytes", + "number": 1, + "label": "" + }, + { + "name": "domain_name", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "virtual_server_id", + "type": "string", + "number": 3, + "label": "" + }, + { + "name": "public_license_id", + "type": "string", + "number": 4, + "label": "" + }, + { + "name": "port", + "type": "uint32", + "number": 5, + "label": "" + }, + { + "name": "timestamp", + "type": "uint64", + "number": 6, + "label": "" + }, + { + "name": "valid_token_present", + "type": "bool", + "number": 7, + "label": "" + }, + { + "name": "slots_ok", + "type": "bool", + "number": 8, + "label": "" + }, + { + "name": "updated_virtual_server_id", + "type": "string", + "number": 9, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.blacklist.BlacklistInfoResponse", + "fields": [ + { + "name": "status_ip", + "type": "Result", + "number": 1, + "label": "" + }, + { + "name": "status_domain", + "type": "Result", + "number": 2, + "label": "" + }, + { + "name": "status_virtual_server_id", + "type": "Result", + "number": 3, + "label": "" + }, + { + "name": "Status_public_license_id", + "type": "Result", + "number": 4, + "label": "" + } + ] + } + ], + "enums": [ + { + "name": "com.teamspeak.blacklist.BlacklistInfoResponse.Result", + "values": [ + { + "name": "INVALID", + "number": 0 + }, + { + "name": "BLACKLISTED", + "number": 1 + }, + { + "name": "GREYLISTED", + "number": 2 + }, + { + "name": "NOT_LISTED", + "number": 3 + } + ] + } + ], + "services": [] + }, + { + "path": "client_lib_cache.proto", + "package": "com.teamspeak.proto.client_cache", + "application": true, + "syntax": "proto3", + "sha256": "d0c65aeb30e5861520dce1d6d4b3064b0eff6f2a8412ee2d381f774b5d257e85", + "imports": [ + "revoke_cache.proto" + ], + "messages": [ + { + "name": "com.teamspeak.proto.client_cache.ClientLibCache", + "fields": [ + { + "name": "revoke_list_cache_certificates", + "type": "revocation.RevokeListCachedData", + "number": 1, + "label": "" + }, + { + "name": "revoke_list_cache_mytsid_data", + "type": "revocation.RevokeListCachedData", + "number": 2, + "label": "" + } + ] + } + ], + "enums": [], + "services": [] + }, + { + "path": "envoy/annotations/deprecation.proto", + "package": "envoy.annotations", + "application": false, + "syntax": "proto3", + "sha256": "88286e26096e46e04c0c64298a2a5958ba49aa4bd4d2f73c4403c09842d0d684", + "imports": [ + "google/protobuf/descriptor.proto" + ], + "messages": [], + "enums": [], + "services": [] + }, + { + "path": "envoy/config/accesslog/v3/accesslog.proto", + "package": "envoy.config.accesslog.v3", + "application": false, + "syntax": "proto3", + "sha256": "a1ab1e8003e62db6e2e19910b0bd018b32af698e2290cab411a9c793ddc1ae2a", + "imports": [ + "envoy/config/core/v3/base.proto", + "envoy/config/route/v3/route_components.proto", + "envoy/data/accesslog/v3/accesslog.proto", + "envoy/type/matcher/v3/metadata.proto", + "envoy/type/v3/percent.proto", + "google/protobuf/any.proto", + "google/protobuf/wrappers.proto", + "udpa/annotations/status.proto", + "udpa/annotations/versioning.proto", + "validate/validate.proto" + ], + "messages": [ + { + "name": "envoy.config.accesslog.v3.AccessLog", + "fields": [ + { + "name": "name", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "filter", + "type": "AccessLogFilter", + "number": 2, + "label": "" + }, + { + "name": "typed_config", + "type": "google.protobuf.Any", + "number": 4, + "label": "" + } + ] + }, + { + "name": "envoy.config.accesslog.v3.AccessLogFilter", + "fields": [ + { + "name": "status_code_filter", + "type": "StatusCodeFilter", + "number": 1, + "label": "" + }, + { + "name": "duration_filter", + "type": "DurationFilter", + "number": 2, + "label": "" + }, + { + "name": "not_health_check_filter", + "type": "NotHealthCheckFilter", + "number": 3, + "label": "" + }, + { + "name": "traceable_filter", + "type": "TraceableFilter", + "number": 4, + "label": "" + }, + { + "name": "runtime_filter", + "type": "RuntimeFilter", + "number": 5, + "label": "" + }, + { + "name": "and_filter", + "type": "AndFilter", + "number": 6, + "label": "" + }, + { + "name": "or_filter", + "type": "OrFilter", + "number": 7, + "label": "" + }, + { + "name": "header_filter", + "type": "HeaderFilter", + "number": 8, + "label": "" + }, + { + "name": "response_flag_filter", + "type": "ResponseFlagFilter", + "number": 9, + "label": "" + }, + { + "name": "grpc_status_filter", + "type": "GrpcStatusFilter", + "number": 10, + "label": "" + }, + { + "name": "extension_filter", + "type": "ExtensionFilter", + "number": 11, + "label": "" + }, + { + "name": "metadata_filter", + "type": "MetadataFilter", + "number": 12, + "label": "" + }, + { + "name": "log_type_filter", + "type": "LogTypeFilter", + "number": 13, + "label": "" + } + ] + }, + { + "name": "envoy.config.accesslog.v3.ComparisonFilter", + "fields": [ + { + "name": "op", + "type": "Op", + "number": 1, + "label": "" + }, + { + "name": "value", + "type": "core.v3.RuntimeUInt32", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.config.accesslog.v3.StatusCodeFilter", + "fields": [ + { + "name": "comparison", + "type": "ComparisonFilter", + "number": 1, + "label": "" + } + ] + }, + { + "name": "envoy.config.accesslog.v3.DurationFilter", + "fields": [ + { + "name": "comparison", + "type": "ComparisonFilter", + "number": 1, + "label": "" + } + ] + }, + { + "name": "envoy.config.accesslog.v3.NotHealthCheckFilter", + "fields": [] + }, + { + "name": "envoy.config.accesslog.v3.TraceableFilter", + "fields": [] + }, + { + "name": "envoy.config.accesslog.v3.RuntimeFilter", + "fields": [ + { + "name": "runtime_key", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "percent_sampled", + "type": "type.v3.FractionalPercent", + "number": 2, + "label": "" + }, + { + "name": "use_independent_randomness", + "type": "bool", + "number": 3, + "label": "" + } + ] + }, + { + "name": "envoy.config.accesslog.v3.AndFilter", + "fields": [ + { + "name": "filters", + "type": "AccessLogFilter", + "number": 1, + "label": "repeated" + } + ] + }, + { + "name": "envoy.config.accesslog.v3.OrFilter", + "fields": [ + { + "name": "filters", + "type": "AccessLogFilter", + "number": 2, + "label": "repeated" + } + ] + }, + { + "name": "envoy.config.accesslog.v3.HeaderFilter", + "fields": [ + { + "name": "header", + "type": "route.v3.HeaderMatcher", + "number": 1, + "label": "" + } + ] + }, + { + "name": "envoy.config.accesslog.v3.ResponseFlagFilter", + "fields": [ + { + "name": "flags", + "type": "string", + "number": 1, + "label": "repeated" + } + ] + }, + { + "name": "envoy.config.accesslog.v3.GrpcStatusFilter", + "fields": [ + { + "name": "statuses", + "type": "Status", + "number": 1, + "label": "repeated" + }, + { + "name": "exclude", + "type": "bool", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.config.accesslog.v3.MetadataFilter", + "fields": [ + { + "name": "matcher", + "type": "type.matcher.v3.MetadataMatcher", + "number": 1, + "label": "" + }, + { + "name": "match_if_key_not_found", + "type": "google.protobuf.BoolValue", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.config.accesslog.v3.LogTypeFilter", + "fields": [ + { + "name": "types", + "type": "data.accesslog.v3.AccessLogType", + "number": 1, + "label": "repeated" + }, + { + "name": "exclude", + "type": "bool", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.config.accesslog.v3.ExtensionFilter", + "fields": [ + { + "name": "name", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "typed_config", + "type": "google.protobuf.Any", + "number": 3, + "label": "" + } + ] + } + ], + "enums": [ + { + "name": "envoy.config.accesslog.v3.ComparisonFilter.Op", + "values": [ + { + "name": "EQ", + "number": 0 + }, + { + "name": "GE", + "number": 1 + }, + { + "name": "LE", + "number": 2 + } + ] + }, + { + "name": "envoy.config.accesslog.v3.GrpcStatusFilter.Status", + "values": [ + { + "name": "OK", + "number": 0 + }, + { + "name": "CANCELED", + "number": 1 + }, + { + "name": "UNKNOWN", + "number": 2 + }, + { + "name": "INVALID_ARGUMENT", + "number": 3 + }, + { + "name": "DEADLINE_EXCEEDED", + "number": 4 + }, + { + "name": "NOT_FOUND", + "number": 5 + }, + { + "name": "ALREADY_EXISTS", + "number": 6 + }, + { + "name": "PERMISSION_DENIED", + "number": 7 + }, + { + "name": "RESOURCE_EXHAUSTED", + "number": 8 + }, + { + "name": "FAILED_PRECONDITION", + "number": 9 + }, + { + "name": "ABORTED", + "number": 10 + }, + { + "name": "OUT_OF_RANGE", + "number": 11 + }, + { + "name": "UNIMPLEMENTED", + "number": 12 + }, + { + "name": "INTERNAL", + "number": 13 + }, + { + "name": "UNAVAILABLE", + "number": 14 + }, + { + "name": "DATA_LOSS", + "number": 15 + }, + { + "name": "UNAUTHENTICATED", + "number": 16 + } + ] + } + ], + "services": [] + }, + { + "path": "envoy/config/cluster/v3/circuit_breaker.proto", + "package": "envoy.config.cluster.v3", + "application": false, + "syntax": "proto3", + "sha256": "47eab6b8e7d06cb65691bc87fdf75f501221bac9e53414d1110951a491bf91ea", + "imports": [ + "envoy/config/core/v3/base.proto", + "envoy/type/v3/percent.proto", + "google/protobuf/wrappers.proto", + "udpa/annotations/status.proto", + "udpa/annotations/versioning.proto", + "validate/validate.proto" + ], + "messages": [ + { + "name": "envoy.config.cluster.v3.CircuitBreakers", + "fields": [ + { + "name": "thresholds", + "type": "Thresholds", + "number": 1, + "label": "repeated" + }, + { + "name": "per_host_thresholds", + "type": "Thresholds", + "number": 2, + "label": "repeated" + } + ] + }, + { + "name": "envoy.config.cluster.v3.CircuitBreakers.Thresholds", + "fields": [ + { + "name": "priority", + "type": "core.v3.RoutingPriority", + "number": 1, + "label": "" + }, + { + "name": "max_connections", + "type": "google.protobuf.UInt32Value", + "number": 2, + "label": "" + }, + { + "name": "max_pending_requests", + "type": "google.protobuf.UInt32Value", + "number": 3, + "label": "" + }, + { + "name": "max_requests", + "type": "google.protobuf.UInt32Value", + "number": 4, + "label": "" + }, + { + "name": "max_retries", + "type": "google.protobuf.UInt32Value", + "number": 5, + "label": "" + }, + { + "name": "retry_budget", + "type": "RetryBudget", + "number": 8, + "label": "" + }, + { + "name": "track_remaining", + "type": "bool", + "number": 6, + "label": "" + }, + { + "name": "max_connection_pools", + "type": "google.protobuf.UInt32Value", + "number": 7, + "label": "" + } + ] + }, + { + "name": "envoy.config.cluster.v3.CircuitBreakers.Thresholds.RetryBudget", + "fields": [ + { + "name": "budget_percent", + "type": "type.v3.Percent", + "number": 1, + "label": "" + }, + { + "name": "min_retry_concurrency", + "type": "google.protobuf.UInt32Value", + "number": 2, + "label": "" + } + ] + } + ], + "enums": [], + "services": [] + }, + { + "path": "envoy/config/cluster/v3/cluster.proto", + "package": "envoy.config.cluster.v3", + "application": false, + "syntax": "proto3", + "sha256": "4eeeb81c3fba5f60da2315bef46804c6d69aff9f95ea256e1a7ad11e6cfc2617", + "imports": [ + "envoy/config/cluster/v3/circuit_breaker.proto", + "envoy/config/cluster/v3/filter.proto", + "envoy/config/cluster/v3/outlier_detection.proto", + "envoy/config/core/v3/address.proto", + "envoy/config/core/v3/base.proto", + "envoy/config/core/v3/config_source.proto", + "envoy/config/core/v3/extension.proto", + "envoy/config/core/v3/health_check.proto", + "envoy/config/core/v3/protocol.proto", + "envoy/config/core/v3/resolver.proto", + "envoy/config/endpoint/v3/endpoint.proto", + "envoy/type/metadata/v3/metadata.proto", + "envoy/type/v3/percent.proto", + "google/protobuf/any.proto", + "google/protobuf/duration.proto", + "google/protobuf/struct.proto", + "google/protobuf/wrappers.proto", + "xds/core/v3/collection_entry.proto", + "envoy/annotations/deprecation.proto", + "udpa/annotations/migrate.proto", + "udpa/annotations/security.proto", + "udpa/annotations/status.proto", + "udpa/annotations/versioning.proto", + "validate/validate.proto" + ], + "messages": [ + { + "name": "envoy.config.cluster.v3.ClusterCollection", + "fields": [ + { + "name": "entries", + "type": "xds.core.v3.CollectionEntry", + "number": 1, + "label": "" + } + ] + }, + { + "name": "envoy.config.cluster.v3.Cluster", + "fields": [ + { + "name": "transport_socket_matches", + "type": "TransportSocketMatch", + "number": 43, + "label": "repeated" + }, + { + "name": "name", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "alt_stat_name", + "type": "string", + "number": 28, + "label": "" + }, + { + "name": "eds_cluster_config", + "type": "EdsClusterConfig", + "number": 3, + "label": "" + }, + { + "name": "connect_timeout", + "type": "google.protobuf.Duration", + "number": 4, + "label": "" + }, + { + "name": "per_connection_buffer_limit_bytes", + "type": "google.protobuf.UInt32Value", + "number": 5, + "label": "" + }, + { + "name": "lb_policy", + "type": "LbPolicy", + "number": 6, + "label": "" + }, + { + "name": "load_assignment", + "type": "endpoint.v3.ClusterLoadAssignment", + "number": 33, + "label": "" + }, + { + "name": "health_checks", + "type": "core.v3.HealthCheck", + "number": 8, + "label": "repeated" + }, + { + "name": "max_requests_per_connection", + "type": "google.protobuf.UInt32Value", + "number": 9, + "label": "" + }, + { + "name": "circuit_breakers", + "type": "CircuitBreakers", + "number": 10, + "label": "" + }, + { + "name": "upstream_http_protocol_options", + "type": "core.v3.UpstreamHttpProtocolOptions", + "number": 46, + "label": "" + }, + { + "name": "common_http_protocol_options", + "type": "core.v3.HttpProtocolOptions", + "number": 29, + "label": "" + }, + { + "name": "http_protocol_options", + "type": "core.v3.Http1ProtocolOptions", + "number": 13, + "label": "" + }, + { + "name": "http2_protocol_options", + "type": "core.v3.Http2ProtocolOptions", + "number": 14, + "label": "" + }, + { + "name": "typed_extension_protocol_options", + "type": "map", + "number": 36, + "label": "" + }, + { + "name": "dns_refresh_rate", + "type": "google.protobuf.Duration", + "number": 16, + "label": "" + }, + { + "name": "dns_jitter", + "type": "google.protobuf.Duration", + "number": 58, + "label": "" + }, + { + "name": "dns_failure_refresh_rate", + "type": "RefreshRate", + "number": 44, + "label": "" + }, + { + "name": "respect_dns_ttl", + "type": "bool", + "number": 39, + "label": "" + }, + { + "name": "dns_lookup_family", + "type": "DnsLookupFamily", + "number": 17, + "label": "" + }, + { + "name": "dns_resolvers", + "type": "core.v3.Address", + "number": 18, + "label": "repeated" + }, + { + "name": "use_tcp_for_dns_lookups", + "type": "bool", + "number": 45, + "label": "" + }, + { + "name": "dns_resolution_config", + "type": "core.v3.DnsResolutionConfig", + "number": 53, + "label": "" + }, + { + "name": "typed_dns_resolver_config", + "type": "core.v3.TypedExtensionConfig", + "number": 55, + "label": "" + }, + { + "name": "wait_for_warm_on_init", + "type": "google.protobuf.BoolValue", + "number": 54, + "label": "" + }, + { + "name": "outlier_detection", + "type": "OutlierDetection", + "number": 19, + "label": "" + }, + { + "name": "cleanup_interval", + "type": "google.protobuf.Duration", + "number": 20, + "label": "" + }, + { + "name": "upstream_bind_config", + "type": "core.v3.BindConfig", + "number": 21, + "label": "" + }, + { + "name": "lb_subset_config", + "type": "LbSubsetConfig", + "number": 22, + "label": "" + }, + { + "name": "common_lb_config", + "type": "CommonLbConfig", + "number": 27, + "label": "" + }, + { + "name": "transport_socket", + "type": "core.v3.TransportSocket", + "number": 24, + "label": "" + }, + { + "name": "metadata", + "type": "core.v3.Metadata", + "number": 25, + "label": "" + }, + { + "name": "protocol_selection", + "type": "ClusterProtocolSelection", + "number": 26, + "label": "" + }, + { + "name": "upstream_connection_options", + "type": "UpstreamConnectionOptions", + "number": 30, + "label": "" + }, + { + "name": "close_connections_on_host_health_failure", + "type": "bool", + "number": 31, + "label": "" + }, + { + "name": "ignore_health_on_host_removal", + "type": "bool", + "number": 32, + "label": "" + }, + { + "name": "filters", + "type": "Filter", + "number": 40, + "label": "repeated" + }, + { + "name": "load_balancing_policy", + "type": "LoadBalancingPolicy", + "number": 41, + "label": "" + }, + { + "name": "lrs_server", + "type": "core.v3.ConfigSource", + "number": 42, + "label": "" + }, + { + "name": "lrs_report_endpoint_metrics", + "type": "string", + "number": 57, + "label": "repeated" + }, + { + "name": "track_timeout_budgets", + "type": "bool", + "number": 47, + "label": "" + }, + { + "name": "upstream_config", + "type": "core.v3.TypedExtensionConfig", + "number": 48, + "label": "" + }, + { + "name": "track_cluster_stats", + "type": "TrackClusterStats", + "number": 49, + "label": "" + }, + { + "name": "preconnect_policy", + "type": "PreconnectPolicy", + "number": 50, + "label": "" + }, + { + "name": "connection_pool_per_downstream_connection", + "type": "bool", + "number": 51, + "label": "" + }, + { + "name": "type", + "type": "DiscoveryType", + "number": 2, + "label": "" + }, + { + "name": "cluster_type", + "type": "CustomClusterType", + "number": 38, + "label": "" + }, + { + "name": "ring_hash_lb_config", + "type": "RingHashLbConfig", + "number": 23, + "label": "" + }, + { + "name": "maglev_lb_config", + "type": "MaglevLbConfig", + "number": 52, + "label": "" + }, + { + "name": "original_dst_lb_config", + "type": "OriginalDstLbConfig", + "number": 34, + "label": "" + }, + { + "name": "least_request_lb_config", + "type": "LeastRequestLbConfig", + "number": 37, + "label": "" + }, + { + "name": "round_robin_lb_config", + "type": "RoundRobinLbConfig", + "number": 56, + "label": "" + } + ] + }, + { + "name": "envoy.config.cluster.v3.Cluster.TransportSocketMatch", + "fields": [ + { + "name": "name", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "match", + "type": "google.protobuf.Struct", + "number": 2, + "label": "" + }, + { + "name": "transport_socket", + "type": "core.v3.TransportSocket", + "number": 3, + "label": "" + } + ] + }, + { + "name": "envoy.config.cluster.v3.Cluster.EdsClusterConfig", + "fields": [ + { + "name": "eds_config", + "type": "core.v3.ConfigSource", + "number": 1, + "label": "" + }, + { + "name": "service_name", + "type": "string", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.config.cluster.v3.Cluster.RefreshRate", + "fields": [ + { + "name": "base_interval", + "type": "google.protobuf.Duration", + "number": 1, + "label": "" + }, + { + "name": "max_interval", + "type": "google.protobuf.Duration", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.config.cluster.v3.Cluster.LbSubsetConfig", + "fields": [ + { + "name": "fallback_policy", + "type": "LbSubsetFallbackPolicy", + "number": 1, + "label": "" + }, + { + "name": "default_subset", + "type": "google.protobuf.Struct", + "number": 2, + "label": "" + }, + { + "name": "subset_selectors", + "type": "LbSubsetSelector", + "number": 3, + "label": "repeated" + }, + { + "name": "locality_weight_aware", + "type": "bool", + "number": 4, + "label": "" + }, + { + "name": "scale_locality_weight", + "type": "bool", + "number": 5, + "label": "" + }, + { + "name": "panic_mode_any", + "type": "bool", + "number": 6, + "label": "" + }, + { + "name": "list_as_any", + "type": "bool", + "number": 7, + "label": "" + }, + { + "name": "metadata_fallback_policy", + "type": "LbSubsetMetadataFallbackPolicy", + "number": 8, + "label": "" + } + ] + }, + { + "name": "envoy.config.cluster.v3.Cluster.LbSubsetConfig.LbSubsetSelector", + "fields": [ + { + "name": "keys", + "type": "string", + "number": 1, + "label": "repeated" + }, + { + "name": "single_host_per_subset", + "type": "bool", + "number": 4, + "label": "" + }, + { + "name": "fallback_policy", + "type": "LbSubsetSelectorFallbackPolicy", + "number": 2, + "label": "" + }, + { + "name": "fallback_keys_subset", + "type": "string", + "number": 3, + "label": "repeated" + } + ] + }, + { + "name": "envoy.config.cluster.v3.Cluster.CommonLbConfig", + "fields": [ + { + "name": "healthy_panic_threshold", + "type": "type.v3.Percent", + "number": 1, + "label": "" + }, + { + "name": "update_merge_window", + "type": "google.protobuf.Duration", + "number": 4, + "label": "" + }, + { + "name": "ignore_new_hosts_until_first_hc", + "type": "bool", + "number": 5, + "label": "" + }, + { + "name": "close_connections_on_host_set_change", + "type": "bool", + "number": 6, + "label": "" + }, + { + "name": "consistent_hashing_lb_config", + "type": "ConsistentHashingLbConfig", + "number": 7, + "label": "" + }, + { + "name": "override_host_status", + "type": "core.v3.HealthStatusSet", + "number": 8, + "label": "" + }, + { + "name": "zone_aware_lb_config", + "type": "ZoneAwareLbConfig", + "number": 2, + "label": "" + }, + { + "name": "locality_weighted_lb_config", + "type": "LocalityWeightedLbConfig", + "number": 3, + "label": "" + } + ] + }, + { + "name": "envoy.config.cluster.v3.Cluster.CommonLbConfig.ConsistentHashingLbConfig", + "fields": [ + { + "name": "use_hostname_for_hashing", + "type": "bool", + "number": 1, + "label": "" + }, + { + "name": "hash_balance_factor", + "type": "google.protobuf.UInt32Value", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.config.cluster.v3.Cluster.CommonLbConfig.ZoneAwareLbConfig", + "fields": [ + { + "name": "routing_enabled", + "type": "type.v3.Percent", + "number": 1, + "label": "" + }, + { + "name": "min_cluster_size", + "type": "google.protobuf.UInt64Value", + "number": 2, + "label": "" + }, + { + "name": "fail_traffic_on_panic", + "type": "bool", + "number": 3, + "label": "" + } + ] + }, + { + "name": "envoy.config.cluster.v3.Cluster.CommonLbConfig.LocalityWeightedLbConfig", + "fields": [] + }, + { + "name": "envoy.config.cluster.v3.Cluster.PreconnectPolicy", + "fields": [ + { + "name": "per_upstream_preconnect_ratio", + "type": "google.protobuf.DoubleValue", + "number": 1, + "label": "" + }, + { + "name": "predictive_preconnect_ratio", + "type": "google.protobuf.DoubleValue", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.config.cluster.v3.Cluster.CustomClusterType", + "fields": [ + { + "name": "name", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "typed_config", + "type": "google.protobuf.Any", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.config.cluster.v3.Cluster.SlowStartConfig", + "fields": [ + { + "name": "slow_start_window", + "type": "google.protobuf.Duration", + "number": 1, + "label": "" + }, + { + "name": "aggression", + "type": "core.v3.RuntimeDouble", + "number": 2, + "label": "" + }, + { + "name": "min_weight_percent", + "type": "type.v3.Percent", + "number": 3, + "label": "" + } + ] + }, + { + "name": "envoy.config.cluster.v3.Cluster.RoundRobinLbConfig", + "fields": [ + { + "name": "slow_start_config", + "type": "SlowStartConfig", + "number": 1, + "label": "" + } + ] + }, + { + "name": "envoy.config.cluster.v3.Cluster.LeastRequestLbConfig", + "fields": [ + { + "name": "choice_count", + "type": "google.protobuf.UInt32Value", + "number": 1, + "label": "" + }, + { + "name": "active_request_bias", + "type": "core.v3.RuntimeDouble", + "number": 2, + "label": "" + }, + { + "name": "slow_start_config", + "type": "SlowStartConfig", + "number": 3, + "label": "" + } + ] + }, + { + "name": "envoy.config.cluster.v3.Cluster.RingHashLbConfig", + "fields": [ + { + "name": "minimum_ring_size", + "type": "google.protobuf.UInt64Value", + "number": 1, + "label": "" + }, + { + "name": "hash_function", + "type": "HashFunction", + "number": 3, + "label": "" + }, + { + "name": "maximum_ring_size", + "type": "google.protobuf.UInt64Value", + "number": 4, + "label": "" + } + ] + }, + { + "name": "envoy.config.cluster.v3.Cluster.MaglevLbConfig", + "fields": [ + { + "name": "table_size", + "type": "google.protobuf.UInt64Value", + "number": 1, + "label": "" + } + ] + }, + { + "name": "envoy.config.cluster.v3.Cluster.OriginalDstLbConfig", + "fields": [ + { + "name": "use_http_header", + "type": "bool", + "number": 1, + "label": "" + }, + { + "name": "http_header_name", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "upstream_port_override", + "type": "google.protobuf.UInt32Value", + "number": 3, + "label": "" + }, + { + "name": "metadata_key", + "type": "type.metadata.v3.MetadataKey", + "number": 4, + "label": "" + } + ] + }, + { + "name": "envoy.config.cluster.v3.LoadBalancingPolicy", + "fields": [ + { + "name": "policies", + "type": "Policy", + "number": 1, + "label": "repeated" + } + ] + }, + { + "name": "envoy.config.cluster.v3.LoadBalancingPolicy.Policy", + "fields": [ + { + "name": "typed_extension_config", + "type": "core.v3.TypedExtensionConfig", + "number": 4, + "label": "" + } + ] + }, + { + "name": "envoy.config.cluster.v3.UpstreamConnectionOptions", + "fields": [ + { + "name": "tcp_keepalive", + "type": "core.v3.TcpKeepalive", + "number": 1, + "label": "" + }, + { + "name": "set_local_interface_name_on_upstream_connections", + "type": "bool", + "number": 2, + "label": "" + }, + { + "name": "happy_eyeballs_config", + "type": "HappyEyeballsConfig", + "number": 3, + "label": "" + } + ] + }, + { + "name": "envoy.config.cluster.v3.UpstreamConnectionOptions.HappyEyeballsConfig", + "fields": [ + { + "name": "first_address_family_version", + "type": "FirstAddressFamilyVersion", + "number": 1, + "label": "" + }, + { + "name": "first_address_family_count", + "type": "google.protobuf.UInt32Value", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.config.cluster.v3.TrackClusterStats", + "fields": [ + { + "name": "timeout_budgets", + "type": "bool", + "number": 1, + "label": "" + }, + { + "name": "request_response_sizes", + "type": "bool", + "number": 2, + "label": "" + }, + { + "name": "per_endpoint_stats", + "type": "bool", + "number": 3, + "label": "" + } + ] + } + ], + "enums": [ + { + "name": "envoy.config.cluster.v3.Cluster.LbPolicy", + "values": [ + { + "name": "ROUND_ROBIN", + "number": 0 + }, + { + "name": "LEAST_REQUEST", + "number": 1 + }, + { + "name": "RING_HASH", + "number": 2 + }, + { + "name": "RANDOM", + "number": 3 + }, + { + "name": "MAGLEV", + "number": 5 + }, + { + "name": "CLUSTER_PROVIDED", + "number": 6 + }, + { + "name": "LOAD_BALANCING_POLICY_CONFIG", + "number": 7 + } + ] + }, + { + "name": "envoy.config.cluster.v3.Cluster.DnsLookupFamily", + "values": [ + { + "name": "AUTO", + "number": 0 + }, + { + "name": "V4_ONLY", + "number": 1 + }, + { + "name": "V6_ONLY", + "number": 2 + }, + { + "name": "V4_PREFERRED", + "number": 3 + }, + { + "name": "ALL", + "number": 4 + } + ] + }, + { + "name": "envoy.config.cluster.v3.Cluster.LbSubsetConfig.LbSubsetFallbackPolicy", + "values": [ + { + "name": "NO_FALLBACK", + "number": 0 + }, + { + "name": "ANY_ENDPOINT", + "number": 1 + }, + { + "name": "DEFAULT_SUBSET", + "number": 2 + } + ] + }, + { + "name": "envoy.config.cluster.v3.Cluster.LbSubsetConfig.LbSubsetSelector.LbSubsetSelectorFallbackPolicy", + "values": [ + { + "name": "NOT_DEFINED", + "number": 0 + }, + { + "name": "NO_FALLBACK", + "number": 1 + }, + { + "name": "ANY_ENDPOINT", + "number": 2 + }, + { + "name": "DEFAULT_SUBSET", + "number": 3 + }, + { + "name": "KEYS_SUBSET", + "number": 4 + } + ] + }, + { + "name": "envoy.config.cluster.v3.Cluster.LbSubsetConfig.LbSubsetMetadataFallbackPolicy", + "values": [ + { + "name": "METADATA_NO_FALLBACK", + "number": 0 + }, + { + "name": "FALLBACK_LIST", + "number": 1 + } + ] + }, + { + "name": "envoy.config.cluster.v3.Cluster.ClusterProtocolSelection", + "values": [ + { + "name": "USE_CONFIGURED_PROTOCOL", + "number": 0 + }, + { + "name": "USE_DOWNSTREAM_PROTOCOL", + "number": 1 + } + ] + }, + { + "name": "envoy.config.cluster.v3.Cluster.RingHashLbConfig.HashFunction", + "values": [ + { + "name": "XX_HASH", + "number": 0 + }, + { + "name": "MURMUR_HASH_2", + "number": 1 + } + ] + }, + { + "name": "envoy.config.cluster.v3.Cluster.DiscoveryType", + "values": [ + { + "name": "STATIC", + "number": 0 + }, + { + "name": "STRICT_DNS", + "number": 1 + }, + { + "name": "LOGICAL_DNS", + "number": 2 + }, + { + "name": "EDS", + "number": 3 + }, + { + "name": "ORIGINAL_DST", + "number": 4 + } + ] + }, + { + "name": "envoy.config.cluster.v3.UpstreamConnectionOptions.FirstAddressFamilyVersion", + "values": [ + { + "name": "DEFAULT", + "number": 0 + }, + { + "name": "V4", + "number": 1 + }, + { + "name": "V6", + "number": 2 + } + ] + } + ], + "services": [] + }, + { + "path": "envoy/config/cluster/v3/filter.proto", + "package": "envoy.config.cluster.v3", + "application": false, + "syntax": "proto3", + "sha256": "0fc5c0a11edb9b29a6a73e294ef1c8f4ce9d1a0e3dca31db16f8de19cb2bfc21", + "imports": [ + "envoy/config/core/v3/config_source.proto", + "google/protobuf/any.proto", + "udpa/annotations/status.proto", + "udpa/annotations/versioning.proto", + "validate/validate.proto" + ], + "messages": [ + { + "name": "envoy.config.cluster.v3.Filter", + "fields": [ + { + "name": "name", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "typed_config", + "type": "google.protobuf.Any", + "number": 2, + "label": "" + }, + { + "name": "config_discovery", + "type": "core.v3.ExtensionConfigSource", + "number": 3, + "label": "" + } + ] + } + ], + "enums": [], + "services": [] + }, + { + "path": "envoy/config/cluster/v3/outlier_detection.proto", + "package": "envoy.config.cluster.v3", + "application": false, + "syntax": "proto3", + "sha256": "0f581884f8199b321d3c33d59d22b578ad9b6510ddc7e108eaa16f81e2402aaf", + "imports": [ + "envoy/config/core/v3/extension.proto", + "google/protobuf/duration.proto", + "google/protobuf/wrappers.proto", + "udpa/annotations/status.proto", + "udpa/annotations/versioning.proto", + "validate/validate.proto" + ], + "messages": [ + { + "name": "envoy.config.cluster.v3.OutlierDetection", + "fields": [ + { + "name": "consecutive_5xx", + "type": "google.protobuf.UInt32Value", + "number": 1, + "label": "" + }, + { + "name": "interval", + "type": "google.protobuf.Duration", + "number": 2, + "label": "" + }, + { + "name": "base_ejection_time", + "type": "google.protobuf.Duration", + "number": 3, + "label": "" + }, + { + "name": "max_ejection_percent", + "type": "google.protobuf.UInt32Value", + "number": 4, + "label": "" + }, + { + "name": "enforcing_consecutive_5xx", + "type": "google.protobuf.UInt32Value", + "number": 5, + "label": "" + }, + { + "name": "enforcing_success_rate", + "type": "google.protobuf.UInt32Value", + "number": 6, + "label": "" + }, + { + "name": "success_rate_minimum_hosts", + "type": "google.protobuf.UInt32Value", + "number": 7, + "label": "" + }, + { + "name": "success_rate_request_volume", + "type": "google.protobuf.UInt32Value", + "number": 8, + "label": "" + }, + { + "name": "success_rate_stdev_factor", + "type": "google.protobuf.UInt32Value", + "number": 9, + "label": "" + }, + { + "name": "consecutive_gateway_failure", + "type": "google.protobuf.UInt32Value", + "number": 10, + "label": "" + }, + { + "name": "enforcing_consecutive_gateway_failure", + "type": "google.protobuf.UInt32Value", + "number": 11, + "label": "" + }, + { + "name": "split_external_local_origin_errors", + "type": "bool", + "number": 12, + "label": "" + }, + { + "name": "consecutive_local_origin_failure", + "type": "google.protobuf.UInt32Value", + "number": 13, + "label": "" + }, + { + "name": "enforcing_consecutive_local_origin_failure", + "type": "google.protobuf.UInt32Value", + "number": 14, + "label": "" + }, + { + "name": "enforcing_local_origin_success_rate", + "type": "google.protobuf.UInt32Value", + "number": 15, + "label": "" + }, + { + "name": "failure_percentage_threshold", + "type": "google.protobuf.UInt32Value", + "number": 16, + "label": "" + }, + { + "name": "enforcing_failure_percentage", + "type": "google.protobuf.UInt32Value", + "number": 17, + "label": "" + }, + { + "name": "enforcing_failure_percentage_local_origin", + "type": "google.protobuf.UInt32Value", + "number": 18, + "label": "" + }, + { + "name": "failure_percentage_minimum_hosts", + "type": "google.protobuf.UInt32Value", + "number": 19, + "label": "" + }, + { + "name": "failure_percentage_request_volume", + "type": "google.protobuf.UInt32Value", + "number": 20, + "label": "" + }, + { + "name": "max_ejection_time", + "type": "google.protobuf.Duration", + "number": 21, + "label": "" + }, + { + "name": "max_ejection_time_jitter", + "type": "google.protobuf.Duration", + "number": 22, + "label": "" + }, + { + "name": "successful_active_health_check_uneject_host", + "type": "google.protobuf.BoolValue", + "number": 23, + "label": "" + }, + { + "name": "monitors", + "type": "core.v3.TypedExtensionConfig", + "number": 24, + "label": "repeated" + }, + { + "name": "always_eject_one_host", + "type": "google.protobuf.BoolValue", + "number": 25, + "label": "" + } + ] + } + ], + "enums": [], + "services": [] + }, + { + "path": "envoy/config/core/v3/address.proto", + "package": "envoy.config.core.v3", + "application": false, + "syntax": "proto3", + "sha256": "17a299d24bce1846d4c9e2676550fcf755754dd7fb487bad2aa3c74e921b880a", + "imports": [ + "envoy/config/core/v3/extension.proto", + "envoy/config/core/v3/socket_option.proto", + "google/protobuf/wrappers.proto", + "envoy/annotations/deprecation.proto", + "udpa/annotations/status.proto", + "udpa/annotations/versioning.proto", + "validate/validate.proto" + ], + "messages": [ + { + "name": "envoy.config.core.v3.Pipe", + "fields": [ + { + "name": "path", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "mode", + "type": "uint32", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.config.core.v3.EnvoyInternalAddress", + "fields": [ + { + "name": "endpoint_id", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "server_listener_name", + "type": "string", + "number": 1, + "label": "" + } + ] + }, + { + "name": "envoy.config.core.v3.SocketAddress", + "fields": [ + { + "name": "protocol", + "type": "Protocol", + "number": 1, + "label": "" + }, + { + "name": "address", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "resolver_name", + "type": "string", + "number": 5, + "label": "" + }, + { + "name": "ipv4_compat", + "type": "bool", + "number": 6, + "label": "" + }, + { + "name": "port_value", + "type": "uint32", + "number": 3, + "label": "" + }, + { + "name": "named_port", + "type": "string", + "number": 4, + "label": "" + } + ] + }, + { + "name": "envoy.config.core.v3.TcpKeepalive", + "fields": [ + { + "name": "keepalive_probes", + "type": "google.protobuf.UInt32Value", + "number": 1, + "label": "" + }, + { + "name": "keepalive_time", + "type": "google.protobuf.UInt32Value", + "number": 2, + "label": "" + }, + { + "name": "keepalive_interval", + "type": "google.protobuf.UInt32Value", + "number": 3, + "label": "" + } + ] + }, + { + "name": "envoy.config.core.v3.ExtraSourceAddress", + "fields": [ + { + "name": "address", + "type": "SocketAddress", + "number": 1, + "label": "" + }, + { + "name": "socket_options", + "type": "SocketOptionsOverride", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.config.core.v3.BindConfig", + "fields": [ + { + "name": "source_address", + "type": "SocketAddress", + "number": 1, + "label": "" + }, + { + "name": "freebind", + "type": "google.protobuf.BoolValue", + "number": 2, + "label": "" + }, + { + "name": "socket_options", + "type": "SocketOption", + "number": 3, + "label": "repeated" + }, + { + "name": "extra_source_addresses", + "type": "ExtraSourceAddress", + "number": 5, + "label": "repeated" + }, + { + "name": "additional_source_addresses", + "type": "SocketAddress", + "number": 4, + "label": "repeated" + }, + { + "name": "local_address_selector", + "type": "TypedExtensionConfig", + "number": 6, + "label": "" + } + ] + }, + { + "name": "envoy.config.core.v3.Address", + "fields": [ + { + "name": "socket_address", + "type": "SocketAddress", + "number": 1, + "label": "" + }, + { + "name": "pipe", + "type": "Pipe", + "number": 2, + "label": "" + }, + { + "name": "envoy_internal_address", + "type": "EnvoyInternalAddress", + "number": 3, + "label": "" + } + ] + }, + { + "name": "envoy.config.core.v3.CidrRange", + "fields": [ + { + "name": "address_prefix", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "prefix_len", + "type": "google.protobuf.UInt32Value", + "number": 2, + "label": "" + } + ] + } + ], + "enums": [ + { + "name": "envoy.config.core.v3.SocketAddress.Protocol", + "values": [ + { + "name": "TCP", + "number": 0 + }, + { + "name": "UDP", + "number": 1 + } + ] + } + ], + "services": [] + }, + { + "path": "envoy/config/core/v3/backoff.proto", + "package": "envoy.config.core.v3", + "application": false, + "syntax": "proto3", + "sha256": "2cce5fffc924e2dfe40507d4d08ef85531b4b7e9c2574c374da0b4219c0be7ca", + "imports": [ + "google/protobuf/duration.proto", + "udpa/annotations/status.proto", + "udpa/annotations/versioning.proto", + "validate/validate.proto" + ], + "messages": [ + { + "name": "envoy.config.core.v3.BackoffStrategy", + "fields": [ + { + "name": "base_interval", + "type": "google.protobuf.Duration", + "number": 1, + "label": "" + }, + { + "name": "max_interval", + "type": "google.protobuf.Duration", + "number": 2, + "label": "" + } + ] + } + ], + "enums": [], + "services": [] + }, + { + "path": "envoy/config/core/v3/base.proto", + "package": "envoy.config.core.v3", + "application": false, + "syntax": "proto3", + "sha256": "6bfbdbb92ce64120940a49c37a0efd086609d41eb65e9647650a9388223046d8", + "imports": [ + "envoy/config/core/v3/address.proto", + "envoy/config/core/v3/backoff.proto", + "envoy/config/core/v3/http_uri.proto", + "envoy/type/v3/percent.proto", + "envoy/type/v3/semantic_version.proto", + "google/protobuf/any.proto", + "google/protobuf/struct.proto", + "google/protobuf/wrappers.proto", + "xds/core/v3/context_params.proto", + "envoy/annotations/deprecation.proto", + "udpa/annotations/migrate.proto", + "udpa/annotations/status.proto", + "udpa/annotations/versioning.proto", + "validate/validate.proto" + ], + "messages": [ + { + "name": "envoy.config.core.v3.Locality", + "fields": [ + { + "name": "region", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "zone", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "sub_zone", + "type": "string", + "number": 3, + "label": "" + } + ] + }, + { + "name": "envoy.config.core.v3.BuildVersion", + "fields": [ + { + "name": "version", + "type": "type.v3.SemanticVersion", + "number": 1, + "label": "" + }, + { + "name": "metadata", + "type": "google.protobuf.Struct", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.config.core.v3.Extension", + "fields": [ + { + "name": "name", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "category", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "type_descriptor", + "type": "string", + "number": 3, + "label": "" + }, + { + "name": "version", + "type": "BuildVersion", + "number": 4, + "label": "" + }, + { + "name": "disabled", + "type": "bool", + "number": 5, + "label": "" + }, + { + "name": "type_urls", + "type": "string", + "number": 6, + "label": "repeated" + } + ] + }, + { + "name": "envoy.config.core.v3.Node", + "fields": [ + { + "name": "id", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "cluster", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "metadata", + "type": "google.protobuf.Struct", + "number": 3, + "label": "" + }, + { + "name": "dynamic_parameters", + "type": "map", + "number": 12, + "label": "" + }, + { + "name": "locality", + "type": "Locality", + "number": 4, + "label": "" + }, + { + "name": "user_agent_name", + "type": "string", + "number": 6, + "label": "" + }, + { + "name": "extensions", + "type": "Extension", + "number": 9, + "label": "repeated" + }, + { + "name": "client_features", + "type": "string", + "number": 10, + "label": "repeated" + }, + { + "name": "listening_addresses", + "type": "Address", + "number": 11, + "label": "repeated" + }, + { + "name": "user_agent_version", + "type": "string", + "number": 7, + "label": "" + }, + { + "name": "user_agent_build_version", + "type": "BuildVersion", + "number": 8, + "label": "" + } + ] + }, + { + "name": "envoy.config.core.v3.Metadata", + "fields": [ + { + "name": "filter_metadata", + "type": "map", + "number": 1, + "label": "" + }, + { + "name": "typed_filter_metadata", + "type": "map", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.config.core.v3.RuntimeUInt32", + "fields": [ + { + "name": "default_value", + "type": "uint32", + "number": 2, + "label": "" + }, + { + "name": "runtime_key", + "type": "string", + "number": 3, + "label": "" + } + ] + }, + { + "name": "envoy.config.core.v3.RuntimePercent", + "fields": [ + { + "name": "default_value", + "type": "type.v3.Percent", + "number": 1, + "label": "" + }, + { + "name": "runtime_key", + "type": "string", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.config.core.v3.RuntimeDouble", + "fields": [ + { + "name": "default_value", + "type": "double", + "number": 1, + "label": "" + }, + { + "name": "runtime_key", + "type": "string", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.config.core.v3.RuntimeFeatureFlag", + "fields": [ + { + "name": "default_value", + "type": "google.protobuf.BoolValue", + "number": 1, + "label": "" + }, + { + "name": "runtime_key", + "type": "string", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.config.core.v3.KeyValue", + "fields": [ + { + "name": "key", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "value", + "type": "bytes", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.config.core.v3.KeyValuePair", + "fields": [ + { + "name": "key", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "value", + "type": "google.protobuf.Value", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.config.core.v3.KeyValueAppend", + "fields": [ + { + "name": "record", + "type": "KeyValuePair", + "number": 3, + "label": "" + }, + { + "name": "entry", + "type": "KeyValue", + "number": 1, + "label": "" + }, + { + "name": "action", + "type": "KeyValueAppendAction", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.config.core.v3.KeyValueMutation", + "fields": [ + { + "name": "append", + "type": "KeyValueAppend", + "number": 1, + "label": "" + }, + { + "name": "remove", + "type": "string", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.config.core.v3.QueryParameter", + "fields": [ + { + "name": "key", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "value", + "type": "string", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.config.core.v3.HeaderValue", + "fields": [ + { + "name": "key", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "value", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "raw_value", + "type": "bytes", + "number": 3, + "label": "" + } + ] + }, + { + "name": "envoy.config.core.v3.HeaderValueOption", + "fields": [ + { + "name": "header", + "type": "HeaderValue", + "number": 1, + "label": "" + }, + { + "name": "append", + "type": "google.protobuf.BoolValue", + "number": 2, + "label": "" + }, + { + "name": "append_action", + "type": "HeaderAppendAction", + "number": 3, + "label": "" + }, + { + "name": "keep_empty_value", + "type": "bool", + "number": 4, + "label": "" + } + ] + }, + { + "name": "envoy.config.core.v3.HeaderMap", + "fields": [ + { + "name": "headers", + "type": "HeaderValue", + "number": 1, + "label": "repeated" + } + ] + }, + { + "name": "envoy.config.core.v3.WatchedDirectory", + "fields": [ + { + "name": "path", + "type": "string", + "number": 1, + "label": "" + } + ] + }, + { + "name": "envoy.config.core.v3.DataSource", + "fields": [ + { + "name": "watched_directory", + "type": "WatchedDirectory", + "number": 5, + "label": "" + }, + { + "name": "filename", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "inline_bytes", + "type": "bytes", + "number": 2, + "label": "" + }, + { + "name": "inline_string", + "type": "string", + "number": 3, + "label": "" + }, + { + "name": "environment_variable", + "type": "string", + "number": 4, + "label": "" + } + ] + }, + { + "name": "envoy.config.core.v3.RetryPolicy", + "fields": [ + { + "name": "retry_back_off", + "type": "BackoffStrategy", + "number": 1, + "label": "" + }, + { + "name": "num_retries", + "type": "google.protobuf.UInt32Value", + "number": 2, + "label": "" + }, + { + "name": "retry_on", + "type": "string", + "number": 3, + "label": "" + }, + { + "name": "retry_priority", + "type": "RetryPriority", + "number": 4, + "label": "" + }, + { + "name": "retry_host_predicate", + "type": "RetryHostPredicate", + "number": 5, + "label": "repeated" + }, + { + "name": "host_selection_retry_max_attempts", + "type": "int64", + "number": 6, + "label": "" + } + ] + }, + { + "name": "envoy.config.core.v3.RetryPolicy.RetryPriority", + "fields": [ + { + "name": "name", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "typed_config", + "type": "google.protobuf.Any", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.config.core.v3.RetryPolicy.RetryHostPredicate", + "fields": [ + { + "name": "name", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "typed_config", + "type": "google.protobuf.Any", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.config.core.v3.RemoteDataSource", + "fields": [ + { + "name": "http_uri", + "type": "HttpUri", + "number": 1, + "label": "" + }, + { + "name": "sha256", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "retry_policy", + "type": "RetryPolicy", + "number": 3, + "label": "" + } + ] + }, + { + "name": "envoy.config.core.v3.AsyncDataSource", + "fields": [ + { + "name": "local", + "type": "DataSource", + "number": 1, + "label": "" + }, + { + "name": "remote", + "type": "RemoteDataSource", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.config.core.v3.TransportSocket", + "fields": [ + { + "name": "name", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "typed_config", + "type": "google.protobuf.Any", + "number": 3, + "label": "" + } + ] + }, + { + "name": "envoy.config.core.v3.RuntimeFractionalPercent", + "fields": [ + { + "name": "default_value", + "type": "type.v3.FractionalPercent", + "number": 1, + "label": "" + }, + { + "name": "runtime_key", + "type": "string", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.config.core.v3.ControlPlane", + "fields": [ + { + "name": "identifier", + "type": "string", + "number": 1, + "label": "" + } + ] + } + ], + "enums": [ + { + "name": "envoy.config.core.v3.KeyValueAppend.KeyValueAppendAction", + "values": [ + { + "name": "APPEND_IF_EXISTS_OR_ADD", + "number": 0 + }, + { + "name": "ADD_IF_ABSENT", + "number": 1 + }, + { + "name": "OVERWRITE_IF_EXISTS_OR_ADD", + "number": 2 + }, + { + "name": "OVERWRITE_IF_EXISTS", + "number": 3 + } + ] + }, + { + "name": "envoy.config.core.v3.HeaderValueOption.HeaderAppendAction", + "values": [ + { + "name": "APPEND_IF_EXISTS_OR_ADD", + "number": 0 + }, + { + "name": "ADD_IF_ABSENT", + "number": 1 + }, + { + "name": "OVERWRITE_IF_EXISTS_OR_ADD", + "number": 2 + }, + { + "name": "OVERWRITE_IF_EXISTS", + "number": 3 + } + ] + }, + { + "name": "envoy.config.core.v3.RoutingPriority", + "values": [ + { + "name": "DEFAULT", + "number": 0 + }, + { + "name": "HIGH", + "number": 1 + } + ] + }, + { + "name": "envoy.config.core.v3.RequestMethod", + "values": [ + { + "name": "METHOD_UNSPECIFIED", + "number": 0 + }, + { + "name": "GET", + "number": 1 + }, + { + "name": "HEAD", + "number": 2 + }, + { + "name": "POST", + "number": 3 + }, + { + "name": "PUT", + "number": 4 + }, + { + "name": "DELETE", + "number": 5 + }, + { + "name": "CONNECT", + "number": 6 + }, + { + "name": "OPTIONS", + "number": 7 + }, + { + "name": "TRACE", + "number": 8 + }, + { + "name": "PATCH", + "number": 9 + } + ] + }, + { + "name": "envoy.config.core.v3.TrafficDirection", + "values": [ + { + "name": "UNSPECIFIED", + "number": 0 + }, + { + "name": "INBOUND", + "number": 1 + }, + { + "name": "OUTBOUND", + "number": 2 + } + ] + } + ], + "services": [] + }, + { + "path": "envoy/config/core/v3/config_source.proto", + "package": "envoy.config.core.v3", + "application": false, + "syntax": "proto3", + "sha256": "784991ea76abcefc81f6658c5561bf805607ae9ba6dafb8722b95ae681e85eb0", + "imports": [ + "envoy/config/core/v3/base.proto", + "envoy/config/core/v3/extension.proto", + "envoy/config/core/v3/grpc_service.proto", + "google/protobuf/any.proto", + "google/protobuf/duration.proto", + "google/protobuf/wrappers.proto", + "xds/core/v3/authority.proto", + "envoy/annotations/deprecation.proto", + "udpa/annotations/status.proto", + "udpa/annotations/versioning.proto", + "validate/validate.proto" + ], + "messages": [ + { + "name": "envoy.config.core.v3.ApiConfigSource", + "fields": [ + { + "name": "api_type", + "type": "ApiType", + "number": 1, + "label": "" + }, + { + "name": "transport_api_version", + "type": "ApiVersion", + "number": 8, + "label": "" + }, + { + "name": "cluster_names", + "type": "string", + "number": 2, + "label": "repeated" + }, + { + "name": "grpc_services", + "type": "GrpcService", + "number": 4, + "label": "repeated" + }, + { + "name": "refresh_delay", + "type": "google.protobuf.Duration", + "number": 3, + "label": "" + }, + { + "name": "request_timeout", + "type": "google.protobuf.Duration", + "number": 5, + "label": "" + }, + { + "name": "rate_limit_settings", + "type": "RateLimitSettings", + "number": 6, + "label": "" + }, + { + "name": "set_node_on_first_message_only", + "type": "bool", + "number": 7, + "label": "" + }, + { + "name": "config_validators", + "type": "TypedExtensionConfig", + "number": 9, + "label": "repeated" + } + ] + }, + { + "name": "envoy.config.core.v3.AggregatedConfigSource", + "fields": [] + }, + { + "name": "envoy.config.core.v3.SelfConfigSource", + "fields": [ + { + "name": "transport_api_version", + "type": "ApiVersion", + "number": 1, + "label": "" + } + ] + }, + { + "name": "envoy.config.core.v3.RateLimitSettings", + "fields": [ + { + "name": "max_tokens", + "type": "google.protobuf.UInt32Value", + "number": 1, + "label": "" + }, + { + "name": "fill_rate", + "type": "google.protobuf.DoubleValue", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.config.core.v3.PathConfigSource", + "fields": [ + { + "name": "path", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "watched_directory", + "type": "WatchedDirectory", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.config.core.v3.ConfigSource", + "fields": [ + { + "name": "authorities", + "type": "xds.core.v3.Authority", + "number": 7, + "label": "repeated" + }, + { + "name": "initial_fetch_timeout", + "type": "google.protobuf.Duration", + "number": 4, + "label": "" + }, + { + "name": "resource_api_version", + "type": "ApiVersion", + "number": 6, + "label": "" + }, + { + "name": "path", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "path_config_source", + "type": "PathConfigSource", + "number": 8, + "label": "" + }, + { + "name": "api_config_source", + "type": "ApiConfigSource", + "number": 2, + "label": "" + }, + { + "name": "ads", + "type": "AggregatedConfigSource", + "number": 3, + "label": "" + }, + { + "name": "self", + "type": "SelfConfigSource", + "number": 5, + "label": "" + } + ] + }, + { + "name": "envoy.config.core.v3.ExtensionConfigSource", + "fields": [ + { + "name": "config_source", + "type": "ConfigSource", + "number": 1, + "label": "" + }, + { + "name": "default_config", + "type": "google.protobuf.Any", + "number": 2, + "label": "" + }, + { + "name": "apply_default_config_without_warming", + "type": "bool", + "number": 3, + "label": "" + }, + { + "name": "type_urls", + "type": "string", + "number": 4, + "label": "repeated" + } + ] + } + ], + "enums": [ + { + "name": "envoy.config.core.v3.ApiConfigSource.ApiType", + "values": [ + { + "name": "DEPRECATED_AND_UNAVAILABLE_DO_NOT_USE", + "number": 0 + }, + { + "name": "REST", + "number": 1 + }, + { + "name": "GRPC", + "number": 2 + }, + { + "name": "DELTA_GRPC", + "number": 3 + }, + { + "name": "AGGREGATED_GRPC", + "number": 5 + }, + { + "name": "AGGREGATED_DELTA_GRPC", + "number": 6 + } + ] + }, + { + "name": "envoy.config.core.v3.ApiVersion", + "values": [ + { + "name": "AUTO", + "number": 0 + }, + { + "name": "V2", + "number": 1 + }, + { + "name": "V3", + "number": 2 + } + ] + } + ], + "services": [] + }, + { + "path": "envoy/config/core/v3/event_service_config.proto", + "package": "envoy.config.core.v3", + "application": false, + "syntax": "proto3", + "sha256": "f181957b42f6a8a940bc3b2ce772cbe3d8770a1f9bfc84db2abdfa47ed1c4876", + "imports": [ + "envoy/config/core/v3/grpc_service.proto", + "udpa/annotations/status.proto", + "udpa/annotations/versioning.proto", + "validate/validate.proto" + ], + "messages": [ + { + "name": "envoy.config.core.v3.EventServiceConfig", + "fields": [ + { + "name": "grpc_service", + "type": "GrpcService", + "number": 1, + "label": "" + } + ] + } + ], + "enums": [], + "services": [] + }, + { + "path": "envoy/config/core/v3/extension.proto", + "package": "envoy.config.core.v3", + "application": false, + "syntax": "proto3", + "sha256": "3d8629db825e34621c9c723ed23078d769e2597274846b28d80244a9f39163ce", + "imports": [ + "google/protobuf/any.proto", + "udpa/annotations/status.proto", + "validate/validate.proto" + ], + "messages": [ + { + "name": "envoy.config.core.v3.TypedExtensionConfig", + "fields": [ + { + "name": "name", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "typed_config", + "type": "google.protobuf.Any", + "number": 2, + "label": "" + } + ] + } + ], + "enums": [], + "services": [] + }, + { + "path": "envoy/config/core/v3/grpc_service.proto", + "package": "envoy.config.core.v3", + "application": false, + "syntax": "proto3", + "sha256": "d41b3bb73f00cbd96e82ebfe0a7e2ac43ab689d7b979a42b7d489b6481485953", + "imports": [ + "envoy/config/core/v3/base.proto", + "google/protobuf/any.proto", + "google/protobuf/duration.proto", + "google/protobuf/empty.proto", + "google/protobuf/struct.proto", + "google/protobuf/wrappers.proto", + "udpa/annotations/sensitive.proto", + "udpa/annotations/status.proto", + "udpa/annotations/versioning.proto", + "validate/validate.proto" + ], + "messages": [ + { + "name": "envoy.config.core.v3.GrpcService", + "fields": [ + { + "name": "timeout", + "type": "google.protobuf.Duration", + "number": 3, + "label": "" + }, + { + "name": "initial_metadata", + "type": "HeaderValue", + "number": 5, + "label": "repeated" + }, + { + "name": "retry_policy", + "type": "RetryPolicy", + "number": 6, + "label": "" + }, + { + "name": "envoy_grpc", + "type": "EnvoyGrpc", + "number": 1, + "label": "" + }, + { + "name": "google_grpc", + "type": "GoogleGrpc", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.config.core.v3.GrpcService.EnvoyGrpc", + "fields": [ + { + "name": "cluster_name", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "authority", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "retry_policy", + "type": "RetryPolicy", + "number": 3, + "label": "" + }, + { + "name": "max_receive_message_length", + "type": "google.protobuf.UInt32Value", + "number": 4, + "label": "" + }, + { + "name": "skip_envoy_headers", + "type": "bool", + "number": 5, + "label": "" + } + ] + }, + { + "name": "envoy.config.core.v3.GrpcService.GoogleGrpc", + "fields": [ + { + "name": "target_uri", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "channel_credentials", + "type": "ChannelCredentials", + "number": 2, + "label": "" + }, + { + "name": "call_credentials", + "type": "CallCredentials", + "number": 3, + "label": "repeated" + }, + { + "name": "stat_prefix", + "type": "string", + "number": 4, + "label": "" + }, + { + "name": "credentials_factory_name", + "type": "string", + "number": 5, + "label": "" + }, + { + "name": "config", + "type": "google.protobuf.Struct", + "number": 6, + "label": "" + }, + { + "name": "per_stream_buffer_limit_bytes", + "type": "google.protobuf.UInt32Value", + "number": 7, + "label": "" + }, + { + "name": "channel_args", + "type": "ChannelArgs", + "number": 8, + "label": "" + } + ] + }, + { + "name": "envoy.config.core.v3.GrpcService.GoogleGrpc.ChannelCredentials", + "fields": [ + { + "name": "ssl_credentials", + "type": "SslCredentials", + "number": 1, + "label": "" + }, + { + "name": "google_default", + "type": "google.protobuf.Empty", + "number": 2, + "label": "" + }, + { + "name": "local_credentials", + "type": "GoogleLocalCredentials", + "number": 3, + "label": "" + } + ] + }, + { + "name": "envoy.config.core.v3.GrpcService.GoogleGrpc.CallCredentials", + "fields": [ + { + "name": "access_token", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "google_compute_engine", + "type": "google.protobuf.Empty", + "number": 2, + "label": "" + }, + { + "name": "google_refresh_token", + "type": "string", + "number": 3, + "label": "" + }, + { + "name": "service_account_jwt_access", + "type": "ServiceAccountJWTAccessCredentials", + "number": 4, + "label": "" + }, + { + "name": "google_iam", + "type": "GoogleIAMCredentials", + "number": 5, + "label": "" + }, + { + "name": "from_plugin", + "type": "MetadataCredentialsFromPlugin", + "number": 6, + "label": "" + }, + { + "name": "sts_service", + "type": "StsService", + "number": 7, + "label": "" + } + ] + }, + { + "name": "envoy.config.core.v3.GrpcService.GoogleGrpc.CallCredentials.ServiceAccountJWTAccessCredentials", + "fields": [ + { + "name": "json_key", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "token_lifetime_seconds", + "type": "uint64", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.config.core.v3.GrpcService.GoogleGrpc.CallCredentials.GoogleIAMCredentials", + "fields": [ + { + "name": "authorization_token", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "authority_selector", + "type": "string", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.config.core.v3.GrpcService.GoogleGrpc.CallCredentials.MetadataCredentialsFromPlugin", + "fields": [ + { + "name": "name", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "typed_config", + "type": "google.protobuf.Any", + "number": 3, + "label": "" + } + ] + }, + { + "name": "envoy.config.core.v3.GrpcService.GoogleGrpc.CallCredentials.StsService", + "fields": [ + { + "name": "token_exchange_service_uri", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "resource", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "audience", + "type": "string", + "number": 3, + "label": "" + }, + { + "name": "scope", + "type": "string", + "number": 4, + "label": "" + }, + { + "name": "requested_token_type", + "type": "string", + "number": 5, + "label": "" + }, + { + "name": "subject_token_path", + "type": "string", + "number": 6, + "label": "" + }, + { + "name": "subject_token_type", + "type": "string", + "number": 7, + "label": "" + }, + { + "name": "actor_token_path", + "type": "string", + "number": 8, + "label": "" + }, + { + "name": "actor_token_type", + "type": "string", + "number": 9, + "label": "" + } + ] + }, + { + "name": "envoy.config.core.v3.GrpcService.GoogleGrpc.ChannelArgs", + "fields": [ + { + "name": "args", + "type": "map", + "number": 1, + "label": "" + } + ] + }, + { + "name": "envoy.config.core.v3.GrpcService.GoogleGrpc.ChannelArgs.Value", + "fields": [ + { + "name": "string_value", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "int_value", + "type": "int64", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.config.core.v3.GrpcService.GoogleGrpc.SslCredentials", + "fields": [ + { + "name": "root_certs", + "type": "DataSource", + "number": 1, + "label": "" + }, + { + "name": "private_key", + "type": "DataSource", + "number": 2, + "label": "" + }, + { + "name": "cert_chain", + "type": "DataSource", + "number": 3, + "label": "" + } + ] + }, + { + "name": "envoy.config.core.v3.GrpcService.GoogleGrpc.GoogleLocalCredentials", + "fields": [] + } + ], + "enums": [], + "services": [] + }, + { + "path": "envoy/config/core/v3/health_check.proto", + "package": "envoy.config.core.v3", + "application": false, + "syntax": "proto3", + "sha256": "3ad416a4a7a140746a64bb974893f8d216d538028d77f66e43b909a664c915f1", + "imports": [ + "envoy/config/core/v3/base.proto", + "envoy/config/core/v3/event_service_config.proto", + "envoy/config/core/v3/extension.proto", + "envoy/config/core/v3/proxy_protocol.proto", + "envoy/type/matcher/v3/string.proto", + "envoy/type/v3/http.proto", + "envoy/type/v3/range.proto", + "google/protobuf/any.proto", + "google/protobuf/duration.proto", + "google/protobuf/struct.proto", + "google/protobuf/wrappers.proto", + "envoy/annotations/deprecation.proto", + "udpa/annotations/status.proto", + "udpa/annotations/versioning.proto", + "validate/validate.proto" + ], + "messages": [ + { + "name": "envoy.config.core.v3.HealthStatusSet", + "fields": [ + { + "name": "statuses", + "type": "HealthStatus", + "number": 1, + "label": "repeated" + } + ] + }, + { + "name": "envoy.config.core.v3.HealthCheck", + "fields": [ + { + "name": "timeout", + "type": "google.protobuf.Duration", + "number": 1, + "label": "" + }, + { + "name": "interval", + "type": "google.protobuf.Duration", + "number": 2, + "label": "" + }, + { + "name": "initial_jitter", + "type": "google.protobuf.Duration", + "number": 20, + "label": "" + }, + { + "name": "interval_jitter", + "type": "google.protobuf.Duration", + "number": 3, + "label": "" + }, + { + "name": "interval_jitter_percent", + "type": "uint32", + "number": 18, + "label": "" + }, + { + "name": "unhealthy_threshold", + "type": "google.protobuf.UInt32Value", + "number": 4, + "label": "" + }, + { + "name": "healthy_threshold", + "type": "google.protobuf.UInt32Value", + "number": 5, + "label": "" + }, + { + "name": "alt_port", + "type": "google.protobuf.UInt32Value", + "number": 6, + "label": "" + }, + { + "name": "reuse_connection", + "type": "google.protobuf.BoolValue", + "number": 7, + "label": "" + }, + { + "name": "no_traffic_interval", + "type": "google.protobuf.Duration", + "number": 12, + "label": "" + }, + { + "name": "no_traffic_healthy_interval", + "type": "google.protobuf.Duration", + "number": 24, + "label": "" + }, + { + "name": "unhealthy_interval", + "type": "google.protobuf.Duration", + "number": 14, + "label": "" + }, + { + "name": "unhealthy_edge_interval", + "type": "google.protobuf.Duration", + "number": 15, + "label": "" + }, + { + "name": "healthy_edge_interval", + "type": "google.protobuf.Duration", + "number": 16, + "label": "" + }, + { + "name": "event_log_path", + "type": "string", + "number": 17, + "label": "" + }, + { + "name": "event_logger", + "type": "TypedExtensionConfig", + "number": 25, + "label": "repeated" + }, + { + "name": "event_service", + "type": "EventServiceConfig", + "number": 22, + "label": "" + }, + { + "name": "always_log_health_check_failures", + "type": "bool", + "number": 19, + "label": "" + }, + { + "name": "always_log_health_check_success", + "type": "bool", + "number": 26, + "label": "" + }, + { + "name": "tls_options", + "type": "TlsOptions", + "number": 21, + "label": "" + }, + { + "name": "transport_socket_match_criteria", + "type": "google.protobuf.Struct", + "number": 23, + "label": "" + }, + { + "name": "http_health_check", + "type": "HttpHealthCheck", + "number": 8, + "label": "" + }, + { + "name": "tcp_health_check", + "type": "TcpHealthCheck", + "number": 9, + "label": "" + }, + { + "name": "grpc_health_check", + "type": "GrpcHealthCheck", + "number": 11, + "label": "" + }, + { + "name": "custom_health_check", + "type": "CustomHealthCheck", + "number": 13, + "label": "" + } + ] + }, + { + "name": "envoy.config.core.v3.HealthCheck.TlsOptions", + "fields": [ + { + "name": "alpn_protocols", + "type": "string", + "number": 1, + "label": "repeated" + } + ] + }, + { + "name": "envoy.config.core.v3.HealthCheck.Payload", + "fields": [ + { + "name": "text", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "binary", + "type": "bytes", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.config.core.v3.HealthCheck.HttpHealthCheck", + "fields": [ + { + "name": "host", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "path", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "send", + "type": "Payload", + "number": 3, + "label": "" + }, + { + "name": "receive", + "type": "Payload", + "number": 4, + "label": "repeated" + }, + { + "name": "response_buffer_size", + "type": "google.protobuf.UInt64Value", + "number": 14, + "label": "" + }, + { + "name": "request_headers_to_add", + "type": "HeaderValueOption", + "number": 6, + "label": "repeated" + }, + { + "name": "request_headers_to_remove", + "type": "string", + "number": 8, + "label": "repeated" + }, + { + "name": "expected_statuses", + "type": "type.v3.Int64Range", + "number": 9, + "label": "repeated" + }, + { + "name": "retriable_statuses", + "type": "type.v3.Int64Range", + "number": 12, + "label": "repeated" + }, + { + "name": "codec_client_type", + "type": "type.v3.CodecClientType", + "number": 10, + "label": "" + }, + { + "name": "service_name_matcher", + "type": "type.matcher.v3.StringMatcher", + "number": 11, + "label": "" + }, + { + "name": "method", + "type": "RequestMethod", + "number": 13, + "label": "" + } + ] + }, + { + "name": "envoy.config.core.v3.HealthCheck.TcpHealthCheck", + "fields": [ + { + "name": "send", + "type": "Payload", + "number": 1, + "label": "" + }, + { + "name": "receive", + "type": "Payload", + "number": 2, + "label": "repeated" + }, + { + "name": "proxy_protocol_config", + "type": "ProxyProtocolConfig", + "number": 3, + "label": "" + } + ] + }, + { + "name": "envoy.config.core.v3.HealthCheck.RedisHealthCheck", + "fields": [ + { + "name": "key", + "type": "string", + "number": 1, + "label": "" + } + ] + }, + { + "name": "envoy.config.core.v3.HealthCheck.GrpcHealthCheck", + "fields": [ + { + "name": "service_name", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "authority", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "initial_metadata", + "type": "HeaderValueOption", + "number": 3, + "label": "repeated" + } + ] + }, + { + "name": "envoy.config.core.v3.HealthCheck.CustomHealthCheck", + "fields": [ + { + "name": "name", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "typed_config", + "type": "google.protobuf.Any", + "number": 3, + "label": "" + } + ] + } + ], + "enums": [ + { + "name": "envoy.config.core.v3.HealthStatus", + "values": [ + { + "name": "UNKNOWN", + "number": 0 + }, + { + "name": "HEALTHY", + "number": 1 + }, + { + "name": "UNHEALTHY", + "number": 2 + }, + { + "name": "DRAINING", + "number": 3 + }, + { + "name": "TIMEOUT", + "number": 4 + }, + { + "name": "DEGRADED", + "number": 5 + } + ] + } + ], + "services": [] + }, + { + "path": "envoy/config/core/v3/http_uri.proto", + "package": "envoy.config.core.v3", + "application": false, + "syntax": "proto3", + "sha256": "44f012718a0edd9b29bd17d9d480d9d8378f0c0cbc9f0969301430cc7672bbcc", + "imports": [ + "google/protobuf/duration.proto", + "udpa/annotations/status.proto", + "udpa/annotations/versioning.proto", + "validate/validate.proto" + ], + "messages": [ + { + "name": "envoy.config.core.v3.HttpUri", + "fields": [ + { + "name": "uri", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "timeout", + "type": "google.protobuf.Duration", + "number": 3, + "label": "" + }, + { + "name": "cluster", + "type": "string", + "number": 2, + "label": "" + } + ] + } + ], + "enums": [], + "services": [] + }, + { + "path": "envoy/config/core/v3/protocol.proto", + "package": "envoy.config.core.v3", + "application": false, + "syntax": "proto3", + "sha256": "ff629052d94c980d436d5088582fff22526b781a65a993186c6d517fb295d3f1", + "imports": [ + "envoy/config/core/v3/extension.proto", + "envoy/type/v3/percent.proto", + "google/protobuf/duration.proto", + "google/protobuf/wrappers.proto", + "xds/annotations/v3/status.proto", + "envoy/annotations/deprecation.proto", + "udpa/annotations/status.proto", + "udpa/annotations/versioning.proto", + "validate/validate.proto" + ], + "messages": [ + { + "name": "envoy.config.core.v3.TcpProtocolOptions", + "fields": [] + }, + { + "name": "envoy.config.core.v3.QuicKeepAliveSettings", + "fields": [ + { + "name": "max_interval", + "type": "google.protobuf.Duration", + "number": 1, + "label": "" + }, + { + "name": "initial_interval", + "type": "google.protobuf.Duration", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.config.core.v3.QuicProtocolOptions", + "fields": [ + { + "name": "max_concurrent_streams", + "type": "google.protobuf.UInt32Value", + "number": 1, + "label": "" + }, + { + "name": "initial_stream_window_size", + "type": "google.protobuf.UInt32Value", + "number": 2, + "label": "" + }, + { + "name": "initial_connection_window_size", + "type": "google.protobuf.UInt32Value", + "number": 3, + "label": "" + }, + { + "name": "num_timeouts_to_trigger_port_migration", + "type": "google.protobuf.UInt32Value", + "number": 4, + "label": "" + }, + { + "name": "connection_keepalive", + "type": "QuicKeepAliveSettings", + "number": 5, + "label": "" + }, + { + "name": "connection_options", + "type": "string", + "number": 6, + "label": "" + }, + { + "name": "client_connection_options", + "type": "string", + "number": 7, + "label": "" + }, + { + "name": "idle_network_timeout", + "type": "google.protobuf.Duration", + "number": 8, + "label": "" + }, + { + "name": "max_packet_length", + "type": "google.protobuf.UInt64Value", + "number": 9, + "label": "" + } + ] + }, + { + "name": "envoy.config.core.v3.UpstreamHttpProtocolOptions", + "fields": [ + { + "name": "auto_sni", + "type": "bool", + "number": 1, + "label": "" + }, + { + "name": "auto_san_validation", + "type": "bool", + "number": 2, + "label": "" + }, + { + "name": "override_auto_sni_header", + "type": "string", + "number": 3, + "label": "" + } + ] + }, + { + "name": "envoy.config.core.v3.AlternateProtocolsCacheOptions", + "fields": [ + { + "name": "name", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "max_entries", + "type": "google.protobuf.UInt32Value", + "number": 2, + "label": "" + }, + { + "name": "key_value_store_config", + "type": "TypedExtensionConfig", + "number": 3, + "label": "" + }, + { + "name": "prepopulated_entries", + "type": "AlternateProtocolsCacheEntry", + "number": 4, + "label": "repeated" + }, + { + "name": "canonical_suffixes", + "type": "string", + "number": 5, + "label": "repeated" + } + ] + }, + { + "name": "envoy.config.core.v3.AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry", + "fields": [ + { + "name": "hostname", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "port", + "type": "uint32", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.config.core.v3.HttpProtocolOptions", + "fields": [ + { + "name": "idle_timeout", + "type": "google.protobuf.Duration", + "number": 1, + "label": "" + }, + { + "name": "max_connection_duration", + "type": "google.protobuf.Duration", + "number": 3, + "label": "" + }, + { + "name": "max_headers_count", + "type": "google.protobuf.UInt32Value", + "number": 2, + "label": "" + }, + { + "name": "max_response_headers_kb", + "type": "google.protobuf.UInt32Value", + "number": 7, + "label": "" + }, + { + "name": "max_stream_duration", + "type": "google.protobuf.Duration", + "number": 4, + "label": "" + }, + { + "name": "headers_with_underscores_action", + "type": "HeadersWithUnderscoresAction", + "number": 5, + "label": "" + }, + { + "name": "max_requests_per_connection", + "type": "google.protobuf.UInt32Value", + "number": 6, + "label": "" + } + ] + }, + { + "name": "envoy.config.core.v3.Http1ProtocolOptions", + "fields": [ + { + "name": "allow_absolute_url", + "type": "google.protobuf.BoolValue", + "number": 1, + "label": "" + }, + { + "name": "accept_http_10", + "type": "bool", + "number": 2, + "label": "" + }, + { + "name": "default_host_for_http_10", + "type": "string", + "number": 3, + "label": "" + }, + { + "name": "header_key_format", + "type": "HeaderKeyFormat", + "number": 4, + "label": "" + }, + { + "name": "enable_trailers", + "type": "bool", + "number": 5, + "label": "" + }, + { + "name": "allow_chunked_length", + "type": "bool", + "number": 6, + "label": "" + }, + { + "name": "override_stream_error_on_invalid_http_message", + "type": "google.protobuf.BoolValue", + "number": 7, + "label": "" + }, + { + "name": "send_fully_qualified_url", + "type": "bool", + "number": 8, + "label": "" + }, + { + "name": "use_balsa_parser", + "type": "google.protobuf.BoolValue", + "number": 9, + "label": "" + }, + { + "name": "allow_custom_methods", + "type": "bool", + "number": 10, + "label": "" + } + ] + }, + { + "name": "envoy.config.core.v3.Http1ProtocolOptions.HeaderKeyFormat", + "fields": [ + { + "name": "proper_case_words", + "type": "ProperCaseWords", + "number": 1, + "label": "" + }, + { + "name": "stateful_formatter", + "type": "TypedExtensionConfig", + "number": 8, + "label": "" + } + ] + }, + { + "name": "envoy.config.core.v3.Http1ProtocolOptions.HeaderKeyFormat.ProperCaseWords", + "fields": [] + }, + { + "name": "envoy.config.core.v3.KeepaliveSettings", + "fields": [ + { + "name": "interval", + "type": "google.protobuf.Duration", + "number": 1, + "label": "" + }, + { + "name": "timeout", + "type": "google.protobuf.Duration", + "number": 2, + "label": "" + }, + { + "name": "interval_jitter", + "type": "type.v3.Percent", + "number": 3, + "label": "" + }, + { + "name": "connection_idle_interval", + "type": "google.protobuf.Duration", + "number": 4, + "label": "" + } + ] + }, + { + "name": "envoy.config.core.v3.Http2ProtocolOptions", + "fields": [ + { + "name": "hpack_table_size", + "type": "google.protobuf.UInt32Value", + "number": 1, + "label": "" + }, + { + "name": "max_concurrent_streams", + "type": "google.protobuf.UInt32Value", + "number": 2, + "label": "" + }, + { + "name": "initial_stream_window_size", + "type": "google.protobuf.UInt32Value", + "number": 3, + "label": "" + }, + { + "name": "initial_connection_window_size", + "type": "google.protobuf.UInt32Value", + "number": 4, + "label": "" + }, + { + "name": "allow_connect", + "type": "bool", + "number": 5, + "label": "" + }, + { + "name": "allow_metadata", + "type": "bool", + "number": 6, + "label": "" + }, + { + "name": "max_outbound_frames", + "type": "google.protobuf.UInt32Value", + "number": 7, + "label": "" + }, + { + "name": "max_outbound_control_frames", + "type": "google.protobuf.UInt32Value", + "number": 8, + "label": "" + }, + { + "name": "max_consecutive_inbound_frames_with_empty_payload", + "type": "google.protobuf.UInt32Value", + "number": 9, + "label": "" + }, + { + "name": "max_inbound_priority_frames_per_stream", + "type": "google.protobuf.UInt32Value", + "number": 10, + "label": "" + }, + { + "name": "max_inbound_window_update_frames_per_data_frame_sent", + "type": "google.protobuf.UInt32Value", + "number": 11, + "label": "" + }, + { + "name": "stream_error_on_invalid_http_messaging", + "type": "bool", + "number": 12, + "label": "" + }, + { + "name": "override_stream_error_on_invalid_http_message", + "type": "google.protobuf.BoolValue", + "number": 14, + "label": "" + }, + { + "name": "custom_settings_parameters", + "type": "SettingsParameter", + "number": 13, + "label": "repeated" + }, + { + "name": "connection_keepalive", + "type": "KeepaliveSettings", + "number": 15, + "label": "" + }, + { + "name": "use_oghttp2_codec", + "type": "google.protobuf.BoolValue", + "number": 16, + "label": "" + }, + { + "name": "max_metadata_size", + "type": "google.protobuf.UInt64Value", + "number": 17, + "label": "" + } + ] + }, + { + "name": "envoy.config.core.v3.Http2ProtocolOptions.SettingsParameter", + "fields": [ + { + "name": "identifier", + "type": "google.protobuf.UInt32Value", + "number": 1, + "label": "" + }, + { + "name": "value", + "type": "google.protobuf.UInt32Value", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.config.core.v3.GrpcProtocolOptions", + "fields": [ + { + "name": "http2_protocol_options", + "type": "Http2ProtocolOptions", + "number": 1, + "label": "" + } + ] + }, + { + "name": "envoy.config.core.v3.Http3ProtocolOptions", + "fields": [ + { + "name": "quic_protocol_options", + "type": "QuicProtocolOptions", + "number": 1, + "label": "" + }, + { + "name": "override_stream_error_on_invalid_http_message", + "type": "google.protobuf.BoolValue", + "number": 2, + "label": "" + }, + { + "name": "allow_extended_connect", + "type": "bool", + "number": 5, + "label": "" + }, + { + "name": "allow_metadata", + "type": "bool", + "number": 6, + "label": "" + } + ] + }, + { + "name": "envoy.config.core.v3.SchemeHeaderTransformation", + "fields": [ + { + "name": "match_upstream", + "type": "bool", + "number": 2, + "label": "" + }, + { + "name": "scheme_to_overwrite", + "type": "string", + "number": 1, + "label": "" + } + ] + } + ], + "enums": [ + { + "name": "envoy.config.core.v3.HttpProtocolOptions.HeadersWithUnderscoresAction", + "values": [ + { + "name": "ALLOW", + "number": 0 + }, + { + "name": "REJECT_REQUEST", + "number": 1 + }, + { + "name": "DROP_HEADER", + "number": 2 + } + ] + } + ], + "services": [] + }, + { + "path": "envoy/config/core/v3/proxy_protocol.proto", + "package": "envoy.config.core.v3", + "application": false, + "syntax": "proto3", + "sha256": "b883c916e011e81919f6bce00b459d0b26e678a8b1e9625b60ce45a04e3c6447", + "imports": [ + "udpa/annotations/status.proto", + "validate/validate.proto" + ], + "messages": [ + { + "name": "envoy.config.core.v3.ProxyProtocolPassThroughTLVs", + "fields": [ + { + "name": "match_type", + "type": "PassTLVsMatchType", + "number": 1, + "label": "" + }, + { + "name": "tlv_type", + "type": "uint32", + "number": 2, + "label": "repeated" + } + ] + }, + { + "name": "envoy.config.core.v3.ProxyProtocolConfig", + "fields": [ + { + "name": "version", + "type": "Version", + "number": 1, + "label": "" + }, + { + "name": "pass_through_tlvs", + "type": "ProxyProtocolPassThroughTLVs", + "number": 2, + "label": "" + } + ] + } + ], + "enums": [ + { + "name": "envoy.config.core.v3.ProxyProtocolPassThroughTLVs.PassTLVsMatchType", + "values": [ + { + "name": "INCLUDE_ALL", + "number": 0 + }, + { + "name": "INCLUDE", + "number": 1 + } + ] + }, + { + "name": "envoy.config.core.v3.ProxyProtocolConfig.Version", + "values": [ + { + "name": "V1", + "number": 0 + }, + { + "name": "V2", + "number": 1 + } + ] + } + ], + "services": [] + }, + { + "path": "envoy/config/core/v3/resolver.proto", + "package": "envoy.config.core.v3", + "application": false, + "syntax": "proto3", + "sha256": "43b4ace8bdbf94de9a56b6e1358e6ba0d72f597db63a70d7c29437d79f00da6f", + "imports": [ + "envoy/config/core/v3/address.proto", + "udpa/annotations/status.proto", + "validate/validate.proto" + ], + "messages": [ + { + "name": "envoy.config.core.v3.DnsResolverOptions", + "fields": [ + { + "name": "use_tcp_for_dns_lookups", + "type": "bool", + "number": 1, + "label": "" + }, + { + "name": "no_default_search_domain", + "type": "bool", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.config.core.v3.DnsResolutionConfig", + "fields": [ + { + "name": "resolvers", + "type": "Address", + "number": 1, + "label": "repeated" + }, + { + "name": "dns_resolver_options", + "type": "DnsResolverOptions", + "number": 2, + "label": "" + } + ] + } + ], + "enums": [], + "services": [] + }, + { + "path": "envoy/config/core/v3/socket_cmsg_headers.proto", + "package": "envoy.config.core.v3", + "application": false, + "syntax": "proto3", + "sha256": "ccdcf72512e3b7d8baa95b176aa53973f3e14baf4adffa37fbdc5ea945ff4efd", + "imports": [ + "google/protobuf/wrappers.proto", + "udpa/annotations/status.proto" + ], + "messages": [ + { + "name": "envoy.config.core.v3.SocketCmsgHeaders", + "fields": [ + { + "name": "level", + "type": "google.protobuf.UInt32Value", + "number": 1, + "label": "" + }, + { + "name": "type", + "type": "google.protobuf.UInt32Value", + "number": 2, + "label": "" + }, + { + "name": "expected_size", + "type": "uint32", + "number": 3, + "label": "" + } + ] + } + ], + "enums": [], + "services": [] + }, + { + "path": "envoy/config/core/v3/socket_option.proto", + "package": "envoy.config.core.v3", + "application": false, + "syntax": "proto3", + "sha256": "44302f62483b60d3c9acff743325dad60749e50dc55e6b9daafa5fd316420a9b", + "imports": [ + "udpa/annotations/status.proto", + "udpa/annotations/versioning.proto", + "validate/validate.proto" + ], + "messages": [ + { + "name": "envoy.config.core.v3.SocketOption", + "fields": [ + { + "name": "description", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "level", + "type": "int64", + "number": 2, + "label": "" + }, + { + "name": "name", + "type": "int64", + "number": 3, + "label": "" + }, + { + "name": "state", + "type": "SocketState", + "number": 6, + "label": "" + }, + { + "name": "type", + "type": "SocketType", + "number": 7, + "label": "" + }, + { + "name": "int_value", + "type": "int64", + "number": 4, + "label": "" + }, + { + "name": "buf_value", + "type": "bytes", + "number": 5, + "label": "" + } + ] + }, + { + "name": "envoy.config.core.v3.SocketOption.SocketType", + "fields": [ + { + "name": "stream", + "type": "Stream", + "number": 1, + "label": "" + }, + { + "name": "datagram", + "type": "Datagram", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.config.core.v3.SocketOption.SocketType.Stream", + "fields": [] + }, + { + "name": "envoy.config.core.v3.SocketOption.SocketType.Datagram", + "fields": [] + }, + { + "name": "envoy.config.core.v3.SocketOptionsOverride", + "fields": [ + { + "name": "socket_options", + "type": "SocketOption", + "number": 1, + "label": "repeated" + } + ] + } + ], + "enums": [ + { + "name": "envoy.config.core.v3.SocketOption.SocketState", + "values": [ + { + "name": "STATE_PREBIND", + "number": 0 + }, + { + "name": "STATE_BOUND", + "number": 1 + }, + { + "name": "STATE_LISTENING", + "number": 2 + } + ] + } + ], + "services": [] + }, + { + "path": "envoy/config/core/v3/substitution_format_string.proto", + "package": "envoy.config.core.v3", + "application": false, + "syntax": "proto3", + "sha256": "cef3532eb58ee3943381ffb6d383033dfd5fed6ca30eaaf242261acb9253063c", + "imports": [ + "envoy/config/core/v3/base.proto", + "envoy/config/core/v3/extension.proto", + "google/protobuf/struct.proto", + "envoy/annotations/deprecation.proto", + "udpa/annotations/status.proto", + "validate/validate.proto" + ], + "messages": [ + { + "name": "envoy.config.core.v3.JsonFormatOptions", + "fields": [ + { + "name": "sort_properties", + "type": "bool", + "number": 1, + "label": "" + } + ] + }, + { + "name": "envoy.config.core.v3.SubstitutionFormatString", + "fields": [ + { + "name": "omit_empty_values", + "type": "bool", + "number": 3, + "label": "" + }, + { + "name": "content_type", + "type": "string", + "number": 4, + "label": "" + }, + { + "name": "formatters", + "type": "TypedExtensionConfig", + "number": 6, + "label": "repeated" + }, + { + "name": "json_format_options", + "type": "JsonFormatOptions", + "number": 7, + "label": "" + }, + { + "name": "text_format", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "json_format", + "type": "google.protobuf.Struct", + "number": 2, + "label": "" + }, + { + "name": "text_format_source", + "type": "DataSource", + "number": 5, + "label": "" + } + ] + } + ], + "enums": [], + "services": [] + }, + { + "path": "envoy/config/core/v3/udp_socket_config.proto", + "package": "envoy.config.core.v3", + "application": false, + "syntax": "proto3", + "sha256": "686de8b62d14e0e55f21227a9bf6e87520dd422128e0902dc8ddacb40628a7d7", + "imports": [ + "google/protobuf/wrappers.proto", + "udpa/annotations/status.proto", + "validate/validate.proto" + ], + "messages": [ + { + "name": "envoy.config.core.v3.UdpSocketConfig", + "fields": [ + { + "name": "max_rx_datagram_size", + "type": "google.protobuf.UInt64Value", + "number": 1, + "label": "" + }, + { + "name": "prefer_gro", + "type": "google.protobuf.BoolValue", + "number": 2, + "label": "" + } + ] + } + ], + "enums": [], + "services": [] + }, + { + "path": "envoy/config/endpoint/v3/endpoint.proto", + "package": "envoy.config.endpoint.v3", + "application": false, + "syntax": "proto3", + "sha256": "55627a7ab66c85e9d3eae03f8947dd36bf3e9d1e6f220695183bd5742af40c74", + "imports": [ + "envoy/config/endpoint/v3/endpoint_components.proto", + "envoy/type/v3/percent.proto", + "google/protobuf/duration.proto", + "google/protobuf/wrappers.proto", + "udpa/annotations/status.proto", + "udpa/annotations/versioning.proto", + "validate/validate.proto" + ], + "messages": [ + { + "name": "envoy.config.endpoint.v3.ClusterLoadAssignment", + "fields": [ + { + "name": "cluster_name", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "endpoints", + "type": "LocalityLbEndpoints", + "number": 2, + "label": "repeated" + }, + { + "name": "named_endpoints", + "type": "map", + "number": 5, + "label": "" + }, + { + "name": "policy", + "type": "Policy", + "number": 4, + "label": "" + } + ] + }, + { + "name": "envoy.config.endpoint.v3.ClusterLoadAssignment.Policy", + "fields": [ + { + "name": "drop_overloads", + "type": "DropOverload", + "number": 2, + "label": "repeated" + }, + { + "name": "overprovisioning_factor", + "type": "google.protobuf.UInt32Value", + "number": 3, + "label": "" + }, + { + "name": "endpoint_stale_after", + "type": "google.protobuf.Duration", + "number": 4, + "label": "" + }, + { + "name": "weighted_priority_health", + "type": "bool", + "number": 6, + "label": "" + } + ] + }, + { + "name": "envoy.config.endpoint.v3.ClusterLoadAssignment.Policy.DropOverload", + "fields": [ + { + "name": "category", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "drop_percentage", + "type": "type.v3.FractionalPercent", + "number": 2, + "label": "" + } + ] + } + ], + "enums": [], + "services": [] + }, + { + "path": "envoy/config/endpoint/v3/endpoint_components.proto", + "package": "envoy.config.endpoint.v3", + "application": false, + "syntax": "proto3", + "sha256": "2c77bc7f3b14b60aee233420757314e485ea46adcb4614bf21385caf77d4ef30", + "imports": [ + "envoy/config/core/v3/address.proto", + "envoy/config/core/v3/base.proto", + "envoy/config/core/v3/config_source.proto", + "envoy/config/core/v3/health_check.proto", + "google/protobuf/wrappers.proto", + "udpa/annotations/status.proto", + "udpa/annotations/versioning.proto", + "validate/validate.proto" + ], + "messages": [ + { + "name": "envoy.config.endpoint.v3.Endpoint", + "fields": [ + { + "name": "address", + "type": "core.v3.Address", + "number": 1, + "label": "" + }, + { + "name": "health_check_config", + "type": "HealthCheckConfig", + "number": 2, + "label": "" + }, + { + "name": "hostname", + "type": "string", + "number": 3, + "label": "" + }, + { + "name": "additional_addresses", + "type": "AdditionalAddress", + "number": 4, + "label": "repeated" + } + ] + }, + { + "name": "envoy.config.endpoint.v3.Endpoint.HealthCheckConfig", + "fields": [ + { + "name": "port_value", + "type": "uint32", + "number": 1, + "label": "" + }, + { + "name": "hostname", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "address", + "type": "core.v3.Address", + "number": 3, + "label": "" + }, + { + "name": "disable_active_health_check", + "type": "bool", + "number": 4, + "label": "" + } + ] + }, + { + "name": "envoy.config.endpoint.v3.Endpoint.AdditionalAddress", + "fields": [ + { + "name": "address", + "type": "core.v3.Address", + "number": 1, + "label": "" + } + ] + }, + { + "name": "envoy.config.endpoint.v3.LbEndpoint", + "fields": [ + { + "name": "health_status", + "type": "core.v3.HealthStatus", + "number": 2, + "label": "" + }, + { + "name": "metadata", + "type": "core.v3.Metadata", + "number": 3, + "label": "" + }, + { + "name": "load_balancing_weight", + "type": "google.protobuf.UInt32Value", + "number": 4, + "label": "" + }, + { + "name": "endpoint", + "type": "Endpoint", + "number": 1, + "label": "" + }, + { + "name": "endpoint_name", + "type": "string", + "number": 5, + "label": "" + } + ] + }, + { + "name": "envoy.config.endpoint.v3.LedsClusterLocalityConfig", + "fields": [ + { + "name": "leds_config", + "type": "core.v3.ConfigSource", + "number": 1, + "label": "" + }, + { + "name": "leds_collection_name", + "type": "string", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.config.endpoint.v3.LocalityLbEndpoints", + "fields": [ + { + "name": "locality", + "type": "core.v3.Locality", + "number": 1, + "label": "" + }, + { + "name": "metadata", + "type": "core.v3.Metadata", + "number": 9, + "label": "" + }, + { + "name": "lb_endpoints", + "type": "LbEndpoint", + "number": 2, + "label": "repeated" + }, + { + "name": "load_balancing_weight", + "type": "google.protobuf.UInt32Value", + "number": 3, + "label": "" + }, + { + "name": "priority", + "type": "uint32", + "number": 5, + "label": "" + }, + { + "name": "proximity", + "type": "google.protobuf.UInt32Value", + "number": 6, + "label": "" + }, + { + "name": "load_balancer_endpoints", + "type": "LbEndpointList", + "number": 7, + "label": "" + }, + { + "name": "leds_cluster_locality_config", + "type": "LedsClusterLocalityConfig", + "number": 8, + "label": "" + } + ] + }, + { + "name": "envoy.config.endpoint.v3.LocalityLbEndpoints.LbEndpointList", + "fields": [ + { + "name": "lb_endpoints", + "type": "LbEndpoint", + "number": 1, + "label": "repeated" + } + ] + } + ], + "enums": [], + "services": [] + }, + { + "path": "envoy/config/endpoint/v3/load_report.proto", + "package": "envoy.config.endpoint.v3", + "application": false, + "syntax": "proto3", + "sha256": "a7b81cd69f50b3c4cbc3c5ffd4a36994669a0b650dabf2636967d75cdc8eac65", + "imports": [ + "envoy/config/core/v3/address.proto", + "envoy/config/core/v3/base.proto", + "google/protobuf/duration.proto", + "google/protobuf/struct.proto", + "xds/annotations/v3/status.proto", + "udpa/annotations/status.proto", + "udpa/annotations/versioning.proto", + "validate/validate.proto" + ], + "messages": [ + { + "name": "envoy.config.endpoint.v3.UpstreamLocalityStats", + "fields": [ + { + "name": "locality", + "type": "core.v3.Locality", + "number": 1, + "label": "" + }, + { + "name": "total_successful_requests", + "type": "uint64", + "number": 2, + "label": "" + }, + { + "name": "total_requests_in_progress", + "type": "uint64", + "number": 3, + "label": "" + }, + { + "name": "total_error_requests", + "type": "uint64", + "number": 4, + "label": "" + }, + { + "name": "total_issued_requests", + "type": "uint64", + "number": 8, + "label": "" + }, + { + "name": "total_active_connections", + "type": "uint64", + "number": 9, + "label": "" + }, + { + "name": "total_new_connections", + "type": "uint64", + "number": 10, + "label": "" + }, + { + "name": "total_fail_connections", + "type": "uint64", + "number": 11, + "label": "" + }, + { + "name": "cpu_utilization", + "type": "UnnamedEndpointLoadMetricStats", + "number": 12, + "label": "" + }, + { + "name": "mem_utilization", + "type": "UnnamedEndpointLoadMetricStats", + "number": 13, + "label": "" + }, + { + "name": "application_utilization", + "type": "UnnamedEndpointLoadMetricStats", + "number": 14, + "label": "" + }, + { + "name": "load_metric_stats", + "type": "EndpointLoadMetricStats", + "number": 5, + "label": "repeated" + }, + { + "name": "upstream_endpoint_stats", + "type": "UpstreamEndpointStats", + "number": 7, + "label": "repeated" + }, + { + "name": "priority", + "type": "uint32", + "number": 6, + "label": "" + } + ] + }, + { + "name": "envoy.config.endpoint.v3.UpstreamEndpointStats", + "fields": [ + { + "name": "address", + "type": "core.v3.Address", + "number": 1, + "label": "" + }, + { + "name": "metadata", + "type": "google.protobuf.Struct", + "number": 6, + "label": "" + }, + { + "name": "total_successful_requests", + "type": "uint64", + "number": 2, + "label": "" + }, + { + "name": "total_requests_in_progress", + "type": "uint64", + "number": 3, + "label": "" + }, + { + "name": "total_error_requests", + "type": "uint64", + "number": 4, + "label": "" + }, + { + "name": "total_issued_requests", + "type": "uint64", + "number": 7, + "label": "" + }, + { + "name": "load_metric_stats", + "type": "EndpointLoadMetricStats", + "number": 5, + "label": "repeated" + } + ] + }, + { + "name": "envoy.config.endpoint.v3.EndpointLoadMetricStats", + "fields": [ + { + "name": "metric_name", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "num_requests_finished_with_metric", + "type": "uint64", + "number": 2, + "label": "" + }, + { + "name": "total_metric_value", + "type": "double", + "number": 3, + "label": "" + } + ] + }, + { + "name": "envoy.config.endpoint.v3.UnnamedEndpointLoadMetricStats", + "fields": [ + { + "name": "num_requests_finished_with_metric", + "type": "uint64", + "number": 1, + "label": "" + }, + { + "name": "total_metric_value", + "type": "double", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.config.endpoint.v3.ClusterStats", + "fields": [ + { + "name": "cluster_name", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "cluster_service_name", + "type": "string", + "number": 6, + "label": "" + }, + { + "name": "upstream_locality_stats", + "type": "UpstreamLocalityStats", + "number": 2, + "label": "repeated" + }, + { + "name": "total_dropped_requests", + "type": "uint64", + "number": 3, + "label": "" + }, + { + "name": "dropped_requests", + "type": "DroppedRequests", + "number": 5, + "label": "repeated" + }, + { + "name": "load_report_interval", + "type": "google.protobuf.Duration", + "number": 4, + "label": "" + } + ] + }, + { + "name": "envoy.config.endpoint.v3.ClusterStats.DroppedRequests", + "fields": [ + { + "name": "category", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "dropped_count", + "type": "uint64", + "number": 2, + "label": "" + } + ] + } + ], + "enums": [], + "services": [] + }, + { + "path": "envoy/config/listener/v3/api_listener.proto", + "package": "envoy.config.listener.v3", + "application": false, + "syntax": "proto3", + "sha256": "681404ff9a49a1778cf802abd85cc1506fe3698fe950b868d08dfb72443c81a1", + "imports": [ + "google/protobuf/any.proto", + "udpa/annotations/status.proto", + "udpa/annotations/versioning.proto" + ], + "messages": [ + { + "name": "envoy.config.listener.v3.ApiListener", + "fields": [ + { + "name": "api_listener", + "type": "google.protobuf.Any", + "number": 1, + "label": "" + } + ] + } + ], + "enums": [], + "services": [] + }, + { + "path": "envoy/config/listener/v3/listener.proto", + "package": "envoy.config.listener.v3", + "application": false, + "syntax": "proto3", + "sha256": "bbe2447087e82432cb37ddff1c1960d8209d7245831ccec4d992acfa562d5f4c", + "imports": [ + "envoy/config/accesslog/v3/accesslog.proto", + "envoy/config/core/v3/address.proto", + "envoy/config/core/v3/base.proto", + "envoy/config/core/v3/extension.proto", + "envoy/config/core/v3/socket_option.proto", + "envoy/config/listener/v3/api_listener.proto", + "envoy/config/listener/v3/listener_components.proto", + "envoy/config/listener/v3/udp_listener_config.proto", + "google/protobuf/duration.proto", + "google/protobuf/wrappers.proto", + "xds/annotations/v3/status.proto", + "xds/core/v3/collection_entry.proto", + "xds/type/matcher/v3/matcher.proto", + "envoy/annotations/deprecation.proto", + "udpa/annotations/security.proto", + "udpa/annotations/status.proto", + "udpa/annotations/versioning.proto", + "validate/validate.proto" + ], + "messages": [ + { + "name": "envoy.config.listener.v3.AdditionalAddress", + "fields": [ + { + "name": "address", + "type": "core.v3.Address", + "number": 1, + "label": "" + }, + { + "name": "socket_options", + "type": "core.v3.SocketOptionsOverride", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.config.listener.v3.ListenerCollection", + "fields": [ + { + "name": "entries", + "type": "xds.core.v3.CollectionEntry", + "number": 1, + "label": "repeated" + } + ] + }, + { + "name": "envoy.config.listener.v3.Listener", + "fields": [ + { + "name": "name", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "address", + "type": "core.v3.Address", + "number": 2, + "label": "" + }, + { + "name": "additional_addresses", + "type": "AdditionalAddress", + "number": 33, + "label": "repeated" + }, + { + "name": "stat_prefix", + "type": "string", + "number": 28, + "label": "" + }, + { + "name": "filter_chains", + "type": "FilterChain", + "number": 3, + "label": "repeated" + }, + { + "name": "filter_chain_matcher", + "type": "xds.type.matcher.v3.Matcher", + "number": 32, + "label": "" + }, + { + "name": "use_original_dst", + "type": "google.protobuf.BoolValue", + "number": 4, + "label": "" + }, + { + "name": "default_filter_chain", + "type": "FilterChain", + "number": 25, + "label": "" + }, + { + "name": "per_connection_buffer_limit_bytes", + "type": "google.protobuf.UInt32Value", + "number": 5, + "label": "" + }, + { + "name": "metadata", + "type": "core.v3.Metadata", + "number": 6, + "label": "" + }, + { + "name": "deprecated_v1", + "type": "DeprecatedV1", + "number": 7, + "label": "" + }, + { + "name": "drain_type", + "type": "DrainType", + "number": 8, + "label": "" + }, + { + "name": "listener_filters", + "type": "ListenerFilter", + "number": 9, + "label": "repeated" + }, + { + "name": "listener_filters_timeout", + "type": "google.protobuf.Duration", + "number": 15, + "label": "" + }, + { + "name": "continue_on_listener_filters_timeout", + "type": "bool", + "number": 17, + "label": "" + }, + { + "name": "transparent", + "type": "google.protobuf.BoolValue", + "number": 10, + "label": "" + }, + { + "name": "freebind", + "type": "google.protobuf.BoolValue", + "number": 11, + "label": "" + }, + { + "name": "socket_options", + "type": "core.v3.SocketOption", + "number": 13, + "label": "repeated" + }, + { + "name": "tcp_fast_open_queue_length", + "type": "google.protobuf.UInt32Value", + "number": 12, + "label": "" + }, + { + "name": "traffic_direction", + "type": "core.v3.TrafficDirection", + "number": 16, + "label": "" + }, + { + "name": "udp_listener_config", + "type": "UdpListenerConfig", + "number": 18, + "label": "" + }, + { + "name": "api_listener", + "type": "ApiListener", + "number": 19, + "label": "" + }, + { + "name": "connection_balance_config", + "type": "ConnectionBalanceConfig", + "number": 20, + "label": "" + }, + { + "name": "reuse_port", + "type": "bool", + "number": 21, + "label": "" + }, + { + "name": "enable_reuse_port", + "type": "google.protobuf.BoolValue", + "number": 29, + "label": "" + }, + { + "name": "access_log", + "type": "accesslog.v3.AccessLog", + "number": 22, + "label": "repeated" + }, + { + "name": "tcp_backlog_size", + "type": "google.protobuf.UInt32Value", + "number": 24, + "label": "" + }, + { + "name": "max_connections_to_accept_per_socket_event", + "type": "google.protobuf.UInt32Value", + "number": 34, + "label": "" + }, + { + "name": "bind_to_port", + "type": "google.protobuf.BoolValue", + "number": 26, + "label": "" + }, + { + "name": "enable_mptcp", + "type": "bool", + "number": 30, + "label": "" + }, + { + "name": "ignore_global_conn_limit", + "type": "bool", + "number": 31, + "label": "" + }, + { + "name": "bypass_overload_manager", + "type": "bool", + "number": 35, + "label": "" + }, + { + "name": "internal_listener", + "type": "InternalListenerConfig", + "number": 27, + "label": "" + } + ] + }, + { + "name": "envoy.config.listener.v3.Listener.DeprecatedV1", + "fields": [ + { + "name": "bind_to_port", + "type": "google.protobuf.BoolValue", + "number": 1, + "label": "" + } + ] + }, + { + "name": "envoy.config.listener.v3.Listener.ConnectionBalanceConfig", + "fields": [ + { + "name": "exact_balance", + "type": "ExactBalance", + "number": 1, + "label": "" + }, + { + "name": "extend_balance", + "type": "core.v3.TypedExtensionConfig", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.config.listener.v3.Listener.ConnectionBalanceConfig.ExactBalance", + "fields": [] + }, + { + "name": "envoy.config.listener.v3.Listener.InternalListenerConfig", + "fields": [] + }, + { + "name": "envoy.config.listener.v3.ListenerManager", + "fields": [] + }, + { + "name": "envoy.config.listener.v3.ValidationListenerManager", + "fields": [] + }, + { + "name": "envoy.config.listener.v3.ApiListenerManager", + "fields": [] + } + ], + "enums": [ + { + "name": "envoy.config.listener.v3.Listener.DrainType", + "values": [ + { + "name": "DEFAULT", + "number": 0 + }, + { + "name": "MODIFY_ONLY", + "number": 1 + } + ] + } + ], + "services": [] + }, + { + "path": "envoy/config/listener/v3/listener_components.proto", + "package": "envoy.config.listener.v3", + "application": false, + "syntax": "proto3", + "sha256": "0f852b0181b267f152fc88dd9956304e7d86c75f4c2be8ccb85ee33ff4d62a43", + "imports": [ + "envoy/config/core/v3/address.proto", + "envoy/config/core/v3/base.proto", + "envoy/config/core/v3/config_source.proto", + "envoy/type/v3/range.proto", + "google/protobuf/any.proto", + "google/protobuf/duration.proto", + "google/protobuf/wrappers.proto", + "envoy/annotations/deprecation.proto", + "udpa/annotations/status.proto", + "udpa/annotations/versioning.proto", + "validate/validate.proto" + ], + "messages": [ + { + "name": "envoy.config.listener.v3.Filter", + "fields": [ + { + "name": "name", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "typed_config", + "type": "google.protobuf.Any", + "number": 4, + "label": "" + }, + { + "name": "config_discovery", + "type": "core.v3.ExtensionConfigSource", + "number": 5, + "label": "" + } + ] + }, + { + "name": "envoy.config.listener.v3.FilterChainMatch", + "fields": [ + { + "name": "destination_port", + "type": "google.protobuf.UInt32Value", + "number": 8, + "label": "" + }, + { + "name": "prefix_ranges", + "type": "core.v3.CidrRange", + "number": 3, + "label": "repeated" + }, + { + "name": "address_suffix", + "type": "string", + "number": 4, + "label": "" + }, + { + "name": "suffix_len", + "type": "google.protobuf.UInt32Value", + "number": 5, + "label": "" + }, + { + "name": "direct_source_prefix_ranges", + "type": "core.v3.CidrRange", + "number": 13, + "label": "repeated" + }, + { + "name": "source_type", + "type": "ConnectionSourceType", + "number": 12, + "label": "" + }, + { + "name": "source_prefix_ranges", + "type": "core.v3.CidrRange", + "number": 6, + "label": "repeated" + }, + { + "name": "source_ports", + "type": "uint32", + "number": 7, + "label": "repeated" + }, + { + "name": "server_names", + "type": "string", + "number": 11, + "label": "repeated" + }, + { + "name": "transport_protocol", + "type": "string", + "number": 9, + "label": "" + }, + { + "name": "application_protocols", + "type": "string", + "number": 10, + "label": "repeated" + } + ] + }, + { + "name": "envoy.config.listener.v3.FilterChain", + "fields": [ + { + "name": "filter_chain_match", + "type": "FilterChainMatch", + "number": 1, + "label": "" + }, + { + "name": "filters", + "type": "Filter", + "number": 3, + "label": "repeated" + }, + { + "name": "use_proxy_proto", + "type": "google.protobuf.BoolValue", + "number": 4, + "label": "" + }, + { + "name": "metadata", + "type": "core.v3.Metadata", + "number": 5, + "label": "" + }, + { + "name": "transport_socket", + "type": "core.v3.TransportSocket", + "number": 6, + "label": "" + }, + { + "name": "transport_socket_connect_timeout", + "type": "google.protobuf.Duration", + "number": 9, + "label": "" + }, + { + "name": "name", + "type": "string", + "number": 7, + "label": "" + } + ] + }, + { + "name": "envoy.config.listener.v3.ListenerFilterChainMatchPredicate", + "fields": [ + { + "name": "or_match", + "type": "MatchSet", + "number": 1, + "label": "" + }, + { + "name": "and_match", + "type": "MatchSet", + "number": 2, + "label": "" + }, + { + "name": "not_match", + "type": "ListenerFilterChainMatchPredicate", + "number": 3, + "label": "" + }, + { + "name": "any_match", + "type": "bool", + "number": 4, + "label": "" + }, + { + "name": "destination_port_range", + "type": "type.v3.Int32Range", + "number": 5, + "label": "" + } + ] + }, + { + "name": "envoy.config.listener.v3.ListenerFilterChainMatchPredicate.MatchSet", + "fields": [ + { + "name": "rules", + "type": "ListenerFilterChainMatchPredicate", + "number": 1, + "label": "repeated" + } + ] + }, + { + "name": "envoy.config.listener.v3.ListenerFilter", + "fields": [ + { + "name": "name", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "filter_disabled", + "type": "ListenerFilterChainMatchPredicate", + "number": 4, + "label": "" + }, + { + "name": "typed_config", + "type": "google.protobuf.Any", + "number": 3, + "label": "" + }, + { + "name": "config_discovery", + "type": "core.v3.ExtensionConfigSource", + "number": 5, + "label": "" + } + ] + } + ], + "enums": [ + { + "name": "envoy.config.listener.v3.FilterChainMatch.ConnectionSourceType", + "values": [ + { + "name": "ANY", + "number": 0 + }, + { + "name": "SAME_IP_OR_LOOPBACK", + "number": 1 + }, + { + "name": "EXTERNAL", + "number": 2 + } + ] + } + ], + "services": [] + }, + { + "path": "envoy/config/listener/v3/quic_config.proto", + "package": "envoy.config.listener.v3", + "application": false, + "syntax": "proto3", + "sha256": "80e51e8bed578e35cfc164505bca41633667f69eb5eaac6ffa3e3c3b30039a66", + "imports": [ + "envoy/config/core/v3/base.proto", + "envoy/config/core/v3/extension.proto", + "envoy/config/core/v3/protocol.proto", + "envoy/config/core/v3/socket_cmsg_headers.proto", + "google/protobuf/duration.proto", + "google/protobuf/wrappers.proto", + "xds/annotations/v3/status.proto", + "udpa/annotations/status.proto", + "udpa/annotations/versioning.proto", + "validate/validate.proto" + ], + "messages": [ + { + "name": "envoy.config.listener.v3.QuicProtocolOptions", + "fields": [ + { + "name": "quic_protocol_options", + "type": "core.v3.QuicProtocolOptions", + "number": 1, + "label": "" + }, + { + "name": "idle_timeout", + "type": "google.protobuf.Duration", + "number": 2, + "label": "" + }, + { + "name": "crypto_handshake_timeout", + "type": "google.protobuf.Duration", + "number": 3, + "label": "" + }, + { + "name": "enabled", + "type": "core.v3.RuntimeFeatureFlag", + "number": 4, + "label": "" + }, + { + "name": "packets_to_read_to_connection_count_ratio", + "type": "google.protobuf.UInt32Value", + "number": 5, + "label": "" + }, + { + "name": "crypto_stream_config", + "type": "core.v3.TypedExtensionConfig", + "number": 6, + "label": "" + }, + { + "name": "proof_source_config", + "type": "core.v3.TypedExtensionConfig", + "number": 7, + "label": "" + }, + { + "name": "connection_id_generator_config", + "type": "core.v3.TypedExtensionConfig", + "number": 8, + "label": "" + }, + { + "name": "server_preferred_address_config", + "type": "core.v3.TypedExtensionConfig", + "number": 9, + "label": "" + }, + { + "name": "send_disable_active_migration", + "type": "google.protobuf.BoolValue", + "number": 10, + "label": "" + }, + { + "name": "connection_debug_visitor_config", + "type": "core.v3.TypedExtensionConfig", + "number": 11, + "label": "" + }, + { + "name": "save_cmsg_config", + "type": "core.v3.SocketCmsgHeaders", + "number": 12, + "label": "repeated" + }, + { + "name": "reject_new_connections", + "type": "bool", + "number": 13, + "label": "" + } + ] + } + ], + "enums": [], + "services": [] + }, + { + "path": "envoy/config/listener/v3/udp_listener_config.proto", + "package": "envoy.config.listener.v3", + "application": false, + "syntax": "proto3", + "sha256": "1c0ea239af9a7f1e85f71245fb35b9eb2c51a27a75916df7c38ab967e3eda7c8", + "imports": [ + "envoy/config/core/v3/extension.proto", + "envoy/config/core/v3/udp_socket_config.proto", + "envoy/config/listener/v3/quic_config.proto", + "udpa/annotations/status.proto", + "udpa/annotations/versioning.proto" + ], + "messages": [ + { + "name": "envoy.config.listener.v3.UdpListenerConfig", + "fields": [ + { + "name": "downstream_socket_config", + "type": "core.v3.UdpSocketConfig", + "number": 5, + "label": "" + }, + { + "name": "quic_options", + "type": "QuicProtocolOptions", + "number": 7, + "label": "" + }, + { + "name": "udp_packet_packet_writer_config", + "type": "core.v3.TypedExtensionConfig", + "number": 8, + "label": "" + } + ] + }, + { + "name": "envoy.config.listener.v3.ActiveRawUdpListenerConfig", + "fields": [] + } + ], + "enums": [], + "services": [] + }, + { + "path": "envoy/config/rbac/v3/rbac.proto", + "package": "envoy.config.rbac.v3", + "application": false, + "syntax": "proto3", + "sha256": "cf30dced5ccd927f0deae24ba0ebd2f7dfbc61c8d08bad72533b34f010d7f28d", + "imports": [ + "envoy/config/core/v3/address.proto", + "envoy/config/core/v3/extension.proto", + "envoy/config/route/v3/route_components.proto", + "envoy/type/matcher/v3/filter_state.proto", + "envoy/type/matcher/v3/metadata.proto", + "envoy/type/matcher/v3/path.proto", + "envoy/type/matcher/v3/string.proto", + "envoy/type/v3/range.proto", + "google/api/expr/v1alpha1/checked.proto", + "google/api/expr/v1alpha1/syntax.proto", + "envoy/annotations/deprecation.proto", + "udpa/annotations/migrate.proto", + "udpa/annotations/status.proto", + "udpa/annotations/versioning.proto", + "validate/validate.proto" + ], + "messages": [ + { + "name": "envoy.config.rbac.v3.RBAC", + "fields": [ + { + "name": "action", + "type": "Action", + "number": 1, + "label": "" + }, + { + "name": "policies", + "type": "map", + "number": 2, + "label": "" + }, + { + "name": "audit_logging_options", + "type": "AuditLoggingOptions", + "number": 3, + "label": "" + } + ] + }, + { + "name": "envoy.config.rbac.v3.RBAC.AuditLoggingOptions", + "fields": [ + { + "name": "audit_condition", + "type": "AuditCondition", + "number": 1, + "label": "" + }, + { + "name": "logger_configs", + "type": "AuditLoggerConfig", + "number": 2, + "label": "repeated" + } + ] + }, + { + "name": "envoy.config.rbac.v3.RBAC.AuditLoggingOptions.AuditLoggerConfig", + "fields": [ + { + "name": "audit_logger", + "type": "core.v3.TypedExtensionConfig", + "number": 1, + "label": "" + }, + { + "name": "is_optional", + "type": "bool", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.config.rbac.v3.Policy", + "fields": [ + { + "name": "permissions", + "type": "Permission", + "number": 1, + "label": "repeated" + }, + { + "name": "principals", + "type": "Principal", + "number": 2, + "label": "repeated" + }, + { + "name": "condition", + "type": "google.api.expr.v1alpha1.Expr", + "number": 3, + "label": "" + }, + { + "name": "checked_condition", + "type": "google.api.expr.v1alpha1.CheckedExpr", + "number": 4, + "label": "" + } + ] + }, + { + "name": "envoy.config.rbac.v3.SourcedMetadata", + "fields": [ + { + "name": "metadata_matcher", + "type": "type.matcher.v3.MetadataMatcher", + "number": 1, + "label": "" + }, + { + "name": "metadata_source", + "type": "MetadataSource", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.config.rbac.v3.Permission", + "fields": [ + { + "name": "and_rules", + "type": "Set", + "number": 1, + "label": "" + }, + { + "name": "or_rules", + "type": "Set", + "number": 2, + "label": "" + }, + { + "name": "any", + "type": "bool", + "number": 3, + "label": "" + }, + { + "name": "header", + "type": "route.v3.HeaderMatcher", + "number": 4, + "label": "" + }, + { + "name": "url_path", + "type": "type.matcher.v3.PathMatcher", + "number": 10, + "label": "" + }, + { + "name": "destination_ip", + "type": "core.v3.CidrRange", + "number": 5, + "label": "" + }, + { + "name": "destination_port", + "type": "uint32", + "number": 6, + "label": "" + }, + { + "name": "destination_port_range", + "type": "type.v3.Int32Range", + "number": 11, + "label": "" + }, + { + "name": "metadata", + "type": "type.matcher.v3.MetadataMatcher", + "number": 7, + "label": "" + }, + { + "name": "not_rule", + "type": "Permission", + "number": 8, + "label": "" + }, + { + "name": "requested_server_name", + "type": "type.matcher.v3.StringMatcher", + "number": 9, + "label": "" + }, + { + "name": "matcher", + "type": "core.v3.TypedExtensionConfig", + "number": 12, + "label": "" + }, + { + "name": "uri_template", + "type": "core.v3.TypedExtensionConfig", + "number": 13, + "label": "" + }, + { + "name": "sourced_metadata", + "type": "SourcedMetadata", + "number": 14, + "label": "" + } + ] + }, + { + "name": "envoy.config.rbac.v3.Permission.Set", + "fields": [ + { + "name": "rules", + "type": "Permission", + "number": 1, + "label": "repeated" + } + ] + }, + { + "name": "envoy.config.rbac.v3.Principal", + "fields": [ + { + "name": "and_ids", + "type": "Set", + "number": 1, + "label": "" + }, + { + "name": "or_ids", + "type": "Set", + "number": 2, + "label": "" + }, + { + "name": "any", + "type": "bool", + "number": 3, + "label": "" + }, + { + "name": "authenticated", + "type": "Authenticated", + "number": 4, + "label": "" + }, + { + "name": "source_ip", + "type": "core.v3.CidrRange", + "number": 5, + "label": "" + }, + { + "name": "direct_remote_ip", + "type": "core.v3.CidrRange", + "number": 10, + "label": "" + }, + { + "name": "remote_ip", + "type": "core.v3.CidrRange", + "number": 11, + "label": "" + }, + { + "name": "header", + "type": "route.v3.HeaderMatcher", + "number": 6, + "label": "" + }, + { + "name": "url_path", + "type": "type.matcher.v3.PathMatcher", + "number": 9, + "label": "" + }, + { + "name": "metadata", + "type": "type.matcher.v3.MetadataMatcher", + "number": 7, + "label": "" + }, + { + "name": "filter_state", + "type": "type.matcher.v3.FilterStateMatcher", + "number": 12, + "label": "" + }, + { + "name": "not_id", + "type": "Principal", + "number": 8, + "label": "" + }, + { + "name": "sourced_metadata", + "type": "SourcedMetadata", + "number": 13, + "label": "" + } + ] + }, + { + "name": "envoy.config.rbac.v3.Principal.Set", + "fields": [ + { + "name": "ids", + "type": "Principal", + "number": 1, + "label": "repeated" + } + ] + }, + { + "name": "envoy.config.rbac.v3.Principal.Authenticated", + "fields": [ + { + "name": "principal_name", + "type": "type.matcher.v3.StringMatcher", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.config.rbac.v3.Action", + "fields": [ + { + "name": "name", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "action", + "type": "RBAC.Action", + "number": 2, + "label": "" + } + ] + } + ], + "enums": [ + { + "name": "envoy.config.rbac.v3.RBAC.Action", + "values": [ + { + "name": "ALLOW", + "number": 0 + }, + { + "name": "DENY", + "number": 1 + }, + { + "name": "LOG", + "number": 2 + } + ] + }, + { + "name": "envoy.config.rbac.v3.RBAC.AuditLoggingOptions.AuditCondition", + "values": [ + { + "name": "NONE", + "number": 0 + }, + { + "name": "ON_DENY", + "number": 1 + }, + { + "name": "ON_ALLOW", + "number": 2 + }, + { + "name": "ON_DENY_AND_ALLOW", + "number": 3 + } + ] + }, + { + "name": "envoy.config.rbac.v3.MetadataSource", + "values": [ + { + "name": "DYNAMIC", + "number": 0 + }, + { + "name": "ROUTE", + "number": 1 + } + ] + } + ], + "services": [] + }, + { + "path": "envoy/config/route/v3/route.proto", + "package": "envoy.config.route.v3", + "application": false, + "syntax": "proto3", + "sha256": "fa87ba16bbd868f130ba2f66e0d9d5b0cf118d34f86114aec7518b37d6b9f256", + "imports": [ + "envoy/config/core/v3/base.proto", + "envoy/config/core/v3/config_source.proto", + "envoy/config/route/v3/route_components.proto", + "google/protobuf/any.proto", + "google/protobuf/wrappers.proto", + "udpa/annotations/status.proto", + "udpa/annotations/versioning.proto", + "validate/validate.proto" + ], + "messages": [ + { + "name": "envoy.config.route.v3.RouteConfiguration", + "fields": [ + { + "name": "name", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "virtual_hosts", + "type": "VirtualHost", + "number": 2, + "label": "repeated" + }, + { + "name": "vhds", + "type": "Vhds", + "number": 9, + "label": "" + }, + { + "name": "internal_only_headers", + "type": "string", + "number": 3, + "label": "repeated" + }, + { + "name": "response_headers_to_add", + "type": "core.v3.HeaderValueOption", + "number": 4, + "label": "repeated" + }, + { + "name": "response_headers_to_remove", + "type": "string", + "number": 5, + "label": "repeated" + }, + { + "name": "request_headers_to_add", + "type": "core.v3.HeaderValueOption", + "number": 6, + "label": "repeated" + }, + { + "name": "request_headers_to_remove", + "type": "string", + "number": 8, + "label": "repeated" + }, + { + "name": "most_specific_header_mutations_wins", + "type": "bool", + "number": 10, + "label": "" + }, + { + "name": "validate_clusters", + "type": "google.protobuf.BoolValue", + "number": 7, + "label": "" + }, + { + "name": "max_direct_response_body_size_bytes", + "type": "google.protobuf.UInt32Value", + "number": 11, + "label": "" + }, + { + "name": "cluster_specifier_plugins", + "type": "ClusterSpecifierPlugin", + "number": 12, + "label": "repeated" + }, + { + "name": "request_mirror_policies", + "type": "RouteAction.RequestMirrorPolicy", + "number": 13, + "label": "repeated" + }, + { + "name": "ignore_port_in_host_matching", + "type": "bool", + "number": 14, + "label": "" + }, + { + "name": "ignore_path_parameters_in_path_matching", + "type": "bool", + "number": 15, + "label": "" + }, + { + "name": "typed_per_filter_config", + "type": "map", + "number": 16, + "label": "" + }, + { + "name": "metadata", + "type": "core.v3.Metadata", + "number": 17, + "label": "" + } + ] + }, + { + "name": "envoy.config.route.v3.Vhds", + "fields": [ + { + "name": "config_source", + "type": "core.v3.ConfigSource", + "number": 1, + "label": "" + } + ] + } + ], + "enums": [], + "services": [] + }, + { + "path": "envoy/config/route/v3/route_components.proto", + "package": "envoy.config.route.v3", + "application": false, + "syntax": "proto3", + "sha256": "1271ceaef9acb9fa97a1a68d64ab53dc2fa6d6d5a1821dd211fd63a98d1772de", + "imports": [ + "envoy/config/core/v3/base.proto", + "envoy/config/core/v3/extension.proto", + "envoy/config/core/v3/proxy_protocol.proto", + "envoy/type/matcher/v3/metadata.proto", + "envoy/type/matcher/v3/regex.proto", + "envoy/type/matcher/v3/string.proto", + "envoy/type/metadata/v3/metadata.proto", + "envoy/type/tracing/v3/custom_tag.proto", + "envoy/type/v3/percent.proto", + "envoy/type/v3/range.proto", + "google/protobuf/any.proto", + "google/protobuf/duration.proto", + "google/protobuf/wrappers.proto", + "xds/type/matcher/v3/matcher.proto", + "envoy/annotations/deprecation.proto", + "udpa/annotations/migrate.proto", + "udpa/annotations/status.proto", + "udpa/annotations/versioning.proto", + "validate/validate.proto" + ], + "messages": [ + { + "name": "envoy.config.route.v3.VirtualHost", + "fields": [ + { + "name": "name", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "domains", + "type": "string", + "number": 2, + "label": "repeated" + }, + { + "name": "routes", + "type": "Route", + "number": 3, + "label": "repeated" + }, + { + "name": "matcher", + "type": "xds.type.matcher.v3.Matcher", + "number": 21, + "label": "" + }, + { + "name": "require_tls", + "type": "TlsRequirementType", + "number": 4, + "label": "" + }, + { + "name": "virtual_clusters", + "type": "VirtualCluster", + "number": 5, + "label": "repeated" + }, + { + "name": "rate_limits", + "type": "RateLimit", + "number": 6, + "label": "repeated" + }, + { + "name": "request_headers_to_add", + "type": "core.v3.HeaderValueOption", + "number": 7, + "label": "repeated" + }, + { + "name": "request_headers_to_remove", + "type": "string", + "number": 13, + "label": "repeated" + }, + { + "name": "response_headers_to_add", + "type": "core.v3.HeaderValueOption", + "number": 10, + "label": "repeated" + }, + { + "name": "response_headers_to_remove", + "type": "string", + "number": 11, + "label": "repeated" + }, + { + "name": "cors", + "type": "CorsPolicy", + "number": 8, + "label": "" + }, + { + "name": "typed_per_filter_config", + "type": "map", + "number": 15, + "label": "" + }, + { + "name": "include_request_attempt_count", + "type": "bool", + "number": 14, + "label": "" + }, + { + "name": "include_attempt_count_in_response", + "type": "bool", + "number": 19, + "label": "" + }, + { + "name": "retry_policy", + "type": "RetryPolicy", + "number": 16, + "label": "" + }, + { + "name": "retry_policy_typed_config", + "type": "google.protobuf.Any", + "number": 20, + "label": "" + }, + { + "name": "hedge_policy", + "type": "HedgePolicy", + "number": 17, + "label": "" + }, + { + "name": "include_is_timeout_retry_header", + "type": "bool", + "number": 23, + "label": "" + }, + { + "name": "per_request_buffer_limit_bytes", + "type": "google.protobuf.UInt32Value", + "number": 18, + "label": "" + }, + { + "name": "request_mirror_policies", + "type": "RouteAction.RequestMirrorPolicy", + "number": 22, + "label": "repeated" + }, + { + "name": "metadata", + "type": "core.v3.Metadata", + "number": 24, + "label": "" + } + ] + }, + { + "name": "envoy.config.route.v3.FilterAction", + "fields": [ + { + "name": "action", + "type": "google.protobuf.Any", + "number": 1, + "label": "" + } + ] + }, + { + "name": "envoy.config.route.v3.RouteList", + "fields": [ + { + "name": "routes", + "type": "Route", + "number": 1, + "label": "repeated" + } + ] + }, + { + "name": "envoy.config.route.v3.Route", + "fields": [ + { + "name": "name", + "type": "string", + "number": 14, + "label": "" + }, + { + "name": "match", + "type": "RouteMatch", + "number": 1, + "label": "" + }, + { + "name": "metadata", + "type": "core.v3.Metadata", + "number": 4, + "label": "" + }, + { + "name": "decorator", + "type": "Decorator", + "number": 5, + "label": "" + }, + { + "name": "typed_per_filter_config", + "type": "map", + "number": 13, + "label": "" + }, + { + "name": "request_headers_to_add", + "type": "core.v3.HeaderValueOption", + "number": 9, + "label": "repeated" + }, + { + "name": "request_headers_to_remove", + "type": "string", + "number": 12, + "label": "repeated" + }, + { + "name": "response_headers_to_add", + "type": "core.v3.HeaderValueOption", + "number": 10, + "label": "repeated" + }, + { + "name": "response_headers_to_remove", + "type": "string", + "number": 11, + "label": "repeated" + }, + { + "name": "tracing", + "type": "Tracing", + "number": 15, + "label": "" + }, + { + "name": "per_request_buffer_limit_bytes", + "type": "google.protobuf.UInt32Value", + "number": 16, + "label": "" + }, + { + "name": "stat_prefix", + "type": "string", + "number": 19, + "label": "" + }, + { + "name": "route", + "type": "RouteAction", + "number": 2, + "label": "" + }, + { + "name": "redirect", + "type": "RedirectAction", + "number": 3, + "label": "" + }, + { + "name": "direct_response", + "type": "DirectResponseAction", + "number": 7, + "label": "" + }, + { + "name": "filter_action", + "type": "FilterAction", + "number": 17, + "label": "" + }, + { + "name": "non_forwarding_action", + "type": "NonForwardingAction", + "number": 18, + "label": "" + } + ] + }, + { + "name": "envoy.config.route.v3.WeightedCluster", + "fields": [ + { + "name": "clusters", + "type": "ClusterWeight", + "number": 1, + "label": "repeated" + }, + { + "name": "total_weight", + "type": "google.protobuf.UInt32Value", + "number": 3, + "label": "" + }, + { + "name": "runtime_key_prefix", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "header_name", + "type": "string", + "number": 4, + "label": "" + } + ] + }, + { + "name": "envoy.config.route.v3.WeightedCluster.ClusterWeight", + "fields": [ + { + "name": "name", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "cluster_header", + "type": "string", + "number": 12, + "label": "" + }, + { + "name": "weight", + "type": "google.protobuf.UInt32Value", + "number": 2, + "label": "" + }, + { + "name": "metadata_match", + "type": "core.v3.Metadata", + "number": 3, + "label": "" + }, + { + "name": "request_headers_to_add", + "type": "core.v3.HeaderValueOption", + "number": 4, + "label": "repeated" + }, + { + "name": "request_headers_to_remove", + "type": "string", + "number": 9, + "label": "repeated" + }, + { + "name": "response_headers_to_add", + "type": "core.v3.HeaderValueOption", + "number": 5, + "label": "repeated" + }, + { + "name": "response_headers_to_remove", + "type": "string", + "number": 6, + "label": "repeated" + }, + { + "name": "typed_per_filter_config", + "type": "map", + "number": 10, + "label": "" + }, + { + "name": "host_rewrite_literal", + "type": "string", + "number": 11, + "label": "" + } + ] + }, + { + "name": "envoy.config.route.v3.ClusterSpecifierPlugin", + "fields": [ + { + "name": "extension", + "type": "core.v3.TypedExtensionConfig", + "number": 1, + "label": "" + }, + { + "name": "is_optional", + "type": "bool", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.config.route.v3.RouteMatch", + "fields": [ + { + "name": "case_sensitive", + "type": "google.protobuf.BoolValue", + "number": 4, + "label": "" + }, + { + "name": "runtime_fraction", + "type": "core.v3.RuntimeFractionalPercent", + "number": 9, + "label": "" + }, + { + "name": "headers", + "type": "HeaderMatcher", + "number": 6, + "label": "repeated" + }, + { + "name": "query_parameters", + "type": "QueryParameterMatcher", + "number": 7, + "label": "repeated" + }, + { + "name": "grpc", + "type": "GrpcRouteMatchOptions", + "number": 8, + "label": "" + }, + { + "name": "tls_context", + "type": "TlsContextMatchOptions", + "number": 11, + "label": "" + }, + { + "name": "dynamic_metadata", + "type": "type.matcher.v3.MetadataMatcher", + "number": 13, + "label": "repeated" + }, + { + "name": "prefix", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "path", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "safe_regex", + "type": "type.matcher.v3.RegexMatcher", + "number": 10, + "label": "" + }, + { + "name": "connect_matcher", + "type": "ConnectMatcher", + "number": 12, + "label": "" + }, + { + "name": "path_separated_prefix", + "type": "string", + "number": 14, + "label": "" + }, + { + "name": "path_match_policy", + "type": "core.v3.TypedExtensionConfig", + "number": 15, + "label": "" + } + ] + }, + { + "name": "envoy.config.route.v3.RouteMatch.GrpcRouteMatchOptions", + "fields": [] + }, + { + "name": "envoy.config.route.v3.RouteMatch.TlsContextMatchOptions", + "fields": [ + { + "name": "presented", + "type": "google.protobuf.BoolValue", + "number": 1, + "label": "" + }, + { + "name": "validated", + "type": "google.protobuf.BoolValue", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.config.route.v3.RouteMatch.ConnectMatcher", + "fields": [] + }, + { + "name": "envoy.config.route.v3.CorsPolicy", + "fields": [ + { + "name": "allow_origin_string_match", + "type": "type.matcher.v3.StringMatcher", + "number": 11, + "label": "repeated" + }, + { + "name": "allow_methods", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "allow_headers", + "type": "string", + "number": 3, + "label": "" + }, + { + "name": "expose_headers", + "type": "string", + "number": 4, + "label": "" + }, + { + "name": "max_age", + "type": "string", + "number": 5, + "label": "" + }, + { + "name": "allow_credentials", + "type": "google.protobuf.BoolValue", + "number": 6, + "label": "" + }, + { + "name": "shadow_enabled", + "type": "core.v3.RuntimeFractionalPercent", + "number": 10, + "label": "" + }, + { + "name": "allow_private_network_access", + "type": "google.protobuf.BoolValue", + "number": 12, + "label": "" + }, + { + "name": "forward_not_matching_preflights", + "type": "google.protobuf.BoolValue", + "number": 13, + "label": "" + }, + { + "name": "filter_enabled", + "type": "core.v3.RuntimeFractionalPercent", + "number": 9, + "label": "" + } + ] + }, + { + "name": "envoy.config.route.v3.RouteAction", + "fields": [ + { + "name": "cluster_not_found_response_code", + "type": "ClusterNotFoundResponseCode", + "number": 20, + "label": "" + }, + { + "name": "metadata_match", + "type": "core.v3.Metadata", + "number": 4, + "label": "" + }, + { + "name": "prefix_rewrite", + "type": "string", + "number": 5, + "label": "" + }, + { + "name": "regex_rewrite", + "type": "type.matcher.v3.RegexMatchAndSubstitute", + "number": 32, + "label": "" + }, + { + "name": "path_rewrite_policy", + "type": "core.v3.TypedExtensionConfig", + "number": 41, + "label": "" + }, + { + "name": "append_x_forwarded_host", + "type": "bool", + "number": 38, + "label": "" + }, + { + "name": "timeout", + "type": "google.protobuf.Duration", + "number": 8, + "label": "" + }, + { + "name": "idle_timeout", + "type": "google.protobuf.Duration", + "number": 24, + "label": "" + }, + { + "name": "early_data_policy", + "type": "core.v3.TypedExtensionConfig", + "number": 40, + "label": "" + }, + { + "name": "retry_policy", + "type": "RetryPolicy", + "number": 9, + "label": "" + }, + { + "name": "retry_policy_typed_config", + "type": "google.protobuf.Any", + "number": 33, + "label": "" + }, + { + "name": "request_mirror_policies", + "type": "RequestMirrorPolicy", + "number": 30, + "label": "repeated" + }, + { + "name": "priority", + "type": "core.v3.RoutingPriority", + "number": 11, + "label": "" + }, + { + "name": "rate_limits", + "type": "RateLimit", + "number": 13, + "label": "repeated" + }, + { + "name": "include_vh_rate_limits", + "type": "google.protobuf.BoolValue", + "number": 14, + "label": "" + }, + { + "name": "hash_policy", + "type": "HashPolicy", + "number": 15, + "label": "repeated" + }, + { + "name": "cors", + "type": "CorsPolicy", + "number": 17, + "label": "" + }, + { + "name": "max_grpc_timeout", + "type": "google.protobuf.Duration", + "number": 23, + "label": "" + }, + { + "name": "grpc_timeout_offset", + "type": "google.protobuf.Duration", + "number": 28, + "label": "" + }, + { + "name": "upgrade_configs", + "type": "UpgradeConfig", + "number": 25, + "label": "repeated" + }, + { + "name": "internal_redirect_policy", + "type": "InternalRedirectPolicy", + "number": 34, + "label": "" + }, + { + "name": "internal_redirect_action", + "type": "InternalRedirectAction", + "number": 26, + "label": "" + }, + { + "name": "max_internal_redirects", + "type": "google.protobuf.UInt32Value", + "number": 31, + "label": "" + }, + { + "name": "hedge_policy", + "type": "HedgePolicy", + "number": 27, + "label": "" + }, + { + "name": "max_stream_duration", + "type": "MaxStreamDuration", + "number": 36, + "label": "" + }, + { + "name": "cluster", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "cluster_header", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "weighted_clusters", + "type": "WeightedCluster", + "number": 3, + "label": "" + }, + { + "name": "cluster_specifier_plugin", + "type": "string", + "number": 37, + "label": "" + }, + { + "name": "inline_cluster_specifier_plugin", + "type": "ClusterSpecifierPlugin", + "number": 39, + "label": "" + }, + { + "name": "host_rewrite_literal", + "type": "string", + "number": 6, + "label": "" + }, + { + "name": "auto_host_rewrite", + "type": "google.protobuf.BoolValue", + "number": 7, + "label": "" + }, + { + "name": "host_rewrite_header", + "type": "string", + "number": 29, + "label": "" + }, + { + "name": "host_rewrite_path_regex", + "type": "type.matcher.v3.RegexMatchAndSubstitute", + "number": 35, + "label": "" + } + ] + }, + { + "name": "envoy.config.route.v3.RouteAction.RequestMirrorPolicy", + "fields": [ + { + "name": "cluster", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "cluster_header", + "type": "string", + "number": 5, + "label": "" + }, + { + "name": "runtime_fraction", + "type": "core.v3.RuntimeFractionalPercent", + "number": 3, + "label": "" + }, + { + "name": "trace_sampled", + "type": "google.protobuf.BoolValue", + "number": 4, + "label": "" + }, + { + "name": "disable_shadow_host_suffix_append", + "type": "bool", + "number": 6, + "label": "" + } + ] + }, + { + "name": "envoy.config.route.v3.RouteAction.HashPolicy", + "fields": [ + { + "name": "terminal", + "type": "bool", + "number": 4, + "label": "" + }, + { + "name": "header", + "type": "Header", + "number": 1, + "label": "" + }, + { + "name": "cookie", + "type": "Cookie", + "number": 2, + "label": "" + }, + { + "name": "connection_properties", + "type": "ConnectionProperties", + "number": 3, + "label": "" + }, + { + "name": "query_parameter", + "type": "QueryParameter", + "number": 5, + "label": "" + }, + { + "name": "filter_state", + "type": "FilterState", + "number": 6, + "label": "" + } + ] + }, + { + "name": "envoy.config.route.v3.RouteAction.HashPolicy.Header", + "fields": [ + { + "name": "header_name", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "regex_rewrite", + "type": "type.matcher.v3.RegexMatchAndSubstitute", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.config.route.v3.RouteAction.HashPolicy.CookieAttribute", + "fields": [ + { + "name": "name", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "value", + "type": "string", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.config.route.v3.RouteAction.HashPolicy.Cookie", + "fields": [ + { + "name": "name", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "ttl", + "type": "google.protobuf.Duration", + "number": 2, + "label": "" + }, + { + "name": "path", + "type": "string", + "number": 3, + "label": "" + }, + { + "name": "attributes", + "type": "CookieAttribute", + "number": 4, + "label": "repeated" + } + ] + }, + { + "name": "envoy.config.route.v3.RouteAction.HashPolicy.ConnectionProperties", + "fields": [ + { + "name": "source_ip", + "type": "bool", + "number": 1, + "label": "" + } + ] + }, + { + "name": "envoy.config.route.v3.RouteAction.HashPolicy.QueryParameter", + "fields": [ + { + "name": "name", + "type": "string", + "number": 1, + "label": "" + } + ] + }, + { + "name": "envoy.config.route.v3.RouteAction.HashPolicy.FilterState", + "fields": [ + { + "name": "key", + "type": "string", + "number": 1, + "label": "" + } + ] + }, + { + "name": "envoy.config.route.v3.RouteAction.UpgradeConfig", + "fields": [ + { + "name": "upgrade_type", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "enabled", + "type": "google.protobuf.BoolValue", + "number": 2, + "label": "" + }, + { + "name": "connect_config", + "type": "ConnectConfig", + "number": 3, + "label": "" + } + ] + }, + { + "name": "envoy.config.route.v3.RouteAction.UpgradeConfig.ConnectConfig", + "fields": [ + { + "name": "proxy_protocol_config", + "type": "core.v3.ProxyProtocolConfig", + "number": 1, + "label": "" + }, + { + "name": "allow_post", + "type": "bool", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.config.route.v3.RouteAction.MaxStreamDuration", + "fields": [ + { + "name": "max_stream_duration", + "type": "google.protobuf.Duration", + "number": 1, + "label": "" + }, + { + "name": "grpc_timeout_header_max", + "type": "google.protobuf.Duration", + "number": 2, + "label": "" + }, + { + "name": "grpc_timeout_header_offset", + "type": "google.protobuf.Duration", + "number": 3, + "label": "" + } + ] + }, + { + "name": "envoy.config.route.v3.RetryPolicy", + "fields": [ + { + "name": "retry_on", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "num_retries", + "type": "google.protobuf.UInt32Value", + "number": 2, + "label": "" + }, + { + "name": "per_try_timeout", + "type": "google.protobuf.Duration", + "number": 3, + "label": "" + }, + { + "name": "per_try_idle_timeout", + "type": "google.protobuf.Duration", + "number": 13, + "label": "" + }, + { + "name": "retry_priority", + "type": "RetryPriority", + "number": 4, + "label": "" + }, + { + "name": "retry_host_predicate", + "type": "RetryHostPredicate", + "number": 5, + "label": "repeated" + }, + { + "name": "retry_options_predicates", + "type": "core.v3.TypedExtensionConfig", + "number": 12, + "label": "repeated" + }, + { + "name": "host_selection_retry_max_attempts", + "type": "int64", + "number": 6, + "label": "" + }, + { + "name": "retriable_status_codes", + "type": "uint32", + "number": 7, + "label": "repeated" + }, + { + "name": "retry_back_off", + "type": "RetryBackOff", + "number": 8, + "label": "" + }, + { + "name": "rate_limited_retry_back_off", + "type": "RateLimitedRetryBackOff", + "number": 11, + "label": "" + }, + { + "name": "retriable_headers", + "type": "HeaderMatcher", + "number": 9, + "label": "repeated" + }, + { + "name": "retriable_request_headers", + "type": "HeaderMatcher", + "number": 10, + "label": "repeated" + } + ] + }, + { + "name": "envoy.config.route.v3.RetryPolicy.RetryPriority", + "fields": [ + { + "name": "name", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "typed_config", + "type": "google.protobuf.Any", + "number": 3, + "label": "" + } + ] + }, + { + "name": "envoy.config.route.v3.RetryPolicy.RetryHostPredicate", + "fields": [ + { + "name": "name", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "typed_config", + "type": "google.protobuf.Any", + "number": 3, + "label": "" + } + ] + }, + { + "name": "envoy.config.route.v3.RetryPolicy.RetryBackOff", + "fields": [ + { + "name": "base_interval", + "type": "google.protobuf.Duration", + "number": 1, + "label": "" + }, + { + "name": "max_interval", + "type": "google.protobuf.Duration", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.config.route.v3.RetryPolicy.RateLimitedRetryBackOff", + "fields": [ + { + "name": "reset_headers", + "type": "ResetHeader", + "number": 1, + "label": "repeated" + }, + { + "name": "max_interval", + "type": "google.protobuf.Duration", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.config.route.v3.RetryPolicy.ResetHeader", + "fields": [ + { + "name": "name", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "format", + "type": "ResetHeaderFormat", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.config.route.v3.HedgePolicy", + "fields": [ + { + "name": "initial_requests", + "type": "google.protobuf.UInt32Value", + "number": 1, + "label": "" + }, + { + "name": "additional_request_chance", + "type": "type.v3.FractionalPercent", + "number": 2, + "label": "" + }, + { + "name": "hedge_on_per_try_timeout", + "type": "bool", + "number": 3, + "label": "" + } + ] + }, + { + "name": "envoy.config.route.v3.RedirectAction", + "fields": [ + { + "name": "host_redirect", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "port_redirect", + "type": "uint32", + "number": 8, + "label": "" + }, + { + "name": "response_code", + "type": "RedirectResponseCode", + "number": 3, + "label": "" + }, + { + "name": "strip_query", + "type": "bool", + "number": 6, + "label": "" + }, + { + "name": "https_redirect", + "type": "bool", + "number": 4, + "label": "" + }, + { + "name": "scheme_redirect", + "type": "string", + "number": 7, + "label": "" + }, + { + "name": "path_redirect", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "prefix_rewrite", + "type": "string", + "number": 5, + "label": "" + }, + { + "name": "regex_rewrite", + "type": "type.matcher.v3.RegexMatchAndSubstitute", + "number": 9, + "label": "" + } + ] + }, + { + "name": "envoy.config.route.v3.DirectResponseAction", + "fields": [ + { + "name": "status", + "type": "uint32", + "number": 1, + "label": "" + }, + { + "name": "body", + "type": "core.v3.DataSource", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.config.route.v3.NonForwardingAction", + "fields": [] + }, + { + "name": "envoy.config.route.v3.Decorator", + "fields": [ + { + "name": "operation", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "propagate", + "type": "google.protobuf.BoolValue", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.config.route.v3.Tracing", + "fields": [ + { + "name": "client_sampling", + "type": "type.v3.FractionalPercent", + "number": 1, + "label": "" + }, + { + "name": "random_sampling", + "type": "type.v3.FractionalPercent", + "number": 2, + "label": "" + }, + { + "name": "overall_sampling", + "type": "type.v3.FractionalPercent", + "number": 3, + "label": "" + }, + { + "name": "custom_tags", + "type": "type.tracing.v3.CustomTag", + "number": 4, + "label": "repeated" + } + ] + }, + { + "name": "envoy.config.route.v3.VirtualCluster", + "fields": [ + { + "name": "headers", + "type": "HeaderMatcher", + "number": 4, + "label": "repeated" + }, + { + "name": "name", + "type": "string", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.config.route.v3.RateLimit", + "fields": [ + { + "name": "stage", + "type": "google.protobuf.UInt32Value", + "number": 1, + "label": "" + }, + { + "name": "disable_key", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "actions", + "type": "Action", + "number": 3, + "label": "repeated" + }, + { + "name": "limit", + "type": "Override", + "number": 4, + "label": "" + }, + { + "name": "hits_addend", + "type": "HitsAddend", + "number": 5, + "label": "" + }, + { + "name": "apply_on_stream_done", + "type": "bool", + "number": 6, + "label": "" + } + ] + }, + { + "name": "envoy.config.route.v3.RateLimit.Action", + "fields": [ + { + "name": "source_cluster", + "type": "SourceCluster", + "number": 1, + "label": "" + }, + { + "name": "destination_cluster", + "type": "DestinationCluster", + "number": 2, + "label": "" + }, + { + "name": "request_headers", + "type": "RequestHeaders", + "number": 3, + "label": "" + }, + { + "name": "query_parameters", + "type": "QueryParameters", + "number": 12, + "label": "" + }, + { + "name": "remote_address", + "type": "RemoteAddress", + "number": 4, + "label": "" + }, + { + "name": "generic_key", + "type": "GenericKey", + "number": 5, + "label": "" + }, + { + "name": "header_value_match", + "type": "HeaderValueMatch", + "number": 6, + "label": "" + }, + { + "name": "dynamic_metadata", + "type": "DynamicMetaData", + "number": 7, + "label": "" + }, + { + "name": "metadata", + "type": "MetaData", + "number": 8, + "label": "" + }, + { + "name": "extension", + "type": "core.v3.TypedExtensionConfig", + "number": 9, + "label": "" + }, + { + "name": "masked_remote_address", + "type": "MaskedRemoteAddress", + "number": 10, + "label": "" + }, + { + "name": "query_parameter_value_match", + "type": "QueryParameterValueMatch", + "number": 11, + "label": "" + } + ] + }, + { + "name": "envoy.config.route.v3.RateLimit.Action.SourceCluster", + "fields": [] + }, + { + "name": "envoy.config.route.v3.RateLimit.Action.DestinationCluster", + "fields": [] + }, + { + "name": "envoy.config.route.v3.RateLimit.Action.RequestHeaders", + "fields": [ + { + "name": "header_name", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "descriptor_key", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "skip_if_absent", + "type": "bool", + "number": 3, + "label": "" + } + ] + }, + { + "name": "envoy.config.route.v3.RateLimit.Action.QueryParameters", + "fields": [ + { + "name": "query_parameter_name", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "descriptor_key", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "skip_if_absent", + "type": "bool", + "number": 3, + "label": "" + } + ] + }, + { + "name": "envoy.config.route.v3.RateLimit.Action.RemoteAddress", + "fields": [] + }, + { + "name": "envoy.config.route.v3.RateLimit.Action.MaskedRemoteAddress", + "fields": [ + { + "name": "v4_prefix_mask_len", + "type": "google.protobuf.UInt32Value", + "number": 1, + "label": "" + }, + { + "name": "v6_prefix_mask_len", + "type": "google.protobuf.UInt32Value", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.config.route.v3.RateLimit.Action.GenericKey", + "fields": [ + { + "name": "descriptor_value", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "descriptor_key", + "type": "string", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.config.route.v3.RateLimit.Action.HeaderValueMatch", + "fields": [ + { + "name": "descriptor_key", + "type": "string", + "number": 4, + "label": "" + }, + { + "name": "descriptor_value", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "expect_match", + "type": "google.protobuf.BoolValue", + "number": 2, + "label": "" + }, + { + "name": "headers", + "type": "HeaderMatcher", + "number": 3, + "label": "repeated" + } + ] + }, + { + "name": "envoy.config.route.v3.RateLimit.Action.DynamicMetaData", + "fields": [ + { + "name": "descriptor_key", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "metadata_key", + "type": "type.metadata.v3.MetadataKey", + "number": 2, + "label": "" + }, + { + "name": "default_value", + "type": "string", + "number": 3, + "label": "" + } + ] + }, + { + "name": "envoy.config.route.v3.RateLimit.Action.MetaData", + "fields": [ + { + "name": "descriptor_key", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "metadata_key", + "type": "type.metadata.v3.MetadataKey", + "number": 2, + "label": "" + }, + { + "name": "default_value", + "type": "string", + "number": 3, + "label": "" + }, + { + "name": "source", + "type": "Source", + "number": 4, + "label": "" + }, + { + "name": "skip_if_absent", + "type": "bool", + "number": 5, + "label": "" + } + ] + }, + { + "name": "envoy.config.route.v3.RateLimit.Action.QueryParameterValueMatch", + "fields": [ + { + "name": "descriptor_key", + "type": "string", + "number": 4, + "label": "" + }, + { + "name": "descriptor_value", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "expect_match", + "type": "google.protobuf.BoolValue", + "number": 2, + "label": "" + }, + { + "name": "query_parameters", + "type": "QueryParameterMatcher", + "number": 3, + "label": "repeated" + } + ] + }, + { + "name": "envoy.config.route.v3.RateLimit.Override", + "fields": [ + { + "name": "dynamic_metadata", + "type": "DynamicMetadata", + "number": 1, + "label": "" + } + ] + }, + { + "name": "envoy.config.route.v3.RateLimit.Override.DynamicMetadata", + "fields": [ + { + "name": "metadata_key", + "type": "type.metadata.v3.MetadataKey", + "number": 1, + "label": "" + } + ] + }, + { + "name": "envoy.config.route.v3.RateLimit.HitsAddend", + "fields": [ + { + "name": "number", + "type": "google.protobuf.UInt64Value", + "number": 1, + "label": "" + }, + { + "name": "format", + "type": "string", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.config.route.v3.HeaderMatcher", + "fields": [ + { + "name": "name", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "invert_match", + "type": "bool", + "number": 8, + "label": "" + }, + { + "name": "treat_missing_header_as_empty", + "type": "bool", + "number": 14, + "label": "" + }, + { + "name": "exact_match", + "type": "string", + "number": 4, + "label": "" + }, + { + "name": "safe_regex_match", + "type": "type.matcher.v3.RegexMatcher", + "number": 11, + "label": "" + }, + { + "name": "range_match", + "type": "type.v3.Int64Range", + "number": 6, + "label": "" + }, + { + "name": "present_match", + "type": "bool", + "number": 7, + "label": "" + }, + { + "name": "prefix_match", + "type": "string", + "number": 9, + "label": "" + }, + { + "name": "suffix_match", + "type": "string", + "number": 10, + "label": "" + }, + { + "name": "contains_match", + "type": "string", + "number": 12, + "label": "" + }, + { + "name": "string_match", + "type": "type.matcher.v3.StringMatcher", + "number": 13, + "label": "" + } + ] + }, + { + "name": "envoy.config.route.v3.QueryParameterMatcher", + "fields": [ + { + "name": "name", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "string_match", + "type": "type.matcher.v3.StringMatcher", + "number": 5, + "label": "" + }, + { + "name": "present_match", + "type": "bool", + "number": 6, + "label": "" + } + ] + }, + { + "name": "envoy.config.route.v3.InternalRedirectPolicy", + "fields": [ + { + "name": "max_internal_redirects", + "type": "google.protobuf.UInt32Value", + "number": 1, + "label": "" + }, + { + "name": "redirect_response_codes", + "type": "uint32", + "number": 2, + "label": "repeated" + }, + { + "name": "predicates", + "type": "core.v3.TypedExtensionConfig", + "number": 3, + "label": "repeated" + }, + { + "name": "allow_cross_scheme_redirect", + "type": "bool", + "number": 4, + "label": "" + }, + { + "name": "response_headers_to_copy", + "type": "string", + "number": 5, + "label": "repeated" + } + ] + }, + { + "name": "envoy.config.route.v3.FilterConfig", + "fields": [ + { + "name": "config", + "type": "google.protobuf.Any", + "number": 1, + "label": "" + }, + { + "name": "is_optional", + "type": "bool", + "number": 2, + "label": "" + }, + { + "name": "disabled", + "type": "bool", + "number": 3, + "label": "" + } + ] + } + ], + "enums": [ + { + "name": "envoy.config.route.v3.VirtualHost.TlsRequirementType", + "values": [ + { + "name": "NONE", + "number": 0 + }, + { + "name": "EXTERNAL_ONLY", + "number": 1 + }, + { + "name": "ALL", + "number": 2 + } + ] + }, + { + "name": "envoy.config.route.v3.RouteAction.ClusterNotFoundResponseCode", + "values": [ + { + "name": "SERVICE_UNAVAILABLE", + "number": 0 + }, + { + "name": "NOT_FOUND", + "number": 1 + }, + { + "name": "INTERNAL_SERVER_ERROR", + "number": 2 + } + ] + }, + { + "name": "envoy.config.route.v3.RouteAction.InternalRedirectAction", + "values": [ + { + "name": "PASS_THROUGH_INTERNAL_REDIRECT", + "number": 0 + }, + { + "name": "HANDLE_INTERNAL_REDIRECT", + "number": 1 + } + ] + }, + { + "name": "envoy.config.route.v3.RetryPolicy.ResetHeaderFormat", + "values": [ + { + "name": "SECONDS", + "number": 0 + }, + { + "name": "UNIX_TIMESTAMP", + "number": 1 + } + ] + }, + { + "name": "envoy.config.route.v3.RedirectAction.RedirectResponseCode", + "values": [ + { + "name": "MOVED_PERMANENTLY", + "number": 0 + }, + { + "name": "FOUND", + "number": 1 + }, + { + "name": "SEE_OTHER", + "number": 2 + }, + { + "name": "TEMPORARY_REDIRECT", + "number": 3 + }, + { + "name": "PERMANENT_REDIRECT", + "number": 4 + } + ] + }, + { + "name": "envoy.config.route.v3.RateLimit.Action.MetaData.Source", + "values": [ + { + "name": "DYNAMIC", + "number": 0 + }, + { + "name": "ROUTE_ENTRY", + "number": 1 + } + ] + } + ], + "services": [] + }, + { + "path": "envoy/config/route/v3/scoped_route.proto", + "package": "envoy.config.route.v3", + "application": false, + "syntax": "proto3", + "sha256": "2f5f3af3cd1574311f5408989d60c98c4f65f4ded011865452a10a120ee04bba", + "imports": [ + "envoy/config/route/v3/route.proto", + "udpa/annotations/migrate.proto", + "udpa/annotations/status.proto", + "udpa/annotations/versioning.proto", + "validate/validate.proto" + ], + "messages": [ + { + "name": "envoy.config.route.v3.ScopedRouteConfiguration", + "fields": [ + { + "name": "on_demand", + "type": "bool", + "number": 4, + "label": "" + }, + { + "name": "name", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "route_configuration_name", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "route_configuration", + "type": "RouteConfiguration", + "number": 5, + "label": "" + }, + { + "name": "key", + "type": "Key", + "number": 3, + "label": "" + } + ] + }, + { + "name": "envoy.config.route.v3.ScopedRouteConfiguration.Key", + "fields": [ + { + "name": "fragments", + "type": "Fragment", + "number": 1, + "label": "repeated" + } + ] + }, + { + "name": "envoy.config.route.v3.ScopedRouteConfiguration.Key.Fragment", + "fields": [ + { + "name": "string_key", + "type": "string", + "number": 1, + "label": "" + } + ] + } + ], + "enums": [], + "services": [] + }, + { + "path": "envoy/config/trace/v3/http_tracer.proto", + "package": "envoy.config.trace.v3", + "application": false, + "syntax": "proto3", + "sha256": "3ce9fdebb8e7f31b50df76978d18109dea1e2bed548da8bc940f96880c65a27d", + "imports": [ + "google/protobuf/any.proto", + "udpa/annotations/status.proto", + "udpa/annotations/versioning.proto", + "validate/validate.proto" + ], + "messages": [ + { + "name": "envoy.config.trace.v3.Tracing", + "fields": [ + { + "name": "http", + "type": "Http", + "number": 1, + "label": "" + } + ] + }, + { + "name": "envoy.config.trace.v3.Tracing.Http", + "fields": [ + { + "name": "name", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "typed_config", + "type": "google.protobuf.Any", + "number": 3, + "label": "" + } + ] + } + ], + "enums": [], + "services": [] + }, + { + "path": "envoy/data/accesslog/v3/accesslog.proto", + "package": "envoy.data.accesslog.v3", + "application": false, + "syntax": "proto3", + "sha256": "720c57880940070dfea50e7c415a9ddc38571ee2494caded6561196c59a4b24f", + "imports": [ + "envoy/config/core/v3/address.proto", + "envoy/config/core/v3/base.proto", + "google/protobuf/any.proto", + "google/protobuf/duration.proto", + "google/protobuf/timestamp.proto", + "google/protobuf/wrappers.proto", + "envoy/annotations/deprecation.proto", + "udpa/annotations/status.proto", + "udpa/annotations/versioning.proto", + "validate/validate.proto" + ], + "messages": [ + { + "name": "envoy.data.accesslog.v3.TCPAccessLogEntry", + "fields": [ + { + "name": "common_properties", + "type": "AccessLogCommon", + "number": 1, + "label": "" + }, + { + "name": "connection_properties", + "type": "ConnectionProperties", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.data.accesslog.v3.HTTPAccessLogEntry", + "fields": [ + { + "name": "common_properties", + "type": "AccessLogCommon", + "number": 1, + "label": "" + }, + { + "name": "protocol_version", + "type": "HTTPVersion", + "number": 2, + "label": "" + }, + { + "name": "request", + "type": "HTTPRequestProperties", + "number": 3, + "label": "" + }, + { + "name": "response", + "type": "HTTPResponseProperties", + "number": 4, + "label": "" + } + ] + }, + { + "name": "envoy.data.accesslog.v3.ConnectionProperties", + "fields": [ + { + "name": "received_bytes", + "type": "uint64", + "number": 1, + "label": "" + }, + { + "name": "sent_bytes", + "type": "uint64", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.data.accesslog.v3.AccessLogCommon", + "fields": [ + { + "name": "sample_rate", + "type": "double", + "number": 1, + "label": "" + }, + { + "name": "downstream_remote_address", + "type": "config.core.v3.Address", + "number": 2, + "label": "" + }, + { + "name": "downstream_local_address", + "type": "config.core.v3.Address", + "number": 3, + "label": "" + }, + { + "name": "tls_properties", + "type": "TLSProperties", + "number": 4, + "label": "" + }, + { + "name": "start_time", + "type": "google.protobuf.Timestamp", + "number": 5, + "label": "" + }, + { + "name": "time_to_last_rx_byte", + "type": "google.protobuf.Duration", + "number": 6, + "label": "" + }, + { + "name": "time_to_first_upstream_tx_byte", + "type": "google.protobuf.Duration", + "number": 7, + "label": "" + }, + { + "name": "time_to_last_upstream_tx_byte", + "type": "google.protobuf.Duration", + "number": 8, + "label": "" + }, + { + "name": "time_to_first_upstream_rx_byte", + "type": "google.protobuf.Duration", + "number": 9, + "label": "" + }, + { + "name": "time_to_last_upstream_rx_byte", + "type": "google.protobuf.Duration", + "number": 10, + "label": "" + }, + { + "name": "time_to_first_downstream_tx_byte", + "type": "google.protobuf.Duration", + "number": 11, + "label": "" + }, + { + "name": "time_to_last_downstream_tx_byte", + "type": "google.protobuf.Duration", + "number": 12, + "label": "" + }, + { + "name": "upstream_remote_address", + "type": "config.core.v3.Address", + "number": 13, + "label": "" + }, + { + "name": "upstream_local_address", + "type": "config.core.v3.Address", + "number": 14, + "label": "" + }, + { + "name": "upstream_cluster", + "type": "string", + "number": 15, + "label": "" + }, + { + "name": "response_flags", + "type": "ResponseFlags", + "number": 16, + "label": "" + }, + { + "name": "metadata", + "type": "config.core.v3.Metadata", + "number": 17, + "label": "" + }, + { + "name": "upstream_transport_failure_reason", + "type": "string", + "number": 18, + "label": "" + }, + { + "name": "route_name", + "type": "string", + "number": 19, + "label": "" + }, + { + "name": "downstream_direct_remote_address", + "type": "config.core.v3.Address", + "number": 20, + "label": "" + }, + { + "name": "filter_state_objects", + "type": "map", + "number": 21, + "label": "" + }, + { + "name": "custom_tags", + "type": "map", + "number": 22, + "label": "" + }, + { + "name": "duration", + "type": "google.protobuf.Duration", + "number": 23, + "label": "" + }, + { + "name": "upstream_request_attempt_count", + "type": "uint32", + "number": 24, + "label": "" + }, + { + "name": "connection_termination_details", + "type": "string", + "number": 25, + "label": "" + }, + { + "name": "stream_id", + "type": "string", + "number": 26, + "label": "" + }, + { + "name": "intermediate_log_entry", + "type": "bool", + "number": 27, + "label": "" + }, + { + "name": "downstream_transport_failure_reason", + "type": "string", + "number": 28, + "label": "" + }, + { + "name": "downstream_wire_bytes_sent", + "type": "uint64", + "number": 29, + "label": "" + }, + { + "name": "downstream_wire_bytes_received", + "type": "uint64", + "number": 30, + "label": "" + }, + { + "name": "upstream_wire_bytes_sent", + "type": "uint64", + "number": 31, + "label": "" + }, + { + "name": "upstream_wire_bytes_received", + "type": "uint64", + "number": 32, + "label": "" + }, + { + "name": "access_log_type", + "type": "AccessLogType", + "number": 33, + "label": "" + } + ] + }, + { + "name": "envoy.data.accesslog.v3.ResponseFlags", + "fields": [ + { + "name": "failed_local_healthcheck", + "type": "bool", + "number": 1, + "label": "" + }, + { + "name": "no_healthy_upstream", + "type": "bool", + "number": 2, + "label": "" + }, + { + "name": "upstream_request_timeout", + "type": "bool", + "number": 3, + "label": "" + }, + { + "name": "local_reset", + "type": "bool", + "number": 4, + "label": "" + }, + { + "name": "upstream_remote_reset", + "type": "bool", + "number": 5, + "label": "" + }, + { + "name": "upstream_connection_failure", + "type": "bool", + "number": 6, + "label": "" + }, + { + "name": "upstream_connection_termination", + "type": "bool", + "number": 7, + "label": "" + }, + { + "name": "upstream_overflow", + "type": "bool", + "number": 8, + "label": "" + }, + { + "name": "no_route_found", + "type": "bool", + "number": 9, + "label": "" + }, + { + "name": "delay_injected", + "type": "bool", + "number": 10, + "label": "" + }, + { + "name": "fault_injected", + "type": "bool", + "number": 11, + "label": "" + }, + { + "name": "rate_limited", + "type": "bool", + "number": 12, + "label": "" + }, + { + "name": "unauthorized_details", + "type": "Unauthorized", + "number": 13, + "label": "" + }, + { + "name": "rate_limit_service_error", + "type": "bool", + "number": 14, + "label": "" + }, + { + "name": "downstream_connection_termination", + "type": "bool", + "number": 15, + "label": "" + }, + { + "name": "upstream_retry_limit_exceeded", + "type": "bool", + "number": 16, + "label": "" + }, + { + "name": "stream_idle_timeout", + "type": "bool", + "number": 17, + "label": "" + }, + { + "name": "invalid_envoy_request_headers", + "type": "bool", + "number": 18, + "label": "" + }, + { + "name": "downstream_protocol_error", + "type": "bool", + "number": 19, + "label": "" + }, + { + "name": "upstream_max_stream_duration_reached", + "type": "bool", + "number": 20, + "label": "" + }, + { + "name": "response_from_cache_filter", + "type": "bool", + "number": 21, + "label": "" + }, + { + "name": "no_filter_config_found", + "type": "bool", + "number": 22, + "label": "" + }, + { + "name": "duration_timeout", + "type": "bool", + "number": 23, + "label": "" + }, + { + "name": "upstream_protocol_error", + "type": "bool", + "number": 24, + "label": "" + }, + { + "name": "no_cluster_found", + "type": "bool", + "number": 25, + "label": "" + }, + { + "name": "overload_manager", + "type": "bool", + "number": 26, + "label": "" + }, + { + "name": "dns_resolution_failure", + "type": "bool", + "number": 27, + "label": "" + }, + { + "name": "downstream_remote_reset", + "type": "bool", + "number": 28, + "label": "" + } + ] + }, + { + "name": "envoy.data.accesslog.v3.ResponseFlags.Unauthorized", + "fields": [ + { + "name": "reason", + "type": "Reason", + "number": 1, + "label": "" + } + ] + }, + { + "name": "envoy.data.accesslog.v3.TLSProperties", + "fields": [ + { + "name": "tls_version", + "type": "TLSVersion", + "number": 1, + "label": "" + }, + { + "name": "tls_cipher_suite", + "type": "google.protobuf.UInt32Value", + "number": 2, + "label": "" + }, + { + "name": "tls_sni_hostname", + "type": "string", + "number": 3, + "label": "" + }, + { + "name": "local_certificate_properties", + "type": "CertificateProperties", + "number": 4, + "label": "" + }, + { + "name": "peer_certificate_properties", + "type": "CertificateProperties", + "number": 5, + "label": "" + }, + { + "name": "tls_session_id", + "type": "string", + "number": 6, + "label": "" + }, + { + "name": "ja3_fingerprint", + "type": "string", + "number": 7, + "label": "" + } + ] + }, + { + "name": "envoy.data.accesslog.v3.TLSProperties.CertificateProperties", + "fields": [ + { + "name": "subject_alt_name", + "type": "SubjectAltName", + "number": 1, + "label": "repeated" + }, + { + "name": "subject", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "issuer", + "type": "string", + "number": 3, + "label": "" + } + ] + }, + { + "name": "envoy.data.accesslog.v3.TLSProperties.CertificateProperties.SubjectAltName", + "fields": [ + { + "name": "uri", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "dns", + "type": "string", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.data.accesslog.v3.HTTPRequestProperties", + "fields": [ + { + "name": "request_method", + "type": "config.core.v3.RequestMethod", + "number": 1, + "label": "" + }, + { + "name": "scheme", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "authority", + "type": "string", + "number": 3, + "label": "" + }, + { + "name": "port", + "type": "google.protobuf.UInt32Value", + "number": 4, + "label": "" + }, + { + "name": "path", + "type": "string", + "number": 5, + "label": "" + }, + { + "name": "user_agent", + "type": "string", + "number": 6, + "label": "" + }, + { + "name": "referer", + "type": "string", + "number": 7, + "label": "" + }, + { + "name": "forwarded_for", + "type": "string", + "number": 8, + "label": "" + }, + { + "name": "request_id", + "type": "string", + "number": 9, + "label": "" + }, + { + "name": "original_path", + "type": "string", + "number": 10, + "label": "" + }, + { + "name": "request_headers_bytes", + "type": "uint64", + "number": 11, + "label": "" + }, + { + "name": "request_body_bytes", + "type": "uint64", + "number": 12, + "label": "" + }, + { + "name": "request_headers", + "type": "map", + "number": 13, + "label": "" + }, + { + "name": "upstream_header_bytes_sent", + "type": "uint64", + "number": 14, + "label": "" + }, + { + "name": "downstream_header_bytes_received", + "type": "uint64", + "number": 15, + "label": "" + } + ] + }, + { + "name": "envoy.data.accesslog.v3.HTTPResponseProperties", + "fields": [ + { + "name": "response_code", + "type": "google.protobuf.UInt32Value", + "number": 1, + "label": "" + }, + { + "name": "response_headers_bytes", + "type": "uint64", + "number": 2, + "label": "" + }, + { + "name": "response_body_bytes", + "type": "uint64", + "number": 3, + "label": "" + }, + { + "name": "response_headers", + "type": "map", + "number": 4, + "label": "" + }, + { + "name": "response_trailers", + "type": "map", + "number": 5, + "label": "" + }, + { + "name": "response_code_details", + "type": "string", + "number": 6, + "label": "" + }, + { + "name": "upstream_header_bytes_received", + "type": "uint64", + "number": 7, + "label": "" + }, + { + "name": "downstream_header_bytes_sent", + "type": "uint64", + "number": 8, + "label": "" + } + ] + } + ], + "enums": [ + { + "name": "envoy.data.accesslog.v3.HTTPAccessLogEntry.HTTPVersion", + "values": [ + { + "name": "PROTOCOL_UNSPECIFIED", + "number": 0 + }, + { + "name": "HTTP10", + "number": 1 + }, + { + "name": "HTTP11", + "number": 2 + }, + { + "name": "HTTP2", + "number": 3 + }, + { + "name": "HTTP3", + "number": 4 + } + ] + }, + { + "name": "envoy.data.accesslog.v3.ResponseFlags.Unauthorized.Reason", + "values": [ + { + "name": "REASON_UNSPECIFIED", + "number": 0 + }, + { + "name": "EXTERNAL_SERVICE", + "number": 1 + } + ] + }, + { + "name": "envoy.data.accesslog.v3.TLSProperties.TLSVersion", + "values": [ + { + "name": "VERSION_UNSPECIFIED", + "number": 0 + }, + { + "name": "TLSv1", + "number": 1 + }, + { + "name": "TLSv1_1", + "number": 2 + }, + { + "name": "TLSv1_2", + "number": 3 + }, + { + "name": "TLSv1_3", + "number": 4 + } + ] + }, + { + "name": "envoy.data.accesslog.v3.AccessLogType", + "values": [ + { + "name": "NotSet", + "number": 0 + }, + { + "name": "TcpUpstreamConnected", + "number": 1 + }, + { + "name": "TcpPeriodic", + "number": 2 + }, + { + "name": "TcpConnectionEnd", + "number": 3 + }, + { + "name": "DownstreamStart", + "number": 4 + }, + { + "name": "DownstreamPeriodic", + "number": 5 + }, + { + "name": "DownstreamEnd", + "number": 6 + }, + { + "name": "UpstreamPoolReady", + "number": 7 + }, + { + "name": "UpstreamPeriodic", + "number": 8 + }, + { + "name": "UpstreamEnd", + "number": 9 + }, + { + "name": "DownstreamTunnelSuccessfullyEstablished", + "number": 10 + }, + { + "name": "UdpTunnelUpstreamConnected", + "number": 11 + }, + { + "name": "UdpPeriodic", + "number": 12 + }, + { + "name": "UdpSessionEnd", + "number": 13 + } + ] + } + ], + "services": [] + }, + { + "path": "envoy/extensions/clusters/aggregate/v3/cluster.proto", + "package": "envoy.extensions.clusters.aggregate.v3", + "application": false, + "syntax": "proto3", + "sha256": "542219bd64d7b85d45c837a6e552fe52efae5e6a05c862121f25acd028b65850", + "imports": [ + "udpa/annotations/status.proto", + "udpa/annotations/versioning.proto", + "validate/validate.proto" + ], + "messages": [ + { + "name": "envoy.extensions.clusters.aggregate.v3.ClusterConfig", + "fields": [ + { + "name": "clusters", + "type": "string", + "number": 1, + "label": "repeated" + } + ] + } + ], + "enums": [], + "services": [] + }, + { + "path": "envoy/extensions/filters/common/fault/v3/fault.proto", + "package": "envoy.extensions.filters.common.fault.v3", + "application": false, + "syntax": "proto3", + "sha256": "9eaa12d2aa923f309fbb2fda44bce8e0d07c20519375de446cebf28ab3ba86bb", + "imports": [ + "envoy/type/v3/percent.proto", + "google/protobuf/duration.proto", + "udpa/annotations/status.proto", + "udpa/annotations/versioning.proto", + "validate/validate.proto" + ], + "messages": [ + { + "name": "envoy.extensions.filters.common.fault.v3.FaultDelay", + "fields": [ + { + "name": "percentage", + "type": "type.v3.FractionalPercent", + "number": 4, + "label": "" + }, + { + "name": "fixed_delay", + "type": "google.protobuf.Duration", + "number": 3, + "label": "" + }, + { + "name": "header_delay", + "type": "HeaderDelay", + "number": 5, + "label": "" + } + ] + }, + { + "name": "envoy.extensions.filters.common.fault.v3.FaultDelay.HeaderDelay", + "fields": [] + }, + { + "name": "envoy.extensions.filters.common.fault.v3.FaultRateLimit", + "fields": [ + { + "name": "percentage", + "type": "type.v3.FractionalPercent", + "number": 2, + "label": "" + }, + { + "name": "fixed_limit", + "type": "FixedLimit", + "number": 1, + "label": "" + }, + { + "name": "header_limit", + "type": "HeaderLimit", + "number": 3, + "label": "" + } + ] + }, + { + "name": "envoy.extensions.filters.common.fault.v3.FaultRateLimit.FixedLimit", + "fields": [ + { + "name": "limit_kbps", + "type": "uint64", + "number": 1, + "label": "" + } + ] + }, + { + "name": "envoy.extensions.filters.common.fault.v3.FaultRateLimit.HeaderLimit", + "fields": [] + } + ], + "enums": [ + { + "name": "envoy.extensions.filters.common.fault.v3.FaultDelay.FaultDelayType", + "values": [ + { + "name": "FIXED", + "number": 0 + } + ] + } + ], + "services": [] + }, + { + "path": "envoy/extensions/filters/http/fault/v3/fault.proto", + "package": "envoy.extensions.filters.http.fault.v3", + "application": false, + "syntax": "proto3", + "sha256": "74bbbc53d9f867372bd4ddc62053b20ba62266e3cfb8fc27995e4523877d695e", + "imports": [ + "envoy/config/route/v3/route_components.proto", + "envoy/extensions/filters/common/fault/v3/fault.proto", + "envoy/type/v3/percent.proto", + "google/protobuf/struct.proto", + "google/protobuf/wrappers.proto", + "udpa/annotations/status.proto", + "udpa/annotations/versioning.proto", + "validate/validate.proto" + ], + "messages": [ + { + "name": "envoy.extensions.filters.http.fault.v3.FaultAbort", + "fields": [ + { + "name": "percentage", + "type": "type.v3.FractionalPercent", + "number": 3, + "label": "" + }, + { + "name": "http_status", + "type": "uint32", + "number": 2, + "label": "" + }, + { + "name": "grpc_status", + "type": "uint32", + "number": 5, + "label": "" + }, + { + "name": "header_abort", + "type": "HeaderAbort", + "number": 4, + "label": "" + } + ] + }, + { + "name": "envoy.extensions.filters.http.fault.v3.FaultAbort.HeaderAbort", + "fields": [] + }, + { + "name": "envoy.extensions.filters.http.fault.v3.HTTPFault", + "fields": [ + { + "name": "delay", + "type": "common.fault.v3.FaultDelay", + "number": 1, + "label": "" + }, + { + "name": "abort", + "type": "FaultAbort", + "number": 2, + "label": "" + }, + { + "name": "upstream_cluster", + "type": "string", + "number": 3, + "label": "" + }, + { + "name": "headers", + "type": "config.route.v3.HeaderMatcher", + "number": 4, + "label": "repeated" + }, + { + "name": "downstream_nodes", + "type": "string", + "number": 5, + "label": "repeated" + }, + { + "name": "max_active_faults", + "type": "google.protobuf.UInt32Value", + "number": 6, + "label": "" + }, + { + "name": "response_rate_limit", + "type": "common.fault.v3.FaultRateLimit", + "number": 7, + "label": "" + }, + { + "name": "delay_percent_runtime", + "type": "string", + "number": 8, + "label": "" + }, + { + "name": "abort_percent_runtime", + "type": "string", + "number": 9, + "label": "" + }, + { + "name": "delay_duration_runtime", + "type": "string", + "number": 10, + "label": "" + }, + { + "name": "abort_http_status_runtime", + "type": "string", + "number": 11, + "label": "" + }, + { + "name": "max_active_faults_runtime", + "type": "string", + "number": 12, + "label": "" + }, + { + "name": "response_rate_limit_percent_runtime", + "type": "string", + "number": 13, + "label": "" + }, + { + "name": "abort_grpc_status_runtime", + "type": "string", + "number": 14, + "label": "" + }, + { + "name": "disable_downstream_cluster_stats", + "type": "bool", + "number": 15, + "label": "" + }, + { + "name": "filter_metadata", + "type": "google.protobuf.Struct", + "number": 16, + "label": "" + } + ] + } + ], + "enums": [], + "services": [] + }, + { + "path": "envoy/extensions/filters/http/gcp_authn/v3/gcp_authn.proto", + "package": "envoy.extensions.filters.http.gcp_authn.v3", + "application": false, + "syntax": "proto3", + "sha256": "e49456d4c2d1d649d8f4a7321c8fac12f35b39992180e02cb494a48315fd4e07", + "imports": [ + "envoy/config/core/v3/base.proto", + "envoy/config/core/v3/http_uri.proto", + "google/protobuf/duration.proto", + "google/protobuf/wrappers.proto", + "envoy/annotations/deprecation.proto", + "udpa/annotations/status.proto", + "validate/validate.proto" + ], + "messages": [ + { + "name": "envoy.extensions.filters.http.gcp_authn.v3.GcpAuthnFilterConfig", + "fields": [ + { + "name": "http_uri", + "type": "config.core.v3.HttpUri", + "number": 1, + "label": "" + }, + { + "name": "retry_policy", + "type": "config.core.v3.RetryPolicy", + "number": 2, + "label": "" + }, + { + "name": "cache_config", + "type": "TokenCacheConfig", + "number": 3, + "label": "" + }, + { + "name": "token_header", + "type": "TokenHeader", + "number": 4, + "label": "" + }, + { + "name": "cluster", + "type": "string", + "number": 5, + "label": "" + }, + { + "name": "timeout", + "type": "google.protobuf.Duration", + "number": 6, + "label": "" + } + ] + }, + { + "name": "envoy.extensions.filters.http.gcp_authn.v3.Audience", + "fields": [ + { + "name": "url", + "type": "string", + "number": 1, + "label": "" + } + ] + }, + { + "name": "envoy.extensions.filters.http.gcp_authn.v3.TokenCacheConfig", + "fields": [ + { + "name": "cache_size", + "type": "google.protobuf.UInt64Value", + "number": 1, + "label": "" + } + ] + }, + { + "name": "envoy.extensions.filters.http.gcp_authn.v3.TokenHeader", + "fields": [ + { + "name": "name", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "value_prefix", + "type": "string", + "number": 2, + "label": "" + } + ] + } + ], + "enums": [], + "services": [] + }, + { + "path": "envoy/extensions/filters/http/rbac/v3/rbac.proto", + "package": "envoy.extensions.filters.http.rbac.v3", + "application": false, + "syntax": "proto3", + "sha256": "86f4a90dc3e2609d211d9078c9b0ab640fcd45984beedd612cf6d32956893b09", + "imports": [ + "envoy/config/rbac/v3/rbac.proto", + "xds/annotations/v3/status.proto", + "xds/type/matcher/v3/matcher.proto", + "udpa/annotations/migrate.proto", + "udpa/annotations/status.proto", + "udpa/annotations/versioning.proto" + ], + "messages": [ + { + "name": "envoy.extensions.filters.http.rbac.v3.RBAC", + "fields": [ + { + "name": "rules", + "type": "config.rbac.v3.RBAC", + "number": 1, + "label": "" + }, + { + "name": "rules_stat_prefix", + "type": "string", + "number": 6, + "label": "" + }, + { + "name": "matcher", + "type": "xds.type.matcher.v3.Matcher", + "number": 4, + "label": "" + }, + { + "name": "shadow_rules", + "type": "config.rbac.v3.RBAC", + "number": 2, + "label": "" + }, + { + "name": "shadow_matcher", + "type": "xds.type.matcher.v3.Matcher", + "number": 5, + "label": "" + }, + { + "name": "shadow_rules_stat_prefix", + "type": "string", + "number": 3, + "label": "" + }, + { + "name": "track_per_rule_stats", + "type": "bool", + "number": 7, + "label": "" + } + ] + }, + { + "name": "envoy.extensions.filters.http.rbac.v3.RBACPerRoute", + "fields": [ + { + "name": "rbac", + "type": "RBAC", + "number": 2, + "label": "" + } + ] + } + ], + "enums": [], + "services": [] + }, + { + "path": "envoy/extensions/filters/http/router/v3/router.proto", + "package": "envoy.extensions.filters.http.router.v3", + "application": false, + "syntax": "proto3", + "sha256": "3807e3d606fe0182b563f4fb93e4ece03f03ec5e6985e45f546223c8967b76bb", + "imports": [ + "envoy/config/accesslog/v3/accesslog.proto", + "envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.proto", + "google/protobuf/duration.proto", + "google/protobuf/wrappers.proto", + "envoy/annotations/deprecation.proto", + "udpa/annotations/status.proto", + "udpa/annotations/versioning.proto", + "validate/validate.proto" + ], + "messages": [ + { + "name": "envoy.extensions.filters.http.router.v3.Router", + "fields": [ + { + "name": "dynamic_stats", + "type": "google.protobuf.BoolValue", + "number": 1, + "label": "" + }, + { + "name": "start_child_span", + "type": "bool", + "number": 2, + "label": "" + }, + { + "name": "upstream_log", + "type": "config.accesslog.v3.AccessLog", + "number": 3, + "label": "repeated" + }, + { + "name": "upstream_log_options", + "type": "UpstreamAccessLogOptions", + "number": 9, + "label": "" + }, + { + "name": "suppress_envoy_headers", + "type": "bool", + "number": 4, + "label": "" + }, + { + "name": "strict_check_headers", + "type": "string", + "number": 5, + "label": "repeated" + }, + { + "name": "respect_expected_rq_timeout", + "type": "bool", + "number": 6, + "label": "" + }, + { + "name": "suppress_grpc_request_failure_code_stats", + "type": "bool", + "number": 7, + "label": "" + }, + { + "name": "upstream_http_filters", + "type": "network.http_connection_manager.v3.HttpFilter", + "number": 8, + "label": "repeated" + } + ] + }, + { + "name": "envoy.extensions.filters.http.router.v3.Router.UpstreamAccessLogOptions", + "fields": [ + { + "name": "flush_upstream_log_on_upstream_stream", + "type": "bool", + "number": 1, + "label": "" + }, + { + "name": "upstream_log_flush_interval", + "type": "google.protobuf.Duration", + "number": 2, + "label": "" + } + ] + } + ], + "enums": [], + "services": [] + }, + { + "path": "envoy/extensions/filters/http/stateful_session/v3/stateful_session.proto", + "package": "envoy.extensions.filters.http.stateful_session.v3", + "application": false, + "syntax": "proto3", + "sha256": "c1a974bfdaa5e7e05436e59d70073613d8b754a911d2be465e1569ea1398678c", + "imports": [ + "envoy/config/core/v3/extension.proto", + "udpa/annotations/status.proto", + "validate/validate.proto" + ], + "messages": [ + { + "name": "envoy.extensions.filters.http.stateful_session.v3.StatefulSession", + "fields": [ + { + "name": "session_state", + "type": "config.core.v3.TypedExtensionConfig", + "number": 1, + "label": "" + }, + { + "name": "strict", + "type": "bool", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.extensions.filters.http.stateful_session.v3.StatefulSessionPerRoute", + "fields": [ + { + "name": "disabled", + "type": "bool", + "number": 1, + "label": "" + }, + { + "name": "stateful_session", + "type": "StatefulSession", + "number": 2, + "label": "" + } + ] + } + ], + "enums": [], + "services": [] + }, + { + "path": "envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.proto", + "package": "envoy.extensions.filters.network.http_connection_manager.v3", + "application": false, + "syntax": "proto3", + "sha256": "abcdc76e5ece07e913fdbe85c979b7a732df8b61cbcf9fa834c79e8f8c1b1102", + "imports": [ + "envoy/config/accesslog/v3/accesslog.proto", + "envoy/config/core/v3/address.proto", + "envoy/config/core/v3/base.proto", + "envoy/config/core/v3/config_source.proto", + "envoy/config/core/v3/extension.proto", + "envoy/config/core/v3/protocol.proto", + "envoy/config/core/v3/substitution_format_string.proto", + "envoy/config/route/v3/route.proto", + "envoy/config/route/v3/scoped_route.proto", + "envoy/config/trace/v3/http_tracer.proto", + "envoy/type/http/v3/path_transformation.proto", + "envoy/type/tracing/v3/custom_tag.proto", + "envoy/type/v3/percent.proto", + "google/protobuf/any.proto", + "google/protobuf/duration.proto", + "google/protobuf/wrappers.proto", + "envoy/annotations/deprecation.proto", + "udpa/annotations/migrate.proto", + "udpa/annotations/security.proto", + "udpa/annotations/status.proto", + "udpa/annotations/versioning.proto", + "validate/validate.proto" + ], + "messages": [ + { + "name": "envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager", + "fields": [ + { + "name": "codec_type", + "type": "CodecType", + "number": 1, + "label": "" + }, + { + "name": "stat_prefix", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "http_filters", + "type": "HttpFilter", + "number": 5, + "label": "repeated" + }, + { + "name": "add_user_agent", + "type": "google.protobuf.BoolValue", + "number": 6, + "label": "" + }, + { + "name": "tracing", + "type": "Tracing", + "number": 7, + "label": "" + }, + { + "name": "common_http_protocol_options", + "type": "config.core.v3.HttpProtocolOptions", + "number": 35, + "label": "" + }, + { + "name": "http1_safe_max_connection_duration", + "type": "bool", + "number": 58, + "label": "" + }, + { + "name": "http_protocol_options", + "type": "config.core.v3.Http1ProtocolOptions", + "number": 8, + "label": "" + }, + { + "name": "http2_protocol_options", + "type": "config.core.v3.Http2ProtocolOptions", + "number": 9, + "label": "" + }, + { + "name": "http3_protocol_options", + "type": "config.core.v3.Http3ProtocolOptions", + "number": 44, + "label": "" + }, + { + "name": "server_name", + "type": "string", + "number": 10, + "label": "" + }, + { + "name": "server_header_transformation", + "type": "ServerHeaderTransformation", + "number": 34, + "label": "" + }, + { + "name": "scheme_header_transformation", + "type": "config.core.v3.SchemeHeaderTransformation", + "number": 48, + "label": "" + }, + { + "name": "max_request_headers_kb", + "type": "google.protobuf.UInt32Value", + "number": 29, + "label": "" + }, + { + "name": "stream_idle_timeout", + "type": "google.protobuf.Duration", + "number": 24, + "label": "" + }, + { + "name": "request_timeout", + "type": "google.protobuf.Duration", + "number": 28, + "label": "" + }, + { + "name": "request_headers_timeout", + "type": "google.protobuf.Duration", + "number": 41, + "label": "" + }, + { + "name": "drain_timeout", + "type": "google.protobuf.Duration", + "number": 12, + "label": "" + }, + { + "name": "delayed_close_timeout", + "type": "google.protobuf.Duration", + "number": 26, + "label": "" + }, + { + "name": "access_log", + "type": "config.accesslog.v3.AccessLog", + "number": 13, + "label": "repeated" + }, + { + "name": "access_log_flush_interval", + "type": "google.protobuf.Duration", + "number": 54, + "label": "" + }, + { + "name": "flush_access_log_on_new_request", + "type": "bool", + "number": 55, + "label": "" + }, + { + "name": "access_log_options", + "type": "HcmAccessLogOptions", + "number": 56, + "label": "" + }, + { + "name": "use_remote_address", + "type": "google.protobuf.BoolValue", + "number": 14, + "label": "" + }, + { + "name": "xff_num_trusted_hops", + "type": "uint32", + "number": 19, + "label": "" + }, + { + "name": "original_ip_detection_extensions", + "type": "config.core.v3.TypedExtensionConfig", + "number": 46, + "label": "repeated" + }, + { + "name": "early_header_mutation_extensions", + "type": "config.core.v3.TypedExtensionConfig", + "number": 52, + "label": "repeated" + }, + { + "name": "internal_address_config", + "type": "InternalAddressConfig", + "number": 25, + "label": "" + }, + { + "name": "skip_xff_append", + "type": "bool", + "number": 21, + "label": "" + }, + { + "name": "via", + "type": "string", + "number": 22, + "label": "" + }, + { + "name": "generate_request_id", + "type": "google.protobuf.BoolValue", + "number": 15, + "label": "" + }, + { + "name": "preserve_external_request_id", + "type": "bool", + "number": 32, + "label": "" + }, + { + "name": "always_set_request_id_in_response", + "type": "bool", + "number": 37, + "label": "" + }, + { + "name": "forward_client_cert_details", + "type": "ForwardClientCertDetails", + "number": 16, + "label": "" + }, + { + "name": "set_current_client_cert_details", + "type": "SetCurrentClientCertDetails", + "number": 17, + "label": "" + }, + { + "name": "proxy_100_continue", + "type": "bool", + "number": 18, + "label": "" + }, + { + "name": "represent_ipv4_remote_address_as_ipv4_mapped_ipv6", + "type": "bool", + "number": 20, + "label": "" + }, + { + "name": "upgrade_configs", + "type": "UpgradeConfig", + "number": 23, + "label": "repeated" + }, + { + "name": "normalize_path", + "type": "google.protobuf.BoolValue", + "number": 30, + "label": "" + }, + { + "name": "merge_slashes", + "type": "bool", + "number": 33, + "label": "" + }, + { + "name": "path_with_escaped_slashes_action", + "type": "PathWithEscapedSlashesAction", + "number": 45, + "label": "" + }, + { + "name": "request_id_extension", + "type": "RequestIDExtension", + "number": 36, + "label": "" + }, + { + "name": "local_reply_config", + "type": "LocalReplyConfig", + "number": 38, + "label": "" + }, + { + "name": "strip_matching_host_port", + "type": "bool", + "number": 39, + "label": "" + }, + { + "name": "stream_error_on_invalid_http_message", + "type": "google.protobuf.BoolValue", + "number": 40, + "label": "" + }, + { + "name": "path_normalization_options", + "type": "PathNormalizationOptions", + "number": 43, + "label": "" + }, + { + "name": "strip_trailing_host_dot", + "type": "bool", + "number": 47, + "label": "" + }, + { + "name": "proxy_status_config", + "type": "ProxyStatusConfig", + "number": 49, + "label": "" + }, + { + "name": "typed_header_validation_config", + "type": "config.core.v3.TypedExtensionConfig", + "number": 50, + "label": "" + }, + { + "name": "append_x_forwarded_port", + "type": "bool", + "number": 51, + "label": "" + }, + { + "name": "append_local_overload", + "type": "bool", + "number": 57, + "label": "" + }, + { + "name": "add_proxy_protocol_connection_state", + "type": "google.protobuf.BoolValue", + "number": 53, + "label": "" + }, + { + "name": "rds", + "type": "Rds", + "number": 3, + "label": "" + }, + { + "name": "route_config", + "type": "config.route.v3.RouteConfiguration", + "number": 4, + "label": "" + }, + { + "name": "scoped_routes", + "type": "ScopedRoutes", + "number": 31, + "label": "" + }, + { + "name": "strip_any_host_port", + "type": "bool", + "number": 42, + "label": "" + } + ] + }, + { + "name": "envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager.Tracing", + "fields": [ + { + "name": "client_sampling", + "type": "type.v3.Percent", + "number": 3, + "label": "" + }, + { + "name": "random_sampling", + "type": "type.v3.Percent", + "number": 4, + "label": "" + }, + { + "name": "overall_sampling", + "type": "type.v3.Percent", + "number": 5, + "label": "" + }, + { + "name": "verbose", + "type": "bool", + "number": 6, + "label": "" + }, + { + "name": "max_path_tag_length", + "type": "google.protobuf.UInt32Value", + "number": 7, + "label": "" + }, + { + "name": "custom_tags", + "type": "type.tracing.v3.CustomTag", + "number": 8, + "label": "repeated" + }, + { + "name": "provider", + "type": "config.trace.v3.Tracing.Http", + "number": 9, + "label": "" + }, + { + "name": "spawn_upstream_span", + "type": "google.protobuf.BoolValue", + "number": 10, + "label": "" + } + ] + }, + { + "name": "envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager.HcmAccessLogOptions", + "fields": [ + { + "name": "access_log_flush_interval", + "type": "google.protobuf.Duration", + "number": 1, + "label": "" + }, + { + "name": "flush_access_log_on_new_request", + "type": "bool", + "number": 2, + "label": "" + }, + { + "name": "flush_log_on_tunnel_successfully_established", + "type": "bool", + "number": 3, + "label": "" + } + ] + }, + { + "name": "envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager.InternalAddressConfig", + "fields": [ + { + "name": "unix_sockets", + "type": "bool", + "number": 1, + "label": "" + }, + { + "name": "cidr_ranges", + "type": "config.core.v3.CidrRange", + "number": 2, + "label": "repeated" + } + ] + }, + { + "name": "envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager.SetCurrentClientCertDetails", + "fields": [ + { + "name": "subject", + "type": "google.protobuf.BoolValue", + "number": 1, + "label": "" + }, + { + "name": "cert", + "type": "bool", + "number": 3, + "label": "" + }, + { + "name": "chain", + "type": "bool", + "number": 6, + "label": "" + }, + { + "name": "dns", + "type": "bool", + "number": 4, + "label": "" + }, + { + "name": "uri", + "type": "bool", + "number": 5, + "label": "" + } + ] + }, + { + "name": "envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager.UpgradeConfig", + "fields": [ + { + "name": "upgrade_type", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "filters", + "type": "HttpFilter", + "number": 2, + "label": "repeated" + }, + { + "name": "enabled", + "type": "google.protobuf.BoolValue", + "number": 3, + "label": "" + } + ] + }, + { + "name": "envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager.PathNormalizationOptions", + "fields": [ + { + "name": "forwarding_transformation", + "type": "type.http.v3.PathTransformation", + "number": 1, + "label": "" + }, + { + "name": "http_filter_transformation", + "type": "type.http.v3.PathTransformation", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager.ProxyStatusConfig", + "fields": [ + { + "name": "remove_details", + "type": "bool", + "number": 1, + "label": "" + }, + { + "name": "remove_connection_termination_details", + "type": "bool", + "number": 2, + "label": "" + }, + { + "name": "remove_response_flags", + "type": "bool", + "number": 3, + "label": "" + }, + { + "name": "set_recommended_response_code", + "type": "bool", + "number": 4, + "label": "" + }, + { + "name": "use_node_id", + "type": "bool", + "number": 5, + "label": "" + }, + { + "name": "literal_proxy_name", + "type": "string", + "number": 6, + "label": "" + } + ] + }, + { + "name": "envoy.extensions.filters.network.http_connection_manager.v3.LocalReplyConfig", + "fields": [ + { + "name": "mappers", + "type": "ResponseMapper", + "number": 1, + "label": "repeated" + }, + { + "name": "body_format", + "type": "config.core.v3.SubstitutionFormatString", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.extensions.filters.network.http_connection_manager.v3.ResponseMapper", + "fields": [ + { + "name": "filter", + "type": "config.accesslog.v3.AccessLogFilter", + "number": 1, + "label": "" + }, + { + "name": "status_code", + "type": "google.protobuf.UInt32Value", + "number": 2, + "label": "" + }, + { + "name": "body", + "type": "config.core.v3.DataSource", + "number": 3, + "label": "" + }, + { + "name": "body_format_override", + "type": "config.core.v3.SubstitutionFormatString", + "number": 4, + "label": "" + }, + { + "name": "headers_to_add", + "type": "config.core.v3.HeaderValueOption", + "number": 5, + "label": "repeated" + } + ] + }, + { + "name": "envoy.extensions.filters.network.http_connection_manager.v3.Rds", + "fields": [ + { + "name": "config_source", + "type": "config.core.v3.ConfigSource", + "number": 1, + "label": "" + }, + { + "name": "route_config_name", + "type": "string", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.extensions.filters.network.http_connection_manager.v3.ScopedRouteConfigurationsList", + "fields": [ + { + "name": "scoped_route_configurations", + "type": "config.route.v3.ScopedRouteConfiguration", + "number": 1, + "label": "repeated" + } + ] + }, + { + "name": "envoy.extensions.filters.network.http_connection_manager.v3.ScopedRoutes", + "fields": [ + { + "name": "name", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "scope_key_builder", + "type": "ScopeKeyBuilder", + "number": 2, + "label": "" + }, + { + "name": "rds_config_source", + "type": "config.core.v3.ConfigSource", + "number": 3, + "label": "" + }, + { + "name": "scoped_route_configurations_list", + "type": "ScopedRouteConfigurationsList", + "number": 4, + "label": "" + }, + { + "name": "scoped_rds", + "type": "ScopedRds", + "number": 5, + "label": "" + } + ] + }, + { + "name": "envoy.extensions.filters.network.http_connection_manager.v3.ScopedRoutes.ScopeKeyBuilder", + "fields": [ + { + "name": "fragments", + "type": "FragmentBuilder", + "number": 1, + "label": "repeated" + } + ] + }, + { + "name": "envoy.extensions.filters.network.http_connection_manager.v3.ScopedRoutes.ScopeKeyBuilder.FragmentBuilder", + "fields": [ + { + "name": "header_value_extractor", + "type": "HeaderValueExtractor", + "number": 1, + "label": "" + } + ] + }, + { + "name": "envoy.extensions.filters.network.http_connection_manager.v3.ScopedRoutes.ScopeKeyBuilder.FragmentBuilder.HeaderValueExtractor", + "fields": [ + { + "name": "name", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "element_separator", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "index", + "type": "uint32", + "number": 3, + "label": "" + }, + { + "name": "element", + "type": "KvElement", + "number": 4, + "label": "" + } + ] + }, + { + "name": "envoy.extensions.filters.network.http_connection_manager.v3.ScopedRoutes.ScopeKeyBuilder.FragmentBuilder.HeaderValueExtractor.KvElement", + "fields": [ + { + "name": "separator", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "key", + "type": "string", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.extensions.filters.network.http_connection_manager.v3.ScopedRds", + "fields": [ + { + "name": "scoped_rds_config_source", + "type": "config.core.v3.ConfigSource", + "number": 1, + "label": "" + }, + { + "name": "srds_resources_locator", + "type": "string", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.extensions.filters.network.http_connection_manager.v3.HttpFilter", + "fields": [ + { + "name": "name", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "is_optional", + "type": "bool", + "number": 6, + "label": "" + }, + { + "name": "disabled", + "type": "bool", + "number": 7, + "label": "" + }, + { + "name": "typed_config", + "type": "google.protobuf.Any", + "number": 4, + "label": "" + }, + { + "name": "config_discovery", + "type": "config.core.v3.ExtensionConfigSource", + "number": 5, + "label": "" + } + ] + }, + { + "name": "envoy.extensions.filters.network.http_connection_manager.v3.RequestIDExtension", + "fields": [ + { + "name": "typed_config", + "type": "google.protobuf.Any", + "number": 1, + "label": "" + } + ] + }, + { + "name": "envoy.extensions.filters.network.http_connection_manager.v3.EnvoyMobileHttpConnectionManager", + "fields": [ + { + "name": "config", + "type": "HttpConnectionManager", + "number": 1, + "label": "" + } + ] + } + ], + "enums": [ + { + "name": "envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager.CodecType", + "values": [ + { + "name": "AUTO", + "number": 0 + }, + { + "name": "HTTP1", + "number": 1 + }, + { + "name": "HTTP2", + "number": 2 + }, + { + "name": "HTTP3", + "number": 3 + } + ] + }, + { + "name": "envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager.Tracing.OperationName", + "values": [ + { + "name": "INGRESS", + "number": 0 + }, + { + "name": "EGRESS", + "number": 1 + } + ] + }, + { + "name": "envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager.ServerHeaderTransformation", + "values": [ + { + "name": "OVERWRITE", + "number": 0 + }, + { + "name": "APPEND_IF_ABSENT", + "number": 1 + }, + { + "name": "PASS_THROUGH", + "number": 2 + } + ] + }, + { + "name": "envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager.ForwardClientCertDetails", + "values": [ + { + "name": "SANITIZE", + "number": 0 + }, + { + "name": "FORWARD_ONLY", + "number": 1 + }, + { + "name": "APPEND_FORWARD", + "number": 2 + }, + { + "name": "SANITIZE_SET", + "number": 3 + }, + { + "name": "ALWAYS_FORWARD_ONLY", + "number": 4 + } + ] + }, + { + "name": "envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager.PathWithEscapedSlashesAction", + "values": [ + { + "name": "IMPLEMENTATION_SPECIFIC_DEFAULT", + "number": 0 + }, + { + "name": "KEEP_UNCHANGED", + "number": 1 + }, + { + "name": "REJECT_REQUEST", + "number": 2 + }, + { + "name": "UNESCAPE_AND_REDIRECT", + "number": 3 + }, + { + "name": "UNESCAPE_AND_FORWARD", + "number": 4 + } + ] + } + ], + "services": [] + }, + { + "path": "envoy/extensions/http/stateful_session/cookie/v3/cookie.proto", + "package": "envoy.extensions.http.stateful_session.cookie.v3", + "application": false, + "syntax": "proto3", + "sha256": "2ed34a31d66e2ad0129232c90b08c3bea53624cde2d319931580291f9799a136", + "imports": [ + "envoy/type/http/v3/cookie.proto", + "udpa/annotations/status.proto", + "validate/validate.proto" + ], + "messages": [ + { + "name": "envoy.extensions.http.stateful_session.cookie.v3.CookieBasedSessionState", + "fields": [ + { + "name": "cookie", + "type": "type.http.v3.Cookie", + "number": 1, + "label": "" + } + ] + } + ], + "enums": [], + "services": [] + }, + { + "path": "envoy/extensions/transport_sockets/http_11_proxy/v3/upstream_http_11_connect.proto", + "package": "envoy.extensions.transport_sockets.http_11_proxy.v3", + "application": false, + "syntax": "proto3", + "sha256": "6eb726f374194f95d05afc6a95f23682fcaaf35da323c55529f0ba8392b687ff", + "imports": [ + "envoy/config/core/v3/base.proto", + "udpa/annotations/status.proto" + ], + "messages": [ + { + "name": "envoy.extensions.transport_sockets.http_11_proxy.v3.Http11ProxyUpstreamTransport", + "fields": [ + { + "name": "transport_socket", + "type": "config.core.v3.TransportSocket", + "number": 1, + "label": "" + } + ] + } + ], + "enums": [], + "services": [] + }, + { + "path": "envoy/extensions/transport_sockets/tls/v3/common.proto", + "package": "envoy.extensions.transport_sockets.tls.v3", + "application": false, + "syntax": "proto3", + "sha256": "41866c173b856960a54ea0fc10e9beec5ab2e1da53258ee66832be83ee72b353", + "imports": [ + "envoy/config/core/v3/base.proto", + "envoy/config/core/v3/extension.proto", + "envoy/type/matcher/v3/string.proto", + "google/protobuf/any.proto", + "google/protobuf/wrappers.proto", + "envoy/annotations/deprecation.proto", + "udpa/annotations/migrate.proto", + "udpa/annotations/sensitive.proto", + "udpa/annotations/status.proto", + "udpa/annotations/versioning.proto", + "validate/validate.proto" + ], + "messages": [ + { + "name": "envoy.extensions.transport_sockets.tls.v3.TlsParameters", + "fields": [ + { + "name": "tls_minimum_protocol_version", + "type": "TlsProtocol", + "number": 1, + "label": "" + }, + { + "name": "tls_maximum_protocol_version", + "type": "TlsProtocol", + "number": 2, + "label": "" + }, + { + "name": "cipher_suites", + "type": "string", + "number": 3, + "label": "repeated" + }, + { + "name": "ecdh_curves", + "type": "string", + "number": 4, + "label": "repeated" + }, + { + "name": "signature_algorithms", + "type": "string", + "number": 5, + "label": "repeated" + } + ] + }, + { + "name": "envoy.extensions.transport_sockets.tls.v3.PrivateKeyProvider", + "fields": [ + { + "name": "provider_name", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "fallback", + "type": "bool", + "number": 4, + "label": "" + }, + { + "name": "typed_config", + "type": "google.protobuf.Any", + "number": 3, + "label": "" + } + ] + }, + { + "name": "envoy.extensions.transport_sockets.tls.v3.TlsCertificate", + "fields": [ + { + "name": "certificate_chain", + "type": "config.core.v3.DataSource", + "number": 1, + "label": "" + }, + { + "name": "private_key", + "type": "config.core.v3.DataSource", + "number": 2, + "label": "" + }, + { + "name": "pkcs12", + "type": "config.core.v3.DataSource", + "number": 8, + "label": "" + }, + { + "name": "watched_directory", + "type": "config.core.v3.WatchedDirectory", + "number": 7, + "label": "" + }, + { + "name": "private_key_provider", + "type": "PrivateKeyProvider", + "number": 6, + "label": "" + }, + { + "name": "password", + "type": "config.core.v3.DataSource", + "number": 3, + "label": "" + }, + { + "name": "ocsp_staple", + "type": "config.core.v3.DataSource", + "number": 4, + "label": "" + }, + { + "name": "signed_certificate_timestamp", + "type": "config.core.v3.DataSource", + "number": 5, + "label": "repeated" + } + ] + }, + { + "name": "envoy.extensions.transport_sockets.tls.v3.TlsSessionTicketKeys", + "fields": [ + { + "name": "keys", + "type": "config.core.v3.DataSource", + "number": 1, + "label": "repeated" + } + ] + }, + { + "name": "envoy.extensions.transport_sockets.tls.v3.CertificateProviderPluginInstance", + "fields": [ + { + "name": "instance_name", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "certificate_name", + "type": "string", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.extensions.transport_sockets.tls.v3.SubjectAltNameMatcher", + "fields": [ + { + "name": "san_type", + "type": "SanType", + "number": 1, + "label": "" + }, + { + "name": "matcher", + "type": "type.matcher.v3.StringMatcher", + "number": 2, + "label": "" + }, + { + "name": "oid", + "type": "string", + "number": 3, + "label": "" + } + ] + }, + { + "name": "envoy.extensions.transport_sockets.tls.v3.CertificateValidationContext", + "fields": [ + { + "name": "trusted_ca", + "type": "config.core.v3.DataSource", + "number": 1, + "label": "" + }, + { + "name": "ca_certificate_provider_instance", + "type": "CertificateProviderPluginInstance", + "number": 13, + "label": "" + }, + { + "name": "system_root_certs", + "type": "SystemRootCerts", + "number": 17, + "label": "" + }, + { + "name": "watched_directory", + "type": "config.core.v3.WatchedDirectory", + "number": 11, + "label": "" + }, + { + "name": "verify_certificate_spki", + "type": "string", + "number": 3, + "label": "repeated" + }, + { + "name": "verify_certificate_hash", + "type": "string", + "number": 2, + "label": "repeated" + }, + { + "name": "match_typed_subject_alt_names", + "type": "SubjectAltNameMatcher", + "number": 15, + "label": "repeated" + }, + { + "name": "match_subject_alt_names", + "type": "type.matcher.v3.StringMatcher", + "number": 9, + "label": "repeated" + }, + { + "name": "require_signed_certificate_timestamp", + "type": "google.protobuf.BoolValue", + "number": 6, + "label": "" + }, + { + "name": "crl", + "type": "config.core.v3.DataSource", + "number": 7, + "label": "" + }, + { + "name": "allow_expired_certificate", + "type": "bool", + "number": 8, + "label": "" + }, + { + "name": "trust_chain_verification", + "type": "TrustChainVerification", + "number": 10, + "label": "" + }, + { + "name": "custom_validator_config", + "type": "config.core.v3.TypedExtensionConfig", + "number": 12, + "label": "" + }, + { + "name": "only_verify_leaf_cert_crl", + "type": "bool", + "number": 14, + "label": "" + }, + { + "name": "max_verify_depth", + "type": "google.protobuf.UInt32Value", + "number": 16, + "label": "" + } + ] + }, + { + "name": "envoy.extensions.transport_sockets.tls.v3.CertificateValidationContext.SystemRootCerts", + "fields": [] + } + ], + "enums": [ + { + "name": "envoy.extensions.transport_sockets.tls.v3.TlsParameters.TlsProtocol", + "values": [ + { + "name": "TLS_AUTO", + "number": 0 + }, + { + "name": "TLSv1_0", + "number": 1 + }, + { + "name": "TLSv1_1", + "number": 2 + }, + { + "name": "TLSv1_2", + "number": 3 + }, + { + "name": "TLSv1_3", + "number": 4 + } + ] + }, + { + "name": "envoy.extensions.transport_sockets.tls.v3.SubjectAltNameMatcher.SanType", + "values": [ + { + "name": "SAN_TYPE_UNSPECIFIED", + "number": 0 + }, + { + "name": "EMAIL", + "number": 1 + }, + { + "name": "DNS", + "number": 2 + }, + { + "name": "URI", + "number": 3 + }, + { + "name": "IP_ADDRESS", + "number": 4 + }, + { + "name": "OTHER_NAME", + "number": 5 + } + ] + }, + { + "name": "envoy.extensions.transport_sockets.tls.v3.CertificateValidationContext.TrustChainVerification", + "values": [ + { + "name": "VERIFY_TRUST_CHAIN", + "number": 0 + }, + { + "name": "ACCEPT_UNTRUSTED", + "number": 1 + } + ] + } + ], + "services": [] + }, + { + "path": "envoy/extensions/transport_sockets/tls/v3/secret.proto", + "package": "envoy.extensions.transport_sockets.tls.v3", + "application": false, + "syntax": "proto3", + "sha256": "e051bc94cb1c81e6b0e74ca29698d1bf827c8aace9f95a8838906dc09017a37a", + "imports": [ + "envoy/config/core/v3/base.proto", + "envoy/config/core/v3/config_source.proto", + "envoy/extensions/transport_sockets/tls/v3/common.proto", + "udpa/annotations/sensitive.proto", + "udpa/annotations/status.proto", + "udpa/annotations/versioning.proto", + "validate/validate.proto" + ], + "messages": [ + { + "name": "envoy.extensions.transport_sockets.tls.v3.GenericSecret", + "fields": [ + { + "name": "secret", + "type": "config.core.v3.DataSource", + "number": 1, + "label": "" + } + ] + }, + { + "name": "envoy.extensions.transport_sockets.tls.v3.SdsSecretConfig", + "fields": [ + { + "name": "name", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "sds_config", + "type": "config.core.v3.ConfigSource", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.extensions.transport_sockets.tls.v3.Secret", + "fields": [ + { + "name": "name", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "tls_certificate", + "type": "TlsCertificate", + "number": 2, + "label": "" + }, + { + "name": "session_ticket_keys", + "type": "TlsSessionTicketKeys", + "number": 3, + "label": "" + }, + { + "name": "validation_context", + "type": "CertificateValidationContext", + "number": 4, + "label": "" + }, + { + "name": "generic_secret", + "type": "GenericSecret", + "number": 5, + "label": "" + } + ] + } + ], + "enums": [], + "services": [] + }, + { + "path": "envoy/extensions/transport_sockets/tls/v3/tls.proto", + "package": "envoy.extensions.transport_sockets.tls.v3", + "application": false, + "syntax": "proto3", + "sha256": "a4f885322a4558cd1b989b7e533b3d59a44812f9073a9dc0e02bfb03f3f49bfb", + "imports": [ + "envoy/config/core/v3/address.proto", + "envoy/config/core/v3/extension.proto", + "envoy/extensions/transport_sockets/tls/v3/common.proto", + "envoy/extensions/transport_sockets/tls/v3/secret.proto", + "google/protobuf/duration.proto", + "google/protobuf/wrappers.proto", + "envoy/annotations/deprecation.proto", + "udpa/annotations/status.proto", + "udpa/annotations/versioning.proto", + "validate/validate.proto" + ], + "messages": [ + { + "name": "envoy.extensions.transport_sockets.tls.v3.UpstreamTlsContext", + "fields": [ + { + "name": "common_tls_context", + "type": "CommonTlsContext", + "number": 1, + "label": "" + }, + { + "name": "sni", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "auto_host_sni", + "type": "bool", + "number": 6, + "label": "" + }, + { + "name": "auto_sni_san_validation", + "type": "bool", + "number": 7, + "label": "" + }, + { + "name": "allow_renegotiation", + "type": "bool", + "number": 3, + "label": "" + }, + { + "name": "max_session_keys", + "type": "google.protobuf.UInt32Value", + "number": 4, + "label": "" + }, + { + "name": "enforce_rsa_key_usage", + "type": "google.protobuf.BoolValue", + "number": 5, + "label": "" + } + ] + }, + { + "name": "envoy.extensions.transport_sockets.tls.v3.DownstreamTlsContext", + "fields": [ + { + "name": "common_tls_context", + "type": "CommonTlsContext", + "number": 1, + "label": "" + }, + { + "name": "require_client_certificate", + "type": "google.protobuf.BoolValue", + "number": 2, + "label": "" + }, + { + "name": "require_sni", + "type": "google.protobuf.BoolValue", + "number": 3, + "label": "" + }, + { + "name": "disable_stateful_session_resumption", + "type": "bool", + "number": 10, + "label": "" + }, + { + "name": "session_timeout", + "type": "google.protobuf.Duration", + "number": 6, + "label": "" + }, + { + "name": "ocsp_staple_policy", + "type": "OcspStaplePolicy", + "number": 8, + "label": "" + }, + { + "name": "full_scan_certs_on_sni_mismatch", + "type": "google.protobuf.BoolValue", + "number": 9, + "label": "" + }, + { + "name": "prefer_client_ciphers", + "type": "bool", + "number": 11, + "label": "" + }, + { + "name": "session_ticket_keys", + "type": "TlsSessionTicketKeys", + "number": 4, + "label": "" + }, + { + "name": "session_ticket_keys_sds_secret_config", + "type": "SdsSecretConfig", + "number": 5, + "label": "" + }, + { + "name": "disable_stateless_session_resumption", + "type": "bool", + "number": 7, + "label": "" + } + ] + }, + { + "name": "envoy.extensions.transport_sockets.tls.v3.TlsKeyLog", + "fields": [ + { + "name": "path", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "local_address_range", + "type": "config.core.v3.CidrRange", + "number": 2, + "label": "repeated" + }, + { + "name": "remote_address_range", + "type": "config.core.v3.CidrRange", + "number": 3, + "label": "repeated" + } + ] + }, + { + "name": "envoy.extensions.transport_sockets.tls.v3.CommonTlsContext", + "fields": [ + { + "name": "tls_params", + "type": "TlsParameters", + "number": 1, + "label": "" + }, + { + "name": "tls_certificates", + "type": "TlsCertificate", + "number": 2, + "label": "repeated" + }, + { + "name": "tls_certificate_sds_secret_configs", + "type": "SdsSecretConfig", + "number": 6, + "label": "repeated" + }, + { + "name": "tls_certificate_provider_instance", + "type": "CertificateProviderPluginInstance", + "number": 14, + "label": "" + }, + { + "name": "custom_tls_certificate_selector", + "type": "config.core.v3.TypedExtensionConfig", + "number": 16, + "label": "" + }, + { + "name": "tls_certificate_certificate_provider", + "type": "CertificateProvider", + "number": 9, + "label": "" + }, + { + "name": "tls_certificate_certificate_provider_instance", + "type": "CertificateProviderInstance", + "number": 11, + "label": "" + }, + { + "name": "alpn_protocols", + "type": "string", + "number": 4, + "label": "repeated" + }, + { + "name": "custom_handshaker", + "type": "config.core.v3.TypedExtensionConfig", + "number": 13, + "label": "" + }, + { + "name": "key_log", + "type": "TlsKeyLog", + "number": 15, + "label": "" + }, + { + "name": "validation_context", + "type": "CertificateValidationContext", + "number": 3, + "label": "" + }, + { + "name": "validation_context_sds_secret_config", + "type": "SdsSecretConfig", + "number": 7, + "label": "" + }, + { + "name": "combined_validation_context", + "type": "CombinedCertificateValidationContext", + "number": 8, + "label": "" + }, + { + "name": "validation_context_certificate_provider", + "type": "CertificateProvider", + "number": 10, + "label": "" + }, + { + "name": "validation_context_certificate_provider_instance", + "type": "CertificateProviderInstance", + "number": 12, + "label": "" + } + ] + }, + { + "name": "envoy.extensions.transport_sockets.tls.v3.CommonTlsContext.CertificateProvider", + "fields": [ + { + "name": "name", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "typed_config", + "type": "config.core.v3.TypedExtensionConfig", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.extensions.transport_sockets.tls.v3.CommonTlsContext.CertificateProviderInstance", + "fields": [ + { + "name": "instance_name", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "certificate_name", + "type": "string", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.extensions.transport_sockets.tls.v3.CommonTlsContext.CombinedCertificateValidationContext", + "fields": [ + { + "name": "default_validation_context", + "type": "CertificateValidationContext", + "number": 1, + "label": "" + }, + { + "name": "validation_context_sds_secret_config", + "type": "SdsSecretConfig", + "number": 2, + "label": "" + }, + { + "name": "validation_context_certificate_provider", + "type": "CertificateProvider", + "number": 3, + "label": "" + }, + { + "name": "validation_context_certificate_provider_instance", + "type": "CertificateProviderInstance", + "number": 4, + "label": "" + } + ] + } + ], + "enums": [ + { + "name": "envoy.extensions.transport_sockets.tls.v3.DownstreamTlsContext.OcspStaplePolicy", + "values": [ + { + "name": "LENIENT_STAPLING", + "number": 0 + }, + { + "name": "STRICT_STAPLING", + "number": 1 + }, + { + "name": "MUST_STAPLE", + "number": 2 + } + ] + } + ], + "services": [] + }, + { + "path": "envoy/extensions/upstreams/http/v3/http_protocol_options.proto", + "package": "envoy.extensions.upstreams.http.v3", + "application": false, + "syntax": "proto3", + "sha256": "30c32a343c7195a62f45113a85db7577e25ee0d106029e5850fedf96e9dc1857", + "imports": [ + "envoy/config/core/v3/extension.proto", + "envoy/config/core/v3/protocol.proto", + "envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.proto", + "udpa/annotations/status.proto", + "validate/validate.proto" + ], + "messages": [ + { + "name": "envoy.extensions.upstreams.http.v3.HttpProtocolOptions", + "fields": [ + { + "name": "common_http_protocol_options", + "type": "config.core.v3.HttpProtocolOptions", + "number": 1, + "label": "" + }, + { + "name": "upstream_http_protocol_options", + "type": "config.core.v3.UpstreamHttpProtocolOptions", + "number": 2, + "label": "" + }, + { + "name": "http_filters", + "type": "filters.network.http_connection_manager.v3.HttpFilter", + "number": 6, + "label": "repeated" + }, + { + "name": "header_validation_config", + "type": "config.core.v3.TypedExtensionConfig", + "number": 7, + "label": "" + }, + { + "name": "explicit_http_config", + "type": "ExplicitHttpConfig", + "number": 3, + "label": "" + }, + { + "name": "use_downstream_protocol_config", + "type": "UseDownstreamHttpConfig", + "number": 4, + "label": "" + }, + { + "name": "auto_config", + "type": "AutoHttpConfig", + "number": 5, + "label": "" + } + ] + }, + { + "name": "envoy.extensions.upstreams.http.v3.HttpProtocolOptions.ExplicitHttpConfig", + "fields": [ + { + "name": "http_protocol_options", + "type": "config.core.v3.Http1ProtocolOptions", + "number": 1, + "label": "" + }, + { + "name": "http2_protocol_options", + "type": "config.core.v3.Http2ProtocolOptions", + "number": 2, + "label": "" + }, + { + "name": "http3_protocol_options", + "type": "config.core.v3.Http3ProtocolOptions", + "number": 3, + "label": "" + } + ] + }, + { + "name": "envoy.extensions.upstreams.http.v3.HttpProtocolOptions.UseDownstreamHttpConfig", + "fields": [ + { + "name": "http_protocol_options", + "type": "config.core.v3.Http1ProtocolOptions", + "number": 1, + "label": "" + }, + { + "name": "http2_protocol_options", + "type": "config.core.v3.Http2ProtocolOptions", + "number": 2, + "label": "" + }, + { + "name": "http3_protocol_options", + "type": "config.core.v3.Http3ProtocolOptions", + "number": 3, + "label": "" + } + ] + }, + { + "name": "envoy.extensions.upstreams.http.v3.HttpProtocolOptions.AutoHttpConfig", + "fields": [ + { + "name": "http_protocol_options", + "type": "config.core.v3.Http1ProtocolOptions", + "number": 1, + "label": "" + }, + { + "name": "http2_protocol_options", + "type": "config.core.v3.Http2ProtocolOptions", + "number": 2, + "label": "" + }, + { + "name": "http3_protocol_options", + "type": "config.core.v3.Http3ProtocolOptions", + "number": 3, + "label": "" + }, + { + "name": "alternate_protocols_cache_options", + "type": "config.core.v3.AlternateProtocolsCacheOptions", + "number": 4, + "label": "" + } + ] + } + ], + "enums": [], + "services": [] + }, + { + "path": "envoy/service/discovery/v3/discovery.proto", + "package": "envoy.service.discovery.v3", + "application": false, + "syntax": "proto3", + "sha256": "0cc30f6516865289027e92051bac2f08fcf6113849d66ee0b72508b0af45e640", + "imports": [ + "envoy/config/core/v3/base.proto", + "google/protobuf/any.proto", + "google/protobuf/duration.proto", + "google/rpc/status.proto", + "udpa/annotations/status.proto", + "udpa/annotations/versioning.proto", + "validate/validate.proto" + ], + "messages": [ + { + "name": "envoy.service.discovery.v3.ResourceLocator", + "fields": [ + { + "name": "name", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "dynamic_parameters", + "type": "map", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.service.discovery.v3.ResourceName", + "fields": [ + { + "name": "name", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "dynamic_parameter_constraints", + "type": "DynamicParameterConstraints", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.service.discovery.v3.ResourceError", + "fields": [ + { + "name": "resource_name", + "type": "ResourceName", + "number": 1, + "label": "" + }, + { + "name": "error_detail", + "type": "google.rpc.Status", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.service.discovery.v3.DiscoveryRequest", + "fields": [ + { + "name": "version_info", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "node", + "type": "config.core.v3.Node", + "number": 2, + "label": "" + }, + { + "name": "resource_names", + "type": "string", + "number": 3, + "label": "repeated" + }, + { + "name": "resource_locators", + "type": "ResourceLocator", + "number": 7, + "label": "repeated" + }, + { + "name": "type_url", + "type": "string", + "number": 4, + "label": "" + }, + { + "name": "response_nonce", + "type": "string", + "number": 5, + "label": "" + }, + { + "name": "error_detail", + "type": "google.rpc.Status", + "number": 6, + "label": "" + } + ] + }, + { + "name": "envoy.service.discovery.v3.DiscoveryResponse", + "fields": [ + { + "name": "version_info", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "resources", + "type": "google.protobuf.Any", + "number": 2, + "label": "repeated" + }, + { + "name": "canary", + "type": "bool", + "number": 3, + "label": "" + }, + { + "name": "type_url", + "type": "string", + "number": 4, + "label": "" + }, + { + "name": "nonce", + "type": "string", + "number": 5, + "label": "" + }, + { + "name": "control_plane", + "type": "config.core.v3.ControlPlane", + "number": 6, + "label": "" + }, + { + "name": "resource_errors", + "type": "ResourceError", + "number": 7, + "label": "repeated" + } + ] + }, + { + "name": "envoy.service.discovery.v3.DeltaDiscoveryRequest", + "fields": [ + { + "name": "node", + "type": "config.core.v3.Node", + "number": 1, + "label": "" + }, + { + "name": "type_url", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "resource_names_subscribe", + "type": "string", + "number": 3, + "label": "repeated" + }, + { + "name": "resource_names_unsubscribe", + "type": "string", + "number": 4, + "label": "repeated" + }, + { + "name": "resource_locators_subscribe", + "type": "ResourceLocator", + "number": 8, + "label": "repeated" + }, + { + "name": "resource_locators_unsubscribe", + "type": "ResourceLocator", + "number": 9, + "label": "repeated" + }, + { + "name": "initial_resource_versions", + "type": "map", + "number": 5, + "label": "" + }, + { + "name": "response_nonce", + "type": "string", + "number": 6, + "label": "" + }, + { + "name": "error_detail", + "type": "google.rpc.Status", + "number": 7, + "label": "" + } + ] + }, + { + "name": "envoy.service.discovery.v3.DeltaDiscoveryResponse", + "fields": [ + { + "name": "system_version_info", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "resources", + "type": "Resource", + "number": 2, + "label": "repeated" + }, + { + "name": "type_url", + "type": "string", + "number": 4, + "label": "" + }, + { + "name": "removed_resources", + "type": "string", + "number": 6, + "label": "repeated" + }, + { + "name": "removed_resource_names", + "type": "ResourceName", + "number": 8, + "label": "repeated" + }, + { + "name": "nonce", + "type": "string", + "number": 5, + "label": "" + }, + { + "name": "control_plane", + "type": "config.core.v3.ControlPlane", + "number": 7, + "label": "" + }, + { + "name": "resource_errors", + "type": "ResourceError", + "number": 9, + "label": "repeated" + } + ] + }, + { + "name": "envoy.service.discovery.v3.DynamicParameterConstraints", + "fields": [ + { + "name": "constraint", + "type": "SingleConstraint", + "number": 1, + "label": "" + }, + { + "name": "or_constraints", + "type": "ConstraintList", + "number": 2, + "label": "" + }, + { + "name": "and_constraints", + "type": "ConstraintList", + "number": 3, + "label": "" + }, + { + "name": "not_constraints", + "type": "DynamicParameterConstraints", + "number": 4, + "label": "" + } + ] + }, + { + "name": "envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint", + "fields": [ + { + "name": "key", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "value", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "exists", + "type": "Exists", + "number": 3, + "label": "" + } + ] + }, + { + "name": "envoy.service.discovery.v3.DynamicParameterConstraints.SingleConstraint.Exists", + "fields": [] + }, + { + "name": "envoy.service.discovery.v3.DynamicParameterConstraints.ConstraintList", + "fields": [ + { + "name": "constraints", + "type": "DynamicParameterConstraints", + "number": 1, + "label": "repeated" + } + ] + }, + { + "name": "envoy.service.discovery.v3.Resource", + "fields": [ + { + "name": "name", + "type": "string", + "number": 3, + "label": "" + }, + { + "name": "resource_name", + "type": "ResourceName", + "number": 8, + "label": "" + }, + { + "name": "aliases", + "type": "string", + "number": 4, + "label": "repeated" + }, + { + "name": "version", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "resource", + "type": "google.protobuf.Any", + "number": 2, + "label": "" + }, + { + "name": "ttl", + "type": "google.protobuf.Duration", + "number": 6, + "label": "" + }, + { + "name": "cache_control", + "type": "CacheControl", + "number": 7, + "label": "" + }, + { + "name": "metadata", + "type": "config.core.v3.Metadata", + "number": 9, + "label": "" + } + ] + }, + { + "name": "envoy.service.discovery.v3.Resource.CacheControl", + "fields": [ + { + "name": "do_not_cache", + "type": "bool", + "number": 1, + "label": "" + } + ] + } + ], + "enums": [], + "services": [] + }, + { + "path": "envoy/service/load_stats/v3/lrs.proto", + "package": "envoy.service.load_stats.v3", + "application": false, + "syntax": "proto3", + "sha256": "59fb82ea99b96b2f422b9bb85e6e3698eeca0f1ae28cc92c810fe02bd3d35f0c", + "imports": [ + "envoy/config/core/v3/base.proto", + "envoy/config/endpoint/v3/load_report.proto", + "google/protobuf/duration.proto", + "udpa/annotations/status.proto", + "udpa/annotations/versioning.proto" + ], + "messages": [ + { + "name": "envoy.service.load_stats.v3.LoadStatsRequest", + "fields": [ + { + "name": "node", + "type": "config.core.v3.Node", + "number": 1, + "label": "" + }, + { + "name": "cluster_stats", + "type": "config.endpoint.v3.ClusterStats", + "number": 2, + "label": "repeated" + } + ] + }, + { + "name": "envoy.service.load_stats.v3.LoadStatsResponse", + "fields": [ + { + "name": "clusters", + "type": "string", + "number": 1, + "label": "repeated" + }, + { + "name": "send_all_clusters", + "type": "bool", + "number": 4, + "label": "" + }, + { + "name": "load_reporting_interval", + "type": "google.protobuf.Duration", + "number": 2, + "label": "" + }, + { + "name": "report_endpoint_granularity", + "type": "bool", + "number": 3, + "label": "" + } + ] + } + ], + "enums": [], + "services": [ + { + "name": "envoy.service.load_stats.v3.LoadReportingService", + "methods": [ + { + "name": "StreamLoadStats", + "request_declared": "LoadStatsRequest", + "response_declared": "LoadStatsResponse", + "client_streaming": true, + "server_streaming": true, + "path": "/envoy.service.load_stats.v3.LoadReportingService/StreamLoadStats", + "request": "envoy.service.load_stats.v3.LoadStatsRequest", + "response": "envoy.service.load_stats.v3.LoadStatsResponse", + "body_auth_observations": "None declared" + } + ] + } + ] + }, + { + "path": "envoy/type/http/v3/cookie.proto", + "package": "envoy.type.http.v3", + "application": false, + "syntax": "proto3", + "sha256": "aeb1bbe5337bf1ce6bf49fc316116aacef094386598df4ff76a03f4f6010ff35", + "imports": [ + "google/protobuf/duration.proto", + "udpa/annotations/status.proto", + "validate/validate.proto" + ], + "messages": [ + { + "name": "envoy.type.http.v3.Cookie", + "fields": [ + { + "name": "name", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "ttl", + "type": "google.protobuf.Duration", + "number": 2, + "label": "" + }, + { + "name": "path", + "type": "string", + "number": 3, + "label": "" + } + ] + } + ], + "enums": [], + "services": [] + }, + { + "path": "envoy/type/http/v3/path_transformation.proto", + "package": "envoy.type.http.v3", + "application": false, + "syntax": "proto3", + "sha256": "52395a732fe5797107eec6990853e380d8e913122fe2bc5a4223ff7aeb1c6c21", + "imports": [ + "udpa/annotations/status.proto", + "validate/validate.proto" + ], + "messages": [ + { + "name": "envoy.type.http.v3.PathTransformation", + "fields": [ + { + "name": "operations", + "type": "Operation", + "number": 1, + "label": "repeated" + } + ] + }, + { + "name": "envoy.type.http.v3.PathTransformation.Operation", + "fields": [ + { + "name": "normalize_path_rfc_3986", + "type": "NormalizePathRFC3986", + "number": 2, + "label": "" + }, + { + "name": "merge_slashes", + "type": "MergeSlashes", + "number": 3, + "label": "" + } + ] + }, + { + "name": "envoy.type.http.v3.PathTransformation.Operation.NormalizePathRFC3986", + "fields": [] + }, + { + "name": "envoy.type.http.v3.PathTransformation.Operation.MergeSlashes", + "fields": [] + } + ], + "enums": [], + "services": [] + }, + { + "path": "envoy/type/matcher/v3/address.proto", + "package": "envoy.type.matcher.v3", + "application": false, + "syntax": "proto3", + "sha256": "faeb13858671509b643b89566cb80560e8772238daa8bffa13bb61c19e9f7e49", + "imports": [ + "xds/core/v3/cidr.proto", + "udpa/annotations/status.proto" + ], + "messages": [ + { + "name": "envoy.type.matcher.v3.AddressMatcher", + "fields": [ + { + "name": "ranges", + "type": "xds.core.v3.CidrRange", + "number": 1, + "label": "repeated" + } + ] + } + ], + "enums": [], + "services": [] + }, + { + "path": "envoy/type/matcher/v3/filter_state.proto", + "package": "envoy.type.matcher.v3", + "application": false, + "syntax": "proto3", + "sha256": "4c27c5277de33b23afcdbd8326e804d17e3868e0c342b021d89421c4766c34fa", + "imports": [ + "envoy/type/matcher/v3/address.proto", + "envoy/type/matcher/v3/string.proto", + "udpa/annotations/status.proto", + "validate/validate.proto" + ], + "messages": [ + { + "name": "envoy.type.matcher.v3.FilterStateMatcher", + "fields": [ + { + "name": "key", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "string_match", + "type": "StringMatcher", + "number": 2, + "label": "" + }, + { + "name": "address_match", + "type": "AddressMatcher", + "number": 3, + "label": "" + } + ] + } + ], + "enums": [], + "services": [] + }, + { + "path": "envoy/type/matcher/v3/metadata.proto", + "package": "envoy.type.matcher.v3", + "application": false, + "syntax": "proto3", + "sha256": "520a94abcce8eb05e72a8d732e5ba978a54261ab6acbfe56a2fd8092f9355a33", + "imports": [ + "envoy/type/matcher/v3/value.proto", + "udpa/annotations/status.proto", + "udpa/annotations/versioning.proto", + "validate/validate.proto" + ], + "messages": [ + { + "name": "envoy.type.matcher.v3.MetadataMatcher", + "fields": [ + { + "name": "filter", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "path", + "type": "PathSegment", + "number": 2, + "label": "repeated" + }, + { + "name": "value", + "type": "ValueMatcher", + "number": 3, + "label": "" + }, + { + "name": "invert", + "type": "bool", + "number": 4, + "label": "" + } + ] + }, + { + "name": "envoy.type.matcher.v3.MetadataMatcher.PathSegment", + "fields": [ + { + "name": "key", + "type": "string", + "number": 1, + "label": "" + } + ] + } + ], + "enums": [], + "services": [] + }, + { + "path": "envoy/type/matcher/v3/number.proto", + "package": "envoy.type.matcher.v3", + "application": false, + "syntax": "proto3", + "sha256": "44ba276099ae1f4a0703e9b53e6eefbc853326fb7bad989886d0c809e31d2dd5", + "imports": [ + "envoy/type/v3/range.proto", + "udpa/annotations/status.proto", + "udpa/annotations/versioning.proto", + "validate/validate.proto" + ], + "messages": [ + { + "name": "envoy.type.matcher.v3.DoubleMatcher", + "fields": [ + { + "name": "range", + "type": "type.v3.DoubleRange", + "number": 1, + "label": "" + }, + { + "name": "exact", + "type": "double", + "number": 2, + "label": "" + } + ] + } + ], + "enums": [], + "services": [] + }, + { + "path": "envoy/type/matcher/v3/path.proto", + "package": "envoy.type.matcher.v3", + "application": false, + "syntax": "proto3", + "sha256": "c27897c86c909b92bb906ccc28fc902ecab9d5ba9b66eb6a0ac68a00b7f2eb84", + "imports": [ + "envoy/type/matcher/v3/string.proto", + "udpa/annotations/status.proto", + "udpa/annotations/versioning.proto", + "validate/validate.proto" + ], + "messages": [ + { + "name": "envoy.type.matcher.v3.PathMatcher", + "fields": [ + { + "name": "path", + "type": "StringMatcher", + "number": 1, + "label": "" + } + ] + } + ], + "enums": [], + "services": [] + }, + { + "path": "envoy/type/matcher/v3/regex.proto", + "package": "envoy.type.matcher.v3", + "application": false, + "syntax": "proto3", + "sha256": "464d7c6ca5b0840da50f52792edd027137860dad59dcd20beb85d4d9283e38fe", + "imports": [ + "google/protobuf/wrappers.proto", + "envoy/annotations/deprecation.proto", + "udpa/annotations/status.proto", + "udpa/annotations/versioning.proto", + "validate/validate.proto" + ], + "messages": [ + { + "name": "envoy.type.matcher.v3.RegexMatcher", + "fields": [ + { + "name": "regex", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "google_re2", + "type": "GoogleRE2", + "number": 1, + "label": "" + } + ] + }, + { + "name": "envoy.type.matcher.v3.RegexMatcher.GoogleRE2", + "fields": [ + { + "name": "max_program_size", + "type": "google.protobuf.UInt32Value", + "number": 1, + "label": "" + } + ] + }, + { + "name": "envoy.type.matcher.v3.RegexMatchAndSubstitute", + "fields": [ + { + "name": "pattern", + "type": "RegexMatcher", + "number": 1, + "label": "" + }, + { + "name": "substitution", + "type": "string", + "number": 2, + "label": "" + } + ] + } + ], + "enums": [], + "services": [] + }, + { + "path": "envoy/type/matcher/v3/string.proto", + "package": "envoy.type.matcher.v3", + "application": false, + "syntax": "proto3", + "sha256": "ff03ed2e251420a9e0f1c65e193a41909a6a9ea4e041e5459b98d798775982b5", + "imports": [ + "envoy/type/matcher/v3/regex.proto", + "xds/core/v3/extension.proto", + "udpa/annotations/status.proto", + "udpa/annotations/versioning.proto", + "validate/validate.proto" + ], + "messages": [ + { + "name": "envoy.type.matcher.v3.StringMatcher", + "fields": [ + { + "name": "ignore_case", + "type": "bool", + "number": 6, + "label": "" + }, + { + "name": "exact", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "prefix", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "suffix", + "type": "string", + "number": 3, + "label": "" + }, + { + "name": "safe_regex", + "type": "RegexMatcher", + "number": 5, + "label": "" + }, + { + "name": "contains", + "type": "string", + "number": 7, + "label": "" + }, + { + "name": "custom", + "type": "xds.core.v3.TypedExtensionConfig", + "number": 8, + "label": "" + } + ] + }, + { + "name": "envoy.type.matcher.v3.ListStringMatcher", + "fields": [ + { + "name": "patterns", + "type": "StringMatcher", + "number": 1, + "label": "repeated" + } + ] + } + ], + "enums": [], + "services": [] + }, + { + "path": "envoy/type/matcher/v3/value.proto", + "package": "envoy.type.matcher.v3", + "application": false, + "syntax": "proto3", + "sha256": "9cd8a5eb4ddf7595a1a3346a3569340d26396946cb1044cda93f2e3334741881", + "imports": [ + "envoy/type/matcher/v3/number.proto", + "envoy/type/matcher/v3/string.proto", + "udpa/annotations/status.proto", + "udpa/annotations/versioning.proto", + "validate/validate.proto" + ], + "messages": [ + { + "name": "envoy.type.matcher.v3.ValueMatcher", + "fields": [ + { + "name": "null_match", + "type": "NullMatch", + "number": 1, + "label": "" + }, + { + "name": "double_match", + "type": "DoubleMatcher", + "number": 2, + "label": "" + }, + { + "name": "string_match", + "type": "StringMatcher", + "number": 3, + "label": "" + }, + { + "name": "bool_match", + "type": "bool", + "number": 4, + "label": "" + }, + { + "name": "present_match", + "type": "bool", + "number": 5, + "label": "" + }, + { + "name": "list_match", + "type": "ListMatcher", + "number": 6, + "label": "" + }, + { + "name": "or_match", + "type": "OrMatcher", + "number": 7, + "label": "" + } + ] + }, + { + "name": "envoy.type.matcher.v3.ValueMatcher.NullMatch", + "fields": [] + }, + { + "name": "envoy.type.matcher.v3.ListMatcher", + "fields": [ + { + "name": "one_of", + "type": "ValueMatcher", + "number": 1, + "label": "" + } + ] + }, + { + "name": "envoy.type.matcher.v3.OrMatcher", + "fields": [ + { + "name": "value_matchers", + "type": "ValueMatcher", + "number": 1, + "label": "repeated" + } + ] + } + ], + "enums": [], + "services": [] + }, + { + "path": "envoy/type/metadata/v3/metadata.proto", + "package": "envoy.type.metadata.v3", + "application": false, + "syntax": "proto3", + "sha256": "72b4d73e79672753d17aabb092759c53656b506426def2fadacec25b9b192fc5", + "imports": [ + "udpa/annotations/status.proto", + "udpa/annotations/versioning.proto", + "validate/validate.proto" + ], + "messages": [ + { + "name": "envoy.type.metadata.v3.MetadataKey", + "fields": [ + { + "name": "key", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "path", + "type": "PathSegment", + "number": 2, + "label": "repeated" + } + ] + }, + { + "name": "envoy.type.metadata.v3.MetadataKey.PathSegment", + "fields": [ + { + "name": "key", + "type": "string", + "number": 1, + "label": "" + } + ] + }, + { + "name": "envoy.type.metadata.v3.MetadataKind", + "fields": [ + { + "name": "request", + "type": "Request", + "number": 1, + "label": "" + }, + { + "name": "route", + "type": "Route", + "number": 2, + "label": "" + }, + { + "name": "cluster", + "type": "Cluster", + "number": 3, + "label": "" + }, + { + "name": "host", + "type": "Host", + "number": 4, + "label": "" + } + ] + }, + { + "name": "envoy.type.metadata.v3.MetadataKind.Request", + "fields": [] + }, + { + "name": "envoy.type.metadata.v3.MetadataKind.Route", + "fields": [] + }, + { + "name": "envoy.type.metadata.v3.MetadataKind.Cluster", + "fields": [] + }, + { + "name": "envoy.type.metadata.v3.MetadataKind.Host", + "fields": [] + } + ], + "enums": [], + "services": [] + }, + { + "path": "envoy/type/tracing/v3/custom_tag.proto", + "package": "envoy.type.tracing.v3", + "application": false, + "syntax": "proto3", + "sha256": "9e7d359a79f600554620e891bc0dd57ed17b6371fccb8a39b465602c4fc94fb2", + "imports": [ + "envoy/type/metadata/v3/metadata.proto", + "udpa/annotations/status.proto", + "udpa/annotations/versioning.proto", + "validate/validate.proto" + ], + "messages": [ + { + "name": "envoy.type.tracing.v3.CustomTag", + "fields": [ + { + "name": "tag", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "literal", + "type": "Literal", + "number": 2, + "label": "" + }, + { + "name": "environment", + "type": "Environment", + "number": 3, + "label": "" + }, + { + "name": "request_header", + "type": "Header", + "number": 4, + "label": "" + }, + { + "name": "metadata", + "type": "Metadata", + "number": 5, + "label": "" + } + ] + }, + { + "name": "envoy.type.tracing.v3.CustomTag.Literal", + "fields": [ + { + "name": "value", + "type": "string", + "number": 1, + "label": "" + } + ] + }, + { + "name": "envoy.type.tracing.v3.CustomTag.Environment", + "fields": [ + { + "name": "name", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "default_value", + "type": "string", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.type.tracing.v3.CustomTag.Header", + "fields": [ + { + "name": "name", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "default_value", + "type": "string", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.type.tracing.v3.CustomTag.Metadata", + "fields": [ + { + "name": "kind", + "type": "metadata.v3.MetadataKind", + "number": 1, + "label": "" + }, + { + "name": "metadata_key", + "type": "metadata.v3.MetadataKey", + "number": 2, + "label": "" + }, + { + "name": "default_value", + "type": "string", + "number": 3, + "label": "" + } + ] + } + ], + "enums": [], + "services": [] + }, + { + "path": "envoy/type/v3/http.proto", + "package": "envoy.type.v3", + "application": false, + "syntax": "proto3", + "sha256": "5b317e3383739f5757f5cf0dafa7fcb24f7b36122d56f460f031d87f43849ef8", + "imports": [ + "udpa/annotations/status.proto" + ], + "messages": [], + "enums": [ + { + "name": "envoy.type.v3.CodecClientType", + "values": [ + { + "name": "HTTP1", + "number": 0 + }, + { + "name": "HTTP2", + "number": 1 + }, + { + "name": "HTTP3", + "number": 2 + } + ] + } + ], + "services": [] + }, + { + "path": "envoy/type/v3/percent.proto", + "package": "envoy.type.v3", + "application": false, + "syntax": "proto3", + "sha256": "bce04bd1edda53a51e79157bf156e278a90e66211cf6276204bd5f7032885a90", + "imports": [ + "udpa/annotations/status.proto", + "udpa/annotations/versioning.proto", + "validate/validate.proto" + ], + "messages": [ + { + "name": "envoy.type.v3.Percent", + "fields": [ + { + "name": "value", + "type": "double", + "number": 1, + "label": "" + } + ] + }, + { + "name": "envoy.type.v3.FractionalPercent", + "fields": [ + { + "name": "numerator", + "type": "uint32", + "number": 1, + "label": "" + }, + { + "name": "denominator", + "type": "DenominatorType", + "number": 2, + "label": "" + } + ] + } + ], + "enums": [ + { + "name": "envoy.type.v3.FractionalPercent.DenominatorType", + "values": [ + { + "name": "HUNDRED", + "number": 0 + }, + { + "name": "TEN_THOUSAND", + "number": 1 + }, + { + "name": "MILLION", + "number": 2 + } + ] + } + ], + "services": [] + }, + { + "path": "envoy/type/v3/range.proto", + "package": "envoy.type.v3", + "application": false, + "syntax": "proto3", + "sha256": "84a045a763ceb66acac3215f5b2eed0db0f893b104210a425c39ffbaa0ca0031", + "imports": [ + "udpa/annotations/status.proto", + "udpa/annotations/versioning.proto" + ], + "messages": [ + { + "name": "envoy.type.v3.Int64Range", + "fields": [ + { + "name": "start", + "type": "int64", + "number": 1, + "label": "" + }, + { + "name": "end", + "type": "int64", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.type.v3.Int32Range", + "fields": [ + { + "name": "start", + "type": "int32", + "number": 1, + "label": "" + }, + { + "name": "end", + "type": "int32", + "number": 2, + "label": "" + } + ] + }, + { + "name": "envoy.type.v3.DoubleRange", + "fields": [ + { + "name": "start", + "type": "double", + "number": 1, + "label": "" + }, + { + "name": "end", + "type": "double", + "number": 2, + "label": "" + } + ] + } + ], + "enums": [], + "services": [] + }, + { + "path": "envoy/type/v3/semantic_version.proto", + "package": "envoy.type.v3", + "application": false, + "syntax": "proto3", + "sha256": "9775b7f381b3eb1031fe943355072f3289ee68def0d73f4187a9329f209900b3", + "imports": [ + "udpa/annotations/status.proto", + "udpa/annotations/versioning.proto" + ], + "messages": [ + { + "name": "envoy.type.v3.SemanticVersion", + "fields": [ + { + "name": "major_number", + "type": "uint32", + "number": 1, + "label": "" + }, + { + "name": "minor_number", + "type": "uint32", + "number": 2, + "label": "" + }, + { + "name": "patch", + "type": "uint32", + "number": 3, + "label": "" + } + ] + } + ], + "enums": [], + "services": [] + }, + { + "path": "global_badge_list.proto", + "package": "com.teamspeak.myteamspeak.proto.cloud", + "application": true, + "syntax": "proto3", + "sha256": "aaffa8ae77016f6029e858ee47a67659b4cf2bb1d3e5be2cea5f4b6f2dc0add1", + "imports": [], + "messages": [ + { + "name": "com.teamspeak.myteamspeak.proto.cloud.BadgeList", + "fields": [ + { + "name": "version", + "type": "int32", + "number": 1, + "label": "" + }, + { + "name": "updated", + "type": "int64", + "number": 2, + "label": "" + }, + { + "name": "badges", + "type": "Badge", + "number": 3, + "label": "repeated" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.cloud.Badge", + "fields": [ + { + "name": "uuid", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "name", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "url", + "type": "string", + "number": 3, + "label": "" + }, + { + "name": "description", + "type": "string", + "number": 4, + "label": "" + }, + { + "name": "created", + "type": "int64", + "number": 5, + "label": "" + }, + { + "name": "version", + "type": "int32", + "number": 6, + "label": "" + } + ] + } + ], + "enums": [], + "services": [] + }, + { + "path": "google/api/expr/v1alpha1/checked.proto", + "package": "google.api.expr.v1alpha1", + "application": false, + "syntax": "proto3", + "sha256": "b062a86c3988570b9f3b05ede95f0720a8657b931c161f5ff06a20fece027cd8", + "imports": [ + "google/api/expr/v1alpha1/syntax.proto", + "google/protobuf/empty.proto", + "google/protobuf/struct.proto" + ], + "messages": [ + { + "name": "google.api.expr.v1alpha1.CheckedExpr", + "fields": [ + { + "name": "reference_map", + "type": "map", + "number": 2, + "label": "" + }, + { + "name": "type_map", + "type": "map", + "number": 3, + "label": "" + }, + { + "name": "source_info", + "type": "SourceInfo", + "number": 5, + "label": "" + }, + { + "name": "expr_version", + "type": "string", + "number": 6, + "label": "" + }, + { + "name": "expr", + "type": "Expr", + "number": 4, + "label": "" + } + ] + }, + { + "name": "google.api.expr.v1alpha1.Type", + "fields": [ + { + "name": "dyn", + "type": "protobuf.Empty", + "number": 1, + "label": "" + }, + { + "name": "null", + "type": "protobuf.NullValue", + "number": 2, + "label": "" + }, + { + "name": "primitive", + "type": "PrimitiveType", + "number": 3, + "label": "" + }, + { + "name": "wrapper", + "type": "PrimitiveType", + "number": 4, + "label": "" + }, + { + "name": "well_known", + "type": "WellKnownType", + "number": 5, + "label": "" + }, + { + "name": "list_type", + "type": "ListType", + "number": 6, + "label": "" + }, + { + "name": "map_type", + "type": "MapType", + "number": 7, + "label": "" + }, + { + "name": "function", + "type": "FunctionType", + "number": 8, + "label": "" + }, + { + "name": "message_type", + "type": "string", + "number": 9, + "label": "" + }, + { + "name": "type_param", + "type": "string", + "number": 10, + "label": "" + }, + { + "name": "type", + "type": "Type", + "number": 11, + "label": "" + }, + { + "name": "error", + "type": "protobuf.Empty", + "number": 12, + "label": "" + }, + { + "name": "abstract_type", + "type": "AbstractType", + "number": 14, + "label": "" + } + ] + }, + { + "name": "google.api.expr.v1alpha1.Type.ListType", + "fields": [ + { + "name": "elem_type", + "type": "Type", + "number": 1, + "label": "" + } + ] + }, + { + "name": "google.api.expr.v1alpha1.Type.MapType", + "fields": [ + { + "name": "key_type", + "type": "Type", + "number": 1, + "label": "" + }, + { + "name": "value_type", + "type": "Type", + "number": 2, + "label": "" + } + ] + }, + { + "name": "google.api.expr.v1alpha1.Type.FunctionType", + "fields": [ + { + "name": "result_type", + "type": "Type", + "number": 1, + "label": "" + }, + { + "name": "arg_types", + "type": "Type", + "number": 2, + "label": "repeated" + } + ] + }, + { + "name": "google.api.expr.v1alpha1.Type.AbstractType", + "fields": [ + { + "name": "name", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "parameter_types", + "type": "Type", + "number": 2, + "label": "repeated" + } + ] + }, + { + "name": "google.api.expr.v1alpha1.Decl", + "fields": [ + { + "name": "name", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "ident", + "type": "IdentDecl", + "number": 2, + "label": "" + }, + { + "name": "function", + "type": "FunctionDecl", + "number": 3, + "label": "" + } + ] + }, + { + "name": "google.api.expr.v1alpha1.Decl.IdentDecl", + "fields": [ + { + "name": "type", + "type": "Type", + "number": 1, + "label": "" + }, + { + "name": "value", + "type": "Constant", + "number": 2, + "label": "" + }, + { + "name": "doc", + "type": "string", + "number": 3, + "label": "" + } + ] + }, + { + "name": "google.api.expr.v1alpha1.Decl.FunctionDecl", + "fields": [ + { + "name": "overloads", + "type": "Overload", + "number": 1, + "label": "repeated" + } + ] + }, + { + "name": "google.api.expr.v1alpha1.Decl.FunctionDecl.Overload", + "fields": [ + { + "name": "overload_id", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "params", + "type": "Type", + "number": 2, + "label": "repeated" + }, + { + "name": "type_params", + "type": "string", + "number": 3, + "label": "repeated" + }, + { + "name": "result_type", + "type": "Type", + "number": 4, + "label": "" + }, + { + "name": "is_instance_function", + "type": "bool", + "number": 5, + "label": "" + }, + { + "name": "doc", + "type": "string", + "number": 6, + "label": "" + } + ] + }, + { + "name": "google.api.expr.v1alpha1.Reference", + "fields": [ + { + "name": "name", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "overload_id", + "type": "string", + "number": 3, + "label": "repeated" + }, + { + "name": "value", + "type": "Constant", + "number": 4, + "label": "" + } + ] + } + ], + "enums": [ + { + "name": "google.api.expr.v1alpha1.Type.PrimitiveType", + "values": [ + { + "name": "PRIMITIVE_TYPE_UNSPECIFIED", + "number": 0 + }, + { + "name": "BOOL", + "number": 1 + }, + { + "name": "INT64", + "number": 2 + }, + { + "name": "UINT64", + "number": 3 + }, + { + "name": "DOUBLE", + "number": 4 + }, + { + "name": "STRING", + "number": 5 + }, + { + "name": "BYTES", + "number": 6 + } + ] + }, + { + "name": "google.api.expr.v1alpha1.Type.WellKnownType", + "values": [ + { + "name": "WELL_KNOWN_TYPE_UNSPECIFIED", + "number": 0 + }, + { + "name": "ANY", + "number": 1 + }, + { + "name": "TIMESTAMP", + "number": 2 + }, + { + "name": "DURATION", + "number": 3 + } + ] + } + ], + "services": [] + }, + { + "path": "google/api/expr/v1alpha1/syntax.proto", + "package": "google.api.expr.v1alpha1", + "application": false, + "syntax": "proto3", + "sha256": "a5b4b9c0eb82f010431e2f8a71f8ce662654f69418ecffcd57e5f0d26d1787fe", + "imports": [ + "google/protobuf/duration.proto", + "google/protobuf/struct.proto", + "google/protobuf/timestamp.proto" + ], + "messages": [ + { + "name": "google.api.expr.v1alpha1.ParsedExpr", + "fields": [ + { + "name": "expr", + "type": "Expr", + "number": 2, + "label": "" + }, + { + "name": "source_info", + "type": "SourceInfo", + "number": 3, + "label": "" + } + ] + }, + { + "name": "google.api.expr.v1alpha1.Expr", + "fields": [ + { + "name": "id", + "type": "int64", + "number": 2, + "label": "" + }, + { + "name": "const_expr", + "type": "Constant", + "number": 3, + "label": "" + }, + { + "name": "ident_expr", + "type": "Ident", + "number": 4, + "label": "" + }, + { + "name": "select_expr", + "type": "Select", + "number": 5, + "label": "" + }, + { + "name": "call_expr", + "type": "Call", + "number": 6, + "label": "" + }, + { + "name": "list_expr", + "type": "CreateList", + "number": 7, + "label": "" + }, + { + "name": "struct_expr", + "type": "CreateStruct", + "number": 8, + "label": "" + }, + { + "name": "comprehension_expr", + "type": "Comprehension", + "number": 9, + "label": "" + } + ] + }, + { + "name": "google.api.expr.v1alpha1.Expr.Ident", + "fields": [ + { + "name": "name", + "type": "string", + "number": 1, + "label": "" + } + ] + }, + { + "name": "google.api.expr.v1alpha1.Expr.Select", + "fields": [ + { + "name": "operand", + "type": "Expr", + "number": 1, + "label": "" + }, + { + "name": "field", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "test_only", + "type": "bool", + "number": 3, + "label": "" + } + ] + }, + { + "name": "google.api.expr.v1alpha1.Expr.Call", + "fields": [ + { + "name": "target", + "type": "Expr", + "number": 1, + "label": "" + }, + { + "name": "function", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "args", + "type": "Expr", + "number": 3, + "label": "repeated" + } + ] + }, + { + "name": "google.api.expr.v1alpha1.Expr.CreateList", + "fields": [ + { + "name": "elements", + "type": "Expr", + "number": 1, + "label": "repeated" + }, + { + "name": "optional_indices", + "type": "int32", + "number": 2, + "label": "repeated" + } + ] + }, + { + "name": "google.api.expr.v1alpha1.Expr.CreateStruct", + "fields": [ + { + "name": "message_name", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "entries", + "type": "Entry", + "number": 2, + "label": "repeated" + } + ] + }, + { + "name": "google.api.expr.v1alpha1.Expr.CreateStruct.Entry", + "fields": [ + { + "name": "id", + "type": "int64", + "number": 1, + "label": "" + }, + { + "name": "value", + "type": "Expr", + "number": 4, + "label": "" + }, + { + "name": "optional_entry", + "type": "bool", + "number": 5, + "label": "" + }, + { + "name": "field_key", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "map_key", + "type": "Expr", + "number": 3, + "label": "" + } + ] + }, + { + "name": "google.api.expr.v1alpha1.Expr.Comprehension", + "fields": [ + { + "name": "iter_var", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "iter_var2", + "type": "string", + "number": 8, + "label": "" + }, + { + "name": "iter_range", + "type": "Expr", + "number": 2, + "label": "" + }, + { + "name": "accu_var", + "type": "string", + "number": 3, + "label": "" + }, + { + "name": "accu_init", + "type": "Expr", + "number": 4, + "label": "" + }, + { + "name": "loop_condition", + "type": "Expr", + "number": 5, + "label": "" + }, + { + "name": "loop_step", + "type": "Expr", + "number": 6, + "label": "" + }, + { + "name": "result", + "type": "Expr", + "number": 7, + "label": "" + } + ] + }, + { + "name": "google.api.expr.v1alpha1.Constant", + "fields": [ + { + "name": "null_value", + "type": "protobuf.NullValue", + "number": 1, + "label": "" + }, + { + "name": "bool_value", + "type": "bool", + "number": 2, + "label": "" + }, + { + "name": "int64_value", + "type": "int64", + "number": 3, + "label": "" + }, + { + "name": "uint64_value", + "type": "uint64", + "number": 4, + "label": "" + }, + { + "name": "double_value", + "type": "double", + "number": 5, + "label": "" + }, + { + "name": "string_value", + "type": "string", + "number": 6, + "label": "" + }, + { + "name": "bytes_value", + "type": "bytes", + "number": 7, + "label": "" + }, + { + "name": "duration_value", + "type": "protobuf.Duration", + "number": 8, + "label": "" + }, + { + "name": "timestamp_value", + "type": "protobuf.Timestamp", + "number": 9, + "label": "" + } + ] + }, + { + "name": "google.api.expr.v1alpha1.SourceInfo", + "fields": [ + { + "name": "syntax_version", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "location", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "line_offsets", + "type": "int32", + "number": 3, + "label": "repeated" + }, + { + "name": "positions", + "type": "map", + "number": 4, + "label": "" + }, + { + "name": "macro_calls", + "type": "map", + "number": 5, + "label": "" + }, + { + "name": "extensions", + "type": "Extension", + "number": 6, + "label": "repeated" + } + ] + }, + { + "name": "google.api.expr.v1alpha1.SourceInfo.Extension", + "fields": [ + { + "name": "id", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "affected_components", + "type": "Component", + "number": 2, + "label": "repeated" + }, + { + "name": "version", + "type": "Version", + "number": 3, + "label": "" + } + ] + }, + { + "name": "google.api.expr.v1alpha1.SourceInfo.Extension.Version", + "fields": [ + { + "name": "major", + "type": "int64", + "number": 1, + "label": "" + }, + { + "name": "minor", + "type": "int64", + "number": 2, + "label": "" + } + ] + }, + { + "name": "google.api.expr.v1alpha1.SourcePosition", + "fields": [ + { + "name": "location", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "offset", + "type": "int32", + "number": 2, + "label": "" + }, + { + "name": "line", + "type": "int32", + "number": 3, + "label": "" + }, + { + "name": "column", + "type": "int32", + "number": 4, + "label": "" + } + ] + } + ], + "enums": [ + { + "name": "google.api.expr.v1alpha1.SourceInfo.Extension.Component", + "values": [ + { + "name": "COMPONENT_UNSPECIFIED", + "number": 0 + }, + { + "name": "COMPONENT_PARSER", + "number": 1 + }, + { + "name": "COMPONENT_TYPE_CHECKER", + "number": 2 + }, + { + "name": "COMPONENT_RUNTIME", + "number": 3 + } + ] + } + ], + "services": [] + }, + { + "path": "google/protobuf/any.proto", + "package": "google.protobuf", + "application": false, + "syntax": "proto3", + "sha256": "286904b6aa8d3c63e096b590ac551867020d5e73c7c02ba3d1329b84c443fbde", + "imports": [], + "messages": [ + { + "name": "google.protobuf.Any", + "fields": [ + { + "name": "type_url", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "value", + "type": "bytes", + "number": 2, + "label": "" + } + ] + } + ], + "enums": [], + "services": [] + }, + { + "path": "google/protobuf/cpp_features.proto", + "package": "pb", + "application": false, + "syntax": "proto2", + "sha256": "f00fe8a7d9264d7a9742ac3d3000be6fd66ff7c92d6ead4f363fbd3932cebaea", + "imports": [ + "google/protobuf/descriptor.proto" + ], + "messages": [ + { + "name": "pb.CppFeatures", + "fields": [ + { + "name": "legacy_closed_enum", + "type": "bool", + "number": 1, + "label": "optional" + }, + { + "name": "string_type", + "type": "StringType", + "number": 2, + "label": "optional" + }, + { + "name": "enum_name_uses_string_view", + "type": "bool", + "number": 3, + "label": "optional" + } + ] + } + ], + "enums": [ + { + "name": "pb.CppFeatures.StringType", + "values": [ + { + "name": "STRING_TYPE_UNKNOWN", + "number": 0 + }, + { + "name": "VIEW", + "number": 1 + }, + { + "name": "CORD", + "number": 2 + }, + { + "name": "STRING", + "number": 3 + } + ] + } + ], + "services": [] + }, + { + "path": "google/protobuf/descriptor.proto", + "package": "google.protobuf", + "application": false, + "syntax": "proto2", + "sha256": "b9bf4824b5ba9ec118ae8f6e5d6ddb8010261d7fcd7b506c5815573d0817d40c", + "imports": [], + "messages": [ + { + "name": "google.protobuf.FileDescriptorSet", + "fields": [ + { + "name": "file", + "type": "FileDescriptorProto", + "number": 1, + "label": "repeated" + } + ] + }, + { + "name": "google.protobuf.FileDescriptorProto", + "fields": [ + { + "name": "name", + "type": "string", + "number": 1, + "label": "optional" + }, + { + "name": "package", + "type": "string", + "number": 2, + "label": "optional" + }, + { + "name": "dependency", + "type": "string", + "number": 3, + "label": "repeated" + }, + { + "name": "public_dependency", + "type": "int32", + "number": 10, + "label": "repeated" + }, + { + "name": "weak_dependency", + "type": "int32", + "number": 11, + "label": "repeated" + }, + { + "name": "option_dependency", + "type": "string", + "number": 15, + "label": "repeated" + }, + { + "name": "message_type", + "type": "DescriptorProto", + "number": 4, + "label": "repeated" + }, + { + "name": "enum_type", + "type": "EnumDescriptorProto", + "number": 5, + "label": "repeated" + }, + { + "name": "service", + "type": "ServiceDescriptorProto", + "number": 6, + "label": "repeated" + }, + { + "name": "extension", + "type": "FieldDescriptorProto", + "number": 7, + "label": "repeated" + }, + { + "name": "options", + "type": "FileOptions", + "number": 8, + "label": "optional" + }, + { + "name": "source_code_info", + "type": "SourceCodeInfo", + "number": 9, + "label": "optional" + }, + { + "name": "syntax", + "type": "string", + "number": 12, + "label": "optional" + }, + { + "name": "edition", + "type": "Edition", + "number": 14, + "label": "optional" + } + ] + }, + { + "name": "google.protobuf.DescriptorProto", + "fields": [ + { + "name": "name", + "type": "string", + "number": 1, + "label": "optional" + }, + { + "name": "field", + "type": "FieldDescriptorProto", + "number": 2, + "label": "repeated" + }, + { + "name": "extension", + "type": "FieldDescriptorProto", + "number": 6, + "label": "repeated" + }, + { + "name": "nested_type", + "type": "DescriptorProto", + "number": 3, + "label": "repeated" + }, + { + "name": "enum_type", + "type": "EnumDescriptorProto", + "number": 4, + "label": "repeated" + }, + { + "name": "extension_range", + "type": "ExtensionRange", + "number": 5, + "label": "repeated" + }, + { + "name": "oneof_decl", + "type": "OneofDescriptorProto", + "number": 8, + "label": "repeated" + }, + { + "name": "options", + "type": "MessageOptions", + "number": 7, + "label": "optional" + }, + { + "name": "reserved_range", + "type": "ReservedRange", + "number": 9, + "label": "repeated" + }, + { + "name": "reserved_name", + "type": "string", + "number": 10, + "label": "repeated" + }, + { + "name": "visibility", + "type": "SymbolVisibility", + "number": 11, + "label": "optional" + } + ] + }, + { + "name": "google.protobuf.DescriptorProto.ExtensionRange", + "fields": [ + { + "name": "start", + "type": "int32", + "number": 1, + "label": "optional" + }, + { + "name": "end", + "type": "int32", + "number": 2, + "label": "optional" + }, + { + "name": "options", + "type": "ExtensionRangeOptions", + "number": 3, + "label": "optional" + } + ] + }, + { + "name": "google.protobuf.DescriptorProto.ReservedRange", + "fields": [ + { + "name": "start", + "type": "int32", + "number": 1, + "label": "optional" + }, + { + "name": "end", + "type": "int32", + "number": 2, + "label": "optional" + } + ] + }, + { + "name": "google.protobuf.ExtensionRangeOptions", + "fields": [ + { + "name": "uninterpreted_option", + "type": "UninterpretedOption", + "number": 999, + "label": "repeated" + }, + { + "name": "declaration", + "type": "Declaration", + "number": 2, + "label": "repeated" + }, + { + "name": "features", + "type": "FeatureSet", + "number": 50, + "label": "optional" + }, + { + "name": "verification", + "type": "VerificationState", + "number": 3, + "label": "optional" + } + ] + }, + { + "name": "google.protobuf.ExtensionRangeOptions.Declaration", + "fields": [ + { + "name": "number", + "type": "int32", + "number": 1, + "label": "optional" + }, + { + "name": "full_name", + "type": "string", + "number": 2, + "label": "optional" + }, + { + "name": "type", + "type": "string", + "number": 3, + "label": "optional" + }, + { + "name": "reserved", + "type": "bool", + "number": 5, + "label": "optional" + }, + { + "name": "repeated", + "type": "bool", + "number": 6, + "label": "optional" + } + ] + }, + { + "name": "google.protobuf.FieldDescriptorProto", + "fields": [ + { + "name": "name", + "type": "string", + "number": 1, + "label": "optional" + }, + { + "name": "number", + "type": "int32", + "number": 3, + "label": "optional" + }, + { + "name": "label", + "type": "Label", + "number": 4, + "label": "optional" + }, + { + "name": "type", + "type": "Type", + "number": 5, + "label": "optional" + }, + { + "name": "type_name", + "type": "string", + "number": 6, + "label": "optional" + }, + { + "name": "extendee", + "type": "string", + "number": 2, + "label": "optional" + }, + { + "name": "default_value", + "type": "string", + "number": 7, + "label": "optional" + }, + { + "name": "oneof_index", + "type": "int32", + "number": 9, + "label": "optional" + }, + { + "name": "json_name", + "type": "string", + "number": 10, + "label": "optional" + }, + { + "name": "options", + "type": "FieldOptions", + "number": 8, + "label": "optional" + }, + { + "name": "proto3_optional", + "type": "bool", + "number": 17, + "label": "optional" + } + ] + }, + { + "name": "google.protobuf.OneofDescriptorProto", + "fields": [ + { + "name": "name", + "type": "string", + "number": 1, + "label": "optional" + }, + { + "name": "options", + "type": "OneofOptions", + "number": 2, + "label": "optional" + } + ] + }, + { + "name": "google.protobuf.EnumDescriptorProto", + "fields": [ + { + "name": "name", + "type": "string", + "number": 1, + "label": "optional" + }, + { + "name": "value", + "type": "EnumValueDescriptorProto", + "number": 2, + "label": "repeated" + }, + { + "name": "options", + "type": "EnumOptions", + "number": 3, + "label": "optional" + }, + { + "name": "reserved_range", + "type": "EnumReservedRange", + "number": 4, + "label": "repeated" + }, + { + "name": "reserved_name", + "type": "string", + "number": 5, + "label": "repeated" + }, + { + "name": "visibility", + "type": "SymbolVisibility", + "number": 6, + "label": "optional" + } + ] + }, + { + "name": "google.protobuf.EnumDescriptorProto.EnumReservedRange", + "fields": [ + { + "name": "start", + "type": "int32", + "number": 1, + "label": "optional" + }, + { + "name": "end", + "type": "int32", + "number": 2, + "label": "optional" + } + ] + }, + { + "name": "google.protobuf.EnumValueDescriptorProto", + "fields": [ + { + "name": "name", + "type": "string", + "number": 1, + "label": "optional" + }, + { + "name": "number", + "type": "int32", + "number": 2, + "label": "optional" + }, + { + "name": "options", + "type": "EnumValueOptions", + "number": 3, + "label": "optional" + } + ] + }, + { + "name": "google.protobuf.ServiceDescriptorProto", + "fields": [ + { + "name": "name", + "type": "string", + "number": 1, + "label": "optional" + }, + { + "name": "method", + "type": "MethodDescriptorProto", + "number": 2, + "label": "repeated" + }, + { + "name": "options", + "type": "ServiceOptions", + "number": 3, + "label": "optional" + } + ] + }, + { + "name": "google.protobuf.MethodDescriptorProto", + "fields": [ + { + "name": "name", + "type": "string", + "number": 1, + "label": "optional" + }, + { + "name": "input_type", + "type": "string", + "number": 2, + "label": "optional" + }, + { + "name": "output_type", + "type": "string", + "number": 3, + "label": "optional" + }, + { + "name": "options", + "type": "MethodOptions", + "number": 4, + "label": "optional" + }, + { + "name": "client_streaming", + "type": "bool", + "number": 5, + "label": "optional" + }, + { + "name": "server_streaming", + "type": "bool", + "number": 6, + "label": "optional" + } + ] + }, + { + "name": "google.protobuf.FileOptions", + "fields": [ + { + "name": "java_package", + "type": "string", + "number": 1, + "label": "optional" + }, + { + "name": "java_outer_classname", + "type": "string", + "number": 8, + "label": "optional" + }, + { + "name": "java_multiple_files", + "type": "bool", + "number": 10, + "label": "optional" + }, + { + "name": "java_generate_equals_and_hash", + "type": "bool", + "number": 20, + "label": "optional" + }, + { + "name": "java_string_check_utf8", + "type": "bool", + "number": 27, + "label": "optional" + }, + { + "name": "optimize_for", + "type": "OptimizeMode", + "number": 9, + "label": "optional" + }, + { + "name": "go_package", + "type": "string", + "number": 11, + "label": "optional" + }, + { + "name": "cc_generic_services", + "type": "bool", + "number": 16, + "label": "optional" + }, + { + "name": "java_generic_services", + "type": "bool", + "number": 17, + "label": "optional" + }, + { + "name": "py_generic_services", + "type": "bool", + "number": 18, + "label": "optional" + }, + { + "name": "deprecated", + "type": "bool", + "number": 23, + "label": "optional" + }, + { + "name": "cc_enable_arenas", + "type": "bool", + "number": 31, + "label": "optional" + }, + { + "name": "objc_class_prefix", + "type": "string", + "number": 36, + "label": "optional" + }, + { + "name": "csharp_namespace", + "type": "string", + "number": 37, + "label": "optional" + }, + { + "name": "swift_prefix", + "type": "string", + "number": 39, + "label": "optional" + }, + { + "name": "php_class_prefix", + "type": "string", + "number": 40, + "label": "optional" + }, + { + "name": "php_namespace", + "type": "string", + "number": 41, + "label": "optional" + }, + { + "name": "php_metadata_namespace", + "type": "string", + "number": 44, + "label": "optional" + }, + { + "name": "ruby_package", + "type": "string", + "number": 45, + "label": "optional" + }, + { + "name": "features", + "type": "FeatureSet", + "number": 50, + "label": "optional" + }, + { + "name": "uninterpreted_option", + "type": "UninterpretedOption", + "number": 999, + "label": "repeated" + } + ] + }, + { + "name": "google.protobuf.MessageOptions", + "fields": [ + { + "name": "message_set_wire_format", + "type": "bool", + "number": 1, + "label": "optional" + }, + { + "name": "no_standard_descriptor_accessor", + "type": "bool", + "number": 2, + "label": "optional" + }, + { + "name": "deprecated", + "type": "bool", + "number": 3, + "label": "optional" + }, + { + "name": "map_entry", + "type": "bool", + "number": 7, + "label": "optional" + }, + { + "name": "deprecated_legacy_json_field_conflicts", + "type": "bool", + "number": 11, + "label": "optional" + }, + { + "name": "features", + "type": "FeatureSet", + "number": 12, + "label": "optional" + }, + { + "name": "uninterpreted_option", + "type": "UninterpretedOption", + "number": 999, + "label": "repeated" + } + ] + }, + { + "name": "google.protobuf.FieldOptions", + "fields": [ + { + "name": "ctype", + "type": "CType", + "number": 1, + "label": "optional" + }, + { + "name": "packed", + "type": "bool", + "number": 2, + "label": "optional" + }, + { + "name": "jstype", + "type": "JSType", + "number": 6, + "label": "optional" + }, + { + "name": "lazy", + "type": "bool", + "number": 5, + "label": "optional" + }, + { + "name": "unverified_lazy", + "type": "bool", + "number": 15, + "label": "optional" + }, + { + "name": "deprecated", + "type": "bool", + "number": 3, + "label": "optional" + }, + { + "name": "weak", + "type": "bool", + "number": 10, + "label": "optional" + }, + { + "name": "debug_redact", + "type": "bool", + "number": 16, + "label": "optional" + }, + { + "name": "retention", + "type": "OptionRetention", + "number": 17, + "label": "optional" + }, + { + "name": "targets", + "type": "OptionTargetType", + "number": 19, + "label": "repeated" + }, + { + "name": "edition_defaults", + "type": "EditionDefault", + "number": 20, + "label": "repeated" + }, + { + "name": "features", + "type": "FeatureSet", + "number": 21, + "label": "optional" + }, + { + "name": "feature_support", + "type": "FeatureSupport", + "number": 22, + "label": "optional" + }, + { + "name": "uninterpreted_option", + "type": "UninterpretedOption", + "number": 999, + "label": "repeated" + } + ] + }, + { + "name": "google.protobuf.FieldOptions.EditionDefault", + "fields": [ + { + "name": "edition", + "type": "Edition", + "number": 3, + "label": "optional" + }, + { + "name": "value", + "type": "string", + "number": 2, + "label": "optional" + } + ] + }, + { + "name": "google.protobuf.FieldOptions.FeatureSupport", + "fields": [ + { + "name": "edition_introduced", + "type": "Edition", + "number": 1, + "label": "optional" + }, + { + "name": "edition_deprecated", + "type": "Edition", + "number": 2, + "label": "optional" + }, + { + "name": "deprecation_warning", + "type": "string", + "number": 3, + "label": "optional" + }, + { + "name": "edition_removed", + "type": "Edition", + "number": 4, + "label": "optional" + } + ] + }, + { + "name": "google.protobuf.OneofOptions", + "fields": [ + { + "name": "features", + "type": "FeatureSet", + "number": 1, + "label": "optional" + }, + { + "name": "uninterpreted_option", + "type": "UninterpretedOption", + "number": 999, + "label": "repeated" + } + ] + }, + { + "name": "google.protobuf.EnumOptions", + "fields": [ + { + "name": "allow_alias", + "type": "bool", + "number": 2, + "label": "optional" + }, + { + "name": "deprecated", + "type": "bool", + "number": 3, + "label": "optional" + }, + { + "name": "deprecated_legacy_json_field_conflicts", + "type": "bool", + "number": 6, + "label": "optional" + }, + { + "name": "features", + "type": "FeatureSet", + "number": 7, + "label": "optional" + }, + { + "name": "uninterpreted_option", + "type": "UninterpretedOption", + "number": 999, + "label": "repeated" + } + ] + }, + { + "name": "google.protobuf.EnumValueOptions", + "fields": [ + { + "name": "deprecated", + "type": "bool", + "number": 1, + "label": "optional" + }, + { + "name": "features", + "type": "FeatureSet", + "number": 2, + "label": "optional" + }, + { + "name": "debug_redact", + "type": "bool", + "number": 3, + "label": "optional" + }, + { + "name": "feature_support", + "type": "FieldOptions.FeatureSupport", + "number": 4, + "label": "optional" + }, + { + "name": "uninterpreted_option", + "type": "UninterpretedOption", + "number": 999, + "label": "repeated" + } + ] + }, + { + "name": "google.protobuf.ServiceOptions", + "fields": [ + { + "name": "features", + "type": "FeatureSet", + "number": 34, + "label": "optional" + }, + { + "name": "deprecated", + "type": "bool", + "number": 33, + "label": "optional" + }, + { + "name": "uninterpreted_option", + "type": "UninterpretedOption", + "number": 999, + "label": "repeated" + } + ] + }, + { + "name": "google.protobuf.MethodOptions", + "fields": [ + { + "name": "deprecated", + "type": "bool", + "number": 33, + "label": "optional" + }, + { + "name": "idempotency_level", + "type": "IdempotencyLevel", + "number": 34, + "label": "optional" + }, + { + "name": "features", + "type": "FeatureSet", + "number": 35, + "label": "optional" + }, + { + "name": "uninterpreted_option", + "type": "UninterpretedOption", + "number": 999, + "label": "repeated" + } + ] + }, + { + "name": "google.protobuf.UninterpretedOption", + "fields": [ + { + "name": "name", + "type": "NamePart", + "number": 2, + "label": "repeated" + }, + { + "name": "identifier_value", + "type": "string", + "number": 3, + "label": "optional" + }, + { + "name": "positive_int_value", + "type": "uint64", + "number": 4, + "label": "optional" + }, + { + "name": "negative_int_value", + "type": "int64", + "number": 5, + "label": "optional" + }, + { + "name": "double_value", + "type": "double", + "number": 6, + "label": "optional" + }, + { + "name": "string_value", + "type": "bytes", + "number": 7, + "label": "optional" + }, + { + "name": "aggregate_value", + "type": "string", + "number": 8, + "label": "optional" + } + ] + }, + { + "name": "google.protobuf.UninterpretedOption.NamePart", + "fields": [ + { + "name": "name_part", + "type": "string", + "number": 1, + "label": "required" + }, + { + "name": "is_extension", + "type": "bool", + "number": 2, + "label": "required" + } + ] + }, + { + "name": "google.protobuf.FeatureSet", + "fields": [ + { + "name": "field_presence", + "type": "FieldPresence", + "number": 1, + "label": "optional" + }, + { + "name": "enum_type", + "type": "EnumType", + "number": 2, + "label": "optional" + }, + { + "name": "repeated_field_encoding", + "type": "RepeatedFieldEncoding", + "number": 3, + "label": "optional" + }, + { + "name": "utf8_validation", + "type": "Utf8Validation", + "number": 4, + "label": "optional" + }, + { + "name": "message_encoding", + "type": "MessageEncoding", + "number": 5, + "label": "optional" + }, + { + "name": "json_format", + "type": "JsonFormat", + "number": 6, + "label": "optional" + }, + { + "name": "enforce_naming_style", + "type": "EnforceNamingStyle", + "number": 7, + "label": "optional" + }, + { + "name": "default_symbol_visibility", + "type": "VisibilityFeature.DefaultSymbolVisibility", + "number": 8, + "label": "optional" + } + ] + }, + { + "name": "google.protobuf.FeatureSet.VisibilityFeature", + "fields": [] + }, + { + "name": "google.protobuf.FeatureSetDefaults", + "fields": [ + { + "name": "defaults", + "type": "FeatureSetEditionDefault", + "number": 1, + "label": "repeated" + }, + { + "name": "minimum_edition", + "type": "Edition", + "number": 4, + "label": "optional" + }, + { + "name": "maximum_edition", + "type": "Edition", + "number": 5, + "label": "optional" + } + ] + }, + { + "name": "google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault", + "fields": [ + { + "name": "edition", + "type": "Edition", + "number": 3, + "label": "optional" + }, + { + "name": "overridable_features", + "type": "FeatureSet", + "number": 4, + "label": "optional" + }, + { + "name": "fixed_features", + "type": "FeatureSet", + "number": 5, + "label": "optional" + } + ] + }, + { + "name": "google.protobuf.SourceCodeInfo", + "fields": [ + { + "name": "location", + "type": "Location", + "number": 1, + "label": "repeated" + } + ] + }, + { + "name": "google.protobuf.SourceCodeInfo.Location", + "fields": [ + { + "name": "path", + "type": "int32", + "number": 1, + "label": "repeated" + }, + { + "name": "span", + "type": "int32", + "number": 2, + "label": "repeated" + }, + { + "name": "leading_comments", + "type": "string", + "number": 3, + "label": "optional" + }, + { + "name": "trailing_comments", + "type": "string", + "number": 4, + "label": "optional" + }, + { + "name": "leading_detached_comments", + "type": "string", + "number": 6, + "label": "repeated" + } + ] + }, + { + "name": "google.protobuf.GeneratedCodeInfo", + "fields": [ + { + "name": "annotation", + "type": "Annotation", + "number": 1, + "label": "repeated" + } + ] + }, + { + "name": "google.protobuf.GeneratedCodeInfo.Annotation", + "fields": [ + { + "name": "path", + "type": "int32", + "number": 1, + "label": "repeated" + }, + { + "name": "source_file", + "type": "string", + "number": 2, + "label": "optional" + }, + { + "name": "begin", + "type": "int32", + "number": 3, + "label": "optional" + }, + { + "name": "end", + "type": "int32", + "number": 4, + "label": "optional" + }, + { + "name": "semantic", + "type": "Semantic", + "number": 5, + "label": "optional" + } + ] + } + ], + "enums": [ + { + "name": "google.protobuf.ExtensionRangeOptions.VerificationState", + "values": [ + { + "name": "DECLARATION", + "number": 0 + }, + { + "name": "UNVERIFIED", + "number": 1 + } + ] + }, + { + "name": "google.protobuf.FieldDescriptorProto.Label", + "values": [ + { + "name": "LABEL_OPTIONAL", + "number": 1 + }, + { + "name": "LABEL_REPEATED", + "number": 3 + }, + { + "name": "LABEL_REQUIRED", + "number": 2 + } + ] + }, + { + "name": "google.protobuf.FieldDescriptorProto.Type", + "values": [ + { + "name": "TYPE_DOUBLE", + "number": 1 + }, + { + "name": "TYPE_FLOAT", + "number": 2 + }, + { + "name": "TYPE_INT64", + "number": 3 + }, + { + "name": "TYPE_UINT64", + "number": 4 + }, + { + "name": "TYPE_INT32", + "number": 5 + }, + { + "name": "TYPE_FIXED64", + "number": 6 + }, + { + "name": "TYPE_FIXED32", + "number": 7 + }, + { + "name": "TYPE_BOOL", + "number": 8 + }, + { + "name": "TYPE_STRING", + "number": 9 + }, + { + "name": "TYPE_GROUP", + "number": 10 + }, + { + "name": "TYPE_MESSAGE", + "number": 11 + }, + { + "name": "TYPE_BYTES", + "number": 12 + }, + { + "name": "TYPE_UINT32", + "number": 13 + }, + { + "name": "TYPE_ENUM", + "number": 14 + }, + { + "name": "TYPE_SFIXED32", + "number": 15 + }, + { + "name": "TYPE_SFIXED64", + "number": 16 + }, + { + "name": "TYPE_SINT32", + "number": 17 + }, + { + "name": "TYPE_SINT64", + "number": 18 + } + ] + }, + { + "name": "google.protobuf.FileOptions.OptimizeMode", + "values": [ + { + "name": "SPEED", + "number": 1 + }, + { + "name": "CODE_SIZE", + "number": 2 + }, + { + "name": "LITE_RUNTIME", + "number": 3 + } + ] + }, + { + "name": "google.protobuf.FieldOptions.CType", + "values": [ + { + "name": "STRING", + "number": 0 + }, + { + "name": "CORD", + "number": 1 + }, + { + "name": "STRING_PIECE", + "number": 2 + } + ] + }, + { + "name": "google.protobuf.FieldOptions.JSType", + "values": [ + { + "name": "JS_NORMAL", + "number": 0 + }, + { + "name": "JS_STRING", + "number": 1 + }, + { + "name": "JS_NUMBER", + "number": 2 + } + ] + }, + { + "name": "google.protobuf.FieldOptions.OptionRetention", + "values": [ + { + "name": "RETENTION_UNKNOWN", + "number": 0 + }, + { + "name": "RETENTION_RUNTIME", + "number": 1 + }, + { + "name": "RETENTION_SOURCE", + "number": 2 + } + ] + }, + { + "name": "google.protobuf.FieldOptions.OptionTargetType", + "values": [ + { + "name": "TARGET_TYPE_UNKNOWN", + "number": 0 + }, + { + "name": "TARGET_TYPE_FILE", + "number": 1 + }, + { + "name": "TARGET_TYPE_EXTENSION_RANGE", + "number": 2 + }, + { + "name": "TARGET_TYPE_MESSAGE", + "number": 3 + }, + { + "name": "TARGET_TYPE_FIELD", + "number": 4 + }, + { + "name": "TARGET_TYPE_ONEOF", + "number": 5 + }, + { + "name": "TARGET_TYPE_ENUM", + "number": 6 + }, + { + "name": "TARGET_TYPE_ENUM_ENTRY", + "number": 7 + }, + { + "name": "TARGET_TYPE_SERVICE", + "number": 8 + }, + { + "name": "TARGET_TYPE_METHOD", + "number": 9 + } + ] + }, + { + "name": "google.protobuf.MethodOptions.IdempotencyLevel", + "values": [ + { + "name": "IDEMPOTENCY_UNKNOWN", + "number": 0 + }, + { + "name": "NO_SIDE_EFFECTS", + "number": 1 + }, + { + "name": "IDEMPOTENT", + "number": 2 + } + ] + }, + { + "name": "google.protobuf.FeatureSet.FieldPresence", + "values": [ + { + "name": "FIELD_PRESENCE_UNKNOWN", + "number": 0 + }, + { + "name": "EXPLICIT", + "number": 1 + }, + { + "name": "IMPLICIT", + "number": 2 + }, + { + "name": "LEGACY_REQUIRED", + "number": 3 + } + ] + }, + { + "name": "google.protobuf.FeatureSet.EnumType", + "values": [ + { + "name": "ENUM_TYPE_UNKNOWN", + "number": 0 + }, + { + "name": "OPEN", + "number": 1 + }, + { + "name": "CLOSED", + "number": 2 + } + ] + }, + { + "name": "google.protobuf.FeatureSet.RepeatedFieldEncoding", + "values": [ + { + "name": "REPEATED_FIELD_ENCODING_UNKNOWN", + "number": 0 + }, + { + "name": "PACKED", + "number": 1 + }, + { + "name": "EXPANDED", + "number": 2 + } + ] + }, + { + "name": "google.protobuf.FeatureSet.Utf8Validation", + "values": [ + { + "name": "UTF8_VALIDATION_UNKNOWN", + "number": 0 + }, + { + "name": "VERIFY", + "number": 2 + }, + { + "name": "NONE", + "number": 3 + } + ] + }, + { + "name": "google.protobuf.FeatureSet.MessageEncoding", + "values": [ + { + "name": "MESSAGE_ENCODING_UNKNOWN", + "number": 0 + }, + { + "name": "LENGTH_PREFIXED", + "number": 1 + }, + { + "name": "DELIMITED", + "number": 2 + } + ] + }, + { + "name": "google.protobuf.FeatureSet.JsonFormat", + "values": [ + { + "name": "JSON_FORMAT_UNKNOWN", + "number": 0 + }, + { + "name": "ALLOW", + "number": 1 + }, + { + "name": "LEGACY_BEST_EFFORT", + "number": 2 + } + ] + }, + { + "name": "google.protobuf.FeatureSet.EnforceNamingStyle", + "values": [ + { + "name": "ENFORCE_NAMING_STYLE_UNKNOWN", + "number": 0 + }, + { + "name": "STYLE2024", + "number": 1 + }, + { + "name": "STYLE_LEGACY", + "number": 2 + } + ] + }, + { + "name": "google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility", + "values": [ + { + "name": "DEFAULT_SYMBOL_VISIBILITY_UNKNOWN", + "number": 0 + }, + { + "name": "EXPORT_ALL", + "number": 1 + }, + { + "name": "EXPORT_TOP_LEVEL", + "number": 2 + }, + { + "name": "LOCAL_ALL", + "number": 3 + }, + { + "name": "STRICT", + "number": 4 + } + ] + }, + { + "name": "google.protobuf.GeneratedCodeInfo.Annotation.Semantic", + "values": [ + { + "name": "NONE", + "number": 0 + }, + { + "name": "SET", + "number": 1 + }, + { + "name": "ALIAS", + "number": 2 + } + ] + }, + { + "name": "google.protobuf.Edition", + "values": [ + { + "name": "EDITION_UNKNOWN", + "number": 0 + }, + { + "name": "EDITION_LEGACY", + "number": 900 + }, + { + "name": "EDITION_PROTO2", + "number": 998 + }, + { + "name": "EDITION_PROTO3", + "number": 999 + }, + { + "name": "EDITION_2023", + "number": 1000 + }, + { + "name": "EDITION_2024", + "number": 1001 + }, + { + "name": "EDITION_1_TEST_ONLY", + "number": 1 + }, + { + "name": "EDITION_2_TEST_ONLY", + "number": 2 + }, + { + "name": "EDITION_99997_TEST_ONLY", + "number": 99997 + }, + { + "name": "EDITION_99998_TEST_ONLY", + "number": 99998 + }, + { + "name": "EDITION_99999_TEST_ONLY", + "number": 99999 + }, + { + "name": "EDITION_MAX", + "number": 2147483647 + } + ] + }, + { + "name": "google.protobuf.SymbolVisibility", + "values": [ + { + "name": "VISIBILITY_UNSET", + "number": 0 + }, + { + "name": "VISIBILITY_LOCAL", + "number": 1 + }, + { + "name": "VISIBILITY_EXPORT", + "number": 2 + } + ] + } + ], + "services": [] + }, + { + "path": "google/protobuf/duration.proto", + "package": "google.protobuf", + "application": false, + "syntax": "proto3", + "sha256": "c697e894682c548fb46631ee69548890a1ca6d85ead3a1926082836f61bc9995", + "imports": [], + "messages": [ + { + "name": "google.protobuf.Duration", + "fields": [ + { + "name": "seconds", + "type": "int64", + "number": 1, + "label": "" + }, + { + "name": "nanos", + "type": "int32", + "number": 2, + "label": "" + } + ] + } + ], + "enums": [], + "services": [] + }, + { + "path": "google/protobuf/empty.proto", + "package": "google.protobuf", + "application": false, + "syntax": "proto3", + "sha256": "add1b69e6fe7174590ea5345c68392a36a887659ee549c8e1460ac775a21ab2a", + "imports": [], + "messages": [ + { + "name": "google.protobuf.Empty", + "fields": [] + } + ], + "enums": [], + "services": [] + }, + { + "path": "google/protobuf/source_context.proto", + "package": "google.protobuf", + "application": false, + "syntax": "proto3", + "sha256": "70e52bb86ffa9c6f94ea7b82a1fb0e55e9c7dda96f4a8a0c992c36ee47c60c2c", + "imports": [], + "messages": [ + { + "name": "google.protobuf.SourceContext", + "fields": [ + { + "name": "file_name", + "type": "string", + "number": 1, + "label": "" + } + ] + } + ], + "enums": [], + "services": [] + }, + { + "path": "google/protobuf/struct.proto", + "package": "google.protobuf", + "application": false, + "syntax": "proto3", + "sha256": "90247d5ed663ed3bfa4f16dab7f35e131cc0d0bfff8cccef9a51110f72120e1d", + "imports": [], + "messages": [ + { + "name": "google.protobuf.Struct", + "fields": [ + { + "name": "fields", + "type": "map", + "number": 1, + "label": "" + } + ] + }, + { + "name": "google.protobuf.Value", + "fields": [ + { + "name": "null_value", + "type": "NullValue", + "number": 1, + "label": "" + }, + { + "name": "number_value", + "type": "double", + "number": 2, + "label": "" + }, + { + "name": "string_value", + "type": "string", + "number": 3, + "label": "" + }, + { + "name": "bool_value", + "type": "bool", + "number": 4, + "label": "" + }, + { + "name": "struct_value", + "type": "Struct", + "number": 5, + "label": "" + }, + { + "name": "list_value", + "type": "ListValue", + "number": 6, + "label": "" + } + ] + }, + { + "name": "google.protobuf.ListValue", + "fields": [ + { + "name": "values", + "type": "Value", + "number": 1, + "label": "repeated" + } + ] + } + ], + "enums": [ + { + "name": "google.protobuf.NullValue", + "values": [ + { + "name": "NULL_VALUE", + "number": 0 + } + ] + } + ], + "services": [] + }, + { + "path": "google/protobuf/timestamp.proto", + "package": "google.protobuf", + "application": false, + "syntax": "proto3", + "sha256": "2dd765e4a3c9f26f962413321c3781178364a570f3be97744a67f962b5df51cb", + "imports": [], + "messages": [ + { + "name": "google.protobuf.Timestamp", + "fields": [ + { + "name": "seconds", + "type": "int64", + "number": 1, + "label": "" + }, + { + "name": "nanos", + "type": "int32", + "number": 2, + "label": "" + } + ] + } + ], + "enums": [], + "services": [] + }, + { + "path": "google/protobuf/type.proto", + "package": "google.protobuf", + "application": false, + "syntax": "proto3", + "sha256": "19e52b26a7df089f03fd987d673372334c83174a01b6fd08b7afd77a9a7cf26d", + "imports": [ + "google/protobuf/any.proto", + "google/protobuf/source_context.proto" + ], + "messages": [ + { + "name": "google.protobuf.Type", + "fields": [ + { + "name": "name", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "fields", + "type": "Field", + "number": 2, + "label": "repeated" + }, + { + "name": "oneofs", + "type": "string", + "number": 3, + "label": "repeated" + }, + { + "name": "options", + "type": "Option", + "number": 4, + "label": "repeated" + }, + { + "name": "source_context", + "type": "SourceContext", + "number": 5, + "label": "" + }, + { + "name": "syntax", + "type": "Syntax", + "number": 6, + "label": "" + }, + { + "name": "edition", + "type": "string", + "number": 7, + "label": "" + } + ] + }, + { + "name": "google.protobuf.Field", + "fields": [ + { + "name": "kind", + "type": "Kind", + "number": 1, + "label": "" + }, + { + "name": "cardinality", + "type": "Cardinality", + "number": 2, + "label": "" + }, + { + "name": "number", + "type": "int32", + "number": 3, + "label": "" + }, + { + "name": "name", + "type": "string", + "number": 4, + "label": "" + }, + { + "name": "type_url", + "type": "string", + "number": 6, + "label": "" + }, + { + "name": "oneof_index", + "type": "int32", + "number": 7, + "label": "" + }, + { + "name": "packed", + "type": "bool", + "number": 8, + "label": "" + }, + { + "name": "options", + "type": "Option", + "number": 9, + "label": "repeated" + }, + { + "name": "json_name", + "type": "string", + "number": 10, + "label": "" + }, + { + "name": "default_value", + "type": "string", + "number": 11, + "label": "" + } + ] + }, + { + "name": "google.protobuf.Enum", + "fields": [ + { + "name": "name", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "enumvalue", + "type": "EnumValue", + "number": 2, + "label": "repeated" + }, + { + "name": "options", + "type": "Option", + "number": 3, + "label": "repeated" + }, + { + "name": "source_context", + "type": "SourceContext", + "number": 4, + "label": "" + }, + { + "name": "syntax", + "type": "Syntax", + "number": 5, + "label": "" + }, + { + "name": "edition", + "type": "string", + "number": 6, + "label": "" + } + ] + }, + { + "name": "google.protobuf.EnumValue", + "fields": [ + { + "name": "name", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "number", + "type": "int32", + "number": 2, + "label": "" + }, + { + "name": "options", + "type": "Option", + "number": 3, + "label": "repeated" + } + ] + }, + { + "name": "google.protobuf.Option", + "fields": [ + { + "name": "name", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "value", + "type": "Any", + "number": 2, + "label": "" + } + ] + } + ], + "enums": [ + { + "name": "google.protobuf.Field.Kind", + "values": [ + { + "name": "TYPE_UNKNOWN", + "number": 0 + }, + { + "name": "TYPE_DOUBLE", + "number": 1 + }, + { + "name": "TYPE_FLOAT", + "number": 2 + }, + { + "name": "TYPE_INT64", + "number": 3 + }, + { + "name": "TYPE_UINT64", + "number": 4 + }, + { + "name": "TYPE_INT32", + "number": 5 + }, + { + "name": "TYPE_FIXED64", + "number": 6 + }, + { + "name": "TYPE_FIXED32", + "number": 7 + }, + { + "name": "TYPE_BOOL", + "number": 8 + }, + { + "name": "TYPE_STRING", + "number": 9 + }, + { + "name": "TYPE_GROUP", + "number": 10 + }, + { + "name": "TYPE_MESSAGE", + "number": 11 + }, + { + "name": "TYPE_BYTES", + "number": 12 + }, + { + "name": "TYPE_UINT32", + "number": 13 + }, + { + "name": "TYPE_ENUM", + "number": 14 + }, + { + "name": "TYPE_SFIXED32", + "number": 15 + }, + { + "name": "TYPE_SFIXED64", + "number": 16 + }, + { + "name": "TYPE_SINT32", + "number": 17 + }, + { + "name": "TYPE_SINT64", + "number": 18 + } + ] + }, + { + "name": "google.protobuf.Field.Cardinality", + "values": [ + { + "name": "CARDINALITY_UNKNOWN", + "number": 0 + }, + { + "name": "CARDINALITY_OPTIONAL", + "number": 1 + }, + { + "name": "CARDINALITY_REQUIRED", + "number": 2 + }, + { + "name": "CARDINALITY_REPEATED", + "number": 3 + } + ] + }, + { + "name": "google.protobuf.Syntax", + "values": [ + { + "name": "SYNTAX_PROTO2", + "number": 0 + }, + { + "name": "SYNTAX_PROTO3", + "number": 1 + }, + { + "name": "SYNTAX_EDITIONS", + "number": 2 + } + ] + } + ], + "services": [] + }, + { + "path": "google/protobuf/wrappers.proto", + "package": "google.protobuf", + "application": false, + "syntax": "proto3", + "sha256": "602e5d4986cd65d6b65df6546d50eed584c4aa1af35ec99a7dd8ca33efdaf82f", + "imports": [], + "messages": [ + { + "name": "google.protobuf.DoubleValue", + "fields": [ + { + "name": "value", + "type": "double", + "number": 1, + "label": "" + } + ] + }, + { + "name": "google.protobuf.FloatValue", + "fields": [ + { + "name": "value", + "type": "float", + "number": 1, + "label": "" + } + ] + }, + { + "name": "google.protobuf.Int64Value", + "fields": [ + { + "name": "value", + "type": "int64", + "number": 1, + "label": "" + } + ] + }, + { + "name": "google.protobuf.UInt64Value", + "fields": [ + { + "name": "value", + "type": "uint64", + "number": 1, + "label": "" + } + ] + }, + { + "name": "google.protobuf.Int32Value", + "fields": [ + { + "name": "value", + "type": "int32", + "number": 1, + "label": "" + } + ] + }, + { + "name": "google.protobuf.UInt32Value", + "fields": [ + { + "name": "value", + "type": "uint32", + "number": 1, + "label": "" + } + ] + }, + { + "name": "google.protobuf.BoolValue", + "fields": [ + { + "name": "value", + "type": "bool", + "number": 1, + "label": "" + } + ] + }, + { + "name": "google.protobuf.StringValue", + "fields": [ + { + "name": "value", + "type": "string", + "number": 1, + "label": "" + } + ] + }, + { + "name": "google.protobuf.BytesValue", + "fields": [ + { + "name": "value", + "type": "bytes", + "number": 1, + "label": "" + } + ] + } + ], + "enums": [], + "services": [] + }, + { + "path": "google/rpc/status.proto", + "package": "google.rpc", + "application": false, + "syntax": "proto3", + "sha256": "f9e988d9f4c261747c6d60b60f595e1cea22b8c4d11a298b2042e164c178058d", + "imports": [ + "google/protobuf/any.proto" + ], + "messages": [ + { + "name": "google.rpc.Status", + "fields": [ + { + "name": "code", + "type": "int32", + "number": 1, + "label": "" + }, + { + "name": "message", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "details", + "type": "protobuf.Any", + "number": 3, + "label": "repeated" + } + ] + } + ], + "enums": [], + "services": [] + }, + { + "path": "myteamspeak_addon.proto", + "package": "com.teamspeak.myteamspeak.proto.addon", + "application": true, + "syntax": "proto3", + "sha256": "73aabb2c0d2b97491fba119c24afd6fc7d9820eef6a396a1548023362ad21e96", + "imports": [], + "messages": [ + { + "name": "com.teamspeak.myteamspeak.proto.addon.GetDownload", + "fields": [ + { + "name": "addonUUID", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "currentVersion", + "type": "int32", + "number": 2, + "label": "" + }, + { + "name": "platform", + "type": "Platform", + "number": 3, + "label": "" + }, + { + "name": "clientapi", + "type": "ClientApi", + "number": 4, + "label": "" + }, + { + "name": "minClientapi", + "type": "ClientApi", + "number": 5, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.addon.Download", + "fields": [ + { + "name": "downloadInfo", + "type": "FileData", + "number": 1, + "label": "" + }, + { + "name": "currentVersion", + "type": "int32", + "number": 2, + "label": "" + }, + { + "name": "returnCode", + "type": "ReturnCode", + "number": 3, + "label": "" + }, + { + "name": "addonList", + "type": "string", + "number": 4, + "label": "repeated" + }, + { + "name": "hostUrl", + "type": "string", + "number": 5, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.addon.ClientApi", + "fields": [ + { + "name": "plugin", + "type": "int32", + "number": 1, + "label": "" + }, + { + "name": "style", + "type": "int32", + "number": 2, + "label": "" + }, + { + "name": "soundpack", + "type": "int32", + "number": 3, + "label": "" + }, + { + "name": "translation", + "type": "int32", + "number": 4, + "label": "" + }, + { + "name": "iconpack", + "type": "int32", + "number": 5, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.addon.FileData", + "fields": [ + { + "name": "url", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "size", + "type": "int32", + "number": 2, + "label": "" + }, + { + "name": "sha1", + "type": "string", + "number": 3, + "label": "" + } + ] + } + ], + "enums": [ + { + "name": "com.teamspeak.myteamspeak.proto.addon.ApiType", + "values": [ + { + "name": "UNKNOWN_APITYPE", + "number": 0 + }, + { + "name": "PLUGIN", + "number": 1 + }, + { + "name": "STYLE", + "number": 2 + }, + { + "name": "SOUNDPACK", + "number": 3 + }, + { + "name": "TRANSLATION", + "number": 4 + }, + { + "name": "ICONPACK", + "number": 5 + }, + { + "name": "GROUPADDON", + "number": 6 + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.addon.ReturnCode", + "values": [ + { + "name": "UNKNOWN_RETURNCODE", + "number": 0 + }, + { + "name": "ADDON_NOT_FOUND", + "number": 1 + }, + { + "name": "PLATFORM_NOT_FOUND", + "number": 2 + }, + { + "name": "UPTODATE", + "number": 3 + }, + { + "name": "UPDATE", + "number": 4 + }, + { + "name": "GROUP", + "number": 5 + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.addon.Platform", + "values": [ + { + "name": "UNKNOWN_PLATFORM", + "number": 0 + }, + { + "name": "WINDOWS_X86", + "number": 1 + }, + { + "name": "WINDOWS_X86_64", + "number": 2 + }, + { + "name": "LINUX_X86", + "number": 3 + }, + { + "name": "LINUX_X86_64", + "number": 4 + }, + { + "name": "OSX_X86", + "number": 5 + }, + { + "name": "OSX_X86_64", + "number": 6 + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.addon.Status", + "values": [ + { + "name": "UNKNOWN_STATUS", + "number": 0 + }, + { + "name": "DRAFT", + "number": 1 + }, + { + "name": "PENDING", + "number": 2 + }, + { + "name": "APPROVED", + "number": 3 + }, + { + "name": "REJECTED", + "number": 4 + }, + { + "name": "REVIEW", + "number": 5 + }, + { + "name": "TRASHED", + "number": 6 + } + ] + } + ], + "services": [ + { + "name": "com.teamspeak.myteamspeak.proto.addon.UserAddonService", + "methods": [ + { + "name": "requestDownload", + "request_declared": "GetDownload", + "response_declared": "Download", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.addon.UserAddonService/requestDownload", + "request": "com.teamspeak.myteamspeak.proto.addon.GetDownload", + "response": "com.teamspeak.myteamspeak.proto.addon.Download", + "body_auth_observations": "None declared" + } + ] + } + ] + }, + { + "path": "myteamspeak_avatar_common.proto", + "package": "com.teamspeak.myteamspeak.proto", + "application": true, + "syntax": "proto3", + "sha256": "1695c956c0981e2d4debcfc7ca06aa10a3eb303d0a4bff72870b33c9fdedd287", + "imports": [ + "google/protobuf/any.proto" + ], + "messages": [ + { + "name": "com.teamspeak.myteamspeak.proto.AvatarData", + "fields": [ + { + "name": "info", + "type": "AvatarInfo", + "number": 1, + "label": "" + }, + { + "name": "timestamp", + "type": "uint64", + "number": 2, + "label": "" + }, + { + "name": "sign", + "type": "bytes", + "number": 3, + "label": "" + }, + { + "name": "optional", + "type": "google.protobuf.Any", + "number": 4, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.OptionalAvatarDataContactInfo", + "fields": [ + { + "name": "mytsid", + "type": "bytes", + "number": 1, + "label": "" + }, + { + "name": "user_cert", + "type": "bytes", + "number": 2, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.AvatarInfo", + "fields": [ + { + "name": "map", + "type": "AvatarMap", + "number": 1, + "label": "repeated" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.AvatarInfo.AvatarMap", + "fields": [ + { + "name": "state", + "type": "AvatarState", + "number": 1, + "label": "" + }, + { + "name": "name", + "type": "string", + "number": 2, + "label": "" + } + ] + } + ], + "enums": [ + { + "name": "com.teamspeak.myteamspeak.proto.AvatarError", + "values": [ + { + "name": "AVATAR_ERROR_INVALID", + "number": 0 + }, + { + "name": "AVATAR_ERROR_OK", + "number": 1 + }, + { + "name": "AVATAR_ERROR_CRITICAL", + "number": 2 + }, + { + "name": "AVATAR_SESSION_INVALID", + "number": 3 + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.AvatarState", + "values": [ + { + "name": "AVATAR_STATE_INVALID", + "number": 0 + }, + { + "name": "AVATAR_STATE_DND", + "number": 1 + }, + { + "name": "AVATAR_STATE_ONLINE", + "number": 2 + }, + { + "name": "AVATAR_STATE_AWAY", + "number": 3 + }, + { + "name": "AVATAR_STATE_OFFLINE", + "number": 4 + } + ] + } + ], + "services": [] + }, + { + "path": "myteamspeak_common.proto", + "package": "com.teamspeak.myteamspeak.proto", + "application": true, + "syntax": "proto3", + "sha256": "25127ed8cf5f1bb18afde7709f37e8d461391a3dddae78e2e396bf3bb22223e3", + "imports": [ + "myteamspeak_avatar_common.proto", + "synchronization_common.proto" + ], + "messages": [ + { + "name": "com.teamspeak.myteamspeak.proto.Limits", + "fields": [ + { + "name": "limitID", + "type": "uint32", + "number": 1, + "label": "" + }, + { + "name": "value", + "type": "int32", + "number": 2, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.LoginData", + "fields": [ + { + "name": "email", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "password", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "skipSession", + "type": "bool", + "number": 3, + "label": "" + }, + { + "name": "origin", + "type": "LoginOrigin", + "number": 4, + "label": "" + }, + { + "name": "sync_version", + "type": "synchronization.Sync_Version", + "number": 5, + "label": "" + }, + { + "name": "otp", + "type": "string", + "number": 6, + "label": "" + }, + { + "name": "device_id", + "type": "string", + "number": 7, + "label": "" + }, + { + "name": "otp_renewal_token", + "type": "string", + "number": 8, + "label": "" + }, + { + "name": "device_name", + "type": "string", + "number": 9, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.MyTeamSpeakIdData", + "fields": [ + { + "name": "user_public_key", + "type": "bytes", + "number": 1, + "label": "" + }, + { + "name": "user_private_key", + "type": "UserPrivateKey", + "number": 2, + "label": "" + }, + { + "name": "account_creation_time", + "type": "uint64", + "number": 3, + "label": "" + }, + { + "name": "my_teamspeak_id", + "type": "bytes", + "number": 4, + "label": "" + }, + { + "name": "public_signature", + "type": "bytes", + "number": 5, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.MyTeamSpeakIdData.UserPrivateKey", + "fields": [ + { + "name": "encrypted_user_private_key", + "type": "bytes", + "number": 1, + "label": "" + }, + { + "name": "decrypted_user_private_key", + "type": "bytes", + "number": 2, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.MyTSUserCertificate", + "fields": [ + { + "name": "cert", + "type": "bytes", + "number": 1, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.LoginSession", + "fields": [ + { + "name": "key", + "type": "bytes", + "number": 1, + "label": "" + }, + { + "name": "session", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "uuid", + "type": "string", + "number": 4, + "label": "" + }, + { + "name": "limits", + "type": "Limits", + "number": 3, + "label": "repeated" + }, + { + "name": "purge", + "type": "int64", + "number": 6, + "label": "" + }, + { + "name": "addon_dev", + "type": "AddonDevStatus", + "number": 7, + "label": "" + }, + { + "name": "username", + "type": "string", + "number": 8, + "label": "" + }, + { + "name": "error", + "type": "ErrorCommon", + "number": 5, + "label": "" + }, + { + "name": "myts_id_data", + "type": "MyTeamSpeakIdData", + "number": 9, + "label": "" + }, + { + "name": "mytsid_user_cert", + "type": "MyTSUserCertificate", + "number": 10, + "label": "" + }, + { + "name": "user_avatar", + "type": "AvatarData", + "number": 11, + "label": "" + }, + { + "name": "push_token", + "type": "string", + "number": 12, + "label": "" + }, + { + "name": "permission", + "type": "Permissions", + "number": 13, + "label": "" + }, + { + "name": "user_data", + "type": "UserData", + "number": 14, + "label": "" + }, + { + "name": "alternative_login_info", + "type": "AlternativeLoginInformation", + "number": 16, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.LoginSession.AlternativeLoginInformation", + "fields": [ + { + "name": "renewal_token", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "otp_renewal_token", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "device_id", + "type": "string", + "number": 3, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.Session", + "fields": [ + { + "name": "session", + "type": "string", + "number": 1, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.EncryptionKey", + "fields": [ + { + "name": "LoginData", + "type": "LoginData", + "number": 1, + "label": "" + }, + { + "name": "key", + "type": "bytes", + "number": 2, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.EncryptionKeyResult", + "fields": [ + { + "name": "success", + "type": "bool", + "number": 1, + "label": "" + }, + { + "name": "errorcode", + "type": "ErrorCommon", + "number": 2, + "label": "" + }, + { + "name": "error", + "type": "string", + "number": 3, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.LoginStatus", + "fields": [ + { + "name": "error", + "type": "ErrorCommon", + "number": 1, + "label": "" + }, + { + "name": "uuid", + "type": "string", + "number": 2, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.Permissions", + "fields": [ + { + "name": "permission", + "type": "string", + "number": 1, + "label": "repeated" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.UserData", + "fields": [ + { + "name": "description", + "type": "string", + "number": 1, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.AuthTokenRequest", + "fields": [ + { + "name": "email", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "password", + "type": "string", + "number": 2, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.AuthTokenReply", + "fields": [ + { + "name": "auth_token", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "error", + "type": "ErrorCommon", + "number": 3, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.AuthTokenLogin", + "fields": [ + { + "name": "auth_token", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "device_description", + "type": "string", + "number": 2, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.RenewalTokenLogin", + "fields": [ + { + "name": "renewal_token", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "auth_token", + "type": "string", + "number": 2, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.AuthToken", + "fields": [ + { + "name": "id", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "mytsid", + "type": "string", + "number": 2, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.RenewalToken", + "fields": [ + { + "name": "token", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "auth_token", + "type": "AuthToken", + "number": 2, + "label": "" + } + ] + } + ], + "enums": [ + { + "name": "com.teamspeak.myteamspeak.proto.AddonDevStatus", + "values": [ + { + "name": "UNKNOWN_ADDONDEVSTATUS", + "number": 0 + }, + { + "name": "REQUESTED", + "number": 1 + }, + { + "name": "CONFIRMATION_PENDING", + "number": 2 + }, + { + "name": "CONFIRMED", + "number": 5 + }, + { + "name": "APPROVED", + "number": 3 + }, + { + "name": "REJECTED", + "number": 4 + }, + { + "name": "BANNED", + "number": 6 + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.LoginOrigin", + "values": [ + { + "name": "CLIENT", + "number": 0 + }, + { + "name": "WEBSITE", + "number": 1 + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.ErrorCommon", + "values": [ + { + "name": "UNKNOWN_ERRORCOMMON", + "number": 0 + }, + { + "name": "ERROR_FE_UNKNOWN_METHOD", + "number": 100 + }, + { + "name": "ERROR_FE_UNKNOWN_DATA", + "number": 101 + }, + { + "name": "ERROR_SESSION_OK", + "number": 102 + }, + { + "name": "ERROR_SESSION_EXPIRED", + "number": 103 + }, + { + "name": "ERROR_SESSION_SERVER_OFFLINE", + "number": 104 + }, + { + "name": "ERROR_LOGIN_OK", + "number": 200 + }, + { + "name": "ERROR_LOGIN_OFFLINE", + "number": 201 + }, + { + "name": "ERROR_LOGIN_FAILED", + "number": 202 + }, + { + "name": "ERROR_LOGIN_EMAIL_PENDING", + "number": 203 + }, + { + "name": "ERROR_SESSION_DELETED_OK", + "number": 204 + }, + { + "name": "ERROR_PUSH_TOKEN_CREATION", + "number": 205 + }, + { + "name": "ERROR_AUTH_TOKEN_INVALID", + "number": 206 + }, + { + "name": "ERRIR_RENEWAL_TOKEN_INVALID", + "number": 207 + }, + { + "name": "ERROR_AUTH_REQUIRES_OTP", + "number": 208 + }, + { + "name": "ERROR_2FA_OTP_INVALID", + "number": 209 + }, + { + "name": "ERROR_2FA_OTP_SECRET_MISSING", + "number": 210 + }, + { + "name": "ERROR_2FA_DEVICE_ID_MISSING", + "number": 211 + } + ] + } + ], + "services": [] + }, + { + "path": "myteamspeak_integration_common.proto", + "package": "com.teamspeak.myteamspeak.proto.integration", + "application": true, + "syntax": "proto3", + "sha256": "1fc7c11f9c317815149d0ff18ae712635cad08caecc46c8fd1edcdd9eb8682f4", + "imports": [], + "messages": [ + { + "name": "com.teamspeak.myteamspeak.proto.integration.UserIntegrationSubscriptionInfoRequestData", + "fields": [ + { + "name": "integrations", + "type": "IntegrationInfo", + "number": 1, + "label": "" + }, + { + "name": "signature", + "type": "bytes", + "number": 2, + "label": "" + }, + { + "name": "timestamp", + "type": "uint64", + "number": 3, + "label": "" + }, + { + "name": "virtualserver_id", + "type": "string", + "number": 4, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.integration.IntegrationResponse", + "fields": [ + { + "name": "integration_id", + "type": "bytes", + "number": 1, + "label": "" + }, + { + "name": "type", + "type": "IntegrationType", + "number": 2, + "label": "" + }, + { + "name": "special_information", + "type": "string", + "number": 3, + "label": "" + }, + { + "name": "cache_valid_timestamp", + "type": "uint64", + "number": 4, + "label": "" + }, + { + "name": "response_specifier", + "type": "ResponseSpecifier", + "number": 5, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.integration.IntegrationResponseListData", + "fields": [ + { + "name": "list", + "type": "IntegrationResponse", + "number": 1, + "label": "repeated" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.integration.IntegrationResponseList", + "fields": [ + { + "name": "data", + "type": "IntegrationResponseListData", + "number": 1, + "label": "" + }, + { + "name": "signature", + "type": "bytes", + "number": 2, + "label": "" + }, + { + "name": "signing_certificate", + "type": "bytes", + "number": 3, + "label": "" + }, + { + "name": "timestamp", + "type": "uint64", + "number": 4, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.integration.IntegrationInfo", + "fields": [ + { + "name": "entry", + "type": "Entry", + "number": 1, + "label": "repeated" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.integration.IntegrationInfo.Entry", + "fields": [ + { + "name": "integration_id", + "type": "bytes", + "number": 1, + "label": "" + }, + { + "name": "type", + "type": "IntegrationType", + "number": 2, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.integration.ResponseSpecifier", + "fields": [ + { + "name": "specifier_type", + "type": "SpecifierType", + "number": 1, + "label": "" + }, + { + "name": "value", + "type": "string", + "number": 2, + "label": "" + } + ] + } + ], + "enums": [ + { + "name": "com.teamspeak.myteamspeak.proto.integration.SpecifierType", + "values": [ + { + "name": "SPECIFIER_TYPE_INVALID", + "number": 0 + }, + { + "name": "SUBSCRIPTION_TYPE", + "number": 1 + }, + { + "name": "RELATIONSHIP_TYPE", + "number": 2 + }, + { + "name": "TEST_RESPONSE_TYPE", + "number": 100 + }, + { + "name": "ANOTHER_TEST_RESPONSE_TYPE", + "number": 101 + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.integration.IntegrationType", + "values": [ + { + "name": "INTEGRATION_TYPE_INVALID", + "number": 0 + }, + { + "name": "TWITCH", + "number": 1 + }, + { + "name": "TEST_INTEGRATION", + "number": 100 + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.integration.IntegrationBindingStatus", + "values": [ + { + "name": "STATUS_INVALID", + "number": 0 + }, + { + "name": "STATUS_NOT_BOUND", + "number": 1 + }, + { + "name": "STATUS_BOUND", + "number": 2 + }, + { + "name": "STATUS_BINDING_IN_PROGRESS", + "number": 3 + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.integration.IntegrationError", + "values": [ + { + "name": "INTEGRATION_ERROR_INVALID", + "number": 0 + }, + { + "name": "INTEGRATION_ERROR_OK", + "number": 1 + }, + { + "name": "INTEGRATION_ERROR_INVALID_USER", + "number": 2 + }, + { + "name": "INTEGRATION_ERROR_INVALID_INTEGRATION", + "number": 3 + }, + { + "name": "INTEGRATION_ERROR_INVALID_INTEGRATION_ID", + "number": 4 + }, + { + "name": "INTEGRATION_ERROR_INVALID_PARAMETER", + "number": 5 + }, + { + "name": "INTEGRATION_ERROR_INTERNAL", + "number": 6 + }, + { + "name": "INTEGRATION_INFO_NOT_PRESENT_YET", + "number": 7 + }, + { + "name": "INTEGRATION_ERROR_SESSION_EXPIRED", + "number": 8 + }, + { + "name": "INTEGRATION_ERROR_SERVER_NOT_REACHABLE", + "number": 9 + }, + { + "name": "INTEGRATION_ERROR_PENDING_PROCESS", + "number": 10 + }, + { + "name": "INTEGRATION_ERROR_INVALID_TIMESTAMP", + "number": 11 + } + ] + } + ], + "services": [] + }, + { + "path": "myteamspeak_integration_static_info.proto", + "package": "com.teamspeak.myteamspeak.proto.integration", + "application": true, + "syntax": "proto3", + "sha256": "2c4b555b43ca88ea1242272816a3a66924d6023142e3ea91553a46d3db7063f4", + "imports": [ + "myteamspeak_integration_common.proto" + ], + "messages": [ + { + "name": "com.teamspeak.myteamspeak.proto.integration.StaticIntegrationResponseInformation", + "fields": [ + { + "name": "type", + "type": "ResponseType", + "number": 1, + "label": "" + }, + { + "name": "response_type_name", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "possible_values", + "type": "string", + "number": 3, + "label": "repeated" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.integration.StaticIntegrationInformation", + "fields": [ + { + "name": "integration_name", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "integration_icon", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "type", + "type": "IntegrationType", + "number": 3, + "label": "" + }, + { + "name": "version", + "type": "uint32", + "number": 4, + "label": "" + }, + { + "name": "available_responses", + "type": "StaticIntegrationResponseInformation", + "number": 5, + "label": "repeated" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.integration.StaticIntegrationInformationList", + "fields": [ + { + "name": "static_integrations", + "type": "StaticIntegrationInformation", + "number": 1, + "label": "repeated" + } + ] + } + ], + "enums": [ + { + "name": "com.teamspeak.myteamspeak.proto.integration.ResponseType", + "values": [ + { + "name": "invalid", + "number": 0 + }, + { + "name": "SUBSCRIPTION", + "number": 1 + }, + { + "name": "RELATIONSHIP", + "number": 2 + }, + { + "name": "TEST_RESPONSE", + "number": 100 + }, + { + "name": "ANOTHER_TEST_RESPONSE", + "number": 101 + } + ] + } + ], + "services": [] + }, + { + "path": "myteamspeak_integration_user.proto", + "package": "com.teamspeak.myteamspeak.proto.integration", + "application": true, + "syntax": "proto3", + "sha256": "906e655c16e558966c850b0bd4783c87cf6696dbf754834441d34a66cdeaceff", + "imports": [ + "myteamspeak_integration_common.proto" + ], + "messages": [ + { + "name": "com.teamspeak.myteamspeak.proto.integration.RequestIntegrationUserStatus", + "fields": [ + { + "name": "session", + "type": "string", + "number": 1, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.integration.IntegrationUserDataEntry", + "fields": [ + { + "name": "binding_status", + "type": "IntegrationBindingStatus", + "number": 1, + "label": "" + }, + { + "name": "integration_text", + "type": "string", + "number": 4, + "label": "" + }, + { + "name": "type", + "type": "IntegrationType", + "number": 5, + "label": "" + }, + { + "name": "integration_id", + "type": "bytes", + "number": 6, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.integration.IntegrationUserData", + "fields": [ + { + "name": "integrations", + "type": "IntegrationUserDataEntry", + "number": 1, + "label": "repeated" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.integration.IntegrationStatusUserResponse", + "fields": [ + { + "name": "error", + "type": "IntegrationError", + "number": 1, + "label": "" + }, + { + "name": "data", + "type": "IntegrationUserData", + "number": 2, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.integration.RequestBindData", + "fields": [ + { + "name": "session", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "data", + "type": "RequestBind", + "number": 2, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.integration.RequestBind", + "fields": [ + { + "name": "integration_id", + "type": "bytes", + "number": 1, + "label": "" + }, + { + "name": "type", + "type": "IntegrationType", + "number": 2, + "label": "" + }, + { + "name": "virtualserver_key", + "type": "bytes", + "number": 3, + "label": "" + }, + { + "name": "signature", + "type": "bytes", + "number": 4, + "label": "" + }, + { + "name": "timestamp", + "type": "uint64", + "number": 5, + "label": "" + }, + { + "name": "virtualserver_id", + "type": "string", + "number": 6, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.integration.RequestUnbindData", + "fields": [ + { + "name": "session", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "data", + "type": "RequestUnbind", + "number": 2, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.integration.RequestUnbind", + "fields": [ + { + "name": "integration_id", + "type": "bytes", + "number": 1, + "label": "" + }, + { + "name": "signature", + "type": "bytes", + "number": 2, + "label": "" + }, + { + "name": "timestamp", + "type": "uint64", + "number": 3, + "label": "" + }, + { + "name": "virtualserver_id", + "type": "string", + "number": 4, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.integration.RequestBindResponse", + "fields": [ + { + "name": "error", + "type": "IntegrationError", + "number": 1, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.integration.UserIntegrationSubscriptionInfoRequest", + "fields": [ + { + "name": "session_id", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "data", + "type": "UserIntegrationSubscriptionInfoRequestData", + "number": 2, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.integration.UserIntegrationSubscriptionInfoResponse", + "fields": [ + { + "name": "error", + "type": "IntegrationError", + "number": 1, + "label": "" + }, + { + "name": "seconds_to_wait", + "type": "uint32", + "number": 2, + "label": "" + }, + { + "name": "integration_response", + "type": "IntegrationResponseList", + "number": 3, + "label": "" + } + ] + } + ], + "enums": [], + "services": [ + { + "name": "com.teamspeak.myteamspeak.proto.integration.IntegrationUserService", + "methods": [ + { + "name": "getIntegrationUserStatus", + "request_declared": "RequestIntegrationUserStatus", + "response_declared": "IntegrationStatusUserResponse", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.integration.IntegrationUserService/getIntegrationUserStatus", + "request": "com.teamspeak.myteamspeak.proto.integration.RequestIntegrationUserStatus", + "response": "com.teamspeak.myteamspeak.proto.integration.IntegrationStatusUserResponse", + "body_auth_observations": "`session`" + }, + { + "name": "requestBindIntegration", + "request_declared": "RequestBindData", + "response_declared": "RequestBindResponse", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.integration.IntegrationUserService/requestBindIntegration", + "request": "com.teamspeak.myteamspeak.proto.integration.RequestBindData", + "response": "com.teamspeak.myteamspeak.proto.integration.RequestBindResponse", + "body_auth_observations": "`session`" + }, + { + "name": "requestUnbindIntegration", + "request_declared": "RequestUnbindData", + "response_declared": "RequestBindResponse", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.integration.IntegrationUserService/requestUnbindIntegration", + "request": "com.teamspeak.myteamspeak.proto.integration.RequestUnbindData", + "response": "com.teamspeak.myteamspeak.proto.integration.RequestBindResponse", + "body_auth_observations": "`session`" + }, + { + "name": "getUserIntegrationSubscriptionInfo", + "request_declared": "UserIntegrationSubscriptionInfoRequest", + "response_declared": "UserIntegrationSubscriptionInfoResponse", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.integration.IntegrationUserService/getUserIntegrationSubscriptionInfo", + "request": "com.teamspeak.myteamspeak.proto.integration.UserIntegrationSubscriptionInfoRequest", + "response": "com.teamspeak.myteamspeak.proto.integration.UserIntegrationSubscriptionInfoResponse", + "body_auth_observations": "`session_id`" + } + ] + } + ] + }, + { + "path": "myteamspeak_login.proto", + "package": "com.teamspeak.myteamspeak.proto.login", + "application": true, + "syntax": "proto3", + "sha256": "8face38f305b00c7dc930d866af74838bf14d45303180039637983426113f0dc", + "imports": [ + "myteamspeak_common.proto" + ], + "messages": [ + { + "name": "com.teamspeak.myteamspeak.proto.login.requestExpireTime", + "fields": [ + { + "name": "uuid", + "type": "string", + "number": 1, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.login.replyExpireTime", + "fields": [ + { + "name": "purge", + "type": "int64", + "number": 1, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.login.AuthTokenListRequest", + "fields": [ + { + "name": "email", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "password", + "type": "string", + "number": 2, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.login.AuthTokenListReply", + "fields": [ + { + "name": "entries", + "type": "Entry", + "number": 1, + "label": "repeated" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.login.AuthTokenListReply.Entry", + "fields": [ + { + "name": "creation", + "type": "uint64", + "number": 1, + "label": "" + }, + { + "name": "device_description", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "id", + "type": "string", + "number": 3, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.login.AuthTokenExpireRequest", + "fields": [ + { + "name": "email", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "password", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "id", + "type": "string", + "number": 3, + "label": "repeated" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.login.AuthTokenExpireReply", + "fields": [ + { + "name": "success", + "type": "bool", + "number": 1, + "label": "" + }, + { + "name": "error_msg", + "type": "string", + "number": 2, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.login.AccountStatusInfo", + "fields": [ + { + "name": "email", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "reason", + "type": "string", + "number": 2, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.login.AccountStatusReply", + "fields": [ + { + "name": "success", + "type": "bool", + "number": 1, + "label": "" + }, + { + "name": "error_msg", + "type": "string", + "number": 2, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.login.AccountEmail", + "fields": [ + { + "name": "email", + "type": "string", + "number": 1, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.login.SuspensionReasonForUserReply", + "fields": [ + { + "name": "client_id", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "reasons", + "type": "Reason", + "number": 2, + "label": "repeated" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.login.SuspensionReasonForUserReply.Reason", + "fields": [ + { + "name": "email", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "timestamp", + "type": "int64", + "number": 2, + "label": "" + }, + { + "name": "reason", + "type": "string", + "number": 3, + "label": "" + } + ] + } + ], + "enums": [], + "services": [ + { + "name": "com.teamspeak.myteamspeak.proto.login.LoginService", + "methods": [ + { + "name": "session", + "request_declared": "Session", + "response_declared": "LoginStatus", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.login.LoginService/session", + "request": "com.teamspeak.myteamspeak.proto.Session", + "response": "com.teamspeak.myteamspeak.proto.LoginStatus", + "body_auth_observations": "`session`" + }, + { + "name": "deleteSession", + "request_declared": "Session", + "response_declared": "LoginStatus", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.login.LoginService/deleteSession", + "request": "com.teamspeak.myteamspeak.proto.Session", + "response": "com.teamspeak.myteamspeak.proto.LoginStatus", + "body_auth_observations": "`session`" + }, + { + "name": "login", + "request_declared": "LoginData", + "response_declared": "LoginSession", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.login.LoginService/login", + "request": "com.teamspeak.myteamspeak.proto.LoginData", + "response": "com.teamspeak.myteamspeak.proto.LoginSession", + "body_auth_observations": "`email`, `password`; optional OTP/device fields" + }, + { + "name": "requestAuthToken", + "request_declared": "AuthTokenRequest", + "response_declared": "AuthTokenReply", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.login.LoginService/requestAuthToken", + "request": "com.teamspeak.myteamspeak.proto.AuthTokenRequest", + "response": "com.teamspeak.myteamspeak.proto.AuthTokenReply", + "body_auth_observations": "`email`, `password`" + }, + { + "name": "loginWithAuthToken", + "request_declared": "AuthTokenLogin", + "response_declared": "LoginSession", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.login.LoginService/loginWithAuthToken", + "request": "com.teamspeak.myteamspeak.proto.AuthTokenLogin", + "response": "com.teamspeak.myteamspeak.proto.LoginSession", + "body_auth_observations": "`auth_token`" + }, + { + "name": "loginWithRenewalToken", + "request_declared": "RenewalTokenLogin", + "response_declared": "LoginSession", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.login.LoginService/loginWithRenewalToken", + "request": "com.teamspeak.myteamspeak.proto.RenewalTokenLogin", + "response": "com.teamspeak.myteamspeak.proto.LoginSession", + "body_auth_observations": "`renewal_token`, `auth_token`" + }, + { + "name": "getAuthTokenList", + "request_declared": "AuthTokenListRequest", + "response_declared": "AuthTokenListReply", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.login.LoginService/getAuthTokenList", + "request": "com.teamspeak.myteamspeak.proto.login.AuthTokenListRequest", + "response": "com.teamspeak.myteamspeak.proto.login.AuthTokenListReply", + "body_auth_observations": "`email`, `password`" + }, + { + "name": "expireAuthTokenAccess", + "request_declared": "AuthTokenExpireRequest", + "response_declared": "AuthTokenExpireReply", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.login.LoginService/expireAuthTokenAccess", + "request": "com.teamspeak.myteamspeak.proto.login.AuthTokenExpireRequest", + "response": "com.teamspeak.myteamspeak.proto.login.AuthTokenExpireReply", + "body_auth_observations": "`email`, `password`" + }, + { + "name": "deleteAccount", + "request_declared": "AccountStatusInfo", + "response_declared": "AccountStatusReply", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.login.LoginService/deleteAccount", + "request": "com.teamspeak.myteamspeak.proto.login.AccountStatusInfo", + "response": "com.teamspeak.myteamspeak.proto.login.AccountStatusReply", + "body_auth_observations": "None; `email` is a target identifier" + }, + { + "name": "suspendAccount", + "request_declared": "AccountStatusInfo", + "response_declared": "AccountStatusReply", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.login.LoginService/suspendAccount", + "request": "com.teamspeak.myteamspeak.proto.login.AccountStatusInfo", + "response": "com.teamspeak.myteamspeak.proto.login.AccountStatusReply", + "body_auth_observations": "None; `email` is a target identifier" + }, + { + "name": "reactivateAccount", + "request_declared": "AccountStatusInfo", + "response_declared": "AccountStatusReply", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.login.LoginService/reactivateAccount", + "request": "com.teamspeak.myteamspeak.proto.login.AccountStatusInfo", + "response": "com.teamspeak.myteamspeak.proto.login.AccountStatusReply", + "body_auth_observations": "None; `email` is a target identifier" + }, + { + "name": "listSuspensionReasonForUser", + "request_declared": "AccountEmail", + "response_declared": "SuspensionReasonForUserReply", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.login.LoginService/listSuspensionReasonForUser", + "request": "com.teamspeak.myteamspeak.proto.login.AccountEmail", + "response": "com.teamspeak.myteamspeak.proto.login.SuspensionReasonForUserReply", + "body_auth_observations": "None; `email` is a target identifier" + } + ] + } + ] + }, + { + "path": "myteamspeak_messenger_connector_client.proto", + "package": "com.teamspeak.myteamspeak.proto.messengerconnector", + "application": true, + "syntax": "proto3", + "sha256": "31a4ebb52d772e96ff668f13d8e2ab1c82b4b459c787d90f1ee4326883fa61fb", + "imports": [ + "google/protobuf/any.proto" + ], + "messages": [ + { + "name": "com.teamspeak.myteamspeak.proto.messengerconnector.RequestCreateMessengerAccountRequest", + "fields": [ + { + "name": "session", + "type": "string", + "number": 1, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.messengerconnector.RequestCreateMessengerAccountReply", + "fields": [ + { + "name": "return_code", + "type": "MessengerConnectorReturnCodesClient", + "number": 1, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.messengerconnector.InformContactsAvatarHasChangedRequest", + "fields": [ + { + "name": "client_id", + "type": "string", + "number": 1, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.messengerconnector.UsernameHasChangedRequest", + "fields": [ + { + "name": "client_id", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "username", + "type": "string", + "number": 2, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.messengerconnector.GenericMessageWrapper", + "fields": [ + { + "name": "message", + "type": "google.protobuf.Any", + "number": 1, + "label": "" + } + ] + } + ], + "enums": [ + { + "name": "com.teamspeak.myteamspeak.proto.messengerconnector.MessengerConnectorReturnCodesClient", + "values": [ + { + "name": "ERROR_MESSENGER_CLIENT_CODE_INVALID", + "number": 0 + }, + { + "name": "SUCCESS_ACCOUNT_CREATED", + "number": 1 + }, + { + "name": "ERROR_ACCOUNT_CREATION_FAILED", + "number": 100 + }, + { + "name": "ERROR_ACCOUNT_ALREADY_EXISTS", + "number": 101 + } + ] + } + ], + "services": [ + { + "name": "com.teamspeak.myteamspeak.proto.messengerconnector.MessengerConnectorClientService", + "methods": [ + { + "name": "requestCreateMessengerAccount", + "request_declared": "RequestCreateMessengerAccountRequest", + "response_declared": "RequestCreateMessengerAccountReply", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.messengerconnector.MessengerConnectorClientService/requestCreateMessengerAccount", + "request": "com.teamspeak.myteamspeak.proto.messengerconnector.RequestCreateMessengerAccountRequest", + "response": "com.teamspeak.myteamspeak.proto.messengerconnector.RequestCreateMessengerAccountReply", + "body_auth_observations": "`session`" + } + ] + } + ] + }, + { + "path": "myteamspeak_namedserver_common.proto", + "package": "com.teamspeak.myteamspeak.proto.namedserver", + "application": true, + "syntax": "proto3", + "sha256": "164896cec0244d654a174060249eb968879287ce8c716b570bc52473bbba7a91", + "imports": [], + "messages": [ + { + "name": "com.teamspeak.myteamspeak.proto.namedserver.IpAddress", + "fields": [ + { + "name": "ipv4", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "ipv6", + "type": "string", + "number": 2, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.namedserver.NamedServerTarget", + "fields": [ + { + "name": "domain_name", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "ip_address", + "type": "IpAddress", + "number": 2, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.namedserver.User", + "fields": [ + { + "name": "uuid", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "session", + "type": "string", + "number": 2, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.namedserver.NamedServer", + "fields": [ + { + "name": "user", + "type": "User", + "number": 1, + "label": "" + }, + { + "name": "server_name", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "target", + "type": "NamedServerTarget", + "number": 3, + "label": "" + }, + { + "name": "session", + "type": "string", + "number": 4, + "label": "" + } + ] + } + ], + "enums": [], + "services": [] + }, + { + "path": "myteamspeak_push.proto", + "package": "com.teamspeak.myteamspeak.proto.push", + "application": true, + "syntax": "proto3", + "sha256": "d8519632ec888e86315e6a9dcdf9fc40a2a6eaecfb915f1f3cfd3659278fcca6", + "imports": [ + "google/protobuf/any.proto" + ], + "messages": [ + { + "name": "com.teamspeak.myteamspeak.proto.push.IntermediateData", + "fields": [ + { + "name": "uuid", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "payload", + "type": "google.protobuf.Any", + "number": 2, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.push.PushNotification", + "fields": [ + { + "name": "payload", + "type": "google.protobuf.Any", + "number": 1, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.push.SimpleNotification", + "fields": [ + { + "name": "type", + "type": "SimpleNotificationType", + "number": 1, + "label": "" + }, + { + "name": "relogin_neccessary", + "type": "bool", + "number": 2, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.push.ContactAvatarChanged", + "fields": [ + { + "name": "kid", + "type": "string", + "number": 1, + "label": "repeated" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.push.TsChatAvatarChanged", + "fields": [ + { + "name": "mytsid", + "type": "bytes", + "number": 1, + "label": "repeated" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.push.AuthTokenUsed", + "fields": [ + { + "name": "id_hash", + "type": "string", + "number": 1, + "label": "" + } + ] + } + ], + "enums": [ + { + "name": "com.teamspeak.myteamspeak.proto.push.SimpleNotificationType", + "values": [ + { + "name": "SIMPLE_NOTIFICATION_TYPE_INVALID", + "number": 0 + }, + { + "name": "SIMPLE_NOTIFICATION_SYNC_DATA_CHANGED", + "number": 1 + }, + { + "name": "SIMPLE_NOTIFICATION_SESSION_EXPIRED", + "number": 2 + }, + { + "name": "SIMPLE_NOTIFICATION_CONTACT_HOMEBASE_CHANGED", + "number": 3 + } + ] + } + ], + "services": [] + }, + { + "path": "myteamspeak_synchronization.proto", + "package": "com.teamspeak.myteamspeak.proto.synchronization", + "application": true, + "syntax": "proto3", + "sha256": "c0c8b2c8812906e3b9f0dda9a778125e45d222bc9335108a5a5dfc9f2e4a173c", + "imports": [ + "synchronization_common.proto" + ], + "messages": [], + "enums": [], + "services": [ + { + "name": "com.teamspeak.myteamspeak.proto.synchronization.SynchronizationService", + "methods": [ + { + "name": "requestServerItems", + "request_declared": "Sync_Request_ItemClasses", + "response_declared": "Sync_Reply_ItemClasses", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.synchronization.SynchronizationService/requestServerItems", + "request": "com.teamspeak.myteamspeak.proto.synchronization.Sync_Request_ItemClasses", + "response": "com.teamspeak.myteamspeak.proto.synchronization.Sync_Reply_ItemClasses", + "body_auth_observations": "`session`" + }, + { + "name": "synchronizeItems", + "request_declared": "Sync_Request_ItemClasses", + "response_declared": "Sync_Reply_ItemClasses", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.synchronization.SynchronizationService/synchronizeItems", + "request": "com.teamspeak.myteamspeak.proto.synchronization.Sync_Request_ItemClasses", + "response": "com.teamspeak.myteamspeak.proto.synchronization.Sync_Reply_ItemClasses", + "body_auth_observations": "`session`" + } + ] + } + ] + }, + { + "path": "myteamspeak_tschat.proto", + "package": "com.teamspeak.myteamspeak.proto.tschat", + "application": true, + "syntax": "proto3", + "sha256": "dd4e941780405be2a183504b90169d1d2e488343e340fc3c6f87bb6c452c213c", + "imports": [], + "messages": [ + { + "name": "com.teamspeak.myteamspeak.proto.tschat.GroupSessionRequest", + "fields": [ + { + "name": "user", + "type": "AuthenticatedUser", + "number": 1, + "label": "" + }, + { + "name": "group_sessions", + "type": "GroupSession", + "number": 2, + "label": "repeated" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.tschat.GroupSessionResponse", + "fields": [ + { + "name": "error", + "type": "ErrorHandling", + "number": 1, + "label": "" + }, + { + "name": "group_sessions", + "type": "GroupSession", + "number": 2, + "label": "repeated" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.tschat.GroupSession", + "fields": [ + { + "name": "room_id", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "shared_session_id", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "cipher_text", + "type": "string", + "number": 3, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.tschat.AuthenticatedUser", + "fields": [ + { + "name": "session", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "matrix_id", + "type": "string", + "number": 2, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.tschat.Contact", + "fields": [ + { + "name": "ts_chat_identifier", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "note", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "matrix_id", + "type": "string", + "number": 3, + "label": "" + }, + { + "name": "matrix_id_history", + "type": "MxidHistory", + "number": 4, + "label": "repeated" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.tschat.MxidHistory", + "fields": [ + { + "name": "matrix_id", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "initiation_timestamp", + "type": "uint64", + "number": 2, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.tschat.ContactList", + "fields": [ + { + "name": "contacts", + "type": "Contact", + "number": 1, + "label": "repeated" + }, + { + "name": "error_handling", + "type": "ErrorHandling", + "number": 2, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.tschat.ChatCredentials", + "fields": [ + { + "name": "domain", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "username", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "password", + "type": "string", + "number": 3, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.tschat.CreateAccountResponse", + "fields": [ + { + "name": "error_handling", + "type": "ErrorHandling", + "number": 1, + "label": "" + }, + { + "name": "chat_credentials", + "type": "ChatCredentials", + "number": 2, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.tschat.MoveRequest", + "fields": [ + { + "name": "user", + "type": "AuthenticatedUser", + "number": 1, + "label": "" + }, + { + "name": "new_matrix_id", + "type": "string", + "number": 2, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.tschat.ContactRequest", + "fields": [ + { + "name": "user", + "type": "AuthenticatedUser", + "number": 1, + "label": "" + }, + { + "name": "contact", + "type": "Contact", + "number": 2, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.tschat.ContactRequestList", + "fields": [ + { + "name": "user", + "type": "AuthenticatedUser", + "number": 1, + "label": "" + }, + { + "name": "contacts", + "type": "Contact", + "number": 2, + "label": "repeated" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.tschat.IdentifierRequest", + "fields": [ + { + "name": "user", + "type": "AuthenticatedUser", + "number": 1, + "label": "" + }, + { + "name": "ts_chat_identifier_mapping", + "type": "TschatIdentifierMapping", + "number": 2, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.tschat.TschatIdentifierMapping", + "fields": [ + { + "name": "ts_chat_identifier", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "matrix_id", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "primary", + "type": "bool", + "number": 3, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.tschat.TschatIdentifierList", + "fields": [ + { + "name": "ts_chat_identifier_mapping", + "type": "TschatIdentifierMapping", + "number": 1, + "label": "repeated" + }, + { + "name": "error_handling", + "type": "ErrorHandling", + "number": 2, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.tschat.TschatIdentifierTagList", + "fields": [ + { + "name": "tag", + "type": "string", + "number": 1, + "label": "repeated" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.tschat.MatrixIdentifierToken", + "fields": [ + { + "name": "signature", + "type": "bytes", + "number": 1, + "label": "" + }, + { + "name": "sign_certificate", + "type": "bytes", + "number": 2, + "label": "" + }, + { + "name": "timestamp", + "type": "uint64", + "number": 3, + "label": "" + }, + { + "name": "tags", + "type": "TschatIdentifierTagList", + "number": 4, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.tschat.SignedAllowedIdentifier", + "fields": [ + { + "name": "token", + "type": "MatrixIdentifierToken", + "number": 1, + "label": "" + }, + { + "name": "error", + "type": "ErrorHandling", + "number": 2, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.tschat.ErrorHandling", + "fields": [ + { + "name": "return_code", + "type": "ChatRequestReturnCode", + "number": 1, + "label": "" + }, + { + "name": "message", + "type": "string", + "number": 2, + "label": "" + } + ] + } + ], + "enums": [ + { + "name": "com.teamspeak.myteamspeak.proto.tschat.ChatRequestReturnCode", + "values": [ + { + "name": "CHATREQUESTRETURNCODE_ERROR_UNKNOWN", + "number": 0 + }, + { + "name": "CHATREQUESTRETURNCODE_SUCCESS", + "number": 1 + }, + { + "name": "CHATREQUESTRETURNCODE_CONNECTION", + "number": 2 + }, + { + "name": "CHATREQUESTRETURNCODE_INTERNAL", + "number": 3 + }, + { + "name": "CHATREQUESTRETURNCODE_REQUEST", + "number": 4 + }, + { + "name": "CHATREQUESTRETURNCODE_SESSION_EXPIRED", + "number": 5 + }, + { + "name": "CHATREQUESTRETURNCODE_ACCOUNT_CREATION_DISABLED", + "number": 6 + } + ] + } + ], + "services": [ + { + "name": "com.teamspeak.myteamspeak.proto.tschat.ChatRequests", + "methods": [ + { + "name": "createAccount", + "request_declared": "AuthenticatedUser", + "response_declared": "CreateAccountResponse", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.tschat.ChatRequests/createAccount", + "request": "com.teamspeak.myteamspeak.proto.tschat.AuthenticatedUser", + "response": "com.teamspeak.myteamspeak.proto.tschat.CreateAccountResponse", + "body_auth_observations": "`session`; `matrix_id`" + }, + { + "name": "moveHome", + "request_declared": "MoveRequest", + "response_declared": "ErrorHandling", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.tschat.ChatRequests/moveHome", + "request": "com.teamspeak.myteamspeak.proto.tschat.MoveRequest", + "response": "com.teamspeak.myteamspeak.proto.tschat.ErrorHandling", + "body_auth_observations": "`user.session`; Matrix ID in `user`" + }, + { + "name": "getContactList", + "request_declared": "AuthenticatedUser", + "response_declared": "ContactList", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.tschat.ChatRequests/getContactList", + "request": "com.teamspeak.myteamspeak.proto.tschat.AuthenticatedUser", + "response": "com.teamspeak.myteamspeak.proto.tschat.ContactList", + "body_auth_observations": "`session`; `matrix_id`" + }, + { + "name": "updateContact", + "request_declared": "ContactRequest", + "response_declared": "ErrorHandling", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.tschat.ChatRequests/updateContact", + "request": "com.teamspeak.myteamspeak.proto.tschat.ContactRequest", + "response": "com.teamspeak.myteamspeak.proto.tschat.ErrorHandling", + "body_auth_observations": "`user.session`; Matrix ID in `user`" + }, + { + "name": "updateContactList", + "request_declared": "ContactRequestList", + "response_declared": "ErrorHandling", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.tschat.ChatRequests/updateContactList", + "request": "com.teamspeak.myteamspeak.proto.tschat.ContactRequestList", + "response": "com.teamspeak.myteamspeak.proto.tschat.ErrorHandling", + "body_auth_observations": "`user.session`; Matrix ID in `user`" + }, + { + "name": "removeContact", + "request_declared": "ContactRequest", + "response_declared": "ErrorHandling", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.tschat.ChatRequests/removeContact", + "request": "com.teamspeak.myteamspeak.proto.tschat.ContactRequest", + "response": "com.teamspeak.myteamspeak.proto.tschat.ErrorHandling", + "body_auth_observations": "`user.session`; Matrix ID in `user`" + }, + { + "name": "setPrimaryIdentifier", + "request_declared": "IdentifierRequest", + "response_declared": "TschatIdentifierList", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.tschat.ChatRequests/setPrimaryIdentifier", + "request": "com.teamspeak.myteamspeak.proto.tschat.IdentifierRequest", + "response": "com.teamspeak.myteamspeak.proto.tschat.TschatIdentifierList", + "body_auth_observations": "`user.session`; Matrix ID in `user`" + }, + { + "name": "addIdentifier", + "request_declared": "IdentifierRequest", + "response_declared": "TschatIdentifierList", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.tschat.ChatRequests/addIdentifier", + "request": "com.teamspeak.myteamspeak.proto.tschat.IdentifierRequest", + "response": "com.teamspeak.myteamspeak.proto.tschat.TschatIdentifierList", + "body_auth_observations": "`user.session`; Matrix ID in `user`" + }, + { + "name": "removeIdentifier", + "request_declared": "IdentifierRequest", + "response_declared": "TschatIdentifierList", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.tschat.ChatRequests/removeIdentifier", + "request": "com.teamspeak.myteamspeak.proto.tschat.IdentifierRequest", + "response": "com.teamspeak.myteamspeak.proto.tschat.TschatIdentifierList", + "body_auth_observations": "`user.session`; Matrix ID in `user`" + }, + { + "name": "getActiveIdentifierList", + "request_declared": "AuthenticatedUser", + "response_declared": "TschatIdentifierList", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.tschat.ChatRequests/getActiveIdentifierList", + "request": "com.teamspeak.myteamspeak.proto.tschat.AuthenticatedUser", + "response": "com.teamspeak.myteamspeak.proto.tschat.TschatIdentifierList", + "body_auth_observations": "`session`; `matrix_id`" + }, + { + "name": "getAllowedIdentifierList", + "request_declared": "AuthenticatedUser", + "response_declared": "TschatIdentifierList", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.tschat.ChatRequests/getAllowedIdentifierList", + "request": "com.teamspeak.myteamspeak.proto.tschat.AuthenticatedUser", + "response": "com.teamspeak.myteamspeak.proto.tschat.TschatIdentifierList", + "body_auth_observations": "`session`; `matrix_id`" + }, + { + "name": "getGroupSessionData", + "request_declared": "GroupSessionRequest", + "response_declared": "GroupSessionResponse", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.tschat.ChatRequests/getGroupSessionData", + "request": "com.teamspeak.myteamspeak.proto.tschat.GroupSessionRequest", + "response": "com.teamspeak.myteamspeak.proto.tschat.GroupSessionResponse", + "body_auth_observations": "`user.session`; Matrix ID in `user`" + }, + { + "name": "uploadGroupSessionData", + "request_declared": "GroupSessionRequest", + "response_declared": "ErrorHandling", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.tschat.ChatRequests/uploadGroupSessionData", + "request": "com.teamspeak.myteamspeak.proto.tschat.GroupSessionRequest", + "response": "com.teamspeak.myteamspeak.proto.tschat.ErrorHandling", + "body_auth_observations": "`user.session`; Matrix ID in `user`" + }, + { + "name": "clearAllGroupSessions", + "request_declared": "AuthenticatedUser", + "response_declared": "ErrorHandling", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.tschat.ChatRequests/clearAllGroupSessions", + "request": "com.teamspeak.myteamspeak.proto.tschat.AuthenticatedUser", + "response": "com.teamspeak.myteamspeak.proto.tschat.ErrorHandling", + "body_auth_observations": "`session`; `matrix_id`" + }, + { + "name": "clearGroupSessions", + "request_declared": "GroupSessionRequest", + "response_declared": "ErrorHandling", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.tschat.ChatRequests/clearGroupSessions", + "request": "com.teamspeak.myteamspeak.proto.tschat.GroupSessionRequest", + "response": "com.teamspeak.myteamspeak.proto.tschat.ErrorHandling", + "body_auth_observations": "`user.session`; Matrix ID in `user`" + }, + { + "name": "requestSignedAllowedIdentifierList", + "request_declared": "AuthenticatedUser", + "response_declared": "SignedAllowedIdentifier", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.tschat.ChatRequests/requestSignedAllowedIdentifierList", + "request": "com.teamspeak.myteamspeak.proto.tschat.AuthenticatedUser", + "response": "com.teamspeak.myteamspeak.proto.tschat.SignedAllowedIdentifier", + "body_auth_observations": "`session`; `matrix_id`" + } + ] + } + ] + }, + { + "path": "myteamspeak_user.proto", + "package": "com.teamspeak.myteamspeak.proto.user", + "application": true, + "syntax": "proto3", + "sha256": "4b6b0550b7234592c921f26531955b712da53094d40147ac0f24552b11efbac1", + "imports": [ + "google/protobuf/any.proto", + "myteamspeak_common.proto", + "myteamspeak_tschat.proto", + "myteamspeak_avatar_common.proto", + "myteamspeak_integration_user.proto", + "myteamspeak_namedserver_common.proto", + "synchronization_common.proto" + ], + "messages": [ + { + "name": "com.teamspeak.myteamspeak.proto.user.BackupKeyData", + "fields": [ + { + "name": "returncode", + "type": "ReturnCode", + "number": 1, + "label": "" + }, + { + "name": "backupkey", + "type": "bytes", + "number": 2, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.user.UserData", + "fields": [ + { + "name": "login", + "type": "UserLogin", + "number": 1, + "label": "" + }, + { + "name": "username", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "key", + "type": "bytes", + "number": 3, + "label": "" + }, + { + "name": "backupkey", + "type": "bytes", + "number": 4, + "label": "" + }, + { + "name": "image", + "type": "UserImg", + "number": 5, + "label": "" + }, + { + "name": "login_old", + "type": "UserLogin", + "number": 6, + "label": "" + }, + { + "name": "force_key_overwrite", + "type": "bool", + "number": 8, + "label": "" + }, + { + "name": "delete_mytsid_data", + "type": "bool", + "number": 9, + "label": "" + }, + { + "name": "session", + "type": "string", + "number": 10, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.user.UserLogin", + "fields": [ + { + "name": "email", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "password", + "type": "string", + "number": 2, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.user.UserImg", + "fields": [] + }, + { + "name": "com.teamspeak.myteamspeak.proto.user.Session", + "fields": [ + { + "name": "session", + "type": "string", + "number": 1, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.user.BadgeCode", + "fields": [ + { + "name": "code", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "session", + "type": "string", + "number": 2, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.user.UserBadge", + "fields": [ + { + "name": "uuid", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "received", + "type": "int64", + "number": 2, + "label": "" + }, + { + "name": "name", + "type": "string", + "number": 3, + "label": "" + }, + { + "name": "description", + "type": "string", + "number": 4, + "label": "" + }, + { + "name": "url", + "type": "string", + "number": 5, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.user.SignedUserBadge", + "fields": [ + { + "name": "badge", + "type": "UserBadge", + "number": 1, + "label": "" + }, + { + "name": "sign", + "type": "bytes", + "number": 2, + "label": "" + }, + { + "name": "sign_timestamp", + "type": "uint64", + "number": 3, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.user.UserBadgesSignedResponse", + "fields": [ + { + "name": "list", + "type": "UserBadgesSignedList", + "number": 1, + "label": "" + }, + { + "name": "error_code", + "type": "ErrorReturnCode", + "number": 2, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.user.UserBadgesSignedList", + "fields": [ + { + "name": "badges", + "type": "SignedUserBadge", + "number": 1, + "label": "repeated" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.user.UserBadgesList", + "fields": [ + { + "name": "badges", + "type": "UserBadge", + "number": 1, + "label": "repeated" + }, + { + "name": "error_code", + "type": "ErrorReturnCode", + "number": 2, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.user.RedeemBadgeCodeResponse", + "fields": [ + { + "name": "success", + "type": "bool", + "number": 1, + "label": "" + }, + { + "name": "error", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "error_code", + "type": "ErrorReturnCode", + "number": 3, + "label": "" + }, + { + "name": "badge_uuid", + "type": "string", + "number": 4, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.user.ReturnCode", + "fields": [ + { + "name": "success", + "type": "bool", + "number": 1, + "label": "" + }, + { + "name": "error", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "error_code", + "type": "ErrorReturnCode", + "number": 3, + "label": "" + }, + { + "name": "client_id", + "type": "string", + "number": 4, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.user.NewUserPublicKeyData", + "fields": [ + { + "name": "session", + "type": "Session", + "number": 1, + "label": "" + }, + { + "name": "user_public_key", + "type": "bytes", + "number": 2, + "label": "" + }, + { + "name": "proof", + "type": "bytes", + "number": 3, + "label": "" + }, + { + "name": "encrypted_user_private_key", + "type": "bytes", + "number": 4, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.user.NewUserPublicKeyDataResponse", + "fields": [ + { + "name": "account_creation_time", + "type": "uint64", + "number": 1, + "label": "" + }, + { + "name": "myts_id", + "type": "bytes", + "number": 2, + "label": "" + }, + { + "name": "public_signature", + "type": "bytes", + "number": 3, + "label": "" + }, + { + "name": "error", + "type": "ErrorReturnCode", + "number": 4, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.user.AvatarRequestID", + "fields": [ + { + "name": "key", + "type": "google.protobuf.Any", + "number": 1, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.user.AvatarRequestID.MYTSKey", + "fields": [ + { + "name": "id", + "type": "bytes", + "number": 1, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.user.AvatarRequestID.KIDKey", + "fields": [ + { + "name": "id", + "type": "string", + "number": 1, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.user.RequestContactsAvatarInfoRequest", + "fields": [ + { + "name": "session", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "id", + "type": "AvatarRequestID", + "number": 2, + "label": "repeated" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.user.RequestContactsAvatarInfoResponse", + "fields": [ + { + "name": "data", + "type": "AvatarInfoMap", + "number": 1, + "label": "repeated" + }, + { + "name": "error_code", + "type": "ErrorReturnCode", + "number": 2, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.user.RequestContactsAvatarInfoResponse.AvatarInfoMap", + "fields": [ + { + "name": "id", + "type": "AvatarRequestID", + "number": 1, + "label": "" + }, + { + "name": "info", + "type": "AvatarData", + "number": 2, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.user.SpawnVoiceServerLocationRequest", + "fields": [ + { + "name": "session", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "ip_address", + "type": "string", + "number": 2, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.user.SpawnVoiceServerLocationResponse", + "fields": [ + { + "name": "return_code", + "type": "ReturnCode", + "number": 1, + "label": "" + }, + { + "name": "possible_location", + "type": "SpawnVoiceServerLocation", + "number": 2, + "label": "repeated" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.user.SpawnVoiceServerLocation", + "fields": [ + { + "name": "address", + "type": "string", + "number": 1, + "label": "repeated" + }, + { + "name": "status", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "connected_clients", + "type": "int64", + "number": 3, + "label": "" + }, + { + "name": "used_slots", + "type": "int64", + "number": 4, + "label": "" + }, + { + "name": "used_channels", + "type": "int64", + "number": 5, + "label": "" + }, + { + "name": "used_server", + "type": "int64", + "number": 6, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.user.SpawnedVoiceServerListResponse", + "fields": [ + { + "name": "return_code", + "type": "ReturnCode", + "number": 2, + "label": "" + }, + { + "name": "payload", + "type": "VoiceServerPayload", + "number": 3, + "label": "repeated" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.user.SpawnedVoiceServer", + "fields": [ + { + "name": "server_uid", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "address", + "type": "string", + "number": 2, + "label": "repeated" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.user.VoiceServerRequest", + "fields": [ + { + "name": "session", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "payload", + "type": "VoiceServerPayload", + "number": 2, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.user.VoiceServerResponse", + "fields": [ + { + "name": "return_code", + "type": "ReturnCode", + "number": 1, + "label": "" + }, + { + "name": "payload", + "type": "VoiceServerPayload", + "number": 2, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.user.VoiceServerOperation", + "fields": [ + { + "name": "operation", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "payload", + "type": "VoiceServerPayload", + "number": 2, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.user.VoiceServerPayload", + "fields": [ + { + "name": "virtualserver_uuid", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "virtualserver_name", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "virtualserver_welcomemessage", + "type": "string", + "number": 3, + "label": "" + }, + { + "name": "virtualserver_maxclients", + "type": "uint32", + "number": 4, + "label": "" + }, + { + "name": "virtualserver_password", + "type": "string", + "number": 5, + "label": "" + }, + { + "name": "virtualserver_hostname", + "type": "string", + "number": 6, + "label": "" + }, + { + "name": "virtualserver_port", + "type": "uint32", + "number": 7, + "label": "" + }, + { + "name": "virtualserver_token", + "type": "string", + "number": 8, + "label": "" + }, + { + "name": "virtualserver_status", + "type": "string", + "number": 9, + "label": "" + }, + { + "name": "virtualserver_uptime", + "type": "uint32", + "number": 10, + "label": "" + }, + { + "name": "virtualserver_clientsonline", + "type": "uint32", + "number": 11, + "label": "" + }, + { + "name": "virtualserver_total_ping", + "type": "uint32", + "number": 12, + "label": "" + }, + { + "name": "virtualserver_location", + "type": "string", + "number": 13, + "label": "" + }, + { + "name": "virtualserver_unique_identifier", + "type": "string", + "number": 14, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.user.RequestUploadAvatarRequest", + "fields": [ + { + "name": "session", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "image_names", + "type": "AvatarImageMap", + "number": 2, + "label": "repeated" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.user.RequestUploadAvatarRequest.AvatarImageMap", + "fields": [ + { + "name": "state", + "type": "AvatarState", + "number": 1, + "label": "" + }, + { + "name": "name", + "type": "string", + "number": 2, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.user.RequestUploadAvatarResponse", + "fields": [ + { + "name": "error", + "type": "AvatarError", + "number": 1, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.user.RequestDeleteAvatarInfoRequest", + "fields": [ + { + "name": "session", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "images", + "type": "AvatarState", + "number": 2, + "label": "repeated" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.user.AvatarSignedUrlRequest", + "fields": [ + { + "name": "session", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "file_names", + "type": "string", + "number": 2, + "label": "repeated" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.user.AvatarSignedUrlResponse", + "fields": [ + { + "name": "return_code", + "type": "ReturnCode", + "number": 1, + "label": "" + }, + { + "name": "signed_urls", + "type": "SignedUrl", + "number": 2, + "label": "repeated" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.user.AvatarSignedUrlResponse.SignedUrl", + "fields": [ + { + "name": "file_name", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "signed_url", + "type": "string", + "number": 2, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.user.EmailChange", + "fields": [ + { + "name": "email", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "session", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "validationKey", + "type": "string", + "number": 3, + "label": "" + }, + { + "name": "key", + "type": "bytes", + "number": 4, + "label": "" + }, + { + "name": "newPw", + "type": "string", + "number": 5, + "label": "" + }, + { + "name": "currentPw", + "type": "string", + "number": 6, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.user.ResetAccountRequest", + "fields": [ + { + "name": "session", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "key", + "type": "bytes", + "number": 2, + "label": "" + }, + { + "name": "backup_key", + "type": "bytes", + "number": 3, + "label": "" + }, + { + "name": "myts_id", + "type": "NewUserPublicKeyData", + "number": 4, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.user.UpdateUserDescriptionRequest", + "fields": [ + { + "name": "session", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "description", + "type": "string", + "number": 2, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.user.UploadFileRequest", + "fields": [ + { + "name": "session", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "user_id", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "room_id", + "type": "string", + "number": 3, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.user.DownloadFileRequest", + "fields": [ + { + "name": "session", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "user_id", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "room_id", + "type": "string", + "number": 3, + "label": "" + }, + { + "name": "file_id", + "type": "string", + "number": 4, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.user.FileInfo", + "fields": [ + { + "name": "success", + "type": "bool", + "number": 1, + "label": "" + }, + { + "name": "error", + "type": "ErrorReturnCode", + "number": 2, + "label": "" + }, + { + "name": "user_id", + "type": "string", + "number": 3, + "label": "" + }, + { + "name": "room_id", + "type": "string", + "number": 4, + "label": "" + }, + { + "name": "file_id", + "type": "string", + "number": 5, + "label": "" + }, + { + "name": "signed_url", + "type": "string", + "number": 6, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.user.OtpSecretResponse", + "fields": [ + { + "name": "otp_secret", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "otp_qr_code_image", + "type": "bytes", + "number": 2, + "label": "" + }, + { + "name": "otp_qr_code_mime_type", + "type": "string", + "number": 3, + "label": "" + }, + { + "name": "return_code", + "type": "ReturnCode", + "number": 4, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.user.UpdateTwoFactorAuthTypeRequest", + "fields": [ + { + "name": "session", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "auth_type", + "type": "AuthType", + "number": 2, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.user.TwoFactorAuthTypeRequest", + "fields": [ + { + "name": "session", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "auth_type", + "type": "AuthType", + "number": 2, + "label": "" + }, + { + "name": "user_login", + "type": "UserLogin", + "number": 3, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.user.TwoFactorAuthTypeOtpConfirmationRequest", + "fields": [ + { + "name": "session", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "auth_type", + "type": "AuthType", + "number": 2, + "label": "" + }, + { + "name": "user_login", + "type": "UserLogin", + "number": 3, + "label": "" + }, + { + "name": "otp", + "type": "string", + "number": 4, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.user.TwoFactorAuthTypeResponse", + "fields": [ + { + "name": "auth_type", + "type": "AuthType", + "number": 1, + "label": "repeated" + }, + { + "name": "return_code", + "type": "ReturnCode", + "number": 2, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.user.RegisterFirebasePush", + "fields": [ + { + "name": "session", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "deviceToken", + "type": "string", + "number": 2, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.user.AuthenticatedDevice", + "fields": [ + { + "name": "device_id", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "device_name", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "first_login", + "type": "int64", + "number": 3, + "label": "" + }, + { + "name": "last_login", + "type": "int64", + "number": 4, + "label": "" + }, + { + "name": "region", + "type": "string", + "number": 5, + "label": "" + }, + { + "name": "expiry", + "type": "int64", + "number": 6, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.user.UsernameChangeAllowance", + "fields": [ + { + "name": "last_free_change_at", + "type": "int64", + "number": 1, + "label": "" + }, + { + "name": "additional_allowance", + "type": "int64", + "number": 2, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.user.Community", + "fields": [ + { + "name": "entity_id", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "client_id", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "community_id", + "type": "string", + "number": 3, + "label": "" + }, + { + "name": "stripe_customer_id", + "type": "string", + "number": 4, + "label": "" + }, + { + "name": "stripe_subscription_id", + "type": "string", + "number": 5, + "label": "" + }, + { + "name": "created", + "type": "int64", + "number": 6, + "label": "" + }, + { + "name": "updated", + "type": "int64", + "number": 7, + "label": "" + }, + { + "name": "state", + "type": "string", + "number": 8, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.user.UserMetadata", + "fields": [ + { + "name": "metadata", + "type": "map", + "number": 1, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.user.UserAccountData", + "fields": [ + { + "name": "return_code", + "type": "ReturnCode", + "number": 1, + "label": "" + }, + { + "name": "username", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "email_address", + "type": "string", + "number": 3, + "label": "" + }, + { + "name": "ts_chat_id", + "type": "string", + "number": 4, + "label": "" + }, + { + "name": "avatarInfo", + "type": "AvatarInfo", + "number": 5, + "label": "" + }, + { + "name": "integrations", + "type": "integration.IntegrationUserData", + "number": 6, + "label": "" + }, + { + "name": "registration_date", + "type": "int64", + "number": 7, + "label": "" + }, + { + "name": "description", + "type": "string", + "number": 8, + "label": "" + }, + { + "name": "chat_contacts", + "type": "tschat.ContactList", + "number": 9, + "label": "" + }, + { + "name": "ts_chat_identifier_list_active", + "type": "tschat.TschatIdentifierList", + "number": 10, + "label": "" + }, + { + "name": "ts_chat_identifier_list_allowed", + "type": "tschat.TschatIdentifierList", + "number": 11, + "label": "" + }, + { + "name": "badges", + "type": "UserBadge", + "number": 12, + "label": "repeated" + }, + { + "name": "namedservers", + "type": "namedserver.NamedServer", + "number": 13, + "label": "repeated" + }, + { + "name": "permissions", + "type": "Permissions", + "number": 14, + "label": "" + }, + { + "name": "last_login", + "type": "int64", + "number": 15, + "label": "" + }, + { + "name": "last_update", + "type": "int64", + "number": 16, + "label": "" + }, + { + "name": "author_name", + "type": "string", + "number": 17, + "label": "" + }, + { + "name": "phone", + "type": "string", + "number": 18, + "label": "" + }, + { + "name": "email_change", + "type": "EmailChange", + "number": 19, + "label": "" + }, + { + "name": "authenticated_devices", + "type": "AuthenticatedDevice", + "number": 20, + "label": "repeated" + }, + { + "name": "last_password_change", + "type": "int64", + "number": 21, + "label": "" + }, + { + "name": "usernameChangeAllowance", + "type": "UsernameChangeAllowance", + "number": 22, + "label": "" + }, + { + "name": "communities", + "type": "Community", + "number": 23, + "label": "repeated" + }, + { + "name": "last_username_change", + "type": "int64", + "number": 24, + "label": "" + }, + { + "name": "sync_items", + "type": "synchronization.Sync_Reply_ItemClasses", + "number": 25, + "label": "" + }, + { + "name": "user_metadata", + "type": "UserMetadata", + "number": 26, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.user.AccountDataRequest", + "fields": [ + { + "name": "session", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "selector", + "type": "UserAccountDataSelector", + "number": 2, + "label": "repeated" + }, + { + "name": "client_id", + "type": "string", + "number": 3, + "label": "" + } + ] + } + ], + "enums": [ + { + "name": "com.teamspeak.myteamspeak.proto.user.UserAccountDataSelector", + "values": [ + { + "name": "ALL", + "number": 0 + }, + { + "name": "BASIC_INFO", + "number": 1 + }, + { + "name": "TS_CHAT", + "number": 2 + }, + { + "name": "AVATARS", + "number": 3 + }, + { + "name": "INTEGRATIONS", + "number": 4 + }, + { + "name": "DESCRIPTION", + "number": 5 + }, + { + "name": "BADGES", + "number": 6 + }, + { + "name": "NAMEDSERVER", + "number": 7 + }, + { + "name": "PERMISSIONS", + "number": 8 + }, + { + "name": "EMAIL_CHANGE", + "number": 9 + }, + { + "name": "AUTHENTICATED_DEVICES", + "number": 10 + }, + { + "name": "USERNAME_CHANGE_ALLOWANCE", + "number": 11 + }, + { + "name": "COMMUNITIES", + "number": 12 + }, + { + "name": "SYNC", + "number": 13 + }, + { + "name": "METADATA", + "number": 14 + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.user.AuthType", + "values": [ + { + "name": "AUTH_TYPE_UNSPECIFIED", + "number": 0 + }, + { + "name": "AUTH_TYPE_OTP", + "number": 1 + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.user.ErrorReturnCode", + "values": [ + { + "name": "UNKNOWN_ERRORRETURNCODE", + "number": 0 + }, + { + "name": "ERROR_MISSING_REQUIRED_FIELD", + "number": 100 + }, + { + "name": "ERROR_EMAIL_ALREADY_TAKEN", + "number": 101 + }, + { + "name": "ERROR_UUID_COLLISION", + "number": 102 + }, + { + "name": "ERROR_DATABASE", + "number": 103 + }, + { + "name": "ERROR_LOGIN_FAILED", + "number": 104 + }, + { + "name": "ERROR_EMPTY_KEY", + "number": 105 + }, + { + "name": "ERROR_EMAIL_INVALID", + "number": 106 + }, + { + "name": "ERROR_NOT_ALLOWED", + "number": 107 + }, + { + "name": "ERROR_USERNAME_ALREADY_TAKEN", + "number": 108 + }, + { + "name": "ERROR_SESSION_EXPIRED", + "number": 109 + }, + { + "name": "ERROR_CODE_INVALID", + "number": 110 + }, + { + "name": "ERROR_USERNAME_INVALID", + "number": 111 + }, + { + "name": "ERROR_BADGE_ALREADY_PRESENT", + "number": 112 + }, + { + "name": "ERROR_KEY_ALREADY_PRESENT", + "number": 113 + }, + { + "name": "ERROR_INVALID_KEY", + "number": 114 + }, + { + "name": "ERROR_INVALID_PROOF", + "number": 115 + }, + { + "name": "ERROR_INTERNAL", + "number": 116 + }, + { + "name": "ERROR_QUOTA_EXCEEDED", + "number": 117 + }, + { + "name": "ERROR_CHANGE_EMAIL_FAILED", + "number": 118 + }, + { + "name": "ERROR_CHANGE_EMAIL_FAILED_MISSING_FIELD", + "number": 119 + }, + { + "name": "ERROR_CHANGE_EMAIL_FAILED_FUNCTIONAL_EMAIL_FORMAT", + "number": 120 + }, + { + "name": "ERROR_CHANGE_EMAIL_FAILED_FUNCTIONAL_EQUAL_EMAIL", + "number": 121 + }, + { + "name": "ERROR_CHANGE_EMAIL_FAILED_FUNCTIONAL_TARGET_EXISTS", + "number": 122 + }, + { + "name": "ERROR_CHANGE_EMAIL_FAILED_FUNCTIONAL_ALREADY_PENDING", + "number": 123 + }, + { + "name": "ERROR_GENERATE_OTP_SETUP_SECRET_FAILED", + "number": 124 + }, + { + "name": "ERROR_GET_TWO_FACTOR_AUTH_TYPE_FAILED", + "number": 125 + }, + { + "name": "ERROR_UPDATE_TWO_FACTOR_AUTH_TYPE_FAILED", + "number": 126 + }, + { + "name": "ERROR_VOICE_SERVER_START_FAILED", + "number": 127 + }, + { + "name": "ERROR_VOICE_SERVER_STOP_FAILED", + "number": 128 + }, + { + "name": "ERROR_VOICE_SERVER_READ_FAILED", + "number": 129 + }, + { + "name": "ERROR_VOICE_SERVER_TOO_MANY_REQUESTS", + "number": 130 + }, + { + "name": "ERROR_VOICE_SERVER_CREATE_FAILED", + "number": 131 + }, + { + "name": "ERROR_VOICE_SERVER_DELETE_FAILED", + "number": 132 + } + ] + } + ], + "services": [ + { + "name": "com.teamspeak.myteamspeak.proto.user.UserAccountService", + "methods": [ + { + "name": "addUser", + "request_declared": "UserData", + "response_declared": "ReturnCode", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.user.UserAccountService/addUser", + "request": "com.teamspeak.myteamspeak.proto.user.UserData", + "response": "com.teamspeak.myteamspeak.proto.user.ReturnCode", + "body_auth_observations": "`session`; `login` / `login_old` credentials" + }, + { + "name": "updateUser", + "request_declared": "UserData", + "response_declared": "ReturnCode", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.user.UserAccountService/updateUser", + "request": "com.teamspeak.myteamspeak.proto.user.UserData", + "response": "com.teamspeak.myteamspeak.proto.user.ReturnCode", + "body_auth_observations": "`session`; `login` / `login_old` credentials" + }, + { + "name": "getBackupKey", + "request_declared": "UserLogin", + "response_declared": "BackupKeyData", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.user.UserAccountService/getBackupKey", + "request": "com.teamspeak.myteamspeak.proto.user.UserLogin", + "response": "com.teamspeak.myteamspeak.proto.user.BackupKeyData", + "body_auth_observations": "`email`, `password`" + }, + { + "name": "getBadges", + "request_declared": "Session", + "response_declared": "UserBadgesList", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.user.UserAccountService/getBadges", + "request": "com.teamspeak.myteamspeak.proto.user.Session", + "response": "com.teamspeak.myteamspeak.proto.user.UserBadgesList", + "body_auth_observations": "`session`" + }, + { + "name": "redeemBadgeCode", + "request_declared": "BadgeCode", + "response_declared": "RedeemBadgeCodeResponse", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.user.UserAccountService/redeemBadgeCode", + "request": "com.teamspeak.myteamspeak.proto.user.BadgeCode", + "response": "com.teamspeak.myteamspeak.proto.user.RedeemBadgeCodeResponse", + "body_auth_observations": "`session`" + }, + { + "name": "setNewUserPublicKey", + "request_declared": "NewUserPublicKeyData", + "response_declared": "NewUserPublicKeyDataResponse", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.user.UserAccountService/setNewUserPublicKey", + "request": "com.teamspeak.myteamspeak.proto.user.NewUserPublicKeyData", + "response": "com.teamspeak.myteamspeak.proto.user.NewUserPublicKeyDataResponse", + "body_auth_observations": "`session.session`" + }, + { + "name": "requestContactsAvatar", + "request_declared": "RequestContactsAvatarInfoRequest", + "response_declared": "RequestContactsAvatarInfoResponse", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.user.UserAccountService/requestContactsAvatar", + "request": "com.teamspeak.myteamspeak.proto.user.RequestContactsAvatarInfoRequest", + "response": "com.teamspeak.myteamspeak.proto.user.RequestContactsAvatarInfoResponse", + "body_auth_observations": "`session`" + }, + { + "name": "getSignedBadges", + "request_declared": "Session", + "response_declared": "UserBadgesSignedResponse", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.user.UserAccountService/getSignedBadges", + "request": "com.teamspeak.myteamspeak.proto.user.Session", + "response": "com.teamspeak.myteamspeak.proto.user.UserBadgesSignedResponse", + "body_auth_observations": "`session`" + }, + { + "name": "requestVoiceServer", + "request_declared": "VoiceServerRequest", + "response_declared": "VoiceServerResponse", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.user.UserAccountService/requestVoiceServer", + "request": "com.teamspeak.myteamspeak.proto.user.VoiceServerRequest", + "response": "com.teamspeak.myteamspeak.proto.user.VoiceServerResponse", + "body_auth_observations": "`session`" + }, + { + "name": "requestVoiceServerLocation", + "request_declared": "SpawnVoiceServerLocationRequest", + "response_declared": "SpawnVoiceServerLocationResponse", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.user.UserAccountService/requestVoiceServerLocation", + "request": "com.teamspeak.myteamspeak.proto.user.SpawnVoiceServerLocationRequest", + "response": "com.teamspeak.myteamspeak.proto.user.SpawnVoiceServerLocationResponse", + "body_auth_observations": "`session`" + }, + { + "name": "deleteSpawnedVoiceServer", + "request_declared": "VoiceServerRequest", + "response_declared": "ReturnCode", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.user.UserAccountService/deleteSpawnedVoiceServer", + "request": "com.teamspeak.myteamspeak.proto.user.VoiceServerRequest", + "response": "com.teamspeak.myteamspeak.proto.user.ReturnCode", + "body_auth_observations": "`session`" + }, + { + "name": "listSpawnedVoiceServer", + "request_declared": "Session", + "response_declared": "SpawnedVoiceServerListResponse", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.user.UserAccountService/listSpawnedVoiceServer", + "request": "com.teamspeak.myteamspeak.proto.user.Session", + "response": "com.teamspeak.myteamspeak.proto.user.SpawnedVoiceServerListResponse", + "body_auth_observations": "`session`" + }, + { + "name": "startVoiceServer", + "request_declared": "VoiceServerRequest", + "response_declared": "VoiceServerResponse", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.user.UserAccountService/startVoiceServer", + "request": "com.teamspeak.myteamspeak.proto.user.VoiceServerRequest", + "response": "com.teamspeak.myteamspeak.proto.user.VoiceServerResponse", + "body_auth_observations": "`session`" + }, + { + "name": "stopVoiceServer", + "request_declared": "VoiceServerRequest", + "response_declared": "VoiceServerResponse", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.user.UserAccountService/stopVoiceServer", + "request": "com.teamspeak.myteamspeak.proto.user.VoiceServerRequest", + "response": "com.teamspeak.myteamspeak.proto.user.VoiceServerResponse", + "body_auth_observations": "`session`" + }, + { + "name": "readVoiceServerStatus", + "request_declared": "VoiceServerRequest", + "response_declared": "VoiceServerResponse", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.user.UserAccountService/readVoiceServerStatus", + "request": "com.teamspeak.myteamspeak.proto.user.VoiceServerRequest", + "response": "com.teamspeak.myteamspeak.proto.user.VoiceServerResponse", + "body_auth_observations": "`session`" + }, + { + "name": "requestAvatarSignedUrl", + "request_declared": "AvatarSignedUrlRequest", + "response_declared": "AvatarSignedUrlResponse", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.user.UserAccountService/requestAvatarSignedUrl", + "request": "com.teamspeak.myteamspeak.proto.user.AvatarSignedUrlRequest", + "response": "com.teamspeak.myteamspeak.proto.user.AvatarSignedUrlResponse", + "body_auth_observations": "`session`" + }, + { + "name": "requestUploadAvatar", + "request_declared": "RequestUploadAvatarRequest", + "response_declared": "RequestUploadAvatarResponse", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.user.UserAccountService/requestUploadAvatar", + "request": "com.teamspeak.myteamspeak.proto.user.RequestUploadAvatarRequest", + "response": "com.teamspeak.myteamspeak.proto.user.RequestUploadAvatarResponse", + "body_auth_observations": "`session`" + }, + { + "name": "requestDeleteAvatar", + "request_declared": "RequestDeleteAvatarInfoRequest", + "response_declared": "ReturnCode", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.user.UserAccountService/requestDeleteAvatar", + "request": "com.teamspeak.myteamspeak.proto.user.RequestDeleteAvatarInfoRequest", + "response": "com.teamspeak.myteamspeak.proto.user.ReturnCode", + "body_auth_observations": "`session`" + }, + { + "name": "changeEmail", + "request_declared": "EmailChange", + "response_declared": "ReturnCode", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.user.UserAccountService/changeEmail", + "request": "com.teamspeak.myteamspeak.proto.user.EmailChange", + "response": "com.teamspeak.myteamspeak.proto.user.ReturnCode", + "body_auth_observations": "`session`; `validationKey`, `currentPw`, `newPw`" + }, + { + "name": "resetAccount", + "request_declared": "ResetAccountRequest", + "response_declared": "ReturnCode", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.user.UserAccountService/resetAccount", + "request": "com.teamspeak.myteamspeak.proto.user.ResetAccountRequest", + "response": "com.teamspeak.myteamspeak.proto.user.ReturnCode", + "body_auth_observations": "`session`, `myts_id.session.session`" + }, + { + "name": "updateUserDescription", + "request_declared": "UpdateUserDescriptionRequest", + "response_declared": "ReturnCode", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.user.UserAccountService/updateUserDescription", + "request": "com.teamspeak.myteamspeak.proto.user.UpdateUserDescriptionRequest", + "response": "com.teamspeak.myteamspeak.proto.user.ReturnCode", + "body_auth_observations": "`session`" + }, + { + "name": "requestUploadFile", + "request_declared": "UploadFileRequest", + "response_declared": "FileInfo", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.user.UserAccountService/requestUploadFile", + "request": "com.teamspeak.myteamspeak.proto.user.UploadFileRequest", + "response": "com.teamspeak.myteamspeak.proto.user.FileInfo", + "body_auth_observations": "`session`" + }, + { + "name": "requestDownloadFile", + "request_declared": "DownloadFileRequest", + "response_declared": "FileInfo", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.user.UserAccountService/requestDownloadFile", + "request": "com.teamspeak.myteamspeak.proto.user.DownloadFileRequest", + "response": "com.teamspeak.myteamspeak.proto.user.FileInfo", + "body_auth_observations": "`session`" + }, + { + "name": "generateOtpSetupSecret", + "request_declared": "TwoFactorAuthTypeRequest", + "response_declared": "OtpSecretResponse", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.user.UserAccountService/generateOtpSetupSecret", + "request": "com.teamspeak.myteamspeak.proto.user.TwoFactorAuthTypeRequest", + "response": "com.teamspeak.myteamspeak.proto.user.OtpSecretResponse", + "body_auth_observations": "`session`; `user_login` credentials" + }, + { + "name": "updateTwoFactorAuthType", + "request_declared": "UpdateTwoFactorAuthTypeRequest", + "response_declared": "ReturnCode", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.user.UserAccountService/updateTwoFactorAuthType", + "request": "com.teamspeak.myteamspeak.proto.user.UpdateTwoFactorAuthTypeRequest", + "response": "com.teamspeak.myteamspeak.proto.user.ReturnCode", + "body_auth_observations": "`session`" + }, + { + "name": "confirmTwoFactorAuthTypeOtp", + "request_declared": "TwoFactorAuthTypeOtpConfirmationRequest", + "response_declared": "ReturnCode", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.user.UserAccountService/confirmTwoFactorAuthTypeOtp", + "request": "com.teamspeak.myteamspeak.proto.user.TwoFactorAuthTypeOtpConfirmationRequest", + "response": "com.teamspeak.myteamspeak.proto.user.ReturnCode", + "body_auth_observations": "`session`; `user_login` credentials; `otp`" + }, + { + "name": "removeTwoFactorAuthType", + "request_declared": "TwoFactorAuthTypeRequest", + "response_declared": "ReturnCode", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.user.UserAccountService/removeTwoFactorAuthType", + "request": "com.teamspeak.myteamspeak.proto.user.TwoFactorAuthTypeRequest", + "response": "com.teamspeak.myteamspeak.proto.user.ReturnCode", + "body_auth_observations": "`session`; `user_login` credentials" + }, + { + "name": "getTwoFactorAuthType", + "request_declared": "Session", + "response_declared": "TwoFactorAuthTypeResponse", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.user.UserAccountService/getTwoFactorAuthType", + "request": "com.teamspeak.myteamspeak.proto.user.Session", + "response": "com.teamspeak.myteamspeak.proto.user.TwoFactorAuthTypeResponse", + "body_auth_observations": "`session`" + }, + { + "name": "registerFirebasePush", + "request_declared": "RegisterFirebasePush", + "response_declared": "ReturnCode", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.user.UserAccountService/registerFirebasePush", + "request": "com.teamspeak.myteamspeak.proto.user.RegisterFirebasePush", + "response": "com.teamspeak.myteamspeak.proto.user.ReturnCode", + "body_auth_observations": "`session`" + }, + { + "name": "getAccountData", + "request_declared": "AccountDataRequest", + "response_declared": "UserAccountData", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.user.UserAccountService/getAccountData", + "request": "com.teamspeak.myteamspeak.proto.user.AccountDataRequest", + "response": "com.teamspeak.myteamspeak.proto.user.UserAccountData", + "body_auth_observations": "`session`" + } + ] + } + ] + }, + { + "path": "myteamspeak_user_management.proto", + "package": "com.teamspeak.myteamspeak.proto.management.user", + "application": true, + "syntax": "proto3", + "sha256": "86ad9c6061b3e1ff22e3ccb62c5b127a95048bb8a0de1cad488b686519ab5635", + "imports": [ + "myteamspeak_common.proto", + "global_badge_list.proto" + ], + "messages": [ + { + "name": "com.teamspeak.myteamspeak.proto.management.user.SearchLimit", + "fields": [ + { + "name": "request_size", + "type": "int32", + "number": 1, + "label": "" + }, + { + "name": "last_uuid", + "type": "string", + "number": 2, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.management.user.Activation", + "fields": [ + { + "name": "email", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "key", + "type": "string", + "number": 2, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.management.user.Request", + "fields": [ + { + "name": "session", + "type": "string", + "number": 3, + "label": "" + }, + { + "name": "email", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "uuid", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "username", + "type": "string", + "number": 4, + "label": "" + }, + { + "name": "self_deletion_validation_key", + "type": "string", + "number": 5, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.management.user.AddonDevRequest", + "fields": [ + { + "name": "uuid", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "new_status", + "type": "AddonDevStatus", + "number": 2, + "label": "" + }, + { + "name": "revoke", + "type": "bool", + "number": 3, + "label": "" + }, + { + "name": "author_name", + "type": "string", + "number": 7, + "label": "" + }, + { + "name": "phone", + "type": "PhoneNumber", + "number": 9, + "label": "" + }, + { + "name": "confirmation_code", + "type": "string", + "number": 4, + "label": "" + }, + { + "name": "rejection_reason", + "type": "string", + "number": 10, + "label": "" + }, + { + "name": "notes", + "type": "string", + "number": 11, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.management.user.PhoneNumber", + "fields": [ + { + "name": "country_code", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "national_number", + "type": "string", + "number": 2, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.management.user.PasswordResetRequest", + "fields": [ + { + "name": "email", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "key", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "password", + "type": "string", + "number": 3, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.management.user.BadgeCodesRequest", + "fields": [ + { + "name": "badge_uuid", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "count", + "type": "int32", + "number": 2, + "label": "" + }, + { + "name": "expiry", + "type": "string", + "number": 3, + "label": "" + }, + { + "name": "multiple_use", + "type": "bool", + "number": 4, + "label": "" + }, + { + "name": "quota", + "type": "int32", + "number": 5, + "label": "" + }, + { + "name": "activation_start_timestamp", + "type": "int64", + "number": 6, + "label": "" + }, + { + "name": "activation_end_timestamp", + "type": "int64", + "number": 7, + "label": "" + }, + { + "name": "badge_code", + "type": "string", + "number": 8, + "label": "" + }, + { + "name": "session", + "type": "string", + "number": 9, + "label": "" + }, + { + "name": "generation_style", + "type": "string", + "number": 10, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.management.user.ListBadgeCodesResponse", + "fields": [ + { + "name": "success", + "type": "bool", + "number": 1, + "label": "" + }, + { + "name": "error", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "error_code", + "type": "UserManagementErrorReturnCode", + "number": 3, + "label": "" + }, + { + "name": "badge_codes", + "type": "BadgeCodesRequest", + "number": 4, + "label": "repeated" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.management.user.UserLightDataList", + "fields": [ + { + "name": "userlist", + "type": "UserLightData", + "number": 1, + "label": "repeated" + }, + { + "name": "error_code", + "type": "UserManagementErrorReturnCode", + "number": 2, + "label": "" + }, + { + "name": "success", + "type": "bool", + "number": 3, + "label": "" + }, + { + "name": "error_message", + "type": "string", + "number": 4, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.management.user.UserLightData", + "fields": [ + { + "name": "uuid", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "email", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "username", + "type": "string", + "number": 3, + "label": "" + }, + { + "name": "details", + "type": "UserDetailData", + "number": 4, + "label": "" + }, + { + "name": "error_code", + "type": "UserManagementErrorReturnCode", + "number": 5, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.management.user.UserDetailData", + "fields": [ + { + "name": "haskey", + "type": "bool", + "number": 1, + "label": "" + }, + { + "name": "hasbackupkey", + "type": "bool", + "number": 2, + "label": "" + }, + { + "name": "last_login", + "type": "int64", + "number": 3, + "label": "" + }, + { + "name": "last_update", + "type": "int64", + "number": 4, + "label": "" + }, + { + "name": "registration_date", + "type": "int64", + "number": 9, + "label": "" + }, + { + "name": "limits", + "type": "int32", + "number": 5, + "label": "repeated" + }, + { + "name": "addon_dev", + "type": "AddonDevStatus", + "number": 6, + "label": "" + }, + { + "name": "author_name", + "type": "string", + "number": 7, + "label": "" + }, + { + "name": "phone", + "type": "string", + "number": 8, + "label": "" + }, + { + "name": "confirmation_code", + "type": "string", + "number": 10, + "label": "" + }, + { + "name": "permission", + "type": "Permissions", + "number": 11, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.management.user.KeyData", + "fields": [ + { + "name": "key", + "type": "bytes", + "number": 1, + "label": "" + }, + { + "name": "error", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "error_code", + "type": "UserManagementErrorReturnCode", + "number": 3, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.management.user.AddonDevReturnCode", + "fields": [ + { + "name": "success", + "type": "bool", + "number": 1, + "label": "" + }, + { + "name": "phone", + "type": "string", + "number": 4, + "label": "" + }, + { + "name": "error", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "error_code", + "type": "UserManagementErrorReturnCode", + "number": 3, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.management.user.BadgeCodes", + "fields": [ + { + "name": "codes", + "type": "string", + "number": 1, + "label": "repeated" + }, + { + "name": "error", + "type": "string", + "number": 3, + "label": "" + }, + { + "name": "error_code", + "type": "UserManagementErrorReturnCode", + "number": 2, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.management.user.EmailChange", + "fields": [ + { + "name": "email", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "uuid", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "validationKey", + "type": "string", + "number": 3, + "label": "" + }, + { + "name": "key", + "type": "bytes", + "number": 4, + "label": "" + }, + { + "name": "newPw", + "type": "string", + "number": 5, + "label": "" + }, + { + "name": "currentPw", + "type": "string", + "number": 6, + "label": "" + }, + { + "name": "session", + "type": "string", + "number": 7, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.management.user.AssignBadgeRequest", + "fields": [ + { + "name": "badge_uuid", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "reason", + "type": "string", + "number": 3, + "label": "" + }, + { + "name": "session", + "type": "string", + "number": 5, + "label": "" + }, + { + "name": "email", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "client_id", + "type": "string", + "number": 4, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.management.user.UserFullData", + "fields": [ + { + "name": "return_code", + "type": "UserManagementReturnCode", + "number": 1, + "label": "" + }, + { + "name": "user_data_field", + "type": "string", + "number": 2, + "label": "repeated" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.management.user.UserRenameRequest", + "fields": [ + { + "name": "new_username", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "session", + "type": "string", + "number": 3, + "label": "" + }, + { + "name": "current_username", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "client_id", + "type": "string", + "number": 4, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.management.user.BadgeCodeReturnCode", + "fields": [ + { + "name": "success", + "type": "bool", + "number": 1, + "label": "" + }, + { + "name": "error", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "error_code", + "type": "UserManagementErrorReturnCode", + "number": 3, + "label": "" + }, + { + "name": "badge_code_request", + "type": "BadgeCodesRequest", + "number": 4, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.management.user.AddBadgeReturnCode", + "fields": [ + { + "name": "success", + "type": "bool", + "number": 1, + "label": "" + }, + { + "name": "badge_name", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "badge_uuid", + "type": "string", + "number": 3, + "label": "" + }, + { + "name": "badge_description", + "type": "string", + "number": 4, + "label": "" + }, + { + "name": "badge_url", + "type": "string", + "number": 5, + "label": "" + }, + { + "name": "error", + "type": "string", + "number": 6, + "label": "" + }, + { + "name": "error_code", + "type": "UserManagementErrorReturnCode", + "number": 7, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.management.user.UserManagementReturnCode", + "fields": [ + { + "name": "success", + "type": "bool", + "number": 1, + "label": "" + }, + { + "name": "error", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "error_code", + "type": "UserManagementErrorReturnCode", + "number": 3, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.management.user.AddBadgeRequest", + "fields": [ + { + "name": "badgeName", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "badgeDescription", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "graphicSvg", + "type": "string", + "number": 3, + "label": "" + }, + { + "name": "graphicSvgDetail", + "type": "string", + "number": 4, + "label": "" + }, + { + "name": "graphicPng16", + "type": "string", + "number": 5, + "label": "" + }, + { + "name": "graphicPng64", + "type": "string", + "number": 6, + "label": "" + }, + { + "name": "session", + "type": "string", + "number": 7, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.management.user.UpdateBadgeRequest", + "fields": [ + { + "name": "badgeUuid", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "addBadgeRequest", + "type": "AddBadgeRequest", + "number": 2, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.management.user.ListBadgesReturnCode", + "fields": [ + { + "name": "success", + "type": "bool", + "number": 1, + "label": "" + }, + { + "name": "badgeList", + "type": "cloud.BadgeList", + "number": 2, + "label": "" + }, + { + "name": "error", + "type": "string", + "number": 3, + "label": "" + }, + { + "name": "error_code", + "type": "UserManagementErrorReturnCode", + "number": 4, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.management.user.DeleteBadgeReturnCode", + "fields": [ + { + "name": "success", + "type": "bool", + "number": 1, + "label": "" + }, + { + "name": "badge_uuid", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "error", + "type": "string", + "number": 3, + "label": "" + }, + { + "name": "error_code", + "type": "UserManagementErrorReturnCode", + "number": 4, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.management.user.OAuthClient", + "fields": [ + { + "name": "allowedCorsOrigins", + "type": "string", + "number": 4, + "label": "repeated" + }, + { + "name": "audience", + "type": "string", + "number": 5, + "label": "repeated" + }, + { + "name": "backchannelLogoutSessionRequired", + "type": "bool", + "number": 6, + "label": "" + }, + { + "name": "backchannelLogoutUri", + "type": "string", + "number": 7, + "label": "" + }, + { + "name": "clientId", + "type": "string", + "number": 8, + "label": "" + }, + { + "name": "clientName", + "type": "string", + "number": 9, + "label": "" + }, + { + "name": "clientSecret", + "type": "string", + "number": 10, + "label": "" + }, + { + "name": "clientSecretExpiresAt", + "type": "int64", + "number": 11, + "label": "" + }, + { + "name": "clientUri", + "type": "string", + "number": 12, + "label": "" + }, + { + "name": "contacts", + "type": "string", + "number": 13, + "label": "repeated" + }, + { + "name": "createdAt", + "type": "int64", + "number": 14, + "label": "" + }, + { + "name": "frontchannelLogoutSessionRequired", + "type": "bool", + "number": 15, + "label": "" + }, + { + "name": "frontchannelLogoutUri", + "type": "string", + "number": 16, + "label": "" + }, + { + "name": "grantTypes", + "type": "string", + "number": 17, + "label": "repeated" + }, + { + "name": "logoUri", + "type": "string", + "number": 18, + "label": "" + }, + { + "name": "owner", + "type": "string", + "number": 19, + "label": "" + }, + { + "name": "policyUri", + "type": "string", + "number": 20, + "label": "" + }, + { + "name": "postLogoutRedirectUris", + "type": "string", + "number": 21, + "label": "repeated" + }, + { + "name": "redirectUris", + "type": "string", + "number": 22, + "label": "repeated" + }, + { + "name": "requestUris", + "type": "string", + "number": 23, + "label": "repeated" + }, + { + "name": "responseTypes", + "type": "string", + "number": 24, + "label": "repeated" + }, + { + "name": "scope", + "type": "string", + "number": 25, + "label": "" + }, + { + "name": "sectorIdentifierUri", + "type": "string", + "number": 26, + "label": "" + }, + { + "name": "subjectType", + "type": "string", + "number": 27, + "label": "" + }, + { + "name": "tokenEndpointAuthMethod", + "type": "string", + "number": 28, + "label": "" + }, + { + "name": "tosUri", + "type": "string", + "number": 29, + "label": "" + }, + { + "name": "updatedAt", + "type": "int64", + "number": 30, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.management.user.OAuthClientRequest", + "fields": [ + { + "name": "session", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "oauth_client", + "type": "OAuthClient", + "number": 2, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.management.user.OAuthClientReturnCode", + "fields": [ + { + "name": "success", + "type": "bool", + "number": 1, + "label": "" + }, + { + "name": "error", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "error_code", + "type": "UserManagementErrorReturnCode", + "number": 3, + "label": "" + }, + { + "name": "oauth_client", + "type": "OAuthClient", + "number": 4, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.management.user.ListOAuthClientsReturnCode", + "fields": [ + { + "name": "success", + "type": "bool", + "number": 1, + "label": "" + }, + { + "name": "error", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "error_code", + "type": "UserManagementErrorReturnCode", + "number": 3, + "label": "" + }, + { + "name": "oauth_clients", + "type": "OAuthClient", + "number": 4, + "label": "repeated" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.management.user.SearchTerm", + "fields": [ + { + "name": "criterion", + "type": "UserSearchCriterionSelector", + "number": 1, + "label": "" + }, + { + "name": "content", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "session", + "type": "string", + "number": 3, + "label": "" + }, + { + "name": "limit", + "type": "int64", + "number": 4, + "label": "" + }, + { + "name": "offset", + "type": "int64", + "number": 5, + "label": "" + }, + { + "name": "partial_search", + "type": "bool", + "number": 6, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.management.user.PermissionRequest", + "fields": [ + { + "name": "session", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "client_id", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "permission", + "type": "string", + "number": 3, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.management.user.TSCommunity", + "fields": [ + { + "name": "entity_id", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "customer_id", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "subscription_id", + "type": "string", + "number": 3, + "label": "" + }, + { + "name": "client_id", + "type": "string", + "number": 4, + "label": "" + }, + { + "name": "community_id", + "type": "string", + "number": 5, + "label": "" + }, + { + "name": "created", + "type": "int64", + "number": 6, + "label": "" + }, + { + "name": "updated", + "type": "int64", + "number": 7, + "label": "" + }, + { + "name": "state", + "type": "TSCommunityState", + "number": 8, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.management.user.TSCommunityList", + "fields": [ + { + "name": "community", + "type": "TSCommunity", + "number": 1, + "label": "repeated" + }, + { + "name": "return_code", + "type": "UserManagementReturnCode", + "number": 2, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.management.user.TSCommunityRequest", + "fields": [ + { + "name": "session", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "community", + "type": "TSCommunity", + "number": 2, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.management.user.TSCommunityListRequest", + "fields": [ + { + "name": "request", + "type": "TSCommunityRequest", + "number": 1, + "label": "" + }, + { + "name": "limit", + "type": "int64", + "number": 2, + "label": "" + }, + { + "name": "offset", + "type": "int64", + "number": 3, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.management.user.RenameAllowanceRequest", + "fields": [ + { + "name": "session", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "allowance", + "type": "int32", + "number": 2, + "label": "" + }, + { + "name": "client_id", + "type": "string", + "number": 3, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.management.user.BadgeStatisticsRequest", + "fields": [ + { + "name": "session", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "limit", + "type": "int32", + "number": 2, + "label": "" + }, + { + "name": "offset", + "type": "int32", + "number": 3, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.management.user.BadgeStatistic", + "fields": [ + { + "name": "badge_uuid", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "badge_name", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "badge_description", + "type": "string", + "number": 3, + "label": "" + }, + { + "name": "badge_url", + "type": "string", + "number": 4, + "label": "" + }, + { + "name": "user_count", + "type": "int32", + "number": 5, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.management.user.BadgeStatisticsReturnCode", + "fields": [ + { + "name": "success", + "type": "bool", + "number": 1, + "label": "" + }, + { + "name": "error", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "error_code", + "type": "UserManagementErrorReturnCode", + "number": 3, + "label": "" + }, + { + "name": "badge_statistics", + "type": "BadgeStatistic", + "number": 4, + "label": "repeated" + }, + { + "name": "total_count", + "type": "int32", + "number": 5, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.management.user.UserStatisticsRequest", + "fields": [ + { + "name": "session", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "statistic_name", + "type": "string", + "number": 2, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.management.user.UserStatistic", + "fields": [ + { + "name": "statistic_name", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "statistic_value", + "type": "int64", + "number": 2, + "label": "" + }, + { + "name": "last_updated", + "type": "string", + "number": 3, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.management.user.UserStatisticsResponse", + "fields": [ + { + "name": "success", + "type": "bool", + "number": 1, + "label": "" + }, + { + "name": "error", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "error_code", + "type": "UserManagementErrorReturnCode", + "number": 3, + "label": "" + }, + { + "name": "statistic", + "type": "UserStatistic", + "number": 4, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.management.user.AllUserStatisticsResponse", + "fields": [ + { + "name": "success", + "type": "bool", + "number": 1, + "label": "" + }, + { + "name": "error", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "error_code", + "type": "UserManagementErrorReturnCode", + "number": 3, + "label": "" + }, + { + "name": "statistics", + "type": "UserStatistic", + "number": 4, + "label": "repeated" + } + ] + } + ], + "enums": [ + { + "name": "com.teamspeak.myteamspeak.proto.management.user.TSCommunityState", + "values": [ + { + "name": "TS_COMMUNITY_STATE_UNKNOWN", + "number": 0 + }, + { + "name": "TS_COMMUNITY_STATE_ACTIVE", + "number": 1 + }, + { + "name": "TS_COMMUNITY_STATE_SUSPENDED", + "number": 2 + }, + { + "name": "TS_COMMUNITY_STATE_DELETED", + "number": 3 + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.management.user.UserSearchCriterionSelector", + "values": [ + { + "name": "USER_SEARCH_CRITERION_UNSPECIFIED", + "number": 0 + }, + { + "name": "USER_SEARCH_CRITERION_NAME", + "number": 1 + }, + { + "name": "USER_SEARCH_CRITERION_EMAIL", + "number": 2 + }, + { + "name": "USER_SEARCH_CRITERION_CLIENT_ID", + "number": 3 + }, + { + "name": "USER_SEARCH_CRITERION_BADGE", + "number": 4 + }, + { + "name": "USER_SEARCH_CRITERION_PERMISSION", + "number": 5 + }, + { + "name": "USER_SEARCH_CRITERION_MXID", + "number": 6 + }, + { + "name": "USER_SEARCH_CRITERION_NAMEDSERVER", + "number": 7 + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.management.user.UserManagementErrorReturnCode", + "values": [ + { + "name": "UNKNOWN_USERMANAGEMENTERRORRETURNCODE", + "number": 0 + }, + { + "name": "USERMANAGEMENT_ERROR_NO_USER_FOUND", + "number": 100 + }, + { + "name": "USERMANAGEMENT_ERROR_DATABASE", + "number": 101 + }, + { + "name": "USERMANAGEMENT_ERROR_USER_ACTIVATE_FAILED", + "number": 102 + }, + { + "name": "USERMANAGEMENT_ERROR_USER_REQUEST_CODE", + "number": 103 + }, + { + "name": "USERMANAGEMENT_ERROR_INVALID_REQUEST", + "number": 104 + }, + { + "name": "USERMANAGEMENT_ERROR_PASSWORD_RESET_FAILED", + "number": 105 + }, + { + "name": "USERMANAGEMENT_ERROR_ALREADY_TAKEN", + "number": 106 + }, + { + "name": "USERMANAGEMENT_ERROR_INVALID_PARAMETER", + "number": 107 + }, + { + "name": "USERMANAGEMENT_ERROR_CHANGE_EMAIL_FAILED", + "number": 108 + }, + { + "name": "USERMANAGEMENT_ERROR_EMPTY_KEY", + "number": 109 + }, + { + "name": "USERMANAGEMENT_ERROR_CHANGE_EMAIL_FAILED_MISSING_FIELD", + "number": 110 + }, + { + "name": "USERMANAGEMENT_ERROR_CHANGE_EMAIL_FAILED_FUNCTIONAL_EMAIL_FORMAT", + "number": 111 + }, + { + "name": "USERMANAGEMENT_ERROR_CHANGE_EMAIL_FAILED_FUNCTIONAL_EQUAL_EMAIL", + "number": 112 + }, + { + "name": "USERMANAGEMENT_ERROR_CHANGE_EMAIL_FAILED_FUNCTIONAL_ALREADY_PENDING", + "number": 113 + }, + { + "name": "USERMANAGEMENT_ERROR_CHANGE_EMAIL_FAILED_FUNCTIONAL_TARGET_EXISTS", + "number": 114 + }, + { + "name": "USERMANAGEMENT_ERROR_CHANGE_EMAIL_FAILED_FUNCTIONAL_WRONG_STEP", + "number": 115 + }, + { + "name": "USERMANAGEMENT_ERROR_CHANGE_EMAIL_FAILED_FUNCTIONAL_VALIDATION_KEY", + "number": 116 + }, + { + "name": "USERMANAGEMENT_ERROR_CHANGE_EMAIL_FAILED_FUNCTIONAL_NO_PROCESS", + "number": 117 + }, + { + "name": "USERMANAGEMENT_ERROR_CHANGE_EMAIL_FAILED_FUNCTIONAL_NOT_VERIFIED", + "number": 118 + }, + { + "name": "USERMANAGEMENT_ERROR_CHANGE_EMAIL_FAILED_FUNCTIONAL_WRONG_PASSWORD", + "number": 119 + }, + { + "name": "USERMANAGEMENT_ERROR_BLACKLISTED", + "number": 120 + }, + { + "name": "USERMANAGEMENT_ERROR_UPLOAD_TO_AWS_FAILED", + "number": 121 + }, + { + "name": "USERMANAGEMENT_ERROR_UPLOAD_TO_ELASTIC_FAILED", + "number": 122 + }, + { + "name": "USERMANAGEMENT_ERROR_INSUFFICIENT_PERMISSION", + "number": 123 + }, + { + "name": "USERMANAGEMENT_ERROR_DELETE_FROM_AWS_FAILED", + "number": 124 + }, + { + "name": "USERMANAGEMENT_ERROR_GET_FROM_AWS_FAILED", + "number": 125 + }, + { + "name": "USERMANAGEMENT_ERROR_DELETE_FROM_ELASTIC_FAILED", + "number": 126 + }, + { + "name": "USERMANAGEMENT_ERROR_GET_FROM_ELASTIC_FAILED", + "number": 127 + }, + { + "name": "USERMANAGEMENT_ERROR_IO_FAILED", + "number": 128 + }, + { + "name": "USERMANAGEMENT_ERROR_OAUTH_CLIENT_NOT_FOUND", + "number": 129 + }, + { + "name": "USERMANAGEMENT_ERROR_OAUTH_CLIENT_EXISTS", + "number": 130 + }, + { + "name": "USERMANAGEMENT_ERROR_USER_ACTIVATION_MISSING_FIELD_EMAIL", + "number": 131 + }, + { + "name": "USERMANAGEMENT_ERROR_USER_ACTIVATION_MISSING_FIELD_KEY", + "number": 132 + }, + { + "name": "USERMANAGEMENT_ERROR_DISALLOWED_ORIGIN", + "number": 133 + }, + { + "name": "USERMANAGEMENT_ERROR_USER_ACTIVATION_WRONG_KEY", + "number": 134 + }, + { + "name": "USERMANAGEMENT_ERROR_USER_ACTIVATION_NO_PENDING_ACTIVATION", + "number": 135 + }, + { + "name": "USERMANAGEMENT_ERROR_USER_DELETION_USER_DB_ENTRY", + "number": 136 + }, + { + "name": "USERMANAGEMENT_ERROR_USER_DELETION_KEY_MISMATCH", + "number": 137 + }, + { + "name": "USERMANAGEMENT_ERROR_USER_DELETION_STORE_KEY", + "number": 138 + }, + { + "name": "USERMANAGEMENT_ERROR_USER_DELETION_NOT_ACTIVATED", + "number": 139 + } + ] + } + ], + "services": [ + { + "name": "com.teamspeak.myteamspeak.proto.management.user.UserManagementService", + "methods": [ + { + "name": "listUser", + "request_declared": "SearchLimit", + "response_declared": "UserLightDataList", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.management.user.UserManagementService/listUser", + "request": "com.teamspeak.myteamspeak.proto.management.user.SearchLimit", + "response": "com.teamspeak.myteamspeak.proto.management.user.UserLightDataList", + "body_auth_observations": "None declared" + }, + { + "name": "getUserInfo", + "request_declared": "Request", + "response_declared": "UserLightData", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.management.user.UserManagementService/getUserInfo", + "request": "com.teamspeak.myteamspeak.proto.management.user.Request", + "response": "com.teamspeak.myteamspeak.proto.management.user.UserLightData", + "body_auth_observations": "`session`" + }, + { + "name": "getKey", + "request_declared": "Request", + "response_declared": "KeyData", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.management.user.UserManagementService/getKey", + "request": "com.teamspeak.myteamspeak.proto.management.user.Request", + "response": "com.teamspeak.myteamspeak.proto.management.user.KeyData", + "body_auth_observations": "`session`" + }, + { + "name": "deleteUser", + "request_declared": "Request", + "response_declared": "UserManagementReturnCode", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.management.user.UserManagementService/deleteUser", + "request": "com.teamspeak.myteamspeak.proto.management.user.Request", + "response": "com.teamspeak.myteamspeak.proto.management.user.UserManagementReturnCode", + "body_auth_observations": "`session`" + }, + { + "name": "activateUser", + "request_declared": "Activation", + "response_declared": "UserManagementReturnCode", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.management.user.UserManagementService/activateUser", + "request": "com.teamspeak.myteamspeak.proto.management.user.Activation", + "response": "com.teamspeak.myteamspeak.proto.management.user.UserManagementReturnCode", + "body_auth_observations": "`email`, activation `key`" + }, + { + "name": "requestNewActivation", + "request_declared": "Activation", + "response_declared": "UserManagementReturnCode", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.management.user.UserManagementService/requestNewActivation", + "request": "com.teamspeak.myteamspeak.proto.management.user.Activation", + "response": "com.teamspeak.myteamspeak.proto.management.user.UserManagementReturnCode", + "body_auth_observations": "`email`, activation `key`" + }, + { + "name": "setAddonDevStatus", + "request_declared": "AddonDevRequest", + "response_declared": "AddonDevReturnCode", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.management.user.UserManagementService/setAddonDevStatus", + "request": "com.teamspeak.myteamspeak.proto.management.user.AddonDevRequest", + "response": "com.teamspeak.myteamspeak.proto.management.user.AddonDevReturnCode", + "body_auth_observations": "None declared" + }, + { + "name": "requestPasswordReset", + "request_declared": "PasswordResetRequest", + "response_declared": "UserManagementReturnCode", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.management.user.UserManagementService/requestPasswordReset", + "request": "com.teamspeak.myteamspeak.proto.management.user.PasswordResetRequest", + "response": "com.teamspeak.myteamspeak.proto.management.user.UserManagementReturnCode", + "body_auth_observations": "`email`, reset `key`, new `password`" + }, + { + "name": "resetPassword", + "request_declared": "PasswordResetRequest", + "response_declared": "UserManagementReturnCode", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.management.user.UserManagementService/resetPassword", + "request": "com.teamspeak.myteamspeak.proto.management.user.PasswordResetRequest", + "response": "com.teamspeak.myteamspeak.proto.management.user.UserManagementReturnCode", + "body_auth_observations": "`email`, reset `key`, new `password`" + }, + { + "name": "generateBadgeCodes", + "request_declared": "BadgeCodesRequest", + "response_declared": "BadgeCodes", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.management.user.UserManagementService/generateBadgeCodes", + "request": "com.teamspeak.myteamspeak.proto.management.user.BadgeCodesRequest", + "response": "com.teamspeak.myteamspeak.proto.management.user.BadgeCodes", + "body_auth_observations": "`session`" + }, + { + "name": "changeEmail", + "request_declared": "EmailChange", + "response_declared": "UserManagementReturnCode", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.management.user.UserManagementService/changeEmail", + "request": "com.teamspeak.myteamspeak.proto.management.user.EmailChange", + "response": "com.teamspeak.myteamspeak.proto.management.user.UserManagementReturnCode", + "body_auth_observations": "`session`; `validationKey`, `currentPw`, `newPw`" + }, + { + "name": "changeEmail2", + "request_declared": "EmailChange", + "response_declared": "UserManagementReturnCode", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.management.user.UserManagementService/changeEmail2", + "request": "com.teamspeak.myteamspeak.proto.management.user.EmailChange", + "response": "com.teamspeak.myteamspeak.proto.management.user.UserManagementReturnCode", + "body_auth_observations": "`session`; `validationKey`, `currentPw`, `newPw`" + }, + { + "name": "changeEmail3", + "request_declared": "EmailChange", + "response_declared": "UserManagementReturnCode", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.management.user.UserManagementService/changeEmail3", + "request": "com.teamspeak.myteamspeak.proto.management.user.EmailChange", + "response": "com.teamspeak.myteamspeak.proto.management.user.UserManagementReturnCode", + "body_auth_observations": "`session`; `validationKey`, `currentPw`, `newPw`" + }, + { + "name": "assignBadge", + "request_declared": "AssignBadgeRequest", + "response_declared": "UserManagementReturnCode", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.management.user.UserManagementService/assignBadge", + "request": "com.teamspeak.myteamspeak.proto.management.user.AssignBadgeRequest", + "response": "com.teamspeak.myteamspeak.proto.management.user.UserManagementReturnCode", + "body_auth_observations": "`session`" + }, + { + "name": "getUserData", + "request_declared": "Request", + "response_declared": "UserFullData", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.management.user.UserManagementService/getUserData", + "request": "com.teamspeak.myteamspeak.proto.management.user.Request", + "response": "com.teamspeak.myteamspeak.proto.management.user.UserFullData", + "body_auth_observations": "`session`" + }, + { + "name": "forceRename", + "request_declared": "UserRenameRequest", + "response_declared": "UserManagementReturnCode", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.management.user.UserManagementService/forceRename", + "request": "com.teamspeak.myteamspeak.proto.management.user.UserRenameRequest", + "response": "com.teamspeak.myteamspeak.proto.management.user.UserManagementReturnCode", + "body_auth_observations": "`session`" + }, + { + "name": "addBadge", + "request_declared": "AddBadgeRequest", + "response_declared": "AddBadgeReturnCode", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.management.user.UserManagementService/addBadge", + "request": "com.teamspeak.myteamspeak.proto.management.user.AddBadgeRequest", + "response": "com.teamspeak.myteamspeak.proto.management.user.AddBadgeReturnCode", + "body_auth_observations": "`session`" + }, + { + "name": "listBadges", + "request_declared": "Session", + "response_declared": "ListBadgesReturnCode", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.management.user.UserManagementService/listBadges", + "request": "com.teamspeak.myteamspeak.proto.Session", + "response": "com.teamspeak.myteamspeak.proto.management.user.ListBadgesReturnCode", + "body_auth_observations": "`session`" + }, + { + "name": "getBadgeStatistics", + "request_declared": "BadgeStatisticsRequest", + "response_declared": "BadgeStatisticsReturnCode", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.management.user.UserManagementService/getBadgeStatistics", + "request": "com.teamspeak.myteamspeak.proto.management.user.BadgeStatisticsRequest", + "response": "com.teamspeak.myteamspeak.proto.management.user.BadgeStatisticsReturnCode", + "body_auth_observations": "`session`" + }, + { + "name": "deleteBadge", + "request_declared": "Request", + "response_declared": "DeleteBadgeReturnCode", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.management.user.UserManagementService/deleteBadge", + "request": "com.teamspeak.myteamspeak.proto.management.user.Request", + "response": "com.teamspeak.myteamspeak.proto.management.user.DeleteBadgeReturnCode", + "body_auth_observations": "`session`" + }, + { + "name": "updateBadge", + "request_declared": "UpdateBadgeRequest", + "response_declared": "AddBadgeReturnCode", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.management.user.UserManagementService/updateBadge", + "request": "com.teamspeak.myteamspeak.proto.management.user.UpdateBadgeRequest", + "response": "com.teamspeak.myteamspeak.proto.management.user.AddBadgeReturnCode", + "body_auth_observations": "`addBadgeRequest.session`" + }, + { + "name": "updateBadgeCode", + "request_declared": "BadgeCodesRequest", + "response_declared": "BadgeCodeReturnCode", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.management.user.UserManagementService/updateBadgeCode", + "request": "com.teamspeak.myteamspeak.proto.management.user.BadgeCodesRequest", + "response": "com.teamspeak.myteamspeak.proto.management.user.BadgeCodeReturnCode", + "body_auth_observations": "`session`" + }, + { + "name": "deleteBadgeCode", + "request_declared": "BadgeCodesRequest", + "response_declared": "UserManagementReturnCode", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.management.user.UserManagementService/deleteBadgeCode", + "request": "com.teamspeak.myteamspeak.proto.management.user.BadgeCodesRequest", + "response": "com.teamspeak.myteamspeak.proto.management.user.UserManagementReturnCode", + "body_auth_observations": "`session`" + }, + { + "name": "listBadgeCodes", + "request_declared": "BadgeCodesRequest", + "response_declared": "ListBadgeCodesResponse", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.management.user.UserManagementService/listBadgeCodes", + "request": "com.teamspeak.myteamspeak.proto.management.user.BadgeCodesRequest", + "response": "com.teamspeak.myteamspeak.proto.management.user.ListBadgeCodesResponse", + "body_auth_observations": "`session`" + }, + { + "name": "addOAuthClient", + "request_declared": "OAuthClientRequest", + "response_declared": "OAuthClientReturnCode", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.management.user.UserManagementService/addOAuthClient", + "request": "com.teamspeak.myteamspeak.proto.management.user.OAuthClientRequest", + "response": "com.teamspeak.myteamspeak.proto.management.user.OAuthClientReturnCode", + "body_auth_observations": "`session`" + }, + { + "name": "updateOAuthClient", + "request_declared": "OAuthClientRequest", + "response_declared": "OAuthClientReturnCode", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.management.user.UserManagementService/updateOAuthClient", + "request": "com.teamspeak.myteamspeak.proto.management.user.OAuthClientRequest", + "response": "com.teamspeak.myteamspeak.proto.management.user.OAuthClientReturnCode", + "body_auth_observations": "`session`" + }, + { + "name": "deleteOAuthClient", + "request_declared": "OAuthClientRequest", + "response_declared": "UserManagementReturnCode", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.management.user.UserManagementService/deleteOAuthClient", + "request": "com.teamspeak.myteamspeak.proto.management.user.OAuthClientRequest", + "response": "com.teamspeak.myteamspeak.proto.management.user.UserManagementReturnCode", + "body_auth_observations": "`session`" + }, + { + "name": "listOAuthClients", + "request_declared": "Request", + "response_declared": "ListOAuthClientsReturnCode", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.management.user.UserManagementService/listOAuthClients", + "request": "com.teamspeak.myteamspeak.proto.management.user.Request", + "response": "com.teamspeak.myteamspeak.proto.management.user.ListOAuthClientsReturnCode", + "body_auth_observations": "`session`" + }, + { + "name": "searchUser", + "request_declared": "SearchTerm", + "response_declared": "UserLightDataList", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.management.user.UserManagementService/searchUser", + "request": "com.teamspeak.myteamspeak.proto.management.user.SearchTerm", + "response": "com.teamspeak.myteamspeak.proto.management.user.UserLightDataList", + "body_auth_observations": "`session`" + }, + { + "name": "addPermission", + "request_declared": "PermissionRequest", + "response_declared": "UserManagementReturnCode", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.management.user.UserManagementService/addPermission", + "request": "com.teamspeak.myteamspeak.proto.management.user.PermissionRequest", + "response": "com.teamspeak.myteamspeak.proto.management.user.UserManagementReturnCode", + "body_auth_observations": "`session`" + }, + { + "name": "removePermission", + "request_declared": "PermissionRequest", + "response_declared": "UserManagementReturnCode", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.management.user.UserManagementService/removePermission", + "request": "com.teamspeak.myteamspeak.proto.management.user.PermissionRequest", + "response": "com.teamspeak.myteamspeak.proto.management.user.UserManagementReturnCode", + "body_auth_observations": "`session`" + }, + { + "name": "removeBadgeFromUser", + "request_declared": "AssignBadgeRequest", + "response_declared": "UserManagementReturnCode", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.management.user.UserManagementService/removeBadgeFromUser", + "request": "com.teamspeak.myteamspeak.proto.management.user.AssignBadgeRequest", + "response": "com.teamspeak.myteamspeak.proto.management.user.UserManagementReturnCode", + "body_auth_observations": "`session`" + }, + { + "name": "createCommunity", + "request_declared": "TSCommunityRequest", + "response_declared": "TSCommunityList", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.management.user.UserManagementService/createCommunity", + "request": "com.teamspeak.myteamspeak.proto.management.user.TSCommunityRequest", + "response": "com.teamspeak.myteamspeak.proto.management.user.TSCommunityList", + "body_auth_observations": "`session`" + }, + { + "name": "listCommunities", + "request_declared": "TSCommunityListRequest", + "response_declared": "TSCommunityList", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.management.user.UserManagementService/listCommunities", + "request": "com.teamspeak.myteamspeak.proto.management.user.TSCommunityListRequest", + "response": "com.teamspeak.myteamspeak.proto.management.user.TSCommunityList", + "body_auth_observations": "`request.session`" + }, + { + "name": "updateCommunity", + "request_declared": "TSCommunityRequest", + "response_declared": "TSCommunityList", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.management.user.UserManagementService/updateCommunity", + "request": "com.teamspeak.myteamspeak.proto.management.user.TSCommunityRequest", + "response": "com.teamspeak.myteamspeak.proto.management.user.TSCommunityList", + "body_auth_observations": "`session`" + }, + { + "name": "setRenameAllowance", + "request_declared": "RenameAllowanceRequest", + "response_declared": "UserManagementReturnCode", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.management.user.UserManagementService/setRenameAllowance", + "request": "com.teamspeak.myteamspeak.proto.management.user.RenameAllowanceRequest", + "response": "com.teamspeak.myteamspeak.proto.management.user.UserManagementReturnCode", + "body_auth_observations": "`session`" + }, + { + "name": "deleteTSChatAccount", + "request_declared": "Request", + "response_declared": "UserManagementReturnCode", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.management.user.UserManagementService/deleteTSChatAccount", + "request": "com.teamspeak.myteamspeak.proto.management.user.Request", + "response": "com.teamspeak.myteamspeak.proto.management.user.UserManagementReturnCode", + "body_auth_observations": "`session`" + }, + { + "name": "getUserStatistics", + "request_declared": "UserStatisticsRequest", + "response_declared": "UserStatisticsResponse", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.management.user.UserManagementService/getUserStatistics", + "request": "com.teamspeak.myteamspeak.proto.management.user.UserStatisticsRequest", + "response": "com.teamspeak.myteamspeak.proto.management.user.UserStatisticsResponse", + "body_auth_observations": "`session`" + }, + { + "name": "getAllUserStatistics", + "request_declared": "UserStatisticsRequest", + "response_declared": "AllUserStatisticsResponse", + "client_streaming": false, + "server_streaming": false, + "path": "/com.teamspeak.myteamspeak.proto.management.user.UserManagementService/getAllUserStatistics", + "request": "com.teamspeak.myteamspeak.proto.management.user.UserStatisticsRequest", + "response": "com.teamspeak.myteamspeak.proto.management.user.AllUserStatisticsResponse", + "body_auth_observations": "`session`" + } + ] + } + ] + }, + { + "path": "revocation_list.proto", + "package": "com.teamspeak.revocation_list", + "application": true, + "syntax": "proto3", + "sha256": "6291ebb5a9e91f4697efc2c505f1c59bf7ae8837b6e56e90e958271534a95368", + "imports": [], + "messages": [ + { + "name": "com.teamspeak.revocation_list.RevocationList", + "fields": [ + { + "name": "list", + "type": "bytes", + "number": 1, + "label": "repeated" + } + ] + } + ], + "enums": [], + "services": [] + }, + { + "path": "revoke_cache.proto", + "package": "com.teamspeak.proto.revocation", + "application": true, + "syntax": "proto3", + "sha256": "b3a753fb072afffa17852082aeab9443790ebbffc11c3a72e21d6e4529e57e25", + "imports": [], + "messages": [ + { + "name": "com.teamspeak.proto.revocation.RevokeListCachedData", + "fields": [ + { + "name": "cache_entry", + "type": "bytes", + "number": 1, + "label": "repeated" + }, + { + "name": "expiration_timestamp", + "type": "uint64", + "number": 2, + "label": "" + }, + { + "name": "last_download_success", + "type": "uint64", + "number": 3, + "label": "" + } + ] + } + ], + "enums": [], + "services": [] + }, + { + "path": "src/proto/grpc/channelz/v2/promise.proto", + "package": "grpc.channelz.v2", + "application": false, + "syntax": "proto3", + "sha256": "191ccaa4b92437144364fac4a174301a89cbb26e25c727378c031df248ac917b", + "imports": [ + "src/proto/grpc/channelz/v2/property_list.proto" + ], + "messages": [ + { + "name": "grpc.channelz.v2.Promise", + "fields": [ + { + "name": "custom_promise", + "type": "Custom", + "number": 1, + "label": "" + }, + { + "name": "unknown_promise", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "if_promise", + "type": "If", + "number": 3, + "label": "" + }, + { + "name": "loop_promise", + "type": "Loop", + "number": 4, + "label": "" + }, + { + "name": "race_promise", + "type": "Race", + "number": 5, + "label": "" + }, + { + "name": "seq_promise", + "type": "Seq", + "number": 6, + "label": "" + }, + { + "name": "join_promise", + "type": "Join", + "number": 7, + "label": "" + }, + { + "name": "map_promise", + "type": "Map", + "number": 8, + "label": "" + } + ] + }, + { + "name": "grpc.channelz.v2.Promise.Custom", + "fields": [ + { + "name": "type", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "properties", + "type": "PropertyList", + "number": 2, + "label": "" + } + ] + }, + { + "name": "grpc.channelz.v2.Promise.If", + "fields": [ + { + "name": "condition", + "type": "bool", + "number": 1, + "label": "" + }, + { + "name": "true_factory", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "false_factory", + "type": "string", + "number": 3, + "label": "" + }, + { + "name": "promise", + "type": "Promise", + "number": 4, + "label": "" + } + ] + }, + { + "name": "grpc.channelz.v2.Promise.Loop", + "fields": [ + { + "name": "loop_factory", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "promise", + "type": "Promise", + "number": 2, + "label": "" + }, + { + "name": "yield", + "type": "bool", + "number": 3, + "label": "" + } + ] + }, + { + "name": "grpc.channelz.v2.Promise.Race", + "fields": [ + { + "name": "children", + "type": "Promise", + "number": 1, + "label": "repeated" + } + ] + }, + { + "name": "grpc.channelz.v2.Promise.SeqStep", + "fields": [ + { + "name": "factory", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "polling_promise", + "type": "Promise", + "number": 2, + "label": "" + } + ] + }, + { + "name": "grpc.channelz.v2.Promise.Seq", + "fields": [ + { + "name": "kind", + "type": "CompositionKind", + "number": 1, + "label": "" + }, + { + "name": "steps", + "type": "SeqStep", + "number": 2, + "label": "repeated" + } + ] + }, + { + "name": "grpc.channelz.v2.Promise.JoinBranch", + "fields": [ + { + "name": "factory", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "polling_promise", + "type": "Promise", + "number": 2, + "label": "" + }, + { + "name": "result", + "type": "string", + "number": 3, + "label": "" + } + ] + }, + { + "name": "grpc.channelz.v2.Promise.Join", + "fields": [ + { + "name": "kind", + "type": "CompositionKind", + "number": 1, + "label": "" + }, + { + "name": "branches", + "type": "JoinBranch", + "number": 2, + "label": "repeated" + } + ] + }, + { + "name": "grpc.channelz.v2.Promise.Map", + "fields": [ + { + "name": "promise", + "type": "Promise", + "number": 1, + "label": "" + }, + { + "name": "map_fn", + "type": "string", + "number": 2, + "label": "" + } + ] + } + ], + "enums": [ + { + "name": "grpc.channelz.v2.Promise.CompositionKind", + "values": [ + { + "name": "UNKNOWN", + "number": 0 + }, + { + "name": "NORMAL", + "number": 1 + }, + { + "name": "TRY", + "number": 2 + } + ] + } + ], + "services": [] + }, + { + "path": "src/proto/grpc/channelz/v2/property_list.proto", + "package": "grpc.channelz.v2", + "application": false, + "syntax": "proto3", + "sha256": "4211135f1a10c00e9be0106825457219d7a4f29dc81ef2d3f463c49da1eed05d", + "imports": [ + "google/protobuf/any.proto", + "google/protobuf/empty.proto", + "google/protobuf/timestamp.proto", + "google/protobuf/duration.proto" + ], + "messages": [ + { + "name": "grpc.channelz.v2.PropertyList", + "fields": [ + { + "name": "properties", + "type": "map", + "number": 1, + "label": "" + } + ] + }, + { + "name": "grpc.channelz.v2.PropertyGrid", + "fields": [ + { + "name": "columns", + "type": "string", + "number": 1, + "label": "repeated" + }, + { + "name": "rows", + "type": "Row", + "number": 2, + "label": "repeated" + } + ] + }, + { + "name": "grpc.channelz.v2.PropertyGrid.Row", + "fields": [ + { + "name": "label", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "value", + "type": "PropertyValue", + "number": 2, + "label": "repeated" + } + ] + }, + { + "name": "grpc.channelz.v2.PropertyTable", + "fields": [ + { + "name": "columns", + "type": "string", + "number": 1, + "label": "repeated" + }, + { + "name": "rows", + "type": "Row", + "number": 2, + "label": "repeated" + } + ] + }, + { + "name": "grpc.channelz.v2.PropertyTable.Row", + "fields": [ + { + "name": "value", + "type": "PropertyValue", + "number": 1, + "label": "repeated" + } + ] + }, + { + "name": "grpc.channelz.v2.PropertyValue", + "fields": [ + { + "name": "empty_value", + "type": "google.protobuf.Empty", + "number": 1, + "label": "" + }, + { + "name": "any_value", + "type": "google.protobuf.Any", + "number": 2, + "label": "" + }, + { + "name": "string_value", + "type": "string", + "number": 3, + "label": "" + }, + { + "name": "int64_value", + "type": "int64", + "number": 4, + "label": "" + }, + { + "name": "uint64_value", + "type": "uint64", + "number": 5, + "label": "" + }, + { + "name": "double_value", + "type": "double", + "number": 6, + "label": "" + }, + { + "name": "bool_value", + "type": "bool", + "number": 7, + "label": "" + }, + { + "name": "timestamp_value", + "type": "google.protobuf.Timestamp", + "number": 8, + "label": "" + }, + { + "name": "duration_value", + "type": "google.protobuf.Duration", + "number": 9, + "label": "" + } + ] + } + ], + "enums": [], + "services": [] + }, + { + "path": "src/proto/grpc/lookup/v1/rls_config.proto", + "package": "grpc.lookup.v1", + "application": false, + "syntax": "proto3", + "sha256": "28bff22d8fefc28b32c8bb9290f5338f66aad96f2b5617fb4990370c4676f153", + "imports": [ + "google/protobuf/duration.proto" + ], + "messages": [ + { + "name": "grpc.lookup.v1.NameMatcher", + "fields": [ + { + "name": "key", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "names", + "type": "string", + "number": 2, + "label": "repeated" + }, + { + "name": "required_match", + "type": "bool", + "number": 3, + "label": "" + } + ] + }, + { + "name": "grpc.lookup.v1.GrpcKeyBuilder", + "fields": [ + { + "name": "names", + "type": "Name", + "number": 1, + "label": "repeated" + }, + { + "name": "extra_keys", + "type": "ExtraKeys", + "number": 3, + "label": "" + }, + { + "name": "headers", + "type": "NameMatcher", + "number": 2, + "label": "repeated" + }, + { + "name": "constant_keys", + "type": "map", + "number": 4, + "label": "" + } + ] + }, + { + "name": "grpc.lookup.v1.GrpcKeyBuilder.Name", + "fields": [ + { + "name": "service", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "method", + "type": "string", + "number": 2, + "label": "" + } + ] + }, + { + "name": "grpc.lookup.v1.GrpcKeyBuilder.ExtraKeys", + "fields": [ + { + "name": "host", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "service", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "method", + "type": "string", + "number": 3, + "label": "" + } + ] + }, + { + "name": "grpc.lookup.v1.HttpKeyBuilder", + "fields": [ + { + "name": "host_patterns", + "type": "string", + "number": 1, + "label": "repeated" + }, + { + "name": "path_patterns", + "type": "string", + "number": 2, + "label": "repeated" + }, + { + "name": "query_parameters", + "type": "NameMatcher", + "number": 3, + "label": "repeated" + }, + { + "name": "headers", + "type": "NameMatcher", + "number": 4, + "label": "repeated" + }, + { + "name": "constant_keys", + "type": "map", + "number": 5, + "label": "" + } + ] + }, + { + "name": "grpc.lookup.v1.RouteLookupConfig", + "fields": [ + { + "name": "http_keybuilders", + "type": "HttpKeyBuilder", + "number": 1, + "label": "repeated" + }, + { + "name": "grpc_keybuilders", + "type": "GrpcKeyBuilder", + "number": 2, + "label": "repeated" + }, + { + "name": "lookup_service", + "type": "string", + "number": 3, + "label": "" + }, + { + "name": "lookup_service_timeout", + "type": "google.protobuf.Duration", + "number": 4, + "label": "" + }, + { + "name": "max_age", + "type": "google.protobuf.Duration", + "number": 5, + "label": "" + }, + { + "name": "stale_age", + "type": "google.protobuf.Duration", + "number": 6, + "label": "" + }, + { + "name": "cache_size_bytes", + "type": "int64", + "number": 7, + "label": "" + }, + { + "name": "valid_targets", + "type": "string", + "number": 8, + "label": "repeated" + }, + { + "name": "default_target", + "type": "string", + "number": 9, + "label": "" + } + ] + }, + { + "name": "grpc.lookup.v1.RouteLookupClusterSpecifier", + "fields": [ + { + "name": "route_lookup_config", + "type": "RouteLookupConfig", + "number": 1, + "label": "" + } + ] + } + ], + "enums": [], + "services": [] + }, + { + "path": "synchronization_common.proto", + "package": "com.teamspeak.myteamspeak.proto.synchronization", + "application": true, + "syntax": "proto3", + "sha256": "192cf39be19e3df628b104ed6e67b7b8a8077b228cb28950470816d4c41a574a", + "imports": [], + "messages": [ + { + "name": "com.teamspeak.myteamspeak.proto.synchronization.Sync_Request_ItemClasses", + "fields": [ + { + "name": "session", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "classes", + "type": "Sync_ItemClasses_Data", + "number": 2, + "label": "repeated" + }, + { + "name": "globalversion", + "type": "string", + "number": 3, + "label": "" + }, + { + "name": "sync_version", + "type": "Sync_Version", + "number": 4, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.synchronization.Sync_Reply_ItemClasses", + "fields": [ + { + "name": "status", + "type": "SyncStatus", + "number": 1, + "label": "" + }, + { + "name": "classes", + "type": "Sync_ItemClasses_Data", + "number": 2, + "label": "repeated" + }, + { + "name": "globalversion", + "type": "string", + "number": 3, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.synchronization.Sync_ItemClasses_Data", + "fields": [ + { + "name": "itemclass", + "type": "Item_Class", + "number": 1, + "label": "" + }, + { + "name": "version", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "detail", + "type": "Sync_ItemClasses_Data_Detail", + "number": 3, + "label": "repeated" + }, + { + "name": "not_in_db", + "type": "bool", + "number": 4, + "label": "" + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.synchronization.Sync_ItemClasses_Data_Detail", + "fields": [ + { + "name": "item_uuid", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "item_version", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "item_blob", + "type": "bytes", + "number": 3, + "label": "" + }, + { + "name": "item_delte_on_server", + "type": "bool", + "number": 4, + "label": "" + } + ] + } + ], + "enums": [ + { + "name": "com.teamspeak.myteamspeak.proto.synchronization.SyncStatus", + "values": [ + { + "name": "UNKNOWN_SYNCSTATUS", + "number": 0 + }, + { + "name": "ERROR_FE_UNKNOWN_METHOD", + "number": 100 + }, + { + "name": "ERROR_FE_UNKNOWN_DATA", + "number": 101 + }, + { + "name": "ERROR_SESSION_EXPIRED", + "number": 102 + }, + { + "name": "ERROR_CRITICAL", + "number": 103 + }, + { + "name": "IN_SYNC", + "number": 300 + }, + { + "name": "NOT_IN_SYNC", + "number": 301 + }, + { + "name": "NOT_IN_DB", + "number": 302 + }, + { + "name": "COLLISION", + "number": 303 + }, + { + "name": "OVERLIMIT", + "number": 304 + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.synchronization.Item_Class", + "values": [ + { + "name": "BOOKMARK", + "number": 0 + }, + { + "name": "IDENTITY", + "number": 1 + }, + { + "name": "WHISPER_LIST", + "number": 2 + }, + { + "name": "HOTKEY_PROFILE", + "number": 3 + }, + { + "name": "ADD_ON", + "number": 4 + }, + { + "name": "CONFIG", + "number": 5 + }, + { + "name": "ITEM_FOLDER", + "number": 6 + }, + { + "name": "GROUP_CHATS", + "number": 7 + }, + { + "name": "CONTACTS", + "number": 8 + } + ] + }, + { + "name": "com.teamspeak.myteamspeak.proto.synchronization.Sync_Version", + "values": [ + { + "name": "DEFAULT", + "number": 0 + }, + { + "name": "V1_1", + "number": 1 + } + ] + } + ], + "services": [] + }, + { + "path": "teamspeak_push_grpc.proto", + "package": "com.teamspeak.push.proto", + "application": true, + "syntax": "proto3", + "sha256": "8608dacc0ceb566179f50fcccfc7f341bd7a3ff142bf71b9b642875dcfb6f6bf", + "imports": [ + "google/protobuf/empty.proto" + ], + "messages": [ + { + "name": "com.teamspeak.push.proto.Message", + "fields": [ + { + "name": "payload", + "type": "bytes", + "number": 1, + "label": "" + } + ] + } + ], + "enums": [], + "services": [ + { + "name": "com.teamspeak.push.proto.PushService", + "methods": [ + { + "name": "longPull", + "request_declared": "google.protobuf.Empty", + "response_declared": "Message", + "client_streaming": false, + "server_streaming": true, + "path": "/com.teamspeak.push.proto.PushService/longPull", + "request": "google.protobuf.Empty", + "response": "com.teamspeak.push.proto.Message", + "body_auth_observations": "None declared" + } + ] + } + ] + }, + { + "path": "udpa/annotations/migrate.proto", + "package": "udpa.annotations", + "application": false, + "syntax": "proto3", + "sha256": "da92f15a197eeedb01b41009cc56b643251f83c54c4d1e1658da1d64c43dd1fb", + "imports": [ + "google/protobuf/descriptor.proto" + ], + "messages": [ + { + "name": "udpa.annotations.MigrateAnnotation", + "fields": [ + { + "name": "rename", + "type": "string", + "number": 1, + "label": "" + } + ] + }, + { + "name": "udpa.annotations.FieldMigrateAnnotation", + "fields": [ + { + "name": "rename", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "oneof_promotion", + "type": "string", + "number": 2, + "label": "" + } + ] + }, + { + "name": "udpa.annotations.FileMigrateAnnotation", + "fields": [ + { + "name": "move_to_package", + "type": "string", + "number": 2, + "label": "" + } + ] + } + ], + "enums": [], + "services": [] + }, + { + "path": "udpa/annotations/security.proto", + "package": "udpa.annotations", + "application": false, + "syntax": "proto3", + "sha256": "da7188441a490b5fb87af755ce66069f5e826dbf746a18794e145f669d9b5b8e", + "imports": [ + "udpa/annotations/status.proto", + "google/protobuf/descriptor.proto" + ], + "messages": [ + { + "name": "udpa.annotations.FieldSecurityAnnotation", + "fields": [ + { + "name": "configure_for_untrusted_downstream", + "type": "bool", + "number": 1, + "label": "" + }, + { + "name": "configure_for_untrusted_upstream", + "type": "bool", + "number": 2, + "label": "" + } + ] + } + ], + "enums": [], + "services": [] + }, + { + "path": "udpa/annotations/sensitive.proto", + "package": "udpa.annotations", + "application": false, + "syntax": "proto3", + "sha256": "e4b18581b24c79044cedf3adc7963c7c8cf8d667cb07ddac66f899c1d4c1e8f9", + "imports": [ + "google/protobuf/descriptor.proto" + ], + "messages": [], + "enums": [], + "services": [] + }, + { + "path": "udpa/annotations/status.proto", + "package": "udpa.annotations", + "application": false, + "syntax": "proto3", + "sha256": "2a3cf7f3a796c99c7ff0ce724d0ebc9ef197f48141f42b1744f1ba7aa6d60dec", + "imports": [ + "google/protobuf/descriptor.proto" + ], + "messages": [ + { + "name": "udpa.annotations.StatusAnnotation", + "fields": [ + { + "name": "work_in_progress", + "type": "bool", + "number": 1, + "label": "" + }, + { + "name": "package_version_status", + "type": "PackageVersionStatus", + "number": 2, + "label": "" + } + ] + } + ], + "enums": [ + { + "name": "udpa.annotations.PackageVersionStatus", + "values": [ + { + "name": "UNKNOWN", + "number": 0 + }, + { + "name": "FROZEN", + "number": 1 + }, + { + "name": "ACTIVE", + "number": 2 + }, + { + "name": "NEXT_MAJOR_VERSION_CANDIDATE", + "number": 3 + } + ] + } + ], + "services": [] + }, + { + "path": "udpa/annotations/versioning.proto", + "package": "udpa.annotations", + "application": false, + "syntax": "proto3", + "sha256": "f91918b55b7e44b25999af1d19a49ce9cc6757cc8a183d2aee546df2f9e180c7", + "imports": [ + "google/protobuf/descriptor.proto" + ], + "messages": [ + { + "name": "udpa.annotations.VersioningAnnotation", + "fields": [ + { + "name": "previous_message_type", + "type": "string", + "number": 1, + "label": "" + } + ] + } + ], + "enums": [], + "services": [] + }, + { + "path": "validate/validate.proto", + "package": "validate", + "application": false, + "syntax": "proto2", + "sha256": "e3eeb30b46799fb8ba0276756c2242a8301e644b9f8076bd1148d03c9aab86b0", + "imports": [ + "google/protobuf/descriptor.proto", + "google/protobuf/duration.proto", + "google/protobuf/timestamp.proto" + ], + "messages": [ + { + "name": "validate.FieldRules", + "fields": [ + { + "name": "message", + "type": "MessageRules", + "number": 17, + "label": "optional" + }, + { + "name": "float", + "type": "FloatRules", + "number": 1, + "label": "" + }, + { + "name": "double", + "type": "DoubleRules", + "number": 2, + "label": "" + }, + { + "name": "int32", + "type": "Int32Rules", + "number": 3, + "label": "" + }, + { + "name": "int64", + "type": "Int64Rules", + "number": 4, + "label": "" + }, + { + "name": "uint32", + "type": "UInt32Rules", + "number": 5, + "label": "" + }, + { + "name": "uint64", + "type": "UInt64Rules", + "number": 6, + "label": "" + }, + { + "name": "sint32", + "type": "SInt32Rules", + "number": 7, + "label": "" + }, + { + "name": "sint64", + "type": "SInt64Rules", + "number": 8, + "label": "" + }, + { + "name": "fixed32", + "type": "Fixed32Rules", + "number": 9, + "label": "" + }, + { + "name": "fixed64", + "type": "Fixed64Rules", + "number": 10, + "label": "" + }, + { + "name": "sfixed32", + "type": "SFixed32Rules", + "number": 11, + "label": "" + }, + { + "name": "sfixed64", + "type": "SFixed64Rules", + "number": 12, + "label": "" + }, + { + "name": "bool", + "type": "BoolRules", + "number": 13, + "label": "" + }, + { + "name": "string", + "type": "StringRules", + "number": 14, + "label": "" + }, + { + "name": "bytes", + "type": "BytesRules", + "number": 15, + "label": "" + }, + { + "name": "enum", + "type": "EnumRules", + "number": 16, + "label": "" + }, + { + "name": "repeated", + "type": "RepeatedRules", + "number": 18, + "label": "" + }, + { + "name": "map", + "type": "MapRules", + "number": 19, + "label": "" + }, + { + "name": "any", + "type": "AnyRules", + "number": 20, + "label": "" + }, + { + "name": "duration", + "type": "DurationRules", + "number": 21, + "label": "" + }, + { + "name": "timestamp", + "type": "TimestampRules", + "number": 22, + "label": "" + } + ] + }, + { + "name": "validate.FloatRules", + "fields": [ + { + "name": "const", + "type": "float", + "number": 1, + "label": "optional" + }, + { + "name": "lt", + "type": "float", + "number": 2, + "label": "optional" + }, + { + "name": "lte", + "type": "float", + "number": 3, + "label": "optional" + }, + { + "name": "gt", + "type": "float", + "number": 4, + "label": "optional" + }, + { + "name": "gte", + "type": "float", + "number": 5, + "label": "optional" + }, + { + "name": "in", + "type": "float", + "number": 6, + "label": "repeated" + }, + { + "name": "not_in", + "type": "float", + "number": 7, + "label": "repeated" + }, + { + "name": "ignore_empty", + "type": "bool", + "number": 8, + "label": "optional" + } + ] + }, + { + "name": "validate.DoubleRules", + "fields": [ + { + "name": "const", + "type": "double", + "number": 1, + "label": "optional" + }, + { + "name": "lt", + "type": "double", + "number": 2, + "label": "optional" + }, + { + "name": "lte", + "type": "double", + "number": 3, + "label": "optional" + }, + { + "name": "gt", + "type": "double", + "number": 4, + "label": "optional" + }, + { + "name": "gte", + "type": "double", + "number": 5, + "label": "optional" + }, + { + "name": "in", + "type": "double", + "number": 6, + "label": "repeated" + }, + { + "name": "not_in", + "type": "double", + "number": 7, + "label": "repeated" + }, + { + "name": "ignore_empty", + "type": "bool", + "number": 8, + "label": "optional" + } + ] + }, + { + "name": "validate.Int32Rules", + "fields": [ + { + "name": "const", + "type": "int32", + "number": 1, + "label": "optional" + }, + { + "name": "lt", + "type": "int32", + "number": 2, + "label": "optional" + }, + { + "name": "lte", + "type": "int32", + "number": 3, + "label": "optional" + }, + { + "name": "gt", + "type": "int32", + "number": 4, + "label": "optional" + }, + { + "name": "gte", + "type": "int32", + "number": 5, + "label": "optional" + }, + { + "name": "in", + "type": "int32", + "number": 6, + "label": "repeated" + }, + { + "name": "not_in", + "type": "int32", + "number": 7, + "label": "repeated" + }, + { + "name": "ignore_empty", + "type": "bool", + "number": 8, + "label": "optional" + } + ] + }, + { + "name": "validate.Int64Rules", + "fields": [ + { + "name": "const", + "type": "int64", + "number": 1, + "label": "optional" + }, + { + "name": "lt", + "type": "int64", + "number": 2, + "label": "optional" + }, + { + "name": "lte", + "type": "int64", + "number": 3, + "label": "optional" + }, + { + "name": "gt", + "type": "int64", + "number": 4, + "label": "optional" + }, + { + "name": "gte", + "type": "int64", + "number": 5, + "label": "optional" + }, + { + "name": "in", + "type": "int64", + "number": 6, + "label": "repeated" + }, + { + "name": "not_in", + "type": "int64", + "number": 7, + "label": "repeated" + }, + { + "name": "ignore_empty", + "type": "bool", + "number": 8, + "label": "optional" + } + ] + }, + { + "name": "validate.UInt32Rules", + "fields": [ + { + "name": "const", + "type": "uint32", + "number": 1, + "label": "optional" + }, + { + "name": "lt", + "type": "uint32", + "number": 2, + "label": "optional" + }, + { + "name": "lte", + "type": "uint32", + "number": 3, + "label": "optional" + }, + { + "name": "gt", + "type": "uint32", + "number": 4, + "label": "optional" + }, + { + "name": "gte", + "type": "uint32", + "number": 5, + "label": "optional" + }, + { + "name": "in", + "type": "uint32", + "number": 6, + "label": "repeated" + }, + { + "name": "not_in", + "type": "uint32", + "number": 7, + "label": "repeated" + }, + { + "name": "ignore_empty", + "type": "bool", + "number": 8, + "label": "optional" + } + ] + }, + { + "name": "validate.UInt64Rules", + "fields": [ + { + "name": "const", + "type": "uint64", + "number": 1, + "label": "optional" + }, + { + "name": "lt", + "type": "uint64", + "number": 2, + "label": "optional" + }, + { + "name": "lte", + "type": "uint64", + "number": 3, + "label": "optional" + }, + { + "name": "gt", + "type": "uint64", + "number": 4, + "label": "optional" + }, + { + "name": "gte", + "type": "uint64", + "number": 5, + "label": "optional" + }, + { + "name": "in", + "type": "uint64", + "number": 6, + "label": "repeated" + }, + { + "name": "not_in", + "type": "uint64", + "number": 7, + "label": "repeated" + }, + { + "name": "ignore_empty", + "type": "bool", + "number": 8, + "label": "optional" + } + ] + }, + { + "name": "validate.SInt32Rules", + "fields": [ + { + "name": "const", + "type": "sint32", + "number": 1, + "label": "optional" + }, + { + "name": "lt", + "type": "sint32", + "number": 2, + "label": "optional" + }, + { + "name": "lte", + "type": "sint32", + "number": 3, + "label": "optional" + }, + { + "name": "gt", + "type": "sint32", + "number": 4, + "label": "optional" + }, + { + "name": "gte", + "type": "sint32", + "number": 5, + "label": "optional" + }, + { + "name": "in", + "type": "sint32", + "number": 6, + "label": "repeated" + }, + { + "name": "not_in", + "type": "sint32", + "number": 7, + "label": "repeated" + }, + { + "name": "ignore_empty", + "type": "bool", + "number": 8, + "label": "optional" + } + ] + }, + { + "name": "validate.SInt64Rules", + "fields": [ + { + "name": "const", + "type": "sint64", + "number": 1, + "label": "optional" + }, + { + "name": "lt", + "type": "sint64", + "number": 2, + "label": "optional" + }, + { + "name": "lte", + "type": "sint64", + "number": 3, + "label": "optional" + }, + { + "name": "gt", + "type": "sint64", + "number": 4, + "label": "optional" + }, + { + "name": "gte", + "type": "sint64", + "number": 5, + "label": "optional" + }, + { + "name": "in", + "type": "sint64", + "number": 6, + "label": "repeated" + }, + { + "name": "not_in", + "type": "sint64", + "number": 7, + "label": "repeated" + }, + { + "name": "ignore_empty", + "type": "bool", + "number": 8, + "label": "optional" + } + ] + }, + { + "name": "validate.Fixed32Rules", + "fields": [ + { + "name": "const", + "type": "fixed32", + "number": 1, + "label": "optional" + }, + { + "name": "lt", + "type": "fixed32", + "number": 2, + "label": "optional" + }, + { + "name": "lte", + "type": "fixed32", + "number": 3, + "label": "optional" + }, + { + "name": "gt", + "type": "fixed32", + "number": 4, + "label": "optional" + }, + { + "name": "gte", + "type": "fixed32", + "number": 5, + "label": "optional" + }, + { + "name": "in", + "type": "fixed32", + "number": 6, + "label": "repeated" + }, + { + "name": "not_in", + "type": "fixed32", + "number": 7, + "label": "repeated" + }, + { + "name": "ignore_empty", + "type": "bool", + "number": 8, + "label": "optional" + } + ] + }, + { + "name": "validate.Fixed64Rules", + "fields": [ + { + "name": "const", + "type": "fixed64", + "number": 1, + "label": "optional" + }, + { + "name": "lt", + "type": "fixed64", + "number": 2, + "label": "optional" + }, + { + "name": "lte", + "type": "fixed64", + "number": 3, + "label": "optional" + }, + { + "name": "gt", + "type": "fixed64", + "number": 4, + "label": "optional" + }, + { + "name": "gte", + "type": "fixed64", + "number": 5, + "label": "optional" + }, + { + "name": "in", + "type": "fixed64", + "number": 6, + "label": "repeated" + }, + { + "name": "not_in", + "type": "fixed64", + "number": 7, + "label": "repeated" + }, + { + "name": "ignore_empty", + "type": "bool", + "number": 8, + "label": "optional" + } + ] + }, + { + "name": "validate.SFixed32Rules", + "fields": [ + { + "name": "const", + "type": "sfixed32", + "number": 1, + "label": "optional" + }, + { + "name": "lt", + "type": "sfixed32", + "number": 2, + "label": "optional" + }, + { + "name": "lte", + "type": "sfixed32", + "number": 3, + "label": "optional" + }, + { + "name": "gt", + "type": "sfixed32", + "number": 4, + "label": "optional" + }, + { + "name": "gte", + "type": "sfixed32", + "number": 5, + "label": "optional" + }, + { + "name": "in", + "type": "sfixed32", + "number": 6, + "label": "repeated" + }, + { + "name": "not_in", + "type": "sfixed32", + "number": 7, + "label": "repeated" + }, + { + "name": "ignore_empty", + "type": "bool", + "number": 8, + "label": "optional" + } + ] + }, + { + "name": "validate.SFixed64Rules", + "fields": [ + { + "name": "const", + "type": "sfixed64", + "number": 1, + "label": "optional" + }, + { + "name": "lt", + "type": "sfixed64", + "number": 2, + "label": "optional" + }, + { + "name": "lte", + "type": "sfixed64", + "number": 3, + "label": "optional" + }, + { + "name": "gt", + "type": "sfixed64", + "number": 4, + "label": "optional" + }, + { + "name": "gte", + "type": "sfixed64", + "number": 5, + "label": "optional" + }, + { + "name": "in", + "type": "sfixed64", + "number": 6, + "label": "repeated" + }, + { + "name": "not_in", + "type": "sfixed64", + "number": 7, + "label": "repeated" + }, + { + "name": "ignore_empty", + "type": "bool", + "number": 8, + "label": "optional" + } + ] + }, + { + "name": "validate.BoolRules", + "fields": [ + { + "name": "const", + "type": "bool", + "number": 1, + "label": "optional" + } + ] + }, + { + "name": "validate.StringRules", + "fields": [ + { + "name": "const", + "type": "string", + "number": 1, + "label": "optional" + }, + { + "name": "len", + "type": "uint64", + "number": 19, + "label": "optional" + }, + { + "name": "min_len", + "type": "uint64", + "number": 2, + "label": "optional" + }, + { + "name": "max_len", + "type": "uint64", + "number": 3, + "label": "optional" + }, + { + "name": "len_bytes", + "type": "uint64", + "number": 20, + "label": "optional" + }, + { + "name": "min_bytes", + "type": "uint64", + "number": 4, + "label": "optional" + }, + { + "name": "max_bytes", + "type": "uint64", + "number": 5, + "label": "optional" + }, + { + "name": "pattern", + "type": "string", + "number": 6, + "label": "optional" + }, + { + "name": "prefix", + "type": "string", + "number": 7, + "label": "optional" + }, + { + "name": "suffix", + "type": "string", + "number": 8, + "label": "optional" + }, + { + "name": "contains", + "type": "string", + "number": 9, + "label": "optional" + }, + { + "name": "not_contains", + "type": "string", + "number": 23, + "label": "optional" + }, + { + "name": "in", + "type": "string", + "number": 10, + "label": "repeated" + }, + { + "name": "not_in", + "type": "string", + "number": 11, + "label": "repeated" + }, + { + "name": "strict", + "type": "bool", + "number": 25, + "label": "optional" + }, + { + "name": "ignore_empty", + "type": "bool", + "number": 26, + "label": "optional" + }, + { + "name": "email", + "type": "bool", + "number": 12, + "label": "" + }, + { + "name": "hostname", + "type": "bool", + "number": 13, + "label": "" + }, + { + "name": "ip", + "type": "bool", + "number": 14, + "label": "" + }, + { + "name": "ipv4", + "type": "bool", + "number": 15, + "label": "" + }, + { + "name": "ipv6", + "type": "bool", + "number": 16, + "label": "" + }, + { + "name": "uri", + "type": "bool", + "number": 17, + "label": "" + }, + { + "name": "uri_ref", + "type": "bool", + "number": 18, + "label": "" + }, + { + "name": "address", + "type": "bool", + "number": 21, + "label": "" + }, + { + "name": "uuid", + "type": "bool", + "number": 22, + "label": "" + }, + { + "name": "well_known_regex", + "type": "KnownRegex", + "number": 24, + "label": "" + } + ] + }, + { + "name": "validate.BytesRules", + "fields": [ + { + "name": "const", + "type": "bytes", + "number": 1, + "label": "optional" + }, + { + "name": "len", + "type": "uint64", + "number": 13, + "label": "optional" + }, + { + "name": "min_len", + "type": "uint64", + "number": 2, + "label": "optional" + }, + { + "name": "max_len", + "type": "uint64", + "number": 3, + "label": "optional" + }, + { + "name": "pattern", + "type": "string", + "number": 4, + "label": "optional" + }, + { + "name": "prefix", + "type": "bytes", + "number": 5, + "label": "optional" + }, + { + "name": "suffix", + "type": "bytes", + "number": 6, + "label": "optional" + }, + { + "name": "contains", + "type": "bytes", + "number": 7, + "label": "optional" + }, + { + "name": "in", + "type": "bytes", + "number": 8, + "label": "repeated" + }, + { + "name": "not_in", + "type": "bytes", + "number": 9, + "label": "repeated" + }, + { + "name": "ignore_empty", + "type": "bool", + "number": 14, + "label": "optional" + }, + { + "name": "ip", + "type": "bool", + "number": 10, + "label": "" + }, + { + "name": "ipv4", + "type": "bool", + "number": 11, + "label": "" + }, + { + "name": "ipv6", + "type": "bool", + "number": 12, + "label": "" + } + ] + }, + { + "name": "validate.EnumRules", + "fields": [ + { + "name": "const", + "type": "int32", + "number": 1, + "label": "optional" + }, + { + "name": "defined_only", + "type": "bool", + "number": 2, + "label": "optional" + }, + { + "name": "in", + "type": "int32", + "number": 3, + "label": "repeated" + }, + { + "name": "not_in", + "type": "int32", + "number": 4, + "label": "repeated" + } + ] + }, + { + "name": "validate.MessageRules", + "fields": [ + { + "name": "skip", + "type": "bool", + "number": 1, + "label": "optional" + }, + { + "name": "required", + "type": "bool", + "number": 2, + "label": "optional" + } + ] + }, + { + "name": "validate.RepeatedRules", + "fields": [ + { + "name": "min_items", + "type": "uint64", + "number": 1, + "label": "optional" + }, + { + "name": "max_items", + "type": "uint64", + "number": 2, + "label": "optional" + }, + { + "name": "unique", + "type": "bool", + "number": 3, + "label": "optional" + }, + { + "name": "items", + "type": "FieldRules", + "number": 4, + "label": "optional" + }, + { + "name": "ignore_empty", + "type": "bool", + "number": 5, + "label": "optional" + } + ] + }, + { + "name": "validate.MapRules", + "fields": [ + { + "name": "min_pairs", + "type": "uint64", + "number": 1, + "label": "optional" + }, + { + "name": "max_pairs", + "type": "uint64", + "number": 2, + "label": "optional" + }, + { + "name": "no_sparse", + "type": "bool", + "number": 3, + "label": "optional" + }, + { + "name": "keys", + "type": "FieldRules", + "number": 4, + "label": "optional" + }, + { + "name": "values", + "type": "FieldRules", + "number": 5, + "label": "optional" + }, + { + "name": "ignore_empty", + "type": "bool", + "number": 6, + "label": "optional" + } + ] + }, + { + "name": "validate.AnyRules", + "fields": [ + { + "name": "required", + "type": "bool", + "number": 1, + "label": "optional" + }, + { + "name": "in", + "type": "string", + "number": 2, + "label": "repeated" + }, + { + "name": "not_in", + "type": "string", + "number": 3, + "label": "repeated" + } + ] + }, + { + "name": "validate.DurationRules", + "fields": [ + { + "name": "required", + "type": "bool", + "number": 1, + "label": "optional" + }, + { + "name": "const", + "type": "google.protobuf.Duration", + "number": 2, + "label": "optional" + }, + { + "name": "lt", + "type": "google.protobuf.Duration", + "number": 3, + "label": "optional" + }, + { + "name": "lte", + "type": "google.protobuf.Duration", + "number": 4, + "label": "optional" + }, + { + "name": "gt", + "type": "google.protobuf.Duration", + "number": 5, + "label": "optional" + }, + { + "name": "gte", + "type": "google.protobuf.Duration", + "number": 6, + "label": "optional" + }, + { + "name": "in", + "type": "google.protobuf.Duration", + "number": 7, + "label": "repeated" + }, + { + "name": "not_in", + "type": "google.protobuf.Duration", + "number": 8, + "label": "repeated" + } + ] + }, + { + "name": "validate.TimestampRules", + "fields": [ + { + "name": "required", + "type": "bool", + "number": 1, + "label": "optional" + }, + { + "name": "const", + "type": "google.protobuf.Timestamp", + "number": 2, + "label": "optional" + }, + { + "name": "lt", + "type": "google.protobuf.Timestamp", + "number": 3, + "label": "optional" + }, + { + "name": "lte", + "type": "google.protobuf.Timestamp", + "number": 4, + "label": "optional" + }, + { + "name": "gt", + "type": "google.protobuf.Timestamp", + "number": 5, + "label": "optional" + }, + { + "name": "gte", + "type": "google.protobuf.Timestamp", + "number": 6, + "label": "optional" + }, + { + "name": "lt_now", + "type": "bool", + "number": 7, + "label": "optional" + }, + { + "name": "gt_now", + "type": "bool", + "number": 8, + "label": "optional" + }, + { + "name": "within", + "type": "google.protobuf.Duration", + "number": 9, + "label": "optional" + } + ] + } + ], + "enums": [ + { + "name": "validate.KnownRegex", + "values": [ + { + "name": "UNKNOWN", + "number": 0 + }, + { + "name": "HTTP_HEADER_NAME", + "number": 1 + }, + { + "name": "HTTP_HEADER_VALUE", + "number": 2 + } + ] + } + ], + "services": [] + }, + { + "path": "xds/annotations/v3/status.proto", + "package": "xds.annotations.v3", + "application": false, + "syntax": "proto3", + "sha256": "135d1c4de34342dc0e1b68f05942c502d47913edbab15312c799bf1713615de7", + "imports": [ + "google/protobuf/descriptor.proto" + ], + "messages": [ + { + "name": "xds.annotations.v3.FileStatusAnnotation", + "fields": [ + { + "name": "work_in_progress", + "type": "bool", + "number": 1, + "label": "" + } + ] + }, + { + "name": "xds.annotations.v3.MessageStatusAnnotation", + "fields": [ + { + "name": "work_in_progress", + "type": "bool", + "number": 1, + "label": "" + } + ] + }, + { + "name": "xds.annotations.v3.FieldStatusAnnotation", + "fields": [ + { + "name": "work_in_progress", + "type": "bool", + "number": 1, + "label": "" + } + ] + }, + { + "name": "xds.annotations.v3.StatusAnnotation", + "fields": [ + { + "name": "work_in_progress", + "type": "bool", + "number": 1, + "label": "" + }, + { + "name": "package_version_status", + "type": "PackageVersionStatus", + "number": 2, + "label": "" + } + ] + } + ], + "enums": [ + { + "name": "xds.annotations.v3.PackageVersionStatus", + "values": [ + { + "name": "UNKNOWN", + "number": 0 + }, + { + "name": "FROZEN", + "number": 1 + }, + { + "name": "ACTIVE", + "number": 2 + }, + { + "name": "NEXT_MAJOR_VERSION_CANDIDATE", + "number": 3 + } + ] + } + ], + "services": [] + }, + { + "path": "xds/core/v3/authority.proto", + "package": "xds.core.v3", + "application": false, + "syntax": "proto3", + "sha256": "844f34c2224906787344741bd1d6f4badeb331475be336f507061851d999dadf", + "imports": [ + "xds/annotations/v3/status.proto", + "validate/validate.proto" + ], + "messages": [ + { + "name": "xds.core.v3.Authority", + "fields": [ + { + "name": "name", + "type": "string", + "number": 1, + "label": "" + } + ] + } + ], + "enums": [], + "services": [] + }, + { + "path": "xds/core/v3/cidr.proto", + "package": "xds.core.v3", + "application": false, + "syntax": "proto3", + "sha256": "aa8b1b27cdc8c3e9e99b1d8bcd137567950f0b93b98f955d6b9ef74eec2150b7", + "imports": [ + "xds/annotations/v3/status.proto", + "google/protobuf/wrappers.proto", + "validate/validate.proto" + ], + "messages": [ + { + "name": "xds.core.v3.CidrRange", + "fields": [ + { + "name": "address_prefix", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "prefix_len", + "type": "google.protobuf.UInt32Value", + "number": 2, + "label": "" + } + ] + } + ], + "enums": [], + "services": [] + }, + { + "path": "xds/core/v3/collection_entry.proto", + "package": "xds.core.v3", + "application": false, + "syntax": "proto3", + "sha256": "c62212529ae35de27a3347614aab73f7ba8e3678b46a402b0b05bc9bd1ea2aa3", + "imports": [ + "google/protobuf/any.proto", + "xds/annotations/v3/status.proto", + "xds/core/v3/resource_locator.proto", + "validate/validate.proto" + ], + "messages": [ + { + "name": "xds.core.v3.CollectionEntry", + "fields": [ + { + "name": "locator", + "type": "ResourceLocator", + "number": 1, + "label": "" + }, + { + "name": "inline_entry", + "type": "InlineEntry", + "number": 2, + "label": "" + } + ] + }, + { + "name": "xds.core.v3.CollectionEntry.InlineEntry", + "fields": [ + { + "name": "name", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "version", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "resource", + "type": "google.protobuf.Any", + "number": 3, + "label": "" + } + ] + } + ], + "enums": [], + "services": [] + }, + { + "path": "xds/core/v3/context_params.proto", + "package": "xds.core.v3", + "application": false, + "syntax": "proto3", + "sha256": "3eca90f4a2f9daa67eaf60394681ef34ce7daca14bdce0cd0211c4c391bb3e86", + "imports": [ + "xds/annotations/v3/status.proto" + ], + "messages": [ + { + "name": "xds.core.v3.ContextParams", + "fields": [ + { + "name": "params", + "type": "map", + "number": 1, + "label": "" + } + ] + } + ], + "enums": [], + "services": [] + }, + { + "path": "xds/core/v3/extension.proto", + "package": "xds.core.v3", + "application": false, + "syntax": "proto3", + "sha256": "ac9d3c68c89eaec767f7df546125684800de8c36c30748fdb8c6c7a2c2f8f3c5", + "imports": [ + "validate/validate.proto", + "google/protobuf/any.proto" + ], + "messages": [ + { + "name": "xds.core.v3.TypedExtensionConfig", + "fields": [ + { + "name": "name", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "typed_config", + "type": "google.protobuf.Any", + "number": 2, + "label": "" + } + ] + } + ], + "enums": [], + "services": [] + }, + { + "path": "xds/core/v3/resource_locator.proto", + "package": "xds.core.v3", + "application": false, + "syntax": "proto3", + "sha256": "12f49db192cffb969af21661e93bff86aece0c1f1a10742861f077de760a1ae7", + "imports": [ + "xds/annotations/v3/status.proto", + "xds/core/v3/context_params.proto", + "validate/validate.proto" + ], + "messages": [ + { + "name": "xds.core.v3.ResourceLocator", + "fields": [ + { + "name": "scheme", + "type": "Scheme", + "number": 1, + "label": "" + }, + { + "name": "id", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "authority", + "type": "string", + "number": 3, + "label": "" + }, + { + "name": "resource_type", + "type": "string", + "number": 4, + "label": "" + }, + { + "name": "directives", + "type": "Directive", + "number": 6, + "label": "repeated" + }, + { + "name": "exact_context", + "type": "ContextParams", + "number": 5, + "label": "" + } + ] + }, + { + "name": "xds.core.v3.ResourceLocator.Directive", + "fields": [ + { + "name": "alt", + "type": "ResourceLocator", + "number": 1, + "label": "" + }, + { + "name": "entry", + "type": "string", + "number": 2, + "label": "" + } + ] + } + ], + "enums": [ + { + "name": "xds.core.v3.ResourceLocator.Scheme", + "values": [ + { + "name": "XDSTP", + "number": 0 + }, + { + "name": "HTTP", + "number": 1 + }, + { + "name": "FILE", + "number": 2 + } + ] + } + ], + "services": [] + }, + { + "path": "xds/type/matcher/v3/matcher.proto", + "package": "xds.type.matcher.v3", + "application": false, + "syntax": "proto3", + "sha256": "563d4e9af38a2069f064b4e588c9bd1fb35e9e5b279c0c3f11002e4e32222be7", + "imports": [ + "xds/annotations/v3/status.proto", + "xds/core/v3/extension.proto", + "xds/type/matcher/v3/string.proto", + "validate/validate.proto" + ], + "messages": [ + { + "name": "xds.type.matcher.v3.Matcher", + "fields": [ + { + "name": "on_no_match", + "type": "OnMatch", + "number": 3, + "label": "" + }, + { + "name": "matcher_list", + "type": "MatcherList", + "number": 1, + "label": "" + }, + { + "name": "matcher_tree", + "type": "MatcherTree", + "number": 2, + "label": "" + } + ] + }, + { + "name": "xds.type.matcher.v3.Matcher.OnMatch", + "fields": [ + { + "name": "matcher", + "type": "Matcher", + "number": 1, + "label": "" + }, + { + "name": "action", + "type": "core.v3.TypedExtensionConfig", + "number": 2, + "label": "" + } + ] + }, + { + "name": "xds.type.matcher.v3.Matcher.MatcherList", + "fields": [ + { + "name": "matchers", + "type": "FieldMatcher", + "number": 1, + "label": "repeated" + } + ] + }, + { + "name": "xds.type.matcher.v3.Matcher.MatcherList.FieldMatcher", + "fields": [ + { + "name": "predicate", + "type": "Predicate", + "number": 1, + "label": "" + }, + { + "name": "on_match", + "type": "OnMatch", + "number": 2, + "label": "" + } + ] + }, + { + "name": "xds.type.matcher.v3.Matcher.MatcherList.Predicate", + "fields": [ + { + "name": "single_predicate", + "type": "SinglePredicate", + "number": 1, + "label": "" + }, + { + "name": "or_matcher", + "type": "PredicateList", + "number": 2, + "label": "" + }, + { + "name": "and_matcher", + "type": "PredicateList", + "number": 3, + "label": "" + }, + { + "name": "not_matcher", + "type": "Predicate", + "number": 4, + "label": "" + } + ] + }, + { + "name": "xds.type.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate", + "fields": [ + { + "name": "input", + "type": "core.v3.TypedExtensionConfig", + "number": 1, + "label": "" + }, + { + "name": "value_match", + "type": "StringMatcher", + "number": 2, + "label": "" + }, + { + "name": "custom_match", + "type": "core.v3.TypedExtensionConfig", + "number": 3, + "label": "" + } + ] + }, + { + "name": "xds.type.matcher.v3.Matcher.MatcherList.Predicate.PredicateList", + "fields": [ + { + "name": "predicate", + "type": "Predicate", + "number": 1, + "label": "repeated" + } + ] + }, + { + "name": "xds.type.matcher.v3.Matcher.MatcherTree", + "fields": [ + { + "name": "input", + "type": "core.v3.TypedExtensionConfig", + "number": 1, + "label": "" + }, + { + "name": "exact_match_map", + "type": "MatchMap", + "number": 2, + "label": "" + }, + { + "name": "prefix_match_map", + "type": "MatchMap", + "number": 3, + "label": "" + }, + { + "name": "custom_match", + "type": "core.v3.TypedExtensionConfig", + "number": 4, + "label": "" + } + ] + }, + { + "name": "xds.type.matcher.v3.Matcher.MatcherTree.MatchMap", + "fields": [ + { + "name": "map", + "type": "map", + "number": 1, + "label": "" + } + ] + } + ], + "enums": [], + "services": [] + }, + { + "path": "xds/type/matcher/v3/regex.proto", + "package": "xds.type.matcher.v3", + "application": false, + "syntax": "proto3", + "sha256": "169a1b1d3f12823eefa0914d6449a00cb829653096510941e3db85ebc8d977d8", + "imports": [ + "validate/validate.proto" + ], + "messages": [ + { + "name": "xds.type.matcher.v3.RegexMatcher", + "fields": [ + { + "name": "regex", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "google_re2", + "type": "GoogleRE2", + "number": 1, + "label": "" + } + ] + }, + { + "name": "xds.type.matcher.v3.RegexMatcher.GoogleRE2", + "fields": [] + } + ], + "enums": [], + "services": [] + }, + { + "path": "xds/type/matcher/v3/string.proto", + "package": "xds.type.matcher.v3", + "application": false, + "syntax": "proto3", + "sha256": "dabf03e2b975c2f697d33c2fb90680e9e80875a19a81fec84900e7b4ee6f0ecc", + "imports": [ + "xds/type/matcher/v3/regex.proto", + "validate/validate.proto" + ], + "messages": [ + { + "name": "xds.type.matcher.v3.StringMatcher", + "fields": [ + { + "name": "ignore_case", + "type": "bool", + "number": 6, + "label": "" + }, + { + "name": "exact", + "type": "string", + "number": 1, + "label": "" + }, + { + "name": "prefix", + "type": "string", + "number": 2, + "label": "" + }, + { + "name": "suffix", + "type": "string", + "number": 3, + "label": "" + }, + { + "name": "safe_regex", + "type": "RegexMatcher", + "number": 5, + "label": "" + }, + { + "name": "contains", + "type": "string", + "number": 7, + "label": "" + } + ] + }, + { + "name": "xds.type.matcher.v3.ListStringMatcher", + "fields": [ + { + "name": "patterns", + "type": "StringMatcher", + "number": 1, + "label": "repeated" + } + ] + } + ], + "enums": [], + "services": [] + } + ] +} diff --git a/third_party/schema-api/examples/custom_tls.rs b/third_party/schema-api/examples/custom_tls.rs new file mode 100644 index 0000000..cfdc3e4 --- /dev/null +++ b/third_party/schema-api/examples/custom_tls.rs @@ -0,0 +1,26 @@ +use schema_api::{ + tonic::transport::{Certificate, ClientTlsConfig, Identity}, + ApiClient, +}; +use std::{env, error::Error, fs}; + +#[tokio::main] +async fn main() -> Result<(), Box> { + let mut tls = ClientTlsConfig::new() + .ca_certificate(Certificate::from_pem(fs::read(env::var("API_CA_PEM")?)?)); + if let Ok(domain) = env::var("API_TLS_DOMAIN") { + tls = tls.domain_name(domain); + } + if let Ok(cert_path) = env::var("API_CLIENT_CERT_PEM") { + tls = tls.identity(Identity::from_pem( + fs::read(cert_path)?, + fs::read(env::var("API_CLIENT_KEY_PEM")?)?, + )); + } + let _client = ApiClient::builder(env::var("API_ENDPOINT")?)? + .tls_config(tls)? + .connect() + .await?; + println!("Connected with custom TLS configuration"); + Ok(()) +} diff --git a/third_party/schema-api/examples/inspect_schema.rs b/third_party/schema-api/examples/inspect_schema.rs new file mode 100644 index 0000000..a094046 --- /dev/null +++ b/third_party/schema-api/examples/inspect_schema.rs @@ -0,0 +1,24 @@ +fn main() { + let pool = schema_api::reflection::descriptor_pool(); + for service in pool.services() { + println!("{}", service.full_name()); + for method in service.methods() { + println!( + " {}({}{}) -> {}{}", + method.name(), + if method.is_client_streaming() { + "stream " + } else { + "" + }, + method.input().full_name(), + if method.is_server_streaming() { + "stream " + } else { + "" + }, + method.output().full_name(), + ); + } + } +} diff --git a/third_party/schema-api/examples/login.rs b/third_party/schema-api/examples/login.rs new file mode 100644 index 0000000..4f7e0eb --- /dev/null +++ b/third_party/schema-api/examples/login.rs @@ -0,0 +1,34 @@ +use schema_api::{api, ApiClient, SessionRequest, SessionToken}; +use std::{env, error::Error, time::Duration}; + +#[tokio::main] +async fn main() -> Result<(), Box> { + let client = ApiClient::builder(env::var("API_ENDPOINT")?)? + .connect_timeout(Duration::from_secs(10)) + .request_timeout(Duration::from_secs(30)) + .connect() + .await?; + // Credential encoding is server-defined; this example passes the supplied values verbatim. + let reply = client + .login() + .login(api::LoginData { + email: env::var("API_EMAIL")?, + password: env::var("API_PASSWORD")?, + otp: env::var("API_OTP").unwrap_or_default(), + device_id: env::var("API_DEVICE_ID").unwrap_or_default(), + device_name: "Rust API client".into(), + ..Default::default() + }) + .await? + .into_inner(); + let session = SessionToken::try_from(&reply)?; + println!("Login succeeded"); + let status = client + .login() + .session(api::Session::default().with_session(&session)) + .await? + .into_inner(); + schema_api::session::validate_session_status(&status)?; + println!("Session is valid"); + Ok(()) +} diff --git a/third_party/schema-api/examples/push.rs b/third_party/schema-api/examples/push.rs new file mode 100644 index 0000000..26b9395 --- /dev/null +++ b/third_party/schema-api/examples/push.rs @@ -0,0 +1,28 @@ +use schema_api::{ + tonic::metadata::{MetadataKey, MetadataMap, MetadataValue}, + ApiClient, +}; +use std::{env, error::Error}; + +#[tokio::main] +async fn main() -> Result<(), Box> { + // The schemas do not specify push authentication. Supply your server's metadata contract. + let mut headers = MetadataMap::new(); + if let Ok(name) = env::var("API_PUSH_HEADER") { + let key: MetadataKey<_> = name.parse()?; + let mut value: MetadataValue<_> = env::var("API_PUSH_VALUE")?.parse()?; + value.set_sensitive(true); + headers.insert(key, value); + } + let client = ApiClient::builder(env::var("API_ENDPOINT")?)? + .metadata(headers) + .connect() + .await?; + let mut stream = client.push().long_pull(()).await?.into_inner(); + while let Some(message) = stream.message().await? { + println!("Received {} opaque payload bytes", message.payload.len()); + // If your server uses this envelope, explicitly decode it with: + // let notification = schema_api::wire::decode_push_notification(&message)?; + } + Ok(()) +} diff --git a/third_party/schema-api/proto/Account_Serializing.proto b/third_party/schema-api/proto/Account_Serializing.proto new file mode 100644 index 0000000..523af99 --- /dev/null +++ b/third_party/schema-api/proto/Account_Serializing.proto @@ -0,0 +1,84 @@ +syntax = "proto2"; + +package com.teamspeak.account.proto; + +import "myteamspeak_common.proto"; +import "myteamspeak_integration_common.proto"; +import "myteamspeak_avatar_common.proto"; +import "myteamspeak_tschat.proto"; + +message Account_Session { + optional string id = 1; +} + +message Account_Data { + optional string email = 1; + optional string password = 2; + optional string uuid = 3; + optional string user_name = 4; + optional bytes encryption_password = 5; + optional string global_items_uuid = 10; + optional string class_bookmark_version_uuid = 11; + optional string class_identity_version_uuid = 12; + optional string class_add_on_version_uuid = 13; + optional string class_config_version_uuid = 14; + optional string class_hotkey_profile_version_uuid = 15; + optional string class_whisper_list_version_uuid = 16; + optional string class_item_folder_version_uuid = 17; + optional string class_item_room_category_version_uuid = 18; + optional string class_group_chats_version_uuid = 19; + optional string class_contact_version_uuid = 20; + optional Account_Session session = 50; + repeated myteamspeak.proto.Limits limits = 51; + optional bytes key = 52; + optional bytes backup_ed_key = 53; + optional myteamspeak.proto.MyTeamSpeakIdData myteamspeakid_data = 54; + + repeated IntegrationCache integration_cache = 55; + message IntegrationCache { + repeated string user_integration_id = 1; + optional myteamspeak.proto.integration.IntegrationResponseList integration_cache = 2; + } + + optional myteamspeak.proto.MyTSUserCertificate myteamspeakid_user_certificate = 56; + optional myteamspeak.proto.AvatarData avatar_data = 57; + optional string push_token = 58; + optional Permissions permissions = 59; + optional myteamspeak.proto.tschat.MatrixIdentifierToken identifier_token = 61; + + optional AuthTokenCache auth_token_cache = 62; + message AuthTokenCache { + optional string auth_token = 1; + optional string renewal_token = 2; + } + + optional string firebase_device_token = 63; + optional string otp_renewal_token = 64; + optional string device_id = 65; +} + +message TS_Sync_Account { + optional string passphrase = 1; +} + +message Permissions { + repeated string permission = 1; +} + +message MyTSID_Verification_Token { + optional bytes verification_sign = 1; + optional uint64 sign_timestamp = 2; + optional bytes user_pub_key = 3; + optional bytes pub_sign = 4; + optional bytes pub_sign_cert = 5; + optional uint64 ac_time = 6; + optional bytes mytsid = 7; +} + +message Auth_Token_Package { + optional uint32 version = 1; + optional string auth_token = 2; + optional string encrypted_encryption_password = 3; + optional string encryption_tag = 4; + optional string iv = 5; +} diff --git a/third_party/schema-api/proto/Sync_Serializing.proto b/third_party/schema-api/proto/Sync_Serializing.proto new file mode 100644 index 0000000..e49071d --- /dev/null +++ b/third_party/schema-api/proto/Sync_Serializing.proto @@ -0,0 +1,220 @@ +syntax = "proto2"; + +package com.teamspeak.sync.proto; + +import "synchronization_common.proto"; + +message Bookmark_Data { + optional string name = 1; + optional string address = 2; + optional uint32 port = 3; + optional string nickname = 4; + optional string phonetic_nickname = 5; + optional string identity = 6; + optional string server_password = 7; + optional string default_channel = 8; + optional string default_channel_password = 9; + optional uint64 default_channel_id = 10; + optional string capture_profile = 11; + optional string playback_profile = 12; + optional string hotkey_profile = 13; + optional bool autoconnect = 14; + optional string server_uid = 15; + optional string server_icon = 16; + optional string sound_pack = 17; + optional bool show_server_query_clients = 18; + + optional SubscriptionMode subscription_mode = 19; + enum SubscriptionMode { + Undefined = 0; + All = 1; + Current = 2; + } + + repeated uint64 subscribed_channel_ids = 20; + + repeated ChannelPassword channel_passwords = 21; + message ChannelPassword { + optional uint64 channel_id = 1; + optional string password = 2; + } + + optional bool send_mytsid_on_server = 22 [default = true]; + optional bool announce_to_chat = 23 [default = false]; + optional string resolved_server_nickname = 24; + optional bool connect_muted = 25 [default = false]; +} + +message Identity_Data { + optional string unique_identity = 1; + optional string id_name = 2; + optional string nickname = 3; + optional string phonetic_nickname = 4; + optional bool is_default = 5 [default = false]; +} + +message Whisper_list_data { + optional string uuid = 1; + optional string name = 2; + + optional WhisperListType type = 3; + enum WhisperListType { + WLT_INVALID = 0; + WLT_LIST = 1; + WLT_PREDEFINED = 2; + } + + optional int32 groupType = 4; + optional int32 groupTargetMode = 5; + optional uint64 targetGroupID = 6; + optional string targetGroupName = 7; + optional string targetServerUid = 8; + optional string targetServerName = 9; + + repeated WhisperEntry whisperListEntries = 10; + message WhisperEntry { + optional WhisperEntryType type = 1; + enum WhisperEntryType { + WET_INVALID = 0; + WET_CLIENT = 1; + WET_CHANNEL = 2; + } + + optional string name = 2; + optional string uid = 3; + } +} + +message HotkeyProfile_data { + optional string uuid = 1; + optional string name = 2; + + repeated Hotkey hotkeys = 3; + message Hotkey { + optional OS os = 3; + enum OS { + Windows = 0; + OSX = 1; + Linux = 2; + } + + optional int32 event_type = 4; + optional string event_uuid = 5; + optional string event_mode = 6; + + repeated KeyDef keys = 7; + message KeyDef { + optional string identifier = 1; + optional string key = 2; + } + + optional uint32 action_type = 8; + optional string action_uuid = 9; + optional bool action_discard = 10 [default = false]; + optional string action_mode = 11; + optional string action_flag = 12; + optional string action_description = 13; + optional string action_plugin = 14; + optional string action_away_message = 15; + optional string action_soundpack = 16; + optional string action_plugincommand = 17; + optional string action_plugindescription = 18; + optional string action_deviceuid = 19; + optional string action_devicename = 20; + optional string action_target = 21; + optional bool action_auto = 22 [default = false]; + optional string action_profiles = 23; + optional bool action_active_tab = 24 [default = false]; + } + + optional bool is_default = 4 [default = false]; +} + +message Add_on_data { + optional string uuid = 1; + optional bool enabled = 2; +} + +message Chat_Credentials { + optional string domain = 1; + optional string username = 2; + optional string password = 3; +} + +message Config_data { + optional int32 default_subscribe_mode = 1; + repeated string user_badges = 2; + optional bool show_user_badges = 3; + optional bytes global_presence_token = 4; + optional Chat_Credentials tschat_credentials = 5; + repeated TSCHAT_DE_Data tschat_de_data = 7; +} + +message Item_Folder { + optional string folder_name = 1; + optional myteamspeak.proto.synchronization.Item_Class folder_type = 2; +} + +message Group_Chats { + optional string category_name = 1; +} + +message Contact { + optional string chat_room_id = 1; + optional string custom_name = 2; + optional string custom_category = 3; + + optional NotificationPreference notification_preference = 4; + enum NotificationPreference { + NOTIFY_ALWAYS = 0; + NOTIFY_EVERYONE_AND_SELF = 1; + NOTIFY_SELF = 2; + NOTIFY_NONE = 3; + } + + optional bool is_favourite = 5; + optional bool is_direct_chat = 6; + optional string mytsid = 7; + optional string chat_member_id = 8; +} + +message Item_Data { + optional string item_uuid = 2; + optional string sync_version_uuid = 3; + + optional Manipulation_Flag manipulated = 4; + enum Manipulation_Flag { + ITEM_ADDED = 0; + ITEM_CHANGED = 1; + ITEM_DELETED = 2; + ITEM_NOT_MANIPULATED = 3; + } + + optional string last_known_version = 5; + optional uint32 item_type = 6; + optional string parent = 7; + optional string sort_order = 8; + optional uint64 timestamp = 9; + + oneof item_content { + Bookmark_Data bookmark = 16; + Identity_Data identity = 17; + Whisper_list_data whisperlist = 18; + HotkeyProfile_data hotkeyprofile = 19; + Add_on_data add_on = 20; + Config_data config = 21; + Item_Folder item_folder = 22; + Group_Chats group_chats = 24; + Contact contact = 25; + } +} + +message TSCHAT_DE_Data { + optional string url = 1; + optional string identity = 2; + optional string username = 3; + optional string server_id = 4; + optional string address = 5; + optional string port = 6; + optional string name = 7; +} diff --git a/third_party/schema-api/proto/blacklist_info.proto b/third_party/schema-api/proto/blacklist_info.proto new file mode 100644 index 0000000..233a80a --- /dev/null +++ b/third_party/schema-api/proto/blacklist_info.proto @@ -0,0 +1,29 @@ +syntax = "proto3"; + +package com.teamspeak.blacklist; + +message BlacklistInfoRequest { + bytes ip_address = 1; + string domain_name = 2; + string virtual_server_id = 3; + string public_license_id = 4; + uint32 port = 5; + uint64 timestamp = 6; + bool valid_token_present = 7; + bool slots_ok = 8; + string updated_virtual_server_id = 9; +} + +message BlacklistInfoResponse { + Result status_ip = 1; + enum Result { + INVALID = 0; + BLACKLISTED = 1; + GREYLISTED = 2; + NOT_LISTED = 3; + } + + Result status_domain = 2; + Result status_virtual_server_id = 3; + Result Status_public_license_id = 4; +} diff --git a/third_party/schema-api/proto/client_lib_cache.proto b/third_party/schema-api/proto/client_lib_cache.proto new file mode 100644 index 0000000..3e13065 --- /dev/null +++ b/third_party/schema-api/proto/client_lib_cache.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +package com.teamspeak.proto.client_cache; + +import "revoke_cache.proto"; + +message ClientLibCache { + revocation.RevokeListCachedData revoke_list_cache_certificates = 1; + revocation.RevokeListCachedData revoke_list_cache_mytsid_data = 2; +} diff --git a/third_party/schema-api/proto/envoy/annotations/deprecation.proto b/third_party/schema-api/proto/envoy/annotations/deprecation.proto new file mode 100644 index 0000000..e684560 --- /dev/null +++ b/third_party/schema-api/proto/envoy/annotations/deprecation.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +package envoy.annotations; + +import "google/protobuf/descriptor.proto"; + +option go_package = "github.com/envoyproxy/go-control-plane/envoy/annotations"; + +extend google.protobuf.FieldOptions { + bool disallowed_by_default = 189503207; + string deprecated_at_minor_version = 157299826; +} + +extend google.protobuf.EnumValueOptions { + bool disallowed_by_default_enum = 70100853; + string deprecated_at_minor_version_enum = 181198657; +} diff --git a/third_party/schema-api/proto/envoy/config/accesslog/v3/accesslog.proto b/third_party/schema-api/proto/envoy/config/accesslog/v3/accesslog.proto new file mode 100644 index 0000000..7021c50 --- /dev/null +++ b/third_party/schema-api/proto/envoy/config/accesslog/v3/accesslog.proto @@ -0,0 +1,146 @@ +syntax = "proto3"; + +package envoy.config.accesslog.v3; + +import "envoy/config/core/v3/base.proto"; +import "envoy/config/route/v3/route_components.proto"; +import "envoy/data/accesslog/v3/accesslog.proto"; +import "envoy/type/matcher/v3/metadata.proto"; +import "envoy/type/v3/percent.proto"; +import "google/protobuf/any.proto"; +import "google/protobuf/wrappers.proto"; +import "udpa/annotations/status.proto"; +import "udpa/annotations/versioning.proto"; +import "validate/validate.proto"; + +option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/accesslog/v3;accesslogv3"; +option java_multiple_files = true; +option java_outer_classname = "AccesslogProto"; +option java_package = "io.envoyproxy.envoy.config.accesslog.v3"; + +message AccessLog { + string name = 1; + AccessLogFilter filter = 2; + + oneof config_type { + google.protobuf.Any typed_config = 4; + } + + reserved 3; + + reserved "config"; +} + +message AccessLogFilter { + oneof filter_specifier { + StatusCodeFilter status_code_filter = 1; + DurationFilter duration_filter = 2; + NotHealthCheckFilter not_health_check_filter = 3; + TraceableFilter traceable_filter = 4; + RuntimeFilter runtime_filter = 5; + AndFilter and_filter = 6; + OrFilter or_filter = 7; + HeaderFilter header_filter = 8; + ResponseFlagFilter response_flag_filter = 9; + GrpcStatusFilter grpc_status_filter = 10; + ExtensionFilter extension_filter = 11; + MetadataFilter metadata_filter = 12; + LogTypeFilter log_type_filter = 13; + } +} + +message ComparisonFilter { + Op op = 1; + enum Op { + EQ = 0; + GE = 1; + LE = 2; + } + + core.v3.RuntimeUInt32 value = 2; +} + +message StatusCodeFilter { + ComparisonFilter comparison = 1; +} + +message DurationFilter { + ComparisonFilter comparison = 1; +} + +message NotHealthCheckFilter { + +} + +message TraceableFilter { + +} + +message RuntimeFilter { + string runtime_key = 1; + type.v3.FractionalPercent percent_sampled = 2; + bool use_independent_randomness = 3; +} + +message AndFilter { + repeated AccessLogFilter filters = 1; +} + +message OrFilter { + repeated AccessLogFilter filters = 2; +} + +message HeaderFilter { + route.v3.HeaderMatcher header = 1; +} + +message ResponseFlagFilter { + repeated string flags = 1; +} + +message GrpcStatusFilter { + repeated Status statuses = 1; + enum Status { + OK = 0; + CANCELED = 1; + UNKNOWN = 2; + INVALID_ARGUMENT = 3; + DEADLINE_EXCEEDED = 4; + NOT_FOUND = 5; + ALREADY_EXISTS = 6; + PERMISSION_DENIED = 7; + RESOURCE_EXHAUSTED = 8; + FAILED_PRECONDITION = 9; + ABORTED = 10; + OUT_OF_RANGE = 11; + UNIMPLEMENTED = 12; + INTERNAL = 13; + UNAVAILABLE = 14; + DATA_LOSS = 15; + UNAUTHENTICATED = 16; + } + + bool exclude = 2; +} + +message MetadataFilter { + type.matcher.v3.MetadataMatcher matcher = 1; + google.protobuf.BoolValue match_if_key_not_found = 2; +} + +message LogTypeFilter { + repeated data.accesslog.v3.AccessLogType types = 1; + bool exclude = 2; +} + +message ExtensionFilter { + string name = 1; + + oneof config_type { + google.protobuf.Any typed_config = 3; + } + + reserved 2; + + reserved "config"; +} diff --git a/third_party/schema-api/proto/envoy/config/cluster/v3/circuit_breaker.proto b/third_party/schema-api/proto/envoy/config/cluster/v3/circuit_breaker.proto new file mode 100644 index 0000000..3a10b56 --- /dev/null +++ b/third_party/schema-api/proto/envoy/config/cluster/v3/circuit_breaker.proto @@ -0,0 +1,37 @@ +syntax = "proto3"; + +package envoy.config.cluster.v3; + +import "envoy/config/core/v3/base.proto"; +import "envoy/type/v3/percent.proto"; +import "google/protobuf/wrappers.proto"; +import "udpa/annotations/status.proto"; +import "udpa/annotations/versioning.proto"; +import "validate/validate.proto"; + +option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/cluster/v3;clusterv3"; +option java_multiple_files = true; +option java_outer_classname = "CircuitBreakerProto"; +option java_package = "io.envoyproxy.envoy.config.cluster.v3"; + +message CircuitBreakers { + repeated Thresholds thresholds = 1; + message Thresholds { + core.v3.RoutingPriority priority = 1; + google.protobuf.UInt32Value max_connections = 2; + google.protobuf.UInt32Value max_pending_requests = 3; + google.protobuf.UInt32Value max_requests = 4; + google.protobuf.UInt32Value max_retries = 5; + + RetryBudget retry_budget = 8; + message RetryBudget { + type.v3.Percent budget_percent = 1; + google.protobuf.UInt32Value min_retry_concurrency = 2; + } + + bool track_remaining = 6; + google.protobuf.UInt32Value max_connection_pools = 7; + } + + repeated Thresholds per_host_thresholds = 2; +} diff --git a/third_party/schema-api/proto/envoy/config/cluster/v3/cluster.proto b/third_party/schema-api/proto/envoy/config/cluster/v3/cluster.proto new file mode 100644 index 0000000..e0e6ed5 --- /dev/null +++ b/third_party/schema-api/proto/envoy/config/cluster/v3/cluster.proto @@ -0,0 +1,311 @@ +syntax = "proto3"; + +package envoy.config.cluster.v3; + +import "envoy/config/cluster/v3/circuit_breaker.proto"; +import "envoy/config/cluster/v3/filter.proto"; +import "envoy/config/cluster/v3/outlier_detection.proto"; +import "envoy/config/core/v3/address.proto"; +import "envoy/config/core/v3/base.proto"; +import "envoy/config/core/v3/config_source.proto"; +import "envoy/config/core/v3/extension.proto"; +import "envoy/config/core/v3/health_check.proto"; +import "envoy/config/core/v3/protocol.proto"; +import "envoy/config/core/v3/resolver.proto"; +import "envoy/config/endpoint/v3/endpoint.proto"; +import "envoy/type/metadata/v3/metadata.proto"; +import "envoy/type/v3/percent.proto"; +import "google/protobuf/any.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/struct.proto"; +import "google/protobuf/wrappers.proto"; +import "xds/core/v3/collection_entry.proto"; +import "envoy/annotations/deprecation.proto"; +import "udpa/annotations/migrate.proto"; +import "udpa/annotations/security.proto"; +import "udpa/annotations/status.proto"; +import "udpa/annotations/versioning.proto"; +import "validate/validate.proto"; + +option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/cluster/v3;clusterv3"; +option java_multiple_files = true; +option java_outer_classname = "ClusterProto"; +option java_package = "io.envoyproxy.envoy.config.cluster.v3"; + +message ClusterCollection { + xds.core.v3.CollectionEntry entries = 1; +} + +message Cluster { + repeated TransportSocketMatch transport_socket_matches = 43; + message TransportSocketMatch { + string name = 1; + google.protobuf.Struct match = 2; + core.v3.TransportSocket transport_socket = 3; + } + + string name = 1; + string alt_stat_name = 28; + + EdsClusterConfig eds_cluster_config = 3; + message EdsClusterConfig { + core.v3.ConfigSource eds_config = 1; + string service_name = 2; + } + + google.protobuf.Duration connect_timeout = 4; + google.protobuf.UInt32Value per_connection_buffer_limit_bytes = 5; + + LbPolicy lb_policy = 6; + enum LbPolicy { + ROUND_ROBIN = 0; + LEAST_REQUEST = 1; + RING_HASH = 2; + RANDOM = 3; + MAGLEV = 5; + CLUSTER_PROVIDED = 6; + LOAD_BALANCING_POLICY_CONFIG = 7; + } + + endpoint.v3.ClusterLoadAssignment load_assignment = 33; + repeated core.v3.HealthCheck health_checks = 8; + google.protobuf.UInt32Value max_requests_per_connection = 9 [deprecated = true]; + CircuitBreakers circuit_breakers = 10; + core.v3.UpstreamHttpProtocolOptions upstream_http_protocol_options = 46 [deprecated = true]; + core.v3.HttpProtocolOptions common_http_protocol_options = 29 [deprecated = true]; + core.v3.Http1ProtocolOptions http_protocol_options = 13 [deprecated = true]; + core.v3.Http2ProtocolOptions http2_protocol_options = 14 [deprecated = true]; + map typed_extension_protocol_options = 36; + google.protobuf.Duration dns_refresh_rate = 16 [deprecated = true]; + google.protobuf.Duration dns_jitter = 58 [deprecated = true]; + + RefreshRate dns_failure_refresh_rate = 44 [deprecated = true]; + message RefreshRate { + google.protobuf.Duration base_interval = 1; + google.protobuf.Duration max_interval = 2; + } + + bool respect_dns_ttl = 39 [deprecated = true]; + + DnsLookupFamily dns_lookup_family = 17; + enum DnsLookupFamily { + AUTO = 0; + V4_ONLY = 1; + V6_ONLY = 2; + V4_PREFERRED = 3; + ALL = 4; + } + + repeated core.v3.Address dns_resolvers = 18 [deprecated = true]; + bool use_tcp_for_dns_lookups = 45 [deprecated = true]; + core.v3.DnsResolutionConfig dns_resolution_config = 53 [deprecated = true]; + core.v3.TypedExtensionConfig typed_dns_resolver_config = 55; + google.protobuf.BoolValue wait_for_warm_on_init = 54; + OutlierDetection outlier_detection = 19; + google.protobuf.Duration cleanup_interval = 20; + core.v3.BindConfig upstream_bind_config = 21; + + LbSubsetConfig lb_subset_config = 22; + message LbSubsetConfig { + LbSubsetFallbackPolicy fallback_policy = 1; + enum LbSubsetFallbackPolicy { + NO_FALLBACK = 0; + ANY_ENDPOINT = 1; + DEFAULT_SUBSET = 2; + } + + google.protobuf.Struct default_subset = 2; + + repeated LbSubsetSelector subset_selectors = 3; + message LbSubsetSelector { + repeated string keys = 1; + bool single_host_per_subset = 4; + + LbSubsetSelectorFallbackPolicy fallback_policy = 2; + enum LbSubsetSelectorFallbackPolicy { + NOT_DEFINED = 0; + NO_FALLBACK = 1; + ANY_ENDPOINT = 2; + DEFAULT_SUBSET = 3; + KEYS_SUBSET = 4; + } + + repeated string fallback_keys_subset = 3; + } + + bool locality_weight_aware = 4; + bool scale_locality_weight = 5; + bool panic_mode_any = 6; + bool list_as_any = 7; + + LbSubsetMetadataFallbackPolicy metadata_fallback_policy = 8; + enum LbSubsetMetadataFallbackPolicy { + METADATA_NO_FALLBACK = 0; + FALLBACK_LIST = 1; + } + } + + CommonLbConfig common_lb_config = 27; + message CommonLbConfig { + type.v3.Percent healthy_panic_threshold = 1; + google.protobuf.Duration update_merge_window = 4; + bool ignore_new_hosts_until_first_hc = 5; + bool close_connections_on_host_set_change = 6; + + ConsistentHashingLbConfig consistent_hashing_lb_config = 7; + message ConsistentHashingLbConfig { + bool use_hostname_for_hashing = 1; + google.protobuf.UInt32Value hash_balance_factor = 2; + } + + core.v3.HealthStatusSet override_host_status = 8; + + oneof locality_config_specifier { + ZoneAwareLbConfig zone_aware_lb_config = 2; + LocalityWeightedLbConfig locality_weighted_lb_config = 3; + } + + message ZoneAwareLbConfig { + type.v3.Percent routing_enabled = 1; + google.protobuf.UInt64Value min_cluster_size = 2; + bool fail_traffic_on_panic = 3; + } + + message LocalityWeightedLbConfig { + + } + } + + core.v3.TransportSocket transport_socket = 24; + core.v3.Metadata metadata = 25; + + ClusterProtocolSelection protocol_selection = 26 [deprecated = true]; + enum ClusterProtocolSelection { + USE_CONFIGURED_PROTOCOL = 0; + USE_DOWNSTREAM_PROTOCOL = 1; + } + + UpstreamConnectionOptions upstream_connection_options = 30; + bool close_connections_on_host_health_failure = 31; + bool ignore_health_on_host_removal = 32; + repeated Filter filters = 40; + LoadBalancingPolicy load_balancing_policy = 41; + core.v3.ConfigSource lrs_server = 42; + repeated string lrs_report_endpoint_metrics = 57; + bool track_timeout_budgets = 47 [deprecated = true]; + core.v3.TypedExtensionConfig upstream_config = 48; + TrackClusterStats track_cluster_stats = 49; + + PreconnectPolicy preconnect_policy = 50; + message PreconnectPolicy { + google.protobuf.DoubleValue per_upstream_preconnect_ratio = 1; + google.protobuf.DoubleValue predictive_preconnect_ratio = 2; + } + + bool connection_pool_per_downstream_connection = 51; + + oneof cluster_discovery_type { + DiscoveryType type = 2; + CustomClusterType cluster_type = 38; + } + + oneof lb_config { + RingHashLbConfig ring_hash_lb_config = 23; + MaglevLbConfig maglev_lb_config = 52; + OriginalDstLbConfig original_dst_lb_config = 34; + LeastRequestLbConfig least_request_lb_config = 37; + RoundRobinLbConfig round_robin_lb_config = 56; + } + + reserved 12, 15, 7, 11, 35; + + reserved "hosts", "tls_context", "extension_protocol_options"; + + message CustomClusterType { + string name = 1; + google.protobuf.Any typed_config = 2; + } + + message SlowStartConfig { + google.protobuf.Duration slow_start_window = 1; + core.v3.RuntimeDouble aggression = 2; + type.v3.Percent min_weight_percent = 3; + } + + message RoundRobinLbConfig { + SlowStartConfig slow_start_config = 1; + } + + message LeastRequestLbConfig { + google.protobuf.UInt32Value choice_count = 1; + core.v3.RuntimeDouble active_request_bias = 2; + SlowStartConfig slow_start_config = 3; + } + + message RingHashLbConfig { + google.protobuf.UInt64Value minimum_ring_size = 1; + + HashFunction hash_function = 3; + enum HashFunction { + XX_HASH = 0; + MURMUR_HASH_2 = 1; + } + + google.protobuf.UInt64Value maximum_ring_size = 4; + + reserved 2; + } + + message MaglevLbConfig { + google.protobuf.UInt64Value table_size = 1; + } + + message OriginalDstLbConfig { + bool use_http_header = 1; + string http_header_name = 2; + google.protobuf.UInt32Value upstream_port_override = 3; + type.metadata.v3.MetadataKey metadata_key = 4; + } + + enum DiscoveryType { + STATIC = 0; + STRICT_DNS = 1; + LOGICAL_DNS = 2; + EDS = 3; + ORIGINAL_DST = 4; + } +} + +message LoadBalancingPolicy { + repeated Policy policies = 1; + message Policy { + core.v3.TypedExtensionConfig typed_extension_config = 4; + + reserved 2, 1, 3; + + reserved "config", "name", "typed_config"; + } +} + +message UpstreamConnectionOptions { + core.v3.TcpKeepalive tcp_keepalive = 1; + bool set_local_interface_name_on_upstream_connections = 2; + + HappyEyeballsConfig happy_eyeballs_config = 3; + message HappyEyeballsConfig { + FirstAddressFamilyVersion first_address_family_version = 1; + google.protobuf.UInt32Value first_address_family_count = 2; + } + + enum FirstAddressFamilyVersion { + DEFAULT = 0; + V4 = 1; + V6 = 2; + } +} + +message TrackClusterStats { + bool timeout_budgets = 1; + bool request_response_sizes = 2; + bool per_endpoint_stats = 3; +} diff --git a/third_party/schema-api/proto/envoy/config/cluster/v3/filter.proto b/third_party/schema-api/proto/envoy/config/cluster/v3/filter.proto new file mode 100644 index 0000000..00e818e --- /dev/null +++ b/third_party/schema-api/proto/envoy/config/cluster/v3/filter.proto @@ -0,0 +1,20 @@ +syntax = "proto3"; + +package envoy.config.cluster.v3; + +import "envoy/config/core/v3/config_source.proto"; +import "google/protobuf/any.proto"; +import "udpa/annotations/status.proto"; +import "udpa/annotations/versioning.proto"; +import "validate/validate.proto"; + +option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/cluster/v3;clusterv3"; +option java_multiple_files = true; +option java_outer_classname = "FilterProto"; +option java_package = "io.envoyproxy.envoy.config.cluster.v3"; + +message Filter { + string name = 1; + google.protobuf.Any typed_config = 2; + core.v3.ExtensionConfigSource config_discovery = 3; +} diff --git a/third_party/schema-api/proto/envoy/config/cluster/v3/outlier_detection.proto b/third_party/schema-api/proto/envoy/config/cluster/v3/outlier_detection.proto new file mode 100644 index 0000000..fe48707 --- /dev/null +++ b/third_party/schema-api/proto/envoy/config/cluster/v3/outlier_detection.proto @@ -0,0 +1,43 @@ +syntax = "proto3"; + +package envoy.config.cluster.v3; + +import "envoy/config/core/v3/extension.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/wrappers.proto"; +import "udpa/annotations/status.proto"; +import "udpa/annotations/versioning.proto"; +import "validate/validate.proto"; + +option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/cluster/v3;clusterv3"; +option java_multiple_files = true; +option java_outer_classname = "OutlierDetectionProto"; +option java_package = "io.envoyproxy.envoy.config.cluster.v3"; + +message OutlierDetection { + google.protobuf.UInt32Value consecutive_5xx = 1; + google.protobuf.Duration interval = 2; + google.protobuf.Duration base_ejection_time = 3; + google.protobuf.UInt32Value max_ejection_percent = 4; + google.protobuf.UInt32Value enforcing_consecutive_5xx = 5; + google.protobuf.UInt32Value enforcing_success_rate = 6; + google.protobuf.UInt32Value success_rate_minimum_hosts = 7; + google.protobuf.UInt32Value success_rate_request_volume = 8; + google.protobuf.UInt32Value success_rate_stdev_factor = 9; + google.protobuf.UInt32Value consecutive_gateway_failure = 10; + google.protobuf.UInt32Value enforcing_consecutive_gateway_failure = 11; + bool split_external_local_origin_errors = 12; + google.protobuf.UInt32Value consecutive_local_origin_failure = 13; + google.protobuf.UInt32Value enforcing_consecutive_local_origin_failure = 14; + google.protobuf.UInt32Value enforcing_local_origin_success_rate = 15; + google.protobuf.UInt32Value failure_percentage_threshold = 16; + google.protobuf.UInt32Value enforcing_failure_percentage = 17; + google.protobuf.UInt32Value enforcing_failure_percentage_local_origin = 18; + google.protobuf.UInt32Value failure_percentage_minimum_hosts = 19; + google.protobuf.UInt32Value failure_percentage_request_volume = 20; + google.protobuf.Duration max_ejection_time = 21; + google.protobuf.Duration max_ejection_time_jitter = 22; + google.protobuf.BoolValue successful_active_health_check_uneject_host = 23; + repeated core.v3.TypedExtensionConfig monitors = 24; + google.protobuf.BoolValue always_eject_one_host = 25; +} diff --git a/third_party/schema-api/proto/envoy/config/core/v3/address.proto b/third_party/schema-api/proto/envoy/config/core/v3/address.proto new file mode 100644 index 0000000..33f80e8 --- /dev/null +++ b/third_party/schema-api/proto/envoy/config/core/v3/address.proto @@ -0,0 +1,79 @@ +syntax = "proto3"; + +package envoy.config.core.v3; + +import "envoy/config/core/v3/extension.proto"; +import "envoy/config/core/v3/socket_option.proto"; +import "google/protobuf/wrappers.proto"; +import "envoy/annotations/deprecation.proto"; +import "udpa/annotations/status.proto"; +import "udpa/annotations/versioning.proto"; +import "validate/validate.proto"; + +option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/core/v3;corev3"; +option java_multiple_files = true; +option java_outer_classname = "AddressProto"; +option java_package = "io.envoyproxy.envoy.config.core.v3"; + +message Pipe { + string path = 1; + uint32 mode = 2; +} + +message EnvoyInternalAddress { + string endpoint_id = 2; + + oneof address_name_specifier { + string server_listener_name = 1; + } +} + +message SocketAddress { + Protocol protocol = 1; + enum Protocol { + TCP = 0; + UDP = 1; + } + + string address = 2; + string resolver_name = 5; + bool ipv4_compat = 6; + + oneof port_specifier { + uint32 port_value = 3; + string named_port = 4; + } +} + +message TcpKeepalive { + google.protobuf.UInt32Value keepalive_probes = 1; + google.protobuf.UInt32Value keepalive_time = 2; + google.protobuf.UInt32Value keepalive_interval = 3; +} + +message ExtraSourceAddress { + SocketAddress address = 1; + SocketOptionsOverride socket_options = 2; +} + +message BindConfig { + SocketAddress source_address = 1; + google.protobuf.BoolValue freebind = 2; + repeated SocketOption socket_options = 3; + repeated ExtraSourceAddress extra_source_addresses = 5; + repeated SocketAddress additional_source_addresses = 4 [deprecated = true]; + TypedExtensionConfig local_address_selector = 6; +} + +message Address { + oneof address { + SocketAddress socket_address = 1; + Pipe pipe = 2; + EnvoyInternalAddress envoy_internal_address = 3; + } +} + +message CidrRange { + string address_prefix = 1; + google.protobuf.UInt32Value prefix_len = 2; +} diff --git a/third_party/schema-api/proto/envoy/config/core/v3/backoff.proto b/third_party/schema-api/proto/envoy/config/core/v3/backoff.proto new file mode 100644 index 0000000..ef5aa8e --- /dev/null +++ b/third_party/schema-api/proto/envoy/config/core/v3/backoff.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +package envoy.config.core.v3; + +import "google/protobuf/duration.proto"; +import "udpa/annotations/status.proto"; +import "udpa/annotations/versioning.proto"; +import "validate/validate.proto"; + +option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/core/v3;corev3"; +option java_multiple_files = true; +option java_outer_classname = "BackoffProto"; +option java_package = "io.envoyproxy.envoy.config.core.v3"; + +message BackoffStrategy { + google.protobuf.Duration base_interval = 1; + google.protobuf.Duration max_interval = 2; +} diff --git a/third_party/schema-api/proto/envoy/config/core/v3/base.proto b/third_party/schema-api/proto/envoy/config/core/v3/base.proto new file mode 100644 index 0000000..e150177 --- /dev/null +++ b/third_party/schema-api/proto/envoy/config/core/v3/base.proto @@ -0,0 +1,246 @@ +syntax = "proto3"; + +package envoy.config.core.v3; + +import "envoy/config/core/v3/address.proto"; +import "envoy/config/core/v3/backoff.proto"; +import "envoy/config/core/v3/http_uri.proto"; +import "envoy/type/v3/percent.proto"; +import "envoy/type/v3/semantic_version.proto"; +import "google/protobuf/any.proto"; +import "google/protobuf/struct.proto"; +import "google/protobuf/wrappers.proto"; +import "xds/core/v3/context_params.proto"; +import "envoy/annotations/deprecation.proto"; +import "udpa/annotations/migrate.proto"; +import "udpa/annotations/status.proto"; +import "udpa/annotations/versioning.proto"; +import "validate/validate.proto"; + +option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/core/v3;corev3"; +option java_multiple_files = true; +option java_outer_classname = "BaseProto"; +option java_package = "io.envoyproxy.envoy.config.core.v3"; + +message Locality { + string region = 1; + string zone = 2; + string sub_zone = 3; +} + +message BuildVersion { + type.v3.SemanticVersion version = 1; + google.protobuf.Struct metadata = 2; +} + +message Extension { + string name = 1; + string category = 2; + string type_descriptor = 3 [deprecated = true]; + BuildVersion version = 4; + bool disabled = 5; + repeated string type_urls = 6; +} + +message Node { + string id = 1; + string cluster = 2; + google.protobuf.Struct metadata = 3; + map dynamic_parameters = 12; + Locality locality = 4; + string user_agent_name = 6; + repeated Extension extensions = 9; + repeated string client_features = 10; + repeated Address listening_addresses = 11 [deprecated = true]; + + oneof user_agent_version_type { + string user_agent_version = 7; + BuildVersion user_agent_build_version = 8; + } + + reserved 5; + + reserved "build_version"; +} + +message Metadata { + map filter_metadata = 1; + map typed_filter_metadata = 2; +} + +message RuntimeUInt32 { + uint32 default_value = 2; + string runtime_key = 3; +} + +message RuntimePercent { + type.v3.Percent default_value = 1; + string runtime_key = 2; +} + +message RuntimeDouble { + double default_value = 1; + string runtime_key = 2; +} + +message RuntimeFeatureFlag { + google.protobuf.BoolValue default_value = 1; + string runtime_key = 2; +} + +message KeyValue { + string key = 1 [deprecated = true]; + bytes value = 2 [deprecated = true]; +} + +message KeyValuePair { + string key = 1; + google.protobuf.Value value = 2; +} + +message KeyValueAppend { + KeyValuePair record = 3; + KeyValue entry = 1 [deprecated = true]; + + KeyValueAppendAction action = 2; + enum KeyValueAppendAction { + APPEND_IF_EXISTS_OR_ADD = 0; + ADD_IF_ABSENT = 1; + OVERWRITE_IF_EXISTS_OR_ADD = 2; + OVERWRITE_IF_EXISTS = 3; + } +} + +message KeyValueMutation { + KeyValueAppend append = 1; + string remove = 2; +} + +message QueryParameter { + string key = 1; + string value = 2; +} + +message HeaderValue { + string key = 1; + string value = 2; + bytes raw_value = 3; +} + +message HeaderValueOption { + HeaderValue header = 1; + google.protobuf.BoolValue append = 2 [deprecated = true]; + + HeaderAppendAction append_action = 3; + enum HeaderAppendAction { + APPEND_IF_EXISTS_OR_ADD = 0; + ADD_IF_ABSENT = 1; + OVERWRITE_IF_EXISTS_OR_ADD = 2; + OVERWRITE_IF_EXISTS = 3; + } + + bool keep_empty_value = 4; +} + +message HeaderMap { + repeated HeaderValue headers = 1; +} + +message WatchedDirectory { + string path = 1; +} + +message DataSource { + WatchedDirectory watched_directory = 5; + + oneof specifier { + string filename = 1; + bytes inline_bytes = 2; + string inline_string = 3; + string environment_variable = 4; + } +} + +message RetryPolicy { + BackoffStrategy retry_back_off = 1; + google.protobuf.UInt32Value num_retries = 2; + string retry_on = 3; + + RetryPriority retry_priority = 4; + message RetryPriority { + string name = 1; + + oneof config_type { + google.protobuf.Any typed_config = 2; + } + } + + repeated RetryHostPredicate retry_host_predicate = 5; + message RetryHostPredicate { + string name = 1; + + oneof config_type { + google.protobuf.Any typed_config = 2; + } + } + + int64 host_selection_retry_max_attempts = 6; +} + +message RemoteDataSource { + HttpUri http_uri = 1; + string sha256 = 2; + RetryPolicy retry_policy = 3; +} + +message AsyncDataSource { + oneof specifier { + DataSource local = 1; + RemoteDataSource remote = 2; + } +} + +message TransportSocket { + string name = 1; + + oneof config_type { + google.protobuf.Any typed_config = 3; + } + + reserved 2; + + reserved "config"; +} + +message RuntimeFractionalPercent { + type.v3.FractionalPercent default_value = 1; + string runtime_key = 2; +} + +message ControlPlane { + string identifier = 1; +} + +enum RoutingPriority { + DEFAULT = 0; + HIGH = 1; +} + +enum RequestMethod { + METHOD_UNSPECIFIED = 0; + GET = 1; + HEAD = 2; + POST = 3; + PUT = 4; + DELETE = 5; + CONNECT = 6; + OPTIONS = 7; + TRACE = 8; + PATCH = 9; +} + +enum TrafficDirection { + UNSPECIFIED = 0; + INBOUND = 1; + OUTBOUND = 2; +} diff --git a/third_party/schema-api/proto/envoy/config/core/v3/config_source.proto b/third_party/schema-api/proto/envoy/config/core/v3/config_source.proto new file mode 100644 index 0000000..94f79ce --- /dev/null +++ b/third_party/schema-api/proto/envoy/config/core/v3/config_source.proto @@ -0,0 +1,86 @@ +syntax = "proto3"; + +package envoy.config.core.v3; + +import "envoy/config/core/v3/base.proto"; +import "envoy/config/core/v3/extension.proto"; +import "envoy/config/core/v3/grpc_service.proto"; +import "google/protobuf/any.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/wrappers.proto"; +import "xds/core/v3/authority.proto"; +import "envoy/annotations/deprecation.proto"; +import "udpa/annotations/status.proto"; +import "udpa/annotations/versioning.proto"; +import "validate/validate.proto"; + +option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/core/v3;corev3"; +option java_multiple_files = true; +option java_outer_classname = "ConfigSourceProto"; +option java_package = "io.envoyproxy.envoy.config.core.v3"; + +message ApiConfigSource { + ApiType api_type = 1; + enum ApiType { + DEPRECATED_AND_UNAVAILABLE_DO_NOT_USE = 0 [deprecated = true]; + REST = 1; + GRPC = 2; + DELTA_GRPC = 3; + AGGREGATED_GRPC = 5; + AGGREGATED_DELTA_GRPC = 6; + } + + ApiVersion transport_api_version = 8; + repeated string cluster_names = 2; + repeated GrpcService grpc_services = 4; + google.protobuf.Duration refresh_delay = 3; + google.protobuf.Duration request_timeout = 5; + RateLimitSettings rate_limit_settings = 6; + bool set_node_on_first_message_only = 7; + repeated TypedExtensionConfig config_validators = 9; +} + +message AggregatedConfigSource { + +} + +message SelfConfigSource { + ApiVersion transport_api_version = 1; +} + +message RateLimitSettings { + google.protobuf.UInt32Value max_tokens = 1; + google.protobuf.DoubleValue fill_rate = 2; +} + +message PathConfigSource { + string path = 1; + WatchedDirectory watched_directory = 2; +} + +message ConfigSource { + repeated xds.core.v3.Authority authorities = 7; + google.protobuf.Duration initial_fetch_timeout = 4; + ApiVersion resource_api_version = 6; + + oneof config_source_specifier { + string path = 1 [deprecated = true]; + PathConfigSource path_config_source = 8; + ApiConfigSource api_config_source = 2; + AggregatedConfigSource ads = 3; + SelfConfigSource self = 5; + } +} + +message ExtensionConfigSource { + ConfigSource config_source = 1; + google.protobuf.Any default_config = 2; + bool apply_default_config_without_warming = 3; + repeated string type_urls = 4; +} + +enum ApiVersion { + AUTO = 0; + V2 = 1 [deprecated = true]; + V3 = 2; +} diff --git a/third_party/schema-api/proto/envoy/config/core/v3/event_service_config.proto b/third_party/schema-api/proto/envoy/config/core/v3/event_service_config.proto new file mode 100644 index 0000000..679610b --- /dev/null +++ b/third_party/schema-api/proto/envoy/config/core/v3/event_service_config.proto @@ -0,0 +1,19 @@ +syntax = "proto3"; + +package envoy.config.core.v3; + +import "envoy/config/core/v3/grpc_service.proto"; +import "udpa/annotations/status.proto"; +import "udpa/annotations/versioning.proto"; +import "validate/validate.proto"; + +option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/core/v3;corev3"; +option java_multiple_files = true; +option java_outer_classname = "EventServiceConfigProto"; +option java_package = "io.envoyproxy.envoy.config.core.v3"; + +message EventServiceConfig { + oneof config_source_specifier { + GrpcService grpc_service = 1; + } +} diff --git a/third_party/schema-api/proto/envoy/config/core/v3/extension.proto b/third_party/schema-api/proto/envoy/config/core/v3/extension.proto new file mode 100644 index 0000000..6d3b98a --- /dev/null +++ b/third_party/schema-api/proto/envoy/config/core/v3/extension.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +package envoy.config.core.v3; + +import "google/protobuf/any.proto"; +import "udpa/annotations/status.proto"; +import "validate/validate.proto"; + +option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/core/v3;corev3"; +option java_multiple_files = true; +option java_outer_classname = "ExtensionProto"; +option java_package = "io.envoyproxy.envoy.config.core.v3"; + +message TypedExtensionConfig { + string name = 1; + google.protobuf.Any typed_config = 2; +} diff --git a/third_party/schema-api/proto/envoy/config/core/v3/grpc_service.proto b/third_party/schema-api/proto/envoy/config/core/v3/grpc_service.proto new file mode 100644 index 0000000..fc77e6b --- /dev/null +++ b/third_party/schema-api/proto/envoy/config/core/v3/grpc_service.proto @@ -0,0 +1,127 @@ +syntax = "proto3"; + +package envoy.config.core.v3; + +import "envoy/config/core/v3/base.proto"; +import "google/protobuf/any.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/struct.proto"; +import "google/protobuf/wrappers.proto"; +import "udpa/annotations/sensitive.proto"; +import "udpa/annotations/status.proto"; +import "udpa/annotations/versioning.proto"; +import "validate/validate.proto"; + +option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/core/v3;corev3"; +option java_multiple_files = true; +option java_outer_classname = "GrpcServiceProto"; +option java_package = "io.envoyproxy.envoy.config.core.v3"; + +message GrpcService { + google.protobuf.Duration timeout = 3; + repeated HeaderValue initial_metadata = 5; + RetryPolicy retry_policy = 6; + + oneof target_specifier { + EnvoyGrpc envoy_grpc = 1; + GoogleGrpc google_grpc = 2; + } + + reserved 4; + + message EnvoyGrpc { + string cluster_name = 1; + string authority = 2; + RetryPolicy retry_policy = 3; + google.protobuf.UInt32Value max_receive_message_length = 4; + bool skip_envoy_headers = 5; + } + + message GoogleGrpc { + string target_uri = 1; + + ChannelCredentials channel_credentials = 2; + message ChannelCredentials { + oneof credential_specifier { + SslCredentials ssl_credentials = 1; + google.protobuf.Empty google_default = 2; + GoogleLocalCredentials local_credentials = 3; + } + } + + repeated CallCredentials call_credentials = 3; + message CallCredentials { + oneof credential_specifier { + string access_token = 1; + google.protobuf.Empty google_compute_engine = 2; + string google_refresh_token = 3; + ServiceAccountJWTAccessCredentials service_account_jwt_access = 4; + GoogleIAMCredentials google_iam = 5; + MetadataCredentialsFromPlugin from_plugin = 6; + StsService sts_service = 7; + } + + message ServiceAccountJWTAccessCredentials { + string json_key = 1; + uint64 token_lifetime_seconds = 2; + } + + message GoogleIAMCredentials { + string authorization_token = 1; + string authority_selector = 2; + } + + message MetadataCredentialsFromPlugin { + string name = 1; + + oneof config_type { + google.protobuf.Any typed_config = 3; + } + + reserved 2; + + reserved "config"; + } + + message StsService { + string token_exchange_service_uri = 1; + string resource = 2; + string audience = 3; + string scope = 4; + string requested_token_type = 5; + string subject_token_path = 6; + string subject_token_type = 7; + string actor_token_path = 8; + string actor_token_type = 9; + } + } + + string stat_prefix = 4; + string credentials_factory_name = 5; + google.protobuf.Struct config = 6; + google.protobuf.UInt32Value per_stream_buffer_limit_bytes = 7; + + ChannelArgs channel_args = 8; + message ChannelArgs { + map args = 1; + + message Value { + oneof value_specifier { + string string_value = 1; + int64 int_value = 2; + } + } + } + + message SslCredentials { + DataSource root_certs = 1; + DataSource private_key = 2; + DataSource cert_chain = 3; + } + + message GoogleLocalCredentials { + + } + } +} diff --git a/third_party/schema-api/proto/envoy/config/core/v3/health_check.proto b/third_party/schema-api/proto/envoy/config/core/v3/health_check.proto new file mode 100644 index 0000000..d249556 --- /dev/null +++ b/third_party/schema-api/proto/envoy/config/core/v3/health_check.proto @@ -0,0 +1,129 @@ +syntax = "proto3"; + +package envoy.config.core.v3; + +import "envoy/config/core/v3/base.proto"; +import "envoy/config/core/v3/event_service_config.proto"; +import "envoy/config/core/v3/extension.proto"; +import "envoy/config/core/v3/proxy_protocol.proto"; +import "envoy/type/matcher/v3/string.proto"; +import "envoy/type/v3/http.proto"; +import "envoy/type/v3/range.proto"; +import "google/protobuf/any.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/struct.proto"; +import "google/protobuf/wrappers.proto"; +import "envoy/annotations/deprecation.proto"; +import "udpa/annotations/status.proto"; +import "udpa/annotations/versioning.proto"; +import "validate/validate.proto"; + +option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/core/v3;corev3"; +option java_multiple_files = true; +option java_outer_classname = "HealthCheckProto"; +option java_package = "io.envoyproxy.envoy.config.core.v3"; + +message HealthStatusSet { + repeated HealthStatus statuses = 1; +} + +message HealthCheck { + google.protobuf.Duration timeout = 1; + google.protobuf.Duration interval = 2; + google.protobuf.Duration initial_jitter = 20; + google.protobuf.Duration interval_jitter = 3; + uint32 interval_jitter_percent = 18; + google.protobuf.UInt32Value unhealthy_threshold = 4; + google.protobuf.UInt32Value healthy_threshold = 5; + google.protobuf.UInt32Value alt_port = 6; + google.protobuf.BoolValue reuse_connection = 7; + google.protobuf.Duration no_traffic_interval = 12; + google.protobuf.Duration no_traffic_healthy_interval = 24; + google.protobuf.Duration unhealthy_interval = 14; + google.protobuf.Duration unhealthy_edge_interval = 15; + google.protobuf.Duration healthy_edge_interval = 16; + string event_log_path = 17 [deprecated = true]; + repeated TypedExtensionConfig event_logger = 25; + EventServiceConfig event_service = 22; + bool always_log_health_check_failures = 19; + bool always_log_health_check_success = 26; + + TlsOptions tls_options = 21; + message TlsOptions { + repeated string alpn_protocols = 1; + } + + google.protobuf.Struct transport_socket_match_criteria = 23; + + oneof health_checker { + HttpHealthCheck http_health_check = 8; + TcpHealthCheck tcp_health_check = 9; + GrpcHealthCheck grpc_health_check = 11; + CustomHealthCheck custom_health_check = 13; + } + + reserved 10; + + message Payload { + oneof payload { + string text = 1; + bytes binary = 2; + } + } + + message HttpHealthCheck { + string host = 1; + string path = 2; + Payload send = 3; + repeated Payload receive = 4; + google.protobuf.UInt64Value response_buffer_size = 14; + repeated HeaderValueOption request_headers_to_add = 6; + repeated string request_headers_to_remove = 8; + repeated type.v3.Int64Range expected_statuses = 9; + repeated type.v3.Int64Range retriable_statuses = 12; + type.v3.CodecClientType codec_client_type = 10; + type.matcher.v3.StringMatcher service_name_matcher = 11; + RequestMethod method = 13; + + reserved 5, 7; + + reserved "service_name", "use_http2"; + } + + message TcpHealthCheck { + Payload send = 1; + repeated Payload receive = 2; + ProxyProtocolConfig proxy_protocol_config = 3; + } + + message RedisHealthCheck { + string key = 1; + } + + message GrpcHealthCheck { + string service_name = 1; + string authority = 2; + repeated HeaderValueOption initial_metadata = 3; + } + + message CustomHealthCheck { + string name = 1; + + oneof config_type { + google.protobuf.Any typed_config = 3; + } + + reserved 2; + + reserved "config"; + } +} + +enum HealthStatus { + UNKNOWN = 0; + HEALTHY = 1; + UNHEALTHY = 2; + DRAINING = 3; + TIMEOUT = 4; + DEGRADED = 5; +} diff --git a/third_party/schema-api/proto/envoy/config/core/v3/http_uri.proto b/third_party/schema-api/proto/envoy/config/core/v3/http_uri.proto new file mode 100644 index 0000000..3987a69 --- /dev/null +++ b/third_party/schema-api/proto/envoy/config/core/v3/http_uri.proto @@ -0,0 +1,22 @@ +syntax = "proto3"; + +package envoy.config.core.v3; + +import "google/protobuf/duration.proto"; +import "udpa/annotations/status.proto"; +import "udpa/annotations/versioning.proto"; +import "validate/validate.proto"; + +option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/core/v3;corev3"; +option java_multiple_files = true; +option java_outer_classname = "HttpUriProto"; +option java_package = "io.envoyproxy.envoy.config.core.v3"; + +message HttpUri { + string uri = 1; + google.protobuf.Duration timeout = 3; + + oneof http_upstream_type { + string cluster = 2; + } +} diff --git a/third_party/schema-api/proto/envoy/config/core/v3/protocol.proto b/third_party/schema-api/proto/envoy/config/core/v3/protocol.proto new file mode 100644 index 0000000..32dbf1c --- /dev/null +++ b/third_party/schema-api/proto/envoy/config/core/v3/protocol.proto @@ -0,0 +1,153 @@ +syntax = "proto3"; + +package envoy.config.core.v3; + +import "envoy/config/core/v3/extension.proto"; +import "envoy/type/v3/percent.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/wrappers.proto"; +import "xds/annotations/v3/status.proto"; +import "envoy/annotations/deprecation.proto"; +import "udpa/annotations/status.proto"; +import "udpa/annotations/versioning.proto"; +import "validate/validate.proto"; + +option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/core/v3;corev3"; +option java_multiple_files = true; +option java_outer_classname = "ProtocolProto"; +option java_package = "io.envoyproxy.envoy.config.core.v3"; + +message TcpProtocolOptions { + +} + +message QuicKeepAliveSettings { + google.protobuf.Duration max_interval = 1; + google.protobuf.Duration initial_interval = 2; +} + +message QuicProtocolOptions { + google.protobuf.UInt32Value max_concurrent_streams = 1; + google.protobuf.UInt32Value initial_stream_window_size = 2; + google.protobuf.UInt32Value initial_connection_window_size = 3; + google.protobuf.UInt32Value num_timeouts_to_trigger_port_migration = 4; + QuicKeepAliveSettings connection_keepalive = 5; + string connection_options = 6; + string client_connection_options = 7; + google.protobuf.Duration idle_network_timeout = 8; + google.protobuf.UInt64Value max_packet_length = 9; +} + +message UpstreamHttpProtocolOptions { + bool auto_sni = 1; + bool auto_san_validation = 2; + string override_auto_sni_header = 3; +} + +message AlternateProtocolsCacheOptions { + string name = 1; + google.protobuf.UInt32Value max_entries = 2; + TypedExtensionConfig key_value_store_config = 3; + + repeated AlternateProtocolsCacheEntry prepopulated_entries = 4; + message AlternateProtocolsCacheEntry { + string hostname = 1; + uint32 port = 2; + } + + repeated string canonical_suffixes = 5; +} + +message HttpProtocolOptions { + google.protobuf.Duration idle_timeout = 1; + google.protobuf.Duration max_connection_duration = 3; + google.protobuf.UInt32Value max_headers_count = 2; + google.protobuf.UInt32Value max_response_headers_kb = 7; + google.protobuf.Duration max_stream_duration = 4; + + HeadersWithUnderscoresAction headers_with_underscores_action = 5; + enum HeadersWithUnderscoresAction { + ALLOW = 0; + REJECT_REQUEST = 1; + DROP_HEADER = 2; + } + + google.protobuf.UInt32Value max_requests_per_connection = 6; +} + +message Http1ProtocolOptions { + google.protobuf.BoolValue allow_absolute_url = 1; + bool accept_http_10 = 2; + string default_host_for_http_10 = 3; + + HeaderKeyFormat header_key_format = 4; + message HeaderKeyFormat { + oneof header_format { + ProperCaseWords proper_case_words = 1; + TypedExtensionConfig stateful_formatter = 8; + } + + message ProperCaseWords { + + } + } + + bool enable_trailers = 5; + bool allow_chunked_length = 6; + google.protobuf.BoolValue override_stream_error_on_invalid_http_message = 7; + bool send_fully_qualified_url = 8; + google.protobuf.BoolValue use_balsa_parser = 9; + bool allow_custom_methods = 10; +} + +message KeepaliveSettings { + google.protobuf.Duration interval = 1; + google.protobuf.Duration timeout = 2; + type.v3.Percent interval_jitter = 3; + google.protobuf.Duration connection_idle_interval = 4; +} + +message Http2ProtocolOptions { + google.protobuf.UInt32Value hpack_table_size = 1; + google.protobuf.UInt32Value max_concurrent_streams = 2; + google.protobuf.UInt32Value initial_stream_window_size = 3; + google.protobuf.UInt32Value initial_connection_window_size = 4; + bool allow_connect = 5; + bool allow_metadata = 6; + google.protobuf.UInt32Value max_outbound_frames = 7; + google.protobuf.UInt32Value max_outbound_control_frames = 8; + google.protobuf.UInt32Value max_consecutive_inbound_frames_with_empty_payload = 9; + google.protobuf.UInt32Value max_inbound_priority_frames_per_stream = 10; + google.protobuf.UInt32Value max_inbound_window_update_frames_per_data_frame_sent = 11; + bool stream_error_on_invalid_http_messaging = 12 [deprecated = true]; + google.protobuf.BoolValue override_stream_error_on_invalid_http_message = 14; + + repeated SettingsParameter custom_settings_parameters = 13; + message SettingsParameter { + google.protobuf.UInt32Value identifier = 1; + google.protobuf.UInt32Value value = 2; + } + + KeepaliveSettings connection_keepalive = 15; + google.protobuf.BoolValue use_oghttp2_codec = 16; + google.protobuf.UInt64Value max_metadata_size = 17; +} + +message GrpcProtocolOptions { + Http2ProtocolOptions http2_protocol_options = 1; +} + +message Http3ProtocolOptions { + QuicProtocolOptions quic_protocol_options = 1; + google.protobuf.BoolValue override_stream_error_on_invalid_http_message = 2; + bool allow_extended_connect = 5; + bool allow_metadata = 6; +} + +message SchemeHeaderTransformation { + bool match_upstream = 2; + + oneof transformation { + string scheme_to_overwrite = 1; + } +} diff --git a/third_party/schema-api/proto/envoy/config/core/v3/proxy_protocol.proto b/third_party/schema-api/proto/envoy/config/core/v3/proxy_protocol.proto new file mode 100644 index 0000000..929c708 --- /dev/null +++ b/third_party/schema-api/proto/envoy/config/core/v3/proxy_protocol.proto @@ -0,0 +1,31 @@ +syntax = "proto3"; + +package envoy.config.core.v3; + +import "udpa/annotations/status.proto"; +import "validate/validate.proto"; + +option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/core/v3;corev3"; +option java_multiple_files = true; +option java_outer_classname = "ProxyProtocolProto"; +option java_package = "io.envoyproxy.envoy.config.core.v3"; + +message ProxyProtocolPassThroughTLVs { + PassTLVsMatchType match_type = 1; + enum PassTLVsMatchType { + INCLUDE_ALL = 0; + INCLUDE = 1; + } + + repeated uint32 tlv_type = 2; +} + +message ProxyProtocolConfig { + Version version = 1; + enum Version { + V1 = 0; + V2 = 1; + } + + ProxyProtocolPassThroughTLVs pass_through_tlvs = 2; +} diff --git a/third_party/schema-api/proto/envoy/config/core/v3/resolver.proto b/third_party/schema-api/proto/envoy/config/core/v3/resolver.proto new file mode 100644 index 0000000..84c82bc --- /dev/null +++ b/third_party/schema-api/proto/envoy/config/core/v3/resolver.proto @@ -0,0 +1,22 @@ +syntax = "proto3"; + +package envoy.config.core.v3; + +import "envoy/config/core/v3/address.proto"; +import "udpa/annotations/status.proto"; +import "validate/validate.proto"; + +option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/core/v3;corev3"; +option java_multiple_files = true; +option java_outer_classname = "ResolverProto"; +option java_package = "io.envoyproxy.envoy.config.core.v3"; + +message DnsResolverOptions { + bool use_tcp_for_dns_lookups = 1; + bool no_default_search_domain = 2; +} + +message DnsResolutionConfig { + repeated Address resolvers = 1; + DnsResolverOptions dns_resolver_options = 2; +} diff --git a/third_party/schema-api/proto/envoy/config/core/v3/socket_cmsg_headers.proto b/third_party/schema-api/proto/envoy/config/core/v3/socket_cmsg_headers.proto new file mode 100644 index 0000000..3d7ba09 --- /dev/null +++ b/third_party/schema-api/proto/envoy/config/core/v3/socket_cmsg_headers.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +package envoy.config.core.v3; + +import "google/protobuf/wrappers.proto"; +import "udpa/annotations/status.proto"; + +option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/core/v3;corev3"; +option java_multiple_files = true; +option java_outer_classname = "SocketCmsgHeadersProto"; +option java_package = "io.envoyproxy.envoy.config.core.v3"; + +message SocketCmsgHeaders { + google.protobuf.UInt32Value level = 1; + google.protobuf.UInt32Value type = 2; + uint32 expected_size = 3; +} diff --git a/third_party/schema-api/proto/envoy/config/core/v3/socket_option.proto b/third_party/schema-api/proto/envoy/config/core/v3/socket_option.proto new file mode 100644 index 0000000..4645193 --- /dev/null +++ b/third_party/schema-api/proto/envoy/config/core/v3/socket_option.proto @@ -0,0 +1,47 @@ +syntax = "proto3"; + +package envoy.config.core.v3; + +import "udpa/annotations/status.proto"; +import "udpa/annotations/versioning.proto"; +import "validate/validate.proto"; + +option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/core/v3;corev3"; +option java_multiple_files = true; +option java_outer_classname = "SocketOptionProto"; +option java_package = "io.envoyproxy.envoy.config.core.v3"; + +message SocketOption { + string description = 1; + int64 level = 2; + int64 name = 3; + + SocketState state = 6; + enum SocketState { + STATE_PREBIND = 0; + STATE_BOUND = 1; + STATE_LISTENING = 2; + } + + SocketType type = 7; + message SocketType { + Stream stream = 1; + message Stream { + + } + + Datagram datagram = 2; + message Datagram { + + } + } + + oneof value { + int64 int_value = 4; + bytes buf_value = 5; + } +} + +message SocketOptionsOverride { + repeated SocketOption socket_options = 1; +} diff --git a/third_party/schema-api/proto/envoy/config/core/v3/substitution_format_string.proto b/third_party/schema-api/proto/envoy/config/core/v3/substitution_format_string.proto new file mode 100644 index 0000000..efda32e --- /dev/null +++ b/third_party/schema-api/proto/envoy/config/core/v3/substitution_format_string.proto @@ -0,0 +1,32 @@ +syntax = "proto3"; + +package envoy.config.core.v3; + +import "envoy/config/core/v3/base.proto"; +import "envoy/config/core/v3/extension.proto"; +import "google/protobuf/struct.proto"; +import "envoy/annotations/deprecation.proto"; +import "udpa/annotations/status.proto"; +import "validate/validate.proto"; + +option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/core/v3;corev3"; +option java_multiple_files = true; +option java_outer_classname = "SubstitutionFormatStringProto"; +option java_package = "io.envoyproxy.envoy.config.core.v3"; + +message JsonFormatOptions { + bool sort_properties = 1; +} + +message SubstitutionFormatString { + bool omit_empty_values = 3; + string content_type = 4; + repeated TypedExtensionConfig formatters = 6; + JsonFormatOptions json_format_options = 7; + + oneof format { + string text_format = 1 [deprecated = true]; + google.protobuf.Struct json_format = 2; + DataSource text_format_source = 5; + } +} diff --git a/third_party/schema-api/proto/envoy/config/core/v3/udp_socket_config.proto b/third_party/schema-api/proto/envoy/config/core/v3/udp_socket_config.proto new file mode 100644 index 0000000..3610580 --- /dev/null +++ b/third_party/schema-api/proto/envoy/config/core/v3/udp_socket_config.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +package envoy.config.core.v3; + +import "google/protobuf/wrappers.proto"; +import "udpa/annotations/status.proto"; +import "validate/validate.proto"; + +option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/core/v3;corev3"; +option java_multiple_files = true; +option java_outer_classname = "UdpSocketConfigProto"; +option java_package = "io.envoyproxy.envoy.config.core.v3"; + +message UdpSocketConfig { + google.protobuf.UInt64Value max_rx_datagram_size = 1; + google.protobuf.BoolValue prefer_gro = 2; +} diff --git a/third_party/schema-api/proto/envoy/config/endpoint/v3/endpoint.proto b/third_party/schema-api/proto/envoy/config/endpoint/v3/endpoint.proto new file mode 100644 index 0000000..613d8e5 --- /dev/null +++ b/third_party/schema-api/proto/envoy/config/endpoint/v3/endpoint.proto @@ -0,0 +1,39 @@ +syntax = "proto3"; + +package envoy.config.endpoint.v3; + +import "envoy/config/endpoint/v3/endpoint_components.proto"; +import "envoy/type/v3/percent.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/wrappers.proto"; +import "udpa/annotations/status.proto"; +import "udpa/annotations/versioning.proto"; +import "validate/validate.proto"; + +option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/endpoint/v3;endpointv3"; +option java_multiple_files = true; +option java_outer_classname = "EndpointProto"; +option java_package = "io.envoyproxy.envoy.config.endpoint.v3"; + +message ClusterLoadAssignment { + string cluster_name = 1; + repeated LocalityLbEndpoints endpoints = 2; + map named_endpoints = 5; + + Policy policy = 4; + message Policy { + repeated DropOverload drop_overloads = 2; + message DropOverload { + string category = 1; + type.v3.FractionalPercent drop_percentage = 2; + } + + google.protobuf.UInt32Value overprovisioning_factor = 3; + google.protobuf.Duration endpoint_stale_after = 4; + bool weighted_priority_health = 6; + + reserved 1, 5; + + reserved "disable_overprovisioning"; + } +} diff --git a/third_party/schema-api/proto/envoy/config/endpoint/v3/endpoint_components.proto b/third_party/schema-api/proto/envoy/config/endpoint/v3/endpoint_components.proto new file mode 100644 index 0000000..0e7f67b --- /dev/null +++ b/third_party/schema-api/proto/envoy/config/endpoint/v3/endpoint_components.proto @@ -0,0 +1,70 @@ +syntax = "proto3"; + +package envoy.config.endpoint.v3; + +import "envoy/config/core/v3/address.proto"; +import "envoy/config/core/v3/base.proto"; +import "envoy/config/core/v3/config_source.proto"; +import "envoy/config/core/v3/health_check.proto"; +import "google/protobuf/wrappers.proto"; +import "udpa/annotations/status.proto"; +import "udpa/annotations/versioning.proto"; +import "validate/validate.proto"; + +option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/endpoint/v3;endpointv3"; +option java_multiple_files = true; +option java_outer_classname = "EndpointComponentsProto"; +option java_package = "io.envoyproxy.envoy.config.endpoint.v3"; + +message Endpoint { + core.v3.Address address = 1; + + HealthCheckConfig health_check_config = 2; + message HealthCheckConfig { + uint32 port_value = 1; + string hostname = 2; + core.v3.Address address = 3; + bool disable_active_health_check = 4; + } + + string hostname = 3; + + repeated AdditionalAddress additional_addresses = 4; + message AdditionalAddress { + core.v3.Address address = 1; + } +} + +message LbEndpoint { + core.v3.HealthStatus health_status = 2; + core.v3.Metadata metadata = 3; + google.protobuf.UInt32Value load_balancing_weight = 4; + + oneof host_identifier { + Endpoint endpoint = 1; + string endpoint_name = 5; + } +} + +message LedsClusterLocalityConfig { + core.v3.ConfigSource leds_config = 1; + string leds_collection_name = 2; +} + +message LocalityLbEndpoints { + core.v3.Locality locality = 1; + core.v3.Metadata metadata = 9; + repeated LbEndpoint lb_endpoints = 2; + google.protobuf.UInt32Value load_balancing_weight = 3; + uint32 priority = 5; + google.protobuf.UInt32Value proximity = 6; + + oneof lb_config { + LbEndpointList load_balancer_endpoints = 7; + LedsClusterLocalityConfig leds_cluster_locality_config = 8; + } + + message LbEndpointList { + repeated LbEndpoint lb_endpoints = 1; + } +} diff --git a/third_party/schema-api/proto/envoy/config/endpoint/v3/load_report.proto b/third_party/schema-api/proto/envoy/config/endpoint/v3/load_report.proto new file mode 100644 index 0000000..4bf5055 --- /dev/null +++ b/third_party/schema-api/proto/envoy/config/endpoint/v3/load_report.proto @@ -0,0 +1,70 @@ +syntax = "proto3"; + +package envoy.config.endpoint.v3; + +import "envoy/config/core/v3/address.proto"; +import "envoy/config/core/v3/base.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/struct.proto"; +import "xds/annotations/v3/status.proto"; +import "udpa/annotations/status.proto"; +import "udpa/annotations/versioning.proto"; +import "validate/validate.proto"; + +option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/endpoint/v3;endpointv3"; +option java_multiple_files = true; +option java_outer_classname = "LoadReportProto"; +option java_package = "io.envoyproxy.envoy.config.endpoint.v3"; + +message UpstreamLocalityStats { + core.v3.Locality locality = 1; + uint64 total_successful_requests = 2; + uint64 total_requests_in_progress = 3; + uint64 total_error_requests = 4; + uint64 total_issued_requests = 8; + uint64 total_active_connections = 9; + uint64 total_new_connections = 10; + uint64 total_fail_connections = 11; + UnnamedEndpointLoadMetricStats cpu_utilization = 12; + UnnamedEndpointLoadMetricStats mem_utilization = 13; + UnnamedEndpointLoadMetricStats application_utilization = 14; + repeated EndpointLoadMetricStats load_metric_stats = 5; + repeated UpstreamEndpointStats upstream_endpoint_stats = 7; + uint32 priority = 6; +} + +message UpstreamEndpointStats { + core.v3.Address address = 1; + google.protobuf.Struct metadata = 6; + uint64 total_successful_requests = 2; + uint64 total_requests_in_progress = 3; + uint64 total_error_requests = 4; + uint64 total_issued_requests = 7; + repeated EndpointLoadMetricStats load_metric_stats = 5; +} + +message EndpointLoadMetricStats { + string metric_name = 1; + uint64 num_requests_finished_with_metric = 2; + double total_metric_value = 3; +} + +message UnnamedEndpointLoadMetricStats { + uint64 num_requests_finished_with_metric = 1; + double total_metric_value = 2; +} + +message ClusterStats { + string cluster_name = 1; + string cluster_service_name = 6; + repeated UpstreamLocalityStats upstream_locality_stats = 2; + uint64 total_dropped_requests = 3; + + repeated DroppedRequests dropped_requests = 5; + message DroppedRequests { + string category = 1; + uint64 dropped_count = 2; + } + + google.protobuf.Duration load_report_interval = 4; +} diff --git a/third_party/schema-api/proto/envoy/config/listener/v3/api_listener.proto b/third_party/schema-api/proto/envoy/config/listener/v3/api_listener.proto new file mode 100644 index 0000000..fac3427 --- /dev/null +++ b/third_party/schema-api/proto/envoy/config/listener/v3/api_listener.proto @@ -0,0 +1,16 @@ +syntax = "proto3"; + +package envoy.config.listener.v3; + +import "google/protobuf/any.proto"; +import "udpa/annotations/status.proto"; +import "udpa/annotations/versioning.proto"; + +option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/listener/v3;listenerv3"; +option java_multiple_files = true; +option java_outer_classname = "ApiListenerProto"; +option java_package = "io.envoyproxy.envoy.config.listener.v3"; + +message ApiListener { + google.protobuf.Any api_listener = 1; +} diff --git a/third_party/schema-api/proto/envoy/config/listener/v3/listener.proto b/third_party/schema-api/proto/envoy/config/listener/v3/listener.proto new file mode 100644 index 0000000..f30ecb5 --- /dev/null +++ b/third_party/schema-api/proto/envoy/config/listener/v3/listener.proto @@ -0,0 +1,115 @@ +syntax = "proto3"; + +package envoy.config.listener.v3; + +import "envoy/config/accesslog/v3/accesslog.proto"; +import "envoy/config/core/v3/address.proto"; +import "envoy/config/core/v3/base.proto"; +import "envoy/config/core/v3/extension.proto"; +import "envoy/config/core/v3/socket_option.proto"; +import "envoy/config/listener/v3/api_listener.proto"; +import "envoy/config/listener/v3/listener_components.proto"; +import "envoy/config/listener/v3/udp_listener_config.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/wrappers.proto"; +import "xds/annotations/v3/status.proto"; +import "xds/core/v3/collection_entry.proto"; +import "xds/type/matcher/v3/matcher.proto"; +import "envoy/annotations/deprecation.proto"; +import "udpa/annotations/security.proto"; +import "udpa/annotations/status.proto"; +import "udpa/annotations/versioning.proto"; +import "validate/validate.proto"; + +option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/listener/v3;listenerv3"; +option java_multiple_files = true; +option java_outer_classname = "ListenerProto"; +option java_package = "io.envoyproxy.envoy.config.listener.v3"; + +message AdditionalAddress { + core.v3.Address address = 1; + core.v3.SocketOptionsOverride socket_options = 2; +} + +message ListenerCollection { + repeated xds.core.v3.CollectionEntry entries = 1; +} + +message Listener { + string name = 1; + core.v3.Address address = 2; + repeated AdditionalAddress additional_addresses = 33; + string stat_prefix = 28; + repeated FilterChain filter_chains = 3; + xds.type.matcher.v3.Matcher filter_chain_matcher = 32; + google.protobuf.BoolValue use_original_dst = 4; + FilterChain default_filter_chain = 25; + google.protobuf.UInt32Value per_connection_buffer_limit_bytes = 5; + core.v3.Metadata metadata = 6; + + DeprecatedV1 deprecated_v1 = 7 [deprecated = true]; + message DeprecatedV1 { + google.protobuf.BoolValue bind_to_port = 1; + } + + DrainType drain_type = 8; + enum DrainType { + DEFAULT = 0; + MODIFY_ONLY = 1; + } + + repeated ListenerFilter listener_filters = 9; + google.protobuf.Duration listener_filters_timeout = 15; + bool continue_on_listener_filters_timeout = 17; + google.protobuf.BoolValue transparent = 10; + google.protobuf.BoolValue freebind = 11; + repeated core.v3.SocketOption socket_options = 13; + google.protobuf.UInt32Value tcp_fast_open_queue_length = 12; + core.v3.TrafficDirection traffic_direction = 16; + UdpListenerConfig udp_listener_config = 18; + ApiListener api_listener = 19; + + ConnectionBalanceConfig connection_balance_config = 20; + message ConnectionBalanceConfig { + oneof balance_type { + ExactBalance exact_balance = 1; + core.v3.TypedExtensionConfig extend_balance = 2; + } + + message ExactBalance { + + } + } + + bool reuse_port = 21 [deprecated = true]; + google.protobuf.BoolValue enable_reuse_port = 29; + repeated accesslog.v3.AccessLog access_log = 22; + google.protobuf.UInt32Value tcp_backlog_size = 24; + google.protobuf.UInt32Value max_connections_to_accept_per_socket_event = 34; + google.protobuf.BoolValue bind_to_port = 26; + bool enable_mptcp = 30; + bool ignore_global_conn_limit = 31; + bool bypass_overload_manager = 35; + + oneof listener_specifier { + InternalListenerConfig internal_listener = 27; + } + + reserved 14, 23; + + message InternalListenerConfig { + + } +} + +message ListenerManager { + +} + +message ValidationListenerManager { + +} + +message ApiListenerManager { + +} diff --git a/third_party/schema-api/proto/envoy/config/listener/v3/listener_components.proto b/third_party/schema-api/proto/envoy/config/listener/v3/listener_components.proto new file mode 100644 index 0000000..481420c --- /dev/null +++ b/third_party/schema-api/proto/envoy/config/listener/v3/listener_components.proto @@ -0,0 +1,98 @@ +syntax = "proto3"; + +package envoy.config.listener.v3; + +import "envoy/config/core/v3/address.proto"; +import "envoy/config/core/v3/base.proto"; +import "envoy/config/core/v3/config_source.proto"; +import "envoy/type/v3/range.proto"; +import "google/protobuf/any.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/wrappers.proto"; +import "envoy/annotations/deprecation.proto"; +import "udpa/annotations/status.proto"; +import "udpa/annotations/versioning.proto"; +import "validate/validate.proto"; + +option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/listener/v3;listenerv3"; +option java_multiple_files = true; +option java_outer_classname = "ListenerComponentsProto"; +option java_package = "io.envoyproxy.envoy.config.listener.v3"; + +message Filter { + string name = 1; + + oneof config_type { + google.protobuf.Any typed_config = 4; + core.v3.ExtensionConfigSource config_discovery = 5; + } + + reserved 3, 2; + + reserved "config"; +} + +message FilterChainMatch { + google.protobuf.UInt32Value destination_port = 8; + repeated core.v3.CidrRange prefix_ranges = 3; + string address_suffix = 4; + google.protobuf.UInt32Value suffix_len = 5; + repeated core.v3.CidrRange direct_source_prefix_ranges = 13; + + ConnectionSourceType source_type = 12; + enum ConnectionSourceType { + ANY = 0; + SAME_IP_OR_LOOPBACK = 1; + EXTERNAL = 2; + } + + repeated core.v3.CidrRange source_prefix_ranges = 6; + repeated uint32 source_ports = 7; + repeated string server_names = 11; + string transport_protocol = 9; + repeated string application_protocols = 10; + + reserved 1; +} + +message FilterChain { + FilterChainMatch filter_chain_match = 1; + repeated Filter filters = 3; + google.protobuf.BoolValue use_proxy_proto = 4 [deprecated = true]; + core.v3.Metadata metadata = 5; + core.v3.TransportSocket transport_socket = 6; + google.protobuf.Duration transport_socket_connect_timeout = 9; + string name = 7; + + reserved 2, 8; + + reserved "tls_context", "on_demand_configuration"; +} + +message ListenerFilterChainMatchPredicate { + oneof rule { + MatchSet or_match = 1; + MatchSet and_match = 2; + ListenerFilterChainMatchPredicate not_match = 3; + bool any_match = 4; + type.v3.Int32Range destination_port_range = 5; + } + + message MatchSet { + repeated ListenerFilterChainMatchPredicate rules = 1; + } +} + +message ListenerFilter { + string name = 1; + ListenerFilterChainMatchPredicate filter_disabled = 4; + + oneof config_type { + google.protobuf.Any typed_config = 3; + core.v3.ExtensionConfigSource config_discovery = 5; + } + + reserved 2; + + reserved "config"; +} diff --git a/third_party/schema-api/proto/envoy/config/listener/v3/quic_config.proto b/third_party/schema-api/proto/envoy/config/listener/v3/quic_config.proto new file mode 100644 index 0000000..f54d1c4 --- /dev/null +++ b/third_party/schema-api/proto/envoy/config/listener/v3/quic_config.proto @@ -0,0 +1,35 @@ +syntax = "proto3"; + +package envoy.config.listener.v3; + +import "envoy/config/core/v3/base.proto"; +import "envoy/config/core/v3/extension.proto"; +import "envoy/config/core/v3/protocol.proto"; +import "envoy/config/core/v3/socket_cmsg_headers.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/wrappers.proto"; +import "xds/annotations/v3/status.proto"; +import "udpa/annotations/status.proto"; +import "udpa/annotations/versioning.proto"; +import "validate/validate.proto"; + +option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/listener/v3;listenerv3"; +option java_multiple_files = true; +option java_outer_classname = "QuicConfigProto"; +option java_package = "io.envoyproxy.envoy.config.listener.v3"; + +message QuicProtocolOptions { + core.v3.QuicProtocolOptions quic_protocol_options = 1; + google.protobuf.Duration idle_timeout = 2; + google.protobuf.Duration crypto_handshake_timeout = 3; + core.v3.RuntimeFeatureFlag enabled = 4; + google.protobuf.UInt32Value packets_to_read_to_connection_count_ratio = 5; + core.v3.TypedExtensionConfig crypto_stream_config = 6; + core.v3.TypedExtensionConfig proof_source_config = 7; + core.v3.TypedExtensionConfig connection_id_generator_config = 8; + core.v3.TypedExtensionConfig server_preferred_address_config = 9; + google.protobuf.BoolValue send_disable_active_migration = 10; + core.v3.TypedExtensionConfig connection_debug_visitor_config = 11; + repeated core.v3.SocketCmsgHeaders save_cmsg_config = 12; + bool reject_new_connections = 13; +} diff --git a/third_party/schema-api/proto/envoy/config/listener/v3/udp_listener_config.proto b/third_party/schema-api/proto/envoy/config/listener/v3/udp_listener_config.proto new file mode 100644 index 0000000..fcecbdf --- /dev/null +++ b/third_party/schema-api/proto/envoy/config/listener/v3/udp_listener_config.proto @@ -0,0 +1,28 @@ +syntax = "proto3"; + +package envoy.config.listener.v3; + +import "envoy/config/core/v3/extension.proto"; +import "envoy/config/core/v3/udp_socket_config.proto"; +import "envoy/config/listener/v3/quic_config.proto"; +import "udpa/annotations/status.proto"; +import "udpa/annotations/versioning.proto"; + +option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/listener/v3;listenerv3"; +option java_multiple_files = true; +option java_outer_classname = "UdpListenerConfigProto"; +option java_package = "io.envoyproxy.envoy.config.listener.v3"; + +message UdpListenerConfig { + core.v3.UdpSocketConfig downstream_socket_config = 5; + QuicProtocolOptions quic_options = 7; + core.v3.TypedExtensionConfig udp_packet_packet_writer_config = 8; + + reserved 1, 2, 3, 4, 6; + + reserved "config"; +} + +message ActiveRawUdpListenerConfig { + +} diff --git a/third_party/schema-api/proto/envoy/config/rbac/v3/rbac.proto b/third_party/schema-api/proto/envoy/config/rbac/v3/rbac.proto new file mode 100644 index 0000000..cae9190 --- /dev/null +++ b/third_party/schema-api/proto/envoy/config/rbac/v3/rbac.proto @@ -0,0 +1,125 @@ +syntax = "proto3"; + +package envoy.config.rbac.v3; + +import "envoy/config/core/v3/address.proto"; +import "envoy/config/core/v3/extension.proto"; +import "envoy/config/route/v3/route_components.proto"; +import "envoy/type/matcher/v3/filter_state.proto"; +import "envoy/type/matcher/v3/metadata.proto"; +import "envoy/type/matcher/v3/path.proto"; +import "envoy/type/matcher/v3/string.proto"; +import "envoy/type/v3/range.proto"; +import "google/api/expr/v1alpha1/checked.proto"; +import "google/api/expr/v1alpha1/syntax.proto"; +import "envoy/annotations/deprecation.proto"; +import "udpa/annotations/migrate.proto"; +import "udpa/annotations/status.proto"; +import "udpa/annotations/versioning.proto"; +import "validate/validate.proto"; + +option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/rbac/v3;rbacv3"; +option java_multiple_files = true; +option java_outer_classname = "RbacProto"; +option java_package = "io.envoyproxy.envoy.config.rbac.v3"; + +message RBAC { + Action action = 1; + enum Action { + ALLOW = 0; + DENY = 1; + LOG = 2; + } + + map policies = 2; + + AuditLoggingOptions audit_logging_options = 3; + message AuditLoggingOptions { + AuditCondition audit_condition = 1; + enum AuditCondition { + NONE = 0; + ON_DENY = 1; + ON_ALLOW = 2; + ON_DENY_AND_ALLOW = 3; + } + + repeated AuditLoggerConfig logger_configs = 2; + message AuditLoggerConfig { + core.v3.TypedExtensionConfig audit_logger = 1; + bool is_optional = 2; + } + } +} + +message Policy { + repeated Permission permissions = 1; + repeated Principal principals = 2; + google.api.expr.v1alpha1.Expr condition = 3; + google.api.expr.v1alpha1.CheckedExpr checked_condition = 4; +} + +message SourcedMetadata { + type.matcher.v3.MetadataMatcher metadata_matcher = 1; + MetadataSource metadata_source = 2; +} + +message Permission { + oneof rule { + Set and_rules = 1; + Set or_rules = 2; + bool any = 3; + route.v3.HeaderMatcher header = 4; + type.matcher.v3.PathMatcher url_path = 10; + core.v3.CidrRange destination_ip = 5; + uint32 destination_port = 6; + type.v3.Int32Range destination_port_range = 11; + type.matcher.v3.MetadataMatcher metadata = 7 [deprecated = true]; + Permission not_rule = 8; + type.matcher.v3.StringMatcher requested_server_name = 9; + core.v3.TypedExtensionConfig matcher = 12; + core.v3.TypedExtensionConfig uri_template = 13; + SourcedMetadata sourced_metadata = 14; + } + + message Set { + repeated Permission rules = 1; + } +} + +message Principal { + oneof identifier { + Set and_ids = 1; + Set or_ids = 2; + bool any = 3; + Authenticated authenticated = 4; + core.v3.CidrRange source_ip = 5 [deprecated = true]; + core.v3.CidrRange direct_remote_ip = 10; + core.v3.CidrRange remote_ip = 11; + route.v3.HeaderMatcher header = 6; + type.matcher.v3.PathMatcher url_path = 9; + type.matcher.v3.MetadataMatcher metadata = 7 [deprecated = true]; + type.matcher.v3.FilterStateMatcher filter_state = 12; + Principal not_id = 8; + SourcedMetadata sourced_metadata = 13; + } + + message Set { + repeated Principal ids = 1; + } + + message Authenticated { + type.matcher.v3.StringMatcher principal_name = 2; + + reserved 1; + } +} + +message Action { + string name = 1; + RBAC.Action action = 2; +} + +enum MetadataSource { + DYNAMIC = 0; + ROUTE = 1; +} diff --git a/third_party/schema-api/proto/envoy/config/route/v3/route.proto b/third_party/schema-api/proto/envoy/config/route/v3/route.proto new file mode 100644 index 0000000..58c8ca3 --- /dev/null +++ b/third_party/schema-api/proto/envoy/config/route/v3/route.proto @@ -0,0 +1,41 @@ +syntax = "proto3"; + +package envoy.config.route.v3; + +import "envoy/config/core/v3/base.proto"; +import "envoy/config/core/v3/config_source.proto"; +import "envoy/config/route/v3/route_components.proto"; +import "google/protobuf/any.proto"; +import "google/protobuf/wrappers.proto"; +import "udpa/annotations/status.proto"; +import "udpa/annotations/versioning.proto"; +import "validate/validate.proto"; + +option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/route/v3;routev3"; +option java_multiple_files = true; +option java_outer_classname = "RouteProto"; +option java_package = "io.envoyproxy.envoy.config.route.v3"; + +message RouteConfiguration { + string name = 1; + repeated VirtualHost virtual_hosts = 2; + Vhds vhds = 9; + repeated string internal_only_headers = 3; + repeated core.v3.HeaderValueOption response_headers_to_add = 4; + repeated string response_headers_to_remove = 5; + repeated core.v3.HeaderValueOption request_headers_to_add = 6; + repeated string request_headers_to_remove = 8; + bool most_specific_header_mutations_wins = 10; + google.protobuf.BoolValue validate_clusters = 7; + google.protobuf.UInt32Value max_direct_response_body_size_bytes = 11; + repeated ClusterSpecifierPlugin cluster_specifier_plugins = 12; + repeated RouteAction.RequestMirrorPolicy request_mirror_policies = 13; + bool ignore_port_in_host_matching = 14; + bool ignore_path_parameters_in_path_matching = 15; + map typed_per_filter_config = 16; + core.v3.Metadata metadata = 17; +} + +message Vhds { + core.v3.ConfigSource config_source = 1; +} diff --git a/third_party/schema-api/proto/envoy/config/route/v3/route_components.proto b/third_party/schema-api/proto/envoy/config/route/v3/route_components.proto new file mode 100644 index 0000000..ebb1383 --- /dev/null +++ b/third_party/schema-api/proto/envoy/config/route/v3/route_components.proto @@ -0,0 +1,607 @@ +syntax = "proto3"; + +package envoy.config.route.v3; + +import "envoy/config/core/v3/base.proto"; +import "envoy/config/core/v3/extension.proto"; +import "envoy/config/core/v3/proxy_protocol.proto"; +import "envoy/type/matcher/v3/metadata.proto"; +import "envoy/type/matcher/v3/regex.proto"; +import "envoy/type/matcher/v3/string.proto"; +import "envoy/type/metadata/v3/metadata.proto"; +import "envoy/type/tracing/v3/custom_tag.proto"; +import "envoy/type/v3/percent.proto"; +import "envoy/type/v3/range.proto"; +import "google/protobuf/any.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/wrappers.proto"; +import "xds/type/matcher/v3/matcher.proto"; +import "envoy/annotations/deprecation.proto"; +import "udpa/annotations/migrate.proto"; +import "udpa/annotations/status.proto"; +import "udpa/annotations/versioning.proto"; +import "validate/validate.proto"; + +option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/route/v3;routev3"; +option java_multiple_files = true; +option java_outer_classname = "RouteComponentsProto"; +option java_package = "io.envoyproxy.envoy.config.route.v3"; + +message VirtualHost { + string name = 1; + repeated string domains = 2; + repeated Route routes = 3; + xds.type.matcher.v3.Matcher matcher = 21; + + TlsRequirementType require_tls = 4; + enum TlsRequirementType { + NONE = 0; + EXTERNAL_ONLY = 1; + ALL = 2; + } + + repeated VirtualCluster virtual_clusters = 5; + repeated RateLimit rate_limits = 6; + repeated core.v3.HeaderValueOption request_headers_to_add = 7; + repeated string request_headers_to_remove = 13; + repeated core.v3.HeaderValueOption response_headers_to_add = 10; + repeated string response_headers_to_remove = 11; + CorsPolicy cors = 8 [deprecated = true]; + map typed_per_filter_config = 15; + bool include_request_attempt_count = 14; + bool include_attempt_count_in_response = 19; + RetryPolicy retry_policy = 16; + google.protobuf.Any retry_policy_typed_config = 20; + HedgePolicy hedge_policy = 17; + bool include_is_timeout_retry_header = 23; + google.protobuf.UInt32Value per_request_buffer_limit_bytes = 18; + repeated RouteAction.RequestMirrorPolicy request_mirror_policies = 22; + core.v3.Metadata metadata = 24; + + reserved 9, 12; + + reserved "per_filter_config"; +} + +message FilterAction { + google.protobuf.Any action = 1; +} + +message RouteList { + repeated Route routes = 1; +} + +message Route { + string name = 14; + RouteMatch match = 1; + core.v3.Metadata metadata = 4; + Decorator decorator = 5; + map typed_per_filter_config = 13; + repeated core.v3.HeaderValueOption request_headers_to_add = 9; + repeated string request_headers_to_remove = 12; + repeated core.v3.HeaderValueOption response_headers_to_add = 10; + repeated string response_headers_to_remove = 11; + Tracing tracing = 15; + google.protobuf.UInt32Value per_request_buffer_limit_bytes = 16; + string stat_prefix = 19; + + oneof action { + RouteAction route = 2; + RedirectAction redirect = 3; + DirectResponseAction direct_response = 7; + FilterAction filter_action = 17; + NonForwardingAction non_forwarding_action = 18; + } + + reserved 6, 8; + + reserved "per_filter_config"; +} + +message WeightedCluster { + repeated ClusterWeight clusters = 1; + message ClusterWeight { + string name = 1; + string cluster_header = 12; + google.protobuf.UInt32Value weight = 2; + core.v3.Metadata metadata_match = 3; + repeated core.v3.HeaderValueOption request_headers_to_add = 4; + repeated string request_headers_to_remove = 9; + repeated core.v3.HeaderValueOption response_headers_to_add = 5; + repeated string response_headers_to_remove = 6; + map typed_per_filter_config = 10; + + oneof host_rewrite_specifier { + string host_rewrite_literal = 11; + } + + reserved 7, 8; + + reserved "per_filter_config"; + } + + google.protobuf.UInt32Value total_weight = 3 [deprecated = true]; + string runtime_key_prefix = 2; + + oneof random_value_specifier { + string header_name = 4; + } +} + +message ClusterSpecifierPlugin { + core.v3.TypedExtensionConfig extension = 1; + bool is_optional = 2; +} + +message RouteMatch { + google.protobuf.BoolValue case_sensitive = 4; + core.v3.RuntimeFractionalPercent runtime_fraction = 9; + repeated HeaderMatcher headers = 6; + repeated QueryParameterMatcher query_parameters = 7; + + GrpcRouteMatchOptions grpc = 8; + message GrpcRouteMatchOptions { + + } + + TlsContextMatchOptions tls_context = 11; + message TlsContextMatchOptions { + google.protobuf.BoolValue presented = 1; + google.protobuf.BoolValue validated = 2; + } + + repeated type.matcher.v3.MetadataMatcher dynamic_metadata = 13; + + oneof path_specifier { + string prefix = 1; + string path = 2; + type.matcher.v3.RegexMatcher safe_regex = 10; + ConnectMatcher connect_matcher = 12; + string path_separated_prefix = 14; + core.v3.TypedExtensionConfig path_match_policy = 15; + } + + reserved 5, 3; + + reserved "regex"; + + message ConnectMatcher { + + } +} + +message CorsPolicy { + repeated type.matcher.v3.StringMatcher allow_origin_string_match = 11; + string allow_methods = 2; + string allow_headers = 3; + string expose_headers = 4; + string max_age = 5; + google.protobuf.BoolValue allow_credentials = 6; + core.v3.RuntimeFractionalPercent shadow_enabled = 10; + google.protobuf.BoolValue allow_private_network_access = 12; + google.protobuf.BoolValue forward_not_matching_preflights = 13; + + oneof enabled_specifier { + core.v3.RuntimeFractionalPercent filter_enabled = 9; + } + + reserved 1, 8, 7; + + reserved "allow_origin", "allow_origin_regex", "enabled"; +} + +message RouteAction { + ClusterNotFoundResponseCode cluster_not_found_response_code = 20; + enum ClusterNotFoundResponseCode { + SERVICE_UNAVAILABLE = 0; + NOT_FOUND = 1; + INTERNAL_SERVER_ERROR = 2; + } + + core.v3.Metadata metadata_match = 4; + string prefix_rewrite = 5; + type.matcher.v3.RegexMatchAndSubstitute regex_rewrite = 32; + core.v3.TypedExtensionConfig path_rewrite_policy = 41; + bool append_x_forwarded_host = 38; + google.protobuf.Duration timeout = 8; + google.protobuf.Duration idle_timeout = 24; + core.v3.TypedExtensionConfig early_data_policy = 40; + RetryPolicy retry_policy = 9; + google.protobuf.Any retry_policy_typed_config = 33; + + repeated RequestMirrorPolicy request_mirror_policies = 30; + message RequestMirrorPolicy { + string cluster = 1; + string cluster_header = 5; + core.v3.RuntimeFractionalPercent runtime_fraction = 3; + google.protobuf.BoolValue trace_sampled = 4; + bool disable_shadow_host_suffix_append = 6; + + reserved 2; + + reserved "runtime_key"; + } + + core.v3.RoutingPriority priority = 11; + repeated RateLimit rate_limits = 13; + google.protobuf.BoolValue include_vh_rate_limits = 14 [deprecated = true]; + + repeated HashPolicy hash_policy = 15; + message HashPolicy { + bool terminal = 4; + + oneof policy_specifier { + Header header = 1; + Cookie cookie = 2; + ConnectionProperties connection_properties = 3; + QueryParameter query_parameter = 5; + FilterState filter_state = 6; + } + + message Header { + string header_name = 1; + type.matcher.v3.RegexMatchAndSubstitute regex_rewrite = 2; + } + + message CookieAttribute { + string name = 1; + string value = 2; + } + + message Cookie { + string name = 1; + google.protobuf.Duration ttl = 2; + string path = 3; + repeated CookieAttribute attributes = 4; + } + + message ConnectionProperties { + bool source_ip = 1; + } + + message QueryParameter { + string name = 1; + } + + message FilterState { + string key = 1; + } + } + + CorsPolicy cors = 17 [deprecated = true]; + google.protobuf.Duration max_grpc_timeout = 23 [deprecated = true]; + google.protobuf.Duration grpc_timeout_offset = 28 [deprecated = true]; + + repeated UpgradeConfig upgrade_configs = 25; + message UpgradeConfig { + string upgrade_type = 1; + google.protobuf.BoolValue enabled = 2; + + ConnectConfig connect_config = 3; + message ConnectConfig { + core.v3.ProxyProtocolConfig proxy_protocol_config = 1; + bool allow_post = 2; + } + } + + InternalRedirectPolicy internal_redirect_policy = 34; + + InternalRedirectAction internal_redirect_action = 26 [deprecated = true]; + enum InternalRedirectAction { + option deprecated = true; + PASS_THROUGH_INTERNAL_REDIRECT = 0; + HANDLE_INTERNAL_REDIRECT = 1; + } + + google.protobuf.UInt32Value max_internal_redirects = 31 [deprecated = true]; + HedgePolicy hedge_policy = 27; + + MaxStreamDuration max_stream_duration = 36; + message MaxStreamDuration { + google.protobuf.Duration max_stream_duration = 1; + google.protobuf.Duration grpc_timeout_header_max = 2; + google.protobuf.Duration grpc_timeout_header_offset = 3; + } + + oneof cluster_specifier { + string cluster = 1; + string cluster_header = 2; + WeightedCluster weighted_clusters = 3; + string cluster_specifier_plugin = 37; + ClusterSpecifierPlugin inline_cluster_specifier_plugin = 39; + } + + oneof host_rewrite_specifier { + string host_rewrite_literal = 6; + google.protobuf.BoolValue auto_host_rewrite = 7; + string host_rewrite_header = 29; + type.matcher.v3.RegexMatchAndSubstitute host_rewrite_path_regex = 35; + } + + reserved 12, 18, 19, 16, 22, 21, 10; + + reserved "request_mirror_policy"; +} + +message RetryPolicy { + string retry_on = 1; + google.protobuf.UInt32Value num_retries = 2; + google.protobuf.Duration per_try_timeout = 3; + google.protobuf.Duration per_try_idle_timeout = 13; + + RetryPriority retry_priority = 4; + message RetryPriority { + string name = 1; + + oneof config_type { + google.protobuf.Any typed_config = 3; + } + + reserved 2; + + reserved "config"; + } + + repeated RetryHostPredicate retry_host_predicate = 5; + message RetryHostPredicate { + string name = 1; + + oneof config_type { + google.protobuf.Any typed_config = 3; + } + + reserved 2; + + reserved "config"; + } + + repeated core.v3.TypedExtensionConfig retry_options_predicates = 12; + int64 host_selection_retry_max_attempts = 6; + repeated uint32 retriable_status_codes = 7; + + RetryBackOff retry_back_off = 8; + message RetryBackOff { + google.protobuf.Duration base_interval = 1; + google.protobuf.Duration max_interval = 2; + } + + RateLimitedRetryBackOff rate_limited_retry_back_off = 11; + message RateLimitedRetryBackOff { + repeated ResetHeader reset_headers = 1; + google.protobuf.Duration max_interval = 2; + } + + repeated HeaderMatcher retriable_headers = 9; + repeated HeaderMatcher retriable_request_headers = 10; + + message ResetHeader { + string name = 1; + ResetHeaderFormat format = 2; + } + + enum ResetHeaderFormat { + SECONDS = 0; + UNIX_TIMESTAMP = 1; + } +} + +message HedgePolicy { + google.protobuf.UInt32Value initial_requests = 1; + type.v3.FractionalPercent additional_request_chance = 2; + bool hedge_on_per_try_timeout = 3; +} + +message RedirectAction { + string host_redirect = 1; + uint32 port_redirect = 8; + + RedirectResponseCode response_code = 3; + enum RedirectResponseCode { + MOVED_PERMANENTLY = 0; + FOUND = 1; + SEE_OTHER = 2; + TEMPORARY_REDIRECT = 3; + PERMANENT_REDIRECT = 4; + } + + bool strip_query = 6; + + oneof scheme_rewrite_specifier { + bool https_redirect = 4; + string scheme_redirect = 7; + } + + oneof path_rewrite_specifier { + string path_redirect = 2; + string prefix_rewrite = 5; + type.matcher.v3.RegexMatchAndSubstitute regex_rewrite = 9; + } +} + +message DirectResponseAction { + uint32 status = 1; + core.v3.DataSource body = 2; +} + +message NonForwardingAction { + +} + +message Decorator { + string operation = 1; + google.protobuf.BoolValue propagate = 2; +} + +message Tracing { + type.v3.FractionalPercent client_sampling = 1; + type.v3.FractionalPercent random_sampling = 2; + type.v3.FractionalPercent overall_sampling = 3; + repeated type.tracing.v3.CustomTag custom_tags = 4; +} + +message VirtualCluster { + repeated HeaderMatcher headers = 4; + string name = 2; + + reserved 1, 3; + + reserved "pattern", "method"; +} + +message RateLimit { + google.protobuf.UInt32Value stage = 1; + string disable_key = 2; + + repeated Action actions = 3; + message Action { + oneof action_specifier { + SourceCluster source_cluster = 1; + DestinationCluster destination_cluster = 2; + RequestHeaders request_headers = 3; + QueryParameters query_parameters = 12; + RemoteAddress remote_address = 4; + GenericKey generic_key = 5; + HeaderValueMatch header_value_match = 6; + DynamicMetaData dynamic_metadata = 7 [deprecated = true]; + MetaData metadata = 8; + core.v3.TypedExtensionConfig extension = 9; + MaskedRemoteAddress masked_remote_address = 10; + QueryParameterValueMatch query_parameter_value_match = 11; + } + + message SourceCluster { + + } + + message DestinationCluster { + + } + + message RequestHeaders { + string header_name = 1; + string descriptor_key = 2; + bool skip_if_absent = 3; + } + + message QueryParameters { + string query_parameter_name = 1; + string descriptor_key = 2; + bool skip_if_absent = 3; + } + + message RemoteAddress { + + } + + message MaskedRemoteAddress { + google.protobuf.UInt32Value v4_prefix_mask_len = 1; + google.protobuf.UInt32Value v6_prefix_mask_len = 2; + } + + message GenericKey { + string descriptor_value = 1; + string descriptor_key = 2; + } + + message HeaderValueMatch { + string descriptor_key = 4; + string descriptor_value = 1; + google.protobuf.BoolValue expect_match = 2; + repeated HeaderMatcher headers = 3; + } + + message DynamicMetaData { + string descriptor_key = 1; + type.metadata.v3.MetadataKey metadata_key = 2; + string default_value = 3; + } + + message MetaData { + string descriptor_key = 1; + type.metadata.v3.MetadataKey metadata_key = 2; + string default_value = 3; + + Source source = 4; + enum Source { + DYNAMIC = 0; + ROUTE_ENTRY = 1; + } + + bool skip_if_absent = 5; + } + + message QueryParameterValueMatch { + string descriptor_key = 4; + string descriptor_value = 1; + google.protobuf.BoolValue expect_match = 2; + repeated QueryParameterMatcher query_parameters = 3; + } + } + + Override limit = 4; + message Override { + oneof override_specifier { + DynamicMetadata dynamic_metadata = 1; + } + + message DynamicMetadata { + type.metadata.v3.MetadataKey metadata_key = 1; + } + } + + HitsAddend hits_addend = 5; + message HitsAddend { + google.protobuf.UInt64Value number = 1; + string format = 2; + } + + bool apply_on_stream_done = 6; +} + +message HeaderMatcher { + string name = 1; + bool invert_match = 8; + bool treat_missing_header_as_empty = 14; + + oneof header_match_specifier { + string exact_match = 4 [deprecated = true]; + type.matcher.v3.RegexMatcher safe_regex_match = 11 [deprecated = true]; + type.v3.Int64Range range_match = 6; + bool present_match = 7; + string prefix_match = 9 [deprecated = true]; + string suffix_match = 10 [deprecated = true]; + string contains_match = 12 [deprecated = true]; + type.matcher.v3.StringMatcher string_match = 13; + } + + reserved 2, 3, 5; + + reserved "regex_match"; +} + +message QueryParameterMatcher { + string name = 1; + + oneof query_parameter_match_specifier { + type.matcher.v3.StringMatcher string_match = 5; + bool present_match = 6; + } + + reserved 3, 4; + + reserved "value", "regex"; +} + +message InternalRedirectPolicy { + google.protobuf.UInt32Value max_internal_redirects = 1; + repeated uint32 redirect_response_codes = 2; + repeated core.v3.TypedExtensionConfig predicates = 3; + bool allow_cross_scheme_redirect = 4; + repeated string response_headers_to_copy = 5; +} + +message FilterConfig { + google.protobuf.Any config = 1; + bool is_optional = 2; + bool disabled = 3; +} diff --git a/third_party/schema-api/proto/envoy/config/route/v3/scoped_route.proto b/third_party/schema-api/proto/envoy/config/route/v3/scoped_route.proto new file mode 100644 index 0000000..473257f --- /dev/null +++ b/third_party/schema-api/proto/envoy/config/route/v3/scoped_route.proto @@ -0,0 +1,31 @@ +syntax = "proto3"; + +package envoy.config.route.v3; + +import "envoy/config/route/v3/route.proto"; +import "udpa/annotations/migrate.proto"; +import "udpa/annotations/status.proto"; +import "udpa/annotations/versioning.proto"; +import "validate/validate.proto"; + +option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/route/v3;routev3"; +option java_multiple_files = true; +option java_outer_classname = "ScopedRouteProto"; +option java_package = "io.envoyproxy.envoy.config.route.v3"; + +message ScopedRouteConfiguration { + bool on_demand = 4; + string name = 1; + string route_configuration_name = 2; + RouteConfiguration route_configuration = 5; + + Key key = 3; + message Key { + repeated Fragment fragments = 1; + message Fragment { + oneof type { + string string_key = 1; + } + } + } +} diff --git a/third_party/schema-api/proto/envoy/config/trace/v3/http_tracer.proto b/third_party/schema-api/proto/envoy/config/trace/v3/http_tracer.proto new file mode 100644 index 0000000..368469a --- /dev/null +++ b/third_party/schema-api/proto/envoy/config/trace/v3/http_tracer.proto @@ -0,0 +1,28 @@ +syntax = "proto3"; + +package envoy.config.trace.v3; + +import "google/protobuf/any.proto"; +import "udpa/annotations/status.proto"; +import "udpa/annotations/versioning.proto"; +import "validate/validate.proto"; + +option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/trace/v3;tracev3"; +option java_multiple_files = true; +option java_outer_classname = "HttpTracerProto"; +option java_package = "io.envoyproxy.envoy.config.trace.v3"; + +message Tracing { + Http http = 1; + message Http { + string name = 1; + + oneof config_type { + google.protobuf.Any typed_config = 3; + } + + reserved 2; + + reserved "config"; + } +} diff --git a/third_party/schema-api/proto/envoy/data/accesslog/v3/accesslog.proto b/third_party/schema-api/proto/envoy/data/accesslog/v3/accesslog.proto new file mode 100644 index 0000000..204f15f --- /dev/null +++ b/third_party/schema-api/proto/envoy/data/accesslog/v3/accesslog.proto @@ -0,0 +1,199 @@ +syntax = "proto3"; + +package envoy.data.accesslog.v3; + +import "envoy/config/core/v3/address.proto"; +import "envoy/config/core/v3/base.proto"; +import "google/protobuf/any.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/timestamp.proto"; +import "google/protobuf/wrappers.proto"; +import "envoy/annotations/deprecation.proto"; +import "udpa/annotations/status.proto"; +import "udpa/annotations/versioning.proto"; +import "validate/validate.proto"; + +option go_package = "github.com/envoyproxy/go-control-plane/envoy/data/accesslog/v3;accesslogv3"; +option java_multiple_files = true; +option java_outer_classname = "AccesslogProto"; +option java_package = "io.envoyproxy.envoy.data.accesslog.v3"; + +message TCPAccessLogEntry { + AccessLogCommon common_properties = 1; + ConnectionProperties connection_properties = 2; +} + +message HTTPAccessLogEntry { + AccessLogCommon common_properties = 1; + + HTTPVersion protocol_version = 2; + enum HTTPVersion { + PROTOCOL_UNSPECIFIED = 0; + HTTP10 = 1; + HTTP11 = 2; + HTTP2 = 3; + HTTP3 = 4; + } + + HTTPRequestProperties request = 3; + HTTPResponseProperties response = 4; +} + +message ConnectionProperties { + uint64 received_bytes = 1; + uint64 sent_bytes = 2; +} + +message AccessLogCommon { + double sample_rate = 1; + config.core.v3.Address downstream_remote_address = 2; + config.core.v3.Address downstream_local_address = 3; + TLSProperties tls_properties = 4; + google.protobuf.Timestamp start_time = 5; + google.protobuf.Duration time_to_last_rx_byte = 6; + google.protobuf.Duration time_to_first_upstream_tx_byte = 7; + google.protobuf.Duration time_to_last_upstream_tx_byte = 8; + google.protobuf.Duration time_to_first_upstream_rx_byte = 9; + google.protobuf.Duration time_to_last_upstream_rx_byte = 10; + google.protobuf.Duration time_to_first_downstream_tx_byte = 11; + google.protobuf.Duration time_to_last_downstream_tx_byte = 12; + config.core.v3.Address upstream_remote_address = 13; + config.core.v3.Address upstream_local_address = 14; + string upstream_cluster = 15; + ResponseFlags response_flags = 16; + config.core.v3.Metadata metadata = 17; + string upstream_transport_failure_reason = 18; + string route_name = 19; + config.core.v3.Address downstream_direct_remote_address = 20; + map filter_state_objects = 21; + map custom_tags = 22; + google.protobuf.Duration duration = 23; + uint32 upstream_request_attempt_count = 24; + string connection_termination_details = 25; + string stream_id = 26; + bool intermediate_log_entry = 27 [deprecated = true]; + string downstream_transport_failure_reason = 28; + uint64 downstream_wire_bytes_sent = 29; + uint64 downstream_wire_bytes_received = 30; + uint64 upstream_wire_bytes_sent = 31; + uint64 upstream_wire_bytes_received = 32; + AccessLogType access_log_type = 33; +} + +message ResponseFlags { + bool failed_local_healthcheck = 1; + bool no_healthy_upstream = 2; + bool upstream_request_timeout = 3; + bool local_reset = 4; + bool upstream_remote_reset = 5; + bool upstream_connection_failure = 6; + bool upstream_connection_termination = 7; + bool upstream_overflow = 8; + bool no_route_found = 9; + bool delay_injected = 10; + bool fault_injected = 11; + bool rate_limited = 12; + + Unauthorized unauthorized_details = 13; + message Unauthorized { + Reason reason = 1; + enum Reason { + REASON_UNSPECIFIED = 0; + EXTERNAL_SERVICE = 1; + } + } + + bool rate_limit_service_error = 14; + bool downstream_connection_termination = 15; + bool upstream_retry_limit_exceeded = 16; + bool stream_idle_timeout = 17; + bool invalid_envoy_request_headers = 18; + bool downstream_protocol_error = 19; + bool upstream_max_stream_duration_reached = 20; + bool response_from_cache_filter = 21; + bool no_filter_config_found = 22; + bool duration_timeout = 23; + bool upstream_protocol_error = 24; + bool no_cluster_found = 25; + bool overload_manager = 26; + bool dns_resolution_failure = 27; + bool downstream_remote_reset = 28; +} + +message TLSProperties { + TLSVersion tls_version = 1; + enum TLSVersion { + VERSION_UNSPECIFIED = 0; + TLSv1 = 1; + TLSv1_1 = 2; + TLSv1_2 = 3; + TLSv1_3 = 4; + } + + google.protobuf.UInt32Value tls_cipher_suite = 2; + string tls_sni_hostname = 3; + + CertificateProperties local_certificate_properties = 4; + message CertificateProperties { + repeated SubjectAltName subject_alt_name = 1; + message SubjectAltName { + oneof san { + string uri = 1; + string dns = 2; + } + } + + string subject = 2; + string issuer = 3; + } + + CertificateProperties peer_certificate_properties = 5; + string tls_session_id = 6; + string ja3_fingerprint = 7; +} + +message HTTPRequestProperties { + config.core.v3.RequestMethod request_method = 1; + string scheme = 2; + string authority = 3; + google.protobuf.UInt32Value port = 4; + string path = 5; + string user_agent = 6; + string referer = 7; + string forwarded_for = 8; + string request_id = 9; + string original_path = 10; + uint64 request_headers_bytes = 11; + uint64 request_body_bytes = 12; + map request_headers = 13; + uint64 upstream_header_bytes_sent = 14; + uint64 downstream_header_bytes_received = 15; +} + +message HTTPResponseProperties { + google.protobuf.UInt32Value response_code = 1; + uint64 response_headers_bytes = 2; + uint64 response_body_bytes = 3; + map response_headers = 4; + map response_trailers = 5; + string response_code_details = 6; + uint64 upstream_header_bytes_received = 7; + uint64 downstream_header_bytes_sent = 8; +} + +enum AccessLogType { + NotSet = 0; + TcpUpstreamConnected = 1; + TcpPeriodic = 2; + TcpConnectionEnd = 3; + DownstreamStart = 4; + DownstreamPeriodic = 5; + DownstreamEnd = 6; + UpstreamPoolReady = 7; + UpstreamPeriodic = 8; + UpstreamEnd = 9; + DownstreamTunnelSuccessfullyEstablished = 10; + UdpTunnelUpstreamConnected = 11; + UdpPeriodic = 12; + UdpSessionEnd = 13; +} diff --git a/third_party/schema-api/proto/envoy/extensions/clusters/aggregate/v3/cluster.proto b/third_party/schema-api/proto/envoy/extensions/clusters/aggregate/v3/cluster.proto new file mode 100644 index 0000000..7ac2046 --- /dev/null +++ b/third_party/schema-api/proto/envoy/extensions/clusters/aggregate/v3/cluster.proto @@ -0,0 +1,16 @@ +syntax = "proto3"; + +package envoy.extensions.clusters.aggregate.v3; + +import "udpa/annotations/status.proto"; +import "udpa/annotations/versioning.proto"; +import "validate/validate.proto"; + +option go_package = "github.com/envoyproxy/go-control-plane/envoy/extensions/clusters/aggregate/v3;aggregatev3"; +option java_multiple_files = true; +option java_outer_classname = "ClusterProto"; +option java_package = "io.envoyproxy.envoy.extensions.clusters.aggregate.v3"; + +message ClusterConfig { + repeated string clusters = 1; +} diff --git a/third_party/schema-api/proto/envoy/extensions/filters/common/fault/v3/fault.proto b/third_party/schema-api/proto/envoy/extensions/filters/common/fault/v3/fault.proto new file mode 100644 index 0000000..fafbaea --- /dev/null +++ b/third_party/schema-api/proto/envoy/extensions/filters/common/fault/v3/fault.proto @@ -0,0 +1,52 @@ +syntax = "proto3"; + +package envoy.extensions.filters.common.fault.v3; + +import "envoy/type/v3/percent.proto"; +import "google/protobuf/duration.proto"; +import "udpa/annotations/status.proto"; +import "udpa/annotations/versioning.proto"; +import "validate/validate.proto"; + +option go_package = "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/common/fault/v3;faultv3"; +option java_multiple_files = true; +option java_outer_classname = "FaultProto"; +option java_package = "io.envoyproxy.envoy.extensions.filters.common.fault.v3"; + +message FaultDelay { + type.v3.FractionalPercent percentage = 4; + + oneof fault_delay_secifier { + google.protobuf.Duration fixed_delay = 3; + HeaderDelay header_delay = 5; + } + + reserved 2, 1; + + reserved "type"; + + message HeaderDelay { + + } + + enum FaultDelayType { + FIXED = 0; + } +} + +message FaultRateLimit { + type.v3.FractionalPercent percentage = 2; + + oneof limit_type { + FixedLimit fixed_limit = 1; + HeaderLimit header_limit = 3; + } + + message FixedLimit { + uint64 limit_kbps = 1; + } + + message HeaderLimit { + + } +} diff --git a/third_party/schema-api/proto/envoy/extensions/filters/http/fault/v3/fault.proto b/third_party/schema-api/proto/envoy/extensions/filters/http/fault/v3/fault.proto new file mode 100644 index 0000000..8172c31 --- /dev/null +++ b/third_party/schema-api/proto/envoy/extensions/filters/http/fault/v3/fault.proto @@ -0,0 +1,52 @@ +syntax = "proto3"; + +package envoy.extensions.filters.http.fault.v3; + +import "envoy/config/route/v3/route_components.proto"; +import "envoy/extensions/filters/common/fault/v3/fault.proto"; +import "envoy/type/v3/percent.proto"; +import "google/protobuf/struct.proto"; +import "google/protobuf/wrappers.proto"; +import "udpa/annotations/status.proto"; +import "udpa/annotations/versioning.proto"; +import "validate/validate.proto"; + +option go_package = "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/fault/v3;faultv3"; +option java_multiple_files = true; +option java_outer_classname = "FaultProto"; +option java_package = "io.envoyproxy.envoy.extensions.filters.http.fault.v3"; + +message FaultAbort { + type.v3.FractionalPercent percentage = 3; + + oneof error_type { + uint32 http_status = 2; + uint32 grpc_status = 5; + HeaderAbort header_abort = 4; + } + + reserved 1; + + message HeaderAbort { + + } +} + +message HTTPFault { + common.fault.v3.FaultDelay delay = 1; + FaultAbort abort = 2; + string upstream_cluster = 3; + repeated config.route.v3.HeaderMatcher headers = 4; + repeated string downstream_nodes = 5; + google.protobuf.UInt32Value max_active_faults = 6; + common.fault.v3.FaultRateLimit response_rate_limit = 7; + string delay_percent_runtime = 8; + string abort_percent_runtime = 9; + string delay_duration_runtime = 10; + string abort_http_status_runtime = 11; + string max_active_faults_runtime = 12; + string response_rate_limit_percent_runtime = 13; + string abort_grpc_status_runtime = 14; + bool disable_downstream_cluster_stats = 15; + google.protobuf.Struct filter_metadata = 16; +} diff --git a/third_party/schema-api/proto/envoy/extensions/filters/http/gcp_authn/v3/gcp_authn.proto b/third_party/schema-api/proto/envoy/extensions/filters/http/gcp_authn/v3/gcp_authn.proto new file mode 100644 index 0000000..4006f60 --- /dev/null +++ b/third_party/schema-api/proto/envoy/extensions/filters/http/gcp_authn/v3/gcp_authn.proto @@ -0,0 +1,38 @@ +syntax = "proto3"; + +package envoy.extensions.filters.http.gcp_authn.v3; + +import "envoy/config/core/v3/base.proto"; +import "envoy/config/core/v3/http_uri.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/wrappers.proto"; +import "envoy/annotations/deprecation.proto"; +import "udpa/annotations/status.proto"; +import "validate/validate.proto"; + +option go_package = "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/gcp_authn/v3;gcp_authnv3"; +option java_multiple_files = true; +option java_outer_classname = "GcpAuthnProto"; +option java_package = "io.envoyproxy.envoy.extensions.filters.http.gcp_authn.v3"; + +message GcpAuthnFilterConfig { + config.core.v3.HttpUri http_uri = 1 [deprecated = true]; + config.core.v3.RetryPolicy retry_policy = 2; + TokenCacheConfig cache_config = 3; + TokenHeader token_header = 4; + string cluster = 5; + google.protobuf.Duration timeout = 6; +} + +message Audience { + string url = 1; +} + +message TokenCacheConfig { + google.protobuf.UInt64Value cache_size = 1; +} + +message TokenHeader { + string name = 1; + string value_prefix = 2; +} diff --git a/third_party/schema-api/proto/envoy/extensions/filters/http/rbac/v3/rbac.proto b/third_party/schema-api/proto/envoy/extensions/filters/http/rbac/v3/rbac.proto new file mode 100644 index 0000000..d452e95 --- /dev/null +++ b/third_party/schema-api/proto/envoy/extensions/filters/http/rbac/v3/rbac.proto @@ -0,0 +1,31 @@ +syntax = "proto3"; + +package envoy.extensions.filters.http.rbac.v3; + +import "envoy/config/rbac/v3/rbac.proto"; +import "xds/annotations/v3/status.proto"; +import "xds/type/matcher/v3/matcher.proto"; +import "udpa/annotations/migrate.proto"; +import "udpa/annotations/status.proto"; +import "udpa/annotations/versioning.proto"; + +option go_package = "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/rbac/v3;rbacv3"; +option java_multiple_files = true; +option java_outer_classname = "RbacProto"; +option java_package = "io.envoyproxy.envoy.extensions.filters.http.rbac.v3"; + +message RBAC { + config.rbac.v3.RBAC rules = 1; + string rules_stat_prefix = 6; + xds.type.matcher.v3.Matcher matcher = 4; + config.rbac.v3.RBAC shadow_rules = 2; + xds.type.matcher.v3.Matcher shadow_matcher = 5; + string shadow_rules_stat_prefix = 3; + bool track_per_rule_stats = 7; +} + +message RBACPerRoute { + RBAC rbac = 2; + + reserved 1; +} diff --git a/third_party/schema-api/proto/envoy/extensions/filters/http/router/v3/router.proto b/third_party/schema-api/proto/envoy/extensions/filters/http/router/v3/router.proto new file mode 100644 index 0000000..8b0cae0 --- /dev/null +++ b/third_party/schema-api/proto/envoy/extensions/filters/http/router/v3/router.proto @@ -0,0 +1,35 @@ +syntax = "proto3"; + +package envoy.extensions.filters.http.router.v3; + +import "envoy/config/accesslog/v3/accesslog.proto"; +import "envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/wrappers.proto"; +import "envoy/annotations/deprecation.proto"; +import "udpa/annotations/status.proto"; +import "udpa/annotations/versioning.proto"; +import "validate/validate.proto"; + +option go_package = "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/router/v3;routerv3"; +option java_multiple_files = true; +option java_outer_classname = "RouterProto"; +option java_package = "io.envoyproxy.envoy.extensions.filters.http.router.v3"; + +message Router { + google.protobuf.BoolValue dynamic_stats = 1; + bool start_child_span = 2 [deprecated = true]; + repeated config.accesslog.v3.AccessLog upstream_log = 3; + + UpstreamAccessLogOptions upstream_log_options = 9; + message UpstreamAccessLogOptions { + bool flush_upstream_log_on_upstream_stream = 1; + google.protobuf.Duration upstream_log_flush_interval = 2; + } + + bool suppress_envoy_headers = 4; + repeated string strict_check_headers = 5; + bool respect_expected_rq_timeout = 6; + bool suppress_grpc_request_failure_code_stats = 7; + repeated network.http_connection_manager.v3.HttpFilter upstream_http_filters = 8; +} diff --git a/third_party/schema-api/proto/envoy/extensions/filters/http/stateful_session/v3/stateful_session.proto b/third_party/schema-api/proto/envoy/extensions/filters/http/stateful_session/v3/stateful_session.proto new file mode 100644 index 0000000..42da37f --- /dev/null +++ b/third_party/schema-api/proto/envoy/extensions/filters/http/stateful_session/v3/stateful_session.proto @@ -0,0 +1,24 @@ +syntax = "proto3"; + +package envoy.extensions.filters.http.stateful_session.v3; + +import "envoy/config/core/v3/extension.proto"; +import "udpa/annotations/status.proto"; +import "validate/validate.proto"; + +option go_package = "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/stateful_session/v3;stateful_sessionv3"; +option java_multiple_files = true; +option java_outer_classname = "StatefulSessionProto"; +option java_package = "io.envoyproxy.envoy.extensions.filters.http.stateful_session.v3"; + +message StatefulSession { + config.core.v3.TypedExtensionConfig session_state = 1; + bool strict = 2; +} + +message StatefulSessionPerRoute { + oneof override { + bool disabled = 1; + StatefulSession stateful_session = 2; + } +} diff --git a/third_party/schema-api/proto/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.proto b/third_party/schema-api/proto/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.proto new file mode 100644 index 0000000..73bdd66 --- /dev/null +++ b/third_party/schema-api/proto/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.proto @@ -0,0 +1,288 @@ +syntax = "proto3"; + +package envoy.extensions.filters.network.http_connection_manager.v3; + +import "envoy/config/accesslog/v3/accesslog.proto"; +import "envoy/config/core/v3/address.proto"; +import "envoy/config/core/v3/base.proto"; +import "envoy/config/core/v3/config_source.proto"; +import "envoy/config/core/v3/extension.proto"; +import "envoy/config/core/v3/protocol.proto"; +import "envoy/config/core/v3/substitution_format_string.proto"; +import "envoy/config/route/v3/route.proto"; +import "envoy/config/route/v3/scoped_route.proto"; +import "envoy/config/trace/v3/http_tracer.proto"; +import "envoy/type/http/v3/path_transformation.proto"; +import "envoy/type/tracing/v3/custom_tag.proto"; +import "envoy/type/v3/percent.proto"; +import "google/protobuf/any.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/wrappers.proto"; +import "envoy/annotations/deprecation.proto"; +import "udpa/annotations/migrate.proto"; +import "udpa/annotations/security.proto"; +import "udpa/annotations/status.proto"; +import "udpa/annotations/versioning.proto"; +import "validate/validate.proto"; + +option go_package = "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/http_connection_manager/v3;http_connection_managerv3"; +option java_multiple_files = true; +option java_outer_classname = "HttpConnectionManagerProto"; +option java_package = "io.envoyproxy.envoy.extensions.filters.network.http_connection_manager.v3"; + +message HttpConnectionManager { + CodecType codec_type = 1; + enum CodecType { + AUTO = 0; + HTTP1 = 1; + HTTP2 = 2; + HTTP3 = 3; + } + + string stat_prefix = 2; + repeated HttpFilter http_filters = 5; + google.protobuf.BoolValue add_user_agent = 6; + + Tracing tracing = 7; + message Tracing { + type.v3.Percent client_sampling = 3; + type.v3.Percent random_sampling = 4; + type.v3.Percent overall_sampling = 5; + bool verbose = 6; + google.protobuf.UInt32Value max_path_tag_length = 7; + repeated type.tracing.v3.CustomTag custom_tags = 8; + config.trace.v3.Tracing.Http provider = 9; + google.protobuf.BoolValue spawn_upstream_span = 10; + + reserved 1, 2; + + reserved "operation_name", "request_headers_for_tags"; + + enum OperationName { + INGRESS = 0; + EGRESS = 1; + } + } + + config.core.v3.HttpProtocolOptions common_http_protocol_options = 35; + bool http1_safe_max_connection_duration = 58; + config.core.v3.Http1ProtocolOptions http_protocol_options = 8; + config.core.v3.Http2ProtocolOptions http2_protocol_options = 9; + config.core.v3.Http3ProtocolOptions http3_protocol_options = 44; + string server_name = 10; + + ServerHeaderTransformation server_header_transformation = 34; + enum ServerHeaderTransformation { + OVERWRITE = 0; + APPEND_IF_ABSENT = 1; + PASS_THROUGH = 2; + } + + config.core.v3.SchemeHeaderTransformation scheme_header_transformation = 48; + google.protobuf.UInt32Value max_request_headers_kb = 29; + google.protobuf.Duration stream_idle_timeout = 24; + google.protobuf.Duration request_timeout = 28; + google.protobuf.Duration request_headers_timeout = 41; + google.protobuf.Duration drain_timeout = 12; + google.protobuf.Duration delayed_close_timeout = 26; + repeated config.accesslog.v3.AccessLog access_log = 13; + google.protobuf.Duration access_log_flush_interval = 54 [deprecated = true]; + bool flush_access_log_on_new_request = 55 [deprecated = true]; + + HcmAccessLogOptions access_log_options = 56; + message HcmAccessLogOptions { + google.protobuf.Duration access_log_flush_interval = 1; + bool flush_access_log_on_new_request = 2; + bool flush_log_on_tunnel_successfully_established = 3; + } + + google.protobuf.BoolValue use_remote_address = 14; + uint32 xff_num_trusted_hops = 19; + repeated config.core.v3.TypedExtensionConfig original_ip_detection_extensions = 46; + repeated config.core.v3.TypedExtensionConfig early_header_mutation_extensions = 52; + + InternalAddressConfig internal_address_config = 25; + message InternalAddressConfig { + bool unix_sockets = 1; + repeated config.core.v3.CidrRange cidr_ranges = 2; + } + + bool skip_xff_append = 21; + string via = 22; + google.protobuf.BoolValue generate_request_id = 15; + bool preserve_external_request_id = 32; + bool always_set_request_id_in_response = 37; + + ForwardClientCertDetails forward_client_cert_details = 16; + enum ForwardClientCertDetails { + SANITIZE = 0; + FORWARD_ONLY = 1; + APPEND_FORWARD = 2; + SANITIZE_SET = 3; + ALWAYS_FORWARD_ONLY = 4; + } + + SetCurrentClientCertDetails set_current_client_cert_details = 17; + message SetCurrentClientCertDetails { + google.protobuf.BoolValue subject = 1; + bool cert = 3; + bool chain = 6; + bool dns = 4; + bool uri = 5; + + reserved 2; + } + + bool proxy_100_continue = 18; + bool represent_ipv4_remote_address_as_ipv4_mapped_ipv6 = 20; + + repeated UpgradeConfig upgrade_configs = 23; + message UpgradeConfig { + string upgrade_type = 1; + repeated HttpFilter filters = 2; + google.protobuf.BoolValue enabled = 3; + } + + google.protobuf.BoolValue normalize_path = 30; + bool merge_slashes = 33; + + PathWithEscapedSlashesAction path_with_escaped_slashes_action = 45; + enum PathWithEscapedSlashesAction { + IMPLEMENTATION_SPECIFIC_DEFAULT = 0; + KEEP_UNCHANGED = 1; + REJECT_REQUEST = 2; + UNESCAPE_AND_REDIRECT = 3; + UNESCAPE_AND_FORWARD = 4; + } + + RequestIDExtension request_id_extension = 36; + LocalReplyConfig local_reply_config = 38; + bool strip_matching_host_port = 39; + google.protobuf.BoolValue stream_error_on_invalid_http_message = 40; + + PathNormalizationOptions path_normalization_options = 43; + message PathNormalizationOptions { + type.http.v3.PathTransformation forwarding_transformation = 1; + type.http.v3.PathTransformation http_filter_transformation = 2; + } + + bool strip_trailing_host_dot = 47; + + ProxyStatusConfig proxy_status_config = 49; + message ProxyStatusConfig { + bool remove_details = 1; + bool remove_connection_termination_details = 2; + bool remove_response_flags = 3; + bool set_recommended_response_code = 4; + + oneof proxy_name { + bool use_node_id = 5; + string literal_proxy_name = 6; + } + } + + config.core.v3.TypedExtensionConfig typed_header_validation_config = 50; + bool append_x_forwarded_port = 51; + bool append_local_overload = 57; + google.protobuf.BoolValue add_proxy_protocol_connection_state = 53; + + oneof route_specifier { + Rds rds = 3; + config.route.v3.RouteConfiguration route_config = 4; + ScopedRoutes scoped_routes = 31; + } + + oneof strip_port_mode { + bool strip_any_host_port = 42; + } + + reserved 27, 11; + + reserved "idle_timeout"; +} + +message LocalReplyConfig { + repeated ResponseMapper mappers = 1; + config.core.v3.SubstitutionFormatString body_format = 2; +} + +message ResponseMapper { + config.accesslog.v3.AccessLogFilter filter = 1; + google.protobuf.UInt32Value status_code = 2; + config.core.v3.DataSource body = 3; + config.core.v3.SubstitutionFormatString body_format_override = 4; + repeated config.core.v3.HeaderValueOption headers_to_add = 5; +} + +message Rds { + config.core.v3.ConfigSource config_source = 1; + string route_config_name = 2; +} + +message ScopedRouteConfigurationsList { + repeated config.route.v3.ScopedRouteConfiguration scoped_route_configurations = 1; +} + +message ScopedRoutes { + string name = 1; + + ScopeKeyBuilder scope_key_builder = 2; + message ScopeKeyBuilder { + repeated FragmentBuilder fragments = 1; + message FragmentBuilder { + oneof type { + HeaderValueExtractor header_value_extractor = 1; + } + + message HeaderValueExtractor { + string name = 1; + string element_separator = 2; + + oneof extract_type { + uint32 index = 3; + KvElement element = 4; + } + + message KvElement { + string separator = 1; + string key = 2; + } + } + } + } + + config.core.v3.ConfigSource rds_config_source = 3; + + oneof config_specifier { + ScopedRouteConfigurationsList scoped_route_configurations_list = 4; + ScopedRds scoped_rds = 5; + } +} + +message ScopedRds { + config.core.v3.ConfigSource scoped_rds_config_source = 1; + string srds_resources_locator = 2; +} + +message HttpFilter { + string name = 1; + bool is_optional = 6; + bool disabled = 7; + + oneof config_type { + google.protobuf.Any typed_config = 4; + config.core.v3.ExtensionConfigSource config_discovery = 5; + } + + reserved 3, 2; + + reserved "config"; +} + +message RequestIDExtension { + google.protobuf.Any typed_config = 1; +} + +message EnvoyMobileHttpConnectionManager { + HttpConnectionManager config = 1; +} diff --git a/third_party/schema-api/proto/envoy/extensions/http/stateful_session/cookie/v3/cookie.proto b/third_party/schema-api/proto/envoy/extensions/http/stateful_session/cookie/v3/cookie.proto new file mode 100644 index 0000000..9fcf169 --- /dev/null +++ b/third_party/schema-api/proto/envoy/extensions/http/stateful_session/cookie/v3/cookie.proto @@ -0,0 +1,16 @@ +syntax = "proto3"; + +package envoy.extensions.http.stateful_session.cookie.v3; + +import "envoy/type/http/v3/cookie.proto"; +import "udpa/annotations/status.proto"; +import "validate/validate.proto"; + +option go_package = "github.com/envoyproxy/go-control-plane/envoy/extensions/http/stateful_session/cookie/v3;cookiev3"; +option java_multiple_files = true; +option java_outer_classname = "CookieProto"; +option java_package = "io.envoyproxy.envoy.extensions.http.stateful_session.cookie.v3"; + +message CookieBasedSessionState { + type.http.v3.Cookie cookie = 1; +} diff --git a/third_party/schema-api/proto/envoy/extensions/transport_sockets/http_11_proxy/v3/upstream_http_11_connect.proto b/third_party/schema-api/proto/envoy/extensions/transport_sockets/http_11_proxy/v3/upstream_http_11_connect.proto new file mode 100644 index 0000000..4c4f8d4 --- /dev/null +++ b/third_party/schema-api/proto/envoy/extensions/transport_sockets/http_11_proxy/v3/upstream_http_11_connect.proto @@ -0,0 +1,15 @@ +syntax = "proto3"; + +package envoy.extensions.transport_sockets.http_11_proxy.v3; + +import "envoy/config/core/v3/base.proto"; +import "udpa/annotations/status.proto"; + +option go_package = "github.com/envoyproxy/go-control-plane/envoy/extensions/transport_sockets/http_11_proxy/v3;http_11_proxyv3"; +option java_multiple_files = true; +option java_outer_classname = "UpstreamHttp11ConnectProto"; +option java_package = "io.envoyproxy.envoy.extensions.transport_sockets.http_11_proxy.v3"; + +message Http11ProxyUpstreamTransport { + config.core.v3.TransportSocket transport_socket = 1; +} diff --git a/third_party/schema-api/proto/envoy/extensions/transport_sockets/tls/v3/common.proto b/third_party/schema-api/proto/envoy/extensions/transport_sockets/tls/v3/common.proto new file mode 100644 index 0000000..bc1cdf9 --- /dev/null +++ b/third_party/schema-api/proto/envoy/extensions/transport_sockets/tls/v3/common.proto @@ -0,0 +1,117 @@ +syntax = "proto3"; + +package envoy.extensions.transport_sockets.tls.v3; + +import "envoy/config/core/v3/base.proto"; +import "envoy/config/core/v3/extension.proto"; +import "envoy/type/matcher/v3/string.proto"; +import "google/protobuf/any.proto"; +import "google/protobuf/wrappers.proto"; +import "envoy/annotations/deprecation.proto"; +import "udpa/annotations/migrate.proto"; +import "udpa/annotations/sensitive.proto"; +import "udpa/annotations/status.proto"; +import "udpa/annotations/versioning.proto"; +import "validate/validate.proto"; + +option go_package = "github.com/envoyproxy/go-control-plane/envoy/extensions/transport_sockets/tls/v3;tlsv3"; +option java_multiple_files = true; +option java_outer_classname = "CommonProto"; +option java_package = "io.envoyproxy.envoy.extensions.transport_sockets.tls.v3"; + +message TlsParameters { + TlsProtocol tls_minimum_protocol_version = 1; + enum TlsProtocol { + TLS_AUTO = 0; + TLSv1_0 = 1; + TLSv1_1 = 2; + TLSv1_2 = 3; + TLSv1_3 = 4; + } + + TlsProtocol tls_maximum_protocol_version = 2; + repeated string cipher_suites = 3; + repeated string ecdh_curves = 4; + repeated string signature_algorithms = 5; +} + +message PrivateKeyProvider { + string provider_name = 1; + bool fallback = 4; + + oneof config_type { + google.protobuf.Any typed_config = 3; + } + + reserved 2; + + reserved "config"; +} + +message TlsCertificate { + config.core.v3.DataSource certificate_chain = 1; + config.core.v3.DataSource private_key = 2; + config.core.v3.DataSource pkcs12 = 8; + config.core.v3.WatchedDirectory watched_directory = 7; + PrivateKeyProvider private_key_provider = 6; + config.core.v3.DataSource password = 3; + config.core.v3.DataSource ocsp_staple = 4; + repeated config.core.v3.DataSource signed_certificate_timestamp = 5; +} + +message TlsSessionTicketKeys { + repeated config.core.v3.DataSource keys = 1; +} + +message CertificateProviderPluginInstance { + string instance_name = 1; + string certificate_name = 2; +} + +message SubjectAltNameMatcher { + SanType san_type = 1; + enum SanType { + SAN_TYPE_UNSPECIFIED = 0; + EMAIL = 1; + DNS = 2; + URI = 3; + IP_ADDRESS = 4; + OTHER_NAME = 5; + } + + type.matcher.v3.StringMatcher matcher = 2; + string oid = 3; +} + +message CertificateValidationContext { + config.core.v3.DataSource trusted_ca = 1; + CertificateProviderPluginInstance ca_certificate_provider_instance = 13; + + SystemRootCerts system_root_certs = 17; + message SystemRootCerts { + + } + + config.core.v3.WatchedDirectory watched_directory = 11; + repeated string verify_certificate_spki = 3; + repeated string verify_certificate_hash = 2; + repeated SubjectAltNameMatcher match_typed_subject_alt_names = 15; + repeated type.matcher.v3.StringMatcher match_subject_alt_names = 9 [deprecated = true]; + google.protobuf.BoolValue require_signed_certificate_timestamp = 6; + config.core.v3.DataSource crl = 7; + bool allow_expired_certificate = 8; + + TrustChainVerification trust_chain_verification = 10; + enum TrustChainVerification { + VERIFY_TRUST_CHAIN = 0; + ACCEPT_UNTRUSTED = 1; + } + + config.core.v3.TypedExtensionConfig custom_validator_config = 12; + bool only_verify_leaf_cert_crl = 14; + google.protobuf.UInt32Value max_verify_depth = 16; + + reserved 4, 5; + + reserved "verify_subject_alt_name"; +} diff --git a/third_party/schema-api/proto/envoy/extensions/transport_sockets/tls/v3/secret.proto b/third_party/schema-api/proto/envoy/extensions/transport_sockets/tls/v3/secret.proto new file mode 100644 index 0000000..11a2b6a --- /dev/null +++ b/third_party/schema-api/proto/envoy/extensions/transport_sockets/tls/v3/secret.proto @@ -0,0 +1,36 @@ +syntax = "proto3"; + +package envoy.extensions.transport_sockets.tls.v3; + +import "envoy/config/core/v3/base.proto"; +import "envoy/config/core/v3/config_source.proto"; +import "envoy/extensions/transport_sockets/tls/v3/common.proto"; +import "udpa/annotations/sensitive.proto"; +import "udpa/annotations/status.proto"; +import "udpa/annotations/versioning.proto"; +import "validate/validate.proto"; + +option go_package = "github.com/envoyproxy/go-control-plane/envoy/extensions/transport_sockets/tls/v3;tlsv3"; +option java_multiple_files = true; +option java_outer_classname = "SecretProto"; +option java_package = "io.envoyproxy.envoy.extensions.transport_sockets.tls.v3"; + +message GenericSecret { + config.core.v3.DataSource secret = 1; +} + +message SdsSecretConfig { + string name = 1; + config.core.v3.ConfigSource sds_config = 2; +} + +message Secret { + string name = 1; + + oneof type { + TlsCertificate tls_certificate = 2; + TlsSessionTicketKeys session_ticket_keys = 3; + CertificateValidationContext validation_context = 4; + GenericSecret generic_secret = 5; + } +} diff --git a/third_party/schema-api/proto/envoy/extensions/transport_sockets/tls/v3/tls.proto b/third_party/schema-api/proto/envoy/extensions/transport_sockets/tls/v3/tls.proto new file mode 100644 index 0000000..0f03143 --- /dev/null +++ b/third_party/schema-api/proto/envoy/extensions/transport_sockets/tls/v3/tls.proto @@ -0,0 +1,103 @@ +syntax = "proto3"; + +package envoy.extensions.transport_sockets.tls.v3; + +import "envoy/config/core/v3/address.proto"; +import "envoy/config/core/v3/extension.proto"; +import "envoy/extensions/transport_sockets/tls/v3/common.proto"; +import "envoy/extensions/transport_sockets/tls/v3/secret.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/wrappers.proto"; +import "envoy/annotations/deprecation.proto"; +import "udpa/annotations/status.proto"; +import "udpa/annotations/versioning.proto"; +import "validate/validate.proto"; + +option go_package = "github.com/envoyproxy/go-control-plane/envoy/extensions/transport_sockets/tls/v3;tlsv3"; +option java_multiple_files = true; +option java_outer_classname = "TlsProto"; +option java_package = "io.envoyproxy.envoy.extensions.transport_sockets.tls.v3"; + +message UpstreamTlsContext { + CommonTlsContext common_tls_context = 1; + string sni = 2; + bool auto_host_sni = 6; + bool auto_sni_san_validation = 7; + bool allow_renegotiation = 3; + google.protobuf.UInt32Value max_session_keys = 4; + google.protobuf.BoolValue enforce_rsa_key_usage = 5; +} + +message DownstreamTlsContext { + CommonTlsContext common_tls_context = 1; + google.protobuf.BoolValue require_client_certificate = 2; + google.protobuf.BoolValue require_sni = 3; + bool disable_stateful_session_resumption = 10; + google.protobuf.Duration session_timeout = 6; + + OcspStaplePolicy ocsp_staple_policy = 8; + enum OcspStaplePolicy { + LENIENT_STAPLING = 0; + STRICT_STAPLING = 1; + MUST_STAPLE = 2; + } + + google.protobuf.BoolValue full_scan_certs_on_sni_mismatch = 9; + bool prefer_client_ciphers = 11; + + oneof session_ticket_keys_type { + TlsSessionTicketKeys session_ticket_keys = 4; + SdsSecretConfig session_ticket_keys_sds_secret_config = 5; + bool disable_stateless_session_resumption = 7; + } +} + +message TlsKeyLog { + string path = 1; + repeated config.core.v3.CidrRange local_address_range = 2; + repeated config.core.v3.CidrRange remote_address_range = 3; +} + +message CommonTlsContext { + TlsParameters tls_params = 1; + repeated TlsCertificate tls_certificates = 2; + repeated SdsSecretConfig tls_certificate_sds_secret_configs = 6; + CertificateProviderPluginInstance tls_certificate_provider_instance = 14; + config.core.v3.TypedExtensionConfig custom_tls_certificate_selector = 16; + + CertificateProvider tls_certificate_certificate_provider = 9 [deprecated = true]; + message CertificateProvider { + string name = 1; + + oneof config { + config.core.v3.TypedExtensionConfig typed_config = 2; + } + } + + CertificateProviderInstance tls_certificate_certificate_provider_instance = 11 [deprecated = true]; + message CertificateProviderInstance { + string instance_name = 1; + string certificate_name = 2; + } + + repeated string alpn_protocols = 4; + config.core.v3.TypedExtensionConfig custom_handshaker = 13; + TlsKeyLog key_log = 15; + + oneof validation_context_type { + CertificateValidationContext validation_context = 3; + SdsSecretConfig validation_context_sds_secret_config = 7; + CombinedCertificateValidationContext combined_validation_context = 8; + CertificateProvider validation_context_certificate_provider = 10 [deprecated = true]; + CertificateProviderInstance validation_context_certificate_provider_instance = 12 [deprecated = true]; + } + + reserved 5; + + message CombinedCertificateValidationContext { + CertificateValidationContext default_validation_context = 1; + SdsSecretConfig validation_context_sds_secret_config = 2; + CertificateProvider validation_context_certificate_provider = 3 [deprecated = true]; + CertificateProviderInstance validation_context_certificate_provider_instance = 4 [deprecated = true]; + } +} diff --git a/third_party/schema-api/proto/envoy/extensions/upstreams/http/v3/http_protocol_options.proto b/third_party/schema-api/proto/envoy/extensions/upstreams/http/v3/http_protocol_options.proto new file mode 100644 index 0000000..1c4f748 --- /dev/null +++ b/third_party/schema-api/proto/envoy/extensions/upstreams/http/v3/http_protocol_options.proto @@ -0,0 +1,48 @@ +syntax = "proto3"; + +package envoy.extensions.upstreams.http.v3; + +import "envoy/config/core/v3/extension.proto"; +import "envoy/config/core/v3/protocol.proto"; +import "envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.proto"; +import "udpa/annotations/status.proto"; +import "validate/validate.proto"; + +option go_package = "github.com/envoyproxy/go-control-plane/envoy/extensions/upstreams/http/v3;httpv3"; +option java_multiple_files = true; +option java_outer_classname = "HttpProtocolOptionsProto"; +option java_package = "io.envoyproxy.envoy.extensions.upstreams.http.v3"; + +message HttpProtocolOptions { + config.core.v3.HttpProtocolOptions common_http_protocol_options = 1; + config.core.v3.UpstreamHttpProtocolOptions upstream_http_protocol_options = 2; + repeated filters.network.http_connection_manager.v3.HttpFilter http_filters = 6; + config.core.v3.TypedExtensionConfig header_validation_config = 7; + + oneof upstream_protocol_options { + ExplicitHttpConfig explicit_http_config = 3; + UseDownstreamHttpConfig use_downstream_protocol_config = 4; + AutoHttpConfig auto_config = 5; + } + + message ExplicitHttpConfig { + oneof protocol_config { + config.core.v3.Http1ProtocolOptions http_protocol_options = 1; + config.core.v3.Http2ProtocolOptions http2_protocol_options = 2; + config.core.v3.Http3ProtocolOptions http3_protocol_options = 3; + } + } + + message UseDownstreamHttpConfig { + config.core.v3.Http1ProtocolOptions http_protocol_options = 1; + config.core.v3.Http2ProtocolOptions http2_protocol_options = 2; + config.core.v3.Http3ProtocolOptions http3_protocol_options = 3; + } + + message AutoHttpConfig { + config.core.v3.Http1ProtocolOptions http_protocol_options = 1; + config.core.v3.Http2ProtocolOptions http2_protocol_options = 2; + config.core.v3.Http3ProtocolOptions http3_protocol_options = 3; + config.core.v3.AlternateProtocolsCacheOptions alternate_protocols_cache_options = 4; + } +} diff --git a/third_party/schema-api/proto/envoy/service/discovery/v3/discovery.proto b/third_party/schema-api/proto/envoy/service/discovery/v3/discovery.proto new file mode 100644 index 0000000..23dc3cd --- /dev/null +++ b/third_party/schema-api/proto/envoy/service/discovery/v3/discovery.proto @@ -0,0 +1,116 @@ +syntax = "proto3"; + +package envoy.service.discovery.v3; + +import "envoy/config/core/v3/base.proto"; +import "google/protobuf/any.proto"; +import "google/protobuf/duration.proto"; +import "google/rpc/status.proto"; +import "udpa/annotations/status.proto"; +import "udpa/annotations/versioning.proto"; +import "validate/validate.proto"; + +option go_package = "github.com/envoyproxy/go-control-plane/envoy/service/discovery/v3;discoveryv3"; +option java_multiple_files = true; +option java_outer_classname = "DiscoveryProto"; +option java_package = "io.envoyproxy.envoy.service.discovery.v3"; + +message ResourceLocator { + string name = 1; + map dynamic_parameters = 2; +} + +message ResourceName { + string name = 1; + DynamicParameterConstraints dynamic_parameter_constraints = 2; +} + +message ResourceError { + ResourceName resource_name = 1; + google.rpc.Status error_detail = 2; +} + +message DiscoveryRequest { + string version_info = 1; + config.core.v3.Node node = 2; + repeated string resource_names = 3; + repeated ResourceLocator resource_locators = 7; + string type_url = 4; + string response_nonce = 5; + google.rpc.Status error_detail = 6; +} + +message DiscoveryResponse { + string version_info = 1; + repeated google.protobuf.Any resources = 2; + bool canary = 3; + string type_url = 4; + string nonce = 5; + config.core.v3.ControlPlane control_plane = 6; + repeated ResourceError resource_errors = 7; +} + +message DeltaDiscoveryRequest { + config.core.v3.Node node = 1; + string type_url = 2; + repeated string resource_names_subscribe = 3; + repeated string resource_names_unsubscribe = 4; + repeated ResourceLocator resource_locators_subscribe = 8; + repeated ResourceLocator resource_locators_unsubscribe = 9; + map initial_resource_versions = 5; + string response_nonce = 6; + google.rpc.Status error_detail = 7; +} + +message DeltaDiscoveryResponse { + string system_version_info = 1; + repeated Resource resources = 2; + string type_url = 4; + repeated string removed_resources = 6; + repeated ResourceName removed_resource_names = 8; + string nonce = 5; + config.core.v3.ControlPlane control_plane = 7; + repeated ResourceError resource_errors = 9; +} + +message DynamicParameterConstraints { + oneof type { + SingleConstraint constraint = 1; + ConstraintList or_constraints = 2; + ConstraintList and_constraints = 3; + DynamicParameterConstraints not_constraints = 4; + } + + message SingleConstraint { + string key = 1; + + oneof constraint_type { + string value = 2; + Exists exists = 3; + } + + message Exists { + + } + } + + message ConstraintList { + repeated DynamicParameterConstraints constraints = 1; + } +} + +message Resource { + string name = 3; + ResourceName resource_name = 8; + repeated string aliases = 4; + string version = 1; + google.protobuf.Any resource = 2; + google.protobuf.Duration ttl = 6; + + CacheControl cache_control = 7; + message CacheControl { + bool do_not_cache = 1; + } + + config.core.v3.Metadata metadata = 9; +} diff --git a/third_party/schema-api/proto/envoy/service/load_stats/v3/lrs.proto b/third_party/schema-api/proto/envoy/service/load_stats/v3/lrs.proto new file mode 100644 index 0000000..c80b82d --- /dev/null +++ b/third_party/schema-api/proto/envoy/service/load_stats/v3/lrs.proto @@ -0,0 +1,30 @@ +syntax = "proto3"; + +package envoy.service.load_stats.v3; + +import "envoy/config/core/v3/base.proto"; +import "envoy/config/endpoint/v3/load_report.proto"; +import "google/protobuf/duration.proto"; +import "udpa/annotations/status.proto"; +import "udpa/annotations/versioning.proto"; + +option go_package = "github.com/envoyproxy/go-control-plane/envoy/service/load_stats/v3;load_statsv3"; +option java_multiple_files = true; +option java_outer_classname = "LrsProto"; +option java_package = "io.envoyproxy.envoy.service.load_stats.v3"; + +service LoadReportingService { + rpc StreamLoadStats(stream LoadStatsRequest) returns (stream LoadStatsResponse); +} + +message LoadStatsRequest { + config.core.v3.Node node = 1; + repeated config.endpoint.v3.ClusterStats cluster_stats = 2; +} + +message LoadStatsResponse { + repeated string clusters = 1; + bool send_all_clusters = 4; + google.protobuf.Duration load_reporting_interval = 2; + bool report_endpoint_granularity = 3; +} diff --git a/third_party/schema-api/proto/envoy/type/http/v3/cookie.proto b/third_party/schema-api/proto/envoy/type/http/v3/cookie.proto new file mode 100644 index 0000000..bf90e49 --- /dev/null +++ b/third_party/schema-api/proto/envoy/type/http/v3/cookie.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +package envoy.type.http.v3; + +import "google/protobuf/duration.proto"; +import "udpa/annotations/status.proto"; +import "validate/validate.proto"; + +option go_package = "github.com/envoyproxy/go-control-plane/envoy/type/http/v3;httpv3"; +option java_multiple_files = true; +option java_outer_classname = "CookieProto"; +option java_package = "io.envoyproxy.envoy.type.http.v3"; + +message Cookie { + string name = 1; + google.protobuf.Duration ttl = 2; + string path = 3; +} diff --git a/third_party/schema-api/proto/envoy/type/http/v3/path_transformation.proto b/third_party/schema-api/proto/envoy/type/http/v3/path_transformation.proto new file mode 100644 index 0000000..3387462 --- /dev/null +++ b/third_party/schema-api/proto/envoy/type/http/v3/path_transformation.proto @@ -0,0 +1,29 @@ +syntax = "proto3"; + +package envoy.type.http.v3; + +import "udpa/annotations/status.proto"; +import "validate/validate.proto"; + +option go_package = "github.com/envoyproxy/go-control-plane/envoy/type/http/v3;httpv3"; +option java_multiple_files = true; +option java_outer_classname = "PathTransformationProto"; +option java_package = "io.envoyproxy.envoy.type.http.v3"; + +message PathTransformation { + repeated Operation operations = 1; + message Operation { + oneof operation_specifier { + NormalizePathRFC3986 normalize_path_rfc_3986 = 2; + MergeSlashes merge_slashes = 3; + } + + message NormalizePathRFC3986 { + + } + + message MergeSlashes { + + } + } +} diff --git a/third_party/schema-api/proto/envoy/type/matcher/v3/address.proto b/third_party/schema-api/proto/envoy/type/matcher/v3/address.proto new file mode 100644 index 0000000..743a354 --- /dev/null +++ b/third_party/schema-api/proto/envoy/type/matcher/v3/address.proto @@ -0,0 +1,15 @@ +syntax = "proto3"; + +package envoy.type.matcher.v3; + +import "xds/core/v3/cidr.proto"; +import "udpa/annotations/status.proto"; + +option go_package = "github.com/envoyproxy/go-control-plane/envoy/type/matcher/v3;matcherv3"; +option java_multiple_files = true; +option java_outer_classname = "AddressProto"; +option java_package = "io.envoyproxy.envoy.type.matcher.v3"; + +message AddressMatcher { + repeated xds.core.v3.CidrRange ranges = 1; +} diff --git a/third_party/schema-api/proto/envoy/type/matcher/v3/filter_state.proto b/third_party/schema-api/proto/envoy/type/matcher/v3/filter_state.proto new file mode 100644 index 0000000..46fb1fe --- /dev/null +++ b/third_party/schema-api/proto/envoy/type/matcher/v3/filter_state.proto @@ -0,0 +1,22 @@ +syntax = "proto3"; + +package envoy.type.matcher.v3; + +import "envoy/type/matcher/v3/address.proto"; +import "envoy/type/matcher/v3/string.proto"; +import "udpa/annotations/status.proto"; +import "validate/validate.proto"; + +option go_package = "github.com/envoyproxy/go-control-plane/envoy/type/matcher/v3;matcherv3"; +option java_multiple_files = true; +option java_outer_classname = "FilterStateProto"; +option java_package = "io.envoyproxy.envoy.type.matcher.v3"; + +message FilterStateMatcher { + string key = 1; + + oneof matcher { + StringMatcher string_match = 2; + AddressMatcher address_match = 3; + } +} diff --git a/third_party/schema-api/proto/envoy/type/matcher/v3/metadata.proto b/third_party/schema-api/proto/envoy/type/matcher/v3/metadata.proto new file mode 100644 index 0000000..3e11c70 --- /dev/null +++ b/third_party/schema-api/proto/envoy/type/matcher/v3/metadata.proto @@ -0,0 +1,27 @@ +syntax = "proto3"; + +package envoy.type.matcher.v3; + +import "envoy/type/matcher/v3/value.proto"; +import "udpa/annotations/status.proto"; +import "udpa/annotations/versioning.proto"; +import "validate/validate.proto"; + +option go_package = "github.com/envoyproxy/go-control-plane/envoy/type/matcher/v3;matcherv3"; +option java_multiple_files = true; +option java_outer_classname = "MetadataProto"; +option java_package = "io.envoyproxy.envoy.type.matcher.v3"; + +message MetadataMatcher { + string filter = 1; + + repeated PathSegment path = 2; + message PathSegment { + oneof segment { + string key = 1; + } + } + + ValueMatcher value = 3; + bool invert = 4; +} diff --git a/third_party/schema-api/proto/envoy/type/matcher/v3/number.proto b/third_party/schema-api/proto/envoy/type/matcher/v3/number.proto new file mode 100644 index 0000000..75e526f --- /dev/null +++ b/third_party/schema-api/proto/envoy/type/matcher/v3/number.proto @@ -0,0 +1,20 @@ +syntax = "proto3"; + +package envoy.type.matcher.v3; + +import "envoy/type/v3/range.proto"; +import "udpa/annotations/status.proto"; +import "udpa/annotations/versioning.proto"; +import "validate/validate.proto"; + +option go_package = "github.com/envoyproxy/go-control-plane/envoy/type/matcher/v3;matcherv3"; +option java_multiple_files = true; +option java_outer_classname = "NumberProto"; +option java_package = "io.envoyproxy.envoy.type.matcher.v3"; + +message DoubleMatcher { + oneof match_pattern { + type.v3.DoubleRange range = 1; + double exact = 2; + } +} diff --git a/third_party/schema-api/proto/envoy/type/matcher/v3/path.proto b/third_party/schema-api/proto/envoy/type/matcher/v3/path.proto new file mode 100644 index 0000000..2f74796 --- /dev/null +++ b/third_party/schema-api/proto/envoy/type/matcher/v3/path.proto @@ -0,0 +1,19 @@ +syntax = "proto3"; + +package envoy.type.matcher.v3; + +import "envoy/type/matcher/v3/string.proto"; +import "udpa/annotations/status.proto"; +import "udpa/annotations/versioning.proto"; +import "validate/validate.proto"; + +option go_package = "github.com/envoyproxy/go-control-plane/envoy/type/matcher/v3;matcherv3"; +option java_multiple_files = true; +option java_outer_classname = "PathProto"; +option java_package = "io.envoyproxy.envoy.type.matcher.v3"; + +message PathMatcher { + oneof rule { + StringMatcher path = 1; + } +} diff --git a/third_party/schema-api/proto/envoy/type/matcher/v3/regex.proto b/third_party/schema-api/proto/envoy/type/matcher/v3/regex.proto new file mode 100644 index 0000000..6ae4d06 --- /dev/null +++ b/third_party/schema-api/proto/envoy/type/matcher/v3/regex.proto @@ -0,0 +1,31 @@ +syntax = "proto3"; + +package envoy.type.matcher.v3; + +import "google/protobuf/wrappers.proto"; +import "envoy/annotations/deprecation.proto"; +import "udpa/annotations/status.proto"; +import "udpa/annotations/versioning.proto"; +import "validate/validate.proto"; + +option go_package = "github.com/envoyproxy/go-control-plane/envoy/type/matcher/v3;matcherv3"; +option java_multiple_files = true; +option java_outer_classname = "RegexProto"; +option java_package = "io.envoyproxy.envoy.type.matcher.v3"; + +message RegexMatcher { + string regex = 2; + + oneof engine_type { + GoogleRE2 google_re2 = 1 [deprecated = true]; + } + + message GoogleRE2 { + google.protobuf.UInt32Value max_program_size = 1 [deprecated = true]; + } +} + +message RegexMatchAndSubstitute { + RegexMatcher pattern = 1; + string substitution = 2; +} diff --git a/third_party/schema-api/proto/envoy/type/matcher/v3/string.proto b/third_party/schema-api/proto/envoy/type/matcher/v3/string.proto new file mode 100644 index 0000000..cd26638 --- /dev/null +++ b/third_party/schema-api/proto/envoy/type/matcher/v3/string.proto @@ -0,0 +1,35 @@ +syntax = "proto3"; + +package envoy.type.matcher.v3; + +import "envoy/type/matcher/v3/regex.proto"; +import "xds/core/v3/extension.proto"; +import "udpa/annotations/status.proto"; +import "udpa/annotations/versioning.proto"; +import "validate/validate.proto"; + +option go_package = "github.com/envoyproxy/go-control-plane/envoy/type/matcher/v3;matcherv3"; +option java_multiple_files = true; +option java_outer_classname = "StringProto"; +option java_package = "io.envoyproxy.envoy.type.matcher.v3"; + +message StringMatcher { + bool ignore_case = 6; + + oneof match_pattern { + string exact = 1; + string prefix = 2; + string suffix = 3; + RegexMatcher safe_regex = 5; + string contains = 7; + xds.core.v3.TypedExtensionConfig custom = 8; + } + + reserved 4; + + reserved "regex"; +} + +message ListStringMatcher { + repeated StringMatcher patterns = 1; +} diff --git a/third_party/schema-api/proto/envoy/type/matcher/v3/value.proto b/third_party/schema-api/proto/envoy/type/matcher/v3/value.proto new file mode 100644 index 0000000..5609d22 --- /dev/null +++ b/third_party/schema-api/proto/envoy/type/matcher/v3/value.proto @@ -0,0 +1,40 @@ +syntax = "proto3"; + +package envoy.type.matcher.v3; + +import "envoy/type/matcher/v3/number.proto"; +import "envoy/type/matcher/v3/string.proto"; +import "udpa/annotations/status.proto"; +import "udpa/annotations/versioning.proto"; +import "validate/validate.proto"; + +option go_package = "github.com/envoyproxy/go-control-plane/envoy/type/matcher/v3;matcherv3"; +option java_multiple_files = true; +option java_outer_classname = "ValueProto"; +option java_package = "io.envoyproxy.envoy.type.matcher.v3"; + +message ValueMatcher { + oneof match_pattern { + NullMatch null_match = 1; + DoubleMatcher double_match = 2; + StringMatcher string_match = 3; + bool bool_match = 4; + bool present_match = 5; + ListMatcher list_match = 6; + OrMatcher or_match = 7; + } + + message NullMatch { + + } +} + +message ListMatcher { + oneof match_pattern { + ValueMatcher one_of = 1; + } +} + +message OrMatcher { + repeated ValueMatcher value_matchers = 1; +} diff --git a/third_party/schema-api/proto/envoy/type/metadata/v3/metadata.proto b/third_party/schema-api/proto/envoy/type/metadata/v3/metadata.proto new file mode 100644 index 0000000..33f67b5 --- /dev/null +++ b/third_party/schema-api/proto/envoy/type/metadata/v3/metadata.proto @@ -0,0 +1,48 @@ +syntax = "proto3"; + +package envoy.type.metadata.v3; + +import "udpa/annotations/status.proto"; +import "udpa/annotations/versioning.proto"; +import "validate/validate.proto"; + +option go_package = "github.com/envoyproxy/go-control-plane/envoy/type/metadata/v3;metadatav3"; +option java_multiple_files = true; +option java_outer_classname = "MetadataProto"; +option java_package = "io.envoyproxy.envoy.type.metadata.v3"; + +message MetadataKey { + string key = 1; + + repeated PathSegment path = 2; + message PathSegment { + oneof segment { + string key = 1; + } + } +} + +message MetadataKind { + oneof kind { + Request request = 1; + Route route = 2; + Cluster cluster = 3; + Host host = 4; + } + + message Request { + + } + + message Route { + + } + + message Cluster { + + } + + message Host { + + } +} diff --git a/third_party/schema-api/proto/envoy/type/tracing/v3/custom_tag.proto b/third_party/schema-api/proto/envoy/type/tracing/v3/custom_tag.proto new file mode 100644 index 0000000..6c0662f --- /dev/null +++ b/third_party/schema-api/proto/envoy/type/tracing/v3/custom_tag.proto @@ -0,0 +1,44 @@ +syntax = "proto3"; + +package envoy.type.tracing.v3; + +import "envoy/type/metadata/v3/metadata.proto"; +import "udpa/annotations/status.proto"; +import "udpa/annotations/versioning.proto"; +import "validate/validate.proto"; + +option go_package = "github.com/envoyproxy/go-control-plane/envoy/type/tracing/v3;tracingv3"; +option java_multiple_files = true; +option java_outer_classname = "CustomTagProto"; +option java_package = "io.envoyproxy.envoy.type.tracing.v3"; + +message CustomTag { + string tag = 1; + + oneof type { + Literal literal = 2; + Environment environment = 3; + Header request_header = 4; + Metadata metadata = 5; + } + + message Literal { + string value = 1; + } + + message Environment { + string name = 1; + string default_value = 2; + } + + message Header { + string name = 1; + string default_value = 2; + } + + message Metadata { + metadata.v3.MetadataKind kind = 1; + metadata.v3.MetadataKey metadata_key = 2; + string default_value = 3; + } +} diff --git a/third_party/schema-api/proto/envoy/type/v3/http.proto b/third_party/schema-api/proto/envoy/type/v3/http.proto new file mode 100644 index 0000000..cebc72e --- /dev/null +++ b/third_party/schema-api/proto/envoy/type/v3/http.proto @@ -0,0 +1,16 @@ +syntax = "proto3"; + +package envoy.type.v3; + +import "udpa/annotations/status.proto"; + +option go_package = "github.com/envoyproxy/go-control-plane/envoy/type/v3;typev3"; +option java_multiple_files = true; +option java_outer_classname = "HttpProto"; +option java_package = "io.envoyproxy.envoy.type.v3"; + +enum CodecClientType { + HTTP1 = 0; + HTTP2 = 1; + HTTP3 = 2; +} diff --git a/third_party/schema-api/proto/envoy/type/v3/percent.proto b/third_party/schema-api/proto/envoy/type/v3/percent.proto new file mode 100644 index 0000000..df3ef93 --- /dev/null +++ b/third_party/schema-api/proto/envoy/type/v3/percent.proto @@ -0,0 +1,27 @@ +syntax = "proto3"; + +package envoy.type.v3; + +import "udpa/annotations/status.proto"; +import "udpa/annotations/versioning.proto"; +import "validate/validate.proto"; + +option go_package = "github.com/envoyproxy/go-control-plane/envoy/type/v3;typev3"; +option java_multiple_files = true; +option java_outer_classname = "PercentProto"; +option java_package = "io.envoyproxy.envoy.type.v3"; + +message Percent { + double value = 1; +} + +message FractionalPercent { + uint32 numerator = 1; + + DenominatorType denominator = 2; + enum DenominatorType { + HUNDRED = 0; + TEN_THOUSAND = 1; + MILLION = 2; + } +} diff --git a/third_party/schema-api/proto/envoy/type/v3/range.proto b/third_party/schema-api/proto/envoy/type/v3/range.proto new file mode 100644 index 0000000..404ebb1 --- /dev/null +++ b/third_party/schema-api/proto/envoy/type/v3/range.proto @@ -0,0 +1,26 @@ +syntax = "proto3"; + +package envoy.type.v3; + +import "udpa/annotations/status.proto"; +import "udpa/annotations/versioning.proto"; + +option go_package = "github.com/envoyproxy/go-control-plane/envoy/type/v3;typev3"; +option java_multiple_files = true; +option java_outer_classname = "RangeProto"; +option java_package = "io.envoyproxy.envoy.type.v3"; + +message Int64Range { + int64 start = 1; + int64 end = 2; +} + +message Int32Range { + int32 start = 1; + int32 end = 2; +} + +message DoubleRange { + double start = 1; + double end = 2; +} diff --git a/third_party/schema-api/proto/envoy/type/v3/semantic_version.proto b/third_party/schema-api/proto/envoy/type/v3/semantic_version.proto new file mode 100644 index 0000000..04dc9ab --- /dev/null +++ b/third_party/schema-api/proto/envoy/type/v3/semantic_version.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +package envoy.type.v3; + +import "udpa/annotations/status.proto"; +import "udpa/annotations/versioning.proto"; + +option go_package = "github.com/envoyproxy/go-control-plane/envoy/type/v3;typev3"; +option java_multiple_files = true; +option java_outer_classname = "SemanticVersionProto"; +option java_package = "io.envoyproxy.envoy.type.v3"; + +message SemanticVersion { + uint32 major_number = 1; + uint32 minor_number = 2; + uint32 patch = 3; +} diff --git a/third_party/schema-api/proto/global_badge_list.proto b/third_party/schema-api/proto/global_badge_list.proto new file mode 100644 index 0000000..2106553 --- /dev/null +++ b/third_party/schema-api/proto/global_badge_list.proto @@ -0,0 +1,22 @@ +syntax = "proto3"; + +package com.teamspeak.myteamspeak.proto.cloud; + +option java_generic_services = true; +option cc_generic_services = true; +option optimize_for = SPEED; + +message BadgeList { + int32 version = 1; + int64 updated = 2; + repeated Badge badges = 3; +} + +message Badge { + string uuid = 1; + string name = 2; + string url = 3; + string description = 4; + int64 created = 5; + int32 version = 6; +} diff --git a/third_party/schema-api/proto/google/api/expr/v1alpha1/checked.proto b/third_party/schema-api/proto/google/api/expr/v1alpha1/checked.proto new file mode 100644 index 0000000..12bc48a --- /dev/null +++ b/third_party/schema-api/proto/google/api/expr/v1alpha1/checked.proto @@ -0,0 +1,108 @@ +syntax = "proto3"; + +package google.api.expr.v1alpha1; + +import "google/api/expr/v1alpha1/syntax.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/struct.proto"; + +option cc_enable_arenas = true; +option go_package = "google.golang.org/genproto/googleapis/api/expr/v1alpha1;expr"; +option java_multiple_files = true; +option java_outer_classname = "DeclProto"; +option java_package = "com.google.api.expr.v1alpha1"; + +message CheckedExpr { + map reference_map = 2; + map type_map = 3; + SourceInfo source_info = 5; + string expr_version = 6; + Expr expr = 4; +} + +message Type { + oneof type_kind { + protobuf.Empty dyn = 1; + protobuf.NullValue null = 2; + PrimitiveType primitive = 3; + PrimitiveType wrapper = 4; + WellKnownType well_known = 5; + ListType list_type = 6; + MapType map_type = 7; + FunctionType function = 8; + string message_type = 9; + string type_param = 10; + Type type = 11; + protobuf.Empty error = 12; + AbstractType abstract_type = 14; + } + + message ListType { + Type elem_type = 1; + } + + message MapType { + Type key_type = 1; + Type value_type = 2; + } + + message FunctionType { + Type result_type = 1; + repeated Type arg_types = 2; + } + + message AbstractType { + string name = 1; + repeated Type parameter_types = 2; + } + + enum PrimitiveType { + PRIMITIVE_TYPE_UNSPECIFIED = 0; + BOOL = 1; + INT64 = 2; + UINT64 = 3; + DOUBLE = 4; + STRING = 5; + BYTES = 6; + } + + enum WellKnownType { + WELL_KNOWN_TYPE_UNSPECIFIED = 0; + ANY = 1; + TIMESTAMP = 2; + DURATION = 3; + } +} + +message Decl { + string name = 1; + + oneof decl_kind { + IdentDecl ident = 2; + FunctionDecl function = 3; + } + + message IdentDecl { + Type type = 1; + Constant value = 2; + string doc = 3; + } + + message FunctionDecl { + repeated Overload overloads = 1; + message Overload { + string overload_id = 1; + repeated Type params = 2; + repeated string type_params = 3; + Type result_type = 4; + bool is_instance_function = 5; + string doc = 6; + } + } +} + +message Reference { + string name = 1; + repeated string overload_id = 3; + Constant value = 4; +} diff --git a/third_party/schema-api/proto/google/api/expr/v1alpha1/syntax.proto b/third_party/schema-api/proto/google/api/expr/v1alpha1/syntax.proto new file mode 100644 index 0000000..aae577d --- /dev/null +++ b/third_party/schema-api/proto/google/api/expr/v1alpha1/syntax.proto @@ -0,0 +1,128 @@ +syntax = "proto3"; + +package google.api.expr.v1alpha1; + +import "google/protobuf/duration.proto"; +import "google/protobuf/struct.proto"; +import "google/protobuf/timestamp.proto"; + +option cc_enable_arenas = true; +option go_package = "google.golang.org/genproto/googleapis/api/expr/v1alpha1;expr"; +option java_multiple_files = true; +option java_outer_classname = "SyntaxProto"; +option java_package = "com.google.api.expr.v1alpha1"; + +message ParsedExpr { + Expr expr = 2; + SourceInfo source_info = 3; +} + +message Expr { + int64 id = 2; + + oneof expr_kind { + Constant const_expr = 3; + Ident ident_expr = 4; + Select select_expr = 5; + Call call_expr = 6; + CreateList list_expr = 7; + CreateStruct struct_expr = 8; + Comprehension comprehension_expr = 9; + } + + message Ident { + string name = 1; + } + + message Select { + Expr operand = 1; + string field = 2; + bool test_only = 3; + } + + message Call { + Expr target = 1; + string function = 2; + repeated Expr args = 3; + } + + message CreateList { + repeated Expr elements = 1; + repeated int32 optional_indices = 2; + } + + message CreateStruct { + string message_name = 1; + + repeated Entry entries = 2; + message Entry { + int64 id = 1; + Expr value = 4; + bool optional_entry = 5; + + oneof key_kind { + string field_key = 2; + Expr map_key = 3; + } + } + } + + message Comprehension { + string iter_var = 1; + string iter_var2 = 8; + Expr iter_range = 2; + string accu_var = 3; + Expr accu_init = 4; + Expr loop_condition = 5; + Expr loop_step = 6; + Expr result = 7; + } +} + +message Constant { + oneof constant_kind { + protobuf.NullValue null_value = 1; + bool bool_value = 2; + int64 int64_value = 3; + uint64 uint64_value = 4; + double double_value = 5; + string string_value = 6; + bytes bytes_value = 7; + protobuf.Duration duration_value = 8 [deprecated = true]; + protobuf.Timestamp timestamp_value = 9 [deprecated = true]; + } +} + +message SourceInfo { + string syntax_version = 1; + string location = 2; + repeated int32 line_offsets = 3; + map positions = 4; + map macro_calls = 5; + + repeated Extension extensions = 6; + message Extension { + string id = 1; + + repeated Component affected_components = 2; + enum Component { + COMPONENT_UNSPECIFIED = 0; + COMPONENT_PARSER = 1; + COMPONENT_TYPE_CHECKER = 2; + COMPONENT_RUNTIME = 3; + } + + Version version = 3; + message Version { + int64 major = 1; + int64 minor = 2; + } + } +} + +message SourcePosition { + string location = 1; + int32 offset = 2; + int32 line = 3; + int32 column = 4; +} diff --git a/third_party/schema-api/proto/google/protobuf/any.proto b/third_party/schema-api/proto/google/protobuf/any.proto new file mode 100644 index 0000000..887dde4 --- /dev/null +++ b/third_party/schema-api/proto/google/protobuf/any.proto @@ -0,0 +1,15 @@ +syntax = "proto3"; + +package google.protobuf; + +option csharp_namespace = "Google.Protobuf.WellKnownTypes"; +option objc_class_prefix = "GPB"; +option go_package = "google.golang.org/protobuf/types/known/anypb"; +option java_multiple_files = true; +option java_outer_classname = "AnyProto"; +option java_package = "com.google.protobuf"; + +message Any { + string type_url = 1; + bytes value = 2; +} diff --git a/third_party/schema-api/proto/google/protobuf/cpp_features.proto b/third_party/schema-api/proto/google/protobuf/cpp_features.proto new file mode 100644 index 0000000..307e9cf --- /dev/null +++ b/third_party/schema-api/proto/google/protobuf/cpp_features.proto @@ -0,0 +1,40 @@ +syntax = "proto2"; + +package pb; + +import "google/protobuf/descriptor.proto"; + +message CppFeatures { + optional bool legacy_closed_enum = 1 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, TARGET_TYPE_FILE, edition_defaults = [value: "true" + edition: EDITION_LEGACY + , value: "false" + edition: EDITION_PROTO3 + ], feature_support = edition_introduced: EDITION_2023 + edition_deprecated: EDITION_2023 + deprecation_warning: "The legacy closed enum behavior in C++ is deprecated and is scheduled to be removed in edition 2025. See http://protobuf.dev/programming-guides/enum/#cpp for more information" + ]; + + optional StringType string_type = 2 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, TARGET_TYPE_FILE, edition_defaults = [value: "STRING" + edition: EDITION_LEGACY + , value: "VIEW" + edition: EDITION_2024 + ], feature_support = edition_introduced: EDITION_2023 + ]; + enum StringType { + STRING_TYPE_UNKNOWN = 0; + VIEW = 1; + CORD = 2; + STRING = 3; + } + + optional bool enum_name_uses_string_view = 3 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_ENUM, TARGET_TYPE_FILE, edition_defaults = [value: "false" + edition: EDITION_LEGACY + , value: "true" + edition: EDITION_2024 + ], feature_support = edition_introduced: EDITION_2024 + ]; +} + +extend google.protobuf.FeatureSet { + optional CppFeatures cpp = 1000; +} diff --git a/third_party/schema-api/proto/google/protobuf/descriptor.proto b/third_party/schema-api/proto/google/protobuf/descriptor.proto new file mode 100644 index 0000000..f5df2e5 --- /dev/null +++ b/third_party/schema-api/proto/google/protobuf/descriptor.proto @@ -0,0 +1,532 @@ +syntax = "proto2"; + +package google.protobuf; + +option csharp_namespace = "Google.Protobuf.Reflection"; +option objc_class_prefix = "GPB"; +option cc_enable_arenas = true; +option go_package = "google.golang.org/protobuf/types/descriptorpb"; +option optimize_for = SPEED; +option java_outer_classname = "DescriptorProtos"; +option java_package = "com.google.protobuf"; + +message FileDescriptorSet { + repeated FileDescriptorProto file = 1; + + extensions 536000000; +} + +message FileDescriptorProto { + optional string name = 1; + optional string package = 2; + repeated string dependency = 3; + repeated int32 public_dependency = 10; + repeated int32 weak_dependency = 11; + repeated string option_dependency = 15; + repeated DescriptorProto message_type = 4; + repeated EnumDescriptorProto enum_type = 5; + repeated ServiceDescriptorProto service = 6; + repeated FieldDescriptorProto extension = 7; + optional FileOptions options = 8; + optional SourceCodeInfo source_code_info = 9; + optional string syntax = 12; + optional Edition edition = 14; +} + +message DescriptorProto { + optional string name = 1; + repeated FieldDescriptorProto field = 2; + repeated FieldDescriptorProto extension = 6; + repeated DescriptorProto nested_type = 3; + repeated EnumDescriptorProto enum_type = 4; + + repeated ExtensionRange extension_range = 5; + message ExtensionRange { + optional int32 start = 1; + optional int32 end = 2; + optional ExtensionRangeOptions options = 3; + } + + repeated OneofDescriptorProto oneof_decl = 8; + optional MessageOptions options = 7; + + repeated ReservedRange reserved_range = 9; + message ReservedRange { + optional int32 start = 1; + optional int32 end = 2; + } + + repeated string reserved_name = 10; + optional SymbolVisibility visibility = 11; +} + +message ExtensionRangeOptions { + repeated UninterpretedOption uninterpreted_option = 999; + + repeated Declaration declaration = 2 [retention = RETENTION_SOURCE]; + message Declaration { + optional int32 number = 1; + optional string full_name = 2; + optional string type = 3; + optional bool reserved = 5; + optional bool repeated = 6; + + reserved 4; + } + + optional FeatureSet features = 50; + + optional VerificationState verification = 3 [default = UNVERIFIED, retention = RETENTION_SOURCE]; + enum VerificationState { + DECLARATION = 0; + UNVERIFIED = 1; + } + + extensions 1000 to max; +} + +message FieldDescriptorProto { + optional string name = 1; + optional int32 number = 3; + + optional Label label = 4; + enum Label { + LABEL_OPTIONAL = 1; + LABEL_REPEATED = 3; + LABEL_REQUIRED = 2; + } + + optional Type type = 5; + enum Type { + TYPE_DOUBLE = 1; + TYPE_FLOAT = 2; + TYPE_INT64 = 3; + TYPE_UINT64 = 4; + TYPE_INT32 = 5; + TYPE_FIXED64 = 6; + TYPE_FIXED32 = 7; + TYPE_BOOL = 8; + TYPE_STRING = 9; + TYPE_GROUP = 10; + TYPE_MESSAGE = 11; + TYPE_BYTES = 12; + TYPE_UINT32 = 13; + TYPE_ENUM = 14; + TYPE_SFIXED32 = 15; + TYPE_SFIXED64 = 16; + TYPE_SINT32 = 17; + TYPE_SINT64 = 18; + } + + optional string type_name = 6; + optional string extendee = 2; + optional string default_value = 7; + optional int32 oneof_index = 9; + optional string json_name = 10; + optional FieldOptions options = 8; + optional bool proto3_optional = 17; +} + +message OneofDescriptorProto { + optional string name = 1; + optional OneofOptions options = 2; +} + +message EnumDescriptorProto { + optional string name = 1; + repeated EnumValueDescriptorProto value = 2; + optional EnumOptions options = 3; + + repeated EnumReservedRange reserved_range = 4; + message EnumReservedRange { + optional int32 start = 1; + optional int32 end = 2; + } + + repeated string reserved_name = 5; + optional SymbolVisibility visibility = 6; +} + +message EnumValueDescriptorProto { + optional string name = 1; + optional int32 number = 2; + optional EnumValueOptions options = 3; +} + +message ServiceDescriptorProto { + optional string name = 1; + repeated MethodDescriptorProto method = 2; + optional ServiceOptions options = 3; +} + +message MethodDescriptorProto { + optional string name = 1; + optional string input_type = 2; + optional string output_type = 3; + optional MethodOptions options = 4; + optional bool client_streaming = 5 [default = false]; + optional bool server_streaming = 6 [default = false]; +} + +message FileOptions { + optional string java_package = 1; + optional string java_outer_classname = 8; + optional bool java_multiple_files = 10 [default = false]; + optional bool java_generate_equals_and_hash = 20 [deprecated = true]; + optional bool java_string_check_utf8 = 27 [default = false]; + + optional OptimizeMode optimize_for = 9 [default = SPEED]; + enum OptimizeMode { + SPEED = 1; + CODE_SIZE = 2; + LITE_RUNTIME = 3; + } + + optional string go_package = 11; + optional bool cc_generic_services = 16 [default = false]; + optional bool java_generic_services = 17 [default = false]; + optional bool py_generic_services = 18 [default = false]; + optional bool deprecated = 23 [default = false]; + optional bool cc_enable_arenas = 31 [default = true]; + optional string objc_class_prefix = 36; + optional string csharp_namespace = 37; + optional string swift_prefix = 39; + optional string php_class_prefix = 40; + optional string php_namespace = 41; + optional string php_metadata_namespace = 44; + optional string ruby_package = 45; + optional FeatureSet features = 50; + repeated UninterpretedOption uninterpreted_option = 999; + + extensions 1000 to max; + + reserved 42, 38; + + reserved "php_generic_services"; +} + +message MessageOptions { + optional bool message_set_wire_format = 1 [default = false]; + optional bool no_standard_descriptor_accessor = 2 [default = false]; + optional bool deprecated = 3 [default = false]; + optional bool map_entry = 7; + optional bool deprecated_legacy_json_field_conflicts = 11 [deprecated = true]; + optional FeatureSet features = 12; + repeated UninterpretedOption uninterpreted_option = 999; + + extensions 1000 to max; + + reserved 4, 5, 6, 8, 9; +} + +message FieldOptions { + optional CType ctype = 1 [default = STRING]; + enum CType { + STRING = 0; + CORD = 1; + STRING_PIECE = 2; + } + + optional bool packed = 2; + + optional JSType jstype = 6 [default = JS_NORMAL]; + enum JSType { + JS_NORMAL = 0; + JS_STRING = 1; + JS_NUMBER = 2; + } + + optional bool lazy = 5 [default = false]; + optional bool unverified_lazy = 15 [default = false]; + optional bool deprecated = 3 [default = false]; + optional bool weak = 10 [default = false, deprecated = true]; + optional bool debug_redact = 16 [default = false]; + + optional OptionRetention retention = 17; + enum OptionRetention { + RETENTION_UNKNOWN = 0; + RETENTION_RUNTIME = 1; + RETENTION_SOURCE = 2; + } + + repeated OptionTargetType targets = 19; + enum OptionTargetType { + TARGET_TYPE_UNKNOWN = 0; + TARGET_TYPE_FILE = 1; + TARGET_TYPE_EXTENSION_RANGE = 2; + TARGET_TYPE_MESSAGE = 3; + TARGET_TYPE_FIELD = 4; + TARGET_TYPE_ONEOF = 5; + TARGET_TYPE_ENUM = 6; + TARGET_TYPE_ENUM_ENTRY = 7; + TARGET_TYPE_SERVICE = 8; + TARGET_TYPE_METHOD = 9; + } + + repeated EditionDefault edition_defaults = 20; + message EditionDefault { + optional Edition edition = 3; + optional string value = 2; + } + + optional FeatureSet features = 21; + + optional FeatureSupport feature_support = 22; + message FeatureSupport { + optional Edition edition_introduced = 1; + optional Edition edition_deprecated = 2; + optional string deprecation_warning = 3; + optional Edition edition_removed = 4; + } + + repeated UninterpretedOption uninterpreted_option = 999; + + extensions 1000 to max; + + reserved 4, 18; +} + +message OneofOptions { + optional FeatureSet features = 1; + repeated UninterpretedOption uninterpreted_option = 999; + + extensions 1000 to max; +} + +message EnumOptions { + optional bool allow_alias = 2; + optional bool deprecated = 3 [default = false]; + optional bool deprecated_legacy_json_field_conflicts = 6 [deprecated = true]; + optional FeatureSet features = 7; + repeated UninterpretedOption uninterpreted_option = 999; + + extensions 1000 to max; + + reserved 5; +} + +message EnumValueOptions { + optional bool deprecated = 1 [default = false]; + optional FeatureSet features = 2; + optional bool debug_redact = 3 [default = false]; + optional FieldOptions.FeatureSupport feature_support = 4; + repeated UninterpretedOption uninterpreted_option = 999; + + extensions 1000 to max; +} + +message ServiceOptions { + optional FeatureSet features = 34; + optional bool deprecated = 33 [default = false]; + repeated UninterpretedOption uninterpreted_option = 999; + + extensions 1000 to max; +} + +message MethodOptions { + optional bool deprecated = 33 [default = false]; + + optional IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN]; + enum IdempotencyLevel { + IDEMPOTENCY_UNKNOWN = 0; + NO_SIDE_EFFECTS = 1; + IDEMPOTENT = 2; + } + + optional FeatureSet features = 35; + repeated UninterpretedOption uninterpreted_option = 999; + + extensions 1000 to max; +} + +message UninterpretedOption { + repeated NamePart name = 2; + message NamePart { + required string name_part = 1; + required bool is_extension = 2; + } + + optional string identifier_value = 3; + optional uint64 positive_int_value = 4; + optional int64 negative_int_value = 5; + optional double double_value = 6; + optional bytes string_value = 7; + optional string aggregate_value = 8; +} + +message FeatureSet { + optional FieldPresence field_presence = 1 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, TARGET_TYPE_FILE, edition_defaults = [value: "EXPLICIT" + edition: EDITION_LEGACY + , value: "IMPLICIT" + edition: EDITION_PROTO3 + , value: "EXPLICIT" + edition: EDITION_2023 + ], feature_support = edition_introduced: EDITION_2023 + ]; + enum FieldPresence { + FIELD_PRESENCE_UNKNOWN = 0; + EXPLICIT = 1; + IMPLICIT = 2; + LEGACY_REQUIRED = 3; + } + + optional EnumType enum_type = 2 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_ENUM, TARGET_TYPE_FILE, edition_defaults = [value: "CLOSED" + edition: EDITION_LEGACY + , value: "OPEN" + edition: EDITION_PROTO3 + ], feature_support = edition_introduced: EDITION_2023 + ]; + enum EnumType { + ENUM_TYPE_UNKNOWN = 0; + OPEN = 1; + CLOSED = 2; + } + + optional RepeatedFieldEncoding repeated_field_encoding = 3 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, TARGET_TYPE_FILE, edition_defaults = [value: "EXPANDED" + edition: EDITION_LEGACY + , value: "PACKED" + edition: EDITION_PROTO3 + ], feature_support = edition_introduced: EDITION_2023 + ]; + enum RepeatedFieldEncoding { + REPEATED_FIELD_ENCODING_UNKNOWN = 0; + PACKED = 1; + EXPANDED = 2; + } + + optional Utf8Validation utf8_validation = 4 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, TARGET_TYPE_FILE, edition_defaults = [value: "NONE" + edition: EDITION_LEGACY + , value: "VERIFY" + edition: EDITION_PROTO3 + ], feature_support = edition_introduced: EDITION_2023 + ]; + enum Utf8Validation { + UTF8_VALIDATION_UNKNOWN = 0; + VERIFY = 2; + NONE = 3; + } + + optional MessageEncoding message_encoding = 5 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, TARGET_TYPE_FILE, edition_defaults = [value: "LENGTH_PREFIXED" + edition: EDITION_LEGACY + ], feature_support = edition_introduced: EDITION_2023 + ]; + enum MessageEncoding { + MESSAGE_ENCODING_UNKNOWN = 0; + LENGTH_PREFIXED = 1; + DELIMITED = 2; + } + + optional JsonFormat json_format = 6 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_MESSAGE, TARGET_TYPE_ENUM, TARGET_TYPE_FILE, edition_defaults = [value: "LEGACY_BEST_EFFORT" + edition: EDITION_LEGACY + , value: "ALLOW" + edition: EDITION_PROTO3 + ], feature_support = edition_introduced: EDITION_2023 + ]; + enum JsonFormat { + JSON_FORMAT_UNKNOWN = 0; + ALLOW = 1; + LEGACY_BEST_EFFORT = 2; + } + + optional EnforceNamingStyle enforce_naming_style = 7 [retention = RETENTION_SOURCE, targets = TARGET_TYPE_FILE, TARGET_TYPE_EXTENSION_RANGE, TARGET_TYPE_MESSAGE, TARGET_TYPE_FIELD, TARGET_TYPE_ONEOF, TARGET_TYPE_ENUM, TARGET_TYPE_ENUM_ENTRY, TARGET_TYPE_SERVICE, TARGET_TYPE_METHOD, edition_defaults = [value: "STYLE_LEGACY" + edition: EDITION_LEGACY + , value: "STYLE2024" + edition: EDITION_2024 + ], feature_support = edition_introduced: EDITION_2024 + ]; + enum EnforceNamingStyle { + ENFORCE_NAMING_STYLE_UNKNOWN = 0; + STYLE2024 = 1; + STYLE_LEGACY = 2; + } + + optional VisibilityFeature.DefaultSymbolVisibility default_symbol_visibility = 8 [retention = RETENTION_SOURCE, targets = TARGET_TYPE_FILE, edition_defaults = [value: "EXPORT_ALL" + edition: EDITION_LEGACY + , value: "EXPORT_TOP_LEVEL" + edition: EDITION_2024 + ], feature_support = edition_introduced: EDITION_2024 + ]; + + extensions 1000 to 9994, 9995 to 9999, 10000; + + reserved 999; + + message VisibilityFeature { + reserved 1 to max; + + enum DefaultSymbolVisibility { + DEFAULT_SYMBOL_VISIBILITY_UNKNOWN = 0; + EXPORT_ALL = 1; + EXPORT_TOP_LEVEL = 2; + LOCAL_ALL = 3; + STRICT = 4; + } + } +} + +message FeatureSetDefaults { + repeated FeatureSetEditionDefault defaults = 1; + message FeatureSetEditionDefault { + optional Edition edition = 3; + optional FeatureSet overridable_features = 4; + optional FeatureSet fixed_features = 5; + + reserved 1, 2; + + reserved "features"; + } + + optional Edition minimum_edition = 4; + optional Edition maximum_edition = 5; +} + +message SourceCodeInfo { + repeated Location location = 1; + message Location { + repeated int32 path = 1 [packed = true]; + repeated int32 span = 2 [packed = true]; + optional string leading_comments = 3; + optional string trailing_comments = 4; + repeated string leading_detached_comments = 6; + } + + extensions 536000000; +} + +message GeneratedCodeInfo { + repeated Annotation annotation = 1; + message Annotation { + repeated int32 path = 1 [packed = true]; + optional string source_file = 2; + optional int32 begin = 3; + optional int32 end = 4; + + optional Semantic semantic = 5; + enum Semantic { + NONE = 0; + SET = 1; + ALIAS = 2; + } + } +} + +enum Edition { + EDITION_UNKNOWN = 0; + EDITION_LEGACY = 900; + EDITION_PROTO2 = 998; + EDITION_PROTO3 = 999; + EDITION_2023 = 1000; + EDITION_2024 = 1001; + EDITION_1_TEST_ONLY = 1; + EDITION_2_TEST_ONLY = 2; + EDITION_99997_TEST_ONLY = 99997; + EDITION_99998_TEST_ONLY = 99998; + EDITION_99999_TEST_ONLY = 99999; + EDITION_MAX = 2147483647; +} + +enum SymbolVisibility { + VISIBILITY_UNSET = 0; + VISIBILITY_LOCAL = 1; + VISIBILITY_EXPORT = 2; +} diff --git a/third_party/schema-api/proto/google/protobuf/duration.proto b/third_party/schema-api/proto/google/protobuf/duration.proto new file mode 100644 index 0000000..a1cde08 --- /dev/null +++ b/third_party/schema-api/proto/google/protobuf/duration.proto @@ -0,0 +1,16 @@ +syntax = "proto3"; + +package google.protobuf; + +option csharp_namespace = "Google.Protobuf.WellKnownTypes"; +option objc_class_prefix = "GPB"; +option cc_enable_arenas = true; +option go_package = "google.golang.org/protobuf/types/known/durationpb"; +option java_multiple_files = true; +option java_outer_classname = "DurationProto"; +option java_package = "com.google.protobuf"; + +message Duration { + int64 seconds = 1; + int32 nanos = 2; +} diff --git a/third_party/schema-api/proto/google/protobuf/empty.proto b/third_party/schema-api/proto/google/protobuf/empty.proto new file mode 100644 index 0000000..f2b05d3 --- /dev/null +++ b/third_party/schema-api/proto/google/protobuf/empty.proto @@ -0,0 +1,15 @@ +syntax = "proto3"; + +package google.protobuf; + +option csharp_namespace = "Google.Protobuf.WellKnownTypes"; +option objc_class_prefix = "GPB"; +option cc_enable_arenas = true; +option go_package = "google.golang.org/protobuf/types/known/emptypb"; +option java_multiple_files = true; +option java_outer_classname = "EmptyProto"; +option java_package = "com.google.protobuf"; + +message Empty { + +} diff --git a/third_party/schema-api/proto/google/protobuf/source_context.proto b/third_party/schema-api/proto/google/protobuf/source_context.proto new file mode 100644 index 0000000..0035e68 --- /dev/null +++ b/third_party/schema-api/proto/google/protobuf/source_context.proto @@ -0,0 +1,14 @@ +syntax = "proto3"; + +package google.protobuf; + +option csharp_namespace = "Google.Protobuf.WellKnownTypes"; +option objc_class_prefix = "GPB"; +option go_package = "google.golang.org/protobuf/types/known/sourcecontextpb"; +option java_multiple_files = true; +option java_outer_classname = "SourceContextProto"; +option java_package = "com.google.protobuf"; + +message SourceContext { + string file_name = 1; +} diff --git a/third_party/schema-api/proto/google/protobuf/struct.proto b/third_party/schema-api/proto/google/protobuf/struct.proto new file mode 100644 index 0000000..7617253 --- /dev/null +++ b/third_party/schema-api/proto/google/protobuf/struct.proto @@ -0,0 +1,34 @@ +syntax = "proto3"; + +package google.protobuf; + +option csharp_namespace = "Google.Protobuf.WellKnownTypes"; +option objc_class_prefix = "GPB"; +option cc_enable_arenas = true; +option go_package = "google.golang.org/protobuf/types/known/structpb"; +option java_multiple_files = true; +option java_outer_classname = "StructProto"; +option java_package = "com.google.protobuf"; + +message Struct { + map fields = 1; +} + +message Value { + oneof kind { + NullValue null_value = 1; + double number_value = 2; + string string_value = 3; + bool bool_value = 4; + Struct struct_value = 5; + ListValue list_value = 6; + } +} + +message ListValue { + repeated Value values = 1; +} + +enum NullValue { + NULL_VALUE = 0; +} diff --git a/third_party/schema-api/proto/google/protobuf/timestamp.proto b/third_party/schema-api/proto/google/protobuf/timestamp.proto new file mode 100644 index 0000000..df5afd7 --- /dev/null +++ b/third_party/schema-api/proto/google/protobuf/timestamp.proto @@ -0,0 +1,16 @@ +syntax = "proto3"; + +package google.protobuf; + +option csharp_namespace = "Google.Protobuf.WellKnownTypes"; +option objc_class_prefix = "GPB"; +option cc_enable_arenas = true; +option go_package = "google.golang.org/protobuf/types/known/timestamppb"; +option java_multiple_files = true; +option java_outer_classname = "TimestampProto"; +option java_package = "com.google.protobuf"; + +message Timestamp { + int64 seconds = 1; + int32 nanos = 2; +} diff --git a/third_party/schema-api/proto/google/protobuf/type.proto b/third_party/schema-api/proto/google/protobuf/type.proto new file mode 100644 index 0000000..d2135d0 --- /dev/null +++ b/third_party/schema-api/proto/google/protobuf/type.proto @@ -0,0 +1,92 @@ +syntax = "proto3"; + +package google.protobuf; + +import "google/protobuf/any.proto"; +import "google/protobuf/source_context.proto"; + +option csharp_namespace = "Google.Protobuf.WellKnownTypes"; +option objc_class_prefix = "GPB"; +option cc_enable_arenas = true; +option go_package = "google.golang.org/protobuf/types/known/typepb"; +option java_multiple_files = true; +option java_outer_classname = "TypeProto"; +option java_package = "com.google.protobuf"; + +message Type { + string name = 1; + repeated Field fields = 2; + repeated string oneofs = 3; + repeated Option options = 4; + SourceContext source_context = 5; + Syntax syntax = 6; + string edition = 7; +} + +message Field { + Kind kind = 1; + enum Kind { + TYPE_UNKNOWN = 0; + TYPE_DOUBLE = 1; + TYPE_FLOAT = 2; + TYPE_INT64 = 3; + TYPE_UINT64 = 4; + TYPE_INT32 = 5; + TYPE_FIXED64 = 6; + TYPE_FIXED32 = 7; + TYPE_BOOL = 8; + TYPE_STRING = 9; + TYPE_GROUP = 10; + TYPE_MESSAGE = 11; + TYPE_BYTES = 12; + TYPE_UINT32 = 13; + TYPE_ENUM = 14; + TYPE_SFIXED32 = 15; + TYPE_SFIXED64 = 16; + TYPE_SINT32 = 17; + TYPE_SINT64 = 18; + } + + Cardinality cardinality = 2; + enum Cardinality { + CARDINALITY_UNKNOWN = 0; + CARDINALITY_OPTIONAL = 1; + CARDINALITY_REQUIRED = 2; + CARDINALITY_REPEATED = 3; + } + + int32 number = 3; + string name = 4; + string type_url = 6; + int32 oneof_index = 7; + bool packed = 8; + repeated Option options = 9; + string json_name = 10; + string default_value = 11; +} + +message Enum { + string name = 1; + repeated EnumValue enumvalue = 2; + repeated Option options = 3; + SourceContext source_context = 4; + Syntax syntax = 5; + string edition = 6; +} + +message EnumValue { + string name = 1; + int32 number = 2; + repeated Option options = 3; +} + +message Option { + string name = 1; + Any value = 2; +} + +enum Syntax { + SYNTAX_PROTO2 = 0; + SYNTAX_PROTO3 = 1; + SYNTAX_EDITIONS = 2; +} diff --git a/third_party/schema-api/proto/google/protobuf/wrappers.proto b/third_party/schema-api/proto/google/protobuf/wrappers.proto new file mode 100644 index 0000000..9b895d3 --- /dev/null +++ b/third_party/schema-api/proto/google/protobuf/wrappers.proto @@ -0,0 +1,47 @@ +syntax = "proto3"; + +package google.protobuf; + +option csharp_namespace = "Google.Protobuf.WellKnownTypes"; +option objc_class_prefix = "GPB"; +option cc_enable_arenas = true; +option go_package = "google.golang.org/protobuf/types/known/wrapperspb"; +option java_multiple_files = true; +option java_outer_classname = "WrappersProto"; +option java_package = "com.google.protobuf"; + +message DoubleValue { + double value = 1; +} + +message FloatValue { + float value = 1; +} + +message Int64Value { + int64 value = 1; +} + +message UInt64Value { + uint64 value = 1; +} + +message Int32Value { + int32 value = 1; +} + +message UInt32Value { + uint32 value = 1; +} + +message BoolValue { + bool value = 1; +} + +message StringValue { + string value = 1; +} + +message BytesValue { + bytes value = 1; +} diff --git a/third_party/schema-api/proto/google/rpc/status.proto b/third_party/schema-api/proto/google/rpc/status.proto new file mode 100644 index 0000000..80a4690 --- /dev/null +++ b/third_party/schema-api/proto/google/rpc/status.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +package google.rpc; + +import "google/protobuf/any.proto"; + +option objc_class_prefix = "RPC"; +option cc_enable_arenas = true; +option go_package = "google.golang.org/genproto/googleapis/rpc/status;status"; +option java_multiple_files = true; +option java_outer_classname = "StatusProto"; +option java_package = "com.google.rpc"; + +message Status { + int32 code = 1; + string message = 2; + repeated protobuf.Any details = 3; +} diff --git a/third_party/schema-api/proto/myteamspeak_addon.proto b/third_party/schema-api/proto/myteamspeak_addon.proto new file mode 100644 index 0000000..90377a2 --- /dev/null +++ b/third_party/schema-api/proto/myteamspeak_addon.proto @@ -0,0 +1,80 @@ +syntax = "proto3"; + +package com.teamspeak.myteamspeak.proto.addon; + +option java_generic_services = true; +option cc_generic_services = true; +option optimize_for = SPEED; + +service UserAddonService { + rpc requestDownload(GetDownload) returns (Download); +} + +message GetDownload { + string addonUUID = 1; + int32 currentVersion = 2; + Platform platform = 3; + ClientApi clientapi = 4; + ClientApi minClientapi = 5; +} + +message Download { + FileData downloadInfo = 1; + int32 currentVersion = 2; + ReturnCode returnCode = 3; + repeated string addonList = 4; + string hostUrl = 5; +} + +message ClientApi { + int32 plugin = 1; + int32 style = 2; + int32 soundpack = 3; + int32 translation = 4; + int32 iconpack = 5; +} + +message FileData { + string url = 1; + int32 size = 2; + string sha1 = 3; +} + +enum ApiType { + UNKNOWN_APITYPE = 0; + PLUGIN = 1; + STYLE = 2; + SOUNDPACK = 3; + TRANSLATION = 4; + ICONPACK = 5; + GROUPADDON = 6; +} + +enum ReturnCode { + UNKNOWN_RETURNCODE = 0; + ADDON_NOT_FOUND = 1; + PLATFORM_NOT_FOUND = 2; + UPTODATE = 3; + UPDATE = 4; + GROUP = 5; +} + +enum Platform { + UNKNOWN_PLATFORM = 0; + WINDOWS_X86 = 1; + WINDOWS_X86_64 = 2; + LINUX_X86 = 3; + LINUX_X86_64 = 4; + OSX_X86 = 5; + OSX_X86_64 = 6; +} + +enum Status { + UNKNOWN_STATUS = 0; + DRAFT = 1; + PENDING = 2; + APPROVED = 3; + REJECTED = 4; + REVIEW = 5; + TRASHED = 6; +} diff --git a/third_party/schema-api/proto/myteamspeak_avatar_common.proto b/third_party/schema-api/proto/myteamspeak_avatar_common.proto new file mode 100644 index 0000000..fb01e66 --- /dev/null +++ b/third_party/schema-api/proto/myteamspeak_avatar_common.proto @@ -0,0 +1,44 @@ +syntax = "proto3"; + +package com.teamspeak.myteamspeak.proto; + +import "google/protobuf/any.proto"; + +option java_generic_services = true; +option cc_generic_services = true; +option optimize_for = SPEED; + +message AvatarData { + AvatarInfo info = 1; + uint64 timestamp = 2; + bytes sign = 3; + google.protobuf.Any optional = 4; +} + +message OptionalAvatarDataContactInfo { + bytes mytsid = 1; + bytes user_cert = 2; +} + +message AvatarInfo { + repeated AvatarMap map = 1; + message AvatarMap { + AvatarState state = 1; + string name = 2; + } +} + +enum AvatarError { + AVATAR_ERROR_INVALID = 0; + AVATAR_ERROR_OK = 1; + AVATAR_ERROR_CRITICAL = 2; + AVATAR_SESSION_INVALID = 3; +} + +enum AvatarState { + AVATAR_STATE_INVALID = 0; + AVATAR_STATE_DND = 1; + AVATAR_STATE_ONLINE = 2; + AVATAR_STATE_AWAY = 3; + AVATAR_STATE_OFFLINE = 4; +} diff --git a/third_party/schema-api/proto/myteamspeak_common.proto b/third_party/schema-api/proto/myteamspeak_common.proto new file mode 100644 index 0000000..5c77bba --- /dev/null +++ b/third_party/schema-api/proto/myteamspeak_common.proto @@ -0,0 +1,163 @@ +syntax = "proto3"; + +package com.teamspeak.myteamspeak.proto; + +import "myteamspeak_avatar_common.proto"; +import "synchronization_common.proto"; + +option java_generic_services = true; +option cc_generic_services = true; +option optimize_for = SPEED; + +message Limits { + uint32 limitID = 1; + int32 value = 2; +} + +message LoginData { + string email = 1; + string password = 2; + bool skipSession = 3; + LoginOrigin origin = 4; + synchronization.Sync_Version sync_version = 5; + string otp = 6; + string device_id = 7; + string otp_renewal_token = 8; + string device_name = 9; +} + +message MyTeamSpeakIdData { + bytes user_public_key = 1; + + UserPrivateKey user_private_key = 2; + message UserPrivateKey { + bytes encrypted_user_private_key = 1; + bytes decrypted_user_private_key = 2; + } + + uint64 account_creation_time = 3; + bytes my_teamspeak_id = 4; + bytes public_signature = 5; +} + +message MyTSUserCertificate { + bytes cert = 1; +} + +message LoginSession { + bytes key = 1; + string session = 2; + string uuid = 4; + repeated Limits limits = 3; + int64 purge = 6; + AddonDevStatus addon_dev = 7; + string username = 8; + ErrorCommon error = 5; + MyTeamSpeakIdData myts_id_data = 9; + MyTSUserCertificate mytsid_user_cert = 10; + AvatarData user_avatar = 11; + string push_token = 12; + Permissions permission = 13; + UserData user_data = 14; + + AlternativeLoginInformation alternative_login_info = 16; + message AlternativeLoginInformation { + string renewal_token = 1; + string otp_renewal_token = 2; + string device_id = 3; + } +} + +message Session { + string session = 1; +} + +message EncryptionKey { + LoginData LoginData = 1; + bytes key = 2; +} + +message EncryptionKeyResult { + bool success = 1; + ErrorCommon errorcode = 2; + string error = 3; +} + +message LoginStatus { + ErrorCommon error = 1; + string uuid = 2; +} + +message Permissions { + repeated string permission = 1; +} + +message UserData { + string description = 1; +} + +message AuthTokenRequest { + string email = 1; + string password = 2; +} + +message AuthTokenReply { + string auth_token = 1; + ErrorCommon error = 3; +} + +message AuthTokenLogin { + string auth_token = 1; + string device_description = 2; +} + +message RenewalTokenLogin { + string renewal_token = 1; + string auth_token = 2; +} + +message AuthToken { + string id = 1; + string mytsid = 2; +} + +message RenewalToken { + string token = 1; + AuthToken auth_token = 2; +} + +enum AddonDevStatus { + UNKNOWN_ADDONDEVSTATUS = 0; + REQUESTED = 1; + CONFIRMATION_PENDING = 2; + CONFIRMED = 5; + APPROVED = 3; + REJECTED = 4; + BANNED = 6; +} + +enum LoginOrigin { + CLIENT = 0; + WEBSITE = 1; +} + +enum ErrorCommon { + UNKNOWN_ERRORCOMMON = 0; + ERROR_FE_UNKNOWN_METHOD = 100; + ERROR_FE_UNKNOWN_DATA = 101; + ERROR_SESSION_OK = 102; + ERROR_SESSION_EXPIRED = 103; + ERROR_SESSION_SERVER_OFFLINE = 104; + ERROR_LOGIN_OK = 200; + ERROR_LOGIN_OFFLINE = 201; + ERROR_LOGIN_FAILED = 202; + ERROR_LOGIN_EMAIL_PENDING = 203; + ERROR_SESSION_DELETED_OK = 204; + ERROR_PUSH_TOKEN_CREATION = 205; + ERROR_AUTH_TOKEN_INVALID = 206; + ERRIR_RENEWAL_TOKEN_INVALID = 207; + ERROR_AUTH_REQUIRES_OTP = 208; + ERROR_2FA_OTP_INVALID = 209; + ERROR_2FA_OTP_SECRET_MISSING = 210; + ERROR_2FA_DEVICE_ID_MISSING = 211; +} diff --git a/third_party/schema-api/proto/myteamspeak_integration_common.proto b/third_party/schema-api/proto/myteamspeak_integration_common.proto new file mode 100644 index 0000000..71ccc3a --- /dev/null +++ b/third_party/schema-api/proto/myteamspeak_integration_common.proto @@ -0,0 +1,78 @@ +syntax = "proto3"; + +package com.teamspeak.myteamspeak.proto.integration; + +message UserIntegrationSubscriptionInfoRequestData { + IntegrationInfo integrations = 1; + bytes signature = 2; + uint64 timestamp = 3; + string virtualserver_id = 4; +} + +message IntegrationResponse { + bytes integration_id = 1; + IntegrationType type = 2; + string special_information = 3; + uint64 cache_valid_timestamp = 4; + ResponseSpecifier response_specifier = 5; +} + +message IntegrationResponseListData { + repeated IntegrationResponse list = 1; +} + +message IntegrationResponseList { + IntegrationResponseListData data = 1; + bytes signature = 2; + bytes signing_certificate = 3; + uint64 timestamp = 4; +} + +message IntegrationInfo { + repeated Entry entry = 1; + message Entry { + bytes integration_id = 1; + IntegrationType type = 2; + } +} + +message ResponseSpecifier { + SpecifierType specifier_type = 1; + string value = 2; +} + +enum SpecifierType { + SPECIFIER_TYPE_INVALID = 0; + SUBSCRIPTION_TYPE = 1; + RELATIONSHIP_TYPE = 2; + TEST_RESPONSE_TYPE = 100; + ANOTHER_TEST_RESPONSE_TYPE = 101; +} + +enum IntegrationType { + INTEGRATION_TYPE_INVALID = 0; + TWITCH = 1; + TEST_INTEGRATION = 100; +} + +enum IntegrationBindingStatus { + STATUS_INVALID = 0; + STATUS_NOT_BOUND = 1; + STATUS_BOUND = 2; + STATUS_BINDING_IN_PROGRESS = 3; +} + +enum IntegrationError { + INTEGRATION_ERROR_INVALID = 0; + INTEGRATION_ERROR_OK = 1; + INTEGRATION_ERROR_INVALID_USER = 2; + INTEGRATION_ERROR_INVALID_INTEGRATION = 3; + INTEGRATION_ERROR_INVALID_INTEGRATION_ID = 4; + INTEGRATION_ERROR_INVALID_PARAMETER = 5; + INTEGRATION_ERROR_INTERNAL = 6; + INTEGRATION_INFO_NOT_PRESENT_YET = 7; + INTEGRATION_ERROR_SESSION_EXPIRED = 8; + INTEGRATION_ERROR_SERVER_NOT_REACHABLE = 9; + INTEGRATION_ERROR_PENDING_PROCESS = 10; + INTEGRATION_ERROR_INVALID_TIMESTAMP = 11; +} diff --git a/third_party/schema-api/proto/myteamspeak_integration_static_info.proto b/third_party/schema-api/proto/myteamspeak_integration_static_info.proto new file mode 100644 index 0000000..0b41c18 --- /dev/null +++ b/third_party/schema-api/proto/myteamspeak_integration_static_info.proto @@ -0,0 +1,31 @@ +syntax = "proto3"; + +package com.teamspeak.myteamspeak.proto.integration; + +import "myteamspeak_integration_common.proto"; + +message StaticIntegrationResponseInformation { + ResponseType type = 1; + string response_type_name = 2; + repeated string possible_values = 3; +} + +message StaticIntegrationInformation { + string integration_name = 1; + string integration_icon = 2; + IntegrationType type = 3; + uint32 version = 4; + repeated StaticIntegrationResponseInformation available_responses = 5; +} + +message StaticIntegrationInformationList { + repeated StaticIntegrationInformation static_integrations = 1; +} + +enum ResponseType { + invalid = 0; + SUBSCRIPTION = 1; + RELATIONSHIP = 2; + TEST_RESPONSE = 100; + ANOTHER_TEST_RESPONSE = 101; +} diff --git a/third_party/schema-api/proto/myteamspeak_integration_user.proto b/third_party/schema-api/proto/myteamspeak_integration_user.proto new file mode 100644 index 0000000..62272e9 --- /dev/null +++ b/third_party/schema-api/proto/myteamspeak_integration_user.proto @@ -0,0 +1,77 @@ +syntax = "proto3"; + +package com.teamspeak.myteamspeak.proto.integration; + +import "myteamspeak_integration_common.proto"; + +option java_generic_services = true; +option cc_generic_services = true; +option optimize_for = SPEED; + +service IntegrationUserService { + rpc getIntegrationUserStatus(RequestIntegrationUserStatus) returns (IntegrationStatusUserResponse); + rpc requestBindIntegration(RequestBindData) returns (RequestBindResponse); + rpc requestUnbindIntegration(RequestUnbindData) returns (RequestBindResponse); + rpc getUserIntegrationSubscriptionInfo(UserIntegrationSubscriptionInfoRequest) returns (UserIntegrationSubscriptionInfoResponse); +} + +message RequestIntegrationUserStatus { + string session = 1; +} + +message IntegrationUserDataEntry { + IntegrationBindingStatus binding_status = 1; + string integration_text = 4; + IntegrationType type = 5; + bytes integration_id = 6; +} + +message IntegrationUserData { + repeated IntegrationUserDataEntry integrations = 1; +} + +message IntegrationStatusUserResponse { + IntegrationError error = 1; + IntegrationUserData data = 2; +} + +message RequestBindData { + string session = 1; + RequestBind data = 2; +} + +message RequestBind { + bytes integration_id = 1; + IntegrationType type = 2; + bytes virtualserver_key = 3; + bytes signature = 4; + uint64 timestamp = 5; + string virtualserver_id = 6; +} + +message RequestUnbindData { + string session = 1; + RequestUnbind data = 2; +} + +message RequestUnbind { + bytes integration_id = 1; + bytes signature = 2; + uint64 timestamp = 3; + string virtualserver_id = 4; +} + +message RequestBindResponse { + IntegrationError error = 1; +} + +message UserIntegrationSubscriptionInfoRequest { + string session_id = 1; + UserIntegrationSubscriptionInfoRequestData data = 2; +} + +message UserIntegrationSubscriptionInfoResponse { + IntegrationError error = 1; + uint32 seconds_to_wait = 2; + IntegrationResponseList integration_response = 3; +} diff --git a/third_party/schema-api/proto/myteamspeak_login.proto b/third_party/schema-api/proto/myteamspeak_login.proto new file mode 100644 index 0000000..da0582e --- /dev/null +++ b/third_party/schema-api/proto/myteamspeak_login.proto @@ -0,0 +1,82 @@ +syntax = "proto3"; + +package com.teamspeak.myteamspeak.proto.login; + +import "myteamspeak_common.proto"; + +option java_generic_services = true; +option cc_generic_services = true; +option optimize_for = SPEED; + +service LoginService { + rpc session(Session) returns (LoginStatus); + rpc deleteSession(Session) returns (LoginStatus); + rpc login(LoginData) returns (LoginSession); + rpc requestAuthToken(AuthTokenRequest) returns (AuthTokenReply); + rpc loginWithAuthToken(AuthTokenLogin) returns (LoginSession); + rpc loginWithRenewalToken(RenewalTokenLogin) returns (LoginSession); + rpc getAuthTokenList(AuthTokenListRequest) returns (AuthTokenListReply); + rpc expireAuthTokenAccess(AuthTokenExpireRequest) returns (AuthTokenExpireReply); + rpc deleteAccount(AccountStatusInfo) returns (AccountStatusReply); + rpc suspendAccount(AccountStatusInfo) returns (AccountStatusReply); + rpc reactivateAccount(AccountStatusInfo) returns (AccountStatusReply); + rpc listSuspensionReasonForUser(AccountEmail) returns (SuspensionReasonForUserReply); +} + +message requestExpireTime { + string uuid = 1; +} + +message replyExpireTime { + int64 purge = 1; +} + +message AuthTokenListRequest { + string email = 1; + string password = 2; +} + +message AuthTokenListReply { + repeated Entry entries = 1; + message Entry { + uint64 creation = 1; + string device_description = 2; + string id = 3; + } +} + +message AuthTokenExpireRequest { + string email = 1; + string password = 2; + repeated string id = 3; +} + +message AuthTokenExpireReply { + bool success = 1; + string error_msg = 2; +} + +message AccountStatusInfo { + string email = 1; + string reason = 2; +} + +message AccountStatusReply { + bool success = 1; + string error_msg = 2; +} + +message AccountEmail { + string email = 1; +} + +message SuspensionReasonForUserReply { + string client_id = 1; + + repeated Reason reasons = 2; + message Reason { + string email = 1; + int64 timestamp = 2; + string reason = 3; + } +} diff --git a/third_party/schema-api/proto/myteamspeak_messenger_connector_client.proto b/third_party/schema-api/proto/myteamspeak_messenger_connector_client.proto new file mode 100644 index 0000000..a9f43fb --- /dev/null +++ b/third_party/schema-api/proto/myteamspeak_messenger_connector_client.proto @@ -0,0 +1,42 @@ +syntax = "proto3"; + +package com.teamspeak.myteamspeak.proto.messengerconnector; + +import "google/protobuf/any.proto"; + +option java_generic_services = true; +option cc_generic_services = true; +option java_multiple_files = true; +option optimize_for = SPEED; + +service MessengerConnectorClientService { + rpc requestCreateMessengerAccount(RequestCreateMessengerAccountRequest) returns (RequestCreateMessengerAccountReply); +} + +message RequestCreateMessengerAccountRequest { + string session = 1; +} + +message RequestCreateMessengerAccountReply { + MessengerConnectorReturnCodesClient return_code = 1; +} + +message InformContactsAvatarHasChangedRequest { + string client_id = 1; +} + +message UsernameHasChangedRequest { + string client_id = 1; + string username = 2; +} + +message GenericMessageWrapper { + google.protobuf.Any message = 1; +} + +enum MessengerConnectorReturnCodesClient { + ERROR_MESSENGER_CLIENT_CODE_INVALID = 0; + SUCCESS_ACCOUNT_CREATED = 1; + ERROR_ACCOUNT_CREATION_FAILED = 100; + ERROR_ACCOUNT_ALREADY_EXISTS = 101; +} diff --git a/third_party/schema-api/proto/myteamspeak_namedserver_common.proto b/third_party/schema-api/proto/myteamspeak_namedserver_common.proto new file mode 100644 index 0000000..adb295c --- /dev/null +++ b/third_party/schema-api/proto/myteamspeak_namedserver_common.proto @@ -0,0 +1,31 @@ +syntax = "proto3"; + +package com.teamspeak.myteamspeak.proto.namedserver; + +option java_generic_services = true; +option cc_generic_services = true; +option optimize_for = SPEED; + +message IpAddress { + string ipv4 = 1; + string ipv6 = 2; +} + +message NamedServerTarget { + oneof target { + string domain_name = 1; + IpAddress ip_address = 2; + } +} + +message User { + string uuid = 1; + string session = 2; +} + +message NamedServer { + User user = 1; + string server_name = 2; + NamedServerTarget target = 3; + string session = 4; +} diff --git a/third_party/schema-api/proto/myteamspeak_push.proto b/third_party/schema-api/proto/myteamspeak_push.proto new file mode 100644 index 0000000..0d71546 --- /dev/null +++ b/third_party/schema-api/proto/myteamspeak_push.proto @@ -0,0 +1,38 @@ +syntax = "proto3"; + +package com.teamspeak.myteamspeak.proto.push; + +import "google/protobuf/any.proto"; + +message IntermediateData { + string uuid = 1; + google.protobuf.Any payload = 2; +} + +message PushNotification { + google.protobuf.Any payload = 1; +} + +message SimpleNotification { + SimpleNotificationType type = 1; + bool relogin_neccessary = 2; +} + +message ContactAvatarChanged { + repeated string kid = 1; +} + +message TsChatAvatarChanged { + repeated bytes mytsid = 1; +} + +message AuthTokenUsed { + string id_hash = 1; +} + +enum SimpleNotificationType { + SIMPLE_NOTIFICATION_TYPE_INVALID = 0; + SIMPLE_NOTIFICATION_SYNC_DATA_CHANGED = 1; + SIMPLE_NOTIFICATION_SESSION_EXPIRED = 2; + SIMPLE_NOTIFICATION_CONTACT_HOMEBASE_CHANGED = 3; +} diff --git a/third_party/schema-api/proto/myteamspeak_synchronization.proto b/third_party/schema-api/proto/myteamspeak_synchronization.proto new file mode 100644 index 0000000..dbeb31c --- /dev/null +++ b/third_party/schema-api/proto/myteamspeak_synchronization.proto @@ -0,0 +1,14 @@ +syntax = "proto3"; + +package com.teamspeak.myteamspeak.proto.synchronization; + +import "synchronization_common.proto"; + +option java_generic_services = true; +option cc_generic_services = true; +option optimize_for = SPEED; + +service SynchronizationService { + rpc requestServerItems(Sync_Request_ItemClasses) returns (Sync_Reply_ItemClasses); + rpc synchronizeItems(Sync_Request_ItemClasses) returns (Sync_Reply_ItemClasses); +} diff --git a/third_party/schema-api/proto/myteamspeak_tschat.proto b/third_party/schema-api/proto/myteamspeak_tschat.proto new file mode 100644 index 0000000..61740be --- /dev/null +++ b/third_party/schema-api/proto/myteamspeak_tschat.proto @@ -0,0 +1,138 @@ +syntax = "proto3"; + +package com.teamspeak.myteamspeak.proto.tschat; + +option java_generic_services = true; +option cc_generic_services = true; +option java_multiple_files = true; +option optimize_for = SPEED; + +service ChatRequests { + rpc createAccount(AuthenticatedUser) returns (CreateAccountResponse); + rpc moveHome(MoveRequest) returns (ErrorHandling); + rpc getContactList(AuthenticatedUser) returns (ContactList); + rpc updateContact(ContactRequest) returns (ErrorHandling); + rpc updateContactList(ContactRequestList) returns (ErrorHandling); + rpc removeContact(ContactRequest) returns (ErrorHandling); + rpc setPrimaryIdentifier(IdentifierRequest) returns (TschatIdentifierList); + rpc addIdentifier(IdentifierRequest) returns (TschatIdentifierList); + rpc removeIdentifier(IdentifierRequest) returns (TschatIdentifierList); + rpc getActiveIdentifierList(AuthenticatedUser) returns (TschatIdentifierList); + rpc getAllowedIdentifierList(AuthenticatedUser) returns (TschatIdentifierList); + rpc getGroupSessionData(GroupSessionRequest) returns (GroupSessionResponse); + rpc uploadGroupSessionData(GroupSessionRequest) returns (ErrorHandling); + rpc clearAllGroupSessions(AuthenticatedUser) returns (ErrorHandling); + rpc clearGroupSessions(GroupSessionRequest) returns (ErrorHandling); + rpc requestSignedAllowedIdentifierList(AuthenticatedUser) returns (SignedAllowedIdentifier); +} + +message GroupSessionRequest { + AuthenticatedUser user = 1; + repeated GroupSession group_sessions = 2; +} + +message GroupSessionResponse { + ErrorHandling error = 1; + repeated GroupSession group_sessions = 2; +} + +message GroupSession { + string room_id = 1; + string shared_session_id = 2; + string cipher_text = 3; +} + +message AuthenticatedUser { + string session = 1; + string matrix_id = 2; +} + +message Contact { + string ts_chat_identifier = 1; + string note = 2; + string matrix_id = 3; + repeated MxidHistory matrix_id_history = 4; +} + +message MxidHistory { + string matrix_id = 1; + uint64 initiation_timestamp = 2; +} + +message ContactList { + repeated Contact contacts = 1; + ErrorHandling error_handling = 2; +} + +message ChatCredentials { + string domain = 1; + string username = 2; + string password = 3; +} + +message CreateAccountResponse { + ErrorHandling error_handling = 1; + ChatCredentials chat_credentials = 2; +} + +message MoveRequest { + AuthenticatedUser user = 1; + string new_matrix_id = 2; +} + +message ContactRequest { + AuthenticatedUser user = 1; + Contact contact = 2; +} + +message ContactRequestList { + AuthenticatedUser user = 1; + repeated Contact contacts = 2; +} + +message IdentifierRequest { + AuthenticatedUser user = 1; + TschatIdentifierMapping ts_chat_identifier_mapping = 2; +} + +message TschatIdentifierMapping { + string ts_chat_identifier = 1; + string matrix_id = 2; + bool primary = 3; +} + +message TschatIdentifierList { + repeated TschatIdentifierMapping ts_chat_identifier_mapping = 1; + ErrorHandling error_handling = 2; +} + +message TschatIdentifierTagList { + repeated string tag = 1; +} + +message MatrixIdentifierToken { + bytes signature = 1; + bytes sign_certificate = 2; + uint64 timestamp = 3; + TschatIdentifierTagList tags = 4; +} + +message SignedAllowedIdentifier { + MatrixIdentifierToken token = 1; + ErrorHandling error = 2; +} + +message ErrorHandling { + ChatRequestReturnCode return_code = 1; + string message = 2; +} + +enum ChatRequestReturnCode { + CHATREQUESTRETURNCODE_ERROR_UNKNOWN = 0; + CHATREQUESTRETURNCODE_SUCCESS = 1; + CHATREQUESTRETURNCODE_CONNECTION = 2; + CHATREQUESTRETURNCODE_INTERNAL = 3; + CHATREQUESTRETURNCODE_REQUEST = 4; + CHATREQUESTRETURNCODE_SESSION_EXPIRED = 5; + CHATREQUESTRETURNCODE_ACCOUNT_CREATION_DISABLED = 6; +} diff --git a/third_party/schema-api/proto/myteamspeak_user.proto b/third_party/schema-api/proto/myteamspeak_user.proto new file mode 100644 index 0000000..afe02e5 --- /dev/null +++ b/third_party/schema-api/proto/myteamspeak_user.proto @@ -0,0 +1,467 @@ +syntax = "proto3"; + +package com.teamspeak.myteamspeak.proto.user; + +import "google/protobuf/any.proto"; +import "myteamspeak_common.proto"; +import "myteamspeak_tschat.proto"; +import "myteamspeak_avatar_common.proto"; +import "myteamspeak_integration_user.proto"; +import "myteamspeak_namedserver_common.proto"; +import "synchronization_common.proto"; + +option java_generic_services = true; +option cc_generic_services = true; +option optimize_for = SPEED; + +service UserAccountService { + rpc addUser(UserData) returns (ReturnCode); + rpc updateUser(UserData) returns (ReturnCode); + rpc getBackupKey(UserLogin) returns (BackupKeyData); + rpc getBadges(Session) returns (UserBadgesList); + rpc redeemBadgeCode(BadgeCode) returns (RedeemBadgeCodeResponse); + rpc setNewUserPublicKey(NewUserPublicKeyData) returns (NewUserPublicKeyDataResponse); + rpc requestContactsAvatar(RequestContactsAvatarInfoRequest) returns (RequestContactsAvatarInfoResponse); + rpc getSignedBadges(Session) returns (UserBadgesSignedResponse); + rpc requestVoiceServer(VoiceServerRequest) returns (VoiceServerResponse); + rpc requestVoiceServerLocation(SpawnVoiceServerLocationRequest) returns (SpawnVoiceServerLocationResponse); + rpc deleteSpawnedVoiceServer(VoiceServerRequest) returns (ReturnCode); + rpc listSpawnedVoiceServer(Session) returns (SpawnedVoiceServerListResponse); + rpc startVoiceServer(VoiceServerRequest) returns (VoiceServerResponse); + rpc stopVoiceServer(VoiceServerRequest) returns (VoiceServerResponse); + rpc readVoiceServerStatus(VoiceServerRequest) returns (VoiceServerResponse); + rpc requestAvatarSignedUrl(AvatarSignedUrlRequest) returns (AvatarSignedUrlResponse); + rpc requestUploadAvatar(RequestUploadAvatarRequest) returns (RequestUploadAvatarResponse); + rpc requestDeleteAvatar(RequestDeleteAvatarInfoRequest) returns (ReturnCode); + rpc changeEmail(EmailChange) returns (ReturnCode); + rpc resetAccount(ResetAccountRequest) returns (ReturnCode); + rpc updateUserDescription(UpdateUserDescriptionRequest) returns (ReturnCode); + rpc requestUploadFile(UploadFileRequest) returns (FileInfo); + rpc requestDownloadFile(DownloadFileRequest) returns (FileInfo); + rpc generateOtpSetupSecret(TwoFactorAuthTypeRequest) returns (OtpSecretResponse); + rpc updateTwoFactorAuthType(UpdateTwoFactorAuthTypeRequest) returns (ReturnCode); + rpc confirmTwoFactorAuthTypeOtp(TwoFactorAuthTypeOtpConfirmationRequest) returns (ReturnCode); + rpc removeTwoFactorAuthType(TwoFactorAuthTypeRequest) returns (ReturnCode); + rpc getTwoFactorAuthType(Session) returns (TwoFactorAuthTypeResponse); + rpc registerFirebasePush(RegisterFirebasePush) returns (ReturnCode); + rpc getAccountData(AccountDataRequest) returns (UserAccountData); +} + +message BackupKeyData { + ReturnCode returncode = 1; + bytes backupkey = 2; +} + +message UserData { + UserLogin login = 1; + string username = 2; + bytes key = 3; + bytes backupkey = 4; + UserImg image = 5; + UserLogin login_old = 6; + bool force_key_overwrite = 8; + bool delete_mytsid_data = 9; + string session = 10; + + reserved 7; +} + +message UserLogin { + string email = 1; + string password = 2; +} + +message UserImg { + +} + +message Session { + string session = 1; +} + +message BadgeCode { + string code = 1; + string session = 2; +} + +message UserBadge { + string uuid = 1; + int64 received = 2; + string name = 3; + string description = 4; + string url = 5; +} + +message SignedUserBadge { + UserBadge badge = 1; + bytes sign = 2; + uint64 sign_timestamp = 3; +} + +message UserBadgesSignedResponse { + UserBadgesSignedList list = 1; + ErrorReturnCode error_code = 2; +} + +message UserBadgesSignedList { + repeated SignedUserBadge badges = 1; +} + +message UserBadgesList { + repeated UserBadge badges = 1; + ErrorReturnCode error_code = 2; +} + +message RedeemBadgeCodeResponse { + bool success = 1; + string error = 2; + ErrorReturnCode error_code = 3; + string badge_uuid = 4; +} + +message ReturnCode { + bool success = 1; + string error = 2; + ErrorReturnCode error_code = 3; + string client_id = 4; +} + +message NewUserPublicKeyData { + Session session = 1; + bytes user_public_key = 2; + bytes proof = 3; + bytes encrypted_user_private_key = 4; +} + +message NewUserPublicKeyDataResponse { + uint64 account_creation_time = 1; + bytes myts_id = 2; + bytes public_signature = 3; + ErrorReturnCode error = 4; +} + +message AvatarRequestID { + google.protobuf.Any key = 1; + + message MYTSKey { + bytes id = 1; + } + + message KIDKey { + string id = 1; + } +} + +message RequestContactsAvatarInfoRequest { + string session = 1; + repeated AvatarRequestID id = 2; +} + +message RequestContactsAvatarInfoResponse { + repeated AvatarInfoMap data = 1; + message AvatarInfoMap { + AvatarRequestID id = 1; + AvatarData info = 2; + } + + ErrorReturnCode error_code = 2; +} + +message SpawnVoiceServerLocationRequest { + string session = 1; + string ip_address = 2; +} + +message SpawnVoiceServerLocationResponse { + ReturnCode return_code = 1; + repeated SpawnVoiceServerLocation possible_location = 2; +} + +message SpawnVoiceServerLocation { + repeated string address = 1; + string status = 2; + int64 connected_clients = 3; + int64 used_slots = 4; + int64 used_channels = 5; + int64 used_server = 6; +} + +message SpawnedVoiceServerListResponse { + ReturnCode return_code = 2; + repeated VoiceServerPayload payload = 3; + + reserved 1; +} + +message SpawnedVoiceServer { + string server_uid = 1; + repeated string address = 2; +} + +message VoiceServerRequest { + string session = 1; + VoiceServerPayload payload = 2; +} + +message VoiceServerResponse { + ReturnCode return_code = 1; + VoiceServerPayload payload = 2; +} + +message VoiceServerOperation { + string operation = 1; + VoiceServerPayload payload = 2; +} + +message VoiceServerPayload { + string virtualserver_uuid = 1; + string virtualserver_name = 2; + string virtualserver_welcomemessage = 3; + uint32 virtualserver_maxclients = 4; + string virtualserver_password = 5; + string virtualserver_hostname = 6; + uint32 virtualserver_port = 7; + string virtualserver_token = 8; + string virtualserver_status = 9; + uint32 virtualserver_uptime = 10; + uint32 virtualserver_clientsonline = 11; + uint32 virtualserver_total_ping = 12; + string virtualserver_location = 13; + string virtualserver_unique_identifier = 14; +} + +message RequestUploadAvatarRequest { + string session = 1; + + repeated AvatarImageMap image_names = 2; + message AvatarImageMap { + AvatarState state = 1; + string name = 2; + } +} + +message RequestUploadAvatarResponse { + AvatarError error = 1; +} + +message RequestDeleteAvatarInfoRequest { + string session = 1; + repeated AvatarState images = 2; +} + +message AvatarSignedUrlRequest { + string session = 1; + repeated string file_names = 2; +} + +message AvatarSignedUrlResponse { + ReturnCode return_code = 1; + + repeated SignedUrl signed_urls = 2; + message SignedUrl { + string file_name = 1; + string signed_url = 2; + } +} + +message EmailChange { + string email = 1; + string session = 2; + string validationKey = 3; + bytes key = 4; + string newPw = 5; + string currentPw = 6; +} + +message ResetAccountRequest { + string session = 1; + bytes key = 2; + bytes backup_key = 3; + NewUserPublicKeyData myts_id = 4; +} + +message UpdateUserDescriptionRequest { + string session = 1; + string description = 2; +} + +message UploadFileRequest { + string session = 1; + string user_id = 2; + string room_id = 3; +} + +message DownloadFileRequest { + string session = 1; + string user_id = 2; + string room_id = 3; + string file_id = 4; +} + +message FileInfo { + bool success = 1; + ErrorReturnCode error = 2; + string user_id = 3; + string room_id = 4; + string file_id = 5; + string signed_url = 6; +} + +message OtpSecretResponse { + string otp_secret = 1; + bytes otp_qr_code_image = 2 [deprecated = true]; + string otp_qr_code_mime_type = 3 [deprecated = true]; + ReturnCode return_code = 4; +} + +message UpdateTwoFactorAuthTypeRequest { + string session = 1; + AuthType auth_type = 2; +} + +message TwoFactorAuthTypeRequest { + string session = 1; + AuthType auth_type = 2; + UserLogin user_login = 3; +} + +message TwoFactorAuthTypeOtpConfirmationRequest { + string session = 1; + AuthType auth_type = 2; + UserLogin user_login = 3; + string otp = 4; +} + +message TwoFactorAuthTypeResponse { + repeated AuthType auth_type = 1; + ReturnCode return_code = 2; +} + +message RegisterFirebasePush { + string session = 1; + string deviceToken = 2; +} + +message AuthenticatedDevice { + string device_id = 1; + string device_name = 2; + int64 first_login = 3; + int64 last_login = 4; + string region = 5; + int64 expiry = 6; +} + +message UsernameChangeAllowance { + int64 last_free_change_at = 1; + int64 additional_allowance = 2; +} + +message Community { + string entity_id = 1; + string client_id = 2; + string community_id = 3; + string stripe_customer_id = 4; + string stripe_subscription_id = 5; + int64 created = 6; + int64 updated = 7; + string state = 8; +} + +message UserMetadata { + map metadata = 1; +} + +message UserAccountData { + ReturnCode return_code = 1; + string username = 2; + string email_address = 3; + string ts_chat_id = 4; + AvatarInfo avatarInfo = 5; + integration.IntegrationUserData integrations = 6; + int64 registration_date = 7; + string description = 8; + tschat.ContactList chat_contacts = 9; + tschat.TschatIdentifierList ts_chat_identifier_list_active = 10; + tschat.TschatIdentifierList ts_chat_identifier_list_allowed = 11; + repeated UserBadge badges = 12; + repeated namedserver.NamedServer namedservers = 13; + Permissions permissions = 14; + int64 last_login = 15; + int64 last_update = 16; + string author_name = 17; + string phone = 18; + EmailChange email_change = 19; + repeated AuthenticatedDevice authenticated_devices = 20; + int64 last_password_change = 21; + UsernameChangeAllowance usernameChangeAllowance = 22; + repeated Community communities = 23; + int64 last_username_change = 24; + synchronization.Sync_Reply_ItemClasses sync_items = 25; + UserMetadata user_metadata = 26; +} + +message AccountDataRequest { + string session = 1; + repeated UserAccountDataSelector selector = 2; + string client_id = 3; +} + +enum UserAccountDataSelector { + ALL = 0; + BASIC_INFO = 1; + TS_CHAT = 2; + AVATARS = 3; + INTEGRATIONS = 4; + DESCRIPTION = 5; + BADGES = 6; + NAMEDSERVER = 7; + PERMISSIONS = 8; + EMAIL_CHANGE = 9; + AUTHENTICATED_DEVICES = 10; + USERNAME_CHANGE_ALLOWANCE = 11; + COMMUNITIES = 12; + SYNC = 13; + METADATA = 14; +} + +enum AuthType { + AUTH_TYPE_UNSPECIFIED = 0; + AUTH_TYPE_OTP = 1; +} + +enum ErrorReturnCode { + UNKNOWN_ERRORRETURNCODE = 0; + ERROR_MISSING_REQUIRED_FIELD = 100; + ERROR_EMAIL_ALREADY_TAKEN = 101; + ERROR_UUID_COLLISION = 102; + ERROR_DATABASE = 103; + ERROR_LOGIN_FAILED = 104; + ERROR_EMPTY_KEY = 105; + ERROR_EMAIL_INVALID = 106; + ERROR_NOT_ALLOWED = 107; + ERROR_USERNAME_ALREADY_TAKEN = 108; + ERROR_SESSION_EXPIRED = 109; + ERROR_CODE_INVALID = 110; + ERROR_USERNAME_INVALID = 111; + ERROR_BADGE_ALREADY_PRESENT = 112; + ERROR_KEY_ALREADY_PRESENT = 113; + ERROR_INVALID_KEY = 114; + ERROR_INVALID_PROOF = 115; + ERROR_INTERNAL = 116; + ERROR_QUOTA_EXCEEDED = 117; + ERROR_CHANGE_EMAIL_FAILED = 118; + ERROR_CHANGE_EMAIL_FAILED_MISSING_FIELD = 119; + ERROR_CHANGE_EMAIL_FAILED_FUNCTIONAL_EMAIL_FORMAT = 120; + ERROR_CHANGE_EMAIL_FAILED_FUNCTIONAL_EQUAL_EMAIL = 121; + ERROR_CHANGE_EMAIL_FAILED_FUNCTIONAL_TARGET_EXISTS = 122; + ERROR_CHANGE_EMAIL_FAILED_FUNCTIONAL_ALREADY_PENDING = 123; + ERROR_GENERATE_OTP_SETUP_SECRET_FAILED = 124; + ERROR_GET_TWO_FACTOR_AUTH_TYPE_FAILED = 125; + ERROR_UPDATE_TWO_FACTOR_AUTH_TYPE_FAILED = 126; + ERROR_VOICE_SERVER_START_FAILED = 127; + ERROR_VOICE_SERVER_STOP_FAILED = 128; + ERROR_VOICE_SERVER_READ_FAILED = 129; + ERROR_VOICE_SERVER_TOO_MANY_REQUESTS = 130; + ERROR_VOICE_SERVER_CREATE_FAILED = 131; + ERROR_VOICE_SERVER_DELETE_FAILED = 132; +} diff --git a/third_party/schema-api/proto/myteamspeak_user_management.proto b/third_party/schema-api/proto/myteamspeak_user_management.proto new file mode 100644 index 0000000..e992972 --- /dev/null +++ b/third_party/schema-api/proto/myteamspeak_user_management.proto @@ -0,0 +1,459 @@ +syntax = "proto3"; + +package com.teamspeak.myteamspeak.proto.management.user; + +import "myteamspeak_common.proto"; +import "global_badge_list.proto"; + +option java_generic_services = true; +option cc_generic_services = true; +option optimize_for = SPEED; + +service UserManagementService { + rpc listUser(SearchLimit) returns (UserLightDataList); + rpc getUserInfo(Request) returns (UserLightData); + rpc getKey(Request) returns (KeyData); + rpc deleteUser(Request) returns (UserManagementReturnCode); + rpc activateUser(Activation) returns (UserManagementReturnCode); + rpc requestNewActivation(Activation) returns (UserManagementReturnCode); + rpc setAddonDevStatus(AddonDevRequest) returns (AddonDevReturnCode); + rpc requestPasswordReset(PasswordResetRequest) returns (UserManagementReturnCode); + rpc resetPassword(PasswordResetRequest) returns (UserManagementReturnCode); + rpc generateBadgeCodes(BadgeCodesRequest) returns (BadgeCodes); + rpc changeEmail(EmailChange) returns (UserManagementReturnCode); + rpc changeEmail2(EmailChange) returns (UserManagementReturnCode); + rpc changeEmail3(EmailChange) returns (UserManagementReturnCode); + rpc assignBadge(AssignBadgeRequest) returns (UserManagementReturnCode); + rpc getUserData(Request) returns (UserFullData); + rpc forceRename(UserRenameRequest) returns (UserManagementReturnCode); + rpc addBadge(AddBadgeRequest) returns (AddBadgeReturnCode); + rpc listBadges(Session) returns (ListBadgesReturnCode); + rpc getBadgeStatistics(BadgeStatisticsRequest) returns (BadgeStatisticsReturnCode); + rpc deleteBadge(Request) returns (DeleteBadgeReturnCode); + rpc updateBadge(UpdateBadgeRequest) returns (AddBadgeReturnCode); + rpc updateBadgeCode(BadgeCodesRequest) returns (BadgeCodeReturnCode); + rpc deleteBadgeCode(BadgeCodesRequest) returns (UserManagementReturnCode); + rpc listBadgeCodes(BadgeCodesRequest) returns (ListBadgeCodesResponse); + rpc addOAuthClient(OAuthClientRequest) returns (OAuthClientReturnCode); + rpc updateOAuthClient(OAuthClientRequest) returns (OAuthClientReturnCode); + rpc deleteOAuthClient(OAuthClientRequest) returns (UserManagementReturnCode); + rpc listOAuthClients(Request) returns (ListOAuthClientsReturnCode); + rpc searchUser(SearchTerm) returns (UserLightDataList); + rpc addPermission(PermissionRequest) returns (UserManagementReturnCode); + rpc removePermission(PermissionRequest) returns (UserManagementReturnCode); + rpc removeBadgeFromUser(AssignBadgeRequest) returns (UserManagementReturnCode); + rpc createCommunity(TSCommunityRequest) returns (TSCommunityList); + rpc listCommunities(TSCommunityListRequest) returns (TSCommunityList); + rpc updateCommunity(TSCommunityRequest) returns (TSCommunityList); + rpc setRenameAllowance(RenameAllowanceRequest) returns (UserManagementReturnCode); + rpc deleteTSChatAccount(Request) returns (UserManagementReturnCode); + rpc getUserStatistics(UserStatisticsRequest) returns (UserStatisticsResponse); + rpc getAllUserStatistics(UserStatisticsRequest) returns (AllUserStatisticsResponse); +} + +message SearchLimit { + int32 request_size = 1; + string last_uuid = 2; +} + +message Activation { + string email = 1; + string key = 2; +} + +message Request { + string session = 3; + + oneof request_oneof { + string email = 1; + string uuid = 2; + string username = 4; + string self_deletion_validation_key = 5; + } +} + +message AddonDevRequest { + string uuid = 1; + AddonDevStatus new_status = 2; + bool revoke = 3; + string author_name = 7; + PhoneNumber phone = 9; + string confirmation_code = 4; + string rejection_reason = 10; + string notes = 11; + + reserved 8; +} + +message PhoneNumber { + string country_code = 1; + string national_number = 2; +} + +message PasswordResetRequest { + string email = 1; + string key = 2; + string password = 3; +} + +message BadgeCodesRequest { + string badge_uuid = 1; + int32 count = 2; + string expiry = 3; + bool multiple_use = 4; + int32 quota = 5; + int64 activation_start_timestamp = 6; + int64 activation_end_timestamp = 7; + string badge_code = 8; + string session = 9; + string generation_style = 10; +} + +message ListBadgeCodesResponse { + bool success = 1; + string error = 2; + UserManagementErrorReturnCode error_code = 3; + repeated BadgeCodesRequest badge_codes = 4; +} + +message UserLightDataList { + repeated UserLightData userlist = 1; + UserManagementErrorReturnCode error_code = 2; + bool success = 3; + string error_message = 4; +} + +message UserLightData { + string uuid = 1; + string email = 2; + string username = 3; + UserDetailData details = 4; + UserManagementErrorReturnCode error_code = 5; +} + +message UserDetailData { + bool haskey = 1; + bool hasbackupkey = 2; + int64 last_login = 3; + int64 last_update = 4; + int64 registration_date = 9; + repeated int32 limits = 5; + AddonDevStatus addon_dev = 6; + string author_name = 7; + string phone = 8; + string confirmation_code = 10; + Permissions permission = 11; +} + +message KeyData { + bytes key = 1; + string error = 2; + UserManagementErrorReturnCode error_code = 3; +} + +message AddonDevReturnCode { + bool success = 1; + string phone = 4; + string error = 2; + UserManagementErrorReturnCode error_code = 3; +} + +message BadgeCodes { + repeated string codes = 1; + string error = 3; + UserManagementErrorReturnCode error_code = 2; +} + +message EmailChange { + string email = 1; + string uuid = 2; + string validationKey = 3; + bytes key = 4; + string newPw = 5; + string currentPw = 6; + string session = 7; +} + +message AssignBadgeRequest { + string badge_uuid = 2; + string reason = 3; + string session = 5; + + oneof user_identifier { + string email = 1; + string client_id = 4; + } +} + +message UserFullData { + UserManagementReturnCode return_code = 1; + repeated string user_data_field = 2; +} + +message UserRenameRequest { + string new_username = 2; + string session = 3; + + oneof target_user { + string current_username = 1; + string client_id = 4; + } +} + +message BadgeCodeReturnCode { + bool success = 1; + string error = 2; + UserManagementErrorReturnCode error_code = 3; + BadgeCodesRequest badge_code_request = 4; +} + +message AddBadgeReturnCode { + bool success = 1; + string badge_name = 2; + string badge_uuid = 3; + string badge_description = 4; + string badge_url = 5; + string error = 6; + UserManagementErrorReturnCode error_code = 7; +} + +message UserManagementReturnCode { + bool success = 1; + string error = 2; + UserManagementErrorReturnCode error_code = 3; +} + +message AddBadgeRequest { + string badgeName = 1; + string badgeDescription = 2; + string graphicSvg = 3; + string graphicSvgDetail = 4; + string graphicPng16 = 5; + string graphicPng64 = 6; + string session = 7; +} + +message UpdateBadgeRequest { + string badgeUuid = 1; + AddBadgeRequest addBadgeRequest = 2; +} + +message ListBadgesReturnCode { + bool success = 1; + cloud.BadgeList badgeList = 2; + string error = 3; + UserManagementErrorReturnCode error_code = 4; +} + +message DeleteBadgeReturnCode { + bool success = 1; + string badge_uuid = 2; + string error = 3; + UserManagementErrorReturnCode error_code = 4; +} + +message OAuthClient { + repeated string allowedCorsOrigins = 4; + repeated string audience = 5; + bool backchannelLogoutSessionRequired = 6; + string backchannelLogoutUri = 7; + string clientId = 8; + string clientName = 9; + string clientSecret = 10; + int64 clientSecretExpiresAt = 11; + string clientUri = 12; + repeated string contacts = 13; + int64 createdAt = 14; + bool frontchannelLogoutSessionRequired = 15; + string frontchannelLogoutUri = 16; + repeated string grantTypes = 17; + string logoUri = 18; + string owner = 19; + string policyUri = 20; + repeated string postLogoutRedirectUris = 21; + repeated string redirectUris = 22; + repeated string requestUris = 23; + repeated string responseTypes = 24; + string scope = 25; + string sectorIdentifierUri = 26; + string subjectType = 27; + string tokenEndpointAuthMethod = 28; + string tosUri = 29; + int64 updatedAt = 30; +} + +message OAuthClientRequest { + string session = 1; + OAuthClient oauth_client = 2; +} + +message OAuthClientReturnCode { + bool success = 1; + string error = 2; + UserManagementErrorReturnCode error_code = 3; + OAuthClient oauth_client = 4; +} + +message ListOAuthClientsReturnCode { + bool success = 1; + string error = 2; + UserManagementErrorReturnCode error_code = 3; + repeated OAuthClient oauth_clients = 4; +} + +message SearchTerm { + UserSearchCriterionSelector criterion = 1; + string content = 2; + string session = 3; + int64 limit = 4; + int64 offset = 5; + bool partial_search = 6; +} + +message PermissionRequest { + string session = 1; + string client_id = 2; + string permission = 3; +} + +message TSCommunity { + string entity_id = 1; + string customer_id = 2; + string subscription_id = 3; + string client_id = 4; + string community_id = 5; + int64 created = 6; + int64 updated = 7; + TSCommunityState state = 8; +} + +message TSCommunityList { + repeated TSCommunity community = 1; + UserManagementReturnCode return_code = 2; +} + +message TSCommunityRequest { + string session = 1; + TSCommunity community = 2; +} + +message TSCommunityListRequest { + TSCommunityRequest request = 1; + int64 limit = 2; + int64 offset = 3; +} + +message RenameAllowanceRequest { + string session = 1; + int32 allowance = 2; + string client_id = 3; +} + +message BadgeStatisticsRequest { + string session = 1; + int32 limit = 2; + int32 offset = 3; +} + +message BadgeStatistic { + string badge_uuid = 1; + string badge_name = 2; + string badge_description = 3; + string badge_url = 4; + int32 user_count = 5; +} + +message BadgeStatisticsReturnCode { + bool success = 1; + string error = 2; + UserManagementErrorReturnCode error_code = 3; + repeated BadgeStatistic badge_statistics = 4; + int32 total_count = 5; +} + +message UserStatisticsRequest { + string session = 1; + string statistic_name = 2; +} + +message UserStatistic { + string statistic_name = 1; + int64 statistic_value = 2; + string last_updated = 3; +} + +message UserStatisticsResponse { + bool success = 1; + string error = 2; + UserManagementErrorReturnCode error_code = 3; + UserStatistic statistic = 4; +} + +message AllUserStatisticsResponse { + bool success = 1; + string error = 2; + UserManagementErrorReturnCode error_code = 3; + repeated UserStatistic statistics = 4; +} + +enum TSCommunityState { + TS_COMMUNITY_STATE_UNKNOWN = 0; + TS_COMMUNITY_STATE_ACTIVE = 1; + TS_COMMUNITY_STATE_SUSPENDED = 2; + TS_COMMUNITY_STATE_DELETED = 3; +} + +enum UserSearchCriterionSelector { + USER_SEARCH_CRITERION_UNSPECIFIED = 0; + USER_SEARCH_CRITERION_NAME = 1; + USER_SEARCH_CRITERION_EMAIL = 2; + USER_SEARCH_CRITERION_CLIENT_ID = 3; + USER_SEARCH_CRITERION_BADGE = 4; + USER_SEARCH_CRITERION_PERMISSION = 5; + USER_SEARCH_CRITERION_MXID = 6; + USER_SEARCH_CRITERION_NAMEDSERVER = 7; +} + +enum UserManagementErrorReturnCode { + UNKNOWN_USERMANAGEMENTERRORRETURNCODE = 0; + USERMANAGEMENT_ERROR_NO_USER_FOUND = 100; + USERMANAGEMENT_ERROR_DATABASE = 101; + USERMANAGEMENT_ERROR_USER_ACTIVATE_FAILED = 102; + USERMANAGEMENT_ERROR_USER_REQUEST_CODE = 103; + USERMANAGEMENT_ERROR_INVALID_REQUEST = 104; + USERMANAGEMENT_ERROR_PASSWORD_RESET_FAILED = 105; + USERMANAGEMENT_ERROR_ALREADY_TAKEN = 106; + USERMANAGEMENT_ERROR_INVALID_PARAMETER = 107; + USERMANAGEMENT_ERROR_CHANGE_EMAIL_FAILED = 108; + USERMANAGEMENT_ERROR_EMPTY_KEY = 109; + USERMANAGEMENT_ERROR_CHANGE_EMAIL_FAILED_MISSING_FIELD = 110; + USERMANAGEMENT_ERROR_CHANGE_EMAIL_FAILED_FUNCTIONAL_EMAIL_FORMAT = 111; + USERMANAGEMENT_ERROR_CHANGE_EMAIL_FAILED_FUNCTIONAL_EQUAL_EMAIL = 112; + USERMANAGEMENT_ERROR_CHANGE_EMAIL_FAILED_FUNCTIONAL_ALREADY_PENDING = 113; + USERMANAGEMENT_ERROR_CHANGE_EMAIL_FAILED_FUNCTIONAL_TARGET_EXISTS = 114; + USERMANAGEMENT_ERROR_CHANGE_EMAIL_FAILED_FUNCTIONAL_WRONG_STEP = 115; + USERMANAGEMENT_ERROR_CHANGE_EMAIL_FAILED_FUNCTIONAL_VALIDATION_KEY = 116; + USERMANAGEMENT_ERROR_CHANGE_EMAIL_FAILED_FUNCTIONAL_NO_PROCESS = 117; + USERMANAGEMENT_ERROR_CHANGE_EMAIL_FAILED_FUNCTIONAL_NOT_VERIFIED = 118; + USERMANAGEMENT_ERROR_CHANGE_EMAIL_FAILED_FUNCTIONAL_WRONG_PASSWORD = 119; + USERMANAGEMENT_ERROR_BLACKLISTED = 120; + USERMANAGEMENT_ERROR_UPLOAD_TO_AWS_FAILED = 121; + USERMANAGEMENT_ERROR_UPLOAD_TO_ELASTIC_FAILED = 122; + USERMANAGEMENT_ERROR_INSUFFICIENT_PERMISSION = 123; + USERMANAGEMENT_ERROR_DELETE_FROM_AWS_FAILED = 124; + USERMANAGEMENT_ERROR_GET_FROM_AWS_FAILED = 125; + USERMANAGEMENT_ERROR_DELETE_FROM_ELASTIC_FAILED = 126; + USERMANAGEMENT_ERROR_GET_FROM_ELASTIC_FAILED = 127; + USERMANAGEMENT_ERROR_IO_FAILED = 128; + USERMANAGEMENT_ERROR_OAUTH_CLIENT_NOT_FOUND = 129; + USERMANAGEMENT_ERROR_OAUTH_CLIENT_EXISTS = 130; + USERMANAGEMENT_ERROR_USER_ACTIVATION_MISSING_FIELD_EMAIL = 131; + USERMANAGEMENT_ERROR_USER_ACTIVATION_MISSING_FIELD_KEY = 132; + USERMANAGEMENT_ERROR_DISALLOWED_ORIGIN = 133; + USERMANAGEMENT_ERROR_USER_ACTIVATION_WRONG_KEY = 134; + USERMANAGEMENT_ERROR_USER_ACTIVATION_NO_PENDING_ACTIVATION = 135; + USERMANAGEMENT_ERROR_USER_DELETION_USER_DB_ENTRY = 136; + USERMANAGEMENT_ERROR_USER_DELETION_KEY_MISMATCH = 137; + USERMANAGEMENT_ERROR_USER_DELETION_STORE_KEY = 138; + USERMANAGEMENT_ERROR_USER_DELETION_NOT_ACTIVATED = 139; +} diff --git a/third_party/schema-api/proto/revocation_list.proto b/third_party/schema-api/proto/revocation_list.proto new file mode 100644 index 0000000..2a6bb1a --- /dev/null +++ b/third_party/schema-api/proto/revocation_list.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +package com.teamspeak.revocation_list; + +message RevocationList { + repeated bytes list = 1; +} diff --git a/third_party/schema-api/proto/revoke_cache.proto b/third_party/schema-api/proto/revoke_cache.proto new file mode 100644 index 0000000..8275b8e --- /dev/null +++ b/third_party/schema-api/proto/revoke_cache.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +package com.teamspeak.proto.revocation; + +message RevokeListCachedData { + repeated bytes cache_entry = 1; + uint64 expiration_timestamp = 2; + uint64 last_download_success = 3; +} diff --git a/third_party/schema-api/proto/src/proto/grpc/channelz/v2/promise.proto b/third_party/schema-api/proto/src/proto/grpc/channelz/v2/promise.proto new file mode 100644 index 0000000..50e0316 --- /dev/null +++ b/third_party/schema-api/proto/src/proto/grpc/channelz/v2/promise.proto @@ -0,0 +1,75 @@ +syntax = "proto3"; + +package grpc.channelz.v2; + +import "src/proto/grpc/channelz/v2/property_list.proto"; + +message Promise { + oneof promise { + Custom custom_promise = 1; + string unknown_promise = 2; + If if_promise = 3; + Loop loop_promise = 4; + Race race_promise = 5; + Seq seq_promise = 6; + Join join_promise = 7; + Map map_promise = 8; + } + + message Custom { + string type = 1; + PropertyList properties = 2; + } + + message If { + bool condition = 1; + string true_factory = 2; + string false_factory = 3; + Promise promise = 4; + } + + message Loop { + string loop_factory = 1; + Promise promise = 2; + bool yield = 3; + } + + message Race { + repeated Promise children = 1; + } + + message SeqStep { + string factory = 1; + Promise polling_promise = 2; + } + + message Seq { + CompositionKind kind = 1; + repeated SeqStep steps = 2; + } + + message JoinBranch { + string factory = 1; + + oneof state { + Promise polling_promise = 2; + string result = 3; + } + } + + message Join { + CompositionKind kind = 1; + repeated JoinBranch branches = 2; + } + + message Map { + Promise promise = 1; + string map_fn = 2; + } + + enum CompositionKind { + UNKNOWN = 0; + NORMAL = 1; + TRY = 2; + } +} diff --git a/third_party/schema-api/proto/src/proto/grpc/channelz/v2/property_list.proto b/third_party/schema-api/proto/src/proto/grpc/channelz/v2/property_list.proto new file mode 100644 index 0000000..60de168 --- /dev/null +++ b/third_party/schema-api/proto/src/proto/grpc/channelz/v2/property_list.proto @@ -0,0 +1,45 @@ +syntax = "proto3"; + +package grpc.channelz.v2; + +import "google/protobuf/any.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/timestamp.proto"; +import "google/protobuf/duration.proto"; + +message PropertyList { + map properties = 1; +} + +message PropertyGrid { + repeated string columns = 1; + + repeated Row rows = 2; + message Row { + string label = 1; + repeated PropertyValue value = 2; + } +} + +message PropertyTable { + repeated string columns = 1; + + repeated Row rows = 2; + message Row { + repeated PropertyValue value = 1; + } +} + +message PropertyValue { + oneof kind { + google.protobuf.Empty empty_value = 1; + google.protobuf.Any any_value = 2; + string string_value = 3; + int64 int64_value = 4; + uint64 uint64_value = 5; + double double_value = 6; + bool bool_value = 7; + google.protobuf.Timestamp timestamp_value = 8; + google.protobuf.Duration duration_value = 9; + } +} diff --git a/third_party/schema-api/proto/src/proto/grpc/lookup/v1/rls_config.proto b/third_party/schema-api/proto/src/proto/grpc/lookup/v1/rls_config.proto new file mode 100644 index 0000000..369cc86 --- /dev/null +++ b/third_party/schema-api/proto/src/proto/grpc/lookup/v1/rls_config.proto @@ -0,0 +1,62 @@ +syntax = "proto3"; + +package grpc.lookup.v1; + +import "google/protobuf/duration.proto"; + +option go_package = "google.golang.org/grpc/lookup/grpc_lookup_v1"; +option java_multiple_files = true; +option java_outer_classname = "RlsConfigProto"; +option java_package = "io.grpc.lookup.v1"; + +message NameMatcher { + string key = 1; + repeated string names = 2; + bool required_match = 3; +} + +message GrpcKeyBuilder { + repeated Name names = 1; + message Name { + string service = 1; + string method = 2; + } + + ExtraKeys extra_keys = 3; + message ExtraKeys { + string host = 1; + string service = 2; + string method = 3; + } + + repeated NameMatcher headers = 2; + map constant_keys = 4; +} + +message HttpKeyBuilder { + repeated string host_patterns = 1; + repeated string path_patterns = 2; + repeated NameMatcher query_parameters = 3; + repeated NameMatcher headers = 4; + map constant_keys = 5; +} + +message RouteLookupConfig { + repeated HttpKeyBuilder http_keybuilders = 1; + repeated GrpcKeyBuilder grpc_keybuilders = 2; + string lookup_service = 3; + google.protobuf.Duration lookup_service_timeout = 4; + google.protobuf.Duration max_age = 5; + google.protobuf.Duration stale_age = 6; + int64 cache_size_bytes = 7; + repeated string valid_targets = 8; + string default_target = 9; + + reserved 10; + + reserved "request_processing_strategy"; +} + +message RouteLookupClusterSpecifier { + RouteLookupConfig route_lookup_config = 1; +} diff --git a/third_party/schema-api/proto/synchronization_common.proto b/third_party/schema-api/proto/synchronization_common.proto new file mode 100644 index 0000000..edbfb31 --- /dev/null +++ b/third_party/schema-api/proto/synchronization_common.proto @@ -0,0 +1,64 @@ +syntax = "proto3"; + +package com.teamspeak.myteamspeak.proto.synchronization; + +option java_generic_services = true; +option cc_generic_services = true; +option optimize_for = SPEED; + +message Sync_Request_ItemClasses { + string session = 1; + repeated Sync_ItemClasses_Data classes = 2; + string globalversion = 3; + Sync_Version sync_version = 4; +} + +message Sync_Reply_ItemClasses { + SyncStatus status = 1; + repeated Sync_ItemClasses_Data classes = 2; + string globalversion = 3; +} + +message Sync_ItemClasses_Data { + Item_Class itemclass = 1; + string version = 2; + repeated Sync_ItemClasses_Data_Detail detail = 3; + bool not_in_db = 4; +} + +message Sync_ItemClasses_Data_Detail { + string item_uuid = 1; + string item_version = 2; + bytes item_blob = 3; + bool item_delte_on_server = 4; +} + +enum SyncStatus { + UNKNOWN_SYNCSTATUS = 0; + ERROR_FE_UNKNOWN_METHOD = 100; + ERROR_FE_UNKNOWN_DATA = 101; + ERROR_SESSION_EXPIRED = 102; + ERROR_CRITICAL = 103; + IN_SYNC = 300; + NOT_IN_SYNC = 301; + NOT_IN_DB = 302; + COLLISION = 303; + OVERLIMIT = 304; +} + +enum Item_Class { + BOOKMARK = 0; + IDENTITY = 1; + WHISPER_LIST = 2; + HOTKEY_PROFILE = 3; + ADD_ON = 4; + CONFIG = 5; + ITEM_FOLDER = 6; + GROUP_CHATS = 7; + CONTACTS = 8; +} + +enum Sync_Version { + DEFAULT = 0; + V1_1 = 1; +} diff --git a/third_party/schema-api/proto/teamspeak_push_grpc.proto b/third_party/schema-api/proto/teamspeak_push_grpc.proto new file mode 100644 index 0000000..6604417 --- /dev/null +++ b/third_party/schema-api/proto/teamspeak_push_grpc.proto @@ -0,0 +1,13 @@ +syntax = "proto3"; + +package com.teamspeak.push.proto; + +import "google/protobuf/empty.proto"; + +service PushService { + rpc longPull(google.protobuf.Empty) returns (stream Message); +} + +message Message { + bytes payload = 1; +} diff --git a/third_party/schema-api/proto/udpa/annotations/migrate.proto b/third_party/schema-api/proto/udpa/annotations/migrate.proto new file mode 100644 index 0000000..908e7be --- /dev/null +++ b/third_party/schema-api/proto/udpa/annotations/migrate.proto @@ -0,0 +1,40 @@ +syntax = "proto3"; + +package udpa.annotations; + +import "google/protobuf/descriptor.proto"; + +option go_package = "github.com/cncf/xds/go/annotations"; + +message MigrateAnnotation { + string rename = 1; +} + +message FieldMigrateAnnotation { + string rename = 1; + string oneof_promotion = 2; +} + +message FileMigrateAnnotation { + string move_to_package = 2; +} + +extend google.protobuf.MessageOptions { + MigrateAnnotation message_migrate = 171962766; +} + +extend google.protobuf.FieldOptions { + FieldMigrateAnnotation field_migrate = 171962766; +} + +extend google.protobuf.EnumOptions { + MigrateAnnotation enum_migrate = 171962766; +} + +extend google.protobuf.EnumValueOptions { + MigrateAnnotation enum_value_migrate = 171962766; +} + +extend google.protobuf.FileOptions { + FileMigrateAnnotation file_migrate = 171962766; +} diff --git a/third_party/schema-api/proto/udpa/annotations/security.proto b/third_party/schema-api/proto/udpa/annotations/security.proto new file mode 100644 index 0000000..ee8fca2 --- /dev/null +++ b/third_party/schema-api/proto/udpa/annotations/security.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +package udpa.annotations; + +import "udpa/annotations/status.proto"; +import "google/protobuf/descriptor.proto"; + +option go_package = "github.com/cncf/xds/go/annotations"; + +message FieldSecurityAnnotation { + bool configure_for_untrusted_downstream = 1; + bool configure_for_untrusted_upstream = 2; +} + +extend google.protobuf.FieldOptions { + FieldSecurityAnnotation security = 11122993; +} diff --git a/third_party/schema-api/proto/udpa/annotations/sensitive.proto b/third_party/schema-api/proto/udpa/annotations/sensitive.proto new file mode 100644 index 0000000..aaa1420 --- /dev/null +++ b/third_party/schema-api/proto/udpa/annotations/sensitive.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +package udpa.annotations; + +import "google/protobuf/descriptor.proto"; + +option go_package = "github.com/cncf/xds/go/annotations"; + +extend google.protobuf.FieldOptions { + bool sensitive = 76569463; +} diff --git a/third_party/schema-api/proto/udpa/annotations/status.proto b/third_party/schema-api/proto/udpa/annotations/status.proto new file mode 100644 index 0000000..e8b7f3d --- /dev/null +++ b/third_party/schema-api/proto/udpa/annotations/status.proto @@ -0,0 +1,23 @@ +syntax = "proto3"; + +package udpa.annotations; + +import "google/protobuf/descriptor.proto"; + +option go_package = "github.com/cncf/xds/go/annotations"; + +message StatusAnnotation { + bool work_in_progress = 1; + PackageVersionStatus package_version_status = 2; +} + +enum PackageVersionStatus { + UNKNOWN = 0; + FROZEN = 1; + ACTIVE = 2; + NEXT_MAJOR_VERSION_CANDIDATE = 3; +} + +extend google.protobuf.FileOptions { + StatusAnnotation file_status = 222707719; +} diff --git a/third_party/schema-api/proto/udpa/annotations/versioning.proto b/third_party/schema-api/proto/udpa/annotations/versioning.proto new file mode 100644 index 0000000..08bf0ad --- /dev/null +++ b/third_party/schema-api/proto/udpa/annotations/versioning.proto @@ -0,0 +1,15 @@ +syntax = "proto3"; + +package udpa.annotations; + +import "google/protobuf/descriptor.proto"; + +option go_package = "github.com/cncf/xds/go/annotations"; + +message VersioningAnnotation { + string previous_message_type = 1; +} + +extend google.protobuf.MessageOptions { + VersioningAnnotation versioning = 7881811; +} diff --git a/third_party/schema-api/proto/validate/validate.proto b/third_party/schema-api/proto/validate/validate.proto new file mode 100644 index 0000000..4cb93a1 --- /dev/null +++ b/third_party/schema-api/proto/validate/validate.proto @@ -0,0 +1,303 @@ +syntax = "proto2"; + +package validate; + +import "google/protobuf/descriptor.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/timestamp.proto"; + +option go_package = "github.com/envoyproxy/protoc-gen-validate/validate"; +option java_package = "io.envoyproxy.pgv.validate"; + +message FieldRules { + optional MessageRules message = 17; + + oneof type { + FloatRules float = 1; + DoubleRules double = 2; + Int32Rules int32 = 3; + Int64Rules int64 = 4; + UInt32Rules uint32 = 5; + UInt64Rules uint64 = 6; + SInt32Rules sint32 = 7; + SInt64Rules sint64 = 8; + Fixed32Rules fixed32 = 9; + Fixed64Rules fixed64 = 10; + SFixed32Rules sfixed32 = 11; + SFixed64Rules sfixed64 = 12; + BoolRules bool = 13; + StringRules string = 14; + BytesRules bytes = 15; + EnumRules enum = 16; + RepeatedRules repeated = 18; + MapRules map = 19; + AnyRules any = 20; + DurationRules duration = 21; + TimestampRules timestamp = 22; + } +} + +message FloatRules { + optional float const = 1; + optional float lt = 2; + optional float lte = 3; + optional float gt = 4; + optional float gte = 5; + repeated float in = 6; + repeated float not_in = 7; + optional bool ignore_empty = 8; +} + +message DoubleRules { + optional double const = 1; + optional double lt = 2; + optional double lte = 3; + optional double gt = 4; + optional double gte = 5; + repeated double in = 6; + repeated double not_in = 7; + optional bool ignore_empty = 8; +} + +message Int32Rules { + optional int32 const = 1; + optional int32 lt = 2; + optional int32 lte = 3; + optional int32 gt = 4; + optional int32 gte = 5; + repeated int32 in = 6; + repeated int32 not_in = 7; + optional bool ignore_empty = 8; +} + +message Int64Rules { + optional int64 const = 1; + optional int64 lt = 2; + optional int64 lte = 3; + optional int64 gt = 4; + optional int64 gte = 5; + repeated int64 in = 6; + repeated int64 not_in = 7; + optional bool ignore_empty = 8; +} + +message UInt32Rules { + optional uint32 const = 1; + optional uint32 lt = 2; + optional uint32 lte = 3; + optional uint32 gt = 4; + optional uint32 gte = 5; + repeated uint32 in = 6; + repeated uint32 not_in = 7; + optional bool ignore_empty = 8; +} + +message UInt64Rules { + optional uint64 const = 1; + optional uint64 lt = 2; + optional uint64 lte = 3; + optional uint64 gt = 4; + optional uint64 gte = 5; + repeated uint64 in = 6; + repeated uint64 not_in = 7; + optional bool ignore_empty = 8; +} + +message SInt32Rules { + optional sint32 const = 1; + optional sint32 lt = 2; + optional sint32 lte = 3; + optional sint32 gt = 4; + optional sint32 gte = 5; + repeated sint32 in = 6; + repeated sint32 not_in = 7; + optional bool ignore_empty = 8; +} + +message SInt64Rules { + optional sint64 const = 1; + optional sint64 lt = 2; + optional sint64 lte = 3; + optional sint64 gt = 4; + optional sint64 gte = 5; + repeated sint64 in = 6; + repeated sint64 not_in = 7; + optional bool ignore_empty = 8; +} + +message Fixed32Rules { + optional fixed32 const = 1; + optional fixed32 lt = 2; + optional fixed32 lte = 3; + optional fixed32 gt = 4; + optional fixed32 gte = 5; + repeated fixed32 in = 6; + repeated fixed32 not_in = 7; + optional bool ignore_empty = 8; +} + +message Fixed64Rules { + optional fixed64 const = 1; + optional fixed64 lt = 2; + optional fixed64 lte = 3; + optional fixed64 gt = 4; + optional fixed64 gte = 5; + repeated fixed64 in = 6; + repeated fixed64 not_in = 7; + optional bool ignore_empty = 8; +} + +message SFixed32Rules { + optional sfixed32 const = 1; + optional sfixed32 lt = 2; + optional sfixed32 lte = 3; + optional sfixed32 gt = 4; + optional sfixed32 gte = 5; + repeated sfixed32 in = 6; + repeated sfixed32 not_in = 7; + optional bool ignore_empty = 8; +} + +message SFixed64Rules { + optional sfixed64 const = 1; + optional sfixed64 lt = 2; + optional sfixed64 lte = 3; + optional sfixed64 gt = 4; + optional sfixed64 gte = 5; + repeated sfixed64 in = 6; + repeated sfixed64 not_in = 7; + optional bool ignore_empty = 8; +} + +message BoolRules { + optional bool const = 1; +} + +message StringRules { + optional string const = 1; + optional uint64 len = 19; + optional uint64 min_len = 2; + optional uint64 max_len = 3; + optional uint64 len_bytes = 20; + optional uint64 min_bytes = 4; + optional uint64 max_bytes = 5; + optional string pattern = 6; + optional string prefix = 7; + optional string suffix = 8; + optional string contains = 9; + optional string not_contains = 23; + repeated string in = 10; + repeated string not_in = 11; + optional bool strict = 25 [default = true]; + optional bool ignore_empty = 26; + + oneof well_known { + bool email = 12; + bool hostname = 13; + bool ip = 14; + bool ipv4 = 15; + bool ipv6 = 16; + bool uri = 17; + bool uri_ref = 18; + bool address = 21; + bool uuid = 22; + KnownRegex well_known_regex = 24; + } +} + +message BytesRules { + optional bytes const = 1; + optional uint64 len = 13; + optional uint64 min_len = 2; + optional uint64 max_len = 3; + optional string pattern = 4; + optional bytes prefix = 5; + optional bytes suffix = 6; + optional bytes contains = 7; + repeated bytes in = 8; + repeated bytes not_in = 9; + optional bool ignore_empty = 14; + + oneof well_known { + bool ip = 10; + bool ipv4 = 11; + bool ipv6 = 12; + } +} + +message EnumRules { + optional int32 const = 1; + optional bool defined_only = 2; + repeated int32 in = 3; + repeated int32 not_in = 4; +} + +message MessageRules { + optional bool skip = 1; + optional bool required = 2; +} + +message RepeatedRules { + optional uint64 min_items = 1; + optional uint64 max_items = 2; + optional bool unique = 3; + optional FieldRules items = 4; + optional bool ignore_empty = 5; +} + +message MapRules { + optional uint64 min_pairs = 1; + optional uint64 max_pairs = 2; + optional bool no_sparse = 3; + optional FieldRules keys = 4; + optional FieldRules values = 5; + optional bool ignore_empty = 6; +} + +message AnyRules { + optional bool required = 1; + repeated string in = 2; + repeated string not_in = 3; +} + +message DurationRules { + optional bool required = 1; + optional google.protobuf.Duration const = 2; + optional google.protobuf.Duration lt = 3; + optional google.protobuf.Duration lte = 4; + optional google.protobuf.Duration gt = 5; + optional google.protobuf.Duration gte = 6; + repeated google.protobuf.Duration in = 7; + repeated google.protobuf.Duration not_in = 8; +} + +message TimestampRules { + optional bool required = 1; + optional google.protobuf.Timestamp const = 2; + optional google.protobuf.Timestamp lt = 3; + optional google.protobuf.Timestamp lte = 4; + optional google.protobuf.Timestamp gt = 5; + optional google.protobuf.Timestamp gte = 6; + optional bool lt_now = 7; + optional bool gt_now = 8; + optional google.protobuf.Duration within = 9; +} + +enum KnownRegex { + UNKNOWN = 0; + HTTP_HEADER_NAME = 1; + HTTP_HEADER_VALUE = 2; +} + +extend google.protobuf.MessageOptions { + optional bool disabled = 1071; + optional bool ignored = 1072; +} + +extend google.protobuf.OneofOptions { + optional bool required = 1071; +} + +extend google.protobuf.FieldOptions { + optional FieldRules rules = 1071; +} diff --git a/third_party/schema-api/proto/xds/annotations/v3/status.proto b/third_party/schema-api/proto/xds/annotations/v3/status.proto new file mode 100644 index 0000000..e91f760 --- /dev/null +++ b/third_party/schema-api/proto/xds/annotations/v3/status.proto @@ -0,0 +1,43 @@ +syntax = "proto3"; + +package xds.annotations.v3; + +import "google/protobuf/descriptor.proto"; + +option go_package = "github.com/cncf/xds/go/xds/annotations/v3"; + +message FileStatusAnnotation { + bool work_in_progress = 1; +} + +message MessageStatusAnnotation { + bool work_in_progress = 1; +} + +message FieldStatusAnnotation { + bool work_in_progress = 1; +} + +message StatusAnnotation { + bool work_in_progress = 1; + PackageVersionStatus package_version_status = 2; +} + +enum PackageVersionStatus { + UNKNOWN = 0; + FROZEN = 1; + ACTIVE = 2; + NEXT_MAJOR_VERSION_CANDIDATE = 3; +} + +extend google.protobuf.FileOptions { + FileStatusAnnotation file_status = 226829418; +} + +extend google.protobuf.MessageOptions { + MessageStatusAnnotation message_status = 226829418; +} + +extend google.protobuf.FieldOptions { + FieldStatusAnnotation field_status = 226829418; +} diff --git a/third_party/schema-api/proto/xds/core/v3/authority.proto b/third_party/schema-api/proto/xds/core/v3/authority.proto new file mode 100644 index 0000000..b41e754 --- /dev/null +++ b/third_party/schema-api/proto/xds/core/v3/authority.proto @@ -0,0 +1,15 @@ +syntax = "proto3"; + +package xds.core.v3; + +import "xds/annotations/v3/status.proto"; +import "validate/validate.proto"; + +option go_package = "github.com/cncf/xds/go/xds/core/v3"; +option java_multiple_files = true; +option java_outer_classname = "AuthorityProto"; +option java_package = "com.github.xds.core.v3"; + +message Authority { + string name = 1; +} diff --git a/third_party/schema-api/proto/xds/core/v3/cidr.proto b/third_party/schema-api/proto/xds/core/v3/cidr.proto new file mode 100644 index 0000000..ace45e2 --- /dev/null +++ b/third_party/schema-api/proto/xds/core/v3/cidr.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +package xds.core.v3; + +import "xds/annotations/v3/status.proto"; +import "google/protobuf/wrappers.proto"; +import "validate/validate.proto"; + +option go_package = "github.com/cncf/xds/go/xds/core/v3"; +option java_multiple_files = true; +option java_outer_classname = "CidrRangeProto"; +option java_package = "com.github.xds.core.v3"; + +message CidrRange { + string address_prefix = 1; + google.protobuf.UInt32Value prefix_len = 2; +} diff --git a/third_party/schema-api/proto/xds/core/v3/collection_entry.proto b/third_party/schema-api/proto/xds/core/v3/collection_entry.proto new file mode 100644 index 0000000..be0fb24 --- /dev/null +++ b/third_party/schema-api/proto/xds/core/v3/collection_entry.proto @@ -0,0 +1,26 @@ +syntax = "proto3"; + +package xds.core.v3; + +import "google/protobuf/any.proto"; +import "xds/annotations/v3/status.proto"; +import "xds/core/v3/resource_locator.proto"; +import "validate/validate.proto"; + +option go_package = "github.com/cncf/xds/go/xds/core/v3"; +option java_multiple_files = true; +option java_outer_classname = "CollectionEntryProto"; +option java_package = "com.github.xds.core.v3"; + +message CollectionEntry { + oneof resource_specifier { + ResourceLocator locator = 1; + InlineEntry inline_entry = 2; + } + + message InlineEntry { + string name = 1; + string version = 2; + google.protobuf.Any resource = 3; + } +} diff --git a/third_party/schema-api/proto/xds/core/v3/context_params.proto b/third_party/schema-api/proto/xds/core/v3/context_params.proto new file mode 100644 index 0000000..66268ea --- /dev/null +++ b/third_party/schema-api/proto/xds/core/v3/context_params.proto @@ -0,0 +1,14 @@ +syntax = "proto3"; + +package xds.core.v3; + +import "xds/annotations/v3/status.proto"; + +option go_package = "github.com/cncf/xds/go/xds/core/v3"; +option java_multiple_files = true; +option java_outer_classname = "ContextParamsProto"; +option java_package = "com.github.xds.core.v3"; + +message ContextParams { + map params = 1; +} diff --git a/third_party/schema-api/proto/xds/core/v3/extension.proto b/third_party/schema-api/proto/xds/core/v3/extension.proto new file mode 100644 index 0000000..71f27e1 --- /dev/null +++ b/third_party/schema-api/proto/xds/core/v3/extension.proto @@ -0,0 +1,16 @@ +syntax = "proto3"; + +package xds.core.v3; + +import "validate/validate.proto"; +import "google/protobuf/any.proto"; + +option go_package = "github.com/cncf/xds/go/xds/core/v3"; +option java_multiple_files = true; +option java_outer_classname = "ExtensionProto"; +option java_package = "com.github.xds.core.v3"; + +message TypedExtensionConfig { + string name = 1; + google.protobuf.Any typed_config = 2; +} diff --git a/third_party/schema-api/proto/xds/core/v3/resource_locator.proto b/third_party/schema-api/proto/xds/core/v3/resource_locator.proto new file mode 100644 index 0000000..978a208 --- /dev/null +++ b/third_party/schema-api/proto/xds/core/v3/resource_locator.proto @@ -0,0 +1,37 @@ +syntax = "proto3"; + +package xds.core.v3; + +import "xds/annotations/v3/status.proto"; +import "xds/core/v3/context_params.proto"; +import "validate/validate.proto"; + +option go_package = "github.com/cncf/xds/go/xds/core/v3"; +option java_multiple_files = true; +option java_outer_classname = "ResourceLocatorProto"; +option java_package = "com.github.xds.core.v3"; + +message ResourceLocator { + Scheme scheme = 1; + enum Scheme { + XDSTP = 0; + HTTP = 1; + FILE = 2; + } + + string id = 2; + string authority = 3; + string resource_type = 4; + + repeated Directive directives = 6; + message Directive { + oneof directive { + ResourceLocator alt = 1; + string entry = 2; + } + } + + oneof context_param_specifier { + ContextParams exact_context = 5; + } +} diff --git a/third_party/schema-api/proto/xds/type/matcher/v3/matcher.proto b/third_party/schema-api/proto/xds/type/matcher/v3/matcher.proto new file mode 100644 index 0000000..6c180ac --- /dev/null +++ b/third_party/schema-api/proto/xds/type/matcher/v3/matcher.proto @@ -0,0 +1,72 @@ +syntax = "proto3"; + +package xds.type.matcher.v3; + +import "xds/annotations/v3/status.proto"; +import "xds/core/v3/extension.proto"; +import "xds/type/matcher/v3/string.proto"; +import "validate/validate.proto"; + +option go_package = "github.com/cncf/xds/go/xds/type/matcher/v3"; +option java_multiple_files = true; +option java_outer_classname = "MatcherProto"; +option java_package = "com.github.xds.type.matcher.v3"; + +message Matcher { + OnMatch on_no_match = 3; + message OnMatch { + oneof on_match { + Matcher matcher = 1; + core.v3.TypedExtensionConfig action = 2; + } + } + + oneof matcher_type { + MatcherList matcher_list = 1; + MatcherTree matcher_tree = 2; + } + + message MatcherList { + repeated FieldMatcher matchers = 1; + message FieldMatcher { + Predicate predicate = 1; + OnMatch on_match = 2; + } + + message Predicate { + oneof match_type { + SinglePredicate single_predicate = 1; + PredicateList or_matcher = 2; + PredicateList and_matcher = 3; + Predicate not_matcher = 4; + } + + message SinglePredicate { + core.v3.TypedExtensionConfig input = 1; + + oneof matcher { + StringMatcher value_match = 2; + core.v3.TypedExtensionConfig custom_match = 3; + } + } + + message PredicateList { + repeated Predicate predicate = 1; + } + } + } + + message MatcherTree { + core.v3.TypedExtensionConfig input = 1; + + oneof tree_type { + MatchMap exact_match_map = 2; + MatchMap prefix_match_map = 3; + core.v3.TypedExtensionConfig custom_match = 4; + } + + message MatchMap { + map map = 1; + } + } +} diff --git a/third_party/schema-api/proto/xds/type/matcher/v3/regex.proto b/third_party/schema-api/proto/xds/type/matcher/v3/regex.proto new file mode 100644 index 0000000..03fb6f9 --- /dev/null +++ b/third_party/schema-api/proto/xds/type/matcher/v3/regex.proto @@ -0,0 +1,22 @@ +syntax = "proto3"; + +package xds.type.matcher.v3; + +import "validate/validate.proto"; + +option go_package = "github.com/cncf/xds/go/xds/type/matcher/v3"; +option java_multiple_files = true; +option java_outer_classname = "RegexProto"; +option java_package = "com.github.xds.type.matcher.v3"; + +message RegexMatcher { + string regex = 2; + + oneof engine_type { + GoogleRE2 google_re2 = 1; + } + + message GoogleRE2 { + + } +} diff --git a/third_party/schema-api/proto/xds/type/matcher/v3/string.proto b/third_party/schema-api/proto/xds/type/matcher/v3/string.proto new file mode 100644 index 0000000..b91456b --- /dev/null +++ b/third_party/schema-api/proto/xds/type/matcher/v3/string.proto @@ -0,0 +1,27 @@ +syntax = "proto3"; + +package xds.type.matcher.v3; + +import "xds/type/matcher/v3/regex.proto"; +import "validate/validate.proto"; + +option go_package = "github.com/cncf/xds/go/xds/type/matcher/v3"; +option java_multiple_files = true; +option java_outer_classname = "StringProto"; +option java_package = "com.github.xds.type.matcher.v3"; + +message StringMatcher { + bool ignore_case = 6; + + oneof match_pattern { + string exact = 1; + string prefix = 2; + string suffix = 3; + RegexMatcher safe_regex = 5; + string contains = 7; + } +} + +message ListStringMatcher { + repeated StringMatcher patterns = 1; +} diff --git a/third_party/schema-api/src/client.rs b/third_party/schema-api/src/client.rs new file mode 100644 index 0000000..238bec0 --- /dev/null +++ b/third_party/schema-api/src/client.rs @@ -0,0 +1,686 @@ +//! Shared transport configuration and access to every application service. +//! +//! The schema does not specify a transport authentication scheme. Metadata and +//! bearer authentication are therefore opt-in. Sessions embedded in protobuf +//! messages remain explicit fields controlled by the caller. + +use std::{ + collections::HashSet, + fmt, + sync::{Arc, RwLock}, + time::Duration, +}; + +use tonic::{ + metadata::{Ascii, KeyAndValueRef, MetadataMap, MetadataValue}, + service::{interceptor::InterceptedService, Interceptor}, + transport::{Channel, ClientTlsConfig, Endpoint}, + Request, Status, +}; + +use crate::api::{ + addon::user_addon_service_client::UserAddonServiceClient, + integration::integration_user_service_client::IntegrationUserServiceClient, + login::login_service_client::LoginServiceClient, + management::user::user_management_service_client::UserManagementServiceClient, + messengerconnector::messenger_connector_client_service_client::MessengerConnectorClientServiceClient, + synchronization::synchronization_service_client::SynchronizationServiceClient, + tschat::chat_requests_client::ChatRequestsClient, + user::user_account_service_client::UserAccountServiceClient, +}; +use crate::push::push_service_client::PushServiceClient; + +/// Errors raised while configuring or connecting a client. +/// +/// RPC failures themselves are returned as [`tonic::Status`] by generated clients. +#[derive(Debug, thiserror::Error)] +pub enum ClientError { + /// The endpoint or TLS configuration was invalid, or the connection failed. + #[error("gRPC transport error: {0}")] + Transport(#[from] tonic::transport::Error), + /// A URL must identify an HTTP(S) origin rather than a service path. + #[error("invalid endpoint: {0}")] + InvalidEndpoint(&'static str), + /// Bearer tokens must be nonempty and contain only visible ASCII without spaces. + #[error("bearer token must be nonempty visible ASCII without spaces")] + InvalidBearerToken, + /// A panic occurred while shared metadata was being changed. + #[error("shared request metadata lock is poisoned")] + MetadataLockPoisoned, +} + +/// Metadata shared by all service handles derived from an [`ApiClient`]. +/// +/// Changes affect subsequent calls, including calls made through already-created +/// service handles. They do not change an active push stream. Debug output never +/// includes metadata values. Explicit per-request metadata overrides defaults. +#[derive(Clone, Default)] +pub struct SharedMetadata(Arc>); + +impl SharedMetadata { + /// Create a shared metadata store, preserving duplicate and binary entries. + pub fn new(metadata: MetadataMap) -> Self { + Self(Arc::new(RwLock::new(metadata))) + } + + /// Read a snapshot. The returned map may contain credentials. + pub fn snapshot(&self) -> Result { + self.0 + .read() + .map(|map| map.clone()) + .map_err(|_| ClientError::MetadataLockPoisoned) + } + + /// Atomically replace all default metadata. + pub fn replace(&self, metadata: MetadataMap) -> Result<(), ClientError> { + *self + .0 + .write() + .map_err(|_| ClientError::MetadataLockPoisoned)? = metadata; + Ok(()) + } + + /// Set or rotate an optional bearer token while keeping other metadata. + /// + /// The value is marked sensitive. Pass the token without the `Bearer ` prefix. + pub fn set_bearer_token(&self, token: impl AsRef) -> Result<(), ClientError> { + let value = bearer_value(token.as_ref())?; + self.0 + .write() + .map_err(|_| ClientError::MetadataLockPoisoned)? + .insert("authorization", value); + Ok(()) + } + + /// Remove the default authorization header. + pub fn clear_bearer_token(&self) -> Result<(), ClientError> { + self.0 + .write() + .map_err(|_| ClientError::MetadataLockPoisoned)? + .remove("authorization"); + Ok(()) + } +} + +impl fmt::Debug for SharedMetadata { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + f.debug_struct("SharedMetadata").finish_non_exhaustive() + } +} + +fn bearer_value(token: &str) -> Result, ClientError> { + if token.is_empty() || !token.bytes().all(|byte| byte.is_ascii_graphic()) { + return Err(ClientError::InvalidBearerToken); + } + let mut value: MetadataValue = format!("Bearer {token}") + .parse() + .map_err(|_| ClientError::InvalidBearerToken)?; + value.set_sensitive(true); + Ok(value) +} + +/// The interceptor used by the configured generated service clients. +#[derive(Clone, Debug)] +pub struct RequestInterceptor { + metadata: SharedMetadata, + timeout: Option, +} + +impl RequestInterceptor { + /// Create an interceptor for a generated client or another compatible service. + pub fn new(metadata: SharedMetadata, timeout: Option) -> Self { + Self { metadata, timeout } + } +} + +impl Interceptor for RequestInterceptor { + fn call(&mut self, mut request: Request<()>) -> Result, Status> { + let defaults = self + .metadata + .0 + .read() + .map_err(|_| Status::internal("shared request metadata is unavailable"))?; + // Capture the original keys before appending, so duplicate default values + // survive while any explicit per-request value overrides the entire key. + let supplied: HashSet = request + .metadata() + .iter() + .map(|entry| match entry { + KeyAndValueRef::Ascii(key, _) => key.as_str().to_owned(), + KeyAndValueRef::Binary(key, _) => key.as_str().to_owned(), + }) + .collect(); + for entry in defaults.iter() { + match entry { + KeyAndValueRef::Ascii(key, value) if !supplied.contains(key.as_str()) => { + request.metadata_mut().append(key.clone(), value.clone()); + } + KeyAndValueRef::Binary(key, value) if !supplied.contains(key.as_str()) => { + request + .metadata_mut() + .append_bin(key.clone(), value.clone()); + } + _ => {} + } + } + if !request.metadata().contains_key("grpc-timeout") { + if let Some(timeout) = self.timeout { + request.set_timeout(timeout); + } + } + Ok(request) + } +} + +/// Channel type used by every service getter on [`ApiClient`]. +pub type InterceptedChannel = InterceptedService; + +#[derive(Clone, Debug, Default)] +struct CallOptions { + request_timeout: Option, + stream_timeout: Option, + max_decoding_message_size: Option, + max_encoding_message_size: Option, + #[cfg(feature = "gzip")] + send_gzip: bool, + #[cfg(feature = "gzip")] + accept_gzip: bool, +} + +/// Builder for shared transport, request metadata, and message limits. +/// +/// An HTTPS URL enables certificate validation using native trust roots. A +/// custom [`ClientTlsConfig`] can supply a private CA and an mTLS identity. +/// No application credentials or request deadlines are set by default. +#[derive(Debug)] +#[must_use = "call connect, connect_lazy, or build_with_channel to create the client"] +pub struct ClientBuilder { + endpoint: Endpoint, + metadata: SharedMetadata, + options: CallOptions, +} + +impl ClientBuilder { + /// Build from an absolute `http://` or `https://` origin URL. + /// + /// The default connection timeout is ten seconds. Protobuf service paths + /// are generated from the schema, so URL path prefixes are rejected. + pub fn new(endpoint: impl Into) -> Result { + let mut endpoint = Endpoint::from_shared(endpoint.into())?; + validate_endpoint(&endpoint)?; + if endpoint.uri().scheme_str() == Some("https") { + endpoint = endpoint.tls_config(ClientTlsConfig::new().with_native_roots())?; + } + endpoint = endpoint.connect_timeout(Duration::from_secs(10)); + Ok(Self::from_endpoint(endpoint)) + } + + /// Use a preconfigured tonic endpoint without changing its transport options. + /// + /// The caller is responsible for configuring TLS and validating this endpoint. + /// This is an escape hatch for advanced flow control, origin, and executor + /// settings that are not exposed directly by this builder. + pub fn from_endpoint(endpoint: Endpoint) -> Self { + Self { + endpoint, + metadata: SharedMetadata::default(), + options: CallOptions::default(), + } + } + + /// Replace the TLS settings, including trust roots, server name, or mTLS identity. + pub fn tls_config(mut self, config: ClientTlsConfig) -> Result { + self.endpoint = self.endpoint.tls_config(config)?; + Ok(self) + } + + /// Set the connection-establishment timeout. + pub fn connect_timeout(mut self, timeout: Duration) -> Self { + self.endpoint = self.endpoint.connect_timeout(timeout); + self + } + + /// Set a default `grpc-timeout` for unary calls. + /// + /// Per-request deadlines override this value. This uses + /// [`Request::set_timeout`]: the channel limits response setup and sends the + /// deadline to the server. Push calls are unaffected; use + /// [`Self::stream_timeout`] to opt into a push deadline. + pub fn request_timeout(mut self, timeout: Duration) -> Self { + self.options.request_timeout = Some(timeout); + self + } + + /// Set the push RPC's `grpc-timeout`. No stream deadline is set by default. + /// + /// The channel limits response setup; enforcement after stream establishment + /// depends on the server. This is not an inactivity timeout between messages. + /// For a client-side receive timeout, wrap `stream.message()` in + /// `tokio::time::timeout`. + pub fn stream_timeout(mut self, timeout: Duration) -> Self { + self.options.stream_timeout = Some(timeout); + self + } + + /// Replace all default request metadata. Per-request values take precedence. + pub fn metadata(mut self, metadata: MetadataMap) -> Self { + self.metadata = SharedMetadata::new(metadata); + self + } + + /// Reuse an existing metadata store for coordinated credential rotation. + pub fn shared_metadata(mut self, metadata: SharedMetadata) -> Self { + self.metadata = metadata; + self + } + + /// Set optional bearer authentication, without changing other metadata. + /// + /// This also updates the shared store if [`Self::shared_metadata`] was used. + pub fn bearer_token(self, token: impl AsRef) -> Result { + self.metadata.set_bearer_token(token)?; + Ok(self) + } + + /// Set the maximum decoded response size in bytes for all service clients. + /// + /// If unset, tonic's default limit is retained (4 MiB). + pub fn max_decoding_message_size(mut self, limit: usize) -> Self { + self.options.max_decoding_message_size = Some(limit); + self + } + + /// Set the maximum encoded request size in bytes for all service clients. + pub fn max_encoding_message_size(mut self, limit: usize) -> Self { + self.options.max_encoding_message_size = Some(limit); + self + } + + /// Enable or disable compression of outgoing requests. Disabled by default. + #[cfg(feature = "gzip")] + pub fn send_gzip(mut self, enabled: bool) -> Self { + self.options.send_gzip = enabled; + self + } + + /// Advertise support for gzip responses. Disabled by default. + #[cfg(feature = "gzip")] + pub fn accept_gzip(mut self, enabled: bool) -> Self { + self.options.accept_gzip = enabled; + self + } + + /// Set TCP keepalive probe idle time, or disable it with `None`. + pub fn tcp_keepalive(mut self, interval: Option) -> Self { + self.endpoint = self.endpoint.tcp_keepalive(interval); + self + } + + /// Enable or disable TCP_NODELAY. + pub fn tcp_nodelay(mut self, enabled: bool) -> Self { + self.endpoint = self.endpoint.tcp_nodelay(enabled); + self + } + + /// Set the HTTP/2 ping interval. Coordinate this with the server's policy. + pub fn http2_keep_alive_interval(mut self, interval: Duration) -> Self { + self.endpoint = self.endpoint.http2_keep_alive_interval(interval); + self + } + + /// Set the maximum wait for a keepalive ping acknowledgement. + pub fn keep_alive_timeout(mut self, timeout: Duration) -> Self { + self.endpoint = self.endpoint.keep_alive_timeout(timeout); + self + } + + /// Send HTTP/2 keepalive pings even when no RPC is active. + pub fn keep_alive_while_idle(mut self, enabled: bool) -> Self { + self.endpoint = self.endpoint.keep_alive_while_idle(enabled); + self + } + + /// Override the user-agent prefix used by tonic. + pub fn user_agent(mut self, user_agent: impl AsRef) -> Result { + self.endpoint = self.endpoint.user_agent(user_agent.as_ref())?; + Ok(self) + } + + /// Establish the shared channel now. Requires a Tokio runtime. + pub async fn connect(self) -> Result { + let channel = self.endpoint.connect().await?; + Ok(self.build_with_channel(channel)) + } + + /// Defer connection until the first RPC. Requires a Tokio runtime. + pub fn connect_lazy(self) -> ApiClient { + let channel = self.endpoint.connect_lazy(); + self.build_with_channel(channel) + } + + /// Apply request settings to a caller-provided channel. + /// + /// The builder's endpoint, TLS, connection, and keepalive options are ignored; + /// the supplied channel owns those settings. Useful for custom connectors. + pub fn build_with_channel(self, channel: Channel) -> ApiClient { + ApiClient { + channel, + metadata: self.metadata, + options: self.options, + } + } +} + +fn validate_endpoint(endpoint: &Endpoint) -> Result<(), ClientError> { + let uri = endpoint.uri(); + if !matches!(uri.scheme_str(), Some("http" | "https")) || uri.host().is_none() { + return Err(ClientError::InvalidEndpoint( + "expected an absolute http:// or https:// origin", + )); + } + if uri + .authority() + .is_some_and(|authority| authority.as_str().contains('@')) + { + return Err(ClientError::InvalidEndpoint( + "use request metadata for credentials instead of URL user information", + )); + } + if !matches!(uri.path(), "" | "/") || uri.query().is_some() { + return Err(ClientError::InvalidEndpoint( + "service URL paths and query strings are not supported", + )); + } + Ok(()) +} + +/// A cloneable collection of the nine application service clients. +/// +/// All service handles share one multiplexed channel. Cloning the facade or a +/// generated handle is inexpensive; separate handles support concurrent calls. +/// No RPC is retried automatically and no body/session fields are injected. +#[derive(Clone, Debug)] +pub struct ApiClient { + channel: Channel, + metadata: SharedMetadata, + options: CallOptions, +} + +macro_rules! service_getter { + ($method:ident, $client:ident, $stream:literal, $description:literal) => { + #[doc = $description] + pub fn $method(&self) -> $client { + let timeout = if $stream { + self.options.stream_timeout + } else { + self.options.request_timeout + }; + let mut client = $client::with_interceptor( + self.channel.clone(), + RequestInterceptor::new(self.metadata.clone(), timeout), + ); + if let Some(limit) = self.options.max_decoding_message_size { + client = client.max_decoding_message_size(limit); + } + if let Some(limit) = self.options.max_encoding_message_size { + client = client.max_encoding_message_size(limit); + } + #[cfg(feature = "gzip")] + { + if self.options.send_gzip { + client = client.send_compressed(tonic::codec::CompressionEncoding::Gzip); + } + if self.options.accept_gzip { + client = client.accept_compressed(tonic::codec::CompressionEncoding::Gzip); + } + } + client + } + }; +} + +impl ApiClient { + /// Create a configuration builder for the supplied HTTP(S) origin. + pub fn builder(endpoint: impl Into) -> Result { + ClientBuilder::new(endpoint) + } + + /// Connect with the default settings and no transport credentials. + pub async fn connect(endpoint: impl Into) -> Result { + Self::builder(endpoint)?.connect().await + } + + /// Wrap an existing channel with empty metadata and default message limits. + /// + /// For custom request settings, use [`ClientBuilder::build_with_channel`]. + pub fn from_channel(channel: Channel) -> Self { + Self { + channel, + metadata: SharedMetadata::default(), + options: CallOptions::default(), + } + } + + /// Access the shared metadata store for credential rotation or replacement. + pub fn metadata(&self) -> SharedMetadata { + self.metadata.clone() + } + + /// Clone the underlying channel for advanced generated-client usage. + /// + /// A raw channel does not apply this facade's metadata or message options. + pub fn channel(&self) -> Channel { + self.channel.clone() + } + + service_getter!( + login, + LoginServiceClient, + false, + "Get the login, session, token, and account lifecycle client." + ); + service_getter!( + user, + UserAccountServiceClient, + false, + "Get the user account, avatar, file, and voice-server client." + ); + service_getter!( + management, + UserManagementServiceClient, + false, + "Get the user-management, badge, OAuth, and community client." + ); + service_getter!( + chat, + ChatRequestsClient, + false, + "Get the contacts, identifiers, and chat-session client." + ); + service_getter!( + synchronization, + SynchronizationServiceClient, + false, + "Get the item synchronization client." + ); + service_getter!( + integration, + IntegrationUserServiceClient, + false, + "Get the account integration and subscription client." + ); + service_getter!( + messenger, + MessengerConnectorClientServiceClient, + false, + "Get the messenger-account connector client." + ); + service_getter!( + addon, + UserAddonServiceClient, + false, + "Get the add-on download client." + ); + service_getter!( + push, + PushServiceClient, + true, + "Get the server-streaming push client. Unary deadlines do not apply." + ); +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn merges_ascii_binary_and_duplicate_metadata() { + let mut defaults = MetadataMap::new(); + defaults.append("x-tag", "one".parse().unwrap()); + defaults.append("x-tag", "two".parse().unwrap()); + defaults.append_bin("x-payload-bin", MetadataValue::from_bytes(&[0, 255])); + defaults.append_bin("x-payload-bin", MetadataValue::from_bytes(&[1, 254])); + let mut interceptor = RequestInterceptor::new(SharedMetadata::new(defaults), None); + let result = interceptor.call(Request::new(())).unwrap(); + assert_eq!(result.metadata().get_all("x-tag").iter().count(), 2); + let binary: Vec<_> = result + .metadata() + .get_all_bin("x-payload-bin") + .iter() + .map(|value| value.to_bytes().unwrap()) + .collect(); + assert_eq!(binary.len(), 2); + assert_eq!(binary[0].as_ref(), &[0, 255]); + assert_eq!(binary[1].as_ref(), &[1, 254]); + } + + #[test] + fn per_request_metadata_overrides_entire_default_key() { + let mut defaults = MetadataMap::new(); + defaults.append("x-tag", "default-one".parse().unwrap()); + defaults.append("x-tag", "default-two".parse().unwrap()); + defaults.insert_bin("x-data-bin", MetadataValue::from_bytes(b"default")); + let mut request = Request::new(()); + request + .metadata_mut() + .insert("x-tag", "explicit".parse().unwrap()); + request + .metadata_mut() + .insert_bin("x-data-bin", MetadataValue::from_bytes(b"explicit")); + let mut interceptor = RequestInterceptor::new(SharedMetadata::new(defaults), None); + let result = interceptor.call(request).unwrap(); + assert_eq!(result.metadata().get_all("x-tag").iter().count(), 1); + assert_eq!(result.metadata().get("x-tag").unwrap(), "explicit"); + assert_eq!( + result + .metadata() + .get_bin("x-data-bin") + .unwrap() + .to_bytes() + .unwrap() + .as_ref(), + b"explicit" + ); + } + + #[test] + fn bearer_rotation_reaches_existing_interceptor_and_preserves_other_headers() { + let mut defaults = MetadataMap::new(); + defaults.insert("x-project", "demo".parse().unwrap()); + let shared = SharedMetadata::new(defaults); + let mut interceptor = RequestInterceptor::new(shared.clone(), None); + shared.set_bearer_token("first").unwrap(); + let first = interceptor.call(Request::new(())).unwrap(); + assert_eq!( + first.metadata().get("authorization").unwrap(), + "Bearer first" + ); + assert!(first + .metadata() + .get("authorization") + .unwrap() + .is_sensitive()); + shared.set_bearer_token("second").unwrap(); + let second = interceptor.call(Request::new(())).unwrap(); + assert_eq!( + second.metadata().get("authorization").unwrap(), + "Bearer second" + ); + assert_eq!(second.metadata().get("x-project").unwrap(), "demo"); + assert!(!format!("{shared:?}").contains("second")); + shared.clear_bearer_token().unwrap(); + assert!(!interceptor + .call(Request::new(())) + .unwrap() + .metadata() + .contains_key("authorization")); + } + + #[test] + fn invalid_bearer_does_not_replace_working_credentials() { + let shared = SharedMetadata::default(); + shared.set_bearer_token("valid").unwrap(); + for invalid in ["", "has space", "injected\r\nheader", "non-ascii-é"] { + assert!(matches!( + shared.set_bearer_token(invalid), + Err(ClientError::InvalidBearerToken) + )); + } + assert_eq!( + shared.snapshot().unwrap().get("authorization").unwrap(), + "Bearer valid" + ); + } + + #[test] + fn default_deadline_is_added_and_explicit_deadline_wins() { + let mut interceptor = + RequestInterceptor::new(SharedMetadata::default(), Some(Duration::from_secs(30))); + let result = interceptor.call(Request::new(())).unwrap(); + let mut expected = Request::new(()); + expected.set_timeout(Duration::from_secs(30)); + assert_eq!( + result.metadata().get("grpc-timeout").unwrap(), + expected.metadata().get("grpc-timeout").unwrap() + ); + let mut explicit = Request::new(()); + explicit.set_timeout(Duration::from_secs(2)); + let deadline = explicit.metadata().get("grpc-timeout").unwrap().clone(); + let result = interceptor.call(explicit).unwrap(); + assert_eq!(result.metadata().get("grpc-timeout").unwrap(), deadline); + } + + #[test] + fn no_timeout_or_auth_is_added_by_default() { + let mut interceptor = RequestInterceptor::new(SharedMetadata::default(), None); + assert!(interceptor + .call(Request::new(())) + .unwrap() + .metadata() + .is_empty()); + let builder = ClientBuilder::new("http://localhost:50051") + .unwrap() + .request_timeout(Duration::from_secs(5)); + assert_eq!( + builder.options.request_timeout, + Some(Duration::from_secs(5)) + ); + assert_eq!(builder.options.stream_timeout, None); + } + + #[test] + fn endpoint_validation_rejects_non_origins() { + for invalid in [ + "ftp://example.com", + "example.com", + "http://example.com/api", + "https://example.com?token=x", + ] { + assert!( + ClientBuilder::new(invalid).is_err(), + "unexpected valid URL: {invalid}" + ); + } + assert!(ClientBuilder::new("http://localhost:50051/").is_ok()); + } +} diff --git a/third_party/schema-api/src/lib.rs b/third_party/schema-api/src/lib.rs new file mode 100644 index 0000000..0302af6 --- /dev/null +++ b/third_party/schema-api/src/lib.rs @@ -0,0 +1,33 @@ +#![doc = include_str!("../README.md")] +#![forbid(unsafe_code)] + +/// Generated protobuf packages. Original package names and RPC routes are preserved. +#[allow(clippy::all, rustdoc::broken_intra_doc_links, non_camel_case_types)] +pub mod proto { + include!(concat!(env!("OUT_DIR"), "/packages.rs")); +} + +/// Local account serialization messages (proto2 presence is preserved). +pub use proto::com::teamspeak::account::proto as account; +/// Main application namespace (login, user, management, chat, sync, integrations). +pub use proto::com::teamspeak::myteamspeak::proto as api; +/// Streaming push transport messages and client. +pub use proto::com::teamspeak::push::proto as push; +/// Local synchronization serialization messages. +pub use proto::com::teamspeak::sync::proto as sync; + +pub mod client; +#[cfg(feature = "reflection")] +pub mod reflection; +pub mod session; +pub mod wire; + +pub use client::{ApiClient, ClientError}; +pub use prost; +pub use prost_types; +pub use session::{SessionRequest, SessionToken}; +pub use tonic; + +/// Includes imports and all schemas enabled for this build; suitable for reflection. +pub const FILE_DESCRIPTOR_SET: &[u8] = + include_bytes!(concat!(env!("OUT_DIR"), "/api_descriptor.bin")); diff --git a/third_party/schema-api/src/reflection.rs b/third_party/schema-api/src/reflection.rs new file mode 100644 index 0000000..8aaf2f9 --- /dev/null +++ b/third_party/schema-api/src/reflection.rs @@ -0,0 +1,329 @@ +//! Runtime schema inspection, dynamic protobuf messages, and protobuf JSON. +//! +//! The JSON helpers use the protobuf JSON mapping: field names are lower camel +//! case, byte fields are base64, 64-bit integers are strings, and enums use their +//! schema names. Embedded `google.protobuf.Any` values are resolved against the +//! bundled descriptors. Unknown JSON fields are rejected by default. + +use std::sync::OnceLock; + +use prost::{Message, Name}; +use prost_reflect::ReflectMessage; +pub use prost_reflect::{ + DescriptorPool, DeserializeOptions, DynamicMessage, MessageDescriptor, SerializeOptions, +}; + +/// An error resolving, decoding, or converting a protobuf message. +#[derive(Debug, thiserror::Error)] +pub enum ReflectionError { + /// The bundled descriptor set does not contain the requested message. + #[error("protobuf message `{0}` is not present in the bundled descriptors")] + UnknownMessage(String), + /// A dynamic message was converted to a different protobuf message type. + #[error("protobuf message type mismatch: expected `{expected}`, got `{actual}`")] + TypeMismatch { + /// Fully qualified protobuf name of the requested Rust type. + expected: String, + /// Fully qualified protobuf name of the dynamic message. + actual: String, + }, + /// The protobuf wire representation could not be decoded. + #[error("cannot decode protobuf message `{message_name}`: {source}")] + Decode { + /// Fully qualified protobuf message name. + message_name: String, + /// Original protobuf decoding error. + #[source] + source: prost::DecodeError, + }, + /// Protobuf JSON encoding or decoding failed. + #[error("protobuf JSON conversion failed: {0}")] + Json(#[from] serde_json::Error), +} + +/// Returns the shared descriptors for all bundled application schemas and imports. +/// +/// Initialize once, then reuse this pool for message, service, method, field, and +/// enum inspection. This does not contact a server or enable a reflection RPC. +/// +/// # Panics +/// +/// Panics if the descriptor set embedded when this crate was built is invalid. +pub fn descriptor_pool() -> &'static DescriptorPool { + static POOL: OnceLock = OnceLock::new(); + POOL.get_or_init(|| { + DescriptorPool::decode(crate::FILE_DESCRIPTOR_SET) + .expect("the descriptor set embedded at build time must be valid") + }) +} + +/// Looks up a fully qualified protobuf message name, with an optional leading dot. +pub fn message_descriptor(full_name: &str) -> Result { + let name = full_name.strip_prefix('.').unwrap_or(full_name); + descriptor_pool() + .get_message_by_name(name) + .ok_or_else(|| ReflectionError::UnknownMessage(full_name.to_owned())) +} + +/// Decodes protobuf wire bytes using the message's fully qualified schema name. +/// +/// Unknown wire fields are retained in the returned dynamic message. Conversion +/// to generated Rust types or JSON may discard those unknown fields. +pub fn decode_dynamic( + full_name: &str, + bytes: impl AsRef<[u8]>, +) -> Result { + let descriptor = message_descriptor(full_name)?; + let message_name = descriptor.full_name().to_owned(); + DynamicMessage::decode(descriptor, bytes.as_ref()).map_err(|source| ReflectionError::Decode { + message_name, + source, + }) +} + +/// Converts a generated Rust message into a dynamic message using its schema name. +pub fn to_dynamic(message: &M) -> Result { + decode_dynamic(&M::full_name(), message.encode_to_vec()) +} + +/// Converts a dynamic message to its corresponding generated Rust type. +/// +/// The fully qualified protobuf names must match; a wire-compatible but different +/// type is rejected. Unknown wire fields are discarded by generated Rust types. +pub fn from_dynamic( + message: &DynamicMessage, +) -> Result { + let expected = M::full_name(); + let actual = message.descriptor().full_name().to_owned(); + if actual != expected { + return Err(ReflectionError::TypeMismatch { expected, actual }); + } + message + .transcode_to() + .map_err(|source| ReflectionError::Decode { + message_name: expected, + source, + }) +} + +/// Serializes a generated message using the standard protobuf JSON mapping. +pub fn to_json(message: &M) -> Result { + Ok(serde_json::to_string(&to_dynamic(message)?)?) +} + +/// Serializes a generated message as pretty-printed protobuf JSON. +pub fn to_json_pretty(message: &M) -> Result { + Ok(serde_json::to_string_pretty(&to_dynamic(message)?)?) +} + +/// Serializes a generated message with explicitly chosen protobuf JSON options. +/// +/// Some options, such as emitting numeric 64-bit values, depart from the standard +/// mapping. Use [`to_json`] for the standard representation. +pub fn to_json_with_options( + message: &M, + options: &SerializeOptions, +) -> Result { + let mut bytes = Vec::new(); + to_dynamic(message)? + .serialize_with_options(&mut serde_json::Serializer::new(&mut bytes), options)?; + // A JSON serializer produces valid UTF-8 by construction. + Ok(String::from_utf8(bytes).expect("JSON output must be valid UTF-8")) +} + +/// Parses one complete protobuf JSON document into a generated message. +/// +/// Both schema field names and their JSON names are accepted. Unknown fields, +/// unknown symbolic enum names, and trailing content are rejected. +pub fn from_json(json: &str) -> Result { + from_json_with_options(json, &DeserializeOptions::new()) +} + +/// Parses protobuf JSON with explicit decoding options. +pub fn from_json_with_options( + json: &str, + options: &DeserializeOptions, +) -> Result { + from_dynamic(&dynamic_from_json_with_options( + &M::full_name(), + json, + options, + )?) +} + +/// Parses protobuf JSON into a dynamic message identified by its schema name. +pub fn dynamic_from_json(full_name: &str, json: &str) -> Result { + dynamic_from_json_with_options(full_name, json, &DeserializeOptions::new()) +} + +/// Parses protobuf JSON into a dynamic message with explicit decoding options. +pub fn dynamic_from_json_with_options( + full_name: &str, + json: &str, + options: &DeserializeOptions, +) -> Result { + let descriptor = message_descriptor(full_name)?; + let mut deserializer = serde_json::Deserializer::from_str(json); + let message = DynamicMessage::deserialize_with_options(descriptor, &mut deserializer, options)?; + deserializer.end()?; + Ok(message) +} + +#[cfg(test)] +mod tests { + use super::*; + use crate::api::{LoginData, LoginSession}; + use serde_json::json; + + #[test] + fn descriptors_are_cached_and_include_service_methods() { + assert!(std::ptr::eq(descriptor_pool(), descriptor_pool())); + let service = descriptor_pool() + .get_service_by_name("com.teamspeak.myteamspeak.proto.login.LoginService") + .unwrap(); + let method = service + .methods() + .find(|method| method.name() == "login") + .unwrap(); + assert_eq!(method.input().full_name(), LoginData::full_name()); + assert_eq!(method.output().full_name(), LoginSession::full_name()); + } + + #[test] + fn json_uses_schema_enum_names_and_camel_case_fields() { + let message = LoginData { + email: "person@example.invalid".into(), + skip_session: true, + origin: 1, + device_id: "device-1".into(), + ..Default::default() + }; + let value: serde_json::Value = serde_json::from_str(&to_json(&message).unwrap()).unwrap(); + assert_eq!( + value, + json!({ + "email": "person@example.invalid", + "skipSession": true, + "origin": "WEBSITE", + "deviceId": "device-1", + }) + ); + assert_eq!(from_json::(&value.to_string()).unwrap(), message); + } + + #[test] + fn json_encodes_bytes_and_full_precision_int64() { + let message = LoginSession { + key: vec![0, 1, 2, 255], + purge: i64::MAX, + error: 200, + ..Default::default() + }; + let value: serde_json::Value = serde_json::from_str(&to_json(&message).unwrap()).unwrap(); + assert_eq!(value["key"], "AAEC/w=="); + assert_eq!(value["purge"], "9223372036854775807"); + assert_eq!(value["error"], "ERROR_LOGIN_OK"); + assert_eq!( + from_json::(&value.to_string()).unwrap(), + message + ); + } + + #[test] + fn unknown_numeric_enum_values_survive_json() { + let message: LoginData = from_json(r#"{"origin":9237}"#).unwrap(); + assert_eq!(message.origin, 9237); + assert_eq!(to_json(&message).unwrap(), r#"{"origin":9237}"#); + } + + #[test] + fn parser_accepts_original_field_names() { + let message: LoginData = from_json(r#"{"device_id":"device-2"}"#).unwrap(); + assert_eq!(message.device_id, "device-2"); + } + + #[test] + fn invalid_json_is_rejected_without_ignoring_trailing_content() { + for input in [ + r#"{"origin":"UNDEFINED_ORIGIN"}"#, + r#"{"email":false}"#, + r#"{} {}"#, + r#"{"unknownField":true}"#, + ] { + assert!(from_json::(input).is_err(), "accepted {input}"); + } + assert!(from_json::(r#"{"purge":"9223372036854775808"}"#).is_err()); + assert!(from_json::(r#"{"key":"%%%"}"#).is_err()); + } + + #[test] + fn caller_can_explicitly_accept_unknown_json_fields() { + let message = from_json_with_options::( + r#"{"email":"test@example.invalid","future":true}"#, + &DeserializeOptions::new().deny_unknown_fields(false), + ) + .unwrap(); + assert_eq!(message.email, "test@example.invalid"); + } + + #[test] + fn dynamic_decoding_preserves_unknown_wire_fields() { + // LoginData.email = "a" followed by unknown varint field 100 = 1. + let wire = [0x0a, 0x01, b'a', 0xa0, 0x06, 0x01]; + let dynamic = decode_dynamic(&format!(".{}", LoginData::full_name()), wire).unwrap(); + assert_eq!(dynamic.unknown_fields().count(), 1); + assert_eq!(dynamic.encode_to_vec(), wire); + let typed: LoginData = from_dynamic(&dynamic).unwrap(); + assert_eq!(typed.email, "a"); + assert_eq!(typed.encode_to_vec(), [0x0a, 0x01, b'a']); + } + + #[test] + fn dynamic_conversion_checks_message_identity() { + let dynamic = to_dynamic(&LoginData::default()).unwrap(); + assert!(matches!( + from_dynamic::(&dynamic), + Err(ReflectionError::TypeMismatch { .. }) + )); + assert!(matches!( + decode_dynamic("missing.Message", []), + Err(ReflectionError::UnknownMessage(_)) + )); + assert!(matches!( + decode_dynamic(&LoginData::full_name(), [0x0a, 0xff]), + Err(ReflectionError::Decode { .. }) + )); + } + + #[test] + fn push_any_payload_uses_embedded_descriptors() { + let input = json!({ + "payload": { + "@type": "type.googleapis.com/com.teamspeak.myteamspeak.proto.push.AuthTokenUsed", + "idHash": "hash-123" + } + }); + let dynamic = dynamic_from_json( + "com.teamspeak.myteamspeak.proto.push.PushNotification", + &input.to_string(), + ) + .unwrap(); + assert_eq!(serde_json::to_value(&dynamic).unwrap(), input); + let message: crate::api::push::PushNotification = from_dynamic(&dynamic).unwrap(); + assert_eq!( + from_json::(&input.to_string()).unwrap(), + message + ); + assert_eq!( + serde_json::from_str::(&to_json(&message).unwrap()).unwrap(), + input + ); + let payload = message.payload.unwrap(); + assert_eq!( + payload.type_url, + "type.googleapis.com/com.teamspeak.myteamspeak.proto.push.AuthTokenUsed" + ); + let decoded = crate::api::push::AuthTokenUsed::decode(payload.value.as_slice()).unwrap(); + assert_eq!(decoded.id_hash, "hash-123"); + } +} diff --git a/third_party/schema-api/src/session.rs b/third_party/schema-api/src/session.rs new file mode 100644 index 0000000..8831e2b --- /dev/null +++ b/third_party/schema-api/src/session.rs @@ -0,0 +1,360 @@ +//! Session credentials and helpers for session-bearing request bodies. +//! +//! The schemas put sessions in protobuf fields. These helpers do not infer an +//! HTTP authorization header or copy sessions into unrelated nested messages. + +use std::fmt; + +use crate::api; + +/// A nonempty session credential. Its [`Debug`](fmt::Debug) output is redacted. +/// +/// This wrapper does not encrypt or zeroize its allocation. Generated protobuf +/// requests have ordinary `String` fields and their `Debug` output can include +/// credentials, so avoid logging complete request and response bodies. +#[derive(Clone, PartialEq, Eq)] +pub struct SessionToken(String); + +impl SessionToken { + /// Wrap an existing credential without changing its contents. + /// + /// Only the empty string is rejected: the schema specifies no other token + /// syntax, and whitespace or other characters are therefore not normalized. + pub fn new(value: impl Into) -> Result { + let value = value.into(); + if value.is_empty() { + Err(SessionError::EmptyToken) + } else { + Ok(Self(value)) + } + } + + /// Access the credential for an API that requires its string value. + pub fn as_str(&self) -> &str { + &self.0 + } + + /// Explicitly expose the credential. Equivalent to [`Self::as_str`]. + pub fn expose_secret(&self) -> &str { + self.as_str() + } + + /// Consume this wrapper and return the credential. + pub fn into_inner(self) -> String { + self.0 + } +} + +impl fmt::Debug for SessionToken { + fn fmt(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result { + formatter.write_str("SessionToken([REDACTED])") + } +} + +impl TryFrom<&api::LoginSession> for SessionToken { + type Error = SessionError; + + /// Require `ERROR_LOGIN_OK`, then require a nonempty session credential. + /// + /// A successful login with `skipSession` can legitimately omit a session; + /// that response cannot be converted into a session credential. + fn try_from(response: &api::LoginSession) -> Result { + check_common_status("login", response.error, api::ErrorCommon::ErrorLoginOk)?; + Self::new(response.session.clone()) + } +} + +impl TryFrom for SessionToken { + type Error = SessionError; + + fn try_from(value: String) -> Result { + Self::new(value) + } +} + +impl TryFrom<&str> for SessionToken { + type Error = SessionError; + + fn try_from(value: &str) -> Result { + Self::new(value) + } +} + +impl From<&SessionToken> for api::Session { + fn from(token: &SessionToken) -> Self { + Self { + session: token.as_str().to_owned(), + } + } +} + +impl From<&SessionToken> for api::user::Session { + fn from(token: &SessionToken) -> Self { + Self { + session: token.as_str().to_owned(), + } + } +} + +/// An API-level error from the common login/session status enum. +/// +/// The raw integer is retained, including values introduced by newer servers. +/// It is separate from a gRPC transport status, which may still be successful. +#[derive(Debug, Clone, PartialEq, Eq, thiserror::Error)] +#[error("{operation} returned API status {code}")] +pub struct CommonStatusError { + /// The operation whose expected success status was absent. + pub operation: &'static str, + /// The unmodified protobuf enum integer returned by the server. + pub code: i32, +} + +impl CommonStatusError { + /// Resolve a known status without mapping unknown values to zero. + pub fn known_code(&self) -> Option { + api::ErrorCommon::try_from(self.code).ok() + } + + /// The original protobuf enum name, if the supplied schemas define it. + pub fn code_name(&self) -> Option<&'static str> { + self.known_code().map(|code| code.as_str_name()) + } +} + +/// Failure to create a usable session credential. +#[derive(Debug, Clone, PartialEq, Eq, thiserror::Error)] +pub enum SessionError { + /// The credential was absent or empty. + #[error("the session credential is empty")] + EmptyToken, + /// The server did not return the operation's success status. + #[error(transparent)] + Api(#[from] CommonStatusError), +} + +fn check_common_status( + operation: &'static str, + code: i32, + expected: api::ErrorCommon, +) -> Result<(), CommonStatusError> { + if code == expected as i32 { + Ok(()) + } else { + Err(CommonStatusError { operation, code }) + } +} + +/// Require `ERROR_SESSION_OK` (102) from `LoginService.session`. +pub fn validate_session_status(response: &api::LoginStatus) -> Result<(), CommonStatusError> { + check_common_status("session", response.error, api::ErrorCommon::ErrorSessionOk) +} + +/// Require `ERROR_SESSION_DELETED_OK` (204) from `LoginService.deleteSession`. +/// +/// This is a separate check because successful session validation and deletion +/// have different status values in the supplied schemas. +pub fn validate_deleted_session_status( + response: &api::LoginStatus, +) -> Result<(), CommonStatusError> { + check_common_status( + "deleteSession", + response.error, + api::ErrorCommon::ErrorSessionDeletedOk, + ) +} + +/// Set a request's schema-defined session field while preserving other fields. +/// +/// Implemented for all application request/body messages with a direct string +/// `session` or `session_id` field, and for the explicitly supported wrappers +/// whose nested request carries the session. This does not recursively modify +/// every session-looking field (for example a chat `shared_session_id`). +pub trait SessionRequest: Sized { + /// Replace the request's session credential. + fn set_session(&mut self, token: &SessionToken); + + /// Set the credential and return the request for fluent construction. + fn with_session(mut self, token: &SessionToken) -> Self { + self.set_session(token); + self + } +} + +macro_rules! session_field { + ($($message:path => $field:ident),+ $(,)?) => { + $( + impl SessionRequest for $message { + fn set_session(&mut self, token: &SessionToken) { + self.$field = token.as_str().to_owned(); + } + } + )+ + }; +} + +session_field! { + api::Session => session, + api::integration::RequestIntegrationUserStatus => session, + api::integration::RequestBindData => session, + api::integration::RequestUnbindData => session, + api::integration::UserIntegrationSubscriptionInfoRequest => session_id, + api::messengerconnector::RequestCreateMessengerAccountRequest => session, + api::namedserver::User => session, + api::namedserver::NamedServer => session, + api::tschat::AuthenticatedUser => session, + api::user::UserData => session, + api::user::Session => session, + api::user::BadgeCode => session, + api::user::RequestContactsAvatarInfoRequest => session, + api::user::SpawnVoiceServerLocationRequest => session, + api::user::VoiceServerRequest => session, + api::user::RequestUploadAvatarRequest => session, + api::user::RequestDeleteAvatarInfoRequest => session, + api::user::AvatarSignedUrlRequest => session, + api::user::EmailChange => session, + api::user::ResetAccountRequest => session, + api::user::UpdateUserDescriptionRequest => session, + api::user::UploadFileRequest => session, + api::user::DownloadFileRequest => session, + api::user::UpdateTwoFactorAuthTypeRequest => session, + api::user::TwoFactorAuthTypeRequest => session, + api::user::TwoFactorAuthTypeOtpConfirmationRequest => session, + api::user::RegisterFirebasePush => session, + api::user::AccountDataRequest => session, + api::management::user::Request => session, + api::management::user::BadgeCodesRequest => session, + api::management::user::EmailChange => session, + api::management::user::AssignBadgeRequest => session, + api::management::user::UserRenameRequest => session, + api::management::user::AddBadgeRequest => session, + api::management::user::OAuthClientRequest => session, + api::management::user::SearchTerm => session, + api::management::user::PermissionRequest => session, + api::management::user::TsCommunityRequest => session, + api::management::user::RenameAllowanceRequest => session, + api::management::user::BadgeStatisticsRequest => session, + api::management::user::UserStatisticsRequest => session, + api::synchronization::SyncRequestItemClasses => session, +} + +macro_rules! nested_session { + ($($message:path => $field:ident),+ $(,)?) => { + $( + impl SessionRequest for $message { + fn set_session(&mut self, token: &SessionToken) { + self.$field.get_or_insert_with(Default::default).set_session(token); + } + } + )+ + }; +} + +nested_session! { + api::user::NewUserPublicKeyData => session, + api::tschat::GroupSessionRequest => user, + api::tschat::MoveRequest => user, + api::tschat::ContactRequest => user, + api::tschat::ContactRequestList => user, + api::tschat::IdentifierRequest => user, + api::management::user::UpdateBadgeRequest => add_badge_request, + api::management::user::TsCommunityListRequest => request, +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn login_requires_explicit_success_and_nonempty_token() { + let mut response = api::LoginSession { + session: "credential".into(), + ..Default::default() + }; + assert!(matches!( + SessionToken::try_from(&response), + Err(SessionError::Api(CommonStatusError { code: 0, .. })) + )); + response.error = api::ErrorCommon::ErrorLoginOk as i32; + assert_eq!( + SessionToken::try_from(&response).unwrap().as_str(), + "credential" + ); + response.session.clear(); + assert_eq!( + SessionToken::try_from(&response), + Err(SessionError::EmptyToken) + ); + } + + #[test] + fn redaction_does_not_normalize_credentials() { + let token = SessionToken::new(" secret with spaces ").unwrap(); + assert_eq!(token.as_str(), " secret with spaces "); + let rendered = format!("{token:?}"); + assert!(!rendered.contains("secret")); + assert!(rendered.contains("REDACTED")); + } + + #[test] + fn status_checks_preserve_unknown_codes_and_distinguish_deletion() { + let unknown = api::LoginStatus { + error: 98_765, + ..Default::default() + }; + let error = validate_session_status(&unknown).unwrap_err(); + assert_eq!(error.code, 98_765); + assert_eq!(error.known_code(), None); + assert_eq!(error.code_name(), None); + + let deleted = api::LoginStatus { + error: api::ErrorCommon::ErrorSessionDeletedOk as i32, + ..Default::default() + }; + assert!(validate_deleted_session_status(&deleted).is_ok()); + let error = validate_session_status(&deleted).unwrap_err(); + assert_eq!(error.code_name(), Some("ERROR_SESSION_DELETED_OK")); + } + + #[test] + fn nested_authentication_preserves_existing_request_data() { + let token = SessionToken::new("new-session").unwrap(); + let request = api::tschat::GroupSessionRequest { + user: Some(api::tschat::AuthenticatedUser { + session: "old-session".into(), + matrix_id: "matrix-user".into(), + }), + group_sessions: vec![api::tschat::GroupSession { + shared_session_id: "unrelated-group-session".into(), + ..Default::default() + }], + } + .with_session(&token); + let user = request.user.unwrap(); + assert_eq!(user.session, "new-session"); + assert_eq!(user.matrix_id, "matrix-user"); + assert_eq!( + request.group_sessions[0].shared_session_id, + "unrelated-group-session" + ); + + let request = api::user::NewUserPublicKeyData::default().with_session(&token); + assert_eq!(request.session.unwrap().session, "new-session"); + } + + #[test] + fn session_id_and_oneof_fields_are_handled_without_replacement() { + let token = SessionToken::new("token").unwrap(); + let request = api::integration::UserIntegrationSubscriptionInfoRequest::default() + .with_session(&token); + assert_eq!(request.session_id, "token"); + + let identifier = + api::management::user::request::RequestOneof::Email("owner@example.test".into()); + let request = api::management::user::Request { + request_oneof: Some(identifier.clone()), + ..Default::default() + } + .with_session(&token); + assert_eq!(request.request_oneof, Some(identifier)); + } +} diff --git a/third_party/schema-api/src/wire.rs b/third_party/schema-api/src/wire.rs new file mode 100644 index 0000000..2459905 --- /dev/null +++ b/third_party/schema-api/src/wire.rs @@ -0,0 +1,151 @@ +//! Protobuf binary encoding, checked `Any` envelopes, and opt-in push decoding. + +use prost::{Message, Name}; + +/// Serialize a protobuf message to its ordinary, non-length-delimited bytes. +pub fn encode(message: &M) -> Vec { + message.encode_to_vec() +} + +/// Decode ordinary protobuf bytes into a caller-selected message type. +/// +/// Protobuf itself is not self-describing. A successful decode does not prove +/// that the sender intended the selected type; use [`unpack_any`] when an `Any` +/// envelope is available. +pub fn decode(bytes: impl AsRef<[u8]>) -> Result { + M::decode(bytes.as_ref()) +} + +/// Pack a generated message with the conventional `type.googleapis.com` prefix. +pub fn pack_any(message: &M) -> prost_types::Any { + pack_any_with_prefix(message, "type.googleapis.com") +} + +/// Pack a message using a caller-supplied type URL prefix. +/// +/// Trailing slashes on `prefix` are normalized. The prefix is not dereferenced +/// or validated as a network address. The final URL segment is the fully +/// qualified protobuf message name supplied by [`Name`]. +pub fn pack_any_with_prefix(message: &M, prefix: &str) -> prost_types::Any { + prost_types::Any { + type_url: format!("{}/{}", prefix.trim_end_matches('/'), M::full_name()), + value: encode(message), + } +} + +/// Failure to unpack an `Any` envelope. +#[derive(Debug, thiserror::Error)] +pub enum AnyError { + /// The type URL did not contain `/` followed by the expected full name. + #[error("Any type URL {actual:?} does not identify {expected}")] + TypeMismatch { + /// The fully qualified protobuf name expected by the caller. + expected: String, + /// The unmodified type URL from the envelope. + actual: String, + }, + /// The name matched, but the binary message could not be decoded. + #[error("invalid Any payload: {0}")] + Decode(#[from] prost::DecodeError), +} + +/// Check the full protobuf type name before decoding an `Any` envelope. +/// +/// Custom URL prefixes are accepted, as required by `google.protobuf.Any`: +/// only the segment after the last `/` identifies the message type. A bare +/// message name without `/` is rejected. No URL is fetched. +pub fn unpack_any(any: &prost_types::Any) -> Result { + let expected = M::full_name(); + if any.type_url.rsplit_once('/').map(|(_, name)| name) != Some(expected.as_str()) { + return Err(AnyError::TypeMismatch { + expected, + actual: any.type_url.clone(), + }); + } + Ok(decode(&any.value)?) +} + +/// Decode a push transport payload as a message type selected by the caller. +/// +/// `PushService.Message.payload` is opaque `bytes`: the supplied schema gives +/// no framing, compression, encryption, or payload-type contract. Use this +/// helper only when your application defines the payload as ordinary protobuf +/// bytes of `M`. Unknown protobuf fields can make an incorrect type appear to +/// decode successfully, so decoding is not a type check. +pub fn decode_push_payload( + message: &crate::push::Message, +) -> Result { + decode(&message.payload) +} + +/// Opt in to treating push bytes as an application `PushNotification` envelope. +/// +/// This relationship is **not guaranteed by the schemas**. Call this only when +/// your server specifies it. Then use [`unpack_any`] on the notification's +/// optional `payload` to validate and decode its concrete message type. +pub fn decode_push_notification( + message: &crate::push::Message, +) -> Result { + decode_push_payload(message) +} + +#[cfg(test)] +mod tests { + use super::*; + use crate::api; + + #[test] + fn any_roundtrip_accepts_custom_prefix_but_checks_the_type_name() { + let message = api::Session { + session: "token".into(), + }; + let any = pack_any_with_prefix(&message, "https://schema.example.test/types/"); + assert_eq!( + any.type_url, + "https://schema.example.test/types/com.teamspeak.myteamspeak.proto.Session" + ); + assert_eq!(unpack_any::(&any).unwrap(), message); + // This other Session has identical wire fields, but a different full + // protobuf name. Decoding bytes alone would not catch that mistake. + assert!(matches!( + unpack_any::(&any), + Err(AnyError::TypeMismatch { .. }) + )); + } + + #[test] + fn malformed_envelopes_and_payloads_are_rejected() { + let mut any = pack_any(&api::Session::default()); + any.type_url = api::Session::full_name(); + assert!(matches!( + unpack_any::(&any), + Err(AnyError::TypeMismatch { .. }) + )); + + any.type_url = format!("type.googleapis.com/{}", api::Session::full_name()); + any.value = vec![0x0a, 0x02, 0x41]; // string claims two bytes, only one follows. + assert!(matches!( + unpack_any::(&any), + Err(AnyError::Decode(_)) + )); + } + + #[test] + fn opt_in_push_decoding_supports_checked_nested_any() { + let notification = api::push::SimpleNotification { + r#type: 1, + relogin_neccessary: true, + }; + let envelope = api::push::PushNotification { + payload: Some(pack_any(¬ification)), + }; + let push_message = crate::push::Message { + payload: encode(&envelope), + }; + let decoded = decode_push_notification(&push_message).unwrap(); + assert_eq!( + unpack_any::(&decoded.payload.unwrap()).unwrap(), + notification, + ); + } +} diff --git a/third_party/schema-api/tests/schema.rs b/third_party/schema-api/tests/schema.rs new file mode 100644 index 0000000..7eab5b3 --- /dev/null +++ b/third_party/schema-api/tests/schema.rs @@ -0,0 +1,84 @@ +use schema_api::{account, api, prost::Message}; + +#[test] +fn session_matches_original_wire_field() { + let message = api::Session { + session: "abc".into(), + }; + assert_eq!(message.encode_to_vec(), [0x0a, 3, b'a', b'b', b'c']); + assert_eq!(api::Session::decode(&b"\x0a\x03abc"[..]).unwrap(), message); +} + +#[test] +fn proto2_presence_survives_encoding() { + let absent = account::AccountSession::default(); + let present = account::AccountSession { + id: Some(String::new()), + }; + assert!(absent.encode_to_vec().is_empty()); + assert_eq!(present.encode_to_vec(), [0x0a, 0]); + assert_eq!( + account::AccountSession::decode(present.encode_to_vec().as_slice()) + .unwrap() + .id, + Some(String::new()) + ); +} + +#[test] +fn unknown_enum_values_survive_binary_roundtrip() { + let message = api::LoginStatus { + error: 654321, + uuid: String::new(), + }; + let decoded = api::LoginStatus::decode(message.encode_to_vec().as_slice()).unwrap(); + assert_eq!(decoded.error, 654321); + assert!(api::ErrorCommon::try_from(decoded.error).is_err()); +} + +#[cfg(feature = "reflection")] +#[test] +fn all_application_services_and_methods_are_present() { + let pool = schema_api::reflection::descriptor_pool(); + let expected = [ + ("com.teamspeak.myteamspeak.proto.login.LoginService", 12), + ( + "com.teamspeak.myteamspeak.proto.user.UserAccountService", + 30, + ), + ( + "com.teamspeak.myteamspeak.proto.management.user.UserManagementService", + 39, + ), + ( + "com.teamspeak.myteamspeak.proto.integration.IntegrationUserService", + 4, + ), + ( + "com.teamspeak.myteamspeak.proto.synchronization.SynchronizationService", + 2, + ), + ("com.teamspeak.myteamspeak.proto.tschat.ChatRequests", 16), + ("com.teamspeak.myteamspeak.proto.addon.UserAddonService", 1), + ( + "com.teamspeak.myteamspeak.proto.messengerconnector.MessengerConnectorClientService", + 1, + ), + ("com.teamspeak.push.proto.PushService", 1), + ]; + let mut unary = 0; + let mut streaming = 0; + for (name, count) in expected { + let service = pool.get_service_by_name(name).expect(name); + assert_eq!(service.methods().count(), count, "{name}"); + for method in service.methods() { + assert!(!method.is_client_streaming()); + if method.is_server_streaming() { + streaming += 1; + } else { + unary += 1; + } + } + } + assert_eq!((unary, streaming), (105, 1)); +} diff --git a/third_party/schema-api/tests/transport.rs b/third_party/schema-api/tests/transport.rs new file mode 100644 index 0000000..7b015be --- /dev/null +++ b/third_party/schema-api/tests/transport.rs @@ -0,0 +1,374 @@ +#![cfg(feature = "server")] + +use std::{ + sync::{Arc, Mutex}, + task::{Context, Poll}, + time::Duration, +}; + +use schema_api::{ + api::addon::{ + user_addon_service_server::{UserAddonService, UserAddonServiceServer}, + Download, FileData, GetDownload, Platform, ReturnCode, + }, + push::{ + push_service_server::{PushService, PushServiceServer}, + Message, + }, + ApiClient, +}; +use tokio::{net::TcpListener, sync::oneshot, task::JoinHandle}; +use tokio_stream::wrappers::TcpListenerStream; +use tonic::{ + codegen::{http, Service}, + metadata::{MetadataMap, MetadataValue}, + server::NamedService, + transport::{Channel, Server}, + Code, Request, Response, Status, +}; + +type RecordedRequests = Arc>>; + +#[derive(Clone, Default)] +struct AddonMock { + requests: RecordedRequests, +} + +#[tonic::async_trait] +impl UserAddonService for AddonMock { + async fn request_download( + &self, + request: Request, + ) -> Result, Status> { + self.requests + .lock() + .unwrap() + .push((request.metadata().clone(), request.get_ref().clone())); + + match request.get_ref().addon_uuid.as_str() { + "denied" => { + let mut status = Status::with_details( + Code::PermissionDenied, + "download denied", + b"opaque-status-details".as_slice().into(), + ); + status + .metadata_mut() + .insert("x-policy", "private-addon".parse().unwrap()); + Err(status) + } + // The transport deadline must cancel an RPC that never resolves. + "wait" => std::future::pending().await, + _ => { + let mut response = Response::new(Download { + download_info: Some(FileData { + url: "https://downloads.invalid/addon.zip".into(), + size: 1024, + sha1: "0123456789abcdef".into(), + }), + current_version: request.get_ref().current_version + 1, + return_code: ReturnCode::Update as i32, + addon_list: vec![request.into_inner().addon_uuid], + host_url: "https://downloads.invalid".into(), + }); + response + .metadata_mut() + .insert("x-response", "received".parse().unwrap()); + Ok(response) + } + } + } +} + +#[derive(Clone)] +struct PushMock; + +#[tonic::async_trait] +impl PushService for PushMock { + #[allow(non_camel_case_types)] + type longPullStream = tokio_stream::Iter>>; + + async fn long_pull( + &self, + request: Request<()>, + ) -> Result, Status> { + let mut frames = vec![ + Ok(Message { + payload: vec![0, 1, 2, 255], + }), + Ok(Message { + payload: b"second-frame".to_vec(), + }), + ]; + if request.metadata().contains_key("x-stream-failure") { + frames.push(Err(Status::unavailable("stream interrupted"))); + } + Ok(Response::new(tokio_stream::iter(frames))) + } +} + +/// Record the actual HTTP/2 paths, independently of generated server routing. +#[derive(Clone)] +struct RecordPath { + inner: S, + paths: Arc>>, +} + +impl NamedService for RecordPath { + const NAME: &'static str = S::NAME; +} + +impl Service> for RecordPath +where + S: Service>, +{ + type Response = S::Response; + type Error = S::Error; + type Future = S::Future; + + fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll> { + self.inner.poll_ready(cx) + } + + fn call(&mut self, request: http::Request) -> Self::Future { + self.paths + .lock() + .unwrap() + .push(request.uri().path().to_owned()); + self.inner.call(request) + } +} + +struct TestServer { + url: String, + requests: RecordedRequests, + paths: Arc>>, + shutdown: oneshot::Sender<()>, + task: JoinHandle>, +} + +impl TestServer { + async fn start() -> Self { + // Bind first; the client can immediately connect without timing sleeps. + let listener = TcpListener::bind("127.0.0.1:0").await.unwrap(); + let url = format!("http://{}", listener.local_addr().unwrap()); + let addon = AddonMock::default(); + let requests = addon.requests.clone(); + let paths = Arc::new(Mutex::new(Vec::new())); + let addon = RecordPath { + inner: UserAddonServiceServer::new(addon), + paths: paths.clone(), + }; + let push = RecordPath { + inner: PushServiceServer::new(PushMock), + paths: paths.clone(), + }; + let (shutdown, stopped) = oneshot::channel(); + let task = tokio::spawn(async move { + Server::builder() + .add_service(addon) + .add_service(push) + .serve_with_incoming_shutdown(TcpListenerStream::new(listener), async { + let _ = stopped.await; + }) + .await + }); + Self { + url, + requests, + paths, + shutdown, + task, + } + } + + async fn stop(self) { + self.shutdown.send(()).unwrap(); + tokio::time::timeout(Duration::from_secs(5), self.task) + .await + .expect("local server did not shut down") + .expect("local server task panicked") + .expect("local server failed"); + } +} + +fn download_request(id: &str) -> GetDownload { + GetDownload { + addon_uuid: id.into(), + current_version: 41, + platform: Platform::LinuxX8664 as i32, + ..Default::default() + } +} + +#[tokio::test] +async fn unary_round_trip_preserves_original_route_and_protobuf_fields() { + let server = TestServer::start().await; + let channel = Channel::from_shared(server.url.clone()) + .unwrap() + .connect() + .await + .unwrap(); + let client = ApiClient::from_channel(channel); + let response = client + .addon() + .request_download(download_request("example-addon")) + .await + .unwrap(); + + assert_eq!(response.metadata().get("x-response").unwrap(), "received"); + let response = response.into_inner(); + assert_eq!(response.current_version, 42); + assert_eq!(response.return_code(), ReturnCode::Update); + assert_eq!(response.addon_list, ["example-addon"]); + assert_eq!(response.download_info.unwrap().size, 1024); + assert_eq!( + server.requests.lock().unwrap()[0].1.platform(), + Platform::LinuxX8664 + ); + assert_eq!( + *server.paths.lock().unwrap(), + ["/com.teamspeak.myteamspeak.proto.addon.UserAddonService/requestDownload"] + ); + + drop(client); + server.stop().await; +} + +#[tokio::test] +async fn default_metadata_is_sent_and_request_metadata_takes_precedence() { + let server = TestServer::start().await; + let mut metadata = MetadataMap::new(); + metadata.insert("x-tenant", "default-tenant".parse().unwrap()); + metadata.insert("x-client", "rust-sdk".parse().unwrap()); + metadata.insert_bin("x-context-bin", MetadataValue::from_bytes(b"\0\xffcontext")); + let client = ApiClient::builder(server.url.clone()) + .unwrap() + .metadata(metadata) + .connect() + .await + .unwrap(); + + client + .addon() + .request_download(download_request("first")) + .await + .unwrap(); + let mut request = Request::new(download_request("second")); + request + .metadata_mut() + .insert("x-tenant", "specific-tenant".parse().unwrap()); + client.addon().request_download(request).await.unwrap(); + + { + let requests = server.requests.lock().unwrap(); + assert_eq!(requests.len(), 2); + assert_eq!(requests[0].0.get("x-tenant").unwrap(), "default-tenant"); + assert_eq!(requests[1].0.get("x-tenant").unwrap(), "specific-tenant"); + for (metadata, _) in requests.iter() { + assert_eq!(metadata.get("x-client").unwrap(), "rust-sdk"); + assert_eq!( + metadata + .get_bin("x-context-bin") + .unwrap() + .to_bytes() + .unwrap(), + &b"\0\xffcontext"[..] + ); + } + } + + drop(client); + server.stop().await; +} + +#[tokio::test] +async fn grpc_status_preserves_code_message_details_and_metadata() { + let server = TestServer::start().await; + let client = ApiClient::connect(server.url.clone()).await.unwrap(); + let error = client + .addon() + .request_download(download_request("denied")) + .await + .unwrap_err(); + + assert_eq!(error.code(), Code::PermissionDenied); + assert_eq!(error.message(), "download denied"); + assert_eq!(error.details(), b"opaque-status-details"); + assert_eq!(error.metadata().get("x-policy").unwrap(), "private-addon"); + + drop(client); + server.stop().await; +} + +#[tokio::test] +async fn push_stream_delivers_frames_eof_and_terminal_status() { + let server = TestServer::start().await; + let client = ApiClient::connect(server.url.clone()).await.unwrap(); + + for fail in [false, true] { + let mut request = Request::new(()); + if fail { + request + .metadata_mut() + .insert("x-stream-failure", "true".parse().unwrap()); + } + let mut stream = client.push().long_pull(request).await.unwrap().into_inner(); + assert_eq!( + stream.message().await.unwrap().unwrap().payload, + [0, 1, 2, 255] + ); + assert_eq!( + stream.message().await.unwrap().unwrap().payload, + b"second-frame" + ); + if fail { + let error = stream.message().await.unwrap_err(); + assert_eq!(error.code(), Code::Unavailable); + assert_eq!(error.message(), "stream interrupted"); + } else { + assert!(stream.message().await.unwrap().is_none()); + } + } + assert_eq!( + *server.paths.lock().unwrap(), + [ + "/com.teamspeak.push.proto.PushService/longPull", + "/com.teamspeak.push.proto.PushService/longPull", + ] + ); + + drop(client); + server.stop().await; +} + +#[tokio::test] +async fn configured_deadline_cancels_a_pending_unary_rpc() { + let server = TestServer::start().await; + let client = ApiClient::builder(server.url.clone()) + .unwrap() + .request_timeout(Duration::from_millis(100)) + .connect() + .await + .unwrap(); + let error = tokio::time::timeout( + Duration::from_secs(5), + client.addon().request_download(download_request("wait")), + ) + .await + .expect("the configured deadline did not terminate the RPC") + .unwrap_err(); + + // Tonic currently reports its transport timeout as Cancelled. Servers can + // independently enforce the propagated deadline as DeadlineExceeded. + assert!(matches!( + error.code(), + Code::Cancelled | Code::DeadlineExceeded + )); + assert!(server.requests.lock().unwrap()[0] + .0 + .contains_key("grpc-timeout")); + + drop(client); + server.stop().await; +} diff --git a/tools/voelinctl/src/session.rs b/tools/voelinctl/src/session.rs index 99cb9fa..6b627f4 100644 --- a/tools/voelinctl/src/session.rs +++ b/tools/voelinctl/src/session.rs @@ -19,12 +19,13 @@ use tsproto_packets::packets::{Direction, Flags, OutCommand, PacketType}; use crate::{Action, ChatTarget, ConnectArgs, identity, tree, versions}; pub async fn run(args: ConnectArgs) -> Result<()> { + let version = + versions::resolve(&args.client_version)?.map_or_else(versions::native_version, Ok)?; let mut options = Connection::build(args.address.clone()) .name(args.nick.clone()) + .version(version) + .metadata(versions::client_metadata()) .log_commands(args.log_commands); - if let Some(version) = versions::resolve(&args.client_version)? { - options = options.version(version); - } if let Some(path) = &args.identity { options = options.identity(identity::load(path)?); } diff --git a/tools/voelinctl/src/versions.rs b/tools/voelinctl/src/versions.rs index 698f628..8353b24 100644 --- a/tools/voelinctl/src/versions.rs +++ b/tools/voelinctl/src/versions.rs @@ -1,101 +1,3 @@ -//! Known signed client versions. -//! -//! `clientinit` must carry a `client_version_sign` produced by TeamSpeak's -//! private key, so a client can only claim versions from this list of captured -//! signatures (the `Versions.csv` declaration file). +//! Shared signed client versions and CLI argument resolution. -use anyhow::{Context, Result, bail}; -use base64::prelude::*; -use tsclientlib::Version; - -const VERSIONS_CSV: &str = - include_str!("../../../crates/proto/tsproto-structs/declarations/Versions.csv"); - -#[derive(Clone, Debug, PartialEq, Eq)] -pub struct KnownVersion { - pub version: String, - pub platform: String, - pub signature: String, -} - -impl KnownVersion { - pub fn to_version(&self) -> Result { - let signature = BASE64_STANDARD - .decode(&self.signature) - .with_context(|| format!("invalid signature for {}@{}", self.platform, self.version))?; - Ok(Version::Custom { - platform: self.platform.clone(), - version: self.version.clone(), - signature, - }) - } -} - -pub fn known_versions() -> Vec { - VERSIONS_CSV - .lines() - .skip(1) - .filter(|l| !l.trim().is_empty()) - .filter_map(|l| { - // The version string contains no commas, the signature is base64. - let mut parts = l.splitn(3, ','); - Some(KnownVersion { - version: parts.next()?.to_string(), - platform: parts.next()?.to_string(), - signature: parts.next()?.trim().to_string(), - }) - }) - .collect() -} - -/// Resolve a `--client-version` argument. -/// -/// Accepts `default` (the library default), an index into [`known_versions`], -/// or `@` with the exact strings from `voelinctl versions`. -pub fn resolve(spec: &str) -> Result> { - if spec == "default" { - return Ok(None); - } - let versions = known_versions(); - if let Ok(i) = spec.parse::() { - let Some(v) = versions.get(i) else { - bail!("version index {i} out of range (0..{})", versions.len()); - }; - return v.to_version().map(Some); - } - let Some((platform, version)) = spec.split_once('@') else { - bail!("expected `default`, an index or `@`, got {spec:?}"); - }; - match versions.iter().find(|v| v.platform == platform && v.version == version) { - Some(v) => v.to_version().map(Some), - None => bail!("unknown client version {spec:?}, see `voelinctl versions`"), - } -} - -#[cfg(test)] -mod tests { - use super::*; - - #[test] - fn parses_all_rows() { - let versions = known_versions(); - assert!(versions.len() > 50); - for v in &versions { - let signature = BASE64_STANDARD.decode(&v.signature).unwrap(); - assert_eq!(signature.len(), 64, "{v:?}"); - } - } - - #[test] - fn resolves_specs() { - assert!(resolve("default").unwrap().is_none()); - let by_index = resolve("0").unwrap().unwrap(); - let first = &known_versions()[0]; - let by_name = resolve(&format!("{}@{}", first.platform, first.version)).unwrap().unwrap(); - assert_eq!(by_index, by_name); - assert_eq!(by_name.get_platform(), first.platform); - assert!(resolve("Nope@1.0").is_err()); - assert!(resolve("100000").is_err()); - assert!(resolve("garbage").is_err()); - } -} +pub use voelin_core::versions::{client_metadata, known_versions, native_version, resolve};