@remnawave/backend-contract 2.2.6 → 2.2.8

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.
Files changed (23) hide show
  1. package/build/backend/commands/external-squads/create-external-squad.command.d.ts +82 -0
  2. package/build/backend/commands/external-squads/create-external-squad.command.d.ts.map +1 -1
  3. package/build/backend/commands/external-squads/get-external-squad-by-uuid.d.ts +82 -0
  4. package/build/backend/commands/external-squads/get-external-squad-by-uuid.d.ts.map +1 -1
  5. package/build/backend/commands/external-squads/get-external-squads.command.d.ts +106 -0
  6. package/build/backend/commands/external-squads/get-external-squads.command.d.ts.map +1 -1
  7. package/build/backend/commands/external-squads/update-external-squad.command.d.ts +140 -0
  8. package/build/backend/commands/external-squads/update-external-squad.command.d.ts.map +1 -1
  9. package/build/backend/commands/external-squads/update-external-squad.command.js +2 -1
  10. package/build/backend/models/external-squad-subscription-settings.schema.d.ts +35 -0
  11. package/build/backend/models/external-squad-subscription-settings.schema.d.ts.map +1 -0
  12. package/build/backend/models/external-squad-subscription-settings.schema.js +16 -0
  13. package/build/backend/models/external-squad.schema.d.ts +58 -0
  14. package/build/backend/models/external-squad.schema.d.ts.map +1 -1
  15. package/build/backend/models/external-squad.schema.js +2 -0
  16. package/build/backend/models/index.d.ts +1 -0
  17. package/build/backend/models/index.d.ts.map +1 -1
  18. package/build/backend/models/index.js +1 -0
  19. package/build/frontend/commands/external-squads/update-external-squad.command.js +2 -1
  20. package/build/frontend/models/external-squad-subscription-settings.schema.js +16 -0
  21. package/build/frontend/models/external-squad.schema.js +2 -0
  22. package/build/frontend/models/index.js +1 -0
  23. package/package.json +1 -1
@@ -39,6 +39,40 @@ export declare namespace CreateExternalSquadCommand {
39
39
  templateUuid: string;
40
40
  templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
41
41
  }>, "many">;
42
+ subscriptionSettings: z.ZodNullable<z.ZodObject<{
43
+ profileTitle: z.ZodOptional<z.ZodString>;
44
+ supportLink: z.ZodOptional<z.ZodString>;
45
+ profileUpdateInterval: z.ZodOptional<z.ZodNumber>;
46
+ isProfileWebpageUrlEnabled: z.ZodOptional<z.ZodBoolean>;
47
+ serveJsonAtBaseSubscription: z.ZodOptional<z.ZodBoolean>;
48
+ addUsernameToBaseSubscription: z.ZodOptional<z.ZodBoolean>;
49
+ isShowCustomRemarks: z.ZodOptional<z.ZodBoolean>;
50
+ happAnnounce: z.ZodOptional<z.ZodNullable<z.ZodString>>;
51
+ happRouting: z.ZodOptional<z.ZodNullable<z.ZodString>>;
52
+ randomizeHosts: z.ZodOptional<z.ZodBoolean>;
53
+ }, "strip", z.ZodTypeAny, {
54
+ profileTitle?: string | undefined;
55
+ supportLink?: string | undefined;
56
+ profileUpdateInterval?: number | undefined;
57
+ isProfileWebpageUrlEnabled?: boolean | undefined;
58
+ serveJsonAtBaseSubscription?: boolean | undefined;
59
+ addUsernameToBaseSubscription?: boolean | undefined;
60
+ isShowCustomRemarks?: boolean | undefined;
61
+ happAnnounce?: string | null | undefined;
62
+ happRouting?: string | null | undefined;
63
+ randomizeHosts?: boolean | undefined;
64
+ }, {
65
+ profileTitle?: string | undefined;
66
+ supportLink?: string | undefined;
67
+ profileUpdateInterval?: number | undefined;
68
+ isProfileWebpageUrlEnabled?: boolean | undefined;
69
+ serveJsonAtBaseSubscription?: boolean | undefined;
70
+ addUsernameToBaseSubscription?: boolean | undefined;
71
+ isShowCustomRemarks?: boolean | undefined;
72
+ happAnnounce?: string | null | undefined;
73
+ happRouting?: string | null | undefined;
74
+ randomizeHosts?: boolean | undefined;
75
+ }>>;
42
76
  createdAt: z.ZodEffects<z.ZodString, Date, string>;
43
77
  updatedAt: z.ZodEffects<z.ZodString, Date, string>;
44
78
  }, "strip", z.ZodTypeAny, {
@@ -53,6 +87,18 @@ export declare namespace CreateExternalSquadCommand {
53
87
  templateUuid: string;
54
88
  templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
55
89
  }[];
90
+ subscriptionSettings: {
91
+ profileTitle?: string | undefined;
92
+ supportLink?: string | undefined;
93
+ profileUpdateInterval?: number | undefined;
94
+ isProfileWebpageUrlEnabled?: boolean | undefined;
95
+ serveJsonAtBaseSubscription?: boolean | undefined;
96
+ addUsernameToBaseSubscription?: boolean | undefined;
97
+ isShowCustomRemarks?: boolean | undefined;
98
+ happAnnounce?: string | null | undefined;
99
+ happRouting?: string | null | undefined;
100
+ randomizeHosts?: boolean | undefined;
101
+ } | null;
56
102
  }, {
57
103
  uuid: string;
58
104
  createdAt: string;
@@ -65,6 +111,18 @@ export declare namespace CreateExternalSquadCommand {
65
111
  templateUuid: string;
66
112
  templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
67
113
  }[];
114
+ subscriptionSettings: {
115
+ profileTitle?: string | undefined;
116
+ supportLink?: string | undefined;
117
+ profileUpdateInterval?: number | undefined;
118
+ isProfileWebpageUrlEnabled?: boolean | undefined;
119
+ serveJsonAtBaseSubscription?: boolean | undefined;
120
+ addUsernameToBaseSubscription?: boolean | undefined;
121
+ isShowCustomRemarks?: boolean | undefined;
122
+ happAnnounce?: string | null | undefined;
123
+ happRouting?: string | null | undefined;
124
+ randomizeHosts?: boolean | undefined;
125
+ } | null;
68
126
  }>;
