@rivetkit/engine-envoy-protocol 0.0.0-main.6151ab0 → 0.0.0-main.78336a1
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/index.d.ts +546 -4
- package/dist/index.js +1425 -89
- package/package.json +9 -2
package/dist/index.js
CHANGED
|
@@ -366,6 +366,813 @@ function writeKvResponseData(bc, x) {
|
|
|
366
366
|
}
|
|
367
367
|
}
|
|
368
368
|
}
|
|
369
|
+
function readSqlitePgno(bc) {
|
|
370
|
+
return bare.readU32(bc);
|
|
371
|
+
}
|
|
372
|
+
function writeSqlitePgno(bc, x) {
|
|
373
|
+
bare.writeU32(bc, x);
|
|
374
|
+
}
|
|
375
|
+
function readSqliteGeneration(bc) {
|
|
376
|
+
return bare.readU64(bc);
|
|
377
|
+
}
|
|
378
|
+
function writeSqliteGeneration(bc, x) {
|
|
379
|
+
bare.writeU64(bc, x);
|
|
380
|
+
}
|
|
381
|
+
function readSqlitePageBytes(bc) {
|
|
382
|
+
return bare.readData(bc);
|
|
383
|
+
}
|
|
384
|
+
function writeSqlitePageBytes(bc, x) {
|
|
385
|
+
bare.writeData(bc, x);
|
|
386
|
+
}
|
|
387
|
+
function readSqliteDirtyPage(bc) {
|
|
388
|
+
return {
|
|
389
|
+
pgno: readSqlitePgno(bc),
|
|
390
|
+
bytes: readSqlitePageBytes(bc)
|
|
391
|
+
};
|
|
392
|
+
}
|
|
393
|
+
function writeSqliteDirtyPage(bc, x) {
|
|
394
|
+
writeSqlitePgno(bc, x.pgno);
|
|
395
|
+
writeSqlitePageBytes(bc, x.bytes);
|
|
396
|
+
}
|
|
397
|
+
function read5(bc) {
|
|
398
|
+
return bare.readBool(bc) ? readSqlitePageBytes(bc) : null;
|
|
399
|
+
}
|
|
400
|
+
function write5(bc, x) {
|
|
401
|
+
bare.writeBool(bc, x != null);
|
|
402
|
+
if (x != null) {
|
|
403
|
+
writeSqlitePageBytes(bc, x);
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
function readSqliteFetchedPage(bc) {
|
|
407
|
+
return {
|
|
408
|
+
pgno: readSqlitePgno(bc),
|
|
409
|
+
bytes: read5(bc)
|
|
410
|
+
};
|
|
411
|
+
}
|
|
412
|
+
function writeSqliteFetchedPage(bc, x) {
|
|
413
|
+
writeSqlitePgno(bc, x.pgno);
|
|
414
|
+
write5(bc, x.bytes);
|
|
415
|
+
}
|
|
416
|
+
function read6(bc) {
|
|
417
|
+
const len = bare.readUintSafe(bc);
|
|
418
|
+
if (len === 0) {
|
|
419
|
+
return [];
|
|
420
|
+
}
|
|
421
|
+
const result = [readSqlitePgno(bc)];
|
|
422
|
+
for (let i = 1; i < len; i++) {
|
|
423
|
+
result[i] = readSqlitePgno(bc);
|
|
424
|
+
}
|
|
425
|
+
return result;
|
|
426
|
+
}
|
|
427
|
+
function write6(bc, x) {
|
|
428
|
+
bare.writeUintSafe(bc, x.length);
|
|
429
|
+
for (let i = 0; i < x.length; i++) {
|
|
430
|
+
writeSqlitePgno(bc, x[i]);
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
function readSqliteGetPagesRequest(bc) {
|
|
434
|
+
return {
|
|
435
|
+
actorId: readId(bc),
|
|
436
|
+
pgnos: read6(bc),
|
|
437
|
+
expectedGeneration: read2(bc),
|
|
438
|
+
expectedHeadTxid: read2(bc)
|
|
439
|
+
};
|
|
440
|
+
}
|
|
441
|
+
function writeSqliteGetPagesRequest(bc, x) {
|
|
442
|
+
writeId(bc, x.actorId);
|
|
443
|
+
write6(bc, x.pgnos);
|
|
444
|
+
write2(bc, x.expectedGeneration);
|
|
445
|
+
write2(bc, x.expectedHeadTxid);
|
|
446
|
+
}
|
|
447
|
+
function read7(bc) {
|
|
448
|
+
const len = bare.readUintSafe(bc);
|
|
449
|
+
if (len === 0) {
|
|
450
|
+
return [];
|
|
451
|
+
}
|
|
452
|
+
const result = [readSqliteFetchedPage(bc)];
|
|
453
|
+
for (let i = 1; i < len; i++) {
|
|
454
|
+
result[i] = readSqliteFetchedPage(bc);
|
|
455
|
+
}
|
|
456
|
+
return result;
|
|
457
|
+
}
|
|
458
|
+
function write7(bc, x) {
|
|
459
|
+
bare.writeUintSafe(bc, x.length);
|
|
460
|
+
for (let i = 0; i < x.length; i++) {
|
|
461
|
+
writeSqliteFetchedPage(bc, x[i]);
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
function readSqliteGetPagesOk(bc) {
|
|
465
|
+
return {
|
|
466
|
+
pages: read7(bc),
|
|
467
|
+
headTxid: read2(bc)
|
|
468
|
+
};
|
|
469
|
+
}
|
|
470
|
+
function writeSqliteGetPagesOk(bc, x) {
|
|
471
|
+
write7(bc, x.pages);
|
|
472
|
+
write2(bc, x.headTxid);
|
|
473
|
+
}
|
|
474
|
+
function readSqliteErrorResponse(bc) {
|
|
475
|
+
return {
|
|
476
|
+
group: bare.readString(bc),
|
|
477
|
+
code: bare.readString(bc),
|
|
478
|
+
message: bare.readString(bc)
|
|
479
|
+
};
|
|
480
|
+
}
|
|
481
|
+
function writeSqliteErrorResponse(bc, x) {
|
|
482
|
+
bare.writeString(bc, x.group);
|
|
483
|
+
bare.writeString(bc, x.code);
|
|
484
|
+
bare.writeString(bc, x.message);
|
|
485
|
+
}
|
|
486
|
+
function readSqliteGetPagesResponse(bc) {
|
|
487
|
+
const offset = bc.offset;
|
|
488
|
+
const tag = bare.readU8(bc);
|
|
489
|
+
switch (tag) {
|
|
490
|
+
case 0:
|
|
491
|
+
return { tag: "SqliteGetPagesOk", val: readSqliteGetPagesOk(bc) };
|
|
492
|
+
case 1:
|
|
493
|
+
return { tag: "SqliteErrorResponse", val: readSqliteErrorResponse(bc) };
|
|
494
|
+
default: {
|
|
495
|
+
bc.offset = offset;
|
|
496
|
+
throw new bare.BareError(offset, "invalid tag");
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
function writeSqliteGetPagesResponse(bc, x) {
|
|
501
|
+
switch (x.tag) {
|
|
502
|
+
case "SqliteGetPagesOk": {
|
|
503
|
+
bare.writeU8(bc, 0);
|
|
504
|
+
writeSqliteGetPagesOk(bc, x.val);
|
|
505
|
+
break;
|
|
506
|
+
}
|
|
507
|
+
case "SqliteErrorResponse": {
|
|
508
|
+
bare.writeU8(bc, 1);
|
|
509
|
+
writeSqliteErrorResponse(bc, x.val);
|
|
510
|
+
break;
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
function read8(bc) {
|
|
515
|
+
const len = bare.readUintSafe(bc);
|
|
516
|
+
if (len === 0) {
|
|
517
|
+
return [];
|
|
518
|
+
}
|
|
519
|
+
const result = [readSqliteDirtyPage(bc)];
|
|
520
|
+
for (let i = 1; i < len; i++) {
|
|
521
|
+
result[i] = readSqliteDirtyPage(bc);
|
|
522
|
+
}
|
|
523
|
+
return result;
|
|
524
|
+
}
|
|
525
|
+
function write8(bc, x) {
|
|
526
|
+
bare.writeUintSafe(bc, x.length);
|
|
527
|
+
for (let i = 0; i < x.length; i++) {
|
|
528
|
+
writeSqliteDirtyPage(bc, x[i]);
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
function readSqliteCommitRequest(bc) {
|
|
532
|
+
return {
|
|
533
|
+
actorId: readId(bc),
|
|
534
|
+
dirtyPages: read8(bc),
|
|
535
|
+
dbSizePages: bare.readU32(bc),
|
|
536
|
+
nowMs: bare.readI64(bc),
|
|
537
|
+
expectedGeneration: read2(bc),
|
|
538
|
+
expectedHeadTxid: read2(bc)
|
|
539
|
+
};
|
|
540
|
+
}
|
|
541
|
+
function writeSqliteCommitRequest(bc, x) {
|
|
542
|
+
writeId(bc, x.actorId);
|
|
543
|
+
write8(bc, x.dirtyPages);
|
|
544
|
+
bare.writeU32(bc, x.dbSizePages);
|
|
545
|
+
bare.writeI64(bc, x.nowMs);
|
|
546
|
+
write2(bc, x.expectedGeneration);
|
|
547
|
+
write2(bc, x.expectedHeadTxid);
|
|
548
|
+
}
|
|
549
|
+
function readSqliteCommitOk(bc) {
|
|
550
|
+
return {
|
|
551
|
+
headTxid: read2(bc)
|
|
552
|
+
};
|
|
553
|
+
}
|
|
554
|
+
function writeSqliteCommitOk(bc, x) {
|
|
555
|
+
write2(bc, x.headTxid);
|
|
556
|
+
}
|
|
557
|
+
function readSqliteCommitResponse(bc) {
|
|
558
|
+
const offset = bc.offset;
|
|
559
|
+
const tag = bare.readU8(bc);
|
|
560
|
+
switch (tag) {
|
|
561
|
+
case 0:
|
|
562
|
+
return { tag: "SqliteCommitOk", val: readSqliteCommitOk(bc) };
|
|
563
|
+
case 1:
|
|
564
|
+
return { tag: "SqliteErrorResponse", val: readSqliteErrorResponse(bc) };
|
|
565
|
+
default: {
|
|
566
|
+
bc.offset = offset;
|
|
567
|
+
throw new bare.BareError(offset, "invalid tag");
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
function writeSqliteCommitResponse(bc, x) {
|
|
572
|
+
switch (x.tag) {
|
|
573
|
+
case "SqliteCommitOk": {
|
|
574
|
+
bare.writeU8(bc, 0);
|
|
575
|
+
writeSqliteCommitOk(bc, x.val);
|
|
576
|
+
break;
|
|
577
|
+
}
|
|
578
|
+
case "SqliteErrorResponse": {
|
|
579
|
+
bare.writeU8(bc, 1);
|
|
580
|
+
writeSqliteErrorResponse(bc, x.val);
|
|
581
|
+
break;
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
function readSqliteCommitStageBeginRequest(bc) {
|
|
586
|
+
return {
|
|
587
|
+
actorId: readId(bc),
|
|
588
|
+
expectedGeneration: read2(bc),
|
|
589
|
+
expectedHeadTxid: read2(bc)
|
|
590
|
+
};
|
|
591
|
+
}
|
|
592
|
+
function writeSqliteCommitStageBeginRequest(bc, x) {
|
|
593
|
+
writeId(bc, x.actorId);
|
|
594
|
+
write2(bc, x.expectedGeneration);
|
|
595
|
+
write2(bc, x.expectedHeadTxid);
|
|
596
|
+
}
|
|
597
|
+
function readSqliteCommitStageBeginOk(bc) {
|
|
598
|
+
return {
|
|
599
|
+
txid: bare.readU64(bc)
|
|
600
|
+
};
|
|
601
|
+
}
|
|
602
|
+
function writeSqliteCommitStageBeginOk(bc, x) {
|
|
603
|
+
bare.writeU64(bc, x.txid);
|
|
604
|
+
}
|
|
605
|
+
function readSqliteCommitStageBeginResponse(bc) {
|
|
606
|
+
const offset = bc.offset;
|
|
607
|
+
const tag = bare.readU8(bc);
|
|
608
|
+
switch (tag) {
|
|
609
|
+
case 0:
|
|
610
|
+
return { tag: "SqliteCommitStageBeginOk", val: readSqliteCommitStageBeginOk(bc) };
|
|
611
|
+
case 1:
|
|
612
|
+
return { tag: "SqliteErrorResponse", val: readSqliteErrorResponse(bc) };
|
|
613
|
+
default: {
|
|
614
|
+
bc.offset = offset;
|
|
615
|
+
throw new bare.BareError(offset, "invalid tag");
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
function writeSqliteCommitStageBeginResponse(bc, x) {
|
|
620
|
+
switch (x.tag) {
|
|
621
|
+
case "SqliteCommitStageBeginOk": {
|
|
622
|
+
bare.writeU8(bc, 0);
|
|
623
|
+
writeSqliteCommitStageBeginOk(bc, x.val);
|
|
624
|
+
break;
|
|
625
|
+
}
|
|
626
|
+
case "SqliteErrorResponse": {
|
|
627
|
+
bare.writeU8(bc, 1);
|
|
628
|
+
writeSqliteErrorResponse(bc, x.val);
|
|
629
|
+
break;
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
function readSqliteCommitStageSegmentRequest(bc) {
|
|
634
|
+
return {
|
|
635
|
+
actorId: readId(bc),
|
|
636
|
+
expectedGeneration: read2(bc),
|
|
637
|
+
txid: bare.readU64(bc),
|
|
638
|
+
firstPgno: bare.readU32(bc),
|
|
639
|
+
dirtyPages: read8(bc)
|
|
640
|
+
};
|
|
641
|
+
}
|
|
642
|
+
function writeSqliteCommitStageSegmentRequest(bc, x) {
|
|
643
|
+
writeId(bc, x.actorId);
|
|
644
|
+
write2(bc, x.expectedGeneration);
|
|
645
|
+
bare.writeU64(bc, x.txid);
|
|
646
|
+
bare.writeU32(bc, x.firstPgno);
|
|
647
|
+
write8(bc, x.dirtyPages);
|
|
648
|
+
}
|
|
649
|
+
function readSqliteCommitStageSegmentOk(bc) {
|
|
650
|
+
return {
|
|
651
|
+
stagedBytes: bare.readU64(bc)
|
|
652
|
+
};
|
|
653
|
+
}
|
|
654
|
+
function writeSqliteCommitStageSegmentOk(bc, x) {
|
|
655
|
+
bare.writeU64(bc, x.stagedBytes);
|
|
656
|
+
}
|
|
657
|
+
function readSqliteCommitStageSegmentResponse(bc) {
|
|
658
|
+
const offset = bc.offset;
|
|
659
|
+
const tag = bare.readU8(bc);
|
|
660
|
+
switch (tag) {
|
|
661
|
+
case 0:
|
|
662
|
+
return { tag: "SqliteCommitStageSegmentOk", val: readSqliteCommitStageSegmentOk(bc) };
|
|
663
|
+
case 1:
|
|
664
|
+
return { tag: "SqliteErrorResponse", val: readSqliteErrorResponse(bc) };
|
|
665
|
+
default: {
|
|
666
|
+
bc.offset = offset;
|
|
667
|
+
throw new bare.BareError(offset, "invalid tag");
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
}
|
|
671
|
+
function writeSqliteCommitStageSegmentResponse(bc, x) {
|
|
672
|
+
switch (x.tag) {
|
|
673
|
+
case "SqliteCommitStageSegmentOk": {
|
|
674
|
+
bare.writeU8(bc, 0);
|
|
675
|
+
writeSqliteCommitStageSegmentOk(bc, x.val);
|
|
676
|
+
break;
|
|
677
|
+
}
|
|
678
|
+
case "SqliteErrorResponse": {
|
|
679
|
+
bare.writeU8(bc, 1);
|
|
680
|
+
writeSqliteErrorResponse(bc, x.val);
|
|
681
|
+
break;
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
function readSqliteCommitFinalizeRequest(bc) {
|
|
686
|
+
return {
|
|
687
|
+
actorId: readId(bc),
|
|
688
|
+
expectedGeneration: read2(bc),
|
|
689
|
+
txid: bare.readU64(bc),
|
|
690
|
+
newDbSizePages: bare.readU32(bc),
|
|
691
|
+
nowMs: bare.readI64(bc),
|
|
692
|
+
segmentFirstPgnos: bare.readU32Array(bc)
|
|
693
|
+
};
|
|
694
|
+
}
|
|
695
|
+
function writeSqliteCommitFinalizeRequest(bc, x) {
|
|
696
|
+
writeId(bc, x.actorId);
|
|
697
|
+
write2(bc, x.expectedGeneration);
|
|
698
|
+
bare.writeU64(bc, x.txid);
|
|
699
|
+
bare.writeU32(bc, x.newDbSizePages);
|
|
700
|
+
bare.writeI64(bc, x.nowMs);
|
|
701
|
+
bare.writeU32Array(bc, x.segmentFirstPgnos);
|
|
702
|
+
}
|
|
703
|
+
function readSqliteCommitFinalizeOk(bc) {
|
|
704
|
+
return {
|
|
705
|
+
headTxid: read2(bc)
|
|
706
|
+
};
|
|
707
|
+
}
|
|
708
|
+
function writeSqliteCommitFinalizeOk(bc, x) {
|
|
709
|
+
write2(bc, x.headTxid);
|
|
710
|
+
}
|
|
711
|
+
function readSqliteCommitFinalizeResponse(bc) {
|
|
712
|
+
const offset = bc.offset;
|
|
713
|
+
const tag = bare.readU8(bc);
|
|
714
|
+
switch (tag) {
|
|
715
|
+
case 0:
|
|
716
|
+
return { tag: "SqliteCommitFinalizeOk", val: readSqliteCommitFinalizeOk(bc) };
|
|
717
|
+
case 1:
|
|
718
|
+
return { tag: "SqliteErrorResponse", val: readSqliteErrorResponse(bc) };
|
|
719
|
+
default: {
|
|
720
|
+
bc.offset = offset;
|
|
721
|
+
throw new bare.BareError(offset, "invalid tag");
|
|
722
|
+
}
|
|
723
|
+
}
|
|
724
|
+
}
|
|
725
|
+
function writeSqliteCommitFinalizeResponse(bc, x) {
|
|
726
|
+
switch (x.tag) {
|
|
727
|
+
case "SqliteCommitFinalizeOk": {
|
|
728
|
+
bare.writeU8(bc, 0);
|
|
729
|
+
writeSqliteCommitFinalizeOk(bc, x.val);
|
|
730
|
+
break;
|
|
731
|
+
}
|
|
732
|
+
case "SqliteErrorResponse": {
|
|
733
|
+
bare.writeU8(bc, 1);
|
|
734
|
+
writeSqliteErrorResponse(bc, x.val);
|
|
735
|
+
break;
|
|
736
|
+
}
|
|
737
|
+
}
|
|
738
|
+
}
|
|
739
|
+
function readSqliteValueInteger(bc) {
|
|
740
|
+
return {
|
|
741
|
+
value: bare.readI64(bc)
|
|
742
|
+
};
|
|
743
|
+
}
|
|
744
|
+
function writeSqliteValueInteger(bc, x) {
|
|
745
|
+
bare.writeI64(bc, x.value);
|
|
746
|
+
}
|
|
747
|
+
function readSqliteValueFloat(bc) {
|
|
748
|
+
return {
|
|
749
|
+
value: bare.readFixedData(bc, 8)
|
|
750
|
+
};
|
|
751
|
+
}
|
|
752
|
+
function writeSqliteValueFloat(bc, x) {
|
|
753
|
+
{
|
|
754
|
+
assert(x.value.byteLength === 8);
|
|
755
|
+
bare.writeFixedData(bc, x.value);
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
function readSqliteValueText(bc) {
|
|
759
|
+
return {
|
|
760
|
+
value: bare.readString(bc)
|
|
761
|
+
};
|
|
762
|
+
}
|
|
763
|
+
function writeSqliteValueText(bc, x) {
|
|
764
|
+
bare.writeString(bc, x.value);
|
|
765
|
+
}
|
|
766
|
+
function readSqliteValueBlob(bc) {
|
|
767
|
+
return {
|
|
768
|
+
value: bare.readData(bc)
|
|
769
|
+
};
|
|
770
|
+
}
|
|
771
|
+
function writeSqliteValueBlob(bc, x) {
|
|
772
|
+
bare.writeData(bc, x.value);
|
|
773
|
+
}
|
|
774
|
+
function readSqliteBindParam(bc) {
|
|
775
|
+
const offset = bc.offset;
|
|
776
|
+
const tag = bare.readU8(bc);
|
|
777
|
+
switch (tag) {
|
|
778
|
+
case 0:
|
|
779
|
+
return { tag: "SqliteValueNull", val: null };
|
|
780
|
+
case 1:
|
|
781
|
+
return { tag: "SqliteValueInteger", val: readSqliteValueInteger(bc) };
|
|
782
|
+
case 2:
|
|
783
|
+
return { tag: "SqliteValueFloat", val: readSqliteValueFloat(bc) };
|
|
784
|
+
case 3:
|
|
785
|
+
return { tag: "SqliteValueText", val: readSqliteValueText(bc) };
|
|
786
|
+
case 4:
|
|
787
|
+
return { tag: "SqliteValueBlob", val: readSqliteValueBlob(bc) };
|
|
788
|
+
default: {
|
|
789
|
+
bc.offset = offset;
|
|
790
|
+
throw new bare.BareError(offset, "invalid tag");
|
|
791
|
+
}
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
function writeSqliteBindParam(bc, x) {
|
|
795
|
+
switch (x.tag) {
|
|
796
|
+
case "SqliteValueNull": {
|
|
797
|
+
bare.writeU8(bc, 0);
|
|
798
|
+
break;
|
|
799
|
+
}
|
|
800
|
+
case "SqliteValueInteger": {
|
|
801
|
+
bare.writeU8(bc, 1);
|
|
802
|
+
writeSqliteValueInteger(bc, x.val);
|
|
803
|
+
break;
|
|
804
|
+
}
|
|
805
|
+
case "SqliteValueFloat": {
|
|
806
|
+
bare.writeU8(bc, 2);
|
|
807
|
+
writeSqliteValueFloat(bc, x.val);
|
|
808
|
+
break;
|
|
809
|
+
}
|
|
810
|
+
case "SqliteValueText": {
|
|
811
|
+
bare.writeU8(bc, 3);
|
|
812
|
+
writeSqliteValueText(bc, x.val);
|
|
813
|
+
break;
|
|
814
|
+
}
|
|
815
|
+
case "SqliteValueBlob": {
|
|
816
|
+
bare.writeU8(bc, 4);
|
|
817
|
+
writeSqliteValueBlob(bc, x.val);
|
|
818
|
+
break;
|
|
819
|
+
}
|
|
820
|
+
}
|
|
821
|
+
}
|
|
822
|
+
function readSqliteColumnValue(bc) {
|
|
823
|
+
const offset = bc.offset;
|
|
824
|
+
const tag = bare.readU8(bc);
|
|
825
|
+
switch (tag) {
|
|
826
|
+
case 0:
|
|
827
|
+
return { tag: "SqliteValueNull", val: null };
|
|
828
|
+
case 1:
|
|
829
|
+
return { tag: "SqliteValueInteger", val: readSqliteValueInteger(bc) };
|
|
830
|
+
case 2:
|
|
831
|
+
return { tag: "SqliteValueFloat", val: readSqliteValueFloat(bc) };
|
|
832
|
+
case 3:
|
|
833
|
+
return { tag: "SqliteValueText", val: readSqliteValueText(bc) };
|
|
834
|
+
case 4:
|
|
835
|
+
return { tag: "SqliteValueBlob", val: readSqliteValueBlob(bc) };
|
|
836
|
+
default: {
|
|
837
|
+
bc.offset = offset;
|
|
838
|
+
throw new bare.BareError(offset, "invalid tag");
|
|
839
|
+
}
|
|
840
|
+
}
|
|
841
|
+
}
|
|
842
|
+
function writeSqliteColumnValue(bc, x) {
|
|
843
|
+
switch (x.tag) {
|
|
844
|
+
case "SqliteValueNull": {
|
|
845
|
+
bare.writeU8(bc, 0);
|
|
846
|
+
break;
|
|
847
|
+
}
|
|
848
|
+
case "SqliteValueInteger": {
|
|
849
|
+
bare.writeU8(bc, 1);
|
|
850
|
+
writeSqliteValueInteger(bc, x.val);
|
|
851
|
+
break;
|
|
852
|
+
}
|
|
853
|
+
case "SqliteValueFloat": {
|
|
854
|
+
bare.writeU8(bc, 2);
|
|
855
|
+
writeSqliteValueFloat(bc, x.val);
|
|
856
|
+
break;
|
|
857
|
+
}
|
|
858
|
+
case "SqliteValueText": {
|
|
859
|
+
bare.writeU8(bc, 3);
|
|
860
|
+
writeSqliteValueText(bc, x.val);
|
|
861
|
+
break;
|
|
862
|
+
}
|
|
863
|
+
case "SqliteValueBlob": {
|
|
864
|
+
bare.writeU8(bc, 4);
|
|
865
|
+
writeSqliteValueBlob(bc, x.val);
|
|
866
|
+
break;
|
|
867
|
+
}
|
|
868
|
+
}
|
|
869
|
+
}
|
|
870
|
+
function read9(bc) {
|
|
871
|
+
const len = bare.readUintSafe(bc);
|
|
872
|
+
if (len === 0) {
|
|
873
|
+
return [];
|
|
874
|
+
}
|
|
875
|
+
const result = [bare.readString(bc)];
|
|
876
|
+
for (let i = 1; i < len; i++) {
|
|
877
|
+
result[i] = bare.readString(bc);
|
|
878
|
+
}
|
|
879
|
+
return result;
|
|
880
|
+
}
|
|
881
|
+
function write9(bc, x) {
|
|
882
|
+
bare.writeUintSafe(bc, x.length);
|
|
883
|
+
for (let i = 0; i < x.length; i++) {
|
|
884
|
+
bare.writeString(bc, x[i]);
|
|
885
|
+
}
|
|
886
|
+
}
|
|
887
|
+
function read10(bc) {
|
|
888
|
+
const len = bare.readUintSafe(bc);
|
|
889
|
+
if (len === 0) {
|
|
890
|
+
return [];
|
|
891
|
+
}
|
|
892
|
+
const result = [readSqliteColumnValue(bc)];
|
|
893
|
+
for (let i = 1; i < len; i++) {
|
|
894
|
+
result[i] = readSqliteColumnValue(bc);
|
|
895
|
+
}
|
|
896
|
+
return result;
|
|
897
|
+
}
|
|
898
|
+
function write10(bc, x) {
|
|
899
|
+
bare.writeUintSafe(bc, x.length);
|
|
900
|
+
for (let i = 0; i < x.length; i++) {
|
|
901
|
+
writeSqliteColumnValue(bc, x[i]);
|
|
902
|
+
}
|
|
903
|
+
}
|
|
904
|
+
function read11(bc) {
|
|
905
|
+
const len = bare.readUintSafe(bc);
|
|
906
|
+
if (len === 0) {
|
|
907
|
+
return [];
|
|
908
|
+
}
|
|
909
|
+
const result = [read10(bc)];
|
|
910
|
+
for (let i = 1; i < len; i++) {
|
|
911
|
+
result[i] = read10(bc);
|
|
912
|
+
}
|
|
913
|
+
return result;
|
|
914
|
+
}
|
|
915
|
+
function write11(bc, x) {
|
|
916
|
+
bare.writeUintSafe(bc, x.length);
|
|
917
|
+
for (let i = 0; i < x.length; i++) {
|
|
918
|
+
write10(bc, x[i]);
|
|
919
|
+
}
|
|
920
|
+
}
|
|
921
|
+
function readSqliteQueryResult(bc) {
|
|
922
|
+
return {
|
|
923
|
+
columns: read9(bc),
|
|
924
|
+
rows: read11(bc)
|
|
925
|
+
};
|
|
926
|
+
}
|
|
927
|
+
function writeSqliteQueryResult(bc, x) {
|
|
928
|
+
write9(bc, x.columns);
|
|
929
|
+
write11(bc, x.rows);
|
|
930
|
+
}
|
|
931
|
+
function read12(bc) {
|
|
932
|
+
return bare.readBool(bc) ? bare.readI64(bc) : null;
|
|
933
|
+
}
|
|
934
|
+
function write12(bc, x) {
|
|
935
|
+
bare.writeBool(bc, x != null);
|
|
936
|
+
if (x != null) {
|
|
937
|
+
bare.writeI64(bc, x);
|
|
938
|
+
}
|
|
939
|
+
}
|
|
940
|
+
function readSqliteExecuteResult(bc) {
|
|
941
|
+
return {
|
|
942
|
+
columns: read9(bc),
|
|
943
|
+
rows: read11(bc),
|
|
944
|
+
changes: bare.readI64(bc),
|
|
945
|
+
lastInsertRowId: read12(bc)
|
|
946
|
+
};
|
|
947
|
+
}
|
|
948
|
+
function writeSqliteExecuteResult(bc, x) {
|
|
949
|
+
write9(bc, x.columns);
|
|
950
|
+
write11(bc, x.rows);
|
|
951
|
+
bare.writeI64(bc, x.changes);
|
|
952
|
+
write12(bc, x.lastInsertRowId);
|
|
953
|
+
}
|
|
954
|
+
function readSqliteExecRequest(bc) {
|
|
955
|
+
return {
|
|
956
|
+
namespaceId: readId(bc),
|
|
957
|
+
actorId: readId(bc),
|
|
958
|
+
generation: readSqliteGeneration(bc),
|
|
959
|
+
sql: bare.readString(bc)
|
|
960
|
+
};
|
|
961
|
+
}
|
|
962
|
+
function writeSqliteExecRequest(bc, x) {
|
|
963
|
+
writeId(bc, x.namespaceId);
|
|
964
|
+
writeId(bc, x.actorId);
|
|
965
|
+
writeSqliteGeneration(bc, x.generation);
|
|
966
|
+
bare.writeString(bc, x.sql);
|
|
967
|
+
}
|
|
968
|
+
function read13(bc) {
|
|
969
|
+
const len = bare.readUintSafe(bc);
|
|
970
|
+
if (len === 0) {
|
|
971
|
+
return [];
|
|
972
|
+
}
|
|
973
|
+
const result = [readSqliteBindParam(bc)];
|
|
974
|
+
for (let i = 1; i < len; i++) {
|
|
975
|
+
result[i] = readSqliteBindParam(bc);
|
|
976
|
+
}
|
|
977
|
+
return result;
|
|
978
|
+
}
|
|
979
|
+
function write13(bc, x) {
|
|
980
|
+
bare.writeUintSafe(bc, x.length);
|
|
981
|
+
for (let i = 0; i < x.length; i++) {
|
|
982
|
+
writeSqliteBindParam(bc, x[i]);
|
|
983
|
+
}
|
|
984
|
+
}
|
|
985
|
+
function read14(bc) {
|
|
986
|
+
return bare.readBool(bc) ? read13(bc) : null;
|
|
987
|
+
}
|
|
988
|
+
function write14(bc, x) {
|
|
989
|
+
bare.writeBool(bc, x != null);
|
|
990
|
+
if (x != null) {
|
|
991
|
+
write13(bc, x);
|
|
992
|
+
}
|
|
993
|
+
}
|
|
994
|
+
function readSqliteExecuteRequest(bc) {
|
|
995
|
+
return {
|
|
996
|
+
namespaceId: readId(bc),
|
|
997
|
+
actorId: readId(bc),
|
|
998
|
+
generation: readSqliteGeneration(bc),
|
|
999
|
+
sql: bare.readString(bc),
|
|
1000
|
+
params: read14(bc)
|
|
1001
|
+
};
|
|
1002
|
+
}
|
|
1003
|
+
function writeSqliteExecuteRequest(bc, x) {
|
|
1004
|
+
writeId(bc, x.namespaceId);
|
|
1005
|
+
writeId(bc, x.actorId);
|
|
1006
|
+
writeSqliteGeneration(bc, x.generation);
|
|
1007
|
+
bare.writeString(bc, x.sql);
|
|
1008
|
+
write14(bc, x.params);
|
|
1009
|
+
}
|
|
1010
|
+
function readSqliteBatchStatement(bc) {
|
|
1011
|
+
return {
|
|
1012
|
+
sql: bare.readString(bc),
|
|
1013
|
+
params: read14(bc)
|
|
1014
|
+
};
|
|
1015
|
+
}
|
|
1016
|
+
function writeSqliteBatchStatement(bc, x) {
|
|
1017
|
+
bare.writeString(bc, x.sql);
|
|
1018
|
+
write14(bc, x.params);
|
|
1019
|
+
}
|
|
1020
|
+
function read15(bc) {
|
|
1021
|
+
const len = bare.readUintSafe(bc);
|
|
1022
|
+
if (len === 0) {
|
|
1023
|
+
return [];
|
|
1024
|
+
}
|
|
1025
|
+
const result = [readSqliteBatchStatement(bc)];
|
|
1026
|
+
for (let i = 1; i < len; i++) {
|
|
1027
|
+
result[i] = readSqliteBatchStatement(bc);
|
|
1028
|
+
}
|
|
1029
|
+
return result;
|
|
1030
|
+
}
|
|
1031
|
+
function write15(bc, x) {
|
|
1032
|
+
bare.writeUintSafe(bc, x.length);
|
|
1033
|
+
for (let i = 0; i < x.length; i++) {
|
|
1034
|
+
writeSqliteBatchStatement(bc, x[i]);
|
|
1035
|
+
}
|
|
1036
|
+
}
|
|
1037
|
+
function readSqliteExecuteBatchRequest(bc) {
|
|
1038
|
+
return {
|
|
1039
|
+
namespaceId: readId(bc),
|
|
1040
|
+
actorId: readId(bc),
|
|
1041
|
+
generation: readSqliteGeneration(bc),
|
|
1042
|
+
statements: read15(bc)
|
|
1043
|
+
};
|
|
1044
|
+
}
|
|
1045
|
+
function writeSqliteExecuteBatchRequest(bc, x) {
|
|
1046
|
+
writeId(bc, x.namespaceId);
|
|
1047
|
+
writeId(bc, x.actorId);
|
|
1048
|
+
writeSqliteGeneration(bc, x.generation);
|
|
1049
|
+
write15(bc, x.statements);
|
|
1050
|
+
}
|
|
1051
|
+
function readSqliteExecOk(bc) {
|
|
1052
|
+
return {
|
|
1053
|
+
result: readSqliteQueryResult(bc)
|
|
1054
|
+
};
|
|
1055
|
+
}
|
|
1056
|
+
function writeSqliteExecOk(bc, x) {
|
|
1057
|
+
writeSqliteQueryResult(bc, x.result);
|
|
1058
|
+
}
|
|
1059
|
+
function readSqliteExecuteOk(bc) {
|
|
1060
|
+
return {
|
|
1061
|
+
result: readSqliteExecuteResult(bc)
|
|
1062
|
+
};
|
|
1063
|
+
}
|
|
1064
|
+
function writeSqliteExecuteOk(bc, x) {
|
|
1065
|
+
writeSqliteExecuteResult(bc, x.result);
|
|
1066
|
+
}
|
|
1067
|
+
function read16(bc) {
|
|
1068
|
+
const len = bare.readUintSafe(bc);
|
|
1069
|
+
if (len === 0) {
|
|
1070
|
+
return [];
|
|
1071
|
+
}
|
|
1072
|
+
const result = [readSqliteExecuteResult(bc)];
|
|
1073
|
+
for (let i = 1; i < len; i++) {
|
|
1074
|
+
result[i] = readSqliteExecuteResult(bc);
|
|
1075
|
+
}
|
|
1076
|
+
return result;
|
|
1077
|
+
}
|
|
1078
|
+
function write16(bc, x) {
|
|
1079
|
+
bare.writeUintSafe(bc, x.length);
|
|
1080
|
+
for (let i = 0; i < x.length; i++) {
|
|
1081
|
+
writeSqliteExecuteResult(bc, x[i]);
|
|
1082
|
+
}
|
|
1083
|
+
}
|
|
1084
|
+
function readSqliteExecuteBatchOk(bc) {
|
|
1085
|
+
return {
|
|
1086
|
+
results: read16(bc)
|
|
1087
|
+
};
|
|
1088
|
+
}
|
|
1089
|
+
function writeSqliteExecuteBatchOk(bc, x) {
|
|
1090
|
+
write16(bc, x.results);
|
|
1091
|
+
}
|
|
1092
|
+
function readSqliteExecResponse(bc) {
|
|
1093
|
+
const offset = bc.offset;
|
|
1094
|
+
const tag = bare.readU8(bc);
|
|
1095
|
+
switch (tag) {
|
|
1096
|
+
case 0:
|
|
1097
|
+
return { tag: "SqliteExecOk", val: readSqliteExecOk(bc) };
|
|
1098
|
+
case 1:
|
|
1099
|
+
return { tag: "SqliteErrorResponse", val: readSqliteErrorResponse(bc) };
|
|
1100
|
+
default: {
|
|
1101
|
+
bc.offset = offset;
|
|
1102
|
+
throw new bare.BareError(offset, "invalid tag");
|
|
1103
|
+
}
|
|
1104
|
+
}
|
|
1105
|
+
}
|
|
1106
|
+
function writeSqliteExecResponse(bc, x) {
|
|
1107
|
+
switch (x.tag) {
|
|
1108
|
+
case "SqliteExecOk": {
|
|
1109
|
+
bare.writeU8(bc, 0);
|
|
1110
|
+
writeSqliteExecOk(bc, x.val);
|
|
1111
|
+
break;
|
|
1112
|
+
}
|
|
1113
|
+
case "SqliteErrorResponse": {
|
|
1114
|
+
bare.writeU8(bc, 1);
|
|
1115
|
+
writeSqliteErrorResponse(bc, x.val);
|
|
1116
|
+
break;
|
|
1117
|
+
}
|
|
1118
|
+
}
|
|
1119
|
+
}
|
|
1120
|
+
function readSqliteExecuteResponse(bc) {
|
|
1121
|
+
const offset = bc.offset;
|
|
1122
|
+
const tag = bare.readU8(bc);
|
|
1123
|
+
switch (tag) {
|
|
1124
|
+
case 0:
|
|
1125
|
+
return { tag: "SqliteExecuteOk", val: readSqliteExecuteOk(bc) };
|
|
1126
|
+
case 1:
|
|
1127
|
+
return { tag: "SqliteErrorResponse", val: readSqliteErrorResponse(bc) };
|
|
1128
|
+
default: {
|
|
1129
|
+
bc.offset = offset;
|
|
1130
|
+
throw new bare.BareError(offset, "invalid tag");
|
|
1131
|
+
}
|
|
1132
|
+
}
|
|
1133
|
+
}
|
|
1134
|
+
function writeSqliteExecuteResponse(bc, x) {
|
|
1135
|
+
switch (x.tag) {
|
|
1136
|
+
case "SqliteExecuteOk": {
|
|
1137
|
+
bare.writeU8(bc, 0);
|
|
1138
|
+
writeSqliteExecuteOk(bc, x.val);
|
|
1139
|
+
break;
|
|
1140
|
+
}
|
|
1141
|
+
case "SqliteErrorResponse": {
|
|
1142
|
+
bare.writeU8(bc, 1);
|
|
1143
|
+
writeSqliteErrorResponse(bc, x.val);
|
|
1144
|
+
break;
|
|
1145
|
+
}
|
|
1146
|
+
}
|
|
1147
|
+
}
|
|
1148
|
+
function readSqliteExecuteBatchResponse(bc) {
|
|
1149
|
+
const offset = bc.offset;
|
|
1150
|
+
const tag = bare.readU8(bc);
|
|
1151
|
+
switch (tag) {
|
|
1152
|
+
case 0:
|
|
1153
|
+
return { tag: "SqliteExecuteBatchOk", val: readSqliteExecuteBatchOk(bc) };
|
|
1154
|
+
case 1:
|
|
1155
|
+
return { tag: "SqliteErrorResponse", val: readSqliteErrorResponse(bc) };
|
|
1156
|
+
default: {
|
|
1157
|
+
bc.offset = offset;
|
|
1158
|
+
throw new bare.BareError(offset, "invalid tag");
|
|
1159
|
+
}
|
|
1160
|
+
}
|
|
1161
|
+
}
|
|
1162
|
+
function writeSqliteExecuteBatchResponse(bc, x) {
|
|
1163
|
+
switch (x.tag) {
|
|
1164
|
+
case "SqliteExecuteBatchOk": {
|
|
1165
|
+
bare.writeU8(bc, 0);
|
|
1166
|
+
writeSqliteExecuteBatchOk(bc, x.val);
|
|
1167
|
+
break;
|
|
1168
|
+
}
|
|
1169
|
+
case "SqliteErrorResponse": {
|
|
1170
|
+
bare.writeU8(bc, 1);
|
|
1171
|
+
writeSqliteErrorResponse(bc, x.val);
|
|
1172
|
+
break;
|
|
1173
|
+
}
|
|
1174
|
+
}
|
|
1175
|
+
}
|
|
369
1176
|
var StopCode = /* @__PURE__ */ ((StopCode2) => {
|
|
370
1177
|
StopCode2["Ok"] = "Ok";
|
|
371
1178
|
StopCode2["Error"] = "Error";
|
|
@@ -405,19 +1212,19 @@ function readActorName(bc) {
|
|
|
405
1212
|
function writeActorName(bc, x) {
|
|
406
1213
|
writeJson(bc, x.metadata);
|
|
407
1214
|
}
|
|
408
|
-
function
|
|
1215
|
+
function read17(bc) {
|
|
409
1216
|
return bare.readBool(bc) ? bare.readString(bc) : null;
|
|
410
1217
|
}
|
|
411
|
-
function
|
|
1218
|
+
function write17(bc, x) {
|
|
412
1219
|
bare.writeBool(bc, x != null);
|
|
413
1220
|
if (x != null) {
|
|
414
1221
|
bare.writeString(bc, x);
|
|
415
1222
|
}
|
|
416
1223
|
}
|
|
417
|
-
function
|
|
1224
|
+
function read18(bc) {
|
|
418
1225
|
return bare.readBool(bc) ? bare.readData(bc) : null;
|
|
419
1226
|
}
|
|
420
|
-
function
|
|
1227
|
+
function write18(bc, x) {
|
|
421
1228
|
bare.writeBool(bc, x != null);
|
|
422
1229
|
if (x != null) {
|
|
423
1230
|
bare.writeData(bc, x);
|
|
@@ -426,16 +1233,16 @@ function write6(bc, x) {
|
|
|
426
1233
|
function readActorConfig(bc) {
|
|
427
1234
|
return {
|
|
428
1235
|
name: bare.readString(bc),
|
|
429
|
-
key:
|
|
1236
|
+
key: read17(bc),
|
|
430
1237
|
createTs: bare.readI64(bc),
|
|
431
|
-
input:
|
|
1238
|
+
input: read18(bc)
|
|
432
1239
|
};
|
|
433
1240
|
}
|
|
434
1241
|
function writeActorConfig(bc, x) {
|
|
435
1242
|
bare.writeString(bc, x.name);
|
|
436
|
-
|
|
1243
|
+
write17(bc, x.key);
|
|
437
1244
|
bare.writeI64(bc, x.createTs);
|
|
438
|
-
|
|
1245
|
+
write18(bc, x.input);
|
|
439
1246
|
}
|
|
440
1247
|
function readActorCheckpoint(bc) {
|
|
441
1248
|
return {
|
|
@@ -478,12 +1285,12 @@ function writeActorIntent(bc, x) {
|
|
|
478
1285
|
function readActorStateStopped(bc) {
|
|
479
1286
|
return {
|
|
480
1287
|
code: readStopCode(bc),
|
|
481
|
-
message:
|
|
1288
|
+
message: read17(bc)
|
|
482
1289
|
};
|
|
483
1290
|
}
|
|
484
1291
|
function writeActorStateStopped(bc, x) {
|
|
485
1292
|
writeStopCode(bc, x.code);
|
|
486
|
-
|
|
1293
|
+
write17(bc, x.message);
|
|
487
1294
|
}
|
|
488
1295
|
function readActorState(bc) {
|
|
489
1296
|
const offset = bc.offset;
|
|
@@ -528,22 +1335,13 @@ function readEventActorStateUpdate(bc) {
|
|
|
528
1335
|
function writeEventActorStateUpdate(bc, x) {
|
|
529
1336
|
writeActorState(bc, x.state);
|
|
530
1337
|
}
|
|
531
|
-
function read7(bc) {
|
|
532
|
-
return bare.readBool(bc) ? bare.readI64(bc) : null;
|
|
533
|
-
}
|
|
534
|
-
function write7(bc, x) {
|
|
535
|
-
bare.writeBool(bc, x != null);
|
|
536
|
-
if (x != null) {
|
|
537
|
-
bare.writeI64(bc, x);
|
|
538
|
-
}
|
|
539
|
-
}
|
|
540
1338
|
function readEventActorSetAlarm(bc) {
|
|
541
1339
|
return {
|
|
542
|
-
alarmTs:
|
|
1340
|
+
alarmTs: read12(bc)
|
|
543
1341
|
};
|
|
544
1342
|
}
|
|
545
1343
|
function writeEventActorSetAlarm(bc, x) {
|
|
546
|
-
|
|
1344
|
+
write12(bc, x.alarmTs);
|
|
547
1345
|
}
|
|
548
1346
|
function readEvent(bc) {
|
|
549
1347
|
const offset = bc.offset;
|
|
@@ -602,7 +1400,7 @@ function writePreloadedKvEntry(bc, x) {
|
|
|
602
1400
|
writeKvValue(bc, x.value);
|
|
603
1401
|
writeKvMetadata(bc, x.metadata);
|
|
604
1402
|
}
|
|
605
|
-
function
|
|
1403
|
+
function read19(bc) {
|
|
606
1404
|
const len = bare.readUintSafe(bc);
|
|
607
1405
|
if (len === 0) {
|
|
608
1406
|
return [];
|
|
@@ -613,7 +1411,7 @@ function read8(bc) {
|
|
|
613
1411
|
}
|
|
614
1412
|
return result;
|
|
615
1413
|
}
|
|
616
|
-
function
|
|
1414
|
+
function write19(bc, x) {
|
|
617
1415
|
bare.writeUintSafe(bc, x.length);
|
|
618
1416
|
for (let i = 0; i < x.length; i++) {
|
|
619
1417
|
writePreloadedKvEntry(bc, x[i]);
|
|
@@ -621,13 +1419,13 @@ function write8(bc, x) {
|
|
|
621
1419
|
}
|
|
622
1420
|
function readPreloadedKv(bc) {
|
|
623
1421
|
return {
|
|
624
|
-
entries:
|
|
1422
|
+
entries: read19(bc),
|
|
625
1423
|
requestedGetKeys: read0(bc),
|
|
626
1424
|
requestedPrefixes: read0(bc)
|
|
627
1425
|
};
|
|
628
1426
|
}
|
|
629
1427
|
function writePreloadedKv(bc, x) {
|
|
630
|
-
|
|
1428
|
+
write19(bc, x.entries);
|
|
631
1429
|
write0(bc, x.requestedGetKeys);
|
|
632
1430
|
write0(bc, x.requestedPrefixes);
|
|
633
1431
|
}
|
|
@@ -641,7 +1439,7 @@ function writeHibernatingRequest(bc, x) {
|
|
|
641
1439
|
writeGatewayId(bc, x.gatewayId);
|
|
642
1440
|
writeRequestId(bc, x.requestId);
|
|
643
1441
|
}
|
|
644
|
-
function
|
|
1442
|
+
function read20(bc) {
|
|
645
1443
|
const len = bare.readUintSafe(bc);
|
|
646
1444
|
if (len === 0) {
|
|
647
1445
|
return [];
|
|
@@ -652,16 +1450,16 @@ function read9(bc) {
|
|
|
652
1450
|
}
|
|
653
1451
|
return result;
|
|
654
1452
|
}
|
|
655
|
-
function
|
|
1453
|
+
function write20(bc, x) {
|
|
656
1454
|
bare.writeUintSafe(bc, x.length);
|
|
657
1455
|
for (let i = 0; i < x.length; i++) {
|
|
658
1456
|
writeHibernatingRequest(bc, x[i]);
|
|
659
1457
|
}
|
|
660
1458
|
}
|
|
661
|
-
function
|
|
1459
|
+
function read21(bc) {
|
|
662
1460
|
return bare.readBool(bc) ? readPreloadedKv(bc) : null;
|
|
663
1461
|
}
|
|
664
|
-
function
|
|
1462
|
+
function write21(bc, x) {
|
|
665
1463
|
bare.writeBool(bc, x != null);
|
|
666
1464
|
if (x != null) {
|
|
667
1465
|
writePreloadedKv(bc, x);
|
|
@@ -670,14 +1468,14 @@ function write10(bc, x) {
|
|
|
670
1468
|
function readCommandStartActor(bc) {
|
|
671
1469
|
return {
|
|
672
1470
|
config: readActorConfig(bc),
|
|
673
|
-
hibernatingRequests:
|
|
674
|
-
preloadedKv:
|
|
1471
|
+
hibernatingRequests: read20(bc),
|
|
1472
|
+
preloadedKv: read21(bc)
|
|
675
1473
|
};
|
|
676
1474
|
}
|
|
677
1475
|
function writeCommandStartActor(bc, x) {
|
|
678
1476
|
writeActorConfig(bc, x.config);
|
|
679
|
-
|
|
680
|
-
|
|
1477
|
+
write20(bc, x.hibernatingRequests);
|
|
1478
|
+
write21(bc, x.preloadedKv);
|
|
681
1479
|
}
|
|
682
1480
|
var StopActorReason = /* @__PURE__ */ ((StopActorReason2) => {
|
|
683
1481
|
StopActorReason2["SleepIntent"] = "SleepIntent";
|
|
@@ -834,7 +1632,16 @@ function writeMessageId(bc, x) {
|
|
|
834
1632
|
writeRequestId(bc, x.requestId);
|
|
835
1633
|
writeMessageIndex(bc, x.messageIndex);
|
|
836
1634
|
}
|
|
837
|
-
function
|
|
1635
|
+
function read22(bc) {
|
|
1636
|
+
return bare.readBool(bc) ? bare.readU32(bc) : null;
|
|
1637
|
+
}
|
|
1638
|
+
function write22(bc, x) {
|
|
1639
|
+
bare.writeBool(bc, x != null);
|
|
1640
|
+
if (x != null) {
|
|
1641
|
+
bare.writeU32(bc, x);
|
|
1642
|
+
}
|
|
1643
|
+
}
|
|
1644
|
+
function read23(bc) {
|
|
838
1645
|
const len = bare.readUintSafe(bc);
|
|
839
1646
|
const result = /* @__PURE__ */ new Map();
|
|
840
1647
|
for (let i = 0; i < len; i++) {
|
|
@@ -848,7 +1655,7 @@ function read11(bc) {
|
|
|
848
1655
|
}
|
|
849
1656
|
return result;
|
|
850
1657
|
}
|
|
851
|
-
function
|
|
1658
|
+
function write23(bc, x) {
|
|
852
1659
|
bare.writeUintSafe(bc, x.size);
|
|
853
1660
|
for (const kv of x) {
|
|
854
1661
|
bare.writeString(bc, kv[0]);
|
|
@@ -858,20 +1665,24 @@ function write11(bc, x) {
|
|
|
858
1665
|
function readToEnvoyRequestStart(bc) {
|
|
859
1666
|
return {
|
|
860
1667
|
actorId: readId(bc),
|
|
1668
|
+
actorGeneration: read22(bc),
|
|
861
1669
|
method: bare.readString(bc),
|
|
862
1670
|
path: bare.readString(bc),
|
|
863
|
-
headers:
|
|
864
|
-
body:
|
|
865
|
-
stream: bare.readBool(bc)
|
|
1671
|
+
headers: read23(bc),
|
|
1672
|
+
body: read18(bc),
|
|
1673
|
+
stream: bare.readBool(bc),
|
|
1674
|
+
responseStream: bare.readBool(bc)
|
|
866
1675
|
};
|
|
867
1676
|
}
|
|
868
1677
|
function writeToEnvoyRequestStart(bc, x) {
|
|
869
1678
|
writeId(bc, x.actorId);
|
|
1679
|
+
write22(bc, x.actorGeneration);
|
|
870
1680
|
bare.writeString(bc, x.method);
|
|
871
1681
|
bare.writeString(bc, x.path);
|
|
872
|
-
|
|
873
|
-
|
|
1682
|
+
write23(bc, x.headers);
|
|
1683
|
+
write18(bc, x.body);
|
|
874
1684
|
bare.writeBool(bc, x.stream);
|
|
1685
|
+
bare.writeBool(bc, x.responseStream);
|
|
875
1686
|
}
|
|
876
1687
|
function readToEnvoyRequestChunk(bc) {
|
|
877
1688
|
return {
|
|
@@ -883,18 +1694,102 @@ function writeToEnvoyRequestChunk(bc, x) {
|
|
|
883
1694
|
bare.writeData(bc, x.body);
|
|
884
1695
|
bare.writeBool(bc, x.finish);
|
|
885
1696
|
}
|
|
1697
|
+
function readToRivetRequestBodyWindowUpdate(bc) {
|
|
1698
|
+
return {
|
|
1699
|
+
consumedBytes: bare.readU64(bc)
|
|
1700
|
+
};
|
|
1701
|
+
}
|
|
1702
|
+
function writeToRivetRequestBodyWindowUpdate(bc, x) {
|
|
1703
|
+
bare.writeU64(bc, x.consumedBytes);
|
|
1704
|
+
}
|
|
1705
|
+
var HttpStreamAbortReasonKind = /* @__PURE__ */ ((HttpStreamAbortReasonKind2) => {
|
|
1706
|
+
HttpStreamAbortReasonKind2["Unknown"] = "Unknown";
|
|
1707
|
+
HttpStreamAbortReasonKind2["Cancelled"] = "Cancelled";
|
|
1708
|
+
HttpStreamAbortReasonKind2["HandlerError"] = "HandlerError";
|
|
1709
|
+
HttpStreamAbortReasonKind2["InternalError"] = "InternalError";
|
|
1710
|
+
return HttpStreamAbortReasonKind2;
|
|
1711
|
+
})(HttpStreamAbortReasonKind || {});
|
|
1712
|
+
function readHttpStreamAbortReasonKind(bc) {
|
|
1713
|
+
const offset = bc.offset;
|
|
1714
|
+
const tag = bare.readU8(bc);
|
|
1715
|
+
switch (tag) {
|
|
1716
|
+
case 0:
|
|
1717
|
+
return "Unknown" /* Unknown */;
|
|
1718
|
+
case 1:
|
|
1719
|
+
return "Cancelled" /* Cancelled */;
|
|
1720
|
+
case 2:
|
|
1721
|
+
return "HandlerError" /* HandlerError */;
|
|
1722
|
+
case 3:
|
|
1723
|
+
return "InternalError" /* InternalError */;
|
|
1724
|
+
default: {
|
|
1725
|
+
bc.offset = offset;
|
|
1726
|
+
throw new bare.BareError(offset, "invalid tag");
|
|
1727
|
+
}
|
|
1728
|
+
}
|
|
1729
|
+
}
|
|
1730
|
+
function writeHttpStreamAbortReasonKind(bc, x) {
|
|
1731
|
+
switch (x) {
|
|
1732
|
+
case "Unknown" /* Unknown */: {
|
|
1733
|
+
bare.writeU8(bc, 0);
|
|
1734
|
+
break;
|
|
1735
|
+
}
|
|
1736
|
+
case "Cancelled" /* Cancelled */: {
|
|
1737
|
+
bare.writeU8(bc, 1);
|
|
1738
|
+
break;
|
|
1739
|
+
}
|
|
1740
|
+
case "HandlerError" /* HandlerError */: {
|
|
1741
|
+
bare.writeU8(bc, 2);
|
|
1742
|
+
break;
|
|
1743
|
+
}
|
|
1744
|
+
case "InternalError" /* InternalError */: {
|
|
1745
|
+
bare.writeU8(bc, 3);
|
|
1746
|
+
break;
|
|
1747
|
+
}
|
|
1748
|
+
}
|
|
1749
|
+
}
|
|
1750
|
+
function readHttpStreamAbortReason(bc) {
|
|
1751
|
+
return {
|
|
1752
|
+
kind: readHttpStreamAbortReasonKind(bc),
|
|
1753
|
+
detail: read17(bc)
|
|
1754
|
+
};
|
|
1755
|
+
}
|
|
1756
|
+
function writeHttpStreamAbortReason(bc, x) {
|
|
1757
|
+
writeHttpStreamAbortReasonKind(bc, x.kind);
|
|
1758
|
+
write17(bc, x.detail);
|
|
1759
|
+
}
|
|
1760
|
+
function read24(bc) {
|
|
1761
|
+
return bare.readBool(bc) ? readId(bc) : null;
|
|
1762
|
+
}
|
|
1763
|
+
function write24(bc, x) {
|
|
1764
|
+
bare.writeBool(bc, x != null);
|
|
1765
|
+
if (x != null) {
|
|
1766
|
+
writeId(bc, x);
|
|
1767
|
+
}
|
|
1768
|
+
}
|
|
1769
|
+
function readToEnvoyRequestAbort(bc) {
|
|
1770
|
+
return {
|
|
1771
|
+
actorId: read24(bc),
|
|
1772
|
+
actorGeneration: read22(bc),
|
|
1773
|
+
reason: readHttpStreamAbortReason(bc)
|
|
1774
|
+
};
|
|
1775
|
+
}
|
|
1776
|
+
function writeToEnvoyRequestAbort(bc, x) {
|
|
1777
|
+
write24(bc, x.actorId);
|
|
1778
|
+
write22(bc, x.actorGeneration);
|
|
1779
|
+
writeHttpStreamAbortReason(bc, x.reason);
|
|
1780
|
+
}
|
|
886
1781
|
function readToRivetResponseStart(bc) {
|
|
887
1782
|
return {
|
|
888
1783
|
status: bare.readU16(bc),
|
|
889
|
-
headers:
|
|
890
|
-
body:
|
|
1784
|
+
headers: read23(bc),
|
|
1785
|
+
body: read18(bc),
|
|
891
1786
|
stream: bare.readBool(bc)
|
|
892
1787
|
};
|
|
893
1788
|
}
|
|
894
1789
|
function writeToRivetResponseStart(bc, x) {
|
|
895
1790
|
bare.writeU16(bc, x.status);
|
|
896
|
-
|
|
897
|
-
|
|
1791
|
+
write23(bc, x.headers);
|
|
1792
|
+
write18(bc, x.body);
|
|
898
1793
|
bare.writeBool(bc, x.stream);
|
|
899
1794
|
}
|
|
900
1795
|
function readToRivetResponseChunk(bc) {
|
|
@@ -907,17 +1802,35 @@ function writeToRivetResponseChunk(bc, x) {
|
|
|
907
1802
|
bare.writeData(bc, x.body);
|
|
908
1803
|
bare.writeBool(bc, x.finish);
|
|
909
1804
|
}
|
|
1805
|
+
function readToEnvoyResponseBodyWindowUpdate(bc) {
|
|
1806
|
+
return {
|
|
1807
|
+
consumedBytes: bare.readU64(bc)
|
|
1808
|
+
};
|
|
1809
|
+
}
|
|
1810
|
+
function writeToEnvoyResponseBodyWindowUpdate(bc, x) {
|
|
1811
|
+
bare.writeU64(bc, x.consumedBytes);
|
|
1812
|
+
}
|
|
1813
|
+
function readToRivetResponseAbort(bc) {
|
|
1814
|
+
return {
|
|
1815
|
+
reason: readHttpStreamAbortReason(bc)
|
|
1816
|
+
};
|
|
1817
|
+
}
|
|
1818
|
+
function writeToRivetResponseAbort(bc, x) {
|
|
1819
|
+
writeHttpStreamAbortReason(bc, x.reason);
|
|
1820
|
+
}
|
|
910
1821
|
function readToEnvoyWebSocketOpen(bc) {
|
|
911
1822
|
return {
|
|
912
1823
|
actorId: readId(bc),
|
|
1824
|
+
actorGeneration: read22(bc),
|
|
913
1825
|
path: bare.readString(bc),
|
|
914
|
-
headers:
|
|
1826
|
+
headers: read23(bc)
|
|
915
1827
|
};
|
|
916
1828
|
}
|
|
917
1829
|
function writeToEnvoyWebSocketOpen(bc, x) {
|
|
918
1830
|
writeId(bc, x.actorId);
|
|
1831
|
+
write22(bc, x.actorGeneration);
|
|
919
1832
|
bare.writeString(bc, x.path);
|
|
920
|
-
|
|
1833
|
+
write23(bc, x.headers);
|
|
921
1834
|
}
|
|
922
1835
|
function readToEnvoyWebSocketMessage(bc) {
|
|
923
1836
|
return {
|
|
@@ -929,10 +1842,10 @@ function writeToEnvoyWebSocketMessage(bc, x) {
|
|
|
929
1842
|
bare.writeData(bc, x.data);
|
|
930
1843
|
bare.writeBool(bc, x.binary);
|
|
931
1844
|
}
|
|
932
|
-
function
|
|
1845
|
+
function read25(bc) {
|
|
933
1846
|
return bare.readBool(bc) ? bare.readU16(bc) : null;
|
|
934
1847
|
}
|
|
935
|
-
function
|
|
1848
|
+
function write25(bc, x) {
|
|
936
1849
|
bare.writeBool(bc, x != null);
|
|
937
1850
|
if (x != null) {
|
|
938
1851
|
bare.writeU16(bc, x);
|
|
@@ -940,13 +1853,13 @@ function write12(bc, x) {
|
|
|
940
1853
|
}
|
|
941
1854
|
function readToEnvoyWebSocketClose(bc) {
|
|
942
1855
|
return {
|
|
943
|
-
code:
|
|
944
|
-
reason:
|
|
1856
|
+
code: read25(bc),
|
|
1857
|
+
reason: read17(bc)
|
|
945
1858
|
};
|
|
946
1859
|
}
|
|
947
1860
|
function writeToEnvoyWebSocketClose(bc, x) {
|
|
948
|
-
|
|
949
|
-
|
|
1861
|
+
write25(bc, x.code);
|
|
1862
|
+
write17(bc, x.reason);
|
|
950
1863
|
}
|
|
951
1864
|
function readToRivetWebSocketOpen(bc) {
|
|
952
1865
|
return {
|
|
@@ -976,14 +1889,14 @@ function writeToRivetWebSocketMessageAck(bc, x) {
|
|
|
976
1889
|
}
|
|
977
1890
|
function readToRivetWebSocketClose(bc) {
|
|
978
1891
|
return {
|
|
979
|
-
code:
|
|
980
|
-
reason:
|
|
1892
|
+
code: read25(bc),
|
|
1893
|
+
reason: read17(bc),
|
|
981
1894
|
hibernate: bare.readBool(bc)
|
|
982
1895
|
};
|
|
983
1896
|
}
|
|
984
1897
|
function writeToRivetWebSocketClose(bc, x) {
|
|
985
|
-
|
|
986
|
-
|
|
1898
|
+
write25(bc, x.code);
|
|
1899
|
+
write17(bc, x.reason);
|
|
987
1900
|
bare.writeBool(bc, x.hibernate);
|
|
988
1901
|
}
|
|
989
1902
|
function readToRivetTunnelMessageKind(bc) {
|
|
@@ -995,14 +1908,18 @@ function readToRivetTunnelMessageKind(bc) {
|
|
|
995
1908
|
case 1:
|
|
996
1909
|
return { tag: "ToRivetResponseChunk", val: readToRivetResponseChunk(bc) };
|
|
997
1910
|
case 2:
|
|
998
|
-
return { tag: "ToRivetResponseAbort", val:
|
|
1911
|
+
return { tag: "ToRivetResponseAbort", val: readToRivetResponseAbort(bc) };
|
|
999
1912
|
case 3:
|
|
1000
|
-
return { tag: "
|
|
1913
|
+
return { tag: "ToRivetRequestBodyWindowUpdate", val: readToRivetRequestBodyWindowUpdate(bc) };
|
|
1001
1914
|
case 4:
|
|
1002
|
-
return { tag: "
|
|
1915
|
+
return { tag: "ToRivetRequestBodyCancel", val: null };
|
|
1003
1916
|
case 5:
|
|
1004
|
-
return { tag: "
|
|
1917
|
+
return { tag: "ToRivetWebSocketOpen", val: readToRivetWebSocketOpen(bc) };
|
|
1005
1918
|
case 6:
|
|
1919
|
+
return { tag: "ToRivetWebSocketMessage", val: readToRivetWebSocketMessage(bc) };
|
|
1920
|
+
case 7:
|
|
1921
|
+
return { tag: "ToRivetWebSocketMessageAck", val: readToRivetWebSocketMessageAck(bc) };
|
|
1922
|
+
case 8:
|
|
1006
1923
|
return { tag: "ToRivetWebSocketClose", val: readToRivetWebSocketClose(bc) };
|
|
1007
1924
|
default: {
|
|
1008
1925
|
bc.offset = offset;
|
|
@@ -1024,25 +1941,35 @@ function writeToRivetTunnelMessageKind(bc, x) {
|
|
|
1024
1941
|
}
|
|
1025
1942
|
case "ToRivetResponseAbort": {
|
|
1026
1943
|
bare.writeU8(bc, 2);
|
|
1944
|
+
writeToRivetResponseAbort(bc, x.val);
|
|
1027
1945
|
break;
|
|
1028
1946
|
}
|
|
1029
|
-
case "
|
|
1947
|
+
case "ToRivetRequestBodyWindowUpdate": {
|
|
1030
1948
|
bare.writeU8(bc, 3);
|
|
1949
|
+
writeToRivetRequestBodyWindowUpdate(bc, x.val);
|
|
1950
|
+
break;
|
|
1951
|
+
}
|
|
1952
|
+
case "ToRivetRequestBodyCancel": {
|
|
1953
|
+
bare.writeU8(bc, 4);
|
|
1954
|
+
break;
|
|
1955
|
+
}
|
|
1956
|
+
case "ToRivetWebSocketOpen": {
|
|
1957
|
+
bare.writeU8(bc, 5);
|
|
1031
1958
|
writeToRivetWebSocketOpen(bc, x.val);
|
|
1032
1959
|
break;
|
|
1033
1960
|
}
|
|
1034
1961
|
case "ToRivetWebSocketMessage": {
|
|
1035
|
-
bare.writeU8(bc,
|
|
1962
|
+
bare.writeU8(bc, 6);
|
|
1036
1963
|
writeToRivetWebSocketMessage(bc, x.val);
|
|
1037
1964
|
break;
|
|
1038
1965
|
}
|
|
1039
1966
|
case "ToRivetWebSocketMessageAck": {
|
|
1040
|
-
bare.writeU8(bc,
|
|
1967
|
+
bare.writeU8(bc, 7);
|
|
1041
1968
|
writeToRivetWebSocketMessageAck(bc, x.val);
|
|
1042
1969
|
break;
|
|
1043
1970
|
}
|
|
1044
1971
|
case "ToRivetWebSocketClose": {
|
|
1045
|
-
bare.writeU8(bc,
|
|
1972
|
+
bare.writeU8(bc, 8);
|
|
1046
1973
|
writeToRivetWebSocketClose(bc, x.val);
|
|
1047
1974
|
break;
|
|
1048
1975
|
}
|
|
@@ -1067,12 +1994,16 @@ function readToEnvoyTunnelMessageKind(bc) {
|
|
|
1067
1994
|
case 1:
|
|
1068
1995
|
return { tag: "ToEnvoyRequestChunk", val: readToEnvoyRequestChunk(bc) };
|
|
1069
1996
|
case 2:
|
|
1070
|
-
return { tag: "ToEnvoyRequestAbort", val:
|
|
1997
|
+
return { tag: "ToEnvoyRequestAbort", val: readToEnvoyRequestAbort(bc) };
|
|
1071
1998
|
case 3:
|
|
1072
|
-
return { tag: "
|
|
1999
|
+
return { tag: "ToEnvoyRequestBodyCancel", val: null };
|
|
1073
2000
|
case 4:
|
|
1074
|
-
return { tag: "
|
|
2001
|
+
return { tag: "ToEnvoyResponseBodyWindowUpdate", val: readToEnvoyResponseBodyWindowUpdate(bc) };
|
|
1075
2002
|
case 5:
|
|
2003
|
+
return { tag: "ToEnvoyWebSocketOpen", val: readToEnvoyWebSocketOpen(bc) };
|
|
2004
|
+
case 6:
|
|
2005
|
+
return { tag: "ToEnvoyWebSocketMessage", val: readToEnvoyWebSocketMessage(bc) };
|
|
2006
|
+
case 7:
|
|
1076
2007
|
return { tag: "ToEnvoyWebSocketClose", val: readToEnvoyWebSocketClose(bc) };
|
|
1077
2008
|
default: {
|
|
1078
2009
|
bc.offset = offset;
|
|
@@ -1094,20 +2025,30 @@ function writeToEnvoyTunnelMessageKind(bc, x) {
|
|
|
1094
2025
|
}
|
|
1095
2026
|
case "ToEnvoyRequestAbort": {
|
|
1096
2027
|
bare.writeU8(bc, 2);
|
|
2028
|
+
writeToEnvoyRequestAbort(bc, x.val);
|
|
1097
2029
|
break;
|
|
1098
2030
|
}
|
|
1099
|
-
case "
|
|
2031
|
+
case "ToEnvoyRequestBodyCancel": {
|
|
1100
2032
|
bare.writeU8(bc, 3);
|
|
2033
|
+
break;
|
|
2034
|
+
}
|
|
2035
|
+
case "ToEnvoyResponseBodyWindowUpdate": {
|
|
2036
|
+
bare.writeU8(bc, 4);
|
|
2037
|
+
writeToEnvoyResponseBodyWindowUpdate(bc, x.val);
|
|
2038
|
+
break;
|
|
2039
|
+
}
|
|
2040
|
+
case "ToEnvoyWebSocketOpen": {
|
|
2041
|
+
bare.writeU8(bc, 5);
|
|
1101
2042
|
writeToEnvoyWebSocketOpen(bc, x.val);
|
|
1102
2043
|
break;
|
|
1103
2044
|
}
|
|
1104
2045
|
case "ToEnvoyWebSocketMessage": {
|
|
1105
|
-
bare.writeU8(bc,
|
|
2046
|
+
bare.writeU8(bc, 6);
|
|
1106
2047
|
writeToEnvoyWebSocketMessage(bc, x.val);
|
|
1107
2048
|
break;
|
|
1108
2049
|
}
|
|
1109
2050
|
case "ToEnvoyWebSocketClose": {
|
|
1110
|
-
bare.writeU8(bc,
|
|
2051
|
+
bare.writeU8(bc, 7);
|
|
1111
2052
|
writeToEnvoyWebSocketClose(bc, x.val);
|
|
1112
2053
|
break;
|
|
1113
2054
|
}
|
|
@@ -1131,7 +2072,7 @@ function readToEnvoyPing(bc) {
|
|
|
1131
2072
|
function writeToEnvoyPing(bc, x) {
|
|
1132
2073
|
bare.writeI64(bc, x.ts);
|
|
1133
2074
|
}
|
|
1134
|
-
function
|
|
2075
|
+
function read26(bc) {
|
|
1135
2076
|
const len = bare.readUintSafe(bc);
|
|
1136
2077
|
const result = /* @__PURE__ */ new Map();
|
|
1137
2078
|
for (let i = 0; i < len; i++) {
|
|
@@ -1145,26 +2086,26 @@ function read13(bc) {
|
|
|
1145
2086
|
}
|
|
1146
2087
|
return result;
|
|
1147
2088
|
}
|
|
1148
|
-
function
|
|
2089
|
+
function write26(bc, x) {
|
|
1149
2090
|
bare.writeUintSafe(bc, x.size);
|
|
1150
2091
|
for (const kv of x) {
|
|
1151
2092
|
bare.writeString(bc, kv[0]);
|
|
1152
2093
|
writeActorName(bc, kv[1]);
|
|
1153
2094
|
}
|
|
1154
2095
|
}
|
|
1155
|
-
function
|
|
1156
|
-
return bare.readBool(bc) ?
|
|
2096
|
+
function read27(bc) {
|
|
2097
|
+
return bare.readBool(bc) ? read26(bc) : null;
|
|
1157
2098
|
}
|
|
1158
|
-
function
|
|
2099
|
+
function write27(bc, x) {
|
|
1159
2100
|
bare.writeBool(bc, x != null);
|
|
1160
2101
|
if (x != null) {
|
|
1161
|
-
|
|
2102
|
+
write26(bc, x);
|
|
1162
2103
|
}
|
|
1163
2104
|
}
|
|
1164
|
-
function
|
|
2105
|
+
function read28(bc) {
|
|
1165
2106
|
return bare.readBool(bc) ? readJson(bc) : null;
|
|
1166
2107
|
}
|
|
1167
|
-
function
|
|
2108
|
+
function write28(bc, x) {
|
|
1168
2109
|
bare.writeBool(bc, x != null);
|
|
1169
2110
|
if (x != null) {
|
|
1170
2111
|
writeJson(bc, x);
|
|
@@ -1172,13 +2113,13 @@ function write15(bc, x) {
|
|
|
1172
2113
|
}
|
|
1173
2114
|
function readToRivetMetadata(bc) {
|
|
1174
2115
|
return {
|
|
1175
|
-
prepopulateActorNames:
|
|
1176
|
-
metadata:
|
|
2116
|
+
prepopulateActorNames: read27(bc),
|
|
2117
|
+
metadata: read28(bc)
|
|
1177
2118
|
};
|
|
1178
2119
|
}
|
|
1179
2120
|
function writeToRivetMetadata(bc, x) {
|
|
1180
|
-
|
|
1181
|
-
|
|
2121
|
+
write27(bc, x.prepopulateActorNames);
|
|
2122
|
+
write28(bc, x.metadata);
|
|
1182
2123
|
}
|
|
1183
2124
|
function readToRivetEvents(bc) {
|
|
1184
2125
|
const len = bare.readUintSafe(bc);
|
|
@@ -1197,7 +2138,7 @@ function writeToRivetEvents(bc, x) {
|
|
|
1197
2138
|
writeEventWrapper(bc, x[i]);
|
|
1198
2139
|
}
|
|
1199
2140
|
}
|
|
1200
|
-
function
|
|
2141
|
+
function read29(bc) {
|
|
1201
2142
|
const len = bare.readUintSafe(bc);
|
|
1202
2143
|
if (len === 0) {
|
|
1203
2144
|
return [];
|
|
@@ -1208,7 +2149,7 @@ function read16(bc) {
|
|
|
1208
2149
|
}
|
|
1209
2150
|
return result;
|
|
1210
2151
|
}
|
|
1211
|
-
function
|
|
2152
|
+
function write29(bc, x) {
|
|
1212
2153
|
bare.writeUintSafe(bc, x.length);
|
|
1213
2154
|
for (let i = 0; i < x.length; i++) {
|
|
1214
2155
|
writeActorCheckpoint(bc, x[i]);
|
|
@@ -1216,11 +2157,11 @@ function write16(bc, x) {
|
|
|
1216
2157
|
}
|
|
1217
2158
|
function readToRivetAckCommands(bc) {
|
|
1218
2159
|
return {
|
|
1219
|
-
lastCommandCheckpoints:
|
|
2160
|
+
lastCommandCheckpoints: read29(bc)
|
|
1220
2161
|
};
|
|
1221
2162
|
}
|
|
1222
2163
|
function writeToRivetAckCommands(bc, x) {
|
|
1223
|
-
|
|
2164
|
+
write29(bc, x.lastCommandCheckpoints);
|
|
1224
2165
|
}
|
|
1225
2166
|
function readToRivetPong(bc) {
|
|
1226
2167
|
return {
|
|
@@ -1242,6 +2183,86 @@ function writeToRivetKvRequest(bc, x) {
|
|
|
1242
2183
|
bare.writeU32(bc, x.requestId);
|
|
1243
2184
|
writeKvRequestData(bc, x.data);
|
|
1244
2185
|
}
|
|
2186
|
+
function readToRivetSqliteGetPagesRequest(bc) {
|
|
2187
|
+
return {
|
|
2188
|
+
requestId: bare.readU32(bc),
|
|
2189
|
+
data: readSqliteGetPagesRequest(bc)
|
|
2190
|
+
};
|
|
2191
|
+
}
|
|
2192
|
+
function writeToRivetSqliteGetPagesRequest(bc, x) {
|
|
2193
|
+
bare.writeU32(bc, x.requestId);
|
|
2194
|
+
writeSqliteGetPagesRequest(bc, x.data);
|
|
2195
|
+
}
|
|
2196
|
+
function readToRivetSqliteCommitRequest(bc) {
|
|
2197
|
+
return {
|
|
2198
|
+
requestId: bare.readU32(bc),
|
|
2199
|
+
data: readSqliteCommitRequest(bc)
|
|
2200
|
+
};
|
|
2201
|
+
}
|
|
2202
|
+
function writeToRivetSqliteCommitRequest(bc, x) {
|
|
2203
|
+
bare.writeU32(bc, x.requestId);
|
|
2204
|
+
writeSqliteCommitRequest(bc, x.data);
|
|
2205
|
+
}
|
|
2206
|
+
function readToRivetSqliteCommitStageBeginRequest(bc) {
|
|
2207
|
+
return {
|
|
2208
|
+
requestId: bare.readU32(bc),
|
|
2209
|
+
data: readSqliteCommitStageBeginRequest(bc)
|
|
2210
|
+
};
|
|
2211
|
+
}
|
|
2212
|
+
function writeToRivetSqliteCommitStageBeginRequest(bc, x) {
|
|
2213
|
+
bare.writeU32(bc, x.requestId);
|
|
2214
|
+
writeSqliteCommitStageBeginRequest(bc, x.data);
|
|
2215
|
+
}
|
|
2216
|
+
function readToRivetSqliteCommitStageSegmentRequest(bc) {
|
|
2217
|
+
return {
|
|
2218
|
+
requestId: bare.readU32(bc),
|
|
2219
|
+
data: readSqliteCommitStageSegmentRequest(bc)
|
|
2220
|
+
};
|
|
2221
|
+
}
|
|
2222
|
+
function writeToRivetSqliteCommitStageSegmentRequest(bc, x) {
|
|
2223
|
+
bare.writeU32(bc, x.requestId);
|
|
2224
|
+
writeSqliteCommitStageSegmentRequest(bc, x.data);
|
|
2225
|
+
}
|
|
2226
|
+
function readToRivetSqliteCommitFinalizeRequest(bc) {
|
|
2227
|
+
return {
|
|
2228
|
+
requestId: bare.readU32(bc),
|
|
2229
|
+
data: readSqliteCommitFinalizeRequest(bc)
|
|
2230
|
+
};
|
|
2231
|
+
}
|
|
2232
|
+
function writeToRivetSqliteCommitFinalizeRequest(bc, x) {
|
|
2233
|
+
bare.writeU32(bc, x.requestId);
|
|
2234
|
+
writeSqliteCommitFinalizeRequest(bc, x.data);
|
|
2235
|
+
}
|
|
2236
|
+
function readToRivetSqliteExecRequest(bc) {
|
|
2237
|
+
return {
|
|
2238
|
+
requestId: bare.readU32(bc),
|
|
2239
|
+
data: readSqliteExecRequest(bc)
|
|
2240
|
+
};
|
|
2241
|
+
}
|
|
2242
|
+
function writeToRivetSqliteExecRequest(bc, x) {
|
|
2243
|
+
bare.writeU32(bc, x.requestId);
|
|
2244
|
+
writeSqliteExecRequest(bc, x.data);
|
|
2245
|
+
}
|
|
2246
|
+
function readToRivetSqliteExecuteRequest(bc) {
|
|
2247
|
+
return {
|
|
2248
|
+
requestId: bare.readU32(bc),
|
|
2249
|
+
data: readSqliteExecuteRequest(bc)
|
|
2250
|
+
};
|
|
2251
|
+
}
|
|
2252
|
+
function writeToRivetSqliteExecuteRequest(bc, x) {
|
|
2253
|
+
bare.writeU32(bc, x.requestId);
|
|
2254
|
+
writeSqliteExecuteRequest(bc, x.data);
|
|
2255
|
+
}
|
|
2256
|
+
function readToRivetSqliteExecuteBatchRequest(bc) {
|
|
2257
|
+
return {
|
|
2258
|
+
requestId: bare.readU32(bc),
|
|
2259
|
+
data: readSqliteExecuteBatchRequest(bc)
|
|
2260
|
+
};
|
|
2261
|
+
}
|
|
2262
|
+
function writeToRivetSqliteExecuteBatchRequest(bc, x) {
|
|
2263
|
+
bare.writeU32(bc, x.requestId);
|
|
2264
|
+
writeSqliteExecuteBatchRequest(bc, x.data);
|
|
2265
|
+
}
|
|
1245
2266
|
function readToRivet(bc) {
|
|
1246
2267
|
const offset = bc.offset;
|
|
1247
2268
|
const tag = bare.readU8(bc);
|
|
@@ -1260,6 +2281,22 @@ function readToRivet(bc) {
|
|
|
1260
2281
|
return { tag: "ToRivetKvRequest", val: readToRivetKvRequest(bc) };
|
|
1261
2282
|
case 6:
|
|
1262
2283
|
return { tag: "ToRivetTunnelMessage", val: readToRivetTunnelMessage(bc) };
|
|
2284
|
+
case 7:
|
|
2285
|
+
return { tag: "ToRivetSqliteGetPagesRequest", val: readToRivetSqliteGetPagesRequest(bc) };
|
|
2286
|
+
case 8:
|
|
2287
|
+
return { tag: "ToRivetSqliteCommitRequest", val: readToRivetSqliteCommitRequest(bc) };
|
|
2288
|
+
case 9:
|
|
2289
|
+
return { tag: "ToRivetSqliteCommitStageBeginRequest", val: readToRivetSqliteCommitStageBeginRequest(bc) };
|
|
2290
|
+
case 10:
|
|
2291
|
+
return { tag: "ToRivetSqliteCommitStageSegmentRequest", val: readToRivetSqliteCommitStageSegmentRequest(bc) };
|
|
2292
|
+
case 11:
|
|
2293
|
+
return { tag: "ToRivetSqliteCommitFinalizeRequest", val: readToRivetSqliteCommitFinalizeRequest(bc) };
|
|
2294
|
+
case 12:
|
|
2295
|
+
return { tag: "ToRivetSqliteExecRequest", val: readToRivetSqliteExecRequest(bc) };
|
|
2296
|
+
case 13:
|
|
2297
|
+
return { tag: "ToRivetSqliteExecuteRequest", val: readToRivetSqliteExecuteRequest(bc) };
|
|
2298
|
+
case 14:
|
|
2299
|
+
return { tag: "ToRivetSqliteExecuteBatchRequest", val: readToRivetSqliteExecuteBatchRequest(bc) };
|
|
1263
2300
|
default: {
|
|
1264
2301
|
bc.offset = offset;
|
|
1265
2302
|
throw new bare.BareError(offset, "invalid tag");
|
|
@@ -1302,6 +2339,46 @@ function writeToRivet(bc, x) {
|
|
|
1302
2339
|
writeToRivetTunnelMessage(bc, x.val);
|
|
1303
2340
|
break;
|
|
1304
2341
|
}
|
|
2342
|
+
case "ToRivetSqliteGetPagesRequest": {
|
|
2343
|
+
bare.writeU8(bc, 7);
|
|
2344
|
+
writeToRivetSqliteGetPagesRequest(bc, x.val);
|
|
2345
|
+
break;
|
|
2346
|
+
}
|
|
2347
|
+
case "ToRivetSqliteCommitRequest": {
|
|
2348
|
+
bare.writeU8(bc, 8);
|
|
2349
|
+
writeToRivetSqliteCommitRequest(bc, x.val);
|
|
2350
|
+
break;
|
|
2351
|
+
}
|
|
2352
|
+
case "ToRivetSqliteCommitStageBeginRequest": {
|
|
2353
|
+
bare.writeU8(bc, 9);
|
|
2354
|
+
writeToRivetSqliteCommitStageBeginRequest(bc, x.val);
|
|
2355
|
+
break;
|
|
2356
|
+
}
|
|
2357
|
+
case "ToRivetSqliteCommitStageSegmentRequest": {
|
|
2358
|
+
bare.writeU8(bc, 10);
|
|
2359
|
+
writeToRivetSqliteCommitStageSegmentRequest(bc, x.val);
|
|
2360
|
+
break;
|
|
2361
|
+
}
|
|
2362
|
+
case "ToRivetSqliteCommitFinalizeRequest": {
|
|
2363
|
+
bare.writeU8(bc, 11);
|
|
2364
|
+
writeToRivetSqliteCommitFinalizeRequest(bc, x.val);
|
|
2365
|
+
break;
|
|
2366
|
+
}
|
|
2367
|
+
case "ToRivetSqliteExecRequest": {
|
|
2368
|
+
bare.writeU8(bc, 12);
|
|
2369
|
+
writeToRivetSqliteExecRequest(bc, x.val);
|
|
2370
|
+
break;
|
|
2371
|
+
}
|
|
2372
|
+
case "ToRivetSqliteExecuteRequest": {
|
|
2373
|
+
bare.writeU8(bc, 13);
|
|
2374
|
+
writeToRivetSqliteExecuteRequest(bc, x.val);
|
|
2375
|
+
break;
|
|
2376
|
+
}
|
|
2377
|
+
case "ToRivetSqliteExecuteBatchRequest": {
|
|
2378
|
+
bare.writeU8(bc, 14);
|
|
2379
|
+
writeToRivetSqliteExecuteBatchRequest(bc, x.val);
|
|
2380
|
+
break;
|
|
2381
|
+
}
|
|
1305
2382
|
}
|
|
1306
2383
|
}
|
|
1307
2384
|
function encodeToRivet(x, config) {
|
|
@@ -1360,11 +2437,11 @@ function writeToEnvoyCommands(bc, x) {
|
|
|
1360
2437
|
}
|
|
1361
2438
|
function readToEnvoyAckEvents(bc) {
|
|
1362
2439
|
return {
|
|
1363
|
-
lastEventCheckpoints:
|
|
2440
|
+
lastEventCheckpoints: read29(bc)
|
|
1364
2441
|
};
|
|
1365
2442
|
}
|
|
1366
2443
|
function writeToEnvoyAckEvents(bc, x) {
|
|
1367
|
-
|
|
2444
|
+
write29(bc, x.lastEventCheckpoints);
|
|
1368
2445
|
}
|
|
1369
2446
|
function readToEnvoyKvResponse(bc) {
|
|
1370
2447
|
return {
|
|
@@ -1376,6 +2453,86 @@ function writeToEnvoyKvResponse(bc, x) {
|
|
|
1376
2453
|
bare.writeU32(bc, x.requestId);
|
|
1377
2454
|
writeKvResponseData(bc, x.data);
|
|
1378
2455
|
}
|
|
2456
|
+
function readToEnvoySqliteGetPagesResponse(bc) {
|
|
2457
|
+
return {
|
|
2458
|
+
requestId: bare.readU32(bc),
|
|
2459
|
+
data: readSqliteGetPagesResponse(bc)
|
|
2460
|
+
};
|
|
2461
|
+
}
|
|
2462
|
+
function writeToEnvoySqliteGetPagesResponse(bc, x) {
|
|
2463
|
+
bare.writeU32(bc, x.requestId);
|
|
2464
|
+
writeSqliteGetPagesResponse(bc, x.data);
|
|
2465
|
+
}
|
|
2466
|
+
function readToEnvoySqliteCommitResponse(bc) {
|
|
2467
|
+
return {
|
|
2468
|
+
requestId: bare.readU32(bc),
|
|
2469
|
+
data: readSqliteCommitResponse(bc)
|
|
2470
|
+
};
|
|
2471
|
+
}
|
|
2472
|
+
function writeToEnvoySqliteCommitResponse(bc, x) {
|
|
2473
|
+
bare.writeU32(bc, x.requestId);
|
|
2474
|
+
writeSqliteCommitResponse(bc, x.data);
|
|
2475
|
+
}
|
|
2476
|
+
function readToEnvoySqliteCommitStageBeginResponse(bc) {
|
|
2477
|
+
return {
|
|
2478
|
+
requestId: bare.readU32(bc),
|
|
2479
|
+
data: readSqliteCommitStageBeginResponse(bc)
|
|
2480
|
+
};
|
|
2481
|
+
}
|
|
2482
|
+
function writeToEnvoySqliteCommitStageBeginResponse(bc, x) {
|
|
2483
|
+
bare.writeU32(bc, x.requestId);
|
|
2484
|
+
writeSqliteCommitStageBeginResponse(bc, x.data);
|
|
2485
|
+
}
|
|
2486
|
+
function readToEnvoySqliteCommitStageSegmentResponse(bc) {
|
|
2487
|
+
return {
|
|
2488
|
+
requestId: bare.readU32(bc),
|
|
2489
|
+
data: readSqliteCommitStageSegmentResponse(bc)
|
|
2490
|
+
};
|
|
2491
|
+
}
|
|
2492
|
+
function writeToEnvoySqliteCommitStageSegmentResponse(bc, x) {
|
|
2493
|
+
bare.writeU32(bc, x.requestId);
|
|
2494
|
+
writeSqliteCommitStageSegmentResponse(bc, x.data);
|
|
2495
|
+
}
|
|
2496
|
+
function readToEnvoySqliteCommitFinalizeResponse(bc) {
|
|
2497
|
+
return {
|
|
2498
|
+
requestId: bare.readU32(bc),
|
|
2499
|
+
data: readSqliteCommitFinalizeResponse(bc)
|
|
2500
|
+
};
|
|
2501
|
+
}
|
|
2502
|
+
function writeToEnvoySqliteCommitFinalizeResponse(bc, x) {
|
|
2503
|
+
bare.writeU32(bc, x.requestId);
|
|
2504
|
+
writeSqliteCommitFinalizeResponse(bc, x.data);
|
|
2505
|
+
}
|
|
2506
|
+
function readToEnvoySqliteExecResponse(bc) {
|
|
2507
|
+
return {
|
|
2508
|
+
requestId: bare.readU32(bc),
|
|
2509
|
+
data: readSqliteExecResponse(bc)
|
|
2510
|
+
};
|
|
2511
|
+
}
|
|
2512
|
+
function writeToEnvoySqliteExecResponse(bc, x) {
|
|
2513
|
+
bare.writeU32(bc, x.requestId);
|
|
2514
|
+
writeSqliteExecResponse(bc, x.data);
|
|
2515
|
+
}
|
|
2516
|
+
function readToEnvoySqliteExecuteResponse(bc) {
|
|
2517
|
+
return {
|
|
2518
|
+
requestId: bare.readU32(bc),
|
|
2519
|
+
data: readSqliteExecuteResponse(bc)
|
|
2520
|
+
};
|
|
2521
|
+
}
|
|
2522
|
+
function writeToEnvoySqliteExecuteResponse(bc, x) {
|
|
2523
|
+
bare.writeU32(bc, x.requestId);
|
|
2524
|
+
writeSqliteExecuteResponse(bc, x.data);
|
|
2525
|
+
}
|
|
2526
|
+
function readToEnvoySqliteExecuteBatchResponse(bc) {
|
|
2527
|
+
return {
|
|
2528
|
+
requestId: bare.readU32(bc),
|
|
2529
|
+
data: readSqliteExecuteBatchResponse(bc)
|
|
2530
|
+
};
|
|
2531
|
+
}
|
|
2532
|
+
function writeToEnvoySqliteExecuteBatchResponse(bc, x) {
|
|
2533
|
+
bare.writeU32(bc, x.requestId);
|
|
2534
|
+
writeSqliteExecuteBatchResponse(bc, x.data);
|
|
2535
|
+
}
|
|
1379
2536
|
function readToEnvoy(bc) {
|
|
1380
2537
|
const offset = bc.offset;
|
|
1381
2538
|
const tag = bare.readU8(bc);
|
|
@@ -1392,6 +2549,22 @@ function readToEnvoy(bc) {
|
|
|
1392
2549
|
return { tag: "ToEnvoyTunnelMessage", val: readToEnvoyTunnelMessage(bc) };
|
|
1393
2550
|
case 5:
|
|
1394
2551
|
return { tag: "ToEnvoyPing", val: readToEnvoyPing(bc) };
|
|
2552
|
+
case 6:
|
|
2553
|
+
return { tag: "ToEnvoySqliteGetPagesResponse", val: readToEnvoySqliteGetPagesResponse(bc) };
|
|
2554
|
+
case 7:
|
|
2555
|
+
return { tag: "ToEnvoySqliteCommitResponse", val: readToEnvoySqliteCommitResponse(bc) };
|
|
2556
|
+
case 8:
|
|
2557
|
+
return { tag: "ToEnvoySqliteCommitStageBeginResponse", val: readToEnvoySqliteCommitStageBeginResponse(bc) };
|
|
2558
|
+
case 9:
|
|
2559
|
+
return { tag: "ToEnvoySqliteCommitStageSegmentResponse", val: readToEnvoySqliteCommitStageSegmentResponse(bc) };
|
|
2560
|
+
case 10:
|
|
2561
|
+
return { tag: "ToEnvoySqliteCommitFinalizeResponse", val: readToEnvoySqliteCommitFinalizeResponse(bc) };
|
|
2562
|
+
case 11:
|
|
2563
|
+
return { tag: "ToEnvoySqliteExecResponse", val: readToEnvoySqliteExecResponse(bc) };
|
|
2564
|
+
case 12:
|
|
2565
|
+
return { tag: "ToEnvoySqliteExecuteResponse", val: readToEnvoySqliteExecuteResponse(bc) };
|
|
2566
|
+
case 13:
|
|
2567
|
+
return { tag: "ToEnvoySqliteExecuteBatchResponse", val: readToEnvoySqliteExecuteBatchResponse(bc) };
|
|
1395
2568
|
default: {
|
|
1396
2569
|
bc.offset = offset;
|
|
1397
2570
|
throw new bare.BareError(offset, "invalid tag");
|
|
@@ -1430,6 +2603,46 @@ function writeToEnvoy(bc, x) {
|
|
|
1430
2603
|
writeToEnvoyPing(bc, x.val);
|
|
1431
2604
|
break;
|
|
1432
2605
|
}
|
|
2606
|
+
case "ToEnvoySqliteGetPagesResponse": {
|
|
2607
|
+
bare.writeU8(bc, 6);
|
|
2608
|
+
writeToEnvoySqliteGetPagesResponse(bc, x.val);
|
|
2609
|
+
break;
|
|
2610
|
+
}
|
|
2611
|
+
case "ToEnvoySqliteCommitResponse": {
|
|
2612
|
+
bare.writeU8(bc, 7);
|
|
2613
|
+
writeToEnvoySqliteCommitResponse(bc, x.val);
|
|
2614
|
+
break;
|
|
2615
|
+
}
|
|
2616
|
+
case "ToEnvoySqliteCommitStageBeginResponse": {
|
|
2617
|
+
bare.writeU8(bc, 8);
|
|
2618
|
+
writeToEnvoySqliteCommitStageBeginResponse(bc, x.val);
|
|
2619
|
+
break;
|
|
2620
|
+
}
|
|
2621
|
+
case "ToEnvoySqliteCommitStageSegmentResponse": {
|
|
2622
|
+
bare.writeU8(bc, 9);
|
|
2623
|
+
writeToEnvoySqliteCommitStageSegmentResponse(bc, x.val);
|
|
2624
|
+
break;
|
|
2625
|
+
}
|
|
2626
|
+
case "ToEnvoySqliteCommitFinalizeResponse": {
|
|
2627
|
+
bare.writeU8(bc, 10);
|
|
2628
|
+
writeToEnvoySqliteCommitFinalizeResponse(bc, x.val);
|
|
2629
|
+
break;
|
|
2630
|
+
}
|
|
2631
|
+
case "ToEnvoySqliteExecResponse": {
|
|
2632
|
+
bare.writeU8(bc, 11);
|
|
2633
|
+
writeToEnvoySqliteExecResponse(bc, x.val);
|
|
2634
|
+
break;
|
|
2635
|
+
}
|
|
2636
|
+
case "ToEnvoySqliteExecuteResponse": {
|
|
2637
|
+
bare.writeU8(bc, 12);
|
|
2638
|
+
writeToEnvoySqliteExecuteResponse(bc, x.val);
|
|
2639
|
+
break;
|
|
2640
|
+
}
|
|
2641
|
+
case "ToEnvoySqliteExecuteBatchResponse": {
|
|
2642
|
+
bare.writeU8(bc, 13);
|
|
2643
|
+
writeToEnvoySqliteExecuteBatchResponse(bc, x.val);
|
|
2644
|
+
break;
|
|
2645
|
+
}
|
|
1433
2646
|
}
|
|
1434
2647
|
}
|
|
1435
2648
|
function encodeToEnvoy(x, config) {
|
|
@@ -1636,8 +2849,9 @@ function decodeToOutbound(bytes) {
|
|
|
1636
2849
|
function assert(condition, message) {
|
|
1637
2850
|
if (!condition) throw new Error(message ?? "Assertion failed");
|
|
1638
2851
|
}
|
|
1639
|
-
var VERSION =
|
|
2852
|
+
var VERSION = 8;
|
|
1640
2853
|
export {
|
|
2854
|
+
HttpStreamAbortReasonKind,
|
|
1641
2855
|
StopActorReason,
|
|
1642
2856
|
StopCode,
|
|
1643
2857
|
VERSION,
|
|
@@ -1671,6 +2885,8 @@ export {
|
|
|
1671
2885
|
readEventWrapper,
|
|
1672
2886
|
readGatewayId,
|
|
1673
2887
|
readHibernatingRequest,
|
|
2888
|
+
readHttpStreamAbortReason,
|
|
2889
|
+
readHttpStreamAbortReasonKind,
|
|
1674
2890
|
readId,
|
|
1675
2891
|
readJson,
|
|
1676
2892
|
readKvDeleteRangeRequest,
|
|
@@ -1695,6 +2911,45 @@ export {
|
|
|
1695
2911
|
readPreloadedKvEntry,
|
|
1696
2912
|
readProtocolMetadata,
|
|
1697
2913
|
readRequestId,
|
|
2914
|
+
readSqliteBatchStatement,
|
|
2915
|
+
readSqliteBindParam,
|
|
2916
|
+
readSqliteColumnValue,
|
|
2917
|
+
readSqliteCommitFinalizeOk,
|
|
2918
|
+
readSqliteCommitFinalizeRequest,
|
|
2919
|
+
readSqliteCommitFinalizeResponse,
|
|
2920
|
+
readSqliteCommitOk,
|
|
2921
|
+
readSqliteCommitRequest,
|
|
2922
|
+
readSqliteCommitResponse,
|
|
2923
|
+
readSqliteCommitStageBeginOk,
|
|
2924
|
+
readSqliteCommitStageBeginRequest,
|
|
2925
|
+
readSqliteCommitStageBeginResponse,
|
|
2926
|
+
readSqliteCommitStageSegmentOk,
|
|
2927
|
+
readSqliteCommitStageSegmentRequest,
|
|
2928
|
+
readSqliteCommitStageSegmentResponse,
|
|
2929
|
+
readSqliteDirtyPage,
|
|
2930
|
+
readSqliteErrorResponse,
|
|
2931
|
+
readSqliteExecOk,
|
|
2932
|
+
readSqliteExecRequest,
|
|
2933
|
+
readSqliteExecResponse,
|
|
2934
|
+
readSqliteExecuteBatchOk,
|
|
2935
|
+
readSqliteExecuteBatchRequest,
|
|
2936
|
+
readSqliteExecuteBatchResponse,
|
|
2937
|
+
readSqliteExecuteOk,
|
|
2938
|
+
readSqliteExecuteRequest,
|
|
2939
|
+
readSqliteExecuteResponse,
|
|
2940
|
+
readSqliteExecuteResult,
|
|
2941
|
+
readSqliteFetchedPage,
|
|
2942
|
+
readSqliteGeneration,
|
|
2943
|
+
readSqliteGetPagesOk,
|
|
2944
|
+
readSqliteGetPagesRequest,
|
|
2945
|
+
readSqliteGetPagesResponse,
|
|
2946
|
+
readSqlitePageBytes,
|
|
2947
|
+
readSqlitePgno,
|
|
2948
|
+
readSqliteQueryResult,
|
|
2949
|
+
readSqliteValueBlob,
|
|
2950
|
+
readSqliteValueFloat,
|
|
2951
|
+
readSqliteValueInteger,
|
|
2952
|
+
readSqliteValueText,
|
|
1698
2953
|
readStopActorReason,
|
|
1699
2954
|
readStopCode,
|
|
1700
2955
|
readToEnvoy,
|
|
@@ -1705,8 +2960,18 @@ export {
|
|
|
1705
2960
|
readToEnvoyInit,
|
|
1706
2961
|
readToEnvoyKvResponse,
|
|
1707
2962
|
readToEnvoyPing,
|
|
2963
|
+
readToEnvoyRequestAbort,
|
|
1708
2964
|
readToEnvoyRequestChunk,
|
|
1709
2965
|
readToEnvoyRequestStart,
|
|
2966
|
+
readToEnvoyResponseBodyWindowUpdate,
|
|
2967
|
+
readToEnvoySqliteCommitFinalizeResponse,
|
|
2968
|
+
readToEnvoySqliteCommitResponse,
|
|
2969
|
+
readToEnvoySqliteCommitStageBeginResponse,
|
|
2970
|
+
readToEnvoySqliteCommitStageSegmentResponse,
|
|
2971
|
+
readToEnvoySqliteExecResponse,
|
|
2972
|
+
readToEnvoySqliteExecuteBatchResponse,
|
|
2973
|
+
readToEnvoySqliteExecuteResponse,
|
|
2974
|
+
readToEnvoySqliteGetPagesResponse,
|
|
1710
2975
|
readToEnvoyTunnelMessage,
|
|
1711
2976
|
readToEnvoyTunnelMessageKind,
|
|
1712
2977
|
readToEnvoyWebSocketClose,
|
|
@@ -1722,8 +2987,18 @@ export {
|
|
|
1722
2987
|
readToRivetKvRequest,
|
|
1723
2988
|
readToRivetMetadata,
|
|
1724
2989
|
readToRivetPong,
|
|
2990
|
+
readToRivetRequestBodyWindowUpdate,
|
|
2991
|
+
readToRivetResponseAbort,
|
|
1725
2992
|
readToRivetResponseChunk,
|
|
1726
2993
|
readToRivetResponseStart,
|
|
2994
|
+
readToRivetSqliteCommitFinalizeRequest,
|
|
2995
|
+
readToRivetSqliteCommitRequest,
|
|
2996
|
+
readToRivetSqliteCommitStageBeginRequest,
|
|
2997
|
+
readToRivetSqliteCommitStageSegmentRequest,
|
|
2998
|
+
readToRivetSqliteExecRequest,
|
|
2999
|
+
readToRivetSqliteExecuteBatchRequest,
|
|
3000
|
+
readToRivetSqliteExecuteRequest,
|
|
3001
|
+
readToRivetSqliteGetPagesRequest,
|
|
1727
3002
|
readToRivetTunnelMessage,
|
|
1728
3003
|
readToRivetTunnelMessageKind,
|
|
1729
3004
|
readToRivetWebSocketClose,
|
|
@@ -1748,6 +3023,8 @@ export {
|
|
|
1748
3023
|
writeEventWrapper,
|
|
1749
3024
|
writeGatewayId,
|
|
1750
3025
|
writeHibernatingRequest,
|
|
3026
|
+
writeHttpStreamAbortReason,
|
|
3027
|
+
writeHttpStreamAbortReasonKind,
|
|
1751
3028
|
writeId,
|
|
1752
3029
|
writeJson,
|
|
1753
3030
|
writeKvDeleteRangeRequest,
|
|
@@ -1772,6 +3049,45 @@ export {
|
|
|
1772
3049
|
writePreloadedKvEntry,
|
|
1773
3050
|
writeProtocolMetadata,
|
|
1774
3051
|
writeRequestId,
|
|
3052
|
+
writeSqliteBatchStatement,
|
|
3053
|
+
writeSqliteBindParam,
|
|
3054
|
+
writeSqliteColumnValue,
|
|
3055
|
+
writeSqliteCommitFinalizeOk,
|
|
3056
|
+
writeSqliteCommitFinalizeRequest,
|
|
3057
|
+
writeSqliteCommitFinalizeResponse,
|
|
3058
|
+
writeSqliteCommitOk,
|
|
3059
|
+
writeSqliteCommitRequest,
|
|
3060
|
+
writeSqliteCommitResponse,
|
|
3061
|
+
writeSqliteCommitStageBeginOk,
|
|
3062
|
+
writeSqliteCommitStageBeginRequest,
|
|
3063
|
+
writeSqliteCommitStageBeginResponse,
|
|
3064
|
+
writeSqliteCommitStageSegmentOk,
|
|
3065
|
+
writeSqliteCommitStageSegmentRequest,
|
|
3066
|
+
writeSqliteCommitStageSegmentResponse,
|
|
3067
|
+
writeSqliteDirtyPage,
|
|
3068
|
+
writeSqliteErrorResponse,
|
|
3069
|
+
writeSqliteExecOk,
|
|
3070
|
+
writeSqliteExecRequest,
|
|
3071
|
+
writeSqliteExecResponse,
|
|
3072
|
+
writeSqliteExecuteBatchOk,
|
|
3073
|
+
writeSqliteExecuteBatchRequest,
|
|
3074
|
+
writeSqliteExecuteBatchResponse,
|
|
3075
|
+
writeSqliteExecuteOk,
|
|
3076
|
+
writeSqliteExecuteRequest,
|
|
3077
|
+
writeSqliteExecuteResponse,
|
|
3078
|
+
writeSqliteExecuteResult,
|
|
3079
|
+
writeSqliteFetchedPage,
|
|
3080
|
+
writeSqliteGeneration,
|
|
3081
|
+
writeSqliteGetPagesOk,
|
|
3082
|
+
writeSqliteGetPagesRequest,
|
|
3083
|
+
writeSqliteGetPagesResponse,
|
|
3084
|
+
writeSqlitePageBytes,
|
|
3085
|
+
writeSqlitePgno,
|
|
3086
|
+
writeSqliteQueryResult,
|
|
3087
|
+
writeSqliteValueBlob,
|
|
3088
|
+
writeSqliteValueFloat,
|
|
3089
|
+
writeSqliteValueInteger,
|
|
3090
|
+
writeSqliteValueText,
|
|
1775
3091
|
writeStopActorReason,
|
|
1776
3092
|
writeStopCode,
|
|
1777
3093
|
writeToEnvoy,
|
|
@@ -1782,8 +3098,18 @@ export {
|
|
|
1782
3098
|
writeToEnvoyInit,
|
|
1783
3099
|
writeToEnvoyKvResponse,
|
|
1784
3100
|
writeToEnvoyPing,
|
|
3101
|
+
writeToEnvoyRequestAbort,
|
|
1785
3102
|
writeToEnvoyRequestChunk,
|
|
1786
3103
|
writeToEnvoyRequestStart,
|
|
3104
|
+
writeToEnvoyResponseBodyWindowUpdate,
|
|
3105
|
+
writeToEnvoySqliteCommitFinalizeResponse,
|
|
3106
|
+
writeToEnvoySqliteCommitResponse,
|
|
3107
|
+
writeToEnvoySqliteCommitStageBeginResponse,
|
|
3108
|
+
writeToEnvoySqliteCommitStageSegmentResponse,
|
|
3109
|
+
writeToEnvoySqliteExecResponse,
|
|
3110
|
+
writeToEnvoySqliteExecuteBatchResponse,
|
|
3111
|
+
writeToEnvoySqliteExecuteResponse,
|
|
3112
|
+
writeToEnvoySqliteGetPagesResponse,
|
|
1787
3113
|
writeToEnvoyTunnelMessage,
|
|
1788
3114
|
writeToEnvoyTunnelMessageKind,
|
|
1789
3115
|
writeToEnvoyWebSocketClose,
|
|
@@ -1799,8 +3125,18 @@ export {
|
|
|
1799
3125
|
writeToRivetKvRequest,
|
|
1800
3126
|
writeToRivetMetadata,
|
|
1801
3127
|
writeToRivetPong,
|
|
3128
|
+
writeToRivetRequestBodyWindowUpdate,
|
|
3129
|
+
writeToRivetResponseAbort,
|
|
1802
3130
|
writeToRivetResponseChunk,
|
|
1803
3131
|
writeToRivetResponseStart,
|
|
3132
|
+
writeToRivetSqliteCommitFinalizeRequest,
|
|
3133
|
+
writeToRivetSqliteCommitRequest,
|
|
3134
|
+
writeToRivetSqliteCommitStageBeginRequest,
|
|
3135
|
+
writeToRivetSqliteCommitStageSegmentRequest,
|
|
3136
|
+
writeToRivetSqliteExecRequest,
|
|
3137
|
+
writeToRivetSqliteExecuteBatchRequest,
|
|
3138
|
+
writeToRivetSqliteExecuteRequest,
|
|
3139
|
+
writeToRivetSqliteGetPagesRequest,
|
|
1804
3140
|
writeToRivetTunnelMessage,
|
|
1805
3141
|
writeToRivetTunnelMessageKind,
|
|
1806
3142
|
writeToRivetWebSocketClose,
|