@remnawave/backend-contract 2.1.31 → 2.1.34

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 (52) hide show
  1. package/build/backend/api/controllers/hwid.d.ts +1 -0
  2. package/build/backend/api/controllers/hwid.d.ts.map +1 -1
  3. package/build/backend/api/controllers/hwid.js +1 -0
  4. package/build/backend/api/controllers/subscription.d.ts +0 -1
  5. package/build/backend/api/controllers/subscription.d.ts.map +1 -1
  6. package/build/backend/api/controllers/subscription.js +0 -1
  7. package/build/backend/api/controllers/subscriptions.d.ts +1 -0
  8. package/build/backend/api/controllers/subscriptions.d.ts.map +1 -1
  9. package/build/backend/api/controllers/subscriptions.js +1 -0
  10. package/build/backend/api/controllers-info.d.ts +79 -0
  11. package/build/backend/api/controllers-info.d.ts.map +1 -0
  12. package/build/backend/api/controllers-info.js +81 -0
  13. package/build/backend/api/index.d.ts +1 -0
  14. package/build/backend/api/index.d.ts.map +1 -1
  15. package/build/backend/api/index.js +1 -0
  16. package/build/backend/api/routes.d.ts +2 -1
  17. package/build/backend/api/routes.d.ts.map +1 -1
  18. package/build/backend/api/routes.js +2 -1
  19. package/build/backend/commands/hwid/delete-all-user-hwid-devices.command.d.ts +101 -0
  20. package/build/backend/commands/hwid/delete-all-user-hwid-devices.command.d.ts.map +1 -0
  21. package/build/backend/commands/hwid/delete-all-user-hwid-devices.command.js +22 -0
  22. package/build/backend/commands/hwid/index.d.ts +1 -0
  23. package/build/backend/commands/hwid/index.d.ts.map +1 -1
  24. package/build/backend/commands/hwid/index.js +1 -0
  25. package/build/backend/commands/subscription/get-subscription-info-by-short-uuid.command.js +1 -1
  26. package/build/backend/commands/subscription/index.d.ts +1 -1
  27. package/build/backend/commands/subscription/index.d.ts.map +1 -1
  28. package/build/backend/commands/subscription/index.js +1 -1
  29. package/build/backend/commands/{subscription → subscriptions/get-by}/get-raw-subscription-by-short-uuid.command.d.ts +302 -71
  30. package/build/backend/commands/subscriptions/get-by/get-raw-subscription-by-short-uuid.command.d.ts.map +1 -0
  31. package/build/backend/commands/{subscription → subscriptions/get-by}/get-raw-subscription-by-short-uuid.command.js +10 -23
  32. package/build/backend/commands/subscriptions/get-by/index.d.ts +1 -0
  33. package/build/backend/commands/subscriptions/get-by/index.d.ts.map +1 -1
  34. package/build/backend/commands/subscriptions/get-by/index.js +1 -0
  35. package/build/backend/constants/errors/errors.d.ts +5 -0
  36. package/build/backend/constants/errors/errors.d.ts.map +1 -1
  37. package/build/backend/constants/errors/errors.js +5 -0
  38. package/build/frontend/api/controllers/hwid.js +1 -0
  39. package/build/frontend/api/controllers/subscription.js +0 -1
  40. package/build/frontend/api/controllers/subscriptions.js +1 -0
  41. package/build/frontend/api/controllers-info.js +81 -0
  42. package/build/frontend/api/index.js +1 -0
  43. package/build/frontend/api/routes.js +2 -1
  44. package/build/frontend/commands/hwid/delete-all-user-hwid-devices.command.js +22 -0
  45. package/build/frontend/commands/hwid/index.js +1 -0
  46. package/build/frontend/commands/subscription/get-subscription-info-by-short-uuid.command.js +1 -1
  47. package/build/frontend/commands/subscription/index.js +1 -1
  48. package/build/frontend/commands/{subscription → subscriptions/get-by}/get-raw-subscription-by-short-uuid.command.js +10 -23
  49. package/build/frontend/commands/subscriptions/get-by/index.js +1 -0
  50. package/build/frontend/constants/errors/errors.js +5 -0
  51. package/package.json +1 -1
  52. package/build/backend/commands/subscription/get-raw-subscription-by-short-uuid.command.d.ts.map +0 -1