69
127
  }, "strip", z.ZodTypeAny, {
70
128
  response: {
@@ -79,6 +137,18 @@ export declare namespace CreateExternalSquadCommand {
79
137
  templateUuid: string;
80
138
  templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
81
139
  }[];
140
+ subscriptionSettings: {
141
+ profileTitle?: string | undefined;
142
+ supportLink?: string | undefined;
143
+ profileUpdateInterval?: number | undefined;
144
+ isProfileWebpageUrlEnabled?: boolean | undefined;
145
+ serveJsonAtBaseSubscription?: boolean | undefined;
146
+ addUsernameToBaseSubscription?: boolean | undefined;
147
+ isShowCustomRemarks?: boolean | undefined;
148
+ happAnnounce?: string | null | undefined;
149
+ happRouting?: string | null | undefined;
150
+ randomizeHosts?: boolean | undefined;
151
+ } | null;
82
152
  };
83
153
  }, {
84
154
  response: {
@@ -93,6 +163,18 @@ export declare namespace CreateExternalSquadCommand {
93
163
  templateUuid: string;
94
164
  templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
95
165
  }[];
166
+ subscriptionSettings: {
167
+ profileTitle?: string | undefined;
168
+ supportLink?: string | undefined;
169
+ profileUpdateInterval?: number | undefined;
170
+ isProfileWebpageUrlEnabled?: boolean | undefined;
171
+ serveJsonAtBaseSubscription?: boolean | undefined;
172
+ addUsernameToBaseSubscription?: boolean | undefined;
173
+ isShowCustomRemarks?: boolean | undefined;
174
+ happAnnounce?: string | null | undefined;
175
+ happRouting?: string | null | undefined;
176
+ randomizeHosts?: boolean | undefined;
177
+ } | null;
96
178
  };
97
179
  }>;
98
180
  type Response = z.infer<typeof ResponseSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"create-external-squad.command.d.ts","sourceRoot":"","sources":["../../../../commands/external-squads/create-external-squad.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,0BAA0B,CAAC;IACjC,MAAM,GAAG,yBAAkC,CAAC;IAC5C,MAAM,OAAO,yBAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MASxB,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":"create-external-squad.command.d.ts","sourceRoot":"","sources":["../../../../commands/external-squads/create-external-squad.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,0BAA0B,CAAC;IACjC,MAAM,GAAG,yBAAkC,CAAC;IAC5C,MAAM,OAAO,yBAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MASxB,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"}
@@ -39,6 +39,40 @@ export declare namespace GetExternalSquadByUuidCommand {
39
39
  templateUuid: string;
40
40
  templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
41
41
  }>, "many">;
42
+ subscriptionSettings: z.ZodNullable<z.ZodObject<{
43
+ profileTitle: z.ZodOptional<z.ZodString>;
44
+ supportLink: z.ZodOptional<z.ZodString>;
45
+ profileUpdateInterval: z.ZodOptional<z.ZodNumber>;
46
+ isProfileWebpageUrlEnabled: z.ZodOptional<z.ZodBoolean>;
47
+ serveJsonAtBaseSubscription: z.ZodOptional<z.ZodBoolean>;
48
+ addUsernameToBaseSubscription: z.ZodOptional<z.ZodBoolean>;
49
+ isShowCustomRemarks: z.ZodOptional<z.ZodBoolean>;
50
+ happAnnounce: z.ZodOptional<z.ZodNullable<z.ZodString>>;
51
+ happRouting: z.ZodOptional<z.ZodNullable<z.ZodString>>;
52
+ randomizeHosts: z.ZodOptional<z.ZodBoolean>;
53
+ }, "strip", z.ZodTypeAny, {
54
+ profileTitle?: string | undefined;
55
+ supportLink?: string | undefined;
56
+ profileUpdateInterval?: number | undefined;
57
+ isProfileWebpageUrlEnabled?: boolean | undefined;
58
+ serveJsonAtBaseSubscription?: boolean | undefined;
59
+ addUsernameToBaseSubscription?: boolean | undefined;
60
+ isShowCustomRemarks?: boolean | undefined;
61
+ happAnnounce?: string | null | undefined;
62
+ happRouting?: string | null | undefined;
63
+ randomizeHosts?: boolean | undefined;
64
+ }, {
65
+ profileTitle?: string | undefined;
66
+ supportLink?: string | undefined;
67
+ profileUpdateInterval?: number | undefined;
68
+ isProfileWebpageUrlEnabled?: boolean | undefined;
69
+ serveJsonAtBaseSubscription?: boolean | undefined;
70
+ addUsernameToBaseSubscription?: boolean | undefined;
71
+ isShowCustomRemarks?: boolean | undefined;
72
+ happAnnounce?: string | null | undefined;
73
+ happRouting?: string | null | undefined;
74
+ randomizeHosts?: boolean | undefined;
75
+ }>>;
42
76
  createdAt: z.ZodEffects<z.ZodString, Date, string>;
43
77
  updatedAt: z.ZodEffects<z.ZodString, Date, string>;
44
78
  }, "strip", z.ZodTypeAny, {
@@ -53,6 +87,18 @@ export declare namespace GetExternalSquadByUuidCommand {
53
87
  templateUuid: string;
54
88
  templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
55
89
  }[];
90
+ subscriptionSettings: {
91
+ profileTitle?: string | undefined;
92
+ supportLink?: string | undefined;
93
+ profileUpdateInterval?: number | undefined;
94
+ isProfileWebpageUrlEnabled?: boolean | undefined;
95
+ serveJsonAtBaseSubscription?: boolean | undefined;
96
+ addUsernameToBaseSubscription?: boolean | undefined;
97
+ isShowCustomRemarks?: boolean | undefined;
98
+ happAnnounce?: string | null | undefined;
99
+ happRouting?: string | null | undefined;
100
+ randomizeHosts?: boolean | undefined;
101
+ } | null;
56
102
  }, {
57
103
  uuid: string;
58
104
  createdAt: string;
@@ -65,6 +111,18 @@ export declare namespace GetExternalSquadByUuidCommand {
65
111
  templateUuid: string;
66
112
  templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
67
113
  }[];
114
+ subscriptionSettings: {
115
+ profileTitle?: string | undefined;
116
+ supportLink?: string | undefined;
117
+ profileUpdateInterval?: number | undefined;
118
+ isProfileWebpageUrlEnabled?: boolean | undefined;
119
+ serveJsonAtBaseSubscription?: boolean | undefined;
120
+ addUsernameToBaseSubscription?: boolean | undefined;
121
+ isShowCustomRemarks?: boolean | undefined;
122
+ happAnnounce?: string | null | undefined;
123
+ happRouting?: string | null | undefined;
124
+ randomizeHosts?: boolean | undefined;
125
+ } | null;
68
126
  }>;
