@remnawave/backend-contract 2.2.12 → 2.2.13

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 (73) hide show
  1. package/build/backend/api/controllers/index.d.ts +1 -0
  2. package/build/backend/api/controllers/index.d.ts.map +1 -1
  3. package/build/backend/api/controllers/index.js +1 -0
  4. package/build/backend/api/controllers/remnawave-settings.d.ts +6 -0
  5. package/build/backend/api/controllers/remnawave-settings.d.ts.map +1 -0
  6. package/build/backend/api/controllers/remnawave-settings.js +8 -0
  7. package/build/backend/api/controllers-info.d.ts +4 -0
  8. package/build/backend/api/controllers-info.d.ts.map +1 -1
  9. package/build/backend/api/controllers-info.js +4 -0
  10. package/build/backend/api/routes.d.ts +4 -0
  11. package/build/backend/api/routes.d.ts.map +1 -1
  12. package/build/backend/api/routes.js +4 -0
  13. package/build/backend/commands/auth/passkey/get-authentication-options.command.d.ts +2 -3
  14. package/build/backend/commands/auth/passkey/get-authentication-options.command.d.ts.map +1 -1
  15. package/build/backend/commands/auth/passkey/get-authentication-options.command.js +1 -1
  16. package/build/backend/commands/auth/passkey/get-registration-options.command.d.ts +2 -3
  17. package/build/backend/commands/auth/passkey/get-registration-options.command.d.ts.map +1 -1
  18. package/build/backend/commands/auth/passkey/get-registration-options.command.js +1 -1
  19. package/build/backend/commands/auth/passkey/verify-authentication.command.d.ts +2 -3
  20. package/build/backend/commands/auth/passkey/verify-authentication.command.d.ts.map +1 -1
  21. package/build/backend/commands/auth/passkey/verify-authentication.command.js +1 -1
  22. package/build/backend/commands/auth/passkey/verify-registration.command.d.ts +2 -8
  23. package/build/backend/commands/auth/passkey/verify-registration.command.d.ts.map +1 -1
  24. package/build/backend/commands/auth/passkey/verify-registration.command.js +1 -2
  25. package/build/backend/commands/index.d.ts +1 -0
  26. package/build/backend/commands/index.d.ts.map +1 -1
  27. package/build/backend/commands/index.js +1 -0
  28. package/build/backend/commands/remnawave-settings/get-remnawave-settings.command.d.ts +53 -0
  29. package/build/backend/commands/remnawave-settings/get-remnawave-settings.command.d.ts.map +1 -0
  30. package/build/backend/commands/remnawave-settings/get-remnawave-settings.command.js +16 -0
  31. package/build/backend/commands/remnawave-settings/index.d.ts +3 -0
  32. package/build/backend/commands/remnawave-settings/index.d.ts.map +1 -0
  33. package/build/backend/commands/remnawave-settings/index.js +18 -0
  34. package/build/backend/commands/remnawave-settings/update-remnawave-settings.command.d.ts +81 -0
  35. package/build/backend/commands/remnawave-settings/update-remnawave-settings.command.d.ts.map +1 -0
  36. package/build/backend/commands/remnawave-settings/update-remnawave-settings.command.js +19 -0
  37. package/build/backend/constants/cache-keys/cache-keys.constants.d.ts +4 -0
  38. package/build/backend/constants/cache-keys/cache-keys.constants.d.ts.map +1 -1
  39. package/build/backend/constants/cache-keys/cache-keys.constants.js +5 -1
  40. package/build/backend/constants/errors/errors.d.ts +10 -0
  41. package/build/backend/constants/errors/errors.d.ts.map +1 -1
  42. package/build/backend/constants/errors/errors.js +10 -0
  43. package/build/backend/models/index.d.ts +1 -0
  44. package/build/backend/models/index.d.ts.map +1 -1
  45. package/build/backend/models/index.js +1 -0
  46. package/build/backend/models/remnawave-settings/index.d.ts +3 -0
  47. package/build/backend/models/remnawave-settings/index.d.ts.map +1 -0
  48. package/build/backend/models/remnawave-settings/index.js +18 -0
  49. package/build/backend/models/remnawave-settings/passkey-settings.schema.d.ts +15 -0
  50. package/build/backend/models/remnawave-settings/passkey-settings.schema.d.ts.map +1 -0
  51. package/build/backend/models/remnawave-settings/passkey-settings.schema.js +12 -0
  52. package/build/backend/models/remnawave-settings/remnawave-settings.schema.d.ts +32 -0
  53. package/build/backend/models/remnawave-settings/remnawave-settings.schema.d.ts.map +1 -0
  54. package/build/backend/models/remnawave-settings/remnawave-settings.schema.js +8 -0
  55. package/build/frontend/api/controllers/index.js +1 -0
  56. package/build/frontend/api/controllers/remnawave-settings.js +8 -0
  57. package/build/frontend/api/controllers-info.js +4 -0
  58. package/build/frontend/api/routes.js +4 -0
  59. package/build/frontend/commands/auth/passkey/get-authentication-options.command.js +1 -1
  60. package/build/frontend/commands/auth/passkey/get-registration-options.command.js +1 -1
  61. package/build/frontend/commands/auth/passkey/verify-authentication.command.js +1 -1
  62. package/build/frontend/commands/auth/passkey/verify-registration.command.js +1 -2
  63. package/build/frontend/commands/index.js +1 -0
  64. package/build/frontend/commands/remnawave-settings/get-remnawave-settings.command.js +16 -0
  65. package/build/frontend/commands/remnawave-settings/index.js +18 -0
  66. package/build/frontend/commands/remnawave-settings/update-remnawave-settings.command.js +19 -0
  67. package/build/frontend/constants/cache-keys/cache-keys.constants.js +5 -1
  68. package/build/frontend/constants/errors/errors.js +10 -0
  69. package/build/frontend/models/index.js +1 -0
  70. package/build/frontend/models/remnawave-settings/index.js +18 -0
  71. package/build/frontend/models/remnawave-settings/passkey-settings.schema.js +12 -0
  72. package/build/frontend/models/remnawave-settings/remnawave-settings.schema.js +8 -0
  73. package/package.json +1 -1
@@ -8,6 +8,7 @@ export * from './infra-billing';
8
8
  export * from './internal-squads';
9
9
  export * from './keygen';
10
10
  export * from './nodes';
11
+ export * from './remnawave-settings';
11
12
  export * from './snippets';
12
13
  export * from './subscription';
13
14
  export * from './subscription-request-history';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../api/controllers/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../api/controllers/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}
@@ -24,6 +24,7 @@ __exportStar(require("./infra-billing"), exports);
24
24
  __exportStar(require("./internal-squads"), exports);
25
25
  __exportStar(require("./keygen"), exports);
26
26
  __exportStar(require("./nodes"), exports);
27
+ __exportStar(require("./remnawave-settings"), exports);
27
28
  __exportStar(require("./snippets"), exports);
