@remnawave/backend-contract 2.6.22 → 2.6.24

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.
Files changed (27) hide show
  1. package/build/backend/api/controllers/node-plugins.d.ts +1 -0
  2. package/build/backend/api/controllers/node-plugins.d.ts.map +1 -1
  3. package/build/backend/api/controllers/node-plugins.js +1 -0
  4. package/build/backend/api/routes.d.ts +1 -0
  5. package/build/backend/api/routes.d.ts.map +1 -1
  6. package/build/backend/api/routes.js +1 -0
  7. package/build/backend/commands/ip-control/fetch-ips-result.command.d.ts +6 -6
  8. package/build/backend/commands/node-plugins/executor.command.d.ts +178 -0
  9. package/build/backend/commands/node-plugins/executor.command.d.ts.map +1 -0
  10. package/build/backend/commands/node-plugins/executor.command.js +58 -0
  11. package/build/backend/commands/node-plugins/index.d.ts +1 -0
  12. package/build/backend/commands/node-plugins/index.d.ts.map +1 -1
  13. package/build/backend/commands/node-plugins/index.js +1 -0
  14. package/build/backend/commands/subscriptions/get-by/get-raw-subscription-by-short-uuid.command.d.ts +6 -6
  15. package/build/backend/constants/events/events.d.ts +7 -1
  16. package/build/backend/constants/events/events.d.ts.map +1 -1
  17. package/build/backend/constants/events/events.js +5 -0
  18. package/build/backend/models/webhook/webhook.schema.d.ts +2030 -136
  19. package/build/backend/models/webhook/webhook.schema.d.ts.map +1 -1
  20. package/build/backend/models/webhook/webhook.schema.js +45 -1
  21. package/build/frontend/api/controllers/node-plugins.js +1 -0
  22. package/build/frontend/api/routes.js +1 -0
  23. package/build/frontend/commands/node-plugins/executor.command.js +58 -0
  24. package/build/frontend/commands/node-plugins/index.js +1 -0
  25. package/build/frontend/constants/events/events.js +5 -0
  26. package/build/frontend/models/webhook/webhook.schema.js +45 -1
  27. package/package.json +1 -1
@@ -9,5 +9,6 @@ export declare const NODE_PLUGINS_ROUTES: {
9
9
  readonly REORDER: "actions/reorder";
10
10
  readonly CLONE: "actions/clone";
11
11
  };
12
+ readonly EXECUTOR: "executor";
12
13
  };
13
14
  //# sourceMappingURL=node-plugins.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"node-plugins.d.ts","sourceRoot":"","sources":["../../../../api/controllers/node-plugins.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,EAAG,cAAuB,CAAC;AAI/D,eAAO,MAAM,mBAAmB;;yBAEhB,MAAM;;4BAEH,MAAM;;;;;;CAOf,CAAC"}
1
+ {"version":3,"file":"node-plugins.d.ts","sourceRoot":"","sources":["../../../../api/controllers/node-plugins.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,EAAG,cAAuB,CAAC;AAI/D,eAAO,MAAM,mBAAmB;;yBAEhB,MAAM;;4BAEH,MAAM;;;;;;;CASf,CAAC"}
@@ -13,4 +13,5 @@ exports.NODE_PLUGINS_ROUTES = {
13
13
  REORDER: `${ACTIONS_ROUTE}/reorder`,
14
14
  CLONE: `${ACTIONS_ROUTE}/clone`,
15
15
  },
16
+ EXECUTOR: 'executor',
16
17
  };
@@ -264,6 +264,7 @@ export declare const REST_API: {
264
264
  readonly REORDER: "/api/node-plugins/actions/reorder";
265
265
  readonly CLONE: "/api/node-plugins/actions/clone";
266
266
  };
267
+ readonly EXECUTOR: "/api/node-plugins/executor";
267
268
  };
