2022-11-04 00:49:07 +08:00
|
|
|
syntax = "proto3";
|
|
|
|
|
2023-06-01 23:01:43 +08:00
|
|
|
message Error {
|
|
|
|
string details = 1;
|
2022-11-04 00:49:07 +08:00
|
|
|
}
|
|
|
|
|
2023-02-28 00:45:14 +08:00
|
|
|
message Secret {
|
|
|
|
string name = 1;
|
|
|
|
string value = 2;
|
|
|
|
}
|
|
|
|
|
2022-12-27 08:16:47 +08:00
|
|
|
message SecretCreated {
|
|
|
|
string name = 1;
|
|
|
|
string value = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message SecretUpdated {
|
|
|
|
string name = 1;
|
|
|
|
string value = 2;
|
|
|
|
}
|
|
|
|
|
2023-02-28 00:45:14 +08:00
|
|
|
message SecretDeleted {
|
|
|
|
string name = 1;
|
|
|
|
}
|
|
|
|
|
2023-08-23 05:25:14 +08:00
|
|
|
message FileSystem {
|
|
|
|
string id = 1;
|
|
|
|
string name = 2;
|
|
|
|
string type = 3;
|
|
|
|
string value = 4;
|
|
|
|
}
|
|
|
|
|
|
|
|
message FileSystemCreated {
|
|
|
|
string id = 1;
|
|
|
|
string name = 2;
|
|
|
|
string type = 3;
|
|
|
|
string value = 4;
|
|
|
|
}
|
|
|
|
|
|
|
|
message FileSystemUpdated {
|
|
|
|
string id = 1;
|
|
|
|
string name = 2;
|
|
|
|
string type = 3;
|
|
|
|
string value = 4;
|
|
|
|
}
|
|
|
|
|
|
|
|
message FileSystemDeleted {
|
|
|
|
string id = 1;
|
|
|
|
}
|
|
|
|
|
2023-12-07 05:53:49 +08:00
|
|
|
message DeploymentGroupSecret {
|
|
|
|
string name = 1;
|
|
|
|
string value = 2;
|
|
|
|
string deployment_group_id = 3;
|
|
|
|
}
|
|
|
|
|
2023-11-15 04:20:46 +08:00
|
|
|
message DeploymentGroup {
|
|
|
|
string id = 1;
|
|
|
|
string name = 2;
|
|
|
|
string mode = 3;
|
2023-12-07 05:53:49 +08:00
|
|
|
repeated DeploymentGroupSecret secrets = 4;
|
2024-01-16 05:09:15 +08:00
|
|
|
string clustering = 5;
|
|
|
|
string zta_provider = 6;
|
|
|
|
string zta_key = 7;
|
2024-01-31 01:20:46 +08:00
|
|
|
repeated AgentKey agent_keys = 8;
|
2024-05-29 16:31:08 +08:00
|
|
|
string url = 9;
|
2023-11-15 04:20:46 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
message DeploymentGroupCreated {
|
|
|
|
string id = 1;
|
|
|
|
string name = 2;
|
|
|
|
string mode = 3;
|
2024-01-16 05:09:15 +08:00
|
|
|
string clustering = 5;
|
|
|
|
string zta_provider = 6;
|
|
|
|
string zta_key = 7;
|
2024-01-31 01:20:46 +08:00
|
|
|
repeated AgentKey agent_keys = 8;
|
2024-05-29 16:31:08 +08:00
|
|
|
string url = 9;
|
2023-11-15 04:20:46 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
message DeploymentGroupUpdated {
|
|
|
|
string id = 1;
|
|
|
|
string name = 2;
|
2024-03-26 02:08:40 +08:00
|
|
|
repeated DeploymentGroupSecret secrets = 3;
|
|
|
|
string clustering = 4;
|
|
|
|
string zta_provider = 5;
|
|
|
|
string zta_key = 6;
|
|
|
|
repeated AgentKey agent_keys = 7;
|
2024-05-29 16:31:08 +08:00
|
|
|
string url = 8;
|
2023-11-15 04:20:46 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
message DeploymentGroupDeleted {
|
|
|
|
string id = 1;
|
|
|
|
}
|
|
|
|
|
2024-01-31 01:20:46 +08:00
|
|
|
message AgentKey {
|
|
|
|
string id = 1;
|
|
|
|
string key = 2;
|
|
|
|
string deployment_group_id = 3;
|
|
|
|
}
|
|
|
|
|
2023-06-06 19:49:09 +08:00
|
|
|
message UserConnected {
|
2023-01-07 03:14:44 +08:00
|
|
|
string name = 1;
|
2023-06-01 23:01:43 +08:00
|
|
|
repeated Secret secrets = 2;
|
2023-08-23 05:25:14 +08:00
|
|
|
repeated FileSystem file_systems = 3;
|
2024-01-06 01:17:39 +08:00
|
|
|
repeated DeploymentGroup deployment_groups = 4;
|
2024-03-26 02:08:40 +08:00
|
|
|
repeated AppDeployment app_deployments = 5;
|
2024-04-03 21:43:45 +08:00
|
|
|
repeated Agent agents = 6;
|
2024-01-06 01:17:39 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
message AgentConnected {
|
|
|
|
string name = 2;
|
|
|
|
string public_key = 3;
|
|
|
|
int32 deployment_group_id = 4;
|
|
|
|
repeated Secret secrets = 5;
|
|
|
|
repeated FileSystem file_systems = 6;
|
|
|
|
repeated DeploymentGroup deployment_groups = 7;
|
2024-03-26 02:08:40 +08:00
|
|
|
repeated AppDeployment app_deployments = 8;
|
2024-04-03 21:43:45 +08:00
|
|
|
repeated Agent agents = 9;
|
2022-11-04 00:49:07 +08:00
|
|
|
}
|
2022-12-27 08:16:47 +08:00
|
|
|
|
2024-03-26 02:08:40 +08:00
|
|
|
message AppDeployment {
|
2024-03-08 03:47:33 +08:00
|
|
|
string id = 1;
|
|
|
|
string title = 2;
|
|
|
|
string sha = 3;
|
2024-03-26 02:08:40 +08:00
|
|
|
string revision_id = 4;
|
|
|
|
string slug = 5;
|
|
|
|
string deployment_group_id = 6;
|
|
|
|
string deployed_by = 7;
|
|
|
|
int64 deployed_at = 8;
|
2024-04-16 23:11:15 +08:00
|
|
|
bool multi_session = 9;
|
|
|
|
string access_type = 10;
|
2024-06-03 20:54:45 +08:00
|
|
|
string version = 11;
|
2024-03-08 03:47:33 +08:00
|
|
|
}
|
|
|
|
|
2024-04-10 00:45:19 +08:00
|
|
|
message AppDeploymentStarted {
|
2024-03-26 02:08:40 +08:00
|
|
|
AppDeployment app_deployment = 1;
|
2024-03-08 03:47:33 +08:00
|
|
|
}
|
|
|
|
|
2024-04-10 00:45:19 +08:00
|
|
|
message AppDeploymentStopped {
|
|
|
|
string id = 1;
|
|
|
|
}
|
|
|
|
|
2024-03-15 17:33:35 +08:00
|
|
|
message UserDeleted {
|
|
|
|
string id = 1;
|
|
|
|
}
|
|
|
|
|
2024-04-03 21:43:45 +08:00
|
|
|
message AgentJoined {
|
|
|
|
Agent agent = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message AgentLeft {
|
2024-04-05 22:24:19 +08:00
|
|
|
string id = 1;
|
2024-04-03 21:43:45 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
message Agent {
|
|
|
|
string id = 1;
|
|
|
|
string name = 2;
|
|
|
|
string org_id = 3;
|
|
|
|
string deployment_group_id = 4;
|
|
|
|
}
|
|
|
|
|
2024-06-12 04:13:37 +08:00
|
|
|
/**
|
|
|
|
* We're only using Enum in this case because
|
|
|
|
* the Client is the source of the information,
|
|
|
|
* and the Server will always be up-to-date.
|
|
|
|
*
|
|
|
|
* Otherwise, it shouldn't be used.
|
|
|
|
*/
|
|
|
|
enum AppDeploymentStatusType {
|
2024-06-17 21:34:31 +08:00
|
|
|
preparing = 0;
|
|
|
|
available = 1;
|
2024-06-12 04:13:37 +08:00
|
|
|
}
|
|
|
|
|
2024-06-04 01:15:11 +08:00
|
|
|
message AppDeploymentStatus {
|
|
|
|
string id = 1;
|
|
|
|
string deployment_group_id = 2;
|
|
|
|
string version = 3;
|
2024-06-12 04:13:37 +08:00
|
|
|
AppDeploymentStatusType status = 4;
|
2024-06-04 01:15:11 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
message AppDeploymentStatusReport {
|
|
|
|
repeated AppDeploymentStatus app_deployment_statuses = 1;
|
|
|
|
}
|
|
|
|
|
2022-12-27 08:16:47 +08:00
|
|
|
message Event {
|
|
|
|
oneof type {
|
2023-06-01 23:01:43 +08:00
|
|
|
SecretCreated secret_created = 1;
|
|
|
|
SecretUpdated secret_updated = 2;
|
|
|
|
SecretDeleted secret_deleted = 3;
|
2023-06-06 19:49:09 +08:00
|
|
|
UserConnected user_connected = 4;
|
2023-08-23 05:25:14 +08:00
|
|
|
FileSystemCreated file_system_created = 5;
|
|
|
|
FileSystemUpdated file_system_updated = 6;
|
|
|
|
FileSystemDeleted file_system_deleted = 7;
|
2023-11-15 04:20:46 +08:00
|
|
|
DeploymentGroupCreated deployment_group_created = 8;
|
|
|
|
DeploymentGroupUpdated deployment_group_updated = 9;
|
|
|
|
DeploymentGroupDeleted deployment_group_deleted = 10;
|
2024-01-06 01:17:39 +08:00
|
|
|
AgentConnected agent_connected = 11;
|
2024-04-10 00:45:19 +08:00
|
|
|
AppDeploymentStarted app_deployment_started = 12;
|
2024-03-26 02:08:40 +08:00
|
|
|
UserDeleted user_deleted = 13;
|
2024-04-03 21:43:45 +08:00
|
|
|
AgentJoined agent_joined = 14;
|
|
|
|
AgentLeft agent_left = 15;
|
2024-04-10 00:45:19 +08:00
|
|
|
AppDeploymentStopped app_deployment_stopped = 16;
|
2022-12-27 08:16:47 +08:00
|
|
|
}
|
|
|
|
}
|