nodejs-insta-private-api-mqtt 1.0.0
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/README.md +1650 -0
- package/dist/constants/constants.js +280 -0
- package/dist/constants/index.js +41 -0
- package/dist/core/client.js +243 -0
- package/dist/core/repository.js +7 -0
- package/dist/core/request.js +212 -0
- package/dist/core/state.js +1456 -0
- package/dist/core/utils.js +786 -0
- package/dist/downloadMedia.js +381 -0
- package/dist/errors/index.d.ts +16 -0
- package/dist/errors/index.js +30 -0
- package/dist/errors/index.js.map +1 -0
- package/dist/fbns/fbns.client.d.ts +32 -0
- package/dist/fbns/fbns.client.events.d.ts +41 -0
- package/dist/fbns/fbns.client.events.js +3 -0
- package/dist/fbns/fbns.client.events.js.map +1 -0
- package/dist/fbns/fbns.client.js +179 -0
- package/dist/fbns/fbns.client.js.map +1 -0
- package/dist/fbns/fbns.device-auth.d.ts +17 -0
- package/dist/fbns/fbns.device-auth.js +54 -0
- package/dist/fbns/fbns.device-auth.js.map +1 -0
- package/dist/fbns/fbns.types.d.ts +83 -0
- package/dist/fbns/fbns.types.js +3 -0
- package/dist/fbns/fbns.types.js.map +1 -0
- package/dist/fbns/fbns.utilities.d.ts +2 -0
- package/dist/fbns/fbns.utilities.js +79 -0
- package/dist/fbns/fbns.utilities.js.map +1 -0
- package/dist/fbns/index.d.ts +4 -0
- package/dist/fbns/index.js +21 -0
- package/dist/fbns/index.js.map +1 -0
- package/dist/index.js +39 -0
- package/dist/mqttot/index.d.ts +4 -0
- package/dist/mqttot/index.js +21 -0
- package/dist/mqttot/index.js.map +1 -0
- package/dist/mqttot/mqttot.client.d.ts +39 -0
- package/dist/mqttot/mqttot.client.js +120 -0
- package/dist/mqttot/mqttot.client.js.map +1 -0
- package/dist/mqttot/mqttot.connect.request.packet.d.ts +7 -0
- package/dist/mqttot/mqttot.connect.request.packet.js +9 -0
- package/dist/mqttot/mqttot.connect.request.packet.js.map +1 -0
- package/dist/mqttot/mqttot.connect.response.packet.d.ts +7 -0
- package/dist/mqttot/mqttot.connect.response.packet.js +24 -0
- package/dist/mqttot/mqttot.connect.response.packet.js.map +1 -0
- package/dist/mqttot/mqttot.connection.d.ts +57 -0
- package/dist/mqttot/mqttot.connection.js +56 -0
- package/dist/mqttot/mqttot.connection.js.map +1 -0
- package/dist/package.json +59 -0
- package/dist/realtime/commands/commands.d.ts +15 -0
- package/dist/realtime/commands/commands.js +21 -0
- package/dist/realtime/commands/commands.js.map +1 -0
- package/dist/realtime/commands/direct.commands.d.ts +75 -0
- package/dist/realtime/commands/direct.commands.js +186 -0
- package/dist/realtime/commands/direct.commands.js.map +1 -0
- package/dist/realtime/commands/enhanced.direct.commands.js +987 -0
- package/dist/realtime/commands/index.d.ts +2 -0
- package/dist/realtime/commands/index.js +19 -0
- package/dist/realtime/commands/index.js.map +1 -0
- package/dist/realtime/delta-sync.manager.js +293 -0
- package/dist/realtime/features/dm-sender.js +88 -0
- package/dist/realtime/features/error-handler.js +73 -0
- package/dist/realtime/features/gap-handler.js +61 -0
- package/dist/realtime/features/presence.manager.js +66 -0
- package/dist/realtime/index.js +30 -0
- package/dist/realtime/messages/app-presence.event.d.ts +9 -0
- package/dist/realtime/messages/app-presence.event.js +3 -0
- package/dist/realtime/messages/app-presence.event.js.map +1 -0
- package/dist/realtime/messages/index.d.ts +3 -0
- package/dist/realtime/messages/index.js +20 -0
- package/dist/realtime/messages/index.js.map +1 -0
- package/dist/realtime/messages/message-sync.message.d.ts +222 -0
- package/dist/realtime/messages/message-sync.message.js +43 -0
- package/dist/realtime/messages/message-sync.message.js.map +1 -0
- package/dist/realtime/messages/realtime-sub.direct.data.d.ts +11 -0
- package/dist/realtime/messages/realtime-sub.direct.data.js +3 -0
- package/dist/realtime/messages/realtime-sub.direct.data.js.map +1 -0
- package/dist/realtime/messages/thread-update.message.d.ts +68 -0
- package/dist/realtime/messages/thread-update.message.js +3 -0
- package/dist/realtime/messages/thread-update.message.js.map +1 -0
- package/dist/realtime/mixins/index.d.ts +3 -0
- package/dist/realtime/mixins/index.js +20 -0
- package/dist/realtime/mixins/index.js.map +1 -0
- package/dist/realtime/mixins/message-sync.mixin.d.ts +8 -0
- package/dist/realtime/mixins/message-sync.mixin.js +381 -0
- package/dist/realtime/mixins/message-sync.mixin.js.map +1 -0
- package/dist/realtime/mixins/mixin.d.ts +19 -0
- package/dist/realtime/mixins/mixin.js +41 -0
- package/dist/realtime/mixins/mixin.js.map +1 -0
- package/dist/realtime/mixins/presence-typing.mixin.js +33 -0
- package/dist/realtime/mixins/realtime-sub.mixin.d.ts +8 -0
- package/dist/realtime/mixins/realtime-sub.mixin.js +55 -0
- package/dist/realtime/mixins/realtime-sub.mixin.js.map +1 -0
- package/dist/realtime/parsers/graphql-parser.js +43 -0
- package/dist/realtime/parsers/graphql.parser.d.ts +15 -0
- package/dist/realtime/parsers/graphql.parser.js +22 -0
- package/dist/realtime/parsers/graphql.parser.js.map +1 -0
- package/dist/realtime/parsers/index.d.ts +6 -0
- package/dist/realtime/parsers/index.js +23 -0
- package/dist/realtime/parsers/index.js.map +1 -0
- package/dist/realtime/parsers/iris-parser.js +43 -0
- package/dist/realtime/parsers/iris.parser.d.ts +17 -0
- package/dist/realtime/parsers/iris.parser.js +10 -0
- package/dist/realtime/parsers/iris.parser.js.map +1 -0
- package/dist/realtime/parsers/json-parser.js +43 -0
- package/dist/realtime/parsers/json.parser.d.ts +6 -0
- package/dist/realtime/parsers/json.parser.js +10 -0
- package/dist/realtime/parsers/json.parser.js.map +1 -0
- package/dist/realtime/parsers/parser.d.ts +9 -0
- package/dist/realtime/parsers/parser.js +3 -0
- package/dist/realtime/parsers/parser.js.map +1 -0
- package/dist/realtime/parsers/region-hint-parser.js +43 -0
- package/dist/realtime/parsers/region-hint.parser.d.ts +12 -0
- package/dist/realtime/parsers/region-hint.parser.js +15 -0
- package/dist/realtime/parsers/region-hint.parser.js.map +1 -0
- package/dist/realtime/parsers/skywalker-parser.js +43 -0
- package/dist/realtime/parsers/skywalker.parser.d.ts +12 -0
- package/dist/realtime/parsers/skywalker.parser.js +15 -0
- package/dist/realtime/parsers/skywalker.parser.js.map +1 -0
- package/dist/realtime/parsers-advanced.js +158 -0
- package/dist/realtime/proto/common.proto +38 -0
- package/dist/realtime/proto/direct.proto +65 -0
- package/dist/realtime/proto/ig-messages.proto +83 -0
- package/dist/realtime/proto/iris.proto +188 -0
- package/dist/realtime/proto-parser.js +195 -0
- package/dist/realtime/protocols/iris.handshake.js +74 -0
- package/dist/realtime/protocols/proto-definitions.js +80 -0
- package/dist/realtime/protocols/skywalker.protocol.js +91 -0
- package/dist/realtime/realtime.client.events.js +3 -0
- package/dist/realtime/realtime.client.js +449 -0
- package/dist/realtime/realtime.service.js +462 -0
- package/dist/realtime/reconnect.manager.js +94 -0
- package/dist/realtime/session.manager.js +121 -0
- package/dist/realtime/subscriptions/graphql.subscription.d.ts +47 -0
- package/dist/realtime/subscriptions/graphql.subscription.js +99 -0
- package/dist/realtime/subscriptions/graphql.subscription.js.map +1 -0
- package/dist/realtime/subscriptions/index.d.ts +2 -0
- package/dist/realtime/subscriptions/index.js +19 -0
- package/dist/realtime/subscriptions/index.js.map +1 -0
- package/dist/realtime/subscriptions/skywalker.subscription.d.ts +4 -0
- package/dist/realtime/subscriptions/skywalker.subscription.js +13 -0
- package/dist/realtime/subscriptions/skywalker.subscription.js.map +1 -0
- package/dist/realtime/topic-map.js +71 -0
- package/dist/realtime/topic.js +80 -0
- package/dist/repositories/account.repository.js +261 -0
- package/dist/repositories/direct-thread.repository.js +247 -0
- package/dist/repositories/direct.repository.js +153 -0
- package/dist/repositories/feed.repository.js +233 -0
- package/dist/repositories/friendship.repository.js +190 -0
- package/dist/repositories/hashtag.repository.js +101 -0
- package/dist/repositories/highlights.repository.js +127 -0
- package/dist/repositories/location.repository.js +84 -0
- package/dist/repositories/media.repository.js +165 -0
- package/dist/repositories/story.repository.js +156 -0
- package/dist/repositories/upload.repository.js +167 -0
- package/dist/repositories/user.repository.js +94 -0
- package/dist/sendmedia/index.js +11 -0
- package/dist/sendmedia/sendFile.js +154 -0
- package/dist/sendmedia/sendPhoto.js +145 -0
- package/dist/sendmedia/uploadPhoto.js +175 -0
- package/dist/sendmedia/uploadfFile.js +264 -0
- package/dist/services/live.service.js +147 -0
- package/dist/services/search.service.js +116 -0
- package/dist/shared/index.js +35 -0
- package/dist/shared/shared.js +86 -0
- package/dist/thrift/index.d.ts +3 -0
- package/dist/thrift/index.js +20 -0
- package/dist/thrift/index.js.map +1 -0
- package/dist/thrift/thrift.d.ts +59 -0
- package/dist/thrift/thrift.js +101 -0
- package/dist/thrift/thrift.js.map +1 -0
- package/dist/thrift/thrift.reading.d.ts +41 -0
- package/dist/thrift/thrift.reading.js +327 -0
- package/dist/thrift/thrift.reading.js.map +1 -0
- package/dist/thrift/thrift.writing.d.ts +44 -0
- package/dist/thrift/thrift.writing.js +342 -0
- package/dist/thrift/thrift.writing.js.map +1 -0
- package/dist/types/index.js +285 -0
- package/dist/useMultiFileAuthState.js +437 -0
- package/dist/utils/helper-1.js +1 -0
- package/dist/utils/helper-10.js +1 -0
- package/dist/utils/helper-11.js +1 -0
- package/dist/utils/helper-12.js +1 -0
- package/dist/utils/helper-13.js +1 -0
- package/dist/utils/helper-14.js +1 -0
- package/dist/utils/helper-15.js +1 -0
- package/dist/utils/helper-16.js +1 -0
- package/dist/utils/helper-17.js +1 -0
- package/dist/utils/helper-18.js +1 -0
- package/dist/utils/helper-19.js +1 -0
- package/dist/utils/helper-2.js +1 -0
- package/dist/utils/helper-20.js +1 -0
- package/dist/utils/helper-21.js +1 -0
- package/dist/utils/helper-22.js +1 -0
- package/dist/utils/helper-23.js +1 -0
- package/dist/utils/helper-24.js +1 -0
- package/dist/utils/helper-25.js +1 -0
- package/dist/utils/helper-26.js +1 -0
- package/dist/utils/helper-27.js +1 -0
- package/dist/utils/helper-28.js +1 -0
- package/dist/utils/helper-29.js +1 -0
- package/dist/utils/helper-3.js +1 -0
- package/dist/utils/helper-30.js +1 -0
- package/dist/utils/helper-4.js +1 -0
- package/dist/utils/helper-5.js +1 -0
- package/dist/utils/helper-6.js +1 -0
- package/dist/utils/helper-7.js +1 -0
- package/dist/utils/helper-8.js +1 -0
- package/dist/utils/helper-9.js +1 -0
- package/dist/utils/index.js +280 -0
- package/examples/listen-to-messages.js +86 -0
- package/package.json +79 -0
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { Int64, ThriftPacketDescriptor } from '../thrift';
|
|
3
|
+
export type MQTToTConnectionData = Partial<{
|
|
4
|
+
clientIdentifier: string;
|
|
5
|
+
willTopic: string;
|
|
6
|
+
willMessage: string;
|
|
7
|
+
clientInfo: MQTToTConnectionClientInfo;
|
|
8
|
+
password: string;
|
|
9
|
+
unknown: number;
|
|
10
|
+
appSpecificInfo: MQTToTConnectionAppSpecificInfo;
|
|
11
|
+
}>;
|
|
12
|
+
export type MQTToTConnectionAppSpecificInfo = Partial<{
|
|
13
|
+
app_version: string;
|
|
14
|
+
'X-IG-Capabilities': string;
|
|
15
|
+
everclear_subscriptions: string;
|
|
16
|
+
'User-Agent': string;
|
|
17
|
+
'Accept-Language': string;
|
|
18
|
+
platform: string;
|
|
19
|
+
ig_mqtt_route: string;
|
|
20
|
+
pubsub_msg_type_blacklist: string;
|
|
21
|
+
auth_cache_enabled: string;
|
|
22
|
+
}>;
|
|
23
|
+
export type MQTToTConnectionClientInfo = Partial<{
|
|
24
|
+
userId: Int64;
|
|
25
|
+
userAgent: string;
|
|
26
|
+
clientCapabilities: Int64;
|
|
27
|
+
endpointCapabilities: Int64;
|
|
28
|
+
publishFormat: number;
|
|
29
|
+
noAutomaticForeground: boolean;
|
|
30
|
+
makeUserAvailableInForeground: boolean;
|
|
31
|
+
deviceId: string;
|
|
32
|
+
isInitiallyForeground: boolean;
|
|
33
|
+
networkType: number;
|
|
34
|
+
networkSubtype: number;
|
|
35
|
+
clientMqttSessionId: Int64;
|
|
36
|
+
clientIpAddress: string;
|
|
37
|
+
subscribeTopics: number[];
|
|
38
|
+
clientType: string;
|
|
39
|
+
appId: Int64;
|
|
40
|
+
overrideNectarLogging: boolean;
|
|
41
|
+
connectTokenHash: string;
|
|
42
|
+
regionPreference: string;
|
|
43
|
+
deviceSecret: string;
|
|
44
|
+
clientStack: number;
|
|
45
|
+
fbnsConnectionKey: number;
|
|
46
|
+
fbnsConnectionSecret: string;
|
|
47
|
+
fbnsDeviceId: string;
|
|
48
|
+
fbnsDeviceSecret: string;
|
|
49
|
+
anotherUnknown: Int64;
|
|
50
|
+
}>;
|
|
51
|
+
export declare class MQTToTConnection {
|
|
52
|
+
fbnsConnectionData: MQTToTConnectionData;
|
|
53
|
+
static thriftConfig: ThriftPacketDescriptor[];
|
|
54
|
+
constructor(connectionData: MQTToTConnectionData);
|
|
55
|
+
toThrift(): Buffer;
|
|
56
|
+
toString(): string;
|
|
57
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MQTToTConnection = void 0;
|
|
4
|
+
const thrift_1 = require("../thrift");
|
|
5
|
+
class MQTToTConnection {
|
|
6
|
+
constructor(connectionData) {
|
|
7
|
+
this.fbnsConnectionData = connectionData;
|
|
8
|
+
}
|
|
9
|
+
toThrift() {
|
|
10
|
+
return (0, thrift_1.thriftWriteFromObject)(this.fbnsConnectionData, MQTToTConnection.thriftConfig);
|
|
11
|
+
}
|
|
12
|
+
toString() {
|
|
13
|
+
return this.toThrift().toString();
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.MQTToTConnection = MQTToTConnection;
|
|
17
|
+
MQTToTConnection.thriftConfig = [
|
|
18
|
+
thrift_1.ThriftDescriptors.binary('clientIdentifier', 1),
|
|
19
|
+
thrift_1.ThriftDescriptors.binary('willTopic', 2),
|
|
20
|
+
thrift_1.ThriftDescriptors.binary('willMessage', 3),
|
|
21
|
+
thrift_1.ThriftDescriptors.struct('clientInfo', 4, [
|
|
22
|
+
thrift_1.ThriftDescriptors.int64('userId', 1),
|
|
23
|
+
thrift_1.ThriftDescriptors.binary('userAgent', 2),
|
|
24
|
+
thrift_1.ThriftDescriptors.int64('clientCapabilities', 3),
|
|
25
|
+
thrift_1.ThriftDescriptors.int64('endpointCapabilities', 4),
|
|
26
|
+
thrift_1.ThriftDescriptors.int32('publishFormat', 5),
|
|
27
|
+
thrift_1.ThriftDescriptors.boolean('noAutomaticForeground', 6),
|
|
28
|
+
thrift_1.ThriftDescriptors.boolean('makeUserAvailableInForeground', 7),
|
|
29
|
+
thrift_1.ThriftDescriptors.binary('deviceId', 8),
|
|
30
|
+
thrift_1.ThriftDescriptors.boolean('isInitiallyForeground', 9),
|
|
31
|
+
thrift_1.ThriftDescriptors.int32('networkType', 10),
|
|
32
|
+
thrift_1.ThriftDescriptors.int32('networkSubtype', 11),
|
|
33
|
+
thrift_1.ThriftDescriptors.int64('clientMqttSessionId', 12),
|
|
34
|
+
thrift_1.ThriftDescriptors.binary('clientIpAddress', 13),
|
|
35
|
+
thrift_1.ThriftDescriptors.listOfInt32('subscribeTopics', 14),
|
|
36
|
+
thrift_1.ThriftDescriptors.binary('clientType', 15),
|
|
37
|
+
thrift_1.ThriftDescriptors.int64('appId', 16),
|
|
38
|
+
thrift_1.ThriftDescriptors.boolean('overrideNectarLogging', 17),
|
|
39
|
+
thrift_1.ThriftDescriptors.binary('connectTokenHash', 18),
|
|
40
|
+
thrift_1.ThriftDescriptors.binary('regionPreference', 19),
|
|
41
|
+
thrift_1.ThriftDescriptors.binary('deviceSecret', 20),
|
|
42
|
+
thrift_1.ThriftDescriptors.byte('clientStack', 21),
|
|
43
|
+
thrift_1.ThriftDescriptors.int64('fbnsConnectionKey', 22),
|
|
44
|
+
thrift_1.ThriftDescriptors.binary('fbnsConnectionSecret', 23),
|
|
45
|
+
thrift_1.ThriftDescriptors.binary('fbnsDeviceId', 24),
|
|
46
|
+
thrift_1.ThriftDescriptors.binary('fbnsDeviceSecret', 25),
|
|
47
|
+
thrift_1.ThriftDescriptors.int64('anotherUnknown', 26),
|
|
48
|
+
]),
|
|
49
|
+
thrift_1.ThriftDescriptors.binary('password', 5),
|
|
50
|
+
// polyfill
|
|
51
|
+
thrift_1.ThriftDescriptors.int16('unknown', 5),
|
|
52
|
+
thrift_1.ThriftDescriptors.listOfBinary('getDiffsRequests', 6),
|
|
53
|
+
thrift_1.ThriftDescriptors.binary('zeroRatingTokenHash', 9),
|
|
54
|
+
thrift_1.ThriftDescriptors.mapBinaryBinary('appSpecificInfo', 10),
|
|
55
|
+
];
|
|
56
|
+
//# sourceMappingURL=mqttot.connection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mqttot.connection.js","sourceRoot":"","sources":["../../src/mqttot/mqttot.connection.ts"],"names":[],"mappings":";;;AAAA,sCAAoG;AAoDpG,MAAa,gBAAgB;IA2C1B,YAAmB,cAAoC;QACpD,IAAI,CAAC,kBAAkB,GAAG,cAAc,CAAC;IAC5C,CAAC;IAEM,QAAQ;QACZ,OAAO,IAAA,8BAAqB,EAAC,IAAI,CAAC,kBAAkB,EAAE,gBAAgB,CAAC,YAAY,CAAC,CAAC;IACxF,CAAC;IAEM,QAAQ;QACZ,OAAO,IAAI,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC;IACrC,CAAC;;AArDJ,4CAsDC;AAnDgB,6BAAY,GAA6B;IACpD,0BAAiB,CAAC,MAAM,CAAC,kBAAkB,EAAE,CAAC,CAAC;IAC/C,0BAAiB,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC,CAAC;IACxC,0BAAiB,CAAC,MAAM,CAAC,aAAa,EAAE,CAAC,CAAC;IAC1C,0BAAiB,CAAC,MAAM,CAAC,YAAY,EAAE,CAAC,EAAE;QACvC,0BAAiB,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC;QACpC,0BAAiB,CAAC,MAAM,CAAC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AsB,EAAE,EAAE,CAAC;QACpD,0BAAiB,CAAC,MAAM,CAAC,cAAc,EAAE,EAAE,CAAC;QAC5C,0BAAiB,CAAC,MAAM,CAAC,kBAAkB,EAAE,EAAE,CAAC;QAChD,0BAAiB,CAAC,KAAK,CAAC,gBAAgB,EAAE,EAAE,CAAC;KAC/C,CAAC;IACF,0BAAiB,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC,CAAC;IACvC,WAAW;IACX,0BAAiB,CAAC,KAAK,CAAC,SAAS,EAAE,CAAC,CAAC;IACrC,0BAAiB,CAAC,YAAY,CAAC,kBAAkB,EAAE,CAAC,CAAC;IACrD,0BAAiB,CAAC,MAAM,CAAC,qBAAqB,EAAE,CAAC,CAAC;IAClD,0BAAiB,CAAC,eAAe,CAAC,iBAAiB,EAAE,EAAE,CAAC;CAC1D,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "nodejs-insta-private-api",
|
|
3
|
+
"version": "5.52.1",
|
|
4
|
+
"description": "A pure JavaScript Instagram Private API client with native MQTT real-time messaging support",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "node examples/listen-to-messages.js",
|
|
8
|
+
"start": "node examples/listen-to-messages.js",
|
|
9
|
+
"example": "node complete-example.js",
|
|
10
|
+
"listen": "node complete-example.js"
|
|
11
|
+
},
|
|
12
|
+
"keywords": [
|
|
13
|
+
"instagram",
|
|
14
|
+
"api",
|
|
15
|
+
"private",
|
|
16
|
+
"client",
|
|
17
|
+
"dm",
|
|
18
|
+
"direct",
|
|
19
|
+
"messages",
|
|
20
|
+
"stories",
|
|
21
|
+
"upload",
|
|
22
|
+
"mqtt",
|
|
23
|
+
"realtime",
|
|
24
|
+
"notifications"
|
|
25
|
+
],
|
|
26
|
+
"author": "BorutoSrg",
|
|
27
|
+
"license": "MIT",
|
|
28
|
+
"dependencies": {
|
|
29
|
+
"axios": "^1.6.0",
|
|
30
|
+
"chance": "^1.1.11",
|
|
31
|
+
"crypto": "^1.0.1",
|
|
32
|
+
"debug": "^4.3.4",
|
|
33
|
+
"eventemitter3": "^5.0.1",
|
|
34
|
+
"form-data": "^4.0.0",
|
|
35
|
+
"lodash": "^4.17.21",
|
|
36
|
+
"mqtts": "^1.5.0",
|
|
37
|
+
"node-persist": "^4.0.4",
|
|
38
|
+
"pako": "^2.1.0",
|
|
39
|
+
"protobufjs": "^7.5.4",
|
|
40
|
+
"socks": "^2.8.1",
|
|
41
|
+
"tough-cookie": "^4.1.3",
|
|
42
|
+
"ts-custom-error": "^3.3.1",
|
|
43
|
+
"uuid": "^9.0.1"
|
|
44
|
+
},
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"node-fetch": "^3.3.2"
|
|
47
|
+
},
|
|
48
|
+
"engines": {
|
|
49
|
+
"node": ">=18.0.0"
|
|
50
|
+
},
|
|
51
|
+
"repository": {
|
|
52
|
+
"type": "git",
|
|
53
|
+
"url": "https://github.com/Kunboruto20/nodejs-insta-private-api.git"
|
|
54
|
+
},
|
|
55
|
+
"bugs": {
|
|
56
|
+
"url": "https://github.com/Kunboruto20/nodejs-insta-private-api/issues"
|
|
57
|
+
},
|
|
58
|
+
"homepage": "https://github.com/Kunboruto20/nodejs-insta-private-api#readme"
|
|
59
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Topic } from '../../topic';
|
|
2
|
+
import { MQTToTClient } from '../../mqttot';
|
|
3
|
+
import { MqttMessageOutgoing } from 'mqtts';
|
|
4
|
+
export declare class Commands {
|
|
5
|
+
private client;
|
|
6
|
+
constructor(client: MQTToTClient);
|
|
7
|
+
private publishToTopic;
|
|
8
|
+
updateSubscriptions(options: {
|
|
9
|
+
topic: Topic;
|
|
10
|
+
data: {
|
|
11
|
+
sub?: string[];
|
|
12
|
+
unsub?: string[];
|
|
13
|
+
} | any;
|
|
14
|
+
}): Promise<MqttMessageOutgoing>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Commands = void 0;
|
|
4
|
+
const shared_1 = require("../../shared");
|
|
5
|
+
class Commands {
|
|
6
|
+
constructor(client) {
|
|
7
|
+
this.client = client;
|
|
8
|
+
}
|
|
9
|
+
async publishToTopic(topic, compressedData, qos) {
|
|
10
|
+
return this.client.publish({
|
|
11
|
+
topic,
|
|
12
|
+
payload: compressedData instanceof Buffer ? compressedData : Buffer.from(compressedData),
|
|
13
|
+
qosLevel: qos,
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
async updateSubscriptions(options) {
|
|
17
|
+
return this.publishToTopic(options.topic.id, await (0, shared_1.compressDeflate)(JSON.stringify(options.data)), 1);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.Commands = Commands;
|
|
21
|
+
//# sourceMappingURL=commands.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commands.js","sourceRoot":"","sources":["../../../src/realtime/commands/commands.ts"],"names":[],"mappings":";;;AACA,yCAA+C;AAI/C,MAAa,QAAQ;IAClB,YAA2B,MAAoB;QAApB,WAAM,GAAN,MAAM,CAAc;IAAG,CAAC;IAE3C,KAAK,CAAC,cAAc,CACzB,KAAa,EACb,cAA+B,EAC/B,GAAU;QAEV,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC;YACxB,KAAK;YACL,OAAO,EAAE,cAAc,YAAY,MAAM,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC;YACxF,QAAQ,EAAE,GAAG;SACf,CAAC,CAAC;IACN,CAAC;IAEM,KAAK,CAAC,mBAAmB,CAAC,OAGhC;QACE,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,EAAE,MAAM,IAAA,wBAAe,EAAC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IACxG,CAAC;CACH;AArBD,4BAqBC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { MQTToTClient } from '../../mqttot';
|
|
2
|
+
import { MessageSyncMessageTypes } from '../messages';
|
|
3
|
+
import { ThriftPacketDescriptor } from '../../thrift';
|
|
4
|
+
import { MqttMessageOutgoing } from 'mqtts';
|
|
5
|
+
interface ItemBaseType {
|
|
6
|
+
threadId: string;
|
|
7
|
+
clientContext?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface ForegroundState {
|
|
10
|
+
inForegroundApp?: boolean;
|
|
11
|
+
inForegroundDevice?: boolean;
|
|
12
|
+
keepAliveTimeout?: number;
|
|
13
|
+
subscribeTopics?: string[];
|
|
14
|
+
subscribeGenericTopics?: string[];
|
|
15
|
+
unsubscribeTopics?: string[];
|
|
16
|
+
unsubscribeGenericTopics?: string[];
|
|
17
|
+
requestId?: bigint;
|
|
18
|
+
}
|
|
19
|
+
export declare class DirectCommands {
|
|
20
|
+
private directDebug;
|
|
21
|
+
private client;
|
|
22
|
+
private chance;
|
|
23
|
+
foregroundStateConfig: ThriftPacketDescriptor[];
|
|
24
|
+
constructor(client: MQTToTClient);
|
|
25
|
+
sendForegroundState(state: ForegroundState): Promise<MqttMessageOutgoing>;
|
|
26
|
+
private sendCommand;
|
|
27
|
+
private sendItem;
|
|
28
|
+
sendHashtag({ text, threadId, hashtag, clientContext, }: {
|
|
29
|
+
text?: string;
|
|
30
|
+
hashtag: string;
|
|
31
|
+
} & ItemBaseType): Promise<MqttMessageOutgoing>;
|
|
32
|
+
sendLike({ threadId, clientContext }: ItemBaseType): Promise<MqttMessageOutgoing>;
|
|
33
|
+
sendLocation({ text, locationId, threadId, clientContext, }: {
|
|
34
|
+
text?: string;
|
|
35
|
+
locationId: string;
|
|
36
|
+
} & ItemBaseType): Promise<MqttMessageOutgoing>;
|
|
37
|
+
sendMedia({ text, mediaId, threadId, clientContext, }: {
|
|
38
|
+
text?: string;
|
|
39
|
+
mediaId: string;
|
|
40
|
+
} & ItemBaseType): Promise<MqttMessageOutgoing>;
|
|
41
|
+
sendProfile({ text, userId, threadId, clientContext, }: {
|
|
42
|
+
text?: string;
|
|
43
|
+
userId: string;
|
|
44
|
+
} & ItemBaseType): Promise<MqttMessageOutgoing>;
|
|
45
|
+
sendReaction({ itemId, reactionType, clientContext, threadId, reactionStatus, targetItemType, emoji, }: {
|
|
46
|
+
itemId: string;
|
|
47
|
+
reactionType?: 'like' | string;
|
|
48
|
+
reactionStatus?: 'created' | 'deleted';
|
|
49
|
+
targetItemType?: MessageSyncMessageTypes;
|
|
50
|
+
emoji?: string;
|
|
51
|
+
} & ItemBaseType): Promise<MqttMessageOutgoing>;
|
|
52
|
+
sendUserStory({ text, storyId, threadId, clientContext, }: {
|
|
53
|
+
text?: string;
|
|
54
|
+
storyId: string;
|
|
55
|
+
} & ItemBaseType): Promise<MqttMessageOutgoing>;
|
|
56
|
+
sendText({ text, clientContext, threadId }: {
|
|
57
|
+
text: string;
|
|
58
|
+
} & ItemBaseType): Promise<MqttMessageOutgoing>;
|
|
59
|
+
markAsSeen({ threadId, itemId }: {
|
|
60
|
+
threadId: string;
|
|
61
|
+
itemId: string;
|
|
62
|
+
}): Promise<MqttMessageOutgoing>;
|
|
63
|
+
indicateActivity({ threadId, isActive, clientContext }: {
|
|
64
|
+
isActive?: boolean;
|
|
65
|
+
} & ItemBaseType): Promise<MqttMessageOutgoing>;
|
|
66
|
+
deleteMessage(threadId: string, itemId: string): Promise<any>;
|
|
67
|
+
editMessage(threadId: string, itemId: string, newText: string): Promise<any>;
|
|
68
|
+
replyToMessage(threadId: string, messageId: string, replyText: string): Promise<any>;
|
|
69
|
+
subscribeToFollowNotifications(): Promise<any>;
|
|
70
|
+
subscribeToMentionNotifications(): Promise<any>;
|
|
71
|
+
subscribeToCallNotifications(): Promise<any>;
|
|
72
|
+
addMemberToThread(threadId: string, userId: string): Promise<any>;
|
|
73
|
+
removeMemberFromThread(threadId: string, userId: string): Promise<any>;
|
|
74
|
+
}
|
|
75
|
+
export {};
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DirectCommands = void 0;
|
|
4
|
+
const constants_1 = require("../../constants");
|
|
5
|
+
const shared_1 = require("../../shared");
|
|
6
|
+
const Chance = require("chance");
|
|
7
|
+
const thrift_1 = require("../../thrift");
|
|
8
|
+
class DirectCommands {
|
|
9
|
+
constructor(client) {
|
|
10
|
+
this.directDebug = (0, shared_1.debugChannel)('realtime', 'direct');
|
|
11
|
+
this.foregroundStateConfig = [
|
|
12
|
+
thrift_1.ThriftDescriptors.boolean('inForegroundApp', 1),
|
|
13
|
+
thrift_1.ThriftDescriptors.boolean('inForegroundDevice', 2),
|
|
14
|
+
thrift_1.ThriftDescriptors.int32('keepAliveTimeout', 3),
|
|
15
|
+
thrift_1.ThriftDescriptors.listOfBinary('subscribeTopics', 4),
|
|
16
|
+
thrift_1.ThriftDescriptors.listOfBinary('subscribeGenericTopics', 5),
|
|
17
|
+
thrift_1.ThriftDescriptors.listOfBinary('unsubscribeTopics', 6),
|
|
18
|
+
thrift_1.ThriftDescriptors.listOfBinary('unsubscribeGenericTopics', 7),
|
|
19
|
+
thrift_1.ThriftDescriptors.int64('requestId', 8),
|
|
20
|
+
];
|
|
21
|
+
this.client = client;
|
|
22
|
+
this.chance = new Chance();
|
|
23
|
+
}
|
|
24
|
+
async sendForegroundState(state) {
|
|
25
|
+
this.directDebug(`Updated foreground state: ${JSON.stringify(state)}`);
|
|
26
|
+
return this.client
|
|
27
|
+
.publish({
|
|
28
|
+
topic: constants_1.Topics.FOREGROUND_STATE.id,
|
|
29
|
+
payload: await (0, shared_1.compressDeflate)(Buffer.concat([Buffer.alloc(1, 0), (0, thrift_1.thriftWriteFromObject)(state, this.foregroundStateConfig)])),
|
|
30
|
+
qosLevel: 1,
|
|
31
|
+
})
|
|
32
|
+
.then(res => {
|
|
33
|
+
// updating the keepAlive to match the shared value
|
|
34
|
+
if ((0, shared_1.notUndefined)(state.keepAliveTimeout)) {
|
|
35
|
+
this.client.keepAlive = state.keepAliveTimeout;
|
|
36
|
+
}
|
|
37
|
+
return res;
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
async sendCommand({ action, data, threadId, clientContext, }) {
|
|
41
|
+
if (clientContext) {
|
|
42
|
+
data.client_context = clientContext;
|
|
43
|
+
}
|
|
44
|
+
const json = JSON.stringify({
|
|
45
|
+
action,
|
|
46
|
+
thread_id: threadId,
|
|
47
|
+
...data,
|
|
48
|
+
});
|
|
49
|
+
return this.client.publish({
|
|
50
|
+
topic: constants_1.Topics.SEND_MESSAGE.id,
|
|
51
|
+
qosLevel: 1,
|
|
52
|
+
payload: await (0, shared_1.compressDeflate)(json),
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
async sendItem({ threadId, itemType, data, clientContext }) {
|
|
56
|
+
return this.sendCommand({
|
|
57
|
+
action: 'send_item',
|
|
58
|
+
threadId,
|
|
59
|
+
clientContext: clientContext || this.chance.guid({ version: 4 }),
|
|
60
|
+
data: {
|
|
61
|
+
item_type: itemType,
|
|
62
|
+
...data,
|
|
63
|
+
},
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
async sendHashtag({ text, threadId, hashtag, clientContext, }) {
|
|
67
|
+
return this.sendItem({
|
|
68
|
+
itemType: 'hashtag',
|
|
69
|
+
threadId,
|
|
70
|
+
clientContext,
|
|
71
|
+
data: {
|
|
72
|
+
text: text || '',
|
|
73
|
+
hashtag,
|
|
74
|
+
item_id: hashtag,
|
|
75
|
+
},
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
async sendLike({ threadId, clientContext }) {
|
|
79
|
+
return this.sendItem({
|
|
80
|
+
itemType: 'like',
|
|
81
|
+
threadId,
|
|
82
|
+
clientContext,
|
|
83
|
+
data: {},
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
async sendLocation({ text, locationId, threadId, clientContext, }) {
|
|
87
|
+
return this.sendItem({
|
|
88
|
+
itemType: 'location',
|
|
89
|
+
threadId,
|
|
90
|
+
clientContext,
|
|
91
|
+
data: {
|
|
92
|
+
text: text || '',
|
|
93
|
+
venue_id: locationId,
|
|
94
|
+
item_id: locationId,
|
|
95
|
+
},
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
async sendMedia({ text, mediaId, threadId, clientContext, }) {
|
|
99
|
+
return this.sendItem({
|
|
100
|
+
itemType: 'media_share',
|
|
101
|
+
threadId,
|
|
102
|
+
clientContext,
|
|
103
|
+
data: {
|
|
104
|
+
text: text || '',
|
|
105
|
+
media_id: mediaId,
|
|
106
|
+
},
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
async sendProfile({ text, userId, threadId, clientContext, }) {
|
|
110
|
+
return this.sendItem({
|
|
111
|
+
itemType: 'profile',
|
|
112
|
+
threadId,
|
|
113
|
+
clientContext,
|
|
114
|
+
data: {
|
|
115
|
+
text: text || '',
|
|
116
|
+
profile_user_id: userId,
|
|
117
|
+
item_id: userId,
|
|
118
|
+
},
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
async sendReaction({ itemId, reactionType, clientContext, threadId, reactionStatus, targetItemType, emoji, }) {
|
|
122
|
+
return this.sendItem({
|
|
123
|
+
itemType: 'reaction',
|
|
124
|
+
threadId,
|
|
125
|
+
clientContext,
|
|
126
|
+
data: {
|
|
127
|
+
item_id: itemId,
|
|
128
|
+
node_type: 'item',
|
|
129
|
+
reaction_type: reactionType || 'like',
|
|
130
|
+
reaction_status: reactionStatus || 'created',
|
|
131
|
+
target_item_type: targetItemType,
|
|
132
|
+
emoji: emoji || '',
|
|
133
|
+
},
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
async sendUserStory({ text, storyId, threadId, clientContext, }) {
|
|
137
|
+
return this.sendItem({
|
|
138
|
+
itemType: 'reel_share',
|
|
139
|
+
threadId,
|
|
140
|
+
clientContext,
|
|
141
|
+
data: {
|
|
142
|
+
text: text || '',
|
|
143
|
+
item_id: storyId,
|
|
144
|
+
media_id: storyId,
|
|
145
|
+
},
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
async sendText({ text, clientContext, threadId }) {
|
|
149
|
+
return this.sendItem({
|
|
150
|
+
itemType: 'text',
|
|
151
|
+
threadId,
|
|
152
|
+
clientContext,
|
|
153
|
+
data: {
|
|
154
|
+
text,
|
|
155
|
+
},
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
async sendTextViaRealtime(threadId, text, clientContext) {
|
|
159
|
+
return this.sendText({
|
|
160
|
+
text,
|
|
161
|
+
threadId,
|
|
162
|
+
clientContext,
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
async markAsSeen({ threadId, itemId }) {
|
|
166
|
+
return this.sendCommand({
|
|
167
|
+
action: 'mark_seen',
|
|
168
|
+
threadId,
|
|
169
|
+
data: {
|
|
170
|
+
item_id: itemId,
|
|
171
|
+
},
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
async indicateActivity({ threadId, isActive, clientContext }) {
|
|
175
|
+
return this.sendCommand({
|
|
176
|
+
action: 'indicate_activity',
|
|
177
|
+
threadId,
|
|
178
|
+
clientContext: clientContext || this.chance.guid({ version: 4 }),
|
|
179
|
+
data: {
|
|
180
|
+
activity_status: (typeof isActive === 'undefined' ? true : isActive) ? '1' : '0',
|
|
181
|
+
},
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
exports.DirectCommands = DirectCommands;
|
|
186
|
+
//# sourceMappingURL=direct.commands.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"direct.commands.js","sourceRoot":"","sources":["../../../src/realtime/commands/direct.commands.ts"],"names":[],"mappings":";;;AACA,+CAAyC;AACzC,yCAA2E;AAE3E,iCAAiC;AACjC,yCAAgG;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