diff --git a/livekit/livekit_cloud_agent.pb.go b/livekit/livekit_cloud_agent.pb.go index 28f987916..7060acc86 100644 --- a/livekit/livekit_cloud_agent.pb.go +++ b/livekit/livekit_cloud_agent.pb.go @@ -193,7 +193,7 @@ func (x PrivateLinkStatus_Status) Number() protoreflect.EnumNumber { // Deprecated: Use PrivateLinkStatus_Status.Descriptor instead. func (PrivateLinkStatus_Status) EnumDescriptor() ([]byte, []int) { - return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{30, 0} + return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{34, 0} } type AgentEvent struct { @@ -263,6 +263,7 @@ type AgentSecret struct { CreatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` Kind AgentSecretKind `protobuf:"varint,5,opt,name=kind,proto3,enum=livekit.AgentSecretKind" json:"kind,omitempty"` + Environments []string `protobuf:"bytes,6,rep,name=environments,proto3" json:"environments,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -332,6 +333,13 @@ func (x *AgentSecret) GetKind() AgentSecretKind { return AgentSecretKind_AGENT_SECRET_KIND_UNKNOWN } +func (x *AgentSecret) GetEnvironments() []string { + if x != nil { + return x.Environments + } + return nil +} + type CreateAgentRequest struct { state protoimpl.MessageState `protogen:"open.v1"` // Deprecated: Marked as deprecated in livekit_cloud_agent.proto. @@ -524,6 +532,118 @@ func (x *CreateAgentResponse) GetPresignedPostRequest() *PresignedPostRequest { return nil } +type CreateAgentV2Request struct { + state protoimpl.MessageState `protogen:"open.v1"` + Secrets []*AgentSecret `protobuf:"bytes,1,rep,name=secrets,proto3" json:"secrets,omitempty"` + Regions []string `protobuf:"bytes,2,rep,name=regions,proto3" json:"regions,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreateAgentV2Request) Reset() { + *x = CreateAgentV2Request{} + mi := &file_livekit_cloud_agent_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateAgentV2Request) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateAgentV2Request) ProtoMessage() {} + +func (x *CreateAgentV2Request) ProtoReflect() protoreflect.Message { + mi := &file_livekit_cloud_agent_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateAgentV2Request.ProtoReflect.Descriptor instead. +func (*CreateAgentV2Request) Descriptor() ([]byte, []int) { + return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{4} +} + +func (x *CreateAgentV2Request) GetSecrets() []*AgentSecret { + if x != nil { + return x.Secrets + } + return nil +} + +func (x *CreateAgentV2Request) GetRegions() []string { + if x != nil { + return x.Regions + } + return nil +} + +type CreateAgentV2Response struct { + state protoimpl.MessageState `protogen:"open.v1"` + AgentId string `protobuf:"bytes,1,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty"` + Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` + ServerRegions []string `protobuf:"bytes,3,rep,name=server_regions,json=serverRegions,proto3" json:"server_regions,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreateAgentV2Response) Reset() { + *x = CreateAgentV2Response{} + mi := &file_livekit_cloud_agent_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateAgentV2Response) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateAgentV2Response) ProtoMessage() {} + +func (x *CreateAgentV2Response) ProtoReflect() protoreflect.Message { + mi := &file_livekit_cloud_agent_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateAgentV2Response.ProtoReflect.Descriptor instead. +func (*CreateAgentV2Response) Descriptor() ([]byte, []int) { + return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{5} +} + +func (x *CreateAgentV2Response) GetAgentId() string { + if x != nil { + return x.AgentId + } + return "" +} + +func (x *CreateAgentV2Response) GetStatus() string { + if x != nil { + return x.Status + } + return "" +} + +func (x *CreateAgentV2Response) GetServerRegions() []string { + if x != nil { + return x.ServerRegions + } + return nil +} + type PresignedPostRequest struct { state protoimpl.MessageState `protogen:"open.v1"` Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` @@ -534,7 +654,7 @@ type PresignedPostRequest struct { func (x *PresignedPostRequest) Reset() { *x = PresignedPostRequest{} - mi := &file_livekit_cloud_agent_proto_msgTypes[4] + mi := &file_livekit_cloud_agent_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -546,7 +666,7 @@ func (x *PresignedPostRequest) String() string { func (*PresignedPostRequest) ProtoMessage() {} func (x *PresignedPostRequest) ProtoReflect() protoreflect.Message { - mi := &file_livekit_cloud_agent_proto_msgTypes[4] + mi := &file_livekit_cloud_agent_proto_msgTypes[6] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -559,7 +679,7 @@ func (x *PresignedPostRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use PresignedPostRequest.ProtoReflect.Descriptor instead. func (*PresignedPostRequest) Descriptor() ([]byte, []int) { - return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{4} + return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{6} } func (x *PresignedPostRequest) GetUrl() string { @@ -592,13 +712,16 @@ type AgentDeployment struct { CpuLimit string `protobuf:"bytes,12,opt,name=cpu_limit,json=cpuLimit,proto3" json:"cpu_limit,omitempty"` ServerRegion string `protobuf:"bytes,13,opt,name=server_region,json=serverRegion,proto3" json:"server_region,omitempty"` Events []*AgentEvent `protobuf:"bytes,14,rep,name=events,proto3" json:"events,omitempty"` + Environment string `protobuf:"bytes,15,opt,name=environment,proto3" json:"environment,omitempty"` + Version string `protobuf:"bytes,16,opt,name=version,proto3" json:"version,omitempty"` + AgentName string `protobuf:"bytes,17,opt,name=agent_name,json=agentName,proto3" json:"agent_name,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *AgentDeployment) Reset() { *x = AgentDeployment{} - mi := &file_livekit_cloud_agent_proto_msgTypes[5] + mi := &file_livekit_cloud_agent_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -610,7 +733,7 @@ func (x *AgentDeployment) String() string { func (*AgentDeployment) ProtoMessage() {} func (x *AgentDeployment) ProtoReflect() protoreflect.Message { - mi := &file_livekit_cloud_agent_proto_msgTypes[5] + mi := &file_livekit_cloud_agent_proto_msgTypes[7] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -623,7 +746,7 @@ func (x *AgentDeployment) ProtoReflect() protoreflect.Message { // Deprecated: Use AgentDeployment.ProtoReflect.Descriptor instead. func (*AgentDeployment) Descriptor() ([]byte, []int) { - return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{5} + return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{7} } func (x *AgentDeployment) GetRegion() string { @@ -724,6 +847,27 @@ func (x *AgentDeployment) GetEvents() []*AgentEvent { return nil } +func (x *AgentDeployment) GetEnvironment() string { + if x != nil { + return x.Environment + } + return "" +} + +func (x *AgentDeployment) GetVersion() string { + if x != nil { + return x.Version + } + return "" +} + +func (x *AgentDeployment) GetAgentName() string { + if x != nil { + return x.AgentName + } + return "" +} + type AgentInfo struct { state protoimpl.MessageState `protogen:"open.v1"` AgentId string `protobuf:"bytes,1,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty"` @@ -738,7 +882,7 @@ type AgentInfo struct { func (x *AgentInfo) Reset() { *x = AgentInfo{} - mi := &file_livekit_cloud_agent_proto_msgTypes[6] + mi := &file_livekit_cloud_agent_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -750,7 +894,7 @@ func (x *AgentInfo) String() string { func (*AgentInfo) ProtoMessage() {} func (x *AgentInfo) ProtoReflect() protoreflect.Message { - mi := &file_livekit_cloud_agent_proto_msgTypes[6] + mi := &file_livekit_cloud_agent_proto_msgTypes[8] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -763,7 +907,7 @@ func (x *AgentInfo) ProtoReflect() protoreflect.Message { // Deprecated: Use AgentInfo.ProtoReflect.Descriptor instead. func (*AgentInfo) Descriptor() ([]byte, []int) { - return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{6} + return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{8} } func (x *AgentInfo) GetAgentId() string { @@ -818,7 +962,7 @@ type ListAgentsRequest struct { func (x *ListAgentsRequest) Reset() { *x = ListAgentsRequest{} - mi := &file_livekit_cloud_agent_proto_msgTypes[7] + mi := &file_livekit_cloud_agent_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -830,7 +974,7 @@ func (x *ListAgentsRequest) String() string { func (*ListAgentsRequest) ProtoMessage() {} func (x *ListAgentsRequest) ProtoReflect() protoreflect.Message { - mi := &file_livekit_cloud_agent_proto_msgTypes[7] + mi := &file_livekit_cloud_agent_proto_msgTypes[9] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -843,7 +987,7 @@ func (x *ListAgentsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListAgentsRequest.ProtoReflect.Descriptor instead. func (*ListAgentsRequest) Descriptor() ([]byte, []int) { - return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{7} + return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{9} } func (x *ListAgentsRequest) GetAgentName() string { @@ -869,7 +1013,7 @@ type ListAgentsResponse struct { func (x *ListAgentsResponse) Reset() { *x = ListAgentsResponse{} - mi := &file_livekit_cloud_agent_proto_msgTypes[8] + mi := &file_livekit_cloud_agent_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -881,7 +1025,7 @@ func (x *ListAgentsResponse) String() string { func (*ListAgentsResponse) ProtoMessage() {} func (x *ListAgentsResponse) ProtoReflect() protoreflect.Message { - mi := &file_livekit_cloud_agent_proto_msgTypes[8] + mi := &file_livekit_cloud_agent_proto_msgTypes[10] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -894,7 +1038,7 @@ func (x *ListAgentsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListAgentsResponse.ProtoReflect.Descriptor instead. func (*ListAgentsResponse) Descriptor() ([]byte, []int) { - return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{8} + return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{10} } func (x *ListAgentsResponse) GetAgents() []*AgentInfo { @@ -914,13 +1058,14 @@ type AgentVersion struct { Status string `protobuf:"bytes,6,opt,name=status,proto3" json:"status,omitempty"` Owner string `protobuf:"bytes,7,opt,name=owner,proto3" json:"owner,omitempty"` Draining bool `protobuf:"varint,8,opt,name=draining,proto3" json:"draining,omitempty"` + Active bool `protobuf:"varint,9,opt,name=active,proto3" json:"active,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *AgentVersion) Reset() { *x = AgentVersion{} - mi := &file_livekit_cloud_agent_proto_msgTypes[9] + mi := &file_livekit_cloud_agent_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -932,7 +1077,7 @@ func (x *AgentVersion) String() string { func (*AgentVersion) ProtoMessage() {} func (x *AgentVersion) ProtoReflect() protoreflect.Message { - mi := &file_livekit_cloud_agent_proto_msgTypes[9] + mi := &file_livekit_cloud_agent_proto_msgTypes[11] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -945,7 +1090,7 @@ func (x *AgentVersion) ProtoReflect() protoreflect.Message { // Deprecated: Use AgentVersion.ProtoReflect.Descriptor instead. func (*AgentVersion) Descriptor() ([]byte, []int) { - return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{9} + return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{11} } func (x *AgentVersion) GetVersion() string { @@ -1004,6 +1149,13 @@ func (x *AgentVersion) GetDraining() bool { return false } +func (x *AgentVersion) GetActive() bool { + if x != nil { + return x.Active + } + return false +} + type ListAgentVersionsRequest struct { state protoimpl.MessageState `protogen:"open.v1"` AgentId string `protobuf:"bytes,1,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty"` @@ -1014,7 +1166,7 @@ type ListAgentVersionsRequest struct { func (x *ListAgentVersionsRequest) Reset() { *x = ListAgentVersionsRequest{} - mi := &file_livekit_cloud_agent_proto_msgTypes[10] + mi := &file_livekit_cloud_agent_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1026,7 +1178,7 @@ func (x *ListAgentVersionsRequest) String() string { func (*ListAgentVersionsRequest) ProtoMessage() {} func (x *ListAgentVersionsRequest) ProtoReflect() protoreflect.Message { - mi := &file_livekit_cloud_agent_proto_msgTypes[10] + mi := &file_livekit_cloud_agent_proto_msgTypes[12] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1039,7 +1191,7 @@ func (x *ListAgentVersionsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListAgentVersionsRequest.ProtoReflect.Descriptor instead. func (*ListAgentVersionsRequest) Descriptor() ([]byte, []int) { - return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{10} + return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{12} } func (x *ListAgentVersionsRequest) GetAgentId() string { @@ -1065,7 +1217,7 @@ type ListAgentVersionsResponse struct { func (x *ListAgentVersionsResponse) Reset() { *x = ListAgentVersionsResponse{} - mi := &file_livekit_cloud_agent_proto_msgTypes[11] + mi := &file_livekit_cloud_agent_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1077,7 +1229,7 @@ func (x *ListAgentVersionsResponse) String() string { func (*ListAgentVersionsResponse) ProtoMessage() {} func (x *ListAgentVersionsResponse) ProtoReflect() protoreflect.Message { - mi := &file_livekit_cloud_agent_proto_msgTypes[11] + mi := &file_livekit_cloud_agent_proto_msgTypes[13] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1090,7 +1242,7 @@ func (x *ListAgentVersionsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListAgentVersionsResponse.ProtoReflect.Descriptor instead. func (*ListAgentVersionsResponse) Descriptor() ([]byte, []int) { - return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{11} + return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{13} } func (x *ListAgentVersionsResponse) GetVersions() []*AgentVersion { @@ -1119,7 +1271,7 @@ type UpdateAgentRequest struct { func (x *UpdateAgentRequest) Reset() { *x = UpdateAgentRequest{} - mi := &file_livekit_cloud_agent_proto_msgTypes[12] + mi := &file_livekit_cloud_agent_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1131,7 +1283,7 @@ func (x *UpdateAgentRequest) String() string { func (*UpdateAgentRequest) ProtoMessage() {} func (x *UpdateAgentRequest) ProtoReflect() protoreflect.Message { - mi := &file_livekit_cloud_agent_proto_msgTypes[12] + mi := &file_livekit_cloud_agent_proto_msgTypes[14] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1144,7 +1296,7 @@ func (x *UpdateAgentRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateAgentRequest.ProtoReflect.Descriptor instead. func (*UpdateAgentRequest) Descriptor() ([]byte, []int) { - return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{12} + return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{14} } func (x *UpdateAgentRequest) GetAgentId() string { @@ -1210,7 +1362,7 @@ type UpdateAgentResponse struct { func (x *UpdateAgentResponse) Reset() { *x = UpdateAgentResponse{} - mi := &file_livekit_cloud_agent_proto_msgTypes[13] + mi := &file_livekit_cloud_agent_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1222,7 +1374,7 @@ func (x *UpdateAgentResponse) String() string { func (*UpdateAgentResponse) ProtoMessage() {} func (x *UpdateAgentResponse) ProtoReflect() protoreflect.Message { - mi := &file_livekit_cloud_agent_proto_msgTypes[13] + mi := &file_livekit_cloud_agent_proto_msgTypes[15] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1235,7 +1387,7 @@ func (x *UpdateAgentResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateAgentResponse.ProtoReflect.Descriptor instead. func (*UpdateAgentResponse) Descriptor() ([]byte, []int) { - return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{13} + return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{15} } func (x *UpdateAgentResponse) GetSuccess() bool { @@ -1261,7 +1413,7 @@ type RestartAgentRequest struct { func (x *RestartAgentRequest) Reset() { *x = RestartAgentRequest{} - mi := &file_livekit_cloud_agent_proto_msgTypes[14] + mi := &file_livekit_cloud_agent_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1273,7 +1425,7 @@ func (x *RestartAgentRequest) String() string { func (*RestartAgentRequest) ProtoMessage() {} func (x *RestartAgentRequest) ProtoReflect() protoreflect.Message { - mi := &file_livekit_cloud_agent_proto_msgTypes[14] + mi := &file_livekit_cloud_agent_proto_msgTypes[16] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1286,7 +1438,7 @@ func (x *RestartAgentRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use RestartAgentRequest.ProtoReflect.Descriptor instead. func (*RestartAgentRequest) Descriptor() ([]byte, []int) { - return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{14} + return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{16} } func (x *RestartAgentRequest) GetAgentId() string { @@ -1306,7 +1458,7 @@ type RestartAgentResponse struct { func (x *RestartAgentResponse) Reset() { *x = RestartAgentResponse{} - mi := &file_livekit_cloud_agent_proto_msgTypes[15] + mi := &file_livekit_cloud_agent_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1318,7 +1470,7 @@ func (x *RestartAgentResponse) String() string { func (*RestartAgentResponse) ProtoMessage() {} func (x *RestartAgentResponse) ProtoReflect() protoreflect.Message { - mi := &file_livekit_cloud_agent_proto_msgTypes[15] + mi := &file_livekit_cloud_agent_proto_msgTypes[17] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1331,7 +1483,7 @@ func (x *RestartAgentResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use RestartAgentResponse.ProtoReflect.Descriptor instead. func (*RestartAgentResponse) Descriptor() ([]byte, []int) { - return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{15} + return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{17} } func (x *RestartAgentResponse) GetSuccess() bool { @@ -1360,13 +1512,14 @@ type DeployAgentRequest struct { MaxReplicas int32 `protobuf:"varint,5,opt,name=max_replicas,json=maxReplicas,proto3" json:"max_replicas,omitempty"` // Deprecated: Marked as deprecated in livekit_cloud_agent.proto. CpuReq string `protobuf:"bytes,6,opt,name=cpu_req,json=cpuReq,proto3" json:"cpu_req,omitempty"` + Environment string `protobuf:"bytes,7,opt,name=environment,proto3" json:"environment,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *DeployAgentRequest) Reset() { *x = DeployAgentRequest{} - mi := &file_livekit_cloud_agent_proto_msgTypes[16] + mi := &file_livekit_cloud_agent_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1378,7 +1531,7 @@ func (x *DeployAgentRequest) String() string { func (*DeployAgentRequest) ProtoMessage() {} func (x *DeployAgentRequest) ProtoReflect() protoreflect.Message { - mi := &file_livekit_cloud_agent_proto_msgTypes[16] + mi := &file_livekit_cloud_agent_proto_msgTypes[18] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1391,7 +1544,7 @@ func (x *DeployAgentRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DeployAgentRequest.ProtoReflect.Descriptor instead. func (*DeployAgentRequest) Descriptor() ([]byte, []int) { - return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{16} + return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{18} } func (x *DeployAgentRequest) GetAgentId() string { @@ -1440,21 +1593,30 @@ func (x *DeployAgentRequest) GetCpuReq() string { return "" } +func (x *DeployAgentRequest) GetEnvironment() string { + if x != nil { + return x.Environment + } + return "" +} + type DeployAgentResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` - Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` - AgentId string `protobuf:"bytes,3,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty"` - PresignedUrl string `protobuf:"bytes,4,opt,name=presigned_url,json=presignedUrl,proto3" json:"presigned_url,omitempty"` - Tag string `protobuf:"bytes,5,opt,name=tag,proto3" json:"tag,omitempty"` - PresignedPostRequest *PresignedPostRequest `protobuf:"bytes,6,opt,name=presigned_post_request,json=presignedPostRequest,proto3" json:"presigned_post_request,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` + Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` + AgentId string `protobuf:"bytes,3,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty"` + // Deprecated: Marked as deprecated in livekit_cloud_agent.proto. + PresignedUrl string `protobuf:"bytes,4,opt,name=presigned_url,json=presignedUrl,proto3" json:"presigned_url,omitempty"` + Tag string `protobuf:"bytes,5,opt,name=tag,proto3" json:"tag,omitempty"` + PresignedPostRequest *PresignedPostRequest `protobuf:"bytes,6,opt,name=presigned_post_request,json=presignedPostRequest,proto3" json:"presigned_post_request,omitempty"` + Environment string `protobuf:"bytes,7,opt,name=environment,proto3" json:"environment,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *DeployAgentResponse) Reset() { *x = DeployAgentResponse{} - mi := &file_livekit_cloud_agent_proto_msgTypes[17] + mi := &file_livekit_cloud_agent_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1466,7 +1628,7 @@ func (x *DeployAgentResponse) String() string { func (*DeployAgentResponse) ProtoMessage() {} func (x *DeployAgentResponse) ProtoReflect() protoreflect.Message { - mi := &file_livekit_cloud_agent_proto_msgTypes[17] + mi := &file_livekit_cloud_agent_proto_msgTypes[19] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1479,7 +1641,7 @@ func (x *DeployAgentResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use DeployAgentResponse.ProtoReflect.Descriptor instead. func (*DeployAgentResponse) Descriptor() ([]byte, []int) { - return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{17} + return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{19} } func (x *DeployAgentResponse) GetSuccess() bool { @@ -1503,6 +1665,7 @@ func (x *DeployAgentResponse) GetAgentId() string { return "" } +// Deprecated: Marked as deprecated in livekit_cloud_agent.proto. func (x *DeployAgentResponse) GetPresignedUrl() string { if x != nil { return x.PresignedUrl @@ -1524,6 +1687,157 @@ func (x *DeployAgentResponse) GetPresignedPostRequest() *PresignedPostRequest { return nil } +func (x *DeployAgentResponse) GetEnvironment() string { + if x != nil { + return x.Environment + } + return "" +} + +type DeployAgentV2Request struct { + state protoimpl.MessageState `protogen:"open.v1"` + AgentId string `protobuf:"bytes,1,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty"` + Secrets []*AgentSecret `protobuf:"bytes,2,rep,name=secrets,proto3" json:"secrets,omitempty"` + Environment string `protobuf:"bytes,3,opt,name=environment,proto3" json:"environment,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeployAgentV2Request) Reset() { + *x = DeployAgentV2Request{} + mi := &file_livekit_cloud_agent_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeployAgentV2Request) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeployAgentV2Request) ProtoMessage() {} + +func (x *DeployAgentV2Request) ProtoReflect() protoreflect.Message { + mi := &file_livekit_cloud_agent_proto_msgTypes[20] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DeployAgentV2Request.ProtoReflect.Descriptor instead. +func (*DeployAgentV2Request) Descriptor() ([]byte, []int) { + return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{20} +} + +func (x *DeployAgentV2Request) GetAgentId() string { + if x != nil { + return x.AgentId + } + return "" +} + +func (x *DeployAgentV2Request) GetSecrets() []*AgentSecret { + if x != nil { + return x.Secrets + } + return nil +} + +func (x *DeployAgentV2Request) GetEnvironment() string { + if x != nil { + return x.Environment + } + return "" +} + +type DeployAgentV2Response struct { + state protoimpl.MessageState `protogen:"open.v1"` + Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` + Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` + AgentId string `protobuf:"bytes,3,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty"` + Tag string `protobuf:"bytes,4,opt,name=tag,proto3" json:"tag,omitempty"` + PresignedReq *PresignedPostRequest `protobuf:"bytes,5,opt,name=presigned_req,json=presignedReq,proto3" json:"presigned_req,omitempty"` + Environment string `protobuf:"bytes,6,opt,name=environment,proto3" json:"environment,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeployAgentV2Response) Reset() { + *x = DeployAgentV2Response{} + mi := &file_livekit_cloud_agent_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeployAgentV2Response) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeployAgentV2Response) ProtoMessage() {} + +func (x *DeployAgentV2Response) ProtoReflect() protoreflect.Message { + mi := &file_livekit_cloud_agent_proto_msgTypes[21] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DeployAgentV2Response.ProtoReflect.Descriptor instead. +func (*DeployAgentV2Response) Descriptor() ([]byte, []int) { + return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{21} +} + +func (x *DeployAgentV2Response) GetSuccess() bool { + if x != nil { + return x.Success + } + return false +} + +func (x *DeployAgentV2Response) GetMessage() string { + if x != nil { + return x.Message + } + return "" +} + +func (x *DeployAgentV2Response) GetAgentId() string { + if x != nil { + return x.AgentId + } + return "" +} + +func (x *DeployAgentV2Response) GetTag() string { + if x != nil { + return x.Tag + } + return "" +} + +func (x *DeployAgentV2Response) GetPresignedReq() *PresignedPostRequest { + if x != nil { + return x.PresignedReq + } + return nil +} + +func (x *DeployAgentV2Response) GetEnvironment() string { + if x != nil { + return x.Environment + } + return "" +} + type UpdateAgentSecretsRequest struct { state protoimpl.MessageState `protogen:"open.v1"` AgentId string `protobuf:"bytes,1,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty"` @@ -1537,7 +1851,7 @@ type UpdateAgentSecretsRequest struct { func (x *UpdateAgentSecretsRequest) Reset() { *x = UpdateAgentSecretsRequest{} - mi := &file_livekit_cloud_agent_proto_msgTypes[18] + mi := &file_livekit_cloud_agent_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1549,7 +1863,7 @@ func (x *UpdateAgentSecretsRequest) String() string { func (*UpdateAgentSecretsRequest) ProtoMessage() {} func (x *UpdateAgentSecretsRequest) ProtoReflect() protoreflect.Message { - mi := &file_livekit_cloud_agent_proto_msgTypes[18] + mi := &file_livekit_cloud_agent_proto_msgTypes[22] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1562,7 +1876,7 @@ func (x *UpdateAgentSecretsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateAgentSecretsRequest.ProtoReflect.Descriptor instead. func (*UpdateAgentSecretsRequest) Descriptor() ([]byte, []int) { - return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{18} + return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{22} } func (x *UpdateAgentSecretsRequest) GetAgentId() string { @@ -1610,7 +1924,7 @@ type UpdateAgentSecretsResponse struct { func (x *UpdateAgentSecretsResponse) Reset() { *x = UpdateAgentSecretsResponse{} - mi := &file_livekit_cloud_agent_proto_msgTypes[19] + mi := &file_livekit_cloud_agent_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1622,7 +1936,7 @@ func (x *UpdateAgentSecretsResponse) String() string { func (*UpdateAgentSecretsResponse) ProtoMessage() {} func (x *UpdateAgentSecretsResponse) ProtoReflect() protoreflect.Message { - mi := &file_livekit_cloud_agent_proto_msgTypes[19] + mi := &file_livekit_cloud_agent_proto_msgTypes[23] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1635,7 +1949,7 @@ func (x *UpdateAgentSecretsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateAgentSecretsResponse.ProtoReflect.Descriptor instead. func (*UpdateAgentSecretsResponse) Descriptor() ([]byte, []int) { - return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{19} + return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{23} } func (x *UpdateAgentSecretsResponse) GetSuccess() bool { @@ -1663,7 +1977,7 @@ type RollbackAgentRequest struct { func (x *RollbackAgentRequest) Reset() { *x = RollbackAgentRequest{} - mi := &file_livekit_cloud_agent_proto_msgTypes[20] + mi := &file_livekit_cloud_agent_proto_msgTypes[24] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1675,7 +1989,7 @@ func (x *RollbackAgentRequest) String() string { func (*RollbackAgentRequest) ProtoMessage() {} func (x *RollbackAgentRequest) ProtoReflect() protoreflect.Message { - mi := &file_livekit_cloud_agent_proto_msgTypes[20] + mi := &file_livekit_cloud_agent_proto_msgTypes[24] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1688,7 +2002,7 @@ func (x *RollbackAgentRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use RollbackAgentRequest.ProtoReflect.Descriptor instead. func (*RollbackAgentRequest) Descriptor() ([]byte, []int) { - return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{20} + return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{24} } func (x *RollbackAgentRequest) GetAgentId() string { @@ -1722,7 +2036,7 @@ type RollbackAgentResponse struct { func (x *RollbackAgentResponse) Reset() { *x = RollbackAgentResponse{} - mi := &file_livekit_cloud_agent_proto_msgTypes[21] + mi := &file_livekit_cloud_agent_proto_msgTypes[25] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1734,7 +2048,7 @@ func (x *RollbackAgentResponse) String() string { func (*RollbackAgentResponse) ProtoMessage() {} func (x *RollbackAgentResponse) ProtoReflect() protoreflect.Message { - mi := &file_livekit_cloud_agent_proto_msgTypes[21] + mi := &file_livekit_cloud_agent_proto_msgTypes[25] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1747,7 +2061,7 @@ func (x *RollbackAgentResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use RollbackAgentResponse.ProtoReflect.Descriptor instead. func (*RollbackAgentResponse) Descriptor() ([]byte, []int) { - return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{21} + return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{25} } func (x *RollbackAgentResponse) GetSuccess() bool { @@ -1768,13 +2082,14 @@ type DeleteAgentRequest struct { state protoimpl.MessageState `protogen:"open.v1"` AgentId string `protobuf:"bytes,1,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty"` AgentName string `protobuf:"bytes,2,opt,name=agent_name,json=agentName,proto3" json:"agent_name,omitempty"` + Environment string `protobuf:"bytes,3,opt,name=environment,proto3" json:"environment,omitempty"` // optional unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *DeleteAgentRequest) Reset() { *x = DeleteAgentRequest{} - mi := &file_livekit_cloud_agent_proto_msgTypes[22] + mi := &file_livekit_cloud_agent_proto_msgTypes[26] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1786,7 +2101,7 @@ func (x *DeleteAgentRequest) String() string { func (*DeleteAgentRequest) ProtoMessage() {} func (x *DeleteAgentRequest) ProtoReflect() protoreflect.Message { - mi := &file_livekit_cloud_agent_proto_msgTypes[22] + mi := &file_livekit_cloud_agent_proto_msgTypes[26] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1799,7 +2114,7 @@ func (x *DeleteAgentRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteAgentRequest.ProtoReflect.Descriptor instead. func (*DeleteAgentRequest) Descriptor() ([]byte, []int) { - return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{22} + return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{26} } func (x *DeleteAgentRequest) GetAgentId() string { @@ -1816,6 +2131,13 @@ func (x *DeleteAgentRequest) GetAgentName() string { return "" } +func (x *DeleteAgentRequest) GetEnvironment() string { + if x != nil { + return x.Environment + } + return "" +} + type DeleteAgentResponse struct { state protoimpl.MessageState `protogen:"open.v1"` Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` @@ -1826,7 +2148,7 @@ type DeleteAgentResponse struct { func (x *DeleteAgentResponse) Reset() { *x = DeleteAgentResponse{} - mi := &file_livekit_cloud_agent_proto_msgTypes[23] + mi := &file_livekit_cloud_agent_proto_msgTypes[27] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1838,7 +2160,7 @@ func (x *DeleteAgentResponse) String() string { func (*DeleteAgentResponse) ProtoMessage() {} func (x *DeleteAgentResponse) ProtoReflect() protoreflect.Message { - mi := &file_livekit_cloud_agent_proto_msgTypes[23] + mi := &file_livekit_cloud_agent_proto_msgTypes[27] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1851,7 +2173,7 @@ func (x *DeleteAgentResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteAgentResponse.ProtoReflect.Descriptor instead. func (*DeleteAgentResponse) Descriptor() ([]byte, []int) { - return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{23} + return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{27} } func (x *DeleteAgentResponse) GetSuccess() bool { @@ -1878,7 +2200,7 @@ type ListAgentSecretsRequest struct { func (x *ListAgentSecretsRequest) Reset() { *x = ListAgentSecretsRequest{} - mi := &file_livekit_cloud_agent_proto_msgTypes[24] + mi := &file_livekit_cloud_agent_proto_msgTypes[28] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1890,7 +2212,7 @@ func (x *ListAgentSecretsRequest) String() string { func (*ListAgentSecretsRequest) ProtoMessage() {} func (x *ListAgentSecretsRequest) ProtoReflect() protoreflect.Message { - mi := &file_livekit_cloud_agent_proto_msgTypes[24] + mi := &file_livekit_cloud_agent_proto_msgTypes[28] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1903,7 +2225,7 @@ func (x *ListAgentSecretsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListAgentSecretsRequest.ProtoReflect.Descriptor instead. func (*ListAgentSecretsRequest) Descriptor() ([]byte, []int) { - return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{24} + return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{28} } func (x *ListAgentSecretsRequest) GetAgentId() string { @@ -1929,7 +2251,7 @@ type ListAgentSecretsResponse struct { func (x *ListAgentSecretsResponse) Reset() { *x = ListAgentSecretsResponse{} - mi := &file_livekit_cloud_agent_proto_msgTypes[25] + mi := &file_livekit_cloud_agent_proto_msgTypes[29] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1941,7 +2263,7 @@ func (x *ListAgentSecretsResponse) String() string { func (*ListAgentSecretsResponse) ProtoMessage() {} func (x *ListAgentSecretsResponse) ProtoReflect() protoreflect.Message { - mi := &file_livekit_cloud_agent_proto_msgTypes[25] + mi := &file_livekit_cloud_agent_proto_msgTypes[29] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1954,7 +2276,7 @@ func (x *ListAgentSecretsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListAgentSecretsResponse.ProtoReflect.Descriptor instead. func (*ListAgentSecretsResponse) Descriptor() ([]byte, []int) { - return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{25} + return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{29} } func (x *ListAgentSecretsResponse) GetSecrets() []*AgentSecret { @@ -1974,7 +2296,7 @@ type SettingsParam struct { func (x *SettingsParam) Reset() { *x = SettingsParam{} - mi := &file_livekit_cloud_agent_proto_msgTypes[26] + mi := &file_livekit_cloud_agent_proto_msgTypes[30] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1986,7 +2308,7 @@ func (x *SettingsParam) String() string { func (*SettingsParam) ProtoMessage() {} func (x *SettingsParam) ProtoReflect() protoreflect.Message { - mi := &file_livekit_cloud_agent_proto_msgTypes[26] + mi := &file_livekit_cloud_agent_proto_msgTypes[30] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1999,7 +2321,7 @@ func (x *SettingsParam) ProtoReflect() protoreflect.Message { // Deprecated: Use SettingsParam.ProtoReflect.Descriptor instead. func (*SettingsParam) Descriptor() ([]byte, []int) { - return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{26} + return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{30} } func (x *SettingsParam) GetName() string { @@ -2025,7 +2347,7 @@ type ClientSettingsResponse struct { func (x *ClientSettingsResponse) Reset() { *x = ClientSettingsResponse{} - mi := &file_livekit_cloud_agent_proto_msgTypes[27] + mi := &file_livekit_cloud_agent_proto_msgTypes[31] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2037,7 +2359,7 @@ func (x *ClientSettingsResponse) String() string { func (*ClientSettingsResponse) ProtoMessage() {} func (x *ClientSettingsResponse) ProtoReflect() protoreflect.Message { - mi := &file_livekit_cloud_agent_proto_msgTypes[27] + mi := &file_livekit_cloud_agent_proto_msgTypes[31] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2050,7 +2372,7 @@ func (x *ClientSettingsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ClientSettingsResponse.ProtoReflect.Descriptor instead. func (*ClientSettingsResponse) Descriptor() ([]byte, []int) { - return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{27} + return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{31} } func (x *ClientSettingsResponse) GetParams() []*SettingsParam { @@ -2068,7 +2390,7 @@ type ClientSettingsRequest struct { func (x *ClientSettingsRequest) Reset() { *x = ClientSettingsRequest{} - mi := &file_livekit_cloud_agent_proto_msgTypes[28] + mi := &file_livekit_cloud_agent_proto_msgTypes[32] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2080,7 +2402,7 @@ func (x *ClientSettingsRequest) String() string { func (*ClientSettingsRequest) ProtoMessage() {} func (x *ClientSettingsRequest) ProtoReflect() protoreflect.Message { - mi := &file_livekit_cloud_agent_proto_msgTypes[28] + mi := &file_livekit_cloud_agent_proto_msgTypes[32] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2093,7 +2415,7 @@ func (x *ClientSettingsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ClientSettingsRequest.ProtoReflect.Descriptor instead. func (*ClientSettingsRequest) Descriptor() ([]byte, []int) { - return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{28} + return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{32} } type PrivateLink struct { @@ -2115,7 +2437,7 @@ type PrivateLink struct { func (x *PrivateLink) Reset() { *x = PrivateLink{} - mi := &file_livekit_cloud_agent_proto_msgTypes[29] + mi := &file_livekit_cloud_agent_proto_msgTypes[33] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2127,7 +2449,7 @@ func (x *PrivateLink) String() string { func (*PrivateLink) ProtoMessage() {} func (x *PrivateLink) ProtoReflect() protoreflect.Message { - mi := &file_livekit_cloud_agent_proto_msgTypes[29] + mi := &file_livekit_cloud_agent_proto_msgTypes[33] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2140,7 +2462,7 @@ func (x *PrivateLink) ProtoReflect() protoreflect.Message { // Deprecated: Use PrivateLink.ProtoReflect.Descriptor instead. func (*PrivateLink) Descriptor() ([]byte, []int) { - return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{29} + return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{33} } func (x *PrivateLink) GetPrivateLinkId() string { @@ -2231,7 +2553,7 @@ type PrivateLinkStatus struct { func (x *PrivateLinkStatus) Reset() { *x = PrivateLinkStatus{} - mi := &file_livekit_cloud_agent_proto_msgTypes[30] + mi := &file_livekit_cloud_agent_proto_msgTypes[34] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2243,7 +2565,7 @@ func (x *PrivateLinkStatus) String() string { func (*PrivateLinkStatus) ProtoMessage() {} func (x *PrivateLinkStatus) ProtoReflect() protoreflect.Message { - mi := &file_livekit_cloud_agent_proto_msgTypes[30] + mi := &file_livekit_cloud_agent_proto_msgTypes[34] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2256,7 +2578,7 @@ func (x *PrivateLinkStatus) ProtoReflect() protoreflect.Message { // Deprecated: Use PrivateLinkStatus.ProtoReflect.Descriptor instead. func (*PrivateLinkStatus) Descriptor() ([]byte, []int) { - return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{30} + return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{34} } func (x *PrivateLinkStatus) GetStatus() PrivateLinkStatus_Status { @@ -2297,7 +2619,7 @@ type CreatePrivateLinkRequest struct { func (x *CreatePrivateLinkRequest) Reset() { *x = CreatePrivateLinkRequest{} - mi := &file_livekit_cloud_agent_proto_msgTypes[31] + mi := &file_livekit_cloud_agent_proto_msgTypes[35] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2309,7 +2631,7 @@ func (x *CreatePrivateLinkRequest) String() string { func (*CreatePrivateLinkRequest) ProtoMessage() {} func (x *CreatePrivateLinkRequest) ProtoReflect() protoreflect.Message { - mi := &file_livekit_cloud_agent_proto_msgTypes[31] + mi := &file_livekit_cloud_agent_proto_msgTypes[35] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2322,7 +2644,7 @@ func (x *CreatePrivateLinkRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use CreatePrivateLinkRequest.ProtoReflect.Descriptor instead. func (*CreatePrivateLinkRequest) Descriptor() ([]byte, []int) { - return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{31} + return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{35} } func (x *CreatePrivateLinkRequest) GetName() string { @@ -2397,7 +2719,7 @@ type CreatePrivateLinkResponse struct { func (x *CreatePrivateLinkResponse) Reset() { *x = CreatePrivateLinkResponse{} - mi := &file_livekit_cloud_agent_proto_msgTypes[32] + mi := &file_livekit_cloud_agent_proto_msgTypes[36] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2409,7 +2731,7 @@ func (x *CreatePrivateLinkResponse) String() string { func (*CreatePrivateLinkResponse) ProtoMessage() {} func (x *CreatePrivateLinkResponse) ProtoReflect() protoreflect.Message { - mi := &file_livekit_cloud_agent_proto_msgTypes[32] + mi := &file_livekit_cloud_agent_proto_msgTypes[36] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2422,7 +2744,7 @@ func (x *CreatePrivateLinkResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use CreatePrivateLinkResponse.ProtoReflect.Descriptor instead. func (*CreatePrivateLinkResponse) Descriptor() ([]byte, []int) { - return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{32} + return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{36} } func (x *CreatePrivateLinkResponse) GetPrivateLink() *PrivateLink { @@ -2441,7 +2763,7 @@ type DestroyPrivateLinkRequest struct { func (x *DestroyPrivateLinkRequest) Reset() { *x = DestroyPrivateLinkRequest{} - mi := &file_livekit_cloud_agent_proto_msgTypes[33] + mi := &file_livekit_cloud_agent_proto_msgTypes[37] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2453,7 +2775,7 @@ func (x *DestroyPrivateLinkRequest) String() string { func (*DestroyPrivateLinkRequest) ProtoMessage() {} func (x *DestroyPrivateLinkRequest) ProtoReflect() protoreflect.Message { - mi := &file_livekit_cloud_agent_proto_msgTypes[33] + mi := &file_livekit_cloud_agent_proto_msgTypes[37] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2466,7 +2788,7 @@ func (x *DestroyPrivateLinkRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DestroyPrivateLinkRequest.ProtoReflect.Descriptor instead. func (*DestroyPrivateLinkRequest) Descriptor() ([]byte, []int) { - return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{33} + return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{37} } func (x *DestroyPrivateLinkRequest) GetPrivateLinkId() string { @@ -2484,7 +2806,7 @@ type DestroyPrivateLinkResponse struct { func (x *DestroyPrivateLinkResponse) Reset() { *x = DestroyPrivateLinkResponse{} - mi := &file_livekit_cloud_agent_proto_msgTypes[34] + mi := &file_livekit_cloud_agent_proto_msgTypes[38] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2496,7 +2818,7 @@ func (x *DestroyPrivateLinkResponse) String() string { func (*DestroyPrivateLinkResponse) ProtoMessage() {} func (x *DestroyPrivateLinkResponse) ProtoReflect() protoreflect.Message { - mi := &file_livekit_cloud_agent_proto_msgTypes[34] + mi := &file_livekit_cloud_agent_proto_msgTypes[38] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2509,7 +2831,7 @@ func (x *DestroyPrivateLinkResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use DestroyPrivateLinkResponse.ProtoReflect.Descriptor instead. func (*DestroyPrivateLinkResponse) Descriptor() ([]byte, []int) { - return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{34} + return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{38} } type ListPrivateLinksRequest struct { @@ -2520,7 +2842,7 @@ type ListPrivateLinksRequest struct { func (x *ListPrivateLinksRequest) Reset() { *x = ListPrivateLinksRequest{} - mi := &file_livekit_cloud_agent_proto_msgTypes[35] + mi := &file_livekit_cloud_agent_proto_msgTypes[39] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2532,7 +2854,7 @@ func (x *ListPrivateLinksRequest) String() string { func (*ListPrivateLinksRequest) ProtoMessage() {} func (x *ListPrivateLinksRequest) ProtoReflect() protoreflect.Message { - mi := &file_livekit_cloud_agent_proto_msgTypes[35] + mi := &file_livekit_cloud_agent_proto_msgTypes[39] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2545,7 +2867,7 @@ func (x *ListPrivateLinksRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListPrivateLinksRequest.ProtoReflect.Descriptor instead. func (*ListPrivateLinksRequest) Descriptor() ([]byte, []int) { - return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{35} + return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{39} } type ListPrivateLinksResponse struct { @@ -2557,7 +2879,7 @@ type ListPrivateLinksResponse struct { func (x *ListPrivateLinksResponse) Reset() { *x = ListPrivateLinksResponse{} - mi := &file_livekit_cloud_agent_proto_msgTypes[36] + mi := &file_livekit_cloud_agent_proto_msgTypes[40] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2569,7 +2891,7 @@ func (x *ListPrivateLinksResponse) String() string { func (*ListPrivateLinksResponse) ProtoMessage() {} func (x *ListPrivateLinksResponse) ProtoReflect() protoreflect.Message { - mi := &file_livekit_cloud_agent_proto_msgTypes[36] + mi := &file_livekit_cloud_agent_proto_msgTypes[40] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2582,7 +2904,7 @@ func (x *ListPrivateLinksResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListPrivateLinksResponse.ProtoReflect.Descriptor instead. func (*ListPrivateLinksResponse) Descriptor() ([]byte, []int) { - return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{36} + return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{40} } func (x *ListPrivateLinksResponse) GetItems() []*PrivateLink { @@ -2601,7 +2923,7 @@ type GetPrivateLinkStatusRequest struct { func (x *GetPrivateLinkStatusRequest) Reset() { *x = GetPrivateLinkStatusRequest{} - mi := &file_livekit_cloud_agent_proto_msgTypes[37] + mi := &file_livekit_cloud_agent_proto_msgTypes[41] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2613,7 +2935,7 @@ func (x *GetPrivateLinkStatusRequest) String() string { func (*GetPrivateLinkStatusRequest) ProtoMessage() {} func (x *GetPrivateLinkStatusRequest) ProtoReflect() protoreflect.Message { - mi := &file_livekit_cloud_agent_proto_msgTypes[37] + mi := &file_livekit_cloud_agent_proto_msgTypes[41] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2626,7 +2948,7 @@ func (x *GetPrivateLinkStatusRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetPrivateLinkStatusRequest.ProtoReflect.Descriptor instead. func (*GetPrivateLinkStatusRequest) Descriptor() ([]byte, []int) { - return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{37} + return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{41} } func (x *GetPrivateLinkStatusRequest) GetPrivateLinkId() string { @@ -2645,7 +2967,7 @@ type GetPrivateLinkStatusResponse struct { func (x *GetPrivateLinkStatusResponse) Reset() { *x = GetPrivateLinkStatusResponse{} - mi := &file_livekit_cloud_agent_proto_msgTypes[38] + mi := &file_livekit_cloud_agent_proto_msgTypes[42] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2657,7 +2979,7 @@ func (x *GetPrivateLinkStatusResponse) String() string { func (*GetPrivateLinkStatusResponse) ProtoMessage() {} func (x *GetPrivateLinkStatusResponse) ProtoReflect() protoreflect.Message { - mi := &file_livekit_cloud_agent_proto_msgTypes[38] + mi := &file_livekit_cloud_agent_proto_msgTypes[42] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2670,7 +2992,7 @@ func (x *GetPrivateLinkStatusResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetPrivateLinkStatusResponse.ProtoReflect.Descriptor instead. func (*GetPrivateLinkStatusResponse) Descriptor() ([]byte, []int) { - return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{38} + return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{42} } func (x *GetPrivateLinkStatusResponse) GetValue() *PrivateLinkStatus { @@ -2690,7 +3012,7 @@ type PrivateLink_AWSConfig struct { func (x *PrivateLink_AWSConfig) Reset() { *x = PrivateLink_AWSConfig{} - mi := &file_livekit_cloud_agent_proto_msgTypes[41] + mi := &file_livekit_cloud_agent_proto_msgTypes[45] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2702,7 +3024,7 @@ func (x *PrivateLink_AWSConfig) String() string { func (*PrivateLink_AWSConfig) ProtoMessage() {} func (x *PrivateLink_AWSConfig) ProtoReflect() protoreflect.Message { - mi := &file_livekit_cloud_agent_proto_msgTypes[41] + mi := &file_livekit_cloud_agent_proto_msgTypes[45] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2715,7 +3037,7 @@ func (x *PrivateLink_AWSConfig) ProtoReflect() protoreflect.Message { // Deprecated: Use PrivateLink_AWSConfig.ProtoReflect.Descriptor instead. func (*PrivateLink_AWSConfig) Descriptor() ([]byte, []int) { - return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{29, 0} + return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{33, 0} } // Deprecated: Marked as deprecated in livekit_cloud_agent.proto. @@ -2736,7 +3058,7 @@ type CreatePrivateLinkRequest_AWSCreateConfig struct { func (x *CreatePrivateLinkRequest_AWSCreateConfig) Reset() { *x = CreatePrivateLinkRequest_AWSCreateConfig{} - mi := &file_livekit_cloud_agent_proto_msgTypes[42] + mi := &file_livekit_cloud_agent_proto_msgTypes[46] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2748,7 +3070,7 @@ func (x *CreatePrivateLinkRequest_AWSCreateConfig) String() string { func (*CreatePrivateLinkRequest_AWSCreateConfig) ProtoMessage() {} func (x *CreatePrivateLinkRequest_AWSCreateConfig) ProtoReflect() protoreflect.Message { - mi := &file_livekit_cloud_agent_proto_msgTypes[42] + mi := &file_livekit_cloud_agent_proto_msgTypes[46] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2761,7 +3083,7 @@ func (x *CreatePrivateLinkRequest_AWSCreateConfig) ProtoReflect() protoreflect.M // Deprecated: Use CreatePrivateLinkRequest_AWSCreateConfig.ProtoReflect.Descriptor instead. func (*CreatePrivateLinkRequest_AWSCreateConfig) Descriptor() ([]byte, []int) { - return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{31, 0} + return file_livekit_cloud_agent_proto_rawDescGZIP(), []int{35, 0} } // Deprecated: Marked as deprecated in livekit_cloud_agent.proto. @@ -2781,7 +3103,7 @@ const file_livekit_cloud_agent_proto_rawDesc = "" + "AgentEvent\x12+\n" + "\x04type\x18\x01 \x01(\x0e2\x17.livekit.AgentEventTypeR\x04type\x12\x14\n" + "\x05count\x18\x02 \x01(\x05R\x05count\x128\n" + - "\ttimestamp\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\ttimestamp\"\xdb\x01\n" + + "\ttimestamp\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\ttimestamp\"\xff\x01\n" + "\vAgentSecret\x12\x12\n" + "\x04name\x18\x01 \x01(\tR\x04name\x12\x14\n" + "\x05value\x18\x02 \x01(\fR\x05value\x129\n" + @@ -2789,7 +3111,8 @@ const file_livekit_cloud_agent_proto_rawDesc = "" + "created_at\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x129\n" + "\n" + "updated_at\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampR\tupdatedAt\x12,\n" + - "\x04kind\x18\x05 \x01(\x0e2\x18.livekit.AgentSecretKindR\x04kind\"\xe5\x01\n" + + "\x04kind\x18\x05 \x01(\x0e2\x18.livekit.AgentSecretKindR\x04kind\x12\"\n" + + "\fenvironments\x18\x06 \x03(\tR\fenvironments\"\xe5\x01\n" + "\x12CreateAgentRequest\x12!\n" + "\n" + "agent_name\x18\x01 \x01(\tB\x02\x18\x01R\tagentName\x12.\n" + @@ -2808,13 +3131,21 @@ const file_livekit_cloud_agent_proto_rawDesc = "" + "\rpresigned_url\x18\x05 \x01(\tR\fpresignedUrl\x12\x10\n" + "\x03tag\x18\x06 \x01(\tR\x03tag\x12%\n" + "\x0eserver_regions\x18\a \x03(\tR\rserverRegions\x12S\n" + - "\x16presigned_post_request\x18\b \x01(\v2\x1d.livekit.PresignedPostRequestR\x14presignedPostRequest\"\xa6\x01\n" + + "\x16presigned_post_request\x18\b \x01(\v2\x1d.livekit.PresignedPostRequestR\x14presignedPostRequest\"`\n" + + "\x14CreateAgentV2Request\x12.\n" + + "\asecrets\x18\x01 \x03(\v2\x14.livekit.AgentSecretR\asecrets\x12\x18\n" + + "\aregions\x18\x02 \x03(\tR\aregions\"}\n" + + "\x15CreateAgentV2Response\x12%\n" + + "\bagent_id\x18\x01 \x01(\tB\n" + + "\xbaP\aagentIDR\aagentId\x12\x16\n" + + "\x06status\x18\x02 \x01(\tR\x06status\x12%\n" + + "\x0eserver_regions\x18\x03 \x03(\tR\rserverRegions\"\xa6\x01\n" + "\x14PresignedPostRequest\x12\x10\n" + "\x03url\x18\x01 \x01(\tR\x03url\x12A\n" + "\x06values\x18\x02 \x03(\v2).livekit.PresignedPostRequest.ValuesEntryR\x06values\x1a9\n" + "\vValuesEntry\x12\x10\n" + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + - "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\xba\x03\n" + + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\x95\x04\n" + "\x0fAgentDeployment\x12\x16\n" + "\x06region\x18\x01 \x01(\tR\x06region\x12%\n" + "\bagent_id\x18\x02 \x01(\tB\n" + @@ -2831,7 +3162,11 @@ const file_livekit_cloud_agent_proto_rawDesc = "" + "\tmem_limit\x18\v \x01(\tR\bmemLimit\x12\x1b\n" + "\tcpu_limit\x18\f \x01(\tR\bcpuLimit\x12#\n" + "\rserver_region\x18\r \x01(\tR\fserverRegion\x12+\n" + - "\x06events\x18\x0e \x03(\v2\x13.livekit.AgentEventR\x06events\"\x9f\x02\n" + + "\x06events\x18\x0e \x03(\v2\x13.livekit.AgentEventR\x06events\x12 \n" + + "\venvironment\x18\x0f \x01(\tR\venvironment\x12\x18\n" + + "\aversion\x18\x10 \x01(\tR\aversion\x12\x1d\n" + + "\n" + + "agent_name\x18\x11 \x01(\tR\tagentName\"\x9f\x02\n" + "\tAgentInfo\x12%\n" + "\bagent_id\x18\x01 \x01(\tB\n" + "\xbaP\aagentIDR\aagentId\x12\x1d\n" + @@ -2848,7 +3183,7 @@ const file_livekit_cloud_agent_proto_rawDesc = "" + "\bagent_id\x18\x02 \x01(\tB\n" + "\xbaP\aagentIDR\aagentId\"@\n" + "\x12ListAgentsResponse\x12*\n" + - "\x06agents\x18\x01 \x03(\v2\x12.livekit.AgentInfoR\x06agents\"\x8a\x03\n" + + "\x06agents\x18\x01 \x03(\v2\x12.livekit.AgentInfoR\x06agents\"\xa2\x03\n" + "\fAgentVersion\x12\x18\n" + "\aversion\x18\x01 \x01(\tR\aversion\x12\x18\n" + "\acurrent\x18\x02 \x01(\bR\acurrent\x129\n" + @@ -2861,7 +3196,8 @@ const file_livekit_cloud_agent_proto_rawDesc = "" + "attributes\x12\x16\n" + "\x06status\x18\x06 \x01(\tR\x06status\x12\x14\n" + "\x05owner\x18\a \x01(\tR\x05owner\x12\x1a\n" + - "\bdraining\x18\b \x01(\bR\bdraining\x1a=\n" + + "\bdraining\x18\b \x01(\bR\bdraining\x12\x16\n" + + "\x06active\x18\t \x01(\bR\x06active\x1a=\n" + "\x0fAttributesEntry\x12\x10\n" + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"`\n" + @@ -2890,7 +3226,7 @@ const file_livekit_cloud_agent_proto_rawDesc = "" + "\xbaP\aagentIDR\aagentId\"J\n" + "\x14RestartAgentResponse\x12\x18\n" + "\asuccess\x18\x01 \x01(\bR\asuccess\x12\x18\n" + - "\amessage\x18\x02 \x01(\tR\amessage\"\xf2\x01\n" + + "\amessage\x18\x02 \x01(\tR\amessage\"\x94\x02\n" + "\x12DeployAgentRequest\x12%\n" + "\bagent_id\x18\x01 \x01(\tB\n" + "\xbaP\aagentIDR\aagentId\x12!\n" + @@ -2899,15 +3235,30 @@ const file_livekit_cloud_agent_proto_rawDesc = "" + "\asecrets\x18\x03 \x03(\v2\x14.livekit.AgentSecretR\asecrets\x12\x1e\n" + "\breplicas\x18\x04 \x01(\x05B\x02\x18\x01R\breplicas\x12%\n" + "\fmax_replicas\x18\x05 \x01(\x05B\x02\x18\x01R\vmaxReplicas\x12\x1b\n" + - "\acpu_req\x18\x06 \x01(\tB\x02\x18\x01R\x06cpuReq\"\xfc\x01\n" + + "\acpu_req\x18\x06 \x01(\tB\x02\x18\x01R\x06cpuReq\x12 \n" + + "\venvironment\x18\a \x01(\tR\venvironment\"\xa2\x02\n" + "\x13DeployAgentResponse\x12\x18\n" + "\asuccess\x18\x01 \x01(\bR\asuccess\x12\x18\n" + "\amessage\x18\x02 \x01(\tR\amessage\x12%\n" + "\bagent_id\x18\x03 \x01(\tB\n" + - "\xbaP\aagentIDR\aagentId\x12#\n" + - "\rpresigned_url\x18\x04 \x01(\tR\fpresignedUrl\x12\x10\n" + + "\xbaP\aagentIDR\aagentId\x12'\n" + + "\rpresigned_url\x18\x04 \x01(\tB\x02\x18\x01R\fpresignedUrl\x12\x10\n" + "\x03tag\x18\x05 \x01(\tR\x03tag\x12S\n" + - "\x16presigned_post_request\x18\x06 \x01(\v2\x1d.livekit.PresignedPostRequestR\x14presignedPostRequest\"\xc7\x01\n" + + "\x16presigned_post_request\x18\x06 \x01(\v2\x1d.livekit.PresignedPostRequestR\x14presignedPostRequest\x12 \n" + + "\venvironment\x18\a \x01(\tR\venvironment\"\x8f\x01\n" + + "\x14DeployAgentV2Request\x12%\n" + + "\bagent_id\x18\x01 \x01(\tB\n" + + "\xbaP\aagentIDR\aagentId\x12.\n" + + "\asecrets\x18\x02 \x03(\v2\x14.livekit.AgentSecretR\asecrets\x12 \n" + + "\venvironment\x18\x03 \x01(\tR\venvironment\"\xea\x01\n" + + "\x15DeployAgentV2Response\x12\x18\n" + + "\asuccess\x18\x01 \x01(\bR\asuccess\x12\x18\n" + + "\amessage\x18\x02 \x01(\tR\amessage\x12%\n" + + "\bagent_id\x18\x03 \x01(\tB\n" + + "\xbaP\aagentIDR\aagentId\x12\x10\n" + + "\x03tag\x18\x04 \x01(\tR\x03tag\x12B\n" + + "\rpresigned_req\x18\x05 \x01(\v2\x1d.livekit.PresignedPostRequestR\fpresignedReq\x12 \n" + + "\venvironment\x18\x06 \x01(\tR\venvironment\"\xc7\x01\n" + "\x19UpdateAgentSecretsRequest\x12%\n" + "\bagent_id\x18\x01 \x01(\tB\n" + "\xbaP\aagentIDR\aagentId\x12\x1d\n" + @@ -2927,12 +3278,13 @@ const file_livekit_cloud_agent_proto_rawDesc = "" + "\aversion\x18\x03 \x01(\tR\aversion\"K\n" + "\x15RollbackAgentResponse\x12\x18\n" + "\asuccess\x18\x01 \x01(\bR\asuccess\x12\x18\n" + - "\amessage\x18\x02 \x01(\tR\amessage\"Z\n" + + "\amessage\x18\x02 \x01(\tR\amessage\"|\n" + "\x12DeleteAgentRequest\x12%\n" + "\bagent_id\x18\x01 \x01(\tB\n" + "\xbaP\aagentIDR\aagentId\x12\x1d\n" + "\n" + - "agent_name\x18\x02 \x01(\tR\tagentName\"I\n" + + "agent_name\x18\x02 \x01(\tR\tagentName\x12 \n" + + "\venvironment\x18\x03 \x01(\tR\venvironment\"I\n" + "\x13DeleteAgentResponse\x12\x18\n" + "\asuccess\x18\x01 \x01(\bR\asuccess\x12\x18\n" + "\amessage\x18\x02 \x01(\tR\amessage\"_\n" + @@ -3004,18 +3356,19 @@ const file_livekit_cloud_agent_proto_rawDesc = "" + "\x18AGENT_EVENT_TYPE_UNKNOWN\x10\x00\x12(\n" + "$AGENT_EVENT_TYPE_APPLICATION_CRASHED\x10\x01\x12.\n" + "*AGENT_EVENT_TYPE_RESTARTED_HIGH_DISK_USAGE\x10\x02\x120\n" + - ",AGENT_EVENT_TYPE_RESTARTED_HIGH_MEMORY_USAGE\x10\x032\x99\n" + - "\n" + + ",AGENT_EVENT_TYPE_RESTARTED_HIGH_MEMORY_USAGE\x10\x032\xbd\v\n" + "\n" + "CloudAgent\x12J\n" + - "\vCreateAgent\x12\x1b.livekit.CreateAgentRequest\x1a\x1c.livekit.CreateAgentResponse\"\x00\x12G\n" + + "\vCreateAgent\x12\x1b.livekit.CreateAgentRequest\x1a\x1c.livekit.CreateAgentResponse\"\x00\x12P\n" + + "\rCreateAgentV2\x12\x1d.livekit.CreateAgentV2Request\x1a\x1e.livekit.CreateAgentV2Response\"\x00\x12G\n" + "\n" + "ListAgents\x12\x1a.livekit.ListAgentsRequest\x1a\x1b.livekit.ListAgentsResponse\"\x00\x12\\\n" + "\x11ListAgentVersions\x12!.livekit.ListAgentVersionsRequest\x1a\".livekit.ListAgentVersionsResponse\"\x00\x12Y\n" + "\x10ListAgentSecrets\x12 .livekit.ListAgentSecretsRequest\x1a!.livekit.ListAgentSecretsResponse\"\x00\x12J\n" + "\vUpdateAgent\x12\x1b.livekit.UpdateAgentRequest\x1a\x1c.livekit.UpdateAgentResponse\"\x00\x12M\n" + "\fRestartAgent\x12\x1c.livekit.RestartAgentRequest\x1a\x1d.livekit.RestartAgentResponse\"\x00\x12J\n" + - "\vDeployAgent\x12\x1b.livekit.DeployAgentRequest\x1a\x1c.livekit.DeployAgentResponse\"\x00\x12_\n" + + "\vDeployAgent\x12\x1b.livekit.DeployAgentRequest\x1a\x1c.livekit.DeployAgentResponse\"\x00\x12P\n" + + "\rDeployAgentV2\x12\x1d.livekit.DeployAgentV2Request\x1a\x1e.livekit.DeployAgentV2Response\"\x00\x12_\n" + "\x12UpdateAgentSecrets\x12\".livekit.UpdateAgentSecretsRequest\x1a#.livekit.UpdateAgentSecretsResponse\"\x00\x12P\n" + "\rRollbackAgent\x12\x1d.livekit.RollbackAgentRequest\x1a\x1e.livekit.RollbackAgentResponse\"\x00\x12J\n" + "\vDeleteAgent\x12\x1b.livekit.DeleteAgentRequest\x1a\x1c.livekit.DeleteAgentResponse\"\x00\x12V\n" + @@ -3038,7 +3391,7 @@ func file_livekit_cloud_agent_proto_rawDescGZIP() []byte { } var file_livekit_cloud_agent_proto_enumTypes = make([]protoimpl.EnumInfo, 3) -var file_livekit_cloud_agent_proto_msgTypes = make([]protoimpl.MessageInfo, 43) +var file_livekit_cloud_agent_proto_msgTypes = make([]protoimpl.MessageInfo, 47) var file_livekit_cloud_agent_proto_goTypes = []any{ (AgentSecretKind)(0), // 0: livekit.AgentSecretKind (AgentEventType)(0), // 1: livekit.AgentEventType @@ -3047,113 +3400,124 @@ var file_livekit_cloud_agent_proto_goTypes = []any{ (*AgentSecret)(nil), // 4: livekit.AgentSecret (*CreateAgentRequest)(nil), // 5: livekit.CreateAgentRequest (*CreateAgentResponse)(nil), // 6: livekit.CreateAgentResponse - (*PresignedPostRequest)(nil), // 7: livekit.PresignedPostRequest - (*AgentDeployment)(nil), // 8: livekit.AgentDeployment - (*AgentInfo)(nil), // 9: livekit.AgentInfo - (*ListAgentsRequest)(nil), // 10: livekit.ListAgentsRequest - (*ListAgentsResponse)(nil), // 11: livekit.ListAgentsResponse - (*AgentVersion)(nil), // 12: livekit.AgentVersion - (*ListAgentVersionsRequest)(nil), // 13: livekit.ListAgentVersionsRequest - (*ListAgentVersionsResponse)(nil), // 14: livekit.ListAgentVersionsResponse - (*UpdateAgentRequest)(nil), // 15: livekit.UpdateAgentRequest - (*UpdateAgentResponse)(nil), // 16: livekit.UpdateAgentResponse - (*RestartAgentRequest)(nil), // 17: livekit.RestartAgentRequest - (*RestartAgentResponse)(nil), // 18: livekit.RestartAgentResponse - (*DeployAgentRequest)(nil), // 19: livekit.DeployAgentRequest - (*DeployAgentResponse)(nil), // 20: livekit.DeployAgentResponse - (*UpdateAgentSecretsRequest)(nil), // 21: livekit.UpdateAgentSecretsRequest - (*UpdateAgentSecretsResponse)(nil), // 22: livekit.UpdateAgentSecretsResponse - (*RollbackAgentRequest)(nil), // 23: livekit.RollbackAgentRequest - (*RollbackAgentResponse)(nil), // 24: livekit.RollbackAgentResponse - (*DeleteAgentRequest)(nil), // 25: livekit.DeleteAgentRequest - (*DeleteAgentResponse)(nil), // 26: livekit.DeleteAgentResponse - (*ListAgentSecretsRequest)(nil), // 27: livekit.ListAgentSecretsRequest - (*ListAgentSecretsResponse)(nil), // 28: livekit.ListAgentSecretsResponse - (*SettingsParam)(nil), // 29: livekit.SettingsParam - (*ClientSettingsResponse)(nil), // 30: livekit.ClientSettingsResponse - (*ClientSettingsRequest)(nil), // 31: livekit.ClientSettingsRequest - (*PrivateLink)(nil), // 32: livekit.PrivateLink - (*PrivateLinkStatus)(nil), // 33: livekit.PrivateLinkStatus - (*CreatePrivateLinkRequest)(nil), // 34: livekit.CreatePrivateLinkRequest - (*CreatePrivateLinkResponse)(nil), // 35: livekit.CreatePrivateLinkResponse - (*DestroyPrivateLinkRequest)(nil), // 36: livekit.DestroyPrivateLinkRequest - (*DestroyPrivateLinkResponse)(nil), // 37: livekit.DestroyPrivateLinkResponse - (*ListPrivateLinksRequest)(nil), // 38: livekit.ListPrivateLinksRequest - (*ListPrivateLinksResponse)(nil), // 39: livekit.ListPrivateLinksResponse - (*GetPrivateLinkStatusRequest)(nil), // 40: livekit.GetPrivateLinkStatusRequest - (*GetPrivateLinkStatusResponse)(nil), // 41: livekit.GetPrivateLinkStatusResponse - nil, // 42: livekit.PresignedPostRequest.ValuesEntry - nil, // 43: livekit.AgentVersion.AttributesEntry - (*PrivateLink_AWSConfig)(nil), // 44: livekit.PrivateLink.AWSConfig - (*CreatePrivateLinkRequest_AWSCreateConfig)(nil), // 45: livekit.CreatePrivateLinkRequest.AWSCreateConfig - (*timestamppb.Timestamp)(nil), // 46: google.protobuf.Timestamp + (*CreateAgentV2Request)(nil), // 7: livekit.CreateAgentV2Request + (*CreateAgentV2Response)(nil), // 8: livekit.CreateAgentV2Response + (*PresignedPostRequest)(nil), // 9: livekit.PresignedPostRequest + (*AgentDeployment)(nil), // 10: livekit.AgentDeployment + (*AgentInfo)(nil), // 11: livekit.AgentInfo + (*ListAgentsRequest)(nil), // 12: livekit.ListAgentsRequest + (*ListAgentsResponse)(nil), // 13: livekit.ListAgentsResponse + (*AgentVersion)(nil), // 14: livekit.AgentVersion + (*ListAgentVersionsRequest)(nil), // 15: livekit.ListAgentVersionsRequest + (*ListAgentVersionsResponse)(nil), // 16: livekit.ListAgentVersionsResponse + (*UpdateAgentRequest)(nil), // 17: livekit.UpdateAgentRequest + (*UpdateAgentResponse)(nil), // 18: livekit.UpdateAgentResponse + (*RestartAgentRequest)(nil), // 19: livekit.RestartAgentRequest + (*RestartAgentResponse)(nil), // 20: livekit.RestartAgentResponse + (*DeployAgentRequest)(nil), // 21: livekit.DeployAgentRequest + (*DeployAgentResponse)(nil), // 22: livekit.DeployAgentResponse + (*DeployAgentV2Request)(nil), // 23: livekit.DeployAgentV2Request + (*DeployAgentV2Response)(nil), // 24: livekit.DeployAgentV2Response + (*UpdateAgentSecretsRequest)(nil), // 25: livekit.UpdateAgentSecretsRequest + (*UpdateAgentSecretsResponse)(nil), // 26: livekit.UpdateAgentSecretsResponse + (*RollbackAgentRequest)(nil), // 27: livekit.RollbackAgentRequest + (*RollbackAgentResponse)(nil), // 28: livekit.RollbackAgentResponse + (*DeleteAgentRequest)(nil), // 29: livekit.DeleteAgentRequest + (*DeleteAgentResponse)(nil), // 30: livekit.DeleteAgentResponse + (*ListAgentSecretsRequest)(nil), // 31: livekit.ListAgentSecretsRequest + (*ListAgentSecretsResponse)(nil), // 32: livekit.ListAgentSecretsResponse + (*SettingsParam)(nil), // 33: livekit.SettingsParam + (*ClientSettingsResponse)(nil), // 34: livekit.ClientSettingsResponse + (*ClientSettingsRequest)(nil), // 35: livekit.ClientSettingsRequest + (*PrivateLink)(nil), // 36: livekit.PrivateLink + (*PrivateLinkStatus)(nil), // 37: livekit.PrivateLinkStatus + (*CreatePrivateLinkRequest)(nil), // 38: livekit.CreatePrivateLinkRequest + (*CreatePrivateLinkResponse)(nil), // 39: livekit.CreatePrivateLinkResponse + (*DestroyPrivateLinkRequest)(nil), // 40: livekit.DestroyPrivateLinkRequest + (*DestroyPrivateLinkResponse)(nil), // 41: livekit.DestroyPrivateLinkResponse + (*ListPrivateLinksRequest)(nil), // 42: livekit.ListPrivateLinksRequest + (*ListPrivateLinksResponse)(nil), // 43: livekit.ListPrivateLinksResponse + (*GetPrivateLinkStatusRequest)(nil), // 44: livekit.GetPrivateLinkStatusRequest + (*GetPrivateLinkStatusResponse)(nil), // 45: livekit.GetPrivateLinkStatusResponse + nil, // 46: livekit.PresignedPostRequest.ValuesEntry + nil, // 47: livekit.AgentVersion.AttributesEntry + (*PrivateLink_AWSConfig)(nil), // 48: livekit.PrivateLink.AWSConfig + (*CreatePrivateLinkRequest_AWSCreateConfig)(nil), // 49: livekit.CreatePrivateLinkRequest.AWSCreateConfig + (*timestamppb.Timestamp)(nil), // 50: google.protobuf.Timestamp } var file_livekit_cloud_agent_proto_depIdxs = []int32{ 1, // 0: livekit.AgentEvent.type:type_name -> livekit.AgentEventType - 46, // 1: livekit.AgentEvent.timestamp:type_name -> google.protobuf.Timestamp - 46, // 2: livekit.AgentSecret.created_at:type_name -> google.protobuf.Timestamp - 46, // 3: livekit.AgentSecret.updated_at:type_name -> google.protobuf.Timestamp + 50, // 1: livekit.AgentEvent.timestamp:type_name -> google.protobuf.Timestamp + 50, // 2: livekit.AgentSecret.created_at:type_name -> google.protobuf.Timestamp + 50, // 3: livekit.AgentSecret.updated_at:type_name -> google.protobuf.Timestamp 0, // 4: livekit.AgentSecret.kind:type_name -> livekit.AgentSecretKind 4, // 5: livekit.CreateAgentRequest.secrets:type_name -> livekit.AgentSecret - 7, // 6: livekit.CreateAgentResponse.presigned_post_request:type_name -> livekit.PresignedPostRequest - 42, // 7: livekit.PresignedPostRequest.values:type_name -> livekit.PresignedPostRequest.ValuesEntry - 3, // 8: livekit.AgentDeployment.events:type_name -> livekit.AgentEvent - 8, // 9: livekit.AgentInfo.agent_deployments:type_name -> livekit.AgentDeployment - 4, // 10: livekit.AgentInfo.secrets:type_name -> livekit.AgentSecret - 46, // 11: livekit.AgentInfo.deployed_at:type_name -> google.protobuf.Timestamp - 9, // 12: livekit.ListAgentsResponse.agents:type_name -> livekit.AgentInfo - 46, // 13: livekit.AgentVersion.created_at:type_name -> google.protobuf.Timestamp - 46, // 14: livekit.AgentVersion.deployed_at:type_name -> google.protobuf.Timestamp - 43, // 15: livekit.AgentVersion.attributes:type_name -> livekit.AgentVersion.AttributesEntry - 12, // 16: livekit.ListAgentVersionsResponse.versions:type_name -> livekit.AgentVersion - 4, // 17: livekit.UpdateAgentRequest.secrets:type_name -> livekit.AgentSecret - 4, // 18: livekit.DeployAgentRequest.secrets:type_name -> livekit.AgentSecret - 7, // 19: livekit.DeployAgentResponse.presigned_post_request:type_name -> livekit.PresignedPostRequest - 4, // 20: livekit.UpdateAgentSecretsRequest.secrets:type_name -> livekit.AgentSecret - 4, // 21: livekit.ListAgentSecretsResponse.secrets:type_name -> livekit.AgentSecret - 29, // 22: livekit.ClientSettingsResponse.params:type_name -> livekit.SettingsParam - 44, // 23: livekit.PrivateLink.aws:type_name -> livekit.PrivateLink.AWSConfig - 2, // 24: livekit.PrivateLinkStatus.status:type_name -> livekit.PrivateLinkStatus.Status - 46, // 25: livekit.PrivateLinkStatus.updated_at:type_name -> google.protobuf.Timestamp - 45, // 26: livekit.CreatePrivateLinkRequest.aws:type_name -> livekit.CreatePrivateLinkRequest.AWSCreateConfig - 32, // 27: livekit.CreatePrivateLinkResponse.private_link:type_name -> livekit.PrivateLink - 32, // 28: livekit.ListPrivateLinksResponse.items:type_name -> livekit.PrivateLink - 33, // 29: livekit.GetPrivateLinkStatusResponse.value:type_name -> livekit.PrivateLinkStatus - 5, // 30: livekit.CloudAgent.CreateAgent:input_type -> livekit.CreateAgentRequest - 10, // 31: livekit.CloudAgent.ListAgents:input_type -> livekit.ListAgentsRequest - 13, // 32: livekit.CloudAgent.ListAgentVersions:input_type -> livekit.ListAgentVersionsRequest - 27, // 33: livekit.CloudAgent.ListAgentSecrets:input_type -> livekit.ListAgentSecretsRequest - 15, // 34: livekit.CloudAgent.UpdateAgent:input_type -> livekit.UpdateAgentRequest - 17, // 35: livekit.CloudAgent.RestartAgent:input_type -> livekit.RestartAgentRequest - 19, // 36: livekit.CloudAgent.DeployAgent:input_type -> livekit.DeployAgentRequest - 21, // 37: livekit.CloudAgent.UpdateAgentSecrets:input_type -> livekit.UpdateAgentSecretsRequest - 23, // 38: livekit.CloudAgent.RollbackAgent:input_type -> livekit.RollbackAgentRequest - 25, // 39: livekit.CloudAgent.DeleteAgent:input_type -> livekit.DeleteAgentRequest - 31, // 40: livekit.CloudAgent.GetClientSettings:input_type -> livekit.ClientSettingsRequest - 34, // 41: livekit.CloudAgent.CreatePrivateLink:input_type -> livekit.CreatePrivateLinkRequest - 36, // 42: livekit.CloudAgent.DestroyPrivateLink:input_type -> livekit.DestroyPrivateLinkRequest - 38, // 43: livekit.CloudAgent.ListPrivateLinks:input_type -> livekit.ListPrivateLinksRequest - 40, // 44: livekit.CloudAgent.GetPrivateLinkStatus:input_type -> livekit.GetPrivateLinkStatusRequest - 6, // 45: livekit.CloudAgent.CreateAgent:output_type -> livekit.CreateAgentResponse - 11, // 46: livekit.CloudAgent.ListAgents:output_type -> livekit.ListAgentsResponse - 14, // 47: livekit.CloudAgent.ListAgentVersions:output_type -> livekit.ListAgentVersionsResponse - 28, // 48: livekit.CloudAgent.ListAgentSecrets:output_type -> livekit.ListAgentSecretsResponse - 16, // 49: livekit.CloudAgent.UpdateAgent:output_type -> livekit.UpdateAgentResponse - 18, // 50: livekit.CloudAgent.RestartAgent:output_type -> livekit.RestartAgentResponse - 20, // 51: livekit.CloudAgent.DeployAgent:output_type -> livekit.DeployAgentResponse - 22, // 52: livekit.CloudAgent.UpdateAgentSecrets:output_type -> livekit.UpdateAgentSecretsResponse - 24, // 53: livekit.CloudAgent.RollbackAgent:output_type -> livekit.RollbackAgentResponse - 26, // 54: livekit.CloudAgent.DeleteAgent:output_type -> livekit.DeleteAgentResponse - 30, // 55: livekit.CloudAgent.GetClientSettings:output_type -> livekit.ClientSettingsResponse - 35, // 56: livekit.CloudAgent.CreatePrivateLink:output_type -> livekit.CreatePrivateLinkResponse - 37, // 57: livekit.CloudAgent.DestroyPrivateLink:output_type -> livekit.DestroyPrivateLinkResponse - 39, // 58: livekit.CloudAgent.ListPrivateLinks:output_type -> livekit.ListPrivateLinksResponse - 41, // 59: livekit.CloudAgent.GetPrivateLinkStatus:output_type -> livekit.GetPrivateLinkStatusResponse - 45, // [45:60] is the sub-list for method output_type - 30, // [30:45] is the sub-list for method input_type - 30, // [30:30] is the sub-list for extension type_name - 30, // [30:30] is the sub-list for extension extendee - 0, // [0:30] is the sub-list for field type_name + 9, // 6: livekit.CreateAgentResponse.presigned_post_request:type_name -> livekit.PresignedPostRequest + 4, // 7: livekit.CreateAgentV2Request.secrets:type_name -> livekit.AgentSecret + 46, // 8: livekit.PresignedPostRequest.values:type_name -> livekit.PresignedPostRequest.ValuesEntry + 3, // 9: livekit.AgentDeployment.events:type_name -> livekit.AgentEvent + 10, // 10: livekit.AgentInfo.agent_deployments:type_name -> livekit.AgentDeployment + 4, // 11: livekit.AgentInfo.secrets:type_name -> livekit.AgentSecret + 50, // 12: livekit.AgentInfo.deployed_at:type_name -> google.protobuf.Timestamp + 11, // 13: livekit.ListAgentsResponse.agents:type_name -> livekit.AgentInfo + 50, // 14: livekit.AgentVersion.created_at:type_name -> google.protobuf.Timestamp + 50, // 15: livekit.AgentVersion.deployed_at:type_name -> google.protobuf.Timestamp + 47, // 16: livekit.AgentVersion.attributes:type_name -> livekit.AgentVersion.AttributesEntry + 14, // 17: livekit.ListAgentVersionsResponse.versions:type_name -> livekit.AgentVersion + 4, // 18: livekit.UpdateAgentRequest.secrets:type_name -> livekit.AgentSecret + 4, // 19: livekit.DeployAgentRequest.secrets:type_name -> livekit.AgentSecret + 9, // 20: livekit.DeployAgentResponse.presigned_post_request:type_name -> livekit.PresignedPostRequest + 4, // 21: livekit.DeployAgentV2Request.secrets:type_name -> livekit.AgentSecret + 9, // 22: livekit.DeployAgentV2Response.presigned_req:type_name -> livekit.PresignedPostRequest + 4, // 23: livekit.UpdateAgentSecretsRequest.secrets:type_name -> livekit.AgentSecret + 4, // 24: livekit.ListAgentSecretsResponse.secrets:type_name -> livekit.AgentSecret + 33, // 25: livekit.ClientSettingsResponse.params:type_name -> livekit.SettingsParam + 48, // 26: livekit.PrivateLink.aws:type_name -> livekit.PrivateLink.AWSConfig + 2, // 27: livekit.PrivateLinkStatus.status:type_name -> livekit.PrivateLinkStatus.Status + 50, // 28: livekit.PrivateLinkStatus.updated_at:type_name -> google.protobuf.Timestamp + 49, // 29: livekit.CreatePrivateLinkRequest.aws:type_name -> livekit.CreatePrivateLinkRequest.AWSCreateConfig + 36, // 30: livekit.CreatePrivateLinkResponse.private_link:type_name -> livekit.PrivateLink + 36, // 31: livekit.ListPrivateLinksResponse.items:type_name -> livekit.PrivateLink + 37, // 32: livekit.GetPrivateLinkStatusResponse.value:type_name -> livekit.PrivateLinkStatus + 5, // 33: livekit.CloudAgent.CreateAgent:input_type -> livekit.CreateAgentRequest + 7, // 34: livekit.CloudAgent.CreateAgentV2:input_type -> livekit.CreateAgentV2Request + 12, // 35: livekit.CloudAgent.ListAgents:input_type -> livekit.ListAgentsRequest + 15, // 36: livekit.CloudAgent.ListAgentVersions:input_type -> livekit.ListAgentVersionsRequest + 31, // 37: livekit.CloudAgent.ListAgentSecrets:input_type -> livekit.ListAgentSecretsRequest + 17, // 38: livekit.CloudAgent.UpdateAgent:input_type -> livekit.UpdateAgentRequest + 19, // 39: livekit.CloudAgent.RestartAgent:input_type -> livekit.RestartAgentRequest + 21, // 40: livekit.CloudAgent.DeployAgent:input_type -> livekit.DeployAgentRequest + 23, // 41: livekit.CloudAgent.DeployAgentV2:input_type -> livekit.DeployAgentV2Request + 25, // 42: livekit.CloudAgent.UpdateAgentSecrets:input_type -> livekit.UpdateAgentSecretsRequest + 27, // 43: livekit.CloudAgent.RollbackAgent:input_type -> livekit.RollbackAgentRequest + 29, // 44: livekit.CloudAgent.DeleteAgent:input_type -> livekit.DeleteAgentRequest + 35, // 45: livekit.CloudAgent.GetClientSettings:input_type -> livekit.ClientSettingsRequest + 38, // 46: livekit.CloudAgent.CreatePrivateLink:input_type -> livekit.CreatePrivateLinkRequest + 40, // 47: livekit.CloudAgent.DestroyPrivateLink:input_type -> livekit.DestroyPrivateLinkRequest + 42, // 48: livekit.CloudAgent.ListPrivateLinks:input_type -> livekit.ListPrivateLinksRequest + 44, // 49: livekit.CloudAgent.GetPrivateLinkStatus:input_type -> livekit.GetPrivateLinkStatusRequest + 6, // 50: livekit.CloudAgent.CreateAgent:output_type -> livekit.CreateAgentResponse + 8, // 51: livekit.CloudAgent.CreateAgentV2:output_type -> livekit.CreateAgentV2Response + 13, // 52: livekit.CloudAgent.ListAgents:output_type -> livekit.ListAgentsResponse + 16, // 53: livekit.CloudAgent.ListAgentVersions:output_type -> livekit.ListAgentVersionsResponse + 32, // 54: livekit.CloudAgent.ListAgentSecrets:output_type -> livekit.ListAgentSecretsResponse + 18, // 55: livekit.CloudAgent.UpdateAgent:output_type -> livekit.UpdateAgentResponse + 20, // 56: livekit.CloudAgent.RestartAgent:output_type -> livekit.RestartAgentResponse + 22, // 57: livekit.CloudAgent.DeployAgent:output_type -> livekit.DeployAgentResponse + 24, // 58: livekit.CloudAgent.DeployAgentV2:output_type -> livekit.DeployAgentV2Response + 26, // 59: livekit.CloudAgent.UpdateAgentSecrets:output_type -> livekit.UpdateAgentSecretsResponse + 28, // 60: livekit.CloudAgent.RollbackAgent:output_type -> livekit.RollbackAgentResponse + 30, // 61: livekit.CloudAgent.DeleteAgent:output_type -> livekit.DeleteAgentResponse + 34, // 62: livekit.CloudAgent.GetClientSettings:output_type -> livekit.ClientSettingsResponse + 39, // 63: livekit.CloudAgent.CreatePrivateLink:output_type -> livekit.CreatePrivateLinkResponse + 41, // 64: livekit.CloudAgent.DestroyPrivateLink:output_type -> livekit.DestroyPrivateLinkResponse + 43, // 65: livekit.CloudAgent.ListPrivateLinks:output_type -> livekit.ListPrivateLinksResponse + 45, // 66: livekit.CloudAgent.GetPrivateLinkStatus:output_type -> livekit.GetPrivateLinkStatusResponse + 50, // [50:67] is the sub-list for method output_type + 33, // [33:50] is the sub-list for method input_type + 33, // [33:33] is the sub-list for extension type_name + 33, // [33:33] is the sub-list for extension extendee + 0, // [0:33] is the sub-list for field type_name } func init() { file_livekit_cloud_agent_proto_init() } @@ -3161,10 +3525,10 @@ func file_livekit_cloud_agent_proto_init() { if File_livekit_cloud_agent_proto != nil { return } - file_livekit_cloud_agent_proto_msgTypes[29].OneofWrappers = []any{ + file_livekit_cloud_agent_proto_msgTypes[33].OneofWrappers = []any{ (*PrivateLink_Aws)(nil), } - file_livekit_cloud_agent_proto_msgTypes[31].OneofWrappers = []any{ + file_livekit_cloud_agent_proto_msgTypes[35].OneofWrappers = []any{ (*CreatePrivateLinkRequest_Aws)(nil), } type x struct{} @@ -3173,7 +3537,7 @@ func file_livekit_cloud_agent_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_livekit_cloud_agent_proto_rawDesc), len(file_livekit_cloud_agent_proto_rawDesc)), NumEnums: 3, - NumMessages: 43, + NumMessages: 47, NumExtensions: 0, NumServices: 1, }, diff --git a/livekit/livekit_cloud_agent.twirp.go b/livekit/livekit_cloud_agent.twirp.go index 34a1010c9..ee910054e 100644 --- a/livekit/livekit_cloud_agent.twirp.go +++ b/livekit/livekit_cloud_agent.twirp.go @@ -29,6 +29,8 @@ const _ = twirp.TwirpPackageMinVersion_8_1_0 type CloudAgent interface { CreateAgent(context.Context, *CreateAgentRequest) (*CreateAgentResponse, error) + CreateAgentV2(context.Context, *CreateAgentV2Request) (*CreateAgentV2Response, error) + ListAgents(context.Context, *ListAgentsRequest) (*ListAgentsResponse, error) ListAgentVersions(context.Context, *ListAgentVersionsRequest) (*ListAgentVersionsResponse, error) @@ -41,6 +43,8 @@ type CloudAgent interface { DeployAgent(context.Context, *DeployAgentRequest) (*DeployAgentResponse, error) + DeployAgentV2(context.Context, *DeployAgentV2Request) (*DeployAgentV2Response, error) + UpdateAgentSecrets(context.Context, *UpdateAgentSecretsRequest) (*UpdateAgentSecretsResponse, error) RollbackAgent(context.Context, *RollbackAgentRequest) (*RollbackAgentResponse, error) @@ -64,7 +68,7 @@ type CloudAgent interface { type cloudAgentProtobufClient struct { client HTTPClient - urls [15]string + urls [17]string interceptor twirp.Interceptor opts twirp.ClientOptions } @@ -92,14 +96,16 @@ func NewCloudAgentProtobufClient(baseURL string, client HTTPClient, opts ...twir // Build method URLs: []/./ serviceURL := sanitizeBaseURL(baseURL) serviceURL += baseServicePath(pathPrefix, "livekit", "CloudAgent") - urls := [15]string{ + urls := [17]string{ serviceURL + "CreateAgent", + serviceURL + "CreateAgentV2", serviceURL + "ListAgents", serviceURL + "ListAgentVersions", serviceURL + "ListAgentSecrets", serviceURL + "UpdateAgent", serviceURL + "RestartAgent", serviceURL + "DeployAgent", + serviceURL + "DeployAgentV2", serviceURL + "UpdateAgentSecrets", serviceURL + "RollbackAgent", serviceURL + "DeleteAgent", @@ -164,6 +170,52 @@ func (c *cloudAgentProtobufClient) callCreateAgent(ctx context.Context, in *Crea return out, nil } +func (c *cloudAgentProtobufClient) CreateAgentV2(ctx context.Context, in *CreateAgentV2Request) (*CreateAgentV2Response, error) { + ctx = ctxsetters.WithPackageName(ctx, "livekit") + ctx = ctxsetters.WithServiceName(ctx, "CloudAgent") + ctx = ctxsetters.WithMethodName(ctx, "CreateAgentV2") + caller := c.callCreateAgentV2 + if c.interceptor != nil { + caller = func(ctx context.Context, req *CreateAgentV2Request) (*CreateAgentV2Response, error) { + resp, err := c.interceptor( + func(ctx context.Context, req interface{}) (interface{}, error) { + typedReq, ok := req.(*CreateAgentV2Request) + if !ok { + return nil, twirp.InternalError("failed type assertion req.(*CreateAgentV2Request) when calling interceptor") + } + return c.callCreateAgentV2(ctx, typedReq) + }, + )(ctx, req) + if resp != nil { + typedResp, ok := resp.(*CreateAgentV2Response) + if !ok { + return nil, twirp.InternalError("failed type assertion resp.(*CreateAgentV2Response) when calling interceptor") + } + return typedResp, err + } + return nil, err + } + } + return caller(ctx, in) +} + +func (c *cloudAgentProtobufClient) callCreateAgentV2(ctx context.Context, in *CreateAgentV2Request) (*CreateAgentV2Response, error) { + out := new(CreateAgentV2Response) + ctx, err := doProtobufRequest(ctx, c.client, c.opts.Hooks, c.urls[1], in, out) + if err != nil { + twerr, ok := err.(twirp.Error) + if !ok { + twerr = twirp.InternalErrorWith(err) + } + callClientError(ctx, c.opts.Hooks, twerr) + return nil, err + } + + callClientResponseReceived(ctx, c.opts.Hooks) + + return out, nil +} + func (c *cloudAgentProtobufClient) ListAgents(ctx context.Context, in *ListAgentsRequest) (*ListAgentsResponse, error) { ctx = ctxsetters.WithPackageName(ctx, "livekit") ctx = ctxsetters.WithServiceName(ctx, "CloudAgent") @@ -195,7 +247,7 @@ func (c *cloudAgentProtobufClient) ListAgents(ctx context.Context, in *ListAgent func (c *cloudAgentProtobufClient) callListAgents(ctx context.Context, in *ListAgentsRequest) (*ListAgentsResponse, error) { out := new(ListAgentsResponse) - ctx, err := doProtobufRequest(ctx, c.client, c.opts.Hooks, c.urls[1], in, out) + ctx, err := doProtobufRequest(ctx, c.client, c.opts.Hooks, c.urls[2], in, out) if err != nil { twerr, ok := err.(twirp.Error) if !ok { @@ -241,7 +293,7 @@ func (c *cloudAgentProtobufClient) ListAgentVersions(ctx context.Context, in *Li func (c *cloudAgentProtobufClient) callListAgentVersions(ctx context.Context, in *ListAgentVersionsRequest) (*ListAgentVersionsResponse, error) { out := new(ListAgentVersionsResponse) - ctx, err := doProtobufRequest(ctx, c.client, c.opts.Hooks, c.urls[2], in, out) + ctx, err := doProtobufRequest(ctx, c.client, c.opts.Hooks, c.urls[3], in, out) if err != nil { twerr, ok := err.(twirp.Error) if !ok { @@ -287,7 +339,7 @@ func (c *cloudAgentProtobufClient) ListAgentSecrets(ctx context.Context, in *Lis func (c *cloudAgentProtobufClient) callListAgentSecrets(ctx context.Context, in *ListAgentSecretsRequest) (*ListAgentSecretsResponse, error) { out := new(ListAgentSecretsResponse) - ctx, err := doProtobufRequest(ctx, c.client, c.opts.Hooks, c.urls[3], in, out) + ctx, err := doProtobufRequest(ctx, c.client, c.opts.Hooks, c.urls[4], in, out) if err != nil { twerr, ok := err.(twirp.Error) if !ok { @@ -333,7 +385,7 @@ func (c *cloudAgentProtobufClient) UpdateAgent(ctx context.Context, in *UpdateAg func (c *cloudAgentProtobufClient) callUpdateAgent(ctx context.Context, in *UpdateAgentRequest) (*UpdateAgentResponse, error) { out := new(UpdateAgentResponse) - ctx, err := doProtobufRequest(ctx, c.client, c.opts.Hooks, c.urls[4], in, out) + ctx, err := doProtobufRequest(ctx, c.client, c.opts.Hooks, c.urls[5], in, out) if err != nil { twerr, ok := err.(twirp.Error) if !ok { @@ -379,7 +431,7 @@ func (c *cloudAgentProtobufClient) RestartAgent(ctx context.Context, in *Restart func (c *cloudAgentProtobufClient) callRestartAgent(ctx context.Context, in *RestartAgentRequest) (*RestartAgentResponse, error) { out := new(RestartAgentResponse) - ctx, err := doProtobufRequest(ctx, c.client, c.opts.Hooks, c.urls[5], in, out) + ctx, err := doProtobufRequest(ctx, c.client, c.opts.Hooks, c.urls[6], in, out) if err != nil { twerr, ok := err.(twirp.Error) if !ok { @@ -425,7 +477,53 @@ func (c *cloudAgentProtobufClient) DeployAgent(ctx context.Context, in *DeployAg func (c *cloudAgentProtobufClient) callDeployAgent(ctx context.Context, in *DeployAgentRequest) (*DeployAgentResponse, error) { out := new(DeployAgentResponse) - ctx, err := doProtobufRequest(ctx, c.client, c.opts.Hooks, c.urls[6], in, out) + ctx, err := doProtobufRequest(ctx, c.client, c.opts.Hooks, c.urls[7], in, out) + if err != nil { + twerr, ok := err.(twirp.Error) + if !ok { + twerr = twirp.InternalErrorWith(err) + } + callClientError(ctx, c.opts.Hooks, twerr) + return nil, err + } + + callClientResponseReceived(ctx, c.opts.Hooks) + + return out, nil +} + +func (c *cloudAgentProtobufClient) DeployAgentV2(ctx context.Context, in *DeployAgentV2Request) (*DeployAgentV2Response, error) { + ctx = ctxsetters.WithPackageName(ctx, "livekit") + ctx = ctxsetters.WithServiceName(ctx, "CloudAgent") + ctx = ctxsetters.WithMethodName(ctx, "DeployAgentV2") + caller := c.callDeployAgentV2 + if c.interceptor != nil { + caller = func(ctx context.Context, req *DeployAgentV2Request) (*DeployAgentV2Response, error) { + resp, err := c.interceptor( + func(ctx context.Context, req interface{}) (interface{}, error) { + typedReq, ok := req.(*DeployAgentV2Request) + if !ok { + return nil, twirp.InternalError("failed type assertion req.(*DeployAgentV2Request) when calling interceptor") + } + return c.callDeployAgentV2(ctx, typedReq) + }, + )(ctx, req) + if resp != nil { + typedResp, ok := resp.(*DeployAgentV2Response) + if !ok { + return nil, twirp.InternalError("failed type assertion resp.(*DeployAgentV2Response) when calling interceptor") + } + return typedResp, err + } + return nil, err + } + } + return caller(ctx, in) +} + +func (c *cloudAgentProtobufClient) callDeployAgentV2(ctx context.Context, in *DeployAgentV2Request) (*DeployAgentV2Response, error) { + out := new(DeployAgentV2Response) + ctx, err := doProtobufRequest(ctx, c.client, c.opts.Hooks, c.urls[8], in, out) if err != nil { twerr, ok := err.(twirp.Error) if !ok { @@ -471,7 +569,7 @@ func (c *cloudAgentProtobufClient) UpdateAgentSecrets(ctx context.Context, in *U func (c *cloudAgentProtobufClient) callUpdateAgentSecrets(ctx context.Context, in *UpdateAgentSecretsRequest) (*UpdateAgentSecretsResponse, error) { out := new(UpdateAgentSecretsResponse) - ctx, err := doProtobufRequest(ctx, c.client, c.opts.Hooks, c.urls[7], in, out) + ctx, err := doProtobufRequest(ctx, c.client, c.opts.Hooks, c.urls[9], in, out) if err != nil { twerr, ok := err.(twirp.Error) if !ok { @@ -517,7 +615,7 @@ func (c *cloudAgentProtobufClient) RollbackAgent(ctx context.Context, in *Rollba func (c *cloudAgentProtobufClient) callRollbackAgent(ctx context.Context, in *RollbackAgentRequest) (*RollbackAgentResponse, error) { out := new(RollbackAgentResponse) - ctx, err := doProtobufRequest(ctx, c.client, c.opts.Hooks, c.urls[8], in, out) + ctx, err := doProtobufRequest(ctx, c.client, c.opts.Hooks, c.urls[10], in, out) if err != nil { twerr, ok := err.(twirp.Error) if !ok { @@ -563,7 +661,7 @@ func (c *cloudAgentProtobufClient) DeleteAgent(ctx context.Context, in *DeleteAg func (c *cloudAgentProtobufClient) callDeleteAgent(ctx context.Context, in *DeleteAgentRequest) (*DeleteAgentResponse, error) { out := new(DeleteAgentResponse) - ctx, err := doProtobufRequest(ctx, c.client, c.opts.Hooks, c.urls[9], in, out) + ctx, err := doProtobufRequest(ctx, c.client, c.opts.Hooks, c.urls[11], in, out) if err != nil { twerr, ok := err.(twirp.Error) if !ok { @@ -609,7 +707,7 @@ func (c *cloudAgentProtobufClient) GetClientSettings(ctx context.Context, in *Cl func (c *cloudAgentProtobufClient) callGetClientSettings(ctx context.Context, in *ClientSettingsRequest) (*ClientSettingsResponse, error) { out := new(ClientSettingsResponse) - ctx, err := doProtobufRequest(ctx, c.client, c.opts.Hooks, c.urls[10], in, out) + ctx, err := doProtobufRequest(ctx, c.client, c.opts.Hooks, c.urls[12], in, out) if err != nil { twerr, ok := err.(twirp.Error) if !ok { @@ -655,7 +753,7 @@ func (c *cloudAgentProtobufClient) CreatePrivateLink(ctx context.Context, in *Cr func (c *cloudAgentProtobufClient) callCreatePrivateLink(ctx context.Context, in *CreatePrivateLinkRequest) (*CreatePrivateLinkResponse, error) { out := new(CreatePrivateLinkResponse) - ctx, err := doProtobufRequest(ctx, c.client, c.opts.Hooks, c.urls[11], in, out) + ctx, err := doProtobufRequest(ctx, c.client, c.opts.Hooks, c.urls[13], in, out) if err != nil { twerr, ok := err.(twirp.Error) if !ok { @@ -701,7 +799,7 @@ func (c *cloudAgentProtobufClient) DestroyPrivateLink(ctx context.Context, in *D func (c *cloudAgentProtobufClient) callDestroyPrivateLink(ctx context.Context, in *DestroyPrivateLinkRequest) (*DestroyPrivateLinkResponse, error) { out := new(DestroyPrivateLinkResponse) - ctx, err := doProtobufRequest(ctx, c.client, c.opts.Hooks, c.urls[12], in, out) + ctx, err := doProtobufRequest(ctx, c.client, c.opts.Hooks, c.urls[14], in, out) if err != nil { twerr, ok := err.(twirp.Error) if !ok { @@ -747,7 +845,7 @@ func (c *cloudAgentProtobufClient) ListPrivateLinks(ctx context.Context, in *Lis func (c *cloudAgentProtobufClient) callListPrivateLinks(ctx context.Context, in *ListPrivateLinksRequest) (*ListPrivateLinksResponse, error) { out := new(ListPrivateLinksResponse) - ctx, err := doProtobufRequest(ctx, c.client, c.opts.Hooks, c.urls[13], in, out) + ctx, err := doProtobufRequest(ctx, c.client, c.opts.Hooks, c.urls[15], in, out) if err != nil { twerr, ok := err.(twirp.Error) if !ok { @@ -793,7 +891,7 @@ func (c *cloudAgentProtobufClient) GetPrivateLinkStatus(ctx context.Context, in func (c *cloudAgentProtobufClient) callGetPrivateLinkStatus(ctx context.Context, in *GetPrivateLinkStatusRequest) (*GetPrivateLinkStatusResponse, error) { out := new(GetPrivateLinkStatusResponse) - ctx, err := doProtobufRequest(ctx, c.client, c.opts.Hooks, c.urls[14], in, out) + ctx, err := doProtobufRequest(ctx, c.client, c.opts.Hooks, c.urls[16], in, out) if err != nil { twerr, ok := err.(twirp.Error) if !ok { @@ -814,7 +912,7 @@ func (c *cloudAgentProtobufClient) callGetPrivateLinkStatus(ctx context.Context, type cloudAgentJSONClient struct { client HTTPClient - urls [15]string + urls [17]string interceptor twirp.Interceptor opts twirp.ClientOptions } @@ -842,14 +940,16 @@ func NewCloudAgentJSONClient(baseURL string, client HTTPClient, opts ...twirp.Cl // Build method URLs: []/./ serviceURL := sanitizeBaseURL(baseURL) serviceURL += baseServicePath(pathPrefix, "livekit", "CloudAgent") - urls := [15]string{ + urls := [17]string{ serviceURL + "CreateAgent", + serviceURL + "CreateAgentV2", serviceURL + "ListAgents", serviceURL + "ListAgentVersions", serviceURL + "ListAgentSecrets", serviceURL + "UpdateAgent", serviceURL + "RestartAgent", serviceURL + "DeployAgent", + serviceURL + "DeployAgentV2", serviceURL + "UpdateAgentSecrets", serviceURL + "RollbackAgent", serviceURL + "DeleteAgent", @@ -914,6 +1014,52 @@ func (c *cloudAgentJSONClient) callCreateAgent(ctx context.Context, in *CreateAg return out, nil } +func (c *cloudAgentJSONClient) CreateAgentV2(ctx context.Context, in *CreateAgentV2Request) (*CreateAgentV2Response, error) { + ctx = ctxsetters.WithPackageName(ctx, "livekit") + ctx = ctxsetters.WithServiceName(ctx, "CloudAgent") + ctx = ctxsetters.WithMethodName(ctx, "CreateAgentV2") + caller := c.callCreateAgentV2 + if c.interceptor != nil { + caller = func(ctx context.Context, req *CreateAgentV2Request) (*CreateAgentV2Response, error) { + resp, err := c.interceptor( + func(ctx context.Context, req interface{}) (interface{}, error) { + typedReq, ok := req.(*CreateAgentV2Request) + if !ok { + return nil, twirp.InternalError("failed type assertion req.(*CreateAgentV2Request) when calling interceptor") + } + return c.callCreateAgentV2(ctx, typedReq) + }, + )(ctx, req) + if resp != nil { + typedResp, ok := resp.(*CreateAgentV2Response) + if !ok { + return nil, twirp.InternalError("failed type assertion resp.(*CreateAgentV2Response) when calling interceptor") + } + return typedResp, err + } + return nil, err + } + } + return caller(ctx, in) +} + +func (c *cloudAgentJSONClient) callCreateAgentV2(ctx context.Context, in *CreateAgentV2Request) (*CreateAgentV2Response, error) { + out := new(CreateAgentV2Response) + ctx, err := doJSONRequest(ctx, c.client, c.opts.Hooks, c.urls[1], in, out) + if err != nil { + twerr, ok := err.(twirp.Error) + if !ok { + twerr = twirp.InternalErrorWith(err) + } + callClientError(ctx, c.opts.Hooks, twerr) + return nil, err + } + + callClientResponseReceived(ctx, c.opts.Hooks) + + return out, nil +} + func (c *cloudAgentJSONClient) ListAgents(ctx context.Context, in *ListAgentsRequest) (*ListAgentsResponse, error) { ctx = ctxsetters.WithPackageName(ctx, "livekit") ctx = ctxsetters.WithServiceName(ctx, "CloudAgent") @@ -945,7 +1091,7 @@ func (c *cloudAgentJSONClient) ListAgents(ctx context.Context, in *ListAgentsReq func (c *cloudAgentJSONClient) callListAgents(ctx context.Context, in *ListAgentsRequest) (*ListAgentsResponse, error) { out := new(ListAgentsResponse) - ctx, err := doJSONRequest(ctx, c.client, c.opts.Hooks, c.urls[1], in, out) + ctx, err := doJSONRequest(ctx, c.client, c.opts.Hooks, c.urls[2], in, out) if err != nil { twerr, ok := err.(twirp.Error) if !ok { @@ -991,7 +1137,7 @@ func (c *cloudAgentJSONClient) ListAgentVersions(ctx context.Context, in *ListAg func (c *cloudAgentJSONClient) callListAgentVersions(ctx context.Context, in *ListAgentVersionsRequest) (*ListAgentVersionsResponse, error) { out := new(ListAgentVersionsResponse) - ctx, err := doJSONRequest(ctx, c.client, c.opts.Hooks, c.urls[2], in, out) + ctx, err := doJSONRequest(ctx, c.client, c.opts.Hooks, c.urls[3], in, out) if err != nil { twerr, ok := err.(twirp.Error) if !ok { @@ -1037,7 +1183,7 @@ func (c *cloudAgentJSONClient) ListAgentSecrets(ctx context.Context, in *ListAge func (c *cloudAgentJSONClient) callListAgentSecrets(ctx context.Context, in *ListAgentSecretsRequest) (*ListAgentSecretsResponse, error) { out := new(ListAgentSecretsResponse) - ctx, err := doJSONRequest(ctx, c.client, c.opts.Hooks, c.urls[3], in, out) + ctx, err := doJSONRequest(ctx, c.client, c.opts.Hooks, c.urls[4], in, out) if err != nil { twerr, ok := err.(twirp.Error) if !ok { @@ -1083,7 +1229,7 @@ func (c *cloudAgentJSONClient) UpdateAgent(ctx context.Context, in *UpdateAgentR func (c *cloudAgentJSONClient) callUpdateAgent(ctx context.Context, in *UpdateAgentRequest) (*UpdateAgentResponse, error) { out := new(UpdateAgentResponse) - ctx, err := doJSONRequest(ctx, c.client, c.opts.Hooks, c.urls[4], in, out) + ctx, err := doJSONRequest(ctx, c.client, c.opts.Hooks, c.urls[5], in, out) if err != nil { twerr, ok := err.(twirp.Error) if !ok { @@ -1129,7 +1275,7 @@ func (c *cloudAgentJSONClient) RestartAgent(ctx context.Context, in *RestartAgen func (c *cloudAgentJSONClient) callRestartAgent(ctx context.Context, in *RestartAgentRequest) (*RestartAgentResponse, error) { out := new(RestartAgentResponse) - ctx, err := doJSONRequest(ctx, c.client, c.opts.Hooks, c.urls[5], in, out) + ctx, err := doJSONRequest(ctx, c.client, c.opts.Hooks, c.urls[6], in, out) if err != nil { twerr, ok := err.(twirp.Error) if !ok { @@ -1175,7 +1321,53 @@ func (c *cloudAgentJSONClient) DeployAgent(ctx context.Context, in *DeployAgentR func (c *cloudAgentJSONClient) callDeployAgent(ctx context.Context, in *DeployAgentRequest) (*DeployAgentResponse, error) { out := new(DeployAgentResponse) - ctx, err := doJSONRequest(ctx, c.client, c.opts.Hooks, c.urls[6], in, out) + ctx, err := doJSONRequest(ctx, c.client, c.opts.Hooks, c.urls[7], in, out) + if err != nil { + twerr, ok := err.(twirp.Error) + if !ok { + twerr = twirp.InternalErrorWith(err) + } + callClientError(ctx, c.opts.Hooks, twerr) + return nil, err + } + + callClientResponseReceived(ctx, c.opts.Hooks) + + return out, nil +} + +func (c *cloudAgentJSONClient) DeployAgentV2(ctx context.Context, in *DeployAgentV2Request) (*DeployAgentV2Response, error) { + ctx = ctxsetters.WithPackageName(ctx, "livekit") + ctx = ctxsetters.WithServiceName(ctx, "CloudAgent") + ctx = ctxsetters.WithMethodName(ctx, "DeployAgentV2") + caller := c.callDeployAgentV2 + if c.interceptor != nil { + caller = func(ctx context.Context, req *DeployAgentV2Request) (*DeployAgentV2Response, error) { + resp, err := c.interceptor( + func(ctx context.Context, req interface{}) (interface{}, error) { + typedReq, ok := req.(*DeployAgentV2Request) + if !ok { + return nil, twirp.InternalError("failed type assertion req.(*DeployAgentV2Request) when calling interceptor") + } + return c.callDeployAgentV2(ctx, typedReq) + }, + )(ctx, req) + if resp != nil { + typedResp, ok := resp.(*DeployAgentV2Response) + if !ok { + return nil, twirp.InternalError("failed type assertion resp.(*DeployAgentV2Response) when calling interceptor") + } + return typedResp, err + } + return nil, err + } + } + return caller(ctx, in) +} + +func (c *cloudAgentJSONClient) callDeployAgentV2(ctx context.Context, in *DeployAgentV2Request) (*DeployAgentV2Response, error) { + out := new(DeployAgentV2Response) + ctx, err := doJSONRequest(ctx, c.client, c.opts.Hooks, c.urls[8], in, out) if err != nil { twerr, ok := err.(twirp.Error) if !ok { @@ -1221,7 +1413,7 @@ func (c *cloudAgentJSONClient) UpdateAgentSecrets(ctx context.Context, in *Updat func (c *cloudAgentJSONClient) callUpdateAgentSecrets(ctx context.Context, in *UpdateAgentSecretsRequest) (*UpdateAgentSecretsResponse, error) { out := new(UpdateAgentSecretsResponse) - ctx, err := doJSONRequest(ctx, c.client, c.opts.Hooks, c.urls[7], in, out) + ctx, err := doJSONRequest(ctx, c.client, c.opts.Hooks, c.urls[9], in, out) if err != nil { twerr, ok := err.(twirp.Error) if !ok { @@ -1267,7 +1459,7 @@ func (c *cloudAgentJSONClient) RollbackAgent(ctx context.Context, in *RollbackAg func (c *cloudAgentJSONClient) callRollbackAgent(ctx context.Context, in *RollbackAgentRequest) (*RollbackAgentResponse, error) { out := new(RollbackAgentResponse) - ctx, err := doJSONRequest(ctx, c.client, c.opts.Hooks, c.urls[8], in, out) + ctx, err := doJSONRequest(ctx, c.client, c.opts.Hooks, c.urls[10], in, out) if err != nil { twerr, ok := err.(twirp.Error) if !ok { @@ -1313,7 +1505,7 @@ func (c *cloudAgentJSONClient) DeleteAgent(ctx context.Context, in *DeleteAgentR func (c *cloudAgentJSONClient) callDeleteAgent(ctx context.Context, in *DeleteAgentRequest) (*DeleteAgentResponse, error) { out := new(DeleteAgentResponse) - ctx, err := doJSONRequest(ctx, c.client, c.opts.Hooks, c.urls[9], in, out) + ctx, err := doJSONRequest(ctx, c.client, c.opts.Hooks, c.urls[11], in, out) if err != nil { twerr, ok := err.(twirp.Error) if !ok { @@ -1359,7 +1551,7 @@ func (c *cloudAgentJSONClient) GetClientSettings(ctx context.Context, in *Client func (c *cloudAgentJSONClient) callGetClientSettings(ctx context.Context, in *ClientSettingsRequest) (*ClientSettingsResponse, error) { out := new(ClientSettingsResponse) - ctx, err := doJSONRequest(ctx, c.client, c.opts.Hooks, c.urls[10], in, out) + ctx, err := doJSONRequest(ctx, c.client, c.opts.Hooks, c.urls[12], in, out) if err != nil { twerr, ok := err.(twirp.Error) if !ok { @@ -1405,7 +1597,7 @@ func (c *cloudAgentJSONClient) CreatePrivateLink(ctx context.Context, in *Create func (c *cloudAgentJSONClient) callCreatePrivateLink(ctx context.Context, in *CreatePrivateLinkRequest) (*CreatePrivateLinkResponse, error) { out := new(CreatePrivateLinkResponse) - ctx, err := doJSONRequest(ctx, c.client, c.opts.Hooks, c.urls[11], in, out) + ctx, err := doJSONRequest(ctx, c.client, c.opts.Hooks, c.urls[13], in, out) if err != nil { twerr, ok := err.(twirp.Error) if !ok { @@ -1451,7 +1643,7 @@ func (c *cloudAgentJSONClient) DestroyPrivateLink(ctx context.Context, in *Destr func (c *cloudAgentJSONClient) callDestroyPrivateLink(ctx context.Context, in *DestroyPrivateLinkRequest) (*DestroyPrivateLinkResponse, error) { out := new(DestroyPrivateLinkResponse) - ctx, err := doJSONRequest(ctx, c.client, c.opts.Hooks, c.urls[12], in, out) + ctx, err := doJSONRequest(ctx, c.client, c.opts.Hooks, c.urls[14], in, out) if err != nil { twerr, ok := err.(twirp.Error) if !ok { @@ -1497,7 +1689,7 @@ func (c *cloudAgentJSONClient) ListPrivateLinks(ctx context.Context, in *ListPri func (c *cloudAgentJSONClient) callListPrivateLinks(ctx context.Context, in *ListPrivateLinksRequest) (*ListPrivateLinksResponse, error) { out := new(ListPrivateLinksResponse) - ctx, err := doJSONRequest(ctx, c.client, c.opts.Hooks, c.urls[13], in, out) + ctx, err := doJSONRequest(ctx, c.client, c.opts.Hooks, c.urls[15], in, out) if err != nil { twerr, ok := err.(twirp.Error) if !ok { @@ -1543,7 +1735,7 @@ func (c *cloudAgentJSONClient) GetPrivateLinkStatus(ctx context.Context, in *Get func (c *cloudAgentJSONClient) callGetPrivateLinkStatus(ctx context.Context, in *GetPrivateLinkStatusRequest) (*GetPrivateLinkStatusResponse, error) { out := new(GetPrivateLinkStatusResponse) - ctx, err := doJSONRequest(ctx, c.client, c.opts.Hooks, c.urls[14], in, out) + ctx, err := doJSONRequest(ctx, c.client, c.opts.Hooks, c.urls[16], in, out) if err != nil { twerr, ok := err.(twirp.Error) if !ok { @@ -1658,6 +1850,9 @@ func (s *cloudAgentServer) ServeHTTP(resp http.ResponseWriter, req *http.Request case "CreateAgent": s.serveCreateAgent(ctx, resp, req) return + case "CreateAgentV2": + s.serveCreateAgentV2(ctx, resp, req) + return case "ListAgents": s.serveListAgents(ctx, resp, req) return @@ -1676,6 +1871,9 @@ func (s *cloudAgentServer) ServeHTTP(resp http.ResponseWriter, req *http.Request case "DeployAgent": s.serveDeployAgent(ctx, resp, req) return + case "DeployAgentV2": + s.serveDeployAgentV2(ctx, resp, req) + return case "UpdateAgentSecrets": s.serveUpdateAgentSecrets(ctx, resp, req) return @@ -1887,6 +2085,186 @@ func (s *cloudAgentServer) serveCreateAgentProtobuf(ctx context.Context, resp ht callResponseSent(ctx, s.hooks) } +func (s *cloudAgentServer) serveCreateAgentV2(ctx context.Context, resp http.ResponseWriter, req *http.Request) { + header := req.Header.Get("Content-Type") + i := strings.Index(header, ";") + if i == -1 { + i = len(header) + } + switch strings.TrimSpace(strings.ToLower(header[:i])) { + case "application/json": + s.serveCreateAgentV2JSON(ctx, resp, req) + case "application/protobuf": + s.serveCreateAgentV2Protobuf(ctx, resp, req) + default: + msg := fmt.Sprintf("unexpected Content-Type: %q", req.Header.Get("Content-Type")) + twerr := badRouteError(msg, req.Method, req.URL.Path) + s.writeError(ctx, resp, twerr) + } +} + +func (s *cloudAgentServer) serveCreateAgentV2JSON(ctx context.Context, resp http.ResponseWriter, req *http.Request) { + var err error + ctx = ctxsetters.WithMethodName(ctx, "CreateAgentV2") + ctx, err = callRequestRouted(ctx, s.hooks) + if err != nil { + s.writeError(ctx, resp, err) + return + } + + d := json.NewDecoder(req.Body) + rawReqBody := json.RawMessage{} + if err := d.Decode(&rawReqBody); err != nil { + s.handleRequestBodyError(ctx, resp, "the json request could not be decoded", err) + return + } + reqContent := new(CreateAgentV2Request) + unmarshaler := protojson.UnmarshalOptions{DiscardUnknown: true} + if err = unmarshaler.Unmarshal(rawReqBody, reqContent); err != nil { + s.handleRequestBodyError(ctx, resp, "the json request could not be decoded", err) + return + } + + handler := s.CloudAgent.CreateAgentV2 + if s.interceptor != nil { + handler = func(ctx context.Context, req *CreateAgentV2Request) (*CreateAgentV2Response, error) { + resp, err := s.interceptor( + func(ctx context.Context, req interface{}) (interface{}, error) { + typedReq, ok := req.(*CreateAgentV2Request) + if !ok { + return nil, twirp.InternalError("failed type assertion req.(*CreateAgentV2Request) when calling interceptor") + } + return s.CloudAgent.CreateAgentV2(ctx, typedReq) + }, + )(ctx, req) + if resp != nil { + typedResp, ok := resp.(*CreateAgentV2Response) + if !ok { + return nil, twirp.InternalError("failed type assertion resp.(*CreateAgentV2Response) when calling interceptor") + } + return typedResp, err + } + return nil, err + } + } + + // Call service method + var respContent *CreateAgentV2Response + func() { + defer ensurePanicResponses(ctx, resp, s.hooks) + respContent, err = handler(ctx, reqContent) + }() + + if err != nil { + s.writeError(ctx, resp, err) + return + } + if respContent == nil { + s.writeError(ctx, resp, twirp.InternalError("received a nil *CreateAgentV2Response and nil error while calling CreateAgentV2. nil responses are not supported")) + return + } + + ctx = callResponsePrepared(ctx, s.hooks) + + marshaler := &protojson.MarshalOptions{UseProtoNames: !s.jsonCamelCase, EmitUnpopulated: !s.jsonSkipDefaults} + respBytes, err := marshaler.Marshal(respContent) + if err != nil { + s.writeError(ctx, resp, wrapInternal(err, "failed to marshal json response")) + return + } + + ctx = ctxsetters.WithStatusCode(ctx, http.StatusOK) + resp.Header().Set("Content-Type", "application/json") + resp.Header().Set("Content-Length", strconv.Itoa(len(respBytes))) + resp.WriteHeader(http.StatusOK) + + if n, err := resp.Write(respBytes); err != nil { + msg := fmt.Sprintf("failed to write response, %d of %d bytes written: %s", n, len(respBytes), err.Error()) + twerr := twirp.NewError(twirp.Unknown, msg) + ctx = callError(ctx, s.hooks, twerr) + } + callResponseSent(ctx, s.hooks) +} + +func (s *cloudAgentServer) serveCreateAgentV2Protobuf(ctx context.Context, resp http.ResponseWriter, req *http.Request) { + var err error + ctx = ctxsetters.WithMethodName(ctx, "CreateAgentV2") + ctx, err = callRequestRouted(ctx, s.hooks) + if err != nil { + s.writeError(ctx, resp, err) + return + } + + buf, err := io.ReadAll(req.Body) + if err != nil { + s.handleRequestBodyError(ctx, resp, "failed to read request body", err) + return + } + reqContent := new(CreateAgentV2Request) + if err = proto.Unmarshal(buf, reqContent); err != nil { + s.writeError(ctx, resp, malformedRequestError("the protobuf request could not be decoded")) + return + } + + handler := s.CloudAgent.CreateAgentV2 + if s.interceptor != nil { + handler = func(ctx context.Context, req *CreateAgentV2Request) (*CreateAgentV2Response, error) { + resp, err := s.interceptor( + func(ctx context.Context, req interface{}) (interface{}, error) { + typedReq, ok := req.(*CreateAgentV2Request) + if !ok { + return nil, twirp.InternalError("failed type assertion req.(*CreateAgentV2Request) when calling interceptor") + } + return s.CloudAgent.CreateAgentV2(ctx, typedReq) + }, + )(ctx, req) + if resp != nil { + typedResp, ok := resp.(*CreateAgentV2Response) + if !ok { + return nil, twirp.InternalError("failed type assertion resp.(*CreateAgentV2Response) when calling interceptor") + } + return typedResp, err + } + return nil, err + } + } + + // Call service method + var respContent *CreateAgentV2Response + func() { + defer ensurePanicResponses(ctx, resp, s.hooks) + respContent, err = handler(ctx, reqContent) + }() + + if err != nil { + s.writeError(ctx, resp, err) + return + } + if respContent == nil { + s.writeError(ctx, resp, twirp.InternalError("received a nil *CreateAgentV2Response and nil error while calling CreateAgentV2. nil responses are not supported")) + return + } + + ctx = callResponsePrepared(ctx, s.hooks) + + respBytes, err := proto.Marshal(respContent) + if err != nil { + s.writeError(ctx, resp, wrapInternal(err, "failed to marshal proto response")) + return + } + + ctx = ctxsetters.WithStatusCode(ctx, http.StatusOK) + resp.Header().Set("Content-Type", "application/protobuf") + resp.Header().Set("Content-Length", strconv.Itoa(len(respBytes))) + resp.WriteHeader(http.StatusOK) + if n, err := resp.Write(respBytes); err != nil { + msg := fmt.Sprintf("failed to write response, %d of %d bytes written: %s", n, len(respBytes), err.Error()) + twerr := twirp.NewError(twirp.Unknown, msg) + ctx = callError(ctx, s.hooks, twerr) + } + callResponseSent(ctx, s.hooks) +} + func (s *cloudAgentServer) serveListAgents(ctx context.Context, resp http.ResponseWriter, req *http.Request) { header := req.Header.Get("Content-Type") i := strings.Index(header, ";") @@ -2967,6 +3345,186 @@ func (s *cloudAgentServer) serveDeployAgentProtobuf(ctx context.Context, resp ht callResponseSent(ctx, s.hooks) } +func (s *cloudAgentServer) serveDeployAgentV2(ctx context.Context, resp http.ResponseWriter, req *http.Request) { + header := req.Header.Get("Content-Type") + i := strings.Index(header, ";") + if i == -1 { + i = len(header) + } + switch strings.TrimSpace(strings.ToLower(header[:i])) { + case "application/json": + s.serveDeployAgentV2JSON(ctx, resp, req) + case "application/protobuf": + s.serveDeployAgentV2Protobuf(ctx, resp, req) + default: + msg := fmt.Sprintf("unexpected Content-Type: %q", req.Header.Get("Content-Type")) + twerr := badRouteError(msg, req.Method, req.URL.Path) + s.writeError(ctx, resp, twerr) + } +} + +func (s *cloudAgentServer) serveDeployAgentV2JSON(ctx context.Context, resp http.ResponseWriter, req *http.Request) { + var err error + ctx = ctxsetters.WithMethodName(ctx, "DeployAgentV2") + ctx, err = callRequestRouted(ctx, s.hooks) + if err != nil { + s.writeError(ctx, resp, err) + return + } + + d := json.NewDecoder(req.Body) + rawReqBody := json.RawMessage{} + if err := d.Decode(&rawReqBody); err != nil { + s.handleRequestBodyError(ctx, resp, "the json request could not be decoded", err) + return + } + reqContent := new(DeployAgentV2Request) + unmarshaler := protojson.UnmarshalOptions{DiscardUnknown: true} + if err = unmarshaler.Unmarshal(rawReqBody, reqContent); err != nil { + s.handleRequestBodyError(ctx, resp, "the json request could not be decoded", err) + return + } + + handler := s.CloudAgent.DeployAgentV2 + if s.interceptor != nil { + handler = func(ctx context.Context, req *DeployAgentV2Request) (*DeployAgentV2Response, error) { + resp, err := s.interceptor( + func(ctx context.Context, req interface{}) (interface{}, error) { + typedReq, ok := req.(*DeployAgentV2Request) + if !ok { + return nil, twirp.InternalError("failed type assertion req.(*DeployAgentV2Request) when calling interceptor") + } + return s.CloudAgent.DeployAgentV2(ctx, typedReq) + }, + )(ctx, req) + if resp != nil { + typedResp, ok := resp.(*DeployAgentV2Response) + if !ok { + return nil, twirp.InternalError("failed type assertion resp.(*DeployAgentV2Response) when calling interceptor") + } + return typedResp, err + } + return nil, err + } + } + + // Call service method + var respContent *DeployAgentV2Response + func() { + defer ensurePanicResponses(ctx, resp, s.hooks) + respContent, err = handler(ctx, reqContent) + }() + + if err != nil { + s.writeError(ctx, resp, err) + return + } + if respContent == nil { + s.writeError(ctx, resp, twirp.InternalError("received a nil *DeployAgentV2Response and nil error while calling DeployAgentV2. nil responses are not supported")) + return + } + + ctx = callResponsePrepared(ctx, s.hooks) + + marshaler := &protojson.MarshalOptions{UseProtoNames: !s.jsonCamelCase, EmitUnpopulated: !s.jsonSkipDefaults} + respBytes, err := marshaler.Marshal(respContent) + if err != nil { + s.writeError(ctx, resp, wrapInternal(err, "failed to marshal json response")) + return + } + + ctx = ctxsetters.WithStatusCode(ctx, http.StatusOK) + resp.Header().Set("Content-Type", "application/json") + resp.Header().Set("Content-Length", strconv.Itoa(len(respBytes))) + resp.WriteHeader(http.StatusOK) + + if n, err := resp.Write(respBytes); err != nil { + msg := fmt.Sprintf("failed to write response, %d of %d bytes written: %s", n, len(respBytes), err.Error()) + twerr := twirp.NewError(twirp.Unknown, msg) + ctx = callError(ctx, s.hooks, twerr) + } + callResponseSent(ctx, s.hooks) +} + +func (s *cloudAgentServer) serveDeployAgentV2Protobuf(ctx context.Context, resp http.ResponseWriter, req *http.Request) { + var err error + ctx = ctxsetters.WithMethodName(ctx, "DeployAgentV2") + ctx, err = callRequestRouted(ctx, s.hooks) + if err != nil { + s.writeError(ctx, resp, err) + return + } + + buf, err := io.ReadAll(req.Body) + if err != nil { + s.handleRequestBodyError(ctx, resp, "failed to read request body", err) + return + } + reqContent := new(DeployAgentV2Request) + if err = proto.Unmarshal(buf, reqContent); err != nil { + s.writeError(ctx, resp, malformedRequestError("the protobuf request could not be decoded")) + return + } + + handler := s.CloudAgent.DeployAgentV2 + if s.interceptor != nil { + handler = func(ctx context.Context, req *DeployAgentV2Request) (*DeployAgentV2Response, error) { + resp, err := s.interceptor( + func(ctx context.Context, req interface{}) (interface{}, error) { + typedReq, ok := req.(*DeployAgentV2Request) + if !ok { + return nil, twirp.InternalError("failed type assertion req.(*DeployAgentV2Request) when calling interceptor") + } + return s.CloudAgent.DeployAgentV2(ctx, typedReq) + }, + )(ctx, req) + if resp != nil { + typedResp, ok := resp.(*DeployAgentV2Response) + if !ok { + return nil, twirp.InternalError("failed type assertion resp.(*DeployAgentV2Response) when calling interceptor") + } + return typedResp, err + } + return nil, err + } + } + + // Call service method + var respContent *DeployAgentV2Response + func() { + defer ensurePanicResponses(ctx, resp, s.hooks) + respContent, err = handler(ctx, reqContent) + }() + + if err != nil { + s.writeError(ctx, resp, err) + return + } + if respContent == nil { + s.writeError(ctx, resp, twirp.InternalError("received a nil *DeployAgentV2Response and nil error while calling DeployAgentV2. nil responses are not supported")) + return + } + + ctx = callResponsePrepared(ctx, s.hooks) + + respBytes, err := proto.Marshal(respContent) + if err != nil { + s.writeError(ctx, resp, wrapInternal(err, "failed to marshal proto response")) + return + } + + ctx = ctxsetters.WithStatusCode(ctx, http.StatusOK) + resp.Header().Set("Content-Type", "application/protobuf") + resp.Header().Set("Content-Length", strconv.Itoa(len(respBytes))) + resp.WriteHeader(http.StatusOK) + if n, err := resp.Write(respBytes); err != nil { + msg := fmt.Sprintf("failed to write response, %d of %d bytes written: %s", n, len(respBytes), err.Error()) + twerr := twirp.NewError(twirp.Unknown, msg) + ctx = callError(ctx, s.hooks, twerr) + } + callResponseSent(ctx, s.hooks) +} + func (s *cloudAgentServer) serveUpdateAgentSecrets(ctx context.Context, resp http.ResponseWriter, req *http.Request) { header := req.Header.Get("Content-Type") i := strings.Index(header, ";") @@ -4423,146 +4981,158 @@ func (s *cloudAgentServer) PathPrefix() string { } var twirpFileDescriptor6 = []byte{ - // 2253 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x59, 0x4b, 0x73, 0x13, 0xcb, - 0x15, 0xf6, 0xe8, 0x65, 0xeb, 0xc8, 0x06, 0xd1, 0x36, 0x66, 0x2c, 0xdb, 0x60, 0x0f, 0x90, 0x72, - 0xe0, 0x96, 0xb8, 0x90, 0xaa, 0x04, 0x48, 0x52, 0x15, 0x61, 0x0f, 0xb6, 0xb0, 0x91, 0x55, 0x2d, - 0xd9, 0x14, 0xb7, 0x52, 0x35, 0x19, 0xa4, 0x46, 0x99, 0xb2, 0xe6, 0xc1, 0xcc, 0x48, 0x5c, 0xaf, - 0xb3, 0x49, 0x52, 0xf9, 0x03, 0x59, 0x65, 0x97, 0x45, 0xfe, 0x40, 0xaa, 0x58, 0x65, 0x97, 0x1f, - 0x91, 0x45, 0x56, 0xc9, 0x22, 0xcb, 0xac, 0xb3, 0x48, 0xf5, 0x63, 0x46, 0x3d, 0xd2, 0xc8, 0x36, - 0x36, 0xb7, 0xee, 0x06, 0xd4, 0x7d, 0x4e, 0xf7, 0x79, 0x7d, 0xe7, 0x31, 0x6d, 0x58, 0xe9, 0x5b, - 0x43, 0x72, 0x62, 0x85, 0x46, 0xa7, 0xef, 0x0e, 0xba, 0x86, 0xd9, 0x23, 0x4e, 0x58, 0xf5, 0x7c, - 0x37, 0x74, 0xd1, 0xac, 0x20, 0x55, 0xee, 0xf4, 0x5c, 0xb7, 0xd7, 0x27, 0x8f, 0xd8, 0xf6, 0xbb, - 0xc1, 0xfb, 0x47, 0xa1, 0x65, 0x93, 0x20, 0x34, 0x6d, 0x8f, 0x73, 0x56, 0x96, 0xfa, 0x6e, 0xaf, - 0x47, 0xfc, 0x47, 0xae, 0x17, 0x5a, 0xae, 0x13, 0xf0, 0x5d, 0xed, 0x77, 0x0a, 0x40, 0x8d, 0xde, - 0xa7, 0x0f, 0x89, 0x13, 0xa2, 0x87, 0x90, 0x0b, 0x4f, 0x3d, 0xa2, 0x2a, 0x1b, 0xca, 0xd6, 0xb5, - 0x27, 0xb7, 0xaa, 0xe2, 0xf6, 0xea, 0x88, 0xa5, 0x7d, 0xea, 0x11, 0xcc, 0x98, 0xd0, 0x12, 0xe4, - 0x3b, 0xee, 0xc0, 0x09, 0xd5, 0xcc, 0x86, 0xb2, 0x95, 0xc7, 0x7c, 0x81, 0x9e, 0x42, 0x31, 0x16, - 0xad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 0x09, 0x4f, 0x65, 0xa7, 0x7b, 0x6a, 0x62, 0xc4, 0xcc, 0x4d, 0x1f, 0x31, 0xf3, 0xa3, 0x11, - 0x73, 0xfa, 0xec, 0x58, 0xb8, 0xfc, 0xec, 0xf8, 0x77, 0x05, 0x56, 0x24, 0x24, 0xf3, 0x08, 0x7c, - 0xd9, 0x5a, 0x84, 0xd6, 0xa0, 0xe8, 0x0e, 0x89, 0xff, 0xd1, 0xb7, 0x42, 0xc2, 0xfc, 0x32, 0x87, - 0x47, 0x1b, 0x32, 0x28, 0x72, 0x17, 0x01, 0x05, 0x1b, 0x18, 0x6d, 0x77, 0x48, 0x58, 0x1f, 0x60, - 0x03, 0x23, 0x5d, 0x69, 0x4d, 0xa8, 0xa4, 0x19, 0x72, 0x85, 0x7c, 0x18, 0xc2, 0x12, 0x76, 0xfb, - 0xfd, 0x77, 0x66, 0xe7, 0xe4, 0x32, 0x09, 0x71, 0xd9, 0xd9, 0x47, 0xdb, 0x87, 0x9b, 0x63, 0x72, - 0xaf, 0x60, 0xc4, 0x37, 0x34, 0xa7, 0xfb, 0xe4, 0x72, 0x75, 0xfb, 0x9c, 0x26, 0x53, 0xa7, 0xa9, - 0x23, 0xdd, 0x7d, 0x05, 0x35, 0x0d, 0xb8, 0x15, 0xf7, 0xab, 0xef, 0x02, 0x84, 0xda, 0x2b, 0xa9, - 0xe5, 0x8e, 0x83, 0x43, 0x82, 0xa0, 0x72, 0x91, 0xea, 0xff, 0x0c, 0x16, 0x5a, 0x24, 0x0c, 0x2d, - 0xa7, 0x17, 0x34, 0x4d, 0xdf, 0xb4, 0xcf, 0x7f, 0x7a, 0x88, 0xba, 0xbf, 0xb6, 0x07, 0xcb, 0xdb, - 0x7d, 0x8b, 0xdd, 0xc9, 0x2f, 0x90, 0x94, 0x28, 0x78, 0xf4, 0xb2, 0x48, 0x87, 0xe5, 0x58, 0x87, - 0x84, 0x2c, 0x2c, 0xb8, 0xb4, 0x5b, 0x70, 0x73, 0xfc, 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, 0x6d, 0xbc, 0x2b, 0xb0, 0x23, 0x3f, 0xfa, 0x7f, - 0x00, 0x00, 0x00, 0xff, 0xff, 0x46, 0x65, 0xa1, 0x21, 0x9b, 0x1e, 0x00, 0x00, + // 2444 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x5a, 0x4b, 0x6f, 0xdb, 0xca, + 0xf5, 0x37, 0xa9, 0x87, 0xad, 0x23, 0x3b, 0x56, 0xc6, 0x4e, 0x22, 0xcb, 0xf6, 0x8d, 0xcd, 0x24, + 0xff, 0xbf, 0x9b, 0x5c, 0x28, 0x37, 0x29, 0xd0, 0x26, 0x69, 0x0b, 0x54, 0xb1, 0x19, 0x5b, 0xb1, + 0x23, 0x0b, 0x23, 0xd9, 0x41, 0x8a, 0x02, 0xbc, 0x8c, 0x34, 0x51, 0x09, 0x8b, 0x8f, 0x90, 0x94, + 0x72, 0x0d, 0xb4, 0xab, 0x6e, 0x5a, 0xa0, 0x40, 0x37, 0xed, 0xba, 0xc0, 0x5d, 0x74, 0xd1, 0x2f, + 0x50, 0x20, 0x40, 0x81, 0xee, 0xfa, 0x31, 0xba, 0x6a, 0x17, 0xf7, 0x4b, 0xb4, 0xe0, 0x0c, 0x1f, + 0xc3, 0x87, 0x6c, 0xd9, 0x4e, 0xd0, 0x4d, 0xc2, 0x99, 0x73, 0x66, 0xe6, 0x3c, 0x7f, 0x67, 0xe6, + 0xc8, 0xb0, 0x32, 0xd4, 0xc6, 0xe4, 0x44, 0x73, 0x95, 0xde, 0xd0, 0x1c, 0xf5, 0x15, 0x75, 0x40, + 0x0c, 0xb7, 0x6e, 0xd9, 0xa6, 0x6b, 0xa2, 0x59, 0x9f, 0x54, 0xbb, 0x3d, 0x30, 0xcd, 0xc1, 0x90, + 0x3c, 0xa4, 0xd3, 0x6f, 0x47, 0xef, 0x1e, 0xba, 0x9a, 0x4e, 0x1c, 0x57, 0xd5,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0x54, 0xbe, 0x3c, 0x26, 0x32, + 0x35, 0xa3, 0xa8, 0x26, 0x32, 0x35, 0xab, 0xb6, 0x4a, 0x33, 0x88, 0xc0, 0x72, 0x56, 0x61, 0x43, + 0x77, 0xc3, 0xc5, 0x67, 0x14, 0xd4, 0xda, 0xbd, 0x73, 0xb8, 0x82, 0x63, 0x9e, 0xbf, 0xf8, 0xd9, + 0x9d, 0x81, 0xe6, 0xfe, 0x62, 0xf4, 0xb6, 0xde, 0x33, 0xf5, 0x87, 0xfe, 0x22, 0xf6, 0x97, 0x23, + 0x3d, 0x73, 0x18, 0x4c, 0xfc, 0x45, 0x5c, 0x38, 0xd0, 0xc6, 0x64, 0x9f, 0xd6, 0x4d, 0xd3, 0x35, + 0xbf, 0x13, 0xaf, 0xf9, 0xe3, 0x67, 0xcf, 0xe8, 0xc4, 0xdb, 0x22, 0x5d, 0xf2, 0xfd, 0xff, 0x06, + 0x00, 0x00, 0xff, 0xff, 0xd7, 0xfa, 0x33, 0x6d, 0xa0, 0x22, 0x00, 0x00, } diff --git a/protobufs/livekit_cloud_agent.proto b/protobufs/livekit_cloud_agent.proto index ce9959311..e5b6962d5 100644 --- a/protobufs/livekit_cloud_agent.proto +++ b/protobufs/livekit_cloud_agent.proto @@ -47,6 +47,7 @@ message AgentSecret { google.protobuf.Timestamp created_at = 3; google.protobuf.Timestamp updated_at = 4; AgentSecretKind kind = 5; + repeated string environments = 6; } message CreateAgentRequest { @@ -69,6 +70,17 @@ message CreateAgentResponse { PresignedPostRequest presigned_post_request = 8; } +message CreateAgentV2Request { + repeated AgentSecret secrets = 1; + repeated string regions = 2; +} + +message CreateAgentV2Response { + string agent_id = 1 [(logger.name) = "agentID"]; + string status = 2; + repeated string server_regions = 3; +} + message PresignedPostRequest { string url = 1; map values = 2; @@ -89,6 +101,9 @@ message AgentDeployment { string cpu_limit = 12; string server_region = 13; repeated AgentEvent events = 14; + string environment = 15; + string version = 16; + string agent_name = 17; } message AgentInfo { @@ -118,6 +133,7 @@ message AgentVersion { string status = 6; string owner = 7; bool draining = 8; + bool active = 9; } message ListAgentVersionsRequest { @@ -160,15 +176,32 @@ message DeployAgentRequest { int32 replicas = 4 [deprecated=true]; int32 max_replicas = 5 [deprecated=true]; string cpu_req = 6 [deprecated=true]; + string environment = 7; } message DeployAgentResponse { bool success = 1; string message = 2; string agent_id = 3 [(logger.name) = "agentID"]; - string presigned_url = 4; + string presigned_url = 4 [deprecated=true]; string tag = 5; PresignedPostRequest presigned_post_request = 6; + string environment = 7; +} + +message DeployAgentV2Request { + string agent_id = 1 [(logger.name) = "agentID"]; + repeated AgentSecret secrets = 2; + string environment = 3; +} + +message DeployAgentV2Response { + bool success = 1; + string message = 2; + string agent_id = 3 [(logger.name) = "agentID"]; + string tag = 4; + PresignedPostRequest presigned_req = 5; + string environment = 6; } message UpdateAgentSecretsRequest { @@ -198,6 +231,7 @@ message RollbackAgentResponse { message DeleteAgentRequest { string agent_id = 1 [(logger.name) = "agentID"]; string agent_name = 2; + string environment = 3; // optional } message DeleteAgentResponse { @@ -302,12 +336,14 @@ message GetPrivateLinkStatusResponse { service CloudAgent { rpc CreateAgent(CreateAgentRequest) returns (CreateAgentResponse) {} + rpc CreateAgentV2(CreateAgentV2Request) returns (CreateAgentV2Response) {} rpc ListAgents(ListAgentsRequest) returns (ListAgentsResponse) {} rpc ListAgentVersions(ListAgentVersionsRequest) returns (ListAgentVersionsResponse) {} rpc ListAgentSecrets(ListAgentSecretsRequest) returns (ListAgentSecretsResponse) {} rpc UpdateAgent(UpdateAgentRequest) returns (UpdateAgentResponse) {} rpc RestartAgent(RestartAgentRequest) returns (RestartAgentResponse) {} rpc DeployAgent(DeployAgentRequest) returns (DeployAgentResponse) {} + rpc DeployAgentV2(DeployAgentV2Request) returns (DeployAgentV2Response) {} rpc UpdateAgentSecrets(UpdateAgentSecretsRequest) returns (UpdateAgentSecretsResponse) {} rpc RollbackAgent(RollbackAgentRequest) returns (RollbackAgentResponse) {} rpc DeleteAgent(DeleteAgentRequest) returns (DeleteAgentResponse) {}