@remnawave/node-contract 2.9.0 → 2.9.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.
@@ -3,6 +3,13 @@ export declare namespace StartXrayCommand {
3
3
  const url: "/node/xray/start";
4
4
  const RequestSchema: z.ZodObject<{
5
5
  internals: z.ZodObject<{
6
+ metadata: z.ZodOptional<z.ZodObject<{
7
+ name: z.ZodString;
8
+ uuid: z.ZodString;
9
+ id: z.ZodNumber;
10
+ tags: z.ZodArray<z.ZodString>;
11
+ countryCode: z.ZodString;
12
+ }, z.core.$strip>>;
6
13
  forceRestart: z.ZodDefault<z.ZodBoolean>;
7
14
  hashes: z.ZodObject<{
8
15
  emptyConfig: z.ZodString;
@@ -1 +1 @@
1
- {"version":3,"file":"start.command.d.ts","sourceRoot":"","sources":["../../../commands/xray/start.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,gBAAgB,CAAC;IACvB,MAAM,GAAG,oBAAsB,CAAC;IAChC,MAAM,aAAa;;;;;;;;;;;;;qBAexB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAUzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"start.command.d.ts","sourceRoot":"","sources":["../../../commands/xray/start.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,gBAAgB,CAAC;IACvB,MAAM,GAAG,oBAAsB,CAAC;IAChC,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;qBAgBxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAUzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -2,13 +2,14 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.StartXrayCommand = void 0;
4
4
  const zod_1 = require("zod");
5
- const models_1 = require("../../models");
6
5
  const api_1 = require("../../api");
6
+ const models_1 = require("../../models");
7
7
  var StartXrayCommand;
8
8
  (function (StartXrayCommand) {
9
9
  StartXrayCommand.url = api_1.REST_API.XRAY.START;
10
10
  StartXrayCommand.RequestSchema = zod_1.z.object({
11
11
  internals: zod_1.z.object({
12
+ metadata: models_1.NodeMetadataSchema.optional(),
12
13
  forceRestart: zod_1.z.boolean().default(false),
13
14
  hashes: zod_1.z.object({
14
15
  emptyConfig: zod_1.z.string(),
@@ -1,4 +1,5 @@
1
1
  export * from './node-system.schema';
2
2
  export * from './torrent-blocker.report.schema';
3
3
  export * from './xray-webhook.schema';
4
+ export * from './node-metadata.schema';
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../models/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,iCAAiC,CAAC;AAChD,cAAc,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../models/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,iCAAiC,CAAC;AAChD,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC"}
@@ -17,3 +17,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./node-system.schema"), exports);
18
18
  __exportStar(require("./torrent-blocker.report.schema"), exports);
19
19
  __exportStar(require("./xray-webhook.schema"), exports);
20
+ __exportStar(require("./node-metadata.schema"), exports);
@@ -0,0 +1,10 @@
1
+ import { z } from 'zod';
2
+ export declare const NodeMetadataSchema: z.ZodObject<{
3
+ name: z.ZodString;
4
+ uuid: z.ZodString;
5
+ id: z.ZodNumber;
6
+ tags: z.ZodArray<z.ZodString>;
7
+ countryCode: z.ZodString;
8
+ }, z.core.$strip>;
9
+ export type TNodeMetadata = z.infer<typeof NodeMetadataSchema>;
10
+ //# sourceMappingURL=node-metadata.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"node-metadata.schema.d.ts","sourceRoot":"","sources":["../../models/node-metadata.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,kBAAkB;;;;;;iBAM7B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NodeMetadataSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.NodeMetadataSchema = zod_1.z.object({
6
+ name: zod_1.z.string(),
7
+ uuid: zod_1.z.string(),
8
+ id: zod_1.z.number(),
9
+ tags: zod_1.z.array(zod_1.z.string()),
10
+ countryCode: zod_1.z.string(),
11
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/node-contract",
3
- "version": "2.9.0",
3
+ "version": "2.9.1",
4
4
  "description": "A node-contract library for Remnawave Panel",
5
5
  "keywords": [],
6
6
  "homepage": "https://github.com/remnawave",