@remnawave/backend-contract 3.4.10 → 3.4.11

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 (227) hide show
  1. package/build/backend/api/controllers/config-profiles.d.ts +4 -0
  2. package/build/backend/api/controllers/config-profiles.d.ts.map +1 -1
  3. package/build/backend/api/controllers/config-profiles.js +4 -0
  4. package/build/backend/api/controllers/external-squads.d.ts +4 -0
  5. package/build/backend/api/controllers/external-squads.d.ts.map +1 -1
  6. package/build/backend/api/controllers/external-squads.js +4 -0
  7. package/build/backend/api/controllers/internal-squads.d.ts +4 -0
  8. package/build/backend/api/controllers/internal-squads.d.ts.map +1 -1
  9. package/build/backend/api/controllers/internal-squads.js +4 -0
  10. package/build/backend/api/controllers/node-plugins.d.ts +4 -0
  11. package/build/backend/api/controllers/node-plugins.d.ts.map +1 -1
  12. package/build/backend/api/controllers/node-plugins.js +4 -0
  13. package/build/backend/api/controllers/subscription-page-configs.d.ts +4 -0
  14. package/build/backend/api/controllers/subscription-page-configs.d.ts.map +1 -1
  15. package/build/backend/api/controllers/subscription-page-configs.js +4 -0
  16. package/build/backend/api/controllers/subscription-template.d.ts +4 -0
  17. package/build/backend/api/controllers/subscription-template.d.ts.map +1 -1
  18. package/build/backend/api/controllers/subscription-template.js +4 -0
  19. package/build/backend/api/routes.d.ts +24 -0
  20. package/build/backend/api/routes.d.ts.map +1 -1
  21. package/build/backend/api/routes.js +24 -0
  22. package/build/backend/commands/config-profiles/actions/reorder.command.d.ts +1 -0
  23. package/build/backend/commands/config-profiles/actions/reorder.command.d.ts.map +1 -1
  24. package/build/backend/commands/config-profiles/create-config-profile.command.d.ts +1 -0
  25. package/build/backend/commands/config-profiles/create-config-profile.command.d.ts.map +1 -1
  26. package/build/backend/commands/config-profiles/get-computed-config-profile-by-uuid.command.d.ts +1 -0
  27. package/build/backend/commands/config-profiles/get-computed-config-profile-by-uuid.command.d.ts.map +1 -1
  28. package/build/backend/commands/config-profiles/get-config-profile-by-uuid.command.d.ts +1 -0
  29. package/build/backend/commands/config-profiles/get-config-profile-by-uuid.command.d.ts.map +1 -1
  30. package/build/backend/commands/config-profiles/get-config-profiles.command.d.ts +1 -0
  31. package/build/backend/commands/config-profiles/get-config-profiles.command.d.ts.map +1 -1
  32. package/build/backend/commands/config-profiles/index.d.ts +1 -0
  33. package/build/backend/commands/config-profiles/index.d.ts.map +1 -1
  34. package/build/backend/commands/config-profiles/index.js +1 -0
  35. package/build/backend/commands/config-profiles/tags/get-config-profiles-tags.command.d.ts +13 -0
  36. package/build/backend/commands/config-profiles/tags/get-config-profiles-tags.command.d.ts.map +1 -0
  37. package/build/backend/commands/config-profiles/tags/get-config-profiles-tags.command.js +17 -0
  38. package/build/backend/commands/config-profiles/tags/index.d.ts +3 -0
  39. package/build/backend/commands/config-profiles/tags/index.d.ts.map +1 -0
  40. package/build/backend/commands/config-profiles/tags/index.js +18 -0
  41. package/build/backend/commands/config-profiles/tags/set-config-profile-tags.command.d.ts +19 -0
  42. package/build/backend/commands/config-profiles/tags/set-config-profile-tags.command.d.ts.map +1 -0
  43. package/build/backend/commands/config-profiles/tags/set-config-profile-tags.command.js +23 -0
  44. package/build/backend/commands/config-profiles/update-config-profile.command.d.ts +1 -0
  45. package/build/backend/commands/config-profiles/update-config-profile.command.d.ts.map +1 -1
  46. package/build/backend/commands/external-squads/actions/reorder.command.d.ts +1 -0
  47. package/build/backend/commands/external-squads/actions/reorder.command.d.ts.map +1 -1
  48. package/build/backend/commands/external-squads/create-external-squad.command.d.ts +1 -0
  49. package/build/backend/commands/external-squads/create-external-squad.command.d.ts.map +1 -1
  50. package/build/backend/commands/external-squads/get-external-squad-by-uuid.command.d.ts +1 -0
  51. package/build/backend/commands/external-squads/get-external-squad-by-uuid.command.d.ts.map +1 -1
  52. package/build/backend/commands/external-squads/get-external-squads.command.d.ts +1 -0
  53. package/build/backend/commands/external-squads/get-external-squads.command.d.ts.map +1 -1
  54. package/build/backend/commands/external-squads/index.d.ts +1 -0
  55. package/build/backend/commands/external-squads/index.d.ts.map +1 -1
  56. package/build/backend/commands/external-squads/index.js +1 -0
  57. package/build/backend/commands/external-squads/tags/get-external-squads-tags.command.d.ts +13 -0
  58. package/build/backend/commands/external-squads/tags/get-external-squads-tags.command.d.ts.map +1 -0
  59. package/build/backend/commands/external-squads/tags/get-external-squads-tags.command.js +17 -0
  60. package/build/backend/commands/external-squads/tags/index.d.ts +3 -0
  61. package/build/backend/commands/external-squads/tags/index.d.ts.map +1 -0
  62. package/build/backend/commands/external-squads/tags/index.js +18 -0
  63. package/build/backend/commands/external-squads/tags/set-external-squad-tags.command.d.ts +19 -0
  64. package/build/backend/commands/external-squads/tags/set-external-squad-tags.command.d.ts.map +1 -0
  65. package/build/backend/commands/external-squads/tags/set-external-squad-tags.command.js +23 -0
  66. package/build/backend/commands/external-squads/update-external-squad.command.d.ts +1 -0
  67. package/build/backend/commands/external-squads/update-external-squad.command.d.ts.map +1 -1
  68. package/build/backend/commands/internal-squads/actions/reorder.command.d.ts +1 -0
  69. package/build/backend/commands/internal-squads/actions/reorder.command.d.ts.map +1 -1
  70. package/build/backend/commands/internal-squads/create-internal-squad.command.d.ts +1 -0
  71. package/build/backend/commands/internal-squads/create-internal-squad.command.d.ts.map +1 -1
  72. package/build/backend/commands/internal-squads/get-internal-squad.command.d.ts +1 -0
  73. package/build/backend/commands/internal-squads/get-internal-squad.command.d.ts.map +1 -1
  74. package/build/backend/commands/internal-squads/get-internal-squads.command.d.ts +1 -0
  75. package/build/backend/commands/internal-squads/get-internal-squads.command.d.ts.map +1 -1
  76. package/build/backend/commands/internal-squads/index.d.ts +1 -0
  77. package/build/backend/commands/internal-squads/index.d.ts.map +1 -1
  78. package/build/backend/commands/internal-squads/index.js +1 -0
  79. package/build/backend/commands/internal-squads/tags/get-internal-squads-tags.command.d.ts +13 -0
  80. package/build/backend/commands/internal-squads/tags/get-internal-squads-tags.command.d.ts.map +1 -0
  81. package/build/backend/commands/internal-squads/tags/get-internal-squads-tags.command.js +17 -0
  82. package/build/backend/commands/internal-squads/tags/index.d.ts +3 -0
  83. package/build/backend/commands/internal-squads/tags/index.d.ts.map +1 -0
  84. package/build/backend/commands/internal-squads/tags/index.js +18 -0
  85. package/build/backend/commands/internal-squads/tags/set-internal-squad-tags.command.d.ts +19 -0
  86. package/build/backend/commands/internal-squads/tags/set-internal-squad-tags.command.d.ts.map +1 -0
  87. package/build/backend/commands/internal-squads/tags/set-internal-squad-tags.command.js +23 -0
  88. package/build/backend/commands/internal-squads/update-internal-squad.command.d.ts +1 -0
  89. package/build/backend/commands/internal-squads/update-internal-squad.command.d.ts.map +1 -1
  90. package/build/backend/commands/node-plugins/actions/clone-node-plugin.command.d.ts +1 -0
  91. package/build/backend/commands/node-plugins/actions/clone-node-plugin.command.d.ts.map +1 -1
  92. package/build/backend/commands/node-plugins/actions/reorder.command.d.ts +1 -0
  93. package/build/backend/commands/node-plugins/actions/reorder.command.d.ts.map +1 -1
  94. package/build/backend/commands/node-plugins/create-node-plugin.command.d.ts +1 -0
  95. package/build/backend/commands/node-plugins/create-node-plugin.command.d.ts.map +1 -1
  96. package/build/backend/commands/node-plugins/get-node-plugin.command.d.ts +1 -0
  97. package/build/backend/commands/node-plugins/get-node-plugin.command.d.ts.map +1 -1
  98. package/build/backend/commands/node-plugins/get-node-plugins.command.d.ts +1 -0
  99. package/build/backend/commands/node-plugins/get-node-plugins.command.d.ts.map +1 -1
  100. package/build/backend/commands/node-plugins/index.d.ts +1 -0
  101. package/build/backend/commands/node-plugins/index.d.ts.map +1 -1
  102. package/build/backend/commands/node-plugins/index.js +1 -0
  103. package/build/backend/commands/node-plugins/tags/get-node-plugins-tags.command.d.ts +13 -0
  104. package/build/backend/commands/node-plugins/tags/get-node-plugins-tags.command.d.ts.map +1 -0
  105. package/build/backend/commands/node-plugins/tags/get-node-plugins-tags.command.js +17 -0
  106. package/build/backend/commands/node-plugins/tags/index.d.ts +3 -0
  107. package/build/backend/commands/node-plugins/tags/index.d.ts.map +1 -0
  108. package/build/backend/commands/node-plugins/tags/index.js +18 -0
  109. package/build/backend/commands/node-plugins/tags/set-node-plugin-tags.command.d.ts +19 -0
  110. package/build/backend/commands/node-plugins/tags/set-node-plugin-tags.command.d.ts.map +1 -0
  111. package/build/backend/commands/node-plugins/tags/set-node-plugin-tags.command.js +23 -0
  112. package/build/backend/commands/node-plugins/update-node-plugin.command.d.ts +1 -0
  113. package/build/backend/commands/node-plugins/update-node-plugin.command.d.ts.map +1 -1
  114. package/build/backend/commands/subscription-page-configs/actions/clone-subpage-config.command.d.ts +1 -0
  115. package/build/backend/commands/subscription-page-configs/actions/clone-subpage-config.command.d.ts.map +1 -1
  116. package/build/backend/commands/subscription-page-configs/actions/reorder.command.d.ts +1 -0
  117. package/build/backend/commands/subscription-page-configs/actions/reorder.command.d.ts.map +1 -1
  118. package/build/backend/commands/subscription-page-configs/create-subpage-config.command.d.ts +1 -0
  119. package/build/backend/commands/subscription-page-configs/create-subpage-config.command.d.ts.map +1 -1
  120. package/build/backend/commands/subscription-page-configs/get-subpage-config.command.d.ts +1 -0
  121. package/build/backend/commands/subscription-page-configs/get-subpage-config.command.d.ts.map +1 -1
  122. package/build/backend/commands/subscription-page-configs/get-subpage-configs.command.d.ts +1 -0
  123. package/build/backend/commands/subscription-page-configs/get-subpage-configs.command.d.ts.map +1 -1
  124. package/build/backend/commands/subscription-page-configs/index.d.ts +1 -0
  125. package/build/backend/commands/subscription-page-configs/index.d.ts.map +1 -1
  126. package/build/backend/commands/subscription-page-configs/index.js +1 -0
  127. package/build/backend/commands/subscription-page-configs/tags/get-subpage-configs-tags.command.d.ts +13 -0
  128. package/build/backend/commands/subscription-page-configs/tags/get-subpage-configs-tags.command.d.ts.map +1 -0
  129. package/build/backend/commands/subscription-page-configs/tags/get-subpage-configs-tags.command.js +17 -0
  130. package/build/backend/commands/subscription-page-configs/tags/index.d.ts +3 -0
  131. package/build/backend/commands/subscription-page-configs/tags/index.d.ts.map +1 -0
  132. package/build/backend/commands/subscription-page-configs/tags/index.js +18 -0
  133. package/build/backend/commands/subscription-page-configs/tags/set-subpage-config-tags.command.d.ts +19 -0
  134. package/build/backend/commands/subscription-page-configs/tags/set-subpage-config-tags.command.d.ts.map +1 -0
  135. package/build/backend/commands/subscription-page-configs/tags/set-subpage-config-tags.command.js +23 -0
  136. package/build/backend/commands/subscription-page-configs/update-subpage-config.command.d.ts +1 -0
  137. package/build/backend/commands/subscription-page-configs/update-subpage-config.command.d.ts.map +1 -1
  138. package/build/backend/commands/subscription-template/actions/reorder.command.d.ts +1 -0
  139. package/build/backend/commands/subscription-template/actions/reorder.command.d.ts.map +1 -1
  140. package/build/backend/commands/subscription-template/create-template.command.d.ts +1 -0
  141. package/build/backend/commands/subscription-template/create-template.command.d.ts.map +1 -1
  142. package/build/backend/commands/subscription-template/get-template.command.d.ts +1 -0
  143. package/build/backend/commands/subscription-template/get-template.command.d.ts.map +1 -1
  144. package/build/backend/commands/subscription-template/get-templates.command.d.ts +1 -0
  145. package/build/backend/commands/subscription-template/get-templates.command.d.ts.map +1 -1
  146. package/build/backend/commands/subscription-template/index.d.ts +1 -0
  147. package/build/backend/commands/subscription-template/index.d.ts.map +1 -1
  148. package/build/backend/commands/subscription-template/index.js +1 -0
  149. package/build/backend/commands/subscription-template/tags/get-subscription-templates-tags.command.d.ts +13 -0
  150. package/build/backend/commands/subscription-template/tags/get-subscription-templates-tags.command.d.ts.map +1 -0
  151. package/build/backend/commands/subscription-template/tags/get-subscription-templates-tags.command.js +17 -0
  152. package/build/backend/commands/subscription-template/tags/index.d.ts +3 -0
  153. package/build/backend/commands/subscription-template/tags/index.d.ts.map +1 -0
  154. package/build/backend/commands/subscription-template/tags/index.js +18 -0
  155. package/build/backend/commands/subscription-template/tags/set-subscription-template-tags.command.d.ts +19 -0
  156. package/build/backend/commands/subscription-template/tags/set-subscription-template-tags.command.d.ts.map +1 -0
  157. package/build/backend/commands/subscription-template/tags/set-subscription-template-tags.command.js +23 -0
  158. package/build/backend/commands/subscription-template/update-template.command.d.ts +1 -0
  159. package/build/backend/commands/subscription-template/update-template.command.d.ts.map +1 -1
  160. package/build/backend/constants/errors/errors.d.ts +10 -0
  161. package/build/backend/constants/errors/errors.d.ts.map +1 -1
  162. package/build/backend/constants/errors/errors.js +10 -0
  163. package/build/backend/models/config-profile.schema.d.ts +1 -0
  164. package/build/backend/models/config-profile.schema.d.ts.map +1 -1
  165. package/build/backend/models/config-profile.schema.js +3 -4
  166. package/build/backend/models/external-squad.schema.d.ts +1 -0
  167. package/build/backend/models/external-squad.schema.d.ts.map +1 -1
  168. package/build/backend/models/external-squad.schema.js +1 -0
  169. package/build/backend/models/index.d.ts +1 -0
  170. package/build/backend/models/index.d.ts.map +1 -1
  171. package/build/backend/models/index.js +1 -0
  172. package/build/backend/models/internal-squad.schema.d.ts +1 -0
  173. package/build/backend/models/internal-squad.schema.d.ts.map +1 -1
  174. package/build/backend/models/internal-squad.schema.js +3 -4
  175. package/build/backend/models/node-plugin.schema.d.ts +1 -0
  176. package/build/backend/models/node-plugin.schema.d.ts.map +1 -1
  177. package/build/backend/models/node-plugin.schema.js +1 -0
  178. package/build/backend/models/subscripion-page-config.schema.d.ts +1 -0
  179. package/build/backend/models/subscripion-page-config.schema.d.ts.map +1 -1
  180. package/build/backend/models/subscripion-page-config.schema.js +1 -0
  181. package/build/backend/models/subscription-template.schema.d.ts +1 -0
  182. package/build/backend/models/subscription-template.schema.d.ts.map +1 -1
  183. package/build/backend/models/subscription-template.schema.js +1 -0
  184. package/build/backend/models/tags.schema.d.ts +4 -0
  185. package/build/backend/models/tags.schema.d.ts.map +1 -0
  186. package/build/backend/models/tags.schema.js +9 -0
  187. package/build/frontend/api/controllers/config-profiles.js +4 -0
  188. package/build/frontend/api/controllers/external-squads.js +4 -0
  189. package/build/frontend/api/controllers/internal-squads.js +4 -0
  190. package/build/frontend/api/controllers/node-plugins.js +4 -0
  191. package/build/frontend/api/controllers/subscription-page-configs.js +4 -0
  192. package/build/frontend/api/controllers/subscription-template.js +4 -0
  193. package/build/frontend/api/routes.js +24 -0
  194. package/build/frontend/commands/config-profiles/index.js +1 -0
  195. package/build/frontend/commands/config-profiles/tags/get-config-profiles-tags.command.js +17 -0
  196. package/build/frontend/commands/config-profiles/tags/index.js +18 -0
  197. package/build/frontend/commands/config-profiles/tags/set-config-profile-tags.command.js +23 -0
  198. package/build/frontend/commands/external-squads/index.js +1 -0
  199. package/build/frontend/commands/external-squads/tags/get-external-squads-tags.command.js +17 -0
  200. package/build/frontend/commands/external-squads/tags/index.js +18 -0
  201. package/build/frontend/commands/external-squads/tags/set-external-squad-tags.command.js +23 -0
  202. package/build/frontend/commands/internal-squads/index.js +1 -0
  203. package/build/frontend/commands/internal-squads/tags/get-internal-squads-tags.command.js +17 -0
  204. package/build/frontend/commands/internal-squads/tags/index.js +18 -0
  205. package/build/frontend/commands/internal-squads/tags/set-internal-squad-tags.command.js +23 -0
  206. package/build/frontend/commands/node-plugins/index.js +1 -0
  207. package/build/frontend/commands/node-plugins/tags/get-node-plugins-tags.command.js +17 -0
  208. package/build/frontend/commands/node-plugins/tags/index.js +18 -0
  209. package/build/frontend/commands/node-plugins/tags/set-node-plugin-tags.command.js +23 -0
  210. package/build/frontend/commands/subscription-page-configs/index.js +1 -0
  211. package/build/frontend/commands/subscription-page-configs/tags/get-subpage-configs-tags.command.js +17 -0
  212. package/build/frontend/commands/subscription-page-configs/tags/index.js +18 -0
  213. package/build/frontend/commands/subscription-page-configs/tags/set-subpage-config-tags.command.js +23 -0
  214. package/build/frontend/commands/subscription-template/index.js +1 -0
  215. package/build/frontend/commands/subscription-template/tags/get-subscription-templates-tags.command.js +17 -0
  216. package/build/frontend/commands/subscription-template/tags/index.js +18 -0
  217. package/build/frontend/commands/subscription-template/tags/set-subscription-template-tags.command.js +23 -0
  218. package/build/frontend/constants/errors/errors.js +10 -0
  219. package/build/frontend/models/config-profile.schema.js +3 -4
  220. package/build/frontend/models/external-squad.schema.js +1 -0
  221. package/build/frontend/models/index.js +1 -0
  222. package/build/frontend/models/internal-squad.schema.js +3 -4
  223. package/build/frontend/models/node-plugin.schema.js +1 -0
  224. package/build/frontend/models/subscripion-page-config.schema.js +1 -0
  225. package/build/frontend/models/subscription-template.schema.js +1 -0
  226. package/build/frontend/models/tags.schema.js +9 -0
  227. package/package.json +1 -1
