@openspecui/core 6.0.0-beta.1 → 6.0.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.
- package/dist/{cli-projection-CBvIiy5p.d.mts → cli-projection-D97_RM6V.d.mts} +9 -9
- package/dist/cli-projection.d.mts +5 -5
- package/dist/{command-result-CuWzPRAT.d.mts → command-result-CfME21jF.d.mts} +91 -91
- package/dist/{dashboard-summary-transport-Dskh3E9-.d.mts → dashboard-summary-transport-CwQpcPXI.d.mts} +1347 -1191
- package/dist/dashboard-summary-transport.d.mts +17 -17
- package/dist/{document-translation-D50BnvVh.d.mts → document-translation-D9bhVMu9.d.mts} +102 -102
- package/dist/document-translation.d.mts +1 -1
- package/dist/{hosted-app-BPU4OR41.mjs → hosted-app-Y7yqlPBG.mjs} +1 -1
- package/dist/hosted-app.d.mts +17 -17
- package/dist/hosted-app.mjs +2 -2
- package/dist/{hosted-contract-CcRnb51e.mjs → hosted-contract-BuhF_tuQ.mjs} +5 -2
- package/dist/hosted-contract.d.mts +17 -17
- package/dist/hosted-contract.mjs +1 -1
- package/dist/index.d.mts +17 -17
- package/dist/index.mjs +6 -3
- package/dist/{local-download-profiles-bYSSKmtx.d.mts → local-download-profiles-D0EDIDY3.d.mts} +1 -1
- package/dist/local-download-profiles.d.mts +2 -2
- package/dist/{notifications-Ak6LdCaL.d.mts → notifications-APukMHjf.d.mts} +20 -20
- package/dist/notifications.d.mts +2 -2
- package/dist/{openspec-projection-DU7RFRyA.d.mts → openspec-projection-CeRyRol_.d.mts} +1 -1
- package/dist/openspec-projection.d.mts +2 -2
- package/dist/{opsx-entity-6PnbYZZp.d.mts → opsx-entity-O_EFhltR.d.mts} +2 -2
- package/dist/opsx-entity.d.mts +7 -7
- package/dist/{opsx-schema-detail-CiqCYl2F.d.mts → opsx-schema-detail-BTksrDp1.d.mts} +2 -2
- package/dist/opsx-schema-detail.d.mts +8 -8
- package/dist/{opsx-types-Fs0tRnL2.d.mts → opsx-types-BYSPqX85.d.mts} +97 -97
- package/dist/planning-cli-projection.d.mts +17 -17
- package/dist/{schemas-D-6yi_I-.d.mts → schemas-BLWVYKEk.d.mts} +120 -120
- package/dist/{sounds-C24SzEHX.d.mts → sounds-BLspIXhv.d.mts} +9 -9
- package/dist/sounds.d.mts +1 -1
- package/dist/spec-catalog.d.mts +17 -17
- package/dist/{store-mutation-protocol-3TzQ6ete.d.mts → store-mutation-protocol-B6AF69kW.d.mts} +24 -24
- package/dist/store-mutation-protocol.d.mts +1 -1
- package/dist/{store-types-CmDVyObq.d.mts → store-types-pd0g35dI.d.mts} +1 -1
- package/dist/store-types.d.mts +5 -5
- package/dist/task-progress.d.mts +6 -6
- package/dist/{terminal-audio-Rj1pLeSw.d.mts → terminal-audio-DuJNjIJ3.d.mts} +2 -2
- package/dist/terminal-audio.d.mts +2 -2
- package/dist/terminal-control.d.mts +2 -2
- package/dist/{terminal-invocation-G19ieMZy.d.mts → terminal-invocation-C4EE7MeN.d.mts} +81 -81
- package/dist/terminal-invocation.d.mts +1 -1
- package/dist/{translator-CNmE1fAm.d.mts → translator-BgYwP0UT.d.mts} +173 -173
- package/dist/translator.d.mts +1 -1
- package/package.json +1 -1
|
@@ -231,7 +231,7 @@ declare const TranslationDownloadGroupPlanSchema: z.ZodObject<{
|
|
|
231
231
|
sourceUrl?: string | undefined;
|
|
232
232
|
raw?: unknown;
|
|
233
233
|
}[];
|
|
234
|
-
status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "
|
|
234
|
+
status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
|
|
235
235
|
error?: string | undefined;
|
|
236
236
|
description?: string | undefined;
|
|
237
237
|
profile?: string | undefined;
|
|
@@ -259,7 +259,7 @@ declare const TranslationDownloadGroupPlanSchema: z.ZodObject<{
|
|
|
259
259
|
sourceUrl?: string | undefined;
|
|
260
260
|
raw?: unknown;
|
|
261
261
|
}[];
|
|
262
|
-
status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "
|
|
262
|
+
status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
|
|
263
263
|
error?: string | undefined;
|
|
264
264
|
description?: string | undefined;
|
|
265
265
|
profile?: string | undefined;
|
|
@@ -481,11 +481,11 @@ declare const LocalModelProfileManifestSchema: z.ZodObject<{
|
|
|
481
481
|
}>>>;
|
|
482
482
|
groupOrder: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
483
483
|
}, "strip", z.ZodTypeAny, {
|
|
484
|
+
source: "huggingface";
|
|
484
485
|
revision: string;
|
|
485
486
|
commitHash: string;
|
|
486
487
|
shortCommitHash: string;
|
|
487
488
|
modelId: string;
|
|
488
|
-
source: "huggingface";
|
|
489
489
|
endpoint: string;
|
|
490
490
|
fetchedAt: number;
|
|
491
491
|
updatedAt: number;
|
|
@@ -515,11 +515,11 @@ declare const LocalModelProfileManifestSchema: z.ZodObject<{
|
|
|
515
515
|
groupOrder: string[];
|
|
516
516
|
raw?: unknown;
|
|
517
517
|
}, {
|
|
518
|
+
source: "huggingface";
|
|
518
519
|
revision: string;
|
|
519
520
|
commitHash: string;
|
|
520
521
|
shortCommitHash: string;
|
|
521
522
|
modelId: string;
|
|
522
|
-
source: "huggingface";
|
|
523
523
|
fetchedAt: number;
|
|
524
524
|
updatedAt: number;
|
|
525
525
|
raw?: unknown;
|
|
@@ -560,7 +560,7 @@ declare const LocalModelLifecycleFileStateSchema: z.ZodObject<{
|
|
|
560
560
|
error: z.ZodOptional<z.ZodString>;
|
|
561
561
|
}, "strip", z.ZodTypeAny, {
|
|
562
562
|
path: string;
|
|
563
|
-
status: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "
|
|
563
|
+
status: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting";
|
|
564
564
|
required: boolean;
|
|
565
565
|
error?: string | undefined;
|
|
566
566
|
sizeBytes?: number | undefined;
|
|
@@ -568,10 +568,10 @@ declare const LocalModelLifecycleFileStateSchema: z.ZodObject<{
|
|
|
568
568
|
downloadedBytes?: number | undefined;
|
|
569
569
|
}, {
|
|
570
570
|
path: string;
|
|
571
|
-
status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "
|
|
571
|
+
status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
|
|
572
572
|
error?: string | undefined;
|
|
573
|
-
sizeBytes?: number | undefined;
|
|
574
573
|
required?: boolean | undefined;
|
|
574
|
+
sizeBytes?: number | undefined;
|
|
575
575
|
updatedAt?: number | undefined;
|
|
576
576
|
downloadedBytes?: number | undefined;
|
|
577
577
|
}>;
|
|
@@ -598,7 +598,7 @@ declare const LocalModelLifecycleGroupStateSchema: z.ZodObject<{
|
|
|
598
598
|
error: z.ZodOptional<z.ZodString>;
|
|
599
599
|
}, "strip", z.ZodTypeAny, {
|
|
600
600
|
path: string;
|
|
601
|
-
status: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "
|
|
601
|
+
status: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting";
|
|
602
602
|
required: boolean;
|
|
603
603
|
error?: string | undefined;
|
|
604
604
|
sizeBytes?: number | undefined;
|
|
@@ -606,19 +606,19 @@ declare const LocalModelLifecycleGroupStateSchema: z.ZodObject<{
|
|
|
606
606
|
downloadedBytes?: number | undefined;
|
|
607
607
|
}, {
|
|
608
608
|
path: string;
|
|
609
|
-
status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "
|
|
609
|
+
status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
|
|
610
610
|
error?: string | undefined;
|
|
611
|
-
sizeBytes?: number | undefined;
|
|
612
611
|
required?: boolean | undefined;
|
|
612
|
+
sizeBytes?: number | undefined;
|
|
613
613
|
updatedAt?: number | undefined;
|
|
614
614
|
downloadedBytes?: number | undefined;
|
|
615
615
|
}>, "many">>;
|
|
616
616
|
}, "strip", z.ZodTypeAny, {
|
|
617
|
-
status: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "
|
|
617
|
+
status: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting";
|
|
618
618
|
resumable: boolean;
|
|
619
619
|
files: {
|
|
620
620
|
path: string;
|
|
621
|
-
status: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "
|
|
621
|
+
status: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting";
|
|
622
622
|
required: boolean;
|
|
623
623
|
error?: string | undefined;
|
|
624
624
|
sizeBytes?: number | undefined;
|
|
@@ -636,7 +636,7 @@ declare const LocalModelLifecycleGroupStateSchema: z.ZodObject<{
|
|
|
636
636
|
installedAt?: number | undefined;
|
|
637
637
|
}, {
|
|
638
638
|
groupId: string;
|
|
639
|
-
status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "
|
|
639
|
+
status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
|
|
640
640
|
error?: string | undefined;
|
|
641
641
|
baseGroupId?: string | undefined;
|
|
642
642
|
rootDir?: string | undefined;
|
|
@@ -646,10 +646,10 @@ declare const LocalModelLifecycleGroupStateSchema: z.ZodObject<{
|
|
|
646
646
|
resumable?: boolean | undefined;
|
|
647
647
|
files?: {
|
|
648
648
|
path: string;
|
|
649
|
-
status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "
|
|
649
|
+
status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
|
|
650
650
|
error?: string | undefined;
|
|
651
|
-
sizeBytes?: number | undefined;
|
|
652
651
|
required?: boolean | undefined;
|
|
652
|
+
sizeBytes?: number | undefined;
|
|
653
653
|
updatedAt?: number | undefined;
|
|
654
654
|
downloadedBytes?: number | undefined;
|
|
655
655
|
}[] | undefined;
|
|
@@ -663,13 +663,13 @@ declare const LocalModelProfileLoadStateSchema: z.ZodObject<{
|
|
|
663
663
|
error: z.ZodOptional<z.ZodString>;
|
|
664
664
|
updatedAt: z.ZodOptional<z.ZodNumber>;
|
|
665
665
|
}, "strip", z.ZodTypeAny, {
|
|
666
|
-
status: "
|
|
666
|
+
status: "ready" | "error" | "loading" | "idle";
|
|
667
667
|
message?: string | undefined;
|
|
668
668
|
error?: string | undefined;
|
|
669
669
|
updatedAt?: number | undefined;
|
|
670
670
|
}, {
|
|
671
671
|
message?: string | undefined;
|
|
672
|
-
status?: "
|
|
672
|
+
status?: "ready" | "error" | "loading" | "idle" | undefined;
|
|
673
673
|
error?: string | undefined;
|
|
674
674
|
updatedAt?: number | undefined;
|
|
675
675
|
}>;
|
|
@@ -702,11 +702,10 @@ declare const LocalModelAssetLogSchema: z.ZodObject<{
|
|
|
702
702
|
updatedAt: z.ZodNumber;
|
|
703
703
|
}, "strip", z.ZodTypeAny, {
|
|
704
704
|
message: string;
|
|
705
|
-
status: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "
|
|
706
|
-
engineId: "local" | "local-ct2" | "local-llama";
|
|
705
|
+
status: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting";
|
|
707
706
|
modelId: string;
|
|
708
707
|
updatedAt: number;
|
|
709
|
-
|
|
708
|
+
engineId: "local" | "local-ct2" | "local-llama";
|
|
710
709
|
progress?: number | undefined;
|
|
711
710
|
bytesDownloaded?: number | undefined;
|
|
712
711
|
totalBytes?: number | undefined;
|
|
@@ -717,14 +716,14 @@ declare const LocalModelAssetLogSchema: z.ZodObject<{
|
|
|
717
716
|
downloadedBytes?: number | undefined;
|
|
718
717
|
}[] | undefined;
|
|
719
718
|
groupId?: string | undefined;
|
|
719
|
+
selectedGroupId?: string | undefined;
|
|
720
720
|
sessionId?: string | undefined;
|
|
721
721
|
}, {
|
|
722
722
|
message: string;
|
|
723
|
-
status: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "
|
|
724
|
-
engineId: "local" | "local-ct2" | "local-llama";
|
|
723
|
+
status: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting";
|
|
725
724
|
modelId: string;
|
|
726
725
|
updatedAt: number;
|
|
727
|
-
|
|
726
|
+
engineId: "local" | "local-ct2" | "local-llama";
|
|
728
727
|
progress?: number | undefined;
|
|
729
728
|
bytesDownloaded?: number | undefined;
|
|
730
729
|
totalBytes?: number | undefined;
|
|
@@ -735,6 +734,7 @@ declare const LocalModelAssetLogSchema: z.ZodObject<{
|
|
|
735
734
|
downloadedBytes?: number | undefined;
|
|
736
735
|
}[] | undefined;
|
|
737
736
|
groupId?: string | undefined;
|
|
737
|
+
selectedGroupId?: string | undefined;
|
|
738
738
|
sessionId?: string | undefined;
|
|
739
739
|
}>;
|
|
740
740
|
type LocalModelAssetLog = z.infer<typeof LocalModelAssetLogSchema>;
|
|
@@ -826,7 +826,7 @@ declare const LocalModelAssetPlanSnapshotSchema: z.ZodObject<{
|
|
|
826
826
|
sourceUrl?: string | undefined;
|
|
827
827
|
raw?: unknown;
|
|
828
828
|
}[];
|
|
829
|
-
status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "
|
|
829
|
+
status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
|
|
830
830
|
error?: string | undefined;
|
|
831
831
|
description?: string | undefined;
|
|
832
832
|
profile?: string | undefined;
|
|
@@ -854,7 +854,7 @@ declare const LocalModelAssetPlanSnapshotSchema: z.ZodObject<{
|
|
|
854
854
|
sourceUrl?: string | undefined;
|
|
855
855
|
raw?: unknown;
|
|
856
856
|
}[];
|
|
857
|
-
status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "
|
|
857
|
+
status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
|
|
858
858
|
error?: string | undefined;
|
|
859
859
|
description?: string | undefined;
|
|
860
860
|
profile?: string | undefined;
|
|
@@ -880,7 +880,6 @@ declare const LocalModelAssetPlanSnapshotSchema: z.ZodObject<{
|
|
|
880
880
|
raw?: unknown;
|
|
881
881
|
}[];
|
|
882
882
|
modelId: string;
|
|
883
|
-
selectedGroupId?: string | undefined;
|
|
884
883
|
profile?: string | undefined;
|
|
885
884
|
estimatedTotalBytes?: number | undefined;
|
|
886
885
|
groups?: {
|
|
@@ -897,7 +896,7 @@ declare const LocalModelAssetPlanSnapshotSchema: z.ZodObject<{
|
|
|
897
896
|
sourceUrl?: string | undefined;
|
|
898
897
|
raw?: unknown;
|
|
899
898
|
}[];
|
|
900
|
-
status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "
|
|
899
|
+
status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
|
|
901
900
|
error?: string | undefined;
|
|
902
901
|
description?: string | undefined;
|
|
903
902
|
profile?: string | undefined;
|
|
@@ -912,6 +911,7 @@ declare const LocalModelAssetPlanSnapshotSchema: z.ZodObject<{
|
|
|
912
911
|
totalBytes?: number | undefined;
|
|
913
912
|
resumable?: boolean | undefined;
|
|
914
913
|
}[] | undefined;
|
|
914
|
+
selectedGroupId?: string | undefined;
|
|
915
915
|
}, {
|
|
916
916
|
files: {
|
|
917
917
|
path: string;
|
|
@@ -923,7 +923,6 @@ declare const LocalModelAssetPlanSnapshotSchema: z.ZodObject<{
|
|
|
923
923
|
raw?: unknown;
|
|
924
924
|
}[];
|
|
925
925
|
modelId: string;
|
|
926
|
-
selectedGroupId?: string | undefined;
|
|
927
926
|
profile?: string | undefined;
|
|
928
927
|
estimatedTotalBytes?: number | undefined;
|
|
929
928
|
groups?: {
|
|
@@ -940,7 +939,7 @@ declare const LocalModelAssetPlanSnapshotSchema: z.ZodObject<{
|
|
|
940
939
|
sourceUrl?: string | undefined;
|
|
941
940
|
raw?: unknown;
|
|
942
941
|
}[];
|
|
943
|
-
status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "
|
|
942
|
+
status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
|
|
944
943
|
error?: string | undefined;
|
|
945
944
|
description?: string | undefined;
|
|
946
945
|
profile?: string | undefined;
|
|
@@ -955,6 +954,7 @@ declare const LocalModelAssetPlanSnapshotSchema: z.ZodObject<{
|
|
|
955
954
|
totalBytes?: number | undefined;
|
|
956
955
|
resumable?: boolean | undefined;
|
|
957
956
|
}[] | undefined;
|
|
957
|
+
selectedGroupId?: string | undefined;
|
|
958
958
|
}>;
|
|
959
959
|
type LocalModelAssetPlanSnapshot = z.infer<typeof LocalModelAssetPlanSnapshotSchema>;
|
|
960
960
|
declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
@@ -976,13 +976,13 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
|
976
976
|
error: z.ZodOptional<z.ZodString>;
|
|
977
977
|
updatedAt: z.ZodOptional<z.ZodNumber>;
|
|
978
978
|
}, "strip", z.ZodTypeAny, {
|
|
979
|
-
status: "
|
|
979
|
+
status: "ready" | "error" | "loading" | "idle";
|
|
980
980
|
message?: string | undefined;
|
|
981
981
|
error?: string | undefined;
|
|
982
982
|
updatedAt?: number | undefined;
|
|
983
983
|
}, {
|
|
984
984
|
message?: string | undefined;
|
|
985
|
-
status?: "
|
|
985
|
+
status?: "ready" | "error" | "loading" | "idle" | undefined;
|
|
986
986
|
error?: string | undefined;
|
|
987
987
|
updatedAt?: number | undefined;
|
|
988
988
|
}>>;
|
|
@@ -1081,11 +1081,11 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
|
1081
1081
|
}>>>;
|
|
1082
1082
|
groupOrder: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1083
1083
|
}, "strip", z.ZodTypeAny, {
|
|
1084
|
+
source: "huggingface";
|
|
1084
1085
|
revision: string;
|
|
1085
1086
|
commitHash: string;
|
|
1086
1087
|
shortCommitHash: string;
|
|
1087
1088
|
modelId: string;
|
|
1088
|
-
source: "huggingface";
|
|
1089
1089
|
endpoint: string;
|
|
1090
1090
|
fetchedAt: number;
|
|
1091
1091
|
updatedAt: number;
|
|
@@ -1115,11 +1115,11 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
|
1115
1115
|
groupOrder: string[];
|
|
1116
1116
|
raw?: unknown;
|
|
1117
1117
|
}, {
|
|
1118
|
+
source: "huggingface";
|
|
1118
1119
|
revision: string;
|
|
1119
1120
|
commitHash: string;
|
|
1120
1121
|
shortCommitHash: string;
|
|
1121
1122
|
modelId: string;
|
|
1122
|
-
source: "huggingface";
|
|
1123
1123
|
fetchedAt: number;
|
|
1124
1124
|
updatedAt: number;
|
|
1125
1125
|
raw?: unknown;
|
|
@@ -1171,7 +1171,7 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
|
1171
1171
|
error: z.ZodOptional<z.ZodString>;
|
|
1172
1172
|
}, "strip", z.ZodTypeAny, {
|
|
1173
1173
|
path: string;
|
|
1174
|
-
status: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "
|
|
1174
|
+
status: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting";
|
|
1175
1175
|
required: boolean;
|
|
1176
1176
|
error?: string | undefined;
|
|
1177
1177
|
sizeBytes?: number | undefined;
|
|
@@ -1179,19 +1179,19 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
|
1179
1179
|
downloadedBytes?: number | undefined;
|
|
1180
1180
|
}, {
|
|
1181
1181
|
path: string;
|
|
1182
|
-
status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "
|
|
1182
|
+
status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
|
|
1183
1183
|
error?: string | undefined;
|
|
1184
|
-
sizeBytes?: number | undefined;
|
|
1185
1184
|
required?: boolean | undefined;
|
|
1185
|
+
sizeBytes?: number | undefined;
|
|
1186
1186
|
updatedAt?: number | undefined;
|
|
1187
1187
|
downloadedBytes?: number | undefined;
|
|
1188
1188
|
}>, "many">>;
|
|
1189
1189
|
}, "strip", z.ZodTypeAny, {
|
|
1190
|
-
status: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "
|
|
1190
|
+
status: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting";
|
|
1191
1191
|
resumable: boolean;
|
|
1192
1192
|
files: {
|
|
1193
1193
|
path: string;
|
|
1194
|
-
status: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "
|
|
1194
|
+
status: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting";
|
|
1195
1195
|
required: boolean;
|
|
1196
1196
|
error?: string | undefined;
|
|
1197
1197
|
sizeBytes?: number | undefined;
|
|
@@ -1209,7 +1209,7 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
|
1209
1209
|
installedAt?: number | undefined;
|
|
1210
1210
|
}, {
|
|
1211
1211
|
groupId: string;
|
|
1212
|
-
status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "
|
|
1212
|
+
status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
|
|
1213
1213
|
error?: string | undefined;
|
|
1214
1214
|
baseGroupId?: string | undefined;
|
|
1215
1215
|
rootDir?: string | undefined;
|
|
@@ -1219,10 +1219,10 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
|
1219
1219
|
resumable?: boolean | undefined;
|
|
1220
1220
|
files?: {
|
|
1221
1221
|
path: string;
|
|
1222
|
-
status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "
|
|
1222
|
+
status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
|
|
1223
1223
|
error?: string | undefined;
|
|
1224
|
-
sizeBytes?: number | undefined;
|
|
1225
1224
|
required?: boolean | undefined;
|
|
1225
|
+
sizeBytes?: number | undefined;
|
|
1226
1226
|
updatedAt?: number | undefined;
|
|
1227
1227
|
downloadedBytes?: number | undefined;
|
|
1228
1228
|
}[] | undefined;
|
|
@@ -1317,7 +1317,7 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
|
1317
1317
|
sourceUrl?: string | undefined;
|
|
1318
1318
|
raw?: unknown;
|
|
1319
1319
|
}[];
|
|
1320
|
-
status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "
|
|
1320
|
+
status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
|
|
1321
1321
|
error?: string | undefined;
|
|
1322
1322
|
description?: string | undefined;
|
|
1323
1323
|
profile?: string | undefined;
|
|
@@ -1345,7 +1345,7 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
|
1345
1345
|
sourceUrl?: string | undefined;
|
|
1346
1346
|
raw?: unknown;
|
|
1347
1347
|
}[];
|
|
1348
|
-
status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "
|
|
1348
|
+
status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
|
|
1349
1349
|
error?: string | undefined;
|
|
1350
1350
|
description?: string | undefined;
|
|
1351
1351
|
profile?: string | undefined;
|
|
@@ -1371,7 +1371,6 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
|
1371
1371
|
raw?: unknown;
|
|
1372
1372
|
}[];
|
|
1373
1373
|
modelId: string;
|
|
1374
|
-
selectedGroupId?: string | undefined;
|
|
1375
1374
|
profile?: string | undefined;
|
|
1376
1375
|
estimatedTotalBytes?: number | undefined;
|
|
1377
1376
|
groups?: {
|
|
@@ -1388,7 +1387,7 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
|
1388
1387
|
sourceUrl?: string | undefined;
|
|
1389
1388
|
raw?: unknown;
|
|
1390
1389
|
}[];
|
|
1391
|
-
status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "
|
|
1390
|
+
status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
|
|
1392
1391
|
error?: string | undefined;
|
|
1393
1392
|
description?: string | undefined;
|
|
1394
1393
|
profile?: string | undefined;
|
|
@@ -1403,6 +1402,7 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
|
1403
1402
|
totalBytes?: number | undefined;
|
|
1404
1403
|
resumable?: boolean | undefined;
|
|
1405
1404
|
}[] | undefined;
|
|
1405
|
+
selectedGroupId?: string | undefined;
|
|
1406
1406
|
}, {
|
|
1407
1407
|
files: {
|
|
1408
1408
|
path: string;
|
|
@@ -1414,7 +1414,6 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
|
1414
1414
|
raw?: unknown;
|
|
1415
1415
|
}[];
|
|
1416
1416
|
modelId: string;
|
|
1417
|
-
selectedGroupId?: string | undefined;
|
|
1418
1417
|
profile?: string | undefined;
|
|
1419
1418
|
estimatedTotalBytes?: number | undefined;
|
|
1420
1419
|
groups?: {
|
|
@@ -1431,7 +1430,7 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
|
1431
1430
|
sourceUrl?: string | undefined;
|
|
1432
1431
|
raw?: unknown;
|
|
1433
1432
|
}[];
|
|
1434
|
-
status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "
|
|
1433
|
+
status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
|
|
1435
1434
|
error?: string | undefined;
|
|
1436
1435
|
description?: string | undefined;
|
|
1437
1436
|
profile?: string | undefined;
|
|
@@ -1446,6 +1445,7 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
|
1446
1445
|
totalBytes?: number | undefined;
|
|
1447
1446
|
resumable?: boolean | undefined;
|
|
1448
1447
|
}[] | undefined;
|
|
1448
|
+
selectedGroupId?: string | undefined;
|
|
1449
1449
|
}>>;
|
|
1450
1450
|
files: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1451
1451
|
path: z.ZodString;
|
|
@@ -1461,7 +1461,8 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
|
1461
1461
|
downloadedBytes?: number | undefined;
|
|
1462
1462
|
}>, "many">>;
|
|
1463
1463
|
}, "strip", z.ZodTypeAny, {
|
|
1464
|
-
status: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "
|
|
1464
|
+
status: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting";
|
|
1465
|
+
version: 2;
|
|
1465
1466
|
resumable: boolean;
|
|
1466
1467
|
selected: boolean;
|
|
1467
1468
|
files: {
|
|
@@ -1470,19 +1471,18 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
|
1470
1471
|
downloadedBytes?: number | undefined;
|
|
1471
1472
|
}[];
|
|
1472
1473
|
modelId: string;
|
|
1473
|
-
version: 2;
|
|
1474
1474
|
profileLoad: {
|
|
1475
|
-
status: "
|
|
1475
|
+
status: "ready" | "error" | "loading" | "idle";
|
|
1476
1476
|
message?: string | undefined;
|
|
1477
1477
|
error?: string | undefined;
|
|
1478
1478
|
updatedAt?: number | undefined;
|
|
1479
1479
|
};
|
|
1480
1480
|
groupsState: Record<string, {
|
|
1481
|
-
status: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "
|
|
1481
|
+
status: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting";
|
|
1482
1482
|
resumable: boolean;
|
|
1483
1483
|
files: {
|
|
1484
1484
|
path: string;
|
|
1485
|
-
status: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "
|
|
1485
|
+
status: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting";
|
|
1486
1486
|
required: boolean;
|
|
1487
1487
|
error?: string | undefined;
|
|
1488
1488
|
sizeBytes?: number | undefined;
|
|
@@ -1499,19 +1499,19 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
|
1499
1499
|
updatedAt?: number | undefined;
|
|
1500
1500
|
installedAt?: number | undefined;
|
|
1501
1501
|
}>;
|
|
1502
|
-
selectedGroupId?: string | undefined;
|
|
1503
1502
|
error?: string | undefined;
|
|
1504
1503
|
progress?: number | undefined;
|
|
1505
1504
|
bytesDownloaded?: number | undefined;
|
|
1506
1505
|
totalBytes?: number | undefined;
|
|
1507
1506
|
updatedAt?: number | undefined;
|
|
1508
1507
|
installedAt?: number | undefined;
|
|
1508
|
+
selectedGroupId?: string | undefined;
|
|
1509
1509
|
profileManifest?: {
|
|
1510
|
+
source: "huggingface";
|
|
1510
1511
|
revision: string;
|
|
1511
1512
|
commitHash: string;
|
|
1512
1513
|
shortCommitHash: string;
|
|
1513
1514
|
modelId: string;
|
|
1514
|
-
source: "huggingface";
|
|
1515
1515
|
endpoint: string;
|
|
1516
1516
|
fetchedAt: number;
|
|
1517
1517
|
updatedAt: number;
|
|
@@ -1552,7 +1552,6 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
|
1552
1552
|
raw?: unknown;
|
|
1553
1553
|
}[];
|
|
1554
1554
|
modelId: string;
|
|
1555
|
-
selectedGroupId?: string | undefined;
|
|
1556
1555
|
profile?: string | undefined;
|
|
1557
1556
|
estimatedTotalBytes?: number | undefined;
|
|
1558
1557
|
groups?: {
|
|
@@ -1569,7 +1568,7 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
|
1569
1568
|
sourceUrl?: string | undefined;
|
|
1570
1569
|
raw?: unknown;
|
|
1571
1570
|
}[];
|
|
1572
|
-
status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "
|
|
1571
|
+
status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
|
|
1573
1572
|
error?: string | undefined;
|
|
1574
1573
|
description?: string | undefined;
|
|
1575
1574
|
profile?: string | undefined;
|
|
@@ -1584,12 +1583,13 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
|
1584
1583
|
totalBytes?: number | undefined;
|
|
1585
1584
|
resumable?: boolean | undefined;
|
|
1586
1585
|
}[] | undefined;
|
|
1586
|
+
selectedGroupId?: string | undefined;
|
|
1587
1587
|
} | undefined;
|
|
1588
1588
|
}, {
|
|
1589
1589
|
modelId: string;
|
|
1590
|
-
|
|
1591
|
-
status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
|
|
1590
|
+
status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
|
|
1592
1591
|
error?: string | undefined;
|
|
1592
|
+
version?: 2 | undefined;
|
|
1593
1593
|
progress?: number | undefined;
|
|
1594
1594
|
bytesDownloaded?: number | undefined;
|
|
1595
1595
|
totalBytes?: number | undefined;
|
|
@@ -1602,19 +1602,19 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
|
1602
1602
|
}[] | undefined;
|
|
1603
1603
|
updatedAt?: number | undefined;
|
|
1604
1604
|
installedAt?: number | undefined;
|
|
1605
|
-
|
|
1605
|
+
selectedGroupId?: string | undefined;
|
|
1606
1606
|
profileLoad?: {
|
|
1607
1607
|
message?: string | undefined;
|
|
1608
|
-
status?: "
|
|
1608
|
+
status?: "ready" | "error" | "loading" | "idle" | undefined;
|
|
1609
1609
|
error?: string | undefined;
|
|
1610
1610
|
updatedAt?: number | undefined;
|
|
1611
1611
|
} | undefined;
|
|
1612
1612
|
profileManifest?: {
|
|
1613
|
+
source: "huggingface";
|
|
1613
1614
|
revision: string;
|
|
1614
1615
|
commitHash: string;
|
|
1615
1616
|
shortCommitHash: string;
|
|
1616
1617
|
modelId: string;
|
|
1617
|
-
source: "huggingface";
|
|
1618
1618
|
fetchedAt: number;
|
|
1619
1619
|
updatedAt: number;
|
|
1620
1620
|
raw?: unknown;
|
|
@@ -1646,7 +1646,7 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
|
1646
1646
|
} | undefined;
|
|
1647
1647
|
groupsState?: Record<string, {
|
|
1648
1648
|
groupId: string;
|
|
1649
|
-
status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "
|
|
1649
|
+
status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
|
|
1650
1650
|
error?: string | undefined;
|
|
1651
1651
|
baseGroupId?: string | undefined;
|
|
1652
1652
|
rootDir?: string | undefined;
|
|
@@ -1656,10 +1656,10 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
|
1656
1656
|
resumable?: boolean | undefined;
|
|
1657
1657
|
files?: {
|
|
1658
1658
|
path: string;
|
|
1659
|
-
status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "
|
|
1659
|
+
status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
|
|
1660
1660
|
error?: string | undefined;
|
|
1661
|
-
sizeBytes?: number | undefined;
|
|
1662
1661
|
required?: boolean | undefined;
|
|
1662
|
+
sizeBytes?: number | undefined;
|
|
1663
1663
|
updatedAt?: number | undefined;
|
|
1664
1664
|
downloadedBytes?: number | undefined;
|
|
1665
1665
|
}[] | undefined;
|
|
@@ -1677,7 +1677,6 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
|
1677
1677
|
raw?: unknown;
|
|
1678
1678
|
}[];
|
|
1679
1679
|
modelId: string;
|
|
1680
|
-
selectedGroupId?: string | undefined;
|
|
1681
1680
|
profile?: string | undefined;
|
|
1682
1681
|
estimatedTotalBytes?: number | undefined;
|
|
1683
1682
|
groups?: {
|
|
@@ -1694,7 +1693,7 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
|
1694
1693
|
sourceUrl?: string | undefined;
|
|
1695
1694
|
raw?: unknown;
|
|
1696
1695
|
}[];
|
|
1697
|
-
status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "
|
|
1696
|
+
status?: "error" | "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "deleting" | undefined;
|
|
1698
1697
|
error?: string | undefined;
|
|
1699
1698
|
description?: string | undefined;
|
|
1700
1699
|
profile?: string | undefined;
|
|
@@ -1709,6 +1708,7 @@ declare const LocalModelAssetStateSchema: z.ZodObject<{
|
|
|
1709
1708
|
totalBytes?: number | undefined;
|
|
1710
1709
|
resumable?: boolean | undefined;
|
|
1711
1710
|
}[] | undefined;
|
|
1711
|
+
selectedGroupId?: string | undefined;
|
|
1712
1712
|
} | undefined;
|
|
1713
1713
|
}>;
|
|
1714
1714
|
type LocalModelAssetState = z.infer<typeof LocalModelAssetStateSchema>;
|
|
@@ -1793,12 +1793,12 @@ declare const TranslationEngineRuntimeStatusSchema: z.ZodObject<{
|
|
|
1793
1793
|
} & {
|
|
1794
1794
|
state: z.ZodEnum<["ready", "probing", "failed", "error", "not-applicable"]>;
|
|
1795
1795
|
}, "strip", z.ZodTypeAny, {
|
|
1796
|
-
state: "
|
|
1796
|
+
state: "ready" | "error" | "not-applicable" | "probing" | "failed";
|
|
1797
1797
|
message?: string | undefined;
|
|
1798
1798
|
error?: string | undefined;
|
|
1799
1799
|
progress?: number | undefined;
|
|
1800
1800
|
}, {
|
|
1801
|
-
state: "
|
|
1801
|
+
state: "ready" | "error" | "not-applicable" | "probing" | "failed";
|
|
1802
1802
|
message?: string | undefined;
|
|
1803
1803
|
error?: string | undefined;
|
|
1804
1804
|
progress?: number | undefined;
|
|
@@ -1816,12 +1816,12 @@ declare const TranslationEngineAssetStatusSchema: z.ZodObject<{
|
|
|
1816
1816
|
} & {
|
|
1817
1817
|
state: z.ZodEnum<["ready", "missing", "downloading", "error", "not-applicable"]>;
|
|
1818
1818
|
}, "strip", z.ZodTypeAny, {
|
|
1819
|
-
state: "
|
|
1819
|
+
state: "ready" | "error" | "downloading" | "missing" | "not-applicable";
|
|
1820
1820
|
message?: string | undefined;
|
|
1821
1821
|
error?: string | undefined;
|
|
1822
1822
|
progress?: number | undefined;
|
|
1823
1823
|
}, {
|
|
1824
|
-
state: "
|
|
1824
|
+
state: "ready" | "error" | "downloading" | "missing" | "not-applicable";
|
|
1825
1825
|
message?: string | undefined;
|
|
1826
1826
|
error?: string | undefined;
|
|
1827
1827
|
progress?: number | undefined;
|
|
@@ -1857,12 +1857,12 @@ declare const TranslationEngineLifecycleStatusSchema: z.ZodObject<{
|
|
|
1857
1857
|
} & {
|
|
1858
1858
|
state: z.ZodEnum<["ready", "probing", "failed", "error", "not-applicable"]>;
|
|
1859
1859
|
}, "strip", z.ZodTypeAny, {
|
|
1860
|
-
state: "
|
|
1860
|
+
state: "ready" | "error" | "not-applicable" | "probing" | "failed";
|
|
1861
1861
|
message?: string | undefined;
|
|
1862
1862
|
error?: string | undefined;
|
|
1863
1863
|
progress?: number | undefined;
|
|
1864
1864
|
}, {
|
|
1865
|
-
state: "
|
|
1865
|
+
state: "ready" | "error" | "not-applicable" | "probing" | "failed";
|
|
1866
1866
|
message?: string | undefined;
|
|
1867
1867
|
error?: string | undefined;
|
|
1868
1868
|
progress?: number | undefined;
|
|
@@ -1874,12 +1874,12 @@ declare const TranslationEngineLifecycleStatusSchema: z.ZodObject<{
|
|
|
1874
1874
|
} & {
|
|
1875
1875
|
state: z.ZodEnum<["ready", "missing", "downloading", "error", "not-applicable"]>;
|
|
1876
1876
|
}, "strip", z.ZodTypeAny, {
|
|
1877
|
-
state: "
|
|
1877
|
+
state: "ready" | "error" | "downloading" | "missing" | "not-applicable";
|
|
1878
1878
|
message?: string | undefined;
|
|
1879
1879
|
error?: string | undefined;
|
|
1880
1880
|
progress?: number | undefined;
|
|
1881
1881
|
}, {
|
|
1882
|
-
state: "
|
|
1882
|
+
state: "ready" | "error" | "downloading" | "missing" | "not-applicable";
|
|
1883
1883
|
message?: string | undefined;
|
|
1884
1884
|
error?: string | undefined;
|
|
1885
1885
|
progress?: number | undefined;
|
|
@@ -1893,13 +1893,13 @@ declare const TranslationEngineLifecycleStatusSchema: z.ZodObject<{
|
|
|
1893
1893
|
progress?: number | undefined;
|
|
1894
1894
|
};
|
|
1895
1895
|
runtime: {
|
|
1896
|
-
state: "
|
|
1896
|
+
state: "ready" | "error" | "not-applicable" | "probing" | "failed";
|
|
1897
1897
|
message?: string | undefined;
|
|
1898
1898
|
error?: string | undefined;
|
|
1899
1899
|
progress?: number | undefined;
|
|
1900
1900
|
};
|
|
1901
1901
|
assets: {
|
|
1902
|
-
state: "
|
|
1902
|
+
state: "ready" | "error" | "downloading" | "missing" | "not-applicable";
|
|
1903
1903
|
message?: string | undefined;
|
|
1904
1904
|
error?: string | undefined;
|
|
1905
1905
|
progress?: number | undefined;
|
|
@@ -1913,13 +1913,13 @@ declare const TranslationEngineLifecycleStatusSchema: z.ZodObject<{
|
|
|
1913
1913
|
progress?: number | undefined;
|
|
1914
1914
|
};
|
|
1915
1915
|
runtime: {
|
|
1916
|
-
state: "
|
|
1916
|
+
state: "ready" | "error" | "not-applicable" | "probing" | "failed";
|
|
1917
1917
|
message?: string | undefined;
|
|
1918
1918
|
error?: string | undefined;
|
|
1919
1919
|
progress?: number | undefined;
|
|
1920
1920
|
};
|
|
1921
1921
|
assets: {
|
|
1922
|
-
state: "
|
|
1922
|
+
state: "ready" | "error" | "downloading" | "missing" | "not-applicable";
|
|
1923
1923
|
message?: string | undefined;
|
|
1924
1924
|
error?: string | undefined;
|
|
1925
1925
|
progress?: number | undefined;
|
|
@@ -1992,12 +1992,12 @@ declare const TranslationEngineLifecycleEventSchema: z.ZodDiscriminatedUnion<"ty
|
|
|
1992
1992
|
} & {
|
|
1993
1993
|
state: z.ZodEnum<["ready", "probing", "failed", "error", "not-applicable"]>;
|
|
1994
1994
|
}, "strip", z.ZodTypeAny, {
|
|
1995
|
-
state: "
|
|
1995
|
+
state: "ready" | "error" | "not-applicable" | "probing" | "failed";
|
|
1996
1996
|
message?: string | undefined;
|
|
1997
1997
|
error?: string | undefined;
|
|
1998
1998
|
progress?: number | undefined;
|
|
1999
1999
|
}, {
|
|
2000
|
-
state: "
|
|
2000
|
+
state: "ready" | "error" | "not-applicable" | "probing" | "failed";
|
|
2001
2001
|
message?: string | undefined;
|
|
2002
2002
|
error?: string | undefined;
|
|
2003
2003
|
progress?: number | undefined;
|
|
@@ -2009,12 +2009,12 @@ declare const TranslationEngineLifecycleEventSchema: z.ZodDiscriminatedUnion<"ty
|
|
|
2009
2009
|
} & {
|
|
2010
2010
|
state: z.ZodEnum<["ready", "missing", "downloading", "error", "not-applicable"]>;
|
|
2011
2011
|
}, "strip", z.ZodTypeAny, {
|
|
2012
|
-
state: "
|
|
2012
|
+
state: "ready" | "error" | "downloading" | "missing" | "not-applicable";
|
|
2013
2013
|
message?: string | undefined;
|
|
2014
2014
|
error?: string | undefined;
|
|
2015
2015
|
progress?: number | undefined;
|
|
2016
2016
|
}, {
|
|
2017
|
-
state: "
|
|
2017
|
+
state: "ready" | "error" | "downloading" | "missing" | "not-applicable";
|
|
2018
2018
|
message?: string | undefined;
|
|
2019
2019
|
error?: string | undefined;
|
|
2020
2020
|
progress?: number | undefined;
|
|
@@ -2028,13 +2028,13 @@ declare const TranslationEngineLifecycleEventSchema: z.ZodDiscriminatedUnion<"ty
|
|
|
2028
2028
|
progress?: number | undefined;
|
|
2029
2029
|
};
|
|
2030
2030
|
runtime: {
|
|
2031
|
-
state: "
|
|
2031
|
+
state: "ready" | "error" | "not-applicable" | "probing" | "failed";
|
|
2032
2032
|
message?: string | undefined;
|
|
2033
2033
|
error?: string | undefined;
|
|
2034
2034
|
progress?: number | undefined;
|
|
2035
2035
|
};
|
|
2036
2036
|
assets: {
|
|
2037
|
-
state: "
|
|
2037
|
+
state: "ready" | "error" | "downloading" | "missing" | "not-applicable";
|
|
2038
2038
|
message?: string | undefined;
|
|
2039
2039
|
error?: string | undefined;
|
|
2040
2040
|
progress?: number | undefined;
|
|
@@ -2048,13 +2048,13 @@ declare const TranslationEngineLifecycleEventSchema: z.ZodDiscriminatedUnion<"ty
|
|
|
2048
2048
|
progress?: number | undefined;
|
|
2049
2049
|
};
|
|
2050
2050
|
runtime: {
|
|
2051
|
-
state: "
|
|
2051
|
+
state: "ready" | "error" | "not-applicable" | "probing" | "failed";
|
|
2052
2052
|
message?: string | undefined;
|
|
2053
2053
|
error?: string | undefined;
|
|
2054
2054
|
progress?: number | undefined;
|
|
2055
2055
|
};
|
|
2056
2056
|
assets: {
|
|
2057
|
-
state: "
|
|
2057
|
+
state: "ready" | "error" | "downloading" | "missing" | "not-applicable";
|
|
2058
2058
|
message?: string | undefined;
|
|
2059
2059
|
error?: string | undefined;
|
|
2060
2060
|
progress?: number | undefined;
|
|
@@ -2071,13 +2071,13 @@ declare const TranslationEngineLifecycleEventSchema: z.ZodDiscriminatedUnion<"ty
|
|
|
2071
2071
|
progress?: number | undefined;
|
|
2072
2072
|
};
|
|
2073
2073
|
runtime: {
|
|
2074
|
-
state: "
|
|
2074
|
+
state: "ready" | "error" | "not-applicable" | "probing" | "failed";
|
|
2075
2075
|
message?: string | undefined;
|
|
2076
2076
|
error?: string | undefined;
|
|
2077
2077
|
progress?: number | undefined;
|
|
2078
2078
|
};
|
|
2079
2079
|
assets: {
|
|
2080
|
-
state: "
|
|
2080
|
+
state: "ready" | "error" | "downloading" | "missing" | "not-applicable";
|
|
2081
2081
|
message?: string | undefined;
|
|
2082
2082
|
error?: string | undefined;
|
|
2083
2083
|
progress?: number | undefined;
|
|
@@ -2094,13 +2094,13 @@ declare const TranslationEngineLifecycleEventSchema: z.ZodDiscriminatedUnion<"ty
|
|
|
2094
2094
|
progress?: number | undefined;
|
|
2095
2095
|
};
|
|
2096
2096
|
runtime: {
|
|
2097
|
-
state: "
|
|
2097
|
+
state: "ready" | "error" | "not-applicable" | "probing" | "failed";
|
|
2098
2098
|
message?: string | undefined;
|
|
2099
2099
|
error?: string | undefined;
|
|
2100
2100
|
progress?: number | undefined;
|
|
2101
2101
|
};
|
|
2102
2102
|
assets: {
|
|
2103
|
-
state: "
|
|
2103
|
+
state: "ready" | "error" | "downloading" | "missing" | "not-applicable";
|
|
2104
2104
|
message?: string | undefined;
|
|
2105
2105
|
error?: string | undefined;
|
|
2106
2106
|
progress?: number | undefined;
|
|
@@ -2146,12 +2146,12 @@ declare const TranslationEngineLifecycleEventSchema: z.ZodDiscriminatedUnion<"ty
|
|
|
2146
2146
|
} & {
|
|
2147
2147
|
state: z.ZodEnum<["ready", "probing", "failed", "error", "not-applicable"]>;
|
|
2148
2148
|
}, "strip", z.ZodTypeAny, {
|
|
2149
|
-
state: "
|
|
2149
|
+
state: "ready" | "error" | "not-applicable" | "probing" | "failed";
|
|
2150
2150
|
message?: string | undefined;
|
|
2151
2151
|
error?: string | undefined;
|
|
2152
2152
|
progress?: number | undefined;
|
|
2153
2153
|
}, {
|
|
2154
|
-
state: "
|
|
2154
|
+
state: "ready" | "error" | "not-applicable" | "probing" | "failed";
|
|
2155
2155
|
message?: string | undefined;
|
|
2156
2156
|
error?: string | undefined;
|
|
2157
2157
|
progress?: number | undefined;
|
|
@@ -2163,12 +2163,12 @@ declare const TranslationEngineLifecycleEventSchema: z.ZodDiscriminatedUnion<"ty
|
|
|
2163
2163
|
} & {
|
|
2164
2164
|
state: z.ZodEnum<["ready", "missing", "downloading", "error", "not-applicable"]>;
|
|
2165
2165
|
}, "strip", z.ZodTypeAny, {
|
|
2166
|
-
state: "
|
|
2166
|
+
state: "ready" | "error" | "downloading" | "missing" | "not-applicable";
|
|
2167
2167
|
message?: string | undefined;
|
|
2168
2168
|
error?: string | undefined;
|
|
2169
2169
|
progress?: number | undefined;
|
|
2170
2170
|
}, {
|
|
2171
|
-
state: "
|
|
2171
|
+
state: "ready" | "error" | "downloading" | "missing" | "not-applicable";
|
|
2172
2172
|
message?: string | undefined;
|
|
2173
2173
|
error?: string | undefined;
|
|
2174
2174
|
progress?: number | undefined;
|
|
@@ -2182,13 +2182,13 @@ declare const TranslationEngineLifecycleEventSchema: z.ZodDiscriminatedUnion<"ty
|
|
|
2182
2182
|
progress?: number | undefined;
|
|
2183
2183
|
};
|
|
2184
2184
|
runtime: {
|
|
2185
|
-
state: "
|
|
2185
|
+
state: "ready" | "error" | "not-applicable" | "probing" | "failed";
|
|
2186
2186
|
message?: string | undefined;
|
|
2187
2187
|
error?: string | undefined;
|
|
2188
2188
|
progress?: number | undefined;
|
|
2189
2189
|
};
|
|
2190
2190
|
assets: {
|
|
2191
|
-
state: "
|
|
2191
|
+
state: "ready" | "error" | "downloading" | "missing" | "not-applicable";
|
|
2192
2192
|
message?: string | undefined;
|
|
2193
2193
|
error?: string | undefined;
|
|
2194
2194
|
progress?: number | undefined;
|
|
@@ -2202,13 +2202,13 @@ declare const TranslationEngineLifecycleEventSchema: z.ZodDiscriminatedUnion<"ty
|
|
|
2202
2202
|
progress?: number | undefined;
|
|
2203
2203
|
};
|
|
2204
2204
|
runtime: {
|
|
2205
|
-
state: "
|
|
2205
|
+
state: "ready" | "error" | "not-applicable" | "probing" | "failed";
|
|
2206
2206
|
message?: string | undefined;
|
|
2207
2207
|
error?: string | undefined;
|
|
2208
2208
|
progress?: number | undefined;
|
|
2209
2209
|
};
|
|
2210
2210
|
assets: {
|
|
2211
|
-
state: "
|
|
2211
|
+
state: "ready" | "error" | "downloading" | "missing" | "not-applicable";
|
|
2212
2212
|
message?: string | undefined;
|
|
2213
2213
|
error?: string | undefined;
|
|
2214
2214
|
progress?: number | undefined;
|
|
@@ -2225,13 +2225,13 @@ declare const TranslationEngineLifecycleEventSchema: z.ZodDiscriminatedUnion<"ty
|
|
|
2225
2225
|
progress?: number | undefined;
|
|
2226
2226
|
};
|
|
2227
2227
|
runtime: {
|
|
2228
|
-
state: "
|
|
2228
|
+
state: "ready" | "error" | "not-applicable" | "probing" | "failed";
|
|
2229
2229
|
message?: string | undefined;
|
|
2230
2230
|
error?: string | undefined;
|
|
2231
2231
|
progress?: number | undefined;
|
|
2232
2232
|
};
|
|
2233
2233
|
assets: {
|
|
2234
|
-
state: "
|
|
2234
|
+
state: "ready" | "error" | "downloading" | "missing" | "not-applicable";
|
|
2235
2235
|
message?: string | undefined;
|
|
2236
2236
|
error?: string | undefined;
|
|
2237
2237
|
progress?: number | undefined;
|
|
@@ -2248,13 +2248,13 @@ declare const TranslationEngineLifecycleEventSchema: z.ZodDiscriminatedUnion<"ty
|
|
|
2248
2248
|
progress?: number | undefined;
|
|
2249
2249
|
};
|
|
2250
2250
|
runtime: {
|
|
2251
|
-
state: "
|
|
2251
|
+
state: "ready" | "error" | "not-applicable" | "probing" | "failed";
|
|
2252
2252
|
message?: string | undefined;
|
|
2253
2253
|
error?: string | undefined;
|
|
2254
2254
|
progress?: number | undefined;
|
|
2255
2255
|
};
|
|
2256
2256
|
assets: {
|
|
2257
|
-
state: "
|
|
2257
|
+
state: "ready" | "error" | "downloading" | "missing" | "not-applicable";
|
|
2258
2258
|
message?: string | undefined;
|
|
2259
2259
|
error?: string | undefined;
|
|
2260
2260
|
progress?: number | undefined;
|
|
@@ -2380,26 +2380,26 @@ declare const TranslationOpenAISettingsSchema: z.ZodObject<{
|
|
|
2380
2380
|
token: z.ZodDefault<z.ZodString>;
|
|
2381
2381
|
model: z.ZodDefault<z.ZodString>;
|
|
2382
2382
|
}, "strip", z.ZodTypeAny, {
|
|
2383
|
-
model: string;
|
|
2384
2383
|
baseUrl: string;
|
|
2385
2384
|
token: string;
|
|
2385
|
+
model: string;
|
|
2386
2386
|
}, {
|
|
2387
|
-
model?: string | undefined;
|
|
2388
2387
|
baseUrl?: string | undefined;
|
|
2389
2388
|
token?: string | undefined;
|
|
2389
|
+
model?: string | undefined;
|
|
2390
2390
|
}>;
|
|
2391
2391
|
declare const TranslationOpenAISettingsUpdateSchema: z.ZodObject<{
|
|
2392
2392
|
baseUrl: z.ZodOptional<z.ZodString>;
|
|
2393
2393
|
token: z.ZodOptional<z.ZodString>;
|
|
2394
2394
|
model: z.ZodOptional<z.ZodString>;
|
|
2395
2395
|
}, "strip", z.ZodTypeAny, {
|
|
2396
|
-
model?: string | undefined;
|
|
2397
2396
|
baseUrl?: string | undefined;
|
|
2398
2397
|
token?: string | undefined;
|
|
2399
|
-
}, {
|
|
2400
2398
|
model?: string | undefined;
|
|
2399
|
+
}, {
|
|
2401
2400
|
baseUrl?: string | undefined;
|
|
2402
2401
|
token?: string | undefined;
|
|
2402
|
+
model?: string | undefined;
|
|
2403
2403
|
}>;
|
|
2404
2404
|
type TranslationOpenAISettings = z.infer<typeof TranslationOpenAISettingsSchema>;
|
|
2405
2405
|
declare const TranslationLocalSettingsSchema: z.ZodObject<{
|
|
@@ -2413,8 +2413,8 @@ declare const TranslationLocalSettingsSchema: z.ZodObject<{
|
|
|
2413
2413
|
memoryBudgetPercent: number;
|
|
2414
2414
|
selectedGroupId?: string | undefined;
|
|
2415
2415
|
}, {
|
|
2416
|
-
model?: string | undefined;
|
|
2417
2416
|
selectedGroupId?: string | undefined;
|
|
2417
|
+
model?: string | undefined;
|
|
2418
2418
|
hfEndpoint?: string | undefined;
|
|
2419
2419
|
memoryBudgetPercent?: number | undefined;
|
|
2420
2420
|
}>;
|
|
@@ -2424,13 +2424,13 @@ declare const TranslationLocalSettingsUpdateSchema: z.ZodObject<{
|
|
|
2424
2424
|
hfEndpoint: z.ZodOptional<z.ZodString>;
|
|
2425
2425
|
memoryBudgetPercent: z.ZodOptional<z.ZodNumber>;
|
|
2426
2426
|
}, "strip", z.ZodTypeAny, {
|
|
2427
|
-
model?: string | undefined;
|
|
2428
2427
|
selectedGroupId?: string | null | undefined;
|
|
2428
|
+
model?: string | undefined;
|
|
2429
2429
|
hfEndpoint?: string | undefined;
|
|
2430
2430
|
memoryBudgetPercent?: number | undefined;
|
|
2431
2431
|
}, {
|
|
2432
|
-
model?: string | undefined;
|
|
2433
2432
|
selectedGroupId?: string | null | undefined;
|
|
2433
|
+
model?: string | undefined;
|
|
2434
2434
|
hfEndpoint?: string | undefined;
|
|
2435
2435
|
memoryBudgetPercent?: number | undefined;
|
|
2436
2436
|
}>;
|
|
@@ -2446,8 +2446,8 @@ declare const TranslationLocalCt2SettingsSchema: z.ZodObject<{
|
|
|
2446
2446
|
memoryBudgetPercent: number;
|
|
2447
2447
|
selectedGroupId?: string | undefined;
|
|
2448
2448
|
}, {
|
|
2449
|
-
model?: string | undefined;
|
|
2450
2449
|
selectedGroupId?: string | undefined;
|
|
2450
|
+
model?: string | undefined;
|
|
2451
2451
|
hfEndpoint?: string | undefined;
|
|
2452
2452
|
memoryBudgetPercent?: number | undefined;
|
|
2453
2453
|
}>;
|
|
@@ -2457,13 +2457,13 @@ declare const TranslationLocalCt2SettingsUpdateSchema: z.ZodObject<{
|
|
|
2457
2457
|
hfEndpoint: z.ZodOptional<z.ZodString>;
|
|
2458
2458
|
memoryBudgetPercent: z.ZodOptional<z.ZodNumber>;
|
|
2459
2459
|
}, "strip", z.ZodTypeAny, {
|
|
2460
|
-
model?: string | undefined;
|
|
2461
2460
|
selectedGroupId?: string | null | undefined;
|
|
2461
|
+
model?: string | undefined;
|
|
2462
2462
|
hfEndpoint?: string | undefined;
|
|
2463
2463
|
memoryBudgetPercent?: number | undefined;
|
|
2464
2464
|
}, {
|
|
2465
|
-
model?: string | undefined;
|
|
2466
2465
|
selectedGroupId?: string | null | undefined;
|
|
2466
|
+
model?: string | undefined;
|
|
2467
2467
|
hfEndpoint?: string | undefined;
|
|
2468
2468
|
memoryBudgetPercent?: number | undefined;
|
|
2469
2469
|
}>;
|
|
@@ -2479,8 +2479,8 @@ declare const TranslationLocalLlamaSettingsSchema: z.ZodObject<{
|
|
|
2479
2479
|
memoryBudgetPercent: number;
|
|
2480
2480
|
selectedGroupId?: string | undefined;
|
|
2481
2481
|
}, {
|
|
2482
|
-
model?: string | undefined;
|
|
2483
2482
|
selectedGroupId?: string | undefined;
|
|
2483
|
+
model?: string | undefined;
|
|
2484
2484
|
hfEndpoint?: string | undefined;
|
|
2485
2485
|
memoryBudgetPercent?: number | undefined;
|
|
2486
2486
|
}>;
|
|
@@ -2490,13 +2490,13 @@ declare const TranslationLocalLlamaSettingsUpdateSchema: z.ZodObject<{
|
|
|
2490
2490
|
hfEndpoint: z.ZodOptional<z.ZodString>;
|
|
2491
2491
|
memoryBudgetPercent: z.ZodOptional<z.ZodNumber>;
|
|
2492
2492
|
}, "strip", z.ZodTypeAny, {
|
|
2493
|
-
model?: string | undefined;
|
|
2494
2493
|
selectedGroupId?: string | null | undefined;
|
|
2494
|
+
model?: string | undefined;
|
|
2495
2495
|
hfEndpoint?: string | undefined;
|
|
2496
2496
|
memoryBudgetPercent?: number | undefined;
|
|
2497
2497
|
}, {
|
|
2498
|
-
model?: string | undefined;
|
|
2499
2498
|
selectedGroupId?: string | null | undefined;
|
|
2499
|
+
model?: string | undefined;
|
|
2500
2500
|
hfEndpoint?: string | undefined;
|
|
2501
2501
|
memoryBudgetPercent?: number | undefined;
|
|
2502
2502
|
}>;
|
|
@@ -2508,13 +2508,13 @@ declare const TranslationEngineGlobalSettingsSchema: z.ZodObject<{
|
|
|
2508
2508
|
token: z.ZodDefault<z.ZodString>;
|
|
2509
2509
|
model: z.ZodDefault<z.ZodString>;
|
|
2510
2510
|
}, "strip", z.ZodTypeAny, {
|
|
2511
|
-
model: string;
|
|
2512
2511
|
baseUrl: string;
|
|
2513
2512
|
token: string;
|
|
2513
|
+
model: string;
|
|
2514
2514
|
}, {
|
|
2515
|
-
model?: string | undefined;
|
|
2516
2515
|
baseUrl?: string | undefined;
|
|
2517
2516
|
token?: string | undefined;
|
|
2517
|
+
model?: string | undefined;
|
|
2518
2518
|
}>>;
|
|
2519
2519
|
local: z.ZodDefault<z.ZodObject<{
|
|
2520
2520
|
model: z.ZodDefault<z.ZodString>;
|
|
@@ -2527,8 +2527,8 @@ declare const TranslationEngineGlobalSettingsSchema: z.ZodObject<{
|
|
|
2527
2527
|
memoryBudgetPercent: number;
|
|
2528
2528
|
selectedGroupId?: string | undefined;
|
|
2529
2529
|
}, {
|
|
2530
|
-
model?: string | undefined;
|
|
2531
2530
|
selectedGroupId?: string | undefined;
|
|
2531
|
+
model?: string | undefined;
|
|
2532
2532
|
hfEndpoint?: string | undefined;
|
|
2533
2533
|
memoryBudgetPercent?: number | undefined;
|
|
2534
2534
|
}>>;
|
|
@@ -2543,8 +2543,8 @@ declare const TranslationEngineGlobalSettingsSchema: z.ZodObject<{
|
|
|
2543
2543
|
memoryBudgetPercent: number;
|
|
2544
2544
|
selectedGroupId?: string | undefined;
|
|
2545
2545
|
}, {
|
|
2546
|
-
model?: string | undefined;
|
|
2547
2546
|
selectedGroupId?: string | undefined;
|
|
2547
|
+
model?: string | undefined;
|
|
2548
2548
|
hfEndpoint?: string | undefined;
|
|
2549
2549
|
memoryBudgetPercent?: number | undefined;
|
|
2550
2550
|
}>>;
|
|
@@ -2559,8 +2559,8 @@ declare const TranslationEngineGlobalSettingsSchema: z.ZodObject<{
|
|
|
2559
2559
|
memoryBudgetPercent: number;
|
|
2560
2560
|
selectedGroupId?: string | undefined;
|
|
2561
2561
|
}, {
|
|
2562
|
-
model?: string | undefined;
|
|
2563
2562
|
selectedGroupId?: string | undefined;
|
|
2563
|
+
model?: string | undefined;
|
|
2564
2564
|
hfEndpoint?: string | undefined;
|
|
2565
2565
|
memoryBudgetPercent?: number | undefined;
|
|
2566
2566
|
}>>;
|
|
@@ -2571,6 +2571,12 @@ declare const TranslationEngineGlobalSettingsSchema: z.ZodObject<{
|
|
|
2571
2571
|
memoryBudgetPercent: number;
|
|
2572
2572
|
selectedGroupId?: string | undefined;
|
|
2573
2573
|
};
|
|
2574
|
+
openai: {
|
|
2575
|
+
baseUrl: string;
|
|
2576
|
+
token: string;
|
|
2577
|
+
model: string;
|
|
2578
|
+
};
|
|
2579
|
+
engineId: "browser" | "local" | "local-ct2" | "local-llama" | "openai";
|
|
2574
2580
|
localCt2: {
|
|
2575
2581
|
model: string;
|
|
2576
2582
|
hfEndpoint: string;
|
|
@@ -2583,37 +2589,31 @@ declare const TranslationEngineGlobalSettingsSchema: z.ZodObject<{
|
|
|
2583
2589
|
memoryBudgetPercent: number;
|
|
2584
2590
|
selectedGroupId?: string | undefined;
|
|
2585
2591
|
};
|
|
2586
|
-
openai: {
|
|
2587
|
-
model: string;
|
|
2588
|
-
baseUrl: string;
|
|
2589
|
-
token: string;
|
|
2590
|
-
};
|
|
2591
|
-
engineId: "local" | "openai" | "browser" | "local-ct2" | "local-llama";
|
|
2592
2592
|
}, {
|
|
2593
2593
|
local?: {
|
|
2594
|
-
model?: string | undefined;
|
|
2595
2594
|
selectedGroupId?: string | undefined;
|
|
2595
|
+
model?: string | undefined;
|
|
2596
2596
|
hfEndpoint?: string | undefined;
|
|
2597
2597
|
memoryBudgetPercent?: number | undefined;
|
|
2598
2598
|
} | undefined;
|
|
2599
|
-
|
|
2599
|
+
openai?: {
|
|
2600
|
+
baseUrl?: string | undefined;
|
|
2601
|
+
token?: string | undefined;
|
|
2600
2602
|
model?: string | undefined;
|
|
2603
|
+
} | undefined;
|
|
2604
|
+
engineId?: "browser" | "local" | "local-ct2" | "local-llama" | "openai" | undefined;
|
|
2605
|
+
localCt2?: {
|
|
2601
2606
|
selectedGroupId?: string | undefined;
|
|
2607
|
+
model?: string | undefined;
|
|
2602
2608
|
hfEndpoint?: string | undefined;
|
|
2603
2609
|
memoryBudgetPercent?: number | undefined;
|
|
2604
2610
|
} | undefined;
|
|
2605
2611
|
localLlama?: {
|
|
2606
|
-
model?: string | undefined;
|
|
2607
2612
|
selectedGroupId?: string | undefined;
|
|
2613
|
+
model?: string | undefined;
|
|
2608
2614
|
hfEndpoint?: string | undefined;
|
|
2609
2615
|
memoryBudgetPercent?: number | undefined;
|
|
2610
2616
|
} | undefined;
|
|
2611
|
-
openai?: {
|
|
2612
|
-
model?: string | undefined;
|
|
2613
|
-
baseUrl?: string | undefined;
|
|
2614
|
-
token?: string | undefined;
|
|
2615
|
-
} | undefined;
|
|
2616
|
-
engineId?: "local" | "openai" | "browser" | "local-ct2" | "local-llama" | undefined;
|
|
2617
2617
|
}>;
|
|
2618
2618
|
declare const TranslationEngineGlobalSettingsUpdateSchema: z.ZodObject<{
|
|
2619
2619
|
engineId: z.ZodOptional<z.ZodEnum<["browser", "local", "local-ct2", "local-llama", "openai"]>>;
|
|
@@ -2622,13 +2622,13 @@ declare const TranslationEngineGlobalSettingsUpdateSchema: z.ZodObject<{
|
|
|
2622
2622
|
token: z.ZodOptional<z.ZodString>;
|
|
2623
2623
|
model: z.ZodOptional<z.ZodString>;
|
|
2624
2624
|
}, "strip", z.ZodTypeAny, {
|
|
2625
|
-
model?: string | undefined;
|
|
2626
2625
|
baseUrl?: string | undefined;
|
|
2627
2626
|
token?: string | undefined;
|
|
2628
|
-
}, {
|
|
2629
2627
|
model?: string | undefined;
|
|
2628
|
+
}, {
|
|
2630
2629
|
baseUrl?: string | undefined;
|
|
2631
2630
|
token?: string | undefined;
|
|
2631
|
+
model?: string | undefined;
|
|
2632
2632
|
}>>;
|
|
2633
2633
|
local: z.ZodOptional<z.ZodObject<{
|
|
2634
2634
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -2636,13 +2636,13 @@ declare const TranslationEngineGlobalSettingsUpdateSchema: z.ZodObject<{
|
|
|
2636
2636
|
hfEndpoint: z.ZodOptional<z.ZodString>;
|
|
2637
2637
|
memoryBudgetPercent: z.ZodOptional<z.ZodNumber>;
|
|
2638
2638
|
}, "strip", z.ZodTypeAny, {
|
|
2639
|
-
model?: string | undefined;
|
|
2640
2639
|
selectedGroupId?: string | null | undefined;
|
|
2640
|
+
model?: string | undefined;
|
|
2641
2641
|
hfEndpoint?: string | undefined;
|
|
2642
2642
|
memoryBudgetPercent?: number | undefined;
|
|
2643
2643
|
}, {
|
|
2644
|
-
model?: string | undefined;
|
|
2645
2644
|
selectedGroupId?: string | null | undefined;
|
|
2645
|
+
model?: string | undefined;
|
|
2646
2646
|
hfEndpoint?: string | undefined;
|
|
2647
2647
|
memoryBudgetPercent?: number | undefined;
|
|
2648
2648
|
}>>;
|
|
@@ -2652,13 +2652,13 @@ declare const TranslationEngineGlobalSettingsUpdateSchema: z.ZodObject<{
|
|
|
2652
2652
|
hfEndpoint: z.ZodOptional<z.ZodString>;
|
|
2653
2653
|
memoryBudgetPercent: z.ZodOptional<z.ZodNumber>;
|
|
2654
2654
|
}, "strip", z.ZodTypeAny, {
|
|
2655
|
-
model?: string | undefined;
|
|
2656
2655
|
selectedGroupId?: string | null | undefined;
|
|
2656
|
+
model?: string | undefined;
|
|
2657
2657
|
hfEndpoint?: string | undefined;
|
|
2658
2658
|
memoryBudgetPercent?: number | undefined;
|
|
2659
2659
|
}, {
|
|
2660
|
-
model?: string | undefined;
|
|
2661
2660
|
selectedGroupId?: string | null | undefined;
|
|
2661
|
+
model?: string | undefined;
|
|
2662
2662
|
hfEndpoint?: string | undefined;
|
|
2663
2663
|
memoryBudgetPercent?: number | undefined;
|
|
2664
2664
|
}>>;
|
|
@@ -2668,66 +2668,66 @@ declare const TranslationEngineGlobalSettingsUpdateSchema: z.ZodObject<{
|
|
|
2668
2668
|
hfEndpoint: z.ZodOptional<z.ZodString>;
|
|
2669
2669
|
memoryBudgetPercent: z.ZodOptional<z.ZodNumber>;
|
|
2670
2670
|
}, "strip", z.ZodTypeAny, {
|
|
2671
|
-
model?: string | undefined;
|
|
2672
2671
|
selectedGroupId?: string | null | undefined;
|
|
2672
|
+
model?: string | undefined;
|
|
2673
2673
|
hfEndpoint?: string | undefined;
|
|
2674
2674
|
memoryBudgetPercent?: number | undefined;
|
|
2675
2675
|
}, {
|
|
2676
|
-
model?: string | undefined;
|
|
2677
2676
|
selectedGroupId?: string | null | undefined;
|
|
2677
|
+
model?: string | undefined;
|
|
2678
2678
|
hfEndpoint?: string | undefined;
|
|
2679
2679
|
memoryBudgetPercent?: number | undefined;
|
|
2680
2680
|
}>>;
|
|
2681
2681
|
}, "strip", z.ZodTypeAny, {
|
|
2682
2682
|
local?: {
|
|
2683
|
-
model?: string | undefined;
|
|
2684
2683
|
selectedGroupId?: string | null | undefined;
|
|
2684
|
+
model?: string | undefined;
|
|
2685
2685
|
hfEndpoint?: string | undefined;
|
|
2686
2686
|
memoryBudgetPercent?: number | undefined;
|
|
2687
2687
|
} | undefined;
|
|
2688
|
-
|
|
2688
|
+
openai?: {
|
|
2689
|
+
baseUrl?: string | undefined;
|
|
2690
|
+
token?: string | undefined;
|
|
2689
2691
|
model?: string | undefined;
|
|
2692
|
+
} | undefined;
|
|
2693
|
+
engineId?: "browser" | "local" | "local-ct2" | "local-llama" | "openai" | undefined;
|
|
2694
|
+
localCt2?: {
|
|
2690
2695
|
selectedGroupId?: string | null | undefined;
|
|
2696
|
+
model?: string | undefined;
|
|
2691
2697
|
hfEndpoint?: string | undefined;
|
|
2692
2698
|
memoryBudgetPercent?: number | undefined;
|
|
2693
2699
|
} | undefined;
|
|
2694
2700
|
localLlama?: {
|
|
2695
|
-
model?: string | undefined;
|
|
2696
2701
|
selectedGroupId?: string | null | undefined;
|
|
2702
|
+
model?: string | undefined;
|
|
2697
2703
|
hfEndpoint?: string | undefined;
|
|
2698
2704
|
memoryBudgetPercent?: number | undefined;
|
|
2699
2705
|
} | undefined;
|
|
2700
|
-
openai?: {
|
|
2701
|
-
model?: string | undefined;
|
|
2702
|
-
baseUrl?: string | undefined;
|
|
2703
|
-
token?: string | undefined;
|
|
2704
|
-
} | undefined;
|
|
2705
|
-
engineId?: "local" | "openai" | "browser" | "local-ct2" | "local-llama" | undefined;
|
|
2706
2706
|
}, {
|
|
2707
2707
|
local?: {
|
|
2708
|
-
model?: string | undefined;
|
|
2709
2708
|
selectedGroupId?: string | null | undefined;
|
|
2709
|
+
model?: string | undefined;
|
|
2710
2710
|
hfEndpoint?: string | undefined;
|
|
2711
2711
|
memoryBudgetPercent?: number | undefined;
|
|
2712
2712
|
} | undefined;
|
|
2713
|
-
|
|
2713
|
+
openai?: {
|
|
2714
|
+
baseUrl?: string | undefined;
|
|
2715
|
+
token?: string | undefined;
|
|
2714
2716
|
model?: string | undefined;
|
|
2717
|
+
} | undefined;
|
|
2718
|
+
engineId?: "browser" | "local" | "local-ct2" | "local-llama" | "openai" | undefined;
|
|
2719
|
+
localCt2?: {
|
|
2715
2720
|
selectedGroupId?: string | null | undefined;
|
|
2721
|
+
model?: string | undefined;
|
|
2716
2722
|
hfEndpoint?: string | undefined;
|
|
2717
2723
|
memoryBudgetPercent?: number | undefined;
|
|
2718
2724
|
} | undefined;
|
|
2719
2725
|
localLlama?: {
|
|
2720
|
-
model?: string | undefined;
|
|
2721
2726
|
selectedGroupId?: string | null | undefined;
|
|
2727
|
+
model?: string | undefined;
|
|
2722
2728
|
hfEndpoint?: string | undefined;
|
|
2723
2729
|
memoryBudgetPercent?: number | undefined;
|
|
2724
2730
|
} | undefined;
|
|
2725
|
-
openai?: {
|
|
2726
|
-
model?: string | undefined;
|
|
2727
|
-
baseUrl?: string | undefined;
|
|
2728
|
-
token?: string | undefined;
|
|
2729
|
-
} | undefined;
|
|
2730
|
-
engineId?: "local" | "openai" | "browser" | "local-ct2" | "local-llama" | undefined;
|
|
2731
2731
|
}>;
|
|
2732
2732
|
type TranslationEngineGlobalSettings = z.infer<typeof TranslationEngineGlobalSettingsSchema>;
|
|
2733
2733
|
type TranslationEngineGlobalSettingsUpdate = {
|
|
@@ -2754,24 +2754,24 @@ declare const BatchTranslateInputSchema: z.ZodObject<{
|
|
|
2754
2754
|
context: z.ZodOptional<z.ZodString>;
|
|
2755
2755
|
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
2756
2756
|
}, "strip", z.ZodTypeAny, {
|
|
2757
|
-
|
|
2758
|
-
engineId: "local" | "openai" | "browser" | "local-ct2" | "local-llama";
|
|
2757
|
+
engineId: "browser" | "local" | "local-ct2" | "local-llama" | "openai";
|
|
2759
2758
|
sourceLanguage: string;
|
|
2759
|
+
targetLanguage: string;
|
|
2760
2760
|
inputs: string[];
|
|
2761
2761
|
timeoutMs: number;
|
|
2762
|
-
model?: string | undefined;
|
|
2763
|
-
selectedGroupId?: string | undefined;
|
|
2764
2762
|
instructions?: string | undefined;
|
|
2765
2763
|
context?: string | undefined;
|
|
2764
|
+
selectedGroupId?: string | undefined;
|
|
2765
|
+
model?: string | undefined;
|
|
2766
2766
|
}, {
|
|
2767
|
-
|
|
2768
|
-
engineId: "local" | "openai" | "browser" | "local-ct2" | "local-llama";
|
|
2767
|
+
engineId: "browser" | "local" | "local-ct2" | "local-llama" | "openai";
|
|
2769
2768
|
sourceLanguage: string;
|
|
2769
|
+
targetLanguage: string;
|
|
2770
2770
|
inputs: string[];
|
|
2771
|
-
model?: string | undefined;
|
|
2772
|
-
selectedGroupId?: string | undefined;
|
|
2773
2771
|
instructions?: string | undefined;
|
|
2774
2772
|
context?: string | undefined;
|
|
2773
|
+
selectedGroupId?: string | undefined;
|
|
2774
|
+
model?: string | undefined;
|
|
2775
2775
|
timeoutMs?: number | undefined;
|
|
2776
2776
|
}>;
|
|
2777
2777
|
type BatchTranslateInput = z.infer<typeof BatchTranslateInputSchema>;
|
|
@@ -2782,24 +2782,24 @@ declare const BatchTranslateEventSchema: z.ZodObject<{
|
|
|
2782
2782
|
kind: z.ZodEnum<["timeout", "memory-limit", "runtime", "abort"]>;
|
|
2783
2783
|
message: z.ZodString;
|
|
2784
2784
|
}, "strip", z.ZodTypeAny, {
|
|
2785
|
-
message: string;
|
|
2786
2785
|
kind: "runtime" | "timeout" | "memory-limit" | "abort";
|
|
2787
|
-
}, {
|
|
2788
2786
|
message: string;
|
|
2787
|
+
}, {
|
|
2789
2788
|
kind: "runtime" | "timeout" | "memory-limit" | "abort";
|
|
2789
|
+
message: string;
|
|
2790
2790
|
}>>;
|
|
2791
2791
|
}, "strip", z.ZodTypeAny, {
|
|
2792
2792
|
index: number;
|
|
2793
2793
|
error?: {
|
|
2794
|
-
message: string;
|
|
2795
2794
|
kind: "runtime" | "timeout" | "memory-limit" | "abort";
|
|
2795
|
+
message: string;
|
|
2796
2796
|
} | undefined;
|
|
2797
2797
|
output?: string | undefined;
|
|
2798
2798
|
}, {
|
|
2799
2799
|
index: number;
|
|
2800
2800
|
error?: {
|
|
2801
|
-
message: string;
|
|
2802
2801
|
kind: "runtime" | "timeout" | "memory-limit" | "abort";
|
|
2802
|
+
message: string;
|
|
2803
2803
|
} | undefined;
|
|
2804
2804
|
output?: string | undefined;
|
|
2805
2805
|
}>;
|