@ai-matrx/desktop-protocol 0.21.71 → 0.21.72
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 +11 -1
- package/dist/{chunk-server-TKQNS7QK.js → chunk-server-FFLYSQUY.js} +30 -6
- package/dist/chunk-server-FFLYSQUY.js.map +1 -0
- package/dist/client.cjs +25 -3
- 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 +1 -1
- package/dist/index.cjs +30 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +46 -10
- package/dist/index.d.ts +46 -10
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/{models-lURX04tj.d.cts → models-BSiPIgIc.d.cts} +43 -7
- package/dist/{models-lURX04tj.d.ts → models-BSiPIgIc.d.ts} +43 -7
- package/dist/react.d.cts +16 -3
- package/dist/react.d.ts +16 -3
- package/generated/desktop-protocol.schema.json +101 -3
- package/package.json +2 -2
- package/dist/chunk-server-TKQNS7QK.js.map +0 -1
package/dist/client.cjs
CHANGED
|
@@ -144,7 +144,7 @@ var import_zod2 = require("zod");
|
|
|
144
144
|
var import_zod = require("zod");
|
|
145
145
|
var import_uuid = require("@ai-matrx/kit/uuid");
|
|
146
146
|
var PROTOCOL_MAJOR = 1;
|
|
147
|
-
var PROTOCOL_MINOR =
|
|
147
|
+
var PROTOCOL_MINOR = 71;
|
|
148
148
|
var PROTOCOL_VERSION = `${PROTOCOL_MAJOR}.${PROTOCOL_MINOR}`;
|
|
149
149
|
var ProtocolVersion = import_zod.z.string().regex(/^[1-9][0-9]{0,2}\.[0-9]{1,3}$/);
|
|
150
150
|
var RequestId = import_zod.z.string().min(1).max(64).regex(/^[A-Za-z0-9_-]+$/);
|
|
@@ -3729,6 +3729,20 @@ var AppInstance = import_zod32.z.strictObject({
|
|
|
3729
3729
|
/** 1.63: what this record still lacks after Matrx filled what it remembered (absent = nothing). */
|
|
3730
3730
|
missing: import_zod32.z.array(InstanceGap).max(3).optional()
|
|
3731
3731
|
});
|
|
3732
|
+
var ElsewhereInstance = import_zod32.z.strictObject({
|
|
3733
|
+
app_key: AppKey,
|
|
3734
|
+
/** Its key on its own computer ("main", or its name). */
|
|
3735
|
+
key: import_zod32.z.string().max(120),
|
|
3736
|
+
main: import_zod32.z.boolean(),
|
|
3737
|
+
/** The computer it is on, by its name in Devices. */
|
|
3738
|
+
computer: import_zod32.z.string().max(200),
|
|
3739
|
+
/** Its data folder, as that computer shows it (a label: it is not on this computer). */
|
|
3740
|
+
folder: import_zod32.z.string().max(1024).nullable(),
|
|
3741
|
+
account_id: import_zod32.z.string().max(200).nullable(),
|
|
3742
|
+
account: import_zod32.z.string().max(320).nullable(),
|
|
3743
|
+
/** When that computer last read it. */
|
|
3744
|
+
seen_ms: epochMs.nullable()
|
|
3745
|
+
});
|
|
3732
3746
|
var AccountResetSource = import_zod32.z.enum(["app", "usage_history", "your_list"]);
|
|
3733
3747
|
var AccountGap = import_zod32.z.enum(["email", "plan", "usage"]);
|
|
3734
3748
|
var AppAccount = import_zod32.z.strictObject({
|
|
@@ -3770,7 +3784,13 @@ var AppsInstancesListResult = import_zod32.z.strictObject({
|
|
|
3770
3784
|
/** The rows are right but something around them failed; shown, never hidden. */
|
|
3771
3785
|
problem: import_zod32.z.string().max(400).optional(),
|
|
3772
3786
|
as_of_ms: epochMs.optional(),
|
|
3773
|
-
refreshing: import_zod32.z.boolean().optional()
|
|
3787
|
+
refreshing: import_zod32.z.boolean().optional(),
|
|
3788
|
+
/** 1.71: this computer's name (the Computer of every `instances` row). */
|
|
3789
|
+
computer: import_zod32.z.string().max(200).optional(),
|
|
3790
|
+
/** 1.71: the person's instances on their other computers, from the database (read only). */
|
|
3791
|
+
elsewhere: import_zod32.z.array(ElsewhereInstance).max(500).optional(),
|
|
3792
|
+
/** 1.71: the database copy could not be read or written (signed out, offline): the rows are this computer's alone. */
|
|
3793
|
+
shared_problem: import_zod32.z.string().max(200).optional()
|
|
3774
3794
|
});
|
|
3775
3795
|
var AppsAccountsListParams = import_zod32.z.strictObject({ app_key: AppKey, fresh: import_zod32.z.boolean().optional() });
|
|
3776
3796
|
var AppsAccountsListResult = import_zod32.z.strictObject({
|
|
@@ -3778,7 +3798,9 @@ var AppsAccountsListResult = import_zod32.z.strictObject({
|
|
|
3778
3798
|
accounts: import_zod32.z.array(AppAccount).max(500),
|
|
3779
3799
|
problem: import_zod32.z.string().max(400).optional(),
|
|
3780
3800
|
as_of_ms: epochMs.optional(),
|
|
3781
|
-
refreshing: import_zod32.z.boolean().optional()
|
|
3801
|
+
refreshing: import_zod32.z.boolean().optional(),
|
|
3802
|
+
/** 1.71: the database copy could not be read or written (signed out, offline): the rows are this computer's memory alone. */
|
|
3803
|
+
shared_problem: import_zod32.z.string().max(200).optional()
|
|
3782
3804
|
});
|
|
3783
3805
|
var AppsWindowsSetAccountParams = import_zod32.z.strictObject({ app_key: AppKey, window: ChatPlace, email: import_zod32.z.string().min(3).max(320) });
|
|
3784
3806
|
var AppsWindowsForgetParams = import_zod32.z.strictObject({ app_key: AppKey, window: ChatPlace });
|