@remnawave/backend-contract 3.0.0 → 3.1.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/build/backend/commands/subscription-request-history/get-subscription-request-history.command.d.ts +2 -0
- package/build/backend/commands/subscription-request-history/get-subscription-request-history.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-user-subscription-request-history.command.d.ts +2 -0
- package/build/backend/commands/users/get-user-subscription-request-history.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-user-subscription-request-history.command.js +2 -0
- package/build/backend/constants/errors/errors.d.ts +7 -2
- package/build/backend/constants/errors/errors.d.ts.map +1 -1
- package/build/backend/constants/errors/errors.js +7 -2
- package/build/backend/models/export-stream/export-stream.schema.d.ts +2 -0
- package/build/backend/models/export-stream/export-stream.schema.d.ts.map +1 -1
- package/build/backend/models/export-stream/export-stream.schema.js +2 -0
- package/build/backend/models/subscription-request-history.schema.d.ts +2 -0
- package/build/backend/models/subscription-request-history.schema.d.ts.map +1 -1
- package/build/backend/models/subscription-request-history.schema.js +2 -0
- package/build/frontend/commands/users/get-user-subscription-request-history.command.js +2 -0
- package/build/frontend/constants/errors/errors.js +7 -2
- package/build/frontend/models/export-stream/export-stream.schema.js +2 -0
- package/build/frontend/models/subscription-request-history.schema.js +2 -0
- package/package.json +1 -1
|
@@ -22,6 +22,8 @@ export declare namespace GetSubscriptionRequestHistoryCommand {
|
|
|
22
22
|
records: z.ZodArray<z.ZodObject<{
|
|
23
23
|
id: z.ZodNumber;
|
|
24
24
|
userId: z.ZodNumber;
|
|
25
|
+
srrResponseType: z.ZodString;
|
|
26
|
+
srrRuleName: z.ZodNullable<z.ZodString>;
|
|
25
27
|
requestIp: z.ZodNullable<z.ZodString>;
|
|
26
28
|
userAgent: z.ZodNullable<z.ZodString>;
|
|
27
29
|
requestAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-subscription-request-history.command.d.ts","sourceRoot":"","sources":["../../../../commands/subscription-request-history/get-subscription-request-history.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,oCAAoC,CAAC;IAC3C,MAAM,GAAG,sCAA4C,CAAC;IACtD,MAAM,OAAO,sCAAM,CAAC;IAEpB,MAAM,eAAe,2CAM3B,CAAC;IAEK,MAAM,kBAAkB;;;;;;;;;;;;;qBAAkC,CAAC;IAE3D,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"get-subscription-request-history.command.d.ts","sourceRoot":"","sources":["../../../../commands/subscription-request-history/get-subscription-request-history.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,oCAAoC,CAAC;IAC3C,MAAM,GAAG,sCAA4C,CAAC;IACtD,MAAM,OAAO,sCAAM,CAAC;IAEpB,MAAM,eAAe,2CAM3B,CAAC;IAEK,MAAM,kBAAkB;;;;;;;;;;;;;qBAAkC,CAAC;IAE3D,MAAM,cAAc;;;;;;;;;;;;;qBAKzB,CAAC;IAEH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAC9D,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -13,8 +13,10 @@ export declare namespace GetUserSubscriptionRequestHistoryCommand {
|
|
|
13
13
|
id: z.ZodNumber;
|
|
14
14
|
userId: z.ZodNumber;
|
|
15
15
|
requestAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
16
|
+
srrResponseType: z.ZodString;
|
|
16
17
|
requestIp: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
17
18
|
userAgent: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
19
|
+
srrRuleName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
18
20
|
}, z.core.$strip>>;
|
|
19
21
|
}, z.core.$strip>;
|
|
20
22
|
}, z.core.$strip>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-user-subscription-request-history.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/get-user-subscription-request-history.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,wCAAwC,CAAC;IAC/C,MAAM,GAAG,4BAA8C,CAAC;IACxD,MAAM,OAAO,QAAiB,CAAC;IAE/B,MAAM,eAAe,2CAK3B,CAAC;IAEK,MAAM,kBAAkB;;qBAE7B,CAAC;IAEI,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"get-user-subscription-request-history.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/get-user-subscription-request-history.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,wCAAwC,CAAC;IAC/C,MAAM,GAAG,4BAA8C,CAAC;IACxD,MAAM,OAAO,QAAiB,CAAC;IAE/B,MAAM,eAAe,2CAK3B,CAAC;IAEK,MAAM,kBAAkB;;qBAE7B,CAAC;IAEI,MAAM,cAAc;;;;;;;;;;;;;qBAezB,CAAC;IAEH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAC9D,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -20,8 +20,10 @@ var GetUserSubscriptionRequestHistoryCommand;
|
|
|
20
20
|
id: zod_1.z.number(),
|
|
21
21
|
userId: zod_1.z.number(),
|
|
22
22
|
requestAt: zod_1.z.iso.datetime().transform((str) => new Date(str)),
|
|
23
|
+
srrResponseType: zod_1.z.string(),
|
|
23
24
|
requestIp: zod_1.z.string().optional().nullable(),
|
|
24
25
|
userAgent: zod_1.z.string().optional().nullable(),
|
|
26
|
+
srrRuleName: zod_1.z.string().optional().nullable(),
|
|
25
27
|
})),
|
|
26
28
|
}),
|
|
27
29
|
});
|
|
@@ -429,9 +429,9 @@ export declare const ERRORS: {
|
|
|
429
429
|
readonly message: "Bulk disable hosts error";
|
|
430
430
|
readonly httpCode: 500;
|
|
431
431
|
};
|
|
432
|
-
readonly
|
|
432
|
+
readonly BULK_DELETE_USERS_BY_USER_IDS_ERROR: {
|
|
433
433
|
readonly code: "A084";
|
|
434
|
-
readonly message: "Bulk delete users by
|
|
434
|
+
readonly message: "Bulk delete users by user IDs error";
|
|
435
435
|
readonly httpCode: 500;
|
|
436
436
|
};
|
|
437
437
|
readonly BULK_REVOKE_USERS_SUBSCRIPTION_ERROR: {
|
|
@@ -1133,6 +1133,11 @@ export declare const ERRORS: {
|
|
|
1133
1133
|
readonly code: "A222";
|
|
1134
1134
|
readonly message: "Invalid node plugin config";
|
|
1135
1135
|
readonly httpCode: 400;
|
|
1136
|
+
readonly withMessage: (message: string) => {
|
|
1137
|
+
code: string;
|
|
1138
|
+
message: string;
|
|
1139
|
+
httpCode: number;
|
|
1140
|
+
};
|
|
1136
1141
|
};
|
|
1137
1142
|
readonly NODE_PLUGIN_NAME_ALREADY_EXISTS: {
|
|
1138
1143
|
readonly code: "A223";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../constants/errors/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAwJY,MAAM;;;;;;;;;;wCAUN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA6HN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAkDN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+B3B,CAAC"}
|
|
@@ -400,9 +400,9 @@ exports.ERRORS = {
|
|
|
400
400
|
message: 'Bulk disable hosts error',
|
|
401
401
|
httpCode: 500,
|
|
402
402
|
},
|
|
403
|
-
|
|
403
|
+
BULK_DELETE_USERS_BY_USER_IDS_ERROR: {
|
|
404
404
|
code: 'A084',
|
|
405
|
-
message: 'Bulk delete users by
|
|
405
|
+
message: 'Bulk delete users by user IDs error',
|
|
406
406
|
httpCode: 500,
|
|
407
407
|
},
|
|
408
408
|
BULK_REVOKE_USERS_SUBSCRIPTION_ERROR: {
|
|
@@ -1104,6 +1104,11 @@ exports.ERRORS = {
|
|
|
1104
1104
|
code: 'A222',
|
|
1105
1105
|
message: 'Invalid node plugin config',
|
|
1106
1106
|
httpCode: 400,
|
|
1107
|
+
withMessage: (message) => ({
|
|
1108
|
+
code: 'A222',
|
|
1109
|
+
message,
|
|
1110
|
+
httpCode: 400,
|
|
1111
|
+
}),
|
|
1107
1112
|
},
|
|
1108
1113
|
NODE_PLUGIN_NAME_ALREADY_EXISTS: {
|
|
1109
1114
|
code: 'A223',
|
|
@@ -25,6 +25,8 @@ export declare const RemnawaveSubscriptionRequestStreamMessageSchema: z.ZodObjec
|
|
|
25
25
|
requestAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
26
26
|
requestIp: z.ZodOptional<z.ZodString>;
|
|
27
27
|
userAgent: z.ZodOptional<z.ZodString>;
|
|
28
|
+
srrRuleName: z.ZodOptional<z.ZodString>;
|
|
29
|
+
srrResponseType: z.ZodString;
|
|
28
30
|
}, z.core.$strip>;
|
|
29
31
|
export type TRemnawaveSubscriptionRequestStreamMessage = z.infer<typeof RemnawaveSubscriptionRequestStreamMessageSchema>;
|
|
30
32
|
export declare const NODE_CONNECTIONS_STREAM_MESSAGE_VERSION = "1";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"export-stream.schema.d.ts","sourceRoot":"","sources":["../../../../models/export-stream/export-stream.schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAMpB,eAAO,MAAM,iCAAiC,MAAM,CAAC;AAErD,eAAO,MAAM,2BAA2B;;;iBAMtC,CAAC;AAEH,eAAO,MAAM,qCAAqC;;;;;;;;;;;iBAyB5C,CAAC;AAEP,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AACjF,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAClD,OAAO,qCAAqC,CAC/C,CAAC;AAEF,eAAO,MAAM,2CAA2C,MAAM,CAAC;AAE/D,eAAO,MAAM,+CAA+C
|
|
1
|
+
{"version":3,"file":"export-stream.schema.d.ts","sourceRoot":"","sources":["../../../../models/export-stream/export-stream.schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAMpB,eAAO,MAAM,iCAAiC,MAAM,CAAC;AAErD,eAAO,MAAM,2BAA2B;;;iBAMtC,CAAC;AAEH,eAAO,MAAM,qCAAqC;;;;;;;;;;;iBAyB5C,CAAC;AAEP,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AACjF,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAClD,OAAO,qCAAqC,CAC/C,CAAC;AAEF,eAAO,MAAM,2CAA2C,MAAM,CAAC;AAE/D,eAAO,MAAM,+CAA+C;;;;;;;;iBAoBtD,CAAC;AAEP,MAAM,MAAM,0CAA0C,GAAG,CAAC,CAAC,KAAK,CAC5D,OAAO,+CAA+C,CACzD,CAAC;AAEF,eAAO,MAAM,uCAAuC,MAAM,CAAC;AAE3D,eAAO,MAAM,wBAAwB;;;;;;iBAanC,CAAC;AAEH,eAAO,MAAM,2CAA2C;;;;;;;;;;;iBAkClD,CAAC;AAEP,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC3E,MAAM,MAAM,sCAAsC,GAAG,CAAC,CAAC,KAAK,CACxD,OAAO,2CAA2C,CACrD,CAAC"}
|
|
@@ -56,6 +56,8 @@ exports.RemnawaveSubscriptionRequestStreamMessageSchema = zod_1.default
|
|
|
56
56
|
.describe('Time of the subscription request (ISO 8601, UTC).'),
|
|
57
57
|
requestIp: zod_1.default.string().optional().describe('Client IP address, omitted if unknown.'),
|
|
58
58
|
userAgent: zod_1.default.string().optional().describe('Client User-Agent, omitted if unknown.'),
|
|
59
|
+
srrRuleName: zod_1.default.string().optional().describe('SRR rule name, omitted if unknown.'),
|
|
60
|
+
srrResponseType: zod_1.default.string().describe('SRR response type.'),
|
|
59
61
|
})
|
|
60
62
|
.meta({
|
|
61
63
|
description: `A single message of the "${SUBSCRIPTION_REQUESTS_STREAM_KEY}" Redis Stream (EXPORT_TO_STREAM_ENABLED).`,
|
|
@@ -2,6 +2,8 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const SubscriptionRequestHistorySchema: z.ZodObject<{
|
|
3
3
|
id: z.ZodNumber;
|
|
4
4
|
userId: z.ZodNumber;
|
|
5
|
+
srrResponseType: z.ZodString;
|
|
6
|
+
srrRuleName: z.ZodNullable<z.ZodString>;
|
|
5
7
|
requestIp: z.ZodNullable<z.ZodString>;
|
|
6
8
|
userAgent: z.ZodNullable<z.ZodString>;
|
|
7
9
|
requestAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscription-request-history.schema.d.ts","sourceRoot":"","sources":["../../../models/subscription-request-history.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,gCAAgC
|
|
1
|
+
{"version":3,"file":"subscription-request-history.schema.d.ts","sourceRoot":"","sources":["../../../models/subscription-request-history.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,gCAAgC;;;;;;;;iBAQ3C,CAAC"}
|
|
@@ -5,6 +5,8 @@ const zod_1 = require("zod");
|
|
|
5
5
|
exports.SubscriptionRequestHistorySchema = zod_1.z.object({
|
|
6
6
|
id: zod_1.z.number(),
|
|
7
7
|
userId: zod_1.z.number(),
|
|
8
|
+
srrResponseType: zod_1.z.string(),
|
|
9
|
+
srrRuleName: zod_1.z.nullable(zod_1.z.string()),
|
|
8
10
|
requestIp: zod_1.z.nullable(zod_1.z.string()),
|
|
9
11
|
userAgent: zod_1.z.nullable(zod_1.z.string()),
|
|
10
12
|
requestAt: zod_1.z.iso.datetime().transform((str) => new Date(str)),
|
|
@@ -20,8 +20,10 @@ var GetUserSubscriptionRequestHistoryCommand;
|
|
|
20
20
|
id: zod_1.z.number(),
|
|
21
21
|
userId: zod_1.z.number(),
|
|
22
22
|
requestAt: zod_1.z.iso.datetime().transform((str) => new Date(str)),
|
|
23
|
+
srrResponseType: zod_1.z.string(),
|
|
23
24
|
requestIp: zod_1.z.string().optional().nullable(),
|
|
24
25
|
userAgent: zod_1.z.string().optional().nullable(),
|
|
26
|
+
srrRuleName: zod_1.z.string().optional().nullable(),
|
|
25
27
|
})),
|
|
26
28
|
}),
|
|
27
29
|
});
|
|
@@ -400,9 +400,9 @@ exports.ERRORS = {
|
|
|
400
400
|
message: 'Bulk disable hosts error',
|
|
401
401
|
httpCode: 500,
|
|
402
402
|
},
|
|
403
|
-
|
|
403
|
+
BULK_DELETE_USERS_BY_USER_IDS_ERROR: {
|
|
404
404
|
code: 'A084',
|
|
405
|
-
message: 'Bulk delete users by
|
|
405
|
+
message: 'Bulk delete users by user IDs error',
|
|
406
406
|
httpCode: 500,
|
|
407
407
|
},
|
|
408
408
|
BULK_REVOKE_USERS_SUBSCRIPTION_ERROR: {
|
|
@@ -1104,6 +1104,11 @@ exports.ERRORS = {
|
|
|
1104
1104
|
code: 'A222',
|
|
1105
1105
|
message: 'Invalid node plugin config',
|
|
1106
1106
|
httpCode: 400,
|
|
1107
|
+
withMessage: (message) => ({
|
|
1108
|
+
code: 'A222',
|
|
1109
|
+
message,
|
|
1110
|
+
httpCode: 400,
|
|
1111
|
+
}),
|
|
1107
1112
|
},
|
|
1108
1113
|
NODE_PLUGIN_NAME_ALREADY_EXISTS: {
|
|
1109
1114
|
code: 'A223',
|
|
@@ -56,6 +56,8 @@ exports.RemnawaveSubscriptionRequestStreamMessageSchema = zod_1.default
|
|
|
56
56
|
.describe('Time of the subscription request (ISO 8601, UTC).'),
|
|
57
57
|
requestIp: zod_1.default.string().optional().describe('Client IP address, omitted if unknown.'),
|
|
58
58
|
userAgent: zod_1.default.string().optional().describe('Client User-Agent, omitted if unknown.'),
|
|
59
|
+
srrRuleName: zod_1.default.string().optional().describe('SRR rule name, omitted if unknown.'),
|
|
60
|
+
srrResponseType: zod_1.default.string().describe('SRR response type.'),
|
|
59
61
|
})
|
|
60
62
|
.meta({
|
|
61
63
|
description: `A single message of the "${SUBSCRIPTION_REQUESTS_STREAM_KEY}" Redis Stream (EXPORT_TO_STREAM_ENABLED).`,
|
|
@@ -5,6 +5,8 @@ const zod_1 = require("zod");
|
|
|
5
5
|
exports.SubscriptionRequestHistorySchema = zod_1.z.object({
|
|
6
6
|
id: zod_1.z.number(),
|
|
7
7
|
userId: zod_1.z.number(),
|
|
8
|
+
srrResponseType: zod_1.z.string(),
|
|
9
|
+
srrRuleName: zod_1.z.nullable(zod_1.z.string()),
|
|
8
10
|
requestIp: zod_1.z.nullable(zod_1.z.string()),
|
|
9
11
|
userAgent: zod_1.z.nullable(zod_1.z.string()),
|
|
10
12
|
requestAt: zod_1.z.iso.datetime().transform((str) => new Date(str)),
|
package/package.json
CHANGED