mirror of
				https://github.com/usememos/memos.git
				synced 2025-10-30 00:06:25 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			28 lines
		
	
	
	
		
			741 B
		
	
	
	
		
			Protocol Buffer
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
	
		
			741 B
		
	
	
	
		
			Protocol Buffer
		
	
	
	
	
	
| syntax = "proto3";
 | |
| 
 | |
| package memos.api.v1;
 | |
| 
 | |
| import "google/api/annotations.proto";
 | |
| 
 | |
| option go_package = "gen/api/v1";
 | |
| 
 | |
| service WorkspaceService {
 | |
|   // GetWorkspaceProfile returns the workspace profile.
 | |
|   rpc GetWorkspaceProfile(GetWorkspaceProfileRequest) returns (WorkspaceProfile) {
 | |
|     option (google.api.http) = {get: "/api/v1/workspace/profile"};
 | |
|   }
 | |
| }
 | |
| 
 | |
| message WorkspaceProfile {
 | |
|   // The name of instance owner.
 | |
|   // Format: "users/{id}"
 | |
|   string owner = 1;
 | |
|   // version is the current version of instance
 | |
|   string version = 2;
 | |
|   // mode is the instance mode (e.g. "prod", "dev" or "demo").
 | |
|   string mode = 3;
 | |
|   // public is a flag that the instance is open for other users.
 | |
|   bool public = 4;
 | |
| }
 | |
| 
 | |
| message GetWorkspaceProfileRequest {}
 |