@remnawave/backend-contract 2.3.17 → 2.3.19
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.
- package/build/backend/commands/external-squads/actions/reorder.command.d.ts +72 -48
- package/build/backend/commands/external-squads/actions/reorder.command.d.ts.map +1 -1
- package/build/backend/commands/external-squads/create-external-squad.command.d.ts +43 -29
- package/build/backend/commands/external-squads/create-external-squad.command.d.ts.map +1 -1
- package/build/backend/commands/external-squads/get-external-squad-by-uuid.command.d.ts +43 -29
- package/build/backend/commands/external-squads/get-external-squad-by-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/external-squads/get-external-squads.command.d.ts +57 -39
- package/build/backend/commands/external-squads/get-external-squads.command.d.ts.map +1 -1
- package/build/backend/commands/external-squads/update-external-squad.command.d.ts +72 -48
- package/build/backend/commands/external-squads/update-external-squad.command.d.ts.map +1 -1
- package/build/backend/commands/external-squads/update-external-squad.command.js +1 -1
- package/build/backend/commands/subscription-settings/get-subscription-settings.command.d.ts +47 -15
- package/build/backend/commands/subscription-settings/get-subscription-settings.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-settings/update-subscription-settings.command.d.ts +81 -25
- package/build/backend/commands/subscription-settings/update-subscription-settings.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-settings/update-subscription-settings.command.js +2 -4
- package/build/backend/models/external-squad.schema.d.ts +29 -19
- package/build/backend/models/external-squad.schema.d.ts.map +1 -1
- package/build/backend/models/external-squad.schema.js +3 -3
- package/build/backend/models/external-squads/index.d.ts +0 -1
- package/build/backend/models/external-squads/index.d.ts.map +1 -1
- package/build/backend/models/external-squads/index.js +0 -1
- package/build/backend/models/subscription-settings/custom-remarks.schema.d.ts +22 -0
- package/build/backend/models/subscription-settings/custom-remarks.schema.d.ts.map +1 -0
- package/build/backend/models/subscription-settings/custom-remarks.schema.js +14 -0
- package/build/backend/models/subscription-settings/index.d.ts +1 -0
- package/build/backend/models/subscription-settings/index.d.ts.map +1 -1
- package/build/backend/models/subscription-settings/index.js +1 -0
- package/build/backend/models/subscription-settings.schema.d.ts +33 -9
- package/build/backend/models/subscription-settings.schema.d.ts.map +1 -1
- package/build/backend/models/subscription-settings.schema.js +2 -3
- package/build/frontend/commands/external-squads/update-external-squad.command.js +1 -1
- package/build/frontend/commands/subscription-settings/update-subscription-settings.command.js +2 -4
- package/build/frontend/models/external-squad.schema.js +3 -3
- package/build/frontend/models/external-squads/index.js +0 -1
- package/build/frontend/models/subscription-settings/custom-remarks.schema.js +14 -0
- package/build/frontend/models/subscription-settings/index.js +1 -0
- package/build/frontend/models/subscription-settings.schema.js +2 -3
- package/package.json +1 -1
- package/build/backend/models/external-squads/external-squad-custom-remarks.schema.d.ts +0 -16
- package/build/backend/models/external-squads/external-squad-custom-remarks.schema.d.ts.map +0 -1
- package/build/backend/models/external-squads/external-squad-custom-remarks.schema.js +0 -12
- package/build/frontend/models/external-squads/external-squad-custom-remarks.schema.js +0 -12
package/build/backend/commands/subscription-settings/update-subscription-settings.command.d.ts
CHANGED
|
@@ -11,12 +11,28 @@ export declare namespace UpdateSubscriptionSettingsCommand {
|
|
|
11
11
|
isProfileWebpageUrlEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
12
12
|
serveJsonAtBaseSubscription: z.ZodOptional<z.ZodBoolean>;
|
|
13
13
|
addUsernameToBaseSubscription: z.ZodOptional<z.ZodBoolean>;
|
|
14
|
-
isShowCustomRemarks: z.ZodOptional<z.ZodBoolean>;
|
|
15
14
|
happAnnounce: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
15
|
happRouting: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
isShowCustomRemarks: z.ZodOptional<z.ZodBoolean>;
|
|
17
|
+
customRemarks: z.ZodOptional<z.ZodObject<{
|
|
18
|
+
expiredUsers: z.ZodArray<z.ZodString, "many">;
|
|
19
|
+
limitedUsers: z.ZodArray<z.ZodString, "many">;
|
|
20
|
+
disabledUsers: z.ZodArray<z.ZodString, "many">;
|
|
21
|
+
emptyHosts: z.ZodArray<z.ZodString, "many">;
|
|
22
|
+
emptyInternalSquads: z.ZodArray<z.ZodString, "many">;
|
|
23
|
+
}, "strip", z.ZodTypeAny, {
|
|
24
|
+
expiredUsers: string[];
|
|
25
|
+
limitedUsers: string[];
|
|
26
|
+
disabledUsers: string[];
|
|
27
|
+
emptyHosts: string[];
|
|
28
|
+
emptyInternalSquads: string[];
|
|
29
|
+
}, {
|
|
30
|
+
expiredUsers: string[];
|
|
31
|
+
limitedUsers: string[];
|
|
32
|
+
disabledUsers: string[];
|
|
33
|
+
emptyHosts: string[];
|
|
34
|
+
emptyInternalSquads: string[];
|
|
35
|
+
}>>;
|
|
20
36
|
customResponseHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
21
37
|
randomizeHosts: z.ZodOptional<z.ZodBoolean>;
|
|
22
38
|
responseRules: z.ZodOptional<z.ZodObject<{
|
|
@@ -195,9 +211,6 @@ export declare namespace UpdateSubscriptionSettingsCommand {
|
|
|
195
211
|
}>>;
|
|
196
212
|
}, "strip", z.ZodTypeAny, {
|
|
197
213
|
uuid: string;
|
|
198
|
-
expiredUsersRemarks?: string[] | undefined;
|
|
199
|
-
limitedUsersRemarks?: string[] | undefined;
|
|
200
|
-
disabledUsersRemarks?: string[] | undefined;
|
|
201
214
|
profileTitle?: string | undefined;
|
|
202
215
|
supportLink?: string | undefined;
|
|
203
216
|
profileUpdateInterval?: number | undefined;
|
|
@@ -205,6 +218,13 @@ export declare namespace UpdateSubscriptionSettingsCommand {
|
|
|
205
218
|
serveJsonAtBaseSubscription?: boolean | undefined;
|
|
206
219
|
addUsernameToBaseSubscription?: boolean | undefined;
|
|
207
220
|
isShowCustomRemarks?: boolean | undefined;
|
|
221
|
+
customRemarks?: {
|
|
222
|
+
expiredUsers: string[];
|
|
223
|
+
limitedUsers: string[];
|
|
224
|
+
disabledUsers: string[];
|
|
225
|
+
emptyHosts: string[];
|
|
226
|
+
emptyInternalSquads: string[];
|
|
227
|
+
} | undefined;
|
|
208
228
|
happAnnounce?: string | null | undefined;
|
|
209
229
|
happRouting?: string | null | undefined;
|
|
210
230
|
customResponseHeaders?: Record<string, string> | undefined;
|
|
@@ -239,9 +259,6 @@ export declare namespace UpdateSubscriptionSettingsCommand {
|
|
|
239
259
|
} | undefined;
|
|
240
260
|
}, {
|
|
241
261
|
uuid: string;
|
|
242
|
-
expiredUsersRemarks?: string[] | undefined;
|
|
243
|
-
limitedUsersRemarks?: string[] | undefined;
|
|
244
|
-
disabledUsersRemarks?: string[] | undefined;
|
|
245
262
|
profileTitle?: string | undefined;
|
|
246
263
|
supportLink?: string | undefined;
|
|
247
264
|
profileUpdateInterval?: number | undefined;
|
|
@@ -249,6 +266,13 @@ export declare namespace UpdateSubscriptionSettingsCommand {
|
|
|
249
266
|
serveJsonAtBaseSubscription?: boolean | undefined;
|
|
250
267
|
addUsernameToBaseSubscription?: boolean | undefined;
|
|
251
268
|
isShowCustomRemarks?: boolean | undefined;
|
|
269
|
+
customRemarks?: {
|
|
270
|
+
expiredUsers: string[];
|
|
271
|
+
limitedUsers: string[];
|
|
272
|
+
disabledUsers: string[];
|
|
273
|
+
emptyHosts: string[];
|
|
274
|
+
emptyInternalSquads: string[];
|
|
275
|
+
} | undefined;
|
|
252
276
|
happAnnounce?: string | null | undefined;
|
|
253
277
|
happRouting?: string | null | undefined;
|
|
254
278
|
customResponseHeaders?: Record<string, string> | undefined;
|
|
@@ -293,11 +317,27 @@ export declare namespace UpdateSubscriptionSettingsCommand {
|
|
|
293
317
|
serveJsonAtBaseSubscription: z.ZodBoolean;
|
|
294
318
|
addUsernameToBaseSubscription: z.ZodBoolean;
|
|
295
319
|
isShowCustomRemarks: z.ZodBoolean;
|
|
320
|
+
customRemarks: z.ZodObject<{
|
|
321
|
+
expiredUsers: z.ZodArray<z.ZodString, "many">;
|
|
322
|
+
limitedUsers: z.ZodArray<z.ZodString, "many">;
|
|
323
|
+
disabledUsers: z.ZodArray<z.ZodString, "many">;
|
|
324
|
+
emptyHosts: z.ZodArray<z.ZodString, "many">;
|
|
325
|
+
emptyInternalSquads: z.ZodArray<z.ZodString, "many">;
|
|
326
|
+
}, "strip", z.ZodTypeAny, {
|
|
327
|
+
expiredUsers: string[];
|
|
328
|
+
limitedUsers: string[];
|
|
329
|
+
disabledUsers: string[];
|
|
330
|
+
emptyHosts: string[];
|
|
331
|
+
emptyInternalSquads: string[];
|
|
332
|
+
}, {
|
|
333
|
+
expiredUsers: string[];
|
|
334
|
+
limitedUsers: string[];
|
|
335
|
+
disabledUsers: string[];
|
|
336
|
+
emptyHosts: string[];
|
|
337
|
+
emptyInternalSquads: string[];
|
|
338
|
+
}>;
|
|
296
339
|
happAnnounce: z.ZodNullable<z.ZodString>;
|
|
297
340
|
happRouting: z.ZodNullable<z.ZodString>;
|
|
298
|
-
expiredUsersRemarks: z.ZodArray<z.ZodString, "many">;
|
|
299
|
-
limitedUsersRemarks: z.ZodArray<z.ZodString, "many">;
|
|
300
|
-
disabledUsersRemarks: z.ZodArray<z.ZodString, "many">;
|
|
301
341
|
customResponseHeaders: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
302
342
|
randomizeHosts: z.ZodBoolean;
|
|
303
343
|
responseRules: z.ZodNullable<z.ZodObject<{
|
|
@@ -480,9 +520,6 @@ export declare namespace UpdateSubscriptionSettingsCommand {
|
|
|
480
520
|
uuid: string;
|
|
481
521
|
createdAt: Date;
|
|
482
522
|
updatedAt: Date;
|
|
483
|
-
expiredUsersRemarks: string[];
|
|
484
|
-
limitedUsersRemarks: string[];
|
|
485
|
-
disabledUsersRemarks: string[];
|
|
486
523
|
profileTitle: string;
|
|
487
524
|
supportLink: string;
|
|
488
525
|
profileUpdateInterval: number;
|
|
@@ -490,6 +527,13 @@ export declare namespace UpdateSubscriptionSettingsCommand {
|
|
|
490
527
|
serveJsonAtBaseSubscription: boolean;
|
|
491
528
|
addUsernameToBaseSubscription: boolean;
|
|
492
529
|
isShowCustomRemarks: boolean;
|
|
530
|
+
customRemarks: {
|
|
531
|
+
expiredUsers: string[];
|
|
532
|
+
limitedUsers: string[];
|
|
533
|
+
disabledUsers: string[];
|
|
534
|
+
emptyHosts: string[];
|
|
535
|
+
emptyInternalSquads: string[];
|
|
536
|
+
};
|
|
493
537
|
happAnnounce: string | null;
|
|
494
538
|
happRouting: string | null;
|
|
495
539
|
customResponseHeaders: Record<string, string> | null;
|
|
@@ -526,9 +570,6 @@ export declare namespace UpdateSubscriptionSettingsCommand {
|
|
|
526
570
|
uuid: string;
|
|
527
571
|
createdAt: string;
|
|
528
572
|
updatedAt: string;
|
|
529
|
-
expiredUsersRemarks: string[];
|
|
530
|
-
limitedUsersRemarks: string[];
|
|
531
|
-
disabledUsersRemarks: string[];
|
|
532
573
|
profileTitle: string;
|
|
533
574
|
supportLink: string;
|
|
534
575
|
profileUpdateInterval: number;
|
|
@@ -536,6 +577,13 @@ export declare namespace UpdateSubscriptionSettingsCommand {
|
|
|
536
577
|
serveJsonAtBaseSubscription: boolean;
|
|
537
578
|
addUsernameToBaseSubscription: boolean;
|
|
538
579
|
isShowCustomRemarks: boolean;
|
|
580
|
+
customRemarks: {
|
|
581
|
+
expiredUsers: string[];
|
|
582
|
+
limitedUsers: string[];
|
|
583
|
+
disabledUsers: string[];
|
|
584
|
+
emptyHosts: string[];
|
|
585
|
+
emptyInternalSquads: string[];
|
|
586
|
+
};
|
|
539
587
|
happAnnounce: string | null;
|
|
540
588
|
happRouting: string | null;
|
|
541
589
|
customResponseHeaders: Record<string, string> | null;
|
|
@@ -574,9 +622,6 @@ export declare namespace UpdateSubscriptionSettingsCommand {
|
|
|
574
622
|
uuid: string;
|
|
575
623
|
createdAt: Date;
|
|
576
624
|
updatedAt: Date;
|
|
577
|
-
expiredUsersRemarks: string[];
|
|
578
|
-
limitedUsersRemarks: string[];
|
|
579
|
-
disabledUsersRemarks: string[];
|
|
580
625
|
profileTitle: string;
|
|
581
626
|
supportLink: string;
|
|
582
627
|
profileUpdateInterval: number;
|
|
@@ -584,6 +629,13 @@ export declare namespace UpdateSubscriptionSettingsCommand {
|
|
|
584
629
|
serveJsonAtBaseSubscription: boolean;
|
|
585
630
|
addUsernameToBaseSubscription: boolean;
|
|
586
631
|
isShowCustomRemarks: boolean;
|
|
632
|
+
customRemarks: {
|
|
633
|
+
expiredUsers: string[];
|
|
634
|
+
limitedUsers: string[];
|
|
635
|
+
disabledUsers: string[];
|
|
636
|
+
emptyHosts: string[];
|
|
637
|
+
emptyInternalSquads: string[];
|
|
638
|
+
};
|
|
587
639
|
happAnnounce: string | null;
|
|
588
640
|
happRouting: string | null;
|
|
589
641
|
customResponseHeaders: Record<string, string> | null;
|
|
@@ -622,9 +674,6 @@ export declare namespace UpdateSubscriptionSettingsCommand {
|
|
|
622
674
|
uuid: string;
|
|
623
675
|
createdAt: string;
|
|
624
676
|
updatedAt: string;
|
|
625
|
-
expiredUsersRemarks: string[];
|
|
626
|
-
limitedUsersRemarks: string[];
|
|
627
|
-
disabledUsersRemarks: string[];
|
|
628
677
|
profileTitle: string;
|
|
629
678
|
supportLink: string;
|
|
630
679
|
profileUpdateInterval: number;
|
|
@@ -632,6 +681,13 @@ export declare namespace UpdateSubscriptionSettingsCommand {
|
|
|
632
681
|
serveJsonAtBaseSubscription: boolean;
|
|
633
682
|
addUsernameToBaseSubscription: boolean;
|
|
634
683
|
isShowCustomRemarks: boolean;
|
|
684
|
+
customRemarks: {
|
|
685
|
+
expiredUsers: string[];
|
|
686
|
+
limitedUsers: string[];
|
|
687
|
+
disabledUsers: string[];
|
|
688
|
+
emptyHosts: string[];
|
|
689
|
+
emptyInternalSquads: string[];
|
|
690
|
+
};
|
|
635
691
|
happAnnounce: string | null;
|
|
636
692
|
happRouting: string | null;
|
|
637
693
|
customResponseHeaders: Record<string, string> | null;
|
package/build/backend/commands/subscription-settings/update-subscription-settings.command.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-subscription-settings.command.d.ts","sourceRoot":"","sources":["../../../../commands/subscription-settings/update-subscription-settings.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"update-subscription-settings.command.d.ts","sourceRoot":"","sources":["../../../../commands/subscription-settings/update-subscription-settings.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAWxB,yBAAiB,iCAAiC,CAAC;IACxC,MAAM,GAAG,+BAAwC,CAAC;IAClD,MAAM,OAAO,+BAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAqCxB,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"}
|
package/build/backend/commands/subscription-settings/update-subscription-settings.command.js
CHANGED
|
@@ -18,15 +18,13 @@ var UpdateSubscriptionSettingsCommand;
|
|
|
18
18
|
isProfileWebpageUrlEnabled: zod_1.z.optional(zod_1.z.boolean()),
|
|
19
19
|
serveJsonAtBaseSubscription: zod_1.z.optional(zod_1.z.boolean()),
|
|
20
20
|
addUsernameToBaseSubscription: zod_1.z.optional(zod_1.z.boolean()),
|
|
21
|
-
isShowCustomRemarks: zod_1.z.optional(zod_1.z.boolean()),
|
|
22
21
|
happAnnounce: zod_1.z.optional(zod_1.z
|
|
23
22
|
.string()
|
|
24
23
|
.max(200, { message: 'Announce must be less than 200 characters' })
|
|
25
24
|
.nullable()),
|
|
26
25
|
happRouting: zod_1.z.optional(zod_1.z.string().nullable()),
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
disabledUsersRemarks: zod_1.z.optional(zod_1.z.array(zod_1.z.string())),
|
|
26
|
+
isShowCustomRemarks: zod_1.z.optional(zod_1.z.boolean()),
|
|
27
|
+
customRemarks: zod_1.z.optional(models_1.CustomRemarksSchema),
|
|
30
28
|
customResponseHeaders: zod_1.z.optional(zod_1.z.record(zod_1.z
|
|
31
29
|
.string()
|
|
32
30
|
.regex(/^[a-zA-Z0-9_-]+$/, 'Invalid header name. Only letters(a-z, A-Z), numbers(0-9), underscores(_) and hyphens(-) are allowed.'), zod_1.z.string())),
|
|
@@ -86,17 +86,23 @@ export declare const ExternalSquadSchema: z.ZodObject<{
|
|
|
86
86
|
maxDevicesAnnounce: string | null;
|
|
87
87
|
}>>;
|
|
88
88
|
customRemarks: z.ZodNullable<z.ZodObject<{
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
89
|
+
expiredUsers: z.ZodArray<z.ZodString, "many">;
|
|
90
|
+
limitedUsers: z.ZodArray<z.ZodString, "many">;
|
|
91
|
+
disabledUsers: z.ZodArray<z.ZodString, "many">;
|
|
92
|
+
emptyHosts: z.ZodArray<z.ZodString, "many">;
|
|
93
|
+
emptyInternalSquads: z.ZodArray<z.ZodString, "many">;
|
|
92
94
|
}, "strip", z.ZodTypeAny, {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
95
|
+
expiredUsers: string[];
|
|
96
|
+
limitedUsers: string[];
|
|
97
|
+
disabledUsers: string[];
|
|
98
|
+
emptyHosts: string[];
|
|
99
|
+
emptyInternalSquads: string[];
|
|
96
100
|
}, {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
101
|
+
expiredUsers: string[];
|
|
102
|
+
limitedUsers: string[];
|
|
103
|
+
disabledUsers: string[];
|
|
104
|
+
emptyHosts: string[];
|
|
105
|
+
emptyInternalSquads: string[];
|
|
100
106
|
}>>;
|
|
101
107
|
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
102
108
|
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
@@ -106,6 +112,13 @@ export declare const ExternalSquadSchema: z.ZodObject<{
|
|
|
106
112
|
updatedAt: Date;
|
|
107
113
|
name: string;
|
|
108
114
|
viewPosition: number;
|
|
115
|
+
customRemarks: {
|
|
116
|
+
expiredUsers: string[];
|
|
117
|
+
limitedUsers: string[];
|
|
118
|
+
disabledUsers: string[];
|
|
119
|
+
emptyHosts: string[];
|
|
120
|
+
emptyInternalSquads: string[];
|
|
121
|
+
} | null;
|
|
109
122
|
hwidSettings: {
|
|
110
123
|
enabled: boolean;
|
|
111
124
|
fallbackDeviceLimit: number;
|
|
@@ -135,17 +148,19 @@ export declare const ExternalSquadSchema: z.ZodObject<{
|
|
|
135
148
|
vlessRouteId?: number | null | undefined;
|
|
136
149
|
} | null;
|
|
137
150
|
responseHeaders: Record<string, string> | null;
|
|
138
|
-
customRemarks: {
|
|
139
|
-
expiredUsersRemarks: string[];
|
|
140
|
-
limitedUsersRemarks: string[];
|
|
141
|
-
disabledUsersRemarks: string[];
|
|
142
|
-
} | null;
|
|
143
151
|
}, {
|
|
144
152
|
uuid: string;
|
|
145
153
|
createdAt: string;
|
|
146
154
|
updatedAt: string;
|
|
147
155
|
name: string;
|
|
148
156
|
viewPosition: number;
|
|
157
|
+
customRemarks: {
|
|
158
|
+
expiredUsers: string[];
|
|
159
|
+
limitedUsers: string[];
|
|
160
|
+
disabledUsers: string[];
|
|
161
|
+
emptyHosts: string[];
|
|
162
|
+
emptyInternalSquads: string[];
|
|
163
|
+
} | null;
|
|
149
164
|
hwidSettings: {
|
|
150
165
|
enabled: boolean;
|
|
151
166
|
fallbackDeviceLimit: number;
|
|
@@ -175,10 +190,5 @@ export declare const ExternalSquadSchema: z.ZodObject<{
|
|
|
175
190
|
vlessRouteId?: number | null | undefined;
|
|
176
191
|
} | null;
|
|
177
192
|
responseHeaders: Record<string, string> | null;
|
|
178
|
-
customRemarks: {
|
|
179
|
-
expiredUsersRemarks: string[];
|
|
180
|
-
limitedUsersRemarks: string[];
|
|
181
|
-
disabledUsersRemarks: string[];
|
|
182
|
-
} | null;
|
|
183
193
|
}>;
|
|
184
194
|
//# sourceMappingURL=external-squad.schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"external-squad.schema.d.ts","sourceRoot":"","sources":["../../../models/external-squad.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"external-squad.schema.d.ts","sourceRoot":"","sources":["../../../models/external-squad.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6B9B,CAAC"}
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ExternalSquadSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const external_squads_1 = require("./external-squads");
|
|
6
|
-
const
|
|
6
|
+
const subscription_settings_1 = require("./subscription-settings");
|
|
7
7
|
const constants_1 = require("../constants");
|
|
8
8
|
exports.ExternalSquadSchema = zod_1.z.object({
|
|
9
9
|
uuid: zod_1.z.string().uuid(),
|
|
@@ -19,8 +19,8 @@ exports.ExternalSquadSchema = zod_1.z.object({
|
|
|
19
19
|
subscriptionSettings: zod_1.z.nullable(external_squads_1.ExternalSquadSubscriptionSettingsSchema),
|
|
20
20
|
hostOverrides: zod_1.z.nullable(external_squads_1.ExternalSquadHostOverridesSchema),
|
|
21
21
|
responseHeaders: external_squads_1.ExternalSquadResponseHeadersSchema,
|
|
22
|
-
hwidSettings: zod_1.z.nullable(
|
|
23
|
-
customRemarks: zod_1.z.nullable(
|
|
22
|
+
hwidSettings: zod_1.z.nullable(subscription_settings_1.HwidSettingsSchema),
|
|
23
|
+
customRemarks: zod_1.z.nullable(subscription_settings_1.CustomRemarksSchema),
|
|
24
24
|
createdAt: zod_1.z
|
|
25
25
|
.string()
|
|
26
26
|
.datetime()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../models/external-squads/index.ts"],"names":[],"mappings":"AAAA,cAAc,wCAAwC,CAAC;AACvD,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../models/external-squads/index.ts"],"names":[],"mappings":"AAAA,cAAc,wCAAwC,CAAC;AACvD,cAAc,0CAA0C,CAAC;AACzD,cAAc,+CAA+C,CAAC"}
|
|
@@ -14,7 +14,6 @@ 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("./external-squad-custom-remarks.schema"), exports);
|
|
18
17
|
__exportStar(require("./external-squad-host-overrides.schema"), exports);
|
|
19
18
|
__exportStar(require("./external-squad-response-headers.schema"), exports);
|
|
20
19
|
__exportStar(require("./external-squad-subscription-settings.schema"), exports);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
export declare const CustomRemarksSchema: z.ZodObject<{
|
|
3
|
+
expiredUsers: z.ZodArray<z.ZodString, "many">;
|
|
4
|
+
limitedUsers: z.ZodArray<z.ZodString, "many">;
|
|
5
|
+
disabledUsers: z.ZodArray<z.ZodString, "many">;
|
|
6
|
+
emptyHosts: z.ZodArray<z.ZodString, "many">;
|
|
7
|
+
emptyInternalSquads: z.ZodArray<z.ZodString, "many">;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
expiredUsers: string[];
|
|
10
|
+
limitedUsers: string[];
|
|
11
|
+
disabledUsers: string[];
|
|
12
|
+
emptyHosts: string[];
|
|
13
|
+
emptyInternalSquads: string[];
|
|
14
|
+
}, {
|
|
15
|
+
expiredUsers: string[];
|
|
16
|
+
limitedUsers: string[];
|
|
17
|
+
disabledUsers: string[];
|
|
18
|
+
emptyHosts: string[];
|
|
19
|
+
emptyInternalSquads: string[];
|
|
20
|
+
}>;
|
|
21
|
+
export type TCustomRemarks = z.infer<typeof CustomRemarksSchema>;
|
|
22
|
+
//# sourceMappingURL=custom-remarks.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"custom-remarks.schema.d.ts","sourceRoot":"","sources":["../../../../models/subscription-settings/custom-remarks.schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;EAM9B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.CustomRemarksSchema = void 0;
|
|
7
|
+
const zod_1 = __importDefault(require("zod"));
|
|
8
|
+
exports.CustomRemarksSchema = zod_1.default.object({
|
|
9
|
+
expiredUsers: zod_1.default.array(zod_1.default.string()).min(1),
|
|
10
|
+
limitedUsers: zod_1.default.array(zod_1.default.string()).min(1),
|
|
11
|
+
disabledUsers: zod_1.default.array(zod_1.default.string()).min(1),
|
|
12
|
+
emptyHosts: zod_1.default.array(zod_1.default.string()).min(1),
|
|
13
|
+
emptyInternalSquads: zod_1.default.array(zod_1.default.string()).min(1),
|
|
14
|
+
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../models/subscription-settings/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../models/subscription-settings/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC"}
|
|
@@ -14,4 +14,5 @@ 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("./custom-remarks.schema"), exports);
|
|
17
18
|
__exportStar(require("./hwid-settings.schema"), exports);
|
|
@@ -8,11 +8,27 @@ export declare const SubscriptionSettingsSchema: z.ZodObject<{
|
|
|
8
8
|
serveJsonAtBaseSubscription: z.ZodBoolean;
|
|
9
9
|
addUsernameToBaseSubscription: z.ZodBoolean;
|
|
10
10
|
isShowCustomRemarks: z.ZodBoolean;
|
|
11
|
+
customRemarks: z.ZodObject<{
|
|
12
|
+
expiredUsers: z.ZodArray<z.ZodString, "many">;
|
|
13
|
+
limitedUsers: z.ZodArray<z.ZodString, "many">;
|
|
14
|
+
disabledUsers: z.ZodArray<z.ZodString, "many">;
|
|
15
|
+
emptyHosts: z.ZodArray<z.ZodString, "many">;
|
|
16
|
+
emptyInternalSquads: z.ZodArray<z.ZodString, "many">;
|
|
17
|
+
}, "strip", z.ZodTypeAny, {
|
|
18
|
+
expiredUsers: string[];
|
|
19
|
+
limitedUsers: string[];
|
|
20
|
+
disabledUsers: string[];
|
|
21
|
+
emptyHosts: string[];
|
|
22
|
+
emptyInternalSquads: string[];
|
|
23
|
+
}, {
|
|
24
|
+
expiredUsers: string[];
|
|
25
|
+
limitedUsers: string[];
|
|
26
|
+
disabledUsers: string[];
|
|
27
|
+
emptyHosts: string[];
|
|
28
|
+
emptyInternalSquads: string[];
|
|
29
|
+
}>;
|
|
11
30
|
happAnnounce: z.ZodNullable<z.ZodString>;
|
|
12
31
|
happRouting: z.ZodNullable<z.ZodString>;
|
|
13
|
-
expiredUsersRemarks: z.ZodArray<z.ZodString, "many">;
|
|
14
|
-
limitedUsersRemarks: z.ZodArray<z.ZodString, "many">;
|
|
15
|
-
disabledUsersRemarks: z.ZodArray<z.ZodString, "many">;
|
|
16
32
|
customResponseHeaders: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
17
33
|
randomizeHosts: z.ZodBoolean;
|
|
18
34
|
responseRules: z.ZodNullable<z.ZodObject<{
|
|
@@ -195,9 +211,6 @@ export declare const SubscriptionSettingsSchema: z.ZodObject<{
|
|
|
195
211
|
uuid: string;
|
|
196
212
|
createdAt: Date;
|
|
197
213
|
updatedAt: Date;
|
|
198
|
-
expiredUsersRemarks: string[];
|
|
199
|
-
limitedUsersRemarks: string[];
|
|
200
|
-
disabledUsersRemarks: string[];
|
|
201
214
|
profileTitle: string;
|
|
202
215
|
supportLink: string;
|
|
203
216
|
profileUpdateInterval: number;
|
|
@@ -205,6 +218,13 @@ export declare const SubscriptionSettingsSchema: z.ZodObject<{
|
|
|
205
218
|
serveJsonAtBaseSubscription: boolean;
|
|
206
219
|
addUsernameToBaseSubscription: boolean;
|
|
207
220
|
isShowCustomRemarks: boolean;
|
|
221
|
+
customRemarks: {
|
|
222
|
+
expiredUsers: string[];
|
|
223
|
+
limitedUsers: string[];
|
|
224
|
+
disabledUsers: string[];
|
|
225
|
+
emptyHosts: string[];
|
|
226
|
+
emptyInternalSquads: string[];
|
|
227
|
+
};
|
|
208
228
|
happAnnounce: string | null;
|
|
209
229
|
happRouting: string | null;
|
|
210
230
|
customResponseHeaders: Record<string, string> | null;
|
|
@@ -241,9 +261,6 @@ export declare const SubscriptionSettingsSchema: z.ZodObject<{
|
|
|
241
261
|
uuid: string;
|
|
242
262
|
createdAt: string;
|
|
243
263
|
updatedAt: string;
|
|
244
|
-
expiredUsersRemarks: string[];
|
|
245
|
-
limitedUsersRemarks: string[];
|
|
246
|
-
disabledUsersRemarks: string[];
|
|
247
264
|
profileTitle: string;
|
|
248
265
|
supportLink: string;
|
|
249
266
|
profileUpdateInterval: number;
|
|
@@ -251,6 +268,13 @@ export declare const SubscriptionSettingsSchema: z.ZodObject<{
|
|
|
251
268
|
serveJsonAtBaseSubscription: boolean;
|
|
252
269
|
addUsernameToBaseSubscription: boolean;
|
|
253
270
|
isShowCustomRemarks: boolean;
|
|
271
|
+
customRemarks: {
|
|
272
|
+
expiredUsers: string[];
|
|
273
|
+
limitedUsers: string[];
|
|
274
|
+
disabledUsers: string[];
|
|
275
|
+
emptyHosts: string[];
|
|
276
|
+
emptyInternalSquads: string[];
|
|
277
|
+
};
|
|
254
278
|
happAnnounce: string | null;
|
|
255
279
|
happRouting: string | null;
|
|
256
280
|
customResponseHeaders: Record<string, string> | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscription-settings.schema.d.ts","sourceRoot":"","sources":["../../../models/subscription-settings.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"subscription-settings.schema.d.ts","sourceRoot":"","sources":["../../../models/subscription-settings.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoCrC,CAAC"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SubscriptionSettingsSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const custom_remarks_schema_1 = require("./subscription-settings/custom-remarks.schema");
|
|
5
6
|
const hwid_settings_schema_1 = require("./subscription-settings/hwid-settings.schema");
|
|
6
7
|
const response_rules_1 = require("./response-rules");
|
|
7
8
|
exports.SubscriptionSettingsSchema = zod_1.z.object({
|
|
@@ -16,11 +17,9 @@ exports.SubscriptionSettingsSchema = zod_1.z.object({
|
|
|
16
17
|
serveJsonAtBaseSubscription: zod_1.z.boolean(),
|
|
17
18
|
addUsernameToBaseSubscription: zod_1.z.boolean(),
|
|
18
19
|
isShowCustomRemarks: zod_1.z.boolean(),
|
|
20
|
+
customRemarks: custom_remarks_schema_1.CustomRemarksSchema,
|
|
19
21
|
happAnnounce: zod_1.z.string().nullable(),
|
|
20
22
|
happRouting: zod_1.z.string().nullable(),
|
|
21
|
-
expiredUsersRemarks: zod_1.z.array(zod_1.z.string()),
|
|
22
|
-
limitedUsersRemarks: zod_1.z.array(zod_1.z.string()),
|
|
23
|
-
disabledUsersRemarks: zod_1.z.array(zod_1.z.string()),
|
|
24
23
|
customResponseHeaders: zod_1.z.nullable(zod_1.z.record(zod_1.z.string(), zod_1.z.string())),
|
|
25
24
|
randomizeHosts: zod_1.z.boolean(),
|
|
26
25
|
responseRules: zod_1.z.nullable(response_rules_1.ResponseRulesConfigSchema),
|
|
@@ -28,7 +28,7 @@ var UpdateExternalSquadCommand;
|
|
|
28
28
|
hostOverrides: models_1.ExternalSquadHostOverridesSchema.optional(),
|
|
29
29
|
responseHeaders: models_1.ExternalSquadResponseHeadersSchema.optional(),
|
|
30
30
|
hwidSettings: zod_1.z.optional(zod_1.z.nullable(models_1.HwidSettingsSchema)),
|
|
31
|
-
customRemarks: zod_1.z.optional(zod_1.z.nullable(models_1.
|
|
31
|
+
customRemarks: zod_1.z.optional(zod_1.z.nullable(models_1.CustomRemarksSchema)),
|
|
32
32
|
});
|
|
33
33
|
UpdateExternalSquadCommand.ResponseSchema = zod_1.z.object({
|
|
34
34
|
response: models_1.ExternalSquadSchema,
|
package/build/frontend/commands/subscription-settings/update-subscription-settings.command.js
CHANGED
|
@@ -18,15 +18,13 @@ var UpdateSubscriptionSettingsCommand;
|
|
|
18
18
|
isProfileWebpageUrlEnabled: zod_1.z.optional(zod_1.z.boolean()),
|
|
19
19
|
serveJsonAtBaseSubscription: zod_1.z.optional(zod_1.z.boolean()),
|
|
20
20
|
addUsernameToBaseSubscription: zod_1.z.optional(zod_1.z.boolean()),
|
|
21
|
-
isShowCustomRemarks: zod_1.z.optional(zod_1.z.boolean()),
|
|
22
21
|
happAnnounce: zod_1.z.optional(zod_1.z
|
|
23
22
|
.string()
|
|
24
23
|
.max(200, { message: 'Announce must be less than 200 characters' })
|
|
25
24
|
.nullable()),
|
|
26
25
|
happRouting: zod_1.z.optional(zod_1.z.string().nullable()),
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
disabledUsersRemarks: zod_1.z.optional(zod_1.z.array(zod_1.z.string())),
|
|
26
|
+
isShowCustomRemarks: zod_1.z.optional(zod_1.z.boolean()),
|
|
27
|
+
customRemarks: zod_1.z.optional(models_1.CustomRemarksSchema),
|
|
30
28
|
customResponseHeaders: zod_1.z.optional(zod_1.z.record(zod_1.z
|
|
31
29
|
.string()
|
|
32
30
|
.regex(/^[a-zA-Z0-9_-]+$/, 'Invalid header name. Only letters(a-z, A-Z), numbers(0-9), underscores(_) and hyphens(-) are allowed.'), zod_1.z.string())),
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ExternalSquadSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const external_squads_1 = require("./external-squads");
|
|
6
|
-
const
|
|
6
|
+
const subscription_settings_1 = require("./subscription-settings");
|
|
7
7
|
const constants_1 = require("../constants");
|
|
8
8
|
exports.ExternalSquadSchema = zod_1.z.object({
|
|
9
9
|
uuid: zod_1.z.string().uuid(),
|
|
@@ -19,8 +19,8 @@ exports.ExternalSquadSchema = zod_1.z.object({
|
|
|
19
19
|
subscriptionSettings: zod_1.z.nullable(external_squads_1.ExternalSquadSubscriptionSettingsSchema),
|
|
20
20
|
hostOverrides: zod_1.z.nullable(external_squads_1.ExternalSquadHostOverridesSchema),
|
|
21
21
|
responseHeaders: external_squads_1.ExternalSquadResponseHeadersSchema,
|
|
22
|
-
hwidSettings: zod_1.z.nullable(
|
|
23
|
-
customRemarks: zod_1.z.nullable(
|
|
22
|
+
hwidSettings: zod_1.z.nullable(subscription_settings_1.HwidSettingsSchema),
|
|
23
|
+
customRemarks: zod_1.z.nullable(subscription_settings_1.CustomRemarksSchema),
|
|
24
24
|
createdAt: zod_1.z
|
|
25
25
|
.string()
|
|
26
26
|
.datetime()
|
|
@@ -14,7 +14,6 @@ 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("./external-squad-custom-remarks.schema"), exports);
|
|
18
17
|
__exportStar(require("./external-squad-host-overrides.schema"), exports);
|
|
19
18
|
__exportStar(require("./external-squad-response-headers.schema"), exports);
|
|
20
19
|
__exportStar(require("./external-squad-subscription-settings.schema"), exports);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.CustomRemarksSchema = void 0;
|
|
7
|
+
const zod_1 = __importDefault(require("zod"));
|
|
8
|
+
exports.CustomRemarksSchema = zod_1.default.object({
|
|
9
|
+
expiredUsers: zod_1.default.array(zod_1.default.string()).min(1),
|
|
10
|
+
limitedUsers: zod_1.default.array(zod_1.default.string()).min(1),
|
|
11
|
+
disabledUsers: zod_1.default.array(zod_1.default.string()).min(1),
|
|
12
|
+
emptyHosts: zod_1.default.array(zod_1.default.string()).min(1),
|
|
13
|
+
emptyInternalSquads: zod_1.default.array(zod_1.default.string()).min(1),
|
|
14
|
+
});
|
|
@@ -14,4 +14,5 @@ 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("./custom-remarks.schema"), exports);
|
|
17
18
|
__exportStar(require("./hwid-settings.schema"), exports);
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SubscriptionSettingsSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const custom_remarks_schema_1 = require("./subscription-settings/custom-remarks.schema");
|
|
5
6
|
const hwid_settings_schema_1 = require("./subscription-settings/hwid-settings.schema");
|
|
6
7
|
const response_rules_1 = require("./response-rules");
|
|
7
8
|
exports.SubscriptionSettingsSchema = zod_1.z.object({
|
|
@@ -16,11 +17,9 @@ exports.SubscriptionSettingsSchema = zod_1.z.object({
|
|
|
16
17
|
serveJsonAtBaseSubscription: zod_1.z.boolean(),
|
|
17
18
|
addUsernameToBaseSubscription: zod_1.z.boolean(),
|
|
18
19
|
isShowCustomRemarks: zod_1.z.boolean(),
|
|
20
|
+
customRemarks: custom_remarks_schema_1.CustomRemarksSchema,
|
|
19
21
|
happAnnounce: zod_1.z.string().nullable(),
|
|
20
22
|
happRouting: zod_1.z.string().nullable(),
|
|
21
|
-
expiredUsersRemarks: zod_1.z.array(zod_1.z.string()),
|
|
22
|
-
limitedUsersRemarks: zod_1.z.array(zod_1.z.string()),
|
|
23
|
-
disabledUsersRemarks: zod_1.z.array(zod_1.z.string()),
|
|
24
23
|
customResponseHeaders: zod_1.z.nullable(zod_1.z.record(zod_1.z.string(), zod_1.z.string())),
|
|
25
24
|
randomizeHosts: zod_1.z.boolean(),
|
|
26
25
|
responseRules: zod_1.z.nullable(response_rules_1.ResponseRulesConfigSchema),
|