268
269
  readonly BANDWIDTH_STATS: {
269
270
  readonly NODES: {
@@ -1 +1 @@
1
- {"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../api/routes.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,EAAG,MAAe,CAAC;AACpC,eAAO,MAAM,YAAY,EAAG,UAAmB,CAAC;AAChD,eAAO,MAAM,WAAW,EAAG,SAAkB,CAAC;AAC9C,eAAO,MAAM,cAAc,EAAG,SAAkB,CAAC;AAEjD,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;gCAyBE,MAAM;;;;;;;;;qCAYD,MAAM;;gCAGX,MAAM;;;;;oCAOF,MAAM;qCAIL,MAA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DER: `${exports.ROOT}/${CONTROLLERS.NODE_PLUGINS_CONTROLLER}/${CONTROLLERS.NODE_PLUGINS_ROUTES.ACTIONS.REORDER}`,
302
302
  CLONE: `${exports.ROOT}/${CONTROLLERS.NODE_PLUGINS_CONTROLLER}/${CONTROLLERS.NODE_PLUGINS_ROUTES.ACTIONS.CLONE}`,
303
303
  },
304
+ EXECUTOR: `${exports.ROOT}/${CONTROLLERS.NODE_PLUGINS_CONTROLLER}/${CONTROLLERS.NODE_PLUGINS_ROUTES.EXECUTOR}`,
304
305
  },
305
306
  BANDWIDTH_STATS: {
306
307
  NODES: {
@@ -56,8 +56,8 @@ export declare namespace FetchIpsResultCommand {
56
56
  ips: string[];
57
57
  }[];
58
58
  userUuid: string;
59
- success: boolean;
60
59
  userId: string;
60
+ success: boolean;
61
61
  }, {
62
62
  nodes: {
63
63
  nodeUuid: string;
@@ -66,8 +66,8 @@ export declare namespace FetchIpsResultCommand {
66
66
  ips: string[];
67
67
  }[];
68
68
  userUuid: string;
69
- success: boolean;
70
69
  userId: string;
70
+ success: boolean;
71
71
  }>>;
72
72
  }, "strip", z.ZodTypeAny, {
73
73
  isCompleted: boolean;
@@ -85,8 +85,8 @@ export declare namespace FetchIpsResultCommand {
85
85
  ips: string[];
86
86
  }[];
87
87
  userUuid: string;
88
- success: boolean;
89
88
  userId: string;
89
+ success: boolean;
90
90
  } | null;
91
91
  }, {
92
92
  isCompleted: boolean;
@@ -104,8 +104,8 @@ export declare namespace FetchIpsResultCommand {
104
104
  ips: string[];
105
105
  }[];
106
106
  userUuid: string;
107
- success: boolean;
108
107
  userId: string;
108
+ success: boolean;
109
109
  } | null;
110
110
  }>;
111
111
  }, "strip", z.ZodTypeAny, {
@@ -125,8 +125,8 @@ export declare namespace FetchIpsResultCommand {
125
125
  ips: string[];
126
126
  }[];
127
127
  userUuid: string;
128
- success: boolean;
129
128
  userId: string;
129
+ success: boolean;
130
130
  } | null;
131
131
  };
132
132
  }, {
@@ -146,8 +146,8 @@ export declare namespace FetchIpsResultCommand {
146
146
  ips: string[];
147
147
  }[];
148
148
  userUuid: string;
149
- success: boolean;
150
149
  userId: string;
150
+ success: boolean;
151
151
  } | null;
152
152
  };
153
153
  }>;
