@remnawave/backend-contract 2.1.4 → 2.1.6

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.
@@ -52,10 +52,10 @@ var CreateHostCommand;
52
52
  tag: zod_1.z
53
53
  .optional(zod_1.z
54
54
  .string()
55
- .regex(/^[A-Z0-9_]+$/, 'Tag can only contain uppercase letters, numbers, underscores')
56
- .max(16, 'Tag must be less than 16 characters')
55
+ .regex(/^[A-Z0-9_:]+$/, 'Tag can only contain uppercase letters, numbers, underscores and colons')
56
+ .max(32, 'Tag must be less than 32 characters')
57
57
  .nullable())
58
- .describe('Optional. Host tag for categorization. Max 16 characters, uppercase letters, numbers and underscores only.'),
58
+ .describe('Optional. Host tag for categorization. Max 32 characters, uppercase letters, numbers, underscores and colons are allowed.'),
59
59
  isHidden: zod_1.z.optional(zod_1.z.boolean().default(false)),
60
60
  });
61
61
  CreateHostCommand.ResponseSchema = zod_1.z.object({
@@ -57,10 +57,10 @@ var UpdateHostCommand;
57
57
  tag: zod_1.z
58
58
  .optional(zod_1.z
59
59
  .string()
60
- .regex(/^[A-Z0-9_]+$/, 'Tag can only contain uppercase letters, numbers, underscores')
61
- .max(16, 'Tag must be less than 16 characters')
60
+ .regex(/^[A-Z0-9_:]+$/, 'Tag can only contain uppercase letters, numbers, underscores and colons')
61
+ .max(32, 'Tag must be less than 32 characters')
62
62
  .nullable())
63
- .describe('Optional. Host tag for categorization. Max 16 characters, uppercase letters, numbers and underscores only.'),
63
+ .describe('Optional. Host tag for categorization. Max 32 characters, uppercase letters, numbers, underscores and colons are allowed.'),
64
64
  isHidden: zod_1.z.optional(zod_1.z.boolean()),
65
65
  });
66
66
  UpdateHostCommand.ResponseSchema = zod_1.z.object({
@@ -114,7 +114,7 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
114
114
  }>>>;
115
115
  dbData: z.ZodOptional<z.ZodObject<{
116
116
  rawInbound: z.ZodNullable<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
117
- tag: z.ZodString;
117
+ inboundTag: z.ZodString;
118
118
  uuid: z.ZodString;
119
119
  configProfileUuid: z.ZodNullable<z.ZodString>;
120
120
  configProfileInboundUuid: z.ZodNullable<z.ZodString>;
@@ -122,29 +122,29 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
122
122
  viewPosition: z.ZodNumber;
123
123
  remark: z.ZodString;
124
124
  isHidden: z.ZodBoolean;
125
- host: z.ZodNullable<z.ZodString>;
125
+ tag: z.ZodNullable<z.ZodString>;
126
126
  }, "strip", z.ZodTypeAny, {
127
127
  uuid: string;
128
- tag: string;
128
+ tag: string | null;
129
129
  rawInbound: {} | null;
130
130
  viewPosition: number;
131
131
  remark: string;
132
- host: string | null;
133
132
  isDisabled: boolean;
134
133
  configProfileUuid: string | null;
135
134
  configProfileInboundUuid: string | null;
136
135
  isHidden: boolean;
136
+ inboundTag: string;
137
137
  }, {
138
138
  uuid: string;
139
- tag: string;
139
+ tag: string | null;
140
140
  rawInbound: {} | null;
141
141
  viewPosition: number;
142
142
  remark: string;
143
- host: string | null;
144
143
  isDisabled: boolean;
145
144
  configProfileUuid: string | null;
146
145
  configProfileInboundUuid: string | null;
147
146
  isHidden: boolean;
147
+ inboundTag: string;
148
148
  }>>;
149
149
  }, "strip", z.ZodTypeAny, {
150
150
  path?: string | null | undefined;
@@ -179,15 +179,15 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
179
179
  } | null | undefined;
