@ai-matrx/desktop-protocol 0.21.38 → 0.21.39

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/dist/react.d.ts CHANGED
@@ -1980,6 +1980,89 @@ declare const OPS: {
1980
1980
  readonly since: "1.10";
1981
1981
  readonly errors: readonly ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"];
1982
1982
  };
1983
+ readonly "apps.instances.list": {
1984
+ readonly params: z.ZodObject<{
1985
+ app_key: z.ZodString;
1986
+ }, z.core.$strict>;
1987
+ readonly result: z.ZodObject<{
1988
+ app_key: z.ZodString;
1989
+ install: z.ZodNullable<z.ZodObject<{
1990
+ location: z.ZodString;
1991
+ version: z.ZodNullable<z.ZodString>;
1992
+ }, z.core.$strict>>;
1993
+ instances: z.ZodArray<z.ZodObject<{
1994
+ app_key: z.ZodString;
1995
+ key: z.ZodString;
1996
+ main: z.ZodBoolean;
1997
+ status: z.ZodEnum<{
1998
+ open: "open";
1999
+ closed: "closed";
2000
+ wrong_account: "wrong_account";
2001
+ update_waiting: "update_waiting";
2002
+ folder_missing: "folder_missing";
2003
+ }>;
2004
+ running: z.ZodBoolean;
2005
+ pid: z.ZodNullable<z.ZodInt>;
2006
+ folder: z.ZodNullable<z.ZodString>;
2007
+ folder_exists: z.ZodBoolean;
2008
+ account_id: z.ZodNullable<z.ZodString>;
2009
+ account: z.ZodNullable<z.ZodString>;
2010
+ meant_for: z.ZodNullable<z.ZodString>;
2011
+ version: z.ZodNullable<z.ZodString>;
2012
+ installed_version: z.ZodNullable<z.ZodString>;
2013
+ open_chats: z.ZodInt;
2014
+ launched_ms: z.ZodNullable<z.ZodInt>;
2015
+ quit_ms: z.ZodNullable<z.ZodInt>;
2016
+ first_launch_ms: z.ZodNullable<z.ZodInt>;
2017
+ }, z.core.$strict>>;
2018
+ problem: z.ZodOptional<z.ZodString>;
2019
+ }, z.core.$strict>;
2020
+ readonly kind: "unary";
2021
+ readonly since: "1.47";
2022
+ readonly errors: readonly ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"];
2023
+ };
2024
+ readonly "apps.accounts.list": {
2025
+ readonly params: z.ZodObject<{
2026
+ app_key: z.ZodString;
2027
+ }, z.core.$strict>;
2028
+ readonly result: z.ZodObject<{
2029
+ app_key: z.ZodString;
2030
+ accounts: z.ZodArray<z.ZodObject<{
2031
+ app_key: z.ZodString;
2032
+ account_id: z.ZodString;
2033
+ email: z.ZodNullable<z.ZodString>;
2034
+ plan: z.ZodNullable<z.ZodString>;
2035
+ orgs: z.ZodArray<z.ZodString>;
2036
+ weekly: z.ZodNullable<z.ZodNumber>;
2037
+ weekly_reset_since: z.ZodBoolean;
2038
+ weekly_resets_at_ms: z.ZodNullable<z.ZodInt>;
2039
+ weekly_reset_source: z.ZodNullable<z.ZodEnum<{
2040
+ app: "app";
2041
+ usage_history: "usage_history";
2042
+ your_list: "your_list";
2043
+ }>>;
2044
+ five_hour: z.ZodNullable<z.ZodNumber>;
2045
+ five_hour_reset_since: z.ZodBoolean;
2046
+ five_hour_resets_at_ms: z.ZodNullable<z.ZodInt>;
2047
+ extra_usage: z.ZodNullable<z.ZodNumber>;
2048
+ credits: z.ZodNullable<z.ZodNumber>;
2049
+ read_at_ms: z.ZodNullable<z.ZodInt>;
2050
+ read_in: z.ZodNullable<z.ZodString>;
2051
+ instances: z.ZodArray<z.ZodString>;
2052
+ first_seen_ms: z.ZodNullable<z.ZodInt>;
2053
+ last_seen_ms: z.ZodNullable<z.ZodInt>;
2054
+ missing: z.ZodArray<z.ZodEnum<{
2055
+ usage: "usage";
2056
+ plan: "plan";
2057
+ email: "email";
2058
+ }>>;
2059
+ }, z.core.$strict>>;
2060
+ problem: z.ZodOptional<z.ZodString>;
2061
+ }, z.core.$strict>;
2062
+ readonly kind: "unary";
2063
+ readonly since: "1.47";
2064
+ readonly errors: readonly ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"];
2065
+ };
1983
2066
  readonly "apps.projects.move": {
1984
2067
  readonly params: z.ZodObject<{
1985
2068
  app_key: z.ZodString;
@@ -6039,8 +6122,8 @@ declare const OPS: {
6039
6122
  kind: z.ZodEnum<{
6040
6123
  progress: "progress";
6041
6124
  timeout: "timeout";
6042
- result: "result";
6043
6125
  closed: "closed";
6126
+ result: "result";
6044
6127
  register: "register";
6045
6128
  invoke: "invoke";
6046
6129
  }>;
@@ -3,6 +3,491 @@
3
3
  "$id": "https://aimatrx.com/schemas/desktop-protocol/1.0",
4
4
  "title": "DesktopProtocol",
5
5
  "$defs": {
6
+ "InstanceStatus": {
7
+ "type": "string",
8
+ "enum": [
9
+ "open",
10
+ "closed",
11
+ "wrong_account",
12
+ "update_waiting",
13
+ "folder_missing"
14
+ ]
15
+ },
16
+ "AppInstall": {
17
+ "type": "object",
18
+ "properties": {
19
+ "location": {
20
+ "type": "string",
21
+ "maxLength": 1024
22
+ },
23
+ "version": {
24
+ "anyOf": [
25
+ {
26
+ "type": "string",
27
+ "maxLength": 80
28
+ },
29
+ {
30
+ "type": "null"
31
+ }
32
+ ]
33
+ }
34
+ },
35
+ "required": [
36
+ "location",
37
+ "version"
38
+ ],
39
+ "additionalProperties": false
40
+ },
41
+ "AppInstance": {
42
+ "type": "object",
43
+ "properties": {
44
+ "app_key": {
45
+ "$ref": "#/$defs/AppKey"
46
+ },
47
+ "key": {
48
+ "$ref": "#/$defs/ChatPlace"
49
+ },
50
+ "main": {
51
+ "type": "boolean"
52
+ },
53
+ "status": {
54
+ "$ref": "#/$defs/InstanceStatus"
55
+ },
56
+ "running": {
57
+ "type": "boolean"
58
+ },
59
+ "pid": {
60
+ "anyOf": [
61
+ {
62
+ "type": "integer",
63
+ "minimum": 0,
64
+ "maximum": 9007199254740991
65
+ },
66
+ {
67
+ "type": "null"
68
+ }
69
+ ]
70
+ },
71
+ "folder": {
72
+ "anyOf": [
73
+ {
74
+ "type": "string",
75
+ "maxLength": 1024
76
+ },
77
+ {
78
+ "type": "null"
79
+ }
80
+ ]
81
+ },
82
+ "folder_exists": {
83
+ "type": "boolean"
84
+ },
85
+ "account_id": {
86
+ "anyOf": [
87
+ {
88
+ "type": "string",
89
+ "maxLength": 200
90
+ },
91
+ {
92
+ "type": "null"
93
+ }
94
+ ]
95
+ },
96
+ "account": {
97
+ "anyOf": [
98
+ {
99
+ "type": "string",
100
+ "maxLength": 320
101
+ },
102
+ {
103
+ "type": "null"
104
+ }
105
+ ]
106
+ },
107
+ "meant_for": {
108
+ "anyOf": [
109
+ {
110
+ "type": "string",
111
+ "maxLength": 320
112
+ },
113
+ {
114
+ "type": "null"
115
+ }
116
+ ]
117
+ },
118
+ "version": {
119
+ "anyOf": [
120
+ {
121
+ "type": "string",
122
+ "maxLength": 80
123
+ },
124
+ {
125
+ "type": "null"
126
+ }
127
+ ]
128
+ },
129
+ "installed_version": {
130
+ "anyOf": [
131
+ {
132
+ "type": "string",
133
+ "maxLength": 80
134
+ },
135
+ {
136
+ "type": "null"
137
+ }
138
+ ]
139
+ },
140
+ "open_chats": {
141
+ "type": "integer",
142
+ "minimum": 0,
143
+ "maximum": 9007199254740991
144
+ },
145
+ "launched_ms": {
146
+ "anyOf": [
147
+ {
148
+ "type": "integer",
149
+ "minimum": 0,
150
+ "maximum": 9007199254740991
151
+ },
152
+ {
153
+ "type": "null"
154
+ }
155
+ ]
156
+ },
157
+ "quit_ms": {
158
+ "anyOf": [
159
+ {
160
+ "type": "integer",
161
+ "minimum": 0,
162
+ "maximum": 9007199254740991
163
+ },
164
+ {
165
+ "type": "null"
166
+ }
167
+ ]
168
+ },
169
+ "first_launch_ms": {
170
+ "anyOf": [
171
+ {
172
+ "type": "integer",
173
+ "minimum": 0,
174
+ "maximum": 9007199254740991
175
+ },
176
+ {
177
+ "type": "null"
178
+ }
179
+ ]
180
+ }
181
+ },
182
+ "required": [
183
+ "app_key",
184
+ "key",
185
+ "main",
186
+ "status",
187
+ "running",
188
+ "pid",
189
+ "folder",
190
+ "folder_exists",
191
+ "account_id",
192
+ "account",
193
+ "meant_for",
194
+ "version",
195
+ "installed_version",
196
+ "open_chats",
197
+ "launched_ms",
198
+ "quit_ms",
199
+ "first_launch_ms"
200
+ ],
201
+ "additionalProperties": false
202
+ },
203
+ "AccountResetSource": {
204
+ "type": "string",
205
+ "enum": [
206
+ "app",
207
+ "usage_history",
208
+ "your_list"
209
+ ]
210
+ },
211
+ "AccountGap": {
212
+ "type": "string",
213
+ "enum": [
214
+ "email",
215
+ "plan",
216
+ "usage"
217
+ ]
218
+ },
219
+ "AppAccount": {
220
+ "type": "object",
221
+ "properties": {
222
+ "app_key": {
223
+ "$ref": "#/$defs/AppKey"
224
+ },
225
+ "account_id": {
226
+ "type": "string",
227
+ "maxLength": 200
228
+ },
229
+ "email": {
230
+ "anyOf": [
231
+ {
232
+ "type": "string",
233
+ "maxLength": 320
234
+ },
235
+ {
236
+ "type": "null"
237
+ }
238
+ ]
239
+ },
240
+ "plan": {
241
+ "anyOf": [
242
+ {
243
+ "type": "string",
244
+ "maxLength": 80
245
+ },
246
+ {
247
+ "type": "null"
248
+ }
249
+ ]
250
+ },
251
+ "orgs": {
252
+ "maxItems": 20,
253
+ "type": "array",
254
+ "items": {
255
+ "type": "string",
256
+ "maxLength": 80
257
+ }
258
+ },
259
+ "weekly": {
260
+ "type": [
261
+ "number",
262
+ "null"
263
+ ]
264
+ },
265
+ "weekly_reset_since": {
266
+ "type": "boolean"
267
+ },
268
+ "weekly_resets_at_ms": {
269
+ "anyOf": [
270
+ {
271
+ "type": "integer",
272
+ "minimum": 0,
273
+ "maximum": 9007199254740991
274
+ },
275
+ {
276
+ "type": "null"
277
+ }
278
+ ]
279
+ },
280
+ "weekly_reset_source": {
281
+ "anyOf": [
282
+ {
283
+ "$ref": "#/$defs/AccountResetSource"
284
+ },
285
+ {
286
+ "type": "null"
287
+ }
288
+ ]
289
+ },
290
+ "five_hour": {
291
+ "type": [
292
+ "number",
293
+ "null"
294
+ ]
295
+ },
296
+ "five_hour_reset_since": {
297
+ "type": "boolean"
298
+ },
299
+ "five_hour_resets_at_ms": {
300
+ "anyOf": [
301
+ {
302
+ "type": "integer",
303
+ "minimum": 0,
304
+ "maximum": 9007199254740991
305
+ },
306
+ {
307
+ "type": "null"
308
+ }
309
+ ]
310
+ },
311
+ "extra_usage": {
312
+ "type": [
313
+ "number",
314
+ "null"
315
+ ]
316
+ },
317
+ "credits": {
318
+ "type": [
319
+ "number",
320
+ "null"
321
+ ]
322
+ },
323
+ "read_at_ms": {
324
+ "anyOf": [
325
+ {
326
+ "type": "integer",
327
+ "minimum": 0,
328
+ "maximum": 9007199254740991
329
+ },
330
+ {
331
+ "type": "null"
332
+ }
333
+ ]
334
+ },
335
+ "read_in": {
336
+ "anyOf": [
337
+ {
338
+ "$ref": "#/$defs/ChatPlace"
339
+ },
340
+ {
341
+ "type": "null"
342
+ }
343
+ ]
344
+ },
345
+ "instances": {
346
+ "maxItems": 200,
347
+ "type": "array",
348
+ "items": {
349
+ "$ref": "#/$defs/ChatPlace"
350
+ }
351
+ },
352
+ "first_seen_ms": {
353
+ "anyOf": [
354
+ {
355
+ "type": "integer",
356
+ "minimum": 0,
357
+ "maximum": 9007199254740991
358
+ },
359
+ {
360
+ "type": "null"
361
+ }
362
+ ]
363
+ },
364
+ "last_seen_ms": {
365
+ "anyOf": [
366
+ {
367
+ "type": "integer",
368
+ "minimum": 0,
369
+ "maximum": 9007199254740991
370
+ },
371
+ {
372
+ "type": "null"
373
+ }
374
+ ]
375
+ },
376
+ "missing": {
377
+ "maxItems": 3,
378
+ "type": "array",
379
+ "items": {
380
+ "$ref": "#/$defs/AccountGap"
381
+ }
382
+ }
383
+ },
384
+ "required": [
385
+ "app_key",
386
+ "account_id",
387
+ "email",
388
+ "plan",
389
+ "orgs",
390
+ "weekly",
391
+ "weekly_reset_since",
392
+ "weekly_resets_at_ms",
393
+ "weekly_reset_source",
394
+ "five_hour",
395
+ "five_hour_reset_since",
396
+ "five_hour_resets_at_ms",
397
+ "extra_usage",
398
+ "credits",
399
+ "read_at_ms",
400
+ "read_in",
401
+ "instances",
402
+ "first_seen_ms",
403
+ "last_seen_ms",
404
+ "missing"
405
+ ],
406
+ "additionalProperties": false
407
+ },
408
+ "AppsInstancesListParams": {
409
+ "type": "object",
410
+ "properties": {
411
+ "app_key": {
412
+ "$ref": "#/$defs/AppKey"
413
+ }
414
+ },
415
+ "required": [
416
+ "app_key"
417
+ ],
418
+ "additionalProperties": false
419
+ },
420
+ "AppsInstancesListResult": {
421
+ "type": "object",
422
+ "properties": {
423
+ "app_key": {
424
+ "$ref": "#/$defs/AppKey"
425
+ },
426
+ "install": {
427
+ "anyOf": [
428
+ {
429
+ "$ref": "#/$defs/AppInstall"
430
+ },
431
+ {
432
+ "type": "null"
433
+ }
434
+ ]
435
+ },
436
+ "instances": {
437
+ "maxItems": 200,
438
+ "type": "array",
439
+ "items": {
440
+ "$ref": "#/$defs/AppInstance"
441
+ }
442
+ },
443
+ "problem": {
444
+ "type": "string",
445
+ "maxLength": 400
446
+ }
447
+ },
448
+ "required": [
449
+ "app_key",
450
+ "install",
451
+ "instances"
452
+ ],
453
+ "additionalProperties": false
454
+ },
455
+ "AppsAccountsListParams": {
456
+ "type": "object",
457
+ "properties": {
458
+ "app_key": {
459
+ "$ref": "#/$defs/AppKey"
460
+ }
461
+ },
462
+ "required": [
463
+ "app_key"
464
+ ],
465
+ "additionalProperties": false
466
+ },
467
+ "AppsAccountsListResult": {
468
+ "type": "object",
469
+ "properties": {
470
+ "app_key": {
471
+ "$ref": "#/$defs/AppKey"
472
+ },
473
+ "accounts": {
474
+ "maxItems": 500,
475
+ "type": "array",
476
+ "items": {
477
+ "$ref": "#/$defs/AppAccount"
478
+ }
479
+ },
480
+ "problem": {
481
+ "type": "string",
482
+ "maxLength": 400
483
+ }
484
+ },
485
+ "required": [
486
+ "app_key",
487
+ "accounts"
488
+ ],
489
+ "additionalProperties": false
490
+ },
6
491
  "ProtocolVersion": {
7
492
  "type": "string",
8
493
  "pattern": "^[1-9][0-9]{0,2}\\.[0-9]{1,3}$"
@@ -22403,6 +22888,28 @@
22403
22888
  "INTERNAL"
22404
22889
  ]
22405
22890
  },
22891
+ "apps.instances.list": {
22892
+ "params": "AppsInstancesListParams",
22893
+ "result": "AppsInstancesListResult",
22894
+ "kind": "unary",
22895
+ "since": "1.47",
22896
+ "errors": [
22897
+ "NOT_FOUND",
22898
+ "PLATFORM_UNSUPPORTED",
22899
+ "INTERNAL"
22900
+ ]
22901
+ },
22902
+ "apps.accounts.list": {
22903
+ "params": "AppsAccountsListParams",
22904
+ "result": "AppsAccountsListResult",
22905
+ "kind": "unary",
22906
+ "since": "1.47",
22907
+ "errors": [
22908
+ "NOT_FOUND",
22909
+ "PLATFORM_UNSUPPORTED",
22910
+ "INTERNAL"
22911
+ ]
22912
+ },
22406
22913
  "apps.projects.move": {
22407
22914
  "params": "AppsProjectsMoveParams",
22408
22915
  "result": "AppsProjectsMoveResult",
@@ -24797,5 +25304,5 @@
24797
25304
  "olderPeersGet": 0
24798
25305
  }
24799
25306
  },
24800
- "x-protocol-version": "1.46"
25307
+ "x-protocol-version": "1.47"
24801
25308
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-matrx/desktop-protocol",
3
- "version": "0.21.38",
3
+ "version": "0.21.39",
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",
@@ -137,5 +137,5 @@
137
137
  "test:watch": "vitest",
138
138
  "verify:tarball": "node ./scripts/verify-tarball.mjs"
139
139
  },
140
- "gitHead": "03564f7f79f37da15da269abb18ff000c1ae48be"
140
+ "gitHead": "bdadfd428feb65e3eba8674ebb0db270ba876a6e"
141
141
  }