@mintlify/validation 0.1.302 → 0.1.304

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.
@@ -147,27 +147,27 @@ export declare const mintConfigSchema: z.ZodObject<{
147
147
  name: z.ZodString;
148
148
  url: z.ZodOptional<z.ZodString>;
149
149
  default: z.ZodOptional<z.ZodLiteral<true>>;
150
- locale: z.ZodOptional<z.ZodEnum<["en", "cn", "es", "fr", "jp", "pt", "pt-BR", "de", "ko"]>>;
150
+ locale: z.ZodOptional<z.ZodEnum<["en", "cn", "zh", "zh-Hans", "zh-Hant", "es", "fr", "ja", "jp", "pt", "pt-BR", "de", "ko", "it", "ru", "id", "ar", "tr"]>>;
151
151
  }, "strict", z.ZodTypeAny, {
152
152
  name: string;
153
153
  url?: string | undefined;
154
154
  default?: true | undefined;
155
- locale?: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de" | "ko" | undefined;
155
+ locale?: "id" | "en" | "cn" | "zh" | "zh-Hans" | "zh-Hant" | "es" | "fr" | "ja" | "jp" | "pt" | "pt-BR" | "de" | "ko" | "it" | "ru" | "ar" | "tr" | undefined;
156
156
  }, {
157
157
  name: string;
158
158
  url?: string | undefined;
159
159
  default?: true | undefined;
160
- locale?: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de" | "ko" | undefined;
160
+ locale?: "id" | "en" | "cn" | "zh" | "zh-Hans" | "zh-Hant" | "es" | "fr" | "ja" | "jp" | "pt" | "pt-BR" | "de" | "ko" | "it" | "ru" | "ar" | "tr" | undefined;
161
161
  }>]>, "many">, (string | {
162
162
  name: string;
163
163
  url?: string | undefined;
164
164
  default?: true | undefined;
165
- locale?: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de" | "ko" | undefined;
165
+ locale?: "id" | "en" | "cn" | "zh" | "zh-Hans" | "zh-Hant" | "es" | "fr" | "ja" | "jp" | "pt" | "pt-BR" | "de" | "ko" | "it" | "ru" | "ar" | "tr" | undefined;
166
166
  })[], (string | {
167
167
  name: string;
168
168
  url?: string | undefined;
169
169
  default?: true | undefined;
170
- locale?: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de" | "ko" | undefined;
170
+ locale?: "id" | "en" | "cn" | "zh" | "zh-Hans" | "zh-Hant" | "es" | "fr" | "ja" | "jp" | "pt" | "pt-BR" | "de" | "ko" | "it" | "ru" | "ar" | "tr" | undefined;
171
171
  })[]>>;
172
172
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
173
173
  codeBlock: z.ZodOptional<z.ZodObject<{
@@ -908,7 +908,7 @@ export declare const mintConfigSchema: z.ZodObject<{
908
908
  name: string;
909
909
  url?: string | undefined;
910
910
  default?: true | undefined;
911
- locale?: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de" | "ko" | undefined;
911
+ locale?: "id" | "en" | "cn" | "zh" | "zh-Hans" | "zh-Hant" | "es" | "fr" | "ja" | "jp" | "pt" | "pt-BR" | "de" | "ko" | "it" | "ru" | "ar" | "tr" | undefined;
912
912
  })[] | undefined;
913
913
  metadata?: Record<string, string> | undefined;
914
914
  codeBlock?: {
@@ -1144,7 +1144,7 @@ export declare const mintConfigSchema: z.ZodObject<{
1144
1144
  name: string;
1145
1145
  url?: string | undefined;
1146
1146
  default?: true | undefined;
1147
- locale?: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de" | "ko" | undefined;
1147
+ locale?: "id" | "en" | "cn" | "zh" | "zh-Hans" | "zh-Hant" | "es" | "fr" | "ja" | "jp" | "pt" | "pt-BR" | "de" | "ko" | "it" | "ru" | "ar" | "tr" | undefined;
1148
1148
  })[] | undefined;
