@remnawave/backend-contract 0.0.73 → 0.0.75

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.
@@ -11,7 +11,7 @@ export declare namespace DisableUserCommand {
11
11
  }>;
12
12
  type Request = z.infer<typeof RequestSchema>;
13
13
  const ResponseSchema: z.ZodObject<{
14
- response: z.ZodObject<{
14
+ response: z.ZodObject<z.objectUtil.extendShape<{
15
15
  uuid: z.ZodString;
16
16
  subscriptionUuid: z.ZodString;
17
17
  shortUuid: z.ZodString;
@@ -45,7 +45,9 @@ export declare namespace DisableUserCommand {
45
45
  type: string;
46
46
  tag: string;
47
47
  }>, "many">;
48
- }, "strip", z.ZodTypeAny, {
48
+ }, {
49
+ subscriptionUrl: z.ZodString;
50
+ }>, "strip", z.ZodTypeAny, {
49
51
  uuid: string;
50
52
  username: string;
51
53
  status: "DISABLED" | "ACTIVE" | "LIMITED" | "EXPIRED";
@@ -71,6 +73,7 @@ export declare namespace DisableUserCommand {
71
73
  type: string;
72
74
  tag: string;
73
75
  }[];
76
+ subscriptionUrl: string;
74
77
  }, {
75
78
  uuid: string;
76
79
  username: string;
@@ -94,6 +97,7 @@ export declare namespace DisableUserCommand {
94
97
  type: string;
95
98
  tag: string;
96
99
  }[];
100
+ subscriptionUrl: string;
97
101
  status?: "DISABLED" | "ACTIVE" | "LIMITED" | "EXPIRED" | undefined;
98
102
  trafficLimitBytes?: number | undefined;
99
103
  trafficLimitStrategy?: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH" | undefined;
@@ -125,6 +129,7 @@ export declare namespace DisableUserCommand {
125
129
  type: string;
126
130
  tag: string;
127
131
  }[];
132
+ subscriptionUrl: string;
128
133
  };
129
134
  }, {
130
135
  response: {
@@ -150,6 +155,7 @@ export declare namespace DisableUserCommand {
150
155
  type: string;
151
156
  tag: string;
152
157
  }[];
158
+ subscriptionUrl: string;
153
159
  status?: "DISABLED" | "ACTIVE" | "LIMITED" | "EXPIRED" | undefined;
154
160
  trafficLimitBytes?: number | undefined;
155
161
  trafficLimitStrategy?: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH" | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"disable-user.command.ts.d.ts","sourceRoot":"","sources":["../../../../commands/users/disable-user.command.ts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,yBAAiB,kBAAkB,CAAC;IACzB,MAAM,GAAG,0BAA8B,CAAC;IACxC,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"disable-user.command.ts.d.ts","sourceRoot":"","sources":["../../../../commands/users/disable-user.command.ts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,yBAAiB,kBAAkB,CAAC;IACzB,MAAM,GAAG,0BAA8B,CAAC;IACxC,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -12,6 +12,8 @@ var DisableUserCommand;
12
12
  uuid: zod_1.z.string().uuid(),
13
13
  });
14
14
  DisableUserCommand.ResponseSchema = zod_1.z.object({
15
- response: users_schema_1.UsersSchema,
15
+ response: users_schema_1.UsersSchema.extend({
16
+ subscriptionUrl: zod_1.z.string(),
17
+ }),
16
18
  });
17
19
  })(DisableUserCommand || (exports.DisableUserCommand = DisableUserCommand = {}));
@@ -11,7 +11,7 @@ export declare namespace EnableUserCommand {
11
11
  }>;
12
12
  type Request = z.infer<typeof RequestSchema>;
