@remnawave/backend-contract 0.3.62 → 0.3.64

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 (41) hide show
  1. package/build/backend/api/controllers/users.d.ts +1 -0
  2. package/build/backend/api/controllers/users.d.ts.map +1 -1
  3. package/build/backend/api/controllers/users.js +1 -0
  4. package/build/backend/api/routes.d.ts +1 -0
  5. package/build/backend/api/routes.d.ts.map +1 -1
  6. package/build/backend/api/routes.js +1 -0
  7. package/build/backend/commands/users/activate-all-inbounds.command.d.ts +231 -0
  8. package/build/backend/commands/users/activate-all-inbounds.command.d.ts.map +1 -0
  9. package/build/backend/commands/users/activate-all-inbounds.command.js +20 -0
  10. package/build/backend/commands/users/create-user.command.d.ts +5 -5
  11. package/build/backend/commands/users/disable-user.command.d.ts +5 -5
  12. package/build/backend/commands/users/enable-user.command.d.ts +5 -5
  13. package/build/backend/commands/users/get-all-users-v2.command.d.ts +7 -7
  14. package/build/backend/commands/users/get-user-by-email.command.d.ts +5 -5
  15. package/build/backend/commands/users/get-user-by-short-uuid.command.d.ts +5 -5
  16. package/build/backend/commands/users/get-user-by-subscription-uuid.command.d.ts +5 -5
  17. package/build/backend/commands/users/get-user-by-telegram-id.command.d.ts +5 -5
  18. package/build/backend/commands/users/get-user-by-username.command.d.ts +5 -5
  19. package/build/backend/commands/users/get-user-by-uuid.command.d.ts +5 -5
  20. package/build/backend/commands/users/index.d.ts +1 -0
  21. package/build/backend/commands/users/index.d.ts.map +1 -1
  22. package/build/backend/commands/users/index.js +1 -0
  23. package/build/backend/commands/users/reset-user-traffic.command.d.ts +5 -5
  24. package/build/backend/commands/users/revoke-user-subscription.command.d.ts +5 -5
  25. package/build/backend/commands/users/update-user.command.d.ts +6 -6
  26. package/build/backend/constants/errors/errors.d.ts +10 -0
  27. package/build/backend/constants/errors/errors.d.ts.map +1 -1
  28. package/build/backend/constants/errors/errors.js +10 -0
  29. package/build/backend/constants/events/events.d.ts +6 -0
  30. package/build/backend/constants/events/events.d.ts.map +1 -1
  31. package/build/backend/constants/events/events.js +6 -0
  32. package/build/backend/models/users.schema.d.ts +3 -3
  33. package/build/backend/models/users.schema.js +2 -2
  34. package/build/frontend/api/controllers/users.js +1 -0
  35. package/build/frontend/api/routes.js +1 -0
  36. package/build/frontend/commands/users/activate-all-inbounds.command.js +20 -0
  37. package/build/frontend/commands/users/index.js +1 -0
  38. package/build/frontend/constants/errors/errors.js +10 -0
  39. package/build/frontend/constants/events/events.js +6 -0
  40. package/build/frontend/models/users.schema.js +2 -2
  41. package/package.json +1 -1
