Commit Graph

82 Commits

Author SHA1 Message Date
David Zhao
1eb56d4243 Improve usability of room configuration (#864)
* Improve usability of room configuration

- allowing setting configuration parameters directly
- removes dispatch wrapper to simplify agents specification

* generated protobuf

* changeset

* rename to roomConfig to avoid confusion

* fix test

* export agent dispatch protobufs

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-10-21 22:37:24 -07:00
David Colburn
ce8ba5ab12 Krisp inbound trunk setting (#866)
* add krisp_enabled to inbound trunk info

* generated protobuf

* add to EvaluateDispatchRule

* add estimated_cpu to StartEgress

* generated protobuf

* changeset

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-10-22 01:14:27 -04:00
Benjamin Pracht
538889e5de Allow requesting a ringtone during SIP call transfers (#865)
---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-10-21 20:13:44 -07:00
David Colburn
ef6fc8f9c7 add manifest location to egress info (#862)
* add manifest_url to egress info

* generated protobuf

* location and presigned url

* generated protobuf

* add internal cloud_backup_enabled option

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-10-17 15:06:02 -04:00
Benjamin Pracht
b75479104c Add SIP analytics events (#831)
---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-10-14 15:04:02 -07:00
Denys Smirnov
19b686d312 Add ringing timeout and max call duration setting for SIP. (#844)
* Add ringing timeout and max call duration setting for SIP.

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-10-10 21:57:50 +03: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
136dfa7a25 fix agents rpc enum typo (#838)
* fix agents rpc enum typo

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-10-07 04:03:47 -07:00
Paul Wells
603b677f79 update agent job count type (#835)
* udpate agent job count type

* generated protobuf

* move object slice

* license

* errs

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-10-05 05:06:43 -07:00
David Colburn
75af842a12 SIP features (#826)
* add enabled_features to EvaluateSIPDispatchRules

* generated protobuf

* string -> enum

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-10-03 18:02:39 -04:00
Denys Smirnov
2406243b2f Add disconnect reasons for SIP. (#828) 2024-10-03 11:44:09 +03:00
Ben Cherry
12ec4d2d72 Add other_sdks field to ClientInfo (#804)
* Add other_sdks field to ClientInfo

* Create thirty-forks-sleep.md

* sc

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-09-24 10:07:13 -07:00
Ben Cherry
ddac94c0a2 RPC types (#814)
* protobuf

* generated protobuf

* Changes

* generated protobuf

* clean up sids

* generated protobuf

* get rid of response acks

* generated protobuf

* rmer

* generated protobuf

* updated

* generated protobuf

* Create flat-birds-walk.md

* ws

* request_id

* generated protobuf

* rich

* generated protobuf

* code

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-09-24 09:46:03 -07:00
davidliu
72783b8ff9 Client metrics protocols (#821)
* Client metrics

* changeset

* generated protobuf

* update naming

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-09-24 22:27:09 +09:00
Benjamin Pracht
71b9c184e5 Add TransferParticipant to sip and sip internal services (#816) 2024-09-20 11:47:53 -07:00
lukasIO
3d6b293a19 Add generated flag to ChatMessage (#813)
* Add generated flag to ChatMessage

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-09-19 08:12:35 +02:00
Denys Smirnov
1f5de7d620 Update SIP protocol (#805)
* Update SIP protocol. Pass headers and project ID.

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-09-13 10:45:25 +03:00
Raja Subramanian
b75762426e Some metrics protocol changes (#806)
* Some metrics protocol changes

- Add an envelope time stamp. That should be timestamp when the packet
  is actually sent.
- Remove `start_timestamp`/`end_timestamp` from `TimeseriesMetric` as it
  is not clear how it will be used. Can add later if needed.

* generated protobuf

* change comment

* generated protobuf

* comments

* generated protobuf

* clean up

* generated protobuf

* comment to mention absolute time

* generated protobuf

* adding server normalized timestamps

* generated protobuf

* comment

* generated protobuf

* comments

* generated protobuf

* Changeset

* remove incorrect changeset

* try again

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-09-13 11:57:40 +05:30
Raja Subramanian
0614c86dc8 Make messages for RTCPSenderReportState. (#807)
* Make messages for RTCPSenderReportState.

To be used for sharing state between nodes on migration.

* generated protobuf

* remove ReferenceRTCPSenderReportState, don't need that on wire

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-09-10 20:30:33 +05:30
Raja Subramanian
f13661b200 Include out-of-order packet count in AnalyticsStream (#803)
* Include out-of-order packet count in AnalyticsStream

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-09-06 23:59:21 +05:30
lukasIO
387e8ffb69 Add dedicated chat message definition (#785)
* Add dedicated chat message definition

* Add changeset

* generated protobuf

* update protocol

* generated protobuf

* make edit ts optional

* generated protobuf

* Update orange-apricots-switch.md

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: David Zhao <dz@livekit.io>
2024-09-04 16:11:07 +02:00
Ben Cherry
9dbb7b5006 Add SDK values for node and unity-web (#797)
* Add SDK values for node and unity-web

* generated protobuf

* add changeset

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-09-03 09:36:26 +02:00
Denys Smirnov
2454665245 Add callee dispatch rule type. (#798) 2024-08-31 19:33:55 +03:00
cnderrauber
2ecf29c230 Add fast_publish option to JoinResponse (#796)
* Add fast_publish option to JoinResponse

* comment

* changeset

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-08-28 11:45:51 +08:00
Raja Subramanian
22e60a7ce1 Add grant for canSubscribeMetrics. (#795)
* Add grant for canSubscribeMetrics.

* Move can subscribe metrics to video grant.

* generated protobuf

* set CanSubscribeMetrics from permissions

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-08-26 12:40:00 +05:30
cnderrauber
81856d2807 Add EnabledCodecs in JoinReponse (#791)
* Add EnabledCodecs in JoinReponse

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-08-23 18:12:47 +08:00
Théo Monnom
db5b161e51 initial metrics protocol (#777) 2024-08-20 11:32:46 -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
Raja Subramanian
bbd53d6fbf Add DisconnectReason to ParticipantInfo. (#788)
* Add `DisconnectReason` to `ParticipantInfo`.

* generated protobuf

* Add changeset.

* patch changeset

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-08-13 14:32:10 +05:30
Raja Subramanian
77997d3438 Send non-error responses also. (#786)
* Send non-error responses also.

Settling on the name `RequestResponse` (after not being able to find a
solid candidate) as it is response sent only when `request_id != 0`.

Renaming `UNKNOWN` reason to `OK` as it was unused. Will bump up
protocol and send `OK` only to client supporting that protocol version.

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-08-12 15:31:47 +05:30
Benjamin Pracht
581b59b653 Add AgentDispatchInternal service. Add JobTerminate to AgentService (#782) 2024-08-08 20:07:22 +02:00
Raja Subramanian
5be7cb358e Proto to store forwarder state. (#781)
* Proto to store forwarder state.

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-08-05 17:44:16 +05:30
David Zhao
b92b88cd1e Added ROOM_CLOSED as a DisconnectReason (#778)
* Added ROOM_CLOSED as a DisconnectReason

When all independent participants leave the room, the room would close
and disconnect all dependent participants. They should receive the correct
reason. Currently we are sending `UNKNOWN_REASON`

* generated protobuf

* changeset

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-08-01 19:16:57 -07:00
David Zhao
4457aaa904 Support attributes assignment upon agent job acceptance (#769)
* Support attributes assignment upon agent job acceptance

* generated protobuf

* changeset

* rename with participant_prefix

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-07-29 11:22:45 -07:00
David Colburn
bacbd15bfb Egress SRT output (#766)
* egress SRT output

* generated protobuf

* changeset

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-07-23 00:31:12 -04:00
Benjamin Pracht
497688ff49 Internal agent protocol improvements (#764) 2024-07-16 15:53:17 -07:00
Paul Wells
b5404e5c9a add final field to TrickleRequest (#763)
* add final field to TrickleRequest

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-07-16 09:36:57 -07:00
Benjamin Pracht
32175c1626 Remove unused fields from RegisterWorkerRequest (#761) 2024-07-15 14:03:38 -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
lukasIO
18c869b108 Rename ErrorResponse Reason INVALID_ARGUMENT to LIMIT_EXCEEDED (#758)
* Rename ErrorResponse Reason INVALID_ARGUMENT to LIMIT_EXCEEDED

* generated protobuf

* Create tough-dingos-love.md

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-07-11 12:26:51 +02: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
David Colburn
b272353929 Add filename prefix to ImagesInfo (#751)
* add filename prefix to imagesInfo

* generated protobuf

* changeset

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-07-05 08:50:36 -07:00
cnderrauber
94a2cfe2f1 Add track subscribed first time notification (#752)
* Add track subscribed first time notification

* empty line

* generated protobuf

* Create proud-gorillas-press.md

* update pnpm action

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: lukasIO <mail@lukasseiler.de>
2024-07-05 21:45:35 +08: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
lukasIO
6dec8d27f9 Add ErrorResponse (#743)
* Add ErrorResponse

* generated protobuf

* Create purple-swans-study.md

* Update purple-swans-study.md

* Add ErrorResponse to possible server responses

* generated protobuf

* Use reason error instead of uint error code

* generated protobuf

* Add invalid argument error

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-06-21 10:33:50 +02:00
David Zhao
e0c49d3c9d Support for key/value attributes on Participant (#733)
* Support for key/value attributes on Participant

Key/value attributes lets us:
* allow various components to provide more information about the participant (i.e. SIP including the phone number)
* allow Agents to communicate their own status to the end user via RTC
* enable applications to update specific fields without overriding others

* generated protobuf

* Attribute support for SIP.

* generated protobuf

* generated protobuf

* allow specifying attributes during token generation

* Remove sip prefix and rename phone number attrs.

* regenerate protos

* update tests

* add kv attrs to sip token

* add attribute test

* changeset

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Denys Smirnov <dennwc@pm.me>
2024-06-19 22:27:09 -07:00
Denys Smirnov
32c577d805 Split SIP Trunk configuration to inbound and outbound parts. (#738) 2024-06-17 21:42:19 +03:00
David Zhao
725bc923f9 Unique IDs for analytics events and stats (#739)
* Unique IDs for analytics events and stats

* generated protobuf

* changeset

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-06-13 22:47:16 -07:00
Benjamin Pracht
114aac165b Add KillIngressSession to ingress RPC (#735) 2024-06-12 13:15:27 -07:00