69
127
  }, "strip", z.ZodTypeAny, {
70
128
  response: {
@@ -79,6 +137,18 @@ export declare namespace GetExternalSquadByUuidCommand {
79
137
  templateUuid: string;
80
138
  templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
81
139
  }[];
140
+ subscriptionSettings: {
141
+ profileTitle?: string | undefined;
142
+ supportLink?: string | undefined;
143
+ profileUpdateInterval?: number | undefined;
144
+ isProfileWebpageUrlEnabled?: boolean | undefined;
145
+ serveJsonAtBaseSubscription?: boolean | undefined;
146
+ addUsernameToBaseSubscription?: boolean | undefined;
147
+ isShowCustomRemarks?: boolean | undefined;
148
+ happAnnounce?: string | null | undefined;
149
+ happRouting?: string | null | undefined;
150
+ randomizeHosts?: boolean | undefined;
151
+ } | null;
82
152
  };
83
153
  }, {
84
154
  response: {
@@ -93,6 +163,18 @@ export declare namespace GetExternalSquadByUuidCommand {
93
163
  templateUuid: string;
94
164
  templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
95
165
  }[];
166
+ subscriptionSettings: {
167
+ profileTitle?: string | undefined;
168
+ supportLink?: string | undefined;
169
+ profileUpdateInterval?: number | undefined;
170
+ isProfileWebpageUrlEnabled?: boolean | undefined;
171
+ serveJsonAtBaseSubscription?: boolean | undefined;
172
+ addUsernameToBaseSubscription?: boolean | undefined;
173
+ isShowCustomRemarks?: boolean | undefined;
174
+ happAnnounce?: string | null | undefined;
175
+ happRouting?: string | null | undefined;
176
+ randomizeHosts?: boolean | undefined;
177
+ } | null;
96
178
  };
97
179
  }>;
98
180
  type Response = z.infer<typeof ResponseSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"get-external-squad-by-uuid.d.ts","sourceRoot":"","sources":["../../../../commands/external-squads/get-external-squad-by-uuid.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,6BAA6B,CAAC;IACpC,MAAM,GAAG,0BAAuC,CAAC;IACjD,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,eAAe,2CAI3B,CAAC;IAEK,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":"get-external-squad-by-uuid.d.ts","sourceRoot":"","sources":["../../../../commands/external-squads/get-external-squad-by-uuid.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,6BAA6B,CAAC;IACpC,MAAM,GAAG,0BAAuC,CAAC;IACjD,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,eAAe,2CAI3B,CAAC;IAEK,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"}
@@ -33,6 +33,40 @@ export declare namespace GetExternalSquadsCommand {
33
33
  templateUuid: string;
34
34
  templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
35
35
  }>, "many">;
36
+ subscriptionSettings: z.ZodNullable<z.ZodObject<{
37
+ profileTitle: z.ZodOptional<z.ZodString>;
38
+ supportLink: z.ZodOptional<z.ZodString>;
39
+ profileUpdateInterval: z.ZodOptional<z.ZodNumber>;
40
+ isProfileWebpageUrlEnabled: z.ZodOptional<z.ZodBoolean>;
41
+ serveJsonAtBaseSubscription: z.ZodOptional<z.ZodBoolean>;
42
+ addUsernameToBaseSubscription: z.ZodOptional<z.ZodBoolean>;
43
+ isShowCustomRemarks: z.ZodOptional<z.ZodBoolean>;
44
+ happAnnounce: z.ZodOptional<z.ZodNullable<z.ZodString>>;
45
+ happRouting: z.ZodOptional<z.ZodNullable<z.ZodString>>;
46
+ randomizeHosts: z.ZodOptional<z.ZodBoolean>;
47
+ }, "strip", z.ZodTypeAny, {
48
+ profileTitle?: string | undefined;
49
+ supportLink?: string | undefined;
50
+ profileUpdateInterval?: number | undefined;
51
+ isProfileWebpageUrlEnabled?: boolean | undefined;
52
+ serveJsonAtBaseSubscription?: boolean | undefined;
53
+ addUsernameToBaseSubscription?: boolean | undefined;
54
+ isShowCustomRemarks?: boolean | undefined;
55
+ happAnnounce?: string | null | undefined;
56
+ happRouting?: string | null | undefined;
57
+ randomizeHosts?: boolean | undefined;
58
+ }, {
59
+ profileTitle?: string | undefined;
60
+ supportLink?: string | undefined;
61
+ profileUpdateInterval?: number | undefined;
62
+ isProfileWebpageUrlEnabled?: boolean | undefined;
63
+ serveJsonAtBaseSubscription?: boolean | undefined;
64
+ addUsernameToBaseSubscription?: boolean | undefined;
65
+ isShowCustomRemarks?: boolean | undefined;
66
+ happAnnounce?: string | null | undefined;
67
+ happRouting?: string | null | undefined;
68
+ randomizeHosts?: boolean | undefined;
69
+ }>>;
36
70
  createdAt: z.ZodEffects<z.ZodString, Date, string>;
37
71
  updatedAt: z.ZodEffects<z.ZodString, Date, string>;
38
72
  }, "strip", z.ZodTypeAny, {
@@ -47,6 +81,18 @@ export declare namespace GetExternalSquadsCommand {
47
81
  templateUuid: string;
48
82
  templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
49
83
  }[];
84
+ subscriptionSettings: {
85
+ profileTitle?: string | undefined;
86
+ supportLink?: string | undefined;
87
+ profileUpdateInterval?: number | undefined;
88
+ isProfileWebpageUrlEnabled?: boolean | undefined;
89
+ serveJsonAtBaseSubscription?: boolean | undefined;
90
+ addUsernameToBaseSubscription?: boolean | undefined;
91
+ isShowCustomRemarks?: boolean | undefined;
92
+ happAnnounce?: string | null | undefined;
93
+ happRouting?: string | null | undefined;
94
+ randomizeHosts?: boolean | undefined;
95
+ } | null;
50
96
  }, {
51
97
  uuid: string;
52
98
  createdAt: string;
@@ -59,6 +105,18 @@ export declare namespace GetExternalSquadsCommand {
59
105
  templateUuid: string;
60
106
  templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
61
107
  }[];
108
+ subscriptionSettings: {
109
+ profileTitle?: string | undefined;
110
+ supportLink?: string | undefined;
111
+ profileUpdateInterval?: number | undefined;
112
+ isProfileWebpageUrlEnabled?: boolean | undefined;
113
+ serveJsonAtBaseSubscription?: boolean | undefined;
114
+ addUsernameToBaseSubscription?: boolean | undefined;
115
+ isShowCustomRemarks?: boolean | undefined;
116
+ happAnnounce?: string | null | undefined;
117
+ happRouting?: string | null | undefined;
118
+ randomizeHosts?: boolean | undefined;
119
+ } | null;
62
120
  }>, "many">;
