@remnawave/backend-contract 3.4.9 → 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 (235) 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 +6 -2
  11. package/build/backend/api/controllers/node-plugins.d.ts.map +1 -1
  12. package/build/backend/api/controllers/node-plugins.js +6 -2
  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 +26 -2
  20. package/build/backend/api/routes.d.ts.map +1 -1
  21. package/build/backend/api/routes.js +26 -2
  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/shared-lists/delete-shared-list.command.d.ts +4 -4
  104. package/build/backend/commands/node-plugins/shared-lists/delete-shared-list.command.d.ts.map +1 -1
  105. package/build/backend/commands/node-plugins/shared-lists/delete-shared-list.command.js +3 -3
  106. package/build/backend/commands/node-plugins/shared-lists/get-shared-list.command.d.ts +4 -4
  107. package/build/backend/commands/node-plugins/shared-lists/get-shared-list.command.d.ts.map +1 -1
  108. package/build/backend/commands/node-plugins/shared-lists/get-shared-list.command.js +3 -3
  109. package/build/backend/commands/node-plugins/tags/get-node-plugins-tags.command.d.ts +13 -0
  110. package/build/backend/commands/node-plugins/tags/get-node-plugins-tags.command.d.ts.map +1 -0
  111. package/build/backend/commands/node-plugins/tags/get-node-plugins-tags.command.js +17 -0
  112. package/build/backend/commands/node-plugins/tags/index.d.ts +3 -0
  113. package/build/backend/commands/node-plugins/tags/index.d.ts.map +1 -0
  114. package/build/backend/commands/node-plugins/tags/index.js +18 -0
  115. package/build/backend/commands/node-plugins/tags/set-node-plugin-tags.command.d.ts +19 -0
  116. package/build/backend/commands/node-plugins/tags/set-node-plugin-tags.command.d.ts.map +1 -0
  117. package/build/backend/commands/node-plugins/tags/set-node-plugin-tags.command.js +23 -0
  118. package/build/backend/commands/node-plugins/update-node-plugin.command.d.ts +1 -0
  119. package/build/backend/commands/node-plugins/update-node-plugin.command.d.ts.map +1 -1
  120. package/build/backend/commands/subscription-page-configs/actions/clone-subpage-config.command.d.ts +1 -0
  121. package/build/backend/commands/subscription-page-configs/actions/clone-subpage-config.command.d.ts.map +1 -1
  122. package/build/backend/commands/subscription-page-configs/actions/reorder.command.d.ts +1 -0
  123. package/build/backend/commands/subscription-page-configs/actions/reorder.command.d.ts.map +1 -1
  124. package/build/backend/commands/subscription-page-configs/create-subpage-config.command.d.ts +1 -0
  125. package/build/backend/commands/subscription-page-configs/create-subpage-config.command.d.ts.map +1 -1
  126. package/build/backend/commands/subscription-page-configs/get-subpage-config.command.d.ts +1 -0
  127. package/build/backend/commands/subscription-page-configs/get-subpage-config.command.d.ts.map +1 -1
  128. package/build/backend/commands/subscription-page-configs/get-subpage-configs.command.d.ts +1 -0
  129. package/build/backend/commands/subscription-page-configs/get-subpage-configs.command.d.ts.map +1 -1
  130. package/build/backend/commands/subscription-page-configs/index.d.ts +1 -0
  131. package/build/backend/commands/subscription-page-configs/index.d.ts.map +1 -1
  132. package/build/backend/commands/subscription-page-configs/index.js +1 -0
  133. package/build/backend/commands/subscription-page-configs/tags/get-subpage-configs-tags.command.d.ts +13 -0
  134. package/build/backend/commands/subscription-page-configs/tags/get-subpage-configs-tags.command.d.ts.map +1 -0
  135. package/build/backend/commands/subscription-page-configs/tags/get-subpage-configs-tags.command.js +17 -0
  136. package/build/backend/commands/subscription-page-configs/tags/index.d.ts +3 -0
  137. package/build/backend/commands/subscription-page-configs/tags/index.d.ts.map +1 -0
  138. package/build/backend/commands/subscription-page-configs/tags/index.js +18 -0
  139. package/build/backend/commands/subscription-page-configs/tags/set-subpage-config-tags.command.d.ts +19 -0
  140. package/build/backend/commands/subscription-page-configs/tags/set-subpage-config-tags.command.d.ts.map +1 -0
  141. package/build/backend/commands/subscription-page-configs/tags/set-subpage-config-tags.command.js +23 -0
  142. package/build/backend/commands/subscription-page-configs/update-subpage-config.command.d.ts +1 -0
  143. package/build/backend/commands/subscription-page-configs/update-subpage-config.command.d.ts.map +1 -1
  144. package/build/backend/commands/subscription-template/actions/reorder.command.d.ts +1 -0
  145. package/build/backend/commands/subscription-template/actions/reorder.command.d.ts.map +1 -1
  146. package/build/backend/commands/subscription-template/create-template.command.d.ts +1 -0
  147. package/build/backend/commands/subscription-template/create-template.command.d.ts.map +1 -1
  148. package/build/backend/commands/subscription-template/get-template.command.d.ts +1 -0
  149. package/build/backend/commands/subscription-template/get-template.command.d.ts.map +1 -1
  150. package/build/backend/commands/subscription-template/get-templates.command.d.ts +1 -0
  151. package/build/backend/commands/subscription-template/get-templates.command.d.ts.map +1 -1
  152. package/build/backend/commands/subscription-template/index.d.ts +1 -0
  153. package/build/backend/commands/subscription-template/index.d.ts.map +1 -1
  154. package/build/backend/commands/subscription-template/index.js +1 -0
  155. package/build/backend/commands/subscription-template/tags/get-subscription-templates-tags.command.d.ts +13 -0
  156. package/build/backend/commands/subscription-template/tags/get-subscription-templates-tags.command.d.ts.map +1 -0
  157. package/build/backend/commands/subscription-template/tags/get-subscription-templates-tags.command.js +17 -0
  158. package/build/backend/commands/subscription-template/tags/index.d.ts +3 -0
  159. package/build/backend/commands/subscription-template/tags/index.d.ts.map +1 -0
  160. package/build/backend/commands/subscription-template/tags/index.js +18 -0
  161. package/build/backend/commands/subscription-template/tags/set-subscription-template-tags.command.d.ts +19 -0
  162. package/build/backend/commands/subscription-template/tags/set-subscription-template-tags.command.d.ts.map +1 -0
  163. package/build/backend/commands/subscription-template/tags/set-subscription-template-tags.command.js +23 -0
  164. package/build/backend/commands/subscription-template/update-template.command.d.ts +1 -0
  165. package/build/backend/commands/subscription-template/update-template.command.d.ts.map +1 -1
  166. package/build/backend/constants/errors/errors.d.ts +10 -0
  167. package/build/backend/constants/errors/errors.d.ts.map +1 -1
  168. package/build/backend/constants/errors/errors.js +10 -0
  169. package/build/backend/models/config-profile.schema.d.ts +1 -0
  170. package/build/backend/models/config-profile.schema.d.ts.map +1 -1
  171. package/build/backend/models/config-profile.schema.js +3 -4
  172. package/build/backend/models/external-squad.schema.d.ts +1 -0
  173. package/build/backend/models/external-squad.schema.d.ts.map +1 -1
  174. package/build/backend/models/external-squad.schema.js +1 -0
  175. package/build/backend/models/index.d.ts +1 -0
  176. package/build/backend/models/index.d.ts.map +1 -1
  177. package/build/backend/models/index.js +1 -0
  178. package/build/backend/models/internal-squad.schema.d.ts +1 -0
  179. package/build/backend/models/internal-squad.schema.d.ts.map +1 -1
  180. package/build/backend/models/internal-squad.schema.js +3 -4
  181. package/build/backend/models/node-plugin.schema.d.ts +1 -0
  182. package/build/backend/models/node-plugin.schema.d.ts.map +1 -1
  183. package/build/backend/models/node-plugin.schema.js +1 -0
  184. package/build/backend/models/subscripion-page-config.schema.d.ts +1 -0
  185. package/build/backend/models/subscripion-page-config.schema.d.ts.map +1 -1
  186. package/build/backend/models/subscripion-page-config.schema.js +1 -0
  187. package/build/backend/models/subscription-template.schema.d.ts +1 -0
  188. package/build/backend/models/subscription-template.schema.d.ts.map +1 -1
  189. package/build/backend/models/subscription-template.schema.js +1 -0
  190. package/build/backend/models/tags.schema.d.ts +4 -0
  191. package/build/backend/models/tags.schema.d.ts.map +1 -0
  192. package/build/backend/models/tags.schema.js +9 -0
  193. package/build/frontend/api/controllers/config-profiles.js +4 -0
  194. package/build/frontend/api/controllers/external-squads.js +4 -0
  195. package/build/frontend/api/controllers/internal-squads.js +4 -0
  196. package/build/frontend/api/controllers/node-plugins.js +6 -2
  197. package/build/frontend/api/controllers/subscription-page-configs.js +4 -0
  198. package/build/frontend/api/controllers/subscription-template.js +4 -0
  199. package/build/frontend/api/routes.js +26 -2
  200. package/build/frontend/commands/config-profiles/index.js +1 -0
  201. package/build/frontend/commands/config-profiles/tags/get-config-profiles-tags.command.js +17 -0
  202. package/build/frontend/commands/config-profiles/tags/index.js +18 -0
  203. package/build/frontend/commands/config-profiles/tags/set-config-profile-tags.command.js +23 -0
  204. package/build/frontend/commands/external-squads/index.js +1 -0
  205. package/build/frontend/commands/external-squads/tags/get-external-squads-tags.command.js +17 -0
  206. package/build/frontend/commands/external-squads/tags/index.js +18 -0
  207. package/build/frontend/commands/external-squads/tags/set-external-squad-tags.command.js +23 -0
  208. package/build/frontend/commands/internal-squads/index.js +1 -0
  209. package/build/frontend/commands/internal-squads/tags/get-internal-squads-tags.command.js +17 -0
  210. package/build/frontend/commands/internal-squads/tags/index.js +18 -0
  211. package/build/frontend/commands/internal-squads/tags/set-internal-squad-tags.command.js +23 -0
  212. package/build/frontend/commands/node-plugins/index.js +1 -0
  213. package/build/frontend/commands/node-plugins/shared-lists/delete-shared-list.command.js +3 -3
  214. package/build/frontend/commands/node-plugins/shared-lists/get-shared-list.command.js +3 -3
  215. package/build/frontend/commands/node-plugins/tags/get-node-plugins-tags.command.js +17 -0
  216. package/build/frontend/commands/node-plugins/tags/index.js +18 -0
  217. package/build/frontend/commands/node-plugins/tags/set-node-plugin-tags.command.js +23 -0
  218. package/build/frontend/commands/subscription-page-configs/index.js +1 -0
  219. package/build/frontend/commands/subscription-page-configs/tags/get-subpage-configs-tags.command.js +17 -0
  220. package/build/frontend/commands/subscription-page-configs/tags/index.js +18 -0
  221. package/build/frontend/commands/subscription-page-configs/tags/set-subpage-config-tags.command.js +23 -0
  222. package/build/frontend/commands/subscription-template/index.js +1 -0
  223. package/build/frontend/commands/subscription-template/tags/get-subscription-templates-tags.command.js +17 -0
  224. package/build/frontend/commands/subscription-template/tags/index.js +18 -0
  225. package/build/frontend/commands/subscription-template/tags/set-subscription-template-tags.command.js +23 -0
  226. package/build/frontend/constants/errors/errors.js +10 -0
  227. package/build/frontend/models/config-profile.schema.js +3 -4
  228. package/build/frontend/models/external-squad.schema.js +1 -0
  229. package/build/frontend/models/index.js +1 -0
  230. package/build/frontend/models/internal-squad.schema.js +3 -4
  231. package/build/frontend/models/node-plugin.schema.js +1 -0
  232. package/build/frontend/models/subscripion-page-config.schema.js +1 -0
  233. package/build/frontend/models/subscription-template.schema.js +1 -0
  234. package/build/frontend/models/tags.schema.js +9 -0
  235. package/package.json +1 -1
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./get-node-plugins-tags.command"), exports);
18
+ __exportStar(require("./set-node-plugin-tags.command"), exports);
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SetNodePluginTagsCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const api_1 = require("../../../api");
6
+ const constants_1 = require("../../../constants");
7
+ const models_1 = require("../../../models");
8
+ var SetNodePluginTagsCommand;
9
+ (function (SetNodePluginTagsCommand) {
10
+ SetNodePluginTagsCommand.url = api_1.REST_API.NODE_PLUGINS.TAGS.SET;
11
+ SetNodePluginTagsCommand.TSQ_url = SetNodePluginTagsCommand.url;
12
+ SetNodePluginTagsCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.NODE_PLUGINS_ROUTES.TAGS.SET, 'patch', 'Set tags of Node Plugin', { scope: 'set-tags', kind: 'write' });
13
+ SetNodePluginTagsCommand.RequestBodySchema = zod_1.z.object({
14
+ uuid: zod_1.z.uuid(),
15
+ tags: models_1.TagsSchema,
16
+ });
17
+ SetNodePluginTagsCommand.ResponseSchema = zod_1.z.object({
18
+ response: zod_1.z.object({
19
+ uuid: zod_1.z.uuid(),
20
+ tags: zod_1.z.array(zod_1.z.string()),
21
+ }),
22
+ });
23
+ })(SetNodePluginTagsCommand || (exports.SetNodePluginTagsCommand = SetNodePluginTagsCommand = {}));
@@ -20,3 +20,4 @@ __exportStar(require("./delete-subpage-config.command"), exports);
20
20
  __exportStar(require("./get-subpage-config.command"), exports);