28
29
  __exportStar(require("./subscription"), exports);
29
30
  __exportStar(require("./subscription-request-history"), exports);
@@ -0,0 +1,6 @@
1
+ export declare const REMNAAWAVE_SETTINGS_CONTROLLER: "remnawave-settings";
2
+ export declare const REMNAAWAVE_SETTINGS_ROUTES: {
3
+ readonly GET: "";
4
+ readonly UPDATE: "";
5
+ };
6
+ //# sourceMappingURL=remnawave-settings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"remnawave-settings.d.ts","sourceRoot":"","sources":["../../../../api/controllers/remnawave-settings.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,8BAA8B,EAAG,oBAA6B,CAAC;AAE5E,eAAO,MAAM,0BAA0B;;;CAG7B,CAAC"}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.REMNAAWAVE_SETTINGS_ROUTES = exports.REMNAAWAVE_SETTINGS_CONTROLLER = void 0;
4
+ exports.REMNAAWAVE_SETTINGS_CONTROLLER = 'remnawave-settings';
5
+ exports.REMNAAWAVE_SETTINGS_ROUTES = {
6
+ GET: '', // get
7
+ UPDATE: '', // patch
8
+ };
@@ -87,5 +87,9 @@ export declare const CONTROLLERS_INFO: {
87
87
  readonly tag: "Snippets Controller";
88
88
  readonly description: "";
89
89
  };
90
+ readonly REMNAAWAVE_SETTINGS: {
91
+ readonly tag: "Remnawave Settings Controller";
92
+ readonly description: "";
93
+ };
90
94
  };
91
95
  //# sourceMappingURL=controllers-info.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"controllers-info.d.ts","sourceRoot":"","sources":["../../../api/controllers-info.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4FnB,CAAC"}
1
+ {"version":3,"file":"controllers-info.d.ts","sourceRoot":"","sources":["../../../api/controllers-info.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgGnB,CAAC"}
@@ -90,4 +90,8 @@ exports.CONTROLLERS_INFO = {
90
90
  tag: 'Snippets Controller',
91
91
  description: '',
92
92
  },
93
+ REMNAAWAVE_SETTINGS: {
94
+ tag: 'Remnawave Settings Controller',
95
+ description: '',
96
+ },
93
97
  };
@@ -212,5 +212,9 @@ export declare const REST_API: {
212
212
  readonly REMOVE_USERS: (uuid: string) => string;
213
213
  };
214
214
  };
215
+ readonly REMNAAWAVE_SETTINGS: {
216
+ readonly GET: "/api/remnawave-settings/";
217
+ readonly UPDATE: "/api/remnawave-settings/";
218
+ };
215
219
  };
216
220
  //# sourceMappingURL=routes.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../api/routes.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,EAAG,MAAe,CAAC;AACpC,eAAO,MAAM,YAAY,EAAG,UAAmB,CAAC;AAChD,eAAO,MAAM,WAAW,EAAG,SAAkB,CAAC;AAC9C,eAAO,MAAM,cAAc,EAAG,SAAkB,CAAC;AAEjD,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;gCAoBE,MAAM;;;;;;;;;qCAYD,MAAM;;gCAGX,MAAM;;oCAIF,MAAM;qCAIL,MAAM;qCAIN,MAAM;;;;;;iDAUM,MAAM;;;;;;;;gCAWvB,MAAM;qCAGD,MAAM;0CAED,MAAM;sDAEM,MAAM;;qCAMvB,MAAM;oCAIP,MAAM;2CAIC,MAAM;iDAIA,MAAM;;;6CAOV,MAAM;0CAIT,MAAM;2DAIW,MAAM;+CAIlB,MAAM;oCAIjB,MAAM;gCAIV,MAAM;;;;;;;;;;;;;;;gDAmBU,MAAM;;;;;;;kCAWpB,MAAM;0CAEE,MAAM;uCAET,MAAM;;;;;;qCASR,MAAM;gCAEX,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAmCT,MAAM;;gCAKH,MAAM;;;;;;;;;;;mDAca,MAAM;;;;;;;;0CAWf,MAAM;kCAId,MAAM;6CAIK,MAAM;iDAIF,MAAM;;;;;;;qCAUlB,MAAM;gCAIX,MAAM;sDAIgB,MAAM;;;;;;;qCAUvB,MAAM;gCAIX,MAAM;0CAII,MAAM;;uCAKT,MAAM;0CAEH,MAAM;;;;;;;yCASP,MAAM;8CAED,MAAM;;;;6CAMP,MAAM;;;gDAKH,MAAM;;;;;;;;;;;;;;;;qCAiBjB,MAAM;gCAIX,MAAM;;uCAKC,MAAM;0CAEH,MAAM;;;CAI7B,CAAC"}
1
+ {"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../api/routes.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,EAAG,MAAe,CAAC;AACpC,eAAO,MAAM,YAAY,EAAG,UAAmB,CAAC;AAChD,eAAO,MAAM,WAAW,EAAG,SAAkB,CAAC;AAC9C,eAAO,MAAM,cAAc,EAAG,SAAkB,CAAC;AAEjD,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;gCAoBE,MAAM;;;;;;;;;qCAYD,MAAM;;gCAGX,MAAM;;oCAIF,MAAM;qCAIL,MAAM;qCAIN,MAAM;;;;;;iDAUM,MAAM;;;;;;;;gCAWvB,MAAM;qCAGD,MAAM;0CAED,MAAM;sDAEM,MAAM;;qCAMvB,MAAM;oCAIP,MAAM;2CAIC,MAAM;iDAIA,MAAM;;;6CAOV,MAAM;0CAIT,MAAM;2DAIW,MAAM;+CAIlB,MAAM;oCAIjB,MAAM;gCAIV,MAAM;;;;;;;;;;;;;;;gDAmBU,MAAM;;;;;;;kCAWpB,MAAM;0CAEE,MAAM;uCAET,MAAM;;;;;;qCASR,MAAM;gCAEX,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAmCT,MAAM;;gCAKH,MAAM;;;;;;;;;;;mDAca,MAAM;;;;;;;;0CAWf,MAAM;kCAId,MAAM;6CAIK,MAAM;iDAIF,MAAM;;;;;;;qCAUlB,MAAM;gCAIX,MAAM;sDAIgB,MAAM;;;;;;;qCAUvB,MAAM;gCAIX,MAAM;0CAII,MAAM;;uCAKT,MAAM;0CAEH,MAAM;;;;;;;yCASP,MAAM;8CAED,MAAM;;;;6CAMP,MAAM;;;gDAKH,MAAM;;;;;;;;;;;;;;;;qCAiBjB,MAAM;gCAIX,MAAM;;uCAKC,MAAM;0CAEH,MAAM;;;;;;;CAQ7B,CAAC"}
@@ -249,4 +249,8 @@ exports.REST_API = {
249
249
  REMOVE_USERS: (uuid) => `${exports.ROOT}/${CONTROLLERS.EXTERNAL_SQUADS_CONTROLLER}/${CONTROLLERS.EXTERNAL_SQUADS_ROUTES.BULK_ACTIONS.REMOVE_USERS(uuid)}`,
250
250
  },