63
121
  }, "strip", z.ZodTypeAny, {
64
122
  total: number;
@@ -74,6 +132,18 @@ export declare namespace GetExternalSquadsCommand {
74
132
  templateUuid: string;
75
133
  templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
76
134
  }[];
135
+ subscriptionSettings: {
136
+ profileTitle?: string | undefined;
137
+ supportLink?: string | undefined;
138
+ profileUpdateInterval?: number | undefined;
139
+ isProfileWebpageUrlEnabled?: boolean | undefined;
140
+ serveJsonAtBaseSubscription?: boolean | undefined;
141
+ addUsernameToBaseSubscription?: boolean | undefined;
142
+ isShowCustomRemarks?: boolean | undefined;
143
+ happAnnounce?: string | null | undefined;
144
+ happRouting?: string | null | undefined;
145
+ randomizeHosts?: boolean | undefined;
146
+ } | null;
77
147
  }[];
78
148
  }, {
79
149
  total: number;
@@ -89,6 +159,18 @@ export declare namespace GetExternalSquadsCommand {
89
159
  templateUuid: string;
90
160
  templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
91
161
  }[];
162
+ subscriptionSettings: {
163
+ profileTitle?: string | undefined;
164
+ supportLink?: string | undefined;
165
+ profileUpdateInterval?: number | undefined;
166
+ isProfileWebpageUrlEnabled?: boolean | undefined;
167
+ serveJsonAtBaseSubscription?: boolean | undefined;
168
+ addUsernameToBaseSubscription?: boolean | undefined;
169
+ isShowCustomRemarks?: boolean | undefined;
170
+ happAnnounce?: string | null | undefined;
171
+ happRouting?: string | null | undefined;
172
+ randomizeHosts?: boolean | undefined;
173
+ } | null;
92
174
  }[];
93
175
  }>;
94
176
  }, "strip", z.ZodTypeAny, {
@@ -106,6 +188,18 @@ export declare namespace GetExternalSquadsCommand {
106
188
  templateUuid: string;
107
189
  templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
108
190
  }[];
191
+ subscriptionSettings: {
192
+ profileTitle?: string | undefined;
193
+ supportLink?: string | undefined;
194
+ profileUpdateInterval?: number | undefined;
195
+ isProfileWebpageUrlEnabled?: boolean | undefined;
196
+ serveJsonAtBaseSubscription?: boolean | undefined;
197
+ addUsernameToBaseSubscription?: boolean | undefined;
198
+ isShowCustomRemarks?: boolean | undefined;
199
+ happAnnounce?: string | null | undefined;
200
+ happRouting?: string | null | undefined;
201
+ randomizeHosts?: boolean | undefined;
202
+ } | null;
109
203
  }[];
110
204
  };
111
205
  }, {
@@ -123,6 +217,18 @@ export declare namespace GetExternalSquadsCommand {
123
217
  templateUuid: string;
124
218
  templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
125
219
  }[];
220
+ subscriptionSettings: {
221
+ profileTitle?: string | undefined;
222
+ supportLink?: string | undefined;
223
+ profileUpdateInterval?: number | undefined;
224
+ isProfileWebpageUrlEnabled?: boolean | undefined;
225
+ serveJsonAtBaseSubscription?: boolean | undefined;
226
+ addUsernameToBaseSubscription?: boolean | undefined;
227
+ isShowCustomRemarks?: boolean | undefined;
228
+ happAnnounce?: string | null | undefined;
229
+ happRouting?: string | null | undefined;
230
+ randomizeHosts?: boolean | undefined;
231
+ } | null;
126
232
  }[];
127
233
  };
