@lingo.dev/_spec 0.40.3 → 0.41.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.
@@ -2,7 +2,10 @@
2
2
  "type": "object",
3
3
  "properties": {
4
4
  "version": {
5
- "type": "number",
5
+ "type": [
6
+ "number",
7
+ "string"
8
+ ],
6
9
  "default": 0,
7
10
  "description": "The version number of the schema."
8
11
  },
@@ -136,6 +139,7 @@
136
139
  "json5",
137
140
  "jsonc",
138
141
  "markdown",
142
+ "markdoc",
139
143
  "mdx",
140
144
  "xcode-strings",
141
145
  "xcode-stringsdict",
@@ -190,6 +194,19 @@
190
194
  "baseUrl": {
191
195
  "type": "string",
192
196
  "description": "Custom base URL for the provider API (optional)."
197
+ },
198
+ "settings": {
199
+ "type": "object",
200
+ "properties": {
201
+ "temperature": {
202
+ "type": "number",
203
+ "minimum": 0,
204
+ "maximum": 2,
205
+ "description": "Controls randomness in model outputs (0=deterministic, 2=very random). Some models like GPT-5 require temperature=1."
206
+ }
207
+ },
208
+ "additionalProperties": false,
209
+ "description": "Model-specific settings for translation requests."
193
210
  }
194
211
  },
