Skip to content

Commit 2dac974

Browse files
committed
fix the proto to support cloud agents v2 api
1 parent af12e0e commit 2dac974

File tree

1 file changed

+30
-1
lines changed

1 file changed

+30
-1
lines changed

protobufs/livekit_cloud_agent.proto

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,17 @@ message CreateAgentResponse {
7070
PresignedPostRequest presigned_post_request = 8;
7171
}
7272

73+
message CreateAgentV2Request {
74+
repeated AgentSecret secrets = 1;
75+
repeated string regions = 2;
76+
}
77+
78+
message CreateAgentV2Response {
79+
string agent_id = 1 [(logger.name) = "agentID"];
80+
string status = 2;
81+
repeated string server_regions = 3;
82+
}
83+
7384
message PresignedPostRequest {
7485
string url = 1;
7586
map<string, string> values = 2;
@@ -169,12 +180,28 @@ message DeployAgentResponse {
169180
bool success = 1;
170181
string message = 2;
171182
string agent_id = 3 [(logger.name) = "agentID"];
172-
string presigned_url = 4;
183+
string presigned_url = 4 [deprecated=true];
173184
string tag = 5;
174185
PresignedPostRequest presigned_post_request = 6;
175186
string environment = 7;
176187
}
177188

189+
message DeployAgentV2Request {
190+
string agent_id = 1 [(logger.name) = "agentID"];
191+
repeated AgentSecret secrets = 2;
192+
string environment = 3;
193+
string region = 4;
194+
}
195+
196+
message DeployAgentV2Response {
197+
bool success = 1;
198+
string message = 2;
199+
string agent_id = 3 [(logger.name) = "agentID"];
200+
string tag = 4;
201+
PresignedPostRequest presigned_req = 5;
202+
string environment = 6;
203+
}
204+
178205
message UpdateAgentSecretsRequest {
179206
string agent_id = 1 [(logger.name) = "agentID"];
180207
string agent_name = 2;
@@ -304,12 +331,14 @@ message GetPrivateLinkStatusResponse {
304331

305332
service CloudAgent {
306333
rpc CreateAgent(CreateAgentRequest) returns (CreateAgentResponse) {}
334+
rpc CreateAgentV2(CreateAgentV2Request) returns (CreateAgentV2Response) {}
307335
rpc ListAgents(ListAgentsRequest) returns (ListAgentsResponse) {}
308336
rpc ListAgentVersions(ListAgentVersionsRequest) returns (ListAgentVersionsResponse) {}
309337
rpc ListAgentSecrets(ListAgentSecretsRequest) returns (ListAgentSecretsResponse) {}
310338
rpc UpdateAgent(UpdateAgentRequest) returns (UpdateAgentResponse) {}
311339
rpc RestartAgent(RestartAgentRequest) returns (RestartAgentResponse) {}
312340
rpc DeployAgent(DeployAgentRequest) returns (DeployAgentResponse) {}
341+
rpc DeployAgentV2(DeployAgentV2Request) returns (DeployAgentV2Response) {}
313342
rpc UpdateAgentSecrets(UpdateAgentSecretsRequest) returns (UpdateAgentSecretsResponse) {}
314343
rpc RollbackAgent(RollbackAgentRequest) returns (RollbackAgentResponse) {}
315344
rpc DeleteAgent(DeleteAgentRequest) returns (DeleteAgentResponse) {}

0 commit comments

Comments
 (0)