diff --git a/errors/backend/env-not-found.md b/errors/backend/env-not-found.md new file mode 100644 index 0000000000..49607bcebc --- /dev/null +++ b/errors/backend/env-not-found.md @@ -0,0 +1,9 @@ +--- +name = "BACKEND_ENV_NOT_FOUND" +description = "Backend environment not found." +http_status = 404 +--- + +# Backend Environment Not Found + +The requested environment could not be found. diff --git a/errors/backend/env-update-failed.md b/errors/backend/env-update-failed.md new file mode 100644 index 0000000000..0c714df197 --- /dev/null +++ b/errors/backend/env-update-failed.md @@ -0,0 +1,9 @@ +--- +name = "BACKEND_ENV_UPDATE_FAILED" +description = "Failed to update Backend environment: {reason}." +http_status = 400 +--- + +# Backend Environment Update Failed + +The environment could not be updated for the provided reason. diff --git a/errors/opengb/invalid-neon-project-config.md b/errors/backend/invalid-neon-project-config.md similarity index 70% rename from errors/opengb/invalid-neon-project-config.md rename to errors/backend/invalid-neon-project-config.md index ac5631bc8b..b27afd62e8 100644 --- a/errors/opengb/invalid-neon-project-config.md +++ b/errors/backend/invalid-neon-project-config.md @@ -1,10 +1,10 @@ --- -name = "OPENGB_INVALID_NEON_PROJECT_CONFIG" +name = "BACKEND_INVALID_NEON_PROJECT_CONFIG" description = "Neon project config is invalid: {reason}." http_status = 400 --- -# OpenGB Invalid Neon Project Config +# Backend Invalid Neon Project Config The Neon project config given was invalid. See https://api-docs.neon.tech/reference/updateproject for more info. diff --git a/errors/opengb/invalid-variable.md b/errors/backend/invalid-variable.md similarity index 68% rename from errors/opengb/invalid-variable.md rename to errors/backend/invalid-variable.md index 2547c8c94e..5d3106a2da 100644 --- a/errors/opengb/invalid-variable.md +++ b/errors/backend/invalid-variable.md @@ -1,9 +1,9 @@ --- -name = "OPENGB_INVALID_VARIABLE" +name = "BACKEND_INVALID_VARIABLE" description = "Environment variable is invalid: {reason}." http_status = 400 --- -# OpenGB Invalid Variable +# Backend Invalid Variable A provided environment variable is invalid. diff --git a/errors/backend/module-db-not-found.md b/errors/backend/module-db-not-found.md new file mode 100644 index 0000000000..adf285099d --- /dev/null +++ b/errors/backend/module-db-not-found.md @@ -0,0 +1,9 @@ +--- +name = "BACKEND_MODULE_DB_NOT_FOUND" +description = "Backend module database not found." +http_status = 404 +--- + +# Backend Module DB Not Found + +The requested module database could not be found. diff --git a/errors/backend/project-not-found.md b/errors/backend/project-not-found.md new file mode 100644 index 0000000000..76de368c18 --- /dev/null +++ b/errors/backend/project-not-found.md @@ -0,0 +1,9 @@ +--- +name = "BACKEND_PROJECT_NOT_FOUND" +description = "Backend project not found." +http_status = 404 +--- + +# Backend Project Not Found + +The requested project could not be found. diff --git a/errors/opengb/env-not-found.md b/errors/opengb/env-not-found.md deleted file mode 100644 index b16282c2e0..0000000000 --- a/errors/opengb/env-not-found.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -name = "OPENGB_ENV_NOT_FOUND" -description = "OpenGB environment not found." -http_status = 404 ---- - -# OpenGB Environment Not Found - -The requested environment could not be found. diff --git a/errors/opengb/env-update-failed.md b/errors/opengb/env-update-failed.md deleted file mode 100644 index 306fe6b567..0000000000 --- a/errors/opengb/env-update-failed.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -name = "OPENGB_ENV_UPDATE_FAILED" -description = "Failed to update OpenGB environment: {reason}." -http_status = 400 ---- - -# OpenGB Environment Update Failed - -The environment could not be updated for the provided reason. diff --git a/errors/opengb/module-db-not-found.md b/errors/opengb/module-db-not-found.md deleted file mode 100644 index 86966463e8..0000000000 --- a/errors/opengb/module-db-not-found.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -name = "OPENGB_MODULE_DB_NOT_FOUND" -description = "OpenGB module database not found." -http_status = 404 ---- - -# OpenGB Module DB Not Found - -The requested module database could not be found. diff --git a/errors/opengb/project-not-found.md b/errors/opengb/project-not-found.md deleted file mode 100644 index 24db2fbaee..0000000000 --- a/errors/opengb/project-not-found.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -name = "OPENGB_PROJECT_NOT_FOUND" -description = "OpenGB project not found." -http_status = 404 ---- - -# OpenGB Project Not Found - -The requested project could not be found. diff --git a/proto/backend/opengb.proto b/proto/backend/opengb.proto deleted file mode 100644 index 4e5a060daa..0000000000 --- a/proto/backend/opengb.proto +++ /dev/null @@ -1,42 +0,0 @@ -syntax = "proto3"; - -package rivet.backend.opengb; - -import "proto/common.proto"; - -message Project { - rivet.common.Uuid project_id = 1; - rivet.common.Uuid developer_team_id = 2; - string name_id = 3; - string display_name = 4; - int64 create_ts = 5; -} - -message Environment { - rivet.common.Uuid environment_id = 1; - rivet.common.Uuid project_id = 2; - - string name_id = 3; - string display_name = 4; - Tier tier = 5; - - string neon_project_id = 6; - optional rivet.common.Uuid last_upload_id = 7; - - int64 create_ts = 8; - optional int64 destroy_ts = 9; -} - -enum Tier { - SHARED = 0; - DEDICATED = 1; -} - -message Module { - message Db { - string name = 1; - } - - string name = 1; - optional Db db = 2; -}