2024-01-28 07:35:42 +08:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package memos.api.v2;
|
|
|
|
|
|
|
|
import "google/api/annotations.proto";
|
|
|
|
|
|
|
|
option go_package = "gen/api/v2";
|
|
|
|
|
|
|
|
service WorkspaceService {
|
2024-02-01 21:26:09 +08:00
|
|
|
// GetWorkspaceProfile returns the workspace profile.
|
2024-01-28 07:35:42 +08:00
|
|
|
rpc GetWorkspaceProfile(GetWorkspaceProfileRequest) returns (GetWorkspaceProfileResponse) {
|
|
|
|
option (google.api.http) = {get: "/api/v2/workspace/profile"};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
message WorkspaceProfile {
|
2024-02-20 23:02:01 +08:00
|
|
|
// version is the current version of instance
|
2024-01-28 07:35:42 +08:00
|
|
|
string version = 1;
|
2024-02-20 23:02:01 +08:00
|
|
|
// mode is the instance mode (e.g. "prod", "dev" or "demo").
|
2024-01-28 07:35:42 +08:00
|
|
|
string mode = 2;
|
2024-02-20 23:02:01 +08:00
|
|
|
// allow_registration is whether the registration is allowed.
|
2024-01-28 07:35:42 +08:00
|
|
|
bool allow_registration = 3;
|
2024-02-20 23:02:01 +08:00
|
|
|
// allow_password_login is whether the password login is allowed.
|
2024-01-28 07:35:42 +08:00
|
|
|
bool disable_password_login = 4;
|
2024-02-20 23:02:01 +08:00
|
|
|
// additional_script is the additional script.
|
2024-01-28 07:35:42 +08:00
|
|
|
string additional_script = 5;
|
2024-02-20 23:02:01 +08:00
|
|
|
// additional_style is the additional style.
|
2024-01-28 07:35:42 +08:00
|
|
|
string additional_style = 6;
|
|
|
|
}
|
|
|
|
|
|
|
|
message GetWorkspaceProfileRequest {}
|
|
|
|
|
|
|
|
message GetWorkspaceProfileResponse {
|
|
|
|
WorkspaceProfile workspace_profile = 1;
|
|
|
|
}
|