From 153a1f619e2a22675e54a68f7031ebf7106c7d46 Mon Sep 17 00:00:00 2001 From: lukasIO Date: Wed, 6 Mar 2024 11:47:47 +0100 Subject: [PATCH 01/17] Separate protobufs from module code --- .changeset/README.md | 8 + .changeset/config.json | 15 + .github/workflows/generate.yaml | 84 +- .gitignore | 2 + package.json | 8 + {auth => packages/golang/auth}/accesstoken.go | 0 .../golang/auth}/accesstoken_test.go | 0 .../auth}/authfakes/fake_key_provider.go | 0 .../auth}/authfakes/fake_token_verifier.go | 0 {auth => packages/golang/auth}/grants.go | 0 {auth => packages/golang/auth}/grants_test.go | 0 {auth => packages/golang/auth}/interfaces.go | 0 {auth => packages/golang/auth}/provider.go | 0 .../golang/auth}/provider_test.go | 0 {auth => packages/golang/auth}/verifier.go | 0 .../golang/auth}/verifier_test.go | 0 bootstrap.sh => packages/golang/bootstrap.sh | 0 {egress => packages/golang/egress}/errors.go | 0 {egress => packages/golang/egress}/token.go | 0 {egress => packages/golang/egress}/types.go | 0 .../golang/egress}/types_test.go | 0 go.mod => packages/golang/go.mod | 0 go.sum => packages/golang/go.sum | 0 {infra => packages/golang/infra}/link.pb.go | 4 +- .../golang/infra}/link_grpc.pb.go | 2 +- .../golang/ingress}/errors.go | 0 {ingress => packages/golang/ingress}/token.go | 0 .../golang/ingress}/validation.go | 0 .../golang/ingress}/validation_test.go | 0 .../golang/livekit}/README.md | 0 .../golang/livekit}/livekit_agent.pb.go | 4 +- .../golang/livekit}/livekit_analytics.pb.go | 4 +- .../livekit}/livekit_analytics_grpc.pb.go | 2 +- .../golang/livekit}/livekit_egress.pb.go | 4 +- .../golang/livekit}/livekit_egress.twirp.go | 0 .../golang/livekit}/livekit_ingress.pb.go | 4 +- .../golang/livekit}/livekit_ingress.twirp.go | 0 .../golang/livekit}/livekit_internal.pb.go | 4 +- .../golang/livekit}/livekit_models.pb.go | 4 +- .../golang/livekit}/livekit_room.pb.go | 4 +- .../golang/livekit}/livekit_room.twirp.go | 0 .../golang/livekit}/livekit_rtc.pb.go | 4 +- .../golang/livekit}/livekit_sip.pb.go | 4 +- .../golang/livekit}/livekit_sip.twirp.go | 0 .../golang/livekit}/livekit_webhook.pb.go | 4 +- {livekit => packages/golang/livekit}/types.go | 0 {logger => packages/golang/logger}/config.go | 0 {logger => packages/golang/logger}/logger.go | 0 .../golang/logger}/logger_test.go | 0 .../golang/logger}/pionlogger/logadapter.go | 0 .../golang/logger}/pionlogger/logger.go | 0 {logger => packages/golang/logger}/proto.go | 0 .../golang/logger}/zaputil/deferrer.go | 0 .../golang/logger}/zaputil/deferrer_test.go | 0 .../golang/logger}/zaputil/encoder.go | 0 .../golang/logger}/zaputil/fieldsampler.go | 0 .../logger}/zaputil/fieldsampler_test.go | 0 .../golang/logger}/zaputil/sampler.go | 0 .../golang/logger}/zaputil/zaputil.go | 0 .../golang/logger}/zaputil/zaputil_test.go | 0 magefile.go => packages/golang/magefile.go | 8 +- {pprof => packages/golang/pprof}/pprof.go | 0 .../golang/psrpc}/compilercheck.go | 0 {psrpc => packages/golang/psrpc}/errors.go | 0 {redis => packages/golang/redis}/redis.go | 0 {rpc => packages/golang/rpc}/agent.pb.go | 4 +- {rpc => packages/golang/rpc}/agent.psrpc.go | 0 {rpc => packages/golang/rpc}/egress.pb.go | 4 +- {rpc => packages/golang/rpc}/egress.psrpc.go | 0 {rpc => packages/golang/rpc}/egress_client.go | 0 {rpc => packages/golang/rpc}/ingress.pb.go | 4 +- {rpc => packages/golang/rpc}/ingress.psrpc.go | 0 .../golang/rpc}/ingress_client.go | 0 {rpc => packages/golang/rpc}/io.pb.go | 4 +- {rpc => packages/golang/rpc}/io.psrpc.go | 0 {rpc => packages/golang/rpc}/keepalive.pb.go | 4 +- .../golang/rpc}/keepalive.psrpc.go | 0 {rpc => packages/golang/rpc}/logging.go | 0 {rpc => packages/golang/rpc}/metrics.go | 0 .../golang/rpc}/participant.pb.go | 4 +- .../golang/rpc}/participant.psrpc.go | 0 {rpc => packages/golang/rpc}/race.go | 0 {rpc => packages/golang/rpc}/room.pb.go | 4 +- {rpc => packages/golang/rpc}/room.psrpc.go | 0 .../rpc}/rpcfakes/fake_keepalive_pub_sub.go | 0 .../rpcfakes/fake_typed_participant_client.go | 0 .../rpc}/rpcfakes/fake_typed_room_client.go | 0 {rpc => packages/golang/rpc}/signal.pb.go | 4 +- {rpc => packages/golang/rpc}/signal.psrpc.go | 0 {rpc => packages/golang/rpc}/sip.pb.go | 4 +- {rpc => packages/golang/rpc}/sip.psrpc.go | 0 {rpc => packages/golang/rpc}/sip_client.go | 0 {rpc => packages/golang/rpc}/typed_api.go | 0 {sdp => packages/golang/sdp}/sdp.go | 0 {sip => packages/golang/sip}/sip.go | 0 {sip => packages/golang/sip}/sip_test.go | 0 {sip => packages/golang/sip}/token.go | 0 {tools => packages/golang/tools}/tools.go | 0 {tracer => packages/golang/tracer}/tracer.go | 0 {utils => packages/golang/utils}/bitmap.go | 0 .../golang/utils}/bitmap_test.go | 0 {utils => packages/golang/utils}/codec.go | 0 .../golang/utils}/connectionquality.go | 0 {utils => packages/golang/utils}/cpu.go | 0 {utils => packages/golang/utils}/cpu_all.go | 0 .../golang/utils}/cpu_darwin.go | 0 {utils => packages/golang/utils}/cpu_linux.go | 0 {utils => packages/golang/utils}/cpu_null.go | 0 .../golang/utils}/dedupedslice.go | 0 .../golang/utils}/dedupedslice_test.go | 0 {utils => packages/golang/utils}/err_array.go | 0 .../golang/utils}/err_array_test.go | 0 .../golang/utils}/event_emitter.go | 0 .../golang/utils}/event_emitter_test.go | 0 {utils => packages/golang/utils}/graph.go | 0 .../golang/utils}/graph_test.go | 0 {utils => packages/golang/utils}/id.go | 0 {utils => packages/golang/utils}/id_test.go | 0 .../golang/utils}/lock_tracker.go | 0 .../golang/utils}/lock_tracker_test.go | 0 {utils => packages/golang/utils}/math.go | 0 {utils => packages/golang/utils}/messaging.go | 0 .../golang/utils}/multitonservice.go | 0 .../golang/utils}/multitonservice_test.go | 0 {utils => packages/golang/utils}/must.go | 0 {utils => packages/golang/utils}/must/must.go | 0 {utils => packages/golang/utils}/parallel.go | 0 .../golang/utils}/parallel_test.go | 0 .../golang/utils}/protoproxy.go | 0 .../golang/utils}/protoproxy_test.go | 0 {utils => packages/golang/utils}/redact.go | 0 {utils => packages/golang/utils}/rtpstats.go | 0 {utils => packages/golang/utils}/secret.go | 0 .../golang/utils}/timed_aggregator.go | 0 .../golang/utils}/timed_aggregator_test.go | 0 .../golang/utils}/timed_version.go | 0 .../golang/utils}/timed_version_test.go | 0 .../golang/utils}/timeoutqueue.go | 0 .../golang/utils}/timeoutqueue_test.go | 0 .../golang/utils}/timeseries/timeseries.go | 0 .../utils}/timeseries/timeseries_test.go | 0 {utils => packages/golang/utils}/welford.go | 0 .../golang/utils}/workergroup.go | 0 .../golang/webhook}/consts.go | 0 .../golang/webhook}/notifier.go | 0 .../golang/webhook}/url_notifier.go | 0 .../golang/webhook}/verifier.go | 0 .../golang/webhook}/webhook_test.go | 0 {xtls => packages/golang/xtls}/tls.go | 0 packages/{js => javascript}/.gitignore | 0 packages/{js => javascript}/package.json | 2 +- packages/{js => javascript}/pnpm-lock.yaml | 0 .../src/gen/livekit_agent_pb.d.ts | 0 .../src/gen/livekit_agent_pb.js | 0 .../src/gen/livekit_egress_pb.d.ts | 0 .../src/gen/livekit_egress_pb.js | 0 .../src/gen/livekit_ingress_pb.d.ts | 0 .../src/gen/livekit_ingress_pb.js | 0 .../src/gen/livekit_models_pb.d.ts | 5 + .../src/gen/livekit_models_pb.js | 1 + .../src/gen/livekit_rtc_pb.d.ts | 0 .../src/gen/livekit_rtc_pb.js | 0 .../src/gen/livekit_sip_pb.d.ts | 20 +- .../src/gen/livekit_sip_pb.js | 2 + .../src/gen/livekit_webhook_pb.d.ts | 0 .../src/gen/livekit_webhook_pb.js | 0 .../{js => javascript}/src/gen/version.d.ts | 0 .../{js => javascript}/src/gen/version.js | 0 packages/{js => javascript}/src/index.d.ts | 0 packages/{js => javascript}/src/index.js | 0 pnpm-lock.yaml | 1970 +++++++++++++++++ {infra => protobufs/infra}/link.proto | 0 .../livekit_agent.proto | 0 .../livekit_analytics.proto | 0 .../livekit_egress.proto | 0 .../livekit_ingress.proto | 0 .../livekit_internal.proto | 0 .../livekit_models.proto | 0 .../livekit_room.proto | 0 .../livekit_rtc.proto | 0 .../livekit_sip.proto | 0 .../livekit_webhook.proto | 0 {rpc => protobufs/rpc}/agent.proto | 0 {rpc => protobufs/rpc}/egress.proto | 0 {rpc => protobufs/rpc}/ingress.proto | 0 {rpc => protobufs/rpc}/io.proto | 0 {rpc => protobufs/rpc}/keepalive.proto | 0 {rpc => protobufs/rpc}/participant.proto | 0 {rpc => protobufs/rpc}/room.proto | 0 {rpc => protobufs/rpc}/signal.proto | 0 {rpc => protobufs/rpc}/sip.proto | 0 191 files changed, 2124 insertions(+), 85 deletions(-) create mode 100644 .changeset/README.md create mode 100644 .changeset/config.json create mode 100644 package.json rename {auth => packages/golang/auth}/accesstoken.go (100%) rename {auth => packages/golang/auth}/accesstoken_test.go (100%) rename {auth => packages/golang/auth}/authfakes/fake_key_provider.go (100%) rename {auth => packages/golang/auth}/authfakes/fake_token_verifier.go (100%) rename {auth => packages/golang/auth}/grants.go (100%) rename {auth => packages/golang/auth}/grants_test.go (100%) rename {auth => packages/golang/auth}/interfaces.go (100%) rename {auth => packages/golang/auth}/provider.go (100%) rename {auth => packages/golang/auth}/provider_test.go (100%) rename {auth => packages/golang/auth}/verifier.go (100%) rename {auth => packages/golang/auth}/verifier_test.go (100%) rename bootstrap.sh => packages/golang/bootstrap.sh (100%) rename {egress => packages/golang/egress}/errors.go (100%) rename {egress => packages/golang/egress}/token.go (100%) rename {egress => packages/golang/egress}/types.go (100%) rename {egress => packages/golang/egress}/types_test.go (100%) rename go.mod => packages/golang/go.mod (100%) rename go.sum => packages/golang/go.sum (100%) rename {infra => packages/golang/infra}/link.pb.go (99%) rename {infra => packages/golang/infra}/link_grpc.pb.go (99%) rename {ingress => packages/golang/ingress}/errors.go (100%) rename {ingress => packages/golang/ingress}/token.go (100%) rename {ingress => packages/golang/ingress}/validation.go (100%) rename {ingress => packages/golang/ingress}/validation_test.go (100%) rename {livekit => packages/golang/livekit}/README.md (100%) rename {livekit => packages/golang/livekit}/livekit_agent.pb.go (99%) rename {livekit => packages/golang/livekit}/livekit_analytics.pb.go (99%) rename {livekit => packages/golang/livekit}/livekit_analytics_grpc.pb.go (99%) rename {livekit => packages/golang/livekit}/livekit_egress.pb.go (99%) rename {livekit => packages/golang/livekit}/livekit_egress.twirp.go (100%) rename {livekit => packages/golang/livekit}/livekit_ingress.pb.go (99%) rename {livekit => packages/golang/livekit}/livekit_ingress.twirp.go (100%) rename {livekit => packages/golang/livekit}/livekit_internal.pb.go (99%) rename {livekit => packages/golang/livekit}/livekit_models.pb.go (99%) rename {livekit => packages/golang/livekit}/livekit_room.pb.go (99%) rename {livekit => packages/golang/livekit}/livekit_room.twirp.go (100%) rename {livekit => packages/golang/livekit}/livekit_rtc.pb.go (99%) rename {livekit => packages/golang/livekit}/livekit_sip.pb.go (99%) rename {livekit => packages/golang/livekit}/livekit_sip.twirp.go (100%) rename {livekit => packages/golang/livekit}/livekit_webhook.pb.go (99%) rename {livekit => packages/golang/livekit}/types.go (100%) rename {logger => packages/golang/logger}/config.go (100%) rename {logger => packages/golang/logger}/logger.go (100%) rename {logger => packages/golang/logger}/logger_test.go (100%) rename {logger => packages/golang/logger}/pionlogger/logadapter.go (100%) rename {logger => packages/golang/logger}/pionlogger/logger.go (100%) rename {logger => packages/golang/logger}/proto.go (100%) rename {logger => packages/golang/logger}/zaputil/deferrer.go (100%) rename {logger => packages/golang/logger}/zaputil/deferrer_test.go (100%) rename {logger => packages/golang/logger}/zaputil/encoder.go (100%) rename {logger => packages/golang/logger}/zaputil/fieldsampler.go (100%) rename {logger => packages/golang/logger}/zaputil/fieldsampler_test.go (100%) rename {logger => packages/golang/logger}/zaputil/sampler.go (100%) rename {logger => packages/golang/logger}/zaputil/zaputil.go (100%) rename {logger => packages/golang/logger}/zaputil/zaputil_test.go (100%) rename magefile.go => packages/golang/magefile.go (98%) rename {pprof => packages/golang/pprof}/pprof.go (100%) rename {psrpc => packages/golang/psrpc}/compilercheck.go (100%) rename {psrpc => packages/golang/psrpc}/errors.go (100%) rename {redis => packages/golang/redis}/redis.go (100%) rename {rpc => packages/golang/rpc}/agent.pb.go (99%) rename {rpc => packages/golang/rpc}/agent.psrpc.go (100%) rename {rpc => packages/golang/rpc}/egress.pb.go (99%) rename {rpc => packages/golang/rpc}/egress.psrpc.go (100%) rename {rpc => packages/golang/rpc}/egress_client.go (100%) rename {rpc => packages/golang/rpc}/ingress.pb.go (99%) rename {rpc => packages/golang/rpc}/ingress.psrpc.go (100%) rename {rpc => packages/golang/rpc}/ingress_client.go (100%) rename {rpc => packages/golang/rpc}/io.pb.go (99%) rename {rpc => packages/golang/rpc}/io.psrpc.go (100%) rename {rpc => packages/golang/rpc}/keepalive.pb.go (99%) rename {rpc => packages/golang/rpc}/keepalive.psrpc.go (100%) rename {rpc => packages/golang/rpc}/logging.go (100%) rename {rpc => packages/golang/rpc}/metrics.go (100%) rename {rpc => packages/golang/rpc}/participant.pb.go (99%) rename {rpc => packages/golang/rpc}/participant.psrpc.go (100%) rename {rpc => packages/golang/rpc}/race.go (100%) rename {rpc => packages/golang/rpc}/room.pb.go (99%) rename {rpc => packages/golang/rpc}/room.psrpc.go (100%) rename {rpc => packages/golang/rpc}/rpcfakes/fake_keepalive_pub_sub.go (100%) rename {rpc => packages/golang/rpc}/rpcfakes/fake_typed_participant_client.go (100%) rename {rpc => packages/golang/rpc}/rpcfakes/fake_typed_room_client.go (100%) rename {rpc => packages/golang/rpc}/signal.pb.go (99%) rename {rpc => packages/golang/rpc}/signal.psrpc.go (100%) rename {rpc => packages/golang/rpc}/sip.pb.go (99%) rename {rpc => packages/golang/rpc}/sip.psrpc.go (100%) rename {rpc => packages/golang/rpc}/sip_client.go (100%) rename {rpc => packages/golang/rpc}/typed_api.go (100%) rename {sdp => packages/golang/sdp}/sdp.go (100%) rename {sip => packages/golang/sip}/sip.go (100%) rename {sip => packages/golang/sip}/sip_test.go (100%) rename {sip => packages/golang/sip}/token.go (100%) rename {tools => packages/golang/tools}/tools.go (100%) rename {tracer => packages/golang/tracer}/tracer.go (100%) rename {utils => packages/golang/utils}/bitmap.go (100%) rename {utils => packages/golang/utils}/bitmap_test.go (100%) rename {utils => packages/golang/utils}/codec.go (100%) rename {utils => packages/golang/utils}/connectionquality.go (100%) rename {utils => packages/golang/utils}/cpu.go (100%) rename {utils => packages/golang/utils}/cpu_all.go (100%) rename {utils => packages/golang/utils}/cpu_darwin.go (100%) rename {utils => packages/golang/utils}/cpu_linux.go (100%) rename {utils => packages/golang/utils}/cpu_null.go (100%) rename {utils => packages/golang/utils}/dedupedslice.go (100%) rename {utils => packages/golang/utils}/dedupedslice_test.go (100%) rename {utils => packages/golang/utils}/err_array.go (100%) rename {utils => packages/golang/utils}/err_array_test.go (100%) rename {utils => packages/golang/utils}/event_emitter.go (100%) rename {utils => packages/golang/utils}/event_emitter_test.go (100%) rename {utils => packages/golang/utils}/graph.go (100%) rename {utils => packages/golang/utils}/graph_test.go (100%) rename {utils => packages/golang/utils}/id.go (100%) rename {utils => packages/golang/utils}/id_test.go (100%) rename {utils => packages/golang/utils}/lock_tracker.go (100%) rename {utils => packages/golang/utils}/lock_tracker_test.go (100%) rename {utils => packages/golang/utils}/math.go (100%) rename {utils => packages/golang/utils}/messaging.go (100%) rename {utils => packages/golang/utils}/multitonservice.go (100%) rename {utils => packages/golang/utils}/multitonservice_test.go (100%) rename {utils => packages/golang/utils}/must.go (100%) rename {utils => packages/golang/utils}/must/must.go (100%) rename {utils => packages/golang/utils}/parallel.go (100%) rename {utils => packages/golang/utils}/parallel_test.go (100%) rename {utils => packages/golang/utils}/protoproxy.go (100%) rename {utils => packages/golang/utils}/protoproxy_test.go (100%) rename {utils => packages/golang/utils}/redact.go (100%) rename {utils => packages/golang/utils}/rtpstats.go (100%) rename {utils => packages/golang/utils}/secret.go (100%) rename {utils => packages/golang/utils}/timed_aggregator.go (100%) rename {utils => packages/golang/utils}/timed_aggregator_test.go (100%) rename {utils => packages/golang/utils}/timed_version.go (100%) rename {utils => packages/golang/utils}/timed_version_test.go (100%) rename {utils => packages/golang/utils}/timeoutqueue.go (100%) rename {utils => packages/golang/utils}/timeoutqueue_test.go (100%) rename {utils => packages/golang/utils}/timeseries/timeseries.go (100%) rename {utils => packages/golang/utils}/timeseries/timeseries_test.go (100%) rename {utils => packages/golang/utils}/welford.go (100%) rename {utils => packages/golang/utils}/workergroup.go (100%) rename {webhook => packages/golang/webhook}/consts.go (100%) rename {webhook => packages/golang/webhook}/notifier.go (100%) rename {webhook => packages/golang/webhook}/url_notifier.go (100%) rename {webhook => packages/golang/webhook}/verifier.go (100%) rename {webhook => packages/golang/webhook}/webhook_test.go (100%) rename {xtls => packages/golang/xtls}/tls.go (100%) rename packages/{js => javascript}/.gitignore (100%) rename packages/{js => javascript}/package.json (68%) rename packages/{js => javascript}/pnpm-lock.yaml (100%) rename packages/{js => javascript}/src/gen/livekit_agent_pb.d.ts (100%) rename packages/{js => javascript}/src/gen/livekit_agent_pb.js (100%) rename packages/{js => javascript}/src/gen/livekit_egress_pb.d.ts (100%) rename packages/{js => javascript}/src/gen/livekit_egress_pb.js (100%) rename packages/{js => javascript}/src/gen/livekit_ingress_pb.d.ts (100%) rename packages/{js => javascript}/src/gen/livekit_ingress_pb.js (100%) rename packages/{js => javascript}/src/gen/livekit_models_pb.d.ts (99%) rename packages/{js => javascript}/src/gen/livekit_models_pb.js (99%) rename packages/{js => javascript}/src/gen/livekit_rtc_pb.d.ts (100%) rename packages/{js => javascript}/src/gen/livekit_rtc_pb.js (100%) rename packages/{js => javascript}/src/gen/livekit_sip_pb.d.ts (98%) rename packages/{js => javascript}/src/gen/livekit_sip_pb.js (97%) rename packages/{js => javascript}/src/gen/livekit_webhook_pb.d.ts (100%) rename packages/{js => javascript}/src/gen/livekit_webhook_pb.js (100%) rename packages/{js => javascript}/src/gen/version.d.ts (100%) rename packages/{js => javascript}/src/gen/version.js (100%) rename packages/{js => javascript}/src/index.d.ts (100%) rename packages/{js => javascript}/src/index.js (100%) create mode 100644 pnpm-lock.yaml rename {infra => protobufs/infra}/link.proto (100%) rename livekit_agent.proto => protobufs/livekit_agent.proto (100%) rename livekit_analytics.proto => protobufs/livekit_analytics.proto (100%) rename livekit_egress.proto => protobufs/livekit_egress.proto (100%) rename livekit_ingress.proto => protobufs/livekit_ingress.proto (100%) rename livekit_internal.proto => protobufs/livekit_internal.proto (100%) rename livekit_models.proto => protobufs/livekit_models.proto (100%) rename livekit_room.proto => protobufs/livekit_room.proto (100%) rename livekit_rtc.proto => protobufs/livekit_rtc.proto (100%) rename livekit_sip.proto => protobufs/livekit_sip.proto (100%) rename livekit_webhook.proto => protobufs/livekit_webhook.proto (100%) rename {rpc => protobufs/rpc}/agent.proto (100%) rename {rpc => protobufs/rpc}/egress.proto (100%) rename {rpc => protobufs/rpc}/ingress.proto (100%) rename {rpc => protobufs/rpc}/io.proto (100%) rename {rpc => protobufs/rpc}/keepalive.proto (100%) rename {rpc => protobufs/rpc}/participant.proto (100%) rename {rpc => protobufs/rpc}/room.proto (100%) rename {rpc => protobufs/rpc}/signal.proto (100%) rename {rpc => protobufs/rpc}/sip.proto (100%) diff --git a/.changeset/README.md b/.changeset/README.md new file mode 100644 index 00000000..e5b6d8d6 --- /dev/null +++ b/.changeset/README.md @@ -0,0 +1,8 @@ +# Changesets + +Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works +with multi-package repos, or single-package repos to help you version and publish your code. You can +find the full documentation for it [in our repository](https://github.com/changesets/changesets) + +We have a quick list of common questions to get you started engaging with this project in +[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md) diff --git a/.changeset/config.json b/.changeset/config.json new file mode 100644 index 00000000..3de7c939 --- /dev/null +++ b/.changeset/config.json @@ -0,0 +1,15 @@ +{ + "$schema": "https://unpkg.com/@changesets/config@3.0.0/schema.json", + "changelog": [ + "@livekit/changesets-changelog-github", + { "repo": "livekit/protocol" } + ], + "commit": false, + "fixed": [], + "linked": [], + "access": "public", + "baseBranch": "main", + "updateInternalDependencies": "patch", + "ignore": [], + "privatePackages": { "version": true, "tag": true } +} diff --git a/.github/workflows/generate.yaml b/.github/workflows/generate.yaml index 2a9c06fd..86d90e05 100644 --- a/.github/workflows/generate.yaml +++ b/.github/workflows/generate.yaml @@ -17,42 +17,58 @@ name: Generate on: workflow_dispatch: push: - branches-ignore: [ main ] + branches-ignore: [main] jobs: generate: runs-on: ubuntu-latest steps: - - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4 - - - name: Install Protoc - uses: arduino/setup-protoc@v2 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - - - name: Set up Go - uses: actions/setup-go@v5 - with: - go-version: '>=1.20' - - - name: Go mod tidy - run: go mod tidy - - - name: Install generators - uses: magefile/mage-action@v3 - with: - version: latest - args: bootstrap - - - name: Generate Protobuf - uses: magefile/mage-action@v3 - with: - version: latest - args: proto - - - name: Add changes - uses: EndBug/add-and-commit@v9 - with: - add: '["livekit", "rpc", "infra"]' - default_author: github_actions - message: generated protobuf + - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4 + + - name: Install Protoc + uses: arduino/setup-protoc@v2 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version: ">=1.20" + + - name: Go mod tidy + run: go mod tidy + + - name: Install generators + uses: magefile/mage-action@v3 + with: + version: latest + args: bootstrap + + - name: Generate Protobuf + uses: magefile/mage-action@v3 + with: + version: latest + args: proto + + - uses: pnpm/action-setup@v2 + with: + version: 8 + - name: Use Node.js 20 + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: "pnpm" + cache-dependency-path: "packages/js/pnpm-lock.yaml" + - name: Install Protoc + uses: arduino/setup-protoc@v3 + - name: Install dependencies + run: pnpm install + - name: Generate JS files + run: | + pnpm generate:proto + - name: Add changes + uses: EndBug/add-and-commit@v9 + with: + add: '["livekit", "rpc", "infra", "packages/js"]' + default_author: github_actions + message: generated protobuf diff --git a/.gitignore b/.gitignore index d9592b47..bfd47c63 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,5 @@ # Dependency directories (remove the comment below to include it) # vendor/ .idea/ + +node_modules/ diff --git a/package.json b/package.json new file mode 100644 index 00000000..63550a7b --- /dev/null +++ b/package.json @@ -0,0 +1,8 @@ +{ + "private": true, + "version": "0.0.1", + "devDependencies": { + "@changesets/cli": "^2.27.1", + "@livekit/changesets-changelog-github": "^0.0.4" + } +} diff --git a/auth/accesstoken.go b/packages/golang/auth/accesstoken.go similarity index 100% rename from auth/accesstoken.go rename to packages/golang/auth/accesstoken.go diff --git a/auth/accesstoken_test.go b/packages/golang/auth/accesstoken_test.go similarity index 100% rename from auth/accesstoken_test.go rename to packages/golang/auth/accesstoken_test.go diff --git a/auth/authfakes/fake_key_provider.go b/packages/golang/auth/authfakes/fake_key_provider.go similarity index 100% rename from auth/authfakes/fake_key_provider.go rename to packages/golang/auth/authfakes/fake_key_provider.go diff --git a/auth/authfakes/fake_token_verifier.go b/packages/golang/auth/authfakes/fake_token_verifier.go similarity index 100% rename from auth/authfakes/fake_token_verifier.go rename to packages/golang/auth/authfakes/fake_token_verifier.go diff --git a/auth/grants.go b/packages/golang/auth/grants.go similarity index 100% rename from auth/grants.go rename to packages/golang/auth/grants.go diff --git a/auth/grants_test.go b/packages/golang/auth/grants_test.go similarity index 100% rename from auth/grants_test.go rename to packages/golang/auth/grants_test.go diff --git a/auth/interfaces.go b/packages/golang/auth/interfaces.go similarity index 100% rename from auth/interfaces.go rename to packages/golang/auth/interfaces.go diff --git a/auth/provider.go b/packages/golang/auth/provider.go similarity index 100% rename from auth/provider.go rename to packages/golang/auth/provider.go diff --git a/auth/provider_test.go b/packages/golang/auth/provider_test.go similarity index 100% rename from auth/provider_test.go rename to packages/golang/auth/provider_test.go diff --git a/auth/verifier.go b/packages/golang/auth/verifier.go similarity index 100% rename from auth/verifier.go rename to packages/golang/auth/verifier.go diff --git a/auth/verifier_test.go b/packages/golang/auth/verifier_test.go similarity index 100% rename from auth/verifier_test.go rename to packages/golang/auth/verifier_test.go diff --git a/bootstrap.sh b/packages/golang/bootstrap.sh similarity index 100% rename from bootstrap.sh rename to packages/golang/bootstrap.sh diff --git a/egress/errors.go b/packages/golang/egress/errors.go similarity index 100% rename from egress/errors.go rename to packages/golang/egress/errors.go diff --git a/egress/token.go b/packages/golang/egress/token.go similarity index 100% rename from egress/token.go rename to packages/golang/egress/token.go diff --git a/egress/types.go b/packages/golang/egress/types.go similarity index 100% rename from egress/types.go rename to packages/golang/egress/types.go diff --git a/egress/types_test.go b/packages/golang/egress/types_test.go similarity index 100% rename from egress/types_test.go rename to packages/golang/egress/types_test.go diff --git a/go.mod b/packages/golang/go.mod similarity index 100% rename from go.mod rename to packages/golang/go.mod diff --git a/go.sum b/packages/golang/go.sum similarity index 100% rename from go.sum rename to packages/golang/go.sum diff --git a/infra/link.pb.go b/packages/golang/infra/link.pb.go similarity index 99% rename from infra/link.pb.go rename to packages/golang/infra/link.pb.go index a9678d4e..e7e59255 100644 --- a/infra/link.pb.go +++ b/packages/golang/infra/link.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.32.0 -// protoc v4.23.4 +// protoc-gen-go v1.31.0 +// protoc v3.21.12 // source: infra/link.proto package infra diff --git a/infra/link_grpc.pb.go b/packages/golang/infra/link_grpc.pb.go similarity index 99% rename from infra/link_grpc.pb.go rename to packages/golang/infra/link_grpc.pb.go index a7d8284e..023edcd0 100644 --- a/infra/link_grpc.pb.go +++ b/packages/golang/infra/link_grpc.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.3.0 -// - protoc v4.23.4 +// - protoc v3.21.12 // source: infra/link.proto package infra diff --git a/ingress/errors.go b/packages/golang/ingress/errors.go similarity index 100% rename from ingress/errors.go rename to packages/golang/ingress/errors.go diff --git a/ingress/token.go b/packages/golang/ingress/token.go similarity index 100% rename from ingress/token.go rename to packages/golang/ingress/token.go diff --git a/ingress/validation.go b/packages/golang/ingress/validation.go similarity index 100% rename from ingress/validation.go rename to packages/golang/ingress/validation.go diff --git a/ingress/validation_test.go b/packages/golang/ingress/validation_test.go similarity index 100% rename from ingress/validation_test.go rename to packages/golang/ingress/validation_test.go diff --git a/livekit/README.md b/packages/golang/livekit/README.md similarity index 100% rename from livekit/README.md rename to packages/golang/livekit/README.md diff --git a/livekit/livekit_agent.pb.go b/packages/golang/livekit/livekit_agent.pb.go similarity index 99% rename from livekit/livekit_agent.pb.go rename to packages/golang/livekit/livekit_agent.pb.go index d40125a5..847e6462 100644 --- a/livekit/livekit_agent.pb.go +++ b/packages/golang/livekit/livekit_agent.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.32.0 -// protoc v4.23.4 +// protoc-gen-go v1.31.0 +// protoc v3.21.12 // source: livekit_agent.proto package livekit diff --git a/livekit/livekit_analytics.pb.go b/packages/golang/livekit/livekit_analytics.pb.go similarity index 99% rename from livekit/livekit_analytics.pb.go rename to packages/golang/livekit/livekit_analytics.pb.go index a1941171..741febfc 100644 --- a/livekit/livekit_analytics.pb.go +++ b/packages/golang/livekit/livekit_analytics.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.32.0 -// protoc v4.23.4 +// protoc-gen-go v1.31.0 +// protoc v3.21.12 // source: livekit_analytics.proto package livekit diff --git a/livekit/livekit_analytics_grpc.pb.go b/packages/golang/livekit/livekit_analytics_grpc.pb.go similarity index 99% rename from livekit/livekit_analytics_grpc.pb.go rename to packages/golang/livekit/livekit_analytics_grpc.pb.go index d6e880c4..a8593e07 100644 --- a/livekit/livekit_analytics_grpc.pb.go +++ b/packages/golang/livekit/livekit_analytics_grpc.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.3.0 -// - protoc v4.23.4 +// - protoc v3.21.12 // source: livekit_analytics.proto package livekit diff --git a/livekit/livekit_egress.pb.go b/packages/golang/livekit/livekit_egress.pb.go similarity index 99% rename from livekit/livekit_egress.pb.go rename to packages/golang/livekit/livekit_egress.pb.go index 7fb32b6f..602a6e3b 100644 --- a/livekit/livekit_egress.pb.go +++ b/packages/golang/livekit/livekit_egress.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.32.0 -// protoc v4.23.4 +// protoc-gen-go v1.31.0 +// protoc v3.21.12 // source: livekit_egress.proto package livekit diff --git a/livekit/livekit_egress.twirp.go b/packages/golang/livekit/livekit_egress.twirp.go similarity index 100% rename from livekit/livekit_egress.twirp.go rename to packages/golang/livekit/livekit_egress.twirp.go diff --git a/livekit/livekit_ingress.pb.go b/packages/golang/livekit/livekit_ingress.pb.go similarity index 99% rename from livekit/livekit_ingress.pb.go rename to packages/golang/livekit/livekit_ingress.pb.go index f008b2b4..b970cbf7 100644 --- a/livekit/livekit_ingress.pb.go +++ b/packages/golang/livekit/livekit_ingress.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.32.0 -// protoc v4.23.4 +// protoc-gen-go v1.31.0 +// protoc v3.21.12 // source: livekit_ingress.proto package livekit diff --git a/livekit/livekit_ingress.twirp.go b/packages/golang/livekit/livekit_ingress.twirp.go similarity index 100% rename from livekit/livekit_ingress.twirp.go rename to packages/golang/livekit/livekit_ingress.twirp.go diff --git a/livekit/livekit_internal.pb.go b/packages/golang/livekit/livekit_internal.pb.go similarity index 99% rename from livekit/livekit_internal.pb.go rename to packages/golang/livekit/livekit_internal.pb.go index 1388e1a5..eba0a8a5 100644 --- a/livekit/livekit_internal.pb.go +++ b/packages/golang/livekit/livekit_internal.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.32.0 -// protoc v4.23.4 +// protoc-gen-go v1.31.0 +// protoc v3.21.12 // source: livekit_internal.proto package livekit diff --git a/livekit/livekit_models.pb.go b/packages/golang/livekit/livekit_models.pb.go similarity index 99% rename from livekit/livekit_models.pb.go rename to packages/golang/livekit/livekit_models.pb.go index d0cc837f..df4d55f8 100644 --- a/livekit/livekit_models.pb.go +++ b/packages/golang/livekit/livekit_models.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.32.0 -// protoc v4.23.4 +// protoc-gen-go v1.31.0 +// protoc v3.21.12 // source: livekit_models.proto package livekit diff --git a/livekit/livekit_room.pb.go b/packages/golang/livekit/livekit_room.pb.go similarity index 99% rename from livekit/livekit_room.pb.go rename to packages/golang/livekit/livekit_room.pb.go index 5f4567da..b8c9fa3c 100644 --- a/livekit/livekit_room.pb.go +++ b/packages/golang/livekit/livekit_room.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.32.0 -// protoc v4.23.4 +// protoc-gen-go v1.31.0 +// protoc v3.21.12 // source: livekit_room.proto package livekit diff --git a/livekit/livekit_room.twirp.go b/packages/golang/livekit/livekit_room.twirp.go similarity index 100% rename from livekit/livekit_room.twirp.go rename to packages/golang/livekit/livekit_room.twirp.go diff --git a/livekit/livekit_rtc.pb.go b/packages/golang/livekit/livekit_rtc.pb.go similarity index 99% rename from livekit/livekit_rtc.pb.go rename to packages/golang/livekit/livekit_rtc.pb.go index 7f0dd091..22b4b88b 100644 --- a/livekit/livekit_rtc.pb.go +++ b/packages/golang/livekit/livekit_rtc.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.32.0 -// protoc v4.23.4 +// protoc-gen-go v1.31.0 +// protoc v3.21.12 // source: livekit_rtc.proto package livekit diff --git a/livekit/livekit_sip.pb.go b/packages/golang/livekit/livekit_sip.pb.go similarity index 99% rename from livekit/livekit_sip.pb.go rename to packages/golang/livekit/livekit_sip.pb.go index 3ee565e7..86ef94a0 100644 --- a/livekit/livekit_sip.pb.go +++ b/packages/golang/livekit/livekit_sip.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.32.0 -// protoc v4.23.4 +// protoc-gen-go v1.31.0 +// protoc v3.21.12 // source: livekit_sip.proto package livekit diff --git a/livekit/livekit_sip.twirp.go b/packages/golang/livekit/livekit_sip.twirp.go similarity index 100% rename from livekit/livekit_sip.twirp.go rename to packages/golang/livekit/livekit_sip.twirp.go diff --git a/livekit/livekit_webhook.pb.go b/packages/golang/livekit/livekit_webhook.pb.go similarity index 99% rename from livekit/livekit_webhook.pb.go rename to packages/golang/livekit/livekit_webhook.pb.go index 33706bbc..07e6539b 100644 --- a/livekit/livekit_webhook.pb.go +++ b/packages/golang/livekit/livekit_webhook.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.32.0 -// protoc v4.23.4 +// protoc-gen-go v1.31.0 +// protoc v3.21.12 // source: livekit_webhook.proto package livekit diff --git a/livekit/types.go b/packages/golang/livekit/types.go similarity index 100% rename from livekit/types.go rename to packages/golang/livekit/types.go diff --git a/logger/config.go b/packages/golang/logger/config.go similarity index 100% rename from logger/config.go rename to packages/golang/logger/config.go diff --git a/logger/logger.go b/packages/golang/logger/logger.go similarity index 100% rename from logger/logger.go rename to packages/golang/logger/logger.go diff --git a/logger/logger_test.go b/packages/golang/logger/logger_test.go similarity index 100% rename from logger/logger_test.go rename to packages/golang/logger/logger_test.go diff --git a/logger/pionlogger/logadapter.go b/packages/golang/logger/pionlogger/logadapter.go similarity index 100% rename from logger/pionlogger/logadapter.go rename to packages/golang/logger/pionlogger/logadapter.go diff --git a/logger/pionlogger/logger.go b/packages/golang/logger/pionlogger/logger.go similarity index 100% rename from logger/pionlogger/logger.go rename to packages/golang/logger/pionlogger/logger.go diff --git a/logger/proto.go b/packages/golang/logger/proto.go similarity index 100% rename from logger/proto.go rename to packages/golang/logger/proto.go diff --git a/logger/zaputil/deferrer.go b/packages/golang/logger/zaputil/deferrer.go similarity index 100% rename from logger/zaputil/deferrer.go rename to packages/golang/logger/zaputil/deferrer.go diff --git a/logger/zaputil/deferrer_test.go b/packages/golang/logger/zaputil/deferrer_test.go similarity index 100% rename from logger/zaputil/deferrer_test.go rename to packages/golang/logger/zaputil/deferrer_test.go diff --git a/logger/zaputil/encoder.go b/packages/golang/logger/zaputil/encoder.go similarity index 100% rename from logger/zaputil/encoder.go rename to packages/golang/logger/zaputil/encoder.go diff --git a/logger/zaputil/fieldsampler.go b/packages/golang/logger/zaputil/fieldsampler.go similarity index 100% rename from logger/zaputil/fieldsampler.go rename to packages/golang/logger/zaputil/fieldsampler.go diff --git a/logger/zaputil/fieldsampler_test.go b/packages/golang/logger/zaputil/fieldsampler_test.go similarity index 100% rename from logger/zaputil/fieldsampler_test.go rename to packages/golang/logger/zaputil/fieldsampler_test.go diff --git a/logger/zaputil/sampler.go b/packages/golang/logger/zaputil/sampler.go similarity index 100% rename from logger/zaputil/sampler.go rename to packages/golang/logger/zaputil/sampler.go diff --git a/logger/zaputil/zaputil.go b/packages/golang/logger/zaputil/zaputil.go similarity index 100% rename from logger/zaputil/zaputil.go rename to packages/golang/logger/zaputil/zaputil.go diff --git a/logger/zaputil/zaputil_test.go b/packages/golang/logger/zaputil/zaputil_test.go similarity index 100% rename from logger/zaputil/zaputil_test.go rename to packages/golang/logger/zaputil/zaputil_test.go diff --git a/magefile.go b/packages/golang/magefile.go similarity index 98% rename from magefile.go rename to packages/golang/magefile.go index 41024a29..4b6ff08f 100644 --- a/magefile.go +++ b/packages/golang/magefile.go @@ -101,7 +101,7 @@ func Proto() error { "--twirp_opt=paths=source_relative", "--plugin=go=" + protocGoPath, "--plugin=twirp=" + twirpPath, - "-I=.", + "-I=../../protobufs", }, twirpProtoFiles...) cmd := exec.Command(protoc, args...) connectStd(cmd) @@ -116,7 +116,7 @@ func Proto() error { "--go-grpc_opt=paths=source_relative", "--plugin=go=" + protocGoPath, "--plugin=go-grpc=" + protocGrpcGoPath, - "-I=.", + "-I=../../protobufs", }, grpcProtoFiles...) cmd = exec.Command(protoc, args...) connectStd(cmd) @@ -131,7 +131,7 @@ func Proto() error { "--go-grpc_opt=paths=source_relative", "--plugin=go=" + protocGoPath, "--plugin=go-grpc=" + protocGrpcGoPath, - "-I=.", + "-I=../../protobufs", }, infraProtoFiles...) cmd = exec.Command(protoc, args...) connectStd(cmd) @@ -161,7 +161,7 @@ func Proto() error { "--plugin=go=" + protocGoPath, "--plugin=psrpc=" + psrpcPath, "-I" + psrpcDir + "/protoc-gen-psrpc/options", - "-I=.", + "-I=../../protobufs", }, psrpcProtoFiles...) cmd = exec.Command(protoc, args...) mageutil.ConnectStd(cmd) diff --git a/pprof/pprof.go b/packages/golang/pprof/pprof.go similarity index 100% rename from pprof/pprof.go rename to packages/golang/pprof/pprof.go diff --git a/psrpc/compilercheck.go b/packages/golang/psrpc/compilercheck.go similarity index 100% rename from psrpc/compilercheck.go rename to packages/golang/psrpc/compilercheck.go diff --git a/psrpc/errors.go b/packages/golang/psrpc/errors.go similarity index 100% rename from psrpc/errors.go rename to packages/golang/psrpc/errors.go diff --git a/redis/redis.go b/packages/golang/redis/redis.go similarity index 100% rename from redis/redis.go rename to packages/golang/redis/redis.go diff --git a/rpc/agent.pb.go b/packages/golang/rpc/agent.pb.go similarity index 99% rename from rpc/agent.pb.go rename to packages/golang/rpc/agent.pb.go index bdb18699..60ee1ab0 100644 --- a/rpc/agent.pb.go +++ b/packages/golang/rpc/agent.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.32.0 -// protoc v4.23.4 +// protoc-gen-go v1.31.0 +// protoc v3.21.12 // source: rpc/agent.proto package rpc diff --git a/rpc/agent.psrpc.go b/packages/golang/rpc/agent.psrpc.go similarity index 100% rename from rpc/agent.psrpc.go rename to packages/golang/rpc/agent.psrpc.go diff --git a/rpc/egress.pb.go b/packages/golang/rpc/egress.pb.go similarity index 99% rename from rpc/egress.pb.go rename to packages/golang/rpc/egress.pb.go index 729fbd68..cab2008b 100644 --- a/rpc/egress.pb.go +++ b/packages/golang/rpc/egress.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.32.0 -// protoc v4.23.4 +// protoc-gen-go v1.31.0 +// protoc v3.21.12 // source: rpc/egress.proto package rpc diff --git a/rpc/egress.psrpc.go b/packages/golang/rpc/egress.psrpc.go similarity index 100% rename from rpc/egress.psrpc.go rename to packages/golang/rpc/egress.psrpc.go diff --git a/rpc/egress_client.go b/packages/golang/rpc/egress_client.go similarity index 100% rename from rpc/egress_client.go rename to packages/golang/rpc/egress_client.go diff --git a/rpc/ingress.pb.go b/packages/golang/rpc/ingress.pb.go similarity index 99% rename from rpc/ingress.pb.go rename to packages/golang/rpc/ingress.pb.go index 0f26e3ee..855f3a55 100644 --- a/rpc/ingress.pb.go +++ b/packages/golang/rpc/ingress.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.32.0 -// protoc v4.23.4 +// protoc-gen-go v1.31.0 +// protoc v3.21.12 // source: rpc/ingress.proto package rpc diff --git a/rpc/ingress.psrpc.go b/packages/golang/rpc/ingress.psrpc.go similarity index 100% rename from rpc/ingress.psrpc.go rename to packages/golang/rpc/ingress.psrpc.go diff --git a/rpc/ingress_client.go b/packages/golang/rpc/ingress_client.go similarity index 100% rename from rpc/ingress_client.go rename to packages/golang/rpc/ingress_client.go diff --git a/rpc/io.pb.go b/packages/golang/rpc/io.pb.go similarity index 99% rename from rpc/io.pb.go rename to packages/golang/rpc/io.pb.go index 61d958bd..f6132a11 100644 --- a/rpc/io.pb.go +++ b/packages/golang/rpc/io.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.32.0 -// protoc v4.23.4 +// protoc-gen-go v1.31.0 +// protoc v3.21.12 // source: rpc/io.proto package rpc diff --git a/rpc/io.psrpc.go b/packages/golang/rpc/io.psrpc.go similarity index 100% rename from rpc/io.psrpc.go rename to packages/golang/rpc/io.psrpc.go diff --git a/rpc/keepalive.pb.go b/packages/golang/rpc/keepalive.pb.go similarity index 99% rename from rpc/keepalive.pb.go rename to packages/golang/rpc/keepalive.pb.go index 027ab623..f74e5b6e 100644 --- a/rpc/keepalive.pb.go +++ b/packages/golang/rpc/keepalive.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.32.0 -// protoc v4.23.4 +// protoc-gen-go v1.31.0 +// protoc v3.21.12 // source: rpc/keepalive.proto package rpc diff --git a/rpc/keepalive.psrpc.go b/packages/golang/rpc/keepalive.psrpc.go similarity index 100% rename from rpc/keepalive.psrpc.go rename to packages/golang/rpc/keepalive.psrpc.go diff --git a/rpc/logging.go b/packages/golang/rpc/logging.go similarity index 100% rename from rpc/logging.go rename to packages/golang/rpc/logging.go diff --git a/rpc/metrics.go b/packages/golang/rpc/metrics.go similarity index 100% rename from rpc/metrics.go rename to packages/golang/rpc/metrics.go diff --git a/rpc/participant.pb.go b/packages/golang/rpc/participant.pb.go similarity index 99% rename from rpc/participant.pb.go rename to packages/golang/rpc/participant.pb.go index 3b2f7dc0..39ada361 100644 --- a/rpc/participant.pb.go +++ b/packages/golang/rpc/participant.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.32.0 -// protoc v4.23.4 +// protoc-gen-go v1.31.0 +// protoc v3.21.12 // source: rpc/participant.proto package rpc diff --git a/rpc/participant.psrpc.go b/packages/golang/rpc/participant.psrpc.go similarity index 100% rename from rpc/participant.psrpc.go rename to packages/golang/rpc/participant.psrpc.go diff --git a/rpc/race.go b/packages/golang/rpc/race.go similarity index 100% rename from rpc/race.go rename to packages/golang/rpc/race.go diff --git a/rpc/room.pb.go b/packages/golang/rpc/room.pb.go similarity index 99% rename from rpc/room.pb.go rename to packages/golang/rpc/room.pb.go index 8add4aa3..ccecd22e 100644 --- a/rpc/room.pb.go +++ b/packages/golang/rpc/room.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.32.0 -// protoc v4.23.4 +// protoc-gen-go v1.31.0 +// protoc v3.21.12 // source: rpc/room.proto package rpc diff --git a/rpc/room.psrpc.go b/packages/golang/rpc/room.psrpc.go similarity index 100% rename from rpc/room.psrpc.go rename to packages/golang/rpc/room.psrpc.go diff --git a/rpc/rpcfakes/fake_keepalive_pub_sub.go b/packages/golang/rpc/rpcfakes/fake_keepalive_pub_sub.go similarity index 100% rename from rpc/rpcfakes/fake_keepalive_pub_sub.go rename to packages/golang/rpc/rpcfakes/fake_keepalive_pub_sub.go diff --git a/rpc/rpcfakes/fake_typed_participant_client.go b/packages/golang/rpc/rpcfakes/fake_typed_participant_client.go similarity index 100% rename from rpc/rpcfakes/fake_typed_participant_client.go rename to packages/golang/rpc/rpcfakes/fake_typed_participant_client.go diff --git a/rpc/rpcfakes/fake_typed_room_client.go b/packages/golang/rpc/rpcfakes/fake_typed_room_client.go similarity index 100% rename from rpc/rpcfakes/fake_typed_room_client.go rename to packages/golang/rpc/rpcfakes/fake_typed_room_client.go diff --git a/rpc/signal.pb.go b/packages/golang/rpc/signal.pb.go similarity index 99% rename from rpc/signal.pb.go rename to packages/golang/rpc/signal.pb.go index 7c48ddab..c2057637 100644 --- a/rpc/signal.pb.go +++ b/packages/golang/rpc/signal.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.32.0 -// protoc v4.23.4 +// protoc-gen-go v1.31.0 +// protoc v3.21.12 // source: rpc/signal.proto package rpc diff --git a/rpc/signal.psrpc.go b/packages/golang/rpc/signal.psrpc.go similarity index 100% rename from rpc/signal.psrpc.go rename to packages/golang/rpc/signal.psrpc.go diff --git a/rpc/sip.pb.go b/packages/golang/rpc/sip.pb.go similarity index 99% rename from rpc/sip.pb.go rename to packages/golang/rpc/sip.pb.go index 35a55f9e..1a1ecd18 100644 --- a/rpc/sip.pb.go +++ b/packages/golang/rpc/sip.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.32.0 -// protoc v4.23.4 +// protoc-gen-go v1.31.0 +// protoc v3.21.12 // source: rpc/sip.proto package rpc diff --git a/rpc/sip.psrpc.go b/packages/golang/rpc/sip.psrpc.go similarity index 100% rename from rpc/sip.psrpc.go rename to packages/golang/rpc/sip.psrpc.go diff --git a/rpc/sip_client.go b/packages/golang/rpc/sip_client.go similarity index 100% rename from rpc/sip_client.go rename to packages/golang/rpc/sip_client.go diff --git a/rpc/typed_api.go b/packages/golang/rpc/typed_api.go similarity index 100% rename from rpc/typed_api.go rename to packages/golang/rpc/typed_api.go diff --git a/sdp/sdp.go b/packages/golang/sdp/sdp.go similarity index 100% rename from sdp/sdp.go rename to packages/golang/sdp/sdp.go diff --git a/sip/sip.go b/packages/golang/sip/sip.go similarity index 100% rename from sip/sip.go rename to packages/golang/sip/sip.go diff --git a/sip/sip_test.go b/packages/golang/sip/sip_test.go similarity index 100% rename from sip/sip_test.go rename to packages/golang/sip/sip_test.go diff --git a/sip/token.go b/packages/golang/sip/token.go similarity index 100% rename from sip/token.go rename to packages/golang/sip/token.go diff --git a/tools/tools.go b/packages/golang/tools/tools.go similarity index 100% rename from tools/tools.go rename to packages/golang/tools/tools.go diff --git a/tracer/tracer.go b/packages/golang/tracer/tracer.go similarity index 100% rename from tracer/tracer.go rename to packages/golang/tracer/tracer.go diff --git a/utils/bitmap.go b/packages/golang/utils/bitmap.go similarity index 100% rename from utils/bitmap.go rename to packages/golang/utils/bitmap.go diff --git a/utils/bitmap_test.go b/packages/golang/utils/bitmap_test.go similarity index 100% rename from utils/bitmap_test.go rename to packages/golang/utils/bitmap_test.go diff --git a/utils/codec.go b/packages/golang/utils/codec.go similarity index 100% rename from utils/codec.go rename to packages/golang/utils/codec.go diff --git a/utils/connectionquality.go b/packages/golang/utils/connectionquality.go similarity index 100% rename from utils/connectionquality.go rename to packages/golang/utils/connectionquality.go diff --git a/utils/cpu.go b/packages/golang/utils/cpu.go similarity index 100% rename from utils/cpu.go rename to packages/golang/utils/cpu.go diff --git a/utils/cpu_all.go b/packages/golang/utils/cpu_all.go similarity index 100% rename from utils/cpu_all.go rename to packages/golang/utils/cpu_all.go diff --git a/utils/cpu_darwin.go b/packages/golang/utils/cpu_darwin.go similarity index 100% rename from utils/cpu_darwin.go rename to packages/golang/utils/cpu_darwin.go diff --git a/utils/cpu_linux.go b/packages/golang/utils/cpu_linux.go similarity index 100% rename from utils/cpu_linux.go rename to packages/golang/utils/cpu_linux.go diff --git a/utils/cpu_null.go b/packages/golang/utils/cpu_null.go similarity index 100% rename from utils/cpu_null.go rename to packages/golang/utils/cpu_null.go diff --git a/utils/dedupedslice.go b/packages/golang/utils/dedupedslice.go similarity index 100% rename from utils/dedupedslice.go rename to packages/golang/utils/dedupedslice.go diff --git a/utils/dedupedslice_test.go b/packages/golang/utils/dedupedslice_test.go similarity index 100% rename from utils/dedupedslice_test.go rename to packages/golang/utils/dedupedslice_test.go diff --git a/utils/err_array.go b/packages/golang/utils/err_array.go similarity index 100% rename from utils/err_array.go rename to packages/golang/utils/err_array.go diff --git a/utils/err_array_test.go b/packages/golang/utils/err_array_test.go similarity index 100% rename from utils/err_array_test.go rename to packages/golang/utils/err_array_test.go diff --git a/utils/event_emitter.go b/packages/golang/utils/event_emitter.go similarity index 100% rename from utils/event_emitter.go rename to packages/golang/utils/event_emitter.go diff --git a/utils/event_emitter_test.go b/packages/golang/utils/event_emitter_test.go similarity index 100% rename from utils/event_emitter_test.go rename to packages/golang/utils/event_emitter_test.go diff --git a/utils/graph.go b/packages/golang/utils/graph.go similarity index 100% rename from utils/graph.go rename to packages/golang/utils/graph.go diff --git a/utils/graph_test.go b/packages/golang/utils/graph_test.go similarity index 100% rename from utils/graph_test.go rename to packages/golang/utils/graph_test.go diff --git a/utils/id.go b/packages/golang/utils/id.go similarity index 100% rename from utils/id.go rename to packages/golang/utils/id.go diff --git a/utils/id_test.go b/packages/golang/utils/id_test.go similarity index 100% rename from utils/id_test.go rename to packages/golang/utils/id_test.go diff --git a/utils/lock_tracker.go b/packages/golang/utils/lock_tracker.go similarity index 100% rename from utils/lock_tracker.go rename to packages/golang/utils/lock_tracker.go diff --git a/utils/lock_tracker_test.go b/packages/golang/utils/lock_tracker_test.go similarity index 100% rename from utils/lock_tracker_test.go rename to packages/golang/utils/lock_tracker_test.go diff --git a/utils/math.go b/packages/golang/utils/math.go similarity index 100% rename from utils/math.go rename to packages/golang/utils/math.go diff --git a/utils/messaging.go b/packages/golang/utils/messaging.go similarity index 100% rename from utils/messaging.go rename to packages/golang/utils/messaging.go diff --git a/utils/multitonservice.go b/packages/golang/utils/multitonservice.go similarity index 100% rename from utils/multitonservice.go rename to packages/golang/utils/multitonservice.go diff --git a/utils/multitonservice_test.go b/packages/golang/utils/multitonservice_test.go similarity index 100% rename from utils/multitonservice_test.go rename to packages/golang/utils/multitonservice_test.go diff --git a/utils/must.go b/packages/golang/utils/must.go similarity index 100% rename from utils/must.go rename to packages/golang/utils/must.go diff --git a/utils/must/must.go b/packages/golang/utils/must/must.go similarity index 100% rename from utils/must/must.go rename to packages/golang/utils/must/must.go diff --git a/utils/parallel.go b/packages/golang/utils/parallel.go similarity index 100% rename from utils/parallel.go rename to packages/golang/utils/parallel.go diff --git a/utils/parallel_test.go b/packages/golang/utils/parallel_test.go similarity index 100% rename from utils/parallel_test.go rename to packages/golang/utils/parallel_test.go diff --git a/utils/protoproxy.go b/packages/golang/utils/protoproxy.go similarity index 100% rename from utils/protoproxy.go rename to packages/golang/utils/protoproxy.go diff --git a/utils/protoproxy_test.go b/packages/golang/utils/protoproxy_test.go similarity index 100% rename from utils/protoproxy_test.go rename to packages/golang/utils/protoproxy_test.go diff --git a/utils/redact.go b/packages/golang/utils/redact.go similarity index 100% rename from utils/redact.go rename to packages/golang/utils/redact.go diff --git a/utils/rtpstats.go b/packages/golang/utils/rtpstats.go similarity index 100% rename from utils/rtpstats.go rename to packages/golang/utils/rtpstats.go diff --git a/utils/secret.go b/packages/golang/utils/secret.go similarity index 100% rename from utils/secret.go rename to packages/golang/utils/secret.go diff --git a/utils/timed_aggregator.go b/packages/golang/utils/timed_aggregator.go similarity index 100% rename from utils/timed_aggregator.go rename to packages/golang/utils/timed_aggregator.go diff --git a/utils/timed_aggregator_test.go b/packages/golang/utils/timed_aggregator_test.go similarity index 100% rename from utils/timed_aggregator_test.go rename to packages/golang/utils/timed_aggregator_test.go diff --git a/utils/timed_version.go b/packages/golang/utils/timed_version.go similarity index 100% rename from utils/timed_version.go rename to packages/golang/utils/timed_version.go diff --git a/utils/timed_version_test.go b/packages/golang/utils/timed_version_test.go similarity index 100% rename from utils/timed_version_test.go rename to packages/golang/utils/timed_version_test.go diff --git a/utils/timeoutqueue.go b/packages/golang/utils/timeoutqueue.go similarity index 100% rename from utils/timeoutqueue.go rename to packages/golang/utils/timeoutqueue.go diff --git a/utils/timeoutqueue_test.go b/packages/golang/utils/timeoutqueue_test.go similarity index 100% rename from utils/timeoutqueue_test.go rename to packages/golang/utils/timeoutqueue_test.go diff --git a/utils/timeseries/timeseries.go b/packages/golang/utils/timeseries/timeseries.go similarity index 100% rename from utils/timeseries/timeseries.go rename to packages/golang/utils/timeseries/timeseries.go diff --git a/utils/timeseries/timeseries_test.go b/packages/golang/utils/timeseries/timeseries_test.go similarity index 100% rename from utils/timeseries/timeseries_test.go rename to packages/golang/utils/timeseries/timeseries_test.go diff --git a/utils/welford.go b/packages/golang/utils/welford.go similarity index 100% rename from utils/welford.go rename to packages/golang/utils/welford.go diff --git a/utils/workergroup.go b/packages/golang/utils/workergroup.go similarity index 100% rename from utils/workergroup.go rename to packages/golang/utils/workergroup.go diff --git a/webhook/consts.go b/packages/golang/webhook/consts.go similarity index 100% rename from webhook/consts.go rename to packages/golang/webhook/consts.go diff --git a/webhook/notifier.go b/packages/golang/webhook/notifier.go similarity index 100% rename from webhook/notifier.go rename to packages/golang/webhook/notifier.go diff --git a/webhook/url_notifier.go b/packages/golang/webhook/url_notifier.go similarity index 100% rename from webhook/url_notifier.go rename to packages/golang/webhook/url_notifier.go diff --git a/webhook/verifier.go b/packages/golang/webhook/verifier.go similarity index 100% rename from webhook/verifier.go rename to packages/golang/webhook/verifier.go diff --git a/webhook/webhook_test.go b/packages/golang/webhook/webhook_test.go similarity index 100% rename from webhook/webhook_test.go rename to packages/golang/webhook/webhook_test.go diff --git a/xtls/tls.go b/packages/golang/xtls/tls.go similarity index 100% rename from xtls/tls.go rename to packages/golang/xtls/tls.go diff --git a/packages/js/.gitignore b/packages/javascript/.gitignore similarity index 100% rename from packages/js/.gitignore rename to packages/javascript/.gitignore diff --git a/packages/js/package.json b/packages/javascript/package.json similarity index 68% rename from packages/js/package.json rename to packages/javascript/package.json index ee285c76..f6f9724b 100644 --- a/packages/js/package.json +++ b/packages/javascript/package.json @@ -10,7 +10,7 @@ ], "scripts": { "generate:version": "genversion --esm --semi src/gen/version.js", - "generate:proto": "protoc --es_out src/gen --es_opt target=js+dts -I=../../ ../../livekit_rtc.proto ../../livekit_models.proto ../../livekit_agent.proto ../../livekit_webhook.proto ../../livekit_egress.proto ../../livekit_ingress.proto ../../livekit_sip.proto", + "generate:proto": "protoc --es_out src/gen --es_opt target=js+dts -I=../../protobufs ../../protobufs/livekit_rtc.proto ../../protobufs/livekit_models.proto ../../protobufs/livekit_agent.proto ../../protobufs/livekit_webhook.proto ../../protobufs/livekit_egress.proto ../../protobufs/livekit_ingress.proto ../../protobufs/livekit_sip.proto", "ci:publish": "pnpm publish" }, "keywords": [], diff --git a/packages/js/pnpm-lock.yaml b/packages/javascript/pnpm-lock.yaml similarity index 100% rename from packages/js/pnpm-lock.yaml rename to packages/javascript/pnpm-lock.yaml diff --git a/packages/js/src/gen/livekit_agent_pb.d.ts b/packages/javascript/src/gen/livekit_agent_pb.d.ts similarity index 100% rename from packages/js/src/gen/livekit_agent_pb.d.ts rename to packages/javascript/src/gen/livekit_agent_pb.d.ts diff --git a/packages/js/src/gen/livekit_agent_pb.js b/packages/javascript/src/gen/livekit_agent_pb.js similarity index 100% rename from packages/js/src/gen/livekit_agent_pb.js rename to packages/javascript/src/gen/livekit_agent_pb.js diff --git a/packages/js/src/gen/livekit_egress_pb.d.ts b/packages/javascript/src/gen/livekit_egress_pb.d.ts similarity index 100% rename from packages/js/src/gen/livekit_egress_pb.d.ts rename to packages/javascript/src/gen/livekit_egress_pb.d.ts diff --git a/packages/js/src/gen/livekit_egress_pb.js b/packages/javascript/src/gen/livekit_egress_pb.js similarity index 100% rename from packages/js/src/gen/livekit_egress_pb.js rename to packages/javascript/src/gen/livekit_egress_pb.js diff --git a/packages/js/src/gen/livekit_ingress_pb.d.ts b/packages/javascript/src/gen/livekit_ingress_pb.d.ts similarity index 100% rename from packages/js/src/gen/livekit_ingress_pb.d.ts rename to packages/javascript/src/gen/livekit_ingress_pb.d.ts diff --git a/packages/js/src/gen/livekit_ingress_pb.js b/packages/javascript/src/gen/livekit_ingress_pb.js similarity index 100% rename from packages/js/src/gen/livekit_ingress_pb.js rename to packages/javascript/src/gen/livekit_ingress_pb.js diff --git a/packages/js/src/gen/livekit_models_pb.d.ts b/packages/javascript/src/gen/livekit_models_pb.d.ts similarity index 99% rename from packages/js/src/gen/livekit_models_pb.d.ts rename to packages/javascript/src/gen/livekit_models_pb.d.ts index d74568a0..8f869698 100644 --- a/packages/js/src/gen/livekit_models_pb.d.ts +++ b/packages/javascript/src/gen/livekit_models_pb.d.ts @@ -329,6 +329,11 @@ export declare class Room extends Message { */ emptyTimeout: number; + /** + * @generated from field: uint32 departure_timeout = 14; + */ + departureTimeout: number; + /** * @generated from field: uint32 max_participants = 4; */ diff --git a/packages/js/src/gen/livekit_models_pb.js b/packages/javascript/src/gen/livekit_models_pb.js similarity index 99% rename from packages/js/src/gen/livekit_models_pb.js rename to packages/javascript/src/gen/livekit_models_pb.js index 61381704..92ca24c0 100644 --- a/packages/js/src/gen/livekit_models_pb.js +++ b/packages/javascript/src/gen/livekit_models_pb.js @@ -174,6 +174,7 @@ export const Room = proto3.makeMessageType( { no: 1, name: "sid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "empty_timeout", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 14, name: "departure_timeout", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, { no: 4, name: "max_participants", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, { no: 5, name: "creation_time", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 6, name: "turn_password", kind: "scalar", T: 9 /* ScalarType.STRING */ }, diff --git a/packages/js/src/gen/livekit_rtc_pb.d.ts b/packages/javascript/src/gen/livekit_rtc_pb.d.ts similarity index 100% rename from packages/js/src/gen/livekit_rtc_pb.d.ts rename to packages/javascript/src/gen/livekit_rtc_pb.d.ts diff --git a/packages/js/src/gen/livekit_rtc_pb.js b/packages/javascript/src/gen/livekit_rtc_pb.js similarity index 100% rename from packages/js/src/gen/livekit_rtc_pb.js rename to packages/javascript/src/gen/livekit_rtc_pb.js diff --git a/packages/js/src/gen/livekit_sip_pb.d.ts b/packages/javascript/src/gen/livekit_sip_pb.d.ts similarity index 98% rename from packages/js/src/gen/livekit_sip_pb.d.ts rename to packages/javascript/src/gen/livekit_sip_pb.d.ts index 458169d6..d4297c6b 100644 --- a/packages/js/src/gen/livekit_sip_pb.d.ts +++ b/packages/javascript/src/gen/livekit_sip_pb.d.ts @@ -46,14 +46,20 @@ export declare class CreateSIPTrunkRequest extends Message { */ outboundNumber: string; + /** + * @generated from field: repeated string inbound_numbers_regex = 5 [deprecated = true]; + * @deprecated + */ + inboundNumbersRegex: string[]; + /** * Accepted `To` values. This Trunk will only accept a call made to * these numbers. This allows you to have distinct Trunks for different phone * numbers at the same provider. * - * @generated from field: repeated string inbound_numbers_regex = 5; + * @generated from field: repeated string inbound_numbers = 10; */ - inboundNumbersRegex: string[]; + inboundNumbers: string[]; /** * Username and password used to authenticate inbound and outbound SIP invites diff --git a/packages/js/src/gen/livekit_sip_pb.js b/packages/javascript/src/gen/livekit_sip_pb.js similarity index 97% rename from packages/js/src/gen/livekit_sip_pb.js rename to packages/javascript/src/gen/livekit_sip_pb.js index d4a22c92..67256e86 100644 --- a/packages/js/src/gen/livekit_sip_pb.js +++ b/packages/javascript/src/gen/livekit_sip_pb.js @@ -29,6 +29,7 @@ export const CreateSIPTrunkRequest = proto3.makeMessageType( { no: 2, name: "outbound_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "outbound_number", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 4, name: "inbound_numbers_regex", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 9, name: "inbound_numbers", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, { no: 5, name: "inbound_username", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 6, name: "inbound_password", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 7, name: "outbound_username", kind: "scalar", T: 9 /* ScalarType.STRING */ }, @@ -47,6 +48,7 @@ export const SIPTrunkInfo = proto3.makeMessageType( { no: 3, name: "outbound_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 4, name: "outbound_number", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 5, name: "inbound_numbers_regex", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 10, name: "inbound_numbers", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, { no: 6, name: "inbound_username", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 7, name: "inbound_password", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 8, name: "outbound_username", kind: "scalar", T: 9 /* ScalarType.STRING */ }, diff --git a/packages/js/src/gen/livekit_webhook_pb.d.ts b/packages/javascript/src/gen/livekit_webhook_pb.d.ts similarity index 100% rename from packages/js/src/gen/livekit_webhook_pb.d.ts rename to packages/javascript/src/gen/livekit_webhook_pb.d.ts diff --git a/packages/js/src/gen/livekit_webhook_pb.js b/packages/javascript/src/gen/livekit_webhook_pb.js similarity index 100% rename from packages/js/src/gen/livekit_webhook_pb.js rename to packages/javascript/src/gen/livekit_webhook_pb.js diff --git a/packages/js/src/gen/version.d.ts b/packages/javascript/src/gen/version.d.ts similarity index 100% rename from packages/js/src/gen/version.d.ts rename to packages/javascript/src/gen/version.d.ts diff --git a/packages/js/src/gen/version.js b/packages/javascript/src/gen/version.js similarity index 100% rename from packages/js/src/gen/version.js rename to packages/javascript/src/gen/version.js diff --git a/packages/js/src/index.d.ts b/packages/javascript/src/index.d.ts similarity index 100% rename from packages/js/src/index.d.ts rename to packages/javascript/src/index.d.ts diff --git a/packages/js/src/index.js b/packages/javascript/src/index.js similarity index 100% rename from packages/js/src/index.js rename to packages/javascript/src/index.js diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml new file mode 100644 index 00000000..20215fbe --- /dev/null +++ b/pnpm-lock.yaml @@ -0,0 +1,1970 @@ +lockfileVersion: '6.0' + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + +devDependencies: + '@changesets/cli': + specifier: ^2.27.1 + version: 2.27.1 + '@livekit/changesets-changelog-github': + specifier: ^0.0.4 + version: 0.0.4 + +packages: + + /@babel/code-frame@7.23.5: + resolution: {integrity: sha512-CgH3s1a96LipHCmSUmYFPwY7MNx8C3avkq7i4Wl3cfa662ldtUe4VM1TPXX70pfmrlWTb6jLqTYrZyT2ZTJBgA==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/highlight': 7.23.4 + chalk: 2.4.2 + dev: true + + /@babel/helper-validator-identifier@7.22.20: + resolution: {integrity: sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==} + engines: {node: '>=6.9.0'} + dev: true + + /@babel/highlight@7.23.4: + resolution: {integrity: sha512-acGdbYSfp2WheJoJm/EBBBLh/ID8KDc64ISZ9DYtBmC8/Q204PZJLHyzeB5qMzJ5trcOkybd78M4x2KWsUq++A==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/helper-validator-identifier': 7.22.20 + chalk: 2.4.2 + js-tokens: 4.0.0 + dev: true + + /@babel/runtime@7.24.0: + resolution: {integrity: sha512-Chk32uHMg6TnQdvw2e9IlqPpFX/6NLuK0Ys2PqLb7/gL5uFn9mXvK715FGLlOLQrcO4qIkNHkvPGktzzXexsFw==} + engines: {node: '>=6.9.0'} + dependencies: + regenerator-runtime: 0.14.1 + dev: true + + /@changesets/apply-release-plan@7.0.0: + resolution: {integrity: sha512-vfi69JR416qC9hWmFGSxj7N6wA5J222XNBmezSVATPWDVPIF7gkd4d8CpbEbXmRWbVrkoli3oerGS6dcL/BGsQ==} + dependencies: + '@babel/runtime': 7.24.0 + '@changesets/config': 3.0.0 + '@changesets/get-version-range-type': 0.4.0 + '@changesets/git': 3.0.0 + '@changesets/types': 6.0.0 + '@manypkg/get-packages': 1.1.3 + detect-indent: 6.1.0 + fs-extra: 7.0.1 + lodash.startcase: 4.4.0 + outdent: 0.5.0 + prettier: 2.8.8 + resolve-from: 5.0.0 + semver: 7.6.0 + dev: true + + /@changesets/assemble-release-plan@6.0.0: + resolution: {integrity: sha512-4QG7NuisAjisbW4hkLCmGW2lRYdPrKzro+fCtZaILX+3zdUELSvYjpL4GTv0E4aM9Mef3PuIQp89VmHJ4y2bfw==} + dependencies: + '@babel/runtime': 7.24.0 + '@changesets/errors': 0.2.0 + '@changesets/get-dependents-graph': 2.0.0 + '@changesets/types': 6.0.0 + '@manypkg/get-packages': 1.1.3 + semver: 7.6.0 + dev: true + + /@changesets/changelog-git@0.2.0: + resolution: {integrity: sha512-bHOx97iFI4OClIT35Lok3sJAwM31VbUM++gnMBV16fdbtBhgYu4dxsphBF/0AZZsyAHMrnM0yFcj5gZM1py6uQ==} + dependencies: + '@changesets/types': 6.0.0 + dev: true + + /@changesets/cli@2.27.1: + resolution: {integrity: sha512-iJ91xlvRnnrJnELTp4eJJEOPjgpF3NOh4qeQehM6Ugiz9gJPRZ2t+TsXun6E3AMN4hScZKjqVXl0TX+C7AB3ZQ==} + hasBin: true + dependencies: + '@babel/runtime': 7.24.0 + '@changesets/apply-release-plan': 7.0.0 + '@changesets/assemble-release-plan': 6.0.0 + '@changesets/changelog-git': 0.2.0 + '@changesets/config': 3.0.0 + '@changesets/errors': 0.2.0 + '@changesets/get-dependents-graph': 2.0.0 + '@changesets/get-release-plan': 4.0.0 + '@changesets/git': 3.0.0 + '@changesets/logger': 0.1.0 + '@changesets/pre': 2.0.0 + '@changesets/read': 0.6.0 + '@changesets/types': 6.0.0 + '@changesets/write': 0.3.0 + '@manypkg/get-packages': 1.1.3 + '@types/semver': 7.5.8 + ansi-colors: 4.1.3 + chalk: 2.4.2 + ci-info: 3.9.0 + enquirer: 2.4.1 + external-editor: 3.1.0 + fs-extra: 7.0.1 + human-id: 1.0.2 + meow: 6.1.1 + outdent: 0.5.0 + p-limit: 2.3.0 + preferred-pm: 3.1.3 + resolve-from: 5.0.0 + semver: 7.6.0 + spawndamnit: 2.0.0 + term-size: 2.2.1 + tty-table: 4.2.3 + dev: true + + /@changesets/config@3.0.0: + resolution: {integrity: sha512-o/rwLNnAo/+j9Yvw9mkBQOZySDYyOr/q+wptRLcAVGlU6djOeP9v1nlalbL9MFsobuBVQbZCTp+dIzdq+CLQUA==} + dependencies: + '@changesets/errors': 0.2.0 + '@changesets/get-dependents-graph': 2.0.0 + '@changesets/logger': 0.1.0 + '@changesets/types': 6.0.0 + '@manypkg/get-packages': 1.1.3 + fs-extra: 7.0.1 + micromatch: 4.0.5 + dev: true + + /@changesets/errors@0.2.0: + resolution: {integrity: sha512-6BLOQUscTpZeGljvyQXlWOItQyU71kCdGz7Pi8H8zdw6BI0g3m43iL4xKUVPWtG+qrrL9DTjpdn8eYuCQSRpow==} + dependencies: + extendable-error: 0.1.7 + dev: true + + /@changesets/get-dependents-graph@2.0.0: + resolution: {integrity: sha512-cafUXponivK4vBgZ3yLu944mTvam06XEn2IZGjjKc0antpenkYANXiiE6GExV/yKdsCnE8dXVZ25yGqLYZmScA==} + dependencies: + '@changesets/types': 6.0.0 + '@manypkg/get-packages': 1.1.3 + chalk: 2.4.2 + fs-extra: 7.0.1 + semver: 7.6.0 + dev: true + + /@changesets/get-github-info@0.5.2: + resolution: {integrity: sha512-JppheLu7S114aEs157fOZDjFqUDpm7eHdq5E8SSR0gUBTEK0cNSHsrSR5a66xs0z3RWuo46QvA3vawp8BxDHvg==} + dependencies: + dataloader: 1.4.0 + node-fetch: 2.7.0 + transitivePeerDependencies: + - encoding + dev: true + + /@changesets/get-release-plan@4.0.0: + resolution: {integrity: sha512-9L9xCUeD/Tb6L/oKmpm8nyzsOzhdNBBbt/ZNcjynbHC07WW4E1eX8NMGC5g5SbM5z/V+MOrYsJ4lRW41GCbg3w==} + dependencies: + '@babel/runtime': 7.24.0 + '@changesets/assemble-release-plan': 6.0.0 + '@changesets/config': 3.0.0 + '@changesets/pre': 2.0.0 + '@changesets/read': 0.6.0 + '@changesets/types': 6.0.0 + '@manypkg/get-packages': 1.1.3 + dev: true + + /@changesets/get-version-range-type@0.4.0: + resolution: {integrity: sha512-hwawtob9DryoGTpixy1D3ZXbGgJu1Rhr+ySH2PvTLHvkZuQ7sRT4oQwMh0hbqZH1weAooedEjRsbrWcGLCeyVQ==} + dev: true + + /@changesets/git@3.0.0: + resolution: {integrity: sha512-vvhnZDHe2eiBNRFHEgMiGd2CT+164dfYyrJDhwwxTVD/OW0FUD6G7+4DIx1dNwkwjHyzisxGAU96q0sVNBns0w==} + dependencies: + '@babel/runtime': 7.24.0 + '@changesets/errors': 0.2.0 + '@changesets/types': 6.0.0 + '@manypkg/get-packages': 1.1.3 + is-subdir: 1.2.0 + micromatch: 4.0.5 + spawndamnit: 2.0.0 + dev: true + + /@changesets/logger@0.1.0: + resolution: {integrity: sha512-pBrJm4CQm9VqFVwWnSqKEfsS2ESnwqwH+xR7jETxIErZcfd1u2zBSqrHbRHR7xjhSgep9x2PSKFKY//FAshA3g==} + dependencies: + chalk: 2.4.2 + dev: true + + /@changesets/parse@0.4.0: + resolution: {integrity: sha512-TS/9KG2CdGXS27S+QxbZXgr8uPsP4yNJYb4BC2/NeFUj80Rni3TeD2qwWmabymxmrLo7JEsytXH1FbpKTbvivw==} + dependencies: + '@changesets/types': 6.0.0 + js-yaml: 3.14.1 + dev: true + + /@changesets/pre@2.0.0: + resolution: {integrity: sha512-HLTNYX/A4jZxc+Sq8D1AMBsv+1qD6rmmJtjsCJa/9MSRybdxh0mjbTvE6JYZQ/ZiQ0mMlDOlGPXTm9KLTU3jyw==} + dependencies: + '@babel/runtime': 7.24.0 + '@changesets/errors': 0.2.0 + '@changesets/types': 6.0.0 + '@manypkg/get-packages': 1.1.3 + fs-extra: 7.0.1 + dev: true + + /@changesets/read@0.6.0: + resolution: {integrity: sha512-ZypqX8+/im1Fm98K4YcZtmLKgjs1kDQ5zHpc2U1qdtNBmZZfo/IBiG162RoP0CUF05tvp2y4IspH11PLnPxuuw==} + dependencies: + '@babel/runtime': 7.24.0 + '@changesets/git': 3.0.0 + '@changesets/logger': 0.1.0 + '@changesets/parse': 0.4.0 + '@changesets/types': 6.0.0 + chalk: 2.4.2 + fs-extra: 7.0.1 + p-filter: 2.1.0 + dev: true + + /@changesets/types@4.1.0: + resolution: {integrity: sha512-LDQvVDv5Kb50ny2s25Fhm3d9QSZimsoUGBsUioj6MC3qbMUCuC8GPIvk/M6IvXx3lYhAs0lwWUQLb+VIEUCECw==} + dev: true + + /@changesets/types@5.2.1: + resolution: {integrity: sha512-myLfHbVOqaq9UtUKqR/nZA/OY7xFjQMdfgfqeZIBK4d0hA6pgxArvdv8M+6NUzzBsjWLOtvApv8YHr4qM+Kpfg==} + dev: true + + /@changesets/types@6.0.0: + resolution: {integrity: sha512-b1UkfNulgKoWfqyHtzKS5fOZYSJO+77adgL7DLRDr+/7jhChN+QcHnbjiQVOz/U+Ts3PGNySq7diAItzDgugfQ==} + dev: true + + /@changesets/write@0.3.0: + resolution: {integrity: sha512-slGLb21fxZVUYbyea+94uFiD6ntQW0M2hIKNznFizDhZPDgn2c/fv1UzzlW43RVzh1BEDuIqW6hzlJ1OflNmcw==} + dependencies: + '@babel/runtime': 7.24.0 + '@changesets/types': 6.0.0 + fs-extra: 7.0.1 + human-id: 1.0.2 + prettier: 2.8.8 + dev: true + + /@livekit/changesets-changelog-github@0.0.4: + resolution: {integrity: sha512-MXaiLYwgkYciZb8G2wkVtZ1pJJzZmVx5cM30Q+ClslrIYyAqQhRbPmZDM79/5CGxb1MTemR/tfOM25tgJgAK0g==} + dependencies: + '@changesets/get-github-info': 0.5.2 + '@changesets/types': 5.2.1 + dotenv: 8.6.0 + transitivePeerDependencies: + - encoding + dev: true + + /@manypkg/find-root@1.1.0: + resolution: {integrity: sha512-mki5uBvhHzO8kYYix/WRy2WX8S3B5wdVSc9D6KcU5lQNglP2yt58/VfLuAK49glRXChosY8ap2oJ1qgma3GUVA==} + dependencies: + '@babel/runtime': 7.24.0 + '@types/node': 12.20.55 + find-up: 4.1.0 + fs-extra: 8.1.0 + dev: true + + /@manypkg/get-packages@1.1.3: + resolution: {integrity: sha512-fo+QhuU3qE/2TQMQmbVMqaQ6EWbMhi4ABWP+O4AM1NqPBuy0OrApV5LO6BrrgnhtAHS2NH6RrVk9OL181tTi8A==} + dependencies: + '@babel/runtime': 7.24.0 + '@changesets/types': 4.1.0 + '@manypkg/find-root': 1.1.0 + fs-extra: 8.1.0 + globby: 11.1.0 + read-yaml-file: 1.1.0 + dev: true + + /@nodelib/fs.scandir@2.1.5: + resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==} + engines: {node: '>= 8'} + dependencies: + '@nodelib/fs.stat': 2.0.5 + run-parallel: 1.2.0 + dev: true + + /@nodelib/fs.stat@2.0.5: + resolution: {integrity: sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==} + engines: {node: '>= 8'} + dev: true + + /@nodelib/fs.walk@1.2.8: + resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==} + engines: {node: '>= 8'} + dependencies: + '@nodelib/fs.scandir': 2.1.5 + fastq: 1.17.1 + dev: true + + /@types/minimist@1.2.5: + resolution: {integrity: sha512-hov8bUuiLiyFPGyFPE1lwWhmzYbirOXQNNo40+y3zow8aFVTeyn3VWL0VFFfdNddA8S4Vf0Tc062rzyNr7Paag==} + dev: true + + /@types/node@12.20.55: + resolution: {integrity: sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==} + dev: true + + /@types/normalize-package-data@2.4.4: + resolution: {integrity: sha512-37i+OaWTh9qeK4LSHPsyRC7NahnGotNuZvjLSgcPzblpHB3rrCJxAOgI5gCdKm7coonsaX1Of0ILiTcnZjbfxA==} + dev: true + + /@types/semver@7.5.8: + resolution: {integrity: sha512-I8EUhyrgfLrcTkzV3TSsGyl1tSuPrEDzr0yd5m90UgNxQkyDXULk3b6MlQqTCpZpNtWe1K0hzclnZkTcLBe2UQ==} + dev: true + + /ansi-colors@4.1.3: + resolution: {integrity: sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==} + engines: {node: '>=6'} + dev: true + + /ansi-regex@5.0.1: + resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==} + engines: {node: '>=8'} + dev: true + + /ansi-styles@3.2.1: + resolution: {integrity: sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==} + engines: {node: '>=4'} + dependencies: + color-convert: 1.9.3 + dev: true + + /ansi-styles@4.3.0: + resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==} + engines: {node: '>=8'} + dependencies: + color-convert: 2.0.1 + dev: true + + /argparse@1.0.10: + resolution: {integrity: sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==} + dependencies: + sprintf-js: 1.0.3 + dev: true + + /array-buffer-byte-length@1.0.1: + resolution: {integrity: sha512-ahC5W1xgou+KTXix4sAO8Ki12Q+jf4i0+tmk3sC+zgcynshkHxzpXdImBehiUYKKKDwvfFiJl1tZt6ewscS1Mg==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.7 + is-array-buffer: 3.0.4 + dev: true + + /array-union@2.1.0: + resolution: {integrity: sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==} + engines: {node: '>=8'} + dev: true + + /array.prototype.flat@1.3.2: + resolution: {integrity: sha512-djYB+Zx2vLewY8RWlNCUdHjDXs2XOgm602S9E7P/UpHgfeHL00cRiIF+IN/G/aUJ7kGPb6yO/ErDI5V2s8iycA==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.7 + define-properties: 1.2.1 + es-abstract: 1.22.5 + es-shim-unscopables: 1.0.2 + dev: true + + /arraybuffer.prototype.slice@1.0.3: + resolution: {integrity: sha512-bMxMKAjg13EBSVscxTaYA4mRc5t1UAXa2kXiGTNfZ079HIWXEkKmkgFrh/nJqamaLSrXO5H4WFFkPEaLJWbs3A==} + engines: {node: '>= 0.4'} + dependencies: + array-buffer-byte-length: 1.0.1 + call-bind: 1.0.7 + define-properties: 1.2.1 + es-abstract: 1.22.5 + es-errors: 1.3.0 + get-intrinsic: 1.2.4 + is-array-buffer: 3.0.4 + is-shared-array-buffer: 1.0.3 + dev: true + + /arrify@1.0.1: + resolution: {integrity: sha512-3CYzex9M9FGQjCGMGyi6/31c8GJbgb0qGyrx5HWxPd0aCwh4cB2YjMb2Xf9UuoogrMrlO9cTqnB5rI5GHZTcUA==} + engines: {node: '>=0.10.0'} + dev: true + + /available-typed-arrays@1.0.7: + resolution: {integrity: sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==} + engines: {node: '>= 0.4'} + dependencies: + possible-typed-array-names: 1.0.0 + dev: true + + /better-path-resolve@1.0.0: + resolution: {integrity: sha512-pbnl5XzGBdrFU/wT4jqmJVPn2B6UHPBOhzMQkY/SPUPB6QtUXtmBHBIwCbXJol93mOpGMnQyP/+BB19q04xj7g==} + engines: {node: '>=4'} + dependencies: + is-windows: 1.0.2 + dev: true + + /braces@3.0.2: + resolution: {integrity: sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==} + engines: {node: '>=8'} + dependencies: + fill-range: 7.0.1 + dev: true + + /breakword@1.0.6: + resolution: {integrity: sha512-yjxDAYyK/pBvws9H4xKYpLDpYKEH6CzrBPAuXq3x18I+c/2MkVtT3qAr7Oloi6Dss9qNhPVueAAVU1CSeNDIXw==} + dependencies: + wcwidth: 1.0.1 + dev: true + + /call-bind@1.0.7: + resolution: {integrity: sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==} + engines: {node: '>= 0.4'} + dependencies: + es-define-property: 1.0.0 + es-errors: 1.3.0 + function-bind: 1.1.2 + get-intrinsic: 1.2.4 + set-function-length: 1.2.1 + dev: true + + /camelcase-keys@6.2.2: + resolution: {integrity: sha512-YrwaA0vEKazPBkn0ipTiMpSajYDSe+KjQfrjhcBMxJt/znbvlHd8Pw/Vamaz5EB4Wfhs3SUR3Z9mwRu/P3s3Yg==} + engines: {node: '>=8'} + dependencies: + camelcase: 5.3.1 + map-obj: 4.3.0 + quick-lru: 4.0.1 + dev: true + + /camelcase@5.3.1: + resolution: {integrity: sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==} + engines: {node: '>=6'} + dev: true + + /chalk@2.4.2: + resolution: {integrity: sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==} + engines: {node: '>=4'} + dependencies: + ansi-styles: 3.2.1 + escape-string-regexp: 1.0.5 + supports-color: 5.5.0 + dev: true + + /chalk@4.1.2: + resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==} + engines: {node: '>=10'} + dependencies: + ansi-styles: 4.3.0 + supports-color: 7.2.0 + dev: true + + /chardet@0.7.0: + resolution: {integrity: sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==} + dev: true + + /ci-info@3.9.0: + resolution: {integrity: sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==} + engines: {node: '>=8'} + dev: true + + /cliui@6.0.0: + resolution: {integrity: sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==} + dependencies: + string-width: 4.2.3 + strip-ansi: 6.0.1 + wrap-ansi: 6.2.0 + dev: true + + /cliui@8.0.1: + resolution: {integrity: sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==} + engines: {node: '>=12'} + dependencies: + string-width: 4.2.3 + strip-ansi: 6.0.1 + wrap-ansi: 7.0.0 + dev: true + + /clone@1.0.4: + resolution: {integrity: sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg==} + engines: {node: '>=0.8'} + dev: true + + /color-convert@1.9.3: + resolution: {integrity: sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==} + dependencies: + color-name: 1.1.3 + dev: true + + /color-convert@2.0.1: + resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==} + engines: {node: '>=7.0.0'} + dependencies: + color-name: 1.1.4 + dev: true + + /color-name@1.1.3: + resolution: {integrity: sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==} + dev: true + + /color-name@1.1.4: + resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==} + dev: true + + /cross-spawn@5.1.0: + resolution: {integrity: sha512-pTgQJ5KC0d2hcY8eyL1IzlBPYjTkyH72XRZPnLyKus2mBfNjQs3klqbJU2VILqZryAZUt9JOb3h/mWMy23/f5A==} + dependencies: + lru-cache: 4.1.5 + shebang-command: 1.2.0 + which: 1.3.1 + dev: true + + /csv-generate@3.4.3: + resolution: {integrity: sha512-w/T+rqR0vwvHqWs/1ZyMDWtHHSJaN06klRqJXBEpDJaM/+dZkso0OKh1VcuuYvK3XM53KysVNq8Ko/epCK8wOw==} + dev: true + + /csv-parse@4.16.3: + resolution: {integrity: sha512-cO1I/zmz4w2dcKHVvpCr7JVRu8/FymG5OEpmvsZYlccYolPBLoVGKUHgNoc4ZGkFeFlWGEDmMyBM+TTqRdW/wg==} + dev: true + + /csv-stringify@5.6.5: + resolution: {integrity: sha512-PjiQ659aQ+fUTQqSrd1XEDnOr52jh30RBurfzkscaE2tPaFsDH5wOAHJiw8XAHphRknCwMUE9KRayc4K/NbO8A==} + dev: true + + /csv@5.5.3: + resolution: {integrity: sha512-QTaY0XjjhTQOdguARF0lGKm5/mEq9PD9/VhZZegHDIBq2tQwgNpHc3dneD4mGo2iJs+fTKv5Bp0fZ+BRuY3Z0g==} + engines: {node: '>= 0.1.90'} + dependencies: + csv-generate: 3.4.3 + csv-parse: 4.16.3 + csv-stringify: 5.6.5 + stream-transform: 2.1.3 + dev: true + + /dataloader@1.4.0: + resolution: {integrity: sha512-68s5jYdlvasItOJnCuI2Q9s4q98g0pCyL3HrcKJu8KNugUl8ahgmZYg38ysLTgQjjXX3H8CJLkAvWrclWfcalw==} + dev: true + + /decamelize-keys@1.1.1: + resolution: {integrity: sha512-WiPxgEirIV0/eIOMcnFBA3/IJZAZqKnwAwWyvvdi4lsr1WCN22nhdf/3db3DoZcUjTV2SqfzIwNyp6y2xs3nmg==} + engines: {node: '>=0.10.0'} + dependencies: + decamelize: 1.2.0 + map-obj: 1.0.1 + dev: true + + /decamelize@1.2.0: + resolution: {integrity: sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==} + engines: {node: '>=0.10.0'} + dev: true + + /defaults@1.0.4: + resolution: {integrity: sha512-eFuaLoy/Rxalv2kr+lqMlUnrDWV+3j4pljOIJgLIhI058IQfWJ7vXhyEIHu+HtC738klGALYxOKDO0bQP3tg8A==} + dependencies: + clone: 1.0.4 + dev: true + + /define-data-property@1.1.4: + resolution: {integrity: sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==} + engines: {node: '>= 0.4'} + dependencies: + es-define-property: 1.0.0 + es-errors: 1.3.0 + gopd: 1.0.1 + dev: true + + /define-properties@1.2.1: + resolution: {integrity: sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==} + engines: {node: '>= 0.4'} + dependencies: + define-data-property: 1.1.4 + has-property-descriptors: 1.0.2 + object-keys: 1.1.1 + dev: true + + /detect-indent@6.1.0: + resolution: {integrity: sha512-reYkTUJAZb9gUuZ2RvVCNhVHdg62RHnJ7WJl8ftMi4diZ6NWlciOzQN88pUhSELEwflJht4oQDv0F0BMlwaYtA==} + engines: {node: '>=8'} + dev: true + + /dir-glob@3.0.1: + resolution: {integrity: sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==} + engines: {node: '>=8'} + dependencies: + path-type: 4.0.0 + dev: true + + /dotenv@8.6.0: + resolution: {integrity: sha512-IrPdXQsk2BbzvCBGBOTmmSH5SodmqZNt4ERAZDmW4CT+tL8VtvinqywuANaFu4bOMWki16nqf0e4oC0QIaDr/g==} + engines: {node: '>=10'} + dev: true + + /emoji-regex@8.0.0: + resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==} + dev: true + + /enquirer@2.4.1: + resolution: {integrity: sha512-rRqJg/6gd538VHvR3PSrdRBb/1Vy2YfzHqzvbhGIQpDRKIa4FgV/54b5Q1xYSxOOwKvjXweS26E0Q+nAMwp2pQ==} + engines: {node: '>=8.6'} + dependencies: + ansi-colors: 4.1.3 + strip-ansi: 6.0.1 + dev: true + + /error-ex@1.3.2: + resolution: {integrity: sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==} + dependencies: + is-arrayish: 0.2.1 + dev: true + + /es-abstract@1.22.5: + resolution: {integrity: sha512-oW69R+4q2wG+Hc3KZePPZxOiisRIqfKBVo/HLx94QcJeWGU/8sZhCvc829rd1kS366vlJbzBfXf9yWwf0+Ko7w==} + engines: {node: '>= 0.4'} + dependencies: + array-buffer-byte-length: 1.0.1 + arraybuffer.prototype.slice: 1.0.3 + available-typed-arrays: 1.0.7 + call-bind: 1.0.7 + es-define-property: 1.0.0 + es-errors: 1.3.0 + es-set-tostringtag: 2.0.3 + es-to-primitive: 1.2.1 + function.prototype.name: 1.1.6 + get-intrinsic: 1.2.4 + get-symbol-description: 1.0.2 + globalthis: 1.0.3 + gopd: 1.0.1 + has-property-descriptors: 1.0.2 + has-proto: 1.0.3 + has-symbols: 1.0.3 + hasown: 2.0.1 + internal-slot: 1.0.7 + is-array-buffer: 3.0.4 + is-callable: 1.2.7 + is-negative-zero: 2.0.3 + is-regex: 1.1.4 + is-shared-array-buffer: 1.0.3 + is-string: 1.0.7 + is-typed-array: 1.1.13 + is-weakref: 1.0.2 + object-inspect: 1.13.1 + object-keys: 1.1.1 + object.assign: 4.1.5 + regexp.prototype.flags: 1.5.2 + safe-array-concat: 1.1.0 + safe-regex-test: 1.0.3 + string.prototype.trim: 1.2.8 + string.prototype.trimend: 1.0.7 + string.prototype.trimstart: 1.0.7 + typed-array-buffer: 1.0.2 + typed-array-byte-length: 1.0.1 + typed-array-byte-offset: 1.0.2 + typed-array-length: 1.0.5 + unbox-primitive: 1.0.2 + which-typed-array: 1.1.14 + dev: true + + /es-define-property@1.0.0: + resolution: {integrity: sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==} + engines: {node: '>= 0.4'} + dependencies: + get-intrinsic: 1.2.4 + dev: true + + /es-errors@1.3.0: + resolution: {integrity: sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==} + engines: {node: '>= 0.4'} + dev: true + + /es-set-tostringtag@2.0.3: + resolution: {integrity: sha512-3T8uNMC3OQTHkFUsFq8r/BwAXLHvU/9O9mE0fBc/MY5iq/8H7ncvO947LmYA6ldWw9Uh8Yhf25zu6n7nML5QWQ==} + engines: {node: '>= 0.4'} + dependencies: + get-intrinsic: 1.2.4 + has-tostringtag: 1.0.2 + hasown: 2.0.1 + dev: true + + /es-shim-unscopables@1.0.2: + resolution: {integrity: sha512-J3yBRXCzDu4ULnQwxyToo/OjdMx6akgVC7K6few0a7F/0wLtmKKN7I73AH5T2836UuXRqN7Qg+IIUw/+YJksRw==} + dependencies: + hasown: 2.0.1 + dev: true + + /es-to-primitive@1.2.1: + resolution: {integrity: sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==} + engines: {node: '>= 0.4'} + dependencies: + is-callable: 1.2.7 + is-date-object: 1.0.5 + is-symbol: 1.0.4 + dev: true + + /escalade@3.1.2: + resolution: {integrity: sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==} + engines: {node: '>=6'} + dev: true + + /escape-string-regexp@1.0.5: + resolution: {integrity: sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==} + engines: {node: '>=0.8.0'} + dev: true + + /esprima@4.0.1: + resolution: {integrity: sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==} + engines: {node: '>=4'} + hasBin: true + dev: true + + /extendable-error@0.1.7: + resolution: {integrity: sha512-UOiS2in6/Q0FK0R0q6UY9vYpQ21mr/Qn1KOnte7vsACuNJf514WvCCUHSRCPcgjPT2bAhNIJdlE6bVap1GKmeg==} + dev: true + + /external-editor@3.1.0: + resolution: {integrity: sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew==} + engines: {node: '>=4'} + dependencies: + chardet: 0.7.0 + iconv-lite: 0.4.24 + tmp: 0.0.33 + dev: true + + /fast-glob@3.3.2: + resolution: {integrity: sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==} + engines: {node: '>=8.6.0'} + dependencies: + '@nodelib/fs.stat': 2.0.5 + '@nodelib/fs.walk': 1.2.8 + glob-parent: 5.1.2 + merge2: 1.4.1 + micromatch: 4.0.5 + dev: true + + /fastq@1.17.1: + resolution: {integrity: sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==} + dependencies: + reusify: 1.0.4 + dev: true + + /fill-range@7.0.1: + resolution: {integrity: sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==} + engines: {node: '>=8'} + dependencies: + to-regex-range: 5.0.1 + dev: true + + /find-up@4.1.0: + resolution: {integrity: sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==} + engines: {node: '>=8'} + dependencies: + locate-path: 5.0.0 + path-exists: 4.0.0 + dev: true + + /find-up@5.0.0: + resolution: {integrity: sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==} + engines: {node: '>=10'} + dependencies: + locate-path: 6.0.0 + path-exists: 4.0.0 + dev: true + + /find-yarn-workspace-root2@1.2.16: + resolution: {integrity: sha512-hr6hb1w8ePMpPVUK39S4RlwJzi+xPLuVuG8XlwXU3KD5Yn3qgBWVfy3AzNlDhWvE1EORCE65/Qm26rFQt3VLVA==} + dependencies: + micromatch: 4.0.5 + pkg-dir: 4.2.0 + dev: true + + /for-each@0.3.3: + resolution: {integrity: sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==} + dependencies: + is-callable: 1.2.7 + dev: true + + /fs-extra@7.0.1: + resolution: {integrity: sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==} + engines: {node: '>=6 <7 || >=8'} + dependencies: + graceful-fs: 4.2.11 + jsonfile: 4.0.0 + universalify: 0.1.2 + dev: true + + /fs-extra@8.1.0: + resolution: {integrity: sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==} + engines: {node: '>=6 <7 || >=8'} + dependencies: + graceful-fs: 4.2.11 + jsonfile: 4.0.0 + universalify: 0.1.2 + dev: true + + /function-bind@1.1.2: + resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==} + dev: true + + /function.prototype.name@1.1.6: + resolution: {integrity: sha512-Z5kx79swU5P27WEayXM1tBi5Ze/lbIyiNgU3qyXUOf9b2rgXYyF9Dy9Cx+IQv/Lc8WCG6L82zwUPpSS9hGehIg==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.7 + define-properties: 1.2.1 + es-abstract: 1.22.5 + functions-have-names: 1.2.3 + dev: true + + /functions-have-names@1.2.3: + resolution: {integrity: sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==} + dev: true + + /get-caller-file@2.0.5: + resolution: {integrity: sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==} + engines: {node: 6.* || 8.* || >= 10.*} + dev: true + + /get-intrinsic@1.2.4: + resolution: {integrity: sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==} + engines: {node: '>= 0.4'} + dependencies: + es-errors: 1.3.0 + function-bind: 1.1.2 + has-proto: 1.0.3 + has-symbols: 1.0.3 + hasown: 2.0.1 + dev: true + + /get-symbol-description@1.0.2: + resolution: {integrity: sha512-g0QYk1dZBxGwk+Ngc+ltRH2IBp2f7zBkBMBJZCDerh6EhlhSR6+9irMCuT/09zD6qkarHUSn529sK/yL4S27mg==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.7 + es-errors: 1.3.0 + get-intrinsic: 1.2.4 + dev: true + + /glob-parent@5.1.2: + resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==} + engines: {node: '>= 6'} + dependencies: + is-glob: 4.0.3 + dev: true + + /globalthis@1.0.3: + resolution: {integrity: sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==} + engines: {node: '>= 0.4'} + dependencies: + define-properties: 1.2.1 + dev: true + + /globby@11.1.0: + resolution: {integrity: sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==} + engines: {node: '>=10'} + dependencies: + array-union: 2.1.0 + dir-glob: 3.0.1 + fast-glob: 3.3.2 + ignore: 5.3.1 + merge2: 1.4.1 + slash: 3.0.0 + dev: true + + /gopd@1.0.1: + resolution: {integrity: sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==} + dependencies: + get-intrinsic: 1.2.4 + dev: true + + /graceful-fs@4.2.11: + resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==} + dev: true + + /grapheme-splitter@1.0.4: + resolution: {integrity: sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==} + dev: true + + /hard-rejection@2.1.0: + resolution: {integrity: sha512-VIZB+ibDhx7ObhAe7OVtoEbuP4h/MuOTHJ+J8h/eBXotJYl0fBgR72xDFCKgIh22OJZIOVNxBMWuhAr10r8HdA==} + engines: {node: '>=6'} + dev: true + + /has-bigints@1.0.2: + resolution: {integrity: sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==} + dev: true + + /has-flag@3.0.0: + resolution: {integrity: sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==} + engines: {node: '>=4'} + dev: true + + /has-flag@4.0.0: + resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==} + engines: {node: '>=8'} + dev: true + + /has-property-descriptors@1.0.2: + resolution: {integrity: sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==} + dependencies: + es-define-property: 1.0.0 + dev: true + + /has-proto@1.0.3: + resolution: {integrity: sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q==} + engines: {node: '>= 0.4'} + dev: true + + /has-symbols@1.0.3: + resolution: {integrity: sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==} + engines: {node: '>= 0.4'} + dev: true + + /has-tostringtag@1.0.2: + resolution: {integrity: sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==} + engines: {node: '>= 0.4'} + dependencies: + has-symbols: 1.0.3 + dev: true + + /hasown@2.0.1: + resolution: {integrity: sha512-1/th4MHjnwncwXsIW6QMzlvYL9kG5e/CpVvLRZe4XPa8TOUNbCELqmvhDmnkNsAjwaG4+I8gJJL0JBvTTLO9qA==} + engines: {node: '>= 0.4'} + dependencies: + function-bind: 1.1.2 + dev: true + + /hosted-git-info@2.8.9: + resolution: {integrity: sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==} + dev: true + + /human-id@1.0.2: + resolution: {integrity: sha512-UNopramDEhHJD+VR+ehk8rOslwSfByxPIZyJRfV739NDhN5LF1fa1MqnzKm2lGTQRjNrjK19Q5fhkgIfjlVUKw==} + dev: true + + /iconv-lite@0.4.24: + resolution: {integrity: sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==} + engines: {node: '>=0.10.0'} + dependencies: + safer-buffer: 2.1.2 + dev: true + + /ignore@5.3.1: + resolution: {integrity: sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw==} + engines: {node: '>= 4'} + dev: true + + /indent-string@4.0.0: + resolution: {integrity: sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==} + engines: {node: '>=8'} + dev: true + + /internal-slot@1.0.7: + resolution: {integrity: sha512-NGnrKwXzSms2qUUih/ILZ5JBqNTSa1+ZmP6flaIp6KmSElgE9qdndzS3cqjrDovwFdmwsGsLdeFgB6suw+1e9g==} + engines: {node: '>= 0.4'} + dependencies: + es-errors: 1.3.0 + hasown: 2.0.1 + side-channel: 1.0.6 + dev: true + + /is-array-buffer@3.0.4: + resolution: {integrity: sha512-wcjaerHw0ydZwfhiKbXJWLDY8A7yV7KhjQOpb83hGgGfId/aQa4TOvwyzn2PuswW2gPCYEL/nEAiSVpdOj1lXw==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.7 + get-intrinsic: 1.2.4 + dev: true + + /is-arrayish@0.2.1: + resolution: {integrity: sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==} + dev: true + + /is-bigint@1.0.4: + resolution: {integrity: sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==} + dependencies: + has-bigints: 1.0.2 + dev: true + + /is-boolean-object@1.1.2: + resolution: {integrity: sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.7 + has-tostringtag: 1.0.2 + dev: true + + /is-callable@1.2.7: + resolution: {integrity: sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==} + engines: {node: '>= 0.4'} + dev: true + + /is-core-module@2.13.1: + resolution: {integrity: sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==} + dependencies: + hasown: 2.0.1 + dev: true + + /is-date-object@1.0.5: + resolution: {integrity: sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==} + engines: {node: '>= 0.4'} + dependencies: + has-tostringtag: 1.0.2 + dev: true + + /is-extglob@2.1.1: + resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==} + engines: {node: '>=0.10.0'} + dev: true + + /is-fullwidth-code-point@3.0.0: + resolution: {integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==} + engines: {node: '>=8'} + dev: true + + /is-glob@4.0.3: + resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==} + engines: {node: '>=0.10.0'} + dependencies: + is-extglob: 2.1.1 + dev: true + + /is-negative-zero@2.0.3: + resolution: {integrity: sha512-5KoIu2Ngpyek75jXodFvnafB6DJgr3u8uuK0LEZJjrU19DrMD3EVERaR8sjz8CCGgpZvxPl9SuE1GMVPFHx1mw==} + engines: {node: '>= 0.4'} + dev: true + + /is-number-object@1.0.7: + resolution: {integrity: sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==} + engines: {node: '>= 0.4'} + dependencies: + has-tostringtag: 1.0.2 + dev: true + + /is-number@7.0.0: + resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==} + engines: {node: '>=0.12.0'} + dev: true + + /is-plain-obj@1.1.0: + resolution: {integrity: sha512-yvkRyxmFKEOQ4pNXCmJG5AEQNlXJS5LaONXo5/cLdTZdWvsZ1ioJEonLGAosKlMWE8lwUy/bJzMjcw8az73+Fg==} + engines: {node: '>=0.10.0'} + dev: true + + /is-regex@1.1.4: + resolution: {integrity: sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.7 + has-tostringtag: 1.0.2 + dev: true + + /is-shared-array-buffer@1.0.3: + resolution: {integrity: sha512-nA2hv5XIhLR3uVzDDfCIknerhx8XUKnstuOERPNNIinXG7v9u+ohXF67vxm4TPTEPU6lm61ZkwP3c9PCB97rhg==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.7 + dev: true + + /is-string@1.0.7: + resolution: {integrity: sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==} + engines: {node: '>= 0.4'} + dependencies: + has-tostringtag: 1.0.2 + dev: true + + /is-subdir@1.2.0: + resolution: {integrity: sha512-2AT6j+gXe/1ueqbW6fLZJiIw3F8iXGJtt0yDrZaBhAZEG1raiTxKWU+IPqMCzQAXOUCKdA4UDMgacKH25XG2Cw==} + engines: {node: '>=4'} + dependencies: + better-path-resolve: 1.0.0 + dev: true + + /is-symbol@1.0.4: + resolution: {integrity: sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==} + engines: {node: '>= 0.4'} + dependencies: + has-symbols: 1.0.3 + dev: true + + /is-typed-array@1.1.13: + resolution: {integrity: sha512-uZ25/bUAlUY5fR4OKT4rZQEBrzQWYV9ZJYGGsUmEJ6thodVJ1HX64ePQ6Z0qPWP+m+Uq6e9UugrE38jeYsDSMw==} + engines: {node: '>= 0.4'} + dependencies: + which-typed-array: 1.1.14 + dev: true + + /is-weakref@1.0.2: + resolution: {integrity: sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==} + dependencies: + call-bind: 1.0.7 + dev: true + + /is-windows@1.0.2: + resolution: {integrity: sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==} + engines: {node: '>=0.10.0'} + dev: true + + /isarray@2.0.5: + resolution: {integrity: sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==} + dev: true + + /isexe@2.0.0: + resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} + dev: true + + /js-tokens@4.0.0: + resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} + dev: true + + /js-yaml@3.14.1: + resolution: {integrity: sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==} + hasBin: true + dependencies: + argparse: 1.0.10 + esprima: 4.0.1 + dev: true + + /json-parse-even-better-errors@2.3.1: + resolution: {integrity: sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==} + dev: true + + /jsonfile@4.0.0: + resolution: {integrity: sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==} + optionalDependencies: + graceful-fs: 4.2.11 + dev: true + + /kind-of@6.0.3: + resolution: {integrity: sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==} + engines: {node: '>=0.10.0'} + dev: true + + /kleur@4.1.5: + resolution: {integrity: sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==} + engines: {node: '>=6'} + dev: true + + /lines-and-columns@1.2.4: + resolution: {integrity: sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==} + dev: true + + /load-yaml-file@0.2.0: + resolution: {integrity: sha512-OfCBkGEw4nN6JLtgRidPX6QxjBQGQf72q3si2uvqyFEMbycSFFHwAZeXx6cJgFM9wmLrf9zBwCP3Ivqa+LLZPw==} + engines: {node: '>=6'} + dependencies: + graceful-fs: 4.2.11 + js-yaml: 3.14.1 + pify: 4.0.1 + strip-bom: 3.0.0 + dev: true + + /locate-path@5.0.0: + resolution: {integrity: sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==} + engines: {node: '>=8'} + dependencies: + p-locate: 4.1.0 + dev: true + + /locate-path@6.0.0: + resolution: {integrity: sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==} + engines: {node: '>=10'} + dependencies: + p-locate: 5.0.0 + dev: true + + /lodash.startcase@4.4.0: + resolution: {integrity: sha512-+WKqsK294HMSc2jEbNgpHpd0JfIBhp7rEV4aqXWqFr6AlXov+SlcgB1Fv01y2kGe3Gc8nMW7VA0SrGuSkRfIEg==} + dev: true + + /lru-cache@4.1.5: + resolution: {integrity: sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==} + dependencies: + pseudomap: 1.0.2 + yallist: 2.1.2 + dev: true + + /lru-cache@6.0.0: + resolution: {integrity: sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==} + engines: {node: '>=10'} + dependencies: + yallist: 4.0.0 + dev: true + + /map-obj@1.0.1: + resolution: {integrity: sha512-7N/q3lyZ+LVCp7PzuxrJr4KMbBE2hW7BT7YNia330OFxIf4d3r5zVpicP2650l7CPN6RM9zOJRl3NGpqSiw3Eg==} + engines: {node: '>=0.10.0'} + dev: true + + /map-obj@4.3.0: + resolution: {integrity: sha512-hdN1wVrZbb29eBGiGjJbeP8JbKjq1urkHJ/LIP/NY48MZ1QVXUsQBV1G1zvYFHn1XE06cwjBsOI2K3Ulnj1YXQ==} + engines: {node: '>=8'} + dev: true + + /meow@6.1.1: + resolution: {integrity: sha512-3YffViIt2QWgTy6Pale5QpopX/IvU3LPL03jOTqp6pGj3VjesdO/U8CuHMKpnQr4shCNCM5fd5XFFvIIl6JBHg==} + engines: {node: '>=8'} + dependencies: + '@types/minimist': 1.2.5 + camelcase-keys: 6.2.2 + decamelize-keys: 1.1.1 + hard-rejection: 2.1.0 + minimist-options: 4.1.0 + normalize-package-data: 2.5.0 + read-pkg-up: 7.0.1 + redent: 3.0.0 + trim-newlines: 3.0.1 + type-fest: 0.13.1 + yargs-parser: 18.1.3 + dev: true + + /merge2@1.4.1: + resolution: {integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==} + engines: {node: '>= 8'} + dev: true + + /micromatch@4.0.5: + resolution: {integrity: sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==} + engines: {node: '>=8.6'} + dependencies: + braces: 3.0.2 + picomatch: 2.3.1 + dev: true + + /min-indent@1.0.1: + resolution: {integrity: sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==} + engines: {node: '>=4'} + dev: true + + /minimist-options@4.1.0: + resolution: {integrity: sha512-Q4r8ghd80yhO/0j1O3B2BjweX3fiHg9cdOwjJd2J76Q135c+NDxGCqdYKQ1SKBuFfgWbAUzBfvYjPUEeNgqN1A==} + engines: {node: '>= 6'} + dependencies: + arrify: 1.0.1 + is-plain-obj: 1.1.0 + kind-of: 6.0.3 + dev: true + + /mixme@0.5.10: + resolution: {integrity: sha512-5H76ANWinB1H3twpJ6JY8uvAtpmFvHNArpilJAjXRKXSDDLPIMoZArw5SH0q9z+lLs8IrMw7Q2VWpWimFKFT1Q==} + engines: {node: '>= 8.0.0'} + dev: true + + /node-fetch@2.7.0: + resolution: {integrity: sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==} + engines: {node: 4.x || >=6.0.0} + peerDependencies: + encoding: ^0.1.0 + peerDependenciesMeta: + encoding: + optional: true + dependencies: + whatwg-url: 5.0.0 + dev: true + + /normalize-package-data@2.5.0: + resolution: {integrity: sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==} + dependencies: + hosted-git-info: 2.8.9 + resolve: 1.22.8 + semver: 5.7.2 + validate-npm-package-license: 3.0.4 + dev: true + + /object-inspect@1.13.1: + resolution: {integrity: sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ==} + dev: true + + /object-keys@1.1.1: + resolution: {integrity: sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==} + engines: {node: '>= 0.4'} + dev: true + + /object.assign@4.1.5: + resolution: {integrity: sha512-byy+U7gp+FVwmyzKPYhW2h5l3crpmGsxl7X2s8y43IgxvG4g3QZ6CffDtsNQy1WsmZpQbO+ybo0AlW7TY6DcBQ==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.7 + define-properties: 1.2.1 + has-symbols: 1.0.3 + object-keys: 1.1.1 + dev: true + + /os-tmpdir@1.0.2: + resolution: {integrity: sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g==} + engines: {node: '>=0.10.0'} + dev: true + + /outdent@0.5.0: + resolution: {integrity: sha512-/jHxFIzoMXdqPzTaCpFzAAWhpkSjZPF4Vsn6jAfNpmbH/ymsmd7Qc6VE9BGn0L6YMj6uwpQLxCECpus4ukKS9Q==} + dev: true + + /p-filter@2.1.0: + resolution: {integrity: sha512-ZBxxZ5sL2HghephhpGAQdoskxplTwr7ICaehZwLIlfL6acuVgZPm8yBNuRAFBGEqtD/hmUeq9eqLg2ys9Xr/yw==} + engines: {node: '>=8'} + dependencies: + p-map: 2.1.0 + dev: true + + /p-limit@2.3.0: + resolution: {integrity: sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==} + engines: {node: '>=6'} + dependencies: + p-try: 2.2.0 + dev: true + + /p-limit@3.1.0: + resolution: {integrity: sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==} + engines: {node: '>=10'} + dependencies: + yocto-queue: 0.1.0 + dev: true + + /p-locate@4.1.0: + resolution: {integrity: sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==} + engines: {node: '>=8'} + dependencies: + p-limit: 2.3.0 + dev: true + + /p-locate@5.0.0: + resolution: {integrity: sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==} + engines: {node: '>=10'} + dependencies: + p-limit: 3.1.0 + dev: true + + /p-map@2.1.0: + resolution: {integrity: sha512-y3b8Kpd8OAN444hxfBbFfj1FY/RjtTd8tzYwhUqNYXx0fXx2iX4maP4Qr6qhIKbQXI02wTLAda4fYUbDagTUFw==} + engines: {node: '>=6'} + dev: true + + /p-try@2.2.0: + resolution: {integrity: sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==} + engines: {node: '>=6'} + dev: true + + /parse-json@5.2.0: + resolution: {integrity: sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==} + engines: {node: '>=8'} + dependencies: + '@babel/code-frame': 7.23.5 + error-ex: 1.3.2 + json-parse-even-better-errors: 2.3.1 + lines-and-columns: 1.2.4 + dev: true + + /path-exists@4.0.0: + resolution: {integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==} + engines: {node: '>=8'} + dev: true + + /path-parse@1.0.7: + resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==} + dev: true + + /path-type@4.0.0: + resolution: {integrity: sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==} + engines: {node: '>=8'} + dev: true + + /picomatch@2.3.1: + resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==} + engines: {node: '>=8.6'} + dev: true + + /pify@4.0.1: + resolution: {integrity: sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==} + engines: {node: '>=6'} + dev: true + + /pkg-dir@4.2.0: + resolution: {integrity: sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==} + engines: {node: '>=8'} + dependencies: + find-up: 4.1.0 + dev: true + + /possible-typed-array-names@1.0.0: + resolution: {integrity: sha512-d7Uw+eZoloe0EHDIYoe+bQ5WXnGMOpmiZFTuMWCwpjzzkL2nTjcKiAk4hh8TjnGye2TwWOk3UXucZ+3rbmBa8Q==} + engines: {node: '>= 0.4'} + dev: true + + /preferred-pm@3.1.3: + resolution: {integrity: sha512-MkXsENfftWSRpzCzImcp4FRsCc3y1opwB73CfCNWyzMqArju2CrlMHlqB7VexKiPEOjGMbttv1r9fSCn5S610w==} + engines: {node: '>=10'} + dependencies: + find-up: 5.0.0 + find-yarn-workspace-root2: 1.2.16 + path-exists: 4.0.0 + which-pm: 2.0.0 + dev: true + + /prettier@2.8.8: + resolution: {integrity: sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==} + engines: {node: '>=10.13.0'} + hasBin: true + dev: true + + /pseudomap@1.0.2: + resolution: {integrity: sha512-b/YwNhb8lk1Zz2+bXXpS/LK9OisiZZ1SNsSLxN1x2OXVEhW2Ckr/7mWE5vrC1ZTiJlD9g19jWszTmJsB+oEpFQ==} + dev: true + + /queue-microtask@1.2.3: + resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==} + dev: true + + /quick-lru@4.0.1: + resolution: {integrity: sha512-ARhCpm70fzdcvNQfPoy49IaanKkTlRWF2JMzqhcJbhSFRZv7nPTvZJdcY7301IPmvW+/p0RgIWnQDLJxifsQ7g==} + engines: {node: '>=8'} + dev: true + + /read-pkg-up@7.0.1: + resolution: {integrity: sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==} + engines: {node: '>=8'} + dependencies: + find-up: 4.1.0 + read-pkg: 5.2.0 + type-fest: 0.8.1 + dev: true + + /read-pkg@5.2.0: + resolution: {integrity: sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==} + engines: {node: '>=8'} + dependencies: + '@types/normalize-package-data': 2.4.4 + normalize-package-data: 2.5.0 + parse-json: 5.2.0 + type-fest: 0.6.0 + dev: true + + /read-yaml-file@1.1.0: + resolution: {integrity: sha512-VIMnQi/Z4HT2Fxuwg5KrY174U1VdUIASQVWXXyqtNRtxSr9IYkn1rsI6Tb6HsrHCmB7gVpNwX6JxPTHcH6IoTA==} + engines: {node: '>=6'} + dependencies: + graceful-fs: 4.2.11 + js-yaml: 3.14.1 + pify: 4.0.1 + strip-bom: 3.0.0 + dev: true + + /redent@3.0.0: + resolution: {integrity: sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg==} + engines: {node: '>=8'} + dependencies: + indent-string: 4.0.0 + strip-indent: 3.0.0 + dev: true + + /regenerator-runtime@0.14.1: + resolution: {integrity: sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==} + dev: true + + /regexp.prototype.flags@1.5.2: + resolution: {integrity: sha512-NcDiDkTLuPR+++OCKB0nWafEmhg/Da8aUPLPMQbK+bxKKCm1/S5he+AqYa4PlMCVBalb4/yxIRub6qkEx5yJbw==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.7 + define-properties: 1.2.1 + es-errors: 1.3.0 + set-function-name: 2.0.2 + dev: true + + /require-directory@2.1.1: + resolution: {integrity: sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==} + engines: {node: '>=0.10.0'} + dev: true + + /require-main-filename@2.0.0: + resolution: {integrity: sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==} + dev: true + + /resolve-from@5.0.0: + resolution: {integrity: sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==} + engines: {node: '>=8'} + dev: true + + /resolve@1.22.8: + resolution: {integrity: sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==} + hasBin: true + dependencies: + is-core-module: 2.13.1 + path-parse: 1.0.7 + supports-preserve-symlinks-flag: 1.0.0 + dev: true + + /reusify@1.0.4: + resolution: {integrity: sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==} + engines: {iojs: '>=1.0.0', node: '>=0.10.0'} + dev: true + + /run-parallel@1.2.0: + resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==} + dependencies: + queue-microtask: 1.2.3 + dev: true + + /safe-array-concat@1.1.0: + resolution: {integrity: sha512-ZdQ0Jeb9Ofti4hbt5lX3T2JcAamT9hfzYU1MNB+z/jaEbB6wfFfPIR/zEORmZqobkCCJhSjodobH6WHNmJ97dg==} + engines: {node: '>=0.4'} + dependencies: + call-bind: 1.0.7 + get-intrinsic: 1.2.4 + has-symbols: 1.0.3 + isarray: 2.0.5 + dev: true + + /safe-regex-test@1.0.3: + resolution: {integrity: sha512-CdASjNJPvRa7roO6Ra/gLYBTzYzzPyyBXxIMdGW3USQLyjWEls2RgW5UBTXaQVp+OrpeCK3bLem8smtmheoRuw==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.7 + es-errors: 1.3.0 + is-regex: 1.1.4 + dev: true + + /safer-buffer@2.1.2: + resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==} + dev: true + + /semver@5.7.2: + resolution: {integrity: sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==} + hasBin: true + dev: true + + /semver@7.6.0: + resolution: {integrity: sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==} + engines: {node: '>=10'} + hasBin: true + dependencies: + lru-cache: 6.0.0 + dev: true + + /set-blocking@2.0.0: + resolution: {integrity: sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==} + dev: true + + /set-function-length@1.2.1: + resolution: {integrity: sha512-j4t6ccc+VsKwYHso+kElc5neZpjtq9EnRICFZtWyBsLojhmeF/ZBd/elqm22WJh/BziDe/SBiOeAt0m2mfLD0g==} + engines: {node: '>= 0.4'} + dependencies: + define-data-property: 1.1.4 + es-errors: 1.3.0 + function-bind: 1.1.2 + get-intrinsic: 1.2.4 + gopd: 1.0.1 + has-property-descriptors: 1.0.2 + dev: true + + /set-function-name@2.0.2: + resolution: {integrity: sha512-7PGFlmtwsEADb0WYyvCMa1t+yke6daIG4Wirafur5kcf+MhUnPms1UeR0CKQdTZD81yESwMHbtn+TR+dMviakQ==} + engines: {node: '>= 0.4'} + dependencies: + define-data-property: 1.1.4 + es-errors: 1.3.0 + functions-have-names: 1.2.3 + has-property-descriptors: 1.0.2 + dev: true + + /shebang-command@1.2.0: + resolution: {integrity: sha512-EV3L1+UQWGor21OmnvojK36mhg+TyIKDh3iFBKBohr5xeXIhNBcx8oWdgkTEEQ+BEFFYdLRuqMfd5L84N1V5Vg==} + engines: {node: '>=0.10.0'} + dependencies: + shebang-regex: 1.0.0 + dev: true + + /shebang-regex@1.0.0: + resolution: {integrity: sha512-wpoSFAxys6b2a2wHZ1XpDSgD7N9iVjg29Ph9uV/uaP9Ex/KXlkTZTeddxDPSYQpgvzKLGJke2UU0AzoGCjNIvQ==} + engines: {node: '>=0.10.0'} + dev: true + + /side-channel@1.0.6: + resolution: {integrity: sha512-fDW/EZ6Q9RiO8eFG8Hj+7u/oW+XrPTIChwCOM2+th2A6OblDtYYIpve9m+KvI9Z4C9qSEXlaGR6bTEYHReuglA==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.7 + es-errors: 1.3.0 + get-intrinsic: 1.2.4 + object-inspect: 1.13.1 + dev: true + + /signal-exit@3.0.7: + resolution: {integrity: sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==} + dev: true + + /slash@3.0.0: + resolution: {integrity: sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==} + engines: {node: '>=8'} + dev: true + + /smartwrap@2.0.2: + resolution: {integrity: sha512-vCsKNQxb7PnCNd2wY1WClWifAc2lwqsG8OaswpJkVJsvMGcnEntdTCDajZCkk93Ay1U3t/9puJmb525Rg5MZBA==} + engines: {node: '>=6'} + hasBin: true + dependencies: + array.prototype.flat: 1.3.2 + breakword: 1.0.6 + grapheme-splitter: 1.0.4 + strip-ansi: 6.0.1 + wcwidth: 1.0.1 + yargs: 15.4.1 + dev: true + + /spawndamnit@2.0.0: + resolution: {integrity: sha512-j4JKEcncSjFlqIwU5L/rp2N5SIPsdxaRsIv678+TZxZ0SRDJTm8JrxJMjE/XuiEZNEir3S8l0Fa3Ke339WI4qA==} + dependencies: + cross-spawn: 5.1.0 + signal-exit: 3.0.7 + dev: true + + /spdx-correct@3.2.0: + resolution: {integrity: sha512-kN9dJbvnySHULIluDHy32WHRUu3Og7B9sbY7tsFLctQkIqnMh3hErYgdMjTYuqmcXX+lK5T1lnUt3G7zNswmZA==} + dependencies: + spdx-expression-parse: 3.0.1 + spdx-license-ids: 3.0.17 + dev: true + + /spdx-exceptions@2.5.0: + resolution: {integrity: sha512-PiU42r+xO4UbUS1buo3LPJkjlO7430Xn5SVAhdpzzsPHsjbYVflnnFdATgabnLude+Cqu25p6N+g2lw/PFsa4w==} + dev: true + + /spdx-expression-parse@3.0.1: + resolution: {integrity: sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==} + dependencies: + spdx-exceptions: 2.5.0 + spdx-license-ids: 3.0.17 + dev: true + + /spdx-license-ids@3.0.17: + resolution: {integrity: sha512-sh8PWc/ftMqAAdFiBu6Fy6JUOYjqDJBJvIhpfDMyHrr0Rbp5liZqd4TjtQ/RgfLjKFZb+LMx5hpml5qOWy0qvg==} + dev: true + + /sprintf-js@1.0.3: + resolution: {integrity: sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==} + dev: true + + /stream-transform@2.1.3: + resolution: {integrity: sha512-9GHUiM5hMiCi6Y03jD2ARC1ettBXkQBoQAe7nJsPknnI0ow10aXjTnew8QtYQmLjzn974BnmWEAJgCY6ZP1DeQ==} + dependencies: + mixme: 0.5.10 + dev: true + + /string-width@4.2.3: + resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==} + engines: {node: '>=8'} + dependencies: + emoji-regex: 8.0.0 + is-fullwidth-code-point: 3.0.0 + strip-ansi: 6.0.1 + dev: true + + /string.prototype.trim@1.2.8: + resolution: {integrity: sha512-lfjY4HcixfQXOfaqCvcBuOIapyaroTXhbkfJN3gcB1OtyupngWK4sEET9Knd0cXd28kTUqu/kHoV4HKSJdnjiQ==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.7 + define-properties: 1.2.1 + es-abstract: 1.22.5 + dev: true + + /string.prototype.trimend@1.0.7: + resolution: {integrity: sha512-Ni79DqeB72ZFq1uH/L6zJ+DKZTkOtPIHovb3YZHQViE+HDouuU4mBrLOLDn5Dde3RF8qw5qVETEjhu9locMLvA==} + dependencies: + call-bind: 1.0.7 + define-properties: 1.2.1 + es-abstract: 1.22.5 + dev: true + + /string.prototype.trimstart@1.0.7: + resolution: {integrity: sha512-NGhtDFu3jCEm7B4Fy0DpLewdJQOZcQ0rGbwQ/+stjnrp2i+rlKeCvos9hOIeCmqwratM47OBxY7uFZzjxHXmrg==} + dependencies: + call-bind: 1.0.7 + define-properties: 1.2.1 + es-abstract: 1.22.5 + dev: true + + /strip-ansi@6.0.1: + resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==} + engines: {node: '>=8'} + dependencies: + ansi-regex: 5.0.1 + dev: true + + /strip-bom@3.0.0: + resolution: {integrity: sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==} + engines: {node: '>=4'} + dev: true + + /strip-indent@3.0.0: + resolution: {integrity: sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==} + engines: {node: '>=8'} + dependencies: + min-indent: 1.0.1 + dev: true + + /supports-color@5.5.0: + resolution: {integrity: sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==} + engines: {node: '>=4'} + dependencies: + has-flag: 3.0.0 + dev: true + + /supports-color@7.2.0: + resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==} + engines: {node: '>=8'} + dependencies: + has-flag: 4.0.0 + dev: true + + /supports-preserve-symlinks-flag@1.0.0: + resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==} + engines: {node: '>= 0.4'} + dev: true + + /term-size@2.2.1: + resolution: {integrity: sha512-wK0Ri4fOGjv/XPy8SBHZChl8CM7uMc5VML7SqiQ0zG7+J5Vr+RMQDoHa2CNT6KHUnTGIXH34UDMkPzAUyapBZg==} + engines: {node: '>=8'} + dev: true + + /tmp@0.0.33: + resolution: {integrity: sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==} + engines: {node: '>=0.6.0'} + dependencies: + os-tmpdir: 1.0.2 + dev: true + + /to-regex-range@5.0.1: + resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} + engines: {node: '>=8.0'} + dependencies: + is-number: 7.0.0 + dev: true + + /tr46@0.0.3: + resolution: {integrity: sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==} + dev: true + + /trim-newlines@3.0.1: + resolution: {integrity: sha512-c1PTsA3tYrIsLGkJkzHF+w9F2EyxfXGo4UyJc4pFL++FMjnq0HJS69T3M7d//gKrFKwy429bouPescbjecU+Zw==} + engines: {node: '>=8'} + dev: true + + /tty-table@4.2.3: + resolution: {integrity: sha512-Fs15mu0vGzCrj8fmJNP7Ynxt5J7praPXqFN0leZeZBXJwkMxv9cb2D454k1ltrtUSJbZ4yH4e0CynsHLxmUfFA==} + engines: {node: '>=8.0.0'} + hasBin: true + dependencies: + chalk: 4.1.2 + csv: 5.5.3 + kleur: 4.1.5 + smartwrap: 2.0.2 + strip-ansi: 6.0.1 + wcwidth: 1.0.1 + yargs: 17.7.2 + dev: true + + /type-fest@0.13.1: + resolution: {integrity: sha512-34R7HTnG0XIJcBSn5XhDd7nNFPRcXYRZrBB2O2jdKqYODldSzBAqzsWoZYYvduky73toYS/ESqxPvkDf/F0XMg==} + engines: {node: '>=10'} + dev: true + + /type-fest@0.6.0: + resolution: {integrity: sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==} + engines: {node: '>=8'} + dev: true + + /type-fest@0.8.1: + resolution: {integrity: sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==} + engines: {node: '>=8'} + dev: true + + /typed-array-buffer@1.0.2: + resolution: {integrity: sha512-gEymJYKZtKXzzBzM4jqa9w6Q1Jjm7x2d+sh19AdsD4wqnMPDYyvwpsIc2Q/835kHuo3BEQ7CjelGhfTsoBb2MQ==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.7 + es-errors: 1.3.0 + is-typed-array: 1.1.13 + dev: true + + /typed-array-byte-length@1.0.1: + resolution: {integrity: sha512-3iMJ9q0ao7WE9tWcaYKIptkNBuOIcZCCT0d4MRvuuH88fEoEH62IuQe0OtraD3ebQEoTRk8XCBoknUNc1Y67pw==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.7 + for-each: 0.3.3 + gopd: 1.0.1 + has-proto: 1.0.3 + is-typed-array: 1.1.13 + dev: true + + /typed-array-byte-offset@1.0.2: + resolution: {integrity: sha512-Ous0vodHa56FviZucS2E63zkgtgrACj7omjwd/8lTEMEPFFyjfixMZ1ZXenpgCFBBt4EC1J2XsyVS2gkG0eTFA==} + engines: {node: '>= 0.4'} + dependencies: + available-typed-arrays: 1.0.7 + call-bind: 1.0.7 + for-each: 0.3.3 + gopd: 1.0.1 + has-proto: 1.0.3 + is-typed-array: 1.1.13 + dev: true + + /typed-array-length@1.0.5: + resolution: {integrity: sha512-yMi0PlwuznKHxKmcpoOdeLwxBoVPkqZxd7q2FgMkmD3bNwvF5VW0+UlUQ1k1vmktTu4Yu13Q0RIxEP8+B+wloA==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.7 + for-each: 0.3.3 + gopd: 1.0.1 + has-proto: 1.0.3 + is-typed-array: 1.1.13 + possible-typed-array-names: 1.0.0 + dev: true + + /unbox-primitive@1.0.2: + resolution: {integrity: sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==} + dependencies: + call-bind: 1.0.7 + has-bigints: 1.0.2 + has-symbols: 1.0.3 + which-boxed-primitive: 1.0.2 + dev: true + + /universalify@0.1.2: + resolution: {integrity: sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==} + engines: {node: '>= 4.0.0'} + dev: true + + /validate-npm-package-license@3.0.4: + resolution: {integrity: sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==} + dependencies: + spdx-correct: 3.2.0 + spdx-expression-parse: 3.0.1 + dev: true + + /wcwidth@1.0.1: + resolution: {integrity: sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg==} + dependencies: + defaults: 1.0.4 + dev: true + + /webidl-conversions@3.0.1: + resolution: {integrity: sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==} + dev: true + + /whatwg-url@5.0.0: + resolution: {integrity: sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==} + dependencies: + tr46: 0.0.3 + webidl-conversions: 3.0.1 + dev: true + + /which-boxed-primitive@1.0.2: + resolution: {integrity: sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==} + dependencies: + is-bigint: 1.0.4 + is-boolean-object: 1.1.2 + is-number-object: 1.0.7 + is-string: 1.0.7 + is-symbol: 1.0.4 + dev: true + + /which-module@2.0.1: + resolution: {integrity: sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ==} + dev: true + + /which-pm@2.0.0: + resolution: {integrity: sha512-Lhs9Pmyph0p5n5Z3mVnN0yWcbQYUAD7rbQUiMsQxOJ3T57k7RFe35SUwWMf7dsbDZks1uOmw4AecB/JMDj3v/w==} + engines: {node: '>=8.15'} + dependencies: + load-yaml-file: 0.2.0 + path-exists: 4.0.0 + dev: true + + /which-typed-array@1.1.14: + resolution: {integrity: sha512-VnXFiIW8yNn9kIHN88xvZ4yOWchftKDsRJ8fEPacX/wl1lOvBrhsJ/OeJCXq7B0AaijRuqgzSKalJoPk+D8MPg==} + engines: {node: '>= 0.4'} + dependencies: + available-typed-arrays: 1.0.7 + call-bind: 1.0.7 + for-each: 0.3.3 + gopd: 1.0.1 + has-tostringtag: 1.0.2 + dev: true + + /which@1.3.1: + resolution: {integrity: sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==} + hasBin: true + dependencies: + isexe: 2.0.0 + dev: true + + /wrap-ansi@6.2.0: + resolution: {integrity: sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==} + engines: {node: '>=8'} + dependencies: + ansi-styles: 4.3.0 + string-width: 4.2.3 + strip-ansi: 6.0.1 + dev: true + + /wrap-ansi@7.0.0: + resolution: {integrity: sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==} + engines: {node: '>=10'} + dependencies: + ansi-styles: 4.3.0 + string-width: 4.2.3 + strip-ansi: 6.0.1 + dev: true + + /y18n@4.0.3: + resolution: {integrity: sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==} + dev: true + + /y18n@5.0.8: + resolution: {integrity: sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==} + engines: {node: '>=10'} + dev: true + + /yallist@2.1.2: + resolution: {integrity: sha512-ncTzHV7NvsQZkYe1DW7cbDLm0YpzHmZF5r/iyP3ZnQtMiJ+pjzisCiMNI+Sj+xQF5pXhSHxSB3uDbsBTzY/c2A==} + dev: true + + /yallist@4.0.0: + resolution: {integrity: sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==} + dev: true + + /yargs-parser@18.1.3: + resolution: {integrity: sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==} + engines: {node: '>=6'} + dependencies: + camelcase: 5.3.1 + decamelize: 1.2.0 + dev: true + + /yargs-parser@21.1.1: + resolution: {integrity: sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==} + engines: {node: '>=12'} + dev: true + + /yargs@15.4.1: + resolution: {integrity: sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==} + engines: {node: '>=8'} + dependencies: + cliui: 6.0.0 + decamelize: 1.2.0 + find-up: 4.1.0 + get-caller-file: 2.0.5 + require-directory: 2.1.1 + require-main-filename: 2.0.0 + set-blocking: 2.0.0 + string-width: 4.2.3 + which-module: 2.0.1 + y18n: 4.0.3 + yargs-parser: 18.1.3 + dev: true + + /yargs@17.7.2: + resolution: {integrity: sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==} + engines: {node: '>=12'} + dependencies: + cliui: 8.0.1 + escalade: 3.1.2 + get-caller-file: 2.0.5 + require-directory: 2.1.1 + string-width: 4.2.3 + y18n: 5.0.8 + yargs-parser: 21.1.1 + dev: true + + /yocto-queue@0.1.0: + resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==} + engines: {node: '>=10'} + dev: true diff --git a/infra/link.proto b/protobufs/infra/link.proto similarity index 100% rename from infra/link.proto rename to protobufs/infra/link.proto diff --git a/livekit_agent.proto b/protobufs/livekit_agent.proto similarity index 100% rename from livekit_agent.proto rename to protobufs/livekit_agent.proto diff --git a/livekit_analytics.proto b/protobufs/livekit_analytics.proto similarity index 100% rename from livekit_analytics.proto rename to protobufs/livekit_analytics.proto diff --git a/livekit_egress.proto b/protobufs/livekit_egress.proto similarity index 100% rename from livekit_egress.proto rename to protobufs/livekit_egress.proto diff --git a/livekit_ingress.proto b/protobufs/livekit_ingress.proto similarity index 100% rename from livekit_ingress.proto rename to protobufs/livekit_ingress.proto diff --git a/livekit_internal.proto b/protobufs/livekit_internal.proto similarity index 100% rename from livekit_internal.proto rename to protobufs/livekit_internal.proto diff --git a/livekit_models.proto b/protobufs/livekit_models.proto similarity index 100% rename from livekit_models.proto rename to protobufs/livekit_models.proto diff --git a/livekit_room.proto b/protobufs/livekit_room.proto similarity index 100% rename from livekit_room.proto rename to protobufs/livekit_room.proto diff --git a/livekit_rtc.proto b/protobufs/livekit_rtc.proto similarity index 100% rename from livekit_rtc.proto rename to protobufs/livekit_rtc.proto diff --git a/livekit_sip.proto b/protobufs/livekit_sip.proto similarity index 100% rename from livekit_sip.proto rename to protobufs/livekit_sip.proto diff --git a/livekit_webhook.proto b/protobufs/livekit_webhook.proto similarity index 100% rename from livekit_webhook.proto rename to protobufs/livekit_webhook.proto diff --git a/rpc/agent.proto b/protobufs/rpc/agent.proto similarity index 100% rename from rpc/agent.proto rename to protobufs/rpc/agent.proto diff --git a/rpc/egress.proto b/protobufs/rpc/egress.proto similarity index 100% rename from rpc/egress.proto rename to protobufs/rpc/egress.proto diff --git a/rpc/ingress.proto b/protobufs/rpc/ingress.proto similarity index 100% rename from rpc/ingress.proto rename to protobufs/rpc/ingress.proto diff --git a/rpc/io.proto b/protobufs/rpc/io.proto similarity index 100% rename from rpc/io.proto rename to protobufs/rpc/io.proto diff --git a/rpc/keepalive.proto b/protobufs/rpc/keepalive.proto similarity index 100% rename from rpc/keepalive.proto rename to protobufs/rpc/keepalive.proto diff --git a/rpc/participant.proto b/protobufs/rpc/participant.proto similarity index 100% rename from rpc/participant.proto rename to protobufs/rpc/participant.proto diff --git a/rpc/room.proto b/protobufs/rpc/room.proto similarity index 100% rename from rpc/room.proto rename to protobufs/rpc/room.proto diff --git a/rpc/signal.proto b/protobufs/rpc/signal.proto similarity index 100% rename from rpc/signal.proto rename to protobufs/rpc/signal.proto diff --git a/rpc/sip.proto b/protobufs/rpc/sip.proto similarity index 100% rename from rpc/sip.proto rename to protobufs/rpc/sip.proto From 4bcc38eb06dde2f4515bfe0d963deb83b5892cff Mon Sep 17 00:00:00 2001 From: lukasIO Date: Wed, 6 Mar 2024 12:15:22 +0100 Subject: [PATCH 02/17] update generate workflow --- .github/workflows/generate.yaml | 16 +++++++++------- pnpm-workspace.yaml | 2 ++ 2 files changed, 11 insertions(+), 7 deletions(-) create mode 100644 pnpm-workspace.yaml diff --git a/.github/workflows/generate.yaml b/.github/workflows/generate.yaml index 86d90e05..7684ec75 100644 --- a/.github/workflows/generate.yaml +++ b/.github/workflows/generate.yaml @@ -37,18 +37,20 @@ jobs: - name: Go mod tidy run: go mod tidy + working-directory: ./packages/golang - name: Install generators uses: magefile/mage-action@v3 with: version: latest - args: bootstrap + + - name: Bootstrap + run: mage bootstrap + working-directory: ./packages/golang - name: Generate Protobuf - uses: magefile/mage-action@v3 - with: - version: latest - args: proto + run: mage proto + working-directory: ./packages/golang - uses: pnpm/action-setup@v2 with: @@ -65,10 +67,10 @@ jobs: run: pnpm install - name: Generate JS files run: | - pnpm generate:proto + pnpm --filter @livekit/protocol run generate:proto - name: Add changes uses: EndBug/add-and-commit@v9 with: - add: '["livekit", "rpc", "infra", "packages/js"]' + add: '["packages"]' default_author: github_actions message: generated protobuf diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml new file mode 100644 index 00000000..46a22fbf --- /dev/null +++ b/pnpm-workspace.yaml @@ -0,0 +1,2 @@ +packages: + - "packages/javascript" From ed6c1ff41d65ec43d5d714abcb625d4211bb3503 Mon Sep 17 00:00:00 2001 From: lukasIO Date: Wed, 6 Mar 2024 12:17:06 +0100 Subject: [PATCH 03/17] install mage only --- .github/workflows/generate.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/generate.yaml b/.github/workflows/generate.yaml index 7684ec75..5d8f4678 100644 --- a/.github/workflows/generate.yaml +++ b/.github/workflows/generate.yaml @@ -43,6 +43,7 @@ jobs: uses: magefile/mage-action@v3 with: version: latest + install-only: true - name: Bootstrap run: mage bootstrap @@ -61,8 +62,7 @@ jobs: node-version: 20 cache: "pnpm" cache-dependency-path: "packages/js/pnpm-lock.yaml" - - name: Install Protoc - uses: arduino/setup-protoc@v3 + - name: Install dependencies run: pnpm install - name: Generate JS files From 64dd945b6811eda6c80da1553d82456d4cbb4ecb Mon Sep 17 00:00:00 2001 From: lukasIO Date: Wed, 6 Mar 2024 12:19:20 +0100 Subject: [PATCH 04/17] fix paths --- .github/workflows/generate.yaml | 1 - packages/javascript/pnpm-lock.yaml | 283 ----------------------------- pnpm-lock.yaml | 255 +++++++++++++++++++++++++- 3 files changed, 248 insertions(+), 291 deletions(-) delete mode 100644 packages/javascript/pnpm-lock.yaml diff --git a/.github/workflows/generate.yaml b/.github/workflows/generate.yaml index 5d8f4678..84c02777 100644 --- a/.github/workflows/generate.yaml +++ b/.github/workflows/generate.yaml @@ -61,7 +61,6 @@ jobs: with: node-version: 20 cache: "pnpm" - cache-dependency-path: "packages/js/pnpm-lock.yaml" - name: Install dependencies run: pnpm install diff --git a/packages/javascript/pnpm-lock.yaml b/packages/javascript/pnpm-lock.yaml deleted file mode 100644 index fd0792c9..00000000 --- a/packages/javascript/pnpm-lock.yaml +++ /dev/null @@ -1,283 +0,0 @@ -lockfileVersion: '6.0' - -settings: - autoInstallPeers: true - excludeLinksFromLockfile: false - -dependencies: - '@bufbuild/protobuf': - specifier: ^1.7.2 - version: 1.7.2 - -devDependencies: - '@bufbuild/buf': - specifier: ^1.29.0 - version: 1.29.0 - '@bufbuild/protoc-gen-es': - specifier: ^1.7.2 - version: 1.7.2(@bufbuild/protobuf@1.7.2) - genversion: - specifier: ^3.2.0 - version: 3.2.0 - -packages: - - /@bufbuild/buf-darwin-arm64@1.29.0: - resolution: {integrity: sha512-5hKxsARoY2WpWq1n5ONFqqGuauHb4yILKXCy37KRYCKiRLWmIP5yI3gWvWHKoH7sUJWTQmBqdJoCvYQr6ahQnw==} - engines: {node: '>=12'} - cpu: [arm64] - os: [darwin] - requiresBuild: true - dev: true - optional: true - - /@bufbuild/buf-darwin-x64@1.29.0: - resolution: {integrity: sha512-wOAPxbPLBns4AHiComWtdO1sx1J1p6mDYTbqmloHuI+B5U2rDbMsoHoe4nBcoMF8+RHxoqjypha29wVo6yzbZg==} - engines: {node: '>=12'} - cpu: [x64] - os: [darwin] - requiresBuild: true - dev: true - optional: true - - /@bufbuild/buf-linux-aarch64@1.29.0: - resolution: {integrity: sha512-jLk2J/wyyM7KNJ/DkLfhy3eS2/Bdb70e/56adMkapSoLJmghnpgxW+oFznMxxQUX5I9BU5hTn1UhDFxgLwhP7g==} - engines: {node: '>=12'} - cpu: [arm64] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@bufbuild/buf-linux-x64@1.29.0: - resolution: {integrity: sha512-heLOywj3Oaoh69RnTx7tHsuz6rEnvz77bghLEOghsrjBR6Jcpcwc137EZR4kRTIWJNrE8Kmo3RVeXlv144qQIQ==} - engines: {node: '>=12'} - cpu: [x64] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@bufbuild/buf-win32-arm64@1.29.0: - resolution: {integrity: sha512-Eglyvr3PLqVucuHBcQ61conyBgH9BRaoLpKWcce1gYBVlxMQM1NxjVjGOWihxQ1dXXw5qZXmYfVODf3gSwPMuQ==} - engines: {node: '>=12'} - cpu: [arm64] - os: [win32] - requiresBuild: true - dev: true - optional: true - - /@bufbuild/buf-win32-x64@1.29.0: - resolution: {integrity: sha512-wRk6co+nqHqEq4iLolXgej0jUVlWlTtGHjKaq54lTbKZrwxrBgql6qS06abgNPRASX0++XT9m3QRZ97qEIC/HQ==} - engines: {node: '>=12'} - cpu: [x64] - os: [win32] - requiresBuild: true - dev: true - optional: true - - /@bufbuild/buf@1.29.0: - resolution: {integrity: sha512-euksXeFtvlvAV5j94LqXb69qQcJvFfo8vN1d3cx+IzhOKoipykuQQTq7mOWVo2R0kdk6yIMBLBofOYOsh0Df8g==} - engines: {node: '>=12'} - hasBin: true - requiresBuild: true - optionalDependencies: - '@bufbuild/buf-darwin-arm64': 1.29.0 - '@bufbuild/buf-darwin-x64': 1.29.0 - '@bufbuild/buf-linux-aarch64': 1.29.0 - '@bufbuild/buf-linux-x64': 1.29.0 - '@bufbuild/buf-win32-arm64': 1.29.0 - '@bufbuild/buf-win32-x64': 1.29.0 - dev: true - - /@bufbuild/protobuf@1.7.2: - resolution: {integrity: sha512-i5GE2Dk5ekdlK1TR7SugY4LWRrKSfb5T1Qn4unpIMbfxoeGKERKQ59HG3iYewacGD10SR7UzevfPnh6my4tNmQ==} - - /@bufbuild/protoc-gen-es@1.7.2(@bufbuild/protobuf@1.7.2): - resolution: {integrity: sha512-yiRk/T+YGmpSVvIkybCjPt+QyM/pLWMO+MAiz6auvCsiAgfXfc5nFFosD4yBYXID55M6eIkgBcity1AoJ6I30A==} - engines: {node: '>=14'} - hasBin: true - peerDependencies: - '@bufbuild/protobuf': 1.7.2 - peerDependenciesMeta: - '@bufbuild/protobuf': - optional: true - dependencies: - '@bufbuild/protobuf': 1.7.2 - '@bufbuild/protoplugin': 1.7.2 - transitivePeerDependencies: - - supports-color - dev: true - - /@bufbuild/protoplugin@1.7.2: - resolution: {integrity: sha512-N3QtO8XWD4F4alMtASWtxBw6BWXp4aLz7rPBXH4KTULdjpUHnq46g15TsrG0/8szZw6pIklTO3lFe14dl6ZYdA==} - dependencies: - '@bufbuild/protobuf': 1.7.2 - '@typescript/vfs': 1.5.0 - typescript: 4.5.2 - transitivePeerDependencies: - - supports-color - dev: true - - /@typescript/vfs@1.5.0: - resolution: {integrity: sha512-AJS307bPgbsZZ9ggCT3wwpg3VbTKMFNHfaY/uF0ahSkYYrPF2dSSKDNIDIQAHm9qJqbLvCsSJH7yN4Vs/CsMMg==} - dependencies: - debug: 4.3.4 - transitivePeerDependencies: - - supports-color - dev: true - - /ansi-styles@4.3.0: - resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==} - engines: {node: '>=8'} - dependencies: - color-convert: 2.0.1 - dev: true - - /async@3.2.5: - resolution: {integrity: sha512-baNZyqaaLhyLVKm/DlvdW051MSgO6b8eVfIezl9E5PqWxFgzLm/wQntEW4zOytVburDEr0JlALEpdOFwvErLsg==} - dev: true - - /balanced-match@1.0.2: - resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} - dev: true - - /brace-expansion@1.1.11: - resolution: {integrity: sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==} - dependencies: - balanced-match: 1.0.2 - concat-map: 0.0.1 - dev: true - - /brace-expansion@2.0.1: - resolution: {integrity: sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==} - dependencies: - balanced-match: 1.0.2 - dev: true - - /chalk@4.1.2: - resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==} - engines: {node: '>=10'} - dependencies: - ansi-styles: 4.3.0 - supports-color: 7.2.0 - dev: true - - /color-convert@2.0.1: - resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==} - engines: {node: '>=7.0.0'} - dependencies: - color-name: 1.1.4 - dev: true - - /color-name@1.1.4: - resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==} - dev: true - - /commander@7.2.0: - resolution: {integrity: sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==} - engines: {node: '>= 10'} - dev: true - - /concat-map@0.0.1: - resolution: {integrity: sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=} - dev: true - - /debug@4.3.4: - resolution: {integrity: sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==} - engines: {node: '>=6.0'} - peerDependencies: - supports-color: '*' - peerDependenciesMeta: - supports-color: - optional: true - dependencies: - ms: 2.1.2 - dev: true - - /ejs@3.1.9: - resolution: {integrity: sha512-rC+QVNMJWv+MtPgkt0y+0rVEIdbtxVADApW9JXrUVlzHetgcyczP/E7DJmWJ4fJCZF2cPcBk0laWO9ZHMG3DmQ==} - engines: {node: '>=0.10.0'} - hasBin: true - dependencies: - jake: 10.8.7 - dev: true - - /filelist@1.0.4: - resolution: {integrity: sha512-w1cEuf3S+DrLCQL7ET6kz+gmlJdbq9J7yXCSjK/OZCPA+qEN1WyF4ZAf0YYJa4/shHJra2t/d/r8SV4Ji+x+8Q==} - dependencies: - minimatch: 5.1.6 - dev: true - - /find-package@1.0.0: - resolution: {integrity: sha512-yVn71XCCaNgxz58ERTl8nA/8YYtIQDY9mHSrgFBfiFtdNNfY0h183Vh8BRkKxD8x9TUw3ec290uJKhDVxqGZBw==} - dependencies: - parents: 1.0.1 - dev: true - - /genversion@3.2.0: - resolution: {integrity: sha512-OIYSX6XYA8PHecLDCTri30hadSZfAjZ8Iq1+BBDXqLWP4dRLuJNLoNjsSWtTpw97IccK2LDWzkEstxAB8GdN7g==} - engines: {node: '>=10.0.0'} - hasBin: true - dependencies: - commander: 7.2.0 - ejs: 3.1.9 - find-package: 1.0.0 - dev: true - - /has-flag@4.0.0: - resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==} - engines: {node: '>=8'} - dev: true - - /jake@10.8.7: - resolution: {integrity: sha512-ZDi3aP+fG/LchyBzUM804VjddnwfSfsdeYkwt8NcbKRvo4rFkjhs456iLFn3k2ZUWvNe4i48WACDbza8fhq2+w==} - engines: {node: '>=10'} - hasBin: true - dependencies: - async: 3.2.5 - chalk: 4.1.2 - filelist: 1.0.4 - minimatch: 3.1.2 - dev: true - - /minimatch@3.1.2: - resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==} - dependencies: - brace-expansion: 1.1.11 - dev: true - - /minimatch@5.1.6: - resolution: {integrity: sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==} - engines: {node: '>=10'} - dependencies: - brace-expansion: 2.0.1 - dev: true - - /ms@2.1.2: - resolution: {integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==} - dev: true - - /parents@1.0.1: - resolution: {integrity: sha512-mXKF3xkoUt5td2DoxpLmtOmZvko9VfFpwRwkKDHSNvgmpLAeBo18YDhcPbBzJq+QLCHMbGOfzia2cX4U+0v9Mg==} - dependencies: - path-platform: 0.11.15 - dev: true - - /path-platform@0.11.15: - resolution: {integrity: sha512-Y30dB6rab1A/nfEKsZxmr01nUotHX0c/ZiIAsCTatEe1CmS5Pm5He7fZ195bPT7RdquoaL8lLxFCMQi/bS7IJg==} - engines: {node: '>= 0.8.0'} - dev: true - - /supports-color@7.2.0: - resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==} - engines: {node: '>=8'} - dependencies: - has-flag: 4.0.0 - dev: true - - /typescript@4.5.2: - resolution: {integrity: sha512-5BlMof9H1yGt0P8/WF+wPNw6GfctgGjXp5hkblpyT+8rkASSmkUKMXrxR0Xg8ThVCi/JnHQiKXeBaEwCeQwMFw==} - engines: {node: '>=4.2.0'} - hasBin: true - dev: true diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 20215fbe..75c231b6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -4,13 +4,32 @@ settings: autoInstallPeers: true excludeLinksFromLockfile: false -devDependencies: - '@changesets/cli': - specifier: ^2.27.1 - version: 2.27.1 - '@livekit/changesets-changelog-github': - specifier: ^0.0.4 - version: 0.0.4 +importers: + + .: + devDependencies: + '@changesets/cli': + specifier: ^2.27.1 + version: 2.27.1 + '@livekit/changesets-changelog-github': + specifier: ^0.0.4 + version: 0.0.4 + + packages/javascript: + dependencies: + '@bufbuild/protobuf': + specifier: ^1.7.2 + version: 1.7.2 + devDependencies: + '@bufbuild/buf': + specifier: ^1.29.0 + version: 1.29.0 + '@bufbuild/protoc-gen-es': + specifier: ^1.7.2 + version: 1.7.2(@bufbuild/protobuf@1.7.2) + genversion: + specifier: ^3.2.0 + version: 3.2.0 packages: @@ -43,6 +62,103 @@ packages: regenerator-runtime: 0.14.1 dev: true + /@bufbuild/buf-darwin-arm64@1.29.0: + resolution: {integrity: sha512-5hKxsARoY2WpWq1n5ONFqqGuauHb4yILKXCy37KRYCKiRLWmIP5yI3gWvWHKoH7sUJWTQmBqdJoCvYQr6ahQnw==} + engines: {node: '>=12'} + cpu: [arm64] + os: [darwin] + requiresBuild: true + dev: true + optional: true + + /@bufbuild/buf-darwin-x64@1.29.0: + resolution: {integrity: sha512-wOAPxbPLBns4AHiComWtdO1sx1J1p6mDYTbqmloHuI+B5U2rDbMsoHoe4nBcoMF8+RHxoqjypha29wVo6yzbZg==} + engines: {node: '>=12'} + cpu: [x64] + os: [darwin] + requiresBuild: true + dev: true + optional: true + + /@bufbuild/buf-linux-aarch64@1.29.0: + resolution: {integrity: sha512-jLk2J/wyyM7KNJ/DkLfhy3eS2/Bdb70e/56adMkapSoLJmghnpgxW+oFznMxxQUX5I9BU5hTn1UhDFxgLwhP7g==} + engines: {node: '>=12'} + cpu: [arm64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /@bufbuild/buf-linux-x64@1.29.0: + resolution: {integrity: sha512-heLOywj3Oaoh69RnTx7tHsuz6rEnvz77bghLEOghsrjBR6Jcpcwc137EZR4kRTIWJNrE8Kmo3RVeXlv144qQIQ==} + engines: {node: '>=12'} + cpu: [x64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /@bufbuild/buf-win32-arm64@1.29.0: + resolution: {integrity: sha512-Eglyvr3PLqVucuHBcQ61conyBgH9BRaoLpKWcce1gYBVlxMQM1NxjVjGOWihxQ1dXXw5qZXmYfVODf3gSwPMuQ==} + engines: {node: '>=12'} + cpu: [arm64] + os: [win32] + requiresBuild: true + dev: true + optional: true + + /@bufbuild/buf-win32-x64@1.29.0: + resolution: {integrity: sha512-wRk6co+nqHqEq4iLolXgej0jUVlWlTtGHjKaq54lTbKZrwxrBgql6qS06abgNPRASX0++XT9m3QRZ97qEIC/HQ==} + engines: {node: '>=12'} + cpu: [x64] + os: [win32] + requiresBuild: true + dev: true + optional: true + + /@bufbuild/buf@1.29.0: + resolution: {integrity: sha512-euksXeFtvlvAV5j94LqXb69qQcJvFfo8vN1d3cx+IzhOKoipykuQQTq7mOWVo2R0kdk6yIMBLBofOYOsh0Df8g==} + engines: {node: '>=12'} + hasBin: true + requiresBuild: true + optionalDependencies: + '@bufbuild/buf-darwin-arm64': 1.29.0 + '@bufbuild/buf-darwin-x64': 1.29.0 + '@bufbuild/buf-linux-aarch64': 1.29.0 + '@bufbuild/buf-linux-x64': 1.29.0 + '@bufbuild/buf-win32-arm64': 1.29.0 + '@bufbuild/buf-win32-x64': 1.29.0 + dev: true + + /@bufbuild/protobuf@1.7.2: + resolution: {integrity: sha512-i5GE2Dk5ekdlK1TR7SugY4LWRrKSfb5T1Qn4unpIMbfxoeGKERKQ59HG3iYewacGD10SR7UzevfPnh6my4tNmQ==} + + /@bufbuild/protoc-gen-es@1.7.2(@bufbuild/protobuf@1.7.2): + resolution: {integrity: sha512-yiRk/T+YGmpSVvIkybCjPt+QyM/pLWMO+MAiz6auvCsiAgfXfc5nFFosD4yBYXID55M6eIkgBcity1AoJ6I30A==} + engines: {node: '>=14'} + hasBin: true + peerDependencies: + '@bufbuild/protobuf': 1.7.2 + peerDependenciesMeta: + '@bufbuild/protobuf': + optional: true + dependencies: + '@bufbuild/protobuf': 1.7.2 + '@bufbuild/protoplugin': 1.7.2 + transitivePeerDependencies: + - supports-color + dev: true + + /@bufbuild/protoplugin@1.7.2: + resolution: {integrity: sha512-N3QtO8XWD4F4alMtASWtxBw6BWXp4aLz7rPBXH4KTULdjpUHnq46g15TsrG0/8szZw6pIklTO3lFe14dl6ZYdA==} + dependencies: + '@bufbuild/protobuf': 1.7.2 + '@typescript/vfs': 1.5.0 + typescript: 4.5.2 + transitivePeerDependencies: + - supports-color + dev: true + /@changesets/apply-release-plan@7.0.0: resolution: {integrity: sha512-vfi69JR416qC9hWmFGSxj7N6wA5J222XNBmezSVATPWDVPIF7gkd4d8CpbEbXmRWbVrkoli3oerGS6dcL/BGsQ==} dependencies: @@ -306,6 +422,14 @@ packages: resolution: {integrity: sha512-I8EUhyrgfLrcTkzV3TSsGyl1tSuPrEDzr0yd5m90UgNxQkyDXULk3b6MlQqTCpZpNtWe1K0hzclnZkTcLBe2UQ==} dev: true + /@typescript/vfs@1.5.0: + resolution: {integrity: sha512-AJS307bPgbsZZ9ggCT3wwpg3VbTKMFNHfaY/uF0ahSkYYrPF2dSSKDNIDIQAHm9qJqbLvCsSJH7yN4Vs/CsMMg==} + dependencies: + debug: 4.3.4 + transitivePeerDependencies: + - supports-color + dev: true + /ansi-colors@4.1.3: resolution: {integrity: sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==} engines: {node: '>=6'} @@ -378,6 +502,10 @@ packages: engines: {node: '>=0.10.0'} dev: true + /async@3.2.5: + resolution: {integrity: sha512-baNZyqaaLhyLVKm/DlvdW051MSgO6b8eVfIezl9E5PqWxFgzLm/wQntEW4zOytVburDEr0JlALEpdOFwvErLsg==} + dev: true + /available-typed-arrays@1.0.7: resolution: {integrity: sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==} engines: {node: '>= 0.4'} @@ -385,6 +513,10 @@ packages: possible-typed-array-names: 1.0.0 dev: true + /balanced-match@1.0.2: + resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} + dev: true + /better-path-resolve@1.0.0: resolution: {integrity: sha512-pbnl5XzGBdrFU/wT4jqmJVPn2B6UHPBOhzMQkY/SPUPB6QtUXtmBHBIwCbXJol93mOpGMnQyP/+BB19q04xj7g==} engines: {node: '>=4'} @@ -392,6 +524,19 @@ packages: is-windows: 1.0.2 dev: true + /brace-expansion@1.1.11: + resolution: {integrity: sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==} + dependencies: + balanced-match: 1.0.2 + concat-map: 0.0.1 + dev: true + + /brace-expansion@2.0.1: + resolution: {integrity: sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==} + dependencies: + balanced-match: 1.0.2 + dev: true + /braces@3.0.2: resolution: {integrity: sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==} engines: {node: '>=8'} @@ -499,6 +644,15 @@ packages: resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==} dev: true + /commander@7.2.0: + resolution: {integrity: sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==} + engines: {node: '>= 10'} + dev: true + + /concat-map@0.0.1: + resolution: {integrity: sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=} + dev: true + /cross-spawn@5.1.0: resolution: {integrity: sha512-pTgQJ5KC0d2hcY8eyL1IzlBPYjTkyH72XRZPnLyKus2mBfNjQs3klqbJU2VILqZryAZUt9JOb3h/mWMy23/f5A==} dependencies: @@ -533,6 +687,18 @@ packages: resolution: {integrity: sha512-68s5jYdlvasItOJnCuI2Q9s4q98g0pCyL3HrcKJu8KNugUl8ahgmZYg38ysLTgQjjXX3H8CJLkAvWrclWfcalw==} dev: true + /debug@4.3.4: + resolution: {integrity: sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==} + engines: {node: '>=6.0'} + peerDependencies: + supports-color: '*' + peerDependenciesMeta: + supports-color: + optional: true + dependencies: + ms: 2.1.2 + dev: true + /decamelize-keys@1.1.1: resolution: {integrity: sha512-WiPxgEirIV0/eIOMcnFBA3/IJZAZqKnwAwWyvvdi4lsr1WCN22nhdf/3db3DoZcUjTV2SqfzIwNyp6y2xs3nmg==} engines: {node: '>=0.10.0'} @@ -587,6 +753,14 @@ packages: engines: {node: '>=10'} dev: true + /ejs@3.1.9: + resolution: {integrity: sha512-rC+QVNMJWv+MtPgkt0y+0rVEIdbtxVADApW9JXrUVlzHetgcyczP/E7DJmWJ4fJCZF2cPcBk0laWO9ZHMG3DmQ==} + engines: {node: '>=0.10.0'} + hasBin: true + dependencies: + jake: 10.8.7 + dev: true + /emoji-regex@8.0.0: resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==} dev: true @@ -734,6 +908,12 @@ packages: reusify: 1.0.4 dev: true + /filelist@1.0.4: + resolution: {integrity: sha512-w1cEuf3S+DrLCQL7ET6kz+gmlJdbq9J7yXCSjK/OZCPA+qEN1WyF4ZAf0YYJa4/shHJra2t/d/r8SV4Ji+x+8Q==} + dependencies: + minimatch: 5.1.6 + dev: true + /fill-range@7.0.1: resolution: {integrity: sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==} engines: {node: '>=8'} @@ -741,6 +921,12 @@ packages: to-regex-range: 5.0.1 dev: true + /find-package@1.0.0: + resolution: {integrity: sha512-yVn71XCCaNgxz58ERTl8nA/8YYtIQDY9mHSrgFBfiFtdNNfY0h183Vh8BRkKxD8x9TUw3ec290uJKhDVxqGZBw==} + dependencies: + parents: 1.0.1 + dev: true + /find-up@4.1.0: resolution: {integrity: sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==} engines: {node: '>=8'} @@ -806,6 +992,16 @@ packages: resolution: {integrity: sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==} dev: true + /genversion@3.2.0: + resolution: {integrity: sha512-OIYSX6XYA8PHecLDCTri30hadSZfAjZ8Iq1+BBDXqLWP4dRLuJNLoNjsSWtTpw97IccK2LDWzkEstxAB8GdN7g==} + engines: {node: '>=10.0.0'} + hasBin: true + dependencies: + commander: 7.2.0 + ejs: 3.1.9 + find-package: 1.0.0 + dev: true + /get-caller-file@2.0.5: resolution: {integrity: sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==} engines: {node: 6.* || 8.* || >= 10.*} @@ -1099,6 +1295,17 @@ packages: resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} dev: true + /jake@10.8.7: + resolution: {integrity: sha512-ZDi3aP+fG/LchyBzUM804VjddnwfSfsdeYkwt8NcbKRvo4rFkjhs456iLFn3k2ZUWvNe4i48WACDbza8fhq2+w==} + engines: {node: '>=10'} + hasBin: true + dependencies: + async: 3.2.5 + chalk: 4.1.2 + filelist: 1.0.4 + minimatch: 3.1.2 + dev: true + /js-tokens@4.0.0: resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} dev: true @@ -1222,6 +1429,19 @@ packages: engines: {node: '>=4'} dev: true + /minimatch@3.1.2: + resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==} + dependencies: + brace-expansion: 1.1.11 + dev: true + + /minimatch@5.1.6: + resolution: {integrity: sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==} + engines: {node: '>=10'} + dependencies: + brace-expansion: 2.0.1 + dev: true + /minimist-options@4.1.0: resolution: {integrity: sha512-Q4r8ghd80yhO/0j1O3B2BjweX3fiHg9cdOwjJd2J76Q135c+NDxGCqdYKQ1SKBuFfgWbAUzBfvYjPUEeNgqN1A==} engines: {node: '>= 6'} @@ -1236,6 +1456,10 @@ packages: engines: {node: '>= 8.0.0'} dev: true + /ms@2.1.2: + resolution: {integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==} + dev: true + /node-fetch@2.7.0: resolution: {integrity: sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==} engines: {node: 4.x || >=6.0.0} @@ -1330,6 +1554,12 @@ packages: engines: {node: '>=6'} dev: true + /parents@1.0.1: + resolution: {integrity: sha512-mXKF3xkoUt5td2DoxpLmtOmZvko9VfFpwRwkKDHSNvgmpLAeBo18YDhcPbBzJq+QLCHMbGOfzia2cX4U+0v9Mg==} + dependencies: + path-platform: 0.11.15 + dev: true + /parse-json@5.2.0: resolution: {integrity: sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==} engines: {node: '>=8'} @@ -1349,6 +1579,11 @@ packages: resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==} dev: true + /path-platform@0.11.15: + resolution: {integrity: sha512-Y30dB6rab1A/nfEKsZxmr01nUotHX0c/ZiIAsCTatEe1CmS5Pm5He7fZ195bPT7RdquoaL8lLxFCMQi/bS7IJg==} + engines: {node: '>= 0.8.0'} + dev: true + /path-type@4.0.0: resolution: {integrity: sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==} engines: {node: '>=8'} @@ -1808,6 +2043,12 @@ packages: possible-typed-array-names: 1.0.0 dev: true + /typescript@4.5.2: + resolution: {integrity: sha512-5BlMof9H1yGt0P8/WF+wPNw6GfctgGjXp5hkblpyT+8rkASSmkUKMXrxR0Xg8ThVCi/JnHQiKXeBaEwCeQwMFw==} + engines: {node: '>=4.2.0'} + hasBin: true + dev: true + /unbox-primitive@1.0.2: resolution: {integrity: sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==} dependencies: From 608201c10272bb8999874d90a355f3b3e619748d Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 6 Mar 2024 11:20:30 +0000 Subject: [PATCH 05/17] generated protobuf --- packages/golang/infra/link.pb.go | 4 ++-- packages/golang/infra/link_grpc.pb.go | 2 +- packages/golang/livekit/livekit_agent.pb.go | 4 ++-- packages/golang/livekit/livekit_analytics.pb.go | 4 ++-- packages/golang/livekit/livekit_analytics_grpc.pb.go | 2 +- packages/golang/livekit/livekit_egress.pb.go | 4 ++-- packages/golang/livekit/livekit_ingress.pb.go | 4 ++-- packages/golang/livekit/livekit_internal.pb.go | 4 ++-- packages/golang/livekit/livekit_models.pb.go | 4 ++-- packages/golang/livekit/livekit_room.pb.go | 4 ++-- packages/golang/livekit/livekit_rtc.pb.go | 4 ++-- packages/golang/livekit/livekit_sip.pb.go | 4 ++-- packages/golang/livekit/livekit_webhook.pb.go | 4 ++-- packages/golang/rpc/agent.pb.go | 4 ++-- packages/golang/rpc/egress.pb.go | 4 ++-- packages/golang/rpc/ingress.pb.go | 4 ++-- packages/golang/rpc/io.pb.go | 4 ++-- packages/golang/rpc/keepalive.pb.go | 4 ++-- packages/golang/rpc/participant.pb.go | 4 ++-- packages/golang/rpc/room.pb.go | 4 ++-- packages/golang/rpc/signal.pb.go | 4 ++-- packages/golang/rpc/sip.pb.go | 4 ++-- 22 files changed, 42 insertions(+), 42 deletions(-) diff --git a/packages/golang/infra/link.pb.go b/packages/golang/infra/link.pb.go index e7e59255..f01ab38e 100644 --- a/packages/golang/infra/link.pb.go +++ b/packages/golang/infra/link.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v3.21.12 +// protoc-gen-go v1.33.0 +// protoc v4.23.4 // source: infra/link.proto package infra diff --git a/packages/golang/infra/link_grpc.pb.go b/packages/golang/infra/link_grpc.pb.go index 023edcd0..a7d8284e 100644 --- a/packages/golang/infra/link_grpc.pb.go +++ b/packages/golang/infra/link_grpc.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.3.0 -// - protoc v3.21.12 +// - protoc v4.23.4 // source: infra/link.proto package infra diff --git a/packages/golang/livekit/livekit_agent.pb.go b/packages/golang/livekit/livekit_agent.pb.go index 847e6462..b59cb988 100644 --- a/packages/golang/livekit/livekit_agent.pb.go +++ b/packages/golang/livekit/livekit_agent.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v3.21.12 +// protoc-gen-go v1.33.0 +// protoc v4.23.4 // source: livekit_agent.proto package livekit diff --git a/packages/golang/livekit/livekit_analytics.pb.go b/packages/golang/livekit/livekit_analytics.pb.go index 741febfc..e2c64087 100644 --- a/packages/golang/livekit/livekit_analytics.pb.go +++ b/packages/golang/livekit/livekit_analytics.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v3.21.12 +// protoc-gen-go v1.33.0 +// protoc v4.23.4 // source: livekit_analytics.proto package livekit diff --git a/packages/golang/livekit/livekit_analytics_grpc.pb.go b/packages/golang/livekit/livekit_analytics_grpc.pb.go index a8593e07..d6e880c4 100644 --- a/packages/golang/livekit/livekit_analytics_grpc.pb.go +++ b/packages/golang/livekit/livekit_analytics_grpc.pb.go @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.3.0 -// - protoc v3.21.12 +// - protoc v4.23.4 // source: livekit_analytics.proto package livekit diff --git a/packages/golang/livekit/livekit_egress.pb.go b/packages/golang/livekit/livekit_egress.pb.go index 602a6e3b..3b66615c 100644 --- a/packages/golang/livekit/livekit_egress.pb.go +++ b/packages/golang/livekit/livekit_egress.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v3.21.12 +// protoc-gen-go v1.33.0 +// protoc v4.23.4 // source: livekit_egress.proto package livekit diff --git a/packages/golang/livekit/livekit_ingress.pb.go b/packages/golang/livekit/livekit_ingress.pb.go index b970cbf7..6f0abcbf 100644 --- a/packages/golang/livekit/livekit_ingress.pb.go +++ b/packages/golang/livekit/livekit_ingress.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v3.21.12 +// protoc-gen-go v1.33.0 +// protoc v4.23.4 // source: livekit_ingress.proto package livekit diff --git a/packages/golang/livekit/livekit_internal.pb.go b/packages/golang/livekit/livekit_internal.pb.go index eba0a8a5..efd8ca5a 100644 --- a/packages/golang/livekit/livekit_internal.pb.go +++ b/packages/golang/livekit/livekit_internal.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v3.21.12 +// protoc-gen-go v1.33.0 +// protoc v4.23.4 // source: livekit_internal.proto package livekit diff --git a/packages/golang/livekit/livekit_models.pb.go b/packages/golang/livekit/livekit_models.pb.go index df4d55f8..b56998fe 100644 --- a/packages/golang/livekit/livekit_models.pb.go +++ b/packages/golang/livekit/livekit_models.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v3.21.12 +// protoc-gen-go v1.33.0 +// protoc v4.23.4 // source: livekit_models.proto package livekit diff --git a/packages/golang/livekit/livekit_room.pb.go b/packages/golang/livekit/livekit_room.pb.go index b8c9fa3c..16b5b1d6 100644 --- a/packages/golang/livekit/livekit_room.pb.go +++ b/packages/golang/livekit/livekit_room.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v3.21.12 +// protoc-gen-go v1.33.0 +// protoc v4.23.4 // source: livekit_room.proto package livekit diff --git a/packages/golang/livekit/livekit_rtc.pb.go b/packages/golang/livekit/livekit_rtc.pb.go index 22b4b88b..1475adbf 100644 --- a/packages/golang/livekit/livekit_rtc.pb.go +++ b/packages/golang/livekit/livekit_rtc.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v3.21.12 +// protoc-gen-go v1.33.0 +// protoc v4.23.4 // source: livekit_rtc.proto package livekit diff --git a/packages/golang/livekit/livekit_sip.pb.go b/packages/golang/livekit/livekit_sip.pb.go index 86ef94a0..5c591c0f 100644 --- a/packages/golang/livekit/livekit_sip.pb.go +++ b/packages/golang/livekit/livekit_sip.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v3.21.12 +// protoc-gen-go v1.33.0 +// protoc v4.23.4 // source: livekit_sip.proto package livekit diff --git a/packages/golang/livekit/livekit_webhook.pb.go b/packages/golang/livekit/livekit_webhook.pb.go index 07e6539b..8fee4edb 100644 --- a/packages/golang/livekit/livekit_webhook.pb.go +++ b/packages/golang/livekit/livekit_webhook.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v3.21.12 +// protoc-gen-go v1.33.0 +// protoc v4.23.4 // source: livekit_webhook.proto package livekit diff --git a/packages/golang/rpc/agent.pb.go b/packages/golang/rpc/agent.pb.go index 60ee1ab0..67f35573 100644 --- a/packages/golang/rpc/agent.pb.go +++ b/packages/golang/rpc/agent.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v3.21.12 +// protoc-gen-go v1.33.0 +// protoc v4.23.4 // source: rpc/agent.proto package rpc diff --git a/packages/golang/rpc/egress.pb.go b/packages/golang/rpc/egress.pb.go index cab2008b..7420aa05 100644 --- a/packages/golang/rpc/egress.pb.go +++ b/packages/golang/rpc/egress.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v3.21.12 +// protoc-gen-go v1.33.0 +// protoc v4.23.4 // source: rpc/egress.proto package rpc diff --git a/packages/golang/rpc/ingress.pb.go b/packages/golang/rpc/ingress.pb.go index 855f3a55..0b7fde24 100644 --- a/packages/golang/rpc/ingress.pb.go +++ b/packages/golang/rpc/ingress.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v3.21.12 +// protoc-gen-go v1.33.0 +// protoc v4.23.4 // source: rpc/ingress.proto package rpc diff --git a/packages/golang/rpc/io.pb.go b/packages/golang/rpc/io.pb.go index f6132a11..17fbfc59 100644 --- a/packages/golang/rpc/io.pb.go +++ b/packages/golang/rpc/io.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v3.21.12 +// protoc-gen-go v1.33.0 +// protoc v4.23.4 // source: rpc/io.proto package rpc diff --git a/packages/golang/rpc/keepalive.pb.go b/packages/golang/rpc/keepalive.pb.go index f74e5b6e..5977d2f8 100644 --- a/packages/golang/rpc/keepalive.pb.go +++ b/packages/golang/rpc/keepalive.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v3.21.12 +// protoc-gen-go v1.33.0 +// protoc v4.23.4 // source: rpc/keepalive.proto package rpc diff --git a/packages/golang/rpc/participant.pb.go b/packages/golang/rpc/participant.pb.go index 39ada361..c1e795e3 100644 --- a/packages/golang/rpc/participant.pb.go +++ b/packages/golang/rpc/participant.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v3.21.12 +// protoc-gen-go v1.33.0 +// protoc v4.23.4 // source: rpc/participant.proto package rpc diff --git a/packages/golang/rpc/room.pb.go b/packages/golang/rpc/room.pb.go index ccecd22e..4ce9978e 100644 --- a/packages/golang/rpc/room.pb.go +++ b/packages/golang/rpc/room.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v3.21.12 +// protoc-gen-go v1.33.0 +// protoc v4.23.4 // source: rpc/room.proto package rpc diff --git a/packages/golang/rpc/signal.pb.go b/packages/golang/rpc/signal.pb.go index c2057637..ad8e26f8 100644 --- a/packages/golang/rpc/signal.pb.go +++ b/packages/golang/rpc/signal.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v3.21.12 +// protoc-gen-go v1.33.0 +// protoc v4.23.4 // source: rpc/signal.proto package rpc diff --git a/packages/golang/rpc/sip.pb.go b/packages/golang/rpc/sip.pb.go index 1a1ecd18..ec1684b7 100644 --- a/packages/golang/rpc/sip.pb.go +++ b/packages/golang/rpc/sip.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v3.21.12 +// protoc-gen-go v1.33.0 +// protoc v4.23.4 // source: rpc/sip.proto package rpc From a80c24f0a9a2924d59fb09652f36df45921b6f93 Mon Sep 17 00:00:00 2001 From: lukasIO Date: Wed, 6 Mar 2024 12:23:59 +0100 Subject: [PATCH 06/17] fix test action --- .github/workflows/buildtest.yaml | 68 +++++++++++++++++--------------- 1 file changed, 36 insertions(+), 32 deletions(-) diff --git a/.github/workflows/buildtest.yaml b/.github/workflows/buildtest.yaml index 40a7076d..59de71c6 100644 --- a/.github/workflows/buildtest.yaml +++ b/.github/workflows/buildtest.yaml @@ -17,41 +17,45 @@ name: Test on: workflow_dispatch: push: - branches: [ main ] + branches: [main] pull_request: - branches: [ main ] + branches: [main] jobs: test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4 - - uses: actions/cache@v4 - with: - path: | - ~/go/pkg/mod - ~/go/bin - ~/.cache - key: livekit-protocol - - - name: Set up Go - uses: actions/setup-go@v5 - with: - go-version: 1.21 - - - name: Set up gotestfmt - run: go install github.com/gotesttools/gotestfmt/v2/cmd/gotestfmt@v2.4.1 - - - name: Download Go modules - run: go mod download - - - name: Static Check - uses: amarpal/staticcheck-action@master - with: - checks: '["all", "-ST1000", "-ST1003", "-ST1020", "-ST1021", "-ST1022", "-SA1019"]' - install-go: false - - - name: Test - run: | - set -euo pipefail - MallocNanoZone=0 go test -race -json -v ./... 2>&1 | gotestfmt + - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4 + - uses: actions/cache@v4 + with: + path: | + ~/go/pkg/mod + ~/go/bin + ~/.cache + key: livekit-protocol + + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version: 1.21 + + - name: Set up gotestfmt + run: go install github.com/gotesttools/gotestfmt/v2/cmd/gotestfmt@v2.4.1 + working-directory: ./packages/golang + + - name: Download Go modules + run: go mod download + working-directory: ./packages/golang + + - name: Static Check + uses: amarpal/staticcheck-action@master + with: + checks: '["all", "-ST1000", "-ST1003", "-ST1020", "-ST1021", "-ST1022", "-SA1019"]' + install-go: false + working-directory: ./packages/golang + + - name: Test + run: | + set -euo pipefail + MallocNanoZone=0 go test -race -json -v ./... 2>&1 | gotestfmt + working-directory: ./packages/golang From 46a323c5ce0e561f4c9309a3cf291c916670a780 Mon Sep 17 00:00:00 2001 From: lukasIO Date: Wed, 6 Mar 2024 12:26:36 +0100 Subject: [PATCH 07/17] fix cache dependency path --- .github/workflows/buildtest.yaml | 2 ++ .github/workflows/generate.yaml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/buildtest.yaml b/.github/workflows/buildtest.yaml index 59de71c6..c63ddf1c 100644 --- a/.github/workflows/buildtest.yaml +++ b/.github/workflows/buildtest.yaml @@ -38,6 +38,8 @@ jobs: uses: actions/setup-go@v5 with: go-version: 1.21 + cache-dependency-path: | + packages/golang/go.sum - name: Set up gotestfmt run: go install github.com/gotesttools/gotestfmt/v2/cmd/gotestfmt@v2.4.1 diff --git a/.github/workflows/generate.yaml b/.github/workflows/generate.yaml index 84c02777..a63d08fa 100644 --- a/.github/workflows/generate.yaml +++ b/.github/workflows/generate.yaml @@ -34,6 +34,8 @@ jobs: uses: actions/setup-go@v5 with: go-version: ">=1.20" + cache-dependency-path: | + packages/golang/go.sum - name: Go mod tidy run: go mod tidy From 6bac62631e0d39faedb05bfe551bc2cd13a532cf Mon Sep 17 00:00:00 2001 From: lukasIO Date: Wed, 6 Mar 2024 12:33:02 +0100 Subject: [PATCH 08/17] setup versioning --- packages/golang/package.json | 5 +++++ packages/javascript/package.json | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 packages/golang/package.json diff --git a/packages/golang/package.json b/packages/golang/package.json new file mode 100644 index 00000000..156f70f7 --- /dev/null +++ b/packages/golang/package.json @@ -0,0 +1,5 @@ +{ + "name": "github.com/livekit/protocol", + "private": true, + "version": "1.10.1" +} diff --git a/packages/javascript/package.json b/packages/javascript/package.json index f6f9724b..01f636d0 100644 --- a/packages/javascript/package.json +++ b/packages/javascript/package.json @@ -1,6 +1,6 @@ { "name": "@livekit/protocol", - "version": "13.0.0", + "version": "1.10.1", "description": "", "type": "module", "main": "src/index.js", From 5cb354e177be3ad3389aa8a75115f2b83acbe3ba Mon Sep 17 00:00:00 2001 From: lukasIO Date: Wed, 6 Mar 2024 13:02:54 +0100 Subject: [PATCH 09/17] add golang workspace file --- go.work | 3 +++ go.work.sum | 1 + 2 files changed, 4 insertions(+) create mode 100644 go.work create mode 100644 go.work.sum diff --git a/go.work b/go.work new file mode 100644 index 00000000..a4d6f1c3 --- /dev/null +++ b/go.work @@ -0,0 +1,3 @@ +go 1.21.5 + +use ./packages/golang diff --git a/go.work.sum b/go.work.sum new file mode 100644 index 00000000..fae0abd7 --- /dev/null +++ b/go.work.sum @@ -0,0 +1 @@ +google.golang.org/genproto v0.0.0-20240213162025-012b6fc9bca9 h1:9+tzLLstTlPTRyJTh+ah5wIMsBW5c4tQwGTN3thOW9Y= From 0c67ea68ed49ad54dbe80696dd54b56a2b467078 Mon Sep 17 00:00:00 2001 From: lukasIO Date: Wed, 6 Mar 2024 13:12:08 +0100 Subject: [PATCH 10/17] delete generated files from git --- packages/javascript/.gitignore | 2 +- .../javascript/src/gen/livekit_agent_pb.d.ts | 458 ---- .../javascript/src/gen/livekit_agent_pb.js | 188 -- .../javascript/src/gen/livekit_egress_pb.d.ts | 1969 ----------------- .../javascript/src/gen/livekit_egress_pb.js | 572 ----- .../src/gen/livekit_ingress_pb.d.ts | 818 ------- .../javascript/src/gen/livekit_ingress_pb.js | 265 --- .../javascript/src/gen/livekit_models_pb.d.ts | 1786 --------------- .../javascript/src/gen/livekit_models_pb.js | 613 ----- .../javascript/src/gen/livekit_rtc_pb.d.ts | 1782 --------------- packages/javascript/src/gen/livekit_rtc_pb.js | 565 ----- .../javascript/src/gen/livekit_sip_pb.d.ts | 590 ----- packages/javascript/src/gen/livekit_sip_pb.js | 200 -- .../src/gen/livekit_webhook_pb.d.ts | 105 - .../javascript/src/gen/livekit_webhook_pb.js | 42 - packages/javascript/src/gen/version.js | 2 - 16 files changed, 1 insertion(+), 9956 deletions(-) delete mode 100644 packages/javascript/src/gen/livekit_agent_pb.d.ts delete mode 100644 packages/javascript/src/gen/livekit_agent_pb.js delete mode 100644 packages/javascript/src/gen/livekit_egress_pb.d.ts delete mode 100644 packages/javascript/src/gen/livekit_egress_pb.js delete mode 100644 packages/javascript/src/gen/livekit_ingress_pb.d.ts delete mode 100644 packages/javascript/src/gen/livekit_ingress_pb.js delete mode 100644 packages/javascript/src/gen/livekit_models_pb.d.ts delete mode 100644 packages/javascript/src/gen/livekit_models_pb.js delete mode 100644 packages/javascript/src/gen/livekit_rtc_pb.d.ts delete mode 100644 packages/javascript/src/gen/livekit_rtc_pb.js delete mode 100644 packages/javascript/src/gen/livekit_sip_pb.d.ts delete mode 100644 packages/javascript/src/gen/livekit_sip_pb.js delete mode 100644 packages/javascript/src/gen/livekit_webhook_pb.d.ts delete mode 100644 packages/javascript/src/gen/livekit_webhook_pb.js delete mode 100644 packages/javascript/src/gen/version.js diff --git a/packages/javascript/.gitignore b/packages/javascript/.gitignore index 40b878db..c2658d7d 100644 --- a/packages/javascript/.gitignore +++ b/packages/javascript/.gitignore @@ -1 +1 @@ -node_modules/ \ No newline at end of file +node_modules/ diff --git a/packages/javascript/src/gen/livekit_agent_pb.d.ts b/packages/javascript/src/gen/livekit_agent_pb.d.ts deleted file mode 100644 index 25ba1bb6..00000000 --- a/packages/javascript/src/gen/livekit_agent_pb.d.ts +++ /dev/null @@ -1,458 +0,0 @@ -// Copyright 2023 LiveKit, Inc. -// -// 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. - -// @generated by protoc-gen-es v1.7.2 with parameter "target=js+dts" -// @generated from file livekit_agent.proto (package livekit, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import type { ParticipantInfo, Room } from "./livekit_models_pb.js"; - -/** - * @generated from enum livekit.JobType - */ -export declare enum JobType { - /** - * @generated from enum value: JT_ROOM = 0; - */ - JT_ROOM = 0, - - /** - * @generated from enum value: JT_PUBLISHER = 1; - */ - JT_PUBLISHER = 1, -} - -/** - * @generated from enum livekit.WorkerStatus - */ -export declare enum WorkerStatus { - /** - * @generated from enum value: WS_AVAILABLE = 0; - */ - WS_AVAILABLE = 0, - - /** - * @generated from enum value: WS_FULL = 1; - */ - WS_FULL = 1, -} - -/** - * @generated from enum livekit.JobStatus - */ -export declare enum JobStatus { - /** - * @generated from enum value: JS_UNKNOWN = 0; - */ - JS_UNKNOWN = 0, - - /** - * @generated from enum value: JS_SUCCESS = 1; - */ - JS_SUCCESS = 1, - - /** - * @generated from enum value: JS_FAILED = 2; - */ - JS_FAILED = 2, -} - -/** - * @generated from message livekit.AgentInfo - */ -export declare class AgentInfo extends Message { - /** - * @generated from field: string id = 1; - */ - id: string; - - /** - * @generated from field: string name = 2; - */ - name: string; - - /** - * @generated from field: string version = 3; - */ - version: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.AgentInfo"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): AgentInfo; - - static fromJson(jsonValue: JsonValue, options?: Partial): AgentInfo; - - static fromJsonString(jsonString: string, options?: Partial): AgentInfo; - - static equals(a: AgentInfo | PlainMessage | undefined, b: AgentInfo | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.Job - */ -export declare class Job extends Message { - /** - * @generated from field: string id = 1; - */ - id: string; - - /** - * @generated from field: livekit.JobType type = 2; - */ - type: JobType; - - /** - * @generated from field: livekit.Room room = 3; - */ - room?: Room; - - /** - * @generated from field: optional livekit.ParticipantInfo participant = 4; - */ - participant?: ParticipantInfo; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.Job"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): Job; - - static fromJson(jsonValue: JsonValue, options?: Partial): Job; - - static fromJsonString(jsonString: string, options?: Partial): Job; - - static equals(a: Job | PlainMessage | undefined, b: Job | PlainMessage | undefined): boolean; -} - -/** - * from Worker to Server - * - * @generated from message livekit.WorkerMessage - */ -export declare class WorkerMessage extends Message { - /** - * @generated from oneof livekit.WorkerMessage.message - */ - message: { - /** - * agent workers need to register themselves with the server first - * - * @generated from field: livekit.RegisterWorkerRequest register = 1; - */ - value: RegisterWorkerRequest; - case: "register"; - } | { - /** - * worker confirms to server that it's available for a job, or declines it - * - * @generated from field: livekit.AvailabilityResponse availability = 2; - */ - value: AvailabilityResponse; - case: "availability"; - } | { - /** - * worker can update its status to the server, including taking itself out of the pool - * - * @generated from field: livekit.UpdateWorkerStatus status = 3; - */ - value: UpdateWorkerStatus; - case: "status"; - } | { - /** - * @generated from field: livekit.JobStatusUpdate job_update = 4; - */ - value: JobStatusUpdate; - case: "jobUpdate"; - } | { case: undefined; value?: undefined }; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.WorkerMessage"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): WorkerMessage; - - static fromJson(jsonValue: JsonValue, options?: Partial): WorkerMessage; - - static fromJsonString(jsonString: string, options?: Partial): WorkerMessage; - - static equals(a: WorkerMessage | PlainMessage | undefined, b: WorkerMessage | PlainMessage | undefined): boolean; -} - -/** - * from Server to Worker - * - * @generated from message livekit.ServerMessage - */ -export declare class ServerMessage extends Message { - /** - * @generated from oneof livekit.ServerMessage.message - */ - message: { - /** - * server confirms the registration, from this moment on, the worker is considered active - * - * @generated from field: livekit.RegisterWorkerResponse register = 1; - */ - value: RegisterWorkerResponse; - case: "register"; - } | { - /** - * server asks worker to confirm availability for a job - * - * @generated from field: livekit.AvailabilityRequest availability = 2; - */ - value: AvailabilityRequest; - case: "availability"; - } | { - /** - * @generated from field: livekit.JobAssignment assignment = 3; - */ - value: JobAssignment; - case: "assignment"; - } | { case: undefined; value?: undefined }; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.ServerMessage"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerMessage; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerMessage; - - static fromJsonString(jsonString: string, options?: Partial): ServerMessage; - - static equals(a: ServerMessage | PlainMessage | undefined, b: ServerMessage | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.RegisterWorkerRequest - */ -export declare class RegisterWorkerRequest extends Message { - /** - * @generated from field: livekit.JobType type = 1; - */ - type: JobType; - - /** - * @generated from field: string worker_id = 2; - */ - workerId: string; - - /** - * @generated from field: string version = 3; - */ - version: string; - - /** - * @generated from field: string name = 4; - */ - name: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.RegisterWorkerRequest"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): RegisterWorkerRequest; - - static fromJson(jsonValue: JsonValue, options?: Partial): RegisterWorkerRequest; - - static fromJsonString(jsonString: string, options?: Partial): RegisterWorkerRequest; - - static equals(a: RegisterWorkerRequest | PlainMessage | undefined, b: RegisterWorkerRequest | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.RegisterWorkerResponse - */ -export declare class RegisterWorkerResponse extends Message { - /** - * @generated from field: string worker_id = 1; - */ - workerId: string; - - /** - * @generated from field: string server_version = 2; - */ - serverVersion: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.RegisterWorkerResponse"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): RegisterWorkerResponse; - - static fromJson(jsonValue: JsonValue, options?: Partial): RegisterWorkerResponse; - - static fromJsonString(jsonString: string, options?: Partial): RegisterWorkerResponse; - - static equals(a: RegisterWorkerResponse | PlainMessage | undefined, b: RegisterWorkerResponse | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.AvailabilityRequest - */ -export declare class AvailabilityRequest extends Message { - /** - * @generated from field: livekit.Job job = 1; - */ - job?: Job; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.AvailabilityRequest"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): AvailabilityRequest; - - static fromJson(jsonValue: JsonValue, options?: Partial): AvailabilityRequest; - - static fromJsonString(jsonString: string, options?: Partial): AvailabilityRequest; - - static equals(a: AvailabilityRequest | PlainMessage | undefined, b: AvailabilityRequest | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.AvailabilityResponse - */ -export declare class AvailabilityResponse extends Message { - /** - * @generated from field: string job_id = 1; - */ - jobId: string; - - /** - * @generated from field: bool available = 2; - */ - available: boolean; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.AvailabilityResponse"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): AvailabilityResponse; - - static fromJson(jsonValue: JsonValue, options?: Partial): AvailabilityResponse; - - static fromJsonString(jsonString: string, options?: Partial): AvailabilityResponse; - - static equals(a: AvailabilityResponse | PlainMessage | undefined, b: AvailabilityResponse | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.JobStatusUpdate - */ -export declare class JobStatusUpdate extends Message { - /** - * @generated from field: string job_id = 1; - */ - jobId: string; - - /** - * @generated from field: livekit.JobStatus status = 2; - */ - status: JobStatus; - - /** - * @generated from field: string error = 3; - */ - error: string; - - /** - * @generated from field: string user_data = 4; - */ - userData: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.JobStatusUpdate"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): JobStatusUpdate; - - static fromJson(jsonValue: JsonValue, options?: Partial): JobStatusUpdate; - - static fromJsonString(jsonString: string, options?: Partial): JobStatusUpdate; - - static equals(a: JobStatusUpdate | PlainMessage | undefined, b: JobStatusUpdate | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.JobAssignment - */ -export declare class JobAssignment extends Message { - /** - * @generated from field: livekit.Job job = 1; - */ - job?: Job; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.JobAssignment"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): JobAssignment; - - static fromJson(jsonValue: JsonValue, options?: Partial): JobAssignment; - - static fromJsonString(jsonString: string, options?: Partial): JobAssignment; - - static equals(a: JobAssignment | PlainMessage | undefined, b: JobAssignment | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.UpdateWorkerStatus - */ -export declare class UpdateWorkerStatus extends Message { - /** - * @generated from field: livekit.WorkerStatus status = 1; - */ - status: WorkerStatus; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.UpdateWorkerStatus"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): UpdateWorkerStatus; - - static fromJson(jsonValue: JsonValue, options?: Partial): UpdateWorkerStatus; - - static fromJsonString(jsonString: string, options?: Partial): UpdateWorkerStatus; - - static equals(a: UpdateWorkerStatus | PlainMessage | undefined, b: UpdateWorkerStatus | PlainMessage | undefined): boolean; -} - diff --git a/packages/javascript/src/gen/livekit_agent_pb.js b/packages/javascript/src/gen/livekit_agent_pb.js deleted file mode 100644 index e72c377a..00000000 --- a/packages/javascript/src/gen/livekit_agent_pb.js +++ /dev/null @@ -1,188 +0,0 @@ -// Copyright 2023 LiveKit, Inc. -// -// 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. - -// @generated by protoc-gen-es v1.7.2 with parameter "target=js+dts" -// @generated from file livekit_agent.proto (package livekit, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { proto3 } from "@bufbuild/protobuf"; -import { ParticipantInfo, Room } from "./livekit_models_pb.js"; - -/** - * @generated from enum livekit.JobType - */ -export const JobType = proto3.makeEnum( - "livekit.JobType", - [ - {no: 0, name: "JT_ROOM"}, - {no: 1, name: "JT_PUBLISHER"}, - ], -); - -/** - * @generated from enum livekit.WorkerStatus - */ -export const WorkerStatus = proto3.makeEnum( - "livekit.WorkerStatus", - [ - {no: 0, name: "WS_AVAILABLE"}, - {no: 1, name: "WS_FULL"}, - ], -); - -/** - * @generated from enum livekit.JobStatus - */ -export const JobStatus = proto3.makeEnum( - "livekit.JobStatus", - [ - {no: 0, name: "JS_UNKNOWN"}, - {no: 1, name: "JS_SUCCESS"}, - {no: 2, name: "JS_FAILED"}, - ], -); - -/** - * @generated from message livekit.AgentInfo - */ -export const AgentInfo = proto3.makeMessageType( - "livekit.AgentInfo", - () => [ - { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message livekit.Job - */ -export const Job = proto3.makeMessageType( - "livekit.Job", - () => [ - { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "type", kind: "enum", T: proto3.getEnumType(JobType) }, - { no: 3, name: "room", kind: "message", T: Room }, - { no: 4, name: "participant", kind: "message", T: ParticipantInfo, opt: true }, - ], -); - -/** - * from Worker to Server - * - * @generated from message livekit.WorkerMessage - */ -export const WorkerMessage = proto3.makeMessageType( - "livekit.WorkerMessage", - () => [ - { no: 1, name: "register", kind: "message", T: RegisterWorkerRequest, oneof: "message" }, - { no: 2, name: "availability", kind: "message", T: AvailabilityResponse, oneof: "message" }, - { no: 3, name: "status", kind: "message", T: UpdateWorkerStatus, oneof: "message" }, - { no: 4, name: "job_update", kind: "message", T: JobStatusUpdate, oneof: "message" }, - ], -); - -/** - * from Server to Worker - * - * @generated from message livekit.ServerMessage - */ -export const ServerMessage = proto3.makeMessageType( - "livekit.ServerMessage", - () => [ - { no: 1, name: "register", kind: "message", T: RegisterWorkerResponse, oneof: "message" }, - { no: 2, name: "availability", kind: "message", T: AvailabilityRequest, oneof: "message" }, - { no: 3, name: "assignment", kind: "message", T: JobAssignment, oneof: "message" }, - ], -); - -/** - * @generated from message livekit.RegisterWorkerRequest - */ -export const RegisterWorkerRequest = proto3.makeMessageType( - "livekit.RegisterWorkerRequest", - () => [ - { no: 1, name: "type", kind: "enum", T: proto3.getEnumType(JobType) }, - { no: 2, name: "worker_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message livekit.RegisterWorkerResponse - */ -export const RegisterWorkerResponse = proto3.makeMessageType( - "livekit.RegisterWorkerResponse", - () => [ - { no: 1, name: "worker_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "server_version", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message livekit.AvailabilityRequest - */ -export const AvailabilityRequest = proto3.makeMessageType( - "livekit.AvailabilityRequest", - () => [ - { no: 1, name: "job", kind: "message", T: Job }, - ], -); - -/** - * @generated from message livekit.AvailabilityResponse - */ -export const AvailabilityResponse = proto3.makeMessageType( - "livekit.AvailabilityResponse", - () => [ - { no: 1, name: "job_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "available", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ], -); - -/** - * @generated from message livekit.JobStatusUpdate - */ -export const JobStatusUpdate = proto3.makeMessageType( - "livekit.JobStatusUpdate", - () => [ - { no: 1, name: "job_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "status", kind: "enum", T: proto3.getEnumType(JobStatus) }, - { no: 3, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "user_data", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message livekit.JobAssignment - */ -export const JobAssignment = proto3.makeMessageType( - "livekit.JobAssignment", - () => [ - { no: 1, name: "job", kind: "message", T: Job }, - ], -); - -/** - * @generated from message livekit.UpdateWorkerStatus - */ -export const UpdateWorkerStatus = proto3.makeMessageType( - "livekit.UpdateWorkerStatus", - () => [ - { no: 1, name: "status", kind: "enum", T: proto3.getEnumType(WorkerStatus) }, - ], -); - diff --git a/packages/javascript/src/gen/livekit_egress_pb.d.ts b/packages/javascript/src/gen/livekit_egress_pb.d.ts deleted file mode 100644 index c45fa62e..00000000 --- a/packages/javascript/src/gen/livekit_egress_pb.d.ts +++ /dev/null @@ -1,1969 +0,0 @@ -// Copyright 2023 LiveKit, Inc. -// -// 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. - -// @generated by protoc-gen-es v1.7.2 with parameter "target=js+dts" -// @generated from file livekit_egress.proto (package livekit, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import type { AudioCodec, ImageCodec, VideoCodec } from "./livekit_models_pb.js"; - -/** - * @generated from enum livekit.EncodedFileType - */ -export declare enum EncodedFileType { - /** - * file type chosen based on codecs - * - * @generated from enum value: DEFAULT_FILETYPE = 0; - */ - DEFAULT_FILETYPE = 0, - - /** - * @generated from enum value: MP4 = 1; - */ - MP4 = 1, - - /** - * @generated from enum value: OGG = 2; - */ - OGG = 2, -} - -/** - * @generated from enum livekit.SegmentedFileProtocol - */ -export declare enum SegmentedFileProtocol { - /** - * @generated from enum value: DEFAULT_SEGMENTED_FILE_PROTOCOL = 0; - */ - DEFAULT_SEGMENTED_FILE_PROTOCOL = 0, - - /** - * @generated from enum value: HLS_PROTOCOL = 1; - */ - HLS_PROTOCOL = 1, -} - -/** - * @generated from enum livekit.SegmentedFileSuffix - */ -export declare enum SegmentedFileSuffix { - /** - * @generated from enum value: INDEX = 0; - */ - INDEX = 0, - - /** - * @generated from enum value: TIMESTAMP = 1; - */ - TIMESTAMP = 1, -} - -/** - * @generated from enum livekit.ImageFileSuffix - */ -export declare enum ImageFileSuffix { - /** - * @generated from enum value: IMAGE_SUFFIX_INDEX = 0; - */ - IMAGE_SUFFIX_INDEX = 0, - - /** - * @generated from enum value: IMAGE_SUFFIX_TIMESTAMP = 1; - */ - IMAGE_SUFFIX_TIMESTAMP = 1, -} - -/** - * @generated from enum livekit.StreamProtocol - */ -export declare enum StreamProtocol { - /** - * protocol chosen based on urls - * - * @generated from enum value: DEFAULT_PROTOCOL = 0; - */ - DEFAULT_PROTOCOL = 0, - - /** - * @generated from enum value: RTMP = 1; - */ - RTMP = 1, -} - -/** - * @generated from enum livekit.EncodingOptionsPreset - */ -export declare enum EncodingOptionsPreset { - /** - * 1280x720, 30fps, 3000kpbs, H.264_MAIN / OPUS - * - * @generated from enum value: H264_720P_30 = 0; - */ - H264_720P_30 = 0, - - /** - * 1280x720, 60fps, 4500kbps, H.264_MAIN / OPUS - * - * @generated from enum value: H264_720P_60 = 1; - */ - H264_720P_60 = 1, - - /** - * 1920x1080, 30fps, 4500kbps, H.264_MAIN / OPUS - * - * @generated from enum value: H264_1080P_30 = 2; - */ - H264_1080P_30 = 2, - - /** - * 1920x1080, 60fps, 6000kbps, H.264_MAIN / OPUS - * - * @generated from enum value: H264_1080P_60 = 3; - */ - H264_1080P_60 = 3, - - /** - * 720x1280, 30fps, 3000kpbs, H.264_MAIN / OPUS - * - * @generated from enum value: PORTRAIT_H264_720P_30 = 4; - */ - PORTRAIT_H264_720P_30 = 4, - - /** - * 720x1280, 60fps, 4500kbps, H.264_MAIN / OPUS - * - * @generated from enum value: PORTRAIT_H264_720P_60 = 5; - */ - PORTRAIT_H264_720P_60 = 5, - - /** - * 1080x1920, 30fps, 4500kbps, H.264_MAIN / OPUS - * - * @generated from enum value: PORTRAIT_H264_1080P_30 = 6; - */ - PORTRAIT_H264_1080P_30 = 6, - - /** - * 1080x1920, 60fps, 6000kbps, H.264_MAIN / OPUS - * - * @generated from enum value: PORTRAIT_H264_1080P_60 = 7; - */ - PORTRAIT_H264_1080P_60 = 7, -} - -/** - * @generated from enum livekit.EgressStatus - */ -export declare enum EgressStatus { - /** - * @generated from enum value: EGRESS_STARTING = 0; - */ - EGRESS_STARTING = 0, - - /** - * @generated from enum value: EGRESS_ACTIVE = 1; - */ - EGRESS_ACTIVE = 1, - - /** - * @generated from enum value: EGRESS_ENDING = 2; - */ - EGRESS_ENDING = 2, - - /** - * @generated from enum value: EGRESS_COMPLETE = 3; - */ - EGRESS_COMPLETE = 3, - - /** - * @generated from enum value: EGRESS_FAILED = 4; - */ - EGRESS_FAILED = 4, - - /** - * @generated from enum value: EGRESS_ABORTED = 5; - */ - EGRESS_ABORTED = 5, - - /** - * @generated from enum value: EGRESS_LIMIT_REACHED = 6; - */ - EGRESS_LIMIT_REACHED = 6, -} - -/** - * composite using a web browser - * - * @generated from message livekit.RoomCompositeEgressRequest - */ -export declare class RoomCompositeEgressRequest extends Message { - /** - * required - * - * @generated from field: string room_name = 1; - */ - roomName: string; - - /** - * (optional) - * - * @generated from field: string layout = 2; - */ - layout: string; - - /** - * (default false) - * - * @generated from field: bool audio_only = 3; - */ - audioOnly: boolean; - - /** - * (default false) - * - * @generated from field: bool video_only = 4; - */ - videoOnly: boolean; - - /** - * template base url (default https://recorder.livekit.io) - * - * @generated from field: string custom_base_url = 5; - */ - customBaseUrl: string; - - /** - * deprecated (use _output fields) - * - * @generated from oneof livekit.RoomCompositeEgressRequest.output - */ - output: { - /** - * @generated from field: livekit.EncodedFileOutput file = 6 [deprecated = true]; - * @deprecated - */ - value: EncodedFileOutput; - case: "file"; - } | { - /** - * @generated from field: livekit.StreamOutput stream = 7 [deprecated = true]; - * @deprecated - */ - value: StreamOutput; - case: "stream"; - } | { - /** - * @generated from field: livekit.SegmentedFileOutput segments = 10 [deprecated = true]; - * @deprecated - */ - value: SegmentedFileOutput; - case: "segments"; - } | { case: undefined; value?: undefined }; - - /** - * @generated from oneof livekit.RoomCompositeEgressRequest.options - */ - options: { - /** - * (default H264_720P_30) - * - * @generated from field: livekit.EncodingOptionsPreset preset = 8; - */ - value: EncodingOptionsPreset; - case: "preset"; - } | { - /** - * (optional) - * - * @generated from field: livekit.EncodingOptions advanced = 9; - */ - value: EncodingOptions; - case: "advanced"; - } | { case: undefined; value?: undefined }; - - /** - * @generated from field: repeated livekit.EncodedFileOutput file_outputs = 11; - */ - fileOutputs: EncodedFileOutput[]; - - /** - * @generated from field: repeated livekit.StreamOutput stream_outputs = 12; - */ - streamOutputs: StreamOutput[]; - - /** - * @generated from field: repeated livekit.SegmentedFileOutput segment_outputs = 13; - */ - segmentOutputs: SegmentedFileOutput[]; - - /** - * @generated from field: repeated livekit.ImageOutput image_outputs = 14; - */ - imageOutputs: ImageOutput[]; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.RoomCompositeEgressRequest"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): RoomCompositeEgressRequest; - - static fromJson(jsonValue: JsonValue, options?: Partial): RoomCompositeEgressRequest; - - static fromJsonString(jsonString: string, options?: Partial): RoomCompositeEgressRequest; - - static equals(a: RoomCompositeEgressRequest | PlainMessage | undefined, b: RoomCompositeEgressRequest | PlainMessage | undefined): boolean; -} - -/** - * record any website - * - * @generated from message livekit.WebEgressRequest - */ -export declare class WebEgressRequest extends Message { - /** - * @generated from field: string url = 1; - */ - url: string; - - /** - * @generated from field: bool audio_only = 2; - */ - audioOnly: boolean; - - /** - * @generated from field: bool video_only = 3; - */ - videoOnly: boolean; - - /** - * @generated from field: bool await_start_signal = 12; - */ - awaitStartSignal: boolean; - - /** - * deprecated (use _output fields) - * - * @generated from oneof livekit.WebEgressRequest.output - */ - output: { - /** - * @generated from field: livekit.EncodedFileOutput file = 4 [deprecated = true]; - * @deprecated - */ - value: EncodedFileOutput; - case: "file"; - } | { - /** - * @generated from field: livekit.StreamOutput stream = 5 [deprecated = true]; - * @deprecated - */ - value: StreamOutput; - case: "stream"; - } | { - /** - * @generated from field: livekit.SegmentedFileOutput segments = 6 [deprecated = true]; - * @deprecated - */ - value: SegmentedFileOutput; - case: "segments"; - } | { case: undefined; value?: undefined }; - - /** - * @generated from oneof livekit.WebEgressRequest.options - */ - options: { - /** - * @generated from field: livekit.EncodingOptionsPreset preset = 7; - */ - value: EncodingOptionsPreset; - case: "preset"; - } | { - /** - * @generated from field: livekit.EncodingOptions advanced = 8; - */ - value: EncodingOptions; - case: "advanced"; - } | { case: undefined; value?: undefined }; - - /** - * @generated from field: repeated livekit.EncodedFileOutput file_outputs = 9; - */ - fileOutputs: EncodedFileOutput[]; - - /** - * @generated from field: repeated livekit.StreamOutput stream_outputs = 10; - */ - streamOutputs: StreamOutput[]; - - /** - * @generated from field: repeated livekit.SegmentedFileOutput segment_outputs = 11; - */ - segmentOutputs: SegmentedFileOutput[]; - - /** - * @generated from field: repeated livekit.ImageOutput image_outputs = 13; - */ - imageOutputs: ImageOutput[]; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.WebEgressRequest"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): WebEgressRequest; - - static fromJson(jsonValue: JsonValue, options?: Partial): WebEgressRequest; - - static fromJsonString(jsonString: string, options?: Partial): WebEgressRequest; - - static equals(a: WebEgressRequest | PlainMessage | undefined, b: WebEgressRequest | PlainMessage | undefined): boolean; -} - -/** - * record audio and video from a single participant - * - * @generated from message livekit.ParticipantEgressRequest - */ -export declare class ParticipantEgressRequest extends Message { - /** - * required - * - * @generated from field: string room_name = 1; - */ - roomName: string; - - /** - * required - * - * @generated from field: string identity = 2; - */ - identity: string; - - /** - * (default false) - * - * @generated from field: bool screen_share = 3; - */ - screenShare: boolean; - - /** - * @generated from oneof livekit.ParticipantEgressRequest.options - */ - options: { - /** - * (default H264_720P_30) - * - * @generated from field: livekit.EncodingOptionsPreset preset = 4; - */ - value: EncodingOptionsPreset; - case: "preset"; - } | { - /** - * (optional) - * - * @generated from field: livekit.EncodingOptions advanced = 5; - */ - value: EncodingOptions; - case: "advanced"; - } | { case: undefined; value?: undefined }; - - /** - * @generated from field: repeated livekit.EncodedFileOutput file_outputs = 6; - */ - fileOutputs: EncodedFileOutput[]; - - /** - * @generated from field: repeated livekit.StreamOutput stream_outputs = 7; - */ - streamOutputs: StreamOutput[]; - - /** - * @generated from field: repeated livekit.SegmentedFileOutput segment_outputs = 8; - */ - segmentOutputs: SegmentedFileOutput[]; - - /** - * @generated from field: repeated livekit.ImageOutput image_outputs = 9; - */ - imageOutputs: ImageOutput[]; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.ParticipantEgressRequest"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ParticipantEgressRequest; - - static fromJson(jsonValue: JsonValue, options?: Partial): ParticipantEgressRequest; - - static fromJsonString(jsonString: string, options?: Partial): ParticipantEgressRequest; - - static equals(a: ParticipantEgressRequest | PlainMessage | undefined, b: ParticipantEgressRequest | PlainMessage | undefined): boolean; -} - -/** - * containerize up to one audio and one video track - * - * @generated from message livekit.TrackCompositeEgressRequest - */ -export declare class TrackCompositeEgressRequest extends Message { - /** - * required - * - * @generated from field: string room_name = 1; - */ - roomName: string; - - /** - * (optional) - * - * @generated from field: string audio_track_id = 2; - */ - audioTrackId: string; - - /** - * (optional) - * - * @generated from field: string video_track_id = 3; - */ - videoTrackId: string; - - /** - * deprecated (use _output fields) - * - * @generated from oneof livekit.TrackCompositeEgressRequest.output - */ - output: { - /** - * @generated from field: livekit.EncodedFileOutput file = 4 [deprecated = true]; - * @deprecated - */ - value: EncodedFileOutput; - case: "file"; - } | { - /** - * @generated from field: livekit.StreamOutput stream = 5 [deprecated = true]; - * @deprecated - */ - value: StreamOutput; - case: "stream"; - } | { - /** - * @generated from field: livekit.SegmentedFileOutput segments = 8 [deprecated = true]; - * @deprecated - */ - value: SegmentedFileOutput; - case: "segments"; - } | { case: undefined; value?: undefined }; - - /** - * @generated from oneof livekit.TrackCompositeEgressRequest.options - */ - options: { - /** - * (default H264_720P_30) - * - * @generated from field: livekit.EncodingOptionsPreset preset = 6; - */ - value: EncodingOptionsPreset; - case: "preset"; - } | { - /** - * (optional) - * - * @generated from field: livekit.EncodingOptions advanced = 7; - */ - value: EncodingOptions; - case: "advanced"; - } | { case: undefined; value?: undefined }; - - /** - * @generated from field: repeated livekit.EncodedFileOutput file_outputs = 11; - */ - fileOutputs: EncodedFileOutput[]; - - /** - * @generated from field: repeated livekit.StreamOutput stream_outputs = 12; - */ - streamOutputs: StreamOutput[]; - - /** - * @generated from field: repeated livekit.SegmentedFileOutput segment_outputs = 13; - */ - segmentOutputs: SegmentedFileOutput[]; - - /** - * @generated from field: repeated livekit.ImageOutput image_outputs = 14; - */ - imageOutputs: ImageOutput[]; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.TrackCompositeEgressRequest"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): TrackCompositeEgressRequest; - - static fromJson(jsonValue: JsonValue, options?: Partial): TrackCompositeEgressRequest; - - static fromJsonString(jsonString: string, options?: Partial): TrackCompositeEgressRequest; - - static equals(a: TrackCompositeEgressRequest | PlainMessage | undefined, b: TrackCompositeEgressRequest | PlainMessage | undefined): boolean; -} - -/** - * record tracks individually, without transcoding - * - * @generated from message livekit.TrackEgressRequest - */ -export declare class TrackEgressRequest extends Message { - /** - * required - * - * @generated from field: string room_name = 1; - */ - roomName: string; - - /** - * required - * - * @generated from field: string track_id = 2; - */ - trackId: string; - - /** - * required - * - * @generated from oneof livekit.TrackEgressRequest.output - */ - output: { - /** - * @generated from field: livekit.DirectFileOutput file = 3; - */ - value: DirectFileOutput; - case: "file"; - } | { - /** - * @generated from field: string websocket_url = 4; - */ - value: string; - case: "websocketUrl"; - } | { case: undefined; value?: undefined }; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.TrackEgressRequest"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): TrackEgressRequest; - - static fromJson(jsonValue: JsonValue, options?: Partial): TrackEgressRequest; - - static fromJsonString(jsonString: string, options?: Partial): TrackEgressRequest; - - static equals(a: TrackEgressRequest | PlainMessage | undefined, b: TrackEgressRequest | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.EncodedFileOutput - */ -export declare class EncodedFileOutput extends Message { - /** - * (optional) - * - * @generated from field: livekit.EncodedFileType file_type = 1; - */ - fileType: EncodedFileType; - - /** - * see egress docs for templating (default {room_name}-{time}) - * - * @generated from field: string filepath = 2; - */ - filepath: string; - - /** - * disable upload of manifest file (default false) - * - * @generated from field: bool disable_manifest = 6; - */ - disableManifest: boolean; - - /** - * @generated from oneof livekit.EncodedFileOutput.output - */ - output: { - /** - * @generated from field: livekit.S3Upload s3 = 3; - */ - value: S3Upload; - case: "s3"; - } | { - /** - * @generated from field: livekit.GCPUpload gcp = 4; - */ - value: GCPUpload; - case: "gcp"; - } | { - /** - * @generated from field: livekit.AzureBlobUpload azure = 5; - */ - value: AzureBlobUpload; - case: "azure"; - } | { - /** - * @generated from field: livekit.AliOSSUpload aliOSS = 7; - */ - value: AliOSSUpload; - case: "aliOSS"; - } | { case: undefined; value?: undefined }; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.EncodedFileOutput"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): EncodedFileOutput; - - static fromJson(jsonValue: JsonValue, options?: Partial): EncodedFileOutput; - - static fromJsonString(jsonString: string, options?: Partial): EncodedFileOutput; - - static equals(a: EncodedFileOutput | PlainMessage | undefined, b: EncodedFileOutput | PlainMessage | undefined): boolean; -} - -/** - * Used to generate HLS segments or other kind of segmented output - * - * @generated from message livekit.SegmentedFileOutput - */ -export declare class SegmentedFileOutput extends Message { - /** - * (optional) - * - * @generated from field: livekit.SegmentedFileProtocol protocol = 1; - */ - protocol: SegmentedFileProtocol; - - /** - * (optional) - * - * @generated from field: string filename_prefix = 2; - */ - filenamePrefix: string; - - /** - * (optional) - * - * @generated from field: string playlist_name = 3; - */ - playlistName: string; - - /** - * (optional, disabled if not provided). Path of a live playlist - * - * @generated from field: string live_playlist_name = 11; - */ - livePlaylistName: string; - - /** - * in seconds (optional) - * - * @generated from field: uint32 segment_duration = 4; - */ - segmentDuration: number; - - /** - * (optional, default INDEX) - * - * @generated from field: livekit.SegmentedFileSuffix filename_suffix = 10; - */ - filenameSuffix: SegmentedFileSuffix; - - /** - * disable upload of manifest file (default false) - * - * @generated from field: bool disable_manifest = 8; - */ - disableManifest: boolean; - - /** - * required - * - * @generated from oneof livekit.SegmentedFileOutput.output - */ - output: { - /** - * @generated from field: livekit.S3Upload s3 = 5; - */ - value: S3Upload; - case: "s3"; - } | { - /** - * @generated from field: livekit.GCPUpload gcp = 6; - */ - value: GCPUpload; - case: "gcp"; - } | { - /** - * @generated from field: livekit.AzureBlobUpload azure = 7; - */ - value: AzureBlobUpload; - case: "azure"; - } | { - /** - * @generated from field: livekit.AliOSSUpload aliOSS = 9; - */ - value: AliOSSUpload; - case: "aliOSS"; - } | { case: undefined; value?: undefined }; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.SegmentedFileOutput"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): SegmentedFileOutput; - - static fromJson(jsonValue: JsonValue, options?: Partial): SegmentedFileOutput; - - static fromJsonString(jsonString: string, options?: Partial): SegmentedFileOutput; - - static equals(a: SegmentedFileOutput | PlainMessage | undefined, b: SegmentedFileOutput | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.DirectFileOutput - */ -export declare class DirectFileOutput extends Message { - /** - * see egress docs for templating (default {track_id}-{time}) - * - * @generated from field: string filepath = 1; - */ - filepath: string; - - /** - * disable upload of manifest file (default false) - * - * @generated from field: bool disable_manifest = 5; - */ - disableManifest: boolean; - - /** - * @generated from oneof livekit.DirectFileOutput.output - */ - output: { - /** - * @generated from field: livekit.S3Upload s3 = 2; - */ - value: S3Upload; - case: "s3"; - } | { - /** - * @generated from field: livekit.GCPUpload gcp = 3; - */ - value: GCPUpload; - case: "gcp"; - } | { - /** - * @generated from field: livekit.AzureBlobUpload azure = 4; - */ - value: AzureBlobUpload; - case: "azure"; - } | { - /** - * @generated from field: livekit.AliOSSUpload aliOSS = 6; - */ - value: AliOSSUpload; - case: "aliOSS"; - } | { case: undefined; value?: undefined }; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.DirectFileOutput"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): DirectFileOutput; - - static fromJson(jsonValue: JsonValue, options?: Partial): DirectFileOutput; - - static fromJsonString(jsonString: string, options?: Partial): DirectFileOutput; - - static equals(a: DirectFileOutput | PlainMessage | undefined, b: DirectFileOutput | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.ImageOutput - */ -export declare class ImageOutput extends Message { - /** - * in seconds (required) - * - * @generated from field: uint32 capture_interval = 1; - */ - captureInterval: number; - - /** - * (optional, defaults to track width) - * - * @generated from field: int32 width = 2; - */ - width: number; - - /** - * (optional, defaults to track height) - * - * @generated from field: int32 height = 3; - */ - height: number; - - /** - * (optional) - * - * @generated from field: string filename_prefix = 4; - */ - filenamePrefix: string; - - /** - * (optional, default INDEX) - * - * @generated from field: livekit.ImageFileSuffix filename_suffix = 5; - */ - filenameSuffix: ImageFileSuffix; - - /** - * (optional) - * - * @generated from field: livekit.ImageCodec image_codec = 6; - */ - imageCodec: ImageCodec; - - /** - * disable upload of manifest file (default false) - * - * @generated from field: bool disable_manifest = 7; - */ - disableManifest: boolean; - - /** - * required - * - * @generated from oneof livekit.ImageOutput.output - */ - output: { - /** - * @generated from field: livekit.S3Upload s3 = 8; - */ - value: S3Upload; - case: "s3"; - } | { - /** - * @generated from field: livekit.GCPUpload gcp = 9; - */ - value: GCPUpload; - case: "gcp"; - } | { - /** - * @generated from field: livekit.AzureBlobUpload azure = 10; - */ - value: AzureBlobUpload; - case: "azure"; - } | { - /** - * @generated from field: livekit.AliOSSUpload aliOSS = 11; - */ - value: AliOSSUpload; - case: "aliOSS"; - } | { case: undefined; value?: undefined }; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.ImageOutput"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ImageOutput; - - static fromJson(jsonValue: JsonValue, options?: Partial): ImageOutput; - - static fromJsonString(jsonString: string, options?: Partial): ImageOutput; - - static equals(a: ImageOutput | PlainMessage | undefined, b: ImageOutput | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.S3Upload - */ -export declare class S3Upload extends Message { - /** - * @generated from field: string access_key = 1; - */ - accessKey: string; - - /** - * @generated from field: string secret = 2; - */ - secret: string; - - /** - * @generated from field: string region = 3; - */ - region: string; - - /** - * @generated from field: string endpoint = 4; - */ - endpoint: string; - - /** - * @generated from field: string bucket = 5; - */ - bucket: string; - - /** - * @generated from field: bool force_path_style = 6; - */ - forcePathStyle: boolean; - - /** - * @generated from field: map metadata = 7; - */ - metadata: { [key: string]: string }; - - /** - * @generated from field: string tagging = 8; - */ - tagging: string; - - /** - * Content-Disposition header - * - * @generated from field: string content_disposition = 9; - */ - contentDisposition: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.S3Upload"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): S3Upload; - - static fromJson(jsonValue: JsonValue, options?: Partial): S3Upload; - - static fromJsonString(jsonString: string, options?: Partial): S3Upload; - - static equals(a: S3Upload | PlainMessage | undefined, b: S3Upload | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.GCPUpload - */ -export declare class GCPUpload extends Message { - /** - * service account credentials serialized in JSON "credentials.json" - * - * @generated from field: string credentials = 1; - */ - credentials: string; - - /** - * @generated from field: string bucket = 2; - */ - bucket: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.GCPUpload"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): GCPUpload; - - static fromJson(jsonValue: JsonValue, options?: Partial): GCPUpload; - - static fromJsonString(jsonString: string, options?: Partial): GCPUpload; - - static equals(a: GCPUpload | PlainMessage | undefined, b: GCPUpload | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.AzureBlobUpload - */ -export declare class AzureBlobUpload extends Message { - /** - * @generated from field: string account_name = 1; - */ - accountName: string; - - /** - * @generated from field: string account_key = 2; - */ - accountKey: string; - - /** - * @generated from field: string container_name = 3; - */ - containerName: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.AzureBlobUpload"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): AzureBlobUpload; - - static fromJson(jsonValue: JsonValue, options?: Partial): AzureBlobUpload; - - static fromJsonString(jsonString: string, options?: Partial): AzureBlobUpload; - - static equals(a: AzureBlobUpload | PlainMessage | undefined, b: AzureBlobUpload | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.AliOSSUpload - */ -export declare class AliOSSUpload extends Message { - /** - * @generated from field: string access_key = 1; - */ - accessKey: string; - - /** - * @generated from field: string secret = 2; - */ - secret: string; - - /** - * @generated from field: string region = 3; - */ - region: string; - - /** - * @generated from field: string endpoint = 4; - */ - endpoint: string; - - /** - * @generated from field: string bucket = 5; - */ - bucket: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.AliOSSUpload"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): AliOSSUpload; - - static fromJson(jsonValue: JsonValue, options?: Partial): AliOSSUpload; - - static fromJsonString(jsonString: string, options?: Partial): AliOSSUpload; - - static equals(a: AliOSSUpload | PlainMessage | undefined, b: AliOSSUpload | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.StreamOutput - */ -export declare class StreamOutput extends Message { - /** - * required - * - * @generated from field: livekit.StreamProtocol protocol = 1; - */ - protocol: StreamProtocol; - - /** - * required - * - * @generated from field: repeated string urls = 2; - */ - urls: string[]; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.StreamOutput"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): StreamOutput; - - static fromJson(jsonValue: JsonValue, options?: Partial): StreamOutput; - - static fromJsonString(jsonString: string, options?: Partial): StreamOutput; - - static equals(a: StreamOutput | PlainMessage | undefined, b: StreamOutput | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.EncodingOptions - */ -export declare class EncodingOptions extends Message { - /** - * (default 1920) - * - * @generated from field: int32 width = 1; - */ - width: number; - - /** - * (default 1080) - * - * @generated from field: int32 height = 2; - */ - height: number; - - /** - * (default 24) - * - * @generated from field: int32 depth = 3; - */ - depth: number; - - /** - * (default 30) - * - * @generated from field: int32 framerate = 4; - */ - framerate: number; - - /** - * (default OPUS) - * - * @generated from field: livekit.AudioCodec audio_codec = 5; - */ - audioCodec: AudioCodec; - - /** - * (default 128) - * - * @generated from field: int32 audio_bitrate = 6; - */ - audioBitrate: number; - - /** - * quality setting on audio encoder - * - * @generated from field: int32 audio_quality = 11; - */ - audioQuality: number; - - /** - * (default 44100) - * - * @generated from field: int32 audio_frequency = 7; - */ - audioFrequency: number; - - /** - * (default H264_MAIN) - * - * @generated from field: livekit.VideoCodec video_codec = 8; - */ - videoCodec: VideoCodec; - - /** - * (default 4500) - * - * @generated from field: int32 video_bitrate = 9; - */ - videoBitrate: number; - - /** - * quality setting on video encoder - * - * @generated from field: int32 video_quality = 12; - */ - videoQuality: number; - - /** - * in seconds (default 4s for streaming, segment duration for segmented output, encoder default for files) - * - * @generated from field: double key_frame_interval = 10; - */ - keyFrameInterval: number; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.EncodingOptions"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): EncodingOptions; - - static fromJson(jsonValue: JsonValue, options?: Partial): EncodingOptions; - - static fromJsonString(jsonString: string, options?: Partial): EncodingOptions; - - static equals(a: EncodingOptions | PlainMessage | undefined, b: EncodingOptions | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.UpdateLayoutRequest - */ -export declare class UpdateLayoutRequest extends Message { - /** - * @generated from field: string egress_id = 1; - */ - egressId: string; - - /** - * @generated from field: string layout = 2; - */ - layout: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.UpdateLayoutRequest"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): UpdateLayoutRequest; - - static fromJson(jsonValue: JsonValue, options?: Partial): UpdateLayoutRequest; - - static fromJsonString(jsonString: string, options?: Partial): UpdateLayoutRequest; - - static equals(a: UpdateLayoutRequest | PlainMessage | undefined, b: UpdateLayoutRequest | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.UpdateStreamRequest - */ -export declare class UpdateStreamRequest extends Message { - /** - * @generated from field: string egress_id = 1; - */ - egressId: string; - - /** - * @generated from field: repeated string add_output_urls = 2; - */ - addOutputUrls: string[]; - - /** - * @generated from field: repeated string remove_output_urls = 3; - */ - removeOutputUrls: string[]; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.UpdateStreamRequest"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): UpdateStreamRequest; - - static fromJson(jsonValue: JsonValue, options?: Partial): UpdateStreamRequest; - - static fromJsonString(jsonString: string, options?: Partial): UpdateStreamRequest; - - static equals(a: UpdateStreamRequest | PlainMessage | undefined, b: UpdateStreamRequest | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.ListEgressRequest - */ -export declare class ListEgressRequest extends Message { - /** - * (optional, filter by room name) - * - * @generated from field: string room_name = 1; - */ - roomName: string; - - /** - * (optional, filter by egress ID) - * - * @generated from field: string egress_id = 2; - */ - egressId: string; - - /** - * (optional, list active egress only) - * - * @generated from field: bool active = 3; - */ - active: boolean; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.ListEgressRequest"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ListEgressRequest; - - static fromJson(jsonValue: JsonValue, options?: Partial): ListEgressRequest; - - static fromJsonString(jsonString: string, options?: Partial): ListEgressRequest; - - static equals(a: ListEgressRequest | PlainMessage | undefined, b: ListEgressRequest | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.ListEgressResponse - */ -export declare class ListEgressResponse extends Message { - /** - * @generated from field: repeated livekit.EgressInfo items = 1; - */ - items: EgressInfo[]; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.ListEgressResponse"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ListEgressResponse; - - static fromJson(jsonValue: JsonValue, options?: Partial): ListEgressResponse; - - static fromJsonString(jsonString: string, options?: Partial): ListEgressResponse; - - static equals(a: ListEgressResponse | PlainMessage | undefined, b: ListEgressResponse | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.StopEgressRequest - */ -export declare class StopEgressRequest extends Message { - /** - * @generated from field: string egress_id = 1; - */ - egressId: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.StopEgressRequest"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): StopEgressRequest; - - static fromJson(jsonValue: JsonValue, options?: Partial): StopEgressRequest; - - static fromJsonString(jsonString: string, options?: Partial): StopEgressRequest; - - static equals(a: StopEgressRequest | PlainMessage | undefined, b: StopEgressRequest | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.EgressInfo - */ -export declare class EgressInfo extends Message { - /** - * @generated from field: string egress_id = 1; - */ - egressId: string; - - /** - * @generated from field: string room_id = 2; - */ - roomId: string; - - /** - * @generated from field: string room_name = 13; - */ - roomName: string; - - /** - * @generated from field: livekit.EgressStatus status = 3; - */ - status: EgressStatus; - - /** - * @generated from field: int64 started_at = 10; - */ - startedAt: bigint; - - /** - * @generated from field: int64 ended_at = 11; - */ - endedAt: bigint; - - /** - * @generated from field: int64 updated_at = 18; - */ - updatedAt: bigint; - - /** - * @generated from field: string error = 9; - */ - error: string; - - /** - * @generated from oneof livekit.EgressInfo.request - */ - request: { - /** - * @generated from field: livekit.RoomCompositeEgressRequest room_composite = 4; - */ - value: RoomCompositeEgressRequest; - case: "roomComposite"; - } | { - /** - * @generated from field: livekit.WebEgressRequest web = 14; - */ - value: WebEgressRequest; - case: "web"; - } | { - /** - * @generated from field: livekit.ParticipantEgressRequest participant = 19; - */ - value: ParticipantEgressRequest; - case: "participant"; - } | { - /** - * @generated from field: livekit.TrackCompositeEgressRequest track_composite = 5; - */ - value: TrackCompositeEgressRequest; - case: "trackComposite"; - } | { - /** - * @generated from field: livekit.TrackEgressRequest track = 6; - */ - value: TrackEgressRequest; - case: "track"; - } | { case: undefined; value?: undefined }; - - /** - * deprecated (use _result fields) - * - * @generated from oneof livekit.EgressInfo.result - */ - result: { - /** - * @generated from field: livekit.StreamInfoList stream = 7 [deprecated = true]; - * @deprecated - */ - value: StreamInfoList; - case: "stream"; - } | { - /** - * @generated from field: livekit.FileInfo file = 8 [deprecated = true]; - * @deprecated - */ - value: FileInfo; - case: "file"; - } | { - /** - * @generated from field: livekit.SegmentsInfo segments = 12 [deprecated = true]; - * @deprecated - */ - value: SegmentsInfo; - case: "segments"; - } | { case: undefined; value?: undefined }; - - /** - * @generated from field: repeated livekit.StreamInfo stream_results = 15; - */ - streamResults: StreamInfo[]; - - /** - * @generated from field: repeated livekit.FileInfo file_results = 16; - */ - fileResults: FileInfo[]; - - /** - * @generated from field: repeated livekit.SegmentsInfo segment_results = 17; - */ - segmentResults: SegmentsInfo[]; - - /** - * @generated from field: repeated livekit.ImagesInfo image_results = 20; - */ - imageResults: ImagesInfo[]; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.EgressInfo"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): EgressInfo; - - static fromJson(jsonValue: JsonValue, options?: Partial): EgressInfo; - - static fromJsonString(jsonString: string, options?: Partial): EgressInfo; - - static equals(a: EgressInfo | PlainMessage | undefined, b: EgressInfo | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.StreamInfoList - * @deprecated - */ -export declare class StreamInfoList extends Message { - /** - * @generated from field: repeated livekit.StreamInfo info = 1; - */ - info: StreamInfo[]; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.StreamInfoList"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): StreamInfoList; - - static fromJson(jsonValue: JsonValue, options?: Partial): StreamInfoList; - - static fromJsonString(jsonString: string, options?: Partial): StreamInfoList; - - static equals(a: StreamInfoList | PlainMessage | undefined, b: StreamInfoList | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.StreamInfo - */ -export declare class StreamInfo extends Message { - /** - * @generated from field: string url = 1; - */ - url: string; - - /** - * @generated from field: int64 started_at = 2; - */ - startedAt: bigint; - - /** - * @generated from field: int64 ended_at = 3; - */ - endedAt: bigint; - - /** - * @generated from field: int64 duration = 4; - */ - duration: bigint; - - /** - * @generated from field: livekit.StreamInfo.Status status = 5; - */ - status: StreamInfo_Status; - - /** - * @generated from field: string error = 6; - */ - error: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.StreamInfo"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): StreamInfo; - - static fromJson(jsonValue: JsonValue, options?: Partial): StreamInfo; - - static fromJsonString(jsonString: string, options?: Partial): StreamInfo; - - static equals(a: StreamInfo | PlainMessage | undefined, b: StreamInfo | PlainMessage | undefined): boolean; -} - -/** - * @generated from enum livekit.StreamInfo.Status - */ -export declare enum StreamInfo_Status { - /** - * @generated from enum value: ACTIVE = 0; - */ - ACTIVE = 0, - - /** - * @generated from enum value: FINISHED = 1; - */ - FINISHED = 1, - - /** - * @generated from enum value: FAILED = 2; - */ - FAILED = 2, -} - -/** - * @generated from message livekit.FileInfo - */ -export declare class FileInfo extends Message { - /** - * @generated from field: string filename = 1; - */ - filename: string; - - /** - * @generated from field: int64 started_at = 2; - */ - startedAt: bigint; - - /** - * @generated from field: int64 ended_at = 3; - */ - endedAt: bigint; - - /** - * @generated from field: int64 duration = 6; - */ - duration: bigint; - - /** - * @generated from field: int64 size = 4; - */ - size: bigint; - - /** - * @generated from field: string location = 5; - */ - location: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.FileInfo"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): FileInfo; - - static fromJson(jsonValue: JsonValue, options?: Partial): FileInfo; - - static fromJsonString(jsonString: string, options?: Partial): FileInfo; - - static equals(a: FileInfo | PlainMessage | undefined, b: FileInfo | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.SegmentsInfo - */ -export declare class SegmentsInfo extends Message { - /** - * @generated from field: string playlist_name = 1; - */ - playlistName: string; - - /** - * @generated from field: string live_playlist_name = 8; - */ - livePlaylistName: string; - - /** - * @generated from field: int64 duration = 2; - */ - duration: bigint; - - /** - * @generated from field: int64 size = 3; - */ - size: bigint; - - /** - * @generated from field: string playlist_location = 4; - */ - playlistLocation: string; - - /** - * @generated from field: string live_playlist_location = 9; - */ - livePlaylistLocation: string; - - /** - * @generated from field: int64 segment_count = 5; - */ - segmentCount: bigint; - - /** - * @generated from field: int64 started_at = 6; - */ - startedAt: bigint; - - /** - * @generated from field: int64 ended_at = 7; - */ - endedAt: bigint; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.SegmentsInfo"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): SegmentsInfo; - - static fromJson(jsonValue: JsonValue, options?: Partial): SegmentsInfo; - - static fromJsonString(jsonString: string, options?: Partial): SegmentsInfo; - - static equals(a: SegmentsInfo | PlainMessage | undefined, b: SegmentsInfo | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.ImagesInfo - */ -export declare class ImagesInfo extends Message { - /** - * @generated from field: int64 image_count = 1; - */ - imageCount: bigint; - - /** - * @generated from field: int64 started_at = 2; - */ - startedAt: bigint; - - /** - * @generated from field: int64 ended_at = 3; - */ - endedAt: bigint; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.ImagesInfo"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ImagesInfo; - - static fromJson(jsonValue: JsonValue, options?: Partial): ImagesInfo; - - static fromJsonString(jsonString: string, options?: Partial): ImagesInfo; - - static equals(a: ImagesInfo | PlainMessage | undefined, b: ImagesInfo | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.AutoParticipantEgress - */ -export declare class AutoParticipantEgress extends Message { - /** - * @generated from oneof livekit.AutoParticipantEgress.options - */ - options: { - /** - * (default H264_720P_30) - * - * @generated from field: livekit.EncodingOptionsPreset preset = 1; - */ - value: EncodingOptionsPreset; - case: "preset"; - } | { - /** - * (optional) - * - * @generated from field: livekit.EncodingOptions advanced = 2; - */ - value: EncodingOptions; - case: "advanced"; - } | { case: undefined; value?: undefined }; - - /** - * @generated from field: repeated livekit.EncodedFileOutput file_outputs = 3; - */ - fileOutputs: EncodedFileOutput[]; - - /** - * @generated from field: repeated livekit.SegmentedFileOutput segment_outputs = 4; - */ - segmentOutputs: SegmentedFileOutput[]; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.AutoParticipantEgress"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): AutoParticipantEgress; - - static fromJson(jsonValue: JsonValue, options?: Partial): AutoParticipantEgress; - - static fromJsonString(jsonString: string, options?: Partial): AutoParticipantEgress; - - static equals(a: AutoParticipantEgress | PlainMessage | undefined, b: AutoParticipantEgress | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.AutoTrackEgress - */ -export declare class AutoTrackEgress extends Message { - /** - * see docs for templating (default {track_id}-{time}) - * - * @generated from field: string filepath = 1; - */ - filepath: string; - - /** - * disables upload of json manifest file (default false) - * - * @generated from field: bool disable_manifest = 5; - */ - disableManifest: boolean; - - /** - * @generated from oneof livekit.AutoTrackEgress.output - */ - output: { - /** - * @generated from field: livekit.S3Upload s3 = 2; - */ - value: S3Upload; - case: "s3"; - } | { - /** - * @generated from field: livekit.GCPUpload gcp = 3; - */ - value: GCPUpload; - case: "gcp"; - } | { - /** - * @generated from field: livekit.AzureBlobUpload azure = 4; - */ - value: AzureBlobUpload; - case: "azure"; - } | { case: undefined; value?: undefined }; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.AutoTrackEgress"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): AutoTrackEgress; - - static fromJson(jsonValue: JsonValue, options?: Partial): AutoTrackEgress; - - static fromJsonString(jsonString: string, options?: Partial): AutoTrackEgress; - - static equals(a: AutoTrackEgress | PlainMessage | undefined, b: AutoTrackEgress | PlainMessage | undefined): boolean; -} - diff --git a/packages/javascript/src/gen/livekit_egress_pb.js b/packages/javascript/src/gen/livekit_egress_pb.js deleted file mode 100644 index 172720b2..00000000 --- a/packages/javascript/src/gen/livekit_egress_pb.js +++ /dev/null @@ -1,572 +0,0 @@ -// Copyright 2023 LiveKit, Inc. -// -// 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. - -// @generated by protoc-gen-es v1.7.2 with parameter "target=js+dts" -// @generated from file livekit_egress.proto (package livekit, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { proto3 } from "@bufbuild/protobuf"; -import { AudioCodec, ImageCodec, VideoCodec } from "./livekit_models_pb.js"; - -/** - * @generated from enum livekit.EncodedFileType - */ -export const EncodedFileType = proto3.makeEnum( - "livekit.EncodedFileType", - [ - {no: 0, name: "DEFAULT_FILETYPE"}, - {no: 1, name: "MP4"}, - {no: 2, name: "OGG"}, - ], -); - -/** - * @generated from enum livekit.SegmentedFileProtocol - */ -export const SegmentedFileProtocol = proto3.makeEnum( - "livekit.SegmentedFileProtocol", - [ - {no: 0, name: "DEFAULT_SEGMENTED_FILE_PROTOCOL"}, - {no: 1, name: "HLS_PROTOCOL"}, - ], -); - -/** - * @generated from enum livekit.SegmentedFileSuffix - */ -export const SegmentedFileSuffix = proto3.makeEnum( - "livekit.SegmentedFileSuffix", - [ - {no: 0, name: "INDEX"}, - {no: 1, name: "TIMESTAMP"}, - ], -); - -/** - * @generated from enum livekit.ImageFileSuffix - */ -export const ImageFileSuffix = proto3.makeEnum( - "livekit.ImageFileSuffix", - [ - {no: 0, name: "IMAGE_SUFFIX_INDEX"}, - {no: 1, name: "IMAGE_SUFFIX_TIMESTAMP"}, - ], -); - -/** - * @generated from enum livekit.StreamProtocol - */ -export const StreamProtocol = proto3.makeEnum( - "livekit.StreamProtocol", - [ - {no: 0, name: "DEFAULT_PROTOCOL"}, - {no: 1, name: "RTMP"}, - ], -); - -/** - * @generated from enum livekit.EncodingOptionsPreset - */ -export const EncodingOptionsPreset = proto3.makeEnum( - "livekit.EncodingOptionsPreset", - [ - {no: 0, name: "H264_720P_30"}, - {no: 1, name: "H264_720P_60"}, - {no: 2, name: "H264_1080P_30"}, - {no: 3, name: "H264_1080P_60"}, - {no: 4, name: "PORTRAIT_H264_720P_30"}, - {no: 5, name: "PORTRAIT_H264_720P_60"}, - {no: 6, name: "PORTRAIT_H264_1080P_30"}, - {no: 7, name: "PORTRAIT_H264_1080P_60"}, - ], -); - -/** - * @generated from enum livekit.EgressStatus - */ -export const EgressStatus = proto3.makeEnum( - "livekit.EgressStatus", - [ - {no: 0, name: "EGRESS_STARTING"}, - {no: 1, name: "EGRESS_ACTIVE"}, - {no: 2, name: "EGRESS_ENDING"}, - {no: 3, name: "EGRESS_COMPLETE"}, - {no: 4, name: "EGRESS_FAILED"}, - {no: 5, name: "EGRESS_ABORTED"}, - {no: 6, name: "EGRESS_LIMIT_REACHED"}, - ], -); - -/** - * composite using a web browser - * - * @generated from message livekit.RoomCompositeEgressRequest - */ -export const RoomCompositeEgressRequest = proto3.makeMessageType( - "livekit.RoomCompositeEgressRequest", - () => [ - { no: 1, name: "room_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "layout", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "audio_only", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 4, name: "video_only", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 5, name: "custom_base_url", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "file", kind: "message", T: EncodedFileOutput, oneof: "output" }, - { no: 7, name: "stream", kind: "message", T: StreamOutput, oneof: "output" }, - { no: 10, name: "segments", kind: "message", T: SegmentedFileOutput, oneof: "output" }, - { no: 8, name: "preset", kind: "enum", T: proto3.getEnumType(EncodingOptionsPreset), oneof: "options" }, - { no: 9, name: "advanced", kind: "message", T: EncodingOptions, oneof: "options" }, - { no: 11, name: "file_outputs", kind: "message", T: EncodedFileOutput, repeated: true }, - { no: 12, name: "stream_outputs", kind: "message", T: StreamOutput, repeated: true }, - { no: 13, name: "segment_outputs", kind: "message", T: SegmentedFileOutput, repeated: true }, - { no: 14, name: "image_outputs", kind: "message", T: ImageOutput, repeated: true }, - ], -); - -/** - * record any website - * - * @generated from message livekit.WebEgressRequest - */ -export const WebEgressRequest = proto3.makeMessageType( - "livekit.WebEgressRequest", - () => [ - { no: 1, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "audio_only", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 3, name: "video_only", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 12, name: "await_start_signal", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 4, name: "file", kind: "message", T: EncodedFileOutput, oneof: "output" }, - { no: 5, name: "stream", kind: "message", T: StreamOutput, oneof: "output" }, - { no: 6, name: "segments", kind: "message", T: SegmentedFileOutput, oneof: "output" }, - { no: 7, name: "preset", kind: "enum", T: proto3.getEnumType(EncodingOptionsPreset), oneof: "options" }, - { no: 8, name: "advanced", kind: "message", T: EncodingOptions, oneof: "options" }, - { no: 9, name: "file_outputs", kind: "message", T: EncodedFileOutput, repeated: true }, - { no: 10, name: "stream_outputs", kind: "message", T: StreamOutput, repeated: true }, - { no: 11, name: "segment_outputs", kind: "message", T: SegmentedFileOutput, repeated: true }, - { no: 13, name: "image_outputs", kind: "message", T: ImageOutput, repeated: true }, - ], -); - -/** - * record audio and video from a single participant - * - * @generated from message livekit.ParticipantEgressRequest - */ -export const ParticipantEgressRequest = proto3.makeMessageType( - "livekit.ParticipantEgressRequest", - () => [ - { no: 1, name: "room_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "screen_share", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 4, name: "preset", kind: "enum", T: proto3.getEnumType(EncodingOptionsPreset), oneof: "options" }, - { no: 5, name: "advanced", kind: "message", T: EncodingOptions, oneof: "options" }, - { no: 6, name: "file_outputs", kind: "message", T: EncodedFileOutput, repeated: true }, - { no: 7, name: "stream_outputs", kind: "message", T: StreamOutput, repeated: true }, - { no: 8, name: "segment_outputs", kind: "message", T: SegmentedFileOutput, repeated: true }, - { no: 9, name: "image_outputs", kind: "message", T: ImageOutput, repeated: true }, - ], -); - -/** - * containerize up to one audio and one video track - * - * @generated from message livekit.TrackCompositeEgressRequest - */ -export const TrackCompositeEgressRequest = proto3.makeMessageType( - "livekit.TrackCompositeEgressRequest", - () => [ - { no: 1, name: "room_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "audio_track_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "video_track_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "file", kind: "message", T: EncodedFileOutput, oneof: "output" }, - { no: 5, name: "stream", kind: "message", T: StreamOutput, oneof: "output" }, - { no: 8, name: "segments", kind: "message", T: SegmentedFileOutput, oneof: "output" }, - { no: 6, name: "preset", kind: "enum", T: proto3.getEnumType(EncodingOptionsPreset), oneof: "options" }, - { no: 7, name: "advanced", kind: "message", T: EncodingOptions, oneof: "options" }, - { no: 11, name: "file_outputs", kind: "message", T: EncodedFileOutput, repeated: true }, - { no: 12, name: "stream_outputs", kind: "message", T: StreamOutput, repeated: true }, - { no: 13, name: "segment_outputs", kind: "message", T: SegmentedFileOutput, repeated: true }, - { no: 14, name: "image_outputs", kind: "message", T: ImageOutput, repeated: true }, - ], -); - -/** - * record tracks individually, without transcoding - * - * @generated from message livekit.TrackEgressRequest - */ -export const TrackEgressRequest = proto3.makeMessageType( - "livekit.TrackEgressRequest", - () => [ - { no: 1, name: "room_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "track_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "file", kind: "message", T: DirectFileOutput, oneof: "output" }, - { no: 4, name: "websocket_url", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "output" }, - ], -); - -/** - * @generated from message livekit.EncodedFileOutput - */ -export const EncodedFileOutput = proto3.makeMessageType( - "livekit.EncodedFileOutput", - () => [ - { no: 1, name: "file_type", kind: "enum", T: proto3.getEnumType(EncodedFileType) }, - { no: 2, name: "filepath", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "disable_manifest", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 3, name: "s3", kind: "message", T: S3Upload, oneof: "output" }, - { no: 4, name: "gcp", kind: "message", T: GCPUpload, oneof: "output" }, - { no: 5, name: "azure", kind: "message", T: AzureBlobUpload, oneof: "output" }, - { no: 7, name: "aliOSS", kind: "message", T: AliOSSUpload, oneof: "output" }, - ], -); - -/** - * Used to generate HLS segments or other kind of segmented output - * - * @generated from message livekit.SegmentedFileOutput - */ -export const SegmentedFileOutput = proto3.makeMessageType( - "livekit.SegmentedFileOutput", - () => [ - { no: 1, name: "protocol", kind: "enum", T: proto3.getEnumType(SegmentedFileProtocol) }, - { no: 2, name: "filename_prefix", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "playlist_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 11, name: "live_playlist_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "segment_duration", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 10, name: "filename_suffix", kind: "enum", T: proto3.getEnumType(SegmentedFileSuffix) }, - { no: 8, name: "disable_manifest", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 5, name: "s3", kind: "message", T: S3Upload, oneof: "output" }, - { no: 6, name: "gcp", kind: "message", T: GCPUpload, oneof: "output" }, - { no: 7, name: "azure", kind: "message", T: AzureBlobUpload, oneof: "output" }, - { no: 9, name: "aliOSS", kind: "message", T: AliOSSUpload, oneof: "output" }, - ], -); - -/** - * @generated from message livekit.DirectFileOutput - */ -export const DirectFileOutput = proto3.makeMessageType( - "livekit.DirectFileOutput", - () => [ - { no: 1, name: "filepath", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "disable_manifest", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 2, name: "s3", kind: "message", T: S3Upload, oneof: "output" }, - { no: 3, name: "gcp", kind: "message", T: GCPUpload, oneof: "output" }, - { no: 4, name: "azure", kind: "message", T: AzureBlobUpload, oneof: "output" }, - { no: 6, name: "aliOSS", kind: "message", T: AliOSSUpload, oneof: "output" }, - ], -); - -/** - * @generated from message livekit.ImageOutput - */ -export const ImageOutput = proto3.makeMessageType( - "livekit.ImageOutput", - () => [ - { no: 1, name: "capture_interval", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 2, name: "width", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 3, name: "height", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 4, name: "filename_prefix", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "filename_suffix", kind: "enum", T: proto3.getEnumType(ImageFileSuffix) }, - { no: 6, name: "image_codec", kind: "enum", T: proto3.getEnumType(ImageCodec) }, - { no: 7, name: "disable_manifest", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 8, name: "s3", kind: "message", T: S3Upload, oneof: "output" }, - { no: 9, name: "gcp", kind: "message", T: GCPUpload, oneof: "output" }, - { no: 10, name: "azure", kind: "message", T: AzureBlobUpload, oneof: "output" }, - { no: 11, name: "aliOSS", kind: "message", T: AliOSSUpload, oneof: "output" }, - ], -); - -/** - * @generated from message livekit.S3Upload - */ -export const S3Upload = proto3.makeMessageType( - "livekit.S3Upload", - () => [ - { no: 1, name: "access_key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "secret", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "region", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "endpoint", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "bucket", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "force_path_style", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 7, name: "metadata", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} }, - { no: 8, name: "tagging", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 9, name: "content_disposition", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message livekit.GCPUpload - */ -export const GCPUpload = proto3.makeMessageType( - "livekit.GCPUpload", - () => [ - { no: 1, name: "credentials", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "bucket", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message livekit.AzureBlobUpload - */ -export const AzureBlobUpload = proto3.makeMessageType( - "livekit.AzureBlobUpload", - () => [ - { no: 1, name: "account_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "account_key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "container_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message livekit.AliOSSUpload - */ -export const AliOSSUpload = proto3.makeMessageType( - "livekit.AliOSSUpload", - () => [ - { no: 1, name: "access_key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "secret", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "region", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "endpoint", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "bucket", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message livekit.StreamOutput - */ -export const StreamOutput = proto3.makeMessageType( - "livekit.StreamOutput", - () => [ - { no: 1, name: "protocol", kind: "enum", T: proto3.getEnumType(StreamProtocol) }, - { no: 2, name: "urls", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ], -); - -/** - * @generated from message livekit.EncodingOptions - */ -export const EncodingOptions = proto3.makeMessageType( - "livekit.EncodingOptions", - () => [ - { no: 1, name: "width", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 2, name: "height", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 3, name: "depth", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 4, name: "framerate", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 5, name: "audio_codec", kind: "enum", T: proto3.getEnumType(AudioCodec) }, - { no: 6, name: "audio_bitrate", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 11, name: "audio_quality", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 7, name: "audio_frequency", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 8, name: "video_codec", kind: "enum", T: proto3.getEnumType(VideoCodec) }, - { no: 9, name: "video_bitrate", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 12, name: "video_quality", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 10, name: "key_frame_interval", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, - ], -); - -/** - * @generated from message livekit.UpdateLayoutRequest - */ -export const UpdateLayoutRequest = proto3.makeMessageType( - "livekit.UpdateLayoutRequest", - () => [ - { no: 1, name: "egress_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "layout", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message livekit.UpdateStreamRequest - */ -export const UpdateStreamRequest = proto3.makeMessageType( - "livekit.UpdateStreamRequest", - () => [ - { no: 1, name: "egress_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "add_output_urls", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 3, name: "remove_output_urls", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ], -); - -/** - * @generated from message livekit.ListEgressRequest - */ -export const ListEgressRequest = proto3.makeMessageType( - "livekit.ListEgressRequest", - () => [ - { no: 1, name: "room_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "egress_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "active", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ], -); - -/** - * @generated from message livekit.ListEgressResponse - */ -export const ListEgressResponse = proto3.makeMessageType( - "livekit.ListEgressResponse", - () => [ - { no: 1, name: "items", kind: "message", T: EgressInfo, repeated: true }, - ], -); - -/** - * @generated from message livekit.StopEgressRequest - */ -export const StopEgressRequest = proto3.makeMessageType( - "livekit.StopEgressRequest", - () => [ - { no: 1, name: "egress_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message livekit.EgressInfo - */ -export const EgressInfo = proto3.makeMessageType( - "livekit.EgressInfo", - () => [ - { no: 1, name: "egress_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "room_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 13, name: "room_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "status", kind: "enum", T: proto3.getEnumType(EgressStatus) }, - { no: 10, name: "started_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 11, name: "ended_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 18, name: "updated_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 9, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "room_composite", kind: "message", T: RoomCompositeEgressRequest, oneof: "request" }, - { no: 14, name: "web", kind: "message", T: WebEgressRequest, oneof: "request" }, - { no: 19, name: "participant", kind: "message", T: ParticipantEgressRequest, oneof: "request" }, - { no: 5, name: "track_composite", kind: "message", T: TrackCompositeEgressRequest, oneof: "request" }, - { no: 6, name: "track", kind: "message", T: TrackEgressRequest, oneof: "request" }, - { no: 7, name: "stream", kind: "message", T: StreamInfoList, oneof: "result" }, - { no: 8, name: "file", kind: "message", T: FileInfo, oneof: "result" }, - { no: 12, name: "segments", kind: "message", T: SegmentsInfo, oneof: "result" }, - { no: 15, name: "stream_results", kind: "message", T: StreamInfo, repeated: true }, - { no: 16, name: "file_results", kind: "message", T: FileInfo, repeated: true }, - { no: 17, name: "segment_results", kind: "message", T: SegmentsInfo, repeated: true }, - { no: 20, name: "image_results", kind: "message", T: ImagesInfo, repeated: true }, - ], -); - -/** - * @generated from message livekit.StreamInfoList - * @deprecated - */ -export const StreamInfoList = proto3.makeMessageType( - "livekit.StreamInfoList", - () => [ - { no: 1, name: "info", kind: "message", T: StreamInfo, repeated: true }, - ], -); - -/** - * @generated from message livekit.StreamInfo - */ -export const StreamInfo = proto3.makeMessageType( - "livekit.StreamInfo", - () => [ - { no: 1, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "started_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 3, name: "ended_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 4, name: "duration", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 5, name: "status", kind: "enum", T: proto3.getEnumType(StreamInfo_Status) }, - { no: 6, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from enum livekit.StreamInfo.Status - */ -export const StreamInfo_Status = proto3.makeEnum( - "livekit.StreamInfo.Status", - [ - {no: 0, name: "ACTIVE"}, - {no: 1, name: "FINISHED"}, - {no: 2, name: "FAILED"}, - ], -); - -/** - * @generated from message livekit.FileInfo - */ -export const FileInfo = proto3.makeMessageType( - "livekit.FileInfo", - () => [ - { no: 1, name: "filename", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "started_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 3, name: "ended_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 6, name: "duration", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 4, name: "size", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 5, name: "location", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message livekit.SegmentsInfo - */ -export const SegmentsInfo = proto3.makeMessageType( - "livekit.SegmentsInfo", - () => [ - { no: 1, name: "playlist_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 8, name: "live_playlist_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "duration", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 3, name: "size", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 4, name: "playlist_location", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 9, name: "live_playlist_location", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "segment_count", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 6, name: "started_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 7, name: "ended_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - ], -); - -/** - * @generated from message livekit.ImagesInfo - */ -export const ImagesInfo = proto3.makeMessageType( - "livekit.ImagesInfo", - () => [ - { no: 1, name: "image_count", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 2, name: "started_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 3, name: "ended_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - ], -); - -/** - * @generated from message livekit.AutoParticipantEgress - */ -export const AutoParticipantEgress = proto3.makeMessageType( - "livekit.AutoParticipantEgress", - () => [ - { no: 1, name: "preset", kind: "enum", T: proto3.getEnumType(EncodingOptionsPreset), oneof: "options" }, - { no: 2, name: "advanced", kind: "message", T: EncodingOptions, oneof: "options" }, - { no: 3, name: "file_outputs", kind: "message", T: EncodedFileOutput, repeated: true }, - { no: 4, name: "segment_outputs", kind: "message", T: SegmentedFileOutput, repeated: true }, - ], -); - -/** - * @generated from message livekit.AutoTrackEgress - */ -export const AutoTrackEgress = proto3.makeMessageType( - "livekit.AutoTrackEgress", - () => [ - { no: 1, name: "filepath", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "disable_manifest", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 2, name: "s3", kind: "message", T: S3Upload, oneof: "output" }, - { no: 3, name: "gcp", kind: "message", T: GCPUpload, oneof: "output" }, - { no: 4, name: "azure", kind: "message", T: AzureBlobUpload, oneof: "output" }, - ], -); - diff --git a/packages/javascript/src/gen/livekit_ingress_pb.d.ts b/packages/javascript/src/gen/livekit_ingress_pb.d.ts deleted file mode 100644 index fb4cb913..00000000 --- a/packages/javascript/src/gen/livekit_ingress_pb.d.ts +++ /dev/null @@ -1,818 +0,0 @@ -// Copyright 2023 LiveKit, Inc. -// -// 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. - -// @generated by protoc-gen-es v1.7.2 with parameter "target=js+dts" -// @generated from file livekit_ingress.proto (package livekit, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import type { AudioCodec, TrackInfo, TrackSource, VideoCodec, VideoLayer } from "./livekit_models_pb.js"; - -/** - * @generated from enum livekit.IngressInput - */ -export declare enum IngressInput { - /** - * @generated from enum value: RTMP_INPUT = 0; - */ - RTMP_INPUT = 0, - - /** - * @generated from enum value: WHIP_INPUT = 1; - */ - WHIP_INPUT = 1, - - /** - * Pull from the provided URL. Only HTTP url are supported, serving either a single media file or a HLS stream - * - * @generated from enum value: URL_INPUT = 2; - */ - URL_INPUT = 2, -} - -/** - * @generated from enum livekit.IngressAudioEncodingPreset - */ -export declare enum IngressAudioEncodingPreset { - /** - * OPUS, 2 channels, 96kbps - * - * @generated from enum value: OPUS_STEREO_96KBPS = 0; - */ - OPUS_STEREO_96KBPS = 0, - - /** - * OPUS, 1 channel, 64kbps - * - * @generated from enum value: OPUS_MONO_64KBS = 1; - */ - OPUS_MONO_64KBS = 1, -} - -/** - * @generated from enum livekit.IngressVideoEncodingPreset - */ -export declare enum IngressVideoEncodingPreset { - /** - * 1280x720, 30fps, 1900kbps main layer, 3 layers total - * - * @generated from enum value: H264_720P_30FPS_3_LAYERS = 0; - */ - H264_720P_30FPS_3_LAYERS = 0, - - /** - * 1980x1080, 30fps, 3500kbps main layer, 3 layers total - * - * @generated from enum value: H264_1080P_30FPS_3_LAYERS = 1; - */ - H264_1080P_30FPS_3_LAYERS = 1, - - /** - * 960x540, 25fps, 1000kbps main layer, 2 layers total - * - * @generated from enum value: H264_540P_25FPS_2_LAYERS = 2; - */ - H264_540P_25FPS_2_LAYERS = 2, - - /** - * 1280x720, 30fps, 1900kbps, no simulcast - * - * @generated from enum value: H264_720P_30FPS_1_LAYER = 3; - */ - H264_720P_30FPS_1_LAYER = 3, - - /** - * 1980x1080, 30fps, 3500kbps, no simulcast - * - * @generated from enum value: H264_1080P_30FPS_1_LAYER = 4; - */ - H264_1080P_30FPS_1_LAYER = 4, - - /** - * 1280x720, 30fps, 2500kbps main layer, 3 layers total, higher bitrate for high motion, harder to encode content - * - * @generated from enum value: H264_720P_30FPS_3_LAYERS_HIGH_MOTION = 5; - */ - H264_720P_30FPS_3_LAYERS_HIGH_MOTION = 5, - - /** - * 1980x1080, 30fps, 4500kbps main layer, 3 layers total, higher bitrate for high motion, harder to encode content - * - * @generated from enum value: H264_1080P_30FPS_3_LAYERS_HIGH_MOTION = 6; - */ - H264_1080P_30FPS_3_LAYERS_HIGH_MOTION = 6, - - /** - * 960x540, 25fps, 1300kbps main layer, 2 layers total, higher bitrate for high motion, harder to encode content - * - * @generated from enum value: H264_540P_25FPS_2_LAYERS_HIGH_MOTION = 7; - */ - H264_540P_25FPS_2_LAYERS_HIGH_MOTION = 7, - - /** - * 1280x720, 30fps, 2500kbps, no simulcast, higher bitrate for high motion, harder to encode content - * - * @generated from enum value: H264_720P_30FPS_1_LAYER_HIGH_MOTION = 8; - */ - H264_720P_30FPS_1_LAYER_HIGH_MOTION = 8, - - /** - * 1980x1080, 30fps, 4500kbps, no simulcast, higher bitrate for high motion, harder to encode content - * - * @generated from enum value: H264_1080P_30FPS_1_LAYER_HIGH_MOTION = 9; - */ - H264_1080P_30FPS_1_LAYER_HIGH_MOTION = 9, -} - -/** - * @generated from message livekit.CreateIngressRequest - */ -export declare class CreateIngressRequest extends Message { - /** - * @generated from field: livekit.IngressInput input_type = 1; - */ - inputType: IngressInput; - - /** - * Where to pull media from, only for URL input type - * - * @generated from field: string url = 9; - */ - url: string; - - /** - * User provided identifier for the ingress - * - * @generated from field: string name = 2; - */ - name: string; - - /** - * room to publish to - * - * @generated from field: string room_name = 3; - */ - roomName: string; - - /** - * publish as participant - * - * @generated from field: string participant_identity = 4; - */ - participantIdentity: string; - - /** - * name of publishing participant (used for display only) - * - * @generated from field: string participant_name = 5; - */ - participantName: string; - - /** - * metadata associated with the publishing participant - * - * @generated from field: string participant_metadata = 10; - */ - participantMetadata: string; - - /** - * whether to pass through the incoming media without transcoding, only compatible with some input types - * - * @generated from field: bool bypass_transcoding = 8; - */ - bypassTranscoding: boolean; - - /** - * @generated from field: livekit.IngressAudioOptions audio = 6; - */ - audio?: IngressAudioOptions; - - /** - * @generated from field: livekit.IngressVideoOptions video = 7; - */ - video?: IngressVideoOptions; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.CreateIngressRequest"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): CreateIngressRequest; - - static fromJson(jsonValue: JsonValue, options?: Partial): CreateIngressRequest; - - static fromJsonString(jsonString: string, options?: Partial): CreateIngressRequest; - - static equals(a: CreateIngressRequest | PlainMessage | undefined, b: CreateIngressRequest | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.IngressAudioOptions - */ -export declare class IngressAudioOptions extends Message { - /** - * @generated from field: string name = 1; - */ - name: string; - - /** - * @generated from field: livekit.TrackSource source = 2; - */ - source: TrackSource; - - /** - * @generated from oneof livekit.IngressAudioOptions.encoding_options - */ - encodingOptions: { - /** - * @generated from field: livekit.IngressAudioEncodingPreset preset = 3; - */ - value: IngressAudioEncodingPreset; - case: "preset"; - } | { - /** - * @generated from field: livekit.IngressAudioEncodingOptions options = 4; - */ - value: IngressAudioEncodingOptions; - case: "options"; - } | { case: undefined; value?: undefined }; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.IngressAudioOptions"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): IngressAudioOptions; - - static fromJson(jsonValue: JsonValue, options?: Partial): IngressAudioOptions; - - static fromJsonString(jsonString: string, options?: Partial): IngressAudioOptions; - - static equals(a: IngressAudioOptions | PlainMessage | undefined, b: IngressAudioOptions | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.IngressVideoOptions - */ -export declare class IngressVideoOptions extends Message { - /** - * @generated from field: string name = 1; - */ - name: string; - - /** - * @generated from field: livekit.TrackSource source = 2; - */ - source: TrackSource; - - /** - * @generated from oneof livekit.IngressVideoOptions.encoding_options - */ - encodingOptions: { - /** - * @generated from field: livekit.IngressVideoEncodingPreset preset = 3; - */ - value: IngressVideoEncodingPreset; - case: "preset"; - } | { - /** - * @generated from field: livekit.IngressVideoEncodingOptions options = 4; - */ - value: IngressVideoEncodingOptions; - case: "options"; - } | { case: undefined; value?: undefined }; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.IngressVideoOptions"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): IngressVideoOptions; - - static fromJson(jsonValue: JsonValue, options?: Partial): IngressVideoOptions; - - static fromJsonString(jsonString: string, options?: Partial): IngressVideoOptions; - - static equals(a: IngressVideoOptions | PlainMessage | undefined, b: IngressVideoOptions | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.IngressAudioEncodingOptions - */ -export declare class IngressAudioEncodingOptions extends Message { - /** - * desired audio codec to publish to room - * - * @generated from field: livekit.AudioCodec audio_codec = 1; - */ - audioCodec: AudioCodec; - - /** - * @generated from field: uint32 bitrate = 2; - */ - bitrate: number; - - /** - * @generated from field: bool disable_dtx = 3; - */ - disableDtx: boolean; - - /** - * @generated from field: uint32 channels = 4; - */ - channels: number; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.IngressAudioEncodingOptions"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): IngressAudioEncodingOptions; - - static fromJson(jsonValue: JsonValue, options?: Partial): IngressAudioEncodingOptions; - - static fromJsonString(jsonString: string, options?: Partial): IngressAudioEncodingOptions; - - static equals(a: IngressAudioEncodingOptions | PlainMessage | undefined, b: IngressAudioEncodingOptions | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.IngressVideoEncodingOptions - */ -export declare class IngressVideoEncodingOptions extends Message { - /** - * desired codec to publish to room - * - * @generated from field: livekit.VideoCodec video_codec = 1; - */ - videoCodec: VideoCodec; - - /** - * @generated from field: double frame_rate = 2; - */ - frameRate: number; - - /** - * simulcast layers to publish, when empty, should usually be set to layers at 1/2 and 1/4 of the dimensions - * - * @generated from field: repeated livekit.VideoLayer layers = 3; - */ - layers: VideoLayer[]; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.IngressVideoEncodingOptions"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): IngressVideoEncodingOptions; - - static fromJson(jsonValue: JsonValue, options?: Partial): IngressVideoEncodingOptions; - - static fromJsonString(jsonString: string, options?: Partial): IngressVideoEncodingOptions; - - static equals(a: IngressVideoEncodingOptions | PlainMessage | undefined, b: IngressVideoEncodingOptions | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.IngressInfo - */ -export declare class IngressInfo extends Message { - /** - * @generated from field: string ingress_id = 1; - */ - ingressId: string; - - /** - * @generated from field: string name = 2; - */ - name: string; - - /** - * @generated from field: string stream_key = 3; - */ - streamKey: string; - - /** - * URL to point the encoder to for push (RTMP, WHIP), or location to pull media from for pull (URL) - * - * @generated from field: string url = 4; - */ - url: string; - - /** - * for RTMP input, it'll be a rtmp:// URL - * for FILE input, it'll be a http:// URL - * for SRT input, it'll be a srt:// URL - * - * @generated from field: livekit.IngressInput input_type = 5; - */ - inputType: IngressInput; - - /** - * @generated from field: bool bypass_transcoding = 13; - */ - bypassTranscoding: boolean; - - /** - * @generated from field: livekit.IngressAudioOptions audio = 6; - */ - audio?: IngressAudioOptions; - - /** - * @generated from field: livekit.IngressVideoOptions video = 7; - */ - video?: IngressVideoOptions; - - /** - * @generated from field: string room_name = 8; - */ - roomName: string; - - /** - * @generated from field: string participant_identity = 9; - */ - participantIdentity: string; - - /** - * @generated from field: string participant_name = 10; - */ - participantName: string; - - /** - * @generated from field: string participant_metadata = 14; - */ - participantMetadata: string; - - /** - * @generated from field: bool reusable = 11; - */ - reusable: boolean; - - /** - * Description of error/stream non compliance and debug info for publisher otherwise (received bitrate, resolution, bandwidth) - * - * @generated from field: livekit.IngressState state = 12; - */ - state?: IngressState; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.IngressInfo"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): IngressInfo; - - static fromJson(jsonValue: JsonValue, options?: Partial): IngressInfo; - - static fromJsonString(jsonString: string, options?: Partial): IngressInfo; - - static equals(a: IngressInfo | PlainMessage | undefined, b: IngressInfo | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.IngressState - */ -export declare class IngressState extends Message { - /** - * @generated from field: livekit.IngressState.Status status = 1; - */ - status: IngressState_Status; - - /** - * Error/non compliance description if any - * - * @generated from field: string error = 2; - */ - error: string; - - /** - * @generated from field: livekit.InputVideoState video = 3; - */ - video?: InputVideoState; - - /** - * @generated from field: livekit.InputAudioState audio = 4; - */ - audio?: InputAudioState; - - /** - * ID of the current/previous room published to - * - * @generated from field: string room_id = 5; - */ - roomId: string; - - /** - * @generated from field: int64 started_at = 7; - */ - startedAt: bigint; - - /** - * @generated from field: int64 ended_at = 8; - */ - endedAt: bigint; - - /** - * @generated from field: string resource_id = 9; - */ - resourceId: string; - - /** - * @generated from field: repeated livekit.TrackInfo tracks = 6; - */ - tracks: TrackInfo[]; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.IngressState"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): IngressState; - - static fromJson(jsonValue: JsonValue, options?: Partial): IngressState; - - static fromJsonString(jsonString: string, options?: Partial): IngressState; - - static equals(a: IngressState | PlainMessage | undefined, b: IngressState | PlainMessage | undefined): boolean; -} - -/** - * @generated from enum livekit.IngressState.Status - */ -export declare enum IngressState_Status { - /** - * @generated from enum value: ENDPOINT_INACTIVE = 0; - */ - ENDPOINT_INACTIVE = 0, - - /** - * @generated from enum value: ENDPOINT_BUFFERING = 1; - */ - ENDPOINT_BUFFERING = 1, - - /** - * @generated from enum value: ENDPOINT_PUBLISHING = 2; - */ - ENDPOINT_PUBLISHING = 2, - - /** - * @generated from enum value: ENDPOINT_ERROR = 3; - */ - ENDPOINT_ERROR = 3, - - /** - * @generated from enum value: ENDPOINT_COMPLETE = 4; - */ - ENDPOINT_COMPLETE = 4, -} - -/** - * @generated from message livekit.InputVideoState - */ -export declare class InputVideoState extends Message { - /** - * @generated from field: string mime_type = 1; - */ - mimeType: string; - - /** - * @generated from field: uint32 average_bitrate = 2; - */ - averageBitrate: number; - - /** - * @generated from field: uint32 width = 3; - */ - width: number; - - /** - * @generated from field: uint32 height = 4; - */ - height: number; - - /** - * @generated from field: double framerate = 5; - */ - framerate: number; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.InputVideoState"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): InputVideoState; - - static fromJson(jsonValue: JsonValue, options?: Partial): InputVideoState; - - static fromJsonString(jsonString: string, options?: Partial): InputVideoState; - - static equals(a: InputVideoState | PlainMessage | undefined, b: InputVideoState | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.InputAudioState - */ -export declare class InputAudioState extends Message { - /** - * @generated from field: string mime_type = 1; - */ - mimeType: string; - - /** - * @generated from field: uint32 average_bitrate = 2; - */ - averageBitrate: number; - - /** - * @generated from field: uint32 channels = 3; - */ - channels: number; - - /** - * @generated from field: uint32 sample_rate = 4; - */ - sampleRate: number; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.InputAudioState"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): InputAudioState; - - static fromJson(jsonValue: JsonValue, options?: Partial): InputAudioState; - - static fromJsonString(jsonString: string, options?: Partial): InputAudioState; - - static equals(a: InputAudioState | PlainMessage | undefined, b: InputAudioState | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.UpdateIngressRequest - */ -export declare class UpdateIngressRequest extends Message { - /** - * @generated from field: string ingress_id = 1; - */ - ingressId: string; - - /** - * @generated from field: string name = 2; - */ - name: string; - - /** - * @generated from field: string room_name = 3; - */ - roomName: string; - - /** - * @generated from field: string participant_identity = 4; - */ - participantIdentity: string; - - /** - * @generated from field: string participant_name = 5; - */ - participantName: string; - - /** - * @generated from field: string participant_metadata = 9; - */ - participantMetadata: string; - - /** - * @generated from field: optional bool bypass_transcoding = 8; - */ - bypassTranscoding?: boolean; - - /** - * @generated from field: livekit.IngressAudioOptions audio = 6; - */ - audio?: IngressAudioOptions; - - /** - * @generated from field: livekit.IngressVideoOptions video = 7; - */ - video?: IngressVideoOptions; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.UpdateIngressRequest"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): UpdateIngressRequest; - - static fromJson(jsonValue: JsonValue, options?: Partial): UpdateIngressRequest; - - static fromJsonString(jsonString: string, options?: Partial): UpdateIngressRequest; - - static equals(a: UpdateIngressRequest | PlainMessage | undefined, b: UpdateIngressRequest | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.ListIngressRequest - */ -export declare class ListIngressRequest extends Message { - /** - * when blank, lists all ingress endpoints - * - * (optional, filter by room name) - * - * @generated from field: string room_name = 1; - */ - roomName: string; - - /** - * (optional, filter by ingress ID) - * - * @generated from field: string ingress_id = 2; - */ - ingressId: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.ListIngressRequest"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ListIngressRequest; - - static fromJson(jsonValue: JsonValue, options?: Partial): ListIngressRequest; - - static fromJsonString(jsonString: string, options?: Partial): ListIngressRequest; - - static equals(a: ListIngressRequest | PlainMessage | undefined, b: ListIngressRequest | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.ListIngressResponse - */ -export declare class ListIngressResponse extends Message { - /** - * @generated from field: repeated livekit.IngressInfo items = 1; - */ - items: IngressInfo[]; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.ListIngressResponse"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ListIngressResponse; - - static fromJson(jsonValue: JsonValue, options?: Partial): ListIngressResponse; - - static fromJsonString(jsonString: string, options?: Partial): ListIngressResponse; - - static equals(a: ListIngressResponse | PlainMessage | undefined, b: ListIngressResponse | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.DeleteIngressRequest - */ -export declare class DeleteIngressRequest extends Message { - /** - * @generated from field: string ingress_id = 1; - */ - ingressId: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.DeleteIngressRequest"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): DeleteIngressRequest; - - static fromJson(jsonValue: JsonValue, options?: Partial): DeleteIngressRequest; - - static fromJsonString(jsonString: string, options?: Partial): DeleteIngressRequest; - - static equals(a: DeleteIngressRequest | PlainMessage | undefined, b: DeleteIngressRequest | PlainMessage | undefined): boolean; -} - diff --git a/packages/javascript/src/gen/livekit_ingress_pb.js b/packages/javascript/src/gen/livekit_ingress_pb.js deleted file mode 100644 index 752dc926..00000000 --- a/packages/javascript/src/gen/livekit_ingress_pb.js +++ /dev/null @@ -1,265 +0,0 @@ -// Copyright 2023 LiveKit, Inc. -// -// 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. - -// @generated by protoc-gen-es v1.7.2 with parameter "target=js+dts" -// @generated from file livekit_ingress.proto (package livekit, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { proto3 } from "@bufbuild/protobuf"; -import { AudioCodec, TrackInfo, TrackSource, VideoCodec, VideoLayer } from "./livekit_models_pb.js"; - -/** - * @generated from enum livekit.IngressInput - */ -export const IngressInput = proto3.makeEnum( - "livekit.IngressInput", - [ - {no: 0, name: "RTMP_INPUT"}, - {no: 1, name: "WHIP_INPUT"}, - {no: 2, name: "URL_INPUT"}, - ], -); - -/** - * @generated from enum livekit.IngressAudioEncodingPreset - */ -export const IngressAudioEncodingPreset = proto3.makeEnum( - "livekit.IngressAudioEncodingPreset", - [ - {no: 0, name: "OPUS_STEREO_96KBPS"}, - {no: 1, name: "OPUS_MONO_64KBS"}, - ], -); - -/** - * @generated from enum livekit.IngressVideoEncodingPreset - */ -export const IngressVideoEncodingPreset = proto3.makeEnum( - "livekit.IngressVideoEncodingPreset", - [ - {no: 0, name: "H264_720P_30FPS_3_LAYERS"}, - {no: 1, name: "H264_1080P_30FPS_3_LAYERS"}, - {no: 2, name: "H264_540P_25FPS_2_LAYERS"}, - {no: 3, name: "H264_720P_30FPS_1_LAYER"}, - {no: 4, name: "H264_1080P_30FPS_1_LAYER"}, - {no: 5, name: "H264_720P_30FPS_3_LAYERS_HIGH_MOTION"}, - {no: 6, name: "H264_1080P_30FPS_3_LAYERS_HIGH_MOTION"}, - {no: 7, name: "H264_540P_25FPS_2_LAYERS_HIGH_MOTION"}, - {no: 8, name: "H264_720P_30FPS_1_LAYER_HIGH_MOTION"}, - {no: 9, name: "H264_1080P_30FPS_1_LAYER_HIGH_MOTION"}, - ], -); - -/** - * @generated from message livekit.CreateIngressRequest - */ -export const CreateIngressRequest = proto3.makeMessageType( - "livekit.CreateIngressRequest", - () => [ - { no: 1, name: "input_type", kind: "enum", T: proto3.getEnumType(IngressInput) }, - { no: 9, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "room_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "participant_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 10, name: "participant_metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 8, name: "bypass_transcoding", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 6, name: "audio", kind: "message", T: IngressAudioOptions }, - { no: 7, name: "video", kind: "message", T: IngressVideoOptions }, - ], -); - -/** - * @generated from message livekit.IngressAudioOptions - */ -export const IngressAudioOptions = proto3.makeMessageType( - "livekit.IngressAudioOptions", - () => [ - { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "source", kind: "enum", T: proto3.getEnumType(TrackSource) }, - { no: 3, name: "preset", kind: "enum", T: proto3.getEnumType(IngressAudioEncodingPreset), oneof: "encoding_options" }, - { no: 4, name: "options", kind: "message", T: IngressAudioEncodingOptions, oneof: "encoding_options" }, - ], -); - -/** - * @generated from message livekit.IngressVideoOptions - */ -export const IngressVideoOptions = proto3.makeMessageType( - "livekit.IngressVideoOptions", - () => [ - { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "source", kind: "enum", T: proto3.getEnumType(TrackSource) }, - { no: 3, name: "preset", kind: "enum", T: proto3.getEnumType(IngressVideoEncodingPreset), oneof: "encoding_options" }, - { no: 4, name: "options", kind: "message", T: IngressVideoEncodingOptions, oneof: "encoding_options" }, - ], -); - -/** - * @generated from message livekit.IngressAudioEncodingOptions - */ -export const IngressAudioEncodingOptions = proto3.makeMessageType( - "livekit.IngressAudioEncodingOptions", - () => [ - { no: 1, name: "audio_codec", kind: "enum", T: proto3.getEnumType(AudioCodec) }, - { no: 2, name: "bitrate", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 3, name: "disable_dtx", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 4, name: "channels", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - ], -); - -/** - * @generated from message livekit.IngressVideoEncodingOptions - */ -export const IngressVideoEncodingOptions = proto3.makeMessageType( - "livekit.IngressVideoEncodingOptions", - () => [ - { no: 1, name: "video_codec", kind: "enum", T: proto3.getEnumType(VideoCodec) }, - { no: 2, name: "frame_rate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, - { no: 3, name: "layers", kind: "message", T: VideoLayer, repeated: true }, - ], -); - -/** - * @generated from message livekit.IngressInfo - */ -export const IngressInfo = proto3.makeMessageType( - "livekit.IngressInfo", - () => [ - { no: 1, name: "ingress_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "stream_key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "input_type", kind: "enum", T: proto3.getEnumType(IngressInput) }, - { no: 13, name: "bypass_transcoding", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 6, name: "audio", kind: "message", T: IngressAudioOptions }, - { no: 7, name: "video", kind: "message", T: IngressVideoOptions }, - { no: 8, name: "room_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 9, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 10, name: "participant_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 14, name: "participant_metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 11, name: "reusable", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 12, name: "state", kind: "message", T: IngressState }, - ], -); - -/** - * @generated from message livekit.IngressState - */ -export const IngressState = proto3.makeMessageType( - "livekit.IngressState", - () => [ - { no: 1, name: "status", kind: "enum", T: proto3.getEnumType(IngressState_Status) }, - { no: 2, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "video", kind: "message", T: InputVideoState }, - { no: 4, name: "audio", kind: "message", T: InputAudioState }, - { no: 5, name: "room_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 7, name: "started_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 8, name: "ended_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 9, name: "resource_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "tracks", kind: "message", T: TrackInfo, repeated: true }, - ], -); - -/** - * @generated from enum livekit.IngressState.Status - */ -export const IngressState_Status = proto3.makeEnum( - "livekit.IngressState.Status", - [ - {no: 0, name: "ENDPOINT_INACTIVE"}, - {no: 1, name: "ENDPOINT_BUFFERING"}, - {no: 2, name: "ENDPOINT_PUBLISHING"}, - {no: 3, name: "ENDPOINT_ERROR"}, - {no: 4, name: "ENDPOINT_COMPLETE"}, - ], -); - -/** - * @generated from message livekit.InputVideoState - */ -export const InputVideoState = proto3.makeMessageType( - "livekit.InputVideoState", - () => [ - { no: 1, name: "mime_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "average_bitrate", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 3, name: "width", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 4, name: "height", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 5, name: "framerate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, - ], -); - -/** - * @generated from message livekit.InputAudioState - */ -export const InputAudioState = proto3.makeMessageType( - "livekit.InputAudioState", - () => [ - { no: 1, name: "mime_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "average_bitrate", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 3, name: "channels", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 4, name: "sample_rate", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - ], -); - -/** - * @generated from message livekit.UpdateIngressRequest - */ -export const UpdateIngressRequest = proto3.makeMessageType( - "livekit.UpdateIngressRequest", - () => [ - { no: 1, name: "ingress_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "room_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "participant_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 9, name: "participant_metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 8, name: "bypass_transcoding", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true }, - { no: 6, name: "audio", kind: "message", T: IngressAudioOptions }, - { no: 7, name: "video", kind: "message", T: IngressVideoOptions }, - ], -); - -/** - * @generated from message livekit.ListIngressRequest - */ -export const ListIngressRequest = proto3.makeMessageType( - "livekit.ListIngressRequest", - () => [ - { no: 1, name: "room_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "ingress_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message livekit.ListIngressResponse - */ -export const ListIngressResponse = proto3.makeMessageType( - "livekit.ListIngressResponse", - () => [ - { no: 1, name: "items", kind: "message", T: IngressInfo, repeated: true }, - ], -); - -/** - * @generated from message livekit.DeleteIngressRequest - */ -export const DeleteIngressRequest = proto3.makeMessageType( - "livekit.DeleteIngressRequest", - () => [ - { no: 1, name: "ingress_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - diff --git a/packages/javascript/src/gen/livekit_models_pb.d.ts b/packages/javascript/src/gen/livekit_models_pb.d.ts deleted file mode 100644 index 8f869698..00000000 --- a/packages/javascript/src/gen/livekit_models_pb.d.ts +++ /dev/null @@ -1,1786 +0,0 @@ -// Copyright 2023 LiveKit, Inc. -// -// 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. - -// @generated by protoc-gen-es v1.7.2 with parameter "target=js+dts" -// @generated from file livekit_models.proto (package livekit, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage, Timestamp } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * @generated from enum livekit.AudioCodec - */ -export declare enum AudioCodec { - /** - * @generated from enum value: DEFAULT_AC = 0; - */ - DEFAULT_AC = 0, - - /** - * @generated from enum value: OPUS = 1; - */ - OPUS = 1, - - /** - * @generated from enum value: AAC = 2; - */ - AAC = 2, -} - -/** - * @generated from enum livekit.VideoCodec - */ -export declare enum VideoCodec { - /** - * @generated from enum value: DEFAULT_VC = 0; - */ - DEFAULT_VC = 0, - - /** - * @generated from enum value: H264_BASELINE = 1; - */ - H264_BASELINE = 1, - - /** - * @generated from enum value: H264_MAIN = 2; - */ - H264_MAIN = 2, - - /** - * @generated from enum value: H264_HIGH = 3; - */ - H264_HIGH = 3, - - /** - * @generated from enum value: VP8 = 4; - */ - VP8 = 4, -} - -/** - * @generated from enum livekit.ImageCodec - */ -export declare enum ImageCodec { - /** - * @generated from enum value: IC_DEFAULT = 0; - */ - IC_DEFAULT = 0, - - /** - * @generated from enum value: IC_JPEG = 1; - */ - IC_JPEG = 1, -} - -/** - * @generated from enum livekit.TrackType - */ -export declare enum TrackType { - /** - * @generated from enum value: AUDIO = 0; - */ - AUDIO = 0, - - /** - * @generated from enum value: VIDEO = 1; - */ - VIDEO = 1, - - /** - * @generated from enum value: DATA = 2; - */ - DATA = 2, -} - -/** - * @generated from enum livekit.TrackSource - */ -export declare enum TrackSource { - /** - * @generated from enum value: UNKNOWN = 0; - */ - UNKNOWN = 0, - - /** - * @generated from enum value: CAMERA = 1; - */ - CAMERA = 1, - - /** - * @generated from enum value: MICROPHONE = 2; - */ - MICROPHONE = 2, - - /** - * @generated from enum value: SCREEN_SHARE = 3; - */ - SCREEN_SHARE = 3, - - /** - * @generated from enum value: SCREEN_SHARE_AUDIO = 4; - */ - SCREEN_SHARE_AUDIO = 4, -} - -/** - * @generated from enum livekit.VideoQuality - */ -export declare enum VideoQuality { - /** - * @generated from enum value: LOW = 0; - */ - LOW = 0, - - /** - * @generated from enum value: MEDIUM = 1; - */ - MEDIUM = 1, - - /** - * @generated from enum value: HIGH = 2; - */ - HIGH = 2, - - /** - * @generated from enum value: OFF = 3; - */ - OFF = 3, -} - -/** - * @generated from enum livekit.ConnectionQuality - */ -export declare enum ConnectionQuality { - /** - * @generated from enum value: POOR = 0; - */ - POOR = 0, - - /** - * @generated from enum value: GOOD = 1; - */ - GOOD = 1, - - /** - * @generated from enum value: EXCELLENT = 2; - */ - EXCELLENT = 2, - - /** - * @generated from enum value: LOST = 3; - */ - LOST = 3, -} - -/** - * @generated from enum livekit.ClientConfigSetting - */ -export declare enum ClientConfigSetting { - /** - * @generated from enum value: UNSET = 0; - */ - UNSET = 0, - - /** - * @generated from enum value: DISABLED = 1; - */ - DISABLED = 1, - - /** - * @generated from enum value: ENABLED = 2; - */ - ENABLED = 2, -} - -/** - * @generated from enum livekit.DisconnectReason - */ -export declare enum DisconnectReason { - /** - * @generated from enum value: UNKNOWN_REASON = 0; - */ - UNKNOWN_REASON = 0, - - /** - * @generated from enum value: CLIENT_INITIATED = 1; - */ - CLIENT_INITIATED = 1, - - /** - * @generated from enum value: DUPLICATE_IDENTITY = 2; - */ - DUPLICATE_IDENTITY = 2, - - /** - * @generated from enum value: SERVER_SHUTDOWN = 3; - */ - SERVER_SHUTDOWN = 3, - - /** - * @generated from enum value: PARTICIPANT_REMOVED = 4; - */ - PARTICIPANT_REMOVED = 4, - - /** - * @generated from enum value: ROOM_DELETED = 5; - */ - ROOM_DELETED = 5, - - /** - * @generated from enum value: STATE_MISMATCH = 6; - */ - STATE_MISMATCH = 6, - - /** - * @generated from enum value: JOIN_FAILURE = 7; - */ - JOIN_FAILURE = 7, - - /** - * @generated from enum value: MIGRATION = 8; - */ - MIGRATION = 8, - - /** - * @generated from enum value: SIGNAL_CLOSE = 9; - */ - SIGNAL_CLOSE = 9, -} - -/** - * @generated from enum livekit.ReconnectReason - */ -export declare enum ReconnectReason { - /** - * @generated from enum value: RR_UNKNOWN = 0; - */ - RR_UNKNOWN = 0, - - /** - * @generated from enum value: RR_SIGNAL_DISCONNECTED = 1; - */ - RR_SIGNAL_DISCONNECTED = 1, - - /** - * @generated from enum value: RR_PUBLISHER_FAILED = 2; - */ - RR_PUBLISHER_FAILED = 2, - - /** - * @generated from enum value: RR_SUBSCRIBER_FAILED = 3; - */ - RR_SUBSCRIBER_FAILED = 3, - - /** - * @generated from enum value: RR_SWITCH_CANDIDATE = 4; - */ - RR_SWITCH_CANDIDATE = 4, -} - -/** - * @generated from enum livekit.SubscriptionError - */ -export declare enum SubscriptionError { - /** - * @generated from enum value: SE_UNKNOWN = 0; - */ - SE_UNKNOWN = 0, - - /** - * @generated from enum value: SE_CODEC_UNSUPPORTED = 1; - */ - SE_CODEC_UNSUPPORTED = 1, - - /** - * @generated from enum value: SE_TRACK_NOTFOUND = 2; - */ - SE_TRACK_NOTFOUND = 2, -} - -/** - * @generated from message livekit.Room - */ -export declare class Room extends Message { - /** - * @generated from field: string sid = 1; - */ - sid: string; - - /** - * @generated from field: string name = 2; - */ - name: string; - - /** - * @generated from field: uint32 empty_timeout = 3; - */ - emptyTimeout: number; - - /** - * @generated from field: uint32 departure_timeout = 14; - */ - departureTimeout: number; - - /** - * @generated from field: uint32 max_participants = 4; - */ - maxParticipants: number; - - /** - * @generated from field: int64 creation_time = 5; - */ - creationTime: bigint; - - /** - * @generated from field: string turn_password = 6; - */ - turnPassword: string; - - /** - * @generated from field: repeated livekit.Codec enabled_codecs = 7; - */ - enabledCodecs: Codec[]; - - /** - * @generated from field: string metadata = 8; - */ - metadata: string; - - /** - * @generated from field: uint32 num_participants = 9; - */ - numParticipants: number; - - /** - * @generated from field: uint32 num_publishers = 11; - */ - numPublishers: number; - - /** - * @generated from field: bool active_recording = 10; - */ - activeRecording: boolean; - - /** - * @generated from field: livekit.TimedVersion version = 13; - */ - version?: TimedVersion; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.Room"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): Room; - - static fromJson(jsonValue: JsonValue, options?: Partial): Room; - - static fromJsonString(jsonString: string, options?: Partial): Room; - - static equals(a: Room | PlainMessage | undefined, b: Room | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.Codec - */ -export declare class Codec extends Message { - /** - * @generated from field: string mime = 1; - */ - mime: string; - - /** - * @generated from field: string fmtp_line = 2; - */ - fmtpLine: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.Codec"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): Codec; - - static fromJson(jsonValue: JsonValue, options?: Partial): Codec; - - static fromJsonString(jsonString: string, options?: Partial): Codec; - - static equals(a: Codec | PlainMessage | undefined, b: Codec | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.PlayoutDelay - */ -export declare class PlayoutDelay extends Message { - /** - * @generated from field: bool enabled = 1; - */ - enabled: boolean; - - /** - * @generated from field: uint32 min = 2; - */ - min: number; - - /** - * @generated from field: uint32 max = 3; - */ - max: number; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.PlayoutDelay"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): PlayoutDelay; - - static fromJson(jsonValue: JsonValue, options?: Partial): PlayoutDelay; - - static fromJsonString(jsonString: string, options?: Partial): PlayoutDelay; - - static equals(a: PlayoutDelay | PlainMessage | undefined, b: PlayoutDelay | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.ParticipantPermission - */ -export declare class ParticipantPermission extends Message { - /** - * allow participant to subscribe to other tracks in the room - * - * @generated from field: bool can_subscribe = 1; - */ - canSubscribe: boolean; - - /** - * allow participant to publish new tracks to room - * - * @generated from field: bool can_publish = 2; - */ - canPublish: boolean; - - /** - * allow participant to publish data - * - * @generated from field: bool can_publish_data = 3; - */ - canPublishData: boolean; - - /** - * sources that are allowed to be published - * - * @generated from field: repeated livekit.TrackSource can_publish_sources = 9; - */ - canPublishSources: TrackSource[]; - - /** - * indicates that it's hidden to others - * - * @generated from field: bool hidden = 7; - */ - hidden: boolean; - - /** - * indicates it's a recorder instance - * - * @generated from field: bool recorder = 8; - */ - recorder: boolean; - - /** - * indicates that participant can update own metadata - * - * @generated from field: bool can_update_metadata = 10; - */ - canUpdateMetadata: boolean; - - /** - * indicates that participant is an agent - * - * @generated from field: bool agent = 11; - */ - agent: boolean; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.ParticipantPermission"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ParticipantPermission; - - static fromJson(jsonValue: JsonValue, options?: Partial): ParticipantPermission; - - static fromJsonString(jsonString: string, options?: Partial): ParticipantPermission; - - static equals(a: ParticipantPermission | PlainMessage | undefined, b: ParticipantPermission | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.ParticipantInfo - */ -export declare class ParticipantInfo extends Message { - /** - * @generated from field: string sid = 1; - */ - sid: string; - - /** - * @generated from field: string identity = 2; - */ - identity: string; - - /** - * @generated from field: livekit.ParticipantInfo.State state = 3; - */ - state: ParticipantInfo_State; - - /** - * @generated from field: repeated livekit.TrackInfo tracks = 4; - */ - tracks: TrackInfo[]; - - /** - * @generated from field: string metadata = 5; - */ - metadata: string; - - /** - * timestamp when participant joined room, in seconds - * - * @generated from field: int64 joined_at = 6; - */ - joinedAt: bigint; - - /** - * @generated from field: string name = 9; - */ - name: string; - - /** - * @generated from field: uint32 version = 10; - */ - version: number; - - /** - * @generated from field: livekit.ParticipantPermission permission = 11; - */ - permission?: ParticipantPermission; - - /** - * @generated from field: string region = 12; - */ - region: string; - - /** - * indicates the participant has an active publisher connection - * and can publish to the server - * - * @generated from field: bool is_publisher = 13; - */ - isPublisher: boolean; - - /** - * @generated from field: livekit.ParticipantInfo.Kind kind = 14; - */ - kind: ParticipantInfo_Kind; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.ParticipantInfo"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ParticipantInfo; - - static fromJson(jsonValue: JsonValue, options?: Partial): ParticipantInfo; - - static fromJsonString(jsonString: string, options?: Partial): ParticipantInfo; - - static equals(a: ParticipantInfo | PlainMessage | undefined, b: ParticipantInfo | PlainMessage | undefined): boolean; -} - -/** - * @generated from enum livekit.ParticipantInfo.State - */ -export declare enum ParticipantInfo_State { - /** - * websocket' connected, but not offered yet - * - * @generated from enum value: JOINING = 0; - */ - JOINING = 0, - - /** - * server received client offer - * - * @generated from enum value: JOINED = 1; - */ - JOINED = 1, - - /** - * ICE connectivity established - * - * @generated from enum value: ACTIVE = 2; - */ - ACTIVE = 2, - - /** - * WS disconnected - * - * @generated from enum value: DISCONNECTED = 3; - */ - DISCONNECTED = 3, -} - -/** - * @generated from enum livekit.ParticipantInfo.Kind - */ -export declare enum ParticipantInfo_Kind { - /** - * standard participants, e.g. web clients - * - * @generated from enum value: STANDARD = 0; - */ - STANDARD = 0, - - /** - * only ingests streams - * - * @generated from enum value: INGRESS = 1; - */ - INGRESS = 1, - - /** - * only consumes streams - * - * @generated from enum value: EGRESS = 2; - */ - EGRESS = 2, - - /** - * SIP participants - * - * @generated from enum value: SIP = 3; - */ - SIP = 3, - - /** - * LiveKit agents - * - * @generated from enum value: AGENT = 4; - */ - AGENT = 4, -} - -/** - * @generated from message livekit.Encryption - */ -export declare class Encryption extends Message { - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.Encryption"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): Encryption; - - static fromJson(jsonValue: JsonValue, options?: Partial): Encryption; - - static fromJsonString(jsonString: string, options?: Partial): Encryption; - - static equals(a: Encryption | PlainMessage | undefined, b: Encryption | PlainMessage | undefined): boolean; -} - -/** - * @generated from enum livekit.Encryption.Type - */ -export declare enum Encryption_Type { - /** - * @generated from enum value: NONE = 0; - */ - NONE = 0, - - /** - * @generated from enum value: GCM = 1; - */ - GCM = 1, - - /** - * @generated from enum value: CUSTOM = 2; - */ - CUSTOM = 2, -} - -/** - * @generated from message livekit.SimulcastCodecInfo - */ -export declare class SimulcastCodecInfo extends Message { - /** - * @generated from field: string mime_type = 1; - */ - mimeType: string; - - /** - * @generated from field: string mid = 2; - */ - mid: string; - - /** - * @generated from field: string cid = 3; - */ - cid: string; - - /** - * @generated from field: repeated livekit.VideoLayer layers = 4; - */ - layers: VideoLayer[]; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.SimulcastCodecInfo"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): SimulcastCodecInfo; - - static fromJson(jsonValue: JsonValue, options?: Partial): SimulcastCodecInfo; - - static fromJsonString(jsonString: string, options?: Partial): SimulcastCodecInfo; - - static equals(a: SimulcastCodecInfo | PlainMessage | undefined, b: SimulcastCodecInfo | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.TrackInfo - */ -export declare class TrackInfo extends Message { - /** - * @generated from field: string sid = 1; - */ - sid: string; - - /** - * @generated from field: livekit.TrackType type = 2; - */ - type: TrackType; - - /** - * @generated from field: string name = 3; - */ - name: string; - - /** - * @generated from field: bool muted = 4; - */ - muted: boolean; - - /** - * original width of video (unset for audio) - * clients may receive a lower resolution version with simulcast - * - * @generated from field: uint32 width = 5; - */ - width: number; - - /** - * original height of video (unset for audio) - * - * @generated from field: uint32 height = 6; - */ - height: number; - - /** - * true if track is simulcasted - * - * @generated from field: bool simulcast = 7; - */ - simulcast: boolean; - - /** - * true if DTX (Discontinuous Transmission) is disabled for audio - * - * @generated from field: bool disable_dtx = 8; - */ - disableDtx: boolean; - - /** - * source of media - * - * @generated from field: livekit.TrackSource source = 9; - */ - source: TrackSource; - - /** - * @generated from field: repeated livekit.VideoLayer layers = 10; - */ - layers: VideoLayer[]; - - /** - * mime type of codec - * - * @generated from field: string mime_type = 11; - */ - mimeType: string; - - /** - * @generated from field: string mid = 12; - */ - mid: string; - - /** - * @generated from field: repeated livekit.SimulcastCodecInfo codecs = 13; - */ - codecs: SimulcastCodecInfo[]; - - /** - * @generated from field: bool stereo = 14; - */ - stereo: boolean; - - /** - * true if RED (Redundant Encoding) is disabled for audio - * - * @generated from field: bool disable_red = 15; - */ - disableRed: boolean; - - /** - * @generated from field: livekit.Encryption.Type encryption = 16; - */ - encryption: Encryption_Type; - - /** - * @generated from field: string stream = 17; - */ - stream: string; - - /** - * @generated from field: livekit.TimedVersion version = 18; - */ - version?: TimedVersion; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.TrackInfo"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): TrackInfo; - - static fromJson(jsonValue: JsonValue, options?: Partial): TrackInfo; - - static fromJsonString(jsonString: string, options?: Partial): TrackInfo; - - static equals(a: TrackInfo | PlainMessage | undefined, b: TrackInfo | PlainMessage | undefined): boolean; -} - -/** - * provide information about available spatial layers - * - * @generated from message livekit.VideoLayer - */ -export declare class VideoLayer extends Message { - /** - * for tracks with a single layer, this should be HIGH - * - * @generated from field: livekit.VideoQuality quality = 1; - */ - quality: VideoQuality; - - /** - * @generated from field: uint32 width = 2; - */ - width: number; - - /** - * @generated from field: uint32 height = 3; - */ - height: number; - - /** - * target bitrate in bit per second (bps), server will measure actual - * - * @generated from field: uint32 bitrate = 4; - */ - bitrate: number; - - /** - * @generated from field: uint32 ssrc = 5; - */ - ssrc: number; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.VideoLayer"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): VideoLayer; - - static fromJson(jsonValue: JsonValue, options?: Partial): VideoLayer; - - static fromJsonString(jsonString: string, options?: Partial): VideoLayer; - - static equals(a: VideoLayer | PlainMessage | undefined, b: VideoLayer | PlainMessage | undefined): boolean; -} - -/** - * new DataPacket API - * - * @generated from message livekit.DataPacket - */ -export declare class DataPacket extends Message { - /** - * @generated from field: livekit.DataPacket.Kind kind = 1; - */ - kind: DataPacket_Kind; - - /** - * @generated from oneof livekit.DataPacket.value - */ - value: { - /** - * @generated from field: livekit.UserPacket user = 2; - */ - value: UserPacket; - case: "user"; - } | { - /** - * @generated from field: livekit.ActiveSpeakerUpdate speaker = 3; - */ - value: ActiveSpeakerUpdate; - case: "speaker"; - } | { case: undefined; value?: undefined }; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.DataPacket"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): DataPacket; - - static fromJson(jsonValue: JsonValue, options?: Partial): DataPacket; - - static fromJsonString(jsonString: string, options?: Partial): DataPacket; - - static equals(a: DataPacket | PlainMessage | undefined, b: DataPacket | PlainMessage | undefined): boolean; -} - -/** - * @generated from enum livekit.DataPacket.Kind - */ -export declare enum DataPacket_Kind { - /** - * @generated from enum value: RELIABLE = 0; - */ - RELIABLE = 0, - - /** - * @generated from enum value: LOSSY = 1; - */ - LOSSY = 1, -} - -/** - * @generated from message livekit.ActiveSpeakerUpdate - */ -export declare class ActiveSpeakerUpdate extends Message { - /** - * @generated from field: repeated livekit.SpeakerInfo speakers = 1; - */ - speakers: SpeakerInfo[]; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.ActiveSpeakerUpdate"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ActiveSpeakerUpdate; - - static fromJson(jsonValue: JsonValue, options?: Partial): ActiveSpeakerUpdate; - - static fromJsonString(jsonString: string, options?: Partial): ActiveSpeakerUpdate; - - static equals(a: ActiveSpeakerUpdate | PlainMessage | undefined, b: ActiveSpeakerUpdate | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.SpeakerInfo - */ -export declare class SpeakerInfo extends Message { - /** - * @generated from field: string sid = 1; - */ - sid: string; - - /** - * audio level, 0-1.0, 1 is loudest - * - * @generated from field: float level = 2; - */ - level: number; - - /** - * true if speaker is currently active - * - * @generated from field: bool active = 3; - */ - active: boolean; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.SpeakerInfo"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): SpeakerInfo; - - static fromJson(jsonValue: JsonValue, options?: Partial): SpeakerInfo; - - static fromJsonString(jsonString: string, options?: Partial): SpeakerInfo; - - static equals(a: SpeakerInfo | PlainMessage | undefined, b: SpeakerInfo | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.UserPacket - */ -export declare class UserPacket extends Message { - /** - * participant ID of user that sent the message - * - * @generated from field: string participant_sid = 1; - */ - participantSid: string; - - /** - * @generated from field: string participant_identity = 5; - */ - participantIdentity: string; - - /** - * user defined payload - * - * @generated from field: bytes payload = 2; - */ - payload: Uint8Array; - - /** - * the ID of the participants who will receive the message (sent to all by default) - * - * @generated from field: repeated string destination_sids = 3; - */ - destinationSids: string[]; - - /** - * identities of participants who will receive the message (sent to all by default) - * - * @generated from field: repeated string destination_identities = 6; - */ - destinationIdentities: string[]; - - /** - * topic under which the message was published - * - * @generated from field: optional string topic = 4; - */ - topic?: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.UserPacket"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): UserPacket; - - static fromJson(jsonValue: JsonValue, options?: Partial): UserPacket; - - static fromJsonString(jsonString: string, options?: Partial): UserPacket; - - static equals(a: UserPacket | PlainMessage | undefined, b: UserPacket | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.ParticipantTracks - */ -export declare class ParticipantTracks extends Message { - /** - * participant ID of participant to whom the tracks belong - * - * @generated from field: string participant_sid = 1; - */ - participantSid: string; - - /** - * @generated from field: repeated string track_sids = 2; - */ - trackSids: string[]; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.ParticipantTracks"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ParticipantTracks; - - static fromJson(jsonValue: JsonValue, options?: Partial): ParticipantTracks; - - static fromJsonString(jsonString: string, options?: Partial): ParticipantTracks; - - static equals(a: ParticipantTracks | PlainMessage | undefined, b: ParticipantTracks | PlainMessage | undefined): boolean; -} - -/** - * details about the server - * - * @generated from message livekit.ServerInfo - */ -export declare class ServerInfo extends Message { - /** - * @generated from field: livekit.ServerInfo.Edition edition = 1; - */ - edition: ServerInfo_Edition; - - /** - * @generated from field: string version = 2; - */ - version: string; - - /** - * @generated from field: int32 protocol = 3; - */ - protocol: number; - - /** - * @generated from field: string region = 4; - */ - region: string; - - /** - * @generated from field: string node_id = 5; - */ - nodeId: string; - - /** - * additional debugging information. sent only if server is in development mode - * - * @generated from field: string debug_info = 6; - */ - debugInfo: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.ServerInfo"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ServerInfo; - - static fromJson(jsonValue: JsonValue, options?: Partial): ServerInfo; - - static fromJsonString(jsonString: string, options?: Partial): ServerInfo; - - static equals(a: ServerInfo | PlainMessage | undefined, b: ServerInfo | PlainMessage | undefined): boolean; -} - -/** - * @generated from enum livekit.ServerInfo.Edition - */ -export declare enum ServerInfo_Edition { - /** - * @generated from enum value: Standard = 0; - */ - Standard = 0, - - /** - * @generated from enum value: Cloud = 1; - */ - Cloud = 1, -} - -/** - * details about the client - * - * @generated from message livekit.ClientInfo - */ -export declare class ClientInfo extends Message { - /** - * @generated from field: livekit.ClientInfo.SDK sdk = 1; - */ - sdk: ClientInfo_SDK; - - /** - * @generated from field: string version = 2; - */ - version: string; - - /** - * @generated from field: int32 protocol = 3; - */ - protocol: number; - - /** - * @generated from field: string os = 4; - */ - os: string; - - /** - * @generated from field: string os_version = 5; - */ - osVersion: string; - - /** - * @generated from field: string device_model = 6; - */ - deviceModel: string; - - /** - * @generated from field: string browser = 7; - */ - browser: string; - - /** - * @generated from field: string browser_version = 8; - */ - browserVersion: string; - - /** - * @generated from field: string address = 9; - */ - address: string; - - /** - * wifi, wired, cellular, vpn, empty if not known - * - * @generated from field: string network = 10; - */ - network: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.ClientInfo"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientInfo; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientInfo; - - static fromJsonString(jsonString: string, options?: Partial): ClientInfo; - - static equals(a: ClientInfo | PlainMessage | undefined, b: ClientInfo | PlainMessage | undefined): boolean; -} - -/** - * @generated from enum livekit.ClientInfo.SDK - */ -export declare enum ClientInfo_SDK { - /** - * @generated from enum value: UNKNOWN = 0; - */ - UNKNOWN = 0, - - /** - * @generated from enum value: JS = 1; - */ - JS = 1, - - /** - * @generated from enum value: SWIFT = 2; - */ - SWIFT = 2, - - /** - * @generated from enum value: ANDROID = 3; - */ - ANDROID = 3, - - /** - * @generated from enum value: FLUTTER = 4; - */ - FLUTTER = 4, - - /** - * @generated from enum value: GO = 5; - */ - GO = 5, - - /** - * @generated from enum value: UNITY = 6; - */ - UNITY = 6, - - /** - * @generated from enum value: REACT_NATIVE = 7; - */ - REACT_NATIVE = 7, - - /** - * @generated from enum value: RUST = 8; - */ - RUST = 8, - - /** - * @generated from enum value: PYTHON = 9; - */ - PYTHON = 9, - - /** - * @generated from enum value: CPP = 10; - */ - CPP = 10, -} - -/** - * server provided client configuration - * - * @generated from message livekit.ClientConfiguration - */ -export declare class ClientConfiguration extends Message { - /** - * @generated from field: livekit.VideoConfiguration video = 1; - */ - video?: VideoConfiguration; - - /** - * @generated from field: livekit.VideoConfiguration screen = 2; - */ - screen?: VideoConfiguration; - - /** - * @generated from field: livekit.ClientConfigSetting resume_connection = 3; - */ - resumeConnection: ClientConfigSetting; - - /** - * @generated from field: livekit.DisabledCodecs disabled_codecs = 4; - */ - disabledCodecs?: DisabledCodecs; - - /** - * @generated from field: livekit.ClientConfigSetting force_relay = 5; - */ - forceRelay: ClientConfigSetting; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.ClientConfiguration"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientConfiguration; - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientConfiguration; - - static fromJsonString(jsonString: string, options?: Partial): ClientConfiguration; - - static equals(a: ClientConfiguration | PlainMessage | undefined, b: ClientConfiguration | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.VideoConfiguration - */ -export declare class VideoConfiguration extends Message { - /** - * @generated from field: livekit.ClientConfigSetting hardware_encoder = 1; - */ - hardwareEncoder: ClientConfigSetting; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.VideoConfiguration"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): VideoConfiguration; - - static fromJson(jsonValue: JsonValue, options?: Partial): VideoConfiguration; - - static fromJsonString(jsonString: string, options?: Partial): VideoConfiguration; - - static equals(a: VideoConfiguration | PlainMessage | undefined, b: VideoConfiguration | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.DisabledCodecs - */ -export declare class DisabledCodecs extends Message { - /** - * disabled for both publish and subscribe - * - * @generated from field: repeated livekit.Codec codecs = 1; - */ - codecs: Codec[]; - - /** - * only disable for publish - * - * @generated from field: repeated livekit.Codec publish = 2; - */ - publish: Codec[]; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.DisabledCodecs"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): DisabledCodecs; - - static fromJson(jsonValue: JsonValue, options?: Partial): DisabledCodecs; - - static fromJsonString(jsonString: string, options?: Partial): DisabledCodecs; - - static equals(a: DisabledCodecs | PlainMessage | undefined, b: DisabledCodecs | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.RTPDrift - */ -export declare class RTPDrift extends Message { - /** - * @generated from field: google.protobuf.Timestamp start_time = 1; - */ - startTime?: Timestamp; - - /** - * @generated from field: google.protobuf.Timestamp end_time = 2; - */ - endTime?: Timestamp; - - /** - * @generated from field: double duration = 3; - */ - duration: number; - - /** - * @generated from field: uint64 start_timestamp = 4; - */ - startTimestamp: bigint; - - /** - * @generated from field: uint64 end_timestamp = 5; - */ - endTimestamp: bigint; - - /** - * @generated from field: uint64 rtp_clock_ticks = 6; - */ - rtpClockTicks: bigint; - - /** - * @generated from field: int64 drift_samples = 7; - */ - driftSamples: bigint; - - /** - * @generated from field: double drift_ms = 8; - */ - driftMs: number; - - /** - * @generated from field: double clock_rate = 9; - */ - clockRate: number; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.RTPDrift"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): RTPDrift; - - static fromJson(jsonValue: JsonValue, options?: Partial): RTPDrift; - - static fromJsonString(jsonString: string, options?: Partial): RTPDrift; - - static equals(a: RTPDrift | PlainMessage | undefined, b: RTPDrift | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.RTPStats - */ -export declare class RTPStats extends Message { - /** - * @generated from field: google.protobuf.Timestamp start_time = 1; - */ - startTime?: Timestamp; - - /** - * @generated from field: google.protobuf.Timestamp end_time = 2; - */ - endTime?: Timestamp; - - /** - * @generated from field: double duration = 3; - */ - duration: number; - - /** - * @generated from field: uint32 packets = 4; - */ - packets: number; - - /** - * @generated from field: double packet_rate = 5; - */ - packetRate: number; - - /** - * @generated from field: uint64 bytes = 6; - */ - bytes: bigint; - - /** - * @generated from field: uint64 header_bytes = 39; - */ - headerBytes: bigint; - - /** - * @generated from field: double bitrate = 7; - */ - bitrate: number; - - /** - * @generated from field: uint32 packets_lost = 8; - */ - packetsLost: number; - - /** - * @generated from field: double packet_loss_rate = 9; - */ - packetLossRate: number; - - /** - * @generated from field: float packet_loss_percentage = 10; - */ - packetLossPercentage: number; - - /** - * @generated from field: uint32 packets_duplicate = 11; - */ - packetsDuplicate: number; - - /** - * @generated from field: double packet_duplicate_rate = 12; - */ - packetDuplicateRate: number; - - /** - * @generated from field: uint64 bytes_duplicate = 13; - */ - bytesDuplicate: bigint; - - /** - * @generated from field: uint64 header_bytes_duplicate = 40; - */ - headerBytesDuplicate: bigint; - - /** - * @generated from field: double bitrate_duplicate = 14; - */ - bitrateDuplicate: number; - - /** - * @generated from field: uint32 packets_padding = 15; - */ - packetsPadding: number; - - /** - * @generated from field: double packet_padding_rate = 16; - */ - packetPaddingRate: number; - - /** - * @generated from field: uint64 bytes_padding = 17; - */ - bytesPadding: bigint; - - /** - * @generated from field: uint64 header_bytes_padding = 41; - */ - headerBytesPadding: bigint; - - /** - * @generated from field: double bitrate_padding = 18; - */ - bitratePadding: number; - - /** - * @generated from field: uint32 packets_out_of_order = 19; - */ - packetsOutOfOrder: number; - - /** - * @generated from field: uint32 frames = 20; - */ - frames: number; - - /** - * @generated from field: double frame_rate = 21; - */ - frameRate: number; - - /** - * @generated from field: double jitter_current = 22; - */ - jitterCurrent: number; - - /** - * @generated from field: double jitter_max = 23; - */ - jitterMax: number; - - /** - * @generated from field: map gap_histogram = 24; - */ - gapHistogram: { [key: number]: number }; - - /** - * @generated from field: uint32 nacks = 25; - */ - nacks: number; - - /** - * @generated from field: uint32 nack_acks = 37; - */ - nackAcks: number; - - /** - * @generated from field: uint32 nack_misses = 26; - */ - nackMisses: number; - - /** - * @generated from field: uint32 nack_repeated = 38; - */ - nackRepeated: number; - - /** - * @generated from field: uint32 plis = 27; - */ - plis: number; - - /** - * @generated from field: google.protobuf.Timestamp last_pli = 28; - */ - lastPli?: Timestamp; - - /** - * @generated from field: uint32 firs = 29; - */ - firs: number; - - /** - * @generated from field: google.protobuf.Timestamp last_fir = 30; - */ - lastFir?: Timestamp; - - /** - * @generated from field: uint32 rtt_current = 31; - */ - rttCurrent: number; - - /** - * @generated from field: uint32 rtt_max = 32; - */ - rttMax: number; - - /** - * @generated from field: uint32 key_frames = 33; - */ - keyFrames: number; - - /** - * @generated from field: google.protobuf.Timestamp last_key_frame = 34; - */ - lastKeyFrame?: Timestamp; - - /** - * @generated from field: uint32 layer_lock_plis = 35; - */ - layerLockPlis: number; - - /** - * @generated from field: google.protobuf.Timestamp last_layer_lock_pli = 36; - */ - lastLayerLockPli?: Timestamp; - - /** - * @generated from field: livekit.RTPDrift packet_drift = 44; - */ - packetDrift?: RTPDrift; - - /** - * NEXT_ID: 46 - * - * @generated from field: livekit.RTPDrift report_drift = 45; - */ - reportDrift?: RTPDrift; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.RTPStats"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): RTPStats; - - static fromJson(jsonValue: JsonValue, options?: Partial): RTPStats; - - static fromJsonString(jsonString: string, options?: Partial): RTPStats; - - static equals(a: RTPStats | PlainMessage | undefined, b: RTPStats | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.TimedVersion - */ -export declare class TimedVersion extends Message { - /** - * @generated from field: int64 unix_micro = 1; - */ - unixMicro: bigint; - - /** - * @generated from field: int32 ticks = 2; - */ - ticks: number; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.TimedVersion"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): TimedVersion; - - static fromJson(jsonValue: JsonValue, options?: Partial): TimedVersion; - - static fromJsonString(jsonString: string, options?: Partial): TimedVersion; - - static equals(a: TimedVersion | PlainMessage | undefined, b: TimedVersion | PlainMessage | undefined): boolean; -} - diff --git a/packages/javascript/src/gen/livekit_models_pb.js b/packages/javascript/src/gen/livekit_models_pb.js deleted file mode 100644 index 92ca24c0..00000000 --- a/packages/javascript/src/gen/livekit_models_pb.js +++ /dev/null @@ -1,613 +0,0 @@ -// Copyright 2023 LiveKit, Inc. -// -// 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. - -// @generated by protoc-gen-es v1.7.2 with parameter "target=js+dts" -// @generated from file livekit_models.proto (package livekit, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { proto3, Timestamp } from "@bufbuild/protobuf"; - -/** - * @generated from enum livekit.AudioCodec - */ -export const AudioCodec = proto3.makeEnum( - "livekit.AudioCodec", - [ - {no: 0, name: "DEFAULT_AC"}, - {no: 1, name: "OPUS"}, - {no: 2, name: "AAC"}, - ], -); - -/** - * @generated from enum livekit.VideoCodec - */ -export const VideoCodec = proto3.makeEnum( - "livekit.VideoCodec", - [ - {no: 0, name: "DEFAULT_VC"}, - {no: 1, name: "H264_BASELINE"}, - {no: 2, name: "H264_MAIN"}, - {no: 3, name: "H264_HIGH"}, - {no: 4, name: "VP8"}, - ], -); - -/** - * @generated from enum livekit.ImageCodec - */ -export const ImageCodec = proto3.makeEnum( - "livekit.ImageCodec", - [ - {no: 0, name: "IC_DEFAULT"}, - {no: 1, name: "IC_JPEG"}, - ], -); - -/** - * @generated from enum livekit.TrackType - */ -export const TrackType = proto3.makeEnum( - "livekit.TrackType", - [ - {no: 0, name: "AUDIO"}, - {no: 1, name: "VIDEO"}, - {no: 2, name: "DATA"}, - ], -); - -/** - * @generated from enum livekit.TrackSource - */ -export const TrackSource = proto3.makeEnum( - "livekit.TrackSource", - [ - {no: 0, name: "UNKNOWN"}, - {no: 1, name: "CAMERA"}, - {no: 2, name: "MICROPHONE"}, - {no: 3, name: "SCREEN_SHARE"}, - {no: 4, name: "SCREEN_SHARE_AUDIO"}, - ], -); - -/** - * @generated from enum livekit.VideoQuality - */ -export const VideoQuality = proto3.makeEnum( - "livekit.VideoQuality", - [ - {no: 0, name: "LOW"}, - {no: 1, name: "MEDIUM"}, - {no: 2, name: "HIGH"}, - {no: 3, name: "OFF"}, - ], -); - -/** - * @generated from enum livekit.ConnectionQuality - */ -export const ConnectionQuality = proto3.makeEnum( - "livekit.ConnectionQuality", - [ - {no: 0, name: "POOR"}, - {no: 1, name: "GOOD"}, - {no: 2, name: "EXCELLENT"}, - {no: 3, name: "LOST"}, - ], -); - -/** - * @generated from enum livekit.ClientConfigSetting - */ -export const ClientConfigSetting = proto3.makeEnum( - "livekit.ClientConfigSetting", - [ - {no: 0, name: "UNSET"}, - {no: 1, name: "DISABLED"}, - {no: 2, name: "ENABLED"}, - ], -); - -/** - * @generated from enum livekit.DisconnectReason - */ -export const DisconnectReason = proto3.makeEnum( - "livekit.DisconnectReason", - [ - {no: 0, name: "UNKNOWN_REASON"}, - {no: 1, name: "CLIENT_INITIATED"}, - {no: 2, name: "DUPLICATE_IDENTITY"}, - {no: 3, name: "SERVER_SHUTDOWN"}, - {no: 4, name: "PARTICIPANT_REMOVED"}, - {no: 5, name: "ROOM_DELETED"}, - {no: 6, name: "STATE_MISMATCH"}, - {no: 7, name: "JOIN_FAILURE"}, - {no: 8, name: "MIGRATION"}, - {no: 9, name: "SIGNAL_CLOSE"}, - ], -); - -/** - * @generated from enum livekit.ReconnectReason - */ -export const ReconnectReason = proto3.makeEnum( - "livekit.ReconnectReason", - [ - {no: 0, name: "RR_UNKNOWN"}, - {no: 1, name: "RR_SIGNAL_DISCONNECTED"}, - {no: 2, name: "RR_PUBLISHER_FAILED"}, - {no: 3, name: "RR_SUBSCRIBER_FAILED"}, - {no: 4, name: "RR_SWITCH_CANDIDATE"}, - ], -); - -/** - * @generated from enum livekit.SubscriptionError - */ -export const SubscriptionError = proto3.makeEnum( - "livekit.SubscriptionError", - [ - {no: 0, name: "SE_UNKNOWN"}, - {no: 1, name: "SE_CODEC_UNSUPPORTED"}, - {no: 2, name: "SE_TRACK_NOTFOUND"}, - ], -); - -/** - * @generated from message livekit.Room - */ -export const Room = proto3.makeMessageType( - "livekit.Room", - () => [ - { no: 1, name: "sid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "empty_timeout", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 14, name: "departure_timeout", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 4, name: "max_participants", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 5, name: "creation_time", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 6, name: "turn_password", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 7, name: "enabled_codecs", kind: "message", T: Codec, repeated: true }, - { no: 8, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 9, name: "num_participants", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 11, name: "num_publishers", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 10, name: "active_recording", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 13, name: "version", kind: "message", T: TimedVersion }, - ], -); - -/** - * @generated from message livekit.Codec - */ -export const Codec = proto3.makeMessageType( - "livekit.Codec", - () => [ - { no: 1, name: "mime", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "fmtp_line", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message livekit.PlayoutDelay - */ -export const PlayoutDelay = proto3.makeMessageType( - "livekit.PlayoutDelay", - () => [ - { no: 1, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 2, name: "min", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 3, name: "max", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - ], -); - -/** - * @generated from message livekit.ParticipantPermission - */ -export const ParticipantPermission = proto3.makeMessageType( - "livekit.ParticipantPermission", - () => [ - { no: 1, name: "can_subscribe", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 2, name: "can_publish", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 3, name: "can_publish_data", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 9, name: "can_publish_sources", kind: "enum", T: proto3.getEnumType(TrackSource), repeated: true }, - { no: 7, name: "hidden", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 8, name: "recorder", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 10, name: "can_update_metadata", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 11, name: "agent", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ], -); - -/** - * @generated from message livekit.ParticipantInfo - */ -export const ParticipantInfo = proto3.makeMessageType( - "livekit.ParticipantInfo", - () => [ - { no: 1, name: "sid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "state", kind: "enum", T: proto3.getEnumType(ParticipantInfo_State) }, - { no: 4, name: "tracks", kind: "message", T: TrackInfo, repeated: true }, - { no: 5, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "joined_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 9, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 10, name: "version", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 11, name: "permission", kind: "message", T: ParticipantPermission }, - { no: 12, name: "region", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 13, name: "is_publisher", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 14, name: "kind", kind: "enum", T: proto3.getEnumType(ParticipantInfo_Kind) }, - ], -); - -/** - * @generated from enum livekit.ParticipantInfo.State - */ -export const ParticipantInfo_State = proto3.makeEnum( - "livekit.ParticipantInfo.State", - [ - {no: 0, name: "JOINING"}, - {no: 1, name: "JOINED"}, - {no: 2, name: "ACTIVE"}, - {no: 3, name: "DISCONNECTED"}, - ], -); - -/** - * @generated from enum livekit.ParticipantInfo.Kind - */ -export const ParticipantInfo_Kind = proto3.makeEnum( - "livekit.ParticipantInfo.Kind", - [ - {no: 0, name: "STANDARD"}, - {no: 1, name: "INGRESS"}, - {no: 2, name: "EGRESS"}, - {no: 3, name: "SIP"}, - {no: 4, name: "AGENT"}, - ], -); - -/** - * @generated from message livekit.Encryption - */ -export const Encryption = proto3.makeMessageType( - "livekit.Encryption", - [], -); - -/** - * @generated from enum livekit.Encryption.Type - */ -export const Encryption_Type = proto3.makeEnum( - "livekit.Encryption.Type", - [ - {no: 0, name: "NONE"}, - {no: 1, name: "GCM"}, - {no: 2, name: "CUSTOM"}, - ], -); - -/** - * @generated from message livekit.SimulcastCodecInfo - */ -export const SimulcastCodecInfo = proto3.makeMessageType( - "livekit.SimulcastCodecInfo", - () => [ - { no: 1, name: "mime_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "mid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "cid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "layers", kind: "message", T: VideoLayer, repeated: true }, - ], -); - -/** - * @generated from message livekit.TrackInfo - */ -export const TrackInfo = proto3.makeMessageType( - "livekit.TrackInfo", - () => [ - { no: 1, name: "sid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "type", kind: "enum", T: proto3.getEnumType(TrackType) }, - { no: 3, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "muted", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 5, name: "width", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 6, name: "height", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 7, name: "simulcast", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 8, name: "disable_dtx", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 9, name: "source", kind: "enum", T: proto3.getEnumType(TrackSource) }, - { no: 10, name: "layers", kind: "message", T: VideoLayer, repeated: true }, - { no: 11, name: "mime_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 12, name: "mid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 13, name: "codecs", kind: "message", T: SimulcastCodecInfo, repeated: true }, - { no: 14, name: "stereo", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 15, name: "disable_red", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 16, name: "encryption", kind: "enum", T: proto3.getEnumType(Encryption_Type) }, - { no: 17, name: "stream", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 18, name: "version", kind: "message", T: TimedVersion }, - ], -); - -/** - * provide information about available spatial layers - * - * @generated from message livekit.VideoLayer - */ -export const VideoLayer = proto3.makeMessageType( - "livekit.VideoLayer", - () => [ - { no: 1, name: "quality", kind: "enum", T: proto3.getEnumType(VideoQuality) }, - { no: 2, name: "width", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 3, name: "height", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 4, name: "bitrate", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 5, name: "ssrc", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - ], -); - -/** - * new DataPacket API - * - * @generated from message livekit.DataPacket - */ -export const DataPacket = proto3.makeMessageType( - "livekit.DataPacket", - () => [ - { no: 1, name: "kind", kind: "enum", T: proto3.getEnumType(DataPacket_Kind) }, - { no: 2, name: "user", kind: "message", T: UserPacket, oneof: "value" }, - { no: 3, name: "speaker", kind: "message", T: ActiveSpeakerUpdate, oneof: "value" }, - ], -); - -/** - * @generated from enum livekit.DataPacket.Kind - */ -export const DataPacket_Kind = proto3.makeEnum( - "livekit.DataPacket.Kind", - [ - {no: 0, name: "RELIABLE"}, - {no: 1, name: "LOSSY"}, - ], -); - -/** - * @generated from message livekit.ActiveSpeakerUpdate - */ -export const ActiveSpeakerUpdate = proto3.makeMessageType( - "livekit.ActiveSpeakerUpdate", - () => [ - { no: 1, name: "speakers", kind: "message", T: SpeakerInfo, repeated: true }, - ], -); - -/** - * @generated from message livekit.SpeakerInfo - */ -export const SpeakerInfo = proto3.makeMessageType( - "livekit.SpeakerInfo", - () => [ - { no: 1, name: "sid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "level", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, - { no: 3, name: "active", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ], -); - -/** - * @generated from message livekit.UserPacket - */ -export const UserPacket = proto3.makeMessageType( - "livekit.UserPacket", - () => [ - { no: 1, name: "participant_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "payload", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "destination_sids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 6, name: "destination_identities", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 4, name: "topic", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, - ], -); - -/** - * @generated from message livekit.ParticipantTracks - */ -export const ParticipantTracks = proto3.makeMessageType( - "livekit.ParticipantTracks", - () => [ - { no: 1, name: "participant_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "track_sids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ], -); - -/** - * details about the server - * - * @generated from message livekit.ServerInfo - */ -export const ServerInfo = proto3.makeMessageType( - "livekit.ServerInfo", - () => [ - { no: 1, name: "edition", kind: "enum", T: proto3.getEnumType(ServerInfo_Edition) }, - { no: 2, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "protocol", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 4, name: "region", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "node_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "debug_info", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from enum livekit.ServerInfo.Edition - */ -export const ServerInfo_Edition = proto3.makeEnum( - "livekit.ServerInfo.Edition", - [ - {no: 0, name: "Standard"}, - {no: 1, name: "Cloud"}, - ], -); - -/** - * details about the client - * - * @generated from message livekit.ClientInfo - */ -export const ClientInfo = proto3.makeMessageType( - "livekit.ClientInfo", - () => [ - { no: 1, name: "sdk", kind: "enum", T: proto3.getEnumType(ClientInfo_SDK) }, - { no: 2, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "protocol", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 4, name: "os", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "os_version", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "device_model", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 7, name: "browser", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 8, name: "browser_version", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 9, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 10, name: "network", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from enum livekit.ClientInfo.SDK - */ -export const ClientInfo_SDK = proto3.makeEnum( - "livekit.ClientInfo.SDK", - [ - {no: 0, name: "UNKNOWN"}, - {no: 1, name: "JS"}, - {no: 2, name: "SWIFT"}, - {no: 3, name: "ANDROID"}, - {no: 4, name: "FLUTTER"}, - {no: 5, name: "GO"}, - {no: 6, name: "UNITY"}, - {no: 7, name: "REACT_NATIVE"}, - {no: 8, name: "RUST"}, - {no: 9, name: "PYTHON"}, - {no: 10, name: "CPP"}, - ], -); - -/** - * server provided client configuration - * - * @generated from message livekit.ClientConfiguration - */ -export const ClientConfiguration = proto3.makeMessageType( - "livekit.ClientConfiguration", - () => [ - { no: 1, name: "video", kind: "message", T: VideoConfiguration }, - { no: 2, name: "screen", kind: "message", T: VideoConfiguration }, - { no: 3, name: "resume_connection", kind: "enum", T: proto3.getEnumType(ClientConfigSetting) }, - { no: 4, name: "disabled_codecs", kind: "message", T: DisabledCodecs }, - { no: 5, name: "force_relay", kind: "enum", T: proto3.getEnumType(ClientConfigSetting) }, - ], -); - -/** - * @generated from message livekit.VideoConfiguration - */ -export const VideoConfiguration = proto3.makeMessageType( - "livekit.VideoConfiguration", - () => [ - { no: 1, name: "hardware_encoder", kind: "enum", T: proto3.getEnumType(ClientConfigSetting) }, - ], -); - -/** - * @generated from message livekit.DisabledCodecs - */ -export const DisabledCodecs = proto3.makeMessageType( - "livekit.DisabledCodecs", - () => [ - { no: 1, name: "codecs", kind: "message", T: Codec, repeated: true }, - { no: 2, name: "publish", kind: "message", T: Codec, repeated: true }, - ], -); - -/** - * @generated from message livekit.RTPDrift - */ -export const RTPDrift = proto3.makeMessageType( - "livekit.RTPDrift", - () => [ - { no: 1, name: "start_time", kind: "message", T: Timestamp }, - { no: 2, name: "end_time", kind: "message", T: Timestamp }, - { no: 3, name: "duration", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, - { no: 4, name: "start_timestamp", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 5, name: "end_timestamp", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 6, name: "rtp_clock_ticks", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 7, name: "drift_samples", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 8, name: "drift_ms", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, - { no: 9, name: "clock_rate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, - ], -); - -/** - * @generated from message livekit.RTPStats - */ -export const RTPStats = proto3.makeMessageType( - "livekit.RTPStats", - () => [ - { no: 1, name: "start_time", kind: "message", T: Timestamp }, - { no: 2, name: "end_time", kind: "message", T: Timestamp }, - { no: 3, name: "duration", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, - { no: 4, name: "packets", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 5, name: "packet_rate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, - { no: 6, name: "bytes", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 39, name: "header_bytes", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 7, name: "bitrate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, - { no: 8, name: "packets_lost", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 9, name: "packet_loss_rate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, - { no: 10, name: "packet_loss_percentage", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, - { no: 11, name: "packets_duplicate", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 12, name: "packet_duplicate_rate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, - { no: 13, name: "bytes_duplicate", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 40, name: "header_bytes_duplicate", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 14, name: "bitrate_duplicate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, - { no: 15, name: "packets_padding", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 16, name: "packet_padding_rate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, - { no: 17, name: "bytes_padding", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 41, name: "header_bytes_padding", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 18, name: "bitrate_padding", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, - { no: 19, name: "packets_out_of_order", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 20, name: "frames", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 21, name: "frame_rate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, - { no: 22, name: "jitter_current", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, - { no: 23, name: "jitter_max", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, - { no: 24, name: "gap_histogram", kind: "map", K: 5 /* ScalarType.INT32 */, V: {kind: "scalar", T: 13 /* ScalarType.UINT32 */} }, - { no: 25, name: "nacks", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 37, name: "nack_acks", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 26, name: "nack_misses", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 38, name: "nack_repeated", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 27, name: "plis", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 28, name: "last_pli", kind: "message", T: Timestamp }, - { no: 29, name: "firs", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 30, name: "last_fir", kind: "message", T: Timestamp }, - { no: 31, name: "rtt_current", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 32, name: "rtt_max", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 33, name: "key_frames", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 34, name: "last_key_frame", kind: "message", T: Timestamp }, - { no: 35, name: "layer_lock_plis", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 36, name: "last_layer_lock_pli", kind: "message", T: Timestamp }, - { no: 44, name: "packet_drift", kind: "message", T: RTPDrift }, - { no: 45, name: "report_drift", kind: "message", T: RTPDrift }, - ], -); - -/** - * @generated from message livekit.TimedVersion - */ -export const TimedVersion = proto3.makeMessageType( - "livekit.TimedVersion", - () => [ - { no: 1, name: "unix_micro", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 2, name: "ticks", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - ], -); - diff --git a/packages/javascript/src/gen/livekit_rtc_pb.d.ts b/packages/javascript/src/gen/livekit_rtc_pb.d.ts deleted file mode 100644 index 9cddcb69..00000000 --- a/packages/javascript/src/gen/livekit_rtc_pb.d.ts +++ /dev/null @@ -1,1782 +0,0 @@ -// Copyright 2023 LiveKit, Inc. -// -// 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. - -// @generated by protoc-gen-es v1.7.2 with parameter "target=js+dts" -// @generated from file livekit_rtc.proto (package livekit, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import type { ClientConfiguration, ConnectionQuality, DisconnectReason, Encryption_Type, ParticipantInfo, ParticipantTracks, Room, ServerInfo, SpeakerInfo, SubscriptionError, TrackInfo, TrackSource, TrackType, VideoLayer, VideoQuality } from "./livekit_models_pb.js"; - -/** - * @generated from enum livekit.SignalTarget - */ -export declare enum SignalTarget { - /** - * @generated from enum value: PUBLISHER = 0; - */ - PUBLISHER = 0, - - /** - * @generated from enum value: SUBSCRIBER = 1; - */ - SUBSCRIBER = 1, -} - -/** - * @generated from enum livekit.StreamState - */ -export declare enum StreamState { - /** - * @generated from enum value: ACTIVE = 0; - */ - ACTIVE = 0, - - /** - * @generated from enum value: PAUSED = 1; - */ - PAUSED = 1, -} - -/** - * @generated from enum livekit.CandidateProtocol - */ -export declare enum CandidateProtocol { - /** - * @generated from enum value: UDP = 0; - */ - UDP = 0, - - /** - * @generated from enum value: TCP = 1; - */ - TCP = 1, - - /** - * @generated from enum value: TLS = 2; - */ - TLS = 2, -} - -/** - * @generated from message livekit.SignalRequest - */ -export declare class SignalRequest extends Message { - /** - * @generated from oneof livekit.SignalRequest.message - */ - message: { - /** - * initial join exchange, for publisher - * - * @generated from field: livekit.SessionDescription offer = 1; - */ - value: SessionDescription; - case: "offer"; - } | { - /** - * participant answering publisher offer - * - * @generated from field: livekit.SessionDescription answer = 2; - */ - value: SessionDescription; - case: "answer"; - } | { - /** - * @generated from field: livekit.TrickleRequest trickle = 3; - */ - value: TrickleRequest; - case: "trickle"; - } | { - /** - * @generated from field: livekit.AddTrackRequest add_track = 4; - */ - value: AddTrackRequest; - case: "addTrack"; - } | { - /** - * mute the participant's published tracks - * - * @generated from field: livekit.MuteTrackRequest mute = 5; - */ - value: MuteTrackRequest; - case: "mute"; - } | { - /** - * Subscribe or unsubscribe from tracks - * - * @generated from field: livekit.UpdateSubscription subscription = 6; - */ - value: UpdateSubscription; - case: "subscription"; - } | { - /** - * Update settings of subscribed tracks - * - * @generated from field: livekit.UpdateTrackSettings track_setting = 7; - */ - value: UpdateTrackSettings; - case: "trackSetting"; - } | { - /** - * Immediately terminate session - * - * @generated from field: livekit.LeaveRequest leave = 8; - */ - value: LeaveRequest; - case: "leave"; - } | { - /** - * Update published video layers - * - * @generated from field: livekit.UpdateVideoLayers update_layers = 10; - */ - value: UpdateVideoLayers; - case: "updateLayers"; - } | { - /** - * Update subscriber permissions - * - * @generated from field: livekit.SubscriptionPermission subscription_permission = 11; - */ - value: SubscriptionPermission; - case: "subscriptionPermission"; - } | { - /** - * sync client's subscribe state to server during reconnect - * - * @generated from field: livekit.SyncState sync_state = 12; - */ - value: SyncState; - case: "syncState"; - } | { - /** - * Simulate conditions, for client validations - * - * @generated from field: livekit.SimulateScenario simulate = 13; - */ - value: SimulateScenario; - case: "simulate"; - } | { - /** - * client triggered ping to server - * - * deprecated by ping_req (message Ping) - * - * @generated from field: int64 ping = 14; - */ - value: bigint; - case: "ping"; - } | { - /** - * update a participant's own metadata and/or name - * - * @generated from field: livekit.UpdateParticipantMetadata update_metadata = 15; - */ - value: UpdateParticipantMetadata; - case: "updateMetadata"; - } | { - /** - * @generated from field: livekit.Ping ping_req = 16; - */ - value: Ping; - case: "pingReq"; - } | { case: undefined; value?: undefined }; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.SignalRequest"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): SignalRequest; - - static fromJson(jsonValue: JsonValue, options?: Partial): SignalRequest; - - static fromJsonString(jsonString: string, options?: Partial): SignalRequest; - - static equals(a: SignalRequest | PlainMessage | undefined, b: SignalRequest | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.SignalResponse - */ -export declare class SignalResponse extends Message { - /** - * @generated from oneof livekit.SignalResponse.message - */ - message: { - /** - * sent when join is accepted - * - * @generated from field: livekit.JoinResponse join = 1; - */ - value: JoinResponse; - case: "join"; - } | { - /** - * sent when server answers publisher - * - * @generated from field: livekit.SessionDescription answer = 2; - */ - value: SessionDescription; - case: "answer"; - } | { - /** - * sent when server is sending subscriber an offer - * - * @generated from field: livekit.SessionDescription offer = 3; - */ - value: SessionDescription; - case: "offer"; - } | { - /** - * sent when an ICE candidate is available - * - * @generated from field: livekit.TrickleRequest trickle = 4; - */ - value: TrickleRequest; - case: "trickle"; - } | { - /** - * sent when participants in the room has changed - * - * @generated from field: livekit.ParticipantUpdate update = 5; - */ - value: ParticipantUpdate; - case: "update"; - } | { - /** - * sent to the participant when their track has been published - * - * @generated from field: livekit.TrackPublishedResponse track_published = 6; - */ - value: TrackPublishedResponse; - case: "trackPublished"; - } | { - /** - * Immediately terminate session - * - * @generated from field: livekit.LeaveRequest leave = 8; - */ - value: LeaveRequest; - case: "leave"; - } | { - /** - * server initiated mute - * - * @generated from field: livekit.MuteTrackRequest mute = 9; - */ - value: MuteTrackRequest; - case: "mute"; - } | { - /** - * indicates changes to speaker status, including when they've gone to not speaking - * - * @generated from field: livekit.SpeakersChanged speakers_changed = 10; - */ - value: SpeakersChanged; - case: "speakersChanged"; - } | { - /** - * sent when metadata of the room has changed - * - * @generated from field: livekit.RoomUpdate room_update = 11; - */ - value: RoomUpdate; - case: "roomUpdate"; - } | { - /** - * when connection quality changed - * - * @generated from field: livekit.ConnectionQualityUpdate connection_quality = 12; - */ - value: ConnectionQualityUpdate; - case: "connectionQuality"; - } | { - /** - * when streamed tracks state changed, used to notify when any of the streams were paused due to - * congestion - * - * @generated from field: livekit.StreamStateUpdate stream_state_update = 13; - */ - value: StreamStateUpdate; - case: "streamStateUpdate"; - } | { - /** - * when max subscribe quality changed, used by dynamic broadcasting to disable unused layers - * - * @generated from field: livekit.SubscribedQualityUpdate subscribed_quality_update = 14; - */ - value: SubscribedQualityUpdate; - case: "subscribedQualityUpdate"; - } | { - /** - * when subscription permission changed - * - * @generated from field: livekit.SubscriptionPermissionUpdate subscription_permission_update = 15; - */ - value: SubscriptionPermissionUpdate; - case: "subscriptionPermissionUpdate"; - } | { - /** - * update the token the client was using, to prevent an active client from using an expired token - * - * @generated from field: string refresh_token = 16; - */ - value: string; - case: "refreshToken"; - } | { - /** - * server initiated track unpublish - * - * @generated from field: livekit.TrackUnpublishedResponse track_unpublished = 17; - */ - value: TrackUnpublishedResponse; - case: "trackUnpublished"; - } | { - /** - * respond to ping - * - * deprecated by pong_resp (message Pong) - * - * @generated from field: int64 pong = 18; - */ - value: bigint; - case: "pong"; - } | { - /** - * sent when client reconnects - * - * @generated from field: livekit.ReconnectResponse reconnect = 19; - */ - value: ReconnectResponse; - case: "reconnect"; - } | { - /** - * respond to Ping - * - * @generated from field: livekit.Pong pong_resp = 20; - */ - value: Pong; - case: "pongResp"; - } | { - /** - * Subscription response, client should not expect any media from this subscription if it fails - * - * @generated from field: livekit.SubscriptionResponse subscription_response = 21; - */ - value: SubscriptionResponse; - case: "subscriptionResponse"; - } | { case: undefined; value?: undefined }; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.SignalResponse"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): SignalResponse; - - static fromJson(jsonValue: JsonValue, options?: Partial): SignalResponse; - - static fromJsonString(jsonString: string, options?: Partial): SignalResponse; - - static equals(a: SignalResponse | PlainMessage | undefined, b: SignalResponse | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.SimulcastCodec - */ -export declare class SimulcastCodec extends Message { - /** - * @generated from field: string codec = 1; - */ - codec: string; - - /** - * @generated from field: string cid = 2; - */ - cid: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.SimulcastCodec"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): SimulcastCodec; - - static fromJson(jsonValue: JsonValue, options?: Partial): SimulcastCodec; - - static fromJsonString(jsonString: string, options?: Partial): SimulcastCodec; - - static equals(a: SimulcastCodec | PlainMessage | undefined, b: SimulcastCodec | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.AddTrackRequest - */ -export declare class AddTrackRequest extends Message { - /** - * client ID of track, to match it when RTC track is received - * - * @generated from field: string cid = 1; - */ - cid: string; - - /** - * @generated from field: string name = 2; - */ - name: string; - - /** - * @generated from field: livekit.TrackType type = 3; - */ - type: TrackType; - - /** - * to be deprecated in favor of layers - * - * @generated from field: uint32 width = 4; - */ - width: number; - - /** - * @generated from field: uint32 height = 5; - */ - height: number; - - /** - * true to add track and initialize to muted - * - * @generated from field: bool muted = 6; - */ - muted: boolean; - - /** - * true if DTX (Discontinuous Transmission) is disabled for audio - * - * @generated from field: bool disable_dtx = 7; - */ - disableDtx: boolean; - - /** - * @generated from field: livekit.TrackSource source = 8; - */ - source: TrackSource; - - /** - * @generated from field: repeated livekit.VideoLayer layers = 9; - */ - layers: VideoLayer[]; - - /** - * @generated from field: repeated livekit.SimulcastCodec simulcast_codecs = 10; - */ - simulcastCodecs: SimulcastCodec[]; - - /** - * server ID of track, publish new codec to exist track - * - * @generated from field: string sid = 11; - */ - sid: string; - - /** - * @generated from field: bool stereo = 12; - */ - stereo: boolean; - - /** - * true if RED (Redundant Encoding) is disabled for audio - * - * @generated from field: bool disable_red = 13; - */ - disableRed: boolean; - - /** - * @generated from field: livekit.Encryption.Type encryption = 14; - */ - encryption: Encryption_Type; - - /** - * which stream the track belongs to, used to group tracks together. - * if not specified, server will infer it from track source to bundle camera/microphone, screenshare/audio together - * - * @generated from field: string stream = 15; - */ - stream: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.AddTrackRequest"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): AddTrackRequest; - - static fromJson(jsonValue: JsonValue, options?: Partial): AddTrackRequest; - - static fromJsonString(jsonString: string, options?: Partial): AddTrackRequest; - - static equals(a: AddTrackRequest | PlainMessage | undefined, b: AddTrackRequest | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.TrickleRequest - */ -export declare class TrickleRequest extends Message { - /** - * @generated from field: string candidateInit = 1; - */ - candidateInit: string; - - /** - * @generated from field: livekit.SignalTarget target = 2; - */ - target: SignalTarget; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.TrickleRequest"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): TrickleRequest; - - static fromJson(jsonValue: JsonValue, options?: Partial): TrickleRequest; - - static fromJsonString(jsonString: string, options?: Partial): TrickleRequest; - - static equals(a: TrickleRequest | PlainMessage | undefined, b: TrickleRequest | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.MuteTrackRequest - */ -export declare class MuteTrackRequest extends Message { - /** - * @generated from field: string sid = 1; - */ - sid: string; - - /** - * @generated from field: bool muted = 2; - */ - muted: boolean; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.MuteTrackRequest"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): MuteTrackRequest; - - static fromJson(jsonValue: JsonValue, options?: Partial): MuteTrackRequest; - - static fromJsonString(jsonString: string, options?: Partial): MuteTrackRequest; - - static equals(a: MuteTrackRequest | PlainMessage | undefined, b: MuteTrackRequest | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.JoinResponse - */ -export declare class JoinResponse extends Message { - /** - * @generated from field: livekit.Room room = 1; - */ - room?: Room; - - /** - * @generated from field: livekit.ParticipantInfo participant = 2; - */ - participant?: ParticipantInfo; - - /** - * @generated from field: repeated livekit.ParticipantInfo other_participants = 3; - */ - otherParticipants: ParticipantInfo[]; - - /** - * deprecated. use server_info.version instead. - * - * @generated from field: string server_version = 4; - */ - serverVersion: string; - - /** - * @generated from field: repeated livekit.ICEServer ice_servers = 5; - */ - iceServers: ICEServer[]; - - /** - * use subscriber as the primary PeerConnection - * - * @generated from field: bool subscriber_primary = 6; - */ - subscriberPrimary: boolean; - - /** - * when the current server isn't available, return alternate url to retry connection - * when this is set, the other fields will be largely empty - * - * @generated from field: string alternative_url = 7; - */ - alternativeUrl: string; - - /** - * @generated from field: livekit.ClientConfiguration client_configuration = 8; - */ - clientConfiguration?: ClientConfiguration; - - /** - * deprecated. use server_info.region instead. - * - * @generated from field: string server_region = 9; - */ - serverRegion: string; - - /** - * @generated from field: int32 ping_timeout = 10; - */ - pingTimeout: number; - - /** - * @generated from field: int32 ping_interval = 11; - */ - pingInterval: number; - - /** - * @generated from field: livekit.ServerInfo server_info = 12; - */ - serverInfo?: ServerInfo; - - /** - * Server-Injected-Frame byte trailer, used to identify unencrypted frames when e2ee is enabled - * - * @generated from field: bytes sif_trailer = 13; - */ - sifTrailer: Uint8Array; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.JoinResponse"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): JoinResponse; - - static fromJson(jsonValue: JsonValue, options?: Partial): JoinResponse; - - static fromJsonString(jsonString: string, options?: Partial): JoinResponse; - - static equals(a: JoinResponse | PlainMessage | undefined, b: JoinResponse | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.ReconnectResponse - */ -export declare class ReconnectResponse extends Message { - /** - * @generated from field: repeated livekit.ICEServer ice_servers = 1; - */ - iceServers: ICEServer[]; - - /** - * @generated from field: livekit.ClientConfiguration client_configuration = 2; - */ - clientConfiguration?: ClientConfiguration; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.ReconnectResponse"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ReconnectResponse; - - static fromJson(jsonValue: JsonValue, options?: Partial): ReconnectResponse; - - static fromJsonString(jsonString: string, options?: Partial): ReconnectResponse; - - static equals(a: ReconnectResponse | PlainMessage | undefined, b: ReconnectResponse | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.TrackPublishedResponse - */ -export declare class TrackPublishedResponse extends Message { - /** - * @generated from field: string cid = 1; - */ - cid: string; - - /** - * @generated from field: livekit.TrackInfo track = 2; - */ - track?: TrackInfo; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.TrackPublishedResponse"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): TrackPublishedResponse; - - static fromJson(jsonValue: JsonValue, options?: Partial): TrackPublishedResponse; - - static fromJsonString(jsonString: string, options?: Partial): TrackPublishedResponse; - - static equals(a: TrackPublishedResponse | PlainMessage | undefined, b: TrackPublishedResponse | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.TrackUnpublishedResponse - */ -export declare class TrackUnpublishedResponse extends Message { - /** - * @generated from field: string track_sid = 1; - */ - trackSid: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.TrackUnpublishedResponse"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): TrackUnpublishedResponse; - - static fromJson(jsonValue: JsonValue, options?: Partial): TrackUnpublishedResponse; - - static fromJsonString(jsonString: string, options?: Partial): TrackUnpublishedResponse; - - static equals(a: TrackUnpublishedResponse | PlainMessage | undefined, b: TrackUnpublishedResponse | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.SessionDescription - */ -export declare class SessionDescription extends Message { - /** - * "answer" | "offer" | "pranswer" | "rollback" - * - * @generated from field: string type = 1; - */ - type: string; - - /** - * @generated from field: string sdp = 2; - */ - sdp: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.SessionDescription"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): SessionDescription; - - static fromJson(jsonValue: JsonValue, options?: Partial): SessionDescription; - - static fromJsonString(jsonString: string, options?: Partial): SessionDescription; - - static equals(a: SessionDescription | PlainMessage | undefined, b: SessionDescription | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.ParticipantUpdate - */ -export declare class ParticipantUpdate extends Message { - /** - * @generated from field: repeated livekit.ParticipantInfo participants = 1; - */ - participants: ParticipantInfo[]; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.ParticipantUpdate"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ParticipantUpdate; - - static fromJson(jsonValue: JsonValue, options?: Partial): ParticipantUpdate; - - static fromJsonString(jsonString: string, options?: Partial): ParticipantUpdate; - - static equals(a: ParticipantUpdate | PlainMessage | undefined, b: ParticipantUpdate | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.UpdateSubscription - */ -export declare class UpdateSubscription extends Message { - /** - * @generated from field: repeated string track_sids = 1; - */ - trackSids: string[]; - - /** - * @generated from field: bool subscribe = 2; - */ - subscribe: boolean; - - /** - * @generated from field: repeated livekit.ParticipantTracks participant_tracks = 3; - */ - participantTracks: ParticipantTracks[]; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.UpdateSubscription"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): UpdateSubscription; - - static fromJson(jsonValue: JsonValue, options?: Partial): UpdateSubscription; - - static fromJsonString(jsonString: string, options?: Partial): UpdateSubscription; - - static equals(a: UpdateSubscription | PlainMessage | undefined, b: UpdateSubscription | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.UpdateTrackSettings - */ -export declare class UpdateTrackSettings extends Message { - /** - * @generated from field: repeated string track_sids = 1; - */ - trackSids: string[]; - - /** - * when true, the track is placed in a paused state, with no new data returned - * - * @generated from field: bool disabled = 3; - */ - disabled: boolean; - - /** - * deprecated in favor of width & height - * - * @generated from field: livekit.VideoQuality quality = 4; - */ - quality: VideoQuality; - - /** - * for video, width to receive - * - * @generated from field: uint32 width = 5; - */ - width: number; - - /** - * for video, height to receive - * - * @generated from field: uint32 height = 6; - */ - height: number; - - /** - * @generated from field: uint32 fps = 7; - */ - fps: number; - - /** - * subscription priority. 1 being the highest (0 is unset) - * when unset, server sill assign priority based on the order of subscription - * server will use priority in the following ways: - * 1. when subscribed tracks exceed per-participant subscription limit, server will - * pause the lowest priority tracks - * 2. when the network is congested, server will assign available bandwidth to - * higher priority tracks first. lowest priority tracks can be paused - * - * @generated from field: uint32 priority = 8; - */ - priority: number; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.UpdateTrackSettings"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): UpdateTrackSettings; - - static fromJson(jsonValue: JsonValue, options?: Partial): UpdateTrackSettings; - - static fromJsonString(jsonString: string, options?: Partial): UpdateTrackSettings; - - static equals(a: UpdateTrackSettings | PlainMessage | undefined, b: UpdateTrackSettings | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.LeaveRequest - */ -export declare class LeaveRequest extends Message { - /** - * sent when server initiates the disconnect due to server-restart - * indicates clients should attempt full-reconnect sequence - * NOTE: `can_reconnect` obsoleted by `action` starting in protocol version 13 - * - * @generated from field: bool can_reconnect = 1; - */ - canReconnect: boolean; - - /** - * @generated from field: livekit.DisconnectReason reason = 2; - */ - reason: DisconnectReason; - - /** - * @generated from field: livekit.LeaveRequest.Action action = 3; - */ - action: LeaveRequest_Action; - - /** - * @generated from field: livekit.RegionSettings regions = 4; - */ - regions?: RegionSettings; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.LeaveRequest"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): LeaveRequest; - - static fromJson(jsonValue: JsonValue, options?: Partial): LeaveRequest; - - static fromJsonString(jsonString: string, options?: Partial): LeaveRequest; - - static equals(a: LeaveRequest | PlainMessage | undefined, b: LeaveRequest | PlainMessage | undefined): boolean; -} - -/** - * indicates action clients should take on receiving this message - * - * @generated from enum livekit.LeaveRequest.Action - */ -export declare enum LeaveRequest_Action { - /** - * should disconnect - * - * @generated from enum value: DISCONNECT = 0; - */ - DISCONNECT = 0, - - /** - * should attempt a resume with `reconnect=1` in join URL - * - * @generated from enum value: RESUME = 1; - */ - RESUME = 1, - - /** - * should attempt a reconnect, i. e. no `reconnect=1` - * - * @generated from enum value: RECONNECT = 2; - */ - RECONNECT = 2, -} - -/** - * message to indicate published video track dimensions are changing - * - * @generated from message livekit.UpdateVideoLayers - */ -export declare class UpdateVideoLayers extends Message { - /** - * @generated from field: string track_sid = 1; - */ - trackSid: string; - - /** - * @generated from field: repeated livekit.VideoLayer layers = 2; - */ - layers: VideoLayer[]; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.UpdateVideoLayers"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): UpdateVideoLayers; - - static fromJson(jsonValue: JsonValue, options?: Partial): UpdateVideoLayers; - - static fromJsonString(jsonString: string, options?: Partial): UpdateVideoLayers; - - static equals(a: UpdateVideoLayers | PlainMessage | undefined, b: UpdateVideoLayers | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.UpdateParticipantMetadata - */ -export declare class UpdateParticipantMetadata extends Message { - /** - * @generated from field: string metadata = 1; - */ - metadata: string; - - /** - * @generated from field: string name = 2; - */ - name: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.UpdateParticipantMetadata"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): UpdateParticipantMetadata; - - static fromJson(jsonValue: JsonValue, options?: Partial): UpdateParticipantMetadata; - - static fromJsonString(jsonString: string, options?: Partial): UpdateParticipantMetadata; - - static equals(a: UpdateParticipantMetadata | PlainMessage | undefined, b: UpdateParticipantMetadata | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.ICEServer - */ -export declare class ICEServer extends Message { - /** - * @generated from field: repeated string urls = 1; - */ - urls: string[]; - - /** - * @generated from field: string username = 2; - */ - username: string; - - /** - * @generated from field: string credential = 3; - */ - credential: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.ICEServer"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ICEServer; - - static fromJson(jsonValue: JsonValue, options?: Partial): ICEServer; - - static fromJsonString(jsonString: string, options?: Partial): ICEServer; - - static equals(a: ICEServer | PlainMessage | undefined, b: ICEServer | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.SpeakersChanged - */ -export declare class SpeakersChanged extends Message { - /** - * @generated from field: repeated livekit.SpeakerInfo speakers = 1; - */ - speakers: SpeakerInfo[]; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.SpeakersChanged"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): SpeakersChanged; - - static fromJson(jsonValue: JsonValue, options?: Partial): SpeakersChanged; - - static fromJsonString(jsonString: string, options?: Partial): SpeakersChanged; - - static equals(a: SpeakersChanged | PlainMessage | undefined, b: SpeakersChanged | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.RoomUpdate - */ -export declare class RoomUpdate extends Message { - /** - * @generated from field: livekit.Room room = 1; - */ - room?: Room; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.RoomUpdate"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): RoomUpdate; - - static fromJson(jsonValue: JsonValue, options?: Partial): RoomUpdate; - - static fromJsonString(jsonString: string, options?: Partial): RoomUpdate; - - static equals(a: RoomUpdate | PlainMessage | undefined, b: RoomUpdate | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.ConnectionQualityInfo - */ -export declare class ConnectionQualityInfo extends Message { - /** - * @generated from field: string participant_sid = 1; - */ - participantSid: string; - - /** - * @generated from field: livekit.ConnectionQuality quality = 2; - */ - quality: ConnectionQuality; - - /** - * @generated from field: float score = 3; - */ - score: number; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.ConnectionQualityInfo"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ConnectionQualityInfo; - - static fromJson(jsonValue: JsonValue, options?: Partial): ConnectionQualityInfo; - - static fromJsonString(jsonString: string, options?: Partial): ConnectionQualityInfo; - - static equals(a: ConnectionQualityInfo | PlainMessage | undefined, b: ConnectionQualityInfo | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.ConnectionQualityUpdate - */ -export declare class ConnectionQualityUpdate extends Message { - /** - * @generated from field: repeated livekit.ConnectionQualityInfo updates = 1; - */ - updates: ConnectionQualityInfo[]; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.ConnectionQualityUpdate"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ConnectionQualityUpdate; - - static fromJson(jsonValue: JsonValue, options?: Partial): ConnectionQualityUpdate; - - static fromJsonString(jsonString: string, options?: Partial): ConnectionQualityUpdate; - - static equals(a: ConnectionQualityUpdate | PlainMessage | undefined, b: ConnectionQualityUpdate | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.StreamStateInfo - */ -export declare class StreamStateInfo extends Message { - /** - * @generated from field: string participant_sid = 1; - */ - participantSid: string; - - /** - * @generated from field: string track_sid = 2; - */ - trackSid: string; - - /** - * @generated from field: livekit.StreamState state = 3; - */ - state: StreamState; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.StreamStateInfo"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): StreamStateInfo; - - static fromJson(jsonValue: JsonValue, options?: Partial): StreamStateInfo; - - static fromJsonString(jsonString: string, options?: Partial): StreamStateInfo; - - static equals(a: StreamStateInfo | PlainMessage | undefined, b: StreamStateInfo | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.StreamStateUpdate - */ -export declare class StreamStateUpdate extends Message { - /** - * @generated from field: repeated livekit.StreamStateInfo stream_states = 1; - */ - streamStates: StreamStateInfo[]; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.StreamStateUpdate"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): StreamStateUpdate; - - static fromJson(jsonValue: JsonValue, options?: Partial): StreamStateUpdate; - - static fromJsonString(jsonString: string, options?: Partial): StreamStateUpdate; - - static equals(a: StreamStateUpdate | PlainMessage | undefined, b: StreamStateUpdate | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.SubscribedQuality - */ -export declare class SubscribedQuality extends Message { - /** - * @generated from field: livekit.VideoQuality quality = 1; - */ - quality: VideoQuality; - - /** - * @generated from field: bool enabled = 2; - */ - enabled: boolean; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.SubscribedQuality"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): SubscribedQuality; - - static fromJson(jsonValue: JsonValue, options?: Partial): SubscribedQuality; - - static fromJsonString(jsonString: string, options?: Partial): SubscribedQuality; - - static equals(a: SubscribedQuality | PlainMessage | undefined, b: SubscribedQuality | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.SubscribedCodec - */ -export declare class SubscribedCodec extends Message { - /** - * @generated from field: string codec = 1; - */ - codec: string; - - /** - * @generated from field: repeated livekit.SubscribedQuality qualities = 2; - */ - qualities: SubscribedQuality[]; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.SubscribedCodec"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): SubscribedCodec; - - static fromJson(jsonValue: JsonValue, options?: Partial): SubscribedCodec; - - static fromJsonString(jsonString: string, options?: Partial): SubscribedCodec; - - static equals(a: SubscribedCodec | PlainMessage | undefined, b: SubscribedCodec | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.SubscribedQualityUpdate - */ -export declare class SubscribedQualityUpdate extends Message { - /** - * @generated from field: string track_sid = 1; - */ - trackSid: string; - - /** - * @generated from field: repeated livekit.SubscribedQuality subscribed_qualities = 2; - */ - subscribedQualities: SubscribedQuality[]; - - /** - * @generated from field: repeated livekit.SubscribedCodec subscribed_codecs = 3; - */ - subscribedCodecs: SubscribedCodec[]; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.SubscribedQualityUpdate"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): SubscribedQualityUpdate; - - static fromJson(jsonValue: JsonValue, options?: Partial): SubscribedQualityUpdate; - - static fromJsonString(jsonString: string, options?: Partial): SubscribedQualityUpdate; - - static equals(a: SubscribedQualityUpdate | PlainMessage | undefined, b: SubscribedQualityUpdate | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.TrackPermission - */ -export declare class TrackPermission extends Message { - /** - * permission could be granted either by participant sid or identity - * - * @generated from field: string participant_sid = 1; - */ - participantSid: string; - - /** - * @generated from field: bool all_tracks = 2; - */ - allTracks: boolean; - - /** - * @generated from field: repeated string track_sids = 3; - */ - trackSids: string[]; - - /** - * @generated from field: string participant_identity = 4; - */ - participantIdentity: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.TrackPermission"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): TrackPermission; - - static fromJson(jsonValue: JsonValue, options?: Partial): TrackPermission; - - static fromJsonString(jsonString: string, options?: Partial): TrackPermission; - - static equals(a: TrackPermission | PlainMessage | undefined, b: TrackPermission | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.SubscriptionPermission - */ -export declare class SubscriptionPermission extends Message { - /** - * @generated from field: bool all_participants = 1; - */ - allParticipants: boolean; - - /** - * @generated from field: repeated livekit.TrackPermission track_permissions = 2; - */ - trackPermissions: TrackPermission[]; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.SubscriptionPermission"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): SubscriptionPermission; - - static fromJson(jsonValue: JsonValue, options?: Partial): SubscriptionPermission; - - static fromJsonString(jsonString: string, options?: Partial): SubscriptionPermission; - - static equals(a: SubscriptionPermission | PlainMessage | undefined, b: SubscriptionPermission | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.SubscriptionPermissionUpdate - */ -export declare class SubscriptionPermissionUpdate extends Message { - /** - * @generated from field: string participant_sid = 1; - */ - participantSid: string; - - /** - * @generated from field: string track_sid = 2; - */ - trackSid: string; - - /** - * @generated from field: bool allowed = 3; - */ - allowed: boolean; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.SubscriptionPermissionUpdate"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): SubscriptionPermissionUpdate; - - static fromJson(jsonValue: JsonValue, options?: Partial): SubscriptionPermissionUpdate; - - static fromJsonString(jsonString: string, options?: Partial): SubscriptionPermissionUpdate; - - static equals(a: SubscriptionPermissionUpdate | PlainMessage | undefined, b: SubscriptionPermissionUpdate | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.SyncState - */ -export declare class SyncState extends Message { - /** - * last subscribe answer before reconnecting - * - * @generated from field: livekit.SessionDescription answer = 1; - */ - answer?: SessionDescription; - - /** - * @generated from field: livekit.UpdateSubscription subscription = 2; - */ - subscription?: UpdateSubscription; - - /** - * @generated from field: repeated livekit.TrackPublishedResponse publish_tracks = 3; - */ - publishTracks: TrackPublishedResponse[]; - - /** - * @generated from field: repeated livekit.DataChannelInfo data_channels = 4; - */ - dataChannels: DataChannelInfo[]; - - /** - * last received server side offer before reconnecting - * - * @generated from field: livekit.SessionDescription offer = 5; - */ - offer?: SessionDescription; - - /** - * @generated from field: repeated string track_sids_disabled = 6; - */ - trackSidsDisabled: string[]; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.SyncState"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): SyncState; - - static fromJson(jsonValue: JsonValue, options?: Partial): SyncState; - - static fromJsonString(jsonString: string, options?: Partial): SyncState; - - static equals(a: SyncState | PlainMessage | undefined, b: SyncState | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.DataChannelInfo - */ -export declare class DataChannelInfo extends Message { - /** - * @generated from field: string label = 1; - */ - label: string; - - /** - * @generated from field: uint32 id = 2; - */ - id: number; - - /** - * @generated from field: livekit.SignalTarget target = 3; - */ - target: SignalTarget; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.DataChannelInfo"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): DataChannelInfo; - - static fromJson(jsonValue: JsonValue, options?: Partial): DataChannelInfo; - - static fromJsonString(jsonString: string, options?: Partial): DataChannelInfo; - - static equals(a: DataChannelInfo | PlainMessage | undefined, b: DataChannelInfo | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.SimulateScenario - */ -export declare class SimulateScenario extends Message { - /** - * @generated from oneof livekit.SimulateScenario.scenario - */ - scenario: { - /** - * simulate N seconds of speaker activity - * - * @generated from field: int32 speaker_update = 1; - */ - value: number; - case: "speakerUpdate"; - } | { - /** - * simulate local node failure - * - * @generated from field: bool node_failure = 2; - */ - value: boolean; - case: "nodeFailure"; - } | { - /** - * simulate migration - * - * @generated from field: bool migration = 3; - */ - value: boolean; - case: "migration"; - } | { - /** - * server to send leave - * - * @generated from field: bool server_leave = 4; - */ - value: boolean; - case: "serverLeave"; - } | { - /** - * switch candidate protocol to tcp - * - * @generated from field: livekit.CandidateProtocol switch_candidate_protocol = 5; - */ - value: CandidateProtocol; - case: "switchCandidateProtocol"; - } | { - /** - * maximum bandwidth for subscribers, in bps - * when zero, clears artificial bandwidth limit - * - * @generated from field: int64 subscriber_bandwidth = 6; - */ - value: bigint; - case: "subscriberBandwidth"; - } | { - /** - * disconnect signal on resume - * - * @generated from field: bool disconnect_signal_on_resume = 7; - */ - value: boolean; - case: "disconnectSignalOnResume"; - } | { - /** - * disconnect signal on resume before sending any messages from server - * - * @generated from field: bool disconnect_signal_on_resume_no_messages = 8; - */ - value: boolean; - case: "disconnectSignalOnResumeNoMessages"; - } | { case: undefined; value?: undefined }; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.SimulateScenario"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): SimulateScenario; - - static fromJson(jsonValue: JsonValue, options?: Partial): SimulateScenario; - - static fromJsonString(jsonString: string, options?: Partial): SimulateScenario; - - static equals(a: SimulateScenario | PlainMessage | undefined, b: SimulateScenario | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.Ping - */ -export declare class Ping extends Message { - /** - * @generated from field: int64 timestamp = 1; - */ - timestamp: bigint; - - /** - * rtt in milliseconds calculated by client - * - * @generated from field: int64 rtt = 2; - */ - rtt: bigint; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.Ping"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): Ping; - - static fromJson(jsonValue: JsonValue, options?: Partial): Ping; - - static fromJsonString(jsonString: string, options?: Partial): Ping; - - static equals(a: Ping | PlainMessage | undefined, b: Ping | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.Pong - */ -export declare class Pong extends Message { - /** - * timestamp field of last received ping request - * - * @generated from field: int64 last_ping_timestamp = 1; - */ - lastPingTimestamp: bigint; - - /** - * @generated from field: int64 timestamp = 2; - */ - timestamp: bigint; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.Pong"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): Pong; - - static fromJson(jsonValue: JsonValue, options?: Partial): Pong; - - static fromJsonString(jsonString: string, options?: Partial): Pong; - - static equals(a: Pong | PlainMessage | undefined, b: Pong | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.RegionSettings - */ -export declare class RegionSettings extends Message { - /** - * @generated from field: repeated livekit.RegionInfo regions = 1; - */ - regions: RegionInfo[]; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.RegionSettings"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): RegionSettings; - - static fromJson(jsonValue: JsonValue, options?: Partial): RegionSettings; - - static fromJsonString(jsonString: string, options?: Partial): RegionSettings; - - static equals(a: RegionSettings | PlainMessage | undefined, b: RegionSettings | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.RegionInfo - */ -export declare class RegionInfo extends Message { - /** - * @generated from field: string region = 1; - */ - region: string; - - /** - * @generated from field: string url = 2; - */ - url: string; - - /** - * @generated from field: int64 distance = 3; - */ - distance: bigint; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.RegionInfo"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): RegionInfo; - - static fromJson(jsonValue: JsonValue, options?: Partial): RegionInfo; - - static fromJsonString(jsonString: string, options?: Partial): RegionInfo; - - static equals(a: RegionInfo | PlainMessage | undefined, b: RegionInfo | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.SubscriptionResponse - */ -export declare class SubscriptionResponse extends Message { - /** - * @generated from field: string track_sid = 1; - */ - trackSid: string; - - /** - * @generated from field: livekit.SubscriptionError err = 2; - */ - err: SubscriptionError; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.SubscriptionResponse"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): SubscriptionResponse; - - static fromJson(jsonValue: JsonValue, options?: Partial): SubscriptionResponse; - - static fromJsonString(jsonString: string, options?: Partial): SubscriptionResponse; - - static equals(a: SubscriptionResponse | PlainMessage | undefined, b: SubscriptionResponse | PlainMessage | undefined): boolean; -} - diff --git a/packages/javascript/src/gen/livekit_rtc_pb.js b/packages/javascript/src/gen/livekit_rtc_pb.js deleted file mode 100644 index 450eb82e..00000000 --- a/packages/javascript/src/gen/livekit_rtc_pb.js +++ /dev/null @@ -1,565 +0,0 @@ -// Copyright 2023 LiveKit, Inc. -// -// 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. - -// @generated by protoc-gen-es v1.7.2 with parameter "target=js+dts" -// @generated from file livekit_rtc.proto (package livekit, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { proto3 } from "@bufbuild/protobuf"; -import { ClientConfiguration, ConnectionQuality, DisconnectReason, Encryption_Type, ParticipantInfo, ParticipantTracks, Room, ServerInfo, SpeakerInfo, SubscriptionError, TrackInfo, TrackSource, TrackType, VideoLayer, VideoQuality } from "./livekit_models_pb.js"; - -/** - * @generated from enum livekit.SignalTarget - */ -export const SignalTarget = proto3.makeEnum( - "livekit.SignalTarget", - [ - {no: 0, name: "PUBLISHER"}, - {no: 1, name: "SUBSCRIBER"}, - ], -); - -/** - * @generated from enum livekit.StreamState - */ -export const StreamState = proto3.makeEnum( - "livekit.StreamState", - [ - {no: 0, name: "ACTIVE"}, - {no: 1, name: "PAUSED"}, - ], -); - -/** - * @generated from enum livekit.CandidateProtocol - */ -export const CandidateProtocol = proto3.makeEnum( - "livekit.CandidateProtocol", - [ - {no: 0, name: "UDP"}, - {no: 1, name: "TCP"}, - {no: 2, name: "TLS"}, - ], -); - -/** - * @generated from message livekit.SignalRequest - */ -export const SignalRequest = proto3.makeMessageType( - "livekit.SignalRequest", - () => [ - { no: 1, name: "offer", kind: "message", T: SessionDescription, oneof: "message" }, - { no: 2, name: "answer", kind: "message", T: SessionDescription, oneof: "message" }, - { no: 3, name: "trickle", kind: "message", T: TrickleRequest, oneof: "message" }, - { no: 4, name: "add_track", kind: "message", T: AddTrackRequest, oneof: "message" }, - { no: 5, name: "mute", kind: "message", T: MuteTrackRequest, oneof: "message" }, - { no: 6, name: "subscription", kind: "message", T: UpdateSubscription, oneof: "message" }, - { no: 7, name: "track_setting", kind: "message", T: UpdateTrackSettings, oneof: "message" }, - { no: 8, name: "leave", kind: "message", T: LeaveRequest, oneof: "message" }, - { no: 10, name: "update_layers", kind: "message", T: UpdateVideoLayers, oneof: "message" }, - { no: 11, name: "subscription_permission", kind: "message", T: SubscriptionPermission, oneof: "message" }, - { no: 12, name: "sync_state", kind: "message", T: SyncState, oneof: "message" }, - { no: 13, name: "simulate", kind: "message", T: SimulateScenario, oneof: "message" }, - { no: 14, name: "ping", kind: "scalar", T: 3 /* ScalarType.INT64 */, oneof: "message" }, - { no: 15, name: "update_metadata", kind: "message", T: UpdateParticipantMetadata, oneof: "message" }, - { no: 16, name: "ping_req", kind: "message", T: Ping, oneof: "message" }, - ], -); - -/** - * @generated from message livekit.SignalResponse - */ -export const SignalResponse = proto3.makeMessageType( - "livekit.SignalResponse", - () => [ - { no: 1, name: "join", kind: "message", T: JoinResponse, oneof: "message" }, - { no: 2, name: "answer", kind: "message", T: SessionDescription, oneof: "message" }, - { no: 3, name: "offer", kind: "message", T: SessionDescription, oneof: "message" }, - { no: 4, name: "trickle", kind: "message", T: TrickleRequest, oneof: "message" }, - { no: 5, name: "update", kind: "message", T: ParticipantUpdate, oneof: "message" }, - { no: 6, name: "track_published", kind: "message", T: TrackPublishedResponse, oneof: "message" }, - { no: 8, name: "leave", kind: "message", T: LeaveRequest, oneof: "message" }, - { no: 9, name: "mute", kind: "message", T: MuteTrackRequest, oneof: "message" }, - { no: 10, name: "speakers_changed", kind: "message", T: SpeakersChanged, oneof: "message" }, - { no: 11, name: "room_update", kind: "message", T: RoomUpdate, oneof: "message" }, - { no: 12, name: "connection_quality", kind: "message", T: ConnectionQualityUpdate, oneof: "message" }, - { no: 13, name: "stream_state_update", kind: "message", T: StreamStateUpdate, oneof: "message" }, - { no: 14, name: "subscribed_quality_update", kind: "message", T: SubscribedQualityUpdate, oneof: "message" }, - { no: 15, name: "subscription_permission_update", kind: "message", T: SubscriptionPermissionUpdate, oneof: "message" }, - { no: 16, name: "refresh_token", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "message" }, - { no: 17, name: "track_unpublished", kind: "message", T: TrackUnpublishedResponse, oneof: "message" }, - { no: 18, name: "pong", kind: "scalar", T: 3 /* ScalarType.INT64 */, oneof: "message" }, - { no: 19, name: "reconnect", kind: "message", T: ReconnectResponse, oneof: "message" }, - { no: 20, name: "pong_resp", kind: "message", T: Pong, oneof: "message" }, - { no: 21, name: "subscription_response", kind: "message", T: SubscriptionResponse, oneof: "message" }, - ], -); - -/** - * @generated from message livekit.SimulcastCodec - */ -export const SimulcastCodec = proto3.makeMessageType( - "livekit.SimulcastCodec", - () => [ - { no: 1, name: "codec", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "cid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message livekit.AddTrackRequest - */ -export const AddTrackRequest = proto3.makeMessageType( - "livekit.AddTrackRequest", - () => [ - { no: 1, name: "cid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "type", kind: "enum", T: proto3.getEnumType(TrackType) }, - { no: 4, name: "width", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 5, name: "height", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 6, name: "muted", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 7, name: "disable_dtx", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 8, name: "source", kind: "enum", T: proto3.getEnumType(TrackSource) }, - { no: 9, name: "layers", kind: "message", T: VideoLayer, repeated: true }, - { no: 10, name: "simulcast_codecs", kind: "message", T: SimulcastCodec, repeated: true }, - { no: 11, name: "sid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 12, name: "stereo", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 13, name: "disable_red", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 14, name: "encryption", kind: "enum", T: proto3.getEnumType(Encryption_Type) }, - { no: 15, name: "stream", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message livekit.TrickleRequest - */ -export const TrickleRequest = proto3.makeMessageType( - "livekit.TrickleRequest", - () => [ - { no: 1, name: "candidateInit", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "target", kind: "enum", T: proto3.getEnumType(SignalTarget) }, - ], -); - -/** - * @generated from message livekit.MuteTrackRequest - */ -export const MuteTrackRequest = proto3.makeMessageType( - "livekit.MuteTrackRequest", - () => [ - { no: 1, name: "sid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "muted", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ], -); - -/** - * @generated from message livekit.JoinResponse - */ -export const JoinResponse = proto3.makeMessageType( - "livekit.JoinResponse", - () => [ - { no: 1, name: "room", kind: "message", T: Room }, - { no: 2, name: "participant", kind: "message", T: ParticipantInfo }, - { no: 3, name: "other_participants", kind: "message", T: ParticipantInfo, repeated: true }, - { no: 4, name: "server_version", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "ice_servers", kind: "message", T: ICEServer, repeated: true }, - { no: 6, name: "subscriber_primary", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 7, name: "alternative_url", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 8, name: "client_configuration", kind: "message", T: ClientConfiguration }, - { no: 9, name: "server_region", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 10, name: "ping_timeout", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 11, name: "ping_interval", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 12, name: "server_info", kind: "message", T: ServerInfo }, - { no: 13, name: "sif_trailer", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ], -); - -/** - * @generated from message livekit.ReconnectResponse - */ -export const ReconnectResponse = proto3.makeMessageType( - "livekit.ReconnectResponse", - () => [ - { no: 1, name: "ice_servers", kind: "message", T: ICEServer, repeated: true }, - { no: 2, name: "client_configuration", kind: "message", T: ClientConfiguration }, - ], -); - -/** - * @generated from message livekit.TrackPublishedResponse - */ -export const TrackPublishedResponse = proto3.makeMessageType( - "livekit.TrackPublishedResponse", - () => [ - { no: 1, name: "cid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "track", kind: "message", T: TrackInfo }, - ], -); - -/** - * @generated from message livekit.TrackUnpublishedResponse - */ -export const TrackUnpublishedResponse = proto3.makeMessageType( - "livekit.TrackUnpublishedResponse", - () => [ - { no: 1, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message livekit.SessionDescription - */ -export const SessionDescription = proto3.makeMessageType( - "livekit.SessionDescription", - () => [ - { no: 1, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "sdp", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message livekit.ParticipantUpdate - */ -export const ParticipantUpdate = proto3.makeMessageType( - "livekit.ParticipantUpdate", - () => [ - { no: 1, name: "participants", kind: "message", T: ParticipantInfo, repeated: true }, - ], -); - -/** - * @generated from message livekit.UpdateSubscription - */ -export const UpdateSubscription = proto3.makeMessageType( - "livekit.UpdateSubscription", - () => [ - { no: 1, name: "track_sids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 2, name: "subscribe", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 3, name: "participant_tracks", kind: "message", T: ParticipantTracks, repeated: true }, - ], -); - -/** - * @generated from message livekit.UpdateTrackSettings - */ -export const UpdateTrackSettings = proto3.makeMessageType( - "livekit.UpdateTrackSettings", - () => [ - { no: 1, name: "track_sids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 3, name: "disabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 4, name: "quality", kind: "enum", T: proto3.getEnumType(VideoQuality) }, - { no: 5, name: "width", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 6, name: "height", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 7, name: "fps", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 8, name: "priority", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - ], -); - -/** - * @generated from message livekit.LeaveRequest - */ -export const LeaveRequest = proto3.makeMessageType( - "livekit.LeaveRequest", - () => [ - { no: 1, name: "can_reconnect", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 2, name: "reason", kind: "enum", T: proto3.getEnumType(DisconnectReason) }, - { no: 3, name: "action", kind: "enum", T: proto3.getEnumType(LeaveRequest_Action) }, - { no: 4, name: "regions", kind: "message", T: RegionSettings }, - ], -); - -/** - * indicates action clients should take on receiving this message - * - * @generated from enum livekit.LeaveRequest.Action - */ -export const LeaveRequest_Action = proto3.makeEnum( - "livekit.LeaveRequest.Action", - [ - {no: 0, name: "DISCONNECT"}, - {no: 1, name: "RESUME"}, - {no: 2, name: "RECONNECT"}, - ], -); - -/** - * message to indicate published video track dimensions are changing - * - * @generated from message livekit.UpdateVideoLayers - */ -export const UpdateVideoLayers = proto3.makeMessageType( - "livekit.UpdateVideoLayers", - () => [ - { no: 1, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "layers", kind: "message", T: VideoLayer, repeated: true }, - ], -); - -/** - * @generated from message livekit.UpdateParticipantMetadata - */ -export const UpdateParticipantMetadata = proto3.makeMessageType( - "livekit.UpdateParticipantMetadata", - () => [ - { no: 1, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message livekit.ICEServer - */ -export const ICEServer = proto3.makeMessageType( - "livekit.ICEServer", - () => [ - { no: 1, name: "urls", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 2, name: "username", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "credential", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message livekit.SpeakersChanged - */ -export const SpeakersChanged = proto3.makeMessageType( - "livekit.SpeakersChanged", - () => [ - { no: 1, name: "speakers", kind: "message", T: SpeakerInfo, repeated: true }, - ], -); - -/** - * @generated from message livekit.RoomUpdate - */ -export const RoomUpdate = proto3.makeMessageType( - "livekit.RoomUpdate", - () => [ - { no: 1, name: "room", kind: "message", T: Room }, - ], -); - -/** - * @generated from message livekit.ConnectionQualityInfo - */ -export const ConnectionQualityInfo = proto3.makeMessageType( - "livekit.ConnectionQualityInfo", - () => [ - { no: 1, name: "participant_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "quality", kind: "enum", T: proto3.getEnumType(ConnectionQuality) }, - { no: 3, name: "score", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, - ], -); - -/** - * @generated from message livekit.ConnectionQualityUpdate - */ -export const ConnectionQualityUpdate = proto3.makeMessageType( - "livekit.ConnectionQualityUpdate", - () => [ - { no: 1, name: "updates", kind: "message", T: ConnectionQualityInfo, repeated: true }, - ], -); - -/** - * @generated from message livekit.StreamStateInfo - */ -export const StreamStateInfo = proto3.makeMessageType( - "livekit.StreamStateInfo", - () => [ - { no: 1, name: "participant_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "state", kind: "enum", T: proto3.getEnumType(StreamState) }, - ], -); - -/** - * @generated from message livekit.StreamStateUpdate - */ -export const StreamStateUpdate = proto3.makeMessageType( - "livekit.StreamStateUpdate", - () => [ - { no: 1, name: "stream_states", kind: "message", T: StreamStateInfo, repeated: true }, - ], -); - -/** - * @generated from message livekit.SubscribedQuality - */ -export const SubscribedQuality = proto3.makeMessageType( - "livekit.SubscribedQuality", - () => [ - { no: 1, name: "quality", kind: "enum", T: proto3.getEnumType(VideoQuality) }, - { no: 2, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ], -); - -/** - * @generated from message livekit.SubscribedCodec - */ -export const SubscribedCodec = proto3.makeMessageType( - "livekit.SubscribedCodec", - () => [ - { no: 1, name: "codec", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "qualities", kind: "message", T: SubscribedQuality, repeated: true }, - ], -); - -/** - * @generated from message livekit.SubscribedQualityUpdate - */ -export const SubscribedQualityUpdate = proto3.makeMessageType( - "livekit.SubscribedQualityUpdate", - () => [ - { no: 1, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "subscribed_qualities", kind: "message", T: SubscribedQuality, repeated: true }, - { no: 3, name: "subscribed_codecs", kind: "message", T: SubscribedCodec, repeated: true }, - ], -); - -/** - * @generated from message livekit.TrackPermission - */ -export const TrackPermission = proto3.makeMessageType( - "livekit.TrackPermission", - () => [ - { no: 1, name: "participant_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "all_tracks", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 3, name: "track_sids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 4, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message livekit.SubscriptionPermission - */ -export const SubscriptionPermission = proto3.makeMessageType( - "livekit.SubscriptionPermission", - () => [ - { no: 1, name: "all_participants", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 2, name: "track_permissions", kind: "message", T: TrackPermission, repeated: true }, - ], -); - -/** - * @generated from message livekit.SubscriptionPermissionUpdate - */ -export const SubscriptionPermissionUpdate = proto3.makeMessageType( - "livekit.SubscriptionPermissionUpdate", - () => [ - { no: 1, name: "participant_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "allowed", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ], -); - -/** - * @generated from message livekit.SyncState - */ -export const SyncState = proto3.makeMessageType( - "livekit.SyncState", - () => [ - { no: 1, name: "answer", kind: "message", T: SessionDescription }, - { no: 2, name: "subscription", kind: "message", T: UpdateSubscription }, - { no: 3, name: "publish_tracks", kind: "message", T: TrackPublishedResponse, repeated: true }, - { no: 4, name: "data_channels", kind: "message", T: DataChannelInfo, repeated: true }, - { no: 5, name: "offer", kind: "message", T: SessionDescription }, - { no: 6, name: "track_sids_disabled", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ], -); - -/** - * @generated from message livekit.DataChannelInfo - */ -export const DataChannelInfo = proto3.makeMessageType( - "livekit.DataChannelInfo", - () => [ - { no: 1, name: "label", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 3, name: "target", kind: "enum", T: proto3.getEnumType(SignalTarget) }, - ], -); - -/** - * @generated from message livekit.SimulateScenario - */ -export const SimulateScenario = proto3.makeMessageType( - "livekit.SimulateScenario", - () => [ - { no: 1, name: "speaker_update", kind: "scalar", T: 5 /* ScalarType.INT32 */, oneof: "scenario" }, - { no: 2, name: "node_failure", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "scenario" }, - { no: 3, name: "migration", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "scenario" }, - { no: 4, name: "server_leave", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "scenario" }, - { no: 5, name: "switch_candidate_protocol", kind: "enum", T: proto3.getEnumType(CandidateProtocol), oneof: "scenario" }, - { no: 6, name: "subscriber_bandwidth", kind: "scalar", T: 3 /* ScalarType.INT64 */, oneof: "scenario" }, - { no: 7, name: "disconnect_signal_on_resume", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "scenario" }, - { no: 8, name: "disconnect_signal_on_resume_no_messages", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "scenario" }, - ], -); - -/** - * @generated from message livekit.Ping - */ -export const Ping = proto3.makeMessageType( - "livekit.Ping", - () => [ - { no: 1, name: "timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 2, name: "rtt", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - ], -); - -/** - * @generated from message livekit.Pong - */ -export const Pong = proto3.makeMessageType( - "livekit.Pong", - () => [ - { no: 1, name: "last_ping_timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 2, name: "timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - ], -); - -/** - * @generated from message livekit.RegionSettings - */ -export const RegionSettings = proto3.makeMessageType( - "livekit.RegionSettings", - () => [ - { no: 1, name: "regions", kind: "message", T: RegionInfo, repeated: true }, - ], -); - -/** - * @generated from message livekit.RegionInfo - */ -export const RegionInfo = proto3.makeMessageType( - "livekit.RegionInfo", - () => [ - { no: 1, name: "region", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "distance", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - ], -); - -/** - * @generated from message livekit.SubscriptionResponse - */ -export const SubscriptionResponse = proto3.makeMessageType( - "livekit.SubscriptionResponse", - () => [ - { no: 1, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "err", kind: "enum", T: proto3.getEnumType(SubscriptionError) }, - ], -); - diff --git a/packages/javascript/src/gen/livekit_sip_pb.d.ts b/packages/javascript/src/gen/livekit_sip_pb.d.ts deleted file mode 100644 index d4297c6b..00000000 --- a/packages/javascript/src/gen/livekit_sip_pb.d.ts +++ /dev/null @@ -1,590 +0,0 @@ -// Copyright 2023 LiveKit, Inc. -// -// 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. - -// @generated by protoc-gen-es v1.7.2 with parameter "target=js+dts" -// @generated from file livekit_sip.proto (package livekit, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * @generated from message livekit.CreateSIPTrunkRequest - */ -export declare class CreateSIPTrunkRequest extends Message { - /** - * CIDR or IPs that traffic is accepted from - * An empty list means all inbound traffic is accepted. - * - * @generated from field: repeated string inbound_addresses = 1; - */ - inboundAddresses: string[]; - - /** - * IP that SIP INVITE is sent too - * - * @generated from field: string outbound_address = 2; - */ - outboundAddress: string; - - /** - * Number used to make outbound calls - * - * @generated from field: string outbound_number = 3; - */ - outboundNumber: string; - - /** - * @generated from field: repeated string inbound_numbers_regex = 4 [deprecated = true]; - * @deprecated - */ - inboundNumbersRegex: string[]; - - /** - * Accepted `To` values. This Trunk will only accept a call made to - * these numbers. This allows you to have distinct Trunks for different phone - * numbers at the same provider. - * - * @generated from field: repeated string inbound_numbers = 9; - */ - inboundNumbers: string[]; - - /** - * Username and password used to authenticate inbound and outbound SIP invites - * May be empty to have no Authentication - * - * @generated from field: string inbound_username = 5; - */ - inboundUsername: string; - - /** - * @generated from field: string inbound_password = 6; - */ - inboundPassword: string; - - /** - * @generated from field: string outbound_username = 7; - */ - outboundUsername: string; - - /** - * @generated from field: string outbound_password = 8; - */ - outboundPassword: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.CreateSIPTrunkRequest"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): CreateSIPTrunkRequest; - - static fromJson(jsonValue: JsonValue, options?: Partial): CreateSIPTrunkRequest; - - static fromJsonString(jsonString: string, options?: Partial): CreateSIPTrunkRequest; - - static equals(a: CreateSIPTrunkRequest | PlainMessage | undefined, b: CreateSIPTrunkRequest | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.SIPTrunkInfo - */ -export declare class SIPTrunkInfo extends Message { - /** - * @generated from field: string sip_trunk_id = 1; - */ - sipTrunkId: string; - - /** - * CIDR or IPs that traffic is accepted from - * An empty list means all inbound traffic is accepted. - * - * @generated from field: repeated string inbound_addresses = 2; - */ - inboundAddresses: string[]; - - /** - * IP that SIP INVITE is sent too - * - * @generated from field: string outbound_address = 3; - */ - outboundAddress: string; - - /** - * Number used to make outbound calls - * - * @generated from field: string outbound_number = 4; - */ - outboundNumber: string; - - /** - * @generated from field: repeated string inbound_numbers_regex = 5 [deprecated = true]; - * @deprecated - */ - inboundNumbersRegex: string[]; - - /** - * Accepted `To` values. This Trunk will only accept a call made to - * these numbers. This allows you to have distinct Trunks for different phone - * numbers at the same provider. - * - * @generated from field: repeated string inbound_numbers = 10; - */ - inboundNumbers: string[]; - - /** - * Username and password used to authenticate inbound and outbound SIP invites - * May be empty to have no Authentication - * - * @generated from field: string inbound_username = 6; - */ - inboundUsername: string; - - /** - * @generated from field: string inbound_password = 7; - */ - inboundPassword: string; - - /** - * @generated from field: string outbound_username = 8; - */ - outboundUsername: string; - - /** - * @generated from field: string outbound_password = 9; - */ - outboundPassword: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.SIPTrunkInfo"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): SIPTrunkInfo; - - static fromJson(jsonValue: JsonValue, options?: Partial): SIPTrunkInfo; - - static fromJsonString(jsonString: string, options?: Partial): SIPTrunkInfo; - - static equals(a: SIPTrunkInfo | PlainMessage | undefined, b: SIPTrunkInfo | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.ListSIPTrunkRequest - */ -export declare class ListSIPTrunkRequest extends Message { - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.ListSIPTrunkRequest"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ListSIPTrunkRequest; - - static fromJson(jsonValue: JsonValue, options?: Partial): ListSIPTrunkRequest; - - static fromJsonString(jsonString: string, options?: Partial): ListSIPTrunkRequest; - - static equals(a: ListSIPTrunkRequest | PlainMessage | undefined, b: ListSIPTrunkRequest | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.ListSIPTrunkResponse - */ -export declare class ListSIPTrunkResponse extends Message { - /** - * @generated from field: repeated livekit.SIPTrunkInfo items = 1; - */ - items: SIPTrunkInfo[]; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.ListSIPTrunkResponse"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ListSIPTrunkResponse; - - static fromJson(jsonValue: JsonValue, options?: Partial): ListSIPTrunkResponse; - - static fromJsonString(jsonString: string, options?: Partial): ListSIPTrunkResponse; - - static equals(a: ListSIPTrunkResponse | PlainMessage | undefined, b: ListSIPTrunkResponse | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.DeleteSIPTrunkRequest - */ -export declare class DeleteSIPTrunkRequest extends Message { - /** - * @generated from field: string sip_trunk_id = 1; - */ - sipTrunkId: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.DeleteSIPTrunkRequest"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): DeleteSIPTrunkRequest; - - static fromJson(jsonValue: JsonValue, options?: Partial): DeleteSIPTrunkRequest; - - static fromJsonString(jsonString: string, options?: Partial): DeleteSIPTrunkRequest; - - static equals(a: DeleteSIPTrunkRequest | PlainMessage | undefined, b: DeleteSIPTrunkRequest | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.SIPDispatchRuleDirect - */ -export declare class SIPDispatchRuleDirect extends Message { - /** - * What room should call be directed into - * - * @generated from field: string room_name = 1; - */ - roomName: string; - - /** - * Optional pin required to enter room - * - * @generated from field: string pin = 2; - */ - pin: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.SIPDispatchRuleDirect"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): SIPDispatchRuleDirect; - - static fromJson(jsonValue: JsonValue, options?: Partial): SIPDispatchRuleDirect; - - static fromJsonString(jsonString: string, options?: Partial): SIPDispatchRuleDirect; - - static equals(a: SIPDispatchRuleDirect | PlainMessage | undefined, b: SIPDispatchRuleDirect | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.SIPDispatchRuleIndividual - */ -export declare class SIPDispatchRuleIndividual extends Message { - /** - * Prefix used on new room name - * - * @generated from field: string room_prefix = 1; - */ - roomPrefix: string; - - /** - * Optional pin required to enter room - * - * @generated from field: string pin = 2; - */ - pin: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.SIPDispatchRuleIndividual"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): SIPDispatchRuleIndividual; - - static fromJson(jsonValue: JsonValue, options?: Partial): SIPDispatchRuleIndividual; - - static fromJsonString(jsonString: string, options?: Partial): SIPDispatchRuleIndividual; - - static equals(a: SIPDispatchRuleIndividual | PlainMessage | undefined, b: SIPDispatchRuleIndividual | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.SIPDispatchRule - */ -export declare class SIPDispatchRule extends Message { - /** - * @generated from oneof livekit.SIPDispatchRule.rule - */ - rule: { - /** - * SIPDispatchRuleDirect is a `SIP Dispatch Rule` that puts a user directly into a room - * This places users into an existing room. Optionally you can require a pin before a user can - * enter the room - * - * @generated from field: livekit.SIPDispatchRuleDirect dispatch_rule_direct = 1; - */ - value: SIPDispatchRuleDirect; - case: "dispatchRuleDirect"; - } | { - /** - * SIPDispatchRuleIndividual is a `SIP Dispatch Rule` that creates a new room for each caller. - * - * @generated from field: livekit.SIPDispatchRuleIndividual dispatch_rule_individual = 2; - */ - value: SIPDispatchRuleIndividual; - case: "dispatchRuleIndividual"; - } | { case: undefined; value?: undefined }; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.SIPDispatchRule"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): SIPDispatchRule; - - static fromJson(jsonValue: JsonValue, options?: Partial): SIPDispatchRule; - - static fromJsonString(jsonString: string, options?: Partial): SIPDispatchRule; - - static equals(a: SIPDispatchRule | PlainMessage | undefined, b: SIPDispatchRule | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.CreateSIPDispatchRuleRequest - */ -export declare class CreateSIPDispatchRuleRequest extends Message { - /** - * @generated from field: livekit.SIPDispatchRule rule = 1; - */ - rule?: SIPDispatchRule; - - /** - * What trunks are accepted for this dispatch rule - * If empty all trunks will match this dispatch rule - * - * @generated from field: repeated string trunk_ids = 2; - */ - trunkIds: string[]; - - /** - * By default the From value (Phone number) is used as the participant identity - * If true a random value will be used instead - * - * @generated from field: bool hide_phone_number = 3; - */ - hidePhoneNumber: boolean; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.CreateSIPDispatchRuleRequest"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): CreateSIPDispatchRuleRequest; - - static fromJson(jsonValue: JsonValue, options?: Partial): CreateSIPDispatchRuleRequest; - - static fromJsonString(jsonString: string, options?: Partial): CreateSIPDispatchRuleRequest; - - static equals(a: CreateSIPDispatchRuleRequest | PlainMessage | undefined, b: CreateSIPDispatchRuleRequest | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.SIPDispatchRuleInfo - */ -export declare class SIPDispatchRuleInfo extends Message { - /** - * @generated from field: string sip_dispatch_rule_id = 1; - */ - sipDispatchRuleId: string; - - /** - * @generated from field: livekit.SIPDispatchRule rule = 2; - */ - rule?: SIPDispatchRule; - - /** - * @generated from field: repeated string trunk_ids = 3; - */ - trunkIds: string[]; - - /** - * @generated from field: bool hide_phone_number = 4; - */ - hidePhoneNumber: boolean; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.SIPDispatchRuleInfo"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): SIPDispatchRuleInfo; - - static fromJson(jsonValue: JsonValue, options?: Partial): SIPDispatchRuleInfo; - - static fromJsonString(jsonString: string, options?: Partial): SIPDispatchRuleInfo; - - static equals(a: SIPDispatchRuleInfo | PlainMessage | undefined, b: SIPDispatchRuleInfo | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.ListSIPDispatchRuleRequest - */ -export declare class ListSIPDispatchRuleRequest extends Message { - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.ListSIPDispatchRuleRequest"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ListSIPDispatchRuleRequest; - - static fromJson(jsonValue: JsonValue, options?: Partial): ListSIPDispatchRuleRequest; - - static fromJsonString(jsonString: string, options?: Partial): ListSIPDispatchRuleRequest; - - static equals(a: ListSIPDispatchRuleRequest | PlainMessage | undefined, b: ListSIPDispatchRuleRequest | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.ListSIPDispatchRuleResponse - */ -export declare class ListSIPDispatchRuleResponse extends Message { - /** - * @generated from field: repeated livekit.SIPDispatchRuleInfo items = 1; - */ - items: SIPDispatchRuleInfo[]; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.ListSIPDispatchRuleResponse"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ListSIPDispatchRuleResponse; - - static fromJson(jsonValue: JsonValue, options?: Partial): ListSIPDispatchRuleResponse; - - static fromJsonString(jsonString: string, options?: Partial): ListSIPDispatchRuleResponse; - - static equals(a: ListSIPDispatchRuleResponse | PlainMessage | undefined, b: ListSIPDispatchRuleResponse | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.DeleteSIPDispatchRuleRequest - */ -export declare class DeleteSIPDispatchRuleRequest extends Message { - /** - * @generated from field: string sip_dispatch_rule_id = 1; - */ - sipDispatchRuleId: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.DeleteSIPDispatchRuleRequest"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): DeleteSIPDispatchRuleRequest; - - static fromJson(jsonValue: JsonValue, options?: Partial): DeleteSIPDispatchRuleRequest; - - static fromJsonString(jsonString: string, options?: Partial): DeleteSIPDispatchRuleRequest; - - static equals(a: DeleteSIPDispatchRuleRequest | PlainMessage | undefined, b: DeleteSIPDispatchRuleRequest | PlainMessage | undefined): boolean; -} - -/** - * A SIP Participant is a singular SIP session connected to a LiveKit room via - * a SIP Trunk into a SIP DispatchRule - * - * @generated from message livekit.CreateSIPParticipantRequest - */ -export declare class CreateSIPParticipantRequest extends Message { - /** - * What SIP Trunk should be used to dial the user - * - * @generated from field: string sip_trunk_id = 1; - */ - sipTrunkId: string; - - /** - * What number should be dialed via SIP - * - * @generated from field: string sip_call_to = 2; - */ - sipCallTo: string; - - /** - * What LiveKit room should this participant be connected too - * - * @generated from field: string room_name = 3; - */ - roomName: string; - - /** - * Optional identity of the participant in LiveKit room - * - * @generated from field: string participant_identity = 4; - */ - participantIdentity: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.CreateSIPParticipantRequest"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): CreateSIPParticipantRequest; - - static fromJson(jsonValue: JsonValue, options?: Partial): CreateSIPParticipantRequest; - - static fromJsonString(jsonString: string, options?: Partial): CreateSIPParticipantRequest; - - static equals(a: CreateSIPParticipantRequest | PlainMessage | undefined, b: CreateSIPParticipantRequest | PlainMessage | undefined): boolean; -} - -/** - * @generated from message livekit.SIPParticipantInfo - */ -export declare class SIPParticipantInfo extends Message { - /** - * @generated from field: string participant_id = 1; - */ - participantId: string; - - /** - * @generated from field: string participant_identity = 2; - */ - participantIdentity: string; - - /** - * @generated from field: string room_name = 3; - */ - roomName: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.SIPParticipantInfo"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): SIPParticipantInfo; - - static fromJson(jsonValue: JsonValue, options?: Partial): SIPParticipantInfo; - - static fromJsonString(jsonString: string, options?: Partial): SIPParticipantInfo; - - static equals(a: SIPParticipantInfo | PlainMessage | undefined, b: SIPParticipantInfo | PlainMessage | undefined): boolean; -} - diff --git a/packages/javascript/src/gen/livekit_sip_pb.js b/packages/javascript/src/gen/livekit_sip_pb.js deleted file mode 100644 index 67256e86..00000000 --- a/packages/javascript/src/gen/livekit_sip_pb.js +++ /dev/null @@ -1,200 +0,0 @@ -// Copyright 2023 LiveKit, Inc. -// -// 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. - -// @generated by protoc-gen-es v1.7.2 with parameter "target=js+dts" -// @generated from file livekit_sip.proto (package livekit, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { proto3 } from "@bufbuild/protobuf"; - -/** - * @generated from message livekit.CreateSIPTrunkRequest - */ -export const CreateSIPTrunkRequest = proto3.makeMessageType( - "livekit.CreateSIPTrunkRequest", - () => [ - { no: 1, name: "inbound_addresses", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 2, name: "outbound_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "outbound_number", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "inbound_numbers_regex", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 9, name: "inbound_numbers", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 5, name: "inbound_username", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "inbound_password", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 7, name: "outbound_username", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 8, name: "outbound_password", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message livekit.SIPTrunkInfo - */ -export const SIPTrunkInfo = proto3.makeMessageType( - "livekit.SIPTrunkInfo", - () => [ - { no: 1, name: "sip_trunk_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "inbound_addresses", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 3, name: "outbound_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "outbound_number", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "inbound_numbers_regex", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 10, name: "inbound_numbers", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 6, name: "inbound_username", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 7, name: "inbound_password", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 8, name: "outbound_username", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 9, name: "outbound_password", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message livekit.ListSIPTrunkRequest - */ -export const ListSIPTrunkRequest = proto3.makeMessageType( - "livekit.ListSIPTrunkRequest", - [], -); - -/** - * @generated from message livekit.ListSIPTrunkResponse - */ -export const ListSIPTrunkResponse = proto3.makeMessageType( - "livekit.ListSIPTrunkResponse", - () => [ - { no: 1, name: "items", kind: "message", T: SIPTrunkInfo, repeated: true }, - ], -); - -/** - * @generated from message livekit.DeleteSIPTrunkRequest - */ -export const DeleteSIPTrunkRequest = proto3.makeMessageType( - "livekit.DeleteSIPTrunkRequest", - () => [ - { no: 1, name: "sip_trunk_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message livekit.SIPDispatchRuleDirect - */ -export const SIPDispatchRuleDirect = proto3.makeMessageType( - "livekit.SIPDispatchRuleDirect", - () => [ - { no: 1, name: "room_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "pin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message livekit.SIPDispatchRuleIndividual - */ -export const SIPDispatchRuleIndividual = proto3.makeMessageType( - "livekit.SIPDispatchRuleIndividual", - () => [ - { no: 1, name: "room_prefix", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "pin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message livekit.SIPDispatchRule - */ -export const SIPDispatchRule = proto3.makeMessageType( - "livekit.SIPDispatchRule", - () => [ - { no: 1, name: "dispatch_rule_direct", kind: "message", T: SIPDispatchRuleDirect, oneof: "rule" }, - { no: 2, name: "dispatch_rule_individual", kind: "message", T: SIPDispatchRuleIndividual, oneof: "rule" }, - ], -); - -/** - * @generated from message livekit.CreateSIPDispatchRuleRequest - */ -export const CreateSIPDispatchRuleRequest = proto3.makeMessageType( - "livekit.CreateSIPDispatchRuleRequest", - () => [ - { no: 1, name: "rule", kind: "message", T: SIPDispatchRule }, - { no: 2, name: "trunk_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 3, name: "hide_phone_number", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ], -); - -/** - * @generated from message livekit.SIPDispatchRuleInfo - */ -export const SIPDispatchRuleInfo = proto3.makeMessageType( - "livekit.SIPDispatchRuleInfo", - () => [ - { no: 1, name: "sip_dispatch_rule_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "rule", kind: "message", T: SIPDispatchRule }, - { no: 3, name: "trunk_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 4, name: "hide_phone_number", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ], -); - -/** - * @generated from message livekit.ListSIPDispatchRuleRequest - */ -export const ListSIPDispatchRuleRequest = proto3.makeMessageType( - "livekit.ListSIPDispatchRuleRequest", - [], -); - -/** - * @generated from message livekit.ListSIPDispatchRuleResponse - */ -export const ListSIPDispatchRuleResponse = proto3.makeMessageType( - "livekit.ListSIPDispatchRuleResponse", - () => [ - { no: 1, name: "items", kind: "message", T: SIPDispatchRuleInfo, repeated: true }, - ], -); - -/** - * @generated from message livekit.DeleteSIPDispatchRuleRequest - */ -export const DeleteSIPDispatchRuleRequest = proto3.makeMessageType( - "livekit.DeleteSIPDispatchRuleRequest", - () => [ - { no: 1, name: "sip_dispatch_rule_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * A SIP Participant is a singular SIP session connected to a LiveKit room via - * a SIP Trunk into a SIP DispatchRule - * - * @generated from message livekit.CreateSIPParticipantRequest - */ -export const CreateSIPParticipantRequest = proto3.makeMessageType( - "livekit.CreateSIPParticipantRequest", - () => [ - { no: 1, name: "sip_trunk_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "sip_call_to", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "room_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message livekit.SIPParticipantInfo - */ -export const SIPParticipantInfo = proto3.makeMessageType( - "livekit.SIPParticipantInfo", - () => [ - { no: 1, name: "participant_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "room_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - diff --git a/packages/javascript/src/gen/livekit_webhook_pb.d.ts b/packages/javascript/src/gen/livekit_webhook_pb.d.ts deleted file mode 100644 index 8923e1d8..00000000 --- a/packages/javascript/src/gen/livekit_webhook_pb.d.ts +++ /dev/null @@ -1,105 +0,0 @@ -// Copyright 2023 LiveKit, Inc. -// -// 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. - -// @generated by protoc-gen-es v1.7.2 with parameter "target=js+dts" -// @generated from file livekit_webhook.proto (package livekit, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import type { ParticipantInfo, Room, TrackInfo } from "./livekit_models_pb.js"; -import type { EgressInfo } from "./livekit_egress_pb.js"; -import type { IngressInfo } from "./livekit_ingress_pb.js"; - -/** - * @generated from message livekit.WebhookEvent - */ -export declare class WebhookEvent extends Message { - /** - * one of room_started, room_finished, participant_joined, participant_left, - * track_published, track_unpublished, egress_started, egress_updated, egress_ended, - * ingress_started, ingress_ended - * - * @generated from field: string event = 1; - */ - event: string; - - /** - * @generated from field: livekit.Room room = 2; - */ - room?: Room; - - /** - * set when event is participant_* or track_* - * - * @generated from field: livekit.ParticipantInfo participant = 3; - */ - participant?: ParticipantInfo; - - /** - * set when event is egress_* - * - * @generated from field: livekit.EgressInfo egress_info = 9; - */ - egressInfo?: EgressInfo; - - /** - * set when event is ingress_* - * - * @generated from field: livekit.IngressInfo ingress_info = 10; - */ - ingressInfo?: IngressInfo; - - /** - * set when event is track_* - * - * @generated from field: livekit.TrackInfo track = 8; - */ - track?: TrackInfo; - - /** - * unique event uuid - * - * @generated from field: string id = 6; - */ - id: string; - - /** - * timestamp in seconds - * - * @generated from field: int64 created_at = 7; - */ - createdAt: bigint; - - /** - * @generated from field: int32 num_dropped = 11; - */ - numDropped: number; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "livekit.WebhookEvent"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): WebhookEvent; - - static fromJson(jsonValue: JsonValue, options?: Partial): WebhookEvent; - - static fromJsonString(jsonString: string, options?: Partial): WebhookEvent; - - static equals(a: WebhookEvent | PlainMessage | undefined, b: WebhookEvent | PlainMessage | undefined): boolean; -} - diff --git a/packages/javascript/src/gen/livekit_webhook_pb.js b/packages/javascript/src/gen/livekit_webhook_pb.js deleted file mode 100644 index e246cad1..00000000 --- a/packages/javascript/src/gen/livekit_webhook_pb.js +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright 2023 LiveKit, Inc. -// -// 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. - -// @generated by protoc-gen-es v1.7.2 with parameter "target=js+dts" -// @generated from file livekit_webhook.proto (package livekit, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { proto3 } from "@bufbuild/protobuf"; -import { ParticipantInfo, Room, TrackInfo } from "./livekit_models_pb.js"; -import { EgressInfo } from "./livekit_egress_pb.js"; -import { IngressInfo } from "./livekit_ingress_pb.js"; - -/** - * @generated from message livekit.WebhookEvent - */ -export const WebhookEvent = proto3.makeMessageType( - "livekit.WebhookEvent", - () => [ - { no: 1, name: "event", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "room", kind: "message", T: Room }, - { no: 3, name: "participant", kind: "message", T: ParticipantInfo }, - { no: 9, name: "egress_info", kind: "message", T: EgressInfo }, - { no: 10, name: "ingress_info", kind: "message", T: IngressInfo }, - { no: 8, name: "track", kind: "message", T: TrackInfo }, - { no: 6, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 7, name: "created_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 11, name: "num_dropped", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - ], -); - diff --git a/packages/javascript/src/gen/version.js b/packages/javascript/src/gen/version.js deleted file mode 100644 index 46584a7b..00000000 --- a/packages/javascript/src/gen/version.js +++ /dev/null @@ -1,2 +0,0 @@ -// Generated by genversion. -export const version = '13.0.0'; From 51a5b9c55667bcd3c205cf99f5ae60ae8fbf93d0 Mon Sep 17 00:00:00 2001 From: lukasIO Date: Wed, 6 Mar 2024 13:12:41 +0100 Subject: [PATCH 11/17] Update gitinore --- packages/javascript/.gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/javascript/.gitignore b/packages/javascript/.gitignore index c2658d7d..63ef11bb 100644 --- a/packages/javascript/.gitignore +++ b/packages/javascript/.gitignore @@ -1 +1,3 @@ node_modules/ +src/gen +!src/gen/version.d.ts \ No newline at end of file From b8679005e7daa42a8220a22ba1a82bdb76b15d78 Mon Sep 17 00:00:00 2001 From: lukasIO Date: Wed, 6 Mar 2024 13:33:05 +0100 Subject: [PATCH 12/17] fix release workflow --- .github/workflows/release.yaml | 34 ++++++++++++++++++++++++++++++++ package.json | 4 ++++ packages/javascript/package.json | 2 +- 3 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 00000000..0b965519 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,34 @@ +name: Release + +on: + push: + branches: + - main + +concurrency: ${{ github.workflow }}-${{ github.ref }} + +jobs: + release: + name: Release + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: pnpm/action-setup@v2 + with: + version: 8 + - name: Use Node.js 20 + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: "pnpm" + - name: Install dependencies + run: pnpm install + - name: Create Release Pull Request or Publish packages + id: changesets + uses: changesets/action@v1 + with: + # This expects you to have a script called ci:publish which does a build for your packages and calls changeset publish + publish: pnpm ci:publish + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/package.json b/package.json index 63550a7b..8be9c647 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,10 @@ { "private": true, "version": "0.0.1", + "scripts": { + "version": "changeset version", + "publish:ci": "pnpm --filter @livekit/protocol run build && changeset publish --dry-run" + }, "devDependencies": { "@changesets/cli": "^2.27.1", "@livekit/changesets-changelog-github": "^0.0.4" diff --git a/packages/javascript/package.json b/packages/javascript/package.json index 01f636d0..1649fabe 100644 --- a/packages/javascript/package.json +++ b/packages/javascript/package.json @@ -11,7 +11,7 @@ "scripts": { "generate:version": "genversion --esm --semi src/gen/version.js", "generate:proto": "protoc --es_out src/gen --es_opt target=js+dts -I=../../protobufs ../../protobufs/livekit_rtc.proto ../../protobufs/livekit_models.proto ../../protobufs/livekit_agent.proto ../../protobufs/livekit_webhook.proto ../../protobufs/livekit_egress.proto ../../protobufs/livekit_ingress.proto ../../protobufs/livekit_sip.proto", - "ci:publish": "pnpm publish" + "build": "pnpm generate:version && pnpm generate:proto" }, "keywords": [], "author": "LiveKit", From 8dbe9bdbb33806741289126cad476e6f84c3140f Mon Sep 17 00:00:00 2001 From: lukasIO Date: Wed, 6 Mar 2024 14:21:15 +0100 Subject: [PATCH 13/17] Move go code back to root --- .changeset/config.json | 2 +- .github/workflows/buildtest.yaml | 3 - .github/workflows/generate.yaml | 13 ++-- .github/workflows/release-js.yaml | 60 ------------------- .github/workflows/release.yaml | 4 ++ {packages/golang/auth => auth}/accesstoken.go | 0 .../golang/auth => auth}/accesstoken_test.go | 0 .../authfakes/fake_key_provider.go | 0 .../authfakes/fake_token_verifier.go | 0 {packages/golang/auth => auth}/grants.go | 0 {packages/golang/auth => auth}/grants_test.go | 0 {packages/golang/auth => auth}/interfaces.go | 0 {packages/golang/auth => auth}/provider.go | 0 .../golang/auth => auth}/provider_test.go | 0 {packages/golang/auth => auth}/verifier.go | 0 .../golang/auth => auth}/verifier_test.go | 0 packages/golang/bootstrap.sh => bootstrap.sh | 0 {packages/golang/egress => egress}/errors.go | 0 {packages/golang/egress => egress}/token.go | 0 {packages/golang/egress => egress}/types.go | 0 .../golang/egress => egress}/types_test.go | 0 packages/golang/go.mod => go.mod | 0 packages/golang/go.sum => go.sum | 0 go.work | 3 - go.work.sum | 1 - {packages/golang/infra => infra}/link.pb.go | 0 .../golang/infra => infra}/link_grpc.pb.go | 0 .../golang/ingress => ingress}/errors.go | 0 {packages/golang/ingress => ingress}/token.go | 0 .../golang/ingress => ingress}/validation.go | 0 .../ingress => ingress}/validation_test.go | 0 .../golang/livekit => livekit}/README.md | 0 .../livekit => livekit}/livekit_agent.pb.go | 0 .../livekit_analytics.pb.go | 0 .../livekit_analytics_grpc.pb.go | 0 .../livekit => livekit}/livekit_egress.pb.go | 0 .../livekit_egress.twirp.go | 0 .../livekit => livekit}/livekit_ingress.pb.go | 0 .../livekit_ingress.twirp.go | 0 .../livekit_internal.pb.go | 0 .../livekit => livekit}/livekit_models.pb.go | 0 .../livekit => livekit}/livekit_room.pb.go | 0 .../livekit => livekit}/livekit_room.twirp.go | 0 .../livekit => livekit}/livekit_rtc.pb.go | 0 .../livekit => livekit}/livekit_sip.pb.go | 0 .../livekit => livekit}/livekit_sip.twirp.go | 0 .../livekit => livekit}/livekit_webhook.pb.go | 0 {packages/golang/livekit => livekit}/types.go | 0 {packages/golang/logger => logger}/config.go | 0 {packages/golang/logger => logger}/logger.go | 0 .../golang/logger => logger}/logger_test.go | 0 .../pionlogger/logadapter.go | 0 .../logger => logger}/pionlogger/logger.go | 0 {packages/golang/logger => logger}/proto.go | 0 .../logger => logger}/zaputil/deferrer.go | 0 .../zaputil/deferrer_test.go | 0 .../logger => logger}/zaputil/encoder.go | 0 .../logger => logger}/zaputil/fieldsampler.go | 0 .../zaputil/fieldsampler_test.go | 0 .../logger => logger}/zaputil/sampler.go | 0 .../logger => logger}/zaputil/zaputil.go | 0 .../logger => logger}/zaputil/zaputil_test.go | 0 packages/golang/magefile.go => magefile.go | 8 +-- package.json | 3 +- packages/golang/package.json | 5 -- pnpm-workspace.yaml | 1 + {packages/golang/pprof => pprof}/pprof.go | 0 .../golang/psrpc => psrpc}/compilercheck.go | 0 {packages/golang/psrpc => psrpc}/errors.go | 0 {packages/golang/redis => redis}/redis.go | 0 {packages/golang/rpc => rpc}/agent.pb.go | 0 {packages/golang/rpc => rpc}/agent.psrpc.go | 0 {packages/golang/rpc => rpc}/egress.pb.go | 0 {packages/golang/rpc => rpc}/egress.psrpc.go | 0 {packages/golang/rpc => rpc}/egress_client.go | 0 {packages/golang/rpc => rpc}/ingress.pb.go | 0 {packages/golang/rpc => rpc}/ingress.psrpc.go | 0 .../golang/rpc => rpc}/ingress_client.go | 0 {packages/golang/rpc => rpc}/io.pb.go | 0 {packages/golang/rpc => rpc}/io.psrpc.go | 0 {packages/golang/rpc => rpc}/keepalive.pb.go | 0 .../golang/rpc => rpc}/keepalive.psrpc.go | 0 {packages/golang/rpc => rpc}/logging.go | 0 {packages/golang/rpc => rpc}/metrics.go | 0 .../golang/rpc => rpc}/participant.pb.go | 0 .../golang/rpc => rpc}/participant.psrpc.go | 0 {packages/golang/rpc => rpc}/race.go | 0 {packages/golang/rpc => rpc}/room.pb.go | 0 {packages/golang/rpc => rpc}/room.psrpc.go | 0 .../rpcfakes/fake_keepalive_pub_sub.go | 0 .../rpcfakes/fake_typed_participant_client.go | 0 .../rpcfakes/fake_typed_room_client.go | 0 {packages/golang/rpc => rpc}/signal.pb.go | 0 {packages/golang/rpc => rpc}/signal.psrpc.go | 0 {packages/golang/rpc => rpc}/sip.pb.go | 0 {packages/golang/rpc => rpc}/sip.psrpc.go | 0 {packages/golang/rpc => rpc}/sip_client.go | 0 {packages/golang/rpc => rpc}/typed_api.go | 0 {packages/golang/sdp => sdp}/sdp.go | 0 {packages/golang/sip => sip}/sip.go | 0 {packages/golang/sip => sip}/sip_test.go | 0 {packages/golang/sip => sip}/token.go | 0 {packages/golang/tools => tools}/tools.go | 0 {packages/golang/tracer => tracer}/tracer.go | 0 {packages/golang/utils => utils}/bitmap.go | 0 .../golang/utils => utils}/bitmap_test.go | 0 {packages/golang/utils => utils}/codec.go | 0 .../utils => utils}/connectionquality.go | 0 {packages/golang/utils => utils}/cpu.go | 0 {packages/golang/utils => utils}/cpu_all.go | 0 .../golang/utils => utils}/cpu_darwin.go | 0 {packages/golang/utils => utils}/cpu_linux.go | 0 {packages/golang/utils => utils}/cpu_null.go | 0 .../golang/utils => utils}/dedupedslice.go | 0 .../utils => utils}/dedupedslice_test.go | 0 {packages/golang/utils => utils}/err_array.go | 0 .../golang/utils => utils}/err_array_test.go | 0 .../golang/utils => utils}/event_emitter.go | 0 .../utils => utils}/event_emitter_test.go | 0 {packages/golang/utils => utils}/graph.go | 0 .../golang/utils => utils}/graph_test.go | 0 {packages/golang/utils => utils}/id.go | 0 {packages/golang/utils => utils}/id_test.go | 0 .../golang/utils => utils}/lock_tracker.go | 0 .../utils => utils}/lock_tracker_test.go | 0 {packages/golang/utils => utils}/math.go | 0 {packages/golang/utils => utils}/messaging.go | 0 .../golang/utils => utils}/multitonservice.go | 0 .../utils => utils}/multitonservice_test.go | 0 {packages/golang/utils => utils}/must.go | 0 {packages/golang/utils => utils}/must/must.go | 0 {packages/golang/utils => utils}/parallel.go | 0 .../golang/utils => utils}/parallel_test.go | 0 .../golang/utils => utils}/protoproxy.go | 0 .../golang/utils => utils}/protoproxy_test.go | 0 {packages/golang/utils => utils}/redact.go | 0 {packages/golang/utils => utils}/rtpstats.go | 0 {packages/golang/utils => utils}/secret.go | 0 .../utils => utils}/timed_aggregator.go | 0 .../utils => utils}/timed_aggregator_test.go | 0 .../golang/utils => utils}/timed_version.go | 0 .../utils => utils}/timed_version_test.go | 0 .../golang/utils => utils}/timeoutqueue.go | 0 .../utils => utils}/timeoutqueue_test.go | 0 .../utils => utils}/timeseries/timeseries.go | 0 .../timeseries/timeseries_test.go | 0 {packages/golang/utils => utils}/welford.go | 0 .../golang/utils => utils}/workergroup.go | 0 .../golang/webhook => webhook}/consts.go | 0 .../golang/webhook => webhook}/notifier.go | 0 .../webhook => webhook}/url_notifier.go | 0 .../golang/webhook => webhook}/verifier.go | 0 .../webhook => webhook}/webhook_test.go | 0 {packages/golang/xtls => xtls}/tls.go | 0 154 files changed, 18 insertions(+), 85 deletions(-) delete mode 100644 .github/workflows/release-js.yaml rename {packages/golang/auth => auth}/accesstoken.go (100%) rename {packages/golang/auth => auth}/accesstoken_test.go (100%) rename {packages/golang/auth => auth}/authfakes/fake_key_provider.go (100%) rename {packages/golang/auth => auth}/authfakes/fake_token_verifier.go (100%) rename {packages/golang/auth => auth}/grants.go (100%) rename {packages/golang/auth => auth}/grants_test.go (100%) rename {packages/golang/auth => auth}/interfaces.go (100%) rename {packages/golang/auth => auth}/provider.go (100%) rename {packages/golang/auth => auth}/provider_test.go (100%) rename {packages/golang/auth => auth}/verifier.go (100%) rename {packages/golang/auth => auth}/verifier_test.go (100%) rename packages/golang/bootstrap.sh => bootstrap.sh (100%) rename {packages/golang/egress => egress}/errors.go (100%) rename {packages/golang/egress => egress}/token.go (100%) rename {packages/golang/egress => egress}/types.go (100%) rename {packages/golang/egress => egress}/types_test.go (100%) rename packages/golang/go.mod => go.mod (100%) rename packages/golang/go.sum => go.sum (100%) delete mode 100644 go.work delete mode 100644 go.work.sum rename {packages/golang/infra => infra}/link.pb.go (100%) rename {packages/golang/infra => infra}/link_grpc.pb.go (100%) rename {packages/golang/ingress => ingress}/errors.go (100%) rename {packages/golang/ingress => ingress}/token.go (100%) rename {packages/golang/ingress => ingress}/validation.go (100%) rename {packages/golang/ingress => ingress}/validation_test.go (100%) rename {packages/golang/livekit => livekit}/README.md (100%) rename {packages/golang/livekit => livekit}/livekit_agent.pb.go (100%) rename {packages/golang/livekit => livekit}/livekit_analytics.pb.go (100%) rename {packages/golang/livekit => livekit}/livekit_analytics_grpc.pb.go (100%) rename {packages/golang/livekit => livekit}/livekit_egress.pb.go (100%) rename {packages/golang/livekit => livekit}/livekit_egress.twirp.go (100%) rename {packages/golang/livekit => livekit}/livekit_ingress.pb.go (100%) rename {packages/golang/livekit => livekit}/livekit_ingress.twirp.go (100%) rename {packages/golang/livekit => livekit}/livekit_internal.pb.go (100%) rename {packages/golang/livekit => livekit}/livekit_models.pb.go (100%) rename {packages/golang/livekit => livekit}/livekit_room.pb.go (100%) rename {packages/golang/livekit => livekit}/livekit_room.twirp.go (100%) rename {packages/golang/livekit => livekit}/livekit_rtc.pb.go (100%) rename {packages/golang/livekit => livekit}/livekit_sip.pb.go (100%) rename {packages/golang/livekit => livekit}/livekit_sip.twirp.go (100%) rename {packages/golang/livekit => livekit}/livekit_webhook.pb.go (100%) rename {packages/golang/livekit => livekit}/types.go (100%) rename {packages/golang/logger => logger}/config.go (100%) rename {packages/golang/logger => logger}/logger.go (100%) rename {packages/golang/logger => logger}/logger_test.go (100%) rename {packages/golang/logger => logger}/pionlogger/logadapter.go (100%) rename {packages/golang/logger => logger}/pionlogger/logger.go (100%) rename {packages/golang/logger => logger}/proto.go (100%) rename {packages/golang/logger => logger}/zaputil/deferrer.go (100%) rename {packages/golang/logger => logger}/zaputil/deferrer_test.go (100%) rename {packages/golang/logger => logger}/zaputil/encoder.go (100%) rename {packages/golang/logger => logger}/zaputil/fieldsampler.go (100%) rename {packages/golang/logger => logger}/zaputil/fieldsampler_test.go (100%) rename {packages/golang/logger => logger}/zaputil/sampler.go (100%) rename {packages/golang/logger => logger}/zaputil/zaputil.go (100%) rename {packages/golang/logger => logger}/zaputil/zaputil_test.go (100%) rename packages/golang/magefile.go => magefile.go (98%) delete mode 100644 packages/golang/package.json rename {packages/golang/pprof => pprof}/pprof.go (100%) rename {packages/golang/psrpc => psrpc}/compilercheck.go (100%) rename {packages/golang/psrpc => psrpc}/errors.go (100%) rename {packages/golang/redis => redis}/redis.go (100%) rename {packages/golang/rpc => rpc}/agent.pb.go (100%) rename {packages/golang/rpc => rpc}/agent.psrpc.go (100%) rename {packages/golang/rpc => rpc}/egress.pb.go (100%) rename {packages/golang/rpc => rpc}/egress.psrpc.go (100%) rename {packages/golang/rpc => rpc}/egress_client.go (100%) rename {packages/golang/rpc => rpc}/ingress.pb.go (100%) rename {packages/golang/rpc => rpc}/ingress.psrpc.go (100%) rename {packages/golang/rpc => rpc}/ingress_client.go (100%) rename {packages/golang/rpc => rpc}/io.pb.go (100%) rename {packages/golang/rpc => rpc}/io.psrpc.go (100%) rename {packages/golang/rpc => rpc}/keepalive.pb.go (100%) rename {packages/golang/rpc => rpc}/keepalive.psrpc.go (100%) rename {packages/golang/rpc => rpc}/logging.go (100%) rename {packages/golang/rpc => rpc}/metrics.go (100%) rename {packages/golang/rpc => rpc}/participant.pb.go (100%) rename {packages/golang/rpc => rpc}/participant.psrpc.go (100%) rename {packages/golang/rpc => rpc}/race.go (100%) rename {packages/golang/rpc => rpc}/room.pb.go (100%) rename {packages/golang/rpc => rpc}/room.psrpc.go (100%) rename {packages/golang/rpc => rpc}/rpcfakes/fake_keepalive_pub_sub.go (100%) rename {packages/golang/rpc => rpc}/rpcfakes/fake_typed_participant_client.go (100%) rename {packages/golang/rpc => rpc}/rpcfakes/fake_typed_room_client.go (100%) rename {packages/golang/rpc => rpc}/signal.pb.go (100%) rename {packages/golang/rpc => rpc}/signal.psrpc.go (100%) rename {packages/golang/rpc => rpc}/sip.pb.go (100%) rename {packages/golang/rpc => rpc}/sip.psrpc.go (100%) rename {packages/golang/rpc => rpc}/sip_client.go (100%) rename {packages/golang/rpc => rpc}/typed_api.go (100%) rename {packages/golang/sdp => sdp}/sdp.go (100%) rename {packages/golang/sip => sip}/sip.go (100%) rename {packages/golang/sip => sip}/sip_test.go (100%) rename {packages/golang/sip => sip}/token.go (100%) rename {packages/golang/tools => tools}/tools.go (100%) rename {packages/golang/tracer => tracer}/tracer.go (100%) rename {packages/golang/utils => utils}/bitmap.go (100%) rename {packages/golang/utils => utils}/bitmap_test.go (100%) rename {packages/golang/utils => utils}/codec.go (100%) rename {packages/golang/utils => utils}/connectionquality.go (100%) rename {packages/golang/utils => utils}/cpu.go (100%) rename {packages/golang/utils => utils}/cpu_all.go (100%) rename {packages/golang/utils => utils}/cpu_darwin.go (100%) rename {packages/golang/utils => utils}/cpu_linux.go (100%) rename {packages/golang/utils => utils}/cpu_null.go (100%) rename {packages/golang/utils => utils}/dedupedslice.go (100%) rename {packages/golang/utils => utils}/dedupedslice_test.go (100%) rename {packages/golang/utils => utils}/err_array.go (100%) rename {packages/golang/utils => utils}/err_array_test.go (100%) rename {packages/golang/utils => utils}/event_emitter.go (100%) rename {packages/golang/utils => utils}/event_emitter_test.go (100%) rename {packages/golang/utils => utils}/graph.go (100%) rename {packages/golang/utils => utils}/graph_test.go (100%) rename {packages/golang/utils => utils}/id.go (100%) rename {packages/golang/utils => utils}/id_test.go (100%) rename {packages/golang/utils => utils}/lock_tracker.go (100%) rename {packages/golang/utils => utils}/lock_tracker_test.go (100%) rename {packages/golang/utils => utils}/math.go (100%) rename {packages/golang/utils => utils}/messaging.go (100%) rename {packages/golang/utils => utils}/multitonservice.go (100%) rename {packages/golang/utils => utils}/multitonservice_test.go (100%) rename {packages/golang/utils => utils}/must.go (100%) rename {packages/golang/utils => utils}/must/must.go (100%) rename {packages/golang/utils => utils}/parallel.go (100%) rename {packages/golang/utils => utils}/parallel_test.go (100%) rename {packages/golang/utils => utils}/protoproxy.go (100%) rename {packages/golang/utils => utils}/protoproxy_test.go (100%) rename {packages/golang/utils => utils}/redact.go (100%) rename {packages/golang/utils => utils}/rtpstats.go (100%) rename {packages/golang/utils => utils}/secret.go (100%) rename {packages/golang/utils => utils}/timed_aggregator.go (100%) rename {packages/golang/utils => utils}/timed_aggregator_test.go (100%) rename {packages/golang/utils => utils}/timed_version.go (100%) rename {packages/golang/utils => utils}/timed_version_test.go (100%) rename {packages/golang/utils => utils}/timeoutqueue.go (100%) rename {packages/golang/utils => utils}/timeoutqueue_test.go (100%) rename {packages/golang/utils => utils}/timeseries/timeseries.go (100%) rename {packages/golang/utils => utils}/timeseries/timeseries_test.go (100%) rename {packages/golang/utils => utils}/welford.go (100%) rename {packages/golang/utils => utils}/workergroup.go (100%) rename {packages/golang/webhook => webhook}/consts.go (100%) rename {packages/golang/webhook => webhook}/notifier.go (100%) rename {packages/golang/webhook => webhook}/url_notifier.go (100%) rename {packages/golang/webhook => webhook}/verifier.go (100%) rename {packages/golang/webhook => webhook}/webhook_test.go (100%) rename {packages/golang/xtls => xtls}/tls.go (100%) diff --git a/.changeset/config.json b/.changeset/config.json index 3de7c939..e1935b98 100644 --- a/.changeset/config.json +++ b/.changeset/config.json @@ -5,7 +5,7 @@ { "repo": "livekit/protocol" } ], "commit": false, - "fixed": [], + "fixed": [["github.com/livekit/protocol", "@livekit/protocol"]], "linked": [], "access": "public", "baseBranch": "main", diff --git a/.github/workflows/buildtest.yaml b/.github/workflows/buildtest.yaml index c63ddf1c..5fe7250b 100644 --- a/.github/workflows/buildtest.yaml +++ b/.github/workflows/buildtest.yaml @@ -43,7 +43,6 @@ jobs: - name: Set up gotestfmt run: go install github.com/gotesttools/gotestfmt/v2/cmd/gotestfmt@v2.4.1 - working-directory: ./packages/golang - name: Download Go modules run: go mod download @@ -54,10 +53,8 @@ jobs: with: checks: '["all", "-ST1000", "-ST1003", "-ST1020", "-ST1021", "-ST1022", "-SA1019"]' install-go: false - working-directory: ./packages/golang - name: Test run: | set -euo pipefail MallocNanoZone=0 go test -race -json -v ./... 2>&1 | gotestfmt - working-directory: ./packages/golang diff --git a/.github/workflows/generate.yaml b/.github/workflows/generate.yaml index a63d08fa..aa354b5f 100644 --- a/.github/workflows/generate.yaml +++ b/.github/workflows/generate.yaml @@ -34,8 +34,6 @@ jobs: uses: actions/setup-go@v5 with: go-version: ">=1.20" - cache-dependency-path: | - packages/golang/go.sum - name: Go mod tidy run: go mod tidy @@ -49,29 +47,30 @@ jobs: - name: Bootstrap run: mage bootstrap - working-directory: ./packages/golang - name: Generate Protobuf run: mage proto - working-directory: ./packages/golang - uses: pnpm/action-setup@v2 with: version: 8 + - name: Use Node.js 20 uses: actions/setup-node@v4 with: node-version: 20 cache: "pnpm" - - name: Install dependencies + - name: Install JS dependencies run: pnpm install - - name: Generate JS files + + - name: Test generate JS files run: | pnpm --filter @livekit/protocol run generate:proto + - name: Add changes uses: EndBug/add-and-commit@v9 with: - add: '["packages"]' + add: '["livekit", "rpc", "infra"]' default_author: github_actions message: generated protobuf diff --git a/.github/workflows/release-js.yaml b/.github/workflows/release-js.yaml deleted file mode 100644 index 44238ca4..00000000 --- a/.github/workflows/release-js.yaml +++ /dev/null @@ -1,60 +0,0 @@ -# Copyright 2023 LiveKit, Inc. -# -# 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. - -name: Generate and release JS protocol package - -on: - workflow_dispatch: - push: - branches: ["main"] - -defaults: - run: - working-directory: ./packages/js - -jobs: - generate: - runs-on: ubuntu-latest - steps: - - name: Checkout Repo - uses: actions/checkout@v4 - - uses: pnpm/action-setup@v2 - with: - version: 8 - - name: Use Node.js 20 - uses: actions/setup-node@v4 - with: - node-version: 20 - cache: "pnpm" - cache-dependency-path: "packages/js/pnpm-lock.yaml" - - name: Install Protoc - uses: arduino/setup-protoc@v3 - - name: Install dependencies - run: pnpm install - - name: Version package - if: startsWith(github.event.ref, 'refs/tags/v') - run: npm version from-git - - name: Generate files - run: | - pnpm generate:version - pnpm generate:proto - - name: Add changes - uses: EndBug/add-and-commit@v9 - with: - add: '["packages/js"]' - default_author: github_actions - message: auto-generated JS files - - name: Publish - if: startsWith(github.event.ref, 'refs/tags/v') - run: pnpm ci:publish diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 0b965519..877c0da7 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -13,16 +13,20 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - uses: pnpm/action-setup@v2 with: version: 8 + - name: Use Node.js 20 uses: actions/setup-node@v4 with: node-version: 20 cache: "pnpm" + - name: Install dependencies run: pnpm install + - name: Create Release Pull Request or Publish packages id: changesets uses: changesets/action@v1 diff --git a/packages/golang/auth/accesstoken.go b/auth/accesstoken.go similarity index 100% rename from packages/golang/auth/accesstoken.go rename to auth/accesstoken.go diff --git a/packages/golang/auth/accesstoken_test.go b/auth/accesstoken_test.go similarity index 100% rename from packages/golang/auth/accesstoken_test.go rename to auth/accesstoken_test.go diff --git a/packages/golang/auth/authfakes/fake_key_provider.go b/auth/authfakes/fake_key_provider.go similarity index 100% rename from packages/golang/auth/authfakes/fake_key_provider.go rename to auth/authfakes/fake_key_provider.go diff --git a/packages/golang/auth/authfakes/fake_token_verifier.go b/auth/authfakes/fake_token_verifier.go similarity index 100% rename from packages/golang/auth/authfakes/fake_token_verifier.go rename to auth/authfakes/fake_token_verifier.go diff --git a/packages/golang/auth/grants.go b/auth/grants.go similarity index 100% rename from packages/golang/auth/grants.go rename to auth/grants.go diff --git a/packages/golang/auth/grants_test.go b/auth/grants_test.go similarity index 100% rename from packages/golang/auth/grants_test.go rename to auth/grants_test.go diff --git a/packages/golang/auth/interfaces.go b/auth/interfaces.go similarity index 100% rename from packages/golang/auth/interfaces.go rename to auth/interfaces.go diff --git a/packages/golang/auth/provider.go b/auth/provider.go similarity index 100% rename from packages/golang/auth/provider.go rename to auth/provider.go diff --git a/packages/golang/auth/provider_test.go b/auth/provider_test.go similarity index 100% rename from packages/golang/auth/provider_test.go rename to auth/provider_test.go diff --git a/packages/golang/auth/verifier.go b/auth/verifier.go similarity index 100% rename from packages/golang/auth/verifier.go rename to auth/verifier.go diff --git a/packages/golang/auth/verifier_test.go b/auth/verifier_test.go similarity index 100% rename from packages/golang/auth/verifier_test.go rename to auth/verifier_test.go diff --git a/packages/golang/bootstrap.sh b/bootstrap.sh similarity index 100% rename from packages/golang/bootstrap.sh rename to bootstrap.sh diff --git a/packages/golang/egress/errors.go b/egress/errors.go similarity index 100% rename from packages/golang/egress/errors.go rename to egress/errors.go diff --git a/packages/golang/egress/token.go b/egress/token.go similarity index 100% rename from packages/golang/egress/token.go rename to egress/token.go diff --git a/packages/golang/egress/types.go b/egress/types.go similarity index 100% rename from packages/golang/egress/types.go rename to egress/types.go diff --git a/packages/golang/egress/types_test.go b/egress/types_test.go similarity index 100% rename from packages/golang/egress/types_test.go rename to egress/types_test.go diff --git a/packages/golang/go.mod b/go.mod similarity index 100% rename from packages/golang/go.mod rename to go.mod diff --git a/packages/golang/go.sum b/go.sum similarity index 100% rename from packages/golang/go.sum rename to go.sum diff --git a/go.work b/go.work deleted file mode 100644 index a4d6f1c3..00000000 --- a/go.work +++ /dev/null @@ -1,3 +0,0 @@ -go 1.21.5 - -use ./packages/golang diff --git a/go.work.sum b/go.work.sum deleted file mode 100644 index fae0abd7..00000000 --- a/go.work.sum +++ /dev/null @@ -1 +0,0 @@ -google.golang.org/genproto v0.0.0-20240213162025-012b6fc9bca9 h1:9+tzLLstTlPTRyJTh+ah5wIMsBW5c4tQwGTN3thOW9Y= diff --git a/packages/golang/infra/link.pb.go b/infra/link.pb.go similarity index 100% rename from packages/golang/infra/link.pb.go rename to infra/link.pb.go diff --git a/packages/golang/infra/link_grpc.pb.go b/infra/link_grpc.pb.go similarity index 100% rename from packages/golang/infra/link_grpc.pb.go rename to infra/link_grpc.pb.go diff --git a/packages/golang/ingress/errors.go b/ingress/errors.go similarity index 100% rename from packages/golang/ingress/errors.go rename to ingress/errors.go diff --git a/packages/golang/ingress/token.go b/ingress/token.go similarity index 100% rename from packages/golang/ingress/token.go rename to ingress/token.go diff --git a/packages/golang/ingress/validation.go b/ingress/validation.go similarity index 100% rename from packages/golang/ingress/validation.go rename to ingress/validation.go diff --git a/packages/golang/ingress/validation_test.go b/ingress/validation_test.go similarity index 100% rename from packages/golang/ingress/validation_test.go rename to ingress/validation_test.go diff --git a/packages/golang/livekit/README.md b/livekit/README.md similarity index 100% rename from packages/golang/livekit/README.md rename to livekit/README.md diff --git a/packages/golang/livekit/livekit_agent.pb.go b/livekit/livekit_agent.pb.go similarity index 100% rename from packages/golang/livekit/livekit_agent.pb.go rename to livekit/livekit_agent.pb.go diff --git a/packages/golang/livekit/livekit_analytics.pb.go b/livekit/livekit_analytics.pb.go similarity index 100% rename from packages/golang/livekit/livekit_analytics.pb.go rename to livekit/livekit_analytics.pb.go diff --git a/packages/golang/livekit/livekit_analytics_grpc.pb.go b/livekit/livekit_analytics_grpc.pb.go similarity index 100% rename from packages/golang/livekit/livekit_analytics_grpc.pb.go rename to livekit/livekit_analytics_grpc.pb.go diff --git a/packages/golang/livekit/livekit_egress.pb.go b/livekit/livekit_egress.pb.go similarity index 100% rename from packages/golang/livekit/livekit_egress.pb.go rename to livekit/livekit_egress.pb.go diff --git a/packages/golang/livekit/livekit_egress.twirp.go b/livekit/livekit_egress.twirp.go similarity index 100% rename from packages/golang/livekit/livekit_egress.twirp.go rename to livekit/livekit_egress.twirp.go diff --git a/packages/golang/livekit/livekit_ingress.pb.go b/livekit/livekit_ingress.pb.go similarity index 100% rename from packages/golang/livekit/livekit_ingress.pb.go rename to livekit/livekit_ingress.pb.go diff --git a/packages/golang/livekit/livekit_ingress.twirp.go b/livekit/livekit_ingress.twirp.go similarity index 100% rename from packages/golang/livekit/livekit_ingress.twirp.go rename to livekit/livekit_ingress.twirp.go diff --git a/packages/golang/livekit/livekit_internal.pb.go b/livekit/livekit_internal.pb.go similarity index 100% rename from packages/golang/livekit/livekit_internal.pb.go rename to livekit/livekit_internal.pb.go diff --git a/packages/golang/livekit/livekit_models.pb.go b/livekit/livekit_models.pb.go similarity index 100% rename from packages/golang/livekit/livekit_models.pb.go rename to livekit/livekit_models.pb.go diff --git a/packages/golang/livekit/livekit_room.pb.go b/livekit/livekit_room.pb.go similarity index 100% rename from packages/golang/livekit/livekit_room.pb.go rename to livekit/livekit_room.pb.go diff --git a/packages/golang/livekit/livekit_room.twirp.go b/livekit/livekit_room.twirp.go similarity index 100% rename from packages/golang/livekit/livekit_room.twirp.go rename to livekit/livekit_room.twirp.go diff --git a/packages/golang/livekit/livekit_rtc.pb.go b/livekit/livekit_rtc.pb.go similarity index 100% rename from packages/golang/livekit/livekit_rtc.pb.go rename to livekit/livekit_rtc.pb.go diff --git a/packages/golang/livekit/livekit_sip.pb.go b/livekit/livekit_sip.pb.go similarity index 100% rename from packages/golang/livekit/livekit_sip.pb.go rename to livekit/livekit_sip.pb.go diff --git a/packages/golang/livekit/livekit_sip.twirp.go b/livekit/livekit_sip.twirp.go similarity index 100% rename from packages/golang/livekit/livekit_sip.twirp.go rename to livekit/livekit_sip.twirp.go diff --git a/packages/golang/livekit/livekit_webhook.pb.go b/livekit/livekit_webhook.pb.go similarity index 100% rename from packages/golang/livekit/livekit_webhook.pb.go rename to livekit/livekit_webhook.pb.go diff --git a/packages/golang/livekit/types.go b/livekit/types.go similarity index 100% rename from packages/golang/livekit/types.go rename to livekit/types.go diff --git a/packages/golang/logger/config.go b/logger/config.go similarity index 100% rename from packages/golang/logger/config.go rename to logger/config.go diff --git a/packages/golang/logger/logger.go b/logger/logger.go similarity index 100% rename from packages/golang/logger/logger.go rename to logger/logger.go diff --git a/packages/golang/logger/logger_test.go b/logger/logger_test.go similarity index 100% rename from packages/golang/logger/logger_test.go rename to logger/logger_test.go diff --git a/packages/golang/logger/pionlogger/logadapter.go b/logger/pionlogger/logadapter.go similarity index 100% rename from packages/golang/logger/pionlogger/logadapter.go rename to logger/pionlogger/logadapter.go diff --git a/packages/golang/logger/pionlogger/logger.go b/logger/pionlogger/logger.go similarity index 100% rename from packages/golang/logger/pionlogger/logger.go rename to logger/pionlogger/logger.go diff --git a/packages/golang/logger/proto.go b/logger/proto.go similarity index 100% rename from packages/golang/logger/proto.go rename to logger/proto.go diff --git a/packages/golang/logger/zaputil/deferrer.go b/logger/zaputil/deferrer.go similarity index 100% rename from packages/golang/logger/zaputil/deferrer.go rename to logger/zaputil/deferrer.go diff --git a/packages/golang/logger/zaputil/deferrer_test.go b/logger/zaputil/deferrer_test.go similarity index 100% rename from packages/golang/logger/zaputil/deferrer_test.go rename to logger/zaputil/deferrer_test.go diff --git a/packages/golang/logger/zaputil/encoder.go b/logger/zaputil/encoder.go similarity index 100% rename from packages/golang/logger/zaputil/encoder.go rename to logger/zaputil/encoder.go diff --git a/packages/golang/logger/zaputil/fieldsampler.go b/logger/zaputil/fieldsampler.go similarity index 100% rename from packages/golang/logger/zaputil/fieldsampler.go rename to logger/zaputil/fieldsampler.go diff --git a/packages/golang/logger/zaputil/fieldsampler_test.go b/logger/zaputil/fieldsampler_test.go similarity index 100% rename from packages/golang/logger/zaputil/fieldsampler_test.go rename to logger/zaputil/fieldsampler_test.go diff --git a/packages/golang/logger/zaputil/sampler.go b/logger/zaputil/sampler.go similarity index 100% rename from packages/golang/logger/zaputil/sampler.go rename to logger/zaputil/sampler.go diff --git a/packages/golang/logger/zaputil/zaputil.go b/logger/zaputil/zaputil.go similarity index 100% rename from packages/golang/logger/zaputil/zaputil.go rename to logger/zaputil/zaputil.go diff --git a/packages/golang/logger/zaputil/zaputil_test.go b/logger/zaputil/zaputil_test.go similarity index 100% rename from packages/golang/logger/zaputil/zaputil_test.go rename to logger/zaputil/zaputil_test.go diff --git a/packages/golang/magefile.go b/magefile.go similarity index 98% rename from packages/golang/magefile.go rename to magefile.go index 4b6ff08f..7dc6cfcc 100644 --- a/packages/golang/magefile.go +++ b/magefile.go @@ -101,7 +101,7 @@ func Proto() error { "--twirp_opt=paths=source_relative", "--plugin=go=" + protocGoPath, "--plugin=twirp=" + twirpPath, - "-I=../../protobufs", + "-I=./protobufs", }, twirpProtoFiles...) cmd := exec.Command(protoc, args...) connectStd(cmd) @@ -116,7 +116,7 @@ func Proto() error { "--go-grpc_opt=paths=source_relative", "--plugin=go=" + protocGoPath, "--plugin=go-grpc=" + protocGrpcGoPath, - "-I=../../protobufs", + "-I=./protobufs", }, grpcProtoFiles...) cmd = exec.Command(protoc, args...) connectStd(cmd) @@ -131,7 +131,7 @@ func Proto() error { "--go-grpc_opt=paths=source_relative", "--plugin=go=" + protocGoPath, "--plugin=go-grpc=" + protocGrpcGoPath, - "-I=../../protobufs", + "-I=./protobufs", }, infraProtoFiles...) cmd = exec.Command(protoc, args...) connectStd(cmd) @@ -161,7 +161,7 @@ func Proto() error { "--plugin=go=" + protocGoPath, "--plugin=psrpc=" + psrpcPath, "-I" + psrpcDir + "/protoc-gen-psrpc/options", - "-I=../../protobufs", + "-I=./protobufs", }, psrpcProtoFiles...) cmd = exec.Command(protoc, args...) mageutil.ConnectStd(cmd) diff --git a/package.json b/package.json index 8be9c647..600a8eb3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,7 @@ { + "name": "github.com/livekit/protocol", "private": true, - "version": "0.0.1", + "version": "1.10.1", "scripts": { "version": "changeset version", "publish:ci": "pnpm --filter @livekit/protocol run build && changeset publish --dry-run" diff --git a/packages/golang/package.json b/packages/golang/package.json deleted file mode 100644 index 156f70f7..00000000 --- a/packages/golang/package.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "github.com/livekit/protocol", - "private": true, - "version": "1.10.1" -} diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 46a22fbf..0093d24c 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -1,2 +1,3 @@ packages: - "packages/javascript" + - "./" diff --git a/packages/golang/pprof/pprof.go b/pprof/pprof.go similarity index 100% rename from packages/golang/pprof/pprof.go rename to pprof/pprof.go diff --git a/packages/golang/psrpc/compilercheck.go b/psrpc/compilercheck.go similarity index 100% rename from packages/golang/psrpc/compilercheck.go rename to psrpc/compilercheck.go diff --git a/packages/golang/psrpc/errors.go b/psrpc/errors.go similarity index 100% rename from packages/golang/psrpc/errors.go rename to psrpc/errors.go diff --git a/packages/golang/redis/redis.go b/redis/redis.go similarity index 100% rename from packages/golang/redis/redis.go rename to redis/redis.go diff --git a/packages/golang/rpc/agent.pb.go b/rpc/agent.pb.go similarity index 100% rename from packages/golang/rpc/agent.pb.go rename to rpc/agent.pb.go diff --git a/packages/golang/rpc/agent.psrpc.go b/rpc/agent.psrpc.go similarity index 100% rename from packages/golang/rpc/agent.psrpc.go rename to rpc/agent.psrpc.go diff --git a/packages/golang/rpc/egress.pb.go b/rpc/egress.pb.go similarity index 100% rename from packages/golang/rpc/egress.pb.go rename to rpc/egress.pb.go diff --git a/packages/golang/rpc/egress.psrpc.go b/rpc/egress.psrpc.go similarity index 100% rename from packages/golang/rpc/egress.psrpc.go rename to rpc/egress.psrpc.go diff --git a/packages/golang/rpc/egress_client.go b/rpc/egress_client.go similarity index 100% rename from packages/golang/rpc/egress_client.go rename to rpc/egress_client.go diff --git a/packages/golang/rpc/ingress.pb.go b/rpc/ingress.pb.go similarity index 100% rename from packages/golang/rpc/ingress.pb.go rename to rpc/ingress.pb.go diff --git a/packages/golang/rpc/ingress.psrpc.go b/rpc/ingress.psrpc.go similarity index 100% rename from packages/golang/rpc/ingress.psrpc.go rename to rpc/ingress.psrpc.go diff --git a/packages/golang/rpc/ingress_client.go b/rpc/ingress_client.go similarity index 100% rename from packages/golang/rpc/ingress_client.go rename to rpc/ingress_client.go diff --git a/packages/golang/rpc/io.pb.go b/rpc/io.pb.go similarity index 100% rename from packages/golang/rpc/io.pb.go rename to rpc/io.pb.go diff --git a/packages/golang/rpc/io.psrpc.go b/rpc/io.psrpc.go similarity index 100% rename from packages/golang/rpc/io.psrpc.go rename to rpc/io.psrpc.go diff --git a/packages/golang/rpc/keepalive.pb.go b/rpc/keepalive.pb.go similarity index 100% rename from packages/golang/rpc/keepalive.pb.go rename to rpc/keepalive.pb.go diff --git a/packages/golang/rpc/keepalive.psrpc.go b/rpc/keepalive.psrpc.go similarity index 100% rename from packages/golang/rpc/keepalive.psrpc.go rename to rpc/keepalive.psrpc.go diff --git a/packages/golang/rpc/logging.go b/rpc/logging.go similarity index 100% rename from packages/golang/rpc/logging.go rename to rpc/logging.go diff --git a/packages/golang/rpc/metrics.go b/rpc/metrics.go similarity index 100% rename from packages/golang/rpc/metrics.go rename to rpc/metrics.go diff --git a/packages/golang/rpc/participant.pb.go b/rpc/participant.pb.go similarity index 100% rename from packages/golang/rpc/participant.pb.go rename to rpc/participant.pb.go diff --git a/packages/golang/rpc/participant.psrpc.go b/rpc/participant.psrpc.go similarity index 100% rename from packages/golang/rpc/participant.psrpc.go rename to rpc/participant.psrpc.go diff --git a/packages/golang/rpc/race.go b/rpc/race.go similarity index 100% rename from packages/golang/rpc/race.go rename to rpc/race.go diff --git a/packages/golang/rpc/room.pb.go b/rpc/room.pb.go similarity index 100% rename from packages/golang/rpc/room.pb.go rename to rpc/room.pb.go diff --git a/packages/golang/rpc/room.psrpc.go b/rpc/room.psrpc.go similarity index 100% rename from packages/golang/rpc/room.psrpc.go rename to rpc/room.psrpc.go diff --git a/packages/golang/rpc/rpcfakes/fake_keepalive_pub_sub.go b/rpc/rpcfakes/fake_keepalive_pub_sub.go similarity index 100% rename from packages/golang/rpc/rpcfakes/fake_keepalive_pub_sub.go rename to rpc/rpcfakes/fake_keepalive_pub_sub.go diff --git a/packages/golang/rpc/rpcfakes/fake_typed_participant_client.go b/rpc/rpcfakes/fake_typed_participant_client.go similarity index 100% rename from packages/golang/rpc/rpcfakes/fake_typed_participant_client.go rename to rpc/rpcfakes/fake_typed_participant_client.go diff --git a/packages/golang/rpc/rpcfakes/fake_typed_room_client.go b/rpc/rpcfakes/fake_typed_room_client.go similarity index 100% rename from packages/golang/rpc/rpcfakes/fake_typed_room_client.go rename to rpc/rpcfakes/fake_typed_room_client.go diff --git a/packages/golang/rpc/signal.pb.go b/rpc/signal.pb.go similarity index 100% rename from packages/golang/rpc/signal.pb.go rename to rpc/signal.pb.go diff --git a/packages/golang/rpc/signal.psrpc.go b/rpc/signal.psrpc.go similarity index 100% rename from packages/golang/rpc/signal.psrpc.go rename to rpc/signal.psrpc.go diff --git a/packages/golang/rpc/sip.pb.go b/rpc/sip.pb.go similarity index 100% rename from packages/golang/rpc/sip.pb.go rename to rpc/sip.pb.go diff --git a/packages/golang/rpc/sip.psrpc.go b/rpc/sip.psrpc.go similarity index 100% rename from packages/golang/rpc/sip.psrpc.go rename to rpc/sip.psrpc.go diff --git a/packages/golang/rpc/sip_client.go b/rpc/sip_client.go similarity index 100% rename from packages/golang/rpc/sip_client.go rename to rpc/sip_client.go diff --git a/packages/golang/rpc/typed_api.go b/rpc/typed_api.go similarity index 100% rename from packages/golang/rpc/typed_api.go rename to rpc/typed_api.go diff --git a/packages/golang/sdp/sdp.go b/sdp/sdp.go similarity index 100% rename from packages/golang/sdp/sdp.go rename to sdp/sdp.go diff --git a/packages/golang/sip/sip.go b/sip/sip.go similarity index 100% rename from packages/golang/sip/sip.go rename to sip/sip.go diff --git a/packages/golang/sip/sip_test.go b/sip/sip_test.go similarity index 100% rename from packages/golang/sip/sip_test.go rename to sip/sip_test.go diff --git a/packages/golang/sip/token.go b/sip/token.go similarity index 100% rename from packages/golang/sip/token.go rename to sip/token.go diff --git a/packages/golang/tools/tools.go b/tools/tools.go similarity index 100% rename from packages/golang/tools/tools.go rename to tools/tools.go diff --git a/packages/golang/tracer/tracer.go b/tracer/tracer.go similarity index 100% rename from packages/golang/tracer/tracer.go rename to tracer/tracer.go diff --git a/packages/golang/utils/bitmap.go b/utils/bitmap.go similarity index 100% rename from packages/golang/utils/bitmap.go rename to utils/bitmap.go diff --git a/packages/golang/utils/bitmap_test.go b/utils/bitmap_test.go similarity index 100% rename from packages/golang/utils/bitmap_test.go rename to utils/bitmap_test.go diff --git a/packages/golang/utils/codec.go b/utils/codec.go similarity index 100% rename from packages/golang/utils/codec.go rename to utils/codec.go diff --git a/packages/golang/utils/connectionquality.go b/utils/connectionquality.go similarity index 100% rename from packages/golang/utils/connectionquality.go rename to utils/connectionquality.go diff --git a/packages/golang/utils/cpu.go b/utils/cpu.go similarity index 100% rename from packages/golang/utils/cpu.go rename to utils/cpu.go diff --git a/packages/golang/utils/cpu_all.go b/utils/cpu_all.go similarity index 100% rename from packages/golang/utils/cpu_all.go rename to utils/cpu_all.go diff --git a/packages/golang/utils/cpu_darwin.go b/utils/cpu_darwin.go similarity index 100% rename from packages/golang/utils/cpu_darwin.go rename to utils/cpu_darwin.go diff --git a/packages/golang/utils/cpu_linux.go b/utils/cpu_linux.go similarity index 100% rename from packages/golang/utils/cpu_linux.go rename to utils/cpu_linux.go diff --git a/packages/golang/utils/cpu_null.go b/utils/cpu_null.go similarity index 100% rename from packages/golang/utils/cpu_null.go rename to utils/cpu_null.go diff --git a/packages/golang/utils/dedupedslice.go b/utils/dedupedslice.go similarity index 100% rename from packages/golang/utils/dedupedslice.go rename to utils/dedupedslice.go diff --git a/packages/golang/utils/dedupedslice_test.go b/utils/dedupedslice_test.go similarity index 100% rename from packages/golang/utils/dedupedslice_test.go rename to utils/dedupedslice_test.go diff --git a/packages/golang/utils/err_array.go b/utils/err_array.go similarity index 100% rename from packages/golang/utils/err_array.go rename to utils/err_array.go diff --git a/packages/golang/utils/err_array_test.go b/utils/err_array_test.go similarity index 100% rename from packages/golang/utils/err_array_test.go rename to utils/err_array_test.go diff --git a/packages/golang/utils/event_emitter.go b/utils/event_emitter.go similarity index 100% rename from packages/golang/utils/event_emitter.go rename to utils/event_emitter.go diff --git a/packages/golang/utils/event_emitter_test.go b/utils/event_emitter_test.go similarity index 100% rename from packages/golang/utils/event_emitter_test.go rename to utils/event_emitter_test.go diff --git a/packages/golang/utils/graph.go b/utils/graph.go similarity index 100% rename from packages/golang/utils/graph.go rename to utils/graph.go diff --git a/packages/golang/utils/graph_test.go b/utils/graph_test.go similarity index 100% rename from packages/golang/utils/graph_test.go rename to utils/graph_test.go diff --git a/packages/golang/utils/id.go b/utils/id.go similarity index 100% rename from packages/golang/utils/id.go rename to utils/id.go diff --git a/packages/golang/utils/id_test.go b/utils/id_test.go similarity index 100% rename from packages/golang/utils/id_test.go rename to utils/id_test.go diff --git a/packages/golang/utils/lock_tracker.go b/utils/lock_tracker.go similarity index 100% rename from packages/golang/utils/lock_tracker.go rename to utils/lock_tracker.go diff --git a/packages/golang/utils/lock_tracker_test.go b/utils/lock_tracker_test.go similarity index 100% rename from packages/golang/utils/lock_tracker_test.go rename to utils/lock_tracker_test.go diff --git a/packages/golang/utils/math.go b/utils/math.go similarity index 100% rename from packages/golang/utils/math.go rename to utils/math.go diff --git a/packages/golang/utils/messaging.go b/utils/messaging.go similarity index 100% rename from packages/golang/utils/messaging.go rename to utils/messaging.go diff --git a/packages/golang/utils/multitonservice.go b/utils/multitonservice.go similarity index 100% rename from packages/golang/utils/multitonservice.go rename to utils/multitonservice.go diff --git a/packages/golang/utils/multitonservice_test.go b/utils/multitonservice_test.go similarity index 100% rename from packages/golang/utils/multitonservice_test.go rename to utils/multitonservice_test.go diff --git a/packages/golang/utils/must.go b/utils/must.go similarity index 100% rename from packages/golang/utils/must.go rename to utils/must.go diff --git a/packages/golang/utils/must/must.go b/utils/must/must.go similarity index 100% rename from packages/golang/utils/must/must.go rename to utils/must/must.go diff --git a/packages/golang/utils/parallel.go b/utils/parallel.go similarity index 100% rename from packages/golang/utils/parallel.go rename to utils/parallel.go diff --git a/packages/golang/utils/parallel_test.go b/utils/parallel_test.go similarity index 100% rename from packages/golang/utils/parallel_test.go rename to utils/parallel_test.go diff --git a/packages/golang/utils/protoproxy.go b/utils/protoproxy.go similarity index 100% rename from packages/golang/utils/protoproxy.go rename to utils/protoproxy.go diff --git a/packages/golang/utils/protoproxy_test.go b/utils/protoproxy_test.go similarity index 100% rename from packages/golang/utils/protoproxy_test.go rename to utils/protoproxy_test.go diff --git a/packages/golang/utils/redact.go b/utils/redact.go similarity index 100% rename from packages/golang/utils/redact.go rename to utils/redact.go diff --git a/packages/golang/utils/rtpstats.go b/utils/rtpstats.go similarity index 100% rename from packages/golang/utils/rtpstats.go rename to utils/rtpstats.go diff --git a/packages/golang/utils/secret.go b/utils/secret.go similarity index 100% rename from packages/golang/utils/secret.go rename to utils/secret.go diff --git a/packages/golang/utils/timed_aggregator.go b/utils/timed_aggregator.go similarity index 100% rename from packages/golang/utils/timed_aggregator.go rename to utils/timed_aggregator.go diff --git a/packages/golang/utils/timed_aggregator_test.go b/utils/timed_aggregator_test.go similarity index 100% rename from packages/golang/utils/timed_aggregator_test.go rename to utils/timed_aggregator_test.go diff --git a/packages/golang/utils/timed_version.go b/utils/timed_version.go similarity index 100% rename from packages/golang/utils/timed_version.go rename to utils/timed_version.go diff --git a/packages/golang/utils/timed_version_test.go b/utils/timed_version_test.go similarity index 100% rename from packages/golang/utils/timed_version_test.go rename to utils/timed_version_test.go diff --git a/packages/golang/utils/timeoutqueue.go b/utils/timeoutqueue.go similarity index 100% rename from packages/golang/utils/timeoutqueue.go rename to utils/timeoutqueue.go diff --git a/packages/golang/utils/timeoutqueue_test.go b/utils/timeoutqueue_test.go similarity index 100% rename from packages/golang/utils/timeoutqueue_test.go rename to utils/timeoutqueue_test.go diff --git a/packages/golang/utils/timeseries/timeseries.go b/utils/timeseries/timeseries.go similarity index 100% rename from packages/golang/utils/timeseries/timeseries.go rename to utils/timeseries/timeseries.go diff --git a/packages/golang/utils/timeseries/timeseries_test.go b/utils/timeseries/timeseries_test.go similarity index 100% rename from packages/golang/utils/timeseries/timeseries_test.go rename to utils/timeseries/timeseries_test.go diff --git a/packages/golang/utils/welford.go b/utils/welford.go similarity index 100% rename from packages/golang/utils/welford.go rename to utils/welford.go diff --git a/packages/golang/utils/workergroup.go b/utils/workergroup.go similarity index 100% rename from packages/golang/utils/workergroup.go rename to utils/workergroup.go diff --git a/packages/golang/webhook/consts.go b/webhook/consts.go similarity index 100% rename from packages/golang/webhook/consts.go rename to webhook/consts.go diff --git a/packages/golang/webhook/notifier.go b/webhook/notifier.go similarity index 100% rename from packages/golang/webhook/notifier.go rename to webhook/notifier.go diff --git a/packages/golang/webhook/url_notifier.go b/webhook/url_notifier.go similarity index 100% rename from packages/golang/webhook/url_notifier.go rename to webhook/url_notifier.go diff --git a/packages/golang/webhook/verifier.go b/webhook/verifier.go similarity index 100% rename from packages/golang/webhook/verifier.go rename to webhook/verifier.go diff --git a/packages/golang/webhook/webhook_test.go b/webhook/webhook_test.go similarity index 100% rename from packages/golang/webhook/webhook_test.go rename to webhook/webhook_test.go diff --git a/packages/golang/xtls/tls.go b/xtls/tls.go similarity index 100% rename from packages/golang/xtls/tls.go rename to xtls/tls.go From 170eccbe917deaad53fa2b03dcadda23245f9e29 Mon Sep 17 00:00:00 2001 From: lukasIO Date: Wed, 6 Mar 2024 14:27:29 +0100 Subject: [PATCH 14/17] fix working directory --- .github/workflows/buildtest.yaml | 1 - .github/workflows/generate.yaml | 1 - 2 files changed, 2 deletions(-) diff --git a/.github/workflows/buildtest.yaml b/.github/workflows/buildtest.yaml index 5fe7250b..8fd427a2 100644 --- a/.github/workflows/buildtest.yaml +++ b/.github/workflows/buildtest.yaml @@ -46,7 +46,6 @@ jobs: - name: Download Go modules run: go mod download - working-directory: ./packages/golang - name: Static Check uses: amarpal/staticcheck-action@master diff --git a/.github/workflows/generate.yaml b/.github/workflows/generate.yaml index aa354b5f..2e7ecc0c 100644 --- a/.github/workflows/generate.yaml +++ b/.github/workflows/generate.yaml @@ -37,7 +37,6 @@ jobs: - name: Go mod tidy run: go mod tidy - working-directory: ./packages/golang - name: Install generators uses: magefile/mage-action@v3 From 0508f821fcaa88ebba67469dfe636119694e4246 Mon Sep 17 00:00:00 2001 From: lukasIO Date: Wed, 6 Mar 2024 14:40:04 +0100 Subject: [PATCH 15/17] fix changeset script --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 600a8eb3..e3131180 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "private": true, "version": "1.10.1", "scripts": { - "version": "changeset version", + "changeset": "changeset version", "publish:ci": "pnpm --filter @livekit/protocol run build && changeset publish --dry-run" }, "devDependencies": { From 2df644fa1736e6251e96612c10813a0af5c09571 Mon Sep 17 00:00:00 2001 From: lukasIO Date: Wed, 6 Mar 2024 14:55:11 +0100 Subject: [PATCH 16/17] revert debug changes --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index e3131180..a30157e3 100644 --- a/package.json +++ b/package.json @@ -3,8 +3,8 @@ "private": true, "version": "1.10.1", "scripts": { - "changeset": "changeset version", - "publish:ci": "pnpm --filter @livekit/protocol run build && changeset publish --dry-run" + "changeset": "changeset", + "publish:ci": "pnpm --filter @livekit/protocol run build && changeset publish" }, "devDependencies": { "@changesets/cli": "^2.27.1", From 323b7c6b0969173afd0c60e972aaade14a6b9b4f Mon Sep 17 00:00:00 2001 From: lukasIO Date: Wed, 6 Mar 2024 21:48:24 +0100 Subject: [PATCH 17/17] remove go cache path --- .github/workflows/buildtest.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/buildtest.yaml b/.github/workflows/buildtest.yaml index 8fd427a2..942b712f 100644 --- a/.github/workflows/buildtest.yaml +++ b/.github/workflows/buildtest.yaml @@ -38,8 +38,6 @@ jobs: uses: actions/setup-go@v5 with: go-version: 1.21 - cache-dependency-path: | - packages/golang/go.sum - name: Set up gotestfmt run: go install github.com/gotesttools/gotestfmt/v2/cmd/gotestfmt@v2.4.1