@remnawave/backend-contract 2.1.3 → 2.1.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 (57) hide show
  1. package/build/backend/api/controllers/hosts.d.ts +3 -0
  2. package/build/backend/api/controllers/hosts.d.ts.map +1 -1
  3. package/build/backend/api/controllers/hosts.js +3 -0
  4. package/build/backend/api/routes.d.ts +3 -0
  5. package/build/backend/api/routes.d.ts.map +1 -1
  6. package/build/backend/api/routes.js +3 -0
  7. package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts +10 -0
  8. package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts.map +1 -1
  9. package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts +10 -0
  10. package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts.map +1 -1
  11. package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts +10 -0
  12. package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts.map +1 -1
  13. package/build/backend/commands/hosts/bulk/set-inbound-to-many-hosts.command.d.ts +10 -0
  14. package/build/backend/commands/hosts/bulk/set-inbound-to-many-hosts.command.d.ts.map +1 -1
  15. package/build/backend/commands/hosts/bulk/set-port-to-many-hosts.command.d.ts +10 -0
  16. package/build/backend/commands/hosts/bulk/set-port-to-many-hosts.command.d.ts.map +1 -1
  17. package/build/backend/commands/hosts/create.command.d.ts +16 -0
  18. package/build/backend/commands/hosts/create.command.d.ts.map +1 -1
  19. package/build/backend/commands/hosts/create.command.js +8 -0
  20. package/build/backend/commands/hosts/get-all.command.d.ts +10 -0
  21. package/build/backend/commands/hosts/get-all.command.d.ts.map +1 -1
  22. package/build/backend/commands/hosts/get-one.command.d.ts +10 -0
  23. package/build/backend/commands/hosts/get-one.command.d.ts.map +1 -1
  24. package/build/backend/commands/hosts/index.d.ts +1 -0
  25. package/build/backend/commands/hosts/index.d.ts.map +1 -1
  26. package/build/backend/commands/hosts/index.js +1 -0
  27. package/build/backend/commands/hosts/reorder.command.d.ts +2 -0
  28. package/build/backend/commands/hosts/reorder.command.d.ts.map +1 -1
  29. package/build/backend/commands/hosts/tags/get-all-host-tags.command.d.ts +25 -0
  30. package/build/backend/commands/hosts/tags/get-all-host-tags.command.d.ts.map +1 -0
  31. package/build/backend/commands/hosts/tags/get-all-host-tags.command.js +17 -0
  32. package/build/backend/commands/hosts/tags/index.d.ts +2 -0
  33. package/build/backend/commands/hosts/tags/index.d.ts.map +1 -0
  34. package/build/backend/commands/hosts/tags/index.js +17 -0
  35. package/build/backend/commands/hosts/update.command.d.ts +18 -0
  36. package/build/backend/commands/hosts/update.command.d.ts.map +1 -1
  37. package/build/backend/commands/hosts/update.command.js +8 -0
  38. package/build/backend/commands/subscription/get-raw-subscription-by-short-uuid.command.d.ts +27 -9
  39. package/build/backend/commands/subscription/get-raw-subscription-by-short-uuid.command.d.ts.map +1 -1
  40. package/build/backend/commands/subscription/get-raw-subscription-by-short-uuid.command.js +3 -1
  41. package/build/backend/constants/errors/errors.d.ts +5 -0
  42. package/build/backend/constants/errors/errors.d.ts.map +1 -1
  43. package/build/backend/constants/errors/errors.js +5 -0
  44. package/build/backend/models/hosts.schema.d.ts +6 -0
  45. package/build/backend/models/hosts.schema.d.ts.map +1 -1
  46. package/build/backend/models/hosts.schema.js +2 -0
  47. package/build/frontend/api/controllers/hosts.js +3 -0
  48. package/build/frontend/api/routes.js +3 -0
  49. package/build/frontend/commands/hosts/create.command.js +8 -0
  50. package/build/frontend/commands/hosts/index.js +1 -0
  51. package/build/frontend/commands/hosts/tags/get-all-host-tags.command.js +17 -0
  52. package/build/frontend/commands/hosts/tags/index.js +17 -0
  53. package/build/frontend/commands/hosts/update.command.js +8 -0
  54. package/build/frontend/commands/subscription/get-raw-subscription-by-short-uuid.command.js +3 -1
  55. package/build/frontend/constants/errors/errors.js +5 -0
  56. package/build/frontend/models/hosts.schema.js +2 -0
  57. package/package.json +1 -1
@@ -54,6 +54,14 @@ var UpdateHostCommand;
54
54
  message: 'Server description must be less than 30 characters',
55
55
  })
56
56
  .nullable()),
57
+ tag: zod_1.z
58
+ .optional(zod_1.z
59
+ .string()
60
+ .regex(/^[A-Z0-9_]+$/, 'Tag can only contain uppercase letters, numbers, underscores')
61
+ .max(16, 'Tag must be less than 16 characters')
62
+ .nullable())
63
+ .describe('Optional. Host tag for categorization. Max 16 characters, uppercase letters, numbers and underscores only.'),
64
+ isHidden: zod_1.z.optional(zod_1.z.boolean()),
57
65
  });
58
66
  UpdateHostCommand.ResponseSchema = zod_1.z.object({
59
67
  response: models_1.HostsSchema,
@@ -70,13 +70,15 @@ var GetRawSubscriptionByShortUuidCommand;
70
70
  }))),
71
71
  dbData: zod_1.z.optional(zod_1.z.object({
72
72
  rawInbound: zod_1.z.nullable(zod_1.z.object({})),
73
- tag: zod_1.z.string(),
73
+ inboundTag: zod_1.z.string(),
74
74
  uuid: zod_1.z.string(),
75
75
  configProfileUuid: zod_1.z.nullable(zod_1.z.string()),
76
76
  configProfileInboundUuid: zod_1.z.nullable(zod_1.z.string()),
77
77
  isDisabled: zod_1.z.boolean(),
78
78
  viewPosition: zod_1.z.number(),
79
79
  remark: zod_1.z.string(),
80
+ isHidden: zod_1.z.boolean(),
81
+ tag: zod_1.z.nullable(zod_1.z.string()),
80
82
  })),
81
83
  })),
82
84
  headers: zod_1.z.record(zod_1.z.string(), zod_1.z.string()),
@@ -750,4 +750,9 @@ exports.ERRORS = {
750
750
  message: 'Sync active profile error',
751
751
  httpCode: 500,
752
752
  },
753
+ GET_ALL_HOST_TAGS_ERROR: {
754
+ code: 'A151',
755
+ message: 'Get all host tags error',
756
+ httpCode: 500,
757
+ },
753
758
  };
@@ -24,4 +24,6 @@ exports.HostsSchema = zod_1.z.object({
24
24
  configProfileInboundUuid: zod_1.z.string().uuid().nullable(),
25
25
  }),
26
26
  serverDescription: zod_1.z.string().nullable(),
27
+ tag: zod_1.z.string().nullable(),
28
+ isHidden: zod_1.z.boolean().default(false),
27
29
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/backend-contract",
3
- "version": "2.1.3",
3
+ "version": "2.1.5",
4
4
  "public": true,
5
5
  "license": "AGPL-3.0-only",
6
6
  "description": "A contract library for Remnawave Backend. It can be used in backend and frontend.",