@remnawave/backend-contract 3.0.0 → 3.1.1

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 (41) hide show
  1. package/build/backend/commands/nodes/actions/disable.command.d.ts +1 -0
  2. package/build/backend/commands/nodes/actions/disable.command.d.ts.map +1 -1
  3. package/build/backend/commands/nodes/actions/enable.command.d.ts +1 -0
  4. package/build/backend/commands/nodes/actions/enable.command.d.ts.map +1 -1
  5. package/build/backend/commands/nodes/actions/reorder.command.d.ts +1 -0
  6. package/build/backend/commands/nodes/actions/reorder.command.d.ts.map +1 -1
  7. package/build/backend/commands/nodes/create.command.d.ts +1 -0
  8. package/build/backend/commands/nodes/create.command.d.ts.map +1 -1
  9. package/build/backend/commands/nodes/get-node.command.d.ts +1 -0
  10. package/build/backend/commands/nodes/get-node.command.d.ts.map +1 -1
  11. package/build/backend/commands/nodes/get-nodes.command.d.ts +1 -0
  12. package/build/backend/commands/nodes/get-nodes.command.d.ts.map +1 -1
  13. package/build/backend/commands/nodes/node.response.d.ts +1 -0
  14. package/build/backend/commands/nodes/node.response.d.ts.map +1 -1
  15. package/build/backend/commands/nodes/update.command.d.ts +1 -0
  16. package/build/backend/commands/nodes/update.command.d.ts.map +1 -1
  17. package/build/backend/commands/subscription-request-history/get-subscription-request-history.command.d.ts +2 -0
  18. package/build/backend/commands/subscription-request-history/get-subscription-request-history.command.d.ts.map +1 -1
  19. package/build/backend/commands/users/get-user-subscription-request-history.command.d.ts +2 -0
  20. package/build/backend/commands/users/get-user-subscription-request-history.command.d.ts.map +1 -1
  21. package/build/backend/commands/users/get-user-subscription-request-history.command.js +2 -0
  22. package/build/backend/constants/errors/errors.d.ts +7 -2
  23. package/build/backend/constants/errors/errors.d.ts.map +1 -1
  24. package/build/backend/constants/errors/errors.js +7 -2
  25. package/build/backend/models/export-stream/export-stream.schema.d.ts +2 -0
  26. package/build/backend/models/export-stream/export-stream.schema.d.ts.map +1 -1
  27. package/build/backend/models/export-stream/export-stream.schema.js +2 -0
  28. package/build/backend/models/nodes.schema.d.ts +1 -0
  29. package/build/backend/models/nodes.schema.d.ts.map +1 -1
  30. package/build/backend/models/nodes.schema.js +4 -6
  31. package/build/backend/models/subscription-request-history.schema.d.ts +2 -0
  32. package/build/backend/models/subscription-request-history.schema.d.ts.map +1 -1
  33. package/build/backend/models/subscription-request-history.schema.js +2 -0
  34. package/build/backend/models/webhook/webhook.schema.d.ts +4 -0
  35. package/build/backend/models/webhook/webhook.schema.d.ts.map +1 -1
  36. package/build/frontend/commands/users/get-user-subscription-request-history.command.js +2 -0
  37. package/build/frontend/constants/errors/errors.js +7 -2
  38. package/build/frontend/models/export-stream/export-stream.schema.js +2 -0
  39. package/build/frontend/models/nodes.schema.js +4 -6
  40. package/build/frontend/models/subscription-request-history.schema.js +2 -0
  41. package/package.json +1 -1
