@remnawave/backend-contract 2.1.1 → 2.1.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.
@@ -11,6 +11,14 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
11
11
  shortUuid: string;
12
12
  }>;
13
13
  type Request = z.infer<typeof RequestSchema>;
14
+ const RequestQuerySchema: z.ZodObject<{
15
+ withDisabledHosts: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodString, boolean, string>>>;
16
+ }, "strip", z.ZodTypeAny, {
17
+ withDisabledHosts: boolean;
18
+ }, {
19
+ withDisabledHosts?: string | undefined;
20
+ }>;
21
+ type RequestQuery = z.infer<typeof RequestQuerySchema>;
14
22
  const ResponseSchema: z.ZodObject<{
15
23
  response: z.ZodObject<{
16
24
  user: z.ZodObject<{
@@ -104,6 +112,31 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
104
112
  method?: string | null | undefined;
105
113
  } | null | undefined;
106
114
  }>>>;
115
+ dbData: z.ZodOptional<z.ZodObject<{
116
+ rawInbound: z.ZodNullable<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
117
+ tag: z.ZodString;
118
+ uuid: z.ZodString;
119
+ configProfileUuid: z.ZodNullable<z.ZodString>;
120
+ configProfileInboundUuid: z.ZodNullable<z.ZodString>;
121
+ isDisabled: z.ZodBoolean;
122
+ viewPosition: z.ZodNumber;
123
+ }, "strip", z.ZodTypeAny, {
124
+ uuid: string;
125
+ tag: string;
126
+ rawInbound: {} | null;
127
+ viewPosition: number;
128
+ isDisabled: boolean;
129
+ configProfileUuid: string | null;
130
+ configProfileInboundUuid: string | null;
131
+ }, {
132
+ uuid: string;
133
+ tag: string;
134
+ rawInbound: {} | null;
135
+ viewPosition: number;
136
+ isDisabled: boolean;
137
+ configProfileUuid: string | null;
138
+ configProfileInboundUuid: string | null;
139
+ }>>;
107
140
  }, "strip", z.ZodTypeAny, {
108
141
  path?: string | null | undefined;
109
142
  password?: string | null | undefined;
@@ -135,6 +168,15 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
135
168
  method?: string | null | undefined;
136
169
  } | null | undefined;
137
170
  } | null | undefined;
171
+ dbData?: {
172
+ uuid: string;
173
+ tag: string;
174
+ rawInbound: {} | null;
175
+ viewPosition: number;
176
+ isDisabled: boolean;
177
+ configProfileUuid: string | null;
178
+ configProfileInboundUuid: string | null;
179
+ } | undefined;
138
180
  }, {
139
181
  path?: string | null | undefined;
140
182
  password?: string | null | undefined;
@@ -166,6 +208,15 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
166
208
  method?: string | null | undefined;
167
209
  } | null | undefined;
168
210
  } | null | undefined;
211
+ dbData?: {
212
+ uuid: string;
213
+ tag: string;
214
+ rawInbound: {} | null;
215
+ viewPosition: number;
216
+ isDisabled: boolean;
217
+ configProfileUuid: string | null;
218
+ configProfileInboundUuid: string | null;
219
+ } | undefined;
169
220
  }>, "many">;
170
221
  headers: z.ZodRecord<z.ZodString, z.ZodString>;
171
222
  isHwidLimited: z.ZodBoolean;
@@ -213,6 +264,15 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
213
264
  method?: string | null | undefined;
214
265
  } | null | undefined;
215
266
  } | null | undefined;
267
+ dbData?: {
268
+ uuid: string;
269
+ tag: string;
270
+ rawInbound: {} | null;
271
+ viewPosition: number;
272
+ isDisabled: boolean;
273
+ configProfileUuid: string | null;
274
+ configProfileInboundUuid: string | null;
275
+ } | undefined;
216
276
  }[];
217
277
  headers: Record<string, string>;
218
278
  isHwidLimited: boolean;
@@ -260,6 +320,15 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
260
320
  method?: string | null | undefined;
261
321
  } | null | undefined;
262
322
  } | null | undefined;
323
+ dbData?: {
324
+ uuid: string;
325
+ tag: string;
326
+ rawInbound: {} | null;
327
+ viewPosition: number;
328
+ isDisabled: boolean;
329
+ configProfileUuid: string | null;
330
+ configProfileInboundUuid: string | null;
331
+ } | undefined;
263
332
  }[];
264
333
  headers: Record<string, string>;
265
334
  isHwidLimited: boolean;
@@ -309,6 +378,15 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
309
378
  method?: string | null | undefined;
310
379
  } | null | undefined;
311
380
  } | null | undefined;
381
+ dbData?: {
382
+ uuid: string;
383
+ tag: string;
384
+ rawInbound: {} | null;
385
+ viewPosition: number;
386
+ isDisabled: boolean;
387
+ configProfileUuid: string | null;
388
+ configProfileInboundUuid: string | null;
389
+ } | undefined;
312
390
  }[];