180
180
  dbData?: {
181
181
  uuid: string;
182
- tag: string;
182
+ tag: string | null;
183
183
  rawInbound: {} | null;
184
184
  viewPosition: number;
185
185
  remark: string;
186
- host: string | null;
187
186
  isDisabled: boolean;
188
187
  configProfileUuid: string | null;
189
188
  configProfileInboundUuid: string | null;
190
189
  isHidden: boolean;
190
+ inboundTag: string;
191
191
  } | undefined;
192
192
  }, {
193
193
  path?: string | null | undefined;
@@ -222,15 +222,15 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
222
222
  } | null | undefined;
223
223
  dbData?: {
224
224
  uuid: string;
225
- tag: string;
225
+ tag: string | null;
226
226
  rawInbound: {} | null;
227
227
  viewPosition: number;
228
228
  remark: string;
229
- host: string | null;
230
229
  isDisabled: boolean;
231
230
  configProfileUuid: string | null;
232
231
  configProfileInboundUuid: string | null;
233
232
  isHidden: boolean;
233
+ inboundTag: string;
234
234
  } | undefined;
235
235
  }>, "many">;
236
236
  headers: z.ZodRecord<z.ZodString, z.ZodString>;
@@ -281,15 +281,15 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
281
281
  } | null | undefined;
282
282
  dbData?: {
283
283
  uuid: string;
284
- tag: string;
284
+ tag: string | null;
285
285
  rawInbound: {} | null;
286
286
  viewPosition: number;
287
287
  remark: string;
288
- host: string | null;
289
288
  isDisabled: boolean;
290
289
  configProfileUuid: string | null;
291
290
  configProfileInboundUuid: string | null;
292
291
  isHidden: boolean;
292
+ inboundTag: string;
293
293
  } | undefined;
294
294
  }[];
295
295
  headers: Record<string, string>;
@@ -340,15 +340,15 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
340
340
  } | null | undefined;
341
341
  dbData?: {
342
342
  uuid: string;
343
- tag: string;
343
+ tag: string | null;
344
344
  rawInbound: {} | null;
345
345
  viewPosition: number;
346
346
  remark: string;
347
- host: string | null;
348
347
  isDisabled: boolean;
349
348
  configProfileUuid: string | null;
350
349
  configProfileInboundUuid: string | null;
351
350
  isHidden: boolean;
351
+ inboundTag: string;
352
352
  } | undefined;
353
353
  }[];
354
354
  headers: Record<string, string>;
@@ -401,15 +401,15 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
401
401
  } | null | undefined;
402
402
  dbData?: {
403
403
  uuid: string;
404
- tag: string;
404
+ tag: string | null;
405
405
  rawInbound: {} | null;
406
406
  viewPosition: number;
407
407
  remark: string;
408
- host: string | null;
409
408
  isDisabled: boolean;
410
409
  configProfileUuid: string | null;
411
410
  configProfileInboundUuid: string | null;
412
411
  isHidden: boolean;
412
+ inboundTag: string;
413
413
  } | undefined;
414
414
  }[];
415
415
  headers: Record<string, string>;
@@ -462,15 +462,15 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
462
462
  } | null | undefined;
463
463
  dbData?: {
464
464
  uuid: string;
465
- tag: string;
465
+ tag: string | null;
466
466
  rawInbound: {} | null;
467
467
  viewPosition: number;
468
468
  remark: string;
469
- host: string | null;
470
469
  isDisabled: boolean;
471
470
  configProfileUuid: string | null;
472
471
  configProfileInboundUuid: string | null;
473
472
  isHidden: boolean;
473
+ inboundTag: string;
474
474
  } | undefined;
475
475
  }[];
476
476
  headers: Record<string, string>;
@@ -70,7 +70,7 @@ var GetRawSubscriptionByShortUuidCommand;
70
70
  }))),
