@ai-matrx/desktop-protocol 0.21.37 → 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.
@@ -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}$"
@@ -3752,6 +4237,10 @@
3752
4237
  "type": "null"
3753
4238
  }
3754
4239
  ]
4240
+ },
4241
+ "error": {
4242
+ "type": "string",
4243
+ "maxLength": 300
3755
4244
  }
3756
4245
  },
3757
4246
  "required": [
@@ -22399,6 +22888,28 @@
22399
22888
  "INTERNAL"
22400
22889
  ]
22401
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
+ },
22402
22913
  "apps.projects.move": {
22403
22914
  "params": "AppsProjectsMoveParams",
22404
22915
  "result": "AppsProjectsMoveResult",
@@ -24782,6 +25293,9 @@
24782
25293
  },
24783
25294
  "SysinfoHardwareResult": {
24784
25295
  "graphics": "1.45"
25296
+ },
25297
+ "DownloadRow": {
25298
+ "error": "1.46"
24785
25299
  }
24786
25300
  },
24787
25301
  "x-null-since": {
@@ -24790,5 +25304,5 @@
24790
25304
  "olderPeersGet": 0
24791
25305
  }
24792
25306
  },
24793
- "x-protocol-version": "1.45"
25307
+ "x-protocol-version": "1.47"
24794
25308
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-matrx/desktop-protocol",
3
- "version": "0.21.37",
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": "aa17cdaf9ccbb7bb738596152892eebd34641e56"
140
+ "gitHead": "bdadfd428feb65e3eba8674ebb0db270ba876a6e"
141
141
  }