251
251
  },
252
+ REMNAAWAVE_SETTINGS: {
253
+ GET: `${exports.ROOT}/${CONTROLLERS.REMNAAWAVE_SETTINGS_CONTROLLER}/${CONTROLLERS.REMNAAWAVE_SETTINGS_ROUTES.GET}`,
254
+ UPDATE: `${exports.ROOT}/${CONTROLLERS.REMNAAWAVE_SETTINGS_CONTROLLER}/${CONTROLLERS.REMNAAWAVE_SETTINGS_ROUTES.UPDATE}`,
255
+ },
252
256
  };
@@ -1,13 +1,12 @@
1
- import { type PublicKeyCredentialRequestOptionsJSON } from '@simplewebauthn/server';
2
1
  import { z } from 'zod';
3
2
  export declare namespace GetPasskeyAuthenticationOptionsCommand {
4
3
  const url: "/api/auth/passkey/authentication/options";
5
4
  const TSQ_url: "/api/auth/passkey/authentication/options";
6
5
  const endpointDetails: import("../../../constants").EndpointDetails;
7
6
  const ResponseSchema: z.ZodObject<{
8
- response: z.ZodEffects<z.ZodUnknown, PublicKeyCredentialRequestOptionsJSON, unknown>;
7
+ response: z.ZodUnknown;
9
8
  }, "strip", z.ZodTypeAny, {
10
- response: PublicKeyCredentialRequestOptionsJSON;
9
+ response?: unknown;
11
10
  }, {
12
11
  response?: unknown;
13
12
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"get-authentication-options.command.d.ts","sourceRoot":"","sources":["../../../../../commands/auth/passkey/get-authentication-options.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,qCAAqC,EAAE,MAAM,wBAAwB,CAAC;AACpF,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,sCAAsC,CAAC;IAC7C,MAAM,GAAG,4CAAmD,CAAC;IAC7D,MAAM,OAAO,4CAAM,CAAC;IAEpB,MAAM,eAAe,8CAI3B,CAAC;IAEK,MAAM,cAAc;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"get-authentication-options.command.d.ts","sourceRoot":"","sources":["../../../../../commands/auth/passkey/get-authentication-options.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,sCAAsC,CAAC;IAC7C,MAAM,GAAG,4CAAmD,CAAC;IAC7D,MAAM,OAAO,4CAAM,CAAC;IAEpB,MAAM,eAAe,8CAI3B,CAAC;IAEK,MAAM,cAAc;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -10,6 +10,6 @@ var GetPasskeyAuthenticationOptionsCommand;
10
10
  GetPasskeyAuthenticationOptionsCommand.TSQ_url = GetPasskeyAuthenticationOptionsCommand.url;
11
11
  GetPasskeyAuthenticationOptionsCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.AUTH_ROUTES.PASSKEY.GET_AUTHENTICATION_OPTIONS, 'get', 'Get the authentication options for passkey');
12
12
  GetPasskeyAuthenticationOptionsCommand.ResponseSchema = zod_1.z.object({
13
- response: zod_1.z.unknown().transform((val) => val),
13
+ response: zod_1.z.unknown(),
14
14
  });
15
15
  })(GetPasskeyAuthenticationOptionsCommand || (exports.GetPasskeyAuthenticationOptionsCommand = GetPasskeyAuthenticationOptionsCommand = {}));
@@ -1,13 +1,12 @@
1
- import { type PublicKeyCredentialCreationOptionsJSON } from '@simplewebauthn/server';
2
1
  import { z } from 'zod';
3
2
  export declare namespace GetPasskeyRegistrationOptionsCommand {
4
3
  const url: "/api/auth/passkey/registration/options";
5
4
  const TSQ_url: "/api/auth/passkey/registration/options";
6
5
  const endpointDetails: import("../../../constants").EndpointDetails;
7
6
  const ResponseSchema: z.ZodObject<{
8
- response: z.ZodEffects<z.ZodUnknown, PublicKeyCredentialCreationOptionsJSON, unknown>;
7
+ response: z.ZodUnknown;
9
8
  }, "strip", z.ZodTypeAny, {
10
- response: PublicKeyCredentialCreationOptionsJSON;
9
+ response?: unknown;
11
10
  }, {
12
11
  response?: unknown;
13
12
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"get-registration-options.command.d.ts","sourceRoot":"","sources":["../../../../../commands/auth/passkey/get-registration-options.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,sCAAsC,EAAE,MAAM,wBAAwB,CAAC;AACrF,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,oCAAoC,CAAC;IAC3C,MAAM,GAAG,0CAAiD,CAAC;IAC3D,MAAM,OAAO,0CAAM,CAAC;IAEpB,MAAM,eAAe,8CAI3B,CAAC;IAEK,MAAM,cAAc;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"get-registration-options.command.d.ts","sourceRoot":"","sources":["../../../../../commands/auth/passkey/get-registration-options.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,oCAAoC,CAAC;IAC3C,MAAM,GAAG,0CAAiD,CAAC;IAC3D,MAAM,OAAO,0CAAM,CAAC;IAEpB,MAAM,eAAe,8CAI3B,CAAC;IAEK,MAAM,cAAc;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -10,6 +10,6 @@ var GetPasskeyRegistrationOptionsCommand;
10
10
  GetPasskeyRegistrationOptionsCommand.TSQ_url = GetPasskeyRegistrationOptionsCommand.url;
11
11
  GetPasskeyRegistrationOptionsCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.AUTH_ROUTES.PASSKEY.GET_REGISTRATION_OPTIONS, 'get', 'Get the registration options for passkey');
12
12
  GetPasskeyRegistrationOptionsCommand.ResponseSchema = zod_1.z.object({
13
- response: zod_1.z.unknown().transform((val) => val),
13
+ response: zod_1.z.unknown(),
14
14
  });
15
15
  })(GetPasskeyRegistrationOptionsCommand || (exports.GetPasskeyRegistrationOptionsCommand = GetPasskeyRegistrationOptionsCommand = {}));
@@ -1,13 +1,12 @@
1
- import { type AuthenticationResponseJSON } from '@simplewebauthn/server';
2
1
  import { z } from 'zod';
