@remnawave/backend-contract 2.6.22 → 2.6.23
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/build/backend/commands/ip-control/fetch-ips-result.command.d.ts +6 -6
- package/build/backend/commands/subscriptions/get-by/get-raw-subscription-by-short-uuid.command.d.ts +6 -6
- package/build/backend/constants/events/events.d.ts +7 -1
- package/build/backend/constants/events/events.d.ts.map +1 -1
- package/build/backend/constants/events/events.js +5 -0
- package/build/backend/models/webhook/webhook.schema.d.ts +2030 -136
- package/build/backend/models/webhook/webhook.schema.d.ts.map +1 -1
- package/build/backend/models/webhook/webhook.schema.js +45 -1
- package/build/frontend/constants/events/events.js +5 -0
- package/build/frontend/models/webhook/webhook.schema.js +45 -1
- package/package.json +1 -1
|
@@ -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
|
}>;
|
package/build/backend/commands/subscriptions/get-by/get-raw-subscription-by-short-uuid.command.d.ts
CHANGED
|
@@ -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
|
|
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
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../../constants/events/events.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;QAmBX;;;;;WAKG;;;IAGP;;;;;;OAMG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6CG,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,MAAM,CAAC,IAAI,CA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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;
|