livekit-server-sdk 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7ca33e2d576356576a6fdffbb7ca8e7653f0dc5715138eb73fa63382c85d27cb
4
- data.tar.gz: 76d47b446727732114c77ed92b412858f3087d71a23783af2a4aa6b677222168
3
+ metadata.gz: 5eef78517d0f95246b2b76f12768eb22f556b44fb3cd2c2fee731e9ee302e623
4
+ data.tar.gz: 34bfd7e878f6f1a413c5ad22e060c92aa7c8026f5235710637df87240d9ab176
5
5
  SHA512:
6
- metadata.gz: 3dac51a33c69794ca2eddfff9b35c375b6cbbc0578a3273cb4ba10088b3e6d056e77db02a7092a7b97f62123e84795c8a3dd273606a1e92a438ed155a0a54412
7
- data.tar.gz: c5d71a01a978d34cb383b57c2df3120e4dff745d691e6a4d78cf947e6fa3c156bbfc098b0b2b4aa99f69a44d0ec72059892cc87a57cbc40c11dc82eb55fe5471
6
+ metadata.gz: 6acc80ab3108cb089962a3559b6361dd1143d63ebe12088bf4fb12dc58bf99522355d6fe16f844b28c805a0a71296c08334319c06188c5b9e0b855f6dfcb61aa
7
+ data.tar.gz: 6bd9016ec045247a5549090b7600d3424325cad853e9e77721d24255c95556a5ba6a87c4cd2989400a7907af3903572798af0d30e1d93b00450940899a78623d
data/Gemfile.lock CHANGED
@@ -2,65 +2,48 @@ PATH
2
2
  remote: .
3
3
  specs:
4
4
  livekit-server-sdk (0.4.0)
5
- google-protobuf (~> 3.21.0)
6
- jwt (~> 2.2.3)
7
- twirp (~> 1.9.0)
5
+ google-protobuf (>= 3.21.0, < 4.0)
6
+ jwt (>= 2.2.3, < 3.0)
7
+ rack (>= 2.2.3)
8
+ twirp (>= 1.10.0, < 2.0)
8
9
 
9
10
  GEM
10
11
  remote: https://rubygems.org/
11
12
  specs:
12
13
  coderay (1.1.3)
13
14
  diff-lcs (1.5.0)
14
- faraday (1.10.2)
15
- faraday-em_http (~> 1.0)
16
- faraday-em_synchrony (~> 1.0)
17
- faraday-excon (~> 1.1)
18
- faraday-httpclient (~> 1.0)
19
- faraday-multipart (~> 1.0)
20
- faraday-net_http (~> 1.0)
21
- faraday-net_http_persistent (~> 1.0)
22
- faraday-patron (~> 1.0)
23
- faraday-rack (~> 1.0)
24
- faraday-retry (~> 1.0)
15
+ faraday (2.7.4)
16
+ faraday-net_http (>= 2.0, < 3.1)
25
17
  ruby2_keywords (>= 0.0.4)
26
- faraday-em_http (1.0.0)
27
- faraday-em_synchrony (1.0.0)
28
- faraday-excon (1.1.0)
29
- faraday-httpclient (1.0.1)
30
- faraday-multipart (1.0.4)
31
- multipart-post (~> 2)
32
- faraday-net_http (1.0.1)
33
- faraday-net_http_persistent (1.2.0)
34
- faraday-patron (1.0.0)
35
- faraday-rack (1.0.0)
36
- faraday-retry (1.0.3)
37
- google-protobuf (3.21.7)
38
- jwt (2.2.3)
18
+ faraday-net_http (3.0.2)
19
+ google-protobuf (3.21.12)
20
+ google-protobuf (3.21.12-x86_64-linux)
21
+ jwt (2.7.0)
39
22
  method_source (1.0.0)
40
- multipart-post (2.2.3)
41
- pry (0.14.1)
23
+ pry (0.14.2)
42
24
  coderay (~> 1.1)
43
25
  method_source (~> 1.0)
44
- pry-doc (1.3.0)
26
+ pry-doc (1.4.0)
45
27
  pry (~> 0.11)
46
28
  yard (~> 0.9.11)
29
+ rack (3.0.4.1)
47
30
  rake (13.0.6)