@@ -0,0 +1,178 @@
1
+ import { z } from 'zod';
2
+ export declare namespace PluginExecutorCommand {
3
+ const url: "/api/node-plugins/executor";
4
+ const TSQ_url: "/api/node-plugins/executor";
5
+ const endpointDetails: import("../../constants").EndpointDetails;
6
+ const CommandSchema: z.ZodDiscriminatedUnion<"command", [z.ZodObject<{
7
+ command: z.ZodLiteral<"blockIps">;
8
+ ips: z.ZodArray<z.ZodObject<{
9
+ ip: z.ZodString;
10
+ timeout: z.ZodNumber;
11
+ }, "strip", z.ZodTypeAny, {
12
+ ip: string;
13
+ timeout: number;
14
+ }, {
15
+ ip: string;
16
+ timeout: number;
17
+ }>, "many">;
18
+ }, "strip", z.ZodTypeAny, {
19
+ ips: {
20
+ ip: string;
21
+ timeout: number;
22
+ }[];
23
+ command: "blockIps";
24
+ }, {
25
+ ips: {
26
+ ip: string;
27
+ timeout: number;
28
+ }[];
29
+ command: "blockIps";
30
+ }>, z.ZodObject<{
31
+ command: z.ZodLiteral<"unblockIps">;
32
+ ips: z.ZodArray<z.ZodString, "many">;
33
+ }, "strip", z.ZodTypeAny, {
34
+ ips: string[];
35
+ command: "unblockIps";
36
+ }, {
37
+ ips: string[];
38
+ command: "unblockIps";
39
+ }>, z.ZodObject<{
40
+ command: z.ZodLiteral<"recreateTables">;
41
+ }, "strip", z.ZodTypeAny, {
42
+ command: "recreateTables";
43
+ }, {
44
+ command: "recreateTables";
45
+ }>]>;
46
+ const TargetNodesSchema: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
47
+ target: z.ZodLiteral<"allNodes">;
48
+ }, "strip", z.ZodTypeAny, {
49
+ target: "allNodes";
50
+ }, {
51
+ target: "allNodes";
52
+ }>, z.ZodObject<{
53
+ target: z.ZodLiteral<"specificNodes">;
54
+ nodeUuids: z.ZodArray<z.ZodString, "many">;
55
+ }, "strip", z.ZodTypeAny, {
56
+ target: "specificNodes";
57
+ nodeUuids: string[];
58
+ }, {
59
+ target: "specificNodes";
60
+ nodeUuids: string[];
61
+ }>]>;
62
+ const RequestSchema: z.ZodObject<{
63
+ command: z.ZodDiscriminatedUnion<"command", [z.ZodObject<{
64
+ command: z.ZodLiteral<"blockIps">;
65
+ ips: z.ZodArray<z.ZodObject<{
66
+ ip: z.ZodString;
67
+ timeout: z.ZodNumber;
68
+ }, "strip", z.ZodTypeAny, {
69
+ ip: string;
70
+ timeout: number;
71
+ }, {
72
+ ip: string;
73
+ timeout: number;
74
+ }>, "many">;
75
+ }, "strip", z.ZodTypeAny, {
76
+ ips: {
77
+ ip: string;
78
+ timeout: number;
79
+ }[];
80
+ command: "blockIps";
81
+ }, {
82
+ ips: {
83
+ ip: string;
84
+ timeout: number;
85
+ }[];
86
+ command: "blockIps";
87
+ }>, z.ZodObject<{
88
+ command: z.ZodLiteral<"unblockIps">;
89
+ ips: z.ZodArray<z.ZodString, "many">;
90
+ }, "strip", z.ZodTypeAny, {
91
+ ips: string[];
92
+ command: "unblockIps";
93
+ }, {
94
+ ips: string[];
95
+ command: "unblockIps";
96
+ }>, z.ZodObject<{
97
+ command: z.ZodLiteral<"recreateTables">;
98
+ }, "strip", z.ZodTypeAny, {
99
+ command: "recreateTables";
100
+ }, {
101
+ command: "recreateTables";
102
+ }>]>;
103
+ targetNodes: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
104
+ target: z.ZodLiteral<"allNodes">;
105
+ }, "strip", z.ZodTypeAny, {
106
+ target: "allNodes";
107
+ }, {
108
+ target: "allNodes";
109
+ }>, z.ZodObject<{
110
+ target: z.ZodLiteral<"specificNodes">;
111
+ nodeUuids: z.ZodArray<z.ZodString, "many">;
112
+ }, "strip", z.ZodTypeAny, {
113
+ target: "specificNodes";
114
+ nodeUuids: string[];
115
+ }, {
116
+ target: "specificNodes";
117
+ nodeUuids: string[];
118
+ }>]>;
119
+ }, "strip", z.ZodTypeAny, {
120
+ targetNodes: {
121
+ target: "allNodes";
122
+ } | {
123
+ target: "specificNodes";
124
+ nodeUuids: string[];
125
+ };
126
+ command: {
127
+ ips: {
128
+ ip: string;
129
+ timeout: number;
130
+ }[];
131
+ command: "blockIps";
132
+ } | {
133
+ ips: string[];
134
+ command: "unblockIps";
135
+ } | {
136
+ command: "recreateTables";
137
+ };
138
+ }, {
139
+ targetNodes: {
140
+ target: "allNodes";
141
+ } | {
142
+ target: "specificNodes";
143
+ nodeUuids: string[];
144
+ };
145
+ command: {
146
+ ips: {
147
+ ip: string;
148
+ timeout: number;
149
+ }[];
150
+ command: "blockIps";
151
+ } | {
152
+ ips: string[];
153
+ command: "unblockIps";
154
+ } | {
155
+ command: "recreateTables";
156
+ };
157
+ }>;
158
+ type Request = z.infer<typeof RequestSchema>;
159
+ const ResponseSchema: z.ZodObject<{
160
+ response: z.ZodObject<{
161
+ eventSent: z.ZodBoolean;
162
+ }, "strip", z.ZodTypeAny, {
163
+ eventSent: boolean;
164
+ }, {
165
+ eventSent: boolean;
166
+ }>;
167
+ }, "strip", z.ZodTypeAny, {
168
+ response: {
169
+ eventSent: boolean;
170
+ };
171
+ }, {
172
+ response: {
173
+ eventSent: boolean;
174
+ };
175
+ }>;
176
+ type Response = z.infer<typeof ResponseSchema>;
177
+ }
178
+ //# sourceMappingURL=executor.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"executor.command.d.ts","sourceRoot":"","sources":["../../../../commands/node-plugins/executor.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,qBAAqB,CAAC;IAC5B,MAAM,GAAG,8BAAiC,CAAC;IAC3C,MAAM,OAAO,8BAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAyBxB,CAAC;IAEI,MAAM,iBAAiB;;;;;;;;;;;;;;;QAY5B,CAAC;IAEI,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAGxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PluginExecutorCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const api_1 = require("../../api");
6
+ const constants_1 = require("../../constants");
7
+ var PluginExecutorCommand;
8
+ (function (PluginExecutorCommand) {
9
+ PluginExecutorCommand.url = api_1.REST_API.NODE_PLUGINS.EXECUTOR;
10
+ PluginExecutorCommand.TSQ_url = PluginExecutorCommand.url;
11
+ PluginExecutorCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.NODE_PLUGINS_ROUTES.EXECUTOR, 'post', 'Execute command on node plugins');
12
+ PluginExecutorCommand.CommandSchema = zod_1.z.discriminatedUnion('command', [
13
+ zod_1.z
14
+ .object({
15
+ command: zod_1.z.literal('blockIps'),
16
+ ips: zod_1.z
17
+ .array(zod_1.z.object({
18
+ ip: zod_1.z.string().ip(),
19
+ timeout: zod_1.z.number(),
20
+ }))
21
+ .min(1),
22
+ })
23
+ .describe('Block IPs'),
24
+ zod_1.z
25
+ .object({
26
+ command: zod_1.z.literal('unblockIps'),
27
+ ips: zod_1.z.array(zod_1.z.string().ip()).min(1),
28
+ })
29
+ .describe('Unblock IPs'),
30
+ zod_1.z
31
+ .object({
32
+ command: zod_1.z.literal('recreateTables'),
33
+ })
34
+ .describe('Recreate tables'),
35
+ ]);
36
+ PluginExecutorCommand.TargetNodesSchema = zod_1.z.discriminatedUnion('target', [
37
+ zod_1.z
38
+ .object({
39
+ target: zod_1.z.literal('allNodes'),
40
+ })
41
+ .describe('Target all connected nodes'),
42
+ zod_1.z
43
+ .object({
44
+ target: zod_1.z.literal('specificNodes'),
45
+ nodeUuids: zod_1.z.array(zod_1.z.string().uuid()).min(1),
46
+ })
47
+ .describe('Target specific nodes'),
48
+ ]);
49
+ PluginExecutorCommand.RequestSchema = zod_1.z.object({
50
+ command: PluginExecutorCommand.CommandSchema,
51
+ targetNodes: PluginExecutorCommand.TargetNodesSchema,
52
+ });
53
+ PluginExecutorCommand.ResponseSchema = zod_1.z.object({
54
+ response: zod_1.z.object({
55
+ eventSent: zod_1.z.boolean(),
56
+ }),
57
+ });
58
+ })(PluginExecutorCommand || (exports.PluginExecutorCommand = PluginExecutorCommand = {}));
@@ -1,6 +1,7 @@
1
1
  export * from './actions';
