@remnawave/backend-contract 3.2.2 → 3.2.3

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 (31) hide show
  1. package/build/backend/api/controllers/snippets.d.ts +3 -0
  2. package/build/backend/api/controllers/snippets.d.ts.map +1 -1
  3. package/build/backend/api/controllers/snippets.js +4 -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/snippets/actions/index.d.ts +2 -0
  8. package/build/backend/commands/snippets/actions/index.d.ts.map +1 -0
  9. package/build/backend/commands/snippets/actions/index.js +17 -0
  10. package/build/backend/commands/snippets/actions/sync.command.d.ts +11 -0
  11. package/build/backend/commands/snippets/actions/sync.command.d.ts.map +1 -0
  12. package/build/backend/commands/snippets/actions/sync.command.js +19 -0
  13. package/build/backend/commands/snippets/index.d.ts +1 -0
  14. package/build/backend/commands/snippets/index.d.ts.map +1 -1
  15. package/build/backend/commands/snippets/index.js +1 -0
  16. package/build/backend/commands/subscriptions/get-by/get-raw-subscription-by-short-uuid.command.d.ts +1 -0
  17. package/build/backend/commands/subscriptions/get-by/get-raw-subscription-by-short-uuid.command.d.ts.map +1 -1
  18. package/build/backend/constants/errors/errors.d.ts +5 -0
  19. package/build/backend/constants/errors/errors.d.ts.map +1 -1
  20. package/build/backend/constants/errors/errors.js +5 -0
  21. package/build/backend/models/resolved-proxy-config.schema.d.ts +3 -0
  22. package/build/backend/models/resolved-proxy-config.schema.d.ts.map +1 -1
  23. package/build/backend/models/resolved-proxy-config.schema.js +1 -0
  24. package/build/frontend/api/controllers/snippets.js +4 -0
  25. package/build/frontend/api/routes.js +3 -0
  26. package/build/frontend/commands/snippets/actions/index.js +17 -0
  27. package/build/frontend/commands/snippets/actions/sync.command.js +19 -0
  28. package/build/frontend/commands/snippets/index.js +1 -0
  29. package/build/frontend/constants/errors/errors.js +5 -0
  30. package/build/frontend/models/resolved-proxy-config.schema.js +1 -0
  31. package/package.json +1 -1
@@ -4,5 +4,8 @@ export declare const SNIPPETS_ROUTES: {
4
4
  readonly CREATE: "";
5
5
  readonly UPDATE: "";
6
6
  readonly DELETE: "";
7
+ readonly ACTIONS: {
8
+ readonly SYNC: "actions/sync";
9
+ };
7
10
  };
8
11
  //# sourceMappingURL=snippets.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"snippets.d.ts","sourceRoot":"","sources":["../../../../api/controllers/snippets.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,EAAG,UAAmB,CAAC;AAEvD,eAAO,MAAM,eAAe;;;;;CAKlB,CAAC"}
