livekit-server-sdk 0.5.2 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/banner_dark.png +0 -0
- data/.github/banner_light.png +0 -0
- data/Gemfile.lock +1 -2
- data/README.md +22 -1
- data/lib/livekit/grants.rb +10 -2
- data/lib/livekit/proto/livekit_webhook_pb.rb +1 -0
- data/lib/livekit/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1505e5ddeb7a06a32506013527754d2e404b0183ff64f7b1fa4d927d085d95cf
|
4
|
+
data.tar.gz: ccca2cec97c35e51e3fb195167e1b14c0bd85f65e130d7621dc9817d24de8ee4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d683ca01793639609a82c6c8e92ea332abfc5a17bab48c1b04a322c4e660facfa55500d094fdc6690dcbe057326005a5bcae556811304213fce488cfe48f839
|
7
|
+
data.tar.gz: 9b3f7820ec7682b4ab3b203272b2172cf0b47fd97416f5b5d934bc174e3224074dd9879feb98e576da2c2a8a9a963e638784979976a9a77cfc2f6b14fb13759f
|
Binary file
|
Binary file
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
livekit-server-sdk (0.5.
|
4
|
+
livekit-server-sdk (0.5.3)
|
5
5
|
google-protobuf (>= 3.21.0, < 4.0)
|
6
6
|
jwt (>= 2.2.3, < 3.0)
|
7
7
|
rack (>= 2.2.3, < 3.0)
|
@@ -17,7 +17,6 @@ GEM
|
|
17
17
|
ruby2_keywords (>= 0.0.4)
|
18
18
|
faraday-net_http (3.0.2)
|
19
19
|
google-protobuf (3.22.2)
|
20
|
-
google-protobuf (3.22.2-x86_64-linux)
|
21
20
|
jwt (2.7.0)
|
22
21
|
method_source (1.0.0)
|
23
22
|
pry (0.14.2)
|
data/README.md
CHANGED
@@ -1,6 +1,14 @@
|
|
1
|
+
<!--BEGIN_BANNER_IMAGE-->
|
2
|
+
<picture>
|
3
|
+
<source media="(prefers-color-scheme: dark)" srcset="/.github/banner_dark.png">
|
4
|
+
<source media="(prefers-color-scheme: light)" srcset="/.github/banner_light.png">
|
5
|
+
<img style="width:100%;" alt="The LiveKit icon, the name of the repository and some sample code in the background." src="/.github/banner_light.png">
|
6
|
+
</picture>
|
7
|
+
<!--END_BANNER_IMAGE-->
|
8
|
+
|
1
9
|
# LiveKit Server API for Ruby
|
2
10
|
|
3
|
-
|
11
|
+
<!--BEGIN_DESCRIPTION-->Use this SDK to manage <a href="https://livekit.io/">LiveKit</a> rooms and create access tokens from your Ruby backend.<!--END_DESCRIPTION-->
|
4
12
|
|
5
13
|
This library is designed to work with Ruby 2.6.0 and above.
|
6
14
|
|
@@ -122,3 +130,16 @@ You may store credentials in environment variables. If api-key or api-secret is
|
|
122
130
|
## License
|
123
131
|
|
124
132
|
The gem is available as open source under the terms of Apache 2.0 License.
|
133
|
+
|
134
|
+
<!--BEGIN_REPO_NAV-->
|
135
|
+
<br/><table>
|
136
|
+
<thead><tr><th colspan="2">LiveKit Ecosystem</th></tr></thead>
|
137
|
+
<tbody>
|
138
|
+
<tr><td>Client SDKs</td><td><a href="https://github.com/livekit/components-js">Components</a> · <a href="https://github.com/livekit/client-sdk-js">JavaScript</a> · <a href="https://github.com/livekit/client-sdk-rust">Rust</a> · <a href="https://github.com/livekit/client-sdk-swift">iOS/macOS</a> · <a href="https://github.com/livekit/client-sdk-android">Android</a> · <a href="https://github.com/livekit/client-sdk-flutter">Flutter</a> · <a href="https://github.com/livekit/client-sdk-unity-web">Unity (web)</a> · <a href="https://github.com/livekit/client-sdk-react-native">React Native (beta)</a></td></tr><tr></tr>
|
139
|
+
<tr><td>Server SDKs</td><td><a href="https://github.com/livekit/server-sdk-js">Node.js</a> · <a href="https://github.com/livekit/server-sdk-go">Golang</a> · <b>Ruby</b> · <a href="https://github.com/livekit/server-sdk-kotlin">Java/Kotlin</a> · <a href="https://github.com/agence104/livekit-server-sdk-php">PHP (community)</a> · <a href="https://github.com/tradablebits/livekit-server-sdk-python">Python (community)</a></td></tr><tr></tr>
|
140
|
+
<tr><td>Services</td><td><a href="https://github.com/livekit/livekit">Livekit server</a> · <a href="https://github.com/livekit/egress">Egress</a> · <a href="https://github.com/livekit/ingress">Ingress</a></td></tr><tr></tr>
|
141
|
+
<tr><td>Resources</td><td><a href="https://docs.livekit.io">Docs</a> · <a href="https://github.com/livekit-examples">Example apps</a> · <a href="https://livekit.io/cloud">Cloud</a> · <a href="https://docs.livekit.io/oss/deployment">Self-hosting</a> · <a href="https://github.com/livekit/livekit-cli">CLI</a></td></tr>
|
142
|
+
</tbody>
|
143
|
+
</table>
|
144
|
+
<!--END_REPO_NAV-->
|
145
|
+
|
data/lib/livekit/grants.rb
CHANGED
@@ -34,8 +34,8 @@ module LiveKit
|
|
34
34
|
|
35
35
|
class VideoGrant
|
36
36
|
attr_accessor :roomCreate, :roomJoin, :roomList, :roomRecord, :roomAdmin,
|
37
|
-
:room, :canPublish, :
|
38
|
-
:ingressAdmin
|
37
|
+
:room, :canPublish, :canPublishSources, :canSubscribe, :canPublishData,
|
38
|
+
:canUpdateOwnMetadata, :hidden, :recorder, :ingressAdmin
|
39
39
|
|
40
40
|
def initialize(
|
41
41
|
# true if can create or delete rooms
|
@@ -52,10 +52,14 @@ module LiveKit
|
|
52
52
|
room: nil,
|
53
53
|
# for join tokens, can participant publish, true by default
|
54
54
|
canPublish: nil,
|
55
|
+
# TrackSource types that a participant may publish
|
56
|
+
canPublishSources: nil,
|
55
57
|
# for join tokens, can participant subscribe, true by default
|
56
58
|
canSubscribe: nil,
|
57
59
|
# for join tokens, can participant publish data messages, true by default
|
58
60
|
canPublishData: nil,
|
61
|
+
# by default, a participant is not allowed to update its own metadata
|
62
|
+
canUpdateOwnMetadata: nil,
|
59
63
|
# if participant should remain invisible to others
|
60
64
|
hidden: nil,
|
61
65
|
# if participant is recording the room
|
@@ -70,8 +74,10 @@ module LiveKit
|
|
70
74
|
@roomAdmin = roomAdmin
|
71
75
|
@room = room
|
72
76
|
@canPublish = canPublish
|
77
|
+
@canPublishSources = canPublishSources
|
73
78
|
@canSubscribe = canSubscribe
|
74
79
|
@canPublishData = canPublishData
|
80
|
+
@canUpdateOwnMetadata = canUpdateOwnMetadata
|
75
81
|
@hidden = hidden
|
76
82
|
@recorder = recorder
|
77
83
|
@ingressAdmin = ingressAdmin
|
@@ -90,8 +96,10 @@ module LiveKit
|
|
90
96
|
roomAdmin: hash["roomAdmin"],
|
91
97
|
room: hash["room"],
|
92
98
|
canPublish: hash["canPublish"],
|
99
|
+
canPublishSources: hash["canPublishSources"],
|
93
100
|
canSubscribe: hash["canSubscribe"],
|
94
101
|
canPublishData: hash["canPublishData"],
|
102
|
+
canUpdateOwnMetadata: hash["canUpdateOwnMetadata"],
|
95
103
|
hidden: hash["hidden"],
|
96
104
|
recorder: hash["recorder"],
|
97
105
|
ingressAdmin: hash["ingressAdmin"]
|
data/lib/livekit/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: livekit-server-sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Omri Gabay
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2023-04-
|
12
|
+
date: 2023-04-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: google-protobuf
|
@@ -100,6 +100,8 @@ extensions: []
|
|
100
100
|
extra_rdoc_files: []
|
101
101
|
files:
|
102
102
|
- ".editorconfig"
|
103
|
+
- ".github/banner_dark.png"
|
104
|
+
- ".github/banner_light.png"
|
103
105
|
- ".github/workflows/test.yml"
|
104
106
|
- ".gitignore"
|
105
107
|
- ".gitmodules"
|