80 Commits

Author SHA1 Message Date
Raja Subramanian
a8bb8204ce Add auto_subscribe_data_track to StartSession. (#1366)
* Add auto_subscribe_data_track to StartSession.

* Update big-ducks-play.md for new feature

Add auto_subscribe_data_track feature to StartSession.

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2026-01-14 13:11:49 +05:30
renovate[bot]
fc7b4fa301 chore(deps): update actions/cache action to v5 (#1333)
* chore(deps): update actions/cache action to v5

Generated by renovateBot

* generated protobuf

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-12-14 22:20:19 -08:00
Raja Subramanian
3bc7a74d3d Cancellation counts for join/publish/subscribe. (#1321)
* Cancellation counts for join/publish/subscribe.

To get a better estimate of errors.

* generated protobuf

* Create friendly-jobs-flash.md

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-11-25 13:54:37 +05:30
Raja Subramanian
f5993a2691 Redact metadata, attribute, participant name from logs. (#1309)
* Redact metadata, attribute, participant name from logs.

Add size option to those.

* generated protobuf

* redact from connector protos

* generated protobuf

* Update changeset to redact log metadata

Redacts sensitive information from logs.

* Redact SIP fields.

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Denys Smirnov <dennwc@pm.me>
2025-11-18 14:05:15 +05:30
Paul Wells
d3262301ba add setting service (#1240)
* add setting service

* generated protobuf

* Create perfect-hounds-heal.md

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-10-05 16:41:02 -07:00
Raja Subramanian
99e83f9ba9 Marking width and height as not deprecated. (#1239)
* Marking width and height as not deprecated.

Those fields reflect the capture dimensions.

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-10-04 22:38:10 +05:30
ac
650cd08183 updating the reporter interface to include the gateway noop reporter (#1201)
* updating the reporter inteface to include the gateway noop reporter

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-09-10 07:56:50 -07:00
Raja Subramanian
c714707269 Protocol changes to potentially support single peer connection mode. (#1174)
* Protocol changes to potentially support single peer connection mode.

* generated protobuf

* add UseSinglePeerConnection

* generated protobuf

* sync state revert changes

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-08-26 13:04:47 +05:30
Raja Subramanian
1d6123ccc9 Include SyncState in join request (#1154)
* Include SyncState in join request

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-08-08 00:29:25 +05:30
Raja Subramanian
ccbae8154e Wrapped join request to indicate compression. (#1153)
* Wrapped join request to indicate compression.

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-08-07 16:28:28 +05:30
Raja Subramanian
7f6468a6a0 join request as proto message (#1151)
* join request as proto message

* generated protobuf

* add join_publish

* generated protobuf

* comments

* generated protobuf

* simulcast not yet deprecated

* generated protobuf

* remove join_publish

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-08-07 11:00:07 +05:30
Raja Subramanian
9922dc4967 Signalling v2 draft proposal (#1094)
* Signalling v2 draft proposal

* new files

* generated protobuf

* replay request

* generated protobuf

* ack

* generated protobuf

* protocol

* generated protobuf

* protocol is in ClientInfo

* generated protobuf

* add attributes to connect request

* generated protobuf

* CreateParticipantSession

* generated protobuf

* WIP

* WIP

* WIP

* WIP

* generated protobuf

* WIP

* generated protobuf

* subscriber allow pause optional

* generated protobuf

* connect response

* generated protobuf

* make envelope as oneOf

* generated protobuf

* clean up

* generated protobuf

* fragmentation

* generated protobuf

* Drop errors and add metadata.

* generated protobuf

* correct comments

* generated protobuf

* split out signalv2 internal types into separate file

* generated protobuf

* js export

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-07-17 19:14:38 +05:30
Raja Subramanian
cdd4c1b197 Add rate for memory use and total. (#1030)
* Add rate for memory use and total.

Load and overage for memory is calculated differently in cloud.
Removing that distinction caused memory based load to show higher load
consistently which was unintentional.

* generated protobuf

* Create nervous-ways-yawn.md

* correct next ID

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-04-02 10:08:36 +05:30
Raja Subramanian
fbbb1c3ae2 Reworking node stats a bit. (#1023)
* Reworking node stats a bit.

- Introducing a rate shape that captures rate of different metrics in a
  given interval. The interval is contained in that message.
- Stats can have multiple rates. This is akin to reporting different
  window load avg in unix systems.
- Clean up a few things
  o sys packets pct in rate (not sure what it was capturing)
  o associated prom metric (this is in server code which will come in a
    separate PR) (was not used anywhere internally, don't
    think external projects would be using it either)

* Create tricky-ties-marry.md

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-03-26 23:16:20 +05:30
lukasIO
3d92d3e0b1 Add KindDetails to ParticipantInfo (#1019)
* Add cloud features enum

* Create cuddly-dryers-guess.md

* add next id

* generated protobuf

* rename to more specific KindDetail

* generated protobuf

* Update cuddly-dryers-guess.md

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-03-25 10:16:46 +01:00
Dan McFaul
fdacb1a293 add cloud agents (#1010)
* initial commit

* add agent hosting types

* generated protobuf

* Update auth/grants.go

Co-authored-by: David Zhao <dz@livekit.io>

* Update protobufs/livekit_cloud_agent.proto

Co-authored-by: David Zhao <dz@livekit.io>

* dz feedback

* rebase fixes

* match ListAgents func call

* generated protobuf

* update regional_agents to agent_deployments

* generated protobuf

* add client settings endpoint

* generated protobuf

* Create changeset

* fix changeset

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: David Zhao <dz@livekit.io>
2025-03-19 10:50:56 -06:00
renovate[bot]
fdd5408773 Update dependency typescript to v5.7.3 (#939)
* Update dependency typescript to v5.7.3

Generated by renovateBot

* generated protobuf

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-02-06 17:11:38 -06:00
Raja Subramanian
9a579a69ba Add a nonce to data messages. (#953)
* Add a nonce to data messages.

Will be used to de-dupe messages sent via SendData API.

* generated protobuf

* comment

* generated protobuf

* add nonce to UserPacket

* generated protobuf

* 128-bit UUID as string for nonce

* generated protobuf

* UUID bytes

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-01-27 14:46:25 +05:30
lukasIO
afe463fe84 Rename File* related DataStream messages to Byte* (#948)
* Rename File related DataStream messages to Byte

* generated protobuf

* Add changeset

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-01-21 13:07:00 +01:00
Benjamin Pracht
8714744cc1 Make IngressInfo.enabled optional (#937)
To provide backward compatibility with already existing Ingresses
---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-01-07 14:21:10 -08:00
David Zhao
2c4895fbc2 adding room configuration in SIP dispatch rule (#923)
* adding room configuration in SIP dispatch rule

* generated protobuf

* changeset

* generated protobuf

* add to io.proto

* fix imports

* generated protobuf

* pass along room preset and config details

* comment about token flow

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-12-25 15:59:02 -06:00
cnderrauber
bc388341b9 Check element cound in parallel execute (#924)
* Check element cound in parallel execute

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-12-17 09:33:17 +08:00
renovate[bot]
e0e51ac651 Update go deps (#627)
* Update go deps

Generated by renovateBot

* fix import change

* generated protobuf

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: David Zhao <dz@livekit.io>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-11-16 01:24:00 -06:00
Paul Wells
970e76a1dc use AgentDispatch in internal request (#839)
* use AgentDispatch in internal request

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-10-08 00:52:06 -07:00
Paul Wells
0072ee0c6e add roommanager service (#789)
* add roommanager service

* merge

* merge

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-08-13 05:38:48 -07:00
Benjamin Pracht
497688ff49 Internal agent protocol improvements (#764) 2024-07-16 15:53:17 -07:00
cnderrauber
90ec75735b add disable_ice_lite option (#760)
* add disable_ice_lite option

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-07-15 15:02:26 +08:00
David Colburn
14b61d08b0 Replay (#755)
* rebase

* update replay api

* generated protobuf

* add comment

* changeset

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-07-08 15:39:54 -07:00
Benjamin Pracht
8c1eef4468 Agents protocol feedback (#750)
This includes some feedback on the agents protocol:

- Rename JobDescription to AgentDispatch
- Remove participant_identity entry in the dispatch
- Deprecate namespace
- Add an agent_name field to specify what agent workers a job should be dispatched to

This also allows setting a room configuration in the token.
2024-07-05 18:53:29 -07:00
Benjamin Pracht
82786f41fd Additions to agent protocol (#717)
This PR:

- Adds StartAgentJobRequest/StopAgentJobRequest calls to start an handle manually mange an agent lifecycle
- Deprecates the JobType field in WorkerInfo as workers will now be expected to handle both kinds jobs (if the namespace supports both kinds in the first place)
- Adds a metadata string -> string map to Job to allow agent implementation to take anonymous (to us) parameters
- Adds a JobStatus and error fields to Job for status reporting (Similar to egress and ingress)
- Makes livekit_agent.proto indentation consistent with other proto files
- Add room configuration and management APIs to the Room service. Rooms configuration allow bundling most room configuration parameters under a single id, that can eventually be put as part of the room creation token.
2024-06-27 10:30:58 -07:00
David Colburn
1dd95af542 s3 session token (#734)
* s3 session token

* changeset

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-06-11 17:39:00 -07:00
cnderrauber
6410d008bf Add forward metrics (#722)
* Add forward metrics

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-05-24 14:14:35 +08:00
Paul Wells
72c0789f38 allow setting min log level for logger (#705)
* allow setting min log level for logger

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-05-06 22:22:14 -07:00
Denys Smirnov
151d757a97 Expose Logger constructor for Zap (#701)
* Expose Logger constructor for Zap.

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-05-01 13:27:48 +03:00
Denys Smirnov
1552274d8d Accept SIP DTMF via data channel (#630)
* Accept SIP DTMF via data channel.

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-03-07 20:56:47 +02:00
Paul Wells
9e82495c04 add psrpc redis keepalive (#582)
* add psrpc redis keepalive

* generated protobuf

* codegen

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-01-21 06:12:01 -08:00
Raja Subramanian
4f497ff252 Reverting adding controller id and selection reason to start session (#581)
* Reverting adding controller id and selection reason to start session

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-01-20 12:10:21 +05:30
Raja Subramanian
9786b97e9c Add ControllerId and SelectionReason to StartSession. (#579)
* Add ControllerId and SelectionReason to StartSession.

This will allow media node to have those information.
Main purpose will be able to log it in all in one context.

* generated protobuf

* change name from controller_id -> controller_node_id

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-01-19 15:29:47 +05:30
Paul Wells
cf33ad3861 remove psrpc enabled config (#577)
* remove psrpc enabled config

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-01-18 03:25:40 -08:00
renovate[bot]
00894c56f4 Update module google.golang.org/protobuf to v1.32.0 (#556)
* Update module google.golang.org/protobuf to v1.32.0

Generated by renovateBot

* generated protobuf

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-12-22 09:40:18 -08:00
David Zhao
873785a90b Bump protoc version (#506)
* Bump protoc version

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-10-27 12:28:06 -07:00
cnderrauber
281e00a4a6 Move playout_delay & sync_streams to internal model (#484)
* Move playout_delay & sync_streams to internal model

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-09-28 14:58:09 +08:00
David Colburn
933a0f5464 add auto participant egress (#472)
* add auto participant egress

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-09-13 21:38:55 -07:00
David Zhao
c9e9ae555f Add license headers & NOTICE (#429)
* Add license headers & NOTICE

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-07-27 16:43:25 -07:00
Benjamin Pracht
5cff0336ab Add resourceID to IngressState (#408) 2023-06-28 18:50:34 -07:00
Raja Subramanian
89359963fc Spelling (#403)
* Spelling

* mage bootstrap

* generated protobuf

* SE_UNKNOWN

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-06-14 23:08:26 +05:30
Paul Wells
c3734b9b46 add event emitter (#379)
* add director node type

* add event emitter

* add tests

* generated protobuf

* feedback

* correct require

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-05-14 20:42:41 -07:00
David Colburn
0975cb52f6 Update psrpc (#354)
* psrpc 0.3

* generated protobuf

* bootstrap install latest

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-04-21 12:22:04 -07:00
Raja Subramanian
5fea69067b Explicitly set if subscriber_allow_pause is valid (#347)
* Explicitly set if subscriber_allow_pause is valid

Need to know if `false` (which would be default if not set) is
explicitly set or not.

* generated protobuf

* Use optional, thank you Lukas

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-04-13 16:49:58 +05:30
Raja Subramanian
bfe64b24ff SubscriberAllowPause as a connection option. (#346)
* `SubscriberAllowPause` as a connection option.

This allows controlling stream allocator allow pause or not decision
through a connection option.

NOTE: Thinking ahead a bit, would we allow pause or not at a track
level? We are going to do subscription priority. Maybe, we can also
allow pause or not at track level by adding it to `UpdateTrackSettings`.
Wondering if things are going to be confusing if we do that also.
I think the hierarchy would be (order of increasing precedence)
- from config
- connection option added in this PR will take effect if set
- track level allow pause config if we decide to do this (have to
  make sure that we can determine that the value was explicitly set in
  the protocol message vs using default value in protocol message).

* psrpc updated compile

* generated protobuf

* update bootstrap psrpc

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-04-13 16:08:19 +05:30