@remnawave/backend-contract 2.5.0 → 2.5.2

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 (35) hide show
  1. package/build/backend/commands/infra-billing/create-billing-node.command.d.ts +27 -27
  2. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts +27 -27
  3. package/build/backend/commands/infra-billing/get-billing-nodes.command.d.ts +27 -27
  4. package/build/backend/commands/infra-billing/update-billing-node.command.d.ts +27 -27
  5. package/build/backend/commands/subscription/get-subscription-info-by-short-uuid.command.d.ts +8 -8
  6. package/build/backend/commands/subscriptions/get-all-subscriptions.command.d.ts +12 -12
  7. package/build/backend/commands/subscriptions/get-by/get-raw-subscription-by-short-uuid.command.d.ts +4 -4
  8. package/build/backend/commands/subscriptions/get-by/get-subscription-by-short-uuid-protected.command.d.ts +8 -8
  9. package/build/backend/commands/subscriptions/get-by/get-subscription-by-username.command.d.ts +8 -8
  10. package/build/backend/commands/subscriptions/get-by/get-subscription-by-uuid.command.d.ts +8 -8
  11. package/build/backend/commands/system/get-nodes-metrics.command.d.ts +6 -6
  12. package/build/backend/commands/system/get-stats.command.d.ts +4 -4
  13. package/build/backend/commands/users/actions/revoke-user-subscription.command.d.ts +4 -0
  14. package/build/backend/commands/users/actions/revoke-user-subscription.command.d.ts.map +1 -1
  15. package/build/backend/commands/users/actions/revoke-user-subscription.command.js +4 -0
  16. package/build/backend/constants/events/events.d.ts +9 -0
  17. package/build/backend/constants/events/events.d.ts.map +1 -1
  18. package/build/backend/constants/events/events.js +9 -1
  19. package/build/backend/models/index.d.ts +1 -0
  20. package/build/backend/models/index.d.ts.map +1 -1
  21. package/build/backend/models/index.js +1 -0
  22. package/build/backend/models/infra-billing-node.schema.d.ts +7 -7
  23. package/build/backend/models/subscription-info.schema.d.ts +4 -4
  24. package/build/backend/models/webhook/index.d.ts +2 -0
  25. package/build/backend/models/webhook/index.d.ts.map +1 -0
  26. package/build/backend/models/webhook/index.js +17 -0
  27. package/build/backend/models/webhook/webhook.schema.d.ts +2178 -0
  28. package/build/backend/models/webhook/webhook.schema.d.ts.map +1 -0
  29. package/build/backend/models/webhook/webhook.schema.js +105 -0
  30. package/build/frontend/commands/users/actions/revoke-user-subscription.command.js +4 -0
  31. package/build/frontend/constants/events/events.js +9 -1
  32. package/build/frontend/models/index.js +1 -0
  33. package/build/frontend/models/webhook/index.js +17 -0
  34. package/build/frontend/models/webhook/webhook.schema.js +105 -0
  35. package/package.json +1 -1
@@ -411,7 +411,6 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
411
411
  xrayJsonTemplate?: {} | null | undefined;
412
412
  }>, "many">;
413
413
  }, "strip", z.ZodTypeAny, {
414
- headers: Record<string, string | undefined>;
415
414
  user: {
416
415
  status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
417
416
  uuid: string;
@@ -450,6 +449,7 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
450
449
  lastConnectedNodeUuid: string | null;
451
450
  };
452
451
  };
452
+ headers: Record<string, string | undefined>;
453
453
  convertedUserInfo: {
454
454
  daysLeft: number;
455
455
  trafficUsed: string;
@@ -516,7 +516,6 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
516
516
  xrayJsonTemplate?: {} | null | undefined;
517
517
  }[];
