@totalis/hip4-client 0.99.0 → 0.101.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;
@@ -766,7 +766,7 @@ export type paths = {
766
766
  readonly put?: never;
767
767
  /**
768
768
  * Unlock the golden ticket
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. 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`.
770
770
  */
771
771
  readonly post: operations["unlockGolden"];
772
772
  readonly delete?: never;
@@ -1095,6 +1095,166 @@ export type paths = {
1095
1095
  readonly patch?: never;
1096
1096
  readonly trace?: never;
1097
1097
  };
1098
+ readonly "/v1/social/people/{username}": {
1099
+ readonly parameters: {
1100
+ readonly query?: never;
1101
+ readonly header?: never;
1102
+ readonly path?: never;
1103
+ readonly cookie?: never;
1104
+ };
1105
+ /**
1106
+ * Get a person's profile and totals
1107
+ * @description A person's profile: who they are, their follower count, whether the reader follows them, their all-time volume and what everything they hold is worth now, both as of one ledger cut. Volume is null while the holdings ledger does not yet write their account wallet's trades: it starts within about a minute of the wallet being linked, and longer while the identity database is unreadable. Every figure is their account wallet's, the same attribution as their positions, activity and GET /v1/social/leaderboard, so they add up. Their P&L is GET /v1/traders/{username}/pnl, Portfolio's. Anyone reads it, signed out or with any credential, from any origin; a supplied credential must still authenticate. A signed-out answer is the same for everyone and is cached for 30 seconds. A username with no public profile, whether private, unknown or held by an account that is not ACTIVE, is 404 NOT_FOUND, signed in or not. 503 SOURCE_UNAVAILABLE while the holdings ledger has not caught up.
1108
+ */
1109
+ readonly get: operations["getSocialPerson"];
1110
+ readonly put?: never;
1111
+ readonly post?: never;
1112
+ readonly delete?: never;
1113
+ readonly options?: never;
1114
+ readonly head?: never;
1115
+ readonly patch?: never;
1116
+ readonly trace?: never;
1117
+ };
1118
+ readonly "/v1/social/people/{username}/positions": {
1119
+ readonly parameters: {
1120
+ readonly query?: never;
1121
+ readonly header?: never;
1122
+ readonly path?: never;
1123
+ readonly cookie?: never;
1124
+ };
1125
+ /**
1126
+ * List what a person holds now
1127
+ * @description Everything a person holds now, newest opened first, a page at a time: one position per HyperCore outcome their account wallet holds shares of, on its net side, and each Combo ticket it holds or that settled to it with a residual still to claim, a one-leg ticket included. Positions under $1 of cost are listed too, so the list adds up to the profile's positions value. Pages are read live, not as a snapshot of the first page: each is what they hold when it is read, so a position closed between pages leaves the later ones and the shares and values a page shows are current; a position keeps its place in the order, so paging never repeats one or skips one still held. Poll the first page for changes. Anyone reads it, as GET /v1/social/people/{username}; the same caching and 404 apply. 503 SOURCE_UNAVAILABLE while the holdings ledger has not caught up.
1128
+ */
1129
+ readonly get: operations["listSocialPositions"];
1130
+ readonly put?: never;
1131
+ readonly post?: never;
1132
+ readonly delete?: never;
1133
+ readonly options?: never;
1134
+ readonly head?: never;
1135
+ readonly patch?: never;
1136
+ readonly trace?: never;
1137
+ };
1138
+ readonly "/v1/social/people/{username}/positions/{position}": {
1139
+ readonly parameters: {
1140
+ readonly query?: never;
1141
+ readonly header?: never;
1142
+ readonly path?: never;
1143
+ readonly cookie?: never;
1144
+ };
1145
+ /**
1146
+ * Get one of a person's positions
1147
+ * @description One person's position, everything the position drawer shows in one read. position is an outcome ID for a HyperCore position or a ticket ID for a Combo. For an outcome, episode names one run of the position from its first share to none left (a feed item names its own); without it the answer is the open one, else the newest that closed. A person who never traded the outcome, an episode that is not theirs, or a ticket their account wallet never held is 404 NOT_FOUND. An outcome on which the holdings ledger holds no episode of theirs is 404 NOT_FOUND too. Everything about an episode is what the ledger stored as it applied their rows; its trades are its newest 100, with the stored count. Anyone reads it, as GET /v1/social/people/{username}; the same caching and 404 apply. 503 SOURCE_UNAVAILABLE while the holdings ledger has not caught up.
1148
+ */
1149
+ readonly get: operations["getSocialPosition"];
1150
+ readonly put?: never;
1151
+ readonly post?: never;
1152
+ readonly delete?: never;
1153
+ readonly options?: never;
1154
+ readonly head?: never;
1155
+ readonly patch?: never;
1156
+ readonly trace?: never;
1157
+ };
1158
+ readonly "/v1/social/people/{username}/activity": {
1159
+ readonly parameters: {
1160
+ readonly query?: never;
1161
+ readonly header?: never;
1162
+ readonly path?: never;
1163
+ readonly cookie?: never;
1164
+ };
1165
+ /**
1166
+ * List what a person did
1167
+ * @description A person's activity, newest first, as feed items (GET /v1/social/feed defines them): every position of theirs, finished markets included, except bursts on positions under $1 of cost. Paging as GET /v1/social/feed. Anyone reads it, as GET /v1/social/people/{username}; the same caching and 404 apply. 503 SOURCE_UNAVAILABLE while the holdings ledger has not caught up or does not yet write the person's account wallet, rather than an empty page.
1168
+ */
1169
+ readonly get: operations["listSocialActivity"];
1170
+ readonly put?: never;
1171
+ readonly post?: never;
1172
+ readonly delete?: never;
1173
+ readonly options?: never;
1174
+ readonly head?: never;
1175
+ readonly patch?: never;
1176
+ readonly trace?: never;
1177
+ };
1178
+ readonly "/v1/social/feed": {
1179
+ readonly parameters: {
1180
+ readonly query?: never;
1181
+ readonly header?: never;
1182
+ readonly path?: never;
1183
+ readonly cookie?: never;
1184
+ };
1185
+ /**
1186
+ * List what everyone is trading
1187
+ * @description Everyone's feed, newest first: what people with a public profile buy, sell and open, one item per person per position per burst. A burst is one person's buys, or sales, of one side of one position in one episode, each within 30 minutes of the one before, as the holdings ledger stores it; a Combo opened, received or cashed out is an item of its own. A burst still growing keeps its id and moves to the top with its newest trade, so a reader polling the first page replaces an item it holds by id. A person whose account wallet the ledger does not yet write has no bursts here until it does, usually within a minute of the wallet being linked. Left out: the house market maker, makers, API operators and the promotion accounts (the leaderboard's known roles); bursts on a position that never cost $1: its episode has paid under $1 in all, fees included; and positions on markets that no longer trade, read at the time of the read: a HyperCore position whose market is not TRADING, and a Combo no longer open or with a leg lost. Pages are read live: the cursor holds only where the walk stopped in the bursts and in the Combo moments, and each page reads below it as the sources stand then. Later pages never repeat an item; a burst that grows after the walk passed it, listed or not, moves above the cursor and shows on a fresh first page under the same id; poll the first page for new ones. A page reads a bounded number of rows, however long a burst or a history is, and this feed leaves out what no longer trades after reading, so a page may hold fewer than limit, even none, while has_more is true. Combo moments are as the vault index holds them at the read, not bound by the ledger cut. Anyone reads it, signed out or with any credential, from any origin; a supplied credential must still authenticate. A signed-out answer is the same for everyone and is cached for 30 seconds. 503 SOURCE_UNAVAILABLE while the holdings ledger has not caught up or market data cannot say which markets trade.
1188
+ */
1189
+ readonly get: operations["listSocialFeed"];
1190
+ readonly put?: never;
1191
+ readonly post?: never;
1192
+ readonly delete?: never;
1193
+ readonly options?: never;
1194
+ readonly head?: never;
1195
+ readonly patch?: never;
1196
+ readonly trace?: never;
1197
+ };
1198
+ readonly "/v1/me/social/feed": {
1199
+ readonly parameters: {
1200
+ readonly query?: never;
1201
+ readonly header?: never;
1202
+ readonly path?: never;
1203
+ readonly cookie?: never;
1204
+ };
1205
+ /**
1206
+ * List what the people I follow are trading
1207
+ * @description The feed of the people the signed-in account follows (GET /v1/me/follows), items and paging as GET /v1/social/feed, finished markets and makers included: the reader chose them. Bursts on positions under $1 of cost are left out, and so, until the holdings ledger writes them, are the bursts of a person whose account wallet it does not write yet. Only a signed-in participant session reads it; it is never stored by a shared cache.
1208
+ */
1209
+ readonly get: operations["listFollowingFeed"];
1210
+ readonly put?: never;
1211
+ readonly post?: never;
1212
+ readonly delete?: never;
1213
+ readonly options?: never;
1214
+ readonly head?: never;
1215
+ readonly patch?: never;
1216
+ readonly trace?: never;
1217
+ };
1218
+ readonly "/v1/me/social/following-positions": {
1219
+ readonly parameters: {
1220
+ readonly query?: never;
1221
+ readonly header?: never;
1222
+ readonly path?: never;
1223
+ readonly cookie?: never;
1224
+ };
1225
+ /**
1226
+ * List the people I follow who hold these markets
1227
+ * @description For the outcomes asked (a market page's), each person the signed-in account follows who holds any of them now, with those positions, most recently opened first. Positions under $1 of cost are left out. People holding none are not listed, so an empty list means none of them is in. Only a signed-in participant session reads it; it is never stored by a shared cache. 503 SOURCE_UNAVAILABLE while the holdings ledger has not caught up.
1228
+ */
1229
+ readonly get: operations["listFollowingPositions"];
1230
+ readonly put?: never;
1231
+ readonly post?: never;
1232
+ readonly delete?: never;
1233
+ readonly options?: never;
1234
+ readonly head?: never;
1235
+ readonly patch?: never;
1236
+ readonly trace?: never;
1237
+ };
1238
+ readonly "/v1/social/leaderboard": {
1239
+ readonly parameters: {
1240
+ readonly query?: never;
1241
+ readonly header?: never;
1242
+ readonly path?: never;
1243
+ readonly cookie?: never;
1244
+ };
1245
+ /**
1246
+ * Get one page of the leaderboard
1247
+ * @description One page of 25 ranks of people with a public profile, by volume or P&L over the range, and the reader's own rank wherever it falls. Volume is GET /v1/social/people/{username}'s over the range: their account wallet's buys and sells and the Combos it opened; only people who traded rank, and a person whose volume is unknown (null on the profile) is left out. P&L is GET /v1/traders/{username}/pnl's change over the range (ALL: since it began), and everyone it values ranks, losses included. Left out: the leaderboard's known roles (house market maker, makers, API operators, promotion accounts) and anyone whose profile is not public at the time of the read, even in a ranking read while it was; the ranks below close up. Ties rank by username. A ranking is read every five minutes and kept for an hour; as_of says which one a page comes from. Pass it back as as_of for the later pages, so every page and the reader's rank come from that ranking; without it the answer is the newest. An as_of no longer kept is 409 CURSOR_EXPIRED: read the first page again. Until the first read, and once the newest is an hour old, the answer is 503 DEPENDENCY_STALE; a deployment with the leaderboard off, or P&L not ranked, answers 503 CONTRACT_UNAVAILABLE. Only a signed-in participant session reads it: anonymous calls and API keys are refused.
1248
+ */
1249
+ readonly get: operations["getSocialLeaderboard"];
1250
+ readonly put?: never;
1251
+ readonly post?: never;
1252
+ readonly delete?: never;
1253
+ readonly options?: never;
1254
+ readonly head?: never;
1255
+ readonly patch?: never;
1256
+ readonly trace?: never;
1257
+ };
1098
1258
  readonly "/v1/me/follows": {
1099
1259
  readonly parameters: {
1100
1260
  readonly query?: never;
@@ -2278,6 +2438,46 @@ export type paths = {
2278
2438
  readonly patch?: never;
2279
2439
  readonly trace?: never;
2280
2440
  };
2441
+ readonly "/v1/market-display": {
2442
+ readonly parameters: {
2443
+ readonly query?: never;
2444
+ readonly header?: never;
2445
+ readonly path?: never;
2446
+ readonly cookie?: never;
2447
+ };
2448
+ /**
2449
+ * Get market display
2450
+ * @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.
2451
+ */
2452
+ readonly get: operations["getMarketDisplay"];
2453
+ readonly put?: never;
2454
+ readonly post?: never;
2455
+ readonly delete?: never;
2456
+ readonly options?: never;
2457
+ readonly head?: never;
2458
+ readonly patch?: never;
2459
+ readonly trace?: never;
2460
+ };
2461
+ readonly "/v1/outcome-metadata": {
2462
+ readonly parameters: {
2463
+ readonly query?: never;
2464
+ readonly header?: never;
2465
+ readonly path?: never;
2466
+ readonly cookie?: never;
2467
+ };
2468
+ /**
2469
+ * Get outcome metadata
2470
+ * @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.
2471
+ */
2472
+ readonly get: operations["getOutcomeMetadata"];
2473
+ readonly put?: never;
2474
+ readonly post?: never;
2475
+ readonly delete?: never;
2476
+ readonly options?: never;
2477
+ readonly head?: never;
2478
+ readonly patch?: never;
2479
+ readonly trace?: never;
2480
+ };
2281
2481
  readonly "/v1/perp-marks": {
2282
2482
  readonly parameters: {
2283
2483
  readonly query?: never;
@@ -3508,8 +3708,18 @@ export type components = {
3508
3708
  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";
3509
3709
  readonly Hash32: string;
3510
3710
  readonly Uint256: string;
3711
+ /**
3712
+ * BrowserDevice
3713
+ * @description Optional facts about the browser sending the request; `{}` when it has none.
3714
+ */
3715
+ readonly BrowserDevice: {
3716
+ /** @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. */
3717
+ readonly device_id?: string;
3718
+ };
3511
3719
  /** GoldenTicket */
3512
3720
  readonly GoldenTicket: {
3721
+ /** @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. */
3722
+ readonly not_eligible: boolean;
3513
3723
  /**
3514
3724
  * @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.
3515
3725
  * @enum {string}
@@ -3638,7 +3848,7 @@ export type components = {
3638
3848
  * @description Stable HTTP error code. Each code has one HTTP status and one retry value.
3639
3849
  * @enum {string}
3640
3850
  */
3641
- 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";
3851
+ 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";
3642
3852
  readonly FieldViolation: {
3643
3853
  /**
3644
3854
  * @description REQUIRED: the input is missing. INVALID: it is present but malformed or out of range. UNEXPECTED: the input is not accepted here.
@@ -4733,6 +4943,11 @@ export type components = {
4733
4943
  };
4734
4944
  };
4735
4945
  };
4946
+ /**
4947
+ * @description Also answer the page's market display in display, so a client names and pictures its cards from this one read. Send it only as true; any other value returns 400 INVALID_QUERY. It is no filter: a cursor neither binds nor needs it.
4948
+ * @constant
4949
+ */
4950
+ readonly DisplayQuery: true;
4736
4951
  /** @enum {string} */
4737
4952
  readonly MarketState: "ACTIVE" | "CLOSED" | "UNSUPPORTED";
4738
4953
  readonly Category: ("Crypto" | "Economics" | "Entertainment" | "Esports" | "Finance" | "Politics" | "Sports" | "Tech" | "Weather") | null;
@@ -5120,6 +5335,133 @@ export type components = {
5120
5335
  /** @description End of a scheduled single contest's in-play window [date_at, estimated_live_until): its scheduled start plus its league's reviewed usual game length, unless the live game feed shows the game in play (then at least 15 minutes past publication, republished before it closes, until the game ends) or over (then the moment it was first seen over, or date_at if that was earlier). Never a trading cutoff, closure or settlement. Present before the contest starts. Null for anything else: tournaments, series, leagues without a reviewed length, or markets that disagree on the start. */
5121
5336
  readonly estimated_live_until: components["schemas"]["$defs-Timestamp"] | null;
5122
5337
  };
5338
+ readonly OutcomeNativeQuestion: {
5339
+ /** @description Hyperliquid question ID; null for an outcome known only from a settlement record that names its question without the ID. */
5340
+ readonly native_question_id: components["schemas"]["RealQuestionId"] | null;
5341
+ /** @description Native question name, for example template:sportsContestResult. */
5342
+ readonly name: string;
5343
+ /** @description Native question description. */
5344
+ readonly description: string;
5345
+ };
5346
+ /** @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. */
5347
+ readonly OutcomeNative: {
5348
+ /** @description Native outcome name, for example template:sportsContestWinner or Recurring. */
5349
+ readonly name: string;
5350
+ /** @description Native outcome description; a template instance holds its keyword values as key:value pairs separated by a vertical bar. */
5351
+ readonly description: string;
5352
+ /** @description Native side names, Yes then No, as listed (template:Yes, template:{shortNameA}); null where the copy Totalis kept predates side names. */
5353
+ readonly side_names: readonly string[] | null;
5354
+ /** @description The question the outcome belongs to, from the same catalog; null for a standalone outcome. */
5355
+ readonly question: components["schemas"]["OutcomeNativeQuestion"] | null;
5356
+ };
5357
+ /** @description An imagery subject's key: its kind, a colon and its normalized name, such as team:detroit lions. */
5358
+ readonly SubjectKey: string;
5359
+ readonly PictureSubject: {
5360
+ /**
5361
+ * @description SUBJECT: a subject described once in the answer's `subjects`.
5362
+ * @constant
5363
+ */
5364
+ readonly type: "SUBJECT";
5365
+ /** @description The subject's key in `subjects`. */
5366
+ readonly key: components["schemas"]["SubjectKey"];
5367
+ };
5368
+ readonly PictureGlyph: {
5369
+ /**
5370
+ * @description GLYPH: a mark of the client's own, never artwork.
5371
+ * @constant
5372
+ */
5373
+ readonly type: "GLYPH";
5374
+ /**
5375
+ * @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.
5376
+ * @enum {string}
5377
+ */
5378
+ readonly glyph: "DRAW" | "TOTAL";
5379
+ };
5380
+ readonly Picture: components["schemas"]["PictureSubject"] | components["schemas"]["PictureGlyph"];
5381
+ /** @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. */
5382
+ readonly OutcomePictures: {
5383
+ /** @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. */
5384
+ readonly market: components["schemas"]["Picture"] | null;
5385
+ /** @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. */
5386
+ readonly pick: readonly (components["schemas"]["Picture"] | null)[];
5387
+ /** @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. */
5388
+ readonly pick_no_side: components["schemas"]["Picture"] | null;
5389
+ /** @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. */
5390
+ readonly own: readonly (components["schemas"]["Picture"] | null)[];
5391
+ /** @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. */
5392
+ readonly row: components["schemas"]["Picture"] | null;
5393
+ /** @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. */
5394
+ readonly teams: readonly (components["schemas"]["PictureSubject"] | null)[] | null;
5395
+ };
5396
+ readonly OutcomeDisplay: {
5397
+ /** @description Hyperliquid outcome ID. */
5398
+ readonly outcome_id: components["schemas"]["UInt32String"];
5399
+ /** @description English display title, the market's `title`. */
5400
+ readonly title: string;
5401
+ /** @description The outcome as Hyperliquid listed it, for a client that names markets itself. */
5402
+ readonly native: components["schemas"]["OutcomeNative"];
5403
+ /** @description Finished pictures for each place the outcome is drawn. */
5404
+ readonly pictures: components["schemas"]["OutcomePictures"];
5405
+ };
5406
+ readonly PictureVariant: {
5407
+ /**
5408
+ * @description Width and height in pixels.
5409
+ * @enum {integer}
5410
+ */
5411
+ readonly size: 64 | 128 | 256;
5412
+ /** @description Public WebP image URL. */
5413
+ readonly url: string;
5414
+ };
5415
+ readonly OklchColor: {
5416
+ /** @description Oklch lightness, 0 to 1. */
5417
+ readonly l: number;
5418
+ /** @description Oklch chroma. */
5419
+ readonly c: number;
5420
+ /** @description Hue in degrees. */
5421
+ readonly h: number;
5422
+ };
5423
+ readonly SubjectImage: {
5424
+ /**
5425
+ * @description ICON: a logo inset on a transparent square, drawn whole. PHOTO: a photo that fills its circle.
5426
+ * @enum {string}
5427
+ */
5428
+ readonly fit: "ICON" | "PHOTO";
5429
+ /** @description Square WebP renditions at 64, 128 and 256 pixels, in that order. Their URLs never change content. */
5430
+ readonly variants: readonly components["schemas"]["PictureVariant"][];
5431
+ /** @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. */
5432
+ readonly palette?: readonly components["schemas"]["OklchColor"][];
5433
+ };
5434
+ readonly Subject: {
5435
+ /** @description The subject's name, for alternative text. */
5436
+ readonly label: string;
5437
+ /** @description The subject's short mark, drawn on a coin when it has no image, while its image loads or when it fails. */
5438
+ readonly monogram: string;
5439
+ /** @description The subject's artwork; null for a known subject without any, drawn as its coin. */
5440
+ readonly image: components["schemas"]["SubjectImage"] | null;
5441
+ };
5442
+ /** @description Each subject a picture of the answer names, once, by key. */
5443
+ readonly Subjects: {
5444
+ readonly [key: string]: components["schemas"]["Subject"];
5445
+ };
5446
+ /** @description The market display of the page's markets: what GET /v1/market-display answers for them, for every market the page lists (up to its 500). A market missing from outcomes, such as one from a publication stored before cards carried their display, is named and pictured by GET /v1/market-display; not_recorded and pending are always empty. */
5447
+ readonly PageDisplay: {
5448
+ /**
5449
+ * @description Hyperliquid network the outcomes are listed on.
5450
+ * @enum {string}
5451
+ */
5452
+ readonly network: "HYPEREVM_TESTNET" | "HYPEREVM_MAINNET";
5453
+ /** @description The imagery manifest publication every subject was resolved from; null while the reader holds no manifest, when every picture that would name a subject is null and subjects is empty. */
5454
+ readonly imagery_publication: string | null;
5455
+ /** @description The page's markets that its publication stored display for, ascending by outcome ID. */
5456
+ readonly outcomes: readonly components["schemas"]["OutcomeDisplay"][];
5457
+ readonly subjects: components["schemas"]["Subjects"];
5458
+ /** @description Always empty: every listed market is recorded. */
5459
+ readonly not_recorded: readonly components["schemas"]["UInt32String"][];
5460
+ /** @description Always empty: every listed market is recorded. */
5461
+ readonly pending: readonly components["schemas"]["UInt32String"][];
5462
+ /** @description The entries of Hyperliquid's outcomeTemplates answer, unchanged, that these outcomes and their questions are instances of, ascending by id. */
5463
+ readonly templates: readonly unknown[];
5464
+ };
5123
5465
  /** Format: uint256-decimal */
5124
5466
  readonly Uint: string;
5125
5467
  /** @description Entry terms a maker quotes; they mirror the signed Quote and TakerAccept structs field for field. */
@@ -5163,45 +5505,399 @@ export type components = {
5163
5505
  /** @description true to show the X handle on the public trader profile, false to hide it. */
5164
5506
  readonly shown: boolean;
5165
5507
  };
5166
- /** @enum {unknown} */
5167
- readonly OperationState: "QUEUED" | "IN_FLIGHT" | "RETRYABLE" | "UNKNOWN" | "COMMITTED" | "REVERTED" | "EXPIRED_UNEXECUTED";
5168
- /** @description 1 to 1000 characters after surrounding whitespace is trimmed. Newlines are kept; other control characters are refused. */
5169
- readonly CommentBody: string;
5170
- /** @description A HIP-4 outcome side of the comment's market the author's account wallet holds on HyperCore now, as GET /v1/traders/{username} lists it without opened_at. */
5171
- readonly CommentSingle: {
5172
- /** @description HIP-4 outcome ID held, as a decimal string. */
5508
+ /** @description A person's profile: the Person fields and their totals. */
5509
+ readonly Profile: {
5510
+ readonly username: components["schemas"]["Username"];
5511
+ /** @description The seed clients draw the person's generated avatar from. */
5512
+ readonly avatar_seed: components["schemas"]["AvatarSeed"];
5513
+ /** @description Their X picture; absent when there is none. */
5514
+ readonly picture_url?: components["schemas"]["XPictureUrl"];
5515
+ /** @description Their Genesis Account badge; absent when not earned. */
5516
+ readonly genesis?: components["schemas"]["$defs-Timestamp"];
5517
+ /** @description Their X handle; absent when there is none or they hid it. */
5518
+ readonly x_username?: components["schemas"]["XUsername"];
5519
+ /** @description When they turned the profile on. */
5520
+ readonly public_since: components["schemas"]["$defs-Timestamp"];
5521
+ /** @description How many accounts follow them. */
5522
+ readonly followers: number;
5523
+ /** @description Whether the reading account follows them. Absent without a participant session. */
5524
+ readonly following?: boolean;
5525
+ /** @description All-time volume in 10^-8 USDC: price times size, before fees, of every buy and sell their account wallet made on a HIP-4 outcome quoted in USDC, plus the stake of every Combo ticket it opened. These are the trades their positions and activity list, and what GET /v1/social/leaderboard ranks; an outcome quoted in another asset (USDH, mainnet outcomes 0 to 83) adds nothing. Null, unknown, while the holdings ledger does not yet write their account wallet's trades. */
5526
+ readonly volume: components["schemas"]["$defs-Amount"] | null;
5527
+ /** @description What everything they hold is worth now in 10^-8 USDC, the sum of the values GET /v1/social/people/{username}/positions lists, as Portfolio values its own. Null when any one is unknown, never short. */
5528
+ readonly positions_value: components["schemas"]["$defs-Amount"] | null;
5529
+ };
5530
+ /** @description One episode of a HyperCore position, from its first share to none left on either side: the HyperCore block height and event index of the row that opened it. The same on every read and every ledger rebuild. */
5531
+ readonly EpisodeId: string;
5532
+ /** @description A HyperCore outcome's quote asset: USDC, or USDH on mainnet outcomes 0 to 83. Its amounts are never summed with another asset's. */
5533
+ readonly "$defs-Asset": string;
5534
+ /** @description Shares, an exact decimal string with no trailing zeros. */
5535
+ readonly Shares: string;
5536
+ /** @description A price per share in the quote asset, a decimal string with no trailing zeros. */
5537
+ readonly Price: string;
5538
+ /** @description A HyperCore position held now, as a row draws it. side, shares, entry and value are all null when the ledger cannot prove its shares, as SinglePosition.holding says. */
5539
+ readonly SingleSummary: {
5540
+ /**
5541
+ * @description A HyperCore position.
5542
+ * @constant
5543
+ */
5544
+ readonly kind: "SINGLE";
5545
+ /** @description The HIP-4 outcome ID. */
5173
5546
  readonly outcome_id: components["schemas"]["UInt32String"];
5174
- /** @description Outcome side held. */
5547
+ readonly episode: components["schemas"]["EpisodeId"];
5548
+ /** @description The quote asset of value; null when unknown. */
5549
+ readonly asset: components["schemas"]["$defs-Asset"] | null;
5550
+ /** @description As Holding.side. */
5551
+ readonly side: components["schemas"]["Side"] | null;
5552
+ /** @description Net shares held; null when not proven. */
5553
+ readonly shares: components["schemas"]["Shares"] | null;
5554
+ /** @description As Holding.entry. */
5555
+ readonly entry: components["schemas"]["Price"] | null;
5556
+ /** @description As Holding.value. */
5557
+ readonly value: components["schemas"]["$defs-Amount"] | null;
5558
+ };
5559
+ /** @description One leg of a Combo ticket. */
5560
+ readonly "social.schema_$defs-Leg": {
5561
+ /** @description HIP-4 outcome ID of the leg. */
5562
+ readonly outcome_id: components["schemas"]["UInt32String"];
5563
+ /** @description The side the leg holds. */
5175
5564
  readonly side: components["schemas"]["Side"];
5176
- /** @description Shares held, an exact decimal string with no trailing zeros. */
5177
- readonly shares: string;
5178
- /** @description What each held share cost on average in USDC, fees included: buys add their cost and a sale removes its shares' share of it. Rounded half away from zero to 6 decimals, no trailing zeros. Absent when the holding's fills brought cash in rather than paid it out. */
5179
- readonly average_price?: string;
5180
5565
  };
5181
- /**
5182
- * @description A reaction a comment can get: fire 🔥, laugh 😂, mind_blown 🤯, cry 😭, rocket 🚀, skull 💀.
5183
- * @enum {string}
5184
- */
5185
- readonly CommentReactionName: "fire" | "laugh" | "mind_blown" | "cry" | "rocket" | "skull";
5186
- readonly CommentReaction: {
5187
- readonly reaction: components["schemas"]["CommentReactionName"];
5188
- /** @description How many participants gave the comment this reaction. */
5189
- readonly count: number;
5190
- /** @description True when the signed-in reader gave it; false for a signed-out reader. */
5191
- readonly reacted: boolean;
5566
+ /** @description A Combo ticket held now, or settled with a residual still to claim, as a row draws it. */
5567
+ readonly ComboSummary: {
5568
+ /**
5569
+ * @description A Combo ticket.
5570
+ * @constant
5571
+ */
5572
+ readonly kind: "COMBO";
5573
+ /** @description The ticket. */
5574
+ readonly position_id: components["schemas"]["Bytes32"];
5575
+ /** @description A free Combo. */
5576
+ readonly golden: boolean;
5577
+ /** @description Its legs, in leg order. */
5578
+ readonly legs: readonly components["schemas"]["social.schema_$defs-Leg"][];
5579
+ /** @description As ComboPosition.value. */
5580
+ readonly value: components["schemas"]["$defs-Amount"] | null;
5581
+ };
5582
+ /** @description A position held now, by kind. */
5583
+ readonly PositionSummary: components["schemas"]["SingleSummary"] | components["schemas"]["ComboSummary"];
5584
+ /** @description Where a market a response names stands now. Names and pictures come from market-display. */
5585
+ readonly "$defs-Market": {
5586
+ /** @description The HIP-4 outcome ID. */
5587
+ readonly outcome_id: components["schemas"]["UInt32String"];
5588
+ /**
5589
+ * @description TRADING; AWAITING_RESULT, its event over and its result not in; TRADING_CLOSED, no longer live with no result; SETTLED. Null when not known.
5590
+ * @enum {string|null}
5591
+ */
5592
+ readonly phase: "TRADING" | "AWAITING_RESULT" | "TRADING_CLOSED" | "SETTLED" | null;
5593
+ /** @description What one Yes share paid, from 0 to 1, as Hyperliquid's settlement records it (No is 1 minus it); null until it settles. */
5594
+ readonly settle_fraction: components["schemas"]["Price"] | null;
5595
+ };
5596
+ /** @description Every market the response names, once each, ascending by outcome ID. A feed page ends early rather than name more than 200. */
5597
+ readonly Markets: readonly components["schemas"]["$defs-Market"][];
5598
+ /** @description A page of what a person holds now, read live: each page reads the ledger as it stands then, not as of the first page. Pages keep positions in the order they opened, so a later page never repeats one or skips one still held; a position closed between pages is left out of later ones, one opened since shows only on a new first page, and shares and values are current to each page. */
5599
+ readonly PositionPage: {
5600
+ /** @description Positions held now, newest opened first. */
5601
+ readonly items: readonly components["schemas"]["PositionSummary"][];
5602
+ readonly markets: components["schemas"]["Markets"];
5603
+ readonly next_cursor: components["schemas"]["NextCursor"];
5604
+ /** @description Whether a later page may hold more. */
5605
+ readonly has_more: boolean;
5192
5606
  };
5193
- readonly Comment: {
5194
- readonly comment_id: components["schemas"]["Uuid"];
5195
- /** @description The comment this replies to, or null for a top-level comment. Replies are one level deep. */
5196
- readonly parent_id: components["schemas"]["Uuid"] | null;
5197
- /** @description Who wrote it, as their username, avatar seed and X picture now, or null once it is deleted or removed. */
5198
- readonly author: {
5199
- readonly username: components["schemas"]["Username"];
5200
- readonly avatar_seed: components["schemas"]["AvatarSeed"];
5201
- /** @description The author's X picture, as GET /v1/me serves it to them; absent when the server has none. Servers before contract 186 omit it. */
5202
- readonly picture_url?: components["schemas"]["XPictureUrl"];
5203
- /** @description The author's Genesis Account badge, read now; absent when they have not earned it or have their public profile off. Servers before contract 227 omit it. */
5204
- readonly genesis?: components["schemas"]["$defs-Timestamp"];
5607
+ /** @description A person with a public profile, as every social read names them. */
5608
+ readonly Person: {
5609
+ readonly username: components["schemas"]["Username"];
5610
+ /** @description The seed clients draw the person's generated avatar from, as for GET /v1/me. */
5611
+ readonly avatar_seed: components["schemas"]["AvatarSeed"];
5612
+ /** @description Their X picture; absent when there is none. */
5613
+ readonly picture_url?: components["schemas"]["XPictureUrl"];
5614
+ /** @description Their Genesis Account badge; absent when not earned. */
5615
+ readonly genesis?: components["schemas"]["$defs-Timestamp"];
5616
+ };
5617
+ /** @description An amount in 10^-8 of the asset named beside it, as a signed integer string. */
5618
+ readonly SignedUnits: string;
5619
+ /** @description A HyperCore position's money in its quote asset, by the holdings ledger's rules. Quantities are always exact: a position whose shares the ledger cannot prove has no Holding at all; cost, entry and P&L are null when the ledger cannot price them (an outcome token moved by transfer, a question-wide conversion, a fee in another token, an unknown quote asset). value = shares x mark + pairs; a reader holding a newer mark for the same side recomputes value that way and pnl as pnl + shares x (newer mark - mark). */
5620
+ readonly Holding: {
5621
+ /** @description The net side, the side with more shares; null when both sides are equal. Once SOLD, the side of its last sale; once SETTLED, the side held net as it settled. */
5622
+ readonly side: components["schemas"]["Side"] | null;
5623
+ /** @description Net shares held now; for a settled position, held as it settled; 0 once sold. */
5624
+ readonly shares: components["schemas"]["Shares"];
5625
+ /** @description Shares held on both sides, worth exactly 1 each whatever the result; as it settled for a settled position, 0 once sold. */
5626
+ readonly pairs: components["schemas"]["Shares"];
5627
+ /** @description What each net share cost, fees included, rounded half away from zero to 8 decimals; for a settled position, as it settled. Null with no net shares, once sold, or when unknown. */
5628
+ readonly entry: components["schemas"]["Price"] | null;
5629
+ /** @description What the net shares held now cost, fees included. Null once closed or when unknown. */
5630
+ readonly cost: components["schemas"]["$defs-Amount"] | null;
5631
+ /** @description The net side's Value per share used here, market data's published mark (docs.totalis.trade, Chance, Price and Value); null when unknown, with no net shares, and once closed. */
5632
+ readonly mark: components["schemas"]["Price"] | null;
5633
+ /** @description What it is worth now; 0 once closed; null when the mark is unknown, never 0. */
5634
+ readonly value: components["schemas"]["$defs-Amount"] | null;
5635
+ /** @description What the episode made, its sales and pairs included, at the mark; final once closed. Null when the mark or the cost is unknown. */
5636
+ readonly pnl: components["schemas"]["SignedUnits"] | null;
5637
+ };
5638
+ /** @description One buy or sale of one side, as Hyperliquid reported it. */
5639
+ readonly "$defs-Fill": {
5640
+ /** @description Stable ID of the fill: its HyperCore block height and event index. */
5641
+ readonly id: string;
5642
+ /** @description HyperCore block time. */
5643
+ readonly at: components["schemas"]["$defs-Timestamp"];
5644
+ /** @description The side bought or sold. */
5645
+ readonly side: components["schemas"]["Side"];
5646
+ /**
5647
+ * @description Whether it bought or sold the side.
5648
+ * @enum {string}
5649
+ */
5650
+ readonly direction: "BUY" | "SELL";
5651
+ /** @description Price per share it printed at, before fees. */
5652
+ readonly price: components["schemas"]["Price"];
5653
+ /** @description Shares filled. */
5654
+ readonly size: components["schemas"]["Shares"];
5655
+ };
5656
+ /** @description 1 to 1000 characters after surrounding whitespace is trimmed. Newlines are kept; other control characters are refused. */
5657
+ readonly CommentBody: string;
5658
+ /** @description A person's comment. */
5659
+ readonly LatestComment: {
5660
+ readonly body: components["schemas"]["CommentBody"];
5661
+ /** @description When it was posted. */
5662
+ readonly created_at: components["schemas"]["$defs-Timestamp"];
5663
+ };
5664
+ /** @description One episode of a person's HyperCore position, as the holdings ledger stored it. An outcome the ledger holds no episode of theirs on is 404 NOT_FOUND, not a position. */
5665
+ readonly SinglePosition: {
5666
+ /**
5667
+ * @description A HyperCore position.
5668
+ * @constant
5669
+ */
5670
+ readonly kind: "SINGLE";
5671
+ readonly person: components["schemas"]["Person"];
5672
+ /** @description Whether the reading account follows them. Absent without a participant session. */
5673
+ readonly following?: boolean;
5674
+ /** @description The HIP-4 outcome ID. */
5675
+ readonly outcome_id: components["schemas"]["UInt32String"];
5676
+ /** @description The quote asset of every amount; null when unknown. */
5677
+ readonly asset: components["schemas"]["$defs-Asset"] | null;
5678
+ /**
5679
+ * @description OPEN; PARTLY_SOLD, open after selling some of the side it holds net; SOLD, closed by sales or a merge; SETTLED, held as its market settled. Where the market stands is in markets.
5680
+ * @enum {string|null}
5681
+ */
5682
+ readonly state: "OPEN" | "PARTLY_SOLD" | "SOLD" | "SETTLED" | null;
5683
+ /**
5684
+ * @description For SETTLED, what the side held net got per share: all (WON), nothing (LOST) or part (SPLIT). Null otherwise, and when no side was held net.
5685
+ * @enum {string|null}
5686
+ */
5687
+ readonly result: "WON" | "LOST" | "SPLIT" | null;
5688
+ /** @description When the episode's first share came. */
5689
+ readonly opened_at: components["schemas"]["$defs-Timestamp"] | null;
5690
+ /** @description When its last share left; null while open. */
5691
+ readonly closed_at: components["schemas"]["$defs-Timestamp"] | null;
5692
+ /** @description Its money; null when the ledger cannot prove an open episode's shares: a row of it broke a quantity check, as when the index holds a sale but not the buy before it (older testnet wallets). */
5693
+ readonly holding: components["schemas"]["Holding"] | null;
5694
+ /** @description The episode's buys and sales, newest first, up to 100. */
5695
+ readonly trades: readonly components["schemas"]["$defs-Fill"][];
5696
+ /** @description How many buys and sales the episode has; more than trades holds when it was cut at 100. */
5697
+ readonly trade_count: number;
5698
+ /** @description Their newest comment or reply on the outcome's thread, or its question's while the market is listed, that is not deleted; null when there is none. */
5699
+ readonly latest_comment: components["schemas"]["LatestComment"] | null;
5700
+ readonly markets: components["schemas"]["Markets"];
5701
+ };
5702
+ /** @description The newest run of a Combo ticket in a person's account wallet. One leg is a single-market RFQ buy. */
5703
+ readonly ComboPosition: {
5704
+ /**
5705
+ * @description A Combo ticket.
5706
+ * @constant
5707
+ */
5708
+ readonly kind: "COMBO";
5709
+ readonly person: components["schemas"]["Person"];
5710
+ /** @description Whether the reading account follows them. Absent without a participant session. */
5711
+ readonly following?: boolean;
5712
+ /** @description The ticket. */
5713
+ readonly position_id: components["schemas"]["Bytes32"];
5714
+ /** @description A free Combo, whose stake a promotion paid. */
5715
+ readonly golden: boolean;
5716
+ /**
5717
+ * @description OPENED, they bought it; RECEIVED, it was passed to them, as a free Combo is.
5718
+ * @enum {string}
5719
+ */
5720
+ readonly acquired: "OPENED" | "RECEIVED";
5721
+ /**
5722
+ * @description OPEN; CASHED_OUT, sold back to its maker; SETTLED; PASSED_ON, moved to another wallet.
5723
+ * @enum {string}
5724
+ */
5725
+ readonly state: "OPEN" | "CASHED_OUT" | "SETTLED" | "PASSED_ON";
5726
+ /**
5727
+ * @description LOST once any leg's side settled at nothing, open or not; WON or SPLIT once every leg settled; null before.
5728
+ * @enum {string|null}
5729
+ */
5730
+ readonly result: "WON" | "LOST" | "SPLIT" | null;
5731
+ /** @description When they opened or received it (HyperEVM block time). */
5732
+ readonly opened_at: components["schemas"]["$defs-Timestamp"];
5733
+ /** @description Its legs, in leg order. */
5734
+ readonly legs: readonly components["schemas"]["social.schema_$defs-Leg"][];
5735
+ /** @description What they paid in 10^-8 USDC, the entry fee included; null when they paid nothing of their own (received free). */
5736
+ readonly cost: components["schemas"]["$defs-Amount"] | null;
5737
+ /** @description What it is worth to them now in 10^-8 USDC, as Portfolio values a ticket: its net stake while open, nothing once a leg lost, what settlement credits after the profit fee once every leg settled, the claimable residual once settled, 0 once closed; a free Combo is worth nothing until it has won. Null when a leg's market is neither listed nor settled. */
5738
+ readonly value: components["schemas"]["$defs-Amount"] | null;
5739
+ /** @description Once CASHED_OUT or SETTLED, what they received after the profit fee less cost, in 10^-8 USDC. Null while open, after PASSED_ON, or when cost is null. */
5740
+ readonly pnl: components["schemas"]["SignedUnits"] | null;
5741
+ readonly markets: components["schemas"]["Markets"];
5742
+ };
5743
+ /** @description A person's position, by kind. */
5744
+ readonly "$defs-Position": components["schemas"]["SinglePosition"] | components["schemas"]["ComboPosition"];
5745
+ /** @description What GET /v1/social/people/{username}/positions/{position} takes to open a HyperCore position's episode. */
5746
+ readonly SingleKey: {
5747
+ /**
5748
+ * @description A HyperCore position.
5749
+ * @constant
5750
+ */
5751
+ readonly kind: "SINGLE";
5752
+ /** @description The position path segment. */
5753
+ readonly outcome_id: components["schemas"]["UInt32String"];
5754
+ /** @description The episode query parameter; null when the ledger does not name one yet, so the read opens the open episode, else the last. */
5755
+ readonly episode: components["schemas"]["EpisodeId"] | null;
5756
+ };
5757
+ /** @description A burst of one person's buys, or sales, of one side of a HyperCore position in one episode: each within 30 minutes of the one before. */
5758
+ readonly TradeItem: {
5759
+ /** @description Stable, opaque ID; a burst keeps it as it grows, and moves to the top of the feed. */
5760
+ readonly id: string;
5761
+ /** @description Its newest trade's HyperCore block time. */
5762
+ readonly at: components["schemas"]["$defs-Timestamp"];
5763
+ readonly person: components["schemas"]["Person"];
5764
+ /** @description The episode the burst belongs to. */
5765
+ readonly position: components["schemas"]["SingleKey"];
5766
+ /** @description The side bought or sold. */
5767
+ readonly side: components["schemas"]["Side"];
5768
+ /**
5769
+ * @description Whether the burst bought or sold.
5770
+ * @enum {string}
5771
+ */
5772
+ readonly direction: "BUY" | "SELL";
5773
+ /** @description Shares bought or sold over the burst. */
5774
+ readonly shares: components["schemas"]["Shares"];
5775
+ /** @description Average printed price per share over the burst, weighted by size, before fees, rounded half away from zero to 8 decimals. */
5776
+ readonly price: components["schemas"]["Price"];
5777
+ /** @description How many orders the burst took, told apart by transaction: one order filling against several makers is one. */
5778
+ readonly orders: number;
5779
+ };
5780
+ /** @description What GET /v1/social/people/{username}/positions/{position} takes to open a Combo ticket. */
5781
+ readonly ComboKey: {
5782
+ /**
5783
+ * @description A Combo ticket.
5784
+ * @constant
5785
+ */
5786
+ readonly kind: "COMBO";
5787
+ /** @description The position path segment. */
5788
+ readonly position_id: components["schemas"]["Bytes32"];
5789
+ };
5790
+ /** @description A Combo ticket a person opened, received or cashed out. */
5791
+ readonly ComboItem: {
5792
+ /** @description Stable, opaque ID. */
5793
+ readonly id: string;
5794
+ /** @description HyperEVM block time. */
5795
+ readonly at: components["schemas"]["$defs-Timestamp"];
5796
+ readonly person: components["schemas"]["Person"];
5797
+ readonly position: components["schemas"]["ComboKey"];
5798
+ /**
5799
+ * @description What they did with the ticket.
5800
+ * @enum {string}
5801
+ */
5802
+ readonly action: "OPENED" | "RECEIVED" | "CASHED_OUT";
5803
+ /** @description A free Combo. */
5804
+ readonly golden: boolean;
5805
+ /** @description Its legs, in leg order. */
5806
+ readonly legs: readonly components["schemas"]["social.schema_$defs-Leg"][];
5807
+ /** @description For OPENED, what they paid in 10^-8 USDC, the entry fee included; null otherwise. */
5808
+ readonly cost: components["schemas"]["$defs-Amount"] | null;
5809
+ };
5810
+ /** @description A feed item: a burst of trades, or a Combo moment. */
5811
+ readonly FeedItem: components["schemas"]["TradeItem"] | components["schemas"]["ComboItem"];
5812
+ /** @description A page of a feed. Later pages never repeat an item: a burst that grows after it was listed moves to the top of a fresh first page under its id. */
5813
+ readonly FeedPage: {
5814
+ /** @description Newest first. */
5815
+ readonly items: readonly components["schemas"]["FeedItem"][];
5816
+ readonly markets: components["schemas"]["Markets"];
5817
+ readonly next_cursor: components["schemas"]["NextCursor"];
5818
+ /** @description Whether a later page may hold more; a page that read its share of rows without filling answers with what it found and a cursor past them, so it can be short. */
5819
+ readonly has_more: boolean;
5820
+ };
5821
+ /** @description A person the reader follows and their positions on the outcomes asked. */
5822
+ readonly Holder: {
5823
+ readonly person: components["schemas"]["Person"];
5824
+ /** @description Their HyperCore positions on the asked outcomes, newest opened first. */
5825
+ readonly positions: readonly components["schemas"]["SingleSummary"][];
5826
+ };
5827
+ /** @description Who the reader follows holds any of the asked outcomes. */
5828
+ readonly FollowingPositions: {
5829
+ /** @description People the reader follows who hold any asked outcome, the one who opened a position most recently first. */
5830
+ readonly people: readonly components["schemas"]["Holder"][];
5831
+ readonly markets: components["schemas"]["Markets"];
5832
+ };
5833
+ /** @description One person's place on the leaderboard. */
5834
+ readonly Rank: {
5835
+ /** @description Their rank, from 1. */
5836
+ readonly rank: number;
5837
+ readonly person: components["schemas"]["Person"];
5838
+ /** @description Volume or P&L over the range in 10^-8 USDC; P&L can be zero or negative. */
5839
+ readonly amount: components["schemas"]["SignedUnits"];
5840
+ };
5841
+ /** @description One page of 25 ranks and the reader's own rank. */
5842
+ readonly Leaderboard: {
5843
+ /**
5844
+ * @description What the ranking counts.
5845
+ * @enum {string}
5846
+ */
5847
+ readonly metric: "VOLUME" | "PNL";
5848
+ /**
5849
+ * @description The range ranked: 1W the last 7 days to the hour (for VOLUME, from the start of the hour seven days before as_of), or ALL.
5850
+ * @enum {string}
5851
+ */
5852
+ readonly range: "1W" | "ALL";
5853
+ /** @description When the ranking was read, to the second; pass it as the as_of query parameter to read more pages of it. */
5854
+ readonly as_of: components["schemas"]["$defs-Timestamp"];
5855
+ /** @description The page answered, as the page query parameter asked. */
5856
+ readonly page_number: number;
5857
+ /** @description How many pages the ranking fills; 0 when nobody ranks. */
5858
+ readonly pages: number;
5859
+ /** @description The page's ranks, ascending; empty past the last page. */
5860
+ readonly rows: readonly components["schemas"]["Rank"][];
5861
+ /** @description The reader's own rank, on whichever page; null when they do not rank: a private profile, a known role, nothing counted, or no P&L figure. */
5862
+ readonly you: components["schemas"]["Rank"] | null;
5863
+ };
5864
+ /** @enum {unknown} */
5865
+ readonly OperationState: "QUEUED" | "IN_FLIGHT" | "RETRYABLE" | "UNKNOWN" | "COMMITTED" | "REVERTED" | "EXPIRED_UNEXECUTED";
5866
+ /** @description A HIP-4 outcome side of the comment's market the author's account wallet holds on HyperCore now, as GET /v1/traders/{username} lists it without opened_at. */
5867
+ readonly CommentSingle: {
5868
+ /** @description HIP-4 outcome ID held, as a decimal string. */
5869
+ readonly outcome_id: components["schemas"]["UInt32String"];
5870
+ /** @description Outcome side held. */
5871
+ readonly side: components["schemas"]["Side"];
5872
+ /** @description Shares held, an exact decimal string with no trailing zeros. */
5873
+ readonly shares: string;
5874
+ /** @description What each held share cost on average in USDC, fees included: buys add their cost and a sale removes its shares' share of it. Rounded half away from zero to 6 decimals, no trailing zeros. Absent when the holding's fills brought cash in rather than paid it out. */
5875
+ readonly average_price?: string;
5876
+ };
5877
+ /**
5878
+ * @description A reaction a comment can get: fire 🔥, laugh 😂, mind_blown 🤯, cry 😭, rocket 🚀, skull 💀.
5879
+ * @enum {string}
5880
+ */
5881
+ readonly CommentReactionName: "fire" | "laugh" | "mind_blown" | "cry" | "rocket" | "skull";
5882
+ readonly CommentReaction: {
5883
+ readonly reaction: components["schemas"]["CommentReactionName"];
5884
+ /** @description How many participants gave the comment this reaction. */
5885
+ readonly count: number;
5886
+ /** @description True when the signed-in reader gave it; false for a signed-out reader. */
5887
+ readonly reacted: boolean;
5888
+ };
5889
+ readonly Comment: {
5890
+ readonly comment_id: components["schemas"]["Uuid"];
5891
+ /** @description The comment this replies to, or null for a top-level comment. Replies are one level deep. */
5892
+ readonly parent_id: components["schemas"]["Uuid"] | null;
5893
+ /** @description Who wrote it, as their username, avatar seed and X picture now, or null once it is deleted or removed. */
5894
+ readonly author: {
5895
+ readonly username: components["schemas"]["Username"];
5896
+ readonly avatar_seed: components["schemas"]["AvatarSeed"];
5897
+ /** @description The author's X picture, as GET /v1/me serves it to them; absent when the server has none. Servers before contract 186 omit it. */
5898
+ readonly picture_url?: components["schemas"]["XPictureUrl"];
5899
+ /** @description The author's Genesis Account badge, read now; absent when they have not earned it or have their public profile off. Servers before contract 227 omit it. */
5900
+ readonly genesis?: components["schemas"]["$defs-Timestamp"];
5205
5901
  } | null;
5206
5902
  /** @description The text, or null once it is deleted. */
5207
5903
  readonly body: components["schemas"]["CommentBody"] | null;
@@ -5213,6 +5909,8 @@ export type components = {
5213
5909
  readonly holder: boolean | null;
5214
5910
  /** @description The HyperCore outcome sides of its market (the outcome, or any of the question's outcomes) its author's account wallet holds now, newest opened first; empty when it holds none. Null once it is deleted; when the author's public trader profile is off or their account is not ACTIVE, since exact positions would show which wallet is theirs, as GET /v1/traders/{username} refuses to; and while it is not known: off Mainnet, while the account index is behind or does not hold history since launch, when the author has no single account wallet, when an outcome token of the market moved to or from it by transfer, or before the market catalog names the question's outcomes. Servers before contract 214 omit it. */
5215
5911
  readonly singles: readonly components["schemas"]["CommentSingle"][] | null;
5912
+ /** @description Its author's HyperCore positions on its market (the outcome, or any of the question's outcomes) held now by the holdings ledger's rules, newest opened first, as the position read they open counts them; empty when they hold none. Null once it is deleted, when the author's public profile is off or their account is not ACTIVE, when the author has no single account wallet, while the holdings ledger has not caught up, and before the market catalog names the question's outcomes. Replaces singles once callers moved. Servers before contract 236 omit it. */
5913
+ readonly positions?: readonly components["schemas"]["SingleSummary"][] | null;
5216
5914
  readonly like_count: number;
5217
5915
  /** @description Live replies; always 0 on a reply. */
5218
5916
  readonly reply_count: number;
@@ -5912,6 +6610,38 @@ export type components = {
5912
6610
  /** @description Reviewed Hyperliquid outcome templates of the network, ascending by ID. */
5913
6611
  readonly templates: readonly components["schemas"]["TemplateDefinition"][];
5914
6612
  };
6613
+ readonly MarketDisplay: {
6614
+ /**
6615
+ * @description Hyperliquid network the outcomes are listed on.
6616
+ * @enum {string}
6617
+ */
6618
+ readonly network: "HYPEREVM_TESTNET" | "HYPEREVM_MAINNET";
6619
+ /** @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. */
6620
+ readonly imagery_publication: string | null;
6621
+ /** @description Every asked outcome Totalis recorded, live or departed, ascending by outcome ID. */
6622
+ readonly outcomes: readonly components["schemas"]["OutcomeDisplay"][];
6623
+ /** @description Each subject the outcomes' pictures name, once, by key. */
6624
+ readonly subjects: components["schemas"]["Subjects"];
6625
+ /** @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. */
6626
+ readonly not_recorded: readonly components["schemas"]["UInt32String"][];
6627
+ /** @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. */
6628
+ readonly pending: readonly components["schemas"]["UInt32String"][];
6629
+ /** @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`. */
6630
+ readonly templates: readonly unknown[];
6631
+ };
6632
+ readonly OutcomeMetadata: {
6633
+ /** @description Catalog generation built from this metadata. */
6634
+ readonly catalog_generation: components["schemas"]["PositiveInt64"];
6635
+ /**
6636
+ * @description Hyperliquid network the metadata was read from.
6637
+ * @enum {string}
6638
+ */
6639
+ readonly network: "HYPEREVM_TESTNET" | "HYPEREVM_MAINNET";
6640
+ /** @description Hyperliquid's info `outcomeMeta` answer, unchanged: an object of `outcomes`, `questions`, `deployers` and `feeScale`, in Hyperliquid's own shape, which Hyperliquid may extend. */
6641
+ readonly outcome_meta: unknown;
6642
+ /** @description Hyperliquid's info `outcomeTemplates` answer from the same catalog revision, unchanged. */
6643
+ readonly outcome_templates: readonly unknown[];
6644
+ };
5915
6645
  /** @description [step, mark, steps]: steps consecutive steps of step_seconds starting at step, each ending at mark. */
5916
6646
  readonly PerpMarkRun: readonly [
5917
6647
  number,
@@ -6660,6 +7390,16 @@ export type components = {
6660
7390
  * @example 1209
6661
7391
  */
6662
7392
  readonly OutcomeId: components["schemas"]["UInt32String"];
7393
+ /**
7394
+ * @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.
7395
+ * @example 35280,36412
7396
+ */
7397
+ readonly OutcomeIds: string;
7398
+ /**
7399
+ * @description The latest `catalog_generation` a market or browse read named; the answer is that generation or a later one.
7400
+ * @example 20291
7401
+ */
7402
+ readonly MinCatalogGeneration: components["schemas"]["PositiveInt64"];
6663
7403
  /**
6664
7404
  * @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.
6665
7405
  * @example 4
@@ -6901,6 +7641,10 @@ export type components = {
6901
7641
  headers: {
6902
7642
  /** @description Seconds to wait before resending the same request */
6903
7643
  readonly RetryAfter: number;
7644
+ /** @description Strong validator of the whole answer; send it as `If-None-Match` to get 304 when the answer is unchanged */
7645
+ readonly MarketDisplayETag: string;
7646
+ /** @description Strong validator of the answer; send it as `If-None-Match` to get 304 when the answer is unchanged */
7647
+ readonly OutcomeMetadataETag: string;
6904
7648
  /** @description Always `no-store`; account data must not be cached. */
6905
7649
  readonly CacheControl: "no-store";
6906
7650
  /** @description The response varies by the Authorization header, so shared caches must not reuse it across credentials. */
@@ -7862,7 +8606,11 @@ export interface operations {
7862
8606
  readonly path?: never;
7863
8607
  readonly cookie?: never;
7864
8608
  };
7865
- readonly requestBody?: never;
8609
+ readonly requestBody?: {
8610
+ readonly content: {
8611
+ readonly "application/json": components["schemas"]["BrowserDevice"];
8612
+ };
8613
+ };
7866
8614
  readonly responses: {
7867
8615
  /** @description Account wallet is bound */
7868
8616
  readonly 204: {
@@ -8392,7 +9140,13 @@ export interface operations {
8392
9140
  };
8393
9141
  readonly getSuggestedCombo: {
8394
9142
  readonly parameters: {
8395
- readonly query?: never;
9143
+ readonly query?: {
9144
+ /**
9145
+ * @description Also answer the legs' market display in `display`, so a client names and pictures them from this one read. Send it only as true; any other value returns 400 INVALID_QUERY.
9146
+ * @example true
9147
+ */
9148
+ readonly display?: components["schemas"]["DisplayQuery"];
9149
+ };
8396
9150
  readonly header?: never;
8397
9151
  readonly path?: never;
8398
9152
  readonly cookie?: never;
@@ -8402,7 +9156,8 @@ export interface operations {
8402
9156
  /** @description Suggested Combos */
8403
9157
  readonly 200: {
8404
9158
  headers: {
8405
- readonly "Cache-Control"?: "public, max-age=60";
9159
+ /** @description An answer asked with display=true that does not picture every leg is no-store; every other answer is public for 60 seconds. */
9160
+ readonly "Cache-Control"?: "public, max-age=60" | "no-store";
8406
9161
  readonly [name: string]: unknown;
8407
9162
  };
8408
9163
  content: {
@@ -8414,6 +9169,8 @@ export interface operations {
8414
9169
  * @description Deprecated: the first of `combos`, or null. Kept one release for deployed clients; removed once the frontend reads `combos`.
8415
9170
  */
8416
9171
  readonly combo: null | components["schemas"]["SuggestedCombo"];
9172
+ /** @description Only with display=true: the market display of the legs, from the cards the suggestions carry, as a discovery page answers it. A leg whose card the current browse publication no longer holds is left out, for GET /v1/market-display to answer; display itself is left out when the browse view cannot answer. */
9173
+ readonly display?: components["schemas"]["PageDisplay"];
8417
9174
  };
8418
9175
  };
8419
9176
  };
@@ -8461,7 +9218,7 @@ export interface operations {
8461
9218
  };
8462
9219
  readonly requestBody: {
8463
9220
  readonly content: {
8464
- readonly "application/json": Record<string, never>;
9221
+ readonly "application/json": components["schemas"]["BrowserDevice"];
8465
9222
  };
8466
9223
  };
8467
9224
  readonly responses: {
@@ -9213,6 +9970,300 @@ export interface operations {
9213
9970
  readonly 503: components["responses"]["Unavailable"];
9214
9971
  };
9215
9972
  };
9973
+ readonly getSocialPerson: {
9974
+ readonly parameters: {
9975
+ readonly query?: never;
9976
+ readonly header?: never;
9977
+ readonly path: {
9978
+ /** @description The person's username. */
9979
+ readonly username: components["schemas"]["Username"];
9980
+ };
9981
+ readonly cookie?: never;
9982
+ };
9983
+ readonly requestBody?: never;
9984
+ readonly responses: {
9985
+ /** @description The profile */
9986
+ readonly 200: {
9987
+ headers: {
9988
+ /** @description public, max-age=30 for a signed-out read, which the edge may share; no-store for one with a credential. */
9989
+ readonly "Cache-Control"?: "public, max-age=30" | "no-store";
9990
+ readonly [name: string]: unknown;
9991
+ };
9992
+ content: {
9993
+ readonly "application/json": components["schemas"]["Profile"];
9994
+ };
9995
+ };
9996
+ readonly 400: components["responses"]["Error"];
9997
+ readonly 401: components["responses"]["Error"];
9998
+ readonly 403: components["responses"]["Error"];
9999
+ readonly 404: components["responses"]["Error"];
10000
+ readonly 429: components["responses"]["RateLimited"];
10001
+ readonly 503: components["responses"]["Unavailable"];
10002
+ };
10003
+ };
10004
+ readonly listSocialPositions: {
10005
+ readonly parameters: {
10006
+ readonly query?: {
10007
+ /**
10008
+ * @description Omit for the first page; then send the previous response's next_cursor unchanged.
10009
+ * @example eyJ2IjoxLCJzIjoiMTIzNDUifQ
10010
+ */
10011
+ readonly cursor?: components["parameters"]["Cursor"];
10012
+ /**
10013
+ * @description Maximum items per page, 1 to 200, default 50. A page may hold fewer, even none, while has_more is true.
10014
+ * @example 50
10015
+ */
10016
+ readonly limit?: components["parameters"]["Limit"];
10017
+ };
10018
+ readonly header?: never;
10019
+ readonly path: {
10020
+ /** @description The person's username. */
10021
+ readonly username: components["schemas"]["Username"];
10022
+ };
10023
+ readonly cookie?: never;
10024
+ };
10025
+ readonly requestBody?: never;
10026
+ readonly responses: {
10027
+ /** @description A page of positions */
10028
+ readonly 200: {
10029
+ headers: {
10030
+ /** @description public, max-age=30 for a signed-out read, which the edge may share; no-store for one with a credential. */
10031
+ readonly "Cache-Control"?: "public, max-age=30" | "no-store";
10032
+ readonly [name: string]: unknown;
10033
+ };
10034
+ content: {
10035
+ readonly "application/json": components["schemas"]["PositionPage"];
10036
+ };
10037
+ };
10038
+ readonly 400: components["responses"]["Error"];
10039
+ readonly 401: components["responses"]["Error"];
10040
+ readonly 403: components["responses"]["Error"];
10041
+ readonly 404: components["responses"]["Error"];
10042
+ readonly 429: components["responses"]["RateLimited"];
10043
+ readonly 503: components["responses"]["Unavailable"];
10044
+ };
10045
+ };
10046
+ readonly getSocialPosition: {
10047
+ readonly parameters: {
10048
+ readonly query?: {
10049
+ /** @description The episode of a HyperCore position, as a feed item or an earlier read named it. Refused with 400 INVALID_QUERY on a ticket. */
10050
+ readonly episode?: components["schemas"]["EpisodeId"];
10051
+ };
10052
+ readonly header?: never;
10053
+ readonly path: {
10054
+ /** @description The person's username. */
10055
+ readonly username: components["schemas"]["Username"];
10056
+ /** @description A HIP-4 outcome ID as a decimal string, or a Combo ticket ID as lowercase bytes32 hex. */
10057
+ readonly position: components["schemas"]["UInt32String"] | components["schemas"]["Bytes32"];
10058
+ };
10059
+ readonly cookie?: never;
10060
+ };
10061
+ readonly requestBody?: never;
10062
+ readonly responses: {
10063
+ /** @description The position */
10064
+ readonly 200: {
10065
+ headers: {
10066
+ /** @description public, max-age=30 for a signed-out read, which the edge may share; no-store for one with a credential. */
10067
+ readonly "Cache-Control"?: "public, max-age=30" | "no-store";
10068
+ readonly [name: string]: unknown;
10069
+ };
10070
+ content: {
10071
+ readonly "application/json": components["schemas"]["$defs-Position"];
10072
+ };
10073
+ };
10074
+ readonly 400: components["responses"]["Error"];
10075
+ readonly 401: components["responses"]["Error"];
10076
+ readonly 403: components["responses"]["Error"];
10077
+ readonly 404: components["responses"]["Error"];
10078
+ readonly 429: components["responses"]["RateLimited"];
10079
+ readonly 503: components["responses"]["Unavailable"];
10080
+ };
10081
+ };
10082
+ readonly listSocialActivity: {
10083
+ readonly parameters: {
10084
+ readonly query?: {
10085
+ /**
10086
+ * @description Omit for the first page; then send the previous response's next_cursor unchanged.
10087
+ * @example eyJ2IjoxLCJzIjoiMTIzNDUifQ
10088
+ */
10089
+ readonly cursor?: components["parameters"]["Cursor"];
10090
+ /**
10091
+ * @description Maximum items per page, 1 to 200, default 50. A page may hold fewer, even none, while has_more is true.
10092
+ * @example 50
10093
+ */
10094
+ readonly limit?: components["parameters"]["Limit"];
10095
+ };
10096
+ readonly header?: never;
10097
+ readonly path: {
10098
+ /** @description The person's username. */
10099
+ readonly username: components["schemas"]["Username"];
10100
+ };
10101
+ readonly cookie?: never;
10102
+ };
10103
+ readonly requestBody?: never;
10104
+ readonly responses: {
10105
+ /** @description A page of activity */
10106
+ readonly 200: {
10107
+ headers: {
10108
+ /** @description public, max-age=30 for a signed-out read, which the edge may share; no-store for one with a credential. */
10109
+ readonly "Cache-Control"?: "public, max-age=30" | "no-store";
10110
+ readonly [name: string]: unknown;
10111
+ };
10112
+ content: {
10113
+ readonly "application/json": components["schemas"]["FeedPage"];
10114
+ };
10115
+ };
10116
+ readonly 400: components["responses"]["Error"];
10117
+ readonly 401: components["responses"]["Error"];
10118
+ readonly 403: components["responses"]["Error"];
10119
+ readonly 404: components["responses"]["Error"];
10120
+ readonly 429: components["responses"]["RateLimited"];
10121
+ readonly 503: components["responses"]["Unavailable"];
10122
+ };
10123
+ };
10124
+ readonly listSocialFeed: {
10125
+ readonly parameters: {
10126
+ readonly query?: {
10127
+ /**
10128
+ * @description Omit for the first page; then send the previous response's next_cursor unchanged.
10129
+ * @example eyJ2IjoxLCJzIjoiMTIzNDUifQ
10130
+ */
10131
+ readonly cursor?: components["parameters"]["Cursor"];
10132
+ /**
10133
+ * @description Maximum items per page, 1 to 200, default 50. A page may hold fewer, even none, while has_more is true.
10134
+ * @example 50
10135
+ */
10136
+ readonly limit?: components["parameters"]["Limit"];
10137
+ };
10138
+ readonly header?: never;
10139
+ readonly path?: never;
10140
+ readonly cookie?: never;
10141
+ };
10142
+ readonly requestBody?: never;
10143
+ readonly responses: {
10144
+ /** @description A page of the feed */
10145
+ readonly 200: {
10146
+ headers: {
10147
+ /** @description public, max-age=30 for a signed-out read, which the edge may share; no-store for one with a credential. */
10148
+ readonly "Cache-Control"?: "public, max-age=30" | "no-store";
10149
+ readonly [name: string]: unknown;
10150
+ };
10151
+ content: {
10152
+ readonly "application/json": components["schemas"]["FeedPage"];
10153
+ };
10154
+ };
10155
+ readonly 400: components["responses"]["Error"];
10156
+ readonly 401: components["responses"]["Error"];
10157
+ readonly 403: components["responses"]["Error"];
10158
+ readonly 429: components["responses"]["RateLimited"];
10159
+ readonly 503: components["responses"]["Unavailable"];
10160
+ };
10161
+ };
10162
+ readonly listFollowingFeed: {
10163
+ readonly parameters: {
10164
+ readonly query?: {
10165
+ /**
10166
+ * @description Omit for the first page; then send the previous response's next_cursor unchanged.
10167
+ * @example eyJ2IjoxLCJzIjoiMTIzNDUifQ
10168
+ */
10169
+ readonly cursor?: components["parameters"]["Cursor"];
10170
+ /**
10171
+ * @description Maximum items per page, 1 to 200, default 50. A page may hold fewer, even none, while has_more is true.
10172
+ * @example 50
10173
+ */
10174
+ readonly limit?: components["parameters"]["Limit"];
10175
+ };
10176
+ readonly header?: never;
10177
+ readonly path?: never;
10178
+ readonly cookie?: never;
10179
+ };
10180
+ readonly requestBody?: never;
10181
+ readonly responses: {
10182
+ /** @description A page of the reader's feed */
10183
+ readonly 200: {
10184
+ headers: {
10185
+ readonly "Cache-Control"?: "no-store";
10186
+ readonly [name: string]: unknown;
10187
+ };
10188
+ content: {
10189
+ readonly "application/json": components["schemas"]["FeedPage"];
10190
+ };
10191
+ };
10192
+ readonly 400: components["responses"]["Error"];
10193
+ readonly 401: components["responses"]["Error"];
10194
+ readonly 403: components["responses"]["Error"];
10195
+ readonly 404: components["responses"]["Error"];
10196
+ readonly 429: components["responses"]["RateLimited"];
10197
+ readonly 503: components["responses"]["Unavailable"];
10198
+ };
10199
+ };
10200
+ readonly listFollowingPositions: {
10201
+ readonly parameters: {
10202
+ readonly query: {
10203
+ /** @description Comma-separated HIP-4 outcome IDs, 1 to 200 distinct, as a market page lists them. */
10204
+ readonly outcome_ids: readonly components["schemas"]["UInt32String"][];
10205
+ };
10206
+ readonly header?: never;
10207
+ readonly path?: never;
10208
+ readonly cookie?: never;
10209
+ };
10210
+ readonly requestBody?: never;
10211
+ readonly responses: {
10212
+ /** @description Who the reader follows is in */
10213
+ readonly 200: {
10214
+ headers: {
10215
+ readonly "Cache-Control"?: "no-store";
10216
+ readonly [name: string]: unknown;
10217
+ };
10218
+ content: {
10219
+ readonly "application/json": components["schemas"]["FollowingPositions"];
10220
+ };
10221
+ };
10222
+ readonly 400: components["responses"]["Error"];
10223
+ readonly 401: components["responses"]["Error"];
10224
+ readonly 403: components["responses"]["Error"];
10225
+ readonly 404: components["responses"]["Error"];
10226
+ readonly 429: components["responses"]["RateLimited"];
10227
+ readonly 503: components["responses"]["Unavailable"];
10228
+ };
10229
+ };
10230
+ readonly getSocialLeaderboard: {
10231
+ readonly parameters: {
10232
+ readonly query?: {
10233
+ /** @description VOLUME (default) or PNL. */
10234
+ readonly metric?: "VOLUME" | "PNL";
10235
+ /** @description 1W (default), the last 7 days to the hour, or ALL. For VOLUME, 1W counts from the start of the hour seven days before the ranking was read; for PNL it is GET /v1/traders/{username}/pnl's 1W. */
10236
+ readonly range?: "1W" | "ALL";
10237
+ /** @description 1-based page of 25 ranks; 1 by default. A page past the last is empty, with pages and you still set. */
10238
+ readonly page?: number;
10239
+ /** @description The as_of of an earlier page, to read the ranking it came from; the newest when absent. */
10240
+ readonly as_of?: components["schemas"]["$defs-Timestamp"];
10241
+ };
10242
+ readonly header?: never;
10243
+ readonly path?: never;
10244
+ readonly cookie?: never;
10245
+ };
10246
+ readonly requestBody?: never;
10247
+ readonly responses: {
10248
+ /** @description One page of the ranking */
10249
+ readonly 200: {
10250
+ headers: {
10251
+ readonly "Cache-Control"?: "no-store";
10252
+ readonly [name: string]: unknown;
10253
+ };
10254
+ content: {
10255
+ readonly "application/json": components["schemas"]["Leaderboard"];
10256
+ };
10257
+ };
10258
+ readonly 400: components["responses"]["Error"];
10259
+ readonly 401: components["responses"]["Error"];
10260
+ readonly 403: components["responses"]["Error"];
10261
+ readonly 404: components["responses"]["Error"];
10262
+ readonly 409: components["responses"]["Error"];
10263
+ readonly 429: components["responses"]["RateLimited"];
10264
+ readonly 503: components["responses"]["Unavailable"];
10265
+ };
10266
+ };
9216
10267
  readonly listFollows: {
9217
10268
  readonly parameters: {
9218
10269
  readonly query?: never;
@@ -11719,6 +12770,82 @@ export interface operations {
11719
12770
  readonly 503: components["responses"]["Unavailable"];
11720
12771
  };
11721
12772
  };
12773
+ readonly getMarketDisplay: {
12774
+ readonly parameters: {
12775
+ readonly query: {
12776
+ /**
12777
+ * @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.
12778
+ * @example 35280,36412
12779
+ */
12780
+ readonly outcome_ids: components["parameters"]["OutcomeIds"];
12781
+ };
12782
+ readonly header?: never;
12783
+ readonly path?: never;
12784
+ readonly cookie?: never;
12785
+ };
12786
+ readonly requestBody?: never;
12787
+ readonly responses: {
12788
+ /** @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`. */
12789
+ readonly 200: {
12790
+ headers: {
12791
+ /** @description Shared caches may reuse an answer with an imagery publication and nothing pending for 60 seconds; any other answer is no-store. */
12792
+ readonly "Cache-Control"?: "public, max-age=60" | "no-store";
12793
+ readonly ETag: components["headers"]["MarketDisplayETag"];
12794
+ readonly [name: string]: unknown;
12795
+ };
12796
+ content: {
12797
+ readonly "application/json": components["schemas"]["MarketDisplay"];
12798
+ };
12799
+ };
12800
+ /** @description The answer matches the `If-None-Match` ETag. */
12801
+ readonly 304: {
12802
+ headers: {
12803
+ readonly [name: string]: unknown;
12804
+ };
12805
+ content?: never;
12806
+ };
12807
+ readonly 400: components["responses"]["Error"];
12808
+ readonly 503: components["responses"]["Unavailable"];
12809
+ };
12810
+ };
12811
+ readonly getOutcomeMetadata: {
12812
+ readonly parameters: {
12813
+ readonly query?: {
12814
+ /**
12815
+ * @description The latest `catalog_generation` a market or browse read named; the answer is that generation or a later one.
12816
+ * @example 20291
12817
+ */
12818
+ readonly min_generation?: components["parameters"]["MinCatalogGeneration"];
12819
+ };
12820
+ readonly header?: never;
12821
+ readonly path?: never;
12822
+ readonly cookie?: never;
12823
+ };
12824
+ readonly requestBody?: never;
12825
+ readonly responses: {
12826
+ /** @description The current catalog generation's outcome metadata */
12827
+ readonly 200: {
12828
+ headers: {
12829
+ /** @description Shared caches may reuse an answer naming exactly the min_generation asked for for 5 seconds; any other answer is no-store. */
12830
+ readonly "Cache-Control"?: "public, max-age=5" | "no-store";
12831
+ readonly ETag: components["headers"]["OutcomeMetadataETag"];
12832
+ readonly [name: string]: unknown;
12833
+ };
12834
+ content: {
12835
+ readonly "application/json": components["schemas"]["OutcomeMetadata"];
12836
+ };
12837
+ };
12838
+ /** @description The answer matches the `If-None-Match` ETag. */
12839
+ readonly 304: {
12840
+ headers: {
12841
+ readonly [name: string]: unknown;
12842
+ };
12843
+ content?: never;
12844
+ };
12845
+ readonly 400: components["responses"]["Error"];
12846
+ readonly 503: components["responses"]["Unavailable"];
12847
+ };
12848
+ };
11722
12849
  readonly getPerpMarks: {
11723
12850
  readonly parameters: {
11724
12851
  readonly query: {