@ai-matrx/desktop-protocol 0.21.85 → 0.21.86

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.
@@ -719,7 +719,7 @@ type OpSpec = {
719
719
  readonly params: z.ZodType;
720
720
  readonly result: z.ZodType;
721
721
  readonly kind: "unary" | "stream" | "resource";
722
- readonly since: "1.0" | "1.2" | "1.3" | "1.4" | "1.5" | "1.6" | "1.8" | "1.9" | "1.10" | "1.11" | "1.16" | "1.17" | "1.19" | "1.20" | "1.21" | "1.22" | "1.23" | "1.24" | "1.26" | "1.28" | "1.29" | "1.30" | "1.31" | "1.37" | "1.38" | "1.39" | "1.40" | "1.43" | "1.44" | "1.45" | "1.47" | "1.50" | "1.55" | "1.56" | "1.64" | "1.70" | "1.72" | "1.73" | "1.74" | "1.76";
722
+ readonly since: "1.0" | "1.2" | "1.3" | "1.4" | "1.5" | "1.6" | "1.8" | "1.9" | "1.10" | "1.11" | "1.16" | "1.17" | "1.19" | "1.20" | "1.21" | "1.22" | "1.23" | "1.24" | "1.26" | "1.28" | "1.29" | "1.30" | "1.31" | "1.37" | "1.38" | "1.39" | "1.40" | "1.43" | "1.44" | "1.45" | "1.47" | "1.50" | "1.55" | "1.56" | "1.64" | "1.70" | "1.72" | "1.73" | "1.74" | "1.76" | "1.81";
723
723
  readonly errors: readonly z.infer<typeof ErrorCode>[];
724
724
  };
