Enable recording (#1233)

* add enable recording option to agent jobs

* generated protobuf

* Create pretty-baboons-join.md

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
Paul Wells
2025-09-29 13:53:34 -07:00
committed by GitHub
parent 2ddfb3ee7f
commit 7ce7550cfa
3 changed files with 24 additions and 8 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"@livekit/protocol": patch
---
Enable recording
+18 -8
View File
@@ -190,12 +190,13 @@ type Job struct {
Room *Room `protobuf:"bytes,3,opt,name=room,proto3" json:"room,omitempty"`
Participant *ParticipantInfo `protobuf:"bytes,4,opt,name=participant,proto3,oneof" json:"participant,omitempty"`
// Deprecated: Marked as deprecated in livekit_agent.proto.
Namespace string `protobuf:"bytes,5,opt,name=namespace,proto3" json:"namespace,omitempty"`
Metadata string `protobuf:"bytes,6,opt,name=metadata,proto3" json:"metadata,omitempty"`
AgentName string `protobuf:"bytes,7,opt,name=agent_name,json=agentName,proto3" json:"agent_name,omitempty"`
State *JobState `protobuf:"bytes,8,opt,name=state,proto3" json:"state,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
Namespace string `protobuf:"bytes,5,opt,name=namespace,proto3" json:"namespace,omitempty"`
Metadata string `protobuf:"bytes,6,opt,name=metadata,proto3" json:"metadata,omitempty"`
AgentName string `protobuf:"bytes,7,opt,name=agent_name,json=agentName,proto3" json:"agent_name,omitempty"`
State *JobState `protobuf:"bytes,8,opt,name=state,proto3" json:"state,omitempty"`
EnableRecording bool `protobuf:"varint,10,opt,name=enable_recording,json=enableRecording,proto3" json:"enable_recording,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Job) Reset() {
@@ -292,6 +293,13 @@ func (x *Job) GetState() *JobState {
return nil
}
func (x *Job) GetEnableRecording() bool {
if x != nil {
return x.EnableRecording
}
return false
}
type JobState struct {
state protoimpl.MessageState `protogen:"open.v1"`
Status JobStatus `protobuf:"varint,1,opt,name=status,proto3,enum=livekit.JobStatus" json:"status,omitempty"`
@@ -1416,7 +1424,7 @@ var File_livekit_agent_proto protoreflect.FileDescriptor
const file_livekit_agent_proto_rawDesc = "" +
"\n" +
"\x13livekit_agent.proto\x12\alivekit\x1a\x14livekit_models.proto\"\xd6\x02\n" +
"\x13livekit_agent.proto\x12\alivekit\x1a\x14livekit_models.proto\"\x81\x03\n" +
"\x03Job\x12\x0e\n" +
"\x02id\x18\x01 \x01(\tR\x02id\x12\x1f\n" +
"\vdispatch_id\x18\t \x01(\tR\n" +
@@ -1428,7 +1436,9 @@ const file_livekit_agent_proto_rawDesc = "" +
"\bmetadata\x18\x06 \x01(\tR\bmetadata\x12\x1d\n" +
"\n" +
"agent_name\x18\a \x01(\tR\tagentName\x12'\n" +
"\x05state\x18\b \x01(\v2\x11.livekit.JobStateR\x05stateB\x0e\n" +
"\x05state\x18\b \x01(\v2\x11.livekit.JobStateR\x05state\x12)\n" +
"\x10enable_recording\x18\n" +
" \x01(\bR\x0fenableRecordingB\x0e\n" +
"\f_participant\"\x90\x02\n" +
"\bJobState\x12*\n" +
"\x06status\x18\x01 \x01(\x0e2\x12.livekit.JobStatusR\x06status\x12\x14\n" +
+1
View File
@@ -31,6 +31,7 @@ message Job {
string metadata = 6;
string agent_name = 7;
JobState state = 8;
bool enable_recording = 10;
}
message JobState {