48
- rspec (3.11.0)
49
- rspec-core (~> 3.11.0)
50
- rspec-expectations (~> 3.11.0)
51
- rspec-mocks (~> 3.11.0)
52
- rspec-core (3.11.0)
53
- rspec-support (~> 3.11.0)
54
- rspec-expectations (3.11.0)
31
+ rspec (3.12.0)
32
+ rspec-core (~> 3.12.0)
33
+ rspec-expectations (~> 3.12.0)
34
+ rspec-mocks (~> 3.12.0)
35
+ rspec-core (3.12.1)
36
+ rspec-support (~> 3.12.0)
37
+ rspec-expectations (3.12.2)
55
38
  diff-lcs (>= 1.2.0, < 2.0)
56
- rspec-support (~> 3.11.0)
57
- rspec-mocks (3.11.1)
39
+ rspec-support (~> 3.12.0)
40
+ rspec-mocks (3.12.3)
58
41
  diff-lcs (>= 1.2.0, < 2.0)
59
- rspec-support (~> 3.11.0)
60
- rspec-support (3.11.0)
42
+ rspec-support (~> 3.12.0)
43
+ rspec-support (3.12.0)
61
44
  ruby2_keywords (0.0.5)
62
- twirp (1.9.0)
63
- faraday (< 2)
45
+ twirp (1.10.0)
46
+ faraday (< 3)
64
47
  google-protobuf (~> 3.0, >= 3.7.0)
65
48
  webrick (1.7.0)
66
49
  yard (0.9.28)
@@ -11,6 +11,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
11
11
  optional :audio_only, :bool, 3
12
12
  optional :video_only, :bool, 4
13
13
  optional :custom_base_url, :string, 5
14
+ repeated :file_outputs, :message, 11, "livekit.EncodedFileOutput"
15
+ repeated :stream_outputs, :message, 12, "livekit.StreamOutput"
16
+ repeated :segment_outputs, :message, 13, "livekit.SegmentedFileOutput"
14
17
  oneof :output do
15
18
  optional :file, :message, 6, "livekit.EncodedFileOutput"
16
19
  optional :stream, :message, 7, "livekit.StreamOutput"
@@ -21,10 +24,30 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
21
24
  optional :advanced, :message, 9, "livekit.EncodingOptions"
22
25
  end
23
26
  end
27
+ add_message "livekit.WebEgressRequest" do
28
+ optional :url, :string, 1
29
+ optional :audio_only, :bool, 2
30
+ optional :video_only, :bool, 3
31
+ repeated :file_outputs, :message, 9, "livekit.EncodedFileOutput"
32
+ repeated :stream_outputs, :message, 10, "livekit.StreamOutput"
33
+ repeated :segment_outputs, :message, 11, "livekit.SegmentedFileOutput"
34
+ oneof :output do
35
+ optional :file, :message, 4, "livekit.EncodedFileOutput"
36
+ optional :stream, :message, 5, "livekit.StreamOutput"
37
+ optional :segments, :message, 6, "livekit.SegmentedFileOutput"
38
+ end
39
+ oneof :options do
40
+ optional :preset, :enum, 7, "livekit.EncodingOptionsPreset"
41
+ optional :advanced, :message, 8, "livekit.EncodingOptions"
42
+ end
43
+ end
24
44
  add_message "livekit.TrackCompositeEgressRequest" do
25
45
  optional :room_name, :string, 1
26
46
  optional :audio_track_id, :string, 2
27
47
  optional :video_track_id, :string, 3
48
+ repeated :file_outputs, :message, 11, "livekit.EncodedFileOutput"
49
+ repeated :stream_outputs, :message, 12, "livekit.StreamOutput"
50
+ repeated :segment_outputs, :message, 13, "livekit.SegmentedFileOutput"
28
51
  oneof :output do
29
52
  optional :file, :message, 4, "livekit.EncodedFileOutput"
30
53
  optional :stream, :message, 5, "livekit.StreamOutput"
@@ -43,20 +66,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
43
66
  optional :websocket_url, :string, 4
44
67
  end
45
68
  end
