@remnawave/backend-contract 0.3.11 → 0.3.13

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.
@@ -8,6 +8,7 @@ export declare namespace GetSubscriptionSettingsCommand {
8
8
  profileTitle: z.ZodString;
9
9
  supportLink: z.ZodString;
10
10
  profileUpdateInterval: z.ZodNumber;
11
+ isProfileWebpageUrlEnabled: z.ZodBoolean;
11
12
  happAnnounce: z.ZodNullable<z.ZodString>;
12
13
  happRouting: z.ZodNullable<z.ZodString>;
13
14
  expiredUsersRemarks: z.ZodArray<z.ZodString, "many">;
@@ -22,6 +23,7 @@ export declare namespace GetSubscriptionSettingsCommand {
22
23
  profileTitle: string;
23
24
  supportLink: string;
24
25
  profileUpdateInterval: number;
26
+ isProfileWebpageUrlEnabled: boolean;
25
27
  happAnnounce: string | null;
26
28
  happRouting: string | null;
27
29
  expiredUsersRemarks: string[];
@@ -34,6 +36,7 @@ export declare namespace GetSubscriptionSettingsCommand {
34
36
  profileTitle: string;
35
37
  supportLink: string;
36
38
  profileUpdateInterval: number;
39
+ isProfileWebpageUrlEnabled: boolean;
37
40
  happAnnounce: string | null;
38
41
  happRouting: string | null;
39
42
  expiredUsersRemarks: string[];
@@ -48,6 +51,7 @@ export declare namespace GetSubscriptionSettingsCommand {
48
51
  profileTitle: string;
49
52
  supportLink: string;
50
53
  profileUpdateInterval: number;
54
+ isProfileWebpageUrlEnabled: boolean;
51
55
  happAnnounce: string | null;
52
56
  happRouting: string | null;
53
57
  expiredUsersRemarks: string[];
@@ -62,6 +66,7 @@ export declare namespace GetSubscriptionSettingsCommand {
62
66
  profileTitle: string;
63
67
  supportLink: string;
64
68
  profileUpdateInterval: number;
69
+ isProfileWebpageUrlEnabled: boolean;
65
70
  happAnnounce: string | null;
66
71
  happRouting: string | null;
67
72
  expiredUsersRemarks: string[];
@@ -1 +1 @@
1
- {"version":3,"file":"get-subscription-settings.command.d.ts","sourceRoot":"","sources":["../../../../commands/subscription-settings/get-subscription-settings.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,8BAA8B,CAAC;IACrC,MAAM,GAAG,kCAA8C,CAAC;IACxD,MAAM,OAAO,kCAAM,CAAC;IAEpB,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"get-subscription-settings.command.d.ts","sourceRoot":"","sources":["../../../../commands/subscription-settings/get-subscription-settings.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,8BAA8B,CAAC;IACrC,MAAM,GAAG,kCAA8C,CAAC;IACxD,MAAM,OAAO,kCAAM,CAAC;IAEpB,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -7,6 +7,7 @@ export declare namespace UpdateSubscriptionSettingsCommand {
7
7
  profileTitle: z.ZodOptional<z.ZodString>;
8
8
  supportLink: z.ZodOptional<z.ZodString>;
9
9
  profileUpdateInterval: z.ZodOptional<z.ZodNumber>;
10
+ isProfileWebpageUrlEnabled: z.ZodOptional<z.ZodBoolean>;
10
11
  happAnnounce: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
12
  happRouting: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
13
  expiredUsersRemarks: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -17,6 +18,7 @@ export declare namespace UpdateSubscriptionSettingsCommand {
17
18
  profileTitle?: string | undefined;
18
19
  supportLink?: string | undefined;
19
20
  profileUpdateInterval?: number | undefined;
21
+ isProfileWebpageUrlEnabled?: boolean | undefined;
20
22
  happAnnounce?: string | null | undefined;
21
23
  happRouting?: string | null | undefined;
22
24
  expiredUsersRemarks?: string[] | undefined;
@@ -27,6 +29,7 @@ export declare namespace UpdateSubscriptionSettingsCommand {
27
29
  profileTitle?: string | undefined;
28
30
  supportLink?: string | undefined;
29
31
  profileUpdateInterval?: number | undefined;
32
+ isProfileWebpageUrlEnabled?: boolean | undefined;
30
33
  happAnnounce?: string | null | undefined;
31
34
  happRouting?: string | null | undefined;
32
35
  expiredUsersRemarks?: string[] | undefined;
@@ -40,6 +43,7 @@ export declare namespace UpdateSubscriptionSettingsCommand {
40
43
  profileTitle: z.ZodString;
41
44
  supportLink: z.ZodString;
42
45
  profileUpdateInterval: z.ZodNumber;
46
+ isProfileWebpageUrlEnabled: z.ZodBoolean;
43
47
  happAnnounce: z.ZodNullable<z.ZodString>;
44
48
  happRouting: z.ZodNullable<z.ZodString>;
45
49
  expiredUsersRemarks: z.ZodArray<z.ZodString, "many">;
@@ -54,6 +58,7 @@ export declare namespace UpdateSubscriptionSettingsCommand {
54
58
  profileTitle: string;
55
59
  supportLink: string;
56
60
  profileUpdateInterval: number;
61
+ isProfileWebpageUrlEnabled: boolean;
57
62
  happAnnounce: string | null;
58
63
  happRouting: string | null;
59
64
  expiredUsersRemarks: string[];
@@ -66,6 +71,7 @@ export declare namespace UpdateSubscriptionSettingsCommand {
66
71
  profileTitle: string;
67
72
  supportLink: string;
68
73
  profileUpdateInterval: number;
74
+ isProfileWebpageUrlEnabled: boolean;
69
75
  happAnnounce: string | null;
70
76
  happRouting: string | null;
71
77
  expiredUsersRemarks: string[];
@@ -80,6 +86,7 @@ export declare namespace UpdateSubscriptionSettingsCommand {
80
86
  profileTitle: string;
81
87
  supportLink: string;
82
88
  profileUpdateInterval: number;
89
+ isProfileWebpageUrlEnabled: boolean;
83
90
  happAnnounce: string | null;
84
91
  happRouting: string | null;
85
92
  expiredUsersRemarks: string[];
@@ -94,6 +101,7 @@ export declare namespace UpdateSubscriptionSettingsCommand {
94
101
  profileTitle: string;
95
102
  supportLink: string;
96
103
  profileUpdateInterval: number;
104
+ isProfileWebpageUrlEnabled: boolean;
97
105
  happAnnounce: string | null;
98
106
  happRouting: string | null;
99
107
  expiredUsersRemarks: string[];
@@ -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;AAKxB,yBAAiB,iCAAiC,CAAC;IACxC,MAAM,GAAG,qCAAiD,CAAC;IAC3D,MAAM,OAAO,qCAAM,CAAC;IAEpB,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAaxB,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":"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;AAKxB,yBAAiB,iCAAiC,CAAC;IACxC,MAAM,GAAG,qCAAiD,CAAC;IAC3D,MAAM,OAAO,qCAAM,CAAC;IAEpB,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAmBxB,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"}
@@ -13,7 +13,11 @@ var UpdateSubscriptionSettingsCommand;
13
13
  profileTitle: zod_1.z.optional(zod_1.z.string()),
14
14
  supportLink: zod_1.z.optional(zod_1.z.string()),
15
15
  profileUpdateInterval: zod_1.z.optional(zod_1.z.number().int()),
16
- happAnnounce: zod_1.z.optional(zod_1.z.string().nullable()),
16
+ isProfileWebpageUrlEnabled: zod_1.z.optional(zod_1.z.boolean()),
17
+ happAnnounce: zod_1.z.optional(zod_1.z
18
+ .string()
19
+ .max(200, { message: 'Announce must be less than 200 characters' })
20
+ .nullable()),
17
21
  happRouting: zod_1.z.optional(zod_1.z.string().nullable()),
18
22
  expiredUsersRemarks: zod_1.z.optional(zod_1.z.array(zod_1.z.string())),
19
23
  limitedUsersRemarks: zod_1.z.optional(zod_1.z.array(zod_1.z.string())),
@@ -4,6 +4,7 @@ export declare const SubscriptionSettingsSchema: z.ZodObject<{
4
4
  profileTitle: z.ZodString;
5
5
  supportLink: z.ZodString;
6
6
  profileUpdateInterval: z.ZodNumber;
7
+ isProfileWebpageUrlEnabled: z.ZodBoolean;
7
8
  happAnnounce: z.ZodNullable<z.ZodString>;
8
9
  happRouting: z.ZodNullable<z.ZodString>;
9
10
  expiredUsersRemarks: z.ZodArray<z.ZodString, "many">;
@@ -18,6 +19,7 @@ export declare const SubscriptionSettingsSchema: z.ZodObject<{
18
19
  profileTitle: string;
19
20
  supportLink: string;
20
21
  profileUpdateInterval: number;
22
+ isProfileWebpageUrlEnabled: boolean;
21
23
  happAnnounce: string | null;
22
24
  happRouting: string | null;
23
25
  expiredUsersRemarks: string[];
@@ -30,6 +32,7 @@ export declare const SubscriptionSettingsSchema: z.ZodObject<{
30
32
  profileTitle: string;
31
33
  supportLink: string;
32
34
  profileUpdateInterval: number;
35
+ isProfileWebpageUrlEnabled: boolean;
33
36
  happAnnounce: string | null;
34
37
  happRouting: string | null;
35
38
  expiredUsersRemarks: string[];
@@ -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;AAExB,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsBrC,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;AAExB,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuBrC,CAAC"}
@@ -7,6 +7,7 @@ exports.SubscriptionSettingsSchema = zod_1.z.object({
7
7
  profileTitle: zod_1.z.string(),
8
8
  supportLink: zod_1.z.string(),
9
9
  profileUpdateInterval: zod_1.z.number().int(),
10
+ isProfileWebpageUrlEnabled: zod_1.z.boolean(),
10
11
  happAnnounce: zod_1.z.string().nullable(),
11
12
  happRouting: zod_1.z.string().nullable(),
12
13
  expiredUsersRemarks: zod_1.z.array(zod_1.z.string()),
@@ -13,7 +13,11 @@ var UpdateSubscriptionSettingsCommand;
13
13
  profileTitle: zod_1.z.optional(zod_1.z.string()),
14
14
  supportLink: zod_1.z.optional(zod_1.z.string()),
15
15
  profileUpdateInterval: zod_1.z.optional(zod_1.z.number().int()),
16
- happAnnounce: zod_1.z.optional(zod_1.z.string().nullable()),
16
+ isProfileWebpageUrlEnabled: zod_1.z.optional(zod_1.z.boolean()),
17
+ happAnnounce: zod_1.z.optional(zod_1.z
18
+ .string()
19
+ .max(200, { message: 'Announce must be less than 200 characters' })
20
+ .nullable()),
17
21
  happRouting: zod_1.z.optional(zod_1.z.string().nullable()),
18
22
  expiredUsersRemarks: zod_1.z.optional(zod_1.z.array(zod_1.z.string())),
19
23
  limitedUsersRemarks: zod_1.z.optional(zod_1.z.array(zod_1.z.string())),
@@ -7,6 +7,7 @@ exports.SubscriptionSettingsSchema = zod_1.z.object({
7
7
  profileTitle: zod_1.z.string(),
8
8
  supportLink: zod_1.z.string(),
9
9
  profileUpdateInterval: zod_1.z.number().int(),
10
+ isProfileWebpageUrlEnabled: zod_1.z.boolean(),
10
11
  happAnnounce: zod_1.z.string().nullable(),
11
12
  happRouting: zod_1.z.string().nullable(),
12
13
  expiredUsersRemarks: zod_1.z.array(zod_1.z.string()),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/backend-contract",
3
- "version": "0.3.11",
3
+ "version": "0.3.13",
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.",