@lingo.dev/_spec 0.33.1 → 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.
@@ -145,66 +145,31 @@
145
145
  "default": "https://lingo.dev/schema/i18n.json"
146
146
  },
147
147
  "provider": {
148
- "anyOf": [
149
- {
150
- "type": "object",
151
- "properties": {
152
- "id": {
153
- "type": "string",
154
- "const": "lingo"
155
- },
156
- "model": {
157
- "type": "string",
158
- "const": "best"
159
- },
160
- "prompt": {
161
- "type": "string"
162
- },
163
- "baseUrl": {
164
- "type": "string"
165
- }
166
- },
167
- "required": [
168
- "id",
169
- "model",
170
- "prompt"
171
- ],
172
- "additionalProperties": false
148
+ "type": "object",
149
+ "properties": {
150
+ "id": {
151
+ "type": "string",
152
+ "enum": [
153
+ "openai",
154
+ "anthropic"
155
+ ]
173
156
  },
174
- {
175
- "type": "object",
176
- "properties": {
177
- "id": {
178
- "type": "string",
179
- "enum": [
180
- "openai",
181
- "anthropic"
182
- ]
183
- },
184
- "model": {
185
- "type": "string"
186
- },
187
- "prompt": {
188
- "$ref": "#/properties/provider/anyOf/0/properties/prompt"
189
- },
190
- "baseUrl": {
191
- "$ref": "#/properties/provider/anyOf/0/properties/baseUrl"
192
- }
193
- },
194
- "required": [
195
- "id",
196
- "model",
197
- "prompt"
198
- ],
199
- "additionalProperties": false
157
+ "model": {
158
+ "type": "string"
159
+ },
160
+ "prompt": {
161
+ "type": "string"
162
+ },
163
+ "baseUrl": {
164
+ "type": "string"
200
165
  }
166
+ },
167
+ "required": [
168
+ "id",
169
+ "model",
170
+ "prompt"
201
171
  ],
202
- "default": {
203
- "id": "lingo",
204
- "model": "best",
205
- "baseUrl": "https://engine.lingo.dev",
206
- "prompt": ""
207
- }
172
+ "additionalProperties": false
208
173
  }
209
174
  },
210
175
  "required": [
package/build/index.cjs CHANGED
@@ -513,31 +513,17 @@ var configV1_4Definition = extendConfigDefinition(
513
513
  })
514
514
  }
515
515
  );
