Skip to content

Commit 8fec5cb

Browse files
committed
feat(room_service_client): implement forward participant api
1 parent 75f2efb commit 8fec5cb

16 files changed

+136
-93
lines changed

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@ group :development do
1414
gem 'pry'
1515
gem 'pry-doc'
1616
gem 'yard'
17+
gem 'protoc-gen-twirp_ruby'
1718
end

Gemfile.lock

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,15 @@ GEM
1313
base64 (0.2.0)
1414
coderay (1.1.3)
1515
diff-lcs (1.5.0)
16-
faraday (2.10.1)
17-
faraday-net_http (>= 2.0, < 3.2)
18-
logger
19-
faraday-net_http (3.1.1)
20-
net-http
21-
google-protobuf (3.25.4)
16+
faraday (2.0.0)
17+
ruby2_keywords (>= 0.0.4)
18+
google-protobuf (3.23.4)
19+
google-protobuf (3.23.4-x86_64-linux)
2220
jwt (2.8.2)
2321
base64
24-
logger (1.6.5)
2522
method_source (1.0.0)
26-
net-http (0.4.1)
27-
uri
23+
protoc-gen-twirp_ruby (1.2.0)
24+
google-protobuf
2825
pry (0.14.2)
2926
coderay (~> 1.1)
3027
method_source (~> 1.0)
@@ -46,10 +43,10 @@ GEM
4643
diff-lcs (>= 1.2.0, < 2.0)
4744
rspec-support (~> 3.12.0)
4845
rspec-support (3.12.0)
46+
ruby2_keywords (0.0.5)
4947
twirp (1.10.0)
5048
faraday (< 3)
5149
google-protobuf (~> 3.0, >= 3.7.0)
52-
uri (0.13.0)
5350
webrick (1.7.0)
5451
yard (0.9.28)
5552
webrick (~> 1.7.0)
@@ -60,11 +57,12 @@ PLATFORMS
6057

6158
DEPENDENCIES
6259
livekit-server-sdk!
60+
protoc-gen-twirp_ruby
6361
pry
6462
pry-doc
6563
rake
6664
rspec
6765
yard
6866

6967
BUNDLED WITH
70-
2.3.7
68+
2.4.22

lib/livekit/agent_dispatch_service_client.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
module LiveKit
66
# Client for LiveKit's Agent Dispatch Service, which manages agent assignments to rooms
77
# This client handles creating, deleting, and retrieving agent dispatches
8-
class AgentDispatchServiceClient < Twirp::Client
9-
client_for Proto::AgentDispatchServiceService
8+
class AgentDispatchClient < Twirp::Client
9+
client_for Proto::AgentDispatchService
1010
include AuthMixin
1111
attr_accessor :api_key, :api_secret
1212

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,23 @@
1-
# Code generated by protoc-gen-twirp_ruby 1.10.0, DO NOT EDIT.
2-
require 'twirp'
3-
require_relative 'livekit_agent_dispatch_pb.rb'
1+
# frozen_string_literal: true
2+
3+
# Generated by the protoc-gen-twirp_ruby gem v1.2.0. DO NOT EDIT!
4+
# source: livekit_agent_dispatch.proto
5+
6+
require "twirp"
7+
require_relative "livekit_agent_dispatch_pb"
48

59
module LiveKit
610
module Proto
7-
class AgentDispatchServiceService < ::Twirp::Service
8-
package 'livekit'
9-
service 'AgentDispatchService'
10-
rpc :CreateDispatch, CreateAgentDispatchRequest, AgentDispatch, :ruby_method => :create_dispatch
11-
rpc :DeleteDispatch, DeleteAgentDispatchRequest, AgentDispatch, :ruby_method => :delete_dispatch
12-
rpc :ListDispatch, ListAgentDispatchRequest, ListAgentDispatchResponse, :ruby_method => :list_dispatch
11+
class AgentDispatchService < ::Twirp::Service
12+
package "livekit"
13+
service "AgentDispatchService"
14+
rpc :CreateDispatch, CreateAgentDispatchRequest, AgentDispatch, ruby_method: :create_dispatch
15+
rpc :DeleteDispatch, DeleteAgentDispatchRequest, AgentDispatch, ruby_method: :delete_dispatch
16+
rpc :ListDispatch, ListAgentDispatchRequest, ListAgentDispatchResponse, ruby_method: :list_dispatch
1317
end
1418

15-
class AgentDispatchServiceClient < ::Twirp::Client
16-
client_for AgentDispatchServiceService
19+
class AgentDispatchClient < ::Twirp::Client
20+
client_for AgentDispatchService
1721
end
1822
end
1923
end

lib/livekit/proto/livekit_agent_pb.rb

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)