@totalis/hip4-client 0.98.0 → 0.100.0

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.
@@ -580,6 +580,300 @@ export type components = {
580
580
  readonly scoreboards?: boolean;
581
581
  /** @description Opt in to network frames: the HyperEVM gas price against the level Totalis accepts quotes at, after each snapshot, then on every change the app acts on. Without it the socket gets no network frame. */
582
582
  readonly network?: boolean;
583
+ /** @description Opt in to the live lane: up to 8 outcome IDs whose order book the socket follows from the start, independent of outcome_ids. This is interest revision 0. With books, marks or mark_ticks present, even empty, the subscriptionResponse carries live and the socket accepts setInterest and resnapshot frames; without all three it gets no live-lane frame and accepts no frame after its subscribe. */
584
+ readonly books?: readonly components["schemas"]["UInt32String"][];
585
+ /** @description Opt in to the live lane: up to 8 perps whose mark the socket follows for a chart from the start (markSnapshot with recent recorded runs, mark per node read, markSealed). Part of interest revision 0. */
586
+ readonly marks?: readonly components["schemas"]["MarketPerpCoin"][];
587
+ /** @description Opt in to the live lane: up to 64 perps whose live mark the socket follows for cards and rows, as markTicks frames only, without recorded history. Part of interest revision 0. */
588
+ readonly mark_ticks?: readonly components["schemas"]["MarketPerpCoin"][];
589
+ /** @description bookProgress cadence for revision 0; 1000 when absent. */
590
+ readonly progress_interval_ms?: components["schemas"]["MarketProgressInterval"];
591
+ };
592
+ /**
593
+ * @description Wall-clock interval of bookProgress frames in milliseconds. 250 while the client may trade on a followed book: only then does a quiet book stay inside max_proof_age_ms between proofs. 1000 for a book only on display.
594
+ * @enum {integer}
595
+ */
596
+ readonly MarketProgressInterval: 250 | 1000;
597
+ /** @description Unix time in milliseconds. */
598
+ readonly MarketUnixMs: number;
599
+ /** @description HyperCore block height. */
600
+ readonly MarketHeight: number;
601
+ /** @description Live-lane limits and liveness thresholds; they differ by network, so read them here rather than hard-coding them. */
602
+ readonly MarketLiveSettings: {
603
+ /** @description The bookProgress intervals a client may ask for. */
604
+ readonly progress_intervals_ms: readonly components["schemas"]["MarketProgressInterval"][];
605
+ /** @description Source check, on server clocks only: a proof (a bookSnapshot, bookDelta or bookProgress that proves the book at its seq) passes when sent_ms minus block_ms is at most this. Currently 1500. */
606
+ readonly max_source_age_ms: number;
607
+ /** @description Transport check, on one monotonic client clock (performance.now() anchored once): baseline is the smallest receive time minus sent_ms over proofs that passed the source check; a proof passes when its receive time minus sent_ms minus baseline is at most this. The baseline starts unset and resets to unset, failing closed, on a new socket, a new producer and any client clock discontinuity (a jump of the anchored clock against the monotonic one, a resume from sleep); the next proof that passes the source check sets it. Currently 1000. */
608
+ readonly max_transport_lag_ms: number;
609
+ /** @description A book is tradeable only while its latest proof passed both checks, its seq matches local state, and that proof was received at most this long ago on the monotonic client clock. Meant for progress_interval_ms 250; a book at 1000 is for display. Currently 750. */
610
+ readonly max_proof_age_ms: number;
611
+ /** @description When the server's coverage is older than this on its own clock (now minus block_ms), because the source stalled or the stream server lost it, every followed AVAILABLE book becomes UNAVAILABLE with SOURCE_UNAVAILABLE. Until then bookProgress keeps coming with the last height, so a stall fails the source check, never shows as silence. Currently 3000. */
612
+ readonly unavailable_after_ms: number;
613
+ /** @description While the socket follows any book, a frame of some kind arrives at least every progress interval; with no frame for this long the socket is dead: reconnect. Currently 5000. */
614
+ readonly reconnect_after_ms: number;
615
+ /** @description Most books one interest revision may follow. Currently 8. */
616
+ readonly max_books: number;
617
+ /** @description Most chart perps one interest revision may follow. Currently 8. */
618
+ readonly max_marks: number;
619
+ /** @description Most ticked perps one interest revision may follow. Currently 64, every perp Totalis can track. */
620
+ readonly max_mark_ticks: number;
621
+ };
622
+ /** @description A perp as Hyperliquid names it: BTC, or a builder-deployed perp with its dex, xyz:SP500. */
623
+ readonly MarketPerpCoin: string;
624
+ /** @description Client to server, any number of times after the subscribe frame on a live-lane socket: the complete interest from this revision on. It never changes outcome_ids. Keep the state of every book and perp of your last acknowledged revision until the next interest frame; that frame is the barrier between revisions. */
625
+ readonly MarketSetInterest: {
626
+ /**
627
+ * @description Always setInterest. Accepted only on a socket whose subscribe frame opted in to the live lane; any other socket closes with INVALID_SUBSCRIPTION. At most 8192 bytes.
628
+ * @constant
629
+ */
630
+ readonly method: "setInterest";
631
+ /** @description Client revision of this interest, greater than every earlier one on the socket (the subscription is revision 0); otherwise the socket closes with INVALID_SUBSCRIPTION. The server may skip a revision a later one overtook before it applied it, and acknowledges only the revisions it applies, each with an interest frame. */
632
+ readonly rev: number;
633
+ /** @description Every outcome whose book the socket follows from this revision on, replacing the previous set. More than max_books closes the socket with SUBSCRIPTION_DENIED. */
634
+ readonly books: readonly components["schemas"]["UInt32String"][];
635
+ /** @description Every perp the socket follows for a chart from this revision on. More than max_marks closes the socket with SUBSCRIPTION_DENIED. */
636
+ readonly marks: readonly components["schemas"]["MarketPerpCoin"][];
637
+ /** @description Every perp the socket follows as markTicks from this revision on. More than max_mark_ticks closes the socket with SUBSCRIPTION_DENIED. */
638
+ readonly mark_ticks: readonly components["schemas"]["MarketPerpCoin"][];
639
+ /** @description bookProgress cadence from this revision on. */
640
+ readonly progress_interval_ms: components["schemas"]["MarketProgressInterval"];
641
+ };
642
+ /** @description Client to server: ask again for the complete state of followed books. Until each bookSnapshot arrives, treat the book as stale. */
643
+ readonly MarketResnapshot: {
644
+ /**
645
+ * @description Always resnapshot. Accepted only on a live-lane socket; otherwise INVALID_SUBSCRIPTION. At most 8192 bytes.
646
+ * @constant
647
+ */
648
+ readonly method: "resnapshot";
649
+ /** @description Followed books whose local state failed a check (a bookDelta seq that is not the previous plus one, a bookProgress seq that differs from yours). Each gets a fresh bookSnapshot; an outcome the socket does not follow is ignored. */
650
+ readonly books: readonly components["schemas"]["UInt32String"][];
651
+ };
652
+ readonly MarketInterestFrame: {
653
+ /**
654
+ * @description Frame discriminator, always interest.
655
+ * @constant
656
+ */
657
+ readonly channel: "interest";
658
+ /** @description Every live-lane frame after this one belongs to revision rev. A book or perp of rev that was not in the previously acknowledged revision gets its bookSnapshot or markSnapshot next (ticked perps their first markTicks); one in both keeps its chain. Drop frames for anything rev does not follow. */
659
+ readonly data: {
660
+ /** @description The revision applied from this frame on. */
661
+ readonly rev: number;
662
+ /** @description Books of the revision this network address may not follow now: it already follows as many as one address may on this server. They get no frames; set a later revision to try again. */
663
+ readonly refused_books: readonly components["schemas"]["UInt32String"][];
664
+ /** @description Chart perps refused for the same reason. */
665
+ readonly refused_marks: readonly components["schemas"]["MarketPerpCoin"][];
666
+ /** @description Ticked perps refused for the same reason. */
667
+ readonly refused_mark_ticks: readonly components["schemas"]["MarketPerpCoin"][];
668
+ };
669
+ };
670
+ /** @description [px, sz, n]: one price level of an outcome's YES book. */
671
+ readonly MarketBookLevel: readonly [
672
+ string,
673
+ string,
674
+ number
675
+ ];
676
+ /**
677
+ * @description Why a book is unavailable. NOT_LISTED: our node's catalog does not list the outcome (not yet, or no longer); the book arrives if it is listed while followed. WITHDRAWN: our node withdrew the book (a gap in its source, a failed check, a catalog change, source text the merge cannot read) until it rebuilds it. SOURCE_UNAVAILABLE: Totalis lost its book source, or its coverage stalled for stall_ms; it comes back by itself.
678
+ * @enum {string}
679
+ */
680
+ readonly MarketBookUnavailableReason: "NOT_LISTED" | "WITHDRAWN" | "SOURCE_UNAVAILABLE";
681
+ /** @description This socket's frame counter for one book: every bookSnapshot and bookDelta of the book carries the previous one's seq plus one, and the first one after the book is followed carries a seq above every earlier seq of the book on the socket. It never repeats or goes back on the socket, across snapshots, resnapshots, status and producer changes, and unfollowing and following again; a reconnect starts over. A bookDelta applies to the state of the frame before it. */
682
+ readonly MarketBookSeq: number;
683
+ /** @description The book source the state came from. It changes when Totalis moves the socket's books to another source instance; every followed book then gets a bookSnapshot with the new producer, and only there may height go back. */
684
+ readonly MarketBookProducer: components["schemas"]["Uuid"];
685
+ /** @description A known book. */
686
+ readonly MarketBookAvailable: {
687
+ /** @description The outcome whose book this is. */
688
+ readonly outcome_id: components["schemas"]["UInt32String"];
689
+ /** @description Above every earlier seq of the book on this socket (one more than the previous frame's); the book's next frame carries seq + 1. */
690
+ readonly seq: components["schemas"]["MarketBookSeq"];
691
+ /** @description Where this state came from. */
692
+ readonly producer: components["schemas"]["Uuid"];
693
+ /**
694
+ * @description The book is known; an empty side is an observed empty side.
695
+ * @constant
696
+ */
697
+ readonly status: "AVAILABLE";
698
+ /** @description Block height of the source state; never lower than the book's previous frame from the same producer. */
699
+ readonly height: components["schemas"]["MarketHeight"];
700
+ /** @description Block time at height. */
701
+ readonly block_ms: components["schemas"]["MarketUnixMs"];
702
+ /** @description When Totalis received that block from its node, on its clock. */
703
+ readonly recv_ms: components["schemas"]["MarketUnixMs"];
704
+ /** @description When the stream server wrote this frame to the socket, on its clock. */
705
+ readonly sent_ms: components["schemas"]["MarketUnixMs"];
706
+ /** @description YES bids, highest price first, up to 100 levels. */
707
+ readonly bids: readonly components["schemas"]["MarketBookLevel"][];
708
+ /** @description YES asks, lowest price first, up to 100 levels. */
709
+ readonly asks: readonly components["schemas"]["MarketBookLevel"][];
710
+ };
711
+ /** @description An unknown book. */
712
+ readonly MarketBookUnavailable: {
713
+ /** @description The outcome whose book this is. */
714
+ readonly outcome_id: components["schemas"]["UInt32String"];
715
+ /** @description Above every earlier seq of the book on this socket. No bookDelta follows an unavailable book; its next state is a bookSnapshot. */
716
+ readonly seq: components["schemas"]["MarketBookSeq"];
717
+ /** @description The source that withdrew the book; null when Totalis has no book source. */
718
+ readonly producer: components["schemas"]["Uuid"] | null;
719
+ /**
720
+ * @description The book is unknown: it has no levels, which is not an empty book. Never trade on a book in this state.
721
+ * @constant
722
+ */
723
+ readonly status: "UNAVAILABLE";
724
+ /** @description Why the book is unavailable. */
725
+ readonly reason: components["schemas"]["MarketBookUnavailableReason"];
726
+ /** @description Block height at which the source withdrew the book; null when no height applies. */
727
+ readonly height: components["schemas"]["MarketHeight"] | null;
728
+ /** @description Block time at height; null with height. */
729
+ readonly block_ms: components["schemas"]["MarketUnixMs"] | null;
730
+ };
731
+ readonly MarketBookSnapshotFrame: {
732
+ /**
733
+ * @description Frame discriminator, always bookSnapshot.
734
+ * @constant
735
+ */
736
+ readonly channel: "bookSnapshot";
737
+ /** @description The complete state of one followed book. Replace the local book with it. */
738
+ readonly data: components["schemas"]["MarketBookAvailable"] | components["schemas"]["MarketBookUnavailable"];
739
+ };
740
+ readonly MarketBookDeltaFrame: {
741
+ /**
742
+ * @description Frame discriminator, always bookDelta.
743
+ * @constant
744
+ */
745
+ readonly channel: "bookDelta";
746
+ /** @description Price-level changes to one AVAILABLE book between two states Totalis observed; our node publishes about every 50 ms, so intermediate states can be skipped. A book's status or producer changes only by a bookSnapshot. */
747
+ readonly data: {
748
+ /** @description The outcome whose book changed. */
749
+ readonly outcome_id: components["schemas"]["UInt32String"];
750
+ /** @description Exactly one more than the seq of the book's last bookSnapshot or bookDelta on this socket. Any other value means local state is wrong: send resnapshot for the book and treat it as stale, never patch it. The resnapshot's bookSnapshot comes before any later bookDelta or bookProgress of the book. */
751
+ readonly seq: components["schemas"]["MarketBookSeq"];
752
+ /** @description Block height of the source state after this change; higher than the book's previous frame. Heights between frames may be skipped. */
753
+ readonly height: components["schemas"]["MarketHeight"];
754
+ /** @description Block time at height. This frame also proves the book current at height. */
755
+ readonly block_ms: components["schemas"]["MarketUnixMs"];
756
+ /** @description When Totalis received that block from its node, on its clock. */
757
+ readonly recv_ms: components["schemas"]["MarketUnixMs"];
758
+ /** @description When the stream server wrote this frame to the socket, on its clock. */
759
+ readonly sent_ms: components["schemas"]["MarketUnixMs"];
760
+ /** @description Changed YES bid levels, in no particular order: replace the level at each price, or remove it where sz is "0". A level that left the top 100 is removed here. */
761
+ readonly bids: readonly components["schemas"]["MarketBookLevel"][];
762
+ /** @description Changed YES ask levels, as bids. */
763
+ readonly asks: readonly components["schemas"]["MarketBookLevel"][];
764
+ };
765
+ };
766
+ readonly MarketBookProgressFrame: {
767
+ /**
768
+ * @description Frame discriminator, always bookProgress.
769
+ * @constant
770
+ */
771
+ readonly channel: "bookProgress";
772
+ /** @description Every followed book whose seq here equals your local seq is proven in its state at height: an AVAILABLE book had no change since that frame, an UNAVAILABLE one still is. A book whose seq differs is stale: send resnapshot for it. Sent every progress_interval_ms of wall clock while the socket follows any book, also while the source stalls (with the last height and block_ms, so it fails the source check). A delayed or repeated frame fails the transport or the source check and never makes a book tradeable. */
773
+ readonly data: {
774
+ /** @description Block height the followed books are proven at. It repeats while the source stalls. */
775
+ readonly height: components["schemas"]["MarketHeight"];
776
+ /** @description Block time at height. */
777
+ readonly block_ms: components["schemas"]["MarketUnixMs"];
778
+ /** @description When the stream server wrote this frame to the socket, on its clock: the source check compares it with block_ms, the transport check with the receive time. */
779
+ readonly sent_ms: components["schemas"]["MarketUnixMs"];
780
+ /** @description The seq this socket last sent for each followed book, in the order of the acknowledged revision's books without the refused ones. */
781
+ readonly seqs: readonly components["schemas"]["MarketBookSeq"][];
782
+ };
783
+ };
784
+ /**
785
+ * @description AVAILABLE: Totalis reads the perp's mark from its node. NOT_TRACKED: no listed price market charts the perp, so Totalis does not read it, and following it never makes Totalis read it; it becomes AVAILABLE if a listed market starts to chart it while followed. SOURCE_UNAVAILABLE: Totalis lost its mark source; it comes back by itself.
786
+ * @enum {string}
787
+ */
788
+ readonly MarketMarkStatus: "AVAILABLE" | "NOT_TRACKED" | "SOURCE_UNAVAILABLE";
789
+ readonly MarketMarkSnapshotFrame: {
790
+ /**
791
+ * @description Frame discriminator, always markSnapshot.
792
+ * @constant
793
+ */
794
+ readonly channel: "markSnapshot";
795
+ /** @description The complete state of one followed chart perp. Replace the local one with it, then apply mark and markSealed frames. mark windows never go back on a socket, also across a source change. */
796
+ readonly data: {
797
+ /** @description The perp. */
798
+ readonly coin: components["schemas"]["MarketPerpCoin"];
799
+ /** @description Whether its mark is live. */
800
+ readonly status: components["schemas"]["MarketMarkStatus"];
801
+ /** @description The mark at the latest read of our node, as the node gave it; null when that read did not answer the perp, before the first read, or when not AVAILABLE. */
802
+ readonly px: string | null;
803
+ /** @description Start of the latest read's node-time window; px held at some instant in [from, to]. Null before the first read or when not AVAILABLE. */
804
+ readonly from: components["schemas"]["Timestamp"] | null;
805
+ /** @description End of the latest read's node-time window. Null with from. */
806
+ readonly to: components["schemas"]["Timestamp"] | null;
807
+ /** @description How far the perp's recorded history reaches: its marks up to here are final. Null when nothing is recorded. */
808
+ readonly sealed_through: components["schemas"]["Timestamp"] | null;
809
+ /** @description Start of the recorded history this frame carries: 300 seconds before sealed_through. Null with sealed_through. */
810
+ readonly runs_from: components["schemas"]["Timestamp"] | null;
811
+ /** @description Every recorded run that covers an instant in (runs_from, sealed_through], by start, with the same rule as markSealed. Read the perp marks history only for steps up to runs_from; any read that reaches runs_from joins without a gap, including one served from a cache up to two minutes old. If a read ends before runs_from, the steps between are missing on the chart; never read again in a loop. */
812
+ readonly runs: readonly components["schemas"]["MarketMarkRun"][];
813
+ };
814
+ };
815
+ readonly MarketMarkFrame: {
816
+ /**
817
+ * @description Frame discriminator, always mark.
818
+ * @constant
819
+ */
820
+ readonly channel: "mark";
821
+ /** @description One read of our node, about once a second, sent for every read even when the mark did not change. Windows only move forward on a socket, also when Totalis switches its mark source. With none for a few seconds, the live mark is stale. */
822
+ readonly data: {
823
+ /** @description The perp. */
824
+ readonly coin: components["schemas"]["MarketPerpCoin"];
825
+ /** @description The perp's mark at this read, as our node gave it; null when the read did not answer it, which makes it unknown, not unchanged. */
826
+ readonly px: string | null;
827
+ /** @description Start of the read's node-time window; px held at some instant in [from, to]. */
828
+ readonly from: components["schemas"]["Timestamp"];
829
+ /** @description End of the read's node-time window: the clock recorded history is dated by. */
830
+ readonly to: components["schemas"]["Timestamp"];
831
+ };
832
+ };
833
+ readonly MarketMarkSealedFrame: {
834
+ /**
835
+ * @description Frame discriminator, always markSealed.
836
+ * @constant
837
+ */
838
+ readonly channel: "markSealed";
839
+ /** @description Marks just recorded for good, the same records the perp marks read serves, so a chart extends its history without reading it again. */
840
+ readonly data: {
841
+ /** @description The perp. */
842
+ readonly coin: components["schemas"]["MarketPerpCoin"];
843
+ /** @description How far the recorded history reached before these runs: always the previous markSealed through or the markSnapshot sealed_through on this socket (a socket that falls behind gets a markSnapshot instead); null when nothing was recorded. */
844
+ readonly from: components["schemas"]["Timestamp"] | null;
845
+ /** @description How far the recorded history now reaches; marks up to here are final. */
846
+ readonly through: components["schemas"]["Timestamp"];
847
+ /** @description Every recorded run that covers an instant in (from, through], by start. The mark at an instant in that span is the px of the run with the latest start at or before it, if that run ends at or after it; otherwise it is unknown for good. A long backlog arrives as several frames that chain by from and through. */
848
+ readonly runs: readonly components["schemas"]["MarketMarkRun"][];
849
+ };
850
+ };
851
+ /** @description [start, end, px]: the mark held from start to end, both included. The perp marks read closes step boundary b at the px of the run with the latest start at or before b, when that run ends at or after b; this is the same record. */
852
+ readonly MarketMarkRun: readonly [
853
+ components["schemas"]["Timestamp"],
854
+ components["schemas"]["Timestamp"],
855
+ string
856
+ ];
857
+ readonly MarketMarkTicksFrame: {
858
+ /**
859
+ * @description Frame discriminator, always markTicks.
860
+ * @constant
861
+ */
862
+ readonly channel: "markTicks";
863
+ /** @description Every ticked perp not in missing had its last sent mark at some node time in [from_ms, to_ms]. */
864
+ readonly data: {
865
+ /** @description Start of the read's node-time window, rounded down. */
866
+ readonly from_ms: components["schemas"]["MarketUnixMs"];
867
+ /** @description End of the read's node-time window, rounded up; never earlier than the previous frame's on this socket. */
868
+ readonly to_ms: components["schemas"]["MarketUnixMs"];
869
+ /** @description Ticked perps whose mark differs from the last one this socket was sent, every ticked perp in the first frame after the interest frame that added it, and every perp back from missing, with its mark even when unchanged. */
870
+ readonly marks: readonly (readonly [
871
+ components["schemas"]["MarketPerpCoin"],
872
+ string
873
+ ])[];
874
+ /** @description Ticked perps without a mark in this window: the read did not answer them, or Totalis does not track them. Their mark is unknown until listed in marks again; missing clears the last sent mark, so a recovered perp is always listed. */
875
+ readonly missing: readonly components["schemas"]["MarketPerpCoin"][];
876
+ };
583
877
  };
