@remnawave/subscription-page-types 0.3.4 → 0.5.0

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.
@@ -1,161 +1,55 @@
1
1
  import { z } from 'zod';
2
- declare const LocalizedTextSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
2
+ declare const LocalizedTextSchema: z.ZodRecord<z.ZodString, z.ZodString>;
3
3
  declare const SvgLibrarySchema: z.ZodRecord<z.ZodString, z.ZodString>;
4
4
  declare const ButtonSchema: z.ZodObject<{
5
5
  link: z.ZodString;
6
- type: z.ZodNativeEnum<{
6
+ type: z.ZodEnum<{
7
7
  readonly EXTERNAL: "external";
8
8
  readonly SUBSCRIPTION_LINK: "subscriptionLink";
9
9
  readonly COPY_BUTTON: "copyButton";
10
10
  }>;
11
- text: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
11
+ text: z.ZodRecord<z.ZodString, z.ZodString>;
12
12
  svgIconKey: z.ZodString;
13
- }, "strip", z.ZodTypeAny, {
14
- type: "external" | "subscriptionLink" | "copyButton";
15
- svgIconKey: string;
16
- link: string;
17
- text: Record<string, string>;
18
- }, {
19
- type: "external" | "subscriptionLink" | "copyButton";
20
- svgIconKey: string;
21
- link: string;
22
- text: Record<string, string>;
23
- }>;
13
+ }, z.core.$strip>;
24
14
  declare const BlockSchema: z.ZodObject<{
25
15
  svgIconKey: z.ZodString;
26
- svgIconColor: z.ZodEffects<z.ZodString, string, string>;
27
- title: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
28
- description: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
16
+ svgIconColor: z.ZodString;
17
+ title: z.ZodRecord<z.ZodString, z.ZodString>;
18
+ description: z.ZodRecord<z.ZodString, z.ZodString>;
29
19
  buttons: z.ZodArray<z.ZodObject<{
30
20
  link: z.ZodString;
31
- type: z.ZodNativeEnum<{
21
+ type: z.ZodEnum<{
32
22
  readonly EXTERNAL: "external";
33
23
  readonly SUBSCRIPTION_LINK: "subscriptionLink";
34
24
  readonly COPY_BUTTON: "copyButton";
35
25
  }>;
36
- text: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
26
+ text: z.ZodRecord<z.ZodString, z.ZodString>;
37
27
  svgIconKey: z.ZodString;
38
- }, "strip", z.ZodTypeAny, {
39
- type: "external" | "subscriptionLink" | "copyButton";
40
- svgIconKey: string;
41
- link: string;
42
- text: Record<string, string>;
43
- }, {
44
- type: "external" | "subscriptionLink" | "copyButton";
45
- svgIconKey: string;
46
- link: string;
47
- text: Record<string, string>;
48
- }>, "many">;
49
- }, "strip", z.ZodTypeAny, {
50
- svgIconKey: string;
51
- svgIconColor: string;
52
- title: Record<string, string>;
53
- description: Record<string, string>;
54
- buttons: {
55
- type: "external" | "subscriptionLink" | "copyButton";
56
- svgIconKey: string;
57
- link: string;
58
- text: Record<string, string>;
59
- }[];
60
- }, {
61
- svgIconKey: string;
62
- svgIconColor: string;
63
- title: Record<string, string>;
64
- description: Record<string, string>;
65
- buttons: {
66
- type: "external" | "subscriptionLink" | "copyButton";
67
- svgIconKey: string;
68
- link: string;
69
- text: Record<string, string>;
70
- }[];
71
- }>;
28
+ }, z.core.$strip>>;
29
+ }, z.core.$strip>;
72
30
  declare const PlatformAppSchema: z.ZodObject<{
73
31
  name: z.ZodString;
74
32
  svgIconKey: z.ZodOptional<z.ZodString>;
75
33
  featured: z.ZodBoolean;
76
34
  blocks: z.ZodArray<z.ZodObject<{
77
35
  svgIconKey: z.ZodString;
78
- svgIconColor: z.ZodEffects<z.ZodString, string, string>;
79
- title: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
80
- description: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
36
+ svgIconColor: z.ZodString;
37
+ title: z.ZodRecord<z.ZodString, z.ZodString>;
38
+ description: z.ZodRecord<z.ZodString, z.ZodString>;
81
39
  buttons: z.ZodArray<z.ZodObject<{
82
40
  link: z.ZodString;
83
- type: z.ZodNativeEnum<{
41
+ type: z.ZodEnum<{
84
42
  readonly EXTERNAL: "external";
85
43
  readonly SUBSCRIPTION_LINK: "subscriptionLink";
86
44
  readonly COPY_BUTTON: "copyButton";
87
45
  }>;
88
- text: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
46
+ text: z.ZodRecord<z.ZodString, z.ZodString>;
89
47
  svgIconKey: z.ZodString;
90
- }, "strip", z.ZodTypeAny, {
91
- type: "external" | "subscriptionLink" | "copyButton";
92
- svgIconKey: string;
93
- link: string;
94
- text: Record<string, string>;
95
- }, {
96
- type: "external" | "subscriptionLink" | "copyButton";
97
- svgIconKey: string;
98
- link: string;
99
- text: Record<string, string>;
100
- }>, "many">;
101
- }, "strip", z.ZodTypeAny, {
102
- svgIconKey: string;
103
- svgIconColor: string;
104
- title: Record<string, string>;
105
- description: Record<string, string>;
106
- buttons: {
107
- type: "external" | "subscriptionLink" | "copyButton";
108
- svgIconKey: string;
109
- link: string;
110
- text: Record<string, string>;
111
- }[];
112
- }, {
113
- svgIconKey: string;
114
- svgIconColor: string;
115
- title: Record<string, string>;
116
- description: Record<string, string>;
117
- buttons: {
118
- type: "external" | "subscriptionLink" | "copyButton";
119
- svgIconKey: string;
120
- link: string;
121
- text: Record<string, string>;
122
- }[];
123
- }>, "many">;
124
- }, "strip", z.ZodTypeAny, {
125
- name: string;
126
- featured: boolean;
127
- blocks: {
128
- svgIconKey: string;
129
- svgIconColor: string;
130
- title: Record<string, string>;
131
- description: Record<string, string>;
132
- buttons: {
133
- type: "external" | "subscriptionLink" | "copyButton";
134
- svgIconKey: string;
135
- link: string;
136
- text: Record<string, string>;
137
- }[];
138
- }[];
139
- svgIconKey?: string | undefined;
140
- }, {
141
- name: string;
142
- featured: boolean;
143
- blocks: {
144
- svgIconKey: string;
145
- svgIconColor: string;
146
- title: Record<string, string>;
147
- description: Record<string, string>;
148
- buttons: {
149
- type: "external" | "subscriptionLink" | "copyButton";
150
- svgIconKey: string;
151
- link: string;
152
- text: Record<string, string>;
153
- }[];
154
- }[];
155
- svgIconKey?: string | undefined;
156
- }>;
48
+ }, z.core.$strip>>;
49
+ }, z.core.$strip>>;
50
+ }, z.core.$strip>;
157
51
  declare const PlatformSchema: z.ZodObject<{
158
- displayName: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
52
+ displayName: z.ZodRecord<z.ZodString, z.ZodString>;
159
53
  svgIconKey: z.ZodString;
160
54
  apps: z.ZodArray<z.ZodObject<{
161
55
  name: z.ZodString;
@@ -163,334 +57,136 @@ declare const PlatformSchema: z.ZodObject<{
163
57
  featured: z.ZodBoolean;
164
58
  blocks: z.ZodArray<z.ZodObject<{
165
59
  svgIconKey: z.ZodString;
166
- svgIconColor: z.ZodEffects<z.ZodString, string, string>;
167
- title: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
168
- description: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
60
+ svgIconColor: z.ZodString;
61
+ title: z.ZodRecord<z.ZodString, z.ZodString>;
62
+ description: z.ZodRecord<z.ZodString, z.ZodString>;
169
63
  buttons: z.ZodArray<z.ZodObject<{
170
64
  link: z.ZodString;
171
- type: z.ZodNativeEnum<{
65
+ type: z.ZodEnum<{
172
66
  readonly EXTERNAL: "external";
173
67
  readonly SUBSCRIPTION_LINK: "subscriptionLink";
174
68
  readonly COPY_BUTTON: "copyButton";
175
69
  }>;
176
- text: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
70
+ text: z.ZodRecord<z.ZodString, z.ZodString>;
177
71
  svgIconKey: z.ZodString;
178
- }, "strip", z.ZodTypeAny, {
179
- type: "external" | "subscriptionLink" | "copyButton";
180
- svgIconKey: string;
181
- link: string;
182
- text: Record<string, string>;
183
- }, {
184
- type: "external" | "subscriptionLink" | "copyButton";
185
- svgIconKey: string;
186
- link: string;
187
- text: Record<string, string>;
188
- }>, "many">;
189
- }, "strip", z.ZodTypeAny, {
190
- svgIconKey: string;
191
- svgIconColor: string;
192
- title: Record<string, string>;
193
- description: Record<string, string>;
194
- buttons: {
195
- type: "external" | "subscriptionLink" | "copyButton";
196
- svgIconKey: string;
197
- link: string;
198
- text: Record<string, string>;
199
- }[];
200
- }, {
201
- svgIconKey: string;
202
- svgIconColor: string;
203
- title: Record<string, string>;
204
- description: Record<string, string>;
205
- buttons: {
206
- type: "external" | "subscriptionLink" | "copyButton";
207
- svgIconKey: string;
208
- link: string;
209
- text: Record<string, string>;
210
- }[];
211
- }>, "many">;
212
- }, "strip", z.ZodTypeAny, {
213
- name: string;
214
- featured: boolean;
215
- blocks: {
216
- svgIconKey: string;
217
- svgIconColor: string;
218
- title: Record<string, string>;
219
- description: Record<string, string>;
220
- buttons: {
221
- type: "external" | "subscriptionLink" | "copyButton";
222
- svgIconKey: string;
223
- link: string;
224
- text: Record<string, string>;
225
- }[];
226
- }[];
227
- svgIconKey?: string | undefined;
228
- }, {
229
- name: string;
230
- featured: boolean;
231
- blocks: {
232
- svgIconKey: string;
233
- svgIconColor: string;
234
- title: Record<string, string>;
235
- description: Record<string, string>;
236
- buttons: {
237
- type: "external" | "subscriptionLink" | "copyButton";
238
- svgIconKey: string;
239
- link: string;
240
- text: Record<string, string>;
241
- }[];
242
- }[];
243
- svgIconKey?: string | undefined;
244
- }>, "many">;
245
- }, "strip", z.ZodTypeAny, {
246
- svgIconKey: string;
247
- displayName: Record<string, string>;
248
- apps: {
249
- name: string;
250
- featured: boolean;
251
- blocks: {
252
- svgIconKey: string;
253
- svgIconColor: string;
254
- title: Record<string, string>;
255
- description: Record<string, string>;
256
- buttons: {
257
- type: "external" | "subscriptionLink" | "copyButton";
258
- svgIconKey: string;
259
- link: string;
260
- text: Record<string, string>;
261
- }[];
262
- }[];
263
- svgIconKey?: string | undefined;
264
- }[];
265
- }, {
266
- svgIconKey: string;
267
- displayName: Record<string, string>;
268
- apps: {
269
- name: string;
270
- featured: boolean;
271
- blocks: {
272
- svgIconKey: string;
273
- svgIconColor: string;
274
- title: Record<string, string>;
275
- description: Record<string, string>;
276
- buttons: {
277
- type: "external" | "subscriptionLink" | "copyButton";
278
- svgIconKey: string;
279
- link: string;
280
- text: Record<string, string>;
281
- }[];
282
- }[];
283
- svgIconKey?: string | undefined;
284
- }[];
285
- }>;
72
+ }, z.core.$strip>>;
73
+ }, z.core.$strip>>;
74
+ }, z.core.$strip>>;
75
+ }, z.core.$strip>;
286
76
  declare const BrandingSettingsSchema: z.ZodObject<{
287
77
  title: z.ZodString;
288
78
  logoUrl: z.ZodString;
289
- supportUrl: z.ZodString;
290
- }, "strip", z.ZodTypeAny, {
291
- title: string;
292
- logoUrl: string;
293
- supportUrl: string;
294
- }, {
295
- title: string;
296
- logoUrl: string;
297
- supportUrl: string;
298
- }>;
79
+ supportUrl: z.ZodURL;
80
+ }, z.core.$strip>;
299
81
  declare const UiConfigSchema: z.ZodObject<{
300
- subscriptionInfoBlockType: z.ZodNativeEnum<{
82
+ subscriptionInfoBlockType: z.ZodEnum<{
301
83
  readonly COLLAPSED: "collapsed";
302
84
  readonly EXPANDED: "expanded";
303
85
  readonly CARDS: "cards";
304
86
  readonly HIDDEN: "hidden";
305
87
  }>;
306
- installationGuidesBlockType: z.ZodNativeEnum<{
88
+ installationGuidesBlockType: z.ZodEnum<{
307
89
  readonly CARDS: "cards";
308
90
  readonly ACCORDION: "accordion";
309
91
  readonly MINIMAL: "minimal";
310
92
  readonly TIMELINE: "timeline";
311
93
  }>;
312
- }, "strip", z.ZodTypeAny, {
313
- subscriptionInfoBlockType: "collapsed" | "expanded" | "cards" | "hidden";
314
- installationGuidesBlockType: "cards" | "accordion" | "minimal" | "timeline";
315
- }, {
316
- subscriptionInfoBlockType: "collapsed" | "expanded" | "cards" | "hidden";
317
- installationGuidesBlockType: "cards" | "accordion" | "minimal" | "timeline";
318
- }>;
94
+ }, z.core.$strip>;
319
95
  declare const SubscriptionPageTranslateKeysSchema: z.ZodObject<{
320
- installationGuideHeader: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
321
- connectionKeysHeader: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
322
- linkCopied: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
323
- linkCopiedToClipboard: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
324
- getLink: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
325
- scanQrCode: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
326
- scanQrCodeDescription: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
327
- copyLink: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
328
- name: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
329
- status: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
330
- active: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
331
- inactive: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
332
- expires: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
333
- bandwidth: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
334
- scanToImport: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
335
- expiresIn: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
336
- expired: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
337
- unknown: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
338
- indefinitely: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
339
- }, "strip", z.ZodTypeAny, {
340
- unknown: Record<string, string>;
341
- status: Record<string, string>;
342
- name: Record<string, string>;
343
- installationGuideHeader: Record<string, string>;
344
- connectionKeysHeader: Record<string, string>;
345
- linkCopied: Record<string, string>;
346
- linkCopiedToClipboard: Record<string, string>;
347
- getLink: Record<string, string>;
348
- scanQrCode: Record<string, string>;
349
- scanQrCodeDescription: Record<string, string>;
350
- copyLink: Record<string, string>;
351
- active: Record<string, string>;
352
- inactive: Record<string, string>;
353
- expires: Record<string, string>;
354
- bandwidth: Record<string, string>;
355
- scanToImport: Record<string, string>;
356
- expiresIn: Record<string, string>;
357
- expired: Record<string, string>;
358
- indefinitely: Record<string, string>;
359
- }, {
360
- unknown: Record<string, string>;
361
- status: Record<string, string>;
362
- name: Record<string, string>;
363
- installationGuideHeader: Record<string, string>;
364
- connectionKeysHeader: Record<string, string>;
365
- linkCopied: Record<string, string>;
366
- linkCopiedToClipboard: Record<string, string>;
367
- getLink: Record<string, string>;
368
- scanQrCode: Record<string, string>;
369
- scanQrCodeDescription: Record<string, string>;
370
- copyLink: Record<string, string>;
371
- active: Record<string, string>;
372
- inactive: Record<string, string>;
373
- expires: Record<string, string>;
374
- bandwidth: Record<string, string>;
375
- scanToImport: Record<string, string>;
376
- expiresIn: Record<string, string>;
377
- expired: Record<string, string>;
378
- indefinitely: Record<string, string>;
379
- }>;
380
- export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
381
- version: z.ZodNativeEnum<{
96
+ installationGuideHeader: z.ZodRecord<z.ZodString, z.ZodString>;
97
+ connectionKeysHeader: z.ZodRecord<z.ZodString, z.ZodString>;
98
+ linkCopied: z.ZodRecord<z.ZodString, z.ZodString>;
99
+ linkCopiedToClipboard: z.ZodRecord<z.ZodString, z.ZodString>;
100
+ getLink: z.ZodRecord<z.ZodString, z.ZodString>;
101
+ scanQrCode: z.ZodRecord<z.ZodString, z.ZodString>;
102
+ scanQrCodeDescription: z.ZodRecord<z.ZodString, z.ZodString>;
103
+ copyLink: z.ZodRecord<z.ZodString, z.ZodString>;
104
+ name: z.ZodRecord<z.ZodString, z.ZodString>;
105
+ status: z.ZodRecord<z.ZodString, z.ZodString>;
106
+ active: z.ZodRecord<z.ZodString, z.ZodString>;
107
+ inactive: z.ZodRecord<z.ZodString, z.ZodString>;
108
+ expires: z.ZodRecord<z.ZodString, z.ZodString>;
109
+ bandwidth: z.ZodRecord<z.ZodString, z.ZodString>;
110
+ scanToImport: z.ZodRecord<z.ZodString, z.ZodString>;
111
+ expiresIn: z.ZodRecord<z.ZodString, z.ZodString>;
112
+ expired: z.ZodRecord<z.ZodString, z.ZodString>;
113
+ unknown: z.ZodRecord<z.ZodString, z.ZodString>;
114
+ indefinitely: z.ZodRecord<z.ZodString, z.ZodString>;
115
+ }, z.core.$strip>;
116
+ export declare const SubscriptionPageRawConfigSchema: z.ZodObject<{
117
+ version: z.ZodEnum<{
382
118
  readonly 1: "1";
383
119
  }>;
384
- locales: z.ZodArray<z.ZodEnum<["en" | "ru" | "zh" | "fr" | "fa" | "uz" | "de" | "hi" | "tr" | "az" | "es" | "vi" | "ja" | "be" | "uk" | "pt" | "pl" | "id" | "tk" | "th", ...("en" | "ru" | "zh" | "fr" | "fa" | "uz" | "de" | "hi" | "tr" | "az" | "es" | "vi" | "ja" | "be" | "uk" | "pt" | "pl" | "id" | "tk" | "th")[]]>, "many">;
120
+ locales: z.ZodArray<z.ZodEnum<{
121
+ en: "en";
122
+ ru: "ru";
123
+ zh: "zh";
124
+ fr: "fr";
125
+ fa: "fa";
126
+ uz: "uz";
127
+ de: "de";
128
+ hi: "hi";
129
+ tr: "tr";
130
+ az: "az";
131
+ es: "es";
132
+ vi: "vi";
133
+ ja: "ja";
134
+ be: "be";
135
+ uk: "uk";
136
+ pt: "pt";
137
+ pl: "pl";
138
+ id: "id";
139
+ tk: "tk";
140
+ th: "th";
141
+ }>>;
385
142
  brandingSettings: z.ZodObject<{
386
143
  title: z.ZodString;
387
144
  logoUrl: z.ZodString;
388
- supportUrl: z.ZodString;
389
- }, "strip", z.ZodTypeAny, {
390
- title: string;
391
- logoUrl: string;
392
- supportUrl: string;
393
- }, {
394
- title: string;
395
- logoUrl: string;
396
- supportUrl: string;
397
- }>;
145
+ supportUrl: z.ZodURL;
146
+ }, z.core.$strip>;
398
147
  uiConfig: z.ZodObject<{
399
- subscriptionInfoBlockType: z.ZodNativeEnum<{
148
+ subscriptionInfoBlockType: z.ZodEnum<{
400
149
  readonly COLLAPSED: "collapsed";
401
150
  readonly EXPANDED: "expanded";
402
151
  readonly CARDS: "cards";
403
152
  readonly HIDDEN: "hidden";
404
153
  }>;
405
- installationGuidesBlockType: z.ZodNativeEnum<{
154
+ installationGuidesBlockType: z.ZodEnum<{
406
155
  readonly CARDS: "cards";
407
156
  readonly ACCORDION: "accordion";
408
157
  readonly MINIMAL: "minimal";
409
158
  readonly TIMELINE: "timeline";
410
159
  }>;
411
- }, "strip", z.ZodTypeAny, {
412
- subscriptionInfoBlockType: "collapsed" | "expanded" | "cards" | "hidden";
413
- installationGuidesBlockType: "cards" | "accordion" | "minimal" | "timeline";
414
- }, {
415
- subscriptionInfoBlockType: "collapsed" | "expanded" | "cards" | "hidden";
416
- installationGuidesBlockType: "cards" | "accordion" | "minimal" | "timeline";
417
- }>;
160
+ }, z.core.$strip>;
418
161
  baseSettings: z.ZodDefault<z.ZodObject<{
419
162
  metaTitle: z.ZodDefault<z.ZodString>;
420
163
  metaDescription: z.ZodDefault<z.ZodString>;
421
164
  showConnectionKeys: z.ZodDefault<z.ZodBoolean>;
422
- }, "strip", z.ZodTypeAny, {
423
- metaTitle: string;
424
- metaDescription: string;
425
- showConnectionKeys: boolean;
426
- }, {
427
- metaTitle?: string | undefined;
428
- metaDescription?: string | undefined;
429
- showConnectionKeys?: boolean | undefined;
430
- }>>;
165
+ hideGetLinkButton: z.ZodDefault<z.ZodBoolean>;
166
+ }, z.core.$strip>>;
431
167
  baseTranslations: z.ZodObject<{
432
- installationGuideHeader: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
433
- connectionKeysHeader: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
434
- linkCopied: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
435
- linkCopiedToClipboard: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
436
- getLink: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
437
- scanQrCode: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
438
- scanQrCodeDescription: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
439
- copyLink: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
440
- name: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
441
- status: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
442
- active: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
443
- inactive: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
444
- expires: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
445
- bandwidth: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
446
- scanToImport: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
447
- expiresIn: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
448
- expired: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
449
- unknown: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
450
- indefinitely: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
451
- }, "strip", z.ZodTypeAny, {
452
- unknown: Record<string, string>;
453
- status: Record<string, string>;
454
- name: Record<string, string>;
455
- installationGuideHeader: Record<string, string>;
456
- connectionKeysHeader: Record<string, string>;
457
- linkCopied: Record<string, string>;
458
- linkCopiedToClipboard: Record<string, string>;
459
- getLink: Record<string, string>;
460
- scanQrCode: Record<string, string>;
461
- scanQrCodeDescription: Record<string, string>;
462
- copyLink: Record<string, string>;
463
- active: Record<string, string>;
464
- inactive: Record<string, string>;
465
- expires: Record<string, string>;
466
- bandwidth: Record<string, string>;
467
- scanToImport: Record<string, string>;
468
- expiresIn: Record<string, string>;
469
- expired: Record<string, string>;
470
- indefinitely: Record<string, string>;
471
- }, {
472
- unknown: Record<string, string>;
473
- status: Record<string, string>;
474
- name: Record<string, string>;
475
- installationGuideHeader: Record<string, string>;
476
- connectionKeysHeader: Record<string, string>;
477
- linkCopied: Record<string, string>;
478
- linkCopiedToClipboard: Record<string, string>;
479
- getLink: Record<string, string>;
480
- scanQrCode: Record<string, string>;
481
- scanQrCodeDescription: Record<string, string>;
482
- copyLink: Record<string, string>;
483
- active: Record<string, string>;
484
- inactive: Record<string, string>;
485
- expires: Record<string, string>;
486
- bandwidth: Record<string, string>;
487
- scanToImport: Record<string, string>;
488
- expiresIn: Record<string, string>;
489
- expired: Record<string, string>;
490
- indefinitely: Record<string, string>;
491
- }>;
168
+ installationGuideHeader: z.ZodRecord<z.ZodString, z.ZodString>;
169
+ connectionKeysHeader: z.ZodRecord<z.ZodString, z.ZodString>;
170
+ linkCopied: z.ZodRecord<z.ZodString, z.ZodString>;
171
+ linkCopiedToClipboard: z.ZodRecord<z.ZodString, z.ZodString>;
172
+ getLink: z.ZodRecord<z.ZodString, z.ZodString>;
173
+ scanQrCode: z.ZodRecord<z.ZodString, z.ZodString>;
174
+ scanQrCodeDescription: z.ZodRecord<z.ZodString, z.ZodString>;
175
+ copyLink: z.ZodRecord<z.ZodString, z.ZodString>;
176
+ name: z.ZodRecord<z.ZodString, z.ZodString>;
177
+ status: z.ZodRecord<z.ZodString, z.ZodString>;
178
+ active: z.ZodRecord<z.ZodString, z.ZodString>;
179
+ inactive: z.ZodRecord<z.ZodString, z.ZodString>;
180
+ expires: z.ZodRecord<z.ZodString, z.ZodString>;
181
+ bandwidth: z.ZodRecord<z.ZodString, z.ZodString>;
182
+ scanToImport: z.ZodRecord<z.ZodString, z.ZodString>;
183
+ expiresIn: z.ZodRecord<z.ZodString, z.ZodString>;
184
+ expired: z.ZodRecord<z.ZodString, z.ZodString>;
185
+ unknown: z.ZodRecord<z.ZodString, z.ZodString>;
186
+ indefinitely: z.ZodRecord<z.ZodString, z.ZodString>;
187
+ }, z.core.$strip>;
492
188
  svgLibrary: z.ZodRecord<z.ZodString, z.ZodString>;