2
2
  export * from './create-node-plugin.command';
3
3
  export * from './delete-node-plugin.command';
4
+ export * from './executor.command';
4
5
  export * from './get-node-plugin.command';
5
6
  export * from './get-node-plugins.command';
6
7
  export * from './update-node-plugin.command';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commands/node-plugins/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commands/node-plugins/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC"}
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./actions"), exports);
18
18
  __exportStar(require("./create-node-plugin.command"), exports);
19
19
  __exportStar(require("./delete-node-plugin.command"), exports);
20
+ __exportStar(require("./executor.command"), exports);
20
21
  __exportStar(require("./get-node-plugin.command"), exports);
21
22
  __exportStar(require("./get-node-plugins.command"), exports);
22
23
  __exportStar(require("./update-node-plugin.command"), exports);
@@ -317,8 +317,8 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
317
317
  allowInsecure?: boolean | null | undefined;
318
318
  shuffleHost?: boolean | null | undefined;
319
319
  mihomoX25519?: boolean | null | undefined;
320
- publicKey?: string | null | undefined;
321
320
  protocol?: string | null | undefined;
321
+ publicKey?: string | null | undefined;
322
322
  shortId?: string | null | undefined;
323
323
  spiderX?: string | null | undefined;
324
324
  tls?: string | null | undefined;