3
2
  export declare namespace VerifyPasskeyAuthenticationCommand {
4
3
  const url: "/api/auth/passkey/authentication/verify";
5
4
  const TSQ_url: "/api/auth/passkey/authentication/verify";
6
5
  const endpointDetails: import("../../../constants").EndpointDetails;
7
6
  const RequestSchema: z.ZodObject<{
8
- response: z.ZodEffects<z.ZodUnknown, AuthenticationResponseJSON, unknown>;
7
+ response: z.ZodUnknown;
9
8
  }, "strip", z.ZodTypeAny, {
10
- response: AuthenticationResponseJSON;
9
+ response?: unknown;
11
10
  }, {
12
11
  response?: unknown;
13
12
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"verify-authentication.command.d.ts","sourceRoot":"","sources":["../../../../../commands/auth/passkey/verify-authentication.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AACzE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,kCAAkC,CAAC;IACzC,MAAM,GAAG,2CAA8C,CAAC;IACxD,MAAM,OAAO,2CAAM,CAAC;IAEpB,MAAM,eAAe,8CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,CAAC;IACH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"verify-authentication.command.d.ts","sourceRoot":"","sources":["../../../../../commands/auth/passkey/verify-authentication.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,kCAAkC,CAAC;IACzC,MAAM,GAAG,2CAA8C,CAAC;IACxD,MAAM,OAAO,2CAAM,CAAC;IAEpB,MAAM,eAAe,8CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,CAAC;IACH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -10,7 +10,7 @@ var VerifyPasskeyAuthenticationCommand;
10
10
  VerifyPasskeyAuthenticationCommand.TSQ_url = VerifyPasskeyAuthenticationCommand.url;
11
11
  VerifyPasskeyAuthenticationCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.AUTH_ROUTES.PASSKEY.VERIFY_AUTHENTICATION, 'post', 'Verify the authentication for passkey');
12
12
  VerifyPasskeyAuthenticationCommand.RequestSchema = zod_1.z.object({
13
- response: zod_1.z.unknown().transform((val) => val),
13
+ response: zod_1.z.unknown(),
14
14
  });
15
15
  VerifyPasskeyAuthenticationCommand.ResponseSchema = zod_1.z.object({
16
16
  response: zod_1.z.object({
@@ -1,13 +1,12 @@
1
- import { type RegistrationResponseJSON } from '@simplewebauthn/server';
2
1
  import { z } from 'zod';
3
2
  export declare namespace VerifyPasskeyRegistrationCommand {
4
3
  const url: "/api/auth/passkey/registration/verify";
5
4
  const TSQ_url: "/api/auth/passkey/registration/verify";
6
5
  const endpointDetails: import("../../../constants").EndpointDetails;
7
6
  const RequestSchema: z.ZodObject<{
8
- response: z.ZodEffects<z.ZodUnknown, RegistrationResponseJSON, unknown>;
7
+ response: z.ZodUnknown;
9
8
  }, "strip", z.ZodTypeAny, {
10
- response: RegistrationResponseJSON;
9
+ response?: unknown;
11
10
  }, {
12
11
  response?: unknown;
13
12
  }>;
@@ -15,22 +14,17 @@ export declare namespace VerifyPasskeyRegistrationCommand {
15
14
  const ResponseSchema: z.ZodObject<{
16
15
  response: z.ZodObject<{
17
16
  verified: z.ZodBoolean;
18
- message: z.ZodNullable<z.ZodString>;
19
17
  }, "strip", z.ZodTypeAny, {
20
- message: string | null;
21
18
  verified: boolean;
22
19
  }, {
23
- message: string | null;
24
20
  verified: boolean;
25
21
  }>;
26
22
  }, "strip", z.ZodTypeAny, {
27
23
  response: {
28
- message: string | null;
29
24
  verified: boolean;
30
25
  };
31
26
  }, {
32
27
  response: {
33
- message: string | null;
34
28
  verified: boolean;
35
29
  };
36
30
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"verify-registration.command.d.ts","sourceRoot":"","sources":["../../../../../commands/auth/passkey/verify-registration.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AACvE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,gCAAgC,CAAC;IACvC,MAAM,GAAG,yCAA4C,CAAC;IACtD,MAAM,OAAO,yCAAM,CAAC;IAEpB,MAAM,eAAe,8CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,CAAC;IACH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;MAKzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"verify-registration.command.d.ts","sourceRoot":"","sources":["../../../../../commands/auth/passkey/verify-registration.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,gCAAgC,CAAC;IACvC,MAAM,GAAG,yCAA4C,CAAC;IACtD,MAAM,OAAO,yCAAM,CAAC;IAEpB,MAAM,eAAe,8CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,CAAC;IACH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -10,12 +10,11 @@ var VerifyPasskeyRegistrationCommand;
10
10
  VerifyPasskeyRegistrationCommand.TSQ_url = VerifyPasskeyRegistrationCommand.url;
11
11
  VerifyPasskeyRegistrationCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.AUTH_ROUTES.PASSKEY.VERIFY_REGISTRATION, 'post', 'Verify the registration for passkey');
12
12
  VerifyPasskeyRegistrationCommand.RequestSchema = zod_1.z.object({
13
- response: zod_1.z.unknown().transform((val) => val),
13
+ response: zod_1.z.unknown(),
14
14
  });
15
15
  VerifyPasskeyRegistrationCommand.ResponseSchema = zod_1.z.object({
16
16
  response: zod_1.z.object({
17
17
  verified: zod_1.z.boolean(),
18
- message: zod_1.z.nullable(zod_1.z.string()),
19
18
  }),
20
19
  });
21
20
  })(VerifyPasskeyRegistrationCommand || (exports.VerifyPasskeyRegistrationCommand = VerifyPasskeyRegistrationCommand = {}));
@@ -8,6 +8,7 @@ export * from './infra-billing';
8
8
  export * from './internal-squads';
9
9
  export * from './keygen';
10
10
  export * from './nodes';
11
+ export * from './remnawave-settings';
11
12
  export * from './snippets';
12
13
  export * from './subscription';
13
14
  export * from './subscription-request-history';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../commands/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../commands/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}
@@ -24,6 +24,7 @@ __exportStar(require("./infra-billing"), exports);
24
24
  __exportStar(require("./internal-squads"), exports);
25
25
  __exportStar(require("./keygen"), exports);
26
26
  __exportStar(require("./nodes"), exports);
27
+ __exportStar(require("./remnawave-settings"), exports);
27
28
  __exportStar(require("./snippets"), exports);
28
29
  __exportStar(require("./subscription"), exports);
29
30
  __exportStar(require("./subscription-request-history"), exports);
@@ -0,0 +1,53 @@
1
+ import { z } from 'zod';
2
+ export declare namespace GetRemnawaveSettingsCommand {
3
+ const url: "/api/remnawave-settings/";
4
+ const TSQ_url: "/api/remnawave-settings/";
5
+ const endpointDetails: import("../../constants").EndpointDetails;
6
+ const ResponseSchema: z.ZodObject<{
7
+ response: z.ZodObject<{
8
+ passkeySettings: z.ZodNullable<z.ZodObject<{
9
+ enabled: z.ZodBoolean;
10
+ rpId: z.ZodNullable<z.ZodString>;
11
+ origin: z.ZodNullable<z.ZodString>;
12
+ }, "strip", z.ZodTypeAny, {
13
+ enabled: boolean;
14
+ rpId: string | null;
15
+ origin: string | null;
16
+ }, {
17
+ enabled: boolean;
18
+ rpId: string | null;
19
+ origin: string | null;
20
+ }>>;
21
+ }, "strip", z.ZodTypeAny, {
22
+ passkeySettings: {
23
+ enabled: boolean;
24
+ rpId: string | null;
25
+ origin: string | null;
26
+ } | null;
27
+ }, {
28
+ passkeySettings: {
29
+ enabled: boolean;
30
+ rpId: string | null;
31
+ origin: string | null;
32
+ } | null;
33
+ }>;
34
+ }, "strip", z.ZodTypeAny, {
35
+ response: {
36
+ passkeySettings: {
37
+ enabled: boolean;
38
+ rpId: string | null;
39
+ origin: string | null;
40
+ } | null;
41
+ };
42
+ }, {
43
+ response: {
44
+ passkeySettings: {
45
+ enabled: boolean;
46
+ rpId: string | null;
47
+ origin: string | null;
48
+ } | null;
49
+ };
50
+ }>;
51
+ type Response = z.infer<typeof ResponseSchema>;
52
+ }
53
+ //# sourceMappingURL=get-remnawave-settings.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-remnawave-settings.command.d.ts","sourceRoot":"","sources":["../../../../commands/remnawave-settings/get-remnawave-settings.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,2BAA2B,CAAC;IAClC,MAAM,GAAG,4BAAmC,CAAC;IAC7C,MAAM,OAAO,4BAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetRemnawaveSettingsCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const api_1 = require("../../api");
6
+ const models_1 = require("../../models");
7
+ const constants_1 = require("../../constants");
8
+ var GetRemnawaveSettingsCommand;
9
+ (function (GetRemnawaveSettingsCommand) {
10
+ GetRemnawaveSettingsCommand.url = api_1.REST_API.REMNAAWAVE_SETTINGS.GET;
11
+ GetRemnawaveSettingsCommand.TSQ_url = GetRemnawaveSettingsCommand.url;
12
+ GetRemnawaveSettingsCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.REMNAAWAVE_SETTINGS_ROUTES.GET, 'get', 'Get Remnawave settings');
13
+ GetRemnawaveSettingsCommand.ResponseSchema = zod_1.z.object({
14
+ response: models_1.RemnawaveSettingsSchema,
15
+ });
16
+ })(GetRemnawaveSettingsCommand || (exports.GetRemnawaveSettingsCommand = GetRemnawaveSettingsCommand = {}));
@@ -0,0 +1,3 @@
1
+ export * from './get-remnawave-settings.command';
2
+ export * from './update-remnawave-settings.command';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commands/remnawave-settings/index.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC;AACjD,cAAc,qCAAqC,CAAC"}
@@ -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-remnawave-settings.command"), exports);
18
+ __exportStar(require("./update-remnawave-settings.command"), exports);
@@ -0,0 +1,81 @@
1
+ import { z } from 'zod';
2
+ export declare namespace UpdateRemnawaveSettingsCommand {
3
+ const url: "/api/remnawave-settings/";
4
+ const TSQ_url: "/api/remnawave-settings/";
5
+ const endpointDetails: import("../../constants").EndpointDetails;
6
+ const RequestSchema: z.ZodObject<{
7
+ passkeySettings: z.ZodOptional<z.ZodObject<{
8
+ enabled: z.ZodBoolean;
9
+ rpId: z.ZodNullable<z.ZodString>;
10
+ origin: z.ZodNullable<z.ZodString>;
11
+ }, "strip", z.ZodTypeAny, {
12
+ enabled: boolean;
13
+ rpId: string | null;
14
+ origin: string | null;
15
+ }, {
16
+ enabled: boolean;
17
+ rpId: string | null;
18
+ origin: string | null;
19
+ }>>;
20
+ }, "strip", z.ZodTypeAny, {
21
+ passkeySettings?: {
22
+ enabled: boolean;
23
+ rpId: string | null;
24
+ origin: string | null;
25
+ } | undefined;
26
+ }, {
27
+ passkeySettings?: {
28
+ enabled: boolean;
29
+ rpId: string | null;
30
+ origin: string | null;
31
+ } | undefined;
32
+ }>;
33
+ type Request = z.infer<typeof RequestSchema>;
34
+ const ResponseSchema: z.ZodObject<{
35
+ response: z.ZodObject<{
36
+ passkeySettings: z.ZodNullable<z.ZodObject<{
37
+ enabled: z.ZodBoolean;
38
+ rpId: z.ZodNullable<z.ZodString>;
39
+ origin: z.ZodNullable<z.ZodString>;
40
+ }, "strip", z.ZodTypeAny, {
41
+ enabled: boolean;
42
+ rpId: string | null;
43
+ origin: string | null;
44
+ }, {
45
+ enabled: boolean;
46
+ rpId: string | null;
47
+ origin: string | null;
48
+ }>>;
49
+ }, "strip", z.ZodTypeAny, {
50
+ passkeySettings: {
51
+ enabled: boolean;
52
+ rpId: string | null;
53
+ origin: string | null;
54
+ } | null;
55
+ }, {
56
+ passkeySettings: {
57
+ enabled: boolean;
58
+ rpId: string | null;
59
+ origin: string | null;
60
+ } | null;
61
+ }>;
62
+ }, "strip", z.ZodTypeAny, {
63
+ response: {
64
+ passkeySettings: {
65
+ enabled: boolean;
66
+ rpId: string | null;
67
+ origin: string | null;
68
+ } | null;
69
+ };
70
+ }, {
71
+ response: {
72
+ passkeySettings: {
73
+ enabled: boolean;
74
+ rpId: string | null;
75
+ origin: string | null;
76
+ } | null;
77
+ };
78
+ }>;
79
+ type Response = z.infer<typeof ResponseSchema>;
80
+ }
81
+ //# sourceMappingURL=update-remnawave-settings.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-remnawave-settings.command.d.ts","sourceRoot":"","sources":["../../../../commands/remnawave-settings/update-remnawave-settings.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,8BAA8B,CAAC;IACrC,MAAM,GAAG,4BAAsC,CAAC;IAChD,MAAM,OAAO,4BAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateRemnawaveSettingsCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../models");
6
+ const api_1 = require("../../api");
7
+ const constants_1 = require("../../constants");
8
+ var UpdateRemnawaveSettingsCommand;
9
+ (function (UpdateRemnawaveSettingsCommand) {
10
+ UpdateRemnawaveSettingsCommand.url = api_1.REST_API.REMNAAWAVE_SETTINGS.UPDATE;
11
+ UpdateRemnawaveSettingsCommand.TSQ_url = UpdateRemnawaveSettingsCommand.url;
12
+ UpdateRemnawaveSettingsCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.REMNAAWAVE_SETTINGS_ROUTES.UPDATE, 'patch', 'Update Remnawave settings');
13
+ UpdateRemnawaveSettingsCommand.RequestSchema = zod_1.z.object({
14
+ passkeySettings: models_1.PasskeySettingsSchema.optional(),
15
+ });
16
+ UpdateRemnawaveSettingsCommand.ResponseSchema = zod_1.z.object({
17
+ response: models_1.RemnawaveSettingsSchema,
18
+ });
19
+ })(UpdateRemnawaveSettingsCommand || (exports.UpdateRemnawaveSettingsCommand = UpdateRemnawaveSettingsCommand = {}));
@@ -4,5 +4,9 @@ export declare const CACHE_KEYS: {
4
4
  readonly SUBSCRIPTION_TEMPLATE: (name: string, type: TSubscriptionTemplateType) => string;
5
5
  readonly PASSKEY_REGISTRATION_OPTIONS: (uuid: string) => string;
6
6
  readonly PASSKEY_AUTHENTICATION_OPTIONS: (uuid: string) => string;
7
+ readonly REMNAAWAVE_SETTINGS: "remnawave_settings";
8
+ };
9
+ export declare const CACHE_KEYS_TTL: {
10
+ readonly REMNAAWAVE_SETTINGS: 86400000;
7
11
  };
8
12
  //# sourceMappingURL=cache-keys.constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cache-keys.constants.d.ts","sourceRoot":"","sources":["../../../../constants/cache-keys/cache-keys.constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AAErE,eAAO,MAAM,UAAU;;2CAEW,MAAM,QAAQ,yBAAyB;kDAEhC,MAAM;oDACJ,MAAM;CACvC,CAAC"}
1
+ {"version":3,"file":"cache-keys.constants.d.ts","sourceRoot":"","sources":["../../../../constants/cache-keys/cache-keys.constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AAErE,eAAO,MAAM,UAAU;;2CAEW,MAAM,QAAQ,yBAAyB;kDAEhC,MAAM;oDACJ,MAAM;;CAEvC,CAAC;AAEX,eAAO,MAAM,cAAc;;CAEjB,CAAC"}
@@ -1,9 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CACHE_KEYS = void 0;
3
+ exports.CACHE_KEYS_TTL = exports.CACHE_KEYS = void 0;
4
4
  exports.CACHE_KEYS = {
5
5
  SUBSCRIPTION_SETTINGS: 'subscription_settings',
6
6
  SUBSCRIPTION_TEMPLATE: (name, type) => `subscription_template:${name}:${type}`,
7
7
  PASSKEY_REGISTRATION_OPTIONS: (uuid) => `passkey_registration_options:${uuid}`,
8
8
  PASSKEY_AUTHENTICATION_OPTIONS: (uuid) => `passkey_authentication_options:${uuid}`,
9
+ REMNAAWAVE_SETTINGS: 'remnawave_settings',
10
+ };
11
+ exports.CACHE_KEYS_TTL = {
12
+ REMNAAWAVE_SETTINGS: 86400000, // 1 day
9
13
  };
@@ -984,5 +984,15 @@ export declare const ERRORS: {
984
984
  readonly message: "Passkey not found";
985
985
  readonly httpCode: 404;
986
986
  };
987
+ readonly GET_REMNAAWAVE_SETTINGS_ERROR: {
988
+ readonly code: "A192";
989
+ readonly message: "Get Remnawave settings error";
990
+ readonly httpCode: 500;
991
+ };
992
+ readonly UPDATE_REMNAAWAVE_SETTINGS_ERROR: {
993
+ readonly code: "A193";
994
+ readonly message: "Update Remnawave settings error";
995
+ readonly httpCode: 500;
996
+ };
987
997
  };
988
998
  //# 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8oB3B,CAAC"}
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwpB3B,CAAC"}
@@ -955,4 +955,14 @@ exports.ERRORS = {
955
955
  message: 'Passkey not found',
956
956
  httpCode: 404,
957
957
  },
958
+ GET_REMNAAWAVE_SETTINGS_ERROR: {
959
+ code: 'A192',
960
+ message: 'Get Remnawave settings error',
961
+ httpCode: 500,
962
+ },
963
+ UPDATE_REMNAAWAVE_SETTINGS_ERROR: {
964
+ code: 'A193',
965
+ message: 'Update Remnawave settings error',
966
+ httpCode: 500,
967
+ },
958
968
  };
@@ -17,6 +17,7 @@ export * from './infra-provider.schema';
17
17
  export * from './internal-squad.schema';
18
18
  export * from './last-connected-node.schema';
19
19
  export * from './nodes.schema';
20
+ export * from './remnawave-settings';
20
21
  export * from './response-rules';
21
22
  export * from './snippets.schema';
22
23
  export * from './subscription-info.schema';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../models/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oBAAoB,CAAC;AACnC,cAAc,kCAAkC,CAAC;AACjD,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,+CAA+C,CAAC;AAC9D,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uCAAuC,CAAC;AACtD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../models/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oBAAoB,CAAC;AACnC,cAAc,kCAAkC,CAAC;AACjD,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,+CAA+C,CAAC;AAC9D,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uCAAuC,CAAC;AACtD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC"}
@@ -33,6 +33,7 @@ __exportStar(require("./infra-provider.schema"), exports);
33
33
  __exportStar(require("./internal-squad.schema"), exports);
34
34
  __exportStar(require("./last-connected-node.schema"), exports);
35
35
  __exportStar(require("./nodes.schema"), exports);
36
+ __exportStar(require("./remnawave-settings"), exports);
36
37
  __exportStar(require("./response-rules"), exports);
37
38
  __exportStar(require("./snippets.schema"), exports);
38
39
  __exportStar(require("./subscription-info.schema"), exports);
@@ -0,0 +1,3 @@
1
+ export * from './passkey-settings.schema';
2
+ export * from './remnawave-settings.schema';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../models/remnawave-settings/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC"}
@@ -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("./passkey-settings.schema"), exports);
18
+ __exportStar(require("./remnawave-settings.schema"), exports);
@@ -0,0 +1,15 @@
1
+ import z from 'zod';
2
+ export declare const PasskeySettingsSchema: z.ZodObject<{
3
+ enabled: z.ZodBoolean;
4
+ rpId: z.ZodNullable<z.ZodString>;
5
+ origin: z.ZodNullable<z.ZodString>;
6
+ }, "strip", z.ZodTypeAny, {
7
+ enabled: boolean;
8
+ rpId: string | null;
9
+ origin: string | null;
10
+ }, {
11
+ enabled: boolean;
12
+ rpId: string | null;
13
+ origin: string | null;
14
+ }>;
15
+ //# sourceMappingURL=passkey-settings.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"passkey-settings.schema.d.ts","sourceRoot":"","sources":["../../../../models/remnawave-settings/passkey-settings.schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;EAIhC,CAAC"}
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.PasskeySettingsSchema = void 0;
7
+ const zod_1 = __importDefault(require("zod"));
8
+ exports.PasskeySettingsSchema = zod_1.default.object({
9
+ enabled: zod_1.default.boolean(),
10
+ rpId: zod_1.default.nullable(zod_1.default.string()),
11
+ origin: zod_1.default.nullable(zod_1.default.string()),
12
+ });
@@ -0,0 +1,32 @@
1
+ import { z } from 'zod';
2
+ import { PasskeySettingsSchema } from './passkey-settings.schema';
3
+ export declare const RemnawaveSettingsSchema: z.ZodObject<{
4
+ passkeySettings: z.ZodNullable<z.ZodObject<{
5
+ enabled: z.ZodBoolean;
6
+ rpId: z.ZodNullable<z.ZodString>;
7
+ origin: z.ZodNullable<z.ZodString>;
8
+ }, "strip", z.ZodTypeAny, {
9
+ enabled: boolean;
10
+ rpId: string | null;
11
+ origin: string | null;
12
+ }, {
13
+ enabled: boolean;
14
+ rpId: string | null;
15
+ origin: string | null;
16
+ }>>;
17
+ }, "strip", z.ZodTypeAny, {
18
+ passkeySettings: {
19
+ enabled: boolean;
20
+ rpId: string | null;
21
+ origin: string | null;
22
+ } | null;
23
+ }, {
24
+ passkeySettings: {
25
+ enabled: boolean;
26
+ rpId: string | null;
27
+ origin: string | null;
28
+ } | null;
29
+ }>;
30
+ export type TRemnawaveSettings = z.infer<typeof RemnawaveSettingsSchema>;
31
+ export type TRemnawavePasskeySettings = z.infer<typeof PasskeySettingsSchema>;
32
+ //# sourceMappingURL=remnawave-settings.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"remnawave-settings.schema.d.ts","sourceRoot":"","sources":["../../../../models/remnawave-settings/remnawave-settings.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAElE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;EAElC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACzE,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RemnawaveSettingsSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const passkey_settings_schema_1 = require("./passkey-settings.schema");
6
+ exports.RemnawaveSettingsSchema = zod_1.z.object({
7
+ passkeySettings: zod_1.z.nullable(passkey_settings_schema_1.PasskeySettingsSchema),
8
+ });
@@ -24,6 +24,7 @@ __exportStar(require("./infra-billing"), exports);
24
24
  __exportStar(require("./internal-squads"), exports);
25
25
  __exportStar(require("./keygen"), exports);
26
26
  __exportStar(require("./nodes"), exports);
27
+ __exportStar(require("./remnawave-settings"), exports);
27
28
  __exportStar(require("./snippets"), exports);
28
29
  __exportStar(require("./subscription"), exports);
29
30
  __exportStar(require("./subscription-request-history"), exports);
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.REMNAAWAVE_SETTINGS_ROUTES = exports.REMNAAWAVE_SETTINGS_CONTROLLER = void 0;
4
+ exports.REMNAAWAVE_SETTINGS_CONTROLLER = 'remnawave-settings';
5
+ exports.REMNAAWAVE_SETTINGS_ROUTES = {
6
+ GET: '', // get
7
+ UPDATE: '', // patch
8
+ };
@@ -90,4 +90,8 @@ exports.CONTROLLERS_INFO = {
90
90
  tag: 'Snippets Controller',
91
91
  description: '',
92
92
  },
93
+ REMNAAWAVE_SETTINGS: {
94
+ tag: 'Remnawave Settings Controller',
95
+ description: '',
96
+ },
93
97
  };
@@ -249,4 +249,8 @@ exports.REST_API = {
249
249
  REMOVE_USERS: (uuid) => `${exports.ROOT}/${CONTROLLERS.EXTERNAL_SQUADS_CONTROLLER}/${CONTROLLERS.EXTERNAL_SQUADS_ROUTES.BULK_ACTIONS.REMOVE_USERS(uuid)}`,
250
250
  },
251
251
  },