493
- platforms: z.ZodRecord<z.ZodNativeEnum<{
189
+ platforms: z.ZodRecord<z.ZodEnum<{
494
190
  readonly IOS: "ios";
495
191
  readonly ANDROID: "android";
496
192
  readonly LINUX: "linux";
@@ -498,8 +194,8 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
498
194
  readonly WINDOWS: "windows";
499
195
  readonly ANDROID_TV: "androidTV";
500
196
  readonly APPLE_TV: "appleTV";
501
- }>, z.ZodObject<{
502
- displayName: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
197
+ }> & z.core.$partial, z.ZodObject<{
198
+ displayName: z.ZodRecord<z.ZodString, z.ZodString>;
503
199
  svgIconKey: z.ZodString;
504
200
  apps: z.ZodArray<z.ZodObject<{
505
201
  name: z.ZodString;
@@ -507,367 +203,23 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
507
203
  featured: z.ZodBoolean;
508
204
  blocks: z.ZodArray<z.ZodObject<{
509
205
  svgIconKey: z.ZodString;
510
- svgIconColor: z.ZodEffects<z.ZodString, string, string>;
511
- title: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
512
- description: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
206
+ svgIconColor: z.ZodString;
207
+ title: z.ZodRecord<z.ZodString, z.ZodString>;
208
+ description: z.ZodRecord<z.ZodString, z.ZodString>;
513
209
  buttons: z.ZodArray<z.ZodObject<{
514
210
  link: z.ZodString;
515
- type: z.ZodNativeEnum<{
211
+ type: z.ZodEnum<{
516
212
  readonly EXTERNAL: "external";
517
213
  readonly SUBSCRIPTION_LINK: "subscriptionLink";
518
214
  readonly COPY_BUTTON: "copyButton";
519
215
  }>;
520
- text: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
216
+ text: z.ZodRecord<z.ZodString, z.ZodString>;
521
217
  svgIconKey: z.ZodString;
522
- }, "strip", z.ZodTypeAny, {
523
- type: "external" | "subscriptionLink" | "copyButton";
524
- svgIconKey: string;
525
- link: string;
526
- text: Record<string, string>;
527
- }, {
528
- type: "external" | "subscriptionLink" | "copyButton";
529
- svgIconKey: string;
530
- link: string;
531
- text: Record<string, string>;
532
- }>, "many">;
533
- }, "strip", z.ZodTypeAny, {
534
- svgIconKey: string;
535
- svgIconColor: string;
536
- title: Record<string, string>;
537
- description: Record<string, string>;
538
- buttons: {
539
- type: "external" | "subscriptionLink" | "copyButton";
540
- svgIconKey: string;
541
- link: string;
542
- text: Record<string, string>;
543
- }[];
544
- }, {
545
- svgIconKey: string;
546
- svgIconColor: string;
547
- title: Record<string, string>;
548
- description: Record<string, string>;
549
- buttons: {
550
- type: "external" | "subscriptionLink" | "copyButton";
551
- svgIconKey: string;
552
- link: string;
553
- text: Record<string, string>;
554
- }[];
555
- }>, "many">;
556
- }, "strip", z.ZodTypeAny, {
557
- name: string;
558
- featured: boolean;
559
- blocks: {
560
- svgIconKey: string;
561
- svgIconColor: string;
562
- title: Record<string, string>;
563
- description: Record<string, string>;
564
- buttons: {
565
- type: "external" | "subscriptionLink" | "copyButton";
566
- svgIconKey: string;
567
- link: string;
568
- text: Record<string, string>;
569
- }[];
570
- }[];
571
- svgIconKey?: string | undefined;
572
- }, {
573
- name: string;
574
- featured: boolean;
575
- blocks: {
576
- svgIconKey: string;
577
- svgIconColor: string;
578
- title: Record<string, string>;
579
- description: Record<string, string>;
580
- buttons: {
581
- type: "external" | "subscriptionLink" | "copyButton";
582
- svgIconKey: string;
583
- link: string;
584
- text: Record<string, string>;
585
- }[];
586
- }[];
587
- svgIconKey?: string | undefined;
588
- }>, "many">;
589
- }, "strip", z.ZodTypeAny, {
590
- svgIconKey: string;
591
- displayName: Record<string, string>;
592
- apps: {
593
- name: string;
594
- featured: boolean;
595
- blocks: {
596
- svgIconKey: string;
597
- svgIconColor: string;
598
- title: Record<string, string>;
599
- description: Record<string, string>;
600
- buttons: {
601
- type: "external" | "subscriptionLink" | "copyButton";
602
- svgIconKey: string;
603
- link: string;
604
- text: Record<string, string>;
605
- }[];
606
- }[];
607
- svgIconKey?: string | undefined;
608
- }[];
609
- }, {
610
- svgIconKey: string;
611
- displayName: Record<string, string>;
612
- apps: {
613
- name: string;
614
- featured: boolean;
615
- blocks: {
616
- svgIconKey: string;
617
- svgIconColor: string;
618
- title: Record<string, string>;
619
- description: Record<string, string>;
620
- buttons: {
621
- type: "external" | "subscriptionLink" | "copyButton";
622
- svgIconKey: string;
623
- link: string;
624
- text: Record<string, string>;
625
- }[];
626
- }[];
627
- svgIconKey?: string | undefined;
628
- }[];
629
- }>>;
630
- }, "strip", z.ZodTypeAny, {
631
- platforms: Partial<Record<"ios" | "android" | "linux" | "macos" | "windows" | "androidTV" | "appleTV", {
632
- svgIconKey: string;
633
- displayName: Record<string, string>;
634
- apps: {
635
- name: string;
636
- featured: boolean;
637
- blocks: {
638
- svgIconKey: string;
639
- svgIconColor: string;
640
- title: Record<string, string>;
641
- description: Record<string, string>;
642
- buttons: {
643
- type: "external" | "subscriptionLink" | "copyButton";
644
- svgIconKey: string;
645
- link: string;
646
- text: Record<string, string>;
647
- }[];
648
- }[];
649
- svgIconKey?: string | undefined;
650
- }[];
651
- }>>;
652
- baseTranslations: {
653
- unknown: Record<string, string>;
654
- status: Record<string, string>;
655
- name: Record<string, string>;
656
- installationGuideHeader: Record<string, string>;
657
- connectionKeysHeader: Record<string, string>;
658
- linkCopied: Record<string, string>;
659
- linkCopiedToClipboard: Record<string, string>;
660
- getLink: Record<string, string>;
661
- scanQrCode: Record<string, string>;
662
- scanQrCodeDescription: Record<string, string>;
663
- copyLink: Record<string, string>;
664
- active: Record<string, string>;
665
- inactive: Record<string, string>;
666
- expires: Record<string, string>;
667
- bandwidth: Record<string, string>;
668
- scanToImport: Record<string, string>;
669
- expiresIn: Record<string, string>;
670
- expired: Record<string, string>;
671
- indefinitely: Record<string, string>;
672
- };
673
- version: "1";
674
- locales: ("en" | "ru" | "zh" | "fr" | "fa" | "uz" | "de" | "hi" | "tr" | "az" | "es" | "vi" | "ja" | "be" | "uk" | "pt" | "pl" | "id" | "tk" | "th")[];
675
- brandingSettings: {
676
- title: string;
677
- logoUrl: string;
678
- supportUrl: string;
679
- };
680
- uiConfig: {
681
- subscriptionInfoBlockType: "collapsed" | "expanded" | "cards" | "hidden";
682
- installationGuidesBlockType: "cards" | "accordion" | "minimal" | "timeline";
683
- };
684
- baseSettings: {
685
- metaTitle: string;
686
- metaDescription: string;
687
- showConnectionKeys: boolean;
688
- };
689
- svgLibrary: Record<string, string>;
690
- }, {
691
- platforms: Partial<Record<"ios" | "android" | "linux" | "macos" | "windows" | "androidTV" | "appleTV", {
692
- svgIconKey: string;
693
- displayName: Record<string, string>;
694
- apps: {
695
- name: string;
696
- featured: boolean;
697
- blocks: {
698
- svgIconKey: string;
699
- svgIconColor: string;
700
- title: Record<string, string>;
701
- description: Record<string, string>;
702
- buttons: {
703
- type: "external" | "subscriptionLink" | "copyButton";
704
- svgIconKey: string;
705
- link: string;
706
- text: Record<string, string>;
707
- }[];
708
- }[];
709
- svgIconKey?: string | undefined;
710
- }[];
711
- }>>;
712
- baseTranslations: {
713
- unknown: Record<string, string>;
714
- status: Record<string, string>;
715
- name: Record<string, string>;
716
- installationGuideHeader: Record<string, string>;
717
- connectionKeysHeader: Record<string, string>;
718
- linkCopied: Record<string, string>;
719
- linkCopiedToClipboard: Record<string, string>;
720
- getLink: Record<string, string>;
721
- scanQrCode: Record<string, string>;
722
- scanQrCodeDescription: Record<string, string>;
723
- copyLink: Record<string, string>;
724
- active: Record<string, string>;
725
- inactive: Record<string, string>;
726
- expires: Record<string, string>;
727
- bandwidth: Record<string, string>;
728
- scanToImport: Record<string, string>;
729
- expiresIn: Record<string, string>;
730
- expired: Record<string, string>;
731
- indefinitely: Record<string, string>;
732
- };
733
- version: "1";
734
- locales: ("en" | "ru" | "zh" | "fr" | "fa" | "uz" | "de" | "hi" | "tr" | "az" | "es" | "vi" | "ja" | "be" | "uk" | "pt" | "pl" | "id" | "tk" | "th")[];
735
- brandingSettings: {
736
- title: string;
737
- logoUrl: string;
738
- supportUrl: string;
739
- };
740
- uiConfig: {
741
- subscriptionInfoBlockType: "collapsed" | "expanded" | "cards" | "hidden";
742
- installationGuidesBlockType: "cards" | "accordion" | "minimal" | "timeline";
743
- };
744
- svgLibrary: Record<string, string>;
745
- baseSettings?: {
746
- metaTitle?: string | undefined;
747
- metaDescription?: string | undefined;
748
- showConnectionKeys?: boolean | undefined;
749
- } | undefined;
750
- }>, {
751
- platforms: Partial<Record<"ios" | "android" | "linux" | "macos" | "windows" | "androidTV" | "appleTV", {
752
- svgIconKey: string;
753
- displayName: Record<string, string>;
754
- apps: {
755
- name: string;
756
- featured: boolean;
757
- blocks: {
758
- svgIconKey: string;
759
- svgIconColor: string;
760
- title: Record<string, string>;
761
- description: Record<string, string>;
762
- buttons: {
763
- type: "external" | "subscriptionLink" | "copyButton";
764
- svgIconKey: string;
765
- link: string;
766
- text: Record<string, string>;
767
- }[];
768
- }[];
769
- svgIconKey?: string | undefined;
770
- }[];
771
- }>>;
772
- baseTranslations: {
773
- unknown: Record<string, string>;
774
- status: Record<string, string>;
775
- name: Record<string, string>;
776
- installationGuideHeader: Record<string, string>;
777
- connectionKeysHeader: Record<string, string>;
778
- linkCopied: Record<string, string>;
779
- linkCopiedToClipboard: Record<string, string>;
780
- getLink: Record<string, string>;
781
- scanQrCode: Record<string, string>;
782
- scanQrCodeDescription: Record<string, string>;
783
- copyLink: Record<string, string>;
784
- active: Record<string, string>;
785
- inactive: Record<string, string>;
786
- expires: Record<string, string>;
787
- bandwidth: Record<string, string>;
788
- scanToImport: Record<string, string>;
789
- expiresIn: Record<string, string>;
790
- expired: Record<string, string>;
791
- indefinitely: Record<string, string>;
792
- };
793
- version: "1";
794
- locales: ("en" | "ru" | "zh" | "fr" | "fa" | "uz" | "de" | "hi" | "tr" | "az" | "es" | "vi" | "ja" | "be" | "uk" | "pt" | "pl" | "id" | "tk" | "th")[];
795
- brandingSettings: {
796
- title: string;
797
- logoUrl: string;
798
- supportUrl: string;
799
- };
800
- uiConfig: {
801
- subscriptionInfoBlockType: "collapsed" | "expanded" | "cards" | "hidden";
802
- installationGuidesBlockType: "cards" | "accordion" | "minimal" | "timeline";
803
- };
804
- baseSettings: {
805
- metaTitle: string;
806
- metaDescription: string;
807
- showConnectionKeys: boolean;
808
- };
809
- svgLibrary: Record<string, string>;
810
- }, {
811
- platforms: Partial<Record<"ios" | "android" | "linux" | "macos" | "windows" | "androidTV" | "appleTV", {
812
- svgIconKey: string;
813
- displayName: Record<string, string>;
814
- apps: {
815
- name: string;
816
- featured: boolean;
817
- blocks: {
818
- svgIconKey: string;
819
- svgIconColor: string;
820
- title: Record<string, string>;
821
- description: Record<string, string>;
822
- buttons: {
823
- type: "external" | "subscriptionLink" | "copyButton";
824
- svgIconKey: string;
825
- link: string;
826
- text: Record<string, string>;
827
- }[];
828
- }[];
829
- svgIconKey?: string | undefined;
830
- }[];
831
- }>>;
832
- baseTranslations: {
833
- unknown: Record<string, string>;
834
- status: Record<string, string>;
835
- name: Record<string, string>;
836
- installationGuideHeader: Record<string, string>;
837
- connectionKeysHeader: Record<string, string>;
838
- linkCopied: Record<string, string>;
839
- linkCopiedToClipboard: Record<string, string>;
840
- getLink: Record<string, string>;
841
- scanQrCode: Record<string, string>;
842
- scanQrCodeDescription: Record<string, string>;
843
- copyLink: Record<string, string>;
844
- active: Record<string, string>;
845
- inactive: Record<string, string>;
846
- expires: Record<string, string>;
847
- bandwidth: Record<string, string>;
848
- scanToImport: Record<string, string>;
849
- expiresIn: Record<string, string>;
850
- expired: Record<string, string>;
851
- indefinitely: Record<string, string>;
852
- };
853
- version: "1";
854
- locales: ("en" | "ru" | "zh" | "fr" | "fa" | "uz" | "de" | "hi" | "tr" | "az" | "es" | "vi" | "ja" | "be" | "uk" | "pt" | "pl" | "id" | "tk" | "th")[];
855
- brandingSettings: {
856
- title: string;
857
- logoUrl: string;
858
- supportUrl: string;
859
- };
860
- uiConfig: {
861
- subscriptionInfoBlockType: "collapsed" | "expanded" | "cards" | "hidden";
862
- installationGuidesBlockType: "cards" | "accordion" | "minimal" | "timeline";
863
- };
864
- svgLibrary: Record<string, string>;
865
- baseSettings?: {
866
- metaTitle?: string | undefined;
867
- metaDescription?: string | undefined;
868
- showConnectionKeys?: boolean | undefined;
869
- } | undefined;
870
- }>;
218
+ }, z.core.$strip>>;
219
+ }, z.core.$strip>>;
220
+ }, z.core.$strip>>;
221
+ }, z.core.$strip>>;
222
+ }, z.core.$strip>;
871
223
  export type TSubscriptionPageSvgLibrary = z.infer<typeof SvgLibrarySchema>;