@@ -374,8 +374,8 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
374
374
  allowInsecure?: boolean | null | undefined;
375
375
  shuffleHost?: boolean | null | undefined;
376
376
  mihomoX25519?: boolean | null | undefined;
377
- publicKey?: string | null | undefined;
378
377
  protocol?: string | null | undefined;
378
+ publicKey?: string | null | undefined;
379
379
  shortId?: string | null | undefined;
380
380
  spiderX?: string | null | undefined;
381
381
  tls?: string | null | undefined;
@@ -479,8 +479,8 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
479
479
  allowInsecure?: boolean | null | undefined;
480
480
  shuffleHost?: boolean | null | undefined;
481
481
  mihomoX25519?: boolean | null | undefined;
482
- publicKey?: string | null | undefined;
483
482
  protocol?: string | null | undefined;
483
+ publicKey?: string | null | undefined;
484
484
  shortId?: string | null | undefined;
485
485
  spiderX?: string | null | undefined;
486
486
  tls?: string | null | undefined;
@@ -584,8 +584,8 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
584
584
  allowInsecure?: boolean | null | undefined;
585
585
  shuffleHost?: boolean | null | undefined;
586
586
  mihomoX25519?: boolean | null | undefined;
587
- publicKey?: string | null | undefined;
588
587
  protocol?: string | null | undefined;
588
+ publicKey?: string | null | undefined;
589
589
  shortId?: string | null | undefined;
590
590
  spiderX?: string | null | undefined;
591
591
  tls?: string | null | undefined;
@@ -691,8 +691,8 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
691
691
  allowInsecure?: boolean | null | undefined;
692
692
  shuffleHost?: boolean | null | undefined;
693
693
  mihomoX25519?: boolean | null | undefined;
694
- publicKey?: string | null | undefined;
695
694
  protocol?: string | null | undefined;
695
+ publicKey?: string | null | undefined;
696
696
  shortId?: string | null | undefined;
697
697
  spiderX?: string | null | undefined;
698
698
  tls?: string | null | undefined;
@@ -798,8 +798,8 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
798
798
  allowInsecure?: boolean | null | undefined;
799
799
  shuffleHost?: boolean | null | undefined;
800
800
  mihomoX25519?: boolean | null | undefined;
801
- publicKey?: string | null | undefined;
802
801
  protocol?: string | null | undefined;
802
+ publicKey?: string | null | undefined;
803
803
  shortId?: string | null | undefined;
804
804
  spiderX?: string | null | undefined;
805
805
  tls?: string | null | undefined;
@@ -62,12 +62,16 @@ export declare const EVENTS: {
62
62
  readonly INFRA_BILLING_NODE_PAYMENT_OVERDUE_48HRS: "crm.infra_billing_node_payment_overdue_48hrs";
63
63
  readonly INFRA_BILLING_NODE_PAYMENT_OVERDUE_7_DAYS: "crm.infra_billing_node_payment_overdue_7_days";
64
64
  };
65
+ readonly TORRENT_BLOCKER: {
66
+ readonly REPORT: "torrent_blocker.report";
67
+ };
65
68
  readonly CATCH_ALL_USER_EVENTS: "user.*";
66
69
  readonly CATCH_ALL_USER_HWID_DEVICES_EVENTS: "user_hwid_devices.*";
67
70
  readonly CATCH_ALL_NODE_EVENTS: "node.*";
68
71
  readonly CATCH_ALL_SERVICE_EVENTS: "service.*";
69
72
  readonly CATCH_ALL_ERRORS_EVENTS: "errors.*";
70
73
  readonly CATCH_ALL_CRM_EVENTS: "crm.*";
74
+ readonly CATCH_ALL_TORRENT_BLOCKER_EVENTS: "torrent_blocker.*";
71
75
  };
