@remnawave/node-contract 0.2.1 → 0.2.2

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.
@@ -12,5 +12,11 @@ export declare const REST_API: {
12
12
  readonly GET_INBOUND_STATS: "/api/v1/stats/get-inbound-stats";
13
13
  readonly GET_OUTBOUND_STATS: "/api/v1/stats/get-outbound-stats";
14
14
  };
15
+ readonly HANDLER: {
16
+ readonly ADD_USER: "/api/v1/handler//add-user";
17
+ readonly REMOVE_USER: "/api/v1/handler//remove-user";
18
+ readonly GET_INBOUND_USERS_COUNT: "/api/v1/handler//get-inbound-users-count";
19
+ readonly GET_INBOUND_USERS: "/api/v1/handler//get-inbound-users";
20
+ };
15
21
  };
16
22
  //# sourceMappingURL=routes.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../api/routes.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,WAAqB,CAAC;AAEvC,eAAO,MAAM,QAAQ;;;;;;;;;;;;;CAaX,CAAC"}
1
+ {"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../api/routes.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,WAAqB,CAAC;AAEvC,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;CAmBX,CAAC"}
@@ -39,4 +39,10 @@ exports.REST_API = {
39
39
  GET_INBOUND_STATS: `${exports.ROOT}/${CONTROLLERS.STATS_CONTROLLER}/${CONTROLLERS.STATS_ROUTES.GET_INBOUND_STATS}`,
40
40
  GET_OUTBOUND_STATS: `${exports.ROOT}/${CONTROLLERS.STATS_CONTROLLER}/${CONTROLLERS.STATS_ROUTES.GET_OUTBOUND_STATS}`,
41
41
  },
42
+ HANDLER: {
43
+ ADD_USER: `${exports.ROOT}/${CONTROLLERS.HANDLER_CONTROLLER}/${CONTROLLERS.HANDLER_ROUTES.ADD_USER}`,
44
+ REMOVE_USER: `${exports.ROOT}/${CONTROLLERS.HANDLER_CONTROLLER}/${CONTROLLERS.HANDLER_ROUTES.REMOVE_USER}`,
45
+ GET_INBOUND_USERS_COUNT: `${exports.ROOT}/${CONTROLLERS.HANDLER_CONTROLLER}/${CONTROLLERS.HANDLER_ROUTES.GET_INBOUND_USERS_COUNT}`,
46
+ GET_INBOUND_USERS: `${exports.ROOT}/${CONTROLLERS.HANDLER_CONTROLLER}/${CONTROLLERS.HANDLER_ROUTES.GET_INBOUND_USERS}`,
47
+ },
42
48
  };
@@ -23,5 +23,6 @@ export declare namespace GetStatusAndVersionCommand {
23
23
  };
24
24
  }>;
25
25
  type Response = z.infer<typeof ResponseSchema>;
26
+ const url: "/api/v1/xray/status";
26
27
  }
27
28
  //# sourceMappingURL=get-status-and-version.command.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-status-and-version.command.d.ts","sourceRoot":"","sources":["../../../commands/xray/get-status-and-version.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,yBAAiB,0BAA0B,CAAC;IACjC,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;MAKzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"get-status-and-version.command.d.ts","sourceRoot":"","sources":["../../../commands/xray/get-status-and-version.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,0BAA0B,CAAC;IACjC,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;MAKzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;IAE/C,MAAM,GAAG,uBAAuB,CAAC;CAC3C"}
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetStatusAndVersionCommand = void 0;
4
4
  const zod_1 = require("zod");
5
+ const api_1 = require("../../api");
5
6
  var GetStatusAndVersionCommand;
6
7
  (function (GetStatusAndVersionCommand) {
7
8
  GetStatusAndVersionCommand.ResponseSchema = zod_1.z.object({
@@ -10,4 +11,5 @@ var GetStatusAndVersionCommand;
10
11
  version: zod_1.z.string().nullable(),
11
12
  }),
12
13
  });
14
+ GetStatusAndVersionCommand.url = api_1.REST_API.XRAY.STATUS;
13
15
  })(GetStatusAndVersionCommand || (exports.GetStatusAndVersionCommand = GetStatusAndVersionCommand = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/node-contract",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "A node-contract library for Remnawave Panel",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",