@trash-streamers/contracts 1.1.88 → 1.1.89

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trash-streamers/contracts",
3
- "version": "1.1.88",
3
+ "version": "1.1.89",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "scripts": {
@@ -0,0 +1,34 @@
1
+ syntax = "proto3";
2
+
3
+ package system.chats.v1;
4
+
5
+ import "google/protobuf/timestamp.proto";
6
+
7
+ import "../common.proto";
8
+
9
+ service SystemChatsService {
10
+ rpc GetUserMessages (GetUserMessagesRequest) returns (GetUserMessagesResponse);
11
+ }
12
+
13
+ message GetUserMessagesRequest {
14
+ string user_id = 1;
15
+ string public_key = 2;
16
+ common.v1.FieldMask select_mask = 3;
17
+ }
18
+
19
+ message GetUserMessagesResponse {
20
+ string chat_id = 1;
21
+ string encrypted_chat_key = 2;
22
+ repeated SystemMessageResponse messages = 3;
23
+ }
24
+ message SystemMessageResponse {
25
+ string id = 1;
26
+ string sender_id = 2;
27
+ string content = 3;
28
+ string auth_tag = 4;
29
+ string initial_vector = 5;
30
+ bool is_edited = 6;
31
+ bool is_deleted = 7;
32
+ google.protobuf.Timestamp created_at = 8;
33
+ google.protobuf.Timestamp updated_at = 9;
34
+ }