518
518
  }, {
519
- headers: Record<string, string | undefined>;
520
519
  user: {
521
520
  uuid: string;
522
521
  createdAt: string;
@@ -555,6 +554,7 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
555
554
  trafficLimitStrategy?: "MONTH" | "NO_RESET" | "DAY" | "WEEK" | undefined;
556
555
  lastTriggeredThreshold?: number | undefined;
557
556
  };
557
+ headers: Record<string, string | undefined>;
558
558
  convertedUserInfo: {
559
559
  daysLeft: number;
560
560
  trafficUsed: string;
@@ -623,7 +623,6 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
623
623
  }>;
624
624
  }, "strip", z.ZodTypeAny, {
625
625
  response: {
626
- headers: Record<string, string | undefined>;
627
626
  user: {
628
627
  status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
629
628
  uuid: string;
@@ -662,6 +661,7 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
662
661
  lastConnectedNodeUuid: string | null;
663
662
  };
664
663
  };
664
+ headers: Record<string, string | undefined>;
665
665
  convertedUserInfo: {
666
666
  daysLeft: number;
667
667
  trafficUsed: string;
@@ -730,7 +730,6 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
730
730
  };
731
731
  }, {
732
732
  response: {
733
- headers: Record<string, string | undefined>;
734
733
  user: {
735
734
  uuid: string;
736
735
  createdAt: string;
@@ -769,6 +768,7 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
769
768
  trafficLimitStrategy?: "MONTH" | "NO_RESET" | "DAY" | "WEEK" | undefined;
770
769
  lastTriggeredThreshold?: number | undefined;
771
770
  };
771
+ headers: Record<string, string | undefined>;
772
772
  convertedUserInfo: {
773
773
  daysLeft: number;
774
774
  trafficUsed: string;
@@ -71,8 +71,6 @@ export declare namespace GetSubscriptionByShortUuidProtectedCommand {
71
71
  ssConfLinks: z.ZodRecord<z.ZodString, z.ZodString>;
72
72
  subscriptionUrl: z.ZodString;
73
73
  }, "strip", z.ZodTypeAny, {
74
- subscriptionUrl: string;
75
- isFound: boolean;
76
74
  user: {
77
75
  username: string;
78
76
  shortUuid: string;
@@ -88,11 +86,11 @@ export declare namespace GetSubscriptionByShortUuidProtectedCommand {
88
86
  isActive: boolean;
89
87
  userStatus: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
90
88
  };
89
+ subscriptionUrl: string;
90
+ isFound: boolean;
91
91
  links: string[];
92
92
  ssConfLinks: Record<string, string>;
93
93
  }, {
94
- subscriptionUrl: string;
95
- isFound: boolean;
96
94
  user: {
97
95
  username: string;
98
96
  shortUuid: string;
@@ -108,13 +106,13 @@ export declare namespace GetSubscriptionByShortUuidProtectedCommand {
108
106
  isActive: boolean;
109
107
  userStatus: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
110
108
  };
109
+ subscriptionUrl: string;
110
+ isFound: boolean;
111
111
  links: string[];
112
112
  ssConfLinks: Record<string, string>;
113
113
  }>;
114
114
  }, "strip", z.ZodTypeAny, {
115
115
  response: {
116
- subscriptionUrl: string;
117
- isFound: boolean;
118
116
  user: {
119
117
  username: string;
120
118
  shortUuid: string;
@@ -130,13 +128,13 @@ export declare namespace GetSubscriptionByShortUuidProtectedCommand {
130
128
  isActive: boolean;
131
129
  userStatus: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
132
130
  };
131
+ subscriptionUrl: string;
132
+ isFound: boolean;
133
133
  links: string[];
134
134
  ssConfLinks: Record<string, string>;
135
135
  };
136
136
  }, {
137
137
  response: {
138
- subscriptionUrl: string;
139
- isFound: boolean;
140
138
  user: {
141
139
  username: string;
142
140
  shortUuid: string;
@@ -152,6 +150,8 @@ export declare namespace GetSubscriptionByShortUuidProtectedCommand {
152
150
  isActive: boolean;
153
151
  userStatus: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
154
152
  };
153
+ subscriptionUrl: string;
154
+ isFound: boolean;
155
155
  links: string[];
156
156
  ssConfLinks: Record<string, string>;
157
157
  };
@@ -71,8 +71,6 @@ export declare namespace GetSubscriptionByUsernameCommand {
71
71
  ssConfLinks: z.ZodRecord<z.ZodString, z.ZodString>;
72
72
  subscriptionUrl: z.ZodString;
73
73
  }, "strip", z.ZodTypeAny, {
74
- subscriptionUrl: string;
75
- isFound: boolean;
76
74
  user: {
77
75
  username: string;
78
76
  shortUuid: string;
@@ -88,11 +86,11 @@ export declare namespace GetSubscriptionByUsernameCommand {
88
86
  isActive: boolean;
89
87
  userStatus: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
90
88
  };
89
+ subscriptionUrl: string;
90
+ isFound: boolean;
91
91
  links: string[];
92
92
  ssConfLinks: Record<string, string>;
93
93
  }, {
94
- subscriptionUrl: string;
95
- isFound: boolean;
96
94
  user: {
97
95
  username: string;
98
96
  shortUuid: string;
@@ -108,13 +106,13 @@ export declare namespace GetSubscriptionByUsernameCommand {
108
106
  isActive: boolean;
109
107
  userStatus: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
110
108
  };
109
+ subscriptionUrl: string;
110
+ isFound: boolean;
111
111
  links: string[];
112
112
  ssConfLinks: Record<string, string>;
113
113
  }>;
114
114
  }, "strip", z.ZodTypeAny, {
115
115
  response: {
116
- subscriptionUrl: string;
117
- isFound: boolean;
118
116
  user: {
119
117
  username: string;
120
118
  shortUuid: string;
@@ -130,13 +128,13 @@ export declare namespace GetSubscriptionByUsernameCommand {
130
128
  isActive: boolean;
131
129
  userStatus: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
132
130
  };
131
+ subscriptionUrl: string;
132
+ isFound: boolean;
133
133
  links: string[];
134
134
  ssConfLinks: Record<string, string>;
135
135
  };
136
136
  }, {
137
137
  response: {
138
- subscriptionUrl: string;
139
- isFound: boolean;
140
138
  user: {
141
139
  username: string;
142
140
  shortUuid: string;
@@ -152,6 +150,8 @@ export declare namespace GetSubscriptionByUsernameCommand {
152
150
  isActive: boolean;
153
151
  userStatus: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
154
152
  };
153
+ subscriptionUrl: string;
154
+ isFound: boolean;
155
155
  links: string[];
156
156
  ssConfLinks: Record<string, string>;
157
157
  };
@@ -71,8 +71,6 @@ export declare namespace GetSubscriptionByUuidCommand {
71
71
  ssConfLinks: z.ZodRecord<z.ZodString, z.ZodString>;
72
72
  subscriptionUrl: z.ZodString;
73
73
  }, "strip", z.ZodTypeAny, {
74
- subscriptionUrl: string;
75
- isFound: boolean;
76
74
  user: {
77
75
  username: string;
78
76
  shortUuid: string;
@@ -88,11 +86,11 @@ export declare namespace GetSubscriptionByUuidCommand {
88
86
  isActive: boolean;
89
87
  userStatus: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
90
88
  };
89
+ subscriptionUrl: string;
90
+ isFound: boolean;
91
91
  links: string[];
92
92
  ssConfLinks: Record<string, string>;
93
93
  }, {
94
- subscriptionUrl: string;
95
- isFound: boolean;
96
94
  user: {
97
95
  username: string;
98
96
  shortUuid: string;
@@ -108,13 +106,13 @@ export declare namespace GetSubscriptionByUuidCommand {
108
106
  isActive: boolean;
109
107
  userStatus: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
110
108
  };
109
+ subscriptionUrl: string;
110
+ isFound: boolean;
111
111
  links: string[];
112
112
  ssConfLinks: Record<string, string>;
113
113
  }>;
114
114
  }, "strip", z.ZodTypeAny, {
115
115
  response: {
116
- subscriptionUrl: string;
117
- isFound: boolean;
118
116
  user: {
119
117
  username: string;
120
118
  shortUuid: string;
@@ -130,13 +128,13 @@ export declare namespace GetSubscriptionByUuidCommand {
130
128
  isActive: boolean;
131
129
  userStatus: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
132
130
  };
131
+ subscriptionUrl: string;
132
+ isFound: boolean;
133
133
  links: string[];
134
134
  ssConfLinks: Record<string, string>;
135
135
  };
136
136
  }, {
137
137
  response: {
138
- subscriptionUrl: string;
139
- isFound: boolean;
140
138
  user: {
141
139
  username: string;
142
140
  shortUuid: string;
@@ -152,6 +150,8 @@ export declare namespace GetSubscriptionByUuidCommand {
152
150
  isActive: boolean;
153
151
  userStatus: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
154
152
  };
153
+ subscriptionUrl: string;
154
+ isFound: boolean;
155
155
  links: string[];
156
156
  ssConfLinks: Record<string, string>;
157
157
  };
@@ -41,8 +41,8 @@ export declare namespace GetNodesMetricsCommand {
41
41
  nodeUuid: string;
42
42
  nodeName: string;
43
43
  usersOnline: number;
44
- countryEmoji: string;
45
44
  providerName: string;
45
+ countryEmoji: string;
46
46
  inboundsStats: {
47
47
  tag: string;
48
48
  upload: string;
@@ -57,8 +57,8 @@ export declare namespace GetNodesMetricsCommand {
57
57
  nodeUuid: string;
58
58
  nodeName: string;
59
59
  usersOnline: number;
60
- countryEmoji: string;
61
60
  providerName: string;
61
+ countryEmoji: string;
62
62
  inboundsStats: {
63
63
  tag: string;
64
64
  upload: string;
@@ -75,8 +75,8 @@ export declare namespace GetNodesMetricsCommand {
75
75
  nodeUuid: string;
76
76
  nodeName: string;
77
77
  usersOnline: number;
78
- countryEmoji: string;
79
78
  providerName: string;
79
+ countryEmoji: string;
80
80
  inboundsStats: {
81
81
  tag: string;
82
82
  upload: string;
@@ -93,8 +93,8 @@ export declare namespace GetNodesMetricsCommand {
93
93
  nodeUuid: string;
94
94
  nodeName: string;
95
95
  usersOnline: number;
96
- countryEmoji: string;
97
96
  providerName: string;
97
+ countryEmoji: string;
98
98
  inboundsStats: {
99
99
  tag: string;
100
100
  upload: string;
@@ -113,8 +113,8 @@ export declare namespace GetNodesMetricsCommand {
113
113
  nodeUuid: string;
114
114
  nodeName: string;
115
115
  usersOnline: number;
116
- countryEmoji: string;
117
116
  providerName: string;
117
+ countryEmoji: string;
118
118
  inboundsStats: {
119
119
  tag: string;
120
120
  upload: string;
@@ -133,8 +133,8 @@ export declare namespace GetNodesMetricsCommand {
133
133
  nodeUuid: string;
134
134
  nodeName: string;
135
135
  usersOnline: number;
136
- countryEmoji: string;
137
136
  providerName: string;
137
+ countryEmoji: string;
138
138
  inboundsStats: {
139
139
  tag: string;
140
140
  upload: string;
@@ -89,6 +89,7 @@ export declare namespace GetStatsCommand {
89
89
  statusCounts: Record<string, number>;
90
90
  totalUsers: number;
91
91
  };
92
+ timestamp: number;
92
93
  memory: {
93
94
  total: number;
94
95
  free: number;
@@ -101,7 +102,6 @@ export declare namespace GetStatsCommand {
101
102
  physicalCores: number;
102
103
  };
103
104
  uptime: number;
104
- timestamp: number;
105
105
  onlineStats: {
106
106
  lastDay: number;
107
107
  lastWeek: number;
@@ -117,6 +117,7 @@ export declare namespace GetStatsCommand {
117
117
  statusCounts: Record<string, number>;
118
118
  totalUsers: number;
119
119
  };
120
+ timestamp: number;
120
121
  memory: {
121
122
  total: number;
122
123
  free: number;
@@ -129,7 +130,6 @@ export declare namespace GetStatsCommand {
129
130
  physicalCores: number;
130
131
  };
131
132
  uptime: number;
132
- timestamp: number;
133
133
  onlineStats: {
134
134
  lastDay: number;
135
135
  lastWeek: number;
@@ -147,6 +147,7 @@ export declare namespace GetStatsCommand {
147
147
  statusCounts: Record<string, number>;
148
148
  totalUsers: number;
149
149
  };
150
+ timestamp: number;
150
151
  memory: {
151
152
  total: number;
152
153
  free: number;
@@ -159,7 +160,6 @@ export declare namespace GetStatsCommand {
159
160
  physicalCores: number;
160
161
  };
161
162
  uptime: number;
162
- timestamp: number;
163
163
  onlineStats: {
164
164
  lastDay: number;
165
165
  lastWeek: number;
@@ -177,6 +177,7 @@ export declare namespace GetStatsCommand {
177
177
  statusCounts: Record<string, number>;
178
178
  totalUsers: number;
179
179
  };
180
+ timestamp: number;
180
181
  memory: {
181
182
  total: number;
182
183
  free: number;
@@ -189,7 +190,6 @@ export declare namespace GetStatsCommand {
189
190
  physicalCores: number;
190
191
  };
191
192
  uptime: number;
192
- timestamp: number;
193
193
  onlineStats: {
194
194
  lastDay: number;
195
195
  lastWeek: number;
@@ -12,13 +12,17 @@ export declare namespace RevokeUserSubscriptionCommand {
12
12
  }>;
13
13
  type Request = z.infer<typeof RequestSchema>;
14
14
  const RequestBodySchema: z.ZodEffects<z.ZodObject<{
15
+ revokeOnlyPasswords: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
15
16
  shortUuid: z.ZodOptional<z.ZodString>;
16
17
  }, "strip", z.ZodTypeAny, {
17
18
  shortUuid?: string | undefined;
19
+ revokeOnlyPasswords?: boolean | undefined;
18
20
  }, {
19
21
  shortUuid?: string | undefined;
22
+ revokeOnlyPasswords?: boolean | undefined;
20
23
  }>, {
21
24
  shortUuid?: string | undefined;
25
+ revokeOnlyPasswords?: boolean | undefined;
22
26
  }, unknown>;
23
27
  type RequestBody = z.infer<typeof RequestBodySchema>;
24
28
  const ResponseSchema: z.ZodObject<{
@@ -1 +1 @@
1
- {"version":3,"file":"revoke-user-subscription.command.d.ts","sourceRoot":"","sources":["../../../../../commands/users/actions/revoke-user-subscription.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,6BAA6B,CAAC;IACpC,MAAM,GAAG,0BAA6C,CAAC;IACvD,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,eAAe,8CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,iBAAiB;;;;;;;;eAa7B,CAAC;IAEF,KAAY,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;IAErD,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"revoke-user-subscription.command.d.ts","sourceRoot":"","sources":["../../../../../commands/users/actions/revoke-user-subscription.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,6BAA6B,CAAC;IACpC,MAAM,GAAG,0BAA6C,CAAC;IACvD,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,eAAe,8CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,iBAAiB;;;;;;;;;;;;eAsB7B,CAAC;IAEF,KAAY,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;IAErD,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -14,6 +14,10 @@ var RevokeUserSubscriptionCommand;
14
14
  uuid: zod_1.z.string().uuid(),
15
15
  });
16
16
  RevokeUserSubscriptionCommand.RequestBodySchema = zod_1.z.preprocess((val) => val || {}, zod_1.z.object({
17
+ revokeOnlyPasswords: zod_1.z.optional(zod_1.z
18
+ .boolean()
19
+ .default(false)
20
+ .describe('Optional. If true, only passwords will be revoked, without changing the short UUID (Subscription URL).')),
17
21
  shortUuid: zod_1.z.optional(zod_1.z
18
22
  .string()
19
23
  .min(6, { message: 'Short UUID must be at least 6 characters' })
@@ -76,4 +76,13 @@ export type TCRMEvents = (typeof EVENTS.CRM)[keyof typeof EVENTS.CRM];
76
76
  export type TUserHwidDevicesEvents = (typeof EVENTS.USER_HWID_DEVICES)[keyof typeof EVENTS.USER_HWID_DEVICES];
77
77
  export type TAllEvents = TUserEvents | TNodeEvents | TServiceEvents | TErrorsEvents | TCRMEvents | TUserHwidDevicesEvents;
78
78
  export type TAllEventChannels = 'telegram' | 'webhook';
79
+ export declare const EVENTS_SCOPES: {
80
+ readonly USER: "user";
81
+ readonly USER_HWID_DEVICES: "user_hwid_devices";
82
+ readonly NODE: "node";
83
+ readonly SERVICE: "service";
84
+ readonly ERRORS: "errors";
85
+ readonly CRM: "crm";
86
+ };
87
+ export type TEventsScope = (typeof EVENTS_SCOPES)[keyof typeof EVENTS_SCOPES];
79
88
  //# sourceMappingURL=events.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../../constants/events/events.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;QAmBX;;;;;WAKG;;;IAGP;;;;;;OAMG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwCG,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;AACzE,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,OAAO,MAAM,CAAC,OAAO,CAAC,CAAC;AAClF,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,MAAM,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC;AAC/E,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,MAAM,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC;AACtE,MAAM,MAAM,sBAAsB,GAC9B,CAAC,OAAO,MAAM,CAAC,iBAAiB,CAAC,CAAC,MAAM,OAAO,MAAM,CAAC,iBAAiB,CAAC,CAAC;AAE7E,MAAM,MAAM,UAAU,GAChB,WAAW,GACX,WAAW,GACX,cAAc,GACd,aAAa,GACb,UAAU,GACV,sBAAsB,CAAC;AAC7B,MAAM,MAAM,iBAAiB,GAAG,UAAU,GAAG,SAAS,CAAC"}
1
+ {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../../constants/events/events.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;QAmBX;;;;;WAKG;;;IAGP;;;;;;OAMG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwCG,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;AACzE,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,OAAO,MAAM,CAAC,OAAO,CAAC,CAAC;AAClF,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,MAAM,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC;AAC/E,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,MAAM,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC;AACtE,MAAM,MAAM,sBAAsB,GAC9B,CAAC,OAAO,MAAM,CAAC,iBAAiB,CAAC,CAAC,MAAM,OAAO,MAAM,CAAC,iBAAiB,CAAC,CAAC;AAE7E,MAAM,MAAM,UAAU,GAChB,WAAW,GACX,WAAW,GACX,cAAc,GACd,aAAa,GACb,UAAU,GACV,sBAAsB,CAAC;AAC7B,MAAM,MAAM,iBAAiB,GAAG,UAAU,GAAG,SAAS,CAAC;AAEvD,eAAO,MAAM,aAAa;;;;;;;CAOhB,CAAC;AAEX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,OAAO,aAAa,CAAC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EVENTS = void 0;
3
+ exports.EVENTS_SCOPES = exports.EVENTS = void 0;
4
4
  exports.EVENTS = {
5
5
  USER: {
6
6
  CREATED: 'user.created',
@@ -71,3 +71,11 @@ exports.EVENTS = {
71
71
  CATCH_ALL_ERRORS_EVENTS: 'errors.*',
72
72
  CATCH_ALL_CRM_EVENTS: 'crm.*',
73
73
  };
74
+ exports.EVENTS_SCOPES = {
75
+ USER: 'user',
76
+ USER_HWID_DEVICES: 'user_hwid_devices',
77
+ NODE: 'node',
78
+ SERVICE: 'service',
79
+ ERRORS: 'errors',
80
+ CRM: 'crm',
81
+ };
@@ -27,4 +27,5 @@ export * from './subscription-settings.schema';
27
27
  export * from './subscription-template.schema';
28
28
  export * from './tanstack-query';
29
29
  export * from './users.schema';
30
+ export * from './webhook';
30
31
  //# sourceMappingURL=index.d.ts.map
@@ -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,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,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,kCAAkC,CAAC;AACjD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uCAAuC,CAAC;AACtD,cAAc,yBAAyB,CAAC;AACxC,cAAc,gCAAgC,CAAC;AAC/C,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,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,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,kCAAkC,CAAC;AACjD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uCAAuC,CAAC;AACtD,cAAc,yBAAyB,CAAC;AACxC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC"}
@@ -43,3 +43,4 @@ __exportStar(require("./subscription-settings.schema"), exports);
43
43
  __exportStar(require("./subscription-template.schema"), exports);
44
44
  __exportStar(require("./tanstack-query"), exports);
45
45
  __exportStar(require("./users.schema"), exports);
46
+ __exportStar(require("./webhook"), exports);
@@ -140,6 +140,11 @@ export declare const InfraBillingNodeSchema: z.ZodObject<{
140
140
  createdAt: z.ZodEffects<z.ZodString, Date, string>;
141
141
  updatedAt: z.ZodEffects<z.ZodString, Date, string>;
142
142
  }, "strip", z.ZodTypeAny, {
143
+ node: {
144
+ uuid: string;
145
+ countryCode: string;
146
+ name: string;
147
+ };
143
148
  uuid: string;
144
149
  createdAt: Date;
145
150
  updatedAt: Date;
@@ -151,13 +156,13 @@ export declare const InfraBillingNodeSchema: z.ZodObject<{
151
156
  };
152
157
  nodeUuid: string;
153
158
  providerUuid: string;
159
+ nextBillingAt: Date;
160
+ }, {
154
161
  node: {
155
162
  uuid: string;
156
163
  countryCode: string;
157
164
  name: string;
158
165
  };
159
- nextBillingAt: Date;
160
- }, {
161
166
  uuid: string;
162
167
  createdAt: string;
163
168
  updatedAt: string;
@@ -169,11 +174,6 @@ export declare const InfraBillingNodeSchema: z.ZodObject<{
169
174
  };
170
175
  nodeUuid: string;
171
176
  providerUuid: string;
172
- node: {
173
- uuid: string;
174
- countryCode: string;
175
- name: string;
176
- };
177
177
  nextBillingAt: string;
178
178
  }>;
179
179
  //# sourceMappingURL=infra-billing-node.schema.d.ts.map
@@ -58,8 +58,6 @@ export declare const SubscriptionInfoSchema: z.ZodObject<{
58
58
  ssConfLinks: z.ZodRecord<z.ZodString, z.ZodString>;
59
59
  subscriptionUrl: z.ZodString;
60
60
  }, "strip", z.ZodTypeAny, {
61
- subscriptionUrl: string;
62
- isFound: boolean;
63
61
  user: {
64
62
  username: string;
65
63
  shortUuid: string;
@@ -75,11 +73,11 @@ export declare const SubscriptionInfoSchema: z.ZodObject<{
75
73
  isActive: boolean;
76
74
  userStatus: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
77
75
  };
76
+ subscriptionUrl: string;
77
+ isFound: boolean;
78
78
  links: string[];
79
79
  ssConfLinks: Record<string, string>;
80
80
  }, {
81
- subscriptionUrl: string;
82
- isFound: boolean;
83
81
  user: {
84
82
  username: string;
85
83
  shortUuid: string;
@@ -95,6 +93,8 @@ export declare const SubscriptionInfoSchema: z.ZodObject<{
95
93
  isActive: boolean;
96
94
  userStatus: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
97
95
  };
96
+ subscriptionUrl: string;
97
+ isFound: boolean;
98
98
  links: string[];
99
99
  ssConfLinks: Record<string, string>;
100
100
  }>;
@@ -0,0 +1,2 @@
1
+ export * from './webhook.schema';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../models/webhook/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./webhook.schema"), exports);