@remnawave/backend-contract 2.8.29 → 2.8.31
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/api-tokens/create.command.d.ts +22 -13
- package/build/backend/commands/api-tokens/create.command.d.ts.map +1 -1
- package/build/backend/commands/api-tokens/create.command.js +5 -2
- package/build/backend/commands/api-tokens/find.command.d.ts +26 -26
- package/build/backend/commands/api-tokens/find.command.js +2 -2
- package/build/backend/commands/bandwidth-stats/nodes/get-stats-nodes-usage.command.d.ts +12 -12
- package/build/backend/commands/bandwidth-stats/users/get-stats-user-usage.command.d.ts +12 -12
- package/build/backend/commands/config-profiles/actions/reorder.command.d.ts +16 -16
- package/build/backend/commands/config-profiles/create-config-profile.command.d.ts +10 -10
- package/build/backend/commands/config-profiles/get-computed-config-profile-by-uuid.command.d.ts +10 -10
- package/build/backend/commands/config-profiles/get-config-profile-by-uuid.command.d.ts +10 -10
- package/build/backend/commands/config-profiles/get-config-profiles.command.d.ts +14 -14
- package/build/backend/commands/config-profiles/update-config-profile.command.d.ts +10 -10
- package/build/backend/commands/external-squads/actions/reorder.command.d.ts +6 -6
- package/build/backend/commands/external-squads/create-external-squad.command.d.ts +4 -4
- package/build/backend/commands/external-squads/get-external-squad-by-uuid.command.d.ts +4 -4
- package/build/backend/commands/external-squads/get-external-squads.command.d.ts +6 -6
- package/build/backend/commands/external-squads/update-external-squad.command.d.ts +4 -4
- package/build/backend/commands/infra-billing/create-billing-node.command.d.ts +28 -28
- package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts +4 -4
- package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts +26 -26
- package/build/backend/commands/infra-billing/get-billing-nodes.command.d.ts +26 -26
- package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts +4 -4
- package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts +6 -6
- package/build/backend/commands/infra-billing/update-billing-node.command.d.ts +26 -26
- package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts +4 -4
- package/build/backend/commands/internal-squads/actions/reorder.command.d.ts +6 -6
- package/build/backend/commands/internal-squads/create-internal-squad.command.d.ts +4 -4
- package/build/backend/commands/internal-squads/get-internal-squad-by-uuid.d.ts +4 -4
- package/build/backend/commands/internal-squads/get-internal-squads.command.d.ts +6 -6
- package/build/backend/commands/internal-squads/update-internal-squad.command.d.ts +4 -4
- package/build/backend/commands/node-plugins/torrent-blocker/get-torrent-blocker-reports-stats.command.d.ts +6 -6
- package/build/backend/commands/node-plugins/torrent-blocker/get-torrent-blocker-reports.command.d.ts +11 -11
- package/build/backend/commands/node-plugins/torrent-blocker/truncate-torrent-blocker-reports.command.d.ts +11 -11
- package/build/backend/commands/nodes/actions/disable.command.d.ts +10 -10
- package/build/backend/commands/nodes/actions/enable.command.d.ts +10 -10
- package/build/backend/commands/nodes/actions/reorder.command.d.ts +12 -12
- package/build/backend/commands/nodes/create.command.d.ts +11 -11
- package/build/backend/commands/nodes/get-all.command.d.ts +10 -10
- package/build/backend/commands/nodes/get-one.command.d.ts +10 -10
- package/build/backend/commands/nodes/update.command.d.ts +14 -14
- package/build/backend/commands/passkeys/delete-passkeys.command.d.ts +6 -6
- package/build/backend/commands/passkeys/get-active-passkeys.command.d.ts +6 -6
- package/build/backend/commands/passkeys/update-passkey.command.d.ts +6 -6
- package/build/backend/commands/subscription-settings/get-subscription-settings.command.d.ts +8 -8
- package/build/backend/commands/subscription-settings/update-subscription-settings.command.d.ts +14 -14
- package/build/backend/commands/subscriptions/get-by/get-raw-subscription-by-short-uuid.command.d.ts +6 -6
- package/build/backend/commands/system/testers/test-srr-matcher.command.d.ts +12 -12
- package/build/backend/commands/users/actions/disable-user.command.d.ts +4 -4
- package/build/backend/commands/users/actions/enable-user.command.d.ts +4 -4
- package/build/backend/commands/users/actions/reset-user-traffic.command.d.ts +4 -4
- package/build/backend/commands/users/actions/revoke-user-subscription.command.d.ts +4 -4
- package/build/backend/commands/users/bulk/bulk-update-users.command.d.ts +4 -4
- package/build/backend/commands/users/bulk-all/bulk-all-update-users.command.d.ts +2 -2
- package/build/backend/commands/users/create-user.command.d.ts +6 -6
- package/build/backend/commands/users/get-all-users.command.d.ts +6 -6
- package/build/backend/commands/users/get-by/get-user-by-email.command.d.ts +4 -4
- package/build/backend/commands/users/get-by/get-user-by-id.command.d.ts +4 -4
- package/build/backend/commands/users/get-by/get-user-by-short-uuid.command.d.ts +4 -4
- package/build/backend/commands/users/get-by/get-user-by-tag.command.d.ts +4 -4
- package/build/backend/commands/users/get-by/get-user-by-telegram-id.command.d.ts +4 -4
- package/build/backend/commands/users/get-by/get-user-by-username.command.d.ts +4 -4
- package/build/backend/commands/users/get-user-by-uuid.command.d.ts +4 -4
- package/build/backend/commands/users/get-users-stream.command.d.ts +6 -6
- package/build/backend/commands/users/update-user.command.d.ts +8 -8
- package/build/backend/constants/events/events.d.ts +2 -0
- package/build/backend/constants/events/events.d.ts.map +1 -1
- package/build/backend/constants/events/events.js +2 -0
- package/build/backend/models/api-tokens.schema.d.ts +6 -6
- package/build/backend/models/api-tokens.schema.d.ts.map +1 -1
- package/build/backend/models/api-tokens.schema.js +5 -2
- package/build/backend/models/config-profile.schema.d.ts +6 -6
- package/build/backend/models/extended-users.schema.d.ts +2 -2
- package/build/backend/models/external-squad.schema.d.ts +2 -2
- package/build/backend/models/infra-billing-available-node.schema.d.ts +5 -5
- package/build/backend/models/infra-billing-node.schema.d.ts +9 -9
- package/build/backend/models/infra-provider.schema.d.ts +4 -4
- package/build/backend/models/internal-squad.schema.d.ts +2 -2
- package/build/backend/models/nodes.schema.d.ts +6 -6
- package/build/backend/models/response-rules/response-rule.schema.d.ts +4 -4
- package/build/backend/models/response-rules/response-rules-config.schema.d.ts +4 -4
- package/build/backend/models/subscription-settings.schema.d.ts +6 -6
- package/build/backend/models/torrent-blocker-report.schema.d.ts +7 -7
- package/build/backend/models/users.schema.d.ts +2 -2
- package/build/backend/models/webhook/webhook.schema.d.ts +166 -86
- package/build/backend/models/webhook/webhook.schema.d.ts.map +1 -1
- package/build/backend/models/webhook/webhook.schema.js +11 -0
- package/build/frontend/commands/api-tokens/create.command.js +5 -2
- package/build/frontend/commands/api-tokens/find.command.js +2 -2
- package/build/frontend/constants/events/events.js +2 -0
- package/build/frontend/models/api-tokens.schema.js +5 -2
- package/build/frontend/models/webhook/webhook.schema.js +11 -0
- package/package.json +1 -1
|
@@ -55,9 +55,9 @@ export declare const InternalSquadSchema: z.ZodObject<{
|
|
|
55
55
|
rawInbound?: unknown;
|
|
56
56
|
}[];
|
|
57
57
|
uuid: string;
|
|
58
|
+
name: string;
|
|
58
59
|
createdAt: Date;
|
|
59
60
|
updatedAt: Date;
|
|
60
|
-
name: string;
|
|
61
61
|
viewPosition: number;
|
|
62
62
|
info: {
|
|
63
63
|
membersCount: number;
|
|
@@ -75,9 +75,9 @@ export declare const InternalSquadSchema: z.ZodObject<{
|
|
|
75
75
|
rawInbound?: unknown;
|
|
76
76
|
}[];
|
|
77
77
|
uuid: string;
|
|
78
|
+
name: string;
|
|
78
79
|
createdAt: string;
|
|
79
80
|
updatedAt: string;
|
|
80
|
-
name: string;
|
|
81
81
|
viewPosition: number;
|
|
82
82
|
info: {
|
|
83
83
|
membersCount: number;
|
|
@@ -87,16 +87,16 @@ export declare const NodesSchema: z.ZodObject<{
|
|
|
87
87
|
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
88
88
|
}, "strip", z.ZodTypeAny, {
|
|
89
89
|
uuid: string;
|
|
90
|
+
name: string;
|
|
90
91
|
createdAt: Date;
|
|
91
92
|
updatedAt: Date;
|
|
92
|
-
name: string;
|
|
93
93
|
faviconLink: string | null;
|
|
94
94
|
loginUrl: string | null;
|
|
95
95
|
}, {
|
|
96
96
|
uuid: string;
|
|
97
|
+
name: string;
|
|
97
98
|
createdAt: string;
|
|
98
99
|
updatedAt: string;
|
|
99
|
-
name: string;
|
|
100
100
|
faviconLink: string | null;
|
|
101
101
|
loginUrl: string | null;
|
|
102
102
|
}>>;
|
|
@@ -281,18 +281,18 @@ export declare const NodesSchema: z.ZodObject<{
|
|
|
281
281
|
};
|
|
282
282
|
} | null;
|
|
283
283
|
uuid: string;
|
|
284
|
+
name: string;
|
|
284
285
|
createdAt: Date;
|
|
285
286
|
updatedAt: Date;
|
|
286
287
|
provider: {
|
|
287
288
|
uuid: string;
|
|
289
|
+
name: string;
|
|
288
290
|
createdAt: Date;
|
|
289
291
|
updatedAt: Date;
|
|
290
|
-
name: string;
|
|
291
292
|
faviconLink: string | null;
|
|
292
293
|
loginUrl: string | null;
|
|
293
294
|
} | null;
|
|
294
295
|
countryCode: string;
|
|
295
|
-
name: string;
|
|
296
296
|
port: number | null;
|
|
297
297
|
viewPosition: number;
|
|
298
298
|
trafficLimitBytes: number | null;
|
|
@@ -361,18 +361,18 @@ export declare const NodesSchema: z.ZodObject<{
|
|
|
361
361
|
};
|
|
362
362
|
} | null;
|
|
363
363
|
uuid: string;
|
|
364
|
+
name: string;
|
|
364
365
|
createdAt: string;
|
|
365
366
|
updatedAt: string;
|
|
366
367
|
provider: {
|
|
367
368
|
uuid: string;
|
|
369
|
+
name: string;
|
|
368
370
|
createdAt: string;
|
|
369
371
|
updatedAt: string;
|
|
370
|
-
name: string;
|
|
371
372
|
faviconLink: string | null;
|
|
372
373
|
loginUrl: string | null;
|
|
373
374
|
} | null;
|
|
374
375
|
countryCode: string;
|
|
375
|
-
name: string;
|
|
376
376
|
port: number | null;
|
|
377
377
|
viewPosition: number;
|
|
378
378
|
trafficLimitBytes: number | null;
|
|
@@ -106,8 +106,8 @@ export declare const ResponseRuleSchemaBase: z.ZodObject<{
|
|
|
106
106
|
} | undefined;
|
|
107
107
|
}>>;
|
|
108
108
|
}, "strip", z.ZodTypeAny, {
|
|
109
|
-
enabled: boolean;
|
|
110
109
|
name: string;
|
|
110
|
+
enabled: boolean;
|
|
111
111
|
operator: "AND" | "OR";
|
|
112
112
|
conditions: {
|
|
113
113
|
value: string;
|
|
@@ -134,8 +134,8 @@ export declare const ResponseRuleSchemaBase: z.ZodObject<{
|
|
|
134
134
|
} | undefined;
|
|
135
135
|
} | undefined;
|
|
136
136
|
}, {
|
|
137
|
-
enabled: boolean;
|
|
138
137
|
name: string;
|
|
138
|
+
enabled: boolean;
|
|
139
139
|
operator: "AND" | "OR";
|
|
140
140
|
conditions: {
|
|
141
141
|
value: string;
|
|
@@ -269,8 +269,8 @@ export declare const ResponseRuleSchema: z.ZodObject<{
|
|
|
269
269
|
} | undefined;
|
|
270
270
|
}>>;
|
|
271
271
|
}, "strip", z.ZodTypeAny, {
|
|
272
|
-
enabled: boolean;
|
|
273
272
|
name: string;
|
|
273
|
+
enabled: boolean;
|
|
274
274
|
operator: "AND" | "OR";
|
|
275
275
|
conditions: {
|
|
276
276
|
value: string;
|
|
@@ -297,8 +297,8 @@ export declare const ResponseRuleSchema: z.ZodObject<{
|
|
|
297
297
|
} | undefined;
|
|
298
298
|
} | undefined;
|
|
299
299
|
}, {
|
|
300
|
-
enabled: boolean;
|
|
301
300
|
name: string;
|
|
301
|
+
enabled: boolean;
|
|
302
302
|
operator: "AND" | "OR";
|
|
303
303
|
conditions: {
|
|
304
304
|
value: string;
|
|
@@ -117,8 +117,8 @@ export declare const ResponseRulesConfigSchema: z.ZodObject<{
|
|
|
117
117
|
} | undefined;
|
|
118
118
|
}>>;
|
|
119
119
|
}, "strip", z.ZodTypeAny, {
|
|
120
|
-
enabled: boolean;
|
|
121
120
|
name: string;
|
|
121
|
+
enabled: boolean;
|
|
122
122
|
operator: "AND" | "OR";
|
|
123
123
|
conditions: {
|
|
124
124
|
value: string;
|
|
@@ -145,8 +145,8 @@ export declare const ResponseRulesConfigSchema: z.ZodObject<{
|
|
|
145
145
|
} | undefined;
|
|
146
146
|
} | undefined;
|
|
147
147
|
}, {
|
|
148
|
-
enabled: boolean;
|
|
149
148
|
name: string;
|
|
149
|
+
enabled: boolean;
|
|
150
150
|
operator: "AND" | "OR";
|
|
151
151
|
conditions: {
|
|
152
152
|
value: string;
|
|
@@ -176,8 +176,8 @@ export declare const ResponseRulesConfigSchema: z.ZodObject<{
|
|
|
176
176
|
}, "strip", z.ZodTypeAny, {
|
|
177
177
|
version: "1";
|
|
178
178
|
rules: {
|
|
179
|
-
enabled: boolean;
|
|
180
179
|
name: string;
|
|
180
|
+
enabled: boolean;
|
|
181
181
|
operator: "AND" | "OR";
|
|
182
182
|
conditions: {
|
|
183
183
|
value: string;
|
|
@@ -210,8 +210,8 @@ export declare const ResponseRulesConfigSchema: z.ZodObject<{
|
|
|
210
210
|
}, {
|
|
211
211
|
version: "1";
|
|
212
212
|
rules: {
|
|
213
|
-
enabled: boolean;
|
|
214
213
|
name: string;
|
|
214
|
+
enabled: boolean;
|
|
215
215
|
operator: "AND" | "OR";
|
|
216
216
|
conditions: {
|
|
217
217
|
value: string;
|
|
@@ -151,8 +151,8 @@ export declare const SubscriptionSettingsSchema: z.ZodObject<{
|
|
|
151
151
|
} | undefined;
|
|
152
152
|
}>>;
|
|
153
153
|
}, "strip", z.ZodTypeAny, {
|
|
154
|
-
enabled: boolean;
|
|
155
154
|
name: string;
|
|
155
|
+
enabled: boolean;
|
|
156
156
|
operator: "AND" | "OR";
|
|
157
157
|
conditions: {
|
|
158
158
|
value: string;
|
|
@@ -179,8 +179,8 @@ export declare const SubscriptionSettingsSchema: z.ZodObject<{
|
|
|
179
179
|
} | undefined;
|
|
180
180
|
} | undefined;
|
|
181
181
|
}, {
|
|
182
|
-
enabled: boolean;
|
|
183
182
|
name: string;
|
|
183
|
+
enabled: boolean;
|
|
184
184
|
operator: "AND" | "OR";
|
|
185
185
|
conditions: {
|
|
186
186
|
value: string;
|
|
@@ -210,8 +210,8 @@ export declare const SubscriptionSettingsSchema: z.ZodObject<{
|
|
|
210
210
|
}, "strip", z.ZodTypeAny, {
|
|
211
211
|
version: "1";
|
|
212
212
|
rules: {
|
|
213
|
-
enabled: boolean;
|
|
214
213
|
name: string;
|
|
214
|
+
enabled: boolean;
|
|
215
215
|
operator: "AND" | "OR";
|
|
216
216
|
conditions: {
|
|
217
217
|
value: string;
|
|
@@ -244,8 +244,8 @@ export declare const SubscriptionSettingsSchema: z.ZodObject<{
|
|
|
244
244
|
}, {
|
|
245
245
|
version: "1";
|
|
246
246
|
rules: {
|
|
247
|
-
enabled: boolean;
|
|
248
247
|
name: string;
|
|
248
|
+
enabled: boolean;
|
|
249
249
|
operator: "AND" | "OR";
|
|
250
250
|
conditions: {
|
|
251
251
|
value: string;
|
|
@@ -316,8 +316,8 @@ export declare const SubscriptionSettingsSchema: z.ZodObject<{
|
|
|
316
316
|
responseRules: {
|
|
317
317
|
version: "1";
|
|
318
318
|
rules: {
|
|
319
|
-
enabled: boolean;
|
|
320
319
|
name: string;
|
|
320
|
+
enabled: boolean;
|
|
321
321
|
operator: "AND" | "OR";
|
|
322
322
|
conditions: {
|
|
323
323
|
value: string;
|
|
@@ -378,8 +378,8 @@ export declare const SubscriptionSettingsSchema: z.ZodObject<{
|
|
|
378
378
|
responseRules: {
|
|
379
379
|
version: "1";
|
|
380
380
|
rules: {
|
|
381
|
-
enabled: boolean;
|
|
382
381
|
name: string;
|
|
382
|
+
enabled: boolean;
|
|
383
383
|
operator: "AND" | "OR";
|
|
384
384
|
conditions: {
|
|
385
385
|
value: string;
|
|
@@ -163,16 +163,16 @@ export declare const TorrentBlockerReportSchema: z.ZodObject<{
|
|
|
163
163
|
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
164
164
|
}, "strip", z.ZodTypeAny, {
|
|
165
165
|
uuid: string;
|
|
166
|
+
name: string;
|
|
166
167
|
createdAt: Date;
|
|
167
168
|
updatedAt: Date;
|
|
168
|
-
name: string;
|
|
169
169
|
faviconLink: string | null;
|
|
170
170
|
loginUrl: string | null;
|
|
171
171
|
}, {
|
|
172
172
|
uuid: string;
|
|
173
|
+
name: string;
|
|
173
174
|
createdAt: string;
|
|
174
175
|
updatedAt: string;
|
|
175
|
-
name: string;
|
|
176
176
|
faviconLink: string | null;
|
|
177
177
|
loginUrl: string | null;
|
|
178
178
|
}>>;
|
|
@@ -327,14 +327,14 @@ export declare const TorrentBlockerReportSchema: z.ZodObject<{
|
|
|
327
327
|
xrayUptime: z.ZodNumber;
|
|
328
328
|
usersOnline: z.ZodNumber;
|
|
329
329
|
note: z.ZodNullable<z.ZodString>;
|
|
330
|
-
}, "uuid" | "
|
|
330
|
+
}, "uuid" | "name" | "countryCode">, "strip", z.ZodTypeAny, {
|
|
331
331
|
uuid: string;
|
|
332
|
-
countryCode: string;
|
|
333
332
|
name: string;
|
|
333
|
+
countryCode: string;
|
|
334
334
|
}, {
|
|
335
335
|
uuid: string;
|
|
336
|
-
countryCode: string;
|
|
337
336
|
name: string;
|
|
337
|
+
countryCode: string;
|
|
338
338
|
}>;
|
|
339
339
|
report: z.ZodObject<{
|
|
340
340
|
actionReport: z.ZodObject<{
|
|
@@ -459,8 +459,8 @@ export declare const TorrentBlockerReportSchema: z.ZodObject<{
|
|
|
459
459
|
};
|
|
460
460
|
node: {
|
|
461
461
|
uuid: string;
|
|
462
|
-
countryCode: string;
|
|
463
462
|
name: string;
|
|
463
|
+
countryCode: string;
|
|
464
464
|
};
|
|
465
465
|
createdAt: Date;
|
|
466
466
|
id: number;
|
|
@@ -498,8 +498,8 @@ export declare const TorrentBlockerReportSchema: z.ZodObject<{
|
|
|
498
498
|
};
|
|
499
499
|
node: {
|
|
500
500
|
uuid: string;
|
|
501
|
-
countryCode: string;
|
|
502
501
|
name: string;
|
|
502
|
+
countryCode: string;
|
|
503
503
|
};
|
|
504
504
|
createdAt: string;
|
|
505
505
|
id: number;
|
|
@@ -36,6 +36,7 @@ export declare const UsersSchema: z.ZodObject<{
|
|
|
36
36
|
}, "strip", z.ZodTypeAny, {
|
|
37
37
|
status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
|
|
38
38
|
uuid: string;
|
|
39
|
+
expireAt: Date;
|
|
39
40
|
createdAt: Date;
|
|
40
41
|
updatedAt: Date;
|
|
41
42
|
description: string | null;
|
|
@@ -45,7 +46,6 @@ export declare const UsersSchema: z.ZodObject<{
|
|
|
45
46
|
shortUuid: string;
|
|
46
47
|
trafficLimitBytes: number;
|
|
47
48
|
trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK" | "MONTH_ROLLING";
|
|
48
|
-
expireAt: Date;
|
|
49
49
|
telegramId: number | null;
|
|
50
50
|
email: string | null;
|
|
51
51
|
hwidDeviceLimit: number | null;
|
|
@@ -58,6 +58,7 @@ export declare const UsersSchema: z.ZodObject<{
|
|
|
58
58
|
lastTrafficResetAt: Date | null;
|
|
59
59
|
}, {
|
|
60
60
|
uuid: string;
|
|
61
|
+
expireAt: string;
|
|
61
62
|
createdAt: string;
|
|
62
63
|
updatedAt: string;
|
|
63
64
|
description: string | null;
|
|
@@ -65,7 +66,6 @@ export declare const UsersSchema: z.ZodObject<{
|
|
|
65
66
|
tag: string | null;
|
|
66
67
|
id: number;
|
|
67
68
|
shortUuid: string;
|
|
68
|
-
expireAt: string;
|
|
69
69
|
telegramId: number | null;
|
|
70
70
|
email: string | null;
|
|
71
71
|
hwidDeviceLimit: number | null;
|