@lingo.dev/_spec 0.33.0 → 0.33.2
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.
- package/build/i18n.schema.json +29 -57
- package/build/index.cjs +131 -109
- package/build/index.d.cts +383 -100
- package/build/index.d.ts +383 -100
- package/build/index.mjs +130 -108
- package/package.json +1 -1
package/build/index.d.cts
CHANGED
@@ -530,32 +530,12 @@ declare const configV1_5Definition: ConfigDefinition<Z.objectUtil.extendShape<Z.
|
|
530
530
|
}>, {
|
531
531
|
$schema: Z.ZodDefault<Z.ZodString>;
|
532
532
|
}>, {
|
533
|
-
provider: Z.ZodOptional<Z.
|
534
|
-
id: Z.
|
535
|
-
model: Z.ZodString;
|
536
|
-
prompt: Z.ZodString;
|
537
|
-
baseUrl: Z.ZodOptional<Z.ZodString>;
|
538
|
-
}, {
|
539
|
-
id: Z.ZodLiteral<"lingo">;
|
540
|
-
model: Z.ZodLiteral<"best">;
|
541
|
-
}>, "strip", Z.ZodTypeAny, {
|
542
|
-
id: "lingo";
|
543
|
-
model: "best";
|
544
|
-
prompt: string;
|
545
|
-
baseUrl?: string | undefined;
|
546
|
-
}, {
|
547
|
-
id: "lingo";
|
548
|
-
model: "best";
|
549
|
-
prompt: string;
|
550
|
-
baseUrl?: string | undefined;
|
551
|
-
}>, Z.ZodObject<Z.objectUtil.extendShape<{
|
552
|
-
id: Z.ZodString;
|
533
|
+
provider: Z.ZodOptional<Z.ZodObject<{
|
534
|
+
id: Z.ZodEnum<["openai", "anthropic"]>;
|
553
535
|
model: Z.ZodString;
|
554
536
|
prompt: Z.ZodString;
|
555
537
|
baseUrl: Z.ZodOptional<Z.ZodString>;
|
556
|
-
}, {
|
557
|
-
id: Z.ZodEnum<["openai", "anthropic"]>;
|
558
|
-
}>, "strip", Z.ZodTypeAny, {
|
538
|
+
}, "strip", Z.ZodTypeAny, {
|
559
539
|
id: "openai" | "anthropic";
|
560
540
|
model: string;
|
561
541
|
prompt: string;
|
@@ -565,7 +545,7 @@ declare const configV1_5Definition: ConfigDefinition<Z.objectUtil.extendShape<Z.
|
|
565
545
|
model: string;
|
566
546
|
prompt: string;
|
567
547
|
baseUrl?: string | undefined;
|
568
|
-
}
|
548
|
+
}>>;
|
569
549
|
}>, Z.ZodRawShape>;
|
570
550
|
declare const bucketValueSchemaV1_6: Z.ZodObject<Z.objectUtil.extendShape<{
|
571
551
|
include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
@@ -701,32 +681,12 @@ declare const configV1_6Definition: ConfigDefinition<Z.objectUtil.extendShape<Z.
|
|
701
681
|
}>, {
|
702
682
|
$schema: Z.ZodDefault<Z.ZodString>;
|
703
683
|
}>, {
|
704
|
-
provider: Z.ZodOptional<Z.
|
705
|
-
id: Z.
|
706
|
-
model: Z.ZodString;
|
707
|
-
prompt: Z.ZodString;
|
708
|
-
baseUrl: Z.ZodOptional<Z.ZodString>;
|
709
|
-
}, {
|
710
|
-
id: Z.ZodLiteral<"lingo">;
|
711
|
-
model: Z.ZodLiteral<"best">;
|
712
|
-
}>, "strip", Z.ZodTypeAny, {
|
713
|
-
id: "lingo";
|
714
|
-
model: "best";
|
715
|
-
prompt: string;
|
716
|
-
baseUrl?: string | undefined;
|
717
|
-
}, {
|
718
|
-
id: "lingo";
|
719
|
-
model: "best";
|
720
|
-
prompt: string;
|
721
|
-
baseUrl?: string | undefined;
|
722
|
-
}>, Z.ZodObject<Z.objectUtil.extendShape<{
|
723
|
-
id: Z.ZodString;
|
684
|
+
provider: Z.ZodOptional<Z.ZodObject<{
|
685
|
+
id: Z.ZodEnum<["openai", "anthropic"]>;
|
724
686
|
model: Z.ZodString;
|
725
687
|
prompt: Z.ZodString;
|
726
688
|
baseUrl: Z.ZodOptional<Z.ZodString>;
|
727
|
-
}, {
|
728
|
-
id: Z.ZodEnum<["openai", "anthropic"]>;
|
729
|
-
}>, "strip", Z.ZodTypeAny, {
|
689
|
+
}, "strip", Z.ZodTypeAny, {
|
730
690
|
id: "openai" | "anthropic";
|
731
691
|
model: string;
|
732
692
|
prompt: string;
|
@@ -736,7 +696,7 @@ declare const configV1_6Definition: ConfigDefinition<Z.objectUtil.extendShape<Z.
|
|
736
696
|
model: string;
|
737
697
|
prompt: string;
|
738
698
|
baseUrl?: string | undefined;
|
739
|
-
}
|
699
|
+
}>>;
|
740
700
|
}>, {
|
741
701
|
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "flutter", "html", "json", "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"]>, Z.ZodObject<Z.objectUtil.extendShape<{
|
742
702
|
include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
@@ -924,32 +884,12 @@ declare const configV1_7Definition: ConfigDefinition<Z.objectUtil.extendShape<Z.
|
|
924
884
|
}>, {
|
925
885
|
$schema: Z.ZodDefault<Z.ZodString>;
|
926
886
|
}>, {
|
927
|
-
provider: Z.ZodOptional<Z.
|
928
|
-
id: Z.
|
929
|
-
model: Z.ZodString;
|
930
|
-
prompt: Z.ZodString;
|
931
|
-
baseUrl: Z.ZodOptional<Z.ZodString>;
|
932
|
-
}, {
|
933
|
-
id: Z.ZodLiteral<"lingo">;
|
934
|
-
model: Z.ZodLiteral<"best">;
|
935
|
-
}>, "strip", Z.ZodTypeAny, {
|
936
|
-
id: "lingo";
|
937
|
-
model: "best";
|
938
|
-
prompt: string;
|
939
|
-
baseUrl?: string | undefined;
|
940
|
-
}, {
|
941
|
-
id: "lingo";
|
942
|
-
model: "best";
|
943
|
-
prompt: string;
|
944
|
-
baseUrl?: string | undefined;
|
945
|
-
}>, Z.ZodObject<Z.objectUtil.extendShape<{
|
946
|
-
id: Z.ZodString;
|
887
|
+
provider: Z.ZodOptional<Z.ZodObject<{
|
888
|
+
id: Z.ZodEnum<["openai", "anthropic"]>;
|
947
889
|
model: Z.ZodString;
|
948
890
|
prompt: Z.ZodString;
|
949
891
|
baseUrl: Z.ZodOptional<Z.ZodString>;
|
950
|
-
}, {
|
951
|
-
id: Z.ZodEnum<["openai", "anthropic"]>;
|
952
|
-
}>, "strip", Z.ZodTypeAny, {
|
892
|
+
}, "strip", Z.ZodTypeAny, {
|
953
893
|
id: "openai" | "anthropic";
|
954
894
|
model: string;
|
955
895
|
prompt: string;
|
@@ -959,7 +899,7 @@ declare const configV1_7Definition: ConfigDefinition<Z.objectUtil.extendShape<Z.
|
|
959
899
|
model: string;
|
960
900
|
prompt: string;
|
961
901
|
baseUrl?: string | undefined;
|
962
|
-
}
|
902
|
+
}>>;
|
963
903
|
}>, {
|
964
904
|
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "flutter", "html", "json", "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"]>, Z.ZodObject<Z.objectUtil.extendShape<{
|
965
905
|
include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
@@ -1061,7 +1001,62 @@ declare const configV1_7Definition: ConfigDefinition<Z.objectUtil.extendShape<Z.
|
|
1061
1001
|
lockedPatterns?: string[] | undefined;
|
1062
1002
|
}>>>;
|
1063
1003
|
}>, Z.ZodRawShape>;
|
1064
|
-
declare const
|
1004
|
+
declare const bucketValueSchemaV1_8: Z.ZodObject<Z.objectUtil.extendShape<Z.objectUtil.extendShape<Z.objectUtil.extendShape<{
|
1005
|
+
include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
1006
|
+
path: Z.ZodString;
|
1007
|
+
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
1008
|
+
}, "strip", Z.ZodTypeAny, {
|
1009
|
+
path: string;
|
1010
|
+
delimiter?: "-" | "_" | null | undefined;
|
1011
|
+
}, {
|
1012
|
+
path: string;
|
1013
|
+
delimiter?: "-" | "_" | null | undefined;
|
1014
|
+
}>]>, "many">>;
|
1015
|
+
exclude: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
1016
|
+
path: Z.ZodString;
|
1017
|
+
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
1018
|
+
}, "strip", Z.ZodTypeAny, {
|
1019
|
+
path: string;
|
1020
|
+
delimiter?: "-" | "_" | null | undefined;
|
1021
|
+
}, {
|
1022
|
+
path: string;
|
1023
|
+
delimiter?: "-" | "_" | null | undefined;
|
1024
|
+
}>]>, "many">>>;
|
1025
|
+
injectLocale: Z.ZodOptional<Z.ZodArray<Z.ZodString, "many">>;
|
1026
|
+
}, {
|
1027
|
+
lockedKeys: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>>;
|
1028
|
+
}>, {
|
1029
|
+
lockedPatterns: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>>;
|
1030
|
+
}>, {
|
1031
|
+
ignoredKeys: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>>;
|
1032
|
+
}>, "strip", Z.ZodTypeAny, {
|
1033
|
+
include: (string | {
|
1034
|
+
path: string;
|
1035
|
+
delimiter?: "-" | "_" | null | undefined;
|
1036
|
+
})[];
|
1037
|
+
exclude?: (string | {
|
1038
|
+
path: string;
|
1039
|
+
delimiter?: "-" | "_" | null | undefined;
|
1040
|
+
})[] | undefined;
|
1041
|
+
injectLocale?: string[] | undefined;
|
1042
|
+
lockedKeys?: string[] | undefined;
|
1043
|
+
lockedPatterns?: string[] | undefined;
|
1044
|
+
ignoredKeys?: string[] | undefined;
|
1045
|
+
}, {
|
1046
|
+
exclude?: (string | {
|
1047
|
+
path: string;
|
1048
|
+
delimiter?: "-" | "_" | null | undefined;
|
1049
|
+
})[] | undefined;
|
1050
|
+
include?: (string | {
|
1051
|
+
path: string;
|
1052
|
+
delimiter?: "-" | "_" | null | undefined;
|
1053
|
+
})[] | undefined;
|
1054
|
+
injectLocale?: string[] | undefined;
|
1055
|
+
lockedKeys?: string[] | undefined;
|
1056
|
+
lockedPatterns?: string[] | undefined;
|
1057
|
+
ignoredKeys?: string[] | undefined;
|
1058
|
+
}>;
|
1059
|
+
declare const configV1_8Definition: ConfigDefinition<Z.objectUtil.extendShape<Z.objectUtil.extendShape<Z.objectUtil.extendShape<Z.objectUtil.extendShape<Z.objectUtil.extendShape<Z.objectUtil.extendShape<Z.objectUtil.extendShape<Z.objectUtil.extendShape<Z.objectUtil.extendShape<{
|
1065
1060
|
version: Z.ZodDefault<Z.ZodNumber>;
|
1066
1061
|
}, {
|
1067
1062
|
locale: Z.ZodObject<{
|
@@ -1148,32 +1143,272 @@ declare const LATEST_CONFIG_DEFINITION: ConfigDefinition<Z.objectUtil.extendShap
|
|
1148
1143
|
}>, {
|
1149
1144
|
$schema: Z.ZodDefault<Z.ZodString>;
|
1150
1145
|
}>, {
|
1151
|
-
provider: Z.ZodOptional<Z.
|
1152
|
-
id: Z.
|
1146
|
+
provider: Z.ZodOptional<Z.ZodObject<{
|
1147
|
+
id: Z.ZodEnum<["openai", "anthropic"]>;
|
1153
1148
|
model: Z.ZodString;
|
1154
1149
|
prompt: Z.ZodString;
|
1155
1150
|
baseUrl: Z.ZodOptional<Z.ZodString>;
|
1156
|
-
}, {
|
1157
|
-
id:
|
1158
|
-
model:
|
1159
|
-
}>, "strip", Z.ZodTypeAny, {
|
1160
|
-
id: "lingo";
|
1161
|
-
model: "best";
|
1151
|
+
}, "strip", Z.ZodTypeAny, {
|
1152
|
+
id: "openai" | "anthropic";
|
1153
|
+
model: string;
|
1162
1154
|
prompt: string;
|
1163
1155
|
baseUrl?: string | undefined;
|
1164
1156
|
}, {
|
1165
|
-
id: "
|
1166
|
-
model:
|
1157
|
+
id: "openai" | "anthropic";
|
1158
|
+
model: string;
|
1167
1159
|
prompt: string;
|
1168
1160
|
baseUrl?: string | undefined;
|
1169
|
-
}
|
1170
|
-
|
1161
|
+
}>>;
|
1162
|
+
}>, {
|
1163
|
+
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "flutter", "html", "json", "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"]>, Z.ZodObject<Z.objectUtil.extendShape<{
|
1164
|
+
include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
1165
|
+
path: Z.ZodString;
|
1166
|
+
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
1167
|
+
}, "strip", Z.ZodTypeAny, {
|
1168
|
+
path: string;
|
1169
|
+
delimiter?: "-" | "_" | null | undefined;
|
1170
|
+
}, {
|
1171
|
+
path: string;
|
1172
|
+
delimiter?: "-" | "_" | null | undefined;
|
1173
|
+
}>]>, "many">>;
|
1174
|
+
exclude: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
1175
|
+
path: Z.ZodString;
|
1176
|
+
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
1177
|
+
}, "strip", Z.ZodTypeAny, {
|
1178
|
+
path: string;
|
1179
|
+
delimiter?: "-" | "_" | null | undefined;
|
1180
|
+
}, {
|
1181
|
+
path: string;
|
1182
|
+
delimiter?: "-" | "_" | null | undefined;
|
1183
|
+
}>]>, "many">>>;
|
1184
|
+
injectLocale: Z.ZodOptional<Z.ZodArray<Z.ZodString, "many">>;
|
1185
|
+
}, {
|
1186
|
+
lockedKeys: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>>;
|
1187
|
+
}>, "strip", Z.ZodTypeAny, {
|
1188
|
+
include: (string | {
|
1189
|
+
path: string;
|
1190
|
+
delimiter?: "-" | "_" | null | undefined;
|
1191
|
+
})[];
|
1192
|
+
exclude?: (string | {
|
1193
|
+
path: string;
|
1194
|
+
delimiter?: "-" | "_" | null | undefined;
|
1195
|
+
})[] | undefined;
|
1196
|
+
injectLocale?: string[] | undefined;
|
1197
|
+
lockedKeys?: string[] | undefined;
|
1198
|
+
}, {
|
1199
|
+
exclude?: (string | {
|
1200
|
+
path: string;
|
1201
|
+
delimiter?: "-" | "_" | null | undefined;
|
1202
|
+
})[] | undefined;
|
1203
|
+
include?: (string | {
|
1204
|
+
path: string;
|
1205
|
+
delimiter?: "-" | "_" | null | undefined;
|
1206
|
+
})[] | undefined;
|
1207
|
+
injectLocale?: string[] | undefined;
|
1208
|
+
lockedKeys?: string[] | undefined;
|
1209
|
+
}>>>;
|
1210
|
+
}>, {
|
1211
|
+
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "flutter", "html", "json", "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"]>, Z.ZodObject<Z.objectUtil.extendShape<Z.objectUtil.extendShape<{
|
1212
|
+
include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
1213
|
+
path: Z.ZodString;
|
1214
|
+
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
1215
|
+
}, "strip", Z.ZodTypeAny, {
|
1216
|
+
path: string;
|
1217
|
+
delimiter?: "-" | "_" | null | undefined;
|
1218
|
+
}, {
|
1219
|
+
path: string;
|
1220
|
+
delimiter?: "-" | "_" | null | undefined;
|
1221
|
+
}>]>, "many">>;
|
1222
|
+
exclude: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
1223
|
+
path: Z.ZodString;
|
1224
|
+
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
1225
|
+
}, "strip", Z.ZodTypeAny, {
|
1226
|
+
path: string;
|
1227
|
+
delimiter?: "-" | "_" | null | undefined;
|
1228
|
+
}, {
|
1229
|
+
path: string;
|
1230
|
+
delimiter?: "-" | "_" | null | undefined;
|
1231
|
+
}>]>, "many">>>;
|
1232
|
+
injectLocale: Z.ZodOptional<Z.ZodArray<Z.ZodString, "many">>;
|
1233
|
+
}, {
|
1234
|
+
lockedKeys: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>>;
|
1235
|
+
}>, {
|
1236
|
+
lockedPatterns: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>>;
|
1237
|
+
}>, "strip", Z.ZodTypeAny, {
|
1238
|
+
include: (string | {
|
1239
|
+
path: string;
|
1240
|
+
delimiter?: "-" | "_" | null | undefined;
|
1241
|
+
})[];
|
1242
|
+
exclude?: (string | {
|
1243
|
+
path: string;
|
1244
|
+
delimiter?: "-" | "_" | null | undefined;
|
1245
|
+
})[] | undefined;
|
1246
|
+
injectLocale?: string[] | undefined;
|
1247
|
+
lockedKeys?: string[] | undefined;
|
1248
|
+
lockedPatterns?: string[] | undefined;
|
1249
|
+
}, {
|
1250
|
+
exclude?: (string | {
|
1251
|
+
path: string;
|
1252
|
+
delimiter?: "-" | "_" | null | undefined;
|
1253
|
+
})[] | undefined;
|
1254
|
+
include?: (string | {
|
1255
|
+
path: string;
|
1256
|
+
delimiter?: "-" | "_" | null | undefined;
|
1257
|
+
})[] | undefined;
|
1258
|
+
injectLocale?: string[] | undefined;
|
1259
|
+
lockedKeys?: string[] | undefined;
|
1260
|
+
lockedPatterns?: string[] | undefined;
|
1261
|
+
}>>>;
|
1262
|
+
}>, {
|
1263
|
+
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "flutter", "html", "json", "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"]>, Z.ZodObject<Z.objectUtil.extendShape<Z.objectUtil.extendShape<Z.objectUtil.extendShape<{
|
1264
|
+
include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
1265
|
+
path: Z.ZodString;
|
1266
|
+
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
1267
|
+
}, "strip", Z.ZodTypeAny, {
|
1268
|
+
path: string;
|
1269
|
+
delimiter?: "-" | "_" | null | undefined;
|
1270
|
+
}, {
|
1271
|
+
path: string;
|
1272
|
+
delimiter?: "-" | "_" | null | undefined;
|
1273
|
+
}>]>, "many">>;
|
1274
|
+
exclude: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
1275
|
+
path: Z.ZodString;
|
1276
|
+
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
1277
|
+
}, "strip", Z.ZodTypeAny, {
|
1278
|
+
path: string;
|
1279
|
+
delimiter?: "-" | "_" | null | undefined;
|
1280
|
+
}, {
|
1281
|
+
path: string;
|
1282
|
+
delimiter?: "-" | "_" | null | undefined;
|
1283
|
+
}>]>, "many">>>;
|
1284
|
+
injectLocale: Z.ZodOptional<Z.ZodArray<Z.ZodString, "many">>;
|
1285
|
+
}, {
|
1286
|
+
lockedKeys: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>>;
|
1287
|
+
}>, {
|
1288
|
+
lockedPatterns: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>>;
|
1289
|
+
}>, {
|
1290
|
+
ignoredKeys: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>>;
|
1291
|
+
}>, "strip", Z.ZodTypeAny, {
|
1292
|
+
include: (string | {
|
1293
|
+
path: string;
|
1294
|
+
delimiter?: "-" | "_" | null | undefined;
|
1295
|
+
})[];
|
1296
|
+
exclude?: (string | {
|
1297
|
+
path: string;
|
1298
|
+
delimiter?: "-" | "_" | null | undefined;
|
1299
|
+
})[] | undefined;
|
1300
|
+
injectLocale?: string[] | undefined;
|
1301
|
+
lockedKeys?: string[] | undefined;
|
1302
|
+
lockedPatterns?: string[] | undefined;
|
1303
|
+
ignoredKeys?: string[] | undefined;
|
1304
|
+
}, {
|
1305
|
+
exclude?: (string | {
|
1306
|
+
path: string;
|
1307
|
+
delimiter?: "-" | "_" | null | undefined;
|
1308
|
+
})[] | undefined;
|
1309
|
+
include?: (string | {
|
1310
|
+
path: string;
|
1311
|
+
delimiter?: "-" | "_" | null | undefined;
|
1312
|
+
})[] | undefined;
|
1313
|
+
injectLocale?: string[] | undefined;
|
1314
|
+
lockedKeys?: string[] | undefined;
|
1315
|
+
lockedPatterns?: string[] | undefined;
|
1316
|
+
ignoredKeys?: string[] | undefined;
|
1317
|
+
}>>>;
|
1318
|
+
}>, Z.ZodRawShape>;
|
1319
|
+
declare const LATEST_CONFIG_DEFINITION: ConfigDefinition<Z.objectUtil.extendShape<Z.objectUtil.extendShape<Z.objectUtil.extendShape<Z.objectUtil.extendShape<Z.objectUtil.extendShape<Z.objectUtil.extendShape<Z.objectUtil.extendShape<Z.objectUtil.extendShape<Z.objectUtil.extendShape<{
|
1320
|
+
version: Z.ZodDefault<Z.ZodNumber>;
|
1321
|
+
}, {
|
1322
|
+
locale: Z.ZodObject<{
|
1323
|
+
source: Z.ZodEffects<Z.ZodString, string, string>;
|
1324
|
+
targets: Z.ZodArray<Z.ZodEffects<Z.ZodString, string, string>, "many">;
|
1325
|
+
}, "strip", Z.ZodTypeAny, {
|
1326
|
+
source: string;
|
1327
|
+
targets: string[];
|
1328
|
+
}, {
|
1329
|
+
source: string;
|
1330
|
+
targets: string[];
|
1331
|
+
}>;
|
1332
|
+
buckets: Z.ZodOptional<Z.ZodDefault<Z.ZodRecord<Z.ZodString, Z.ZodEnum<["android", "csv", "flutter", "html", "json", "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"]>>>>;
|
1333
|
+
}>, {
|
1334
|
+
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "flutter", "html", "json", "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"]>, Z.ZodObject<{
|
1335
|
+
include: Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>;
|
1336
|
+
exclude: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>>;
|
1337
|
+
}, "strip", Z.ZodTypeAny, {
|
1338
|
+
include: string[];
|
1339
|
+
exclude?: string[] | undefined;
|
1340
|
+
}, {
|
1341
|
+
exclude?: string[] | undefined;
|
1342
|
+
include?: string[] | undefined;
|
1343
|
+
}>>>;
|
1344
|
+
}>, {
|
1345
|
+
locale: Z.ZodObject<Z.objectUtil.extendShape<{
|
1346
|
+
source: Z.ZodEffects<Z.ZodString, string, string>;
|
1347
|
+
targets: Z.ZodArray<Z.ZodEffects<Z.ZodString, string, string>, "many">;
|
1348
|
+
}, {
|
1349
|
+
extraSource: Z.ZodOptional<Z.ZodEffects<Z.ZodString, string, string>>;
|
1350
|
+
}>, "strip", Z.ZodTypeAny, {
|
1351
|
+
source: string;
|
1352
|
+
targets: string[];
|
1353
|
+
extraSource?: string | undefined;
|
1354
|
+
}, {
|
1355
|
+
source: string;
|
1356
|
+
targets: string[];
|
1357
|
+
extraSource?: string | undefined;
|
1358
|
+
}>;
|
1359
|
+
}>, {
|
1360
|
+
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "flutter", "html", "json", "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"]>, Z.ZodObject<{
|
1361
|
+
include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
1362
|
+
path: Z.ZodString;
|
1363
|
+
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
1364
|
+
}, "strip", Z.ZodTypeAny, {
|
1365
|
+
path: string;
|
1366
|
+
delimiter?: "-" | "_" | null | undefined;
|
1367
|
+
}, {
|
1368
|
+
path: string;
|
1369
|
+
delimiter?: "-" | "_" | null | undefined;
|
1370
|
+
}>]>, "many">>;
|
1371
|
+
exclude: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
1372
|
+
path: Z.ZodString;
|
1373
|
+
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
1374
|
+
}, "strip", Z.ZodTypeAny, {
|
1375
|
+
path: string;
|
1376
|
+
delimiter?: "-" | "_" | null | undefined;
|
1377
|
+
}, {
|
1378
|
+
path: string;
|
1379
|
+
delimiter?: "-" | "_" | null | undefined;
|
1380
|
+
}>]>, "many">>>;
|
1381
|
+
injectLocale: Z.ZodOptional<Z.ZodArray<Z.ZodString, "many">>;
|
1382
|
+
}, "strip", Z.ZodTypeAny, {
|
1383
|
+
include: (string | {
|
1384
|
+
path: string;
|
1385
|
+
delimiter?: "-" | "_" | null | undefined;
|
1386
|
+
})[];
|
1387
|
+
exclude?: (string | {
|
1388
|
+
path: string;
|
1389
|
+
delimiter?: "-" | "_" | null | undefined;
|
1390
|
+
})[] | undefined;
|
1391
|
+
injectLocale?: string[] | undefined;
|
1392
|
+
}, {
|
1393
|
+
exclude?: (string | {
|
1394
|
+
path: string;
|
1395
|
+
delimiter?: "-" | "_" | null | undefined;
|
1396
|
+
})[] | undefined;
|
1397
|
+
include?: (string | {
|
1398
|
+
path: string;
|
1399
|
+
delimiter?: "-" | "_" | null | undefined;
|
1400
|
+
})[] | undefined;
|
1401
|
+
injectLocale?: string[] | undefined;
|
1402
|
+
}>>>;
|
1403
|
+
}>, {
|
1404
|
+
$schema: Z.ZodDefault<Z.ZodString>;
|
1405
|
+
}>, {
|
1406
|
+
provider: Z.ZodOptional<Z.ZodObject<{
|
1407
|
+
id: Z.ZodEnum<["openai", "anthropic"]>;
|
1171
1408
|
model: Z.ZodString;
|
1172
1409
|
prompt: Z.ZodString;
|
1173
1410
|
baseUrl: Z.ZodOptional<Z.ZodString>;
|
1174
|
-
}, {
|
1175
|
-
id: Z.ZodEnum<["openai", "anthropic"]>;
|
1176
|
-
}>, "strip", Z.ZodTypeAny, {
|
1411
|
+
}, "strip", Z.ZodTypeAny, {
|
1177
1412
|
id: "openai" | "anthropic";
|
1178
1413
|
model: string;
|
1179
1414
|
prompt: string;
|
@@ -1183,7 +1418,7 @@ declare const LATEST_CONFIG_DEFINITION: ConfigDefinition<Z.objectUtil.extendShap
|
|
1183
1418
|
model: string;
|
1184
1419
|
prompt: string;
|
1185
1420
|
baseUrl?: string | undefined;
|
1186
|
-
}
|
1421
|
+
}>>;
|
1187
1422
|
}>, {
|
1188
1423
|
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "flutter", "html", "json", "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"]>, Z.ZodObject<Z.objectUtil.extendShape<{
|
1189
1424
|
include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
@@ -1284,6 +1519,62 @@ declare const LATEST_CONFIG_DEFINITION: ConfigDefinition<Z.objectUtil.extendShap
|
|
1284
1519
|
lockedKeys?: string[] | undefined;
|
1285
1520
|
lockedPatterns?: string[] | undefined;
|
1286
1521
|
}>>>;
|
1522
|
+
}>, {
|
1523
|
+
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "flutter", "html", "json", "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"]>, Z.ZodObject<Z.objectUtil.extendShape<Z.objectUtil.extendShape<Z.objectUtil.extendShape<{
|
1524
|
+
include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
1525
|
+
path: Z.ZodString;
|
1526
|
+
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
1527
|
+
}, "strip", Z.ZodTypeAny, {
|
1528
|
+
path: string;
|
1529
|
+
delimiter?: "-" | "_" | null | undefined;
|
1530
|
+
}, {
|
1531
|
+
path: string;
|
1532
|
+
delimiter?: "-" | "_" | null | undefined;
|
1533
|
+
}>]>, "many">>;
|
1534
|
+
exclude: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
1535
|
+
path: Z.ZodString;
|
1536
|
+
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
1537
|
+
}, "strip", Z.ZodTypeAny, {
|
1538
|
+
path: string;
|
1539
|
+
delimiter?: "-" | "_" | null | undefined;
|
1540
|
+
}, {
|
1541
|
+
path: string;
|
1542
|
+
delimiter?: "-" | "_" | null | undefined;
|
1543
|
+
}>]>, "many">>>;
|
1544
|
+
injectLocale: Z.ZodOptional<Z.ZodArray<Z.ZodString, "many">>;
|
1545
|
+
}, {
|
1546
|
+
lockedKeys: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>>;
|
1547
|
+
}>, {
|
1548
|
+
lockedPatterns: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>>;
|
1549
|
+
}>, {
|
1550
|
+
ignoredKeys: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>>;
|
1551
|
+
}>, "strip", Z.ZodTypeAny, {
|
1552
|
+
include: (string | {
|
1553
|
+
path: string;
|
1554
|
+
delimiter?: "-" | "_" | null | undefined;
|
1555
|
+
})[];
|
1556
|
+
exclude?: (string | {
|
1557
|
+
path: string;
|
1558
|
+
delimiter?: "-" | "_" | null | undefined;
|
1559
|
+
})[] | undefined;
|
1560
|
+
injectLocale?: string[] | undefined;
|
1561
|
+
lockedKeys?: string[] | undefined;
|
1562
|
+
lockedPatterns?: string[] | undefined;
|
1563
|
+
ignoredKeys?: string[] | undefined;
|
1564
|
+
}, {
|
1565
|
+
exclude?: (string | {
|
1566
|
+
path: string;
|
1567
|
+
delimiter?: "-" | "_" | null | undefined;
|
1568
|
+
})[] | undefined;
|
1569
|
+
include?: (string | {
|
1570
|
+
path: string;
|
1571
|
+
delimiter?: "-" | "_" | null | undefined;
|
1572
|
+
})[] | undefined;
|
1573
|
+
injectLocale?: string[] | undefined;
|
1574
|
+
lockedKeys?: string[] | undefined;
|
1575
|
+
lockedPatterns?: string[] | undefined;
|
1576
|
+
ignoredKeys?: string[] | undefined;
|
1577
|
+
}>>>;
|
1287
1578
|
}>, Z.ZodRawShape>;
|
1288
1579
|
type I18nConfig = Z.infer<(typeof LATEST_CONFIG_DEFINITION)["schema"]>;
|
1289
1580
|
declare function parseI18nConfig(rawConfig: unknown): {
|
@@ -1305,14 +1596,10 @@ declare function parseI18nConfig(rawConfig: unknown): {
|
|
1305
1596
|
injectLocale?: string[] | undefined;
|
1306
1597
|
lockedKeys?: string[] | undefined;
|
1307
1598
|
lockedPatterns?: string[] | undefined;
|
1599
|
+
ignoredKeys?: string[] | undefined;
|
1308
1600
|
}>>;
|
1309
1601
|
$schema: string;
|
1310
1602
|
provider?: {
|
1311
|
-
id: "lingo";
|
1312
|
-
model: "best";
|
1313
|
-
prompt: string;
|
1314
|
-
baseUrl?: string | undefined;
|
1315
|
-
} | {
|
1316
1603
|
id: "openai" | "anthropic";
|
1317
1604
|
model: string;
|
1318
1605
|
prompt: string;
|
@@ -1338,14 +1625,10 @@ declare const defaultConfig: {
|
|
1338
1625
|
injectLocale?: string[] | undefined;
|
1339
1626
|
lockedKeys?: string[] | undefined;
|
1340
1627
|
lockedPatterns?: string[] | undefined;
|
1628
|
+
ignoredKeys?: string[] | undefined;
|
1341
1629
|
}>>;
|
1342
1630
|
$schema: string;
|
1343
1631
|
provider?: {
|
1344
|
-
id: "lingo";
|
1345
|
-
model: "best";
|
1346
|
-
prompt: string;
|
1347
|
-
baseUrl?: string | undefined;
|
1348
|
-
} | {
|
1349
1632
|
id: "openai" | "anthropic";
|
1350
1633
|
model: string;
|
1351
1634
|
prompt: string;
|
@@ -1353,4 +1636,4 @@ declare const defaultConfig: {
|
|
1353
1636
|
} | undefined;
|
1354
1637
|
};
|
1355
1638
|
|
1356
|
-
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, configV0Definition, configV1Definition, configV1_1Definition, configV1_2Definition, configV1_3Definition, configV1_4Definition, configV1_5Definition, configV1_6Definition, configV1_7Definition, defaultConfig, getLocaleCodeDelimiter, localeCodeSchema, localeCodes, localeCodesFull, localeCodesFullExplicitRegion, localeCodesFullUnderscore, localeCodesShort, localeSchema, normalizeLocale, parseI18nConfig, resolveLocaleCode, resolveOverriddenLocale };
|
1639
|
+
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, defaultConfig, getLocaleCodeDelimiter, localeCodeSchema, localeCodes, localeCodesFull, localeCodesFullExplicitRegion, localeCodesFullUnderscore, localeCodesShort, localeSchema, normalizeLocale, parseI18nConfig, resolveLocaleCode, resolveOverriddenLocale };
|