725
725
  declare const OPS: {
@@ -1745,6 +1745,114 @@ declare const OPS: {
1745
1745
  readonly since: "1.74";
1746
1746
  readonly errors: readonly ["NOT_FOUND", "INVALID_PARAMS", "RESOURCE_BUSY", "INTERNAL"];
1747
1747
  };
1748
+ readonly "models.tts.status": {
1749
+ readonly params: z.ZodObject<{}, z.core.$strict>;
1750
+ readonly result: z.ZodObject<{
1751
+ model: z.ZodNullable<z.ZodObject<{
1752
+ id: z.ZodString;
1753
+ size_bytes: z.ZodInt;
1754
+ installed: z.ZodBoolean;
1755
+ }, z.core.$strict>>;
1756
+ runtime: z.ZodEnum<{
1757
+ not_installed: "not_installed";
1758
+ installing: "installing";
1759
+ installed: "installed";
1760
+ failed: "failed";
1761
+ }>;
1762
+ voices: z.ZodArray<z.ZodObject<{
1763
+ id: z.ZodString;
1764
+ name: z.ZodString;
1765
+ gender: z.ZodNullable<z.ZodEnum<{
1766
+ female: "female";
1767
+ male: "male";
1768
+ }>>;
1769
+ language: z.ZodString;
1770
+ lang_code: z.ZodString;
1771
+ grade: z.ZodNullable<z.ZodString>;
1772
+ traits: z.ZodArray<z.ZodString>;
1773
+ custom: z.ZodBoolean;
1774
+ }, z.core.$strict>>;
1775
+ default_voice: z.ZodString;
1776
+ sample_rate: z.ZodInt;
1777
+ speed_min: z.ZodNumber;
1778
+ speed_max: z.ZodNumber;
1779
+ error: z.ZodNullable<z.ZodString>;
1780
+ }, z.core.$strict>;
1781
+ readonly kind: "unary";
1782
+ readonly since: "1.81";
1783
+ readonly errors: readonly ["RESOURCE_BUSY", "INTERNAL"];
1784
+ };
1785
+ readonly "models.tts.install": {
1786
+ readonly params: z.ZodObject<{}, z.core.$strict>;
1787
+ readonly result: z.ZodObject<{
1788
+ model: z.ZodString;
1789
+ elapsed_ms: z.ZodInt;
1790
+ }, z.core.$strict>;
1791
+ readonly kind: "unary";
1792
+ readonly since: "1.81";
1793
+ readonly errors: readonly ["NOT_FOUND", "RESOURCE_BUSY", "RESOURCE_GONE", "TIMEOUT", "CANCELLED", "INTERNAL"];
1794
+ };
1795
+ readonly "models.tts.speak": {
1796
+ readonly params: z.ZodObject<{
1797
+ text: z.ZodString;
1798
+ voice: z.ZodOptional<z.ZodString>;
1799
+ blend: z.ZodOptional<z.ZodArray<z.ZodObject<{
1800
+ voice: z.ZodString;
1801
+ weight: z.ZodNumber;
1802
+ }, z.core.$strict>>>;
1803
+ speed: z.ZodDefault<z.ZodNumber>;
1804
+ chunk_chars: z.ZodOptional<z.ZodInt>;
1805
+ }, z.core.$strict>;
1806
+ readonly result: z.ZodObject<{
1807
+ chunks: z.ZodInt;
1808
+ duration_s: z.ZodNumber;
1809
+ sample_rate: z.ZodInt;
1810
+ voice: z.ZodString;
1811
+ elapsed_ms: z.ZodInt;
1812
+ }, z.core.$strict>;
1813
+ readonly kind: "unary";
1814
+ readonly since: "1.81";
1815
+ readonly errors: readonly ["NOT_FOUND", "INVALID_PARAMS", "RESOURCE_BUSY", "RESOURCE_GONE", "TIMEOUT", "CANCELLED", "INTERNAL"];
1816
+ };
1817
+ readonly "models.tts.voice_save": {
1818
+ readonly params: z.ZodObject<{
1819
+ name: z.ZodString;
1820
+ blend: z.ZodOptional<z.ZodArray<z.ZodObject<{
1821
+ voice: z.ZodString;
1822
+ weight: z.ZodNumber;
1823
+ }, z.core.$strict>>>;
1824
+ path: z.ZodOptional<z.ZodString>;
1825
+ }, z.core.$strict>;
1826
+ readonly result: z.ZodObject<{
1827
+ voice: z.ZodObject<{
1828
+ id: z.ZodString;
1829
+ name: z.ZodString;
1830
+ gender: z.ZodNullable<z.ZodEnum<{
1831
+ female: "female";
1832
+ male: "male";
1833
+ }>>;
1834
+ language: z.ZodString;
1835
+ lang_code: z.ZodString;
1836
+ grade: z.ZodNullable<z.ZodString>;
1837
+ traits: z.ZodArray<z.ZodString>;
1838
+ custom: z.ZodBoolean;
1839
+ }, z.core.$strict>;
1840
+ }, z.core.$strict>;
1841
+ readonly kind: "unary";
1842
+ readonly since: "1.81";
1843
+ readonly errors: readonly ["NOT_FOUND", "INVALID_PARAMS", "PAYLOAD_TOO_LARGE", "CONFLICT", "RESOURCE_BUSY", "INTERNAL"];
1844
+ };
1845
+ readonly "models.tts.voice_remove": {
1846
+ readonly params: z.ZodObject<{
1847
+ voice: z.ZodString;
1848
+ }, z.core.$strict>;
1849
+ readonly result: z.ZodObject<{
1850
+ removed: z.ZodBoolean;
1851
+ }, z.core.$strict>;
1852
+ readonly kind: "unary";
1853
+ readonly since: "1.81";
1854
+ readonly errors: readonly ["NOT_FOUND", "INVALID_PARAMS", "INTERNAL"];
1855
+ };
1748
1856
  readonly "apps.list": {
1749
1857
  readonly params: z.ZodObject<{}, z.core.$strict>;
1750
1858
  readonly result: z.ZodObject<{
@@ -8209,9 +8317,9 @@ declare const OPS: {
8209
8317
  title: z.ZodNullable<z.ZodString>;
8210
8318
  media_type: z.ZodOptional<z.ZodEnum<{
8211
8319
  unknown: "unknown";
8320
+ audio: "audio";
8212
8321
  image: "image";
8213
8322
  video: "video";
8214
- audio: "audio";
8215
8323
  }>>;
8216
8324
  duration_s: z.ZodOptional<z.ZodNumber>;
8217
8325
  }, z.core.$strict>>;
@@ -8237,9 +8345,9 @@ declare const OPS: {
8237
8345
  title: z.ZodNullable<z.ZodString>;
8238
8346
  media_type: z.ZodOptional<z.ZodEnum<{
8239
8347
  unknown: "unknown";
8348
+ audio: "audio";
8240
8349
  image: "image";
8241
8350
  video: "video";
8242
- audio: "audio";
8243
8351
  }>>;
8244
8352
  duration_s: z.ZodOptional<z.ZodNumber>;
8245
8353
  }, z.core.$strict>;
@@ -8826,6 +8934,7 @@ declare const EVENTS: {
8826
8934
  kind: z.ZodEnum<{
8827
8935
  install: "install";
8828
8936
  transcribe: "transcribe";
8937
+ speak: "speak";
8829
8938
  }>;
8830
8939
  fraction: z.ZodNullable<z.ZodNumber>;
8831
8940
  install: z.ZodNullable<z.ZodObject<{
@@ -8843,6 +8952,12 @@ declare const EVENTS: {
8843
8952
  end_s: z.ZodNumber;
8844
8953
  text: z.ZodString;
8845
8954
  }, z.core.$strict>>;
8955
+ audio: z.ZodOptional<z.ZodObject<{
8956
+ index: z.ZodInt;
8957
+ sample_rate: z.ZodInt;
8958
+ pcm16_base64: z.ZodString;
8959
+ text: z.ZodString;
8960
+ }, z.core.$strict>>;
8846
8961
  }, z.core.$strict>;
8847
8962
  }, z.core.$strict>;
8848
8963
  readonly "coding.history.progress": z.ZodObject<{
@@ -9165,6 +9280,7 @@ declare const SERVICES: {
9165
9280
  kind: z.ZodEnum<{
9166
9281
  install: "install";
9167
9282
  transcribe: "transcribe";
9283
+ speak: "speak";
9168
9284
  }>;
9169
9285
  fraction: z.ZodNullable<z.ZodNumber>;
9170
9286
  install: z.ZodNullable<z.ZodObject<{
@@ -9182,6 +9298,12 @@ declare const SERVICES: {
9182
9298
  end_s: z.ZodNumber;
9183
9299
  text: z.ZodString;
9184
9300
  }, z.core.$strict>>;
9301
+ audio: z.ZodOptional<z.ZodObject<{
9302
+ index: z.ZodInt;
9303
+ sample_rate: z.ZodInt;
9304
+ pcm16_base64: z.ZodString;
9305
+ text: z.ZodString;
9306
+ }, z.core.$strict>>;
9185
9307
  }, z.core.$strict>;
9186
9308
  readonly ops: {
9187
9309
  readonly "ml.status": {
@@ -9393,6 +9515,99 @@ declare const SERVICES: {
9393
9515
  kept: z.ZodNullable<z.ZodString>;
9394
9516
  }, z.core.$strict>;
9395
9517
  };
9518
+ readonly "ml.tts_status": {
9519
+ readonly params: z.ZodObject<{}, z.core.$strict>;
9520
+ readonly result: z.ZodObject<{
9521
+ model: z.ZodNullable<z.ZodObject<{
9522
+ id: z.ZodString;
9523
+ size_bytes: z.ZodInt;
9524
+ installed: z.ZodBoolean;
9525
+ }, z.core.$strict>>;
9526
+ runtime: z.ZodEnum<{
9527
+ not_installed: "not_installed";
9528
+ installing: "installing";
9529
+ installed: "installed";
9530
+ failed: "failed";
9531
+ }>;
9532
+ voices: z.ZodArray<z.ZodObject<{
9533
+ id: z.ZodString;
9534
+ name: z.ZodString;
9535
+ gender: z.ZodNullable<z.ZodEnum<{
9536
+ female: "female";
9537
+ male: "male";
9538
+ }>>;
9539
+ language: z.ZodString;
9540
+ lang_code: z.ZodString;
9541
+ grade: z.ZodNullable<z.ZodString>;
9542
+ traits: z.ZodArray<z.ZodString>;
9543
+ custom: z.ZodBoolean;
9544
+ }, z.core.$strict>>;
9545
+ default_voice: z.ZodString;
9546
+ sample_rate: z.ZodInt;
9547
+ speed_min: z.ZodNumber;
9548
+ speed_max: z.ZodNumber;
9549
+ error: z.ZodNullable<z.ZodString>;
9550
+ }, z.core.$strict>;
9551
+ };
9552
+ readonly "ml.tts_install": {
9553
+ readonly params: z.ZodObject<{}, z.core.$strict>;
9554
+ readonly result: z.ZodObject<{
9555
+ model: z.ZodString;
9556
+ elapsed_ms: z.ZodInt;
9557
+ }, z.core.$strict>;
9558
+ };
9559
+ readonly "ml.tts_speak": {
9560
+ readonly params: z.ZodObject<{
9561
+ text: z.ZodString;
9562
+ voice: z.ZodOptional<z.ZodString>;
9563
+ blend: z.ZodOptional<z.ZodArray<z.ZodObject<{
9564
+ voice: z.ZodString;
9565
+ weight: z.ZodNumber;
9566
+ }, z.core.$strict>>>;
9567
+ speed: z.ZodDefault<z.ZodNumber>;
9568
+ chunk_chars: z.ZodOptional<z.ZodInt>;
9569
+ }, z.core.$strict>;
9570
+ readonly result: z.ZodObject<{
9571
+ chunks: z.ZodInt;
9572
+ duration_s: z.ZodNumber;
9573
+ sample_rate: z.ZodInt;
9574
+ voice: z.ZodString;
9575
+ elapsed_ms: z.ZodInt;
9576
+ }, z.core.$strict>;
9577
+ };
9578
+ readonly "ml.tts_voice_save": {
9579
+ readonly params: z.ZodObject<{
9580
+ name: z.ZodString;
9581
+ blend: z.ZodOptional<z.ZodArray<z.ZodObject<{
9582
+ voice: z.ZodString;
9583
+ weight: z.ZodNumber;
9584
+ }, z.core.$strict>>>;
9585
+ path: z.ZodOptional<z.ZodString>;
9586
+ }, z.core.$strict>;
9587
+ readonly result: z.ZodObject<{
9588
+ voice: z.ZodObject<{
9589
+ id: z.ZodString;
9590
+ name: z.ZodString;
9591
+ gender: z.ZodNullable<z.ZodEnum<{
9592
+ female: "female";
9593
+ male: "male";
9594
+ }>>;
9595
+ language: z.ZodString;
9596
+ lang_code: z.ZodString;
9597
+ grade: z.ZodNullable<z.ZodString>;
9598
+ traits: z.ZodArray<z.ZodString>;
9599
+ custom: z.ZodBoolean;
9600
+ }, z.core.$strict>;
9601
+ }, z.core.$strict>;
9602
+ };
9603
+ readonly "ml.tts_voice_remove": {
9604
+ readonly params: z.ZodObject<{
9605
+ voice: z.ZodString;
9606
+ }, z.core.$strict>;
9607
+ readonly result: z.ZodObject<{
9608
+ removed: z.ZodBoolean;
9609
+ }, z.core.$strict>;
9610
+ };
9396
9611
  readonly "ml.catalog_set": {
9397
9612
  readonly params: z.ZodObject<{
9398
9613
  text: z.ZodArray<z.ZodObject<{
@@ -9435,6 +9650,19 @@ declare const SERVICES: {
9435
9650
  size_bytes: z.ZodInt;
9436
9651
  problem: z.ZodString;
9437
9652
  }, z.core.$strict>>>;
9653
+ speech: z.ZodOptional<z.ZodArray<z.ZodObject<{
9654
+ key: z.ZodString;
9655
+ variant: z.ZodString;
9656
+ revision: z.ZodString;
9657
+ multilingual: z.ZodBoolean;
9658
+ files: z.ZodArray<z.ZodObject<{
9659
+ path: z.ZodString;
9660
+ url: z.ZodString;
9661
+ size_bytes: z.ZodInt;
9662
+ sha256: z.ZodNullable<z.ZodString>;
9663
+ role: z.ZodString;
9664
+ }, z.core.$strict>>;
9665
+ }, z.core.$strict>>>;
9438
9666
  }, z.core.$strict>;
9439
9667
  readonly result: z.ZodObject<{
9440
9668
  text: z.ZodInt;
@@ -11574,6 +11802,7 @@ declare const NAMED_SCHEMAS: {
11574
11802
  kind: z.ZodEnum<{
11575
11803
  install: "install";
11576
11804
  transcribe: "transcribe";
11805
+ speak: "speak";
11577
11806
  }>;
11578
11807
  fraction: z.ZodNullable<z.ZodNumber>;
11579
11808
  install: z.ZodNullable<z.ZodObject<{
@@ -11591,6 +11820,12 @@ declare const NAMED_SCHEMAS: {
11591
11820
  end_s: z.ZodNumber;
11592
11821
  text: z.ZodString;
11593
11822
  }, z.core.$strict>>;
11823
+ audio: z.ZodOptional<z.ZodObject<{
11824
+ index: z.ZodInt;
11825
+ sample_rate: z.ZodInt;
11826
+ pcm16_base64: z.ZodString;
11827
+ text: z.ZodString;
11828
+ }, z.core.$strict>>;
11594
11829
  }, z.core.$strict>;
11595
11830
  readonly MlServiceState: z.ZodEnum<{
11596
11831
  failed: "failed";
@@ -11664,6 +11899,7 @@ declare const NAMED_SCHEMAS: {
11664
11899
  kind: z.ZodEnum<{
11665
11900
  install: "install";
11666
11901
  transcribe: "transcribe";
11902
+ speak: "speak";
11667
11903
  }>;
11668
11904
  fraction: z.ZodNullable<z.ZodNumber>;
11669
11905
  install: z.ZodNullable<z.ZodObject<{
@@ -11681,6 +11917,12 @@ declare const NAMED_SCHEMAS: {
11681
11917
  end_s: z.ZodNumber;
11682
11918
  text: z.ZodString;
11683
11919
  }, z.core.$strict>>;
11920
+ audio: z.ZodOptional<z.ZodObject<{
11921
+ index: z.ZodInt;
11922
+ sample_rate: z.ZodInt;
11923
+ pcm16_base64: z.ZodString;
11924
+ text: z.ZodString;
11925
+ }, z.core.$strict>>;
11684
11926
  }, z.core.$strict>;
11685
11927
  }, z.core.$strict>;
11686
11928
  readonly TextModelId: z.ZodString;
@@ -11766,6 +12008,19 @@ declare const NAMED_SCHEMAS: {
11766
12008
  size_bytes: z.ZodInt;
11767
12009
  problem: z.ZodString;
11768
12010
  }, z.core.$strict>>>;
12011
+ speech: z.ZodOptional<z.ZodArray<z.ZodObject<{
12012
+ key: z.ZodString;
12013
+ variant: z.ZodString;
12014
+ revision: z.ZodString;
12015
+ multilingual: z.ZodBoolean;
12016
+ files: z.ZodArray<z.ZodObject<{
12017
+ path: z.ZodString;
12018
+ url: z.ZodString;
12019
+ size_bytes: z.ZodInt;
12020
+ sha256: z.ZodNullable<z.ZodString>;
12021
+ role: z.ZodString;
12022
+ }, z.core.$strict>>;
12023
+ }, z.core.$strict>>>;
11769
12024
  }, z.core.$strict>;
11770
12025
  readonly MlCatalogSetResult: z.ZodObject<{
11771
12026
  text: z.ZodInt;
@@ -11963,6 +12218,118 @@ declare const NAMED_SCHEMAS: {
11963
12218
  stopped: z.ZodBoolean;
11964
12219
  kept: z.ZodNullable<z.ZodString>;
11965
12220
  }, z.core.$strict>;
12221
+ readonly TtsVoiceId: z.ZodString;
12222
+ readonly TtsVoice: z.ZodObject<{
12223
+ id: z.ZodString;
12224
+ name: z.ZodString;
12225
+ gender: z.ZodNullable<z.ZodEnum<{
12226
+ female: "female";
12227
+ male: "male";
12228
+ }>>;
12229
+ language: z.ZodString;
12230
+ lang_code: z.ZodString;
12231
+ grade: z.ZodNullable<z.ZodString>;
12232
+ traits: z.ZodArray<z.ZodString>;
12233
+ custom: z.ZodBoolean;
12234
+ }, z.core.$strict>;
12235
+ readonly TtsModelInfo: z.ZodObject<{
12236
+ id: z.ZodString;
12237
+ size_bytes: z.ZodInt;
12238
+ installed: z.ZodBoolean;
12239
+ }, z.core.$strict>;
12240
+ readonly ModelsTtsStatusParams: z.ZodObject<{}, z.core.$strict>;
12241
+ readonly ModelsTtsStatusResult: z.ZodObject<{
12242
+ model: z.ZodNullable<z.ZodObject<{
12243
+ id: z.ZodString;
12244
+ size_bytes: z.ZodInt;
12245
+ installed: z.ZodBoolean;
12246
+ }, z.core.$strict>>;
12247
+ runtime: z.ZodEnum<{
12248
+ not_installed: "not_installed";
12249
+ installing: "installing";
12250
+ installed: "installed";
12251
+ failed: "failed";
12252
+ }>;
12253
+ voices: z.ZodArray<z.ZodObject<{
12254
+ id: z.ZodString;
12255
+ name: z.ZodString;
12256
+ gender: z.ZodNullable<z.ZodEnum<{
12257
+ female: "female";
12258
+ male: "male";
12259
+ }>>;
12260
+ language: z.ZodString;
12261
+ lang_code: z.ZodString;
12262
+ grade: z.ZodNullable<z.ZodString>;
12263
+ traits: z.ZodArray<z.ZodString>;
12264
+ custom: z.ZodBoolean;
12265
+ }, z.core.$strict>>;
12266
+ default_voice: z.ZodString;
12267
+ sample_rate: z.ZodInt;
12268
+ speed_min: z.ZodNumber;
12269
+ speed_max: z.ZodNumber;
12270
+ error: z.ZodNullable<z.ZodString>;
12271
+ }, z.core.$strict>;
12272
+ readonly ModelsTtsInstallParams: z.ZodObject<{}, z.core.$strict>;
12273
+ readonly ModelsTtsInstallResult: z.ZodObject<{
12274
+ model: z.ZodString;
12275
+ elapsed_ms: z.ZodInt;
12276
+ }, z.core.$strict>;
12277
+ readonly TtsBlendPart: z.ZodObject<{
12278
+ voice: z.ZodString;
12279
+ weight: z.ZodNumber;
12280
+ }, z.core.$strict>;
12281
+ readonly ModelsTtsSpeakParams: z.ZodObject<{
12282
+ text: z.ZodString;
12283
+ voice: z.ZodOptional<z.ZodString>;
12284
+ blend: z.ZodOptional<z.ZodArray<z.ZodObject<{
12285
+ voice: z.ZodString;
12286
+ weight: z.ZodNumber;
12287
+ }, z.core.$strict>>>;
12288
+ speed: z.ZodDefault<z.ZodNumber>;
12289
+ chunk_chars: z.ZodOptional<z.ZodInt>;
12290
+ }, z.core.$strict>;
12291
+ readonly ModelsTtsSpeakResult: z.ZodObject<{
12292
+ chunks: z.ZodInt;
12293
+ duration_s: z.ZodNumber;
12294
+ sample_rate: z.ZodInt;
12295
+ voice: z.ZodString;
12296
+ elapsed_ms: z.ZodInt;
12297
+ }, z.core.$strict>;
12298
+ readonly TtsAudioChunk: z.ZodObject<{
12299
+ index: z.ZodInt;
12300
+ sample_rate: z.ZodInt;
12301
+ pcm16_base64: z.ZodString;
12302
+ text: z.ZodString;
12303
+ }, z.core.$strict>;
12304
+ readonly ModelsTtsVoiceSaveParams: z.ZodObject<{
12305
+ name: z.ZodString;
12306
+ blend: z.ZodOptional<z.ZodArray<z.ZodObject<{
12307
+ voice: z.ZodString;
12308
+ weight: z.ZodNumber;
12309
+ }, z.core.$strict>>>;
12310
+ path: z.ZodOptional<z.ZodString>;
12311
+ }, z.core.$strict>;
12312
+ readonly ModelsTtsVoiceSaveResult: z.ZodObject<{
12313
+ voice: z.ZodObject<{
12314
+ id: z.ZodString;
12315
+ name: z.ZodString;
12316
+ gender: z.ZodNullable<z.ZodEnum<{
12317
+ female: "female";
12318
+ male: "male";
12319
+ }>>;
12320
+ language: z.ZodString;
12321
+ lang_code: z.ZodString;
12322
+ grade: z.ZodNullable<z.ZodString>;
12323
+ traits: z.ZodArray<z.ZodString>;
12324
+ custom: z.ZodBoolean;
12325
+ }, z.core.$strict>;
12326
+ }, z.core.$strict>;
12327
+ readonly ModelsTtsVoiceRemoveParams: z.ZodObject<{
12328
+ voice: z.ZodString;
12329
+ }, z.core.$strict>;
12330
+ readonly ModelsTtsVoiceRemoveResult: z.ZodObject<{
12331
+ removed: z.ZodBoolean;
12332
+ }, z.core.$strict>;
11966
12333
  readonly CodingServiceCredentials: z.ZodObject<{
11967
12334
  access_token: z.ZodString;
11968
12335
  user_id: z.ZodString;
@@ -20406,9 +20773,9 @@ declare const NAMED_SCHEMAS: {
20406
20773
  title: z.ZodNullable<z.ZodString>;
20407
20774
  media_type: z.ZodOptional<z.ZodEnum<{
20408
20775
  unknown: "unknown";
20776
+ audio: "audio";
20409
20777
  image: "image";
20410
20778
  video: "video";
20411
- audio: "audio";
20412
20779
  }>>;
20413
20780
  duration_s: z.ZodOptional<z.ZodNumber>;
20414
20781
  }, z.core.$strict>;
@@ -20423,9 +20790,9 @@ declare const NAMED_SCHEMAS: {
20423
20790
  title: z.ZodNullable<z.ZodString>;
20424
20791
  media_type: z.ZodOptional<z.ZodEnum<{
20425
20792
  unknown: "unknown";
20793
+ audio: "audio";
20426
20794
  image: "image";
20427
20795
  video: "video";
20428
- audio: "audio";
20429
20796
  }>>;
20430
20797
  duration_s: z.ZodOptional<z.ZodNumber>;
20431
20798
  }, z.core.$strict>>;
@@ -20446,9 +20813,9 @@ declare const NAMED_SCHEMAS: {
20446
20813
  title: z.ZodNullable<z.ZodString>;
20447
20814
  media_type: z.ZodOptional<z.ZodEnum<{
20448
20815
  unknown: "unknown";
20816
+ audio: "audio";
20449
20817
  image: "image";
20450
20818
  video: "video";
20451
- audio: "audio";
20452
20819
  }>>;
20453
20820
  duration_s: z.ZodOptional<z.ZodNumber>;
20454
20821
  }, z.core.$strict>;
@@ -21035,11 +21402,12 @@ declare const MlStatusResult: z.ZodObject<{
21035
21402
  default_model: z.ZodString;
21036
21403
  }, z.core.$strict>;
21037
21404
  type MlStatusResult = z.output<typeof MlStatusResult>;
21038
- /** A progress report while `ml.install` / `ml.transcribe` runs. */
21405
+ /** A progress report while `ml.install` / `ml.transcribe` / `ml.tts_install` / `ml.tts_speak` runs. */
21039
21406
  declare const MlProgress: z.ZodObject<{
21040
21407
  kind: z.ZodEnum<{
21041
21408
  install: "install";
21042
21409
  transcribe: "transcribe";
21410
+ speak: "speak";
21043
21411
  }>;
21044
21412
  fraction: z.ZodNullable<z.ZodNumber>;
21045
21413
  install: z.ZodNullable<z.ZodObject<{
@@ -21057,6 +21425,12 @@ declare const MlProgress: z.ZodObject<{
21057
21425
  end_s: z.ZodNumber;
21058
21426
  text: z.ZodString;
21059
21427
  }, z.core.$strict>>;
21428
+ audio: z.ZodOptional<z.ZodObject<{
21429
+ index: z.ZodInt;
21430
+ sample_rate: z.ZodInt;
21431
+ pcm16_base64: z.ZodString;
21432
+ text: z.ZodString;
21433
+ }, z.core.$strict>>;
21060
21434
  }, z.core.$strict>;
21061
21435
  type MlProgress = z.output<typeof MlProgress>;
21062
21436
  declare const ModelsStatusResult: z.ZodObject<{
@@ -21150,6 +21524,7 @@ declare const ModelsProgressEvent: z.ZodObject<{
21150
21524
  kind: z.ZodEnum<{
21151
21525
  install: "install";
21152
21526
  transcribe: "transcribe";
21527
+ speak: "speak";
21153
21528
  }>;
21154
21529
  fraction: z.ZodNullable<z.ZodNumber>;
21155
21530
  install: z.ZodNullable<z.ZodObject<{
@@ -21167,6 +21542,12 @@ declare const ModelsProgressEvent: z.ZodObject<{
21167
21542
  end_s: z.ZodNumber;
21168
21543
  text: z.ZodString;
21169
21544
  }, z.core.$strict>>;
21545
+ audio: z.ZodOptional<z.ZodObject<{
21546
+ index: z.ZodInt;
21547
+ sample_rate: z.ZodInt;
21548
+ pcm16_base64: z.ZodString;
21549
+ text: z.ZodString;
21550
+ }, z.core.$strict>>;
21170
21551
  }, z.core.$strict>;
21171
21552
  }, z.core.$strict>;
21172
21553
  type ModelsProgressEvent = z.output<typeof ModelsProgressEvent>;
@@ -21253,6 +21634,19 @@ declare const MlCatalogSetParams: z.ZodObject<{
21253
21634
  size_bytes: z.ZodInt;
21254
21635
  problem: z.ZodString;
21255
21636
  }, z.core.$strict>>>;
21637
+ speech: z.ZodOptional<z.ZodArray<z.ZodObject<{
21638
+ key: z.ZodString;
21639
+ variant: z.ZodString;
21640
+ revision: z.ZodString;
21641
+ multilingual: z.ZodBoolean;
21642
+ files: z.ZodArray<z.ZodObject<{
21643
+ path: z.ZodString;
21644
+ url: z.ZodString;
21645
+ size_bytes: z.ZodInt;
21646
+ sha256: z.ZodNullable<z.ZodString>;
21647
+ role: z.ZodString;
21648
+ }, z.core.$strict>>;
21649
+ }, z.core.$strict>>>;
21256
21650
  }, z.core.$strict>;
21257
21651
  type MlCatalogSetParams = z.output<typeof MlCatalogSetParams>;
21258
21652
  /**
@@ -21587,5 +21981,144 @@ declare const MlServiceStatus: z.ZodObject<{
21587
21981
  type MlServiceStatus = z.output<typeof MlServiceStatus>;
21588
21982
  declare const ModelsStatusParams: z.ZodObject<{}, z.core.$strict>;
21589
21983
  type ModelsStatusParams = z.output<typeof ModelsStatusParams>;
21984
+ /** A voice's id: a builtin Kokoro voice (`af_heart`) or a saved one (`custom_<slug>`). */
21985
+ declare const TtsVoiceId: z.ZodString;
21986
+ type TtsVoiceId = z.output<typeof TtsVoiceId>;
21987
+ /** One voice the local engine speaks with: the builtin catalog (54) and the person's saved blends and imports. */
21988
+ declare const TtsVoice: z.ZodObject<{
21989
+ id: z.ZodString;
21990
+ name: z.ZodString;
21991
+ gender: z.ZodNullable<z.ZodEnum<{
21992
+ female: "female";
21993
+ male: "male";
21994
+ }>>;
21995
+ language: z.ZodString;
21996
+ lang_code: z.ZodString;
21997
+ grade: z.ZodNullable<z.ZodString>;
21998
+ traits: z.ZodArray<z.ZodString>;
21999
+ custom: z.ZodBoolean;
22000
+ }, z.core.$strict>;
22001
+ type TtsVoice = z.output<typeof TtsVoice>;
22002
+ /** The local speech model, from the catalog the app sent (`ml.catalog_set` `speech`). */
22003
+ declare const TtsModelInfo: z.ZodObject<{
22004
+ id: z.ZodString;
22005
+ size_bytes: z.ZodInt;
22006
+ installed: z.ZodBoolean;
22007
+ }, z.core.$strict>;
22008
+ type TtsModelInfo = z.output<typeof TtsModelInfo>;
22009
+ declare const ModelsTtsStatusParams: z.ZodObject<{}, z.core.$strict>;
22010
+ type ModelsTtsStatusParams = z.output<typeof ModelsTtsStatusParams>;
22011
+ declare const ModelsTtsStatusResult: z.ZodObject<{
22012
+ model: z.ZodNullable<z.ZodObject<{
22013
+ id: z.ZodString;
22014
+ size_bytes: z.ZodInt;
22015
+ installed: z.ZodBoolean;
22016
+ }, z.core.$strict>>;
22017
+ runtime: z.ZodEnum<{
22018
+ not_installed: "not_installed";
22019
+ installing: "installing";
22020
+ installed: "installed";
22021
+ failed: "failed";
22022
+ }>;
22023
+ voices: z.ZodArray<z.ZodObject<{
22024
+ id: z.ZodString;
22025
+ name: z.ZodString;
22026
+ gender: z.ZodNullable<z.ZodEnum<{
22027
+ female: "female";
22028
+ male: "male";
22029
+ }>>;
22030
+ language: z.ZodString;
22031
+ lang_code: z.ZodString;
22032
+ grade: z.ZodNullable<z.ZodString>;
22033
+ traits: z.ZodArray<z.ZodString>;
22034
+ custom: z.ZodBoolean;
22035
+ }, z.core.$strict>>;
22036
+ default_voice: z.ZodString;
22037
+ sample_rate: z.ZodInt;
22038
+ speed_min: z.ZodNumber;
22039
+ speed_max: z.ZodNumber;
22040
+ error: z.ZodNullable<z.ZodString>;
22041
+ }, z.core.$strict>;
22042
+ type ModelsTtsStatusResult = z.output<typeof ModelsTtsStatusResult>;
22043
+ declare const ModelsTtsInstallParams: z.ZodObject<{}, z.core.$strict>;
22044
+ type ModelsTtsInstallParams = z.output<typeof ModelsTtsInstallParams>;
22045
+ declare const ModelsTtsInstallResult: z.ZodObject<{
22046
+ model: z.ZodString;
22047
+ elapsed_ms: z.ZodInt;
22048
+ }, z.core.$strict>;
22049
+ type ModelsTtsInstallResult = z.output<typeof ModelsTtsInstallResult>;
22050
+ /** One part of a blended voice: a voice and its share (shares are normalised to sum to 1). */
22051
+ declare const TtsBlendPart: z.ZodObject<{
22052
+ voice: z.ZodString;
22053
+ weight: z.ZodNumber;
22054
+ }, z.core.$strict>;
22055
+ type TtsBlendPart = z.output<typeof TtsBlendPart>;
22056
+ /**
22057
+ * Speak text on this computer. The audio arrives as `models.progress` events (kind `speak`), one per
22058
+ * sentence-sized chunk, each 16-bit mono PCM at `sample_rate`; the result says how much was spoken.
22059
+ * Exactly one of `voice` / `blend` (neither: the default voice). Text is spoken as sent (the caller
22060
+ * strips markdown).
22061
+ */
22062
+ declare const ModelsTtsSpeakParams: z.ZodObject<{
22063
+ text: z.ZodString;
22064
+ voice: z.ZodOptional<z.ZodString>;
22065
+ blend: z.ZodOptional<z.ZodArray<z.ZodObject<{
22066
+ voice: z.ZodString;
22067
+ weight: z.ZodNumber;
22068
+ }, z.core.$strict>>>;
22069
+ speed: z.ZodDefault<z.ZodNumber>;
22070
+ chunk_chars: z.ZodOptional<z.ZodInt>;
22071
+ }, z.core.$strict>;
22072
+ type ModelsTtsSpeakParams = z.output<typeof ModelsTtsSpeakParams>;
22073
+ declare const ModelsTtsSpeakResult: z.ZodObject<{
22074
+ chunks: z.ZodInt;
22075
+ duration_s: z.ZodNumber;
22076
+ sample_rate: z.ZodInt;
22077
+ voice: z.ZodString;
22078
+ elapsed_ms: z.ZodInt;
22079
+ }, z.core.$strict>;
22080
+ type ModelsTtsSpeakResult = z.output<typeof ModelsTtsSpeakResult>;
22081
+ /** One chunk of synthesized audio (`MlProgress.audio`): base64 of little-endian int16 mono PCM. */
22082
+ declare const TtsAudioChunk: z.ZodObject<{
22083
+ index: z.ZodInt;
22084
+ sample_rate: z.ZodInt;
22085
+ pcm16_base64: z.ZodString;
22086
+ text: z.ZodString;
22087
+ }, z.core.$strict>;
22088
+ type TtsAudioChunk = z.output<typeof TtsAudioChunk>;
22089
+ /** Save a voice: a blend of voices, or a Kokoro voice embedding file (.npy / .bin, at most 5 MB). Exactly one of `blend` / `path`. */
22090
+ declare const ModelsTtsVoiceSaveParams: z.ZodObject<{
22091
+ name: z.ZodString;
22092
+ blend: z.ZodOptional<z.ZodArray<z.ZodObject<{
22093
+ voice: z.ZodString;
22094
+ weight: z.ZodNumber;
22095
+ }, z.core.$strict>>>;
22096
+ path: z.ZodOptional<z.ZodString>;
22097
+ }, z.core.$strict>;
22098
+ type ModelsTtsVoiceSaveParams = z.output<typeof ModelsTtsVoiceSaveParams>;
22099
+ declare const ModelsTtsVoiceSaveResult: z.ZodObject<{
22100
+ voice: z.ZodObject<{
22101
+ id: z.ZodString;
22102
+ name: z.ZodString;
22103
+ gender: z.ZodNullable<z.ZodEnum<{
22104
+ female: "female";
22105
+ male: "male";
22106
+ }>>;
22107
+ language: z.ZodString;
22108
+ lang_code: z.ZodString;
22109
+ grade: z.ZodNullable<z.ZodString>;
22110
+ traits: z.ZodArray<z.ZodString>;
22111
+ custom: z.ZodBoolean;
22112
+ }, z.core.$strict>;
22113
+ }, z.core.$strict>;
22114
+ type ModelsTtsVoiceSaveResult = z.output<typeof ModelsTtsVoiceSaveResult>;
22115
+ declare const ModelsTtsVoiceRemoveParams: z.ZodObject<{
22116
+ voice: z.ZodString;
22117
+ }, z.core.$strict>;
22118
+ type ModelsTtsVoiceRemoveParams = z.output<typeof ModelsTtsVoiceRemoveParams>;
22119
+ declare const ModelsTtsVoiceRemoveResult: z.ZodObject<{
22120
+ removed: z.ZodBoolean;
22121
+ }, z.core.$strict>;
22122
+ type ModelsTtsVoiceRemoveResult = z.output<typeof ModelsTtsVoiceRemoveResult>;
21590
22123
 
21591
- export { MlStatusParams as $, type ErrorReasonName as A, BEARER_PREFIX as B, type CloseOutcome as C, DesktopProtocolError as D, EndReason as E, EventMsg as F, type EventName as G, FsPatchEditFailure as H, HelloMsg as I, LlamaServerBuild as J, LlmRunning as K, Limits as L, ModelsTranscribeResult as M, LlmServerState as N, type OpName as O, LocalModelKind as P, LocalModelRow as Q, MlCatalogSetParams as R, StreamMeta as S, TranscriptionModelId as T, MlCatalogSetResult as U, MlInstallPhase as V, Welcome as W, MlInstallProgress as X, MlRuntimeState as Y, MlServiceState as Z, MlServiceStatus as _, type OpParams as a, MlStatusResult as a0, ModelKey as a1, ModelsDownloadsCancelParams as a2, ModelsDownloadsCancelResult as a3, ModelsDownloadsListParams as a4, ModelsDownloadsListResult as a5, ModelsInstallParams as a6, ModelsInstallResult as a7, ModelsLlmChatParams as a8, ModelsLlmChatResult as a9, SERVICES as aA, SUBPROTOCOL as aB, type ServiceId as aC, type ServiceOpName as aD, type ServiceOpSpec as aE, type ServiceSpec as aF, Sha256Hex as aG, StreamMsg as aH, TextModelId as aI, TextModelInfo as aJ, TranscriptSegment as aK, TranscriptionModelInfo as aL, UnusableTextModel as aM, closeRule as aN, isTerminalClose as aO, ModelsLlmInstallParams as aa, ModelsLlmInstallResult as ab, ModelsLlmStartParams as ac, ModelsLlmStartResult as ad, ModelsLlmStatusParams as ae, ModelsLlmStatusResult as af, ModelsLlmStopParams as ag, ModelsLlmStopResult as ah, ModelsLocalListParams as ai, ModelsLocalListResult as aj, ModelsLocalRemoveParams as ak, ModelsLocalRemoveResult as al, ModelsProgressEvent as am, ModelsStatusParams as an, ModelsStatusResult as ao, ModelsTranscribeParams as ap, NAMED_SCHEMAS as aq, type NamedSchemaId as ar, OpDescriptor as as, type OpSpec as at, PING_TEXT as au, PONG_TEXT as av, ProtocolErrorBody as aw, RelayMsg as ax, RequestMsg as ay, ResponseMsg as az, type OpResult as b, OPS as c, EVENTS as d, ClientType as e, MlProgress as f, CLOSE_RULES as g, CancelMsg as h, isDesktopProtocolError as i, CatalogFile as j, CatalogModelEntry as k, ClientToCoreMsg as l, type CloseAction as m, CloseCode as n, CloseCodeValue as o, type CloseRule as p, CoreToClientMsg as q, CreditMsg as r, DownloadKind as s, DownloadRow as t, EndMsg as u, ErrorCode as v, type ErrorCodeName as w, type ErrorData as x, ErrorMsg as y, ErrorReason as z };
22124
+ export { MlStatusParams as $, type ErrorReasonName as A, BEARER_PREFIX as B, type CloseOutcome as C, DesktopProtocolError as D, EndReason as E, EventMsg as F, type EventName as G, FsPatchEditFailure as H, HelloMsg as I, LlamaServerBuild as J, LlmRunning as K, Limits as L, ModelsTranscribeResult as M, LlmServerState as N, type OpName as O, LocalModelKind as P, LocalModelRow as Q, MlCatalogSetParams as R, StreamMeta as S, TranscriptionModelId as T, MlCatalogSetResult as U, MlInstallPhase as V, Welcome as W, MlInstallProgress as X, MlRuntimeState as Y, MlServiceState as Z, MlServiceStatus as _, type OpParams as a, UnusableTextModel as a$, MlStatusResult as a0, ModelKey as a1, ModelsDownloadsCancelParams as a2, ModelsDownloadsCancelResult as a3, ModelsDownloadsListParams as a4, ModelsDownloadsListResult as a5, ModelsInstallParams as a6, ModelsInstallResult as a7, ModelsLlmChatParams as a8, ModelsLlmChatResult as a9, NAMED_SCHEMAS as aA, type NamedSchemaId as aB, OpDescriptor as aC, type OpSpec as aD, PING_TEXT as aE, PONG_TEXT as aF, ProtocolErrorBody as aG, RelayMsg as aH, RequestMsg as aI, ResponseMsg as aJ, SERVICES as aK, SUBPROTOCOL as aL, type ServiceId as aM, type ServiceOpName as aN, type ServiceOpSpec as aO, type ServiceSpec as aP, Sha256Hex as aQ, StreamMsg as aR, TextModelId as aS, TextModelInfo as aT, TranscriptSegment as aU, TranscriptionModelInfo as aV, TtsAudioChunk as aW, TtsBlendPart as aX, TtsModelInfo as aY, TtsVoice as aZ, TtsVoiceId as a_, ModelsLlmInstallParams as aa, ModelsLlmInstallResult as ab, ModelsLlmStartParams as ac, ModelsLlmStartResult as ad, ModelsLlmStatusParams as ae, ModelsLlmStatusResult as af, ModelsLlmStopParams as ag, ModelsLlmStopResult as ah, ModelsLocalListParams as ai, ModelsLocalListResult as aj, ModelsLocalRemoveParams as ak, ModelsLocalRemoveResult as al, ModelsProgressEvent as am, ModelsStatusParams as an, ModelsStatusResult as ao, ModelsTranscribeParams as ap, ModelsTtsInstallParams as aq, ModelsTtsInstallResult as ar, ModelsTtsSpeakParams as as, ModelsTtsSpeakResult as at, ModelsTtsStatusParams as au, ModelsTtsStatusResult as av, ModelsTtsVoiceRemoveParams as aw, ModelsTtsVoiceRemoveResult as ax, ModelsTtsVoiceSaveParams as ay, ModelsTtsVoiceSaveResult as az, type OpResult as b, closeRule as b0, isTerminalClose as b1, OPS as c, EVENTS as d, ClientType as e, MlProgress as f, CLOSE_RULES as g, CancelMsg as h, isDesktopProtocolError as i, CatalogFile as j, CatalogModelEntry as k, ClientToCoreMsg as l, type CloseAction as m, CloseCode as n, CloseCodeValue as o, type CloseRule as p, CoreToClientMsg as q, CreditMsg as r, DownloadKind as s, DownloadRow as t, EndMsg as u, ErrorCode as v, type ErrorCodeName as w, type ErrorData as x, ErrorMsg as y, ErrorReason as z };