46
- add_message "livekit.WebEgressRequest" do
47
- optional :url, :string, 1
48
- optional :audio_only, :bool, 2
49
- optional :video_only, :bool, 3
50
- oneof :output do
51
- optional :file, :message, 4, "livekit.EncodedFileOutput"
52
- optional :stream, :message, 5, "livekit.StreamOutput"
53
- optional :segments, :message, 6, "livekit.SegmentedFileOutput"
54
- end
55
- oneof :options do
56
- optional :preset, :enum, 7, "livekit.EncodingOptionsPreset"
57
- optional :advanced, :message, 8, "livekit.EncodingOptions"
58
- end
59
- end
60
69
  add_message "livekit.EncodedFileOutput" do
61
70
  optional :file_type, :enum, 1, "livekit.EncodedFileType"
62
71
  optional :filepath, :string, 2
@@ -131,6 +140,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
131
140
  optional :audio_frequency, :int32, 7
132
141
  optional :video_codec, :enum, 8, "livekit.VideoCodec"
133
142
  optional :video_bitrate, :int32, 9
143
+ optional :key_frame_interval, :double, 10
134
144
  end
135
145
  add_message "livekit.UpdateLayoutRequest" do
136
146
  optional :egress_id, :string, 1
@@ -143,6 +153,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
143
153
  end
144
154
  add_message "livekit.ListEgressRequest" do
145
155
  optional :room_name, :string, 1
156
+ optional :egress_id, :string, 2
146
157
  end
147
158
  add_message "livekit.ListEgressResponse" do
148
159
  repeated :items, :message, 1, "livekit.EgressInfo"
@@ -158,6 +169,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
158
169
  optional :started_at, :int64, 10
159
170
  optional :ended_at, :int64, 11
160
171
  optional :error, :string, 9
172
+ repeated :stream_results, :message, 15, "livekit.StreamInfo"
173
+ repeated :file_results, :message, 16, "livekit.FileInfo"
174
+ repeated :segment_results, :message, 17, "livekit.SegmentsInfo"
161
175
  oneof :request do
162
176
  optional :room_composite, :message, 4, "livekit.RoomCompositeEgressRequest"
163
177
  optional :track_composite, :message, 5, "livekit.TrackCompositeEgressRequest"
@@ -179,6 +193,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
179
193
  optional :ended_at, :int64, 3
180
194
  optional :duration, :int64, 4
181
195
  optional :status, :enum, 5, "livekit.StreamInfo.Status"
196
+ optional :error, :string, 6
182
197
  end
183
198
  add_enum "livekit.StreamInfo.Status" do
184
199
  value :ACTIVE, 0
@@ -216,14 +231,14 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
216
231
  value :MP4, 1
217
232
  value :OGG, 2
218
233
  end
219
- add_enum "livekit.StreamProtocol" do
220
- value :DEFAULT_PROTOCOL, 0
221
- value :RTMP, 1
222
- end
223
234
  add_enum "livekit.SegmentedFileProtocol" do
224
235
  value :DEFAULT_SEGMENTED_FILE_PROTOCOL, 0
225
236
  value :HLS_PROTOCOL, 1
226
237
  end
238
+ add_enum "livekit.StreamProtocol" do
239
+ value :DEFAULT_PROTOCOL, 0
240
+ value :RTMP, 1
241
+ end
227
242
  add_enum "livekit.AudioCodec" do
228
243
  value :DEFAULT_AC, 0
229
244
  value :OPUS, 1
@@ -260,9 +275,9 @@ end
260
275
  module LiveKit
261
276
  module Proto
262
277
  RoomCompositeEgressRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("livekit.RoomCompositeEgressRequest").msgclass
278
+ WebEgressRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("livekit.WebEgressRequest").msgclass
263
279
  TrackCompositeEgressRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("livekit.TrackCompositeEgressRequest").msgclass
264
280
  TrackEgressRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("livekit.TrackEgressRequest").msgclass
265
- WebEgressRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("livekit.WebEgressRequest").msgclass
266
281
  EncodedFileOutput = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("livekit.EncodedFileOutput").msgclass
267
282
  SegmentedFileOutput = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("livekit.SegmentedFileOutput").msgclass
268
283
  DirectFileOutput = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("livekit.DirectFileOutput").msgclass