128
234
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"get-external-squads.command.d.ts","sourceRoot":"","sources":["../../../../commands/external-squads/get-external-squads.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,wBAAwB,CAAC;IAC/B,MAAM,GAAG,yBAA+B,CAAC;IACzC,MAAM,OAAO,yBAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAKzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"get-external-squads.command.d.ts","sourceRoot":"","sources":["../../../../commands/external-squads/get-external-squads.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,wBAAwB,CAAC;IAC/B,MAAM,GAAG,yBAA+B,CAAC;IACzC,MAAM,OAAO,yBAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAKzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -23,6 +23,40 @@ export declare namespace UpdateExternalSquadCommand {
23
23
  templateUuid: string;
24
24
  templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
25
25
  }>, "many">>;
26
+ subscriptionSettings: z.ZodOptional<z.ZodObject<{
27
+ profileTitle: z.ZodOptional<z.ZodString>;
28
+ supportLink: z.ZodOptional<z.ZodString>;
29
+ profileUpdateInterval: z.ZodOptional<z.ZodNumber>;
30
+ isProfileWebpageUrlEnabled: z.ZodOptional<z.ZodBoolean>;
31
+ serveJsonAtBaseSubscription: z.ZodOptional<z.ZodBoolean>;
32
+ addUsernameToBaseSubscription: z.ZodOptional<z.ZodBoolean>;
33
+ isShowCustomRemarks: z.ZodOptional<z.ZodBoolean>;
34
+ happAnnounce: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
+ happRouting: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
+ randomizeHosts: z.ZodOptional<z.ZodBoolean>;
37
+ }, "strip", z.ZodTypeAny, {
38
+ profileTitle?: string | undefined;
39
+ supportLink?: string | undefined;
40
+ profileUpdateInterval?: number | undefined;
41
+ isProfileWebpageUrlEnabled?: boolean | undefined;
42
+ serveJsonAtBaseSubscription?: boolean | undefined;
43
+ addUsernameToBaseSubscription?: boolean | undefined;
44
+ isShowCustomRemarks?: boolean | undefined;
45
+ happAnnounce?: string | null | undefined;
46
+ happRouting?: string | null | undefined;
47
+ randomizeHosts?: boolean | undefined;
48
+ }, {
49
+ profileTitle?: string | undefined;
50
+ supportLink?: string | undefined;
51
+ profileUpdateInterval?: number | undefined;
52
+ isProfileWebpageUrlEnabled?: boolean | undefined;
53
+ serveJsonAtBaseSubscription?: boolean | undefined;
54
+ addUsernameToBaseSubscription?: boolean | undefined;
55
+ isShowCustomRemarks?: boolean | undefined;
56
+ happAnnounce?: string | null | undefined;
57
+ happRouting?: string | null | undefined;
58
+ randomizeHosts?: boolean | undefined;
59
+ }>>;
26
60
  }, "strip", z.ZodTypeAny, {
27
61
  uuid: string;
28
62
  name?: string | undefined;
@@ -30,6 +64,18 @@ export declare namespace UpdateExternalSquadCommand {
30
64
  templateUuid: string;
31
65
  templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
32
66
  }[] | undefined;
67
+ subscriptionSettings?: {
68
+ profileTitle?: string | undefined;
69
+ supportLink?: string | undefined;
70
+ profileUpdateInterval?: number | undefined;
71
+ isProfileWebpageUrlEnabled?: boolean | undefined;
72
+ serveJsonAtBaseSubscription?: boolean | undefined;
73
+ addUsernameToBaseSubscription?: boolean | undefined;
74
+ isShowCustomRemarks?: boolean | undefined;
75
+ happAnnounce?: string | null | undefined;
76
+ happRouting?: string | null | undefined;
77
+ randomizeHosts?: boolean | undefined;
78
+ } | undefined;
33
79
  }, {
34
80
  uuid: string;
35
81
  name?: string | undefined;
@@ -37,6 +83,18 @@ export declare namespace UpdateExternalSquadCommand {
37
83
  templateUuid: string;
38
84
  templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
39
85
  }[] | undefined;
86
+ subscriptionSettings?: {
87
+ profileTitle?: string | undefined;
88
+ supportLink?: string | undefined;
89
+ profileUpdateInterval?: number | undefined;
90
+ isProfileWebpageUrlEnabled?: boolean | undefined;
91
+ serveJsonAtBaseSubscription?: boolean | undefined;
92
+ addUsernameToBaseSubscription?: boolean | undefined;
93
+ isShowCustomRemarks?: boolean | undefined;
94
+ happAnnounce?: string | null | undefined;
95
+ happRouting?: string | null | undefined;
96
+ randomizeHosts?: boolean | undefined;
97
+ } | undefined;
40
98
  }>;
41
99
  type Request = z.infer<typeof RequestSchema>;
42
100
  const ResponseSchema: z.ZodObject<{
@@ -67,6 +125,40 @@ export declare namespace UpdateExternalSquadCommand {
67
125
  templateUuid: string;
68
126
  templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
69
127
  }>, "many">;
128
+ subscriptionSettings: z.ZodNullable<z.ZodObject<{
129
+ profileTitle: z.ZodOptional<z.ZodString>;
130
+ supportLink: z.ZodOptional<z.ZodString>;
131
+ profileUpdateInterval: z.ZodOptional<z.ZodNumber>;
132
+ isProfileWebpageUrlEnabled: z.ZodOptional<z.ZodBoolean>;
133
+ serveJsonAtBaseSubscription: z.ZodOptional<z.ZodBoolean>;
134
+ addUsernameToBaseSubscription: z.ZodOptional<z.ZodBoolean>;
135
+ isShowCustomRemarks: z.ZodOptional<z.ZodBoolean>;
136
+ happAnnounce: z.ZodOptional<z.ZodNullable<z.ZodString>>;
137
+ happRouting: z.ZodOptional<z.ZodNullable<z.ZodString>>;
138
+ randomizeHosts: z.ZodOptional<z.ZodBoolean>;
139
+ }, "strip", z.ZodTypeAny, {
140
+ profileTitle?: string | undefined;
141
+ supportLink?: string | undefined;
142
+ profileUpdateInterval?: number | undefined;
143
+ isProfileWebpageUrlEnabled?: boolean | undefined;
144
+ serveJsonAtBaseSubscription?: boolean | undefined;
145
+ addUsernameToBaseSubscription?: boolean | undefined;
146
+ isShowCustomRemarks?: boolean | undefined;
147
+ happAnnounce?: string | null | undefined;
148
+ happRouting?: string | null | undefined;
149
+ randomizeHosts?: boolean | undefined;
150
+ }, {
151
+ profileTitle?: string | undefined;
152
+ supportLink?: string | undefined;
153
+ profileUpdateInterval?: number | undefined;
154
+ isProfileWebpageUrlEnabled?: boolean | undefined;
155
+ serveJsonAtBaseSubscription?: boolean | undefined;
156
+ addUsernameToBaseSubscription?: boolean | undefined;
157
+ isShowCustomRemarks?: boolean | undefined;
158
+ happAnnounce?: string | null | undefined;
159
+ happRouting?: string | null | undefined;
160
+ randomizeHosts?: boolean | undefined;
161
+ }>>;
70
162
  createdAt: z.ZodEffects<z.ZodString, Date, string>;
71
163
  updatedAt: z.ZodEffects<z.ZodString, Date, string>;
72
164
  }, "strip", z.ZodTypeAny, {
@@ -81,6 +173,18 @@ export declare namespace UpdateExternalSquadCommand {
81
173
  templateUuid: string;
82
174
  templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
83
175
  }[];
176
+ subscriptionSettings: {
177
+ profileTitle?: string | undefined;
178
+ supportLink?: string | undefined;
179
+ profileUpdateInterval?: number | undefined;
180
+ isProfileWebpageUrlEnabled?: boolean | undefined;
181
+ serveJsonAtBaseSubscription?: boolean | undefined;
182
+ addUsernameToBaseSubscription?: boolean | undefined;
183
+ isShowCustomRemarks?: boolean | undefined;
184
+ happAnnounce?: string | null | undefined;
185
+ happRouting?: string | null | undefined;
186
+ randomizeHosts?: boolean | undefined;
187
+ } | null;
84
188
  }, {
85
189
  uuid: string;
86
190
  createdAt: string;
@@ -93,6 +197,18 @@ export declare namespace UpdateExternalSquadCommand {
93
197
  templateUuid: string;
94
198
  templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
95
199
  }[];
200
+ subscriptionSettings: {
201
+ profileTitle?: string | undefined;
202
+ supportLink?: string | undefined;
203
+ profileUpdateInterval?: number | undefined;
204
+ isProfileWebpageUrlEnabled?: boolean | undefined;
205
+ serveJsonAtBaseSubscription?: boolean | undefined;
206
+ addUsernameToBaseSubscription?: boolean | undefined;
207
+ isShowCustomRemarks?: boolean | undefined;
208
+ happAnnounce?: string | null | undefined;
209
+ happRouting?: string | null | undefined;
210
+ randomizeHosts?: boolean | undefined;
211
+ } | null;
96
212
  }>;