252
+ REMNAAWAVE_SETTINGS: {
253
+ GET: `${exports.ROOT}/${CONTROLLERS.REMNAAWAVE_SETTINGS_CONTROLLER}/${CONTROLLERS.REMNAAWAVE_SETTINGS_ROUTES.GET}`,
254
+ UPDATE: `${exports.ROOT}/${CONTROLLERS.REMNAAWAVE_SETTINGS_CONTROLLER}/${CONTROLLERS.REMNAAWAVE_SETTINGS_ROUTES.UPDATE}`,
255
+ },
252
256
  };
@@ -10,6 +10,6 @@ var GetPasskeyAuthenticationOptionsCommand;
10
10
  GetPasskeyAuthenticationOptionsCommand.TSQ_url = GetPasskeyAuthenticationOptionsCommand.url;
11
11
  GetPasskeyAuthenticationOptionsCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.AUTH_ROUTES.PASSKEY.GET_AUTHENTICATION_OPTIONS, 'get', 'Get the authentication options for passkey');
12
12
  GetPasskeyAuthenticationOptionsCommand.ResponseSchema = zod_1.z.object({
13
- response: zod_1.z.unknown().transform((val) => val),
13
+ response: zod_1.z.unknown(),
14
14
  });
15
15
  })(GetPasskeyAuthenticationOptionsCommand || (exports.GetPasskeyAuthenticationOptionsCommand = GetPasskeyAuthenticationOptionsCommand = {}));