@@ -9,6 +9,7 @@ export declare namespace DisableNodeCommand {
9
9
  const ResponseSchema: z.ZodObject<{
10
10
  response: z.ZodObject<{
11
11
  uuid: z.ZodUUID;
12
+ id: z.ZodNumber;
12
13
  name: z.ZodString;
13
14
  address: z.ZodString;
14
15
  port: z.ZodNullable<z.ZodInt>;
@@ -1 +1 @@
1
- {"version":3,"file":"disable.command.d.ts","sourceRoot":"","sources":["../../../../../commands/nodes/actions/disable.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,kBAAkB,CAAC;IACzB,MAAM,GAAG,0BAAiC,CAAC;IAC3C,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,eAAe,8CAK3B,CAAC;IAEK,MAAM,kBAAkB;;qBAE7B,CAAC;IAEI,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAAqB,CAAC;IAEjD,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAC9D,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"disable.command.d.ts","sourceRoot":"","sources":["../../../../../commands/nodes/actions/disable.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,kBAAkB,CAAC;IACzB,MAAM,GAAG,0BAAiC,CAAC;IAC3C,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,eAAe,8CAK3B,CAAC;IAEK,MAAM,kBAAkB;;qBAE7B,CAAC;IAEI,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAAqB,CAAC;IAEjD,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAC9D,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -9,6 +9,7 @@ export declare namespace EnableNodeCommand {
9
9
  const ResponseSchema: z.ZodObject<{
10
10
  response: z.ZodObject<{
11
11
  uuid: z.ZodUUID;
12
+ id: z.ZodNumber;
12
13
  name: z.ZodString;
13
14
  address: z.ZodString;
14
15
  port: z.ZodNullable<z.ZodInt>;
@@ -1 +1 @@
1
- {"version":3,"file":"enable.command.d.ts","sourceRoot":"","sources":["../../../../../commands/nodes/actions/enable.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,0BAAgC,CAAC;IAC1C,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,eAAe,8CAK3B,CAAC;IAEK,MAAM,kBAAkB;;qBAE7B,CAAC;IAEI,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAAqB,CAAC;IAEjD,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAC9D,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"enable.command.d.ts","sourceRoot":"","sources":["../../../../../commands/nodes/actions/enable.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,0BAAgC,CAAC;IAC1C,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,eAAe,8CAK3B,CAAC;IAEK,MAAM,kBAAkB;;qBAE7B,CAAC;IAEI,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAAqB,CAAC;IAEjD,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAC9D,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -12,6 +12,7 @@ export declare namespace ReorderNodesCommand {
12
12
  const ResponseSchema: z.ZodObject<{
13
13
  response: z.ZodArray<z.ZodObject<{
14
14
  uuid: z.ZodUUID;
15
+ id: z.ZodNumber;
15
16
  name: z.ZodString;
16
17
  address: z.ZodString;
17
18
  port: z.ZodNullable<z.ZodInt>;
@@ -1 +1 @@
1
- {"version":3,"file":"reorder.command.d.ts","sourceRoot":"","sources":["../../../../../commands/nodes/actions/reorder.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,mBAAmB,CAAC;IAC1B,MAAM,GAAG,8BAAiC,CAAC;IAC3C,MAAM,OAAO,8BAAM,CAAC;IAEpB,MAAM,eAAe,8CAK3B,CAAC;IAEK,MAAM,iBAAiB;;;;;qBAO5B,CAAC;IAEI,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAEzB,CAAC;IAEH,KAAY,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;IAC5D,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"reorder.command.d.ts","sourceRoot":"","sources":["../../../../../commands/nodes/actions/reorder.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,mBAAmB,CAAC;IAC1B,MAAM,GAAG,8BAAiC,CAAC;IAC3C,MAAM,OAAO,8BAAM,CAAC;IAEpB,MAAM,eAAe,8CAK3B,CAAC;IAEK,MAAM,iBAAiB;;;;;qBAO5B,CAAC;IAEI,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAEzB,CAAC;IAEH,KAAY,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;IAC5D,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -27,6 +27,7 @@ export declare namespace CreateNodeCommand {
27
27
  const ResponseSchema: z.ZodObject<{
28
28
  response: z.ZodObject<{
29
29
  uuid: z.ZodUUID;
30
+ id: z.ZodNumber;
30
31
  name: z.ZodString;
31
32
  address: z.ZodString;
32
33
  port: z.ZodNullable<z.ZodInt>;
@@ -1 +1 @@
1
- {"version":3,"file":"create.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/create.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,eAAwB,CAAC;IAClC,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAK3B,CAAC;IAEK,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;qBAoD5B,CAAC;IAEI,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAAqB,CAAC;IAEjD,KAAY,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;IAC5D,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"create.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/create.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,eAAwB,CAAC;IAClC,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAK3B,CAAC;IAEK,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;qBAoD5B,CAAC;IAEI,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAAqB,CAAC;IAEjD,KAAY,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;IAC5D,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -9,6 +9,7 @@ export declare namespace GetNodeCommand {
9
9
  const ResponseSchema: z.ZodObject<{
10
10
  response: z.ZodObject<{
11
11
  uuid: z.ZodUUID;
12
+ id: z.ZodNumber;
12
13
  name: z.ZodString;
13
14
  address: z.ZodString;
14
15
  port: z.ZodNullable<z.ZodInt>;
@@ -1 +1 @@
1
- {"version":3,"file":"get-node.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/get-node.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,cAAc,CAAC;IACrB,MAAM,GAAG,0BAA6B,CAAC;IACvC,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,eAAe,2CAK3B,CAAC;IAEK,MAAM,kBAAkB;;qBAE7B,CAAC;IAEI,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAAqB,CAAC;IAEjD,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAC9D,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"get-node.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/get-node.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,cAAc,CAAC;IACrB,MAAM,GAAG,0BAA6B,CAAC;IACvC,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,eAAe,2CAK3B,CAAC;IAEK,MAAM,kBAAkB;;qBAE7B,CAAC;IAEI,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAAqB,CAAC;IAEjD,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAC9D,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -6,6 +6,7 @@ export declare namespace GetNodesCommand {
6
6
  const ResponseSchema: z.ZodObject<{
7
7
  response: z.ZodArray<z.ZodObject<{
8
8
  uuid: z.ZodUUID;
9
+ id: z.ZodNumber;
9
10
  name: z.ZodString;
10
11
  address: z.ZodString;
11
12
  port: z.ZodNullable<z.ZodInt>;
@@ -1 +1 @@
1
- {"version":3,"file":"get-nodes.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/get-nodes.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,eAAe,CAAC;IACtB,MAAM,GAAG,eAAqB,CAAC;IAC/B,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAG1B,CAAC;IAEI,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"get-nodes.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/get-nodes.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,eAAe,CAAC;IACtB,MAAM,GAAG,eAAqB,CAAC;IAC/B,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAG1B,CAAC;IAEI,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -2,6 +2,7 @@ import { z } from 'zod';
2
2
  export declare const NodeResponseSchema: z.ZodObject<{
3
3
  response: z.ZodObject<{
4
4
  uuid: z.ZodUUID;
5
+ id: z.ZodNumber;
5
6
  name: z.ZodString;
6
7
  address: z.ZodString;
7
8
  port: z.ZodNullable<z.ZodInt>;
@@ -1 +1 @@
1
- {"version":3,"file":"node.response.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/node.response.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAE7B,CAAC"}
1
+ {"version":3,"file":"node.response.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/node.response.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAE7B,CAAC"}
@@ -28,6 +28,7 @@ export declare namespace UpdateNodeCommand {
28
28
  const ResponseSchema: z.ZodObject<{
29
29
  response: z.ZodObject<{
30
30
  uuid: z.ZodUUID;
31
+ id: z.ZodNumber;
31
32
  name: z.ZodString;
32
33
  address: z.ZodString;
33
34
  port: z.ZodNullable<z.ZodInt>;
@@ -1 +1 @@
1
- {"version":3,"file":"update.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/update.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,eAAwB,CAAC;IAClC,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAG1B,CAAC;IAEI,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;qBAuD5B,CAAC;IAEI,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAAqB,CAAC;IAEjD,KAAY,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;IAC5D,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"update.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/update.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,eAAwB,CAAC;IAClC,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAG1B,CAAC;IAEI,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;qBAuD5B,CAAC;IAEI,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAAqB,CAAC;IAEjD,KAAY,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;IAC5D,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -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;;;;;;;;;;;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"}
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;;;;;;;;;;;qBAazB,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"}
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 BULK_DELETE_USERS_BY_UUID_ERROR: {
432
+ readonly BULK_DELETE_USERS_BY_USER_IDS_ERROR: {
433
433
  readonly code: "A084";
434
- readonly message: "Bulk delete users by UUID error";
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAsqBN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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
- BULK_DELETE_USERS_BY_UUID_ERROR: {
403
+ BULK_DELETE_USERS_BY_USER_IDS_ERROR: {
404
404
  code: 'A084',
405
- message: 'Bulk delete users by UUID error',
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;;;;;;iBAkBtD,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"}
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).`,
@@ -1,6 +1,7 @@
1
1
  import { z } from 'zod';
2
2
  export declare const NodesSchema: z.ZodObject<{
3
3
  uuid: z.ZodUUID;
4
+ id: z.ZodNumber;
4
5
  name: z.ZodString;
5
6
  address: z.ZodString;
6
7
  port: z.ZodNullable<z.ZodInt>;
@@ -1 +1 @@
1
- {"version":3,"file":"nodes.schema.d.ts","sourceRoot":"","sources":["../../../models/nodes.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAgDtB,CAAC"}
1
+ {"version":3,"file":"nodes.schema.d.ts","sourceRoot":"","sources":["../../../models/nodes.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA4CtB,CAAC"}
@@ -7,6 +7,7 @@ const infra_provider_schema_1 = require("./infra-provider.schema");
7
7
  const node_system_schema_1 = require("./node-system.schema");
8
8
  exports.NodesSchema = zod_1.z.object({
9
9
  uuid: zod_1.z.uuid(),
10
+ id: zod_1.z.number(),
10
11
  name: zod_1.z.string(),
11
12
  address: zod_1.z.string(),
12
13
  port: zod_1.z.nullable(zod_1.z.int()),
@@ -14,8 +15,7 @@ exports.NodesSchema = zod_1.z.object({
14
15
  isConnected: zod_1.z.boolean(),
15
16
  isDisabled: zod_1.z.boolean(),
16
17
  isConnecting: zod_1.z.boolean(),
17
- lastStatusChange: zod_1.z.nullable(zod_1.z.iso.datetime()
18
- .transform((str) => new Date(str))),
18
+ lastStatusChange: zod_1.z.nullable(zod_1.z.iso.datetime().transform((str) => new Date(str))),
19
19
  lastStatusMessage: zod_1.z.nullable(zod_1.z.string()),
20
20
  isTrafficTrackingActive: zod_1.z.boolean(),
21
21
  trafficResetDay: zod_1.z.nullable(zod_1.z.int()),
@@ -27,10 +27,8 @@ exports.NodesSchema = zod_1.z.object({
27
27
  consumptionMultiplier: zod_1.z.number(),
28
28
  nodeConsumptionMultiplier: zod_1.z.number(),
29
29
  tags: zod_1.z.array(zod_1.z.string()),
30
- createdAt: zod_1.z.iso.datetime()
31
- .transform((str) => new Date(str)),
32
- updatedAt: zod_1.z.iso.datetime()
33
- .transform((str) => new Date(str)),
30
+ createdAt: zod_1.z.iso.datetime().transform((str) => new Date(str)),
31
+ updatedAt: zod_1.z.iso.datetime().transform((str) => new Date(str)),
34
32
  configProfile: zod_1.z.object({
35
33
  activeConfigProfileUuid: zod_1.z.nullable(zod_1.z.uuid()),
36
34
  activeInbounds: zod_1.z.array(config_profile_inbounds_schema_1.ConfigProfileInboundsSchema),
@@ -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;;;;;;iBAM3C,CAAC"}
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)),
@@ -150,6 +150,7 @@ export declare const RemnawaveWebhookNodeEvents: z.ZodObject<{
150
150
  timestamp: z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>;
151
151
  data: z.ZodObject<{
152
152
  uuid: z.ZodUUID;
153
+ id: z.ZodNumber;
153
154
  name: z.ZodString;
154
155
  address: z.ZodString;
155
156
  port: z.ZodNullable<z.ZodInt>;
@@ -304,6 +305,7 @@ export declare const RemnawaveWebhookTorrentBlockerEvents: z.ZodObject<{
304
305
  data: z.ZodObject<{
305
306
  node: z.ZodObject<{
306
307
  uuid: z.ZodUUID;
308
+ id: z.ZodNumber;
307
309
  name: z.ZodString;
308
310
  address: z.ZodString;
309
311
  port: z.ZodNullable<z.ZodInt>;
@@ -605,6 +607,7 @@ export declare const RemnawaveWebhookEventSchema: z.ZodDiscriminatedUnion<[z.Zod
605
607
  timestamp: z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>;
606
608
  data: z.ZodObject<{
607
609
  uuid: z.ZodUUID;
610
+ id: z.ZodNumber;
608
611
  name: z.ZodString;
609
612
  address: z.ZodString;
610
613
  port: z.ZodNullable<z.ZodInt>;
@@ -755,6 +758,7 @@ export declare const RemnawaveWebhookEventSchema: z.ZodDiscriminatedUnion<[z.Zod
755
758
  data: z.ZodObject<{
756
759
  node: z.ZodObject<{
757
760
  uuid: z.ZodUUID;
761
+ id: z.ZodNumber;
758
762
  name: z.ZodString;
759
763
  address: z.ZodString;
760
764
  port: z.ZodNullable<z.ZodInt>;
@@ -1 +1 @@
1
- {"version":3,"file":"webhook.schema.d.ts","sourceRoot":"","sources":["../../../../models/webhook/webhook.schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAOpB,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAcrC,CAAC;AAEH,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAWhD,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAQrC,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAqCxC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;;;;iBAUvC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;iBAgBpC,CAAC;AAEH,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA0C/C,CAAC;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAQtC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEjF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AACpF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AACpF,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAC1F,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AACxF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAClF,MAAM,MAAM,qCAAqC,GAAG,CAAC,CAAC,KAAK,CACvD,OAAO,qCAAqC,CAC/C,CAAC;AACF,MAAM,MAAM,oCAAoC,GAAG,CAAC,CAAC,KAAK,CACtD,OAAO,oCAAoC,CAC9C,CAAC"}
@@ -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
- BULK_DELETE_USERS_BY_UUID_ERROR: {
403
+ BULK_DELETE_USERS_BY_USER_IDS_ERROR: {
404
404
  code: 'A084',
405
- message: 'Bulk delete users by UUID error',
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).`,
@@ -7,6 +7,7 @@ const infra_provider_schema_1 = require("./infra-provider.schema");
7
7
  const node_system_schema_1 = require("./node-system.schema");
8
8
  exports.NodesSchema = zod_1.z.object({
9
9
  uuid: zod_1.z.uuid(),
10
+ id: zod_1.z.number(),
10
11
  name: zod_1.z.string(),
11
12
  address: zod_1.z.string(),
12
13
  port: zod_1.z.nullable(zod_1.z.int()),
@@ -14,8 +15,7 @@ exports.NodesSchema = zod_1.z.object({
14
15
  isConnected: zod_1.z.boolean(),
15
16
  isDisabled: zod_1.z.boolean(),
16
17
  isConnecting: zod_1.z.boolean(),
17
- lastStatusChange: zod_1.z.nullable(zod_1.z.iso.datetime()
18
- .transform((str) => new Date(str))),
18
+ lastStatusChange: zod_1.z.nullable(zod_1.z.iso.datetime().transform((str) => new Date(str))),
19
19
  lastStatusMessage: zod_1.z.nullable(zod_1.z.string()),
20
20
  isTrafficTrackingActive: zod_1.z.boolean(),
21
21
  trafficResetDay: zod_1.z.nullable(zod_1.z.int()),
@@ -27,10 +27,8 @@ exports.NodesSchema = zod_1.z.object({
27
27
  consumptionMultiplier: zod_1.z.number(),
28
28
  nodeConsumptionMultiplier: zod_1.z.number(),
29
29
  tags: zod_1.z.array(zod_1.z.string()),
30
- createdAt: zod_1.z.iso.datetime()
31
- .transform((str) => new Date(str)),
32
- updatedAt: zod_1.z.iso.datetime()
33
- .transform((str) => new Date(str)),
30
+ createdAt: zod_1.z.iso.datetime().transform((str) => new Date(str)),
31
+ updatedAt: zod_1.z.iso.datetime().transform((str) => new Date(str)),
34
32
  configProfile: zod_1.z.object({
35
33
  activeConfigProfileUuid: zod_1.z.nullable(zod_1.z.uuid()),
36
34
  activeInbounds: zod_1.z.array(config_profile_inbounds_schema_1.ConfigProfileInboundsSchema),
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/backend-contract",
3
- "version": "3.0.0",
3
+ "version": "3.1.1",
4
4
  "description": "A contract library for Remnawave Backend. It can be used in backend and frontend.",
5
5
  "keywords": [],
6
6
  "homepage": "https://github.com/remnawave",