nodejs-insta-private-api-mqt 1.3.90 → 1.3.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.
- package/dist/dist/realtime/proto/common.proto +38 -0
- package/dist/dist/realtime/proto/direct-bundle.js +3552 -0
- package/dist/dist/realtime/proto/direct.proto +65 -0
- package/dist/dist/realtime/proto/ig-messages-bundle.js +2249 -0
- package/dist/dist/realtime/proto/ig-messages.proto +83 -0
- package/dist/dist/realtime/proto/iris-bundle.js +7108 -0
- package/dist/dist/realtime/proto/iris.proto +188 -0
- package/dist/dist/realtime/proto-parser.js +167 -86
- package/dist/dist/realtime/protocols/proto-definitions.js +18 -7
- package/package.json +1 -1
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package ig.direct;
|
|
4
|
+
|
|
5
|
+
import "common.proto";
|
|
6
|
+
|
|
7
|
+
// Direct message protocol - Specific implementation for DMs
|
|
8
|
+
|
|
9
|
+
message DirectInboxMessageContent {
|
|
10
|
+
string text = 1;
|
|
11
|
+
repeated ig.common.MediaAttachment media = 2;
|
|
12
|
+
repeated ig.common.Link links = 3;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
message DirectInboxMessage {
|
|
16
|
+
string id = 1;
|
|
17
|
+
int64 user_id = 2;
|
|
18
|
+
int64 timestamp = 3;
|
|
19
|
+
|
|
20
|
+
string item_type = 4; // text, media_share, animated_media, etc
|
|
21
|
+
DirectInboxMessageContent content = 5;
|
|
22
|
+
|
|
23
|
+
map<string, string> reactions = 6;
|
|
24
|
+
|
|
25
|
+
bool is_sent = 7;
|
|
26
|
+
bool is_delivered = 8;
|
|
27
|
+
bool is_seen = 9;
|
|
28
|
+
|
|
29
|
+
int32 is_forward = 10;
|
|
30
|
+
int32 forwarded_from_id = 11;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
message DirectInboxThread {
|
|
34
|
+
int64 thread_id = 1;
|
|
35
|
+
repeated int64 user_ids = 2;
|
|
36
|
+
|
|
37
|
+
string thread_title = 3;
|
|
38
|
+
int64 last_activity_at = 4;
|
|
39
|
+
|
|
40
|
+
DirectInboxMessage last_message = 5;
|
|
41
|
+
|
|
42
|
+
int32 unfollowers_count = 6;
|
|
43
|
+
int32 thread_v2_id = 7;
|
|
44
|
+
|
|
45
|
+
bool is_pin = 8;
|
|
46
|
+
bool is_muted = 9;
|
|
47
|
+
bool is_archived = 10;
|
|
48
|
+
bool has_newer = 11;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
message DirectInbox {
|
|
52
|
+
repeated DirectInboxThread threads = 1;
|
|
53
|
+
string cursor = 2;
|
|
54
|
+
bool has_older = 3;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
message DirectSync {
|
|
58
|
+
int64 seq_id = 1;
|
|
59
|
+
int64 timestamp = 2;
|
|
60
|
+
|
|
61
|
+
repeated DirectInboxMessage messages = 3;
|
|
62
|
+
repeated DirectInboxThread threads = 4;
|
|
63
|
+
|
|
64
|
+
map<string, int64> seq_ids = 5; // per-thread seq tracking
|
|
65
|
+
}
|