195
212
  "required": [
package/build/index.cjs CHANGED
@@ -272,7 +272,13 @@ var localeMap = {
272
272
  // Kinyarwanda (Rwanda)
273
273
  rw: ["rw-RW"],
274
274
  // Georgian (Georgia)
275
- ka: ["ka-GE"]
275
+ ka: ["ka-GE"],
276
+ // Malayalam (India)
277
+ ml: ["ml-IN"],
278
+ // Armenian (Armenia)
279
+ hy: ["hy-AM"],
280
+ // Macedonian (Macedonia)
281
+ mk: ["mk-MK"]
276
282
  };
277
283
  var localeCodesShort = Object.keys(localeMap);
278
284
  var localeCodesFull = Object.values(
@@ -346,6 +352,7 @@ var bucketTypes = [
346
352
  "json5",
347
353
  "jsonc",
348
354
  "markdown",
355
+ "markdoc",
349
356
  "mdx",
350
357
  "xcode-strings",
351
358
  "xcode-stringsdict",
@@ -417,7 +424,7 @@ ${localeErrors.join("\n")}`);
417
424
  });
418
425
  };
419
426
  var configV0Schema = _zod2.default.object({
420
- version: _zod2.default.number().default(0).describe("The version number of the schema.")
427
+ version: _zod2.default.union([_zod2.default.number(), _zod2.default.string()]).default(0).describe("The version number of the schema.")
421
428
  });
422
429
  var configV0Definition = createConfigDefinition({
423
430
  schema: configV0Schema,
@@ -672,7 +679,44 @@ var configV1_9Definition = extendConfigDefinition(
672
679
  })
673
680
  }
674
681
  );
675
- var LATEST_CONFIG_DEFINITION = configV1_9Definition;
682
+ var modelSettingsSchema = _zod2.default.object({
683
+ temperature: _zod2.default.number().min(0).max(2).optional().describe(
684
+ "Controls randomness in model outputs (0=deterministic, 2=very random). Some models like GPT-5 require temperature=1."
685
+ )
686
+ }).optional().describe("Model-specific settings for translation requests.");
687
+ var providerSchemaV1_10 = _zod2.default.object({
688
+ id: _zod2.default.enum([
689
+ "openai",
690
+ "anthropic",
691
+ "google",
692
+ "ollama",
693
+ "openrouter",
694
+ "mistral"
695
+ ]).describe("Identifier of the translation provider service."),
696
+ model: _zod2.default.string().describe("Model name to use for translations."),
697
+ prompt: _zod2.default.string().describe(
698
+ "Prompt template used when requesting translations."
699
+ ),
700
+ baseUrl: _zod2.default.string().optional().describe("Custom base URL for the provider API (optional)."),
701
+ settings: modelSettingsSchema
702
+ }).describe("Configuration for the machine-translation provider.");
703
+ var configV1_10Definition = extendConfigDefinition(
704
+ configV1_9Definition,
705
+ {
706
+ createSchema: (baseSchema) => baseSchema.extend({
707
+ provider: providerSchemaV1_10.optional()
708
+ }),
709
+ createDefaultValue: (baseDefaultValue) => ({
710
+ ...baseDefaultValue,
711
+ version: "1.10"
712
+ }),
713
+ createUpgrader: (oldConfig) => ({
714
+ ...oldConfig,
715
+ version: "1.10"
716
+ })
717
+ }
718
+ );
719
+ var LATEST_CONFIG_DEFINITION = configV1_10Definition;
676
720
  function parseI18nConfig(rawConfig) {
677
721
  try {
678
722
  const result = LATEST_CONFIG_DEFINITION.parse(rawConfig);
@@ -715,4 +759,5 @@ var defaultConfig = LATEST_CONFIG_DEFINITION.defaultValue;
715
759
 
716
760
 
717
761
 
718
- exports.LATEST_CONFIG_DEFINITION = LATEST_CONFIG_DEFINITION; exports.bucketItemSchema = bucketItemSchema; exports.bucketTypeSchema = bucketTypeSchema; exports.bucketTypes = bucketTypes; exports.bucketValueSchemaV1_3 = bucketValueSchemaV1_3; exports.bucketValueSchemaV1_6 = bucketValueSchemaV1_6; exports.bucketValueSchemaV1_7 = bucketValueSchemaV1_7; exports.bucketValueSchemaV1_8 = bucketValueSchemaV1_8; exports.configV0Definition = configV0Definition; exports.configV1Definition = configV1Definition; exports.configV1_1Definition = configV1_1Definition; exports.configV1_2Definition = configV1_2Definition; exports.configV1_3Definition = configV1_3Definition; exports.configV1_4Definition = configV1_4Definition; exports.configV1_5Definition = configV1_5Definition; exports.configV1_6Definition = configV1_6Definition; exports.configV1_7Definition = configV1_7Definition; exports.configV1_8Definition = configV1_8Definition; exports.configV1_9Definition = configV1_9Definition; exports.defaultConfig = defaultConfig; exports.getLocaleCodeDelimiter = getLocaleCodeDelimiter; exports.localeCodeSchema = localeCodeSchema; exports.localeCodes = localeCodes; exports.localeCodesFull = localeCodesFull; exports.localeCodesFullExplicitRegion = localeCodesFullExplicitRegion; exports.localeCodesFullUnderscore = localeCodesFullUnderscore; exports.localeCodesShort = localeCodesShort; exports.localeSchema = localeSchema; exports.normalizeLocale = normalizeLocale; exports.parseI18nConfig = parseI18nConfig; exports.resolveLocaleCode = resolveLocaleCode; exports.resolveOverriddenLocale = resolveOverriddenLocale;
762
+
763
+ exports.LATEST_CONFIG_DEFINITION = LATEST_CONFIG_DEFINITION; exports.bucketItemSchema = bucketItemSchema; exports.bucketTypeSchema = bucketTypeSchema; exports.bucketTypes = bucketTypes; exports.bucketValueSchemaV1_3 = bucketValueSchemaV1_3; exports.bucketValueSchemaV1_6 = bucketValueSchemaV1_6; exports.bucketValueSchemaV1_7 = bucketValueSchemaV1_7; exports.bucketValueSchemaV1_8 = bucketValueSchemaV1_8; exports.configV0Definition = configV0Definition; exports.configV1Definition = configV1Definition; exports.configV1_10Definition = configV1_10Definition; exports.configV1_1Definition = configV1_1Definition; exports.configV1_2Definition = configV1_2Definition; exports.configV1_3Definition = configV1_3Definition; exports.configV1_4Definition = configV1_4Definition; exports.configV1_5Definition = configV1_5Definition; exports.configV1_6Definition = configV1_6Definition; exports.configV1_7Definition = configV1_7Definition; exports.configV1_8Definition = configV1_8Definition; exports.configV1_9Definition = configV1_9Definition; exports.defaultConfig = defaultConfig; exports.getLocaleCodeDelimiter = getLocaleCodeDelimiter; exports.localeCodeSchema = localeCodeSchema; exports.localeCodes = localeCodes; exports.localeCodesFull = localeCodesFull; exports.localeCodesFullExplicitRegion = localeCodesFullExplicitRegion; exports.localeCodesFullUnderscore = localeCodesFullUnderscore; exports.localeCodesShort = localeCodesShort; exports.localeSchema = localeSchema; exports.normalizeLocale = normalizeLocale; exports.parseI18nConfig = parseI18nConfig; exports.resolveLocaleCode = resolveLocaleCode; exports.resolveOverriddenLocale = resolveOverriddenLocale;
package/build/index.d.cts CHANGED
@@ -69,6 +69,9 @@ declare const localeMap: {
69
69
  readonly te: readonly ["te-IN"];
70
70
  readonly rw: readonly ["rw-RW"];
71
71
  readonly ka: readonly ["ka-GE"];
72
+ readonly ml: readonly ["ml-IN"];
73
+ readonly hy: readonly ["hy-AM"];
74
+ readonly mk: readonly ["mk-MK"];
72
75
  };
73
76
  type LocaleCodeShort = keyof typeof localeMap;
74
77
  type LocaleCodeFull = (typeof localeMap)[LocaleCodeShort][number];
@@ -116,8 +119,8 @@ declare const resolveOverriddenLocale: (locale: string, delimiter?: LocaleDelimi
116
119
  */
117
120
  declare function normalizeLocale(locale: string): string;
118
121
 
119
- declare const bucketTypes: readonly ["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"];
120
- declare const bucketTypeSchema: Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>;
122
+ declare const bucketTypes: readonly ["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"];
123
+ declare const bucketTypeSchema: Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>;
121
124
 
122
125
  declare const localeSchema: Z.ZodObject<{
123
126
  source: Z.ZodEffects<Z.ZodString, string, string>;
@@ -135,10 +138,10 @@ type ConfigDefinition<T extends Z.ZodRawShape, _P extends Z.ZodRawShape = any> =
135
138
  parse: (rawConfig: unknown) => Z.infer<Z.ZodObject<T>>;
136
139
  };
137
140
  declare const configV0Definition: ConfigDefinition<{
138
- version: Z.ZodDefault<Z.ZodNumber>;
141
+ version: Z.ZodDefault<Z.ZodUnion<[Z.ZodNumber, Z.ZodString]>>;
139
142
  }, any>;
140
143
  declare const configV1Definition: ConfigDefinition<{
141
- version: Z.ZodDefault<Z.ZodNumber>;
144
+ version: Z.ZodDefault<Z.ZodUnion<[Z.ZodNumber, Z.ZodString]>>;
142
145
  } & {
143
146
  locale: Z.ZodObject<{
144
147
  source: Z.ZodEffects<Z.ZodString, string, string>;
@@ -150,10 +153,10 @@ declare const configV1Definition: ConfigDefinition<{
150
153
  source: string;
151
154
  targets: string[];
152
155
  }>;
153
- buckets: Z.ZodOptional<Z.ZodDefault<Z.ZodRecord<Z.ZodString, Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>>>>;
156
+ buckets: Z.ZodOptional<Z.ZodDefault<Z.ZodRecord<Z.ZodString, Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>>>>;
154
157
  }, any>;
155
158
  declare const configV1_1Definition: ConfigDefinition<{
156
- version: Z.ZodDefault<Z.ZodNumber>;
159
+ version: Z.ZodDefault<Z.ZodUnion<[Z.ZodNumber, Z.ZodString]>>;
157
160
  locale: Z.ZodObject<{
158
161
  source: Z.ZodEffects<Z.ZodString, string, string>;
159
162
  targets: Z.ZodArray<Z.ZodEffects<Z.ZodString, string, string>, "many">;
@@ -165,7 +168,7 @@ declare const configV1_1Definition: ConfigDefinition<{
165
168
  targets: string[];
166
169
  }>;
167
170
  } & {
168
- buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
171
+ buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
169
172
  include: Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>;
170
173
  exclude: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>>;
171
174
  }, "strip", Z.ZodTypeAny, {
@@ -177,8 +180,8 @@ declare const configV1_1Definition: ConfigDefinition<{
177
180
  }>>>;
178
181
  }, any>;
179
182
  declare const configV1_2Definition: ConfigDefinition<{
180
- version: Z.ZodDefault<Z.ZodNumber>;
181
- buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
183
+ version: Z.ZodDefault<Z.ZodUnion<[Z.ZodNumber, Z.ZodString]>>;
184
+ buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
182
185
  include: Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>;
183
186
  exclude: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>>;
184
187
  }, "strip", Z.ZodTypeAny, {
@@ -259,7 +262,7 @@ declare const bucketValueSchemaV1_3: Z.ZodObject<{
259
262
  injectLocale?: string[] | undefined;
260
263
  }>;
261
264
  declare const configV1_3Definition: ConfigDefinition<{
262
- version: Z.ZodDefault<Z.ZodNumber>;
265
+ version: Z.ZodDefault<Z.ZodUnion<[Z.ZodNumber, Z.ZodString]>>;
263
266
  locale: Z.ZodObject<{
264
267
  source: Z.ZodEffects<Z.ZodString, string, string>;
265
268
  targets: Z.ZodArray<Z.ZodEffects<Z.ZodString, string, string>, "many">;
@@ -275,7 +278,7 @@ declare const configV1_3Definition: ConfigDefinition<{
275
278
  extraSource?: string | undefined;
276
279
  }>;
277
280
  } & {
278
- buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
281
+ buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
279
282
  include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
280
283
  path: Z.ZodString;
281
284
  delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
@@ -320,7 +323,7 @@ declare const configV1_3Definition: ConfigDefinition<{
320
323
  }>>>;
321
324
  }, any>;
322
325
  declare const configV1_4Definition: ConfigDefinition<{
323
- version: Z.ZodDefault<Z.ZodNumber>;
326
+ version: Z.ZodDefault<Z.ZodUnion<[Z.ZodNumber, Z.ZodString]>>;
324
327
  locale: Z.ZodObject<{
325
328
  source: Z.ZodEffects<Z.ZodString, string, string>;
326
329
  targets: Z.ZodArray<Z.ZodEffects<Z.ZodString, string, string>, "many">;
@@ -336,7 +339,7 @@ declare const configV1_4Definition: ConfigDefinition<{
336
339
  extraSource?: string | undefined;
337
340
  }>;
338
341
  } & {
339
- buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
342
+ buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
340
343
  include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
341
344
  path: Z.ZodString;
342
345
  delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
@@ -383,7 +386,7 @@ declare const configV1_4Definition: ConfigDefinition<{
383
386
  $schema: Z.ZodDefault<Z.ZodString>;
384
387
  }, any>;
385
388
  declare const configV1_5Definition: ConfigDefinition<{
386
- version: Z.ZodDefault<Z.ZodNumber>;
389
+ version: Z.ZodDefault<Z.ZodUnion<[Z.ZodNumber, Z.ZodString]>>;
387
390
  locale: Z.ZodObject<{
388
391
  source: Z.ZodEffects<Z.ZodString, string, string>;
389
392
  targets: Z.ZodArray<Z.ZodEffects<Z.ZodString, string, string>, "many">;
@@ -399,7 +402,7 @@ declare const configV1_5Definition: ConfigDefinition<{
399
402
  extraSource?: string | undefined;
400
403
  }>;
401
404
  } & {
402
- buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
405
+ buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
403
406
  include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
404
407
  path: Z.ZodString;
405
408
  delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
@@ -510,7 +513,7 @@ declare const bucketValueSchemaV1_6: Z.ZodObject<{
510
513
  lockedKeys?: string[] | undefined;
511
514
  }>;
512
515
  declare const configV1_6Definition: ConfigDefinition<{
513
- version: Z.ZodDefault<Z.ZodNumber>;
516
+ version: Z.ZodDefault<Z.ZodUnion<[Z.ZodNumber, Z.ZodString]>>;
514
517
  locale: Z.ZodObject<{
515
518
  source: Z.ZodEffects<Z.ZodString, string, string>;
516
519
  targets: Z.ZodArray<Z.ZodEffects<Z.ZodString, string, string>, "many">;
@@ -543,7 +546,7 @@ declare const configV1_6Definition: ConfigDefinition<{
543
546
  baseUrl?: string | undefined;
544
547
  }>>;
545
548
  } & {
546
- buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
549
+ buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
547
550
  include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
548
551
  path: Z.ZodString;
549
552
  delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
@@ -643,7 +646,7 @@ declare const bucketValueSchemaV1_7: Z.ZodObject<{
643
646
  lockedPatterns?: string[] | undefined;
644
647
  }>;
645
648
  declare const configV1_7Definition: ConfigDefinition<{
646
- version: Z.ZodDefault<Z.ZodNumber>;
649
+ version: Z.ZodDefault<Z.ZodUnion<[Z.ZodNumber, Z.ZodString]>>;
647
650
  locale: Z.ZodObject<{
648
651
  source: Z.ZodEffects<Z.ZodString, string, string>;
649
652
  targets: Z.ZodArray<Z.ZodEffects<Z.ZodString, string, string>, "many">;
@@ -676,7 +679,7 @@ declare const configV1_7Definition: ConfigDefinition<{
676
679
  baseUrl?: string | undefined;
677
680
  }>>;
678
681
  } & {
679
- buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
682
+ buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
680
683
  include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
681
684
  path: Z.ZodString;
682
685
  delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
@@ -784,7 +787,7 @@ declare const bucketValueSchemaV1_8: Z.ZodObject<{
784
787
  ignoredKeys?: string[] | undefined;
785
788
  }>;
786
789
  declare const configV1_8Definition: ConfigDefinition<{
787
- version: Z.ZodDefault<Z.ZodNumber>;
790
+ version: Z.ZodDefault<Z.ZodUnion<[Z.ZodNumber, Z.ZodString]>>;
788
791
  locale: Z.ZodObject<{
789
792
  source: Z.ZodEffects<Z.ZodString, string, string>;
790
793
  targets: Z.ZodArray<Z.ZodEffects<Z.ZodString, string, string>, "many">;
@@ -817,7 +820,7 @@ declare const configV1_8Definition: ConfigDefinition<{
817
820
  baseUrl?: string | undefined;
818
821
  }>>;
819
822
  } & {
820
- buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
823
+ buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
821
824
  include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
822
825
  path: Z.ZodString;
823
826
  delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
@@ -874,7 +877,7 @@ declare const configV1_8Definition: ConfigDefinition<{
874
877
  }>>>;
875
878
  }, any>;
876
879
  declare const configV1_9Definition: ConfigDefinition<{
877
- version: Z.ZodDefault<Z.ZodNumber>;
880
+ version: Z.ZodDefault<Z.ZodUnion<[Z.ZodNumber, Z.ZodString]>>;
878
881
  locale: Z.ZodObject<{
879
882
  source: Z.ZodEffects<Z.ZodString, string, string>;
880
883
  targets: Z.ZodArray<Z.ZodEffects<Z.ZodString, string, string>, "many">;
@@ -907,7 +910,7 @@ declare const configV1_9Definition: ConfigDefinition<{
907
910
  baseUrl?: string | undefined;
908
911
  }>>;
909
912
  } & {
910
- buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
913
+ buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
911
914
  include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
912
915
  path: Z.ZodString;
913
916
  delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
@@ -965,8 +968,8 @@ declare const configV1_9Definition: ConfigDefinition<{
965
968
  } & {
966
969
  formatter: Z.ZodOptional<Z.ZodEnum<["prettier", "biome"]>>;
967
970
  }, any>;
968
- declare const LATEST_CONFIG_DEFINITION: ConfigDefinition<{
969
- version: Z.ZodDefault<Z.ZodNumber>;
971
+ declare const configV1_10Definition: ConfigDefinition<{
972
+ version: Z.ZodDefault<Z.ZodUnion<[Z.ZodNumber, Z.ZodString]>>;
970
973
  locale: Z.ZodObject<{
971
974
  source: Z.ZodEffects<Z.ZodString, string, string>;
972
975
  targets: Z.ZodArray<Z.ZodEffects<Z.ZodString, string, string>, "many">;
@@ -982,24 +985,111 @@ declare const LATEST_CONFIG_DEFINITION: ConfigDefinition<{
982
985
  extraSource?: string | undefined;
983
986
  }>;
984
987
  $schema: Z.ZodDefault<Z.ZodString>;
988
+ buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
989
+ include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
990
+ path: Z.ZodString;
991
+ delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
992
+ }, "strip", Z.ZodTypeAny, {
993
+ path: string;
994
+ delimiter?: "-" | "_" | null | undefined;
995
+ }, {
996
+ path: string;
997
+ delimiter?: "-" | "_" | null | undefined;
998
+ }>]>, "many">>;
999
+ exclude: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
1000
+ path: Z.ZodString;
1001
+ delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
1002
+ }, "strip", Z.ZodTypeAny, {
1003
+ path: string;
1004
+ delimiter?: "-" | "_" | null | undefined;
1005
+ }, {
1006
+ path: string;
1007
+ delimiter?: "-" | "_" | null | undefined;
1008
+ }>]>, "many">>>;
1009
+ injectLocale: Z.ZodOptional<Z.ZodArray<Z.ZodString, "many">>;
1010
+ } & {
1011
+ lockedKeys: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>>;
1012
+ } & {
1013
+ lockedPatterns: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>>;
1014
+ } & {
1015
+ ignoredKeys: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>>;
1016
+ }, "strip", Z.ZodTypeAny, {
1017
+ include: (string | {
1018
+ path: string;
1019
+ delimiter?: "-" | "_" | null | undefined;
1020
+ })[];
1021
+ exclude?: (string | {
1022
+ path: string;
1023
+ delimiter?: "-" | "_" | null | undefined;
1024
+ })[] | undefined;
1025
+ injectLocale?: string[] | undefined;
1026
+ lockedKeys?: string[] | undefined;
1027
+ lockedPatterns?: string[] | undefined;
1028
+ ignoredKeys?: string[] | undefined;
1029
+ }, {
1030
+ exclude?: (string | {
1031
+ path: string;
1032
+ delimiter?: "-" | "_" | null | undefined;
1033
+ })[] | undefined;
1034
+ include?: (string | {
1035
+ path: string;
1036
+ delimiter?: "-" | "_" | null | undefined;
1037
+ })[] | undefined;
1038
+ injectLocale?: string[] | undefined;
1039
+ lockedKeys?: string[] | undefined;
1040
+ lockedPatterns?: string[] | undefined;
1041
+ ignoredKeys?: string[] | undefined;
1042
+ }>>>;
1043
+ formatter: Z.ZodOptional<Z.ZodEnum<["prettier", "biome"]>>;
1044
+ } & {
985
1045
  provider: Z.ZodOptional<Z.ZodObject<{
986
1046
  id: Z.ZodEnum<["openai", "anthropic", "google", "ollama", "openrouter", "mistral"]>;
987
1047
  model: Z.ZodString;
988
1048
  prompt: Z.ZodString;
989
1049
  baseUrl: Z.ZodOptional<Z.ZodString>;
1050
+ settings: Z.ZodOptional<Z.ZodObject<{
1051
+ temperature: Z.ZodOptional<Z.ZodNumber>;
1052
+ }, "strip", Z.ZodTypeAny, {
1053
+ temperature?: number | undefined;
1054
+ }, {
1055
+ temperature?: number | undefined;
1056
+ }>>;
990
1057
  }, "strip", Z.ZodTypeAny, {
991
1058
  id: "openai" | "anthropic" | "google" | "ollama" | "openrouter" | "mistral";
992
1059
  model: string;
993
1060
  prompt: string;
994
1061
  baseUrl?: string | undefined;
1062
+ settings?: {
1063
+ temperature?: number | undefined;
1064
+ } | undefined;
995
1065
  }, {
996
1066
  id: "openai" | "anthropic" | "google" | "ollama" | "openrouter" | "mistral";
997
1067
  model: string;
998
1068
  prompt: string;
999
1069
  baseUrl?: string | undefined;
1070
+ settings?: {
1071
+ temperature?: number | undefined;
1072
+ } | undefined;
1000
1073
  }>>;
1001
- } & {
1002
- buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
1074
+ }, any>;
1075
+ declare const LATEST_CONFIG_DEFINITION: ConfigDefinition<{
1076
+ version: Z.ZodDefault<Z.ZodUnion<[Z.ZodNumber, Z.ZodString]>>;
1077
+ locale: Z.ZodObject<{
1078
+ source: Z.ZodEffects<Z.ZodString, string, string>;
1079
+ targets: Z.ZodArray<Z.ZodEffects<Z.ZodString, string, string>, "many">;
1080
+ } & {
1081
+ extraSource: Z.ZodOptional<Z.ZodEffects<Z.ZodString, string, string>>;
1082
+ }, "strip", Z.ZodTypeAny, {
1083
+ source: string;
1084
+ targets: string[];
1085
+ extraSource?: string | undefined;
1086
+ }, {
1087
+ source: string;
1088
+ targets: string[];
1089
+ extraSource?: string | undefined;
1090
+ }>;
1091
+ $schema: Z.ZodDefault<Z.ZodString>;
1092
+ buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
1003
1093
  include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
1004
1094
  path: Z.ZodString;
1005
1095
  delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
@@ -1054,18 +1144,47 @@ declare const LATEST_CONFIG_DEFINITION: ConfigDefinition<{
1054
1144
  lockedPatterns?: string[] | undefined;
1055
1145
  ignoredKeys?: string[] | undefined;
1056
1146
  }>>>;
1057
- } & {
1058
1147
  formatter: Z.ZodOptional<Z.ZodEnum<["prettier", "biome"]>>;
1148
+ } & {
1149
+ provider: Z.ZodOptional<Z.ZodObject<{
1150
+ id: Z.ZodEnum<["openai", "anthropic", "google", "ollama", "openrouter", "mistral"]>;
1151
+ model: Z.ZodString;
1152
+ prompt: Z.ZodString;
1153
+ baseUrl: Z.ZodOptional<Z.ZodString>;
1154
+ settings: Z.ZodOptional<Z.ZodObject<{
1155
+ temperature: Z.ZodOptional<Z.ZodNumber>;
1156
+ }, "strip", Z.ZodTypeAny, {
1157
+ temperature?: number | undefined;
1158
+ }, {
1159
+ temperature?: number | undefined;
1160
+ }>>;
1161
+ }, "strip", Z.ZodTypeAny, {
1162
+ id: "openai" | "anthropic" | "google" | "ollama" | "openrouter" | "mistral";
1163
+ model: string;
1164
+ prompt: string;
1165
+ baseUrl?: string | undefined;
1166
+ settings?: {
1167
+ temperature?: number | undefined;
1168
+ } | undefined;
1169
+ }, {
1170
+ id: "openai" | "anthropic" | "google" | "ollama" | "openrouter" | "mistral";
1171
+ model: string;
1172
+ prompt: string;
1173
+ baseUrl?: string | undefined;
1174
+ settings?: {
1175
+ temperature?: number | undefined;
1176
+ } | undefined;
1177
+ }>>;
1059
1178
  }, any>;
1060
1179
  type I18nConfig = Z.infer<(typeof LATEST_CONFIG_DEFINITION)["schema"]>;
1061
1180
  declare function parseI18nConfig(rawConfig: unknown): {
1062
- version: number;
1181
+ version: string | number;
1063
1182
  locale: {
1064
1183
  source: string;
1065
1184
  targets: string[];
1066
1185
  extraSource?: string | undefined;
1067
1186
  };
1068
- buckets: Partial<Record<"android" | "csv" | "ejs" | "flutter" | "html" | "json" | "json5" | "jsonc" | "markdown" | "mdx" | "xcode-strings" | "xcode-stringsdict" | "xcode-xcstrings" | "yaml" | "yaml-root-key" | "properties" | "po" | "xliff" | "xml" | "srt" | "dato" | "compiler" | "vtt" | "php" | "vue-json" | "typescript" | "txt" | "json-dictionary", {
1187
+ buckets: Partial<Record<"android" | "csv" | "ejs" | "flutter" | "html" | "json" | "json5" | "jsonc" | "markdown" | "markdoc" | "mdx" | "xcode-strings" | "xcode-stringsdict" | "xcode-xcstrings" | "yaml" | "yaml-root-key" | "properties" | "po" | "xliff" | "xml" | "srt" | "dato" | "compiler" | "vtt" | "php" | "vue-json" | "typescript" | "txt" | "json-dictionary", {
1069
1188
  include: (string | {
1070
1189
  path: string;
1071
1190
  delimiter?: "-" | "_" | null | undefined;
@@ -1085,17 +1204,20 @@ declare function parseI18nConfig(rawConfig: unknown): {
1085
1204
  model: string;
1086
1205
  prompt: string;
1087
1206
  baseUrl?: string | undefined;
1207
+ settings?: {
1208
+ temperature?: number | undefined;
1209
+ } | undefined;
1088
1210
  } | undefined;
1089
1211
  formatter?: "prettier" | "biome" | undefined;
1090
1212
  };
1091
1213
  declare const defaultConfig: {
1092
- version: number;
1214
+ version: string | number;
1093
1215
  locale: {
1094
1216
  source: string;
1095
1217
  targets: string[];
1096
1218
  extraSource?: string | undefined;
1097
1219
  };
1098
- buckets: Partial<Record<"android" | "csv" | "ejs" | "flutter" | "html" | "json" | "json5" | "jsonc" | "markdown" | "mdx" | "xcode-strings" | "xcode-stringsdict" | "xcode-xcstrings" | "yaml" | "yaml-root-key" | "properties" | "po" | "xliff" | "xml" | "srt" | "dato" | "compiler" | "vtt" | "php" | "vue-json" | "typescript" | "txt" | "json-dictionary", {
1220
+ buckets: Partial<Record<"android" | "csv" | "ejs" | "flutter" | "html" | "json" | "json5" | "jsonc" | "markdown" | "markdoc" | "mdx" | "xcode-strings" | "xcode-stringsdict" | "xcode-xcstrings" | "yaml" | "yaml-root-key" | "properties" | "po" | "xliff" | "xml" | "srt" | "dato" | "compiler" | "vtt" | "php" | "vue-json" | "typescript" | "txt" | "json-dictionary", {
1099
1221
  include: (string | {
1100
1222
  path: string;
1101
1223
  delimiter?: "-" | "_" | null | undefined;
@@ -1115,8 +1237,11 @@ declare const defaultConfig: {
1115
1237
  model: string;
1116
1238
  prompt: string;
1117
1239
  baseUrl?: string | undefined;
1240
+ settings?: {
1241
+ temperature?: number | undefined;
1242
+ } | undefined;
1118
1243
  } | undefined;
1119
1244
  formatter?: "prettier" | "biome" | undefined;
1120
1245
  };
1121
1246
 
1122
- export { type BucketItem, type I18nConfig, LATEST_CONFIG_DEFINITION, type LocaleCode, type LocaleCodeFull, type LocaleCodeShort, type LocaleDelimiter, bucketItemSchema, bucketTypeSchema, bucketTypes, bucketValueSchemaV1_3, bucketValueSchemaV1_6, bucketValueSchemaV1_7, bucketValueSchemaV1_8, configV0Definition, configV1Definition, configV1_1Definition, configV1_2Definition, configV1_3Definition, configV1_4Definition, configV1_5Definition, configV1_6Definition, configV1_7Definition, configV1_8Definition, configV1_9Definition, defaultConfig, getLocaleCodeDelimiter, localeCodeSchema, localeCodes, localeCodesFull, localeCodesFullExplicitRegion, localeCodesFullUnderscore, localeCodesShort, localeSchema, normalizeLocale, parseI18nConfig, resolveLocaleCode, resolveOverriddenLocale };
1247
+ export { type BucketItem, type I18nConfig, LATEST_CONFIG_DEFINITION, type LocaleCode, type LocaleCodeFull, type LocaleCodeShort, type LocaleDelimiter, bucketItemSchema, bucketTypeSchema, bucketTypes, bucketValueSchemaV1_3, bucketValueSchemaV1_6, bucketValueSchemaV1_7, bucketValueSchemaV1_8, configV0Definition, configV1Definition, configV1_10Definition, configV1_1Definition, configV1_2Definition, configV1_3Definition, configV1_4Definition, configV1_5Definition, configV1_6Definition, configV1_7Definition, configV1_8Definition, configV1_9Definition, defaultConfig, getLocaleCodeDelimiter, localeCodeSchema, localeCodes, localeCodesFull, localeCodesFullExplicitRegion, localeCodesFullUnderscore, localeCodesShort, localeSchema, normalizeLocale, parseI18nConfig, resolveLocaleCode, resolveOverriddenLocale };
package/build/index.d.ts CHANGED
@@ -69,6 +69,9 @@ declare const localeMap: {
69
69
  readonly te: readonly ["te-IN"];
70
70
  readonly rw: readonly ["rw-RW"];
71
71
  readonly ka: readonly ["ka-GE"];
72
+ readonly ml: readonly ["ml-IN"];
73
+ readonly hy: readonly ["hy-AM"];
74
+ readonly mk: readonly ["mk-MK"];
72
75
  };
73
76
  type LocaleCodeShort = keyof typeof localeMap;
74
77
  type LocaleCodeFull = (typeof localeMap)[LocaleCodeShort][number];
@@ -116,8 +119,8 @@ declare const resolveOverriddenLocale: (locale: string, delimiter?: LocaleDelimi
116
119
  */
117
120
  declare function normalizeLocale(locale: string): string;
118
121
 
119
- declare const bucketTypes: readonly ["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"];
120
- declare const bucketTypeSchema: Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>;
122
+ declare const bucketTypes: readonly ["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"];
123
+ declare const bucketTypeSchema: Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>;
121
124
 
122
125
  declare const localeSchema: Z.ZodObject<{
123
126
  source: Z.ZodEffects<Z.ZodString, string, string>;
@@ -135,10 +138,10 @@ type ConfigDefinition<T extends Z.ZodRawShape, _P extends Z.ZodRawShape = any> =
135
138
  parse: (rawConfig: unknown) => Z.infer<Z.ZodObject<T>>;
136
139
  };
137
140
  declare const configV0Definition: ConfigDefinition<{
138
- version: Z.ZodDefault<Z.ZodNumber>;
141
+ version: Z.ZodDefault<Z.ZodUnion<[Z.ZodNumber, Z.ZodString]>>;
139
142
  }, any>;
140
143
  declare const configV1Definition: ConfigDefinition<{
141
- version: Z.ZodDefault<Z.ZodNumber>;
144
+ version: Z.ZodDefault<Z.ZodUnion<[Z.ZodNumber, Z.ZodString]>>;
142
145
  } & {
143
146
  locale: Z.ZodObject<{
144
147
  source: Z.ZodEffects<Z.ZodString, string, string>;
@@ -150,10 +153,10 @@ declare const configV1Definition: ConfigDefinition<{
150
153
  source: string;
151
154
  targets: string[];
152
155
  }>;
153
- buckets: Z.ZodOptional<Z.ZodDefault<Z.ZodRecord<Z.ZodString, Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>>>>;
156
+ buckets: Z.ZodOptional<Z.ZodDefault<Z.ZodRecord<Z.ZodString, Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>>>>;
154
157
  }, any>;
155
158
  declare const configV1_1Definition: ConfigDefinition<{
156
- version: Z.ZodDefault<Z.ZodNumber>;
159
+ version: Z.ZodDefault<Z.ZodUnion<[Z.ZodNumber, Z.ZodString]>>;
157
160
  locale: Z.ZodObject<{
158
161
  source: Z.ZodEffects<Z.ZodString, string, string>;
159
162
  targets: Z.ZodArray<Z.ZodEffects<Z.ZodString, string, string>, "many">;
@@ -165,7 +168,7 @@ declare const configV1_1Definition: ConfigDefinition<{
165
168
  targets: string[];
166
169
  }>;
167
170
  } & {
168
- buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
171
+ buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
169
172
  include: Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>;
170
173
  exclude: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>>;
171
174
  }, "strip", Z.ZodTypeAny, {
@@ -177,8 +180,8 @@ declare const configV1_1Definition: ConfigDefinition<{
177
180
  }>>>;
178
181
  }, any>;
179
182
  declare const configV1_2Definition: ConfigDefinition<{
180
- version: Z.ZodDefault<Z.ZodNumber>;
181
- buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
183
+ version: Z.ZodDefault<Z.ZodUnion<[Z.ZodNumber, Z.ZodString]>>;
184
+ buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
182
185
  include: Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>;
183
186
  exclude: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>>;
184
187
  }, "strip", Z.ZodTypeAny, {
@@ -259,7 +262,7 @@ declare const bucketValueSchemaV1_3: Z.ZodObject<{
259
262
  injectLocale?: string[] | undefined;
260
263
  }>;
261
264
  declare const configV1_3Definition: ConfigDefinition<{
262
- version: Z.ZodDefault<Z.ZodNumber>;
265
+ version: Z.ZodDefault<Z.ZodUnion<[Z.ZodNumber, Z.ZodString]>>;
263
266
  locale: Z.ZodObject<{
264
267
  source: Z.ZodEffects<Z.ZodString, string, string>;
265
268
  targets: Z.ZodArray<Z.ZodEffects<Z.ZodString, string, string>, "many">;
@@ -275,7 +278,7 @@ declare const configV1_3Definition: ConfigDefinition<{
275
278
  extraSource?: string | undefined;
276
279
  }>;
277
280
  } & {
278
- buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
281
+ buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
279
282
  include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
280
283
  path: Z.ZodString;
281
284
  delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
@@ -320,7 +323,7 @@ declare const configV1_3Definition: ConfigDefinition<{
320
323
  }>>>;
321
324
  }, any>;
322
325
  declare const configV1_4Definition: ConfigDefinition<{
323
- version: Z.ZodDefault<Z.ZodNumber>;
326
+ version: Z.ZodDefault<Z.ZodUnion<[Z.ZodNumber, Z.ZodString]>>;
324
327
  locale: Z.ZodObject<{
325
328
  source: Z.ZodEffects<Z.ZodString, string, string>;
326
329
  targets: Z.ZodArray<Z.ZodEffects<Z.ZodString, string, string>, "many">;
@@ -336,7 +339,7 @@ declare const configV1_4Definition: ConfigDefinition<{
336
339
  extraSource?: string | undefined;
337
340
  }>;
338
341
  } & {
339
- buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
342
+ buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
340
343
  include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
341
344
  path: Z.ZodString;
342
345
  delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
@@ -383,7 +386,7 @@ declare const configV1_4Definition: ConfigDefinition<{
383
386
  $schema: Z.ZodDefault<Z.ZodString>;
384
387
  }, any>;
385
388
  declare const configV1_5Definition: ConfigDefinition<{
386
- version: Z.ZodDefault<Z.ZodNumber>;
389
+ version: Z.ZodDefault<Z.ZodUnion<[Z.ZodNumber, Z.ZodString]>>;
387
390
  locale: Z.ZodObject<{
388
391
  source: Z.ZodEffects<Z.ZodString, string, string>;
389
392
  targets: Z.ZodArray<Z.ZodEffects<Z.ZodString, string, string>, "many">;
@@ -399,7 +402,7 @@ declare const configV1_5Definition: ConfigDefinition<{
399
402
  extraSource?: string | undefined;
400
403
  }>;
401
404
  } & {
402
- buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
405
+ buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
403
406
  include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
404
407
  path: Z.ZodString;
405
408
  delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
@@ -510,7 +513,7 @@ declare const bucketValueSchemaV1_6: Z.ZodObject<{
510
513
  lockedKeys?: string[] | undefined;
511
514
  }>;
512
515
  declare const configV1_6Definition: ConfigDefinition<{
513
- version: Z.ZodDefault<Z.ZodNumber>;
516
+ version: Z.ZodDefault<Z.ZodUnion<[Z.ZodNumber, Z.ZodString]>>;
514
517
  locale: Z.ZodObject<{
515
518
  source: Z.ZodEffects<Z.ZodString, string, string>;
516
519
  targets: Z.ZodArray<Z.ZodEffects<Z.ZodString, string, string>, "many">;
@@ -543,7 +546,7 @@ declare const configV1_6Definition: ConfigDefinition<{
543
546
  baseUrl?: string | undefined;
544
547
  }>>;
545
548
  } & {
546
- buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
549
+ buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
547
550
  include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
548
551
  path: Z.ZodString;
549
552
  delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
@@ -643,7 +646,7 @@ declare const bucketValueSchemaV1_7: Z.ZodObject<{
643
646
  lockedPatterns?: string[] | undefined;
644
647
  }>;
645
648
  declare const configV1_7Definition: ConfigDefinition<{
646
- version: Z.ZodDefault<Z.ZodNumber>;
649
+ version: Z.ZodDefault<Z.ZodUnion<[Z.ZodNumber, Z.ZodString]>>;
647
650
  locale: Z.ZodObject<{
648
651
  source: Z.ZodEffects<Z.ZodString, string, string>;
649
652
  targets: Z.ZodArray<Z.ZodEffects<Z.ZodString, string, string>, "many">;
@@ -676,7 +679,7 @@ declare const configV1_7Definition: ConfigDefinition<{
676
679
  baseUrl?: string | undefined;
677
680
  }>>;
678
681
  } & {
679
- buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
682
+ buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
680
683
  include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
681
684
  path: Z.ZodString;
682
685
  delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
@@ -784,7 +787,7 @@ declare const bucketValueSchemaV1_8: Z.ZodObject<{
784
787
  ignoredKeys?: string[] | undefined;
785
788
  }>;
786
789
  declare const configV1_8Definition: ConfigDefinition<{
787
- version: Z.ZodDefault<Z.ZodNumber>;
790
+ version: Z.ZodDefault<Z.ZodUnion<[Z.ZodNumber, Z.ZodString]>>;
788
791
  locale: Z.ZodObject<{
789
792
  source: Z.ZodEffects<Z.ZodString, string, string>;
790
793
  targets: Z.ZodArray<Z.ZodEffects<Z.ZodString, string, string>, "many">;
@@ -817,7 +820,7 @@ declare const configV1_8Definition: ConfigDefinition<{
817
820
  baseUrl?: string | undefined;
818
821
  }>>;
819
822
  } & {
820
- buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
823
+ buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
821
824
  include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
822
825
  path: Z.ZodString;
823
826
  delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
@@ -874,7 +877,7 @@ declare const configV1_8Definition: ConfigDefinition<{
874
877
  }>>>;
875
878
  }, any>;
876
879
  declare const configV1_9Definition: ConfigDefinition<{
877
- version: Z.ZodDefault<Z.ZodNumber>;
880
+ version: Z.ZodDefault<Z.ZodUnion<[Z.ZodNumber, Z.ZodString]>>;
878
881
  locale: Z.ZodObject<{
879
882
  source: Z.ZodEffects<Z.ZodString, string, string>;
880
883
  targets: Z.ZodArray<Z.ZodEffects<Z.ZodString, string, string>, "many">;
@@ -907,7 +910,7 @@ declare const configV1_9Definition: ConfigDefinition<{
907
910
  baseUrl?: string | undefined;
908
911
  }>>;
909
912
  } & {
910
- buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
913
+ buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
911
914
  include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
912
915
  path: Z.ZodString;
913
916
  delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
@@ -965,8 +968,8 @@ declare const configV1_9Definition: ConfigDefinition<{
965
968
  } & {
966
969
  formatter: Z.ZodOptional<Z.ZodEnum<["prettier", "biome"]>>;
967
970
  }, any>;
968
- declare const LATEST_CONFIG_DEFINITION: ConfigDefinition<{
969
- version: Z.ZodDefault<Z.ZodNumber>;
971
+ declare const configV1_10Definition: ConfigDefinition<{
972
+ version: Z.ZodDefault<Z.ZodUnion<[Z.ZodNumber, Z.ZodString]>>;
970
973
  locale: Z.ZodObject<{
971
974
  source: Z.ZodEffects<Z.ZodString, string, string>;
972
975
  targets: Z.ZodArray<Z.ZodEffects<Z.ZodString, string, string>, "many">;
@@ -982,24 +985,111 @@ declare const LATEST_CONFIG_DEFINITION: ConfigDefinition<{
982
985
  extraSource?: string | undefined;
983
986
  }>;
984
987
  $schema: Z.ZodDefault<Z.ZodString>;
988
+ buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
989
+ include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
990
+ path: Z.ZodString;
991
+ delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
992
+ }, "strip", Z.ZodTypeAny, {
993
+ path: string;
994
+ delimiter?: "-" | "_" | null | undefined;
995
+ }, {
996
+ path: string;
997
+ delimiter?: "-" | "_" | null | undefined;
998
+ }>]>, "many">>;
999
+ exclude: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
1000
+ path: Z.ZodString;
1001
+ delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
1002
+ }, "strip", Z.ZodTypeAny, {
1003
+ path: string;
1004
+ delimiter?: "-" | "_" | null | undefined;
1005
+ }, {
1006
+ path: string;
1007
+ delimiter?: "-" | "_" | null | undefined;
1008
+ }>]>, "many">>>;
1009
+ injectLocale: Z.ZodOptional<Z.ZodArray<Z.ZodString, "many">>;
1010
+ } & {
1011
+ lockedKeys: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>>;
1012
+ } & {
1013
+ lockedPatterns: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>>;
1014
+ } & {
1015
+ ignoredKeys: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>>;
1016
+ }, "strip", Z.ZodTypeAny, {
1017
+ include: (string | {
1018
+ path: string;
1019
+ delimiter?: "-" | "_" | null | undefined;
1020
+ })[];
1021
+ exclude?: (string | {
1022
+ path: string;
1023
+ delimiter?: "-" | "_" | null | undefined;
1024
+ })[] | undefined;
1025
+ injectLocale?: string[] | undefined;
1026
+ lockedKeys?: string[] | undefined;
1027
+ lockedPatterns?: string[] | undefined;
1028
+ ignoredKeys?: string[] | undefined;
1029
+ }, {
1030
+ exclude?: (string | {
1031
+ path: string;
1032
+ delimiter?: "-" | "_" | null | undefined;
1033
+ })[] | undefined;
1034
+ include?: (string | {
1035
+ path: string;
1036
+ delimiter?: "-" | "_" | null | undefined;
1037
+ })[] | undefined;
1038
+ injectLocale?: string[] | undefined;
1039
+ lockedKeys?: string[] | undefined;
1040
+ lockedPatterns?: string[] | undefined;
1041
+ ignoredKeys?: string[] | undefined;
1042
+ }>>>;
1043
+ formatter: Z.ZodOptional<Z.ZodEnum<["prettier", "biome"]>>;
1044
+ } & {
985
1045
  provider: Z.ZodOptional<Z.ZodObject<{
986
1046
  id: Z.ZodEnum<["openai", "anthropic", "google", "ollama", "openrouter", "mistral"]>;
987
1047
  model: Z.ZodString;
988
1048
  prompt: Z.ZodString;
989
1049
  baseUrl: Z.ZodOptional<Z.ZodString>;
1050
+ settings: Z.ZodOptional<Z.ZodObject<{
1051
+ temperature: Z.ZodOptional<Z.ZodNumber>;
1052
+ }, "strip", Z.ZodTypeAny, {
1053
+ temperature?: number | undefined;
1054
+ }, {
1055
+ temperature?: number | undefined;
1056
+ }>>;
990
1057
  }, "strip", Z.ZodTypeAny, {
991
1058
  id: "openai" | "anthropic" | "google" | "ollama" | "openrouter" | "mistral";
992
1059
  model: string;
993
1060
  prompt: string;
994
1061
  baseUrl?: string | undefined;
1062
+ settings?: {
1063
+ temperature?: number | undefined;
1064
+ } | undefined;
995
1065
  }, {
996
1066
  id: "openai" | "anthropic" | "google" | "ollama" | "openrouter" | "mistral";
997
1067
  model: string;
998
1068
  prompt: string;
999
1069
  baseUrl?: string | undefined;
1070
+ settings?: {
1071
+ temperature?: number | undefined;
1072
+ } | undefined;
1000
1073
  }>>;
1001
- } & {
1002
- buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
1074
+ }, any>;
1075
+ declare const LATEST_CONFIG_DEFINITION: ConfigDefinition<{
1076
+ version: Z.ZodDefault<Z.ZodUnion<[Z.ZodNumber, Z.ZodString]>>;
1077
+ locale: Z.ZodObject<{
1078
+ source: Z.ZodEffects<Z.ZodString, string, string>;
1079
+ targets: Z.ZodArray<Z.ZodEffects<Z.ZodString, string, string>, "many">;
1080
+ } & {
1081
+ extraSource: Z.ZodOptional<Z.ZodEffects<Z.ZodString, string, string>>;
1082
+ }, "strip", Z.ZodTypeAny, {
1083
+ source: string;
1084
+ targets: string[];
1085
+ extraSource?: string | undefined;
1086
+ }, {
1087
+ source: string;
1088
+ targets: string[];
1089
+ extraSource?: string | undefined;
1090
+ }>;
1091
+ $schema: Z.ZodDefault<Z.ZodString>;
1092
+ buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
1003
1093
  include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
1004
1094
  path: Z.ZodString;
1005
1095
  delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
@@ -1054,18 +1144,47 @@ declare const LATEST_CONFIG_DEFINITION: ConfigDefinition<{
1054
1144
  lockedPatterns?: string[] | undefined;
1055
1145
  ignoredKeys?: string[] | undefined;
1056
1146
  }>>>;
1057
- } & {
1058
1147
  formatter: Z.ZodOptional<Z.ZodEnum<["prettier", "biome"]>>;
1148
+ } & {
1149
+ provider: Z.ZodOptional<Z.ZodObject<{
1150
+ id: Z.ZodEnum<["openai", "anthropic", "google", "ollama", "openrouter", "mistral"]>;
1151
+ model: Z.ZodString;
1152
+ prompt: Z.ZodString;
1153
+ baseUrl: Z.ZodOptional<Z.ZodString>;
1154
+ settings: Z.ZodOptional<Z.ZodObject<{
1155
+ temperature: Z.ZodOptional<Z.ZodNumber>;
1156
+ }, "strip", Z.ZodTypeAny, {
1157
+ temperature?: number | undefined;
1158
+ }, {
1159
+ temperature?: number | undefined;
1160
+ }>>;
1161
+ }, "strip", Z.ZodTypeAny, {
1162
+ id: "openai" | "anthropic" | "google" | "ollama" | "openrouter" | "mistral";
1163
+ model: string;
1164
+ prompt: string;
1165
+ baseUrl?: string | undefined;
1166
+ settings?: {
1167
+ temperature?: number | undefined;
1168
+ } | undefined;
1169
+ }, {
1170
+ id: "openai" | "anthropic" | "google" | "ollama" | "openrouter" | "mistral";
1171
+ model: string;
1172
+ prompt: string;
1173
+ baseUrl?: string | undefined;
1174
+ settings?: {
1175
+ temperature?: number | undefined;
1176
+ } | undefined;
1177
+ }>>;
1059
1178
  }, any>;
1060
1179
  type I18nConfig = Z.infer<(typeof LATEST_CONFIG_DEFINITION)["schema"]>;
1061
1180
  declare function parseI18nConfig(rawConfig: unknown): {
1062
- version: number;
1181
+ version: string | number;
1063
1182
  locale: {
1064
1183
  source: string;
1065
1184
  targets: string[];
1066
1185
  extraSource?: string | undefined;
1067
1186
  };
1068
- buckets: Partial<Record<"android" | "csv" | "ejs" | "flutter" | "html" | "json" | "json5" | "jsonc" | "markdown" | "mdx" | "xcode-strings" | "xcode-stringsdict" | "xcode-xcstrings" | "yaml" | "yaml-root-key" | "properties" | "po" | "xliff" | "xml" | "srt" | "dato" | "compiler" | "vtt" | "php" | "vue-json" | "typescript" | "txt" | "json-dictionary", {
1187
+ buckets: Partial<Record<"android" | "csv" | "ejs" | "flutter" | "html" | "json" | "json5" | "jsonc" | "markdown" | "markdoc" | "mdx" | "xcode-strings" | "xcode-stringsdict" | "xcode-xcstrings" | "yaml" | "yaml-root-key" | "properties" | "po" | "xliff" | "xml" | "srt" | "dato" | "compiler" | "vtt" | "php" | "vue-json" | "typescript" | "txt" | "json-dictionary", {
1069
1188
  include: (string | {
1070
1189
  path: string;
1071
1190
  delimiter?: "-" | "_" | null | undefined;
@@ -1085,17 +1204,20 @@ declare function parseI18nConfig(rawConfig: unknown): {
1085
1204
  model: string;
1086
1205
  prompt: string;
1087
1206
  baseUrl?: string | undefined;
1207
+ settings?: {
1208
+ temperature?: number | undefined;
1209
+ } | undefined;
1088
1210
  } | undefined;
1089
1211
  formatter?: "prettier" | "biome" | undefined;
1090
1212
  };
1091
1213
  declare const defaultConfig: {
1092
- version: number;
1214
+ version: string | number;
1093
1215
  locale: {
1094
1216
  source: string;
1095
1217
  targets: string[];
1096
1218
  extraSource?: string | undefined;
1097
1219
  };
1098
- buckets: Partial<Record<"android" | "csv" | "ejs" | "flutter" | "html" | "json" | "json5" | "jsonc" | "markdown" | "mdx" | "xcode-strings" | "xcode-stringsdict" | "xcode-xcstrings" | "yaml" | "yaml-root-key" | "properties" | "po" | "xliff" | "xml" | "srt" | "dato" | "compiler" | "vtt" | "php" | "vue-json" | "typescript" | "txt" | "json-dictionary", {
1220
+ buckets: Partial<Record<"android" | "csv" | "ejs" | "flutter" | "html" | "json" | "json5" | "jsonc" | "markdown" | "markdoc" | "mdx" | "xcode-strings" | "xcode-stringsdict" | "xcode-xcstrings" | "yaml" | "yaml-root-key" | "properties" | "po" | "xliff" | "xml" | "srt" | "dato" | "compiler" | "vtt" | "php" | "vue-json" | "typescript" | "txt" | "json-dictionary", {
1099
1221
  include: (string | {
1100
1222
  path: string;
1101
1223
  delimiter?: "-" | "_" | null | undefined;
@@ -1115,8 +1237,11 @@ declare const defaultConfig: {
1115
1237
  model: string;
1116
1238
  prompt: string;
1117
1239
  baseUrl?: string | undefined;
1240
+ settings?: {
1241
+ temperature?: number | undefined;
1242
+ } | undefined;
1118
1243
  } | undefined;
1119
1244
  formatter?: "prettier" | "biome" | undefined;
1120
1245
  };
1121
1246
 
1122
- export { type BucketItem, type I18nConfig, LATEST_CONFIG_DEFINITION, type LocaleCode, type LocaleCodeFull, type LocaleCodeShort, type LocaleDelimiter, bucketItemSchema, bucketTypeSchema, bucketTypes, bucketValueSchemaV1_3, bucketValueSchemaV1_6, bucketValueSchemaV1_7, bucketValueSchemaV1_8, configV0Definition, configV1Definition, configV1_1Definition, configV1_2Definition, configV1_3Definition, configV1_4Definition, configV1_5Definition, configV1_6Definition, configV1_7Definition, configV1_8Definition, configV1_9Definition, defaultConfig, getLocaleCodeDelimiter, localeCodeSchema, localeCodes, localeCodesFull, localeCodesFullExplicitRegion, localeCodesFullUnderscore, localeCodesShort, localeSchema, normalizeLocale, parseI18nConfig, resolveLocaleCode, resolveOverriddenLocale };
1247
+ export { type BucketItem, type I18nConfig, LATEST_CONFIG_DEFINITION, type LocaleCode, type LocaleCodeFull, type LocaleCodeShort, type LocaleDelimiter, bucketItemSchema, bucketTypeSchema, bucketTypes, bucketValueSchemaV1_3, bucketValueSchemaV1_6, bucketValueSchemaV1_7, bucketValueSchemaV1_8, configV0Definition, configV1Definition, configV1_10Definition, configV1_1Definition, configV1_2Definition, configV1_3Definition, configV1_4Definition, configV1_5Definition, configV1_6Definition, configV1_7Definition, configV1_8Definition, configV1_9Definition, defaultConfig, getLocaleCodeDelimiter, localeCodeSchema, localeCodes, localeCodesFull, localeCodesFullExplicitRegion, localeCodesFullUnderscore, localeCodesShort, localeSchema, normalizeLocale, parseI18nConfig, resolveLocaleCode, resolveOverriddenLocale };
package/build/index.mjs CHANGED
@@ -272,7 +272,13 @@ var localeMap = {
272
272
  // Kinyarwanda (Rwanda)
273
273
  rw: ["rw-RW"],
274
274
  // Georgian (Georgia)
275
- ka: ["ka-GE"]
275
+ ka: ["ka-GE"],
276
+ // Malayalam (India)
277
+ ml: ["ml-IN"],
278
+ // Armenian (Armenia)
279
+ hy: ["hy-AM"],
280
+ // Macedonian (Macedonia)
281
+ mk: ["mk-MK"]
276
282
  };
277
283
  var localeCodesShort = Object.keys(localeMap);
278
284
  var localeCodesFull = Object.values(
@@ -346,6 +352,7 @@ var bucketTypes = [
346
352
  "json5",
347
353
  "jsonc",
348
354
  "markdown",
355
+ "markdoc",
349
356
  "mdx",
350
357
  "xcode-strings",
351
358
  "xcode-stringsdict",
@@ -417,7 +424,7 @@ ${localeErrors.join("\n")}`);
417
424
  });
