@remnawave/subscription-page-types 0.2.7 → 0.3.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.
@@ -411,6 +411,19 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
411
411
  subscriptionInfoBlockType: "collapsed" | "expanded" | "cards" | "hidden";
412
412
  installationGuidesBlockType: "cards" | "accordion" | "minimal" | "timeline";
413
413
  }>;
414
+ baseSettings: z.ZodDefault<z.ZodObject<{
415
+ metaTitle: z.ZodDefault<z.ZodString>;
416
+ metaDescription: z.ZodDefault<z.ZodString>;
417
+ showConnectionKeys: z.ZodDefault<z.ZodBoolean>;
418
+ }, "strip", z.ZodTypeAny, {
419
+ metaTitle: string;
420
+ metaDescription: string;
421
+ showConnectionKeys: boolean;
422
+ }, {
423
+ metaTitle?: string | undefined;
424
+ metaDescription?: string | undefined;
425
+ showConnectionKeys?: boolean | undefined;
426
+ }>>;
414
427
  baseTranslations: z.ZodObject<{
415
428
  installationGuideHeader: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
416
429
  connectionKeysHeader: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
@@ -663,6 +676,11 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
663
676
  subscriptionInfoBlockType: "collapsed" | "expanded" | "cards" | "hidden";
664
677
  installationGuidesBlockType: "cards" | "accordion" | "minimal" | "timeline";
665
678
  };
679
+ baseSettings: {
680
+ metaTitle: string;
681
+ metaDescription: string;
682
+ showConnectionKeys: boolean;
683
+ };
666
684
  svgLibrary: Record<string, string>;
667
685
  }, {
668
686
  platforms: Partial<Record<"ios" | "android" | "linux" | "macos" | "windows" | "androidTV" | "appleTV", {
@@ -719,6 +737,11 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
719
737
  installationGuidesBlockType: "cards" | "accordion" | "minimal" | "timeline";
720
738
  };
721
739
  svgLibrary: Record<string, string>;
740
+ baseSettings?: {
741
+ metaTitle?: string | undefined;
742
+ metaDescription?: string | undefined;
743
+ showConnectionKeys?: boolean | undefined;
744
+ } | undefined;
722
745
  }>, {
723
746
  platforms: Partial<Record<"ios" | "android" | "linux" | "macos" | "windows" | "androidTV" | "appleTV", {
724
747
  svgIconKey: string;
@@ -773,6 +796,11 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
773
796
  subscriptionInfoBlockType: "collapsed" | "expanded" | "cards" | "hidden";
774
797
  installationGuidesBlockType: "cards" | "accordion" | "minimal" | "timeline";
775
798
  };
799
+ baseSettings: {
800
+ metaTitle: string;
801
+ metaDescription: string;
802
+ showConnectionKeys: boolean;
803
+ };
776
804
  svgLibrary: Record<string, string>;
777
805
  }, {
778
806
  platforms: Partial<Record<"ios" | "android" | "linux" | "macos" | "windows" | "androidTV" | "appleTV", {
@@ -829,6 +857,11 @@ export declare const SubscriptionPageRawConfigSchema: z.ZodEffects<z.ZodObject<{
829
857
  installationGuidesBlockType: "cards" | "accordion" | "minimal" | "timeline";
830
858
  };
831
859
  svgLibrary: Record<string, string>;
860
+ baseSettings?: {
861
+ metaTitle?: string | undefined;
862
+ metaDescription?: string | undefined;
863
+ showConnectionKeys?: boolean | undefined;
864
+ } | undefined;
832
865
  }>;
833
866
  export type TSubscriptionPageSvgLibrary = z.infer<typeof SvgLibrarySchema>;
834
867
  export type TSubscriptionPageRawConfig = z.infer<typeof SubscriptionPageRawConfigSchema>;
@@ -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;;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;;;;;;;;;;;;;;;EAatC,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,qGAInB,CAAC;AAEP,QAAA,MAAM,gBAAgB,uCAGrB,CAAC;AAEF,QAAA,MAAM,YAAY;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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"}
@@ -83,12 +83,24 @@ const SubscriptionPageTranslateKeysSchema = zod_1.z.object({
83
83
  unknown: LocalizedTextSchema,
84
84
  indefinitely: LocalizedTextSchema,
85
85
  });
86
+ const BaseSettingsSchema = zod_1.z
87
+ .object({
88
+ metaTitle: zod_1.z.string().default('Remnawave Subscription Page'),
89
+ metaDescription: zod_1.z.string().default('Remnawave Subscription Page'),
90
+ showConnectionKeys: zod_1.z.boolean().default(false),
91
+ })
92
+ .default({
93
+ metaTitle: 'Remnawave Subscription Page',
94
+ metaDescription: 'Remnawave Subscription Page',
95
+ showConnectionKeys: false,
96
+ });
86
97
  exports.SubscriptionPageRawConfigSchema = zod_1.z
87
98
  .object({
88
99
  version: zod_1.z.nativeEnum(constants_1.SUBSCRIPTION_PAGE_CONFIG_VERSION),
89
100
  locales: zod_1.z.array(zod_1.z.enum(constants_1.LANGUAGE_CODES)).min(1, 'At least one locale must be specified'),
90
101
  brandingSettings: BrandingSettingsSchema,
91
102
  uiConfig: UiConfigSchema,
103
+ baseSettings: BaseSettingsSchema,
92
104
  baseTranslations: SubscriptionPageTranslateKeysSchema,
93
105
  svgLibrary: SvgLibrarySchema,
94
106
  platforms: zod_1.z.record(zod_1.z.nativeEnum(constants_1.SUBSCRIPTION_PAGE_CONFIG_PLATFORM_TYPES), PlatformSchema),
@@ -83,12 +83,24 @@ const SubscriptionPageTranslateKeysSchema = zod_1.z.object({
83
83
  unknown: LocalizedTextSchema,
84
84
  indefinitely: LocalizedTextSchema,
85
85
  });
86
+ const BaseSettingsSchema = zod_1.z
87
+ .object({
88
+ metaTitle: zod_1.z.string().default('Remnawave Subscription Page'),
89
+ metaDescription: zod_1.z.string().default('Remnawave Subscription Page'),
90
+ showConnectionKeys: zod_1.z.boolean().default(false),
91
+ })
92
+ .default({
93
+ metaTitle: 'Remnawave Subscription Page',
94
+ metaDescription: 'Remnawave Subscription Page',
95
+ showConnectionKeys: false,
96
+ });
86
97
  exports.SubscriptionPageRawConfigSchema = zod_1.z
87
98
  .object({
88
99
  version: zod_1.z.nativeEnum(constants_1.SUBSCRIPTION_PAGE_CONFIG_VERSION),
89
100
  locales: zod_1.z.array(zod_1.z.enum(constants_1.LANGUAGE_CODES)).min(1, 'At least one locale must be specified'),
90
101
  brandingSettings: BrandingSettingsSchema,
91
102
  uiConfig: UiConfigSchema,
103
+ baseSettings: BaseSettingsSchema,
92
104
  baseTranslations: SubscriptionPageTranslateKeysSchema,
93
105
  svgLibrary: SvgLibrarySchema,
94
106
  platforms: zod_1.z.record(zod_1.z.nativeEnum(constants_1.SUBSCRIPTION_PAGE_CONFIG_PLATFORM_TYPES), PlatformSchema),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/subscription-page-types",
3
- "version": "0.2.7",
3
+ "version": "0.3.0",
4
4
  "public": true,
5
5
  "license": "AGPL-3.0-only",
6
6
  "description": "A types library for Remnawave Subscription Page.",