71
71
  dbData: zod_1.z.optional(zod_1.z.object({
72
72
  rawInbound: zod_1.z.nullable(zod_1.z.object({})),
73
- tag: zod_1.z.string(),
73
+ inboundTag: zod_1.z.string(),
74
74
  uuid: zod_1.z.string(),
75
75
  configProfileUuid: zod_1.z.nullable(zod_1.z.string()),
76
76
  configProfileInboundUuid: zod_1.z.nullable(zod_1.z.string()),
@@ -78,7 +78,7 @@ var GetRawSubscriptionByShortUuidCommand;
78
78
  viewPosition: zod_1.z.number(),
79
79
  remark: zod_1.z.string(),
80
80
  isHidden: zod_1.z.boolean(),
81
- host: zod_1.z.nullable(zod_1.z.string()),
81
+ tag: zod_1.z.nullable(zod_1.z.string()),
82
82
  })),
83
83
  })),
84
84
  headers: zod_1.z.record(zod_1.z.string(), zod_1.z.string()),
@@ -52,10 +52,10 @@ var CreateHostCommand;
52
52
  tag: zod_1.z
53
53
  .optional(zod_1.z
54
54
  .string()
55
- .regex(/^[A-Z0-9_]+$/, 'Tag can only contain uppercase letters, numbers, underscores')
56
- .max(16, 'Tag must be less than 16 characters')
55
+ .regex(/^[A-Z0-9_:]+$/, 'Tag can only contain uppercase letters, numbers, underscores and colons')
56
+ .max(32, 'Tag must be less than 32 characters')
57
57
  .nullable())
58
- .describe('Optional. Host tag for categorization. Max 16 characters, uppercase letters, numbers and underscores only.'),
58
+ .describe('Optional. Host tag for categorization. Max 32 characters, uppercase letters, numbers, underscores and colons are allowed.'),
59
59
  isHidden: zod_1.z.optional(zod_1.z.boolean().default(false)),
60
60
  });
61
61
  CreateHostCommand.ResponseSchema = zod_1.z.object({
@@ -57,10 +57,10 @@ var UpdateHostCommand;
57
57
  tag: zod_1.z
58
58
  .optional(zod_1.z
59
59
  .string()
60
- .regex(/^[A-Z0-9_]+$/, 'Tag can only contain uppercase letters, numbers, underscores')
61
- .max(16, 'Tag must be less than 16 characters')
60
+ .regex(/^[A-Z0-9_:]+$/, 'Tag can only contain uppercase letters, numbers, underscores and colons')
61
+ .max(32, 'Tag must be less than 32 characters')
62
62
  .nullable())
63
- .describe('Optional. Host tag for categorization. Max 16 characters, uppercase letters, numbers and underscores only.'),
63
+ .describe('Optional. Host tag for categorization. Max 32 characters, uppercase letters, numbers, underscores and colons are allowed.'),
64
64
  isHidden: zod_1.z.optional(zod_1.z.boolean()),
65
65
  });
66
66
  UpdateHostCommand.ResponseSchema = zod_1.z.object({
@@ -70,7 +70,7 @@ var GetRawSubscriptionByShortUuidCommand;
70
70
  }))),
71
71
  dbData: zod_1.z.optional(zod_1.z.object({
72
72
  rawInbound: zod_1.z.nullable(zod_1.z.object({})),
73
- tag: zod_1.z.string(),
73
+ inboundTag: zod_1.z.string(),
74
74
  uuid: zod_1.z.string(),
75
75
  configProfileUuid: zod_1.z.nullable(zod_1.z.string()),
76
76
  configProfileInboundUuid: zod_1.z.nullable(zod_1.z.string()),
@@ -78,7 +78,7 @@ var GetRawSubscriptionByShortUuidCommand;
78
78
  viewPosition: zod_1.z.number(),
79
79
  remark: zod_1.z.string(),
80
80
  isHidden: zod_1.z.boolean(),
81
- host: zod_1.z.nullable(zod_1.z.string()),
81
+ tag: zod_1.z.nullable(zod_1.z.string()),
82
82
  })),
83
83
  })),
84
84
  headers: zod_1.z.record(zod_1.z.string(), zod_1.z.string()),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/backend-contract",
3
- "version": "2.1.4",
3
+ "version": "2.1.6",
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.",