@@ -285,8 +300,8 @@ module LiveKit
285
300
  SegmentsInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("livekit.SegmentsInfo").msgclass
286
301
  AutoTrackEgress = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("livekit.AutoTrackEgress").msgclass
287
302
  EncodedFileType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("livekit.EncodedFileType").enummodule
288
- StreamProtocol = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("livekit.StreamProtocol").enummodule
289
303
  SegmentedFileProtocol = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("livekit.SegmentedFileProtocol").enummodule
304
+ StreamProtocol = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("livekit.StreamProtocol").enummodule
290
305
  AudioCodec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("livekit.AudioCodec").enummodule
291
306
  VideoCodec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("livekit.VideoCodec").enummodule
292
307
  EncodingOptionsPreset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("livekit.EncodingOptionsPreset").enummodule
@@ -51,6 +51,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
51
51
  optional :audio, :message, 4, "livekit.InputAudioState"
52
52
  optional :room_id, :string, 5
53
53
  optional :started_at, :int64, 7
54
+ optional :ended_at, :int64, 8
54
55
  repeated :tracks, :message, 6, "livekit.TrackInfo"
55
56
  end
56
57
  add_enum "livekit.IngressState.Status" do
@@ -27,6 +27,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
27
27
  optional :can_subscribe, :bool, 1
28
28
  optional :can_publish, :bool, 2
29
29
  optional :can_publish_data, :bool, 3
30
+ repeated :can_publish_sources, :enum, 9, "livekit.TrackSource"
30
31
  optional :hidden, :bool, 7
31
32
  optional :recorder, :bool, 8
32
33
  end
@@ -49,6 +50,13 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
49
50
  value :ACTIVE, 2
50
51
  value :DISCONNECTED, 3
51
52
  end
53
+ add_message "livekit.Encryption" do
54
+ end
55
+ add_enum "livekit.Encryption.Type" do
56
+ value :NONE, 0
57
+ value :GCM, 1
58
+ value :CUSTOM, 2
59
+ end
52
60
  add_message "livekit.SimulcastCodecInfo" do
53
61
  optional :mime_type, :string, 1
54
62
  optional :mid, :string, 2
@@ -71,6 +79,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
71
79
  repeated :codecs, :message, 13, "livekit.SimulcastCodecInfo"
72
80
  optional :stereo, :bool, 14
73
81
  optional :disable_red, :bool, 15
82
+ optional :encryption, :enum, 16, "livekit.Encryption.Type"
74
83
  end
75
84
  add_message "livekit.VideoLayer" do
76
85
  optional :quality, :enum, 1, "livekit.VideoQuality"
@@ -238,6 +247,13 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
238
247
  value :STATE_MISMATCH, 6
239
248
  value :JOIN_FAILURE, 7
240
249
  end
250
+ add_enum "livekit.ReconnectReason" do
251
+ value :RR_UNKOWN, 0
252
+ value :RR_SIGNAL_DISCONNECTED, 1
253
+ value :RR_PUBLISHER_FAILED, 2
254
+ value :RR_SUBSCRIBER_FAILED, 3
255
+ value :RR_SWITCH_CANDIDATE, 4
256
+ end
241
257
  end
242
258
  end
243
259
 
@@ -248,6 +264,8 @@ module LiveKit
248
264
  ParticipantPermission = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("livekit.ParticipantPermission").msgclass
249
265
  ParticipantInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("livekit.ParticipantInfo").msgclass
250
266
  ParticipantInfo::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("livekit.ParticipantInfo.State").enummodule
267
+ Encryption = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("livekit.Encryption").msgclass
268
+ Encryption::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("livekit.Encryption.Type").enummodule
251
269
  SimulcastCodecInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("livekit.SimulcastCodecInfo").msgclass
252
270
  TrackInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("livekit.TrackInfo").msgclass
253
271
  VideoLayer = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("livekit.VideoLayer").msgclass
@@ -272,5 +290,6 @@ module LiveKit
272
290
  ConnectionQuality = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("livekit.ConnectionQuality").enummodule
273
291
  ClientConfigSetting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("livekit.ClientConfigSetting").enummodule
274
292
  DisconnectReason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("livekit.DisconnectReason").enummodule
293
+ ReconnectReason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("livekit.ReconnectReason").enummodule
275
294
  end