97
213
  }, "strip", z.ZodTypeAny, {
98
214
  response: {
@@ -107,6 +223,18 @@ export declare namespace UpdateExternalSquadCommand {
107
223
  templateUuid: string;
108
224
  templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
109
225
  }[];
226
+ subscriptionSettings: {
227
+ profileTitle?: string | undefined;
228
+ supportLink?: string | undefined;
229
+ profileUpdateInterval?: number | undefined;
230
+ isProfileWebpageUrlEnabled?: boolean | undefined;
231
+ serveJsonAtBaseSubscription?: boolean | undefined;
232
+ addUsernameToBaseSubscription?: boolean | undefined;
233
+ isShowCustomRemarks?: boolean | undefined;
234
+ happAnnounce?: string | null | undefined;
235
+ happRouting?: string | null | undefined;
236
+ randomizeHosts?: boolean | undefined;
237
+ } | null;
110
238
  };
111
239
  }, {
112
240
  response: {
@@ -121,6 +249,18 @@ export declare namespace UpdateExternalSquadCommand {
121
249
  templateUuid: string;
122
250
  templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
123
251
  }[];
252
+ subscriptionSettings: {
253
+ profileTitle?: string | undefined;
254
+ supportLink?: string | undefined;
255
+ profileUpdateInterval?: number | undefined;
256
+ isProfileWebpageUrlEnabled?: boolean | undefined;
257
+ serveJsonAtBaseSubscription?: boolean | undefined;
258
+ addUsernameToBaseSubscription?: boolean | undefined;
259
+ isShowCustomRemarks?: boolean | undefined;
260
+ happAnnounce?: string | null | undefined;
261
+ happRouting?: string | null | undefined;
262
+ randomizeHosts?: boolean | undefined;
263
+ } | null;
124
264
  };
125
265
  }>;
126
266
  type Response = z.infer<typeof ResponseSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"update-external-squad.command.d.ts","sourceRoot":"","sources":["../../../../commands/external-squads/update-external-squad.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,0BAA0B,CAAC;IACjC,MAAM,GAAG,yBAAkC,CAAC;IAC5C,MAAM,OAAO,yBAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,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"}
1
+ {"version":3,"file":"update-external-squad.command.d.ts","sourceRoot":"","sources":["../../../../commands/external-squads/update-external-squad.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,0BAA0B,CAAC;IACjC,MAAM,GAAG,yBAAkC,CAAC;IAC5C,MAAM,OAAO,yBAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAoBxB,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"}
@@ -2,9 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UpdateExternalSquadCommand = void 0;
4
4
  const zod_1 = require("zod");
5
+ const models_1 = require("../../models");
5
6
  const constants_1 = require("../../constants");
6
7
  const api_1 = require("../../api");
7
- const models_1 = require("../../models");
8
8
  var UpdateExternalSquadCommand;
9
9
  (function (UpdateExternalSquadCommand) {
10
10
  UpdateExternalSquadCommand.url = api_1.REST_API.EXTERNAL_SQUADS.UPDATE;
@@ -24,6 +24,7 @@ var UpdateExternalSquadCommand;
24
24
  templateType: zod_1.z.nativeEnum(constants_1.SUBSCRIPTION_TEMPLATE_TYPE),
25
25
  }))
26
26
  .optional(),
27
+ subscriptionSettings: models_1.ExternalSquadSubscriptionSettingsSchema.optional(),
27
28
  });