584
878
  readonly MarketNetworkFrame: {
585
879
  /**
@@ -672,6 +966,8 @@ export type components = {
672
966
  * @constant
673
967
  */
674
968
  readonly max_frame_bytes: 1048576;
969
+ /** @description Only when the subscription opted in to the live lane: its limits and liveness thresholds. The interest frame for revision 0 follows the market snapshot. */
970
+ readonly live?: components["schemas"]["MarketLiveSettings"];
675
971
  };
676
972
  };
677
973
  readonly MarketSnapshotFrame: {
@@ -1,24 +1,24 @@
1
- export declare const sdkVersion = "231.0.0-partner-webhook-events";
2
- export declare const openapiSha256 = "153af0c29c1c8e4c69d5223c04b30f32186065262348f4c4713a5b6ea53d851d";
3
- export declare const realtimeSha256 = "32e56c8bb642401f5b03e9c38274087c09bebb73ffe60c0d34432c2e78ce1e15";
1
+ export declare const sdkVersion = "236.0.0-market-display";
2
+ export declare const openapiSha256 = "2d3a543422dd85f568f7760641e39f7688c7581ceb4cd8216c61507726ad5697";
3
+ export declare const realtimeSha256 = "bfea15f8334b302a98e58ca5a71f1c9b259e15b5f2c9239620f127270e5b4c7f";
4
4
  export declare const jsonSchemaSha256: {
5
5
  readonly "account.schema.json": "e6cd5a75429d074f23bd7f6ffd370fa59d0e3f7dbd6aef6433e5ba0d21b5baeb";
6
6
  readonly "comments.schema.json": "b3e35b9b1bd90b763658fcd25910ec123d44713cdf608b4e52667c91b78f0aa5";
7
7
  readonly "common.schema.json": "04f51deb3cbea448e59195e26ede3212598d58a7940fe67eb2123fd9161c5edb";
8
8
  readonly "core-exit.schema.json": "c7f617e815225cdcac95c236f8b73fbe288ee5713ff444c3be90eb915fc3a401";
9
- readonly "error.schema.json": "f98be7f7a0fa7d46479743fb040684627658abc3a04b0dccdf3f089a22454715";
9
+ readonly "error.schema.json": "0e362e916f59125775cf3201681827d394b53a004a53e21fb84746e794982c7f";
10
10
  readonly "hypercore.schema.json": "5b89b2bbff7ec8cc1b8717375d12ce9cd5ab6aa5af03c4fdc6cc753ef9583a2c";
11
11
  readonly "identity.schema.json": "a97ec2f4319a16619d3a3ab613989fb1dba8107713e0fb8f1f9ad5aea25a67e3";
12
12
  readonly "maker-access.schema.json": "49698ee0235e42064aae0397db1e0f646bdc10d9dfa10121714ba06dd69fee3b";
13
13
  readonly "maker-action.schema.json": "dc41e52c868848e85cdeb918992cb710d34616d2803a63f6d9a658e016744a50";
14
14
  readonly "maker-telemetry.schema.json": "85b111ce0f4935299d1116071b43de12e775bef4e0c283c12f19046d34374a9c";
15
- readonly "market-data.schema.json": "d9b277cdd7094a3c32a0c0957ad1de94458b0ea36b9a9fdf6f1f6211bd3c5e61";
15
+ readonly "market-data.schema.json": "229fd522825621e53baa8f85cf6ca56715419ff85df36c0902b3401d50c48a9e";
16
16
  readonly "product-metadata.schema.json": "7c8ffbde878a0aedaed16814fcfd2e80038054b140886cc8736bb7b508042631";
17
17
  readonly "quote.schema.json": "52ee1f4708c8b1504e4cd2f2f9279e14c8ec8aeacac1f491441ae0e15ac3c71a";
18
- readonly "realtime.schema.json": "32e56c8bb642401f5b03e9c38274087c09bebb73ffe60c0d34432c2e78ce1e15";
18
+ readonly "realtime.schema.json": "bfea15f8334b302a98e58ca5a71f1c9b259e15b5f2c9239620f127270e5b4c7f";
19
19
  };
20
20
  export declare const operations: {
21
- readonly client: readonly ["abandonCoreExit", "acceptQuote", "activeCoreExits", "admitOwnMaker", "admitPartnerWallet", "approveWallet", "bindEmbeddedWallet", "cancelRfq", "confirmComboCopyAgent", "confirmCoreCopyAgent", "createCashout", "createComment", "createCoreExit", "createDeposit", "createGoldenRfq", "createRfq", "createRunOffClaim", "createWalletChallenge", "createWalletSession", "createWithdrawal", "deleteComment", "editComment", "endWalletSession", "followTrader", "getAcceptance", "getAccountActivity", "getAccountPnl", "getAccountPosition", "getAccountValue", "getBalances", "getCopyAgents", "getCopyBudget", "getCopySettings", "getCopySummary", "getCoreExit", "getDeployment", "getGolden", "getGoldenMarkets", "getGoldenOffer", "getGoldenSuggestions", "getHypercoreBalance", "getHypercorePortfolio", "getHypercoreSettlementCredits", "getIdentity", "getMakerActivity", "getMakerCapital", "getMakerExposure", "getMakerPerformance", "getMakerPosition", "getMakerQuotes", "getMakerTelemetry", "getMakerVaultFundingTransaction", "getMakerWithdrawal", "getMarket", "getMarketDataConfig", "getMarketDefinitions", "getMarketHistory", "getMarketRecurringRound", "getMarketReferenceCloses", "getMarketScoreTimeline", "getMarketStats", "getMyGenesis", "getMyReferralBonus", "getOperation", "getOwnMaker", "getPartnerReport", "getPerpMarks", "getProfitLeaderboard", "getQuestion", "getQuestionRecurringRound", "getQuestionScoreTimeline", "getRfq", "getSeries", "getSuggestedCombo", "getTaxonomy", "getTrader", "getTraderPnl", "getUsernameAvailability", "getVaultAgents", "getVolumeLeaderboard", "getWalletApproval", "getWithdrawal", "grantComboCopyAgent", "grantVaultAgent", "likeComment", "listAccountActivity", "listAccountPositions", "listComboCopies", "listComboFeed", "listCommentReplies", "listComments", "listControlledMakers", "listCopiedFills", "listCopyTrades", "listDiscovery", "listFollows", "listMakerActivity", "listMakerPositions", "listMakerQuoteHistory", "listMarkets", "listMyNotifications", "listOperations", "listPartnerFills", "listPartnerWebhookEvents", "listQuotes", "listTraderPositions", "listTraderTrades", "markMyNotificationsRead", "placeGolden", "reactComment", "recordAcquisition", "recordGoldenTelegramClick", "refreshPicture", "requestComboCopyAgent", "requestCoreCopyAgent", "revokeComboCopyAgent", "searchCatalog", "setAvatar", "setCopyAllocation", "setCopySettings", "setPublicProfile", "setUsername", "setXHandleShown", "signGoldenGift", "stream", "streamMarkets", "switchOffComboCopyAgent", "switchOffCoreCopyAgent", "unfollowTrader", "unlikeComment", "unlockGolden", "unreactComment"];
22
- readonly maker: readonly ["cancelQuote", "confirmQuote", "createCollateralReduction", "createQuote", "getAccountActivity", "getAccountPosition", "getCollateralReduction", "getDeployment", "getMakerActivity", "getMakerCapital", "getMakerExposure", "getMakerPerformance", "getMakerPosition", "getMakerQuotes", "getMakerTelemetry", "getMakerTelemetryPublication", "getMakerVaultFundingTransaction", "getMakerWithdrawal", "getMarket", "getMarketHistory", "getMarketRecurringRound", "getMarketReferenceCloses", "getOperation", "getQuestion", "getQuestionRecurringRound", "getRfq", "getSeries", "getTaxonomy", "listAccountActivity", "listAccountPositions", "listDiscovery", "listMakerAcceptances", "listMakerActivity", "listMakerPositions", "listMakerQuoteHistory", "listMarkets", "listOperations", "listRfqs", "publishMakerTelemetry", "releaseQuoteLease", "renewQuoteLease", "searchCatalog", "stream", "submitMakerSelfFundedTransaction"];
21
+ readonly client: readonly ["abandonCoreExit", "acceptQuote", "activeCoreExits", "admitOwnMaker", "admitPartnerWallet", "approveWallet", "bindEmbeddedWallet", "cancelRfq", "confirmComboCopyAgent", "confirmCoreCopyAgent", "createCashout", "createComment", "createCoreExit", "createDeposit", "createGoldenRfq", "createRfq", "createRunOffClaim", "createWalletChallenge", "createWalletSession", "createWithdrawal", "deleteComment", "editComment", "endWalletSession", "followTrader", "getAcceptance", "getAccountActivity", "getAccountPnl", "getAccountPosition", "getAccountValue", "getBalances", "getCopyAgents", "getCopyBudget", "getCopySettings", "getCopySummary", "getCoreExit", "getDeployment", "getGolden", "getGoldenMarkets", "getGoldenOffer", "getGoldenSuggestions", "getHypercoreBalance", "getHypercorePortfolio", "getHypercoreSettlementCredits", "getIdentity", "getMakerActivity", "getMakerCapital", "getMakerExposure", "getMakerPerformance", "getMakerPosition", "getMakerQuotes", "getMakerTelemetry", "getMakerVaultFundingTransaction", "getMakerWithdrawal", "getMarket", "getMarketDataConfig", "getMarketDefinitions", "getMarketDisplay", "getMarketHistory", "getMarketRecurringRound", "getMarketReferenceCloses", "getMarketScoreTimeline", "getMarketStats", "getMyGenesis", "getMyReferralBonus", "getOperation", "getOutcomeMetadata", "getOwnMaker", "getPartnerAccountValue", "getPartnerReport", "getPerpMarks", "getProfitLeaderboard", "getQuestion", "getQuestionRecurringRound", "getQuestionScoreTimeline", "getRfq", "getSeries", "getSuggestedCombo", "getTaxonomy", "getTrader", "getTraderPnl", "getUsernameAvailability", "getVaultAgents", "getVolumeLeaderboard", "getWalletApproval", "getWithdrawal", "grantComboCopyAgent", "grantVaultAgent", "likeComment", "listAccountActivity", "listAccountPositions", "listComboCopies", "listComboFeed", "listCommentReplies", "listComments", "listControlledMakers", "listCopiedFills", "listCopyTrades", "listDiscovery", "listFollows", "listMakerActivity", "listMakerPositions", "listMakerQuoteHistory", "listMarkets", "listMyNotifications", "listOperations", "listPartnerFills", "listPartnerWebhookEvents", "listQuotes", "listTraderPositions", "listTraderTrades", "markMyNotificationsRead", "placeGolden", "reactComment", "recordAcquisition", "recordGoldenTelegramClick", "refreshPicture", "requestComboCopyAgent", "requestCoreCopyAgent", "revokeComboCopyAgent", "searchCatalog", "setAvatar", "setCopyAllocation", "setCopySettings", "setPublicProfile", "setUsername", "setXHandleShown", "signGoldenGift", "stream", "streamMarkets", "switchOffComboCopyAgent", "switchOffCoreCopyAgent", "unfollowTrader", "unlikeComment", "unlockGolden", "unreactComment"];
22
+ readonly maker: readonly ["cancelQuote", "confirmQuote", "createCollateralReduction", "createQuote", "getAccountActivity", "getAccountPosition", "getCollateralReduction", "getDeployment", "getMakerActivity", "getMakerCapital", "getMakerExposure", "getMakerPerformance", "getMakerPosition", "getMakerQuotes", "getMakerTelemetry", "getMakerTelemetryPublication", "getMakerVaultFundingTransaction", "getMakerWithdrawal", "getMarket", "getMarketDisplay", "getMarketHistory", "getMarketRecurringRound", "getMarketReferenceCloses", "getOperation", "getQuestion", "getQuestionRecurringRound", "getRfq", "getSeries", "getTaxonomy", "listAccountActivity", "listAccountPositions", "listDiscovery", "listMakerAcceptances", "listMakerActivity", "listMakerPositions", "listMakerQuoteHistory", "listMarkets", "listOperations", "listRfqs", "publishMakerTelemetry", "releaseQuoteLease", "renewQuoteLease", "searchCatalog", "stream", "submitMakerSelfFundedTransaction"];
23
23
  readonly operator: readonly ["live", "ready"];
24
24
  };
@@ -1,22 +1,22 @@
1
1
  // Generated by scripts/generate.mjs; do not edit.
2
- export const sdkVersion = "231.0.0-partner-webhook-events";
3
- export const openapiSha256 = "153af0c29c1c8e4c69d5223c04b30f32186065262348f4c4713a5b6ea53d851d";
4
- export const realtimeSha256 = "32e56c8bb642401f5b03e9c38274087c09bebb73ffe60c0d34432c2e78ce1e15";
2
+ export const sdkVersion = "236.0.0-market-display";
3
+ export const openapiSha256 = "2d3a543422dd85f568f7760641e39f7688c7581ceb4cd8216c61507726ad5697";
4
+ export const realtimeSha256 = "bfea15f8334b302a98e58ca5a71f1c9b259e15b5f2c9239620f127270e5b4c7f";
5
5
  export const jsonSchemaSha256 = {
6
6
  "account.schema.json": "e6cd5a75429d074f23bd7f6ffd370fa59d0e3f7dbd6aef6433e5ba0d21b5baeb",
7
7
  "comments.schema.json": "b3e35b9b1bd90b763658fcd25910ec123d44713cdf608b4e52667c91b78f0aa5",
8
8
  "common.schema.json": "04f51deb3cbea448e59195e26ede3212598d58a7940fe67eb2123fd9161c5edb",
9
9
  "core-exit.schema.json": "c7f617e815225cdcac95c236f8b73fbe288ee5713ff444c3be90eb915fc3a401",
10
- "error.schema.json": "f98be7f7a0fa7d46479743fb040684627658abc3a04b0dccdf3f089a22454715",
10
+ "error.schema.json": "0e362e916f59125775cf3201681827d394b53a004a53e21fb84746e794982c7f",
11
11
  "hypercore.schema.json": "5b89b2bbff7ec8cc1b8717375d12ce9cd5ab6aa5af03c4fdc6cc753ef9583a2c",
12
12
  "identity.schema.json": "a97ec2f4319a16619d3a3ab613989fb1dba8107713e0fb8f1f9ad5aea25a67e3",
13
13
  "maker-access.schema.json": "49698ee0235e42064aae0397db1e0f646bdc10d9dfa10121714ba06dd69fee3b",
14
14
  "maker-action.schema.json": "dc41e52c868848e85cdeb918992cb710d34616d2803a63f6d9a658e016744a50",
15
15
  "maker-telemetry.schema.json": "85b111ce0f4935299d1116071b43de12e775bef4e0c283c12f19046d34374a9c",
16
- "market-data.schema.json": "d9b277cdd7094a3c32a0c0957ad1de94458b0ea36b9a9fdf6f1f6211bd3c5e61",
16
+ "market-data.schema.json": "229fd522825621e53baa8f85cf6ca56715419ff85df36c0902b3401d50c48a9e",
17
17
  "product-metadata.schema.json": "7c8ffbde878a0aedaed16814fcfd2e80038054b140886cc8736bb7b508042631",
18
18
  "quote.schema.json": "52ee1f4708c8b1504e4cd2f2f9279e14c8ec8aeacac1f491441ae0e15ac3c71a",
19
- "realtime.schema.json": "32e56c8bb642401f5b03e9c38274087c09bebb73ffe60c0d34432c2e78ce1e15"
19
+ "realtime.schema.json": "bfea15f8334b302a98e58ca5a71f1c9b259e15b5f2c9239620f127270e5b4c7f"
20
20
  };
21
21
  export const operations = {
22
22
  "client": [
@@ -76,6 +76,7 @@ export const operations = {
76
76
  "getMarket",
77
77
  "getMarketDataConfig",
78
78
  "getMarketDefinitions",
79
+ "getMarketDisplay",
79
80
  "getMarketHistory",
80
81
  "getMarketRecurringRound",
81
82
  "getMarketReferenceCloses",
@@ -84,7 +85,9 @@ export const operations = {
84
85
  "getMyGenesis",
85
86
  "getMyReferralBonus",
86
87
  "getOperation",
88
+ "getOutcomeMetadata",
87
89
  "getOwnMaker",
90
+ "getPartnerAccountValue",
88
91
  "getPartnerReport",
89
92
  "getPerpMarks",
90
93
  "getProfitLeaderboard",
@@ -173,6 +176,7 @@ export const operations = {
173
176
  "getMakerVaultFundingTransaction",
174
177
  "getMakerWithdrawal",
175
178
  "getMarket",
179
+ "getMarketDisplay",
176
180
  "getMarketHistory",
177
181
  "getMarketRecurringRound",
178
182
  "getMarketReferenceCloses",
package/dist/partner.d.ts CHANGED
@@ -7,6 +7,8 @@ export type PartnerReport = components["schemas"]["PartnerReport"];
7
7
  /** A page of fee events on your users' positions (TT-2749). Amounts are atomic USDC strings. */
8
8
  export type PartnerFillPage = components["schemas"]["PartnerFillPage"];
9
9
  export type PartnerWebhookEventPage = components["schemas"]["PartnerWebhookEventPage"];
10
+ /** What an account holds at Totalis at one HyperEVM block (TT-2787). Amounts are atomic USDC strings. */
11
+ export type PartnerAccountValue = components["schemas"]["AccountValue"];
10
12
  /** A wallet's signed consent to one partner opening its account (TT-1688). */
11
13
  export type AdmissionConsent = {
12
14
  readonly expires_at: string;
@@ -52,8 +54,9 @@ export type PartnerServerOptions = Omit<ApiClientOptions, "accessToken" | "partn
52
54
  * wallet's consent (`signAdmissionConsent` in your frontend), and its next
53
55
  * wallet sign-in creates the account, attributed to you. `report` reads your
54
56
  * fees, terms and payouts (TT-2420), and `fills` each fee event on your
55
- * users' positions (TT-2749), and `webhookEvents` reads back the webhook
56
- * events Totalis queued for you (TT-2794). Refuses to run in a browser or a React Native
57
+ * users' positions (TT-2749), `webhookEvents` reads back the webhook
58
+ * events Totalis queued for you (TT-2794), and `accountValue` the value of an
59
+ * account you admitted (TT-2795). Refuses to run in a browser or a React Native
57
60
  * app, where the server key would be exposed.
58
61
  */
59
62
  export declare function createPartnerServer(options: PartnerServerOptions): {
@@ -98,5 +101,12 @@ export declare function createPartnerServer(options: PartnerServerOptions): {
98
101
  readonly cursor?: string;
99
102
  readonly limit?: number;
100
103
  }): Promise<PartnerWebhookEventPage>;
104
+ /**
105
+ * The value of the account your admission of `wallet` opened, the body
106
+ * the user's own Get account value returns, read with your server key so
107
+ * you can keep it after the user's key lapses. A wallet you did not
108
+ * admit, or one no longer signing for that account, is a 404.
109
+ */
110
+ accountValue(wallet: string): Promise<PartnerAccountValue>;
101
111
  };
102
112
  export type PartnerServer = ReturnType<typeof createPartnerServer>;
package/dist/partner.js CHANGED
@@ -34,8 +34,9 @@ export async function signAdmissionConsent(request) {
34
34
  * wallet's consent (`signAdmissionConsent` in your frontend), and its next
35
35
  * wallet sign-in creates the account, attributed to you. `report` reads your
36
36
  * fees, terms and payouts (TT-2420), and `fills` each fee event on your
37
- * users' positions (TT-2749), and `webhookEvents` reads back the webhook
38
- * events Totalis queued for you (TT-2794). Refuses to run in a browser or a React Native
37
+ * users' positions (TT-2749), `webhookEvents` reads back the webhook
38
+ * events Totalis queued for you (TT-2794), and `accountValue` the value of an
39
+ * account you admitted (TT-2795). Refuses to run in a browser or a React Native
39
40
  * app, where the server key would be exposed.
40
41
  */
41
42
  export function createPartnerServer(options) {
@@ -86,5 +87,14 @@ export function createPartnerServer(options) {
86
87
  async webhookEvents(query) {
87
88
  return unwrap(await client.GET("/v1/partner/webhook-events", { params: { query: query ?? {} } }));
88
89
  },
90
+ /**
91
+ * The value of the account your admission of `wallet` opened, the body
92
+ * the user's own Get account value returns, read with your server key so
93
+ * you can keep it after the user's key lapses. A wallet you did not
94
+ * admit, or one no longer signing for that account, is a 404.
95
+ */
96
+ async accountValue(wallet) {
97
+ return unwrap(await client.GET("/v1/partner/accounts/{wallet}/account-value", { params: { path: { wallet } } }));
98
+ },
89
99
  };
90
100
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@totalis/hip4-client",
3
- "version": "0.98.0",
3
+ "version": "0.100.0",
4
4
  "description": "Totalis HIP-4 SDK: typed HTTP clients, signer-agnostic typed data, a retrying request layer, pagination, a realtime stream and taker/maker flows",
5
5
  "type": "module",
6
6
  "files": [