@@ -10,6 +10,6 @@ var GetPasskeyRegistrationOptionsCommand;
10
10
  GetPasskeyRegistrationOptionsCommand.TSQ_url = GetPasskeyRegistrationOptionsCommand.url;
11
11
  GetPasskeyRegistrationOptionsCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.AUTH_ROUTES.PASSKEY.GET_REGISTRATION_OPTIONS, 'get', 'Get the registration options for passkey');
12
12
  GetPasskeyRegistrationOptionsCommand.ResponseSchema = zod_1.z.object({
13
- response: zod_1.z.unknown().transform((val) => val),
13
+ response: zod_1.z.unknown(),
14
14
  });
15
15
  })(GetPasskeyRegistrationOptionsCommand || (exports.GetPasskeyRegistrationOptionsCommand = GetPasskeyRegistrationOptionsCommand = {}));
@@ -10,7 +10,7 @@ var VerifyPasskeyAuthenticationCommand;
10
10
  VerifyPasskeyAuthenticationCommand.TSQ_url = VerifyPasskeyAuthenticationCommand.url;
11
11
  VerifyPasskeyAuthenticationCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.AUTH_ROUTES.PASSKEY.VERIFY_AUTHENTICATION, 'post', 'Verify the authentication for passkey');
12
12
  VerifyPasskeyAuthenticationCommand.RequestSchema = zod_1.z.object({
13
- response: zod_1.z.unknown().transform((val) => val),
13
+ response: zod_1.z.unknown(),
14
14
  });
