Modern-Apps.git
Publicgit clone https://git.maproj.org/Modern-Apps.gitModern-Apps.git / communicate-dev / src / main / proto / signal_chat_websocket.proto
signal_chat_websocket.proto36 lines · 732 BRaw
| 1 | // |
| 2 | // Copyright 2023 Signal Messenger, LLC. |
| 3 | // SPDX-License-Identifier: AGPL-3.0-only |
| 4 | // |
| 5 | |
| 6 | syntax = "proto2"; |
| 7 | |
| 8 | package signal.proto.chat_websocket; |
| 9 | |
| 10 | message WebSocketRequestMessage { |
| 11 | optional string verb = 1; |
| 12 | optional string path = 2; |
| 13 | optional bytes body = 3; |
| 14 | repeated string headers = 5; |
| 15 | optional uint64 id = 4; |
| 16 | } |
| 17 | |
| 18 | message WebSocketResponseMessage { |
| 19 | optional uint64 id = 1; |
| 20 | optional uint32 status = 2; |
| 21 | optional string message = 3; |
| 22 | repeated string headers = 5; |
| 23 | optional bytes body = 4; |
| 24 | } |
| 25 | |
| 26 | message WebSocketMessage { |
| 27 | enum Type { |
| 28 | UNKNOWN = 0; |
| 29 | REQUEST = 1; |
| 30 | RESPONSE = 2; |
| 31 | } |
| 32 | |
| 33 | optional Type type = 1; |
| 34 | optional WebSocketRequestMessage request = 2; |
| 35 | optional WebSocketResponseMessage response = 3; |
| 36 | } |