@remnawave/backend-contract 2.9.4 → 2.9.5

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 (36) hide show
  1. package/build/backend/commands/node-plugins/actions/clone-node-plugin.command.d.ts +1 -1
  2. package/build/backend/commands/node-plugins/actions/reorder.command.d.ts +2 -2
  3. package/build/backend/commands/node-plugins/create-node-plugin.command.d.ts +1 -1
  4. package/build/backend/commands/node-plugins/get-node-plugin.command.d.ts +1 -1
  5. package/build/backend/commands/node-plugins/get-node-plugins.command.d.ts +1 -1
  6. package/build/backend/commands/node-plugins/update-node-plugin.command.d.ts +1 -1
  7. package/build/backend/commands/subscription-page-configs/actions/clone-subpage-config.command.d.ts +1 -1
  8. package/build/backend/commands/subscription-page-configs/actions/reorder.command.d.ts +2 -2
  9. package/build/backend/commands/subscription-page-configs/create-subpage-config.command.d.ts +1 -1
  10. package/build/backend/commands/subscription-page-configs/get-subpage-config.command.d.ts +1 -1
  11. package/build/backend/commands/subscription-page-configs/get-subpage-configs.command.d.ts +1 -1
  12. package/build/backend/commands/subscription-page-configs/update-subpage-config.command.d.ts +1 -1
  13. package/build/backend/commands/subscription-template/actions/reorder.command.d.ts +2 -2
  14. package/build/backend/commands/subscription-template/create-template.command.d.ts +1 -1
  15. package/build/backend/commands/subscription-template/get-template.command.d.ts +1 -1
  16. package/build/backend/commands/subscription-template/get-templates.command.d.ts +1 -1
  17. package/build/backend/commands/subscription-template/update-template.command.d.ts +1 -1
  18. package/build/backend/models/node-plugin.schema.d.ts +1 -1
  19. package/build/backend/models/node-plugin.schema.js +1 -1
  20. package/build/backend/models/response-rules/response-rules-config.schema.d.ts.map +1 -1
  21. package/build/backend/models/response-rules/response-rules-config.schema.js +2 -2
  22. package/build/backend/models/subscripion-page-config.schema.d.ts +1 -1
  23. package/build/backend/models/subscripion-page-config.schema.js +1 -1
  24. package/build/backend/models/subscription-template.schema.d.ts +1 -1
  25. package/build/backend/models/subscription-template.schema.js +2 -2
  26. package/build/backend/models/webhook/webhook.schema.d.ts +4 -4
  27. package/build/backend/models/webhook/webhook.schema.js +2 -2
  28. package/build/backend/models/xray-json-advanced/remnawave-injector.schema.d.ts +3 -3
  29. package/build/backend/models/xray-json-advanced/remnawave-injector.schema.js +1 -1
  30. package/build/frontend/models/node-plugin.schema.js +1 -1
  31. package/build/frontend/models/response-rules/response-rules-config.schema.js +2 -2
  32. package/build/frontend/models/subscripion-page-config.schema.js +1 -1
  33. package/build/frontend/models/subscription-template.schema.js +2 -2
  34. package/build/frontend/models/webhook/webhook.schema.js +2 -2
  35. package/build/frontend/models/xray-json-advanced/remnawave-injector.schema.js +1 -1
  36. package/package.json +1 -1
@@ -8,7 +8,7 @@ export declare namespace CloneNodePluginCommand {
8
8
  }, z.core.$strip>;
