@ai-matrx/desktop-protocol 0.6.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +66 -0
- package/README.md +13 -0
- package/dist/client.cjs +272 -42
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +9 -2
- package/dist/client.d.ts +9 -2
- package/dist/client.js +272 -42
- package/dist/client.js.map +1 -1
- package/dist/index.cjs +776 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1048 -5
- package/dist/index.d.ts +1048 -5
- package/dist/index.js +776 -5
- package/dist/index.js.map +1 -1
- package/dist/react.d.cts +305 -1
- package/dist/react.d.ts +305 -1
- package/dist/{registry-jTmq1CsI.d.cts → registry-B3NqARgh.d.cts} +1314 -3
- package/dist/{registry-jTmq1CsI.d.ts → registry-B3NqARgh.d.ts} +1314 -3
- package/generated/desktop-protocol.schema.json +4554 -0
- package/package.json +3 -1
- package/scripts/gen_pydantic.py +335 -0
|
@@ -6,7 +6,7 @@ import { z } from 'zod';
|
|
|
6
6
|
* never drift (see the `_assert*` lines there).
|
|
7
7
|
*/
|
|
8
8
|
type ErrorCodeName = "AUTH_REQUIRED" | "AUTH_INVALID" | "AUTH_EXPIRED" | "AUTH_FORBIDDEN" | "AUTH_DEVICE_REVOKED" | "PERMISSION_DENIED_OS" | "NOT_FOUND" | "CONFLICT" | "INVALID_PARAMS" | "RESOURCE_BUSY" | "RESOURCE_GONE" | "CANCELLED" | "TIMEOUT" | "PLATFORM_UNSUPPORTED" | "RATE_LIMITED" | "INTERNAL" | "PROTOCOL_VERSION_UNSUPPORTED" | "PROTOCOL_ERROR" | "UNKNOWN_OPERATION" | "DEVICE_OFFLINE" | "PAYLOAD_TOO_LARGE";
|
|
9
|
-
type ErrorReasonName = "not_a_directory" | "is_a_directory" | "directory_not_empty" | "already_exists" | "stale_write" | "binary_content" | "not_utf8_boundary" | "patch_no_match" | "patch_ambiguous" | "resource_exited" | "resource_expired" | "control_taken" | "window_exhausted";
|
|
9
|
+
type ErrorReasonName = "not_a_directory" | "is_a_directory" | "directory_not_empty" | "already_exists" | "stale_write" | "binary_content" | "not_utf8_boundary" | "patch_no_match" | "patch_ambiguous" | "resource_exited" | "resource_expired" | "control_taken" | "window_exhausted" | "runtime_not_installed" | "model_not_installed" | "unsupported_media" | "download_failed" | "service_starting" | "service_restarted" | "service_failed";
|
|
10
10
|
interface ErrorData {
|
|
11
11
|
reason?: ErrorReasonName | undefined;
|
|
12
12
|
cap?: string | undefined;
|
|
@@ -22,6 +22,96 @@ interface ErrorData {
|
|
|
22
22
|
} | undefined;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
+
/**
|
|
26
|
+
* What a connecting side does after each WebSocket close — the ONE table every client reads (the
|
|
27
|
+
* package client, the desktop's relay transport, any other dialer). Never keep a local list of
|
|
28
|
+
* "terminal" codes: a code added to CloseCode without a rule here fails to compile.
|
|
29
|
+
*
|
|
30
|
+
* reconnect_now the far side went away on purpose or the socket died; dial again at once if the
|
|
31
|
+
* connection had opened, with backoff otherwise (a dead network never spins).
|
|
32
|
+
* reconnect transient refusal; dial again with backoff.
|
|
33
|
+
* reauth the token was refused; get a FRESH token and dial once more. A second refusal in
|
|
34
|
+
* a row (no successful open between) is terminal with outcome "signed_out".
|
|
35
|
+
* stop retrying cannot help: stop dialing until something changes (a new sign-in, a
|
|
36
|
+
* new device, an update) and show the outcome.
|
|
37
|
+
*/
|
|
38
|
+
|
|
39
|
+
type CloseAction = "reconnect_now" | "reconnect" | "reauth" | "stop";
|
|
40
|
+
/** The one state a person is shown when dialing stops. */
|
|
41
|
+
type CloseOutcome = "signed_out" | "not_owned" | "removed" | "revoked" | "replaced" | "upgrade_required";
|
|
42
|
+
interface CloseRule {
|
|
43
|
+
readonly action: CloseAction;
|
|
44
|
+
/** Set for `stop` and `reauth` (the outcome when the fresh token is refused too). */
|
|
45
|
+
readonly outcome?: CloseOutcome;
|
|
46
|
+
/** The error a caller's pending work is failed with. */
|
|
47
|
+
readonly error: readonly [ErrorCodeName, string];
|
|
48
|
+
}
|
|
49
|
+
declare const CLOSE_RULES: {
|
|
50
|
+
readonly 1000: {
|
|
51
|
+
readonly action: "reconnect";
|
|
52
|
+
readonly error: readonly ["DEVICE_OFFLINE", "Connection closed"];
|
|
53
|
+
};
|
|
54
|
+
readonly 1001: {
|
|
55
|
+
readonly action: "reconnect_now";
|
|
56
|
+
readonly error: readonly ["DEVICE_OFFLINE", "Connection lost"];
|
|
57
|
+
};
|
|
58
|
+
readonly 1006: {
|
|
59
|
+
readonly action: "reconnect_now";
|
|
60
|
+
readonly error: readonly ["DEVICE_OFFLINE", "Connection lost"];
|
|
61
|
+
};
|
|
62
|
+
readonly 1012: {
|
|
63
|
+
readonly action: "reconnect_now";
|
|
64
|
+
readonly error: readonly ["DEVICE_OFFLINE", "Device reconnected"];
|
|
65
|
+
};
|
|
66
|
+
readonly 1013: {
|
|
67
|
+
readonly action: "reconnect";
|
|
68
|
+
readonly error: readonly ["DEVICE_OFFLINE", "Relay busy; retrying"];
|
|
69
|
+
};
|
|
70
|
+
readonly 4001: {
|
|
71
|
+
readonly action: "reauth";
|
|
72
|
+
readonly outcome: "signed_out";
|
|
73
|
+
readonly error: readonly ["AUTH_INVALID", "Sign-in was not accepted"];
|
|
74
|
+
};
|
|
75
|
+
readonly 4003: {
|
|
76
|
+
readonly action: "stop";
|
|
77
|
+
readonly outcome: "not_owned";
|
|
78
|
+
readonly error: readonly ["AUTH_FORBIDDEN", "Not this device's owner"];
|
|
79
|
+
};
|
|
80
|
+
readonly 4004: {
|
|
81
|
+
readonly action: "stop";
|
|
82
|
+
readonly outcome: "removed";
|
|
83
|
+
readonly error: readonly ["NOT_FOUND", "Device not found"];
|
|
84
|
+
};
|
|
85
|
+
readonly 4008: {
|
|
86
|
+
readonly action: "reauth";
|
|
87
|
+
readonly outcome: "signed_out";
|
|
88
|
+
readonly error: readonly ["AUTH_EXPIRED", "Sign-in expired"];
|
|
89
|
+
};
|
|
90
|
+
readonly 4009: {
|
|
91
|
+
readonly action: "stop";
|
|
92
|
+
readonly outcome: "replaced";
|
|
93
|
+
readonly error: readonly ["CONFLICT", "Replaced by a newer connection"];
|
|
94
|
+
};
|
|
95
|
+
readonly 4010: {
|
|
96
|
+
readonly action: "stop";
|
|
97
|
+
readonly outcome: "revoked";
|
|
98
|
+
readonly error: readonly ["AUTH_DEVICE_REVOKED", "This device was revoked"];
|
|
99
|
+
};
|
|
100
|
+
readonly 4400: {
|
|
101
|
+
readonly action: "reconnect";
|
|
102
|
+
readonly error: readonly ["PROTOCOL_ERROR", "Connection reset by the relay"];
|
|
103
|
+
};
|
|
104
|
+
readonly 4426: {
|
|
105
|
+
readonly action: "stop";
|
|
106
|
+
readonly outcome: "upgrade_required";
|
|
107
|
+
readonly error: readonly ["PROTOCOL_VERSION_UNSUPPORTED", "Protocol upgrade required"];
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
/** The rule for any close code; one this table does not know (or null: no close frame) reconnects with backoff. */
|
|
111
|
+
declare function closeRule(code: number | null | undefined): CloseRule;
|
|
112
|
+
/** True when dialing must stop after this close (no retry will help). */
|
|
113
|
+
declare function isTerminalClose(code: number | null | undefined): boolean;
|
|
114
|
+
|
|
25
115
|
/**
|
|
26
116
|
* The one error type every package entry throws. It carries the wire ErrorCode (SPEC §5), so a
|
|
27
117
|
* caller branches on `code`/`retryable`/`data.reason` and never parses a message. Zod-free on
|
|
@@ -205,6 +295,13 @@ declare const ErrorMsg: z.ZodObject<{
|
|
|
205
295
|
resource_expired: "resource_expired";
|
|
206
296
|
control_taken: "control_taken";
|
|
207
297
|
window_exhausted: "window_exhausted";
|
|
298
|
+
runtime_not_installed: "runtime_not_installed";
|
|
299
|
+
model_not_installed: "model_not_installed";
|
|
300
|
+
unsupported_media: "unsupported_media";
|
|
301
|
+
download_failed: "download_failed";
|
|
302
|
+
service_starting: "service_starting";
|
|
303
|
+
service_restarted: "service_restarted";
|
|
304
|
+
service_failed: "service_failed";
|
|
208
305
|
}>>;
|
|
209
306
|
cap: z.ZodOptional<z.ZodString>;
|
|
210
307
|
op: z.ZodOptional<z.ZodString>;
|
|
@@ -383,6 +480,13 @@ declare const CoreToClientMsg: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
383
480
|
resource_expired: "resource_expired";
|
|
384
481
|
control_taken: "control_taken";
|
|
385
482
|
window_exhausted: "window_exhausted";
|
|
483
|
+
runtime_not_installed: "runtime_not_installed";
|
|
484
|
+
model_not_installed: "model_not_installed";
|
|
485
|
+
unsupported_media: "unsupported_media";
|
|
486
|
+
download_failed: "download_failed";
|
|
487
|
+
service_starting: "service_starting";
|
|
488
|
+
service_restarted: "service_restarted";
|
|
489
|
+
service_failed: "service_failed";
|
|
386
490
|
}>>;
|
|
387
491
|
cap: z.ZodOptional<z.ZodString>;
|
|
388
492
|
op: z.ZodOptional<z.ZodString>;
|
|
@@ -484,6 +588,13 @@ declare const ErrorReason: z.ZodEnum<{
|
|
|
484
588
|
resource_expired: "resource_expired";
|
|
485
589
|
control_taken: "control_taken";
|
|
486
590
|
window_exhausted: "window_exhausted";
|
|
591
|
+
runtime_not_installed: "runtime_not_installed";
|
|
592
|
+
model_not_installed: "model_not_installed";
|
|
593
|
+
unsupported_media: "unsupported_media";
|
|
594
|
+
download_failed: "download_failed";
|
|
595
|
+
service_starting: "service_starting";
|
|
596
|
+
service_restarted: "service_restarted";
|
|
597
|
+
service_failed: "service_failed";
|
|
487
598
|
}>;
|
|
488
599
|
type ErrorReason = z.output<typeof ErrorReason>;
|
|
489
600
|
declare const ProtocolErrorBody: z.ZodObject<{
|
|
@@ -527,6 +638,13 @@ declare const ProtocolErrorBody: z.ZodObject<{
|
|
|
527
638
|
resource_expired: "resource_expired";
|
|
528
639
|
control_taken: "control_taken";
|
|
529
640
|
window_exhausted: "window_exhausted";
|
|
641
|
+
runtime_not_installed: "runtime_not_installed";
|
|
642
|
+
model_not_installed: "model_not_installed";
|
|
643
|
+
unsupported_media: "unsupported_media";
|
|
644
|
+
download_failed: "download_failed";
|
|
645
|
+
service_starting: "service_starting";
|
|
646
|
+
service_restarted: "service_restarted";
|
|
647
|
+
service_failed: "service_failed";
|
|
530
648
|
}>>;
|
|
531
649
|
cap: z.ZodOptional<z.ZodString>;
|
|
532
650
|
op: z.ZodOptional<z.ZodString>;
|
|
@@ -563,7 +681,7 @@ type OpSpec = {
|
|
|
563
681
|
readonly params: z.ZodType;
|
|
564
682
|
readonly result: z.ZodType;
|
|
565
683
|
readonly kind: "unary" | "stream" | "resource";
|
|
566
|
-
readonly since: "1.0";
|
|
684
|
+
readonly since: "1.0" | "1.2";
|
|
567
685
|
readonly errors: readonly z.infer<typeof ErrorCode>[];
|
|
568
686
|
};
|
|
569
687
|
declare const OPS: {
|
|
@@ -1194,6 +1312,261 @@ declare const OPS: {
|
|
|
1194
1312
|
readonly since: "1.0";
|
|
1195
1313
|
readonly errors: readonly ["INTERNAL"];
|
|
1196
1314
|
};
|
|
1315
|
+
readonly "models.status": {
|
|
1316
|
+
readonly params: z.ZodObject<{}, z.core.$strict>;
|
|
1317
|
+
readonly result: z.ZodObject<{
|
|
1318
|
+
service: z.ZodObject<{
|
|
1319
|
+
state: z.ZodEnum<{
|
|
1320
|
+
failed: "failed";
|
|
1321
|
+
starting: "starting";
|
|
1322
|
+
ready: "ready";
|
|
1323
|
+
restarting: "restarting";
|
|
1324
|
+
stopped: "stopped";
|
|
1325
|
+
}>;
|
|
1326
|
+
pid: z.ZodNullable<z.ZodInt>;
|
|
1327
|
+
restarts: z.ZodInt;
|
|
1328
|
+
python: z.ZodNullable<z.ZodString>;
|
|
1329
|
+
error: z.ZodNullable<z.ZodString>;
|
|
1330
|
+
}, z.core.$strict>;
|
|
1331
|
+
transcription: z.ZodNullable<z.ZodObject<{
|
|
1332
|
+
runtime: z.ZodEnum<{
|
|
1333
|
+
not_installed: "not_installed";
|
|
1334
|
+
installing: "installing";
|
|
1335
|
+
installed: "installed";
|
|
1336
|
+
failed: "failed";
|
|
1337
|
+
}>;
|
|
1338
|
+
install: z.ZodNullable<z.ZodObject<{
|
|
1339
|
+
phase: z.ZodEnum<{
|
|
1340
|
+
model: "model";
|
|
1341
|
+
packages: "packages";
|
|
1342
|
+
verifying: "verifying";
|
|
1343
|
+
}>;
|
|
1344
|
+
item: z.ZodString;
|
|
1345
|
+
bytes_done: z.ZodInt;
|
|
1346
|
+
bytes_total: z.ZodNullable<z.ZodInt>;
|
|
1347
|
+
}, z.core.$strict>>;
|
|
1348
|
+
error: z.ZodNullable<z.ZodString>;
|
|
1349
|
+
accelerator: z.ZodEnum<{
|
|
1350
|
+
cpu: "cpu";
|
|
1351
|
+
cuda: "cuda";
|
|
1352
|
+
}>;
|
|
1353
|
+
models: z.ZodArray<z.ZodObject<{
|
|
1354
|
+
id: z.ZodEnum<{
|
|
1355
|
+
tiny: "tiny";
|
|
1356
|
+
base: "base";
|
|
1357
|
+
small: "small";
|
|
1358
|
+
"large-v3-turbo": "large-v3-turbo";
|
|
1359
|
+
}>;
|
|
1360
|
+
size_bytes: z.ZodInt;
|
|
1361
|
+
multilingual: z.ZodBoolean;
|
|
1362
|
+
installed: z.ZodBoolean;
|
|
1363
|
+
}, z.core.$strict>>;
|
|
1364
|
+
default_model: z.ZodEnum<{
|
|
1365
|
+
tiny: "tiny";
|
|
1366
|
+
base: "base";
|
|
1367
|
+
small: "small";
|
|
1368
|
+
"large-v3-turbo": "large-v3-turbo";
|
|
1369
|
+
}>;
|
|
1370
|
+
}, z.core.$strict>>;
|
|
1371
|
+
}, z.core.$strict>;
|
|
1372
|
+
readonly kind: "unary";
|
|
1373
|
+
readonly since: "1.2";
|
|
1374
|
+
readonly errors: readonly ["INTERNAL"];
|
|
1375
|
+
};
|
|
1376
|
+
readonly "models.install": {
|
|
1377
|
+
readonly params: z.ZodObject<{
|
|
1378
|
+
model: z.ZodOptional<z.ZodEnum<{
|
|
1379
|
+
tiny: "tiny";
|
|
1380
|
+
base: "base";
|
|
1381
|
+
small: "small";
|
|
1382
|
+
"large-v3-turbo": "large-v3-turbo";
|
|
1383
|
+
}>>;
|
|
1384
|
+
}, z.core.$strict>;
|
|
1385
|
+
readonly result: z.ZodObject<{
|
|
1386
|
+
model: z.ZodEnum<{
|
|
1387
|
+
tiny: "tiny";
|
|
1388
|
+
base: "base";
|
|
1389
|
+
small: "small";
|
|
1390
|
+
"large-v3-turbo": "large-v3-turbo";
|
|
1391
|
+
}>;
|
|
1392
|
+
elapsed_ms: z.ZodInt;
|
|
1393
|
+
}, z.core.$strict>;
|
|
1394
|
+
readonly kind: "unary";
|
|
1395
|
+
readonly since: "1.2";
|
|
1396
|
+
readonly errors: readonly ["RESOURCE_BUSY", "RESOURCE_GONE", "TIMEOUT", "CANCELLED", "INTERNAL"];
|
|
1397
|
+
};
|
|
1398
|
+
readonly "models.transcribe": {
|
|
1399
|
+
readonly params: z.ZodObject<{
|
|
1400
|
+
path: z.ZodString;
|
|
1401
|
+
model: z.ZodOptional<z.ZodEnum<{
|
|
1402
|
+
tiny: "tiny";
|
|
1403
|
+
base: "base";
|
|
1404
|
+
small: "small";
|
|
1405
|
+
"large-v3-turbo": "large-v3-turbo";
|
|
1406
|
+
}>>;
|
|
1407
|
+
language: z.ZodOptional<z.ZodString>;
|
|
1408
|
+
task: z.ZodDefault<z.ZodEnum<{
|
|
1409
|
+
transcribe: "transcribe";
|
|
1410
|
+
translate: "translate";
|
|
1411
|
+
}>>;
|
|
1412
|
+
}, z.core.$strict>;
|
|
1413
|
+
readonly result: z.ZodObject<{
|
|
1414
|
+
text: z.ZodString;
|
|
1415
|
+
language: z.ZodString;
|
|
1416
|
+
language_probability: z.ZodNumber;
|
|
1417
|
+
duration_s: z.ZodNumber;
|
|
1418
|
+
model: z.ZodEnum<{
|
|
1419
|
+
tiny: "tiny";
|
|
1420
|
+
base: "base";
|
|
1421
|
+
small: "small";
|
|
1422
|
+
"large-v3-turbo": "large-v3-turbo";
|
|
1423
|
+
}>;
|
|
1424
|
+
segments: z.ZodArray<z.ZodObject<{
|
|
1425
|
+
start_s: z.ZodNumber;
|
|
1426
|
+
end_s: z.ZodNumber;
|
|
1427
|
+
text: z.ZodString;
|
|
1428
|
+
}, z.core.$strict>>;
|
|
1429
|
+
elapsed_ms: z.ZodInt;
|
|
1430
|
+
}, z.core.$strict>;
|
|
1431
|
+
readonly kind: "unary";
|
|
1432
|
+
readonly since: "1.2";
|
|
1433
|
+
readonly errors: readonly ["NOT_FOUND", "INVALID_PARAMS", "PERMISSION_DENIED_OS", "RESOURCE_BUSY", "RESOURCE_GONE", "CANCELLED", "PAYLOAD_TOO_LARGE", "INTERNAL"];
|
|
1434
|
+
};
|
|
1435
|
+
readonly "apps.list": {
|
|
1436
|
+
readonly params: z.ZodObject<{}, z.core.$strict>;
|
|
1437
|
+
readonly result: z.ZodObject<{
|
|
1438
|
+
apps: z.ZodArray<z.ZodObject<{
|
|
1439
|
+
app_key: z.ZodString;
|
|
1440
|
+
name: z.ZodString;
|
|
1441
|
+
installed: z.ZodBoolean;
|
|
1442
|
+
version: z.ZodNullable<z.ZodString>;
|
|
1443
|
+
location: z.ZodNullable<z.ZodString>;
|
|
1444
|
+
open: z.ZodObject<{
|
|
1445
|
+
status: z.ZodEnum<{
|
|
1446
|
+
supported: "supported";
|
|
1447
|
+
partial: "partial";
|
|
1448
|
+
unsupported: "unsupported";
|
|
1449
|
+
}>;
|
|
1450
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
1451
|
+
}, z.core.$strict>;
|
|
1452
|
+
profiles: z.ZodObject<{
|
|
1453
|
+
status: z.ZodEnum<{
|
|
1454
|
+
supported: "supported";
|
|
1455
|
+
partial: "partial";
|
|
1456
|
+
unsupported: "unsupported";
|
|
1457
|
+
}>;
|
|
1458
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
1459
|
+
}, z.core.$strict>;
|
|
1460
|
+
usage: z.ZodObject<{
|
|
1461
|
+
status: z.ZodEnum<{
|
|
1462
|
+
supported: "supported";
|
|
1463
|
+
partial: "partial";
|
|
1464
|
+
unsupported: "unsupported";
|
|
1465
|
+
}>;
|
|
1466
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
1467
|
+
}, z.core.$strict>;
|
|
1468
|
+
}, z.core.$strict>>;
|
|
1469
|
+
}, z.core.$strict>;
|
|
1470
|
+
readonly kind: "unary";
|
|
1471
|
+
readonly since: "1.2";
|
|
1472
|
+
readonly errors: readonly ["INTERNAL"];
|
|
1473
|
+
};
|
|
1474
|
+
readonly "apps.profiles.list": {
|
|
1475
|
+
readonly params: z.ZodObject<{
|
|
1476
|
+
app_key: z.ZodOptional<z.ZodString>;
|
|
1477
|
+
}, z.core.$strict>;
|
|
1478
|
+
readonly result: z.ZodObject<{
|
|
1479
|
+
profiles: z.ZodArray<z.ZodObject<{
|
|
1480
|
+
id: z.ZodNullable<z.ZodString>;
|
|
1481
|
+
app_key: z.ZodString;
|
|
1482
|
+
display_name: z.ZodString;
|
|
1483
|
+
account_identity: z.ZodNullable<z.ZodString>;
|
|
1484
|
+
profile_locator: z.ZodNullable<z.ZodString>;
|
|
1485
|
+
device_id: z.ZodNullable<z.ZodString>;
|
|
1486
|
+
folder: z.ZodNullable<z.ZodString>;
|
|
1487
|
+
on_disk: z.ZodBoolean;
|
|
1488
|
+
running: z.ZodNullable<z.ZodBoolean>;
|
|
1489
|
+
usage: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1490
|
+
window: z.ZodEnum<{
|
|
1491
|
+
five_hour: "five_hour";
|
|
1492
|
+
weekly: "weekly";
|
|
1493
|
+
extra: "extra";
|
|
1494
|
+
}>;
|
|
1495
|
+
percent: z.ZodNumber;
|
|
1496
|
+
sampled_at_ms: z.ZodInt;
|
|
1497
|
+
reset_since: z.ZodBoolean;
|
|
1498
|
+
}, z.core.$strict>>>;
|
|
1499
|
+
last_opened_ms: z.ZodNullable<z.ZodInt>;
|
|
1500
|
+
}, z.core.$strict>>;
|
|
1501
|
+
registry: z.ZodEnum<{
|
|
1502
|
+
ok: "ok";
|
|
1503
|
+
signed_out: "signed_out";
|
|
1504
|
+
unavailable: "unavailable";
|
|
1505
|
+
}>;
|
|
1506
|
+
}, z.core.$strict>;
|
|
1507
|
+
readonly kind: "unary";
|
|
1508
|
+
readonly since: "1.2";
|
|
1509
|
+
readonly errors: readonly ["NOT_FOUND", "INVALID_PARAMS", "INTERNAL"];
|
|
1510
|
+
};
|
|
1511
|
+
readonly "apps.profiles.save": {
|
|
1512
|
+
readonly params: z.ZodObject<{
|
|
1513
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1514
|
+
app_key: z.ZodString;
|
|
1515
|
+
display_name: z.ZodString;
|
|
1516
|
+
account_identity: z.ZodNullable<z.ZodString>;
|
|
1517
|
+
profile_locator: z.ZodNullable<z.ZodString>;
|
|
1518
|
+
new_folder: z.ZodDefault<z.ZodBoolean>;
|
|
1519
|
+
}, z.core.$strict>;
|
|
1520
|
+
readonly result: z.ZodObject<{
|
|
1521
|
+
id: z.ZodNullable<z.ZodString>;
|
|
1522
|
+
app_key: z.ZodString;
|
|
1523
|
+
display_name: z.ZodString;
|
|
1524
|
+
account_identity: z.ZodNullable<z.ZodString>;
|
|
1525
|
+
profile_locator: z.ZodNullable<z.ZodString>;
|
|
1526
|
+
device_id: z.ZodNullable<z.ZodString>;
|
|
1527
|
+
folder: z.ZodNullable<z.ZodString>;
|
|
1528
|
+
on_disk: z.ZodBoolean;
|
|
1529
|
+
running: z.ZodNullable<z.ZodBoolean>;
|
|
1530
|
+
usage: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1531
|
+
window: z.ZodEnum<{
|
|
1532
|
+
five_hour: "five_hour";
|
|
1533
|
+
weekly: "weekly";
|
|
1534
|
+
extra: "extra";
|
|
1535
|
+
}>;
|
|
1536
|
+
percent: z.ZodNumber;
|
|
1537
|
+
sampled_at_ms: z.ZodInt;
|
|
1538
|
+
reset_since: z.ZodBoolean;
|
|
1539
|
+
}, z.core.$strict>>>;
|
|
1540
|
+
last_opened_ms: z.ZodNullable<z.ZodInt>;
|
|
1541
|
+
}, z.core.$strict>;
|
|
1542
|
+
readonly kind: "unary";
|
|
1543
|
+
readonly since: "1.2";
|
|
1544
|
+
readonly errors: readonly ["AUTH_REQUIRED", "AUTH_FORBIDDEN", "NOT_FOUND", "INVALID_PARAMS", "CONFLICT", "PLATFORM_UNSUPPORTED", "DEVICE_OFFLINE", "INTERNAL"];
|
|
1545
|
+
};
|
|
1546
|
+
readonly "apps.profiles.remove": {
|
|
1547
|
+
readonly params: z.ZodObject<{
|
|
1548
|
+
id: z.ZodString;
|
|
1549
|
+
}, z.core.$strict>;
|
|
1550
|
+
readonly result: z.ZodObject<{
|
|
1551
|
+
removed: z.ZodBoolean;
|
|
1552
|
+
}, z.core.$strict>;
|
|
1553
|
+
readonly kind: "unary";
|
|
1554
|
+
readonly since: "1.2";
|
|
1555
|
+
readonly errors: readonly ["AUTH_REQUIRED", "AUTH_FORBIDDEN", "NOT_FOUND", "DEVICE_OFFLINE", "INTERNAL"];
|
|
1556
|
+
};
|
|
1557
|
+
readonly "apps.open": {
|
|
1558
|
+
readonly params: z.ZodObject<{
|
|
1559
|
+
app_key: z.ZodString;
|
|
1560
|
+
profile_id: z.ZodOptional<z.ZodString>;
|
|
1561
|
+
}, z.core.$strict>;
|
|
1562
|
+
readonly result: z.ZodObject<{
|
|
1563
|
+
already_running: z.ZodBoolean;
|
|
1564
|
+
folder: z.ZodNullable<z.ZodString>;
|
|
1565
|
+
}, z.core.$strict>;
|
|
1566
|
+
readonly kind: "unary";
|
|
1567
|
+
readonly since: "1.2";
|
|
1568
|
+
readonly errors: readonly ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "AUTH_REQUIRED", "DEVICE_OFFLINE", "INTERNAL"];
|
|
1569
|
+
};
|
|
1197
1570
|
};
|
|
1198
1571
|
type OpName = keyof typeof OPS;
|
|
1199
1572
|
type OpParams<N extends OpName> = z.input<(typeof OPS)[N]["params"]>;
|
|
@@ -1245,6 +1618,31 @@ declare const EVENTS: {
|
|
|
1245
1618
|
read_only: "read_only";
|
|
1246
1619
|
}>;
|
|
1247
1620
|
}, z.core.$strict>;
|
|
1621
|
+
readonly "models.progress": z.ZodObject<{
|
|
1622
|
+
request_id: z.ZodString;
|
|
1623
|
+
progress: z.ZodObject<{
|
|
1624
|
+
kind: z.ZodEnum<{
|
|
1625
|
+
install: "install";
|
|
1626
|
+
transcribe: "transcribe";
|
|
1627
|
+
}>;
|
|
1628
|
+
fraction: z.ZodNullable<z.ZodNumber>;
|
|
1629
|
+
install: z.ZodNullable<z.ZodObject<{
|
|
1630
|
+
phase: z.ZodEnum<{
|
|
1631
|
+
model: "model";
|
|
1632
|
+
packages: "packages";
|
|
1633
|
+
verifying: "verifying";
|
|
1634
|
+
}>;
|
|
1635
|
+
item: z.ZodString;
|
|
1636
|
+
bytes_done: z.ZodInt;
|
|
1637
|
+
bytes_total: z.ZodNullable<z.ZodInt>;
|
|
1638
|
+
}, z.core.$strict>>;
|
|
1639
|
+
segment: z.ZodNullable<z.ZodObject<{
|
|
1640
|
+
start_s: z.ZodNumber;
|
|
1641
|
+
end_s: z.ZodNumber;
|
|
1642
|
+
text: z.ZodString;
|
|
1643
|
+
}, z.core.$strict>>;
|
|
1644
|
+
}, z.core.$strict>;
|
|
1645
|
+
}, z.core.$strict>;
|
|
1248
1646
|
readonly "relay.device_status": z.ZodObject<{
|
|
1249
1647
|
online: z.ZodBoolean;
|
|
1250
1648
|
since_ms: z.ZodNullable<z.ZodInt>;
|
|
@@ -1256,6 +1654,146 @@ declare const EVENTS: {
|
|
|
1256
1654
|
}, z.core.$strict>;
|
|
1257
1655
|
};
|
|
1258
1656
|
type EventName = keyof typeof EVENTS;
|
|
1657
|
+
/**
|
|
1658
|
+
* Supervised Python services (SPEC §3.10) and the ops each serves over its local socket
|
|
1659
|
+
* (src/schema/service.ts). The Python side's handler protocol, op table and models are generated
|
|
1660
|
+
* from this table (scripts/gen_pydantic.py); the core's service client is typed by it. A Router
|
|
1661
|
+
* op that a capability owner forwards uses the same params/result schemas as its service op.
|
|
1662
|
+
*/
|
|
1663
|
+
type ServiceOpSpec = {
|
|
1664
|
+
readonly params: z.ZodType;
|
|
1665
|
+
readonly result: z.ZodType;
|
|
1666
|
+
};
|
|
1667
|
+
type ServiceSpec = {
|
|
1668
|
+
readonly progress: z.ZodType;
|
|
1669
|
+
readonly ops: Readonly<Record<string, ServiceOpSpec>>;
|
|
1670
|
+
};
|
|
1671
|
+
declare const SERVICES: {
|
|
1672
|
+
readonly ml: {
|
|
1673
|
+
readonly progress: z.ZodObject<{
|
|
1674
|
+
kind: z.ZodEnum<{
|
|
1675
|
+
install: "install";
|
|
1676
|
+
transcribe: "transcribe";
|
|
1677
|
+
}>;
|
|
1678
|
+
fraction: z.ZodNullable<z.ZodNumber>;
|
|
1679
|
+
install: z.ZodNullable<z.ZodObject<{
|
|
1680
|
+
phase: z.ZodEnum<{
|
|
1681
|
+
model: "model";
|
|
1682
|
+
packages: "packages";
|
|
1683
|
+
verifying: "verifying";
|
|
1684
|
+
}>;
|
|
1685
|
+
item: z.ZodString;
|
|
1686
|
+
bytes_done: z.ZodInt;
|
|
1687
|
+
bytes_total: z.ZodNullable<z.ZodInt>;
|
|
1688
|
+
}, z.core.$strict>>;
|
|
1689
|
+
segment: z.ZodNullable<z.ZodObject<{
|
|
1690
|
+
start_s: z.ZodNumber;
|
|
1691
|
+
end_s: z.ZodNumber;
|
|
1692
|
+
text: z.ZodString;
|
|
1693
|
+
}, z.core.$strict>>;
|
|
1694
|
+
}, z.core.$strict>;
|
|
1695
|
+
readonly ops: {
|
|
1696
|
+
readonly "ml.status": {
|
|
1697
|
+
readonly params: z.ZodObject<{}, z.core.$strict>;
|
|
1698
|
+
readonly result: z.ZodObject<{
|
|
1699
|
+
runtime: z.ZodEnum<{
|
|
1700
|
+
not_installed: "not_installed";
|
|
1701
|
+
installing: "installing";
|
|
1702
|
+
installed: "installed";
|
|
1703
|
+
failed: "failed";
|
|
1704
|
+
}>;
|
|
1705
|
+
install: z.ZodNullable<z.ZodObject<{
|
|
1706
|
+
phase: z.ZodEnum<{
|
|
1707
|
+
model: "model";
|
|
1708
|
+
packages: "packages";
|
|
1709
|
+
verifying: "verifying";
|
|
1710
|
+
}>;
|
|
1711
|
+
item: z.ZodString;
|
|
1712
|
+
bytes_done: z.ZodInt;
|
|
1713
|
+
bytes_total: z.ZodNullable<z.ZodInt>;
|
|
1714
|
+
}, z.core.$strict>>;
|
|
1715
|
+
error: z.ZodNullable<z.ZodString>;
|
|
1716
|
+
accelerator: z.ZodEnum<{
|
|
1717
|
+
cpu: "cpu";
|
|
1718
|
+
cuda: "cuda";
|
|
1719
|
+
}>;
|
|
1720
|
+
models: z.ZodArray<z.ZodObject<{
|
|
1721
|
+
id: z.ZodEnum<{
|
|
1722
|
+
tiny: "tiny";
|
|
1723
|
+
base: "base";
|
|
1724
|
+
small: "small";
|
|
1725
|
+
"large-v3-turbo": "large-v3-turbo";
|
|
1726
|
+
}>;
|
|
1727
|
+
size_bytes: z.ZodInt;
|
|
1728
|
+
multilingual: z.ZodBoolean;
|
|
1729
|
+
installed: z.ZodBoolean;
|
|
1730
|
+
}, z.core.$strict>>;
|
|
1731
|
+
default_model: z.ZodEnum<{
|
|
1732
|
+
tiny: "tiny";
|
|
1733
|
+
base: "base";
|
|
1734
|
+
small: "small";
|
|
1735
|
+
"large-v3-turbo": "large-v3-turbo";
|
|
1736
|
+
}>;
|
|
1737
|
+
}, z.core.$strict>;
|
|
1738
|
+
};
|
|
1739
|
+
readonly "ml.install": {
|
|
1740
|
+
readonly params: z.ZodObject<{
|
|
1741
|
+
model: z.ZodOptional<z.ZodEnum<{
|
|
1742
|
+
tiny: "tiny";
|
|
1743
|
+
base: "base";
|
|
1744
|
+
small: "small";
|
|
1745
|
+
"large-v3-turbo": "large-v3-turbo";
|
|
1746
|
+
}>>;
|
|
1747
|
+
}, z.core.$strict>;
|
|
1748
|
+
readonly result: z.ZodObject<{
|
|
1749
|
+
model: z.ZodEnum<{
|
|
1750
|
+
tiny: "tiny";
|
|
1751
|
+
base: "base";
|
|
1752
|
+
small: "small";
|
|
1753
|
+
"large-v3-turbo": "large-v3-turbo";
|
|
1754
|
+
}>;
|
|
1755
|
+
elapsed_ms: z.ZodInt;
|
|
1756
|
+
}, z.core.$strict>;
|
|
1757
|
+
};
|
|
1758
|
+
readonly "ml.transcribe": {
|
|
1759
|
+
readonly params: z.ZodObject<{
|
|
1760
|
+
path: z.ZodString;
|
|
1761
|
+
model: z.ZodOptional<z.ZodEnum<{
|
|
1762
|
+
tiny: "tiny";
|
|
1763
|
+
base: "base";
|
|
1764
|
+
small: "small";
|
|
1765
|
+
"large-v3-turbo": "large-v3-turbo";
|
|
1766
|
+
}>>;
|
|
1767
|
+
language: z.ZodOptional<z.ZodString>;
|
|
1768
|
+
task: z.ZodDefault<z.ZodEnum<{
|
|
1769
|
+
transcribe: "transcribe";
|
|
1770
|
+
translate: "translate";
|
|
1771
|
+
}>>;
|
|
1772
|
+
}, z.core.$strict>;
|
|
1773
|
+
readonly result: z.ZodObject<{
|
|
1774
|
+
text: z.ZodString;
|
|
1775
|
+
language: z.ZodString;
|
|
1776
|
+
language_probability: z.ZodNumber;
|
|
1777
|
+
duration_s: z.ZodNumber;
|
|
1778
|
+
model: z.ZodEnum<{
|
|
1779
|
+
tiny: "tiny";
|
|
1780
|
+
base: "base";
|
|
1781
|
+
small: "small";
|
|
1782
|
+
"large-v3-turbo": "large-v3-turbo";
|
|
1783
|
+
}>;
|
|
1784
|
+
segments: z.ZodArray<z.ZodObject<{
|
|
1785
|
+
start_s: z.ZodNumber;
|
|
1786
|
+
end_s: z.ZodNumber;
|
|
1787
|
+
text: z.ZodString;
|
|
1788
|
+
}, z.core.$strict>>;
|
|
1789
|
+
elapsed_ms: z.ZodInt;
|
|
1790
|
+
}, z.core.$strict>;
|
|
1791
|
+
};
|
|
1792
|
+
};
|
|
1793
|
+
};
|
|
1794
|
+
};
|
|
1795
|
+
type ServiceId = keyof typeof SERVICES;
|
|
1796
|
+
type ServiceOpName<S extends ServiceId> = keyof (typeof SERVICES)[S]["ops"] & string;
|
|
1259
1797
|
/**
|
|
1260
1798
|
* Every schema that lands in the generated JSON Schema `$defs` under a stable name (and so becomes a
|
|
1261
1799
|
* named Pydantic model). Order is the emission order. A test asserts every exported schema of
|
|
@@ -1306,6 +1844,13 @@ declare const NAMED_SCHEMAS: {
|
|
|
1306
1844
|
resource_expired: "resource_expired";
|
|
1307
1845
|
control_taken: "control_taken";
|
|
1308
1846
|
window_exhausted: "window_exhausted";
|
|
1847
|
+
runtime_not_installed: "runtime_not_installed";
|
|
1848
|
+
model_not_installed: "model_not_installed";
|
|
1849
|
+
unsupported_media: "unsupported_media";
|
|
1850
|
+
download_failed: "download_failed";
|
|
1851
|
+
service_starting: "service_starting";
|
|
1852
|
+
service_restarted: "service_restarted";
|
|
1853
|
+
service_failed: "service_failed";
|
|
1309
1854
|
}>;
|
|
1310
1855
|
readonly FsPatchEditFailure: z.ZodObject<{
|
|
1311
1856
|
edit_index: z.ZodInt;
|
|
@@ -1352,6 +1897,13 @@ declare const NAMED_SCHEMAS: {
|
|
|
1352
1897
|
resource_expired: "resource_expired";
|
|
1353
1898
|
control_taken: "control_taken";
|
|
1354
1899
|
window_exhausted: "window_exhausted";
|
|
1900
|
+
runtime_not_installed: "runtime_not_installed";
|
|
1901
|
+
model_not_installed: "model_not_installed";
|
|
1902
|
+
unsupported_media: "unsupported_media";
|
|
1903
|
+
download_failed: "download_failed";
|
|
1904
|
+
service_starting: "service_starting";
|
|
1905
|
+
service_restarted: "service_restarted";
|
|
1906
|
+
service_failed: "service_failed";
|
|
1355
1907
|
}>>;
|
|
1356
1908
|
cap: z.ZodOptional<z.ZodString>;
|
|
1357
1909
|
op: z.ZodOptional<z.ZodString>;
|
|
@@ -1492,6 +2044,13 @@ declare const NAMED_SCHEMAS: {
|
|
|
1492
2044
|
resource_expired: "resource_expired";
|
|
1493
2045
|
control_taken: "control_taken";
|
|
1494
2046
|
window_exhausted: "window_exhausted";
|
|
2047
|
+
runtime_not_installed: "runtime_not_installed";
|
|
2048
|
+
model_not_installed: "model_not_installed";
|
|
2049
|
+
unsupported_media: "unsupported_media";
|
|
2050
|
+
download_failed: "download_failed";
|
|
2051
|
+
service_starting: "service_starting";
|
|
2052
|
+
service_restarted: "service_restarted";
|
|
2053
|
+
service_failed: "service_failed";
|
|
1495
2054
|
}>>;
|
|
1496
2055
|
cap: z.ZodOptional<z.ZodString>;
|
|
1497
2056
|
op: z.ZodOptional<z.ZodString>;
|
|
@@ -1658,6 +2217,13 @@ declare const NAMED_SCHEMAS: {
|
|
|
1658
2217
|
resource_expired: "resource_expired";
|
|
1659
2218
|
control_taken: "control_taken";
|
|
1660
2219
|
window_exhausted: "window_exhausted";
|
|
2220
|
+
runtime_not_installed: "runtime_not_installed";
|
|
2221
|
+
model_not_installed: "model_not_installed";
|
|
2222
|
+
unsupported_media: "unsupported_media";
|
|
2223
|
+
download_failed: "download_failed";
|
|
2224
|
+
service_starting: "service_starting";
|
|
2225
|
+
service_restarted: "service_restarted";
|
|
2226
|
+
service_failed: "service_failed";
|
|
1661
2227
|
}>>;
|
|
1662
2228
|
cap: z.ZodOptional<z.ZodString>;
|
|
1663
2229
|
op: z.ZodOptional<z.ZodString>;
|
|
@@ -2329,6 +2895,493 @@ declare const NAMED_SCHEMAS: {
|
|
|
2329
2895
|
read_only: "read_only";
|
|
2330
2896
|
}>;
|
|
2331
2897
|
}, z.core.$strict>;
|
|
2898
|
+
readonly TranscriptionModelId: z.ZodEnum<{
|
|
2899
|
+
tiny: "tiny";
|
|
2900
|
+
base: "base";
|
|
2901
|
+
small: "small";
|
|
2902
|
+
"large-v3-turbo": "large-v3-turbo";
|
|
2903
|
+
}>;
|
|
2904
|
+
readonly MlRuntimeState: z.ZodEnum<{
|
|
2905
|
+
not_installed: "not_installed";
|
|
2906
|
+
installing: "installing";
|
|
2907
|
+
installed: "installed";
|
|
2908
|
+
failed: "failed";
|
|
2909
|
+
}>;
|
|
2910
|
+
readonly MlInstallPhase: z.ZodEnum<{
|
|
2911
|
+
model: "model";
|
|
2912
|
+
packages: "packages";
|
|
2913
|
+
verifying: "verifying";
|
|
2914
|
+
}>;
|
|
2915
|
+
readonly MlInstallProgress: z.ZodObject<{
|
|
2916
|
+
phase: z.ZodEnum<{
|
|
2917
|
+
model: "model";
|
|
2918
|
+
packages: "packages";
|
|
2919
|
+
verifying: "verifying";
|
|
2920
|
+
}>;
|
|
2921
|
+
item: z.ZodString;
|
|
2922
|
+
bytes_done: z.ZodInt;
|
|
2923
|
+
bytes_total: z.ZodNullable<z.ZodInt>;
|
|
2924
|
+
}, z.core.$strict>;
|
|
2925
|
+
readonly TranscriptionModelInfo: z.ZodObject<{
|
|
2926
|
+
id: z.ZodEnum<{
|
|
2927
|
+
tiny: "tiny";
|
|
2928
|
+
base: "base";
|
|
2929
|
+
small: "small";
|
|
2930
|
+
"large-v3-turbo": "large-v3-turbo";
|
|
2931
|
+
}>;
|
|
2932
|
+
size_bytes: z.ZodInt;
|
|
2933
|
+
multilingual: z.ZodBoolean;
|
|
2934
|
+
installed: z.ZodBoolean;
|
|
2935
|
+
}, z.core.$strict>;
|
|
2936
|
+
readonly TranscriptSegment: z.ZodObject<{
|
|
2937
|
+
start_s: z.ZodNumber;
|
|
2938
|
+
end_s: z.ZodNumber;
|
|
2939
|
+
text: z.ZodString;
|
|
2940
|
+
}, z.core.$strict>;
|
|
2941
|
+
readonly MlStatusParams: z.ZodObject<{}, z.core.$strict>;
|
|
2942
|
+
readonly MlStatusResult: z.ZodObject<{
|
|
2943
|
+
runtime: z.ZodEnum<{
|
|
2944
|
+
not_installed: "not_installed";
|
|
2945
|
+
installing: "installing";
|
|
2946
|
+
installed: "installed";
|
|
2947
|
+
failed: "failed";
|
|
2948
|
+
}>;
|
|
2949
|
+
install: z.ZodNullable<z.ZodObject<{
|
|
2950
|
+
phase: z.ZodEnum<{
|
|
2951
|
+
model: "model";
|
|
2952
|
+
packages: "packages";
|
|
2953
|
+
verifying: "verifying";
|
|
2954
|
+
}>;
|
|
2955
|
+
item: z.ZodString;
|
|
2956
|
+
bytes_done: z.ZodInt;
|
|
2957
|
+
bytes_total: z.ZodNullable<z.ZodInt>;
|
|
2958
|
+
}, z.core.$strict>>;
|
|
2959
|
+
error: z.ZodNullable<z.ZodString>;
|
|
2960
|
+
accelerator: z.ZodEnum<{
|
|
2961
|
+
cpu: "cpu";
|
|
2962
|
+
cuda: "cuda";
|
|
2963
|
+
}>;
|
|
2964
|
+
models: z.ZodArray<z.ZodObject<{
|
|
2965
|
+
id: z.ZodEnum<{
|
|
2966
|
+
tiny: "tiny";
|
|
2967
|
+
base: "base";
|
|
2968
|
+
small: "small";
|
|
2969
|
+
"large-v3-turbo": "large-v3-turbo";
|
|
2970
|
+
}>;
|
|
2971
|
+
size_bytes: z.ZodInt;
|
|
2972
|
+
multilingual: z.ZodBoolean;
|
|
2973
|
+
installed: z.ZodBoolean;
|
|
2974
|
+
}, z.core.$strict>>;
|
|
2975
|
+
default_model: z.ZodEnum<{
|
|
2976
|
+
tiny: "tiny";
|
|
2977
|
+
base: "base";
|
|
2978
|
+
small: "small";
|
|
2979
|
+
"large-v3-turbo": "large-v3-turbo";
|
|
2980
|
+
}>;
|
|
2981
|
+
}, z.core.$strict>;
|
|
2982
|
+
readonly ModelsInstallParams: z.ZodObject<{
|
|
2983
|
+
model: z.ZodOptional<z.ZodEnum<{
|
|
2984
|
+
tiny: "tiny";
|
|
2985
|
+
base: "base";
|
|
2986
|
+
small: "small";
|
|
2987
|
+
"large-v3-turbo": "large-v3-turbo";
|
|
2988
|
+
}>>;
|
|
2989
|
+
}, z.core.$strict>;
|
|
2990
|
+
readonly ModelsInstallResult: z.ZodObject<{
|
|
2991
|
+
model: z.ZodEnum<{
|
|
2992
|
+
tiny: "tiny";
|
|
2993
|
+
base: "base";
|
|
2994
|
+
small: "small";
|
|
2995
|
+
"large-v3-turbo": "large-v3-turbo";
|
|
2996
|
+
}>;
|
|
2997
|
+
elapsed_ms: z.ZodInt;
|
|
2998
|
+
}, z.core.$strict>;
|
|
2999
|
+
readonly ModelsTranscribeParams: z.ZodObject<{
|
|
3000
|
+
path: z.ZodString;
|
|
3001
|
+
model: z.ZodOptional<z.ZodEnum<{
|
|
3002
|
+
tiny: "tiny";
|
|
3003
|
+
base: "base";
|
|
3004
|
+
small: "small";
|
|
3005
|
+
"large-v3-turbo": "large-v3-turbo";
|
|
3006
|
+
}>>;
|
|
3007
|
+
language: z.ZodOptional<z.ZodString>;
|
|
3008
|
+
task: z.ZodDefault<z.ZodEnum<{
|
|
3009
|
+
transcribe: "transcribe";
|
|
3010
|
+
translate: "translate";
|
|
3011
|
+
}>>;
|
|
3012
|
+
}, z.core.$strict>;
|
|
3013
|
+
readonly ModelsTranscribeResult: z.ZodObject<{
|
|
3014
|
+
text: z.ZodString;
|
|
3015
|
+
language: z.ZodString;
|
|
3016
|
+
language_probability: z.ZodNumber;
|
|
3017
|
+
duration_s: z.ZodNumber;
|
|
3018
|
+
model: z.ZodEnum<{
|
|
3019
|
+
tiny: "tiny";
|
|
3020
|
+
base: "base";
|
|
3021
|
+
small: "small";
|
|
3022
|
+
"large-v3-turbo": "large-v3-turbo";
|
|
3023
|
+
}>;
|
|
3024
|
+
segments: z.ZodArray<z.ZodObject<{
|
|
3025
|
+
start_s: z.ZodNumber;
|
|
3026
|
+
end_s: z.ZodNumber;
|
|
3027
|
+
text: z.ZodString;
|
|
3028
|
+
}, z.core.$strict>>;
|
|
3029
|
+
elapsed_ms: z.ZodInt;
|
|
3030
|
+
}, z.core.$strict>;
|
|
3031
|
+
readonly MlProgress: z.ZodObject<{
|
|
3032
|
+
kind: z.ZodEnum<{
|
|
3033
|
+
install: "install";
|
|
3034
|
+
transcribe: "transcribe";
|
|
3035
|
+
}>;
|
|
3036
|
+
fraction: z.ZodNullable<z.ZodNumber>;
|
|
3037
|
+
install: z.ZodNullable<z.ZodObject<{
|
|
3038
|
+
phase: z.ZodEnum<{
|
|
3039
|
+
model: "model";
|
|
3040
|
+
packages: "packages";
|
|
3041
|
+
verifying: "verifying";
|
|
3042
|
+
}>;
|
|
3043
|
+
item: z.ZodString;
|
|
3044
|
+
bytes_done: z.ZodInt;
|
|
3045
|
+
bytes_total: z.ZodNullable<z.ZodInt>;
|
|
3046
|
+
}, z.core.$strict>>;
|
|
3047
|
+
segment: z.ZodNullable<z.ZodObject<{
|
|
3048
|
+
start_s: z.ZodNumber;
|
|
3049
|
+
end_s: z.ZodNumber;
|
|
3050
|
+
text: z.ZodString;
|
|
3051
|
+
}, z.core.$strict>>;
|
|
3052
|
+
}, z.core.$strict>;
|
|
3053
|
+
readonly MlServiceState: z.ZodEnum<{
|
|
3054
|
+
failed: "failed";
|
|
3055
|
+
starting: "starting";
|
|
3056
|
+
ready: "ready";
|
|
3057
|
+
restarting: "restarting";
|
|
3058
|
+
stopped: "stopped";
|
|
3059
|
+
}>;
|
|
3060
|
+
readonly MlServiceStatus: z.ZodObject<{
|
|
3061
|
+
state: z.ZodEnum<{
|
|
3062
|
+
failed: "failed";
|
|
3063
|
+
starting: "starting";
|
|
3064
|
+
ready: "ready";
|
|
3065
|
+
restarting: "restarting";
|
|
3066
|
+
stopped: "stopped";
|
|
3067
|
+
}>;
|
|
3068
|
+
pid: z.ZodNullable<z.ZodInt>;
|
|
3069
|
+
restarts: z.ZodInt;
|
|
3070
|
+
python: z.ZodNullable<z.ZodString>;
|
|
3071
|
+
error: z.ZodNullable<z.ZodString>;
|
|
3072
|
+
}, z.core.$strict>;
|
|
3073
|
+
readonly ModelsStatusParams: z.ZodObject<{}, z.core.$strict>;
|
|
3074
|
+
readonly ModelsStatusResult: z.ZodObject<{
|
|
3075
|
+
service: z.ZodObject<{
|
|
3076
|
+
state: z.ZodEnum<{
|
|
3077
|
+
failed: "failed";
|
|
3078
|
+
starting: "starting";
|
|
3079
|
+
ready: "ready";
|
|
3080
|
+
restarting: "restarting";
|
|
3081
|
+
stopped: "stopped";
|
|
3082
|
+
}>;
|
|
3083
|
+
pid: z.ZodNullable<z.ZodInt>;
|
|
3084
|
+
restarts: z.ZodInt;
|
|
3085
|
+
python: z.ZodNullable<z.ZodString>;
|
|
3086
|
+
error: z.ZodNullable<z.ZodString>;
|
|
3087
|
+
}, z.core.$strict>;
|
|
3088
|
+
transcription: z.ZodNullable<z.ZodObject<{
|
|
3089
|
+
runtime: z.ZodEnum<{
|
|
3090
|
+
not_installed: "not_installed";
|
|
3091
|
+
installing: "installing";
|
|
3092
|
+
installed: "installed";
|
|
3093
|
+
failed: "failed";
|
|
3094
|
+
}>;
|
|
3095
|
+
install: z.ZodNullable<z.ZodObject<{
|
|
3096
|
+
phase: z.ZodEnum<{
|
|
3097
|
+
model: "model";
|
|
3098
|
+
packages: "packages";
|
|
3099
|
+
verifying: "verifying";
|
|
3100
|
+
}>;
|
|
3101
|
+
item: z.ZodString;
|
|
3102
|
+
bytes_done: z.ZodInt;
|
|
3103
|
+
bytes_total: z.ZodNullable<z.ZodInt>;
|
|
3104
|
+
}, z.core.$strict>>;
|
|
3105
|
+
error: z.ZodNullable<z.ZodString>;
|
|
3106
|
+
accelerator: z.ZodEnum<{
|
|
3107
|
+
cpu: "cpu";
|
|
3108
|
+
cuda: "cuda";
|
|
3109
|
+
}>;
|
|
3110
|
+
models: z.ZodArray<z.ZodObject<{
|
|
3111
|
+
id: z.ZodEnum<{
|
|
3112
|
+
tiny: "tiny";
|
|
3113
|
+
base: "base";
|
|
3114
|
+
small: "small";
|
|
3115
|
+
"large-v3-turbo": "large-v3-turbo";
|
|
3116
|
+
}>;
|
|
3117
|
+
size_bytes: z.ZodInt;
|
|
3118
|
+
multilingual: z.ZodBoolean;
|
|
3119
|
+
installed: z.ZodBoolean;
|
|
3120
|
+
}, z.core.$strict>>;
|
|
3121
|
+
default_model: z.ZodEnum<{
|
|
3122
|
+
tiny: "tiny";
|
|
3123
|
+
base: "base";
|
|
3124
|
+
small: "small";
|
|
3125
|
+
"large-v3-turbo": "large-v3-turbo";
|
|
3126
|
+
}>;
|
|
3127
|
+
}, z.core.$strict>>;
|
|
3128
|
+
}, z.core.$strict>;
|
|
3129
|
+
readonly ModelsProgressEvent: z.ZodObject<{
|
|
3130
|
+
request_id: z.ZodString;
|
|
3131
|
+
progress: z.ZodObject<{
|
|
3132
|
+
kind: z.ZodEnum<{
|
|
3133
|
+
install: "install";
|
|
3134
|
+
transcribe: "transcribe";
|
|
3135
|
+
}>;
|
|
3136
|
+
fraction: z.ZodNullable<z.ZodNumber>;
|
|
3137
|
+
install: z.ZodNullable<z.ZodObject<{
|
|
3138
|
+
phase: z.ZodEnum<{
|
|
3139
|
+
model: "model";
|
|
3140
|
+
packages: "packages";
|
|
3141
|
+
verifying: "verifying";
|
|
3142
|
+
}>;
|
|
3143
|
+
item: z.ZodString;
|
|
3144
|
+
bytes_done: z.ZodInt;
|
|
3145
|
+
bytes_total: z.ZodNullable<z.ZodInt>;
|
|
3146
|
+
}, z.core.$strict>>;
|
|
3147
|
+
segment: z.ZodNullable<z.ZodObject<{
|
|
3148
|
+
start_s: z.ZodNumber;
|
|
3149
|
+
end_s: z.ZodNumber;
|
|
3150
|
+
text: z.ZodString;
|
|
3151
|
+
}, z.core.$strict>>;
|
|
3152
|
+
}, z.core.$strict>;
|
|
3153
|
+
}, z.core.$strict>;
|
|
3154
|
+
readonly ServiceName: z.ZodEnum<{
|
|
3155
|
+
ml: "ml";
|
|
3156
|
+
}>;
|
|
3157
|
+
readonly ContractHash: z.ZodString;
|
|
3158
|
+
readonly ServiceToken: z.ZodString;
|
|
3159
|
+
readonly ServiceHello: z.ZodObject<{
|
|
3160
|
+
type: z.ZodLiteral<"hello">;
|
|
3161
|
+
token: z.ZodString;
|
|
3162
|
+
contract: z.ZodString;
|
|
3163
|
+
}, z.core.$strict>;
|
|
3164
|
+
readonly ServiceWelcome: z.ZodObject<{
|
|
3165
|
+
type: z.ZodLiteral<"welcome">;
|
|
3166
|
+
service: z.ZodEnum<{
|
|
3167
|
+
ml: "ml";
|
|
3168
|
+
}>;
|
|
3169
|
+
contract: z.ZodString;
|
|
3170
|
+
pid: z.ZodInt;
|
|
3171
|
+
python: z.ZodString;
|
|
3172
|
+
ops: z.ZodArray<z.ZodString>;
|
|
3173
|
+
}, z.core.$strict>;
|
|
3174
|
+
readonly ServiceRequest: z.ZodObject<{
|
|
3175
|
+
type: z.ZodLiteral<"request">;
|
|
3176
|
+
id: z.ZodInt;
|
|
3177
|
+
op: z.ZodString;
|
|
3178
|
+
params: z.ZodUnknown;
|
|
3179
|
+
}, z.core.$strict>;
|
|
3180
|
+
readonly ServiceResponse: z.ZodObject<{
|
|
3181
|
+
type: z.ZodLiteral<"response">;
|
|
3182
|
+
id: z.ZodInt;
|
|
3183
|
+
result: z.ZodUnknown;
|
|
3184
|
+
}, z.core.$strict>;
|
|
3185
|
+
readonly ServiceErrorMsg: z.ZodObject<{
|
|
3186
|
+
type: z.ZodLiteral<"error">;
|
|
3187
|
+
id: z.ZodInt;
|
|
3188
|
+
error: z.ZodObject<{
|
|
3189
|
+
code: z.ZodEnum<{
|
|
3190
|
+
AUTH_REQUIRED: "AUTH_REQUIRED";
|
|
3191
|
+
AUTH_INVALID: "AUTH_INVALID";
|
|
3192
|
+
AUTH_EXPIRED: "AUTH_EXPIRED";
|
|
3193
|
+
AUTH_FORBIDDEN: "AUTH_FORBIDDEN";
|
|
3194
|
+
AUTH_DEVICE_REVOKED: "AUTH_DEVICE_REVOKED";
|
|
3195
|
+
PERMISSION_DENIED_OS: "PERMISSION_DENIED_OS";
|
|
3196
|
+
NOT_FOUND: "NOT_FOUND";
|
|
3197
|
+
CONFLICT: "CONFLICT";
|
|
3198
|
+
INVALID_PARAMS: "INVALID_PARAMS";
|
|
3199
|
+
RESOURCE_BUSY: "RESOURCE_BUSY";
|
|
3200
|
+
RESOURCE_GONE: "RESOURCE_GONE";
|
|
3201
|
+
CANCELLED: "CANCELLED";
|
|
3202
|
+
TIMEOUT: "TIMEOUT";
|
|
3203
|
+
PLATFORM_UNSUPPORTED: "PLATFORM_UNSUPPORTED";
|
|
3204
|
+
RATE_LIMITED: "RATE_LIMITED";
|
|
3205
|
+
INTERNAL: "INTERNAL";
|
|
3206
|
+
PROTOCOL_VERSION_UNSUPPORTED: "PROTOCOL_VERSION_UNSUPPORTED";
|
|
3207
|
+
PROTOCOL_ERROR: "PROTOCOL_ERROR";
|
|
3208
|
+
UNKNOWN_OPERATION: "UNKNOWN_OPERATION";
|
|
3209
|
+
DEVICE_OFFLINE: "DEVICE_OFFLINE";
|
|
3210
|
+
PAYLOAD_TOO_LARGE: "PAYLOAD_TOO_LARGE";
|
|
3211
|
+
}>;
|
|
3212
|
+
message: z.ZodString;
|
|
3213
|
+
retryable: z.ZodBoolean;
|
|
3214
|
+
data: z.ZodOptional<z.ZodObject<{
|
|
3215
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
3216
|
+
not_a_directory: "not_a_directory";
|
|
3217
|
+
is_a_directory: "is_a_directory";
|
|
3218
|
+
directory_not_empty: "directory_not_empty";
|
|
3219
|
+
already_exists: "already_exists";
|
|
3220
|
+
stale_write: "stale_write";
|
|
3221
|
+
binary_content: "binary_content";
|
|
3222
|
+
not_utf8_boundary: "not_utf8_boundary";
|
|
3223
|
+
patch_no_match: "patch_no_match";
|
|
3224
|
+
patch_ambiguous: "patch_ambiguous";
|
|
3225
|
+
resource_exited: "resource_exited";
|
|
3226
|
+
resource_expired: "resource_expired";
|
|
3227
|
+
control_taken: "control_taken";
|
|
3228
|
+
window_exhausted: "window_exhausted";
|
|
3229
|
+
runtime_not_installed: "runtime_not_installed";
|
|
3230
|
+
model_not_installed: "model_not_installed";
|
|
3231
|
+
unsupported_media: "unsupported_media";
|
|
3232
|
+
download_failed: "download_failed";
|
|
3233
|
+
service_starting: "service_starting";
|
|
3234
|
+
service_restarted: "service_restarted";
|
|
3235
|
+
service_failed: "service_failed";
|
|
3236
|
+
}>>;
|
|
3237
|
+
cap: z.ZodOptional<z.ZodString>;
|
|
3238
|
+
op: z.ZodOptional<z.ZodString>;
|
|
3239
|
+
path: z.ZodOptional<z.ZodString>;
|
|
3240
|
+
settings_url: z.ZodOptional<z.ZodString>;
|
|
3241
|
+
retry_after_ms: z.ZodOptional<z.ZodInt>;
|
|
3242
|
+
limit_bytes: z.ZodOptional<z.ZodInt>;
|
|
3243
|
+
edits_failed: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3244
|
+
edit_index: z.ZodInt;
|
|
3245
|
+
reason: z.ZodString;
|
|
3246
|
+
}, z.core.$strict>>>;
|
|
3247
|
+
upgrade: z.ZodOptional<z.ZodObject<{
|
|
3248
|
+
min_version: z.ZodString;
|
|
3249
|
+
max_version: z.ZodString;
|
|
3250
|
+
download_url: z.ZodOptional<z.ZodURL>;
|
|
3251
|
+
}, z.core.$strict>>;
|
|
3252
|
+
}, z.core.$strict>>;
|
|
3253
|
+
}, z.core.$strict>;
|
|
3254
|
+
}, z.core.$strict>;
|
|
3255
|
+
readonly ServiceProgressMsg: z.ZodObject<{
|
|
3256
|
+
type: z.ZodLiteral<"progress">;
|
|
3257
|
+
id: z.ZodInt;
|
|
3258
|
+
progress: z.ZodUnknown;
|
|
3259
|
+
}, z.core.$strict>;
|
|
3260
|
+
readonly ServiceCancel: z.ZodObject<{
|
|
3261
|
+
type: z.ZodLiteral<"cancel">;
|
|
3262
|
+
id: z.ZodInt;
|
|
3263
|
+
}, z.core.$strict>;
|
|
3264
|
+
readonly ServicePing: z.ZodObject<{
|
|
3265
|
+
type: z.ZodLiteral<"ping">;
|
|
3266
|
+
id: z.ZodInt;
|
|
3267
|
+
}, z.core.$strict>;
|
|
3268
|
+
readonly ServicePong: z.ZodObject<{
|
|
3269
|
+
type: z.ZodLiteral<"pong">;
|
|
3270
|
+
id: z.ZodInt;
|
|
3271
|
+
busy: z.ZodInt;
|
|
3272
|
+
}, z.core.$strict>;
|
|
3273
|
+
readonly ServiceShutdown: z.ZodObject<{
|
|
3274
|
+
type: z.ZodLiteral<"shutdown">;
|
|
3275
|
+
}, z.core.$strict>;
|
|
3276
|
+
readonly CoreToServiceMsg: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3277
|
+
type: z.ZodLiteral<"hello">;
|
|
3278
|
+
token: z.ZodString;
|
|
3279
|
+
contract: z.ZodString;
|
|
3280
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3281
|
+
type: z.ZodLiteral<"request">;
|
|
3282
|
+
id: z.ZodInt;
|
|
3283
|
+
op: z.ZodString;
|
|
3284
|
+
params: z.ZodUnknown;
|
|
3285
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3286
|
+
type: z.ZodLiteral<"cancel">;
|
|
3287
|
+
id: z.ZodInt;
|
|
3288
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3289
|
+
type: z.ZodLiteral<"ping">;
|
|
3290
|
+
id: z.ZodInt;
|
|
3291
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3292
|
+
type: z.ZodLiteral<"shutdown">;
|
|
3293
|
+
}, z.core.$strict>], "type">;
|
|
3294
|
+
readonly ServiceToCoreMsg: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3295
|
+
type: z.ZodLiteral<"welcome">;
|
|
3296
|
+
service: z.ZodEnum<{
|
|
3297
|
+
ml: "ml";
|
|
3298
|
+
}>;
|
|
3299
|
+
contract: z.ZodString;
|
|
3300
|
+
pid: z.ZodInt;
|
|
3301
|
+
python: z.ZodString;
|
|
3302
|
+
ops: z.ZodArray<z.ZodString>;
|
|
3303
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3304
|
+
type: z.ZodLiteral<"response">;
|
|
3305
|
+
id: z.ZodInt;
|
|
3306
|
+
result: z.ZodUnknown;
|
|
3307
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3308
|
+
type: z.ZodLiteral<"error">;
|
|
3309
|
+
id: z.ZodInt;
|
|
3310
|
+
error: z.ZodObject<{
|
|
3311
|
+
code: z.ZodEnum<{
|
|
3312
|
+
AUTH_REQUIRED: "AUTH_REQUIRED";
|
|
3313
|
+
AUTH_INVALID: "AUTH_INVALID";
|
|
3314
|
+
AUTH_EXPIRED: "AUTH_EXPIRED";
|
|
3315
|
+
AUTH_FORBIDDEN: "AUTH_FORBIDDEN";
|
|
3316
|
+
AUTH_DEVICE_REVOKED: "AUTH_DEVICE_REVOKED";
|
|
3317
|
+
PERMISSION_DENIED_OS: "PERMISSION_DENIED_OS";
|
|
3318
|
+
NOT_FOUND: "NOT_FOUND";
|
|
3319
|
+
CONFLICT: "CONFLICT";
|
|
3320
|
+
INVALID_PARAMS: "INVALID_PARAMS";
|
|
3321
|
+
RESOURCE_BUSY: "RESOURCE_BUSY";
|
|
3322
|
+
RESOURCE_GONE: "RESOURCE_GONE";
|
|
3323
|
+
CANCELLED: "CANCELLED";
|
|
3324
|
+
TIMEOUT: "TIMEOUT";
|
|
3325
|
+
PLATFORM_UNSUPPORTED: "PLATFORM_UNSUPPORTED";
|
|
3326
|
+
RATE_LIMITED: "RATE_LIMITED";
|
|
3327
|
+
INTERNAL: "INTERNAL";
|
|
3328
|
+
PROTOCOL_VERSION_UNSUPPORTED: "PROTOCOL_VERSION_UNSUPPORTED";
|
|
3329
|
+
PROTOCOL_ERROR: "PROTOCOL_ERROR";
|
|
3330
|
+
UNKNOWN_OPERATION: "UNKNOWN_OPERATION";
|
|
3331
|
+
DEVICE_OFFLINE: "DEVICE_OFFLINE";
|
|
3332
|
+
PAYLOAD_TOO_LARGE: "PAYLOAD_TOO_LARGE";
|
|
3333
|
+
}>;
|
|
3334
|
+
message: z.ZodString;
|
|
3335
|
+
retryable: z.ZodBoolean;
|
|
3336
|
+
data: z.ZodOptional<z.ZodObject<{
|
|
3337
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
3338
|
+
not_a_directory: "not_a_directory";
|
|
3339
|
+
is_a_directory: "is_a_directory";
|
|
3340
|
+
directory_not_empty: "directory_not_empty";
|
|
3341
|
+
already_exists: "already_exists";
|
|
3342
|
+
stale_write: "stale_write";
|
|
3343
|
+
binary_content: "binary_content";
|
|
3344
|
+
not_utf8_boundary: "not_utf8_boundary";
|
|
3345
|
+
patch_no_match: "patch_no_match";
|
|
3346
|
+
patch_ambiguous: "patch_ambiguous";
|
|
3347
|
+
resource_exited: "resource_exited";
|
|
3348
|
+
resource_expired: "resource_expired";
|
|
3349
|
+
control_taken: "control_taken";
|
|
3350
|
+
window_exhausted: "window_exhausted";
|
|
3351
|
+
runtime_not_installed: "runtime_not_installed";
|
|
3352
|
+
model_not_installed: "model_not_installed";
|
|
3353
|
+
unsupported_media: "unsupported_media";
|
|
3354
|
+
download_failed: "download_failed";
|
|
3355
|
+
service_starting: "service_starting";
|
|
3356
|
+
service_restarted: "service_restarted";
|
|
3357
|
+
service_failed: "service_failed";
|
|
3358
|
+
}>>;
|
|
3359
|
+
cap: z.ZodOptional<z.ZodString>;
|
|
3360
|
+
op: z.ZodOptional<z.ZodString>;
|
|
3361
|
+
path: z.ZodOptional<z.ZodString>;
|
|
3362
|
+
settings_url: z.ZodOptional<z.ZodString>;
|
|
3363
|
+
retry_after_ms: z.ZodOptional<z.ZodInt>;
|
|
3364
|
+
limit_bytes: z.ZodOptional<z.ZodInt>;
|
|
3365
|
+
edits_failed: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3366
|
+
edit_index: z.ZodInt;
|
|
3367
|
+
reason: z.ZodString;
|
|
3368
|
+
}, z.core.$strict>>>;
|
|
3369
|
+
upgrade: z.ZodOptional<z.ZodObject<{
|
|
3370
|
+
min_version: z.ZodString;
|
|
3371
|
+
max_version: z.ZodString;
|
|
3372
|
+
download_url: z.ZodOptional<z.ZodURL>;
|
|
3373
|
+
}, z.core.$strict>>;
|
|
3374
|
+
}, z.core.$strict>>;
|
|
3375
|
+
}, z.core.$strict>;
|
|
3376
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3377
|
+
type: z.ZodLiteral<"progress">;
|
|
3378
|
+
id: z.ZodInt;
|
|
3379
|
+
progress: z.ZodUnknown;
|
|
3380
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3381
|
+
type: z.ZodLiteral<"pong">;
|
|
3382
|
+
id: z.ZodInt;
|
|
3383
|
+
busy: z.ZodInt;
|
|
3384
|
+
}, z.core.$strict>], "type">;
|
|
2332
3385
|
readonly RelayDeviceStatusEvent: z.ZodObject<{
|
|
2333
3386
|
online: z.ZodBoolean;
|
|
2334
3387
|
since_ms: z.ZodNullable<z.ZodInt>;
|
|
@@ -2391,6 +3444,13 @@ declare const NAMED_SCHEMAS: {
|
|
|
2391
3444
|
resource_expired: "resource_expired";
|
|
2392
3445
|
control_taken: "control_taken";
|
|
2393
3446
|
window_exhausted: "window_exhausted";
|
|
3447
|
+
runtime_not_installed: "runtime_not_installed";
|
|
3448
|
+
model_not_installed: "model_not_installed";
|
|
3449
|
+
unsupported_media: "unsupported_media";
|
|
3450
|
+
download_failed: "download_failed";
|
|
3451
|
+
service_starting: "service_starting";
|
|
3452
|
+
service_restarted: "service_restarted";
|
|
3453
|
+
service_failed: "service_failed";
|
|
2394
3454
|
}>>;
|
|
2395
3455
|
cap: z.ZodOptional<z.ZodString>;
|
|
2396
3456
|
op: z.ZodOptional<z.ZodString>;
|
|
@@ -2442,7 +3502,258 @@ declare const NAMED_SCHEMAS: {
|
|
|
2442
3502
|
seq: z.ZodLiteral<0>;
|
|
2443
3503
|
}, z.core.$strict>;
|
|
2444
3504
|
readonly CloseCodeValue: z.ZodLiteral<1000 | 1001 | 1006 | 1012 | 1013 | 4001 | 4003 | 4004 | 4008 | 4009 | 4010 | 4400 | 4426>;
|
|
3505
|
+
readonly ToolLevel: z.ZodEnum<{
|
|
3506
|
+
programmatic: "programmatic";
|
|
3507
|
+
protocol: "protocol";
|
|
3508
|
+
chat: "chat";
|
|
3509
|
+
}>;
|
|
3510
|
+
readonly ToolOutcome: z.ZodEnum<{
|
|
3511
|
+
pass: "pass";
|
|
3512
|
+
fail: "fail";
|
|
3513
|
+
skip: "skip";
|
|
3514
|
+
}>;
|
|
3515
|
+
readonly ToolPlatform: z.ZodEnum<{
|
|
3516
|
+
darwin: "darwin";
|
|
3517
|
+
win32: "win32";
|
|
3518
|
+
linux: "linux";
|
|
3519
|
+
}>;
|
|
3520
|
+
readonly ToolTransport: z.ZodEnum<{
|
|
3521
|
+
relay: "relay";
|
|
3522
|
+
in_process: "in_process";
|
|
3523
|
+
localhost: "localhost";
|
|
3524
|
+
agent: "agent";
|
|
3525
|
+
}>;
|
|
3526
|
+
readonly ToolName: z.ZodString;
|
|
3527
|
+
readonly ToolLevelResult: z.ZodObject<{
|
|
3528
|
+
tool: z.ZodString;
|
|
3529
|
+
level: z.ZodEnum<{
|
|
3530
|
+
programmatic: "programmatic";
|
|
3531
|
+
protocol: "protocol";
|
|
3532
|
+
chat: "chat";
|
|
3533
|
+
}>;
|
|
3534
|
+
platform: z.ZodEnum<{
|
|
3535
|
+
darwin: "darwin";
|
|
3536
|
+
win32: "win32";
|
|
3537
|
+
linux: "linux";
|
|
3538
|
+
}>;
|
|
3539
|
+
transport: z.ZodEnum<{
|
|
3540
|
+
relay: "relay";
|
|
3541
|
+
in_process: "in_process";
|
|
3542
|
+
localhost: "localhost";
|
|
3543
|
+
agent: "agent";
|
|
3544
|
+
}>;
|
|
3545
|
+
outcome: z.ZodEnum<{
|
|
3546
|
+
pass: "pass";
|
|
3547
|
+
fail: "fail";
|
|
3548
|
+
skip: "skip";
|
|
3549
|
+
}>;
|
|
3550
|
+
remote_network: z.ZodBoolean;
|
|
3551
|
+
detail: z.ZodString;
|
|
3552
|
+
suite: z.ZodString;
|
|
3553
|
+
test: z.ZodString;
|
|
3554
|
+
run_at_ms: z.ZodInt;
|
|
3555
|
+
}, z.core.$strict>;
|
|
3556
|
+
readonly ToolResultsFile: z.ZodObject<{
|
|
3557
|
+
schema: z.ZodLiteral<"matrx.tool-results.v1">;
|
|
3558
|
+
commit: z.ZodString;
|
|
3559
|
+
results: z.ZodArray<z.ZodObject<{
|
|
3560
|
+
tool: z.ZodString;
|
|
3561
|
+
level: z.ZodEnum<{
|
|
3562
|
+
programmatic: "programmatic";
|
|
3563
|
+
protocol: "protocol";
|
|
3564
|
+
chat: "chat";
|
|
3565
|
+
}>;
|
|
3566
|
+
platform: z.ZodEnum<{
|
|
3567
|
+
darwin: "darwin";
|
|
3568
|
+
win32: "win32";
|
|
3569
|
+
linux: "linux";
|
|
3570
|
+
}>;
|
|
3571
|
+
transport: z.ZodEnum<{
|
|
3572
|
+
relay: "relay";
|
|
3573
|
+
in_process: "in_process";
|
|
3574
|
+
localhost: "localhost";
|
|
3575
|
+
agent: "agent";
|
|
3576
|
+
}>;
|
|
3577
|
+
outcome: z.ZodEnum<{
|
|
3578
|
+
pass: "pass";
|
|
3579
|
+
fail: "fail";
|
|
3580
|
+
skip: "skip";
|
|
3581
|
+
}>;
|
|
3582
|
+
remote_network: z.ZodBoolean;
|
|
3583
|
+
detail: z.ZodString;
|
|
3584
|
+
suite: z.ZodString;
|
|
3585
|
+
test: z.ZodString;
|
|
3586
|
+
run_at_ms: z.ZodInt;
|
|
3587
|
+
}, z.core.$strict>>;
|
|
3588
|
+
}, z.core.$strict>;
|
|
3589
|
+
readonly AppKey: z.ZodString;
|
|
3590
|
+
readonly AppProfileId: z.ZodString;
|
|
3591
|
+
readonly AppProfileLocator: z.ZodString;
|
|
3592
|
+
readonly AppSupport: z.ZodEnum<{
|
|
3593
|
+
supported: "supported";
|
|
3594
|
+
partial: "partial";
|
|
3595
|
+
unsupported: "unsupported";
|
|
3596
|
+
}>;
|
|
3597
|
+
readonly AppFeatureStatus: z.ZodObject<{
|
|
3598
|
+
status: z.ZodEnum<{
|
|
3599
|
+
supported: "supported";
|
|
3600
|
+
partial: "partial";
|
|
3601
|
+
unsupported: "unsupported";
|
|
3602
|
+
}>;
|
|
3603
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
3604
|
+
}, z.core.$strict>;
|
|
3605
|
+
readonly AppInfo: z.ZodObject<{
|
|
3606
|
+
app_key: z.ZodString;
|
|
3607
|
+
name: z.ZodString;
|
|
3608
|
+
installed: z.ZodBoolean;
|
|
3609
|
+
version: z.ZodNullable<z.ZodString>;
|
|
3610
|
+
location: z.ZodNullable<z.ZodString>;
|
|
3611
|
+
open: z.ZodObject<{
|
|
3612
|
+
status: z.ZodEnum<{
|
|
3613
|
+
supported: "supported";
|
|
3614
|
+
partial: "partial";
|
|
3615
|
+
unsupported: "unsupported";
|
|
3616
|
+
}>;
|
|
3617
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
3618
|
+
}, z.core.$strict>;
|
|
3619
|
+
profiles: z.ZodObject<{
|
|
3620
|
+
status: z.ZodEnum<{
|
|
3621
|
+
supported: "supported";
|
|
3622
|
+
partial: "partial";
|
|
3623
|
+
unsupported: "unsupported";
|
|
3624
|
+
}>;
|
|
3625
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
3626
|
+
}, z.core.$strict>;
|
|
3627
|
+
usage: z.ZodObject<{
|
|
3628
|
+
status: z.ZodEnum<{
|
|
3629
|
+
supported: "supported";
|
|
3630
|
+
partial: "partial";
|
|
3631
|
+
unsupported: "unsupported";
|
|
3632
|
+
}>;
|
|
3633
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
3634
|
+
}, z.core.$strict>;
|
|
3635
|
+
}, z.core.$strict>;
|
|
3636
|
+
readonly AppUsageReading: z.ZodObject<{
|
|
3637
|
+
window: z.ZodEnum<{
|
|
3638
|
+
five_hour: "five_hour";
|
|
3639
|
+
weekly: "weekly";
|
|
3640
|
+
extra: "extra";
|
|
3641
|
+
}>;
|
|
3642
|
+
percent: z.ZodNumber;
|
|
3643
|
+
sampled_at_ms: z.ZodInt;
|
|
3644
|
+
reset_since: z.ZodBoolean;
|
|
3645
|
+
}, z.core.$strict>;
|
|
3646
|
+
readonly AppProfile: z.ZodObject<{
|
|
3647
|
+
id: z.ZodNullable<z.ZodString>;
|
|
3648
|
+
app_key: z.ZodString;
|
|
3649
|
+
display_name: z.ZodString;
|
|
3650
|
+
account_identity: z.ZodNullable<z.ZodString>;
|
|
3651
|
+
profile_locator: z.ZodNullable<z.ZodString>;
|
|
3652
|
+
device_id: z.ZodNullable<z.ZodString>;
|
|
3653
|
+
folder: z.ZodNullable<z.ZodString>;
|
|
3654
|
+
on_disk: z.ZodBoolean;
|
|
3655
|
+
running: z.ZodNullable<z.ZodBoolean>;
|
|
3656
|
+
usage: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
3657
|
+
window: z.ZodEnum<{
|
|
3658
|
+
five_hour: "five_hour";
|
|
3659
|
+
weekly: "weekly";
|
|
3660
|
+
extra: "extra";
|
|
3661
|
+
}>;
|
|
3662
|
+
percent: z.ZodNumber;
|
|
3663
|
+
sampled_at_ms: z.ZodInt;
|
|
3664
|
+
reset_since: z.ZodBoolean;
|
|
3665
|
+
}, z.core.$strict>>>;
|
|
3666
|
+
last_opened_ms: z.ZodNullable<z.ZodInt>;
|
|
3667
|
+
}, z.core.$strict>;
|
|
3668
|
+
readonly AppsListParams: z.ZodObject<{}, z.core.$strict>;
|
|
3669
|
+
readonly AppsListResult: z.ZodObject<{
|
|
3670
|
+
apps: z.ZodArray<z.ZodObject<{
|
|
3671
|
+
app_key: z.ZodString;
|
|
3672
|
+
name: z.ZodString;
|
|
3673
|
+
installed: z.ZodBoolean;
|
|
3674
|
+
version: z.ZodNullable<z.ZodString>;
|
|
3675
|
+
location: z.ZodNullable<z.ZodString>;
|
|
3676
|
+
open: z.ZodObject<{
|
|
3677
|
+
status: z.ZodEnum<{
|
|
3678
|
+
supported: "supported";
|
|
3679
|
+
partial: "partial";
|
|
3680
|
+
unsupported: "unsupported";
|
|
3681
|
+
}>;
|
|
3682
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
3683
|
+
}, z.core.$strict>;
|
|
3684
|
+
profiles: z.ZodObject<{
|
|
3685
|
+
status: z.ZodEnum<{
|
|
3686
|
+
supported: "supported";
|
|
3687
|
+
partial: "partial";
|
|
3688
|
+
unsupported: "unsupported";
|
|
3689
|
+
}>;
|
|
3690
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
3691
|
+
}, z.core.$strict>;
|
|
3692
|
+
usage: z.ZodObject<{
|
|
3693
|
+
status: z.ZodEnum<{
|
|
3694
|
+
supported: "supported";
|
|
3695
|
+
partial: "partial";
|
|
3696
|
+
unsupported: "unsupported";
|
|
3697
|
+
}>;
|
|
3698
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
3699
|
+
}, z.core.$strict>;
|
|
3700
|
+
}, z.core.$strict>>;
|
|
3701
|
+
}, z.core.$strict>;
|
|
3702
|
+
readonly AppsProfilesListParams: z.ZodObject<{
|
|
3703
|
+
app_key: z.ZodOptional<z.ZodString>;
|
|
3704
|
+
}, z.core.$strict>;
|
|
3705
|
+
readonly AppsProfilesListResult: z.ZodObject<{
|
|
3706
|
+
profiles: z.ZodArray<z.ZodObject<{
|
|
3707
|
+
id: z.ZodNullable<z.ZodString>;
|
|
3708
|
+
app_key: z.ZodString;
|
|
3709
|
+
display_name: z.ZodString;
|
|
3710
|
+
account_identity: z.ZodNullable<z.ZodString>;
|
|
3711
|
+
profile_locator: z.ZodNullable<z.ZodString>;
|
|
3712
|
+
device_id: z.ZodNullable<z.ZodString>;
|
|
3713
|
+
folder: z.ZodNullable<z.ZodString>;
|
|
3714
|
+
on_disk: z.ZodBoolean;
|
|
3715
|
+
running: z.ZodNullable<z.ZodBoolean>;
|
|
3716
|
+
usage: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
3717
|
+
window: z.ZodEnum<{
|
|
3718
|
+
five_hour: "five_hour";
|
|
3719
|
+
weekly: "weekly";
|
|
3720
|
+
extra: "extra";
|
|
3721
|
+
}>;
|
|
3722
|
+
percent: z.ZodNumber;
|
|
3723
|
+
sampled_at_ms: z.ZodInt;
|
|
3724
|
+
reset_since: z.ZodBoolean;
|
|
3725
|
+
}, z.core.$strict>>>;
|
|
3726
|
+
last_opened_ms: z.ZodNullable<z.ZodInt>;
|
|
3727
|
+
}, z.core.$strict>>;
|
|
3728
|
+
registry: z.ZodEnum<{
|
|
3729
|
+
ok: "ok";
|
|
3730
|
+
signed_out: "signed_out";
|
|
3731
|
+
unavailable: "unavailable";
|
|
3732
|
+
}>;
|
|
3733
|
+
}, z.core.$strict>;
|
|
3734
|
+
readonly AppsProfilesSaveParams: z.ZodObject<{
|
|
3735
|
+
id: z.ZodOptional<z.ZodString>;
|
|
3736
|
+
app_key: z.ZodString;
|
|
3737
|
+
display_name: z.ZodString;
|
|
3738
|
+
account_identity: z.ZodNullable<z.ZodString>;
|
|
3739
|
+
profile_locator: z.ZodNullable<z.ZodString>;
|
|
3740
|
+
new_folder: z.ZodDefault<z.ZodBoolean>;
|
|
3741
|
+
}, z.core.$strict>;
|
|
3742
|
+
readonly AppsProfilesRemoveParams: z.ZodObject<{
|
|
3743
|
+
id: z.ZodString;
|
|
3744
|
+
}, z.core.$strict>;
|
|
3745
|
+
readonly AppsProfilesRemoveResult: z.ZodObject<{
|
|
3746
|
+
removed: z.ZodBoolean;
|
|
3747
|
+
}, z.core.$strict>;
|
|
3748
|
+
readonly AppsOpenParams: z.ZodObject<{
|
|
3749
|
+
app_key: z.ZodString;
|
|
3750
|
+
profile_id: z.ZodOptional<z.ZodString>;
|
|
3751
|
+
}, z.core.$strict>;
|
|
3752
|
+
readonly AppsOpenResult: z.ZodObject<{
|
|
3753
|
+
already_running: z.ZodBoolean;
|
|
3754
|
+
folder: z.ZodNullable<z.ZodString>;
|
|
3755
|
+
}, z.core.$strict>;
|
|
2445
3756
|
};
|
|
2446
3757
|
type NamedSchemaId = keyof typeof NAMED_SCHEMAS;
|
|
2447
3758
|
|
|
2448
|
-
export {
|
|
3759
|
+
export { type OpSpec as A, BEARER_PREFIX as B, type CloseOutcome as C, DesktopProtocolError as D, EndReason as E, FsPatchEditFailure as F, PONG_TEXT as G, HelloMsg as H, ProtocolErrorBody as I, RequestMsg as J, ResponseMsg as K, Limits as L, SERVICES as M, NAMED_SCHEMAS as N, type OpName as O, PING_TEXT as P, SUBPROTOCOL as Q, RelayMsg as R, StreamMeta as S, type ServiceId as T, type ServiceOpName as U, type ServiceOpSpec as V, Welcome as W, type ServiceSpec as X, StreamMsg as Y, closeRule as Z, isTerminalClose as _, type OpParams as a, type OpResult as b, OPS as c, EVENTS as d, ClientType as e, CLOSE_RULES as f, CancelMsg as g, ClientToCoreMsg as h, isDesktopProtocolError as i, type CloseAction as j, CloseCode as k, CloseCodeValue as l, type CloseRule as m, CoreToClientMsg as n, CreditMsg as o, EndMsg as p, ErrorCode as q, type ErrorCodeName as r, type ErrorData as s, ErrorMsg as t, ErrorReason as u, type ErrorReasonName as v, EventMsg as w, type EventName as x, type NamedSchemaId as y, OpDescriptor as z };
|