28
29
  UpdateExternalSquadCommand.ResponseSchema = zod_1.z.object({
29
30
  response: models_1.ExternalSquadSchema,
@@ -0,0 +1,35 @@
1
+ export declare const ExternalSquadSubscriptionSettingsSchema: import("zod").ZodObject<{
2
+ profileTitle: import("zod").ZodOptional<import("zod").ZodString>;
3
+ supportLink: import("zod").ZodOptional<import("zod").ZodString>;
4
+ profileUpdateInterval: import("zod").ZodOptional<import("zod").ZodNumber>;
5
+ isProfileWebpageUrlEnabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
6
+ serveJsonAtBaseSubscription: import("zod").ZodOptional<import("zod").ZodBoolean>;
7
+ addUsernameToBaseSubscription: import("zod").ZodOptional<import("zod").ZodBoolean>;
8
+ isShowCustomRemarks: import("zod").ZodOptional<import("zod").ZodBoolean>;
9
+ happAnnounce: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
10
+ happRouting: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
11
+ randomizeHosts: import("zod").ZodOptional<import("zod").ZodBoolean>;
12
+ }, "strip", import("zod").ZodTypeAny, {
13
+ profileTitle?: string | undefined;
14
+ supportLink?: string | undefined;
15
+ profileUpdateInterval?: number | undefined;
16
+ isProfileWebpageUrlEnabled?: boolean | undefined;
17
+ serveJsonAtBaseSubscription?: boolean | undefined;
18
+ addUsernameToBaseSubscription?: boolean | undefined;
19
+ isShowCustomRemarks?: boolean | undefined;
20
+ happAnnounce?: string | null | undefined;
21
+ happRouting?: string | null | undefined;
22
+ randomizeHosts?: boolean | undefined;
23
+ }, {
24
+ profileTitle?: string | undefined;
25
+ supportLink?: string | undefined;
26
+ profileUpdateInterval?: number | undefined;
27
+ isProfileWebpageUrlEnabled?: boolean | undefined;
28
+ serveJsonAtBaseSubscription?: boolean | undefined;
29
+ addUsernameToBaseSubscription?: boolean | undefined;
30
+ isShowCustomRemarks?: boolean | undefined;
31
+ happAnnounce?: string | null | undefined;
32
+ happRouting?: string | null | undefined;
33
+ randomizeHosts?: boolean | undefined;
34
+ }>;
35
+ //# sourceMappingURL=external-squad-subscription-settings.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"external-squad-subscription-settings.schema.d.ts","sourceRoot":"","sources":["../../../models/external-squad-subscription-settings.schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,uCAAuC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWxC,CAAC"}
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ExternalSquadSubscriptionSettingsSchema = void 0;
4
+ const subscription_settings_schema_1 = require("./subscription-settings.schema");
5
+ exports.ExternalSquadSubscriptionSettingsSchema = subscription_settings_schema_1.SubscriptionSettingsSchema.pick({
6
+ profileTitle: true,
7
+ supportLink: true,
8
+ profileUpdateInterval: true,
9
+ isProfileWebpageUrlEnabled: true,
10
+ serveJsonAtBaseSubscription: true,
11
+ addUsernameToBaseSubscription: true,
12
+ isShowCustomRemarks: true,
13
+ happAnnounce: true,
14
+ happRouting: true,
15
+ randomizeHosts: true,
16
+ }).partial();
@@ -26,6 +26,40 @@ export declare const ExternalSquadSchema: z.ZodObject<{
26
26
  templateUuid: string;
27
27
  templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
28
28
  }>, "many">;
29
+ subscriptionSettings: z.ZodNullable<z.ZodObject<{
30
+ profileTitle: z.ZodOptional<z.ZodString>;
31
+ supportLink: z.ZodOptional<z.ZodString>;
32
+ profileUpdateInterval: z.ZodOptional<z.ZodNumber>;
33
+ isProfileWebpageUrlEnabled: z.ZodOptional<z.ZodBoolean>;
34
+ serveJsonAtBaseSubscription: z.ZodOptional<z.ZodBoolean>;
35
+ addUsernameToBaseSubscription: z.ZodOptional<z.ZodBoolean>;
36
+ isShowCustomRemarks: z.ZodOptional<z.ZodBoolean>;
37
+ happAnnounce: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38
+ happRouting: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
+ randomizeHosts: z.ZodOptional<z.ZodBoolean>;
40
+ }, "strip", z.ZodTypeAny, {
41
+ profileTitle?: string | undefined;
42
+ supportLink?: string | undefined;
43
+ profileUpdateInterval?: number | undefined;
44
+ isProfileWebpageUrlEnabled?: boolean | undefined;
45
+ serveJsonAtBaseSubscription?: boolean | undefined;
46
+ addUsernameToBaseSubscription?: boolean | undefined;
47
+ isShowCustomRemarks?: boolean | undefined;
48
+ happAnnounce?: string | null | undefined;
49
+ happRouting?: string | null | undefined;
50
+ randomizeHosts?: boolean | undefined;
51
+ }, {
52
+ profileTitle?: string | undefined;
53
+ supportLink?: string | undefined;
54
+ profileUpdateInterval?: number | undefined;
55
+ isProfileWebpageUrlEnabled?: boolean | undefined;
56
+ serveJsonAtBaseSubscription?: boolean | undefined;
57
+ addUsernameToBaseSubscription?: boolean | undefined;
58
+ isShowCustomRemarks?: boolean | undefined;
59
+ happAnnounce?: string | null | undefined;
60
+ happRouting?: string | null | undefined;
61
+ randomizeHosts?: boolean | undefined;
62
+ }>>;
29
63
  createdAt: z.ZodEffects<z.ZodString, Date, string>;
30
64
  updatedAt: z.ZodEffects<z.ZodString, Date, string>;
31
65
  }, "strip", z.ZodTypeAny, {
@@ -40,6 +74,18 @@ export declare const ExternalSquadSchema: z.ZodObject<{
40
74
  templateUuid: string;
41
75
  templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
42
76
  }[];
77
+ subscriptionSettings: {
78
+ profileTitle?: string | undefined;
79
+ supportLink?: string | undefined;
80
+ profileUpdateInterval?: number | undefined;
81
+ isProfileWebpageUrlEnabled?: boolean | undefined;
82
+ serveJsonAtBaseSubscription?: boolean | undefined;
83
+ addUsernameToBaseSubscription?: boolean | undefined;
84
+ isShowCustomRemarks?: boolean | undefined;
85
+ happAnnounce?: string | null | undefined;
86
+ happRouting?: string | null | undefined;
87
+ randomizeHosts?: boolean | undefined;
88
+ } | null;
43
89
  }, {
44
90
  uuid: string;
45
91
  createdAt: string;
@@ -52,5 +98,17 @@ export declare const ExternalSquadSchema: z.ZodObject<{
52
98
  templateUuid: string;
53
99
  templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
54
100
  }[];
101
+ subscriptionSettings: {
102
+ profileTitle?: string | undefined;
103
+ supportLink?: string | undefined;
104
+ profileUpdateInterval?: number | undefined;
105
+ isProfileWebpageUrlEnabled?: boolean | undefined;
106
+ serveJsonAtBaseSubscription?: boolean | undefined;
107
+ addUsernameToBaseSubscription?: boolean | undefined;
108
+ isShowCustomRemarks?: boolean | undefined;
109
+ happAnnounce?: string | null | undefined;
110
+ happRouting?: string | null | undefined;
111
+ randomizeHosts?: boolean | undefined;
112
+ } | null;
55
113
  }>;
56
114
  //# 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;AAIxB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuB9B,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;AAKxB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwB9B,CAAC"}
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ExternalSquadSchema = void 0;
4
4
  const zod_1 = require("zod");
5
+ const external_squad_subscription_settings_schema_1 = require("./external-squad-subscription-settings.schema");
5
6
  const constants_1 = require("../constants");
6
7
  exports.ExternalSquadSchema = zod_1.z.object({
7
8
  uuid: zod_1.z.string().uuid(),
@@ -13,6 +14,7 @@ exports.ExternalSquadSchema = zod_1.z.object({
13
14
  templateUuid: zod_1.z.string().uuid(),
14
15
  templateType: zod_1.z.nativeEnum(constants_1.SUBSCRIPTION_TEMPLATE_TYPE),
15
16
  })),
17
+ subscriptionSettings: zod_1.z.nullable(external_squad_subscription_settings_schema_1.ExternalSquadSubscriptionSettingsSchema),
16
18
  createdAt: zod_1.z
17
19
  .string()
18
20
  .datetime()
@@ -5,6 +5,7 @@ export * from './base-stat.schema';
5
5
  export * from './config-profile-inbounds.schema';
6
6
  export * from './config-profile.schema';
7
7
  export * from './extended-users.schema';
8
+ export * from './external-squad-subscription-settings.schema';
8
9
  export * from './external-squad.schema';
9
10
  export * from './happ.schema';
10
11
  export * from './hosts.schema';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../models/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oBAAoB,CAAC;AACnC,cAAc,kCAAkC,CAAC;AACjD,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uCAAuC,CAAC;AACtD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../models/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oBAAoB,CAAC;AACnC,cAAc,kCAAkC,CAAC;AACjD,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,+CAA+C,CAAC;AAC9D,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uCAAuC,CAAC;AACtD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC"}
@@ -21,6 +21,7 @@ __exportStar(require("./base-stat.schema"), exports);
21
21
  __exportStar(require("./config-profile-inbounds.schema"), exports);
22
22
  __exportStar(require("./config-profile.schema"), exports);
23
23
  __exportStar(require("./extended-users.schema"), exports);
24
+ __exportStar(require("./external-squad-subscription-settings.schema"), exports);
24
25
  __exportStar(require("./external-squad.schema"), exports);
25
26
  __exportStar(require("./happ.schema"), exports);
26
27
  __exportStar(require("./hosts.schema"), exports);
@@ -2,9 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UpdateExternalSquadCommand = void 0;
4
4
  const zod_1 = require("zod");
5
+ const models_1 = require("../../models");
5
6
  const constants_1 = require("../../constants");
6
7
  const api_1 = require("../../api");
7
- const models_1 = require("../../models");
8
8
  var UpdateExternalSquadCommand;
9
9
  (function (UpdateExternalSquadCommand) {
10
10
  UpdateExternalSquadCommand.url = api_1.REST_API.EXTERNAL_SQUADS.UPDATE;
@@ -24,6 +24,7 @@ var UpdateExternalSquadCommand;
24
24
  templateType: zod_1.z.nativeEnum(constants_1.SUBSCRIPTION_TEMPLATE_TYPE),
25
25
  }))
26
26
  .optional(),
27
+ subscriptionSettings: models_1.ExternalSquadSubscriptionSettingsSchema.optional(),
27
28
  });