21
21
  __exportStar(require("./get-subpage-configs.command"), exports);
22
22
  __exportStar(require("./update-subpage-config.command"), exports);
23
+ __exportStar(require("./tags"), exports);
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetSubpageConfigsTagsCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const api_1 = require("../../../api");
6
+ const constants_1 = require("../../../constants");
7
+ var GetSubpageConfigsTagsCommand;
8
+ (function (GetSubpageConfigsTagsCommand) {
9
+ GetSubpageConfigsTagsCommand.url = api_1.REST_API.SUBSCRIPTION_PAGE_CONFIGS.TAGS.GET;
10
+ GetSubpageConfigsTagsCommand.TSQ_url = GetSubpageConfigsTagsCommand.url;
11
+ GetSubpageConfigsTagsCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.SUBSCRIPTION_PAGE_CONFIGS_ROUTES.TAGS.GET, 'get', 'Get tags of Subpage Configs', { scope: 'list-tags', kind: 'read' });
12
+ GetSubpageConfigsTagsCommand.ResponseSchema = zod_1.z.object({
13
+ response: zod_1.z.object({
14
+ tags: zod_1.z.array(zod_1.z.string()),
15
+ }),
16
+ });
17
+ })(GetSubpageConfigsTagsCommand || (exports.GetSubpageConfigsTagsCommand = GetSubpageConfigsTagsCommand = {}));
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./get-subpage-configs-tags.command"), exports);
18
+ __exportStar(require("./set-subpage-config-tags.command"), exports);
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SetSubpageConfigTagsCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const api_1 = require("../../../api");
6
+ const constants_1 = require("../../../constants");
7
+ const models_1 = require("../../../models");
8
+ var SetSubpageConfigTagsCommand;
9
+ (function (SetSubpageConfigTagsCommand) {
10
+ SetSubpageConfigTagsCommand.url = api_1.REST_API.SUBSCRIPTION_PAGE_CONFIGS.TAGS.SET;
11
+ SetSubpageConfigTagsCommand.TSQ_url = SetSubpageConfigTagsCommand.url;
12
+ SetSubpageConfigTagsCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.SUBSCRIPTION_PAGE_CONFIGS_ROUTES.TAGS.SET, 'patch', 'Set tags of Subpage Config', { scope: 'set-tags', kind: 'write' });
13
+ SetSubpageConfigTagsCommand.RequestBodySchema = zod_1.z.object({
14
+ uuid: zod_1.z.uuid(),
15
+ tags: models_1.TagsSchema,
16
+ });
17
+ SetSubpageConfigTagsCommand.ResponseSchema = zod_1.z.object({
18
+ response: zod_1.z.object({
19
+ uuid: zod_1.z.uuid(),
20
+ tags: zod_1.z.array(zod_1.z.string()),
21
+ }),
22
+ });
23
+ })(SetSubpageConfigTagsCommand || (exports.SetSubpageConfigTagsCommand = SetSubpageConfigTagsCommand = {}));
@@ -20,3 +20,4 @@ __exportStar(require("./delete-subscription-template.command"), exports);
20
20
  __exportStar(require("./get-template.command"), exports);
