@qvac/core 0.1.7 → 0.1.8

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.
@@ -326,12 +326,11 @@ const encoding6 = {
326
326
  if (m.progress) encoding6_5.encode(state, m.progress)
327
327
  },
328
328
  decode(state) {
329
- const v = c.uint.decode(state)
330
329
  const r0 = encoding1.decode(state)
331
330
  const flags = c.uint.decode(state)
332
331
 
333
332
  return {
334
- version: v,
333
+ version: 0,
335
334
  state: r0,
336
335
  model: (flags & 1) !== 0 ? c.string.decode(state) : null,
337
336
  percentage: (flags & 2) !== 0 ? c.uint.decode(state) : 0,
@@ -369,13 +368,12 @@ const encoding7 = {
369
368
  }
370
369
  },
371
370
  decode(state) {
372
- const start = state.start
373
371
  const v = c.uint.decode(state)
374
- state.start = start
375
372
  switch (v) {
376
373
  case 0:
377
374
  case 1: {
378
375
  const decoded = encoding6.decode(state)
376
+ decoded.version = v
379
377
  return decoded
380
378
  }
381
379
  default:
@@ -410,14 +408,13 @@ const encoding8 = {
410
408
  if (m.agentId) c.string.encode(state, m.agentId)
411
409
  },
412
410
  decode(state) {
413
- const v = c.uint.decode(state)
414
411
  const r0 = encoding2.decode(state)
415
412
  const r1 = c.string.decode(state)
416
413
  const r2 = c.json.decode(state)
417
414
  const flags = c.uint.decode(state)
418
415
 
419
416
  return {
420
- version: v,
417
+ version: 0,
421
418
  status: r0,
422
419
  name: r1,
423
420
  arguments: r2,
@@ -454,13 +451,12 @@ const encoding9 = {
454
451
  }
455
452
  },
456
453
  decode(state) {
457
- const start = state.start
458
454
  const v = c.uint.decode(state)
459
- state.start = start
460
455
  switch (v) {
461
456
  case 0:
462
457
  case 1: {
463
458
  const decoded = encoding8.decode(state)
459
+ decoded.version = v
464
460
  return decoded
465
461
  }
466
462
  default:
@@ -478,11 +474,10 @@ const encoding10 = {
478
474
  c.string.encode(state, m.text)
479
475
  },
480
476
  decode(state) {
481
- const v = c.uint.decode(state)
482
477
  const r0 = c.string.decode(state)
483
478
 
484
479
  return {
485
- version: v,
480
+ version: 0,
486
481
  text: r0
487
482
  }
488
483
  }
@@ -515,13 +510,12 @@ const encoding11 = {
515
510
  }
516
511
  },
517
512
  decode(state) {
518
- const start = state.start
519
513
  const v = c.uint.decode(state)
520
- state.start = start
521
514
  switch (v) {
522
515
  case 0:
523
516
  case 1: {
524
517
  const decoded = encoding10.decode(state)
518
+ decoded.version = v
525
519
  return decoded
526
520
  }
527
521
  default:
@@ -560,13 +554,12 @@ const encoding13 = {
560
554
  }
561
555
  },
562
556
  decode(state) {
563
- const start = state.start
564
557
  const v = c.uint.decode(state)
565
- state.start = start
566
558
  switch (v) {
567
559
  case 0:
568
560
  case 1: {
569
561
  const decoded = encoding12.decode(state)
562
+ decoded.version = v
570
563
  return decoded
571
564
  }
572
565
  default:
@@ -605,13 +598,12 @@ const encoding15 = {
605
598
  }
606
599
  },
607
600
  decode(state) {
608
- const start = state.start
609
601
  const v = c.uint.decode(state)
610
- state.start = start
611
602
  switch (v) {
612
603
  case 0:
613
604
  case 1: {
614
605
  const decoded = encoding14.decode(state)
606
+ decoded.version = v
615
607
  return decoded
616
608
  }
617
609
  default:
@@ -637,12 +629,11 @@ const encoding16 = {
637
629
  if (m.arguments) c.json.encode(state, m.arguments)
638
630
  },
639
631
  decode(state) {
640
- const v = c.uint.decode(state)
641
632
  const r0 = c.string.decode(state)
642
633
  const flags = c.uint.decode(state)
643
634
 
644
635
  return {
645
- version: v,
636
+ version: 0,
646
637
  name: r0,
647
638
  arguments: (flags & 1) !== 0 ? c.json.decode(state) : null
648
639
  }
@@ -676,13 +667,12 @@ const encoding17 = {
676
667
  }
677
668
  },
678
669
  decode(state) {
679
- const start = state.start
680
670
  const v = c.uint.decode(state)
681
- state.start = start
682
671
  switch (v) {
683
672
  case 0:
684
673
  case 1: {
685
674
  const decoded = encoding16.decode(state)
675
+ decoded.version = v
686
676
  return decoded
687
677
  }
688
678
  default:
@@ -708,12 +698,11 @@ const encoding18 = {
708
698
  if (m.result) c.json.encode(state, m.result)
709
699
  },
710
700
  decode(state) {
711
- const v = c.uint.decode(state)
712
701
  const r0 = c.string.decode(state)
713
702
  const flags = c.uint.decode(state)
714
703
 
715
704
  return {
716
- version: v,
705
+ version: 0,
717
706
  name: r0,
718
707
  result: (flags & 1) !== 0 ? c.json.decode(state) : null
719
708
  }
@@ -747,13 +736,12 @@ const encoding19 = {
747
736
  }
748
737
  },
749
738
  decode(state) {
750
- const start = state.start
751
739
  const v = c.uint.decode(state)
752
- state.start = start
753
740
  switch (v) {
754
741
  case 0:
755
742
  case 1: {
756
743
  const decoded = encoding18.decode(state)
744
+ decoded.version = v
757
745
  return decoded
758
746
  }
759
747
  default:
@@ -789,7 +777,6 @@ const encoding20 = {
789
777
  if (m.deletedAt) c.uint.encode(state, m.deletedAt)
790
778
  },
791
779
  decode(state) {
792
- const v = c.uint.decode(state)
793
780
  const r0 = c.string.decode(state)
794
781
  const r1 = c.string.decode(state)
795
782
  const r2 = c.string.decode(state)
@@ -799,7 +786,7 @@ const encoding20 = {
799
786
  const flags = c.uint.decode(state)
800
787
 
801
788
  return {
802
- version: v,
789
+ version: 0,
803
790
  id: r0,
804
791
  fileName: r1,
805
792
  mimeType: r2,
@@ -838,13 +825,12 @@ const encoding21 = {
838
825
  }
839
826
  },
840
827
  decode(state) {
841
- const start = state.start
842
828
  const v = c.uint.decode(state)
843
- state.start = start
844
829
  switch (v) {
845
830
  case 0:
846
831
  case 1: {
847
832
  const decoded = encoding20.decode(state)
833
+ decoded.version = v
848
834
  return decoded
849
835
  }
850
836
  default:
@@ -862,11 +848,10 @@ const encoding22 = {
862
848
  c.string.encode(state, m.agentId)
863
849
  },
864
850
  decode(state) {
865
- const v = c.uint.decode(state)
866
851
  const r0 = c.string.decode(state)
867
852
 
868
853
  return {
869
- version: v,
854
+ version: 0,
870
855
  agentId: r0
871
856
  }
872
857
  }
@@ -899,13 +884,12 @@ const encoding23 = {
899
884
  }
900
885
  },
901
886
  decode(state) {
902
- const start = state.start
903
887
  const v = c.uint.decode(state)
904
- state.start = start
905
888
  switch (v) {
906
889
  case 0:
907
890
  case 1: {
908
891
  const decoded = encoding22.decode(state)
892
+ decoded.version = v
909
893
  return decoded
910
894
  }
911
895
  default:
@@ -979,12 +963,11 @@ const encoding25 = {
979
963
  if (m.notice) c.string.encode(state, m.notice)
980
964
  },
981
965
  decode(state) {
982
- const v = c.uint.decode(state)
983
966
  const r0 = encoding25_0.decode(state)
984
967
  const flags = c.uint.decode(state)
985
968
 
986
969
  return {
987
- version: v,
970
+ version: 0,
988
971
  sources: r0,
989
972
  notice: (flags & 1) !== 0 ? c.string.decode(state) : null
990
973
  }
@@ -1018,13 +1001,12 @@ const encoding26 = {
1018
1001
  }
1019
1002
  },
1020
1003
  decode(state) {
1021
- const start = state.start
1022
1004
  const v = c.uint.decode(state)
1023
- state.start = start
1024
1005
  switch (v) {
1025
1006
  case 0:
1026
1007
  case 1: {
1027
1008
  const decoded = encoding25.decode(state)
1009
+ decoded.version = v
1028
1010
  return decoded
1029
1011
  }
1030
1012
  default:
@@ -1132,13 +1114,12 @@ const encoding27 = {
1132
1114
  if (version >= 5 && m.compaction) encoding126.encode(state, m.compaction)
1133
1115
  },
1134
1116
  decode(state) {
1135
- const v = c.uint.decode(state)
1136
1117
  const r0 = c.string.decode(state)
1137
1118
  const r1 = c.string.decode(state)
1138
1119
  const flags = c.uint.decode(state)
1139
1120
 
1140
1121
  return {
1141
- version: v,
1122
+ version: 0,
1142
1123
  id: r0,
1143
1124
  chatId: r1,
1144
1125
  runId: (flags & 1) !== 0 ? c.string.decode(state) : null,
@@ -1194,13 +1175,12 @@ const encoding28 = {
1194
1175
  }
1195
1176
  },
1196
1177
  decode(state) {
1197
- const start = state.start
1198
1178
  const v = c.uint.decode(state)
1199
- state.start = start
1200
1179
  switch (v) {
1201
1180
  case 0:
1202
1181
  case 1: {
1203
1182
  const decoded = encoding27.decode(state)
1183
+ decoded.version = v
1204
1184
  return decoded
1205
1185
  }
1206
1186
  default:
@@ -1228,13 +1208,12 @@ const encoding29 = {
1228
1208
  if (version >= 5 && m.lastActivityAt) c.uint.encode(state, m.lastActivityAt)
1229
1209
  },
1230
1210
  decode(state) {
1231
- const v = c.uint.decode(state)
1232
1211
  const r0 = c.string.decode(state)
1233
1212
  const r1 = c.uint.decode(state)
1234
1213
  const flags = state.start < state.end ? c.uint.decode(state) : 0
1235
1214
 
1236
1215
  return {
1237
- version: v,
1216
+ version: 0,
1238
1217
  chatId: r0,
1239
1218
  count: r1,
1240
1219
  lastActivityAt: (version >= 5 && (flags & 1) !== 0) ? c.uint.decode(state) : 0
@@ -1269,13 +1248,12 @@ const encoding30 = {
1269
1248
  }
1270
1249
  },
1271
1250
  decode(state) {
1272
- const start = state.start
1273
1251
  const v = c.uint.decode(state)
1274
- state.start = start
1275
1252
  switch (v) {
1276
1253
  case 0:
1277
1254
  case 1: {
1278
1255
  const decoded = encoding29.decode(state)
1256
+ decoded.version = v
1279
1257
  return decoded
1280
1258
  }
1281
1259
  default:
@@ -1377,13 +1355,12 @@ const encoding31 = {
1377
1355
  if (version >= 5 && m.compaction) encoding126.encode(state, m.compaction)
1378
1356
  },
1379
1357
  decode(state) {
1380
- const v = c.uint.decode(state)
1381
1358
  const r0 = c.string.decode(state)
1382
1359
  const r1 = c.string.decode(state)
1383
1360
  const flags = c.uint.decode(state)
1384
1361
 
1385
1362
  return {
1386
- version: v,
1363
+ version: 0,
1387
1364
  id: r0,
1388
1365
  chatId: r1,
1389
1366
  runId: (flags & 1) !== 0 ? c.string.decode(state) : null,
@@ -1437,13 +1414,12 @@ const encoding32 = {
1437
1414
  }
1438
1415
  },
1439
1416
  decode(state) {
1440
- const start = state.start
1441
1417
  const v = c.uint.decode(state)
1442
- state.start = start
1443
1418
  switch (v) {
1444
1419
  case 0:
1445
1420
  case 1: {
1446
1421
  const decoded = encoding31.decode(state)
1422
+ decoded.version = v
1447
1423
  return decoded
1448
1424
  }
1449
1425
  default:
@@ -1473,13 +1449,12 @@ const encoding33 = {
1473
1449
  if (m.attachment) encoding21.encode(state, m.attachment)
1474
1450
  },
1475
1451
  decode(state) {
1476
- const v = c.uint.decode(state)
1477
1452
  const r0 = c.string.decode(state)
1478
1453
  const r1 = c.uint.decode(state)
1479
1454
  const flags = c.uint.decode(state)
1480
1455
 
1481
1456
  return {
1482
- version: v,
1457
+ version: 0,
1483
1458
  id: r0,
1484
1459
  updatedAt: r1,
1485
1460
  runStatus: (flags & 1) !== 0 ? encoding7.decode(state) : null,
@@ -1515,13 +1490,12 @@ const encoding34 = {
1515
1490
  }
1516
1491
  },
1517
1492
  decode(state) {
1518
- const start = state.start
1519
1493
  const v = c.uint.decode(state)
1520
- state.start = start
1521
1494
  switch (v) {
1522
1495
  case 0:
1523
1496
  case 1: {
1524
1497
  const decoded = encoding33.decode(state)
1498
+ decoded.version = v
1525
1499
  return decoded
1526
1500
  }
1527
1501
  default:
@@ -1545,12 +1519,11 @@ const encoding35 = {
1545
1519
  c.uint.encode(state, m.resolvedAt)
1546
1520
  },
1547
1521
  decode(state) {
1548
- const v = c.uint.decode(state)
1549
1522
  const r0 = c.string.decode(state)
1550
1523
  const flags = c.uint.decode(state)
1551
1524
 
1552
1525
  return {
1553
- version: v,
1526
+ version: 0,
1554
1527
  id: r0,
1555
1528
  approved: (flags & 1) !== 0,
1556
1529
  resolvedAt: c.uint.decode(state)
@@ -1585,13 +1558,12 @@ const encoding36 = {
1585
1558
  }
1586
1559
  },
1587
1560
  decode(state) {
1588
- const start = state.start
1589
1561
  const v = c.uint.decode(state)
1590
- state.start = start
1591
1562
  switch (v) {
1592
1563
  case 0:
1593
1564
  case 1: {
1594
1565
  const decoded = encoding35.decode(state)
1566
+ decoded.version = v
1595
1567
  return decoded
1596
1568
  }
1597
1569
  default:
@@ -1988,7 +1960,6 @@ const encoding43 = {
1988
1960
  if (version >= 3 && m.disabledToolsets) encoding43_24.encode(state, m.disabledToolsets)
1989
1961
  },
1990
1962
  decode(state) {
1991
- const v = c.uint.decode(state)
1992
1963
  const r0 = c.string.decode(state)
1993
1964
  const r1 = c.string.decode(state)
1994
1965
  const r2 = c.string.decode(state)
@@ -1998,7 +1969,7 @@ const encoding43 = {
1998
1969
  const flags = c.uint.decode(state)
1999
1970
 
2000
1971
  return {
2001
- version: v,
1972
+ version: 0,
2002
1973
  id: r0,
2003
1974
  name: r1,
2004
1975
  bio: r2,
@@ -2055,13 +2026,12 @@ const encoding44 = {
2055
2026
  }
2056
2027
  },
2057
2028
  decode(state) {
2058
- const start = state.start
2059
2029
  const v = c.uint.decode(state)
2060
- state.start = start
2061
2030
  switch (v) {
2062
2031
  case 0:
2063
2032
  case 1: {
2064
2033
  const decoded = encoding43.decode(state)
2034
+ decoded.version = v
2065
2035
  return decoded
2066
2036
  }
2067
2037
  default:
@@ -2108,7 +2078,6 @@ const encoding45 = {
2108
2078
  if (version >= 6 && m.rankedAt) c.uint.encode(state, m.rankedAt)
2109
2079
  },
2110
2080
  decode(state) {
2111
- const v = c.uint.decode(state)
2112
2081
  const r0 = c.string.decode(state)
2113
2082
  const r1 = c.string.decode(state)
2114
2083
  const r2 = c.string.decode(state)
@@ -2116,7 +2085,7 @@ const encoding45 = {
2116
2085
  const flags = c.uint.decode(state)
2117
2086
 
2118
2087
  return {
2119
- version: v,
2088
+ version: 0,
2120
2089
  id: r0,
2121
2090
  agentId: r1,
2122
2091
  title: r2,
@@ -2159,13 +2128,12 @@ const encoding46 = {
2159
2128
  }
2160
2129
  },
2161
2130
  decode(state) {
2162
- const start = state.start
2163
2131
  const v = c.uint.decode(state)
2164
- state.start = start
2165
2132
  switch (v) {
2166
2133
  case 0:
2167
2134
  case 1: {
2168
2135
  const decoded = encoding45.decode(state)
2136
+ decoded.version = v
2169
2137
  return decoded
2170
2138
  }
2171
2139
  default:
@@ -2276,7 +2244,6 @@ const encoding47 = {
2276
2244
  if (version >= 4 && m.attestedAt) c.uint.encode(state, m.attestedAt)
2277
2245
  },
2278
2246
  decode(state) {
2279
- const v = c.uint.decode(state)
2280
2247
  const r0 = c.fixed32.decode(state)
2281
2248
  const r1 = c.string.decode(state)
2282
2249
  const r2 = c.uint.decode(state)
@@ -2285,7 +2252,7 @@ const encoding47 = {
2285
2252
  const flags = c.uint.decode(state)
2286
2253
 
2287
2254
  return {
2288
- version: v,
2255
+ version: 0,
2289
2256
  id: r0,
2290
2257
  name: r1,
2291
2258
  joinedAt: r2,
@@ -2339,13 +2306,12 @@ const encoding48 = {
2339
2306
  }
2340
2307
  },
2341
2308
  decode(state) {
2342
- const start = state.start
2343
2309
  const v = c.uint.decode(state)
2344
- state.start = start
2345
2310
  switch (v) {
2346
2311
  case 0:
2347
2312
  case 1: {
2348
2313
  const decoded = encoding47.decode(state)
2314
+ decoded.version = v
2349
2315
  return decoded
2350
2316
  }
2351
2317
  default:
@@ -2371,12 +2337,11 @@ const encoding49 = {
2371
2337
  if (m.device) encoding48.encode(state, m.device)
2372
2338
  },
2373
2339
  decode(state) {
2374
- const v = c.uint.decode(state)
2375
2340
  const r0 = c.buffer.decode(state)
2376
2341
  const flags = c.uint.decode(state)
2377
2342
 
2378
2343
  return {
2379
- version: v,
2344
+ version: 0,
2380
2345
  writerKey: r0,
2381
2346
  device: (flags & 1) !== 0 ? encoding48.decode(state) : null
2382
2347
  }
@@ -2410,13 +2375,12 @@ const encoding50 = {
2410
2375
  }
2411
2376
  },
2412
2377
  decode(state) {
2413
- const start = state.start
2414
2378
  const v = c.uint.decode(state)
2415
- state.start = start
2416
2379
  switch (v) {
2417
2380
  case 0:
2418
2381
  case 1: {
2419
2382
  const decoded = encoding49.decode(state)
2383
+ decoded.version = v
2420
2384
  return decoded
2421
2385
  }
2422
2386
  default:
@@ -2444,12 +2408,11 @@ const encoding51 = {
2444
2408
  if (m.revokedAt) c.uint.encode(state, m.revokedAt)
2445
2409
  },
2446
2410
  decode(state) {
2447
- const v = c.uint.decode(state)
2448
2411
  const r0 = c.buffer.decode(state)
2449
2412
  const flags = c.uint.decode(state)
2450
2413
 
2451
2414
  return {
2452
- version: v,
2415
+ version: 0,
2453
2416
  writerKey: r0,
2454
2417
  deviceId: (flags & 1) !== 0 ? c.fixed32.decode(state) : null,
2455
2418
  revokedAt: (flags & 2) !== 0 ? c.uint.decode(state) : 0
@@ -2484,13 +2447,12 @@ const encoding52 = {
2484
2447
  }
2485
2448
  },
2486
2449
  decode(state) {
2487
- const start = state.start
2488
2450
  const v = c.uint.decode(state)
2489
- state.start = start
2490
2451
  switch (v) {
2491
2452
  case 0:
2492
2453
  case 1: {
2493
2454
  const decoded = encoding51.decode(state)
2455
+ decoded.version = v
2494
2456
  return decoded
2495
2457
  }
2496
2458
  default:
@@ -2518,12 +2480,11 @@ const encoding53 = {
2518
2480
  if (m.deviceId) c.fixed32.encode(state, m.deviceId)
2519
2481
  },
2520
2482
  decode(state) {
2521
- const v = c.uint.decode(state)
2522
2483
  const r0 = c.buffer.decode(state)
2523
2484
  const flags = c.uint.decode(state)
2524
2485
 
2525
2486
  return {
2526
- version: v,
2487
+ version: 0,
2527
2488
  signature: r0,
2528
2489
  device: (flags & 1) !== 0 ? encoding48.decode(state) : null,
2529
2490
  deviceId: (flags & 2) !== 0 ? c.fixed32.decode(state) : null
@@ -2558,13 +2519,12 @@ const encoding54 = {
2558
2519
  }
2559
2520
  },
2560
2521
  decode(state) {
2561
- const start = state.start
2562
2522
  const v = c.uint.decode(state)
2563
- state.start = start
2564
2523
  switch (v) {
2565
2524
  case 0:
2566
2525
  case 1: {
2567
2526
  const decoded = encoding53.decode(state)
2527
+ decoded.version = v
2568
2528
  return decoded
2569
2529
  }
2570
2530
  default:
@@ -2582,11 +2542,10 @@ const encoding55 = {
2582
2542
  encoding48.encode(state, m.device)
2583
2543
  },
2584
2544
  decode(state) {
2585
- const v = c.uint.decode(state)
2586
2545
  const r0 = encoding48.decode(state)
2587
2546
 
2588
2547
  return {
2589
- version: v,
2548
+ version: 0,
2590
2549
  device: r0
2591
2550
  }
2592
2551
  }
@@ -2619,13 +2578,12 @@ const encoding56 = {
2619
2578
  }
2620
2579
  },
2621
2580
  decode(state) {
2622
- const start = state.start
2623
2581
  const v = c.uint.decode(state)
2624
- state.start = start
2625
2582
  switch (v) {
2626
2583
  case 0:
2627
2584
  case 1: {
2628
2585
  const decoded = encoding55.decode(state)
2586
+ decoded.version = v
2629
2587
  return decoded
2630
2588
  }
2631
2589
  default:
@@ -2664,13 +2622,12 @@ const encoding58 = {
2664
2622
  }
2665
2623
  },
2666
2624
  decode(state) {
2667
- const start = state.start
2668
2625
  const v = c.uint.decode(state)
2669
- state.start = start
2670
2626
  switch (v) {
2671
2627
  case 0:
2672
2628
  case 1: {
2673
2629
  const decoded = encoding57.decode(state)
2630
+ decoded.version = v
2674
2631
  return decoded
2675
2632
  }
2676
2633
  default:
@@ -2723,12 +2680,11 @@ const encoding59 = {
2723
2680
  if (version >= 4 && m.toolCatalog) encoding59_6.encode(state, m.toolCatalog)
2724
2681
  },
2725
2682
  decode(state) {
2726
- const v = c.uint.decode(state)
2727
2683
  const r0 = c.fixed32.decode(state)
2728
2684
  const flags = c.uint.decode(state)
2729
2685
 
2730
2686
  return {
2731
- version: v,
2687
+ version: 0,
2732
2688
  deviceId: r0,
2733
2689
  installedToolNames: (flags & 1) !== 0 ? encoding59_1.decode(state) : null,
2734
2690
  installedSkillNames: (flags & 2) !== 0 ? encoding59_2.decode(state) : null,
@@ -2767,13 +2723,12 @@ const encoding60 = {
2767
2723
  }
2768
2724
  },
2769
2725
  decode(state) {
2770
- const start = state.start
2771
2726
  const v = c.uint.decode(state)
2772
- state.start = start
2773
2727
  switch (v) {
2774
2728
  case 0:
2775
2729
  case 1: {
2776
2730
  const decoded = encoding59.decode(state)
2731
+ decoded.version = v
2777
2732
  return decoded
2778
2733
  }
2779
2734
  default:
@@ -2791,11 +2746,10 @@ const encoding61 = {
2791
2746
  encoding44.encode(state, m.agent)
2792
2747
  },
2793
2748
  decode(state) {
2794
- const v = c.uint.decode(state)
2795
2749
  const r0 = encoding44.decode(state)
2796
2750
 
2797
2751
  return {
2798
- version: v,
2752
+ version: 0,
2799
2753
  agent: r0
2800
2754
  }
2801
2755
  }
@@ -2828,13 +2782,12 @@ const encoding62 = {
2828
2782
  }
2829
2783
  },
2830
2784
  decode(state) {
2831
- const start = state.start
2832
2785
  const v = c.uint.decode(state)
2833
- state.start = start
2834
2786
  switch (v) {
2835
2787
  case 0:
2836
2788
  case 1: {
2837
2789
  const decoded = encoding61.decode(state)
2790
+ decoded.version = v
2838
2791
  return decoded
2839
2792
  }
2840
2793
  default:
@@ -2852,11 +2805,10 @@ const encoding63 = {
2852
2805
  encoding46.encode(state, m.chat)
2853
2806
  },
2854
2807
  decode(state) {
2855
- const v = c.uint.decode(state)
2856
2808
  const r0 = encoding46.decode(state)
2857
2809
 
2858
2810
  return {
2859
- version: v,
2811
+ version: 0,
2860
2812
  chat: r0
2861
2813
  }
2862
2814
  }
@@ -2889,13 +2841,12 @@ const encoding64 = {
2889
2841
  }
2890
2842
  },
2891
2843
  decode(state) {
2892
- const start = state.start
2893
2844
  const v = c.uint.decode(state)
2894
- state.start = start
2895
2845
  switch (v) {
2896
2846
  case 0:
2897
2847
  case 1: {
2898
2848
  const decoded = encoding63.decode(state)
2849
+ decoded.version = v
2899
2850
  return decoded
2900
2851
  }
2901
2852
  default:
@@ -2976,12 +2927,11 @@ const encoding66 = {
2976
2927
  if (version >= 3 && m.effect) c.string.encode(state, m.effect)
2977
2928
  },
2978
2929
  decode(state) {
2979
- const v = c.uint.decode(state)
2980
2930
  const r0 = c.string.decode(state)
2981
2931
  const flags = c.uint.decode(state)
2982
2932
 
2983
2933
  return {
2984
- version: v,
2934
+ version: 0,
2985
2935
  id: r0,
2986
2936
  toolName: (flags & 1) !== 0 ? c.string.decode(state) : null,
2987
2937
  resourceKind: (flags & 2) !== 0 ? c.string.decode(state) : null,
@@ -3023,13 +2973,12 @@ const encoding67 = {
3023
2973
  }
3024
2974
  },
3025
2975
  decode(state) {
3026
- const start = state.start
3027
2976
  const v = c.uint.decode(state)
3028
- state.start = start
3029
2977
  switch (v) {
3030
2978
  case 0:
3031
2979
  case 1: {
3032
2980
  const decoded = encoding66.decode(state)
2981
+ decoded.version = v
3033
2982
  return decoded
3034
2983
  }
3035
2984
  default:
@@ -3047,11 +2996,10 @@ const encoding68 = {
3047
2996
  encoding67.encode(state, m.rule)
3048
2997
  },
3049
2998
  decode(state) {
3050
- const v = c.uint.decode(state)
3051
2999
  const r0 = encoding67.decode(state)
3052
3000
 
3053
3001
  return {
3054
- version: v,
3002
+ version: 0,
3055
3003
  rule: r0
3056
3004
  }
3057
3005
  }
@@ -3084,13 +3032,12 @@ const encoding69 = {
3084
3032
  }
3085
3033
  },
3086
3034
  decode(state) {
3087
- const start = state.start
3088
3035
  const v = c.uint.decode(state)
3089
- state.start = start
3090
3036
  switch (v) {
3091
3037
  case 0:
3092
3038
  case 1: {
3093
3039
  const decoded = encoding68.decode(state)
3040
+ decoded.version = v
3094
3041
  return decoded
3095
3042
  }
3096
3043
  default:
@@ -3108,11 +3055,10 @@ const encoding70 = {
3108
3055
  c.buffer.encode(state, m.key)
3109
3056
  },
3110
3057
  decode(state) {
3111
- const v = c.uint.decode(state)
3112
3058
  const r0 = c.buffer.decode(state)
3113
3059
 
3114
3060
  return {
3115
- version: v,
3061
+ version: 0,
3116
3062
  key: r0
3117
3063
  }
3118
3064
  }
@@ -3145,13 +3091,12 @@ const encoding71 = {
3145
3091
  }
3146
3092
  },
3147
3093
  decode(state) {
3148
- const start = state.start
3149
3094
  const v = c.uint.decode(state)
3150
- state.start = start
3151
3095
  switch (v) {
3152
3096
  case 0:
3153
3097
  case 1: {
3154
3098
  const decoded = encoding70.decode(state)
3099
+ decoded.version = v
3155
3100
  return decoded
3156
3101
  }
3157
3102
  default:
@@ -3211,13 +3156,12 @@ const encoding73 = {
3211
3156
  if (m.blindPeers) encoding73_4.encode(state, m.blindPeers)
3212
3157
  },
3213
3158
  decode(state) {
3214
- const v = c.uint.decode(state)
3215
3159
  const r0 = c.fixed32.decode(state)
3216
3160
  const r1 = c.fixed32.decode(state)
3217
3161
  const flags = c.uint.decode(state)
3218
3162
 
3219
3163
  return {
3220
- version: v,
3164
+ version: 0,
3221
3165
  meshKey: r0,
3222
3166
  seed: r1,
3223
3167
  fastForward: (flags & 1) !== 0 ? encoding73_2.decode(state) : null,
@@ -3254,13 +3198,12 @@ const encoding74 = {
3254
3198
  }
3255
3199
  },
3256
3200
  decode(state) {
3257
- const start = state.start
3258
3201
  const v = c.uint.decode(state)
3259
- state.start = start
3260
3202
  switch (v) {
3261
3203
  case 0:
3262
3204
  case 1: {
3263
3205
  const decoded = encoding73.decode(state)
3206
+ decoded.version = v
3264
3207
  return decoded
3265
3208
  }
3266
3209
  default:
@@ -3291,13 +3234,12 @@ const encoding75 = {
3291
3234
  if (m.blindPeers) encoding75_2.encode(state, m.blindPeers)
3292
3235
  },
3293
3236
  decode(state) {
3294
- const v = c.uint.decode(state)
3295
3237
  const r0 = encoding44.decode(state)
3296
3238
  const r1 = encoding46.decode(state)
3297
3239
  const flags = c.uint.decode(state)
3298
3240
 
3299
3241
  return {
3300
- version: v,
3242
+ version: 0,
3301
3243
  agent: r0,
3302
3244
  chat: r1,
3303
3245
  blindPeers: (flags & 1) !== 0 ? encoding75_2.decode(state) : null
@@ -3332,13 +3274,12 @@ const encoding76 = {
3332
3274
  }
3333
3275
  },
3334
3276
  decode(state) {
3335
- const start = state.start
3336
3277
  const v = c.uint.decode(state)
3337
- state.start = start
3338
3278
  switch (v) {
3339
3279
  case 0:
3340
3280
  case 1: {
3341
3281
  const decoded = encoding75.decode(state)
3282
+ decoded.version = v
3342
3283
  return decoded
3343
3284
  }
3344
3285
  default:
@@ -3378,7 +3319,6 @@ const encoding77 = {
3378
3319
  if (m.deletedAt) c.uint.encode(state, m.deletedAt)
3379
3320
  },
3380
3321
  decode(state) {
3381
- const v = c.uint.decode(state)
3382
3322
  const r0 = c.string.decode(state)
3383
3323
  const r1 = c.string.decode(state)
3384
3324
  const r2 = c.string.decode(state)
@@ -3390,7 +3330,7 @@ const encoding77 = {
3390
3330
  const flags = c.uint.decode(state)
3391
3331
 
3392
3332
  return {
3393
- version: v,
3333
+ version: 0,
3394
3334
  id: r0,
3395
3335
  chatId: r1,
3396
3336
  fileName: r2,
@@ -3431,13 +3371,12 @@ const encoding78 = {
3431
3371
  }
3432
3372
  },
3433
3373
  decode(state) {
3434
- const start = state.start
3435
3374
  const v = c.uint.decode(state)
3436
- state.start = start
3437
3375
  switch (v) {
3438
3376
  case 0:
3439
3377
  case 1: {
3440
3378
  const decoded = encoding77.decode(state)
3379
+ decoded.version = v
3441
3380
  return decoded
3442
3381
  }
3443
3382
  default:
@@ -3455,11 +3394,10 @@ const encoding79 = {
3455
3394
  encoding78.encode(state, m.knowledge)
3456
3395
  },
3457
3396
  decode(state) {
3458
- const v = c.uint.decode(state)
3459
3397
  const r0 = encoding78.decode(state)
3460
3398
 
3461
3399
  return {
3462
- version: v,
3400
+ version: 0,
3463
3401
  knowledge: r0
3464
3402
  }
3465
3403
  }
@@ -3492,13 +3430,12 @@ const encoding80 = {
3492
3430
  }
3493
3431
  },
3494
3432
  decode(state) {
3495
- const start = state.start
3496
3433
  const v = c.uint.decode(state)
3497
- state.start = start
3498
3434
  switch (v) {
3499
3435
  case 0:
3500
3436
  case 1: {
3501
3437
  const decoded = encoding79.decode(state)
3438
+ decoded.version = v
3502
3439
  return decoded
3503
3440
  }
3504
3441
  default:
@@ -3518,12 +3455,11 @@ const encoding81 = {
3518
3455
  c.uint.encode(state, m.at)
3519
3456
  },
3520
3457
  decode(state) {
3521
- const v = c.uint.decode(state)
3522
3458
  const r0 = c.string.decode(state)
3523
3459
  const r1 = c.uint.decode(state)
3524
3460
 
3525
3461
  return {
3526
- version: v,
3462
+ version: 0,
3527
3463
  knowledgeId: r0,
3528
3464
  at: r1
3529
3465
  }
@@ -3557,13 +3493,12 @@ const encoding82 = {
3557
3493
  }
3558
3494
  },
3559
3495
  decode(state) {
3560
- const start = state.start
3561
3496
  const v = c.uint.decode(state)
3562
- state.start = start
3563
3497
  switch (v) {
3564
3498
  case 0:
3565
3499
  case 1: {
3566
3500
  const decoded = encoding81.decode(state)
3501
+ decoded.version = v
3567
3502
  return decoded
3568
3503
  }
3569
3504
  default:
@@ -3593,7 +3528,6 @@ const encoding83 = {
3593
3528
  c.uint.encode(state, m.createdAt)
3594
3529
  },
3595
3530
  decode(state) {
3596
- const v = c.uint.decode(state)
3597
3531
  const r0 = c.string.decode(state)
3598
3532
  const r1 = c.string.decode(state)
3599
3533
  const r2 = c.string.decode(state)
@@ -3603,7 +3537,7 @@ const encoding83 = {
3603
3537
  const r6 = c.uint.decode(state)
3604
3538
 
3605
3539
  return {
3606
- version: v,
3540
+ version: 0,
3607
3541
  id: r0,
3608
3542
  knowledgeId: r1,
3609
3543
  sourceHash: r2,
@@ -3642,13 +3576,12 @@ const encoding84 = {
3642
3576
  }
3643
3577
  },
3644
3578
  decode(state) {
3645
- const start = state.start
3646
3579
  const v = c.uint.decode(state)
3647
- state.start = start
3648
3580
  switch (v) {
3649
3581
  case 0:
3650
3582
  case 1: {
3651
3583
  const decoded = encoding83.decode(state)
3584
+ decoded.version = v
3652
3585
  return decoded
3653
3586
  }
3654
3587
  default:
@@ -3666,11 +3599,10 @@ const encoding85 = {
3666
3599
  encoding84.encode(state, m.artifact)
3667
3600
  },
3668
3601
  decode(state) {
3669
- const v = c.uint.decode(state)
3670
3602
  const r0 = encoding84.decode(state)
3671
3603
 
3672
3604
  return {
3673
- version: v,
3605
+ version: 0,
3674
3606
  artifact: r0
3675
3607
  }
3676
3608
  }
@@ -3703,13 +3635,12 @@ const encoding86 = {
3703
3635
  }
3704
3636
  },
3705
3637
  decode(state) {
3706
- const start = state.start
3707
3638
  const v = c.uint.decode(state)
3708
- state.start = start
3709
3639
  switch (v) {
3710
3640
  case 0:
3711
3641
  case 1: {
3712
3642
  const decoded = encoding85.decode(state)
3643
+ decoded.version = v
3713
3644
  return decoded
3714
3645
  }
3715
3646
  default:
@@ -3821,7 +3752,6 @@ const encoding89 = {
3821
3752
  if (m.error) c.string.encode(state, m.error)
3822
3753
  },
3823
3754
  decode(state) {
3824
- const v = c.uint.decode(state)
3825
3755
  const r0 = c.string.decode(state)
3826
3756
  const r1 = c.string.decode(state)
3827
3757
  const r2 = c.string.decode(state)
@@ -3833,7 +3763,7 @@ const encoding89 = {
3833
3763
  const flags = c.uint.decode(state)
3834
3764
 
3835
3765
  return {
3836
- version: v,
3766
+ version: 0,
3837
3767
  id: r0,
3838
3768
  knowledgeId: r1,
3839
3769
  chatId: r2,
@@ -3874,13 +3804,12 @@ const encoding90 = {
3874
3804
  }
3875
3805
  },
3876
3806
  decode(state) {
3877
- const start = state.start
3878
3807
  const v = c.uint.decode(state)
3879
- state.start = start
3880
3808
  switch (v) {
3881
3809
  case 0:
3882
3810
  case 1: {
3883
3811
  const decoded = encoding89.decode(state)
3812
+ decoded.version = v
3884
3813
  return decoded
3885
3814
  }
3886
3815
  default:
@@ -3904,14 +3833,13 @@ const encoding91 = {
3904
3833
  c.uint.encode(state, m.at)
3905
3834
  },
3906
3835
  decode(state) {
3907
- const v = c.uint.decode(state)
3908
3836
  const r0 = c.string.decode(state)
3909
3837
  const r1 = c.string.decode(state)
3910
3838
  const r2 = c.string.decode(state)
3911
3839
  const r3 = c.uint.decode(state)
3912
3840
 
3913
3841
  return {
3914
- version: v,
3842
+ version: 0,
3915
3843
  id: r0,
3916
3844
  knowledgeId: r1,
3917
3845
  claimId: r2,
@@ -3947,13 +3875,12 @@ const encoding92 = {
3947
3875
  }
3948
3876
  },
3949
3877
  decode(state) {
3950
- const start = state.start
3951
3878
  const v = c.uint.decode(state)
3952
- state.start = start
3953
3879
  switch (v) {
3954
3880
  case 0:
3955
3881
  case 1: {
3956
3882
  const decoded = encoding91.decode(state)
3883
+ decoded.version = v
3957
3884
  return decoded
3958
3885
  }
3959
3886
  default:
@@ -3983,14 +3910,13 @@ const encoding93 = {
3983
3910
  if (m.error) c.string.encode(state, m.error)
3984
3911
  },
3985
3912
  decode(state) {
3986
- const v = c.uint.decode(state)
3987
3913
  const r0 = c.string.decode(state)
3988
3914
  const r1 = c.string.decode(state)
3989
3915
  const r2 = encoding88.decode(state)
3990
3916
  const flags = c.uint.decode(state)
3991
3917
 
3992
3918
  return {
3993
- version: v,
3919
+ version: 0,
3994
3920
  id: r0,
3995
3921
  claimId: r1,
3996
3922
  status: r2,
@@ -4026,13 +3952,12 @@ const encoding94 = {
4026
3952
  }
4027
3953
  },
4028
3954
  decode(state) {
4029
- const start = state.start
4030
3955
  const v = c.uint.decode(state)
4031
- state.start = start
4032
3956
  switch (v) {
4033
3957
  case 0:
4034
3958
  case 1: {
4035
3959
  const decoded = encoding93.decode(state)
3960
+ decoded.version = v
4036
3961
  return decoded
4037
3962
  }
4038
3963
  default:
@@ -4062,14 +3987,13 @@ const encoding95 = {
4062
3987
  if (version >= 3 && m.platform) c.string.encode(state, m.platform)
4063
3988
  },
4064
3989
  decode(state) {
4065
- const v = c.uint.decode(state)
4066
3990
  const r0 = c.fixed32.decode(state)
4067
3991
  const r1 = encoding38.decode(state)
4068
3992
  const r2 = c.string.decode(state)
4069
3993
  const flags = state.start < state.end ? c.uint.decode(state) : 0
4070
3994
 
4071
3995
  return {
4072
- version: v,
3996
+ version: 0,
4073
3997
  deviceId: r0,
4074
3998
  capabilityProfile: r1,
4075
3999
  recommendedModelName: r2,
@@ -4105,13 +4029,12 @@ const encoding96 = {
4105
4029
  }
4106
4030
  },
4107
4031
  decode(state) {
4108
- const start = state.start
4109
4032
  const v = c.uint.decode(state)
4110
- state.start = start
4111
4033
  switch (v) {
4112
4034
  case 0:
4113
4035
  case 1: {
4114
4036
  const decoded = encoding95.decode(state)
4037
+ decoded.version = v
4115
4038
  return decoded
4116
4039
  }
4117
4040
  default:
@@ -4213,13 +4136,12 @@ const encoding99 = {
4213
4136
  encoding97.encode(state, m.appChannel)
4214
4137
  },
4215
4138
  decode(state) {
4216
- const v = c.uint.decode(state)
4217
4139
  const r0 = c.fixed32.decode(state)
4218
4140
  const r1 = c.string.decode(state)
4219
4141
  const flags = c.uint.decode(state)
4220
4142
 
4221
4143
  return {
4222
- version: v,
4144
+ version: 0,
4223
4145
  deviceId: r0,
4224
4146
  appVersion: r1,
4225
4147
  appBuild: (version >= 3 && (flags & 1) !== 0) ? c.string.decode(state) : null,
@@ -4255,13 +4177,12 @@ const encoding100 = {
4255
4177
  }
4256
4178
  },
4257
4179
  decode(state) {
4258
- const start = state.start
4259
4180
  const v = c.uint.decode(state)
4260
- state.start = start
4261
4181
  switch (v) {
4262
4182
  case 0:
4263
4183
  case 1: {
4264
4184
  const decoded = encoding99.decode(state)
4185
+ decoded.version = v
4265
4186
  return decoded
4266
4187
  }
4267
4188
  default:
@@ -4295,7 +4216,6 @@ const encoding101 = {
4295
4216
  if (version >= 3 && m.deletedAt) c.uint.encode(state, m.deletedAt)
4296
4217
  },
4297
4218
  decode(state) {
4298
- const v = c.uint.decode(state)
4299
4219
  const r0 = c.string.decode(state)
4300
4220
  const r1 = c.string.decode(state)
4301
4221
  const r2 = c.json.decode(state)
@@ -4304,7 +4224,7 @@ const encoding101 = {
4304
4224
  const flags = c.uint.decode(state)
4305
4225
 
4306
4226
  return {
4307
- version: v,
4227
+ version: 0,
4308
4228
  agentId: r0,
4309
4229
  toolName: r1,
4310
4230
  settings: r2,
@@ -4342,13 +4262,12 @@ const encoding102 = {
4342
4262
  }
4343
4263
  },
4344
4264
  decode(state) {
4345
- const start = state.start
4346
4265
  const v = c.uint.decode(state)
4347
- state.start = start
4348
4266
  switch (v) {
4349
4267
  case 0:
4350
4268
  case 1: {
4351
4269
  const decoded = encoding101.decode(state)
4270
+ decoded.version = v
4352
4271
  return decoded
4353
4272
  }
4354
4273
  default:
@@ -4366,11 +4285,10 @@ const encoding103 = {
4366
4285
  encoding102.encode(state, m.settings)
4367
4286
  },
4368
4287
  decode(state) {
4369
- const v = c.uint.decode(state)
4370
4288
  const r0 = encoding102.decode(state)
4371
4289
 
4372
4290
  return {
4373
- version: v,
4291
+ version: 0,
4374
4292
  settings: r0
4375
4293
  }
4376
4294
  }
@@ -4403,13 +4321,12 @@ const encoding104 = {
4403
4321
  }
4404
4322
  },
4405
4323
  decode(state) {
4406
- const start = state.start
4407
4324
  const v = c.uint.decode(state)
4408
- state.start = start
4409
4325
  switch (v) {
4410
4326
  case 0:
4411
4327
  case 1: {
4412
4328
  const decoded = encoding103.decode(state)
4329
+ decoded.version = v
4413
4330
  return decoded
4414
4331
  }
4415
4332
  default:
@@ -4514,14 +4431,13 @@ const encoding106 = {
4514
4431
  c.uint.encode(state, m.seq)
4515
4432
  },
4516
4433
  decode(state) {
4517
- const v = c.uint.decode(state)
4518
4434
  const r0 = c.string.decode(state)
4519
4435
  const r1 = c.string.decode(state)
4520
4436
  const r2 = c.fixed32.decode(state)
4521
4437
  const flags = c.uint.decode(state)
4522
4438
 
4523
4439
  return {
4524
- version: v,
4440
+ version: 0,
4525
4441
  id: r0,
4526
4442
  agentId: r1,
4527
4443
  originDeviceId: r2,
@@ -4565,13 +4481,12 @@ const encoding107 = {
4565
4481
  }
4566
4482
  },
4567
4483
  decode(state) {
4568
- const start = state.start
4569
4484
  const v = c.uint.decode(state)
4570
- state.start = start
4571
4485
  switch (v) {
4572
4486
  case 0:
4573
4487
  case 1: {
4574
4488
  const decoded = encoding106.decode(state)
4489
+ decoded.version = v
4575
4490
  return decoded
4576
4491
  }
4577
4492
  default:
@@ -4589,11 +4504,10 @@ const encoding108 = {
4589
4504
  encoding107.encode(state, m.activity)
4590
4505
  },
4591
4506
  decode(state) {
4592
- const v = c.uint.decode(state)
4593
4507
  const r0 = encoding107.decode(state)
4594
4508
 
4595
4509
  return {
4596
- version: v,
4510
+ version: 0,
4597
4511
  activity: r0
4598
4512
  }
4599
4513
  }
@@ -4626,13 +4540,12 @@ const encoding109 = {
4626
4540
  }
4627
4541
  },
4628
4542
  decode(state) {
4629
- const start = state.start
4630
4543
  const v = c.uint.decode(state)
4631
- state.start = start
4632
4544
  switch (v) {
4633
4545
  case 0:
4634
4546
  case 1: {
4635
4547
  const decoded = encoding108.decode(state)
4548
+ decoded.version = v
4636
4549
  return decoded
4637
4550
  }
4638
4551
  default:
@@ -4652,12 +4565,11 @@ const encoding110 = {
4652
4565
  c.uint.encode(state, m.count)
4653
4566
  },
4654
4567
  decode(state) {
4655
- const v = c.uint.decode(state)
4656
4568
  const r0 = c.string.decode(state)
4657
4569
  const r1 = c.uint.decode(state)
4658
4570
 
4659
4571
  return {
4660
- version: v,
4572
+ version: 0,
4661
4573
  agentId: r0,
4662
4574
  count: r1
4663
4575
  }
@@ -4691,13 +4603,12 @@ const encoding111 = {
4691
4603
  }
4692
4604
  },
4693
4605
  decode(state) {
4694
- const start = state.start
4695
4606
  const v = c.uint.decode(state)
4696
- state.start = start
4697
4607
  switch (v) {
4698
4608
  case 0:
4699
4609
  case 1: {
4700
4610
  const decoded = encoding110.decode(state)
4611
+ decoded.version = v
4701
4612
  return decoded
4702
4613
  }
4703
4614
  default:
@@ -4765,7 +4676,6 @@ const encoding113 = {
4765
4676
  c.uint.encode(state, flags)
4766
4677
  },
4767
4678
  decode(state) {
4768
- const v = c.uint.decode(state)
4769
4679
  const r0 = c.fixed32.decode(state)
4770
4680
  const r1 = c.uint.decode(state)
4771
4681
  const r2 = c.uint.decode(state)
@@ -4773,7 +4683,7 @@ const encoding113 = {
4773
4683
  const flags = state.start < state.end ? c.uint.decode(state) : 0
4774
4684
 
4775
4685
  return {
4776
- version: v,
4686
+ version: 0,
4777
4687
  writerKey: r0,
4778
4688
  length: r1,
4779
4689
  clock: r2,
@@ -4810,13 +4720,12 @@ const encoding114 = {
4810
4720
  }
4811
4721
  },
4812
4722
  decode(state) {
4813
- const start = state.start
4814
4723
  const v = c.uint.decode(state)
4815
- state.start = start
4816
4724
  switch (v) {
4817
4725
  case 0:
4818
4726
  case 1: {
4819
4727
  const decoded = encoding113.decode(state)
4728
+ decoded.version = v
4820
4729
  return decoded
4821
4730
  }
4822
4731
  default:
@@ -4836,12 +4745,11 @@ const encoding115 = {
4836
4745
  c.buffer.encode(state, m.signature)
4837
4746
  },
4838
4747
  decode(state) {
4839
- const v = c.uint.decode(state)
4840
4748
  const r0 = c.fixed32.decode(state)
4841
4749
  const r1 = c.buffer.decode(state)
4842
4750
 
4843
4751
  return {
4844
- version: v,
4752
+ version: 0,
4845
4753
  deviceId: r0,
4846
4754
  signature: r1
4847
4755
  }
@@ -4875,13 +4783,12 @@ const encoding116 = {
4875
4783
  }
4876
4784
  },
4877
4785
  decode(state) {
4878
- const start = state.start
4879
4786
  const v = c.uint.decode(state)
4880
- state.start = start
4881
4787
  switch (v) {
4882
4788
  case 0:
4883
4789
  case 1: {
4884
4790
  const decoded = encoding115.decode(state)
4791
+ decoded.version = v
4885
4792
  return decoded
4886
4793
  }
4887
4794
  default:
@@ -4905,14 +4812,13 @@ const encoding117 = {
4905
4812
  c.uint.encode(state, m.updatedAt)
4906
4813
  },
4907
4814
  decode(state) {
4908
- const v = c.uint.decode(state)
4909
4815
  const r0 = c.fixed32.decode(state)
4910
4816
  const r1 = c.string.decode(state)
4911
4817
  const r2 = c.uint.decode(state)
4912
4818
  const r3 = c.uint.decode(state)
4913
4819
 
4914
4820
  return {
4915
- version: v,
4821
+ version: 0,
4916
4822
  id: r0,
4917
4823
  name: r1,
4918
4824
  joinedAt: r2,
@@ -4948,13 +4854,12 @@ const encoding118 = {
4948
4854
  }
4949
4855
  },
4950
4856
  decode(state) {
4951
- const start = state.start
4952
4857
  const v = c.uint.decode(state)
4953
- state.start = start
4954
4858
  switch (v) {
4955
4859
  case 0:
4956
4860
  case 1: {
4957
4861
  const decoded = encoding117.decode(state)
4862
+ decoded.version = v
4958
4863
  return decoded
4959
4864
  }
4960
4865
  default:
@@ -4974,12 +4879,11 @@ const encoding119 = {
4974
4879
  c.buffer.encode(state, m.proof)
4975
4880
  },
4976
4881
  decode(state) {
4977
- const v = c.uint.decode(state)
4978
4882
  const r0 = encoding118.decode(state)
4979
4883
  const r1 = c.buffer.decode(state)
4980
4884
 
4981
4885
  return {
4982
- version: v,
4886
+ version: 0,
4983
4887
  member: r0,
4984
4888
  proof: r1
4985
4889
  }
@@ -5013,13 +4917,12 @@ const encoding120 = {
5013
4917
  }
5014
4918
  },
5015
4919
  decode(state) {
5016
- const start = state.start
5017
4920
  const v = c.uint.decode(state)
5018
- state.start = start
5019
4921
  switch (v) {
5020
4922
  case 0:
5021
4923
  case 1: {
5022
4924
  const decoded = encoding119.decode(state)
4925
+ decoded.version = v
5023
4926
  return decoded
5024
4927
  }
5025
4928
  default:
@@ -5037,11 +4940,10 @@ const encoding121 = {
5037
4940
  encoding118.encode(state, m.member)
5038
4941
  },
5039
4942
  decode(state) {
5040
- const v = c.uint.decode(state)
5041
4943
  const r0 = encoding118.decode(state)
5042
4944
 
5043
4945
  return {
5044
- version: v,
4946
+ version: 0,
5045
4947
  member: r0
5046
4948
  }
5047
4949
  }
@@ -5074,13 +4976,12 @@ const encoding122 = {
5074
4976
  }
5075
4977
  },
5076
4978
  decode(state) {
5077
- const start = state.start
5078
4979
  const v = c.uint.decode(state)
5079
- state.start = start
5080
4980
  switch (v) {
5081
4981
  case 0:
5082
4982
  case 1: {
5083
4983
  const decoded = encoding121.decode(state)
4984
+ decoded.version = v
5084
4985
  return decoded
5085
4986
  }
5086
4987
  default:
@@ -5104,14 +5005,13 @@ const encoding123 = {
5104
5005
  c.uint.encode(state, m.attestedAt)
5105
5006
  },
5106
5007
  decode(state) {
5107
- const v = c.uint.decode(state)
5108
5008
  const r0 = c.fixed32.decode(state)
5109
5009
  const r1 = c.fixed32.decode(state)
5110
5010
  const r2 = c.buffer.decode(state)
5111
5011
  const r3 = c.uint.decode(state)
5112
5012
 
5113
5013
  return {
5114
- version: v,
5014
+ version: 0,
5115
5015
  deviceId: r0,
5116
5016
  memberId: r1,
5117
5017
  proof: r2,
@@ -5147,13 +5047,12 @@ const encoding124 = {
5147
5047
  }
5148
5048
  },
5149
5049
  decode(state) {
5150
- const start = state.start
5151
5050
  const v = c.uint.decode(state)
5152
- state.start = start
5153
5051
  switch (v) {
5154
5052
  case 0:
5155
5053
  case 1: {
5156
5054
  const decoded = encoding123.decode(state)
5055
+ decoded.version = v
5157
5056
  return decoded
5158
5057
  }
5159
5058
  default:
@@ -5173,12 +5072,11 @@ const encoding125 = {
5173
5072
  c.string.encode(state, m.throughId)
5174
5073
  },
5175
5074
  decode(state) {
5176
- const v = c.uint.decode(state)
5177
5075
  const r0 = c.string.decode(state)
5178
5076
  const r1 = c.string.decode(state)
5179
5077
 
5180
5078
  return {
5181
- version: v,
5079
+ version: 0,
5182
5080
  summary: r0,
5183
5081
  throughId: r1
5184
5082
  }
@@ -5212,13 +5110,12 @@ const encoding126 = {
5212
5110
  }
5213
5111
  },
5214
5112
  decode(state) {
5215
- const start = state.start
5216
5113
  const v = c.uint.decode(state)
5217
- state.start = start
5218
5114
  switch (v) {
5219
5115
  case 0:
5220
5116
  case 1: {
5221
5117
  const decoded = encoding125.decode(state)
5118
+ decoded.version = v
5222
5119
  return decoded
5223
5120
  }
5224
5121
  default:
@@ -5252,7 +5149,6 @@ const encoding127 = {
5252
5149
  if (version >= 6 && m.rank) c.float64.encode(state, m.rank)
5253
5150
  },
5254
5151
  decode(state) {
5255
- const v = c.uint.decode(state)
5256
5152
  const r0 = c.string.decode(state)
5257
5153
  const r1 = c.string.decode(state)
5258
5154
  const r2 = c.uint.decode(state)
@@ -5260,7 +5156,7 @@ const encoding127 = {
5260
5156
  const flags = c.uint.decode(state)
5261
5157
 
5262
5158
  return {
5263
- version: v,
5159
+ version: 0,
5264
5160
  id: r0,
5265
5161
  name: r1,
5266
5162
  createdAt: r2,
@@ -5298,13 +5194,12 @@ const encoding128 = {
5298
5194
  }
5299
5195
  },
5300
5196
  decode(state) {
5301
- const start = state.start
5302
5197
  const v = c.uint.decode(state)
5303
- state.start = start
5304
5198
  switch (v) {
5305
5199
  case 0:
5306
5200
  case 1: {
5307
5201
  const decoded = encoding127.decode(state)
5202
+ decoded.version = v
5308
5203
  return decoded
5309
5204
  }
5310
5205
  default:
@@ -5322,11 +5217,10 @@ const encoding129 = {
5322
5217
  encoding128.encode(state, m.group)
5323
5218
  },
5324
5219
  decode(state) {
5325
- const v = c.uint.decode(state)
5326
5220
  const r0 = encoding128.decode(state)
5327
5221
 
5328
5222
  return {
5329
- version: v,
5223
+ version: 0,
5330
5224
  group: r0
5331
5225
  }
5332
5226
  }
@@ -5359,13 +5253,12 @@ const encoding130 = {
5359
5253
  }
5360
5254
  },
5361
5255
  decode(state) {
5362
- const start = state.start
5363
5256
  const v = c.uint.decode(state)
5364
- state.start = start
5365
5257
  switch (v) {
5366
5258
  case 0:
5367
5259
  case 1: {
5368
5260
  const decoded = encoding129.decode(state)
5261
+ decoded.version = v
5369
5262
  return decoded
5370
5263
  }
5371
5264
  default: