livekit-server-sdk 0.5.6 → 0.6.2

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.
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: livekit_webhook.proto
3
4
 
@@ -7,20 +8,34 @@ require 'livekit_models_pb'
7
8
  require 'livekit_egress_pb'
8
9
  require 'livekit_ingress_pb'
9
10
 
10
- Google::Protobuf::DescriptorPool.generated_pool.build do
11
- add_file("livekit_webhook.proto", :syntax => :proto3) do
12
- add_message "livekit.WebhookEvent" do
13
- optional :event, :string, 1
14
- optional :room, :message, 2, "livekit.Room"
15
- optional :participant, :message, 3, "livekit.ParticipantInfo"
16
- optional :egress_info, :message, 9, "livekit.EgressInfo"
17
- optional :ingress_info, :message, 10, "livekit.IngressInfo"
18
- optional :track, :message, 8, "livekit.TrackInfo"
19
- optional :id, :string, 6
20
- optional :created_at, :int64, 7
21
- optional :num_dropped, :int32, 11
11
+
12
+ descriptor_data = "\n\x15livekit_webhook.proto\x12\x07livekit\x1a\x14livekit_models.proto\x1a\x14livekit_egress.proto\x1a\x15livekit_ingress.proto\"\x97\x02\n\x0cWebhookEvent\x12\r\n\x05\x65vent\x18\x01 \x01(\t\x12\x1b\n\x04room\x18\x02 \x01(\x0b\x32\r.livekit.Room\x12-\n\x0bparticipant\x18\x03 \x01(\x0b\x32\x18.livekit.ParticipantInfo\x12(\n\x0b\x65gress_info\x18\t \x01(\x0b\x32\x13.livekit.EgressInfo\x12*\n\x0cingress_info\x18\n \x01(\x0b\x32\x14.livekit.IngressInfo\x12!\n\x05track\x18\x08 \x01(\x0b\x32\x12.livekit.TrackInfo\x12\n\n\x02id\x18\x06 \x01(\t\x12\x12\n\ncreated_at\x18\x07 \x01(\x03\x12\x13\n\x0bnum_dropped\x18\x0b \x01(\x05\x42\x46Z#github.com/livekit/protocol/livekit\xaa\x02\rLiveKit.Proto\xea\x02\x0eLiveKit::Protob\x06proto3"
13
+
14
+ pool = Google::Protobuf::DescriptorPool.generated_pool
15
+
16
+ begin
17
+ pool.add_serialized_file(descriptor_data)
18
+ rescue TypeError => e
19
+ # Compatibility code: will be removed in the next major version.
20
+ require 'google/protobuf/descriptor_pb'
21
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
22
+ parsed.clear_dependency
23
+ serialized = parsed.class.encode(parsed)
24
+ file = pool.add_serialized_file(serialized)
25
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
26
+ imports = [
27
+ ["livekit.Room", "livekit_models.proto"],
28
+ ["livekit.EgressInfo", "livekit_egress.proto"],
29
+ ["livekit.IngressInfo", "livekit_ingress.proto"],
30
+ ]
31
+ imports.each do |type_name, expected_filename|
32
+ import_file = pool.lookup(type_name).file_descriptor
33
+ if import_file.name != expected_filename
34
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
22
35
  end
23
36
  end
37
+ warn "Each proto file must use a consistent fully-qualified name."
38
+ warn "This will become an error in the next major version."
24
39
  end
25
40
 
26
41
  module LiveKit
@@ -1,4 +1,4 @@
1
- # Code generated by protoc-gen-twirp_ruby 1.11.0, DO NOT EDIT.
1
+ # Code generated by protoc-gen-twirp_ruby 1.10.0, DO NOT EDIT.
2
2
  require 'twirp'
3
3
  require_relative 'livekit_webhook_pb.rb'
4
4
 
@@ -13,7 +13,15 @@ module LiveKit
13
13
  @api_secret = api_secret
14
14
  end
15
15
 
16
- def create_room(name, empty_timeout: nil, max_participants: nil, egress: nil)
16
+ def create_room(name,
17
+ empty_timeout: nil,
18
+ max_participants: nil,
19
+ egress: nil,
20
+ metadata: nil,
21
+ min_playout_delay: nil,
22
+ max_playout_delay: nil,
23
+ sync_streams: nil
24
+ )
17
25
  self.rpc(
18
26
  :CreateRoom,
19
27
  Proto::CreateRoomRequest.new(
@@ -21,6 +29,10 @@ module LiveKit
21
29
  empty_timeout: empty_timeout,
22
30
  max_participants: max_participants,
23
31
  egress: egress,
32
+ metadata: metadata,
33
+ min_playout_delay: min_playout_delay,
34
+ max_playout_delay: max_playout_delay,
35
+ sync_streams: sync_streams
24
36
  ),
25
37
  headers: auth_header(roomCreate: true),
26
38
  )
@@ -118,7 +130,10 @@ module LiveKit
118
130
  )
119
131
  end
120
132
 
121
- def send_data(room:, data:, kind:, destination_sids: [])
133
+ def send_data(room:, data:, kind:,
134
+ destination_sids: [],
135
+ destination_identities: []
136
+ )
122
137
  self.rpc(
123
138
  :SendData,
124
139
  Proto::SendDataRequest.new(
@@ -126,6 +141,7 @@ module LiveKit
126
141
  data: data,
127
142
  kind: kind,
128
143
  destination_sids: destination_sids,
144
+ destination_identities: destination_identities,
129
145
  ),
130
146
  headers: auth_header(roomAdmin: true, room: room),
131
147
  )
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LiveKit
4
- VERSION = "0.5.6"
4
+ VERSION = "0.6.2"
5
5
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: livekit-server-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.6
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Omri Gabay
8
8
  - David Zhao
9
- autorequire:
9
+ autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2023-08-21 00:00:00.000000000 Z
12
+ date: 2024-02-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: google-protobuf
@@ -91,7 +91,7 @@ dependencies:
91
91
  - - "<"
92
92
  - !ruby/object:Gem::Version
93
93
  version: '2.0'
94
- description:
94
+ description:
95
95
  email:
96
96
  - omri@omrigabay.me
97
97
  - dz@livekit.io
@@ -115,6 +115,7 @@ files:
115
115
  - Gemfile
116
116
  - Gemfile.lock
117
117
  - LICENSE
118
+ - NOTICE
118
119
  - README.md
119
120
  - Rakefile
120
121
  - bin/bootstrap.sh
@@ -157,7 +158,7 @@ homepage: https://livekit.io
157
158
  licenses:
158
159
  - Apache-2.0
159
160
  metadata: {}
160
- post_install_message:
161
+ post_install_message:
161
162
  rdoc_options: []
162
163
  require_paths:
163
164
  - lib
@@ -172,8 +173,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
172
173
  - !ruby/object:Gem::Version
173
174
  version: '0'
174
175
  requirements: []
175
- rubygems_version: 3.4.10
176
- signing_key:
176
+ rubygems_version: 3.0.3.1
177
+ signing_key:
177
178
  specification_version: 4
178
179
  summary: LiveKit Server SDK for Ruby
179
180
  test_files: []