@ai-matrx/desktop-protocol 0.21.45 → 0.21.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -1
- package/README.md +1 -1
- package/dist/client.cjs +42 -8
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +5 -5
- package/dist/client.d.ts +5 -5
- package/dist/client.js +42 -8
- package/dist/client.js.map +1 -1
- package/dist/index.cjs +73 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1724 -1487
- package/dist/index.d.ts +1724 -1487
- package/dist/index.js +73 -9
- package/dist/index.js.map +1 -1
- package/dist/{models-BFAtNMgx.d.cts → models-Di-SL_jw.d.cts} +254 -107
- package/dist/{models-BFAtNMgx.d.ts → models-Di-SL_jw.d.ts} +254 -107
- package/dist/react.cjs +9 -0
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +52 -5
- package/dist/react.d.ts +52 -5
- package/dist/react.js +9 -0
- package/dist/react.js.map +1 -1
- package/generated/desktop-protocol.schema.json +147 -1
- package/package.json +5 -5
|
@@ -711,7 +711,7 @@ type OpSpec = {
|
|
|
711
711
|
readonly params: z.ZodType;
|
|
712
712
|
readonly result: z.ZodType;
|
|
713
713
|
readonly kind: "unary" | "stream" | "resource";
|
|
714
|
-
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";
|
|
714
|
+
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";
|
|
715
715
|
readonly errors: readonly z.infer<typeof ErrorCode>[];
|
|
716
716
|
};
|
|
717
717
|
declare const OPS: {
|
|
@@ -2336,6 +2336,20 @@ declare const OPS: {
|
|
|
2336
2336
|
created: z.ZodBoolean;
|
|
2337
2337
|
running: z.ZodBoolean;
|
|
2338
2338
|
open_chats: z.ZodInt;
|
|
2339
|
+
remote_control: z.ZodOptional<z.ZodObject<{
|
|
2340
|
+
setting: z.ZodEnum<{
|
|
2341
|
+
default: "default";
|
|
2342
|
+
on: "on";
|
|
2343
|
+
off: "off";
|
|
2344
|
+
unreadable: "unreadable";
|
|
2345
|
+
}>;
|
|
2346
|
+
serving: z.ZodNullable<z.ZodBoolean>;
|
|
2347
|
+
pending: z.ZodNullable<z.ZodEnum<{
|
|
2348
|
+
on: "on";
|
|
2349
|
+
off: "off";
|
|
2350
|
+
}>>;
|
|
2351
|
+
problem: z.ZodOptional<z.ZodString>;
|
|
2352
|
+
}, z.core.$strict>>;
|
|
2339
2353
|
}, z.core.$strict>>;
|
|
2340
2354
|
}, z.core.$strict>;
|
|
2341
2355
|
readonly kind: "unary";
|
|
@@ -2379,6 +2393,37 @@ declare const OPS: {
|
|
|
2379
2393
|
readonly since: "1.10";
|
|
2380
2394
|
readonly errors: readonly ["NOT_FOUND", "CONFLICT", "TIMEOUT", "PLATFORM_UNSUPPORTED", "INTERNAL"];
|
|
2381
2395
|
};
|
|
2396
|
+
readonly "apps.windows.set_remote_control": {
|
|
2397
|
+
readonly params: z.ZodObject<{
|
|
2398
|
+
app_key: z.ZodString;
|
|
2399
|
+
window: z.ZodString;
|
|
2400
|
+
enabled: z.ZodBoolean;
|
|
2401
|
+
}, z.core.$strict>;
|
|
2402
|
+
readonly result: z.ZodObject<{
|
|
2403
|
+
message: z.ZodString;
|
|
2404
|
+
when: z.ZodEnum<{
|
|
2405
|
+
now: "now";
|
|
2406
|
+
next_close: "next_close";
|
|
2407
|
+
}>;
|
|
2408
|
+
remote_control: z.ZodObject<{
|
|
2409
|
+
setting: z.ZodEnum<{
|
|
2410
|
+
default: "default";
|
|
2411
|
+
on: "on";
|
|
2412
|
+
off: "off";
|
|
2413
|
+
unreadable: "unreadable";
|
|
2414
|
+
}>;
|
|
2415
|
+
serving: z.ZodNullable<z.ZodBoolean>;
|
|
2416
|
+
pending: z.ZodNullable<z.ZodEnum<{
|
|
2417
|
+
on: "on";
|
|
2418
|
+
off: "off";
|
|
2419
|
+
}>>;
|
|
2420
|
+
problem: z.ZodOptional<z.ZodString>;
|
|
2421
|
+
}, z.core.$strict>;
|
|
2422
|
+
}, z.core.$strict>;
|
|
2423
|
+
readonly kind: "unary";
|
|
2424
|
+
readonly since: "1.50";
|
|
2425
|
+
readonly errors: readonly ["NOT_FOUND", "CONFLICT", "PLATFORM_UNSUPPORTED", "INTERNAL"];
|
|
2426
|
+
};
|
|
2382
2427
|
readonly "apps.windows.refresh_usage": {
|
|
2383
2428
|
readonly params: z.ZodObject<{
|
|
2384
2429
|
app_key: z.ZodString;
|
|
@@ -2449,6 +2494,7 @@ declare const OPS: {
|
|
|
2449
2494
|
readonly "apps.instances.list": {
|
|
2450
2495
|
readonly params: z.ZodObject<{
|
|
2451
2496
|
app_key: z.ZodString;
|
|
2497
|
+
fresh: z.ZodOptional<z.ZodBoolean>;
|
|
2452
2498
|
}, z.core.$strict>;
|
|
2453
2499
|
readonly result: z.ZodObject<{
|
|
2454
2500
|
app_key: z.ZodString;
|
|
@@ -2482,6 +2528,8 @@ declare const OPS: {
|
|
|
2482
2528
|
first_launch_ms: z.ZodNullable<z.ZodInt>;
|
|
2483
2529
|
}, z.core.$strict>>;
|
|
2484
2530
|
problem: z.ZodOptional<z.ZodString>;
|
|
2531
|
+
as_of_ms: z.ZodOptional<z.ZodInt>;
|
|
2532
|
+
refreshing: z.ZodOptional<z.ZodBoolean>;
|
|
2485
2533
|
}, z.core.$strict>;
|
|
2486
2534
|
readonly kind: "unary";
|
|
2487
2535
|
readonly since: "1.47";
|
|
@@ -2490,6 +2538,7 @@ declare const OPS: {
|
|
|
2490
2538
|
readonly "apps.accounts.list": {
|
|
2491
2539
|
readonly params: z.ZodObject<{
|
|
2492
2540
|
app_key: z.ZodString;
|
|
2541
|
+
fresh: z.ZodOptional<z.ZodBoolean>;
|
|
2493
2542
|
}, z.core.$strict>;
|
|
2494
2543
|
readonly result: z.ZodObject<{
|
|
2495
2544
|
app_key: z.ZodString;
|
|
@@ -2524,6 +2573,8 @@ declare const OPS: {
|
|
|
2524
2573
|
}>>;
|
|
2525
2574
|
}, z.core.$strict>>;
|
|
2526
2575
|
problem: z.ZodOptional<z.ZodString>;
|
|
2576
|
+
as_of_ms: z.ZodOptional<z.ZodInt>;
|
|
2577
|
+
refreshing: z.ZodOptional<z.ZodBoolean>;
|
|
2527
2578
|
}, z.core.$strict>;
|
|
2528
2579
|
readonly kind: "unary";
|
|
2529
2580
|
readonly since: "1.47";
|
|
@@ -8681,6 +8732,7 @@ declare const NAMED_SCHEMAS: {
|
|
|
8681
8732
|
}, z.core.$strict>;
|
|
8682
8733
|
readonly AppsInstancesListParams: z.ZodObject<{
|
|
8683
8734
|
app_key: z.ZodString;
|
|
8735
|
+
fresh: z.ZodOptional<z.ZodBoolean>;
|
|
8684
8736
|
}, z.core.$strict>;
|
|
8685
8737
|
readonly AppsInstancesListResult: z.ZodObject<{
|
|
8686
8738
|
app_key: z.ZodString;
|
|
@@ -8714,9 +8766,12 @@ declare const NAMED_SCHEMAS: {
|
|
|
8714
8766
|
first_launch_ms: z.ZodNullable<z.ZodInt>;
|
|
8715
8767
|
}, z.core.$strict>>;
|
|
8716
8768
|
problem: z.ZodOptional<z.ZodString>;
|
|
8769
|
+
as_of_ms: z.ZodOptional<z.ZodInt>;
|
|
8770
|
+
refreshing: z.ZodOptional<z.ZodBoolean>;
|
|
8717
8771
|
}, z.core.$strict>;
|
|
8718
8772
|
readonly AppsAccountsListParams: z.ZodObject<{
|
|
8719
8773
|
app_key: z.ZodString;
|
|
8774
|
+
fresh: z.ZodOptional<z.ZodBoolean>;
|
|
8720
8775
|
}, z.core.$strict>;
|
|
8721
8776
|
readonly AppsAccountsListResult: z.ZodObject<{
|
|
8722
8777
|
app_key: z.ZodString;
|
|
@@ -8751,6 +8806,8 @@ declare const NAMED_SCHEMAS: {
|
|
|
8751
8806
|
}>>;
|
|
8752
8807
|
}, z.core.$strict>>;
|
|
8753
8808
|
problem: z.ZodOptional<z.ZodString>;
|
|
8809
|
+
as_of_ms: z.ZodOptional<z.ZodInt>;
|
|
8810
|
+
refreshing: z.ZodOptional<z.ZodBoolean>;
|
|
8754
8811
|
}, z.core.$strict>;
|
|
8755
8812
|
readonly ProtocolVersion: z.ZodString;
|
|
8756
8813
|
readonly RequestId: z.ZodString;
|
|
@@ -14875,6 +14932,60 @@ declare const NAMED_SCHEMAS: {
|
|
|
14875
14932
|
created: z.ZodBoolean;
|
|
14876
14933
|
running: z.ZodBoolean;
|
|
14877
14934
|
open_chats: z.ZodInt;
|
|
14935
|
+
remote_control: z.ZodOptional<z.ZodObject<{
|
|
14936
|
+
setting: z.ZodEnum<{
|
|
14937
|
+
default: "default";
|
|
14938
|
+
on: "on";
|
|
14939
|
+
off: "off";
|
|
14940
|
+
unreadable: "unreadable";
|
|
14941
|
+
}>;
|
|
14942
|
+
serving: z.ZodNullable<z.ZodBoolean>;
|
|
14943
|
+
pending: z.ZodNullable<z.ZodEnum<{
|
|
14944
|
+
on: "on";
|
|
14945
|
+
off: "off";
|
|
14946
|
+
}>>;
|
|
14947
|
+
problem: z.ZodOptional<z.ZodString>;
|
|
14948
|
+
}, z.core.$strict>>;
|
|
14949
|
+
}, z.core.$strict>;
|
|
14950
|
+
readonly WindowRemoteControl: z.ZodObject<{
|
|
14951
|
+
setting: z.ZodEnum<{
|
|
14952
|
+
default: "default";
|
|
14953
|
+
on: "on";
|
|
14954
|
+
off: "off";
|
|
14955
|
+
unreadable: "unreadable";
|
|
14956
|
+
}>;
|
|
14957
|
+
serving: z.ZodNullable<z.ZodBoolean>;
|
|
14958
|
+
pending: z.ZodNullable<z.ZodEnum<{
|
|
14959
|
+
on: "on";
|
|
14960
|
+
off: "off";
|
|
14961
|
+
}>>;
|
|
14962
|
+
problem: z.ZodOptional<z.ZodString>;
|
|
14963
|
+
}, z.core.$strict>;
|
|
14964
|
+
readonly AppsWindowsSetRemoteControlParams: z.ZodObject<{
|
|
14965
|
+
app_key: z.ZodString;
|
|
14966
|
+
window: z.ZodString;
|
|
14967
|
+
enabled: z.ZodBoolean;
|
|
14968
|
+
}, z.core.$strict>;
|
|
14969
|
+
readonly AppsWindowsSetRemoteControlResult: z.ZodObject<{
|
|
14970
|
+
message: z.ZodString;
|
|
14971
|
+
when: z.ZodEnum<{
|
|
14972
|
+
now: "now";
|
|
14973
|
+
next_close: "next_close";
|
|
14974
|
+
}>;
|
|
14975
|
+
remote_control: z.ZodObject<{
|
|
14976
|
+
setting: z.ZodEnum<{
|
|
14977
|
+
default: "default";
|
|
14978
|
+
on: "on";
|
|
14979
|
+
off: "off";
|
|
14980
|
+
unreadable: "unreadable";
|
|
14981
|
+
}>;
|
|
14982
|
+
serving: z.ZodNullable<z.ZodBoolean>;
|
|
14983
|
+
pending: z.ZodNullable<z.ZodEnum<{
|
|
14984
|
+
on: "on";
|
|
14985
|
+
off: "off";
|
|
14986
|
+
}>>;
|
|
14987
|
+
problem: z.ZodOptional<z.ZodString>;
|
|
14988
|
+
}, z.core.$strict>;
|
|
14878
14989
|
}, z.core.$strict>;
|
|
14879
14990
|
readonly AccountUsage: z.ZodObject<{
|
|
14880
14991
|
account: z.ZodString;
|
|
@@ -14922,6 +15033,20 @@ declare const NAMED_SCHEMAS: {
|
|
|
14922
15033
|
created: z.ZodBoolean;
|
|
14923
15034
|
running: z.ZodBoolean;
|
|
14924
15035
|
open_chats: z.ZodInt;
|
|
15036
|
+
remote_control: z.ZodOptional<z.ZodObject<{
|
|
15037
|
+
setting: z.ZodEnum<{
|
|
15038
|
+
default: "default";
|
|
15039
|
+
on: "on";
|
|
15040
|
+
off: "off";
|
|
15041
|
+
unreadable: "unreadable";
|
|
15042
|
+
}>;
|
|
15043
|
+
serving: z.ZodNullable<z.ZodBoolean>;
|
|
15044
|
+
pending: z.ZodNullable<z.ZodEnum<{
|
|
15045
|
+
on: "on";
|
|
15046
|
+
off: "off";
|
|
15047
|
+
}>>;
|
|
15048
|
+
problem: z.ZodOptional<z.ZodString>;
|
|
15049
|
+
}, z.core.$strict>>;
|
|
14925
15050
|
}, z.core.$strict>>;
|
|
14926
15051
|
}, z.core.$strict>;
|
|
14927
15052
|
readonly AppsAccountsUsageParams: z.ZodObject<{
|
|
@@ -17089,8 +17214,8 @@ declare const NAMED_SCHEMAS: {
|
|
|
17089
17214
|
ws_path: z.ZodLiteral<"/v1/connect">;
|
|
17090
17215
|
device_id: z.ZodString;
|
|
17091
17216
|
browser_connection: z.ZodEnum<{
|
|
17092
|
-
off: "off";
|
|
17093
17217
|
on: "on";
|
|
17218
|
+
off: "off";
|
|
17094
17219
|
}>;
|
|
17095
17220
|
}, z.core.$strict>;
|
|
17096
17221
|
readonly BrowserPairRequest: z.ZodObject<{
|
|
@@ -18264,111 +18389,6 @@ type NamedSchemaId = keyof typeof NAMED_SCHEMAS;
|
|
|
18264
18389
|
* schema on both hops, so the two can never disagree.
|
|
18265
18390
|
*/
|
|
18266
18391
|
|
|
18267
|
-
/** The heavy runtime (inference packages) is installed on first use, never shipped in the app. */
|
|
18268
|
-
declare const MlRuntimeState: z.ZodEnum<{
|
|
18269
|
-
not_installed: "not_installed";
|
|
18270
|
-
installing: "installing";
|
|
18271
|
-
installed: "installed";
|
|
18272
|
-
failed: "failed";
|
|
18273
|
-
}>;
|
|
18274
|
-
/** `packages`: the locked inference wheels; `model`: one model's weights; `verifying`: hashes and a load test. */
|
|
18275
|
-
declare const MlInstallPhase: z.ZodEnum<{
|
|
18276
|
-
model: "model";
|
|
18277
|
-
packages: "packages";
|
|
18278
|
-
verifying: "verifying";
|
|
18279
|
-
}>;
|
|
18280
|
-
declare const MlInstallProgress: z.ZodObject<{
|
|
18281
|
-
phase: z.ZodEnum<{
|
|
18282
|
-
model: "model";
|
|
18283
|
-
packages: "packages";
|
|
18284
|
-
verifying: "verifying";
|
|
18285
|
-
}>;
|
|
18286
|
-
item: z.ZodString;
|
|
18287
|
-
bytes_done: z.ZodInt;
|
|
18288
|
-
bytes_total: z.ZodNullable<z.ZodInt>;
|
|
18289
|
-
}, z.core.$strict>;
|
|
18290
|
-
declare const TranscriptionModelInfo: z.ZodObject<{
|
|
18291
|
-
id: z.ZodString;
|
|
18292
|
-
size_bytes: z.ZodInt;
|
|
18293
|
-
multilingual: z.ZodBoolean;
|
|
18294
|
-
installed: z.ZodBoolean;
|
|
18295
|
-
}, z.core.$strict>;
|
|
18296
|
-
/** What the `ml` service itself reports (the core adds the supervisor's view in ModelsStatusResult). */
|
|
18297
|
-
declare const MlStatusParams: z.ZodObject<{}, z.core.$strict>;
|
|
18298
|
-
declare const TextModelInfo: z.ZodObject<{
|
|
18299
|
-
id: z.ZodString;
|
|
18300
|
-
size_bytes: z.ZodInt;
|
|
18301
|
-
installed: z.ZodBoolean;
|
|
18302
|
-
}, z.core.$strict>;
|
|
18303
|
-
/** The model server's process: one model loaded at a time. */
|
|
18304
|
-
declare const LlmServerState: z.ZodEnum<{
|
|
18305
|
-
running: "running";
|
|
18306
|
-
failed: "failed";
|
|
18307
|
-
stopped: "stopped";
|
|
18308
|
-
starting: "starting";
|
|
18309
|
-
}>;
|
|
18310
|
-
declare const ModelsLlmStatusParams: z.ZodObject<{}, z.core.$strict>;
|
|
18311
|
-
/** Download the model server program (if missing) and one model's weights. Progress: models.progress. */
|
|
18312
|
-
declare const ModelsLlmInstallParams: z.ZodObject<{
|
|
18313
|
-
model: z.ZodString;
|
|
18314
|
-
}, z.core.$strict>;
|
|
18315
|
-
declare const ModelsLlmInstallResult: z.ZodObject<{
|
|
18316
|
-
model: z.ZodString;
|
|
18317
|
-
elapsed_ms: z.ZodInt;
|
|
18318
|
-
}, z.core.$strict>;
|
|
18319
|
-
/** Load one downloaded model (stopping any other). Resolves once the server answers its health check. */
|
|
18320
|
-
declare const ModelsLlmStartParams: z.ZodObject<{
|
|
18321
|
-
model: z.ZodString;
|
|
18322
|
-
context_length: z.ZodOptional<z.ZodInt>;
|
|
18323
|
-
gpu_layers: z.ZodOptional<z.ZodInt>;
|
|
18324
|
-
threads: z.ZodOptional<z.ZodInt>;
|
|
18325
|
-
load_timeout_s: z.ZodOptional<z.ZodInt>;
|
|
18326
|
-
}, z.core.$strict>;
|
|
18327
|
-
declare const ModelsLlmStopParams: z.ZodObject<{}, z.core.$strict>;
|
|
18328
|
-
declare const ModelsLlmStopResult: z.ZodObject<{
|
|
18329
|
-
stopped: z.ZodBoolean;
|
|
18330
|
-
}, z.core.$strict>;
|
|
18331
|
-
declare const Sha256Hex: z.ZodString;
|
|
18332
|
-
declare const MlCatalogSetResult: z.ZodObject<{
|
|
18333
|
-
text: z.ZodInt;
|
|
18334
|
-
transcription: z.ZodInt;
|
|
18335
|
-
}, z.core.$strict>;
|
|
18336
|
-
/** What a download fetches: a speech model, a language model, or a runtime (speech runtime, model server program). */
|
|
18337
|
-
declare const DownloadKind: z.ZodEnum<{
|
|
18338
|
-
runtime: "runtime";
|
|
18339
|
-
speech_model: "speech_model";
|
|
18340
|
-
text_model: "text_model";
|
|
18341
|
-
}>;
|
|
18342
|
-
declare const ModelsDownloadsListParams: z.ZodObject<{}, z.core.$strict>;
|
|
18343
|
-
/** Cancel one running download (every caller waiting on it gets CANCELLED); its half-done file stays for Resume. */
|
|
18344
|
-
declare const ModelsDownloadsCancelParams: z.ZodObject<{
|
|
18345
|
-
key: z.ZodString;
|
|
18346
|
-
}, z.core.$strict>;
|
|
18347
|
-
declare const ModelsDownloadsCancelResult: z.ZodObject<{
|
|
18348
|
-
cancelled: z.ZodBoolean;
|
|
18349
|
-
}, z.core.$strict>;
|
|
18350
|
-
/** The supervisor's view of the `ml` service process. */
|
|
18351
|
-
declare const MlServiceState: z.ZodEnum<{
|
|
18352
|
-
failed: "failed";
|
|
18353
|
-
stopped: "stopped";
|
|
18354
|
-
starting: "starting";
|
|
18355
|
-
ready: "ready";
|
|
18356
|
-
restarting: "restarting";
|
|
18357
|
-
}>;
|
|
18358
|
-
declare const MlServiceStatus: z.ZodObject<{
|
|
18359
|
-
state: z.ZodEnum<{
|
|
18360
|
-
failed: "failed";
|
|
18361
|
-
stopped: "stopped";
|
|
18362
|
-
starting: "starting";
|
|
18363
|
-
ready: "ready";
|
|
18364
|
-
restarting: "restarting";
|
|
18365
|
-
}>;
|
|
18366
|
-
pid: z.ZodNullable<z.ZodInt>;
|
|
18367
|
-
restarts: z.ZodInt;
|
|
18368
|
-
python: z.ZodNullable<z.ZodString>;
|
|
18369
|
-
error: z.ZodNullable<z.ZodString>;
|
|
18370
|
-
}, z.core.$strict>;
|
|
18371
|
-
declare const ModelsStatusParams: z.ZodObject<{}, z.core.$strict>;
|
|
18372
18392
|
/** A Whisper model's catalog key (1.49: a string key; 1.48 sizes tiny/base/small/large-v3-turbo stay valid). */
|
|
18373
18393
|
declare const TranscriptionModelId: z.ZodString;
|
|
18374
18394
|
type TranscriptionModelId = z.output<typeof TranscriptionModelId>;
|
|
@@ -18724,5 +18744,132 @@ declare const TranscriptSegment: z.ZodObject<{
|
|
|
18724
18744
|
text: z.ZodString;
|
|
18725
18745
|
}, z.core.$strict>;
|
|
18726
18746
|
type TranscriptSegment = z.output<typeof TranscriptSegment>;
|
|
18747
|
+
/** The heavy runtime (inference packages) is installed on first use, never shipped in the app. */
|
|
18748
|
+
declare const MlRuntimeState: z.ZodEnum<{
|
|
18749
|
+
not_installed: "not_installed";
|
|
18750
|
+
installing: "installing";
|
|
18751
|
+
installed: "installed";
|
|
18752
|
+
failed: "failed";
|
|
18753
|
+
}>;
|
|
18754
|
+
type MlRuntimeState = z.output<typeof MlRuntimeState>;
|
|
18755
|
+
/** `packages`: the locked inference wheels; `model`: one model's weights; `verifying`: hashes and a load test. */
|
|
18756
|
+
declare const MlInstallPhase: z.ZodEnum<{
|
|
18757
|
+
model: "model";
|
|
18758
|
+
packages: "packages";
|
|
18759
|
+
verifying: "verifying";
|
|
18760
|
+
}>;
|
|
18761
|
+
type MlInstallPhase = z.output<typeof MlInstallPhase>;
|
|
18762
|
+
declare const MlInstallProgress: z.ZodObject<{
|
|
18763
|
+
phase: z.ZodEnum<{
|
|
18764
|
+
model: "model";
|
|
18765
|
+
packages: "packages";
|
|
18766
|
+
verifying: "verifying";
|
|
18767
|
+
}>;
|
|
18768
|
+
item: z.ZodString;
|
|
18769
|
+
bytes_done: z.ZodInt;
|
|
18770
|
+
bytes_total: z.ZodNullable<z.ZodInt>;
|
|
18771
|
+
}, z.core.$strict>;
|
|
18772
|
+
type MlInstallProgress = z.output<typeof MlInstallProgress>;
|
|
18773
|
+
declare const TranscriptionModelInfo: z.ZodObject<{
|
|
18774
|
+
id: z.ZodString;
|
|
18775
|
+
size_bytes: z.ZodInt;
|
|
18776
|
+
multilingual: z.ZodBoolean;
|
|
18777
|
+
installed: z.ZodBoolean;
|
|
18778
|
+
}, z.core.$strict>;
|
|
18779
|
+
type TranscriptionModelInfo = z.output<typeof TranscriptionModelInfo>;
|
|
18780
|
+
/** What the `ml` service itself reports (the core adds the supervisor's view in ModelsStatusResult). */
|
|
18781
|
+
declare const MlStatusParams: z.ZodObject<{}, z.core.$strict>;
|
|
18782
|
+
type MlStatusParams = z.output<typeof MlStatusParams>;
|
|
18783
|
+
declare const TextModelInfo: z.ZodObject<{
|
|
18784
|
+
id: z.ZodString;
|
|
18785
|
+
size_bytes: z.ZodInt;
|
|
18786
|
+
installed: z.ZodBoolean;
|
|
18787
|
+
}, z.core.$strict>;
|
|
18788
|
+
type TextModelInfo = z.output<typeof TextModelInfo>;
|
|
18789
|
+
/** The model server's process: one model loaded at a time. */
|
|
18790
|
+
declare const LlmServerState: z.ZodEnum<{
|
|
18791
|
+
running: "running";
|
|
18792
|
+
failed: "failed";
|
|
18793
|
+
stopped: "stopped";
|
|
18794
|
+
starting: "starting";
|
|
18795
|
+
}>;
|
|
18796
|
+
type LlmServerState = z.output<typeof LlmServerState>;
|
|
18797
|
+
declare const ModelsLlmStatusParams: z.ZodObject<{}, z.core.$strict>;
|
|
18798
|
+
type ModelsLlmStatusParams = z.output<typeof ModelsLlmStatusParams>;
|
|
18799
|
+
/** Download the model server program (if missing) and one model's weights. Progress: models.progress. */
|
|
18800
|
+
declare const ModelsLlmInstallParams: z.ZodObject<{
|
|
18801
|
+
model: z.ZodString;
|
|
18802
|
+
}, z.core.$strict>;
|
|
18803
|
+
type ModelsLlmInstallParams = z.output<typeof ModelsLlmInstallParams>;
|
|
18804
|
+
declare const ModelsLlmInstallResult: z.ZodObject<{
|
|
18805
|
+
model: z.ZodString;
|
|
18806
|
+
elapsed_ms: z.ZodInt;
|
|
18807
|
+
}, z.core.$strict>;
|
|
18808
|
+
type ModelsLlmInstallResult = z.output<typeof ModelsLlmInstallResult>;
|
|
18809
|
+
/** Load one downloaded model (stopping any other). Resolves once the server answers its health check. */
|
|
18810
|
+
declare const ModelsLlmStartParams: z.ZodObject<{
|
|
18811
|
+
model: z.ZodString;
|
|
18812
|
+
context_length: z.ZodOptional<z.ZodInt>;
|
|
18813
|
+
gpu_layers: z.ZodOptional<z.ZodInt>;
|
|
18814
|
+
threads: z.ZodOptional<z.ZodInt>;
|
|
18815
|
+
load_timeout_s: z.ZodOptional<z.ZodInt>;
|
|
18816
|
+
}, z.core.$strict>;
|
|
18817
|
+
type ModelsLlmStartParams = z.output<typeof ModelsLlmStartParams>;
|
|
18818
|
+
declare const ModelsLlmStopParams: z.ZodObject<{}, z.core.$strict>;
|
|
18819
|
+
type ModelsLlmStopParams = z.output<typeof ModelsLlmStopParams>;
|
|
18820
|
+
declare const ModelsLlmStopResult: z.ZodObject<{
|
|
18821
|
+
stopped: z.ZodBoolean;
|
|
18822
|
+
}, z.core.$strict>;
|
|
18823
|
+
type ModelsLlmStopResult = z.output<typeof ModelsLlmStopResult>;
|
|
18824
|
+
declare const Sha256Hex: z.ZodString;
|
|
18825
|
+
type Sha256Hex = z.output<typeof Sha256Hex>;
|
|
18826
|
+
declare const MlCatalogSetResult: z.ZodObject<{
|
|
18827
|
+
text: z.ZodInt;
|
|
18828
|
+
transcription: z.ZodInt;
|
|
18829
|
+
}, z.core.$strict>;
|
|
18830
|
+
type MlCatalogSetResult = z.output<typeof MlCatalogSetResult>;
|
|
18831
|
+
/** What a download fetches: a speech model, a language model, or a runtime (speech runtime, model server program). */
|
|
18832
|
+
declare const DownloadKind: z.ZodEnum<{
|
|
18833
|
+
runtime: "runtime";
|
|
18834
|
+
speech_model: "speech_model";
|
|
18835
|
+
text_model: "text_model";
|
|
18836
|
+
}>;
|
|
18837
|
+
type DownloadKind = z.output<typeof DownloadKind>;
|
|
18838
|
+
declare const ModelsDownloadsListParams: z.ZodObject<{}, z.core.$strict>;
|
|
18839
|
+
type ModelsDownloadsListParams = z.output<typeof ModelsDownloadsListParams>;
|
|
18840
|
+
/** Cancel one running download (every caller waiting on it gets CANCELLED); its half-done file stays for Resume. */
|
|
18841
|
+
declare const ModelsDownloadsCancelParams: z.ZodObject<{
|
|
18842
|
+
key: z.ZodString;
|
|
18843
|
+
}, z.core.$strict>;
|
|
18844
|
+
type ModelsDownloadsCancelParams = z.output<typeof ModelsDownloadsCancelParams>;
|
|
18845
|
+
declare const ModelsDownloadsCancelResult: z.ZodObject<{
|
|
18846
|
+
cancelled: z.ZodBoolean;
|
|
18847
|
+
}, z.core.$strict>;
|
|
18848
|
+
type ModelsDownloadsCancelResult = z.output<typeof ModelsDownloadsCancelResult>;
|
|
18849
|
+
/** The supervisor's view of the `ml` service process. */
|
|
18850
|
+
declare const MlServiceState: z.ZodEnum<{
|
|
18851
|
+
failed: "failed";
|
|
18852
|
+
stopped: "stopped";
|
|
18853
|
+
starting: "starting";
|
|
18854
|
+
ready: "ready";
|
|
18855
|
+
restarting: "restarting";
|
|
18856
|
+
}>;
|
|
18857
|
+
type MlServiceState = z.output<typeof MlServiceState>;
|
|
18858
|
+
declare const MlServiceStatus: z.ZodObject<{
|
|
18859
|
+
state: z.ZodEnum<{
|
|
18860
|
+
failed: "failed";
|
|
18861
|
+
stopped: "stopped";
|
|
18862
|
+
starting: "starting";
|
|
18863
|
+
ready: "ready";
|
|
18864
|
+
restarting: "restarting";
|
|
18865
|
+
}>;
|
|
18866
|
+
pid: z.ZodNullable<z.ZodInt>;
|
|
18867
|
+
restarts: z.ZodInt;
|
|
18868
|
+
python: z.ZodNullable<z.ZodString>;
|
|
18869
|
+
error: z.ZodNullable<z.ZodString>;
|
|
18870
|
+
}, z.core.$strict>;
|
|
18871
|
+
type MlServiceStatus = z.output<typeof MlServiceStatus>;
|
|
18872
|
+
declare const ModelsStatusParams: z.ZodObject<{}, z.core.$strict>;
|
|
18873
|
+
type ModelsStatusParams = z.output<typeof ModelsStatusParams>;
|
|
18727
18874
|
|
|
18728
18875
|
export { ModelKey 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, MlCatalogSetParams as P, MlCatalogSetResult as Q, MlInstallPhase as R, StreamMeta as S, TranscriptionModelId as T, MlInstallProgress as U, MlRuntimeState as V, Welcome as W, MlServiceState as X, MlServiceStatus as Y, MlStatusParams as Z, MlStatusResult as _, type OpParams as a, ModelsDownloadsCancelParams as a0, ModelsDownloadsCancelResult as a1, ModelsDownloadsListParams as a2, ModelsDownloadsListResult as a3, ModelsInstallParams as a4, ModelsInstallResult as a5, ModelsLlmInstallParams as a6, ModelsLlmInstallResult as a7, ModelsLlmStartParams as a8, ModelsLlmStartResult as a9, TextModelId as aA, TextModelInfo as aB, TranscriptSegment as aC, TranscriptionModelInfo as aD, closeRule as aE, isTerminalClose as aF, ModelsLlmStatusParams as aa, ModelsLlmStatusResult as ab, ModelsLlmStopParams as ac, ModelsLlmStopResult as ad, ModelsProgressEvent as ae, ModelsStatusParams as af, ModelsStatusResult as ag, ModelsTranscribeParams as ah, NAMED_SCHEMAS as ai, type NamedSchemaId as aj, OpDescriptor as ak, type OpSpec as al, PING_TEXT as am, PONG_TEXT as an, ProtocolErrorBody as ao, RelayMsg as ap, RequestMsg as aq, ResponseMsg as ar, SERVICES as as, SUBPROTOCOL as at, type ServiceId as au, type ServiceOpName as av, type ServiceOpSpec as aw, type ServiceSpec as ax, Sha256Hex as ay, StreamMsg 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 };
|