@@ -3,5 +3,6 @@ export declare const HWID_ROUTES: {
3
3
  readonly CREATE_USER_HWID_DEVICE: "devices";
4
4
  readonly GET_USER_HWID_DEVICES: (userUuid: string) => string;
5
5
  readonly DELETE_USER_HWID_DEVICE: "devices/delete";
6
+ readonly DELETE_ALL_USER_HWID_DEVICES: "devices/delete-all";
6
7
  };
7
8
  //# sourceMappingURL=hwid.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"hwid.d.ts","sourceRoot":"","sources":["../../../../api/controllers/hwid.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,EAAG,MAAe,CAAC;AAE/C,eAAO,MAAM,WAAW;;+CAEc,MAAM;;CAElC,CAAC"}
1
+ {"version":3,"file":"hwid.d.ts","sourceRoot":"","sources":["../../../../api/controllers/hwid.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,EAAG,MAAe,CAAC;AAE/C,eAAO,MAAM,WAAW;;+CAEc,MAAM;;;CAGlC,CAAC"}
@@ -6,4 +6,5 @@ exports.HWID_ROUTES = {
6
6
  CREATE_USER_HWID_DEVICE: 'devices',
7
7
  GET_USER_HWID_DEVICES: (userUuid) => `devices/${userUuid}`,
8
8
  DELETE_USER_HWID_DEVICE: 'devices/delete',
9
+ DELETE_ALL_USER_HWID_DEVICES: 'devices/delete-all',
9
10
  };
@@ -3,6 +3,5 @@ export declare const SUBSCRIPTION_ROUTES: {
3
3
  readonly GET: "";
4
4
  readonly GET_OUTLINE: "/outline";
5
5
  readonly GET_INFO: (shortUuid: string) => string;
6
- readonly GET_RAW: (shortUuid: string) => string;
7
6
  };
8
7
  //# sourceMappingURL=subscription.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"subscription.d.ts","sourceRoot":"","sources":["../../../../api/controllers/subscription.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,EAAG,KAAc,CAAC;AAEtD,eAAO,MAAM,mBAAmB;;;mCAGN,MAAM;kCACP,MAAM;CACrB,CAAC"}
1
+ {"version":3,"file":"subscription.d.ts","sourceRoot":"","sources":["../../../../api/controllers/subscription.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,EAAG,KAAc,CAAC;AAEtD,eAAO,MAAM,mBAAmB;;;mCAGN,MAAM;CACtB,CAAC"}
@@ -6,5 +6,4 @@ exports.SUBSCRIPTION_ROUTES = {
6
6
  GET: '',
7
7
  GET_OUTLINE: '/outline',
8
8
  GET_INFO: (shortUuid) => `${shortUuid}/info`,
9
- GET_RAW: (shortUuid) => `${shortUuid}/raw`,
10
9
  };
@@ -5,6 +5,7 @@ export declare const SUBSCRIPTIONS_ROUTES: {
5
5
  readonly USERNAME: (username: string) => string;
6
6
  readonly UUID: (uuid: string) => string;
7
7
  readonly SHORT_UUID: (shortUuid: string) => string;
8
+ readonly SHORT_UUID_RAW: (shortUuid: string) => string;
8
9
  };
9
10
  };
10
11
  //# sourceMappingURL=subscriptions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"subscriptions.d.ts","sourceRoot":"","sources":["../../../../api/controllers/subscriptions.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wBAAwB,EAAG,eAAwB,CAAC;AAEjE,eAAO,MAAM,oBAAoB;;;sCAGJ,MAAM;8BACd,MAAM;yCACK,MAAM;;CAE5B,CAAC"}
1
+ {"version":3,"file":"subscriptions.d.ts","sourceRoot":"","sources":["../../../../api/controllers/subscriptions.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wBAAwB,EAAG,eAAwB,CAAC;AAEjE,eAAO,MAAM,oBAAoB;;;sCAGJ,MAAM;8BACd,MAAM;yCACK,MAAM;6CACF,MAAM;;CAEhC,CAAC"}
@@ -8,5 +8,6 @@ exports.SUBSCRIPTIONS_ROUTES = {
8
8
  USERNAME: (username) => `by-username/${username}`,
9
9
  UUID: (uuid) => `by-uuid/${uuid}`,
10
10
  SHORT_UUID: (shortUuid) => `by-short-uuid/${shortUuid}`,
11
+ SHORT_UUID_RAW: (shortUuid) => `by-short-uuid/${shortUuid}/raw`,
11
12
  },
12
13
  };
@@ -0,0 +1,79 @@
1
+ export declare const CONTROLLERS_INFO: {
2
+ readonly AUTH: {
3
+ readonly tag: "Auth Controller";
4
+ readonly description: "Used to authenticate admin users.";
5
+ };
6
+ readonly API_TOKENS: {
7
+ readonly tag: "API Tokens Controller";
8
+ readonly description: "Manage API tokens to use in your code. This controller can't be used with API token, only with Admin JWT token";
9
+ };
10
+ readonly USERS: {
11
+ readonly tag: "Users Controller";
12
+ readonly description: "Manage users, change their status, reset traffic, etc.";
13
+ };
14
+ readonly USERS_BULK_ACTIONS: {
15
+ readonly tag: "Users Bulk Actions Controller";
16
+ readonly description: "Bulk actions with users.";
17
+ };
18
+ readonly USERS_STATS: {
19
+ readonly tag: "Users Stats Controller";
20
+ readonly description: "";
21
+ };
22
+ readonly HWID_USER_DEVICES: {
23
+ readonly tag: "HWID User Devices Controller";
24
+ readonly description: "";
25
+ };
26
+ readonly SUBSCRIPTION: {
27
+ readonly tag: "[Public] Subscription Controller";
28
+ readonly description: "Public Subscription Controller. Methods of this controller are not protected with auth. Use it only for public requests.";
29
+ };
30
+ readonly SUBSCRIPTIONS: {
31
+ readonly tag: "[Protected] Subscriptions Controller";
32
+ readonly description: "Methods of this controller are protected with auth, most of them is returning the same informations as public Subscription Controller.";
33
+ };
34
+ readonly CONFIG_PROFILES: {
35
+ readonly tag: "Config Profiles Controller";
36
+ readonly description: "Management of Config Profiles.";
37
+ };
38
+ readonly INTERNAL_SQUADS: {
39
+ readonly tag: "Internal Squads Controller";
40
+ readonly description: "Management of Internal Squads.";
41
+ };
42
+ readonly NODES: {
43
+ readonly tag: "Nodes Controller";
44
+ readonly description: "";
45
+ };
46
+ readonly HOSTS: {
47
+ readonly tag: "Hosts Controller";
48
+ readonly description: "";
49
+ };
50
+ readonly HOSTS_BULK_ACTIONS: {
51
+ readonly tag: "Hosts Bulk Actions Controller";
52
+ readonly description: "";
53
+ };
54
+ readonly SUBSCRIPTION_TEMPLATE: {
55
+ readonly tag: "Subscription Template Controller";
56
+ readonly description: "";
57
+ };
58
+ readonly SUBSCRIPTION_SETTINGS: {
59
+ readonly tag: "Subscription Settings Controller";
60
+ readonly description: "";
61
+ };
62
+ readonly INFRA_BILLING: {
63
+ readonly tag: "Infra Billing Controller";
64
+ readonly description: "";
65
+ };
66
+ readonly SYSTEM: {
67
+ readonly tag: "System Controller";
68
+ readonly description: "";
69
+ };
70
+ readonly BANDWIDTH_STATS: {
71
+ readonly tag: "Bandwidth Stats Controller";
72
+ readonly description: "";
73
+ };
74
+ readonly KEYGEN: {
75
+ readonly tag: "Keygen Controller";
76
+ readonly description: "Generation of SSL_CERT for Remnawave Node.";
77
+ };
78
+ };
79
+ //# sourceMappingURL=controllers-info.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"controllers-info.d.ts","sourceRoot":"","sources":["../../../api/controllers-info.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgFnB,CAAC"}
@@ -0,0 +1,81 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CONTROLLERS_INFO = void 0;
4
+ exports.CONTROLLERS_INFO = {
5
+ AUTH: {
6
+ tag: 'Auth Controller',
7
+ description: 'Used to authenticate admin users.',
8
+ },
9
+ API_TOKENS: {
10
+ tag: 'API Tokens Controller',
11
+ description: "Manage API tokens to use in your code. This controller can't be used with API token, only with Admin JWT token",
12
+ },
13
+ USERS: {
14
+ tag: 'Users Controller',
15
+ description: 'Manage users, change their status, reset traffic, etc.',
16
+ },
17
+ USERS_BULK_ACTIONS: {
18
+ tag: 'Users Bulk Actions Controller',
19
+ description: 'Bulk actions with users.',
20
+ },
21
+ USERS_STATS: {
22
+ tag: 'Users Stats Controller',
23
+ description: '',
24
+ },
25
+ HWID_USER_DEVICES: {
26
+ tag: 'HWID User Devices Controller',
27
+ description: '',
28
+ },
29
+ SUBSCRIPTION: {
30
+ tag: '[Public] Subscription Controller',
31
+ description: 'Public Subscription Controller. Methods of this controller are not protected with auth. Use it only for public requests.',
32
+ },
33
+ SUBSCRIPTIONS: {
34
+ tag: '[Protected] Subscriptions Controller',
35
+ description: 'Methods of this controller are protected with auth, most of them is returning the same informations as public Subscription Controller.',
36
+ },
37
+ CONFIG_PROFILES: {
38
+ tag: 'Config Profiles Controller',
39
+ description: 'Management of Config Profiles.',
40
+ },
41
+ INTERNAL_SQUADS: {
42
+ tag: 'Internal Squads Controller',
43
+ description: 'Management of Internal Squads.',
44
+ },
45
+ NODES: {
46
+ tag: 'Nodes Controller',
47
+ description: '',
48
+ },
49
+ HOSTS: {
50
+ tag: 'Hosts Controller',
51
+ description: '',
52
+ },
53
+ HOSTS_BULK_ACTIONS: {
54
+ tag: 'Hosts Bulk Actions Controller',
55
+ description: '',
56
+ },
57
+ SUBSCRIPTION_TEMPLATE: {
58
+ tag: 'Subscription Template Controller',
59
+ description: '',
60
+ },
61
+ SUBSCRIPTION_SETTINGS: {
62
+ tag: 'Subscription Settings Controller',
63
+ description: '',
64
+ },
65
+ INFRA_BILLING: {
66
+ tag: 'Infra Billing Controller',
67
+ description: '',
68
+ },
69
+ SYSTEM: {
70
+ tag: 'System Controller',
71
+ description: '',
72
+ },
73
+ BANDWIDTH_STATS: {
74
+ tag: 'Bandwidth Stats Controller',
75
+ description: '',
76
+ },
77
+ KEYGEN: {
78
+ tag: 'Keygen Controller',
79
+ description: 'Generation of SSL_CERT for Remnawave Node.',
80
+ },
81
+ };
@@ -1,3 +1,4 @@
1
1
  export * from './controllers';
2
+ export * from './controllers-info';
2
3
  export * from './routes';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../api/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../api/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC"}
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./controllers"), exports);
18
+ __exportStar(require("./controllers-info"), exports);
18
19
  __exportStar(require("./routes"), exports);
@@ -84,7 +84,6 @@ export declare const REST_API: {
84
84
  readonly GET: (shortUuid: string) => string;
85
85
  readonly GET_OUTLINE: (shortUuid: string) => string;
86
86
  readonly GET_INFO: (shortUuid: string) => string;
87
- readonly GET_RAW: (shortUuid: string) => string;
88
87
  };
89
88
  readonly HOSTS: {
90
89
  readonly CREATE: "/api/hosts/";
@@ -130,6 +129,7 @@ export declare const REST_API: {
130
129
  readonly CREATE_USER_HWID_DEVICE: "/api/hwid/devices";
131
130
  readonly GET_USER_HWID_DEVICES: (userUuid: string) => string;
132
131
  readonly DELETE_USER_HWID_DEVICE: "/api/hwid/devices/delete";
132
+ readonly DELETE_ALL_USER_HWID_DEVICES: "/api/hwid/devices/delete-all";
133
133
  };
134
134
  readonly SUBSCRIPTIONS: {
135
135
  readonly GET: "/api/subscriptions/";
@@ -137,6 +137,7 @@ export declare const REST_API: {
137
137
  readonly USERNAME: (username: string) => string;
138
138
  readonly UUID: (uuid: string) => string;
139
139
  readonly SHORT_UUID: (shortUuid: string) => string;
140
+ readonly SHORT_UUID_RAW: (shortUuid: string) => string;
140
141
  };
141
142
  };
142
143
  readonly CONFIG_PROFILES: {
@@ -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;;;;;;;;;;;;;gCAcE,MAAM;;;;;;;;;qCAYD,MAAM;;gCAGX,MAAM;;oCAIF,MAAM;qCAIL,MAAM;qCAIN,MAAM;;;;;;iDAUM,MAAM;;;;;;;;gCAWvB,MAAM;qCAGD,MAAM;0CAED,MAAM;;qCAIX,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;sCAIP,MAAM;;;;;;qCASP,MAAM;gCAEX,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;qCA+BD,MAAM;;;;;;;;;mDAYQ,MAAM;;;;;;0CASf,MAAM;kCAId,MAAM;6CAIK,MAAM;;;;;;;qCAUd,MAAM;gCAIX,MAAM;sDAIgB,MAAM;;;;;;;qCAUvB,MAAM;gCAIX,MAAM;0CAII,MAAM;;uCAKT,MAAM;0CAEH,MAAM;;;;;;;yCASP,MAAM;8CAED,MAAM;;;;6CAMP,MAAM;;;gDAKH,MAAM;;CAGnC,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;;;;;;;;;;;;;gCAcE,MAAM;;;;;;;;;qCAYD,MAAM;;gCAGX,MAAM;;oCAIF,MAAM;qCAIL,MAAM;qCAIN,MAAM;;;;;;iDAUM,MAAM;;;;;;;;gCAWvB,MAAM;qCAGD,MAAM;0CAED,MAAM;;qCAIX,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;qCA+BD,MAAM;;;;;;;;;mDAYQ,MAAM;;;;;;;0CAUf,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;;CAGnC,CAAC"}
@@ -121,7 +121,6 @@ exports.REST_API = {
121
121
  GET: (shortUuid) => `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_ROUTES.GET}${shortUuid}`,
122
122
  GET_OUTLINE: (shortUuid) => `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_ROUTES.GET_OUTLINE}/${shortUuid}`,
123
123
  GET_INFO: (shortUuid) => `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_ROUTES.GET_INFO(shortUuid)}`,
124
- GET_RAW: (shortUuid) => `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_ROUTES.GET_RAW(shortUuid)}`,
125
124
  },
126
125
  HOSTS: {
127
126
  CREATE: `${exports.ROOT}/${CONTROLLERS.HOSTS_CONTROLLER}/${CONTROLLERS.HOSTS_ROUTES.CREATE}`,
@@ -167,6 +166,7 @@ exports.REST_API = {
167
166
  CREATE_USER_HWID_DEVICE: `${exports.ROOT}/${CONTROLLERS.HWID_CONTROLLER}/${CONTROLLERS.HWID_ROUTES.CREATE_USER_HWID_DEVICE}`,
168
167
  GET_USER_HWID_DEVICES: (userUuid) => `${exports.ROOT}/${CONTROLLERS.HWID_CONTROLLER}/${CONTROLLERS.HWID_ROUTES.GET_USER_HWID_DEVICES(userUuid)}`,
169
168
  DELETE_USER_HWID_DEVICE: `${exports.ROOT}/${CONTROLLERS.HWID_CONTROLLER}/${CONTROLLERS.HWID_ROUTES.DELETE_USER_HWID_DEVICE}`,
169
+ DELETE_ALL_USER_HWID_DEVICES: `${exports.ROOT}/${CONTROLLERS.HWID_CONTROLLER}/${CONTROLLERS.HWID_ROUTES.DELETE_ALL_USER_HWID_DEVICES}`,
170
170
  },
171
171
  SUBSCRIPTIONS: {
172
172
  GET: `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTIONS_CONTROLLER}/${CONTROLLERS.SUBSCRIPTIONS_ROUTES.GET}`,
@@ -174,6 +174,7 @@ exports.REST_API = {
174
174
  USERNAME: (username) => `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTIONS_CONTROLLER}/${CONTROLLERS.SUBSCRIPTIONS_ROUTES.GET_BY.USERNAME(username)}`,
175
175
  UUID: (uuid) => `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTIONS_CONTROLLER}/${CONTROLLERS.SUBSCRIPTIONS_ROUTES.GET_BY.UUID(uuid)}`,
176
176
  SHORT_UUID: (shortUuid) => `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTIONS_CONTROLLER}/${CONTROLLERS.SUBSCRIPTIONS_ROUTES.GET_BY.SHORT_UUID(shortUuid)}`,
177
+ SHORT_UUID_RAW: (shortUuid) => `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTIONS_CONTROLLER}/${CONTROLLERS.SUBSCRIPTIONS_ROUTES.GET_BY.SHORT_UUID_RAW(shortUuid)}`,
177
178
  },
178
179
  },
179
180
  CONFIG_PROFILES: {
@@ -0,0 +1,101 @@
1
+ import { z } from 'zod';
2
+ export declare namespace DeleteAllUserHwidDevicesCommand {
3
+ const url: "/api/hwid/devices/delete-all";
4
+ const TSQ_url: "/api/hwid/devices/delete-all";
5
+ const endpointDetails: import("../../constants").EndpointDetails;
6
+ const RequestSchema: z.ZodObject<{
7
+ userUuid: z.ZodString;
8
+ }, "strip", z.ZodTypeAny, {
9
+ userUuid: string;
10
+ }, {
11
+ userUuid: string;
12
+ }>;
13
+ type Request = z.infer<typeof RequestSchema>;
14
+ const ResponseSchema: z.ZodObject<{
15
+ response: z.ZodObject<{
16
+ total: z.ZodNumber;
17
+ devices: z.ZodArray<z.ZodObject<{
18
+ hwid: z.ZodString;
19
+ userUuid: z.ZodString;
20
+ platform: z.ZodNullable<z.ZodString>;
21
+ osVersion: z.ZodNullable<z.ZodString>;
22
+ deviceModel: z.ZodNullable<z.ZodString>;
23
+ userAgent: z.ZodNullable<z.ZodString>;
24
+ createdAt: z.ZodEffects<z.ZodString, Date, string>;
25
+ updatedAt: z.ZodEffects<z.ZodString, Date, string>;
26
+ }, "strip", z.ZodTypeAny, {
27
+ hwid: string;
28
+ createdAt: Date;
29
+ updatedAt: Date;
30
+ userUuid: string;
31
+ platform: string | null;
32
+ osVersion: string | null;
33
+ deviceModel: string | null;
34
+ userAgent: string | null;
35
+ }, {
36
+ hwid: string;
37
+ createdAt: string;
38
+ updatedAt: string;
39
+ userUuid: string;
40
+ platform: string | null;
41
+ osVersion: string | null;
42
+ deviceModel: string | null;
43
+ userAgent: string | null;
44
+ }>, "many">;
45
+ }, "strip", z.ZodTypeAny, {
46
+ devices: {
47
+ hwid: string;
48
+ createdAt: Date;
49
+ updatedAt: Date;
50
+ userUuid: string;
51
+ platform: string | null;
52
+ osVersion: string | null;
53
+ deviceModel: string | null;
54
+ userAgent: string | null;
55
+ }[];
56
+ total: number;
57
+ }, {
58
+ devices: {
59
+ hwid: string;
60
+ createdAt: string;
61
+ updatedAt: string;
62
+ userUuid: string;
63
+ platform: string | null;
64
+ osVersion: string | null;
65
+ deviceModel: string | null;
66
+ userAgent: string | null;
67
+ }[];
68
+ total: number;
69
+ }>;
70
+ }, "strip", z.ZodTypeAny, {
71
+ response: {
72
+ devices: {
73
+ hwid: string;
74
+ createdAt: Date;
75
+ updatedAt: Date;
76
+ userUuid: string;
77
+ platform: string | null;
78
+ osVersion: string | null;
79
+ deviceModel: string | null;
80
+ userAgent: string | null;
81
+ }[];
82
+ total: number;
83
+ };
84
+ }, {
85
+ response: {
86
+ devices: {
87
+ hwid: string;
88
+ createdAt: string;
89
+ updatedAt: string;
90
+ userUuid: string;
91
+ platform: string | null;
92
+ osVersion: string | null;
93
+ deviceModel: string | null;
94
+ userAgent: string | null;
95
+ }[];
96
+ total: number;
97
+ };
98
+ }>;
99
+ type Response = z.infer<typeof ResponseSchema>;
100
+ }
101
+ //# sourceMappingURL=delete-all-user-hwid-devices.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-all-user-hwid-devices.command.d.ts","sourceRoot":"","sources":["../../../../commands/hwid/delete-all-user-hwid-devices.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,+BAA+B,CAAC;IACtC,MAAM,GAAG,gCAA6C,CAAC;IACvD,MAAM,OAAO,gCAAM,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAKzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeleteAllUserHwidDevicesCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const constants_1 = require("../../constants");
6
+ const models_1 = require("../../models");
7
+ const api_1 = require("../../api");
8
+ var DeleteAllUserHwidDevicesCommand;
9
+ (function (DeleteAllUserHwidDevicesCommand) {
10
+ DeleteAllUserHwidDevicesCommand.url = api_1.REST_API.HWID.DELETE_ALL_USER_HWID_DEVICES;
11
+ DeleteAllUserHwidDevicesCommand.TSQ_url = DeleteAllUserHwidDevicesCommand.url;
12
+ DeleteAllUserHwidDevicesCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.HWID_ROUTES.DELETE_ALL_USER_HWID_DEVICES, 'post', 'Delete all user HWID devices');
13
+ DeleteAllUserHwidDevicesCommand.RequestSchema = zod_1.z.object({
14
+ userUuid: zod_1.z.string().uuid(),
15
+ });
16
+ DeleteAllUserHwidDevicesCommand.ResponseSchema = zod_1.z.object({
17
+ response: zod_1.z.object({
18
+ total: zod_1.z.number(),
19
+ devices: zod_1.z.array(models_1.HwidUserDeviceSchema),
20
+ }),
21
+ });
22
+ })(DeleteAllUserHwidDevicesCommand || (exports.DeleteAllUserHwidDevicesCommand = DeleteAllUserHwidDevicesCommand = {}));
@@ -1,4 +1,5 @@
1
1
  export * from './create-user-hwid-device.command';
2
+ export * from './delete-all-user-hwid-devices.command';
2
3
  export * from './delete-user-hwid-device.command';
3
4
  export * from './get-user-hwid-devices.command';
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commands/hwid/index.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAC;AAClD,cAAc,mCAAmC,CAAC;AAClD,cAAc,iCAAiC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commands/hwid/index.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAC;AAClD,cAAc,wCAAwC,CAAC;AACvD,cAAc,mCAAmC,CAAC;AAClD,cAAc,iCAAiC,CAAC"}
@@ -15,5 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./create-user-hwid-device.command"), exports);
18
+ __exportStar(require("./delete-all-user-hwid-devices.command"), exports);
18
19
  __exportStar(require("./delete-user-hwid-device.command"), exports);
19
20
  __exportStar(require("./get-user-hwid-devices.command"), exports);
@@ -9,7 +9,7 @@ var GetSubscriptionInfoByShortUuidCommand;
9
9
  (function (GetSubscriptionInfoByShortUuidCommand) {
10
10
  GetSubscriptionInfoByShortUuidCommand.url = api_1.REST_API.SUBSCRIPTION.GET_INFO;
11
11
  GetSubscriptionInfoByShortUuidCommand.TSQ_url = GetSubscriptionInfoByShortUuidCommand.url(':shortUuid');
12
- GetSubscriptionInfoByShortUuidCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.SUBSCRIPTION_ROUTES.GET_INFO(':shortUuid'), 'get', 'Public endpoint: Get Subscription Info by Short UUID');
12
+ GetSubscriptionInfoByShortUuidCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.SUBSCRIPTION_ROUTES.GET_INFO(':shortUuid'), 'get', 'Get Subscription Info by Short UUID');
13
13
  GetSubscriptionInfoByShortUuidCommand.RequestSchema = zod_1.z.object({
14
14
  shortUuid: zod_1.z.string(),
15
15
  });
@@ -1,5 +1,5 @@
1
+ export * from '../subscriptions/get-by/get-raw-subscription-by-short-uuid.command';
1
2
  export * from './get-outline-subscription-by-short-uuid.command';
2
- export * from './get-raw-subscription-by-short-uuid.command';
3
3
  export * from './get-subscription-by-short-uuid-by-client-type.command';
4
4
  export * from './get-subscription-by-short-uuid.command';
5
5
  export * from './get-subscription-info-by-short-uuid.command';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commands/subscription/index.ts"],"names":[],"mappings":"AAAA,cAAc,kDAAkD,CAAC;AACjE,cAAc,8CAA8C,CAAC;AAC7D,cAAc,yDAAyD,CAAC;AACxE,cAAc,0CAA0C,CAAC;AACzD,cAAc,+CAA+C,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commands/subscription/index.ts"],"names":[],"mappings":"AAAA,cAAc,oEAAoE,CAAC;AACnF,cAAc,kDAAkD,CAAC;AACjE,cAAc,yDAAyD,CAAC;AACxE,cAAc,0CAA0C,CAAC;AACzD,cAAc,+CAA+C,CAAC"}
@@ -14,8 +14,8 @@ 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("../subscriptions/get-by/get-raw-subscription-by-short-uuid.command"), exports);
17
18
  __exportStar(require("./get-outline-subscription-by-short-uuid.command"), exports);
18
- __exportStar(require("./get-raw-subscription-by-short-uuid.command"), exports);
19
19
  __exportStar(require("./get-subscription-by-short-uuid-by-client-type.command"), exports);
20
20
  __exportStar(require("./get-subscription-by-short-uuid.command"), exports);
21
21
  __exportStar(require("./get-subscription-info-by-short-uuid.command"), exports);