28
29
  UpdateExternalSquadCommand.ResponseSchema = zod_1.z.object({
29
30
  response: models_1.ExternalSquadSchema,
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ExternalSquadSubscriptionSettingsSchema = void 0;
4
+ const subscription_settings_schema_1 = require("./subscription-settings.schema");
5
+ exports.ExternalSquadSubscriptionSettingsSchema = subscription_settings_schema_1.SubscriptionSettingsSchema.pick({
6
+ profileTitle: true,
7
+ supportLink: true,
8
+ profileUpdateInterval: true,
9
+ isProfileWebpageUrlEnabled: true,
10
+ serveJsonAtBaseSubscription: true,
11
+ addUsernameToBaseSubscription: true,
12
+ isShowCustomRemarks: true,
13
+ happAnnounce: true,
14
+ happRouting: true,
15
+ randomizeHosts: true,
16
+ }).partial();
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ExternalSquadSchema = void 0;
4
4
  const zod_1 = require("zod");
5
+ const external_squad_subscription_settings_schema_1 = require("./external-squad-subscription-settings.schema");
5
6
  const constants_1 = require("../constants");
6
7
  exports.ExternalSquadSchema = zod_1.z.object({
7
8
  uuid: zod_1.z.string().uuid(),
@@ -13,6 +14,7 @@ exports.ExternalSquadSchema = zod_1.z.object({
13
14
  templateUuid: zod_1.z.string().uuid(),
14
15
  templateType: zod_1.z.nativeEnum(constants_1.SUBSCRIPTION_TEMPLATE_TYPE),
15
16
  })),
17
+ subscriptionSettings: zod_1.z.nullable(external_squad_subscription_settings_schema_1.ExternalSquadSubscriptionSettingsSchema),
16
18
  createdAt: zod_1.z
17
19
  .string()
18
20
  .datetime()
@@ -21,6 +21,7 @@ __exportStar(require("./base-stat.schema"), exports);
21
21
  __exportStar(require("./config-profile-inbounds.schema"), exports);
22
22
  __exportStar(require("./config-profile.schema"), exports);
23
23
  __exportStar(require("./extended-users.schema"), exports);
24
+ __exportStar(require("./external-squad-subscription-settings.schema"), exports);
24
25
  __exportStar(require("./external-squad.schema"), exports);
25
26
  __exportStar(require("./happ.schema"), exports);
26
27
  __exportStar(require("./hosts.schema"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/backend-contract",
3
- "version": "2.2.6",
3
+ "version": "2.2.8",
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.",