Files
teleport/buf-ts.gen.yaml
T
a46f16d3ce TDPB Message Definitions (#62100)
* Add protobuf definitions for tdpb

* * Re-add separate announce/acknowledge shared directory messages
* Add missing 'bytes_written' field to 'SharedDirectoryResponse'
* Use new MFA service protos in MFA messages which will bring in fewer dependencies

* Add typescript generation of TDPB protos

* Refactor legacy/types.proto by pulling 'Metadata' and various MFA device messages definitions into their own files. This eliminates the new MFA service's dependency on legacy/types.proto and drastically reduces the transitive dependencies of tdpb.proto.

* Apply suggestions from code review

Co-authored-by: Zac Bergquist <zac.bergquist@goteleport.com>
Co-authored-by: Dan Share <10600907+danielashare@users.noreply.github.com>

* Add '_ms' suffix to latency stats message.

* Update/add license headers

* Refresh protos and regenerate terraform docs

* Remove use of custom type option and 'MessageType' enums in favor of an 'Envelope' message utilizing oneof.
Follow the same approach for SharedDirectory request and response messages.

---------

Co-authored-by: Zac Bergquist <zac.bergquist@goteleport.com>
Co-authored-by: Dan Share <10600907+danielashare@users.noreply.github.com>
2025-12-31 16:59:49 +00:00

42 lines
1.3 KiB
YAML

version: v2
inputs:
- directory: .
paths:
- api/proto/teleport/userpreferences/
- api/proto/teleport/desktop/
- proto/prehog/
- proto/teleport/lib/teleterm/
- proto/teleport/lib/vnet/diag/
- proto/teleport/web/
plugins:
- local:
- npm
- exec
- --yes
# we're using an exact version so if the package is already available
# there's no need to reach out to the registry, even if we could use more
# recent dependencies
- --prefer-offline
# this version should be kept in sync with build.assets/Dockerfile-grpcbox
- --package=@protobuf-ts/plugin@2.9.3
- --package=@protobuf-ts/plugin-framework@2.9.3
- --package=@protobuf-ts/protoc@2.9.3
- --package=@protobuf-ts/runtime@2.9.3
- --package=@protobuf-ts/runtime-rpc@2.9.3
- --package=typescript@3.9.10
- --
- protoc-gen-ts
out: gen/proto/ts
opt:
- add_pb_suffix
- eslint_disable
# By default, only the proto files passed as input to protoc are generated, not the files they
# import (with the exception of well-known types which are always generated when imported).
# generate_dependencies generates code for dependencies too.
- generate_dependencies
- server_grpc1
- ts_nocheck
strategy: all