@trash-streamers/contracts 1.1.90 → 1.1.92

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.
@@ -9,10 +9,11 @@ export interface GetUserMessagesRequest {
9
9
  export interface GetUserMessagesResponse {
10
10
  chatId: string;
11
11
  encryptedChatKey: string;
12
- messages: SystemMessageResponse[];
12
+ messages: SystemMessage[];
13
13
  }
14
- export interface SystemMessageResponse {
14
+ export interface SystemMessage {
15
15
  id: string;
16
+ chatId: string;
16
17
  senderId: string;
17
18
  content: string;
18
19
  authTag: string;
@@ -5,4 +5,5 @@ export declare const PROTO_PATHS: {
5
5
  readonly MEDIA: string;
6
6
  readonly VIDEO: string;
7
7
  readonly CATEGORY: string;
8
+ readonly SYSTEM_CHATS: string;
8
9
  };
@@ -10,4 +10,5 @@ exports.PROTO_PATHS = {
10
10
  MEDIA: (0, path_1.join)(ROOT_PATH, "media.proto"),
11
11
  VIDEO: (0, path_1.join)(ROOT_PATH, "video.proto"),
12
12
  CATEGORY: (0, path_1.join)(ROOT_PATH, "category.proto"),
13
+ SYSTEM_CHATS: (0, path_1.join)(ROOT_PATH, "system.chats.proto")
13
14
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trash-streamers/contracts",
3
- "version": "1.1.90",
3
+ "version": "1.1.92",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "scripts": {
@@ -19,16 +19,17 @@ message GetUserMessagesRequest {
19
19
  message GetUserMessagesResponse {
20
20
  string chat_id = 1;
21
21
  string encrypted_chat_key = 2;
22
- repeated SystemMessageResponse messages = 3;
22
+ repeated SystemMessage messages = 3;
23
23
  }
24
- message SystemMessageResponse {
24
+ message SystemMessage {
25
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;
26
+ string chat_id = 2;
27
+ string sender_id = 3;
28
+ string content = 4;
29
+ string auth_tag = 5;
30
+ string initial_vector = 6;
31
+ bool is_edited = 7;
32
+ bool is_deleted = 8;
33
+ google.protobuf.Timestamp created_at = 9;
34
+ google.protobuf.Timestamp updated_at = 10;
34
35
  }