1
+ {"version":3,"file":"snippets.d.ts","sourceRoot":"","sources":["../../../../api/controllers/snippets.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,EAAG,UAAmB,CAAC;AAIvD,eAAO,MAAM,eAAe;;;;;;;;CASlB,CAAC"}
@@ -2,9 +2,13 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SNIPPETS_ROUTES = exports.SNIPPETS_CONTROLLER = void 0;
4
4
  exports.SNIPPETS_CONTROLLER = 'snippets';
5
+ const ACTIONS_ROUTE = 'actions';
5
6
  exports.SNIPPETS_ROUTES = {
6
7
  GET: '', // Get list of all snippets // get
7
8
  CREATE: '', // Create new snippet // post
8
9
  UPDATE: '', // Update snippet by name // patch
9
10
  DELETE: '', // Delete snippet by name // delete
11
+ ACTIONS: {
12
+ SYNC: `${ACTIONS_ROUTE}/sync`, // post
13
+ },
10
14
  };
@@ -231,6 +231,9 @@ export declare const REST_API: {
231
231
  readonly CREATE: "/api/snippets/";
232
232
  readonly UPDATE: "/api/snippets/";
233
233
  readonly DELETE: "/api/snippets/";
234
+ readonly ACTIONS: {
235
+ readonly SYNC: "/api/snippets/actions/sync";
236
+ };
234
237
  };
235
238
  readonly EXTERNAL_SQUADS: {
236
239
  readonly GET: "/api/external-squads/";
@@ -1 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6BAsCT,MAAM;;gCAKH,MAAM;;;;;;;;;;;;;;iDAiBW,MAAM;;;;;;;;;0CAYb,MAAM;6CAIH,MAAM;iDAIF,MAAM;kCAIrB,MAAM;;;6CAMK,MAAM;;0DAKO,MAAM;;;;;;qCAS3B,MAAM;gCAIX,MAAM;sDAIgB,MAAM;6DAIC,MAAM;;;;;;;;;;qCAa9B,MAAM;gCAIX,MAAM;0CAII,MAAM;;uCAKT,MAAM;0CAEH,MAAM;4CAEJ,MAAM;+CAEH,MAAM;;;;;;;;;;yCAWZ,MAAM;8CAED,MAAM;;;;6CAMP,MAAM;;;gDAKH,MAAM;;;;;;;;;;;;;;;;;;;qCAqBjB,MAAM;gCAIX,MAAM;;uCAKC,MAAM;0CAEH,MAAM;;;;;;;;;;;6BAYnB,MAAM;;;gCAIH,MAAM;;;;;;;;6BAST,MAAM;;;gCAIH,MAAM;;;;;;;;;;;;;;;;;uCAkBC,MAAM;;;;;yCAMJ,MAAM;;;uCAIR,MAAM;6CAEA,MAAM,UAAU,MAAM;;;;+CAKpB,MAAM;qDAEA,MAAM;6CAEd,MAAM;qDAEE,MAAM;;;;;iCAM1B,MAAM;oCAEH,MAAM;;;mCAIP,MAAM;sCAEH,MAAM;;;CAIzB,CAAC"}
@@ -268,6 +268,9 @@ exports.REST_API = {
268
268
  CREATE: `${exports.ROOT}/${CONTROLLERS.SNIPPETS_CONTROLLER}/${CONTROLLERS.SNIPPETS_ROUTES.CREATE}`,
269
269
  UPDATE: `${exports.ROOT}/${CONTROLLERS.SNIPPETS_CONTROLLER}/${CONTROLLERS.SNIPPETS_ROUTES.UPDATE}`,
270
270
  DELETE: `${exports.ROOT}/${CONTROLLERS.SNIPPETS_CONTROLLER}/${CONTROLLERS.SNIPPETS_ROUTES.DELETE}`,
271
+ ACTIONS: {
272
+ SYNC: `${exports.ROOT}/${CONTROLLERS.SNIPPETS_CONTROLLER}/${CONTROLLERS.SNIPPETS_ROUTES.ACTIONS.SYNC}`,
273
+ },
271
274
  },
272
275
  EXTERNAL_SQUADS: {
273
276
  GET: `${exports.ROOT}/${CONTROLLERS.EXTERNAL_SQUADS_CONTROLLER}/${CONTROLLERS.EXTERNAL_SQUADS_ROUTES.GET}`,
@@ -0,0 +1,2 @@
1
+ export * from './sync.command';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../commands/snippets/actions/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC"}
@@ -0,0 +1,17 @@
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("./sync.command"), exports);
@@ -0,0 +1,11 @@
1
+ import { z } from 'zod';
2
+ export declare namespace SyncSnippetCommand {
3
+ const url: "/api/snippets/actions/sync";
4
+ const TSQ_url: "/api/snippets/actions/sync";
5
+ const endpointDetails: import("../../../constants").EndpointDetails;
6
+ const RequestBodySchema: z.ZodObject<{
7
+ name: z.ZodString;
8
+ }, z.core.$strip>;
9
+ type RequestBody = z.infer<typeof RequestBodySchema>;
10
+ }
11
+ //# sourceMappingURL=sync.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sync.command.d.ts","sourceRoot":"","sources":["../../../../../commands/snippets/actions/sync.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,kBAAkB,CAAC;IACzB,MAAM,GAAG,8BAAiC,CAAC;IAC3C,MAAM,OAAO,8BAAM,CAAC;IAEpB,MAAM,eAAe,8CAM3B,CAAC;IAEK,MAAM,iBAAiB;;qBAS5B,CAAC;IAEH,KAAY,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;CAC/D"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SyncSnippetCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const api_1 = require("../../../api");
6
+ const constants_1 = require("../../../constants");
7
+ var SyncSnippetCommand;
8
+ (function (SyncSnippetCommand) {
9
+ SyncSnippetCommand.url = api_1.REST_API.SNIPPETS.ACTIONS.SYNC;
10
+ SyncSnippetCommand.TSQ_url = SyncSnippetCommand.url;
11
+ SyncSnippetCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.SNIPPETS_ROUTES.ACTIONS.SYNC, 'post', 'Sync snippet to affected config profiles', { scope: 'sync', kind: 'write' }, 'Trigger the sync of a snippet to all config profiles that reference it. Nodes which use affected config profiles will be restarted.');
12
+ SyncSnippetCommand.RequestBodySchema = zod_1.z.object({
13
+ name: zod_1.z
14
+ .string()
15
+ .min(2, 'Name must be at least 2 characters')
16
+ .max(255, 'Name must be less than 255 characters')
17
+ .regex(/^[A-Za-z0-9_\s-]+$/, 'Name can only contain letters, numbers, underscores, dashes and spaces'),
18
+ });
19
+ })(SyncSnippetCommand || (exports.SyncSnippetCommand = SyncSnippetCommand = {}));
@@ -1,3 +1,4 @@
1
+ export * from './actions';
1
2
  export * from './create-snippet.command';
2
3
  export * from './delete-snippet.command';
3
4
  export * from './get-snippets.command';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commands/snippets/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commands/snippets/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC"}
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./actions"), exports);
17
18
  __exportStar(require("./create-snippet.command"), exports);
18
19
  __exportStar(require("./delete-snippet.command"), exports);
19
20
  __exportStar(require("./get-snippets.command"), exports);
@@ -171,6 +171,7 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
171
171
  echConfigList: z.ZodNullable<z.ZodString>;
172
172
  echForceQuery: z.ZodNullable<z.ZodString>;
173
173
  echSockopt: z.ZodNullable<z.ZodUnknown>;
174
+ cipherSuites: z.ZodNullable<z.ZodString>;
174
175
  }, z.core.$strip>, z.ZodObject<{
175
176
  fingerprint: z.ZodString;
176
177
  publicKey: z.ZodString;
@@ -1 +1 @@
1
- {"version":3,"file":"get-raw-subscription-by-short-uuid.command.d.ts","sourceRoot":"","sources":["../../../../../commands/subscriptions/get-by/get-raw-subscription-by-short-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,oCAAoC,CAAC;IAC3C,MAAM,GAAG,+BAA+C,CAAC;IACzD,MAAM,OAAO,QAAoB,CAAC;IAElC,MAAM,eAAe,8CAK3B,CAAC;IAEK,MAAM,kBAAkB;;qBAE7B,CAAC;IAEI,MAAM,kBAAkB;;qBAM7B,CAAC;IAEI,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAoBzB,CAAC;IAEH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAC9D,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAC9D,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"get-raw-subscription-by-short-uuid.command.d.ts","sourceRoot":"","sources":["../../../../../commands/subscriptions/get-by/get-raw-subscription-by-short-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,oCAAoC,CAAC;IAC3C,MAAM,GAAG,+BAA+C,CAAC;IACzD,MAAM,OAAO,QAAoB,CAAC;IAElC,MAAM,eAAe,8CAK3B,CAAC;IAEK,MAAM,kBAAkB;;qBAE7B,CAAC;IAEI,MAAM,kBAAkB;;qBAM7B,CAAC;IAEI,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAoBzB,CAAC;IAEH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAC9D,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAC9D,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -1214,5 +1214,10 @@ export declare const ERRORS: {
1214
1214
  readonly message: "Get stats digest error";
1215
1215
  readonly httpCode: 500;
1216
1216
  };
1217
+ readonly SYNC_SNIPPET_ERROR: {
1218
+ readonly code: "A237";
1219
+ readonly message: "Sync snippet error";
1220
+ readonly httpCode: 500;
1221
+ };
1217
1222
  };
1218
1223
  //# sourceMappingURL=errors.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../constants/errors/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAwJY,MAAM;;;;;;;;;;wCAUN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA4IN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAkDN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoC3B,CAAC"}
@@ -1185,4 +1185,9 @@ exports.ERRORS = {
1185
1185
  message: 'Get stats digest error',
1186
1186
  httpCode: 500,
1187
1187
  },
1188
+ SYNC_SNIPPET_ERROR: {
1189
+ code: 'A237',
1190
+ message: 'Sync snippet error',
1191
+ httpCode: 500,
1192
+ },
1188
1193
  };
@@ -85,6 +85,7 @@ export declare const TlsSecurityOptionsSchema: z.ZodObject<{
85
85
  echConfigList: z.ZodNullable<z.ZodString>;
86
86
  echForceQuery: z.ZodNullable<z.ZodString>;
87
87
  echSockopt: z.ZodNullable<z.ZodUnknown>;
88
+ cipherSuites: z.ZodNullable<z.ZodString>;
88
89
  }, z.core.$strip>;
89
90
  export declare const RealitySecurityOptionsSchema: z.ZodObject<{
90
91
  fingerprint: z.ZodString;
@@ -206,6 +207,7 @@ export declare const SecurityVariantSchema: z.ZodDiscriminatedUnion<[z.ZodObject
206
207
  echConfigList: z.ZodNullable<z.ZodString>;
207
208
  echForceQuery: z.ZodNullable<z.ZodString>;
208
209
  echSockopt: z.ZodNullable<z.ZodUnknown>;
210
+ cipherSuites: z.ZodNullable<z.ZodString>;
209
211
  }, z.core.$strip>;
210
212
  }, z.core.$strip>, z.ZodObject<{
211
213
  security: z.ZodLiteral<"reality">;
@@ -342,6 +344,7 @@ export declare const ResolvedProxyConfigSchema: z.ZodObject<{
342
344
  echConfigList: z.ZodNullable<z.ZodString>;
343
345
  echForceQuery: z.ZodNullable<z.ZodString>;
344
346
  echSockopt: z.ZodNullable<z.ZodUnknown>;
347
+ cipherSuites: z.ZodNullable<z.ZodString>;
345
348
  }, z.core.$strip>, z.ZodObject<{
346
349
  fingerprint: z.ZodString;
347
350
  publicKey: z.ZodString;
@@ -1 +1 @@
1
- {"version":3,"file":"resolved-proxy-config.schema.d.ts","sourceRoot":"","sources":["../../../models/resolved-proxy-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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA2CpC,CAAC"}
@@ -85,6 +85,7 @@ exports.TlsSecurityOptionsSchema = zod_1.z.object({
85
85
  echConfigList: zod_1.z.string().nullable(),
86
86
  echForceQuery: zod_1.z.string().nullable(),
87
87
  echSockopt: zod_1.z.nullable(zod_1.z.unknown()),
88
+ cipherSuites: zod_1.z.string().nullable(),
88
89
  });
89
90
  exports.RealitySecurityOptionsSchema = zod_1.z.object({
90
91
  fingerprint: zod_1.z.string(),
@@ -2,9 +2,13 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SNIPPETS_ROUTES = exports.SNIPPETS_CONTROLLER = void 0;
4
4
  exports.SNIPPETS_CONTROLLER = 'snippets';
5
+ const ACTIONS_ROUTE = 'actions';
5
6
  exports.SNIPPETS_ROUTES = {
6
7
  GET: '', // Get list of all snippets // get
7
8
  CREATE: '', // Create new snippet // post
8
9
  UPDATE: '', // Update snippet by name // patch
9
10
  DELETE: '', // Delete snippet by name // delete
11
+ ACTIONS: {
12
+ SYNC: `${ACTIONS_ROUTE}/sync`, // post
13
+ },
10
14
  };
@@ -268,6 +268,9 @@ exports.REST_API = {
268
268
  CREATE: `${exports.ROOT}/${CONTROLLERS.SNIPPETS_CONTROLLER}/${CONTROLLERS.SNIPPETS_ROUTES.CREATE}`,
269
269
  UPDATE: `${exports.ROOT}/${CONTROLLERS.SNIPPETS_CONTROLLER}/${CONTROLLERS.SNIPPETS_ROUTES.UPDATE}`,
270
270
  DELETE: `${exports.ROOT}/${CONTROLLERS.SNIPPETS_CONTROLLER}/${CONTROLLERS.SNIPPETS_ROUTES.DELETE}`,
271
+ ACTIONS: {
272
+ SYNC: `${exports.ROOT}/${CONTROLLERS.SNIPPETS_CONTROLLER}/${CONTROLLERS.SNIPPETS_ROUTES.ACTIONS.SYNC}`,
273
+ },
271
274
  },
272
275
  EXTERNAL_SQUADS: {
273
276
  GET: `${exports.ROOT}/${CONTROLLERS.EXTERNAL_SQUADS_CONTROLLER}/${CONTROLLERS.EXTERNAL_SQUADS_ROUTES.GET}`,
@@ -0,0 +1,17 @@
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("./sync.command"), exports);
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SyncSnippetCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const api_1 = require("../../../api");
6
+ const constants_1 = require("../../../constants");
7
+ var SyncSnippetCommand;
8
+ (function (SyncSnippetCommand) {
9
+ SyncSnippetCommand.url = api_1.REST_API.SNIPPETS.ACTIONS.SYNC;
10
+ SyncSnippetCommand.TSQ_url = SyncSnippetCommand.url;
11
+ SyncSnippetCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.SNIPPETS_ROUTES.ACTIONS.SYNC, 'post', 'Sync snippet to affected config profiles', { scope: 'sync', kind: 'write' }, 'Trigger the sync of a snippet to all config profiles that reference it. Nodes which use affected config profiles will be restarted.');
12
+ SyncSnippetCommand.RequestBodySchema = zod_1.z.object({
13
+ name: zod_1.z
14
+ .string()
15
+ .min(2, 'Name must be at least 2 characters')
16
+ .max(255, 'Name must be less than 255 characters')
17
+ .regex(/^[A-Za-z0-9_\s-]+$/, 'Name can only contain letters, numbers, underscores, dashes and spaces'),
18
+ });
19
+ })(SyncSnippetCommand || (exports.SyncSnippetCommand = SyncSnippetCommand = {}));
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./actions"), exports);
17
18
  __exportStar(require("./create-snippet.command"), exports);
18
19
  __exportStar(require("./delete-snippet.command"), exports);
19
20
  __exportStar(require("./get-snippets.command"), exports);
@@ -1185,4 +1185,9 @@ exports.ERRORS = {
1185
1185
  message: 'Get stats digest error',
1186
1186
  httpCode: 500,
1187
1187
  },
1188
+ SYNC_SNIPPET_ERROR: {
1189
+ code: 'A237',
1190
+ message: 'Sync snippet error',
1191
+ httpCode: 500,
1192
+ },
1188
1193
  };
@@ -85,6 +85,7 @@ exports.TlsSecurityOptionsSchema = zod_1.z.object({
85
85
  echConfigList: zod_1.z.string().nullable(),
86
86
  echForceQuery: zod_1.z.string().nullable(),
87
87
  echSockopt: zod_1.z.nullable(zod_1.z.unknown()),
88
+ cipherSuites: zod_1.z.string().nullable(),
88
89
  });
89
90
  exports.RealitySecurityOptionsSchema = zod_1.z.object({
90
91
  fingerprint: zod_1.z.string(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/backend-contract",
3
- "version": "3.2.2",
3
+ "version": "3.2.3",
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",