@ai-matrx/desktop-protocol 0.21.98 → 0.21.100
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 +18 -2
- package/dist/{chunk-server-M4ZZLI5M.js → chunk-server-B3HIUKA6.js} +2 -2
- package/dist/{chunk-server-M4ZZLI5M.js.map → chunk-server-B3HIUKA6.js.map} +1 -1
- package/dist/{chunk-server-ATU4VUHA.js → chunk-server-DQ5N6P7Z.js} +2 -2
- package/dist/{chunk-server-4H74IJI4.js → chunk-server-M6HN3B5P.js} +3 -3
- package/dist/{chunk-server-I5MQ4EET.js → chunk-server-Y3VWEZ22.js} +29 -2
- package/dist/{chunk-server-I5MQ4EET.js.map → chunk-server-Y3VWEZ22.js.map} +1 -1
- package/dist/client.cjs +25 -2
- 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 +3 -3
- package/dist/index.cjs +30 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +314 -251
- package/dist/index.d.ts +314 -251
- package/dist/index.js +13 -5
- package/dist/index.js.map +1 -1
- package/dist/{models-DDuVPiOe.d.cts → models-LkQ2l9In.d.cts} +550 -464
- package/dist/{models-DDuVPiOe.d.ts → models-LkQ2l9In.d.ts} +550 -464
- package/dist/react.d.cts +31 -2
- package/dist/react.d.ts +31 -2
- package/fixtures/device-model-contract.json +4 -2
- package/generated/desktop-protocol.schema.json +105 -1
- package/package.json +2 -2
- /package/dist/{chunk-server-ATU4VUHA.js.map → chunk-server-DQ5N6P7Z.js.map} +0 -0
- /package/dist/{chunk-server-4H74IJI4.js.map → chunk-server-M6HN3B5P.js.map} +0 -0
package/dist/client.cjs
CHANGED
|
@@ -147,7 +147,7 @@ var init_primitives = __esm({
|
|
|
147
147
|
import_zod = require("zod");
|
|
148
148
|
import_uuid = require("@ai-matrx/kit/uuid");
|
|
149
149
|
PROTOCOL_MAJOR = 1;
|
|
150
|
-
PROTOCOL_MINOR =
|
|
150
|
+
PROTOCOL_MINOR = 93;
|
|
151
151
|
PROTOCOL_VERSION = `${PROTOCOL_MAJOR}.${PROTOCOL_MINOR}`;
|
|
152
152
|
ProtocolVersion = import_zod.z.string().regex(/^[1-9][0-9]{0,2}\.[0-9]{1,3}$/);
|
|
153
153
|
RequestId = import_zod.z.string().min(1).max(64).regex(/^[A-Za-z0-9_-]+$/);
|
|
@@ -5156,7 +5156,7 @@ var init_browser = __esm({
|
|
|
5156
5156
|
});
|
|
5157
5157
|
|
|
5158
5158
|
// src/schema/net.ts
|
|
5159
|
-
var import_zod40, NetInfoParams, NetAddress, NetInterface, NetInfoResult, NetWifiParams, NetWifiNetwork, NetWifiResult, NetBluetoothParams, NetBluetoothDevice, NetBluetoothResult, NetDevicesParams, NetDevice, NetDevicesResult, NetMdnsParams, NetMdnsService, NetMdnsResult, NetScanParams, NetScanResult, NetDownloadParams, NetDownloadResult;
|
|
5159
|
+
var import_zod40, NetInfoParams, NetAddress, NetInterface, NetInfoResult, NetWifiParams, NetWifiNetwork, NetWifiResult, NetBluetoothParams, NetBluetoothDevice, NetBluetoothResult, NetDevicesParams, NetDevice, NetDevicesResult, NetConnectedDevicesParams, NetConnectedCategory, NetConnectedDevice, NetConnectedDevicesResult, NetMdnsParams, NetMdnsService, NetMdnsResult, NetScanParams, NetScanResult, NetDownloadParams, NetDownloadResult;
|
|
5160
5160
|
var init_net = __esm({
|
|
5161
5161
|
"src/schema/net.ts"() {
|
|
5162
5162
|
"use strict";
|
|
@@ -5226,6 +5226,24 @@ var init_net = __esm({
|
|
|
5226
5226
|
hostname: import_zod40.z.string().nullable()
|
|
5227
5227
|
});
|
|
5228
5228
|
NetDevicesResult = import_zod40.z.strictObject({ devices: import_zod40.z.array(NetDevice) });
|
|
5229
|
+
NetConnectedDevicesParams = import_zod40.z.strictObject({});
|
|
5230
|
+
NetConnectedCategory = import_zod40.z.enum(["usb", "thunderbolt", "display", "printer", "input", "storage", "camera", "audio", "network", "other"]);
|
|
5231
|
+
NetConnectedDevice = import_zod40.z.strictObject({
|
|
5232
|
+
name: import_zod40.z.string(),
|
|
5233
|
+
category: NetConnectedCategory,
|
|
5234
|
+
/** Who makes it, where the OS says. */
|
|
5235
|
+
vendor: import_zod40.z.string().nullable(),
|
|
5236
|
+
/** A display's resolution ("3024 x 1964"); null elsewhere. */
|
|
5237
|
+
resolution: import_zod40.z.string().nullable(),
|
|
5238
|
+
/** How it is attached ("Thunderbolt / USB4", "Internal"); null where the OS does not say. */
|
|
5239
|
+
connection: import_zod40.z.string().nullable(),
|
|
5240
|
+
/** Link speed ("Up to 480 Mb/s"); null where the OS does not say. */
|
|
5241
|
+
speed: import_zod40.z.string().nullable(),
|
|
5242
|
+
/** A printer's state ("idle"); null elsewhere. */
|
|
5243
|
+
status: import_zod40.z.string().nullable(),
|
|
5244
|
+
serial: import_zod40.z.string().nullable()
|
|
5245
|
+
});
|
|
5246
|
+
NetConnectedDevicesResult = import_zod40.z.strictObject({ devices: import_zod40.z.array(NetConnectedDevice) });
|
|
5229
5247
|
NetMdnsParams = import_zod40.z.strictObject({
|
|
5230
5248
|
/** A service type ("_http._tcp"); absent lists the service types found. */
|
|
5231
5249
|
service_type: import_zod40.z.string().min(1).max(64).regex(/^_[A-Za-z0-9-]+\._(tcp|udp)$/).optional(),
|
|
@@ -6222,6 +6240,7 @@ var init_registry = __esm({
|
|
|
6222
6240
|
"net.info": { params: NetInfoParams, result: NetInfoResult, kind: "unary", since: "1.37", errors: ["PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
6223
6241
|
"net.wifi": { params: NetWifiParams, result: NetWifiResult, kind: "unary", since: "1.37", errors: ["PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "TIMEOUT", "INTERNAL"] },
|
|
6224
6242
|
"net.bluetooth": { params: NetBluetoothParams, result: NetBluetoothResult, kind: "unary", since: "1.37", errors: ["PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "TIMEOUT", "INTERNAL"] },
|
|
6243
|
+
"net.connected_devices": { params: NetConnectedDevicesParams, result: NetConnectedDevicesResult, kind: "unary", since: "1.93", errors: ["PLATFORM_UNSUPPORTED", "TIMEOUT", "INTERNAL"] },
|
|
6225
6244
|
"net.devices": { params: NetDevicesParams, result: NetDevicesResult, kind: "unary", since: "1.37", errors: ["PLATFORM_UNSUPPORTED", "TIMEOUT", "INTERNAL"] },
|
|
6226
6245
|
"net.mdns": { params: NetMdnsParams, result: NetMdnsResult, kind: "unary", since: "1.37", errors: ["PLATFORM_UNSUPPORTED", "TIMEOUT", "INTERNAL"] },
|
|
6227
6246
|
"net.scan": { params: NetScanParams, result: NetScanResult, kind: "unary", since: "1.37", errors: ["INVALID_PARAMS", "NOT_FOUND", "AUTH_FORBIDDEN", "TIMEOUT", "INTERNAL"] },
|
|
@@ -7178,6 +7197,10 @@ var init_registry = __esm({
|
|
|
7178
7197
|
NetBluetoothParams,
|
|
7179
7198
|
NetBluetoothDevice,
|
|
7180
7199
|
NetBluetoothResult,
|
|
7200
|
+
NetConnectedDevicesParams,
|
|
7201
|
+
NetConnectedCategory,
|
|
7202
|
+
NetConnectedDevice,
|
|
7203
|
+
NetConnectedDevicesResult,
|
|
7181
7204
|
NetDevicesParams,
|
|
7182
7205
|
NetDevice,
|
|
7183
7206
|
NetDevicesResult,
|