Commit Graph

55 Commits

Author SHA1 Message Date
Théo Monnom
8a360e8d02 rename AgentGrant.CreateSimulation to SimulationAdmin (#1478) 2026-04-03 08:18:49 -07:00
Théo Monnom
6d94a614ed add CreateSimulation grant (#1384) 2026-01-30 13:55:26 -08:00
cnderrauber
17875e94bb Verify nbf (#1345)
* return jwt.Claims when Verify token

* fix test
2025-12-22 11:19:42 +08:00
Anunay Maheshwari
5c369b1073 fix(grants): simplify toProto (#1340) 2025-12-17 23:15:42 +05:30
Anunay Maheshwari
2a74fa85e7 fix(grants): kindToProto for connector (#1339) 2025-12-17 20:26:45 +05:30
cnderrauber
f20b33cc16 Connector proto (#1300)
* connector detail to proto

* fix clone test
2025-11-11 20:51:13 +08:00
cnderrauber
49506e1944 kind details for connector (#1299)
* kind details for connector

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-11-11 16:32:36 +08:00
Paul Wells
03368ec529 add observability grant setter (#1214)
* add observability grant setter

* Create four-jokes-build.md
2025-09-19 07:42:20 -07:00
Paul Wells
641bae4c29 add recording store request header (#1197)
* add recording store request header

* generated protobuf

* wip

* tidy

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-09-15 21:31:36 -07:00
David Zhao
b89809faea allow bypassing credential in access token check (#1213)
* allow bypassing credential in access token check

for certain use cases (SIP server creating dispatch), it's desirable to
issue tokens containing credentials so features like auto-egress could
continue to function

* use this for sip tokens

* changeset

* test
2025-09-15 21:27:45 -07:00
ac
becd101bc6 Adding the inference grant to the Claim (#1139)
* adding the inference grant to the Claim

* Added gateway guid values. These are used when connecting to the PSQL db with metrics and app name

* renamed the permission from Admin to Perform

* remove gateway guids since the gateway is no longer using a connection to the db
2025-07-22 10:51:39 -07:00
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
David Zhao
299737ae4d ensure access token do not contain sensitive credentials (#1097)
* ensure access token do not contain sensitive credentials

* changeset
2025-06-06 22:36:06 -07:00
David Zhao
b7ee9e0582 use SetVideoGrant instead of deprecated AddGrant (#1059)
* use SetVideoGrant instead of deprecated AddGrant

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-05-02 23:43:17 -07:00
cnderrauber
18e676b493 Forward grant (#1041)
* Revert "Require source|dest room admin when forwarding participant (#1027)"

This reverts commit 16e28eab22.

* Add ForwardDestRoom to VideoGrant

* rename & comments

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-04-09 14:33:48 +08:00
cnderrauber
4e01e16ba5 remove unused kinds in kindToProto (#1020) 2025-03-25 18:27:11 +08: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
cnderrauber
2d5bce98ac Changeset for ForwardingParticipant change (#1011)
* Changeset for ForwardingParticipant change

https://github.com/livekit/protocol/pull/1008

* fix new type
2025-03-18 16:30:22 +08:00
Raja Subramanian
970d4dcfad Structured logging of grants (#930)
* Structured logging of grants

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-12-20 10:56:46 +05:30
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
Raja Subramanian
c7f09c48fa Convert to lower case as enum string could be upper case. (#825) 2024-09-26 15:34:00 +05:30
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
Benjamin Pracht
034b43c47a Use consistent json field name for room configuration grant (#762) 2024-07-15 15:38:18 -07:00
Raja Subramanian
9e23fdbd08 Revert "Update to go/jose/v4 (#756)" (#759)
This reverts commit 73ece66d30.
2024-07-12 13:28:45 +05:30
David Zhao
73ece66d30 Update to go/jose/v4 (#756)
* Update to go/jose/v4

* changeset

* remove unused import

* use longer key for test
2024-07-10 10:12:29 -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
Denys Smirnov
79b5ea9ea9 Add SIP grants. (#745) 2024-06-20 17:49:41 +03: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
Paul Wells
d5e9f0a2f9 refactor guid out of utils (#730)
* refactor guid out of utils

* cleanup
2024-06-05 19:07:23 -07:00
Denys Smirnov
2e48332992 Pass participant kind in the grant. (#571) 2024-01-16 17:19:18 +02:00
David Colburn
e230ee2d84 Add agent to participant permission (#513)
* add agent to participant permission

* generated protobuf

* agent values

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-11-07 10:51:01 -08:00
David Colburn
6d382559cf Agents (#511)
* rebased

* regenerate

* generated protobuf

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-11-03 11:22:11 -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
David Zhao
b911c52c6d Fixes CanPublishSource check, added helper functions (#340) 2023-04-07 17:56:05 -07:00
David Zhao
a1a39a16f4 Update from square/go-jose.v2 to go-jose/go-jose/v3 (#334)
square/go-jose is deprecated
2023-04-04 18:09:17 -07:00
David Zhao
9a57a8c5b2 Fix support for Redis cluster mode, updated to v9 (#297)
* Fix support for Redis cluster mode, updated to v9

* update to Go 1.18
2023-02-12 21:48:01 -08:00
David Zhao
5a66fc1d10 Source specific permissions and protocol to update participant's metadata (#282) 2023-02-02 00:34:58 -08:00
Benjamin Pracht
5b5031cf27 Add IngressAdmin grant (#240) 2022-10-25 18:03:02 -07:00
Raja Subramanian
ff07c68fb2 nil check (#126) 2022-05-25 15:08:53 +05:30
Raja Subramanian
91c49df893 ClaimGrants clone (#125)
* ClaimGrants clone

* Check for nil
2022-05-25 14:06:50 +05:30
David Zhao
539c40c917 Remove deprecated JWT token (#112)
* Remove deprecated JWT token

* remove deprecated tests

* generated protobuf

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2022-04-14 01:22:48 -07:00
David Zhao
54544c489c Helper method to receive WebhookEvent (#109) 2022-03-30 16:14:23 -07:00
David Zhao
56fa20a020 Server-initiated unpublish & permissions (#107)
* Remote unpublish, participant permissions, cleanup
2022-03-20 23:58:03 -07:00
David Zhao
078505af8b Add static check CI (#97)
* Add static check CI

* fix static check errors
2022-02-24 23:36:09 -08:00
David Zhao
550362e3f0 Enable setting name with AccessToken helper (#64) 2021-12-27 23:56:02 -08:00
David Zhao
b146ec0953 Various API improvements (#63)
* ListRooms to support filter
* Webhook to return unique ID and timestamp
* TrackInfo to include track MIME type
* ParticipantInfo to include name field
2021-12-27 23:23:00 -08:00
David Colburn
70f4073aa0 update recording template, add field to room (#50)
* update recording template, add field to room

* allow multiple rtmp results

* more updates

* add recorder bool

* add recorder to participant

* add recorder

* mod tidy
2021-12-03 17:43:38 -08:00
David Zhao
d60d683ac8 Use pointers for perms in order to allow nil (#11)
* nullable permission grants

* nil perms, canPublishData

* convenience setters
2021-08-18 22:47:47 -07:00
David Zhao
992c4b2da9 webhook support 2021-08-08 22:17:46 -07:00
David Colburn
4c64ffcf86 Recording api (#6)
* recording apis

* split recording service

* type -> layout

* remove from create

* add roomRecord option
2021-08-04 20:54:51 -05:00