15
15
  VerifyPasskeyAuthenticationCommand.ResponseSchema = zod_1.z.object({
16
16
  response: zod_1.z.object({
@@ -10,12 +10,11 @@ var VerifyPasskeyRegistrationCommand;
10
10
  VerifyPasskeyRegistrationCommand.TSQ_url = VerifyPasskeyRegistrationCommand.url;
11
11
  VerifyPasskeyRegistrationCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.AUTH_ROUTES.PASSKEY.VERIFY_REGISTRATION, 'post', 'Verify the registration for passkey');
12
12
  VerifyPasskeyRegistrationCommand.RequestSchema = zod_1.z.object({
13
- response: zod_1.z.unknown().transform((val) => val),
13
+ response: zod_1.z.unknown(),
14
14
  });
15
15
  VerifyPasskeyRegistrationCommand.ResponseSchema = zod_1.z.object({
16
16
  response: zod_1.z.object({
17
17
  verified: zod_1.z.boolean(),
18
- message: zod_1.z.nullable(zod_1.z.string()),
19
18
  }),
20
19
  });
21
20
  })(VerifyPasskeyRegistrationCommand || (exports.VerifyPasskeyRegistrationCommand = VerifyPasskeyRegistrationCommand = {}));
@@ -24,6 +24,7 @@ __exportStar(require("./infra-billing"), exports);
24
24
  __exportStar(require("./internal-squads"), exports);
25
25
  __exportStar(require("./keygen"), exports);
26
26
  __exportStar(require("./nodes"), exports);
27
+ __exportStar(require("./remnawave-settings"), exports);
27
28
  __exportStar(require("./snippets"), exports);
28
29
  __exportStar(require("./subscription"), exports);
29
30
  __exportStar(require("./subscription-request-history"), exports);
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetRemnawaveSettingsCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const api_1 = require("../../api");
6
+ const models_1 = require("../../models");
7
+ const constants_1 = require("../../constants");
8
+ var GetRemnawaveSettingsCommand;
9
+ (function (GetRemnawaveSettingsCommand) {
10
+ GetRemnawaveSettingsCommand.url = api_1.REST_API.REMNAAWAVE_SETTINGS.GET;
11
+ GetRemnawaveSettingsCommand.TSQ_url = GetRemnawaveSettingsCommand.url;
12
+ GetRemnawaveSettingsCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.REMNAAWAVE_SETTINGS_ROUTES.GET, 'get', 'Get Remnawave settings');
13
+ GetRemnawaveSettingsCommand.ResponseSchema = zod_1.z.object({
14
+ response: models_1.RemnawaveSettingsSchema,
15
+ });
16
+ })(GetRemnawaveSettingsCommand || (exports.GetRemnawaveSettingsCommand = GetRemnawaveSettingsCommand = {}));
@@ -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-remnawave-settings.command"), exports);
18
+ __exportStar(require("./update-remnawave-settings.command"), exports);
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateRemnawaveSettingsCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../models");
6
+ const api_1 = require("../../api");
7
+ const constants_1 = require("../../constants");
8
+ var UpdateRemnawaveSettingsCommand;
9
+ (function (UpdateRemnawaveSettingsCommand) {
10
+ UpdateRemnawaveSettingsCommand.url = api_1.REST_API.REMNAAWAVE_SETTINGS.UPDATE;
11
+ UpdateRemnawaveSettingsCommand.TSQ_url = UpdateRemnawaveSettingsCommand.url;
12
+ UpdateRemnawaveSettingsCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.REMNAAWAVE_SETTINGS_ROUTES.UPDATE, 'patch', 'Update Remnawave settings');
13
+ UpdateRemnawaveSettingsCommand.RequestSchema = zod_1.z.object({
14
+ passkeySettings: models_1.PasskeySettingsSchema.optional(),
15
+ });
16
+ UpdateRemnawaveSettingsCommand.ResponseSchema = zod_1.z.object({
17
+ response: models_1.RemnawaveSettingsSchema,
18
+ });
19
+ })(UpdateRemnawaveSettingsCommand || (exports.UpdateRemnawaveSettingsCommand = UpdateRemnawaveSettingsCommand = {}));
@@ -1,9 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CACHE_KEYS = void 0;
3
+ exports.CACHE_KEYS_TTL = exports.CACHE_KEYS = void 0;
4
4
  exports.CACHE_KEYS = {
5
5
  SUBSCRIPTION_SETTINGS: 'subscription_settings',
6
6
  SUBSCRIPTION_TEMPLATE: (name, type) => `subscription_template:${name}:${type}`,
7
7
  PASSKEY_REGISTRATION_OPTIONS: (uuid) => `passkey_registration_options:${uuid}`,
8
8
  PASSKEY_AUTHENTICATION_OPTIONS: (uuid) => `passkey_authentication_options:${uuid}`,
9
+ REMNAAWAVE_SETTINGS: 'remnawave_settings',
10
+ };
11
+ exports.CACHE_KEYS_TTL = {
12
+ REMNAAWAVE_SETTINGS: 86400000, // 1 day
9
13
  };