276
295
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LiveKit
4
- VERSION = "0.4.0"
4
+ VERSION = "0.5.0"
5
5
  end
@@ -26,9 +26,11 @@ Gem::Specification.new do |spec|
26
26
  spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
27
27
  spec.require_paths = ["lib"]
28
28
 
29
- spec.add_dependency "google-protobuf", "~> 3.21.0"
30
- spec.add_dependency "jwt", "~> 2.2.3"
31
- spec.add_dependency "twirp", "~> 1.9.0"
29
+ spec.add_dependency "google-protobuf", ">= 3.21.0", "< 4.0"
30
+ spec.add_dependency "jwt", ">= 2.2.3", "< 3.0"
31
+ # workaround for twirp 1.10.0 missing it
32
+ spec.add_dependency 'rack', '>= 2.2.3', "< 3.0"
33
+ spec.add_dependency "twirp", ">= 1.10.0", "< 2.0"
32
34
 
33
35
  # For more information and examples about making a new gem, checkout our
34
36
  # guide at: https://bundler.io/guides/creating_gem.html
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.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Omri Gabay
@@ -9,50 +9,88 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2022-11-09 00:00:00.000000000 Z
12
+ date: 2023-02-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: google-protobuf
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - "~>"
18
+ - - ">="
19
19
  - !ruby/object:Gem::Version
20
20
  version: 3.21.0
21
+ - - "<"
22
+ - !ruby/object:Gem::Version
23
+ version: '4.0'
21
24
  type: :runtime
22
25
  prerelease: false
23
26
  version_requirements: !ruby/object:Gem::Requirement
24
27
  requirements:
25
- - - "~>"
28
+ - - ">="
26
29
  - !ruby/object:Gem::Version
27
30
  version: 3.21.0
31
+ - - "<"
32
+ - !ruby/object:Gem::Version
33
+ version: '4.0'
28
34
  - !ruby/object:Gem::Dependency
29
35
  name: jwt
30
36
  requirement: !ruby/object:Gem::Requirement
31
37
  requirements:
32
- - - "~>"
38
+ - - ">="
33
39
  - !ruby/object:Gem::Version
34
40
  version: 2.2.3
41
+ - - "<"
42
+ - !ruby/object:Gem::Version
43
+ version: '3.0'
35
44
  type: :runtime
36
45
  prerelease: false
37
46
  version_requirements: !ruby/object:Gem::Requirement
38
47
  requirements:
39
- - - "~>"
48
+ - - ">="
40
49
  - !ruby/object:Gem::Version
41
50
  version: 2.2.3
51
+ - - "<"
52
+ - !ruby/object:Gem::Version
53
+ version: '3.0'
54
+ - !ruby/object:Gem::Dependency
55
+ name: rack
56
+ requirement: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: 2.2.3
61
+ - - "<"
62
+ - !ruby/object:Gem::Version
63
+ version: '3.0'
64
+ type: :runtime
65
+ prerelease: false
66
+ version_requirements: !ruby/object:Gem::Requirement
67
+ requirements:
68
+ - - ">="
69
+ - !ruby/object:Gem::Version
70
+ version: 2.2.3
71
+ - - "<"
72
+ - !ruby/object:Gem::Version
73
+ version: '3.0'
42
74
  - !ruby/object:Gem::Dependency
43
75
  name: twirp
44
76
  requirement: !ruby/object:Gem::Requirement
45
77
  requirements:
46
- - - "~>"
78
+ - - ">="
47
79
  - !ruby/object:Gem::Version
48
- version: 1.9.0
80
+ version: 1.10.0
81
+ - - "<"
82
+ - !ruby/object:Gem::Version
83
+ version: '2.0'
49
84
  type: :runtime
50
85
  prerelease: false
51
86
  version_requirements: !ruby/object:Gem::Requirement
52
87
  requirements:
53
- - - "~>"
88
+ - - ">="
89
+ - !ruby/object:Gem::Version
90
+ version: 1.10.0
91
+ - - "<"
54
92
  - !ruby/object:Gem::Version
55
- version: 1.9.0
93
+ version: '2.0'
56
94
  description:
57
95
  email:
58
96
  - omri@omrigabay.me