github.com/livekit/protocol@v1.16.1-0.20240517185851-47e4c6bba773/protobufs/rpc/agent.proto (about) 1 // Copyright 2023 LiveKit, Inc. 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 syntax = "proto3"; 16 17 package rpc; 18 19 option go_package = "github.com/livekit/protocol/rpc"; 20 21 import "google/protobuf/empty.proto"; 22 import "options.proto"; 23 import "livekit_agent.proto"; 24 25 service AgentInternal { 26 rpc CheckEnabled(CheckEnabledRequest) returns (CheckEnabledResponse) { 27 option (psrpc.options).multi = true; 28 }; 29 rpc JobRequest(livekit.Job) returns (google.protobuf.Empty) { 30 option (psrpc.options) = { 31 affinity_func: true 32 topics: true 33 topic_params: { 34 names: ["namespace", "job_type"] 35 typed: false 36 } 37 }; 38 }; 39 rpc WorkerRegistered(google.protobuf.Empty) returns (google.protobuf.Empty) { 40 option (psrpc.options) = { 41 subscription: true 42 multi: true 43 topics: true 44 topic_params: { 45 names: ["handler_namespace"] 46 typed: false 47 } 48 }; 49 } 50 } 51 52 message CheckEnabledRequest{} 53 54 message CheckEnabledResponse { 55 bool room_enabled = 1; 56 bool publisher_enabled = 2; 57 repeated string namespaces = 3; 58 }