516
- var commonProviderSchema = _zod2.default.object({
517
- id: _zod2.default.string(),
516
+ var providerSchema = _zod2.default.object({
517
+ id: _zod2.default.enum(["openai", "anthropic"]),
518
518
  model: _zod2.default.string(),
519
519
  prompt: _zod2.default.string(),
520
520
  baseUrl: _zod2.default.string().optional()
521
521
  });
522
- var providerSchema = _zod2.default.union([
523
- commonProviderSchema.extend({
524
- id: _zod2.default.literal("lingo"),
525
- model: _zod2.default.literal("best")
526
- }),
527
- commonProviderSchema.extend({
528
- id: _zod2.default.enum(["openai", "anthropic"])
529
- })
530
- ]);
531
522
  var configV1_5Definition = extendConfigDefinition(
532
523
  configV1_4Definition,
533
524
  {
534
525
  createSchema: (baseSchema) => baseSchema.extend({
535
- provider: providerSchema.default({
536
- id: "lingo",
537
- model: "best",
538
- baseUrl: "https://engine.lingo.dev",
539
- prompt: ""
540
- }).optional()
526
+ provider: providerSchema.optional()
541
527
  }),
542
528
  createDefaultValue: (baseDefaultValue) => ({
543
529
  ...baseDefaultValue,
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.ZodDefault<Z.ZodUnion<[Z.ZodObject<Z.objectUtil.extendShape<{
534
- id: Z.ZodString;
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.ZodDefault<Z.ZodUnion<[Z.ZodObject<Z.objectUtil.extendShape<{
705
- id: Z.ZodString;
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.ZodDefault<Z.ZodUnion<[Z.ZodObject<Z.objectUtil.extendShape<{
928
- id: Z.ZodString;
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<{
@@ -1203,32 +1143,12 @@ declare const configV1_8Definition: ConfigDefinition<Z.objectUtil.extendShape<Z.
1203
1143
  }>, {
1204
1144
  $schema: Z.ZodDefault<Z.ZodString>;
1205
1145
  }>, {
1206
- provider: Z.ZodOptional<Z.ZodDefault<Z.ZodUnion<[Z.ZodObject<Z.objectUtil.extendShape<{
1207
- id: Z.ZodString;
1208
- model: Z.ZodString;
1209
- prompt: Z.ZodString;
1210
- baseUrl: Z.ZodOptional<Z.ZodString>;
1211
- }, {
1212
- id: Z.ZodLiteral<"lingo">;
1213
- model: Z.ZodLiteral<"best">;
1214
- }>, "strip", Z.ZodTypeAny, {
1215
- id: "lingo";
1216
- model: "best";
1217
- prompt: string;
1218
- baseUrl?: string | undefined;
1219
- }, {
1220
- id: "lingo";
1221
- model: "best";
1222
- prompt: string;
1223
- baseUrl?: string | undefined;
1224
- }>, Z.ZodObject<Z.objectUtil.extendShape<{
1225
- id: Z.ZodString;
1146
+ provider: Z.ZodOptional<Z.ZodObject<{
1147
+ id: Z.ZodEnum<["openai", "anthropic"]>;
1226
1148
  model: Z.ZodString;
1227
1149
  prompt: Z.ZodString;
1228
1150
  baseUrl: Z.ZodOptional<Z.ZodString>;
1229
- }, {
1230
- id: Z.ZodEnum<["openai", "anthropic"]>;
1231
- }>, "strip", Z.ZodTypeAny, {
1151
+ }, "strip", Z.ZodTypeAny, {
1232
1152
  id: "openai" | "anthropic";
1233
1153
  model: string;
1234
1154
  prompt: string;
@@ -1238,7 +1158,7 @@ declare const configV1_8Definition: ConfigDefinition<Z.objectUtil.extendShape<Z.
1238
1158
  model: string;
1239
1159
  prompt: string;
1240
1160
  baseUrl?: string | undefined;
1241
- }>]>>>;
1161
+ }>>;
1242
1162
  }>, {
1243
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<{
1244
1164
  include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
@@ -1483,32 +1403,12 @@ declare const LATEST_CONFIG_DEFINITION: ConfigDefinition<Z.objectUtil.extendShap
1483
1403
  }>, {
1484
1404
  $schema: Z.ZodDefault<Z.ZodString>;
1485
1405
  }>, {
1486
- provider: Z.ZodOptional<Z.ZodDefault<Z.ZodUnion<[Z.ZodObject<Z.objectUtil.extendShape<{
1487
- id: Z.ZodString;
1488
- model: Z.ZodString;
1489
- prompt: Z.ZodString;
1490
- baseUrl: Z.ZodOptional<Z.ZodString>;
1491
- }, {
1492
- id: Z.ZodLiteral<"lingo">;
1493
- model: Z.ZodLiteral<"best">;
1494
- }>, "strip", Z.ZodTypeAny, {
1495
- id: "lingo";
1496
- model: "best";
1497
- prompt: string;
1498
- baseUrl?: string | undefined;
1499
- }, {
1500
- id: "lingo";
1501
- model: "best";
1502
- prompt: string;
1503
- baseUrl?: string | undefined;
1504
- }>, Z.ZodObject<Z.objectUtil.extendShape<{
1505
- id: Z.ZodString;
1406
+ provider: Z.ZodOptional<Z.ZodObject<{
1407
+ id: Z.ZodEnum<["openai", "anthropic"]>;
1506
1408
  model: Z.ZodString;
1507
1409
  prompt: Z.ZodString;
1508
1410
  baseUrl: Z.ZodOptional<Z.ZodString>;
1509
- }, {
1510
- id: Z.ZodEnum<["openai", "anthropic"]>;
1511
- }>, "strip", Z.ZodTypeAny, {
1411
+ }, "strip", Z.ZodTypeAny, {
1512
1412
  id: "openai" | "anthropic";
1513
1413
  model: string;
1514
1414
  prompt: string;
@@ -1518,7 +1418,7 @@ declare const LATEST_CONFIG_DEFINITION: ConfigDefinition<Z.objectUtil.extendShap
1518
1418
  model: string;
1519
1419
  prompt: string;
1520
1420
  baseUrl?: string | undefined;
1521
- }>]>>>;
1421
+ }>>;
1522
1422
  }>, {
1523
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<{
1524
1424
  include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
@@ -1700,11 +1600,6 @@ declare function parseI18nConfig(rawConfig: unknown): {
1700
1600
  }>>;
1701
1601
  $schema: string;
1702
1602
  provider?: {
1703
- id: "lingo";
1704
- model: "best";
1705
- prompt: string;
1706
- baseUrl?: string | undefined;
1707
- } | {
1708
1603
  id: "openai" | "anthropic";
1709
1604
  model: string;
1710
1605
  prompt: string;
@@ -1734,11 +1629,6 @@ declare const defaultConfig: {
1734
1629
  }>>;
1735
1630
  $schema: string;
1736
1631
  provider?: {
1737
- id: "lingo";
1738
- model: "best";
1739
- prompt: string;
1740
- baseUrl?: string | undefined;
1741
- } | {
1742
1632
  id: "openai" | "anthropic";
1743
1633
  model: string;
1744
1634
  prompt: string;
package/build/index.d.ts 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.ZodDefault<Z.ZodUnion<[Z.ZodObject<Z.objectUtil.extendShape<{
534
- id: Z.ZodString;
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.ZodDefault<Z.ZodUnion<[Z.ZodObject<Z.objectUtil.extendShape<{
705
- id: Z.ZodString;
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.ZodDefault<Z.ZodUnion<[Z.ZodObject<Z.objectUtil.extendShape<{
928
- id: Z.ZodString;
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<{
@@ -1203,32 +1143,12 @@ declare const configV1_8Definition: ConfigDefinition<Z.objectUtil.extendShape<Z.
1203
1143
  }>, {
1204
1144
  $schema: Z.ZodDefault<Z.ZodString>;
1205
1145
  }>, {
1206
- provider: Z.ZodOptional<Z.ZodDefault<Z.ZodUnion<[Z.ZodObject<Z.objectUtil.extendShape<{
1207
- id: Z.ZodString;
1208
- model: Z.ZodString;
1209
- prompt: Z.ZodString;
1210
- baseUrl: Z.ZodOptional<Z.ZodString>;
1211
- }, {
1212
- id: Z.ZodLiteral<"lingo">;
1213
- model: Z.ZodLiteral<"best">;
1214
- }>, "strip", Z.ZodTypeAny, {
1215
- id: "lingo";
1216
- model: "best";
1217
- prompt: string;
1218
- baseUrl?: string | undefined;
1219
- }, {
1220
- id: "lingo";
1221
- model: "best";
1222
- prompt: string;
1223
- baseUrl?: string | undefined;
1224
- }>, Z.ZodObject<Z.objectUtil.extendShape<{
1225
- id: Z.ZodString;
1146
+ provider: Z.ZodOptional<Z.ZodObject<{
1147
+ id: Z.ZodEnum<["openai", "anthropic"]>;
1226
1148
  model: Z.ZodString;
1227
1149
  prompt: Z.ZodString;
1228
1150
  baseUrl: Z.ZodOptional<Z.ZodString>;
1229
- }, {
1230
- id: Z.ZodEnum<["openai", "anthropic"]>;
1231
- }>, "strip", Z.ZodTypeAny, {
1151
+ }, "strip", Z.ZodTypeAny, {
1232
1152
  id: "openai" | "anthropic";
1233
1153
  model: string;
1234
1154
  prompt: string;
@@ -1238,7 +1158,7 @@ declare const configV1_8Definition: ConfigDefinition<Z.objectUtil.extendShape<Z.
1238
1158
  model: string;
1239
1159
  prompt: string;
1240
1160
  baseUrl?: string | undefined;
1241
- }>]>>>;
1161
+ }>>;
1242
1162
  }>, {
1243
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<{
1244
1164
  include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
@@ -1483,32 +1403,12 @@ declare const LATEST_CONFIG_DEFINITION: ConfigDefinition<Z.objectUtil.extendShap
1483
1403
  }>, {
1484
1404
  $schema: Z.ZodDefault<Z.ZodString>;
1485
1405
  }>, {
1486
- provider: Z.ZodOptional<Z.ZodDefault<Z.ZodUnion<[Z.ZodObject<Z.objectUtil.extendShape<{
1487
- id: Z.ZodString;
1488
- model: Z.ZodString;
1489
- prompt: Z.ZodString;
1490
- baseUrl: Z.ZodOptional<Z.ZodString>;
1491
- }, {
1492
- id: Z.ZodLiteral<"lingo">;
1493
- model: Z.ZodLiteral<"best">;
1494
- }>, "strip", Z.ZodTypeAny, {
1495
- id: "lingo";
1496
- model: "best";
1497
- prompt: string;
1498
- baseUrl?: string | undefined;
1499
- }, {
1500
- id: "lingo";
1501
- model: "best";
1502
- prompt: string;
1503
- baseUrl?: string | undefined;
1504
- }>, Z.ZodObject<Z.objectUtil.extendShape<{
1505
- id: Z.ZodString;
1406
+ provider: Z.ZodOptional<Z.ZodObject<{
1407
+ id: Z.ZodEnum<["openai", "anthropic"]>;
1506
1408
  model: Z.ZodString;
1507
1409
  prompt: Z.ZodString;
1508
1410
  baseUrl: Z.ZodOptional<Z.ZodString>;
1509
- }, {
1510
- id: Z.ZodEnum<["openai", "anthropic"]>;
1511
- }>, "strip", Z.ZodTypeAny, {
1411
+ }, "strip", Z.ZodTypeAny, {
1512
1412
  id: "openai" | "anthropic";
1513
1413
  model: string;
1514
1414
  prompt: string;
@@ -1518,7 +1418,7 @@ declare const LATEST_CONFIG_DEFINITION: ConfigDefinition<Z.objectUtil.extendShap
1518
1418
  model: string;
1519
1419
  prompt: string;
1520
1420
  baseUrl?: string | undefined;
1521
- }>]>>>;
1421
+ }>>;
1522
1422
  }>, {
1523
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<{
1524
1424
  include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
@@ -1700,11 +1600,6 @@ declare function parseI18nConfig(rawConfig: unknown): {
1700
1600
  }>>;
1701
1601
  $schema: string;
1702
1602
  provider?: {
1703
- id: "lingo";
1704
- model: "best";
1705
- prompt: string;
1706
- baseUrl?: string | undefined;
1707
- } | {
1708
1603
  id: "openai" | "anthropic";
1709
1604
  model: string;
1710
1605
  prompt: string;
@@ -1734,11 +1629,6 @@ declare const defaultConfig: {
1734
1629
  }>>;
1735
1630
  $schema: string;
1736
1631
  provider?: {
1737
- id: "lingo";
1738
- model: "best";
1739
- prompt: string;
1740
- baseUrl?: string | undefined;
1741
- } | {
1742
1632
  id: "openai" | "anthropic";
1743
1633
  model: string;
1744
1634
  prompt: string;
package/build/index.mjs CHANGED
@@ -513,31 +513,17 @@ var configV1_4Definition = extendConfigDefinition(
513
513
  })
514
514
  }
515
515
  );
516
- var commonProviderSchema = Z3.object({
517
- id: Z3.string(),
516
+ var providerSchema = Z3.object({
517
+ id: Z3.enum(["openai", "anthropic"]),
518
518
  model: Z3.string(),
519
519
  prompt: Z3.string(),
520
520
  baseUrl: Z3.string().optional()
521
521
  });
522
- var providerSchema = Z3.union([
523
- commonProviderSchema.extend({
524
- id: Z3.literal("lingo"),
525
- model: Z3.literal("best")
526
- }),
527
- commonProviderSchema.extend({
528
- id: Z3.enum(["openai", "anthropic"])
529
- })
530
- ]);
531
522
  var configV1_5Definition = extendConfigDefinition(
532
523
  configV1_4Definition,
533
524
  {
534
525
  createSchema: (baseSchema) => baseSchema.extend({
535
- provider: providerSchema.default({
536
- id: "lingo",
537
- model: "best",
538
- baseUrl: "https://engine.lingo.dev",
539
- prompt: ""
540
- }).optional()
526
+ provider: providerSchema.optional()
541
527
  }),
542
528
  createDefaultValue: (baseDefaultValue) => ({
543
529
  ...baseDefaultValue,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lingo.dev/_spec",
3
- "version": "0.33.1",
3
+ "version": "0.33.2",
4
4
  "description": "Lingo.dev open specification",
5
5
  "private": false,
6
6
  "publishConfig": {