9
9
  const ResponseSchema: z.ZodObject<{
10
10
  response: z.ZodObject<{
11
- uuid: z.ZodString;
11
+ uuid: z.ZodUUID;
12
12
  viewPosition: z.ZodNumber;
13
13
  name: z.ZodString;
14
14
  pluginConfig: z.ZodUnknown;
@@ -5,7 +5,7 @@ export declare namespace ReorderNodePluginCommand {
5
5
  const endpointDetails: import("../../../constants").EndpointDetails;
6
6
  const RequestBodySchema: z.ZodObject<{
7
7
  items: z.ZodArray<z.ZodObject<{
8
- uuid: z.ZodString;
8
+ uuid: z.ZodUUID;
9
9
  viewPosition: z.ZodNumber;
10
10
  }, z.core.$strip>>;
11
11
  }, z.core.$strip>;
@@ -13,7 +13,7 @@ export declare namespace ReorderNodePluginCommand {
13
13
  response: z.ZodObject<{
14
14
  total: z.ZodNumber;
15
15
  nodePlugins: z.ZodArray<z.ZodObject<{
16
- uuid: z.ZodString;
16
+ uuid: z.ZodUUID;
17
17
  viewPosition: z.ZodNumber;
18
18
  name: z.ZodString;
19
19
  pluginConfig: z.ZodNullable<z.ZodUnknown>;
@@ -8,7 +8,7 @@ export declare namespace CreateNodePluginCommand {
8
8
  }, z.core.$strip>;
9
9
  const ResponseSchema: z.ZodObject<{
10
10
  response: z.ZodObject<{
11
- uuid: z.ZodString;
11
+ uuid: z.ZodUUID;
12
12
  viewPosition: z.ZodNumber;
13
13
  name: z.ZodString;
14
14
  pluginConfig: z.ZodNullable<z.ZodUnknown>;
@@ -8,7 +8,7 @@ export declare namespace GetNodePluginCommand {
8
8
  }, z.core.$strip>;
9
9
  const ResponseSchema: z.ZodObject<{
10
10
  response: z.ZodObject<{
11
- uuid: z.ZodString;
11
+ uuid: z.ZodUUID;
12
12
  viewPosition: z.ZodNumber;
13
13
  name: z.ZodString;
14
14
  pluginConfig: z.ZodUnknown;
@@ -7,7 +7,7 @@ export declare namespace GetNodePluginsCommand {
7
7
  response: z.ZodObject<{
8
8
  total: z.ZodNumber;
9
9
  nodePlugins: z.ZodArray<z.ZodObject<{
10
- uuid: z.ZodString;
10
+ uuid: z.ZodUUID;
11
11
  viewPosition: z.ZodNumber;
12
12
  name: z.ZodString;
13
13
  pluginConfig: z.ZodNullable<z.ZodUnknown>;
@@ -10,7 +10,7 @@ export declare namespace UpdateNodePluginCommand {
10
10
  }, z.core.$strip>;
11
11
  const ResponseSchema: z.ZodObject<{
12
12
  response: z.ZodObject<{
13
- uuid: z.ZodString;
13
+ uuid: z.ZodUUID;
14
14
  viewPosition: z.ZodNumber;
15
15
  name: z.ZodString;
16
16
  pluginConfig: z.ZodUnknown;
@@ -8,7 +8,7 @@ export declare namespace CloneSubpageConfigCommand {
8
8
  }, z.core.$strip>;
9
9
  const ResponseSchema: z.ZodObject<{
10
10
  response: z.ZodObject<{
11
- uuid: z.ZodString;
11
+ uuid: z.ZodUUID;
12
12
  viewPosition: z.ZodNumber;
13
13
  name: z.ZodString;
14
14
  config: z.ZodUnknown;
@@ -5,7 +5,7 @@ export declare namespace ReorderSubpageConfigsCommand {
5
5
  const endpointDetails: import("../../../constants").EndpointDetails;
6
6
  const RequestBodySchema: z.ZodObject<{
7
7
  items: z.ZodArray<z.ZodObject<{
8
- uuid: z.ZodString;
8
+ uuid: z.ZodUUID;
9
9
  viewPosition: z.ZodNumber;
10
10
  }, z.core.$strip>>;
11
11
  }, z.core.$strip>;
@@ -13,7 +13,7 @@ export declare namespace ReorderSubpageConfigsCommand {
13
13
  response: z.ZodObject<{
14
14
  total: z.ZodNumber;
15
15
  configs: z.ZodArray<z.ZodObject<{
16
- uuid: z.ZodString;
16
+ uuid: z.ZodUUID;
17
17
  viewPosition: z.ZodNumber;
18
18
  name: z.ZodString;
19
19
  config: z.ZodNullable<z.ZodUnknown>;
@@ -8,7 +8,7 @@ export declare namespace CreateSubpageConfigCommand {
8
8
  }, z.core.$strip>;
9
9
  const ResponseSchema: z.ZodObject<{
10
10
  response: z.ZodObject<{
11
- uuid: z.ZodString;
11
+ uuid: z.ZodUUID;
12
12
  viewPosition: z.ZodNumber;
13
13
  name: z.ZodString;
14
14
  config: z.ZodNullable<z.ZodUnknown>;
@@ -8,7 +8,7 @@ export declare namespace GetSubpageConfigCommand {
8
8
  }, z.core.$strip>;
9
9
  const ResponseSchema: z.ZodObject<{
10
10
  response: z.ZodObject<{
11
- uuid: z.ZodString;
11
+ uuid: z.ZodUUID;
12
12
  viewPosition: z.ZodNumber;
13
13
  name: z.ZodString;
14
14
  config: z.ZodUnknown;
@@ -7,7 +7,7 @@ export declare namespace GetSubpageConfigsCommand {
7
7
  response: z.ZodObject<{
8
8
  total: z.ZodNumber;
9
9
  configs: z.ZodArray<z.ZodObject<{
10
- uuid: z.ZodString;
10
+ uuid: z.ZodUUID;
11
11
  viewPosition: z.ZodNumber;
12
12
  name: z.ZodString;
13
13
  config: z.ZodNullable<z.ZodUnknown>;
@@ -10,7 +10,7 @@ export declare namespace UpdateSubpageConfigCommand {
10
10
  }, z.core.$strip>;
11
11
  const ResponseSchema: z.ZodObject<{
12
12
  response: z.ZodObject<{
13
- uuid: z.ZodString;
13
+ uuid: z.ZodUUID;
14
14
  viewPosition: z.ZodNumber;
15
15
  name: z.ZodString;
16
16
  config: z.ZodUnknown;
@@ -5,7 +5,7 @@ export declare namespace ReorderSubscriptionTemplateCommand {
5
5
  const endpointDetails: import("../../../constants").EndpointDetails;
6
6
  const RequestBodySchema: z.ZodObject<{
7
7
  items: z.ZodArray<z.ZodObject<{
8
- uuid: z.ZodString;
8
+ uuid: z.ZodUUID;
9
9
  viewPosition: z.ZodNumber;
10
10
  }, z.core.$strip>>;
11
11
  }, z.core.$strip>;
@@ -13,7 +13,7 @@ export declare namespace ReorderSubscriptionTemplateCommand {
13
13
  response: z.ZodObject<{
14
14
  total: z.ZodNumber;
15
15
  templates: z.ZodArray<z.ZodObject<{
16
- uuid: z.ZodString;
16
+ uuid: z.ZodUUID;
17
17
  viewPosition: z.ZodNumber;
18
18
  name: z.ZodString;
19
19
  templateType: z.ZodEnum<{
@@ -16,7 +16,7 @@ export declare namespace CreateSubscriptionTemplateCommand {
16
16
  }, z.core.$strip>;
17
17
  const ResponseSchema: z.ZodObject<{
18
18
  response: z.ZodObject<{
19
- uuid: z.ZodString;
19
+ uuid: z.ZodUUID;
20
20
  viewPosition: z.ZodNumber;
21
21
  name: z.ZodString;
22
22
  templateType: z.ZodEnum<{
@@ -8,7 +8,7 @@ export declare namespace GetSubscriptionTemplateCommand {
8
8
  }, z.core.$strip>;
9
9
  const ResponseSchema: z.ZodObject<{
10
10
  response: z.ZodObject<{
11
- uuid: z.ZodString;
11
+ uuid: z.ZodUUID;
12
12
  viewPosition: z.ZodNumber;
13
13
  name: z.ZodString;
14
14
  templateType: z.ZodEnum<{
@@ -7,7 +7,7 @@ export declare namespace GetSubscriptionTemplatesCommand {
7
7
  response: z.ZodObject<{
8
8
  total: z.ZodNumber;
9
9
  templates: z.ZodArray<z.ZodObject<{
10
- uuid: z.ZodString;
10
+ uuid: z.ZodUUID;
11
11
  viewPosition: z.ZodNumber;
12
12
  name: z.ZodString;
13
13
  templateType: z.ZodEnum<{
@@ -11,7 +11,7 @@ export declare namespace UpdateSubscriptionTemplateCommand {
11
11
  }, z.core.$strip>;
12
12
  const ResponseSchema: z.ZodObject<{
13
13
  response: z.ZodObject<{
14
- uuid: z.ZodString;
14
+ uuid: z.ZodUUID;
15
15
  viewPosition: z.ZodNumber;
16
16
  name: z.ZodString;
17
17
  templateType: z.ZodEnum<{
@@ -1,6 +1,6 @@
1
1
  import z from 'zod';
2
2
  export declare const NodePluginSchema: z.ZodObject<{
3
- uuid: z.ZodString;
3
+ uuid: z.ZodUUID;
4
4
  viewPosition: z.ZodNumber;
5
5
  name: z.ZodString;
6
6
  pluginConfig: z.ZodNullable<z.ZodUnknown>;
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.NodePluginSchema = void 0;
7
7
  const zod_1 = __importDefault(require("zod"));
8
8
  exports.NodePluginSchema = zod_1.default.object({
9
- uuid: zod_1.default.string().uuid(),
9
+ uuid: zod_1.default.uuid(),
10
10
  viewPosition: zod_1.default.number().int(),
11
11
  name: zod_1.default.string(),
12
12
  pluginConfig: zod_1.default.nullable(zod_1.default.unknown()),
@@ -1 +1 @@
1
- {"version":3,"file":"response-rules-config.schema.d.ts","sourceRoot":"","sources":["../../../../models/response-rules/response-rules-config.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAgBpC,CAAC"}
1
+ {"version":3,"file":"response-rules-config.schema.d.ts","sourceRoot":"","sources":["../../../../models/response-rules/response-rules-config.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAcpC,CAAC"}
@@ -7,10 +7,10 @@ const response_rule_settings_schema_1 = require("./response-rule-settings.schema
7
7
  const response_rule_schema_1 = require("./response-rule.schema");
8
8
  const response_rules_examples_1 = require("./response-rules-examples");
9
9
  exports.ResponseRulesConfigSchema = zod_1.z.object({
10
- version: zod_1.z.enum(constants_1.RESPONSE_RULES_CONFIG_VERSION).describe(JSON.stringify({
10
+ version: zod_1.z.enum(constants_1.RESPONSE_RULES_CONFIG_VERSION).meta({
11
11
  title: 'Response Rules Config Version',
12
12
  markdownDescription: 'Version of the **response rules** config. Currently supported version is **1**.',
13
- })),
13
+ }),
14
14
  settings: response_rule_settings_schema_1.ResponseRuleSettingsSchema,
15
15
  rules: zod_1.z.array(response_rule_schema_1.ResponseRuleSchema).describe(JSON.stringify({
16
16
  title: 'Response Rules',
@@ -1,6 +1,6 @@
1
1
  import z from 'zod';
2
2
  export declare const SubscriptionPageConfigSchema: z.ZodObject<{
3
- uuid: z.ZodString;
3
+ uuid: z.ZodUUID;
4
4
  viewPosition: z.ZodNumber;
5
5
  name: z.ZodString;
6
6
  config: z.ZodNullable<z.ZodUnknown>;
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.SubscriptionPageConfigSchema = void 0;
7
7
  const zod_1 = __importDefault(require("zod"));
8
8
  exports.SubscriptionPageConfigSchema = zod_1.default.object({
9
- uuid: zod_1.default.string().uuid(),
9
+ uuid: zod_1.default.uuid(),
10
10
  viewPosition: zod_1.default.number().int(),
11
11
  name: zod_1.default.string(),
12
12
  config: zod_1.default.nullable(zod_1.default.unknown()),
@@ -1,6 +1,6 @@
1
1
  import z from 'zod';
2
2
  export declare const SubscriptionTemplateSchema: z.ZodObject<{
3
- uuid: z.ZodString;
3
+ uuid: z.ZodUUID;
4
4
  viewPosition: z.ZodNumber;
5
5
  name: z.ZodString;
6
6
  templateType: z.ZodEnum<{
@@ -7,10 +7,10 @@ exports.SubscriptionTemplateSchema = void 0;
7
7
  const zod_1 = __importDefault(require("zod"));
8
8
  const constants_1 = require("../constants");
9
9
  exports.SubscriptionTemplateSchema = zod_1.default.object({
10
- uuid: zod_1.default.string().uuid(),
10
+ uuid: zod_1.default.uuid(),
11
11
  viewPosition: zod_1.default.number().int(),
12
12
  name: zod_1.default.string(),
13
- templateType: zod_1.default.nativeEnum(constants_1.SUBSCRIPTION_TEMPLATE_TYPE),
13
+ templateType: zod_1.default.enum(constants_1.SUBSCRIPTION_TEMPLATE_TYPE),
14
14
  templateJson: zod_1.default.nullable(zod_1.default.unknown()),
15
15
  encodedTemplateYaml: zod_1.default.nullable(zod_1.default.string()),
16
16
  });
@@ -258,11 +258,11 @@ export declare const RemnawaveWebhookServiceEvents: z.ZodObject<{
258
258
  UPDATED: "UPDATED";
259
259
  DELETED: "DELETED";
260
260
  }>;
261
- uuid: z.ZodString;
261
+ uuid: z.ZodUUID;
262
262
  }, z.core.$strip>>;
263
263
  apiToken: z.ZodOptional<z.ZodObject<{
264
264
  name: z.ZodString;
265
- uuid: z.ZodString;
265
+ uuid: z.ZodUUID;
266
266
  expireAt: z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>;
267
267
  scopes: z.ZodArray<z.ZodString>;
268
268
  }, z.core.$strip>>;
@@ -715,11 +715,11 @@ export declare const RemnawaveWebhookEventSchema: z.ZodDiscriminatedUnion<[z.Zod
715
715
  UPDATED: "UPDATED";
716
716
  DELETED: "DELETED";
717
717
  }>;
718
- uuid: z.ZodString;
718
+ uuid: z.ZodUUID;
719
719
  }, z.core.$strip>>;
720
720
  apiToken: z.ZodOptional<z.ZodObject<{
721
721
  name: z.ZodString;
722
- uuid: z.ZodString;
722
+ uuid: z.ZodUUID;
723
723
  expireAt: z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>;
724
724
  scopes: z.ZodArray<z.ZodString>;
725
725
  }, z.core.$strip>>;
@@ -66,13 +66,13 @@ exports.RemnawaveWebhookServiceEvents = zod_1.default.object({
66
66
  subpageConfig: zod_1.default
67
67
  .object({
68
68
  action: zod_1.default.enum((0, constants_1.toZodEnum)(constants_1.CRUD_ACTIONS)),
69
- uuid: zod_1.default.string().uuid(),
69
+ uuid: zod_1.default.uuid(),
70
70
  })
71
71
  .optional(),
72
72
  apiToken: zod_1.default
73
73
  .object({
74
74
  name: zod_1.default.string(),
75
- uuid: zod_1.default.string().uuid(),
75
+ uuid: zod_1.default.uuid(),
76
76
  expireAt: zod_1.default
77
77
  .string()
78
78
  .datetime()
@@ -1,7 +1,7 @@
1
1
  import z from 'zod';
2
2
  declare const HostSelectorSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3
3
  type: z.ZodLiteral<"uuids">;
4
- values: z.ZodArray<z.ZodString>;
4
+ values: z.ZodArray<z.ZodUUID>;
5
5
  }, z.core.$strip>, z.ZodObject<{
6
6
  type: z.ZodLiteral<"remarkRegex">;
7
7
  pattern: z.ZodString;
@@ -14,7 +14,7 @@ declare const HostSelectorSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
14
14
  declare const InjectHostsEntrySchema: z.ZodObject<{
15
15
  selector: z.ZodDiscriminatedUnion<[z.ZodObject<{
16
16
  type: z.ZodLiteral<"uuids">;
17
- values: z.ZodArray<z.ZodString>;
17
+ values: z.ZodArray<z.ZodUUID>;
18
18
  }, z.core.$strip>, z.ZodObject<{
19
19
  type: z.ZodLiteral<"remarkRegex">;
20
20
  pattern: z.ZodString;
@@ -37,7 +37,7 @@ export declare const RemnawaveInjectorSchema: z.ZodObject<{
37
37
  injectHosts: z.ZodOptional<z.ZodArray<z.ZodObject<{
38
38
  selector: z.ZodDiscriminatedUnion<[z.ZodObject<{
39
39
  type: z.ZodLiteral<"uuids">;
40
- values: z.ZodArray<z.ZodString>;
40
+ values: z.ZodArray<z.ZodUUID>;
41
41
  }, z.core.$strip>, z.ZodObject<{
42
42
  type: z.ZodLiteral<"remarkRegex">;
43
43
  pattern: z.ZodString;
@@ -8,7 +8,7 @@ const zod_1 = __importDefault(require("zod"));
8
8
  const HostSelectorSchema = zod_1.default.discriminatedUnion('type', [
9
9
  zod_1.default.object({
10
10
  type: zod_1.default.literal('uuids'),
11
- values: zod_1.default.array(zod_1.default.string().uuid()).min(1),
11
+ values: zod_1.default.array(zod_1.default.uuid()).min(1),
12
12
  }),
13
13
  zod_1.default.object({
14
14
  type: zod_1.default.literal('remarkRegex'),
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.NodePluginSchema = void 0;
7
7
  const zod_1 = __importDefault(require("zod"));
8
8
  exports.NodePluginSchema = zod_1.default.object({
9
- uuid: zod_1.default.string().uuid(),
9
+ uuid: zod_1.default.uuid(),
10
10
  viewPosition: zod_1.default.number().int(),
11
11
  name: zod_1.default.string(),
12
12
  pluginConfig: zod_1.default.nullable(zod_1.default.unknown()),
@@ -7,10 +7,10 @@ const response_rule_settings_schema_1 = require("./response-rule-settings.schema
7
7
  const response_rule_schema_1 = require("./response-rule.schema");
8
8
  const response_rules_examples_1 = require("./response-rules-examples");
9
9
  exports.ResponseRulesConfigSchema = zod_1.z.object({
10
- version: zod_1.z.enum(constants_1.RESPONSE_RULES_CONFIG_VERSION).describe(JSON.stringify({
10
+ version: zod_1.z.enum(constants_1.RESPONSE_RULES_CONFIG_VERSION).meta({
11
11
  title: 'Response Rules Config Version',
12
12
  markdownDescription: 'Version of the **response rules** config. Currently supported version is **1**.',
13
- })),
13
+ }),
14
14
  settings: response_rule_settings_schema_1.ResponseRuleSettingsSchema,
15
15
  rules: zod_1.z.array(response_rule_schema_1.ResponseRuleSchema).describe(JSON.stringify({
16
16
  title: 'Response Rules',
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.SubscriptionPageConfigSchema = void 0;
7
7
  const zod_1 = __importDefault(require("zod"));
8
8
  exports.SubscriptionPageConfigSchema = zod_1.default.object({
9
- uuid: zod_1.default.string().uuid(),
9
+ uuid: zod_1.default.uuid(),
10
10
  viewPosition: zod_1.default.number().int(),
11
11
  name: zod_1.default.string(),
12
12
  config: zod_1.default.nullable(zod_1.default.unknown()),
@@ -7,10 +7,10 @@ exports.SubscriptionTemplateSchema = void 0;
7
7
  const zod_1 = __importDefault(require("zod"));
8
8
  const constants_1 = require("../constants");
9
9
  exports.SubscriptionTemplateSchema = zod_1.default.object({
10
- uuid: zod_1.default.string().uuid(),
10
+ uuid: zod_1.default.uuid(),
11
11
  viewPosition: zod_1.default.number().int(),
12
12
  name: zod_1.default.string(),
13
- templateType: zod_1.default.nativeEnum(constants_1.SUBSCRIPTION_TEMPLATE_TYPE),
13
+ templateType: zod_1.default.enum(constants_1.SUBSCRIPTION_TEMPLATE_TYPE),
14
14
  templateJson: zod_1.default.nullable(zod_1.default.unknown()),
15
15
  encodedTemplateYaml: zod_1.default.nullable(zod_1.default.string()),
16
16
  });
@@ -66,13 +66,13 @@ exports.RemnawaveWebhookServiceEvents = zod_1.default.object({
66
66
  subpageConfig: zod_1.default
67
67
  .object({
68
68
  action: zod_1.default.enum((0, constants_1.toZodEnum)(constants_1.CRUD_ACTIONS)),
69
- uuid: zod_1.default.string().uuid(),
69
+ uuid: zod_1.default.uuid(),
70
70
  })
71
71
  .optional(),
72
72
  apiToken: zod_1.default
73
73
  .object({
74
74
  name: zod_1.default.string(),
75
- uuid: zod_1.default.string().uuid(),
75
+ uuid: zod_1.default.uuid(),
76
76
  expireAt: zod_1.default
77
77
  .string()
78
78
  .datetime()
@@ -8,7 +8,7 @@ const zod_1 = __importDefault(require("zod"));
8
8
  const HostSelectorSchema = zod_1.default.discriminatedUnion('type', [
9
9
  zod_1.default.object({
10
10
  type: zod_1.default.literal('uuids'),
11
- values: zod_1.default.array(zod_1.default.string().uuid()).min(1),
11
+ values: zod_1.default.array(zod_1.default.uuid()).min(1),
12
12
  }),
13
13
  zod_1.default.object({
14
14
  type: zod_1.default.literal('remarkRegex'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/backend-contract",
3
- "version": "2.9.4",
3
+ "version": "2.9.5",
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",