@openspecui/core 3.11.0 → 3.11.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.
Files changed (77) hide show
  1. package/dist/{document-translation-BrE402YR.mjs → document-translation-BTEG-uW_.mjs} +5 -1
  2. package/dist/{document-translation-BZ5QKjN0.d.mts → document-translation-EMIQf5dw.d.mts} +80 -30
  3. package/dist/document-translation.d.mts +2 -2
  4. package/dist/document-translation.mjs +2 -2
  5. package/dist/hosted-app.d.mts +1 -1
  6. package/dist/hosted-app.mjs +1 -1
  7. package/dist/index.d.mts +162 -61
  8. package/dist/index.mjs +337 -56
  9. package/dist/{local-download-profiles-BppI_PAq.mjs → local-download-profiles-CNDtMG2s.mjs} +7 -3
  10. package/dist/{local-download-profiles-BdHk_i54.d.mts → local-download-profiles-CSXKbamv.d.mts} +5 -1
  11. package/dist/local-download-profiles.d.mts +2 -2
  12. package/dist/local-download-profiles.mjs +1 -1
  13. package/dist/markdown-facts.d.mts +1 -1
  14. package/dist/markdown-facts.mjs +1 -1
  15. package/dist/{markdown-reading-DvLPaaY1.d.mts → markdown-reading-BaHZTf5f.d.mts} +1 -1
  16. package/dist/{markdown-reading-DYBp7qoI.mjs → markdown-reading-DSlcirYV.mjs} +1 -1
  17. package/dist/markdown-reading.d.mts +2 -2
  18. package/dist/markdown-reading.mjs +2 -2
  19. package/dist/{notifications-B4GiAnmn.d.mts → notifications-Ct6rtBwb.d.mts} +16 -16
  20. package/dist/{notifications-9vbSJQ8N.mjs → notifications-Xs9VPFWD.mjs} +2 -2
  21. package/dist/notifications.d.mts +2 -2
  22. package/dist/notifications.mjs +3 -3
  23. package/dist/{openspec-annotations-DVbFBz5J.d.mts → openspec-annotations-DYyP_HQh.d.mts} +2 -2
  24. package/dist/{openspec-annotations-BxBoWlyv.mjs → openspec-annotations-dNJentSE.mjs} +2 -2
  25. package/dist/openspec-annotations.d.mts +3 -3
  26. package/dist/openspec-annotations.mjs +3 -3
  27. package/dist/{openspec-projection-Df5C6CFv.d.mts → openspec-projection-DrTZ0P31.d.mts} +3 -3
  28. package/dist/{openspec-projection-Cd6oydiK.mjs → openspec-projection-yqwKIKnp.mjs} +2 -2
  29. package/dist/openspec-projection.d.mts +5 -5
  30. package/dist/openspec-projection.mjs +4 -4
  31. package/dist/opsx-display-path.d.mts +1 -1
  32. package/dist/opsx-display-path.mjs +1 -1
  33. package/dist/{opsx-entity-DHidvJcx.d.mts → opsx-entity-CIB-Wi0n.d.mts} +13 -13
  34. package/dist/opsx-entity.d.mts +2 -2
  35. package/dist/opsx-entity.mjs +1 -1
  36. package/dist/{opsx-schema-detail-VyCbvX1I.d.mts → opsx-schema-detail-Cjoesix_.d.mts} +1 -1
  37. package/dist/opsx-schema-detail.d.mts +3 -3
  38. package/dist/opsx-schema-detail.mjs +1 -1
  39. package/dist/{schemas-3VC51gAF.d.mts → schemas-DeEkRkAH.d.mts} +126 -126
  40. package/dist/{sounds-CQJ1eD1u.d.mts → sounds-BaxOUgWE.d.mts} +5 -5
  41. package/dist/sounds.d.mts +1 -1
  42. package/dist/sounds.mjs +1 -1
  43. package/dist/{terminal-audio-DVz0HA2H.mjs → terminal-audio-CUs0sqEO.mjs} +1 -1
  44. package/dist/{terminal-audio-BrmM5FX_.d.mts → terminal-audio-v3YSYJKq.d.mts} +2 -2
  45. package/dist/terminal-audio.d.mts +2 -2
  46. package/dist/terminal-audio.mjs +2 -2
  47. package/dist/terminal-control.d.mts +2 -2
  48. package/dist/terminal-control.mjs +1 -1
  49. package/dist/{terminal-invocation-Z0xbyZ1V.d.mts → terminal-invocation-C5gqne5H.d.mts} +51 -51
  50. package/dist/terminal-invocation.d.mts +1 -1
  51. package/dist/terminal-invocation.mjs +1 -1
  52. package/dist/terminal-theme.d.mts +1 -1
  53. package/dist/terminal-theme.mjs +1 -1
  54. package/dist/translation-language-pair-Cb4a0hG6.mjs +52 -0
  55. package/dist/translation-language-pair-DaSvW83F.d.mts +18 -0
  56. package/dist/translation-language-pair.d.mts +2 -0
  57. package/dist/translation-language-pair.mjs +3 -0
  58. package/dist/translator-BtbU7rjR.d.mts +2498 -0
  59. package/dist/translator-yHmEiuRX.mjs +375 -0
  60. package/dist/translator.d.mts +2 -2
  61. package/dist/translator.mjs +2 -2
  62. package/package.json +9 -3
  63. package/dist/translator-BSPMDjZy.d.mts +0 -780
  64. package/dist/translator-C3LT7PqW.mjs +0 -147
  65. /package/dist/{hosted-app-CxpQvD1s.mjs → hosted-app-CNZhVLM_.mjs} +0 -0
  66. /package/dist/{hosted-app-FuxG4-qA.d.mts → hosted-app-CegGJlNp.d.mts} +0 -0
  67. /package/dist/{markdown-facts-B5RvYPKF.mjs → markdown-facts-DbE1F2LD.mjs} +0 -0
  68. /package/dist/{markdown-facts-DUsbNcjh.d.mts → markdown-facts-DempqdIX.d.mts} +0 -0
  69. /package/dist/{opsx-display-path-Bf89ZyM5.mjs → opsx-display-path-Cw-5MTRg.mjs} +0 -0
  70. /package/dist/{opsx-display-path-CbO6K0Qq.d.mts → opsx-display-path-Ky9qnntM.d.mts} +0 -0
  71. /package/dist/{opsx-entity-BR_6djiM.mjs → opsx-entity-C_51ZEuP.mjs} +0 -0
  72. /package/dist/{opsx-schema-detail-5Wv1oWLT.mjs → opsx-schema-detail-Bu415_NB.mjs} +0 -0
  73. /package/dist/{sounds-CB_gpY-y.mjs → sounds-50cYk5b0.mjs} +0 -0
  74. /package/dist/{terminal-control-CNcEd9Rl.mjs → terminal-control-CYZhk7FM.mjs} +0 -0
  75. /package/dist/{terminal-invocation-wUmtJMPl.mjs → terminal-invocation-IopdwXKL.mjs} +0 -0
  76. /package/dist/{terminal-theme-CHkfTDk4.mjs → terminal-theme-BquTqZIO.mjs} +0 -0
  77. /package/dist/{terminal-theme-x_vAHvok.d.mts → terminal-theme-CH-VSrAq.d.mts} +0 -0