1149
1149
  metadata?: Record<string, string> | undefined;
1150
1150
  codeBlock?: {
@@ -3,25 +3,25 @@ export declare const versionsSchema: z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodSt
3
3
  name: z.ZodString;
4
4
  url: z.ZodOptional<z.ZodString>;
5
5
  default: z.ZodOptional<z.ZodLiteral<true>>;
6
- locale: z.ZodOptional<z.ZodEnum<["en", "cn", "es", "fr", "jp", "pt", "pt-BR", "de", "ko"]>>;
6
+ locale: z.ZodOptional<z.ZodEnum<["en", "cn", "zh", "zh-Hans", "zh-Hant", "es", "fr", "ja", "jp", "pt", "pt-BR", "de", "ko", "it", "ru", "id", "ar", "tr"]>>;
7
7
  }, "strict", z.ZodTypeAny, {
8
8
  name: string;
9
9
  url?: string | undefined;
10
10
  default?: true | undefined;
11
- locale?: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de" | "ko" | undefined;
11
+ locale?: "id" | "en" | "cn" | "zh" | "zh-Hans" | "zh-Hant" | "es" | "fr" | "ja" | "jp" | "pt" | "pt-BR" | "de" | "ko" | "it" | "ru" | "ar" | "tr" | undefined;
12
12
  }, {
13
13
  name: string;
14
14
  url?: string | undefined;
15
15
  default?: true | undefined;
16
- locale?: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de" | "ko" | undefined;
16
+ locale?: "id" | "en" | "cn" | "zh" | "zh-Hans" | "zh-Hant" | "es" | "fr" | "ja" | "jp" | "pt" | "pt-BR" | "de" | "ko" | "it" | "ru" | "ar" | "tr" | undefined;
17
17
  }>]>, "many">, (string | {
18
18
  name: string;
19
19
  url?: string | undefined;
20
20
  default?: true | undefined;
21
- locale?: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de" | "ko" | undefined;
21
+ locale?: "id" | "en" | "cn" | "zh" | "zh-Hans" | "zh-Hant" | "es" | "fr" | "ja" | "jp" | "pt" | "pt-BR" | "de" | "ko" | "it" | "ru" | "ar" | "tr" | undefined;
22
22
  })[], (string | {
23
23
  name: string;
24
24
  url?: string | undefined;
25
25
  default?: true | undefined;
26
- locale?: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de" | "ko" | undefined;
26
+ locale?: "id" | "en" | "cn" | "zh" | "zh-Hans" | "zh-Hant" | "es" | "fr" | "ja" | "jp" | "pt" | "pt-BR" | "de" | "ko" | "it" | "ru" | "ar" | "tr" | undefined;
27
27
  })[]>;
@@ -780,6 +780,13 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
780
780
  }, {
781
781
  key: string;
782
782
  }>>;