13
13
  const ResponseSchema: z.ZodObject<{
14
- response: z.ZodObject<{
14
+ response: z.ZodObject<z.objectUtil.extendShape<{
15
15
  uuid: z.ZodString;
16
16
  subscriptionUuid: z.ZodString;
17
17
  shortUuid: z.ZodString;
@@ -45,7 +45,9 @@ export declare namespace EnableUserCommand {
45
45
  type: string;
46
46
  tag: string;
47
47
  }>, "many">;
48
- }, "strip", z.ZodTypeAny, {
48
+ }, {
49
+ subscriptionUrl: z.ZodString;
50
+ }>, "strip", z.ZodTypeAny, {
49
51
  uuid: string;
50
52
  username: string;
51
53
  status: "DISABLED" | "ACTIVE" | "LIMITED" | "EXPIRED";
@@ -71,6 +73,7 @@ export declare namespace EnableUserCommand {
71
73
  type: string;
72
74
  tag: string;
73
75
  }[];
76
+ subscriptionUrl: string;
74
77
  }, {
75
78
  uuid: string;
76
79
  username: string;
@@ -94,6 +97,7 @@ export declare namespace EnableUserCommand {
94
97
  type: string;
95
98
  tag: string;
96
99
  }[];
100
+ subscriptionUrl: string;
97
101
  status?: "DISABLED" | "ACTIVE" | "LIMITED" | "EXPIRED" | undefined;
98
102
  trafficLimitBytes?: number | undefined;
99
103
  trafficLimitStrategy?: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH" | undefined;
@@ -125,6 +129,7 @@ export declare namespace EnableUserCommand {
125
129
  type: string;
126
130
  tag: string;
127
131
  }[];
132
+ subscriptionUrl: string;
128
133
  };
129
134
  }, {
130
135
  response: {
@@ -150,6 +155,7 @@ export declare namespace EnableUserCommand {
150
155
  type: string;
151
156
  tag: string;
152
157
  }[];
158
+ subscriptionUrl: string;
153
159
  status?: "DISABLED" | "ACTIVE" | "LIMITED" | "EXPIRED" | undefined;
154
160
  trafficLimitBytes?: number | undefined;
155
161
  trafficLimitStrategy?: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH" | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"enable-user.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/enable-user.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,0BAA6B,CAAC;IACvC,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"enable-user.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/enable-user.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,0BAA6B,CAAC;IACvC,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -12,6 +12,8 @@ var EnableUserCommand;
12
12
  uuid: zod_1.z.string().uuid(),
13
13
  });
14
14
  EnableUserCommand.ResponseSchema = zod_1.z.object({
15
- response: users_schema_1.UsersSchema,
15
+ response: users_schema_1.UsersSchema.extend({
16
+ subscriptionUrl: zod_1.z.string(),
17
+ }),
16
18
  });
17
19
  })(EnableUserCommand || (exports.EnableUserCommand = EnableUserCommand = {}));
@@ -93,6 +93,7 @@ export declare namespace GetAllUsersV2Command {
93
93
  }>, "many">;
94
94
  }, {
95
95
  totalUsedBytes: z.ZodString;
96
+ subscriptionUrl: z.ZodString;
96
97
  }>, "strip", z.ZodTypeAny, {
97
98
  uuid: string;
98
99
  username: string;
@@ -119,6 +120,7 @@ export declare namespace GetAllUsersV2Command {
119
120
  type: string;
120
121
  tag: string;
121
122
  }[];
123
+ subscriptionUrl: string;
122
124
  totalUsedBytes: string;
123
125
  }, {
124
126
  uuid: string;
@@ -143,6 +145,7 @@ export declare namespace GetAllUsersV2Command {
143
145
  type: string;
144
146
  tag: string;
145
147
  }[];
148
+ subscriptionUrl: string;
146
149
  totalUsedBytes: string;
147
150
  status?: "DISABLED" | "ACTIVE" | "LIMITED" | "EXPIRED" | undefined;
148
151
  trafficLimitBytes?: number | undefined;
@@ -176,6 +179,7 @@ export declare namespace GetAllUsersV2Command {
176
179
  type: string;
177
180
  tag: string;
178
181
  }[];
182
+ subscriptionUrl: string;
179
183
  totalUsedBytes: string;
180
184
  }[];