@@ -955,4 +955,14 @@ exports.ERRORS = {
955
955
  message: 'Passkey not found',
956
956
  httpCode: 404,
957
957
  },
958
+ GET_REMNAAWAVE_SETTINGS_ERROR: {
959
+ code: 'A192',
960
+ message: 'Get Remnawave settings error',
961
+ httpCode: 500,
962
+ },
963
+ UPDATE_REMNAAWAVE_SETTINGS_ERROR: {
964
+ code: 'A193',
965
+ message: 'Update Remnawave settings error',
966
+ httpCode: 500,
967
+ },
958
968
  };
@@ -33,6 +33,7 @@ __exportStar(require("./infra-provider.schema"), exports);
33
33
  __exportStar(require("./internal-squad.schema"), exports);
34
34
  __exportStar(require("./last-connected-node.schema"), exports);
35
35
  __exportStar(require("./nodes.schema"), exports);
36
+ __exportStar(require("./remnawave-settings"), exports);
36
37
  __exportStar(require("./response-rules"), exports);
37
38
  __exportStar(require("./snippets.schema"), exports);
38
39
  __exportStar(require("./subscription-info.schema"), exports);
@@ -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("./passkey-settings.schema"), exports);
18
+ __exportStar(require("./remnawave-settings.schema"), exports);
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.PasskeySettingsSchema = void 0;
7
+ const zod_1 = __importDefault(require("zod"));
8
+ exports.PasskeySettingsSchema = zod_1.default.object({
9
+ enabled: zod_1.default.boolean(),
10
+ rpId: zod_1.default.nullable(zod_1.default.string()),
11
+ origin: zod_1.default.nullable(zod_1.default.string()),
12
+ });
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RemnawaveSettingsSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const passkey_settings_schema_1 = require("./passkey-settings.schema");
6
+ exports.RemnawaveSettingsSchema = zod_1.z.object({
7
+ passkeySettings: zod_1.z.nullable(passkey_settings_schema_1.PasskeySettingsSchema),
8
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/backend-contract",
3
- "version": "2.2.12",
3
+ "version": "2.2.13",
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.",