@@ -12,6 +12,7 @@ export declare const USERS_ROUTES: {
12
12
  readonly DELETE_USER: "delete";
13
13
  readonly UPDATE: "update";
14
14
  readonly RESET_USER_TRAFFIC: "reset-traffic";
15
+ readonly ACTIVATE_ALL_INBOUNDS: "activate-all-inbounds";
15
16
  readonly BULK: {
16
17
  readonly DELETE_BY_STATUS: "bulk/delete-by-status";
17
18
  readonly UPDATE: "bulk/update";
@@ -1 +1 @@
1
- {"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../../../api/controllers/users.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,EAAG,OAAgB,CAAC;AAEjD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8Bf,CAAC"}
1
+ {"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../../../api/controllers/users.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,EAAG,OAAgB,CAAC;AAEjD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+Bf,CAAC"}
@@ -15,6 +15,7 @@ exports.USERS_ROUTES = {
15
15
  DELETE_USER: 'delete',
16
16
  UPDATE: 'update',
17
17
  RESET_USER_TRAFFIC: 'reset-traffic',
18
+ ACTIVATE_ALL_INBOUNDS: 'activate-all-inbounds',
18
19
  BULK: {
19
20
  DELETE_BY_STATUS: 'bulk/delete-by-status',
20
21
  UPDATE: 'bulk/update',
@@ -56,6 +56,7 @@ export declare const REST_API: {
56
56
  readonly ENABLE_USER: (uuid: string) => string;
57
57
  readonly DELETE_USER: (uuid: string) => string;
58
58
  readonly UPDATE: "/api/users/update";
59
+ readonly ACTIVATE_ALL_INBOUNDS: (uuid: string) => string;
59
60
  readonly GET_ALL_V2: "/api/users/v2";
60
61
  readonly RESET_USER_TRAFFIC: (uuid: string) => string;
61
62
  readonly BULK: {
@@ -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,cAAc,EAAG,SAAkB,CAAC;AAEjD,eAAO,MAAM,QAAQ;;;;;;;;gCAQE,MAAM;;;;;;;;gCASN,MAAM;;;iCAIL,MAAM;iCAEN,MAAM;iCAEN,MAAM;gCAEP,MAAM;;;;;;;;;;;;;;kDAeY,MAAM;;;;;;;;;;qCAWnB,MAAM;gDAEK,MAAM;6CAET,MAAM;8DAEW,MAAM;6CAEvB,MAAM;sCAEb,MAAM;qCAEP,MAAM;qCAEN,MAAM;;;4CAIC,MAAM;;;;;;;;;;;;;kDAcA,MAAM;uCAEjB,MAAM;;gDAGG,MAAM;;;;kCAKpB,MAAM;0CAEE,MAAM;uCAET,MAAM;;;;;;;;gCASb,MAAM;iCAEL,MAAM;;;;;;;;;;;;;;;0CAgBG,MAAM;;;;;;;CAQ7B,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,cAAc,EAAG,SAAkB,CAAC;AAEjD,eAAO,MAAM,QAAQ;;;;;;;;gCAQE,MAAM;;;;;;;;gCASN,MAAM;;;iCAIL,MAAM;iCAEN,MAAM;iCAEN,MAAM;gCAEP,MAAM;;;;;;;;;;;;;;kDAeY,MAAM;;;;;;;;;;qCAWnB,MAAM;gDAEK,MAAM;6CAET,MAAM;8DAEW,MAAM;6CAEvB,MAAM;sCAEb,MAAM;qCAEP,MAAM;qCAEN,MAAM;;+CAGI,MAAM;;4CAGT,MAAM;;;;;;;;;;;;;kDAcA,MAAM;uCAEjB,MAAM;;gDAGG,MAAM;;;;kCAKpB,MAAM;0CAEE,MAAM;uCAET,MAAM;;;;;;;;gCASb,MAAM;iCAEL,MAAM;;;;;;;;;;;;;;;0CAgBG,MAAM;;;;;;;CAQ7B,CAAC"}
@@ -93,6 +93,7 @@ exports.REST_API = {
93
93
  ENABLE_USER: (uuid) => `${exports.ROOT}/${CONTROLLERS.USERS_CONTROLLER}/${CONTROLLERS.USERS_ROUTES.ENABLE_USER}/${uuid}`,
94
94
  DELETE_USER: (uuid) => `${exports.ROOT}/${CONTROLLERS.USERS_CONTROLLER}/${CONTROLLERS.USERS_ROUTES.DELETE_USER}/${uuid}`,
95
95
  UPDATE: `${exports.ROOT}/${CONTROLLERS.USERS_CONTROLLER}/${CONTROLLERS.USERS_ROUTES.UPDATE}`,
96
+ ACTIVATE_ALL_INBOUNDS: (uuid) => `${exports.ROOT}/${CONTROLLERS.USERS_CONTROLLER}/${CONTROLLERS.USERS_ROUTES.ACTIVATE_ALL_INBOUNDS}/${uuid}`,
96
97
  GET_ALL_V2: `${exports.ROOT}/${CONTROLLERS.USERS_CONTROLLER}/${CONTROLLERS.USERS_ROUTES.GET_ALL_V2}`,
97
98
  RESET_USER_TRAFFIC: (uuid) => `${exports.ROOT}/${CONTROLLERS.USERS_CONTROLLER}/${CONTROLLERS.USERS_ROUTES.RESET_USER_TRAFFIC}/${uuid}`,
98
99
  BULK: {
@@ -0,0 +1,231 @@
1
+ import { z } from 'zod';
2
+ export declare namespace ActivateAllInboundsCommand {
3
+ const url: (uuid: string) => string;
4
+ const TSQ_url: string;
5
+ const RequestSchema: z.ZodObject<{
6
+ uuid: z.ZodString;
7
+ }, "strip", z.ZodTypeAny, {
8
+ uuid: string;
9
+ }, {
10
+ uuid: string;
11
+ }>;
12
+ type Request = z.infer<typeof RequestSchema>;
13
+ const ResponseSchema: z.ZodObject<{
14
+ response: z.ZodObject<z.objectUtil.extendShape<{
15
+ uuid: z.ZodString;
16
+ subscriptionUuid: z.ZodString;
17
+ shortUuid: z.ZodString;
18
+ username: z.ZodString;
19
+ status: z.ZodDefault<z.ZodNativeEnum<{
20
+ readonly ACTIVE: "ACTIVE";
21
+ readonly DISABLED: "DISABLED";
22
+ readonly LIMITED: "LIMITED";
23
+ readonly EXPIRED: "EXPIRED";
24
+ }>>;
25
+ usedTrafficBytes: z.ZodNumber;
26
+ lifetimeUsedTrafficBytes: z.ZodNumber;
27
+ trafficLimitBytes: z.ZodDefault<z.ZodNumber>;
28
+ trafficLimitStrategy: z.ZodDefault<z.ZodNativeEnum<{
29
+ readonly NO_RESET: "NO_RESET";
30
+ readonly DAY: "DAY";
31
+ readonly WEEK: "WEEK";
32
+ readonly MONTH: "MONTH";
33
+ }>>;
34
+ subLastUserAgent: z.ZodNullable<z.ZodString>;
35
+ subLastOpenedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
36
+ expireAt: z.ZodEffects<z.ZodString, Date, string>;
37
+ onlineAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
38
+ subRevokedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
39
+ lastTrafficResetAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
40
+ trojanPassword: z.ZodString;
41
+ vlessUuid: z.ZodString;
42
+ ssPassword: z.ZodString;
43
+ description: z.ZodNullable<z.ZodString>;
44
+ telegramId: z.ZodNullable<z.ZodNumber>;
45
+ email: z.ZodNullable<z.ZodString>;
46
+ createdAt: z.ZodEffects<z.ZodString, Date, string>;
47
+ updatedAt: z.ZodEffects<z.ZodString, Date, string>;
48
+ activeUserInbounds: z.ZodArray<z.ZodObject<{
49
+ uuid: z.ZodString;
50
+ tag: z.ZodString;
51
+ type: z.ZodString;
52
+ network: z.ZodNullable<z.ZodString>;
53
+ security: z.ZodNullable<z.ZodString>;
54
+ }, "strip", z.ZodTypeAny, {
55
+ uuid: string;
56
+ type: string;
57
+ tag: string;
58
+ network: string | null;
59
+ security: string | null;
60
+ }, {
61
+ uuid: string;
62
+ type: string;
63
+ tag: string;
64
+ network: string | null;
65
+ security: string | null;
66
+ }>, "many">;
67
+ }, {
68
+ subscriptionUrl: z.ZodString;
69
+ lastConnectedNode: z.ZodNullable<z.ZodObject<{
70
+ connectedAt: z.ZodEffects<z.ZodString, Date, string>;
71
+ nodeName: z.ZodString;
72
+ }, "strip", z.ZodTypeAny, {
73
+ connectedAt: Date;
74
+ nodeName: string;
75
+ }, {
76
+ connectedAt: string;
77
+ nodeName: string;
78
+ }>>;
79
+ }>, "strip", z.ZodTypeAny, {
80
+ status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
81
+ uuid: string;
82
+ username: string;
83
+ email: string | null;
84
+ createdAt: Date;
85
+ updatedAt: Date;
86
+ trafficLimitBytes: number;
87
+ subscriptionUuid: string;
88
+ shortUuid: string;
89
+ usedTrafficBytes: number;
90
+ lifetimeUsedTrafficBytes: number;
91
+ description: string | null;
92
+ trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
93
+ subLastUserAgent: string | null;
94
+ subLastOpenedAt: Date | null;
95
+ expireAt: Date;
96
+ onlineAt: Date | null;
97
+ subRevokedAt: Date | null;
98
+ lastTrafficResetAt: Date | null;
99
+ trojanPassword: string;
100
+ vlessUuid: string;
101
+ ssPassword: string;
102
+ telegramId: number | null;
103
+ activeUserInbounds: {
104
+ uuid: string;
105
+ type: string;
106
+ tag: string;
107
+ network: string | null;
108
+ security: string | null;
109
+ }[];
110
+ subscriptionUrl: string;
111
+ lastConnectedNode: {
112
+ connectedAt: Date;
113
+ nodeName: string;
114
+ } | null;
115
+ }, {
116
+ uuid: string;
117
+ username: string;
118
+ email: string | null;
119
+ createdAt: string;
120
+ updatedAt: string;
121
+ subscriptionUuid: string;
122
+ shortUuid: string;
123
+ usedTrafficBytes: number;
124
+ lifetimeUsedTrafficBytes: number;
125
+ description: string | null;
126
+ subLastUserAgent: string | null;
127
+ subLastOpenedAt: string | null;
128
+ expireAt: string;
129
+ onlineAt: string | null;
130
+ subRevokedAt: string | null;
131
+ lastTrafficResetAt: string | null;
132
+ trojanPassword: string;
133
+ vlessUuid: string;
134
+ ssPassword: string;
135
+ telegramId: number | null;
136
+ activeUserInbounds: {
137
+ uuid: string;
138
+ type: string;
139
+ tag: string;
140
+ network: string | null;
141
+ security: string | null;
142
+ }[];
143
+ subscriptionUrl: string;
144
+ lastConnectedNode: {
145
+ connectedAt: string;
146
+ nodeName: string;
147
+ } | null;
148
+ status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
149
+ trafficLimitBytes?: number | undefined;
150
+ trafficLimitStrategy?: "MONTH" | "NO_RESET" | "DAY" | "WEEK" | undefined;
151
+ }>;
152
+ }, "strip", z.ZodTypeAny, {
153
+ response: {
154
+ status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
155
+ uuid: string;
156
+ username: string;
157
+ email: string | null;
158
+ createdAt: Date;
159
+ updatedAt: Date;
160
+ trafficLimitBytes: number;
161
+ subscriptionUuid: string;
162
+ shortUuid: string;
163
+ usedTrafficBytes: number;
164
+ lifetimeUsedTrafficBytes: number;
165
+ description: string | null;
166
+ trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
167
+ subLastUserAgent: string | null;
168
+ subLastOpenedAt: Date | null;
169
+ expireAt: Date;
170
+ onlineAt: Date | null;
171
+ subRevokedAt: Date | null;
172
+ lastTrafficResetAt: Date | null;
173
+ trojanPassword: string;
174
+ vlessUuid: string;
175
+ ssPassword: string;
176
+ telegramId: number | null;
177
+ activeUserInbounds: {
178
+ uuid: string;
179
+ type: string;
180
+ tag: string;
181
+ network: string | null;
182
+ security: string | null;
183
+ }[];
184
+ subscriptionUrl: string;
185
+ lastConnectedNode: {
186
+ connectedAt: Date;
187
+ nodeName: string;
188
+ } | null;
189
+ };
190
+ }, {
191
+ response: {
192
+ uuid: string;
193
+ username: string;
194
+ email: string | null;
195
+ createdAt: string;
196
+ updatedAt: string;
197
+ subscriptionUuid: string;
198
+ shortUuid: string;
199
+ usedTrafficBytes: number;
200
+ lifetimeUsedTrafficBytes: number;
201
+ description: string | null;
202
+ subLastUserAgent: string | null;
203
+ subLastOpenedAt: string | null;
204
+ expireAt: string;
205
+ onlineAt: string | null;
206
+ subRevokedAt: string | null;
207
+ lastTrafficResetAt: string | null;
208
+ trojanPassword: string;
209
+ vlessUuid: string;
210
+ ssPassword: string;
211
+ telegramId: number | null;
212
+ activeUserInbounds: {
213
+ uuid: string;
214
+ type: string;
215
+ tag: string;
216
+ network: string | null;
217
+ security: string | null;
218
+ }[];
219
+ subscriptionUrl: string;
220
+ lastConnectedNode: {
221
+ connectedAt: string;
222
+ nodeName: string;
223
+ } | null;
224
+ status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
225
+ trafficLimitBytes?: number | undefined;
226
+ trafficLimitStrategy?: "MONTH" | "NO_RESET" | "DAY" | "WEEK" | undefined;
227
+ };
228
+ }>;
229
+ type Response = z.infer<typeof ResponseSchema>;
230
+ }
231
+ //# sourceMappingURL=activate-all-inbounds.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"activate-all-inbounds.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/activate-all-inbounds.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,0BAA0B,CAAC;IACjC,MAAM,GAAG,0BAAuC,CAAC;IACjD,MAAM,OAAO,QAAe,CAAC;IAE7B,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,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ActivateAllInboundsCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../models");
6
+ const api_1 = require("../../api");
7
+ var ActivateAllInboundsCommand;
8
+ (function (ActivateAllInboundsCommand) {
9
+ ActivateAllInboundsCommand.url = api_1.REST_API.USERS.ACTIVATE_ALL_INBOUNDS;
10
+ ActivateAllInboundsCommand.TSQ_url = ActivateAllInboundsCommand.url(':uuid');
11
+ ActivateAllInboundsCommand.RequestSchema = zod_1.z.object({
12
+ uuid: zod_1.z.string().uuid(),
13
+ });
14
+ ActivateAllInboundsCommand.ResponseSchema = zod_1.z.object({
15
+ response: models_1.UsersSchema.extend({
16
+ subscriptionUrl: zod_1.z.string(),
17
+ lastConnectedNode: models_1.LastConnectedNodeSchema,
18
+ }),
19
+ });
20
+ })(ActivateAllInboundsCommand || (exports.ActivateAllInboundsCommand = ActivateAllInboundsCommand = {}));
@@ -91,7 +91,7 @@ export declare namespace CreateUserCommand {
91
91
  }>>;
92
92
  subLastUserAgent: z.ZodNullable<z.ZodString>;
93
93
  subLastOpenedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
94
- expireAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
94
+ expireAt: z.ZodEffects<z.ZodString, Date, string>;
95
95
  onlineAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
96
96
  subRevokedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
97
97
  lastTrafficResetAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
@@ -150,7 +150,7 @@ export declare namespace CreateUserCommand {
150
150
  trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
151
151
  subLastUserAgent: string | null;
152
152
  subLastOpenedAt: Date | null;
153
- expireAt: Date | null;
153
+ expireAt: Date;
154
154
  onlineAt: Date | null;
155
155
  subRevokedAt: Date | null;
156
156
  lastTrafficResetAt: Date | null;
@@ -183,7 +183,7 @@ export declare namespace CreateUserCommand {
183
183
  description: string | null;
184
184
  subLastUserAgent: string | null;
185
185
  subLastOpenedAt: string | null;
186
- expireAt: string | null;
186
+ expireAt: string;
187
187
  onlineAt: string | null;
188
188
  subRevokedAt: string | null;
189
189
  lastTrafficResetAt: string | null;
@@ -224,7 +224,7 @@ export declare namespace CreateUserCommand {
224
224
  trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
225
225
  subLastUserAgent: string | null;
226
226
  subLastOpenedAt: Date | null;
227
- expireAt: Date | null;
227
+ expireAt: Date;
228
228
  onlineAt: Date | null;
229
229
  subRevokedAt: Date | null;
230
230
  lastTrafficResetAt: Date | null;
@@ -259,7 +259,7 @@ export declare namespace CreateUserCommand {
259
259
  description: string | null;
260
260
  subLastUserAgent: string | null;
261
261
  subLastOpenedAt: string | null;
262
- expireAt: string | null;
262
+ expireAt: string;
263
263
  onlineAt: string | null;
264
264
  subRevokedAt: string | null;
265
265
  lastTrafficResetAt: string | null;
@@ -33,7 +33,7 @@ export declare namespace DisableUserCommand {
33
33
  }>>;
34
34
  subLastUserAgent: z.ZodNullable<z.ZodString>;
35
35
  subLastOpenedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
36
- expireAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
36
+ expireAt: z.ZodEffects<z.ZodString, Date, string>;
37
37
  onlineAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
38
38
  subRevokedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
39
39
  lastTrafficResetAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
@@ -92,7 +92,7 @@ export declare namespace DisableUserCommand {
92
92
  trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
93
93
  subLastUserAgent: string | null;
94
94
  subLastOpenedAt: Date | null;
95
- expireAt: Date | null;
95
+ expireAt: Date;
96
96
  onlineAt: Date | null;
97
97
  subRevokedAt: Date | null;
98
98
  lastTrafficResetAt: Date | null;
@@ -125,7 +125,7 @@ export declare namespace DisableUserCommand {
125
125
  description: string | null;
126
126
  subLastUserAgent: string | null;
127
127
  subLastOpenedAt: string | null;
128
- expireAt: string | null;
128
+ expireAt: string;
129
129
  onlineAt: string | null;
130
130
  subRevokedAt: string | null;
131
131
  lastTrafficResetAt: string | null;
@@ -166,7 +166,7 @@ export declare namespace DisableUserCommand {
166
166
  trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
167
167
  subLastUserAgent: string | null;
168
168
  subLastOpenedAt: Date | null;
169
- expireAt: Date | null;
169
+ expireAt: Date;
170
170
  onlineAt: Date | null;
171
171
  subRevokedAt: Date | null;
172
172
  lastTrafficResetAt: Date | null;
@@ -201,7 +201,7 @@ export declare namespace DisableUserCommand {
201
201
  description: string | null;
202
202
  subLastUserAgent: string | null;
203
203
  subLastOpenedAt: string | null;
204
- expireAt: string | null;
204
+ expireAt: string;
205
205
  onlineAt: string | null;
206
206
  subRevokedAt: string | null;
207
207
  lastTrafficResetAt: string | null;
@@ -33,7 +33,7 @@ export declare namespace EnableUserCommand {
33
33
  }>>;
34
34
  subLastUserAgent: z.ZodNullable<z.ZodString>;
35
35
  subLastOpenedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
36
- expireAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
36
+ expireAt: z.ZodEffects<z.ZodString, Date, string>;
37
37
  onlineAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
38
38
  subRevokedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
39
39
  lastTrafficResetAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
@@ -92,7 +92,7 @@ export declare namespace EnableUserCommand {
92
92
  trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
93
93
  subLastUserAgent: string | null;
94
94
  subLastOpenedAt: Date | null;
95
- expireAt: Date | null;
95
+ expireAt: Date;
96
96
  onlineAt: Date | null;
97
97
  subRevokedAt: Date | null;
98
98
  lastTrafficResetAt: Date | null;
@@ -125,7 +125,7 @@ export declare namespace EnableUserCommand {
125
125
  description: string | null;
126
126
  subLastUserAgent: string | null;
127
127
  subLastOpenedAt: string | null;
128
- expireAt: string | null;
128
+ expireAt: string;
129
129
  onlineAt: string | null;
130
130
  subRevokedAt: string | null;
131
131
  lastTrafficResetAt: string | null;
@@ -166,7 +166,7 @@ export declare namespace EnableUserCommand {
166
166
  trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
167
167
  subLastUserAgent: string | null;
168
168
  subLastOpenedAt: Date | null;
169
- expireAt: Date | null;
169
+ expireAt: Date;
170
170
  onlineAt: Date | null;
171
171
  subRevokedAt: Date | null;
172
172
  lastTrafficResetAt: Date | null;
@@ -201,7 +201,7 @@ export declare namespace EnableUserCommand {
201
201
  description: string | null;
202
202
  subLastUserAgent: string | null;
203
203
  subLastOpenedAt: string | null;
204
- expireAt: string | null;
204
+ expireAt: string;
205
205
  onlineAt: string | null;
206
206
  subRevokedAt: string | null;
207
207
  lastTrafficResetAt: string | null;
@@ -79,7 +79,7 @@ export declare namespace GetAllUsersV2Command {
79
79
  }>>;
80
80
  subLastUserAgent: z.ZodNullable<z.ZodString>;
81
81
  subLastOpenedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
82
- expireAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
82
+ expireAt: z.ZodEffects<z.ZodString, Date, string>;
83
83
  onlineAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
84
84
  subRevokedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
85
85
  lastTrafficResetAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
@@ -138,7 +138,7 @@ export declare namespace GetAllUsersV2Command {
138
138
  trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
139
139
  subLastUserAgent: string | null;
140
140
  subLastOpenedAt: Date | null;
141
- expireAt: Date | null;
141
+ expireAt: Date;
142
142
  onlineAt: Date | null;
143
143
  subRevokedAt: Date | null;
144
144
  lastTrafficResetAt: Date | null;
@@ -171,7 +171,7 @@ export declare namespace GetAllUsersV2Command {
171
171
  description: string | null;
172
172
  subLastUserAgent: string | null;
173
173
  subLastOpenedAt: string | null;
174
- expireAt: string | null;
174
+ expireAt: string;
175
175
  onlineAt: string | null;
176
176
  subRevokedAt: string | null;
177
177
  lastTrafficResetAt: string | null;
@@ -213,7 +213,7 @@ export declare namespace GetAllUsersV2Command {
213
213
  trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
214
214
  subLastUserAgent: string | null;
215
215
  subLastOpenedAt: Date | null;
216
- expireAt: Date | null;
216
+ expireAt: Date;
217
217
  onlineAt: Date | null;
218
218
  subRevokedAt: Date | null;
219
219
  lastTrafficResetAt: Date | null;
@@ -249,7 +249,7 @@ export declare namespace GetAllUsersV2Command {
249
249
  description: string | null;
250
250
  subLastUserAgent: string | null;
251
251
  subLastOpenedAt: string | null;
252
- expireAt: string | null;
252
+ expireAt: string;
253
253
  onlineAt: string | null;
254
254
  subRevokedAt: string | null;
255
255
  lastTrafficResetAt: string | null;
@@ -293,7 +293,7 @@ export declare namespace GetAllUsersV2Command {
293
293
  trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
294
294
  subLastUserAgent: string | null;
295
295
  subLastOpenedAt: Date | null;
296
- expireAt: Date | null;
296
+ expireAt: Date;
297
297
  onlineAt: Date | null;
298
298
  subRevokedAt: Date | null;
299
299
  lastTrafficResetAt: Date | null;
@@ -331,7 +331,7 @@ export declare namespace GetAllUsersV2Command {
331
331
  description: string | null;
332
332
  subLastUserAgent: string | null;
333
333
  subLastOpenedAt: string | null;
334
- expireAt: string | null;
334
+ expireAt: string;
335
335
  onlineAt: string | null;
336
336
  subRevokedAt: string | null;
337
337
  lastTrafficResetAt: string | null;
@@ -33,7 +33,7 @@ export declare namespace GetUserByEmailCommand {
33
33
  }>>;
34
34
  subLastUserAgent: z.ZodNullable<z.ZodString>;
35
35
  subLastOpenedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
36
- expireAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
36
+ expireAt: z.ZodEffects<z.ZodString, Date, string>;
37
37
  onlineAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
38
38
  subRevokedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
39
39
  lastTrafficResetAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
@@ -92,7 +92,7 @@ export declare namespace GetUserByEmailCommand {
92
92
  trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
93
93
  subLastUserAgent: string | null;
94
94
  subLastOpenedAt: Date | null;
95
- expireAt: Date | null;
95
+ expireAt: Date;
96
96
  onlineAt: Date | null;
97
97
  subRevokedAt: Date | null;
98
98
  lastTrafficResetAt: Date | null;
@@ -125,7 +125,7 @@ export declare namespace GetUserByEmailCommand {
125
125
  description: string | null;
126
126
  subLastUserAgent: string | null;
127
127
  subLastOpenedAt: string | null;
128
- expireAt: string | null;
128
+ expireAt: string;
129
129
  onlineAt: string | null;
130
130
  subRevokedAt: string | null;
131
131
  lastTrafficResetAt: string | null;
@@ -166,7 +166,7 @@ export declare namespace GetUserByEmailCommand {
166
166
  trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
167
167
  subLastUserAgent: string | null;
168
168
  subLastOpenedAt: Date | null;
169
- expireAt: Date | null;
169
+ expireAt: Date;
170
170
  onlineAt: Date | null;
171
171
  subRevokedAt: Date | null;
172
172
  lastTrafficResetAt: Date | null;
@@ -201,7 +201,7 @@ export declare namespace GetUserByEmailCommand {
201
201
  description: string | null;
202
202
  subLastUserAgent: string | null;
203
203
  subLastOpenedAt: string | null;
204
- expireAt: string | null;
204
+ expireAt: string;
205
205
  onlineAt: string | null;
206
206
  subRevokedAt: string | null;
207
207
  lastTrafficResetAt: string | null;
@@ -33,7 +33,7 @@ export declare namespace GetUserByShortUuidCommand {
33
33
  }>>;
34
34
  subLastUserAgent: z.ZodNullable<z.ZodString>;
35
35
  subLastOpenedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
36
- expireAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
36
+ expireAt: z.ZodEffects<z.ZodString, Date, string>;
37
37
  onlineAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
38
38
  subRevokedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
39
39
  lastTrafficResetAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
@@ -92,7 +92,7 @@ export declare namespace GetUserByShortUuidCommand {
92
92
  trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
93
93
  subLastUserAgent: string | null;
94
94
  subLastOpenedAt: Date | null;
95
- expireAt: Date | null;
95
+ expireAt: Date;
96
96
  onlineAt: Date | null;
97
97
  subRevokedAt: Date | null;
98
98
  lastTrafficResetAt: Date | null;
@@ -125,7 +125,7 @@ export declare namespace GetUserByShortUuidCommand {
125
125
  description: string | null;
126
126
  subLastUserAgent: string | null;
127
127
  subLastOpenedAt: string | null;
128
- expireAt: string | null;
128
+ expireAt: string;
129
129
  onlineAt: string | null;
130
130
  subRevokedAt: string | null;
131
131
  lastTrafficResetAt: string | null;
@@ -166,7 +166,7 @@ export declare namespace GetUserByShortUuidCommand {
166
166
  trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
167
167
  subLastUserAgent: string | null;
168
168
  subLastOpenedAt: Date | null;
169
- expireAt: Date | null;
169
+ expireAt: Date;
170
170
  onlineAt: Date | null;
171
171
  subRevokedAt: Date | null;
172
172
  lastTrafficResetAt: Date | null;
@@ -201,7 +201,7 @@ export declare namespace GetUserByShortUuidCommand {
201
201
  description: string | null;
202
202
  subLastUserAgent: string | null;
203
203
  subLastOpenedAt: string | null;
204
- expireAt: string | null;
204
+ expireAt: string;
205
205
  onlineAt: string | null;
206
206
  subRevokedAt: string | null;
207
207
  lastTrafficResetAt: string | null;
@@ -33,7 +33,7 @@ export declare namespace GetUserBySubscriptionUuidCommand {
33
33
  }>>;
34
34
  subLastUserAgent: z.ZodNullable<z.ZodString>;
35
35
  subLastOpenedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
36
- expireAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
36
+ expireAt: z.ZodEffects<z.ZodString, Date, string>;
37
37
  onlineAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
38
38
  subRevokedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
39
39
  lastTrafficResetAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
@@ -92,7 +92,7 @@ export declare namespace GetUserBySubscriptionUuidCommand {
92
92
  trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
93
93
  subLastUserAgent: string | null;
94
94
  subLastOpenedAt: Date | null;
95
- expireAt: Date | null;
95
+ expireAt: Date;
96
96
  onlineAt: Date | null;
97
97
  subRevokedAt: Date | null;
98
98
  lastTrafficResetAt: Date | null;
@@ -125,7 +125,7 @@ export declare namespace GetUserBySubscriptionUuidCommand {
125
125
  description: string | null;
126
126
  subLastUserAgent: string | null;
127
127
  subLastOpenedAt: string | null;
128
- expireAt: string | null;
128
+ expireAt: string;
129
129
  onlineAt: string | null;
130
130
  subRevokedAt: string | null;
131
131
  lastTrafficResetAt: string | null;
@@ -166,7 +166,7 @@ export declare namespace GetUserBySubscriptionUuidCommand {
166
166
  trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
167
167
  subLastUserAgent: string | null;
168
168
  subLastOpenedAt: Date | null;
169
- expireAt: Date | null;
169
+ expireAt: Date;
170
170
  onlineAt: Date | null;
171
171
  subRevokedAt: Date | null;
172
172
  lastTrafficResetAt: Date | null;
@@ -201,7 +201,7 @@ export declare namespace GetUserBySubscriptionUuidCommand {
201
201
  description: string | null;
202
202
  subLastUserAgent: string | null;
203
203
  subLastOpenedAt: string | null;
204
- expireAt: string | null;
204
+ expireAt: string;
205
205
  onlineAt: string | null;
206
206
  subRevokedAt: string | null;
207
207
  lastTrafficResetAt: string | null;
@@ -33,7 +33,7 @@ export declare namespace GetUserByTelegramIdCommand {
33
33
  }>>;
34
34
  subLastUserAgent: z.ZodNullable<z.ZodString>;
35
35
  subLastOpenedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
36
- expireAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
36
+ expireAt: z.ZodEffects<z.ZodString, Date, string>;
37
37
  onlineAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
38
38
  subRevokedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
39
39
  lastTrafficResetAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
@@ -92,7 +92,7 @@ export declare namespace GetUserByTelegramIdCommand {
92
92
  trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
93
93
  subLastUserAgent: string | null;
94
94
  subLastOpenedAt: Date | null;
95
- expireAt: Date | null;
95
+ expireAt: Date;
96
96
  onlineAt: Date | null;
97
97
  subRevokedAt: Date | null;
98
98
  lastTrafficResetAt: Date | null;
@@ -125,7 +125,7 @@ export declare namespace GetUserByTelegramIdCommand {
125
125
  description: string | null;
126
126
  subLastUserAgent: string | null;
127
127
  subLastOpenedAt: string | null;
128
- expireAt: string | null;
128
+ expireAt: string;
129
129
  onlineAt: string | null;
130
130
  subRevokedAt: string | null;
131
131
  lastTrafficResetAt: string | null;
@@ -166,7 +166,7 @@ export declare namespace GetUserByTelegramIdCommand {
166
166
  trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
167
167
  subLastUserAgent: string | null;
168
168
  subLastOpenedAt: Date | null;
169
- expireAt: Date | null;
169
+ expireAt: Date;
170
170
  onlineAt: Date | null;
171
171
  subRevokedAt: Date | null;
172
172
  lastTrafficResetAt: Date | null;
@@ -201,7 +201,7 @@ export declare namespace GetUserByTelegramIdCommand {
201
201
  description: string | null;
202
202
  subLastUserAgent: string | null;
203
203
  subLastOpenedAt: string | null;
204
- expireAt: string | null;
204
+ expireAt: string;
205
205
  onlineAt: string | null;
206
206
  subRevokedAt: string | null;
207
207
  lastTrafficResetAt: string | null;
@@ -33,7 +33,7 @@ export declare namespace GetUserByUsernameCommand {
33
33
  }>>;
34
34
  subLastUserAgent: z.ZodNullable<z.ZodString>;
35
35
  subLastOpenedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
36
- expireAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
36
+ expireAt: z.ZodEffects<z.ZodString, Date, string>;
37
37
  onlineAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
38
38
  subRevokedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
39
39
  lastTrafficResetAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
@@ -92,7 +92,7 @@ export declare namespace GetUserByUsernameCommand {
92
92
  trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
93
93
  subLastUserAgent: string | null;
94
94
  subLastOpenedAt: Date | null;
95
- expireAt: Date | null;
95
+ expireAt: Date;
96
96
  onlineAt: Date | null;
97
97
  subRevokedAt: Date | null;
98
98
  lastTrafficResetAt: Date | null;
@@ -125,7 +125,7 @@ export declare namespace GetUserByUsernameCommand {
125
125
  description: string | null;
126
126
  subLastUserAgent: string | null;
127
127
  subLastOpenedAt: string | null;
128
- expireAt: string | null;
128
+ expireAt: string;
129
129
  onlineAt: string | null;
130
130
  subRevokedAt: string | null;
131
131
  lastTrafficResetAt: string | null;
@@ -166,7 +166,7 @@ export declare namespace GetUserByUsernameCommand {
166
166
  trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
167
167
  subLastUserAgent: string | null;
168
168
  subLastOpenedAt: Date | null;
169
- expireAt: Date | null;
169
+ expireAt: Date;
170
170
  onlineAt: Date | null;
171
171
  subRevokedAt: Date | null;
172
172
  lastTrafficResetAt: Date | null;
@@ -201,7 +201,7 @@ export declare namespace GetUserByUsernameCommand {
201
201
  description: string | null;
202
202
  subLastUserAgent: string | null;
203
203
  subLastOpenedAt: string | null;
204
- expireAt: string | null;
204
+ expireAt: string;
205
205
  onlineAt: string | null;
206
206
  subRevokedAt: string | null;
207
207
  lastTrafficResetAt: string | null;
@@ -33,7 +33,7 @@ export declare namespace GetUserByUuidCommand {
33
33
  }>>;
34
34
  subLastUserAgent: z.ZodNullable<z.ZodString>;
35
35
  subLastOpenedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
36
- expireAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
36
+ expireAt: z.ZodEffects<z.ZodString, Date, string>;
37
37
  onlineAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
38
38
  subRevokedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
39
39
  lastTrafficResetAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
@@ -92,7 +92,7 @@ export declare namespace GetUserByUuidCommand {
92
92
  trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
93
93
  subLastUserAgent: string | null;
94
94
  subLastOpenedAt: Date | null;
95
- expireAt: Date | null;
95
+ expireAt: Date;
96
96
  onlineAt: Date | null;
97
97
  subRevokedAt: Date | null;
98
98
  lastTrafficResetAt: Date | null;
@@ -125,7 +125,7 @@ export declare namespace GetUserByUuidCommand {
125
125
  description: string | null;
126
126
  subLastUserAgent: string | null;
127
127
  subLastOpenedAt: string | null;
128
- expireAt: string | null;
128
+ expireAt: string;
129
129
  onlineAt: string | null;
130
130
  subRevokedAt: string | null;
131
131
  lastTrafficResetAt: string | null;
@@ -166,7 +166,7 @@ export declare namespace GetUserByUuidCommand {
166
166
  trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
167
167
  subLastUserAgent: string | null;
168
168
  subLastOpenedAt: Date | null;
169
- expireAt: Date | null;
169
+ expireAt: Date;
170
170
  onlineAt: Date | null;
171
171
  subRevokedAt: Date | null;
172
172
  lastTrafficResetAt: Date | null;
@@ -201,7 +201,7 @@ export declare namespace GetUserByUuidCommand {
201
201
  description: string | null;
202
202
  subLastUserAgent: string | null;
203
203
  subLastOpenedAt: string | null;
204
- expireAt: string | null;
204
+ expireAt: string;
205
205
  onlineAt: string | null;
206
206
  subRevokedAt: string | null;
207
207
  lastTrafficResetAt: string | null;
@@ -1,3 +1,4 @@
1
+ export * from './activate-all-inbounds.command';
1
2
  export * from './bulk';
2
3
  export * from './bulk-all';
3
4
  export * from './create-user.command';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commands/users/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kCAAkC,CAAC;AACjD,cAAc,yCAAyC,CAAC;AACxD,cAAc,mCAAmC,CAAC;AAClD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mCAAmC,CAAC;AAClD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oCAAoC,CAAC;AACnD,cAAc,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commands/users/index.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC;AAChD,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kCAAkC,CAAC;AACjD,cAAc,yCAAyC,CAAC;AACxD,cAAc,mCAAmC,CAAC;AAClD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mCAAmC,CAAC;AAClD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oCAAoC,CAAC;AACnD,cAAc,uBAAuB,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("./activate-all-inbounds.command"), exports);
17
18
  __exportStar(require("./bulk"), exports);
18
19
  __exportStar(require("./bulk-all"), exports);
19
20
  __exportStar(require("./create-user.command"), exports);
@@ -33,7 +33,7 @@ export declare namespace ResetUserTrafficCommand {
33
33
  }>>;
34
34
  subLastUserAgent: z.ZodNullable<z.ZodString>;
35
35
  subLastOpenedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
36
- expireAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
36
+ expireAt: z.ZodEffects<z.ZodString, Date, string>;
37
37
  onlineAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
38
38
  subRevokedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
39
39
  lastTrafficResetAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
@@ -92,7 +92,7 @@ export declare namespace ResetUserTrafficCommand {
92
92
  trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
93
93
  subLastUserAgent: string | null;
94
94
  subLastOpenedAt: Date | null;
95
- expireAt: Date | null;
95
+ expireAt: Date;
96
96
  onlineAt: Date | null;
97
97
  subRevokedAt: Date | null;
98
98
  lastTrafficResetAt: Date | null;
@@ -125,7 +125,7 @@ export declare namespace ResetUserTrafficCommand {
125
125
  description: string | null;
126
126
  subLastUserAgent: string | null;
127
127
  subLastOpenedAt: string | null;
128
- expireAt: string | null;
128
+ expireAt: string;
129
129
  onlineAt: string | null;
130
130
  subRevokedAt: string | null;
131
131
  lastTrafficResetAt: string | null;
@@ -166,7 +166,7 @@ export declare namespace ResetUserTrafficCommand {
166
166
  trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
167
167
  subLastUserAgent: string | null;
168
168
  subLastOpenedAt: Date | null;
169
- expireAt: Date | null;
169
+ expireAt: Date;
170
170
  onlineAt: Date | null;
171
171
  subRevokedAt: Date | null;
172
172
  lastTrafficResetAt: Date | null;
@@ -201,7 +201,7 @@ export declare namespace ResetUserTrafficCommand {
201
201
  description: string | null;
202
202
  subLastUserAgent: string | null;
203
203
  subLastOpenedAt: string | null;
204
- expireAt: string | null;
204
+ expireAt: string;
205
205
  onlineAt: string | null;
206
206
  subRevokedAt: string | null;
207
207
  lastTrafficResetAt: string | null;
@@ -33,7 +33,7 @@ export declare namespace RevokeUserSubscriptionCommand {
33
33
  }>>;
34
34
  subLastUserAgent: z.ZodNullable<z.ZodString>;
35
35
  subLastOpenedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
36
- expireAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
36
+ expireAt: z.ZodEffects<z.ZodString, Date, string>;
37
37
  onlineAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
38
38
  subRevokedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
39
39
  lastTrafficResetAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
@@ -92,7 +92,7 @@ export declare namespace RevokeUserSubscriptionCommand {
92
92
  trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
93
93
  subLastUserAgent: string | null;
94
94
  subLastOpenedAt: Date | null;
95
- expireAt: Date | null;
95
+ expireAt: Date;
96
96
  onlineAt: Date | null;
97
97
  subRevokedAt: Date | null;
98
98
  lastTrafficResetAt: Date | null;
@@ -125,7 +125,7 @@ export declare namespace RevokeUserSubscriptionCommand {
125
125
  description: string | null;
126
126
  subLastUserAgent: string | null;
127
127
  subLastOpenedAt: string | null;
128
- expireAt: string | null;
128
+ expireAt: string;
129
129
  onlineAt: string | null;
130
130
  subRevokedAt: string | null;
131
131
  lastTrafficResetAt: string | null;
@@ -166,7 +166,7 @@ export declare namespace RevokeUserSubscriptionCommand {
166
166
  trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
167
167
  subLastUserAgent: string | null;
168
168
  subLastOpenedAt: Date | null;
169
- expireAt: Date | null;
169
+ expireAt: Date;
170
170
  onlineAt: Date | null;
171
171
  subRevokedAt: Date | null;
172
172
  lastTrafficResetAt: Date | null;
@@ -201,7 +201,7 @@ export declare namespace RevokeUserSubscriptionCommand {
201
201
  description: string | null;
202
202
  subLastUserAgent: string | null;
203
203
  subLastOpenedAt: string | null;
204
- expireAt: string | null;
204
+ expireAt: string;
205
205
  onlineAt: string | null;
206
206
  subRevokedAt: string | null;
207
207
  lastTrafficResetAt: string | null;
@@ -24,7 +24,7 @@ export declare namespace UpdateUserCommand {
24
24
  }>>;
25
25
  subLastUserAgent: z.ZodNullable<z.ZodString>;
26
26
  subLastOpenedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
27
- expireAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
27
+ expireAt: z.ZodEffects<z.ZodString, Date, string>;
28
28
  onlineAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
29
29
  subRevokedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
30
30
  lastTrafficResetAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
@@ -119,7 +119,7 @@ export declare namespace UpdateUserCommand {
119
119
  }>>;
120
120
  subLastUserAgent: z.ZodNullable<z.ZodString>;
121
121
  subLastOpenedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
122
- expireAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
122
+ expireAt: z.ZodEffects<z.ZodString, Date, string>;
123
123
  onlineAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
124
124
  subRevokedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
125
125
  lastTrafficResetAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
@@ -178,7 +178,7 @@ export declare namespace UpdateUserCommand {
178
178
  trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
179
179
  subLastUserAgent: string | null;
180
180
  subLastOpenedAt: Date | null;
181
- expireAt: Date | null;
181
+ expireAt: Date;
182
182
  onlineAt: Date | null;
183
183
  subRevokedAt: Date | null;
184
184
  lastTrafficResetAt: Date | null;
@@ -211,7 +211,7 @@ export declare namespace UpdateUserCommand {
211
211
  description: string | null;
212
212
  subLastUserAgent: string | null;
213
213
  subLastOpenedAt: string | null;
214
- expireAt: string | null;
214
+ expireAt: string;
215
215
  onlineAt: string | null;
216
216
  subRevokedAt: string | null;
217
217
  lastTrafficResetAt: string | null;
@@ -252,7 +252,7 @@ export declare namespace UpdateUserCommand {
252
252
  trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
253
253
  subLastUserAgent: string | null;
254
254
  subLastOpenedAt: Date | null;
255
- expireAt: Date | null;
255
+ expireAt: Date;
256
256
  onlineAt: Date | null;
257
257
  subRevokedAt: Date | null;
258
258
  lastTrafficResetAt: Date | null;
@@ -287,7 +287,7 @@ export declare namespace UpdateUserCommand {
287
287
  description: string | null;
288
288
  subLastUserAgent: string | null;
289
289
  subLastOpenedAt: string | null;
290
- expireAt: string | null;
290
+ expireAt: string;
291
291
  onlineAt: string | null;
292
292
  subRevokedAt: string | null;
293
293
  lastTrafficResetAt: string | null;
@@ -484,5 +484,15 @@ export declare const ERRORS: {
484
484
  readonly message: "Get user usage by range error";
485
485
  readonly httpCode: 500;
486
486
  };
487
+ readonly KEYPAIR_NOT_FOUND: {
488
+ readonly code: "A092";
489
+ readonly message: "Keypair not found. Restart app.";
490
+ readonly httpCode: 500;
491
+ };
492
+ readonly ACTIVATE_ALL_INBOUNDS_ERROR: {
493
+ readonly code: "A093";
494
+ readonly message: "Activate all inbounds error";
495
+ readonly httpCode: 500;
496
+ };
487
497
  };
488
498
  //# 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyJ3B,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmK3B,CAAC"}
@@ -455,4 +455,14 @@ exports.ERRORS = {
455
455
  message: 'Get user usage by range error',
456
456
  httpCode: 500,
457
457
  },
458
+ KEYPAIR_NOT_FOUND: {
459
+ code: 'A092',
460
+ message: 'Keypair not found. Restart app.',
461
+ httpCode: 500,
462
+ },
463
+ ACTIVATE_ALL_INBOUNDS_ERROR: {
464
+ code: 'A093',
465
+ message: 'Activate all inbounds error',
466
+ httpCode: 500,
467
+ },
458
468
  };
@@ -10,6 +10,12 @@ export declare const EVENTS: {
10
10
  readonly EXPIRED: "user.expired";
11
11
  readonly TRAFFIC_RESET: "user.traffic_reset";
12
12
  readonly TRAFFIC_REACHED: "user.traffic_reached";
13
+ readonly EXPIRE_NOTIFY: {
14
+ readonly EXPIRES_IN_72_HOURS: "user.expires_in_72_hours";
15
+ readonly EXPIRES_IN_48_HOURS: "user.expires_in_48_hours";
16
+ readonly EXPIRES_IN_24_HOURS: "user.expires_in_24_hours";
17
+ readonly EXPIRED_24_HOURS_AGO: "user.expired_24_hours_ago";
18
+ };
13
19
  };
14
20
  readonly NODE: {
15
21
  readonly CREATED: "node.created";
@@ -1 +1 @@
1
- {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../../constants/events/events.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;CA0BT,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC,MAAM,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC;AACzE,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC,MAAM,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC"}
1
+ {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../../constants/events/events.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgCT,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC,MAAM,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC;AACzE,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC,MAAM,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC"}
@@ -13,6 +13,12 @@ exports.EVENTS = {
13
13
  EXPIRED: 'user.expired',
14
14
  TRAFFIC_RESET: 'user.traffic_reset',
15
15
  TRAFFIC_REACHED: 'user.traffic_reached',
16
+ EXPIRE_NOTIFY: {
17
+ EXPIRES_IN_72_HOURS: 'user.expires_in_72_hours',
18
+ EXPIRES_IN_48_HOURS: 'user.expires_in_48_hours',
19
+ EXPIRES_IN_24_HOURS: 'user.expires_in_24_hours',
20
+ EXPIRED_24_HOURS_AGO: 'user.expired_24_hours_ago',
21
+ },
16
22
  },
17
23
  NODE: {
18
24
  CREATED: 'node.created',
@@ -21,7 +21,7 @@ export declare const UsersSchema: z.ZodObject<{
21
21
  }>>;
22
22
  subLastUserAgent: z.ZodNullable<z.ZodString>;
23
23
  subLastOpenedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
24
- expireAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
24
+ expireAt: z.ZodEffects<z.ZodString, Date, string>;
25
25
  onlineAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
26
26
  subRevokedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
27
27
  lastTrafficResetAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
@@ -68,7 +68,7 @@ export declare const UsersSchema: z.ZodObject<{
68
68
  trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
69
69
  subLastUserAgent: string | null;
70
70
  subLastOpenedAt: Date | null;
71
- expireAt: Date | null;
71
+ expireAt: Date;
72
72
  onlineAt: Date | null;
73
73
  subRevokedAt: Date | null;
74
74
  lastTrafficResetAt: Date | null;
@@ -96,7 +96,7 @@ export declare const UsersSchema: z.ZodObject<{
96
96
  description: string | null;
97
97
  subLastUserAgent: string | null;
98
98
  subLastOpenedAt: string | null;
99
- expireAt: string | null;
99
+ expireAt: string;
100
100
  onlineAt: string | null;
101
101
  subRevokedAt: string | null;
102
102
  lastTrafficResetAt: string | null;
@@ -23,10 +23,10 @@ exports.UsersSchema = zod_1.z.object({
23
23
  .string()
24
24
  .datetime()
25
25
  .transform((str) => new Date(str))),
26
- expireAt: zod_1.z.nullable(zod_1.z
26
+ expireAt: zod_1.z
27
27
  .string()
28
28
  .datetime()
29
- .transform((str) => new Date(str))),
29
+ .transform((str) => new Date(str)),
30
30
  onlineAt: zod_1.z.nullable(zod_1.z
31
31
  .string()
32
32
  .datetime()
@@ -15,6 +15,7 @@ exports.USERS_ROUTES = {
15
15
  DELETE_USER: 'delete',
16
16
  UPDATE: 'update',
17
17
  RESET_USER_TRAFFIC: 'reset-traffic',
18
+ ACTIVATE_ALL_INBOUNDS: 'activate-all-inbounds',
18
19
  BULK: {
19
20
  DELETE_BY_STATUS: 'bulk/delete-by-status',
20
21
  UPDATE: 'bulk/update',
@@ -93,6 +93,7 @@ exports.REST_API = {
93
93
  ENABLE_USER: (uuid) => `${exports.ROOT}/${CONTROLLERS.USERS_CONTROLLER}/${CONTROLLERS.USERS_ROUTES.ENABLE_USER}/${uuid}`,
94
94
  DELETE_USER: (uuid) => `${exports.ROOT}/${CONTROLLERS.USERS_CONTROLLER}/${CONTROLLERS.USERS_ROUTES.DELETE_USER}/${uuid}`,
95
95
  UPDATE: `${exports.ROOT}/${CONTROLLERS.USERS_CONTROLLER}/${CONTROLLERS.USERS_ROUTES.UPDATE}`,
96
+ ACTIVATE_ALL_INBOUNDS: (uuid) => `${exports.ROOT}/${CONTROLLERS.USERS_CONTROLLER}/${CONTROLLERS.USERS_ROUTES.ACTIVATE_ALL_INBOUNDS}/${uuid}`,
96
97
  GET_ALL_V2: `${exports.ROOT}/${CONTROLLERS.USERS_CONTROLLER}/${CONTROLLERS.USERS_ROUTES.GET_ALL_V2}`,
97
98
  RESET_USER_TRAFFIC: (uuid) => `${exports.ROOT}/${CONTROLLERS.USERS_CONTROLLER}/${CONTROLLERS.USERS_ROUTES.RESET_USER_TRAFFIC}/${uuid}`,
98
99
  BULK: {
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ActivateAllInboundsCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../models");
6
+ const api_1 = require("../../api");
7
+ var ActivateAllInboundsCommand;
8
+ (function (ActivateAllInboundsCommand) {
9
+ ActivateAllInboundsCommand.url = api_1.REST_API.USERS.ACTIVATE_ALL_INBOUNDS;
10
+ ActivateAllInboundsCommand.TSQ_url = ActivateAllInboundsCommand.url(':uuid');
11
+ ActivateAllInboundsCommand.RequestSchema = zod_1.z.object({
12
+ uuid: zod_1.z.string().uuid(),
13
+ });
14
+ ActivateAllInboundsCommand.ResponseSchema = zod_1.z.object({
15
+ response: models_1.UsersSchema.extend({
16
+ subscriptionUrl: zod_1.z.string(),
17
+ lastConnectedNode: models_1.LastConnectedNodeSchema,
18
+ }),
19
+ });
20
+ })(ActivateAllInboundsCommand || (exports.ActivateAllInboundsCommand = ActivateAllInboundsCommand = {}));
@@ -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("./activate-all-inbounds.command"), exports);
17
18
  __exportStar(require("./bulk"), exports);
18
19
  __exportStar(require("./bulk-all"), exports);
19
20
  __exportStar(require("./create-user.command"), exports);
@@ -455,4 +455,14 @@ exports.ERRORS = {
455
455
  message: 'Get user usage by range error',
456
456
  httpCode: 500,
457
457
  },
458
+ KEYPAIR_NOT_FOUND: {
459
+ code: 'A092',
460
+ message: 'Keypair not found. Restart app.',
461
+ httpCode: 500,
462
+ },
463
+ ACTIVATE_ALL_INBOUNDS_ERROR: {
464
+ code: 'A093',
465
+ message: 'Activate all inbounds error',
466
+ httpCode: 500,
467
+ },
458
468
  };
@@ -13,6 +13,12 @@ exports.EVENTS = {
13
13
  EXPIRED: 'user.expired',
14
14
  TRAFFIC_RESET: 'user.traffic_reset',
15
15
  TRAFFIC_REACHED: 'user.traffic_reached',
16
+ EXPIRE_NOTIFY: {
17
+ EXPIRES_IN_72_HOURS: 'user.expires_in_72_hours',
18
+ EXPIRES_IN_48_HOURS: 'user.expires_in_48_hours',
19
+ EXPIRES_IN_24_HOURS: 'user.expires_in_24_hours',
20
+ EXPIRED_24_HOURS_AGO: 'user.expired_24_hours_ago',
21
+ },
16
22
  },
17
23
  NODE: {
18
24
  CREATED: 'node.created',
@@ -23,10 +23,10 @@ exports.UsersSchema = zod_1.z.object({
23
23
  .string()
24
24
  .datetime()
25
25
  .transform((str) => new Date(str))),
26
- expireAt: zod_1.z.nullable(zod_1.z
26
+ expireAt: zod_1.z
27
27
  .string()
28
28
  .datetime()
29
- .transform((str) => new Date(str))),
29
+ .transform((str) => new Date(str)),
30
30
  onlineAt: zod_1.z.nullable(zod_1.z
31
31
  .string()
32
32
  .datetime()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/backend-contract",
3
- "version": "0.3.62",
3
+ "version": "0.3.64",
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.",