@@ -0,0 +1,2498 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/translator.d.ts
4
+ declare const TRANSLATOR_CONTRACT_VERSION = 3;
5
+ declare const TRANSLATION_ENGINE_IDS: readonly ["browser", "local", "local-ct2", "openai"];
6
+ declare const TranslationEngineIdSchema: z.ZodEnum<["browser", "local", "local-ct2", "openai"]>;
7
+ type TranslationEngineId = z.infer<typeof TranslationEngineIdSchema>;
8
+ declare const DEFAULT_TRANSLATION_ENGINE_ID: TranslationEngineId;
9
+ declare function isManagedLocalTranslationEngineId(engineId: TranslationEngineId | null | undefined): engineId is Extract<TranslationEngineId, 'local' | 'local-ct2'>;
10
+ type ManagedLocalTranslationEngineId = Extract<TranslationEngineId, 'local' | 'local-ct2'>;
11
+ declare const SERVICE_TRANSLATION_ENGINE_IDS: readonly ["local", "local-ct2", "openai"];
12
+ declare const ServiceTranslationEngineIdSchema: z.ZodEnum<["local", "local-ct2", "openai"]>;
13
+ type ServiceTranslationEngineId = z.infer<typeof ServiceTranslationEngineIdSchema>;
14
+ interface TranslatorOptions {
15
+ instructions?: string;
16
+ context?: string;
17
+ signal?: AbortSignal;
18
+ }
19
+ interface BatchTranslationResult {
20
+ index: number;
21
+ output: string;
22
+ }
23
+ interface Translator {
24
+ batchTranslate(inputs: string[], options?: TranslatorOptions): AsyncGenerator<BatchTranslationResult>;
25
+ destroy?(): void;
26
+ }
27
+ interface TranslatorCreateMonitor {
28
+ setStatus(input: {
29
+ message: string;
30
+ progress?: number;
31
+ }): void;
32
+ }
33
+ interface TranslatorPrepareMonitor {
34
+ setStatus(input: {
35
+ message: string;
36
+ progress?: number;
37
+ }): void;
38
+ }
39
+ interface TranslationModelSearchInput {
40
+ engineId: ServiceTranslationEngineId;
41
+ requestId?: string;
42
+ query?: string;
43
+ sourceLanguage?: string;
44
+ targetLanguage?: string;
45
+ limit?: number;
46
+ cursor?: string;
47
+ }
48
+ type TranslationModelSearchPhase = 'candidates' | 'enriched' | 'complete' | 'error';
49
+ interface TranslationDownloadFilePlan {
50
+ path: string;
51
+ sizeBytes?: number;
52
+ required: boolean;
53
+ etag?: string;
54
+ revision?: string;
55
+ sourceUrl?: string;
56
+ raw?: unknown;
57
+ }
58
+ interface TranslationDownloadGroupPlan {
59
+ id: string;
60
+ label: string;
61
+ description?: string;
62
+ profile?: string;
63
+ dtype?: string;
64
+ estimatedTotalBytes?: number;
65
+ baseGroupId?: string;
66
+ commitHash?: string;
67
+ shortCommitHash?: string;
68
+ rootDir?: string;
69
+ status?: LocalModelDownloadStatus;
70
+ progress?: number;
71
+ bytesDownloaded?: number;
72
+ totalBytes?: number;
73
+ resumable?: boolean;
74
+ error?: string;
75
+ selectable: boolean;
76
+ selected: boolean;
77
+ files: TranslationDownloadFilePlan[];
78
+ }
79
+ interface TranslationModelDownloadPlan {
80
+ modelId: string;
81
+ estimatedTotalBytes?: number;
82
+ files: TranslationDownloadFilePlan[];
83
+ selectedGroupId?: string;
84
+ groups?: TranslationDownloadGroupPlan[];
85
+ }
86
+ interface TranslationModelCandidate {
87
+ id: string;
88
+ label: string;
89
+ summary: string;
90
+ downloads: number;
91
+ likes: number;
92
+ trendingScore?: number;
93
+ lastModified?: string;
94
+ pipelineTag?: string;
95
+ tags: string[];
96
+ compatibility: {
97
+ transformersJs: boolean;
98
+ onnx: boolean;
99
+ localRuntimeVerified: boolean;
100
+ };
101
+ size: {
102
+ estimatedTotalBytes?: number;
103
+ primaryBytes?: number;
104
+ };
105
+ downloadGroups?: TranslationDownloadGroupPlan[];
106
+ languageMatch: {
107
+ sourceMatched: boolean;
108
+ targetMatched: boolean;
109
+ directionalScore: number;
110
+ };
111
+ }
112
+ interface TranslationModelSearchResult {
113
+ items: TranslationModelCandidate[];
114
+ nextCursor?: string;
115
+ }
116
+ interface TranslationModelSearchEvent {
117
+ requestId: string;
118
+ phase: TranslationModelSearchPhase;
119
+ items?: TranslationModelCandidate[];
120
+ nextCursor?: string;
121
+ message?: string;
122
+ }
123
+ declare const LocalModelDownloadStatusSchema: z.ZodEnum<["not-downloaded", "queued", "downloading", "paused", "downloaded", "error", "deleting"]>;
124
+ type LocalModelDownloadStatus = z.infer<typeof LocalModelDownloadStatusSchema>;
125
+ declare const TranslationDownloadFilePlanSchema: z.ZodObject<{
126
+ path: z.ZodString;
127
+ sizeBytes: z.ZodOptional<z.ZodNumber>;
128
+ required: z.ZodBoolean;
129
+ etag: z.ZodOptional<z.ZodString>;
130
+ revision: z.ZodOptional<z.ZodString>;
131
+ sourceUrl: z.ZodOptional<z.ZodString>;
132
+ raw: z.ZodOptional<z.ZodUnknown>;
133
+ }, "strip", z.ZodTypeAny, {
134
+ path: string;
135
+ required: boolean;
136
+ sizeBytes?: number | undefined;
137
+ etag?: string | undefined;
138
+ revision?: string | undefined;
139
+ sourceUrl?: string | undefined;
140
+ raw?: unknown;
141
+ }, {
142
+ path: string;
143
+ required: boolean;
144
+ sizeBytes?: number | undefined;
145
+ etag?: string | undefined;
146
+ revision?: string | undefined;
147
+ sourceUrl?: string | undefined;
148
+ raw?: unknown;
149
+ }>;
150
+ declare const TranslationDownloadGroupPlanSchema: z.ZodObject<{
151
+ id: z.ZodString;
152
+ label: z.ZodString;
153
+ description: z.ZodOptional<z.ZodString>;
154
+ profile: z.ZodOptional<z.ZodString>;
155
+ dtype: z.ZodOptional<z.ZodString>;
156
+ estimatedTotalBytes: z.ZodOptional<z.ZodNumber>;
157
+ baseGroupId: z.ZodOptional<z.ZodString>;
158
+ commitHash: z.ZodOptional<z.ZodString>;
159
+ shortCommitHash: z.ZodOptional<z.ZodString>;
160
+ rootDir: z.ZodOptional<z.ZodString>;
161
+ status: z.ZodOptional<z.ZodEnum<["not-downloaded", "queued", "downloading", "paused", "downloaded", "error", "deleting"]>>;
162
+ progress: z.ZodOptional<z.ZodNumber>;
163
+ bytesDownloaded: z.ZodOptional<z.ZodNumber>;
164
+ totalBytes: z.ZodOptional<z.ZodNumber>;
165
+ resumable: z.ZodOptional<z.ZodBoolean>;
166
+ error: z.ZodOptional<z.ZodString>;
167
+ selectable: z.ZodBoolean;
168
+ selected: z.ZodBoolean;
169
+ files: z.ZodArray<z.ZodObject<{
170
+ path: z.ZodString;
171
+ sizeBytes: z.ZodOptional<z.ZodNumber>;
172
+ required: z.ZodBoolean;
173
+ etag: z.ZodOptional<z.ZodString>;
174
+ revision: z.ZodOptional<z.ZodString>;
175
+ sourceUrl: z.ZodOptional<z.ZodString>;
176
+ raw: z.ZodOptional<z.ZodUnknown>;
177
+ }, "strip", z.ZodTypeAny, {
178
+ path: string;
179
+ required: boolean;
180
+ sizeBytes?: number | undefined;
181
+ etag?: string | undefined;
182
+ revision?: string | undefined;
183
+ sourceUrl?: string | undefined;
184
+ raw?: unknown;
185
+ }, {
186
+ path: string;
187
+ required: boolean;
188
+ sizeBytes?: number | undefined;
189
+ etag?: string | undefined;
190
+ revision?: string | undefined;
191
+ sourceUrl?: string | undefined;
192
+ raw?: unknown;
193
+ }>, "many">;
194
+ }, "strip", z.ZodTypeAny, {
195
+ id: string;
196
+ label: string;
197
+ selectable: boolean;
198
+ selected: boolean;
199
+ files: {
200
+ path: string;
201
+ required: boolean;
202
+ sizeBytes?: number | undefined;
203
+ etag?: string | undefined;
204
+ revision?: string | undefined;
205
+ sourceUrl?: string | undefined;
206
+ raw?: unknown;
207
+ }[];
208
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
209
+ error?: string | undefined;
210
+ description?: string | undefined;
211
+ profile?: string | undefined;
212
+ dtype?: string | undefined;
213
+ estimatedTotalBytes?: number | undefined;
214
+ baseGroupId?: string | undefined;
215
+ commitHash?: string | undefined;
216
+ shortCommitHash?: string | undefined;
217
+ rootDir?: string | undefined;
218
+ progress?: number | undefined;
219
+ bytesDownloaded?: number | undefined;
220
+ totalBytes?: number | undefined;
221
+ resumable?: boolean | undefined;
222
+ }, {
223
+ id: string;
224
+ label: string;
225
+ selectable: boolean;
226
+ selected: boolean;
227
+ files: {
228
+ path: string;
229
+ required: boolean;
230
+ sizeBytes?: number | undefined;
231
+ etag?: string | undefined;
232
+ revision?: string | undefined;
233
+ sourceUrl?: string | undefined;
234
+ raw?: unknown;
235
+ }[];
236
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
237
+ error?: string | undefined;
238
+ description?: string | undefined;
239
+ profile?: string | undefined;
240
+ dtype?: string | undefined;
241
+ estimatedTotalBytes?: number | undefined;
242
+ baseGroupId?: string | undefined;
243
+ commitHash?: string | undefined;
244
+ shortCommitHash?: string | undefined;
245
+ rootDir?: string | undefined;
246
+ progress?: number | undefined;
247
+ bytesDownloaded?: number | undefined;
248
+ totalBytes?: number | undefined;
249
+ resumable?: boolean | undefined;
250
+ }>;
251
+ declare const LocalModelProfileStatusSchema: z.ZodEnum<["idle", "loading", "ready", "error"]>;
252
+ type LocalModelProfileStatus = z.infer<typeof LocalModelProfileStatusSchema>;
253
+ declare const LocalModelProfileManifestFileSchema: z.ZodObject<{
254
+ path: z.ZodString;
255
+ sizeBytes: z.ZodOptional<z.ZodNumber>;
256
+ required: z.ZodBoolean;
257
+ etag: z.ZodOptional<z.ZodString>;
258
+ revision: z.ZodOptional<z.ZodString>;
259
+ sourceUrl: z.ZodOptional<z.ZodString>;
260
+ raw: z.ZodOptional<z.ZodUnknown>;
261
+ }, "strip", z.ZodTypeAny, {
262
+ path: string;
263
+ required: boolean;
264
+ sizeBytes?: number | undefined;
265
+ etag?: string | undefined;
266
+ revision?: string | undefined;
267
+ sourceUrl?: string | undefined;
268
+ raw?: unknown;
269
+ }, {
270
+ path: string;
271
+ required: boolean;
272
+ sizeBytes?: number | undefined;
273
+ etag?: string | undefined;
274
+ revision?: string | undefined;
275
+ sourceUrl?: string | undefined;
276
+ raw?: unknown;
277
+ }>;
278
+ type LocalModelProfileManifestFile = z.infer<typeof LocalModelProfileManifestFileSchema>;
279
+ declare const LocalModelProfileManifestGroupSchema: z.ZodObject<{
280
+ id: z.ZodString;
281
+ baseGroupId: z.ZodString;
282
+ label: z.ZodString;
283
+ displayLabel: z.ZodString;
284
+ description: z.ZodOptional<z.ZodString>;
285
+ profile: z.ZodOptional<z.ZodString>;
286
+ dtype: z.ZodOptional<z.ZodString>;
287
+ commitHash: z.ZodString;
288
+ shortCommitHash: z.ZodString;
289
+ rootDir: z.ZodString;
290
+ estimatedTotalBytes: z.ZodOptional<z.ZodNumber>;
291
+ selectable: z.ZodBoolean;
292
+ files: z.ZodArray<z.ZodObject<{
293
+ path: z.ZodString;
294
+ sizeBytes: z.ZodOptional<z.ZodNumber>;
295
+ required: z.ZodBoolean;
296
+ etag: z.ZodOptional<z.ZodString>;
297
+ revision: z.ZodOptional<z.ZodString>;
298
+ sourceUrl: z.ZodOptional<z.ZodString>;
299
+ raw: z.ZodOptional<z.ZodUnknown>;
300
+ }, "strip", z.ZodTypeAny, {
301
+ path: string;
302
+ required: boolean;
303
+ sizeBytes?: number | undefined;
304
+ etag?: string | undefined;
305
+ revision?: string | undefined;
306
+ sourceUrl?: string | undefined;
307
+ raw?: unknown;
308
+ }, {
309
+ path: string;
310
+ required: boolean;
311
+ sizeBytes?: number | undefined;
312
+ etag?: string | undefined;
313
+ revision?: string | undefined;
314
+ sourceUrl?: string | undefined;
315
+ raw?: unknown;
316
+ }>, "many">;
317
+ }, "strip", z.ZodTypeAny, {
318
+ id: string;
319
+ label: string;
320
+ baseGroupId: string;
321
+ commitHash: string;
322
+ shortCommitHash: string;
323
+ rootDir: string;
324
+ selectable: boolean;
325
+ files: {
326
+ path: string;
327
+ required: boolean;
328
+ sizeBytes?: number | undefined;
329
+ etag?: string | undefined;
330
+ revision?: string | undefined;
331
+ sourceUrl?: string | undefined;
332
+ raw?: unknown;
333
+ }[];
334
+ displayLabel: string;
335
+ description?: string | undefined;
336
+ profile?: string | undefined;
337
+ dtype?: string | undefined;
338
+ estimatedTotalBytes?: number | undefined;
339
+ }, {
340
+ id: string;
341
+ label: string;
342
+ baseGroupId: string;
343
+ commitHash: string;
344
+ shortCommitHash: string;
345
+ rootDir: string;
346
+ selectable: boolean;
347
+ files: {
348
+ path: string;
349
+ required: boolean;
350
+ sizeBytes?: number | undefined;
351
+ etag?: string | undefined;
352
+ revision?: string | undefined;
353
+ sourceUrl?: string | undefined;
354
+ raw?: unknown;
355
+ }[];
356
+ displayLabel: string;
357
+ description?: string | undefined;
358
+ profile?: string | undefined;
359
+ dtype?: string | undefined;
360
+ estimatedTotalBytes?: number | undefined;
361
+ }>;
362
+ type LocalModelProfileManifestGroup = z.infer<typeof LocalModelProfileManifestGroupSchema>;
363
+ declare const LocalModelProfileManifestSchema: z.ZodObject<{
364
+ modelId: z.ZodString;
365
+ source: z.ZodLiteral<"huggingface">;
366
+ endpoint: z.ZodDefault<z.ZodString>;
367
+ revision: z.ZodString;
368
+ commitHash: z.ZodString;
369
+ shortCommitHash: z.ZodString;
370
+ fetchedAt: z.ZodNumber;
371
+ updatedAt: z.ZodNumber;
372
+ raw: z.ZodOptional<z.ZodUnknown>;
373
+ groups: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
374
+ id: z.ZodString;
375
+ baseGroupId: z.ZodString;
376
+ label: z.ZodString;
377
+ displayLabel: z.ZodString;
378
+ description: z.ZodOptional<z.ZodString>;
379
+ profile: z.ZodOptional<z.ZodString>;
380
+ dtype: z.ZodOptional<z.ZodString>;
381
+ commitHash: z.ZodString;
382
+ shortCommitHash: z.ZodString;
383
+ rootDir: z.ZodString;
384
+ estimatedTotalBytes: z.ZodOptional<z.ZodNumber>;
385
+ selectable: z.ZodBoolean;
386
+ files: z.ZodArray<z.ZodObject<{
387
+ path: z.ZodString;
388
+ sizeBytes: z.ZodOptional<z.ZodNumber>;
389
+ required: z.ZodBoolean;
390
+ etag: z.ZodOptional<z.ZodString>;
391
+ revision: z.ZodOptional<z.ZodString>;
392
+ sourceUrl: z.ZodOptional<z.ZodString>;
393
+ raw: z.ZodOptional<z.ZodUnknown>;
394
+ }, "strip", z.ZodTypeAny, {
395
+ path: string;
396
+ required: boolean;
397
+ sizeBytes?: number | undefined;
398
+ etag?: string | undefined;
399
+ revision?: string | undefined;
400
+ sourceUrl?: string | undefined;
401
+ raw?: unknown;
402
+ }, {
403
+ path: string;
404
+ required: boolean;
405
+ sizeBytes?: number | undefined;
406
+ etag?: string | undefined;
407
+ revision?: string | undefined;
408
+ sourceUrl?: string | undefined;
409
+ raw?: unknown;
410
+ }>, "many">;
411
+ }, "strip", z.ZodTypeAny, {
412
+ id: string;
413
+ label: string;
414
+ baseGroupId: string;
415
+ commitHash: string;
416
+ shortCommitHash: string;
417
+ rootDir: string;
418
+ selectable: boolean;
419
+ files: {
420
+ path: string;
421
+ required: boolean;
422
+ sizeBytes?: number | undefined;
423
+ etag?: string | undefined;
424
+ revision?: string | undefined;
425
+ sourceUrl?: string | undefined;
426
+ raw?: unknown;
427
+ }[];
428
+ displayLabel: string;
429
+ description?: string | undefined;
430
+ profile?: string | undefined;
431
+ dtype?: string | undefined;
432
+ estimatedTotalBytes?: number | undefined;
433
+ }, {
434
+ id: string;
435
+ label: string;
436
+ baseGroupId: string;
437
+ commitHash: string;
438
+ shortCommitHash: string;
439
+ rootDir: string;
440
+ selectable: boolean;
441
+ files: {
442
+ path: string;
443
+ required: boolean;
444
+ sizeBytes?: number | undefined;
445
+ etag?: string | undefined;
446
+ revision?: string | undefined;
447
+ sourceUrl?: string | undefined;
448
+ raw?: unknown;
449
+ }[];
450
+ displayLabel: string;
451
+ description?: string | undefined;
452
+ profile?: string | undefined;
453
+ dtype?: string | undefined;
454
+ estimatedTotalBytes?: number | undefined;
455
+ }>>>;
456
+ groupOrder: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
457
+ }, "strip", z.ZodTypeAny, {
458
+ revision: string;
459
+ commitHash: string;
460
+ shortCommitHash: string;
461
+ modelId: string;
462
+ source: "huggingface";
463
+ endpoint: string;
464
+ fetchedAt: number;
465
+ updatedAt: number;
466
+ groups: Record<string, {
467
+ id: string;
468
+ label: string;
469
+ baseGroupId: string;
470
+ commitHash: string;
471
+ shortCommitHash: string;
472
+ rootDir: string;
473
+ selectable: boolean;
474
+ files: {
475
+ path: string;
476
+ required: boolean;
477
+ sizeBytes?: number | undefined;
478
+ etag?: string | undefined;
479
+ revision?: string | undefined;
480
+ sourceUrl?: string | undefined;
481
+ raw?: unknown;
482
+ }[];
483
+ displayLabel: string;
484
+ description?: string | undefined;
485
+ profile?: string | undefined;
486
+ dtype?: string | undefined;
487
+ estimatedTotalBytes?: number | undefined;
488
+ }>;
489
+ groupOrder: string[];
490
+ raw?: unknown;
491
+ }, {
492
+ revision: string;
493
+ commitHash: string;
494
+ shortCommitHash: string;
495
+ modelId: string;
496
+ source: "huggingface";
497
+ fetchedAt: number;
498
+ updatedAt: number;
499
+ raw?: unknown;
500
+ endpoint?: string | undefined;
501
+ groups?: Record<string, {
502
+ id: string;
503
+ label: string;
504
+ baseGroupId: string;
505
+ commitHash: string;
506
+ shortCommitHash: string;
507
+ rootDir: string;
508
+ selectable: boolean;
509
+ files: {
510
+ path: string;
511
+ required: boolean;
512
+ sizeBytes?: number | undefined;
513
+ etag?: string | undefined;
514
+ revision?: string | undefined;
515
+ sourceUrl?: string | undefined;
516
+ raw?: unknown;
517
+ }[];
518
+ displayLabel: string;
519
+ description?: string | undefined;
520
+ profile?: string | undefined;
521
+ dtype?: string | undefined;
522
+ estimatedTotalBytes?: number | undefined;
523
+ }> | undefined;
524
+ groupOrder?: string[] | undefined;
525
+ }>;
526
+ type LocalModelProfileManifest = z.infer<typeof LocalModelProfileManifestSchema>;
527
+ declare const LocalModelLifecycleFileStateSchema: z.ZodObject<{
528
+ path: z.ZodString;
529
+ sizeBytes: z.ZodOptional<z.ZodNumber>;
530
+ downloadedBytes: z.ZodOptional<z.ZodNumber>;
531
+ required: z.ZodDefault<z.ZodBoolean>;
532
+ status: z.ZodDefault<z.ZodEnum<["not-downloaded", "queued", "downloading", "paused", "downloaded", "error", "deleting"]>>;
533
+ updatedAt: z.ZodOptional<z.ZodNumber>;
534
+ error: z.ZodOptional<z.ZodString>;
535
+ }, "strip", z.ZodTypeAny, {
536
+ status: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting";
537
+ path: string;
538
+ required: boolean;
539
+ error?: string | undefined;
540
+ sizeBytes?: number | undefined;
541
+ updatedAt?: number | undefined;
542
+ downloadedBytes?: number | undefined;
543
+ }, {
544
+ path: string;
545
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
546
+ error?: string | undefined;
547
+ sizeBytes?: number | undefined;
548
+ required?: boolean | undefined;
549
+ updatedAt?: number | undefined;
550
+ downloadedBytes?: number | undefined;
551
+ }>;
552
+ type LocalModelLifecycleFileState = z.infer<typeof LocalModelLifecycleFileStateSchema>;
553
+ declare const LocalModelLifecycleGroupStateSchema: z.ZodObject<{
554
+ groupId: z.ZodString;
555
+ baseGroupId: z.ZodOptional<z.ZodString>;
556
+ status: z.ZodDefault<z.ZodEnum<["not-downloaded", "queued", "downloading", "paused", "downloaded", "error", "deleting"]>>;
557
+ rootDir: z.ZodOptional<z.ZodString>;
558
+ bytesDownloaded: z.ZodOptional<z.ZodNumber>;
559
+ totalBytes: z.ZodOptional<z.ZodNumber>;
560
+ progress: z.ZodOptional<z.ZodNumber>;
561
+ resumable: z.ZodDefault<z.ZodBoolean>;
562
+ error: z.ZodOptional<z.ZodString>;
563
+ installedAt: z.ZodOptional<z.ZodNumber>;
564
+ updatedAt: z.ZodOptional<z.ZodNumber>;
565
+ files: z.ZodDefault<z.ZodArray<z.ZodObject<{
566
+ path: z.ZodString;
567
+ sizeBytes: z.ZodOptional<z.ZodNumber>;
568
+ downloadedBytes: z.ZodOptional<z.ZodNumber>;
569
+ required: z.ZodDefault<z.ZodBoolean>;
570
+ status: z.ZodDefault<z.ZodEnum<["not-downloaded", "queued", "downloading", "paused", "downloaded", "error", "deleting"]>>;
571
+ updatedAt: z.ZodOptional<z.ZodNumber>;
572
+ error: z.ZodOptional<z.ZodString>;
573
+ }, "strip", z.ZodTypeAny, {
574
+ status: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting";
575
+ path: string;
576
+ required: boolean;
577
+ error?: string | undefined;
578
+ sizeBytes?: number | undefined;
579
+ updatedAt?: number | undefined;
580
+ downloadedBytes?: number | undefined;
581
+ }, {
582
+ path: string;
583
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
584
+ error?: string | undefined;
585
+ sizeBytes?: number | undefined;
586
+ required?: boolean | undefined;
587
+ updatedAt?: number | undefined;
588
+ downloadedBytes?: number | undefined;
589
+ }>, "many">>;
590
+ }, "strip", z.ZodTypeAny, {
591
+ status: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting";
592
+ resumable: boolean;
593
+ files: {
594
+ status: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting";
595
+ path: string;
596
+ required: boolean;
597
+ error?: string | undefined;
598
+ sizeBytes?: number | undefined;
599
+ updatedAt?: number | undefined;
600
+ downloadedBytes?: number | undefined;
601
+ }[];
602
+ groupId: string;
603
+ error?: string | undefined;
604
+ baseGroupId?: string | undefined;
605
+ rootDir?: string | undefined;
606
+ progress?: number | undefined;
607
+ bytesDownloaded?: number | undefined;
608
+ totalBytes?: number | undefined;
609
+ updatedAt?: number | undefined;
610
+ installedAt?: number | undefined;
611
+ }, {
612
+ groupId: string;
613
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
614
+ error?: string | undefined;
615
+ baseGroupId?: string | undefined;
616
+ rootDir?: string | undefined;
617
+ progress?: number | undefined;
618
+ bytesDownloaded?: number | undefined;
619
+ totalBytes?: number | undefined;
620
+ resumable?: boolean | undefined;
621
+ files?: {
622
+ path: string;
623
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
624
+ error?: string | undefined;
625
+ sizeBytes?: number | undefined;
626
+ required?: boolean | undefined;
627
+ updatedAt?: number | undefined;
628
+ downloadedBytes?: number | undefined;
629
+ }[] | undefined;
630
+ updatedAt?: number | undefined;
631
+ installedAt?: number | undefined;
632
+ }>;
633
+ type LocalModelLifecycleGroupState = z.infer<typeof LocalModelLifecycleGroupStateSchema>;
634
+ declare const LocalModelProfileLoadStateSchema: z.ZodObject<{
635
+ status: z.ZodDefault<z.ZodEnum<["idle", "loading", "ready", "error"]>>;
636
+ message: z.ZodOptional<z.ZodString>;
637
+ error: z.ZodOptional<z.ZodString>;
638
+ updatedAt: z.ZodOptional<z.ZodNumber>;
639
+ }, "strip", z.ZodTypeAny, {
640
+ status: "error" | "idle" | "loading" | "ready";
641
+ message?: string | undefined;
642
+ error?: string | undefined;
643
+ updatedAt?: number | undefined;
644
+ }, {
645
+ status?: "error" | "idle" | "loading" | "ready" | undefined;
646
+ message?: string | undefined;
647
+ error?: string | undefined;
648
+ updatedAt?: number | undefined;
649
+ }>;
650
+ type LocalModelProfileLoadState = z.infer<typeof LocalModelProfileLoadStateSchema>;
651
+ declare const LocalModelAssetLogSchema: z.ZodObject<{
652
+ engineId: z.ZodEnum<["local", "local-ct2"]>;
653
+ modelId: z.ZodString;
654
+ selectedGroupId: z.ZodOptional<z.ZodString>;
655
+ groupId: z.ZodOptional<z.ZodString>;
656
+ status: z.ZodEnum<["not-downloaded", "queued", "downloading", "paused", "downloaded", "error", "deleting"]>;
657
+ message: z.ZodString;
658
+ progress: z.ZodOptional<z.ZodNumber>;
659
+ bytesDownloaded: z.ZodOptional<z.ZodNumber>;
660
+ totalBytes: z.ZodOptional<z.ZodNumber>;
661
+ sessionId: z.ZodOptional<z.ZodString>;
662
+ resumable: z.ZodOptional<z.ZodBoolean>;
663
+ files: z.ZodOptional<z.ZodArray<z.ZodObject<{
664
+ path: z.ZodString;
665
+ sizeBytes: z.ZodOptional<z.ZodNumber>;
666
+ downloadedBytes: z.ZodOptional<z.ZodNumber>;
667
+ }, "strip", z.ZodTypeAny, {
668
+ path: string;
669
+ sizeBytes?: number | undefined;
670
+ downloadedBytes?: number | undefined;
671
+ }, {
672
+ path: string;
673
+ sizeBytes?: number | undefined;
674
+ downloadedBytes?: number | undefined;
675
+ }>, "many">>;
676
+ updatedAt: z.ZodNumber;
677
+ }, "strip", z.ZodTypeAny, {
678
+ status: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting";
679
+ message: string;
680
+ modelId: string;
681
+ updatedAt: number;
682
+ engineId: "local" | "local-ct2";
683
+ progress?: number | undefined;
684
+ bytesDownloaded?: number | undefined;
685
+ totalBytes?: number | undefined;
686
+ resumable?: boolean | undefined;
687
+ files?: {
688
+ path: string;
689
+ sizeBytes?: number | undefined;
690
+ downloadedBytes?: number | undefined;
691
+ }[] | undefined;
692
+ groupId?: string | undefined;
693
+ selectedGroupId?: string | undefined;
694
+ sessionId?: string | undefined;
695
+ }, {
696
+ status: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting";
697
+ message: string;
698
+ modelId: string;
699
+ updatedAt: number;
700
+ engineId: "local" | "local-ct2";
701
+ progress?: number | undefined;
702
+ bytesDownloaded?: number | undefined;
703
+ totalBytes?: number | undefined;
704
+ resumable?: boolean | undefined;
705
+ files?: {
706
+ path: string;
707
+ sizeBytes?: number | undefined;
708
+ downloadedBytes?: number | undefined;
709
+ }[] | undefined;
710
+ groupId?: string | undefined;
711
+ selectedGroupId?: string | undefined;
712
+ sessionId?: string | undefined;
713
+ }>;
714
+ type LocalModelAssetLog = z.infer<typeof LocalModelAssetLogSchema>;
715
+ declare const LocalModelAssetPlanSnapshotSchema: z.ZodObject<{
716
+ modelId: z.ZodString;
717
+ estimatedTotalBytes: z.ZodOptional<z.ZodNumber>;
718
+ files: z.ZodArray<z.ZodObject<{
719
+ path: z.ZodString;
720
+ sizeBytes: z.ZodOptional<z.ZodNumber>;
721
+ required: z.ZodBoolean;
722
+ etag: z.ZodOptional<z.ZodString>;
723
+ revision: z.ZodOptional<z.ZodString>;
724
+ sourceUrl: z.ZodOptional<z.ZodString>;
725
+ raw: z.ZodOptional<z.ZodUnknown>;
726
+ }, "strip", z.ZodTypeAny, {
727
+ path: string;
728
+ required: boolean;
729
+ sizeBytes?: number | undefined;
730
+ etag?: string | undefined;
731
+ revision?: string | undefined;
732
+ sourceUrl?: string | undefined;
733
+ raw?: unknown;
734
+ }, {
735
+ path: string;
736
+ required: boolean;
737
+ sizeBytes?: number | undefined;
738
+ etag?: string | undefined;
739
+ revision?: string | undefined;
740
+ sourceUrl?: string | undefined;
741
+ raw?: unknown;
742
+ }>, "many">;
743
+ profile: z.ZodOptional<z.ZodString>;
744
+ selectedGroupId: z.ZodOptional<z.ZodString>;
745
+ groups: z.ZodOptional<z.ZodArray<z.ZodObject<{
746
+ id: z.ZodString;
747
+ label: z.ZodString;
748
+ description: z.ZodOptional<z.ZodString>;
749
+ profile: z.ZodOptional<z.ZodString>;
750
+ dtype: z.ZodOptional<z.ZodString>;
751
+ estimatedTotalBytes: z.ZodOptional<z.ZodNumber>;
752
+ baseGroupId: z.ZodOptional<z.ZodString>;
753
+ commitHash: z.ZodOptional<z.ZodString>;
754
+ shortCommitHash: z.ZodOptional<z.ZodString>;
755
+ rootDir: z.ZodOptional<z.ZodString>;
756
+ status: z.ZodOptional<z.ZodEnum<["not-downloaded", "queued", "downloading", "paused", "downloaded", "error", "deleting"]>>;
757
+ progress: z.ZodOptional<z.ZodNumber>;
758
+ bytesDownloaded: z.ZodOptional<z.ZodNumber>;
759
+ totalBytes: z.ZodOptional<z.ZodNumber>;
760
+ resumable: z.ZodOptional<z.ZodBoolean>;
761
+ error: z.ZodOptional<z.ZodString>;
762
+ selectable: z.ZodBoolean;
763
+ selected: z.ZodBoolean;
764
+ files: z.ZodArray<z.ZodObject<{
765
+ path: z.ZodString;
766
+ sizeBytes: z.ZodOptional<z.ZodNumber>;
767
+ required: z.ZodBoolean;
768
+ etag: z.ZodOptional<z.ZodString>;
769
+ revision: z.ZodOptional<z.ZodString>;
770
+ sourceUrl: z.ZodOptional<z.ZodString>;
771
+ raw: z.ZodOptional<z.ZodUnknown>;
772
+ }, "strip", z.ZodTypeAny, {
773
+ path: string;
774
+ required: boolean;
775
+ sizeBytes?: number | undefined;
776
+ etag?: string | undefined;
777
+ revision?: string | undefined;
778
+ sourceUrl?: string | undefined;
779
+ raw?: unknown;
780
+ }, {
781
+ path: string;
782
+ required: boolean;
783
+ sizeBytes?: number | undefined;
784
+ etag?: string | undefined;
785
+ revision?: string | undefined;
786
+ sourceUrl?: string | undefined;
787
+ raw?: unknown;
788
+ }>, "many">;
789
+ }, "strip", z.ZodTypeAny, {
790
+ id: string;
791
+ label: string;
792
+ selectable: boolean;
793
+ selected: boolean;
794
+ files: {
795
+ path: string;
796
+ required: boolean;
797
+ sizeBytes?: number | undefined;
798
+ etag?: string | undefined;
799
+ revision?: string | undefined;
800
+ sourceUrl?: string | undefined;
801
+ raw?: unknown;
802
+ }[];
803
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
804
+ error?: string | undefined;
805
+ description?: string | undefined;
806
+ profile?: string | undefined;
807
+ dtype?: string | undefined;
808
+ estimatedTotalBytes?: number | undefined;
809
+ baseGroupId?: string | undefined;
810
+ commitHash?: string | undefined;
811
+ shortCommitHash?: string | undefined;
812
+ rootDir?: string | undefined;
813
+ progress?: number | undefined;
814
+ bytesDownloaded?: number | undefined;
815
+ totalBytes?: number | undefined;
816
+ resumable?: boolean | undefined;
817
+ }, {
818
+ id: string;
819
+ label: string;
820
+ selectable: boolean;
821
+ selected: boolean;
822
+ files: {
823
+ path: string;
824
+ required: boolean;
825
+ sizeBytes?: number | undefined;
826
+ etag?: string | undefined;
827
+ revision?: string | undefined;
828
+ sourceUrl?: string | undefined;
829
+ raw?: unknown;
830
+ }[];
831
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
832
+ error?: string | undefined;
833
+ description?: string | undefined;
834
+ profile?: string | undefined;
835
+ dtype?: string | undefined;
836
+ estimatedTotalBytes?: number | undefined;
837
+ baseGroupId?: string | undefined;
838
+ commitHash?: string | undefined;
839
+ shortCommitHash?: string | undefined;
840
+ rootDir?: string | undefined;
841
+ progress?: number | undefined;
842
+ bytesDownloaded?: number | undefined;
843
+ totalBytes?: number | undefined;
844
+ resumable?: boolean | undefined;
845
+ }>, "many">>;
846
+ }, "strip", z.ZodTypeAny, {
847
+ files: {
848
+ path: string;
849
+ required: boolean;
850
+ sizeBytes?: number | undefined;
851
+ etag?: string | undefined;
852
+ revision?: string | undefined;
853
+ sourceUrl?: string | undefined;
854
+ raw?: unknown;
855
+ }[];
856
+ modelId: string;
857
+ profile?: string | undefined;
858
+ estimatedTotalBytes?: number | undefined;
859
+ groups?: {
860
+ id: string;
861
+ label: string;
862
+ selectable: boolean;
863
+ selected: boolean;
864
+ files: {
865
+ path: string;
866
+ required: boolean;
867
+ sizeBytes?: number | undefined;
868
+ etag?: string | undefined;
869
+ revision?: string | undefined;
870
+ sourceUrl?: string | undefined;
871
+ raw?: unknown;
872
+ }[];
873
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
874
+ error?: string | undefined;
875
+ description?: string | undefined;
876
+ profile?: string | undefined;
877
+ dtype?: string | undefined;
878
+ estimatedTotalBytes?: number | undefined;
879
+ baseGroupId?: string | undefined;
880
+ commitHash?: string | undefined;
881
+ shortCommitHash?: string | undefined;
882
+ rootDir?: string | undefined;
883
+ progress?: number | undefined;
884
+ bytesDownloaded?: number | undefined;
885
+ totalBytes?: number | undefined;
886
+ resumable?: boolean | undefined;
887
+ }[] | undefined;
888
+ selectedGroupId?: string | undefined;
889
+ }, {
890
+ files: {
891
+ path: string;
892
+ required: boolean;
893
+ sizeBytes?: number | undefined;
894
+ etag?: string | undefined;
895
+ revision?: string | undefined;
896
+ sourceUrl?: string | undefined;
897
+ raw?: unknown;
898
+ }[];
899
+ modelId: string;
900
+ profile?: string | undefined;
901
+ estimatedTotalBytes?: number | undefined;
902
+ groups?: {
903
+ id: string;
904
+ label: string;
905
+ selectable: boolean;
906
+ selected: boolean;
907
+ files: {
908
+ path: string;
909
+ required: boolean;
910
+ sizeBytes?: number | undefined;
911
+ etag?: string | undefined;
912
+ revision?: string | undefined;
913
+ sourceUrl?: string | undefined;
914
+ raw?: unknown;
915
+ }[];
916
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
917
+ error?: string | undefined;
918
+ description?: string | undefined;
919
+ profile?: string | undefined;
920
+ dtype?: string | undefined;
921
+ estimatedTotalBytes?: number | undefined;
922
+ baseGroupId?: string | undefined;
923
+ commitHash?: string | undefined;
924
+ shortCommitHash?: string | undefined;
925
+ rootDir?: string | undefined;
926
+ progress?: number | undefined;
927
+ bytesDownloaded?: number | undefined;
928
+ totalBytes?: number | undefined;
929
+ resumable?: boolean | undefined;
930
+ }[] | undefined;
931
+ selectedGroupId?: string | undefined;
932
+ }>;
933
+ type LocalModelAssetPlanSnapshot = z.infer<typeof LocalModelAssetPlanSnapshotSchema>;
934
+ declare const LocalModelAssetStateSchema: z.ZodObject<{
935
+ modelId: z.ZodString;
936
+ version: z.ZodDefault<z.ZodLiteral<2>>;
937
+ status: z.ZodDefault<z.ZodEnum<["not-downloaded", "queued", "downloading", "paused", "downloaded", "error", "deleting"]>>;
938
+ selected: z.ZodDefault<z.ZodBoolean>;
939
+ selectedGroupId: z.ZodOptional<z.ZodString>;
940
+ installedAt: z.ZodOptional<z.ZodNumber>;
941
+ updatedAt: z.ZodOptional<z.ZodNumber>;
942
+ bytesDownloaded: z.ZodOptional<z.ZodNumber>;
943
+ totalBytes: z.ZodOptional<z.ZodNumber>;
944
+ progress: z.ZodOptional<z.ZodNumber>;
945
+ resumable: z.ZodDefault<z.ZodBoolean>;
946
+ error: z.ZodOptional<z.ZodString>;
947
+ profileLoad: z.ZodDefault<z.ZodObject<{
948
+ status: z.ZodDefault<z.ZodEnum<["idle", "loading", "ready", "error"]>>;
949
+ message: z.ZodOptional<z.ZodString>;
950
+ error: z.ZodOptional<z.ZodString>;
951
+ updatedAt: z.ZodOptional<z.ZodNumber>;
952
+ }, "strip", z.ZodTypeAny, {
953
+ status: "error" | "idle" | "loading" | "ready";
954
+ message?: string | undefined;
955
+ error?: string | undefined;
956
+ updatedAt?: number | undefined;
957
+ }, {
958
+ status?: "error" | "idle" | "loading" | "ready" | undefined;
959
+ message?: string | undefined;
960
+ error?: string | undefined;
961
+ updatedAt?: number | undefined;
962
+ }>>;
963
+ profileManifest: z.ZodOptional<z.ZodObject<{
964
+ modelId: z.ZodString;
965
+ source: z.ZodLiteral<"huggingface">;
966
+ endpoint: z.ZodDefault<z.ZodString>;
967
+ revision: z.ZodString;
968
+ commitHash: z.ZodString;
969
+ shortCommitHash: z.ZodString;
970
+ fetchedAt: z.ZodNumber;
971
+ updatedAt: z.ZodNumber;
972
+ raw: z.ZodOptional<z.ZodUnknown>;
973
+ groups: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
974
+ id: z.ZodString;
975
+ baseGroupId: z.ZodString;
976
+ label: z.ZodString;
977
+ displayLabel: z.ZodString;
978
+ description: z.ZodOptional<z.ZodString>;
979
+ profile: z.ZodOptional<z.ZodString>;
980
+ dtype: z.ZodOptional<z.ZodString>;
981
+ commitHash: z.ZodString;
982
+ shortCommitHash: z.ZodString;
983
+ rootDir: z.ZodString;
984
+ estimatedTotalBytes: z.ZodOptional<z.ZodNumber>;
985
+ selectable: z.ZodBoolean;
986
+ files: z.ZodArray<z.ZodObject<{
987
+ path: z.ZodString;
988
+ sizeBytes: z.ZodOptional<z.ZodNumber>;
989
+ required: z.ZodBoolean;
990
+ etag: z.ZodOptional<z.ZodString>;
991
+ revision: z.ZodOptional<z.ZodString>;
992
+ sourceUrl: z.ZodOptional<z.ZodString>;
993
+ raw: z.ZodOptional<z.ZodUnknown>;
994
+ }, "strip", z.ZodTypeAny, {
995
+ path: string;
996
+ required: boolean;
997
+ sizeBytes?: number | undefined;
998
+ etag?: string | undefined;
999
+ revision?: string | undefined;
1000
+ sourceUrl?: string | undefined;
1001
+ raw?: unknown;
1002
+ }, {
1003
+ path: string;
1004
+ required: boolean;
1005
+ sizeBytes?: number | undefined;
1006
+ etag?: string | undefined;
1007
+ revision?: string | undefined;
1008
+ sourceUrl?: string | undefined;
1009
+ raw?: unknown;
1010
+ }>, "many">;
1011
+ }, "strip", z.ZodTypeAny, {
1012
+ id: string;
1013
+ label: string;
1014
+ baseGroupId: string;
1015
+ commitHash: string;
1016
+ shortCommitHash: string;
1017
+ rootDir: string;
1018
+ selectable: boolean;
1019
+ files: {
1020
+ path: string;
1021
+ required: boolean;
1022
+ sizeBytes?: number | undefined;
1023
+ etag?: string | undefined;
1024
+ revision?: string | undefined;
1025
+ sourceUrl?: string | undefined;
1026
+ raw?: unknown;
1027
+ }[];
1028
+ displayLabel: string;
1029
+ description?: string | undefined;
1030
+ profile?: string | undefined;
1031
+ dtype?: string | undefined;
1032
+ estimatedTotalBytes?: number | undefined;
1033
+ }, {
1034
+ id: string;
1035
+ label: string;
1036
+ baseGroupId: string;
1037
+ commitHash: string;
1038
+ shortCommitHash: string;
1039
+ rootDir: string;
1040
+ selectable: boolean;
1041
+ files: {
1042
+ path: string;
1043
+ required: boolean;
1044
+ sizeBytes?: number | undefined;
1045
+ etag?: string | undefined;
1046
+ revision?: string | undefined;
1047
+ sourceUrl?: string | undefined;
1048
+ raw?: unknown;
1049
+ }[];
1050
+ displayLabel: string;
1051
+ description?: string | undefined;
1052
+ profile?: string | undefined;
1053
+ dtype?: string | undefined;
1054
+ estimatedTotalBytes?: number | undefined;
1055
+ }>>>;
1056
+ groupOrder: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1057
+ }, "strip", z.ZodTypeAny, {
1058
+ revision: string;
1059
+ commitHash: string;
1060
+ shortCommitHash: string;
1061
+ modelId: string;
1062
+ source: "huggingface";
1063
+ endpoint: string;
1064
+ fetchedAt: number;
1065
+ updatedAt: number;
1066
+ groups: Record<string, {
1067
+ id: string;
1068
+ label: string;
1069
+ baseGroupId: string;
1070
+ commitHash: string;
1071
+ shortCommitHash: string;
1072
+ rootDir: string;
1073
+ selectable: boolean;
1074
+ files: {
1075
+ path: string;
1076
+ required: boolean;
1077
+ sizeBytes?: number | undefined;
1078
+ etag?: string | undefined;
1079
+ revision?: string | undefined;
1080
+ sourceUrl?: string | undefined;
1081
+ raw?: unknown;
1082
+ }[];
1083
+ displayLabel: string;
1084
+ description?: string | undefined;
1085
+ profile?: string | undefined;
1086
+ dtype?: string | undefined;
1087
+ estimatedTotalBytes?: number | undefined;
1088
+ }>;
1089
+ groupOrder: string[];
1090
+ raw?: unknown;
1091
+ }, {
1092
+ revision: string;
1093
+ commitHash: string;
1094
+ shortCommitHash: string;
1095
+ modelId: string;
1096
+ source: "huggingface";
1097
+ fetchedAt: number;
1098
+ updatedAt: number;
1099
+ raw?: unknown;
1100
+ endpoint?: string | undefined;
1101
+ groups?: Record<string, {
1102
+ id: string;
1103
+ label: string;
1104
+ baseGroupId: string;
1105
+ commitHash: string;
1106
+ shortCommitHash: string;
1107
+ rootDir: string;
1108
+ selectable: boolean;
1109
+ files: {
1110
+ path: string;
1111
+ required: boolean;
1112
+ sizeBytes?: number | undefined;
1113
+ etag?: string | undefined;
1114
+ revision?: string | undefined;
1115
+ sourceUrl?: string | undefined;
1116
+ raw?: unknown;
1117
+ }[];
1118
+ displayLabel: string;
1119
+ description?: string | undefined;
1120
+ profile?: string | undefined;
1121
+ dtype?: string | undefined;
1122
+ estimatedTotalBytes?: number | undefined;
1123
+ }> | undefined;
1124
+ groupOrder?: string[] | undefined;
1125
+ }>>;
1126
+ groupsState: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
1127
+ groupId: z.ZodString;
1128
+ baseGroupId: z.ZodOptional<z.ZodString>;
1129
+ status: z.ZodDefault<z.ZodEnum<["not-downloaded", "queued", "downloading", "paused", "downloaded", "error", "deleting"]>>;
1130
+ rootDir: z.ZodOptional<z.ZodString>;
1131
+ bytesDownloaded: z.ZodOptional<z.ZodNumber>;
1132
+ totalBytes: z.ZodOptional<z.ZodNumber>;
1133
+ progress: z.ZodOptional<z.ZodNumber>;
1134
+ resumable: z.ZodDefault<z.ZodBoolean>;
1135
+ error: z.ZodOptional<z.ZodString>;
1136
+ installedAt: z.ZodOptional<z.ZodNumber>;
1137
+ updatedAt: z.ZodOptional<z.ZodNumber>;
1138
+ files: z.ZodDefault<z.ZodArray<z.ZodObject<{
1139
+ path: z.ZodString;
1140
+ sizeBytes: z.ZodOptional<z.ZodNumber>;
1141
+ downloadedBytes: z.ZodOptional<z.ZodNumber>;
1142
+ required: z.ZodDefault<z.ZodBoolean>;
1143
+ status: z.ZodDefault<z.ZodEnum<["not-downloaded", "queued", "downloading", "paused", "downloaded", "error", "deleting"]>>;
1144
+ updatedAt: z.ZodOptional<z.ZodNumber>;
1145
+ error: z.ZodOptional<z.ZodString>;
1146
+ }, "strip", z.ZodTypeAny, {
1147
+ status: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting";
1148
+ path: string;
1149
+ required: boolean;
1150
+ error?: string | undefined;
1151
+ sizeBytes?: number | undefined;
1152
+ updatedAt?: number | undefined;
1153
+ downloadedBytes?: number | undefined;
1154
+ }, {
1155
+ path: string;
1156
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
1157
+ error?: string | undefined;
1158
+ sizeBytes?: number | undefined;
1159
+ required?: boolean | undefined;
1160
+ updatedAt?: number | undefined;
1161
+ downloadedBytes?: number | undefined;
1162
+ }>, "many">>;
1163
+ }, "strip", z.ZodTypeAny, {
1164
+ status: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting";
1165
+ resumable: boolean;
1166
+ files: {
1167
+ status: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting";
1168
+ path: string;
1169
+ required: boolean;
1170
+ error?: string | undefined;
1171
+ sizeBytes?: number | undefined;
1172
+ updatedAt?: number | undefined;
1173
+ downloadedBytes?: number | undefined;
1174
+ }[];
1175
+ groupId: string;
1176
+ error?: string | undefined;
1177
+ baseGroupId?: string | undefined;
1178
+ rootDir?: string | undefined;
1179
+ progress?: number | undefined;
1180
+ bytesDownloaded?: number | undefined;
1181
+ totalBytes?: number | undefined;
1182
+ updatedAt?: number | undefined;
1183
+ installedAt?: number | undefined;
1184
+ }, {
1185
+ groupId: string;
1186
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
1187
+ error?: string | undefined;
1188
+ baseGroupId?: string | undefined;
1189
+ rootDir?: string | undefined;
1190
+ progress?: number | undefined;
1191
+ bytesDownloaded?: number | undefined;
1192
+ totalBytes?: number | undefined;
1193
+ resumable?: boolean | undefined;
1194
+ files?: {
1195
+ path: string;
1196
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
1197
+ error?: string | undefined;
1198
+ sizeBytes?: number | undefined;
1199
+ required?: boolean | undefined;
1200
+ updatedAt?: number | undefined;
1201
+ downloadedBytes?: number | undefined;
1202
+ }[] | undefined;
1203
+ updatedAt?: number | undefined;
1204
+ installedAt?: number | undefined;
1205
+ }>>>;
1206
+ plan: z.ZodOptional<z.ZodObject<{
1207
+ modelId: z.ZodString;
1208
+ estimatedTotalBytes: z.ZodOptional<z.ZodNumber>;
1209
+ files: z.ZodArray<z.ZodObject<{
1210
+ path: z.ZodString;
1211
+ sizeBytes: z.ZodOptional<z.ZodNumber>;
1212
+ required: z.ZodBoolean;
1213
+ etag: z.ZodOptional<z.ZodString>;
1214
+ revision: z.ZodOptional<z.ZodString>;
1215
+ sourceUrl: z.ZodOptional<z.ZodString>;
1216
+ raw: z.ZodOptional<z.ZodUnknown>;
1217
+ }, "strip", z.ZodTypeAny, {
1218
+ path: string;
1219
+ required: boolean;
1220
+ sizeBytes?: number | undefined;
1221
+ etag?: string | undefined;
1222
+ revision?: string | undefined;
1223
+ sourceUrl?: string | undefined;
1224
+ raw?: unknown;
1225
+ }, {
1226
+ path: string;
1227
+ required: boolean;
1228
+ sizeBytes?: number | undefined;
1229
+ etag?: string | undefined;
1230
+ revision?: string | undefined;
1231
+ sourceUrl?: string | undefined;
1232
+ raw?: unknown;
1233
+ }>, "many">;
1234
+ profile: z.ZodOptional<z.ZodString>;
1235
+ selectedGroupId: z.ZodOptional<z.ZodString>;
1236
+ groups: z.ZodOptional<z.ZodArray<z.ZodObject<{
1237
+ id: z.ZodString;
1238
+ label: z.ZodString;
1239
+ description: z.ZodOptional<z.ZodString>;
1240
+ profile: z.ZodOptional<z.ZodString>;
1241
+ dtype: z.ZodOptional<z.ZodString>;
1242
+ estimatedTotalBytes: z.ZodOptional<z.ZodNumber>;
1243
+ baseGroupId: z.ZodOptional<z.ZodString>;
1244
+ commitHash: z.ZodOptional<z.ZodString>;
1245
+ shortCommitHash: z.ZodOptional<z.ZodString>;
1246
+ rootDir: z.ZodOptional<z.ZodString>;
1247
+ status: z.ZodOptional<z.ZodEnum<["not-downloaded", "queued", "downloading", "paused", "downloaded", "error", "deleting"]>>;
1248
+ progress: z.ZodOptional<z.ZodNumber>;
1249
+ bytesDownloaded: z.ZodOptional<z.ZodNumber>;
1250
+ totalBytes: z.ZodOptional<z.ZodNumber>;
1251
+ resumable: z.ZodOptional<z.ZodBoolean>;
1252
+ error: z.ZodOptional<z.ZodString>;
1253
+ selectable: z.ZodBoolean;
1254
+ selected: z.ZodBoolean;
1255
+ files: z.ZodArray<z.ZodObject<{
1256
+ path: z.ZodString;
1257
+ sizeBytes: z.ZodOptional<z.ZodNumber>;
1258
+ required: z.ZodBoolean;
1259
+ etag: z.ZodOptional<z.ZodString>;
1260
+ revision: z.ZodOptional<z.ZodString>;
1261
+ sourceUrl: z.ZodOptional<z.ZodString>;
1262
+ raw: z.ZodOptional<z.ZodUnknown>;
1263
+ }, "strip", z.ZodTypeAny, {
1264
+ path: string;
1265
+ required: boolean;
1266
+ sizeBytes?: number | undefined;
1267
+ etag?: string | undefined;
1268
+ revision?: string | undefined;
1269
+ sourceUrl?: string | undefined;
1270
+ raw?: unknown;
1271
+ }, {
1272
+ path: string;
1273
+ required: boolean;
1274
+ sizeBytes?: number | undefined;
1275
+ etag?: string | undefined;
1276
+ revision?: string | undefined;
1277
+ sourceUrl?: string | undefined;
1278
+ raw?: unknown;
1279
+ }>, "many">;
1280
+ }, "strip", z.ZodTypeAny, {
1281
+ id: string;
1282
+ label: string;
1283
+ selectable: boolean;
1284
+ selected: boolean;
1285
+ files: {
1286
+ path: string;
1287
+ required: boolean;
1288
+ sizeBytes?: number | undefined;
1289
+ etag?: string | undefined;
1290
+ revision?: string | undefined;
1291
+ sourceUrl?: string | undefined;
1292
+ raw?: unknown;
1293
+ }[];
1294
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
1295
+ error?: string | undefined;
1296
+ description?: string | undefined;
1297
+ profile?: string | undefined;
1298
+ dtype?: string | undefined;
1299
+ estimatedTotalBytes?: number | undefined;
1300
+ baseGroupId?: string | undefined;
1301
+ commitHash?: string | undefined;
1302
+ shortCommitHash?: string | undefined;
1303
+ rootDir?: string | undefined;
1304
+ progress?: number | undefined;
1305
+ bytesDownloaded?: number | undefined;
1306
+ totalBytes?: number | undefined;
1307
+ resumable?: boolean | undefined;
1308
+ }, {
1309
+ id: string;
1310
+ label: string;
1311
+ selectable: boolean;
1312
+ selected: boolean;
1313
+ files: {
1314
+ path: string;
1315
+ required: boolean;
1316
+ sizeBytes?: number | undefined;
1317
+ etag?: string | undefined;
1318
+ revision?: string | undefined;
1319
+ sourceUrl?: string | undefined;
1320
+ raw?: unknown;
1321
+ }[];
1322
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
1323
+ error?: string | undefined;
1324
+ description?: string | undefined;
1325
+ profile?: string | undefined;
1326
+ dtype?: string | undefined;
1327
+ estimatedTotalBytes?: number | undefined;
1328
+ baseGroupId?: string | undefined;
1329
+ commitHash?: string | undefined;
1330
+ shortCommitHash?: string | undefined;
1331
+ rootDir?: string | undefined;
1332
+ progress?: number | undefined;
1333
+ bytesDownloaded?: number | undefined;
1334
+ totalBytes?: number | undefined;
1335
+ resumable?: boolean | undefined;
1336
+ }>, "many">>;
1337
+ }, "strip", z.ZodTypeAny, {
1338
+ files: {
1339
+ path: string;
1340
+ required: boolean;
1341
+ sizeBytes?: number | undefined;
1342
+ etag?: string | undefined;
1343
+ revision?: string | undefined;
1344
+ sourceUrl?: string | undefined;
1345
+ raw?: unknown;
1346
+ }[];
1347
+ modelId: string;
1348
+ profile?: string | undefined;
1349
+ estimatedTotalBytes?: number | undefined;
1350
+ groups?: {
1351
+ id: string;
1352
+ label: string;
1353
+ selectable: boolean;
1354
+ selected: boolean;
1355
+ files: {
1356
+ path: string;
1357
+ required: boolean;
1358
+ sizeBytes?: number | undefined;
1359
+ etag?: string | undefined;
1360
+ revision?: string | undefined;
1361
+ sourceUrl?: string | undefined;
1362
+ raw?: unknown;
1363
+ }[];
1364
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
1365
+ error?: string | undefined;
1366
+ description?: string | undefined;
1367
+ profile?: string | undefined;
1368
+ dtype?: string | undefined;
1369
+ estimatedTotalBytes?: number | undefined;
1370
+ baseGroupId?: string | undefined;
1371
+ commitHash?: string | undefined;
1372
+ shortCommitHash?: string | undefined;
1373
+ rootDir?: string | undefined;
1374
+ progress?: number | undefined;
1375
+ bytesDownloaded?: number | undefined;
1376
+ totalBytes?: number | undefined;
1377
+ resumable?: boolean | undefined;
1378
+ }[] | undefined;
1379
+ selectedGroupId?: string | undefined;
1380
+ }, {
1381
+ files: {
1382
+ path: string;
1383
+ required: boolean;
1384
+ sizeBytes?: number | undefined;
1385
+ etag?: string | undefined;
1386
+ revision?: string | undefined;
1387
+ sourceUrl?: string | undefined;
1388
+ raw?: unknown;
1389
+ }[];
1390
+ modelId: string;
1391
+ profile?: string | undefined;
1392
+ estimatedTotalBytes?: number | undefined;
1393
+ groups?: {
1394
+ id: string;
1395
+ label: string;
1396
+ selectable: boolean;
1397
+ selected: boolean;
1398
+ files: {
1399
+ path: string;
1400
+ required: boolean;
1401
+ sizeBytes?: number | undefined;
1402
+ etag?: string | undefined;
1403
+ revision?: string | undefined;
1404
+ sourceUrl?: string | undefined;
1405
+ raw?: unknown;
1406
+ }[];
1407
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
1408
+ error?: string | undefined;
1409
+ description?: string | undefined;
1410
+ profile?: string | undefined;
1411
+ dtype?: string | undefined;
1412
+ estimatedTotalBytes?: number | undefined;
1413
+ baseGroupId?: string | undefined;
1414
+ commitHash?: string | undefined;
1415
+ shortCommitHash?: string | undefined;
1416
+ rootDir?: string | undefined;
1417
+ progress?: number | undefined;
1418
+ bytesDownloaded?: number | undefined;
1419
+ totalBytes?: number | undefined;
1420
+ resumable?: boolean | undefined;
1421
+ }[] | undefined;
1422
+ selectedGroupId?: string | undefined;
1423
+ }>>;
1424
+ files: z.ZodDefault<z.ZodArray<z.ZodObject<{
1425
+ path: z.ZodString;
1426
+ sizeBytes: z.ZodOptional<z.ZodNumber>;
1427
+ downloadedBytes: z.ZodOptional<z.ZodNumber>;
1428
+ }, "strip", z.ZodTypeAny, {
1429
+ path: string;
1430
+ sizeBytes?: number | undefined;
1431
+ downloadedBytes?: number | undefined;
1432
+ }, {
1433
+ path: string;
1434
+ sizeBytes?: number | undefined;
1435
+ downloadedBytes?: number | undefined;
1436
+ }>, "many">>;
1437
+ }, "strip", z.ZodTypeAny, {
1438
+ status: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting";
1439
+ resumable: boolean;
1440
+ selected: boolean;
1441
+ files: {
1442
+ path: string;
1443
+ sizeBytes?: number | undefined;
1444
+ downloadedBytes?: number | undefined;
1445
+ }[];
1446
+ modelId: string;
1447
+ version: 2;
1448
+ profileLoad: {
1449
+ status: "error" | "idle" | "loading" | "ready";
1450
+ message?: string | undefined;
1451
+ error?: string | undefined;
1452
+ updatedAt?: number | undefined;
1453
+ };
1454
+ groupsState: Record<string, {
1455
+ status: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting";
1456
+ resumable: boolean;
1457
+ files: {
1458
+ status: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting";
1459
+ path: string;
1460
+ required: boolean;
1461
+ error?: string | undefined;
1462
+ sizeBytes?: number | undefined;
1463
+ updatedAt?: number | undefined;
1464
+ downloadedBytes?: number | undefined;
1465
+ }[];
1466
+ groupId: string;
1467
+ error?: string | undefined;
1468
+ baseGroupId?: string | undefined;
1469
+ rootDir?: string | undefined;
1470
+ progress?: number | undefined;
1471
+ bytesDownloaded?: number | undefined;
1472
+ totalBytes?: number | undefined;
1473
+ updatedAt?: number | undefined;
1474
+ installedAt?: number | undefined;
1475
+ }>;
1476
+ error?: string | undefined;
1477
+ progress?: number | undefined;
1478
+ bytesDownloaded?: number | undefined;
1479
+ totalBytes?: number | undefined;
1480
+ updatedAt?: number | undefined;
1481
+ installedAt?: number | undefined;
1482
+ selectedGroupId?: string | undefined;
1483
+ profileManifest?: {
1484
+ revision: string;
1485
+ commitHash: string;
1486
+ shortCommitHash: string;
1487
+ modelId: string;
1488
+ source: "huggingface";
1489
+ endpoint: string;
1490
+ fetchedAt: number;
1491
+ updatedAt: number;
1492
+ groups: Record<string, {
1493
+ id: string;
1494
+ label: string;
1495
+ baseGroupId: string;
1496
+ commitHash: string;
1497
+ shortCommitHash: string;
1498
+ rootDir: string;
1499
+ selectable: boolean;
1500
+ files: {
1501
+ path: string;
1502
+ required: boolean;
1503
+ sizeBytes?: number | undefined;
1504
+ etag?: string | undefined;
1505
+ revision?: string | undefined;
1506
+ sourceUrl?: string | undefined;
1507
+ raw?: unknown;
1508
+ }[];
1509
+ displayLabel: string;
1510
+ description?: string | undefined;
1511
+ profile?: string | undefined;
1512
+ dtype?: string | undefined;
1513
+ estimatedTotalBytes?: number | undefined;
1514
+ }>;
1515
+ groupOrder: string[];
1516
+ raw?: unknown;
1517
+ } | undefined;
1518
+ plan?: {
1519
+ files: {
1520
+ path: string;
1521
+ required: boolean;
1522
+ sizeBytes?: number | undefined;
1523
+ etag?: string | undefined;
1524
+ revision?: string | undefined;
1525
+ sourceUrl?: string | undefined;
1526
+ raw?: unknown;
1527
+ }[];
1528
+ modelId: string;
1529
+ profile?: string | undefined;
1530
+ estimatedTotalBytes?: number | undefined;
1531
+ groups?: {
1532
+ id: string;
1533
+ label: string;
1534
+ selectable: boolean;
1535
+ selected: boolean;
1536
+ files: {
1537
+ path: string;
1538
+ required: boolean;
1539
+ sizeBytes?: number | undefined;
1540
+ etag?: string | undefined;
1541
+ revision?: string | undefined;
1542
+ sourceUrl?: string | undefined;
1543
+ raw?: unknown;
1544
+ }[];
1545
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
1546
+ error?: string | undefined;
1547
+ description?: string | undefined;
1548
+ profile?: string | undefined;
1549
+ dtype?: string | undefined;
1550
+ estimatedTotalBytes?: number | undefined;
1551
+ baseGroupId?: string | undefined;
1552
+ commitHash?: string | undefined;
1553
+ shortCommitHash?: string | undefined;
1554
+ rootDir?: string | undefined;
1555
+ progress?: number | undefined;
1556
+ bytesDownloaded?: number | undefined;
1557
+ totalBytes?: number | undefined;
1558
+ resumable?: boolean | undefined;
1559
+ }[] | undefined;
1560
+ selectedGroupId?: string | undefined;
1561
+ } | undefined;
1562
+ }, {
1563
+ modelId: string;
1564
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
1565
+ error?: string | undefined;
1566
+ progress?: number | undefined;
1567
+ bytesDownloaded?: number | undefined;
1568
+ totalBytes?: number | undefined;
1569
+ resumable?: boolean | undefined;
1570
+ selected?: boolean | undefined;
1571
+ files?: {
1572
+ path: string;
1573
+ sizeBytes?: number | undefined;
1574
+ downloadedBytes?: number | undefined;
1575
+ }[] | undefined;
1576
+ updatedAt?: number | undefined;
1577
+ installedAt?: number | undefined;
1578
+ selectedGroupId?: string | undefined;
1579
+ version?: 2 | undefined;
1580
+ profileLoad?: {
1581
+ status?: "error" | "idle" | "loading" | "ready" | undefined;
1582
+ message?: string | undefined;
1583
+ error?: string | undefined;
1584
+ updatedAt?: number | undefined;
1585
+ } | undefined;
1586
+ profileManifest?: {
1587
+ revision: string;
1588
+ commitHash: string;
1589
+ shortCommitHash: string;
1590
+ modelId: string;
1591
+ source: "huggingface";
1592
+ fetchedAt: number;
1593
+ updatedAt: number;
1594
+ raw?: unknown;
1595
+ endpoint?: string | undefined;
1596
+ groups?: Record<string, {
1597
+ id: string;
1598
+ label: string;
1599
+ baseGroupId: string;
1600
+ commitHash: string;
1601
+ shortCommitHash: string;
1602
+ rootDir: string;
1603
+ selectable: boolean;
1604
+ files: {
1605
+ path: string;
1606
+ required: boolean;
1607
+ sizeBytes?: number | undefined;
1608
+ etag?: string | undefined;
1609
+ revision?: string | undefined;
1610
+ sourceUrl?: string | undefined;
1611
+ raw?: unknown;
1612
+ }[];
1613
+ displayLabel: string;
1614
+ description?: string | undefined;
1615
+ profile?: string | undefined;
1616
+ dtype?: string | undefined;
1617
+ estimatedTotalBytes?: number | undefined;
1618
+ }> | undefined;
1619
+ groupOrder?: string[] | undefined;
1620
+ } | undefined;
1621
+ groupsState?: Record<string, {
1622
+ groupId: string;
1623
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
1624
+ error?: string | undefined;
1625
+ baseGroupId?: string | undefined;
1626
+ rootDir?: string | undefined;
1627
+ progress?: number | undefined;
1628
+ bytesDownloaded?: number | undefined;
1629
+ totalBytes?: number | undefined;
1630
+ resumable?: boolean | undefined;
1631
+ files?: {
1632
+ path: string;
1633
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
1634
+ error?: string | undefined;
1635
+ sizeBytes?: number | undefined;
1636
+ required?: boolean | undefined;
1637
+ updatedAt?: number | undefined;
1638
+ downloadedBytes?: number | undefined;
1639
+ }[] | undefined;
1640
+ updatedAt?: number | undefined;
1641
+ installedAt?: number | undefined;
1642
+ }> | undefined;
1643
+ plan?: {
1644
+ files: {
1645
+ path: string;
1646
+ required: boolean;
1647
+ sizeBytes?: number | undefined;
1648
+ etag?: string | undefined;
1649
+ revision?: string | undefined;
1650
+ sourceUrl?: string | undefined;
1651
+ raw?: unknown;
1652
+ }[];
1653
+ modelId: string;
1654
+ profile?: string | undefined;
1655
+ estimatedTotalBytes?: number | undefined;
1656
+ groups?: {
1657
+ id: string;
1658
+ label: string;
1659
+ selectable: boolean;
1660
+ selected: boolean;
1661
+ files: {
1662
+ path: string;
1663
+ required: boolean;
1664
+ sizeBytes?: number | undefined;
1665
+ etag?: string | undefined;
1666
+ revision?: string | undefined;
1667
+ sourceUrl?: string | undefined;
1668
+ raw?: unknown;
1669
+ }[];
1670
+ status?: "not-downloaded" | "queued" | "downloading" | "paused" | "downloaded" | "error" | "deleting" | undefined;
1671
+ error?: string | undefined;
1672
+ description?: string | undefined;
1673
+ profile?: string | undefined;
1674
+ dtype?: string | undefined;
1675
+ estimatedTotalBytes?: number | undefined;
1676
+ baseGroupId?: string | undefined;
1677
+ commitHash?: string | undefined;
1678
+ shortCommitHash?: string | undefined;
1679
+ rootDir?: string | undefined;
1680
+ progress?: number | undefined;
1681
+ bytesDownloaded?: number | undefined;
1682
+ totalBytes?: number | undefined;
1683
+ resumable?: boolean | undefined;
1684
+ }[] | undefined;
1685
+ selectedGroupId?: string | undefined;
1686
+ } | undefined;
1687
+ }>;
1688
+ type LocalModelAssetState = z.infer<typeof LocalModelAssetStateSchema>;
1689
+ interface LocalModelCatalogItem extends TranslationModelCandidate {
1690
+ asset: LocalModelAssetState;
1691
+ selectable: boolean;
1692
+ local: boolean;
1693
+ }
1694
+ interface LocalModelCatalogResult {
1695
+ items: LocalModelCatalogItem[];
1696
+ nextCursor?: string;
1697
+ }
1698
+ interface LocalModelCatalogSearchEvent {
1699
+ requestId: string;
1700
+ phase: TranslationModelSearchPhase;
1701
+ items?: LocalModelCatalogItem[];
1702
+ nextCursor?: string;
1703
+ message?: string;
1704
+ }
1705
+ interface LocalModelCatalogLocalResult {
1706
+ items: LocalModelCatalogItem[];
1707
+ }
1708
+ interface TranslatorFactoryPrepareOptions extends TranslatorFactoryCreateOptions {
1709
+ monitor?: TranslatorPrepareMonitor;
1710
+ }
1711
+ interface TranslatorFactoryCreateOptions {
1712
+ sourceLanguage: string;
1713
+ targetLanguage: string;
1714
+ model?: string;
1715
+ dtype?: string;
1716
+ runtimeConfig?: Record<string, unknown>;
1717
+ signal?: AbortSignal;
1718
+ monitor?: TranslatorCreateMonitor;
1719
+ }
1720
+ interface TranslatorFactory {
1721
+ prepare?(options: TranslatorFactoryPrepareOptions): Promise<void>;
1722
+ create(options: TranslatorFactoryCreateOptions): Promise<Translator>;
1723
+ }
1724
+ type TranslationEngineDependencyState = 'installed' | 'installing' | 'missing' | 'error' | 'not-applicable';
1725
+ declare const TranslationEngineDependencyStateSchema: z.ZodEnum<["installed", "installing", "missing", "error", "not-applicable"]>;
1726
+ type TranslationEngineRuntimeState = 'ready' | 'probing' | 'failed' | 'error' | 'not-applicable';
1727
+ declare const TranslationEngineRuntimeStateSchema: z.ZodEnum<["ready", "probing", "failed", "error", "not-applicable"]>;
1728
+ type TranslationEngineAssetState = 'ready' | 'missing' | 'downloading' | 'error' | 'not-applicable';
1729
+ declare const TranslationEngineAssetStateSchema: z.ZodEnum<["ready", "missing", "downloading", "error", "not-applicable"]>;
1730
+ interface TranslationEngineDependencyStatus {
1731
+ state: TranslationEngineDependencyState;
1732
+ message?: string;
1733
+ progress?: number;
1734
+ error?: string;
1735
+ }
1736
+ declare const TranslationEngineDependencyStatusSchema: z.ZodObject<{
1737
+ message: z.ZodOptional<z.ZodString>;
1738
+ progress: z.ZodOptional<z.ZodNumber>;
1739
+ error: z.ZodOptional<z.ZodString>;
1740
+ } & {
1741
+ state: z.ZodEnum<["installed", "installing", "missing", "error", "not-applicable"]>;
1742
+ }, "strip", z.ZodTypeAny, {
1743
+ state: "error" | "installed" | "installing" | "missing" | "not-applicable";
1744
+ message?: string | undefined;
1745
+ error?: string | undefined;
1746
+ progress?: number | undefined;
1747
+ }, {
1748
+ state: "error" | "installed" | "installing" | "missing" | "not-applicable";
1749
+ message?: string | undefined;
1750
+ error?: string | undefined;
1751
+ progress?: number | undefined;
1752
+ }>;
1753
+ interface TranslationEngineRuntimeStatus {
1754
+ state: TranslationEngineRuntimeState;
1755
+ message?: string;
1756
+ progress?: number;
1757
+ error?: string;
1758
+ }
1759
+ declare const TranslationEngineRuntimeStatusSchema: z.ZodObject<{
1760
+ message: z.ZodOptional<z.ZodString>;
1761
+ progress: z.ZodOptional<z.ZodNumber>;
1762
+ error: z.ZodOptional<z.ZodString>;
1763
+ } & {
1764
+ state: z.ZodEnum<["ready", "probing", "failed", "error", "not-applicable"]>;
1765
+ }, "strip", z.ZodTypeAny, {
1766
+ state: "error" | "ready" | "not-applicable" | "probing" | "failed";
1767
+ message?: string | undefined;
1768
+ error?: string | undefined;
1769
+ progress?: number | undefined;
1770
+ }, {
1771
+ state: "error" | "ready" | "not-applicable" | "probing" | "failed";
1772
+ message?: string | undefined;
1773
+ error?: string | undefined;
1774
+ progress?: number | undefined;
1775
+ }>;
1776
+ interface TranslationEngineAssetStatus {
1777
+ state: TranslationEngineAssetState;
1778
+ message?: string;
1779
+ progress?: number;
1780
+ error?: string;
1781
+ }
1782
+ declare const TranslationEngineAssetStatusSchema: z.ZodObject<{
1783
+ message: z.ZodOptional<z.ZodString>;
1784
+ progress: z.ZodOptional<z.ZodNumber>;
1785
+ error: z.ZodOptional<z.ZodString>;
1786
+ } & {
1787
+ state: z.ZodEnum<["ready", "missing", "downloading", "error", "not-applicable"]>;
1788
+ }, "strip", z.ZodTypeAny, {
1789
+ state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
1790
+ message?: string | undefined;
1791
+ error?: string | undefined;
1792
+ progress?: number | undefined;
1793
+ }, {
1794
+ state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
1795
+ message?: string | undefined;
1796
+ error?: string | undefined;
1797
+ progress?: number | undefined;
1798
+ }>;
1799
+ interface TranslationEngineLifecycleStatus {
1800
+ dependency: TranslationEngineDependencyStatus;
1801
+ runtime: TranslationEngineRuntimeStatus;
1802
+ assets: TranslationEngineAssetStatus;
1803
+ summary?: string;
1804
+ }
1805
+ declare const TranslationEngineLifecycleStatusSchema: z.ZodObject<{
1806
+ dependency: z.ZodObject<{
1807
+ message: z.ZodOptional<z.ZodString>;
1808
+ progress: z.ZodOptional<z.ZodNumber>;
1809
+ error: z.ZodOptional<z.ZodString>;
1810
+ } & {
1811
+ state: z.ZodEnum<["installed", "installing", "missing", "error", "not-applicable"]>;
1812
+ }, "strip", z.ZodTypeAny, {
1813
+ state: "error" | "installed" | "installing" | "missing" | "not-applicable";
1814
+ message?: string | undefined;
1815
+ error?: string | undefined;
1816
+ progress?: number | undefined;
1817
+ }, {
1818
+ state: "error" | "installed" | "installing" | "missing" | "not-applicable";
1819
+ message?: string | undefined;
1820
+ error?: string | undefined;
1821
+ progress?: number | undefined;
1822
+ }>;
1823
+ runtime: z.ZodObject<{
1824
+ message: z.ZodOptional<z.ZodString>;
1825
+ progress: z.ZodOptional<z.ZodNumber>;
1826
+ error: z.ZodOptional<z.ZodString>;
1827
+ } & {
1828
+ state: z.ZodEnum<["ready", "probing", "failed", "error", "not-applicable"]>;
1829
+ }, "strip", z.ZodTypeAny, {
1830
+ state: "error" | "ready" | "not-applicable" | "probing" | "failed";
1831
+ message?: string | undefined;
1832
+ error?: string | undefined;
1833
+ progress?: number | undefined;
1834
+ }, {
1835
+ state: "error" | "ready" | "not-applicable" | "probing" | "failed";
1836
+ message?: string | undefined;
1837
+ error?: string | undefined;
1838
+ progress?: number | undefined;
1839
+ }>;
1840
+ assets: z.ZodObject<{
1841
+ message: z.ZodOptional<z.ZodString>;
1842
+ progress: z.ZodOptional<z.ZodNumber>;
1843
+ error: z.ZodOptional<z.ZodString>;
1844
+ } & {
1845
+ state: z.ZodEnum<["ready", "missing", "downloading", "error", "not-applicable"]>;
1846
+ }, "strip", z.ZodTypeAny, {
1847
+ state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
1848
+ message?: string | undefined;
1849
+ error?: string | undefined;
1850
+ progress?: number | undefined;
1851
+ }, {
1852
+ state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
1853
+ message?: string | undefined;
1854
+ error?: string | undefined;
1855
+ progress?: number | undefined;
1856
+ }>;
1857
+ summary: z.ZodOptional<z.ZodString>;
1858
+ }, "strip", z.ZodTypeAny, {
1859
+ dependency: {
1860
+ state: "error" | "installed" | "installing" | "missing" | "not-applicable";
1861
+ message?: string | undefined;
1862
+ error?: string | undefined;
1863
+ progress?: number | undefined;
1864
+ };
1865
+ runtime: {
1866
+ state: "error" | "ready" | "not-applicable" | "probing" | "failed";
1867
+ message?: string | undefined;
1868
+ error?: string | undefined;
1869
+ progress?: number | undefined;
1870
+ };
1871
+ assets: {
1872
+ state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
1873
+ message?: string | undefined;
1874
+ error?: string | undefined;
1875
+ progress?: number | undefined;
1876
+ };
1877
+ summary?: string | undefined;
1878
+ }, {
1879
+ dependency: {
1880
+ state: "error" | "installed" | "installing" | "missing" | "not-applicable";
1881
+ message?: string | undefined;
1882
+ error?: string | undefined;
1883
+ progress?: number | undefined;
1884
+ };
1885
+ runtime: {
1886
+ state: "error" | "ready" | "not-applicable" | "probing" | "failed";
1887
+ message?: string | undefined;
1888
+ error?: string | undefined;
1889
+ progress?: number | undefined;
1890
+ };
1891
+ assets: {
1892
+ state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
1893
+ message?: string | undefined;
1894
+ error?: string | undefined;
1895
+ progress?: number | undefined;
1896
+ };
1897
+ summary?: string | undefined;
1898
+ }>;
1899
+ declare function createTranslationEngineLifecycleStatus(input?: Partial<TranslationEngineLifecycleStatus> & {
1900
+ dependency?: Partial<TranslationEngineDependencyStatus>;
1901
+ runtime?: Partial<TranslationEngineRuntimeStatus>;
1902
+ assets?: Partial<TranslationEngineAssetStatus>;
1903
+ }): TranslationEngineLifecycleStatus;
1904
+ declare function isTranslationEngineDependencyReady(status: TranslationEngineLifecycleStatus): boolean;
1905
+ declare function isTranslationEngineRuntimeReady(status: TranslationEngineLifecycleStatus): boolean;
1906
+ declare function shouldShowTranslationEngineInstallGate(status: TranslationEngineLifecycleStatus | null | undefined): boolean;
1907
+ declare function getTranslationEngineLifecycleMessage(status: TranslationEngineLifecycleStatus | null | undefined): string | undefined;
1908
+ declare const TranslationEngineInstallLogStreamSchema: z.ZodEnum<["stdout", "stderr"]>;
1909
+ type TranslationEngineInstallLogStream = z.infer<typeof TranslationEngineInstallLogStreamSchema>;
1910
+ interface TranslationEngineInstallLogEvent {
1911
+ stream: TranslationEngineInstallLogStream;
1912
+ text: string;
1913
+ }
1914
+ declare const TranslationEngineInstallLogEventSchema: z.ZodObject<{
1915
+ stream: z.ZodEnum<["stdout", "stderr"]>;
1916
+ text: z.ZodString;
1917
+ }, "strip", z.ZodTypeAny, {
1918
+ stream: "stdout" | "stderr";
1919
+ text: string;
1920
+ }, {
1921
+ stream: "stdout" | "stderr";
1922
+ text: string;
1923
+ }>;
1924
+ interface TranslationEngineLifecycleStatusEvent {
1925
+ type: 'status';
1926
+ lifecycle: TranslationEngineLifecycleStatus;
1927
+ }
1928
+ interface TranslationEngineLifecycleLogEvent {
1929
+ type: 'log';
1930
+ stream: TranslationEngineInstallLogStream;
1931
+ text: string;
1932
+ }
1933
+ interface TranslationEngineLifecycleExitEvent {
1934
+ type: 'exit';
1935
+ lifecycle: TranslationEngineLifecycleStatus;
1936
+ }
1937
+ type TranslationEngineLifecycleEvent = TranslationEngineLifecycleStatusEvent | TranslationEngineLifecycleLogEvent | TranslationEngineLifecycleExitEvent;
1938
+ declare const TranslationEngineLifecycleEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1939
+ type: z.ZodLiteral<"status">;
1940
+ lifecycle: z.ZodObject<{
1941
+ dependency: z.ZodObject<{
1942
+ message: z.ZodOptional<z.ZodString>;
1943
+ progress: z.ZodOptional<z.ZodNumber>;
1944
+ error: z.ZodOptional<z.ZodString>;
1945
+ } & {
1946
+ state: z.ZodEnum<["installed", "installing", "missing", "error", "not-applicable"]>;
1947
+ }, "strip", z.ZodTypeAny, {
1948
+ state: "error" | "installed" | "installing" | "missing" | "not-applicable";
1949
+ message?: string | undefined;
1950
+ error?: string | undefined;
1951
+ progress?: number | undefined;
1952
+ }, {
1953
+ state: "error" | "installed" | "installing" | "missing" | "not-applicable";
1954
+ message?: string | undefined;
1955
+ error?: string | undefined;
1956
+ progress?: number | undefined;
1957
+ }>;
1958
+ runtime: z.ZodObject<{
1959
+ message: z.ZodOptional<z.ZodString>;
1960
+ progress: z.ZodOptional<z.ZodNumber>;
1961
+ error: z.ZodOptional<z.ZodString>;
1962
+ } & {
1963
+ state: z.ZodEnum<["ready", "probing", "failed", "error", "not-applicable"]>;
1964
+ }, "strip", z.ZodTypeAny, {
1965
+ state: "error" | "ready" | "not-applicable" | "probing" | "failed";
1966
+ message?: string | undefined;
1967
+ error?: string | undefined;
1968
+ progress?: number | undefined;
1969
+ }, {
1970
+ state: "error" | "ready" | "not-applicable" | "probing" | "failed";
1971
+ message?: string | undefined;
1972
+ error?: string | undefined;
1973
+ progress?: number | undefined;
1974
+ }>;
1975
+ assets: z.ZodObject<{
1976
+ message: z.ZodOptional<z.ZodString>;
1977
+ progress: z.ZodOptional<z.ZodNumber>;
1978
+ error: z.ZodOptional<z.ZodString>;
1979
+ } & {
1980
+ state: z.ZodEnum<["ready", "missing", "downloading", "error", "not-applicable"]>;
1981
+ }, "strip", z.ZodTypeAny, {
1982
+ state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
1983
+ message?: string | undefined;
1984
+ error?: string | undefined;
1985
+ progress?: number | undefined;
1986
+ }, {
1987
+ state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
1988
+ message?: string | undefined;
1989
+ error?: string | undefined;
1990
+ progress?: number | undefined;
1991
+ }>;
1992
+ summary: z.ZodOptional<z.ZodString>;
1993
+ }, "strip", z.ZodTypeAny, {
1994
+ dependency: {
1995
+ state: "error" | "installed" | "installing" | "missing" | "not-applicable";
1996
+ message?: string | undefined;
1997
+ error?: string | undefined;
1998
+ progress?: number | undefined;
1999
+ };
2000
+ runtime: {
2001
+ state: "error" | "ready" | "not-applicable" | "probing" | "failed";
2002
+ message?: string | undefined;
2003
+ error?: string | undefined;
2004
+ progress?: number | undefined;
2005
+ };
2006
+ assets: {
2007
+ state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
2008
+ message?: string | undefined;
2009
+ error?: string | undefined;
2010
+ progress?: number | undefined;
2011
+ };
2012
+ summary?: string | undefined;
2013
+ }, {
2014
+ dependency: {
2015
+ state: "error" | "installed" | "installing" | "missing" | "not-applicable";
2016
+ message?: string | undefined;
2017
+ error?: string | undefined;
2018
+ progress?: number | undefined;
2019
+ };
2020
+ runtime: {
2021
+ state: "error" | "ready" | "not-applicable" | "probing" | "failed";
2022
+ message?: string | undefined;
2023
+ error?: string | undefined;
2024
+ progress?: number | undefined;
2025
+ };
2026
+ assets: {
2027
+ state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
2028
+ message?: string | undefined;
2029
+ error?: string | undefined;
2030
+ progress?: number | undefined;
2031
+ };
2032
+ summary?: string | undefined;
2033
+ }>;
2034
+ }, "strip", z.ZodTypeAny, {
2035
+ type: "status";
2036
+ lifecycle: {
2037
+ dependency: {
2038
+ state: "error" | "installed" | "installing" | "missing" | "not-applicable";
2039
+ message?: string | undefined;
2040
+ error?: string | undefined;
2041
+ progress?: number | undefined;
2042
+ };
2043
+ runtime: {
2044
+ state: "error" | "ready" | "not-applicable" | "probing" | "failed";
2045
+ message?: string | undefined;
2046
+ error?: string | undefined;
2047
+ progress?: number | undefined;
2048
+ };
2049
+ assets: {
2050
+ state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
2051
+ message?: string | undefined;
2052
+ error?: string | undefined;
2053
+ progress?: number | undefined;
2054
+ };
2055
+ summary?: string | undefined;
2056
+ };
2057
+ }, {
2058
+ type: "status";
2059
+ lifecycle: {
2060
+ dependency: {
2061
+ state: "error" | "installed" | "installing" | "missing" | "not-applicable";
2062
+ message?: string | undefined;
2063
+ error?: string | undefined;
2064
+ progress?: number | undefined;
2065
+ };
2066
+ runtime: {
2067
+ state: "error" | "ready" | "not-applicable" | "probing" | "failed";
2068
+ message?: string | undefined;
2069
+ error?: string | undefined;
2070
+ progress?: number | undefined;
2071
+ };
2072
+ assets: {
2073
+ state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
2074
+ message?: string | undefined;
2075
+ error?: string | undefined;
2076
+ progress?: number | undefined;
2077
+ };
2078
+ summary?: string | undefined;
2079
+ };
2080
+ }>, z.ZodObject<{
2081
+ type: z.ZodLiteral<"log">;
2082
+ stream: z.ZodEnum<["stdout", "stderr"]>;
2083
+ text: z.ZodString;
2084
+ }, "strip", z.ZodTypeAny, {
2085
+ type: "log";
2086
+ stream: "stdout" | "stderr";
2087
+ text: string;
2088
+ }, {
2089
+ type: "log";
2090
+ stream: "stdout" | "stderr";
2091
+ text: string;
2092
+ }>, z.ZodObject<{
2093
+ type: z.ZodLiteral<"exit">;
2094
+ lifecycle: z.ZodObject<{
2095
+ dependency: z.ZodObject<{
2096
+ message: z.ZodOptional<z.ZodString>;
2097
+ progress: z.ZodOptional<z.ZodNumber>;
2098
+ error: z.ZodOptional<z.ZodString>;
2099
+ } & {
2100
+ state: z.ZodEnum<["installed", "installing", "missing", "error", "not-applicable"]>;
2101
+ }, "strip", z.ZodTypeAny, {
2102
+ state: "error" | "installed" | "installing" | "missing" | "not-applicable";
2103
+ message?: string | undefined;
2104
+ error?: string | undefined;
2105
+ progress?: number | undefined;
2106
+ }, {
2107
+ state: "error" | "installed" | "installing" | "missing" | "not-applicable";
2108
+ message?: string | undefined;
2109
+ error?: string | undefined;
2110
+ progress?: number | undefined;
2111
+ }>;
2112
+ runtime: z.ZodObject<{
2113
+ message: z.ZodOptional<z.ZodString>;
2114
+ progress: z.ZodOptional<z.ZodNumber>;
2115
+ error: z.ZodOptional<z.ZodString>;
2116
+ } & {
2117
+ state: z.ZodEnum<["ready", "probing", "failed", "error", "not-applicable"]>;
2118
+ }, "strip", z.ZodTypeAny, {
2119
+ state: "error" | "ready" | "not-applicable" | "probing" | "failed";
2120
+ message?: string | undefined;
2121
+ error?: string | undefined;
2122
+ progress?: number | undefined;
2123
+ }, {
2124
+ state: "error" | "ready" | "not-applicable" | "probing" | "failed";
2125
+ message?: string | undefined;
2126
+ error?: string | undefined;
2127
+ progress?: number | undefined;
2128
+ }>;
2129
+ assets: z.ZodObject<{
2130
+ message: z.ZodOptional<z.ZodString>;
2131
+ progress: z.ZodOptional<z.ZodNumber>;
2132
+ error: z.ZodOptional<z.ZodString>;
2133
+ } & {
2134
+ state: z.ZodEnum<["ready", "missing", "downloading", "error", "not-applicable"]>;
2135
+ }, "strip", z.ZodTypeAny, {
2136
+ state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
2137
+ message?: string | undefined;
2138
+ error?: string | undefined;
2139
+ progress?: number | undefined;
2140
+ }, {
2141
+ state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
2142
+ message?: string | undefined;
2143
+ error?: string | undefined;
2144
+ progress?: number | undefined;
2145
+ }>;
2146
+ summary: z.ZodOptional<z.ZodString>;
2147
+ }, "strip", z.ZodTypeAny, {
2148
+ dependency: {
2149
+ state: "error" | "installed" | "installing" | "missing" | "not-applicable";
2150
+ message?: string | undefined;
2151
+ error?: string | undefined;
2152
+ progress?: number | undefined;
2153
+ };
2154
+ runtime: {
2155
+ state: "error" | "ready" | "not-applicable" | "probing" | "failed";
2156
+ message?: string | undefined;
2157
+ error?: string | undefined;
2158
+ progress?: number | undefined;
2159
+ };
2160
+ assets: {
2161
+ state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
2162
+ message?: string | undefined;
2163
+ error?: string | undefined;
2164
+ progress?: number | undefined;
2165
+ };
2166
+ summary?: string | undefined;
2167
+ }, {
2168
+ dependency: {
2169
+ state: "error" | "installed" | "installing" | "missing" | "not-applicable";
2170
+ message?: string | undefined;
2171
+ error?: string | undefined;
2172
+ progress?: number | undefined;
2173
+ };
2174
+ runtime: {
2175
+ state: "error" | "ready" | "not-applicable" | "probing" | "failed";
2176
+ message?: string | undefined;
2177
+ error?: string | undefined;
2178
+ progress?: number | undefined;
2179
+ };
2180
+ assets: {
2181
+ state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
2182
+ message?: string | undefined;
2183
+ error?: string | undefined;
2184
+ progress?: number | undefined;
2185
+ };
2186
+ summary?: string | undefined;
2187
+ }>;
2188
+ }, "strip", z.ZodTypeAny, {
2189
+ type: "exit";
2190
+ lifecycle: {
2191
+ dependency: {
2192
+ state: "error" | "installed" | "installing" | "missing" | "not-applicable";
2193
+ message?: string | undefined;
2194
+ error?: string | undefined;
2195
+ progress?: number | undefined;
2196
+ };
2197
+ runtime: {
2198
+ state: "error" | "ready" | "not-applicable" | "probing" | "failed";
2199
+ message?: string | undefined;
2200
+ error?: string | undefined;
2201
+ progress?: number | undefined;
2202
+ };
2203
+ assets: {
2204
+ state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
2205
+ message?: string | undefined;
2206
+ error?: string | undefined;
2207
+ progress?: number | undefined;
2208
+ };
2209
+ summary?: string | undefined;
2210
+ };
2211
+ }, {
2212
+ type: "exit";
2213
+ lifecycle: {
2214
+ dependency: {
2215
+ state: "error" | "installed" | "installing" | "missing" | "not-applicable";
2216
+ message?: string | undefined;
2217
+ error?: string | undefined;
2218
+ progress?: number | undefined;
2219
+ };
2220
+ runtime: {
2221
+ state: "error" | "ready" | "not-applicable" | "probing" | "failed";
2222
+ message?: string | undefined;
2223
+ error?: string | undefined;
2224
+ progress?: number | undefined;
2225
+ };
2226
+ assets: {
2227
+ state: "downloading" | "error" | "ready" | "missing" | "not-applicable";
2228
+ message?: string | undefined;
2229
+ error?: string | undefined;
2230
+ progress?: number | undefined;
2231
+ };
2232
+ summary?: string | undefined;
2233
+ };
2234
+ }>]>;
2235
+ interface TranslationEngineLifecycleContext {
2236
+ projectDir: string;
2237
+ globalSettings: TranslationEngineGlobalSettings;
2238
+ signal?: AbortSignal;
2239
+ onLifecycle?: (status: TranslationEngineLifecycleStatus) => void;
2240
+ onLog?: (event: TranslationEngineInstallLogEvent) => void;
2241
+ }
2242
+ interface TranslationEngineLifecycleController {
2243
+ detectLifecycle(input: TranslationEngineLifecycleContext): Promise<TranslationEngineLifecycleStatus>;
2244
+ install(input: TranslationEngineLifecycleContext): Promise<TranslationEngineLifecycleStatus>;
2245
+ }
2246
+ type TranslationEngineRuntime = 'browser' | 'server';
2247
+ type TranslationEngineKind = 'browser' | 'managed-local' | 'remote-provider';
2248
+ type TranslationEngineSettingsKey = 'local' | 'localCt2' | 'openai';
2249
+ interface TranslationEngineManifest {
2250
+ id: TranslationEngineId;
2251
+ label: string;
2252
+ description: string;
2253
+ technicalSummary: string;
2254
+ runtime: TranslationEngineRuntime;
2255
+ kind: TranslationEngineKind;
2256
+ settingsKey?: TranslationEngineSettingsKey;
2257
+ defaultModel?: string;
2258
+ runtimePackageName?: string;
2259
+ installDescription?: string;
2260
+ modelLabel?: string;
2261
+ downloadGroupsLabel?: string;
2262
+ refreshTooltip?: string;
2263
+ moduleName?: string;
2264
+ factoryExport?: string;
2265
+ }
2266
+ declare const TRANSLATION_ENGINE_MANIFESTS: readonly [{
2267
+ readonly id: "browser";
2268
+ readonly label: "Browser";
2269
+ readonly description: "Uses the browser Translator API and future browser-side providers.";
2270
+ readonly technicalSummary: "Browser-native Web Translator adapter. Package payload is about 5 KB; browser language packs are managed by the browser.";
2271
+ readonly runtime: "browser";
2272
+ readonly kind: "browser";
2273
+ readonly installDescription: "Browser translation support is built into the browser runtime.";
2274
+ readonly moduleName: "@openspecui/browser-translator";
2275
+ readonly factoryExport: "createBrowserTranslatorFactory";
2276
+ }, {
2277
+ readonly id: "local";
2278
+ readonly label: "Local-Transformers";
2279
+ readonly description: "Runs an ONNX Runtime-backed local translation adapter through Transformers.js with managed ONNX model files.";
2280
+ readonly technicalSummary: "Server-side ONNX Runtime adapter via Transformers.js. Runtime package is installed on demand; selected ONNX model groups are downloaded separately and can range from tens to hundreds of MB.";
2281
+ readonly runtime: "server";
2282
+ readonly kind: "managed-local";
2283
+ readonly settingsKey: "local";
2284
+ readonly defaultModel: "Xenova/nllb-200-distilled-600M";
2285
+ readonly runtimePackageName: "@huggingface/transformers";
2286
+ readonly installDescription: "Install the Local-Transformers runtime package to enable server-side translation.";
2287
+ readonly modelLabel: "Local Model";
2288
+ readonly downloadGroupsLabel: "Local download profiles";
2289
+ readonly refreshTooltip: "Refresh local model profiles";
2290
+ readonly moduleName: "@openspecui/local-translator";
2291
+ readonly factoryExport: "createLocalTranslatorFactory";
2292
+ }, {
2293
+ readonly id: "local-ct2";
2294
+ readonly label: "Local-CT2";
2295
+ readonly description: "Runs a bundled local CTranslate2 translation runtime with managed model files.";
2296
+ readonly technicalSummary: "Server-side native CTranslate2 adapter. Runtime package is installed on demand; selected model artifacts are downloaded separately and can range from tens to hundreds of MB.";
2297
+ readonly runtime: "server";
2298
+ readonly kind: "managed-local";
2299
+ readonly settingsKey: "localCt2";
2300
+ readonly defaultModel: "ooeoeo/opus-mt-en-zh-ct2-float16";
2301
+ readonly runtimePackageName: "ctranslate2";
2302
+ readonly installDescription: "Install the Local-CT2 runtime package to enable server-side translation.";
2303
+ readonly modelLabel: "CT2 Model";
2304
+ readonly downloadGroupsLabel: "Local CT2 download groups";
2305
+ readonly refreshTooltip: "Refresh local model artifacts";
2306
+ readonly moduleName: "@openspecui/local-ct2-translator";
2307
+ readonly factoryExport: "createLocalCt2TranslatorFactory";
2308
+ }, {
2309
+ readonly id: "openai";
2310
+ readonly label: "OpenAI-Completion";
2311
+ readonly description: "Uses an OpenAI-compatible TanStack AI completion provider for context-aware translation.";
2312
+ readonly technicalSummary: "Server-side TanStack AI adapter for OpenAI-compatible APIs. Package payload is about 5 KB; model size stays with the remote provider.";
2313
+ readonly runtime: "server";
2314
+ readonly kind: "remote-provider";
2315
+ readonly settingsKey: "openai";
2316
+ readonly defaultModel: "gpt-4.1-mini";
2317
+ readonly installDescription: "OpenAI completion translation is bundled with the server runtime.";
2318
+ readonly moduleName: "@openspecui/openai-completion-translator";
2319
+ readonly factoryExport: "createOpenAICompletionTranslatorFactory";
2320
+ }];
2321
+ declare function getTranslationEngineManifest(engineId: TranslationEngineId): TranslationEngineManifest;
2322
+ declare function getManagedLocalTranslationEngineManifest(engineId: ManagedLocalTranslationEngineId): TranslationEngineManifest & {
2323
+ kind: 'managed-local';
2324
+ settingsKey: Extract<TranslationEngineSettingsKey, 'local' | 'localCt2'>;
2325
+ defaultModel: string;
2326
+ runtimePackageName: string;
2327
+ installDescription: string;
2328
+ modelLabel: string;
2329
+ downloadGroupsLabel: string;
2330
+ refreshTooltip: string;
2331
+ };
2332
+ declare const TranslationOpenAISettingsSchema: z.ZodObject<{
2333
+ baseUrl: z.ZodDefault<z.ZodString>;
2334
+ token: z.ZodDefault<z.ZodString>;
2335
+ model: z.ZodDefault<z.ZodString>;
2336
+ }, "strip", z.ZodTypeAny, {
2337
+ baseUrl: string;
2338
+ token: string;
2339
+ model: string;
2340
+ }, {
2341
+ baseUrl?: string | undefined;
2342
+ token?: string | undefined;
2343
+ model?: string | undefined;
2344
+ }>;
2345
+ type TranslationOpenAISettings = z.infer<typeof TranslationOpenAISettingsSchema>;
2346
+ declare const TranslationLocalSettingsSchema: z.ZodObject<{
2347
+ model: z.ZodDefault<z.ZodString>;
2348
+ selectedGroupId: z.ZodOptional<z.ZodString>;
2349
+ hfEndpoint: z.ZodDefault<z.ZodString>;
2350
+ }, "strip", z.ZodTypeAny, {
2351
+ model: string;
2352
+ hfEndpoint: string;
2353
+ selectedGroupId?: string | undefined;
2354
+ }, {
2355
+ selectedGroupId?: string | undefined;
2356
+ model?: string | undefined;
2357
+ hfEndpoint?: string | undefined;
2358
+ }>;
2359
+ type TranslationLocalSettings = z.infer<typeof TranslationLocalSettingsSchema>;
2360
+ declare const TranslationLocalCt2SettingsSchema: z.ZodObject<{
2361
+ model: z.ZodDefault<z.ZodString>;
2362
+ selectedGroupId: z.ZodOptional<z.ZodString>;
2363
+ hfEndpoint: z.ZodDefault<z.ZodString>;
2364
+ }, "strip", z.ZodTypeAny, {
2365
+ model: string;
2366
+ hfEndpoint: string;
2367
+ selectedGroupId?: string | undefined;
2368
+ }, {
2369
+ selectedGroupId?: string | undefined;
2370
+ model?: string | undefined;
2371
+ hfEndpoint?: string | undefined;
2372
+ }>;
2373
+ type TranslationLocalCt2Settings = z.infer<typeof TranslationLocalCt2SettingsSchema>;
2374
+ declare const TranslationEngineGlobalSettingsSchema: z.ZodObject<{
2375
+ openai: z.ZodDefault<z.ZodObject<{
2376
+ baseUrl: z.ZodDefault<z.ZodString>;
2377
+ token: z.ZodDefault<z.ZodString>;
2378
+ model: z.ZodDefault<z.ZodString>;
2379
+ }, "strip", z.ZodTypeAny, {
2380
+ baseUrl: string;
2381
+ token: string;
2382
+ model: string;
2383
+ }, {
2384
+ baseUrl?: string | undefined;
2385
+ token?: string | undefined;
2386
+ model?: string | undefined;
2387
+ }>>;
2388
+ local: z.ZodDefault<z.ZodObject<{
2389
+ model: z.ZodDefault<z.ZodString>;
2390
+ selectedGroupId: z.ZodOptional<z.ZodString>;
2391
+ hfEndpoint: z.ZodDefault<z.ZodString>;
2392
+ }, "strip", z.ZodTypeAny, {
2393
+ model: string;
2394
+ hfEndpoint: string;
2395
+ selectedGroupId?: string | undefined;
2396
+ }, {
2397
+ selectedGroupId?: string | undefined;
2398
+ model?: string | undefined;
2399
+ hfEndpoint?: string | undefined;
2400
+ }>>;
2401
+ localCt2: z.ZodDefault<z.ZodObject<{
2402
+ model: z.ZodDefault<z.ZodString>;
2403
+ selectedGroupId: z.ZodOptional<z.ZodString>;
2404
+ hfEndpoint: z.ZodDefault<z.ZodString>;
2405
+ }, "strip", z.ZodTypeAny, {
2406
+ model: string;
2407
+ hfEndpoint: string;
2408
+ selectedGroupId?: string | undefined;
2409
+ }, {
2410
+ selectedGroupId?: string | undefined;
2411
+ model?: string | undefined;
2412
+ hfEndpoint?: string | undefined;
2413
+ }>>;
2414
+ }, "strip", z.ZodTypeAny, {
2415
+ local: {
2416
+ model: string;
2417
+ hfEndpoint: string;
2418
+ selectedGroupId?: string | undefined;
2419
+ };
2420
+ openai: {
2421
+ baseUrl: string;
2422
+ token: string;
2423
+ model: string;
2424
+ };
2425
+ localCt2: {
2426
+ model: string;
2427
+ hfEndpoint: string;
2428
+ selectedGroupId?: string | undefined;
2429
+ };
2430
+ }, {
2431
+ local?: {
2432
+ selectedGroupId?: string | undefined;
2433
+ model?: string | undefined;
2434
+ hfEndpoint?: string | undefined;
2435
+ } | undefined;
2436
+ openai?: {
2437
+ baseUrl?: string | undefined;
2438
+ token?: string | undefined;
2439
+ model?: string | undefined;
2440
+ } | undefined;
2441
+ localCt2?: {
2442
+ selectedGroupId?: string | undefined;
2443
+ model?: string | undefined;
2444
+ hfEndpoint?: string | undefined;
2445
+ } | undefined;
2446
+ }>;
2447
+ type TranslationEngineGlobalSettings = z.infer<typeof TranslationEngineGlobalSettingsSchema>;
2448
+ type TranslationEngineGlobalSettingsUpdate = {
2449
+ openai?: Partial<TranslationOpenAISettings>;
2450
+ local?: Partial<Omit<TranslationLocalSettings, 'selectedGroupId'>> & {
2451
+ selectedGroupId?: TranslationLocalSettings['selectedGroupId'] | null;
2452
+ };
2453
+ localCt2?: Partial<Omit<TranslationLocalCt2Settings, 'selectedGroupId'>> & {
2454
+ selectedGroupId?: TranslationLocalCt2Settings['selectedGroupId'] | null;
2455
+ };
2456
+ };
2457
+ declare const BatchTranslateInputSchema: z.ZodObject<{
2458
+ engineId: z.ZodEnum<["browser", "local", "local-ct2", "openai"]>;
2459
+ sourceLanguage: z.ZodString;
2460
+ targetLanguage: z.ZodString;
2461
+ model: z.ZodOptional<z.ZodString>;
2462
+ selectedGroupId: z.ZodOptional<z.ZodString>;
2463
+ inputs: z.ZodArray<z.ZodString, "many">;
2464
+ instructions: z.ZodOptional<z.ZodString>;
2465
+ context: z.ZodOptional<z.ZodString>;
2466
+ }, "strip", z.ZodTypeAny, {
2467
+ engineId: "browser" | "local" | "local-ct2" | "openai";
2468
+ sourceLanguage: string;
2469
+ targetLanguage: string;
2470
+ inputs: string[];
2471
+ selectedGroupId?: string | undefined;
2472
+ model?: string | undefined;
2473
+ instructions?: string | undefined;
2474
+ context?: string | undefined;
2475
+ }, {
2476
+ engineId: "browser" | "local" | "local-ct2" | "openai";
2477
+ sourceLanguage: string;
2478
+ targetLanguage: string;
2479
+ inputs: string[];
2480
+ selectedGroupId?: string | undefined;
2481
+ model?: string | undefined;
2482
+ instructions?: string | undefined;
2483
+ context?: string | undefined;
2484
+ }>;
2485
+ type BatchTranslateInput = z.infer<typeof BatchTranslateInputSchema>;
2486
+ declare const BatchTranslateEventSchema: z.ZodObject<{
2487
+ index: z.ZodNumber;
2488
+ output: z.ZodString;
2489
+ }, "strip", z.ZodTypeAny, {
2490
+ index: number;
2491
+ output: string;
2492
+ }, {
2493
+ index: number;
2494
+ output: string;
2495
+ }>;
2496
+ type BatchTranslateEvent = z.infer<typeof BatchTranslateEventSchema>;
2497
+ //#endregion
2498
+ export { TranslationEngineGlobalSettingsSchema as $, LocalModelProfileManifestSchema as A, TranslationModelSearchEvent as At, TranslationDownloadFilePlan as B, TranslatorFactoryPrepareOptions as Bt, LocalModelProfileLoadState as C, TranslationEngineSettingsKey as Ct, LocalModelProfileManifestFileSchema as D, TranslationLocalSettingsSchema as Dt, LocalModelProfileManifestFile as E, TranslationLocalSettings as Et, ServiceTranslationEngineId as F, TranslationOpenAISettingsSchema as Ft, TranslationEngineAssetStateSchema as G, getTranslationEngineLifecycleMessage as Gt, TranslationDownloadGroupPlan as H, TranslatorPrepareMonitor as Ht, ServiceTranslationEngineIdSchema as I, Translator as It, TranslationEngineDependencyState as J, isTranslationEngineDependencyReady as Jt, TranslationEngineAssetStatus as K, getTranslationEngineManifest as Kt, TRANSLATION_ENGINE_IDS as L, TranslatorCreateMonitor as Lt, LocalModelProfileStatusSchema as M, TranslationModelSearchPhase as Mt, ManagedLocalTranslationEngineId as N, TranslationModelSearchResult as Nt, LocalModelProfileManifestGroup as O, TranslationModelCandidate as Ot, SERVICE_TRANSLATION_ENGINE_IDS as P, TranslationOpenAISettings as Pt, TranslationEngineGlobalSettings as Q, TRANSLATION_ENGINE_MANIFESTS as R, TranslatorFactory as Rt, LocalModelLifecycleGroupStateSchema as S, TranslationEngineRuntimeStatusSchema as St, LocalModelProfileManifest as T, TranslationLocalCt2SettingsSchema as Tt, TranslationDownloadGroupPlanSchema as U, createTranslationEngineLifecycleStatus as Ut, TranslationDownloadFilePlanSchema as V, TranslatorOptions as Vt, TranslationEngineAssetState as W, getManagedLocalTranslationEngineManifest as Wt, TranslationEngineDependencyStatus as X, shouldShowTranslationEngineInstallGate as Xt, TranslationEngineDependencyStateSchema as Y, isTranslationEngineRuntimeReady as Yt, TranslationEngineDependencyStatusSchema as Z, LocalModelDownloadStatus as _, TranslationEngineManifest as _t, BatchTranslationResult as a, TranslationEngineInstallLogStream as at, LocalModelLifecycleFileStateSchema as b, TranslationEngineRuntimeStateSchema as bt, LocalModelAssetLogSchema as c, TranslationEngineLifecycleContext as ct, LocalModelAssetState as d, TranslationEngineLifecycleEventSchema as dt, TranslationEngineGlobalSettingsUpdate as et, LocalModelAssetStateSchema as f, TranslationEngineLifecycleExitEvent as ft, LocalModelCatalogSearchEvent as g, TranslationEngineLifecycleStatusSchema as gt, LocalModelCatalogResult as h, TranslationEngineLifecycleStatusEvent as ht, BatchTranslateInputSchema as i, TranslationEngineInstallLogEventSchema as it, LocalModelProfileStatus as j, TranslationModelSearchInput as jt, LocalModelProfileManifestGroupSchema as k, TranslationModelDownloadPlan as kt, LocalModelAssetPlanSnapshot as l, TranslationEngineLifecycleController as lt, LocalModelCatalogLocalResult as m, TranslationEngineLifecycleStatus as mt, BatchTranslateEventSchema as n, TranslationEngineIdSchema as nt, DEFAULT_TRANSLATION_ENGINE_ID as o, TranslationEngineInstallLogStreamSchema as ot, LocalModelCatalogItem as p, TranslationEngineLifecycleLogEvent as pt, TranslationEngineAssetStatusSchema as q, isManagedLocalTranslationEngineId as qt, BatchTranslateInput as r, TranslationEngineInstallLogEvent as rt, LocalModelAssetLog as s, TranslationEngineKind as st, BatchTranslateEvent as t, TranslationEngineId as tt, LocalModelAssetPlanSnapshotSchema as u, TranslationEngineLifecycleEvent as ut, LocalModelDownloadStatusSchema as v, TranslationEngineRuntime as vt, LocalModelProfileLoadStateSchema as w, TranslationLocalCt2Settings as wt, LocalModelLifecycleGroupState as x, TranslationEngineRuntimeStatus as xt, LocalModelLifecycleFileState as y, TranslationEngineRuntimeState as yt, TRANSLATOR_CONTRACT_VERSION as z, TranslatorFactoryCreateOptions as zt };