783
+ telemetry: z.ZodOptional<z.ZodObject<{
784
+ enabled: z.ZodOptional<z.ZodBoolean>;
785
+ }, "strip", z.ZodTypeAny, {
786
+ enabled?: boolean | undefined;
787
+ }, {
788
+ enabled?: boolean | undefined;
789
+ }>>;
783
790
  }, "strict", z.ZodTypeAny, {
784
791
  amplitude?: {
785
792
  apiKey: string;
@@ -835,6 +842,9 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
835
842
  segment?: {
836
843
  key: string;
837
844
  } | undefined;
845
+ telemetry?: {
846
+ enabled?: boolean | undefined;
847
+ } | undefined;
838
848
  }, {
839
849
  amplitude?: {
840
850
  apiKey: string;
@@ -890,6 +900,9 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
890
900
  segment?: {
891
901
  key: string;
892
902
  } | undefined;
903
+ telemetry?: {
904
+ enabled?: boolean | undefined;
905
+ } | undefined;
893
906
  }>>;
894
907
  banner: z.ZodOptional<z.ZodObject<{
895
908
  content: z.ZodString;
@@ -1164,6 +1177,9 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
1164
1177
  segment?: {
1165
1178
  key: string;
1166
1179
  } | undefined;
1180
+ telemetry?: {
1181
+ enabled?: boolean | undefined;
1182
+ } | undefined;
1167
1183
  } | undefined;
1168
1184
  banner?: {
1169
1185
  content: string;
@@ -1431,6 +1447,9 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
1431
1447
  segment?: {
1432
1448
  key: string;
1433
1449
  } | undefined;
1450
+ telemetry?: {
1451
+ enabled?: boolean | undefined;
1452
+ } | undefined;
1434
1453
  } | undefined;
1435
1454
  banner?: {
1436
1455
  content: string;
@@ -2215,6 +2234,13 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
2215
2234
  }, {
2216
2235
  key: string;
2217
2236
  }>>;
2237
+ telemetry: z.ZodOptional<z.ZodObject<{
2238
+ enabled: z.ZodOptional<z.ZodBoolean>;
2239
+ }, "strip", z.ZodTypeAny, {
2240
+ enabled?: boolean | undefined;
2241
+ }, {
2242
+ enabled?: boolean | undefined;
2243
+ }>>;
2218
2244
  }, "strict", z.ZodTypeAny, {
2219
2245
  amplitude?: {
2220
2246
  apiKey: string;
@@ -2270,6 +2296,9 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
2270
2296
  segment?: {
2271
2297
  key: string;
2272
2298
  } | undefined;
2299
+ telemetry?: {
2300
+ enabled?: boolean | undefined;
2301
+ } | undefined;
2273
2302
  }, {
2274
2303
  amplitude?: {
2275
2304
  apiKey: string;
@@ -2325,6 +2354,9 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
2325
2354
  segment?: {
2326
2355
  key: string;
2327
2356
  } | undefined;
2357
+ telemetry?: {
2358
+ enabled?: boolean | undefined;
2359
+ } | undefined;
2328
2360
  }>>;
2329
2361
  banner: z.ZodOptional<z.ZodObject<{
2330
2362
  content: z.ZodString;
@@ -2599,6 +2631,9 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
2599
2631
  segment?: {
2600
2632
  key: string;
2601
2633
  } | undefined;
2634
+ telemetry?: {
2635
+ enabled?: boolean | undefined;
2636
+ } | undefined;
2602
2637
  } | undefined;
2603
2638
  banner?: {
2604
2639
  content: string;
@@ -2866,6 +2901,9 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
2866
2901
  segment?: {
2867
2902
  key: string;
2868
2903
  } | undefined;
2904
+ telemetry?: {
2905
+ enabled?: boolean | undefined;
2906
+ } | undefined;
2869
2907
  } | undefined;
2870
2908
  banner?: {
2871
2909
  content: string;
@@ -3650,6 +3688,13 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
3650
3688
  }, {
3651
3689
  key: string;
3652
3690
  }>>;
3691
+ telemetry: z.ZodOptional<z.ZodObject<{
3692
+ enabled: z.ZodOptional<z.ZodBoolean>;
3693
+ }, "strip", z.ZodTypeAny, {
3694
+ enabled?: boolean | undefined;
3695
+ }, {
3696
+ enabled?: boolean | undefined;
3697
+ }>>;
3653
3698
  }, "strict", z.ZodTypeAny, {
3654
3699
  amplitude?: {
3655
3700
  apiKey: string;
@@ -3705,6 +3750,9 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
3705
3750
  segment?: {
3706
3751
  key: string;
3707
3752
  } | undefined;
3753
+ telemetry?: {
3754
+ enabled?: boolean | undefined;
3755
+ } | undefined;
3708
3756
  }, {
3709
3757
  amplitude?: {
3710
3758
  apiKey: string;
@@ -3760,6 +3808,9 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
3760
3808
  segment?: {
3761
3809
  key: string;
3762
3810
  } | undefined;
3811
+ telemetry?: {
3812
+ enabled?: boolean | undefined;
3813
+ } | undefined;
3763
3814
  }>>;
3764
3815
  banner: z.ZodOptional<z.ZodObject<{
3765
3816
  content: z.ZodString;
@@ -4034,6 +4085,9 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
4034
4085
  segment?: {
4035
4086
  key: string;
4036
4087
  } | undefined;
4088
+ telemetry?: {
4089
+ enabled?: boolean | undefined;
4090
+ } | undefined;
4037
4091
  } | undefined;
4038
4092
  banner?: {
4039
4093
  content: string;
@@ -4301,6 +4355,9 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
4301
4355
  segment?: {
4302
4356
  key: string;
4303
4357
  } | undefined;
4358
+ telemetry?: {
4359
+ enabled?: boolean | undefined;
4360
+ } | undefined;
4304
4361
  } | undefined;
4305
4362
  banner?: {
4306
4363
  content: string;
@@ -5085,6 +5142,13 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
5085
5142
  }, {
5086
5143
  key: string;
5087
5144
  }>>;
5145
+ telemetry: z.ZodOptional<z.ZodObject<{
5146
+ enabled: z.ZodOptional<z.ZodBoolean>;
5147
+ }, "strip", z.ZodTypeAny, {
5148
+ enabled?: boolean | undefined;
5149
+ }, {
5150
+ enabled?: boolean | undefined;
5151
+ }>>;
5088
5152
  }, "strict", z.ZodTypeAny, {
5089
5153
  amplitude?: {
5090
5154
  apiKey: string;
@@ -5140,6 +5204,9 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
5140
5204
  segment?: {
5141
5205
  key: string;
5142
5206
  } | undefined;
5207
+ telemetry?: {
5208
+ enabled?: boolean | undefined;
5209
+ } | undefined;
5143
5210
  }, {
5144
5211
  amplitude?: {
5145
5212
  apiKey: string;
@@ -5195,6 +5262,9 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
5195
5262
  segment?: {
5196
5263
  key: string;
5197
5264
  } | undefined;
5265
+ telemetry?: {
5266
+ enabled?: boolean | undefined;
5267
+ } | undefined;
5198
5268
  }>>;
5199
5269
  banner: z.ZodOptional<z.ZodObject<{
5200
5270
  content: z.ZodString;
@@ -5469,6 +5539,9 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
5469
5539
  segment?: {
5470
5540
  key: string;
5471
5541
  } | undefined;
5542
+ telemetry?: {
5543
+ enabled?: boolean | undefined;
5544
+ } | undefined;
5472
5545
  } | undefined;
5473
5546
  banner?: {
5474
5547
  content: string;
@@ -5736,6 +5809,9 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
5736
5809
  segment?: {
5737
5810
  key: string;
5738
5811
  } | undefined;
5812
+ telemetry?: {
5813
+ enabled?: boolean | undefined;
5814
+ } | undefined;
5739
5815
  } | undefined;
5740
5816
  banner?: {
5741
5817
  content: string;
@@ -6520,6 +6596,13 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
6520
6596
  }, {
6521
6597
  key: string;
6522
6598
  }>>;
6599
+ telemetry: z.ZodOptional<z.ZodObject<{
6600
+ enabled: z.ZodOptional<z.ZodBoolean>;
6601
+ }, "strip", z.ZodTypeAny, {
6602
+ enabled?: boolean | undefined;
6603
+ }, {
6604
+ enabled?: boolean | undefined;
6605
+ }>>;
6523
6606
  }, "strict", z.ZodTypeAny, {
6524
6607
  amplitude?: {
6525
6608
  apiKey: string;
@@ -6575,6 +6658,9 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
6575
6658
  segment?: {
6576
6659
  key: string;
6577
6660
  } | undefined;
6661
+ telemetry?: {
6662
+ enabled?: boolean | undefined;
6663
+ } | undefined;
6578
6664
  }, {
6579
6665
  amplitude?: {
6580
6666
  apiKey: string;
@@ -6630,6 +6716,9 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
6630
6716
  segment?: {
6631
6717
  key: string;
6632
6718
  } | undefined;
6719
+ telemetry?: {
6720
+ enabled?: boolean | undefined;
6721
+ } | undefined;
6633
6722
  }>>;
6634
6723
  banner: z.ZodOptional<z.ZodObject<{
6635
6724
  content: z.ZodString;
@@ -6904,6 +6993,9 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
6904
6993
  segment?: {
6905
6994
  key: string;
6906
6995
  } | undefined;
6996
+ telemetry?: {
6997
+ enabled?: boolean | undefined;
6998
+ } | undefined;
6907
6999
  } | undefined;
6908
7000
  banner?: {
6909
7001
  content: string;
@@ -7171,6 +7263,9 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
7171
7263
  segment?: {
7172
7264
  key: string;
7173
7265
  } | undefined;
7266
+ telemetry?: {
7267
+ enabled?: boolean | undefined;
7268
+ } | undefined;
7174
7269
  } | undefined;
7175
7270
  banner?: {
7176
7271
  content: string;
@@ -128,6 +128,13 @@ export declare const integrationsSchema: z.ZodObject<{
128
128
  }, {
129
129
  key: string;
130
130
  }>>;
131
+ telemetry: z.ZodOptional<z.ZodObject<{
132
+ enabled: z.ZodOptional<z.ZodBoolean>;
133
+ }, "strip", z.ZodTypeAny, {
134
+ enabled?: boolean | undefined;
135
+ }, {
136
+ enabled?: boolean | undefined;
137
+ }>>;
131
138
  }, "strict", z.ZodTypeAny, {
132
139
  amplitude?: {
133
140
  apiKey: string;
@@ -183,6 +190,9 @@ export declare const integrationsSchema: z.ZodObject<{
183
190
  segment?: {
184
191
  key: string;
185
192
  } | undefined;
193
+ telemetry?: {
194
+ enabled?: boolean | undefined;
195
+ } | undefined;
186
196
  }, {
187
197
  amplitude?: {
188
198
  apiKey: string;
@@ -238,4 +248,7 @@ export declare const integrationsSchema: z.ZodObject<{
238
248
  segment?: {
239
249
  key: string;
240
250
  } | undefined;
251
+ telemetry?: {
252
+ enabled?: boolean | undefined;
253
+ } | undefined;
241
254
  }>;
@@ -61,6 +61,9 @@ const osanoSchema = z.object({
61
61
  .startsWith('https://cmp.osano.com/', 'A valid Osano script source must start with https://cmp.osano.com/')
62
62
  .endsWith('/osano.js', 'A valid Osano script source must end with /osano.js'),
63
63
  });
64
+ const telemetrySchema = z.object({
65
+ enabled: z.boolean().optional(),
66
+ });
64
67
  export const integrationsSchema = z
65
68
  .object({
66
69
  amplitude: amplitudeConfigSchema.optional(),
@@ -80,6 +83,7 @@ export const integrationsSchema = z
80
83
  posthog: postHogConfigSchema.optional(),
81
84
  plausible: plausibleConfigSchema.optional(),
82
85
  segment: segmentConfigSchema.optional(),
86
+ telemetry: telemetrySchema.optional(),
83
87
  })
84
88
  .strict()
85
89
  .describe('Configurations for official integrations');
@@ -0,0 +1,2 @@
1
+ export declare const locales: readonly ["en", "cn", "zh", "zh-Hans", "zh-Hant", "es", "fr", "ja", "jp", "pt", "pt-BR", "de", "ko", "it", "ru", "id", "ar", "tr"];
2
+ export type LocaleType = (typeof locales)[number];
@@ -0,0 +1,40 @@
1
+ /*
2
+ Currently supported languages, should be ISO 639:
3
+ English - en
4
+ Chinese - cn, ISO 639 = zh
5
+ Simplified Chinese - zh-Hans
6
+ Traditional Chinese - zh-Hant
7
+ Spanish - es
8
+ French - fr
9
+ Japanese - jp, ISO 639 = ja
10
+ Portuguese - pt
11
+ Brazilian Portugese - pt-BR
12
+ German - de
13
+ Korean - ko
14
+ Italian - it
15
+ Russian - ru
16
+ Indonesian - id
17
+ Arabic - ar
18
+ Turkish - tr
19
+
20
+ */
21
+ export const locales = [
22
+ 'en',
23
+ 'cn',
24
+ 'zh',
25
+ 'zh-Hans',
26
+ 'zh-Hant',
27
+ 'es',
28
+ 'fr',
29
+ 'ja',
30
+ 'jp',
31
+ 'pt',
32
+ 'pt-BR',
33
+ 'de',
34
+ 'ko',
35
+ 'it',
36
+ 'ru',
37
+ 'id',
38
+ 'ar',
39
+ 'tr',
40
+ ];
@@ -1,15 +1,15 @@
1
1
  import { z } from 'zod';
2
2
  import { LanguageNavigation } from './divisionNav.js';
3
3
  export declare const baseLanguageSchema: z.ZodObject<{
4
- language: z.ZodEnum<["en", "cn", "es", "fr", "jp", "pt", "pt-BR", "de", "ko"]>;
4
+ language: z.ZodEnum<["en", "cn", "zh", "zh-Hans", "zh-Hant", "es", "fr", "ja", "jp", "pt", "pt-BR", "de", "ko", "it", "ru", "id", "ar", "tr"]>;
5
5
  default: z.ZodOptional<z.ZodBoolean>;
6
6
  hidden: z.ZodOptional<z.ZodBoolean>;
7
7
  }, "strip", z.ZodTypeAny, {
8
- language: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de" | "ko";
8
+ language: "id" | "en" | "cn" | "zh" | "zh-Hans" | "zh-Hant" | "es" | "fr" | "ja" | "jp" | "pt" | "pt-BR" | "de" | "ko" | "it" | "ru" | "ar" | "tr";
9
9
  default?: boolean | undefined;
10
10
  hidden?: boolean | undefined;
11
11
  }, {
12
- language: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de" | "ko";
12
+ language: "id" | "en" | "cn" | "zh" | "zh-Hans" | "zh-Hant" | "es" | "fr" | "ja" | "jp" | "pt" | "pt-BR" | "de" | "ko" | "it" | "ru" | "ar" | "tr";
13
13
  default?: boolean | undefined;
14
14
  hidden?: boolean | undefined;
15
15
  }>;
@@ -17,16 +17,16 @@ export type BaseLanguageSchema = z.infer<typeof baseLanguageSchema>;
17
17
  export declare const nonRecursiveLanguageSchema: z.ZodObject<{
18
18
  default: z.ZodOptional<z.ZodBoolean>;
19
19
  hidden: z.ZodOptional<z.ZodBoolean>;
20
- language: z.ZodEnum<["en", "cn", "es", "fr", "jp", "pt", "pt-BR", "de", "ko"]>;
20
+ language: z.ZodEnum<["en", "cn", "zh", "zh-Hans", "zh-Hant", "es", "fr", "ja", "jp", "pt", "pt-BR", "de", "ko", "it", "ru", "id", "ar", "tr"]>;
21
21
  href: z.ZodString;
22
22
  }, "strip", z.ZodTypeAny, {
23
23
  href: string;
24
- language: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de" | "ko";
24
+ language: "id" | "en" | "cn" | "zh" | "zh-Hans" | "zh-Hant" | "es" | "fr" | "ja" | "jp" | "pt" | "pt-BR" | "de" | "ko" | "it" | "ru" | "ar" | "tr";
25
25
  default?: boolean | undefined;
26
26
  hidden?: boolean | undefined;
27
27
  }, {
28
28
  href: string;
29
- language: "en" | "cn" | "es" | "fr" | "jp" | "pt" | "pt-BR" | "de" | "ko";
29
+ language: "id" | "en" | "cn" | "zh" | "zh-Hans" | "zh-Hant" | "es" | "fr" | "ja" | "jp" | "pt" | "pt-BR" | "de" | "ko" | "it" | "ru" | "ar" | "tr";
30
30
  default?: boolean | undefined;
31
31
  hidden?: boolean | undefined;
32
32
  }>;
@@ -1,4 +1,5 @@
1
1
  import { z } from 'zod';
2
+ import { locales } from '../localization.js';
2
3
  import { hiddenSchema } from '../reusable/hidden.js';
3
4
  import { hrefSchema } from '../reusable/href.js';
4
5
  import { openApiSchema } from '../reusable/openapi.js';
@@ -10,9 +11,7 @@ import { decoratedPagesSchema, pagesSchema } from './pages.js';
10
11
  import { decoratedTabsSchema, tabsSchema } from './tabs.js';
11
12
  import { decoratedVersionsSchema, versionsSchema } from './version.js';
12
13
  export const baseLanguageSchema = z.object({
13
- language: z
14
- .enum(['en', 'cn', 'es', 'fr', 'jp', 'pt', 'pt-BR', 'de', 'ko'])
15
- .describe('The name of the language in the ISO 639-1 format'),
14
+ language: z.enum(locales).describe('The name of the language in the ISO 639-1 format'),
16
15
  default: z.boolean().optional().describe('Whether this language is the default language'),
17
16
  hidden: hiddenSchema.optional(),
18
17
  });
@@ -778,6 +778,13 @@ export declare const lindenConfigSchema: z.ZodObject<{
778
778
  }, {
779
779
  key: string;
780
780
  }>>;
781
+ telemetry: z.ZodOptional<z.ZodObject<{
782
+ enabled: z.ZodOptional<z.ZodBoolean>;
783
+ }, "strip", z.ZodTypeAny, {
784
+ enabled?: boolean | undefined;
785
+ }, {
786
+ enabled?: boolean | undefined;
787
+ }>>;
781
788
  }, "strict", z.ZodTypeAny, {
782
789
  amplitude?: {
783
790
  apiKey: string;
@@ -833,6 +840,9 @@ export declare const lindenConfigSchema: z.ZodObject<{
833
840
  segment?: {
834
841
  key: string;
835
842
  } | undefined;
843
+ telemetry?: {
844
+ enabled?: boolean | undefined;
845
+ } | undefined;
836
846
  }, {
837
847
  amplitude?: {
838
848
  apiKey: string;
@@ -888,6 +898,9 @@ export declare const lindenConfigSchema: z.ZodObject<{
888
898
  segment?: {
889
899
  key: string;
890
900
  } | undefined;
901
+ telemetry?: {
902
+ enabled?: boolean | undefined;
903
+ } | undefined;
891
904
  }>>;
892
905
  banner: z.ZodOptional<z.ZodObject<{
893
906
  content: z.ZodString;
@@ -1162,6 +1175,9 @@ export declare const lindenConfigSchema: z.ZodObject<{
1162
1175
  segment?: {
1163
1176
  key: string;
1164
1177
  } | undefined;
1178
+ telemetry?: {
1179
+ enabled?: boolean | undefined;
1180
+ } | undefined;
1165
1181
  } | undefined;
1166
1182
  banner?: {
1167
1183
  content: string;
@@ -1429,6 +1445,9 @@ export declare const lindenConfigSchema: z.ZodObject<{
1429
1445
  segment?: {
1430
1446
  key: string;
1431
1447
  } | undefined;
1448
+ telemetry?: {
1449
+ enabled?: boolean | undefined;
1450
+ } | undefined;
1432
1451
  } | undefined;
1433
1452
  banner?: {
1434
1453
  content: string;
@@ -778,6 +778,13 @@ export declare const mapleConfigSchema: z.ZodObject<{
778
778
  }, {
779
779
  key: string;
780
780
  }>>;
781
+ telemetry: z.ZodOptional<z.ZodObject<{
782
+ enabled: z.ZodOptional<z.ZodBoolean>;
783
+ }, "strip", z.ZodTypeAny, {
784
+ enabled?: boolean | undefined;
785
+ }, {
786
+ enabled?: boolean | undefined;
787
+ }>>;
781
788
  }, "strict", z.ZodTypeAny, {
782
789
  amplitude?: {
783
790
  apiKey: string;
@@ -833,6 +840,9 @@ export declare const mapleConfigSchema: z.ZodObject<{
833
840
  segment?: {
834
841
  key: string;
835
842
  } | undefined;
843
+ telemetry?: {
844
+ enabled?: boolean | undefined;
845
+ } | undefined;
836
846
  }, {
837
847
  amplitude?: {
838
848
  apiKey: string;
@@ -888,6 +898,9 @@ export declare const mapleConfigSchema: z.ZodObject<{
888
898
  segment?: {
889
899
  key: string;
890
900
  } | undefined;
901
+ telemetry?: {
902
+ enabled?: boolean | undefined;
903
+ } | undefined;
891
904
  }>>;
892
905
  banner: z.ZodOptional<z.ZodObject<{
893
906
  content: z.ZodString;
@@ -1162,6 +1175,9 @@ export declare const mapleConfigSchema: z.ZodObject<{
1162
1175
  segment?: {
1163
1176
  key: string;
1164
1177
  } | undefined;
1178
+ telemetry?: {
1179
+ enabled?: boolean | undefined;
1180
+ } | undefined;
1165
1181
  } | undefined;
1166
1182
  banner?: {
1167
1183
  content: string;
@@ -1429,6 +1445,9 @@ export declare const mapleConfigSchema: z.ZodObject<{
1429
1445
  segment?: {
1430
1446
  key: string;
1431
1447
  } | undefined;
1448
+ telemetry?: {
1449
+ enabled?: boolean | undefined;
1450
+ } | undefined;
1432
1451
  } | undefined;
1433
1452
  banner?: {
1434
1453
  content: string;
@@ -778,6 +778,13 @@ export declare const mintConfigSchema: z.ZodObject<{
778
778
  }, {
779
779
  key: string;
780
780
  }>>;
781
+ telemetry: z.ZodOptional<z.ZodObject<{
782
+ enabled: z.ZodOptional<z.ZodBoolean>;
783
+ }, "strip", z.ZodTypeAny, {
784
+ enabled?: boolean | undefined;
785
+ }, {
786
+ enabled?: boolean | undefined;
787
+ }>>;
781
788
  }, "strict", z.ZodTypeAny, {
782
789
  amplitude?: {
783
790
  apiKey: string;
@@ -833,6 +840,9 @@ export declare const mintConfigSchema: z.ZodObject<{
833
840
  segment?: {
834
841
  key: string;
835
842
  } | undefined;
843
+ telemetry?: {
844
+ enabled?: boolean | undefined;
845
+ } | undefined;
836
846
  }, {
837
847
  amplitude?: {
838
848
  apiKey: string;
@@ -888,6 +898,9 @@ export declare const mintConfigSchema: z.ZodObject<{
888
898
  segment?: {
889
899
  key: string;
890
900
  } | undefined;
901
+ telemetry?: {
902
+ enabled?: boolean | undefined;
903
+ } | undefined;
891
904
  }>>;
892
905
  banner: z.ZodOptional<z.ZodObject<{
893
906
  content: z.ZodString;
@@ -1162,6 +1175,9 @@ export declare const mintConfigSchema: z.ZodObject<{
1162
1175
  segment?: {
1163
1176
  key: string;
1164
1177
  } | undefined;
1178
+ telemetry?: {
1179
+ enabled?: boolean | undefined;
1180
+ } | undefined;
1165
1181
  } | undefined;
1166
1182
  banner?: {
1167
1183
  content: string;
@@ -1429,6 +1445,9 @@ export declare const mintConfigSchema: z.ZodObject<{
1429
1445
  segment?: {
1430
1446
  key: string;
1431
1447
  } | undefined;
1448
+ telemetry?: {
1449
+ enabled?: boolean | undefined;
1450
+ } | undefined;
1432
1451
  } | undefined;
1433
1452
  banner?: {
1434
1453
  content: string;