72
76
  export type TNodeEvents = (typeof EVENTS.NODE)[keyof typeof EVENTS.NODE];
73
77
  export type TUserEvents = (typeof EVENTS.USER)[keyof typeof EVENTS.USER];
@@ -75,7 +79,8 @@ export type TServiceEvents = (typeof EVENTS.SERVICE)[keyof typeof EVENTS.SERVICE
75
79
  export type TErrorsEvents = (typeof EVENTS.ERRORS)[keyof typeof EVENTS.ERRORS];
76
80
  export type TCRMEvents = (typeof EVENTS.CRM)[keyof typeof EVENTS.CRM];
77
81
  export type TUserHwidDevicesEvents = (typeof EVENTS.USER_HWID_DEVICES)[keyof typeof EVENTS.USER_HWID_DEVICES];
78
- export type TAllEvents = TUserEvents | TNodeEvents | TServiceEvents | TErrorsEvents | TCRMEvents | TUserHwidDevicesEvents;
82
+ export type TTorrentBlockerEvents = (typeof EVENTS.TORRENT_BLOCKER)[keyof typeof EVENTS.TORRENT_BLOCKER];
83
+ export type TAllEvents = TUserEvents | TNodeEvents | TServiceEvents | TErrorsEvents | TCRMEvents | TUserHwidDevicesEvents | TTorrentBlockerEvents;
79
84
  export type TAllEventChannels = 'telegram' | 'webhook';
80
85
  export declare const EVENTS_SCOPES: {
81
86
  readonly USER: "user";
@@ -84,6 +89,7 @@ export declare const EVENTS_SCOPES: {
84
89
  readonly SERVICE: "service";
85
90
  readonly ERRORS: "errors";
86
91
  readonly CRM: "crm";
92
+ readonly TORRENT_BLOCKER: "torrent_blocker";
87
93
  };
88
94
  export type TEventsScope = (typeof EVENTS_SCOPES)[keyof typeof EVENTS_SCOPES];
89
95
  type ObjectValues<T> = T[keyof T];
@@ -1 +1 @@
1
- {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../../constants/events/events.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;QAmBX;;;;;WAKG;;;IAGP;;;;;;OAMG;;;;;;;;;;;;;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BAAsB,GACtB,qBAAqB,CAAC;AAC5B,MAAM,MAAM,iBAAiB,GAAG,UAAU,GAAG,SAAS,CAAC;AAEvD,eAAO,MAAM,aAAa;;;;;;;;CAQhB,CAAC;AAEX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,OAAO,aAAa,CAAC,CAAC;AAE9E,KAAK,YAAY,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AAClC,KAAK,aAAa,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC;AAEpC,eAAO,MAAM,SAAS,GAAI,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,KAAK,CAAC,KACxC,aAAa,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC"}
@@ -65,12 +65,16 @@ exports.EVENTS = {
65
65
  INFRA_BILLING_NODE_PAYMENT_OVERDUE_48HRS: 'crm.infra_billing_node_payment_overdue_48hrs',
66
66
  INFRA_BILLING_NODE_PAYMENT_OVERDUE_7_DAYS: 'crm.infra_billing_node_payment_overdue_7_days',
67
67
  },
68
+ TORRENT_BLOCKER: {
69
+ REPORT: 'torrent_blocker.report',
70
+ },
68
71
  CATCH_ALL_USER_EVENTS: 'user.*',
69
72
  CATCH_ALL_USER_HWID_DEVICES_EVENTS: 'user_hwid_devices.*',
70
73
  CATCH_ALL_NODE_EVENTS: 'node.*',
71
74
  CATCH_ALL_SERVICE_EVENTS: 'service.*',
72
75
  CATCH_ALL_ERRORS_EVENTS: 'errors.*',
73
76
  CATCH_ALL_CRM_EVENTS: 'crm.*',
77
+ CATCH_ALL_TORRENT_BLOCKER_EVENTS: 'torrent_blocker.*',
74
78
  };
75
79
  exports.EVENTS_SCOPES = {
76
80
  USER: 'user',
@@ -79,6 +83,7 @@ exports.EVENTS_SCOPES = {
79
83
  SERVICE: 'service',
80
84
  ERRORS: 'errors',
81
85
  CRM: 'crm',
86
+ TORRENT_BLOCKER: 'torrent_blocker',
82
87
  };
83
88
  const toZodEnum = (obj) => Object.values(obj);
84
89
  exports.toZodEnum = toZodEnum;