livebook/proto/messages.proto

179 lines
3.5 KiB
Protocol Buffer
Raw Normal View History

syntax = "proto3";
message Error {
string details = 1;
}
message Secret {
string name = 1;
string value = 2;
}
message SecretCreated {
string name = 1;
string value = 2;
}
message SecretUpdated {
string name = 1;
string value = 2;
}
message SecretDeleted {
string name = 1;
}
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;
}
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;
repeated DeploymentGroupSecret secrets = 4;
string clustering = 5;
string zta_provider = 6;
string zta_key = 7;
repeated AgentKey agent_keys = 8;
repeated DeployedApp deployed_apps = 9;
2023-11-15 04:20:46 +08:00
}
message DeploymentGroupCreated {
string id = 1;
string name = 2;
string mode = 3;
repeated DeploymentGroupSecret secrets = 4;
string clustering = 5;
string zta_provider = 6;
string zta_key = 7;
repeated AgentKey agent_keys = 8;
repeated DeployedApp deployed_apps = 9;
2023-11-15 04:20:46 +08:00
}
message DeploymentGroupUpdated {
string id = 1;
string name = 2;
string mode = 3;
repeated DeploymentGroupSecret secrets = 4;
string clustering = 5;
string zta_provider = 6;
string zta_key = 7;
repeated AgentKey agent_keys = 8;
repeated DeployedApp deployed_apps = 9;
2023-11-15 04:20:46 +08:00
}
message DeploymentGroupDeleted {
string id = 1;
}
message AgentKey {
string id = 1;
string key = 2;
string deployment_group_id = 3;
}
message AgentKeyCreated {
string id = 1;
string key = 2;
string deployment_group_id = 3;
}
message AgentKeyDeleted {
string id = 1;
string key = 2;
string deployment_group_id = 3;
}
message UserConnected {
string name = 1;
repeated Secret secrets = 2;
repeated FileSystem file_systems = 3;
repeated DeploymentGroup deployment_groups = 4;
}
message AgentConnected {
int32 id = 1;
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;
}
message DeployedApp {
string id = 1;
string title = 2;
string sha = 3;
string archive_url = 4;
string app_id = 5;
string slug = 6;
string deployment_group_id = 7;
string deployed_by = 8;
string deployed_at = 9;
}
message AppDeploymentCreated {
string id = 1;
string title = 2;
string sha = 3;
string archive_url = 4;
string app_id = 5;
string slug = 6;
string deployment_group_id = 7;
string deployed_by = 8;
string deployed_at = 9;
}
2024-03-15 17:33:35 +08:00
message UserDeleted {
string id = 1;
}
message Event {
oneof type {
SecretCreated secret_created = 1;
SecretUpdated secret_updated = 2;
SecretDeleted secret_deleted = 3;
UserConnected user_connected = 4;
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;
AgentConnected agent_connected = 11;
AgentKeyCreated agent_key_created = 12;
AgentKeyDeleted agent_key_deleted = 13;
AppDeploymentCreated app_deployment_created = 14;
2024-03-15 17:33:35 +08:00
UserDeleted user_deleted = 15;
}
}