872
224
  export type TSubscriptionPageRawConfig = z.infer<typeof SubscriptionPageRawConfigSchema>;
873
225
  export type TSubscriptionPageBrandingSettings = z.infer<typeof BrandingSettingsSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"subscription-page-config.schema.d.ts","sourceRoot":"","sources":["../../../models/subscription-page-config.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAexB,QAAA,MAAM,mBAAmB,qGAInB,CAAC;AAEP,QAAA,MAAM,gBAAgB,uCAGrB,CAAC;AAEF,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;EAKhB,CAAC;AAEH,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8Bf,CAAC;AAEH,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKrB,CAAC;AAEH,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIlB,CAAC;AAEH,QAAA,MAAM,sBAAsB;;;;;;;;;;;;EAI1B,CAAC;AAEH,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;EAGlB,CAAC;AAEH,QAAA,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoBvC,CAAC;AAcH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EActC,CAAC;AAEP,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC3E,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AACzF,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACvF,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAC7E,MAAM,MAAM,4BAA4B,GAAG,MAAM,0BAA0B,CAAC,WAAW,CAAC,CAAC;AACzF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC3E,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AACvE,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AACzE,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AACjF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AACvE,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC;AACjG,MAAM,MAAM,oCAAoC,GAAG,MAAM,8BAA8B,CAAC"}
