@ai-matrx/desktop-protocol 0.21.48 → 0.21.50

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.cts CHANGED
@@ -2122,6 +2122,103 @@ declare const OPS: {
2122
2122
  readonly since: "1.10";
2123
2123
  readonly errors: readonly ["CONFLICT", "PLATFORM_UNSUPPORTED", "INTERNAL"];
2124
2124
  };
2125
+ readonly "apps.chats.copy_to_account": {
2126
+ readonly params: z.ZodObject<{
2127
+ app_key: z.ZodString;
2128
+ origin: z.ZodString;
2129
+ target: z.ZodString;
2130
+ chat_ids: z.ZodArray<z.ZodString>;
2131
+ mode: z.ZodDefault<z.ZodEnum<{
2132
+ copy: "copy";
2133
+ move: "move";
2134
+ }>>;
2135
+ restart: z.ZodDefault<z.ZodEnum<{
2136
+ queued: "queued";
2137
+ restart_verify: "restart_verify";
2138
+ }>>;
2139
+ mirror_groups: z.ZodDefault<z.ZodBoolean>;
2140
+ pins_follow: z.ZodDefault<z.ZodBoolean>;
2141
+ source_group: z.ZodOptional<z.ZodString>;
2142
+ }, z.core.$strict>;
2143
+ readonly result: z.ZodObject<{
2144
+ message: z.ZodString;
2145
+ origin: z.ZodString;
2146
+ target: z.ZodString;
2147
+ mode: z.ZodEnum<{
2148
+ copy: "copy";
2149
+ move: "move";
2150
+ }>;
2151
+ project: z.ZodObject<{
2152
+ id: z.ZodString;
2153
+ name: z.ZodString;
2154
+ }, z.core.$strict>;
2155
+ groups: z.ZodArray<z.ZodObject<{
2156
+ name: z.ZodString;
2157
+ chats: z.ZodNumber;
2158
+ ok: z.ZodBoolean;
2159
+ when: z.ZodNullable<z.ZodEnum<{
2160
+ now: "now";
2161
+ next_close: "next_close";
2162
+ }>>;
2163
+ reason: z.ZodNullable<z.ZodString>;
2164
+ }, z.core.$strict>>;
2165
+ source_group: z.ZodNullable<z.ZodObject<{
2166
+ name: z.ZodString;
2167
+ ok: z.ZodBoolean;
2168
+ when: z.ZodNullable<z.ZodEnum<{
2169
+ now: "now";
2170
+ next_close: "next_close";
2171
+ }>>;
2172
+ reason: z.ZodNullable<z.ZodString>;
2173
+ }, z.core.$strict>>;
2174
+ chats: z.ZodArray<z.ZodObject<{
2175
+ chat_id: z.ZodString;
2176
+ title: z.ZodString;
2177
+ outcome: z.ZodEnum<{
2178
+ copied: "copied";
2179
+ moved: "moved";
2180
+ already: "already";
2181
+ skipped: "skipped";
2182
+ }>;
2183
+ group: z.ZodNullable<z.ZodString>;
2184
+ group_state: z.ZodNullable<z.ZodEnum<{
2185
+ failed: "failed";
2186
+ now: "now";
2187
+ next_close: "next_close";
2188
+ }>>;
2189
+ pinned: z.ZodBoolean;
2190
+ pin_state: z.ZodNullable<z.ZodEnum<{
2191
+ failed: "failed";
2192
+ now: "now";
2193
+ next_close: "next_close";
2194
+ }>>;
2195
+ state: z.ZodEnum<{
2196
+ failed: "failed";
2197
+ queued: "queued";
2198
+ verified: "verified";
2199
+ }>;
2200
+ reason: z.ZodNullable<z.ZodString>;
2201
+ }, z.core.$strict>>;
2202
+ verified: z.ZodNumber;
2203
+ queued: z.ZodNumber;
2204
+ failed: z.ZodNumber;
2205
+ restart: z.ZodObject<{
2206
+ asked: z.ZodEnum<{
2207
+ queued: "queued";
2208
+ restart_verify: "restart_verify";
2209
+ }>;
2210
+ done: z.ZodEnum<{
2211
+ queued: "queued";
2212
+ restart_verify: "restart_verify";
2213
+ }>;
2214
+ windows: z.ZodArray<z.ZodString>;
2215
+ reason: z.ZodNullable<z.ZodString>;
2216
+ }, z.core.$strict>;
2217
+ }, z.core.$strict>;
2218
+ readonly kind: "unary";
2219
+ readonly since: "1.55";
2220
+ readonly errors: readonly ["NOT_FOUND", "INVALID_PARAMS", "CONFLICT", "PLATFORM_UNSUPPORTED", "INTERNAL"];
2221
+ };
2125
2222
  readonly "apps.projects.to_window": {
2126
2223
  readonly params: z.ZodObject<{
2127
2224
  app_key: z.ZodString;
@@ -2189,10 +2286,10 @@ declare const OPS: {
2189
2286
  chat_id: z.ZodString;
2190
2287
  title: z.ZodString;
2191
2288
  outcome: z.ZodEnum<{
2192
- already: "already";
2193
- skipped: "skipped";
2194
2289
  copied: "copied";
2195
2290
  moved: "moved";
2291
+ already: "already";
2292
+ skipped: "skipped";
2196
2293
  }>;
2197
2294
  off: z.ZodArray<z.ZodString>;
2198
2295
  reason: z.ZodNullable<z.ZodString>;
@@ -3824,6 +3921,7 @@ declare const OPS: {
3824
3921
  defaultModel: z.ZodNullable<z.ZodObject<{
3825
3922
  id: z.ZodString;
3826
3923
  source: z.ZodEnum<{
3924
+ account: "account";
3827
3925
  settings: "settings";
3828
3926
  driver: "driver";
3829
3927
  }>;
package/dist/react.d.ts CHANGED
@@ -2122,6 +2122,103 @@ declare const OPS: {
2122
2122
  readonly since: "1.10";
2123
2123
  readonly errors: readonly ["CONFLICT", "PLATFORM_UNSUPPORTED", "INTERNAL"];
2124
2124
  };
2125
+ readonly "apps.chats.copy_to_account": {
2126
+ readonly params: z.ZodObject<{
2127
+ app_key: z.ZodString;
2128
+ origin: z.ZodString;
2129
+ target: z.ZodString;
2130
+ chat_ids: z.ZodArray<z.ZodString>;
2131
+ mode: z.ZodDefault<z.ZodEnum<{
2132
+ copy: "copy";
2133
+ move: "move";
2134
+ }>>;
2135
+ restart: z.ZodDefault<z.ZodEnum<{
2136
+ queued: "queued";
2137
+ restart_verify: "restart_verify";
2138
+ }>>;
2139
+ mirror_groups: z.ZodDefault<z.ZodBoolean>;
2140
+ pins_follow: z.ZodDefault<z.ZodBoolean>;
2141
+ source_group: z.ZodOptional<z.ZodString>;
2142
+ }, z.core.$strict>;
2143
+ readonly result: z.ZodObject<{
2144
+ message: z.ZodString;
2145
+ origin: z.ZodString;
2146
+ target: z.ZodString;
2147
+ mode: z.ZodEnum<{
2148
+ copy: "copy";
2149
+ move: "move";
2150
+ }>;
2151
+ project: z.ZodObject<{
2152
+ id: z.ZodString;
2153
+ name: z.ZodString;
2154
+ }, z.core.$strict>;
2155
+ groups: z.ZodArray<z.ZodObject<{
2156
+ name: z.ZodString;
2157
+ chats: z.ZodNumber;
2158
+ ok: z.ZodBoolean;
2159
+ when: z.ZodNullable<z.ZodEnum<{
2160
+ now: "now";
2161
+ next_close: "next_close";
2162
+ }>>;
2163
+ reason: z.ZodNullable<z.ZodString>;
2164
+ }, z.core.$strict>>;
2165
+ source_group: z.ZodNullable<z.ZodObject<{
2166
+ name: z.ZodString;
2167
+ ok: z.ZodBoolean;
2168
+ when: z.ZodNullable<z.ZodEnum<{
2169
+ now: "now";
2170
+ next_close: "next_close";
2171
+ }>>;
2172
+ reason: z.ZodNullable<z.ZodString>;
2173
+ }, z.core.$strict>>;
2174
+ chats: z.ZodArray<z.ZodObject<{
2175
+ chat_id: z.ZodString;
2176
+ title: z.ZodString;
2177
+ outcome: z.ZodEnum<{
2178
+ copied: "copied";
2179
+ moved: "moved";
2180
+ already: "already";
2181
+ skipped: "skipped";
2182
+ }>;
2183
+ group: z.ZodNullable<z.ZodString>;
2184
+ group_state: z.ZodNullable<z.ZodEnum<{
2185
+ failed: "failed";
2186
+ now: "now";
2187
+ next_close: "next_close";
2188
+ }>>;
2189
+ pinned: z.ZodBoolean;
2190
+ pin_state: z.ZodNullable<z.ZodEnum<{
2191
+ failed: "failed";
2192
+ now: "now";
2193
+ next_close: "next_close";
2194
+ }>>;
2195
+ state: z.ZodEnum<{
2196
+ failed: "failed";
2197
+ queued: "queued";
2198
+ verified: "verified";
2199
+ }>;
2200
+ reason: z.ZodNullable<z.ZodString>;
2201
+ }, z.core.$strict>>;
2202
+ verified: z.ZodNumber;
2203
+ queued: z.ZodNumber;
2204
+ failed: z.ZodNumber;
2205
+ restart: z.ZodObject<{
2206
+ asked: z.ZodEnum<{
2207
+ queued: "queued";
2208
+ restart_verify: "restart_verify";
2209
+ }>;
2210
+ done: z.ZodEnum<{
2211
+ queued: "queued";
2212
+ restart_verify: "restart_verify";
2213
+ }>;
2214
+ windows: z.ZodArray<z.ZodString>;
2215
+ reason: z.ZodNullable<z.ZodString>;
2216
+ }, z.core.$strict>;
2217
+ }, z.core.$strict>;
2218
+ readonly kind: "unary";
2219
+ readonly since: "1.55";
2220
+ readonly errors: readonly ["NOT_FOUND", "INVALID_PARAMS", "CONFLICT", "PLATFORM_UNSUPPORTED", "INTERNAL"];
2221
+ };
2125
2222
  readonly "apps.projects.to_window": {
2126
2223
  readonly params: z.ZodObject<{
2127
2224
  app_key: z.ZodString;
@@ -2189,10 +2286,10 @@ declare const OPS: {
2189
2286
  chat_id: z.ZodString;
2190
2287
  title: z.ZodString;
2191
2288
  outcome: z.ZodEnum<{
2192
- already: "already";
2193
- skipped: "skipped";
2194
2289
  copied: "copied";
2195
2290
  moved: "moved";
2291
+ already: "already";
2292
+ skipped: "skipped";
2196
2293
  }>;
2197
2294
  off: z.ZodArray<z.ZodString>;
2198
2295
  reason: z.ZodNullable<z.ZodString>;
@@ -3824,6 +3921,7 @@ declare const OPS: {
3824
3921
  defaultModel: z.ZodNullable<z.ZodObject<{
3825
3922
  id: z.ZodString;
3826
3923
  source: z.ZodEnum<{
3924
+ account: "account";
3827
3925
  settings: "settings";
3828
3926
  driver: "driver";
3829
3927
  }>;
@@ -6062,7 +6062,8 @@
6062
6062
  "type": "string",
6063
6063
  "enum": [
6064
6064
  "settings",
6065
- "driver"
6065
+ "driver",
6066
+ "account"
6066
6067
  ]
6067
6068
  }
6068
6069
  },
@@ -13378,6 +13379,385 @@
13378
13379
  ],
13379
13380
  "additionalProperties": false
13380
13381
  },
13382
+ "AppsChatsCopyToAccountParams": {
13383
+ "type": "object",
13384
+ "properties": {
13385
+ "app_key": {
13386
+ "$ref": "#/$defs/AppKey"
13387
+ },
13388
+ "origin": {
13389
+ "$ref": "#/$defs/ChatPlace"
13390
+ },
13391
+ "target": {
13392
+ "$ref": "#/$defs/ChatPlace"
13393
+ },
13394
+ "chat_ids": {
13395
+ "minItems": 1,
13396
+ "maxItems": 500,
13397
+ "type": "array",
13398
+ "items": {
13399
+ "$ref": "#/$defs/ChatId"
13400
+ }
13401
+ },
13402
+ "mode": {
13403
+ "default": "copy",
13404
+ "type": "string",
13405
+ "enum": [
13406
+ "copy",
13407
+ "move"
13408
+ ]
13409
+ },
13410
+ "restart": {
13411
+ "default": "queued",
13412
+ "type": "string",
13413
+ "enum": [
13414
+ "queued",
13415
+ "restart_verify"
13416
+ ]
13417
+ },
13418
+ "mirror_groups": {
13419
+ "default": true,
13420
+ "type": "boolean"
13421
+ },
13422
+ "pins_follow": {
13423
+ "default": true,
13424
+ "type": "boolean"
13425
+ },
13426
+ "source_group": {
13427
+ "type": "string",
13428
+ "minLength": 1,
13429
+ "maxLength": 200
13430
+ }
13431
+ },
13432
+ "required": [
13433
+ "app_key",
13434
+ "origin",
13435
+ "target",
13436
+ "chat_ids"
13437
+ ],
13438
+ "additionalProperties": false
13439
+ },
13440
+ "CopiedChat": {
13441
+ "type": "object",
13442
+ "properties": {
13443
+ "chat_id": {
13444
+ "$ref": "#/$defs/ChatId"
13445
+ },
13446
+ "title": {
13447
+ "type": "string",
13448
+ "maxLength": 500
13449
+ },
13450
+ "outcome": {
13451
+ "type": "string",
13452
+ "enum": [
13453
+ "copied",
13454
+ "moved",
13455
+ "already",
13456
+ "skipped"
13457
+ ]
13458
+ },
13459
+ "group": {
13460
+ "anyOf": [
13461
+ {
13462
+ "type": "string",
13463
+ "maxLength": 200
13464
+ },
13465
+ {
13466
+ "type": "null"
13467
+ }
13468
+ ]
13469
+ },
13470
+ "group_state": {
13471
+ "anyOf": [
13472
+ {
13473
+ "type": "string",
13474
+ "enum": [
13475
+ "now",
13476
+ "next_close",
13477
+ "failed"
13478
+ ]
13479
+ },
13480
+ {
13481
+ "type": "null"
13482
+ }
13483
+ ]
13484
+ },
13485
+ "pinned": {
13486
+ "type": "boolean"
13487
+ },
13488
+ "pin_state": {
13489
+ "anyOf": [
13490
+ {
13491
+ "type": "string",
13492
+ "enum": [
13493
+ "now",
13494
+ "next_close",
13495
+ "failed"
13496
+ ]
13497
+ },
13498
+ {
13499
+ "type": "null"
13500
+ }
13501
+ ]
13502
+ },
13503
+ "state": {
13504
+ "type": "string",
13505
+ "enum": [
13506
+ "verified",
13507
+ "queued",
13508
+ "failed"
13509
+ ]
13510
+ },
13511
+ "reason": {
13512
+ "anyOf": [
13513
+ {
13514
+ "type": "string",
13515
+ "maxLength": 400
13516
+ },
13517
+ {
13518
+ "type": "null"
13519
+ }
13520
+ ]
13521
+ }
13522
+ },
13523
+ "required": [
13524
+ "chat_id",
13525
+ "title",
13526
+ "outcome",
13527
+ "group",
13528
+ "group_state",
13529
+ "pinned",
13530
+ "pin_state",
13531
+ "state",
13532
+ "reason"
13533
+ ],
13534
+ "additionalProperties": false
13535
+ },
13536
+ "AppsChatsCopyToAccountResult": {
13537
+ "type": "object",
13538
+ "properties": {
13539
+ "message": {
13540
+ "type": "string",
13541
+ "maxLength": 400
13542
+ },
13543
+ "origin": {
13544
+ "$ref": "#/$defs/ChatPlace"
13545
+ },
13546
+ "target": {
13547
+ "$ref": "#/$defs/ChatPlace"
13548
+ },
13549
+ "mode": {
13550
+ "type": "string",
13551
+ "enum": [
13552
+ "copy",
13553
+ "move"
13554
+ ]
13555
+ },
13556
+ "project": {
13557
+ "type": "object",
13558
+ "properties": {
13559
+ "id": {
13560
+ "$ref": "#/$defs/ChatProjectId"
13561
+ },
13562
+ "name": {
13563
+ "type": "string",
13564
+ "maxLength": 200
13565
+ }
13566
+ },
13567
+ "required": [
13568
+ "id",
13569
+ "name"
13570
+ ],
13571
+ "additionalProperties": false
13572
+ },
13573
+ "groups": {
13574
+ "maxItems": 500,
13575
+ "type": "array",
13576
+ "items": {
13577
+ "type": "object",
13578
+ "properties": {
13579
+ "name": {
13580
+ "type": "string",
13581
+ "maxLength": 200
13582
+ },
13583
+ "chats": {
13584
+ "type": "integer",
13585
+ "minimum": 0,
13586
+ "maximum": 9007199254740991
13587
+ },
13588
+ "ok": {
13589
+ "type": "boolean"
13590
+ },
13591
+ "when": {
13592
+ "anyOf": [
13593
+ {
13594
+ "type": "string",
13595
+ "enum": [
13596
+ "now",
13597
+ "next_close"
13598
+ ]
13599
+ },
13600
+ {
13601
+ "type": "null"
13602
+ }
13603
+ ]
13604
+ },
13605
+ "reason": {
13606
+ "anyOf": [
13607
+ {
13608
+ "type": "string",
13609
+ "maxLength": 400
13610
+ },
13611
+ {
13612
+ "type": "null"
13613
+ }
13614
+ ]
13615
+ }
13616
+ },
13617
+ "required": [
13618
+ "name",
13619
+ "chats",
13620
+ "ok",
13621
+ "when",
13622
+ "reason"
13623
+ ],
13624
+ "additionalProperties": false
13625
+ }
13626
+ },
13627
+ "source_group": {
13628
+ "anyOf": [
13629
+ {
13630
+ "type": "object",
13631
+ "properties": {
13632
+ "name": {
13633
+ "type": "string",
13634
+ "maxLength": 200
13635
+ },
13636
+ "ok": {
13637
+ "type": "boolean"
13638
+ },
13639
+ "when": {
13640
+ "anyOf": [
13641
+ {
13642
+ "type": "string",
13643
+ "enum": [
13644
+ "now",
13645
+ "next_close"
13646
+ ]
13647
+ },
13648
+ {
13649
+ "type": "null"
13650
+ }
13651
+ ]
13652
+ },
13653
+ "reason": {
13654
+ "anyOf": [
13655
+ {
13656
+ "type": "string",
13657
+ "maxLength": 400
13658
+ },
13659
+ {
13660
+ "type": "null"
13661
+ }
13662
+ ]
13663
+ }
13664
+ },
13665
+ "required": [
13666
+ "name",
13667
+ "ok",
13668
+ "when",
13669
+ "reason"
13670
+ ],
13671
+ "additionalProperties": false
13672
+ },
13673
+ {
13674
+ "type": "null"
13675
+ }
13676
+ ]
13677
+ },
13678
+ "chats": {
13679
+ "maxItems": 500,
13680
+ "type": "array",
13681
+ "items": {
13682
+ "$ref": "#/$defs/CopiedChat"
13683
+ }
13684
+ },
13685
+ "verified": {
13686
+ "type": "integer",
13687
+ "minimum": 0,
13688
+ "maximum": 9007199254740991
13689
+ },
13690
+ "queued": {
13691
+ "type": "integer",
13692
+ "minimum": 0,
13693
+ "maximum": 9007199254740991
13694
+ },
13695
+ "failed": {
13696
+ "type": "integer",
13697
+ "minimum": 0,
13698
+ "maximum": 9007199254740991
13699
+ },
13700
+ "restart": {
13701
+ "type": "object",
13702
+ "properties": {
13703
+ "asked": {
13704
+ "type": "string",
13705
+ "enum": [
13706
+ "queued",
13707
+ "restart_verify"
13708
+ ]
13709
+ },
13710
+ "done": {
13711
+ "type": "string",
13712
+ "enum": [
13713
+ "queued",
13714
+ "restart_verify"
13715
+ ]
13716
+ },
13717
+ "windows": {
13718
+ "maxItems": 2,
13719
+ "type": "array",
13720
+ "items": {
13721
+ "$ref": "#/$defs/ChatPlace"
13722
+ }
13723
+ },
13724
+ "reason": {
13725
+ "anyOf": [
13726
+ {
13727
+ "type": "string",
13728
+ "maxLength": 400
13729
+ },
13730
+ {
13731
+ "type": "null"
13732
+ }
13733
+ ]
13734
+ }
13735
+ },
13736
+ "required": [
13737
+ "asked",
13738
+ "done",
13739
+ "windows",
13740
+ "reason"
13741
+ ],
13742
+ "additionalProperties": false
13743
+ }
13744
+ },
13745
+ "required": [
13746
+ "message",
13747
+ "origin",
13748
+ "target",
13749
+ "mode",
13750
+ "project",
13751
+ "groups",
13752
+ "source_group",
13753
+ "chats",
13754
+ "verified",
13755
+ "queued",
13756
+ "failed",
13757
+ "restart"
13758
+ ],
13759
+ "additionalProperties": false
13760
+ },
13381
13761
  "AccountUsage": {
13382
13762
  "type": "object",
13383
13763
  "properties": {
@@ -23300,6 +23680,19 @@
23300
23680
  "INTERNAL"
23301
23681
  ]
23302
23682
  },
23683
+ "apps.chats.copy_to_account": {
23684
+ "params": "AppsChatsCopyToAccountParams",
23685
+ "result": "AppsChatsCopyToAccountResult",
23686
+ "kind": "unary",
23687
+ "since": "1.55",
23688
+ "errors": [
23689
+ "NOT_FOUND",
23690
+ "INVALID_PARAMS",
23691
+ "CONFLICT",
23692
+ "PLATFORM_UNSUPPORTED",
23693
+ "INTERNAL"
23694
+ ]
23695
+ },
23303
23696
  "apps.projects.to_window": {
23304
23697
  "params": "AppsProjectsToWindowParams",
23305
23698
  "result": "AppsProjectsToWindowResult",
@@ -25696,5 +26089,5 @@
25696
26089
  "olderPeersGet": 0
25697
26090
  }
25698
26091
  },
25699
- "x-protocol-version": "1.53"
26092
+ "x-protocol-version": "1.55"
25700
26093
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-matrx/desktop-protocol",
3
- "version": "0.21.48",
3
+ "version": "0.21.50",
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": "90ba9478e3daeb47287e61e3acdf09f48b723cba"
140
+ "gitHead": "9cc0176a71c2b5f511e1efe7dab2993958cb688a"
141
141
  }