memos/proto/api/v2/workspace_service.proto

36 lines
1 KiB
Protocol Buffer
Raw Normal View History

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 {
// version is the current version of instance
2024-01-28 07:35:42 +08:00
string version = 1;
// mode is the instance mode (e.g. "prod", "dev" or "demo").
2024-01-28 07:35:42 +08:00
string mode = 2;
// allow_registration is whether the registration is allowed.
2024-01-28 07:35:42 +08:00
bool allow_registration = 3;
// allow_password_login is whether the password login is allowed.
2024-01-28 07:35:42 +08:00
bool disable_password_login = 4;
// additional_script is the additional script.
2024-01-28 07:35:42 +08:00
string additional_script = 5;
// 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;
}