Commit Graph

756 Commits

Author SHA1 Message Date
github-actions[bot]
e099d367dd Version Packages (#747)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@livekit/protocol@1.19.1 github.com/livekit/protocol@1.19.1 v1.19.1
2024-07-02 17:35:54 +02:00
renovate[bot]
fb8bb59f73 Update dependency @changesets/cli to v2.27.7 (#718)
Generated by renovateBot

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-01 13:03:20 +02:00
renovate[bot]
aa335df02e Update dependency @bufbuild/protobuf to v1.10.0 (#694)
Generated by renovateBot

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-01 13:02:48 +02:00
renovate[bot]
e17caf57c8 Update dependency @bufbuild/protoc-gen-es to v1.10.0 (#693)
Generated by renovateBot

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-01 12:55:47 +02: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
Raja Subramanian
b2dc8deac6 Update retryable-http (#749)
* Update retryable-http

Dependabot flagged a securty updat
https://github.com/livekit/livekit/security/dependabot/9

* tidy
2024-06-25 12:17:03 +05:30
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
github-actions[bot]
288772c53c Version Packages (#746)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@livekit/protocol@1.19.0 github.com/livekit/protocol@1.19.0 v1.19.0
2024-06-20 20:13:28 +03:00
Denys Smirnov
79b5ea9ea9 Add SIP grants. (#745) 2024-06-20 17:49:41 +03:00
Denys Smirnov
7814d0fbc2 Fix typo in SIP Trunk conversion. (#744) 2024-06-20 17:49:23 +03:00
github-actions[bot]
f50408c48c Version Packages (#736)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@livekit/protocol@1.18.0 github.com/livekit/protocol@1.18.0 v1.18.0
2024-06-19 22:29:44 -07: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
61e656c292 Downgrade significance of number matching to patch (#740)
Since it does not change the protocol itself, downgrading to patch
2024-06-14 11:15:32 +03:00
Paul Wells
425cb974f7 update yaml config tags (#741) 2024-06-13 23:08:01 -07: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
Denys Smirnov
0411da6790 Simplify number matching rules. Make '+' optional. (#737) 2024-06-13 13:26:21 +03:00
Benjamin Pracht
114aac165b Add KillIngressSession to ingress RPC (#735) 2024-06-12 13:15:27 -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
Paul Wells
fcde125058 move analytics rpc to common rpc path (#732)
* move analytics rpc to common rpc path

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-06-05 23:44:24 -07:00
Paul Wells
429fec77a6 move analytics recorder service out of livekit package (#731)
* move analytics recorder service out of livekit package

* files

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-06-05 19:39:00 -07:00
Paul Wells
d5e9f0a2f9 refactor guid out of utils (#730)
* refactor guid out of utils

* cleanup
2024-06-05 19:07:23 -07:00
github-actions[bot]
90207b41e2 Version Packages (#715)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@livekit/protocol@1.17.0 github.com/livekit/protocol@1.17.0 v1.17.0
2024-06-01 23:39:34 -07:00
David Zhao
c2a0176030 Include node_id with analytics events (#727)
* Include node_id with analytics events

in order to make it easier to reconcile in a distributed setup

* generated protobuf

* changeset

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-06-01 23:10:00 -07:00
Paul Wells
ec704e0cf2 fix psrpc method kind metric label (#725) 2024-05-28 18:32:58 -07:00
Denys Smirnov
142d7f108f Match SIP Trunks by source IP or mask. (#724) 2024-05-28 20:55:36 +03:00
Paul Wells
c721a3ed39 add message bytes to psrpc metrics observer (#723)
* add message bytes to psrpc metrics observer

* deps
2024-05-26 12:36:38 -07:00
Lukas Herman
2ec622e468 fix: rate intermittent flaky tests (#721)
changes:
  * add retries to advance clock to unblock rate limiters
  * rewrite some tests to be more robust and simpler
  * add assertCount with noise to consider oversubscribed CI machines
  * remove parallel tests, reduce CPU pressure on CI machines
  * replaced assert with require
2024-05-24 10:40:50 -04: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
Denys Smirnov
90dfd668f4 Add support for additional SIP transports. (#719) 2024-05-23 20:14:47 +03:00
cnderrauber
04d15340d0 Move LatencyAggregate into utils (#720) 2024-05-23 15:30:33 +08:00
Denys Smirnov
47e4c6bba7 Rename participant_identity in Transcription (#706)
There are two fields named participant_identity in context of Transcription. It's not clear which one corresponds to the transcriber agent, and which one is for the participant which got its speech transcribed.

This change renames the Transcription field to transcribed_participant_identity so to clarify that it's used for the transcribed participant.
2024-05-17 21:58:51 +03:00
Sean DuBois
5aa3d97713 Add ICERestartWHIPResource to RPC (#716)
* Add ICERestartWHIPResource to RPC

* Create witty-tomatoes-smile.md

---------

Co-authored-by: Benjamin Pracht <benjamin@livekit.io>
2024-05-14 11:44:17 -07:00
David Colburn
511f517b1a add error code to egress info (#714)
* add error code to egress info

* generated protobuf

* add changeset

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-05-13 10:52:57 -04:00
github-actions[bot]
04372ebead Version Packages (#708)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@livekit/protocol@1.16.0 github.com/livekit/protocol@1.16.0 v1.16.0
2024-05-13 12:06:58 +02:00
Raja Subramanian
30cee625bf Adding a simulation option for leave request. (#713)
* Adding a simulation option for leave request.

@lukasIO I was thinking of making the simulation option
just a `LeaveRequest`. And when simulating, client side
can just set `Action` field of `LeaveRequest`.
But, decided against it as I did not use case for it
and also wanted to keep it simple/specific.

Let me know if I should change that to a generic `LeaveRequest`.
If doing generic `LeaveRequest`, server behaviour would be
1. `Action = DISCONNECT`: server will close the participant and send a
   `LeaveRequest` with `Action = DISCONNECT`.
2. `Action = RESUME`, server will send `LeaveRequest` with `Action = RESUME`
   and it will not include self region in `RegionSettings`.
3. `Action = RECONNECT`, server will send `LeaveRequest` with `Action = RECONNECT`
   and it will not include self region in `RegionSettings`.

As the current simulation is only for full reconnect, it will behave
like #3 above.

Also, this option will be supported in cloud.

Please let me know if I should change this or just leave it as a
boolean.

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-05-13 00:06:19 +05:30
Benjamin Pracht
93a26f478d Add RedactAutoEncodedOutput to support redacting auto egress types (#712)
Also redact image outputs, and support AliOSS uploads for auto egress

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-05-10 09:56:06 -07:00
Benjamin Pracht
dd69a5f011 Move egress request redacting routines to protocol (#711) 2024-05-09 15:26:22 -07:00
Paul Wells
e079b2245f avoid allocation from timeout queue iterator (#710) 2024-05-09 02:37:16 -07:00
Denys Smirnov
38423424ed Allow number filtering on Dispatch Rules (#707)
Allow inbound number filtering on  SIP Dispatch Rules. It works similar to Trunks, where rules without a number filter are grouped together and take less priority than number-specific rules.

While at it, simplify the rule evaluation.

Previously it was doing some hand-crafted checks for evaluation path, that matched the validation path. Same double logic existed for priorities as well.

Now the validation is always called from evaluation, thus sharing the logic. And rule selection is simplified by just picking the first one after priority filtering.
2024-05-07 19:23:35 +03: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
github-actions[bot]
5f0256e10a Version Packages (#700)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@livekit/protocol@1.15.0 github.com/livekit/protocol@1.15.0 v1.15.0
2024-05-02 19:20:07 +02:00
lukasIO
f547128159 Add changeset for #703 (#704) 2024-05-02 18:35:25 +02:00
Denys Smirnov
e0c63d7698 Add Twirp interceptor that prints curl commands (#702)
* Add Twirp interceptor that prints curl commands.

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-05-01 22:08:30 +03:00
Théo Monnom
c286435a2d move language to TranscriptionSegment (#703) 2024-05-01 18:52:16 +02: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
e7962f4444 Pass additional metadata for SIP. (#696) 2024-04-26 13:44:03 +03:00
lukasIO
67ad5a7734 Convert changesets action output to JSON before accessing it (#699) 2024-04-26 10:38:55 +02:00
github-actions[bot]
17f16c6d15 Protocol release 1.14.0
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@livekit/protocol@1.14.0 github.com/livekit/protocol@1.14.0 v1.14.0
2024-04-26 09:21:23 +02:00
Raja Subramanian
fd19ad24b8 Deprecate UpdateVideoLayers. (#698)
* Deprecate UpdateVideoLayers.

Believe this was never used.

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-04-26 12:00:20 +05:30