418
425
  };
419
426
  var configV0Schema = Z3.object({
420
- version: Z3.number().default(0).describe("The version number of the schema.")
427
+ version: Z3.union([Z3.number(), Z3.string()]).default(0).describe("The version number of the schema.")
421
428
  });
422
429
  var configV0Definition = createConfigDefinition({
423
430
  schema: configV0Schema,
@@ -672,7 +679,44 @@ var configV1_9Definition = extendConfigDefinition(
672
679
  })
673
680
  }
674
681
  );
675
- var LATEST_CONFIG_DEFINITION = configV1_9Definition;
682
+ var modelSettingsSchema = Z3.object({
683
+ temperature: Z3.number().min(0).max(2).optional().describe(
684
+ "Controls randomness in model outputs (0=deterministic, 2=very random). Some models like GPT-5 require temperature=1."
685
+ )
686
+ }).optional().describe("Model-specific settings for translation requests.");
687
+ var providerSchemaV1_10 = Z3.object({
688
+ id: Z3.enum([
689
+ "openai",
690
+ "anthropic",
691
+ "google",
692
+ "ollama",
693
+ "openrouter",
694
+ "mistral"
695
+ ]).describe("Identifier of the translation provider service."),
696
+ model: Z3.string().describe("Model name to use for translations."),
697
+ prompt: Z3.string().describe(
698
+ "Prompt template used when requesting translations."
699
+ ),
700
+ baseUrl: Z3.string().optional().describe("Custom base URL for the provider API (optional)."),
701
+ settings: modelSettingsSchema
702
+ }).describe("Configuration for the machine-translation provider.");
703
+ var configV1_10Definition = extendConfigDefinition(
704
+ configV1_9Definition,
705
+ {
706
+ createSchema: (baseSchema) => baseSchema.extend({
707
+ provider: providerSchemaV1_10.optional()
708
+ }),
709
+ createDefaultValue: (baseDefaultValue) => ({
710
+ ...baseDefaultValue,
711
+ version: "1.10"
712
+ }),
713
+ createUpgrader: (oldConfig) => ({
714
+ ...oldConfig,
715
+ version: "1.10"
716
+ })
717
+ }
718
+ );
719
+ var LATEST_CONFIG_DEFINITION = configV1_10Definition;
676
720
  function parseI18nConfig(rawConfig) {
677
721
  try {
678
722
  const result = LATEST_CONFIG_DEFINITION.parse(rawConfig);
@@ -693,6 +737,7 @@ export {
693
737
  bucketValueSchemaV1_8,
694
738
  configV0Definition,
695
739
  configV1Definition,
740
+ configV1_10Definition,
696
741
  configV1_1Definition,
697
742
  configV1_2Definition,
698
743
  configV1_3Definition,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lingo.dev/_spec",
3
- "version": "0.40.3",
3
+ "version": "0.41.0",
4
4
  "description": "Lingo.dev open specification",
5
5
  "private": false,
6
6
  "publishConfig": {