2024-01-28 02:35:42 +03:00
|
|
|
syntax = "proto3";
|
|
|
|
|
2024-04-27 19:44:29 +03:00
|
|
|
package memos.api.v1;
|
2024-01-28 02:35:42 +03:00
|
|
|
|
|
|
|
import "google/api/annotations.proto";
|
|
|
|
|
2024-04-27 19:44:29 +03:00
|
|
|
option go_package = "gen/api/v1";
|
2024-01-28 02:35:42 +03:00
|
|
|
|
|
|
|
service WorkspaceService {
|
2024-02-01 16:26:09 +03:00
|
|
|
// GetWorkspaceProfile returns the workspace profile.
|
2024-04-27 17:02:15 +03:00
|
|
|
rpc GetWorkspaceProfile(GetWorkspaceProfileRequest) returns (WorkspaceProfile) {
|
2024-04-27 19:44:29 +03:00
|
|
|
option (google.api.http) = {get: "/api/v1/workspace/profile"};
|
2024-01-28 02:35:42 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
message WorkspaceProfile {
|
2024-04-16 16:15:17 +03:00
|
|
|
// The name of instance owner.
|
2024-03-21 16:39:34 +03:00
|
|
|
// Format: "users/{id}"
|
|
|
|
string owner = 1;
|
2024-02-20 18:02:01 +03:00
|
|
|
// version is the current version of instance
|
2024-03-21 16:39:34 +03:00
|
|
|
string version = 2;
|
2024-02-20 18:02:01 +03:00
|
|
|
// mode is the instance mode (e.g. "prod", "dev" or "demo").
|
2024-03-21 16:39:34 +03:00
|
|
|
string mode = 3;
|
2024-06-19 17:03:12 +03:00
|
|
|
// public is a flag that the instance is open for other users.
|
|
|
|
bool public = 4;
|
2024-07-27 14:24:37 +03:00
|
|
|
// password_auth is a flag whether the instance allows password authentication.
|
|
|
|
bool password_auth = 5;
|
2024-08-13 17:16:43 +03:00
|
|
|
// instance_url is the URL of the instance.
|
|
|
|
string instance_url = 6;
|
2024-01-28 02:35:42 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
message GetWorkspaceProfileRequest {}
|