@ai-matrx/desktop-protocol 0.16.0 → 0.17.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 +16 -0
- package/dist/client.cjs +145 -112
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +2 -2
- package/dist/client.d.ts +2 -2
- package/dist/client.js +145 -112
- package/dist/client.js.map +1 -1
- package/dist/index.cjs +112 -65
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +66 -12
- package/dist/index.d.ts +66 -12
- package/dist/index.js +112 -65
- package/dist/index.js.map +1 -1
- package/dist/{models-k4pDkXUe.d.cts → models-Dj_B9wHj.d.cts} +91 -9
- package/dist/{models-k4pDkXUe.d.ts → models-Dj_B9wHj.d.ts} +91 -9
- package/dist/react.d.cts +46 -0
- package/dist/react.d.ts +46 -0
- package/generated/desktop-protocol.schema.json +184 -3
- package/package.json +1 -1
|
@@ -681,7 +681,7 @@ type OpSpec = {
|
|
|
681
681
|
readonly params: z.ZodType;
|
|
682
682
|
readonly result: z.ZodType;
|
|
683
683
|
readonly kind: "unary" | "stream" | "resource";
|
|
684
|
-
readonly since: "1.0" | "1.2" | "1.3" | "1.4" | "1.5";
|
|
684
|
+
readonly since: "1.0" | "1.2" | "1.3" | "1.4" | "1.5" | "1.6";
|
|
685
685
|
readonly errors: readonly z.infer<typeof ErrorCode>[];
|
|
686
686
|
};
|
|
687
687
|
declare const OPS: {
|
|
@@ -2202,6 +2202,52 @@ declare const OPS: {
|
|
|
2202
2202
|
readonly since: "1.4";
|
|
2203
2203
|
readonly errors: readonly ["INTERNAL"];
|
|
2204
2204
|
};
|
|
2205
|
+
readonly "audio.devices": {
|
|
2206
|
+
readonly params: z.ZodObject<{}, z.core.$strict>;
|
|
2207
|
+
readonly result: z.ZodObject<{
|
|
2208
|
+
inputs: z.ZodArray<z.ZodObject<{
|
|
2209
|
+
id: z.ZodString;
|
|
2210
|
+
name: z.ZodString;
|
|
2211
|
+
default: z.ZodBoolean;
|
|
2212
|
+
}, z.core.$strict>>;
|
|
2213
|
+
outputs: z.ZodArray<z.ZodObject<{
|
|
2214
|
+
id: z.ZodString;
|
|
2215
|
+
name: z.ZodString;
|
|
2216
|
+
default: z.ZodBoolean;
|
|
2217
|
+
}, z.core.$strict>>;
|
|
2218
|
+
}, z.core.$strict>;
|
|
2219
|
+
readonly kind: "unary";
|
|
2220
|
+
readonly since: "1.6";
|
|
2221
|
+
readonly errors: readonly ["PLATFORM_UNSUPPORTED", "INTERNAL"];
|
|
2222
|
+
};
|
|
2223
|
+
readonly "audio.record": {
|
|
2224
|
+
readonly params: z.ZodObject<{
|
|
2225
|
+
seconds: z.ZodNumber;
|
|
2226
|
+
device_id: z.ZodOptional<z.ZodString>;
|
|
2227
|
+
path: z.ZodOptional<z.ZodString>;
|
|
2228
|
+
}, z.core.$strict>;
|
|
2229
|
+
readonly result: z.ZodObject<{
|
|
2230
|
+
path: z.ZodString;
|
|
2231
|
+
seconds: z.ZodNumber;
|
|
2232
|
+
bytes: z.ZodInt;
|
|
2233
|
+
peak: z.ZodNumber;
|
|
2234
|
+
}, z.core.$strict>;
|
|
2235
|
+
readonly kind: "unary";
|
|
2236
|
+
readonly since: "1.6";
|
|
2237
|
+
readonly errors: readonly ["NOT_FOUND", "PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "RESOURCE_BUSY", "INTERNAL"];
|
|
2238
|
+
};
|
|
2239
|
+
readonly "audio.play": {
|
|
2240
|
+
readonly params: z.ZodObject<{
|
|
2241
|
+
path: z.ZodString;
|
|
2242
|
+
}, z.core.$strict>;
|
|
2243
|
+
readonly result: z.ZodObject<{
|
|
2244
|
+
path: z.ZodString;
|
|
2245
|
+
seconds: z.ZodNumber;
|
|
2246
|
+
}, z.core.$strict>;
|
|
2247
|
+
readonly kind: "unary";
|
|
2248
|
+
readonly since: "1.6";
|
|
2249
|
+
readonly errors: readonly ["NOT_FOUND", "INVALID_PARAMS", "PLATFORM_UNSUPPORTED", "INTERNAL"];
|
|
2250
|
+
};
|
|
2205
2251
|
readonly "coding.history.import_missing": {
|
|
2206
2252
|
readonly params: z.ZodObject<{}, z.core.$strict>;
|
|
2207
2253
|
readonly result: z.ZodObject<{
|
|
@@ -2487,11 +2533,11 @@ declare const SERVICES: {
|
|
|
2487
2533
|
readonly ops: {
|
|
2488
2534
|
readonly "coding.plan_missing": {
|
|
2489
2535
|
readonly params: z.ZodObject<{
|
|
2490
|
-
credentials: z.ZodObject<{
|
|
2536
|
+
credentials: z.ZodNullable<z.ZodObject<{
|
|
2491
2537
|
access_token: z.ZodString;
|
|
2492
2538
|
user_id: z.ZodString;
|
|
2493
2539
|
server_url: z.ZodString;
|
|
2494
|
-
}, z.core.$strict
|
|
2540
|
+
}, z.core.$strict>>;
|
|
2495
2541
|
}, z.core.$strict>;
|
|
2496
2542
|
readonly result: z.ZodObject<{
|
|
2497
2543
|
plan_id: z.ZodNullable<z.ZodString>;
|
|
@@ -2525,11 +2571,11 @@ declare const SERVICES: {
|
|
|
2525
2571
|
readonly "coding.import_next": {
|
|
2526
2572
|
readonly params: z.ZodObject<{
|
|
2527
2573
|
plan_id: z.ZodString;
|
|
2528
|
-
credentials: z.ZodObject<{
|
|
2574
|
+
credentials: z.ZodNullable<z.ZodObject<{
|
|
2529
2575
|
access_token: z.ZodString;
|
|
2530
2576
|
user_id: z.ZodString;
|
|
2531
2577
|
server_url: z.ZodString;
|
|
2532
|
-
}, z.core.$strict
|
|
2578
|
+
}, z.core.$strict>>;
|
|
2533
2579
|
}, z.core.$strict>;
|
|
2534
2580
|
readonly result: z.ZodObject<{
|
|
2535
2581
|
plan_id: z.ZodNullable<z.ZodString>;
|
|
@@ -3984,19 +4030,19 @@ declare const NAMED_SCHEMAS: {
|
|
|
3984
4030
|
}, z.core.$strict>;
|
|
3985
4031
|
}, z.core.$strict>;
|
|
3986
4032
|
readonly CodingPlanMissingParams: z.ZodObject<{
|
|
3987
|
-
credentials: z.ZodObject<{
|
|
4033
|
+
credentials: z.ZodNullable<z.ZodObject<{
|
|
3988
4034
|
access_token: z.ZodString;
|
|
3989
4035
|
user_id: z.ZodString;
|
|
3990
4036
|
server_url: z.ZodString;
|
|
3991
|
-
}, z.core.$strict
|
|
4037
|
+
}, z.core.$strict>>;
|
|
3992
4038
|
}, z.core.$strict>;
|
|
3993
4039
|
readonly CodingImportNextParams: z.ZodObject<{
|
|
3994
4040
|
plan_id: z.ZodString;
|
|
3995
|
-
credentials: z.ZodObject<{
|
|
4041
|
+
credentials: z.ZodNullable<z.ZodObject<{
|
|
3996
4042
|
access_token: z.ZodString;
|
|
3997
4043
|
user_id: z.ZodString;
|
|
3998
4044
|
server_url: z.ZodString;
|
|
3999
|
-
}, z.core.$strict
|
|
4045
|
+
}, z.core.$strict>>;
|
|
4000
4046
|
}, z.core.$strict>;
|
|
4001
4047
|
readonly CodingServiceProgress: z.ZodObject<{
|
|
4002
4048
|
phase: z.ZodEnum<{
|
|
@@ -4948,6 +4994,42 @@ declare const NAMED_SCHEMAS: {
|
|
|
4948
4994
|
}, z.core.$strict>>;
|
|
4949
4995
|
uptime_seconds: z.ZodInt;
|
|
4950
4996
|
}, z.core.$strict>;
|
|
4997
|
+
readonly AudioDevice: z.ZodObject<{
|
|
4998
|
+
id: z.ZodString;
|
|
4999
|
+
name: z.ZodString;
|
|
5000
|
+
default: z.ZodBoolean;
|
|
5001
|
+
}, z.core.$strict>;
|
|
5002
|
+
readonly AudioDevicesParams: z.ZodObject<{}, z.core.$strict>;
|
|
5003
|
+
readonly AudioDevicesResult: z.ZodObject<{
|
|
5004
|
+
inputs: z.ZodArray<z.ZodObject<{
|
|
5005
|
+
id: z.ZodString;
|
|
5006
|
+
name: z.ZodString;
|
|
5007
|
+
default: z.ZodBoolean;
|
|
5008
|
+
}, z.core.$strict>>;
|
|
5009
|
+
outputs: z.ZodArray<z.ZodObject<{
|
|
5010
|
+
id: z.ZodString;
|
|
5011
|
+
name: z.ZodString;
|
|
5012
|
+
default: z.ZodBoolean;
|
|
5013
|
+
}, z.core.$strict>>;
|
|
5014
|
+
}, z.core.$strict>;
|
|
5015
|
+
readonly AudioRecordParams: z.ZodObject<{
|
|
5016
|
+
seconds: z.ZodNumber;
|
|
5017
|
+
device_id: z.ZodOptional<z.ZodString>;
|
|
5018
|
+
path: z.ZodOptional<z.ZodString>;
|
|
5019
|
+
}, z.core.$strict>;
|
|
5020
|
+
readonly AudioRecordResult: z.ZodObject<{
|
|
5021
|
+
path: z.ZodString;
|
|
5022
|
+
seconds: z.ZodNumber;
|
|
5023
|
+
bytes: z.ZodInt;
|
|
5024
|
+
peak: z.ZodNumber;
|
|
5025
|
+
}, z.core.$strict>;
|
|
5026
|
+
readonly AudioPlayParams: z.ZodObject<{
|
|
5027
|
+
path: z.ZodString;
|
|
5028
|
+
}, z.core.$strict>;
|
|
5029
|
+
readonly AudioPlayResult: z.ZodObject<{
|
|
5030
|
+
path: z.ZodString;
|
|
5031
|
+
seconds: z.ZodNumber;
|
|
5032
|
+
}, z.core.$strict>;
|
|
4951
5033
|
readonly FsWatchId: z.ZodString;
|
|
4952
5034
|
readonly FsWatchStartParams: z.ZodObject<{
|
|
4953
5035
|
path: z.ZodString;
|
|
@@ -681,7 +681,7 @@ type OpSpec = {
|
|
|
681
681
|
readonly params: z.ZodType;
|
|
682
682
|
readonly result: z.ZodType;
|
|
683
683
|
readonly kind: "unary" | "stream" | "resource";
|
|
684
|
-
readonly since: "1.0" | "1.2" | "1.3" | "1.4" | "1.5";
|
|
684
|
+
readonly since: "1.0" | "1.2" | "1.3" | "1.4" | "1.5" | "1.6";
|
|
685
685
|
readonly errors: readonly z.infer<typeof ErrorCode>[];
|
|
686
686
|
};
|
|
687
687
|
declare const OPS: {
|
|
@@ -2202,6 +2202,52 @@ declare const OPS: {
|
|
|
2202
2202
|
readonly since: "1.4";
|
|
2203
2203
|
readonly errors: readonly ["INTERNAL"];
|
|
2204
2204
|
};
|
|
2205
|
+
readonly "audio.devices": {
|
|
2206
|
+
readonly params: z.ZodObject<{}, z.core.$strict>;
|
|
2207
|
+
readonly result: z.ZodObject<{
|
|
2208
|
+
inputs: z.ZodArray<z.ZodObject<{
|
|
2209
|
+
id: z.ZodString;
|
|
2210
|
+
name: z.ZodString;
|
|
2211
|
+
default: z.ZodBoolean;
|
|
2212
|
+
}, z.core.$strict>>;
|
|
2213
|
+
outputs: z.ZodArray<z.ZodObject<{
|
|
2214
|
+
id: z.ZodString;
|
|
2215
|
+
name: z.ZodString;
|
|
2216
|
+
default: z.ZodBoolean;
|
|
2217
|
+
}, z.core.$strict>>;
|
|
2218
|
+
}, z.core.$strict>;
|
|
2219
|
+
readonly kind: "unary";
|
|
2220
|
+
readonly since: "1.6";
|
|
2221
|
+
readonly errors: readonly ["PLATFORM_UNSUPPORTED", "INTERNAL"];
|
|
2222
|
+
};
|
|
2223
|
+
readonly "audio.record": {
|
|
2224
|
+
readonly params: z.ZodObject<{
|
|
2225
|
+
seconds: z.ZodNumber;
|
|
2226
|
+
device_id: z.ZodOptional<z.ZodString>;
|
|
2227
|
+
path: z.ZodOptional<z.ZodString>;
|
|
2228
|
+
}, z.core.$strict>;
|
|
2229
|
+
readonly result: z.ZodObject<{
|
|
2230
|
+
path: z.ZodString;
|
|
2231
|
+
seconds: z.ZodNumber;
|
|
2232
|
+
bytes: z.ZodInt;
|
|
2233
|
+
peak: z.ZodNumber;
|
|
2234
|
+
}, z.core.$strict>;
|
|
2235
|
+
readonly kind: "unary";
|
|
2236
|
+
readonly since: "1.6";
|
|
2237
|
+
readonly errors: readonly ["NOT_FOUND", "PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "RESOURCE_BUSY", "INTERNAL"];
|
|
2238
|
+
};
|
|
2239
|
+
readonly "audio.play": {
|
|
2240
|
+
readonly params: z.ZodObject<{
|
|
2241
|
+
path: z.ZodString;
|
|
2242
|
+
}, z.core.$strict>;
|
|
2243
|
+
readonly result: z.ZodObject<{
|
|
2244
|
+
path: z.ZodString;
|
|
2245
|
+
seconds: z.ZodNumber;
|
|
2246
|
+
}, z.core.$strict>;
|
|
2247
|
+
readonly kind: "unary";
|
|
2248
|
+
readonly since: "1.6";
|
|
2249
|
+
readonly errors: readonly ["NOT_FOUND", "INVALID_PARAMS", "PLATFORM_UNSUPPORTED", "INTERNAL"];
|
|
2250
|
+
};
|
|
2205
2251
|
readonly "coding.history.import_missing": {
|
|
2206
2252
|
readonly params: z.ZodObject<{}, z.core.$strict>;
|
|
2207
2253
|
readonly result: z.ZodObject<{
|
|
@@ -2487,11 +2533,11 @@ declare const SERVICES: {
|
|
|
2487
2533
|
readonly ops: {
|
|
2488
2534
|
readonly "coding.plan_missing": {
|
|
2489
2535
|
readonly params: z.ZodObject<{
|
|
2490
|
-
credentials: z.ZodObject<{
|
|
2536
|
+
credentials: z.ZodNullable<z.ZodObject<{
|
|
2491
2537
|
access_token: z.ZodString;
|
|
2492
2538
|
user_id: z.ZodString;
|
|
2493
2539
|
server_url: z.ZodString;
|
|
2494
|
-
}, z.core.$strict
|
|
2540
|
+
}, z.core.$strict>>;
|
|
2495
2541
|
}, z.core.$strict>;
|
|
2496
2542
|
readonly result: z.ZodObject<{
|
|
2497
2543
|
plan_id: z.ZodNullable<z.ZodString>;
|
|
@@ -2525,11 +2571,11 @@ declare const SERVICES: {
|
|
|
2525
2571
|
readonly "coding.import_next": {
|
|
2526
2572
|
readonly params: z.ZodObject<{
|
|
2527
2573
|
plan_id: z.ZodString;
|
|
2528
|
-
credentials: z.ZodObject<{
|
|
2574
|
+
credentials: z.ZodNullable<z.ZodObject<{
|
|
2529
2575
|
access_token: z.ZodString;
|
|
2530
2576
|
user_id: z.ZodString;
|
|
2531
2577
|
server_url: z.ZodString;
|
|
2532
|
-
}, z.core.$strict
|
|
2578
|
+
}, z.core.$strict>>;
|
|
2533
2579
|
}, z.core.$strict>;
|
|
2534
2580
|
readonly result: z.ZodObject<{
|
|
2535
2581
|
plan_id: z.ZodNullable<z.ZodString>;
|
|
@@ -3984,19 +4030,19 @@ declare const NAMED_SCHEMAS: {
|
|
|
3984
4030
|
}, z.core.$strict>;
|
|
3985
4031
|
}, z.core.$strict>;
|
|
3986
4032
|
readonly CodingPlanMissingParams: z.ZodObject<{
|
|
3987
|
-
credentials: z.ZodObject<{
|
|
4033
|
+
credentials: z.ZodNullable<z.ZodObject<{
|
|
3988
4034
|
access_token: z.ZodString;
|
|
3989
4035
|
user_id: z.ZodString;
|
|
3990
4036
|
server_url: z.ZodString;
|
|
3991
|
-
}, z.core.$strict
|
|
4037
|
+
}, z.core.$strict>>;
|
|
3992
4038
|
}, z.core.$strict>;
|
|
3993
4039
|
readonly CodingImportNextParams: z.ZodObject<{
|
|
3994
4040
|
plan_id: z.ZodString;
|
|
3995
|
-
credentials: z.ZodObject<{
|
|
4041
|
+
credentials: z.ZodNullable<z.ZodObject<{
|
|
3996
4042
|
access_token: z.ZodString;
|
|
3997
4043
|
user_id: z.ZodString;
|
|
3998
4044
|
server_url: z.ZodString;
|
|
3999
|
-
}, z.core.$strict
|
|
4045
|
+
}, z.core.$strict>>;
|
|
4000
4046
|
}, z.core.$strict>;
|
|
4001
4047
|
readonly CodingServiceProgress: z.ZodObject<{
|
|
4002
4048
|
phase: z.ZodEnum<{
|
|
@@ -4948,6 +4994,42 @@ declare const NAMED_SCHEMAS: {
|
|
|
4948
4994
|
}, z.core.$strict>>;
|
|
4949
4995
|
uptime_seconds: z.ZodInt;
|
|
4950
4996
|
}, z.core.$strict>;
|
|
4997
|
+
readonly AudioDevice: z.ZodObject<{
|
|
4998
|
+
id: z.ZodString;
|
|
4999
|
+
name: z.ZodString;
|
|
5000
|
+
default: z.ZodBoolean;
|
|
5001
|
+
}, z.core.$strict>;
|
|
5002
|
+
readonly AudioDevicesParams: z.ZodObject<{}, z.core.$strict>;
|
|
5003
|
+
readonly AudioDevicesResult: z.ZodObject<{
|
|
5004
|
+
inputs: z.ZodArray<z.ZodObject<{
|
|
5005
|
+
id: z.ZodString;
|
|
5006
|
+
name: z.ZodString;
|
|
5007
|
+
default: z.ZodBoolean;
|
|
5008
|
+
}, z.core.$strict>>;
|
|
5009
|
+
outputs: z.ZodArray<z.ZodObject<{
|
|
5010
|
+
id: z.ZodString;
|
|
5011
|
+
name: z.ZodString;
|
|
5012
|
+
default: z.ZodBoolean;
|
|
5013
|
+
}, z.core.$strict>>;
|
|
5014
|
+
}, z.core.$strict>;
|
|
5015
|
+
readonly AudioRecordParams: z.ZodObject<{
|
|
5016
|
+
seconds: z.ZodNumber;
|
|
5017
|
+
device_id: z.ZodOptional<z.ZodString>;
|
|
5018
|
+
path: z.ZodOptional<z.ZodString>;
|
|
5019
|
+
}, z.core.$strict>;
|
|
5020
|
+
readonly AudioRecordResult: z.ZodObject<{
|
|
5021
|
+
path: z.ZodString;
|
|
5022
|
+
seconds: z.ZodNumber;
|
|
5023
|
+
bytes: z.ZodInt;
|
|
5024
|
+
peak: z.ZodNumber;
|
|
5025
|
+
}, z.core.$strict>;
|
|
5026
|
+
readonly AudioPlayParams: z.ZodObject<{
|
|
5027
|
+
path: z.ZodString;
|
|
5028
|
+
}, z.core.$strict>;
|
|
5029
|
+
readonly AudioPlayResult: z.ZodObject<{
|
|
5030
|
+
path: z.ZodString;
|
|
5031
|
+
seconds: z.ZodNumber;
|
|
5032
|
+
}, z.core.$strict>;
|
|
4951
5033
|
readonly FsWatchId: z.ZodString;
|
|
4952
5034
|
readonly FsWatchStartParams: z.ZodObject<{
|
|
4953
5035
|
path: z.ZodString;
|
package/dist/react.d.cts
CHANGED
|
@@ -1662,6 +1662,52 @@ declare const OPS: {
|
|
|
1662
1662
|
readonly since: "1.4";
|
|
1663
1663
|
readonly errors: readonly ["INTERNAL"];
|
|
1664
1664
|
};
|
|
1665
|
+
readonly "audio.devices": {
|
|
1666
|
+
readonly params: z.ZodObject<{}, z.core.$strict>;
|
|
1667
|
+
readonly result: z.ZodObject<{
|
|
1668
|
+
inputs: z.ZodArray<z.ZodObject<{
|
|
1669
|
+
id: z.ZodString;
|
|
1670
|
+
name: z.ZodString;
|
|
1671
|
+
default: z.ZodBoolean;
|
|
1672
|
+
}, z.core.$strict>>;
|
|
1673
|
+
outputs: z.ZodArray<z.ZodObject<{
|
|
1674
|
+
id: z.ZodString;
|
|
1675
|
+
name: z.ZodString;
|
|
1676
|
+
default: z.ZodBoolean;
|
|
1677
|
+
}, z.core.$strict>>;
|
|
1678
|
+
}, z.core.$strict>;
|
|
1679
|
+
readonly kind: "unary";
|
|
1680
|
+
readonly since: "1.6";
|
|
1681
|
+
readonly errors: readonly ["PLATFORM_UNSUPPORTED", "INTERNAL"];
|
|
1682
|
+
};
|
|
1683
|
+
readonly "audio.record": {
|
|
1684
|
+
readonly params: z.ZodObject<{
|
|
1685
|
+
seconds: z.ZodNumber;
|
|
1686
|
+
device_id: z.ZodOptional<z.ZodString>;
|
|
1687
|
+
path: z.ZodOptional<z.ZodString>;
|
|
1688
|
+
}, z.core.$strict>;
|
|
1689
|
+
readonly result: z.ZodObject<{
|
|
1690
|
+
path: z.ZodString;
|
|
1691
|
+
seconds: z.ZodNumber;
|
|
1692
|
+
bytes: z.ZodInt;
|
|
1693
|
+
peak: z.ZodNumber;
|
|
1694
|
+
}, z.core.$strict>;
|
|
1695
|
+
readonly kind: "unary";
|
|
1696
|
+
readonly since: "1.6";
|
|
1697
|
+
readonly errors: readonly ["NOT_FOUND", "PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "RESOURCE_BUSY", "INTERNAL"];
|
|
1698
|
+
};
|
|
1699
|
+
readonly "audio.play": {
|
|
1700
|
+
readonly params: z.ZodObject<{
|
|
1701
|
+
path: z.ZodString;
|
|
1702
|
+
}, z.core.$strict>;
|
|
1703
|
+
readonly result: z.ZodObject<{
|
|
1704
|
+
path: z.ZodString;
|
|
1705
|
+
seconds: z.ZodNumber;
|
|
1706
|
+
}, z.core.$strict>;
|
|
1707
|
+
readonly kind: "unary";
|
|
1708
|
+
readonly since: "1.6";
|
|
1709
|
+
readonly errors: readonly ["NOT_FOUND", "INVALID_PARAMS", "PLATFORM_UNSUPPORTED", "INTERNAL"];
|
|
1710
|
+
};
|
|
1665
1711
|
readonly "coding.history.import_missing": {
|
|
1666
1712
|
readonly params: z.ZodObject<{}, z.core.$strict>;
|
|
1667
1713
|
readonly result: z.ZodObject<{
|
package/dist/react.d.ts
CHANGED
|
@@ -1662,6 +1662,52 @@ declare const OPS: {
|
|
|
1662
1662
|
readonly since: "1.4";
|
|
1663
1663
|
readonly errors: readonly ["INTERNAL"];
|
|
1664
1664
|
};
|
|
1665
|
+
readonly "audio.devices": {
|
|
1666
|
+
readonly params: z.ZodObject<{}, z.core.$strict>;
|
|
1667
|
+
readonly result: z.ZodObject<{
|
|
1668
|
+
inputs: z.ZodArray<z.ZodObject<{
|
|
1669
|
+
id: z.ZodString;
|
|
1670
|
+
name: z.ZodString;
|
|
1671
|
+
default: z.ZodBoolean;
|
|
1672
|
+
}, z.core.$strict>>;
|
|
1673
|
+
outputs: z.ZodArray<z.ZodObject<{
|
|
1674
|
+
id: z.ZodString;
|
|
1675
|
+
name: z.ZodString;
|
|
1676
|
+
default: z.ZodBoolean;
|
|
1677
|
+
}, z.core.$strict>>;
|
|
1678
|
+
}, z.core.$strict>;
|
|
1679
|
+
readonly kind: "unary";
|
|
1680
|
+
readonly since: "1.6";
|
|
1681
|
+
readonly errors: readonly ["PLATFORM_UNSUPPORTED", "INTERNAL"];
|
|
1682
|
+
};
|
|
1683
|
+
readonly "audio.record": {
|
|
1684
|
+
readonly params: z.ZodObject<{
|
|
1685
|
+
seconds: z.ZodNumber;
|
|
1686
|
+
device_id: z.ZodOptional<z.ZodString>;
|
|
1687
|
+
path: z.ZodOptional<z.ZodString>;
|
|
1688
|
+
}, z.core.$strict>;
|
|
1689
|
+
readonly result: z.ZodObject<{
|
|
1690
|
+
path: z.ZodString;
|
|
1691
|
+
seconds: z.ZodNumber;
|
|
1692
|
+
bytes: z.ZodInt;
|
|
1693
|
+
peak: z.ZodNumber;
|
|
1694
|
+
}, z.core.$strict>;
|
|
1695
|
+
readonly kind: "unary";
|
|
1696
|
+
readonly since: "1.6";
|
|
1697
|
+
readonly errors: readonly ["NOT_FOUND", "PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "RESOURCE_BUSY", "INTERNAL"];
|
|
1698
|
+
};
|
|
1699
|
+
readonly "audio.play": {
|
|
1700
|
+
readonly params: z.ZodObject<{
|
|
1701
|
+
path: z.ZodString;
|
|
1702
|
+
}, z.core.$strict>;
|
|
1703
|
+
readonly result: z.ZodObject<{
|
|
1704
|
+
path: z.ZodString;
|
|
1705
|
+
seconds: z.ZodNumber;
|
|
1706
|
+
}, z.core.$strict>;
|
|
1707
|
+
readonly kind: "unary";
|
|
1708
|
+
readonly since: "1.6";
|
|
1709
|
+
readonly errors: readonly ["NOT_FOUND", "INVALID_PARAMS", "PLATFORM_UNSUPPORTED", "INTERNAL"];
|
|
1710
|
+
};
|
|
1665
1711
|
readonly "coding.history.import_missing": {
|
|
1666
1712
|
readonly params: z.ZodObject<{}, z.core.$strict>;
|
|
1667
1713
|
readonly result: z.ZodObject<{
|
|
@@ -3170,7 +3170,14 @@
|
|
|
3170
3170
|
"type": "object",
|
|
3171
3171
|
"properties": {
|
|
3172
3172
|
"credentials": {
|
|
3173
|
-
"
|
|
3173
|
+
"anyOf": [
|
|
3174
|
+
{
|
|
3175
|
+
"$ref": "#/$defs/CodingServiceCredentials"
|
|
3176
|
+
},
|
|
3177
|
+
{
|
|
3178
|
+
"type": "null"
|
|
3179
|
+
}
|
|
3180
|
+
]
|
|
3174
3181
|
}
|
|
3175
3182
|
},
|
|
3176
3183
|
"required": [
|
|
@@ -3186,7 +3193,14 @@
|
|
|
3186
3193
|
"pattern": "^[0-9a-f]{32}$"
|
|
3187
3194
|
},
|
|
3188
3195
|
"credentials": {
|
|
3189
|
-
"
|
|
3196
|
+
"anyOf": [
|
|
3197
|
+
{
|
|
3198
|
+
"$ref": "#/$defs/CodingServiceCredentials"
|
|
3199
|
+
},
|
|
3200
|
+
{
|
|
3201
|
+
"type": "null"
|
|
3202
|
+
}
|
|
3203
|
+
]
|
|
3190
3204
|
}
|
|
3191
3205
|
},
|
|
3192
3206
|
"required": [
|
|
@@ -5124,6 +5138,138 @@
|
|
|
5124
5138
|
],
|
|
5125
5139
|
"additionalProperties": false
|
|
5126
5140
|
},
|
|
5141
|
+
"AudioDevice": {
|
|
5142
|
+
"type": "object",
|
|
5143
|
+
"properties": {
|
|
5144
|
+
"id": {
|
|
5145
|
+
"type": "string",
|
|
5146
|
+
"minLength": 1,
|
|
5147
|
+
"maxLength": 256
|
|
5148
|
+
},
|
|
5149
|
+
"name": {
|
|
5150
|
+
"type": "string",
|
|
5151
|
+
"maxLength": 256
|
|
5152
|
+
},
|
|
5153
|
+
"default": {
|
|
5154
|
+
"type": "boolean"
|
|
5155
|
+
}
|
|
5156
|
+
},
|
|
5157
|
+
"required": [
|
|
5158
|
+
"id",
|
|
5159
|
+
"name",
|
|
5160
|
+
"default"
|
|
5161
|
+
],
|
|
5162
|
+
"additionalProperties": false
|
|
5163
|
+
},
|
|
5164
|
+
"AudioDevicesParams": {
|
|
5165
|
+
"type": "object",
|
|
5166
|
+
"properties": {},
|
|
5167
|
+
"additionalProperties": false
|
|
5168
|
+
},
|
|
5169
|
+
"AudioDevicesResult": {
|
|
5170
|
+
"type": "object",
|
|
5171
|
+
"properties": {
|
|
5172
|
+
"inputs": {
|
|
5173
|
+
"maxItems": 64,
|
|
5174
|
+
"type": "array",
|
|
5175
|
+
"items": {
|
|
5176
|
+
"$ref": "#/$defs/AudioDevice"
|
|
5177
|
+
}
|
|
5178
|
+
},
|
|
5179
|
+
"outputs": {
|
|
5180
|
+
"maxItems": 64,
|
|
5181
|
+
"type": "array",
|
|
5182
|
+
"items": {
|
|
5183
|
+
"$ref": "#/$defs/AudioDevice"
|
|
5184
|
+
}
|
|
5185
|
+
}
|
|
5186
|
+
},
|
|
5187
|
+
"required": [
|
|
5188
|
+
"inputs",
|
|
5189
|
+
"outputs"
|
|
5190
|
+
],
|
|
5191
|
+
"additionalProperties": false
|
|
5192
|
+
},
|
|
5193
|
+
"AudioRecordParams": {
|
|
5194
|
+
"type": "object",
|
|
5195
|
+
"properties": {
|
|
5196
|
+
"seconds": {
|
|
5197
|
+
"type": "number",
|
|
5198
|
+
"minimum": 0.5,
|
|
5199
|
+
"maximum": 600
|
|
5200
|
+
},
|
|
5201
|
+
"device_id": {
|
|
5202
|
+
"type": "string",
|
|
5203
|
+
"minLength": 1,
|
|
5204
|
+
"maxLength": 256
|
|
5205
|
+
},
|
|
5206
|
+
"path": {
|
|
5207
|
+
"$ref": "#/$defs/AbsPath"
|
|
5208
|
+
}
|
|
5209
|
+
},
|
|
5210
|
+
"required": [
|
|
5211
|
+
"seconds"
|
|
5212
|
+
],
|
|
5213
|
+
"additionalProperties": false
|
|
5214
|
+
},
|
|
5215
|
+
"AudioRecordResult": {
|
|
5216
|
+
"type": "object",
|
|
5217
|
+
"properties": {
|
|
5218
|
+
"path": {
|
|
5219
|
+
"$ref": "#/$defs/AbsPath"
|
|
5220
|
+
},
|
|
5221
|
+
"seconds": {
|
|
5222
|
+
"type": "number",
|
|
5223
|
+
"minimum": 0
|
|
5224
|
+
},
|
|
5225
|
+
"bytes": {
|
|
5226
|
+
"type": "integer",
|
|
5227
|
+
"minimum": 0,
|
|
5228
|
+
"maximum": 9007199254740991
|
|
5229
|
+
},
|
|
5230
|
+
"peak": {
|
|
5231
|
+
"type": "number",
|
|
5232
|
+
"minimum": 0,
|
|
5233
|
+
"maximum": 1
|
|
5234
|
+
}
|
|
5235
|
+
},
|
|
5236
|
+
"required": [
|
|
5237
|
+
"path",
|
|
5238
|
+
"seconds",
|
|
5239
|
+
"bytes",
|
|
5240
|
+
"peak"
|
|
5241
|
+
],
|
|
5242
|
+
"additionalProperties": false
|
|
5243
|
+
},
|
|
5244
|
+
"AudioPlayParams": {
|
|
5245
|
+
"type": "object",
|
|
5246
|
+
"properties": {
|
|
5247
|
+
"path": {
|
|
5248
|
+
"$ref": "#/$defs/AbsPath"
|
|
5249
|
+
}
|
|
5250
|
+
},
|
|
5251
|
+
"required": [
|
|
5252
|
+
"path"
|
|
5253
|
+
],
|
|
5254
|
+
"additionalProperties": false
|
|
5255
|
+
},
|
|
5256
|
+
"AudioPlayResult": {
|
|
5257
|
+
"type": "object",
|
|
5258
|
+
"properties": {
|
|
5259
|
+
"path": {
|
|
5260
|
+
"$ref": "#/$defs/AbsPath"
|
|
5261
|
+
},
|
|
5262
|
+
"seconds": {
|
|
5263
|
+
"type": "number",
|
|
5264
|
+
"minimum": 0
|
|
5265
|
+
}
|
|
5266
|
+
},
|
|
5267
|
+
"required": [
|
|
5268
|
+
"path",
|
|
5269
|
+
"seconds"
|
|
5270
|
+
],
|
|
5271
|
+
"additionalProperties": false
|
|
5272
|
+
},
|
|
5127
5273
|
"FsWatchId": {
|
|
5128
5274
|
"type": "string",
|
|
5129
5275
|
"pattern": "^fw_[A-Za-z0-9]{12,40}$"
|
|
@@ -6731,6 +6877,41 @@
|
|
|
6731
6877
|
"INTERNAL"
|
|
6732
6878
|
]
|
|
6733
6879
|
},
|
|
6880
|
+
"audio.devices": {
|
|
6881
|
+
"params": "AudioDevicesParams",
|
|
6882
|
+
"result": "AudioDevicesResult",
|
|
6883
|
+
"kind": "unary",
|
|
6884
|
+
"since": "1.6",
|
|
6885
|
+
"errors": [
|
|
6886
|
+
"PLATFORM_UNSUPPORTED",
|
|
6887
|
+
"INTERNAL"
|
|
6888
|
+
]
|
|
6889
|
+
},
|
|
6890
|
+
"audio.record": {
|
|
6891
|
+
"params": "AudioRecordParams",
|
|
6892
|
+
"result": "AudioRecordResult",
|
|
6893
|
+
"kind": "unary",
|
|
6894
|
+
"since": "1.6",
|
|
6895
|
+
"errors": [
|
|
6896
|
+
"NOT_FOUND",
|
|
6897
|
+
"PERMISSION_DENIED_OS",
|
|
6898
|
+
"PLATFORM_UNSUPPORTED",
|
|
6899
|
+
"RESOURCE_BUSY",
|
|
6900
|
+
"INTERNAL"
|
|
6901
|
+
]
|
|
6902
|
+
},
|
|
6903
|
+
"audio.play": {
|
|
6904
|
+
"params": "AudioPlayParams",
|
|
6905
|
+
"result": "AudioPlayResult",
|
|
6906
|
+
"kind": "unary",
|
|
6907
|
+
"since": "1.6",
|
|
6908
|
+
"errors": [
|
|
6909
|
+
"NOT_FOUND",
|
|
6910
|
+
"INVALID_PARAMS",
|
|
6911
|
+
"PLATFORM_UNSUPPORTED",
|
|
6912
|
+
"INTERNAL"
|
|
6913
|
+
]
|
|
6914
|
+
},
|
|
6734
6915
|
"coding.history.import_missing": {
|
|
6735
6916
|
"params": "CodingHistoryImportMissingParams",
|
|
6736
6917
|
"result": "CodingHistoryImportMissingResult",
|
|
@@ -6808,5 +6989,5 @@
|
|
|
6808
6989
|
"olderPeersGet": 0
|
|
6809
6990
|
}
|
|
6810
6991
|
},
|
|
6811
|
-
"x-protocol-version": "1.
|
|
6992
|
+
"x-protocol-version": "1.6"
|
|
6812
6993
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-matrx/desktop-protocol",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.0",
|
|
4
4
|
"description": "The one wire contract between Matrx 2 (the desktop app) and every client that drives it — phone, web app, extension, server: zod schemas for the envelope and every cap.op, the 16-byte binary frame codec, a reconnecting request/stream/credit/reattach client, React hooks, and a generated JSON Schema + Pydantic twin that CI keeps byte-identical.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|