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-03-21 21:39:34 +08:00
|
|
|
// The name of intance owner.
|
|
|
|
// Format: "users/{id}"
|
|
|
|
string owner = 1;
|
2024-02-20 23:02:01 +08:00
|
|
|
// version is the current version of instance
|
2024-03-21 21:39:34 +08:00
|
|
|
string version = 2;
|
2024-02-20 23:02:01 +08:00
|
|
|
// mode is the instance mode (e.g. "prod", "dev" or "demo").
|
2024-03-21 21:39:34 +08:00
|
|
|
string mode = 3;
|
|
|
|
// disallow_signup is whether the signup is disallowed.
|
|
|
|
bool disallow_signup = 4;
|
|
|
|
// disable_password_login is whether the password login is disabled.
|
|
|
|
bool disable_password_login = 5;
|
2024-02-20 23:02:01 +08:00
|
|
|
// additional_script is the additional script.
|
2024-03-21 21:39:34 +08:00
|
|
|
string additional_script = 6;
|
2024-02-20 23:02:01 +08:00
|
|
|
// additional_style is the additional style.
|
2024-03-21 21:39:34 +08:00
|
|
|
string additional_style = 7;
|
2024-01-28 07:35:42 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
message GetWorkspaceProfileRequest {}
|
|
|
|
|
|
|
|
message GetWorkspaceProfileResponse {
|
|
|
|
WorkspaceProfile workspace_profile = 1;
|
|
|
|
}
|