313
391
  headers: Record<string, string>;
314
392
  isHwidLimited: boolean;
@@ -358,6 +436,15 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
358
436
  method?: string | null | undefined;
359
437
  } | null | undefined;
360
438
  } | null | undefined;
439
+ dbData?: {
440
+ uuid: string;
441
+ tag: string;
442
+ rawInbound: {} | null;
443
+ viewPosition: number;
444
+ isDisabled: boolean;
445
+ configProfileUuid: string | null;
446
+ configProfileInboundUuid: string | null;
447
+ } | undefined;
361
448
  }[];
362
449
  headers: Record<string, string>;
363
450
  isHwidLimited: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"get-raw-subscription-by-short-uuid.command.d.ts","sourceRoot":"","sources":["../../../../commands/subscription/get-raw-subscription-by-short-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,oCAAoC,CAAC;IAC3C,MAAM,GAAG,+BAAgC,CAAC;IAC1C,MAAM,OAAO,QAAoB,CAAC;IAElC,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAkEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"get-raw-subscription-by-short-uuid.command.d.ts","sourceRoot":"","sources":["../../../../commands/subscription/get-raw-subscription-by-short-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,oCAAoC,CAAC;IAC3C,MAAM,GAAG,+BAAgC,CAAC;IAC1C,MAAM,OAAO,QAAoB,CAAC;IAElC,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,kBAAkB;;;;;;MAM7B,CAAC;IAEH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAEvD,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA6EzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -13,6 +13,13 @@ var GetRawSubscriptionByShortUuidCommand;
13
13
  GetRawSubscriptionByShortUuidCommand.RequestSchema = zod_1.z.object({
14
14
  shortUuid: zod_1.z.string(),
15
15
  });
16
+ GetRawSubscriptionByShortUuidCommand.RequestQuerySchema = zod_1.z.object({
17
+ withDisabledHosts: zod_1.z
18
+ .string()
19
+ .transform((str) => str === 'true')
20
+ .optional()
21
+ .default('false'),
22
+ });
16
23
  GetRawSubscriptionByShortUuidCommand.ResponseSchema = zod_1.z.object({
17
24
  response: zod_1.z.object({
18
25
  user: zod_1.z.object({
@@ -61,6 +68,15 @@ var GetRawSubscriptionByShortUuidCommand;
61
68
  method: zod_1.z.optional(zod_1.z.nullable(zod_1.z.string())),
62
69
  }))),
63
70
  }))),
71
+ dbData: zod_1.z.optional(zod_1.z.object({
72
+ rawInbound: zod_1.z.nullable(zod_1.z.object({})),
73
+ tag: zod_1.z.string(),
74
+ uuid: zod_1.z.string(),
75
+ configProfileUuid: zod_1.z.nullable(zod_1.z.string()),
76
+ configProfileInboundUuid: zod_1.z.nullable(zod_1.z.string()),
77
+ isDisabled: zod_1.z.boolean(),
78
+ viewPosition: zod_1.z.number(),
79
+ })),
64
80
  })),
65
81
  headers: zod_1.z.record(zod_1.z.string(), zod_1.z.string()),
66
82
  isHwidLimited: zod_1.z.boolean(),
@@ -13,6 +13,13 @@ var GetRawSubscriptionByShortUuidCommand;
13
13
  GetRawSubscriptionByShortUuidCommand.RequestSchema = zod_1.z.object({
14
14
  shortUuid: zod_1.z.string(),
15
15
  });
16
+ GetRawSubscriptionByShortUuidCommand.RequestQuerySchema = zod_1.z.object({
17
+ withDisabledHosts: zod_1.z
18
+ .string()
19
+ .transform((str) => str === 'true')
20
+ .optional()
21
+ .default('false'),
22
+ });
16
23
  GetRawSubscriptionByShortUuidCommand.ResponseSchema = zod_1.z.object({
17
24
  response: zod_1.z.object({
18
25
  user: zod_1.z.object({
@@ -61,6 +68,15 @@ var GetRawSubscriptionByShortUuidCommand;
61
68
  method: zod_1.z.optional(zod_1.z.nullable(zod_1.z.string())),
62
69
  }))),
63
70
  }))),
71
+ dbData: zod_1.z.optional(zod_1.z.object({
72
+ rawInbound: zod_1.z.nullable(zod_1.z.object({})),
73
+ tag: zod_1.z.string(),
74
+ uuid: zod_1.z.string(),
75
+ configProfileUuid: zod_1.z.nullable(zod_1.z.string()),
76
+ configProfileInboundUuid: zod_1.z.nullable(zod_1.z.string()),
77
+ isDisabled: zod_1.z.boolean(),
78
+ viewPosition: zod_1.z.number(),
79
+ })),
64
80
  })),
65
81
  headers: zod_1.z.record(zod_1.z.string(), zod_1.z.string()),
66
82
  isHwidLimited: zod_1.z.boolean(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/backend-contract",
3
- "version": "2.1.1",
3
+ "version": "2.1.2",
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.",