@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.
@@ -426,7 +426,7 @@ export type paths = {
426
426
  readonly put?: never;
427
427
  /**
428
428
  * Bind embedded wallet
429
- * @description Idempotently makes a wallet attested by the authenticated user's signed Privy identity token the account's: the account's current wallet if it has one, else the Privy embedded wallet, else the one Ethereum wallet the user signed in with. The account's wallet never changes once bound; several external wallets on a new account, or a wallet another account holds, answer EMBEDDED_WALLET_CONFLICT, and a smart contract wallet answers WALLET_CONTRACT_UNSUPPORTED. Creating a new account needs a Google, email, X or Ethereum wallet login linked in the identity token, or a Solana wallet login (such as one from the Solana app on the same Privy app) once the user has a Privy embedded wallet, or this answers SIGN_IN_REQUIRED, and, while the closed launch is on, an invite code redeemed with the access service first, or this answers ACCESS_REQUIRED. Existing accounts are unaffected.
429
+ * @description Idempotently makes a wallet attested by the authenticated user's signed Privy identity token the account's: the account's current wallet if it has one, else the Privy embedded wallet, else the one Ethereum wallet the user signed in with. The account's wallet never changes once bound; several external wallets on a new account, or a wallet another account holds, answer EMBEDDED_WALLET_CONFLICT, and a smart contract wallet answers WALLET_CONTRACT_UNSUPPORTED. Creating a new account needs a Google, email, X or Ethereum wallet login linked in the identity token, or a Solana wallet login (such as one from the Solana app on the same Privy app) once the user has a Privy embedded wallet, or this answers SIGN_IN_REQUIRED, and, while the closed launch is on, an invite code redeemed with the access service first, or this answers ACCESS_REQUIRED. Existing accounts are unaffected. The body is optional: an app may send the browser's analytics `device_id`, which only feeds the free Combo's farm check when the new account gets a golden ticket; it never changes the account or the idempotent answer.
430
430
  */
431
431
  readonly post: operations["bindEmbeddedWallet"];
432
432
  readonly delete?: never;
@@ -575,6 +575,26 @@ export type paths = {
575
575
  readonly patch?: never;
576
576
  readonly trace?: never;
577
577
  };
578
+ readonly "/v1/partner/accounts/{wallet}/account-value": {
579
+ readonly parameters: {
580
+ readonly query?: never;
581
+ readonly header?: never;
582
+ readonly path?: never;
583
+ readonly cookie?: never;
584
+ };
585
+ /**
586
+ * Get a user's account value
587
+ * @description The value of an account your admission of this wallet opened, the body Get account value returns to the user, read with your server key so you can keep a user's history after their own key lapses.
588
+ */
589
+ readonly get: operations["getPartnerAccountValue"];
590
+ readonly put?: never;
591
+ readonly post?: never;
592
+ readonly delete?: never;
593
+ readonly options?: never;
594
+ readonly head?: never;
595
+ readonly patch?: never;
596
+ readonly trace?: never;
597
+ };
578
598
  readonly "/v1/me/acquisition": {
579
599
  readonly parameters: {
580
600
  readonly query?: never;
@@ -746,7 +766,7 @@ export type paths = {
746
766
  readonly put?: never;
747
767
  /**
748
768
  * Unlock the golden ticket
749
- * @description Unlocks this account's LOCKED golden ticket, which makes it AVAILABLE. Totalis reads from the login provider which X account is linked to this account's login now, then, in one step, records that X account as having unlocked a free Combo, for good and on any account, and takes one free Combo from the invite code the account joined with: whoever unlocks first gets the last one. The body is empty; Totalis takes no X account, code or proof from the client. The account's single ticket keys the request: once it is unlocked, the same request answers the ticket as it stands and takes nothing more, also after X was unlinked, so an unlock whose answer was lost is found by unlocking again. Unlinking X later changes nothing, and an unlocked ticket that expires unused gives nothing back. Refusals take nothing: X_REQUIRED (no X account is linked), X_ALREADY_CLAIMED (that X account already unlocked a free Combo), GOLDEN_GIVEN_OUT (the code has none left), GOLDEN_CODE_DISABLED (the code is disabled), GOLDEN_TICKET_EXPIRED (it expired before it was unlocked), GOLDEN_TICKET_USED or GOLDEN_PLACEMENT_IN_FLIGHT (a ticket used before unlocking existed, which needs no unlock), X_VERIFICATION_UNAVAILABLE (the login provider did not answer). The ticket's 7 days still run from `granted_at`.
769
+ * @description Unlocks this account's LOCKED golden ticket, which makes it AVAILABLE. Totalis reads from the login provider which X account is linked to this account's login now, then, in one step, records that X account as having unlocked a free Combo, for good and on any account, and takes one free Combo from the invite code the account joined with: whoever unlocks first gets the last one. Totalis takes no X account, code or proof from the client; the body is `{}` or carries the browser's analytics `device_id`, which only feeds the farm check. An X account under 30 days old, or a browser another account already unlocked with, refuses the unlock for good: GOLDEN_NOT_ELIGIBLE, whatever X account the account links next; the account otherwise trades as before. The account's single ticket keys the request: once it is unlocked, the same request answers the ticket as it stands and takes nothing more, also after X was unlinked, so an unlock whose answer was lost is found by unlocking again. Unlinking X later changes nothing, and an unlocked ticket that expires unused gives nothing back. Refusals take nothing: X_REQUIRED (no X account is linked), X_ALREADY_CLAIMED (that X account already unlocked a free Combo), GOLDEN_GIVEN_OUT (the code has none left), GOLDEN_CODE_DISABLED (the code is disabled), GOLDEN_TICKET_EXPIRED (it expired before it was unlocked), GOLDEN_TICKET_USED or GOLDEN_PLACEMENT_IN_FLIGHT (a ticket used before unlocking existed, which needs no unlock), X_VERIFICATION_UNAVAILABLE (the login provider did not answer), GOLDEN_NOT_ELIGIBLE (refused as farming, answered again before X is read). The ticket's 7 days still run from `granted_at`.
750
770
  */
751
771
  readonly post: operations["unlockGolden"];
752
772
  readonly delete?: never;
@@ -2258,6 +2278,46 @@ export type paths = {
2258
2278
  readonly patch?: never;
2259
2279
  readonly trace?: never;
2260
2280
  };
2281
+ readonly "/v1/market-display": {
2282
+ readonly parameters: {
2283
+ readonly query?: never;
2284
+ readonly header?: never;
2285
+ readonly path?: never;
2286
+ readonly cookie?: never;
2287
+ };
2288
+ /**
2289
+ * Get market display
2290
+ * @description Name and picture up to 100 outcomes from their IDs alone, live or departed, such as the legs of a position or the fills of an account.
2291
+ */
2292
+ readonly get: operations["getMarketDisplay"];
2293
+ readonly put?: never;
2294
+ readonly post?: never;
2295
+ readonly delete?: never;
2296
+ readonly options?: never;
2297
+ readonly head?: never;
2298
+ readonly patch?: never;
2299
+ readonly trace?: never;
2300
+ };
2301
+ readonly "/v1/outcome-metadata": {
2302
+ readonly parameters: {
2303
+ readonly query?: never;
2304
+ readonly header?: never;
2305
+ readonly path?: never;
2306
+ readonly cookie?: never;
2307
+ };
2308
+ /**
2309
+ * Get outcome metadata
2310
+ * @description Hyperliquid's outcome metadata and outcome templates exactly as our own Hyperliquid node served them in the catalog revision the current catalog generation was built from: every outcome's and question's native name, description and side names, each outcome's `deployerFeeScale` and the venue's `feeScale`, which set a sale's fees. The answer is always the current generation; with `min_generation`, it is at least that one, and a catalog still behind it is 503 MARKET_DATA_UNAVAILABLE. Shared caches keep for 5 seconds only an answer naming exactly the `min_generation` asked for; any other answer is no-store, so it is always current. Before the first catalog publishes, while the catalog source has not reconfirmed the catalog recently, on a standby, or when the current generation holds no metadata, this is 503 MARKET_DATA_UNAVAILABLE, never an older generation's metadata.
2311
+ */
2312
+ readonly get: operations["getOutcomeMetadata"];
2313
+ readonly put?: never;
2314
+ readonly post?: never;
2315
+ readonly delete?: never;
2316
+ readonly options?: never;
2317
+ readonly head?: never;
2318
+ readonly patch?: never;
2319
+ readonly trace?: never;
2320
+ };
2261
2321
  readonly "/v1/perp-marks": {
2262
2322
  readonly parameters: {
2263
2323
  readonly query?: never;
@@ -3488,8 +3548,18 @@ export type components = {
3488
3548
  readonly HyperevmKeeperOperationKind: "DEPOSIT_USER_AUTHORIZED" | "WITHDRAW_USER" | "ACCEPT" | "SETTLE" | "CACHE_SETTLEMENT" | "CLAIM" | "SELL_BACK" | "TRANSFER_TICKET" | "ATTEST" | "SYNC" | "TOTALIS_PAYOUT" | "CORE_EXIT" | "SET_AGENT" | "USDC_PERMIT";
3489
3549
  readonly Hash32: string;
3490
3550
  readonly Uint256: string;
3551
+ /**
3552
+ * BrowserDevice
3553
+ * @description Optional facts about the browser sending the request; `{}` when it has none.
3554
+ */
3555
+ readonly BrowserDevice: {
3556
+ /** @description The browser's analytics device ID (PostHog `$device_id`), when the app has one. Hashed with a server key and used only by the free Combo's farm check; missing is unknown, never a refusal. */
3557
+ readonly device_id?: string;
3558
+ };
3491
3559
  /** GoldenTicket */
3492
3560
  readonly GoldenTicket: {
3561
+ /** @description True when the free Combo's farm check refused this account for good and no operator waived it: the ticket stays LOCKED until it expires and no X account can unlock it (POST /v1/me/golden/unlock answers GOLDEN_NOT_ELIGIBLE). False otherwise. */
3562
+ readonly not_eligible: boolean;
3493
3563
  /**
3494
3564
  * @description LOCKED: unused and unexpired, and not unlocked yet: unlock it with POST /v1/me/golden/unlock; it cannot be quoted or placed until then (GOLDEN_UNLOCK_REQUIRED). AVAILABLE: unlocked, unused and unexpired. PLACING: Totalis is buying the Combo. BOUGHT: Totalis bought it; the gift to this account is on its way, or, while `placement.gift` is set, waits for this account's wallet to sign it. PLACED: the gift landed; `position_id` is the account's position. LAPSED: Totalis bought it, but the position ended (settled, or lost a leg) before its gift was signed and landed; it stays Totalis's and the ticket is used; `position_id` names it. EXPIRED: it lapsed unused, unlocked or not.
3495
3565
  * @enum {string}
@@ -3618,7 +3688,7 @@ export type components = {
3618
3688
  * @description Stable HTTP error code. Each code has one HTTP status and one retry value.
3619
3689
  * @enum {string}
3620
3690
  */
3621
- readonly ErrorCode: "INVALID_REQUEST" | "INVALID_QUERY" | "INVALID_CURSOR" | "INVALID_IDEMPOTENCY_KEY" | "ORIGIN_REQUIRED" | "SUBPROTOCOL_REQUIRED" | "UNSUPPORTED_BROWSE_CONTRACT" | "UNAUTHENTICATED" | "FORBIDDEN" | "ORIGIN_NOT_ALLOWED" | "ACCESS_REQUIRED" | "SIGN_IN_REQUIRED" | "NOT_FOUND" | "IDENTITY_NOT_FOUND" | "QUOTE_NOT_FOUND" | "INVITE_CODE_NOT_FOUND" | "IDEMPOTENCY_KEY_REUSED" | "STATE_CONFLICT" | "INVITE_CODE_EXHAUSTED" | "STALE_CURSOR" | "CURSOR_EXPIRED" | "CURSOR_RESET" | "RECURRING_DEFINITION_CONFLICT" | "EMBEDDED_WALLET_CONFLICT" | "SECRET_UNAVAILABLE" | "ROTATION_IN_PROGRESS" | "TELEMETRY_CONFLICT" | "RFQ_NOT_CANCELLABLE" | "RFQ_NOT_OPEN" | "RFQ_GENERATION_STALE" | "RFQ_GENERATION_IN_FLIGHT" | "QUOTE_EXPIRED" | "QUOTE_CANCELLED" | "QUOTE_REPLACED" | "QUOTE_SIGNER_CHANGED" | "QUOTE_CAPACITY_EXCEEDED" | "CORE_ACCOUNT_NOT_READY" | "CORE_ACCOUNT_ACTIVATION_REQUIRED" | "CORE_EXIT_ABANDONED" | "CORE_MOVE_IN_FLIGHT" | "ACCEPTANCE_IN_FLIGHT" | "USERNAME_TAKEN" | "USERNAME_ALREADY_SET" | "USERNAME_REQUIRED" | "GOLDEN_TICKET_NONE" | "GOLDEN_TICKET_USED" | "GOLDEN_TICKET_EXPIRED" | "GOLDEN_PLACEMENT_IN_FLIGHT" | "GOLDEN_PROMO_BUSY" | "GOLDEN_CASHOUT_REFUSED" | "GOLDEN_OFFER_BELOW_FLOOR" | "GOLDEN_GIFT_TERMS_EXPIRED" | "GOLDEN_UNLOCK_REQUIRED" | "GOLDEN_GIVEN_OUT" | "GOLDEN_CODE_DISABLED" | "X_REQUIRED" | "X_ALREADY_CLAIMED" | "INVALID_SIGNATURE" | "WALLET_CONTRACT_UNSUPPORTED" | "WRONG_AUTHORITY" | "KEY_LIMIT_REACHED" | "USERNAME_NOT_ALLOWED" | "FOLLOW_SELF" | "FOLLOW_LIMIT_REACHED" | "GOLDEN_LEG_COUNT" | "GOLDEN_LEG_NOT_ELIGIBLE" | "GOLDEN_QUOTE_NOT_HOUSE" | "RATE_LIMITED" | "CONNECTION_LIMIT" | "RFQ_INTENT_LIMIT" | "QUOTE_EXPOSURE_LIMIT" | "DEPENDENCY_STALE" | "AUTHORIZATION_UNAVAILABLE" | "SOURCE_UNAVAILABLE" | "CONTRACT_UNAVAILABLE" | "MARKET_DATA_UNAVAILABLE" | "BROWSE_UNAVAILABLE" | "FINANCIAL_ACTIONS_DISABLED" | "CORE_EXIT_UNAVAILABLE" | "COLLATERAL_REDUCTION_UNAVAILABLE" | "SPONSORSHIP_UNAVAILABLE" | "CONTRACT_SIGNATURE_OVERLOADED" | "QUOTE_EXPOSURE_STALE" | "COMBO_AUTOMATIC_DISABLED" | "GAS_PRICE_ABOVE_CEILING" | "EXECUTION_BACKLOG_FULL" | "EMBEDDED_WALLET_UNAVAILABLE" | "GOLDEN_PROMO_FUNDS_LOW" | "X_VERIFICATION_UNAVAILABLE" | "CONNECTION_DRAIN";
3691
+ readonly ErrorCode: "INVALID_REQUEST" | "INVALID_QUERY" | "INVALID_CURSOR" | "INVALID_IDEMPOTENCY_KEY" | "ORIGIN_REQUIRED" | "SUBPROTOCOL_REQUIRED" | "UNSUPPORTED_BROWSE_CONTRACT" | "UNAUTHENTICATED" | "FORBIDDEN" | "ORIGIN_NOT_ALLOWED" | "ACCESS_REQUIRED" | "SIGN_IN_REQUIRED" | "NOT_FOUND" | "IDENTITY_NOT_FOUND" | "QUOTE_NOT_FOUND" | "INVITE_CODE_NOT_FOUND" | "IDEMPOTENCY_KEY_REUSED" | "STATE_CONFLICT" | "INVITE_CODE_EXHAUSTED" | "STALE_CURSOR" | "CURSOR_EXPIRED" | "CURSOR_RESET" | "RECURRING_DEFINITION_CONFLICT" | "EMBEDDED_WALLET_CONFLICT" | "SECRET_UNAVAILABLE" | "ROTATION_IN_PROGRESS" | "TELEMETRY_CONFLICT" | "RFQ_NOT_CANCELLABLE" | "RFQ_NOT_OPEN" | "RFQ_GENERATION_STALE" | "RFQ_GENERATION_IN_FLIGHT" | "QUOTE_EXPIRED" | "QUOTE_CANCELLED" | "QUOTE_REPLACED" | "QUOTE_SIGNER_CHANGED" | "QUOTE_CAPACITY_EXCEEDED" | "CORE_ACCOUNT_NOT_READY" | "CORE_ACCOUNT_ACTIVATION_REQUIRED" | "CORE_EXIT_ABANDONED" | "CORE_MOVE_IN_FLIGHT" | "ACCEPTANCE_IN_FLIGHT" | "USERNAME_TAKEN" | "USERNAME_ALREADY_SET" | "USERNAME_REQUIRED" | "GOLDEN_TICKET_NONE" | "GOLDEN_TICKET_USED" | "GOLDEN_TICKET_EXPIRED" | "GOLDEN_PLACEMENT_IN_FLIGHT" | "GOLDEN_PROMO_BUSY" | "GOLDEN_CASHOUT_REFUSED" | "GOLDEN_OFFER_BELOW_FLOOR" | "GOLDEN_GIFT_TERMS_EXPIRED" | "GOLDEN_UNLOCK_REQUIRED" | "GOLDEN_GIVEN_OUT" | "GOLDEN_CODE_DISABLED" | "X_REQUIRED" | "X_ALREADY_CLAIMED" | "GOLDEN_NOT_ELIGIBLE" | "INVALID_SIGNATURE" | "WALLET_CONTRACT_UNSUPPORTED" | "WRONG_AUTHORITY" | "KEY_LIMIT_REACHED" | "USERNAME_NOT_ALLOWED" | "FOLLOW_SELF" | "FOLLOW_LIMIT_REACHED" | "GOLDEN_LEG_COUNT" | "GOLDEN_LEG_NOT_ELIGIBLE" | "GOLDEN_QUOTE_NOT_HOUSE" | "RATE_LIMITED" | "CONNECTION_LIMIT" | "RFQ_INTENT_LIMIT" | "QUOTE_EXPOSURE_LIMIT" | "DEPENDENCY_STALE" | "AUTHORIZATION_UNAVAILABLE" | "SOURCE_UNAVAILABLE" | "CONTRACT_UNAVAILABLE" | "MARKET_DATA_UNAVAILABLE" | "BROWSE_UNAVAILABLE" | "FINANCIAL_ACTIONS_DISABLED" | "CORE_EXIT_UNAVAILABLE" | "COLLATERAL_REDUCTION_UNAVAILABLE" | "SPONSORSHIP_UNAVAILABLE" | "CONTRACT_SIGNATURE_OVERLOADED" | "QUOTE_EXPOSURE_STALE" | "COMBO_AUTOMATIC_DISABLED" | "GAS_PRICE_ABOVE_CEILING" | "EXECUTION_BACKLOG_FULL" | "EMBEDDED_WALLET_UNAVAILABLE" | "GOLDEN_PROMO_FUNDS_LOW" | "X_VERIFICATION_UNAVAILABLE" | "CONNECTION_DRAIN";
3622
3692
  readonly FieldViolation: {
3623
3693
  /**
3624
3694
  * @description REQUIRED: the input is missing. INVALID: it is present but malformed or out of range. UNEXPECTED: the input is not accepted here.
@@ -4599,6 +4669,43 @@ export type components = {
4599
4669
  /** @description Whether more events follow. */
4600
4670
  readonly has_more: boolean;
4601
4671
  };
4672
+ readonly Checkpoint: {
4673
+ /** @description Last HyperEVM block the vault projection has indexed; the read reflects chain state up to and including this block. */
4674
+ readonly block_number: components["schemas"]["UInt64String"];
4675
+ /**
4676
+ * @description CURRENT when the projection is within 32 blocks of a chain head observed in the last two minutes; STALE when it lags, so figures may be behind.
4677
+ * @enum {unknown}
4678
+ */
4679
+ readonly projection_state: "CURRENT" | "STALE";
4680
+ };
4681
+ /** @description What the account holds at Totalis at one HyperEVM block, in atomic USDC (6 decimals, "1000000" = 1 USDC): wallet USDC, its cash in the vault and in vaults running off, what it paid for its open positions, and the profit it can still claim, net of the fee. Every amount is read from the chain at block_number. HyperCore balances are not included; read them from Hyperliquid. */
4682
+ readonly AccountValue: {
4683
+ /** @description The account's wallet, lowercase. */
4684
+ readonly account: components["schemas"]["LowercaseNonZeroAddress"];
4685
+ /**
4686
+ * @description CURRENT when every amount was read at block_number; UNKNOWN when the chain could not be read, or the projection did not reach that block in time, and every amount is null. Read again later.
4687
+ * @enum {unknown}
4688
+ */
4689
+ readonly state: "CURRENT" | "UNKNOWN";
4690
+ /** @description The account's value: wallet_usdc + vault_cash + run_off_cash + open_cost + claimable_profit. Null unless state is CURRENT. */
4691
+ readonly amount: components["schemas"]["$defs-Amount"] | null;
4692
+ /** @description The HyperEVM block every amount was read at. Null unless state is CURRENT. */
4693
+ readonly block_number: components["schemas"]["UInt64String"] | null;
4694
+ /** @description USDC in the account's wallet on HyperEVM, including any already committed to a Totalis withdrawal or stake that has not landed. Null unless state is CURRENT. */
4695
+ readonly wallet_usdc: components["schemas"]["$defs-Amount"] | null;
4696
+ /** @description All the account's cash in the vault, including any held for an operation that has not landed, so it can exceed GET /v1/me/balances' free vault cash. Null unless state is CURRENT. */
4697
+ readonly vault_cash: components["schemas"]["$defs-Amount"] | null;
4698
+ /** @description The account's cash in vaults running off, all together; GET /v1/me/balances lists it per vault. Null unless state is CURRENT. */
4699
+ readonly run_off_cash: components["schemas"]["$defs-Amount"] | null;
4700
+ /** @description How many positions the account holds that have not settled: OPEN and AWAITING_SETTLEMENT in GET /v1/me/positions. Null unless state is CURRENT. */
4701
+ readonly open_positions: number | null;
4702
+ /** @description What the account paid for those positions: the sum of their acquisition_cost. Null unless state is CURRENT. */
4703
+ readonly open_cost: components["schemas"]["$defs-Amount"] | null;
4704
+ /** @description What claiming every SETTLED_UNCLAIMED position would pay the account: each one's unclaimed_profit minus floor(unclaimed_profit * fee_bps / 10000). Null unless state is CURRENT. */
4705
+ readonly claimable_profit: components["schemas"]["$defs-Amount"] | null;
4706
+ /** @description The vault projection the read used to find the account's positions. When state is CURRENT it has reached block_number. */
4707
+ readonly checkpoint: components["schemas"]["Checkpoint"];
4708
+ };
4602
4709
  /** @description One tagged landing on the app. Values come from utm_source, utm_medium, utm_campaign and ref; the path carries no query string. */
4603
4710
  readonly AcquisitionTouch: {
4604
4711
  readonly source?: string;
@@ -5855,6 +5962,146 @@ export type components = {
5855
5962
  /** @description Reviewed Hyperliquid outcome templates of the network, ascending by ID. */
5856
5963
  readonly templates: readonly components["schemas"]["TemplateDefinition"][];
5857
5964
  };
5965
+ readonly OutcomeNativeQuestion: {
5966
+ /** @description Hyperliquid question ID; null for an outcome known only from a settlement record that names its question without the ID. */
5967
+ readonly native_question_id: components["schemas"]["RealQuestionId"] | null;
5968
+ /** @description Native question name, for example template:sportsContestResult. */
5969
+ readonly name: string;
5970
+ /** @description Native question description. */
5971
+ readonly description: string;
5972
+ };
5973
+ /** @description The outcome exactly as Hyperliquid listed it in the last catalog Totalis recorded it in (the current one while it is listed) or, for an outcome no kept catalog copy holds, as Hyperliquid's settlement record names it. */
5974
+ readonly OutcomeNative: {
5975
+ /** @description Native outcome name, for example template:sportsContestWinner or Recurring. */
5976
+ readonly name: string;
5977
+ /** @description Native outcome description; a template instance holds its keyword values as key:value pairs separated by a vertical bar. */
5978
+ readonly description: string;
5979
+ /** @description Native side names, Yes then No, as listed (template:Yes, template:{shortNameA}); null where the copy Totalis kept predates side names. */
5980
+ readonly side_names: readonly string[] | null;
5981
+ /** @description The question the outcome belongs to, from the same catalog; null for a standalone outcome. */
5982
+ readonly question: components["schemas"]["OutcomeNativeQuestion"] | null;
5983
+ };
5984
+ /** @description An imagery subject's key: its kind, a colon and its normalized name, such as team:detroit lions. */
5985
+ readonly SubjectKey: string;
5986
+ readonly PictureSubject: {
5987
+ /**
5988
+ * @description SUBJECT: a subject described once in the answer's `subjects`.
5989
+ * @constant
5990
+ */
5991
+ readonly type: "SUBJECT";
5992
+ /** @description The subject's key in `subjects`. */
5993
+ readonly key: components["schemas"]["SubjectKey"];
5994
+ };
5995
+ readonly PictureGlyph: {
5996
+ /**
5997
+ * @description GLYPH: a mark of the client's own, never artwork.
5998
+ * @constant
5999
+ */
6000
+ readonly type: "GLYPH";
6001
+ /**
6002
+ * @description DRAW: a contest's draw outcome. TOTAL: an over/under line, drawn as Over for Yes and Under for No where the side is known.
6003
+ * @enum {string}
6004
+ */
6005
+ readonly glyph: "DRAW" | "TOTAL";
6006
+ };
6007
+ readonly Picture: components["schemas"]["PictureSubject"] | components["schemas"]["PictureGlyph"];
6008
+ /** @description Finished pictures for each place an outcome is drawn. null: nothing to picture there; a caller that needs a picture draws a coin from the title's initials. */
6009
+ readonly OutcomePictures: {
6010
+ /** @description The market as a whole, for a card or a header: its question's subject, or the TOTAL glyph for an over/under line. */
6011
+ readonly market: components["schemas"]["Picture"] | null;
6012
+ /** @description Holding or buying Yes, then No: the side's own subject when it has an image, else the question's subject when it has one, else whichever of them is known (drawn as its coin). A draw carries the DRAW glyph, an over/under line the TOTAL glyph. */
6013
+ readonly pick: readonly (components["schemas"]["Picture"] | null)[];
6014
+ /** @description Holding or buying the outcome before a side is chosen, by the same rule as `pick` with the option's own subject only: a winner's or spread's sides are its teams, so with no side it shows the question's subject. */
6015
+ readonly pick_no_side: components["schemas"]["Picture"] | null;
6016
+ /** @description Yes's and No's own subject with no fallback: the team a side of a winner or spread backs, or the option's own subject (a team, a candidate); null where the side has none. Never a glyph. */
6017
+ readonly own: readonly (components["schemas"]["Picture"] | null)[];
6018
+ /** @description The outcome as one option in its question's list: its own subject when it has an image, the DRAW glyph, or, for an option with no subject of its own (Other), the question's subject when it has an image and another option of the question has an image of its own; else null. Decided from the whole question, so a row reads the same alone as in its list. Its subject always has an image; show a list's picture column only while some row has a subject. */
6019
+ readonly row: components["schemas"]["Picture"] | null;
6020
+ /** @description Participant A's and B's subjects in the outcome's sport when its keywords name both (a game's winner, spread or total, or an option of a contest between them); null otherwise. */
6021
+ readonly teams: readonly (components["schemas"]["PictureSubject"] | null)[] | null;
6022
+ };
6023
+ readonly OutcomeDisplay: {
6024
+ /** @description Hyperliquid outcome ID. */
6025
+ readonly outcome_id: components["schemas"]["UInt32String"];
6026
+ /** @description English display title, the market's `title`. */
6027
+ readonly title: string;
6028
+ /** @description The outcome as Hyperliquid listed it, for a client that names markets itself. */
6029
+ readonly native: components["schemas"]["OutcomeNative"];
6030
+ /** @description Finished pictures for each place the outcome is drawn. */
6031
+ readonly pictures: components["schemas"]["OutcomePictures"];
6032
+ };
6033
+ readonly PictureVariant: {
6034
+ /**
6035
+ * @description Width and height in pixels.
6036
+ * @enum {integer}
6037
+ */
6038
+ readonly size: 64 | 128 | 256;
6039
+ /** @description Public WebP image URL. */
6040
+ readonly url: string;
6041
+ };
6042
+ readonly OklchColor: {
6043
+ /** @description Oklch lightness, 0 to 1. */
6044
+ readonly l: number;
6045
+ /** @description Oklch chroma. */
6046
+ readonly c: number;
6047
+ /** @description Hue in degrees. */
6048
+ readonly h: number;
6049
+ };
6050
+ readonly SubjectImage: {
6051
+ /**
6052
+ * @description ICON: a logo inset on a transparent square, drawn whole. PHOTO: a photo that fills its circle.
6053
+ * @enum {string}
6054
+ */
6055
+ readonly fit: "ICON" | "PHOTO";
6056
+ /** @description Square WebP renditions at 64, 128 and 256 pixels, in that order. Their URLs never change content. */
6057
+ readonly variants: readonly components["schemas"]["PictureVariant"][];
6058
+ /** @description The image's chromatic colors, most used first, for team and chart line colors; absent where imagery recorded none. A line wears its side's `own` subject's palette when that subject has an image, or, when it is a chart's only line and its side's own subject has none, `market`'s; a line whose `pick` is a glyph wears none. */
6059
+ readonly palette?: readonly components["schemas"]["OklchColor"][];
6060
+ };
6061
+ readonly Subject: {
6062
+ /** @description The subject's name, for alternative text. */
6063
+ readonly label: string;
6064
+ /** @description The subject's short mark, drawn on a coin when it has no image, while its image loads or when it fails. */
6065
+ readonly monogram: string;
6066
+ /** @description The subject's artwork; null for a known subject without any, drawn as its coin. */
6067
+ readonly image: components["schemas"]["SubjectImage"] | null;
6068
+ };
6069
+ /** @description Each subject a picture of the answer names, once, by key. */
6070
+ readonly Subjects: {
6071
+ readonly [key: string]: components["schemas"]["Subject"];
6072
+ };
6073
+ readonly MarketDisplay: {
6074
+ /**
6075
+ * @description Hyperliquid network the outcomes are listed on.
6076
+ * @enum {string}
6077
+ */
6078
+ readonly network: "HYPEREVM_TESTNET" | "HYPEREVM_MAINNET";
6079
+ /** @description The imagery manifest publication every subject was resolved from. null while market-data holds no manifest: every picture that would name a subject is then null and `subjects` is empty, the Draw and Total glyphs still show, and the answer is never cached. */
6080
+ readonly imagery_publication: string | null;
6081
+ /** @description Every asked outcome Totalis recorded, live or departed, ascending by outcome ID. */
6082
+ readonly outcomes: readonly components["schemas"]["OutcomeDisplay"][];
6083
+ /** @description Each subject the outcomes' pictures name, once, by key. */
6084
+ readonly subjects: components["schemas"]["Subjects"];
6085
+ /** @description Asked outcome IDs Totalis holds no definition of although it recorded a newer one, such as one no catalog listed and Hyperliquid has not settled yet: nothing names or pictures them. Ascending. */
6086
+ readonly not_recorded: readonly components["schemas"]["UInt32String"][];
6087
+ /** @description Asked outcome IDs newer than every outcome Totalis recorded, such as one listed seconds ago: ask again shortly. An answer with any is never cached. Ascending. */
6088
+ readonly pending: readonly components["schemas"]["UInt32String"][];
6089
+ /** @description The entries of Hyperliquid's info `outcomeTemplates` answer, unchanged, that these outcomes and their questions are instances of, from the current catalog generation's template list, ascending by `id`. A template Hyperliquid no longer lists is left out: name that outcome by `title`. */
6090
+ readonly templates: readonly unknown[];
6091
+ };
6092
+ readonly OutcomeMetadata: {
6093
+ /** @description Catalog generation built from this metadata. */
6094
+ readonly catalog_generation: components["schemas"]["PositiveInt64"];
6095
+ /**
6096
+ * @description Hyperliquid network the metadata was read from.
6097
+ * @enum {string}
6098
+ */
6099
+ readonly network: "HYPEREVM_TESTNET" | "HYPEREVM_MAINNET";
6100
+ /** @description Hyperliquid's info `outcomeMeta` answer, unchanged: an object of `outcomes`, `questions`, `deployers` and `feeScale`, in Hyperliquid's own shape, which Hyperliquid may extend. */
6101
+ readonly outcome_meta: unknown;
6102
+ /** @description Hyperliquid's info `outcomeTemplates` answer from the same catalog revision, unchanged. */
6103
+ readonly outcome_templates: readonly unknown[];
6104
+ };
5858
6105
  /** @description [step, mark, steps]: steps consecutive steps of step_seconds starting at step, each ending at mark. */
5859
6106
  readonly PerpMarkRun: readonly [
5860
6107
  number,
@@ -5894,15 +6141,6 @@ export type components = {
5894
6141
  */
5895
6142
  readonly state: "CURRENT" | "UNKNOWN" | "STALE";
5896
6143
  };
5897
- readonly Checkpoint: {
5898
- /** @description Last HyperEVM block the vault projection has indexed; the read reflects chain state up to and including this block. */
5899
- readonly block_number: components["schemas"]["UInt64String"];
5900
- /**
5901
- * @description CURRENT when the projection is within 32 blocks of a chain head observed in the last two minutes; STALE when it lags, so figures may be behind.
5902
- * @enum {unknown}
5903
- */
5904
- readonly projection_state: "CURRENT" | "STALE";
5905
- };
5906
6144
  /**
5907
6145
  * @description Why an operation ended EXPIRED_UNEXECUTED; nothing it would have done happened. INSUFFICIENT_CASH: an ACCEPT whose taker's money (free vault Cash, or the wallet USDC its funding draws) did not cover the stake when it was to execute, for a funded accept by two seconds after its `fund_by`; the RFQ fails with the same `terminal_reason`. DEADLINE_BEFORE_CLAIM: the venue reached it too late, with too little of its signed deadline left to sign and send it. AUTHORIZATION_TOO_CLOSE: when the venue took it, the chain's clock left too little of its signed deadline to send it. SIGNER_QUOTE_LIFE: its signed deadline could not cover the wait for its place in the sender's queue. SIMULATION_REVERTED: simulated before sending, the vault would have rejected it, for a reason other than INSUFFICIENT_CASH. QUARANTINE_EXPIRED: it was held for review after the signer refused it or its retries ran out, and its signed deadline passed meanwhile. ATTESTATION_EXPIRED: a maker's self-funded attestation expired before its signed transaction arrived. For an ACCEPT every reason but INSUFFICIENT_CASH fails the RFQ as EXPIRED_UNEXECUTED.
5908
6146
  * @enum {string}
@@ -5970,34 +6208,6 @@ export type components = {
5970
6208
  /** @description The account's cash in vaults running off, one item per vault holding any or with a claim in flight, outside amount: it is owned but never spendable here. A Totalis embedded wallet's moves to its HyperCore spot balance automatically. Any other wallet claims it to its own wallet, part of Cash, with one Exit signed for that vault and sent with Create run-off claim; a sponsored claim must move at least 1 USDC (1000000), so offer it only when state is CURRENT, vault_free is at least that and claim is null. Smaller amounts stay in the vault. Empty when no vault is running off. */
5971
6209
  readonly run_off: readonly components["schemas"]["RunOffCash"][];
5972
6210
  };
5973
- /** @description What the account holds at Totalis at one HyperEVM block, in atomic USDC (6 decimals, "1000000" = 1 USDC): wallet USDC, its cash in the vault and in vaults running off, what it paid for its open positions, and the profit it can still claim, net of the fee. Every amount is read from the chain at block_number. HyperCore balances are not included; read them from Hyperliquid. */
5974
- readonly AccountValue: {
5975
- /** @description The account's wallet, lowercase. */
5976
- readonly account: components["schemas"]["LowercaseNonZeroAddress"];
5977
- /**
5978
- * @description CURRENT when every amount was read at block_number; UNKNOWN when the chain could not be read, or the projection did not reach that block in time, and every amount is null. Read again later.
5979
- * @enum {unknown}
5980
- */
5981
- readonly state: "CURRENT" | "UNKNOWN";
5982
- /** @description The account's value: wallet_usdc + vault_cash + run_off_cash + open_cost + claimable_profit. Null unless state is CURRENT. */
5983
- readonly amount: components["schemas"]["$defs-Amount"] | null;
5984
- /** @description The HyperEVM block every amount was read at. Null unless state is CURRENT. */
5985
- readonly block_number: components["schemas"]["UInt64String"] | null;
5986
- /** @description USDC in the account's wallet on HyperEVM, including any already committed to a Totalis withdrawal or stake that has not landed. Null unless state is CURRENT. */
5987
- readonly wallet_usdc: components["schemas"]["$defs-Amount"] | null;
5988
- /** @description All the account's cash in the vault, including any held for an operation that has not landed, so it can exceed GET /v1/me/balances' free vault cash. Null unless state is CURRENT. */
5989
- readonly vault_cash: components["schemas"]["$defs-Amount"] | null;
5990
- /** @description The account's cash in vaults running off, all together; GET /v1/me/balances lists it per vault. Null unless state is CURRENT. */
5991
- readonly run_off_cash: components["schemas"]["$defs-Amount"] | null;
5992
- /** @description How many positions the account holds that have not settled: OPEN and AWAITING_SETTLEMENT in GET /v1/me/positions. Null unless state is CURRENT. */
5993
- readonly open_positions: number | null;
5994
- /** @description What the account paid for those positions: the sum of their acquisition_cost. Null unless state is CURRENT. */
5995
- readonly open_cost: components["schemas"]["$defs-Amount"] | null;
5996
- /** @description What claiming every SETTLED_UNCLAIMED position would pay the account: each one's unclaimed_profit minus floor(unclaimed_profit * fee_bps / 10000). Null unless state is CURRENT. */
5997
- readonly claimable_profit: components["schemas"]["$defs-Amount"] | null;
5998
- /** @description The vault projection the read used to find the account's positions. When state is CURRENT it has reached block_number. */
5999
- readonly checkpoint: components["schemas"]["Checkpoint"];
6000
- };
6001
6211
  readonly OperationList: {
6002
6212
  /** @description Operations newest first by creation time. */
6003
6213
  readonly operations: readonly components["schemas"]["Operation"][];
@@ -6640,6 +6850,16 @@ export type components = {
6640
6850
  * @example 1209
6641
6851
  */
6642
6852
  readonly OutcomeId: components["schemas"]["UInt32String"];
6853
+ /**
6854
+ * @description 1 to 100 HIP-4 outcome IDs as decimal strings, comma-separated, strictly ascending, so one set of outcomes is always one URL. Any other order, a repeat or an ID above 4294967295 is 400 INVALID_QUERY.
6855
+ * @example 35280,36412
6856
+ */
6857
+ readonly OutcomeIds: string;
6858
+ /**
6859
+ * @description The latest `catalog_generation` a market or browse read named; the answer is that generation or a later one.
6860
+ * @example 20291
6861
+ */
6862
+ readonly MinCatalogGeneration: components["schemas"]["PositiveInt64"];
6643
6863
  /**
6644
6864
  * @description Browse contract of the detail. 4 adds game, the market's game with up to 256 current members, estimated_live_until and scoreboard, the in-play window end and live game reading of the market's matchup, and series_id for IPO ladder members; 2, 3 or omitted return the earlier detail. Only this query parameter selects it, so a browser read needs no CORS preflight; the X-Totalis-Browse-Contract header is ignored on this route. Repeated, malformed or other values return 400 UNSUPPORTED_BROWSE_CONTRACT.
6645
6865
  * @example 4
@@ -6881,6 +7101,10 @@ export type components = {
6881
7101
  headers: {
6882
7102
  /** @description Seconds to wait before resending the same request */
6883
7103
  readonly RetryAfter: number;
7104
+ /** @description Strong validator of the whole answer; send it as `If-None-Match` to get 304 when the answer is unchanged */
7105
+ readonly MarketDisplayETag: string;
7106
+ /** @description Strong validator of the answer; send it as `If-None-Match` to get 304 when the answer is unchanged */
7107
+ readonly OutcomeMetadataETag: string;
6884
7108
  /** @description Always `no-store`; account data must not be cached. */
6885
7109
  readonly CacheControl: "no-store";
6886
7110
  /** @description The response varies by the Authorization header, so shared caches must not reuse it across credentials. */
@@ -7842,7 +8066,11 @@ export interface operations {
7842
8066
  readonly path?: never;
7843
8067
  readonly cookie?: never;
7844
8068
  };
7845
- readonly requestBody?: never;
8069
+ readonly requestBody?: {
8070
+ readonly content: {
8071
+ readonly "application/json": components["schemas"]["BrowserDevice"];
8072
+ };
8073
+ };
7846
8074
  readonly responses: {
7847
8075
  /** @description Account wallet is bound */
7848
8076
  readonly 204: {
@@ -8144,6 +8372,43 @@ export interface operations {
8144
8372
  readonly 503: components["responses"]["Unavailable"];
8145
8373
  };
8146
8374
  };
8375
+ readonly getPartnerAccountValue: {
8376
+ readonly parameters: {
8377
+ readonly query?: never;
8378
+ readonly header?: never;
8379
+ readonly path: {
8380
+ /**
8381
+ * @description The wallet you admitted, still signing for the account it opened.
8382
+ * @example 0x8ba1f109551bD432803012645Ac136ddd64DBA72
8383
+ */
8384
+ readonly wallet: components["schemas"]["Address"];
8385
+ };
8386
+ readonly cookie?: never;
8387
+ };
8388
+ readonly requestBody?: never;
8389
+ readonly responses: {
8390
+ /** @description The account's value and its parts. When state is UNKNOWN every amount is null; read again later. No caching. */
8391
+ readonly 200: {
8392
+ headers: {
8393
+ readonly [name: string]: unknown;
8394
+ };
8395
+ content: {
8396
+ readonly "application/json": components["schemas"]["AccountValue"];
8397
+ };
8398
+ };
8399
+ /** @description `INVALID_REQUEST`: wallet is not a 0x-prefixed 20-byte hex address. */
8400
+ readonly 400: components["responses"]["Error"];
8401
+ /** @description The partner server key is missing, unknown or revoked, or your partner is suspended. */
8402
+ readonly 401: components["responses"]["Error"];
8403
+ /** @description Any credential but a partner server key, or any request with an `Origin`, is refused: read account values from your server. */
8404
+ readonly 403: components["responses"]["Error"];
8405
+ /** @description `NOT_FOUND`: you did not admit this wallet, it has no account yet, or it no longer signs for the account it opened. A wallet another partner admitted, or no partner, answers the same. */
8406
+ readonly 404: components["responses"]["Error"];
8407
+ readonly 429: components["responses"]["RateLimited"];
8408
+ /** @description The value is temporarily unavailable; resend after `Retry-After`. */
8409
+ readonly 503: components["responses"]["Unavailable"];
8410
+ };
8411
+ };
8147
8412
  readonly recordAcquisition: {
8148
8413
  readonly parameters: {
8149
8414
  readonly query?: never;
@@ -8404,7 +8669,7 @@ export interface operations {
8404
8669
  };
8405
8670
  readonly requestBody: {
8406
8671
  readonly content: {
8407
- readonly "application/json": Record<string, never>;
8672
+ readonly "application/json": components["schemas"]["BrowserDevice"];
8408
8673
  };
8409
8674
  };
8410
8675
  readonly responses: {
@@ -11662,6 +11927,82 @@ export interface operations {
11662
11927
  readonly 503: components["responses"]["Unavailable"];
11663
11928
  };
11664
11929
  };
11930
+ readonly getMarketDisplay: {
11931
+ readonly parameters: {
11932
+ readonly query: {
11933
+ /**
11934
+ * @description 1 to 100 HIP-4 outcome IDs as decimal strings, comma-separated, strictly ascending, so one set of outcomes is always one URL. Any other order, a repeat or an ID above 4294967295 is 400 INVALID_QUERY.
11935
+ * @example 35280,36412
11936
+ */
11937
+ readonly outcome_ids: components["parameters"]["OutcomeIds"];
11938
+ };
11939
+ readonly header?: never;
11940
+ readonly path?: never;
11941
+ readonly cookie?: never;
11942
+ };
11943
+ readonly requestBody?: never;
11944
+ readonly responses: {
11945
+ /** @description Each asked outcome Totalis recorded with its English title, its native definition exactly as Hyperliquid listed it, and finished pictures for each place it is drawn, resolved from the published imagery manifest. Pictures are decoration: they never carry prices, state or results. IDs Totalis holds no definition of are in `not_recorded`; IDs newer than every outcome it recorded are in `pending`. */
11946
+ readonly 200: {
11947
+ headers: {
11948
+ /** @description Shared caches may reuse an answer with an imagery publication and nothing pending for 60 seconds; any other answer is no-store. */
11949
+ readonly "Cache-Control"?: "public, max-age=60" | "no-store";
11950
+ readonly ETag: components["headers"]["MarketDisplayETag"];
11951
+ readonly [name: string]: unknown;
11952
+ };
11953
+ content: {
11954
+ readonly "application/json": components["schemas"]["MarketDisplay"];
11955
+ };
11956
+ };
11957
+ /** @description The answer matches the `If-None-Match` ETag. */
11958
+ readonly 304: {
11959
+ headers: {
11960
+ readonly [name: string]: unknown;
11961
+ };
11962
+ content?: never;
11963
+ };
11964
+ readonly 400: components["responses"]["Error"];
11965
+ readonly 503: components["responses"]["Unavailable"];
11966
+ };
11967
+ };
11968
+ readonly getOutcomeMetadata: {
11969
+ readonly parameters: {
11970
+ readonly query?: {
11971
+ /**
11972
+ * @description The latest `catalog_generation` a market or browse read named; the answer is that generation or a later one.
11973
+ * @example 20291
11974
+ */
11975
+ readonly min_generation?: components["parameters"]["MinCatalogGeneration"];
11976
+ };
11977
+ readonly header?: never;
11978
+ readonly path?: never;
11979
+ readonly cookie?: never;
11980
+ };
11981
+ readonly requestBody?: never;
11982
+ readonly responses: {
11983
+ /** @description The current catalog generation's outcome metadata */
11984
+ readonly 200: {
11985
+ headers: {
11986
+ /** @description Shared caches may reuse an answer naming exactly the min_generation asked for for 5 seconds; any other answer is no-store. */
11987
+ readonly "Cache-Control"?: "public, max-age=5" | "no-store";
11988
+ readonly ETag: components["headers"]["OutcomeMetadataETag"];
11989
+ readonly [name: string]: unknown;
11990
+ };
11991
+ content: {
11992
+ readonly "application/json": components["schemas"]["OutcomeMetadata"];
11993
+ };
11994
+ };
11995
+ /** @description The answer matches the `If-None-Match` ETag. */
11996
+ readonly 304: {
11997
+ headers: {
11998
+ readonly [name: string]: unknown;
11999
+ };
12000
+ content?: never;
12001
+ };
12002
+ readonly 400: components["responses"]["Error"];
12003
+ readonly 503: components["responses"]["Unavailable"];
12004
+ };
12005
+ };
11665
12006
  readonly getPerpMarks: {
11666
12007
  readonly parameters: {
11667
12008
  readonly query: {