@@ -7,6 +7,7 @@ exports.ConfigProfileSchema = zod_1.z.object({
7
7
  uuid: zod_1.z.uuid(),
8
8
  viewPosition: zod_1.z.int(),
9
9
  name: zod_1.z.string(),
10
+ tags: zod_1.z.array(zod_1.z.string()),
10
11
  config: zod_1.z.unknown(),
11
12
  inbounds: zod_1.z.array(config_profile_inbounds_schema_1.ConfigProfileInboundsSchema),
12
13
  nodes: zod_1.z.array(zod_1.z.object({
@@ -14,8 +15,6 @@ exports.ConfigProfileSchema = zod_1.z.object({
14
15
  name: zod_1.z.string(),
15
16
  countryCode: zod_1.z.string(),
16
17
  })),
17
- createdAt: zod_1.z.iso.datetime()
18
- .transform((str) => new Date(str)),
19
- updatedAt: zod_1.z.iso.datetime()
20
- .transform((str) => new Date(str)),
18
+ createdAt: zod_1.z.iso.datetime().transform((str) => new Date(str)),
19
+ updatedAt: zod_1.z.iso.datetime().transform((str) => new Date(str)),
21
20
  });
@@ -9,6 +9,7 @@ exports.ExternalSquadSchema = zod_1.z.object({
9
9
  uuid: zod_1.z.uuid(),
10
10
  viewPosition: zod_1.z.int(),
11
11
  name: zod_1.z.string(),
12
+ tags: zod_1.z.array(zod_1.z.string()),
12
13
  info: zod_1.z.object({
13
14
  membersCount: zod_1.z.number(),
14
15
  }),
@@ -48,6 +48,7 @@ __exportStar(require("./subscription-request-history.schema"), exports);
48
48
  __exportStar(require("./subscription-settings"), exports);
49
49
  __exportStar(require("./subscription-settings.schema"), exports);
50
50
  __exportStar(require("./subscription-template.schema"), exports);
51
+ __exportStar(require("./tags.schema"), exports);
51
52
  __exportStar(require("./tanstack-query"), exports);
52
53
  __exportStar(require("./torrent-blocker-report.schema"), exports);
53
54
  __exportStar(require("./users.schema"), exports);
@@ -7,13 +7,12 @@ exports.InternalSquadSchema = zod_1.z.object({
7
7
  uuid: zod_1.z.uuid(),
8
8
  viewPosition: zod_1.z.int(),
9
9
  name: zod_1.z.string(),
10
+ tags: zod_1.z.array(zod_1.z.string()),
10
11
  info: zod_1.z.object({
11
12
  membersCount: zod_1.z.number(),
12
13
  inboundsCount: zod_1.z.number(),
13
14
  }),
14
15
  inbounds: zod_1.z.array(config_profile_inbounds_schema_1.ConfigProfileInboundsSchema),
15
- createdAt: zod_1.z.iso.datetime()
16
- .transform((str) => new Date(str)),
17
- updatedAt: zod_1.z.iso.datetime()
18
- .transform((str) => new Date(str)),
16
+ createdAt: zod_1.z.iso.datetime().transform((str) => new Date(str)),
17
+ updatedAt: zod_1.z.iso.datetime().transform((str) => new Date(str)),
19
18
  });
@@ -9,5 +9,6 @@ exports.NodePluginSchema = zod_1.default.object({
9
9
  uuid: zod_1.default.uuid(),
10
10
  viewPosition: zod_1.default.number().int(),
11
11
  name: zod_1.default.string(),
12
+ tags: zod_1.default.array(zod_1.default.string()),
12
13
  pluginConfig: zod_1.default.nullable(zod_1.default.unknown()),
13
14
  });
@@ -9,5 +9,6 @@ exports.SubscriptionPageConfigSchema = zod_1.default.object({
9
9
  uuid: zod_1.default.uuid(),
10
10
  viewPosition: zod_1.default.number().int(),
11
11
  name: zod_1.default.string(),
12
+ tags: zod_1.default.array(zod_1.default.string()),
12
13
  config: zod_1.default.nullable(zod_1.default.unknown()),
13
14
  });
@@ -10,6 +10,7 @@ exports.SubscriptionTemplateSchema = zod_1.default.object({
10
10
  uuid: zod_1.default.uuid(),
11
11
  viewPosition: zod_1.default.number().int(),
12
12
  name: zod_1.default.string(),
13
+ tags: zod_1.default.array(zod_1.default.string()),
13
14
  templateType: zod_1.default.enum(constants_1.SUBSCRIPTION_TEMPLATE_TYPE),
14
15
  templateJson: zod_1.default.nullable(zod_1.default.unknown()),
15
16
  encodedTemplateYaml: zod_1.default.nullable(zod_1.default.string()),
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TagsSchema = exports.TagSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.TagSchema = zod_1.z
6
+ .string()
7
+ .regex(/^[A-Z0-9_:]+$/, 'Tag can only contain uppercase letters, numbers, underscores and colons')
8
+ .max(36, 'Each tag must be less than 36 characters');
9
+ exports.TagsSchema = zod_1.z.array(exports.TagSchema).max(10, 'Maximum 10 tags');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/backend-contract",
3
- "version": "3.4.10",
3
+ "version": "3.4.11",
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",