mirror of
				https://github.com/livebook-dev/livebook.git
				synced 2025-11-01 00:06:04 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			33 lines
		
	
	
	
		
			399 B
		
	
	
	
		
			Protocol Buffer
		
	
	
	
	
	
			
		
		
	
	
			33 lines
		
	
	
	
		
			399 B
		
	
	
	
		
			Protocol Buffer
		
	
	
	
	
	
| syntax = "proto3";
 | |
| 
 | |
| message User {
 | |
|   int32 id = 1;
 | |
|   string email = 2;
 | |
| }
 | |
| 
 | |
| message Error {
 | |
|   string details = 1;
 | |
| }
 | |
| 
 | |
| message SessionRequest {
 | |
|   string app_version = 1;
 | |
| }
 | |
| 
 | |
| message SessionResponse {
 | |
|   string id = 1;
 | |
|   User user = 2;
 | |
| }
 | |
| 
 | |
| message Request {
 | |
|   oneof type {
 | |
|     SessionRequest session = 1;
 | |
|   }
 | |
| }
 | |
| 
 | |
| message Response {
 | |
|   oneof type {
 | |
|     Error error = 1;
 | |
| 
 | |
|     SessionResponse session = 2;
 | |
|   }
 | |
| }
 |