@smart-byte/leani-sdk 0.1.0-rc.1 → 0.1.0-rc.2
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/README.md +21 -7
- package/dist/backfill.d.ts +15 -2
- package/dist/backfill.js +277 -190
- package/dist/backfill.js.map +1 -1
- package/dist/errors.d.ts +10 -1
- package/dist/errors.js +13 -1
- package/dist/errors.js.map +1 -1
- package/dist/index.d.ts +39 -5
- package/dist/index.js +177 -150
- package/dist/index.js.map +1 -1
- package/dist/openapi.generated.d.ts +532 -88
- package/dist/openapi.generated.js.map +1 -1
- package/dist/transport.d.ts +39 -0
- package/dist/transport.js +166 -0
- package/dist/transport.js.map +1 -0
- package/package.json +11 -8
- package/dist/backfill.d.ts.map +0 -1
- package/dist/errors.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/openapi.generated.d.ts.map +0 -1
|
@@ -236,10 +236,25 @@ export interface paths {
|
|
|
236
236
|
};
|
|
237
237
|
cookie?: never;
|
|
238
238
|
};
|
|
239
|
-
/**
|
|
239
|
+
/**
|
|
240
|
+
* Query processor entities
|
|
241
|
+
* @description Without a cursor, reads current retained output in entity-key order
|
|
242
|
+
* without creating a snapshot; its `nextCursor` continues that read,
|
|
243
|
+
* and later pages see later commits. A cursor from a snapshot reads the
|
|
244
|
+
* snapshot's next page. Create a stable snapshot with POST.
|
|
245
|
+
*/
|
|
240
246
|
get: operations["queryProcessorEntities"];
|
|
241
247
|
put?: never;
|
|
242
|
-
|
|
248
|
+
/**
|
|
249
|
+
* Snapshot processor entities
|
|
250
|
+
* @description Copies the matching retained output into a stable, short-lived
|
|
251
|
+
* snapshot and returns its first page. Read later pages with GET and the
|
|
252
|
+
* page's `nextCursor`, and release the snapshot when done. A
|
|
253
|
+
* `finalized_only` processor's snapshot holds blocks whose changes are
|
|
254
|
+
* not published yet, so it offers no boundary to follow:
|
|
255
|
+
* `boundaryCursor` and `recovery.follow` are null.
|
|
256
|
+
*/
|
|
257
|
+
post: operations["createProcessorEntitySnapshot"];
|
|
243
258
|
delete?: never;
|
|
244
259
|
options?: never;
|
|
245
260
|
head?: never;
|
|
@@ -417,11 +432,21 @@ export interface paths {
|
|
|
417
432
|
};
|
|
418
433
|
cookie?: never;
|
|
419
434
|
};
|
|
420
|
-
/**
|
|
435
|
+
/**
|
|
436
|
+
* Read a durable consumer
|
|
437
|
+
* @description Administrative: only the bearer token protects it, whether or not the
|
|
438
|
+
* consumer has a credential, as for the consumer list. A credential
|
|
439
|
+
* isolates applications on the consumer-scoped delivery routes.
|
|
440
|
+
*/
|
|
421
441
|
get: operations["getDurableConsumer"];
|
|
422
442
|
put?: never;
|
|
423
443
|
post?: never;
|
|
424
|
-
/**
|
|
444
|
+
/**
|
|
445
|
+
* Revoke a durable consumer
|
|
446
|
+
* @description Administrative: only the bearer token protects it, whether or not the
|
|
447
|
+
* consumer has a credential, so an operator can revoke a consumer whose
|
|
448
|
+
* credential is lost.
|
|
449
|
+
*/
|
|
425
450
|
delete: operations["revokeDurableConsumer"];
|
|
426
451
|
options?: never;
|
|
427
452
|
head?: never;
|
|
@@ -433,8 +458,13 @@ export interface paths {
|
|
|
433
458
|
query?: never;
|
|
434
459
|
header?: {
|
|
435
460
|
/**
|
|
436
|
-
* @description
|
|
437
|
-
*
|
|
461
|
+
* @description The consumer's credential. A consumer created with one needs it, in
|
|
462
|
+
* addition to any bearer token, on its lease, change, acknowledgement,
|
|
463
|
+
* and stream requests, and gets 403 `forbidden` without it or with
|
|
464
|
+
* another; the node compares it in constant time. Listing, inspecting,
|
|
465
|
+
* and revoking consumers need only the bearer token. A consumer without
|
|
466
|
+
* one, such as a configured consumer, takes none. Credentials created
|
|
467
|
+
* before 32 characters were required keep working.
|
|
438
468
|
*/
|
|
439
469
|
"x-leani-consumer-credential"?: components["parameters"]["ConsumerCredential"];
|
|
440
470
|
};
|
|
@@ -446,7 +476,12 @@ export interface paths {
|
|
|
446
476
|
};
|
|
447
477
|
get?: never;
|
|
448
478
|
put?: never;
|
|
449
|
-
/**
|
|
479
|
+
/**
|
|
480
|
+
* Renew a durable consumer lease
|
|
481
|
+
* @description A split live stream fences renewal by session, so its processors get
|
|
482
|
+
* 409 `consumer_session_required`; renew through
|
|
483
|
+
* `/streams/live/consumers/{consumer}/lease` instead.
|
|
484
|
+
*/
|
|
450
485
|
post: operations["renewDurableConsumerLease"];
|
|
451
486
|
delete?: never;
|
|
452
487
|
options?: never;
|
|
@@ -459,8 +494,13 @@ export interface paths {
|
|
|
459
494
|
query?: never;
|
|
460
495
|
header?: {
|
|
461
496
|
/**
|
|
462
|
-
* @description
|
|
463
|
-
*
|
|
497
|
+
* @description The consumer's credential. A consumer created with one needs it, in
|
|
498
|
+
* addition to any bearer token, on its lease, change, acknowledgement,
|
|
499
|
+
* and stream requests, and gets 403 `forbidden` without it or with
|
|
500
|
+
* another; the node compares it in constant time. Listing, inspecting,
|
|
501
|
+
* and revoking consumers need only the bearer token. A consumer without
|
|
502
|
+
* one, such as a configured consumer, takes none. Credentials created
|
|
503
|
+
* before 32 characters were required keep working.
|
|
464
504
|
*/
|
|
465
505
|
"x-leani-consumer-credential"?: components["parameters"]["ConsumerCredential"];
|
|
466
506
|
};
|
|
@@ -485,8 +525,13 @@ export interface paths {
|
|
|
485
525
|
query?: never;
|
|
486
526
|
header?: {
|
|
487
527
|
/**
|
|
488
|
-
* @description
|
|
489
|
-
*
|
|
528
|
+
* @description The consumer's credential. A consumer created with one needs it, in
|
|
529
|
+
* addition to any bearer token, on its lease, change, acknowledgement,
|
|
530
|
+
* and stream requests, and gets 403 `forbidden` without it or with
|
|
531
|
+
* another; the node compares it in constant time. Listing, inspecting,
|
|
532
|
+
* and revoking consumers need only the bearer token. A consumer without
|
|
533
|
+
* one, such as a configured consumer, takes none. Credentials created
|
|
534
|
+
* before 32 characters were required keep working.
|
|
490
535
|
*/
|
|
491
536
|
"x-leani-consumer-credential"?: components["parameters"]["ConsumerCredential"];
|
|
492
537
|
};
|
|
@@ -498,7 +543,14 @@ export interface paths {
|
|
|
498
543
|
};
|
|
499
544
|
get?: never;
|
|
500
545
|
put?: never;
|
|
501
|
-
/**
|
|
546
|
+
/**
|
|
547
|
+
* Acknowledge durable consumer changes
|
|
548
|
+
* @description A cursor beyond the consumer's delivered sequence gets 409
|
|
549
|
+
* `acknowledgement_beyond_delivered`. A split live stream fences
|
|
550
|
+
* acknowledgement by session, so its processors get 409
|
|
551
|
+
* `consumer_session_required`; acknowledge through
|
|
552
|
+
* `/streams/live/consumers/{consumer}/ack` instead.
|
|
553
|
+
*/
|
|
502
554
|
post: operations["acknowledgeDurableConsumerChanges"];
|
|
503
555
|
delete?: never;
|
|
504
556
|
options?: never;
|
|
@@ -569,8 +621,13 @@ export interface paths {
|
|
|
569
621
|
query?: never;
|
|
570
622
|
header?: {
|
|
571
623
|
/**
|
|
572
|
-
* @description
|
|
573
|
-
*
|
|
624
|
+
* @description The consumer's credential. A consumer created with one needs it, in
|
|
625
|
+
* addition to any bearer token, on its lease, change, acknowledgement,
|
|
626
|
+
* and stream requests, and gets 403 `forbidden` without it or with
|
|
627
|
+
* another; the node compares it in constant time. Listing, inspecting,
|
|
628
|
+
* and revoking consumers need only the bearer token. A consumer without
|
|
629
|
+
* one, such as a configured consumer, takes none. Credentials created
|
|
630
|
+
* before 32 characters were required keep working.
|
|
574
631
|
*/
|
|
575
632
|
"x-leani-consumer-credential"?: components["parameters"]["ConsumerCredential"];
|
|
576
633
|
};
|
|
@@ -580,7 +637,15 @@ export interface paths {
|
|
|
580
637
|
};
|
|
581
638
|
cookie?: never;
|
|
582
639
|
};
|
|
583
|
-
/**
|
|
640
|
+
/**
|
|
641
|
+
* Stream the dedicated live lane for a durable consumer
|
|
642
|
+
* @description Each batch holds one whole block's commit, and records the consumer's
|
|
643
|
+
* delivered sequence through it. A request whose `Sec-Fetch-Site` is
|
|
644
|
+
* `cross-site` or `same-site` without an allowed `Origin`, such as a
|
|
645
|
+
* navigation of another site's frame, gets 403 `cross_site_request`.
|
|
646
|
+
* When the node shuts down, the stream ends after a whole record;
|
|
647
|
+
* reconnect to resume after the acknowledged cursor.
|
|
648
|
+
*/
|
|
584
649
|
get: operations["streamLiveDurableConsumer"];
|
|
585
650
|
put?: never;
|
|
586
651
|
post?: never;
|
|
@@ -595,8 +660,13 @@ export interface paths {
|
|
|
595
660
|
query?: never;
|
|
596
661
|
header?: {
|
|
597
662
|
/**
|
|
598
|
-
* @description
|
|
599
|
-
*
|
|
663
|
+
* @description The consumer's credential. A consumer created with one needs it, in
|
|
664
|
+
* addition to any bearer token, on its lease, change, acknowledgement,
|
|
665
|
+
* and stream requests, and gets 403 `forbidden` without it or with
|
|
666
|
+
* another; the node compares it in constant time. Listing, inspecting,
|
|
667
|
+
* and revoking consumers need only the bearer token. A consumer without
|
|
668
|
+
* one, such as a configured consumer, takes none. Credentials created
|
|
669
|
+
* before 32 characters were required keep working.
|
|
600
670
|
*/
|
|
601
671
|
"x-leani-consumer-credential"?: components["parameters"]["ConsumerCredential"];
|
|
602
672
|
};
|
|
@@ -608,7 +678,13 @@ export interface paths {
|
|
|
608
678
|
};
|
|
609
679
|
get?: never;
|
|
610
680
|
put?: never;
|
|
611
|
-
/**
|
|
681
|
+
/**
|
|
682
|
+
* Acknowledge a live-lane consumer batch
|
|
683
|
+
* @description The cursor must end a block's commit, as a batch's
|
|
684
|
+
* `acknowledgeableCursor` does, and gets 409
|
|
685
|
+
* `acknowledgement_mid_block` otherwise. A cursor beyond the consumer's
|
|
686
|
+
* delivered sequence gets 409 `acknowledgement_beyond_delivered`.
|
|
687
|
+
*/
|
|
612
688
|
post: operations["acknowledgeLiveDurableConsumer"];
|
|
613
689
|
delete?: never;
|
|
614
690
|
options?: never;
|
|
@@ -621,8 +697,13 @@ export interface paths {
|
|
|
621
697
|
query?: never;
|
|
622
698
|
header?: {
|
|
623
699
|
/**
|
|
624
|
-
* @description
|
|
625
|
-
*
|
|
700
|
+
* @description The consumer's credential. A consumer created with one needs it, in
|
|
701
|
+
* addition to any bearer token, on its lease, change, acknowledgement,
|
|
702
|
+
* and stream requests, and gets 403 `forbidden` without it or with
|
|
703
|
+
* another; the node compares it in constant time. Listing, inspecting,
|
|
704
|
+
* and revoking consumers need only the bearer token. A consumer without
|
|
705
|
+
* one, such as a configured consumer, takes none. Credentials created
|
|
706
|
+
* before 32 characters were required keep working.
|
|
626
707
|
*/
|
|
627
708
|
"x-leani-consumer-credential"?: components["parameters"]["ConsumerCredential"];
|
|
628
709
|
};
|
|
@@ -648,8 +729,13 @@ export interface paths {
|
|
|
648
729
|
query?: never;
|
|
649
730
|
header?: {
|
|
650
731
|
/**
|
|
651
|
-
* @description
|
|
652
|
-
*
|
|
732
|
+
* @description The consumer's credential. A consumer created with one needs it, in
|
|
733
|
+
* addition to any bearer token, on its lease, change, acknowledgement,
|
|
734
|
+
* and stream requests, and gets 403 `forbidden` without it or with
|
|
735
|
+
* another; the node compares it in constant time. Listing, inspecting,
|
|
736
|
+
* and revoking consumers need only the bearer token. A consumer without
|
|
737
|
+
* one, such as a configured consumer, takes none. Credentials created
|
|
738
|
+
* before 32 characters were required keep working.
|
|
653
739
|
*/
|
|
654
740
|
"x-leani-consumer-credential"?: components["parameters"]["ConsumerCredential"];
|
|
655
741
|
};
|
|
@@ -674,8 +760,13 @@ export interface paths {
|
|
|
674
760
|
query?: never;
|
|
675
761
|
header?: {
|
|
676
762
|
/**
|
|
677
|
-
* @description
|
|
678
|
-
*
|
|
763
|
+
* @description The consumer's credential. A consumer created with one needs it, in
|
|
764
|
+
* addition to any bearer token, on its lease, change, acknowledgement,
|
|
765
|
+
* and stream requests, and gets 403 `forbidden` without it or with
|
|
766
|
+
* another; the node compares it in constant time. Listing, inspecting,
|
|
767
|
+
* and revoking consumers need only the bearer token. A consumer without
|
|
768
|
+
* one, such as a configured consumer, takes none. Credentials created
|
|
769
|
+
* before 32 characters were required keep working.
|
|
679
770
|
*/
|
|
680
771
|
"x-leani-consumer-credential"?: components["parameters"]["ConsumerCredential"];
|
|
681
772
|
};
|
|
@@ -685,7 +776,15 @@ export interface paths {
|
|
|
685
776
|
};
|
|
686
777
|
cookie?: never;
|
|
687
778
|
};
|
|
688
|
-
/**
|
|
779
|
+
/**
|
|
780
|
+
* Stream changes from one backfill subscription
|
|
781
|
+
* @description Each batch and the completion record the consumer's delivered
|
|
782
|
+
* sequence through their acknowledgement boundary. A request whose
|
|
783
|
+
* `Sec-Fetch-Site` is `cross-site` or `same-site` without an allowed
|
|
784
|
+
* `Origin`, such as a navigation of another site's frame, gets 403
|
|
785
|
+
* `cross_site_request`. When the node shuts down, the stream ends after
|
|
786
|
+
* a whole record; reconnect to resume after the acknowledged cursor.
|
|
787
|
+
*/
|
|
689
788
|
get: operations["streamBackfillConsumer"];
|
|
690
789
|
put?: never;
|
|
691
790
|
post?: never;
|
|
@@ -700,8 +799,13 @@ export interface paths {
|
|
|
700
799
|
query?: never;
|
|
701
800
|
header?: {
|
|
702
801
|
/**
|
|
703
|
-
* @description
|
|
704
|
-
*
|
|
802
|
+
* @description The consumer's credential. A consumer created with one needs it, in
|
|
803
|
+
* addition to any bearer token, on its lease, change, acknowledgement,
|
|
804
|
+
* and stream requests, and gets 403 `forbidden` without it or with
|
|
805
|
+
* another; the node compares it in constant time. Listing, inspecting,
|
|
806
|
+
* and revoking consumers need only the bearer token. A consumer without
|
|
807
|
+
* one, such as a configured consumer, takes none. Credentials created
|
|
808
|
+
* before 32 characters were required keep working.
|
|
705
809
|
*/
|
|
706
810
|
"x-leani-consumer-credential"?: components["parameters"]["ConsumerCredential"];
|
|
707
811
|
};
|
|
@@ -713,7 +817,13 @@ export interface paths {
|
|
|
713
817
|
};
|
|
714
818
|
get?: never;
|
|
715
819
|
put?: never;
|
|
716
|
-
/**
|
|
820
|
+
/**
|
|
821
|
+
* Acknowledge a backfill subscription batch
|
|
822
|
+
* @description The cursor must be a batch's `acknowledgeableCursor` or the
|
|
823
|
+
* completion's `cursor` (409 `acknowledgement_invalid` otherwise), and
|
|
824
|
+
* not beyond the consumer's delivered sequence (409
|
|
825
|
+
* `acknowledgement_beyond_delivered`).
|
|
826
|
+
*/
|
|
717
827
|
post: operations["acknowledgeBackfillConsumer"];
|
|
718
828
|
delete?: never;
|
|
719
829
|
options?: never;
|
|
@@ -726,8 +836,13 @@ export interface paths {
|
|
|
726
836
|
query?: never;
|
|
727
837
|
header?: {
|
|
728
838
|
/**
|
|
729
|
-
* @description
|
|
730
|
-
*
|
|
839
|
+
* @description The consumer's credential. A consumer created with one needs it, in
|
|
840
|
+
* addition to any bearer token, on its lease, change, acknowledgement,
|
|
841
|
+
* and stream requests, and gets 403 `forbidden` without it or with
|
|
842
|
+
* another; the node compares it in constant time. Listing, inspecting,
|
|
843
|
+
* and revoking consumers need only the bearer token. A consumer without
|
|
844
|
+
* one, such as a configured consumer, takes none. Credentials created
|
|
845
|
+
* before 32 characters were required keep working.
|
|
731
846
|
*/
|
|
732
847
|
"x-leani-consumer-credential"?: components["parameters"]["ConsumerCredential"];
|
|
733
848
|
};
|
|
@@ -815,7 +930,20 @@ export interface paths {
|
|
|
815
930
|
/** List backfill subscriptions */
|
|
816
931
|
get: operations["listBackfillSubscriptions"];
|
|
817
932
|
put?: never;
|
|
818
|
-
/**
|
|
933
|
+
/**
|
|
934
|
+
* Create a backfill subscription
|
|
935
|
+
* @description A new subscription's consumer `credential` holds 32 to 512 printable
|
|
936
|
+
* ASCII characters without spaces (400 otherwise). Re-submitting an
|
|
937
|
+
* existing subscription's request unchanged returns its status, even
|
|
938
|
+
* with a credential from before that rule. The credential enters the
|
|
939
|
+
* request's idempotency identity, an unkeyed BLAKE3 hash of the whole
|
|
940
|
+
* request that the node keeps, so use a random one.
|
|
941
|
+
*
|
|
942
|
+
* A range that starts past the node's finalized head gets 409
|
|
943
|
+
* `range_after_finalized_head`, and one that only ends past it
|
|
944
|
+
* `history_not_finalized`. Their `details.currentFinalizedHead` holds
|
|
945
|
+
* the head's `number` and its `hash` as `0x` hex.
|
|
946
|
+
*/
|
|
819
947
|
post: operations["createBackfillSubscription"];
|
|
820
948
|
delete?: never;
|
|
821
949
|
options?: never;
|
|
@@ -872,7 +1000,13 @@ export interface paths {
|
|
|
872
1000
|
/** List materialization jobs */
|
|
873
1001
|
get: operations["listMaterializationJobs"];
|
|
874
1002
|
put?: never;
|
|
875
|
-
/**
|
|
1003
|
+
/**
|
|
1004
|
+
* Create a materialization job
|
|
1005
|
+
* @description A range that starts past the node's finalized head gets 409
|
|
1006
|
+
* `range_after_finalized_head`, and one that only ends past it
|
|
1007
|
+
* `history_not_finalized`. Their `details.currentFinalizedHead` holds
|
|
1008
|
+
* the head's `number` and its `hash` as `0x` hex.
|
|
1009
|
+
*/
|
|
876
1010
|
post: operations["createMaterializationJob"];
|
|
877
1011
|
delete?: never;
|
|
878
1012
|
options?: never;
|
|
@@ -1243,7 +1377,6 @@ export interface components {
|
|
|
1243
1377
|
/** @example -1000000000000000000 */
|
|
1244
1378
|
SignedDecimalQuantity: string;
|
|
1245
1379
|
Hash32: string;
|
|
1246
|
-
ByteArray32: number[];
|
|
1247
1380
|
Address: string;
|
|
1248
1381
|
/** @description Store-, chain-, and processor-bound opaque value. */
|
|
1249
1382
|
Cursor: string;
|
|
@@ -1349,8 +1482,12 @@ export interface components {
|
|
|
1349
1482
|
/** @description Highest covered block recorded as finalized. This is not a contiguous-coverage guarantee; lower gaps or non-finalized blocks can exist. Inspect available intervals for exact finalized coverage. */
|
|
1350
1483
|
finalizedThrough: components["schemas"]["SafeInteger"] | null;
|
|
1351
1484
|
complete: boolean;
|
|
1352
|
-
/**
|
|
1353
|
-
|
|
1485
|
+
/**
|
|
1486
|
+
* @description `paused` and `failed` report the processor's live lane;
|
|
1487
|
+
* `/v1/network/status` gives its `pauseReason`.
|
|
1488
|
+
* @enum {string}
|
|
1489
|
+
*/
|
|
1490
|
+
state: "starting" | "backfilling" | "catching_up" | "live" | "degraded" | "paused" | "failed";
|
|
1354
1491
|
};
|
|
1355
1492
|
ChainFinalizedHead: {
|
|
1356
1493
|
number: components["schemas"]["SafeInteger"];
|
|
@@ -1385,11 +1522,20 @@ export interface components {
|
|
|
1385
1522
|
blockTimestamp: components["schemas"]["SafeInteger"];
|
|
1386
1523
|
finality: components["schemas"]["Finality"];
|
|
1387
1524
|
};
|
|
1525
|
+
GenericOutputPage: {
|
|
1526
|
+
data: components["schemas"]["GenericOutputEntity"][];
|
|
1527
|
+
nextCursor: components["schemas"]["Cursor"] | null;
|
|
1528
|
+
retainedBounds: components["schemas"]["OutputBounds"] | null;
|
|
1529
|
+
coverage: components["schemas"]["ProcessorCoverage"];
|
|
1530
|
+
};
|
|
1388
1531
|
GenericSnapshotPage: {
|
|
1389
1532
|
data: components["schemas"]["GenericOutputEntity"][];
|
|
1390
1533
|
nextCursor: components["schemas"]["Cursor"] | null;
|
|
1391
1534
|
snapshotId: string;
|
|
1392
|
-
/**
|
|
1535
|
+
/**
|
|
1536
|
+
* @description Null when the processor has delivery disabled or is
|
|
1537
|
+
* `finalized_only`, whose retained state holds unpublished blocks.
|
|
1538
|
+
*/
|
|
1393
1539
|
boundaryCursor: components["schemas"]["Cursor"] | null;
|
|
1394
1540
|
rowCount: components["schemas"]["DecimalQuantity"];
|
|
1395
1541
|
/** @description Snapshot accounting bytes, including entity keys and row overhead. */
|
|
@@ -1425,19 +1571,43 @@ export interface components {
|
|
|
1425
1571
|
cursor: components["schemas"]["Cursor"];
|
|
1426
1572
|
};
|
|
1427
1573
|
leaseTtlSeconds: number;
|
|
1574
|
+
/**
|
|
1575
|
+
* @description A random secret of 32 to 512 printable ASCII characters without
|
|
1576
|
+
* spaces, such as `openssl rand -hex 32`. Only a hash keyed with the
|
|
1577
|
+
* node's secret is stored. The consumer's lease, change,
|
|
1578
|
+
* acknowledgement, and stream requests then need it; listing,
|
|
1579
|
+
* inspecting, and revoking consumers need only the bearer token.
|
|
1580
|
+
* These bounds apply to a new consumer: the node checks the ID
|
|
1581
|
+
* first, so an existing consumer ID gets 409 `consumer_exists`
|
|
1582
|
+
* whatever the credential, even one outside them.
|
|
1583
|
+
*/
|
|
1428
1584
|
credential: string;
|
|
1429
1585
|
};
|
|
1430
1586
|
DurableConsumer: {
|
|
1431
1587
|
id: string;
|
|
1432
1588
|
processorInstance: string;
|
|
1589
|
+
/**
|
|
1590
|
+
* @description The delivery stream this consumer reads: the processor's live or
|
|
1591
|
+
* canonical stream, or a backfill subscription's history stream.
|
|
1592
|
+
*/
|
|
1593
|
+
streamId: string;
|
|
1433
1594
|
/** @enum {string} */
|
|
1434
1595
|
role: "required" | "best_effort";
|
|
1435
1596
|
/** @enum {string} */
|
|
1436
1597
|
state: "active" | "reset_required" | "revoked";
|
|
1437
1598
|
acknowledgedSequence: components["schemas"]["DecimalQuantity"];
|
|
1599
|
+
/**
|
|
1600
|
+
* @description The last sequence a page read or stream batch handed to this
|
|
1601
|
+
* consumer; acknowledgement cannot pass it.
|
|
1602
|
+
*/
|
|
1438
1603
|
deliveredSequence: components["schemas"]["DecimalQuantity"];
|
|
1439
1604
|
acknowledgedCursor: components["schemas"]["Cursor"];
|
|
1440
1605
|
deliveredCursor: components["schemas"]["Cursor"];
|
|
1606
|
+
/**
|
|
1607
|
+
* @description How many stream sessions have taken this consumer's lease; each
|
|
1608
|
+
* new session fences the one before it. `0` before the first.
|
|
1609
|
+
*/
|
|
1610
|
+
leaseGeneration: components["schemas"]["DecimalQuantity"];
|
|
1441
1611
|
leaseTtlMs: components["schemas"]["DecimalQuantity"];
|
|
1442
1612
|
leaseExpiresAtUnixMs: components["schemas"]["DecimalQuantity"];
|
|
1443
1613
|
leaseActive: boolean;
|
|
@@ -1452,8 +1622,8 @@ export interface components {
|
|
|
1452
1622
|
checkpointId: components["schemas"]["SafeInteger"];
|
|
1453
1623
|
processorInstance: string;
|
|
1454
1624
|
blockNumber: components["schemas"]["SafeInteger"];
|
|
1455
|
-
blockHash: components["schemas"]["
|
|
1456
|
-
stateChecksum: components["schemas"]["
|
|
1625
|
+
blockHash: components["schemas"]["Hash32"];
|
|
1626
|
+
stateChecksum: components["schemas"]["Hash32"];
|
|
1457
1627
|
stateBytes: components["schemas"]["SafeInteger"];
|
|
1458
1628
|
createdAtUnixMs: components["schemas"]["SafeInteger"];
|
|
1459
1629
|
};
|
|
@@ -1469,8 +1639,8 @@ export interface components {
|
|
|
1469
1639
|
savepointId: string;
|
|
1470
1640
|
processorInstance: string;
|
|
1471
1641
|
blockNumber: components["schemas"]["SafeInteger"];
|
|
1472
|
-
blockHash: components["schemas"]["
|
|
1473
|
-
stateChecksum: components["schemas"]["
|
|
1642
|
+
blockHash: components["schemas"]["Hash32"];
|
|
1643
|
+
stateChecksum: components["schemas"]["Hash32"];
|
|
1474
1644
|
stateBytes: components["schemas"]["SafeInteger"];
|
|
1475
1645
|
createdAtUnixMs: components["schemas"]["SafeInteger"];
|
|
1476
1646
|
};
|
|
@@ -1484,12 +1654,15 @@ export interface components {
|
|
|
1484
1654
|
blobCount: components["schemas"]["SafeInteger"];
|
|
1485
1655
|
blobGasUsed: components["schemas"]["DecimalQuantity"];
|
|
1486
1656
|
excessBlobGas: components["schemas"]["DecimalQuantity"];
|
|
1657
|
+
/** @description Protocol blob base fee in wei per blob gas: the EIP-4844 fee for excessBlobGas under the fork active at the block's timestamp. EIP-7918 does not change it. */
|
|
1487
1658
|
blobBaseFee: components["schemas"]["DecimalQuantity"];
|
|
1488
1659
|
executionBaseFee: components["schemas"]["DecimalQuantity"];
|
|
1489
1660
|
gasUsed: components["schemas"]["DecimalQuantity"];
|
|
1490
1661
|
gasLimit: components["schemas"]["DecimalQuantity"];
|
|
1491
1662
|
executionEthBurnedWei: components["schemas"]["DecimalQuantity"];
|
|
1663
|
+
/** @description blobBaseFee times blobGasUsed. */
|
|
1492
1664
|
blobEthBurnedWei: components["schemas"]["DecimalQuantity"];
|
|
1665
|
+
/** @description EIP-7918 reserve price in wei per blob gas from Fusaka on, null before. It only changes how excess blob gas evolves and is not applied to blobBaseFee. */
|
|
1493
1666
|
reserveFeeWei: components["schemas"]["DecimalQuantity"] | null;
|
|
1494
1667
|
transactionCount: components["schemas"]["SafeInteger"];
|
|
1495
1668
|
targetBlobsPerBlock: components["schemas"]["SafeInteger"];
|
|
@@ -1508,11 +1681,14 @@ export interface components {
|
|
|
1508
1681
|
blobCount: components["schemas"]["SafeInteger"];
|
|
1509
1682
|
totalBurnedWei: components["schemas"]["DecimalQuantity"];
|
|
1510
1683
|
executionBurnedWei: components["schemas"]["DecimalQuantity"];
|
|
1684
|
+
/** @description The block's blobBaseFee times this transaction's blob gas. */
|
|
1511
1685
|
blobBurnedWei: components["schemas"]["DecimalQuantity"];
|
|
1512
1686
|
};
|
|
1513
1687
|
BlobSchedule: {
|
|
1514
1688
|
name: string;
|
|
1689
|
+
/** @description Block-number label for atBlock lookups. For Dencun it is 19426589, the first block the blobs processor covers. */
|
|
1515
1690
|
activationBlock: components["schemas"]["SafeInteger"];
|
|
1691
|
+
/** @description The fork's parameters apply to blocks from this timestamp on. */
|
|
1516
1692
|
activationTimestamp: components["schemas"]["SafeInteger"];
|
|
1517
1693
|
forkId: string;
|
|
1518
1694
|
targetBlobsPerBlock: components["schemas"]["SafeInteger"];
|
|
@@ -1531,6 +1707,8 @@ export interface components {
|
|
|
1531
1707
|
finality: components["schemas"]["Finality"];
|
|
1532
1708
|
coverageFrom: components["schemas"]["SafeInteger"];
|
|
1533
1709
|
complete: boolean;
|
|
1710
|
+
/** @description Block whose transfer the ledger could not apply for this token and holder, an outgoing transfer above the derived balance or an incoming one that overflows it. From that block the pair is incomplete and no longer derived, and balance keeps its last derived value. Null while the pair is derived. */
|
|
1711
|
+
incompleteFrom: components["schemas"]["SafeInteger"] | null;
|
|
1534
1712
|
/** @constant */
|
|
1535
1713
|
method: "erc20_transfer_ledger";
|
|
1536
1714
|
};
|
|
@@ -1672,10 +1850,21 @@ export interface components {
|
|
|
1672
1850
|
Collection: string;
|
|
1673
1851
|
Consumer: string;
|
|
1674
1852
|
/**
|
|
1675
|
-
* @description
|
|
1676
|
-
*
|
|
1853
|
+
* @description The consumer's credential. A consumer created with one needs it, in
|
|
1854
|
+
* addition to any bearer token, on its lease, change, acknowledgement,
|
|
1855
|
+
* and stream requests, and gets 403 `forbidden` without it or with
|
|
1856
|
+
* another; the node compares it in constant time. Listing, inspecting,
|
|
1857
|
+
* and revoking consumers need only the bearer token. A consumer without
|
|
1858
|
+
* one, such as a configured consumer, takes none. Credentials created
|
|
1859
|
+
* before 32 characters were required keep working.
|
|
1677
1860
|
*/
|
|
1678
1861
|
ConsumerCredential: string;
|
|
1862
|
+
/**
|
|
1863
|
+
* @description Marks a mutating request without a JSON body as sent by a Leani
|
|
1864
|
+
* client. A POST or DELETE needs `content-type: application/json` or
|
|
1865
|
+
* this header, and gets HTTP 415 otherwise.
|
|
1866
|
+
*/
|
|
1867
|
+
LeaniRequest: "1";
|
|
1679
1868
|
Subscription: string;
|
|
1680
1869
|
Identifier: string;
|
|
1681
1870
|
Block: components["schemas"]["SafeInteger"];
|
|
@@ -1943,7 +2132,14 @@ export interface operations {
|
|
|
1943
2132
|
/** @description Opaque cursor of the last fully committed event. */
|
|
1944
2133
|
after?: components["parameters"]["After"];
|
|
1945
2134
|
};
|
|
1946
|
-
header?:
|
|
2135
|
+
header?: {
|
|
2136
|
+
/**
|
|
2137
|
+
* @description The id of the last event received, which is its cursor, as an
|
|
2138
|
+
* EventSource sends it when it reconnects. The stream resumes after
|
|
2139
|
+
* it when `after` is absent.
|
|
2140
|
+
*/
|
|
2141
|
+
"Last-Event-ID"?: components["schemas"]["Cursor"];
|
|
2142
|
+
};
|
|
1947
2143
|
path: {
|
|
1948
2144
|
processor: components["parameters"]["Processor"];
|
|
1949
2145
|
};
|
|
@@ -1953,7 +2149,11 @@ export interface operations {
|
|
|
1953
2149
|
responses: {
|
|
1954
2150
|
/**
|
|
1955
2151
|
* @description Resumable SSE stream. The event id is the opaque resume cursor and
|
|
1956
|
-
* each data field contains one ChangeEnvelope.
|
|
2152
|
+
* each data field contains one ChangeEnvelope. When the node shuts
|
|
2153
|
+
* down, the stream ends after a whole event; reconnect after the
|
|
2154
|
+
* last event's id. An `error` event carries an ErrorBody and ends
|
|
2155
|
+
* the stream; reconnect only when its `retryable` is true. A stored
|
|
2156
|
+
* change the node cannot render is not retryable.
|
|
1957
2157
|
*/
|
|
1958
2158
|
200: {
|
|
1959
2159
|
headers: {
|
|
@@ -2007,6 +2207,34 @@ export interface operations {
|
|
|
2007
2207
|
cookie?: never;
|
|
2008
2208
|
};
|
|
2009
2209
|
requestBody?: never;
|
|
2210
|
+
responses: {
|
|
2211
|
+
/** @description A page of current output, or of a snapshot for a snapshot cursor. */
|
|
2212
|
+
200: {
|
|
2213
|
+
headers: {
|
|
2214
|
+
[name: string]: unknown;
|
|
2215
|
+
};
|
|
2216
|
+
content: {
|
|
2217
|
+
"application/json": components["schemas"]["GenericOutputPage"] | components["schemas"]["GenericSnapshotPage"];
|
|
2218
|
+
};
|
|
2219
|
+
};
|
|
2220
|
+
default: components["responses"]["Error"];
|
|
2221
|
+
};
|
|
2222
|
+
};
|
|
2223
|
+
createProcessorEntitySnapshot: {
|
|
2224
|
+
parameters: {
|
|
2225
|
+
query?: never;
|
|
2226
|
+
header?: never;
|
|
2227
|
+
path: {
|
|
2228
|
+
processor: components["parameters"]["Processor"];
|
|
2229
|
+
collection: components["parameters"]["Collection"];
|
|
2230
|
+
};
|
|
2231
|
+
cookie?: never;
|
|
2232
|
+
};
|
|
2233
|
+
requestBody: {
|
|
2234
|
+
content: {
|
|
2235
|
+
"application/json": components["schemas"]["OutputQuery"];
|
|
2236
|
+
};
|
|
2237
|
+
};
|
|
2010
2238
|
responses: {
|
|
2011
2239
|
/** @description Stable retained-output snapshot page. */
|
|
2012
2240
|
200: {
|
|
@@ -2106,7 +2334,14 @@ export interface operations {
|
|
|
2106
2334
|
releaseProcessorQuerySnapshot: {
|
|
2107
2335
|
parameters: {
|
|
2108
2336
|
query?: never;
|
|
2109
|
-
header?:
|
|
2337
|
+
header?: {
|
|
2338
|
+
/**
|
|
2339
|
+
* @description Marks a mutating request without a JSON body as sent by a Leani
|
|
2340
|
+
* client. A POST or DELETE needs `content-type: application/json` or
|
|
2341
|
+
* this header, and gets HTTP 415 otherwise.
|
|
2342
|
+
*/
|
|
2343
|
+
"x-leani-request"?: components["parameters"]["LeaniRequest"];
|
|
2344
|
+
};
|
|
2110
2345
|
path: {
|
|
2111
2346
|
processor: components["parameters"]["Processor"];
|
|
2112
2347
|
snapshot: string;
|
|
@@ -2153,7 +2388,14 @@ export interface operations {
|
|
|
2153
2388
|
restoreProcessorRecoveryCheckpoint: {
|
|
2154
2389
|
parameters: {
|
|
2155
2390
|
query?: never;
|
|
2156
|
-
header?:
|
|
2391
|
+
header?: {
|
|
2392
|
+
/**
|
|
2393
|
+
* @description Marks a mutating request without a JSON body as sent by a Leani
|
|
2394
|
+
* client. A POST or DELETE needs `content-type: application/json` or
|
|
2395
|
+
* this header, and gets HTTP 415 otherwise.
|
|
2396
|
+
*/
|
|
2397
|
+
"x-leani-request"?: components["parameters"]["LeaniRequest"];
|
|
2398
|
+
};
|
|
2157
2399
|
path: {
|
|
2158
2400
|
processor: components["parameters"]["Processor"];
|
|
2159
2401
|
checkpoint: components["schemas"]["SafeInteger"];
|
|
@@ -2225,6 +2467,30 @@ export interface operations {
|
|
|
2225
2467
|
"application/json": components["schemas"]["PortableSavepoint"];
|
|
2226
2468
|
};
|
|
2227
2469
|
};
|
|
2470
|
+
/**
|
|
2471
|
+
* @description `savepoint_limit`: the processor instance already keeps 16
|
|
2472
|
+
* savepoints; delete one first. `savepoint_exists`: the ID is taken.
|
|
2473
|
+
*/
|
|
2474
|
+
409: {
|
|
2475
|
+
headers: {
|
|
2476
|
+
[name: string]: unknown;
|
|
2477
|
+
};
|
|
2478
|
+
content: {
|
|
2479
|
+
"application/json": components["schemas"]["ErrorBody"];
|
|
2480
|
+
};
|
|
2481
|
+
};
|
|
2482
|
+
/**
|
|
2483
|
+
* @description `physical_storage_limit`: the savepoint would exceed the physical
|
|
2484
|
+
* store budget. Free space or raise the budget first.
|
|
2485
|
+
*/
|
|
2486
|
+
507: {
|
|
2487
|
+
headers: {
|
|
2488
|
+
[name: string]: unknown;
|
|
2489
|
+
};
|
|
2490
|
+
content: {
|
|
2491
|
+
"application/json": components["schemas"]["ErrorBody"];
|
|
2492
|
+
};
|
|
2493
|
+
};
|
|
2228
2494
|
default: components["responses"]["Error"];
|
|
2229
2495
|
};
|
|
2230
2496
|
};
|
|
@@ -2255,7 +2521,14 @@ export interface operations {
|
|
|
2255
2521
|
deleteProcessorSavepoint: {
|
|
2256
2522
|
parameters: {
|
|
2257
2523
|
query?: never;
|
|
2258
|
-
header?:
|
|
2524
|
+
header?: {
|
|
2525
|
+
/**
|
|
2526
|
+
* @description Marks a mutating request without a JSON body as sent by a Leani
|
|
2527
|
+
* client. A POST or DELETE needs `content-type: application/json` or
|
|
2528
|
+
* this header, and gets HTTP 415 otherwise.
|
|
2529
|
+
*/
|
|
2530
|
+
"x-leani-request"?: components["parameters"]["LeaniRequest"];
|
|
2531
|
+
};
|
|
2259
2532
|
path: {
|
|
2260
2533
|
processor: components["parameters"]["Processor"];
|
|
2261
2534
|
savepoint: string;
|
|
@@ -2353,7 +2626,14 @@ export interface operations {
|
|
|
2353
2626
|
revokeDurableConsumer: {
|
|
2354
2627
|
parameters: {
|
|
2355
2628
|
query?: never;
|
|
2356
|
-
header?:
|
|
2629
|
+
header?: {
|
|
2630
|
+
/**
|
|
2631
|
+
* @description Marks a mutating request without a JSON body as sent by a Leani
|
|
2632
|
+
* client. A POST or DELETE needs `content-type: application/json` or
|
|
2633
|
+
* this header, and gets HTTP 415 otherwise.
|
|
2634
|
+
*/
|
|
2635
|
+
"x-leani-request"?: components["parameters"]["LeaniRequest"];
|
|
2636
|
+
};
|
|
2357
2637
|
path: {
|
|
2358
2638
|
processor: components["parameters"]["Processor"];
|
|
2359
2639
|
consumer: components["parameters"]["Consumer"];
|
|
@@ -2379,10 +2659,21 @@ export interface operations {
|
|
|
2379
2659
|
query?: never;
|
|
2380
2660
|
header?: {
|
|
2381
2661
|
/**
|
|
2382
|
-
* @description
|
|
2383
|
-
*
|
|
2662
|
+
* @description The consumer's credential. A consumer created with one needs it, in
|
|
2663
|
+
* addition to any bearer token, on its lease, change, acknowledgement,
|
|
2664
|
+
* and stream requests, and gets 403 `forbidden` without it or with
|
|
2665
|
+
* another; the node compares it in constant time. Listing, inspecting,
|
|
2666
|
+
* and revoking consumers need only the bearer token. A consumer without
|
|
2667
|
+
* one, such as a configured consumer, takes none. Credentials created
|
|
2668
|
+
* before 32 characters were required keep working.
|
|
2384
2669
|
*/
|
|
2385
2670
|
"x-leani-consumer-credential"?: components["parameters"]["ConsumerCredential"];
|
|
2671
|
+
/**
|
|
2672
|
+
* @description Marks a mutating request without a JSON body as sent by a Leani
|
|
2673
|
+
* client. A POST or DELETE needs `content-type: application/json` or
|
|
2674
|
+
* this header, and gets HTTP 415 otherwise.
|
|
2675
|
+
*/
|
|
2676
|
+
"x-leani-request"?: components["parameters"]["LeaniRequest"];
|
|
2386
2677
|
};
|
|
2387
2678
|
path: {
|
|
2388
2679
|
processor: components["parameters"]["Processor"];
|
|
@@ -2411,8 +2702,13 @@ export interface operations {
|
|
|
2411
2702
|
};
|
|
2412
2703
|
header?: {
|
|
2413
2704
|
/**
|
|
2414
|
-
* @description
|
|
2415
|
-
*
|
|
2705
|
+
* @description The consumer's credential. A consumer created with one needs it, in
|
|
2706
|
+
* addition to any bearer token, on its lease, change, acknowledgement,
|
|
2707
|
+
* and stream requests, and gets 403 `forbidden` without it or with
|
|
2708
|
+
* another; the node compares it in constant time. Listing, inspecting,
|
|
2709
|
+
* and revoking consumers need only the bearer token. A consumer without
|
|
2710
|
+
* one, such as a configured consumer, takes none. Credentials created
|
|
2711
|
+
* before 32 characters were required keep working.
|
|
2416
2712
|
*/
|
|
2417
2713
|
"x-leani-consumer-credential"?: components["parameters"]["ConsumerCredential"];
|
|
2418
2714
|
};
|
|
@@ -2424,7 +2720,11 @@ export interface operations {
|
|
|
2424
2720
|
};
|
|
2425
2721
|
requestBody?: never;
|
|
2426
2722
|
responses: {
|
|
2427
|
-
/**
|
|
2723
|
+
/**
|
|
2724
|
+
* @description Replay batch after the acknowledgement. Its last change becomes
|
|
2725
|
+
* the consumer's delivered sequence, which bounds acknowledgement;
|
|
2726
|
+
* the acknowledgement does not move.
|
|
2727
|
+
*/
|
|
2428
2728
|
200: {
|
|
2429
2729
|
headers: {
|
|
2430
2730
|
[name: string]: unknown;
|
|
@@ -2441,8 +2741,13 @@ export interface operations {
|
|
|
2441
2741
|
query?: never;
|
|
2442
2742
|
header?: {
|
|
2443
2743
|
/**
|
|
2444
|
-
* @description
|
|
2445
|
-
*
|
|
2744
|
+
* @description The consumer's credential. A consumer created with one needs it, in
|
|
2745
|
+
* addition to any bearer token, on its lease, change, acknowledgement,
|
|
2746
|
+
* and stream requests, and gets 403 `forbidden` without it or with
|
|
2747
|
+
* another; the node compares it in constant time. Listing, inspecting,
|
|
2748
|
+
* and revoking consumers need only the bearer token. A consumer without
|
|
2749
|
+
* one, such as a configured consumer, takes none. Credentials created
|
|
2750
|
+
* before 32 characters were required keep working.
|
|
2446
2751
|
*/
|
|
2447
2752
|
"x-leani-consumer-credential"?: components["parameters"]["ConsumerCredential"];
|
|
2448
2753
|
};
|
|
@@ -2541,8 +2846,13 @@ export interface operations {
|
|
|
2541
2846
|
query?: never;
|
|
2542
2847
|
header?: {
|
|
2543
2848
|
/**
|
|
2544
|
-
* @description
|
|
2545
|
-
*
|
|
2849
|
+
* @description The consumer's credential. A consumer created with one needs it, in
|
|
2850
|
+
* addition to any bearer token, on its lease, change, acknowledgement,
|
|
2851
|
+
* and stream requests, and gets 403 `forbidden` without it or with
|
|
2852
|
+
* another; the node compares it in constant time. Listing, inspecting,
|
|
2853
|
+
* and revoking consumers need only the bearer token. A consumer without
|
|
2854
|
+
* one, such as a configured consumer, takes none. Credentials created
|
|
2855
|
+
* before 32 characters were required keep working.
|
|
2546
2856
|
*/
|
|
2547
2857
|
"x-leani-consumer-credential"?: components["parameters"]["ConsumerCredential"];
|
|
2548
2858
|
};
|
|
@@ -2569,8 +2879,13 @@ export interface operations {
|
|
|
2569
2879
|
query?: never;
|
|
2570
2880
|
header?: {
|
|
2571
2881
|
/**
|
|
2572
|
-
* @description
|
|
2573
|
-
*
|
|
2882
|
+
* @description The consumer's credential. A consumer created with one needs it, in
|
|
2883
|
+
* addition to any bearer token, on its lease, change, acknowledgement,
|
|
2884
|
+
* and stream requests, and gets 403 `forbidden` without it or with
|
|
2885
|
+
* another; the node compares it in constant time. Listing, inspecting,
|
|
2886
|
+
* and revoking consumers need only the bearer token. A consumer without
|
|
2887
|
+
* one, such as a configured consumer, takes none. Credentials created
|
|
2888
|
+
* before 32 characters were required keep working.
|
|
2574
2889
|
*/
|
|
2575
2890
|
"x-leani-consumer-credential"?: components["parameters"]["ConsumerCredential"];
|
|
2576
2891
|
};
|
|
@@ -2597,10 +2912,21 @@ export interface operations {
|
|
|
2597
2912
|
query?: never;
|
|
2598
2913
|
header?: {
|
|
2599
2914
|
/**
|
|
2600
|
-
* @description
|
|
2601
|
-
*
|
|
2915
|
+
* @description The consumer's credential. A consumer created with one needs it, in
|
|
2916
|
+
* addition to any bearer token, on its lease, change, acknowledgement,
|
|
2917
|
+
* and stream requests, and gets 403 `forbidden` without it or with
|
|
2918
|
+
* another; the node compares it in constant time. Listing, inspecting,
|
|
2919
|
+
* and revoking consumers need only the bearer token. A consumer without
|
|
2920
|
+
* one, such as a configured consumer, takes none. Credentials created
|
|
2921
|
+
* before 32 characters were required keep working.
|
|
2602
2922
|
*/
|
|
2603
2923
|
"x-leani-consumer-credential"?: components["parameters"]["ConsumerCredential"];
|
|
2924
|
+
/**
|
|
2925
|
+
* @description Marks a mutating request without a JSON body as sent by a Leani
|
|
2926
|
+
* client. A POST or DELETE needs `content-type: application/json` or
|
|
2927
|
+
* this header, and gets HTTP 415 otherwise.
|
|
2928
|
+
*/
|
|
2929
|
+
"x-leani-request"?: components["parameters"]["LeaniRequest"];
|
|
2604
2930
|
};
|
|
2605
2931
|
path: {
|
|
2606
2932
|
processor: components["parameters"]["Processor"];
|
|
@@ -2625,10 +2951,21 @@ export interface operations {
|
|
|
2625
2951
|
query?: never;
|
|
2626
2952
|
header?: {
|
|
2627
2953
|
/**
|
|
2628
|
-
* @description
|
|
2629
|
-
*
|
|
2954
|
+
* @description The consumer's credential. A consumer created with one needs it, in
|
|
2955
|
+
* addition to any bearer token, on its lease, change, acknowledgement,
|
|
2956
|
+
* and stream requests, and gets 403 `forbidden` without it or with
|
|
2957
|
+
* another; the node compares it in constant time. Listing, inspecting,
|
|
2958
|
+
* and revoking consumers need only the bearer token. A consumer without
|
|
2959
|
+
* one, such as a configured consumer, takes none. Credentials created
|
|
2960
|
+
* before 32 characters were required keep working.
|
|
2630
2961
|
*/
|
|
2631
2962
|
"x-leani-consumer-credential"?: components["parameters"]["ConsumerCredential"];
|
|
2963
|
+
/**
|
|
2964
|
+
* @description Marks a mutating request without a JSON body as sent by a Leani
|
|
2965
|
+
* client. A POST or DELETE needs `content-type: application/json` or
|
|
2966
|
+
* this header, and gets HTTP 415 otherwise.
|
|
2967
|
+
*/
|
|
2968
|
+
"x-leani-request"?: components["parameters"]["LeaniRequest"];
|
|
2632
2969
|
};
|
|
2633
2970
|
path: {
|
|
2634
2971
|
processor: components["parameters"]["Processor"];
|
|
@@ -2653,8 +2990,13 @@ export interface operations {
|
|
|
2653
2990
|
query?: never;
|
|
2654
2991
|
header?: {
|
|
2655
2992
|
/**
|
|
2656
|
-
* @description
|
|
2657
|
-
*
|
|
2993
|
+
* @description The consumer's credential. A consumer created with one needs it, in
|
|
2994
|
+
* addition to any bearer token, on its lease, change, acknowledgement,
|
|
2995
|
+
* and stream requests, and gets 403 `forbidden` without it or with
|
|
2996
|
+
* another; the node compares it in constant time. Listing, inspecting,
|
|
2997
|
+
* and revoking consumers need only the bearer token. A consumer without
|
|
2998
|
+
* one, such as a configured consumer, takes none. Credentials created
|
|
2999
|
+
* before 32 characters were required keep working.
|
|
2658
3000
|
*/
|
|
2659
3001
|
"x-leani-consumer-credential"?: components["parameters"]["ConsumerCredential"];
|
|
2660
3002
|
};
|
|
@@ -2681,8 +3023,13 @@ export interface operations {
|
|
|
2681
3023
|
query?: never;
|
|
2682
3024
|
header?: {
|
|
2683
3025
|
/**
|
|
2684
|
-
* @description
|
|
2685
|
-
*
|
|
3026
|
+
* @description The consumer's credential. A consumer created with one needs it, in
|
|
3027
|
+
* addition to any bearer token, on its lease, change, acknowledgement,
|
|
3028
|
+
* and stream requests, and gets 403 `forbidden` without it or with
|
|
3029
|
+
* another; the node compares it in constant time. Listing, inspecting,
|
|
3030
|
+
* and revoking consumers need only the bearer token. A consumer without
|
|
3031
|
+
* one, such as a configured consumer, takes none. Credentials created
|
|
3032
|
+
* before 32 characters were required keep working.
|
|
2686
3033
|
*/
|
|
2687
3034
|
"x-leani-consumer-credential"?: components["parameters"]["ConsumerCredential"];
|
|
2688
3035
|
};
|
|
@@ -2709,8 +3056,13 @@ export interface operations {
|
|
|
2709
3056
|
query?: never;
|
|
2710
3057
|
header?: {
|
|
2711
3058
|
/**
|
|
2712
|
-
* @description
|
|
2713
|
-
*
|
|
3059
|
+
* @description The consumer's credential. A consumer created with one needs it, in
|
|
3060
|
+
* addition to any bearer token, on its lease, change, acknowledgement,
|
|
3061
|
+
* and stream requests, and gets 403 `forbidden` without it or with
|
|
3062
|
+
* another; the node compares it in constant time. Listing, inspecting,
|
|
3063
|
+
* and revoking consumers need only the bearer token. A consumer without
|
|
3064
|
+
* one, such as a configured consumer, takes none. Credentials created
|
|
3065
|
+
* before 32 characters were required keep working.
|
|
2714
3066
|
*/
|
|
2715
3067
|
"x-leani-consumer-credential"?: components["parameters"]["ConsumerCredential"];
|
|
2716
3068
|
};
|
|
@@ -2737,10 +3089,21 @@ export interface operations {
|
|
|
2737
3089
|
query?: never;
|
|
2738
3090
|
header?: {
|
|
2739
3091
|
/**
|
|
2740
|
-
* @description
|
|
2741
|
-
*
|
|
3092
|
+
* @description The consumer's credential. A consumer created with one needs it, in
|
|
3093
|
+
* addition to any bearer token, on its lease, change, acknowledgement,
|
|
3094
|
+
* and stream requests, and gets 403 `forbidden` without it or with
|
|
3095
|
+
* another; the node compares it in constant time. Listing, inspecting,
|
|
3096
|
+
* and revoking consumers need only the bearer token. A consumer without
|
|
3097
|
+
* one, such as a configured consumer, takes none. Credentials created
|
|
3098
|
+
* before 32 characters were required keep working.
|
|
2742
3099
|
*/
|
|
2743
3100
|
"x-leani-consumer-credential"?: components["parameters"]["ConsumerCredential"];
|
|
3101
|
+
/**
|
|
3102
|
+
* @description Marks a mutating request without a JSON body as sent by a Leani
|
|
3103
|
+
* client. A POST or DELETE needs `content-type: application/json` or
|
|
3104
|
+
* this header, and gets HTTP 415 otherwise.
|
|
3105
|
+
*/
|
|
3106
|
+
"x-leani-request"?: components["parameters"]["LeaniRequest"];
|
|
2744
3107
|
};
|
|
2745
3108
|
path: {
|
|
2746
3109
|
subscription: components["parameters"]["Subscription"];
|
|
@@ -2765,10 +3128,21 @@ export interface operations {
|
|
|
2765
3128
|
query?: never;
|
|
2766
3129
|
header?: {
|
|
2767
3130
|
/**
|
|
2768
|
-
* @description
|
|
2769
|
-
*
|
|
3131
|
+
* @description The consumer's credential. A consumer created with one needs it, in
|
|
3132
|
+
* addition to any bearer token, on its lease, change, acknowledgement,
|
|
3133
|
+
* and stream requests, and gets 403 `forbidden` without it or with
|
|
3134
|
+
* another; the node compares it in constant time. Listing, inspecting,
|
|
3135
|
+
* and revoking consumers need only the bearer token. A consumer without
|
|
3136
|
+
* one, such as a configured consumer, takes none. Credentials created
|
|
3137
|
+
* before 32 characters were required keep working.
|
|
2770
3138
|
*/
|
|
2771
3139
|
"x-leani-consumer-credential"?: components["parameters"]["ConsumerCredential"];
|
|
3140
|
+
/**
|
|
3141
|
+
* @description Marks a mutating request without a JSON body as sent by a Leani
|
|
3142
|
+
* client. A POST or DELETE needs `content-type: application/json` or
|
|
3143
|
+
* this header, and gets HTTP 415 otherwise.
|
|
3144
|
+
*/
|
|
3145
|
+
"x-leani-request"?: components["parameters"]["LeaniRequest"];
|
|
2772
3146
|
};
|
|
2773
3147
|
path: {
|
|
2774
3148
|
subscription: components["parameters"]["Subscription"];
|
|
@@ -2791,7 +3165,14 @@ export interface operations {
|
|
|
2791
3165
|
resetProcessorLiveLane: {
|
|
2792
3166
|
parameters: {
|
|
2793
3167
|
query?: never;
|
|
2794
|
-
header?:
|
|
3168
|
+
header?: {
|
|
3169
|
+
/**
|
|
3170
|
+
* @description Marks a mutating request without a JSON body as sent by a Leani
|
|
3171
|
+
* client. A POST or DELETE needs `content-type: application/json` or
|
|
3172
|
+
* this header, and gets HTTP 415 otherwise.
|
|
3173
|
+
*/
|
|
3174
|
+
"x-leani-request"?: components["parameters"]["LeaniRequest"];
|
|
3175
|
+
};
|
|
2795
3176
|
path: {
|
|
2796
3177
|
processor: components["parameters"]["Processor"];
|
|
2797
3178
|
};
|
|
@@ -2806,13 +3187,35 @@ export interface operations {
|
|
|
2806
3187
|
};
|
|
2807
3188
|
content?: never;
|
|
2808
3189
|
};
|
|
3190
|
+
/**
|
|
3191
|
+
* @description The lane cannot be reset. `single_block_exceeds_delivery_limit`:
|
|
3192
|
+
* its first unapplied block still exceeds the delivery limit; raise
|
|
3193
|
+
* the limit first. `live_lane_requires_rebuild`: the lane failed with
|
|
3194
|
+
* `processor_finality_conflict`, so its coverage contradicts the
|
|
3195
|
+
* canonical chain; rebuild the processor as a replacement instance.
|
|
3196
|
+
*/
|
|
3197
|
+
409: {
|
|
3198
|
+
headers: {
|
|
3199
|
+
[name: string]: unknown;
|
|
3200
|
+
};
|
|
3201
|
+
content: {
|
|
3202
|
+
"application/json": components["schemas"]["ErrorBody"];
|
|
3203
|
+
};
|
|
3204
|
+
};
|
|
2809
3205
|
default: components["responses"]["Error"];
|
|
2810
3206
|
};
|
|
2811
3207
|
};
|
|
2812
3208
|
deleteProcessorArtifacts: {
|
|
2813
3209
|
parameters: {
|
|
2814
3210
|
query?: never;
|
|
2815
|
-
header?:
|
|
3211
|
+
header?: {
|
|
3212
|
+
/**
|
|
3213
|
+
* @description Marks a mutating request without a JSON body as sent by a Leani
|
|
3214
|
+
* client. A POST or DELETE needs `content-type: application/json` or
|
|
3215
|
+
* this header, and gets HTTP 415 otherwise.
|
|
3216
|
+
*/
|
|
3217
|
+
"x-leani-request"?: components["parameters"]["LeaniRequest"];
|
|
3218
|
+
};
|
|
2816
3219
|
path: {
|
|
2817
3220
|
processor: components["parameters"]["Processor"];
|
|
2818
3221
|
};
|
|
@@ -2879,8 +3282,8 @@ export interface operations {
|
|
|
2879
3282
|
};
|
|
2880
3283
|
requestBody?: never;
|
|
2881
3284
|
responses: {
|
|
2882
|
-
/** @description
|
|
2883
|
-
|
|
3285
|
+
/** @description Backfill subscription accepted; its current status. */
|
|
3286
|
+
202: {
|
|
2884
3287
|
headers: {
|
|
2885
3288
|
[name: string]: unknown;
|
|
2886
3289
|
};
|
|
@@ -2913,7 +3316,14 @@ export interface operations {
|
|
|
2913
3316
|
deleteBackfillSubscription: {
|
|
2914
3317
|
parameters: {
|
|
2915
3318
|
query?: never;
|
|
2916
|
-
header?:
|
|
3319
|
+
header?: {
|
|
3320
|
+
/**
|
|
3321
|
+
* @description Marks a mutating request without a JSON body as sent by a Leani
|
|
3322
|
+
* client. A POST or DELETE needs `content-type: application/json` or
|
|
3323
|
+
* this header, and gets HTTP 415 otherwise.
|
|
3324
|
+
*/
|
|
3325
|
+
"x-leani-request"?: components["parameters"]["LeaniRequest"];
|
|
3326
|
+
};
|
|
2917
3327
|
path: {
|
|
2918
3328
|
id: components["parameters"]["Identifier"];
|
|
2919
3329
|
};
|
|
@@ -2934,7 +3344,14 @@ export interface operations {
|
|
|
2934
3344
|
cancelBackfillSubscription: {
|
|
2935
3345
|
parameters: {
|
|
2936
3346
|
query?: never;
|
|
2937
|
-
header?:
|
|
3347
|
+
header?: {
|
|
3348
|
+
/**
|
|
3349
|
+
* @description Marks a mutating request without a JSON body as sent by a Leani
|
|
3350
|
+
* client. A POST or DELETE needs `content-type: application/json` or
|
|
3351
|
+
* this header, and gets HTTP 415 otherwise.
|
|
3352
|
+
*/
|
|
3353
|
+
"x-leani-request"?: components["parameters"]["LeaniRequest"];
|
|
3354
|
+
};
|
|
2938
3355
|
path: {
|
|
2939
3356
|
id: components["parameters"]["Identifier"];
|
|
2940
3357
|
};
|
|
@@ -2980,8 +3397,8 @@ export interface operations {
|
|
|
2980
3397
|
};
|
|
2981
3398
|
requestBody?: never;
|
|
2982
3399
|
responses: {
|
|
2983
|
-
/** @description
|
|
2984
|
-
|
|
3400
|
+
/** @description Materialization job accepted; its current status. */
|
|
3401
|
+
202: {
|
|
2985
3402
|
headers: {
|
|
2986
3403
|
[name: string]: unknown;
|
|
2987
3404
|
};
|
|
@@ -3014,7 +3431,14 @@ export interface operations {
|
|
|
3014
3431
|
deleteMaterializationJob: {
|
|
3015
3432
|
parameters: {
|
|
3016
3433
|
query?: never;
|
|
3017
|
-
header?:
|
|
3434
|
+
header?: {
|
|
3435
|
+
/**
|
|
3436
|
+
* @description Marks a mutating request without a JSON body as sent by a Leani
|
|
3437
|
+
* client. A POST or DELETE needs `content-type: application/json` or
|
|
3438
|
+
* this header, and gets HTTP 415 otherwise.
|
|
3439
|
+
*/
|
|
3440
|
+
"x-leani-request"?: components["parameters"]["LeaniRequest"];
|
|
3441
|
+
};
|
|
3018
3442
|
path: {
|
|
3019
3443
|
id: components["parameters"]["Identifier"];
|
|
3020
3444
|
};
|
|
@@ -3035,7 +3459,14 @@ export interface operations {
|
|
|
3035
3459
|
cancelMaterializationJob: {
|
|
3036
3460
|
parameters: {
|
|
3037
3461
|
query?: never;
|
|
3038
|
-
header?:
|
|
3462
|
+
header?: {
|
|
3463
|
+
/**
|
|
3464
|
+
* @description Marks a mutating request without a JSON body as sent by a Leani
|
|
3465
|
+
* client. A POST or DELETE needs `content-type: application/json` or
|
|
3466
|
+
* this header, and gets HTTP 415 otherwise.
|
|
3467
|
+
*/
|
|
3468
|
+
"x-leani-request"?: components["parameters"]["LeaniRequest"];
|
|
3469
|
+
};
|
|
3039
3470
|
path: {
|
|
3040
3471
|
id: components["parameters"]["Identifier"];
|
|
3041
3472
|
};
|
|
@@ -3081,8 +3512,8 @@ export interface operations {
|
|
|
3081
3512
|
};
|
|
3082
3513
|
requestBody?: never;
|
|
3083
3514
|
responses: {
|
|
3084
|
-
/** @description
|
|
3085
|
-
|
|
3515
|
+
/** @description Raw-history job accepted; its current state. */
|
|
3516
|
+
202: {
|
|
3086
3517
|
headers: {
|
|
3087
3518
|
[name: string]: unknown;
|
|
3088
3519
|
};
|
|
@@ -3115,7 +3546,14 @@ export interface operations {
|
|
|
3115
3546
|
deleteRawHistoryJob: {
|
|
3116
3547
|
parameters: {
|
|
3117
3548
|
query?: never;
|
|
3118
|
-
header?:
|
|
3549
|
+
header?: {
|
|
3550
|
+
/**
|
|
3551
|
+
* @description Marks a mutating request without a JSON body as sent by a Leani
|
|
3552
|
+
* client. A POST or DELETE needs `content-type: application/json` or
|
|
3553
|
+
* this header, and gets HTTP 415 otherwise.
|
|
3554
|
+
*/
|
|
3555
|
+
"x-leani-request"?: components["parameters"]["LeaniRequest"];
|
|
3556
|
+
};
|
|
3119
3557
|
path: {
|
|
3120
3558
|
id: components["parameters"]["Identifier"];
|
|
3121
3559
|
};
|
|
@@ -3136,7 +3574,14 @@ export interface operations {
|
|
|
3136
3574
|
cancelRawHistoryJob: {
|
|
3137
3575
|
parameters: {
|
|
3138
3576
|
query?: never;
|
|
3139
|
-
header?:
|
|
3577
|
+
header?: {
|
|
3578
|
+
/**
|
|
3579
|
+
* @description Marks a mutating request without a JSON body as sent by a Leani
|
|
3580
|
+
* client. A POST or DELETE needs `content-type: application/json` or
|
|
3581
|
+
* this header, and gets HTTP 415 otherwise.
|
|
3582
|
+
*/
|
|
3583
|
+
"x-leani-request"?: components["parameters"]["LeaniRequest"];
|
|
3584
|
+
};
|
|
3140
3585
|
path: {
|
|
3141
3586
|
id: components["parameters"]["Identifier"];
|
|
3142
3587
|
};
|
|
@@ -3503,4 +3948,3 @@ export interface operations {
|
|
|
3503
3948
|
};
|
|
3504
3949
|
};
|
|
3505
3950
|
}
|
|
3506
|
-
//# sourceMappingURL=openapi.generated.d.ts.map
|