21
21
  __exportStar(require("./get-templates.command"), exports);
22
22
  __exportStar(require("./update-template.command"), exports);
23
+ __exportStar(require("./tags"), exports);
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetSubscriptionTemplatesTagsCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const api_1 = require("../../../api");
6
+ const constants_1 = require("../../../constants");
7
+ var GetSubscriptionTemplatesTagsCommand;
8
+ (function (GetSubscriptionTemplatesTagsCommand) {
9
+ GetSubscriptionTemplatesTagsCommand.url = api_1.REST_API.SUBSCRIPTION_TEMPLATE.TAGS.GET;
10
+ GetSubscriptionTemplatesTagsCommand.TSQ_url = GetSubscriptionTemplatesTagsCommand.url;
11
+ GetSubscriptionTemplatesTagsCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.SUBSCRIPTION_TEMPLATE_ROUTES.TAGS.GET, 'get', 'Get tags of Subscription Templates', { scope: 'list-tags', kind: 'read' });
12
+ GetSubscriptionTemplatesTagsCommand.ResponseSchema = zod_1.z.object({
13
+ response: zod_1.z.object({
14
+ tags: zod_1.z.array(zod_1.z.string()),
15
+ }),
16
+ });
17
+ })(GetSubscriptionTemplatesTagsCommand || (exports.GetSubscriptionTemplatesTagsCommand = GetSubscriptionTemplatesTagsCommand = {}));
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./get-subscription-templates-tags.command"), exports);
18
+ __exportStar(require("./set-subscription-template-tags.command"), exports);
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SetSubscriptionTemplateTagsCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const api_1 = require("../../../api");
6
+ const constants_1 = require("../../../constants");
7
+ const models_1 = require("../../../models");
8
+ var SetSubscriptionTemplateTagsCommand;
9
+ (function (SetSubscriptionTemplateTagsCommand) {
10
+ SetSubscriptionTemplateTagsCommand.url = api_1.REST_API.SUBSCRIPTION_TEMPLATE.TAGS.SET;
11
+ SetSubscriptionTemplateTagsCommand.TSQ_url = SetSubscriptionTemplateTagsCommand.url;
12
+ SetSubscriptionTemplateTagsCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.SUBSCRIPTION_TEMPLATE_ROUTES.TAGS.SET, 'patch', 'Set tags of Subscription Template', { scope: 'set-tags', kind: 'write' });
13
+ SetSubscriptionTemplateTagsCommand.RequestBodySchema = zod_1.z.object({
14
+ uuid: zod_1.z.uuid(),
15
+ tags: models_1.TagsSchema,
16
+ });
17
+ SetSubscriptionTemplateTagsCommand.ResponseSchema = zod_1.z.object({
18
+ response: zod_1.z.object({
19
+ uuid: zod_1.z.uuid(),
20
+ tags: zod_1.z.array(zod_1.z.string()),
21
+ }),
22
+ });
23
+ })(SetSubscriptionTemplateTagsCommand || (exports.SetSubscriptionTemplateTagsCommand = SetSubscriptionTemplateTagsCommand = {}));
@@ -1280,4 +1280,14 @@ exports.ERRORS = {
1280
1280
  message: 'Create SSH ticket error',
1281
1281
  httpCode: 500,
1282
1282
  },
1283
+ GET_ENTITY_TAGS_ERROR: {
1284
+ code: 'A256',
1285
+ message: 'Get tags error',
1286
+ httpCode: 500,
1287
+ },
1288
+ SET_ENTITY_TAGS_ERROR: {
1289
+ code: 'A257',
1290
+ message: 'Set tags error',
1291
+ httpCode: 500,
1292
+ },
1283
1293
  };
@@ -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.9",
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",