1
+ {"version":3,"file":"subscription-page-config.schema.d.ts","sourceRoot":"","sources":["../../../models/subscription-page-config.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAexB,QAAA,MAAM,mBAAmB,uCAInB,CAAC;AAEP,QAAA,MAAM,gBAAgB,uCAKrB,CAAC;AAEF,QAAA,MAAM,YAAY;;;;;;;;;iBAKhB,CAAC;AAEH,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;iBA6Bf,CAAC;AAEH,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;iBAKrB,CAAC;AAEH,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;iBAIlB,CAAC;AAEH,QAAA,MAAM,sBAAsB;;;;iBAI1B,CAAC;AAEH,QAAA,MAAM,cAAc;;;;;;;;;;;;;iBAGlB,CAAC;AAEH,QAAA,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;iBAoBvC,CAAC;AAgBH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBActC,CAAC;AAEP,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC3E,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AACzF,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACvF,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAC7E,MAAM,MAAM,4BAA4B,GAAG,MAAM,0BAA0B,CAAC,WAAW,CAAC,CAAC;AACzF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC3E,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AACvE,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AACzE,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AACjF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AACvE,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC;AACjG,MAAM,MAAM,oCAAoC,GAAG,MAAM,8BAA8B,CAAC"}
@@ -7,12 +7,14 @@ const subscription_page_config_validator_1 = require("./subscription-page-config
7
7
  const LocalizedTextSchema = zod_1.z
8
8
  .record(zod_1.z.string().regex(/^[a-z]{2}$/, 'Language code must be 2 lowercase letters'), zod_1.z.string())
9
9
  .refine((obj) => Object.keys(obj).length > 0, {
10
- message: 'At least one language must be specified',
10
+ error: 'At least one language must be specified',
11
11
  });
12
- const SvgLibrarySchema = zod_1.z.record(zod_1.z.string().regex(/^[A-Za-z]+$/, { message: 'Only latin characters, no spaces allowed' }), zod_1.z.string());
12
+ const SvgLibrarySchema = zod_1.z.record(zod_1.z.string().regex(/^[A-Za-z]+$/, {
13
+ error: 'Only latin characters, no spaces allowed',
14
+ }), zod_1.z.string());
13
15
  const ButtonSchema = zod_1.z.object({
14
16
  link: zod_1.z.string(),
15
- type: zod_1.z.nativeEnum(constants_1.BUTTON_TYPES),
17
+ type: zod_1.z.enum(constants_1.BUTTON_TYPES),
16
18
  text: LocalizedTextSchema,
17
19
  svgIconKey: zod_1.z.string(),
18
20
  });
@@ -36,7 +38,7 @@ const BlockSchema = zod_1.z.object({
36
38
  'violet',
37
39
  'yellow',
38
40
  ].includes(value) || /^#[0-9a-fA-F]{3,8}$/.test(value), {
39
- message: 'svgIconColor must be one of the predefined colors or a hex color beginning with #',
41
+ error: 'svgIconColor must be one of the predefined colors or a hex color beginning with #',
40
42
  }),
41
43
  title: LocalizedTextSchema,
42
44
  description: LocalizedTextSchema,
@@ -56,11 +58,11 @@ const PlatformSchema = zod_1.z.object({
56
58
  const BrandingSettingsSchema = zod_1.z.object({
57
59
  title: zod_1.z.string(),
58
60
  logoUrl: zod_1.z.string(),
59
- supportUrl: zod_1.z.string().url(),
61
+ supportUrl: zod_1.z.url(),
60
62
  });
61
63
  const UiConfigSchema = zod_1.z.object({
62
- subscriptionInfoBlockType: zod_1.z.nativeEnum(constants_1.SUBSCRIPTION_INFO_BLOCK_VARIANTS),
63
- installationGuidesBlockType: zod_1.z.nativeEnum(constants_1.INSTALLATION_GUIDE_BLOCKS_VARIANTS),
64
+ subscriptionInfoBlockType: zod_1.z.enum(constants_1.SUBSCRIPTION_INFO_BLOCK_VARIANTS),
65
+ installationGuidesBlockType: zod_1.z.enum(constants_1.INSTALLATION_GUIDE_BLOCKS_VARIANTS),
64
66
  });
65
67
  const SubscriptionPageTranslateKeysSchema = zod_1.z.object({
66
68
  installationGuideHeader: LocalizedTextSchema,
@@ -85,25 +87,27 @@ const SubscriptionPageTranslateKeysSchema = zod_1.z.object({
85
87
  });
86
88
  const BaseSettingsSchema = zod_1.z
87
89
  .object({
88
- metaTitle: zod_1.z.string().default('Remnawave Subscription Page'),
89
- metaDescription: zod_1.z.string().default('Remnawave Subscription Page'),
90
+ metaTitle: zod_1.z.string().default('Subscription'),
91
+ metaDescription: zod_1.z.string().default('Subscription'),
90
92
  showConnectionKeys: zod_1.z.boolean().default(false),
93
+ hideGetLinkButton: zod_1.z.boolean().default(false),
91
94
  })
92
95
  .default({
93
- metaTitle: 'Remnawave Subscription Page',
94
- metaDescription: 'Remnawave Subscription Page',
96
+ metaTitle: 'Subscription',
97
+ metaDescription: 'Subscription',
95
98
  showConnectionKeys: false,
99
+ hideGetLinkButton: false,
96
100
  });
97
101
  exports.SubscriptionPageRawConfigSchema = zod_1.z
98
102
  .object({
99
- version: zod_1.z.nativeEnum(constants_1.SUBSCRIPTION_PAGE_CONFIG_VERSION),
103
+ version: zod_1.z.enum(constants_1.SUBSCRIPTION_PAGE_CONFIG_VERSION),
100
104
  locales: zod_1.z.array(zod_1.z.enum(constants_1.LANGUAGE_CODES)).min(1, 'At least one locale must be specified'),
101
105
  brandingSettings: BrandingSettingsSchema,
102
106
  uiConfig: UiConfigSchema,
103
107
  baseSettings: BaseSettingsSchema,
104
108
  baseTranslations: SubscriptionPageTranslateKeysSchema,
105
109
  svgLibrary: SvgLibrarySchema,
106
- platforms: zod_1.z.record(zod_1.z.nativeEnum(constants_1.SUBSCRIPTION_PAGE_CONFIG_PLATFORM_TYPES), PlatformSchema),
110
+ platforms: zod_1.z.partialRecord(zod_1.z.enum(constants_1.SUBSCRIPTION_PAGE_CONFIG_PLATFORM_TYPES), PlatformSchema),
107
111
  })
108
112
  .superRefine((data, ctx) => {
109
113
  (0, subscription_page_config_validator_1.validateLocalizedTexts)(data, data.locales, ctx);
@@ -1 +1 @@
1
- {"version":3,"file":"subscription-page-config.validator.d.ts","sourceRoot":"","sources":["../../../models/subscription-page-config.validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,6BAA6B,EAAkB,MAAM,cAAc,CAAC;AAc7E,eAAO,MAAM,sBAAsB,GAC/B,MAAM;IACF,OAAO,EAAE,6BAA6B,EAAE,CAAC;IACzC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnC,QAAQ,EAAE,OAAO,CAAC;IAClB,gBAAgB,EAAE,OAAO,CAAC;CAC7B,EACD,iBAAiB,6BAA6B,EAAE,EAChD,KAAK,CAAC,CAAC,aAAa,KACrB,IAkCF,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAC9B,MAAM;IAAE,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAAE,EAChF,KAAK,CAAC,CAAC,aAAa,KACrB,IAwBF,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,CAAC,EACjC,KAAK,CAAC,EACN,eAAe,6BAA6B,EAAE,KAC/C,CA2BF,CAAC"}
1
+ {"version":3,"file":"subscription-page-config.validator.d.ts","sourceRoot":"","sources":["../../../models/subscription-page-config.validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,6BAA6B,EAAkB,MAAM,cAAc,CAAC;AAc7E,eAAO,MAAM,sBAAsB,GAC/B,MAAM;IACF,OAAO,EAAE,6BAA6B,EAAE,CAAC;IACzC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnC,QAAQ,EAAE,OAAO,CAAC;IAClB,gBAAgB,EAAE,OAAO,CAAC;CAC7B,EACD,iBAAiB,6BAA6B,EAAE,EAChD,KAAK,CAAC,CAAC,aAAa,KACrB,IAmCF,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAC9B,MAAM;IAAE,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAAE,EAChF,KAAK,CAAC,CAAC,aAAa,KACrB,IAyBF,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,CAAC,EACjC,KAAK,CAAC,EACN,eAAe,6BAA6B,EAAE,KAC/C,CA2BF,CAAC"}
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.cleanLocalizedTexts = exports.validateSvgReferences = exports.validateLocalizedTexts = void 0;
4
- const zod_1 = require("zod");
5
4
  const constants_1 = require("../constants");
6
5
  const isLocalizedText = (obj) => {
7
6
  if (obj === null || typeof obj !== 'object' || Array.isArray(obj))
@@ -21,8 +20,9 @@ const validateLocalizedTexts = (data, requiredLocales, ctx) => {
21
20
  for (const locale of requiredLocales) {
22
21
  const value = obj[locale];
23
22
  if (!value || value.trim() === '') {
24
- ctx.addIssue({
25
- code: zod_1.z.ZodIssueCode.custom,
23
+ ctx.issues.push({
24
+ input: obj,
25
+ code: 'custom',
26
26
  message: `Missing required locale '${locale}' at ${path}`,
27
27
  path: [path, locale],
28
28
  });
@@ -54,8 +54,9 @@ const validateSvgReferences = (data, ctx) => {
54
54
  for (const [key, value] of Object.entries(obj)) {
55
55
  if (key === 'svgIconKey' && typeof value === 'string') {
56
56
  if (!validKeys.has(value)) {
57
- ctx.addIssue({
58
- code: zod_1.z.ZodIssueCode.custom,
57
+ ctx.issues.push({
58
+ input: obj,
59
+ code: 'custom',
59
60
  message: `Unknown svgIconKey '${value}' at ${path}.${key}. Available: ${[...validKeys].join(', ')}`,
60
61
  path: [path, key],
61
62
  });
@@ -7,12 +7,14 @@ const subscription_page_config_validator_1 = require("./subscription-page-config
7
7
  const LocalizedTextSchema = zod_1.z
8
8
  .record(zod_1.z.string().regex(/^[a-z]{2}$/, 'Language code must be 2 lowercase letters'), zod_1.z.string())
9
9
  .refine((obj) => Object.keys(obj).length > 0, {
10
- message: 'At least one language must be specified',
10
+ error: 'At least one language must be specified',
11
11
  });
12
- const SvgLibrarySchema = zod_1.z.record(zod_1.z.string().regex(/^[A-Za-z]+$/, { message: 'Only latin characters, no spaces allowed' }), zod_1.z.string());
12
+ const SvgLibrarySchema = zod_1.z.record(zod_1.z.string().regex(/^[A-Za-z]+$/, {
13
+ error: 'Only latin characters, no spaces allowed',
14
+ }), zod_1.z.string());
13
15
  const ButtonSchema = zod_1.z.object({
14
16
  link: zod_1.z.string(),
15
- type: zod_1.z.nativeEnum(constants_1.BUTTON_TYPES),
17
+ type: zod_1.z.enum(constants_1.BUTTON_TYPES),
16
18
  text: LocalizedTextSchema,
17
19
  svgIconKey: zod_1.z.string(),
18
20
  });
@@ -36,7 +38,7 @@ const BlockSchema = zod_1.z.object({
36
38
  'violet',
37
39
  'yellow',
38
40
  ].includes(value) || /^#[0-9a-fA-F]{3,8}$/.test(value), {
39
- message: 'svgIconColor must be one of the predefined colors or a hex color beginning with #',
41
+ error: 'svgIconColor must be one of the predefined colors or a hex color beginning with #',
40
42
  }),
41
43
  title: LocalizedTextSchema,
42
44
  description: LocalizedTextSchema,
@@ -56,11 +58,11 @@ const PlatformSchema = zod_1.z.object({
56
58
  const BrandingSettingsSchema = zod_1.z.object({
57
59
  title: zod_1.z.string(),
58
60
  logoUrl: zod_1.z.string(),
59
- supportUrl: zod_1.z.string().url(),
61
+ supportUrl: zod_1.z.url(),
60
62
  });
61
63
  const UiConfigSchema = zod_1.z.object({
62
- subscriptionInfoBlockType: zod_1.z.nativeEnum(constants_1.SUBSCRIPTION_INFO_BLOCK_VARIANTS),
63
- installationGuidesBlockType: zod_1.z.nativeEnum(constants_1.INSTALLATION_GUIDE_BLOCKS_VARIANTS),
64
+ subscriptionInfoBlockType: zod_1.z.enum(constants_1.SUBSCRIPTION_INFO_BLOCK_VARIANTS),
65
+ installationGuidesBlockType: zod_1.z.enum(constants_1.INSTALLATION_GUIDE_BLOCKS_VARIANTS),
64
66
  });
65
67
  const SubscriptionPageTranslateKeysSchema = zod_1.z.object({
66
68
  installationGuideHeader: LocalizedTextSchema,
@@ -85,25 +87,27 @@ const SubscriptionPageTranslateKeysSchema = zod_1.z.object({
85
87
  });
86
88
  const BaseSettingsSchema = zod_1.z
87
89
  .object({
88
- metaTitle: zod_1.z.string().default('Remnawave Subscription Page'),
89
- metaDescription: zod_1.z.string().default('Remnawave Subscription Page'),
90
+ metaTitle: zod_1.z.string().default('Subscription'),
91
+ metaDescription: zod_1.z.string().default('Subscription'),
90
92
  showConnectionKeys: zod_1.z.boolean().default(false),
93
+ hideGetLinkButton: zod_1.z.boolean().default(false),
91
94
  })
92
95
  .default({
93
- metaTitle: 'Remnawave Subscription Page',
94
- metaDescription: 'Remnawave Subscription Page',
96
+ metaTitle: 'Subscription',
97
+ metaDescription: 'Subscription',
95
98
  showConnectionKeys: false,
99
+ hideGetLinkButton: false,
96
100
  });
97
101
  exports.SubscriptionPageRawConfigSchema = zod_1.z
98
102
  .object({
99
- version: zod_1.z.nativeEnum(constants_1.SUBSCRIPTION_PAGE_CONFIG_VERSION),
103
+ version: zod_1.z.enum(constants_1.SUBSCRIPTION_PAGE_CONFIG_VERSION),
100
104
  locales: zod_1.z.array(zod_1.z.enum(constants_1.LANGUAGE_CODES)).min(1, 'At least one locale must be specified'),
101
105
  brandingSettings: BrandingSettingsSchema,
102
106
  uiConfig: UiConfigSchema,
103
107
  baseSettings: BaseSettingsSchema,
104
108
  baseTranslations: SubscriptionPageTranslateKeysSchema,
105
109
  svgLibrary: SvgLibrarySchema,
106
- platforms: zod_1.z.record(zod_1.z.nativeEnum(constants_1.SUBSCRIPTION_PAGE_CONFIG_PLATFORM_TYPES), PlatformSchema),
110
+ platforms: zod_1.z.partialRecord(zod_1.z.enum(constants_1.SUBSCRIPTION_PAGE_CONFIG_PLATFORM_TYPES), PlatformSchema),
107
111
  })
108
112
  .superRefine((data, ctx) => {
109
113
  (0, subscription_page_config_validator_1.validateLocalizedTexts)(data, data.locales, ctx);
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.cleanLocalizedTexts = exports.validateSvgReferences = exports.validateLocalizedTexts = void 0;
4
- const zod_1 = require("zod");
5
4
  const constants_1 = require("../constants");
6
5
  const isLocalizedText = (obj) => {
7
6
  if (obj === null || typeof obj !== 'object' || Array.isArray(obj))
@@ -21,8 +20,9 @@ const validateLocalizedTexts = (data, requiredLocales, ctx) => {
21
20
  for (const locale of requiredLocales) {
22
21
  const value = obj[locale];
23
22
  if (!value || value.trim() === '') {
24
- ctx.addIssue({
25
- code: zod_1.z.ZodIssueCode.custom,
23
+ ctx.issues.push({
24
+ input: obj,
25
+ code: 'custom',
26
26
  message: `Missing required locale '${locale}' at ${path}`,
27
27
  path: [path, locale],
28
28
  });
@@ -54,8 +54,9 @@ const validateSvgReferences = (data, ctx) => {
54
54
  for (const [key, value] of Object.entries(obj)) {
55
55
  if (key === 'svgIconKey' && typeof value === 'string') {
56
56
  if (!validKeys.has(value)) {
57
- ctx.addIssue({
58
- code: zod_1.z.ZodIssueCode.custom,
57
+ ctx.issues.push({
58
+ input: obj,
59
+ code: 'custom',
59
60
  message: `Unknown svgIconKey '${value}' at ${path}.${key}. Available: ${[...validKeys].join(', ')}`,
60
61
  path: [path, key],
61
62
  });
package/package.json CHANGED
@@ -1,24 +1,24 @@
1
1
  {
2
2
  "name": "@remnawave/subscription-page-types",
3
- "version": "0.3.4",
4
- "public": true,
5
- "license": "AGPL-3.0-only",
3
+ "version": "0.5.0",
6
4
  "description": "A types library for Remnawave Subscription Page.",
7
- "author": "REMNAWAVE <github.com/remnawave>",
5
+ "keywords": [],
8
6
  "homepage": "https://github.com/remnawave",
7
+ "bugs": {
8
+ "url": "https://github.com/remnawave/backend/issues"
9
+ },
10
+ "license": "AGPL-3.0-only",
11
+ "author": "REMNAWAVE <github.com/remnawave>",
9
12
  "repository": {
10
13
  "type": "git",
11
14
  "url": "git+https://github.com/remnawave/backend.git"
12
15
  },
13
- "bugs": {
14
- "url": "https://github.com/remnawave/backend/issues"
15
- },
16
- "main": "build/backend/index.js",
17
- "browser": "build/frontend/index.js",
18
- "types": "build/backend/index.d.ts",
19
16
  "files": [
20
17
  "build/**/*"
21
18
  ],
19
+ "main": "build/backend/index.js",
20
+ "browser": "build/frontend/index.js",
21
+ "types": "build/backend/index.d.ts",
22
22
  "scripts": {
23
23
  "clean": "rm -rf build",
24
24
  "build:backend": "tsc -p tsconfig.backend.json",
@@ -26,8 +26,8 @@
26
26
  "build": "npm run clean && npm run build:backend && npm run build:frontend",
27
27
  "prepublish": "npm run build"
28
28
  },
29
- "keywords": [],
30
29
  "dependencies": {
31
- "zod": "3.25.76"
32
- }
33
- }
30
+ "zod": "4.4.3"
31
+ },
32
+ "public": true
33
+ }