181
185
  total: number;
@@ -203,6 +207,7 @@ export declare namespace GetAllUsersV2Command {
203
207
  type: string;
204
208
  tag: string;
205
209
  }[];
210
+ subscriptionUrl: string;
206
211
  totalUsedBytes: string;
207
212
  status?: "DISABLED" | "ACTIVE" | "LIMITED" | "EXPIRED" | undefined;
208
213
  trafficLimitBytes?: number | undefined;
@@ -238,6 +243,7 @@ export declare namespace GetAllUsersV2Command {
238
243
  type: string;
239
244
  tag: string;
240
245
  }[];
246
+ subscriptionUrl: string;
241
247
  totalUsedBytes: string;
242
248
  }[];
243
249
  total: number;
@@ -267,6 +273,7 @@ export declare namespace GetAllUsersV2Command {
267
273
  type: string;
268
274
  tag: string;
269
275
  }[];
276
+ subscriptionUrl: string;
270
277
  totalUsedBytes: string;
271
278
  status?: "DISABLED" | "ACTIVE" | "LIMITED" | "EXPIRED" | undefined;
272
279
  trafficLimitBytes?: number | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"get-all-users-v2.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/get-all-users-v2.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,oBAAoB,CAAC;IAC3B,MAAM,GAAG,iBAA4B,CAAC;IACtC,MAAM,OAAO,iBAAM,CAAC;IAapB,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAyB7B,CAAC;IAEH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAEvD,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAUzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"get-all-users-v2.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/get-all-users-v2.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,oBAAoB,CAAC;IAC3B,MAAM,GAAG,iBAA4B,CAAC;IACtC,MAAM,OAAO,iBAAM,CAAC;IAapB,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAyB7B,CAAC;IAEH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAEvD,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAWzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -35,6 +35,7 @@ var GetAllUsersV2Command;
35
35
  response: zod_1.z.object({
36
36
  users: zod_1.z.array(users_schema_1.UsersSchema.extend({
37
37
  totalUsedBytes: zod_1.z.string(),
38
+ subscriptionUrl: zod_1.z.string(),
38
39
  })),
39
40
  total: zod_1.z.number(),
40
41
  }),
@@ -12,6 +12,8 @@ var DisableUserCommand;
12
12
  uuid: zod_1.z.string().uuid(),
13
13
  });
14
14
  DisableUserCommand.ResponseSchema = zod_1.z.object({
15
- response: users_schema_1.UsersSchema,
15
+ response: users_schema_1.UsersSchema.extend({
16
+ subscriptionUrl: zod_1.z.string(),
17
+ }),
16
18
  });
17
19
  })(DisableUserCommand || (exports.DisableUserCommand = DisableUserCommand = {}));
@@ -12,6 +12,8 @@ var EnableUserCommand;
12
12
  uuid: zod_1.z.string().uuid(),
13
13
  });
14
14
  EnableUserCommand.ResponseSchema = zod_1.z.object({
15
- response: users_schema_1.UsersSchema,
15
+ response: users_schema_1.UsersSchema.extend({
16
+ subscriptionUrl: zod_1.z.string(),
17
+ }),
16
18
  });
17
19
  })(EnableUserCommand || (exports.EnableUserCommand = EnableUserCommand = {}));
@@ -35,6 +35,7 @@ var GetAllUsersV2Command;
35
35
  response: zod_1.z.object({
36
36
  users: zod_1.z.array(users_schema_1.UsersSchema.extend({
37
37
  totalUsedBytes: zod_1.z.string(),
38
+ subscriptionUrl: zod_1.z.string(),
38
39
  })),
39
40
  total: zod_1.z.number(),
40
41
  }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/backend-contract",
3
- "version": "0.0.73",
3
+ "version": "0.0.75",
4
4
  "public": true,
5
5
  "description": "A contract library for Remnawave",
6
6
  "author": "REMNAWAVE <github.com/remnawave>",